NAC_Blockchain/services/nac-admin/dist_backup/public/assets/index-6ZSOUhmJ.js

655 lines
1.4 MiB
Raw Blame History

This file contains invisible Unicode characters

This file contains invisible Unicode characters that are indistinguishable to humans but may be processed differently by a computer. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

function AX(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 Wv=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function kt(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var GN={exports:{}},Zv={},YN={exports:{}},lp={exports:{}};lp.exports;var u5;function OX(){return u5||(u5=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($,le){Object.defineProperty(s.prototype,$,{get:function(){console.warn("%s(...) is deprecated in plain JavaScript React classes. %s",le[0],le[1])}})}function r($){return $===null||typeof $!="object"?null:($=ie&&$[ie]||$["@@iterator"],typeof $=="function"?$:null)}function o($,le){$=($=$.constructor)&&($.displayName||$.name)||"ReactClass";var Ee=$+"."+le;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.",le,$),ze[Ee]=!0)}function s($,le,Ee){this.props=$,this.context=le,this.refs=$e,this.updater=Ee||we}function u(){}function c($,le,Ee){this.props=$,this.context=le,this.refs=$e,this.updater=Ee||we}function f(){}function m($){return""+$}function g($){try{m($);var le=!1}catch{le=!0}if(le){le=console;var Ee=le.error,Te=typeof Symbol=="function"&&Symbol.toStringTag&&$[Symbol.toStringTag]||$.constructor.name||"Object";return Ee.call(le,"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 I:return"Fragment";case W:return"Profiler";case Z:return"StrictMode";case ue: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 le=$.render;return $=$.displayName,$||($=le.displayName||le.name||"",$=$!==""?"ForwardRef("+$+")":"ForwardRef"),$;case me:return le=$.displayName||null,le!==null?le:p($.type)||"Memo";case be:le=$._payload,$=$._init;try{return p($(le))}catch{}}return null}function y($){if($===I)return"<>";if(typeof $=="object"&&$!==null&&$.$$typeof===be)return"<...>";try{var le=p($);return le?"<"+le+">":"<...>"}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 le=Object.getOwnPropertyDescriptor($,"key").get;if(le&&le.isReactWarning)return!1}return $.key!==void 0}function N($,le){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)",le))}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 _($,le,Ee,Te,Me,Ze){var Se=Ee.ref;return $={$$typeof:te,type:$,key:le,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($,le){return le=_($.type,le,$.props,$._owner,$._debugStack,$._debugTask),$._store&&(le._store.validated=$._store.validated),le}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 C($){var le={"=":"=0",":":"=2"};return"$"+$.replace(/[=:]/g,function(Ee){return le[Ee]})}function j($,le){return typeof $=="object"&&$!==null&&$.key!=null?(g($.key),C(""+$.key)):le.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(le){$.status==="pending"&&($.status="fulfilled",$.value=le)},function(le){$.status==="pending"&&($.status="rejected",$.reason=le)})),$.status){case"fulfilled":return $.value;case"rejected":throw $.reason}}throw $}function V($,le,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),le,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,le,Ee,"",function(It){return It})):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),le.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,le,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,le,Ee,Ze,Me);else if(Ze==="object"){if(typeof $.then=="function")return V(L($),le,Ee,Te,Me);throw le=String($),Error("Objects are not valid as a React child (found: "+(le==="[object Object]"?"object with keys {"+Object.keys($).join(", ")+"}":le)+"). If you meant to render a collection of children, use an array instead.")}return Se}function B($,le,Ee){if($==null)return $;var Te=[],Me=0;return V($,Te,"","",function(Ze){return le.call(Ee,Ze,Me++)}),Te}function z($){if($._status===-1){var le=$._ioInfo;le!=null&&(le.start=le.end=performance.now()),le=$._result;var Ee=le();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)}}),le=$._ioInfo,le!=null){le.value=Ee;var Te=Ee.displayName;typeof Te=="string"&&(le.name=Te)}$._status===-1&&($._status=0,$._result=Ee)}if($._status===1)return le=$._result,le===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?`,le),"default"in le||console.error(`lazy: Expected the result of a dynamic import() call. Instead received: %s
Your code should look like:
const MyComponent = lazy(() => import('./MyComponent'))`,le),le.default;throw $._result}function q(){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 F(){je.asyncTransitions--}function Y($){if(Lr===null)try{var le=("require"+Math.random()).slice(0,7);Lr=(e&&e[le]).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 ee($){return 1<$.length&&typeof AggregateError=="function"?new AggregateError($):$[0]}function U($,le){le!==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=le}function G($,le,Ee){var Te=je.actQueue;if(Te!==null)if(Te.length!==0)try{K(Te),Y(function(){return G($,le,Ee)});return}catch(Me){je.thrownErrors.push(Me)}else je.actQueue=null;0<je.thrownErrors.length?(Te=ee(je.thrownErrors),je.thrownErrors.length=0,Ee(Te)):le($)}function K($){if(!co){co=!0;var le=0;try{for(;le<$.length;le++){var Ee=$[le];do{je.didUsePromise=!1;var Te=Ee(!1);if(Te!==null){if(je.didUsePromise){$[le]=Ee,$.splice(0,le);return}Ee=Te}else break}while(!0)}$.length=0}catch(Me){$.splice(0,le+1),je.thrownErrors.push(Me)}finally{co=!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"),I=Symbol.for("react.fragment"),Z=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"),ue=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($,le){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,$,le,"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 le=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof $=="object"&&$!==null&&typeof $.message=="string"?String($.message):String($),error:$});if(!window.dispatchEvent(le))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",$);return}console.error($)},ds=!1,Lr=null,mi=0,uo=!1,co=!1,fo=typeof queueMicrotask=="function"?function($){queueMicrotask(function(){return queueMicrotask($)})}:Y;et=Object.freeze({__proto__:null,c:function($){return q().useMemoCache($)}});var pi={map:B,forEach:function($,le,Ee){B($,function(){le.apply(this,arguments)},Ee)},count:function($){var le=0;return B($,function(){le++}),le},toArray:function($){return B($,function(le){return le})||[]},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=I,t.Profiler=W,t.PureComponent=c,t.StrictMode=Z,t.Suspense=ue,t.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=je,t.__COMPILER_RUNTIME=et,t.act=function($){var le=je.actQueue,Ee=mi;mi++;var Te=je.actQueue=le!==null?le:[],Me=!1;try{var Ze=$()}catch(Be){je.thrownErrors.push(Be)}if(0<je.thrownErrors.length)throw U(le,Ee),$=ee(je.thrownErrors),je.thrownErrors.length=0,$;if(Ze!==null&&typeof Ze=="object"&&typeof Ze.then=="function"){var Se=Ze;return fo(function(){Me||uo||(uo=!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,It){Me=!0,Se.then(function(hr){if(U(le,Ee),Ee===0){try{K(Te),Y(function(){return G(hr,Be,It)})}catch(Rn){je.thrownErrors.push(Rn)}if(0<je.thrownErrors.length){var dn=ee(je.thrownErrors);je.thrownErrors.length=0,It(dn)}}else Be(hr)},function(hr){U(le,Ee),0<je.thrownErrors.length&&(hr=ee(je.thrownErrors),je.thrownErrors.length=0),It(hr)})}}}var He=Ze;if(U(le,Ee),Ee===0&&(K(Te),Te.length!==0&&fo(function(){Me||uo||(uo=!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 $=ee(je.thrownErrors),je.thrownErrors.length=0,$;return{then:function(Be,It){Me=!0,Ee===0?(je.actQueue=Te,Y(function(){return G(He,Be,It)})):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($,le,Ee){if($==null)throw Error("The argument must be a React element, but you passed "+$+".");var Te=lt({},$.props),Me=$.key,Ze=$._owner;if(le!=null){var Se;e:{if(ir.call(le,"ref")&&(Se=Object.getOwnPropertyDescriptor(le,"ref").get)&&Se.isReactWarning){Se=!1;break e}Se=le.ref!==void 0}Se&&(Ze=b()),x(le)&&(g(le.key),Me=""+le.key);for(He in le)!ir.call(le,He)||He==="key"||He==="__self"||He==="__source"||He==="ref"&&le.ref===void 0||(Te[He]=le[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=_($.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($,le,Ee){for(var Te=2;Te<arguments.length;Te++)P(arguments[Te]);Te={};var Me=null;if(le!=null)for(Be in Mr||!("__self"in le)||"key"in le||(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(le)&&(g(le.key),Me=""+le.key),le)ir.call(le,Be)&&Be!=="key"&&Be!=="__self"&&Be!=="__source"&&(Te[Be]=le[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 _($,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 le={$$typeof:Ne,render:$},Ee;return Object.defineProperty(le,"displayName",{enumerable:!1,configurable:!0,get:function(){return Ee},set:function(Te){Ee=Te,$.name||$.displayName||(Object.defineProperty($,"name",{value:Te}),$.displayName=Te)}}),le},t.isValidElement=A,t.lazy=function($){$={_status:-1,_result:$};var le={$$typeof:be,_payload:$,_init:z},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,le._debugInfo=[{awaited:Ee}],le},t.memo=function($,le){$==null&&console.error("memo: The first argument must be a component. Instead received: %s",$===null?"null":typeof $),le={$$typeof:me,type:$,compare:le===void 0?null:le};var Ee;return Object.defineProperty(le,"displayName",{enumerable:!1,configurable:!0,get:function(){return Ee},set:function(Te){Ee=Te,$.name||$.displayName||(Object.defineProperty($,"name",{value:Te}),$.displayName=Te)}}),le},t.startTransition=function($){var le=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(F,F),Te.then(f,pa))}catch(Ze){pa(Ze)}finally{le===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.")),le!==null&&Ee.types!==null&&(le.types!==null&&le.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."),le.types=Ee.types),je.T=le}},t.unstable_useCacheRefresh=function(){return q().useCacheRefresh()},t.use=function($){return q().use($)},t.useActionState=function($,le,Ee){return q().useActionState($,le,Ee)},t.useCallback=function($,le){return q().useCallback($,le)},t.useContext=function($){var le=q();return $.$$typeof===ae&&console.error("Calling useContext(Context.Consumer) is not supported and will cause bugs. Did you mean to call useContext(Context) instead?"),le.useContext($)},t.useDebugValue=function($,le){return q().useDebugValue($,le)},t.useDeferredValue=function($,le){return q().useDeferredValue($,le)},t.useEffect=function($,le){return $==null&&console.warn("React Hook useEffect requires an effect callback. Did you forget to pass a callback to the hook?"),q().useEffect($,le)},t.useEffectEvent=function($){return q().useEffectEvent($)},t.useId=function(){return q().useId()},t.useImperativeHandle=function($,le,Ee){return q().useImperativeHandle($,le,Ee)},t.useInsertionEffect=function($,le){return $==null&&console.warn("React Hook useInsertionEffect requires an effect callback. Did you forget to pass a callback to the hook?"),q().useInsertionEffect($,le)},t.useLayoutEffect=function($,le){return $==null&&console.warn("React Hook useLayoutEffect requires an effect callback. Did you forget to pass a callback to the hook?"),q().useLayoutEffect($,le)},t.useMemo=function($,le){return q().useMemo($,le)},t.useOptimistic=function($,le){return q().useOptimistic($,le)},t.useReducer=function($,le,Ee){return q().useReducer($,le,Ee)},t.useRef=function($){return q().useRef($)},t.useState=function($){return q().useState($)},t.useSyncExternalStore=function($,le,Ee){return q().useSyncExternalStore($,le,Ee)},t.useTransition=function(){return q().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())})()})(lp,lp.exports)),lp.exports}var c5;function Jd(){return c5||(c5=1,YN.exports=OX()),YN.exports}var d5;function TX(){if(d5)return Zv;d5=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(I){if(I==null)return null;if(typeof I=="function")return I.$$typeof===z?null:I.displayName||I.name||null;if(typeof I=="string")return I;switch(I){case N:return"Fragment";case _:return"Profiler";case T:return"StrictMode";case C:return"Suspense";case j:return"SuspenseList";case B:return"Activity"}if(typeof I=="object")switch(typeof I.tag=="number"&&console.error("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),I.$$typeof){case x:return"Portal";case P:return I.displayName||"Context";case D:return(I._context.displayName||"Context")+".Consumer";case A:var Z=I.render;return I=I.displayName,I||(I=Z.displayName||Z.name||"",I=I!==""?"ForwardRef("+I+")":"ForwardRef"),I;case L:return Z=I.displayName||null,Z!==null?Z:e(I.type)||"Memo";case V:Z=I._payload,I=I._init;try{return e(I(Z))}catch{}}return null}function t(I){return""+I}function n(I){try{t(I);var Z=!1}catch{Z=!0}if(Z){Z=console;var W=Z.error,ae=typeof Symbol=="function"&&Symbol.toStringTag&&I[Symbol.toStringTag]||I.constructor.name||"Object";return W.call(Z,"The provided key is an unsupported type %s. This value must be coerced to a string before using it here.",ae),t(I)}}function r(I){if(I===N)return"<>";if(typeof I=="object"&&I!==null&&I.$$typeof===V)return"<...>";try{var Z=e(I);return Z?"<"+Z+">":"<...>"}catch{return"<...>"}}function o(){var I=q.A;return I===null?null:I.getOwner()}function s(){return Error("react-stack-top-frame")}function u(I){if(F.call(I,"key")){var Z=Object.getOwnPropertyDescriptor(I,"key").get;if(Z&&Z.isReactWarning)return!1}return I.key!==void 0}function c(I,Z){function W(){U||(U=!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)",Z))}W.isReactWarning=!0,Object.defineProperty(I,"key",{get:W,configurable:!0})}function f(){var I=e(this.type);return G[I]||(G[I]=!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.")),I=this.props.ref,I!==void 0?I:null}function m(I,Z,W,ae,ge,Ne){var ue=W.ref;return I={$$typeof:S,type:I,key:Z,props:W,_owner:ae},(ue!==void 0?ue:null)!==null?Object.defineProperty(I,"ref",{enumerable:!1,get:f}):Object.defineProperty(I,"ref",{enumerable:!1,value:null}),I._store={},Object.defineProperty(I._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:0}),Object.defineProperty(I,"_debugInfo",{configurable:!1,enumerable:!1,writable:!0,value:null}),Object.defineProperty(I,"_debugStack",{configurable:!1,enumerable:!1,writable:!0,value:ge}),Object.defineProperty(I,"_debugTask",{configurable:!1,enumerable:!1,writable:!0,value:Ne}),Object.freeze&&(Object.freeze(I.props),Object.freeze(I)),I}function g(I,Z,W,ae,ge,Ne){var ue=Z.children;if(ue!==void 0)if(ae)if(Y(ue)){for(ae=0;ae<ue.length;ae++)p(ue[ae]);Object.freeze&&Object.freeze(ue)}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(ue);if(F.call(Z,"key")){ue=e(I);var xe=Object.keys(Z).filter(function(be){return be!=="key"});ae=0<xe.length?"{key: someKey, "+xe.join(": ..., ")+": ...}":"{key: someKey}",ne[ue+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,ue,xe,ue),ne[ue+ae]=!0)}if(ue=null,W!==void 0&&(n(W),ue=""+W),u(Z)&&(n(Z.key),ue=""+Z.key),"key"in Z){W={};for(var me in Z)me!=="key"&&(W[me]=Z[me])}else W=Z;return ue&&c(W,typeof I=="function"?I.displayName||I.name||"Unknown":I),m(I,ue,W,o(),ge,Ne)}function p(I){y(I)?I._store&&(I._store.validated=1):typeof I=="object"&&I!==null&&I.$$typeof===V&&(I._payload.status==="fulfilled"?y(I._payload.value)&&I._payload.value._store&&(I._payload.value._store.validated=1):I._store&&(I._store.validated=1))}function y(I){return typeof I=="object"&&I!==null&&I.$$typeof===S}var b=Jd(),S=Symbol.for("react.transitional.element"),x=Symbol.for("react.portal"),N=Symbol.for("react.fragment"),T=Symbol.for("react.strict_mode"),_=Symbol.for("react.profiler"),D=Symbol.for("react.consumer"),P=Symbol.for("react.context"),A=Symbol.for("react.forward_ref"),C=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"),z=Symbol.for("react.client.reference"),q=b.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,F=Object.prototype.hasOwnProperty,Y=Array.isArray,ee=console.createTask?console.createTask:function(){return null};b={react_stack_bottom_frame:function(I){return I()}};var U,G={},K=b.react_stack_bottom_frame.bind(b,s)(),te=ee(r(s)),ne={};Zv.Fragment=N,Zv.jsxDEV=function(I,Z,W,ae){var ge=1e4>q.recentlyCreatedOwnerStacks++;return g(I,Z,W,ae,ge?Error("react-stack-top-frame"):K,ge?ee(r(I)):te)}})(),Zv}var f5;function CX(){return f5||(f5=1,GN.exports=TX()),GN.exports}var w=CX(),qu=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(){}},_X={setTimeout:(e,t)=>setTimeout(e,t),clearTimeout:e=>clearTimeout(e),setInterval:(e,t)=>setInterval(e,t),clearInterval:e=>clearInterval(e)},DX=class{#t=_X;#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 DX;function RX(e){setTimeout(e,0)}var Su=typeof window>"u"||"Deno"in globalThis;function dr(){}function jX(e,t){return typeof e=="function"?e(t):e}function DT(e){return typeof e=="number"&&e>=0&&e!==1/0}function rz(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 m5(e,t){const{type:n="all",exact:r,fetchStatus:o,predicate:s,queryKey:u,stale:c}=e;if(u){if(r){if(t.queryHash!==k_(u,t.options))return!1}else if(!Ap(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 p5(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(!Ap(t.options.mutationKey,s))return!1}return!(r&&t.state.status!==r||o&&!o(t))}function k_(e,t){return(t?.queryKeyHashFn||ll)(e)}function ll(e){return JSON.stringify(e,(t,n)=>RT(n)?Object.keys(n).sort().reduce((r,o)=>(r[o]=n[o],r),{}):n)}function Ap(e,t){return e===t?!0:typeof e!=typeof t?!1:e&&t&&typeof e=="object"&&typeof t=="object"?Object.keys(t).every(n=>Ap(e[n],t[n])):!1}var PX=Object.prototype.hasOwnProperty;function Ly(e,t){if(e===t)return e;const n=h5(e)&&h5(t);if(!n&&!(RT(e)&&RT(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:PX.call(e,g))&&f++;continue}if(p===null||y===null||typeof p!="object"||typeof y!="object"){c[g]=y;continue}const b=Ly(p,y);c[g]=b,b===p&&f++}return o===u&&f===o?e:c}function Op(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 h5(e){return Array.isArray(e)&&e.length===Object.keys(e).length}function RT(e){if(!g5(e))return!1;const t=e.constructor;if(t===void 0)return!0;const n=t.prototype;return!(!g5(n)||!n.hasOwnProperty("isPrototypeOf")||Object.getPrototypeOf(e)!==Object.prototype)}function g5(e){return Object.prototype.toString.call(e)==="[object Object]"}function MX(e){return new Promise(t=>{hu.setTimeout(t,e)})}function jT(e,t,n){if(typeof n.structuralSharing=="function")return n.structuralSharing(e,t);if(n.structuralSharing!==!1){try{return Ly(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 Ly(e,t)}return t}function LX(e,t,n=0){const r=[...e,t];return n&&r.length>n?r.slice(1):r}function kX(e,t,n=0){const r=[t,...e];return n&&r.length>n?r.slice(0,-1):r}var ar=Symbol();function az(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 iz(e,t){return typeof e=="function"?e(...t):!!e}var IX=class extends qu{#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"}},I_=new IX;function PT(){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 $X=RX;function VX(){let e=[],t=0,n=c=>{c()},r=c=>{c()},o=$X;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=VX(),BX=class extends qu{#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}},ky=new BX;function zX(e){return Math.min(1e3*2**e,3e4)}function oz(e){return(e??"online")==="online"?ky.isOnline():!0}var MT=class extends Error{constructor(e){super("CancelledError"),this.revert=e?.revert,this.silent=e?.silent}};function sz(e){let t=!1,n=0,r;const o=PT(),s=()=>o.status!=="pending",u=x=>{if(!s()){const N=new MT(x);y(N),e.onCancel?.(N)}},c=()=>{t=!0},f=()=>{t=!1},m=()=>I_.isFocused()&&(e.networkMode==="always"||ky.isOnline())&&e.canRun(),g=()=>oz(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 _=e.retry??(Su?0:3),D=e.retryDelay??zX,P=typeof D=="function"?D(n,T):D,A=_===!0||typeof _=="number"&&n<_||typeof _=="function"&&_(n,T);if(t||!A){y(T);return}n++,e.onFail?.(n,T),MX(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 lz=class{#t;destroy(){this.clearGcTimeout()}scheduleGc(){this.clearGcTimeout(),DT(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)}},UX=class extends lz{#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=v5(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=v5(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=jT(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:!rz(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=az(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=sz({initialPromise:t?.initialPromise,fn:u.fetchFn,onCancel:c=>{c instanceof MT&&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 MT){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,...uz(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 uz(e,t){return{fetchFailureCount:0,fetchFailureReason:null,fetchStatus:oz(t.networkMode)?"fetching":"paused",...e===void 0&&{error:null,status:"pending"}}}function v5(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 xh=class extends qu{constructor(e,t){super(),this.options=t,this.#t=e,this.#o=null,this.#s=PT(),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),y5(this.#e,this.options)?this.#p():this.updateResult(),this.#b())}onUnsubscribe(){this.hasListeners()||this.destroy()}shouldFetchOnReconnect(){return LT(this.#e,this.options,this.options.refetchOnReconnect)}shouldFetchOnWindowFocus(){return LT(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&&!Op(this.options,t)&&this.#t.getQueryCache().notify({type:"observerOptionsUpdated",query:this.#e,observer:this});const r=this.hasListeners();r&&b5(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 HX(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||!DT(e))return;const n=rz(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||!DT(this.#l)||this.#l===0)&&(this.#c=hu.setInterval(()=>{(this.options.refetchIntervalInBackground||I_.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&&y5(e,t),B=L&&b5(e,n,t,r);(V||B)&&(g={...g,...uz(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=jT(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=jT(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",_=x==="pending",D=x==="error",P=_&&T,A=y!==void 0,j={status:x,fetchStatus:g.fetchStatus,isPending:_,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&&!_,isLoadingError:D&&!A,isPaused:g.fetchStatus==="paused",isPlaceholderData:p,isRefetchError:D&&A,isStale:$_(e,t),refetch:this.refetch,promise:this.#s,isEnabled:Pa(t.enabled,e)!==!1};if(this.options.experimental_prefetchInRender){const L=z=>{j.status==="error"?z.reject(j.error):j.data!==void 0&&z.resolve(j.data)},V=()=>{const z=this.#s=j.promise=PT();L(z)},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),Op(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 qX(e,t){return Pa(t.enabled,e)!==!1&&e.state.data===void 0&&!(e.state.status==="error"&&t.retryOnMount===!1)}function y5(e,t){return qX(e,t)||e.state.data!==void 0&&LT(e,t,t.refetchOnMount)}function LT(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&&$_(e,t)}return!1}function b5(e,t,n,r){return(e!==t||Pa(r.enabled,e)===!1)&&(!n.suspense||e.state.status!=="error")&&$_(e,n)}function $_(e,t){return Pa(t.enabled,e)!==!1&&e.isStaleByTime(ol(t.staleTime,e))}function HX(e,t){return!Op(e.getCurrentResult(),t)}function Iy(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=az(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 _=(()=>{const C={client:t.client,queryKey:t.queryKey,pageParam:x,direction:N?"backward":"forward",meta:t.options.meta};return p(C),C})(),D=await y(_),{maxPages:P}=t.options,A=N?kX:LX;return{pages:A(S.pages,D,P),pageParams:A(S.pageParams,x,P)}};if(o&&s.length){const S=o==="backward",x=S?cz: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 cz(e,{pages:t,pageParams:n}){return t.length>0?e.getPreviousPageParam?.(t[0],t,n[0],n):void 0}function FX(e,t){return t?kT(e,t)!=null:!1}function KX(e,t){return!t||!e.getPreviousPageParam?!1:cz(e,t)!=null}var dz=class extends xh{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:Iy()})}getOptimisticResult(e){return e.behavior=Iy(),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:FX(t,n.data),hasPreviousPage:KX(t,n.data),isFetchNextPageError:m,isFetchingNextPage:g,isFetchPreviousPageError:p,isFetchingPreviousPage:y,isRefetchError:c&&!m&&!p,isRefetching:s&&!g&&!y}}},GX=class extends lz{#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||fz(),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=sz({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 fz(){return{context:void 0,data:void 0,error:null,failureCount:0,failureReason:null,isPaused:!1,status:"idle",variables:void 0,submittedAt:0}}var YX=class extends qu{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 GX({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=Jv(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=Jv(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=Jv(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=Jv(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=>p5(t,n))}findAll(e={}){return this.getAll().filter(t=>p5(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 Jv(e){return e.options.scope?.id}var QX=class extends qu{#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),Op(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??fz();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 x5(e,t){const n=new Set(t);return e.filter(r=>!n.has(r))}function XX(e,t,n){const r=e.slice(0);return r[t]=n,r}var WX=class extends qu{#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||!Op(g,y)});!f&&!m||(f&&(this.#r=o),this.#e=s,this.hasListeners()&&(f&&(x5(n,o).forEach(g=>{g.destroy()}),x5(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=Ly(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 xh(this.#t,o)})}),n}#c(e,t){const n=this.#r.indexOf(e);n!==-1&&(this.#e=XX(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)})})}}},ZX=class extends qu{constructor(e={}){super(),this.config=e,this.#t=new Map}#t;build(e,t,n){const r=t.queryKey,o=t.queryHash??k_(r,t);let s=this.get(o);return s||(s=new UX({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=>m5(t,n))}findAll(e={}){const t=this.getAll();return Object.keys(e).length>0?t.filter(n=>m5(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()})})}},JX=class{#t;#e;#n;#a;#r;#i;#s;#o;constructor(e={}){this.#t=e.queryCache||new ZX,this.#e=e.mutationCache||new YX,this.#n=e.defaultOptions||{},this.#a=new Map,this.#r=new Map,this.#i=0}mount(){this.#i++,this.#i===1&&(this.#s=I_.subscribe(async e=>{e&&(await this.resumePausedMutations(),this.#t.onFocus())}),this.#o=ky.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=jX(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=Iy(e.pages),this.fetchQuery(e)}prefetchInfiniteQuery(e){return this.fetchInfiniteQuery(e).then(dr).catch(dr)}ensureInfiniteQueryData(e){return e.behavior=Iy(e.pages),this.ensureQueryData(e)}resumePausedMutations(){return ky.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=>{Ap(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=>{Ap(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=k_(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=Jd();const H=kt(R),Wb=AX({__proto__:null,default:H},[R]);var QN={exports:{}},Ym={},w5;function eW(){if(w5)return Ym;w5=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(I){if(I==null)return null;if(typeof I=="function")return I.$$typeof===z?null:I.displayName||I.name||null;if(typeof I=="string")return I;switch(I){case N:return"Fragment";case _:return"Profiler";case T:return"StrictMode";case C:return"Suspense";case j:return"SuspenseList";case B:return"Activity"}if(typeof I=="object")switch(typeof I.tag=="number"&&console.error("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),I.$$typeof){case x:return"Portal";case P:return I.displayName||"Context";case D:return(I._context.displayName||"Context")+".Consumer";case A:var Z=I.render;return I=I.displayName,I||(I=Z.displayName||Z.name||"",I=I!==""?"ForwardRef("+I+")":"ForwardRef"),I;case L:return Z=I.displayName||null,Z!==null?Z:e(I.type)||"Memo";case V:Z=I._payload,I=I._init;try{return e(I(Z))}catch{}}return null}function t(I){return""+I}function n(I){try{t(I);var Z=!1}catch{Z=!0}if(Z){Z=console;var W=Z.error,ae=typeof Symbol=="function"&&Symbol.toStringTag&&I[Symbol.toStringTag]||I.constructor.name||"Object";return W.call(Z,"The provided key is an unsupported type %s. This value must be coerced to a string before using it here.",ae),t(I)}}function r(I){if(I===N)return"<>";if(typeof I=="object"&&I!==null&&I.$$typeof===V)return"<...>";try{var Z=e(I);return Z?"<"+Z+">":"<...>"}catch{return"<...>"}}function o(){var I=q.A;return I===null?null:I.getOwner()}function s(){return Error("react-stack-top-frame")}function u(I){if(F.call(I,"key")){var Z=Object.getOwnPropertyDescriptor(I,"key").get;if(Z&&Z.isReactWarning)return!1}return I.key!==void 0}function c(I,Z){function W(){U||(U=!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)",Z))}W.isReactWarning=!0,Object.defineProperty(I,"key",{get:W,configurable:!0})}function f(){var I=e(this.type);return G[I]||(G[I]=!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.")),I=this.props.ref,I!==void 0?I:null}function m(I,Z,W,ae,ge,Ne){var ue=W.ref;return I={$$typeof:S,type:I,key:Z,props:W,_owner:ae},(ue!==void 0?ue:null)!==null?Object.defineProperty(I,"ref",{enumerable:!1,get:f}):Object.defineProperty(I,"ref",{enumerable:!1,value:null}),I._store={},Object.defineProperty(I._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:0}),Object.defineProperty(I,"_debugInfo",{configurable:!1,enumerable:!1,writable:!0,value:null}),Object.defineProperty(I,"_debugStack",{configurable:!1,enumerable:!1,writable:!0,value:ge}),Object.defineProperty(I,"_debugTask",{configurable:!1,enumerable:!1,writable:!0,value:Ne}),Object.freeze&&(Object.freeze(I.props),Object.freeze(I)),I}function g(I,Z,W,ae,ge,Ne){var ue=Z.children;if(ue!==void 0)if(ae)if(Y(ue)){for(ae=0;ae<ue.length;ae++)p(ue[ae]);Object.freeze&&Object.freeze(ue)}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(ue);if(F.call(Z,"key")){ue=e(I);var xe=Object.keys(Z).filter(function(be){return be!=="key"});ae=0<xe.length?"{key: someKey, "+xe.join(": ..., ")+": ...}":"{key: someKey}",ne[ue+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,ue,xe,ue),ne[ue+ae]=!0)}if(ue=null,W!==void 0&&(n(W),ue=""+W),u(Z)&&(n(Z.key),ue=""+Z.key),"key"in Z){W={};for(var me in Z)me!=="key"&&(W[me]=Z[me])}else W=Z;return ue&&c(W,typeof I=="function"?I.displayName||I.name||"Unknown":I),m(I,ue,W,o(),ge,Ne)}function p(I){y(I)?I._store&&(I._store.validated=1):typeof I=="object"&&I!==null&&I.$$typeof===V&&(I._payload.status==="fulfilled"?y(I._payload.value)&&I._payload.value._store&&(I._payload.value._store.validated=1):I._store&&(I._store.validated=1))}function y(I){return typeof I=="object"&&I!==null&&I.$$typeof===S}var b=Jd(),S=Symbol.for("react.transitional.element"),x=Symbol.for("react.portal"),N=Symbol.for("react.fragment"),T=Symbol.for("react.strict_mode"),_=Symbol.for("react.profiler"),D=Symbol.for("react.consumer"),P=Symbol.for("react.context"),A=Symbol.for("react.forward_ref"),C=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"),z=Symbol.for("react.client.reference"),q=b.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,F=Object.prototype.hasOwnProperty,Y=Array.isArray,ee=console.createTask?console.createTask:function(){return null};b={react_stack_bottom_frame:function(I){return I()}};var U,G={},K=b.react_stack_bottom_frame.bind(b,s)(),te=ee(r(s)),ne={};Ym.Fragment=N,Ym.jsx=function(I,Z,W){var ae=1e4>q.recentlyCreatedOwnerStacks++;return g(I,Z,W,!1,ae?Error("react-stack-top-frame"):K,ae?ee(r(I)):te)},Ym.jsxs=function(I,Z,W){var ae=1e4>q.recentlyCreatedOwnerStacks++;return g(I,Z,W,!0,ae?Error("react-stack-top-frame"):K,ae?ee(r(I)):te)}})(),Ym}var N5;function tW(){return N5||(N5=1,QN.exports=eW()),QN.exports}var ce=tW(),mz=R.createContext(void 0),wh=e=>{const t=R.useContext(mz);if(e)return e;if(!t)throw new Error("No QueryClient set, use QueryClientProvider to set one");return t},nW=({client:e,children:t})=>(R.useEffect(()=>(e.mount(),()=>{e.unmount()}),[e]),ce.jsx(mz.Provider,{value:e,children:t})),pz=R.createContext(!1),hz=()=>R.useContext(pz);pz.Provider;function rW(){let e=!1;return{clearReset:()=>{e=!1},reset:()=>{e=!0},isReset:()=>e}}var aW=R.createContext(rW()),gz=()=>R.useContext(aW),vz=(e,t)=>{(e.suspense||e.throwOnError||e.experimental_prefetchInRender)&&(t.isReset()||(e.retryOnMount=!1))},yz=e=>{R.useEffect(()=>{e.clearReset()},[e])},bz=({result:e,errorResetBoundary:t,throwOnError:n,query:r,suspense:o})=>e.isError&&!t.isReset()&&!e.isFetching&&r&&(o&&e.data===void 0||iz(n,[e.error,r])),V_=(e,t)=>t.state.data===void 0,xz=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))}},wz=(e,t)=>e.isLoading&&e.isFetching&&!t,IT=(e,t)=>e?.suspense&&t.isPending,$y=(e,t,n)=>t.fetchOptimistic(e).catch(()=>{n.clearReset()});function Nz({queries:e,...t},n){const r=wh(n),o=hz(),s=gz(),u=R.useMemo(()=>e.map(x=>{const N=r.defaultQueryOptions(x);return N._optimisticResults=o?"isRestoring":"optimistic",N}),[e,r,o]);u.forEach(x=>{xz(x),vz(x,s)}),yz(s);const[c]=R.useState(()=>new WX(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)=>IT(u[N],x))?f.flatMap((x,N)=>{const T=u[N];if(T){const _=new xh(r,T);if(IT(T,x))return $y(T,_,s);wz(x,o)&&$y(T,_,s)}return[]}):[];if(b.length>0)throw Promise.all(b);const S=f.find((x,N)=>{const T=u[N];return T&&bz({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 Zb(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=hz(),o=gz(),s=wh(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",xz(u),vz(u,o),yz(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]),IT(u,m))throw $y(u,f,o);if(bz({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&&wz(m,r)&&(c?$y(u,f,o):s.getQueryCache().get(u.queryHash)?.promise)?.catch(dr).finally(()=>{f.updateResult()}),u.notifyOnChangeProps?m:f.trackResult(m)}function iW(e,t){return Zb(e,xh,t)}function oW(e,t){return e.queryFn===ar&&console.error("skipToken is not allowed for useSuspenseQuery"),Zb({...e,enabled:!0,suspense:!0,throwOnError:V_,placeholderData:void 0},xh,t)}function sW(e,t){return e.queryFn===ar&&console.error("skipToken is not allowed for useSuspenseInfiniteQuery"),Zb({...e,enabled:!0,suspense:!0,throwOnError:V_},dz,t)}function lW(e,t){return Nz({...e,queries:e.queries.map(n=>(n.queryFn===ar&&console.error("skipToken is not allowed for useSuspenseQueries"),{...n,suspense:!0,throwOnError:V_,enabled:!0,placeholderData:void 0}))},t)}function uW(e,t){const n=wh(t);n.getQueryState(e.queryKey)||n.prefetchQuery(e)}function cW(e,t){const n=wh(t);n.getQueryState(e.queryKey)||n.prefetchInfiniteQuery(e)}function dW(e,t){const n=wh(t),[r]=R.useState(()=>new QX(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&&iz(r.options.throwOnError,[o.error]))throw o.error;return{...o,mutate:s,mutateAsync:o.mutate}}function fW(e,t){return Zb(e,dz,t)}function Au(e){return!!e&&!Array.isArray(e)&&typeof e=="object"}const mW=typeof Symbol=="function"&&!!Symbol.asyncIterator;function Ez(e){return mW&&Au(e)&&Symbol.asyncIterator in e}var pW=Object.create,Sz=Object.defineProperty,hW=Object.getOwnPropertyDescriptor,Az=Object.getOwnPropertyNames,gW=Object.getPrototypeOf,vW=Object.prototype.hasOwnProperty,Nh=(e,t)=>function(){return t||(0,e[Az(e)[0]])((t={exports:{}}).exports,t),t.exports},yW=(e,t,n,r)=>{if(t&&typeof t=="object"||typeof t=="function")for(var o=Az(t),s=0,u=o.length,c;s<u;s++)c=o[s],!vW.call(e,c)&&c!==n&&Sz(e,c,{get:(f=>t[f]).bind(null,c),enumerable:!(r=hW(t,c))||r.enumerable});return e},Jb=(e,t,n)=>(n=e!=null?pW(gW(e)):{},yW(Sz(n,"default",{value:e,enumerable:!0}),e));const Oz=()=>{},E5=e=>{Object.freeze&&Object.freeze(e)};function Tz(e,t,n){var r;const o=t.join(".");return(r=n[o])!==null&&r!==void 0||(n[o]=new Proxy(Oz,{get(s,u){if(!(typeof u!="string"||u==="then"))return Tz(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)}),E5(m.args),E5(m.path),e(m)}})),n[o]}const e0=e=>Tz(e,[],Object.create(null)),B_=e=>new Proxy(Oz,{get(t,n){if(n!=="then")return e(n)}});var Cz=Nh({"../../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}}),bW=Nh({"../../node_modules/.pnpm/@oxc-project+runtime@0.72.2/node_modules/@oxc-project/runtime/src/helpers/toPrimitive.js"(e,t){var n=Cz().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}}),xW=Nh({"../../node_modules/.pnpm/@oxc-project+runtime@0.72.2/node_modules/@oxc-project/runtime/src/helpers/toPropertyKey.js"(e,t){var n=Cz().default,r=bW();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}}),_z=Nh({"../../node_modules/.pnpm/@oxc-project+runtime@0.72.2/node_modules/@oxc-project/runtime/src/helpers/defineProperty.js"(e,t){var n=xW();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_=Nh({"../../node_modules/.pnpm/@oxc-project+runtime@0.72.2/node_modules/@oxc-project/runtime/src/helpers/objectSpread2.js"(e,t){var n=_z();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}});Jb(z_());Jb(_z());var ey=Jb(z_());function wW(e,t){if("error"in e){const r=t.deserialize(e.error);return{ok:!1,error:(0,ey.default)((0,ey.default)({},e),{},{error:r})}}return{ok:!0,result:(0,ey.default)((0,ey.default)({},e.result),(!e.result.type||e.result.type==="data")&&{type:"data",data:t.deserialize(e.result.data)})}}var XN=class extends Error{constructor(){super("Unable to transform response from server")}};function NW(e,t){let n;try{n=wW(e,t)}catch{throw new XN}if(!n.ok&&(!Au(n.error.error)||typeof n.error.error.code!="number"))throw new XN;if(n.ok&&!Au(n.result))throw new XN;return n}Jb(z_());function t0(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(EW,t)}};return t}function EW(e,t){return t(e)}function SW(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 AW=Object.create,Dz=Object.defineProperty,OW=Object.getOwnPropertyDescriptor,Rz=Object.getOwnPropertyNames,TW=Object.getPrototypeOf,CW=Object.prototype.hasOwnProperty,fl=(e,t)=>function(){return t||(0,e[Rz(e)[0]])((t={exports:{}}).exports,t),t.exports},_W=(e,t,n,r)=>{if(t&&typeof t=="object"||typeof t=="function")for(var o=Rz(t),s=0,u=o.length,c;s<u;s++)c=o[s],!CW.call(e,c)&&c!==n&&Dz(e,c,{get:(f=>t[f]).bind(null,c),enumerable:!(r=OW(t,c))||r.enumerable});return e},Hu=(e,t,n)=>(n=e!=null?AW(TW(e)):{},_W(t||!e||!e.__esModule?Dz(n,"default",{value:e,enumerable:!0}):n,e)),DW=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}}),RW=fl({"../../node_modules/.pnpm/@oxc-project+runtime@0.72.2/node_modules/@oxc-project/runtime/src/helpers/objectWithoutProperties.js"(e,t){var n=DW();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}}),jz=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}}),jW=fl({"../../node_modules/.pnpm/@oxc-project+runtime@0.72.2/node_modules/@oxc-project/runtime/src/helpers/toPrimitive.js"(e,t){var n=jz().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}}),PW=fl({"../../node_modules/.pnpm/@oxc-project+runtime@0.72.2/node_modules/@oxc-project/runtime/src/helpers/toPropertyKey.js"(e,t){var n=jz().default,r=jW();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}}),MW=fl({"../../node_modules/.pnpm/@oxc-project+runtime@0.72.2/node_modules/@oxc-project/runtime/src/helpers/defineProperty.js"(e,t){var n=PW();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}}),Eh=fl({"../../node_modules/.pnpm/@oxc-project+runtime@0.72.2/node_modules/@oxc-project/runtime/src/helpers/objectSpread2.js"(e,t){var n=MW();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}}),LW=Hu(RW(),1),S5=Hu(Eh(),1);const kW=["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,LW.default)(t,kW);return[r,{input:u,type:"infinite"}]}return[r,(0,S5.default)((0,S5.default)({},typeof t<"u"&&t!==ar&&{input:t}),n&&n!=="any"&&{type:n})]}function Cy(e){return Fi(e,void 0,"any")}var IW=Object.create,Pz=Object.defineProperty,$W=Object.getOwnPropertyDescriptor,Mz=Object.getOwnPropertyNames,VW=Object.getPrototypeOf,BW=Object.prototype.hasOwnProperty,io=(e,t)=>function(){return t||(0,e[Mz(e)[0]])((t={exports:{}}).exports,t),t.exports},zW=(e,t,n,r)=>{if(t&&typeof t=="object"||typeof t=="function")for(var o=Mz(t),s=0,u=o.length,c;s<u;s++)c=o[s],!BW.call(e,c)&&c!==n&&Pz(e,c,{get:(f=>t[f]).bind(null,c),enumerable:!(r=$W(t,c))||r.enumerable});return e},bn=(e,t,n)=>(n=e!=null?IW(VW(e)):{},zW(t||!e||!e.__esModule?Pz(n,"default",{value:e,enumerable:!0}):n,e)),Lz=io({"../../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}}),UW=io({"../../node_modules/.pnpm/@oxc-project+runtime@0.72.2/node_modules/@oxc-project/runtime/src/helpers/toPrimitive.js"(e,t){var n=Lz().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=io({"../../node_modules/.pnpm/@oxc-project+runtime@0.72.2/node_modules/@oxc-project/runtime/src/helpers/toPropertyKey.js"(e,t){var n=Lz().default,r=UW();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}}),Fu=io({"../../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}}),li=io({"../../node_modules/.pnpm/@oxc-project+runtime@0.72.2/node_modules/@oxc-project/runtime/src/helpers/objectSpread2.js"(e,t){var n=Fu();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 HW(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 t0(c=>(n++,o.push(c),s(),{unsubscribe(){n--,u();const f=o.findIndex(m=>m===c);f>-1&&o.splice(f,1)}}))}}function FW(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=t0(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 KW(e){return t0(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 ty=bn(Fu(),1),ed=bn(li(),1);function GW(e){return e instanceof Tp}function YW(e){return Au(e)&&Au(e.error)&&typeof e.error.code=="number"&&typeof e.error.message=="string"}function QW(e,t){return typeof e=="string"?e:Au(e)&&typeof e.message=="string"?e.message:t}var Tp=class _y extends Error{constructor(t,n){var r,o;const s=n?.cause;super(t,{cause:s}),(0,ty.default)(this,"cause",void 0),(0,ty.default)(this,"shape",void 0),(0,ty.default)(this,"data",void 0),(0,ty.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,_y.prototype)}static from(t,n={}){const r=t;return GW(r)?(n.meta&&(r.meta=(0,ed.default)((0,ed.default)({},r.meta),n.meta)),r):YW(r)?new _y(r.error.message,(0,ed.default)((0,ed.default)({},n),{},{result:r})):new _y(QW(r,"Unknown error"),(0,ed.default)((0,ed.default)({},n),{},{cause:r}))}};function XW(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 A5=e=>typeof e=="function";function WW(e){if(e)return e;if(typeof window<"u"&&A5(window.fetch))return window.fetch;if(typeof globalThis<"u"&&A5(globalThis.fetch))return globalThis.fetch;throw new Error("No fetch implementation found")}var pp=bn(li());function ZW(e){return{url:e.url.toString(),fetch:e.fetch,transformer:XW(e.transformer),methodOverride:e.methodOverride}}function JW(e){const t={};for(let n=0;n<e.length;n++){const r=e[n];t[n]=r}return t}const eZ={query:"GET",mutation:"POST",subscription:"PATCH"};function kz(e){return"input"in e?e.transformer.input.serialize(e.input):JW(e.inputs.map(t=>e.transformer.input.serialize(t)))}const Iz=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=kz(e);s!==void 0&&e.methodOverride!=="POST"&&o.push(`input=${encodeURIComponent(JSON.stringify(s))}`)}return o.length&&(r+="?"+o.join("&")),r},tZ=e=>{if(e.type==="query"&&e.methodOverride!=="POST")return;const t=kz(e);return t!==void 0?JSON.stringify(t):void 0},nZ=e=>oZ((0,pp.default)((0,pp.default)({},e),{},{contentTypeHeader:"application/json",getUrl:Iz,getBody:tZ}));var rZ=class extends Error{constructor(){const e="AbortError";super(e),this.name=e,this.message=e}};const aZ=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 rZ};async function iZ(e){var t;aZ(e.signal);const n=e.getUrl(e),r=e.getBody(e),o=(t=e.methodOverride)!==null&&t!==void 0?t:eZ[e.type],s=await(async()=>{const c=await e.headers();return Symbol.iterator in c?Object.fromEntries(c):c})(),u=(0,pp.default)((0,pp.default)((0,pp.default)({},e.contentTypeHeader&&o!=="GET"?{"content-type":e.contentTypeHeader}:{}),e.trpcAcceptHeader?{"trpc-accept":e.trpcAcceptHeader}:void 0),s);return WW(e.fetch)(n,{method:o,signal:e.signal,body:r,headers:u})}async function oZ(e){const t={},n=await iZ(e);t.response=n;const r=await n.json();return t.responseJSON=r,{json:r,meta:t}}bn(li(),1);const O5=()=>{throw new Error("Something went wrong. Please submit an issue at https://github.com/trpc/trpc/issues/new")};function T5(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 _=await Promise.resolve(b);(N=x.resolve)===null||N===void 0||N.call(x,_)}catch(_){var T;(T=x.reject)===null||T===void 0||T.call(x,_)}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:O5,reject:O5},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 sZ(...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 ny=bn(li(),1);function lZ(e){var t,n;const r=ZW(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 Iz((0,ny.default)((0,ny.default)({},r),{},{type:g,path:y,inputs:b,signal:null})).length<=o},async fetch(p){const y=p.map(_=>_.path).join(","),b=p.map(_=>_.input),S=sZ(...p.map(_=>_.signal)),x=await nZ((0,ny.default)((0,ny.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(_=>({meta:x.meta,json:_}))}}),c=T5(u("query")),f=T5(u("mutation")),m={query:c,mutation:f};return({op:g})=>t0(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=NW(x.json,r.transformer.output);if(!N.ok){p.error(Tp.from(N.error,{meta:x.meta}));return}p.next({context:x.meta,result:N.result}),p.complete()}).catch(x=>{p.error(Tp.from(x,{meta:S?.meta}))}),()=>{}})}}bn(li(),1);const $z=(e,...t)=>typeof e=="function"?e(...t):e;bn(Fu(),1);function uZ(){let e,t;return{promise:new Promise((r,o)=>{e=r,t=o}),resolve:e,reject:t}}async function cZ(e){const t=await $z(e.url);if(!e.connectionParams)return t;const r=`${t.includes("?")?"&":"?"}connectionParams=1`;return t+r}async function dZ(e){const t={method:"connectionParams",data:await $z(e)};return JSON.stringify(t)}bn(Fu(),1);var cu=bn(Fu(),1);function fZ(e){const{promise:t,resolve:n,reject:r}=uZ();return e.addEventListener("open",()=>{e.removeEventListener("error",r),n()}),e.addEventListener("error",r),t}function mZ(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 pZ=class $T{constructor(t){var n;if((0,cu.default)(this,"id",++$T.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",FW(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=++$T.connectCount;const n=cZ(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&&mZ(r,t.keepAliveOpts),r.addEventListener("close",()=>{t.ws===r&&(t.ws=null)}),await fZ(r),t.urlOptions.connectionParams&&r.send(await dZ(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)(pZ,"connectCount",0);bn(Fu(),1);bn(li(),1);var WN=bn(Fu(),1),C5=bn(li(),1),n0=class{constructor(e){(0,WN.default)(this,"links",void 0),(0,WN.default)(this,"runtime",void 0),(0,WN.default)(this,"requestId",void 0),this.requestId=0,this.runtime={},this.links=e.links.map(t=>t(this.runtime))}$request(e){var t;return KW({links:this.links,op:(0,C5.default)((0,C5.default)({},e),{},{context:(t=e.context)!==null&&t!==void 0?t:{},id:++this.requestId})}).pipe(HW())}async requestAsPromise(e){var t=this;try{const n=t.$request(e);return(await SW(n)).result.data}catch(n){throw Tp.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 Vz=Symbol.for("trpc_untypedClient"),hZ={query:"query",mutate:"mutation",subscribe:"subscription"},gZ=e=>hZ[e];function Bz(e){const t=e0(({path:n,args:r})=>{const o=[...n],s=gZ(o.pop()),u=o.join(".");return e[s](u,...r)});return B_(n=>n===Vz?e:t[n])}function vZ(e){const t=new n0(e);return Bz(t)}function U_(e){return e[Vz]}bn(li(),1);bn(li(),1);var yZ=io({"../../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(yZ(),1);bn(li(),1);var bZ=io({"../../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}}),zz=io({"../../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}}),xZ=io({"../../node_modules/.pnpm/@oxc-project+runtime@0.72.2/node_modules/@oxc-project/runtime/src/helpers/awaitAsyncGenerator.js"(e,t){var n=zz();function r(o){return new n(o,0)}t.exports=r,t.exports.__esModule=!0,t.exports.default=t.exports}}),wZ=io({"../../node_modules/.pnpm/@oxc-project+runtime@0.72.2/node_modules/@oxc-project/runtime/src/helpers/wrapAsyncGenerator.js"(e,t){var n=zz();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(bZ(),1);bn(xZ(),1);bn(wZ(),1);bn(li(),1);function NZ(e){return e0(({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 ZN;const EZ=["client","ssrContext","ssrState","abortOnUnmount"],SZ=(ZN=R.createContext)===null||ZN===void 0?void 0:ZN.call(Wb,null),AZ=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 OZ(e){return e0(t=>{const n=[...t.path],r=n.pop(),o=[...t.args],s=o.shift(),u=AZ(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(Cy(n),s),getMutationDefaults:()=>e.getMutationDefaults(Cy(n)),isMutating:()=>e.isMutating({mutationKey:Cy(n)})}[r]()})}function TZ(e){const t=Bz(e.client),n=OZ(e);return B_(r=>{const o=r;return o==="client"?t:EZ.includes(o)?e[o]:n[r]})}var CZ=Hu(Eh(),1);function _5(e){const t=e instanceof n0?e:U_(e);return e0(n=>{const r=n.path,o=r.join("."),[s,u]=n.args;return(0,CZ.default)({queryKey:Fi(r,s,"query"),queryFn:()=>t.query(o,s,u?.trpc)},u)})}var JN=Hu(Eh(),1);function Ar(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,JN.default)((0,JN.default)((0,JN.default)({},(u=s)!==null&&u!==void 0?u:{}),n.pageParam?{cursor:n.pageParam}:{}),{},{direction:n.direction})}return[o.join("."),s,t?.trpc]}var _Z=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}}),DZ=Hu(_Z(),1);function VT(e){return{path:e.path.join(".")}}function Qm(e){const t=VT(e);return R.useMemo(()=>t,[t])}async function Uz(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,DZ.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 Et=Hu(Eh(),1);function RZ(e){const{client:t,queryClient:n}=e,r=t instanceof n0?t:U_(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,Et.default)((0,Et.default)({},u),{},{trpc:(0,Et.default)((0,Et.default)({},u?.trpc),!(u==null||(y=u.trpc)===null||y===void 0)&&y.abortOnUnmount?{signal:p.signal}:{signal:null})});return await r.query(...Ar(s,b,{direction:p.direction,pageParam:p.pageParam}))};return Object.assign((0,Et.default)((0,Et.default)({},u),{},{initialData:u?.initialData,queryKey:s,queryFn:m?ar:g,initialPageParam:(f=u?.initialCursor)!==null&&f!==void 0?f:null}),{trpc:VT({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,Et.default)((0,Et.default)({},u),{},{trpc:(0,Et.default)((0,Et.default)({},u?.trpc),!(u==null||(p=u.trpc)===null||p===void 0)&&p.abortOnUnmount?{signal:g.signal}:{signal:null})}),b=await r.query(...Ar(s,y));return Ez(b)?Uz(b,n,s):b};return Object.assign((0,Et.default)((0,Et.default)({},u),{},{initialData:u?.initialData,queryKey:s,queryFn:f?ar:m}),{trpc:VT({path:o})})},fetchQuery:(o,s)=>n.fetchQuery((0,Et.default)((0,Et.default)({},s),{},{queryKey:o,queryFn:()=>r.query(...Ar(o,s))})),fetchInfiniteQuery:(o,s)=>{var u;return n.fetchInfiniteQuery((0,Et.default)((0,Et.default)({},s),{},{queryKey:o,queryFn:({pageParam:c,direction:f})=>r.query(...Ar(o,s,{pageParam:c,direction:f})),initialPageParam:(u=s?.initialCursor)!==null&&u!==void 0?u:null}))},prefetchQuery:(o,s)=>n.prefetchQuery((0,Et.default)((0,Et.default)({},s),{},{queryKey:o,queryFn:()=>r.query(...Ar(o,s))})),prefetchInfiniteQuery:(o,s)=>{var u;return n.prefetchInfiniteQuery((0,Et.default)((0,Et.default)({},s),{},{queryKey:o,queryFn:({pageParam:c,direction:f})=>r.query(...Ar(o,s,{pageParam:c,direction:f})),initialPageParam:(u=s?.initialCursor)!==null&&u!==void 0?u:null}))},ensureQueryData:(o,s)=>n.ensureQueryData((0,Et.default)((0,Et.default)({},s),{},{queryKey:o,queryFn:()=>r.query(...Ar(o,s))})),invalidateQueries:(o,s,u)=>n.invalidateQueries((0,Et.default)((0,Et.default)({},s),{},{queryKey:o}),u),resetQueries:(o,s,u)=>n.resetQueries((0,Et.default)((0,Et.default)({},s),{},{queryKey:o}),u),refetchQueries:(o,s,u)=>n.refetchQueries((0,Et.default)((0,Et.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,Et.default)((0,Et.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(...Ar([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,Et.default)((0,Et.default)({},o),{},{exact:!0}))}}var Re=Hu(Eh());const D5=(e,t)=>new Proxy(e,{get(r,o){return t(o),r[o]}});function jZ(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:SZ,s=vZ,u=A=>{var C;const{abortOnUnmount:j=!1,queryClient:L,ssrContext:V}=A,[B,z]=R.useState((C=A.ssrState)!==null&&C!==void 0?C:!1),q=A.client instanceof n0?A.client:U_(A.client),F=R.useMemo(()=>RZ({client:q,queryClient:L}),[q,L]),Y=R.useMemo(()=>(0,Re.default)({abortOnUnmount:j,queryClient:L,client:q,ssrContext:V??null,ssrState:B},F),[j,q,F,L,V,B]);return R.useEffect(()=>{z(ee=>ee?"mounted":!1)},[]),ce.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,C){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},C):C}function m(A,C,j){var L,V,B,z,q;const F=c(),{abortOnUnmount:Y,client:ee,ssrState:U,queryClient:G,prefetchQuery:K}=F,te=Fi(A,C,"query"),ne=G.getQueryDefaults(te),I=C===ar;typeof window>"u"&&U==="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&&!I&&!G.getQueryCache().find({queryKey:te})&&K(te,j);const Z=f(te,(0,Re.default)((0,Re.default)({},ne),j)),W=(B=(z=j==null||(q=j.trpc)===null||q===void 0?void 0:q.abortOnUnmount)!==null&&z!==void 0?z:void 0)!==null&&B!==void 0?B:Y,ae=iW((0,Re.default)((0,Re.default)({},Z),{},{queryKey:te,queryFn:I?C:async ge=>{const Ne=(0,Re.default)((0,Re.default)({},Z),{},{trpc:(0,Re.default)((0,Re.default)({},Z?.trpc),W?{signal:ge.signal}:{signal:null})}),ue=await ee.query(...Ar(te,Ne));return Ez(ue)?Uz(ue,G,te):ue}}),G);return ae.trpc=Qm({path:A}),ae}function g(A,C,j){var L,V,B;const z=c(),q=Fi(A,C,"query"),F=C===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:z.abortOnUnmount;uW((0,Re.default)((0,Re.default)({},j),{},{queryKey:q,queryFn:F?C:ee=>{const U={trpc:(0,Re.default)((0,Re.default)({},j?.trpc),Y?{signal:ee.signal}:{})};return z.client.query(...Ar(q,U))}}))}function p(A,C,j){var L,V,B;const z=c(),q=Fi(A,C,"query"),F=(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:z.abortOnUnmount,Y=oW((0,Re.default)((0,Re.default)({},j),{},{queryKey:q,queryFn:ee=>{const U=(0,Re.default)((0,Re.default)({},j),{},{trpc:(0,Re.default)((0,Re.default)({},j?.trpc),F?{signal:ee.signal}:{signal:null})});return z.client.query(...Ar(q,U))}}),z.queryClient);return Y.trpc=Qm({path:A}),[Y.data,Y]}function y(A,C){const{client:j,queryClient:L}=c(),V=Cy(A),B=L.defaultMutationOptions(L.getMutationDefaults(V)),z=dW((0,Re.default)((0,Re.default)({},C),{},{mutationKey:V,mutationFn:q=>j.mutation(...Ar([A,{input:q}],C)),onSuccess(...q){var F,Y;return r({originalFn:()=>{var U,G,K;return(U=C==null||(G=C.onSuccess)===null||G===void 0?void 0:G.call(C,...q))!==null&&U!==void 0?U:B==null||(K=B.onSuccess)===null||K===void 0?void 0:K.call(B,...q)},queryClient:L,meta:(F=(Y=C?.meta)!==null&&Y!==void 0?Y:B?.meta)!==null&&F!==void 0?F:{}})}}),L);return z.trpc=Qm({path:A}),z}const b={data:void 0,error:null,status:"idle"},S={data:void 0,error:null,status:"connecting"};/* istanbul ignore next -- @preserve */function x(A,C,j){var L;const V=(L=j?.enabled)!==null&&L!==void 0?L:C!==ar,B=ll(Fi(A,C,"any")),{client:z}=c(),q=R.useRef(j);R.useEffect(()=>{q.current=j});const[F]=R.useState(new Set([])),Y=R.useCallback(I=>{F.add(I)},[F]),ee=R.useRef(null),U=R.useCallback(I=>{const Z=K.current,W=K.current=I(Z);let ae=!1;for(const ge of F)if(Z[ge]!==W[ge]){ae=!0;break}ae&&ne(D5(W,Y))},[Y,F]),G=R.useCallback(()=>{var I;if((I=ee.current)===null||I===void 0||I.unsubscribe(),!V){U(()=>(0,Re.default)((0,Re.default)({},b),{},{reset:G}));return}U(()=>(0,Re.default)((0,Re.default)({},S),{},{reset:G}));const Z=z.subscription(A.join("."),C??void 0,{onStarted:()=>{var W,ae;(W=(ae=q.current).onStarted)===null||W===void 0||W.call(ae),U(ge=>(0,Re.default)((0,Re.default)({},ge),{},{status:"pending",error:null}))},onData:W=>{var ae,ge;(ae=(ge=q.current).onData)===null||ae===void 0||ae.call(ge,W),U(Ne=>(0,Re.default)((0,Re.default)({},Ne),{},{status:"pending",data:W,error:null}))},onError:W=>{var ae,ge;(ae=(ge=q.current).onError)===null||ae===void 0||ae.call(ge,W),U(Ne=>(0,Re.default)((0,Re.default)({},Ne),{},{status:"error",error:W}))},onConnectionStateChange:W=>{U(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=q.current).onComplete)===null||W===void 0||W.call(ae),U(ge=>(0,Re.default)((0,Re.default)({},ge),{},{status:"idle",error:null,data:void 0}))}});ee.current=Z},[z,B,V,U]);R.useEffect(()=>(G(),()=>{var I;(I=ee.current)===null||I===void 0||I.unsubscribe()}),[G]);const K=R.useRef(V?(0,Re.default)((0,Re.default)({},S),{},{reset:G}):(0,Re.default)((0,Re.default)({},b),{},{reset:G})),[te,ne]=R.useState(D5(K.current,Y));return te}function N(A,C,j){var L,V,B,z,q;const{client:F,ssrState:Y,prefetchInfiniteQuery:ee,queryClient:U,abortOnUnmount:G}=c(),K=Fi(A,C,"infinite"),te=U.getQueryDefaults(K),ne=C===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&&!U.getQueryCache().find({queryKey:K})&&ee(K,(0,Re.default)((0,Re.default)({},te),j));const I=f(K,(0,Re.default)((0,Re.default)({},te),j)),Z=(B=j==null||(z=j.trpc)===null||z===void 0?void 0:z.abortOnUnmount)!==null&&B!==void 0?B:G,W=fW((0,Re.default)((0,Re.default)({},I),{},{initialPageParam:(q=j.initialCursor)!==null&&q!==void 0?q:null,persister:j.persister,queryKey:K,queryFn:ne?C:ae=>{var ge;const Ne=(0,Re.default)((0,Re.default)({},I),{},{trpc:(0,Re.default)((0,Re.default)({},I?.trpc),Z?{signal:ae.signal}:{signal:null})});return F.query(...Ar(K,Ne,{pageParam:(ge=ae.pageParam)!==null&&ge!==void 0?ge:j.initialCursor,direction:ae.direction}))}}),U);return W.trpc=Qm({path:A}),W}function T(A,C,j){var L,V,B;const z=c(),q=Fi(A,C,"infinite"),F=z.queryClient.getQueryDefaults(q),Y=C===ar,ee=f(q,(0,Re.default)((0,Re.default)({},F),j)),U=(L=j==null||(V=j.trpc)===null||V===void 0?void 0:V.abortOnUnmount)!==null&&L!==void 0?L:z.abortOnUnmount;cW((0,Re.default)((0,Re.default)({},j),{},{initialPageParam:(B=j.initialCursor)!==null&&B!==void 0?B:null,queryKey:q,queryFn:Y?C:G=>{var K;const te=(0,Re.default)((0,Re.default)({},ee),{},{trpc:(0,Re.default)((0,Re.default)({},ee?.trpc),U?{signal:G.signal}:{})});return z.client.query(...Ar(q,te,{pageParam:(K=G.pageParam)!==null&&K!==void 0?K:j.initialCursor,direction:G.direction}))}}))}function _(A,C,j){var L,V,B;const z=c(),q=Fi(A,C,"infinite"),F=z.queryClient.getQueryDefaults(q),Y=f(q,(0,Re.default)((0,Re.default)({},F),j)),ee=(L=j==null||(V=j.trpc)===null||V===void 0?void 0:V.abortOnUnmount)!==null&&L!==void 0?L:z.abortOnUnmount,U=sW((0,Re.default)((0,Re.default)({},j),{},{initialPageParam:(B=j.initialCursor)!==null&&B!==void 0?B:null,queryKey:q,queryFn:G=>{var K;const te=(0,Re.default)((0,Re.default)({},Y),{},{trpc:(0,Re.default)((0,Re.default)({},Y?.trpc),ee?{signal:G.signal}:{})});return z.client.query(...Ar(q,te,{pageParam:(K=G.pageParam)!==null&&K!==void 0?K:j.initialCursor,direction:G.direction}))}}),z.queryClient);return U.trpc=Qm({path:A}),[U.data,U]}return{Provider:u,createClient:s,useContext:c,useUtils:c,useQuery:m,usePrefetchQuery:g,useSuspenseQuery:p,useQueries:(A,C)=>{const{ssrState:j,queryClient:L,prefetchQuery:V,client:B}=c(),z=_5(B),q=A(z);if(typeof window>"u"&&j==="prepass")for(const Y of q){var F;const ee=Y;((F=ee.trpc)===null||F===void 0?void 0:F.ssr)!==!1&&!L.getQueryCache().find({queryKey:ee.queryKey})&&V(ee.queryKey,ee)}return Nz({queries:q.map(Y=>(0,Re.default)((0,Re.default)({},Y),{},{queryKey:Y.queryKey})),combine:C?.combine},L)},useSuspenseQueries:A=>{const{queryClient:C,client:j}=c(),L=_5(j),V=A(L),B=lW({queries:V.map(z=>(0,Re.default)((0,Re.default)({},z),{},{queryFn:z.queryFn,queryKey:z.queryKey}))},C);return[B.map(z=>z.data),B]},useMutation:y,useSubscription:x,useInfiniteQuery:N,usePrefetchInfiniteQuery:T,useSuspenseInfiniteQuery:_}}function PZ(e){const t=NZ(e);return B_(n=>n==="useContext"||n==="useUtils"?()=>{const r=e.useUtils();return R.useMemo(()=>TZ(r),[r])}:e.hasOwnProperty(n)?e[n]:t[n])}function MZ(e){const t=jZ();return PZ(t)}const _t=MZ(),Je=e=>typeof e=="string",Xm=()=>{let e,t;const n=new Promise((r,o)=>{e=r,t=o});return n.resolve=e,n.reject=t,n},R5=e=>e==null?"":""+e,LZ=(e,t,n)=>{e.forEach(r=>{t[r]&&(n[r]=t[r])})},kZ=/###/g,j5=e=>e&&e.indexOf("###")>-1?e.replace(kZ,"."):e,P5=e=>!e||Je(e),hp=(e,t,n)=>{const r=Je(t)?t.split("."):t;let o=0;for(;o<r.length-1;){if(P5(e))return{};const s=j5(r[o]);!e[s]&&n&&(e[s]=new n),Object.prototype.hasOwnProperty.call(e,s)?e=e[s]:e={},++o}return P5(e)?{}:{obj:e,k:j5(r[o])}},M5=(e,t,n)=>{const{obj:r,k:o}=hp(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=hp(e,u,Object);for(;c.obj===void 0&&u.length;)s=`${u[u.length-1]}.${s}`,u=u.slice(0,u.length-1),c=hp(e,u,Object),c?.obj&&typeof c.obj[`${c.k}.${s}`]<"u"&&(c.obj=void 0);c.obj[`${c.k}.${s}`]=n},IZ=(e,t,n,r)=>{const{obj:o,k:s}=hp(e,t,Object);o[s]=o[s]||[],o[s].push(n)},Vy=(e,t)=>{const{obj:n,k:r}=hp(e,t);if(n&&Object.prototype.hasOwnProperty.call(n,r))return n[r]},$Z=(e,t,n)=>{const r=Vy(e,n);return r!==void 0?r:Vy(t,n)},qz=(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]):qz(e[r],t[r],n):e[r]=t[r]);return e},au=e=>e.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&");var VZ={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;","/":"&#x2F;"};const BZ=e=>Je(e)?e.replace(/[&<>"'\/]/g,t=>VZ[t]):e;class zZ{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 UZ=[" ",",","?","!",";"],qZ=new zZ(20),HZ=(e,t,n)=>{t=t||"",n=n||"";const r=UZ.filter(u=>t.indexOf(u)<0&&n.indexOf(u)<0);if(r.length===0)return!0;const o=qZ.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},BT=(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},Cp=e=>e?.replace("_","-"),FZ={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 By{constructor(t,n={}){this.init(t,n)}init(t,n={}){this.prefix=n.prefix||"i18next:",this.logger=t||FZ,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 By(this.logger,{prefix:`${this.prefix}:${t}:`,...this.options})}clone(t){return t=t||this.options,t.prefix=t.prefix||this.prefix,new By(this.logger,t)}}var Gi=new By;let r0=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 L5 extends r0{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=Vy(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:BT(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),M5(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=Vy(this.data,c)||{};u.skipCopy||(r=JSON.parse(JSON.stringify(r))),o?qz(f,r,s):f={...f,...r},M5(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 Hz={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 Fz=Symbol("i18next/PATH_KEY");function KZ(){const e=[],t=Object.create(null);let n;return t.get=(r,o)=>(n?.revoke?.(),o===Fz?e:(e.push(o),n=Proxy.revocable(r,t),n.proxy)),Proxy.revocable(Object.create(null),t).proxy}function zT(e,t){const{[Fz]:n}=e(KZ());return n.join(t?.keySeparator??".")}const k5={},eE=e=>!Je(e)&&typeof e!="boolean"&&typeof e!="number";class zy extends r0{constructor(t,n={}){super(),LZ(["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=eE(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&&!HZ(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=zT(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]"],_=o.joinArrays!==void 0?o.joinArrays:this.options.joinArrays,D=!this.i18nFormat||this.i18nFormat.handleAsObject,P=o.count!==void 0&&!Je(o.count),A=zy.hasDefaultValue(o),C=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${C}`]||o[`defaultValue${j}`]||o.defaultValue;let B=S;D&&!S&&A&&(B=V);const z=eE(B),q=Object.prototype.toString.apply(B);if(D&&B&&z&&T.indexOf(q)<0&&!(Je(_)&&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 F=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=F,b.usedParams=this.getUsedParamsDetails(o),b):F}if(u){const F=Array.isArray(B),Y=F?[]:{},ee=F?N:x;for(const U in B)if(Object.prototype.hasOwnProperty.call(B,U)){const G=`${ee}${u}${U}`;A&&!S?Y[U]=this.translate(G,{...o,defaultValue:eE(V)?V[U]:void 0,joinArrays:!1,ns:f}):Y[U]=this.translate(G,{...o,joinArrays:!1,ns:f}),Y[U]===G&&(Y[U]=B[U])}S=Y}}else if(D&&Je(_)&&Array.isArray(S))S=S.join(_),S&&(S=this.extendTranslation(S,t,o,r));else{let F=!1,Y=!1;!this.isValidLookup(S)&&A&&(F=!0,S=V),this.isValidLookup(S)||(Y=!0,S=c);const U=(o.missingKeyNoValueFallbackToKey||this.options.missingKeyNoValueFallbackToKey)&&Y?void 0:S,G=A&&V!==S&&this.options.updateMissing;if(Y||F||G){if(this.logger.log(G?"updateKey":"missingKey",p,m,c,G?V:S),u){const I=this.resolve(c,{...o,keySeparator:!1});I&&I.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 I=0;I<te.length;I++)K.push(te[I]);else this.options.saveMissingTo==="all"?K=this.languageUtils.toResolveHierarchy(o.lng||this.language):K.push(o.lng||this.language);const ne=(I,Z,W)=>{const ae=A&&W!==S?W:U;this.options.missingKeyHandler?this.options.missingKeyHandler(I,m,Z,ae,G,o):this.backendConnector?.saveMissing&&this.backendConnector.saveMissing(I,m,Z,ae,G,o),this.emit("missingKey",I,m,Z,S)};this.options.saveMissing&&(this.options.saveMissingPlurals&&P?K.forEach(I=>{const Z=this.pluralResolver.getSuffixes(I,o);L&&o[`defaultValue${this.options.pluralSeparator}zero`]&&Z.indexOf(`${this.options.pluralSeparator}zero`)<0&&Z.push(`${this.options.pluralSeparator}zero`),Z.forEach(W=>{ne([I],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||F)&&this.options.parseMissingKeyHandler&&(S=this.options.parseMissingKeyHandler(this.options.appendNamespaceToMissingKey?`${m}${g}${c}`:c,F?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=Hz.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,!k5[`${x[0]}-${N}`]&&this.utils?.hasLoadedNamespace&&!this.utils?.hasLoadedNamespace(c)&&(k5[`${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 _=[g];if(this.i18nFormat?.addLookupKeys)this.i18nFormat.addLookupKeys(_,g,T,N,n);else{let P;y&&(P=this.pluralResolver.getSuffix(T,n.count,n));const A=`${this.options.pluralSeparator}zero`,C=`${this.options.pluralSeparator}ordinal${this.options.pluralSeparator}`;if(y&&(n.ordinal&&P.indexOf(C)===0&&_.push(g+P.replace(C,this.options.pluralSeparator)),_.push(g+P),b&&_.push(g+A)),S){const j=`${g}${this.options.contextSeparator||"_"}${n.context}`;_.push(j),y&&(n.ordinal&&P.indexOf(C)===0&&_.push(j+P.replace(C,this.options.pluralSeparator)),_.push(j+P),b&&_.push(j+A))}}let D;for(;D=_.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 I5{constructor(t){this.options=t,this.supportedLngs=this.options.supportedLngs||!1,this.logger=Gi.create("languageUtils")}getScriptPartFromCode(t){if(t=Cp(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=Cp(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 $5={zero:0,one:1,two:2,few:3,many:4,other:5},V5={select:e=>e===1?"one":"other",resolvedOptions:()=>({pluralCategories:["one","other"]})};class GZ{constructor(t,n={}){this.languageUtils=t,this.options=n,this.logger=Gi.create("pluralResolver"),this.pluralRulesCache={}}clearCache(){this.pluralRulesCache={}}getRule(t,n={}){const r=Cp(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!"),V5;if(!t.match(/-|_/))return V5;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)=>$5[o]-$5[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 B5=(e,t,n,r=".",o=!0)=>{let s=$Z(e,t,n);return!s&&o&&Je(n)&&(s=BT(e,n,r),s===void 0&&(s=BT(t,n,r))),s},tE=e=>e.replace(/\$/g,"$$$$");class z5{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:_}=t.interpolation;this.escape=n!==void 0?n:BZ,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=_!==void 0?_:!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=B5(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(B5(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=>tE(b)},{regex:this.regexp,safeValue:b=>this.escapeValue?tE(this.escape(b)):tE(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=R5(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=R5(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 YZ=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}},U5=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(Cp(r),o),t[u]=c),c(n)}},QZ=e=>(t,n,r)=>e(Cp(n),r)(t);class XZ{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?U5:QZ;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()]=U5(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}=YZ(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 WZ=(e,t)=>{e.pending[t]!==void 0&&(delete e.pending[t],e.pendingCount--)};class ZZ extends r0{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=>{IZ(f.loaded,[s],u),WZ(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 nE=()=>({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}),q5=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),ry=()=>{},JZ=e=>{Object.getOwnPropertyNames(Object.getPrototypeOf(e)).forEach(n=>{typeof e[n]=="function"&&(e[n]=e[n].bind(e))})},Kz="__i18next_supportNoticeShown",eJ=()=>typeof globalThis<"u"&&!!globalThis[Kz],tJ=()=>{typeof globalThis<"u"&&(globalThis[Kz]=!0)},nJ=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 gp extends r0{constructor(t={},n){if(super(),this.options=q5(t),this.services={},this.logger=Gi,this.modules={external:[]},JZ(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=nE();this.options={...r,...this.options,...q5(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&&!nJ(this)&&!eJ()&&(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 💙"),tJ());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=XZ;const g=new I5(this.options);this.store=new L5(this.options.resources,this.options);const p=this.services;p.logger=Gi,p.resourceStore=this.store,p.languageUtils=g,p.pluralResolver=new GZ(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 z5(this.options),p.utils={hasLoadedNamespace:this.hasLoadedNamespace.bind(this)},p.backendConnector=new ZZ(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 zy(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=ry),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=Xm(),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=ry){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=Xm();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=ry),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"&&Hz.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=Xm();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=zT(p,{...this.options,...u})),`${f.keyPrefix}${m}${p}`)):(typeof s=="function"&&(s=zT(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=Xm();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=Xm();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 I5(nE());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 gp(t,n);return r.createInstance=gp.createInstance,r}cloneInstance(t={},n=ry){const r=t.forkResourceStore;r&&delete t.forkResourceStore;const o={...this.options,...t,isClone:!0},s=new gp(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 L5(c,o),s.services.resourceStore=s.store}if(t.interpolation){const f={...nE().interpolation,...this.options.interpolation,...t.interpolation},m={...o,interpolation:f};s.services.interpolator=new z5(m)}return s.translator=new zy(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 pr=gp.createInstance();pr.createInstance;pr.dir;pr.init;pr.loadResources;pr.reloadResources;pr.use;pr.changeLanguage;pr.getFixedT;pr.t;pr.exists;pr.setDefaultNamespace;pr.hasLoadedNamespace;pr.loadNamespaces;pr.loadLanguages;const{slice:rJ,forEach:aJ}=[];function iJ(e){return aJ.call(rJ.call(arguments,1),t=>{if(t)for(const n in t)e[n]===void 0&&(e[n]=t[n])}),e}function oJ(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 H5=/^[\u0009\u0020-\u007e\u0080-\u00ff]+$/,sJ=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(!H5.test(r.domain))throw new TypeError("option domain is invalid");s+=`; Domain=${r.domain}`}if(r.path){if(!H5.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},F5={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=sJ(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 lJ={name:"cookie",lookup(e){let{lookupCookie:t}=e;if(t&&typeof document<"u")return F5.read(t)||void 0},cacheUserLanguage(e,t){let{lookupCookie:n,cookieMinutes:r,cookieDomain:o,cookieOptions:s}=t;n&&typeof document<"u"&&F5.create(n,e,r,o,s)}},uJ={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}},cJ={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 td=null;const K5=()=>{if(td!==null)return td;try{if(td=typeof window<"u"&&window.localStorage!==null,!td)return!1;const e="i18next.translate.boo";window.localStorage.setItem(e,"foo"),window.localStorage.removeItem(e)}catch{td=!1}return td};var dJ={name:"localStorage",lookup(e){let{lookupLocalStorage:t}=e;if(t&&K5())return window.localStorage.getItem(t)||void 0},cacheUserLanguage(e,t){let{lookupLocalStorage:n}=t;n&&K5()&&window.localStorage.setItem(n,e)}};let nd=null;const G5=()=>{if(nd!==null)return nd;try{if(nd=typeof window<"u"&&window.sessionStorage!==null,!nd)return!1;const e="i18next.translate.boo";window.sessionStorage.setItem(e,"foo"),window.sessionStorage.removeItem(e)}catch{nd=!1}return nd};var fJ={name:"sessionStorage",lookup(e){let{lookupSessionStorage:t}=e;if(t&&G5())return window.sessionStorage.getItem(t)||void 0},cacheUserLanguage(e,t){let{lookupSessionStorage:n}=t;n&&G5()&&window.sessionStorage.setItem(n,e)}},mJ={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}},pJ={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}},hJ={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}},gJ={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 Gz=!1;try{document.cookie,Gz=!0}catch{}const Yz=["querystring","cookie","localStorage","sessionStorage","navigator","htmlTag"];Gz||Yz.splice(1,1);const vJ=()=>({order:Yz,lookupQuerystring:"lng",lookupCookie:"i18next",lookupLocalStorage:"i18nextLng",lookupSessionStorage:"i18nextLng",caches:["localStorage"],excludeCacheFor:["cimode"],convertDetectedLanguage:e=>e});class Qz{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=iJ(n,this.options||{},vJ()),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(lJ),this.addDetector(uJ),this.addDetector(dJ),this.addDetector(fJ),this.addDetector(mJ),this.addDetector(pJ),this.addDetector(hJ),this.addDetector(gJ),this.addDetector(cJ)}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&&!oJ(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)}))}}Qz.type="languageDetector";const yJ=(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)},Y5={},Xz=(e,t,n,r)=>{Ou(n)&&Y5[n]||(Ou(n)&&(Y5[n]=new Date),yJ(e,t,n,r))},Wz=(e,t)=>()=>{if(e.isInitialized)t();else{const n=()=>{setTimeout(()=>{e.off("initialized",n)},0),t()};e.on("initialized",n)}},UT=(e,t,n)=>{e.loadNamespaces(t,Wz(e,n))},Q5=(e,t,n,r)=>{if(Ou(n)&&(n=[n]),e.options.preload&&e.options.preload.indexOf(t)>-1)return UT(e,n,r);n.forEach(o=>{e.options.ns.indexOf(o)<0&&e.options.ns.push(o)}),e.loadLanguages(t,Wz(e,r))},bJ=(e,t,n={})=>!t.languages||!t.languages.length?(Xz(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",xJ=e=>typeof e=="object"&&e!==null,wJ=/&(?:amp|#38|lt|#60|gt|#62|apos|#39|quot|#34|nbsp|#160|copy|#169|reg|#174|hellip|#8230|#x2F|#47);/g,NJ={"&amp;":"&","&#38;":"&","&lt;":"<","&#60;":"<","&gt;":">","&#62;":">","&apos;":"'","&#39;":"'","&quot;":'"',"&#34;":'"',"&nbsp;":" ","&#160;":" ","&copy;":"©","&#169;":"©","&reg;":"®","&#174;":"®","&hellip;":"…","&#8230;":"…","&#x2F;":"/","&#47;":"/"},EJ=e=>NJ[e],SJ=e=>e.replace(wJ,EJ);let qT={bindI18n:"languageChanged",bindI18nStore:"",transEmptyNodeValue:"",transSupportBasicHtmlNodes:!0,transWrapTextNodes:"",transKeepBasicHtmlNodesFor:["br","strong","i","p"],useSuspense:!0,unescape:SJ,transDefaultProps:void 0};const AJ=(e={})=>{qT={...qT,...e}},OJ=()=>qT;let Zz;const TJ=e=>{Zz=e},CJ=()=>Zz,_J={type:"3rdParty",init(e){AJ(e.options.react),TJ(e)}},DJ=R.createContext();class RJ{constructor(){this.usedNamespaces={}}addUsedNamespaces(t){t.forEach(n=>{this.usedNamespaces[n]||(this.usedNamespaces[n]=!0)})}getUsedNamespaces(){return Object.keys(this.usedNamespaces)}}var rE={exports:{}},aE={},X5;function jJ(){if(X5)return aE;X5=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,_=N[1];return f(function(){T.value=x,T.getSnapshot=S,n(T)&&_({inst:T})},[b,x,S]),c(function(){return n(T)&&_({inst:T}),b(function(){n(T)&&_({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=Jd(),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;aE.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())})(),aE}var W5;function PJ(){return W5||(W5=1,rE.exports=jJ()),rE.exports}var Jz=PJ();const MJ=(e,t)=>Ou(t)?t:xJ(t)&&Ou(t.defaultValue)?t.defaultValue:Array.isArray(e)?e[e.length-1]:e,LJ={t:MJ,ready:!1},kJ=()=>()=>{},q_=(e,t={})=>{const{i18n:n}=t,{i18n:r,defaultNS:o}=R.useContext(DJ)||{},s=n||r||CJ();s&&!s.reportNamespaces&&(s.reportNamespaces=new RJ),s||Xz(s,"NO_I18NEXT_INSTANCE","useTranslation: You will need to pass in an i18next instance by using initReactI18next");const u=R.useMemo(()=>({...OJ(),...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 kJ;const{bindI18n:B,bindI18nStore:z}=u,q=()=>{y.current+=1,V()};return B&&s.on(B,q),z&&s.store.on(z,q),()=>{B&&B.split(" ").forEach(F=>s.off(F,q)),z&&z.split(" ").forEach(F=>s.store.off(F,q))}},[s,u]),S=R.useRef(),x=R.useCallback(()=>{if(!s)return LJ;const V=!!(s.isInitialized||s.initializedStoreOnce)&&p.every(ee=>bJ(ee,s,u)),B=t.lng||s.language,z=y.current,q=S.current;if(q&&q.ready===V&&q.lng===B&&q.keyPrefix===f&&q.revision===z)return q;const Y={t:s.getFixedT(B,u.nsMode==="fallback"?p:p[0],f),ready:V,lng:B,keyPrefix:f,revision:z};return S.current=Y,Y},[s,p,f,u,t.lng]),[N,T]=R.useState(0),{t:_,ready:D}=Jz.useSyncExternalStore(b,x,x);R.useEffect(()=>{if(s&&!D&&!c){const V=()=>T(B=>B+1);t.lng?Q5(s,t.lng,p,V):UT(s,p,V)}},[s,t.lng,p,D,c,N]);const P=s||{},A=R.useRef(null),C=R.useRef(),j=V=>{const B=Object.getOwnPropertyDescriptors(V);B.__original&&delete B.__original;const z=Object.create(Object.getPrototypeOf(V),B);if(!Object.prototype.hasOwnProperty.call(z,"__original"))try{Object.defineProperty(z,"__original",{value:V,writable:!1,enumerable:!1,configurable:!1})}catch{}return z},L=R.useMemo(()=>{const V=P,B=V?.language;let z=V;V&&(A.current&&A.current.__original===V?C.current!==B?(z=j(V),A.current=z,C.current=B):z=A.current:(z=j(V),A.current=z,C.current=B));const q=[_,z,D];return q.t=_,q.i18n=z,q.ready=D,q},[_,P,D,P.resolvedLanguage,P.language,P.languages]);if(s&&c&&!D)throw new Promise(V=>{const B=()=>V();t.lng?Q5(s,t.lng,p,B):UT(s,p,B)});return L},IJ={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:"全部类型"}},$J={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"}},VJ={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:"جميع الأنواع"}},BJ={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:"すべてのタイプ"}},zJ={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:"모든 유형"}},UJ={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"}},qJ={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:"Все типы"}},HJ=[{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:"🇷🇺"}];pr.use(Qz).use(_J).init({resources:{zh:{translation:IJ},en:{translation:$J},ar:{translation:VJ},ja:{translation:BJ},ko:{translation:zJ},fr:{translation:UJ},ru:{translation:qJ}},fallbackLng:"zh",supportedLngs:["zh","en","ar","ja","ko","fr","ru"],detection:{order:["localStorage","navigator"],caches:["localStorage"],lookupLocalStorage:"nac-admin-language"},interpolation:{escapeValue:!1}});pr.on("languageChanged",e=>{const t=HJ.find(n=>n.code===e);document.documentElement.dir=t?.dir??"ltr",document.documentElement.lang=e});const FJ="Please login (10001)";var iE={exports:{}},Wm={},oE={exports:{}},sE={},Z5;function KJ(){return Z5||(Z5=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 U=e.unstable_now();q=U;var G=!0;try{e:{D=!1,P&&(P=!1,j(B),B=-1),_=!0;var K=T;try{t:{for(u(U),N=r(b);N!==null&&!(N.expirationTime>U&&f());){var te=N.callback;if(typeof te=="function"){N.callback=null,T=N.priorityLevel;var ne=te(N.expirationTime<=U);if(U=e.unstable_now(),typeof ne=="function"){N.callback=ne,u(U),G=!0;break t}N===r(b)&&o(b),u(U)}else o(b);N=r(b)}if(N!==null)G=!0;else{var I=r(S);I!==null&&m(c,I.startTime-U),G=!1}}break e}finally{N=null,T=K,_=!1}G=void 0}}finally{G?F():V=!1}}}function n(U,G){var K=U.length;U.push(G);e:for(;0<K;){var te=K-1>>>1,ne=U[te];if(0<s(ne,G))U[te]=G,U[K]=ne,K=te;else break e}}function r(U){return U.length===0?null:U[0]}function o(U){if(U.length===0)return null;var G=U[0],K=U.pop();if(K!==G){U[0]=K;e:for(var te=0,ne=U.length,I=ne>>>1;te<I;){var Z=2*(te+1)-1,W=U[Z],ae=Z+1,ge=U[ae];if(0>s(W,K))ae<ne&&0>s(ge,W)?(U[te]=ge,U[ae]=K,te=ae):(U[te]=W,U[Z]=K,te=Z);else if(ae<ne&&0>s(ge,K))U[te]=ge,U[ae]=K,te=ae;else break e}}return G}function s(U,G){var K=U.sortIndex-G.sortIndex;return K!==0?K:U.id-G.id}function u(U){for(var G=r(S);G!==null;){if(G.callback===null)o(S);else if(G.startTime<=U)o(S),G.sortIndex=G.expirationTime,n(b,G);else break;G=r(S)}}function c(U){if(P=!1,u(U),!D)if(r(b)!==null)D=!0,V||(V=!0,F());else{var G=r(S);G!==null&&m(c,G.startTime-U)}}function f(){return A?!0:!(e.unstable_now()-q<z)}function m(U,G){B=C(function(){U(e.unstable_now())},G)}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,_=!1,D=!1,P=!1,A=!1,C=typeof setTimeout=="function"?setTimeout:null,j=typeof clearTimeout=="function"?clearTimeout:null,L=typeof setImmediate<"u"?setImmediate:null,V=!1,B=-1,z=5,q=-1;if(typeof L=="function")var F=function(){L(t)};else if(typeof MessageChannel<"u"){var Y=new MessageChannel,ee=Y.port2;Y.port1.onmessage=t,F=function(){ee.postMessage(null)}}else F=function(){C(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(U){U.callback=null},e.unstable_forceFrameRate=function(U){0>U||125<U?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):z=0<U?Math.floor(1e3/U):5},e.unstable_getCurrentPriorityLevel=function(){return T},e.unstable_next=function(U){switch(T){case 1:case 2:case 3:var G=3;break;default:G=T}var K=T;T=G;try{return U()}finally{T=K}},e.unstable_requestPaint=function(){A=!0},e.unstable_runWithPriority=function(U,G){switch(U){case 1:case 2:case 3:case 4:case 5:break;default:U=3}var K=T;T=U;try{return G()}finally{T=K}},e.unstable_scheduleCallback=function(U,G,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,U){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,U={id:x++,callback:G,priorityLevel:U,startTime:K,expirationTime:ne,sortIndex:-1},K>te?(U.sortIndex=K,n(S,U),r(b)===null&&U===r(S)&&(P?(j(B),B=-1):P=!0,m(c,K-te))):(U.sortIndex=ne,n(b,U),D||_||(D=!0,V||(V=!0,F()))),U},e.unstable_shouldYield=f,e.unstable_wrapCallback=function(U){var G=T;return function(){var K=T;T=G;try{return U.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())})()})(sE)),sE}var J5;function GJ(){return J5||(J5=1,oE.exports=KJ()),oE.exports}var lE={exports:{}},ur={},e3;function YJ(){if(e3)return ur;e3=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=Jd(),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 t3;function eU(){return t3||(t3=1,lE.exports=YJ()),lE.exports}var n3;function QJ(){if(n3)return Wm;n3=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 fG(a,i,l,d)}function b(a,i){a.context===Rs&&(fw(a.current,2,i,a,null,null),dc())}function S(a,i){if(xa!==null){var l=i.staleFamilies;i=i.updatedFamilies,qf(),hj(a.current,i,l),dc()}}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 _(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 C(a){var i=a.tag;if(i===5||i===26||i===27||i===6)return a;for(a=a.child;a!==null;){if(i=C(a),i!==null)return i;a=a.sibling}return null}function j(a){return a===null||typeof a!="object"?null:(a=NL&&a[NL]||a["@@iterator"],typeof a=="function"?a:null)}function L(a){if(a==null)return null;if(typeof a=="function")return a.$$typeof===MY?null:a.displayName||a.name||null;if(typeof a=="string")return a;switch(a){case yc:return"Fragment";case bw:return"Profiler";case Fg:return"StrictMode";case ww:return"Suspense";case Nw:return"SuspenseList";case Ew: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 vc:return"Portal";case ji:return a.displayName||"Context";case xw:return(a._context.displayName||"Context")+".Consumer";case Jf:var i=a.render;return a=a.displayName,a||(a=i.displayName||i.name||"",a=a!==""?"ForwardRef("+a+")":"ForwardRef"),a;case Kg: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===Fg?"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 z(a){return{current:a}}function q(a,i){0>Eo?console.error("Unexpected pop."):(i!==Aw[Eo]&&console.error("Unexpected Fiber popped."),a.current=Sw[Eo],Sw[Eo]=null,Aw[Eo]=null,Eo--)}function F(a,i,l){Eo++,Sw[Eo]=a.current,Aw[Eo]=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 ee(a,i){F(As,i,a),F(em,a,a),F(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)?KM(i):$o;break;default:if(l=i.tagName,i=i.namespaceURI)i=KM(i),i=GM(i,l);else switch(l){case"svg":i=Zc;break;case"math":i=Hv;break;default:i=$o}}l=l.toLowerCase(),l=BR(null,l),l={context:i,ancestorInfo:l},q(Ss,a),F(Ss,l,a)}function U(a){q(Ss,a),q(em,a),q(As,a)}function G(){return Y(Ss.current)}function K(a){a.memoizedState!==null&&F(Gg,a,a);var i=Y(Ss.current),l=a.type,d=GM(i.context,l);l=BR(i.ancestorInfo,l),d={context:d,ancestorInfo:l},i!==d&&(F(em,a,a),F(Ss,d,a))}function te(a){em.current===a&&(q(Ss,a),q(em,a)),Gg.current===a&&(q(Gg,a),Fm._currentValue=ru)}function ne(){}function I(){if(tm===0){EL=console.log,SL=console.info,AL=console.warn,OL=console.error,TL=console.group,CL=console.groupCollapsed,_L=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})}tm++}function Z(){if(tm--,tm===0){var a={configurable:!0,enumerable:!0,writable:!0};Object.defineProperties(console,{log:dt({},a,{value:EL}),info:dt({},a,{value:SL}),warn:dt({},a,{value:AL}),error:dt({},a,{value:OL}),group:dt({},a,{value:TL}),groupCollapsed:dt({},a,{value:CL}),groupEnd:dt({},a,{value:_L})})}0>tm&&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(Ow===void 0)try{throw Error()}catch(l){var i=l.stack.trim().match(/\n( *(at )?)/);Ow=i&&i[1]||"",DL=-1<l.stack.indexOf(`
at`)?" (<anonymous>)":-1<l.stack.indexOf("@")?"@unknown:0:0":""}return`
`+Ow+a+DL}function ge(a,i){if(!a||Tw)return"";var l=Cw.get(a);if(l!==void 0)return l;Tw=!0,l=Error.prepareStackTrace,Error.prepareStackTrace=void 0;var d=null;d=he.H,he.H=null,I();try{var h={DetermineComponentFrameRoot:function(){try{if(i){var X=function(){throw Error()};if(Object.defineProperty(X.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(X,[])}catch(Ce){var fe=Ce}Reflect.construct(a,[],X)}else{try{X.call()}catch(Ce){fe=Ce}a.call(X.prototype)}}else{try{throw Error()}catch(Ce){fe=Ce}(X=a())&&typeof X.catch=="function"&&X.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 k=O.split(`
`),oe=M.split(`
`);for(E=v=0;v<k.length&&!k[v].includes("DetermineComponentFrameRoot");)v++;for(;E<oe.length&&!oe[E].includes("DetermineComponentFrameRoot");)E++;if(v===k.length||E===oe.length)for(v=k.length-1,E=oe.length-1;1<=v&&0<=E&&k[v]!==oe[E];)E--;for(;1<=v&&0<=E;v--,E--)if(k[v]!==oe[E]){if(v!==1||E!==1)do if(v--,E--,0>E||k[v]!==oe[E]){var se=`
`+k[v].replace(" at new "," at ");return a.displayName&&se.includes("<anonymous>")&&(se=se.replace("<anonymous>",a.displayName)),typeof a=="function"&&Cw.set(a,se),se}while(1<=v&&0<=E);break}}}finally{Tw=!1,he.H=d,Z(),Error.prepareStackTrace=l}return k=(k=a?a.displayName||a.name:"")?ae(k):"",typeof a=="function"&&Cw.set(a,k),k}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 ue(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,k=v.debugLocation;if(k!=null){var oe=W(k),se=oe.lastIndexOf(`
`),X=se===-1?oe:oe.slice(se+1);if(X.indexOf(O)!==-1){var fe=`
`+X;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{xc=i.inject(a),sr=i}catch(l){console.error("React instrumentation encountered an error: %o.",l)}return!!i.checkDCE}function je(a){if(typeof zY=="function"&&UY(a),sr&&typeof sr.setStrictMode=="function")try{sr.setStrictMode(xc,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-(qY(a)/HY|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=Xg;return Xg<<=1,(Xg&62914560)===0&&(Xg=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,k=a.hiddenUpdates;for(l=E&~l;0<l;){var oe=31-vr(l),se=1<<oe;O[oe]=0,M[oe]=-1;var X=k[oe];if(X!==null)for(k[oe]=null,oe=0;oe<X.length;oe++){var fe=X[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-vr(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-vr(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 uo(a,i,l){if(Li)for(a=a.pendingUpdatersLaneMap;0<l;){var d=31-vr(l),h=1<<d;a[d].add(i),l&=~h}}function co(a,i){if(Li)for(var l=a.pendingUpdatersLaneMap,d=a.memoizedUpdaters;0<i;){var h=31-vr(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 fo(a){return a&=-a,va<a?ki<a?(a&134217727)!==0?So:Wg:ki:va}function pi(){var a=Ot.p;return a!==0?a:(a=window.event,a===void 0?So:hL(a.type))}function $(a,i){var l=Ot.p;try{return Ot.p=a,i()}finally{Ot.p=l}}function le(a){delete a[tr],delete a[yr],delete a[Pw],delete a[FY],delete a[KY]}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=tL(a);a!==null;){if(l=a[tr])return l;a=tL(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[RL];return i||(i=a[RL]={hoistableStyles:new Map,hoistableScripts:new Map}),i}function Se(a){a[nm]=!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(Mw[l]=a,a==="onDoubleClick"&&(Mw.ondblclick=a),a=0;a<i.length;a++)jL.add(i[a])}function It(a,i){GY[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 hr(a){return Fa.call(ML,a)?!0:Fa.call(PL,a)?!1:YY.test(a)?ML[a]=!0:(PL[a]=!0,console.error("Invalid attribute name: `%s`",a),!1)}function dn(a,i,l){if(hr(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(hr(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 mo(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 rn(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 yf(a){var i=a.type;return(a=a.nodeName)&&a.toLowerCase()==="input"&&(i==="checkbox"||i==="radio")}function po(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 $h(a){if(!a._valueTracker){var i=yf(a)?"checked":"value";a._valueTracker=po(a,i,""+a[i])}}function TR(a){if(!a)return!1;var i=a._valueTracker;if(!i)return!0;var l=i.getValue(),d="";return a&&(d=yf(a)?a.checked?"true":"false":a.value),a=d,a!==l?(i.setValue(a),!0):!1}function Vh(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(QY,function(i){return"\\"+i.charCodeAt(0).toString(16)+" "})}function CR(a,i){i.checked===void 0||i.defaultChecked===void 0||kL||(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),kL=!0),i.value===void 0||i.defaultValue===void 0||LL||(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),LL=!0)}function mx(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=""+rn(i)):a.value!==""+rn(i)&&(a.value=""+rn(i)):E!=="submit"&&E!=="reset"||a.removeAttribute("value"),i!=null?px(a,E,rn(i)):l!=null?px(a,E,rn(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=""+rn(O)):a.removeAttribute("name")}function _R(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)){$h(a);return}l=l!=null?""+rn(l):"",i=i!=null?""+rn(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),$h(a)}function px(a,i,l){i==="number"&&Vh(a.ownerDocument)===a||a.defaultValue===""+l||(a.defaultValue=""+l)}function DR(a,i){i.value==null&&(typeof i.children=="object"&&i.children!==null?yw.Children.forEach(i.children,function(l){l==null||typeof l=="string"||typeof l=="number"||typeof l=="bigint"||$L||($L=!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||VL||(VL=!0,console.error("Pass a `value` prop if you set dangerouslyInnerHTML so React knows which value should be selected."))),i.selected==null||IL||(console.error("Use the `defaultValue` or `value` props on <select> instead of setting `selected` on <option>."),IL=!0)}function RR(){var a=me();return a?`
Check the render method of \``+a+"`.":""}function Ju(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=""+rn(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 jR(a,i){for(a=0;a<zL.length;a++){var l=zL[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,RR()):!i.multiple&&d&&console.error("The `%s` prop supplied to <select> must be a scalar value if `multiple` is false.%s",l,RR())}}i.value===void 0||i.defaultValue===void 0||BL||(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"),BL=!0)}function PR(a,i){i.value===void 0||i.defaultValue===void 0||UL||(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"),UL=!0),i.children!=null&&i.value==null&&console.error("Use the `defaultValue` or `value` props instead of setting children on <textarea>.")}function MR(a,i,l){if(i!=null&&(i=""+rn(i),i!==a.value&&(a.value=i),l==null)){a.defaultValue!==i&&(a.defaultValue=i);return}a.defaultValue=l!=null?""+rn(l):""}function LR(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=rn(i),a.defaultValue=l,d=a.textContent,d===l&&d!==""&&d!==null&&(a.value=d),$h(a)}function kR(a,i){return a.serverProps===void 0&&a.serverTail.length===0&&a.children.length===1&&3<a.distanceFromLeaf&&a.distanceFromLeaf>15-i?kR(a.children[0],i):a}function Yr(a){return" "+" ".repeat(a)}function ec(a){return"+ "+" ".repeat(a)}function bl(a){return"- "+" ".repeat(a)}function IR(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 bf(a,i){return qL.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 Bh(a,i,l){var d=120-2*l;if(i===null)return ec(l)+bf(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)),ec(l)+bf(a,d)+`
`+bl(l)+bf(i,d)+`
`}return Yr(l)+bf(a,d)+`
`}function hx(a){return Object.prototype.toString.call(a).replace(/^\[object (.*)\]$/,function(i,l){return l})}function xf(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=hx(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=xf(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 tc(a,i){return typeof a!="string"||qL.test(a)?"{"+xf(a,i-2)+"}":a.length>i-2?5>i?'"..."':'"'+a.slice(0,i-5)+'..."':'"'+a+'"'}function gx(a,i,l){var d=120-l.length-a.length,h=[],v;for(v in i)if(i.hasOwnProperty(v)&&v!=="children"){var E=tc(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 HK(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=xf(a[v],E);i.hasOwnProperty(v)?(E=xf(i[v],E),d+=ec(l)+v+": "+O+`
`,d+=bl(l)+v+": "+E+`
`):d+=ec(l)+v+": "+O+`
`}for(var M in h)h.hasOwnProperty(M)&&(a=xf(h[M],120-2*l-M.length-2),d+=bl(l)+M+": "+a+`
`);return d}function FK(a,i,l,d){var h="",v=new Map;for(k in l)l.hasOwnProperty(k)&&v.set(k.toLowerCase(),k);if(v.size===1&&v.has("children"))h+=gx(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 k=i[E];M=l[M];var oe=tc(k,O);O=tc(M,O),typeof k=="object"&&k!==null&&typeof M=="object"&&M!==null&&hx(k)==="Object"&&hx(M)==="Object"&&(2<Object.keys(k).length||2<Object.keys(M).length||-1<oe.indexOf("...")||-1<O.indexOf("..."))?h+=Yr(d+1)+E+`={{
`+HK(k,M,d+2)+Yr(d+1)+`}}
`:(h+=ec(d+1)+E+"="+oe+`
`,h+=bl(d+1)+E+"="+O+`
`)}else h+=Yr(d+1)+E+"="+tc(i[E],O)+`
`}v.forEach(function(se){if(se!=="children"){var X=120-2*(d+1)-se.length-1;h+=bl(d+1)+se+"="+tc(l[se],X)+`
`}}),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+=Bh(v,""+a,d+1)):(typeof i=="string"||typeof i=="number"||typeof i=="bigint")&&(h=a==null?h+Bh(""+i,null,d+1):h+Bh(""+i,void 0,d+1)),h}function $R(a,i){var l=IR(a);if(l===null){for(l="",a=a.child;a;)l+=$R(a,i),a=a.sibling;return l}return Yr(i)+"<"+l+`>
`}function vx(a,i){var l=kR(a,i);if(l!==a&&(a.children.length!==1||a.children[0]!==l))return Yr(i)+`...
`+vx(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=Bh(h,a.serverProps,i),i++;else if(v=IR(a.fiber),v!==null)if(a.serverProps===void 0){d=i;var E=120-2*d-v.length-2,O="";for(k in h)if(h.hasOwnProperty(k)&&k!=="children"){var M=tc(h[k],15);if(E-=k.length+M.length+2,0>E){O+=" ...";break}O+=" "+k+"="+M}d=Yr(d)+"<"+v+O+`>
`,i++}else a.serverProps===null?(d=gx(v,h,ec(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=FK(v,h,a.serverProps,i),i++);var k="";for(h=a.fiber.child,v=0;h&&v<a.children.length;)E=a.children[v],E.fiber===h?(k+=vx(E,i),v++):k+=$R(h,i),h=h.sibling;for(h&&0<a.children.length&&(k+=Yr(i)+`...
`),h=a.serverTail,a.serverProps===null&&i--,a=0;a<h.length;a++)v=h[a],k=typeof v=="string"?k+(bl(i)+bf(v,120-2*i)+`
`):k+gx(v.type,v.props,bl(i));return l+d+k}function yx(a){try{return`
`+vx(a,0)}catch{return""}}function VR(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?yx(h).replaceAll(/^[+-]/gm,">"):""}function BR(a,i){var l=dt({},a||FL),d={tag:i};return HL.indexOf(i)!==-1&&(l.aTagInScope=null,l.buttonTagInScope=null,l.nobrTagInScope=null),WY.indexOf(i)!==-1&&(l.pTagInButtonScope=null),XY.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 zR(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 ZY.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 KK(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 UR(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 bx(a,i){i=i||FL;var l=i.current;if(i=(l=zR(a,l&&l.tag,i.implicitRootScope)?null:l)?null:KK(a,i),i=l||i,!i)return!0;var d=i.tag;if(i=String(!!l)+"|"+a+"|"+d,Zg[i])return!1;Zg[i]=!0;var h=(i=na)?UR(i.return,d):null,v=i!==null&&h!==null?VR(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 zh(a,i,l){if(l||zR("#text",i,!1))return!0;if(l="#text|"+i,Zg[l])return!1;Zg[l]=!0;var d=(l=na)?UR(l,i):null;return l=l!==null&&d!==null?VR(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 wf(a,i){if(i){var l=a.firstChild;if(l&&l===a.lastChild&&l.nodeType===3){l.nodeValue=i;return}}a.textContent=i}function GK(a){return a.replace(tQ,function(i,l){return l.toUpperCase()})}function qR(a,i,l){var d=i.indexOf("--")===0;d||(-1<i.indexOf("-")?wc.hasOwnProperty(i)&&wc[i]||(wc[i]=!0,console.error("Unsupported style property %s. Did you mean %s?",i,GK(i.replace(eQ,"ms-")))):JY.test(i)?wc.hasOwnProperty(i)&&wc[i]||(wc[i]=!0,console.error("Unsupported vendor-prefixed style property %s. Did you mean %s?",i,i.charAt(0).toUpperCase()+i.slice(1))):!YL.test(l)||kw.hasOwnProperty(l)&&kw[l]||(kw[l]=!0,console.error(`Style property values shouldn't contain a semicolon. Try "%s: %s" instead.`,i,l.replace(YL,""))),typeof l=="number"&&(isNaN(l)?QL||(QL=!0,console.error("`NaN` is an invalid value for the `%s` css style property.",i)):isFinite(l)||XL||(XL=!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||WL.has(i)?i==="float"?a.cssFloat=l:(et(l,i),a[i]=(""+l).trim()):a[i]=l+"px"}function HR(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=Lw[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=Lw[O]||[O],v=0;v<h.length;v++)d[h[v]]=O;O={};for(var M in i)for(h=Lw[M]||[M],v=0;v<h.length;v++)O[h[v]]=M;M={};for(var k in d)if(h=d[k],(v=O[k])&&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 X in i)k=i[X],i.hasOwnProperty(X)&&l[X]!==k&&qR(a,X,k)}else for(d in i)i.hasOwnProperty(d)&&qR(a,d,i[d])}function Nf(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 FR(a){return nQ.get(a)||a}function YK(a,i){if(Fa.call(Ec,i)&&Ec[i])return!0;if(aQ.test(i)){if(a="aria-"+i.slice(4).toLowerCase(),a=ZL.hasOwnProperty(a)?a:null,a==null)return console.error("Invalid ARIA attribute `%s`. ARIA attributes follow the pattern aria-* and must be lowercase.",i),Ec[i]=!0;if(i!==a)return console.error("Invalid ARIA attribute `%s`. Did you mean `%s`?",i,a),Ec[i]=!0}if(rQ.test(i)){if(a=i.toLowerCase(),a=ZL.hasOwnProperty(a)?a:null,a==null)return Ec[i]=!0,!1;i!==a&&(console.error("Unknown ARIA attribute `%s`. Did you mean `%s`?",i,a),Ec[i]=!0)}return!0}function QK(a,i){var l=[],d;for(d in i)YK(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 XK(a,i,l,d){if(Fa.call(br,i)&&br[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."),br[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),br[i]=!0;if(ek.test(i))return console.error("Unknown event handler property `%s`. It will be ignored.",i),br[i]=!0}else if(ek.test(i))return iQ.test(i)&&console.error("Invalid event handler property `%s`. React events use the camelCase naming convention, for example `onClick`.",i),br[i]=!0;if(oQ.test(i)||sQ.test(i))return!0;if(h==="innerhtml")return console.error("Directly setting property `innerHTML` is not permitted. For more information, lookup documentation on `dangerouslySetInnerHTML`."),br[i]=!0;if(h==="aria")return console.error("The `aria` attribute is reserved for future use in React. Pass individual `aria-` attributes instead."),br[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),br[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),br[i]=!0;if(ev.hasOwnProperty(h)){if(h=ev[h],h!==i)return console.error("Invalid DOM property `%s`. Did you mean `%s`?",i,h),br[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),br[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),br[i]=!0)}case"function":case"symbol":return br[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),br[i]=!0}}return!0}function WK(a,i,l){var d=[],h;for(h in i)XK(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 Ef(a){return lQ.test(""+a)?"javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')":a}function ho(){}function xx(a){return a=a.target||a.srcElement||window,a.correspondingUseElement&&(a=a.correspondingUseElement),a.nodeType===3?a.parentNode:a}function KR(a){var i=Te(a);if(i&&(a=i.stateNode)){var l=a[yr]||null;e:switch(a=i.stateNode,i.type){case"input":if(mx(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[yr]||null;if(!h)throw Error("ReactDOMInput: Mixing React and non-React radio inputs with the same `name` is not supported.");mx(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&&TR(d)}break e;case"textarea":MR(a,l.value,l.defaultValue);break e;case"select":i=l.value,i!=null&&Ju(a,!!l.multiple,i,!1)}}}function GR(a,i,l){if(Iw)return a(i,l);Iw=!0;try{var d=a(i);return d}finally{if(Iw=!1,(Sc!==null||Ac!==null)&&(dc(),Sc&&(i=Sc,a=Ac,Ac=Sc=null,KR(i),a)))for(i=0;i<a.length;i++)KR(a[i])}}function Sf(a,i){var l=a.stateNode;if(l===null)return null;var d=l[yr]||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 YR(){if(tv)return tv;var a,i=Vw,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 tv=h.slice(a,1<d?1-d:void 0)}function Uh(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 qh(){return!0}function QR(){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)?qh:QR,this.isPropagationStopped=QR,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=qh)},stopPropagation:function(){var l=this.nativeEvent;l&&(l.stopPropagation?l.stopPropagation():typeof l.cancelBubble!="unknown"&&(l.cancelBubble=!0),this.isPropagationStopped=qh)},persist:function(){},isPersistent:qh}),i}function ZK(a){var i=this.nativeEvent;return i.getModifierState?i.getModifierState(a):(a=wQ[a])?!!i[a]:!1}function wx(){return ZK}function XR(a,i){switch(a){case"keyup":return PQ.indexOf(i.keyCode)!==-1;case"keydown":return i.keyCode!==ak;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function WR(a){return a=a.detail,typeof a=="object"&&"data"in a?a.data:null}function JK(a,i){switch(a){case"compositionend":return WR(i);case"keypress":return i.which!==ok?null:(lk=!0,sk);case"textInput":return a=i.data,a===sk&&lk?null:a;default:return null}}function eG(a,i){if(Oc)return a==="compositionend"||!qw&&XR(a,i)?(a=YR(),tv=Vw=Cs=null,Oc=!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 ik&&i.locale!=="ko"?null:i.data;default:return null}}function ZR(a){var i=a&&a.nodeName&&a.nodeName.toLowerCase();return i==="input"?!!LQ[a.type]:i==="textarea"}function tG(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 JR(a,i,l,d){Sc?Ac?Ac.push(d):Ac=[d]:Sc=d,i=Lg(i,"onChange"),0<i.length&&(l=new nv("onChange","change",null,l,d),a.push({event:l,listeners:i}))}function nG(a){LM(a,0)}function Hh(a){var i=Me(a);if(TR(i))return a}function ej(a,i){if(a==="change")return i}function tj(){lm&&(lm.detachEvent("onpropertychange",nj),um=lm=null)}function nj(a){if(a.propertyName==="value"&&Hh(um)){var i=[];JR(i,um,a,xx(a)),GR(nG,i)}}function rG(a,i,l){a==="focusin"?(tj(),lm=i,um=l,lm.attachEvent("onpropertychange",nj)):a==="focusout"&&tj()}function aG(a){if(a==="selectionchange"||a==="keyup"||a==="keydown")return Hh(um)}function iG(a,i){if(a==="click")return Hh(i)}function oG(a,i){if(a==="input"||a==="change")return Hh(i)}function sG(a,i){return a===i&&(a!==0||1/a===1/i)||a!==a&&i!==i}function Af(a,i){if(xr(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)||!xr(a[h],i[h]))return!1}return!0}function rj(a){for(;a&&a.firstChild;)a=a.firstChild;return a}function aj(a,i){var l=rj(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=rj(l)}}function ij(a,i){return a&&i?a===i?!0:a&&a.nodeType===3?!1:i&&i.nodeType===3?ij(a,i.parentNode):"contains"in a?a.contains(i):a.compareDocumentPosition?!!(a.compareDocumentPosition(i)&16):!1:!1}function oj(a){a=a!=null&&a.ownerDocument!=null&&a.ownerDocument.defaultView!=null?a.ownerDocument.defaultView:window;for(var i=Vh(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=Vh(a.document)}return i}function Nx(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 sj(a,i,l){var d=l.window===l?l.document:l.nodeType===9?l:l.ownerDocument;Fw||Tc==null||Tc!==Vh(d)||(d=Tc,"selectionStart"in d&&Nx(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}),cm&&Af(cm,d)||(cm=d,d=Lg(Hw,"onSelect"),0<d.length&&(i=new nv("onSelect","select",null,i,l),a.push({event:i,listeners:d}),i.target=Tc)))}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(Kw[a])return Kw[a];if(!Cc[a])return a;var i=Cc[a],l;for(l in i)if(i.hasOwnProperty(l)&&l in ck)return Kw[a]=i[l];return a}function za(a,i){hk.set(a,i),He(i,[a])}function lG(a){for(var i=av,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!==av&&i!==Ww)return Qw;i=Ww}else return Qw;else{if(typeof d=="function"||typeof d=="string"&&50<d.length||i!==av&&i!==Xw)return Qw;i=Xw}}return i}function Ex(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 k in i)k==="children"?i.children!=null&&(!jn(i.children)||0<i.children.length)&&(a=!0):Fa.call(i,k)&&k[0]!=="_"&&hi(k,i[k],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(k=lG(i),k===Xw||k===av){i=JSON.stringify(i);break}else if(k===Ww){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"&&(k=Object.getPrototypeOf(i))&&typeof k.constructor=="function"&&(v=k.constructor.name),l.push([h+"  ".repeat(d)+a,v==="Object"?3>d?"":"…":v]),3>d&&Ex(i,l,d+1,h);return}case"function":i=i.name===""?"() => {}":i.name+"() {}";break;case"string":i=i===UQ?"…":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 lj(a,i,l,d){var h=!0;for(E in a)E in i||(l.push([iv+"  ".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([iv+h,"…"],[ov+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([iv+h,E],[ov+h,E]),h=!1;continue}}else{var M=Object.prototype.toString.call(E),k=Object.prototype.toString.call(O);if(M===k&&(k==="[object Object]"||k==="[object Array]")){M=[yk+"  ".repeat(d)+v,k==="[object Array]"?"Array":""],l.push(M),k=l.length,lj(E,O,l,d+1)?k===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),k=Function.prototype.toString.call(O),M===k)){E=O.name===""?"() => {}":O.name+"() {}",l.push([yk+"  ".repeat(d)+v,E+" Referentially unequal function closure. Consider memoization."]);continue}}hi(v,E,l,d,iv),hi(v,O,l,d,ov)}h=!1}}else l.push([ov+"  ".repeat(d)+v,"…"]),h=!1;return h}function Ua(a){yt=a&63?"Blocking":a&64?"Gesture":a&4194176?"Transition":a&62914560?"Suspense":a&2080374784?"Idle":"Other"}function gi(a,i,l,d){Kt&&(Ds.start=i,Ds.end=l,Ao.color="warning",Ao.tooltipText=d,Ao.properties=null,(a=a._debugTask)?a.run(performance.measure.bind(performance,d,Ds)):performance.measure(d,Ds))}function Fh(a,i,l){gi(a,i,l,"Reconnect")}function Kh(a,i,l,d,h){var v=B(a);if(v!==null&&Kt){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 k=a.memoizedProps;O=a._debugTask,k!==null&&E!==null&&E.memoizedProps!==k?(M=[qQ],k=lj(E.memoizedProps,k,M,0),1<M.length&&(k&&!_s&&(E.lanes&h)===0&&100<a.actualDuration?(_s=!0,M[0]=HQ,Ao.color="warning",Ao.tooltipText=bk):(Ao.color=d,Ao.tooltipText=v),Ao.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 Sx(a,i,l,d){if(Kt){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&&Ex(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(Kt){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&&Ex(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&&Kt&&(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 uG(a,i,l,d){if(Kt&&!(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,yt,gt,h)):console.timeStamp(l,a,i,yt,gt,h)}}function uj(a,i,l,d){!Kt||i<=a||(l=(l&738197653)===l?"tertiary-dark":"primary-dark",d?d.run(console.timeStamp.bind(console,"Prewarm",a,i,yt,gt,l)):console.timeStamp("Prewarm",a,i,yt,gt,l))}function cj(a,i,l,d){!Kt||i<=a||(l=(l&738197653)===l?"tertiary-dark":"primary-dark",d?d.run(console.timeStamp.bind(console,"Suspended",a,i,yt,gt,l)):console.timeStamp("Suspended",a,i,yt,gt,l))}function cG(a,i,l,d,h,v){if(Kt&&!(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:yt,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 Ax(a,i,l,d){!Kt||i<=a||(d?d.run(console.timeStamp.bind(console,"Errored",a,i,yt,gt,"error")):console.timeStamp("Errored",a,i,yt,gt,"error"))}function dG(a,i,l,d){!Kt||i<=a||(d?d.run(console.timeStamp.bind(console,l,a,i,yt,gt,"secondary-light")):console.timeStamp(l,a,i,yt,gt,"secondary-light"))}function dj(a,i,l,d,h){if(Kt&&!(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:yt,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 Ox(a,i,l){!Kt||i<=a||console.timeStamp("Animating",a,i,yt,gt,"secondary-dark")}function Gh(){for(var a=_c,i=Zw=_c=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&&fj(l,h,v)}}function Yh(a,i,l,d){ba[_c++]=a,ba[_c++]=i,ba[_c++]=l,ba[_c++]=d,Zw|=d,a.lanes|=d,a=a.alternate,a!==null&&(a.lanes|=d)}function Tx(a,i,l,d){return Yh(a,i,l,d),Qh(a)}function or(a,i){return Yh(a,null,null,i),Qh(a)}function fj(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&dm||(h=!0)),a=v,v=v.return;return a.tag===3?(v=a.stateNode,h&&i!==null&&(h=31-vr(l),a=v.hiddenUpdates,d=a[h],d===null?a[h]=[i]:d.push(i),i.lane=l|536870912),v):null}function Qh(a){if($m>oX)throw Wl=$m=0,Vm=RN=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>sX&&(Wl=0,Vm=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&&CM(a);for(var i=a,l=i.return;l!==null;)i.alternate===null&&(i.flags&4098)!==0&&CM(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 Cx(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:Jf,render:i},a.displayName!==void 0&&(i.displayName=a.displayName),i):a:i.current}function mj(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===Jf||h===ta)&&(d=!0);break;case 14:case 15:(h===Kg||h===ta)&&(d=!0);break;default:return!1}return!!(d&&(a=xa(l),a!==void 0&&a===xa(i)))}function pj(a){xa!==null&&typeof WeakSet=="function"&&(Dc===null&&(Dc=new WeakSet),Dc.add(a))}function hj(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 k=!1;if(d=!1,M!==null&&(M=xa(M),M!==void 0&&(l.has(M)?d=!0:i.has(M)&&(O===1?d=!0:k=!0))),Dc!==null&&(Dc.has(a)||h!==null&&Dc.has(h))&&(d=!0),d&&(a._debugNeedsRemount=!0),(d||k)&&(h=or(a,2),h!==null&&ln(h,a,2)),v===null||d||hj(v,i,l),E===null)break;a=E}while(!0)}function fG(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,xk||typeof Object.preventExtensions!="function"||Object.preventExtensions(this)}function _x(a){return a=a.prototype,!(!a||!a.isReactComponent)}function go(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=Cx(a.type)}return l}function gj(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 Dx(a,i,l,d,h,v){var E=0,O=a;if(typeof a=="function")_x(a)&&(E=1),O=Nl(O);else if(typeof a=="string")E=G(),E=wY(a,l,E)?26:a==="html"||a==="head"||a==="body"?27:5;else e:switch(a){case Ew:return i=y(31,l,i,h),i.elementType=Ew,i.lanes=v,i;case yc:return El(l.children,h,v,i);case Fg:E=8,h|=lr,h|=Ka;break;case bw: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|at),i.elementType=bw,i.lanes=v,i.stateNode={effectDuration:0,passiveEffectDuration:0},i;case ww:return i=y(13,l,i,h),i.elementType=ww,i.lanes=v,i;case Nw:return i=y(19,l,i,h),i.elementType=Nw,i.lanes=v,i;default:if(typeof a=="object"&&a!==null)switch(a.$$typeof){case ji:E=10;break e;case xw:E=9;break e;case Jf:E=11,O=Cx(O);break e;case Kg: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 Xh(a,i,l){return i=Dx(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 Rx(a,i,l){return a=y(6,a,null,i),a.lanes=l,a}function vj(a){var i=y(18,null,null,Ge);return i.stateNode=a,i}function jx(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=Jw.get(a);return l!==void 0?l:(i={value:a,source:i,stack:ue(i)},Jw.set(a,i),i)}return{value:a,source:i,stack:ue(i)}}function vo(a,i){fs(),Rc[jc++]=fm,Rc[jc++]=sv,sv=a,fm=i}function yj(a,i,l){fs(),wa[Na++]=To,wa[Na++]=Co,wa[Na++]=kl,kl=a;var d=To;a=Co;var h=32-vr(d)-1;d&=~(1<<h),l+=1;var v=32-vr(i)+h;if(30<v){var E=h-h%5;v=(d&(1<<E)-1).toString(32),d>>=E,h-=E,To=1<<32-vr(i)+h|l<<h|d,Co=v+a}else To=1<<v|l<<h|d,Co=a}function Px(a){fs(),a.return!==null&&(vo(a,1),yj(a,1,0))}function Mx(a){for(;a===sv;)sv=Rc[--jc],Rc[jc]=null,fm=Rc[--jc],Rc[jc]=null;for(;a===kl;)kl=wa[--Na],wa[Na]=null,Co=wa[--Na],wa[Na]=null,To=wa[--Na],wa[Na]=null}function bj(){return fs(),kl!==null?{id:To,overflow:Co}:null}function xj(a,i){fs(),wa[Na++]=To,wa[Na++]=Co,wa[Na++]=kl,To=i.id,Co=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 wj(){mt&&console.error("We should not be hydrating here. This is a bug in React. Please file a bug.")}function Wh(a,i){$i||(a=Sl(a,0),a.serverProps=null,i!==null&&(i=JM(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=yx(d)),Of(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)),eN}function Nj(a){var i=a.stateNode,l=a.type,d=a.memoizedProps;switch(i[tr]=a,i[yr]=d,ew(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<Bm.length;l++)ht(Bm[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":It("input",d),ht("invalid",i),CR(i,d),_R(i,d.value,d.defaultValue,d.checked,d.defaultChecked,d.type,d.name,!0);break;case"option":DR(i,d);break;case"select":It("select",d),ht("invalid",i),jR(i,d);break;case"textarea":It("textarea",d),ht("invalid",i),PR(i,d),LR(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||VM(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=ho),i=!0):i=!1,i||ms(a,!0)}function Ej(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 nc(a){if(a!==nr)return!1;if(!mt)return Ej(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")||iw(a.type,a.memoizedProps)),l=!l),l&&Gt){for(l=Gt;l;){var d=Sl(a,0),h=JM(l);d.serverTail.push(h),l=h.type==="Suspense"?uw(l):ea(l.nextSibling)}ms(a)}if(Ej(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.");Gt=uw(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.");Gt=uw(a)}else i===27?(i=Gt,Es(a.type)?(a=qN,qN=null,Gt=a):Gt=i):Gt=nr?ea(a.stateNode.nextSibling):null;return!0}function Al(){Gt=nr=null,$i=mt=!1}function Lx(){var a=js;return a!==null&&(Sr===null?Sr=a:Sr.push.apply(Sr,a),js=null),a}function Of(a){js===null?js=[a]:js.push(a)}function kx(){var a=ra;if(a!==null){ra=null;for(var i=yx(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 Zh(){Pc=lv=null,Mc=!1}function ps(a,i,l){F(tN,i._currentValue,a),i._currentValue=l,F(nN,i._currentRenderer,a),i._currentRenderer!==void 0&&i._currentRenderer!==null&&i._currentRenderer!==Nk&&console.error("Detected multiple renderers concurrently rendering the same context provider. This is currently unsupported."),i._currentRenderer=Nk}function yo(a,i){a._currentValue=tN.current;var l=nN.current;q(nN,i),a._currentRenderer=l,q(tN,i)}function Ix(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 $x(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),Ix(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),Ix(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 rc(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;xr(h.pendingProps.value,E.value)||(a!==null?a.push(O):a=[O])}}else if(h===Gg.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(Fm):a=[Fm])}h=h.return}a!==null&&$x(i,a,l,d),i.flags|=262144}function Jh(a){for(a=a.firstContext;a!==null;){if(!xr(a.context._currentValue,a.memoizedValue))return!0;a=a.next}return!1}function Ol(a){lv=a,Pc=null,a=a.dependencies,a!==null&&(a.firstContext=null)}function en(a){return Mc&&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()."),Sj(lv,a)}function eg(a,i){return lv===null&&Ol(a),Sj(a,i)}function Sj(a,i){var l=i._currentValue;if(i={context:i,memoizedValue:l,next:null},Pc===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().");Pc=i,a.dependencies={lanes:0,firstContext:i,_debugThenableState:null},a.flags|=524288}else Pc=Pc.next=i;return l}function Vx(){return{controller:new GQ,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 Tf(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&&YQ(QQ,function(){a.controller.abort()})}function yi(a,i,l){(a&127)!==0?0>Vi&&(Vi=En(),pm=uv(i),rN=i,l!=null&&(aN=B(l)),(bt&(Mn|oa))!==Gn&&(un=!0,Ms=mm),a=Yf(),i=Gf(),a!==Lc||i!==hm?Lc=-1.1:i!==null&&(Ms=mm),Vl=a,hm=i):(a&4194048)!==0&&0>Sa&&(Sa=En(),gm=uv(i),Ek=i,l!=null&&(Sk=B(l)),0>jo)&&(a=Yf(),i=Gf(),(a!==ks||i!==Bl)&&(ks=-1.1),Ls=a,Bl=i)}function mG(a){if(0>Vi){Vi=En(),pm=a._debugTask!=null?a._debugTask:null,(bt&(Mn|oa))!==Gn&&(Ms=mm);var i=Yf(),l=Gf();i!==Lc||l!==hm?Lc=-1.1:l!==null&&(Ms=mm),Vl=i,hm=l}0>Sa&&(Sa=En(),gm=a._debugTask!=null?a._debugTask:null,0>jo)&&(a=Yf(),i=Gf(),(a!==ks||i!==Bl)&&(ks=-1.1),Ls=a,Bl=i)}function bo(){var a=Il;return Il=0,a}function tg(a){var i=Il;return Il=a,i}function Cf(a){var i=Il;return Il+=a,i}function ng(){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=an;return an=-0,a}function xi(a){0<=a&&(an=a)}function wi(){var a=tn;return tn=null,a}function Ni(){var a=un;return un=!1,a}function Bx(a){wr=En(),0>a.actualStartTime&&(a.actualStartTime=wr)}function zx(a){if(0<=wr){var i=En()-wr;a.actualDuration+=i,a.selfBaseDuration=i,wr=-1}}function Aj(a){if(0<=wr){var i=En()-wr;a.actualDuration+=i,wr=-1}}function Ei(){if(0<=wr){var a=En(),i=a-wr;wr=-1,Il+=i,an+=i,Ke=a}}function Oj(a){tn===null&&(tn=[]),tn.push(a),Do===null&&(Do=[]),Do.push(a)}function Si(){wr=En(),0>qe&&(qe=wr)}function _f(a){for(var i=a.child;i;)a.actualDuration+=i.actualDuration,i=i.sibling}function pG(a,i){if(ym===null){var l=ym=[];oN=0,zl=X1(),kc={status:"pending",value:void 0,then:function(d){l.push(d)}}}return oN++,i.then(Tj,Tj),i}function Tj(){if(--oN===0&&(-1<Sa||(jo=-1.1),ym!==null)){kc!==null&&(kc.status="fulfilled");var a=ym;ym=null,zl=0,kc=null;for(var i=0;i<a.length;i++)(0,a[i])()}}function hG(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 Ux(){var a=Ul.current;return a!==null?a:zt.pooledCache}function rg(a,i){i===null?F(Ul,Ul.current,a):F(Ul,i.pool,a)}function Cj(){var a=Ux();return a===null?null:{parent:Nn._currentValue,pool:a}}function _j(){return{didWarnAboutUncachedPromise:!1,thenables:[]}}function Dj(a){return a=a.status,a==="fulfilled"||a==="rejected"}function Rj(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(ho,ho),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,Pj(a),a;default:if(typeof i.status=="string")i.then(ho,ho);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,Pj(a),a}throw Hl=i,Am=!0,Ic}}function hs(a){try{return eX(a)}catch(i){throw i!==null&&typeof i=="object"&&typeof i.then=="function"?(Hl=i,Am=!0,Ic):i}}function jj(){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,Am=!1,a}function Pj(a){if(a===Ic||a===vv)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=it;return a!=null&&(it=i===null?a:i.concat(a)),i}function qx(){var a=it;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 ag(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=Xh(a,l.mode,0),i._debugInfo=it,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 ig(a){var i=Om;return Om+=1,$c===null&&($c=_j()),Rj($c,a,i)}function Df(a,i){i=i.props.ref,a.ref=i!==void 0?i:null}function Mj(a,i){throw i.$$typeof===jY?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 og(a,i){var l=qx();l!==null?l.run(Mj.bind(null,a,i)):Mj(a,i)}function Lj(a,i){var l=B(a)||"Component";Hk[l]||(Hk[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 sg(a,i){var l=qx();l!==null?l.run(Lj.bind(null,a,i)):Lj(a,i)}function kj(a,i){var l=B(a)||"Component";Fk[l]||(Fk[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 lg(a,i){var l=qx();l!==null?l.run(kj.bind(null,a,i)):kj(a,i)}function Ij(a){function i(Q,J){if(a){var re=Q.deletions;re===null?(Q.deletions=[J],Q.flags|=16):re.push(J)}}function l(Q,J){if(!a)return null;for(;J!==null;)i(Q,J),J=J.sibling;return null}function d(Q){for(var J=new Map;Q!==null;)Q.key!==null?J.set(Q.key,Q):J.set(Q.index,Q),Q=Q.sibling;return J}function h(Q,J){return Q=go(Q,J),Q.index=0,Q.sibling=null,Q}function v(Q,J,re){return Q.index=re,a?(re=Q.alternate,re!==null?(re=re.index,re<J?(Q.flags|=67108866,J):re):(Q.flags|=67108866,J)):(Q.flags|=1048576,J)}function E(Q){return a&&Q.alternate===null&&(Q.flags|=67108866),Q}function O(Q,J,re,ve){return J===null||J.tag!==6?(J=Rx(re,Q.mode,ve),J.return=Q,J._debugOwner=Q,J._debugTask=Q._debugTask,J._debugInfo=it,J):(J=h(J,re),J.return=Q,J._debugInfo=it,J)}function M(Q,J,re,ve){var _e=re.type;return _e===yc?(J=oe(Q,J,re.props.children,ve,re.key),ag(re,J,Q),J):J!==null&&(J.elementType===_e||mj(J,re)||typeof _e=="object"&&_e!==null&&_e.$$typeof===ta&&hs(_e)===J.type)?(J=h(J,re.props),Df(J,re),J.return=Q,J._debugOwner=re._owner,J._debugInfo=it,J):(J=Xh(re,Q.mode,ve),Df(J,re),J.return=Q,J._debugInfo=it,J)}function k(Q,J,re,ve){return J===null||J.tag!==4||J.stateNode.containerInfo!==re.containerInfo||J.stateNode.implementation!==re.implementation?(J=jx(re,Q.mode,ve),J.return=Q,J._debugInfo=it,J):(J=h(J,re.children||[]),J.return=Q,J._debugInfo=it,J)}function oe(Q,J,re,ve,_e){return J===null||J.tag!==7?(J=El(re,Q.mode,ve,_e),J.return=Q,J._debugOwner=Q,J._debugTask=Q._debugTask,J._debugInfo=it,J):(J=h(J,re),J.return=Q,J._debugInfo=it,J)}function se(Q,J,re){if(typeof J=="string"&&J!==""||typeof J=="number"||typeof J=="bigint")return J=Rx(""+J,Q.mode,re),J.return=Q,J._debugOwner=Q,J._debugTask=Q._debugTask,J._debugInfo=it,J;if(typeof J=="object"&&J!==null){switch(J.$$typeof){case Ri:return re=Xh(J,Q.mode,re),Df(re,J),re.return=Q,Q=Zn(J._debugInfo),re._debugInfo=it,it=Q,re;case vc:return J=jx(J,Q.mode,re),J.return=Q,J._debugInfo=it,J;case ta:var ve=Zn(J._debugInfo);return J=hs(J),Q=se(Q,J,re),it=ve,Q}if(jn(J)||j(J))return re=El(J,Q.mode,re,null),re.return=Q,re._debugOwner=Q,re._debugTask=Q._debugTask,Q=Zn(J._debugInfo),re._debugInfo=it,it=Q,re;if(typeof J.then=="function")return ve=Zn(J._debugInfo),Q=se(Q,ig(J),re),it=ve,Q;if(J.$$typeof===ji)return se(Q,eg(Q,J),re);og(Q,J)}return typeof J=="function"&&sg(Q,J),typeof J=="symbol"&&lg(Q,J),null}function X(Q,J,re,ve){var _e=J!==null?J.key:null;if(typeof re=="string"&&re!==""||typeof re=="number"||typeof re=="bigint")return _e!==null?null:O(Q,J,""+re,ve);if(typeof re=="object"&&re!==null){switch(re.$$typeof){case Ri:return re.key===_e?(_e=Zn(re._debugInfo),Q=M(Q,J,re,ve),it=_e,Q):null;case vc:return re.key===_e?k(Q,J,re,ve):null;case ta:return _e=Zn(re._debugInfo),re=hs(re),Q=X(Q,J,re,ve),it=_e,Q}if(jn(re)||j(re))return _e!==null?null:(_e=Zn(re._debugInfo),Q=oe(Q,J,re,ve,null),it=_e,Q);if(typeof re.then=="function")return _e=Zn(re._debugInfo),Q=X(Q,J,ig(re),ve),it=_e,Q;if(re.$$typeof===ji)return X(Q,J,eg(Q,re),ve);og(Q,re)}return typeof re=="function"&&sg(Q,re),typeof re=="symbol"&&lg(Q,re),null}function fe(Q,J,re,ve,_e){if(typeof ve=="string"&&ve!==""||typeof ve=="number"||typeof ve=="bigint")return Q=Q.get(re)||null,O(J,Q,""+ve,_e);if(typeof ve=="object"&&ve!==null){switch(ve.$$typeof){case Ri:return re=Q.get(ve.key===null?re:ve.key)||null,Q=Zn(ve._debugInfo),J=M(J,re,ve,_e),it=Q,J;case vc:return Q=Q.get(ve.key===null?re:ve.key)||null,k(J,Q,ve,_e);case ta:var We=Zn(ve._debugInfo);return ve=hs(ve),J=fe(Q,J,re,ve,_e),it=We,J}if(jn(ve)||j(ve))return re=Q.get(re)||null,Q=Zn(ve._debugInfo),J=oe(J,re,ve,_e,null),it=Q,J;if(typeof ve.then=="function")return We=Zn(ve._debugInfo),J=fe(Q,J,re,ig(ve),_e),it=We,J;if(ve.$$typeof===ji)return fe(Q,J,re,eg(J,ve),_e);og(J,ve)}return typeof ve=="function"&&sg(J,ve),typeof ve=="symbol"&&lg(J,ve),null}function Ce(Q,J,re,ve){if(typeof re!="object"||re===null)return ve;switch(re.$$typeof){case Ri:case vc:g(Q,J,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(J,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(Q,J,re,ve)}return ve}function De(Q,J,re,ve){for(var _e=null,We=null,Ue=null,Ve=J,tt=J=0,Yt=null;Ve!==null&&tt<re.length;tt++){Ve.index>tt?(Yt=Ve,Ve=null):Yt=Ve.sibling;var yn=X(Q,Ve,re[tt],ve);if(yn===null){Ve===null&&(Ve=Yt);break}_e=Ce(Q,yn,re[tt],_e),a&&Ve&&yn.alternate===null&&i(Q,Ve),J=v(yn,J,tt),Ue===null?We=yn:Ue.sibling=yn,Ue=yn,Ve=Yt}if(tt===re.length)return l(Q,Ve),mt&&vo(Q,tt),We;if(Ve===null){for(;tt<re.length;tt++)Ve=se(Q,re[tt],ve),Ve!==null&&(_e=Ce(Q,Ve,re[tt],_e),J=v(Ve,J,tt),Ue===null?We=Ve:Ue.sibling=Ve,Ue=Ve);return mt&&vo(Q,tt),We}for(Ve=d(Ve);tt<re.length;tt++)Yt=fe(Ve,Q,tt,re[tt],ve),Yt!==null&&(_e=Ce(Q,Yt,re[tt],_e),a&&Yt.alternate!==null&&Ve.delete(Yt.key===null?tt:Yt.key),J=v(Yt,J,tt),Ue===null?We=Yt:Ue.sibling=Yt,Ue=Yt);return a&&Ve.forEach(function(Bo){return i(Q,Bo)}),mt&&vo(Q,tt),We}function Ht(Q,J,re,ve){if(re==null)throw Error("An iterable object provided no iterator.");for(var _e=null,We=null,Ue=J,Ve=J=0,tt=null,Yt=null,yn=re.next();Ue!==null&&!yn.done;Ve++,yn=re.next()){Ue.index>Ve?(tt=Ue,Ue=null):tt=Ue.sibling;var Bo=X(Q,Ue,yn.value,ve);if(Bo===null){Ue===null&&(Ue=tt);break}Yt=Ce(Q,Bo,yn.value,Yt),a&&Ue&&Bo.alternate===null&&i(Q,Ue),J=v(Bo,J,Ve),We===null?_e=Bo:We.sibling=Bo,We=Bo,Ue=tt}if(yn.done)return l(Q,Ue),mt&&vo(Q,Ve),_e;if(Ue===null){for(;!yn.done;Ve++,yn=re.next())Ue=se(Q,yn.value,ve),Ue!==null&&(Yt=Ce(Q,Ue,yn.value,Yt),J=v(Ue,J,Ve),We===null?_e=Ue:We.sibling=Ue,We=Ue);return mt&&vo(Q,Ve),_e}for(Ue=d(Ue);!yn.done;Ve++,yn=re.next())tt=fe(Ue,Q,Ve,yn.value,ve),tt!==null&&(Yt=Ce(Q,tt,yn.value,Yt),a&&tt.alternate!==null&&Ue.delete(tt.key===null?Ve:tt.key),J=v(tt,J,Ve),We===null?_e=tt:We.sibling=tt,We=tt);return a&&Ue.forEach(function(SX){return i(Q,SX)}),mt&&vo(Q,Ve),_e}function vt(Q,J,re,ve){if(typeof re=="object"&&re!==null&&re.type===yc&&re.key===null&&(ag(re,null,Q),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;J!==null;){if(J.key===We){if(We=re.type,We===yc){if(J.tag===7){l(Q,J.sibling),ve=h(J,re.props.children),ve.return=Q,ve._debugOwner=re._owner,ve._debugInfo=it,ag(re,ve,Q),Q=ve;break e}}else if(J.elementType===We||mj(J,re)||typeof We=="object"&&We!==null&&We.$$typeof===ta&&hs(We)===J.type){l(Q,J.sibling),ve=h(J,re.props),Df(ve,re),ve.return=Q,ve._debugOwner=re._owner,ve._debugInfo=it,Q=ve;break e}l(Q,J);break}else i(Q,J);J=J.sibling}re.type===yc?(ve=El(re.props.children,Q.mode,ve,re.key),ve.return=Q,ve._debugOwner=Q,ve._debugTask=Q._debugTask,ve._debugInfo=it,ag(re,ve,Q),Q=ve):(ve=Xh(re,Q.mode,ve),Df(ve,re),ve.return=Q,ve._debugInfo=it,Q=ve)}return Q=E(Q),it=_e,Q;case vc:e:{for(_e=re,re=_e.key;J!==null;){if(J.key===re)if(J.tag===4&&J.stateNode.containerInfo===_e.containerInfo&&J.stateNode.implementation===_e.implementation){l(Q,J.sibling),ve=h(J,_e.children||[]),ve.return=Q,Q=ve;break e}else{l(Q,J);break}else i(Q,J);J=J.sibling}ve=jx(_e,Q.mode,ve),ve.return=Q,Q=ve}return E(Q);case ta:return _e=Zn(re._debugInfo),re=hs(re),Q=vt(Q,J,re,ve),it=_e,Q}if(jn(re))return _e=Zn(re._debugInfo),Q=De(Q,J,re,ve),it=_e,Q;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?(Q.tag!==0||Object.prototype.toString.call(Q.type)!=="[object GeneratorFunction]"||Object.prototype.toString.call(Ue)!=="[object Generator]")&&(Uk||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."),Uk=!0):re.entries!==We||cN||(console.error("Using Maps as children is not supported. Use an array of keyed ReactElements instead."),cN=!0),Q=Ht(Q,J,Ue,ve),it=_e,Q}if(typeof re.then=="function")return _e=Zn(re._debugInfo),Q=vt(Q,J,ig(re),ve),it=_e,Q;if(re.$$typeof===ji)return vt(Q,J,eg(Q,re),ve);og(Q,re)}return typeof re=="string"&&re!==""||typeof re=="number"||typeof re=="bigint"?(_e=""+re,J!==null&&J.tag===6?(l(Q,J.sibling),ve=h(J,_e),ve.return=Q,Q=ve):(l(Q,J),ve=Rx(_e,Q.mode,ve),ve.return=Q,ve._debugOwner=Q,ve._debugTask=Q._debugTask,ve._debugInfo=it,Q=ve),E(Q)):(typeof re=="function"&&sg(Q,re),typeof re=="symbol"&&lg(Q,re),l(Q,J))}return function(Q,J,re,ve){var _e=it;it=null;try{Om=0;var We=vt(Q,J,re,ve);return $c=null,We}catch(Yt){if(Yt===Ic||Yt===vv)throw Yt;var Ue=y(29,Yt,null,Q.mode);Ue.lanes=ve,Ue.return=Q;var Ve=Ue._debugInfo=it;if(Ue._debugOwner=Q._debugOwner,Ue._debugTask=Q._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{it=_e}}}function $j(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 Hx(a){a.updateQueue={baseState:a.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function Fx(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:Gk,payload:null,callback:null,next:null}}function vs(a,i,l){var d=a.updateQueue;if(d===null)return null;if(d=d.shared,fN===d&&!Xk){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),Xk=!0}return(bt&Mn)!==Gn?(h=d.pending,h===null?i.next=i:(i.next=h.next,h.next=i),d.pending=i,i=Qh(a),fj(a,null,l),i):(Yh(a,d,i,l),Qh(a))}function Rf(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 ug(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 jf(){if(mN){var a=kc;if(a!==null)throw a}}function Pf(a,i,l,d){mN=!1;var h=a.updateQueue;Is=!1,fN=h.shared;var v=h.firstBaseUpdate,E=h.lastBaseUpdate,O=h.shared.pending;if(O!==null){h.shared.pending=null;var M=O,k=M.next;M.next=null,E===null?v=k:E.next=k,E=M;var oe=a.alternate;oe!==null&&(oe=oe.updateQueue,O=oe.lastBaseUpdate,O!==E&&(O===null?oe.firstBaseUpdate=k:O.next=k,oe.lastBaseUpdate=M))}if(v!==null){var se=h.baseState;E=0,oe=k=M=null,O=v;do{var X=O.lane&-536870913,fe=X!==O.lane;if(fe?(ot&X)===X:(d&X)===X){X!==0&&X===zl&&(mN=!0),oe!==null&&(oe=oe.next={lane:0,tag:O.tag,payload:O.payload,callback:null,next:null});e:{X=a;var Ce=O,De=i,Ht=l;switch(Ce.tag){case Yk:if(Ce=Ce.payload,typeof Ce=="function"){Mc=!0;var vt=Ce.call(Ht,se,De);if(X.mode&lr){je(!0);try{Ce.call(Ht,se,De)}finally{je(!1)}}Mc=!1,se=vt;break e}se=Ce;break e;case dN:X.flags=X.flags&-65537|128;case Gk:if(vt=Ce.payload,typeof vt=="function"){if(Mc=!0,Ce=vt.call(Ht,se,De),X.mode&lr){je(!0);try{vt.call(Ht,se,De)}finally{je(!1)}}Mc=!1}else Ce=vt;if(Ce==null)break e;se=dt({},se,Ce);break e;case Qk:Is=!0}}X=O.callback,X!==null&&(a.flags|=64,fe&&(a.flags|=8192),fe=h.callbacks,fe===null?h.callbacks=[X]:fe.push(X))}else fe={lane:X,tag:O.tag,payload:O.payload,callback:O.callback,next:null},oe===null?(k=oe=fe,M=se):oe=oe.next=fe,E|=X;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=k,h.lastBaseUpdate=oe,v===null&&(h.shared.lanes=0),Bs|=E,a.lanes=E,a.memoizedState=se}fN=null}function Vj(a,i){if(typeof a!="function")throw Error("Invalid argument passed as callback. Expected a function. Instead received: "+a);a.call(i)}function gG(a,i){var l=a.shared.hiddenCallbacks;if(l!==null)for(a.shared.hiddenCallbacks=null,a=0;a<l.length;a++)Vj(l[a],i)}function Bj(a,i){var l=a.callbacks;if(l!==null)for(a.callbacks=null,a=0;a<l.length;a++)Vj(l[a],i)}function zj(a,i){var l=zi;F(bv,l,a),F(Vc,i,a),zi=l|i.baseLanes}function Kx(a){F(bv,zi,a),F(Vc,Vc.current,a)}function Gx(a){zi=bv.current,q(Vc,a),q(bv,a)}function ys(a){var i=a.alternate;F(vn,vn.current&Bc,a),F(aa,a,a),Aa===null&&(i===null||Vc.current!==null||i.memoizedState!==null)&&(Aa=a)}function Yx(a){F(vn,vn.current,a),F(aa,a,a),Aa===null&&(Aa=a)}function Uj(a){a.tag===22?(F(vn,vn.current,a),F(aa,a,a),Aa===null&&(Aa=a)):bs(a)}function bs(a){F(vn,vn.current,a),F(aa,aa.current,a)}function Zr(a){q(aa,a),Aa===a&&(Aa=null),q(vn,a)}function cg(a){for(var i=a;i!==null;){if(i.tag===13){var l=i.memoizedState;if(l!==null&&(l=l.dehydrated,l===null||sw(l)||lw(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&&(Lo++,Ta[Lo]!==a)){var i=B(Xe);if(!Wk.has(i)&&(Wk.add(i),Ta!==null)){for(var l="",d=0;d<=Lo;d++){var h=Ta[d],v=d===Lo?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 ac(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 dg(){var a=B(Xe);Jk.has(a)||(Jk.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 Qx(a,i){if(_m)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(!xr(a[l],i[l]))return!1;return!0}function Xx(a,i,l,d,h,v){Po=v,Xe=i,Ta=a!==null?a._debugHookTypes:null,Lo=-1,_m=a!==null&&a.type!==i.type,(Object.prototype.toString.call(l)==="[object AsyncFunction]"||Object.prototype.toString.call(l)==="[object AsyncGeneratorFunction]")&&(v=B(Xe),pN.has(v)||(pN.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?gN:Ta!==null?eI:hN,Kl=v=(i.mode&lr)!==Ge;var E=sN(l,d,h);if(Kl=!1,Uc&&(E=Wx(i,l,d,h)),v){je(!0);try{E=Wx(i,l,d,h)}finally{je(!1)}}return qj(a,i),E}function qj(a,i){i._debugHookTypes=Ta,i.dependencies===null?Mo!==null&&(i.dependencies={lanes:0,firstContext:null,_debugThenableState:Mo}):i.dependencies._debugThenableState=Mo,he.H=Dm;var l=Bt!==null&&Bt.next!==null;if(Po=0,Ta=pe=Sn=Bt=Xe=null,Lo=-1,a!==null&&(a.flags&65011712)!==(i.flags&65011712)&&console.error("Internal React error: Expected static flag was missing. Please notify the React team."),wv=!1,Cm=0,Mo=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&&Jh(a)&&(An=!0)),Am?(Am=!1,a=!0):a=!1,a&&(i=B(i)||"Unknown",Zk.has(i)||pN.has(i)||(Zk.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 Wx(a,i,l,d){Xe=a;var h=0;do{if(Uc&&(Mo=null),Cm=0,Uc=!1,h>=nX)throw Error("Too many re-renders. React limits the number of renders to prevent an infinite loop.");if(h+=1,_m=!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)}Lo=-1,he.H=tI,v=sN(i,l,d)}while(Uc);return v}function vG(){var a=he.H,i=a.useState()[0];return i=typeof i.then=="function"?Mf(i):i,a=a.useState()[0],(Bt!==null?Bt.memoizedState:null)!==a&&(Xe.flags|=1024),i}function Zx(){var a=Nv!==0;return Nv=0,a}function Jx(a,i,l){i.updateQueue=a.updateQueue,i.flags=(i.mode&Ka)!==Ge?i.flags&-402655237:i.flags&-2053,a.lanes&=~l}function e1(a){if(wv){for(a=a.memoizedState;a!==null;){var i=a.queue;i!==null&&(i.pending=null),a=a.next}wv=!1}Po=0,Ta=Sn=Bt=Xe=null,Lo=-1,pe=null,Uc=!1,Cm=Nv=0,Mo=null}function gr(){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 fg(){return{lastEffect:null,events:null,stores:null,memoCache:null}}function Mf(a){var i=Cm;return Cm+=1,Mo===null&&(Mo=_j()),a=Rj(Mo,a,i),i=Xe,(Sn===null?i.memoizedState:Sn.next)===null&&(i=i.alternate,he.H=i!==null&&i.memoizedState!==null?gN:hN),a}function xs(a){if(a!==null&&typeof a=="object"){if(typeof a.then=="function")return Mf(a);if(a.$$typeof===ji)return en(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=fg(),Xe.updateQueue=l),l.memoCache=i,l=i.data[i.index],l===void 0||_m)for(l=i.data[i.index]=Array(a),d=0;d<a;d++)l[d]=PY;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 t1(a,i,l){var d=gr();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=NG.bind(null,Xe,a),[d.memoizedState,a]}function ic(a){var i=Rt();return n1(i,Bt,a)}function n1(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,k=i,oe=!1;do{var se=k.lane&-536870913;if(se!==k.lane?(ot&se)===se:(Po&se)===se){var X=k.revertLane;if(X===0)M!==null&&(M=M.next={lane:0,revertLane:0,gesture:null,action:k.action,hasEagerState:k.hasEagerState,eagerState:k.eagerState,next:null}),se===zl&&(oe=!0);else if((Po&X)===X){k=k.next,X===zl&&(oe=!0);continue}else se={lane:0,revertLane:k.revertLane,gesture:null,action:k.action,hasEagerState:k.hasEagerState,eagerState:k.eagerState,next:null},M===null?(O=M=se,E=v):M=M.next=se,Xe.lanes|=X,Bs|=X;se=k.action,Kl&&l(v,se),v=k.hasEagerState?k.eagerState:l(v,se)}else X={lane:se,revertLane:k.revertLane,gesture:k.gesture,action:k.action,hasEagerState:k.hasEagerState,eagerState:k.eagerState,next:null},M===null?(O=M=X,E=v):M=M.next=X,Xe.lanes|=se,Bs|=se;k=k.next}while(k!==null&&k!==i);if(M===null?E=v:M.next=O,!xr(v,a.memoizedState)&&(An=!0,oe&&(l=kc,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 Lf(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);xr(v,i.memoizedState)||(An=!0),i.memoizedState=v,i.baseQueue===null&&(i.baseState=v),l.lastRenderedState=v}return[v,d]}function r1(a,i,l){var d=Xe,h=gr();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();zc||v===l()||(console.error("The result of getServerSnapshot should be cached to avoid an infinite loop"),zc=!0)}else{if(v=i(),zc||(l=i(),xr(v,l)||(console.error("The result of getSnapshot should be cached to avoid an infinite loop"),zc=!0)),zt===null)throw Error("Expected a work-in-progress root. This is a bug in React. Please file an issue.");(ot&127)!==0||Hj(d,i,v)}return h.memoizedState=v,l={value:v,getSnapshot:i},h.queue=l,gg(Kj.bind(null,d,l,a),[a]),d.flags|=2048,sc(Oa|Er,{destroy:void 0},Fj.bind(null,d,l,v,i),null),v}function mg(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(),!zc){var E=i();xr(l,E)||(console.error("The result of getSnapshot should be cached to avoid an infinite loop"),zc=!0)}(E=!xr((Bt||h).memoizedState,l))&&(h.memoizedState=l,An=!0),h=h.queue;var O=Kj.bind(null,d,h,a);if(Ir(2048,Er,O,[a]),h.getSnapshot!==i||E||Sn!==null&&Sn.memoizedState.tag&Oa){if(d.flags|=2048,sc(Oa|Er,{destroy:void 0},Fj.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||(Po&127)!==0||Hj(d,i,l)}return l}function Hj(a,i,l){a.flags|=16384,a={getSnapshot:i,value:l},i=Xe.updateQueue,i===null?(i=fg(),Xe.updateQueue=i,i.stores=[a]):(l=i.stores,l===null?i.stores=[a]:l.push(a))}function Fj(a,i,l,d){i.value=l,i.getSnapshot=d,Gj(i)&&Yj(a)}function Kj(a,i,l){return l(function(){Gj(i)&&(yi(2,"updateSyncExternalStore()",a),Yj(a))})}function Gj(a){var i=a.getSnapshot;a=a.value;try{var l=i();return!xr(a,l)}catch{return!0}}function Yj(a){var i=or(a,2);i!==null&&ln(i,a,2)}function a1(a){var i=gr();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 i1(a){a=a1(a);var i=a.queue,l=mP.bind(null,Xe,i);return i.dispatch=l,[a.memoizedState,l]}function o1(a){var i=gr();i.memoizedState=i.baseState=a;var l={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return i.queue=l,i=x1.bind(null,Xe,!0,l),l.dispatch=i,[a,i]}function Qj(a,i){var l=Rt();return Xj(l,Bt,a,i)}function Xj(a,i,l,d){return a.baseState=l,n1(a,Bt,typeof d=="function"?d:qa)}function Wj(a,i){var l=Rt();return Bt!==null?Xj(l,Bt,a,i):(l.baseState=a,[a,l.queue.dispatch])}function yG(a,i,l,d,h){if(Ng(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,Zj(i,v)):(v.next=l.next,i.pending=l.next=v)}}function Zj(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),Jj(a,i,O)}catch(k){s1(a,i,k)}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),Jj(a,i,E)}catch(k){s1(a,i,k)}}function Jj(a,i,l){l!==null&&typeof l=="object"&&typeof l.then=="function"?(he.asyncTransitions++,l.then(wg,wg),l.then(function(d){eP(a,i,d)},function(d){return s1(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.")):eP(a,i,l)}function eP(a,i,l){i.status="fulfilled",i.value=l,tP(i),a.state=l,i=a.pending,i!==null&&(l=i.next,l===i?a.pending=null:(l=l.next,i.next=l,Zj(a,l)))}function s1(a,i,l){var d=a.pending;if(a.pending=null,d!==null){d=d.next;do i.status="rejected",i.reason=l,tP(i),i=i.next;while(i!==d)}a.action=null}function tP(a){a=a.listeners;for(var i=0;i<a.length;i++)(0,a[i])()}function nP(a,i){return i}function oc(a,i){if(mt){var l=zt.formState;if(l!==null){e:{var d=Xe;if(mt){if(Gt){t:{for(var h=Gt,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===VN||v===BI?h:null}if(h){Gt=ea(h.nextSibling),d=h.data===VN;break e}}ms(d)}d=!1}d&&(i=l[0])}}return l=gr(),l.memoizedState=l.baseState=i,d={pending:null,lanes:0,dispatch:null,lastRenderedReducer:nP,lastRenderedState:i},l.queue=d,l=mP.bind(null,Xe,d),d.dispatch=l,d=a1(!1),v=x1.bind(null,Xe,!1,d.queue),d=gr(),h={state:i,dispatch:null,action:a,pending:null},d.queue=h,l=yG.bind(null,Xe,h,v,l),h.dispatch=l,d.memoizedState=a,[i,l,!1]}function pg(a){var i=Rt();return rP(i,Bt,a)}function rP(a,i,l){if(i=n1(a,i,nP)[0],a=ic(qa)[0],typeof i=="object"&&i!==null&&typeof i.then=="function")try{var d=Mf(i)}catch(E){throw E===Ic?vv:E}else d=i;i=Rt();var h=i.queue,v=h.dispatch;return l!==i.memoizedState&&(Xe.flags|=2048,sc(Oa|Er,{destroy:void 0},bG.bind(null,h,l),null)),[d,v,a]}function bG(a,i){a.action=i}function hg(a){var i=Rt(),l=Bt;if(l!==null)return rP(i,l,a);Rt(),i=i.memoizedState,l=Rt();var d=l.queue.dispatch;return l.memoizedState=a,[i,d,!1]}function sc(a,i,l,d){return a={tag:a,create:l,deps:d,inst:i,next:null},i=Xe.updateQueue,i===null&&(i=fg(),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 l1(a){var i=gr();return a={current:a},i.memoizedState=a}function _l(a,i,l,d){var h=gr();Xe.flags|=a,h.memoizedState=sc(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&&Qx(d,Bt.memoizedState.deps)?h.memoizedState=sc(i,v,l,d):(Xe.flags|=a,h.memoizedState=sc(Oa|i,v,l,d))}function gg(a,i){(Xe.mode&Ka)!==Ge?_l(276826112,Er,a,i):_l(8390656,Er,a,i)}function xG(a){Xe.flags|=4;var i=Xe.updateQueue;if(i===null)i=fg(),Xe.updateQueue=i,i.events=[a];else{var l=i.events;l===null?i.events=[a]:l.push(a)}}function u1(a){var i=gr(),l={impl:a};return i.memoizedState=l,function(){if((bt&Mn)!==Gn)throw Error("A function wrapped in useEffectEvent can't be called during rendering.");return l.impl.apply(void 0,arguments)}}function vg(a){var i=Rt().memoizedState;return xG({ref:i,nextImpl:a}),function(){if((bt&Mn)!==Gn)throw Error("A function wrapped in useEffectEvent can't be called during rendering.");return i.impl.apply(void 0,arguments)}}function c1(a,i){var l=4194308;return(Xe.mode&Ka)!==Ge&&(l|=134217728),_l(l,ia,a,i)}function aP(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 d1(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,aP.bind(null,i,a),l)}function yg(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,aP.bind(null,i,a),l)}function f1(a,i){return gr().memoizedState=[a,i===void 0?null:i],a}function bg(a,i){var l=Rt();i=i===void 0?null:i;var d=l.memoizedState;return i!==null&&Qx(i,d[1])?d[0]:(l.memoizedState=[a,i],a)}function m1(a,i){var l=gr();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 xg(a,i){var l=Rt();i=i===void 0?null:i;var d=l.memoizedState;if(i!==null&&Qx(i,d[1]))return d[0];if(d=a(),Kl){je(!0);try{a()}finally{je(!1)}}return l.memoizedState=[d,i],d}function p1(a,i){var l=gr();return h1(l,a,i)}function iP(a,i){var l=Rt();return sP(l,Bt.memoizedState,a,i)}function oP(a,i){var l=Rt();return Bt===null?h1(l,a,i):sP(l,Bt.memoizedState,a,i)}function h1(a,i,l){return l===void 0||(Po&1073741824)!==0&&(ot&261930)===0?a.memoizedState=i:(a.memoizedState=l,a=lM(),Xe.lanes|=a,Bs|=a,l)}function sP(a,i,l,d){return xr(l,i)?l:Vc.current!==null?(a=h1(a,l,d),xr(a,i)||(An=!0),a):(Po&42)===0||(Po&1073741824)!==0&&(ot&261930)===0?(An=!0,a.memoizedState=l):(a=lM(),Xe.lanes|=a,Bs|=a,i)}function wg(){he.asyncTransitions--}function lP(a,i,l,d,h){var v=Ot.p;Ot.p=v!==0&&v<ki?v:ki;var E=he.T,O={};O._updatedFibers=new Set,he.T=O,x1(a,!1,i,l);try{var M=h(),k=he.S;if(k!==null&&k(O,M),M!==null&&typeof M=="object"&&typeof M.then=="function"){he.asyncTransitions++,M.then(wg,wg);var oe=hG(M,d);kf(a,i,oe,Jr(a))}else kf(a,i,d,Jr(a))}catch(se){kf(a,i,{then:function(){},status:"rejected",reason:se},Jr(a))}finally{Ot.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 g1(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=uP(a).queue;mG(a),lP(a,h,i,ru,l===null?m:function(){return cP(a),l(d)})}function uP(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 cP(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=uP(a);i.next===null&&(i=a.alternate.memoizedState),kf(a,i.next.queue,{},Jr(a))}function v1(){var a=a1(!1);return a=lP.bind(null,Xe,a.queue,!0,!1),gr().memoizedState=a,[!1,a]}function dP(){var a=ic(qa)[0],i=Rt().memoizedState;return[typeof a=="boolean"?a:Mf(a),i]}function fP(){var a=Lf(qa)[0],i=Rt().memoizedState;return[typeof a=="boolean"?a:Mf(a),i]}function Dl(){return en(Fm)}function y1(){var a=gr(),i=zt.identifierPrefix;if(mt){var l=Co,d=To;l=(d&~(1<<32-vr(d)-1)).toString(32)+l,i="_"+i+"R_"+l,l=Nv++,0<l&&(i+="H"+l.toString(32)),i+="_"}else l=tX++,i="_"+i+"r_"+l.toString(32)+"_";return a.memoizedState=i}function b1(){return gr().memoizedState=wG.bind(null,Xe)}function wG(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),ln(v,l,d),Rf(v,l,d)),a=Vx(),i!=null&&v!==null&&console.error("The seed argument is not enabled outside experimental channels."),h.payload={cache:a};return}l=l.return}}function NG(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};Ng(a)?pP(i,h):(h=Tx(a,i,h,d),h!==null&&(yi(d,"dispatch()",a),ln(h,a,d),hP(h,i,d)))}function mP(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),kf(a,i,l,d)&&yi(d,"setState()",a)}function kf(a,i,l,d){var h={lane:d,revertLane:0,gesture:null,action:l,hasEagerState:!1,eagerState:null,next:null};if(Ng(a))pP(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,xr(M,O))return Yh(a,i,h,0),zt===null&&Gh(),!1}catch{}finally{he.H=E}}if(l=Tx(a,i,h,d),l!==null)return ln(l,a,d),hP(l,i,d),!0}return!1}function x1(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:X1(),gesture:null,action:d,hasEagerState:!1,eagerState:null,next:null},Ng(a)){if(i)throw Error("Cannot update optimistic state while rendering.");console.error("Cannot call startTransition while rendering.")}else i=Tx(a,l,d,2),i!==null&&(yi(2,"setOptimistic()",a),ln(i,a,2))}function Ng(a){var i=a.alternate;return a===Xe||i!==null&&i===Xe}function pP(a,i){Uc=wv=!0;var l=a.pending;l===null?i.next=i:(i.next=l.next,l.next=i),a.pending=i}function hP(a,i,l){if((l&4194048)!==0){var d=i.lanes;d&=a.pendingLanes,l|=d,i.lanes=l,ds(a,l)}}function w1(a){if(a!==null&&typeof a!="function"){var i=String(a);fI.has(i)||(fI.add(i),console.error("Expected the last optional `callback` argument to be a function. Instead received: %s.",a))}}function N1(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",lI.has(i)||(lI.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 gP(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?!Af(l,d)||!Af(h,v):!0}function vP(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",rI.has(a)||(rI.add(a),console.error("%s.componentWillReceiveProps(): Assigning directly to this.state is deprecated (except inside a component's constructor). Use setState instead.",a)),vN.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 yP(a){Yw(a),console.warn(`%s
%s
`,qc?"An error occurred in the <"+qc+"> 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 bP(a){var i=qc?"The above error occurred in the <"+qc+"> 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, "+((yN||"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,YI+" "+a[0],QI,Gv+d+Gv,XI):a.splice(0,0,YI,QI,Gv+d+Gv,XI),a.unshift(console),d=NX.apply(console.error,a),d()}else console.error(`%o
%s
%s
`,a,i,l)}function xP(a){Yw(a)}function Eg(a,i){try{qc=i.source?B(i.source):null,yN=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 wP(a,i,l){try{qc=l.source?B(l.source):null,yN=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 E1(a,i,l){return l=gs(l),l.tag=dN,l.payload={element:null},l.callback=function(){de(i.source,Eg,a,i)},l}function S1(a){return a=gs(a),a.tag=dN,a}function A1(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(){pj(l),de(d.source,wP,i,l,d)}}var E=l.stateNode;E!==null&&typeof E.componentDidCatch=="function"&&(a.callback=function(){pj(l),de(d.source,wP,i,l,d),typeof h!="function"&&(Us===null?Us=new Set([this]):Us.add(this)),WQ(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 EG(a,i,l,d,h){if(l.flags|=32768,Li&&Hf(a,h),d!==null&&typeof d=="object"&&typeof d.then=="function"){if(i=l.alternate,i!==null&&rc(i,l,h,!0),mt&&($i=!0),l=aa.current,l!==null){switch(l.tag){case 31:case 13:return Aa===null?jg():l.alternate===null&&on===Io&&(on=Av),l.flags&=-257,l.flags|=65536,l.lanes=h,d===yv?l.flags|=16384:(i=l.updateQueue,i===null?l.updateQueue=new Set([d]):i.add(d),K1(a,d,h)),!1;case 22:return l.flags|=65536,d===yv?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)),K1(a,d,h)),!1}throw Error("Unexpected Suspense handler tag ("+l.tag+"). This is a bug in React.")}return K1(a,d,h),jg(),!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!==eN&&Of(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!==eN&&Of(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=E1(a.stateNode,d,h),ug(a,h),on!==$s&&(on=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(km===null?km=[v]:km.push(v),on!==$s&&(on=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=E1(l.stateNode,d,a),ug(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=S1(h),A1(h,a,l,d),ug(l,h),!1}l=l.return}while(l!==null);return!1}function Jn(a,i,l,d){i.child=a===null?Kk(i,null,l,d):Fl(i,a.child,l,d)}function NP(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=Xx(a,i,l,E,v,h),O=Zx(),a!==null&&!An?(Jx(a,i,h),xo(a,i,h)):(mt&&O&&Px(i),i.flags|=1,Jn(a,i,d,h),i.child)}function EP(a,i,l,d,h){if(a===null){var v=l.type;return typeof v=="function"&&!_x(v)&&v.defaultProps===void 0&&l.compare===null?(l=Nl(v),i.tag=15,i.type=l,T1(i,v),SP(a,i,l,d,h)):(a=Dx(l.type,null,d,i,i.mode,h),a.ref=i.ref,a.return=i,i.child=a)}if(v=a.child,!P1(a,h)){var E=v.memoizedProps;if(l=l.compare,l=l!==null?l:Af,l(E,d)&&a.ref===i.ref)return xo(a,i,h)}return i.flags|=1,a=go(v,d),a.ref=i.ref,a.return=i,i.child=a}function SP(a,i,l,d,h){if(a!==null){var v=a.memoizedProps;if(Af(v,d)&&a.ref===i.ref&&i.type===a.type)if(An=!1,i.pendingProps=d=v,P1(a,h))(a.flags&131072)!==0&&(An=!0);else return i.lanes=a.lanes,xo(a,i,h)}return O1(a,i,l,d,h)}function AP(a,i,l,d){var h=d.children,v=a!==null?a.memoizedState:null;if(a===null&&i.stateNode===null&&(i.stateNode={_visibility:dm,_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 OP(a,i,v,l,d)}if((l&536870912)!==0)i.memoizedState={baseLanes:0,cachePool:null},a!==null&&rg(i,v!==null?v.cachePool:null),v!==null?zj(i,v):Kx(i),Uj(i);else return d=i.lanes=536870912,OP(a,i,v!==null?v.baseLanes|l:l,l,d)}else v!==null?(rg(i,v.cachePool),zj(i,v),bs(i),i.memoizedState=null):(a!==null&&rg(i,null),Kx(i),bs(i));return Jn(a,i,h,l),i.child}function If(a,i){return a!==null&&a.tag===22||i.stateNode!==null||(i.stateNode={_visibility:dm,_pendingMarkers:null,_retryCache:null,_transitions:null}),i.sibling}function OP(a,i,l,d,h){var v=Ux();return v=v===null?null:{parent:Nn._currentValue,pool:v},i.memoizedState={baseLanes:l,cachePool:v},a!==null&&rg(i,null),Kx(i),Uj(i),a!==null&&rc(a,i,d,!0),i.childLanes=h,null}function Sg(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=Og({mode:i.mode,children:i.children},a.mode),i.ref=a.ref,a.child=i,i.return=a,i}function TP(a,i,l){return Fl(i,a.child,null,l),a=Sg(i,i.pendingProps),a.flags|=2,Zr(i),i.memoizedState=null,a}function SG(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=Sg(i,d),i.lanes=536870912,If(null,a);if(Yx(i),(a=Gt)?(l=ZM(a,Ea),l=l!==null&&l.data===Jl?l:null,l!==null&&(d={dehydrated:l,treeContext:bj(),retryLane:536870912,hydrationErrors:null},i.memoizedState=d,d=vj(l),d.return=i,i.child=d,nr=i,Gt=null)):l=null,l===null)throw Wh(i,a),ms(i);return i.lanes=536870912,null}return Sg(i,d)}var v=a.memoizedState;if(v!==null){var E=v.dehydrated;if(Yx(i),h)if(i.flags&256)i.flags&=-257,i=TP(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(wj(),(l&536870912)!==0&&Rg(i),An||rc(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),ln(d,a,E),bN;jg(),i=TP(a,i,l)}else a=v.treeContext,Gt=ea(E.nextSibling),nr=i,mt=!0,js=null,$i=!1,ra=null,Ea=!1,a!==null&&xj(i,a),i=Sg(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&&Rg(i),a=go(v,d),a.ref=i.ref,i.child=a,a.return=i,a}function Ag(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 O1(a,i,l,d,h){if(l.prototype&&typeof l.prototype.render=="function"){var v=L(l)||"Unknown";mI[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),mI[v]=!0)}return i.mode&lr&&Ga.recordLegacyContextWarning(i,null),a===null&&(T1(i,i.type),l.contextTypes&&(v=L(l)||"Unknown",hI[v]||(hI[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=Xx(a,i,l,d,void 0,h),d=Zx(),a!==null&&!An?(Jx(a,i,h),xo(a,i,h)):(mt&&d&&Px(i),i.flags|=1,Jn(a,i,l,h),i.child)}function CP(a,i,l,d,h,v){return Ol(i),Lo=-1,_m=a!==null&&a.type!==i.type,i.updateQueue=null,l=Wx(i,d,l,h),qj(a,i),d=Zx(),a!==null&&!An?(Jx(a,i,v),xo(a,i,v)):(mt&&d&&Px(i),i.flags|=1,Jn(a,i,l,v),i.child)}function _P(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=S1(O),A1(O,E,i,Qr(v,i)),ug(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)&&!dI.has(l)&&(dI.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===xw?" 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=en(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=vN,i.stateNode=v,v._reactInternals=i,v._reactInternalInstance=nI,typeof l.getDerivedStateFromProps=="function"&&E===null&&(E=L(l)||"Component",aI.has(E)||(aI.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 k=typeof l.getDerivedStateFromProps=="function"?"getDerivedStateFromProps()":"getSnapshotBeforeUpdate()";oI.has(v)||(oI.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,k,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&&!cI.has(l)&&(cI.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&&!uI.has(l)&&(uI.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"||iI.has(l)||(iI.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={},Hx(i),E=l.contextType,v.context=typeof E=="object"&&E!==null?en(E):Rs,v.state===d&&(E=L(l)||"Component",sI.has(E)||(sI.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"&&(N1(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"),vN.enqueueReplaceState(v,v.state,null)),Pf(i,d,v,h),jf(),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=en(M)),k=l.getDerivedStateFromProps,M=typeof k=="function"||typeof v.getSnapshotBeforeUpdate=="function",oe=i.pendingProps!==oe,M||typeof v.UNSAFE_componentWillReceiveProps!="function"&&typeof v.componentWillReceiveProps!="function"||(oe||se!==E)&&vP(i,v,d,E),Is=!1;var X=i.memoizedState;v.state=X,Pf(i,d,v,h),jf(),se=i.memoizedState,oe||X!==se||Is?(typeof k=="function"&&(N1(i,l,k,d),se=i.memoizedState),(O=Is||gP(i,l,O,d,X,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,Fx(a,i),E=i.memoizedProps,M=Rl(l,E),v.props=M,k=i.pendingProps,X=v.context,se=l.contextType,O=Rs,typeof se=="object"&&se!==null&&(O=en(se)),oe=l.getDerivedStateFromProps,(se=typeof oe=="function"||typeof v.getSnapshotBeforeUpdate=="function")||typeof v.UNSAFE_componentWillReceiveProps!="function"&&typeof v.componentWillReceiveProps!="function"||(E!==k||X!==O)&&vP(i,v,d,O),Is=!1,X=i.memoizedState,v.state=X,Pf(i,d,v,h),jf();var fe=i.memoizedState;E!==k||X!==fe||Is||a!==null&&a.dependencies!==null&&Jh(a.dependencies)?(typeof oe=="function"&&(N1(i,l,oe,d),fe=i.memoizedState),(M=Is||gP(i,l,M,d,X,fe,O)||a!==null&&a.dependencies!==null&&Jh(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&&X===a.memoizedState||(i.flags|=4),typeof v.getSnapshotBeforeUpdate!="function"||E===a.memoizedProps&&X===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&&X===a.memoizedState||(i.flags|=4),typeof v.getSnapshotBeforeUpdate!="function"||E===a.memoizedProps&&X===a.memoizedState||(i.flags|=1024),v=!1)}if(O=v,Ag(a,i),E=(i.flags&128)!==0,O||E){if(O=i.stateNode,ie(i),E&&typeof l.getDerivedStateFromError!="function")l=null,wr=-1;else if(l=jk(O),i.mode&lr){je(!0);try{jk(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=xo(a,i,h);return h=i.stateNode,v&&h.props!==d&&(Hc||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"),Hc=!0),a}function DP(a,i,l,d){return Al(),i.flags|=256,Jn(a,i,l,d),i.child}function T1(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",gI[a]||(console.error("%s: Function components do not support getDerivedStateFromProps.",a),gI[a]=!0)),typeof i.contextType=="object"&&i.contextType!==null&&(i=L(i)||"Unknown",pI[i]||(console.error("%s: Function components do not support contextType.",i),pI[i]=!0))}function C1(a){return{baseLanes:a,cachePool:Cj()}}function _1(a,i,l){return a=a!==null?a.childLanes&~l:0,i&&(a|=Ur),a}function RP(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&Tm)!==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=Gt)?(l=ZM(a,Ea),l=l!==null&&l.data!==Jl?l:null,l!==null&&(d={dehydrated:l,treeContext:bj(),retryLane:536870912,hydrationErrors:null},i.memoizedState=d,d=vj(l),d.return=i,i.child=d,nr=i,Gt=null)):l=null,l===null)throw Wh(i,a),ms(i);return lw(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=Og({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=C1(l),h.childLanes=_1(a,d,l),i.memoizedState=xN,If(null,h)}return ys(i),D1(i,O)}var k=a.memoizedState;if(k!==null){var oe=k.dehydrated;if(oe!==null){if(E)i.flags&256?(ys(i),i.flags&=-257,i=R1(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=Og({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=C1(l),h.childLanes=_1(a,d,l),i.memoizedState=xN,i=If(null,h));else if(ys(i),wj(),(l&536870912)!==0&&Rg(i),lw(oe)){if(d=oe.nextSibling&&oe.nextSibling.dataset,d){O=d.dgst;var se=d.msg;M=d.stck;var X=d.cstck}v=se,d=O,h=M,oe=X,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"&&Jw.set(O,h),Of(h),i=R1(a,i,l)}else if(An||rc(a,i,l,!1),d=(l&a.childLanes)!==0,An||d){if(d=zt,d!==null&&(h=Lr(d,l),h!==0&&h!==k.retryLane))throw k.retryLane=h,or(a,h),ln(d,a,h),bN;sw(oe)||jg(),i=R1(a,i,l)}else sw(oe)?(i.flags|=192,i.child=a.child,i=null):(a=k.treeContext,Gt=ea(oe.nextSibling),nr=i,mt=!0,js=null,$i=!1,ra=null,Ea=!1,a!==null&&xj(i,a),i=D1(i,h.children),i.flags|=4096);return i}}return v?(bs(i),O=h.fallback,M=i.mode,X=a.child,oe=X.sibling,h=go(X,{mode:"hidden",children:h.children}),h.subtreeFlags=X.subtreeFlags&65011712,oe!==null?O=go(oe,O):(O=El(O,M,l,null),O.flags|=2),O.return=i,h.return=i,h.sibling=O,i.child=h,If(null,h),h=i.child,O=a.child.memoizedState,O===null?O=C1(l):(M=O.cachePool,M!==null?(X=Nn._currentValue,M=M.parent!==X?{parent:X,pool:X}:M):M=Cj(),O={baseLanes:O.baseLanes|l,cachePool:M}),h.memoizedState=O,h.childLanes=_1(a,d,l),i.memoizedState=xN,If(a.child,h)):(k!==null&&(l&62914560)===l&&(l&a.lanes)!==0&&Rg(i),ys(i),l=a.child,a=l.sibling,l=go(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 D1(a,i){return i=Og({mode:"visible",children:i},a.mode),i.return=a,a.child=i}function Og(a,i){return a=y(22,a,null,i),a.lanes=0,a}function R1(a,i,l){return Fl(i,a.child,null,l),a=D1(i,i.pendingProps.children),a.flags|=2,i.memoizedState=null,a}function jP(a,i,l){a.lanes|=i;var d=a.alternate;d!==null&&(d.lanes|=i),Ix(a.return,i,l)}function j1(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 PP(a,i,l){var d=i.pendingProps,h=d.revealOrder,v=d.tail,E=d.children,O=vn.current;if((d=(O&Tm)!==0)?(O=O&Bc|Tm,i.flags|=128):O&=Bc,F(vn,O,i),O=h??"null",h!=="forwards"&&h!=="unstable_legacy-backwards"&&h!=="together"&&h!=="independent"&&!vI[O])if(vI[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",Sv[O]||(v==null?(h==="forwards"||h==="backwards"||h==="unstable_legacy-backwards")&&(Sv[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"?(Sv[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"&&(Sv[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(!$j(E[O],O))break e}else if(O=j(E),typeof O=="function"){if(O=O.call(E))for(var M=O.next(),k=0;!M.done;M=O.next()){if(!$j(M.value,k))break e;k++}}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=fm):E=0,!d&&a!==null&&(a.flags&128)!==0)e:for(a=i.child;a!==null;){if(a.tag===13)a.memoizedState!==null&&jP(a,l,i);else if(a.tag===19)jP(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&&cg(a)===null&&(h=l),l=l.sibling;l=h,l===null?(h=i.child,i.child=null):(h=l.sibling,l.sibling=null),j1(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&&cg(a)===null){i.child=h;break}a=h.sibling,h.sibling=l,l=h,h=a}j1(i,!0,l,null,v,E);break;case"together":j1(i,!1,null,null,void 0,E);break;default:i.memoizedState=null}return i.child}function xo(a,i,l){if(a!==null&&(i.dependencies=a.dependencies),wr=-1,Bs|=i.lanes,(l&i.childLanes)===0)if(a!==null){if(rc(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=go(a,a.pendingProps),i.child=l,l.return=i;a.sibling!==null;)a=a.sibling,l=l.sibling=go(a,a.pendingProps),l.return=i;l.sibling=null}return i.child}function P1(a,i){return(a.lanes&i)!==0?!0:(a=a.dependencies,!!(a!==null&&Jh(a)))}function AG(a,i,l){switch(i.tag){case 3:ee(i,i.stateNode.containerInfo),ps(i,Nn,a.memoizedState.cache),Al();break;case 27:case 5:K(i);break;case 4:ee(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,Yx(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?RP(a,i,l):(ys(i),a=xo(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||(rc(a,i,l,!1),d=(l&i.childLanes)!==0),h){if(d)return PP(a,i,l);i.flags|=128}if(h=i.memoizedState,h!==null&&(h.rendering=null,h.tail=null,h.lastEffect=null),F(vn,vn.current,i),d)break;return null;case 22:return i.lanes=0,AP(a,i,l,i.pendingProps);case 24:ps(i,Nn,a.memoizedState.cache)}return xo(a,i,l)}function M1(a,i,l){if(i._debugNeedsRemount&&a!==null){l=Dx(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(!P1(a,l)&&(i.flags&128)===0)return An=!1,AG(a,i,l);An=(a.flags&131072)!==0}else An=!1,(d=mt)&&(fs(),d=(i.flags&1048576)!==0),d&&(d=i.index,fs(),yj(i,fm,d));switch(i.lanes=0,i.tag){case 16:e:if(d=i.pendingProps,a=hs(i.elementType),i.type=a,typeof a=="function")_x(a)?(d=Rl(a,d),i.tag=1,i.type=a=Nl(a),i=_P(null,i,a,d,l)):(i.tag=0,T1(i,a),i.type=a=Nl(a),i=O1(null,i,a,d,l));else{if(a!=null){if(h=a.$$typeof,h===Jf){i.tag=11,i.type=a=Cx(a),i=NP(null,i,a,d,l);break e}else if(h===Kg){i.tag=14,i=EP(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 O1(a,i,i.type,i.pendingProps,l);case 1:return d=i.type,h=Rl(d,i.pendingProps),_P(a,i,d,h,l);case 3:e:{if(ee(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,Fx(a,i),Pf(i,d,null,l);var E=i.memoizedState;if(d=E.cache,ps(i,Nn,d),d!==v.cache&&$x(i,[Nn],l,!0),jf(),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=DP(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),Of(h),i=DP(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(Gt=ea(a.firstChild),nr=i,mt=!0,js=null,$i=!1,ra=null,Ea=!0,l=Kk(i,null,d,l),i.child=l;l;)l.flags=l.flags&-3|4096,l=l.sibling}else{if(Al(),d===h){i=xo(a,i,l);break e}Jn(a,i,d,l)}i=i.child}return i;case 26:return Ag(a,i),a===null?(l=aL(i.type,null,i.pendingProps,null))?i.memoizedState=l:mt||(l=i.type,a=i.pendingProps,d=Y(As.current),d=kg(d).createElement(l),d[tr]=i,d[yr]=a,er(d,l,a),Se(d),i.stateNode=d):i.memoizedState=aL(i.type,a.memoizedProps,i.pendingProps,a.memoizedState),null;case 27:return K(i),a===null&&mt&&(d=Y(As.current),h=G(),d=i.stateNode=nL(i.type,i.pendingProps,d,h,!1),$i||(h=HM(d,i.type,i.pendingProps,h),h!==null&&(Sl(i,0).serverProps=h)),nr=i,Ea=!0,h=Gt,Es(i.type)?(qN=h,Gt=ea(d.firstChild)):Gt=h),Jn(a,i,i.pendingProps.children,l),Ag(a,i),a===null&&(i.flags|=4194304),i.child;case 5:return a===null&&mt&&(v=G(),d=bx(i.type,v.ancestorInfo),h=Gt,(E=!h)||(E=mY(h,i.type,i.pendingProps,Ea),E!==null?(i.stateNode=E,$i||(v=HM(E,i.type,i.pendingProps,v),v!==null&&(Sl(i,0).serverProps=v)),nr=i,Gt=ea(E.firstChild),Ea=!1,v=!0):v=!1,E=!v),E&&(d&&Wh(i,h),ms(i))),K(i),h=i.type,v=i.pendingProps,E=a!==null?a.memoizedProps:null,d=v.children,iw(h,v)?d=null:E!==null&&iw(h,E)&&(i.flags|=32),i.memoizedState!==null&&(h=Xx(a,i,vG,null,null,l),Fm._currentValue=h),Ag(a,i),Jn(a,i,d,l),i.child;case 6:return a===null&&mt&&(l=i.pendingProps,a=G(),d=a.ancestorInfo.current,l=d!=null?zh(l,d.tag,a.ancestorInfo.implicitRootScope):!0,a=Gt,(d=!a)||(d=pY(a,i.pendingProps,Ea),d!==null?(i.stateNode=d,nr=i,Gt=null,d=!0):d=!1,d=!d),d&&(l&&Wh(i,a),ms(i))),null;case 13:return RP(a,i,l);case 4:return ee(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 NP(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||yI||(yI=!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=en(h),d=sN(d,h,void 0),i.flags|=1,Jn(a,i,d,l),i.child;case 14:return EP(a,i,i.type,i.pendingProps,l);case 15:return SP(a,i,i.type,i.pendingProps,l);case 19:return PP(a,i,l);case 31:return SG(a,i,l);case 22:return AP(a,i,l,i.pendingProps);case 24:return Ol(i),d=en(Nn),a===null?(h=Ux(),h===null&&(h=zt,v=Vx(),h.pooledCache=v,Tl(v),v!==null&&(h.pooledCacheLanes|=l),h=v),i.memoizedState={parent:d,cache:h},Hx(i),ps(i,Nn,h)):((a.lanes&l)!==0&&(Fx(a,i),Pf(i,null,null,l),jf()),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&&$x(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 wo(a){a.flags|=4}function L1(a,i,l,d,h){if((i=(a.mode&KQ)!==Ge)&&(i=!1),i){if(a.flags|=16777216,(h&335544128)===h)if(a.stateNode.complete)a.flags|=8192;else if(fM())a.flags|=8192;else throw Hl=yv,uN}else a.flags&=-16777217}function MP(a,i){if(i.type!=="stylesheet"||(i.state.loading&Ca)!==nu)a.flags&=-16777217;else if(a.flags|=16777216,!uL(i))if(fM())a.flags|=8192;else throw Hl=yv,uN}function Tg(a,i){i!==null&&(a.flags|=4),a.flags&16384&&(i=a.tag!==22?Gr():536870912,a.lanes|=i,Xl|=i)}function $f(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&at)!==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&at)!==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 OG(a,i,l){var d=i.pendingProps;switch(Mx(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),yo(Nn,i),U(i),l.pendingContext&&(l.context=l.pendingContext,l.pendingContext=null),(a===null||a.child===null)&&(nc(i)?(kx(),wo(i)):a===null||a.memoizedState.isDehydrated&&(i.flags&256)===0||(i.flags|=1024,Lx())),qt(i),null;case 26:var h=i.type,v=i.memoizedState;return a===null?(wo(i),v!==null?(qt(i),MP(i,v)):(qt(i),L1(i,h,null,d,l))):v?v!==a.memoizedState?(wo(i),qt(i),MP(i,v)):(qt(i),i.flags&=-16777217):(a=a.memoizedProps,a!==d&&wo(i),qt(i),L1(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&&wo(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=G(),nc(i)?Nj(i):(a=nL(h,d,l,a,!0),i.stateNode=a,wo(i))}return qt(i),null;case 5:if(te(i),h=i.type,a!==null&&i.stateNode!=null)a.memoizedProps!==d&&wo(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=G();if(nc(i))Nj(i);else{switch(v=Y(As.current),bx(h,E.ancestorInfo),E=E.context,v=kg(v),E){case Zc:v=v.createElementNS(Nc,h);break;case Hv:v=v.createElementNS(Jg,h);break;default:switch(h){case"svg":v=v.createElementNS(Nc,h);break;case"math":v=v.createElementNS(Jg,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(UI,h)||(UI[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[yr]=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&&wo(i)}}return qt(i),L1(i,i.type,a===null?null:a.memoizedProps,i.pendingProps,l),null;case 6:if(a&&i.stateNode!=null)a.memoizedProps!==d&&wo(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=G(),nc(i)){if(a=i.stateNode,l=i.memoizedProps,h=!$i,d=null,v=nr,v!==null)switch(v.tag){case 3:h&&(h=eL(a,l,d),h!==null&&(Sl(i,0).serverProps=h));break;case 27:case 5:d=v.memoizedProps,h&&(h=eL(a,l,d),h!==null&&(Sl(i,0).serverProps=h))}a[tr]=i,a=!!(a.nodeValue===l||d!==null&&d.suppressHydrationWarning===!0||VM(a.nodeValue,l)),a||ms(i,!0)}else h=l.ancestorInfo.current,h!=null&&zh(d,h.tag,l.ancestorInfo.implicitRootScope),a=kg(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=nc(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&at)!==Ge&&l!==null&&(a=i.child,a!==null&&(i.treeBaseDuration-=a.treeBaseDuration))}else kx(),Al(),(i.flags&128)===0&&(l=i.memoizedState=null),i.flags|=4,qt(i),(i.mode&at)!==Ge&&l!==null&&(a=i.child,a!==null&&(i.treeBaseDuration-=a.treeBaseDuration));a=!1}else l=Lx(),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=nc(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&at)!==Ge&&h!==null&&(h=i.child,h!==null&&(i.treeBaseDuration-=h.treeBaseDuration))}else kx(),Al(),(i.flags&128)===0&&(h=i.memoizedState=null),i.flags|=4,qt(i),(i.mode&at)!==Ge&&h!==null&&(h=i.child,h!==null&&(i.treeBaseDuration-=h.treeBaseDuration));h=!1}else h=Lx(),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&at)!==Ge&&_f(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),Tg(i,i.updateQueue),qt(i),(i.mode&at)!==Ge&&l&&(a=i.child,a!==null&&(i.treeBaseDuration-=a.treeBaseDuration)),null);case 4:return U(i),a===null&&Z1(i.stateNode.containerInfo),qt(i),null;case 10:return yo(i.type,i),qt(i),null;case 19:if(q(vn,i),d=i.memoizedState,d===null)return qt(i),null;if(h=(i.flags&128)!==0,v=d.rendering,v===null)if(h)$f(d,!1);else{if(on!==Io||a!==null&&(a.flags&128)!==0)for(a=i.child;a!==null;){if(v=cg(a),v!==null){for(i.flags|=128,$f(d,!1),a=v.updateQueue,i.updateQueue=a,Tg(i,a),i.subtreeFlags=0,a=l,l=i.child;l!==null;)gj(l,a),l=l.sibling;return F(vn,vn.current&Bc|Tm,i),mt&&vo(i,d.treeForkCount),i.child}a=a.sibling}d.tail!==null&&Hn()>Rv&&(i.flags|=128,h=!0,$f(d,!1),i.lanes=4194304)}else{if(!h)if(a=cg(v),a!==null){if(i.flags|=128,h=!0,a=a.updateQueue,i.updateQueue=a,Tg(i,a),$f(d,!0),d.tail===null&&d.tailMode==="hidden"&&!v.alternate&&!mt)return qt(i),null}else 2*Hn()-d.renderingStartTime>Rv&&l!==536870912&&(i.flags|=128,h=!0,$f(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&Bc|Tm:l&Bc,F(vn,l,i),mt&&vo(i,d.treeForkCount),a):(qt(i),null);case 22:case 23:return Zr(i),Gx(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&&Tg(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&&q(Ul,i),null;case 24:return l=null,a!==null&&(l=a.memoizedState.cache),i.memoizedState.cache!==l&&(i.flags|=2048),yo(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 TG(a,i){switch(Mx(i),i.tag){case 1:return a=i.flags,a&65536?(i.flags=a&-65537|128,(i.mode&at)!==Ge&&_f(i),i):null;case 3:return yo(Nn,i),U(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&at)!==Ge&&_f(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&at)!==Ge&&_f(i),i):null;case 19:return q(vn,i),null;case 4:return U(i),null;case 10:return yo(i.type,i),null;case 22:case 23:return Zr(i),Gx(i),a!==null&&q(Ul,i),a=i.flags,a&65536?(i.flags=a&-65537|128,(i.mode&at)!==Ge&&_f(i),i):null;case 24:return yo(Nn,i),null;case 25:return null;default:return null}}function LP(a,i){switch(Mx(i),i.tag){case 3:yo(Nn,i),U(i);break;case 26:case 27:case 5:te(i);break;case 4:U(i);break;case 31:i.memoizedState!==null&&Zr(i);break;case 13:Zr(i);break;case 19:q(vn,i);break;case 10:yo(i.type,i);break;case 22:case 23:Zr(i),Gx(i),a!==null&&q(Ul,i);break;case 24:yo(Nn,i)}}function Ai(a){return(a.mode&at)!==Ge}function kP(a,i){Ai(a)?(Si(),Vf(i,a),Ei()):Vf(i,a)}function k1(a,i,l){Ai(a)?(Si(),lc(l,a,i),Ei()):lc(l,a,i)}function Vf(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&Nr)!==xv&&(Qc=!0),d=de(i,ZQ,l),(a&Nr)!==xv&&(Qc=!1),d!==void 0&&typeof d!="function")){var v=void 0;v=(l.tag&ia)!==0?"useLayoutEffect":(l.tag&Nr)!==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){At(i,i.return,O)}}function lc(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&Nr)!==xv&&(Qc=!0),h=i,de(h,JQ,h,l,O),(a&Nr)!==xv&&(Qc=!1))}d=d.next}while(d!==v)}}catch(M){At(i,i.return,M)}}function IP(a,i){Ai(a)?(Si(),Vf(i,a),Ei()):Vf(i,a)}function I1(a,i,l){Ai(a)?(Si(),lc(l,a,i),Ei()):lc(l,a,i)}function $P(a){var i=a.updateQueue;if(i!==null){var l=a.stateNode;a.type.defaultProps||"ref"in a.memoizedProps||Hc||(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,Bj,i,l)}catch(d){At(a,a.return,d)}}}function CG(a,i,l){return a.getSnapshotBeforeUpdate(i,l)}function _G(a,i){var l=i.memoizedProps,d=i.memoizedState;i=a.stateNode,a.type.defaultProps||"ref"in a.memoizedProps||Hc||(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,CG,i,h,d);l=bI,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){At(a,a.return,E)}}function VP(a,i,l){l.props=Rl(a.type,a.memoizedProps),l.state=a.memoizedState,Ai(a)?(Si(),de(a,$k,a,i,l),Ei()):de(a,$k,a,i,l)}function DG(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 Bf(a,i){try{de(a,DG,a)}catch(l){At(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){At(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){At(a,i,h)}else l.current=null}function BP(a,i,l,d){var h=a.memoizedProps,v=h.id,E=h.onCommit;h=h.onRender,i=i===null?"mount":"update",pv&&(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 RG(a,i,l,d){var h=a.memoizedProps;a=h.id,h=h.onPostCommit,i=i===null?"mount":"update",pv&&(i="nested-update"),typeof h=="function"&&h(a,i,d,l)}function zP(a){var i=a.type,l=a.memoizedProps,d=a.stateNode;try{de(a,tY,d,i,l,a)}catch(h){At(a,a.return,h)}}function $1(a,i,l){try{de(a,rY,a.stateNode,a.type,l,i,a)}catch(d){At(a,a.return,d)}}function UP(a){return a.tag===5||a.tag===3||a.tag===26||a.tag===27&&Es(a.type)||a.tag===4}function V1(a){e:for(;;){for(;a.sibling===null;){if(a.return===null||UP(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 B1(a,i,l){var d=a.tag;if(d===5||d===6)a=a.stateNode,i?(QM(l),(l.nodeType===9?l.body:l.nodeName==="HTML"?l.ownerDocument.body:l).insertBefore(a,i)):(QM(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=ho));else if(d!==4&&(d===27&&Es(a.type)&&(l=a.stateNode,i=null),a=a.child,a!==null))for(B1(a,i,l),a=a.sibling;a!==null;)B1(a,i,l),a=a.sibling}function Cg(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(Cg(a,i,l),a=a.sibling;a!==null;)Cg(a,i,l),a=a.sibling}function jG(a){for(var i,l=a.return;l!==null;){if(UP(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=V1(a),Cg(a,l,i);break;case 5:l=i.stateNode,i.flags&32&&(YM(l),i.flags&=-33),i=V1(a),Cg(a,i,l);break;case 3:case 4:i=i.stateNode.containerInfo,l=V1(a),B1(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 qP(a){var i=a.stateNode,l=a.memoizedProps;try{de(a,bY,a.type,l,i,a)}catch(d){At(a,a.return,d)}}function HP(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 PG(a,i){if(a=a.containerInfo,BN=Yv,a=oj(a),Nx(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,k=0,oe=0,se=a,X=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;)X=se,se=fe;for(;;){if(se===a)break t;if(X===l&&++k===h&&(O=E),X===v&&++oe===d&&(M=E),(fe=se.nextSibling)!==null)break;se=X,X=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(zN={focusedElem:a,selectionRange:l},Yv=!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&&_G(a,l);break;case 3:if((h&1024)!==0){if(a=a.stateNode.containerInfo,l=a.nodeType,l===9)ow(a);else if(l===1)switch(a.nodeName){case"HEAD":case"HTML":case"BODY":ow(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 FP(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&&kP(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||Hc||(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,lN,l,a),Ei()):de(l,lN,l,a);else{var M=Rl(l.type,i.memoizedProps);i=i.memoizedState,l.type.defaultProps||"ref"in l.memoizedProps||Hc||(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,Lk,l,a,M,i,a.__reactInternalSnapshotBeforeUpdate),Ei()):de(l,Lk,l,a,M,i,a.__reactInternalSnapshotBeforeUpdate)}O&64&&$P(l),O&512&&Bf(l,l.return);break;case 3:if(i=bo(),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,Bj,O,M)}catch(oe){At(l,l.return,oe)}}a.effectDuration+=tg(i);break;case 27:i===null&&O&4&&qP(l);case 26:case 5:if(Ti(a,l),i===null){if(O&4)zP(l);else if(O&64){a=l.type,i=l.memoizedProps,M=l.stateNode;try{de(l,nY,M,a,i,l)}catch(oe){At(l,l.return,oe)}}}O&512&&Bf(l,l.return);break;case 12:if(O&4){O=bo(),Ti(a,l),a=l.stateNode,a.effectDuration+=Cf(O);try{de(l,BP,l,i,Ps,a.effectDuration)}catch(oe){At(l,l.return,oe)}}else Ti(a,l);break;case 31:Ti(a,l),O&4&&YP(a,l);break;case 13:Ti(a,l),O&4&&QP(a,l),O&64&&(a=l.memoizedState,a!==null&&(a=a.dehydrated,a!==null&&(O=UG.bind(null,l),hY(a,O))));break;case 22:if(O=l.memoizedState!==null||ko,!O){i=i!==null&&i.memoizedState!==null||On,M=ko;var k=On;ko=O,(On=i)&&!k?(Ci(a,l,(l.subtreeFlags&8772)!==0),(l.mode&at)!==Ge&&0<=qe&&0<=Ke&&.05<Ke-qe&&Fh(l,qe,Ke)):Ti(a,l),ko=M,On=k}break;case 30:break;default:Ti(a,l)}(l.mode&at)!==Ge&&0<=qe&&0<=Ke&&((un||.05<an)&&vi(l,qe,Ke,an,tn),l.alternate===null&&l.return!==null&&l.return.alternate!==null&&.05<Ke-qe&&(HP(l.return.alternate,l.return)||gi(l,qe,Ke,"Mount"))),Wr(d),xi(h),tn=v,un=E}function KP(a){var i=a.alternate;i!==null&&(a.alternate=null,KP(i)),a.child=null,a.deletions=null,a.sibling=null,a.tag===5&&(i=a.stateNode,i!==null&&le(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 No(a,i,l){for(l=l.child;l!==null;)GP(a,i,l),l=l.sibling}function GP(a,i,l){if(sr&&typeof sr.onCommitFiberUnmount=="function")try{sr.onCommitFiberUnmount(xc,l)}catch(k){Mi||(Mi=!0,console.error("React instrumentation encountered an error: %o",k))}var d=Xr(),h=bi(),v=wi(),E=Ni();switch(l.tag){case 26:On||Oi(l,i),No(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),No(a,i,l),de(l,Qf,l.stateNode),Tn=O,Br=M;break;case 5:On||Oi(l,i);case 6:if(O=Tn,M=Br,Tn=null,No(a,i,l),Tn=O,Br=M,Tn!==null)if(Br)try{de(l,oY,Tn,l.stateNode)}catch(k){At(l,i,k)}else try{de(l,iY,Tn,l.stateNode)}catch(k){At(l,i,k)}break;case 18:Tn!==null&&(Br?(a=Tn,XM(a.nodeType===9?a.body:a.nodeName==="HTML"?a.ownerDocument.body:a,l.stateNode),gc(a)):XM(Tn,l.stateNode));break;case 4:O=Tn,M=Br,Tn=l.stateNode.containerInfo,Br=!0,No(a,i,l),Tn=O,Br=M;break;case 0:case 11:case 14:case 15:lc(Nr,l,i),On||k1(l,i,ia),No(a,i,l);break;case 1:On||(Oi(l,i),O=l.stateNode,typeof O.componentWillUnmount=="function"&&VP(l,i,O)),No(a,i,l);break;case 21:No(a,i,l);break;case 22:On=(O=On)||l.memoizedState!==null,No(a,i,l),On=O;break;default:No(a,i,l)}(l.mode&at)!==Ge&&0<=qe&&0<=Ke&&(un||.05<an)&&vi(l,qe,Ke,an,tn),Wr(d),xi(h),tn=v,un=E}function YP(a,i){if(i.memoizedState===null&&(a=i.alternate,a!==null&&(a=a.memoizedState,a!==null))){a=a.dehydrated;try{de(i,vY,a)}catch(l){At(i,i.return,l)}}}function QP(a,i){if(i.memoizedState===null&&(a=i.alternate,a!==null&&(a=a.memoizedState,a!==null&&(a=a.dehydrated,a!==null))))try{de(i,yY,a)}catch(l){At(i,i.return,l)}}function MG(a){switch(a.tag){case 31:case 13:case 19:var i=a.stateNode;return i===null&&(i=a.stateNode=new xI),i;case 22:return a=a.stateNode,i=a._retryCache,i===null&&(i=a._retryCache=new xI),i;default:throw Error("Unexpected Suspense handler tag ("+a.tag+"). This is a bug in React.")}}function _g(a,i){var l=MG(a);i.forEach(function(d){if(!l.has(d)){if(l.add(d),Li)if(Fc!==null&&Kc!==null)Hf(Kc,Fc);else throw Error("Expected finished root and lanes to be set. This is a bug in React.");var h=qG.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.");GP(h,v,E),Tn=null,Br=!1,(E.mode&at)!==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;)XP(i,a),i=i.sibling}function XP(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&&(lc(Nr|Oa,a,a.return),Vf(Nr|Oa,a),k1(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&&ko&&(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 k=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":k=M.getElementsByTagName("title")[0],(!k||k[nm]||k[tr]||k.namespaceURI===Nc||k.hasAttribute("itemprop"))&&(k=M.createElement(O),M.head.insertBefore(k,M.querySelector("head > title"))),er(k,O,E),k[tr]=a,Se(k),O=k;break e;case"link":var oe=sL("link","href",M).get(O+(E.href||""));if(oe){for(var se=0;se<oe.length;se++)if(k=oe[se],k.getAttribute("href")===(E.href==null||E.href===""?null:E.href)&&k.getAttribute("rel")===(E.rel==null?null:E.rel)&&k.getAttribute("title")===(E.title==null?null:E.title)&&k.getAttribute("crossorigin")===(E.crossOrigin==null?null:E.crossOrigin)){oe.splice(se,1);break t}}k=M.createElement(O),er(k,O,E),M.head.appendChild(k);break;case"meta":if(oe=sL("meta","content",M).get(O+(E.content||""))){for(se=0;se<oe.length;se++)if(k=oe[se],$e(E.content,"content"),k.getAttribute("content")===(E.content==null?null:""+E.content)&&k.getAttribute("name")===(E.name==null?null:E.name)&&k.getAttribute("property")===(E.property==null?null:E.property)&&k.getAttribute("http-equiv")===(E.httpEquiv==null?null:E.httpEquiv)&&k.getAttribute("charset")===(E.charSet==null?null:E.charSet)){oe.splice(se,1);break t}}k=M.createElement(O),er(k,O,E),M.head.appendChild(k);break;default:throw Error('getNodesForType encountered a type it did not expect: "'+O+'". This is a bug in React.')}k[tr]=a,Se(k),O=k}a.stateNode=O}else lL(M,a.type,a.stateNode);else a.stateNode=oL(M,O,a.memoizedProps);else k!==O?(k===null?E.stateNode!==null&&(E=E.stateNode,E.parentNode.removeChild(E)):k.count--,O===null?lL(M,a.type,a.stateNode):oL(M,O,a.memoizedProps)):O===null&&a.stateNode!==null&&$1(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&&$1(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,YM,M)}catch(De){At(a,a.return,De)}}O&4&&a.stateNode!=null&&(M=a.memoizedProps,$1(a,M,E!==null?E.memoizedProps:M)),O&1024&&(wN=!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,aY,M,E,O)}catch(De){At(a,a.return,De)}}break;case 3:if(M=bo(),Fv=null,k=Qa,Qa=Ig(i.containerInfo),$r(i,a),Qa=k,Vr(a),O&4&&E!==null&&E.memoizedState.isDehydrated)try{de(a,gY,i.containerInfo)}catch(De){At(a,a.return,De)}wN&&(wN=!1,WP(a)),i.effectDuration+=tg(M);break;case 4:O=Qa,Qa=Ig(a.stateNode.containerInfo),$r(i,a),Vr(a),Qa=O;break;case 12:O=bo(),$r(i,a),Vr(a),a.stateNode.effectDuration+=Cf(O);break;case 31:$r(i,a),Vr(a),O&4&&(O=a.updateQueue,O!==null&&(a.updateQueue=null,_g(a,O)));break;case 13:$r(i,a),Vr(a),a.child.flags&8192&&a.memoizedState!==null!=(E!==null&&E.memoizedState!==null)&&(Dv=Hn()),O&4&&(O=a.updateQueue,O!==null&&(a.updateQueue=null,_g(a,O)));break;case 22:M=a.memoizedState!==null;var X=E!==null&&E.memoizedState!==null,fe=ko,Ce=On;if(ko=fe||M,On=Ce||X,$r(i,a),On=Ce,ko=fe,X&&!M&&!fe&&!Ce&&(a.mode&at)!==Ge&&0<=qe&&0<=Ke&&.05<Ke-qe&&Fh(a,qe,Ke),Vr(a),O&8192)e:for(i=a.stateNode,i._visibility=M?i._visibility&~dm:i._visibility|dm,!M||E===null||X||ko||On||(jl(a),(a.mode&at)!==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){X=E=i;try{k=X.stateNode,M?de(X,lY,k):de(X,dY,X.stateNode,X.memoizedProps)}catch(De){At(X,X.return,De)}}}else if(i.tag===6){if(E===null){X=i;try{oe=X.stateNode,M?de(X,uY,oe):de(X,fY,oe,X.memoizedProps)}catch(De){At(X,X.return,De)}}}else if(i.tag===18){if(E===null){X=i;try{se=X.stateNode,M?de(X,sY,se):de(X,cY,X.stateNode)}catch(De){At(X,X.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,_g(a,E))));break;case 19:$r(i,a),Vr(a),O&4&&(O=a.updateQueue,O!==null&&(a.updateQueue=null,_g(a,O)));break;case 30:break;case 21:break;default:$r(i,a),Vr(a)}(a.mode&at)!==Ge&&0<=qe&&0<=Ke&&((un||.05<an)&&vi(a,qe,Ke,an,tn),a.alternate===null&&a.return!==null&&a.return.alternate!==null&&.05<Ke-qe&&(HP(a.return.alternate,a.return)||gi(a,qe,Ke,"Mount"))),Wr(l),xi(d),tn=h,un=v}function Vr(a){var i=a.flags;if(i&2){try{de(a,jG,a)}catch(l){At(a,a.return,l)}a.flags&=-3}i&4096&&(a.flags&=-4097)}function WP(a){if(a.subtreeFlags&1024)for(a=a.child;a!==null;){var i=a;WP(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;)FP(a,i.alternate,i),i=i.sibling}function ZP(a){var i=Xr(),l=bi(),d=wi(),h=Ni();switch(a.tag){case 0:case 11:case 14:case 15:k1(a,a.return,ia),jl(a);break;case 1:Oi(a,a.return);var v=a.stateNode;typeof v.componentWillUnmount=="function"&&VP(a,a.return,v),jl(a);break;case 27:de(a,Qf,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&at)!==Ge&&0<=qe&&0<=Ke&&(un||.05<an)&&vi(a,qe,Ke,an,tn),Wr(i),xi(l),tn=d,un=h}function jl(a){for(a=a.child;a!==null;)ZP(a),a=a.sibling}function JP(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),kP(l,ia);break;case 1:if(Ci(a,l,d),i=l.stateNode,typeof i.componentDidMount=="function"&&de(l,lN,l,i),i=l.updateQueue,i!==null){a=l.stateNode;try{de(l,gG,i,a)}catch(k){At(l,l.return,k)}}d&&M&64&&$P(l),Bf(l,l.return);break;case 27:qP(l);case 26:case 5:Ci(a,l,d),d&&i===null&&M&4&&zP(l),Bf(l,l.return);break;case 12:if(d&&M&4){M=bo(),Ci(a,l,d),d=l.stateNode,d.effectDuration+=Cf(M);try{de(l,BP,l,i,Ps,d.effectDuration)}catch(k){At(l,l.return,k)}}else Ci(a,l,d);break;case 31:Ci(a,l,d),d&&M&4&&YP(a,l);break;case 13:Ci(a,l,d),d&&M&4&&QP(a,l);break;case 22:l.memoizedState===null&&Ci(a,l,d),Bf(l,l.return);break;case 30:break;default:Ci(a,l,d)}(l.mode&at)!==Ge&&0<=qe&&0<=Ke&&(un||.05<an)&&vi(l,qe,Ke,an,tn),Wr(h),xi(v),tn=E,un=O}function Ci(a,i,l){for(l=l&&(i.subtreeFlags&8772)!==0,i=i.child;i!==null;)JP(a,i.alternate,i,l),i=i.sibling}function z1(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&&Tf(l))}function U1(a,i){a=null,i.alternate!==null&&(a=i.alternate.memoizedState.cache),i=i.memoizedState.cache,i!==a&&(Tl(i),a!=null&&Tf(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;eM(a,i,l,d,v!==null?v.actualStartTime:h),i=v}}function eM(a,i,l,d,h){var v=Xr(),E=bi(),O=wi(),M=Ni(),k=_s,oe=i.flags;switch(i.tag){case 0:case 11:case 15:(i.mode&at)!==Ge&&0<i.actualStartTime&&(i.flags&1)!==0&&Kh(i,i.actualStartTime,h,Pn,l),Ha(a,i,l,d,h),oe&2048&&IP(i,Er|Oa);break;case 1:(i.mode&at)!==Ge&&0<i.actualStartTime&&((i.flags&128)!==0?Sx(i,i.actualStartTime,h,[]):(i.flags&1)!==0&&Kh(i,i.actualStartTime,h,Pn,l)),Ha(a,i,l,d,h);break;case 3:var se=bo(),X=Pn;Pn=i.alternate!==null&&i.alternate.memoizedState.isDehydrated&&(i.flags&256)===0,Ha(a,i,l,d,h),Pn=X,oe&2048&&(l=null,i.alternate!==null&&(l=i.alternate.memoizedState.cache),d=i.memoizedState.cache,d!==l&&(Tl(d),l!=null&&Tf(l))),a.passiveEffectDuration+=tg(se);break;case 12:if(oe&2048){oe=bo(),Ha(a,i,l,d,h),a=i.stateNode,a.passiveEffectDuration+=Cf(oe);try{de(i,RG,i,i.alternate,Ps,a.passiveEffectDuration)}catch(fe){At(i,i.return,fe)}}else Ha(a,i,l,d,h);break;case 31:oe=Pn,se=i.alternate!==null?i.alternate.memoizedState:null,X=i.memoizedState,se!==null&&X===null?(X=i.deletions,X!==null&&0<X.length&&X[0].tag===18?(Pn=!1,se=se.hydrationErrors,se!==null&&Sx(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,X=i.memoizedState,se===null||se.dehydrated===null||X!==null&&X.dehydrated!==null?Pn=!1:(X=i.deletions,X!==null&&0<X.length&&X[0].tag===18?(Pn=!1,se=se.hydrationErrors,se!==null&&Sx(i,i.actualStartTime,h,se)):Pn=!0),Ha(a,i,l,d,h),Pn=oe;break;case 23:break;case 22:X=i.stateNode,se=i.alternate,i.memoizedState!==null?X._visibility&Oo?Ha(a,i,l,d,h):zf(a,i,l,d,h):X._visibility&Oo?Ha(a,i,l,d,h):(X._visibility|=Oo,uc(a,i,l,d,(i.subtreeFlags&10256)!==0||i.actualDuration!==0&&(i.alternate===null||i.alternate.child!==i.child),h),(i.mode&at)===Ge||Pn||(a=i.actualStartTime,0<=a&&.05<h-a&&Fh(i,a,h),0<=qe&&0<=Ke&&.05<Ke-qe&&Fh(i,qe,Ke))),oe&2048&&z1(se,i);break;case 24:Ha(a,i,l,d,h),oe&2048&&U1(i.alternate,i);break;default:Ha(a,i,l,d,h)}(i.mode&at)!==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&&((un||.05<an)&&vi(i,qe,Ke,an,tn),a&&.05<Ke-qe&&gi(i,qe,Ke,"Mount"))),Wr(v),xi(E),tn=O,un=M,_s=k}function uc(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;tM(a,i,l,d,h,E!==null?E.actualStartTime:v),i=E}}function tM(a,i,l,d,h,v){var E=Xr(),O=bi(),M=wi(),k=Ni(),oe=_s;h&&(i.mode&at)!==Ge&&0<i.actualStartTime&&(i.flags&1)!==0&&Kh(i,i.actualStartTime,v,Pn,l);var se=i.flags;switch(i.tag){case 0:case 11:case 15:uc(a,i,l,d,h,v),IP(i,Er);break;case 23:break;case 22:var X=i.stateNode;i.memoizedState!==null?X._visibility&Oo?uc(a,i,l,d,h,v):zf(a,i,l,d,v):(X._visibility|=Oo,uc(a,i,l,d,h,v)),h&&se&2048&&z1(i.alternate,i);break;case 24:uc(a,i,l,d,h,v),h&&se&2048&&U1(i.alternate,i);break;default:uc(a,i,l,d,h,v)}(i.mode&at)!==Ge&&0<=qe&&0<=Ke&&(un||.05<an)&&vi(i,qe,Ke,an,tn),Wr(E),xi(O),tn=M,un=k,_s=oe}function zf(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,k=i!==null?i.actualStartTime:h,oe=_s;(v.mode&at)!==Ge&&0<v.actualStartTime&&(v.flags&1)!==0&&Kh(v,v.actualStartTime,k,Pn,O);var se=v.flags;switch(v.tag){case 22:zf(E,v,O,M,k),se&2048&&z1(v.alternate,v);break;case 24:zf(E,v,O,M,k),se&2048&&U1(v.alternate,v);break;default:zf(E,v,O,M,k)}_s=oe,v=i}}function cc(a,i,l){if(a.subtreeFlags&Rm)for(a=a.child;a!==null;)nM(a,i,l),a=a.sibling}function nM(a,i,l){switch(a.tag){case 26:cc(a,i,l),a.flags&Rm&&a.memoizedState!==null&&NY(l,Qa,a.memoizedState,a.memoizedProps);break;case 5:cc(a,i,l);break;case 3:case 4:var d=Qa;Qa=Ig(a.stateNode.containerInfo),cc(a,i,l),Qa=d;break;case 22:a.memoizedState===null&&(d=a.alternate,d!==null&&d.memoizedState!==null?(d=Rm,Rm=16777216,cc(a,i,l),Rm=d):cc(a,i,l));break;default:cc(a,i,l)}}function rM(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 Uf(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,oM(d,a),(d.mode&at)!==Ge&&0<=qe&&0<=Ke&&.05<Ke-qe&&gi(d,qe,Ke,"Unmount"),Wr(h)}rM(a)}if(a.subtreeFlags&10256)for(a=a.child;a!==null;)aM(a),a=a.sibling}function aM(a){var i=Xr(),l=bi(),d=wi(),h=Ni();switch(a.tag){case 0:case 11:case 15:Uf(a),a.flags&2048&&I1(a,a.return,Er|Oa);break;case 3:var v=bo();Uf(a),a.stateNode.passiveEffectDuration+=tg(v);break;case 12:v=bo(),Uf(a),a.stateNode.passiveEffectDuration+=Cf(v);break;case 22:v=a.stateNode,a.memoizedState!==null&&v._visibility&Oo&&(a.return===null||a.return.tag!==13)?(v._visibility&=~Oo,Dg(a),(a.mode&at)!==Ge&&0<=qe&&0<=Ke&&.05<Ke-qe&&gi(a,qe,Ke,"Disconnect")):Uf(a);break;default:Uf(a)}(a.mode&at)!==Ge&&0<=qe&&0<=Ke&&(un||.05<an)&&vi(a,qe,Ke,an,tn),Wr(i),xi(l),un=h,tn=d}function Dg(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,oM(d,a),(d.mode&at)!==Ge&&0<=qe&&0<=Ke&&.05<Ke-qe&&gi(d,qe,Ke,"Unmount"),Wr(h)}rM(a)}for(a=a.child;a!==null;)iM(a),a=a.sibling}function iM(a){var i=Xr(),l=bi(),d=wi(),h=Ni();switch(a.tag){case 0:case 11:case 15:I1(a,a.return,Er),Dg(a);break;case 22:var v=a.stateNode;v._visibility&Oo&&(v._visibility&=~Oo,Dg(a));break;default:Dg(a)}(a.mode&at)!==Ge&&0<=qe&&0<=Ke&&(un||.05<an)&&vi(a,qe,Ke,an,tn),Wr(i),xi(l),un=h,tn=d}function oM(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:I1(d,h,Er);break;case 23:case 22:d.memoizedState!==null&&d.memoizedState.cachePool!==null&&(h=d.memoizedState.cachePool.pool,h!=null&&Tl(h));break;case 24:Tf(d.memoizedState.cache)}if((d.mode&at)!==Ge&&0<=qe&&0<=Ke&&(un||.05<an)&&vi(d,qe,Ke,an,tn),Wr(v),xi(E),un=M,tn=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,KP(d),d===l){Kn=null;break e}if(v!==null){v.return=E,Kn=v;break e}Kn=E}}}function LG(){aX.forEach(function(a){return a()})}function sM(){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((bt&Mn)!==Gn&&ot!==0)return ot&-ot;var i=he.T;return i!==null?(i._updatedFibers||(i._updatedFibers=new Set),i._updatedFibers.add(a),X1()):pi()}function lM(){if(Ur===0)if((ot&536870912)===0||mt){var a=Qg;Qg<<=1,(Qg&3932160)===0&&(Qg=262144),Ur=a}else Ur=536870912;return a=aa.current,a!==null&&(a.flags|=32),Ur}function ln(a,i,l){if(Qc&&console.error("useInsertionEffect must not schedule updates."),jN&&(Mv=!0),(a===zt&&(jt===Yl||jt===Ql)||a.cancelPendingCommit!==null)&&(fc(a,0),ws(a,ot,Ur,!1)),Ba(a,l),(bt&Mn)!==Gn&&a===zt){if(Pi)switch(i.tag){case 0:case 11:case 15:a=ut&&B(ut)||"Unknown",LI.has(a)||(LI.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:MI||(console.error("Cannot update during an existing state transition (such as within `render`). Render methods should be a pure function of props and state."),MI=!0)}}else Li&&uo(a,i,l),FG(i),a===zt&&((bt&Mn)===Gn&&(zs|=l),on===$s&&ws(a,ot,Ur,!1)),_i(a)}function uM(a,i,l){if((bt&(Mn|oa))!==Gn)throw Error("Should not already be working.");if(ot!==0&&ut!==null){var d=ut,h=Hn();switch(Tk){case Mm:case Yl:var v=vm;Kt&&((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=vm,Kt&&((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:Kt&&(d=h-vm,3>d||console.timeStamp("Blocked",vm,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))?IG(a,i):H1(a,i,!0);var E=l;do{if(v===Io){Gc&&!l&&ws(a,i,0,!1),i=jt,vm=En(),Tk=i;break}else{if(d=Hn(),h=a.current.alternate,E&&!kG(h)){Ua(i),h=Fn,v=d,!Kt||v<=h||(mn?mn.run(console.timeStamp.bind(console,"Teared Render",h,v,yt,gt,"error")):console.timeStamp("Teared Render",h,v,yt,gt,"error")),Pl(i,d),v=H1(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),Ax(Fn,d,i,mn),Pl(i,d),i=O;e:{d=a,v=E,E=km;var M=d.current.memoizedState.isDehydrated;if(M&&(fc(d,O).flags|=256),O=H1(d,O,!1),O!==Gl){if(SN&&!M){d.errorRecoveryDisabledLanes|=v,zs|=v,v=$s;break e}d=Sr,Sr=E,d!==null&&(Sr===null?Sr=d:Sr.push.apply(Sr,d))}v=O}if(E=!1,v!==Gl)continue;d=Hn()}}if(v===Pm){Ua(i),Ax(Fn,d,i,mn),Pl(i,d),fc(a,0),ws(a,i,0,!0);break}e:{switch(l=a,v){case Io:case Pm:throw Error("Root did not complete. This is a bug in React.");case $s:if((i&4194048)!==i)break;case Ov:Ua(i),uj(Fn,d,i,mn),Pl(i,d),h=i,(h&127)!==0?dv=d:(h&4194048)!==0&&(fv=d),ws(l,i,Ur,!Vs);break e;case Gl:Sr=null;break;case Av:case wI:break;default:throw Error("Unknown root exit status.")}if(he.actQueue!==null)F1(l,h,i,Sr,Im,_v,Ur,zs,Xl,v,null,null,Fn,d);else{if((i&62914560)===i&&(E=Dv+SI-Hn(),10<E)){if(ws(l,i,Ur,!Vs),Un(l,0,!0)!==0)break e;Xa=i,l.timeoutHandle=qI(cM.bind(null,l,h,Sr,Im,_v,i,Ur,zs,Xl,Vs,v,"Throttled",Fn,d),E);break e}cM(l,h,Sr,Im,_v,i,Ur,zs,Xl,Vs,v,null,Fn,d)}}}break}while(!0);_i(a)}function cM(a,i,l,d,h,v,E,O,M,k,oe,se,X,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:ho},nM(i,v,De),Ce=(v&62914560)===v?Dv-Hn():(v&4194048)===v?EI-Hn():0,Ce=EY(De,Ce),Ce!==null)){Xa=v,a.cancelPendingCommit=Ce(F1.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,X,fe)),ws(a,v,E,!k);return}F1(a,i,v,l,d,h,E,O,M,oe,De,se,X,fe)}function kG(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(!xr(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&=~AN,i&=~zs,a.suspendedLanes|=i,a.pingedLanes&=~i,d&&(a.warmLanes|=i),d=a.expirationTimes;for(var h=i;0<h;){var v=31-vr(h),E=1<<v;d[v]=-1,h&=~E}l!==0&&pa(a,l,i)}function dc(){return(bt&(Mn|oa))===Gn?(Ff(0),!1):!0}function q1(){if(ut!==null){if(jt===zr)var a=ut.return;else a=ut,Zh(),e1(a),$c=null,Om=0,a=ut;for(;a!==null;)LP(a.alternate,a),a=a.return;ut=null}}function Pl(a,i){(a&127)!==0&&($l=i),(a&4194048)!==0&&(Ro=i),(a&62914560)!==0&&(Ak=i),(a&2080374784)!==0&&(Ok=i)}function fc(a,i){Kt&&(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(),ot!==0&&0<l){if(Ua(ot),on===Av||on===$s)uj(l,Fn,i,mn);else{var d=Fn,h=mn;if(Kt&&!(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,yt,gt,v)):console.timeStamp(E,l,d,yt,gt,v)}}Pl(ot,Fn)}if(l=mn,mn=null,(i&127)!==0){mn=pm,h=0<=Vi&&Vi<$l?$l:Vi,d=0<=Vl&&Vl<$l?$l:Vl,v=0<=d?d:0<=h?h:Fn,0<=dv?(Ua(2),cj(dv,v,i,l)):mv&127,l=h;var O=d,M=hm,k=0<Lc,oe=Ms===mm,se=Ms===cv;if(h=Fn,d=pm,v=rN,E=aN,Kt){if(yt="Blocking",0<l?l>h&&(l=h):l=h,0<O?O>l&&(O=l):O=l,M!==null&&l>O){var X=k?"secondary-light":"warning";d?d.run(console.timeStamp.bind(console,k?"Consecutive":"Event: "+M,O,l,yt,gt,X)):console.timeStamp(k?"Consecutive":"Event: "+M,O,l,yt,gt,X)}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:yt,trackGroup:gt,color:O}}},d?d.run(performance.measure.bind(performance,oe,l)):performance.measure(oe,l))}Vi=-1.1,Ms=0,aN=rN=null,dv=-1.1,Lc=Vl,Vl=-1.1,$l=En()}if((i&4194048)!==0&&(mn=gm,h=0<=jo&&jo<Ro?Ro:jo,l=0<=Sa&&Sa<Ro?Ro:Sa,d=0<=Ls&&Ls<Ro?Ro:Ls,v=0<=d?d:0<=l?l:Fn,0<=fv?(Ua(256),cj(fv,v,i,mn)):mv&4194048,se=d,O=Bl,M=0<ks,k=iN===cv,v=Fn,d=gm,E=Ek,oe=Sk,Kt&&(yt="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&&(X=M?"secondary-light":"warning",d?d.run(console.timeStamp.bind(console,M?"Consecutive":"Event: "+O,se,h,yt,gt,X)):console.timeStamp(M?"Consecutive":"Event: "+O,se,h,yt,gt,X)),l>h&&(d?d.run(console.timeStamp.bind(console,"Action",h,l,yt,gt,"primary-dark")):console.timeStamp("Action",h,l,yt,gt,"primary-dark")),v>l&&(h=k?"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:yt,trackGroup:gt,color:"primary-light"}}},d?d.run(performance.measure.bind(performance,h,l)):performance.measure(h,l))),Sa=jo=-1.1,iN=0,fv=-1.1,ks=Ls,Ls=-1.1,Ro=En()),(i&62914560)!==0&&(mv&62914560)!==0&&(Ua(4194304),Ox(Ak,Fn)),(i&2080374784)!==0&&(mv&2080374784)!==0&&(Ua(268435456),Ox(Ok,Fn)),l=a.timeoutHandle,l!==tu&&(a.timeoutHandle=tu,vX(l)),l=a.cancelPendingCommit,l!==null&&(a.cancelPendingCommit=null,l()),Xa=0,q1(),zt=a,ut=l=go(a.current,null),ot=i,jt=zr,sa=null,Vs=!1,Gc=Mr(a,i),SN=!1,on=Io,Xl=Ur=AN=zs=Bs=0,Sr=km=null,_v=!1,(i&8)!==0&&(i|=i&32),d=a.entangledLanes,d!==0)for(a=a.entanglements,d&=i;0<d;)h=31-vr(d),v=1<<h,i|=a[h],d&=~v;return zi=i,Gh(),a=vk(),1e3<a-gk&&(he.recentlyCreatedOwnerStacks=0,gk=a),Ga.discardPendingWarnings(),l}function dM(a,i){Xe=null,he.H=Dm,he.getCurrentStack=null,Pi=!1,na=null,i===Ic||i===vv?(i=jj(),jt=Mm):i===uN?(i=jj(),jt=NI):jt=i===bN?EN:i!==null&&typeof i=="object"&&typeof i.then=="function"?Lm:Tv,sa=i;var l=ut;l===null?(on=Pm,Eg(a,Qr(i,a.current))):l.mode&at&&zx(l)}function fM(){var a=aa.current;return a===null?!0:(ot&4194048)===ot?Aa===null:(ot&62914560)===ot||(ot&536870912)!==0?a===Aa:!1}function mM(){var a=he.H;return he.H=Dm,a===null?Dm:a}function pM(){var a=he.A;return he.A=rX,a}function Rg(a){mn===null&&(mn=a._debugTask==null?null:a._debugTask)}function jg(){on=$s,Vs||(ot&4194048)!==ot&&aa.current!==null||(Gc=!0),(Bs&134217727)===0&&(zs&134217727)===0||zt===null||ws(zt,ot,Ur,!1)}function H1(a,i,l){var d=bt;bt|=Mn;var h=mM(),v=pM();if(zt!==a||ot!==i){if(Li){var E=a.memoizedUpdaters;0<E.size&&(Hf(a,ot),E.clear()),co(a,i)}Im=null,fc(a,i)}i=!1,E=on;e:do try{if(jt!==zr&&ut!==null){var O=ut,M=sa;switch(jt){case EN:q1(),E=Ov;break e;case Mm:case Yl:case Ql:case Lm:aa.current===null&&(i=!0);var k=jt;if(jt=zr,sa=null,mc(a,O,M,k),l&&Gc){E=Io;break e}break;default:k=jt,jt=zr,sa=null,mc(a,O,M,k)}}hM(),E=on;break}catch(oe){dM(a,oe)}while(!0);return i&&a.shellSuspendCounter++,Zh(),bt=d,he.H=h,he.A=v,ut===null&&(zt=null,ot=0,Gh()),E}function hM(){for(;ut!==null;)gM(ut)}function IG(a,i){var l=bt;bt|=Mn;var d=mM(),h=pM();if(zt!==a||ot!==i){if(Li){var v=a.memoizedUpdaters;0<v.size&&(Hf(a,ot),v.clear()),co(a,i)}Im=null,Rv=Hn()+AI,fc(a,i)}else Gc=Mr(a,i);e:do try{if(jt!==zr&&ut!==null)t:switch(i=ut,v=sa,jt){case Tv:jt=zr,sa=null,mc(a,i,v,Tv);break;case Yl:case Ql:if(Dj(v)){jt=zr,sa=null,vM(i);break}i=function(){jt!==Yl&&jt!==Ql||zt!==a||(jt=Cv),_i(a)},v.then(i,i);break e;case Mm:jt=Cv;break e;case NI:jt=NN;break e;case Cv:Dj(v)?(jt=zr,sa=null,vM(i)):(jt=zr,sa=null,mc(a,i,v,Cv));break;case NN:var E=null;switch(ut.tag){case 26:E=ut.memoizedState;case 5:case 27:var O=ut;if(E?uL(E):O.stateNode.complete){jt=zr,sa=null;var M=O.sibling;if(M!==null)ut=M;else{var k=O.return;k!==null?(ut=k,Pg(k)):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,mc(a,i,v,NN);break;case Lm:jt=zr,sa=null,mc(a,i,v,Lm);break;case EN:q1(),on=Ov;break e;default:throw Error("Unexpected SuspendedReason. This is a bug in React.")}he.actQueue!==null?hM():$G();break}catch(oe){dM(a,oe)}while(!0);return Zh(),he.H=d,he.A=h,bt=l,ut!==null?Io:(zt=null,ot=0,Gh(),on)}function $G(){for(;ut!==null&&!IY();)gM(ut)}function gM(a){var i=a.alternate;(a.mode&at)!==Ge?(Bx(a),i=de(a,M1,i,a,zi),zx(a)):i=de(a,M1,i,a,zi),a.memoizedProps=a.pendingProps,i===null?Pg(a):ut=i}function vM(a){var i=de(a,VG,a);a.memoizedProps=a.pendingProps,i===null?Pg(a):ut=i}function VG(a){var i=a.alternate,l=(a.mode&at)!==Ge;switch(l&&Bx(a),a.tag){case 15:case 0:i=CP(i,a,a.pendingProps,a.type,void 0,ot);break;case 11:i=CP(i,a,a.pendingProps,a.type.render,a.ref,ot);break;case 5:e1(a);default:LP(i,a),a=ut=gj(a,zi),i=M1(i,a,zi)}return l&&zx(a),i}function mc(a,i,l,d){Zh(),e1(i),$c=null,Om=0;var h=i.return;try{if(EG(a,h,i,l,ot)){on=Pm,Eg(a,Qr(l,a.current)),ut=null;return}}catch(v){if(h!==null)throw ut=h,v;on=Pm,Eg(a,Qr(l,a.current)),ut=null;return}i.flags&32768?(mt||d===Tv?a=!0:Gc||(ot&536870912)!==0?a=!1:(Vs=a=!0,(d===Yl||d===Ql||d===Mm||d===Lm)&&(d=aa.current,d!==null&&d.tag===13&&(d.flags|=16384))),yM(i,a)):Pg(i)}function Pg(a){var i=a;do{if((i.flags&32768)!==0){yM(i,Vs);return}var l=i.alternate;if(a=i.return,Bx(i),l=de(i,OG,l,i,zi),(i.mode&at)!==Ge&&Aj(i),l!==null){ut=l;return}if(i=i.sibling,i!==null){ut=i;return}ut=i=a}while(i!==null);on===Io&&(on=wI)}function yM(a,i){do{var l=TG(a.alternate,a);if(l!==null){l.flags&=32767,ut=l;return}if((a.mode&at)!==Ge){Aj(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);on=Ov,ut=null}function F1(a,i,l,d,h,v,E,O,M,k,oe,se,X,fe){a.cancelPendingCommit=null;do qf();while(Cn!==qs);if(Ga.flushLegacyContextWarning(),Ga.flushPendingUnsafeLifecycleWarnings(),(bt&(Mn|oa))!==Gn)throw Error("Should not already be working.");if(Ua(l),k===Gl?Ax(X,fe,l,mn):d!==null?cG(X,fe,l,d,i!==null&&i.alternate!==null&&i.alternate.memoizedState.isDehydrated&&(i.flags&256)!==0,mn):uG(X,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|=Zw,cs(a,l,v,E,O,M),a===zt&&(ut=zt=null,ot=0),Yc=i,Hs=a,Xa=l,CN=v,DN=h,RI=d,_N=fe,jI=se,Wa=jv,PI=null,i.actualDuration!==0||(i.subtreeFlags&10256)!==0||(i.flags&10256)!==0?(a.callbackNode=null,a.callbackPriority=0,HG(bc,function(){return qm=window.event,Wa===jv&&(Wa=TN),EM(),null})):(a.callbackNode=null,a.callbackPriority=0),Do=null,Ps=En(),se!==null&&dG(fe,Ps,se,mn),d=(i.flags&13878)!==0,(i.subtreeFlags&13878)!==0||d){d=he.T,he.T=null,h=Ot.p,Ot.p=va,E=bt,bt|=oa;try{PG(a,i,l)}finally{bt=E,Ot.p=h,he.T=d}}Cn=TI,bM(),xM(),wM()}}function bM(){if(Cn===TI){Cn=qs;var a=Hs,i=Yc,l=Xa,d=(i.flags&13878)!==0;if((i.subtreeFlags&13878)!==0||d){d=he.T,he.T=null;var h=Ot.p;Ot.p=va;var v=bt;bt|=oa;try{Fc=l,Kc=a,ng(),XP(i,a),Kc=Fc=null,l=zN;var E=oj(a.containerInfo),O=l.focusedElem,M=l.selectionRange;if(E!==O&&O&&O.ownerDocument&&ij(O.ownerDocument.documentElement,O)){if(M!==null&&Nx(O)){var k=M.start,oe=M.end;if(oe===void 0&&(oe=k),"selectionStart"in O)O.selectionStart=k,O.selectionEnd=Math.min(oe,O.value.length);else{var se=O.ownerDocument||document,X=se&&se.defaultView||window;if(X.getSelection){var fe=X.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=aj(O,De),Q=aj(O,Ht);if(vt&&Q&&(fe.rangeCount!==1||fe.anchorNode!==vt.node||fe.anchorOffset!==vt.offset||fe.focusNode!==Q.node||fe.focusOffset!==Q.offset)){var J=se.createRange();J.setStart(vt.node,vt.offset),fe.removeAllRanges(),De>Ht?(fe.addRange(J),fe.extend(Q.node,Q.offset)):(J.setEnd(Q.node,Q.offset),fe.addRange(J))}}}}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}}Yv=!!BN,zN=BN=null}finally{bt=v,Ot.p=h,he.T=d}}a.current=i,Cn=CI}}function xM(){if(Cn===CI){Cn=qs;var a=PI;if(a!==null){Ps=En();var i=_o,l=Ps;!Kt||l<=i||console.timeStamp(a,i,l,yt,gt,"secondary-light")}a=Hs,i=Yc,l=Xa;var d=(i.flags&8772)!==0;if((i.subtreeFlags&8772)!==0||d){d=he.T,he.T=null;var h=Ot.p;Ot.p=va;var v=bt;bt|=oa;try{Fc=l,Kc=a,ng(),FP(a,i.alternate,i),Kc=Fc=null}finally{bt=v,Ot.p=h,he.T=d}}a=_N,i=jI,_o=En(),a=i===null?a:Ps,i=_o,l=Wa===ON,d=mn,Do!==null?dj(a,i,Do,!1,d):!Kt||i<=a||(d?d.run(console.timeStamp.bind(console,l?"Commit Interrupted View Transition":"Commit",a,i,yt,gt,l?"error":"secondary-dark")):console.timeStamp(l?"Commit Interrupted View Transition":"Commit",a,i,yt,gt,l?"error":"secondary-dark")),Cn=_I}}function wM(){if(Cn===DI||Cn===_I){if(Cn===DI){var a=_o;_o=En();var i=_o,l=Wa===ON;!Kt||i<=a||console.timeStamp(l?"Interrupted View Transition":"Starting Animation",a,i,yt,gt,l?" error":"secondary-light"),Wa!==ON&&(Wa=OI)}Cn=qs,$Y(),a=Hs;var d=Yc;i=Xa,l=RI;var h=d.actualDuration!==0||(d.subtreeFlags&10256)!==0||(d.flags&10256)!==0;h?Cn=Pv:(Cn=qs,Yc=Hs=null,NM(a,a.pendingLanes),Wl=0,Vm=null);var v=a.pendingLanes;if(v===0&&(Us=null),h||TM(a),v=fo(i),d=d.stateNode,sr&&typeof sr.onCommitFiberRoot=="function")try{var E=(d.current.flags&128)===128;switch(v){case va:var O=Dw;break;case ki:O=Rw;break;case So:O=bc;break;case Wg:O=jw;break;default:O=bc}sr.onCommitFiberRoot(xc,d,O,E)}catch(se){Mi||(Mi=!0,console.error("React instrumentation encountered an error: %o",se))}if(Li&&a.memoizedUpdaters.clear(),LG(),l!==null){E=he.T,O=Ot.p,Ot.p=va,he.T=null;try{var M=a.onRecoverableError;for(d=0;d<l.length;d++){var k=l[d],oe=BG(k.stack);de(k.source,M,k.value,oe)}}finally{he.T=E,Ot.p=O}}(Xa&3)!==0&&qf(),_i(a),v=a.pendingLanes,(i&261930)!==0&&(v&42)!==0?(hv=!0,a===RN?$m++:($m=0,RN=a)):$m=0,h||Pl(i,_o),Ff(0)}}function BG(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 NM(a,i){(a.pooledCacheLanes&=i)===0&&(i=a.pooledCache,i!=null&&(a.pooledCache=null,Tf(i)))}function qf(){return bM(),xM(),wM(),EM()}function EM(){if(Cn!==Pv)return!1;var a=Hs,i=CN;CN=0;var l=fo(Xa),d=So>l?So:l;l=he.T;var h=Ot.p;try{Ot.p=d,he.T=null;var v=DN;DN=null,d=Hs;var E=Xa;if(Cn=qs,Yc=Hs=null,Xa=0,(bt&(Mn|oa))!==Gn)throw Error("Cannot flush passive effects while already rendering.");Ua(E),jN=!0,Mv=!1;var O=0;if(Do=null,O=Hn(),Wa===OI)Ox(_o,O,XQ);else{var M=_o,k=O,oe=Wa===TN;!Kt||k<=M||(mn?mn.run(console.timeStamp.bind(console,oe?"Waiting for Paint":"Waiting",M,k,yt,gt,"secondary-light")):console.timeStamp(oe?"Waiting for Paint":"Waiting",M,k,yt,gt,"secondary-light"))}M=bt,bt|=oa;var se=d.current;ng(),aM(se);var X=d.current;se=_N,ng(),eM(d,X,E,v,se),TM(d),bt=M;var fe=Hn();if(X=O,se=mn,Do!==null?dj(X,fe,Do,!0,se):!Kt||fe<=X||(se?se.run(console.timeStamp.bind(console,"Remaining Effects",X,fe,yt,gt,"secondary-dark")):console.timeStamp("Remaining Effects",X,fe,yt,gt,"secondary-dark")),Pl(E,fe),Ff(0,!1),Mv?d===Vm?Wl++:(Wl=0,Vm=d):Wl=0,Mv=jN=!1,sr&&typeof sr.onPostCommitFiberRoot=="function")try{sr.onPostCommitFiberRoot(xc,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{Ot.p=h,he.T=l,NM(a,i)}}function SM(a,i,l){i=Qr(l,i),Oj(i),i=E1(a.stateNode,i,2),a=vs(a,i,2),a!==null&&(Ba(a,2),_i(a))}function At(a,i,l){if(Qc=!1,a.tag===3)SM(a,a,l);else{for(;i!==null;){if(i.tag===3){SM(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),Oj(a),l=S1(2),d=vs(i,l,2),d!==null&&(A1(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 K1(a,i,l){var d=a.pingCache;if(d===null){d=a.pingCache=new iX;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)||(SN=!0,h.add(l),d=zG.bind(null,a,i,l),Li&&Hf(a,l),i.then(d,d))}function zG(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(),pm=uv("Promise Resolved"),Ms=cv):(l&4194048)!==0&&0>Sa&&(Ro=Sa=En(),gm=uv("Promise Resolved"),iN=cv),sM()&&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&&(ot&l)===l&&(on===$s||on===Av&&(ot&62914560)===ot&&Hn()-Dv<SI?(bt&Mn)===Gn&&fc(a,0):AN|=l,Xl===ot&&(Xl=0)),_i(a)}function AM(a,i){i===0&&(i=Gr()),a=or(a,i),a!==null&&(Ba(a,i),_i(a))}function UG(a){var i=a.memoizedState,l=0;i!==null&&(l=i.retryLane),AM(a,l)}function qG(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),AM(a,l)}function G1(a,i,l){if((i.subtreeFlags&67117056)!==0)for(i=i.child;i!==null;){var d=a,h=i,v=h.type===Fg;v=l||v,h.tag!==22?h.flags&67108864?v&&de(h,OM,d,h):G1(d,h,v):h.memoizedState===null&&(v&&h.flags&8192?de(h,OM,d,h):h.subtreeFlags&67108864&&de(h,G1,d,h,v)),i=i.sibling}}function OM(a,i){je(!0);try{ZP(i),iM(i),JP(a,i.alternate,i,!1),tM(a,i,0,null,!1,0)}finally{je(!1)}}function TM(a){var i=!0;a.current.mode&(lr|Ka)||(i=!1),G1(a,a.current,i)}function CM(a){if((bt&Mn)===Gn){var i=a.tag;if(i===3||i===1||i===0||i===11||i===14||i===15){if(i=B(a)||"ReactComponent",Lv!==null){if(Lv.has(i))return;Lv.add(i)}else Lv=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 Hf(a,i){Li&&a.memoizedUpdaters.forEach(function(l){uo(a,l,i)})}function HG(a,i){var l=he.actQueue;return l!==null?(l.push(i),lX):_w(a,i)}function FG(a){sM()&&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!==Xc&&a.next===null&&(Xc===null?kv=Xc=a:Xc=Xc.next=a),Iv=!0,he.actQueue!==null?MN||(MN=!0,jM()):PN||(PN=!0,jM())}function Ff(a,i){if(!LN&&Iv){LN=!0;do for(var l=!1,d=kv;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-vr(42|a)+1)-1,v&=h&~(E&~O),v=v&201326741?v&201326741|1:v?v|2:0}v!==0&&(l=!0,RM(d,v))}else v=ot,v=Un(d,d===zt?v:0,d.cancelPendingCommit!==null||d.timeoutHandle!==tu),(v&3)===0||Mr(d,v)||(l=!0,RM(d,v));d=d.next}while(l);LN=!1}}function KG(){qm=window.event,Y1()}function Y1(){Iv=MN=PN=!1;var a=0;Fs!==0&&JG()&&(a=Fs);for(var i=Hn(),l=null,d=kv;d!==null;){var h=d.next,v=_M(d,i);v===0?(d.next=null,l===null?kv=h:l.next=h,h===null&&(Xc=l)):(l=d,(a!==0||(v&3)!==0)&&(Iv=!0)),d=h}Cn!==qs&&Cn!==Pv||Ff(a),Fs!==0&&(Fs=0)}function _M(a,i){for(var l=a.suspendedLanes,d=a.pingedLanes,h=a.expirationTimes,v=a.pendingLanes&-62914561;0<v;){var E=31-vr(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=ot,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&&Q1(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!==kN)Q1(d);else return i;switch(fo(l)){case va:case ki:l=Rw;break;case So:l=bc;break;case Wg:l=jw;break;default:l=bc}return d=DM.bind(null,a),he.actQueue!==null?(he.actQueue.push(d),l=kN):l=_w(l,d),a.callbackPriority=i,a.callbackNode=l,i}return d!==null&&Q1(d),a.callbackPriority=2,a.callbackNode=null,2}function DM(a,i){if(hv=pv=!1,qm=window.event,Cn!==qs&&Cn!==Pv)return a.callbackNode=null,a.callbackPriority=0,null;var l=a.callbackNode;if(Wa===jv&&(Wa=TN),qf()&&a.callbackNode!==l)return null;var d=ot;return d=Un(a,a===zt?d:0,a.cancelPendingCommit!==null||a.timeoutHandle!==tu),d===0?null:(uM(a,d,i),_M(a,Hn()),a.callbackNode!=null&&a.callbackNode===l?DM.bind(null,a):null)}function RM(a,i){if(qf())return null;pv=hv,hv=!1,uM(a,i,!0)}function Q1(a){a!==kN&&a!==null&&kY(a)}function jM(){he.actQueue!==null&&he.actQueue.push(function(){return Y1(),null}),yX(function(){(bt&(Mn|oa))!==Gn?_w(Dw,KG):Y1()})}function X1(){if(Fs===0){var a=zl;a===0&&(a=Yg,Yg<<=1,(Yg&261888)===0&&(Yg=256)),Fs=a}return Fs}function PM(a){return a==null||typeof a=="symbol"||typeof a=="boolean"?null:typeof a=="function"?a:($e(a,"action"),Ef(""+a))}function MM(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 GG(a,i,l,d,h){if(i==="submit"&&l&&l.stateNode===h){var v=PM((h[yr]||null).action),E=d.submitter;E&&(i=(i=E[yr]||null)?PM(i.formAction):E.getAttribute("formAction"),i!==null&&(v=i,E=null));var O=new nv("action","action",null,d,h);a.push({event:O,listeners:[{instance:null,listener:function(){if(d.defaultPrevented){if(Fs!==0){var M=E?MM(h,E):new FormData(h),k={pending:!0,data:M,method:h.method,action:v};Object.freeze(k),g1(l,k,null,M)}}else typeof v=="function"&&(O.preventDefault(),M=E?MM(h,E):new FormData(h),k={pending:!0,data:M,method:h.method,action:v},Object.freeze(k),g1(l,k,v,M))},currentTarget:h}]})}}function Mg(a,i,l){a.currentTarget=l;try{i(a)}catch(d){Yw(d)}a.currentTarget=null}function LM(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,k=O.currentTarget;if(O=O.listener,M!==h&&v.isPropagationStopped())break e;M!==null?de(M,Mg,v,O,k):Mg(v,O,k),h=M}else for(E=0;E<d.length;E++){if(O=d[E],M=O.instance,k=O.currentTarget,O=O.listener,M!==h&&v.isPropagationStopped())break e;M!==null?de(M,Mg,v,O,k):Mg(v,O,k),h=M}}}}function ht(a,i){IN.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[Pw];l===void 0&&(l=i[Pw]=new Set);var d=a+"__bubble";l.has(d)||(kM(i,a,2,!1),l.add(d))}function W1(a,i,l){IN.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),kM(l,a,d,i)}function Z1(a){if(!a[$v]){a[$v]=!0,jL.forEach(function(l){l!=="selectionchange"&&(IN.has(l)||W1(l,!1,a),W1(l,!0,a))});var i=a.nodeType===9?a:a.ownerDocument;i===null||i[$v]||(i[$v]=!0,W1("selectionchange",!1,i))}}function kM(a,i,l,d){switch(hL(i)){case va:var h=TY;break;case ki:h=CY;break;default:h=pw}l=h.bind(null,i,l,a),h=void 0,!$w||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 J1(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}GR(function(){var k=v,oe=xx(l),se=[];e:{var X=hk.get(a);if(X!==void 0){var fe=nv,Ce=a;switch(a){case"keypress":if(Uh(l)===0)break e;case"keydown":case"keyup":fe=EQ;break;case"focusin":Ce="focus",fe=Uw;break;case"focusout":Ce="blur",fe=Uw;break;case"beforeblur":case"afterblur":fe=Uw;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=tk;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":fe=dQ;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":fe=OQ;break;case dk:case fk:case mk:fe=pQ;break;case pk:fe=CQ;break;case"scroll":case"scrollend":fe=uQ;break;case"wheel":fe=DQ;break;case"copy":case"cut":case"paste":fe=gQ;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":fe=rk;break;case"toggle":case"beforetoggle":fe=jQ}var De=(i&4)!==0,Ht=!De&&(a==="scroll"||a==="scrollend"),vt=De?X!==null?X+"Capture":null:X;De=[];for(var Q=k,J;Q!==null;){var re=Q;if(J=re.stateNode,re=re.tag,re!==5&&re!==26&&re!==27||J===null||vt===null||(re=Sf(Q,vt),re!=null&&De.push(Kf(Q,re,J))),Ht)break;Q=Q.return}0<De.length&&(X=new fe(X,Ce,null,l,oe),se.push({event:X,listeners:De}))}}if((i&7)===0){e:{if(X=a==="mouseover"||a==="pointerover",fe=a==="mouseout"||a==="pointerout",X&&l!==rm&&(Ce=l.relatedTarget||l.fromElement)&&(Ee(Ce)||Ce[Ts]))break e;if((fe||X)&&(X=oe.window===oe?oe:(X=oe.ownerDocument)?X.defaultView||X.parentWindow:window,fe?(Ce=l.relatedTarget||l.toElement,fe=k,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=k),fe!==Ce)){if(De=tk,re="onMouseLeave",vt="onMouseEnter",Q="mouse",(a==="pointerout"||a==="pointerover")&&(De=rk,re="onPointerLeave",vt="onPointerEnter",Q="pointer"),Ht=fe==null?X:Me(fe),J=Ce==null?X:Me(Ce),X=new De(re,Q+"leave",fe,l,oe),X.target=Ht,X.relatedTarget=J,re=null,Ee(oe)===k&&(De=new De(vt,Q+"enter",Ce,l,oe),De.target=J,De.relatedTarget=Ht,re=De),Ht=re,fe&&Ce)t:{for(De=YG,vt=fe,Q=Ce,J=0,re=vt;re;re=De(re))J++;re=0;for(var ve=Q;ve;ve=De(ve))re++;for(;0<J-re;)vt=De(vt),J--;for(;0<re-J;)Q=De(Q),re--;for(;J--;){if(vt===Q||Q!==null&&vt===Q.alternate){De=vt;break t}vt=De(vt),Q=De(Q)}De=null}else De=null;fe!==null&&IM(se,X,fe,De,!1),Ce!==null&&Ht!==null&&IM(se,Ht,Ce,De,!0)}}e:{if(X=k?Me(k):window,fe=X.nodeName&&X.nodeName.toLowerCase(),fe==="select"||fe==="input"&&X.type==="file")var _e=ej;else if(ZR(X))if(uk)_e=oG;else{_e=aG;var We=rG}else fe=X.nodeName,!fe||fe.toLowerCase()!=="input"||X.type!=="checkbox"&&X.type!=="radio"?k&&Nf(k.elementType)&&(_e=ej):_e=iG;if(_e&&(_e=_e(a,k))){JR(se,_e,l,oe);break e}We&&We(a,X,k),a==="focusout"&&k&&X.type==="number"&&k.memoizedProps.value!=null&&px(X,"number",X.value)}switch(We=k?Me(k):window,a){case"focusin":(ZR(We)||We.contentEditable==="true")&&(Tc=We,Hw=k,cm=null);break;case"focusout":cm=Hw=Tc=null;break;case"mousedown":Fw=!0;break;case"contextmenu":case"mouseup":case"dragend":Fw=!1,sj(se,l,oe);break;case"selectionchange":if(kQ)break;case"keydown":case"keyup":sj(se,l,oe)}var Ue;if(qw)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 Oc?XR(a,l)&&(Ve="onCompositionEnd"):a==="keydown"&&l.keyCode===ak&&(Ve="onCompositionStart");Ve&&(ik&&l.locale!=="ko"&&(Oc||Ve!=="onCompositionStart"?Ve==="onCompositionEnd"&&Oc&&(Ue=YR()):(Cs=oe,Vw="value"in Cs?Cs.value:Cs.textContent,Oc=!0)),We=Lg(k,Ve),0<We.length&&(Ve=new nk(Ve,a,null,l,oe),se.push({event:Ve,listeners:We}),Ue?Ve.data=Ue:(Ue=WR(l),Ue!==null&&(Ve.data=Ue)))),(Ue=MQ?JK(a,l):eG(a,l))&&(Ve=Lg(k,"onBeforeInput"),0<Ve.length&&(We=new yQ("onBeforeInput","beforeinput",null,l,oe),se.push({event:We,listeners:Ve}),We.data=Ue)),GG(se,a,k,l,oe)}LM(se,i)})}function Kf(a,i,l){return{instance:a,listener:i,currentTarget:l}}function Lg(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=Sf(a,l),h!=null&&d.unshift(Kf(a,h,v)),h=Sf(a,i),h!=null&&d.push(Kf(a,h,v))),a.tag===3)return d;a=a.return}return[]}function YG(a){if(a===null)return null;do a=a.return;while(a&&a.tag!==5&&a.tag!==27);return a||null}function IM(a,i,l,d,h){for(var v=i._reactName,E=[];l!==null&&l!==d;){var O=l,M=O.alternate,k=O.stateNode;if(O=O.tag,M!==null&&M===d)break;O!==5&&O!==26&&O!==27||k===null||(M=k,h?(k=Sf(l,v),k!=null&&E.unshift(Kf(l,k,M))):h||(k=Sf(l,v),k!=null&&E.push(Kf(l,k,M)))),l=l.return}E.length!==0&&a.push({event:i,listeners:E})}function ew(a,i){QK(a,i),a!=="input"&&a!=="textarea"&&a!=="select"||i==null||i.value!==null||JL||(JL=!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:Mw};Nf(a)||typeof i.is=="string"||WK(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 QG(a,i,l){i.forEach(function(d){l[BM(d)]=d==="style"?nw(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 $M(a,i){return a=a.namespaceURI===Jg||a.namespaceURI===Nc?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(uX,`
`).replace(cX,"")}function VM(a,i){return i=Ns(i),Ns(a)===i}function Vt(a,i,l,d,h,v){switch(l){case"children":typeof d=="string"?(zh(d,i,!1),i==="body"||i==="textarea"&&d===""||wf(a,d)):(typeof d=="number"||typeof d=="bigint")&&(zh(""+d,i,!1),i!=="body"&&wf(a,""+d));break;case"className":mo(a,"class",d);break;case"tabIndex":mo(a,"tabindex",d);break;case"dir":case"role":case"viewBox":case"width":case"height":mo(a,l,d);break;case"style":HR(a,d,v);break;case"data":if(i!=="object"){mo(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=Ef(""+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||zv||(zv=!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||Bv||(Bv=!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"||Vv?i!=="button"||h.type==null||h.type==="submit"||Vv?typeof d=="function"&&(h.name==null||$I||($I=!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||zv||(zv=!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||Bv||(Bv=!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."))):(Vv=!0,console.error('A button can only specify a formAction along with type="submit" or no type.')):(Vv=!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=Ef(""+d),a.setAttribute(l,d);break;case"onClick":d!=null&&(typeof d!="function"&&Di(l,d),a.onclick=ho);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=Ef(""+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!==""||Uv[l]||(Uv[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,$N,"xml:base",d);break;case"xmlLang":gn(a,$N,"xml:lang",d);break;case"xmlSpace":gn(a,$N,"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":VI||d==null||typeof d!="object"||(VI=!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=FR(l),Rn(a,l,d)):Ml.hasOwnProperty(l)&&d!=null&&typeof d!="function"&&Di(l,d)}}function tw(a,i,l,d,h,v){switch(l){case"style":HR(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"?wf(a,d):(typeof d=="number"||typeof d=="bigint")&&wf(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=ho);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[yr]||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(ew(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":It("input",l),ht("invalid",a);var O=v=E=h=null,M=null,k=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":k=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)}}CR(a,l),_R(a,v,O,M,k,E,h,!1);return;case"select":It("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)}jR(a,l),i=v,l=E,a.multiple=!!d,i!=null?Ju(a,!!d,i,!1):l!=null&&Ju(a,!!d,l,!0);return;case"textarea":It("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)}PR(a,l),LR(a,d,h,v);return;case"option":DR(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<Bm.length;d++)ht(Bm[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(k in l)if(l.hasOwnProperty(k)&&(d=l[k],d!=null))switch(k){case"children":case"dangerouslySetInnerHTML":throw Error(i+" is a void element tag and must neither have `children` nor use `dangerouslySetInnerHTML`.");default:Vt(a,i,k,d,l,null)}return;default:if(Nf(i)){for(oe in l)l.hasOwnProperty(oe)&&(d=l[oe],d!==void 0&&tw(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 XG(a,i,l,d){switch(ew(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,k=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 X in d){var fe=d[X];if(se=l[X],d.hasOwnProperty(X)&&(fe!=null||se!=null))switch(X){case"type":v=fe;break;case"name":h=fe;break;case"checked":k=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,X,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||II||(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"),II=!0),!i||d||kI||(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"),kI=!0),mx(a,E,O,M,k,oe,v,h);return;case"select":fe=E=O=X=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":X=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,X!=null?Ju(a,!!i,X,!1):!!l!=!!i&&(d!=null?Ju(a,!!i,d,!0):Ju(a,!!i,i?[]:"",!1));return;case"textarea":fe=X=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":X=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)}MR(a,X,fe);return;case"option":for(var Ce in l)if(X=l[Ce],l.hasOwnProperty(Ce)&&X!=null&&!d.hasOwnProperty(Ce))switch(Ce){case"selected":a.selected=!1;break;default:Vt(a,i,Ce,null,d,X)}for(M in d)if(X=d[M],fe=l[M],d.hasOwnProperty(M)&&X!==fe&&(X!=null||fe!=null))switch(M){case"selected":a.selected=X&&typeof X!="function"&&typeof X!="symbol";break;default:Vt(a,i,M,X,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)X=l[De],l.hasOwnProperty(De)&&X!=null&&!d.hasOwnProperty(De)&&Vt(a,i,De,null,d,X);for(k in d)if(X=d[k],fe=l[k],d.hasOwnProperty(k)&&X!==fe&&(X!=null||fe!=null))switch(k){case"children":case"dangerouslySetInnerHTML":if(X!=null)throw Error(i+" is a void element tag and must neither have `children` nor use `dangerouslySetInnerHTML`.");break;default:Vt(a,i,k,X,d,fe)}return;default:if(Nf(i)){for(var Ht in l)X=l[Ht],l.hasOwnProperty(Ht)&&X!==void 0&&!d.hasOwnProperty(Ht)&&tw(a,i,Ht,void 0,d,X);for(oe in d)X=d[oe],fe=l[oe],!d.hasOwnProperty(oe)||X===fe||X===void 0&&fe===void 0||tw(a,i,oe,X,d,fe);return}}for(var vt in l)X=l[vt],l.hasOwnProperty(vt)&&X!=null&&!d.hasOwnProperty(vt)&&Vt(a,i,vt,null,d,X);for(se in d)X=d[se],fe=l[se],!d.hasOwnProperty(se)||X===fe||X==null&&fe==null||Vt(a,i,se,X,d,fe)}function BM(a){switch(a){case"class":return"className";case"for":return"htmlFor";default:return a}}function nw(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 zM(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||WL.has(v)?(et(E,v),d+=h+v.replace(KL,"-$1").toLowerCase().replace(GL,"-ms-")+":"+(""+E).trim()):d+=h+v.replace(KL,"-$1").toLowerCase().replace(GL,"-ms-")+":"+E+"px",h=";")}d=d||null,i=a.getAttribute("style"),i!==d&&(d=Ns(d),Ns(i)!==d&&(l.style=nw(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 UM(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 rw(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 qM(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 aw(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=Ef(""+d),a===l)return}qn(i,a,d,v)}function HM(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(Nf(i)){for(var M in l)if(l.hasOwnProperty(M)){var k=l[M];if(k!=null){if(Ml.hasOwnProperty(M))typeof k!="function"&&Di(M,k);else if(l.suppressHydrationWarning!==!0)switch(M){case"children":typeof k!="string"&&typeof k!="number"||qn("children",a.textContent,k,h);continue;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"defaultValue":case"defaultChecked":case"innerHTML":case"ref":continue;case"dangerouslySetInnerHTML":E=a.innerHTML,k=k?k.__html:void 0,k!=null&&(k=$M(a,k),qn(M,E,k,h));continue;case"style":v.delete(M),zM(a,k,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",k),qn("className",E,k,h);continue;default:d.context===$o&&i!=="svg"&&i!=="math"?v.delete(M.toLowerCase()):v.delete(M),E=dn(a,M,k),qn(M,E,k,h)}}}}else for(k in l)if(l.hasOwnProperty(k)&&(M=l[k],M!=null)){if(Ml.hasOwnProperty(k))typeof M!="function"&&Di(k,M);else if(l.suppressHydrationWarning!==!0)switch(k){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=$M(a,M),E!==M&&(h[k]={__html:E}));continue;case"className":ga(a,k,"class",M,v,h);continue;case"tabIndex":ga(a,k,"tabindex",M,v,h);continue;case"style":v.delete(k),zM(a,M,h);continue;case"multiple":v.delete(k),qn(k,a.multiple,M,h);continue;case"muted":v.delete(k),qn(k,a.muted,M,h);continue;case"autoFocus":v.delete("autofocus"),qn(k,a.autofocus,M,h);continue;case"data":if(i!=="object"){v.delete(k),E=a.getAttribute("data"),qn(k,E,M,h);continue}case"src":case"href":if(!(M!==""||i==="a"&&k==="href"||i==="object"&&k==="data")){console.error(k==="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.',k,k);continue}aw(a,k,k,M,v,h);continue;case"action":case"formAction":if(E=a.getAttribute(k),typeof M=="function"){v.delete(k.toLowerCase()),k==="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===dX){v.delete(k.toLowerCase()),qn(k,"function",M,h);continue}aw(a,k,k.toLowerCase(),M,v,h);continue;case"xlinkHref":aw(a,k,"xlink:href",M,v,h);continue;case"contentEditable":rw(a,k,"contenteditable",M,v,h);continue;case"spellCheck":rw(a,k,"spellcheck",M,v,h);continue;case"draggable":case"autoReverse":case"externalResourcesRequired":case"focusable":case"preserveAlpha":rw(a,k,k,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":UM(a,k,k.toLowerCase(),M,v,h);continue;case"capture":case"download":e:{O=a;var oe=E=k,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=k,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":qM(a,k,"rowspan",M,v,h);continue;case"start":qM(a,k,k,M,v,h);continue;case"xHeight":ga(a,k,"x-height",M,v,h);continue;case"xlinkActuate":ga(a,k,"xlink:actuate",M,v,h);continue;case"xlinkArcrole":ga(a,k,"xlink:arcrole",M,v,h);continue;case"xlinkRole":ga(a,k,"xlink:role",M,v,h);continue;case"xlinkShow":ga(a,k,"xlink:show",M,v,h);continue;case"xlinkTitle":ga(a,k,"xlink:title",M,v,h);continue;case"xlinkType":ga(a,k,"xlink:type",M,v,h);continue;case"xmlBase":ga(a,k,"xml:base",M,v,h);continue;case"xmlLang":ga(a,k,"xml:lang",M,v,h);continue;case"xmlSpace":ga(a,k,"xml:space",M,v,h);continue;case"inert":M!==""||Uv[k]||(Uv[k]=!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.",k)),UM(a,k,k,M,v,h);continue;default:if(!(2<k.length)||k[0]!=="o"&&k[0]!=="O"||k[1]!=="n"&&k[1]!=="N"){O=FR(k),E=!1,d.context===$o&&i!=="svg"&&i!=="math"?v.delete(O.toLowerCase()):(oe=k.toLowerCase(),oe=ev.hasOwnProperty(oe)&&ev[oe]||null,oe!==null&&oe!==k&&(E=!0,v.delete(oe)),v.delete(O));e:if(oe=a,se=O,O=M,hr(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(k,O,M,h)}}}return 0<v.size&&l.suppressHydrationWarning!==!0&&QG(a,v,h),Object.keys(h).length===0?null:h}function WG(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 FM(a){switch(a){case"css":case"script":case"font":case"img":case"image":case"input":case"link":return!0;default:return!1}}function ZG(){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&&FM(E)){for(E=0,O=h.responseEnd,d+=1;d<l.length;d++){var M=l[d],k=M.startTime;if(k>O)break;var oe=M.transferSize,se=M.initiatorType;oe&&FM(se)&&(M=M.responseEnd,E+=oe*(M<O?1:(O-k)/(M-k)))}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 kg(a){return a.nodeType===9?a:a.ownerDocument}function KM(a){switch(a){case Nc:return Zc;case Jg:return Hv;default:return $o}}function GM(a,i){if(a===$o)switch(i){case"svg":return Zc;case"math":return Hv;default:return $o}return a===Zc&&i==="foreignObject"?$o:a}function iw(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 JG(){var a=window.event;return a&&a.type==="popstate"?a===UN?!1:(UN=a,!0):(UN=null,!1)}function Gf(){var a=window.event;return a&&a!==qm?a.type:null}function Yf(){var a=window.event;return a&&a!==qm?a.timeStamp:-1.1}function eY(a){setTimeout(function(){throw a})}function tY(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 nY(){}function rY(a,i,l,d){XG(a,i,l,d),a[yr]=d}function YM(a){wf(a,"")}function aY(a,i,l){a.nodeValue=l}function QM(a){if(!a.__reactWarnedAboutChildrenConflict){var i=a[yr]||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 iY(a,i){a.removeChild(i)}function oY(a,i){(a.nodeType===9?a.body:a.nodeName==="HTML"?a.ownerDocument.body:a).removeChild(i)}function XM(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===Um||l===qv){if(d===0){a.removeChild(h),gc(i);return}d--}else if(l===zm||l===Ks||l===eu||l===Wc||l===Jl)d++;else if(l===mX)Qf(a.ownerDocument.documentElement);else if(l===hX){l=a.ownerDocument.head,Qf(l);for(var v=l.firstChild;v;){var E=v.nextSibling,O=v.nodeName;v[nm]||O==="SCRIPT"||O==="STYLE"||O==="LINK"&&v.rel.toLowerCase()==="stylesheet"||l.removeChild(v),v=E}}else l===pX&&Qf(a.ownerDocument.body);l=h}while(l);gc(i)}function WM(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===Um){if(a===0)break;a--}else l!==zm&&l!==Ks&&l!==eu&&l!==Wc||a++;l=d}while(l)}function sY(a){WM(a,!0)}function lY(a){a=a.style,typeof a.setProperty=="function"?a.setProperty("display","none","important"):a.display="none"}function uY(a){a.nodeValue=""}function cY(a){WM(a,!1)}function dY(a,i){i=i[gX],i=i!=null&&i.hasOwnProperty("display")?i.display:null,a.style.display=i==null||typeof i=="boolean"?"":(""+i).trim()}function fY(a,i){a.nodeValue=i}function ow(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":ow(l),le(l);continue;case"SCRIPT":case"STYLE":continue;case"LINK":if(l.rel.toLowerCase()==="stylesheet")continue}a.removeChild(l)}}function mY(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[nm])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 pY(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 ZM(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 sw(a){return a.data===Ks||a.data===eu}function lw(a){return a.data===Wc||a.data===Ks&&a.ownerDocument.readyState!==zI}function hY(a,i){var l=a.ownerDocument;if(a.data===eu)a._reactRetry=i;else if(a.data!==Ks||l.readyState!==zI)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===zm||i===Wc||i===Ks||i===eu||i===Jl||i===VN||i===BI)break;if(i===Um||i===qv)return null}}return a}function JM(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[BM(v.name)]=v.name.toLowerCase()==="style"?nw(a):v.value}return{type:i,props:l}}return a.nodeType===8?a.data===Jl?{type:"Activity",props:{}}:{type:"Suspense",props:{}}:a.nodeValue}function eL(a,i,l){return l===null||l[fX]!==!0?(a.nodeValue===i?a=null:(i=Ns(i),a=Ns(a.nodeValue)===i?null:a.nodeValue),a):null}function uw(a){a=a.nextSibling;for(var i=0;a;){if(a.nodeType===8){var l=a.data;if(l===Um||l===qv){if(i===0)return ea(a.nextSibling);i--}else l!==zm&&l!==Wc&&l!==Ks&&l!==eu&&l!==Jl||i++}a=a.nextSibling}return null}function tL(a){a=a.previousSibling;for(var i=0;a;){if(a.nodeType===8){var l=a.data;if(l===zm||l===Wc||l===Ks||l===eu||l===Jl){if(i===0)return a;i--}else l!==Um&&l!==qv||i++}a=a.previousSibling}return null}function gY(a){gc(a)}function vY(a){gc(a)}function yY(a){gc(a)}function nL(a,i,l,d,h){switch(h&&bx(a,d.ancestorInfo),i=kg(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 bY(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[yr]=i}function Qf(a){for(var i=a.attributes;i.length;)a.removeAttributeNode(i[0]);le(a)}function Ig(a){return typeof a.getRootNode=="function"?a.getRootNode():a.nodeType===9?a:a.ownerDocument}function rL(a,i,l){var d=Jc;if(d&&typeof i=="string"&&i){var h=ha(i);h='link[rel="'+a+'"][href="'+h+'"]',typeof l=="string"&&(h+='[crossorigin="'+l+'"]'),GI.has(h)||(GI.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 aL(a,i,l,d){var h=(h=As.current)?Ig(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=pc(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=pc(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(Xf(a)))&&!v._p&&(E.instance=v,E.state.loading=Hm|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||xY(h,a,O,E.state)}if(i&&d===null)throw l=`
- `+$g(i)+`
+ `+$g(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=`
- `+$g(i)+`
+ `+$g(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=hc(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 $g(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 pc(a){return'href="'+ha(a)+'"'}function Xf(a){return'link[rel="stylesheet"]['+a+"]"}function iL(a){return dt({},a,{"data-precedence":a.precedence,precedence:null})}function xY(a,i,l,d){a.querySelector('link[rel="preload"][as="style"]['+i+"]")?d.loading=Hm:(i=a.createElement("link"),d.preload=i,i.addEventListener("load",function(){return d.loading|=Hm}),i.addEventListener("error",function(){return d.loading|=FI}),er(i,"link",l),Se(i),a.head.appendChild(i))}function hc(a){return'[src="'+ha(a)+'"]'}function Wf(a){return"script[async]"+a}function oL(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),Vg(d,l.precedence,a),i.instance=d;case"stylesheet":h=pc(l.href);var v=a.querySelector(Xf(h));if(v)return i.state.loading|=Ca,i.instance=v,Se(v),v;d=iL(l),(h=_a.get(h))&&cw(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,Vg(v,l.precedence,a),i.instance=v;case"script":return v=hc(l.src),(h=a.querySelector(Wf(v)))?(i.instance=h,Se(h),h):(d=l,(h=_a.get(v))&&(d=dt({},l),dw(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,Vg(d,l.precedence,a));return i.instance}function Vg(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 cw(a,i){a.crossOrigin==null&&(a.crossOrigin=i.crossOrigin),a.referrerPolicy==null&&(a.referrerPolicy=i.referrerPolicy),a.title==null&&(a.title=i.title)}function dw(a,i){a.crossOrigin==null&&(a.crossOrigin=i.crossOrigin),a.referrerPolicy==null&&(a.referrerPolicy=i.referrerPolicy),a.integrity==null&&(a.integrity=i.integrity)}function sL(a,i,l){if(Fv===null){var d=new Map,h=Fv=new Map;h.set(l,d)}else h=Fv,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[nm]||v[tr]||a==="link"&&v.getAttribute("rel")==="stylesheet")&&v.namespaceURI!==Nc){var E=v.getAttribute(i)||"";E=a+E;var O=d.get(E);O?O.push(v):d.set(E,[v])}}return d}function lL(a,i,l){a=a.ownerDocument||a,a.head.insertBefore(l,i==="title"?a.querySelector("head > title"):null)}function wY(a,i,l){var d=!l.ancestorInfo.containerTagInScope;if(l.context===Zc||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=WG(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 uL(a){return!(a.type==="stylesheet"&&(a.state.loading&KI)===nu)}function NY(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=pc(d.href),v=i.querySelector(Xf(h));if(v){i=v._p,i!==null&&typeof i=="object"&&typeof i.then=="function"&&(a.count++,a=Bg.bind(a),i.then(a,a)),l.state.loading|=Ca,l.instance=v,Se(v);return}v=i.ownerDocument||i,d=iL(d),(h=_a.get(h))&&cw(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&KI)===nu&&(a.count++,l=Bg.bind(a),i.addEventListener("load",l),i.addEventListener("error",l))}}function EY(a,i){return a.stylesheets&&a.count===0&&zg(a,a.stylesheets),0<a.count||0<a.imgCount?function(l){var d=setTimeout(function(){if(a.stylesheets&&zg(a,a.stylesheets),a.unsuspend){var v=a.unsuspend;a.unsuspend=null,v()}},bX+i);0<a.imgBytes&&HN===0&&(HN=125*ZG()*wX);var h=setTimeout(function(){if(a.waitingForImages=!1,a.count===0&&(a.stylesheets&&zg(a,a.stylesheets),a.unsuspend)){var v=a.unsuspend;a.unsuspend=null,v()}},(a.imgBytes>HN?50:xX)+i);return a.unsuspend=l,function(){a.unsuspend=null,clearTimeout(d),clearTimeout(h)}}:null}function Bg(){if(this.count--,this.count===0&&(this.imgCount===0||!this.waitingForImages)){if(this.stylesheets)zg(this,this.stylesheets);else if(this.unsuspend){var a=this.unsuspend;this.unsuspend=null,a()}}}function zg(a,i){a.stylesheets=null,a.unsuspend!==null&&(a.count++,Kv=new Map,i.forEach(SY,a),Kv=null,Bg.call(a))}function SY(a,i){if(!(i.state.loading&Ca)){var l=Kv.get(a);if(l)var d=l.get(FN);else{l=new Map,Kv.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(FN,d)}h=i.instance,E=h.getAttribute("data-precedence"),v=l.get(E)||d,v===d&&l.set(FN,h),l.set(E,h),this.count++,d=Bg.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 AY(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 cL(a,i,l,d,h,v,E,O,M,k,oe,se){return a=new AY(a,i,l,E,M,k,oe,se,O),i=FQ,v===!0&&(i|=lr|Ka),i|=at,v=y(3,null,null,i),a.current=v,v.stateNode=a,i=Vx(),Tl(i),a.pooledCache=i,Tl(i),v.memoizedState={element:d,isDehydrated:l,cache:i},Hx(v),a}function dL(a){return a?(a=Rs,a):Rs}function fw(a,i,l,d,h,v){if(sr&&typeof sr.onScheduleFiberRoot=="function")try{sr.onScheduleFiberRoot(xc,d,l)}catch(E){Mi||(Mi=!0,console.error("React instrumentation encountered an error: %o",E))}h=dL(h),d.context===null?d.context=h:d.pendingContext=h,Pi&&na!==null&&!WI&&(WI=!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),ln(l,a,i),Rf(l,a,i))}function fL(a,i){if(a=a.memoizedState,a!==null&&a.dehydrated!==null){var l=a.retryLane;a.retryLane=l!==0&&l<i?l:i}}function mw(a,i){fL(a,i),(a=a.alternate)&&fL(a,i)}function mL(a){if(a.tag===13||a.tag===31){var i=or(a,67108864);i!==null&&ln(i,a,67108864),mw(a,67108864)}}function pL(a){if(a.tag===13||a.tag===31){var i=Jr(a);i=mi(i);var l=or(a,i);l!==null&&ln(l,a,i),mw(a,i)}}function OY(){return na}function TY(a,i,l,d){var h=he.T;he.T=null;var v=Ot.p;try{Ot.p=va,pw(a,i,l,d)}finally{Ot.p=v,he.T=h}}function CY(a,i,l,d){var h=he.T;he.T=null;var v=Ot.p;try{Ot.p=ki,pw(a,i,l,d)}finally{Ot.p=v,he.T=h}}function pw(a,i,l,d){if(Yv){var h=hw(d);if(h===null)J1(a,i,d,Qv,l),gL(a,d);else if(_Y(h,a,i,l,d))d.stopPropagation();else if(gL(a,d),i&4&&-1<EX.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-vr(E);O.entanglements[1]|=M,E&=~M}_i(v),(bt&(Mn|oa))===Gn&&(Rv=Hn()+AI,Ff(0))}}break;case 31:case 13:O=or(v,2),O!==null&&ln(O,v,2),dc(),mw(v,2)}if(v=hw(d),v===null&&J1(a,i,d,Qv,l),v===h)break;h=v}h!==null&&d.stopPropagation()}else J1(a,i,d,null,l)}}function hw(a){return a=xx(a),gw(a)}function gw(a){if(Qv=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=_(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 Qv=a,null}function hL(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(VY()){case Dw:return va;case Rw:return ki;case bc:case BY:return So;case jw:return Wg;default:return So}default:return So}}function gL(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":Km.delete(i.pointerId);break;case"gotpointercapture":case"lostpointercapture":Gm.delete(i.pointerId)}}function Zf(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&&mL(i)),a):(a.eventSystemFlags|=d,i=a.targetContainers,h!==null&&i.indexOf(h)===-1&&i.push(h),a)}function _Y(a,i,l,d,h){switch(i){case"focusin":return Gs=Zf(Gs,a,i,l,d,h),!0;case"dragenter":return Ys=Zf(Ys,a,i,l,d,h),!0;case"mouseover":return Qs=Zf(Qs,a,i,l,d,h),!0;case"pointerover":var v=h.pointerId;return Km.set(v,Zf(Km.get(v)||null,a,i,l,d,h)),!0;case"gotpointercapture":return v=h.pointerId,Gm.set(v,Zf(Gm.get(v)||null,a,i,l,d,h)),!0}return!1}function vL(a){var i=Ee(a.target);if(i!==null){var l=T(i);if(l!==null){if(i=l.tag,i===13){if(i=_(l),i!==null){a.blockedOn=i,$(a.priority,function(){pL(l)});return}}else if(i===31){if(i=D(l),i!==null){a.blockedOn=i,$(a.priority,function(){pL(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 Ug(a){if(a.blockedOn!==null)return!1;for(var i=a.targetContainers;0<i.length;){var l=hw(a.nativeEvent);if(l===null){l=a.nativeEvent;var d=new l.constructor(l.type,l),h=d;rm!==null&&console.error("Expected currently replaying event to be null. This error is likely caused by a bug in React. Please file an issue."),rm=h,l.target.dispatchEvent(d),rm===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."),rm=null}else return i=Te(l),i!==null&&mL(i),a.blockedOn=l,!1;i.shift()}return!0}function yL(a,i,l){Ug(a)&&l.delete(i)}function DY(){KN=!1,Gs!==null&&Ug(Gs)&&(Gs=null),Ys!==null&&Ug(Ys)&&(Ys=null),Qs!==null&&Ug(Qs)&&(Qs=null),Km.forEach(yL),Gm.forEach(yL)}function qg(a,i){a.blockedOn===i&&(a.blockedOn=null,KN||(KN=!0,wn.unstable_scheduleCallback(wn.unstable_NormalPriority,DY)))}function bL(a){Xv!==a&&(Xv=a,wn.unstable_scheduleCallback(wn.unstable_NormalPriority,function(){Xv===a&&(Xv=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(gw(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),g1(v,l,d,h))}}))}function gc(a){function i(M){return qg(M,a)}Gs!==null&&qg(Gs,a),Ys!==null&&qg(Ys,a),Qs!==null&&qg(Qs,a),Km.forEach(i),Gm.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);)vL(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[yr]||null;if(typeof v=="function")E||bL(l);else if(E){var O=null;if(v&&v.hasAttribute("formAction")){if(h=v,E=v[yr]||null)O=E.formAction;else if(gw(h)!==null)continue}else O=E.action;typeof O=="function"?l[d+1]=O:(l.splice(d,3),d-=3),bL(l)}}}function xL(){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 vw(a){this._internalRoot=a}function Hg(a){this._internalRoot=a}function wL(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=GJ(),yw=Jd(),RY=eU(),dt=Object.assign,jY=Symbol.for("react.element"),Ri=Symbol.for("react.transitional.element"),vc=Symbol.for("react.portal"),yc=Symbol.for("react.fragment"),Fg=Symbol.for("react.strict_mode"),bw=Symbol.for("react.profiler"),xw=Symbol.for("react.consumer"),ji=Symbol.for("react.context"),Jf=Symbol.for("react.forward_ref"),ww=Symbol.for("react.suspense"),Nw=Symbol.for("react.suspense_list"),Kg=Symbol.for("react.memo"),ta=Symbol.for("react.lazy"),Ew=Symbol.for("react.activity"),PY=Symbol.for("react.memo_cache_sentinel"),NL=Symbol.iterator,MY=Symbol.for("react.client.reference"),jn=Array.isArray,he=yw.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,Ot=RY.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,LY=Object.freeze({pending:!1,data:null,method:null,action:null}),Sw=[],Aw=[],Eo=-1,Ss=z(null),em=z(null),As=z(null),Gg=z(null),tm=0,EL,SL,AL,OL,TL,CL,_L;ne.__reactDisabledLog=!0;var Ow,DL,Tw=!1,Cw=new(typeof WeakMap=="function"?WeakMap:Map),na=null,Pi=!1,Fa=Object.prototype.hasOwnProperty,_w=wn.unstable_scheduleCallback,kY=wn.unstable_cancelCallback,IY=wn.unstable_shouldYield,$Y=wn.unstable_requestPaint,Hn=wn.unstable_now,VY=wn.unstable_getCurrentPriorityLevel,Dw=wn.unstable_ImmediatePriority,Rw=wn.unstable_UserBlockingPriority,bc=wn.unstable_NormalPriority,BY=wn.unstable_LowPriority,jw=wn.unstable_IdlePriority,zY=wn.log,UY=wn.unstable_setDisableYieldValue,xc=null,sr=null,Mi=!1,Li=typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u",vr=Math.clz32?Math.clz32:ir,qY=Math.log,HY=Math.LN2,Yg=256,Qg=262144,Xg=4194304,va=2,ki=8,So=32,Wg=268435456,Os=Math.random().toString(36).slice(2),tr="__reactFiber$"+Os,yr="__reactProps$"+Os,Ts="__reactContainer$"+Os,Pw="__reactEvents$"+Os,FY="__reactListeners$"+Os,KY="__reactHandles$"+Os,RL="__reactResources$"+Os,nm="__reactMarker$"+Os,jL=new Set,Ml={},Mw={},GY={button:!0,checkbox:!0,image:!0,hidden:!0,radio:!0,reset:!0,submit:!0},YY=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]*$"),PL={},ML={},QY=/[\n"\\]/g,LL=!1,kL=!1,IL=!1,$L=!1,VL=!1,BL=!1,zL=["value","defaultValue"],UL=!1,qL=/["'&<>\n\t]|^\s|\s$/,XY="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(" "),HL="applet caption html table td th marquee object template foreignObject desc title".split(" "),WY=HL.concat(["button"]),ZY="dd dt li option optgroup p rp rt".split(" "),FL={current:null,formTag:null,aTagInScope:null,buttonTagInScope:null,nobrTagInScope:null,pTagInButtonScope:null,listItemTagAutoclosing:null,dlItemTagAutoclosing:null,containerTagInScope:null,implicitRootScope:!1},Zg={},Lw={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"]},KL=/([A-Z])/g,GL=/^ms-/,JY=/^(?:webkit|moz|o)[A-Z]/,eQ=/^-ms-/,tQ=/-(.)/g,YL=/;\s*$/,wc={},kw={},QL=!1,XL=!1,WL=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(" ")),Jg="http://www.w3.org/1998/Math/MathML",Nc="http://www.w3.org/2000/svg",nQ=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"]]),ev={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"},ZL={"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},Ec={},rQ=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]*$"),aQ=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]*$"),JL=!1,br={},ek=/^on./,iQ=/^on[^A-Z]/,oQ=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]*$"),sQ=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]*$"),lQ=/^[\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,rm=null,Sc=null,Ac=null,Iw=!1,Ii=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),$w=!1;if(Ii)try{var am={};Object.defineProperty(am,"passive",{get:function(){$w=!0}}),window.addEventListener("test",am,am),window.removeEventListener("test",am,am)}catch{$w=!1}var Cs=null,Vw=null,tv=null,Ll={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(a){return a.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},nv=kr(Ll),im=dt({},Ll,{view:0,detail:0}),uQ=kr(im),Bw,zw,om,rv=dt({},im,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:wx,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!==om&&(om&&a.type==="mousemove"?(Bw=a.screenX-om.screenX,zw=a.screenY-om.screenY):zw=Bw=0,om=a),Bw)},movementY:function(a){return"movementY"in a?a.movementY:zw}}),tk=kr(rv),cQ=dt({},rv,{dataTransfer:0}),dQ=kr(cQ),fQ=dt({},im,{relatedTarget:0}),Uw=kr(fQ),mQ=dt({},Ll,{animationName:0,elapsedTime:0,pseudoElement:0}),pQ=kr(mQ),hQ=dt({},Ll,{clipboardData:function(a){return"clipboardData"in a?a.clipboardData:window.clipboardData}}),gQ=kr(hQ),vQ=dt({},Ll,{data:0}),nk=kr(vQ),yQ=nk,bQ={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},xQ={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"},wQ={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"},NQ=dt({},im,{key:function(a){if(a.key){var i=bQ[a.key]||a.key;if(i!=="Unidentified")return i}return a.type==="keypress"?(a=Uh(a),a===13?"Enter":String.fromCharCode(a)):a.type==="keydown"||a.type==="keyup"?xQ[a.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:wx,charCode:function(a){return a.type==="keypress"?Uh(a):0},keyCode:function(a){return a.type==="keydown"||a.type==="keyup"?a.keyCode:0},which:function(a){return a.type==="keypress"?Uh(a):a.type==="keydown"||a.type==="keyup"?a.keyCode:0}}),EQ=kr(NQ),SQ=dt({},rv,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),rk=kr(SQ),AQ=dt({},im,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:wx}),OQ=kr(AQ),TQ=dt({},Ll,{propertyName:0,elapsedTime:0,pseudoElement:0}),CQ=kr(TQ),_Q=dt({},rv,{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}),DQ=kr(_Q),RQ=dt({},Ll,{newState:0,oldState:0}),jQ=kr(RQ),PQ=[9,13,27,32],ak=229,qw=Ii&&"CompositionEvent"in window,sm=null;Ii&&"documentMode"in document&&(sm=document.documentMode);var MQ=Ii&&"TextEvent"in window&&!sm,ik=Ii&&(!qw||sm&&8<sm&&11>=sm),ok=32,sk=String.fromCharCode(ok),lk=!1,Oc=!1,LQ={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},lm=null,um=null,uk=!1;Ii&&(uk=tG("input")&&(!document.documentMode||9<document.documentMode));var xr=typeof Object.is=="function"?Object.is:sG,kQ=Ii&&"documentMode"in document&&11>=document.documentMode,Tc=null,Hw=null,cm=null,Fw=!1,Cc={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")},Kw={},ck={};Ii&&(ck=document.createElement("div").style,"AnimationEvent"in window||(delete Cc.animationend.animation,delete Cc.animationiteration.animation,delete Cc.animationstart.animation),"TransitionEvent"in window||delete Cc.transitionend.transition);var dk=wl("animationend"),fk=wl("animationiteration"),mk=wl("animationstart"),IQ=wl("transitionrun"),$Q=wl("transitionstart"),VQ=wl("transitioncancel"),pk=wl("transitionend"),hk=new Map,Gw="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(" ");Gw.push("scrollEnd");var gk=0;if(typeof performance=="object"&&typeof performance.now=="function")var BQ=performance,vk=function(){return BQ.now()};else{var zQ=Date;vk=function(){return zQ.now()}}var Yw=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)},UQ="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.",av=0,Qw=1,Xw=2,Ww=3,iv=" ",ov="+ ",yk=" ",Kt=typeof console<"u"&&typeof console.timeStamp=="function"&&typeof performance<"u"&&typeof performance.measure=="function",ya="Components ⚛",gt="Scheduler ⚛",yt="Blocking",_s=!1,Ao={color:"primary",properties:null,tooltipText:"",track:ya},Ds={start:-0,end:-0,detail:{devtools:Ao}},qQ=["Changed Props",""],bk="This component received deeply equal props. It might benefit from useMemo or the React Compiler in its owner.",HQ=["Changed Props",bk],dm=1,Oo=2,ba=[],_c=0,Zw=0,Rs={};Object.freeze(Rs);var xa=null,Dc=null,Ge=0,FQ=1,at=2,lr=8,Ka=16,KQ=32,xk=!1;try{var wk=Object.preventExtensions({})}catch{xk=!0}var Jw=new WeakMap,Rc=[],jc=0,sv=null,fm=0,wa=[],Na=0,kl=null,To=1,Co="",nr=null,Gt=null,mt=!1,$i=!1,ra=null,js=null,Ea=!1,eN=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."),tN=z(null),nN=z(null),Nk={},lv=null,Pc=null,Mc=!1,GQ=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()})}},YQ=wn.unstable_scheduleCallback,QQ=wn.unstable_NormalPriority,Nn={$$typeof:ji,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0,_currentRenderer:null,_currentRenderer2:null},En=wn.unstable_now,uv=console.createTask?console.createTask:function(){return null},mm=1,cv=2,Fn=-0,Ps=-0,_o=-0,Do=null,wr=-1.1,Il=-0,an=-0,qe=-1.1,Ke=-1.1,tn=null,un=!1,$l=-0,Vi=-1.1,pm=null,Ms=0,rN=null,aN=null,Vl=-1.1,hm=null,Lc=-1.1,dv=-1.1,Ro=-0,jo=-1.1,Sa=-1.1,iN=0,gm=null,Ek=null,Sk=null,Ls=-1.1,Bl=null,ks=-1.1,fv=-1.1,Ak=-0,Ok=-0,mv=0,XQ=null,Tk=0,vm=-1.1,pv=!1,hv=!1,ym=null,oN=0,zl=0,kc=null,Ck=he.S;he.S=function(a,i){if(EI=Hn(),typeof i=="object"&&i!==null&&typeof i.then=="function"){if(0>jo&&0>Sa){jo=En();var l=Yf(),d=Gf();(l!==ks||d!==Bl)&&(ks=-1.1),Ls=l,Bl=d}pG(a,i)}Ck!==null&&Ck(a,i)};var Ul=z(null),Ga={recordUnsafeLifecycleWarnings:function(){},flushPendingUnsafeLifecycleWarnings:function(){},recordLegacyContextWarning:function(){},flushLegacyContextWarning:function(){},discardPendingWarnings:function(){}},bm=[],xm=[],wm=[],Nm=[],Em=[],Sm=[],ql=new Set;Ga.recordUnsafeLifecycleWarnings=function(a,i){ql.has(a.type)||(typeof i.componentWillMount=="function"&&i.componentWillMount.__suppressDeprecationWarning!==!0&&bm.push(a),a.mode&lr&&typeof i.UNSAFE_componentWillMount=="function"&&xm.push(a),typeof i.componentWillReceiveProps=="function"&&i.componentWillReceiveProps.__suppressDeprecationWarning!==!0&&wm.push(a),a.mode&lr&&typeof i.UNSAFE_componentWillReceiveProps=="function"&&Nm.push(a),typeof i.componentWillUpdate=="function"&&i.componentWillUpdate.__suppressDeprecationWarning!==!0&&Em.push(a),a.mode&lr&&typeof i.UNSAFE_componentWillUpdate=="function"&&Sm.push(a))},Ga.flushPendingUnsafeLifecycleWarnings=function(){var a=new Set;0<bm.length&&(bm.forEach(function(O){a.add(B(O)||"Component"),ql.add(O.type)}),bm=[]);var i=new Set;0<xm.length&&(xm.forEach(function(O){i.add(B(O)||"Component"),ql.add(O.type)}),xm=[]);var l=new Set;0<wm.length&&(wm.forEach(function(O){l.add(B(O)||"Component"),ql.add(O.type)}),wm=[]);var d=new Set;0<Nm.length&&(Nm.forEach(function(O){d.add(B(O)||"Component"),ql.add(O.type)}),Nm=[]);var h=new Set;0<Em.length&&(Em.forEach(function(O){h.add(B(O)||"Component"),ql.add(O.type)}),Em=[]);var v=new Set;if(0<Sm.length&&(Sm.forEach(function(O){v.add(B(O)||"Component"),ql.add(O.type)}),Sm=[]),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 gv=new Map,_k=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."):!_k.has(a.type)&&(d=gv.get(l),a.type.contextTypes!=null||a.type.childContextTypes!=null||i!==null&&typeof i.getChildContext=="function")&&(d===void 0&&(d=[],gv.set(l,d)),d.push(a))},Ga.flushLegacyContextWarning=function(){gv.forEach(function(a){if(a.length!==0){var i=a[0],l=new Set;a.forEach(function(h){l.add(B(h)||"Component"),_k.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(){bm=[],xm=[],wm=[],Nm=[],Em=[],Sm=[],gv=new Map};var Dk={react_stack_bottom_frame:function(a,i,l){var d=Pi;Pi=!0;try{return a(i,l)}finally{Pi=d}}},sN=Dk.react_stack_bottom_frame.bind(Dk),Rk={react_stack_bottom_frame:function(a){var i=Pi;Pi=!0;try{return a.render()}finally{Pi=i}}},jk=Rk.react_stack_bottom_frame.bind(Rk),Pk={react_stack_bottom_frame:function(a,i){try{i.componentDidMount()}catch(l){At(a,a.return,l)}}},lN=Pk.react_stack_bottom_frame.bind(Pk),Mk={react_stack_bottom_frame:function(a,i,l,d,h){try{i.componentDidUpdate(l,d,h)}catch(v){At(a,a.return,v)}}},Lk=Mk.react_stack_bottom_frame.bind(Mk),kk={react_stack_bottom_frame:function(a,i){var l=i.stack;a.componentDidCatch(i.value,{componentStack:l!==null?l:""})}},WQ=kk.react_stack_bottom_frame.bind(kk),Ik={react_stack_bottom_frame:function(a,i,l){try{l.componentWillUnmount()}catch(d){At(a,i,d)}}},$k=Ik.react_stack_bottom_frame.bind(Ik),Vk={react_stack_bottom_frame:function(a){var i=a.create;return a=a.inst,i=i(),a.destroy=i}},ZQ=Vk.react_stack_bottom_frame.bind(Vk),Bk={react_stack_bottom_frame:function(a,i,l){try{l()}catch(d){At(a,i,d)}}},JQ=Bk.react_stack_bottom_frame.bind(Bk),zk={react_stack_bottom_frame:function(a){var i=a._init;return i(a._payload)}},eX=zk.react_stack_bottom_frame.bind(zk),Ic=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`."),uN=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."),vv=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."),yv={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,Am=!1,$c=null,Om=0,it=null,cN,Uk=cN=!1,qk={},Hk={},Fk={};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(!qk[h]){qk[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=Ij(!0),Kk=Ij(!1),Gk=0,Yk=1,Qk=2,dN=3,Is=!1,Xk=!1,fN=null,mN=!1,Vc=z(null),bv=z(0),aa=z(null),Aa=null,Bc=1,Tm=2,vn=z(0),xv=0,Oa=1,Nr=2,ia=4,Er=8,zc,Wk=new Set,Zk=new Set,pN=new Set,Jk=new Set,Po=0,Xe=null,Bt=null,Sn=null,wv=!1,Uc=!1,Kl=!1,Nv=0,Cm=0,Mo=null,tX=0,nX=25,pe=null,Ta=null,Lo=-1,_m=!1,Dm={readContext:en,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};Dm.useEffectEvent=fn;var hN=null,eI=null,gN=null,tI=null,Bi=null,Ya=null,Ev=null;hN={readContext:function(a){return en(a)},use:xs,useCallback:function(a,i){return pe="useCallback",ct(),ac(i),f1(a,i)},useContext:function(a){return pe="useContext",ct(),en(a)},useEffect:function(a,i){return pe="useEffect",ct(),ac(i),gg(a,i)},useImperativeHandle:function(a,i,l){return pe="useImperativeHandle",ct(),ac(l),d1(a,i,l)},useInsertionEffect:function(a,i){pe="useInsertionEffect",ct(),ac(i),_l(4,Nr,a,i)},useLayoutEffect:function(a,i){return pe="useLayoutEffect",ct(),ac(i),c1(a,i)},useMemo:function(a,i){pe="useMemo",ct(),ac(i);var l=he.H;he.H=Bi;try{return m1(a,i)}finally{he.H=l}},useReducer:function(a,i,l){pe="useReducer",ct();var d=he.H;he.H=Bi;try{return t1(a,i,l)}finally{he.H=d}},useRef:function(a){return pe="useRef",ct(),l1(a)},useState:function(a){pe="useState",ct();var i=he.H;he.H=Bi;try{return i1(a)}finally{he.H=i}},useDebugValue:function(){pe="useDebugValue",ct()},useDeferredValue:function(a,i){return pe="useDeferredValue",ct(),p1(a,i)},useTransition:function(){return pe="useTransition",ct(),v1()},useSyncExternalStore:function(a,i,l){return pe="useSyncExternalStore",ct(),r1(a,i,l)},useId:function(){return pe="useId",ct(),y1()},useFormState:function(a,i){return pe="useFormState",ct(),dg(),oc(a,i)},useActionState:function(a,i){return pe="useActionState",ct(),oc(a,i)},useOptimistic:function(a){return pe="useOptimistic",ct(),o1(a)},useHostTransitionStatus:Dl,useMemoCache:Cl,useCacheRefresh:function(){return pe="useCacheRefresh",ct(),b1()},useEffectEvent:function(a){return pe="useEffectEvent",ct(),u1(a)}},eI={readContext:function(a){return en(a)},use:xs,useCallback:function(a,i){return pe="useCallback",Ae(),f1(a,i)},useContext:function(a){return pe="useContext",Ae(),en(a)},useEffect:function(a,i){return pe="useEffect",Ae(),gg(a,i)},useImperativeHandle:function(a,i,l){return pe="useImperativeHandle",Ae(),d1(a,i,l)},useInsertionEffect:function(a,i){pe="useInsertionEffect",Ae(),_l(4,Nr,a,i)},useLayoutEffect:function(a,i){return pe="useLayoutEffect",Ae(),c1(a,i)},useMemo:function(a,i){pe="useMemo",Ae();var l=he.H;he.H=Bi;try{return m1(a,i)}finally{he.H=l}},useReducer:function(a,i,l){pe="useReducer",Ae();var d=he.H;he.H=Bi;try{return t1(a,i,l)}finally{he.H=d}},useRef:function(a){return pe="useRef",Ae(),l1(a)},useState:function(a){pe="useState",Ae();var i=he.H;he.H=Bi;try{return i1(a)}finally{he.H=i}},useDebugValue:function(){pe="useDebugValue",Ae()},useDeferredValue:function(a,i){return pe="useDeferredValue",Ae(),p1(a,i)},useTransition:function(){return pe="useTransition",Ae(),v1()},useSyncExternalStore:function(a,i,l){return pe="useSyncExternalStore",Ae(),r1(a,i,l)},useId:function(){return pe="useId",Ae(),y1()},useActionState:function(a,i){return pe="useActionState",Ae(),oc(a,i)},useFormState:function(a,i){return pe="useFormState",Ae(),dg(),oc(a,i)},useOptimistic:function(a){return pe="useOptimistic",Ae(),o1(a)},useHostTransitionStatus:Dl,useMemoCache:Cl,useCacheRefresh:function(){return pe="useCacheRefresh",Ae(),b1()},useEffectEvent:function(a){return pe="useEffectEvent",Ae(),u1(a)}},gN={readContext:function(a){return en(a)},use:xs,useCallback:function(a,i){return pe="useCallback",Ae(),bg(a,i)},useContext:function(a){return pe="useContext",Ae(),en(a)},useEffect:function(a,i){pe="useEffect",Ae(),Ir(2048,Er,a,i)},useImperativeHandle:function(a,i,l){return pe="useImperativeHandle",Ae(),yg(a,i,l)},useInsertionEffect:function(a,i){return pe="useInsertionEffect",Ae(),Ir(4,Nr,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 xg(a,i)}finally{he.H=l}},useReducer:function(a,i,l){pe="useReducer",Ae();var d=he.H;he.H=Ya;try{return ic(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 ic(qa)}finally{he.H=a}},useDebugValue:function(){pe="useDebugValue",Ae()},useDeferredValue:function(a,i){return pe="useDeferredValue",Ae(),iP(a,i)},useTransition:function(){return pe="useTransition",Ae(),dP()},useSyncExternalStore:function(a,i,l){return pe="useSyncExternalStore",Ae(),mg(a,i,l)},useId:function(){return pe="useId",Ae(),Rt().memoizedState},useFormState:function(a){return pe="useFormState",Ae(),dg(),pg(a)},useActionState:function(a){return pe="useActionState",Ae(),pg(a)},useOptimistic:function(a,i){return pe="useOptimistic",Ae(),Qj(a,i)},useHostTransitionStatus:Dl,useMemoCache:Cl,useCacheRefresh:function(){return pe="useCacheRefresh",Ae(),Rt().memoizedState},useEffectEvent:function(a){return pe="useEffectEvent",Ae(),vg(a)}},tI={readContext:function(a){return en(a)},use:xs,useCallback:function(a,i){return pe="useCallback",Ae(),bg(a,i)},useContext:function(a){return pe="useContext",Ae(),en(a)},useEffect:function(a,i){pe="useEffect",Ae(),Ir(2048,Er,a,i)},useImperativeHandle:function(a,i,l){return pe="useImperativeHandle",Ae(),yg(a,i,l)},useInsertionEffect:function(a,i){return pe="useInsertionEffect",Ae(),Ir(4,Nr,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=Ev;try{return xg(a,i)}finally{he.H=l}},useReducer:function(a,i,l){pe="useReducer",Ae();var d=he.H;he.H=Ev;try{return Lf(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=Ev;try{return Lf(qa)}finally{he.H=a}},useDebugValue:function(){pe="useDebugValue",Ae()},useDeferredValue:function(a,i){return pe="useDeferredValue",Ae(),oP(a,i)},useTransition:function(){return pe="useTransition",Ae(),fP()},useSyncExternalStore:function(a,i,l){return pe="useSyncExternalStore",Ae(),mg(a,i,l)},useId:function(){return pe="useId",Ae(),Rt().memoizedState},useFormState:function(a){return pe="useFormState",Ae(),dg(),hg(a)},useActionState:function(a){return pe="useActionState",Ae(),hg(a)},useOptimistic:function(a,i){return pe="useOptimistic",Ae(),Wj(a,i)},useHostTransitionStatus:Dl,useMemoCache:Cl,useCacheRefresh:function(){return pe="useCacheRefresh",Ae(),Rt().memoizedState},useEffectEvent:function(a){return pe="useEffectEvent",Ae(),vg(a)}},Bi={readContext:function(a){return f(),en(a)},use:function(a){return c(),xs(a)},useCallback:function(a,i){return pe="useCallback",c(),ct(),f1(a,i)},useContext:function(a){return pe="useContext",c(),ct(),en(a)},useEffect:function(a,i){return pe="useEffect",c(),ct(),gg(a,i)},useImperativeHandle:function(a,i,l){return pe="useImperativeHandle",c(),ct(),d1(a,i,l)},useInsertionEffect:function(a,i){pe="useInsertionEffect",c(),ct(),_l(4,Nr,a,i)},useLayoutEffect:function(a,i){return pe="useLayoutEffect",c(),ct(),c1(a,i)},useMemo:function(a,i){pe="useMemo",c(),ct();var l=he.H;he.H=Bi;try{return m1(a,i)}finally{he.H=l}},useReducer:function(a,i,l){pe="useReducer",c(),ct();var d=he.H;he.H=Bi;try{return t1(a,i,l)}finally{he.H=d}},useRef:function(a){return pe="useRef",c(),ct(),l1(a)},useState:function(a){pe="useState",c(),ct();var i=he.H;he.H=Bi;try{return i1(a)}finally{he.H=i}},useDebugValue:function(){pe="useDebugValue",c(),ct()},useDeferredValue:function(a,i){return pe="useDeferredValue",c(),ct(),p1(a,i)},useTransition:function(){return pe="useTransition",c(),ct(),v1()},useSyncExternalStore:function(a,i,l){return pe="useSyncExternalStore",c(),ct(),r1(a,i,l)},useId:function(){return pe="useId",c(),ct(),y1()},useFormState:function(a,i){return pe="useFormState",c(),ct(),oc(a,i)},useActionState:function(a,i){return pe="useActionState",c(),ct(),oc(a,i)},useOptimistic:function(a){return pe="useOptimistic",c(),ct(),o1(a)},useMemoCache:function(a){return c(),Cl(a)},useHostTransitionStatus:Dl,useCacheRefresh:function(){return pe="useCacheRefresh",ct(),b1()},useEffectEvent:function(a){return pe="useEffectEvent",c(),ct(),u1(a)}},Ya={readContext:function(a){return f(),en(a)},use:function(a){return c(),xs(a)},useCallback:function(a,i){return pe="useCallback",c(),Ae(),bg(a,i)},useContext:function(a){return pe="useContext",c(),Ae(),en(a)},useEffect:function(a,i){pe="useEffect",c(),Ae(),Ir(2048,Er,a,i)},useImperativeHandle:function(a,i,l){return pe="useImperativeHandle",c(),Ae(),yg(a,i,l)},useInsertionEffect:function(a,i){return pe="useInsertionEffect",c(),Ae(),Ir(4,Nr,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 xg(a,i)}finally{he.H=l}},useReducer:function(a,i,l){pe="useReducer",c(),Ae();var d=he.H;he.H=Ya;try{return ic(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 ic(qa)}finally{he.H=a}},useDebugValue:function(){pe="useDebugValue",c(),Ae()},useDeferredValue:function(a,i){return pe="useDeferredValue",c(),Ae(),iP(a,i)},useTransition:function(){return pe="useTransition",c(),Ae(),dP()},useSyncExternalStore:function(a,i,l){return pe="useSyncExternalStore",c(),Ae(),mg(a,i,l)},useId:function(){return pe="useId",c(),Ae(),Rt().memoizedState},useFormState:function(a){return pe="useFormState",c(),Ae(),pg(a)},useActionState:function(a){return pe="useActionState",c(),Ae(),pg(a)},useOptimistic:function(a,i){return pe="useOptimistic",c(),Ae(),Qj(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(),vg(a)}},Ev={readContext:function(a){return f(),en(a)},use:function(a){return c(),xs(a)},useCallback:function(a,i){return pe="useCallback",c(),Ae(),bg(a,i)},useContext:function(a){return pe="useContext",c(),Ae(),en(a)},useEffect:function(a,i){pe="useEffect",c(),Ae(),Ir(2048,Er,a,i)},useImperativeHandle:function(a,i,l){return pe="useImperativeHandle",c(),Ae(),yg(a,i,l)},useInsertionEffect:function(a,i){return pe="useInsertionEffect",c(),Ae(),Ir(4,Nr,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 xg(a,i)}finally{he.H=l}},useReducer:function(a,i,l){pe="useReducer",c(),Ae();var d=he.H;he.H=Ya;try{return Lf(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 Lf(qa)}finally{he.H=a}},useDebugValue:function(){pe="useDebugValue",c(),Ae()},useDeferredValue:function(a,i){return pe="useDeferredValue",c(),Ae(),oP(a,i)},useTransition:function(){return pe="useTransition",c(),Ae(),fP()},useSyncExternalStore:function(a,i,l){return pe="useSyncExternalStore",c(),Ae(),mg(a,i,l)},useId:function(){return pe="useId",c(),Ae(),Rt().memoizedState},useFormState:function(a){return pe="useFormState",c(),Ae(),hg(a)},useActionState:function(a){return pe="useActionState",c(),Ae(),hg(a)},useOptimistic:function(a,i){return pe="useOptimistic",c(),Ae(),Wj(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(),vg(a)}};var nI={},rI=new Set,aI=new Set,iI=new Set,oI=new Set,sI=new Set,lI=new Set,uI=new Set,cI=new Set,dI=new Set,fI=new Set;Object.freeze(nI);var vN={enqueueSetState:function(a,i,l){a=a._reactInternals;var d=Jr(a),h=gs(d);h.payload=i,l!=null&&(w1(l),h.callback=l),i=vs(a,h,d),i!==null&&(yi(d,"this.setState()",a),ln(i,a,d),Rf(i,a,d))},enqueueReplaceState:function(a,i,l){a=a._reactInternals;var d=Jr(a),h=gs(d);h.tag=Yk,h.payload=i,l!=null&&(w1(l),h.callback=l),i=vs(a,h,d),i!==null&&(yi(d,"this.replaceState()",a),ln(i,a,d),Rf(i,a,d))},enqueueForceUpdate:function(a,i){a=a._reactInternals;var l=Jr(a),d=gs(l);d.tag=Qk,i!=null&&(w1(i),d.callback=i),i=vs(a,d,l),i!==null&&(yi(l,"this.forceUpdate()",a),ln(i,a,l),Rf(i,a,l))}},qc=null,yN=null,bN=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,mI={},pI={},hI={},gI={},Hc=!1,vI={},Sv={},xN={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null},yI=!1,bI=null;bI=new Set;var ko=!1,On=!1,wN=!1,xI=typeof WeakSet=="function"?WeakSet:Set,Kn=null,Fc=null,Kc=null,Tn=null,Br=!1,Qa=null,Pn=!1,Rm=8192,rX={getCacheForType:function(a){var i=en(Nn),l=i.data.get(a);return l===void 0&&(l=a(),i.data.set(a,l)),l},cacheSignal:function(){return en(Nn).controller.signal},getOwner:function(){return na}};if(typeof Symbol=="function"&&Symbol.for){var jm=Symbol.for;jm("selector.component"),jm("selector.has_pseudo_class"),jm("selector.role"),jm("selector.test_id"),jm("selector.text")}var aX=[],iX=typeof WeakMap=="function"?WeakMap:Map,Gn=0,Mn=2,oa=4,Io=0,Pm=1,Gl=2,Av=3,$s=4,Ov=6,wI=5,bt=Gn,zt=null,ut=null,ot=0,zr=0,Tv=1,Yl=2,Mm=3,NI=4,NN=5,Lm=6,Cv=7,EN=8,Ql=9,jt=zr,sa=null,Vs=!1,Gc=!1,SN=!1,zi=0,on=Io,Bs=0,zs=0,AN=0,Ur=0,Xl=0,km=null,Sr=null,_v=!1,Dv=0,EI=0,SI=300,Rv=1/0,AI=500,Im=null,mn=null,Us=null,jv=0,ON=1,TN=2,OI=3,qs=0,TI=1,CI=2,_I=3,DI=4,Pv=5,Cn=0,Hs=null,Yc=null,Xa=0,CN=0,_N=-0,DN=null,RI=null,jI=null,Wa=jv,PI=null,oX=50,$m=0,RN=null,jN=!1,Mv=!1,sX=50,Wl=0,Vm=null,Qc=!1,Lv=null,MI=!1,LI=new Set,lX={},kv=null,Xc=null,PN=!1,MN=!1,Iv=!1,LN=!1,Fs=0,kN={};(function(){for(var a=0;a<Gw.length;a++){var i=Gw[a],l=i.toLowerCase();i=i[0].toUpperCase()+i.slice(1),za(l,"on"+i)}za(dk,"onAnimationEnd"),za(fk,"onAnimationIteration"),za(mk,"onAnimationStart"),za("dblclick","onDoubleClick"),za("focusin","onFocus"),za("focusout","onBlur"),za(IQ,"onTransitionRun"),za($Q,"onTransitionStart"),za(VQ,"onTransitionCancel"),za(pk,"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 Bm="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(" "),IN=new Set("beforetoggle cancel close invalid load scroll scrollend toggle".split(" ").concat(Bm)),$v="_reactListening"+Math.random().toString(36).slice(2),kI=!1,II=!1,Vv=!1,$I=!1,Bv=!1,zv=!1,VI=!1,Uv={},uX=/\r\n?/g,cX=/\u0000|\uFFFD/g,Zl="http://www.w3.org/1999/xlink",$N="http://www.w3.org/XML/1998/namespace",dX="javascript:throw new Error('React form unexpectedly submitted.')",fX="suppressHydrationWarning",Jl="&",qv="/&",zm="$",Um="/$",Ks="$?",eu="$~",Wc="$!",mX="html",pX="body",hX="head",VN="F!",BI="F",zI="loading",gX="style",$o=0,Zc=1,Hv=2,BN=null,zN=null,UI={dialog:!0,webview:!0},UN=null,qm=void 0,qI=typeof setTimeout=="function"?setTimeout:void 0,vX=typeof clearTimeout=="function"?clearTimeout:void 0,tu=-1,HI=typeof Promise=="function"?Promise:void 0,yX=typeof queueMicrotask=="function"?queueMicrotask:typeof HI<"u"?function(a){return HI.resolve(null).then(a).catch(eY)}:qI,qN=null,nu=0,Hm=1,FI=2,KI=3,Ca=4,_a=new Map,GI=new Set,Vo=Ot.d;Ot.d={f:function(){var a=Vo.f(),i=dc();return a||i},r:function(a){var i=Te(a);i!==null&&i.tag===5&&i.type==="form"?cP(i):Vo.r(a)},D:function(a){Vo.D(a),rL("dns-prefetch",a,null)},C:function(a,i){Vo.C(a,i),rL("preconnect",a,i)},L:function(a,i,l){Vo.L(a,i,l);var d=Jc;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=pc(a);break;case"script":v=hc(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(Xf(v))||i==="script"&&d.querySelector(Wf(v))||(i=d.createElement("link"),er(i,"link",a),Se(i),d.head.appendChild(i)))}},m:function(a,i){Vo.m(a,i);var l=Jc;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=hc(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(Wf(v)))return}d=l.createElement("link"),er(d,"link",a),Se(d),l.head.appendChild(d)}}},X:function(a,i){Vo.X(a,i);var l=Jc;if(l&&a){var d=Ze(l).hoistableScripts,h=hc(a),v=d.get(h);v||(v=l.querySelector(Wf(h)),v||(a=dt({src:a,async:!0},i),(i=_a.get(h))&&dw(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){Vo.S(a,i,l);var d=Jc;if(d&&a){var h=Ze(d).hoistableStyles,v=pc(a);i=i||"default";var E=h.get(v);if(!E){var O={loading:nu,preload:null};if(E=d.querySelector(Xf(v)))O.loading=Hm|Ca;else{a=dt({rel:"stylesheet",href:a,"data-precedence":i},l),(l=_a.get(v))&&cw(a,l);var M=E=d.createElement("link");Se(M),er(M,"link",a),M._p=new Promise(function(k,oe){M.onload=k,M.onerror=oe}),M.addEventListener("load",function(){O.loading|=Hm}),M.addEventListener("error",function(){O.loading|=FI}),O.loading|=Ca,Vg(E,i,d)}E={type:"stylesheet",instance:E,count:1,state:O},h.set(v,E)}}},M:function(a,i){Vo.M(a,i);var l=Jc;if(l&&a){var d=Ze(l).hoistableScripts,h=hc(a),v=d.get(h);v||(v=l.querySelector(Wf(h)),v||(a=dt({src:a,async:!0,type:"module"},i),(i=_a.get(h))&&dw(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 Jc=typeof document>"u"?null:document,Fv=null,bX=6e4,xX=800,wX=500,HN=0,FN=null,Kv=null,ru=LY,Fm={$$typeof:ji,Provider:null,Consumer:null,_currentValue:ru,_currentValue2:ru,_threadCount:0},YI="%c%s%c",QI="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",XI="",Gv=" ",NX=Function.prototype.bind,WI=!1,ZI=null,JI=null,e5=null,t5=null,n5=null,r5=null,a5=null,i5=null,o5=null,s5=null;ZI=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&&ln(l,a,2))},JI=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&&ln(l,a,2))},e5=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&&ln(l,a,2))},t5=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&&ln(i,a,2)},n5=function(a,i){a.pendingProps=o(a.memoizedProps,i,0),a.alternate&&(a.alternate.pendingProps=a.pendingProps),i=or(a,2),i!==null&&ln(i,a,2)},r5=function(a,i,l){a.pendingProps=n(a.memoizedProps,i,l),a.alternate&&(a.alternate.pendingProps=a.pendingProps),i=or(a,2),i!==null&&ln(i,a,2)},a5=function(a){var i=or(a,2);i!==null&&ln(i,a,2)},i5=function(a){var i=Gr(),l=or(a,i);l!==null&&ln(l,a,i)},o5=function(a){u=a},s5=function(a){s=a};var Yv=!0,Qv=null,KN=!1,Gs=null,Ys=null,Qs=null,Km=new Map,Gm=new Map,Xs=[],EX="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(" "),Xv=null;if(Hg.prototype.render=vw.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);fw(d,h,l,i,null,null)},Hg.prototype.unmount=vw.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;(bt&(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."),fw(a.current,2,null,a,null,null),dc(),i[Ts]=null}},Hg.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&&vL(a)}},(function(){var a=yw.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"),Ot.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?C(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=ZI,a.overrideHookStateDeletePath=JI,a.overrideHookStateRenamePath=e5,a.overrideProps=t5,a.overridePropsDeletePath=n5,a.overridePropsRenamePath=r5,a.scheduleUpdate=a5,a.scheduleRetry=i5,a.setErrorHandler=o5,a.setSuspenseHandler=s5,a.scheduleRefresh=S,a.scheduleRoot=b,a.setRefreshHandler=x,a.getCurrentFiber=OY,xn(a)})()&&Ii&&window.top===window.self&&(-1<navigator.userAgent.indexOf("Chrome")&&navigator.userAgent.indexOf("Edge")===-1||-1<navigator.userAgent.indexOf("Firefox"))){var l5=window.location.protocol;/^(https?|file):$/.test(l5)&&console.info("%cDownload the React DevTools for a better development experience: https://react.dev/link/react-devtools"+(l5==="file:"?`
You might need to use a local HTTP server (instead of file://): https://react.dev/link/react-devtools-faq`:""),"font-weight:bold")}Wm.createRoot=function(a,i){if(!N(a))throw Error("Target container is not a DOM element.");wL(a);var l=!1,d="",h=yP,v=bP,E=xP;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=cL(a,1,!1,null,null,l,d,null,h,v,E,xL),a[Ts]=i.current,Z1(a),new vw(i)},Wm.hydrateRoot=function(a,i,l){if(!N(a))throw Error("Target container is not a DOM element.");wL(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=yP,E=bP,O=xP,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=cL(a,1,!0,i,l??null,d,h,M,v,E,O,xL),i.context=dL(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,Z1(a),new Hg(i)},Wm.version="19.2.1",typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error())})(),Wm}var r3;function XJ(){return r3||(r3=1,iE.exports=QJ()),iE.exports}var WJ=XJ(),ZJ=(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})(),tU=(function(){function e(t){this.generateIdentifier=t,this.kv=new ZJ}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})(),JJ=(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)}})(),eee=(function(e){JJ(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})(tU),tee=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 nee(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 ree(e,t){var n=nee(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 Nd(e,t){Object.entries(e).forEach(function(n){var r=tee(n,2),o=r[0],s=r[1];return t(s,o)})}function Dy(e,t){return e.indexOf(t)!==-1}function a3(e,t){for(var n=0;n<e.length;n++){var r=e[n];if(t(r))return r}}var aee=(function(){function e(){this.transfomers={}}return e.prototype.register=function(t){this.transfomers[t.name]=t},e.prototype.findApplicable=function(t){return ree(this.transfomers,function(n){return n.isApplicable(t)})},e.prototype.findByName=function(t){return this.transfomers[t]},e})(),iee=function(e){return Object.prototype.toString.call(e).slice(8,-1)},nU=function(e){return typeof e>"u"},oee=function(e){return e===null},_p=function(e){return typeof e!="object"||e===null||e===Object.prototype?!1:Object.getPrototypeOf(e)===null?!0:Object.getPrototypeOf(e)===Object.prototype},HT=function(e){return _p(e)&&Object.keys(e).length===0},ul=function(e){return Array.isArray(e)},see=function(e){return typeof e=="string"},lee=function(e){return typeof e=="number"&&!isNaN(e)},uee=function(e){return typeof e=="boolean"},cee=function(e){return e instanceof RegExp},Dp=function(e){return e instanceof Map},Rp=function(e){return e instanceof Set},rU=function(e){return iee(e)==="Symbol"},dee=function(e){return e instanceof Date&&!isNaN(e.valueOf())},fee=function(e){return e instanceof Error},i3=function(e){return typeof e=="number"&&isNaN(e)},mee=function(e){return uee(e)||oee(e)||nU(e)||lee(e)||see(e)||rU(e)},pee=function(e){return typeof e=="bigint"},hee=function(e){return e===1/0||e===-1/0},gee=function(e){return ArrayBuffer.isView(e)&&!(e instanceof DataView)},vee=function(e){return e instanceof URL},aU=function(e){return e.replace(/\./g,"\\.")},uE=function(e){return e.map(String).map(aU).join(".")},vp=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},FT=function(){return FT=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},FT.apply(this,arguments)},KT=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},GT=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 iU=[Ui(nU,"undefined",function(){return null},function(){}),Ui(pee,"bigint",function(e){return e.toString()},function(e){return typeof BigInt<"u"?BigInt(e):(console.error("Please add a BigInt polyfill."),e)}),Ui(dee,"Date",function(e){return e.toISOString()},function(e){return new Date(e)}),Ui(fee,"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(cee,"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(Rp,"set",function(e){return GT([],KT(e.values()))},function(e){return new Set(e)}),Ui(Dp,"map",function(e){return GT([],KT(e.entries()))},function(e){return new Map(e)}),Ui(function(e){return i3(e)||hee(e)},"number",function(e){return i3(e)?"NaN":e>0?"Infinity":"-Infinity"},Number),Ui(function(e){return e===0&&1/e===-1/0},"number",function(){return"-0"},Number),Ui(vee,"URL",function(e){return e.toString()},function(e){return new URL(e)})];function a0(e,t,n,r){return{isApplicable:e,annotation:t,transform:n,untransform:r}}var oU=a0(function(e,t){if(rU(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}),yee=[Int8Array,Uint8Array,Int16Array,Uint16Array,Int32Array,Uint32Array,Float32Array,Float64Array,Uint8ClampedArray].reduce(function(e,t){return e[t.name]=t,e},{}),sU=a0(gee,function(e){return["typed-array",e.constructor.name]},function(e){return GT([],KT(e))},function(e,t){var n=yee[t[1]];if(!n)throw new Error("Trying to deserialize unknown typed array");return new n(e)});function lU(e,t){if(e?.constructor){var n=!!t.classRegistry.getIdentifier(e.constructor);return n}return!1}var uU=a0(lU,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 FT({},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)}),cU=a0(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)}),bee=[uU,oU,cU,sU],o3=function(e,t){var n=a3(bee,function(o){return o.isApplicable(e,t)});if(n)return{value:n.transform(e,t),type:n.annotation(e,t)};var r=a3(iU,function(o){return o.isApplicable(e,t)});if(r)return{value:r.transform(e,t),type:r.annotation}},dU={};iU.forEach(function(e){dU[e.annotation]=e});var xee=function(e,t,n){if(ul(t))switch(t[0]){case"symbol":return oU.untransform(e,t,n);case"class":return uU.untransform(e,t,n);case"custom":return cU.untransform(e,t,n);case"typed-array":return sU.untransform(e,t,n);default:throw new Error("Unknown transformation: "+t)}else{var r=dU[t];if(!r)throw new Error("Unknown transformation: "+t);return r.untransform(e,n)}},cd=function(e,t){for(var n=e.keys();t>0;)n.next(),t--;return n.next().value};function fU(e){if(Dy(e,"__proto__"))throw new Error("__proto__ is not allowed as a property");if(Dy(e,"prototype"))throw new Error("prototype is not allowed as a property");if(Dy(e,"constructor"))throw new Error("constructor is not allowed as a property")}var wee=function(e,t){fU(t);for(var n=0;n<t.length;n++){var r=t[n];if(Rp(e))e=cd(e,+r);else if(Dp(e)){var o=+r,s=+t[++n]==0?"key":"value",u=cd(e,o);switch(s){case"key":e=u;break;case"value":e=e.get(u);break}}else e=e[r]}return e},YT=function(e,t,n){if(fU(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(_p(r))r=r[s];else if(Rp(r)){var c=+s;r=cd(r,c)}else if(Dp(r)){var f=o===t.length-2;if(f)break;var c=+s,m=+t[++o]==0?"key":"value",g=cd(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]):_p(r)&&(r[p]=n(r[p])),Rp(r)){var y=cd(r,+p),b=n(y);y!==b&&(r.delete(y),r.add(b))}if(Dp(r)){var c=+t[t.length-2],S=cd(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},Ho=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 QT(e,t,n){if(n===void 0&&(n=[]),!!e){if(!ul(e)){Nd(e,function(u,c){return QT(u,t,rl(rl([],Ho(n)),Ho(vp(c))))});return}var r=Ho(e,2),o=r[0],s=r[1];s&&Nd(s,function(u,c){QT(u,t,rl(rl([],Ho(n)),Ho(vp(c))))}),t(o,n)}}function Nee(e,t,n){return QT(t,function(r,o){e=YT(e,o,function(s){return xee(s,r,n)})}),e}function Eee(e,t){function n(u,c){var f=wee(e,vp(c));u.map(vp).forEach(function(m){e=YT(e,m,function(){return f})})}if(ul(t)){var r=Ho(t,2),o=r[0],s=r[1];o.forEach(function(u){e=YT(e,vp(u),function(){return e})}),s&&Nd(s,n)}else Nd(t,n);return e}var See=function(e,t){return _p(e)||ul(e)||Dp(e)||Rp(e)||lU(e,t)};function Aee(e,t,n){var r=n.get(e);r?r.push(t):n.set(e,[t])}function Oee(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=Ho(o),u=s[0],c=s.slice(1);u.length===0?r=c.map(uE):n[uE(u)]=c.map(uE)}}),r?HT(n)?[r]:[r,n]:HT(n)?void 0:n}var mU=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=mee(e);if(!f){Aee(e,o,t);var m=u.get(e);if(m)return r?{transformedValue:null}:m}if(!See(e,n)){var g=o3(e,n),p=g?{transformedValue:g.value,annotations:[g.type]}:{transformedValue:e};return f||u.set(e,p),p}if(Dy(s,e))return{transformedValue:null};var y=o3(e,n),b=(c=y?.value)!==null&&c!==void 0?c:e,S=ul(b)?[]:{},x={};Nd(b,function(T,_){var D=mU(T,t,n,r,rl(rl([],Ho(o)),[_]),rl(rl([],Ho(s)),[e]),u);S[_]=D.transformedValue,ul(D.annotations)?x[_]=D.annotations:_p(D.annotations)&&Nd(D.annotations,function(P,A){x[aU(_)+"."+A]=P})});var N=HT(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 pU(e){return Object.prototype.toString.call(e).slice(8,-1)}function s3(e){return pU(e)==="Array"}function Tee(e){if(pU(e)!=="Object")return!1;const t=Object.getPrototypeOf(e);return!!t&&t.constructor===Object&&t===Object.prototype}function Cee(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 XT(e,t={}){if(s3(e))return e.map(o=>XT(o,t));if(!Tee(e))return e;const n=Object.getOwnPropertyNames(e),r=Object.getOwnPropertySymbols(e);return[...n,...r].reduce((o,s)=>{if(s3(t.props)&&!t.props.includes(s))return o;const u=e[s],c=XT(u,t);return Cee(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)},_ee=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},Dee=function(e,t){for(var n=0,r=t.length,o=e.length;n<r;n++,o++)e[o]=t[n];return e},rs=(function(){function e(t){var n=t===void 0?{}:t,r=n.dedupe,o=r===void 0?!1:r;this.classRegistry=new eee,this.symbolRegistry=new tU(function(s){var u;return(u=s.description)!==null&&u!==void 0?u:""}),this.customTransformerRegistry=new aee,this.allowedErrorProps=[],this.dedupe=o}return e.prototype.serialize=function(t){var n=new Map,r=mU(t,n,this,this.dedupe),o={json:r.transformedValue};r.annotations&&(o.meta=mu(mu({},o.meta),{values:r.annotations}));var s=Oee(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=XT(n);return r?.values&&(o=Nee(o,r.values,this)),r?.referentialEqualities&&(o=Eee(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,Dee([],_ee(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})();rs.serialize;rs.deserialize;rs.stringify;rs.parse;rs.registerClass;rs.registerCustom;rs.registerSymbol;rs.allowErrorProps;var Ree=(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{}},jee=R.createContext(void 0),Pee={setTheme:e=>{},themes:[]},Mee=()=>{var e;return(e=R.useContext(jee))!=null?e:Pee};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:`(${Ree.toString()})(${g})`}})});var Sh=eU();const hU=kt(Sh);function Lee(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 kee=e=>{switch(e){case"success":return Vee;case"info":return zee;case"warning":return Bee;case"error":return Uee;default:return null}},Iee=Array(12).fill(0),$ee=({visible:e,className:t})=>H.createElement("div",{className:["sonner-loading-wrapper",t].filter(Boolean).join(" "),"data-visible":e},H.createElement("div",{className:"sonner-spinner"},Iee.map((n,r)=>H.createElement("div",{className:"sonner-loading-bar",key:`spinner-bar-${r}`})))),Vee=H.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",height:"20",width:"20"},H.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"})),Bee=H.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",height:"20",width:"20"},H.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"})),zee=H.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",height:"20",width:"20"},H.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"})),Uee=H.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",height:"20",width:"20"},H.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"})),qee=H.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"},H.createElement("line",{x1:"18",y1:"6",x2:"6",y2:"18"}),H.createElement("line",{x1:"6",y1:"6",x2:"18",y2:"18"})),Hee=()=>{const[e,t]=H.useState(document.hidden);return H.useEffect(()=>{const n=()=>{t(document.hidden)};return document.addEventListener("visibilitychange",n),()=>window.removeEventListener("visibilitychange",n)},[]),e};let WT=1;class Fee{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:WT++,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],H.isValidElement(m))s=!1,this.create({id:r,type:"default",message:m});else if(Gee(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"&&!H.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"&&!H.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"&&!H.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"&&!H.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||WT++;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 Fee,Kee=(e,t)=>{const n=t?.id||WT++;return qr.addToast({title:e,...t,id:n}),n},Gee=e=>e&&typeof e=="object"&&"ok"in e&&typeof e.ok=="boolean"&&"status"in e&&typeof e.status=="number",Yee=Kee,Qee=()=>qr.toasts,Xee=()=>qr.getActiveToasts(),cn=Object.assign(Yee,{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:Qee,getToasts:Xee});Lee("[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 ay(e){return e.label!==void 0}const Wee=3,Zee="24px",Jee="16px",l3=4e3,ete=356,tte=14,nte=45,rte=200;function qi(...e){return e.filter(Boolean).join(" ")}function ate(e){const[t,n]=e.split("-"),r=[];return t&&r.push(t),n&&r.push(n),r}const ite=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:_,expanded:D,removeToast:P,defaultRichColors:A,closeButton:C,style:j,cancelButtonStyle:L,actionButtonStyle:V,className:B="",descriptionClassName:z="",duration:q,position:F,gap:Y,expandByDefault:ee,classNames:U,icons:G,closeButtonAriaLabel:K="Close toast"}=e,[te,ne]=H.useState(null),[I,Z]=H.useState(null),[W,ae]=H.useState(!1),[ge,Ne]=H.useState(!1),[ue,xe]=H.useState(!1),[me,be]=H.useState(!1),[de,ie]=H.useState(!1),[ze,we]=H.useState(0),[lt,$e]=H.useState(0),et=H.useRef(p.duration||q||l3),zn=H.useRef(null),xn=H.useRef(null),je=T===0,ir=T+1<=x,wt=p.type,Un=p.dismissible!==!1,Mr=p.className||"",di=p.descriptionClassName||"",Gr=H.useMemo(()=>N.findIndex(Se=>Se.toastId===p.id)||0,[N,p.id]),fi=H.useMemo(()=>{var Se;return(Se=p.closeButton)!=null?Se:C},[p.closeButton,C]),Ba=H.useMemo(()=>p.duration||q||l3,[p.duration,q]),cs=H.useRef(0),pa=H.useRef(0),ds=H.useRef(0),Lr=H.useRef(null),[mi,uo]=F.split("-"),co=H.useMemo(()=>N.reduce((Se,He,Be)=>Be>=Gr?Se:Se+He.height,0),[N,Gr]),fo=Hee(),pi=p.invert||g,$=wt==="loading";pa.current=H.useMemo(()=>Gr*Y+co,[Gr,co]),H.useEffect(()=>{et.current=Ba},[Ba]),H.useEffect(()=>{ae(!0)},[]),H.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(It=>It.toastId!==p.id))}},[S,p.id]),H.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(It=>It.find(dn=>dn.toastId===p.id)?It.map(dn=>dn.toastId===p.id?{...dn,height:Be}:dn):[{toastId:p.id,height:Be,position:p.position},...It])},[W,p.title,p.description,S,p.id,p.jsx,p.action,p.cancel]);const le=H.useCallback(()=>{Ne(!0),we(pa.current),S(Se=>Se.filter(He=>He.toastId!==p.id)),setTimeout(()=>{P(p)},rte)},[p,P,S,pa]);H.useEffect(()=>{if(p.promise&&wt==="loading"||p.duration===1/0||p.type==="loading")return;let Se;return D||b||fo?(()=>{if(ds.current<cs.current){const It=new Date().getTime()-cs.current;et.current=et.current-It}ds.current=new Date().getTime()})():(()=>{et.current!==1/0&&(cs.current=new Date().getTime(),Se=setTimeout(()=>{p.onAutoClose==null||p.onAutoClose.call(p,p),le()},et.current))})(),()=>clearTimeout(Se)},[D,b,p,wt,fo,le]),H.useEffect(()=>{p.delete&&(le(),p.onDismiss==null||p.onDismiss.call(p,p))},[le,p.delete]);function Ee(){var Se;if(G?.loading){var He;return H.createElement("div",{className:qi(U?.loader,p==null||(He=p.classNames)==null?void 0:He.loader,"sonner-loader"),"data-visible":wt==="loading"},G.loading)}return H.createElement($ee,{className:qi(U?.loader,p==null||(Se=p.classNames)==null?void 0:Se.loader),visible:wt==="loading"})}const Te=p.icon||G?.[wt]||kee(wt);var Me,Ze;return H.createElement("li",{tabIndex:0,ref:xn,className:qi(B,Mr,U?.toast,p==null||(t=p.classNames)==null?void 0:t.toast,U?.default,U?.[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":uo,"data-index":T,"data-front":je,"data-swiping":ue,"data-dismissible":Un,"data-type":wt,"data-invert":pi,"data-swipe-out":me,"data-swipe-direction":I,"data-expanded":!!(D||ee&&W),"data-testid":p.testId,style:{"--index":T,"--toasts-before":T,"--z-index":_.length-T,"--offset":`${ge?ze:pa.current}px`,"--initial-height":ee?"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 It=Number(((Se=xn.current)==null?void 0:Se.style.getPropertyValue("--swipe-amount-x").replace("px",""))||0),hr=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"?It:hr,mo=Math.abs(Rn)/dn;if(Math.abs(Rn)>=nte||mo>.11){we(pa.current),p.onDismiss==null||p.onDismiss.call(p,p),Z(te==="x"?It>0?"right":"left":hr>0?"down":"up"),le(),be(!0);return}else{var gn,rn;(gn=xn.current)==null||gn.style.setProperty("--swipe-amount-x","0px"),(rn=xn.current)==null||rn.style.setProperty("--swipe-amount-y","0px")}ie(!1),xe(!1),ne(null)},onPointerMove:Se=>{var He,Be,It;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 mo;const gn=(mo=e.swipeDirections)!=null?mo:ate(F);!te&&(Math.abs(Rn)>1||Math.abs(dn)>1)&&ne(Math.abs(Rn)>Math.abs(dn)?"x":"y");let rn={x:0,y:0};const yf=po=>1/(1.5+Math.abs(po)/20);if(te==="y"){if(gn.includes("top")||gn.includes("bottom"))if(gn.includes("top")&&dn<0||gn.includes("bottom")&&dn>0)rn.y=dn;else{const po=dn*yf(dn);rn.y=Math.abs(po)<Math.abs(dn)?po:dn}}else if(te==="x"&&(gn.includes("left")||gn.includes("right")))if(gn.includes("left")&&Rn<0||gn.includes("right")&&Rn>0)rn.x=Rn;else{const po=Rn*yf(Rn);rn.x=Math.abs(po)<Math.abs(Rn)?po:Rn}(Math.abs(rn.x)>0||Math.abs(rn.y)>0)&&ie(!0),(Be=xn.current)==null||Be.style.setProperty("--swipe-amount-x",`${rn.x}px`),(It=xn.current)==null||It.style.setProperty("--swipe-amount-y",`${rn.y}px`)}},fi&&!p.jsx&&wt!=="loading"?H.createElement("button",{"aria-label":K,"data-disabled":$,"data-close-button":!0,onClick:$||!Un?()=>{}:()=>{le(),p.onDismiss==null||p.onDismiss.call(p,p)},className:qi(U?.closeButton,p==null||(r=p.classNames)==null?void 0:r.closeButton)},(Ze=G?.close)!=null?Ze:qee):null,(wt||p.icon||p.promise)&&p.icon!==null&&(G?.[wt]!==null||p.icon)?H.createElement("div",{"data-icon":"",className:qi(U?.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,H.createElement("div",{"data-content":"",className:qi(U?.content,p==null||(s=p.classNames)==null?void 0:s.content)},H.createElement("div",{"data-title":"",className:qi(U?.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?H.createElement("div",{"data-description":"",className:qi(z,di,U?.description,p==null||(c=p.classNames)==null?void 0:c.description)},typeof p.description=="function"?p.description():p.description):null),H.isValidElement(p.cancel)?p.cancel:p.cancel&&ay(p.cancel)?H.createElement("button",{"data-button":!0,"data-cancel":!0,style:p.cancelButtonStyle||L,onClick:Se=>{ay(p.cancel)&&Un&&(p.cancel.onClick==null||p.cancel.onClick.call(p.cancel,Se),le())},className:qi(U?.cancelButton,p==null||(f=p.classNames)==null?void 0:f.cancelButton)},p.cancel.label):null,H.isValidElement(p.action)?p.action:p.action&&ay(p.action)?H.createElement("button",{"data-button":!0,"data-action":!0,style:p.actionButtonStyle||V,onClick:Se=>{ay(p.action)&&(p.action.onClick==null||p.action.onClick.call(p.action,Se),!Se.defaultPrevented&&le())},className:qi(U?.actionButton,p==null||(m=p.classNames)==null?void 0:m.actionButton)},p.action.label):null)};function u3(){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 ote(e,t){const n={};return[e,t].forEach((r,o)=>{const s=o===1,u=s?"--mobile-offset":"--offset",c=s?Jee:Zee;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 ste=H.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=Wee,toastOptions:T,dir:_=u3(),gap:D=tte,icons:P,containerAriaLabel:A="Notifications"}=t,[C,j]=H.useState([]),L=H.useMemo(()=>r?C.filter(W=>W.toasterId===r):C.filter(W=>!W.toasterId),[C,r]),V=H.useMemo(()=>Array.from(new Set([s].concat(L.filter(W=>W.position).map(W=>W.position)))),[L,s]),[B,z]=H.useState([]),[q,F]=H.useState(!1),[Y,ee]=H.useState(!1),[U,G]=H.useState(y!=="system"?y:typeof window<"u"&&window.matchMedia&&window.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light"),K=H.useRef(null),te=u.join("+").replace(/Key/g,"").replace(/Digit/g,""),ne=H.useRef(null),I=H.useRef(!1),Z=H.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 H.useEffect(()=>qr.subscribe(W=>{if(W.dismiss){requestAnimationFrame(()=>{j(ae=>ae.map(ge=>ge.id===W.id?{...ge,delete:!0}:ge))});return}setTimeout(()=>{hU.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]})})})}),[C]),H.useEffect(()=>{if(y!=="system"){G(y);return}if(y==="system"&&(window.matchMedia&&window.matchMedia("(prefers-color-scheme: dark)").matches?G("dark"):G("light")),typeof window>"u")return;const W=window.matchMedia("(prefers-color-scheme: dark)");try{W.addEventListener("change",({matches:ae})=>{G(ae?"dark":"light")})}catch{W.addListener(({matches:ge})=>{try{G(ge?"dark":"light")}catch(Ne){console.error(Ne)}})}},[y]),H.useEffect(()=>{C.length<=1&&F(!1)},[C]),H.useEffect(()=>{const W=ae=>{var ge;if(u.every(xe=>ae[xe]||ae.code===xe)){var ue;F(!0),(ue=K.current)==null||ue.focus()}ae.code==="Escape"&&(document.activeElement===K.current||(ge=K.current)!=null&&ge.contains(document.activeElement))&&F(!1)};return document.addEventListener("keydown",W),()=>document.removeEventListener("keydown",W)},[u]),H.useEffect(()=>{if(K.current)return()=>{ne.current&&(ne.current.focus({preventScroll:!0}),ne.current=null,I.current=!1)}},[K.current]),H.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,ue]=W.split("-");return L.length?H.createElement("ol",{key:W,dir:_==="auto"?u3():_,tabIndex:-1,ref:K,className:m,"data-sonner-toaster":!0,"data-sonner-theme":U,"data-y-position":Ne,"data-x-position":ue,style:{"--front-toast-height":`${((ge=B[0])==null?void 0:ge.height)||0}px`,"--width":`${ete}px`,"--gap":`${D}px`,...x,...ote(g,p)},onBlur:xe=>{I.current&&!xe.currentTarget.contains(xe.relatedTarget)&&(I.current=!1,ne.current&&(ne.current.focus({preventScroll:!0}),ne.current=null))},onFocus:xe=>{xe.target instanceof HTMLElement&&xe.target.dataset.dismissible==="false"||I.current||(I.current=!0,ne.current=xe.relatedTarget)},onMouseEnter:()=>F(!0),onMouseMove:()=>F(!0),onMouseLeave:()=>{Y||F(!1)},onDragEnd:()=>F(!1),onPointerDown:xe=>{xe.target instanceof HTMLElement&&xe.target.dataset.dismissible==="false"||ee(!0)},onPointerUp:()=>ee(!1)},L.filter(xe=>!xe.position&&ae===0||xe.position===W).map((xe,me)=>{var be,de;return H.createElement(ite,{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:Z,toasts:L.filter(ie=>ie.position==xe.position),heights:B.filter(ie=>ie.position==xe.position),setHeights:z,expandByDefault:c,gap:D,expanded:q,swipeDirections:t.swipeDirections})})):null}))}),lte=({...e})=>{const{theme:t="system"}=Mee();return w.jsxDEV(ste,{"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 c3(e,t){if(typeof e=="function")return e(t);e!=null&&(e.current=t)}function i0(...e){return t=>{let n=!1;const r=e.map(o=>{const s=c3(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():c3(e[o],null)}}}}function Dt(...e){return R.useCallback(i0(...e),e)}function ute(e,t){const n=R.createContext(t),r=s=>{const{children:u,...c}=s,f=R.useMemo(()=>c,Object.values(c));return ce.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 as(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 ce.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,cte(o,...t)]}function cte(...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=dte(e),n=R.forwardRef((r,o)=>{const{children:s,...u}=r,c=R.Children.toArray(s),f=c.find(mte);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 ce.jsx(t,{...u,ref:o,children:R.isValidElement(m)?R.cloneElement(m,void 0,g):null})}return ce.jsx(t,{...u,ref:o,children:s})});return n.displayName=`${e}.Slot`,n}var gU=Tu("Slot");function dte(e){const t=R.forwardRef((n,r)=>{const{children:o,...s}=n;if(R.isValidElement(o)){const u=hte(o),c=pte(s,o.props);return o.type!==R.Fragment&&(c.ref=r?i0(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 vU=Symbol("radix.slottable");function fte(e){const t=({children:n})=>ce.jsx(ce.Fragment,{children:n});return t.displayName=`${e}.Slottable`,t.__radixId=vU,t}function mte(e){return R.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===vU}function pte(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 hte(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 gte=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],pt=gte.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),ce.jsx(f,{...c,ref:s})});return r.displayName=`Primitive.${t}`,{...e,[t]:r}},{});function yU(e,t){e&&Sh.flushSync(()=>e.dispatchEvent(t))}function to(e){const t=R.useRef(e);return R.useEffect(()=>{t.current=e}),R.useMemo(()=>(...n)=>t.current?.(...n),[])}function vte(e,t=globalThis?.document){const n=to(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 yte="DismissableLayer",ZT="dismissableLayer.update",bte="dismissableLayer.pointerDownOutside",xte="dismissableLayer.focusOutside",d3,bU=R.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),Ah=R.forwardRef((e,t)=>{const{disableOutsidePointerEvents:n=!1,onEscapeKeyDown:r,onPointerDownOutside:o,onFocusOutside:s,onInteractOutside:u,onDismiss:c,...f}=e,m=R.useContext(bU),[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),_=g?x.indexOf(g):-1,D=m.layersWithOutsidePointerEventsDisabled.size>0,P=_>=T,A=Ete(j=>{const L=j.target,V=[...m.branches].some(B=>B.contains(L));!P||V||(o?.(j),u?.(j),j.defaultPrevented||c?.())},y),C=Ste(j=>{const L=j.target;[...m.branches].some(B=>B.contains(L))||(s?.(j),u?.(j),j.defaultPrevented||c?.())},y);return vte(j=>{_===m.layers.size-1&&(r?.(j),!j.defaultPrevented&&c&&(j.preventDefault(),c()))},y),R.useEffect(()=>{if(g)return n&&(m.layersWithOutsidePointerEventsDisabled.size===0&&(d3=y.body.style.pointerEvents,y.body.style.pointerEvents="none"),m.layersWithOutsidePointerEventsDisabled.add(g)),m.layers.add(g),f3(),()=>{n&&m.layersWithOutsidePointerEventsDisabled.size===1&&(y.body.style.pointerEvents=d3)}},[g,y,n,m]),R.useEffect(()=>()=>{g&&(m.layers.delete(g),m.layersWithOutsidePointerEventsDisabled.delete(g),f3())},[g,m]),R.useEffect(()=>{const j=()=>b({});return document.addEventListener(ZT,j),()=>document.removeEventListener(ZT,j)},[]),ce.jsx(pt.div,{...f,ref:S,style:{pointerEvents:D?P?"auto":"none":void 0,...e.style},onFocusCapture:Ie(e.onFocusCapture,C.onFocusCapture),onBlurCapture:Ie(e.onBlurCapture,C.onBlurCapture),onPointerDownCapture:Ie(e.onPointerDownCapture,A.onPointerDownCapture)})});Ah.displayName=yte;var wte="DismissableLayerBranch",Nte=R.forwardRef((e,t)=>{const n=R.useContext(bU),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]),ce.jsx(pt.div,{...e,ref:o})});Nte.displayName=wte;function Ete(e,t=globalThis?.document){const n=to(e),r=R.useRef(!1),o=R.useRef(()=>{});return R.useEffect(()=>{const s=c=>{if(c.target&&!r.current){let f=function(){xU(bte,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 Ste(e,t=globalThis?.document){const n=to(e),r=R.useRef(!1);return R.useEffect(()=>{const o=s=>{s.target&&!r.current&&xU(xte,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 f3(){const e=new CustomEvent(ZT);document.dispatchEvent(e)}function xU(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?yU(o,s):o.dispatchEvent(s)}var mr=globalThis?.document?R.useLayoutEffect:()=>{},Ate=Wb[" useId ".trim().toString()]||(()=>{}),Ote=0;function Yo(e){const[t,n]=R.useState(Ate());return mr(()=>{n(r=>r??String(Ote++))},[e]),e||(t?`radix-${t}`:"")}const Tte=["top","right","bottom","left"],cl=Math.min,ca=Math.max,Uy=Math.round,iy=Math.floor,Wi=e=>({x:e,y:e}),Cte={left:"right",right:"left",bottom:"top",top:"bottom"},_te={start:"end",end:"start"};function JT(e,t,n){return ca(e,cl(t,n))}function Zo(e,t){return typeof e=="function"?e(t):e}function Jo(e){return e.split("-")[0]}function ef(e){return e.split("-")[1]}function H_(e){return e==="x"?"y":"x"}function F_(e){return e==="y"?"height":"width"}const Dte=new Set(["top","bottom"]);function Yi(e){return Dte.has(Jo(e))?"y":"x"}function K_(e){return H_(Yi(e))}function Rte(e,t,n){n===void 0&&(n=!1);const r=ef(e),o=K_(e),s=F_(o);let u=o==="x"?r===(n?"end":"start")?"right":"left":r==="start"?"bottom":"top";return t.reference[s]>t.floating[s]&&(u=qy(u)),[u,qy(u)]}function jte(e){const t=qy(e);return[eC(e),t,eC(t)]}function eC(e){return e.replace(/start|end/g,t=>_te[t])}const m3=["left","right"],p3=["right","left"],Pte=["top","bottom"],Mte=["bottom","top"];function Lte(e,t,n){switch(e){case"top":case"bottom":return n?t?p3:m3:t?m3:p3;case"left":case"right":return t?Pte:Mte;default:return[]}}function kte(e,t,n,r){const o=ef(e);let s=Lte(Jo(e),n==="start",r);return o&&(s=s.map(u=>u+"-"+o),t&&(s=s.concat(s.map(eC)))),s}function qy(e){return e.replace(/left|right|bottom|top/g,t=>Cte[t])}function Ite(e){return{top:0,right:0,bottom:0,left:0,...e}}function wU(e){return typeof e!="number"?Ite(e):{top:e,right:e,bottom:e,left:e}}function Hy(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 h3(e,t,n){let{reference:r,floating:o}=e;const s=Yi(t),u=K_(t),c=F_(u),f=Jo(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(ef(t)){case"start":b[u]-=y*(n&&m?-1:1);break;case"end":b[u]+=y*(n&&m?-1:1);break}return b}const $te=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}=h3(m,r,f),y=r,b={},S=0;for(let x=0;x<c.length;x++){const{name:N,fn:T}=c[x],{x:_,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=_??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}=h3(m,y,f)),x=-1)}return{x:g,y:p,placement:y,strategy:o,middlewareData:b}};async function jp(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}=Zo(t,e),S=wU(b),N=c[y?p==="floating"?"reference":"floating":p],T=Hy(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})),_=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=Hy(s.convertOffsetParentRelativeRectToViewportRelativeRect?await s.convertOffsetParentRelativeRectToViewportRelativeRect({elements:c,rect:_,offsetParent:D,strategy:f}):_);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 Vte=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}=Zo(e,t)||{};if(m==null)return{};const p=wU(g),y={x:n,y:r},b=K_(o),S=F_(b),x=await u.getDimensions(m),N=b==="y",T=N?"top":"left",_=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],C=await(u.getOffsetParent==null?void 0:u.getOffsetParent(m));let j=C?C[D]:0;(!j||!await(u.isElement==null?void 0:u.isElement(C)))&&(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),z=cl(p[_],V),q=B,F=j-x[S]-z,Y=j/2-x[S]/2+L,ee=JT(q,Y,F),U=!f.arrow&&ef(o)!=null&&Y!==ee&&s.reference[S]/2-(Y<q?B:z)-x[S]/2<0,G=U?Y<q?Y-q:Y-F:0;return{[b]:y[b]+G,data:{[b]:ee,centerOffset:Y-ee-G,...U&&{alignmentOffset:G}},reset:U}}}),Bte=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}=Zo(e,t);if((n=s.arrow)!=null&&n.alignmentOffset)return{};const T=Jo(o),_=Yi(c),D=Jo(c)===c,P=await(f.isRTL==null?void 0:f.isRTL(m.floating)),A=y||(D||!x?[qy(c)]:jte(c)),C=S!=="none";!y&&C&&A.push(...kte(c,x,S,P));const j=[c,...A],L=await jp(t,N),V=[];let B=((r=s.flip)==null?void 0:r.overflows)||[];if(g&&V.push(L[T]),p){const Y=Rte(o,u,P);V.push(L[Y[0]],L[Y[1]])}if(B=[...B,{placement:o,overflows:V}],!V.every(Y=>Y<=0)){var z,q;const Y=(((z=s.flip)==null?void 0:z.index)||0)+1,ee=j[Y];if(ee&&(!(p==="alignment"?_!==Yi(ee):!1)||B.every(K=>Yi(K.placement)===_?K.overflows[0]>0:!0)))return{data:{index:Y,overflows:B},reset:{placement:ee}};let U=(q=B.filter(G=>G.overflows[0]<=0).sort((G,K)=>G.overflows[1]-K.overflows[1])[0])==null?void 0:q.placement;if(!U)switch(b){case"bestFit":{var F;const G=(F=B.filter(K=>{if(C){const te=Yi(K.placement);return te===_||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:F[0];G&&(U=G);break}case"initialPlacement":U=c;break}if(o!==U)return{reset:{placement:U}}}return{}}}};function g3(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function v3(e){return Tte.some(t=>e[t]>=0)}const zte=function(e){return e===void 0&&(e={}),{name:"hide",options:e,async fn(t){const{rects:n}=t,{strategy:r="referenceHidden",...o}=Zo(e,t);switch(r){case"referenceHidden":{const s=await jp(t,{...o,elementContext:"reference"}),u=g3(s,n.reference);return{data:{referenceHiddenOffsets:u,referenceHidden:v3(u)}}}case"escaped":{const s=await jp(t,{...o,altBoundary:!0}),u=g3(s,n.floating);return{data:{escapedOffsets:u,escaped:v3(u)}}}default:return{}}}}},NU=new Set(["left","top"]);async function Ute(e,t){const{placement:n,platform:r,elements:o}=e,s=await(r.isRTL==null?void 0:r.isRTL(o.floating)),u=Jo(n),c=ef(n),f=Yi(n)==="y",m=NU.has(u)?-1:1,g=s&&f?-1:1,p=Zo(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 qte=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 Ute(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}}}}},Hte=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:_}=N;return{x:T,y:_}}},...f}=Zo(e,t),m={x:n,y:r},g=await jp(t,f),p=Yi(Jo(o)),y=H_(p);let b=m[y],S=m[p];if(s){const N=y==="y"?"top":"left",T=y==="y"?"bottom":"right",_=b+g[N],D=b-g[T];b=JT(_,b,D)}if(u){const N=p==="y"?"top":"left",T=p==="y"?"bottom":"right",_=S+g[N],D=S-g[T];S=JT(_,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}}}}}},Fte=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}=Zo(e,t),g={x:n,y:r},p=Yi(o),y=H_(p);let b=g[y],S=g[p];const x=Zo(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,_;const D=y==="y"?"width":"height",P=NU.has(Jo(o)),A=s.reference[p]-s.floating[D]+(P&&((T=u.offset)==null?void 0:T[p])||0)+(P?0:N.crossAxis),C=s.reference[p]+s.reference[D]+(P?0:((_=u.offset)==null?void 0:_[p])||0)-(P?N.crossAxis:0);S<A?S=A:S>C&&(S=C)}return{[y]:b,[p]:S}}}},Kte=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}=Zo(e,t),g=await jp(t,m),p=Jo(o),y=ef(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 _=x-g.top-g.bottom,D=S-g.left-g.right,P=cl(x-g[N],_),A=cl(S-g[T],D),C=!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),z=ca(g.right,0),q=ca(g.top,0),F=ca(g.bottom,0);b?L=S-2*(B!==0||z!==0?B+z:ca(g.left,g.right)):j=x-2*(q!==0||F!==0?q+F: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 o0(){return typeof window<"u"}function tf(e){return EU(e)?(e.nodeName||"").toLowerCase():"#document"}function fa(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function oo(e){var t;return(t=(EU(e)?e.ownerDocument:e.document)||window.document)==null?void 0:t.documentElement}function EU(e){return o0()?e instanceof Node||e instanceof fa(e).Node:!1}function oi(e){return o0()?e instanceof Element||e instanceof fa(e).Element:!1}function no(e){return o0()?e instanceof HTMLElement||e instanceof fa(e).HTMLElement:!1}function y3(e){return!o0()||typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof fa(e).ShadowRoot}const Gte=new Set(["inline","contents"]);function Oh(e){const{overflow:t,overflowX:n,overflowY:r,display:o}=si(e);return/auto|scroll|overlay|hidden|clip/.test(t+r+n)&&!Gte.has(o)}const Yte=new Set(["table","td","th"]);function Qte(e){return Yte.has(tf(e))}const Xte=[":popover-open",":modal"];function s0(e){return Xte.some(t=>{try{return e.matches(t)}catch{return!1}})}const Wte=["transform","translate","scale","rotate","perspective"],Zte=["transform","translate","scale","rotate","perspective","filter"],Jte=["paint","layout","strict","content"];function G_(e){const t=Y_(),n=oi(e)?si(e):e;return Wte.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)||Zte.some(r=>(n.willChange||"").includes(r))||Jte.some(r=>(n.contain||"").includes(r))}function ene(e){let t=dl(e);for(;no(t)&&!Ed(t);){if(G_(t))return t;if(s0(t))return null;t=dl(t)}return null}function Y_(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}const tne=new Set(["html","body","#document"]);function Ed(e){return tne.has(tf(e))}function si(e){return fa(e).getComputedStyle(e)}function l0(e){return oi(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function dl(e){if(tf(e)==="html")return e;const t=e.assignedSlot||e.parentNode||y3(e)&&e.host||oo(e);return y3(t)?t.host:t}function SU(e){const t=dl(e);return Ed(t)?e.ownerDocument?e.ownerDocument.body:e.body:no(t)&&Oh(t)?t:SU(t)}function Pp(e,t,n){var r;t===void 0&&(t=[]),n===void 0&&(n=!0);const o=SU(e),s=o===((r=e.ownerDocument)==null?void 0:r.body),u=fa(o);if(s){const c=tC(u);return t.concat(u,u.visualViewport||[],Oh(o)?o:[],c&&n?Pp(c):[])}return t.concat(o,Pp(o,[],n))}function tC(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function AU(e){const t=si(e);let n=parseFloat(t.width)||0,r=parseFloat(t.height)||0;const o=no(e),s=o?e.offsetWidth:n,u=o?e.offsetHeight:r,c=Uy(n)!==s||Uy(r)!==u;return c&&(n=s,r=u),{width:n,height:r,$:c}}function Q_(e){return oi(e)?e:e.contextElement}function gd(e){const t=Q_(e);if(!no(t))return Wi(1);const n=t.getBoundingClientRect(),{width:r,height:o,$:s}=AU(t);let u=(s?Uy(n.width):n.width)/r,c=(s?Uy(n.height):n.height)/o;return(!u||!Number.isFinite(u))&&(u=1),(!c||!Number.isFinite(c))&&(c=1),{x:u,y:c}}const nne=Wi(0);function OU(e){const t=fa(e);return!Y_()||!t.visualViewport?nne:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function rne(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=Q_(e);let u=Wi(1);t&&(r?oi(r)&&(u=gd(r)):u=gd(e));const c=rne(s,n,r)?OU(s):Wi(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=tC(S);for(;x&&r&&b!==S;){const N=gd(x),T=x.getBoundingClientRect(),_=si(x),D=T.left+(x.clientLeft+parseFloat(_.paddingLeft))*N.x,P=T.top+(x.clientTop+parseFloat(_.paddingTop))*N.y;f*=N.x,m*=N.y,g*=N.x,p*=N.y,f+=D,m+=P,S=fa(x),x=tC(S)}}return Hy({width:g,height:p,x:f,y:m})}function u0(e,t){const n=l0(e).scrollLeft;return t?t.left+n:Cu(oo(e)).left+n}function TU(e,t){const n=e.getBoundingClientRect(),r=n.left+t.scrollLeft-u0(e,n),o=n.top+t.scrollTop;return{x:r,y:o}}function ane(e){let{elements:t,rect:n,offsetParent:r,strategy:o}=e;const s=o==="fixed",u=oo(r),c=t?s0(t.floating):!1;if(r===u||c&&s)return n;let f={scrollLeft:0,scrollTop:0},m=Wi(1);const g=Wi(0),p=no(r);if((p||!p&&!s)&&((tf(r)!=="body"||Oh(u))&&(f=l0(r)),no(r))){const b=Cu(r);m=gd(r),g.x=b.x+r.clientLeft,g.y=b.y+r.clientTop}const y=u&&!p&&!s?TU(u,f):Wi(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 ine(e){return Array.from(e.getClientRects())}function one(e){const t=oo(e),n=l0(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+u0(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 b3=25;function sne(e,t){const n=fa(e),r=oo(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=Y_();(!g||g&&t==="fixed")&&(c=o.offsetLeft,f=o.offsetTop)}const m=u0(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<=b3&&(s-=S)}else m<=b3&&(s+=m);return{width:s,height:u,x:c,y:f}}const lne=new Set(["absolute","fixed"]);function une(e,t){const n=Cu(e,!0,t==="fixed"),r=n.top+e.clientTop,o=n.left+e.clientLeft,s=no(e)?gd(e):Wi(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 x3(e,t,n){let r;if(t==="viewport")r=sne(e,n);else if(t==="document")r=one(oo(e));else if(oi(t))r=une(t,n);else{const o=OU(e);r={x:t.x-o.x,y:t.y-o.y,width:t.width,height:t.height}}return Hy(r)}function CU(e,t){const n=dl(e);return n===t||!oi(n)||Ed(n)?!1:si(n).position==="fixed"||CU(n,t)}function cne(e,t){const n=t.get(e);if(n)return n;let r=Pp(e,[],!1).filter(c=>oi(c)&&tf(c)!=="body"),o=null;const s=si(e).position==="fixed";let u=s?dl(e):e;for(;oi(u)&&!Ed(u);){const c=si(u),f=G_(u);!f&&c.position==="fixed"&&(o=null),(s?!f&&!o:!f&&c.position==="static"&&!!o&&lne.has(o.position)||Oh(u)&&!f&&CU(e,u))?r=r.filter(g=>g!==u):o=c,u=dl(u)}return t.set(e,r),r}function dne(e){let{element:t,boundary:n,rootBoundary:r,strategy:o}=e;const u=[...n==="clippingAncestors"?s0(t)?[]:cne(t,this._c):[].concat(n),r],c=u[0],f=u.reduce((m,g)=>{const p=x3(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},x3(t,c,o));return{width:f.right-f.left,height:f.bottom-f.top,x:f.left,y:f.top}}function fne(e){const{width:t,height:n}=AU(e);return{width:t,height:n}}function mne(e,t,n){const r=no(t),o=oo(t),s=n==="fixed",u=Cu(e,!0,s,t);let c={scrollLeft:0,scrollTop:0};const f=Wi(0);function m(){f.x=u0(o)}if(r||!r&&!s)if((tf(t)!=="body"||Oh(o))&&(c=l0(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?TU(o,c):Wi(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 cE(e){return si(e).position==="static"}function w3(e,t){if(!no(e)||si(e).position==="fixed")return null;if(t)return t(e);let n=e.offsetParent;return oo(e)===n&&(n=n.ownerDocument.body),n}function _U(e,t){const n=fa(e);if(s0(e))return n;if(!no(e)){let o=dl(e);for(;o&&!Ed(o);){if(oi(o)&&!cE(o))return o;o=dl(o)}return n}let r=w3(e,t);for(;r&&Qte(r)&&cE(r);)r=w3(r,t);return r&&Ed(r)&&cE(r)&&!G_(r)?n:r||ene(e)||n}const pne=async function(e){const t=this.getOffsetParent||_U,n=this.getDimensions,r=await n(e.floating);return{reference:mne(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:r.width,height:r.height}}};function hne(e){return si(e).direction==="rtl"}const gne={convertOffsetParentRelativeRectToViewportRelativeRect:ane,getDocumentElement:oo,getClippingRect:dne,getOffsetParent:_U,getElementRects:pne,getClientRects:ine,getDimensions:fne,getScale:gd,isElement:oi,isRTL:hne};function DU(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}function vne(e,t){let n=null,r;const o=oo(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=iy(p),x=iy(o.clientWidth-(g+y)),N=iy(o.clientHeight-(p+b)),T=iy(g),D={rootMargin:-S+"px "+-x+"px "+-N+"px "+-T+"px",threshold:ca(0,cl(1,f))||1};let P=!0;function A(C){const j=C[0].intersectionRatio;if(j!==f){if(!P)return u();j?u(!1,j):r=setTimeout(()=>{u(!1,1e-7)},1e3)}j===1&&!DU(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 yne(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=Q_(e),g=o||s?[...m?Pp(m):[],...Pp(t)]:[];g.forEach(T=>{o&&T.addEventListener("scroll",n,{passive:!0}),s&&T.addEventListener("resize",n)});const p=m&&c?vne(m,n):null;let y=-1,b=null;u&&(b=new ResizeObserver(T=>{let[_]=T;_&&_.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&&!DU(x,T)&&n(),x=T,S=requestAnimationFrame(N)}return n(),()=>{var T;g.forEach(_=>{o&&_.removeEventListener("scroll",n),s&&_.removeEventListener("resize",n)}),p?.(),(T=b)==null||T.disconnect(),b=null,f&&cancelAnimationFrame(S)}}const bne=qte,xne=Hte,wne=Bte,Nne=Kte,Ene=zte,N3=Vte,Sne=Fte,Ane=(e,t,n)=>{const r=new Map,o={platform:gne,...n},s={...o.platform,_c:r};return $te(e,t,{...o,platform:s})};var One=typeof document<"u",Tne=function(){},Ry=One?R.useLayoutEffect:Tne;function Fy(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(!Fy(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)&&!Fy(e[s],t[s]))return!1}return!0}return e!==e&&t!==t}function RU(e){return typeof window>"u"?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function E3(e,t){const n=RU(e);return Math.round(t*n)/n}function dE(e){const t=R.useRef(e);return Ry(()=>{t.current=e}),t}function Cne(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);Fy(y,r)||b(r);const[S,x]=R.useState(null),[N,T]=R.useState(null),_=R.useCallback(K=>{K!==C.current&&(C.current=K,x(K))},[]),D=R.useCallback(K=>{K!==j.current&&(j.current=K,T(K))},[]),P=s||S,A=u||N,C=R.useRef(null),j=R.useRef(null),L=R.useRef(g),V=f!=null,B=dE(f),z=dE(o),q=dE(m),F=R.useCallback(()=>{if(!C.current||!j.current)return;const K={placement:t,strategy:n,middleware:y};z.current&&(K.platform=z.current),Ane(C.current,j.current,K).then(te=>{const ne={...te,isPositioned:q.current!==!1};Y.current&&!Fy(L.current,ne)&&(L.current=ne,Sh.flushSync(()=>{p(ne)}))})},[y,t,n,z,q]);Ry(()=>{m===!1&&L.current.isPositioned&&(L.current.isPositioned=!1,p(K=>({...K,isPositioned:!1})))},[m]);const Y=R.useRef(!1);Ry(()=>(Y.current=!0,()=>{Y.current=!1}),[]),Ry(()=>{if(P&&(C.current=P),A&&(j.current=A),P&&A){if(B.current)return B.current(P,A,F);F()}},[P,A,F,B,V]);const ee=R.useMemo(()=>({reference:C,floating:j,setReference:_,setFloating:D}),[_,D]),U=R.useMemo(()=>({reference:P,floating:A}),[P,A]),G=R.useMemo(()=>{const K={position:n,left:0,top:0};if(!U.floating)return K;const te=E3(U.floating,g.x),ne=E3(U.floating,g.y);return c?{...K,transform:"translate("+te+"px, "+ne+"px)",...RU(U.floating)>=1.5&&{willChange:"transform"}}:{position:n,left:te,top:ne}},[n,c,U.floating,g.x,g.y]);return R.useMemo(()=>({...g,update:F,refs:ee,elements:U,floatingStyles:G}),[g,F,ee,U,G])}const _ne=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?N3({element:r.current,padding:o}).fn(n):{}:r?N3({element:r,padding:o}).fn(n):{}}}},Dne=(e,t)=>({...bne(e),options:[e,t]}),Rne=(e,t)=>({...xne(e),options:[e,t]}),jne=(e,t)=>({...Sne(e),options:[e,t]}),Pne=(e,t)=>({...wne(e),options:[e,t]}),Mne=(e,t)=>({...Nne(e),options:[e,t]}),Lne=(e,t)=>({...Ene(e),options:[e,t]}),kne=(e,t)=>({..._ne(e),options:[e,t]});var Ine="Arrow",jU=R.forwardRef((e,t)=>{const{children:n,width:r=10,height:o=5,...s}=e;return ce.jsx(pt.svg,{...s,ref:t,width:r,height:o,viewBox:"0 0 30 10",preserveAspectRatio:"none",children:e.asChild?n:ce.jsx("polygon",{points:"0,0 30,0 15,10"})})});jU.displayName=Ine;var $ne=jU;function PU(e){const[t,n]=R.useState(void 0);return mr(()=>{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 X_="Popper",[MU,nf]=as(X_),[Vne,LU]=MU(X_),kU=e=>{const{__scopePopper:t,children:n}=e,[r,o]=R.useState(null);return ce.jsx(Vne,{scope:t,anchor:r,onAnchorChange:o,children:n})};kU.displayName=X_;var IU="PopperAnchor",$U=R.forwardRef((e,t)=>{const{__scopePopper:n,virtualRef:r,...o}=e,s=LU(IU,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:ce.jsx(pt.div,{...o,ref:c})});$U.displayName=IU;var W_="PopperContent",[Bne,zne]=MU(W_),VU=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=LU(W_,n),[T,_]=R.useState(null),D=Dt(t,ue=>_(ue)),[P,A]=R.useState(null),C=PU(P),j=C?.width??0,L=C?.height??0,V=r+(s!=="center"?"-"+s:""),B=typeof g=="number"?g:{top:0,right:0,bottom:0,left:0,...g},z=Array.isArray(m)?m:[m],q=z.length>0,F={padding:B,boundary:z.filter(qne),altBoundary:q},{refs:Y,floatingStyles:ee,placement:U,isPositioned:G,middlewareData:K}=Cne({strategy:"fixed",placement:V,whileElementsMounted:(...ue)=>yne(...ue,{animationFrame:b==="always"}),elements:{reference:N.anchor},middleware:[Dne({mainAxis:o+L,alignmentAxis:u}),f&&Rne({mainAxis:!0,crossAxis:!1,limiter:p==="partial"?jne():void 0,...F}),f&&Pne({...F}),Mne({...F,apply:({elements:ue,rects:xe,availableWidth:me,availableHeight:be})=>{const{width:de,height:ie}=xe.reference,ze=ue.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&&kne({element:P,padding:c}),Hne({arrowWidth:j,arrowHeight:L}),y&&Lne({strategy:"referenceHidden",...F})]}),[te,ne]=UU(U),I=to(S);mr(()=>{G&&I?.()},[G,I]);const Z=K.arrow?.x,W=K.arrow?.y,ae=K.arrow?.centerOffset!==0,[ge,Ne]=R.useState();return mr(()=>{T&&Ne(window.getComputedStyle(T).zIndex)},[T]),ce.jsx("div",{ref:Y.setFloating,"data-radix-popper-content-wrapper":"",style:{...ee,transform:G?ee.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:ce.jsx(Bne,{scope:n,placedSide:te,onArrowChange:A,arrowX:Z,arrowY:W,shouldHideArrow:ae,children:ce.jsx(pt.div,{"data-side":te,"data-align":ne,...x,ref:D,style:{...x.style,animation:G?void 0:"none"}})})})});VU.displayName=W_;var BU="PopperArrow",Une={top:"bottom",right:"left",bottom:"top",left:"right"},zU=R.forwardRef(function(t,n){const{__scopePopper:r,...o}=t,s=zne(BU,r),u=Une[s.placedSide];return ce.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:ce.jsx($ne,{...o,ref:n,style:{...o.style,display:"block"}})})});zU.displayName=BU;function qne(e){return e!==null}var Hne=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]=UU(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 UU(e){const[t,n="center"]=e.split("-");return[t,n]}var qU=kU,Z_=$U,J_=VU,eD=zU,Fne="Portal",c0=R.forwardRef((e,t)=>{const{container:n,...r}=e,[o,s]=R.useState(!1);mr(()=>s(!0),[]);const u=n||o&&globalThis?.document?.body;return u?hU.createPortal(ce.jsx(pt.div,{...r,ref:t}),u):null});c0.displayName=Fne;function Kne(e,t){return R.useReducer((n,r)=>t[n][r]??n,e)}var is=e=>{const{present:t,children:n}=e,r=Gne(t),o=typeof n=="function"?n({present:r.isPresent}):R.Children.only(n),s=Dt(r.ref,Yne(o));return typeof n=="function"||r.isPresent?R.cloneElement(o,{ref:s}):null};is.displayName="Presence";function Gne(e){const[t,n]=R.useState(),r=R.useRef(null),o=R.useRef(e),s=R.useRef("none"),u=e?"mounted":"unmounted",[c,f]=Kne(u,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return R.useEffect(()=>{const m=oy(r.current);s.current=c==="mounted"?m:"none"},[c]),mr(()=>{const m=r.current,g=o.current;if(g!==e){const y=s.current,b=oy(m);e?f("MOUNT"):b==="none"||m?.display==="none"?f("UNMOUNT"):f(g&&y!==b?"ANIMATION_OUT":"UNMOUNT"),o.current=e}},[e,f]),mr(()=>{if(t){let m;const g=t.ownerDocument.defaultView??window,p=b=>{const x=oy(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=oy(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 oy(e){return e?.animationName||"none"}function Yne(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 Qne=Wb[" useInsertionEffect ".trim().toString()]||mr;function Sd({prop:e,defaultProp:t,onChange:n=()=>{},caller:r}){const[o,s,u]=Xne({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=Wne(g)?g(e):g;p!==e&&u.current?.(p)}else s(g)},[c,e,s,u]);return[f,m]}function Xne({defaultProp:e,onChange:t}){const[n,r]=R.useState(e),o=R.useRef(n),s=R.useRef(t);return Qne(()=>{s.current=t},[t]),R.useEffect(()=>{o.current!==n&&(s.current?.(n),o.current=n)},[n,o]),[n,r,s]}function Wne(e){return typeof e=="function"}var HU=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"}),Zne="VisuallyHidden",FU=R.forwardRef((e,t)=>ce.jsx(pt.span,{...e,ref:t,style:{...HU,...e.style}}));FU.displayName=Zne;var Jne=FU,[d0]=as("Tooltip",[nf]),tD=nf(),KU="TooltipProvider",ere=700,S3="tooltip.open",[tre,GU]=d0(KU),YU=e=>{const{__scopeTooltip:t,delayDuration:n=ere,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)},[]),ce.jsx(tre,{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})};YU.displayName=KU;var QU="Tooltip",[$Se,f0]=d0(QU),nC="TooltipTrigger",nre=R.forwardRef((e,t)=>{const{__scopeTooltip:n,...r}=e,o=f0(nC,n),s=GU(nC,n),u=tD(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]),ce.jsx(Z_,{asChild:!0,...u,children:ce.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)})})});nre.displayName=nC;var rre="TooltipPortal",[VSe,are]=d0(rre,{forceMount:void 0}),Ad="TooltipContent",ire=R.forwardRef((e,t)=>{const n=are(Ad,e.__scopeTooltip),{forceMount:r=n.forceMount,side:o="top",...s}=e,u=f0(Ad,e.__scopeTooltip);return ce.jsx(is,{present:r||u.open,children:u.disableHoverableContent?ce.jsx(XU,{side:o,...s,ref:t}):ce.jsx(ore,{side:o,...s,ref:t})})}),ore=R.forwardRef((e,t)=>{const n=f0(Ad,e.__scopeTooltip),r=GU(Ad,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},_=dre(T,N.getBoundingClientRect()),D=fre(T,_),P=mre(x.getBoundingClientRect()),A=hre([...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},_=f?.contains(N)||g?.contains(N),D=!pre(T,u);_?y():D&&(y(),m())};return document.addEventListener("pointermove",S),()=>document.removeEventListener("pointermove",S)}},[f,g,u,m,y]),ce.jsx(XU,{...e,ref:s})}),[sre,lre]=d0(QU,{isInside:!1}),ure=fte("TooltipContent"),XU=R.forwardRef((e,t)=>{const{__scopeTooltip:n,children:r,"aria-label":o,onEscapeKeyDown:s,onPointerDownOutside:u,...c}=e,f=f0(Ad,n),m=tD(n),{onClose:g}=f;return R.useEffect(()=>(document.addEventListener(S3,g),()=>document.removeEventListener(S3,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]),ce.jsx(Ah,{asChild:!0,disableOutsidePointerEvents:!1,onEscapeKeyDown:s,onPointerDownOutside:u,onFocusOutside:p=>p.preventDefault(),onDismiss:g,children:ce.jsxs(J_,{"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:[ce.jsx(ure,{children:r}),ce.jsx(sre,{scope:n,isInside:!0,children:ce.jsx(Jne,{id:f.contentId,role:"tooltip",children:o||r})})]})})});ire.displayName=Ad;var WU="TooltipArrow",cre=R.forwardRef((e,t)=>{const{__scopeTooltip:n,...r}=e,o=tD(n);return lre(WU,n).isInside?null:ce.jsx(eD,{...o,...r,ref:t})});cre.displayName=WU;function dre(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 fre(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 mre(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 pre(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 hre(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),gre(t)}function gre(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 vre=YU;function ZU(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=ZU(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=ZU(e))&&(r&&(r+=" "),r+=t);return r}const nD="-",yre=e=>{const t=xre(e),{conflictingClassGroups:n,conflictingClassGroupModifiers:r}=e;return{getClassGroupId:u=>{const c=u.split(nD);return c[0]===""&&c.length!==1&&c.shift(),JU(c,t)||bre(u)},getConflictingClassGroupIds:(u,c)=>{const f=n[u]||[];return c&&r[u]?[...f,...r[u]]:f}}},JU=(e,t)=>{if(e.length===0)return t.classGroupId;const n=e[0],r=t.nextPart.get(n),o=r?JU(e.slice(1),r):void 0;if(o)return o;if(t.validators.length===0)return;const s=e.join(nD);return t.validators.find(({validator:u})=>u(s))?.classGroupId},A3=/^\[(.+)\]$/,bre=e=>{if(A3.test(e)){const t=A3.exec(e)[1],n=t?.substring(0,t.indexOf(":"));if(n)return"arbitrary.."+n}},xre=e=>{const{theme:t,classGroups:n}=e,r={nextPart:new Map,validators:[]};for(const o in n)rC(n[o],r,o,t);return r},rC=(e,t,n,r)=>{e.forEach(o=>{if(typeof o=="string"){const s=o===""?t:O3(t,o);s.classGroupId=n;return}if(typeof o=="function"){if(wre(o)){rC(o(r),t,n,r);return}t.validators.push({validator:o,classGroupId:n});return}Object.entries(o).forEach(([s,u])=>{rC(u,O3(t,s),n,r)})})},O3=(e,t)=>{let n=e;return t.split(nD).forEach(r=>{n.nextPart.has(r)||n.nextPart.set(r,{nextPart:new Map,validators:[]}),n=n.nextPart.get(r)}),n},wre=e=>e.isThemeGetter,Nre=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)}}},aC="!",iC=":",Ere=iC.length,Sre=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===iC){s.push(o.slice(f,S)),f=S+Ere;continue}if(x==="/"){m=S;continue}}x==="["?u++:x==="]"?u--:x==="("?c++:x===")"&&c--}const g=s.length===0?o:o.substring(f),p=Are(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+iC,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},Are=e=>e.endsWith(aC)?e.substring(0,e.length-1):e.startsWith(aC)?e.substring(1):e,Ore=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}},Tre=e=>({cache:Nre(e.cacheSize),parseClassName:Sre(e),sortModifiers:Ore(e),...yre(e)}),Cre=/\s+/,_re=(e,t)=>{const{parseClassName:n,getClassGroupId:r,getConflictingClassGroupIds:o,sortModifiers:s}=t,u=[],c=e.trim().split(Cre);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 _=s(y).join(":"),D=b?_+aC:_,P=D+T;if(u.includes(P))continue;u.push(P);const A=o(T,N);for(let C=0;C<A.length;++C){const j=A[C];u.push(D+j)}f=g+(f.length>0?" "+f:f)}return f};function Dre(){let e=0,t,n,r="";for(;e<arguments.length;)(t=arguments[e++])&&(n=eq(t))&&(r&&(r+=" "),r+=n);return r}const eq=e=>{if(typeof e=="string")return e;let t,n="";for(let r=0;r<e.length;r++)e[r]&&(t=eq(e[r]))&&(n&&(n+=" "),n+=t);return n};function Rre(e,...t){let n,r,o,s=u;function u(f){const m=t.reduce((g,p)=>p(g),e());return n=Tre(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=_re(f,n);return o(f,g),g}return function(){return s(Dre.apply(null,arguments))}}const Ln=e=>{const t=n=>n[e]||[];return t.isThemeGetter=!0,t},tq=/^\[(?:(\w[\w-]*):)?(.+)\]$/i,nq=/^\((?:(\w[\w-]*):)?(.+)\)$/i,jre=/^\d+\/\d+$/,Pre=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,Mre=/\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$/,Lre=/^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/,kre=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,Ire=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,rd=e=>jre.test(e),ft=e=>!!e&&!Number.isNaN(Number(e)),Ws=e=>!!e&&Number.isInteger(Number(e)),fE=e=>e.endsWith("%")&&ft(e.slice(0,-1)),zo=e=>Pre.test(e),$re=()=>!0,Vre=e=>Mre.test(e)&&!Lre.test(e),rq=()=>!1,Bre=e=>kre.test(e),zre=e=>Ire.test(e),Ure=e=>!Le(e)&&!ke(e),qre=e=>rf(e,oq,rq),Le=e=>tq.test(e),iu=e=>rf(e,sq,Vre),mE=e=>rf(e,Yre,ft),T3=e=>rf(e,aq,rq),Hre=e=>rf(e,iq,zre),sy=e=>rf(e,lq,Bre),ke=e=>nq.test(e),Zm=e=>af(e,sq),Fre=e=>af(e,Qre),C3=e=>af(e,aq),Kre=e=>af(e,oq),Gre=e=>af(e,iq),ly=e=>af(e,lq,!0),rf=(e,t,n)=>{const r=tq.exec(e);return r?r[1]?t(r[1]):n(r[2]):!1},af=(e,t,n=!1)=>{const r=nq.exec(e);return r?r[1]?t(r[1]):n:!1},aq=e=>e==="position"||e==="percentage",iq=e=>e==="image"||e==="url",oq=e=>e==="length"||e==="size"||e==="bg-size",sq=e=>e==="length",Yre=e=>e==="number",Qre=e=>e==="family-name",lq=e=>e==="shadow",Xre=()=>{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"),_=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],C=()=>["auto","hidden","clip","visible","scroll"],j=()=>["auto","contain","none"],L=()=>[ke,Le,f],V=()=>[rd,"full","auto",...L()],B=()=>[Ws,"none","subgrid",ke,Le],z=()=>["auto",{span:["full",Ws,ke,Le]},Ws,ke,Le],q=()=>[Ws,"auto",ke,Le],F=()=>["auto","min","max","fr",ke,Le],Y=()=>["start","end","center","between","around","evenly","stretch","baseline","center-safe","end-safe"],ee=()=>["start","end","center","stretch","center-safe","end-safe"],U=()=>["auto",...L()],G=()=>[rd,"auto","full","dvw","dvh","lvw","lvh","svw","svh","min","max","fit",...L()],K=()=>[e,ke,Le],te=()=>[...P(),C3,T3,{position:[ke,Le]}],ne=()=>["no-repeat",{repeat:["","x","y","space","round"]}],I=()=>["auto","cover","contain",Kre,qre,{size:[ke,Le]}],Z=()=>[fE,Zm,iu],W=()=>["","none","full",m,ke,Le],ae=()=>["",ft,Zm,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"],ue=()=>[ft,fE,C3,T3],xe=()=>["","none",S,ke,Le],me=()=>["none",ft,ke,Le],be=()=>["none",ft,ke,Le],de=()=>[ft,ke,Le],ie=()=>[rd,"full",...L()];return{cacheSize:500,theme:{animate:["spin","ping","pulse","bounce"],aspect:["video"],blur:[zo],breakpoint:[zo],color:[$re],container:[zo],"drop-shadow":[zo],ease:["in","out","in-out"],font:[Ure],"font-weight":["thin","extralight","light","normal","medium","semibold","bold","extrabold","black"],"inset-shadow":[zo],leading:["none","tight","snug","normal","relaxed","loose"],perspective:["dramatic","near","normal","midrange","distant","none"],radius:[zo],shadow:[zo],spacing:["px",ft],text:[zo],"text-shadow":[zo],tracking:["tighter","tight","normal","wide","wider","widest"]},classGroups:{aspect:[{aspect:["auto","square",rd,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:C()}],"overflow-x":[{"overflow-x":C()}],"overflow-y":[{"overflow-y":C()}],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:[rd,"full","auto",c,...L()]}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["nowrap","wrap","wrap-reverse"]}],flex:[{flex:[ft,rd,"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:z()}],"col-start":[{"col-start":q()}],"col-end":[{"col-end":q()}],"grid-rows":[{"grid-rows":B()}],"row-start-end":[{row:z()}],"row-start":[{"row-start":q()}],"row-end":[{"row-end":q()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":F()}],"auto-rows":[{"auto-rows":F()}],gap:[{gap:L()}],"gap-x":[{"gap-x":L()}],"gap-y":[{"gap-y":L()}],"justify-content":[{justify:[...Y(),"normal"]}],"justify-items":[{"justify-items":[...ee(),"normal"]}],"justify-self":[{"justify-self":["auto",...ee()]}],"align-content":[{content:["normal",...Y()]}],"align-items":[{items:[...ee(),{baseline:["","last"]}]}],"align-self":[{self:["auto",...ee(),{baseline:["","last"]}]}],"place-content":[{"place-content":Y()}],"place-items":[{"place-items":[...ee(),"baseline"]}],"place-self":[{"place-self":["auto",...ee()]}],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:U()}],mx:[{mx:U()}],my:[{my:U()}],ms:[{ms:U()}],me:[{me:U()}],mt:[{mt:U()}],mr:[{mr:U()}],mb:[{mb:U()}],ml:[{ml:U()}],"space-x":[{"space-x":L()}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":L()}],"space-y-reverse":["space-y-reverse"],size:[{size:G()}],w:[{w:[c,"screen",...G()]}],"min-w":[{"min-w":[c,"screen","none",...G()]}],"max-w":[{"max-w":[c,"screen","none","prose",{screen:[u]},...G()]}],h:[{h:["screen","lh",...G()]}],"min-h":[{"min-h":["screen","lh","none",...G()]}],"max-h":[{"max-h":["screen","lh",...G()]}],"font-size":[{text:["base",n,Zm,iu]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:[r,ke,mE]}],"font-stretch":[{"font-stretch":["ultra-condensed","extra-condensed","condensed","semi-condensed","normal","semi-expanded","expanded","extra-expanded","ultra-expanded",fE,Le]}],"font-family":[{font:[Fre,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,mE]}],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:I()}],"bg-image":[{bg:["none",{linear:[{to:["t","tr","r","br","b","bl","l","tl"]},Ws,ke,Le],radial:["",ke,Le],conic:[Ws,ke,Le]},Gre,Hre]}],"bg-color":[{bg:K()}],"gradient-from-pos":[{from:Z()}],"gradient-via-pos":[{via:Z()}],"gradient-to-pos":[{to:Z()}],"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,Zm,iu]}],"outline-color":[{outline:K()}],shadow:[{shadow:["","none",g,ly,sy]}],"shadow-color":[{shadow:K()}],"inset-shadow":[{"inset-shadow":["none",p,ly,sy]}],"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,ly,sy]}],"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":ue()}],"mask-image-linear-to-pos":[{"mask-linear-to":ue()}],"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":ue()}],"mask-image-t-to-pos":[{"mask-t-to":ue()}],"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":ue()}],"mask-image-r-to-pos":[{"mask-r-to":ue()}],"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":ue()}],"mask-image-b-to-pos":[{"mask-b-to":ue()}],"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":ue()}],"mask-image-l-to-pos":[{"mask-l-to":ue()}],"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":ue()}],"mask-image-x-to-pos":[{"mask-x-to":ue()}],"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":ue()}],"mask-image-y-to-pos":[{"mask-y-to":ue()}],"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":ue()}],"mask-image-radial-to-pos":[{"mask-radial-to":ue()}],"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":ue()}],"mask-image-conic-to-pos":[{"mask-conic-to":ue()}],"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:I()}],"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,ly,sy]}],"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",_,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,Zm,iu,mE]}],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"]}},Wre=Rre(Xre);function $t(...e){return Wre(nt(e))}function Zre({delayDuration:e=0,...t}){return w.jsxDEV(vre,{"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)}const _3=e=>typeof e=="boolean"?`${e}`:e===0?"0":e,D3=nt,rD=(e,t)=>n=>{var r;if(t?.variants==null)return D3(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=_3(g)||_3(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 D3(e,u,f,n?.class,n?.className)},Jre=rD("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 xt({className:e,variant:t,size:n,asChild:r=!1,...o}){const s=r?gU:"button";return w.jsxDEV(s,{"data-loc":"client/src/components/ui/button.tsx:52","data-slot":"button",className:$t(Jre({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 Wt({className:e,...t}){return w.jsxDEV("div",{"data-loc":"client/src/components/ui/card.tsx:7","data-slot":"card",className:$t("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:$t("@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:$t("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 eae({className:e,...t}){return w.jsxDEV("div",{"data-loc":"client/src/components/ui/card.tsx:43","data-slot":"card-description",className:$t("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 Zt({className:e,...t}){return w.jsxDEV("div",{"data-loc":"client/src/components/ui/card.tsx:66","data-slot":"card-content",className:$t("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 tae=e=>e.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),uq=(...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 nae={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 rae=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,...nae,width:t,height:t,stroke:e,strokeWidth:r?Number(n)*24/Number(t):n,className:uq("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 st=(e,t)=>{const n=R.forwardRef(({className:r,...o},s)=>R.createElement(rae,{ref:s,iconNode:t,className:uq(`lucide-${tae(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 Ky=st("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 aae=st("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 iae=st("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 cq=st("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 oae=st("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 sae=st("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 lae=st("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 Mp=st("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 oC=st("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 m0=st("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 aD=st("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 uae=st("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 cae=st("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 dq=st("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 dae=st("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 Lp=st("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 fae=st("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 mae=st("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 pae=st("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 hae=st("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 gae=st("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 vae=st("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 yae=st("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 fq=st("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 R3=st("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 p0=st("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 bae=st("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 of=st("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 xae=st("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 wae=st("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 Nae=st("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 _u=st("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 mq=st("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 pq=st("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 Eae=st("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 hq=st("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 h0=st("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 j3=st("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 Sae=st("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 Aae=st("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 Oae=st("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 yp=st("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 Tae(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 Cae=Wb.useInsertionEffect,_ae=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u",Dae=_ae?R.useLayoutEffect:R.useEffect,Rae=Cae||Dae,gq=e=>{const t=R.useRef([e,(...n)=>t[0](...n)]).current;return Rae(()=>{t[0]=e}),t[1]},jae="popstate",iD="pushState",oD="replaceState",Pae="hashchange",P3=[jae,iD,oD,Pae],Mae=e=>{for(const t of P3)addEventListener(t,e);return()=>{for(const t of P3)removeEventListener(t,e)}},vq=(e,t)=>Jz.useSyncExternalStore(Mae,e,t),Lae=()=>location.search,kae=({ssrSearch:e=""}={})=>vq(Lae,()=>e),M3=()=>location.pathname,Iae=({ssrPath:e}={})=>vq(M3,e?()=>e:M3),$ae=(e,{replace:t=!1,state:n=null}={})=>history[t?oD:iD](n,"",e),Vae=(e={})=>[Iae(e),$ae],L3=Symbol.for("wouter_v3");if(typeof history<"u"&&typeof window[L3]>"u"){for(const e of[iD,oD]){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,L3,{value:!0})}const Bae=(e,t)=>t.toLowerCase().indexOf(e.toLowerCase())?"~"+t:t.slice(e.length)||"/",yq=(e="")=>e==="/"?"":e,zae=(e,t)=>e[0]==="~"?e.slice(1):yq(t)+e,Uae=(e="",t)=>Bae(k3(yq(e)),k3(t)),k3=e=>{try{return decodeURI(e)}catch{return e}},bq={hook:Vae,searchHook:kae,parser:Tae,base:"",ssrPath:void 0,ssrSearch:void 0,ssrContext:void 0,hrefs:e=>e},xq=R.createContext(bq),Th=()=>R.useContext(xq),wq={},Nq=R.createContext(wq),qae=()=>R.useContext(Nq),g0=e=>{const[t,n]=e.hook(e);return[Uae(e.base,t),gq((r,o)=>n(zae(r,e.base),o))]},sD=()=>g0(Th()),Eq=(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]},Hae=({children:e,...t})=>{const n=Th(),r=t.hook?bq: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(xq.Provider,{value:o,children:e})},I3=({children:e,component:t},n)=>t?R.createElement(t,{params:n}):typeof e=="function"?e(n):e,Fae=e=>{let t=R.useRef(wq);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=Th(),[s]=g0(o),[u,c,f]=n??Eq(o.parser,e,s,t),m=Fae({...qae(),...c});if(!u)return null;const g=f?R.createElement(Hae,{base:f},I3(r,m)):I3(r,m);return R.createElement(Nq.Provider,{value:m,children:g})},Kae=R.forwardRef((e,t)=>{const n=Th(),[r,o]=g0(n),{to:s="",href:u=s,onClick:c,asChild:f,children:m,className:g,replace:p,state:y,...b}=e,S=gq(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})}),sC=e=>Array.isArray(e)?e.flatMap(t=>sC(t&&t.type===R.Fragment?t.props.children:t)):[e],Gae=({children:e,location:t})=>{const n=Th(),[r]=g0(n);typeof window<"u"&&(window.__WOUTER_ROUTES__||(window.__WOUTER_ROUTES__=[]),sC(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 sC(e)){let s=0;if(R.isValidElement(o)&&(s=Eq(n.parser,o.props.path,t||r,o.props.nest))[0])return R.cloneElement(o,{match:s})}return null};function $3(){const[,e]=sD(),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(Wt,{"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(Zt,{"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(lae,{"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(xt,{"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(fae,{"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 Yae 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(h0,{"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:$t("flex items-center gap-2 px-4 py-2 rounded-lg","bg-primary text-primary-foreground","hover:opacity-90 cursor-pointer"),children:[w.jsxDEV(xae,{"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 Qae=R.createContext(void 0);function Xae({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(Qae.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 pE="focusScope.autoFocusOnMount",hE="focusScope.autoFocusOnUnmount",V3={bubbles:!1,cancelable:!0},Wae="FocusScope",v0=R.forwardRef((e,t)=>{const{loop:n=!1,trapped:r=!1,onMountAutoFocus:o,onUnmountAutoFocus:s,...u}=e,[c,f]=R.useState(null),m=to(o),g=to(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 _=new MutationObserver(T);return c&&_.observe(c,{childList:!0,subtree:!0}),()=>{document.removeEventListener("focusin",x),document.removeEventListener("focusout",N),_.disconnect()}}},[r,c,b.paused]),R.useEffect(()=>{if(c){z3.add(b);const x=document.activeElement;if(!c.contains(x)){const T=new CustomEvent(pE,V3);c.addEventListener(pE,m),c.dispatchEvent(T),T.defaultPrevented||(Zae(rie(Sq(c)),{select:!0}),document.activeElement===x&&Js(c))}return()=>{c.removeEventListener(pE,m),setTimeout(()=>{const T=new CustomEvent(hE,V3);c.addEventListener(hE,g),c.dispatchEvent(T),T.defaultPrevented||Js(x??document.body,{select:!0}),c.removeEventListener(hE,g),z3.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 _=x.currentTarget,[D,P]=Jae(_);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===_&&x.preventDefault()}},[n,r,b.paused]);return ce.jsx(pt.div,{tabIndex:-1,...u,ref:y,onKeyDown:S})});v0.displayName=Wae;function Zae(e,{select:t=!1}={}){const n=document.activeElement;for(const r of e)if(Js(r,{select:t}),document.activeElement!==n)return}function Jae(e){const t=Sq(e),n=B3(t,e),r=B3(t.reverse(),e);return[n,r]}function Sq(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 B3(e,t){for(const n of e)if(!eie(n,{upTo:t}))return n}function eie(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 tie(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&&tie(e)&&t&&e.select()}}var z3=nie();function nie(){let e=[];return{add(t){const n=e[0];t!==n&&n?.pause(),e=U3(e,t),e.unshift(t)},remove(t){e=U3(e,t),e[0]?.resume()}}}function U3(e,t){const n=[...e],r=n.indexOf(t);return r!==-1&&n.splice(r,1),n}function rie(e){return e.filter(t=>t.tagName!=="A")}var gE=0;function lD(){R.useEffect(()=>{const e=document.querySelectorAll("[data-radix-focus-guard]");return document.body.insertAdjacentElement("afterbegin",e[0]??q3()),document.body.insertAdjacentElement("beforeend",e[1]??q3()),gE++,()=>{gE===1&&document.querySelectorAll("[data-radix-focus-guard]").forEach(t=>t.remove()),gE--}},[])}function q3(){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 Aq(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 aie(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 jy="right-scroll-bar-position",Py="width-before-scroll-bar",iie="with-scroll-bars-hidden",oie="--removed-body-scroll-bar-size";function vE(e,t){return typeof e=="function"?e(t):e&&(e.current=t),e}function sie(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 lie=typeof window<"u"?R.useLayoutEffect:R.useEffect,H3=new WeakMap;function uie(e,t){var n=sie(null,function(r){return e.forEach(function(o){return vE(o,r)})});return lie(function(){var r=H3.get(n);if(r){var o=new Set(r),s=new Set(e),u=n.current;o.forEach(function(c){s.has(c)||vE(c,null)}),s.forEach(function(c){o.has(c)||vE(c,u)})}H3.set(n,e)},[e]),n}function cie(e){return e}function die(e,t){t===void 0&&(t=cie);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 fie(e){e===void 0&&(e={});var t=die(null);return t.options=Ki({async:!0,ssr:!1},e),t}var Oq=function(e){var t=e.sideCar,n=Aq(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))};Oq.isSideCarExport=!0;function mie(e,t){return e.useMedium(t),Oq}var Tq=fie(),yE=function(){},y0=R.forwardRef(function(e,t){var n=R.useRef(null),r=R.useState({onScrollCapture:yE,onWheelCapture:yE,onTouchMoveCapture:yE}),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,_=T===void 0?"div":T,D=e.gapMode,P=Aq(e,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noRelative","noIsolation","inert","allowPinchZoom","as","gapMode"]),A=y,C=uie([n,t]),j=Ki(Ki({},P),o);return R.createElement(R.Fragment,null,g&&R.createElement(A,{sideCar:Tq,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:C})):R.createElement(_,Ki({},j,{className:f,ref:C}),c))});y0.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1};y0.classNames={fullWidth:Py,zeroRight:jy};var pie=function(){if(typeof __webpack_nonce__<"u")return __webpack_nonce__};function hie(){if(!document)return null;var e=document.createElement("style");e.type="text/css";var t=pie();return t&&e.setAttribute("nonce",t),e}function gie(e,t){e.styleSheet?e.styleSheet.cssText=t:e.appendChild(document.createTextNode(t))}function vie(e){var t=document.head||document.getElementsByTagName("head")[0];t.appendChild(e)}var yie=function(){var e=0,t=null;return{add:function(n){e==0&&(t=hie())&&(gie(t,n),vie(t)),e++},remove:function(){e--,!e&&t&&(t.parentNode&&t.parentNode.removeChild(t),t=null)}}},bie=function(){var e=yie();return function(t,n){R.useEffect(function(){return e.add(t),function(){e.remove()}},[t&&n])}},Cq=function(){var e=bie(),t=function(n){var r=n.styles,o=n.dynamic;return e(r,o),null};return t},xie={left:0,top:0,right:0,gap:0},bE=function(e){return parseInt(e||"",10)||0},wie=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[bE(n),bE(r),bE(o)]},Nie=function(e){if(e===void 0&&(e="margin"),typeof window>"u")return xie;var t=wie(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])}},Eie=Cq(),vd="data-scroll-locked",Sie=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(iie,` {
overflow: hidden `).concat(r,`;
padding-right: `).concat(c,"px ").concat(r,`;
}
body[`).concat(vd,`] {
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(jy,` {
right: `).concat(c,"px ").concat(r,`;
}
.`).concat(Py,` {
margin-right: `).concat(c,"px ").concat(r,`;
}
.`).concat(jy," .").concat(jy,` {
right: 0 `).concat(r,`;
}
.`).concat(Py," .").concat(Py,` {
margin-right: 0 `).concat(r,`;
}
body[`).concat(vd,`] {
`).concat(oie,": ").concat(c,`px;
}
`)},F3=function(){var e=parseInt(document.body.getAttribute(vd)||"0",10);return isFinite(e)?e:0},Aie=function(){R.useEffect(function(){return document.body.setAttribute(vd,(F3()+1).toString()),function(){var e=F3()-1;e<=0?document.body.removeAttribute(vd):document.body.setAttribute(vd,e.toString())}},[])},Oie=function(e){var t=e.noRelative,n=e.noImportant,r=e.gapMode,o=r===void 0?"margin":r;Aie();var s=R.useMemo(function(){return Nie(o)},[o]);return R.createElement(Eie,{styles:Sie(s,!t,o,n?"":"!important")})},lC=!1;if(typeof window<"u")try{var uy=Object.defineProperty({},"passive",{get:function(){return lC=!0,!0}});window.addEventListener("test",uy,uy),window.removeEventListener("test",uy,uy)}catch{lC=!1}var ad=lC?{passive:!1}:!1,Tie=function(e){return e.tagName==="TEXTAREA"},_q=function(e,t){if(!(e instanceof Element))return!1;var n=window.getComputedStyle(e);return n[t]!=="hidden"&&!(n.overflowY===n.overflowX&&!Tie(e)&&n[t]==="visible")},Cie=function(e){return _q(e,"overflowY")},_ie=function(e){return _q(e,"overflowX")},K3=function(e,t){var n=t.ownerDocument,r=t;do{typeof ShadowRoot<"u"&&r instanceof ShadowRoot&&(r=r.host);var o=Dq(e,r);if(o){var s=Rq(e,r),u=s[1],c=s[2];if(u>c)return!0}r=r.parentNode}while(r&&r!==n.body);return!1},Die=function(e){var t=e.scrollTop,n=e.scrollHeight,r=e.clientHeight;return[t,n,r]},Rie=function(e){var t=e.scrollLeft,n=e.scrollWidth,r=e.clientWidth;return[t,n,r]},Dq=function(e,t){return e==="v"?Cie(t):_ie(t)},Rq=function(e,t){return e==="v"?Die(t):Rie(t)},jie=function(e,t){return e==="h"&&t==="rtl"?-1:1},Pie=function(e,t,n,r,o){var s=jie(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=Rq(e,c),S=b[0],x=b[1],N=b[2],T=x-N-s*S;(S||T)&&Dq(e,c)&&(p+=T,y+=S);var _=c.parentNode;c=_&&_.nodeType===Node.DOCUMENT_FRAGMENT_NODE?_.host:_}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},cy=function(e){return"changedTouches"in e?[e.changedTouches[0].clientX,e.changedTouches[0].clientY]:[0,0]},G3=function(e){return[e.deltaX,e.deltaY]},Y3=function(e){return e&&"current"in e?e.current:e},Mie=function(e,t){return e[0]===t[0]&&e[1]===t[1]},Lie=function(e){return`
.block-interactivity-`.concat(e,` {pointer-events: none;}
.allow-interactivity-`).concat(e,` {pointer-events: all;}
`)},kie=0,id=[];function Iie(e){var t=R.useRef([]),n=R.useRef([0,0]),r=R.useRef(),o=R.useState(kie++)[0],s=R.useState(Cq)[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=aie([e.lockRef.current],(e.shards||[]).map(Y3),!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=cy(x),_=n.current,D="deltaX"in x?x.deltaX:_[0]-T[0],P="deltaY"in x?x.deltaY:_[1]-T[1],A,C=x.target,j=Math.abs(D)>Math.abs(P)?"h":"v";if("touches"in x&&j==="h"&&C.type==="range")return!1;var L=K3(j,C);if(!L)return!0;if(L?A=j:(A=j==="v"?"h":"v",L=K3(j,C)),!L)return!1;if(!r.current&&"changedTouches"in x&&(D||P)&&(r.current=A),!A)return!0;var V=r.current||A;return Pie(V,N,x,V==="h"?D:P)},[]),f=R.useCallback(function(x){var N=x;if(!(!id.length||id[id.length-1]!==s)){var T="deltaY"in N?G3(N):cy(N),_=t.current.filter(function(A){return A.name===N.type&&(A.target===N.target||N.target===A.shadowParent)&&Mie(A.delta,T)})[0];if(_&&_.should){N.cancelable&&N.preventDefault();return}if(!_){var D=(u.current.shards||[]).map(Y3).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,_){var D={name:x,delta:N,target:T,should:_,shadowParent:$ie(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=cy(x),r.current=void 0},[]),p=R.useCallback(function(x){m(x.type,G3(x),x.target,c(x,e.lockRef.current))},[]),y=R.useCallback(function(x){m(x.type,cy(x),x.target,c(x,e.lockRef.current))},[]);R.useEffect(function(){return id.push(s),e.setCallbacks({onScrollCapture:p,onWheelCapture:p,onTouchMoveCapture:y}),document.addEventListener("wheel",f,ad),document.addEventListener("touchmove",f,ad),document.addEventListener("touchstart",g,ad),function(){id=id.filter(function(x){return x!==s}),document.removeEventListener("wheel",f,ad),document.removeEventListener("touchmove",f,ad),document.removeEventListener("touchstart",g,ad)}},[]);var b=e.removeScrollBar,S=e.inert;return R.createElement(R.Fragment,null,S?R.createElement(s,{styles:Lie(o)}):null,b?R.createElement(Oie,{noRelative:e.noRelative,gapMode:e.gapMode}):null)}function $ie(e){for(var t=null;e!==null;)e instanceof ShadowRoot&&(t=e.host,e=e.host),e=e.parentNode;return t}const Vie=mie(Tq,Iie);var b0=R.forwardRef(function(e,t){return R.createElement(y0,Ki({},e,{ref:t,sideCar:Vie}))});b0.classNames=y0.classNames;var Bie=function(e){if(typeof document>"u")return null;var t=Array.isArray(e)?e[0]:e;return t.ownerDocument.body},od=new WeakMap,dy=new WeakMap,fy={},xE=0,jq=function(e){return e&&(e.host||jq(e.parentNode))},zie=function(e,t){return t.map(function(n){if(e.contains(n))return n;var r=jq(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})},Uie=function(e,t,n,r){var o=zie(t,Array.isArray(e)?e:[e]);fy[n]||(fy[n]=new WeakMap);var s=fy[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=(od.get(y)||0)+1,N=(s.get(y)||0)+1;od.set(y,x),s.set(y,N),u.push(y),x===1&&S&&dy.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(),xE++,function(){u.forEach(function(p){var y=od.get(p)-1,b=s.get(p)-1;od.set(p,y),s.set(p,b),y||(dy.has(p)||p.removeAttribute(r),dy.delete(p)),b||p.removeAttribute(n)}),xE--,xE||(od=new WeakMap,od=new WeakMap,dy=new WeakMap,fy={})}},uD=function(e,t,n){n===void 0&&(n="data-aria-hidden");var r=Array.from(Array.isArray(e)?e:[e]),o=Bie(e);return o?(r.push.apply(r,Array.from(o.querySelectorAll("[aria-live], script"))),Uie(r,o,n,"aria-hidden")):function(){return null}},x0="Dialog",[Pq]=as(x0),[qie,ui]=Pq(x0),Mq=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]=Sd({prop:r,defaultProp:o??!1,onChange:s,caller:x0});return ce.jsx(qie,{scope:t,triggerRef:c,contentRef:f,contentId:Yo(),titleId:Yo(),descriptionId:Yo(),open:m,onOpenChange:g,onOpenToggle:R.useCallback(()=>g(p=>!p),[g]),modal:u,children:n})};Mq.displayName=x0;var Lq="DialogTrigger",kq=R.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,o=ui(Lq,n),s=Dt(t,o.triggerRef);return ce.jsx(pt.button,{type:"button","aria-haspopup":"dialog","aria-expanded":o.open,"aria-controls":o.contentId,"data-state":fD(o.open),...r,ref:s,onClick:Ie(e.onClick,o.onOpenToggle)})});kq.displayName=Lq;var cD="DialogPortal",[Hie,Iq]=Pq(cD,{forceMount:void 0}),$q=e=>{const{__scopeDialog:t,forceMount:n,children:r,container:o}=e,s=ui(cD,t);return ce.jsx(Hie,{scope:t,forceMount:n,children:R.Children.map(r,u=>ce.jsx(is,{present:n||s.open,children:ce.jsx(c0,{asChild:!0,container:o,children:u})}))})};$q.displayName=cD;var Gy="DialogOverlay",Vq=R.forwardRef((e,t)=>{const n=Iq(Gy,e.__scopeDialog),{forceMount:r=n.forceMount,...o}=e,s=ui(Gy,e.__scopeDialog);return s.modal?ce.jsx(is,{present:r||s.open,children:ce.jsx(Kie,{...o,ref:t})}):null});Vq.displayName=Gy;var Fie=Tu("DialogOverlay.RemoveScroll"),Kie=R.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,o=ui(Gy,n);return ce.jsx(b0,{as:Fie,allowPinchZoom:!0,shards:[o.contentRef],children:ce.jsx(pt.div,{"data-state":fD(o.open),...r,ref:t,style:{pointerEvents:"auto",...r.style}})})}),Du="DialogContent",Bq=R.forwardRef((e,t)=>{const n=Iq(Du,e.__scopeDialog),{forceMount:r=n.forceMount,...o}=e,s=ui(Du,e.__scopeDialog);return ce.jsx(is,{present:r||s.open,children:s.modal?ce.jsx(Gie,{...o,ref:t}):ce.jsx(Yie,{...o,ref:t})})});Bq.displayName=Du;var Gie=R.forwardRef((e,t)=>{const n=ui(Du,e.__scopeDialog),r=R.useRef(null),o=Dt(t,n.contentRef,r);return R.useEffect(()=>{const s=r.current;if(s)return uD(s)},[]),ce.jsx(zq,{...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())})}),Yie=R.forwardRef((e,t)=>{const n=ui(Du,e.__scopeDialog),r=R.useRef(!1),o=R.useRef(!1);return ce.jsx(zq,{...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()}})}),zq=R.forwardRef((e,t)=>{const{__scopeDialog:n,trapFocus:r,onOpenAutoFocus:o,onCloseAutoFocus:s,...u}=e,c=ui(Du,n),f=R.useRef(null),m=Dt(t,f);return lD(),ce.jsxs(ce.Fragment,{children:[ce.jsx(v0,{asChild:!0,loop:!0,trapped:r,onMountAutoFocus:o,onUnmountAutoFocus:s,children:ce.jsx(Ah,{role:"dialog",id:c.contentId,"aria-describedby":c.descriptionId,"aria-labelledby":c.titleId,"data-state":fD(c.open),...u,ref:m,onDismiss:()=>c.onOpenChange(!1)})}),ce.jsxs(ce.Fragment,{children:[ce.jsx(Xie,{titleId:c.titleId}),ce.jsx(Zie,{contentRef:f,descriptionId:c.descriptionId})]})]})}),dD="DialogTitle",Uq=R.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,o=ui(dD,n);return ce.jsx(pt.h2,{id:o.titleId,...r,ref:t})});Uq.displayName=dD;var qq="DialogDescription",Qie=R.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,o=ui(qq,n);return ce.jsx(pt.p,{id:o.descriptionId,...r,ref:t})});Qie.displayName=qq;var Hq="DialogClose",Fq=R.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,o=ui(Hq,n);return ce.jsx(pt.button,{type:"button",...r,ref:t,onClick:Ie(e.onClick,()=>o.onOpenChange(!1))})});Fq.displayName=Hq;function fD(e){return e?"open":"closed"}var Kq="DialogTitleWarning",[BSe,Gq]=ute(Kq,{contentName:Du,titleName:dD,docsSlug:"dialog"}),Xie=({titleId:e})=>{const t=Gq(Kq),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},Wie="DialogDescriptionWarning",Zie=({contentRef:e,descriptionId:t})=>{const r=`Warning: Missing \`Description\` or \`aria-describedby={undefined}\` for {${Gq(Wie).contentName}}.`;return R.useEffect(()=>{const o=e.current?.getAttribute("aria-describedby");t&&o&&(document.getElementById(t)||console.warn(r))},[r,e,t]),null},Jie=Mq,eoe=kq,toe=$q,noe=Vq,roe=Bq,aoe=Uq,ioe=Fq;const Yq=R.createContext({isComposing:()=>!1,setComposing:()=>{},justEndedComposing:()=>!1,markCompositionEnd:()=>{}}),mD=()=>R.useContext(Yq);function Ru({...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(Yq.Provider,{"data-loc":"client/src/components/ui/dialog.tsx:50",value:o,children:w.jsxDEV(Jie,{"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 kp({...e}){return w.jsxDEV(eoe,{"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 ooe({...e}){return w.jsxDEV(toe,{"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 Qq({className:e,...t}){return w.jsxDEV(noe,{"data-loc":"client/src/components/ui/dialog.tsx:79","data-slot":"dialog-overlay",className:$t("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)}Qq.displayName="DialogOverlay";function ju({className:e,children:t,showCloseButton:n=!0,onEscapeKeyDown:r,...o}){const{isComposing:s}=mD(),u=R.useCallback(c=>{if(c.isComposing||s()){c.preventDefault();return}r?.(c)},[s,r]);return w.jsxDEV(ooe,{"data-loc":"client/src/components/ui/dialog.tsx:122","data-slot":"dialog-portal",children:[w.jsxDEV(Qq,{"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(roe,{"data-loc":"client/src/components/ui/dialog.tsx:124","data-slot":"dialog-content",className:$t("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(ioe,{"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(Oae,{"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 Pu({className:e,...t}){return w.jsxDEV("div",{"data-loc":"client/src/components/ui/dialog.tsx:150","data-slot":"dialog-header",className:$t("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 Mu({className:e,...t}){return w.jsxDEV(aoe,{"data-loc":"client/src/components/ui/dialog.tsx:176","data-slot":"dialog-title",className:$t("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 my(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 Xq(e={}){const{onKeyDown:t,onCompositionStart:n,onCompositionEnd:r}=e,o=R.useRef(!1),s=R.useRef(null),u=R.useRef(null),c=my(p=>{s.current&&(clearTimeout(s.current),s.current=null),u.current&&(clearTimeout(u.current),u.current=null),o.current=!0,n?.(p)}),f=my(p=>{s.current=setTimeout(()=>{u.current=setTimeout(()=>{o.current=!1})}),r?.(p)}),m=my(p=>{if(o.current&&(p.key==="Escape"||p.key==="Enter"&&!p.shiftKey)){p.stopPropagation();return}t?.(p)}),g=my(()=>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=mD(),{onCompositionStart:c,onCompositionEnd:f,onKeyDown:m}=Xq({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:$t("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 soe="Label",Wq=R.forwardRef((e,t)=>ce.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())}}));Wq.displayName=soe;var loe=Wq;function Ct({className:e,...t}){return w.jsxDEV(loe,{"data-loc":"client/src/components/ui/label.tsx:11","data-slot":"label",className:$t("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 uoe=rD("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 coe({className:e,variant:t,...n}){return w.jsxDEV("div",{"data-loc":"client/src/components/ui/alert.tsx:28","data-slot":"alert",role:"alert",className:$t(uoe({variant:t}),e),...n},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/components/ui/alert.tsx",lineNumber:28,columnNumber:5},this)}function doe({className:e,...t}){return w.jsxDEV("div",{"data-loc":"client/src/components/ui/alert.tsx:55","data-slot":"alert-description",className:$t("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 pD(e){const t=e+"CollectionProvider",[n,r]=as(t),[o,s]=n(t,{collectionRef:{current:null},itemMap:new Map}),u=x=>{const{scope:N,children:T}=x,_=H.useRef(null),D=H.useRef(new Map).current;return ce.jsx(o,{scope:N,itemMap:D,collectionRef:_,children:T})};u.displayName=t;const c=e+"CollectionSlot",f=Tu(c),m=H.forwardRef((x,N)=>{const{scope:T,children:_}=x,D=s(c,T),P=Dt(N,D.collectionRef);return ce.jsx(f,{ref:P,children:_})});m.displayName=c;const g=e+"CollectionItemSlot",p="data-radix-collection-item",y=Tu(g),b=H.forwardRef((x,N)=>{const{scope:T,children:_,...D}=x,P=H.useRef(null),A=Dt(N,P),C=s(g,T);return H.useEffect(()=>(C.itemMap.set(P,{ref:P,...D}),()=>void C.itemMap.delete(P))),ce.jsx(y,{[p]:"",ref:A,children:_})});b.displayName=g;function S(x){const N=s(e+"CollectionConsumer",x);return H.useCallback(()=>{const _=N.collectionRef.current;if(!_)return[];const D=Array.from(_.querySelectorAll(`[${p}]`));return Array.from(N.itemMap.values()).sort((C,j)=>D.indexOf(C.ref.current)-D.indexOf(j.ref.current))},[N.collectionRef,N.itemMap])}return[{Provider:u,Slot:m,ItemSlot:b},S,r]}var foe=R.createContext(void 0);function hD(e){const t=R.useContext(foe);return e||t||"ltr"}var wE="rovingFocusGroup.onEntryFocus",moe={bubbles:!1,cancelable:!0},Ch="RovingFocusGroup",[uC,Zq,poe]=pD(Ch),[hoe,Jq]=as(Ch,[poe]),[goe,voe]=hoe(Ch),e9=R.forwardRef((e,t)=>ce.jsx(uC.Provider,{scope:e.__scopeRovingFocusGroup,children:ce.jsx(uC.Slot,{scope:e.__scopeRovingFocusGroup,children:ce.jsx(yoe,{...e,ref:t})})}));e9.displayName=Ch;var yoe=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=hD(s),[x,N]=Sd({prop:u,defaultProp:c??null,onChange:f,caller:Ch}),[T,_]=R.useState(!1),D=to(m),P=Zq(n),A=R.useRef(!1),[C,j]=R.useState(0);return R.useEffect(()=>{const L=y.current;if(L)return L.addEventListener(wE,D),()=>L.removeEventListener(wE,D)},[D]),ce.jsx(goe,{scope:n,orientation:r,dir:S,loop:o,currentTabStopId:x,onItemFocus:R.useCallback(L=>N(L),[N]),onItemShiftTab:R.useCallback(()=>_(!0),[]),onFocusableItemAdd:R.useCallback(()=>j(L=>L+1),[]),onFocusableItemRemove:R.useCallback(()=>j(L=>L-1),[]),children:ce.jsx(pt.div,{tabIndex:T||C===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(wE,moe);if(L.currentTarget.dispatchEvent(B),!B.defaultPrevented){const z=P().filter(U=>U.focusable),q=z.find(U=>U.active),F=z.find(U=>U.id===x),ee=[q,F,...z].filter(Boolean).map(U=>U.ref.current);r9(ee,g)}}A.current=!1}),onBlur:Ie(e.onBlur,()=>_(!1))})})}),t9="RovingFocusGroupItem",n9=R.forwardRef((e,t)=>{const{__scopeRovingFocusGroup:n,focusable:r=!0,active:o=!1,tabStopId:s,children:u,...c}=e,f=Yo(),m=s||f,g=voe(t9,n),p=g.currentTabStopId===m,y=Zq(n),{onFocusableItemAdd:b,onFocusableItemRemove:S,currentTabStopId:x}=g;return R.useEffect(()=>{if(r)return b(),()=>S()},[r,b,S]),ce.jsx(uC.ItemSlot,{scope:n,id:m,focusable:r,active:o,children:ce.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=woe(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?Noe(D,P+1):D.slice(P+1)}setTimeout(()=>r9(D))}}),children:typeof u=="function"?u({isCurrentTabStop:p,hasTabStop:x!=null}):u})})});n9.displayName=t9;var boe={ArrowLeft:"prev",ArrowUp:"prev",ArrowRight:"next",ArrowDown:"next",PageUp:"first",Home:"first",PageDown:"last",End:"last"};function xoe(e,t){return t!=="rtl"?e:e==="ArrowLeft"?"ArrowRight":e==="ArrowRight"?"ArrowLeft":e}function woe(e,t,n){const r=xoe(e.key,n);if(!(t==="vertical"&&["ArrowLeft","ArrowRight"].includes(r))&&!(t==="horizontal"&&["ArrowUp","ArrowDown"].includes(r)))return boe[r]}function r9(e,t=!1){const n=document.activeElement;for(const r of e)if(r===n||(r.focus({preventScroll:t}),document.activeElement!==n))return}function Noe(e,t){return e.map((n,r)=>e[(t+r)%e.length])}var Eoe=e9,Soe=n9,cC=["Enter"," "],Aoe=["ArrowDown","PageUp","Home"],a9=["ArrowUp","PageDown","End"],Ooe=[...Aoe,...a9],Toe={ltr:[...cC,"ArrowRight"],rtl:[...cC,"ArrowLeft"]},Coe={ltr:["ArrowLeft"],rtl:["ArrowRight"]},_h="Menu",[Ip,_oe,Doe]=pD(_h),[Ku,i9]=as(_h,[Doe,nf,Jq]),w0=nf(),o9=Jq(),[Roe,Gu]=Ku(_h),[joe,Dh]=Ku(_h),s9=e=>{const{__scopeMenu:t,open:n=!1,children:r,dir:o,onOpenChange:s,modal:u=!0}=e,c=w0(t),[f,m]=R.useState(null),g=R.useRef(!1),p=to(s),y=hD(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})}},[]),ce.jsx(qU,{...c,children:ce.jsx(Roe,{scope:t,open:n,onOpenChange:p,content:f,onContentChange:m,children:ce.jsx(joe,{scope:t,onClose:R.useCallback(()=>p(!1),[p]),isUsingKeyboardRef:g,dir:y,modal:u,children:r})})})};s9.displayName=_h;var Poe="MenuAnchor",gD=R.forwardRef((e,t)=>{const{__scopeMenu:n,...r}=e,o=w0(n);return ce.jsx(Z_,{...o,...r,ref:t})});gD.displayName=Poe;var vD="MenuPortal",[Moe,l9]=Ku(vD,{forceMount:void 0}),u9=e=>{const{__scopeMenu:t,forceMount:n,children:r,container:o}=e,s=Gu(vD,t);return ce.jsx(Moe,{scope:t,forceMount:n,children:ce.jsx(is,{present:n||s.open,children:ce.jsx(c0,{asChild:!0,container:o,children:r})})})};u9.displayName=vD;var ka="MenuContent",[Loe,yD]=Ku(ka),c9=R.forwardRef((e,t)=>{const n=l9(ka,e.__scopeMenu),{forceMount:r=n.forceMount,...o}=e,s=Gu(ka,e.__scopeMenu),u=Dh(ka,e.__scopeMenu);return ce.jsx(Ip.Provider,{scope:e.__scopeMenu,children:ce.jsx(is,{present:r||s.open,children:ce.jsx(Ip.Slot,{scope:e.__scopeMenu,children:u.modal?ce.jsx(koe,{...o,ref:t}):ce.jsx(Ioe,{...o,ref:t})})})})}),koe=R.forwardRef((e,t)=>{const n=Gu(ka,e.__scopeMenu),r=R.useRef(null),o=Dt(t,r);return R.useEffect(()=>{const s=r.current;if(s)return uD(s)},[]),ce.jsx(bD,{...e,ref:o,trapFocus:n.open,disableOutsidePointerEvents:n.open,disableOutsideScroll:!0,onFocusOutside:Ie(e.onFocusOutside,s=>s.preventDefault(),{checkForDefaultPrevented:!1}),onDismiss:()=>n.onOpenChange(!1)})}),Ioe=R.forwardRef((e,t)=>{const n=Gu(ka,e.__scopeMenu);return ce.jsx(bD,{...e,ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,disableOutsideScroll:!1,onDismiss:()=>n.onOpenChange(!1)})}),$oe=Tu("MenuContent.ScrollLock"),bD=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=Gu(ka,n),T=Dh(ka,n),_=w0(n),D=o9(n),P=_oe(n),[A,C]=R.useState(null),j=R.useRef(null),L=Dt(t,j,N.onContentChange),V=R.useRef(0),B=R.useRef(""),z=R.useRef(0),q=R.useRef(null),F=R.useRef("right"),Y=R.useRef(0),ee=S?b0:R.Fragment,U=S?{as:$oe,allowPinchZoom:!0}:void 0,G=te=>{const ne=B.current+te,I=P().filter(ue=>!ue.disabled),Z=document.activeElement,W=I.find(ue=>ue.ref.current===Z)?.textValue,ae=I.map(ue=>ue.textValue),ge=Xoe(ae,ne,W),Ne=I.find(ue=>ue.textValue===ge)?.ref.current;(function ue(xe){B.current=xe,window.clearTimeout(V.current),xe!==""&&(V.current=window.setTimeout(()=>ue(""),1e3))})(ne),Ne&&setTimeout(()=>Ne.focus())};R.useEffect(()=>()=>window.clearTimeout(V.current),[]),lD();const K=R.useCallback(te=>F.current===q.current?.side&&Zoe(te,q.current?.area),[]);return ce.jsx(Loe,{scope:n,searchRef:B,onItemEnter:R.useCallback(te=>{K(te)&&te.preventDefault()},[K]),onItemLeave:R.useCallback(te=>{K(te)||(j.current?.focus(),C(null))},[K]),onTriggerLeave:R.useCallback(te=>{K(te)&&te.preventDefault()},[K]),pointerGraceTimerRef:z,onPointerGraceIntentChange:R.useCallback(te=>{q.current=te},[]),children:ce.jsx(ee,{...U,children:ce.jsx(v0,{asChild:!0,trapped:o,onMountAutoFocus:Ie(s,te=>{te.preventDefault(),j.current?.focus({preventScroll:!0})}),onUnmountAutoFocus:u,children:ce.jsx(Ah,{asChild:!0,disableOutsidePointerEvents:c,onEscapeKeyDown:m,onPointerDownOutside:g,onFocusOutside:p,onInteractOutside:y,onDismiss:b,children:ce.jsx(Eoe,{asChild:!0,...D,dir:T.dir,orientation:"vertical",loop:r,currentTabStopId:A,onCurrentTabStopIdChange:C,onEntryFocus:Ie(f,te=>{T.isUsingKeyboardRef.current||te.preventDefault()}),preventScrollOnEntryFocus:!0,children:ce.jsx(J_,{role:"menu","aria-orientation":"vertical","data-state":O9(N.open),"data-radix-menu-content":"",dir:T.dir,..._,...x,ref:L,style:{outline:"none",...x.style},onKeyDown:Ie(x.onKeyDown,te=>{const I=te.target.closest("[data-radix-menu-content]")===te.currentTarget,Z=te.ctrlKey||te.altKey||te.metaKey,W=te.key.length===1;I&&(te.key==="Tab"&&te.preventDefault(),!Z&&W&&G(te.key));const ae=j.current;if(te.target!==ae||!Ooe.includes(te.key))return;te.preventDefault();const Ne=P().filter(ue=>!ue.disabled).map(ue=>ue.ref.current);a9.includes(te.key)&&Ne.reverse(),Yoe(Ne)}),onBlur:Ie(e.onBlur,te=>{te.currentTarget.contains(te.target)||(window.clearTimeout(V.current),B.current="")}),onPointerMove:Ie(e.onPointerMove,$p(te=>{const ne=te.target,I=Y.current!==te.clientX;if(te.currentTarget.contains(ne)&&I){const Z=te.clientX>Y.current?"right":"left";F.current=Z,Y.current=te.clientX}}))})})})})})})});c9.displayName=ka;var Voe="MenuGroup",xD=R.forwardRef((e,t)=>{const{__scopeMenu:n,...r}=e;return ce.jsx(pt.div,{role:"group",...r,ref:t})});xD.displayName=Voe;var Boe="MenuLabel",d9=R.forwardRef((e,t)=>{const{__scopeMenu:n,...r}=e;return ce.jsx(pt.div,{...r,ref:t})});d9.displayName=Boe;var Yy="MenuItem",Q3="menu.itemSelect",N0=R.forwardRef((e,t)=>{const{disabled:n=!1,onSelect:r,...o}=e,s=R.useRef(null),u=Dh(Yy,e.__scopeMenu),c=yD(Yy,e.__scopeMenu),f=Dt(t,s),m=R.useRef(!1),g=()=>{const p=s.current;if(!n&&p){const y=new CustomEvent(Q3,{bubbles:!0,cancelable:!0});p.addEventListener(Q3,b=>r?.(b),{once:!0}),yU(p,y),y.defaultPrevented?m.current=!1:u.onClose()}};return ce.jsx(f9,{...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===" "||cC.includes(p.key)&&(p.currentTarget.click(),p.preventDefault())})})});N0.displayName=Yy;var f9=R.forwardRef((e,t)=>{const{__scopeMenu:n,disabled:r=!1,textValue:o,...s}=e,u=yD(Yy,n),c=o9(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]),ce.jsx(Ip.ItemSlot,{scope:n,disabled:r,textValue:o??y,children:ce.jsx(Soe,{asChild:!0,...c,focusable:!r,children:ce.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,$p(S=>{r?u.onItemLeave(S):(u.onItemEnter(S),S.defaultPrevented||S.currentTarget.focus({preventScroll:!0}))})),onPointerLeave:Ie(e.onPointerLeave,$p(S=>u.onItemLeave(S))),onFocus:Ie(e.onFocus,()=>p(!0)),onBlur:Ie(e.onBlur,()=>p(!1))})})})}),zoe="MenuCheckboxItem",m9=R.forwardRef((e,t)=>{const{checked:n=!1,onCheckedChange:r,...o}=e;return ce.jsx(y9,{scope:e.__scopeMenu,checked:n,children:ce.jsx(N0,{role:"menuitemcheckbox","aria-checked":Qy(n)?"mixed":n,...o,ref:t,"data-state":ND(n),onSelect:Ie(o.onSelect,()=>r?.(Qy(n)?!0:!n),{checkForDefaultPrevented:!1})})})});m9.displayName=zoe;var p9="MenuRadioGroup",[Uoe,qoe]=Ku(p9,{value:void 0,onValueChange:()=>{}}),h9=R.forwardRef((e,t)=>{const{value:n,onValueChange:r,...o}=e,s=to(r);return ce.jsx(Uoe,{scope:e.__scopeMenu,value:n,onValueChange:s,children:ce.jsx(xD,{...o,ref:t})})});h9.displayName=p9;var g9="MenuRadioItem",v9=R.forwardRef((e,t)=>{const{value:n,...r}=e,o=qoe(g9,e.__scopeMenu),s=n===o.value;return ce.jsx(y9,{scope:e.__scopeMenu,checked:s,children:ce.jsx(N0,{role:"menuitemradio","aria-checked":s,...r,ref:t,"data-state":ND(s),onSelect:Ie(r.onSelect,()=>o.onValueChange?.(n),{checkForDefaultPrevented:!1})})})});v9.displayName=g9;var wD="MenuItemIndicator",[y9,Hoe]=Ku(wD,{checked:!1}),b9=R.forwardRef((e,t)=>{const{__scopeMenu:n,forceMount:r,...o}=e,s=Hoe(wD,n);return ce.jsx(is,{present:r||Qy(s.checked)||s.checked===!0,children:ce.jsx(pt.span,{...o,ref:t,"data-state":ND(s.checked)})})});b9.displayName=wD;var Foe="MenuSeparator",x9=R.forwardRef((e,t)=>{const{__scopeMenu:n,...r}=e;return ce.jsx(pt.div,{role:"separator","aria-orientation":"horizontal",...r,ref:t})});x9.displayName=Foe;var Koe="MenuArrow",w9=R.forwardRef((e,t)=>{const{__scopeMenu:n,...r}=e,o=w0(n);return ce.jsx(eD,{...o,...r,ref:t})});w9.displayName=Koe;var Goe="MenuSub",[zSe,N9]=Ku(Goe),up="MenuSubTrigger",E9=R.forwardRef((e,t)=>{const n=Gu(up,e.__scopeMenu),r=Dh(up,e.__scopeMenu),o=N9(up,e.__scopeMenu),s=yD(up,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]),ce.jsx(gD,{asChild:!0,...m,children:ce.jsx(f9,{id:o.triggerId,"aria-haspopup":"menu","aria-expanded":n.open,"aria-controls":o.contentId,"data-state":O9(n.open),...e,ref:i0(t,o.onTriggerChange),onClick:p=>{e.onClick?.(p),!(e.disabled||p.defaultPrevented)&&(p.currentTarget.focus(),n.open||n.onOpenChange(!0))},onPointerMove:Ie(e.onPointerMove,$p(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,$p(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===" "||Toe[r.dir].includes(p.key)&&(n.onOpenChange(!0),n.content?.focus(),p.preventDefault())})})})});E9.displayName=up;var S9="MenuSubContent",A9=R.forwardRef((e,t)=>{const n=l9(ka,e.__scopeMenu),{forceMount:r=n.forceMount,...o}=e,s=Gu(ka,e.__scopeMenu),u=Dh(ka,e.__scopeMenu),c=N9(S9,e.__scopeMenu),f=R.useRef(null),m=Dt(t,f);return ce.jsx(Ip.Provider,{scope:e.__scopeMenu,children:ce.jsx(is,{present:r||s.open,children:ce.jsx(Ip.Slot,{scope:e.__scopeMenu,children:ce.jsx(bD,{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=Coe[u.dir].includes(g.key);p&&y&&(s.onOpenChange(!1),c.trigger?.focus(),g.preventDefault())})})})})})});A9.displayName=S9;function O9(e){return e?"open":"closed"}function Qy(e){return e==="indeterminate"}function ND(e){return Qy(e)?"indeterminate":e?"checked":"unchecked"}function Yoe(e){const t=document.activeElement;for(const n of e)if(n===t||(n.focus(),document.activeElement!==t))return}function Qoe(e,t){return e.map((n,r)=>e[(t+r)%e.length])}function Xoe(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=Qoe(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 Woe(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 Zoe(e,t){if(!t)return!1;const n={x:e.clientX,y:e.clientY};return Woe(n,t)}function $p(e){return t=>t.pointerType==="mouse"?e(t):void 0}var Joe=s9,ese=gD,tse=u9,nse=c9,rse=xD,ase=d9,ise=N0,ose=m9,sse=h9,lse=v9,use=b9,cse=x9,dse=w9,fse=E9,mse=A9,E0="DropdownMenu",[pse]=as(E0,[i9]),Pr=i9(),[hse,T9]=pse(E0),C9=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]=Sd({prop:o,defaultProp:s??!1,onChange:u,caller:E0});return ce.jsx(hse,{scope:t,triggerId:Yo(),triggerRef:m,contentId:Yo(),open:g,onOpenChange:p,onOpenToggle:R.useCallback(()=>p(y=>!y),[p]),modal:c,children:ce.jsx(Joe,{...f,open:g,onOpenChange:p,dir:r,modal:c,children:n})})};C9.displayName=E0;var _9="DropdownMenuTrigger",D9=R.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,disabled:r=!1,...o}=e,s=T9(_9,n),u=Pr(n);return ce.jsx(ese,{asChild:!0,...u,children:ce.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:i0(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())})})})});D9.displayName=_9;var gse="DropdownMenuPortal",R9=e=>{const{__scopeDropdownMenu:t,...n}=e,r=Pr(t);return ce.jsx(tse,{...r,...n})};R9.displayName=gse;var j9="DropdownMenuContent",P9=R.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=T9(j9,n),s=Pr(n),u=R.useRef(!1);return ce.jsx(nse,{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)"}})});P9.displayName=j9;var vse="DropdownMenuGroup",yse=R.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=Pr(n);return ce.jsx(rse,{...o,...r,ref:t})});yse.displayName=vse;var bse="DropdownMenuLabel",M9=R.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=Pr(n);return ce.jsx(ase,{...o,...r,ref:t})});M9.displayName=bse;var xse="DropdownMenuItem",L9=R.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=Pr(n);return ce.jsx(ise,{...o,...r,ref:t})});L9.displayName=xse;var wse="DropdownMenuCheckboxItem",Nse=R.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=Pr(n);return ce.jsx(ose,{...o,...r,ref:t})});Nse.displayName=wse;var Ese="DropdownMenuRadioGroup",Sse=R.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=Pr(n);return ce.jsx(sse,{...o,...r,ref:t})});Sse.displayName=Ese;var Ase="DropdownMenuRadioItem",Ose=R.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=Pr(n);return ce.jsx(lse,{...o,...r,ref:t})});Ose.displayName=Ase;var Tse="DropdownMenuItemIndicator",Cse=R.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=Pr(n);return ce.jsx(use,{...o,...r,ref:t})});Cse.displayName=Tse;var _se="DropdownMenuSeparator",k9=R.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=Pr(n);return ce.jsx(cse,{...o,...r,ref:t})});k9.displayName=_se;var Dse="DropdownMenuArrow",Rse=R.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=Pr(n);return ce.jsx(dse,{...o,...r,ref:t})});Rse.displayName=Dse;var jse="DropdownMenuSubTrigger",Pse=R.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=Pr(n);return ce.jsx(fse,{...o,...r,ref:t})});Pse.displayName=jse;var Mse="DropdownMenuSubContent",Lse=R.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=Pr(n);return ce.jsx(mse,{...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)"}})});Lse.displayName=Mse;var kse=C9,Ise=D9,$se=R9,Vse=P9,Bse=M9,zse=L9,Use=k9;function qse({...e}){return w.jsxDEV(kse,{"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 Hse({...e}){return w.jsxDEV(Ise,{"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 Fse({className:e,sideOffset:t=4,...n}){return w.jsxDEV($se,{"data-loc":"client/src/components/ui/dropdown-menu.tsx:38",children:w.jsxDEV(Vse,{"data-loc":"client/src/components/ui/dropdown-menu.tsx:39","data-slot":"dropdown-menu-content",sideOffset:t,className:$t("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 Kse({className:e,inset:t,variant:n="default",...r}){return w.jsxDEV(zse,{"data-loc":"client/src/components/ui/dropdown-menu.tsx:70","data-slot":"dropdown-menu-item","data-inset":t,"data-variant":n,className:$t("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 Gse({className:e,inset:t,...n}){return w.jsxDEV(Bse,{"data-loc":"client/src/components/ui/dropdown-menu.tsx:152","data-slot":"dropdown-menu-label","data-inset":t,className:$t("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 Yse({className:e,...t}){return w.jsxDEV(Use,{"data-loc":"client/src/components/ui/dropdown-menu.tsx:169","data-slot":"dropdown-menu-separator",className:$t("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 py=[{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 I9({variant:e="icon",className:t}){const{i18n:n,t:r}=q_(),o=py.find(u=>u.code===n.language)||py[0],s=u=>{const c=py.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(qse,{"data-loc":"client/src/components/LanguageSwitcher.tsx:46",children:[w.jsxDEV(Hse,{"data-loc":"client/src/components/LanguageSwitcher.tsx:47",asChild:!0,children:w.jsxDEV(xt,{"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(Lp,{"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(Fse,{"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(Gse,{"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(Yse,{"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),py.map(u=>w.jsxDEV(Kse,{"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 Qse(){const[,e]=sD(),{t}=q_(),[n,r]=R.useState(""),[o,s]=R.useState(""),[u,c]=R.useState(""),f=_t.nacAuth.login.useMutation({onSuccess:()=>{e("/")},onError:g=>{c(g.message||t("auth.loginFailed"))}}),m=g=>{if(g.preventDefault(),c(""),!n||!o){c(t("auth.loginFailed"));return}f.mutate({email:n,password:o})};return w.jsxDEV("div",{"data-loc":"client/src/pages/Login.tsx:40",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:42",className:"absolute inset-0 overflow-hidden pointer-events-none",children:[w.jsxDEV("div",{"data-loc":"client/src/pages/Login.tsx:43",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:43,columnNumber:9},this),w.jsxDEV("div",{"data-loc":"client/src/pages/Login.tsx:45",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:45,columnNumber:9},this),w.jsxDEV("div",{"data-loc":"client/src/pages/Login.tsx:47",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:47,columnNumber:9},this)]},void 0,!0,{fileName:"/home/ubuntu/nac-admin/client/src/pages/Login.tsx",lineNumber:42,columnNumber:7},this),w.jsxDEV("div",{"data-loc":"client/src/pages/Login.tsx:52",className:"absolute top-4 right-4 z-20",children:w.jsxDEV(I9,{"data-loc":"client/src/pages/Login.tsx:53",variant:"full"},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/Login.tsx",lineNumber:53,columnNumber:9},this)},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/Login.tsx",lineNumber:52,columnNumber:7},this),w.jsxDEV("div",{"data-loc":"client/src/pages/Login.tsx:56",className:"w-full max-w-md relative z-10",children:[w.jsxDEV("div",{"data-loc":"client/src/pages/Login.tsx:58",className:"text-center mb-8",children:[w.jsxDEV("div",{"data-loc":"client/src/pages/Login.tsx:59",className:"inline-flex items-center justify-center w-16 h-16 rounded-2xl nac-gradient mb-4 shadow-lg",children:w.jsxDEV(_u,{"data-loc":"client/src/pages/Login.tsx:60",className:"w-8 h-8 text-white"},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/Login.tsx",lineNumber:60,columnNumber:13},this)},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/Login.tsx",lineNumber:59,columnNumber:11},this),w.jsxDEV("h1",{"data-loc":"client/src/pages/Login.tsx:62",className:"text-3xl font-bold nac-gradient-text",children:t("nav.systemTitle")},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/Login.tsx",lineNumber:62,columnNumber:11},this),w.jsxDEV("p",{"data-loc":"client/src/pages/Login.tsx:63",className:"text-muted-foreground mt-2 text-sm",children:t("nav.systemSubtitle")},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/60 text-xs mt-1",children:"NewAssetChain Knowledge Engine"},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/Login.tsx",lineNumber:64,columnNumber:11},this)]},void 0,!0,{fileName:"/home/ubuntu/nac-admin/client/src/pages/Login.tsx",lineNumber:58,columnNumber:9},this),w.jsxDEV(Wt,{"data-loc":"client/src/pages/Login.tsx:67",className:"border-border/50 shadow-2xl",children:[w.jsxDEV(ri,{"data-loc":"client/src/pages/Login.tsx:68",className:"pb-4",children:[w.jsxDEV(ai,{"data-loc":"client/src/pages/Login.tsx:69",className:"text-lg font-semibold",children:t("auth.login")},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/Login.tsx",lineNumber:69,columnNumber:13},this),w.jsxDEV(eae,{"data-loc":"client/src/pages/Login.tsx:70",className:"text-sm",children:t("auth.loginSubtitle")},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/Login.tsx",lineNumber:70,columnNumber:13},this)]},void 0,!0,{fileName:"/home/ubuntu/nac-admin/client/src/pages/Login.tsx",lineNumber:68,columnNumber:11},this),w.jsxDEV(Zt,{"data-loc":"client/src/pages/Login.tsx:74",children:[w.jsxDEV("form",{"data-loc":"client/src/pages/Login.tsx:75",onSubmit:m,className:"space-y-4",children:[w.jsxDEV("div",{"data-loc":"client/src/pages/Login.tsx:76",className:"space-y-2",children:[w.jsxDEV(Ct,{"data-loc":"client/src/pages/Login.tsx:77",htmlFor:"email",className:"text-sm font-medium",children:t("auth.email")},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/Login.tsx",lineNumber:77,columnNumber:17},this),w.jsxDEV("div",{"data-loc":"client/src/pages/Login.tsx:78",className:"relative",children:[w.jsxDEV(yae,{"data-loc":"client/src/pages/Login.tsx:79",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:79,columnNumber:19},this),w.jsxDEV(Qn,{"data-loc":"client/src/pages/Login.tsx:80",id:"email",type:"email",placeholder:"admin@newassetchain.io",value:n,onChange:g=>r(g.target.value),className:"pl-10 bg-input border-border/50 focus:border-primary",disabled:f.isPending,autoComplete:"email"},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/Login.tsx",lineNumber:80,columnNumber:19},this)]},void 0,!0,{fileName:"/home/ubuntu/nac-admin/client/src/pages/Login.tsx",lineNumber:78,columnNumber:17},this)]},void 0,!0,{fileName:"/home/ubuntu/nac-admin/client/src/pages/Login.tsx",lineNumber:76,columnNumber:15},this),w.jsxDEV("div",{"data-loc":"client/src/pages/Login.tsx:93",className:"space-y-2",children:[w.jsxDEV(Ct,{"data-loc":"client/src/pages/Login.tsx:94",htmlFor:"password",className:"text-sm font-medium",children:t("auth.password")},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/Login.tsx",lineNumber:94,columnNumber:17},this),w.jsxDEV("div",{"data-loc":"client/src/pages/Login.tsx:95",className:"relative",children:[w.jsxDEV(gae,{"data-loc":"client/src/pages/Login.tsx:96",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:96,columnNumber:19},this),w.jsxDEV(Qn,{"data-loc":"client/src/pages/Login.tsx:97",id:"password",type:"password",placeholder:"••••••••",value:o,onChange:g=>s(g.target.value),className:"pl-10 bg-input border-border/50 focus:border-primary",disabled:f.isPending,autoComplete:"current-password"},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/Login.tsx",lineNumber:97,columnNumber:19},this)]},void 0,!0,{fileName:"/home/ubuntu/nac-admin/client/src/pages/Login.tsx",lineNumber:95,columnNumber:17},this)]},void 0,!0,{fileName:"/home/ubuntu/nac-admin/client/src/pages/Login.tsx",lineNumber:93,columnNumber:15},this),u&&w.jsxDEV(coe,{"data-loc":"client/src/pages/Login.tsx:111",variant:"destructive",className:"py-2",children:w.jsxDEV(doe,{"data-loc":"client/src/pages/Login.tsx:112",className:"text-sm",children:u},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/Login.tsx",lineNumber:112,columnNumber:19},this)},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/Login.tsx",lineNumber:111,columnNumber:17},this),w.jsxDEV(xt,{"data-loc":"client/src/pages/Login.tsx:116",type:"submit",className:"w-full nac-gradient text-white font-medium h-10 mt-2",disabled:f.isPending,children:f.isPending?w.jsxDEV(w.Fragment,{children:[w.jsxDEV(hae,{"data-loc":"client/src/pages/Login.tsx:122",className:"w-4 h-4 mr-2 animate-spin"},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/Login.tsx",lineNumber:122,columnNumber:21},this),t("auth.loggingIn")]},void 0,!0,{fileName:"/home/ubuntu/nac-admin/client/src/pages/Login.tsx",lineNumber:122,columnNumber:19},this):t("auth.loginButton")},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/Login.tsx",lineNumber:116,columnNumber:15},this)]},void 0,!0,{fileName:"/home/ubuntu/nac-admin/client/src/pages/Login.tsx",lineNumber:75,columnNumber:13},this),w.jsxDEV("div",{"data-loc":"client/src/pages/Login.tsx:129",className:"mt-6 pt-4 border-t border-border/30",children:w.jsxDEV("div",{"data-loc":"client/src/pages/Login.tsx:130",className:"flex items-center gap-2 text-xs text-muted-foreground/60",children:[w.jsxDEV(_u,{"data-loc":"client/src/pages/Login.tsx:131",className:"w-3 h-3"},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/Login.tsx",lineNumber:131,columnNumber:17},this),w.jsxDEV("span",{"data-loc":"client/src/pages/Login.tsx:132",children:t("auth.authNotice")},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/Login.tsx",lineNumber:132,columnNumber:17},this)]},void 0,!0,{fileName:"/home/ubuntu/nac-admin/client/src/pages/Login.tsx",lineNumber:130,columnNumber:15},this)},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/Login.tsx",lineNumber:129,columnNumber:13},this)]},void 0,!0,{fileName:"/home/ubuntu/nac-admin/client/src/pages/Login.tsx",lineNumber:74,columnNumber:11},this)]},void 0,!0,{fileName:"/home/ubuntu/nac-admin/client/src/pages/Login.tsx",lineNumber:67,columnNumber:9},this),w.jsxDEV("p",{"data-loc":"client/src/pages/Login.tsx:138",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:138,columnNumber:9},this)]},void 0,!0,{fileName:"/home/ubuntu/nac-admin/client/src/pages/Login.tsx",lineNumber:56,columnNumber:7},this)]},void 0,!0,{fileName:"/home/ubuntu/nac-admin/client/src/pages/Login.tsx",lineNumber:40,columnNumber:5},this)}const Xse=rD("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 sf({className:e,variant:t,asChild:n=!1,...r}){const o=n?gU:"span";return w.jsxDEV(o,{"data-loc":"client/src/components/ui/badge.tsx:38","data-slot":"badge",className:$t(Xse({variant:t}),e),...r},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/components/ui/badge.tsx",lineNumber:38,columnNumber:5},this)}var NE,X3;function Kr(){if(X3)return NE;X3=1;var e=Array.isArray;return NE=e,NE}var EE,W3;function $9(){if(W3)return EE;W3=1;var e=typeof Wv=="object"&&Wv&&Wv.Object===Object&&Wv;return EE=e,EE}var SE,Z3;function so(){if(Z3)return SE;Z3=1;var e=$9(),t=typeof self=="object"&&self&&self.Object===Object&&self,n=e||t||Function("return this")();return SE=n,SE}var AE,J3;function Rh(){if(J3)return AE;J3=1;var e=so(),t=e.Symbol;return AE=t,AE}var OE,e$;function Wse(){if(e$)return OE;e$=1;var e=Rh(),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 OE=s,OE}var TE,t$;function Zse(){if(t$)return TE;t$=1;var e=Object.prototype,t=e.toString;function n(r){return t.call(r)}return TE=n,TE}var CE,n$;function os(){if(n$)return CE;n$=1;var e=Rh(),t=Wse(),n=Zse(),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 CE=u,CE}var _E,r$;function ss(){if(r$)return _E;r$=1;function e(t){return t!=null&&typeof t=="object"}return _E=e,_E}var DE,a$;function lf(){if(a$)return DE;a$=1;var e=os(),t=ss(),n="[object Symbol]";function r(o){return typeof o=="symbol"||t(o)&&e(o)==n}return DE=r,DE}var RE,i$;function ED(){if(i$)return RE;i$=1;var e=Kr(),t=lf(),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 RE=o,RE}var jE,o$;function ml(){if(o$)return jE;o$=1;function e(t){var n=typeof t;return t!=null&&(n=="object"||n=="function")}return jE=e,jE}var PE,s$;function SD(){if(s$)return PE;s$=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 PE=u,PE}var ME,l$;function Jse(){if(l$)return ME;l$=1;var e=so(),t=e["__core-js_shared__"];return ME=t,ME}var LE,u$;function ele(){if(u$)return LE;u$=1;var e=Jse(),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 LE=n,LE}var kE,c$;function V9(){if(c$)return kE;c$=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 kE=n,kE}var IE,d$;function tle(){if(d$)return IE;d$=1;var e=SD(),t=ele(),n=ml(),r=V9(),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 IE=p,IE}var $E,f$;function nle(){if(f$)return $E;f$=1;function e(t,n){return t?.[n]}return $E=e,$E}var VE,m$;function Yu(){if(m$)return VE;m$=1;var e=tle(),t=nle();function n(r,o){var s=t(r,o);return e(s)?s:void 0}return VE=n,VE}var BE,p$;function S0(){if(p$)return BE;p$=1;var e=Yu(),t=e(Object,"create");return BE=t,BE}var zE,h$;function rle(){if(h$)return zE;h$=1;var e=S0();function t(){this.__data__=e?e(null):{},this.size=0}return zE=t,zE}var UE,g$;function ale(){if(g$)return UE;g$=1;function e(t){var n=this.has(t)&&delete this.__data__[t];return this.size-=n?1:0,n}return UE=e,UE}var qE,v$;function ile(){if(v$)return qE;v$=1;var e=S0(),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 qE=o,qE}var HE,y$;function ole(){if(y$)return HE;y$=1;var e=S0(),t=Object.prototype,n=t.hasOwnProperty;function r(o){var s=this.__data__;return e?s[o]!==void 0:n.call(s,o)}return HE=r,HE}var FE,b$;function sle(){if(b$)return FE;b$=1;var e=S0(),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 FE=n,FE}var KE,x$;function lle(){if(x$)return KE;x$=1;var e=rle(),t=ale(),n=ile(),r=ole(),o=sle();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,KE=s,KE}var GE,w$;function ule(){if(w$)return GE;w$=1;function e(){this.__data__=[],this.size=0}return GE=e,GE}var YE,N$;function AD(){if(N$)return YE;N$=1;function e(t,n){return t===n||t!==t&&n!==n}return YE=e,YE}var QE,E$;function A0(){if(E$)return QE;E$=1;var e=AD();function t(n,r){for(var o=n.length;o--;)if(e(n[o][0],r))return o;return-1}return QE=t,QE}var XE,S$;function cle(){if(S$)return XE;S$=1;var e=A0(),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 XE=r,XE}var WE,A$;function dle(){if(A$)return WE;A$=1;var e=A0();function t(n){var r=this.__data__,o=e(r,n);return o<0?void 0:r[o][1]}return WE=t,WE}var ZE,O$;function fle(){if(O$)return ZE;O$=1;var e=A0();function t(n){return e(this.__data__,n)>-1}return ZE=t,ZE}var JE,T$;function mle(){if(T$)return JE;T$=1;var e=A0();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 JE=t,JE}var eS,C$;function O0(){if(C$)return eS;C$=1;var e=ule(),t=cle(),n=dle(),r=fle(),o=mle();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,_$;function OD(){if(_$)return tS;_$=1;var e=Yu(),t=so(),n=e(t,"Map");return tS=n,tS}var nS,D$;function ple(){if(D$)return nS;D$=1;var e=lle(),t=O0(),n=OD();function r(){this.size=0,this.__data__={hash:new e,map:new(n||t),string:new e}}return nS=r,nS}var rS,R$;function hle(){if(R$)return rS;R$=1;function e(t){var n=typeof t;return n=="string"||n=="number"||n=="symbol"||n=="boolean"?t!=="__proto__":t===null}return rS=e,rS}var aS,j$;function T0(){if(j$)return aS;j$=1;var e=hle();function t(n,r){var o=n.__data__;return e(r)?o[typeof r=="string"?"string":"hash"]:o.map}return aS=t,aS}var iS,P$;function gle(){if(P$)return iS;P$=1;var e=T0();function t(n){var r=e(this,n).delete(n);return this.size-=r?1:0,r}return iS=t,iS}var oS,M$;function vle(){if(M$)return oS;M$=1;var e=T0();function t(n){return e(this,n).get(n)}return oS=t,oS}var sS,L$;function yle(){if(L$)return sS;L$=1;var e=T0();function t(n){return e(this,n).has(n)}return sS=t,sS}var lS,k$;function ble(){if(k$)return lS;k$=1;var e=T0();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 lS=t,lS}var uS,I$;function TD(){if(I$)return uS;I$=1;var e=ple(),t=gle(),n=vle(),r=yle(),o=ble();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,uS=s,uS}var cS,$$;function B9(){if($$)return cS;$$=1;var e=TD(),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,cS=n,cS}var dS,V$;function xle(){if(V$)return dS;V$=1;var e=B9(),t=500;function n(r){var o=e(r,function(u){return s.size===t&&s.clear(),u}),s=o.cache;return o}return dS=n,dS}var fS,B$;function wle(){if(B$)return fS;B$=1;var e=xle(),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 fS=r,fS}var mS,z$;function CD(){if(z$)return mS;z$=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 mS=e,mS}var pS,U$;function Nle(){if(U$)return pS;U$=1;var e=Rh(),t=CD(),n=Kr(),r=lf(),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 pS=u,pS}var hS,q$;function z9(){if(q$)return hS;q$=1;var e=Nle();function t(n){return n==null?"":e(n)}return hS=t,hS}var gS,H$;function U9(){if(H$)return gS;H$=1;var e=Kr(),t=ED(),n=wle(),r=z9();function o(s,u){return e(s)?s:t(s,u)?[s]:n(r(s))}return gS=o,gS}var vS,F$;function C0(){if(F$)return vS;F$=1;var e=lf();function t(n){if(typeof n=="string"||e(n))return n;var r=n+"";return r=="0"&&1/n==-1/0?"-0":r}return vS=t,vS}var yS,K$;function _D(){if(K$)return yS;K$=1;var e=U9(),t=C0();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 yS=n,yS}var bS,G$;function q9(){if(G$)return bS;G$=1;var e=_D();function t(n,r,o){var s=n==null?void 0:e(n,r);return s===void 0?o:s}return bS=t,bS}var Ele=q9();const ma=kt(Ele);var xS,Y$;function Sle(){if(Y$)return xS;Y$=1;function e(t){return t==null}return xS=e,xS}var Ale=Sle();const rt=kt(Ale);var wS,Q$;function Ole(){if(Q$)return wS;Q$=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 wS=o,wS}var Tle=Ole();const Lu=kt(Tle);var Cle=SD();const Qe=kt(Cle);var _le=ml();const uf=kt(_le);var NS={exports:{}},Pt={},X$;function Dle(){if(X$)return Pt;X$=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,_=!1,D;D=Symbol.for("react.module.reference");function P(we){return!!(typeof we=="string"||typeof we=="function"||we===n||we===o||_||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 C=u,j=s,L=e,V=f,B=n,z=y,q=p,F=t,Y=o,ee=r,U=m,G=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 I(we){return te||(te=!0,console.warn("The ReactIs.isConcurrentMode() alias has been deprecated, and will be removed in React 18+.")),!1}function Z(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 ue(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=C,Pt.ContextProvider=j,Pt.Element=L,Pt.ForwardRef=V,Pt.Fragment=B,Pt.Lazy=z,Pt.Memo=q,Pt.Portal=F,Pt.Profiler=Y,Pt.StrictMode=ee,Pt.Suspense=U,Pt.SuspenseList=G,Pt.isAsyncMode=ne,Pt.isConcurrentMode=I,Pt.isContextConsumer=Z,Pt.isContextProvider=W,Pt.isElement=ae,Pt.isForwardRef=ge,Pt.isFragment=Ne,Pt.isLazy=ue,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 W$;function Rle(){return W$||(W$=1,NS.exports=Dle()),NS.exports}var jle=Rle(),ES,Z$;function H9(){if(Z$)return ES;Z$=1;var e=os(),t=ss(),n="[object Number]";function r(o){return typeof o=="number"||t(o)&&e(o)==n}return ES=r,ES}var SS,J$;function Ple(){if(J$)return SS;J$=1;var e=H9();function t(n){return e(n)&&n!=+n}return SS=t,SS}var Mle=Ple();const cf=kt(Mle);var Lle=H9();const kle=kt(Lle);var Dr=function(t){return t===0?0:t>0?1:-1},gu=function(t){return Lu(t)&&t.indexOf("%")===t.length-1},Oe=function(t){return kle(t)&&!cf(t)},Ile=function(t){return rt(t)},Vn=function(t){return Oe(t)||Lu(t)},$le=0,df=function(t){var n=++$le;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)&&!Lu(t))return r;var s;if(gu(t)){var u=t.indexOf("%");s=n*parseFloat(t.slice(0,u))/100}else s=+t;return cf(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},Vle=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 Xy(e,t,n){return!e||!e.length?null:e.find(function(r){return r&&(typeof t=="function"?t(r):ma(r,t))===n})}var Ble=function(t,n){return Oe(t)&&Oe(n)?t-n:Lu(t)&&Lu(n)?t.localeCompare(n):t instanceof Date&&n instanceof Date?t.getTime()-n.getTime():String(t).localeCompare(String(n))};function yd(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 dC(e){"@babel/helpers - typeof";return dC=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},dC(e)}var zle=["viewBox","children"],Ule=["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"],eV=["points","pathLength"],AS={svg:zle,polygon:eV,polyline:eV},DD=["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"],Wy=function(t,n){if(!t||typeof t=="function"||typeof t=="boolean")return null;var r=t;if(R.isValidElement(t)&&(r=t.props),!uf(r))return null;var o={};return Object.keys(r).forEach(function(s){DD.includes(s)&&(o[s]=n||function(u){return r[s](r,u)})}),o},qle=function(t,n,r){return function(o){return t(n,r,o),null}},ku=function(t,n,r){if(!uf(t)||dC(t)!=="object")return null;var o=null;return Object.keys(t).forEach(function(s){var u=t[s];DD.includes(s)&&typeof u=="function"&&(o||(o={}),o[s]=qle(u,n,r))}),o},Hle=["children"],Fle=["children"];function tV(e,t){if(e==null)return{};var n=Kle(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 Kle(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 fC(e){"@babel/helpers - typeof";return fC=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},fC(e)}var nV={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"},Qo=function(t){return typeof t=="string"?t:t?t.displayName||t.name||"Component":""},rV=null,OS=null,RD=function e(t){if(t===rV&&Array.isArray(OS))return OS;var n=[];return R.Children.forEach(t,function(r){rt(r)||(jle.isFragment(r)?n=n.concat(e(r.props.children)):n.push(r))}),OS=n,rV=t,n};function Ia(e,t){var n=[],r=[];return Array.isArray(t)?r=t.map(function(o){return Qo(o)}):r=[Qo(t)],RD(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 aV=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)},Gle=["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"],Yle=function(t){return t&&t.type&&Lu(t.type)&&Gle.indexOf(t.type)>=0},Qle=function(t){return t&&fC(t)==="object"&&"clipDot"in t},Xle=function(t,n,r,o){var s,u=(s=AS?.[o])!==null&&s!==void 0?s:[];return n.startsWith("data-")||!Qe(t)&&(o&&u.includes(n)||Ule.includes(n))||r&&DD.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),!uf(o))return null;var s={};return Object.keys(o).forEach(function(u){var c;Xle((c=o)===null||c===void 0?void 0:c[u],u,n,r)&&(s[u]=o[u])}),s},mC=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 iV(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(!iV(s,u))return!1}return!0},iV=function(t,n){if(rt(t)&&rt(n))return!0;if(!rt(t)&&!rt(n)){var r=t.props||{},o=r.children,s=tV(r,Hle),u=n.props||{},c=u.children,f=tV(u,Fle);return o&&c?yd(s,f)&&mC(o,c):!o&&!c?yd(s,f):!1}return!1},oV=function(t,n){var r=[],o={};return RD(t).forEach(function(s,u){if(Yle(s))r.push(s);else if(s){var c=Qo(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},Wle=function(t){var n=t&&t.type;return n&&nV[n]?nV[n]:null},Zle=function(t,n){return RD(n).indexOf(t)},Jle=["children","width","height","viewBox","className","style","title","desc"];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 eue(e,t){if(e==null)return{};var n=tue(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 tue(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 hC(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=eue(e,Jle),g=o||{width:n,height:r,x:0,y:0},p=nt("recharts-surface",s);return H.createElement("svg",pC({},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)}),H.createElement("title",null,c),H.createElement("desc",null,f),t)}var nue=["children","className"];function gC(){return gC=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},gC.apply(this,arguments)}function rue(e,t){if(e==null)return{};var n=aue(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 aue(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=H.forwardRef(function(e,t){var n=e.children,r=e.className,o=rue(e,nue),s=nt("recharts-layer",r);return H.createElement("g",gC({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++]}))}},TS,sV;function iue(){if(sV)return TS;sV=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 TS=e,TS}var CS,lV;function oue(){if(lV)return CS;lV=1;var e=iue();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 CS=t,CS}var _S,uV;function F9(){if(uV)return _S;uV=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 _S=f,_S}var DS,cV;function sue(){if(cV)return DS;cV=1;function e(t){return t.split("")}return DS=e,DS}var RS,dV;function lue(){if(dV)return RS;dV=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,_="(?:"+[g+c+"?",c,p,y,u].join("|")+")",D=RegExp(f+"(?="+f+")|"+_+T,"g");function P(A){return A.match(D)||[]}return RS=P,RS}var jS,fV;function uue(){if(fV)return jS;fV=1;var e=sue(),t=F9(),n=lue();function r(o){return t(o)?n(o):e(o)}return jS=r,jS}var PS,mV;function cue(){if(mV)return PS;mV=1;var e=oue(),t=F9(),n=uue(),r=z9();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 PS=o,PS}var MS,pV;function due(){if(pV)return MS;pV=1;var e=cue(),t=e("toUpperCase");return MS=t,MS}var fue=due();const _0=kt(fue);function Xt(e){return function(){return e}}const K9=Math.cos,Zy=Math.sin,ci=Math.sqrt,Jy=Math.PI,D0=2*Jy,vC=Math.PI,yC=2*vC,du=1e-6,mue=yC-du;function G9(e){this._+=e[0];for(let t=1,n=e.length;t<n;++t)this._+=arguments[t]+e[t]}function pue(e){let t=Math.floor(e);if(!(t>=0))throw new Error(`invalid digits: ${e}`);if(t>15)return G9;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 hue{constructor(t){this._x0=this._y0=this._x1=this._y1=null,this._="",this._append=t==null?G9:pue(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),_=Math.sqrt(y),D=s*Math.tan((vC-Math.acos((x+y-N)/(2*T*_)))/2),P=D/_,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%yC+yC),y>mue?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>=vC)},${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 jD(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 hue(t)}function PD(e){return typeof e=="object"&&"length"in e?e:Array.from(e)}function Y9(e){this._context=e}Y9.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 R0(e){return new Y9(e)}function Q9(e){return e[0]}function X9(e){return e[1]}function W9(e,t){var n=Xt(!0),r=null,o=R0,s=null,u=jD(c);e=typeof e=="function"?e:e===void 0?Q9:Xt(e),t=typeof t=="function"?t:t===void 0?X9:Xt(t);function c(f){var m,g=(f=PD(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:Xt(+f),c):e},c.y=function(f){return arguments.length?(t=typeof f=="function"?f:Xt(+f),c):t},c.defined=function(f){return arguments.length?(n=typeof f=="function"?f:Xt(!!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 hy(e,t,n){var r=null,o=Xt(!0),s=null,u=R0,c=null,f=jD(m);e=typeof e=="function"?e:e===void 0?Q9:Xt(+e),t=typeof t=="function"?t:Xt(t===void 0?0:+t),n=typeof n=="function"?n:n===void 0?X9:Xt(+n);function m(p){var y,b,S,x=(p=PD(p)).length,N,T=!1,_,D=new Array(x),P=new Array(x);for(s==null&&(c=u(_=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(_)return c=null,_+""||null}function g(){return W9().defined(o).curve(u).context(s)}return m.x=function(p){return arguments.length?(e=typeof p=="function"?p:Xt(+p),r=null,m):e},m.x0=function(p){return arguments.length?(e=typeof p=="function"?p:Xt(+p),m):e},m.x1=function(p){return arguments.length?(r=p==null?null:typeof p=="function"?p:Xt(+p),m):r},m.y=function(p){return arguments.length?(t=typeof p=="function"?p:Xt(+p),n=null,m):t},m.y0=function(p){return arguments.length?(t=typeof p=="function"?p:Xt(+p),m):t},m.y1=function(p){return arguments.length?(n=p==null?null:typeof p=="function"?p:Xt(+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:Xt(!!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 Z9{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 gue(e){return new Z9(e,!0)}function vue(e){return new Z9(e,!1)}const MD={draw(e,t){const n=ci(t/Jy);e.moveTo(n,0),e.arc(0,0,n,0,D0)}},yue={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()}},J9=ci(1/3),bue=J9*2,xue={draw(e,t){const n=ci(t/bue),r=n*J9;e.moveTo(0,-n),e.lineTo(r,0),e.lineTo(0,n),e.lineTo(-r,0),e.closePath()}},wue={draw(e,t){const n=ci(t),r=-n/2;e.rect(r,r,n,n)}},Nue=.8908130915292852,e2=Zy(Jy/10)/Zy(7*Jy/10),Eue=Zy(D0/10)*e2,Sue=-K9(D0/10)*e2,Aue={draw(e,t){const n=ci(t*Nue),r=Eue*n,o=Sue*n;e.moveTo(0,-n),e.lineTo(r,o);for(let s=1;s<5;++s){const u=D0*s/5,c=K9(u),f=Zy(u);e.lineTo(f*n,-c*n),e.lineTo(c*r-f*o,f*r+c*o)}e.closePath()}},LS=ci(3),Oue={draw(e,t){const n=-ci(t/(LS*3));e.moveTo(0,n*2),e.lineTo(-LS*n,-n),e.lineTo(LS*n,-n),e.closePath()}},Da=-.5,Ra=ci(3)/2,bC=1/ci(12),Tue=(bC/2+1)*3,Cue={draw(e,t){const n=ci(t/Tue),r=n/2,o=n*bC,s=r,u=n*bC+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 _ue(e,t){let n=null,r=jD(o);e=typeof e=="function"?e:Xt(e||MD),t=typeof t=="function"?t:Xt(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:Xt(s),o):e},o.size=function(s){return arguments.length?(t=typeof s=="function"?s:Xt(+s),o):t},o.context=function(s){return arguments.length?(n=s??null,o):n},o}function eb(){}function tb(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 t2(e){this._context=e}t2.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:tb(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:tb(this,e,t);break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}};function Due(e){return new t2(e)}function n2(e){this._context=e}n2.prototype={areaStart:eb,areaEnd:eb,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:tb(this,e,t);break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}};function Rue(e){return new n2(e)}function r2(e){this._context=e}r2.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:tb(this,e,t);break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}};function jue(e){return new r2(e)}function a2(e){this._context=e}a2.prototype={areaStart:eb,areaEnd:eb,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 Pue(e){return new a2(e)}function hV(e){return e<0?-1:1}function gV(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(hV(s)+hV(u))*Math.min(Math.abs(s),Math.abs(u),.5*Math.abs(c))||0}function vV(e,t){var n=e._x1-e._x0;return n?(3*(e._y1-e._y0)/n-t)/2:t}function kS(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 nb(e){this._context=e}nb.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:kS(this,this._t0,vV(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,kS(this,vV(this,n=gV(this,e,t)),n);break;default:kS(this,this._t0,n=gV(this,e,t));break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t,this._t0=n}}};function i2(e){this._context=new o2(e)}(i2.prototype=Object.create(nb.prototype)).point=function(e,t){nb.prototype.point.call(this,t,e)};function o2(e){this._context=e}o2.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 Mue(e){return new nb(e)}function Lue(e){return new i2(e)}function s2(e){this._context=e}s2.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=yV(e),o=yV(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 yV(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 kue(e){return new s2(e)}function j0(e,t){this._context=e,this._t=t}j0.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 Iue(e){return new j0(e,.5)}function $ue(e){return new j0(e,0)}function Vue(e){return new j0(e,1)}function Od(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 xC(e){for(var t=e.length,n=new Array(t);--t>=0;)n[t]=t;return n}function Bue(e,t){return e[t]}function zue(e){const t=[];return t.key=e,t}function Uue(){var e=Xt([]),t=xC,n=Od,r=Bue;function o(s){var u=Array.from(e.apply(this,arguments),zue),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=PD(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:Xt(Array.from(s)),o):e},o.value=function(s){return arguments.length?(r=typeof s=="function"?s:Xt(+s),o):r},o.order=function(s){return arguments.length?(t=s==null?xC:typeof s=="function"?s:Xt(Array.from(s)),o):t},o.offset=function(s){return arguments.length?(n=s??Od,o):n},o}function que(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}Od(e,t)}}function Hue(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}Od(e,t)}}function Fue(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,Od(e,t)}}function Vp(e){"@babel/helpers - typeof";return Vp=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},Vp(e)}var Kue=["type","size","sizeType"];function wC(){return wC=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},wC.apply(this,arguments)}function bV(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 xV(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?bV(Object(n),!0).forEach(function(r){Gue(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):bV(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function Gue(e,t,n){return t=Yue(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Yue(e){var t=Que(e,"string");return Vp(t)=="symbol"?t:t+""}function Que(e,t){if(Vp(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(Vp(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function Xue(e,t){if(e==null)return{};var n=Wue(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 Wue(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 l2={symbolCircle:MD,symbolCross:yue,symbolDiamond:xue,symbolSquare:wue,symbolStar:Aue,symbolTriangle:Oue,symbolWye:Cue},Zue=Math.PI/180,Jue=function(t){var n="symbol".concat(_0(t));return l2[n]||MD},ece=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*Zue;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}},tce=function(t,n){l2["symbol".concat(_0(t))]=n},LD=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=Xue(t,Kue),m=xV(xV({},f),{},{type:r,size:s,sizeType:c}),g=function(){var N=Jue(r),T=_ue().type(N).size(ece(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?H.createElement("path",wC({},S,{className:nt("recharts-symbols",p),transform:"translate(".concat(y,", ").concat(b,")"),d:g()})):null};LD.registerSymbol=tce;function Td(e){"@babel/helpers - typeof";return Td=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},Td(e)}function NC(){return NC=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},NC.apply(this,arguments)}function wV(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 nce(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?wV(Object(n),!0).forEach(function(r){Bp(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):wV(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function rce(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function ace(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,c2(r.key),r)}}function ice(e,t,n){return t&&ace(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function oce(e,t,n){return t=rb(t),sce(e,u2()?Reflect.construct(t,n||[],rb(e).constructor):t.apply(e,n))}function sce(e,t){if(t&&(Td(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return lce(e)}function lce(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function u2(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(u2=function(){return!!e})()}function rb(e){return rb=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},rb(e)}function uce(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&&EC(e,t)}function EC(e,t){return EC=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,o){return r.__proto__=o,r},EC(e,t)}function Bp(e,t,n){return t=c2(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function c2(e){var t=cce(e,"string");return Td(t)=="symbol"?t:t+""}function cce(e,t){if(Td(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(Td(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}var ja=32,kD=(function(e){function t(){return rce(this,t),oce(this,t,arguments)}return uce(t,e),ice(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 H.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 H.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 H.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(H.isValidElement(r.legendIcon)){var m=nce({},r);return delete m.legendIcon,H.cloneElement(r.legendIcon,m)}return H.createElement(LD,{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(Bp(Bp({"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 _=b.inactive?m:b.color;return H.createElement("li",NC({className:N,style:p,key:"legend-item-".concat(S)},ku(r.props,b,S)),H.createElement(hC,{width:u,height:u,viewBox:g,style:y},r.renderIcon(b)),H.createElement("span",{className:"recharts-legend-item-text",style:{color:_}},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 H.createElement("ul",{className:"recharts-default-legend",style:c},this.renderItems())}}])})(R.PureComponent);Bp(kD,"displayName","Legend");Bp(kD,"defaultProps",{iconSize:14,layout:"horizontal",align:"center",verticalAlign:"middle",inactiveColor:"#ccc"});var IS,NV;function dce(){if(NV)return IS;NV=1;var e=O0();function t(){this.__data__=new e,this.size=0}return IS=t,IS}var $S,EV;function fce(){if(EV)return $S;EV=1;function e(t){var n=this.__data__,r=n.delete(t);return this.size=n.size,r}return $S=e,$S}var VS,SV;function mce(){if(SV)return VS;SV=1;function e(t){return this.__data__.get(t)}return VS=e,VS}var BS,AV;function pce(){if(AV)return BS;AV=1;function e(t){return this.__data__.has(t)}return BS=e,BS}var zS,OV;function hce(){if(OV)return zS;OV=1;var e=O0(),t=OD(),n=TD(),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 zS=o,zS}var US,TV;function d2(){if(TV)return US;TV=1;var e=O0(),t=dce(),n=fce(),r=mce(),o=pce(),s=hce();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,US=u,US}var qS,CV;function gce(){if(CV)return qS;CV=1;var e="__lodash_hash_undefined__";function t(n){return this.__data__.set(n,e),this}return qS=t,qS}var HS,_V;function vce(){if(_V)return HS;_V=1;function e(t){return this.__data__.has(t)}return HS=e,HS}var FS,DV;function f2(){if(DV)return FS;DV=1;var e=TD(),t=gce(),n=vce();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,FS=r,FS}var KS,RV;function m2(){if(RV)return KS;RV=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 KS=e,KS}var GS,jV;function p2(){if(jV)return GS;jV=1;function e(t,n){return t.has(n)}return GS=e,GS}var YS,PV;function h2(){if(PV)return YS;PV=1;var e=f2(),t=m2(),n=p2(),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,_=!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 C=y?m(A,P,T,c,u,p):m(P,A,T,u,c,p);if(C!==void 0){if(C)continue;_=!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)})){_=!1;break}}else if(!(P===A||g(P,A,f,m,p))){_=!1;break}}return p.delete(u),p.delete(c),_}return YS=s,YS}var QS,MV;function yce(){if(MV)return QS;MV=1;var e=so(),t=e.Uint8Array;return QS=t,QS}var XS,LV;function bce(){if(LV)return XS;LV=1;function e(t){var n=-1,r=Array(t.size);return t.forEach(function(o,s){r[++n]=[s,o]}),r}return XS=e,XS}var WS,kV;function ID(){if(kV)return WS;kV=1;function e(t){var n=-1,r=Array(t.size);return t.forEach(function(o){r[++n]=o}),r}return WS=e,WS}var ZS,IV;function xce(){if(IV)return ZS;IV=1;var e=Rh(),t=yce(),n=AD(),r=h2(),o=bce(),s=ID(),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]",_="[object DataView]",D=e?e.prototype:void 0,P=D?D.valueOf:void 0;function A(C,j,L,V,B,z,q){switch(L){case _:if(C.byteLength!=j.byteLength||C.byteOffset!=j.byteOffset)return!1;C=C.buffer,j=j.buffer;case T:return!(C.byteLength!=j.byteLength||!z(new t(C),new t(j)));case f:case m:case y:return n(+C,+j);case g:return C.name==j.name&&C.message==j.message;case b:case x:return C==j+"";case p:var F=o;case S:var Y=V&u;if(F||(F=s),C.size!=j.size&&!Y)return!1;var ee=q.get(C);if(ee)return ee==j;V|=c,q.set(C,j);var U=r(F(C),F(j),V,B,z,q);return q.delete(C),U;case N:if(P)return P.call(C)==P.call(j)}return!1}return ZS=A,ZS}var JS,$V;function g2(){if($V)return JS;$V=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 JS=e,JS}var eA,VV;function wce(){if(VV)return eA;VV=1;var e=g2(),t=Kr();function n(r,o,s){var u=o(r);return t(r)?u:e(u,s(r))}return eA=n,eA}var tA,BV;function Nce(){if(BV)return tA;BV=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 tA=e,tA}var nA,zV;function Ece(){if(zV)return nA;zV=1;function e(){return[]}return nA=e,nA}var rA,UV;function Sce(){if(UV)return rA;UV=1;var e=Nce(),t=Ece(),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 rA=s,rA}var aA,qV;function Ace(){if(qV)return aA;qV=1;function e(t,n){for(var r=-1,o=Array(t);++r<t;)o[r]=n(r);return o}return aA=e,aA}var iA,HV;function Oce(){if(HV)return iA;HV=1;var e=os(),t=ss(),n="[object Arguments]";function r(o){return t(o)&&e(o)==n}return iA=r,iA}var oA,FV;function $D(){if(FV)return oA;FV=1;var e=Oce(),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 oA=s,oA}var cp={exports:{}},sA,KV;function Tce(){if(KV)return sA;KV=1;function e(){return!1}return sA=e,sA}cp.exports;var GV;function v2(){return GV||(GV=1,(function(e,t){var n=so(),r=Tce(),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})(cp,cp.exports)),cp.exports}var lA,YV;function VD(){if(YV)return lA;YV=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 lA=n,lA}var uA,QV;function BD(){if(QV)return uA;QV=1;var e=9007199254740991;function t(n){return typeof n=="number"&&n>-1&&n%1==0&&n<=e}return uA=t,uA}var cA,XV;function Cce(){if(XV)return cA;XV=1;var e=os(),t=BD(),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]",_="[object Float32Array]",D="[object Float64Array]",P="[object Int8Array]",A="[object Int16Array]",C="[object Int32Array]",j="[object Uint8Array]",L="[object Uint8ClampedArray]",V="[object Uint16Array]",B="[object Uint32Array]",z={};z[_]=z[D]=z[P]=z[A]=z[C]=z[j]=z[L]=z[V]=z[B]=!0,z[r]=z[o]=z[N]=z[s]=z[T]=z[u]=z[c]=z[f]=z[m]=z[g]=z[p]=z[y]=z[b]=z[S]=z[x]=!1;function q(F){return n(F)&&t(F.length)&&!!z[e(F)]}return cA=q,cA}var dA,WV;function y2(){if(WV)return dA;WV=1;function e(t){return function(n){return t(n)}}return dA=e,dA}var dp={exports:{}};dp.exports;var ZV;function _ce(){return ZV||(ZV=1,(function(e,t){var n=$9(),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})(dp,dp.exports)),dp.exports}var fA,JV;function b2(){if(JV)return fA;JV=1;var e=Cce(),t=y2(),n=_ce(),r=n&&n.isTypedArray,o=r?t(r):e;return fA=o,fA}var mA,e4;function Dce(){if(e4)return mA;e4=1;var e=Ace(),t=$D(),n=Kr(),r=v2(),o=VD(),s=b2(),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 _ in m)(g||c.call(m,_))&&!(x&&(_=="length"||b&&(_=="offset"||_=="parent")||S&&(_=="buffer"||_=="byteLength"||_=="byteOffset")||o(_,T)))&&N.push(_);return N}return mA=f,mA}var pA,t4;function Rce(){if(t4)return pA;t4=1;var e=Object.prototype;function t(n){var r=n&&n.constructor,o=typeof r=="function"&&r.prototype||e;return n===o}return pA=t,pA}var hA,n4;function x2(){if(n4)return hA;n4=1;function e(t,n){return function(r){return t(n(r))}}return hA=e,hA}var gA,r4;function jce(){if(r4)return gA;r4=1;var e=x2(),t=e(Object.keys,Object);return gA=t,gA}var vA,a4;function Pce(){if(a4)return vA;a4=1;var e=Rce(),t=jce(),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 vA=o,vA}var yA,i4;function jh(){if(i4)return yA;i4=1;var e=SD(),t=BD();function n(r){return r!=null&&t(r.length)&&!e(r)}return yA=n,yA}var bA,o4;function P0(){if(o4)return bA;o4=1;var e=Dce(),t=Pce(),n=jh();function r(o){return n(o)?e(o):t(o)}return bA=r,bA}var xA,s4;function Mce(){if(s4)return xA;s4=1;var e=wce(),t=Sce(),n=P0();function r(o){return e(o,n,t)}return xA=r,xA}var wA,l4;function Lce(){if(l4)return wA;l4=1;var e=Mce(),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 _=g.get(s),D=g.get(u);if(_&&D)return _==u&&D==s;var P=!0;g.set(s,u),g.set(u,s);for(var A=p;++N<b;){T=y[N];var C=s[T],j=u[T];if(f)var L=p?f(j,C,T,u,s,g):f(C,j,T,s,u,g);if(!(L===void 0?C===j||m(C,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 wA=o,wA}var NA,u4;function kce(){if(u4)return NA;u4=1;var e=Yu(),t=so(),n=e(t,"DataView");return NA=n,NA}var EA,c4;function Ice(){if(c4)return EA;c4=1;var e=Yu(),t=so(),n=e(t,"Promise");return EA=n,EA}var SA,d4;function w2(){if(d4)return SA;d4=1;var e=Yu(),t=so(),n=e(t,"Set");return SA=n,SA}var AA,f4;function $ce(){if(f4)return AA;f4=1;var e=Yu(),t=so(),n=e(t,"WeakMap");return AA=n,AA}var OA,m4;function Vce(){if(m4)return OA;m4=1;var e=kce(),t=OD(),n=Ice(),r=w2(),o=$ce(),s=os(),u=V9(),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),_=s;return(e&&_(new e(new ArrayBuffer(1)))!=y||t&&_(new t)!=c||n&&_(n.resolve())!=m||r&&_(new r)!=g||o&&_(new o)!=p)&&(_=function(D){var P=s(D),A=P==f?D.constructor:void 0,C=A?u(A):"";if(C)switch(C){case b:return y;case S:return c;case x:return m;case N:return g;case T:return p}return P}),OA=_,OA}var TA,p4;function Bce(){if(p4)return TA;p4=1;var e=d2(),t=h2(),n=xce(),r=Lce(),o=Vce(),s=Kr(),u=v2(),c=b2(),f=1,m="[object Arguments]",g="[object Array]",p="[object Object]",y=Object.prototype,b=y.hasOwnProperty;function S(x,N,T,_,D,P){var A=s(x),C=s(N),j=A?g:o(x),L=C?g:o(N);j=j==m?p:j,L=L==m?p:L;var V=j==p,B=L==p,z=j==L;if(z&&u(x)){if(!u(N))return!1;A=!0,V=!1}if(z&&!V)return P||(P=new e),A||c(x)?t(x,N,T,_,D,P):n(x,N,j,T,_,D,P);if(!(T&f)){var q=V&&b.call(x,"__wrapped__"),F=B&&b.call(N,"__wrapped__");if(q||F){var Y=q?x.value():x,ee=F?N.value():N;return P||(P=new e),D(Y,ee,T,_,P)}}return z?(P||(P=new e),r(x,N,T,_,D,P)):!1}return TA=S,TA}var CA,h4;function zD(){if(h4)return CA;h4=1;var e=Bce(),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 CA=n,CA}var _A,g4;function zce(){if(g4)return _A;g4=1;var e=d2(),t=zD(),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 _A=o,_A}var DA,v4;function N2(){if(v4)return DA;v4=1;var e=ml();function t(n){return n===n&&!e(n)}return DA=t,DA}var RA,y4;function Uce(){if(y4)return RA;y4=1;var e=N2(),t=P0();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 RA=n,RA}var jA,b4;function E2(){if(b4)return jA;b4=1;function e(t,n){return function(r){return r==null?!1:r[t]===n&&(n!==void 0||t in Object(r))}}return jA=e,jA}var PA,x4;function qce(){if(x4)return PA;x4=1;var e=zce(),t=Uce(),n=E2();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 PA=r,PA}var MA,w4;function Hce(){if(w4)return MA;w4=1;function e(t,n){return t!=null&&n in Object(t)}return MA=e,MA}var LA,N4;function Fce(){if(N4)return LA;N4=1;var e=U9(),t=$D(),n=Kr(),r=VD(),o=BD(),s=C0();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 LA=u,LA}var kA,E4;function Kce(){if(E4)return kA;E4=1;var e=Hce(),t=Fce();function n(r,o){return r!=null&&t(r,o,e)}return kA=n,kA}var IA,S4;function Gce(){if(S4)return IA;S4=1;var e=zD(),t=q9(),n=Kce(),r=ED(),o=N2(),s=E2(),u=C0(),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 IA=m,IA}var $A,A4;function ff(){if(A4)return $A;A4=1;function e(t){return t}return $A=e,$A}var VA,O4;function Yce(){if(O4)return VA;O4=1;function e(t){return function(n){return n?.[t]}}return VA=e,VA}var BA,T4;function Qce(){if(T4)return BA;T4=1;var e=_D();function t(n){return function(r){return e(r,n)}}return BA=t,BA}var zA,C4;function Xce(){if(C4)return zA;C4=1;var e=Yce(),t=Qce(),n=ED(),r=C0();function o(s){return n(s)?e(r(s)):t(s)}return zA=o,zA}var UA,_4;function lo(){if(_4)return UA;_4=1;var e=qce(),t=Gce(),n=ff(),r=Kr(),o=Xce();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 UA=s,UA}var qA,D4;function S2(){if(D4)return qA;D4=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 qA=e,qA}var HA,R4;function Wce(){if(R4)return HA;R4=1;function e(t){return t!==t}return HA=e,HA}var FA,j4;function Zce(){if(j4)return FA;j4=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 FA=e,FA}var KA,P4;function Jce(){if(P4)return KA;P4=1;var e=S2(),t=Wce(),n=Zce();function r(o,s,u){return s===s?n(o,s,u):e(o,t,u)}return KA=r,KA}var GA,M4;function ede(){if(M4)return GA;M4=1;var e=Jce();function t(n,r){var o=n==null?0:n.length;return!!o&&e(n,r,0)>-1}return GA=t,GA}var YA,L4;function tde(){if(L4)return YA;L4=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 YA=e,YA}var QA,k4;function nde(){if(k4)return QA;k4=1;function e(){}return QA=e,QA}var XA,I4;function rde(){if(I4)return XA;I4=1;var e=w2(),t=nde(),n=ID(),r=1/0,o=e&&1/n(new e([,-0]))[1]==r?function(s){return new e(s)}:t;return XA=o,XA}var WA,$4;function ade(){if($4)return WA;$4=1;var e=f2(),t=ede(),n=tde(),r=p2(),o=rde(),s=ID(),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 _=f[p],D=m?m(_):_;if(_=g||_!==0?_:0,S&&D===D){for(var P=N.length;P--;)if(N[P]===D)continue e;m&&N.push(D),x.push(_)}else y(N,D,g)||(N!==x&&N.push(D),x.push(_))}return x}return WA=c,WA}var ZA,V4;function ide(){if(V4)return ZA;V4=1;var e=lo(),t=ade();function n(r,o){return r&&r.length?t(r,e(o,2)):[]}return ZA=n,ZA}var ode=ide();const B4=kt(ode);function A2(e,t,n){return t===!0?B4(e,n):Qe(t)?B4(e,t):e}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)}var sde=["ref"];function z4(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 Uo(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?z4(Object(n),!0).forEach(function(r){M0(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):z4(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function lde(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function U4(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,T2(r.key),r)}}function ude(e,t,n){return t&&U4(e.prototype,t),n&&U4(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function cde(e,t,n){return t=ab(t),dde(e,O2()?Reflect.construct(t,n||[],ab(e).constructor):t.apply(e,n))}function dde(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 fde(e)}function fde(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function O2(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(O2=function(){return!!e})()}function ab(e){return ab=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},ab(e)}function mde(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&&SC(e,t)}function SC(e,t){return SC=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,o){return r.__proto__=o,r},SC(e,t)}function M0(e,t,n){return t=T2(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function T2(e){var t=pde(e,"string");return Cd(t)=="symbol"?t:t+""}function pde(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)}function hde(e,t){if(e==null)return{};var n=gde(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 gde(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 vde(e){return e.value}function yde(e,t){if(H.isValidElement(e))return H.cloneElement(e,t);if(typeof e=="function")return H.createElement(e,t);t.ref;var n=hde(t,sde);return H.createElement(kD,n)}var q4=1,wu=(function(e){function t(){var n;lde(this,t);for(var r=arguments.length,o=new Array(r),s=0;s<r;s++)o[s]=arguments[s];return n=cde(this,t,[].concat(o)),M0(n,"lastBoundingBox",{width:-1,height:-1}),n}return mde(t,e),ude(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)>q4||Math.abs(o.height-this.lastBoundingBox.height)>q4)&&(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?Uo({},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 Uo(Uo({},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=Uo(Uo({position:"absolute",width:u||"auto",height:c||"auto"},this.getDefaultPosition(f)),f);return H.createElement("div",{className:"recharts-legend-wrapper",style:p,ref:function(b){r.wrapperNode=b}},yde(s,Uo(Uo({},this.props),{},{payload:A2(g,m,vde)})))}}],[{key:"getWithHeight",value:function(r,o){var s=Uo(Uo({},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);M0(wu,"displayName","Legend");M0(wu,"defaultProps",{iconSize:14,layout:"horizontal",align:"center",verticalAlign:"bottom"});var JA,H4;function bde(){if(H4)return JA;H4=1;var e=Rh(),t=$D(),n=Kr(),r=e?e.isConcatSpreadable:void 0;function o(s){return n(s)||t(s)||!!(r&&s&&s[r])}return JA=o,JA}var eO,F4;function C2(){if(F4)return eO;F4=1;var e=g2(),t=bde();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 eO=n,eO}var tO,K4;function xde(){if(K4)return tO;K4=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 tO=e,tO}var nO,G4;function wde(){if(G4)return nO;G4=1;var e=xde(),t=e();return nO=t,nO}var rO,Y4;function _2(){if(Y4)return rO;Y4=1;var e=wde(),t=P0();function n(r,o){return r&&e(r,o,t)}return rO=n,rO}var aO,Q4;function Nde(){if(Q4)return aO;Q4=1;var e=jh();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 aO=t,aO}var iO,X4;function UD(){if(X4)return iO;X4=1;var e=_2(),t=Nde(),n=t(e);return iO=n,iO}var oO,W4;function D2(){if(W4)return oO;W4=1;var e=UD(),t=jh();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 oO=n,oO}var sO,Z4;function Ede(){if(Z4)return sO;Z4=1;function e(t,n){var r=t.length;for(t.sort(n);r--;)t[r]=t[r].value;return t}return sO=e,sO}var lO,J4;function Sde(){if(J4)return lO;J4=1;var e=lf();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 lO=t,lO}var uO,eB;function Ade(){if(eB)return uO;eB=1;var e=Sde();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 uO=t,uO}var cO,tB;function Ode(){if(tB)return cO;tB=1;var e=CD(),t=_D(),n=lo(),r=D2(),o=Ede(),s=y2(),u=Ade(),c=ff(),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 _=e(p,function(D){return D(x)});return{criteria:_,index:++b,value:x}});return o(S,function(x,N){return u(x,N,y)})}return cO=m,cO}var dO,nB;function Tde(){if(nB)return dO;nB=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 dO=e,dO}var fO,rB;function Cde(){if(rB)return fO;rB=1;var e=Tde(),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 fO=n,fO}var mO,aB;function _de(){if(aB)return mO;aB=1;function e(t){return function(){return t}}return mO=e,mO}var pO,iB;function R2(){if(iB)return pO;iB=1;var e=Yu(),t=(function(){try{var n=e(Object,"defineProperty");return n({},"",{}),n}catch{}})();return pO=t,pO}var hO,oB;function Dde(){if(oB)return hO;oB=1;var e=_de(),t=R2(),n=ff(),r=t?function(o,s){return t(o,"toString",{configurable:!0,enumerable:!1,value:e(s),writable:!0})}:n;return hO=r,hO}var gO,sB;function Rde(){if(sB)return gO;sB=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 gO=r,gO}var vO,lB;function jde(){if(lB)return vO;lB=1;var e=Dde(),t=Rde(),n=t(e);return vO=n,vO}var yO,uB;function Pde(){if(uB)return yO;uB=1;var e=ff(),t=Cde(),n=jde();function r(o,s){return n(t(o,s,e),o+"")}return yO=r,yO}var bO,cB;function L0(){if(cB)return bO;cB=1;var e=AD(),t=jh(),n=VD(),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 bO=o,bO}var xO,dB;function Mde(){if(dB)return xO;dB=1;var e=C2(),t=Ode(),n=Pde(),r=L0(),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 xO=o,xO}var Lde=Mde();const qD=kt(Lde);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)}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 kde(e,t){return Bde(e)||Vde(e,t)||$de(e,t)||Ide()}function Ide(){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 $de(e,t){if(e){if(typeof e=="string")return fB(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 fB(e,t)}}function fB(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 Vde(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 Bde(e){if(Array.isArray(e))return e}function mB(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 wO(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?mB(Object(n),!0).forEach(function(r){zde(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):mB(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function zde(e,t,n){return t=Ude(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Ude(e){var t=qde(e,"string");return zp(t)=="symbol"?t:t+""}function qde(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 Hde(e){return Array.isArray(e)&&Vn(e[0])&&Vn(e[1])?e.join(" ~ "):e}var Fde=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,_=T===void 0?!1:T,D=function(){if(g&&g.length){var q={padding:0,margin:0},F=(y?qD(g,y):g).map(function(Y,ee){if(Y.type==="none")return null;var U=wO({display:"block",paddingTop:4,paddingBottom:4,color:Y.color||"#000"},c),G=Y.formatter||p||Hde,K=Y.value,te=Y.name,ne=K,I=te;if(G&&ne!=null&&I!=null){var Z=G(K,te,Y,ee,g);if(Array.isArray(Z)){var W=kde(Z,2);ne=W[0],I=W[1]}else ne=Z}return H.createElement("li",{className:"recharts-tooltip-item",key:"tooltip-item-".concat(ee),style:U},Vn(I)?H.createElement("span",{className:"recharts-tooltip-item-name"},I):null,Vn(I)?H.createElement("span",{className:"recharts-tooltip-item-separator"},r):null,H.createElement("span",{className:"recharts-tooltip-item-value"},ne),H.createElement("span",{className:"recharts-tooltip-item-unit"},Y.unit||""))});return H.createElement("ul",{className:"recharts-tooltip-item-list",style:q},F)}return null},P=wO({margin:0,padding:10,backgroundColor:"#fff",border:"1px solid #ccc",whiteSpace:"nowrap"},s),A=wO({margin:0},m),C=!rt(x),j=C?x:"",L=nt("recharts-default-tooltip",b),V=nt("recharts-tooltip-label",S);C&&N&&g!==void 0&&g!==null&&(j=N(x,g));var B=_?{role:"status","aria-live":"assertive"}:{};return H.createElement("div",AC({className:L,style:P},B),H.createElement("p",{className:V,style:A},H.isValidElement(j)?j:"".concat(j)),D())};function Up(e){"@babel/helpers - typeof";return Up=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},Up(e)}function gy(e,t,n){return t=Kde(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Kde(e){var t=Gde(e,"string");return Up(t)=="symbol"?t:t+""}function Gde(e,t){if(Up(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(Up(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var Jm="recharts-tooltip-wrapper",Yde={visibility:"hidden"};function Qde(e){var t=e.coordinate,n=e.translateX,r=e.translateY;return nt(Jm,gy(gy(gy(gy({},"".concat(Jm,"-right"),Oe(n)&&t&&Oe(t.x)&&n>=t.x),"".concat(Jm,"-left"),Oe(n)&&t&&Oe(t.x)&&n<t.x),"".concat(Jm,"-bottom"),Oe(r)&&t&&Oe(t.y)&&r>=t.y),"".concat(Jm,"-top"),Oe(r)&&t&&Oe(t.y)&&r<t.y))}function pB(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 Xde(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 Wde(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=pB({allowEscapeViewBox:t,coordinate:n,key:"x",offsetTopLeft:r,position:o,reverseDirection:s,tooltipDimension:u.width,viewBox:f,viewBoxDimension:f.width}),p=pB({allowEscapeViewBox:t,coordinate:n,key:"y",offsetTopLeft:r,position:o,reverseDirection:s,tooltipDimension:u.height,viewBox:f,viewBoxDimension:f.height}),m=Xde({translateX:g,translateY:p,useTranslate3d:c})):m=Yde,{cssProperties:m,cssClasses:Qde({translateX:g,translateY:p,coordinate:n})}}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 hB(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 gB(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?hB(Object(n),!0).forEach(function(r){TC(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):hB(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function Zde(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Jde(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,P2(r.key),r)}}function efe(e,t,n){return t&&Jde(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function tfe(e,t,n){return t=ib(t),nfe(e,j2()?Reflect.construct(t,n||[],ib(e).constructor):t.apply(e,n))}function nfe(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 rfe(e)}function rfe(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function j2(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(j2=function(){return!!e})()}function ib(e){return ib=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},ib(e)}function afe(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&&OC(e,t)}function OC(e,t){return OC=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,o){return r.__proto__=o,r},OC(e,t)}function TC(e,t,n){return t=P2(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function P2(e){var t=ife(e,"string");return _d(t)=="symbol"?t:t+""}function ife(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 vB=1,ofe=(function(e){function t(){var n;Zde(this,t);for(var r=arguments.length,o=new Array(r),s=0;s<r;s++)o[s]=arguments[s];return n=tfe(this,t,[].concat(o)),TC(n,"state",{dismissed:!1,dismissedAtCoordinate:{x:0,y:0},lastBoundingBox:{width:-1,height:-1}}),TC(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 afe(t,e),efe(t,[{key:"updateBBox",value:function(){if(this.wrapperNode&&this.wrapperNode.getBoundingClientRect){var r=this.wrapperNode.getBoundingClientRect();(Math.abs(r.width-this.state.lastBoundingBox.width)>vB||Math.abs(r.height-this.state.lastBoundingBox.height)>vB)&&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,_=o.wrapperStyle,D=Wde({allowEscapeViewBox:u,coordinate:g,offsetTopLeft:b,position:S,reverseDirection:x,tooltipBox:this.state.lastBoundingBox,useTranslate3d:N,viewBox:T}),P=D.cssClasses,A=D.cssProperties,C=gB(gB({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},_);return H.createElement("div",{tabIndex:-1,className:P,style:C,ref:function(L){r.wrapperNode=L}},m)}}])})(R.PureComponent),sfe=function(){return!(typeof window<"u"&&window.document&&window.document.createElement&&window.setTimeout)},Qu={isSsr:sfe()};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 yB(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 bB(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?yB(Object(n),!0).forEach(function(r){HD(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):yB(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function lfe(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function ufe(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,L2(r.key),r)}}function cfe(e,t,n){return t&&ufe(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function dfe(e,t,n){return t=ob(t),ffe(e,M2()?Reflect.construct(t,n||[],ob(e).constructor):t.apply(e,n))}function ffe(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 mfe(e)}function mfe(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function M2(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(M2=function(){return!!e})()}function ob(e){return ob=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},ob(e)}function pfe(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&&CC(e,t)}function CC(e,t){return CC=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,o){return r.__proto__=o,r},CC(e,t)}function HD(e,t,n){return t=L2(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function L2(e){var t=hfe(e,"string");return Dd(t)=="symbol"?t:t+""}function hfe(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)}function gfe(e){return e.dataKey}function vfe(e,t){return H.isValidElement(e)?H.cloneElement(e,t):typeof e=="function"?H.createElement(e,t):H.createElement(Fde,t)}var ei=(function(e){function t(){return lfe(this,t),dfe(this,t,arguments)}return pfe(t,e),cfe(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,_=o.useTranslate3d,D=o.viewBox,P=o.wrapperStyle,A=S??[];p&&A.length&&(A=A2(S.filter(function(j){return j.value!=null&&(j.hide!==!0||r.props.includeHidden)}),x,gfe));var C=A.length>0;return H.createElement(ofe,{allowEscapeViewBox:u,animationDuration:c,animationEasing:f,isAnimationActive:y,active:s,coordinate:g,hasPayload:C,offset:b,position:N,reverseDirection:T,useTranslate3d:_,viewBox:D,wrapperStyle:P},vfe(m,bB(bB({},this.props),{},{payload:A})))}}])})(R.PureComponent);HD(ei,"displayName","Tooltip");HD(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:!Qu.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 NO,xB;function yfe(){if(xB)return NO;xB=1;var e=so(),t=function(){return e.Date.now()};return NO=t,NO}var EO,wB;function bfe(){if(wB)return EO;wB=1;var e=/\s/;function t(n){for(var r=n.length;r--&&e.test(n.charAt(r)););return r}return EO=t,EO}var SO,NB;function xfe(){if(NB)return SO;NB=1;var e=bfe(),t=/^\s+/;function n(r){return r&&r.slice(0,e(r)+1).replace(t,"")}return SO=n,SO}var AO,EB;function k2(){if(EB)return AO;EB=1;var e=xfe(),t=ml(),n=lf(),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 AO=f,AO}var OO,SB;function wfe(){if(SB)return OO;SB=1;var e=ml(),t=yfe(),n=k2(),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,_=!1,D=!0;if(typeof c!="function")throw new TypeError(r);f=n(f)||0,e(m)&&(T=!!m.leading,_="maxWait"in m,y=_?o(n(m.maxWait)||0,f):y,D="trailing"in m?!!m.trailing:D);function P(F){var Y=g,ee=p;return g=p=void 0,N=F,b=c.apply(ee,Y),b}function A(F){return N=F,S=setTimeout(L,f),T?P(F):b}function C(F){var Y=F-x,ee=F-N,U=f-Y;return _?s(U,y-ee):U}function j(F){var Y=F-x,ee=F-N;return x===void 0||Y>=f||Y<0||_&&ee>=y}function L(){var F=t();if(j(F))return V(F);S=setTimeout(L,C(F))}function V(F){return S=void 0,D&&g?P(F):(g=p=void 0,b)}function B(){S!==void 0&&clearTimeout(S),N=0,g=x=p=S=void 0}function z(){return S===void 0?b:V(t())}function q(){var F=t(),Y=j(F);if(g=arguments,p=this,x=F,Y){if(S===void 0)return A(x);if(_)return clearTimeout(S),S=setTimeout(L,f),P(x)}return S===void 0&&(S=setTimeout(L,f)),b}return q.cancel=B,q.flush=z,q}return OO=u,OO}var TO,AB;function Nfe(){if(AB)return TO;AB=1;var e=wfe(),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 TO=r,TO}var Efe=Nfe();const I2=kt(Efe);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 OB(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 vy(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?OB(Object(n),!0).forEach(function(r){Sfe(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):OB(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function Sfe(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=Ofe(e,"string");return qp(t)=="symbol"?t:t+""}function Ofe(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 Tfe(e,t){return Rfe(e)||Dfe(e,t)||_fe(e,t)||Cfe()}function Cfe(){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 _fe(e,t){if(e){if(typeof e=="string")return TB(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 TB(e,t)}}function TB(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 Dfe(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 Rfe(e){if(Array.isArray(e))return e}var CB=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,_=e.onResize,D=e.style,P=D===void 0?{}:D,A=R.useRef(null),C=R.useRef();C.current=_,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=Tfe(j,2),V=L[0],B=L[1],z=R.useCallback(function(F,Y){B(function(ee){var U=Math.round(F),G=Math.round(Y);return ee.containerWidth===U&&ee.containerHeight===G?ee:{containerWidth:U,containerHeight:G}})},[]);R.useEffect(function(){var F=function(te){var ne,I=te[0].contentRect,Z=I.width,W=I.height;z(Z,W),(ne=C.current)===null||ne===void 0||ne.call(C,Z,W)};x>0&&(F=I2(F,x,{trailing:!0,leading:!1}));var Y=new ResizeObserver(F),ee=A.current.getBoundingClientRect(),U=ee.width,G=ee.height;return z(U,G),Y.observe(A.current),function(){Y.disconnect()}},[z,x]);var q=R.useMemo(function(){var F=V.containerWidth,Y=V.containerHeight;if(F<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 ee=gu(u)?F:u,U=gu(f)?Y:f;n&&n>0&&(ee?U=ee/n:U&&(ee=U*n),y&&U>y&&(U=y)),ii(ee>0||U>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.`,ee,U,u,f,g,p,n);var G=!Array.isArray(b)&&Qo(b.type).endsWith("Chart");return H.Children.map(b,function(K){return H.isValidElement(K)?R.cloneElement(K,vy({width:ee,height:U},G?{style:vy({height:"100%",width:"100%",maxHeight:U,maxWidth:ee},K.props.style)}:{})):K})},[n,b,f,y,p,g,V,u]);return H.createElement("div",{id:N?"".concat(N):void 0,className:nt("recharts-responsive-container",T),style:vy(vy({},P),{},{width:u,height:f,minWidth:g,minHeight:p,maxHeight:y}),ref:A},q)}),k0=function(t){return null};k0.displayName="Cell";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 _B(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 _C(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?_B(Object(n),!0).forEach(function(r){jfe(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):_B(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function jfe(e,t,n){return t=Pfe(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Pfe(e){var t=Mfe(e,"string");return Hp(t)=="symbol"?t:t+""}function Mfe(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 sd={widthCache:{},cacheCount:0},Lfe=2e3,kfe={position:"absolute",top:"-20000px",left:0,padding:0,margin:0,border:"none",whiteSpace:"pre"},DB="recharts_measurement_span";function Ife(e){var t=_C({},e);return Object.keys(t).forEach(function(n){t[n]||delete t[n]}),t}var bp=function(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(t==null||Qu.isSsr)return{width:0,height:0};var r=Ife(n),o=JSON.stringify({text:t,copyStyle:r});if(sd.widthCache[o])return sd.widthCache[o];try{var s=document.getElementById(DB);s||(s=document.createElement("span"),s.setAttribute("id",DB),s.setAttribute("aria-hidden","true"),document.body.appendChild(s));var u=_C(_C({},kfe),r);Object.assign(s.style,u),s.textContent="".concat(t);var c=s.getBoundingClientRect(),f={width:c.width,height:c.height};return sd.widthCache[o]=f,++sd.cacheCount>Lfe&&(sd.cacheCount=0,sd.widthCache={}),f}catch{return{width:0,height:0}}},$fe=function(t){return{top:t.top+window.scrollY-document.documentElement.clientTop,left:t.left+window.scrollX-document.documentElement.clientLeft}};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 sb(e,t){return Ufe(e)||zfe(e,t)||Bfe(e,t)||Vfe()}function Vfe(){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 Bfe(e,t){if(e){if(typeof e=="string")return RB(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 RB(e,t)}}function RB(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 zfe(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 Ufe(e){if(Array.isArray(e))return e}function qfe(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function jB(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,Ffe(r.key),r)}}function Hfe(e,t,n){return t&&jB(e.prototype,t),n&&jB(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function Ffe(e){var t=Kfe(e,"string");return Fp(t)=="symbol"?t:t+""}function Kfe(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 String(e)}var PB=/(-?\d+(?:\.\d+)?[a-zA-Z%]*)([*/])(-?\d+(?:\.\d+)?[a-zA-Z%]*)/,MB=/(-?\d+(?:\.\d+)?[a-zA-Z%]*)([+-])(-?\d+(?:\.\d+)?[a-zA-Z%]*)/,Gfe=/^px|cm|vh|vw|em|rem|%|mm|in|pt|pc|ex|ch|vmin|vmax|Q$/,Yfe=/(-?\d+(?:\.\d+)?)([a-zA-Z%]+)?/,$2={cm:96/2.54,mm:96/25.4,pt:96/72,pc:96/6,in:96,Q:96/(2.54*40),px:1},Qfe=Object.keys($2),dd="NaN";function Xfe(e,t){return e*$2[t]}var yy=(function(){function e(t,n){qfe(this,e),this.num=t,this.unit=n,this.num=t,this.unit=n,Number.isNaN(t)&&(this.unit=""),n!==""&&!Gfe.test(n)&&(this.num=NaN,this.unit=""),Qfe.includes(n)&&(this.num=Xfe(t,n),this.unit="px")}return Hfe(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=Yfe.exec(n))!==null&&r!==void 0?r:[],s=sb(o,3),u=s[1],c=s[2];return new e(parseFloat(u),c??"")}}])})();function V2(e){if(e.includes(dd))return dd;for(var t=e;t.includes("*")||t.includes("/");){var n,r=(n=PB.exec(t))!==null&&n!==void 0?n:[],o=sb(r,4),s=o[1],u=o[2],c=o[3],f=yy.parse(s??""),m=yy.parse(c??""),g=u==="*"?f.multiply(m):f.divide(m);if(g.isNaN())return dd;t=t.replace(PB,g.toString())}for(;t.includes("+")||/.-\d+(?:\.\d+)?/.test(t);){var p,y=(p=MB.exec(t))!==null&&p!==void 0?p:[],b=sb(y,4),S=b[1],x=b[2],N=b[3],T=yy.parse(S??""),_=yy.parse(N??""),D=x==="+"?T.add(_):T.subtract(_);if(D.isNaN())return dd;t=t.replace(MB,D.toString())}return t}var LB=/\(([^()]*)\)/;function Wfe(e){for(var t=e;t.includes("(");){var n=LB.exec(t),r=sb(n,2),o=r[1];t=t.replace(LB,V2(o))}return t}function Zfe(e){var t=e.replace(/\s+/g,"");return t=Wfe(t),t=V2(t),t}function Jfe(e){try{return Zfe(e)}catch{return dd}}function CO(e){var t=Jfe(e.slice(5,-1));return t===dd?"":t}var eme=["x","y","lineHeight","capHeight","scaleToFit","textAnchor","verticalAnchor","fill"],tme=["dx","dy","angle","className","breakAll"];function DC(){return DC=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},DC.apply(this,arguments)}function kB(e,t){if(e==null)return{};var n=nme(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 nme(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 IB(e,t){return ome(e)||ime(e,t)||ame(e,t)||rme()}function rme(){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 ame(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 $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 ime(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 ome(e){if(Array.isArray(e))return e}var B2=/[ \f\n\r\t\v\u2028\u2029]+/,z2=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(B2));var u=s.map(function(f){return{word:f,width:bp(f,o).width}}),c=r?0:bp(" ",o).width;return{wordsWithComputedWidth:u,spaceWidth:c}}catch{return null}},sme=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 ee=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];return ee.reduce(function(U,G){var K=G.word,te=G.width,ne=U[U.length-1];if(ne&&(o==null||s||ne.width+te+r<Number(o)))ne.words.push(K),ne.width+=te+r;else{var I={words:[K],width:te};U.push(I)}return U},[])},b=y(n),S=function(ee){return ee.reduce(function(U,G){return U.width>G.width?U:G})};if(!g)return b;for(var x="…",N=function(ee){var U=p.slice(0,ee),G=z2({breakAll:m,style:f,children:U+x}).wordsWithComputedWidth,K=y(G),te=K.length>u||S(K).width>Number(o);return[te,K]},T=0,_=p.length-1,D=0,P;T<=_&&D<=p.length-1;){var A=Math.floor((T+_)/2),C=A-1,j=N(C),L=IB(j,2),V=L[0],B=L[1],z=N(A),q=IB(z,1),F=q[0];if(!V&&!F&&(T=A+1),V&&F&&(_=A-1),!V&&F){P=B;break}D++}return P||b},VB=function(t){var n=rt(t)?[]:t.toString().split(B2);return[{words:n}]},lme=function(t){var n=t.width,r=t.scaleToFit,o=t.children,s=t.style,u=t.breakAll,c=t.maxLines;if((n||r)&&!Qu.isSsr){var f,m,g=z2({breakAll:u,children:o,style:s});if(g){var p=g.wordsWithComputedWidth,y=g.spaceWidth;f=p,m=y}else return VB(o);return sme({breakAll:u,children:o,maxLines:c,style:s},f,m,n,r)}return VB(o)},BB="#808080",Iu=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?BB:N,_=kB(t,eme),D=R.useMemo(function(){return lme({breakAll:_.breakAll,children:_.children,maxLines:_.maxLines,scaleToFit:p,style:_.style,width:_.width})},[_.breakAll,_.children,_.maxLines,p,_.style,_.width]),P=_.dx,A=_.dy,C=_.angle,j=_.className,L=_.breakAll,V=kB(_,tme);if(!Vn(r)||!Vn(s))return null;var B=r+(Oe(P)?P:0),z=s+(Oe(A)?A:0),q;switch(x){case"start":q=CO("calc(".concat(m,")"));break;case"middle":q=CO("calc(".concat((D.length-1)/2," * -").concat(c," + (").concat(m," / 2))"));break;default:q=CO("calc(".concat(D.length-1," * -").concat(c,")"));break}var F=[];if(p){var Y=D[0].width,ee=_.width;F.push("scale(".concat((Oe(ee)?ee/Y:1)/Y,")"))}return C&&F.push("rotate(".concat(C,", ").concat(B,", ").concat(z,")")),F.length&&(V.transform=F.join(" ")),H.createElement("text",DC({},Fe(V,!0),{x:B,y:z,className:nt("recharts-text",j),textAnchor:b,fill:T.includes("url")?BB:T}),D.map(function(U,G){var K=U.words.join(L?"":" ");return H.createElement("tspan",{x:B,dy:G===0?q:c,key:"".concat(K,"-").concat(G)},K)}))};function sl(e,t){return e==null||t==null?NaN:e<t?-1:e>t?1:e>=t?0:NaN}function ume(e,t){return e==null||t==null?NaN:t<e?-1:t>e?1:t>=e?0:NaN}function FD(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===ume?e:cme,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 cme(){return 0}function U2(e){return e===null?NaN:+e}function*dme(e,t){for(let n of e)n!=null&&(n=+n)>=n&&(yield n)}const fme=FD(sl),Ph=fme.right;FD(U2).center;class zB extends Map{constructor(t,n=hme){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(UB(this,t))}has(t){return super.has(UB(this,t))}set(t,n){return super.set(mme(this,t),n)}delete(t){return super.delete(pme(this,t))}}function UB({_intern:e,_key:t},n){const r=t(n);return e.has(r)?e.get(r):n}function mme({_intern:e,_key:t},n){const r=t(n);return e.has(r)?e.get(r):(e.set(r,n),n)}function pme({_intern:e,_key:t},n){const r=t(n);return e.has(r)&&(n=e.get(r),e.delete(r)),n}function hme(e){return e!==null&&typeof e=="object"?e.valueOf():e}function gme(e=sl){if(e===sl)return q2;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 q2(e,t){return(e==null||!(e>=e))-(t==null||!(t>=t))||(e<t?-1:e>t?1:0)}const vme=Math.sqrt(50),yme=Math.sqrt(10),bme=Math.sqrt(2);function lb(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>=vme?10:s>=yme?5:s>=bme?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?lb(e,t,n*2):[c,f,m]}function RC(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?lb(t,e,n):lb(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 jC(e,t,n){return t=+t,e=+e,n=+n,lb(e,t,n)[2]}function PC(e,t,n){t=+t,e=+e,n=+n;const r=t<e,o=r?jC(t,e,n):jC(e,t,n);return(r?-1:1)*(o<0?1/-o:o)}function qB(e,t){let n;for(const r of e)r!=null&&(n<r||n===void 0&&r>=r)&&(n=r);return n}function HB(e,t){let n;for(const r of e)r!=null&&(n>r||n===void 0&&r>=r)&&(n=r);return n}function H2(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?q2:gme(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));H2(e,t,b,S,o)}const s=e[t];let u=n,c=r;for(ep(e,n,t),o(e[r],s)>0&&ep(e,n,r);u<c;){for(ep(e,u,c),++u,--c;o(e[u],s)<0;)++u;for(;o(e[c],s)>0;)--c}o(e[n],s)===0?ep(e,n,c):(++c,ep(e,c,r)),c<=t&&(n=c+1),t<=c&&(r=c-1)}return e}function ep(e,t,n){const r=e[t];e[t]=e[n],e[n]=r}function xme(e,t,n){if(e=Float64Array.from(dme(e)),!(!(r=e.length)||isNaN(t=+t))){if(t<=0||r<2)return HB(e);if(t>=1)return qB(e);var r,o=(r-1)*t,s=Math.floor(o),u=qB(H2(e,s).subarray(0,s+1)),c=HB(e.subarray(s+1));return u+(c-u)*(o-s)}}function wme(e,t,n=U2){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 Nme(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 MC=Symbol("implicit");function KD(){var e=new zB,t=[],n=[],r=MC;function o(s){let u=e.get(s);if(u===void 0){if(r!==MC)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 zB;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 KD(t,n).unknown(r)},Va.apply(o,arguments),o}function Kp(){var e=KD().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=Nme(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 Kp(t(),[r,o]).round(c).paddingInner(f).paddingOuter(m).align(g)},Va.apply(p(),arguments)}function F2(e){var t=e.copy;return e.padding=e.paddingOuter,delete e.paddingInner,delete e.paddingOuter,e.copy=function(){return F2(t())},e}function xp(){return F2(Kp.apply(null,arguments).paddingInner(1))}function GD(e,t,n){e.prototype=t.prototype=n,n.constructor=e}function K2(e,t){var n=Object.create(e.prototype);for(var r in t)n[r]=t[r];return n}function Mh(){}var Gp=.7,ub=1/Gp,bd="\\s*([+-]?\\d+)\\s*",Yp="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*",Zi="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*",Eme=/^#([0-9a-f]{3,8})$/,Sme=new RegExp(`^rgb\\(${bd},${bd},${bd}\\)$`),Ame=new RegExp(`^rgb\\(${Zi},${Zi},${Zi}\\)$`),Ome=new RegExp(`^rgba\\(${bd},${bd},${bd},${Yp}\\)$`),Tme=new RegExp(`^rgba\\(${Zi},${Zi},${Zi},${Yp}\\)$`),Cme=new RegExp(`^hsl\\(${Yp},${Zi},${Zi}\\)$`),_me=new RegExp(`^hsla\\(${Yp},${Zi},${Zi},${Yp}\\)$`),FB={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};GD(Mh,Qp,{copy(e){return Object.assign(new this.constructor,this,e)},displayable(){return this.rgb().displayable()},hex:KB,formatHex:KB,formatHex8:Dme,formatHsl:Rme,formatRgb:GB,toString:GB});function KB(){return this.rgb().formatHex()}function Dme(){return this.rgb().formatHex8()}function Rme(){return G2(this).formatHsl()}function GB(){return this.rgb().formatRgb()}function Qp(e){var t,n;return e=(e+"").trim().toLowerCase(),(t=Eme.exec(e))?(n=t[1].length,t=parseInt(t[1],16),n===6?YB(t):n===3?new Fr(t>>8&15|t>>4&240,t>>4&15|t&240,(t&15)<<4|t&15,1):n===8?by(t>>24&255,t>>16&255,t>>8&255,(t&255)/255):n===4?by(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=Sme.exec(e))?new Fr(t[1],t[2],t[3],1):(t=Ame.exec(e))?new Fr(t[1]*255/100,t[2]*255/100,t[3]*255/100,1):(t=Ome.exec(e))?by(t[1],t[2],t[3],t[4]):(t=Tme.exec(e))?by(t[1]*255/100,t[2]*255/100,t[3]*255/100,t[4]):(t=Cme.exec(e))?WB(t[1],t[2]/100,t[3]/100,1):(t=_me.exec(e))?WB(t[1],t[2]/100,t[3]/100,t[4]):FB.hasOwnProperty(e)?YB(FB[e]):e==="transparent"?new Fr(NaN,NaN,NaN,0):null}function YB(e){return new Fr(e>>16&255,e>>8&255,e&255,1)}function by(e,t,n,r){return r<=0&&(e=t=n=NaN),new Fr(e,t,n,r)}function jme(e){return e instanceof Mh||(e=Qp(e)),e?(e=e.rgb(),new Fr(e.r,e.g,e.b,e.opacity)):new Fr}function LC(e,t,n,r){return arguments.length===1?jme(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}GD(Fr,LC,K2(Mh,{brighter(e){return e=e==null?ub:Math.pow(ub,e),new Fr(this.r*e,this.g*e,this.b*e,this.opacity)},darker(e){return e=e==null?Gp:Math.pow(Gp,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),cb(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:QB,formatHex:QB,formatHex8:Pme,formatRgb:XB,toString:XB}));function QB(){return`#${vu(this.r)}${vu(this.g)}${vu(this.b)}`}function Pme(){return`#${vu(this.r)}${vu(this.g)}${vu(this.b)}${vu((isNaN(this.opacity)?1:this.opacity)*255)}`}function XB(){const e=cb(this.opacity);return`${e===1?"rgb(":"rgba("}${Nu(this.r)}, ${Nu(this.g)}, ${Nu(this.b)}${e===1?")":`, ${e})`}`}function cb(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 WB(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 G2(e){if(e instanceof ni)return new ni(e.h,e.s,e.l,e.opacity);if(e instanceof Mh||(e=Qp(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 Mme(e,t,n,r){return arguments.length===1?G2(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}GD(ni,Mme,K2(Mh,{brighter(e){return e=e==null?ub:Math.pow(ub,e),new ni(this.h,this.s,this.l*e,this.opacity)},darker(e){return e=e==null?Gp:Math.pow(Gp,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(_O(e>=240?e-240:e+120,o,r),_O(e,o,r),_O(e<120?e+240:e-120,o,r),this.opacity)},clamp(){return new ni(ZB(this.h),xy(this.s),xy(this.l),cb(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=cb(this.opacity);return`${e===1?"hsl(":"hsla("}${ZB(this.h)}, ${xy(this.s)*100}%, ${xy(this.l)*100}%${e===1?")":`, ${e})`}`}}));function ZB(e){return e=(e||0)%360,e<0?e+360:e}function xy(e){return Math.max(0,Math.min(1,e||0))}function _O(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 YD=e=>()=>e;function Lme(e,t){return function(n){return e+n*t}}function kme(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 Ime(e){return(e=+e)==1?Y2:function(t,n){return n-t?kme(t,n,e):YD(isNaN(t)?n:t)}}function Y2(e,t){var n=t-e;return n?Lme(e,n):YD(isNaN(e)?t:e)}const JB=(function e(t){var n=Ime(t);function r(o,s){var u=n((o=LC(o)).r,(s=LC(s)).r),c=n(o.g,s.g),f=n(o.b,s.b),m=Y2(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 $me(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 Vme(e){return ArrayBuffer.isView(e)&&!(e instanceof DataView)}function Bme(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]=mf(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 zme(e,t){var n=new Date;return e=+e,t=+t,function(r){return n.setTime(e*(1-r)+t*r),n}}function db(e,t){return e=+e,t=+t,function(n){return e*(1-n)+t*n}}function Ume(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]=mf(e[o],t[o]):r[o]=t[o];return function(s){for(o in n)r[o]=n[o](s);return r}}var kC=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,DO=new RegExp(kC.source,"g");function qme(e){return function(){return e}}function Hme(e){return function(t){return e(t)+""}}function Fme(e,t){var n=kC.lastIndex=DO.lastIndex=0,r,o,s,u=-1,c=[],f=[];for(e=e+"",t=t+"";(r=kC.exec(e))&&(o=DO.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:db(r,o)})),n=DO.lastIndex;return n<t.length&&(s=t.slice(n),c[u]?c[u]+=s:c[++u]=s),c.length<2?f[0]?Hme(f[0].x):qme(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 mf(e,t){var n=typeof t,r;return t==null||n==="boolean"?YD(t):(n==="number"?db:n==="string"?(r=Qp(t))?(t=r,JB):Fme:t instanceof Qp?JB:t instanceof Date?zme:Vme(t)?$me:Array.isArray(t)?Bme:typeof t.valueOf!="function"&&typeof t.toString!="function"||isNaN(t)?Ume:db)(e,t)}function QD(e,t){return e=+e,t=+t,function(n){return Math.round(e*(1-n)+t*n)}}function Kme(e,t){t===void 0&&(t=e,e=mf);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 Gme(e){return function(){return e}}function fb(e){return+e}var e6=[0,1];function jr(e){return e}function IC(e,t){return(t-=e=+e)?function(n){return(n-e)/t}:Gme(isNaN(t)?NaN:.5)}function Yme(e,t){var n;return e>t&&(n=e,e=t,t=n),function(r){return Math.max(e,Math.min(t,r))}}function Qme(e,t,n){var r=e[0],o=e[1],s=t[0],u=t[1];return o<r?(r=IC(o,r),s=n(u,s)):(r=IC(r,o),s=n(s,u)),function(c){return s(r(c))}}function Xme(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]=IC(e[u],e[u+1]),s[u]=n(t[u],t[u+1]);return function(c){var f=Ph(e,c,1,r)-1;return s[f](o[f](c))}}function Lh(e,t){return t.domain(e.domain()).range(e.range()).interpolate(e.interpolate()).clamp(e.clamp()).unknown(e.unknown())}function I0(){var e=e6,t=e6,n=mf,r,o,s,u=jr,c,f,m;function g(){var y=Math.min(e.length,t.length);return u!==jr&&(u=Yme(e[0],e[y-1])),c=y>2?Xme:Qme,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),db)))(y)))},p.domain=function(y){return arguments.length?(e=Array.from(y,fb),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=QD,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 XD(){return I0()(jr,jr)}function Wme(e){return Math.abs(e=Math.round(e))>=1e21?e.toLocaleString("en").replace(/,/g,""):e.toString(10)}function mb(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 Rd(e){return e=mb(Math.abs(e)),e?e[1]:NaN}function Zme(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 Jme(e){return function(t){return t.replace(/[0-9]/g,function(n){return e[+n]})}}var epe=/^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;function Xp(e){if(!(t=epe.exec(e)))throw new Error("invalid format: "+e);var t;return new WD({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]})}Xp.prototype=WD.prototype;function WD(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+""}WD.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 tpe(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 Q2;function npe(e,t){var n=mb(e,t);if(!n)return e+"";var r=n[0],o=n[1],s=o-(Q2=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")+mb(e,Math.max(0,t+s-1))[0]}function t6(e,t){var n=mb(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 n6={"%":(e,t)=>(e*100).toFixed(t),b:e=>Math.round(e).toString(2),c:e=>e+"",d:Wme,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)=>t6(e*100,t),r:t6,s:npe,X:e=>Math.round(e).toString(16).toUpperCase(),x:e=>Math.round(e).toString(16)};function r6(e){return e}var a6=Array.prototype.map,i6=["y","z","a","f","p","n","µ","m","","k","M","G","T","P","E","Z","Y"];function rpe(e){var t=e.grouping===void 0||e.thousands===void 0?r6:Zme(a6.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?r6:Jme(a6.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=Xp(p);var y=p.fill,b=p.align,S=p.sign,x=p.symbol,N=p.zero,T=p.width,_=p.comma,D=p.precision,P=p.trim,A=p.type;A==="n"?(_=!0,A="g"):n6[A]||(D===void 0&&(D=12),P=!0,A="g"),(N||y==="0"&&b==="=")&&(N=!0,y="0",b="=");var C=x==="$"?n:x==="#"&&/[boxX]/.test(A)?"0"+A.toLowerCase():"",j=x==="$"?r:/[%p]/.test(A)?u:"",L=n6[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(z){var q=C,F=j,Y,ee,U;if(A==="c")F=L(z)+F,z="";else{z=+z;var G=z<0||1/z<0;if(z=isNaN(z)?f:L(Math.abs(z),D),P&&(z=tpe(z)),G&&+z==0&&S!=="+"&&(G=!1),q=(G?S==="("?S:c:S==="-"||S==="("?"":S)+q,F=(A==="s"?i6[8+Q2/3]:"")+F+(G&&S==="("?")":""),V){for(Y=-1,ee=z.length;++Y<ee;)if(U=z.charCodeAt(Y),48>U||U>57){F=(U===46?o+z.slice(Y+1):z.slice(Y))+F,z=z.slice(0,Y);break}}}_&&!N&&(z=t(z,1/0));var K=q.length+z.length+F.length,te=K<T?new Array(T-K+1).join(y):"";switch(_&&N&&(z=t(te+z,te.length?T-F.length:1/0),te=""),b){case"<":z=q+z+F+te;break;case"=":z=q+te+z+F;break;case"^":z=te.slice(0,K=te.length>>1)+q+z+F+te.slice(K);break;default:z=te+q+z+F;break}return s(z)}return B.toString=function(){return p+""},B}function g(p,y){var b=m((p=Xp(p),p.type="f",p)),S=Math.max(-8,Math.min(8,Math.floor(Rd(y)/3)))*3,x=Math.pow(10,-S),N=i6[8+S/3];return function(T){return b(x*T)+N}}return{format:m,formatPrefix:g}}var wy,ZD,X2;ape({thousands:",",grouping:[3],currency:["$",""]});function ape(e){return wy=rpe(e),ZD=wy.format,X2=wy.formatPrefix,wy}function ipe(e){return Math.max(0,-Rd(Math.abs(e)))}function ope(e,t){return Math.max(0,Math.max(-8,Math.min(8,Math.floor(Rd(t)/3)))*3-Rd(Math.abs(e)))}function spe(e,t){return e=Math.abs(e),t=Math.abs(t)-e,Math.max(0,Rd(t)-Rd(e))+1}function W2(e,t,n,r){var o=PC(e,t,n),s;switch(r=Xp(r??",f"),r.type){case"s":{var u=Math.max(Math.abs(e),Math.abs(t));return r.precision==null&&!isNaN(s=ope(o,u))&&(r.precision=s),X2(r,u)}case"":case"e":case"g":case"p":case"r":{r.precision==null&&!isNaN(s=spe(o,Math.max(Math.abs(e),Math.abs(t))))&&(r.precision=s-(r.type==="e"));break}case"f":case"%":{r.precision==null&&!isNaN(s=ipe(o))&&(r.precision=s-(r.type==="%")*2);break}}return ZD(r)}function pl(e){var t=e.domain;return e.ticks=function(n){var r=t();return RC(r[0],r[r.length-1],n??10)},e.tickFormat=function(n,r){var o=t();return W2(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=jC(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 pb(){var e=XD();return e.copy=function(){return Lh(e,pb())},Va.apply(e,arguments),pl(e)}function Z2(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,fb),n):e.slice()},n.unknown=function(r){return arguments.length?(t=r,n):t},n.copy=function(){return Z2(e).unknown(t)},e=arguments.length?Array.from(e,fb):[0,1],pl(n)}function J2(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 o6(e){return Math.log(e)}function s6(e){return Math.exp(e)}function lpe(e){return-Math.log(-e)}function upe(e){return-Math.exp(-e)}function cpe(e){return isFinite(e)?+("1e"+e):e<0?0:e}function dpe(e){return e===10?cpe:e===Math.E?Math.exp:t=>Math.pow(e,t)}function fpe(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 l6(e){return(t,n)=>-e(-t,n)}function JD(e){const t=e(o6,s6),n=t.domain;let r=10,o,s;function u(){return o=fpe(r),s=dpe(r),n()[0]<0?(o=l6(o),s=l6(s),e(lpe,upe)):e(o6,s6),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=RC(m,g,N))}else T=RC(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=Xp(f)).precision==null&&(f.trim=!0),f=ZD(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(J2(n(),{floor:c=>s(Math.floor(o(c))),ceil:c=>s(Math.ceil(o(c)))})),t}function eH(){const e=JD(I0()).domain([1,10]);return e.copy=()=>Lh(e,eH()).base(e.base()),Va.apply(e,arguments),e}function u6(e){return function(t){return Math.sign(t)*Math.log1p(Math.abs(t/e))}}function c6(e){return function(t){return Math.sign(t)*Math.expm1(Math.abs(t))*e}}function eR(e){var t=1,n=e(u6(t),c6(t));return n.constant=function(r){return arguments.length?e(u6(t=+r),c6(t)):t},pl(n)}function tH(){var e=eR(I0());return e.copy=function(){return Lh(e,tH()).constant(e.constant())},Va.apply(e,arguments)}function d6(e){return function(t){return t<0?-Math.pow(-t,e):Math.pow(t,e)}}function mpe(e){return e<0?-Math.sqrt(-e):Math.sqrt(e)}function ppe(e){return e<0?-e*e:e*e}function tR(e){var t=e(jr,jr),n=1;function r(){return n===1?e(jr,jr):n===.5?e(mpe,ppe):e(d6(n),d6(1/n))}return t.exponent=function(o){return arguments.length?(n=+o,r()):n},pl(t)}function nR(){var e=tR(I0());return e.copy=function(){return Lh(e,nR()).exponent(e.exponent())},Va.apply(e,arguments),e}function hpe(){return nR.apply(null,arguments).exponent(.5)}function f6(e){return Math.sign(e)*e*e}function gpe(e){return Math.sign(e)*Math.sqrt(Math.abs(e))}function nH(){var e=XD(),t=[0,1],n=!1,r;function o(s){var u=gpe(e(s));return isNaN(u)?r:n?Math.round(u):u}return o.invert=function(s){return e.invert(f6(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,fb)).map(f6)),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 nH(e.domain(),t).round(n).clamp(e.clamp()).unknown(r)},Va.apply(o,arguments),pl(o)}function rH(){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]=wme(e,u/c);return s}function s(u){return u==null||isNaN(u=+u)?r:t[Ph(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 rH().domain(e).range(t).unknown(r)},Va.apply(s,arguments)}function aH(){var e=0,t=1,n=1,r=[.5],o=[0,1],s;function u(f){return f!=null&&f<=f?o[Ph(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 aH().domain([e,t]).range(o).unknown(s)},Va.apply(pl(u),arguments)}function iH(){var e=[.5],t=[0,1],n,r=1;function o(s){return s!=null&&s<=s?t[Ph(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 iH().domain(e).range(t).unknown(n)},Va.apply(o,arguments)}const RO=new Date,jO=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)=>(RO.setTime(+s),jO.setTime(+u),e(RO),e(jO),Math.floor(n(RO,jO))),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 hb=Bn(()=>{},(e,t)=>{e.setTime(+e+t)},(e,t)=>t-e);hb.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):hb);hb.range;const Fo=1e3,La=Fo*60,Ko=La*60,es=Ko*24,rR=es*7,m6=es*30,PO=es*365,yu=Bn(e=>{e.setTime(e-e.getMilliseconds())},(e,t)=>{e.setTime(+e+t*Fo)},(e,t)=>(t-e)/Fo,e=>e.getUTCSeconds());yu.range;const aR=Bn(e=>{e.setTime(e-e.getMilliseconds()-e.getSeconds()*Fo)},(e,t)=>{e.setTime(+e+t*La)},(e,t)=>(t-e)/La,e=>e.getMinutes());aR.range;const iR=Bn(e=>{e.setUTCSeconds(0,0)},(e,t)=>{e.setTime(+e+t*La)},(e,t)=>(t-e)/La,e=>e.getUTCMinutes());iR.range;const oR=Bn(e=>{e.setTime(e-e.getMilliseconds()-e.getSeconds()*Fo-e.getMinutes()*La)},(e,t)=>{e.setTime(+e+t*Ko)},(e,t)=>(t-e)/Ko,e=>e.getHours());oR.range;const sR=Bn(e=>{e.setUTCMinutes(0,0,0)},(e,t)=>{e.setTime(+e+t*Ko)},(e,t)=>(t-e)/Ko,e=>e.getUTCHours());sR.range;const kh=Bn(e=>e.setHours(0,0,0,0),(e,t)=>e.setDate(e.getDate()+t),(e,t)=>(t-e-(t.getTimezoneOffset()-e.getTimezoneOffset())*La)/es,e=>e.getDate()-1);kh.range;const $0=Bn(e=>{e.setUTCHours(0,0,0,0)},(e,t)=>{e.setUTCDate(e.getUTCDate()+t)},(e,t)=>(t-e)/es,e=>e.getUTCDate()-1);$0.range;const oH=Bn(e=>{e.setUTCHours(0,0,0,0)},(e,t)=>{e.setUTCDate(e.getUTCDate()+t)},(e,t)=>(t-e)/es,e=>Math.floor(e/es));oH.range;function Xu(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)/rR)}const V0=Xu(0),gb=Xu(1),vpe=Xu(2),ype=Xu(3),jd=Xu(4),bpe=Xu(5),xpe=Xu(6);V0.range;gb.range;vpe.range;ype.range;jd.range;bpe.range;xpe.range;function Wu(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)/rR)}const B0=Wu(0),vb=Wu(1),wpe=Wu(2),Npe=Wu(3),Pd=Wu(4),Epe=Wu(5),Spe=Wu(6);B0.range;vb.range;wpe.range;Npe.range;Pd.range;Epe.range;Spe.range;const lR=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());lR.range;const uR=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());uR.range;const ts=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());ts.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)});ts.range;const ns=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());ns.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)});ns.range;function sH(e,t,n,r,o,s){const u=[[yu,1,Fo],[yu,5,5*Fo],[yu,15,15*Fo],[yu,30,30*Fo],[s,1,La],[s,5,5*La],[s,15,15*La],[s,30,30*La],[o,1,Ko],[o,3,3*Ko],[o,6,6*Ko],[o,12,12*Ko],[r,1,es],[r,2,2*es],[n,1,rR],[t,1,m6],[t,3,3*m6],[e,1,PO]];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=FD(([,,N])=>N).right(u,y);if(b===u.length)return e.every(PC(m/PO,g/PO,p));if(b===0)return hb.every(Math.max(PC(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[Ape,Ope]=sH(ns,uR,B0,oH,sR,iR),[Tpe,Cpe]=sH(ts,lR,V0,kh,oR,aR);function MO(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 LO(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 tp(e,t,n){return{y:e,m:t,d:n,H:0,M:0,S:0,L:0}}function _pe(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=np(o),g=rp(o),p=np(s),y=rp(s),b=np(u),S=rp(u),x=np(c),N=rp(c),T=np(f),_=rp(f),D={a:G,A:K,b:te,B:ne,c:null,d:b6,e:b6,f:Zpe,g:lhe,G:che,H:Qpe,I:Xpe,j:Wpe,L:lH,m:Jpe,M:ehe,p:I,q:Z,Q:N6,s:E6,S:the,u:nhe,U:rhe,V:ahe,w:ihe,W:ohe,x:null,X:null,y:she,Y:uhe,Z:dhe,"%":w6},P={a:W,A:ae,b:ge,B:Ne,c:null,d:x6,e:x6,f:hhe,g:Ahe,G:The,H:fhe,I:mhe,j:phe,L:cH,m:ghe,M:vhe,p:ue,q:xe,Q:N6,s:E6,S:yhe,u:bhe,U:xhe,V:whe,w:Nhe,W:Ehe,x:null,X:null,y:She,Y:Ohe,Z:Che,"%":w6},A={a:B,A:z,b:q,B:F,c:Y,d:v6,e:v6,f:Fpe,g:g6,G:h6,H:y6,I:y6,j:zpe,L:Hpe,m:Bpe,M:Upe,p:V,q:Vpe,Q:Gpe,s:Ype,S:qpe,u:Mpe,U:Lpe,V:kpe,w:Ppe,W:Ipe,x:ee,X:U,y:g6,Y:h6,Z:$pe,"%":Kpe};D.x=C(n,D),D.X=C(r,D),D.c=C(t,D),P.x=C(n,P),P.X=C(r,P),P.c=C(t,P);function C(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=p6[$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=tp(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=LO(tp(ie.y,0,1)),lt=we.getUTCDay(),we=lt>4||lt===0?vb.ceil(we):vb(we),we=$0.offset(we,(ie.V-1)*7),ie.y=we.getUTCFullYear(),ie.m=we.getUTCMonth(),ie.d=we.getUTCDate()+(ie.w+6)%7):(we=MO(tp(ie.y,0,1)),lt=we.getDay(),we=lt>4||lt===0?gb.ceil(we):gb(we),we=kh.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?LO(tp(ie.y,0,1)).getUTCDay():MO(tp(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,LO(ie)):MO(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 p6?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 z(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 q(me,be,de){var ie=T.exec(be.slice(de));return ie?(me.m=_.get(ie[0].toLowerCase()),de+ie[0].length):-1}function F(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 ee(me,be,de){return L(me,n,be,de)}function U(me,be,de){return L(me,r,be,de)}function G(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 I(me){return o[+(me.getHours()>=12)]}function Z(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 ue(me){return o[+(me.getUTCHours()>=12)]}function xe(me){return 1+~~(me.getUTCMonth()/3)}return{format:function(me){var be=C(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=C(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 p6={"-":"",_:" ",0:"0"},Wn=/^\s*\d+/,Dpe=/^%/,Rpe=/[\\^$*+?|[\]().{}]/g;function St(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 jpe(e){return e.replace(Rpe,"\\$&")}function np(e){return new RegExp("^(?:"+e.map(jpe).join("|")+")","i")}function rp(e){return new Map(e.map((t,n)=>[t.toLowerCase(),n]))}function Ppe(e,t,n){var r=Wn.exec(t.slice(n,n+1));return r?(e.w=+r[0],n+r[0].length):-1}function Mpe(e,t,n){var r=Wn.exec(t.slice(n,n+1));return r?(e.u=+r[0],n+r[0].length):-1}function Lpe(e,t,n){var r=Wn.exec(t.slice(n,n+2));return r?(e.U=+r[0],n+r[0].length):-1}function kpe(e,t,n){var r=Wn.exec(t.slice(n,n+2));return r?(e.V=+r[0],n+r[0].length):-1}function Ipe(e,t,n){var r=Wn.exec(t.slice(n,n+2));return r?(e.W=+r[0],n+r[0].length):-1}function h6(e,t,n){var r=Wn.exec(t.slice(n,n+4));return r?(e.y=+r[0],n+r[0].length):-1}function g6(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 $pe(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 Vpe(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 Bpe(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 v6(e,t,n){var r=Wn.exec(t.slice(n,n+2));return r?(e.d=+r[0],n+r[0].length):-1}function zpe(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 y6(e,t,n){var r=Wn.exec(t.slice(n,n+2));return r?(e.H=+r[0],n+r[0].length):-1}function Upe(e,t,n){var r=Wn.exec(t.slice(n,n+2));return r?(e.M=+r[0],n+r[0].length):-1}function qpe(e,t,n){var r=Wn.exec(t.slice(n,n+2));return r?(e.S=+r[0],n+r[0].length):-1}function Hpe(e,t,n){var r=Wn.exec(t.slice(n,n+3));return r?(e.L=+r[0],n+r[0].length):-1}function Fpe(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 Kpe(e,t,n){var r=Dpe.exec(t.slice(n,n+1));return r?n+r[0].length:-1}function Gpe(e,t,n){var r=Wn.exec(t.slice(n));return r?(e.Q=+r[0],n+r[0].length):-1}function Ype(e,t,n){var r=Wn.exec(t.slice(n));return r?(e.s=+r[0],n+r[0].length):-1}function b6(e,t){return St(e.getDate(),t,2)}function Qpe(e,t){return St(e.getHours(),t,2)}function Xpe(e,t){return St(e.getHours()%12||12,t,2)}function Wpe(e,t){return St(1+kh.count(ts(e),e),t,3)}function lH(e,t){return St(e.getMilliseconds(),t,3)}function Zpe(e,t){return lH(e,t)+"000"}function Jpe(e,t){return St(e.getMonth()+1,t,2)}function ehe(e,t){return St(e.getMinutes(),t,2)}function the(e,t){return St(e.getSeconds(),t,2)}function nhe(e){var t=e.getDay();return t===0?7:t}function rhe(e,t){return St(V0.count(ts(e)-1,e),t,2)}function uH(e){var t=e.getDay();return t>=4||t===0?jd(e):jd.ceil(e)}function ahe(e,t){return e=uH(e),St(jd.count(ts(e),e)+(ts(e).getDay()===4),t,2)}function ihe(e){return e.getDay()}function ohe(e,t){return St(gb.count(ts(e)-1,e),t,2)}function she(e,t){return St(e.getFullYear()%100,t,2)}function lhe(e,t){return e=uH(e),St(e.getFullYear()%100,t,2)}function uhe(e,t){return St(e.getFullYear()%1e4,t,4)}function che(e,t){var n=e.getDay();return e=n>=4||n===0?jd(e):jd.ceil(e),St(e.getFullYear()%1e4,t,4)}function dhe(e){var t=e.getTimezoneOffset();return(t>0?"-":(t*=-1,"+"))+St(t/60|0,"0",2)+St(t%60,"0",2)}function x6(e,t){return St(e.getUTCDate(),t,2)}function fhe(e,t){return St(e.getUTCHours(),t,2)}function mhe(e,t){return St(e.getUTCHours()%12||12,t,2)}function phe(e,t){return St(1+$0.count(ns(e),e),t,3)}function cH(e,t){return St(e.getUTCMilliseconds(),t,3)}function hhe(e,t){return cH(e,t)+"000"}function ghe(e,t){return St(e.getUTCMonth()+1,t,2)}function vhe(e,t){return St(e.getUTCMinutes(),t,2)}function yhe(e,t){return St(e.getUTCSeconds(),t,2)}function bhe(e){var t=e.getUTCDay();return t===0?7:t}function xhe(e,t){return St(B0.count(ns(e)-1,e),t,2)}function dH(e){var t=e.getUTCDay();return t>=4||t===0?Pd(e):Pd.ceil(e)}function whe(e,t){return e=dH(e),St(Pd.count(ns(e),e)+(ns(e).getUTCDay()===4),t,2)}function Nhe(e){return e.getUTCDay()}function Ehe(e,t){return St(vb.count(ns(e)-1,e),t,2)}function She(e,t){return St(e.getUTCFullYear()%100,t,2)}function Ahe(e,t){return e=dH(e),St(e.getUTCFullYear()%100,t,2)}function Ohe(e,t){return St(e.getUTCFullYear()%1e4,t,4)}function The(e,t){var n=e.getUTCDay();return e=n>=4||n===0?Pd(e):Pd.ceil(e),St(e.getUTCFullYear()%1e4,t,4)}function Che(){return"+0000"}function w6(){return"%"}function N6(e){return+e}function E6(e){return Math.floor(+e/1e3)}var ld,fH,mH;_he({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 _he(e){return ld=_pe(e),fH=ld.format,ld.parse,mH=ld.utcFormat,ld.utcParse,ld}function Dhe(e){return new Date(e)}function Rhe(e){return e instanceof Date?+e:+new Date(+e)}function cR(e,t,n,r,o,s,u,c,f,m){var g=XD(),p=g.invert,y=g.domain,b=m(".%L"),S=m(":%S"),x=m("%I:%M"),N=m("%I %p"),T=m("%a %d"),_=m("%b %d"),D=m("%B"),P=m("%Y");function A(C){return(f(C)<C?b:c(C)<C?S:u(C)<C?x:s(C)<C?N:r(C)<C?o(C)<C?T:_:n(C)<C?D:P)(C)}return g.invert=function(C){return new Date(p(C))},g.domain=function(C){return arguments.length?y(Array.from(C,Rhe)):y().map(Dhe)},g.ticks=function(C){var j=y();return e(j[0],j[j.length-1],C??10)},g.tickFormat=function(C,j){return j==null?A:m(j)},g.nice=function(C){var j=y();return(!C||typeof C.range!="function")&&(C=t(j[0],j[j.length-1],C??10)),C?y(J2(j,C)):g},g.copy=function(){return Lh(g,cR(e,t,n,r,o,s,u,c,f,m))},g}function jhe(){return Va.apply(cR(Tpe,Cpe,ts,lR,V0,kh,oR,aR,yu,fH).domain([new Date(2e3,0,1),new Date(2e3,0,2)]),arguments)}function Phe(){return Va.apply(cR(Ape,Ope,ns,uR,B0,$0,sR,iR,yu,mH).domain([Date.UTC(2e3,0,1),Date.UTC(2e3,0,2)]),arguments)}function z0(){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(mf),m.rangeRound=g(QD),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 pH(){var e=pl(z0()(jr));return e.copy=function(){return hl(e,pH())},ls.apply(e,arguments)}function hH(){var e=JD(z0()).domain([1,10]);return e.copy=function(){return hl(e,hH()).base(e.base())},ls.apply(e,arguments)}function gH(){var e=eR(z0());return e.copy=function(){return hl(e,gH()).constant(e.constant())},ls.apply(e,arguments)}function dR(){var e=tR(z0());return e.copy=function(){return hl(e,dR()).exponent(e.exponent())},ls.apply(e,arguments)}function Mhe(){return dR.apply(null,arguments).exponent(.5)}function vH(){var e=[],t=jr;function n(r){if(r!=null&&!isNaN(r=+r))return t((Ph(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)=>xme(e,s/r))},n.copy=function(){return vH(t).domain(e)},ls.apply(n,arguments)}function U0(){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,_,D;return arguments.length?([T,_,D]=N,m=Kme(x,[T,_,D]),b):[m(0),m(.5),m(1)]}}return b.range=S(mf),b.rangeRound=S(QD),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 yH(){var e=pl(U0()(jr));return e.copy=function(){return hl(e,yH())},ls.apply(e,arguments)}function bH(){var e=JD(U0()).domain([.1,1,10]);return e.copy=function(){return hl(e,bH()).base(e.base())},ls.apply(e,arguments)}function xH(){var e=eR(U0());return e.copy=function(){return hl(e,xH()).constant(e.constant())},ls.apply(e,arguments)}function fR(){var e=tR(U0());return e.copy=function(){return hl(e,fR()).exponent(e.exponent())},ls.apply(e,arguments)}function Lhe(){return fR.apply(null,arguments).exponent(.5)}const S6=Object.freeze(Object.defineProperty({__proto__:null,scaleBand:Kp,scaleDiverging:yH,scaleDivergingLog:bH,scaleDivergingPow:fR,scaleDivergingSqrt:Lhe,scaleDivergingSymlog:xH,scaleIdentity:Z2,scaleImplicit:MC,scaleLinear:pb,scaleLog:eH,scaleOrdinal:KD,scalePoint:xp,scalePow:nR,scaleQuantile:rH,scaleQuantize:aH,scaleRadial:nH,scaleSequential:pH,scaleSequentialLog:hH,scaleSequentialPow:dR,scaleSequentialQuantile:vH,scaleSequentialSqrt:Mhe,scaleSequentialSymlog:gH,scaleSqrt:hpe,scaleSymlog:tH,scaleThreshold:iH,scaleTime:jhe,scaleUtc:Phe,tickFormat:W2},Symbol.toStringTag,{value:"Module"}));var kO,A6;function q0(){if(A6)return kO;A6=1;var e=lf();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 kO=t,kO}var IO,O6;function wH(){if(O6)return IO;O6=1;function e(t,n){return t>n}return IO=e,IO}var $O,T6;function khe(){if(T6)return $O;T6=1;var e=q0(),t=wH(),n=ff();function r(o){return o&&o.length?e(o,n,t):void 0}return $O=r,$O}var Ihe=khe();const al=kt(Ihe);var VO,C6;function NH(){if(C6)return VO;C6=1;function e(t,n){return t<n}return VO=e,VO}var BO,_6;function $he(){if(_6)return BO;_6=1;var e=q0(),t=NH(),n=ff();function r(o){return o&&o.length?e(o,n,t):void 0}return BO=r,BO}var Vhe=$he();const H0=kt(Vhe);var zO,D6;function Bhe(){if(D6)return zO;D6=1;var e=CD(),t=lo(),n=D2(),r=Kr();function o(s,u){var c=r(s)?e:n;return c(s,t(u,3))}return zO=o,zO}var UO,R6;function zhe(){if(R6)return UO;R6=1;var e=C2(),t=Bhe();function n(r,o){return e(t(r,o),1)}return UO=n,UO}var Uhe=zhe();const qhe=kt(Uhe);var qO,j6;function Hhe(){if(j6)return qO;j6=1;var e=zD();function t(n,r){return e(n,r)}return qO=t,qO}var Fhe=Hhe();const Md=kt(Fhe);var pf=1e9,Khe={precision:20,rounding:4,toExpNeg:-7,toExpPos:21,LN10:"2.302585092994045684017991454684364207601101488628772976033327900967572609677352480235997205089598298341967784042286"},pR,sn=!0,$a="[DecimalError] ",Eu=$a+"Invalid argument: ",mR=$a+"Exponent out of range: ",hf=Math.floor,fu=Math.pow,Ghe=/^(\d+(\.\d*)?|\.\d+)(e[+-]?\d+)?$/i,da,Yn=1e7,nn=7,EH=9007199254740991,yb=hf(EH/nn),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)*nn;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 Xo(this,new this.constructor(e))};Pe.dividedToIntegerBy=Pe.idiv=function(e){var t=this,n=t.constructor;return Ft(Xo(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):(sn=!1,t=Xo(Wp(n,s),Wp(e,s),s),sn=!0,Ft(t,o))};Pe.minus=Pe.sub=function(e){var t=this;return e=new t.constructor(e),t.s==e.s?OH(t,e):SH(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?(sn=!1,t=Xo(n,e,0,1).times(e),sn=!0,n.minus(t)):Ft(new r(n),o)};Pe.naturalExponential=Pe.exp=function(){return AH(this)};Pe.naturalLogarithm=Pe.ln=function(){return Wp(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?SH(t,e):OH(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*nn+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),sn=!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=hf((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(Xo(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(Ft(s,n+1,0),s.times(s).eq(c)){r=s;break}}else if(t!="9999")break;u+=4}return sn=!0,Ft(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,sn?Ft(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:(ro(e,0,pf),t===void 0?t=r.rounding:ro(t,0,8),Ft(n,e+Dn(n)+1,t))};Pe.toExponential=function(e,t){var n,r=this,o=r.constructor;return e===void 0?n=$u(r,!0):(ro(e,0,pf),t===void 0?t=o.rounding:ro(t,0,8),r=Ft(new o(r),e+1,t),n=$u(r,!0,e+1)),n};Pe.toFixed=function(e,t){var n,r,o=this,s=o.constructor;return e===void 0?$u(o):(ro(e,0,pf),t===void 0?t=s.rounding:ro(t,0,8),r=Ft(new s(o),e+Dn(o)+1,t),n=$u(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 Ft(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 Ft(c,r);if(t=e.e,n=e.d.length-1,u=t>=n,s=c.s,u){if((n=g<0?-g:g)<=EH){for(o=new f(da),t=Math.ceil(r/nn+4),sn=!1;n%2&&(o=o.times(c),M6(o.d,t)),n=hf(n/2),n!==0;)c=c.times(c),M6(c.d,t);return sn=!0,e.s<0?new f(da).div(o):Ft(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,sn=!1,o=e.times(Wp(c,r+m)),sn=!0,o=AH(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=$u(o,n<=s.toExpNeg||n>=s.toExpPos)):(ro(e,1,pf),t===void 0?t=s.rounding:ro(t,0,8),o=Ft(new s(o),e,t),n=Dn(o),r=$u(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):(ro(e,1,pf),t===void 0?t=r.rounding:ro(t,0,8)),Ft(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 $u(e,t<=n.toExpNeg||t>=n.toExpPos)};function SH(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)),sn?Ft(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/nn),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,sn?Ft(t,p):t}function ro(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=nn-r.length,n&&(s+=tl(n)),s+=r;u=e[t],r=u+"",n=nn-r.length,n&&(s+=tl(n))}else if(u===0)return"0";for(;u%10===0;)u/=10;return s+u}var Xo=(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,_,D,P,A,C,j,L,V=r.constructor,B=r.s==o.s?1:-1,z=r.d,q=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=q.length,A=z.length,b=new V(B),S=b.d=[],m=0;q[m]==(z[m]||0);)++m;if(q[m]>(z[m]||0)&&--f,s==null?_=s=V.precision:u?_=s+(Dn(r)-Dn(o))+1:_=s,_<0)return new V(0);if(_=_/nn+2|0,m=0,j==1)for(g=0,q=q[0],_++;(m<A||g)&&_--;m++)D=g*Yn+(z[m]||0),S[m]=D/q|0,g=D%q|0;else{for(g=Yn/(q[0]+1)|0,g>1&&(q=e(q,g),z=e(z,g),j=q.length,A=z.length),P=j,x=z.slice(0,j),N=x.length;N<j;)x[N++]=0;L=q.slice(),L.unshift(0),C=q[0],q[1]>=Yn/2&&++C;do g=0,c=t(q,x,j,N),c<0?(T=x[0],j!=N&&(T=T*Yn+(x[1]||0)),g=T/C|0,g>1?(g>=Yn&&(g=Yn-1),p=e(q,g),y=p.length,N=x.length,c=t(p,x,y,N),c==1&&(g--,n(p,j<y?L:q,y))):(g==0&&(c=g=1),p=q.slice()),y=p.length,y<N&&p.unshift(0),n(x,p,N),c==-1&&(N=x.length,c=t(q,x,j,N),c<1&&(g++,n(x,j<N?L:q,N))),N=x.length):c===0&&(g++,x=[0]),S[m++]=g,c&&x[0]?x[N++]=z[P]||0:(x=[z[P]],N=1);while((P++<A||x[0]!==void 0)&&_--)}return S[0]||S.shift(),b.e=f,Ft(b,u?s+Dn(b)+1:s)}})();function AH(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(mR+Dn(e));if(!e.s)return new g(da);for(sn=!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=Ft(o.times(e),c),n=n.times(++f),u=s.plus(Xo(o,n,c)),Qi(u.d).slice(0,c)===Qi(s.d).slice(0,c)){for(;m--;)s=Ft(s.times(s),c);return g.precision=p,t==null?(sn=!0,Ft(s,p)):s}s=u}}function Dn(e){for(var t=e.e*nn,n=e.d[0];n>=10;n/=10)t++;return t}function HO(e,t,n){if(t>e.LN10.sd())throw sn=!0,n&&(e.precision=n),Error($a+"LN10 precision limit exceeded");return Ft(new e(e.LN10),t)}function tl(e){for(var t="";e--;)t+="0";return t}function Wp(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?(sn=!1,m=N):m=t,b.eq(10))return t==null&&(sn=!0),HO(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=HO(x,m+2,N).times(s+""),b=Wp(new x(r+"."+n.slice(1)),m-y).plus(f),x.precision=N,t==null?(sn=!0,Ft(b,N)):b;for(c=u=b=Xo(b.minus(da),b.plus(da),m),g=Ft(b.times(b),m),o=3;;){if(u=Ft(u.times(g),m),f=c.plus(Xo(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(HO(x,m+2,N).times(s+""))),c=Xo(c,new x(p),m),x.precision=N,t==null?(sn=!0,Ft(c,N)):c;c=f,o+=2}}function P6(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=hf(n/nn),e.d=[],r=(n+1)%nn,n<0&&(r+=nn),r<o){for(r&&e.d.push(+t.slice(0,r)),o-=nn;r<o;)e.d.push(+t.slice(r,r+=nn));t=t.slice(r),r=nn-t.length}else r-=o;for(;r--;)t+="0";if(e.d.push(+t),sn&&(e.e>yb||e.e<-yb))throw Error(mR+n)}else e.s=0,e.e=0,e.d=[0];return e}function Ft(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+=nn,o=t,m=p[g=0];else{if(g=Math.ceil((r+1)/nn),s=p.length,g>=s)return e;for(m=s=p[g],u=1;s>=10;s/=10)u++;r%=nn,o=r-nn+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,(nn-t%nn)%nn),e.e=hf(-t/nn)||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,nn-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(sn&&(e.e>yb||e.e<-yb))throw Error(mR+Dn(e));return e}function OH(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),sn?Ft(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/nn),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,sn?Ft(t,b):t):new y(0)}function $u(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 M6(e,t){if(e.length>t)return e.length=t,!0}function TH(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 P6(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,Ghe.test(s))P6(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=TH,o.config=o.set=Yhe,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 Yhe(e){if(!e||typeof e!="object")throw Error($a+"Object expected");var t,n,r,o=["precision",1,pf,"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(hf(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 pR=TH(Khe);da=new pR(1);const Ut=pR;function Qhe(e){return Jhe(e)||Zhe(e)||Whe(e)||Xhe()}function Xhe(){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 Whe(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 Zhe(e){if(typeof Symbol<"u"&&Symbol.iterator in Object(e))return Array.from(e)}function Jhe(e){if(Array.isArray(e))return $C(e)}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}var ege=function(t){return t},CH={},_H=function(t){return t===CH},L6=function(t){return function n(){return arguments.length===0||arguments.length===1&&_H(arguments.length<=0?void 0:arguments[0])?n:t.apply(void 0,arguments)}},tge=function e(t,n){return t===1?n:L6(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!==CH}).length;return u>=t?n.apply(void 0,o):e(t-u,L6(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 _H(p)?f.shift():p});return n.apply(void 0,Qhe(g).concat(f))}))})},F0=function(t){return tge(t.length,t)},VC=function(t,n){for(var r=[],o=t;o<n;++o)r[o-t]=o;return r},nge=F0(function(e,t){return Array.isArray(t)?t.map(e):Object.keys(t).map(function(n){return t[n]}).map(e)}),rge=function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];if(!n.length)return ege;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))}},BC=function(t){return Array.isArray(t)?t.reverse():t.split("").reverse.join("")},DH=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 age(e){var t;return e===0?t=1:t=Math.floor(new Ut(e).abs().log(10).toNumber())+1,t}function ige(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 oge=F0(function(e,t,n){var r=+e,o=+t;return r+n*(o-r)}),sge=F0(function(e,t,n){var r=t-+e;return r=r||1/0,(n-e)/r}),lge=F0(function(e,t,n){var r=t-+e;return r=r||1/0,Math.max(0,Math.min(1,(n-e)/r))});const K0={rangeStep:ige,getDigitCount:age,interpolateNumber:oge,uninterpolateNumber:sge,uninterpolateTruncation:lge};function zC(e){return dge(e)||cge(e)||RH(e)||uge()}function uge(){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 cge(e){if(typeof Symbol<"u"&&Symbol.iterator in Object(e))return Array.from(e)}function dge(e){if(Array.isArray(e))return UC(e)}function Zp(e,t){return pge(e)||mge(e,t)||RH(e,t)||fge()}function fge(){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 RH(e,t){if(e){if(typeof e=="string")return UC(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 UC(e,t)}}function UC(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 mge(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 pge(e){if(Array.isArray(e))return e}function jH(e){var t=Zp(e,2),n=t[0],r=t[1],o=n,s=r;return n>r&&(o=r,s=n),[o,s]}function PH(e,t,n){if(e.lte(0))return new Ut(0);var r=K0.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 hge(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(K0.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=rge(nge(function(f){return o.add(new Ut(f-u).mul(r)).toNumber()}),VC);return c(0,t)}function MH(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=PH(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?MH(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 gge(e){var t=Zp(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=jH([n,r]),f=Zp(c,2),m=f[0],g=f[1];if(m===-1/0||g===1/0){var p=g===1/0?[m].concat(zC(VC(0,o-1).map(function(){return 1/0}))):[].concat(zC(VC(0,o-1).map(function(){return-1/0})),[g]);return n>r?BC(p):p}if(m===g)return hge(m,o,s);var y=MH(m,g,u,s),b=y.step,S=y.tickMin,x=y.tickMax,N=K0.rangeStep(S,x.add(new Ut(.1).mul(b)),b);return n>r?BC(N):N}function vge(e,t){var n=Zp(e,2),r=n[0],o=n[1],s=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0,u=jH([r,o]),c=Zp(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=PH(new Ut(m).sub(f).div(g-1),s,0),y=[].concat(zC(K0.rangeStep(new Ut(f),new Ut(m).sub(new Ut(.99).mul(p)),p)),[m]);return r>o?BC(y):y}var yge=DH(gge),bge=DH(vge),k6="Invariant failed";function Vu(e,t){var n=typeof t=="function"?t():t,r=n?"".concat(k6,": ").concat(n):k6;throw new Error(r)}var xge=["offset","layout","width","dataKey","data","dataPointFormatter","xAxis","yAxis"];function Ld(e){"@babel/helpers - typeof";return Ld=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},Ld(e)}function bb(){return bb=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},bb.apply(this,arguments)}function wge(e,t){return Age(e)||Sge(e,t)||Ege(e,t)||Nge()}function Nge(){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 Ege(e,t){if(e){if(typeof e=="string")return I6(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 I6(e,t)}}function I6(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 Sge(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 Age(e){if(Array.isArray(e))return e}function Oge(e,t){if(e==null)return{};var n=Tge(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 Tge(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 Cge(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function _ge(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,IH(r.key),r)}}function Dge(e,t,n){return t&&_ge(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function Rge(e,t,n){return t=xb(t),jge(e,LH()?Reflect.construct(t,n||[],xb(e).constructor):t.apply(e,n))}function jge(e,t){if(t&&(Ld(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return Pge(e)}function Pge(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function LH(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(LH=function(){return!!e})()}function xb(e){return xb=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},xb(e)}function Mge(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&&qC(e,t)}function qC(e,t){return qC=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,o){return r.__proto__=o,r},qC(e,t)}function kH(e,t,n){return t=IH(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function IH(e){var t=Lge(e,"string");return Ld(t)=="symbol"?t:t+""}function Lge(e,t){if(Ld(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(Ld(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}var G0=(function(e){function t(){return Cge(this,t),Rge(this,t,arguments)}return Mge(t,e),Dge(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=Oge(r,xge),b=Fe(y,!1);this.props.direction==="x"&&g.type!=="number"&&Vu(!1,'ErrorBar requires Axis type property to be "number".');var S=f.map(function(x){var N=m(x,c),T=N.x,_=N.y,D=N.value,P=N.errorVal;if(!P)return null;var A=[],C,j;if(Array.isArray(P)){var L=wge(P,2);C=L[0],j=L[1]}else C=j=P;if(s==="vertical"){var V=g.scale,B=_+o,z=B+u,q=B-u,F=V(D-C),Y=V(D+j);A.push({x1:Y,y1:z,x2:Y,y2:q}),A.push({x1:F,y1:B,x2:Y,y2:B}),A.push({x1:F,y1:z,x2:F,y2:q})}else if(s==="horizontal"){var ee=p.scale,U=T+o,G=U-u,K=U+u,te=ee(D-C),ne=ee(D+j);A.push({x1:G,y1:ne,x2:K,y2:ne}),A.push({x1:U,y1:te,x2:U,y2:ne}),A.push({x1:G,y1:te,x2:K,y2:te})}return H.createElement(Nt,bb({className:"recharts-errorBar",key:"bar-".concat(A.map(function(I){return"".concat(I.x1,"-").concat(I.x2,"-").concat(I.y1,"-").concat(I.y2)}))},b),A.map(function(I){return H.createElement("line",bb({},I,{key:"line-".concat(I.x1,"-").concat(I.x2,"-").concat(I.y1,"-").concat(I.y2)}))}))});return H.createElement(Nt,{className:"recharts-errorBars"},S)}}])})(H.Component);kH(G0,"defaultProps",{stroke:"black",strokeWidth:1.5,width:5,offset:0,layout:"horizontal"});kH(G0,"displayName","ErrorBar");function Jp(e){"@babel/helpers - typeof";return Jp=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},Jp(e)}function $6(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?$6(Object(n),!0).forEach(function(r){kge(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):$6(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function kge(e,t,n){return t=Ige(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Ige(e){var t=$ge(e,"string");return Jp(t)=="symbol"?t:t+""}function $ge(e,t){if(Jp(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(Jp(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var $H=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:hR(p),value:x||S,payload:b}}),ou(ou(ou({},f),wu.getWithHeight(u,o)),{},{payload:m,item:u})};function eh(e){"@babel/helpers - typeof";return eh=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},eh(e)}function V6(e){return Uge(e)||zge(e)||Bge(e)||Vge()}function Vge(){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 Bge(e,t){if(e){if(typeof e=="string")return HC(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 HC(e,t)}}function zge(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function Uge(e){if(Array.isArray(e))return HC(e)}function HC(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 B6(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?B6(Object(n),!0).forEach(function(r){xd(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):B6(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function xd(e,t,n){return t=qge(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function qge(e){var t=Hge(e,"string");return eh(t)=="symbol"?t:t+""}function Hge(e,t){if(eh(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(eh(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 wp(e,t,n,r){var o=qhe(e,function(c){return $n(c,t)});if(n==="number"){var s=o.filter(function(c){return Oe(c)||parseFloat(c)});return s.length?[H0(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 Fge=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 _=Math.min(g,y),D=Math.max(g,y);if(t>(_+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},hR=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},Kge=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 Qo(j.type).indexOf("Bar")>=0});if(T&&T.length){var _=T[0].type.defaultProps,D=_!==void 0?pn(pn({},_),T[0].props):T[0].props,P=D.barSize,A=D[N];u[A]||(u[A]=[]);var C=rt(P)?n:P;u[A].push({item:T[0],stackList:T.slice(1),barSize:rt(C)?void 0:Rr(C,r,0)})}}return u},Gge=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 C={item:A.item,position:{offset:N.offset+N.size+m,size:y?b:A.barSize}},j=[].concat(V6(P),[C]);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 _=(o-2*T-(f-1)*m)/f;_>1&&(_>>=0);var D=c===+c?Math.min(_,c):_;g=u.reduce(function(P,A,C){var j=[].concat(V6(P),[{item:A.item,position:{offset:T+(_+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},Yge=function(t,n,r,o){var s=r.children,u=r.width,c=r.margin,f=u-(c.left||0)-(c.right||0),m=$H({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),{},xd({},b,t[b]+(p||0)));if((x==="horizontal"||x==="vertical"&&b==="center")&&S!=="middle"&&Oe(t[S]))return pn(pn({},t),{},xd({},S,t[S]+(y||0)))}return t},Qge=function(t,n,r){return rt(n)?!0:t==="horizontal"?n==="yAxis":t==="vertical"||r==="x"?n==="xAxis":r==="y"?n==="yAxis":!0},VH=function(t,n,r,o,s){var u=n.props.children,c=Ia(u,G0).filter(function(m){return Qge(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)?[H0(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),_=y[1]+Math.abs(Array.isArray(N)?N[1]:N);return[Math.min(T,S[0]),Math.max(_,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},Xge=function(t,n,r,o,s){var u=n.map(function(c){return VH(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},BH=function(t,n,r,o,s){var u=n.map(function(f){var m=f.props.dataKey;return r==="number"&&m&&VH(t,f,m,o)||wp(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},[])},zH=function(t,n){return t==="horizontal"&&n==="xAxis"||t==="vertical"&&n==="yAxis"||t==="centric"&&n==="angleAxis"||t==="radial"&&n==="radiusAxis"},UH=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},Go=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!cf(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}})},FO=new WeakMap,Ny=function(t,n){if(typeof n!="function")return t;FO.has(t)||FO.set(t,new WeakMap);var r=FO.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},qH=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:Kp(),realScaleType:"band"}:u==="radial"&&c==="angleAxis"?{scale:pb(),realScaleType:"linear"}:s==="category"&&n&&(n.indexOf("LineChart")>=0||n.indexOf("AreaChart")>=0||n.indexOf("ComposedChart")>=0&&!r)?{scale:xp(),realScaleType:"point"}:s==="category"?{scale:Kp(),realScaleType:"band"}:{scale:pb(),realScaleType:"linear"};if(Lu(o)){var f="scale".concat(_0(o));return{scale:(S6[f]||xp)(),realScaleType:S6[f]?f:"point"}}return Qe(o)?{scale:o}:{scale:xp(),realScaleType:"point"}},z6=1e-4,HH=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])-z6,u=Math.max(o[0],o[1])+z6,c=t(n[0]),f=t(n[r-1]);(c<s||c>u||f<s||f>u)&&t.domain([n[0],n[r-1]])}},Wge=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},Zge=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},Jge=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=cf(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])}},eve=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=cf(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)}},tve={sign:Jge,expand:que,none:Od,silhouette:Hue,wiggle:Fue,positive:eve},nve=function(t,n,r){var o=n.map(function(c){return c.props.dataKey}),s=tve[r],u=Uue().keys(o).value(function(c,f){return+$n(c,f,0)}).order(xC).offset(s);return u(t)},rve=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],_=p[T]||{hasStack:!1,stackGroups:{}};if(Vn(x)){var D=_.stackGroups[x]||{numericAxisId:r,cateAxisId:o,items:[]};D.items.push(y),_.hasStack=!0,_.stackGroups[x]=D}else _.stackGroups[df("_stackId_")]={numericAxisId:r,cateAxisId:o,items:[y]};return pn(pn({},p),{},xd({},T,_))},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),{},xd({},N,{numericAxisId:r,cateAxisId:o,items:T.items,stackedData:nve(t,T.items,s)}))},S)}return pn(pn({},p),{},xd({},y,b))},g)},FH=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=yge(m,s,c);return t.domain([H0(g),al(g)]),{niceTicks:g}}if(s&&o==="number"){var p=t.domain(),y=bge(p,s,c);return{niceTicks:y}}return null};function U6(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=Xy(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 q6=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},ave=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]},ive=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},ove=function(t){return t.reduce(function(n,r){return[H0(r.concat([n[0]]).filter(Oe)),al(r.concat([n[1]]).filter(Oe))]},[1/0,-1/0])},KH=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=ove(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})},H6=/^dataMin[\s]*-[\s]*([0-9]+([.]{1}[0-9]+){0,1})$/,F6=/^dataMax[\s]*\+[\s]*([0-9]+([.]{1}[0-9]+){0,1})$/,FC=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(H6.test(t[0])){var s=+H6.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(F6.test(t[1])){var u=+F6.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},wb=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=qD(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},K6=function(t,n,r){return!t||!t.length||Md(t,ma(r,"type.defaultProps.domain"))?n:t},GH=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:hR(t),value:$n(n,o),type:f,payload:n,chartType:m,hide:g})};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 G6(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 qo(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?G6(Object(n),!0).forEach(function(r){YH(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):G6(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function YH(e,t,n){return t=sve(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function sve(e){var t=lve(e,"string");return th(t)=="symbol"?t:t+""}function lve(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)}function uve(e,t){return mve(e)||fve(e,t)||dve(e,t)||cve()}function cve(){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 dve(e,t){if(e){if(typeof e=="string")return Y6(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 Y6(e,t)}}function Y6(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 fve(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 mve(e){if(Array.isArray(e))return e}var Nb=Math.PI/180,pve=function(t){return t*180/Math.PI},Jt=function(t,n,r,o){return{x:t+Math.cos(-Nb*o)*r,y:n+Math.sin(-Nb*o)*r}},QH=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},hve=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=QH(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 _=n[T],D=_.domain,P=_.reversed,A;if(rt(_.range))o==="angleAxis"?A=[f,m]:o==="radiusAxis"&&(A=[b,S]),P&&(A=[A[1],A[0]]);else{A=_.range;var C=A,j=uve(C,2);f=j[0],m=j[1]}var L=qH(_,s),V=L.realScaleType,B=L.scale;B.domain(D).range(A),HH(B);var z=FH(B,qo(qo({},_),{},{realScaleType:V})),q=qo(qo(qo({},_),z),{},{range:A,radius:S,realScaleType:V,scale:B,cx:g,cy:p,innerRadius:b,outerRadius:S,startAngle:f,endAngle:m});return qo(qo({},N),{},YH({},T,q))},{})},gve=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))},vve=function(t,n){var r=t.x,o=t.y,s=n.cx,u=n.cy,c=gve({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:pve(m),angleInRadian:m}},yve=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}},bve=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},Q6=function(t,n){var r=t.x,o=t.y,s=vve({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=yve(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?qo(qo({},n),{},{radius:u,angle:bve(b,n)}):null},XH=function(t){return!R.isValidElement(t)&&!Qe(t)&&typeof t!="boolean"?t.className:""};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)}var xve=["offset"];function wve(e){return Ave(e)||Sve(e)||Eve(e)||Nve()}function Nve(){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 Eve(e,t){if(e){if(typeof e=="string")return KC(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 KC(e,t)}}function Sve(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function Ave(e){if(Array.isArray(e))return KC(e)}function KC(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 Ove(e,t){if(e==null)return{};var n=Tve(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 Tve(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 X6(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?X6(Object(n),!0).forEach(function(r){Cve(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):X6(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function Cve(e,t,n){return t=_ve(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function _ve(e){var t=Dve(e,"string");return nh(t)=="symbol"?t:t+""}function Dve(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 rh(){return rh=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},rh.apply(this,arguments)}var Rve=function(t){var n=t.value,r=t.formatter,o=rt(t.children)?n:t.children;return Qe(r)?r(o):o},jve=function(t,n){var r=Dr(n-t),o=Math.min(Math.abs(n-t),360);return r*o},Pve=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=jve(b,S),_=T>=0?1:-1,D,P;o==="insideStart"?(D=b+_*u,P=x):o==="insideEnd"?(D=S-_*u,P=!x):o==="end"&&(D=S+_*u,P=x),P=T<=0?P:!P;var A=Jt(m,g,N,D),C=Jt(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(C.x,",").concat(C.y),L=rt(t.id)?df("recharts-radial-line-"):t.id;return H.createElement("text",rh({},r,{dominantBaseline:"central",className:nt("recharts-radial-bar-label",c)}),H.createElement("defs",null,H.createElement("path",{id:L,d:j})),H.createElement("textPath",{xlinkHref:"#".concat(L)},n))},Mve=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=Jt(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=Jt(u,c,N,y),_=T.x,D=T.y;return{x:_,y:D,textAnchor:"middle",verticalAnchor:"middle"}},Lve=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",_=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 C={x:c+m+N,y:f+g/2,textAnchor:_,verticalAnchor:"middle"};return In(In({},C),r?{width:Math.max(r.x+r.width-C.x,0),height:g}:{})}var j=r?{width:m,height:g}:{};return s==="insideLeft"?In({x:c+N,y:f+g/2,textAnchor:_,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:_,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:_,verticalAnchor:b},j):s==="insideBottomRight"?In({x:c+m-N,y:f+g-y,textAnchor:T,verticalAnchor:b},j):uf(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)},kve=function(t){return"cx"in t&&Oe(t.cx)};function Xn(e){var t=e.offset,n=t===void 0?5:t,r=Ove(e,xve),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=Rve(o);var S=kve(s),x=Fe(o,!0);if(S&&(u==="insideStart"||u==="insideEnd"||u==="end"))return Pve(o,b,x);var N=S?Mve(o):Lve(o);return H.createElement(Iu,rh({className:nt("recharts-label",p)},x,N,{breakAll:y}),b)}Xn.displayName="Label";var WH=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,_=t.labelViewBox;if(_)return _;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:{}},Ive=function(t,n){return t?t===!0?H.createElement(Xn,{key:"label-implicit",viewBox:n}):Vn(t)?H.createElement(Xn,{key:"label-implicit",viewBox:n,value:t}):R.isValidElement(t)?t.type===Xn?R.cloneElement(t,{key:"label-implicit",viewBox:n}):H.createElement(Xn,{key:"label-implicit",content:t,viewBox:n}):Qe(t)?H.createElement(Xn,{key:"label-implicit",content:t,viewBox:n}):uf(t)?H.createElement(Xn,rh({viewBox:n},t,{key:"label-implicit"})):null:null},$ve=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=WH(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=Ive(t.label,n||s);return[c].concat(wve(u))};Xn.parseViewBox=WH;Xn.renderCallByParent=$ve;var KO,W6;function Vve(){if(W6)return KO;W6=1;function e(t){var n=t==null?0:t.length;return n?t[n-1]:void 0}return KO=e,KO}var Bve=Vve();const zve=kt(Bve);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 Uve=["valueAccessor"],qve=["data","dataKey","clockWise","id","textBreakAll"];function Hve(e){return Yve(e)||Gve(e)||Kve(e)||Fve()}function Fve(){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 Kve(e,t){if(e){if(typeof e=="string")return GC(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 GC(e,t)}}function Gve(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function Yve(e){if(Array.isArray(e))return GC(e)}function GC(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function Eb(){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 Z6(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 J6(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?Z6(Object(n),!0).forEach(function(r){Qve(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Z6(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function Qve(e,t,n){return t=Xve(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Xve(e){var t=Wve(e,"string");return ah(t)=="symbol"?t:t+""}function Wve(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 e7(e,t){if(e==null)return{};var n=Zve(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 Zve(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 Jve=function(t){return Array.isArray(t.value)?zve(t.value):t.value};function Wo(e){var t=e.valueAccessor,n=t===void 0?Jve:t,r=e7(e,Uve),o=r.data,s=r.dataKey,u=r.clockWise,c=r.id,f=r.textBreakAll,m=e7(r,qve);return!o||!o.length?null:H.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 H.createElement(Xn,Eb({},Fe(g,!0),m,b,{parentViewBox:g.parentViewBox,value:y,textBreakAll:f,viewBox:Xn.parseViewBox(rt(u)?g:J6(J6({},g),{},{clockWise:u})),key:"label-".concat(p),index:p}))}))}Wo.displayName="LabelList";function eye(e,t){return e?e===!0?H.createElement(Wo,{key:"labelList-implicit",data:t}):H.isValidElement(e)||Qe(e)?H.createElement(Wo,{key:"labelList-implicit",data:t,content:e}):uf(e)?H.createElement(Wo,Eb({data:t},e,{key:"labelList-implicit"})):null:null}function tye(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,Wo).map(function(u,c){return R.cloneElement(u,{data:t,key:"labelList-".concat(c)})});if(!n)return o;var s=eye(e.label,t);return[s].concat(Hve(o))}Wo.renderCallByParent=tye;function ih(e){"@babel/helpers - typeof";return ih=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},ih(e)}function YC(){return YC=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},YC.apply(this,arguments)}function t7(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 n7(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?t7(Object(n),!0).forEach(function(r){nye(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):t7(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function nye(e,t,n){return t=rye(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function rye(e){var t=aye(e,"string");return ih(t)=="symbol"?t:t+""}function aye(e,t){if(ih(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(ih(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var iye=function(t,n){var r=Dr(n-t),o=Math.min(Math.abs(n-t),359.999);return r*o},Ey=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)/Nb,y=m?s:s+u*p,b=Jt(n,r,g,y),S=Jt(n,r,o,y),x=m?s-u*p:s,N=Jt(n,r,g*Math.cos(p*Nb),x);return{center:b,circleTangency:S,lineTangency:N,theta:p}},ZH=function(t){var n=t.cx,r=t.cy,o=t.innerRadius,s=t.outerRadius,u=t.startAngle,c=t.endAngle,f=iye(u,c),m=u+f,g=Jt(n,r,s,u),p=Jt(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=Jt(n,r,o,u),S=Jt(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},oye=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=Ey({cx:n,cy:r,radius:s,angle:m,sign:p,cornerRadius:u,cornerIsExternal:f}),b=y.circleTangency,S=y.lineTangency,x=y.theta,N=Ey({cx:n,cy:r,radius:s,angle:g,sign:-p,cornerRadius:u,cornerIsExternal:f}),T=N.circleTangency,_=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
`):ZH({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(_.x,",").concat(_.y,`
`);if(o>0){var C=Ey({cx:n,cy:r,radius:o,angle:m,sign:p,isExternal:!0,cornerRadius:u,cornerIsExternal:f}),j=C.circleTangency,L=C.lineTangency,V=C.theta,B=Ey({cx:n,cy:r,radius:o,angle:g,sign:-p,isExternal:!0,cornerRadius:u,cornerIsExternal:f}),z=B.circleTangency,q=B.lineTangency,F=B.theta,Y=f?Math.abs(m-g):Math.abs(m-g)-V-F;if(Y<0&&u===0)return"".concat(A,"L").concat(n,",").concat(r,"Z");A+="L".concat(q.x,",").concat(q.y,`
A`).concat(u,",").concat(u,",0,0,").concat(+(p<0),",").concat(z.x,",").concat(z.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},sye={cx:0,cy:0,innerRadius:0,outerRadius:0,startAngle:0,endAngle:0,cornerRadius:0,forceCornerRadius:!1,cornerIsExternal:!1},JH=function(t){var n=n7(n7({},sye),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=oye({cx:r,cy:o,innerRadius:s,outerRadius:u,cornerRadius:Math.min(x,S/2),forceCornerRadius:f,cornerIsExternal:m,startAngle:g,endAngle:p}):N=ZH({cx:r,cy:o,innerRadius:s,outerRadius:u,startAngle:g,endAngle:p}),H.createElement("path",YC({},Fe(n,!0),{className:b,d:N,role:"img"}))};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)}function QC(){return QC=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},QC.apply(this,arguments)}function r7(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 a7(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?r7(Object(n),!0).forEach(function(r){lye(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):r7(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function lye(e,t,n){return t=uye(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function uye(e){var t=cye(e,"string");return oh(t)=="symbol"?t:t+""}function cye(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)}var i7={curveBasisClosed:Rue,curveBasisOpen:jue,curveBasis:Due,curveBumpX:gue,curveBumpY:vue,curveLinearClosed:Pue,curveLinear:R0,curveMonotoneX:Mue,curveMonotoneY:Lue,curveNatural:kue,curveStep:Iue,curveStepAfter:Vue,curveStepBefore:$ue},Sy=function(t){return t.x===+t.x&&t.y===+t.y},ap=function(t){return t.x},ip=function(t){return t.y},dye=function(t,n){if(Qe(t))return t;var r="curve".concat(_0(t));return(r==="curveMonotone"||r==="curveBump")&&n?i7["".concat(r).concat(n==="vertical"?"Y":"X")]:i7[r]||R0},fye=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=dye(r,c),p=m?s.filter(function(x){return Sy(x)}):s,y;if(Array.isArray(u)){var b=m?u.filter(function(x){return Sy(x)}):u,S=p.map(function(x,N){return a7(a7({},x),{},{base:b[N]})});return c==="vertical"?y=hy().y(ip).x1(ap).x0(function(x){return x.base.x}):y=hy().x(ap).y1(ip).y0(function(x){return x.base.y}),y.defined(Sy).curve(g),y(S)}return c==="vertical"&&Oe(u)?y=hy().y(ip).x1(ap).x0(u):Oe(u)?y=hy().x(ap).y1(ip).y0(u):y=W9().x(ap).y(ip),y.defined(Sy).curve(g),y(p)},wd=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?fye(t):o;return R.createElement("path",QC({},Fe(t,!1),Wy(t),{className:nt("recharts-curve",n),d:u,ref:s}))},GO={exports:{}},YO={exports:{}},Mt={},o7;function mye(){if(o7)return Mt;o7=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,_=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===_||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,C=m,j=c,L=u,V=t,B=g,z=r,q=S,F=b,Y=n,ee=s,U=o,G=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 I(ie){return P(ie)===c}function Z(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 ue(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=C,Mt.ContextConsumer=j,Mt.ContextProvider=L,Mt.Element=V,Mt.ForwardRef=B,Mt.Fragment=z,Mt.Lazy=q,Mt.Memo=F,Mt.Portal=Y,Mt.Profiler=ee,Mt.StrictMode=U,Mt.Suspense=G,Mt.isAsyncMode=te,Mt.isConcurrentMode=ne,Mt.isContextConsumer=I,Mt.isContextProvider=Z,Mt.isElement=W,Mt.isForwardRef=ae,Mt.isFragment=ge,Mt.isLazy=Ne,Mt.isMemo=ue,Mt.isPortal=xe,Mt.isProfiler=me,Mt.isStrictMode=be,Mt.isSuspense=de,Mt.isValidElementType=D,Mt.typeOf=P})(),Mt}var s7;function eF(){return s7||(s7=1,YO.exports=mye()),YO.exports}/*
object-assign
(c) Sindre Sorhus
@license MIT
*/var QO,l7;function pye(){if(l7)return QO;l7=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 QO=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},QO}var XO,u7;function tF(){if(u7)return XO;u7=1;var e="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED";return XO=e,XO}var WO,c7;function nF(){return c7||(c7=1,WO=Function.call.bind(Object.prototype.hasOwnProperty)),WO}var ZO,d7;function hye(){if(d7)return ZO;d7=1;var e=function(){};{var t=tF(),n={},r=nF();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={}},ZO=o,ZO}var JO,f7;function gye(){if(f7)return JO;f7=1;var e=eF(),t=pye(),n=tF(),r=nF(),o=hye(),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 JO=function(c,f){var m=typeof Symbol=="function"&&Symbol.iterator,g="@@iterator";function p(ne){var I=ne&&(m&&ne[m]||ne[g]);if(typeof I=="function")return I}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:_(),arrayOf:D,element:P(),elementType:A(),instanceOf:C,node:B(),objectOf:L,oneOf:j,oneOfType:V,shape:q,exact:F};function S(ne,I){return ne===I?ne!==0||1/ne===1/I:ne!==ne&&I!==I}function x(ne,I){this.message=ne,this.data=I&&typeof I=="object"?I:{},this.stack=""}x.prototype=Error.prototype;function N(ne){var I={},Z=0;function W(ge,Ne,ue,xe,me,be,de){if(xe=xe||y,be=be||ue,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+":"+ue;!I[ze]&&Z<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."),I[ze]=!0,Z++)}}return Ne[ue]==null?ge?Ne[ue]===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,ue,xe,me,be)}var ae=W.bind(null,!1);return ae.isRequired=W.bind(null,!0),ae}function T(ne){function I(Z,W,ae,ge,Ne,ue){var xe=Z[W],me=U(xe);if(me!==ne){var be=G(xe);return new x("Invalid "+ge+" `"+Ne+"` of type "+("`"+be+"` supplied to `"+ae+"`, expected ")+("`"+ne+"`."),{expectedType:ne})}return null}return N(I)}function _(){return N(u)}function D(ne){function I(Z,W,ae,ge,Ne){if(typeof ne!="function")return new x("Property `"+Ne+"` of component `"+ae+"` has invalid PropType notation inside arrayOf.");var ue=Z[W];if(!Array.isArray(ue)){var xe=U(ue);return new x("Invalid "+ge+" `"+Ne+"` of type "+("`"+xe+"` supplied to `"+ae+"`, expected an array."))}for(var me=0;me<ue.length;me++){var be=ne(ue,me,ae,ge,Ne+"["+me+"]",n);if(be instanceof Error)return be}return null}return N(I)}function P(){function ne(I,Z,W,ae,ge){var Ne=I[Z];if(!c(Ne)){var ue=U(Ne);return new x("Invalid "+ae+" `"+ge+"` of type "+("`"+ue+"` supplied to `"+W+"`, expected a single ReactElement."))}return null}return N(ne)}function A(){function ne(I,Z,W,ae,ge){var Ne=I[Z];if(!e.isValidElementType(Ne)){var ue=U(Ne);return new x("Invalid "+ae+" `"+ge+"` of type "+("`"+ue+"` supplied to `"+W+"`, expected a single ReactElement type."))}return null}return N(ne)}function C(ne){function I(Z,W,ae,ge,Ne){if(!(Z[W]instanceof ne)){var ue=ne.name||y,xe=te(Z[W]);return new x("Invalid "+ge+" `"+Ne+"` of type "+("`"+xe+"` supplied to `"+ae+"`, expected ")+("instance of `"+ue+"`."))}return null}return N(I)}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 I(Z,W,ae,ge,Ne){for(var ue=Z[W],xe=0;xe<ne.length;xe++)if(S(ue,ne[xe]))return null;var me=JSON.stringify(ne,function(de,ie){var ze=G(ie);return ze==="symbol"?String(ie):ie});return new x("Invalid "+ge+" `"+Ne+"` of value `"+String(ue)+"` "+("supplied to `"+ae+"`, expected one of "+me+"."))}return N(I)}function L(ne){function I(Z,W,ae,ge,Ne){if(typeof ne!="function")return new x("Property `"+Ne+"` of component `"+ae+"` has invalid PropType notation inside objectOf.");var ue=Z[W],xe=U(ue);if(xe!=="object")return new x("Invalid "+ge+" `"+Ne+"` of type "+("`"+xe+"` supplied to `"+ae+"`, expected an object."));for(var me in ue)if(r(ue,me)){var be=ne(ue,me,ae,ge,Ne+"."+me,n);if(be instanceof Error)return be}return null}return N(I)}function V(ne){if(!Array.isArray(ne))return s("Invalid argument supplied to oneOfType, expected an instance of array."),u;for(var I=0;I<ne.length;I++){var Z=ne[I];if(typeof Z!="function")return s("Invalid argument supplied to oneOfType. Expected an array of check functions, but received "+K(Z)+" at index "+I+"."),u}function W(ae,ge,Ne,ue,xe){for(var me=[],be=0;be<ne.length;be++){var de=ne[be],ie=de(ae,ge,Ne,ue,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 "+ue+" `"+xe+"` supplied to "+("`"+Ne+"`"+ze+"."))}return N(W)}function B(){function ne(I,Z,W,ae,ge){return Y(I[Z])?null:new x("Invalid "+ae+" `"+ge+"` supplied to "+("`"+W+"`, expected a ReactNode."))}return N(ne)}function z(ne,I,Z,W,ae){return new x((ne||"React class")+": "+I+" type `"+Z+"."+W+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+ae+"`.")}function q(ne){function I(Z,W,ae,ge,Ne){var ue=Z[W],xe=U(ue);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 z(ae,ge,Ne,me,G(be));var de=be(ue,me,ae,ge,Ne+"."+me,n);if(de)return de}return null}return N(I)}function F(ne){function I(Z,W,ae,ge,Ne){var ue=Z[W],xe=U(ue);if(xe!=="object")return new x("Invalid "+ge+" `"+Ne+"` of type `"+xe+"` "+("supplied to `"+ae+"`, expected `object`."));var me=t({},Z[W],ne);for(var be in me){var de=ne[be];if(r(ne,be)&&typeof de!="function")return z(ae,ge,Ne,be,G(de));if(!de)return new x("Invalid "+ge+" `"+Ne+"` key `"+be+"` supplied to `"+ae+"`.\nBad object: "+JSON.stringify(Z[W],null," ")+`
Valid keys: `+JSON.stringify(Object.keys(ne),null," "));var ie=de(ue,be,ae,ge,Ne+"."+be,n);if(ie)return ie}return null}return N(I)}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 I=p(ne);if(I){var Z=I.call(ne),W;if(I!==ne.entries){for(;!(W=Z.next()).done;)if(!Y(W.value))return!1}else for(;!(W=Z.next()).done;){var ae=W.value;if(ae&&!Y(ae[1]))return!1}}else return!1;return!0;default:return!1}}function ee(ne,I){return ne==="symbol"?!0:I?I["@@toStringTag"]==="Symbol"||typeof Symbol=="function"&&I instanceof Symbol:!1}function U(ne){var I=typeof ne;return Array.isArray(ne)?"array":ne instanceof RegExp?"object":ee(I,ne)?"symbol":I}function G(ne){if(typeof ne>"u"||ne===null)return""+ne;var I=U(ne);if(I==="object"){if(ne instanceof Date)return"date";if(ne instanceof RegExp)return"regexp"}return I}function K(ne){var I=G(ne);switch(I){case"array":case"object":return"an "+I;case"boolean":case"date":case"regexp":return"a "+I;default:return I}}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},JO}var m7;function vye(){if(m7)return GO.exports;m7=1;{var e=eF(),t=!0;GO.exports=gye()(e.isElement,t)}return GO.exports}var yye=vye();const Lt=kt(yye);var bye=Object.getOwnPropertyNames,xye=Object.getOwnPropertySymbols,wye=Object.prototype.hasOwnProperty;function p7(e,t){return function(r,o,s){return e(r,o,s)&&t(r,o,s)}}function Ay(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 Nye(e){return e?.[Symbol.toStringTag]}function h7(e){return bye(e).concat(xye(e))}var Eye=Object.hasOwn||(function(e,t){return wye.call(e,t)});function Zu(e,t){return e===t||!e&&!t&&e!==e&&t!==t}var Sye="__v",Aye="__o",Oye="_owner",g7=Object.getOwnPropertyDescriptor,v7=Object.keys;function Tye(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 Cye(e,t){return Zu(e.getTime(),t.getTime())}function _ye(e,t){return e.name===t.name&&e.message===t.message&&e.cause===t.cause&&e.stack===t.stack}function Dye(e,t){return e===t}function y7(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 Rye=Zu;function jye(e,t,n){var r=v7(e),o=r.length;if(v7(t).length!==o)return!1;for(;o-- >0;)if(!rF(e,t,n,r[o]))return!1;return!0}function op(e,t,n){var r=h7(e),o=r.length;if(h7(t).length!==o)return!1;for(var s,u,c;o-- >0;)if(s=r[o],!rF(e,t,n,s)||(u=g7(e,s),c=g7(t,s),(u||c)&&(!u||!c||u.configurable!==c.configurable||u.enumerable!==c.enumerable||u.writable!==c.writable)))return!1;return!0}function Pye(e,t){return Zu(e.valueOf(),t.valueOf())}function Mye(e,t){return e.source===t.source&&e.flags===t.flags}function b7(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 Lye(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 kye(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 rF(e,t,n,r){return(r===Oye||r===Aye||r===Sye)&&(e.$$typeof||t.$$typeof)?!0:Eye(t,r)&&n.equals(e[r],t[r],r,r,e,t,n)}var Iye="[object Arguments]",$ye="[object Boolean]",Vye="[object Date]",Bye="[object Error]",zye="[object Map]",Uye="[object Number]",qye="[object Object]",Hye="[object RegExp]",Fye="[object Set]",Kye="[object String]",Gye="[object URL]",Yye=Array.isArray,x7=typeof ArrayBuffer=="function"&&ArrayBuffer.isView?ArrayBuffer.isView:null,w7=Object.assign,Qye=Object.prototype.toString.call.bind(Object.prototype.toString);function Xye(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 _=typeof x;if(_!==typeof N)return!1;if(_!=="object")return _==="number"?u(x,N,T):_==="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(Yye(x))return t(x,N,T);if(x7!=null&&x7(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=Qye(x);if(P===Vye)return n(x,N,T);if(P===Hye)return m(x,N,T);if(P===zye)return s(x,N,T);if(P===Fye)return g(x,N,T);if(P===qye)return typeof x.then!="function"&&typeof N.then!="function"&&c(x,N,T);if(P===Gye)return y(x,N,T);if(P===Bye)return r(x,N,T);if(P===Iye)return c(x,N,T);if(P===$ye||P===Uye||P===Kye)return f(x,N,T);if(b){var A=b[P];if(!A){var C=Nye(x);C&&(A=b[C])}if(A)return A(x,N,T)}return!1}}function Wye(e){var t=e.circular,n=e.createCustomConfig,r=e.strict,o={areArraysEqual:r?op:Tye,areDatesEqual:Cye,areErrorsEqual:_ye,areFunctionsEqual:Dye,areMapsEqual:r?p7(y7,op):y7,areNumbersEqual:Rye,areObjectsEqual:r?op:jye,arePrimitiveWrappersEqual:Pye,areRegExpsEqual:Mye,areSetsEqual:r?p7(b7,op):b7,areTypedArraysEqual:r?op:Lye,areUrlsEqual:kye,unknownTagComparators:void 0};if(n&&(o=w7({},o,n(o))),t){var s=Ay(o.areArraysEqual),u=Ay(o.areMapsEqual),c=Ay(o.areObjectsEqual),f=Ay(o.areSetsEqual);o=w7({},o,{areArraysEqual:s,areMapsEqual:u,areObjectsEqual:c,areSetsEqual:f})}return o}function Zye(e){return function(t,n,r,o,s,u,c){return e(t,n,c)}}function Jye(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 ebe=gl();gl({strict:!0});gl({circular:!0});gl({circular:!0,strict:!0});gl({createInternalComparator:function(){return Zu}});gl({strict:!0,createInternalComparator:function(){return Zu}});gl({circular:!0,createInternalComparator:function(){return Zu}});gl({circular:!0,createInternalComparator:function(){return Zu},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=Wye(e),f=Xye(c),m=r?r(f):Zye(f);return Jye({circular:n,comparator:f,createState:o,equals:m,strict:u})}function tbe(e){typeof requestAnimationFrame<"u"&&requestAnimationFrame(e)}function N7(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):tbe(o)};requestAnimationFrame(r)}function XC(e){"@babel/helpers - typeof";return XC=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},XC(e)}function nbe(e){return obe(e)||ibe(e)||abe(e)||rbe()}function rbe(){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 abe(e,t){if(e){if(typeof e=="string")return E7(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 E7(e,t)}}function E7(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 ibe(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function obe(e){if(Array.isArray(e))return e}function sbe(){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=nbe(u),f=c[0],m=c.slice(1);if(typeof f=="number"){N7(o.bind(null,m),f);return}o(f),N7(o.bind(null,m));return}XC(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 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 S7(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 A7(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?S7(Object(n),!0).forEach(function(r){aF(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):S7(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function aF(e,t,n){return t=lbe(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function lbe(e){var t=ube(e,"string");return sh(t)==="symbol"?t:String(t)}function ube(e,t){if(sh(e)!=="object"||e===null)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 cbe=function(t,n){return[Object.keys(t),Object.keys(n)].reduce(function(r,o){return r.filter(function(s){return o.includes(s)})})},dbe=function(t){return t},fbe=function(t){return t.replace(/([A-Z])/g,function(n){return"-".concat(n.toLowerCase())})},Np=function(t,n){return Object.keys(n).reduce(function(r,o){return A7(A7({},r),{},aF({},o,t(o,n[o])))},{})},O7=function(t,n,r){return t.map(function(o){return"".concat(fbe(o)," ").concat(n,"ms ").concat(r)}).join(",")},Sb=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 mbe(e,t){return gbe(e)||hbe(e,t)||iF(e,t)||pbe()}function pbe(){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 hbe(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 gbe(e){if(Array.isArray(e))return e}function vbe(e){return xbe(e)||bbe(e)||iF(e)||ybe()}function ybe(){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 iF(e,t){if(e){if(typeof e=="string")return WC(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 WC(e,t)}}function bbe(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function xbe(e){if(Array.isArray(e))return WC(e)}function WC(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 Ab=1e-4,oF=function(t,n){return[0,3*t,3*n-6*t,3*t-3*n+1]},sF=function(t,n){return t.map(function(r,o){return r*Math.pow(n,o)}).reduce(function(r,o){return r+o})},T7=function(t,n){return function(r){var o=oF(t,n);return sF(o,r)}},wbe=function(t,n){return function(r){var o=oF(t,n),s=[].concat(vbe(o.map(function(u,c){return u*c}).slice(1)),[0]);return sF(s,r)}},C7=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=mbe(m,4);o=g[0],s=g[1],u=g[2],c=g[3]}else Sb(!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)}}Sb([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=T7(o,u),y=T7(s,c),b=wbe(o,u),S=function(T){return T>1?1:T<0?0:T},x=function(T){for(var _=T>1?1:T,D=_,P=0;P<8;++P){var A=p(D)-_,C=b(D);if(Math.abs(A-_)<Ab||C<Ab)return y(D);D=S(D-A/C)}return y(D)};return x.isStepper=!1,x},Nbe=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)<Ab&&Math.abs(x)<Ab?[p,0]:[N,x]};return f.isStepper=!0,f.dt=c,f},Ebe=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 C7(o);case"spring":return Nbe();default:if(o.split("(")[0]==="cubic-bezier")return C7(o);Sb(!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:(Sb(!1,"[configEasing]: first argument type should be function or string, instead received %s",n),null)};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 _7(e){return Obe(e)||Abe(e)||lF(e)||Sbe()}function Sbe(){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 Abe(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function Obe(e){if(Array.isArray(e))return JC(e)}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 rr(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){ZC(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 ZC(e,t,n){return t=Tbe(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Tbe(e){var t=Cbe(e,"string");return lh(t)==="symbol"?t:String(t)}function Cbe(e,t){if(lh(e)!=="object"||e===null)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)}function _be(e,t){return jbe(e)||Rbe(e,t)||lF(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 lF(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 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}var Ob=function(t,n,r){return t+(n-t)*r},e_=function(t){var n=t.from,r=t.to;return n!==r},Pbe=function e(t,n,r){var o=Np(function(s,u){if(e_(u)){var c=t(u.from,u.to,u.velocity),f=_be(c,2),m=f[0],g=f[1];return rr(rr({},u),{},{from:m,velocity:g})}return u},n);return r<1?Np(function(s,u){return e_(u)?rr(rr({},u),{},{velocity:Ob(u.velocity,o[s].velocity,r),from:Ob(u.from,o[s].from,r)}):u},n):e(t,o,r-1)};const Mbe=(function(e,t,n,r,o){var s=cbe(e,t),u=s.reduce(function(N,T){return rr(rr({},N),{},ZC({},T,[e[T],t[T]]))},{}),c=s.reduce(function(N,T){return rr(rr({},N),{},ZC({},T,{from:e[T],velocity:0,to:t[T]}))},{}),f=-1,m,g,p=function(){return null},y=function(){return Np(function(T,_){return _.from},c)},b=function(){return!Object.values(c).filter(e_).length},S=function(T){m||(m=T);var _=T-m,D=_/n.dt;c=Pbe(n,c,D),o(rr(rr(rr({},e),t),y())),m=T,b()||(f=requestAnimationFrame(p))},x=function(T){g||(g=T);var _=(T-g)/r,D=Np(function(A,C){return Ob.apply(void 0,_7(C).concat([n(_)]))},u);if(o(rr(rr(rr({},e),t),D)),_<1)f=requestAnimationFrame(p);else{var P=Np(function(A,C){return Ob.apply(void 0,_7(C).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 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)}var Lbe=["children","begin","duration","attributeName","easing","isActive","steps","from","to","canBegin","onAnimationEnd","shouldReAnimate","onAnimationReStart"];function kbe(e,t){if(e==null)return{};var n=Ibe(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 Ibe(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 eT(e){return zbe(e)||Bbe(e)||Vbe(e)||$be()}function $be(){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 Vbe(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 Bbe(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function zbe(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 R7(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?R7(Object(n),!0).forEach(function(r){fp(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):R7(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function fp(e,t,n){return t=uF(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Ube(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function qbe(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,uF(r.key),r)}}function Hbe(e,t,n){return t&&qbe(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function uF(e){var t=Fbe(e,"string");return kd(t)==="symbol"?t:String(t)}function Fbe(e,t){if(kd(e)!=="object"||e===null)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(t==="string"?String:Number)(e)}function Kbe(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 Gbe(e){var t=Ybe();return function(){var r=Tb(e),o;if(t){var s=Tb(this).constructor;o=Reflect.construct(r,arguments,s)}else o=r.apply(this,arguments);return r_(this,o)}}function r_(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 a_(e)}function a_(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Ybe(){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 Tb(e){return Tb=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},Tb(e)}var ao=(function(e){Kbe(n,e);var t=Gbe(n);function n(r,o){var s;Ube(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(a_(s)),s.changeStyle=s.changeStyle.bind(a_(s)),!c||b<=0)return s.state={style:{}},typeof y=="function"&&(s.state={style:g}),r_(s);if(p&&p.length)s.state={style:p[0].style};else if(m){if(typeof y=="function")return s.state={style:m},r_(s);s.state={style:f?fp({},f,m):m}}else s.state={style:{}};return s}return Hbe(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?fp({},f,g):g};this.state&&y&&(f&&y[f]!==g||!f&&y!==g)&&this.setState(b);return}if(!(ebe(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?fp({},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=Mbe(u,c,Ebe(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 _=N.duration,D=N.easing,P=D===void 0?"ease":D,A=N.style,C=N.properties,j=N.onAnimationEnd,L=T>0?u[T-1]:N,V=C||Object.keys(A);if(typeof P=="function"||P==="spring")return[].concat(eT(x),[s.runJSAnimation.bind(s,{from:L.style,to:A,duration:_,easing:P}),_]);var B=O7(V,_,P),z=Za(Za(Za({},L.style),A),{},{transition:B});return[].concat(eT(x),[z,_,j]).filter(dbe)};return this.manager.start([f].concat(eT(u.reduce(b,[g,Math.max(y,c)])),[o.onAnimationEnd]))}},{key:"runAnimation",value:function(o){this.manager||(this.manager=sbe());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?fp({},c,f):f,N=O7(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=kbe(o,Lbe),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,_=R.cloneElement(b,Za(Za({},f),{},{style:Za(Za({},N),g),className:T}));return _};return m===1?p(R.Children.only(s)):H.createElement("div",null,R.Children.map(s,function(y){return p(y)}))}}]),n})(R.PureComponent);ao.displayName="Animate";ao.defaultProps={begin:0,duration:1e3,from:"",to:"",attributeName:"",easing:"ease",isActive:!0,canBegin:!0,steps:[],onAnimationEnd:function(){},onAnimationStart:function(){}};ao.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 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 Cb(){return Cb=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},Cb.apply(this,arguments)}function Qbe(e,t){return Jbe(e)||Zbe(e,t)||Wbe(e,t)||Xbe()}function Xbe(){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 Wbe(e,t){if(e){if(typeof e=="string")return j7(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 j7(e,t)}}function j7(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 Zbe(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 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 M7(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){e0e(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 e0e(e,t,n){return t=t0e(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function t0e(e){var t=n0e(e,"string");return uh(t)=="symbol"?t:t+""}function n0e(e,t){if(uh(e)!="object"||!e)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 L7=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},r0e=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},a0e={x:0,y:0,width:0,height:0,radius:0,isAnimationActive:!1,isUpdateAnimationActive:!1,animationBegin:0,animationDuration:1500,animationEasing:"ease"},gR=function(t){var n=M7(M7({},a0e),t),r=R.useRef(),o=R.useState(-1),s=Qbe(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,_=n.isUpdateAnimationActive;if(f!==+f||m!==+m||g!==+g||p!==+p||g===0||p===0)return null;var D=nt("recharts-rectangle",b);return _?H.createElement(ao,{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:_},function(P){var A=P.width,C=P.height,j=P.x,L=P.y;return H.createElement(ao,{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},H.createElement("path",Cb({},Fe(n,!0),{className:D,d:L7(j,L,A,C,y),ref:r})))}):H.createElement("path",Cb({},Fe(n,!0),{className:D,d:L7(f,m,g,p,y)}))},i0e=["points","className","baseLinePoints","connectNulls"];function fd(){return fd=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},fd.apply(this,arguments)}function o0e(e,t){if(e==null)return{};var n=s0e(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 s0e(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 k7(e){return d0e(e)||c0e(e)||u0e(e)||l0e()}function l0e(){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 u0e(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 c0e(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function d0e(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 I7=function(t){return t&&t.x===+t.x&&t.y===+t.y},f0e=function(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],n=[[]];return t.forEach(function(r){I7(r)?n[n.length-1].push(r):n[n.length-1].length>0&&n.push([])}),I7(t[0])&&n[n.length-1].push(t[0]),n[n.length-1].length<=0&&(n=n.slice(0,-1)),n},Ep=function(t,n){var r=f0e(t);n&&(r=[r.reduce(function(s,u){return[].concat(k7(s),k7(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},m0e=function(t,n,r){var o=Ep(t,r);return"".concat(o.slice(-1)==="Z"?o.slice(0,-1):o,"L").concat(Ep(n.reverse(),r).slice(1))},p0e=function(t){var n=t.points,r=t.className,o=t.baseLinePoints,s=t.connectNulls,u=o0e(t,i0e);if(!n||!n.length)return null;var c=nt("recharts-polygon",r);if(o&&o.length){var f=u.stroke&&u.stroke!=="none",m=m0e(n,o,s);return H.createElement("g",{className:c},H.createElement("path",fd({},Fe(u,!0),{fill:m.slice(-1)==="Z"?u.fill:"none",stroke:"none",d:m})),f?H.createElement("path",fd({},Fe(u,!0),{fill:"none",d:Ep(n,s)})):null,f?H.createElement("path",fd({},Fe(u,!0),{fill:"none",d:Ep(o,s)})):null)}var g=Ep(n,s);return H.createElement("path",fd({},Fe(u,!0),{fill:g.slice(-1)==="Z"?u.fill:"none",className:c,d:g}))};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 Y0=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",o_({},Fe(t,!1),Wy(t),{className:u,cx:n,cy:r,r:o})):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)}var h0e=["x","y","top","left","width","height","className"];function s_(){return s_=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},s_.apply(this,arguments)}function $7(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 g0e(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?$7(Object(n),!0).forEach(function(r){v0e(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):$7(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function v0e(e,t,n){return t=y0e(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function y0e(e){var t=b0e(e,"string");return ch(t)=="symbol"?t:t+""}function b0e(e,t){if(ch(e)!="object"||!e)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 x0e(e,t){if(e==null)return{};var n=w0e(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 w0e(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 N0e=function(t,n,r,o,s,u){return"M".concat(t,",").concat(s,"v").concat(o,"M").concat(u,",").concat(n,"h").concat(r)},E0e=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=x0e(t,h0e),N=g0e({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:H.createElement("path",s_({},Fe(N,!0),{className:nt("recharts-cross",S),d:N0e(r,s,p,b,c,m)}))},tT,V7;function S0e(){if(V7)return tT;V7=1;var e=q0(),t=wH(),n=lo();function r(o,s){return o&&o.length?e(o,n(s,2),t):void 0}return tT=r,tT}var A0e=S0e();const O0e=kt(A0e);var nT,B7;function T0e(){if(B7)return nT;B7=1;var e=q0(),t=lo(),n=NH();function r(o,s){return o&&o.length?e(o,t(s,2),n):void 0}return nT=r,nT}var C0e=T0e();const _0e=kt(C0e);var D0e=["cx","cy","angle","ticks","axisLine"],R0e=["ticks","tick","angle","tickFormatter","stroke"];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)}function Sp(){return Sp=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},Sp.apply(this,arguments)}function z7(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?z7(Object(n),!0).forEach(function(r){Q0(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):z7(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function U7(e,t){if(e==null)return{};var n=j0e(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 j0e(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 P0e(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function q7(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,dF(r.key),r)}}function M0e(e,t,n){return t&&q7(e.prototype,t),n&&q7(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function L0e(e,t,n){return t=_b(t),k0e(e,cF()?Reflect.construct(t,n||[],_b(e).constructor):t.apply(e,n))}function k0e(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 I0e(e)}function I0e(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 _b(e){return _b=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},_b(e)}function $0e(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 Q0(e,t,n){return t=dF(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function dF(e){var t=V0e(e,"string");return Id(t)=="symbol"?t:t+""}function V0e(e,t){if(Id(e)!="object"||!e)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 String(e)}var X0=(function(e){function t(){return P0e(this,t),L0e(this,t,arguments)}return $0e(t,e),M0e(t,[{key:"getTickValueCoord",value:function(r){var o=r.coordinate,s=this.props,u=s.angle,c=s.cx,f=s.cy;return Jt(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=O0e(c,function(g){return g.coordinate||0}),m=_0e(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=U7(r,D0e),g=c.reduce(function(S,x){return[Math.min(S[0],x.coordinate),Math.max(S[1],x.coordinate)]},[1/0,-1/0]),p=Jt(o,s,g[0],u),y=Jt(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 H.createElement("line",Sp({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=U7(o,R0e),p=this.getTickTextAnchor(),y=Fe(g,!1),b=Fe(u,!1),S=s.map(function(x,N){var T=r.getTickValueCoord(x),_=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 H.createElement(Nt,Sp({className:nt("recharts-polar-radius-axis-tick",XH(u)),key:"tick-".concat(x.coordinate)},ku(r.props,x,N)),t.renderTickItem(u,_,f?f(x.value,N):x.value))});return H.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:H.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 H.isValidElement(r)?u=H.cloneElement(r,o):Qe(r)?u=r(o):u=H.createElement(Iu,Sp({},o,{className:"recharts-polar-radius-axis-tick-value"}),s),u}}])})(R.PureComponent);Q0(X0,"displayName","PolarRadiusAxis");Q0(X0,"axisType","radiusAxis");Q0(X0,"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 $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 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 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 lu(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){W0(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 B0e(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function F7(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,mF(r.key),r)}}function z0e(e,t,n){return t&&F7(e.prototype,t),n&&F7(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function U0e(e,t,n){return t=Db(t),q0e(e,fF()?Reflect.construct(t,n||[],Db(e).constructor):t.apply(e,n))}function q0e(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 H0e(e)}function H0e(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function fF(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(fF=function(){return!!e})()}function Db(e){return Db=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},Db(e)}function F0e(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&&u_(e,t)}function u_(e,t){return u_=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,o){return r.__proto__=o,r},u_(e,t)}function W0(e,t,n){return t=mF(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function mF(e){var t=K0e(e,"string");return $d(t)=="symbol"?t:t+""}function K0e(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 G0e=Math.PI/180,K7=1e-5,Z0=(function(e){function t(){return B0e(this,t),U0e(this,t,arguments)}return F0e(t,e),z0e(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=Jt(s,u,c,r.coordinate),y=Jt(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*G0e),u;return s>K7?u=o==="outer"?"start":"end":s<-K7?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 H.createElement(Y0,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 Jt(o,s,u,y.coordinate)});return H.createElement(p0e,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),_=lu(lu(lu({textAnchor:T},g),{},{stroke:"none",fill:m},p),{},{index:x,payload:S,x:N.x2,y:N.y2});return H.createElement(Nt,pu({className:nt("recharts-polar-angle-axis-tick",XH(u)),key:"tick-".concat(S.coordinate)},ku(r.props,S,x)),c&&H.createElement("line",pu({className:"recharts-polar-angle-axis-tick-line"},y,N)),u&&t.renderTickItem(u,_,f?f(S.value,x):S.value))});return H.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:H.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 H.isValidElement(r)?u=H.cloneElement(r,o):Qe(r)?u=r(o):u=H.createElement(Iu,pu({},o,{className:"recharts-polar-angle-axis-tick-value"}),s),u}}])})(R.PureComponent);W0(Z0,"displayName","PolarAngleAxis");W0(Z0,"axisType","angleAxis");W0(Z0,"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 rT,G7;function Y0e(){if(G7)return rT;G7=1;var e=x2(),t=e(Object.getPrototypeOf,Object);return rT=t,rT}var aT,Y7;function Q0e(){if(Y7)return aT;Y7=1;var e=os(),t=Y0e(),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 aT=m,aT}var X0e=Q0e();const W0e=kt(X0e);var iT,Q7;function Z0e(){if(Q7)return iT;Q7=1;var e=os(),t=ss(),n="[object Boolean]";function r(o){return o===!0||o===!1||t(o)&&e(o)==n}return iT=r,iT}var J0e=Z0e();const exe=kt(J0e);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 Rb(){return Rb=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},Rb.apply(this,arguments)}function txe(e,t){return ixe(e)||axe(e,t)||rxe(e,t)||nxe()}function nxe(){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 rxe(e,t){if(e){if(typeof e=="string")return X7(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 X7(e,t)}}function X7(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 axe(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 ixe(e){if(Array.isArray(e))return e}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 Z7(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){oxe(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 oxe(e,t,n){return t=sxe(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function sxe(e){var t=lxe(e,"string");return dh(t)=="symbol"?t:t+""}function lxe(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 J7=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},uxe={x:0,y:0,upperWidth:0,lowerWidth:0,height:0,isUpdateAnimationActive:!1,animationBegin:0,animationDuration:1500,animationEasing:"ease"},cxe=function(t){var n=Z7(Z7({},uxe),t),r=R.useRef(),o=R.useState(-1),s=txe(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 _=nt("recharts-trapezoid",b);return T?H.createElement(ao,{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,C=D.height,j=D.x,L=D.y;return H.createElement(ao,{canBegin:u>0,from:"0px ".concat(u===-1?1:u,"px"),to:"".concat(u,"px 0px"),attributeName:"strokeDasharray",begin:N,duration:x,easing:S},H.createElement("path",Rb({},Fe(n,!0),{className:_,d:J7(j,L,P,A,C),ref:r})))}):H.createElement("g",null,H.createElement("path",Rb({},Fe(n,!0),{className:_,d:J7(f,m,g,p,y)})))},dxe=["option","shapeType","propTransformer","activeClassName","isActive"];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)}function fxe(e,t){if(e==null)return{};var n=mxe(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 mxe(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 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 jb(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){pxe(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 pxe(e,t,n){return t=hxe(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function hxe(e){var t=gxe(e,"string");return fh(t)=="symbol"?t:t+""}function gxe(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 vxe(e,t){return jb(jb({},t),e)}function yxe(e,t){return e==="symbols"}function t8(e){var t=e.shapeType,n=e.elementProps;switch(t){case"rectangle":return H.createElement(gR,n);case"trapezoid":return H.createElement(cxe,n);case"sector":return H.createElement(JH,n);case"symbols":if(yxe(t))return H.createElement(LD,n);break;default:return null}}function bxe(e){return R.isValidElement(e)?e.props:e}function pF(e){var t=e.option,n=e.shapeType,r=e.propTransformer,o=r===void 0?vxe:r,s=e.activeClassName,u=s===void 0?"recharts-active-shape":s,c=e.isActive,f=fxe(e,dxe),m;if(R.isValidElement(t))m=R.cloneElement(t,jb(jb({},f),bxe(t)));else if(Qe(t))m=t(f);else if(W0e(t)&&!exe(t)){var g=o(t,f);m=H.createElement(t8,{shapeType:n,elementProps:g})}else{var p=f;m=H.createElement(t8,{shapeType:n,elementProps:p})}return c?H.createElement(Nt,{className:u},m):m}function J0(e,t){return t!=null&&"trapezoids"in e.props}function ex(e,t){return t!=null&&"sectors"in e.props}function mh(e,t){return t!=null&&"points"in e.props}function xxe(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 wxe(e,t){var n=e.endAngle===t.endAngle,r=e.startAngle===t.startAngle;return n&&r}function Nxe(e,t){var n=e.x===t.x,r=e.y===t.y,o=e.z===t.z;return n&&r&&o}function Exe(e,t){var n;return J0(e,t)?n=xxe:ex(e,t)?n=wxe:mh(e,t)&&(n=Nxe),n}function Sxe(e,t){var n;return J0(e,t)?n="trapezoids":ex(e,t)?n="sectors":mh(e,t)&&(n="points"),n}function Axe(e,t){if(J0(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(ex(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 mh(e,t)?t.payload:{}}function Oxe(e){var t=e.activeTooltipItem,n=e.graphicalItem,r=e.itemData,o=Sxe(n,t),s=Axe(n,t),u=r.filter(function(f,m){var g=Md(s,f),p=n.props[o].filter(function(S){var x=Exe(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 My;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 md(){return md=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},md.apply(this,arguments)}function n8(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 Qt(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?n8(Object(n),!0).forEach(function(r){Ma(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):n8(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function Txe(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function r8(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,gF(r.key),r)}}function Cxe(e,t,n){return t&&r8(e.prototype,t),n&&r8(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function _xe(e,t,n){return t=Pb(t),Dxe(e,hF()?Reflect.construct(t,n||[],Pb(e).constructor):t.apply(e,n))}function Dxe(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 Rxe(e)}function Rxe(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function hF(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(hF=function(){return!!e})()}function Pb(e){return Pb=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},Pb(e)}function jxe(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 Ma(e,t,n){return t=gF(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function gF(e){var t=Pxe(e,"string");return Vd(t)=="symbol"?t:t+""}function Pxe(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 us=(function(e){function t(n){var r;return Txe(this,t),r=_xe(this,t,[n]),Ma(r,"pieRef",null),Ma(r,"sectorRefs",[]),Ma(r,"id",df("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 jxe(t,e),Cxe(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,_=Jt(x.cx,x.cy,x.outerRadius+b,T),D=Qt(Qt(Qt(Qt({},g),x),{},{stroke:"none"},p),{},{index:N,textAnchor:t.getTextAnchor(_.x,x.cx)},_),P=Qt(Qt(Qt(Qt({},g),x),{},{fill:"none",stroke:x.fill},y),{},{index:N,points:[Jt(x.cx,x.cy,x.outerRadius,T),_]}),A=f;return rt(f)&&rt(m)?A="value":rt(f)&&(A=m),H.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 H.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=Qt(Qt({},m),{},{stroke:c?m.fill:m.stroke,tabIndex:-1});return H.createElement(Nt,md({ref:function(N){N&&!o.sectorRefs.includes(N)&&o.sectorRefs.push(N)},tabIndex:-1,className:"recharts-pie-sector"},ku(o.props,m,g),{key:"sector-".concat(m?.startAngle,"-").concat(m?.endAngle,"-").concat(m.midAngle,"-").concat(g)}),H.createElement(pF,md({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 H.createElement(ao,{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],_=T.startAngle;return s.forEach(function(D,P){var A=y&&y[P],C=P>0?ma(D,"paddingAngle",0):0;if(A){var j=Hr(A.endAngle-A.startAngle,D.endAngle-D.startAngle),L=Qt(Qt({},D),{},{startAngle:_+C,endAngle:_+j(x)+C});N.push(L),_=L.endAngle}else{var V=D.endAngle,B=D.startAngle,z=Hr(0,V-B),q=z(x),F=Qt(Qt({},D),{},{startAngle:_+C,endAngle:_+q+C});N.push(F),_=F.endAngle}}),H.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||!Md(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 H.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)&&Wo.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(H.isValidElement(r))return H.cloneElement(r,o);if(Qe(r))return r(o);var u=nt("recharts-pie-label-line",typeof r!="boolean"?r.className:"");return H.createElement(wd,md({},o,{key:s,type:"linear",className:u}))}},{key:"renderLabelItem",value:function(r,o,s){if(H.isValidElement(r))return H.cloneElement(r,o);var u=s;if(Qe(r)&&(u=r(o),H.isValidElement(u)))return u;var c=nt("recharts-pie-label-text",typeof r!="boolean"&&!Qe(r)?r.className:"");return H.createElement(Iu,md({},o,{alignmentBaseline:"middle",className:c}),u)}}])})(R.PureComponent);My=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:!Qu.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,k0);return t&&t.length?t.map(function(s,u){return Qt(Qt(Qt({payload:s},r),s),o&&o[u]&&o[u].props)}):o&&o.length?o.map(function(s){return Qt(Qt({},r),s.props)}):[]});Ma(us,"parseCoordinateOfPie",function(e,t){var n=t.top,r=t.left,o=t.width,s=t.height,u=QH(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?Qt(Qt({},t.type.defaultProps),t.props):t.props,o=My.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=My.parseCoordinateOfPie(r,n),x=My.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 _=o.filter(function(L){return $n(L,T,0)!==0}).length,D=(N>=360?_:_-1)*f,P=N-_*b-D,A=o.reduce(function(L,V){var B=$n(V,T,0);return L+(Oe(B)?B:0)},0),C;if(A>0){var j;C=o.map(function(L,V){var B=$n(L,T,0),z=$n(L,g,V),q=(Oe(B)?B:0)/A,F;V?F=j.endAngle+Dr(x)*f*(B!==0?1:0):F=u;var Y=F+Dr(x)*((B!==0?b:0)+q*P),ee=(F+Y)/2,U=(S.innerRadius+S.outerRadius)/2,G=[{name:z,value:B,payload:L,dataKey:T,type:y}],K=Jt(S.cx,S.cy,U,ee);return j=Qt(Qt(Qt({percent:q,cornerRadius:s,name:z,tooltipPayload:G,midAngle:ee,middleRadius:U,tooltipPosition:K},L),S),{},{value:$n(L,T),startAngle:F,endAngle:Y,payload:L,paddingAngle:Dr(x)*f}),j})}return Qt(Qt({},S),{},{sectors:C,data:o})});var oT,a8;function Mxe(){if(a8)return oT;a8=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 oT=n,oT}var sT,i8;function vF(){if(i8)return sT;i8=1;var e=k2(),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 sT=r,sT}var lT,o8;function Lxe(){if(o8)return lT;o8=1;var e=Mxe(),t=L0(),n=vF();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 lT=r,lT}var uT,s8;function kxe(){if(s8)return uT;s8=1;var e=Lxe(),t=e();return uT=t,uT}var Ixe=kxe();const Mb=kt(Ixe);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 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 u8(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){yF(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 yF(e,t,n){return t=$xe(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function $xe(e){var t=Vxe(e,"string");return ph(t)=="symbol"?t:t+""}function Vxe(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)}var Bxe=["Webkit","Moz","O","ms"],zxe=function(t,n){var r=t.replace(/(\w)/,function(s){return s.toUpperCase()}),o=Bxe.reduce(function(s,u){return u8(u8({},s),{},yF({},u+r,n))},{});return o[t]=n,o};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 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 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 cT(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){la(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 Uxe(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function d8(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,xF(r.key),r)}}function qxe(e,t,n){return t&&d8(e.prototype,t),n&&d8(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function Hxe(e,t,n){return t=kb(t),Fxe(e,bF()?Reflect.construct(t,n||[],kb(e).constructor):t.apply(e,n))}function Fxe(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 Kxe(e)}function Kxe(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function bF(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(bF=function(){return!!e})()}function kb(e){return kb=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},kb(e)}function Gxe(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 la(e,t,n){return t=xF(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function xF(e){var t=Yxe(e,"string");return Bd(t)=="symbol"?t:t+""}function Yxe(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 Qxe=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=xp().domain(Mb(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}},f8=function(t){return t.changedTouches&&!!t.changedTouches.length},zd=(function(e){function t(n){var r;return Uxe(this,t),r=Hxe(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=f8(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 Gxe(t,e),qxe(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=f8(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},_=r.pageX-s;_>0?_=Math.min(_,p+y-b-m):_<0&&(_=Math.max(_,p-m)),T[u]=m+_;var D=this.getIndex(T),P=D.startIndex,A=D.endIndex,C=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+_),"brushMoveStartX",r.pageX),function(){S&&C()&&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 H.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?H.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),_=cT(cT({},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 H.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,_))}},{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 H.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 H.createElement(Nt,{className:"recharts-brush-texts"},H.createElement(Iu,Lb({textAnchor:"end",verticalAnchor:"middle",x:Math.min(p,y)-b,y:u+c/2},S),this.getTextOfTick(o)),H.createElement(Iu,Lb({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,_=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=H.Children.count(u)===1,A=zxe("userSelect","none");return H.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||_||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 H.createElement(H.Fragment,null,H.createElement("rect",{x:o,y:s,width:u,height:c,fill:f,stroke:"none"}),H.createElement("line",{x1:o+1,y1:m,x2:o+u-1,y2:m,fill:"none",stroke:"#fff"}),H.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 H.isValidElement(r)?s=H.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 cT({prevData:s,prevTravellerWidth:f,prevUpdateId:m,prevX:c,prevWidth:u},s&&s.length?Qxe({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(zd,"displayName","Brush");la(zd,"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 dT,m8;function Xxe(){if(m8)return dT;m8=1;var e=UD();function t(n,r){var o;return e(n,function(s,u,c){return o=r(s,u,c),!o}),!!o}return dT=t,dT}var fT,p8;function Wxe(){if(p8)return fT;p8=1;var e=m2(),t=lo(),n=Xxe(),r=Kr(),o=L0();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 fT=s,fT}var Zxe=Wxe();const Jxe=kt(Zxe);var Ji=function(t,n){var r=t.alwaysShow,o=t.ifOverflow;return r&&(o="extendDomain"),o===n},mT,h8;function e1e(){if(h8)return mT;h8=1;var e=R2();function t(n,r,o){r=="__proto__"&&e?e(n,r,{configurable:!0,enumerable:!0,value:o,writable:!0}):n[r]=o}return mT=t,mT}var pT,g8;function t1e(){if(g8)return pT;g8=1;var e=e1e(),t=_2(),n=lo();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 pT=r,pT}var n1e=t1e();const r1e=kt(n1e);var hT,v8;function a1e(){if(v8)return hT;v8=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 hT=e,hT}var gT,y8;function i1e(){if(y8)return gT;y8=1;var e=UD();function t(n,r){var o=!0;return e(n,function(s,u,c){return o=!!r(s,u,c),o}),o}return gT=t,gT}var vT,b8;function o1e(){if(b8)return vT;b8=1;var e=a1e(),t=i1e(),n=lo(),r=Kr(),o=L0();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 vT=s,vT}var s1e=o1e();const wF=kt(s1e);var l1e=["x","y"];function Ud(e){"@babel/helpers - typeof";return Ud=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},Ud(e)}function f_(){return f_=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},f_.apply(this,arguments)}function x8(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 sp(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?x8(Object(n),!0).forEach(function(r){u1e(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):x8(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function u1e(e,t,n){return t=c1e(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function c1e(e){var t=d1e(e,"string");return Ud(t)=="symbol"?t:t+""}function d1e(e,t){if(Ud(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(Ud(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function f1e(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 p1e(e,t){var n=e.x,r=e.y,o=f1e(e,l1e),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 sp(sp(sp(sp(sp({},t),o),u?{x:u}:{}),f?{y:f}:{}),{},{height:g,width:y,name:t.name,radius:t.radius})}function w8(e){return H.createElement(pF,f_({shapeType:"rectangle",propTransformer:p1e,activeClassName:"recharts-active-bar"},e))}var h1e=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)||Ile(r);return s?t(r,o):(s||Vu(!1,"minPointSize callback function received a value with type of ".concat(Ud(r),". Currently only numbers or null/undefined are supported.")),n)}},g1e=["value","background"],NF;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 v1e(e,t){if(e==null)return{};var n=y1e(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 y1e(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 Ib(){return Ib=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},Ib.apply(this,arguments)}function N8(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?N8(Object(n),!0).forEach(function(r){il(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):N8(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function b1e(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function E8(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,SF(r.key),r)}}function x1e(e,t,n){return t&&E8(e.prototype,t),n&&E8(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function w1e(e,t,n){return t=$b(t),N1e(e,EF()?Reflect.construct(t,n||[],$b(e).constructor):t.apply(e,n))}function N1e(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 E1e(e)}function E1e(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function EF(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(EF=function(){return!!e})()}function $b(e){return $b=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},$b(e)}function S1e(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 il(e,t,n){return t=SF(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function SF(e){var t=A1e(e,"string");return qd(t)=="symbol"?t:t+""}function A1e(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 Ih=(function(e){function t(){var n;b1e(this,t);for(var r=arguments.length,o=new Array(r),s=0;s<r;s++)o[s]=arguments[s];return n=w1e(this,t,[].concat(o)),il(n,"state",{isAnimationFinished:!1}),il(n,"id",df("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 S1e(t,e),x1e(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 H.createElement(Nt,Ib({className:"recharts-bar-rectangle"},ku(o.props,p,y),{key:"rectangle-".concat(p?.x,"-").concat(p?.y,"-").concat(p?.value,"-").concat(y)}),H.createElement(w8,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 H.createElement(ao,{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 _=y&&y[T];if(_){var D=Hr(_.x,N.x),P=Hr(_.y,N.y),A=Hr(_.width,N.width),C=Hr(_.height,N.height);return _n(_n({},N),{},{x:D(S),y:P(S),width:A(S),height:C(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 H.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||!Md(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=v1e(m,g1e);if(!p)return null;var b=_n(_n(_n(_n(_n({},y),{},{fill:"#eee"},p),f),ku(r.props,m,g)),{},{onAnimationStart:r.handleAnimationStart,onAnimationEnd:r.handleAnimationEnd,dataKey:u,index:g,className:"recharts-bar-background-rectangle"});return H.createElement(w8,Ib({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,G0);if(!p)return null;var y=m==="vertical"?u[0].height/2:u[0].width/2,b=function(N,T){var _=Array.isArray(N.value)?N.value[1]:N.value;return{x:N.x,y:N.y,value:_,errorVal:$n(N,T)}},S={clipPath:r?"url(#clipPath-".concat(o,")"):null};return H.createElement(Nt,S,p.map(function(x){return H.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.allowDataOverflow,D=f&&f.allowDataOverflow,P=_||D,A=rt(x)?this.id:x;return H.createElement(Nt,{className:T},_||D?H.createElement("defs",null,H.createElement("clipPath",{id:"clipPath-".concat(A)},H.createElement("rect",{x:_?m:m-p/2,y:D?g:g-y/2,width:_?p:p*2,height:D?y:y*2}))):null,H.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)&&Wo.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);NF=Ih;il(Ih,"displayName","Bar");il(Ih,"defaultProps",{xAxisId:0,yAxisId:0,legendType:"rect",minPointSize:0,hide:!1,data:[],layout:"vertical",activeBar:!1,isAnimationActive:!Qu.isSsr,animationBegin:0,animationDuration:400,animationEasing:"ease"});il(Ih,"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=Wge(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,_=N.children,D=N.minPointSize,P=S==="horizontal"?u:s,A=m?P.scale.domain():null,C=ave({numericAxis:P}),j=Ia(_,k0),L=p.map(function(V,B){var z,q,F,Y,ee,U;m?z=Zge(m[g+B],A):(z=$n(V,T),Array.isArray(z)||(z=[C,z]));var G=h1e(D,NF.defaultProps.minPointSize)(z[1],B);if(S==="horizontal"){var K,te=[u.scale(z[0]),u.scale(z[1])],ne=te[0],I=te[1];q=q6({axis:s,ticks:c,bandSize:o,offset:b.offset,entry:V,index:B}),F=(K=I??ne)!==null&&K!==void 0?K:void 0,Y=b.size;var Z=ne-I;if(ee=Number.isNaN(Z)?0:Z,U={x:q,y:u.y,width:Y,height:u.height},Math.abs(G)>0&&Math.abs(ee)<Math.abs(G)){var W=Dr(ee||G)*(Math.abs(G)-Math.abs(ee));F-=W,ee+=W}}else{var ae=[s.scale(z[0]),s.scale(z[1])],ge=ae[0],Ne=ae[1];if(q=ge,F=q6({axis:u,ticks:f,bandSize:o,offset:b.offset,entry:V,index:B}),Y=Ne-ge,ee=b.size,U={x:s.x,y:F,width:s.width,height:ee},Math.abs(G)>0&&Math.abs(Y)<Math.abs(G)){var ue=Dr(Y||G)*(Math.abs(G)-Math.abs(Y));Y+=ue}}return _n(_n(_n({},V),{},{x:q,y:F,width:Y,height:ee,value:m?z:z[1],payload:V,background:U},j&&j[B]&&j[B].props),{},{tooltipPayload:[GH(n,V)],tooltipPosition:{x:q+Y/2,y:F+ee/2}})});return _n({data:L,layout:S},y)});function hh(e){"@babel/helpers - typeof";return hh=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},hh(e)}function O1e(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,AF(r.key),r)}}function T1e(e,t,n){return t&&S8(e.prototype,t),n&&S8(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function A8(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?A8(Object(n),!0).forEach(function(r){tx(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):A8(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function tx(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 AF(e){var t=C1e(e,"string");return hh(t)=="symbol"?t:t+""}function C1e(e,t){if(hh(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(hh(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var _1e=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,Ih);return g.reduce(function(b,S){var x=n[S],N=x.orientation,T=x.domain,_=x.padding,D=_===void 0?{}:_,P=x.mirror,A=x.reversed,C="".concat(N).concat(P?"Mirror":""),j,L,V,B,z;if(x.type==="number"&&(x.padding==="gap"||x.padding==="no-gap")){var q=T[1]-T[0],F=1/0,Y=x.categoricalDomain.sort(Ble);if(Y.forEach(function(ae,ge){ge>0&&(F=Math.min((ae||0)-(Y[ge-1]||0),F))}),Number.isFinite(F)){var ee=F/q,U=x.layout==="vertical"?r.height:r.width;if(x.padding==="gap"&&(j=ee*U/2),x.padding==="no-gap"){var G=Rr(t.barCategoryGap,ee*U),K=ee*U/2;j=K-G-(K-G)/U*G}}}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=qH(x,s,y),ne=te.scale,I=te.realScaleType;ne.domain(T).range(L),HH(ne);var Z=FH(ne,ti(ti({},x),{},{realScaleType:I}));o==="xAxis"?(z=N==="top"&&!P||N==="bottom"&&P,V=r.left,B=p[C]-z*x.height):o==="yAxis"&&(z=N==="left"&&!P||N==="right"&&P,V=p[C]-z*x.width,B=r.top);var W=ti(ti(ti({},x),Z),{},{realScaleType:I,x:V,y:B,scale:ne,width:o==="xAxis"?r.width:x.width,height:o==="yAxis"?r.height:x.height});return W.bandSize=wb(W,Z),!x.hide&&o==="xAxis"?p[C]+=(z?-1:1)*W.height:x.hide||(p[C]+=(z?-1:1)*W.width),ti(ti({},b),{},tx({},S,W))},{})},OF=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)}},D1e=function(t){var n=t.x1,r=t.y1,o=t.x2,s=t.y2;return OF({x:n,y:r},{x:o,y:s})},TF=(function(){function e(t){O1e(this,e),this.scale=t}return T1e(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)}}])})();tx(TF,"EPS",1e-4);var vR=function(t){var n=Object.keys(t).reduce(function(r,o){return ti(ti({},r),{},tx({},o,TF.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 r1e(o,function(f,m){return n[m].apply(f,{bandAware:u,position:c})})},isInRange:function(o){return wF(o,function(s,u){return n[u].isInRange(s)})}})};function R1e(e){return(e%180+180)%180}var j1e=function(t){var n=t.width,r=t.height,o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,s=R1e(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)},yT,O8;function P1e(){if(O8)return yT;O8=1;var e=lo(),t=jh(),n=P0();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 yT=r,yT}var bT,T8;function M1e(){if(T8)return bT;T8=1;var e=vF();function t(n){var r=e(n),o=r%1;return r===r?o?r-o:r:0}return bT=t,bT}var xT,C8;function L1e(){if(C8)return xT;C8=1;var e=S2(),t=lo(),n=M1e(),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 xT=o,xT}var wT,_8;function k1e(){if(_8)return wT;_8=1;var e=P1e(),t=L1e(),n=e(t);return wT=n,wT}var I1e=k1e();const $1e=kt(I1e);var V1e=B9();const B1e=kt(V1e);var z1e=B1e(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 Vb(e){"@babel/helpers - typeof";return Vb=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},Vb(e)}var yR=R.createContext(void 0),bR=R.createContext(void 0),CF=R.createContext(void 0),_F=R.createContext({}),DF=R.createContext(void 0),RF=R.createContext(0),jF=R.createContext(0),D8=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=z1e(s);return H.createElement(yR.Provider,{value:r},H.createElement(bR.Provider,{value:o},H.createElement(_F.Provider,{value:s},H.createElement(CF.Provider,{value:g},H.createElement(DF.Provider,{value:u},H.createElement(RF.Provider,{value:m},H.createElement(jF.Provider,{value:f},c)))))))},U1e=function(){return R.useContext(DF)};function PF(e){var t=Object.keys(e);return t.length===0?"There are no available ids.":"Available ids are: ".concat(t,".")}var MF=function(t){var n=R.useContext(yR);n==null&&Vu(!1,"Could not find Recharts context; are you sure this is rendered inside a Recharts wrapper component?");var r=n[t];return r==null&&Vu(!1,'Could not find xAxis by id "'.concat(t,'" [').concat(Vb(t),"]. ").concat(PF(n))),r},q1e=function(){var t=R.useContext(yR);return nl(t)},H1e=function(){var t=R.useContext(bR),n=$1e(t,function(r){return wF(r.domain,Number.isFinite)});return n||nl(t)},LF=function(t){var n=R.useContext(bR);n==null&&Vu(!1,"Could not find Recharts context; are you sure this is rendered inside a Recharts wrapper component?");var r=n[t];return r==null&&Vu(!1,'Could not find yAxis by id "'.concat(t,'" [').concat(Vb(t),"]. ").concat(PF(n))),r},F1e=function(){var t=R.useContext(CF);return t},K1e=function(){return R.useContext(_F)},xR=function(){return R.useContext(jF)},wR=function(){return R.useContext(RF)};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 G1e(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Y1e(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,IF(r.key),r)}}function Q1e(e,t,n){return t&&Y1e(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function X1e(e,t,n){return t=Bb(t),W1e(e,kF()?Reflect.construct(t,n||[],Bb(e).constructor):t.apply(e,n))}function W1e(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 Z1e(e)}function Z1e(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function kF(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(kF=function(){return!!e})()}function Bb(e){return Bb=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},Bb(e)}function J1e(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 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 j8(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){NR(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 NR(e,t,n){return t=IF(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function IF(e){var t=ewe(e,"string");return Hd(t)=="symbol"?t:t+""}function ewe(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)}function twe(e,t){return iwe(e)||awe(e,t)||rwe(e,t)||nwe()}function nwe(){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 rwe(e,t){if(e){if(typeof e=="string")return P8(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 P8(e,t)}}function P8(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 awe(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 iwe(e){if(Array.isArray(e))return e}function h_(){return h_=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},h_.apply(this,arguments)}var owe=function(t,n){var r;return H.isValidElement(t)?r=H.cloneElement(t,n):Qe(t)?r=t(n):r=H.createElement("line",h_({},n,{className:"recharts-reference-line-line"})),r},swe=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(Ji(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,_=t.x.apply(T,{position:u});if(Ji(m,"discard")&&!t.x.isInRange(_))return null;var D=[{x:_,y:p+b},{x:_,y:p}];return c==="top"?D.reverse():D}if(o){var P=m.segment,A=P.map(function(C){return t.apply(C,{position:u})});return Ji(m,"discard")&&Jxe(A,function(C){return!t.isInRange(C)})?null:A}return null};function lwe(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=U1e(),g=MF(o),p=LF(s),y=F1e();if(!m||!y)return null;ii(f===void 0,'The alwaysShow prop is deprecated. Please use ifOverflow="extendDomain" instead.');var b=vR({x:g.scale,y:p.scale}),S=Vn(t),x=Vn(n),N=r&&r.length===2,T=swe(b,S,x,N,y,e.position,g.orientation,p.orientation,e);if(!T)return null;var _=twe(T,2),D=_[0],P=D.x,A=D.y,C=_[1],j=C.x,L=C.y,V=Ji(e,"hidden")?"url(#".concat(m,")"):void 0,B=j8(j8({clipPath:V},Fe(e,!0)),{},{x1:P,y1:A,x2:j,y2:L});return H.createElement(Nt,{className:nt("recharts-reference-line",c)},owe(u,B),Xn.renderCallByParent(e,D1e({x1:P,y1:A,x2:j,y2:L})))}var ER=(function(e){function t(){return G1e(this,t),X1e(this,t,arguments)}return J1e(t,e),Q1e(t,[{key:"render",value:function(){return H.createElement(lwe,this.props)}}])})(H.Component);NR(ER,"displayName","ReferenceLine");NR(ER,"defaultProps",{isFront:!1,ifOverflow:"discard",xAxisId:0,yAxisId:0,fill:"none",stroke:"#ccc",fillOpacity:1,strokeWidth:1,position:"middle"});function g_(){return g_=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},g_.apply(this,arguments)}function 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 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 L8(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){nx(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 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,VF(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=zb(t),mwe(e,$F()?Reflect.construct(t,n||[],zb(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 $F(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return($F=function(){return!!e})()}function zb(e){return zb=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},zb(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&&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 nx(e,t,n){return t=VF(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function VF(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)}var vwe=function(t){var n=t.x,r=t.y,o=t.xAxis,s=t.yAxis,u=vR({x:o.scale,y:s.scale}),c=u.apply({x:n,y:r},{bandAware:!0});return Ji(t,"discard")&&!u.isInRange(c)?null:c},rx=(function(e){function t(){return uwe(this,t),fwe(this,t,arguments)}return hwe(t,e),dwe(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=vwe(this.props);if(!p)return null;var y=p.x,b=p.y,S=this.props,x=S.shape,N=S.className,T=Ji(this.props,"hidden")?"url(#".concat(f,")"):void 0,_=L8(L8({clipPath:T},Fe(this.props,!0)),{},{cx:y,cy:b});return H.createElement(Nt,{className:nt("recharts-reference-dot",N)},t.renderDot(x,_),Xn.renderCallByParent(this.props,{x:y-u,y:b-u,width:2*u,height:2*u}))}}])})(H.Component);nx(rx,"displayName","ReferenceDot");nx(rx,"defaultProps",{isFront:!1,ifOverflow:"discard",xAxisId:0,yAxisId:0,r:10,fill:"#fff",stroke:"#ccc",fillOpacity:1,strokeWidth:1});nx(rx,"renderDot",function(e,t){var n;return H.isValidElement(e)?n=H.cloneElement(e,t):Qe(e)?n=e(t):n=H.createElement(Y0,g_({},t,{cx:t.cx,cy:t.cy,className:"recharts-reference-dot-dot"})),n});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 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 k8(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 I8(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?k8(Object(n),!0).forEach(function(r){ax(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):k8(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function ywe(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function bwe(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 xwe(e,t,n){return t&&bwe(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function wwe(e,t,n){return t=Ub(t),Nwe(e,BF()?Reflect.construct(t,n||[],Ub(e).constructor):t.apply(e,n))}function Nwe(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 Ewe(e)}function Ewe(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function BF(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(BF=function(){return!!e})()}function Ub(e){return Ub=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},Ub(e)}function Swe(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 ax(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=Awe(e,"string");return Kd(t)=="symbol"?t:t+""}function Awe(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 Owe=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=vR({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 Ji(s,"discard")&&(!y.isInRange(b)||!y.isInRange(S))?null:OF(b,S)},ix=(function(e){function t(){return ywe(this,t),wwe(this,t,arguments)}return Swe(t,e),xwe(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=Owe(p,y,b,S,this.props);if(!N&&!x)return null;var T=Ji(this.props,"hidden")?"url(#".concat(g,")"):void 0;return H.createElement(Nt,{className:nt("recharts-reference-area",f)},t.renderRect(x,I8(I8({clipPath:T},Fe(this.props,!0)),N)),Xn.renderCallByParent(this.props,N))}}])})(H.Component);ax(ix,"displayName","ReferenceArea");ax(ix,"defaultProps",{isFront:!1,ifOverflow:"discard",xAxisId:0,yAxisId:0,r:10,fill:"#ccc",fillOpacity:.5,stroke:"none",strokeWidth:1});ax(ix,"renderRect",function(e,t){var n;return H.isValidElement(e)?n=H.cloneElement(e,t):Qe(e)?n=e(t):n=H.createElement(gR,y_({},t,{className:"recharts-reference-area-rect"})),n});function UF(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 Twe(e,t,n){var r={width:e.width+t.width,height:e.height+t.height};return j1e(r,n)}function Cwe(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 qb(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 _we(e,t){return UF(e,t+1)}function Dwe(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:UF(r,m)};var x=f,N,T=function(){return N===void 0&&(N=n(S,x)),N},_=S.coordinate,D=f===0||qb(e,_,T,g,c);D||(f=0,g=u,m+=1),D&&(g=_+e*(T()/2+o),f+=m)},y;m<=s.length;)if(y=p(),y)return y.v;return[]}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 $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 cr(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){Rwe(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 Rwe(e,t,n){return t=jwe(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function jwe(e){var t=Pwe(e,"string");return gh(t)=="symbol"?t:t+""}function Pwe(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)}function Mwe(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=qb(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 Lwe(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=qb(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(_){var D=u[_],P,A=function(){return P===void 0&&(P=n(D,_)),P};if(_===0){var C=e*(D.coordinate-e*A()/2-f);u[_]=D=cr(cr({},D),{},{tickCoord:C<0?D.coordinate-C*e:D.coordinate})}else u[_]=D=cr(cr({},D),{},{tickCoord:D.coordinate});var j=qb(e,D.tickCoord,A,f,m);j&&(f=D.tickCoord+e*(A()/2+o),u[_]=cr(cr({},D),{},{isShow:!0}))},N=0;N<S;N++)x(N);return u}function SR(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)||Qu.isSsr)return _we(o,typeof f=="number"&&Oe(f)?f:0);var y=[],b=c==="top"||c==="bottom"?"width":"height",S=g&&b==="width"?bp(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"?Twe(bp(A,{fontSize:t,letterSpacing:n}),S,p):bp(A,{fontSize:t,letterSpacing:n})[b]},N=o.length>=2?Dr(o[1].coordinate-o[0].coordinate):1,T=Cwe(s,N,b);return f==="equidistantPreserveStart"?Dwe(N,T,x,o,u):(f==="preserveStart"||f==="preserveStartEnd"?y=Lwe(N,T,x,o,u,f==="preserveStartEnd"):y=Mwe(N,T,x,o,u),y.filter(function(_){return _.isShow}))}var kwe=["viewBox"],Iwe=["viewBox"],$we=["ticks"];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 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 V8(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?V8(Object(n),!0).forEach(function(r){AR(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):V8(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function NT(e,t){if(e==null)return{};var n=Vwe(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 Vwe(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 Bwe(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function B8(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,HF(r.key),r)}}function zwe(e,t,n){return t&&B8(e.prototype,t),n&&B8(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function Uwe(e,t,n){return t=Hb(t),qwe(e,qF()?Reflect.construct(t,n||[],Hb(e).constructor):t.apply(e,n))}function qwe(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 Hwe(e)}function Hwe(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function qF(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(qF=function(){return!!e})()}function Hb(e){return Hb=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},Hb(e)}function Fwe(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 AR(e,t,n){return t=HF(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function HF(e){var t=Kwe(e,"string");return Gd(t)=="symbol"?t:t+""}function Kwe(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 gf=(function(e){function t(n){var r;return Bwe(this,t),r=Uwe(this,t,[n]),r.state={fontSize:"",letterSpacing:""},r}return Fwe(t,e),zwe(t,[{key:"shouldComponentUpdate",value:function(r,o){var s=r.viewBox,u=NT(r,kwe),c=this.props,f=c.viewBox,m=NT(c,Iwe);return!yd(s,f)||!yd(u,m)||!yd(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,_,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,_=x-D*y,T=A;break;case"left":x=N=r.coordinate,S=s+ +!p*c,b=S-D*P,T=b-D*y,_=A;break;case"right":x=N=r.coordinate,S=s+ +p*c,b=S+D*P,T=b+D*y,_=A;break;default:b=S=r.coordinate,N=u+ +p*f,x=N+D*P,_=x+D*y,T=A;break}return{line:{x1:b,y1:x,x2:S,y2:N},tick:{x:T,y:_}}}},{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 H.createElement("line",pd({},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=SR(kn(kn({},this.props),{},{ticks:r}),o,s),S=this.getTickTextAnchor(),x=this.getTickVerticalAnchor(),N=Fe(this.props,!1),T=Fe(g,!1),_=kn(kn({},N),{},{fill:"none"},Fe(f,!1)),D=b.map(function(P,A){var C=u.getTickLineCoord(P),j=C.line,L=C.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 H.createElement(Nt,pd({className:"recharts-cartesian-axis-tick",key:"tick-".concat(P.value,"-").concat(P.coordinate,"-").concat(P.tickCoord)},ku(u.props,P,A)),f&&H.createElement("line",pd({},_,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 H.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=NT(p,$we),S=y;return Qe(f)&&(S=y&&y.length>0?f(this.props):f(b)),u<=0||c<=0||!S||!S.length?null:H.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 H.isValidElement(r)?u=H.cloneElement(r,kn(kn({},o),{},{className:c})):Qe(r)?u=r(kn(kn({},o),{},{className:c})):u=H.createElement(Iu,pd({},o,{className:"recharts-cartesian-axis-tick-value"}),s),u}}])})(R.Component);AR(gf,"displayName","CartesianAxis");AR(gf,"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 Gwe=["x1","y1","x2","y2","key"],Ywe=["offset"];function Bu(e){"@babel/helpers - typeof";return Bu=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},Bu(e)}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 fr(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){Qwe(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 Qwe(e,t,n){return t=Xwe(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Xwe(e){var t=Wwe(e,"string");return Bu(t)=="symbol"?t:t+""}function Wwe(e,t){if(Bu(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(Bu(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 U8(e,t){if(e==null)return{};var n=Zwe(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 Zwe(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 Jwe=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 H.createElement("rect",{x:o,y:s,ry:f,width:u,height:c,stroke:"none",fill:n,fillOpacity:r,className:"recharts-cartesian-grid-bg"})};function FF(e,t){var n;if(H.isValidElement(e))n=H.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=U8(t,Gwe),m=Fe(f,!1);m.offset;var g=U8(m,Ywe);n=H.createElement("line",bu({},g,{x1:r,y1:o,x2:s,y2:u,fill:"none",key:c}))}return n}function eNe(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 FF(o,m)});return H.createElement("g",{className:"recharts-cartesian-grid-horizontal"},u)}function tNe(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 FF(o,m)});return H.createElement("g",{className:"recharts-cartesian-grid-vertical"},u)}function nNe(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 H.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 H.createElement("g",{className:"recharts-cartesian-gridstripes-horizontal"},p)}function rNe(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 H.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 H.createElement("g",{className:"recharts-cartesian-gridstripes-vertical"},p)}var aNe=function(t,n){var r=t.xAxis,o=t.width,s=t.height,u=t.offset;return UH(SR(fr(fr(fr({},gf.defaultProps),r),{},{ticks:Go(r,!0),viewBox:{x:0,y:0,width:o,height:s}})),u.left,u.left+u.width,n)},iNe=function(t,n){var r=t.yAxis,o=t.width,s=t.height,u=t.offset;return UH(SR(fr(fr(fr({},gf.defaultProps),r),{},{ticks:Go(r,!0),viewBox:{x:0,y:0,width:o,height:s}})),u.top,u.top+u.height,n)},ud={horizontal:!0,vertical:!0,stroke:"#ccc",fill:"none",verticalFill:[],horizontalFill:[]};function KF(e){var t,n,r,o,s,u,c=xR(),f=wR(),m=K1e(),g=fr(fr({},e),{},{stroke:(t=e.stroke)!==null&&t!==void 0?t:ud.stroke,fill:(n=e.fill)!==null&&n!==void 0?n:ud.fill,horizontal:(r=e.horizontal)!==null&&r!==void 0?r:ud.horizontal,horizontalFill:(o=e.horizontalFill)!==null&&o!==void 0?o:ud.horizontalFill,vertical:(s=e.vertical)!==null&&s!==void 0?s:ud.vertical,verticalFill:(u=e.verticalFill)!==null&&u!==void 0?u:ud.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,_=q1e(),D=H1e();if(!Oe(b)||b<=0||!Oe(S)||S<=0||!Oe(p)||p!==+p||!Oe(y)||y!==+y)return null;var P=g.verticalCoordinatesGenerator||aNe,A=g.horizontalCoordinatesGenerator||iNe,C=g.horizontalPoints,j=g.verticalPoints;if((!C||!C.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(Bu(V),"]")),Array.isArray(V)&&(C=V)}if((!j||!j.length)&&Qe(P)){var B=T&&T.length,z=P({xAxis:_?fr(fr({},_),{},{ticks:B?T:_.ticks}):void 0,width:c,height:f,offset:m},B?!0:x);ii(Array.isArray(z),"verticalCoordinatesGenerator should return Array but instead it returned [".concat(Bu(z),"]")),Array.isArray(z)&&(j=z)}return H.createElement("g",{className:"recharts-cartesian-grid"},H.createElement(Jwe,{fill:g.fill,fillOpacity:g.fillOpacity,x:g.x,y:g.y,width:g.width,height:g.height,ry:g.ry}),H.createElement(eNe,bu({},g,{offset:m,horizontalPoints:C,xAxis:_,yAxis:D})),H.createElement(tNe,bu({},g,{offset:m,verticalPoints:j,xAxis:_,yAxis:D})),H.createElement(nNe,bu({},g,{horizontalPoints:C})),H.createElement(rNe,bu({},g,{verticalPoints:j})))}KF.displayName="CartesianGrid";var oNe=["layout","type","stroke","connectNulls","isRange","ref"],sNe=["key"],GF;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 YF(e,t){if(e==null)return{};var n=lNe(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 lNe(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 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 el(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){Xi(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 uNe(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function H8(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,XF(r.key),r)}}function cNe(e,t,n){return t&&H8(e.prototype,t),n&&H8(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function dNe(e,t,n){return t=Fb(t),fNe(e,QF()?Reflect.construct(t,n||[],Fb(e).constructor):t.apply(e,n))}function fNe(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 mNe(e)}function mNe(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function QF(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(QF=function(){return!!e})()}function Fb(e){return Fb=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},Fb(e)}function pNe(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 Xi(e,t,n){return t=XF(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function XF(e){var t=hNe(e,"string");return Yd(t)=="symbol"?t:t+""}function hNe(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 eo=(function(e){function t(){var n;uNe(this,t);for(var r=arguments.length,o=new Array(r),s=0;s<r;s++)o[s]=arguments[s];return n=dNe(this,t,[].concat(o)),Xi(n,"state",{isAnimationFinished:!0}),Xi(n,"id",df("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 pNe(t,e),cNe(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 _=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,_)}),x={clipPath:r?"url(#clipPath-".concat(o?"":"dots-").concat(s,")"):null};return H.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)?H.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)?H.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=YF(c,oNe);return H.createElement(Nt,{clipPath:s?"url(#clipPath-".concat(u,")"):null},H.createElement(wd,xu({},Fe(b,!0),{points:r,connectNulls:p,type:m,baseLine:o,layout:f,stroke:"none",className:"recharts-area-area"})),g!=="none"&&H.createElement(wd,xu({},Fe(this.props,!1),{className:"recharts-area-curve",layout:f,type:m,connectNulls:p,fill:"none",points:r})),g!=="none"&&y&&H.createElement(wd,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 H.createElement(ao,{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 _=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 z=x[B],q=Hr(z.x,L.x),F=Hr(z.y,L.y);return el(el({},L),{},{x:q(_),y:F(_)})}return L}),A;if(Oe(f)&&typeof f=="number"){var C=Hr(N,f);A=C(_)}else if(rt(f)||cf(f)){var j=Hr(N,0);A=j(_)}else A=f.map(function(L,V){var B=Math.floor(V*D);if(N[B]){var z=N[B],q=Hr(z.x,L.x),F=Hr(z.y,L.y);return el(el({},L),{},{x:q(_),y:F(_)})}return L});return s.renderAreaStatically(P,A,r,o)}return H.createElement(Nt,null,H.createElement("defs",null,H.createElement("clipPath",{id:"animationClipPath-".concat(o)},s.renderClipRect(_))),H.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||!Md(g,u)||!Md(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.length===1,D=nt("recharts-area",f),P=p&&p.allowDataOverflow,A=y&&y.allowDataOverflow,C=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,z=L.strokeWidth,q=z===void 0?2:z,F=Qle(u)?u:{},Y=F.clipDot,ee=Y===void 0?!0:Y,U=B*2+q;return H.createElement(Nt,{className:D},P||A?H.createElement("defs",null,H.createElement("clipPath",{id:"clipPath-".concat(j)},H.createElement("rect",{x:P?g:g-b/2,y:A?m:m-S/2,width:P?b:b*2,height:A?S:S*2})),!ee&&H.createElement("clipPath",{id:"clipPath-dots-".concat(j)},H.createElement("rect",{x:g-U/2,y:m-U/2,width:b+U,height:S+U}))):null,_?null:this.renderArea(C,j),(u||_)&&this.renderDots(C,ee,j),(!x||T)&&Wo.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);GF=eo;Xi(eo,"displayName","Area");Xi(eo,"defaultProps",{stroke:"#3182bd",fill:"#3182bd",fillOpacity:.6,xAxisId:0,yAxisId:0,legendType:"line",connectNulls:!1,points:[],dot:!1,activeDot:!0,hide:!1,isAnimationActive:!Qu.isSsr,animationBegin:0,animationDuration:1500,animationEasing:"ease"});Xi(eo,"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(eo,"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=GF.getBaseValue(t,n,r,o),N=b==="horizontal",T=!1,_=p.map(function(P,A){var C;S?C=m[g+A]:(C=$n(P,f),Array.isArray(C)?T=!0:C=[x,C]);var j=C[1]==null||S&&$n(P,f)==null;return N?{x:U6({axis:r,ticks:s,bandSize:c,entry:P,index:A}),y:j?null:o.scale(C[1]),value:C,payload:P}:{x:j?null:r.scale(C[1]),y:U6({axis:o,ticks:u,bandSize:c,entry:P,index:A}),value:C,payload:P}}),D;return S||T?D=_.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:_,baseLine:D,layout:b,isRange:T},y)});Xi(eo,"renderDotItem",function(e,t){var n;if(H.isValidElement(e))n=H.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=YF(t,sNe);n=H.createElement(Y0,xu({},s,{key:o,className:r}))}return n});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 gNe(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function vNe(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 yNe(e,t,n){return t&&vNe(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function bNe(e,t,n){return t=Kb(t),xNe(e,WF()?Reflect.construct(t,n||[],Kb(e).constructor):t.apply(e,n))}function xNe(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 wNe(e)}function wNe(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function WF(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(WF=function(){return!!e})()}function Kb(e){return Kb=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},Kb(e)}function NNe(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 ZF(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=ENe(e,"string");return Qd(t)=="symbol"?t:t+""}function ENe(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)}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 SNe(e){var t=e.xAxisId,n=xR(),r=wR(),o=MF(t);return o==null?null:R.createElement(gf,E_({},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 Go(u,!0)}}))}var ox=(function(e){function t(){return gNe(this,t),bNe(this,t,arguments)}return NNe(t,e),yNe(t,[{key:"render",value:function(){return R.createElement(SNe,this.props)}}])})(R.Component);ZF(ox,"displayName","XAxis");ZF(ox,"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 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 ANe(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function ONe(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,nK(r.key),r)}}function TNe(e,t,n){return t&&ONe(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function CNe(e,t,n){return t=Gb(t),_Ne(e,eK()?Reflect.construct(t,n||[],Gb(e).constructor):t.apply(e,n))}function _Ne(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 DNe(e)}function DNe(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 Gb(e){return Gb=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},Gb(e)}function RNe(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 tK(e,t,n){return t=nK(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function nK(e){var t=jNe(e,"string");return Xd(t)=="symbol"?t:t+""}function jNe(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 A_(){return A_=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},A_.apply(this,arguments)}var PNe=function(t){var n=t.yAxisId,r=xR(),o=wR(),s=LF(n);return s==null?null:R.createElement(gf,A_({},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 Go(c,!0)}}))},sx=(function(e){function t(){return ANe(this,t),CNe(this,t,arguments)}return RNe(t,e),TNe(t,[{key:"render",value:function(){return R.createElement(PNe,this.props)}}])})(R.Component);tK(sx,"displayName","YAxis");tK(sx,"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 F8(e){return INe(e)||kNe(e)||LNe(e)||MNe()}function MNe(){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 LNe(e,t){if(e){if(typeof e=="string")return O_(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 O_(e,t)}}function kNe(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function INe(e){if(Array.isArray(e))return O_(e)}function O_(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 T_=function(t,n,r,o,s){var u=Ia(t,ER),c=Ia(t,rx),f=[].concat(F8(u),F8(c)),m=Ia(t,ix),g="".concat(o,"Id"),p=o[0],y=n;if(f.length&&(y=f.reduce(function(x,N){if(N.props[g]===r&&Ji(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&&Ji(N.props,"extendDomain")&&Oe(N.props[b])&&Oe(N.props[S])){var T=N.props[b],_=N.props[S];return[Math.min(x[0],T,_),Math.max(x[1],T,_)]}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},ET={exports:{}},K8;function $Ne(){return K8||(K8=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,_,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,_=new Array(T-1);D<T;D++)_[D-1]=arguments[D];N.fn.apply(N.context,_)}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(!_)for(A=1,_=new Array(T-1);A<T;A++)_[A-1]=arguments[A];N[D].fn.apply(N[D].context,_)}}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})(ET)),ET.exports}var VNe=$Ne();const BNe=kt(VNe);var ST=new BNe,AT="recharts.syncMouseEvents";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 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,rK(r.key),r)}}function qNe(e,t,n){return t&&UNe(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function OT(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=HNe(e,"string");return vh(t)=="symbol"?t:t+""}function HNe(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 String(e)}var FNe=(function(){function e(){zNe(this,e),OT(this,"activeIndex",0),OT(this,"coordinateList",[]),OT(this,"layout","horizontal")}return qNe(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 KNe(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 GNe(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 aK(e){var t=e.cx,n=e.cy,r=e.radius,o=e.startAngle,s=e.endAngle,u=Jt(t,n,r,o),c=Jt(t,n,r,s);return{points:[u,c],cx:t,cy:n,radius:r,startAngle:o,endAngle:s}}function YNe(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=Jt(c,f,m,p),b=Jt(c,f,g,p);r=y.x,o=y.y,s=b.x,u=b.y}else return aK(t);return[{x:r,y:o},{x:s,y:u}]}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 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 Oy(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){QNe(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 QNe(e,t,n){return t=XNe(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function XNe(e){var t=WNe(e,"string");return yh(t)=="symbol"?t:t+""}function WNe(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 ZNe(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=wd;if(y==="ScatterChart")S=u,x=E0e;else if(y==="BarChart")S=GNe(p,u,f,g),x=gR;else if(p==="radial"){var N=aK(u),T=N.cx,_=N.cy,D=N.radius,P=N.startAngle,A=N.endAngle;S={cx:T,cy:_,startAngle:P,endAngle:A,innerRadius:D,outerRadius:D},x=JH}else S={points:YNe(p,u,f)},x=wd;var C=Oy(Oy(Oy(Oy({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,C):R.createElement(x,C)}var JNe=["item"],eEe=["children","className","width","height","style","compact","title","desc"];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 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 Y8(e,t){return rEe(e)||nEe(e,t)||oK(e,t)||tEe()}function tEe(){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 nEe(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 rEe(e){if(Array.isArray(e))return e}function Q8(e,t){if(e==null)return{};var n=aEe(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 aEe(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 iEe(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function oEe(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,sK(r.key),r)}}function sEe(e,t,n){return t&&oEe(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function lEe(e,t,n){return t=Yb(t),uEe(e,iK()?Reflect.construct(t,n||[],Yb(e).constructor):t.apply(e,n))}function uEe(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 cEe(e)}function cEe(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 dEe(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 Zd(e){return pEe(e)||mEe(e)||oK(e)||fEe()}function fEe(){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 oK(e,t){if(e){if(typeof e=="string")return __(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 __(e,t)}}function mEe(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function pEe(e){if(Array.isArray(e))return __(e)}function __(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 X8(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?X8(Object(n),!0).forEach(function(r){Ye(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):X8(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function Ye(e,t,n){return t=sK(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function sK(e){var t=hEe(e,"string");return Wd(t)=="symbol"?t:t+""}function hEe(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(t==="string"?String:Number)(e)}var gEe={xAxis:["bottom","top"],yAxis:["left","right"]},vEe={width:"100%",height:"100%"},lK={x:0,y:0};function Ty(e){return e}var yEe=function(t,n){return n==="horizontal"?t.x:n==="vertical"?t.y:n==="centric"?t.angle:t.radius},bEe=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),Jt(o.cx,o.cy,c,u)),{},{angle:u,radius:c})}var f=s.coordinate,m=o.angle;return ye(ye(ye({},o),Jt(o.cx,o.cy,f,m)),{},{angle:m,radius:f})}return lK},lx=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(Zd(c),Zd(m)):c},[]);return u.length>0?u:t&&t.length&&Oe(o)&&Oe(s)?t.slice(o,s+1):[]};function uK(e){return e==="number"?[0,"auto"]:void 0}var D_=function(t,n,r,o){var s=t.graphicalItems,u=t.tooltipAxis,c=lx(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=Xy(b,u.dataKey,o)}else y=p&&p[r]||c[r];return y?[].concat(Zd(f),[GH(m,y)]):f},[])},W8=function(t,n,r,o){var s=o||{x:t.chartX,y:t.chartY},u=yEe(s,r),c=t.orderedTooltipTicks,f=t.tooltipAxis,m=t.tooltipTicks,g=Fge(u,c,m,f);if(g>=0&&m){var p=m[g]&&m[g].value,y=D_(t,n,g,p),b=bEe(r,c,g,s);return{activeTooltipIndex:g,activeLabel:p,activePayload:y,activeCoordinate:b}}return null},xEe=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=zH(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,_=T.type,D=T.dataKey,P=T.allowDataOverflow,A=T.allowDuplicatedCategory,C=T.scale,j=T.ticks,L=T.includeHidden,V=T[u];if(S[V])return S;var B=lx(t.data,{graphicalItems:o.filter(function(Z){var W,ae=u in Z.props?Z.props[u]:(W=Z.type.defaultProps)===null||W===void 0?void 0:W[u];return ae===V}),dataStartIndex:f,dataEndIndex:m}),z=B.length,q,F,Y;KNe(T.domain,P,_)&&(q=FC(T.domain,null,P),b&&(_==="number"||C!=="auto")&&(Y=wp(B,D,"category")));var ee=uK(_);if(!q||q.length===0){var U,G=(U=T.domain)!==null&&U!==void 0?U:ee;if(D){if(q=wp(B,D,_),_==="category"&&b){var K=Vle(q);A&&K?(F=q,q=Mb(0,z)):A||(q=K6(G,q,x).reduce(function(Z,W){return Z.indexOf(W)>=0?Z:[].concat(Zd(Z),[W])},[]))}else if(_==="category")A?q=q.filter(function(Z){return Z!==""&&!rt(Z)}):q=K6(G,q,x).reduce(function(Z,W){return Z.indexOf(W)>=0||W===""||rt(W)?Z:[].concat(Zd(Z),[W])},[]);else if(_==="number"){var te=Xge(B,o.filter(function(Z){var W,ae,ge=u in Z.props?Z.props[u]:(W=Z.type.defaultProps)===null||W===void 0?void 0:W[u],Ne="hide"in Z.props?Z.props.hide:(ae=Z.type.defaultProps)===null||ae===void 0?void 0:ae.hide;return ge===V&&(L||!Ne)}),D,s,g);te&&(q=te)}b&&(_==="number"||C!=="auto")&&(Y=wp(B,D,"category"))}else b?q=Mb(0,z):c&&c[V]&&c[V].hasStack&&_==="number"?q=y==="expand"?[0,1]:KH(c[V].stackGroups,f,m):q=BH(B,o.filter(function(Z){var W=u in Z.props?Z.props[u]:Z.type.defaultProps[u],ae="hide"in Z.props?Z.props.hide:Z.type.defaultProps.hide;return W===V&&(L||!ae)}),_,g,!0);if(_==="number")q=T_(p,q,V,s,j),G&&(q=FC(G,q,P));else if(_==="category"&&G){var ne=G,I=q.every(function(Z){return ne.indexOf(Z)>=0});I&&(q=ne)}}return ye(ye({},S),{},Ye({},V,ye(ye({},T),{},{axisType:s,domain:q,categoricalDomain:Y,duplicateDomain:F,originalDomain:(N=T.domain)!==null&&N!==void 0?N:ee,isCategorical:b,layout:g})))},{})},wEe=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=lx(t.data,{graphicalItems:r,dataStartIndex:f,dataEndIndex:m}),b=y.length,S=zH(g,s),x=-1;return r.reduce(function(N,T){var _=T.type.defaultProps!==void 0?ye(ye({},T.type.defaultProps),T.props):T.props,D=_[u],P=uK("number");if(!N[D]){x++;var A;return S?A=Mb(0,b):c&&c[D]&&c[D].hasStack?(A=KH(c[D].stackGroups,f,m),A=T_(p,A,D,s)):(A=FC(P,BH(y,r.filter(function(C){var j,L,V=u in C.props?C.props[u]:(j=C.type.defaultProps)===null||j===void 0?void 0:j[u],B="hide"in C.props?C.props.hide:(L=C.type.defaultProps)===null||L===void 0?void 0:L.hide;return V===D&&!B}),"number",g),o.defaultProps.allowDataOverflow),A=T_(p,A,D,s)),ye(ye({},N),{},Ye({},D,ye(ye({axisType:s},o.defaultProps),{},{hide:!0,orientation:ma(gEe,"".concat(s,".").concat(x%2),null),domain:A,originalDomain:P,isCategorical:S,layout:g})))}return N},{})},NEe=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=xEe(t,{axes:y,graphicalItems:u,axisType:o,axisIdKey:p,stackGroups:c,dataStartIndex:f,dataEndIndex:m}):u&&u.length&&(b=wEe(t,{Axis:s,graphicalItems:u,axisType:o,axisIdKey:p,stackGroups:c,dataStartIndex:f,dataEndIndex:m})),b},EEe=function(t){var n=nl(t),r=Go(n,!1,!0);return{tooltipTicks:r,orderedTooltipTicks:qD(r,function(o){return o.coordinate}),tooltipAxis:n,tooltipAxisBandSize:wb(n,r)}},Z8=function(t){var n=t.children,r=t.defaultShowTooltip,o=ua(n,zd),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}},SEe=function(t){return!t||!t.length?!1:t.some(function(n){var r=Qo(n&&n.type);return r&&r.indexOf("Bar")>=0})},J8=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"}},AEe=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,zd),S=ua(p,wu),x=Object.keys(f).reduce(function(A,C){var j=f[C],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,C){var j=u[C],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),_=T.bottom;b&&(T.bottom+=b.props.height||zd.defaultProps.height),S&&n&&(T=Yge(T,o,r,n));var D=m-T.left-T.right,P=g-T.top-T.bottom;return ye(ye({brushBottom:_},T),{},{width:Math.max(D,0),height:Math.max(P,0)})},OEe=function(t,n){if(n==="xAxis")return t[n].width;if(n==="yAxis")return t[n].height},cK=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,_){var D=_.graphicalItems,P=_.stackGroups,A=_.offset,C=_.updateId,j=_.dataStartIndex,L=_.dataEndIndex,V=T.barSize,B=T.layout,z=T.barGap,q=T.barCategoryGap,F=T.maxBarSize,Y=J8(B),ee=Y.numericAxisName,U=Y.cateAxisName,G=SEe(D),K=[];return D.forEach(function(te,ne){var I=lx(T.data,{graphicalItems:[te],dataStartIndex:j,dataEndIndex:L}),Z=te.type.defaultProps!==void 0?ye(ye({},te.type.defaultProps),te.props):te.props,W=Z.dataKey,ae=Z.maxBarSize,ge=Z["".concat(ee,"Id")],Ne=Z["".concat(U,"Id")],ue={},xe=f.reduce(function(ir,wt){var Un,Mr,di=_["".concat(wt.axisType,"Map")],Gr=Z["".concat(wt.axisType,"Id")];di&&di[Gr]||wt.axisType==="zAxis"||Vu(!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"),Go(fi)))},ue),me=xe[U],be=xe["".concat(U,"Ticks")],de=P&&P[ge]&&P[ge].hasStack&&ive(te,P[ge].stackGroups),ie=Qo(te.type).indexOf("Bar")>=0,ze=wb(me,be),we=[],lt=G&&Kge({barSize:V,stackGroups:P,totalSize:OEe(xe,U)});if(ie){var $e,et,zn=rt(ae)?F:ae,xn=($e=(et=wb(me,be,!0))!==null&&et!==void 0?et:zn)!==null&&$e!==void 0?$e:0;we=Gge({barGap:z,barCategoryGap:q,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:I,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)},ee,xe[ee]),U,xe[U]),"animationId",C)),childIndex:Zle(te,T.children),item:te})}),K},b=function(T,_){var D=T.props,P=T.dataStartIndex,A=T.dataEndIndex,C=T.updateId;if(!aV({props:D}))return null;var j=D.children,L=D.layout,V=D.stackOffset,B=D.data,z=D.reverseStackOrder,q=J8(L),F=q.numericAxisName,Y=q.cateAxisName,ee=Ia(j,r),U=rve(B,ee,"".concat(F,"Id"),"".concat(Y,"Id"),V,z),G=f.reduce(function(Z,W){var ae="".concat(W.axisType,"Map");return ye(ye({},Z),{},Ye({},ae,NEe(D,ye(ye({},W),{},{graphicalItems:ee,stackGroups:W.axisType===F&&U,dataStartIndex:P,dataEndIndex:A}))))},{}),K=AEe(ye(ye({},G),{},{props:D,graphicalItems:ee}),_?.legendBBox);Object.keys(G).forEach(function(Z){G[Z]=g(D,G[Z],K,Z.replace("Map",""),n)});var te=G["".concat(Y,"Map")],ne=EEe(te),I=y(D,ye(ye({},G),{},{dataStartIndex:P,dataEndIndex:A,updateId:C,graphicalItems:ee,stackGroups:U,offset:K}));return ye(ye({formattedGraphicalItems:I,graphicalItems:ee,offset:K,stackGroups:U},ne),G)},S=(function(N){function T(_){var D,P,A;return iEe(this,T),A=lEe(this,T,[_]),Ye(A,"eventEmitterSymbol",Symbol("rechartsEventEmitter")),Ye(A,"accessibilityManager",new FNe),Ye(A,"handleLegendBBoxUpdate",function(C){if(C){var j=A.state,L=j.dataStartIndex,V=j.dataEndIndex,B=j.updateId;A.setState(ye({legendBBox:C},b({props:A.props,dataStartIndex:L,dataEndIndex:V,updateId:B},ye(ye({},A.state),{},{legendBBox:C}))))}}),Ye(A,"handleReceiveSyncEvent",function(C,j,L){if(A.props.syncId===C){if(L===A.eventEmitterSymbol&&typeof A.props.syncMethod!="function")return;A.applySyncEvent(j)}}),Ye(A,"handleBrushChange",function(C){var j=C.startIndex,L=C.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(C){var j=A.getMouseInfo(C);if(j){var L=ye(ye({},j),{},{isTooltipActive:!0});A.setState(L),A.triggerSyncEvent(L);var V=A.props.onMouseEnter;Qe(V)&&V(L,C)}}),Ye(A,"triggeredAfterMouseMove",function(C){var j=A.getMouseInfo(C),L=j?ye(ye({},j),{},{isTooltipActive:!0}):{isTooltipActive:!1};A.setState(L),A.triggerSyncEvent(L);var V=A.props.onMouseMove;Qe(V)&&V(L,C)}),Ye(A,"handleItemMouseEnter",function(C){A.setState(function(){return{isTooltipActive:!0,activeItem:C,activePayload:C.tooltipPayload,activeCoordinate:C.tooltipPosition||{x:C.cx,y:C.cy}}})}),Ye(A,"handleItemMouseLeave",function(){A.setState(function(){return{isTooltipActive:!1}})}),Ye(A,"handleMouseMove",function(C){C.persist(),A.throttleTriggeredAfterMouseMove(C)}),Ye(A,"handleMouseLeave",function(C){A.throttleTriggeredAfterMouseMove.cancel();var j={isTooltipActive:!1};A.setState(j),A.triggerSyncEvent(j);var L=A.props.onMouseLeave;Qe(L)&&L(j,C)}),Ye(A,"handleOuterEvent",function(C){var j=Wle(C),L=ma(A.props,"".concat(j));if(j&&Qe(L)){var V,B;/.*touch.*/i.test(j)?B=A.getMouseInfo(C.changedTouches[0]):B=A.getMouseInfo(C),L((V=B)!==null&&V!==void 0?V:{},C)}}),Ye(A,"handleClick",function(C){var j=A.getMouseInfo(C);if(j){var L=ye(ye({},j),{},{isTooltipActive:!0});A.setState(L),A.triggerSyncEvent(L);var V=A.props.onClick;Qe(V)&&V(L,C)}}),Ye(A,"handleMouseDown",function(C){var j=A.props.onMouseDown;if(Qe(j)){var L=A.getMouseInfo(C);j(L,C)}}),Ye(A,"handleMouseUp",function(C){var j=A.props.onMouseUp;if(Qe(j)){var L=A.getMouseInfo(C);j(L,C)}}),Ye(A,"handleTouchMove",function(C){C.changedTouches!=null&&C.changedTouches.length>0&&A.throttleTriggeredAfterMouseMove(C.changedTouches[0])}),Ye(A,"handleTouchStart",function(C){C.changedTouches!=null&&C.changedTouches.length>0&&A.handleMouseDown(C.changedTouches[0])}),Ye(A,"handleTouchEnd",function(C){C.changedTouches!=null&&C.changedTouches.length>0&&A.handleMouseUp(C.changedTouches[0])}),Ye(A,"handleDoubleClick",function(C){var j=A.props.onDoubleClick;if(Qe(j)){var L=A.getMouseInfo(C);j(L,C)}}),Ye(A,"handleContextMenu",function(C){var j=A.props.onContextMenu;if(Qe(j)){var L=A.getMouseInfo(C);j(L,C)}}),Ye(A,"triggerSyncEvent",function(C){A.props.syncId!==void 0&&ST.emit(AT,A.props.syncId,C,A.eventEmitterSymbol)}),Ye(A,"applySyncEvent",function(C){var j=A.props,L=j.layout,V=j.syncMethod,B=A.state.updateId,z=C.dataStartIndex,q=C.dataEndIndex;if(C.dataStartIndex!==void 0||C.dataEndIndex!==void 0)A.setState(ye({dataStartIndex:z,dataEndIndex:q},b({props:A.props,dataStartIndex:z,dataEndIndex:q,updateId:B},A.state)));else if(C.activeTooltipIndex!==void 0){var F=C.chartX,Y=C.chartY,ee=C.activeTooltipIndex,U=A.state,G=U.offset,K=U.tooltipTicks;if(!G)return;if(typeof V=="function")ee=V(K,C);else if(V==="value"){ee=-1;for(var te=0;te<K.length;te++)if(K[te].value===C.activeLabel){ee=te;break}}var ne=ye(ye({},G),{},{x:G.left,y:G.top}),I=Math.min(F,ne.x+ne.width),Z=Math.min(Y,ne.y+ne.height),W=K[ee]&&K[ee].value,ae=D_(A.state,A.props.data,ee),ge=K[ee]?{x:L==="horizontal"?K[ee].coordinate:I,y:L==="horizontal"?Z:K[ee].coordinate}:lK;A.setState(ye(ye({},C),{},{activeLabel:W,activeCoordinate:ge,activePayload:ae,activeTooltipIndex:ee}))}else A.setState(C)}),Ye(A,"renderCursor",function(C){var j,L=A.state,V=L.isTooltipActive,B=L.activeCoordinate,z=L.activePayload,q=L.offset,F=L.activeTooltipIndex,Y=L.tooltipAxisBandSize,ee=A.getTooltipEventType(),U=(j=C.props.active)!==null&&j!==void 0?j:V,G=A.props.layout,K=C.key||"_recharts-cursor";return H.createElement(ZNe,{key:K,activeCoordinate:B,activePayload:z,activeTooltipIndex:F,chartName:n,element:C,isActive:U,layout:G,offset:q,tooltipAxisBandSize:Y,tooltipEventType:ee})}),Ye(A,"renderPolarAxis",function(C,j,L){var V=ma(C,"type.axisType"),B=ma(A.state,"".concat(V,"Map")),z=C.type.defaultProps,q=z!==void 0?ye(ye({},z),C.props):C.props,F=B&&B[q["".concat(V,"Id")]];return R.cloneElement(C,ye(ye({},F),{},{className:nt(V,F.className),key:C.key||"".concat(j,"-").concat(L),ticks:Go(F,!0)}))}),Ye(A,"renderPolarGrid",function(C){var j=C.props,L=j.radialLines,V=j.polarAngles,B=j.polarRadius,z=A.state,q=z.radiusAxisMap,F=z.angleAxisMap,Y=nl(q),ee=nl(F),U=ee.cx,G=ee.cy,K=ee.innerRadius,te=ee.outerRadius;return R.cloneElement(C,{polarAngles:Array.isArray(V)?V:Go(ee,!0).map(function(ne){return ne.coordinate}),polarRadius:Array.isArray(B)?B:Go(Y,!0).map(function(ne){return ne.coordinate}),cx:U,cy:G,innerRadius:K,outerRadius:te,key:C.key||"polar-grid",radialLines:L})}),Ye(A,"renderLegend",function(){var C=A.state.formattedGraphicalItems,j=A.props,L=j.children,V=j.width,B=j.height,z=A.props.margin||{},q=V-(z.left||0)-(z.right||0),F=$H({children:L,formattedGraphicalItems:C,legendWidth:q,legendContent:m});if(!F)return null;var Y=F.item,ee=Q8(F,JNe);return R.cloneElement(Y,ye(ye({},ee),{},{chartWidth:V,chartHeight:B,margin:z,onBBoxUpdate:A.handleLegendBBoxUpdate}))}),Ye(A,"renderTooltip",function(){var C,j=A.props,L=j.children,V=j.accessibilityLayer,B=ua(L,ei);if(!B)return null;var z=A.state,q=z.isTooltipActive,F=z.activeCoordinate,Y=z.activePayload,ee=z.activeLabel,U=z.offset,G=(C=B.props.active)!==null&&C!==void 0?C:q;return R.cloneElement(B,{viewBox:ye(ye({},U),{},{x:U.left,y:U.top}),active:G,label:ee,payload:G?Y:[],coordinate:F,accessibilityLayer:V})}),Ye(A,"renderBrush",function(C){var j=A.props,L=j.margin,V=j.data,B=A.state,z=B.offset,q=B.dataStartIndex,F=B.dataEndIndex,Y=B.updateId;return R.cloneElement(C,{key:C.key||"_recharts-brush",onChange:Ny(A.handleBrushChange,C.props.onChange),data:V,x:Oe(C.props.x)?C.props.x:z.left,y:Oe(C.props.y)?C.props.y:z.top+z.height+z.brushBottom-(L.bottom||0),width:Oe(C.props.width)?C.props.width:z.width,startIndex:q,endIndex:F,updateId:"brush-".concat(Y)})}),Ye(A,"renderReferenceElement",function(C,j,L){if(!C)return null;var V=A,B=V.clipPathId,z=A.state,q=z.xAxisMap,F=z.yAxisMap,Y=z.offset,ee=C.type.defaultProps||{},U=C.props,G=U.xAxisId,K=G===void 0?ee.xAxisId:G,te=U.yAxisId,ne=te===void 0?ee.yAxisId:te;return R.cloneElement(C,{key:C.key||"".concat(j,"-").concat(L),xAxis:q[K],yAxis:F[ne],viewBox:{x:Y.left,y:Y.top,width:Y.width,height:Y.height},clipPathId:B})}),Ye(A,"renderActivePoints",function(C){var j=C.item,L=C.activePoint,V=C.basePoint,B=C.childIndex,z=C.isRange,q=[],F=j.props.key,Y=j.item.type.defaultProps!==void 0?ye(ye({},j.item.type.defaultProps),j.item.props):j.item.props,ee=Y.activeDot,U=Y.dataKey,G=ye(ye({index:B,dataKey:U,cx:L.x,cy:L.y,r:4,fill:hR(j.item),strokeWidth:2,stroke:"#fff",payload:L.payload,value:L.value},Fe(ee,!1)),Wy(ee));return q.push(T.renderActiveDot(ee,G,"".concat(F,"-activePoint-").concat(B))),V?q.push(T.renderActiveDot(ee,ye(ye({},G),{},{cx:V.x,cy:V.y}),"".concat(F,"-basePoint-").concat(B))):z&&q.push(null),q}),Ye(A,"renderGraphicChild",function(C,j,L){var V=A.filterFormatItem(C,j,L);if(!V)return null;var B=A.getTooltipEventType(),z=A.state,q=z.isTooltipActive,F=z.tooltipAxis,Y=z.activeTooltipIndex,ee=z.activeLabel,U=A.props.children,G=ua(U,ei),K=V.props,te=K.points,ne=K.isRange,I=K.baseLine,Z=V.item.type.defaultProps!==void 0?ye(ye({},V.item.type.defaultProps),V.item.props):V.item.props,W=Z.activeDot,ae=Z.hide,ge=Z.activeBar,Ne=Z.activeShape,ue=!!(!ae&&q&&G&&(W||ge||Ne)),xe={};B!=="axis"&&G&&G.props.trigger==="click"?xe={onClick:Ny(A.handleItemMouseEnter,C.props.onClick)}:B!=="axis"&&(xe={onMouseLeave:Ny(A.handleItemMouseLeave,C.props.onMouseLeave),onMouseEnter:Ny(A.handleItemMouseEnter,C.props.onMouseEnter)});var me=R.cloneElement(C,ye(ye({},V.props),xe));function be(wt){return typeof F.dataKey=="function"?F.dataKey(wt.payload):null}if(ue)if(Y>=0){var de,ie;if(F.dataKey&&!F.allowDuplicatedCategory){var ze=typeof F.dataKey=="function"?be:"payload.".concat(F.dataKey.toString());de=Xy(te,ze,ee),ie=ne&&I&&Xy(I,ze,ee)}else de=te?.[Y],ie=ne&&I&&I[Y];if(Ne||ge){var we=C.props.activeIndex!==void 0?C.props.activeIndex:Y;return[R.cloneElement(C,ye(ye(ye({},V.props),xe),{},{activeIndex:we})),null,null]}if(!rt(de))return[me].concat(Zd(A.renderActivePoints({item:V,activePoint:de,basePoint:ie,childIndex:Y,isRange:ne})))}else{var lt,$e=(lt=A.getItemByXY(A.state.activeCoordinate))!==null&&lt!==void 0?lt:{graphicalItem:me},et=$e.graphicalItem,zn=et.item,xn=zn===void 0?C: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(C,j,L){return R.cloneElement(C,ye(ye({key:"recharts-customized-".concat(L)},A.props),A.state))}),Ye(A,"renderMap",{CartesianGrid:{handler:Ty,once:!0},ReferenceArea:{handler:A.renderReferenceElement},ReferenceLine:{handler:Ty},ReferenceDot:{handler:A.renderReferenceElement},XAxis:{handler:Ty},YAxis:{handler:Ty},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=_.id)!==null&&D!==void 0?D:df("recharts"),"-clip"),A.throttleTriggeredAfterMouseMove=I2(A.triggeredAfterMouseMove,(P=_.throttleDelay)!==null&&P!==void 0?P:1e3/60),A.state={},A}return dEe(T,N),sEe(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,C=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,z=D_(this.state,A,V,B),q=this.state.tooltipTicks[V].coordinate,F=(this.state.offset.top+C)/2,Y=j==="horizontal",ee=Y?{x:q,y:F}:{y:q,x:F},U=this.state.formattedGraphicalItems.find(function(K){var te=K.item;return te.type.name==="Scatter"});U&&(ee=ye(ye({},ee),U.props.points[V].tooltipPosition),z=U.props.points[V].tooltipPayload);var G={activeTooltipIndex:V,isTooltipActive:!0,activeLabel:B,activePayload:z,activeCoordinate:ee};this.setState(G),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,C;this.accessibilityManager.setDetails({offset:{left:(A=this.props.margin.left)!==null&&A!==void 0?A:0,top:(C=this.props.margin.top)!==null&&C!==void 0?C:0}})}return null}},{key:"componentDidUpdate",value:function(D){mC([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(),C=$fe(A),j={chartX:Math.round(D.pageX-C.left),chartY:Math.round(D.pageY-C.top)},L=A.width/P.offsetWidth||1,V=this.inRange(j.chartX,j.chartY,L);if(!V)return null;var B=this.state,z=B.xAxisMap,q=B.yAxisMap,F=this.getTooltipEventType(),Y=W8(this.state,this.props.data,this.props.layout,V);if(F!=="axis"&&z&&q){var ee=nl(z).scale,U=nl(q).scale,G=ee&&ee.invert?ee.invert(j.chartX):null,K=U&&U.invert?U.invert(j.chartY):null;return ye(ye({},j),{},{xValue:G,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,C=this.props.layout,j=D/A,L=P/A;if(C==="horizontal"||C==="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 z=this.state,q=z.angleAxisMap,F=z.radiusAxisMap;if(q&&F){var Y=nl(q);return Q6({x:j,y:L},Y)}return null}},{key:"parseEventsOfWrapper",value:function(){var D=this.props.children,P=this.getTooltipEventType(),A=ua(D,ei),C={};A&&P==="axis"&&(A.props.trigger==="click"?C={onClick:this.handleClick}:C={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=Wy(this.props,this.handleOuterEvent);return ye(ye({},j),C)}},{key:"addListener",value:function(){ST.on(AT,this.handleReceiveSyncEvent)}},{key:"removeListener",value:function(){ST.removeListener(AT,this.handleReceiveSyncEvent)}},{key:"filterFormatItem",value:function(D,P,A){for(var C=this.state.formattedGraphicalItems,j=0,L=C.length;j<L;j++){var V=C[j];if(V.item===D||V.props.key===D.key||P===Qo(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,C=P.top,j=P.height,L=P.width;return H.createElement("defs",null,H.createElement("clipPath",{id:D},H.createElement("rect",{x:A,y:C,height:j,width:L})))}},{key:"getXScales",value:function(){var D=this.state.xAxisMap;return D?Object.entries(D).reduce(function(P,A){var C=Y8(A,2),j=C[0],L=C[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 C=Y8(A,2),j=C[0],L=C[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,C=P.activeItem;if(A&&A.length)for(var j=0,L=A.length;j<L;j++){var V=A[j],B=V.props,z=V.item,q=z.type.defaultProps!==void 0?ye(ye({},z.type.defaultProps),z.props):z.props,F=Qo(z.type);if(F==="Bar"){var Y=(B.data||[]).find(function(K){return r0e(D,K)});if(Y)return{graphicalItem:V,payload:Y}}else if(F==="RadialBar"){var ee=(B.data||[]).find(function(K){return Q6(D,K)});if(ee)return{graphicalItem:V,payload:ee}}else if(J0(V,C)||ex(V,C)||mh(V,C)){var U=Oxe({graphicalItem:V,activeTooltipItem:C,itemData:q.data}),G=q.activeIndex===void 0?U:q.activeIndex;return{graphicalItem:ye(ye({},V),{},{childIndex:G}),payload:mh(V,C)?q.data[U]:V.props.data[U]}}}return null}},{key:"render",value:function(){var D=this;if(!aV(this))return null;var P=this.props,A=P.children,C=P.className,j=P.width,L=P.height,V=P.style,B=P.compact,z=P.title,q=P.desc,F=Q8(P,eEe),Y=Fe(F,!1);if(B)return H.createElement(D8,{state:this.state,width:this.props.width,height:this.props.height,clipPathId:this.clipPathId},H.createElement(hC,hd({},Y,{width:j,height:L,title:z,desc:q}),this.renderClipPath(),oV(A,this.renderMap)));if(this.props.accessibilityLayer){var ee,U;Y.tabIndex=(ee=this.props.tabIndex)!==null&&ee!==void 0?ee:0,Y.role=(U=this.props.role)!==null&&U!==void 0?U:"application",Y.onKeyDown=function(K){D.accessibilityManager.keyboardEvent(K)},Y.onFocus=function(){D.accessibilityManager.focus()}}var G=this.parseEventsOfWrapper();return H.createElement(D8,{state:this.state,width:this.props.width,height:this.props.height,clipPathId:this.clipPathId},H.createElement("div",hd({className:nt("recharts-wrapper",C),style:ye({position:"relative",cursor:"default",width:j,height:L},V)},G,{ref:function(te){D.container=te}}),H.createElement(hC,hd({},Y,{width:j,height:L,title:z,desc:q,style:vEe}),this.renderClipPath(),oV(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 _=N.dataKey,D=N.data,P=N.children,A=N.width,C=N.height,j=N.layout,L=N.stackOffset,V=N.margin,B=T.dataStartIndex,z=T.dataEndIndex;if(T.updateId===void 0){var q=Z8(N);return ye(ye(ye({},q),{},{updateId:0},b(ye(ye({props:N},q),{},{updateId:0}),T)),{},{prevDataKey:_,prevData:D,prevWidth:A,prevHeight:C,prevLayout:j,prevStackOffset:L,prevMargin:V,prevChildren:P})}if(_!==T.prevDataKey||D!==T.prevData||A!==T.prevWidth||C!==T.prevHeight||j!==T.prevLayout||L!==T.prevStackOffset||!yd(V,T.prevMargin)){var F=Z8(N),Y={chartX:T.chartX,chartY:T.chartY,isTooltipActive:T.isTooltipActive},ee=ye(ye({},W8(T,D,j)),{},{updateId:T.updateId+1}),U=ye(ye(ye({},F),Y),ee);return ye(ye(ye({},U),b(ye({props:N},U),T)),{},{prevDataKey:_,prevData:D,prevWidth:A,prevHeight:C,prevLayout:j,prevStackOffset:L,prevMargin:V,prevChildren:P})}if(!mC(P,T.prevChildren)){var G,K,te,ne,I=ua(P,zd),Z=I&&(G=(K=I.props)===null||K===void 0?void 0:K.startIndex)!==null&&G!==void 0?G:B,W=I&&(te=(ne=I.props)===null||ne===void 0?void 0:ne.endIndex)!==null&&te!==void 0?te:z,ae=Z!==B||W!==z,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:Z,dataEndIndex:W}),T)),{},{prevChildren:P,dataStartIndex:Z,dataEndIndex:W})}return null}),Ye(S,"renderActiveDot",function(N,T,_){var D;return R.isValidElement(N)?D=R.cloneElement(N,T):Qe(N)?D=N(T):D=H.createElement(Y0,T),H.createElement(Nt,{className:"recharts-active-dot",key:_},D)});var x=R.forwardRef(function(T,_){return H.createElement(S,hd({},T,{ref:_}))});return x.displayName=S.displayName,x},TEe=cK({chartName:"PieChart",GraphicalChild:us,validateTooltipEventTypes:["item"],defaultTooltipEventType:"item",legendContent:"children",axisComponents:[{axisType:"angleAxis",AxisComp:Z0},{axisType:"radiusAxis",AxisComp:X0}],formatAxisMap:hve,defaultProps:{layout:"centric",startAngle:0,endAngle:360,cx:"50%",cy:"50%",innerRadius:0,outerRadius:"80%"}}),CEe=cK({chartName:"AreaChart",GraphicalChild:eo,axisComponents:[{axisType:"xAxis",AxisComp:ox},{axisType:"yAxis",AxisComp:sx}],formatAxisMap:_1e});const _Ee={CN:"#3b82f6",HK:"#10b981",US:"#f59e0b",EU:"#8b5cf6",SG:"#ec4899",AE:"#f97316",ALL:"#6b7280"},DEe=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(Wt,{"data-loc":"client/src/pages/Dashboard.tsx:33",className:"border-border/50 hover:border-primary/30 transition-colors",children:w.jsxDEV(Zt,{"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(hq,{"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 REe(){const{data:e,isLoading:t}=_t.dashboard.stats.useQuery(),{data:n}=_t.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(Wt,{"data-loc":"client/src/pages/Dashboard.tsx:60",className:"border-border/50 animate-pulse",children:w.jsxDEV(Zt,{"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:_Ee[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(sf,{"data-loc":"client/src/pages/Dashboard.tsx:87",variant:"outline",className:"text-xs border-border/50",children:[w.jsxDEV(m0,{"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:aD,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:yp,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:Ky,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:Mp,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:h0,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:Sae,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:_u,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:Lp,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(Wt,{"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(hq,{"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(Zt,{"data-loc":"client/src/pages/Dashboard.tsx:116",children:w.jsxDEV(CB,{"data-loc":"client/src/pages/Dashboard.tsx:117",width:"100%",height:200,children:w.jsxDEV(CEe,{"data-loc":"client/src/pages/Dashboard.tsx:118",data:DEe,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(KF,{"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(ox,{"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(sx,{"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(eo,{"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(eo,{"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(eo,{"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(Wt,{"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(Lp,{"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(Zt,{"data-loc":"client/src/pages/Dashboard.tsx:146",children:o.length>0?w.jsxDEV(w.Fragment,{children:[w.jsxDEV(CB,{"data-loc":"client/src/pages/Dashboard.tsx:149",width:"100%",height:140,children:w.jsxDEV(TEe,{"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(k0,{"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(Wt,{"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(Nae,{"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(Zt,{"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(Wt,{"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(Ky,{"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(Zt,{"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 ez(e,[t,n]){return Math.min(n,Math.max(t,e))}function dK(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 jEe=[" ","Enter","ArrowUp","ArrowDown"],PEe=[" ","Enter"],zu="Select",[ux,cx,MEe]=pD(zu),[vf]=as(zu,[MEe,nf]),dx=nf(),[LEe,vl]=vf(zu),[kEe,IEe]=vf(zu),fK=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=dx(t),[N,T]=R.useState(null),[_,D]=R.useState(null),[P,A]=R.useState(!1),C=hD(m),[j,L]=Sd({prop:r,defaultProp:o??!1,onChange:s,caller:zu}),[V,B]=Sd({prop:u,defaultProp:c,onChange:f,caller:zu}),z=R.useRef(null),q=N?S||!!N.closest("form"):!0,[F,Y]=R.useState(new Set),ee=Array.from(F).map(U=>U.props.value).join(";");return ce.jsx(qU,{...x,children:ce.jsxs(LEe,{required:b,scope:t,trigger:N,onTriggerChange:T,valueNode:_,onValueNodeChange:D,valueNodeHasChildren:P,onValueNodeHasChildrenChange:A,contentId:Yo(),value:V,onValueChange:B,open:j,onOpenChange:L,dir:C,triggerPointerDownPosRef:z,disabled:y,children:[ce.jsx(ux.Provider,{scope:t,children:ce.jsx(kEe,{scope:e.__scopeSelect,onNativeOptionAdd:R.useCallback(U=>{Y(G=>new Set(G).add(U))},[]),onNativeOptionRemove:R.useCallback(U=>{Y(G=>{const K=new Set(G);return K.delete(U),K})},[]),children:n})}),q?ce.jsxs(MK,{"aria-hidden":!0,required:b,tabIndex:-1,name:g,autoComplete:p,value:V,onChange:U=>B(U.target.value),disabled:y,form:S,children:[V===void 0?ce.jsx("option",{value:""}):null,Array.from(F)]},ee):null]})})};fK.displayName=zu;var mK="SelectTrigger",pK=R.forwardRef((e,t)=>{const{__scopeSelect:n,disabled:r=!1,...o}=e,s=dx(n),u=vl(mK,n),c=u.disabled||r,f=Dt(t,u.onTriggerChange),m=cx(n),g=R.useRef("touch"),[p,y,b]=kK(x=>{const N=m().filter(D=>!D.disabled),T=N.find(D=>D.value===u.value),_=IK(N,x,T);_!==void 0&&u.onValueChange(_.value)}),S=x=>{c||(u.onOpenChange(!0),b()),x&&(u.triggerPointerDownPosRef.current={x:Math.round(x.pageX),y:Math.round(x.pageY)})};return ce.jsx(Z_,{asChild:!0,...s,children:ce.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":LK(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===" ")&&jEe.includes(x.key)&&(S(),x.preventDefault())})})})});pK.displayName=mK;var hK="SelectValue",gK=R.forwardRef((e,t)=>{const{__scopeSelect:n,className:r,style:o,children:s,placeholder:u="",...c}=e,f=vl(hK,n),{onValueNodeHasChildrenChange:m}=f,g=s!==void 0,p=Dt(t,f.onValueNodeChange);return mr(()=>{m(g)},[m,g]),ce.jsx(pt.span,{...c,ref:p,style:{pointerEvents:"none"},children:LK(f.value)?ce.jsx(ce.Fragment,{children:u}):s})});gK.displayName=hK;var $Ee="SelectIcon",vK=R.forwardRef((e,t)=>{const{__scopeSelect:n,children:r,...o}=e;return ce.jsx(pt.span,{"aria-hidden":!0,...o,ref:t,children:r||"▼"})});vK.displayName=$Ee;var VEe="SelectPortal",yK=e=>ce.jsx(c0,{asChild:!0,...e});yK.displayName=VEe;var Uu="SelectContent",bK=R.forwardRef((e,t)=>{const n=vl(Uu,e.__scopeSelect),[r,o]=R.useState();if(mr(()=>{o(new DocumentFragment)},[]),!n.open){const s=r;return s?Sh.createPortal(ce.jsx(xK,{scope:e.__scopeSelect,children:ce.jsx(ux.Slot,{scope:e.__scopeSelect,children:ce.jsx("div",{children:e.children})})}),s):null}return ce.jsx(wK,{...e,ref:t})});bK.displayName=Uu;var Ja=10,[xK,yl]=vf(Uu),BEe="SelectContentImpl",zEe=Tu("SelectContent.RemoveScroll"),wK=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,_=vl(Uu,n),[D,P]=R.useState(null),[A,C]=R.useState(null),j=Dt(t,ue=>P(ue)),[L,V]=R.useState(null),[B,z]=R.useState(null),q=cx(n),[F,Y]=R.useState(!1),ee=R.useRef(!1);R.useEffect(()=>{if(D)return uD(D)},[D]),lD();const U=R.useCallback(ue=>{const[xe,...me]=q().map(ie=>ie.ref.current),[be]=me.slice(-1),de=document.activeElement;for(const ie of ue)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},[q,A]),G=R.useCallback(()=>U([L,D]),[U,L,D]);R.useEffect(()=>{F&&G()},[F,G]);const{onOpenChange:K,triggerPointerDownPosRef:te}=_;R.useEffect(()=>{if(D){let ue={x:0,y:0};const xe=be=>{ue={x:Math.abs(Math.round(be.pageX)-(te.current?.x??0)),y:Math.abs(Math.round(be.pageY)-(te.current?.y??0))}},me=be=>{ue.x<=10&&ue.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 ue=()=>K(!1);return window.addEventListener("blur",ue),window.addEventListener("resize",ue),()=>{window.removeEventListener("blur",ue),window.removeEventListener("resize",ue)}},[K]);const[ne,I]=kK(ue=>{const xe=q().filter(de=>!de.disabled),me=xe.find(de=>de.ref.current===document.activeElement),be=IK(xe,ue,me);be&&setTimeout(()=>be.ref.current.focus())}),Z=R.useCallback((ue,xe,me)=>{const be=!ee.current&&!me;(_.value!==void 0&&_.value===xe||be)&&(V(ue),be&&(ee.current=!0))},[_.value]),W=R.useCallback(()=>D?.focus(),[D]),ae=R.useCallback((ue,xe,me)=>{const be=!ee.current&&!me;(_.value!==void 0&&_.value===xe||be)&&z(ue)},[_.value]),ge=r==="popper"?R_:NK,Ne=ge===R_?{side:c,sideOffset:f,align:m,alignOffset:g,arrowPadding:p,collisionBoundary:y,collisionPadding:b,sticky:S,hideWhenDetached:x,avoidCollisions:N}:{};return ce.jsx(xK,{scope:n,content:D,viewport:A,onViewportChange:C,itemRefCallback:Z,selectedItem:L,onItemLeave:W,itemTextRefCallback:ae,focusSelectedItem:G,selectedItemText:B,position:r,isPositioned:F,searchRef:ne,children:ce.jsx(b0,{as:zEe,allowPinchZoom:!0,children:ce.jsx(v0,{asChild:!0,trapped:_.open,onMountAutoFocus:ue=>{ue.preventDefault()},onUnmountAutoFocus:Ie(o,ue=>{_.trigger?.focus({preventScroll:!0}),ue.preventDefault()}),children:ce.jsx(Ah,{asChild:!0,disableOutsidePointerEvents:!0,onEscapeKeyDown:s,onPointerDownOutside:u,onFocusOutside:ue=>ue.preventDefault(),onDismiss:()=>_.onOpenChange(!1),children:ce.jsx(ge,{role:"listbox",id:_.contentId,"data-state":_.open?"open":"closed",dir:_.dir,onContextMenu:ue=>ue.preventDefault(),...T,...Ne,onPlaced:()=>Y(!0),ref:j,style:{display:"flex",flexDirection:"column",outline:"none",...T.style},onKeyDown:Ie(T.onKeyDown,ue=>{const xe=ue.ctrlKey||ue.altKey||ue.metaKey;if(ue.key==="Tab"&&ue.preventDefault(),!xe&&ue.key.length===1&&I(ue.key),["ArrowUp","ArrowDown","Home","End"].includes(ue.key)){let be=q().filter(de=>!de.disabled).map(de=>de.ref.current);if(["ArrowUp","End"].includes(ue.key)&&(be=be.slice().reverse()),["ArrowUp","ArrowDown"].includes(ue.key)){const de=ue.target,ie=be.indexOf(de);be=be.slice(ie+1)}setTimeout(()=>U(be)),ue.preventDefault()}})})})})})})});wK.displayName=BEe;var UEe="SelectItemAlignedPosition",NK=R.forwardRef((e,t)=>{const{__scopeSelect:n,onPlaced:r,...o}=e,s=vl(Uu,n),u=yl(Uu,n),[c,f]=R.useState(null),[m,g]=R.useState(null),p=Dt(t,j=>g(j)),y=cx(n),b=R.useRef(!1),S=R.useRef(!0),{viewport:x,selectedItem:N,selectedItemText:T,focusSelectedItem:_}=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=ez(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=ez(ie,[Ja,Math.max(Ja,$e-lt)]);c.style.minWidth=we+"px",c.style.right=et+"px"}const z=y(),q=window.innerHeight-Ja*2,F=x.scrollHeight,Y=window.getComputedStyle(m),ee=parseInt(Y.borderTopWidth,10),U=parseInt(Y.paddingTop,10),G=parseInt(Y.borderBottomWidth,10),K=parseInt(Y.paddingBottom,10),te=ee+U+F+K+G,ne=Math.min(N.offsetHeight*5,te),I=window.getComputedStyle(x),Z=parseInt(I.paddingTop,10),W=parseInt(I.paddingBottom,10),ae=j.top+j.height/2-Ja,ge=q-ae,Ne=N.offsetHeight/2,ue=N.offsetTop+Ne,xe=ee+U+ue,me=te-xe;if(xe<=ae){const de=z.length>0&&N===z[z.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+G),we=xe+ze;c.style.height=we+"px"}else{const de=z.length>0&&N===z[0].ref.current;c.style.top="0px";const ze=Math.max(ae,ee+x.offsetTop+(de?Z: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=q+"px",r?.(),requestAnimationFrame(()=>b.current=!0)}},[y,s.trigger,s.valueNode,c,m,x,N,T,s.dir,r]);mr(()=>D(),[D]);const[P,A]=R.useState();mr(()=>{m&&A(window.getComputedStyle(m).zIndex)},[m]);const C=R.useCallback(j=>{j&&S.current===!0&&(D(),_?.(),S.current=!1)},[D,_]);return ce.jsx(HEe,{scope:n,contentWrapper:c,shouldExpandOnScrollRef:b,onScrollButtonChange:C,children:ce.jsx("div",{ref:f,style:{display:"flex",flexDirection:"column",position:"fixed",zIndex:P},children:ce.jsx(pt.div,{...o,ref:p,style:{boxSizing:"border-box",maxHeight:"100%",...o.style}})})})});NK.displayName=UEe;var qEe="SelectPopperPosition",R_=R.forwardRef((e,t)=>{const{__scopeSelect:n,align:r="start",collisionPadding:o=Ja,...s}=e,u=dx(n);return ce.jsx(J_,{...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)"}})});R_.displayName=qEe;var[HEe,OR]=vf(Uu,{}),j_="SelectViewport",EK=R.forwardRef((e,t)=>{const{__scopeSelect:n,nonce:r,...o}=e,s=yl(j_,n),u=OR(j_,n),c=Dt(t,s.onViewportChange),f=R.useRef(0);return ce.jsxs(ce.Fragment,{children:[ce.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}),ce.jsx(ux.Slot,{scope:n,children:ce.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 _=T+b,D=Math.min(S,_),P=_-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})})})]})});EK.displayName=j_;var SK="SelectGroup",[FEe,KEe]=vf(SK),GEe=R.forwardRef((e,t)=>{const{__scopeSelect:n,...r}=e,o=Yo();return ce.jsx(FEe,{scope:n,id:o,children:ce.jsx(pt.div,{role:"group","aria-labelledby":o,...r,ref:t})})});GEe.displayName=SK;var AK="SelectLabel",YEe=R.forwardRef((e,t)=>{const{__scopeSelect:n,...r}=e,o=KEe(AK,n);return ce.jsx(pt.div,{id:o.id,...r,ref:t})});YEe.displayName=AK;var Qb="SelectItem",[QEe,OK]=vf(Qb),TK=R.forwardRef((e,t)=>{const{__scopeSelect:n,value:r,disabled:o=!1,textValue:s,...u}=e,c=vl(Qb,n),f=yl(Qb,n),m=c.value===r,[g,p]=R.useState(s??""),[y,b]=R.useState(!1),S=Dt(t,_=>f.itemRefCallback?.(_,r,o)),x=Yo(),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 ce.jsx(QEe,{scope:n,value:r,disabled:o,textId:x,isSelected:m,onItemTextChange:R.useCallback(_=>{p(D=>D||(_?.textContent??"").trim())},[]),children:ce.jsx(ux.ItemSlot,{scope:n,value:r,disabled:o,textValue:g,children:ce.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,_=>{N.current=_.pointerType}),onPointerMove:Ie(u.onPointerMove,_=>{N.current=_.pointerType,o?f.onItemLeave?.():N.current==="mouse"&&_.currentTarget.focus({preventScroll:!0})}),onPointerLeave:Ie(u.onPointerLeave,_=>{_.currentTarget===document.activeElement&&f.onItemLeave?.()}),onKeyDown:Ie(u.onKeyDown,_=>{f.searchRef?.current!==""&&_.key===" "||(PEe.includes(_.key)&&T(),_.key===" "&&_.preventDefault())})})})})});TK.displayName=Qb;var mp="SelectItemText",CK=R.forwardRef((e,t)=>{const{__scopeSelect:n,className:r,style:o,...s}=e,u=vl(mp,n),c=yl(mp,n),f=OK(mp,n),m=IEe(mp,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(()=>ce.jsx("option",{value:f.value,disabled:f.disabled,children:b},f.value),[f.disabled,f.value,b]),{onNativeOptionAdd:x,onNativeOptionRemove:N}=m;return mr(()=>(x(S),()=>N(S)),[x,N,S]),ce.jsxs(ce.Fragment,{children:[ce.jsx(pt.span,{id:f.textId,...s,ref:y}),f.isSelected&&u.valueNode&&!u.valueNodeHasChildren?Sh.createPortal(s.children,u.valueNode):null]})});CK.displayName=mp;var _K="SelectItemIndicator",DK=R.forwardRef((e,t)=>{const{__scopeSelect:n,...r}=e;return OK(_K,n).isSelected?ce.jsx(pt.span,{"aria-hidden":!0,...r,ref:t}):null});DK.displayName=_K;var P_="SelectScrollUpButton",RK=R.forwardRef((e,t)=>{const n=yl(P_,e.__scopeSelect),r=OR(P_,e.__scopeSelect),[o,s]=R.useState(!1),u=Dt(t,r.onScrollButtonChange);return mr(()=>{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?ce.jsx(PK,{...e,ref:u,onAutoScroll:()=>{const{viewport:c,selectedItem:f}=n;c&&f&&(c.scrollTop=c.scrollTop-f.offsetHeight)}}):null});RK.displayName=P_;var M_="SelectScrollDownButton",jK=R.forwardRef((e,t)=>{const n=yl(M_,e.__scopeSelect),r=OR(M_,e.__scopeSelect),[o,s]=R.useState(!1),u=Dt(t,r.onScrollButtonChange);return mr(()=>{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?ce.jsx(PK,{...e,ref:u,onAutoScroll:()=>{const{viewport:c,selectedItem:f}=n;c&&f&&(c.scrollTop=c.scrollTop+f.offsetHeight)}}):null});jK.displayName=M_;var PK=R.forwardRef((e,t)=>{const{__scopeSelect:n,onAutoScroll:r,...o}=e,s=yl("SelectScrollButton",n),u=R.useRef(null),c=cx(n),f=R.useCallback(()=>{u.current!==null&&(window.clearInterval(u.current),u.current=null)},[]);return R.useEffect(()=>()=>f(),[f]),mr(()=>{c().find(g=>g.ref.current===document.activeElement)?.ref.current?.scrollIntoView({block:"nearest"})},[c]),ce.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()})})}),XEe="SelectSeparator",WEe=R.forwardRef((e,t)=>{const{__scopeSelect:n,...r}=e;return ce.jsx(pt.div,{"aria-hidden":!0,...r,ref:t})});WEe.displayName=XEe;var L_="SelectArrow",ZEe=R.forwardRef((e,t)=>{const{__scopeSelect:n,...r}=e,o=dx(n),s=vl(L_,n),u=yl(L_,n);return s.open&&u.position==="popper"?ce.jsx(eD,{...o,...r,ref:t}):null});ZEe.displayName=L_;var JEe="SelectBubbleInput",MK=R.forwardRef(({__scopeSelect:e,value:t,...n},r)=>{const o=R.useRef(null),s=Dt(r,o),u=dK(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]),ce.jsx(pt.select,{...n,style:{...HU,...n.style},ref:s,defaultValue:t})});MK.displayName=JEe;function LK(e){return e===""||e===void 0}function kK(e){const t=to(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 IK(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=eSe(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 eSe(e,t){return e.map((n,r)=>e[(t+r)%e.length])}var tSe=fK,nSe=pK,rSe=gK,aSe=vK,iSe=yK,oSe=bK,sSe=EK,lSe=TK,uSe=CK,cSe=DK,dSe=RK,fSe=jK;function Or({...e}){return w.jsxDEV(tSe,{"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 Tr({...e}){return w.jsxDEV(rSe,{"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 Cr({className:e,size:t="default",children:n,...r}){return w.jsxDEV(nSe,{"data-loc":"client/src/components/ui/select.tsx:34","data-slot":"select-trigger","data-size":t,className:$t("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(aSe,{"data-loc":"client/src/components/ui/select.tsx:44",asChild:!0,children:w.jsxDEV(cq,{"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 _r({className:e,children:t,position:n="popper",align:r="center",...o}){return w.jsxDEV(iSe,{"data-loc":"client/src/components/ui/select.tsx:59",children:w.jsxDEV(oSe,{"data-loc":"client/src/components/ui/select.tsx:60","data-slot":"select-content",className:$t("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(mSe,{"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(sSe,{"data-loc":"client/src/components/ui/select.tsx:73",className:$t("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(pSe,{"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 Tt({className:e,children:t,...n}){return w.jsxDEV(lSe,{"data-loc":"client/src/components/ui/select.tsx:107","data-slot":"select-item",className:$t("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(cSe,{"data-loc":"client/src/components/ui/select.tsx:116",children:w.jsxDEV(iae,{"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(uSe,{"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 mSe({className:e,...t}){return w.jsxDEV(dSe,{"data-loc":"client/src/components/ui/select.tsx:143","data-slot":"select-scroll-up-button",className:$t("flex cursor-default items-center justify-center py-1",e),...t,children:w.jsxDEV(sae,{"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 pSe({className:e,...t}){return w.jsxDEV(fSe,{"data-loc":"client/src/components/ui/select.tsx:161","data-slot":"select-scroll-down-button",className:$t("flex cursor-default items-center justify-center py-1",e),...t,children:w.jsxDEV(cq,{"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 bh({className:e,onKeyDown:t,onCompositionStart:n,onCompositionEnd:r,...o}){const s=mD(),{onCompositionStart:u,onCompositionEnd:c,onKeyDown:f}=Xq({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:$t("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 fx="Switch",[hSe]=as(fx),[gSe,vSe]=hSe(fx),$K=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,_]=Sd({prop:o,defaultProp:s??!1,onChange:m,caller:fx});return ce.jsxs(gSe,{scope:n,checked:T,disabled:c,children:[ce.jsx(pt.button,{type:"button",role:"switch","aria-checked":T,"aria-required":u,"data-state":UK(T),"data-disabled":c?"":void 0,disabled:c,value:f,...p,ref:S,onClick:Ie(e.onClick,D=>{_(P=>!P),N&&(x.current=D.isPropagationStopped(),x.current||D.stopPropagation())})}),N&&ce.jsx(zK,{control:y,bubbles:!x.current,name:r,value:f,checked:T,required:u,disabled:c,form:g,style:{transform:"translateX(-100%)"}})]})});$K.displayName=fx;var VK="SwitchThumb",BK=R.forwardRef((e,t)=>{const{__scopeSwitch:n,...r}=e,o=vSe(VK,n);return ce.jsx(pt.span,{"data-state":UK(o.checked),"data-disabled":o.disabled?"":void 0,...r,ref:t})});BK.displayName=VK;var ySe="SwitchBubbleInput",zK=R.forwardRef(({__scopeSwitch:e,control:t,checked:n,bubbles:r=!0,...o},s)=>{const u=R.useRef(null),c=Dt(u,s),f=dK(n),m=PU(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]),ce.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}})});zK.displayName=ySe;function UK(e){return e?"checked":"unchecked"}var bSe=$K,xSe=BK;function wSe({className:e,...t}){return w.jsxDEV(bSe,{"data-loc":"client/src/components/ui/switch.tsx:11","data-slot":"switch",className:$t("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(xSe,{"data-loc":"client/src/components/ui/switch.tsx:19","data-slot":"switch-thumb",className:$t("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 tz=["CN","HK","US","EU","SG","AE","ALL"],nz=["RealEstate","Securities","DigitalToken","Commodity","IntellectualProperty","Equipment","ALL"];function NSe(){const[e,t]=R.useState(""),[n,r]=R.useState(""),[o,s]=R.useState(""),[u,c]=R.useState(1),[f,m]=R.useState(!1),[g,p]=R.useState({jurisdiction:"",assetType:"",ruleName:"",description:"",required:!0,tags:""}),y=_t.useUtils(),{data:b,isLoading:S,refetch:x}=_t.knowledgeBase.list.useQuery({jurisdiction:e||void 0,assetType:n||void 0,status:o||void 0,page:u,pageSize:15}),N=_t.knowledgeBase.create.useMutation({onSuccess:()=>{cn.success("规则创建成功"),m(!1),y.knowledgeBase.list.invalidate(),p({jurisdiction:"",assetType:"",ruleName:"",description:"",required:!0,tags:""})},onError:C=>cn.error(C.message)}),T=_t.knowledgeBase.toggleStatus.useMutation({onSuccess:()=>{cn.success("状态已更新"),y.knowledgeBase.list.invalidate()},onError:C=>cn.error(C.message)}),_=_t.knowledgeBase.delete.useMutation({onSuccess:()=>{cn.success("规则已删除"),y.knowledgeBase.list.invalidate()},onError:C=>cn.error(C.message)}),D=b?.items||[],P=b?.total||0,A=Math.ceil(P/15);return w.jsxDEV("div",{"data-loc":"client/src/pages/KnowledgeBase.tsx:54",className:"p-6 space-y-5",children:[w.jsxDEV("div",{"data-loc":"client/src/pages/KnowledgeBase.tsx:55",className:"flex items-center justify-between",children:[w.jsxDEV("div",{"data-loc":"client/src/pages/KnowledgeBase.tsx:56",children:[w.jsxDEV("h1",{"data-loc":"client/src/pages/KnowledgeBase.tsx:57",className:"text-2xl font-bold nac-gradient-text",children:"知识库管理"},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/KnowledgeBase.tsx",lineNumber:57,columnNumber:11},this),w.jsxDEV("p",{"data-loc":"client/src/pages/KnowledgeBase.tsx:58",className:"text-sm text-muted-foreground mt-0.5",children:"管理合规规则、法规条文与交易细则"},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/KnowledgeBase.tsx",lineNumber:58,columnNumber:11},this)]},void 0,!0,{fileName:"/home/ubuntu/nac-admin/client/src/pages/KnowledgeBase.tsx",lineNumber:56,columnNumber:9},this),w.jsxDEV("div",{"data-loc":"client/src/pages/KnowledgeBase.tsx:60",className:"flex items-center gap-2",children:[w.jsxDEV(xt,{"data-loc":"client/src/pages/KnowledgeBase.tsx:61",variant:"outline",size:"sm",onClick:()=>x(),className:"border-border/50",children:[w.jsxDEV(of,{"data-loc":"client/src/pages/KnowledgeBase.tsx:62",className:"w-4 h-4 mr-1.5"},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/KnowledgeBase.tsx",lineNumber:62,columnNumber:13},this),"刷新"]},void 0,!0,{fileName:"/home/ubuntu/nac-admin/client/src/pages/KnowledgeBase.tsx",lineNumber:61,columnNumber:11},this),w.jsxDEV(Ru,{"data-loc":"client/src/pages/KnowledgeBase.tsx:64",open:f,onOpenChange:m,children:[w.jsxDEV(kp,{"data-loc":"client/src/pages/KnowledgeBase.tsx:65",asChild:!0,children:w.jsxDEV(xt,{"data-loc":"client/src/pages/KnowledgeBase.tsx:66",size:"sm",className:"nac-gradient text-white",children:[w.jsxDEV(p0,{"data-loc":"client/src/pages/KnowledgeBase.tsx:67",className:"w-4 h-4 mr-1.5"},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/KnowledgeBase.tsx",lineNumber:67,columnNumber:17},this),"新增规则"]},void 0,!0,{fileName:"/home/ubuntu/nac-admin/client/src/pages/KnowledgeBase.tsx",lineNumber:66,columnNumber:15},this)},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/KnowledgeBase.tsx",lineNumber:65,columnNumber:13},this),w.jsxDEV(ju,{"data-loc":"client/src/pages/KnowledgeBase.tsx:70",className:"bg-card border-border/50 max-w-lg",children:[w.jsxDEV(Pu,{"data-loc":"client/src/pages/KnowledgeBase.tsx:71",children:w.jsxDEV(Mu,{"data-loc":"client/src/pages/KnowledgeBase.tsx:72",children:"新增合规规则"},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/KnowledgeBase.tsx",lineNumber:72,columnNumber:17},this)},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/KnowledgeBase.tsx",lineNumber:71,columnNumber:15},this),w.jsxDEV("div",{"data-loc":"client/src/pages/KnowledgeBase.tsx:74",className:"space-y-4 mt-2",children:[w.jsxDEV("div",{"data-loc":"client/src/pages/KnowledgeBase.tsx:75",className:"grid grid-cols-2 gap-3",children:[w.jsxDEV("div",{"data-loc":"client/src/pages/KnowledgeBase.tsx:76",className:"space-y-1.5",children:[w.jsxDEV(Ct,{"data-loc":"client/src/pages/KnowledgeBase.tsx:77",className:"text-xs",children:"司法辖区"},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/KnowledgeBase.tsx",lineNumber:77,columnNumber:21},this),w.jsxDEV(Or,{"data-loc":"client/src/pages/KnowledgeBase.tsx:78",value:g.jurisdiction,onValueChange:C=>p(j=>({...j,jurisdiction:C})),children:[w.jsxDEV(Cr,{"data-loc":"client/src/pages/KnowledgeBase.tsx:79",className:"bg-input border-border/50 h-9",children:w.jsxDEV(Tr,{"data-loc":"client/src/pages/KnowledgeBase.tsx:79",placeholder:"选择辖区"},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/KnowledgeBase.tsx",lineNumber:79,columnNumber:129},this)},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/KnowledgeBase.tsx",lineNumber:79,columnNumber:23},this),w.jsxDEV(_r,{"data-loc":"client/src/pages/KnowledgeBase.tsx:80",className:"bg-card border-border/50",children:tz.map(C=>w.jsxDEV(Tt,{"data-loc":"client/src/pages/KnowledgeBase.tsx:81",value:C,children:C},C,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/KnowledgeBase.tsx",lineNumber:81,columnNumber:49},this))},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/KnowledgeBase.tsx",lineNumber:80,columnNumber:23},this)]},void 0,!0,{fileName:"/home/ubuntu/nac-admin/client/src/pages/KnowledgeBase.tsx",lineNumber:78,columnNumber:21},this)]},void 0,!0,{fileName:"/home/ubuntu/nac-admin/client/src/pages/KnowledgeBase.tsx",lineNumber:76,columnNumber:19},this),w.jsxDEV("div",{"data-loc":"client/src/pages/KnowledgeBase.tsx:85",className:"space-y-1.5",children:[w.jsxDEV(Ct,{"data-loc":"client/src/pages/KnowledgeBase.tsx:86",className:"text-xs",children:"资产类型"},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/KnowledgeBase.tsx",lineNumber:86,columnNumber:21},this),w.jsxDEV(Or,{"data-loc":"client/src/pages/KnowledgeBase.tsx:87",value:g.assetType,onValueChange:C=>p(j=>({...j,assetType:C})),children:[w.jsxDEV(Cr,{"data-loc":"client/src/pages/KnowledgeBase.tsx:88",className:"bg-input border-border/50 h-9",children:w.jsxDEV(Tr,{"data-loc":"client/src/pages/KnowledgeBase.tsx:88",placeholder:"选择类型"},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/KnowledgeBase.tsx",lineNumber:88,columnNumber:129},this)},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/KnowledgeBase.tsx",lineNumber:88,columnNumber:23},this),w.jsxDEV(_r,{"data-loc":"client/src/pages/KnowledgeBase.tsx:89",className:"bg-card border-border/50",children:nz.map(C=>w.jsxDEV(Tt,{"data-loc":"client/src/pages/KnowledgeBase.tsx:90",value:C,children:C},C,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/KnowledgeBase.tsx",lineNumber:90,columnNumber:47},this))},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/KnowledgeBase.tsx",lineNumber:89,columnNumber:23},this)]},void 0,!0,{fileName:"/home/ubuntu/nac-admin/client/src/pages/KnowledgeBase.tsx",lineNumber:87,columnNumber:21},this)]},void 0,!0,{fileName:"/home/ubuntu/nac-admin/client/src/pages/KnowledgeBase.tsx",lineNumber:85,columnNumber:19},this)]},void 0,!0,{fileName:"/home/ubuntu/nac-admin/client/src/pages/KnowledgeBase.tsx",lineNumber:75,columnNumber:17},this),w.jsxDEV("div",{"data-loc":"client/src/pages/KnowledgeBase.tsx:95",className:"space-y-1.5",children:[w.jsxDEV(Ct,{"data-loc":"client/src/pages/KnowledgeBase.tsx:96",className:"text-xs",children:"规则名称"},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/KnowledgeBase.tsx",lineNumber:96,columnNumber:19},this),w.jsxDEV(Qn,{"data-loc":"client/src/pages/KnowledgeBase.tsx:97",value:g.ruleName,onChange:C=>p(j=>({...j,ruleName:C.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:97,columnNumber:19},this)]},void 0,!0,{fileName:"/home/ubuntu/nac-admin/client/src/pages/KnowledgeBase.tsx",lineNumber:95,columnNumber:17},this),w.jsxDEV("div",{"data-loc":"client/src/pages/KnowledgeBase.tsx:99",className:"space-y-1.5",children:[w.jsxDEV(Ct,{"data-loc":"client/src/pages/KnowledgeBase.tsx:100",className:"text-xs",children:"规则描述"},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/KnowledgeBase.tsx",lineNumber:100,columnNumber:19},this),w.jsxDEV(bh,{"data-loc":"client/src/pages/KnowledgeBase.tsx:101",value:g.description,onChange:C=>p(j=>({...j,description:C.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:101,columnNumber:19},this)]},void 0,!0,{fileName:"/home/ubuntu/nac-admin/client/src/pages/KnowledgeBase.tsx",lineNumber:99,columnNumber:17},this),w.jsxDEV("div",{"data-loc":"client/src/pages/KnowledgeBase.tsx:103",className:"space-y-1.5",children:[w.jsxDEV(Ct,{"data-loc":"client/src/pages/KnowledgeBase.tsx:104",className:"text-xs",children:"标签(逗号分隔)"},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/KnowledgeBase.tsx",lineNumber:104,columnNumber:19},this),w.jsxDEV(Qn,{"data-loc":"client/src/pages/KnowledgeBase.tsx:105",value:g.tags,onChange:C=>p(j=>({...j,tags:C.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:105,columnNumber:19},this)]},void 0,!0,{fileName:"/home/ubuntu/nac-admin/client/src/pages/KnowledgeBase.tsx",lineNumber:103,columnNumber:17},this),w.jsxDEV("div",{"data-loc":"client/src/pages/KnowledgeBase.tsx:107",className:"flex items-center gap-2",children:[w.jsxDEV(wSe,{"data-loc":"client/src/pages/KnowledgeBase.tsx:108",checked:g.required,onCheckedChange:C=>p(j=>({...j,required:C}))},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/KnowledgeBase.tsx",lineNumber:108,columnNumber:19},this),w.jsxDEV(Ct,{"data-loc":"client/src/pages/KnowledgeBase.tsx:109",className:"text-xs",children:"强制要求"},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/KnowledgeBase.tsx",lineNumber:109,columnNumber:19},this)]},void 0,!0,{fileName:"/home/ubuntu/nac-admin/client/src/pages/KnowledgeBase.tsx",lineNumber:107,columnNumber:17},this),w.jsxDEV(xt,{"data-loc":"client/src/pages/KnowledgeBase.tsx:111",className:"w-full nac-gradient text-white",onClick:()=>N.mutate({...g,tags:g.tags.split(",").map(C=>C.trim()).filter(Boolean)}),disabled:N.isPending||!g.jurisdiction||!g.assetType||!g.ruleName,children:N.isPending?"创建中...":"创建规则"},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/KnowledgeBase.tsx",lineNumber:111,columnNumber:17},this)]},void 0,!0,{fileName:"/home/ubuntu/nac-admin/client/src/pages/KnowledgeBase.tsx",lineNumber:74,columnNumber:15},this)]},void 0,!0,{fileName:"/home/ubuntu/nac-admin/client/src/pages/KnowledgeBase.tsx",lineNumber:70,columnNumber:13},this)]},void 0,!0,{fileName:"/home/ubuntu/nac-admin/client/src/pages/KnowledgeBase.tsx",lineNumber:64,columnNumber:11},this)]},void 0,!0,{fileName:"/home/ubuntu/nac-admin/client/src/pages/KnowledgeBase.tsx",lineNumber:60,columnNumber:9},this)]},void 0,!0,{fileName:"/home/ubuntu/nac-admin/client/src/pages/KnowledgeBase.tsx",lineNumber:55,columnNumber:7},this),w.jsxDEV(Wt,{"data-loc":"client/src/pages/KnowledgeBase.tsx:125",className:"border-border/50",children:w.jsxDEV(Zt,{"data-loc":"client/src/pages/KnowledgeBase.tsx:126",className:"p-4",children:w.jsxDEV("div",{"data-loc":"client/src/pages/KnowledgeBase.tsx:127",className:"flex flex-wrap items-center gap-3",children:[w.jsxDEV(dae,{"data-loc":"client/src/pages/KnowledgeBase.tsx:128",className:"w-4 h-4 text-muted-foreground"},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/KnowledgeBase.tsx",lineNumber:128,columnNumber:13},this),w.jsxDEV(Or,{"data-loc":"client/src/pages/KnowledgeBase.tsx:129",value:e,onValueChange:C=>{t(C==="ALL_FILTER"?"":C),c(1)},children:[w.jsxDEV(Cr,{"data-loc":"client/src/pages/KnowledgeBase.tsx:130",className:"w-36 bg-input border-border/50 h-8 text-sm",children:w.jsxDEV(Tr,{"data-loc":"client/src/pages/KnowledgeBase.tsx:130",placeholder:"司法辖区"},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/KnowledgeBase.tsx",lineNumber:130,columnNumber:135},this)},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/KnowledgeBase.tsx",lineNumber:130,columnNumber:15},this),w.jsxDEV(_r,{"data-loc":"client/src/pages/KnowledgeBase.tsx:131",className:"bg-card border-border/50",children:[w.jsxDEV(Tt,{"data-loc":"client/src/pages/KnowledgeBase.tsx:132",value:"ALL_FILTER",children:"全部辖区"},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/KnowledgeBase.tsx",lineNumber:132,columnNumber:17},this),tz.map(C=>w.jsxDEV(Tt,{"data-loc":"client/src/pages/KnowledgeBase.tsx:133",value:C,children:C},C,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/KnowledgeBase.tsx",lineNumber:133,columnNumber:41},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:129,columnNumber:13},this),w.jsxDEV(Or,{"data-loc":"client/src/pages/KnowledgeBase.tsx:136",value:n,onValueChange:C=>{r(C==="ALL_FILTER"?"":C),c(1)},children:[w.jsxDEV(Cr,{"data-loc":"client/src/pages/KnowledgeBase.tsx:137",className:"w-40 bg-input border-border/50 h-8 text-sm",children:w.jsxDEV(Tr,{"data-loc":"client/src/pages/KnowledgeBase.tsx:137",placeholder:"资产类型"},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/KnowledgeBase.tsx",lineNumber:137,columnNumber:135},this)},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/KnowledgeBase.tsx",lineNumber:137,columnNumber:15},this),w.jsxDEV(_r,{"data-loc":"client/src/pages/KnowledgeBase.tsx:138",className:"bg-card border-border/50",children:[w.jsxDEV(Tt,{"data-loc":"client/src/pages/KnowledgeBase.tsx:139",value:"ALL_FILTER",children:"全部类型"},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/KnowledgeBase.tsx",lineNumber:139,columnNumber:17},this),nz.map(C=>w.jsxDEV(Tt,{"data-loc":"client/src/pages/KnowledgeBase.tsx:140",value:C,children:C},C,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/KnowledgeBase.tsx",lineNumber:140,columnNumber:39},this))]},void 0,!0,{fileName:"/home/ubuntu/nac-admin/client/src/pages/KnowledgeBase.tsx",lineNumber:138,columnNumber:15},this)]},void 0,!0,{fileName:"/home/ubuntu/nac-admin/client/src/pages/KnowledgeBase.tsx",lineNumber:136,columnNumber:13},this),w.jsxDEV(Or,{"data-loc":"client/src/pages/KnowledgeBase.tsx:143",value:o,onValueChange:C=>{s(C==="ALL_FILTER"?"":C),c(1)},children:[w.jsxDEV(Cr,{"data-loc":"client/src/pages/KnowledgeBase.tsx:144",className:"w-28 bg-input border-border/50 h-8 text-sm",children:w.jsxDEV(Tr,{"data-loc":"client/src/pages/KnowledgeBase.tsx:144",placeholder:"状态"},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/KnowledgeBase.tsx",lineNumber:144,columnNumber:135},this)},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/KnowledgeBase.tsx",lineNumber:144,columnNumber:15},this),w.jsxDEV(_r,{"data-loc":"client/src/pages/KnowledgeBase.tsx:145",className:"bg-card border-border/50",children:[w.jsxDEV(Tt,{"data-loc":"client/src/pages/KnowledgeBase.tsx:146",value:"ALL_FILTER",children:"全部状态"},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/KnowledgeBase.tsx",lineNumber:146,columnNumber:17},this),w.jsxDEV(Tt,{"data-loc":"client/src/pages/KnowledgeBase.tsx:147",value:"active",children:"已激活"},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/KnowledgeBase.tsx",lineNumber:147,columnNumber:17},this),w.jsxDEV(Tt,{"data-loc":"client/src/pages/KnowledgeBase.tsx:148",value:"disabled",children:"已禁用"},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/KnowledgeBase.tsx",lineNumber:148,columnNumber:17},this)]},void 0,!0,{fileName:"/home/ubuntu/nac-admin/client/src/pages/KnowledgeBase.tsx",lineNumber:145,columnNumber:15},this)]},void 0,!0,{fileName:"/home/ubuntu/nac-admin/client/src/pages/KnowledgeBase.tsx",lineNumber:143,columnNumber:13},this),w.jsxDEV("span",{"data-loc":"client/src/pages/KnowledgeBase.tsx:151",className:"text-xs text-muted-foreground ml-auto",children:["共 ",P," 条规则"]},void 0,!0,{fileName:"/home/ubuntu/nac-admin/client/src/pages/KnowledgeBase.tsx",lineNumber:151,columnNumber:13},this)]},void 0,!0,{fileName:"/home/ubuntu/nac-admin/client/src/pages/KnowledgeBase.tsx",lineNumber:127,columnNumber:11},this)},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/KnowledgeBase.tsx",lineNumber:126,columnNumber:9},this)},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/KnowledgeBase.tsx",lineNumber:125,columnNumber:7},this),w.jsxDEV(Wt,{"data-loc":"client/src/pages/KnowledgeBase.tsx:157",className:"border-border/50",children:w.jsxDEV(Zt,{"data-loc":"client/src/pages/KnowledgeBase.tsx:158",className:"p-0",children:S?w.jsxDEV("div",{"data-loc":"client/src/pages/KnowledgeBase.tsx:160",className:"p-8 text-center text-muted-foreground text-sm",children:"加载中..."},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/KnowledgeBase.tsx",lineNumber:160,columnNumber:13},this):D.length===0?w.jsxDEV("div",{"data-loc":"client/src/pages/KnowledgeBase.tsx:162",className:"p-8 text-center",children:[w.jsxDEV(aD,{"data-loc":"client/src/pages/KnowledgeBase.tsx:163",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:163,columnNumber:15},this),w.jsxDEV("p",{"data-loc":"client/src/pages/KnowledgeBase.tsx:164",className:"text-muted-foreground text-sm",children:"暂无合规规则"},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/KnowledgeBase.tsx",lineNumber:164,columnNumber:15},this)]},void 0,!0,{fileName:"/home/ubuntu/nac-admin/client/src/pages/KnowledgeBase.tsx",lineNumber:162,columnNumber:13},this):w.jsxDEV("div",{"data-loc":"client/src/pages/KnowledgeBase.tsx:167",className:"overflow-x-auto",children:w.jsxDEV("table",{"data-loc":"client/src/pages/KnowledgeBase.tsx:168",className:"w-full text-sm",children:[w.jsxDEV("thead",{"data-loc":"client/src/pages/KnowledgeBase.tsx:169",children:w.jsxDEV("tr",{"data-loc":"client/src/pages/KnowledgeBase.tsx:170",className:"border-b border-border/30",children:[w.jsxDEV("th",{"data-loc":"client/src/pages/KnowledgeBase.tsx:171",className:"text-left p-3 text-xs font-medium text-muted-foreground",children:"规则名称"},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/KnowledgeBase.tsx",lineNumber:171,columnNumber:21},this),w.jsxDEV("th",{"data-loc":"client/src/pages/KnowledgeBase.tsx:172",className:"text-left p-3 text-xs font-medium text-muted-foreground",children:"辖区"},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/KnowledgeBase.tsx",lineNumber:172,columnNumber:21},this),w.jsxDEV("th",{"data-loc":"client/src/pages/KnowledgeBase.tsx:173",className:"text-left p-3 text-xs font-medium text-muted-foreground",children:"资产类型"},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/KnowledgeBase.tsx",lineNumber:173,columnNumber:21},this),w.jsxDEV("th",{"data-loc":"client/src/pages/KnowledgeBase.tsx:174",className:"text-left p-3 text-xs font-medium text-muted-foreground",children:"标签"},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/KnowledgeBase.tsx",lineNumber:174,columnNumber:21},this),w.jsxDEV("th",{"data-loc":"client/src/pages/KnowledgeBase.tsx:175",className:"text-left p-3 text-xs font-medium text-muted-foreground",children:"状态"},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/KnowledgeBase.tsx",lineNumber:175,columnNumber:21},this),w.jsxDEV("th",{"data-loc":"client/src/pages/KnowledgeBase.tsx:176",className:"text-right p-3 text-xs font-medium text-muted-foreground",children:"操作"},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/KnowledgeBase.tsx",lineNumber:176,columnNumber:21},this)]},void 0,!0,{fileName:"/home/ubuntu/nac-admin/client/src/pages/KnowledgeBase.tsx",lineNumber:170,columnNumber:19},this)},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/KnowledgeBase.tsx",lineNumber:169,columnNumber:17},this),w.jsxDEV("tbody",{"data-loc":"client/src/pages/KnowledgeBase.tsx:179",children:D.map(C=>w.jsxDEV("tr",{"data-loc":"client/src/pages/KnowledgeBase.tsx:181",className:"border-b border-border/20 hover:bg-accent/30 transition-colors",children:[w.jsxDEV("td",{"data-loc":"client/src/pages/KnowledgeBase.tsx:182",className:"p-3",children:[w.jsxDEV("p",{"data-loc":"client/src/pages/KnowledgeBase.tsx:183",className:"font-medium",children:C.ruleName},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/KnowledgeBase.tsx",lineNumber:183,columnNumber:25},this),w.jsxDEV("p",{"data-loc":"client/src/pages/KnowledgeBase.tsx:184",className:"text-xs text-muted-foreground mt-0.5 line-clamp-1",children:C.description},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/KnowledgeBase.tsx",lineNumber:184,columnNumber:25},this)]},void 0,!0,{fileName:"/home/ubuntu/nac-admin/client/src/pages/KnowledgeBase.tsx",lineNumber:182,columnNumber:23},this),w.jsxDEV("td",{"data-loc":"client/src/pages/KnowledgeBase.tsx:186",className:"p-3",children:w.jsxDEV(sf,{"data-loc":"client/src/pages/KnowledgeBase.tsx:187",variant:"outline",className:"text-xs border-primary/30 text-primary",children:C.jurisdiction},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/KnowledgeBase.tsx",lineNumber:187,columnNumber:25},this)},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/KnowledgeBase.tsx",lineNumber:186,columnNumber:23},this),w.jsxDEV("td",{"data-loc":"client/src/pages/KnowledgeBase.tsx:189",className:"p-3 text-xs text-muted-foreground",children:C.assetType},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/KnowledgeBase.tsx",lineNumber:189,columnNumber:23},this),w.jsxDEV("td",{"data-loc":"client/src/pages/KnowledgeBase.tsx:190",className:"p-3",children:w.jsxDEV("div",{"data-loc":"client/src/pages/KnowledgeBase.tsx:191",className:"flex flex-wrap gap-1",children:(C.tags||[]).slice(0,3).map(j=>w.jsxDEV("span",{"data-loc":"client/src/pages/KnowledgeBase.tsx:193",className:"text-xs px-1.5 py-0.5 rounded bg-accent text-accent-foreground",children:j},j,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/KnowledgeBase.tsx",lineNumber:193,columnNumber:29},this))},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/KnowledgeBase.tsx",lineNumber:191,columnNumber:25},this)},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/KnowledgeBase.tsx",lineNumber:190,columnNumber:23},this),w.jsxDEV("td",{"data-loc":"client/src/pages/KnowledgeBase.tsx:197",className:"p-3",children:w.jsxDEV("span",{"data-loc":"client/src/pages/KnowledgeBase.tsx:198",className:`text-xs px-2 py-0.5 rounded-full font-medium status-${C.status}`,children:C.status==="active"?"已激活":"已禁用"},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/KnowledgeBase.tsx",lineNumber:198,columnNumber:25},this)},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/KnowledgeBase.tsx",lineNumber:197,columnNumber:23},this),w.jsxDEV("td",{"data-loc":"client/src/pages/KnowledgeBase.tsx:202",className:"p-3",children:w.jsxDEV("div",{"data-loc":"client/src/pages/KnowledgeBase.tsx:203",className:"flex items-center justify-end gap-1",children:[w.jsxDEV(xt,{"data-loc":"client/src/pages/KnowledgeBase.tsx:204",variant:"ghost",size:"sm",className:"h-7 px-2 text-xs",onClick:()=>T.mutate({id:C._id.toString(),status:C.status==="active"?"disabled":"active"}),children:[w.jsxDEV(pq,{"data-loc":"client/src/pages/KnowledgeBase.tsx:209",className:"w-3.5 h-3.5 mr-1"},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/KnowledgeBase.tsx",lineNumber:209,columnNumber:29},this),C.status==="active"?"禁用":"激活"]},void 0,!0,{fileName:"/home/ubuntu/nac-admin/client/src/pages/KnowledgeBase.tsx",lineNumber:204,columnNumber:27},this),w.jsxDEV(xt,{"data-loc":"client/src/pages/KnowledgeBase.tsx:212",variant:"ghost",size:"sm",className:"h-7 px-2 text-xs text-destructive hover:text-destructive",onClick:()=>{confirm("确认删除此规则?")&&_.mutate({id:C._id.toString()})},children:w.jsxDEV(Eae,{"data-loc":"client/src/pages/KnowledgeBase.tsx:217",className:"w-3.5 h-3.5"},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/KnowledgeBase.tsx",lineNumber:217,columnNumber:29},this)},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/KnowledgeBase.tsx",lineNumber:212,columnNumber:27},this)]},void 0,!0,{fileName:"/home/ubuntu/nac-admin/client/src/pages/KnowledgeBase.tsx",lineNumber:203,columnNumber:25},this)},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/KnowledgeBase.tsx",lineNumber:202,columnNumber:23},this)]},C._id?.toString(),!0,{fileName:"/home/ubuntu/nac-admin/client/src/pages/KnowledgeBase.tsx",lineNumber:181,columnNumber:21},this))},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/KnowledgeBase.tsx",lineNumber:179,columnNumber:17},this)]},void 0,!0,{fileName:"/home/ubuntu/nac-admin/client/src/pages/KnowledgeBase.tsx",lineNumber:168,columnNumber:15},this)},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/KnowledgeBase.tsx",lineNumber:167,columnNumber:13},this)},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/KnowledgeBase.tsx",lineNumber:158,columnNumber:9},this)},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/KnowledgeBase.tsx",lineNumber:157,columnNumber:7},this),A>1&&w.jsxDEV("div",{"data-loc":"client/src/pages/KnowledgeBase.tsx:232",className:"flex items-center justify-center gap-2",children:[w.jsxDEV(xt,{"data-loc":"client/src/pages/KnowledgeBase.tsx:233",variant:"outline",size:"sm",onClick:()=>c(C=>Math.max(1,C-1)),disabled:u===1,className:"border-border/50 h-8",children:"上一页"},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/KnowledgeBase.tsx",lineNumber:233,columnNumber:11},this),w.jsxDEV("span",{"data-loc":"client/src/pages/KnowledgeBase.tsx:234",className:"text-xs text-muted-foreground",children:[u," / ",A]},void 0,!0,{fileName:"/home/ubuntu/nac-admin/client/src/pages/KnowledgeBase.tsx",lineNumber:234,columnNumber:11},this),w.jsxDEV(xt,{"data-loc":"client/src/pages/KnowledgeBase.tsx:235",variant:"outline",size:"sm",onClick:()=>c(C=>Math.min(A,C+1)),disabled:u===A,className:"border-border/50 h-8",children:"下一页"},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/KnowledgeBase.tsx",lineNumber:235,columnNumber:11},this)]},void 0,!0,{fileName:"/home/ubuntu/nac-admin/client/src/pages/KnowledgeBase.tsx",lineNumber:232,columnNumber:9},this)]},void 0,!0,{fileName:"/home/ubuntu/nac-admin/client/src/pages/KnowledgeBase.tsx",lineNumber:54,columnNumber:5},this)}const ESe=["CN","HK","US","EU","SG","AE","ALL"],SSe=["regulation","trade_rule","credit","asset_document","court_judgment","tax_rule"],ASe=["realtime","hourly","daily","weekly","monthly"];function OSe(){const[e,t]=R.useState(!1),[n,r]=R.useState({name:"",jurisdiction:"",type:"external",source:"",category:"",frequency:"daily"}),[o,s]=R.useState(null),u=_t.useUtils(),{data:c,isLoading:f,refetch:m}=_t.crawler.list.useQuery(),{data:g}=_t.crawler.logs.useQuery({crawlerId:o||void 0,limit:30}),p=_t.crawler.trigger.useMutation({onSuccess:x=>{cn.success(x.message),u.crawler.list.invalidate(),u.crawler.logs.invalidate()},onError:x=>cn.error(x.message)}),y=_t.crawler.create.useMutation({onSuccess:()=>{cn.success("采集器创建成功"),t(!1),u.crawler.list.invalidate(),r({name:"",jurisdiction:"",type:"external",source:"",category:"",frequency:"daily"})},onError:x=>cn.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(xt,{"data-loc":"client/src/pages/Crawlers.tsx:47",variant:"outline",size:"sm",onClick:()=>m(),className:"border-border/50",children:[w.jsxDEV(of,{"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(Ru,{"data-loc":"client/src/pages/Crawlers.tsx:50",open:e,onOpenChange:t,children:[w.jsxDEV(kp,{"data-loc":"client/src/pages/Crawlers.tsx:51",asChild:!0,children:w.jsxDEV(xt,{"data-loc":"client/src/pages/Crawlers.tsx:52",size:"sm",className:"nac-gradient text-white",children:[w.jsxDEV(p0,{"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(ju,{"data-loc":"client/src/pages/Crawlers.tsx:54",className:"bg-card border-border/50 max-w-lg",children:[w.jsxDEV(Pu,{"data-loc":"client/src/pages/Crawlers.tsx:55",children:w.jsxDEV(Mu,{"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(Ct,{"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(Ct,{"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(Or,{"data-loc":"client/src/pages/Crawlers.tsx:64",value:n.jurisdiction,onValueChange:x=>r(N=>({...N,jurisdiction:x})),children:[w.jsxDEV(Cr,{"data-loc":"client/src/pages/Crawlers.tsx:65",className:"bg-input border-border/50 h-9",children:w.jsxDEV(Tr,{"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(_r,{"data-loc":"client/src/pages/Crawlers.tsx:66",className:"bg-card border-border/50",children:ESe.map(x=>w.jsxDEV(Tt,{"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(Ct,{"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(Or,{"data-loc":"client/src/pages/Crawlers.tsx:73",value:n.type,onValueChange:x=>r(N=>({...N,type:x})),children:[w.jsxDEV(Cr,{"data-loc":"client/src/pages/Crawlers.tsx:74",className:"bg-input border-border/50 h-9",children:w.jsxDEV(Tr,{"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(_r,{"data-loc":"client/src/pages/Crawlers.tsx:75",className:"bg-card border-border/50",children:[w.jsxDEV(Tt,{"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(Tt,{"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(Ct,{"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(Ct,{"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(Or,{"data-loc":"client/src/pages/Crawlers.tsx:89",value:n.category,onValueChange:x=>r(N=>({...N,category:x})),children:[w.jsxDEV(Cr,{"data-loc":"client/src/pages/Crawlers.tsx:90",className:"bg-input border-border/50 h-9",children:w.jsxDEV(Tr,{"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(_r,{"data-loc":"client/src/pages/Crawlers.tsx:91",className:"bg-card border-border/50",children:SSe.map(x=>w.jsxDEV(Tt,{"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(Ct,{"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(Or,{"data-loc":"client/src/pages/Crawlers.tsx:98",value:n.frequency,onValueChange:x=>r(N=>({...N,frequency:x})),children:[w.jsxDEV(Cr,{"data-loc":"client/src/pages/Crawlers.tsx:99",className:"bg-input border-border/50 h-9",children:w.jsxDEV(Tr,{"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(_r,{"data-loc":"client/src/pages/Crawlers.tsx:100",className:"bg-card border-border/50",children:ASe.map(x=>w.jsxDEV(Tt,{"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(xt,{"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(Wt,{"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(Zt,{"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(Aae,{"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(Ky,{"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(sf,{"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(m0,{"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(Mp,{"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(xt,{"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(R3,{"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(Wt,{"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(Ky,{"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(Zt,{"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(R3,{"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(Mp,{"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(oC,{"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 TSe(){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=_t.useUtils(),{data:b,isLoading:S,refetch:x}=_t.approvalCase.list.useQuery({riskLevel:e||void 0,status:n||void 0,page:o,pageSize:15}),N=_t.approvalCase.review.useMutation({onSuccess:()=>{cn.success("审核意见已提交"),c(!1),p(""),m(null),y.approvalCase.list.invalidate()},onError:C=>cn.error(C.message)}),T=b?.items||[],_=b?.total||0,D=Math.ceil(_/15),P=C=>{const L={low:{label:"低风险",cls:"risk-low"},medium:{label:"中风险",cls:"risk-medium"},high:{label:"高风险",cls:"risk-high"}}[C]||{label:C,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=C=>{const L={approved:{label:"已通过",cls:"status-active"},rejected:{label:"已拒绝",cls:"status-error"},pending_human:{label:"待人工审核",cls:"status-pending"},auto_approved:{label:"自动通过",cls:"status-active"}}[C]||{label:C,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(xt,{"data-loc":"client/src/pages/ApprovalCases.tsx:71",variant:"outline",size:"sm",onClick:()=>x(),className:"border-border/50",children:[w.jsxDEV(of,{"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:m0,color:"text-amber-400"},{label:"今日通过",value:b?.todayApproved??0,icon:Mp,color:"text-emerald-400"},{label:"今日拒绝",value:b?.todayRejected??0,icon:oC,color:"text-red-400"},{label:"高风险案例",value:b?.highRiskCount??0,icon:h0,color:"text-red-400"}].map(C=>w.jsxDEV(Wt,{"data-loc":"client/src/pages/ApprovalCases.tsx:84",className:"border-border/50",children:w.jsxDEV(Zt,{"data-loc":"client/src/pages/ApprovalCases.tsx:85",className:"p-4 flex items-center gap-3",children:[w.jsxDEV(C.icon,{"data-loc":"client/src/pages/ApprovalCases.tsx:86",className:`w-8 h-8 ${C.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 ${C.color}`,children:C.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:C.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)},C.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(Wt,{"data-loc":"client/src/pages/ApprovalCases.tsx:97",className:"border-border/50",children:w.jsxDEV(Zt,{"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(Or,{"data-loc":"client/src/pages/ApprovalCases.tsx:100",value:e,onValueChange:C=>{t(C==="ALL_FILTER"?"":C),s(1)},children:[w.jsxDEV(Cr,{"data-loc":"client/src/pages/ApprovalCases.tsx:101",className:"w-32 bg-input border-border/50 h-8 text-sm",children:w.jsxDEV(Tr,{"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(_r,{"data-loc":"client/src/pages/ApprovalCases.tsx:102",className:"bg-card border-border/50",children:[w.jsxDEV(Tt,{"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(Tt,{"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(Tt,{"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(Tt,{"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(Or,{"data-loc":"client/src/pages/ApprovalCases.tsx:109",value:n,onValueChange:C=>{r(C==="ALL_FILTER"?"":C),s(1)},children:[w.jsxDEV(Cr,{"data-loc":"client/src/pages/ApprovalCases.tsx:110",className:"w-36 bg-input border-border/50 h-8 text-sm",children:w.jsxDEV(Tr,{"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(_r,{"data-loc":"client/src/pages/ApprovalCases.tsx:111",className:"bg-card border-border/50",children:[w.jsxDEV(Tt,{"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(Tt,{"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(Tt,{"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(Tt,{"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(Tt,{"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:["共 ",_," 个案例"]},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(Wt,{"data-loc":"client/src/pages/ApprovalCases.tsx:125",className:"border-border/50",children:w.jsxDEV(Zt,{"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(dq,{"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(C=>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:C.assetName||C.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:C.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(sf,{"data-loc":"client/src/pages/ApprovalCases.tsx:157",variant:"outline",className:"text-xs border-primary/30 text-primary w-fit",children:C.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:C.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(C.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:`${C.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:C.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(C.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:C.createdAt?new Date(C.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(xt,{"data-loc":"client/src/pages/ApprovalCases.tsx:176",variant:"ghost",size:"sm",className:"h-7 px-2 text-xs",onClick:()=>{m(C),c(!0)},children:[w.jsxDEV(uae,{"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)]},C._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(xt,{"data-loc":"client/src/pages/ApprovalCases.tsx:197",variant:"outline",size:"sm",onClick:()=>s(C=>Math.max(1,C-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(xt,{"data-loc":"client/src/pages/ApprovalCases.tsx:199",variant:"outline",size:"sm",onClick:()=>s(C=>Math.min(D,C+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(Ru,{"data-loc":"client/src/pages/ApprovalCases.tsx:204",open:u,onOpenChange:c,children:w.jsxDEV(ju,{"data-loc":"client/src/pages/ApprovalCases.tsx:205",className:"bg-card border-border/50 max-w-2xl",children:[w.jsxDEV(Pu,{"data-loc":"client/src/pages/ApprovalCases.tsx:206",children:w.jsxDEV(Mu,{"data-loc":"client/src/pages/ApprovalCases.tsx:207",className:"flex items-center gap-2",children:[w.jsxDEV(_u,{"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((C,j)=>w.jsxDEV("p",{"data-loc":"client/src/pages/ApprovalCases.tsx:237",className:"text-xs text-muted-foreground",children:["• ",C]},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(Ct,{"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(bh,{"data-loc":"client/src/pages/ApprovalCases.tsx:245",value:g,onChange:C=>p(C.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(xt,{"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(Mp,{"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(xt,{"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(oC,{"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 TT=["jurisdiction","asset_type","compliance_requirement","risk_indicator"],CT={jurisdiction:"司法辖区",asset_type:"资产类型",compliance_requirement:"合规要求",risk_indicator:"风险指标"};function CSe(){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=_t.useUtils(),{data:m,isLoading:g,refetch:p}=_t.tagEngine.listRules.useQuery(),y=_t.tagEngine.createRule.useMutation({onSuccess:()=>{cn.success("标签规则创建成功"),t(!1),f.tagEngine.listRules.invalidate(),s({keyword:"",tags:"",dimension:"",description:""})},onError:_=>cn.error(_.message)}),b=_t.tagEngine.correctTag.useMutation({onSuccess:()=>{cn.success("标签修正已提交,将作为训练数据"),r(!1),f.tagEngine.listRules.invalidate(),c({documentId:"",originalTags:"",correctedTags:"",reason:""})},onError:_=>cn.error(_.message)}),S=m||[],x=S.filter(_=>_.type==="rule"),N=S.filter(_=>_.type==="correction"),T={};return TT.forEach(_=>{T[_]=x.filter(D=>D.dimension===_).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(xt,{"data-loc":"client/src/pages/TagEngine.tsx:65",variant:"outline",size:"sm",onClick:()=>p(),className:"border-border/50",children:[w.jsxDEV(of,{"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(Ru,{"data-loc":"client/src/pages/TagEngine.tsx:69",open:n,onOpenChange:r,children:[w.jsxDEV(kp,{"data-loc":"client/src/pages/TagEngine.tsx:70",asChild:!0,children:w.jsxDEV(xt,{"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(fq,{"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(ju,{"data-loc":"client/src/pages/TagEngine.tsx:75",className:"bg-card border-border/50 max-w-lg",children:[w.jsxDEV(Pu,{"data-loc":"client/src/pages/TagEngine.tsx:76",children:w.jsxDEV(Mu,{"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(Ct,{"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(D=>({...D,documentId:_.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(Ct,{"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(D=>({...D,originalTags:_.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(Ct,{"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(D=>({...D,correctedTags:_.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(Ct,{"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(bh,{"data-loc":"client/src/pages/TagEngine.tsx:95",value:u.reason,onChange:_=>c(D=>({...D,reason:_.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(xt,{"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(_=>_.trim()).filter(Boolean),correctedTags:u.correctedTags.split(",").map(_=>_.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(Ru,{"data-loc":"client/src/pages/TagEngine.tsx:113",open:e,onOpenChange:t,children:[w.jsxDEV(kp,{"data-loc":"client/src/pages/TagEngine.tsx:114",asChild:!0,children:w.jsxDEV(xt,{"data-loc":"client/src/pages/TagEngine.tsx:115",size:"sm",className:"nac-gradient text-white",children:[w.jsxDEV(p0,{"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(ju,{"data-loc":"client/src/pages/TagEngine.tsx:117",className:"bg-card border-border/50 max-w-lg",children:[w.jsxDEV(Pu,{"data-loc":"client/src/pages/TagEngine.tsx:118",children:w.jsxDEV(Mu,{"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(Ct,{"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:_=>s(D=>({...D,keyword:_.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(Ct,{"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(Or,{"data-loc":"client/src/pages/TagEngine.tsx:127",value:o.dimension,onValueChange:_=>s(D=>({...D,dimension:_})),children:[w.jsxDEV(Cr,{"data-loc":"client/src/pages/TagEngine.tsx:128",className:"bg-input border-border/50 h-9",children:w.jsxDEV(Tr,{"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(_r,{"data-loc":"client/src/pages/TagEngine.tsx:129",className:"bg-card border-border/50",children:TT.map(_=>w.jsxDEV(Tt,{"data-loc":"client/src/pages/TagEngine.tsx:130",value:_,children:CT[_]},_,!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(Ct,{"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:_=>s(D=>({...D,tags:_.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(Ct,{"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(bh,{"data-loc":"client/src/pages/TagEngine.tsx:141",value:o.description,onChange:_=>s(D=>({...D,description:_.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(xt,{"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(_=>_.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:TT.map(_=>w.jsxDEV(Wt,{"data-loc":"client/src/pages/TagEngine.tsx:164",className:"border-border/50",children:w.jsxDEV(Zt,{"data-loc":"client/src/pages/TagEngine.tsx:165",className:"p-4 flex items-center gap-3",children:[w.jsxDEV(mae,{"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[_]??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:CT[_]},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)},_,!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(Wt,{"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(mq,{"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(Zt,{"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(_=>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:_.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:(_.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:CT[_.dimension]||_.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(sf,{"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)},_._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(Wt,{"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(aae,{"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(Zt,{"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(_=>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:["文档: ",_.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:(_.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:(_.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:["修正者: ",_.correctedBy]},void 0,!0,{fileName:"/home/ubuntu/nac-admin/client/src/pages/TagEngine.tsx",lineNumber:249,columnNumber:21},this)]},_._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 _Se=["compliance","asset","identity","governance","settlement","oracle"];function DSe(){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=_t.useUtils(),{data:p,isLoading:y,refetch:b}=_t.protocolRegistry.list.useQuery(),S=_t.protocolRegistry.register.useMutation({onSuccess:()=>{cn.success("协议注册成功"),t(!1),g.protocolRegistry.list.invalidate(),c({name:"",type:"",version:"",endpoint:"",trigger:"",description:""})},onError:A=>cn.error(A.message)}),x=_t.protocolRegistry.toggleStatus.useMutation({onSuccess:()=>{cn.success("协议状态已更新"),g.protocolRegistry.list.invalidate()},onError:A=>cn.error(A.message)}),N=_t.protocolRegistry.updateVersion.useMutation({onSuccess:()=>{cn.success("协议版本已更新"),r(!1),g.protocolRegistry.list.invalidate()},onError:A=>cn.error(A.message)}),T=p||[],_=T.filter(A=>A.status==="active").length,D=T.filter(A=>A.status==="deprecated").length,P=A=>{const C={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 ${C[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(xt,{"data-loc":"client/src/pages/ProtocolRegistry.tsx:68",variant:"outline",size:"sm",onClick:()=>b(),className:"border-border/50",children:[w.jsxDEV(of,{"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(Ru,{"data-loc":"client/src/pages/ProtocolRegistry.tsx:71",open:e,onOpenChange:t,children:[w.jsxDEV(kp,{"data-loc":"client/src/pages/ProtocolRegistry.tsx:72",asChild:!0,children:w.jsxDEV(xt,{"data-loc":"client/src/pages/ProtocolRegistry.tsx:73",size:"sm",className:"nac-gradient text-white",children:[w.jsxDEV(p0,{"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(ju,{"data-loc":"client/src/pages/ProtocolRegistry.tsx:75",className:"bg-card border-border/50 max-w-lg",children:[w.jsxDEV(Pu,{"data-loc":"client/src/pages/ProtocolRegistry.tsx:76",children:w.jsxDEV(Mu,{"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(Ct,{"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(C=>({...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(Ct,{"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(Or,{"data-loc":"client/src/pages/ProtocolRegistry.tsx:85",value:u.type,onValueChange:A=>c(C=>({...C,type:A})),children:[w.jsxDEV(Cr,{"data-loc":"client/src/pages/ProtocolRegistry.tsx:86",className:"bg-input border-border/50 h-9",children:w.jsxDEV(Tr,{"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(_r,{"data-loc":"client/src/pages/ProtocolRegistry.tsx:87",className:"bg-card border-border/50",children:_Se.map(A=>w.jsxDEV(Tt,{"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(Ct,{"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(C=>({...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(Ct,{"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(C=>({...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(Ct,{"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(C=>({...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(Ct,{"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(bh,{"data-loc":"client/src/pages/ProtocolRegistry.tsx:109",value:u.description,onChange:A=>c(C=>({...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(xt,{"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(Wt,{"data-loc":"client/src/pages/ProtocolRegistry.tsx:126",className:"border-border/50",children:w.jsxDEV(Zt,{"data-loc":"client/src/pages/ProtocolRegistry.tsx:127",className:"p-4 flex items-center gap-3",children:[w.jsxDEV(yp,{"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(Wt,{"data-loc":"client/src/pages/ProtocolRegistry.tsx:132",className:"border-border/50",children:w.jsxDEV(Zt,{"data-loc":"client/src/pages/ProtocolRegistry.tsx:133",className:"p-4 flex items-center gap-3",children:[w.jsxDEV(Lp,{"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:_},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(Wt,{"data-loc":"client/src/pages/ProtocolRegistry.tsx:138",className:"border-border/50",children:w.jsxDEV(Zt,{"data-loc":"client/src/pages/ProtocolRegistry.tsx:139",className:"p-4 flex items-center gap-3",children:[w.jsxDEV(h0,{"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(Wt,{"data-loc":"client/src/pages/ProtocolRegistry.tsx:150",className:"border-border/50",children:w.jsxDEV(Zt,{"data-loc":"client/src/pages/ProtocolRegistry.tsx:151",className:"p-8 text-center",children:[w.jsxDEV(yp,{"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(Wt,{"data-loc":"client/src/pages/ProtocolRegistry.tsx:159",className:"border-border/50 hover:border-primary/30 transition-colors",children:w.jsxDEV(Zt,{"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(yp,{"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(sf,{"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(xt,{"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(fq,{"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(xt,{"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 C=A.status==="active"?"disabled":A.status==="disabled"?"deprecated":"active";x.mutate({id:A._id.toString(),status:C})},disabled:x.isPending,children:[w.jsxDEV(pq,{"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(Ru,{"data-loc":"client/src/pages/ProtocolRegistry.tsx:219",open:n,onOpenChange:r,children:w.jsxDEV(ju,{"data-loc":"client/src/pages/ProtocolRegistry.tsx:220",className:"bg-card border-border/50 max-w-md",children:[w.jsxDEV(Pu,{"data-loc":"client/src/pages/ProtocolRegistry.tsx:221",children:w.jsxDEV(Mu,{"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(Ct,{"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(C=>({...C,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(Ct,{"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(C=>({...C,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(xt,{"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 _T={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 RSe(){const[e,t]=R.useState(""),[n,r]=R.useState(""),[o,s]=R.useState(1),{data:u,isLoading:c,refetch:f}=_t.rbac.auditLogs.useQuery({action:e||void 0,page:o,pageSize:20}),{data:m,isLoading:g}=_t.rbac.listUsers.useQuery({page:1,pageSize:100}),p=u?.items||[],y=u?.total||0,b=Math.ceil(y/20),S=m?.users||[],x=N=>_T[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(xt,{"data-loc":"client/src/pages/AuditLog.tsx:44",variant:"outline",size:"sm",onClick:()=>f(),className:"border-border/50",children:[w.jsxDEV(of,{"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(Wt,{"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(j3,{"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(Zt,{"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(Or,{"data-loc":"client/src/pages/AuditLog.tsx:70",value:N.role,onValueChange:T=>{},children:[w.jsxDEV(Cr,{"data-loc":"client/src/pages/AuditLog.tsx:74",className:"w-28 bg-input border-border/50 h-7 text-xs",children:w.jsxDEV(Tr,{"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(_r,{"data-loc":"client/src/pages/AuditLog.tsx:77",className:"bg-card border-border/50",children:[w.jsxDEV(Tt,{"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(Tt,{"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(Tt,{"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(Tt,{"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(Wt,{"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(_u,{"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(Zt,{"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(_u,{"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(Wt,{"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(dq,{"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(Or,{"data-loc":"client/src/pages/AuditLog.tsx:135",value:e,onValueChange:N=>{t(N==="ALL_FILTER"?"":N),s(1)},children:[w.jsxDEV(Cr,{"data-loc":"client/src/pages/AuditLog.tsx:136",className:"w-36 bg-input border-border/50 h-7 text-xs",children:w.jsxDEV(Tr,{"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(_r,{"data-loc":"client/src/pages/AuditLog.tsx:137",className:"bg-card border-border/50",children:[w.jsxDEV(Tt,{"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(_T).map(N=>w.jsxDEV(Tt,{"data-loc":"client/src/pages/AuditLog.tsx:139",value:N,children:_T[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(wae,{"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(Zt,{"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(j3,{"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(m0,{"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(xt,{"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(xt,{"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]=sD(),{t:r}=q_(),o=[{path:"/",icon:pae,label:r("nav.dashboard"),desc:r("dashboard.subtitle").slice(0,8)+"..."},{path:"/knowledge",icon:aD,label:r("nav.knowledgeBase"),desc:r("knowledgeBase.subtitle").slice(0,6)+"..."},{path:"/crawlers",icon:bae,label:r("nav.crawlers"),desc:r("crawlers.subtitle").slice(0,6)+"..."},{path:"/approvals",icon:cae,label:r("nav.approvalCases"),desc:r("approvals.subtitle").slice(0,6)+"..."},{path:"/tags",icon:mq,label:r("nav.tagEngine"),desc:r("tagEngine.subtitle").slice(0,6)+"..."},{path:"/protocols",icon:yp,label:r("nav.protocolRegistry"),desc:r("protocols.subtitle").slice(0,6)+"..."},{path:"/audit",icon:_u,label:r("nav.auditLog"),desc:r("audit.subtitle").slice(0,6)+"..."}],{data:s,isLoading:u}=_t.nacAuth.me.useQuery(void 0,{retry:!1,refetchOnWindowFocus:!1}),c=_t.nacAuth.logout.useMutation({onSuccess:()=>{n("/login"),cn.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(Lp,{"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(Kae,{"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(oae,{"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(xt,{"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(vae,{"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(I9,{"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 jSe(){return w.jsxDEV(Gae,{"data-loc":"client/src/App.tsx:19",children:[w.jsxDEV(Hi,{"data-loc":"client/src/App.tsx:20",path:"/login",component:Qse},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(REe,{"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(NSe,{"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(OSe,{"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(TSe,{"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(CSe,{"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(DSe,{"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(RSe,{"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:$3},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:$3},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 PSe(){return w.jsxDEV(Yae,{"data-loc":"client/src/App.tsx:36",children:w.jsxDEV(Xae,{"data-loc":"client/src/App.tsx:37",defaultTheme:"dark",children:w.jsxDEV(Zre,{"data-loc":"client/src/App.tsx:38",children:[w.jsxDEV(lte,{"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(jSe,{"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 MSe=()=>"/login",Xb=new JX,qK=e=>{!(e instanceof Tp)||typeof window>"u"||!(e.message===FJ)||(window.location.href=MSe())};Xb.getQueryCache().subscribe(e=>{if(e.type==="updated"&&e.action.type==="error"){const t=e.query.state.error;qK(t),console.error("[API Query Error]",t)}});Xb.getMutationCache().subscribe(e=>{if(e.type==="updated"&&e.action.type==="error"){const t=e.mutation.state.error;qK(t),console.error("[API Mutation Error]",t)}});const LSe=_t.createClient({links:[lZ({url:"/api/trpc",transformer:rs,fetch(e,t){return globalThis.fetch(e,{...t??{},credentials:"include"})}})]});WJ.createRoot(document.getElementById("root")).render(w.jsxDEV(_t.Provider,{"data-loc":"client/src/main.tsx:57",client:LSe,queryClient:Xb,children:w.jsxDEV(nW,{"data-loc":"client/src/main.tsx:58",client:Xb,children:w.jsxDEV(PSe,{"data-loc":"client/src/main.tsx:59"},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/main.tsx",lineNumber:59,columnNumber:7},void 0)},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/main.tsx",lineNumber:58,columnNumber:5},void 0)},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/main.tsx",lineNumber:57,columnNumber:3},void 0));