715 lines
1.5 MiB
715 lines
1.5 MiB
function oW(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 c of s.addedNodes)c.tagName==="LINK"&&c.rel==="modulepreload"&&r(c)}).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 cb=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function Bt(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var sE={exports:{}},ub={},lE={exports:{}},yh={exports:{}};yh.exports;var LI;function sW(){return LI||(LI=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(B,ue){Object.defineProperty(s.prototype,B,{get:function(){console.warn("%s(...) is deprecated in plain JavaScript React classes. %s",ue[0],ue[1])}})}function r(B){return B===null||typeof B!="object"?null:(B=ie&&B[ie]||B["@@iterator"],typeof B=="function"?B:null)}function o(B,ue){B=(B=B.constructor)&&(B.displayName||B.name)||"ReactClass";var Ee=B+"."+ue;ze[Ee]||(console.error("Can't call %s on a component that is not yet mounted. This is a no-op, but it might indicate a bug in your application. Instead, assign to `this.state` directly or define a `state = {};` class property with the desired state in the %s component.",ue,B),ze[Ee]=!0)}function s(B,ue,Ee){this.props=B,this.context=ue,this.refs=Ve,this.updater=Ee||Ne}function c(){}function u(B,ue,Ee){this.props=B,this.context=ue,this.refs=Ve,this.updater=Ee||Ne}function f(){}function m(B){return""+B}function g(B){try{m(B);var ue=!1}catch{ue=!0}if(ue){ue=console;var Ee=ue.error,De=typeof Symbol=="function"&&Symbol.toStringTag&&B[Symbol.toStringTag]||B.constructor.name||"Object";return Ee.call(ue,"The provided key is an unsupported type %s. This value must be coerced to a string before using it here.",De),m(B)}}function h(B){if(B==null)return null;if(typeof B=="function")return B.$$typeof===xn?null:B.displayName||B.name||null;if(typeof B=="string")return B;switch(B){case I:return"Fragment";case Y:return"Profiler";case H:return"StrictMode";case le:return"Suspense";case ye:return"SuspenseList";case de:return"Activity"}if(typeof B=="object")switch(typeof B.tag=="number"&&console.error("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),B.$$typeof){case te:return"Portal";case ge:return B.displayName||"Context";case re:return(B._context.displayName||"Context")+".Consumer";case we:var ue=B.render;return B=B.displayName,B||(B=ue.displayName||ue.name||"",B=B!==""?"ForwardRef("+B+")":"ForwardRef"),B;case me:return ue=B.displayName||null,ue!==null?ue:h(B.type)||"Memo";case xe:ue=B._payload,B=B._init;try{return h(B(ue))}catch{}}return null}function y(B){if(B===I)return"<>";if(typeof B=="object"&&B!==null&&B.$$typeof===xe)return"<...>";try{var ue=h(B);return ue?"<"+ue+">":"<...>"}catch{return"<...>"}}function x(){var B=Re.A;return B===null?null:B.getOwner()}function S(){return Error("react-stack-top-frame")}function N(B){if(ir.call(B,"key")){var ue=Object.getOwnPropertyDescriptor(B,"key").get;if(ue&&ue.isReactWarning)return!1}return B.key!==void 0}function w(B,ue){function Ee(){qn||(qn=!0,console.error("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://react.dev/link/special-props)",ue))}Ee.isReactWarning=!0,Object.defineProperty(B,"key",{get:Ee,configurable:!0})}function D(){var B=h(this.type);return vi[B]||(vi[B]=!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.")),B=this.props.ref,B!==void 0?B:null}function C(B,ue,Ee,De,Me,Je){var Se=Ee.ref;return B={$$typeof:ne,type:B,key:ue,props:Ee,_owner:De},(Se!==void 0?Se:null)!==null?Object.defineProperty(B,"ref",{enumerable:!1,get:D}):Object.defineProperty(B,"ref",{enumerable:!1,value:null}),B._store={},Object.defineProperty(B._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:0}),Object.defineProperty(B,"_debugInfo",{configurable:!1,enumerable:!1,writable:!0,value:null}),Object.defineProperty(B,"_debugStack",{configurable:!1,enumerable:!1,writable:!0,value:Me}),Object.defineProperty(B,"_debugTask",{configurable:!1,enumerable:!1,writable:!0,value:Je}),Object.freeze&&(Object.freeze(B.props),Object.freeze(B)),B}function j(B,ue){return ue=C(B.type,ue,B.props,B._owner,B._debugStack,B._debugTask),B._store&&(ue._store.validated=B._store.validated),ue}function P(B){A(B)?B._store&&(B._store.validated=1):typeof B=="object"&&B!==null&&B.$$typeof===xe&&(B._payload.status==="fulfilled"?A(B._payload.value)&&B._payload.value._store&&(B._payload.value._store.validated=1):B._store&&(B._store.validated=1))}function A(B){return typeof B=="object"&&B!==null&&B.$$typeof===ne}function T(B){var ue={"=":"=0",":":"=2"};return"$"+B.replace(/[=:]/g,function(Ee){return ue[Ee]})}function R(B,ue){return typeof B=="object"&&B!==null&&B.key!=null?(g(B.key),T(""+B.key)):ue.toString(36)}function M(B){switch(B.status){case"fulfilled":return B.value;case"rejected":throw B.reason;default:switch(typeof B.status=="string"?B.then(f,f):(B.status="pending",B.then(function(ue){B.status==="pending"&&(B.status="fulfilled",B.value=ue)},function(ue){B.status==="pending"&&(B.status="rejected",B.reason=ue)})),B.status){case"fulfilled":return B.value;case"rejected":throw B.reason}}throw B}function $(B,ue,Ee,De,Me){var Je=typeof B;(Je==="undefined"||Je==="boolean")&&(B=null);var Se=!1;if(B===null)Se=!0;else switch(Je){case"bigint":case"string":case"number":Se=!0;break;case"object":switch(B.$$typeof){case ne:case te:Se=!0;break;case xe:return Se=B._init,$(Se(B._payload),ue,Ee,De,Me)}}if(Se){Se=B,Me=Me(Se);var He=De===""?"."+R(Se,0):De;return Un(Me)?(Ee="",He!=null&&(Ee=He.replace(gs,"$&/")+"/"),$(Me,ue,Ee,"",function(zt){return zt})):Me!=null&&(A(Me)&&(Me.key!=null&&(Se&&Se.key===Me.key||g(Me.key)),Ee=j(Me,Ee+(Me.key==null||Se&&Se.key===Me.key?"":(""+Me.key).replace(gs,"$&/")+"/")+He),De!==""&&Se!=null&&A(Se)&&Se.key==null&&Se._store&&!Se._store.validated&&(Ee._store.validated=2),Me=Ee),ue.push(Me)),1}if(Se=0,He=De===""?".":De+":",Un(B))for(var Be=0;Be<B.length;Be++)De=B[Be],Je=He+R(De,Be),Se+=$(De,ue,Ee,Je,Me);else if(Be=r(B),typeof Be=="function")for(Be===B.entries&&(Fa||console.warn("Using Maps as children is not supported. Use an array of keyed ReactElements instead."),Fa=!0),B=Be.call(B),Be=0;!(De=B.next()).done;)De=De.value,Je=He+R(De,Be++),Se+=$(De,ue,Ee,Je,Me);else if(Je==="object"){if(typeof B.then=="function")return $(M(B),ue,Ee,De,Me);throw ue=String(B),Error("Objects are not valid as a React child (found: "+(ue==="[object Object]"?"object with keys {"+Object.keys(B).join(", ")+"}":ue)+"). If you meant to render a collection of children, use an array instead.")}return Se}function z(B,ue,Ee){if(B==null)return B;var De=[],Me=0;return $(B,De,"","",function(Je){return ue.call(Ee,Je,Me++)}),De}function U(B){if(B._status===-1){var ue=B._ioInfo;ue!=null&&(ue.start=ue.end=performance.now()),ue=B._result;var Ee=ue();if(Ee.then(function(Me){if(B._status===0||B._status===-1){B._status=1,B._result=Me;var Je=B._ioInfo;Je!=null&&(Je.end=performance.now()),Ee.status===void 0&&(Ee.status="fulfilled",Ee.value=Me)}},function(Me){if(B._status===0||B._status===-1){B._status=2,B._result=Me;var Je=B._ioInfo;Je!=null&&(Je.end=performance.now()),Ee.status===void 0&&(Ee.status="rejected",Ee.reason=Me)}}),ue=B._ioInfo,ue!=null){ue.value=Ee;var De=Ee.displayName;typeof De=="string"&&(ue.name=De)}B._status===-1&&(B._status=0,B._result=Ee)}if(B._status===1)return ue=B._result,ue===void 0&&console.error(`lazy: Expected the result of a dynamic import() call. Instead received: %s
|
||
|
||
Your code should look like:
|
||
const MyComponent = lazy(() => import('./MyComponent'))
|
||
|
||
Did you accidentally put curly braces around the import?`,ue),"default"in ue||console.error(`lazy: Expected the result of a dynamic import() call. Instead received: %s
|
||
|
||
Your code should look like:
|
||
const MyComponent = lazy(() => import('./MyComponent'))`,ue),ue.default;throw B._result}function V(){var B=Re.H;return B===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.`),B}function F(){Re.asyncTransitions--}function X(B){if(Ir===null)try{var ue=("require"+Math.random()).slice(0,7);Ir=(e&&e[ue]).call(e,"timers").setImmediate}catch{Ir=function(De){vs===!1&&(vs=!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=De,Me.port2.postMessage(void 0)}}return Ir(B)}function ee(B){return 1<B.length&&typeof AggregateError=="function"?new AggregateError(B):B[0]}function q(B,ue){ue!==yi-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. "),yi=ue}function Q(B,ue,Ee){var De=Re.actQueue;if(De!==null)if(De.length!==0)try{G(De),X(function(){return Q(B,ue,Ee)});return}catch(Me){Re.thrownErrors.push(Me)}else Re.actQueue=null;0<Re.thrownErrors.length?(De=ee(Re.thrownErrors),Re.thrownErrors.length=0,Ee(De)):ue(B)}function G(B){if(!yo){yo=!0;var ue=0;try{for(;ue<B.length;ue++){var Ee=B[ue];do{Re.didUsePromise=!1;var De=Ee(!1);if(De!==null){if(Re.didUsePromise){B[ue]=Ee,B.splice(0,ue);return}Ee=De}else break}while(!0)}B.length=0}catch(Me){B.splice(0,ue+1),Re.thrownErrors.push(Me)}finally{yo=!1}}}typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(Error());var ne=Symbol.for("react.transitional.element"),te=Symbol.for("react.portal"),I=Symbol.for("react.fragment"),H=Symbol.for("react.strict_mode"),Y=Symbol.for("react.profiler"),re=Symbol.for("react.consumer"),ge=Symbol.for("react.context"),we=Symbol.for("react.forward_ref"),le=Symbol.for("react.suspense"),ye=Symbol.for("react.suspense_list"),me=Symbol.for("react.memo"),xe=Symbol.for("react.lazy"),de=Symbol.for("react.activity"),ie=Symbol.iterator,ze={},Ne={isMounted:function(){return!1},enqueueForceUpdate:function(B){o(B,"forceUpdate")},enqueueReplaceState:function(B){o(B,"replaceState")},enqueueSetState:function(B){o(B,"setState")}},ut=Object.assign,Ve={};Object.freeze(Ve),s.prototype.isReactComponent={},s.prototype.setState=function(B,ue){if(typeof B!="object"&&typeof B!="function"&&B!=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,B,ue,"setState")},s.prototype.forceUpdate=function(B){this.updater.enqueueForceUpdate(this,B,"forceUpdate")};var nt={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(xi in nt)nt.hasOwnProperty(xi)&&n(xi,nt[xi]);c.prototype=s.prototype,nt=u.prototype=new c,nt.constructor=u,ut(nt,s.prototype),nt.isPureReactComponent=!0;var Un=Array.isArray,xn=Symbol.for("react.client.reference"),Re={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,St=console.createTask?console.createTask:function(){return null};nt={react_stack_bottom_frame:function(B){return B()}};var qn,kr,vi={},Yr=nt.react_stack_bottom_frame.bind(nt,S)(),bi=St(y(S)),Fa=!1,gs=/\/+/g,ba=typeof reportError=="function"?reportError:function(B){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var ue=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof B=="object"&&B!==null&&typeof B.message=="string"?String(B.message):String(B),error:B});if(!window.dispatchEvent(ue))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",B);return}console.error(B)},vs=!1,Ir=null,yi=0,bo=!1,yo=!1,xo=typeof queueMicrotask=="function"?function(B){queueMicrotask(function(){return queueMicrotask(B)})}:X;nt=Object.freeze({__proto__:null,c:function(B){return V().useMemoCache(B)}});var xi={map:z,forEach:function(B,ue,Ee){z(B,function(){ue.apply(this,arguments)},Ee)},count:function(B){var ue=0;return z(B,function(){ue++}),ue},toArray:function(B){return z(B,function(ue){return ue})||[]},only:function(B){if(!A(B))throw Error("React.Children.only expected to receive a single React element child.");return B}};t.Activity=de,t.Children=xi,t.Component=s,t.Fragment=I,t.Profiler=Y,t.PureComponent=u,t.StrictMode=H,t.Suspense=le,t.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=Re,t.__COMPILER_RUNTIME=nt,t.act=function(B){var ue=Re.actQueue,Ee=yi;yi++;var De=Re.actQueue=ue!==null?ue:[],Me=!1;try{var Je=B()}catch(Be){Re.thrownErrors.push(Be)}if(0<Re.thrownErrors.length)throw q(ue,Ee),B=ee(Re.thrownErrors),Re.thrownErrors.length=0,B;if(Je!==null&&typeof Je=="object"&&typeof Je.then=="function"){var Se=Je;return xo(function(){Me||bo||(bo=!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,zt){Me=!0,Se.then(function(yr){if(q(ue,Ee),Ee===0){try{G(De),X(function(){return Q(yr,Be,zt)})}catch(jn){Re.thrownErrors.push(jn)}if(0<Re.thrownErrors.length){var dn=ee(Re.thrownErrors);Re.thrownErrors.length=0,zt(dn)}}else Be(yr)},function(yr){q(ue,Ee),0<Re.thrownErrors.length&&(yr=ee(Re.thrownErrors),Re.thrownErrors.length=0),zt(yr)})}}}var He=Je;if(q(ue,Ee),Ee===0&&(G(De),De.length!==0&&xo(function(){Me||bo||(bo=!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(() => ...)"))}),Re.actQueue=null),0<Re.thrownErrors.length)throw B=ee(Re.thrownErrors),Re.thrownErrors.length=0,B;return{then:function(Be,zt){Me=!0,Ee===0?(Re.actQueue=De,X(function(){return Q(He,Be,zt)})):Be(He)}}},t.cache=function(B){return function(){return B.apply(null,arguments)}},t.cacheSignal=function(){return null},t.captureOwnerStack=function(){var B=Re.getCurrentStack;return B===null?null:B()},t.cloneElement=function(B,ue,Ee){if(B==null)throw Error("The argument must be a React element, but you passed "+B+".");var De=ut({},B.props),Me=B.key,Je=B._owner;if(ue!=null){var Se;e:{if(ir.call(ue,"ref")&&(Se=Object.getOwnPropertyDescriptor(ue,"ref").get)&&Se.isReactWarning){Se=!1;break e}Se=ue.ref!==void 0}Se&&(Je=x()),N(ue)&&(g(ue.key),Me=""+ue.key);for(He in ue)!ir.call(ue,He)||He==="key"||He==="__self"||He==="__source"||He==="ref"&&ue.ref===void 0||(De[He]=ue[He])}var He=arguments.length-2;if(He===1)De.children=Ee;else if(1<He){Se=Array(He);for(var Be=0;Be<He;Be++)Se[Be]=arguments[Be+2];De.children=Se}for(De=C(B.type,Me,De,Je,B._debugStack,B._debugTask),Me=2;Me<arguments.length;Me++)P(arguments[Me]);return De},t.createContext=function(B){return B={$$typeof:ge,_currentValue:B,_currentValue2:B,_threadCount:0,Provider:null,Consumer:null},B.Provider=B,B.Consumer={$$typeof:re,_context:B},B._currentRenderer=null,B._currentRenderer2=null,B},t.createElement=function(B,ue,Ee){for(var De=2;De<arguments.length;De++)P(arguments[De]);De={};var Me=null;if(ue!=null)for(Be in kr||!("__self"in ue)||"key"in ue||(kr=!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")),N(ue)&&(g(ue.key),Me=""+ue.key),ue)ir.call(ue,Be)&&Be!=="key"&&Be!=="__self"&&Be!=="__source"&&(De[Be]=ue[Be]);var Je=arguments.length-2;if(Je===1)De.children=Ee;else if(1<Je){for(var Se=Array(Je),He=0;He<Je;He++)Se[He]=arguments[He+2];Object.freeze&&Object.freeze(Se),De.children=Se}if(B&&B.defaultProps)for(Be in Je=B.defaultProps,Je)De[Be]===void 0&&(De[Be]=Je[Be]);Me&&w(De,typeof B=="function"?B.displayName||B.name||"Unknown":B);var Be=1e4>Re.recentlyCreatedOwnerStacks++;return C(B,Me,De,x(),Be?Error("react-stack-top-frame"):Yr,Be?St(y(B)):bi)},t.createRef=function(){var B={current:null};return Object.seal(B),B},t.forwardRef=function(B){B!=null&&B.$$typeof===me?console.error("forwardRef requires a render function but received a `memo` component. Instead of forwardRef(memo(...)), use memo(forwardRef(...))."):typeof B!="function"?console.error("forwardRef requires a render function but was given %s.",B===null?"null":typeof B):B.length!==0&&B.length!==2&&console.error("forwardRef render functions accept exactly two parameters: props and ref. %s",B.length===1?"Did you forget to use the ref parameter?":"Any additional parameter will be undefined."),B!=null&&B.defaultProps!=null&&console.error("forwardRef render functions do not support defaultProps. Did you accidentally pass a React component?");var ue={$$typeof:we,render:B},Ee;return Object.defineProperty(ue,"displayName",{enumerable:!1,configurable:!0,get:function(){return Ee},set:function(De){Ee=De,B.name||B.displayName||(Object.defineProperty(B,"name",{value:De}),B.displayName=De)}}),ue},t.isValidElement=A,t.lazy=function(B){B={_status:-1,_result:B};var ue={$$typeof:xe,_payload:B,_init:U},Ee={name:"lazy",start:-1,end:-1,value:null,owner:null,debugStack:Error("react-stack-top-frame"),debugTask:console.createTask?console.createTask("lazy()"):null};return B._ioInfo=Ee,ue._debugInfo=[{awaited:Ee}],ue},t.memo=function(B,ue){B==null&&console.error("memo: The first argument must be a component. Instead received: %s",B===null?"null":typeof B),ue={$$typeof:me,type:B,compare:ue===void 0?null:ue};var Ee;return Object.defineProperty(ue,"displayName",{enumerable:!1,configurable:!0,get:function(){return Ee},set:function(De){Ee=De,B.name||B.displayName||(Object.defineProperty(B,"name",{value:De}),B.displayName=De)}}),ue},t.startTransition=function(B){var ue=Re.T,Ee={};Ee._updatedFibers=new Set,Re.T=Ee;try{var De=B(),Me=Re.S;Me!==null&&Me(Ee,De),typeof De=="object"&&De!==null&&typeof De.then=="function"&&(Re.asyncTransitions++,De.then(F,F),De.then(f,ba))}catch(Je){ba(Je)}finally{ue===null&&Ee._updatedFibers&&(B=Ee._updatedFibers.size,Ee._updatedFibers.clear(),10<B&&console.warn("Detected a large number of updates inside startTransition. If this is due to a subscription please re-write it to use React provided hooks. Otherwise concurrent mode guarantees are off the table.")),ue!==null&&Ee.types!==null&&(ue.types!==null&&ue.types!==Ee.types&&console.error("We expected inner Transitions to have transferred the outer types set and that you cannot add to the outer Transition while inside the inner.This is a bug in React."),ue.types=Ee.types),Re.T=ue}},t.unstable_useCacheRefresh=function(){return V().useCacheRefresh()},t.use=function(B){return V().use(B)},t.useActionState=function(B,ue,Ee){return V().useActionState(B,ue,Ee)},t.useCallback=function(B,ue){return V().useCallback(B,ue)},t.useContext=function(B){var ue=V();return B.$$typeof===re&&console.error("Calling useContext(Context.Consumer) is not supported and will cause bugs. Did you mean to call useContext(Context) instead?"),ue.useContext(B)},t.useDebugValue=function(B,ue){return V().useDebugValue(B,ue)},t.useDeferredValue=function(B,ue){return V().useDeferredValue(B,ue)},t.useEffect=function(B,ue){return B==null&&console.warn("React Hook useEffect requires an effect callback. Did you forget to pass a callback to the hook?"),V().useEffect(B,ue)},t.useEffectEvent=function(B){return V().useEffectEvent(B)},t.useId=function(){return V().useId()},t.useImperativeHandle=function(B,ue,Ee){return V().useImperativeHandle(B,ue,Ee)},t.useInsertionEffect=function(B,ue){return B==null&&console.warn("React Hook useInsertionEffect requires an effect callback. Did you forget to pass a callback to the hook?"),V().useInsertionEffect(B,ue)},t.useLayoutEffect=function(B,ue){return B==null&&console.warn("React Hook useLayoutEffect requires an effect callback. Did you forget to pass a callback to the hook?"),V().useLayoutEffect(B,ue)},t.useMemo=function(B,ue){return V().useMemo(B,ue)},t.useOptimistic=function(B,ue){return V().useOptimistic(B,ue)},t.useReducer=function(B,ue,Ee){return V().useReducer(B,ue,Ee)},t.useRef=function(B){return V().useRef(B)},t.useState=function(B){return V().useState(B)},t.useSyncExternalStore=function(B,ue,Ee){return V().useSyncExternalStore(B,ue,Ee)},t.useTransition=function(){return V().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())})()})(yh,yh.exports)),yh.exports}var VI;function df(){return VI||(VI=1,lE.exports=sW()),lE.exports}var $I;function lW(){if($I)return ub;$I=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===U?null:I.displayName||I.name||null;if(typeof I=="string")return I;switch(I){case w:return"Fragment";case C:return"Profiler";case D:return"StrictMode";case T:return"Suspense";case R:return"SuspenseList";case z: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 N:return"Portal";case P:return I.displayName||"Context";case j:return(I._context.displayName||"Context")+".Consumer";case A:var H=I.render;return I=I.displayName,I||(I=H.displayName||H.name||"",I=I!==""?"ForwardRef("+I+")":"ForwardRef"),I;case M:return H=I.displayName||null,H!==null?H:e(I.type)||"Memo";case $:H=I._payload,I=I._init;try{return e(I(H))}catch{}}return null}function t(I){return""+I}function n(I){try{t(I);var H=!1}catch{H=!0}if(H){H=console;var Y=H.error,re=typeof Symbol=="function"&&Symbol.toStringTag&&I[Symbol.toStringTag]||I.constructor.name||"Object";return Y.call(H,"The provided key is an unsupported type %s. This value must be coerced to a string before using it here.",re),t(I)}}function r(I){if(I===w)return"<>";if(typeof I=="object"&&I!==null&&I.$$typeof===$)return"<...>";try{var H=e(I);return H?"<"+H+">":"<...>"}catch{return"<...>"}}function o(){var I=V.A;return I===null?null:I.getOwner()}function s(){return Error("react-stack-top-frame")}function c(I){if(F.call(I,"key")){var H=Object.getOwnPropertyDescriptor(I,"key").get;if(H&&H.isReactWarning)return!1}return I.key!==void 0}function u(I,H){function Y(){q||(q=!0,console.error("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://react.dev/link/special-props)",H))}Y.isReactWarning=!0,Object.defineProperty(I,"key",{get:Y,configurable:!0})}function f(){var I=e(this.type);return Q[I]||(Q[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,H,Y,re,ge,we){var le=Y.ref;return I={$$typeof:S,type:I,key:H,props:Y,_owner:re},(le!==void 0?le: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:we}),Object.freeze&&(Object.freeze(I.props),Object.freeze(I)),I}function g(I,H,Y,re,ge,we){var le=H.children;if(le!==void 0)if(re)if(X(le)){for(re=0;re<le.length;re++)h(le[re]);Object.freeze&&Object.freeze(le)}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 h(le);if(F.call(H,"key")){le=e(I);var ye=Object.keys(H).filter(function(xe){return xe!=="key"});re=0<ye.length?"{key: someKey, "+ye.join(": ..., ")+": ...}":"{key: someKey}",te[le+re]||(ye=0<ye.length?"{"+ye.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} />`,re,le,ye,le),te[le+re]=!0)}if(le=null,Y!==void 0&&(n(Y),le=""+Y),c(H)&&(n(H.key),le=""+H.key),"key"in H){Y={};for(var me in H)me!=="key"&&(Y[me]=H[me])}else Y=H;return le&&u(Y,typeof I=="function"?I.displayName||I.name||"Unknown":I),m(I,le,Y,o(),ge,we)}function h(I){y(I)?I._store&&(I._store.validated=1):typeof I=="object"&&I!==null&&I.$$typeof===$&&(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 x=df(),S=Symbol.for("react.transitional.element"),N=Symbol.for("react.portal"),w=Symbol.for("react.fragment"),D=Symbol.for("react.strict_mode"),C=Symbol.for("react.profiler"),j=Symbol.for("react.consumer"),P=Symbol.for("react.context"),A=Symbol.for("react.forward_ref"),T=Symbol.for("react.suspense"),R=Symbol.for("react.suspense_list"),M=Symbol.for("react.memo"),$=Symbol.for("react.lazy"),z=Symbol.for("react.activity"),U=Symbol.for("react.client.reference"),V=x.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,F=Object.prototype.hasOwnProperty,X=Array.isArray,ee=console.createTask?console.createTask:function(){return null};x={react_stack_bottom_frame:function(I){return I()}};var q,Q={},G=x.react_stack_bottom_frame.bind(x,s)(),ne=ee(r(s)),te={};ub.Fragment=w,ub.jsxDEV=function(I,H,Y,re){var ge=1e4>V.recentlyCreatedOwnerStacks++;return g(I,H,Y,re,ge?Error("react-stack-top-frame"):G,ge?ee(r(I)):ne)}})(),ub}var BI;function cW(){return BI||(BI=1,sE.exports=lW()),sE.exports}var b=cW(),Wc=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(){}},uW={setTimeout:(e,t)=>setTimeout(e,t),clearTimeout:e=>clearTimeout(e),setInterval:(e,t)=>setInterval(e,t),clearInterval:e=>clearInterval(e)},dW=class{#t=uW;#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)}},Nc=new dW;function fW(e){setTimeout(e,0)}var _c=typeof window>"u"||"Deno"in globalThis;function dr(){}function mW(e,t){return typeof e=="function"?e(t):e}function QD(e){return typeof e=="number"&&e>=0&&e!==1/0}function R8(e,t){return Math.max(e+(t||0)-Date.now(),0)}function fl(e,t){return typeof e=="function"?e(t):e}function La(e,t){return typeof e=="function"?e(t):e}function zI(e,t){const{type:n="all",exact:r,fetchStatus:o,predicate:s,queryKey:c,stale:u}=e;if(c){if(r){if(t.queryHash!==o_(c,t.options))return!1}else if(!Ih(t.queryKey,c))return!1}if(n!=="all"){const f=t.isActive();if(n==="active"&&!f||n==="inactive"&&f)return!1}return!(typeof u=="boolean"&&t.isStale()!==u||o&&o!==t.state.fetchStatus||s&&!s(t))}function UI(e,t){const{exact:n,status:r,predicate:o,mutationKey:s}=e;if(s){if(!t.options.mutationKey)return!1;if(n){if(hl(t.options.mutationKey)!==hl(s))return!1}else if(!Ih(t.options.mutationKey,s))return!1}return!(r&&t.state.status!==r||o&&!o(t))}function o_(e,t){return(t?.queryKeyHashFn||hl)(e)}function hl(e){return JSON.stringify(e,(t,n)=>XD(n)?Object.keys(n).sort().reduce((r,o)=>(r[o]=n[o],r),{}):n)}function Ih(e,t){return e===t?!0:typeof e!=typeof t?!1:e&&t&&typeof e=="object"&&typeof t=="object"?Object.keys(t).every(n=>Ih(e[n],t[n])):!1}var hW=Object.prototype.hasOwnProperty;function Xb(e,t){if(e===t)return e;const n=qI(e)&&qI(t);if(!n&&!(XD(e)&&XD(t)))return t;const o=(n?e:Object.keys(e)).length,s=n?t:Object.keys(t),c=s.length,u=n?new Array(c):{};let f=0;for(let m=0;m<c;m++){const g=n?m:s[m],h=e[g],y=t[g];if(h===y){u[g]=h,(n?m<o:hW.call(e,g))&&f++;continue}if(h===null||y===null||typeof h!="object"||typeof y!="object"){u[g]=y;continue}const x=Xb(h,y);u[g]=x,x===h&&f++}return o===c&&f===o?e:u}function Lh(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 qI(e){return Array.isArray(e)&&e.length===Object.keys(e).length}function XD(e){if(!HI(e))return!1;const t=e.constructor;if(t===void 0)return!0;const n=t.prototype;return!(!HI(n)||!n.hasOwnProperty("isPrototypeOf")||Object.getPrototypeOf(e)!==Object.prototype)}function HI(e){return Object.prototype.toString.call(e)==="[object Object]"}function pW(e){return new Promise(t=>{Nc.setTimeout(t,e)})}function WD(e,t,n){if(typeof n.structuralSharing=="function")return n.structuralSharing(e,t);if(n.structuralSharing!==!1){try{return Xb(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 Xb(e,t)}return t}function gW(e,t,n=0){const r=[...e,t];return n&&r.length>n?r.slice(1):r}function vW(e,t,n=0){const r=[t,...e];return n&&r.length>n?r.slice(0,-1):r}var ar=Symbol();function P8(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 M8(e,t){return typeof e=="function"?e(...t):!!e}var bW=class extends Wc{#t;#e;#n;constructor(){super(),this.#n=e=>{if(!_c&&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"}},s_=new bW;function ZD(){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 yW=fW;function xW(){let e=[],t=0,n=u=>{u()},r=u=>{u()},o=yW;const s=u=>{t?e.push(u):o(()=>{n(u)})},c=()=>{const u=e;e=[],u.length&&o(()=>{r(()=>{u.forEach(f=>{n(f)})})})};return{batch:u=>{let f;t++;try{f=u()}finally{t--,t||c()}return f},batchCalls:u=>(...f)=>{s(()=>{u(...f)})},schedule:s,setNotifyFunction:u=>{n=u},setBatchNotifyFunction:u=>{r=u},setScheduler:u=>{o=u}}}var pn=xW(),NW=class extends Wc{#t=!0;#e;#n;constructor(){super(),this.#n=e=>{if(!_c&&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}},Wb=new NW;function wW(e){return Math.min(1e3*2**e,3e4)}function k8(e){return(e??"online")==="online"?Wb.isOnline():!0}var JD=class extends Error{constructor(e){super("CancelledError"),this.revert=e?.revert,this.silent=e?.silent}};function I8(e){let t=!1,n=0,r;const o=ZD(),s=()=>o.status!=="pending",c=N=>{if(!s()){const w=new JD(N);y(w),e.onCancel?.(w)}},u=()=>{t=!0},f=()=>{t=!1},m=()=>s_.isFocused()&&(e.networkMode==="always"||Wb.isOnline())&&e.canRun(),g=()=>k8(e.networkMode)&&e.canRun(),h=N=>{s()||(r?.(),o.resolve(N))},y=N=>{s()||(r?.(),o.reject(N))},x=()=>new Promise(N=>{r=w=>{(s()||m())&&N(w)},e.onPause?.()}).then(()=>{r=void 0,s()||e.onContinue?.()}),S=()=>{if(s())return;let N;const w=n===0?e.initialPromise:void 0;try{N=w??e.fn()}catch(D){N=Promise.reject(D)}Promise.resolve(N).then(h).catch(D=>{if(s())return;const C=e.retry??(_c?0:3),j=e.retryDelay??wW,P=typeof j=="function"?j(n,D):j,A=C===!0||typeof C=="number"&&n<C||typeof C=="function"&&C(n,D);if(t||!A){y(D);return}n++,e.onFail?.(n,D),pW(P).then(()=>m()?void 0:x()).then(()=>{t?y(D):S()})})};return{promise:o,status:()=>o.status,cancel:c,continue:()=>(r?.(),o),cancelRetry:u,continueRetry:f,canStart:g,start:()=>(g()?S():x().then(S),o)}}var L8=class{#t;destroy(){this.clearGcTimeout()}scheduleGc(){this.clearGcTimeout(),QD(this.gcTime)&&(this.#t=Nc.setTimeout(()=>{this.optionalRemove()},this.gcTime))}updateGcTime(e){this.gcTime=Math.max(this.gcTime||0,e??(_c?1/0:300*1e3))}clearGcTimeout(){this.#t&&(Nc.clearTimeout(this.#t),this.#t=void 0)}},EW=class extends L8{#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=FI(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=FI(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=WD(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=>La(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=>fl(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:!R8(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 u=this.observers.find(f=>f.options.queryFn);u&&this.setOptions(u.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=u=>{Object.defineProperty(u,"signal",{enumerable:!0,get:()=>(this.#s=!0,n.signal)})},o=()=>{const u=P8(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(u,m,this):u(m)},c=(()=>{const u={fetchOptions:t,options:this.options,queryKey:this.queryKey,client:this.#a,state:this.state,fetchFn:o};return r(u),u})();this.options.behavior?.onFetch(c,this),this.#e=this.state,(this.state.fetchStatus==="idle"||this.state.fetchMeta!==c.fetchOptions?.meta)&&this.#o({type:"fetch",meta:c.fetchOptions?.meta}),this.#r=I8({initialPromise:t?.initialPromise,fn:c.fetchFn,onCancel:u=>{u instanceof JD&&u.revert&&this.setState({...this.#e,fetchStatus:"idle"}),n.abort()},onFail:(u,f)=>{this.#o({type:"failed",failureCount:u,error:f})},onPause:()=>{this.#o({type:"pause"})},onContinue:()=>{this.#o({type:"continue"})},retry:c.options.retry,retryDelay:c.options.retryDelay,networkMode:c.options.networkMode,canRun:()=>!0});try{const u=await this.#r.start();if(u===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(u),this.#n.config.onSuccess?.(u,this),this.#n.config.onSettled?.(u,this.state.error,this),u}catch(u){if(u instanceof JD){if(u.silent)return this.#r.promise;if(u.revert){if(this.state.data===void 0)throw u;return this.state.data}}throw this.#o({type:"error",error:u}),this.#n.config.onError?.(u,this),this.#n.config.onSettled?.(this.state.data,u,this),u}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,...V8(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),pn.batch(()=>{this.observers.forEach(n=>{n.onQueryUpdate()}),this.#n.notify({query:this,type:"updated",action:e})})}};function V8(e,t){return{fetchFailureCount:0,fetchFailureReason:null,fetchStatus:k8(t.networkMode)?"fetching":"paused",...e===void 0&&{error:null,status:"pending"}}}function FI(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 _p=class extends Wc{constructor(e,t){super(),this.options=t,this.#t=e,this.#o=null,this.#s=ZD(),this.bindMethods(),this.setOptions(t)}#t;#e=void 0;#n=void 0;#a=void 0;#r;#i;#s;#o;#m;#d;#f;#c;#u;#l;#p=new Set;bindMethods(){this.refetch=this.refetch.bind(this)}onSubscribe(){this.listeners.size===1&&(this.#e.addObserver(this),KI(this.#e,this.options)?this.#h():this.updateResult(),this.#y())}onUnsubscribe(){this.hasListeners()||this.destroy()}shouldFetchOnReconnect(){return eC(this.#e,this.options,this.options.refetchOnReconnect)}shouldFetchOnWindowFocus(){return eC(this.#e,this.options,this.options.refetchOnWindowFocus)}destroy(){this.listeners=new Set,this.#x(),this.#N(),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 La(this.options.enabled,this.#e)!="boolean")throw new Error("Expected enabled to be a boolean or a callback that returns a boolean");this.#w(),this.#e.setOptions(this.options),t._defaulted&&!Lh(this.options,t)&&this.#t.getQueryCache().notify({type:"observerOptionsUpdated",query:this.#e,observer:this});const r=this.hasListeners();r&&GI(this.#e,n,this.options,t)&&this.#h(),this.updateResult(),r&&(this.#e!==n||La(this.options.enabled,this.#e)!==La(t.enabled,this.#e)||fl(this.options.staleTime,this.#e)!==fl(t.staleTime,this.#e))&&this.#g();const o=this.#v();r&&(this.#e!==n||La(this.options.enabled,this.#e)!==La(t.enabled,this.#e)||o!==this.#l)&&this.#b(o)}getOptimisticResult(e){const t=this.#t.getQueryCache().build(this.#t,e),n=this.createResult(t,e);return AW(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.#p.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.#h({...e,cancelRefetch:e.cancelRefetch??!0}).then(()=>(this.updateResult(),this.#a))}#h(e){this.#w();let t=this.#e.fetch(this.options,e);return e?.throwOnError||(t=t.catch(dr)),t}#g(){this.#x();const e=fl(this.options.staleTime,this.#e);if(_c||this.#a.isStale||!QD(e))return;const n=R8(this.#a.dataUpdatedAt,e)+1;this.#c=Nc.setTimeout(()=>{this.#a.isStale||this.updateResult()},n)}#v(){return(typeof this.options.refetchInterval=="function"?this.options.refetchInterval(this.#e):this.options.refetchInterval)??!1}#b(e){this.#N(),this.#l=e,!(_c||La(this.options.enabled,this.#e)===!1||!QD(this.#l)||this.#l===0)&&(this.#u=Nc.setInterval(()=>{(this.options.refetchIntervalInBackground||s_.isFocused())&&this.#h()},this.#l))}#y(){this.#g(),this.#b(this.#v())}#x(){this.#c&&(Nc.clearTimeout(this.#c),this.#c=void 0)}#N(){this.#u&&(Nc.clearInterval(this.#u),this.#u=void 0)}createResult(e,t){const n=this.#e,r=this.options,o=this.#a,s=this.#r,c=this.#i,f=e!==n?e.state:this.#n,{state:m}=e;let g={...m},h=!1,y;if(t._optimisticResults){const M=this.hasListeners(),$=!M&&KI(e,t),z=M&&GI(e,n,t,r);($||z)&&(g={...g,...V8(m.data,e.options)}),t._optimisticResults==="isRestoring"&&(g.fetchStatus="idle")}let{error:x,errorUpdatedAt:S,status:N}=g;y=g.data;let w=!1;if(t.placeholderData!==void 0&&y===void 0&&N==="pending"){let M;o?.isPlaceholderData&&t.placeholderData===c?.placeholderData?(M=o.data,w=!0):M=typeof t.placeholderData=="function"?t.placeholderData(this.#f?.state.data,this.#f):t.placeholderData,M!==void 0&&(N="success",y=WD(o?.data,M,t),h=!0)}if(t.select&&y!==void 0&&!w)if(o&&y===s?.data&&t.select===this.#m)y=this.#d;else try{this.#m=t.select,y=t.select(y),y=WD(o?.data,y,t),this.#d=y,this.#o=null}catch(M){this.#o=M}this.#o&&(x=this.#o,y=this.#d,S=Date.now(),N="error");const D=g.fetchStatus==="fetching",C=N==="pending",j=N==="error",P=C&&D,A=y!==void 0,R={status:N,fetchStatus:g.fetchStatus,isPending:C,isSuccess:N==="success",isError:j,isInitialLoading:P,isLoading:P,data:y,dataUpdatedAt:g.dataUpdatedAt,error:x,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:D,isRefetching:D&&!C,isLoadingError:j&&!A,isPaused:g.fetchStatus==="paused",isPlaceholderData:h,isRefetchError:j&&A,isStale:l_(e,t),refetch:this.refetch,promise:this.#s,isEnabled:La(t.enabled,e)!==!1};if(this.options.experimental_prefetchInRender){const M=U=>{R.status==="error"?U.reject(R.error):R.data!==void 0&&U.resolve(R.data)},$=()=>{const U=this.#s=R.promise=ZD();M(U)},z=this.#s;switch(z.status){case"pending":e.queryHash===n.queryHash&&M(z);break;case"fulfilled":(R.status==="error"||R.data!==z.value)&&$();break;case"rejected":(R.status!=="error"||R.error!==z.reason)&&$();break}}return R}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),Lh(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.#p.size)return!0;const s=new Set(o??this.#p);return this.options.throwOnError&&s.add("error"),Object.keys(this.#a).some(c=>{const u=c;return this.#a[u]!==e[u]&&s.has(u)})};this.#E({listeners:n()})}#w(){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.#y()}#E(e){pn.batch(()=>{e.listeners&&this.listeners.forEach(t=>{t(this.#a)}),this.#t.getQueryCache().notify({query:this.#e,type:"observerResultsUpdated"})})}};function SW(e,t){return La(t.enabled,e)!==!1&&e.state.data===void 0&&!(e.state.status==="error"&&t.retryOnMount===!1)}function KI(e,t){return SW(e,t)||e.state.data!==void 0&&eC(e,t,t.refetchOnMount)}function eC(e,t,n){if(La(t.enabled,e)!==!1&&fl(t.staleTime,e)!=="static"){const r=typeof n=="function"?n(e):n;return r==="always"||r!==!1&&l_(e,t)}return!1}function GI(e,t,n,r){return(e!==t||La(r.enabled,e)===!1)&&(!n.suspense||e.state.status!=="error")&&l_(e,n)}function l_(e,t){return La(t.enabled,e)!==!1&&e.isStaleByTime(fl(t.staleTime,e))}function AW(e,t){return!Lh(e.getCurrentResult(),t)}function Zb(e){return{onFetch:(t,n)=>{const r=t.options,o=t.fetchOptions?.meta?.fetchMore?.direction,s=t.state.data?.pages||[],c=t.state.data?.pageParams||[];let u={pages:[],pageParams:[]},f=0;const m=async()=>{let g=!1;const h=S=>{Object.defineProperty(S,"signal",{enumerable:!0,get:()=>(t.signal.aborted?g=!0:t.signal.addEventListener("abort",()=>{g=!0}),t.signal)})},y=P8(t.options,t.fetchOptions),x=async(S,N,w)=>{if(g)return Promise.reject();if(N==null&&S.pages.length)return Promise.resolve(S);const C=(()=>{const T={client:t.client,queryKey:t.queryKey,pageParam:N,direction:w?"backward":"forward",meta:t.options.meta};return h(T),T})(),j=await y(C),{maxPages:P}=t.options,A=w?vW:gW;return{pages:A(S.pages,j,P),pageParams:A(S.pageParams,N,P)}};if(o&&s.length){const S=o==="backward",N=S?$8:tC,w={pages:s,pageParams:c},D=N(r,w);u=await x(w,D,S)}else{const S=e??s.length;do{const N=f===0?c[0]??r.initialPageParam:tC(r,u);if(f>0&&N==null)break;u=await x(u,N),f++}while(f<S)}return u};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 tC(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 $8(e,{pages:t,pageParams:n}){return t.length>0?e.getPreviousPageParam?.(t[0],t,n[0],n):void 0}function OW(e,t){return t?tC(e,t)!=null:!1}function DW(e,t){return!t||!e.getPreviousPageParam?!1:$8(e,t)!=null}var B8=class extends _p{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:Zb()})}getOptimisticResult(e){return e.behavior=Zb(),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:c,isRefetchError:u}=r,f=n.fetchMeta?.fetchMore?.direction,m=c&&f==="forward",g=o&&f==="forward",h=c&&f==="backward",y=o&&f==="backward";return{...r,fetchNextPage:this.fetchNextPage,fetchPreviousPage:this.fetchPreviousPage,hasNextPage:OW(t,n.data),hasPreviousPage:DW(t,n.data),isFetchNextPageError:m,isFetchingNextPage:g,isFetchPreviousPageError:h,isFetchingPreviousPage:y,isRefetchError:u&&!m&&!h,isRefetching:s&&!g&&!y}}},CW=class extends L8{#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||z8(),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=I8({fn:()=>this.options.mutationFn?this.options.mutationFn(e,n):Promise.reject(new Error("No mutationFn found")),onFail:(s,c)=>{this.#r({type:"failed",failureCount:s,error:c})},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 c=await this.options.onMutate?.(e,n);c!==this.state.context&&this.#r({type:"pending",context:c,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),pn.batch(()=>{this.#e.forEach(n=>{n.onMutationUpdate(e)}),this.#n.notify({mutation:this,type:"updated",action:e})})}};function z8(){return{context:void 0,data:void 0,error:null,failureCount:0,failureReason:null,isPaused:!1,status:"idle",variables:void 0,submittedAt:0}}var TW=class extends Wc{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 CW({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=db(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=db(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=db(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=db(e);return typeof t=="string"?this.#e.get(t)?.find(r=>r!==e&&r.state.isPaused)?.continue()??Promise.resolve():Promise.resolve()}clear(){pn.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=>UI(t,n))}findAll(e={}){return this.getAll().filter(t=>UI(e,t))}notify(e){pn.batch(()=>{this.listeners.forEach(t=>{t(e)})})}resumePausedMutations(){const e=this.getAll().filter(t=>t.state.isPaused);return pn.batch(()=>Promise.all(e.map(t=>t.continue().catch(dr))))}};function db(e){return e.options.scope?.id}var _W=class extends Wc{#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),Lh(this.options,n)||this.#t.getMutationCache().notify({type:"observerOptionsUpdated",mutation:this.#n,observer:this}),n?.mutationKey&&this.options.mutationKey&&hl(n.mutationKey)!==hl(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??z8();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){pn.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 YI(e,t){const n=new Set(t);return e.filter(r=>!n.has(r))}function jW(e,t,n){const r=e.slice(0);return r[t]=n,r}var RW=class extends Wc{#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.#u(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.")}pn.batch(()=>{const n=this.#r,r=this.#c(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()),c=n.length!==o.length,u=o.some((g,h)=>g!==n[h]),f=c||u,m=f?!0:s.some((g,h)=>{const y=this.#e[h];return!y||!Lh(g,y)});!f&&!m||(f&&(this.#r=o),this.#e=s,this.hasListeners()&&(f&&(YI(n,o).forEach(g=>{g.destroy()}),YI(o,n).forEach(g=>{g.subscribe(h=>{this.#u(g,h)})})),this.#l()))})}getCurrentResult(){return this.#e}getQueries(){return this.#r.map(e=>e.getCurrentQuery())}getObservers(){return this.#r}getOptimisticResult(e,t){const n=this.#c(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(c=>{c.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=Xb(this.#i,t(e))),this.#i):e}#c(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 _p(this.#t,o)})}),n}#u(e,t){const n=this.#r.indexOf(e);n!==-1&&(this.#e=jW(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&&pn.batch(()=>{this.listeners.forEach(r=>{r(this.#e)})})}}},PW=class extends Wc{constructor(e={}){super(),this.config=e,this.#t=new Map}#t;build(e,t,n){const r=t.queryKey,o=t.queryHash??o_(r,t);let s=this.get(o);return s||(s=new EW({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(){pn.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=>zI(t,n))}findAll(e={}){const t=this.getAll();return Object.keys(e).length>0?t.filter(n=>zI(e,n)):t}notify(e){pn.batch(()=>{this.listeners.forEach(t=>{t(e)})})}onFocus(){pn.batch(()=>{this.getAll().forEach(e=>{e.onFocus()})})}onOnline(){pn.batch(()=>{this.getAll().forEach(e=>{e.onOnline()})})}},MW=class{#t;#e;#n;#a;#r;#i;#s;#o;constructor(e={}){this.#t=e.queryCache||new PW,this.#e=e.mutationCache||new TW,this.#n=e.defaultOptions||{},this.#a=new Map,this.#r=new Map,this.#i=0}mount(){this.#i++,this.#i===1&&(this.#s=s_.subscribe(async e=>{e&&(await this.resumePausedMutations(),this.#t.onFocus())}),this.#o=Wb.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(fl(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,c=mW(t,s);if(c!==void 0)return this.#t.build(this,r).setData(c,{...n,manual:!0})}setQueriesData(e,t,n){return pn.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;pn.batch(()=>{t.findAll(e).forEach(n=>{t.remove(n)})})}resetQueries(e,t){const n=this.#t;return pn.batch(()=>(n.findAll(e).forEach(r=>{r.reset()}),this.refetchQueries({type:"active",...e},t)))}cancelQueries(e,t={}){const n={revert:!0,...t},r=pn.batch(()=>this.#t.findAll(e).map(o=>o.cancel(n)));return Promise.all(r).then(dr).catch(dr)}invalidateQueries(e,t={}){return pn.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=pn.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(fl(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=Zb(e.pages),this.fetchQuery(e)}prefetchInfiniteQuery(e){return this.fetchInfiniteQuery(e).then(dr).catch(dr)}ensureInfiniteQueryData(e){return e.behavior=Zb(e.pages),this.ensureQueryData(e)}resumePausedMutations(){return Wb.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(hl(e),{queryKey:e,defaultOptions:t})}getQueryDefaults(e){const t=[...this.#a.values()],n={};return t.forEach(r=>{Ih(e,r.queryKey)&&Object.assign(n,r.defaultOptions)}),n}setMutationDefaults(e,t){this.#r.set(hl(e),{mutationKey:e,defaultOptions:t})}getMutationDefaults(e){const t=[...this.#r.values()],n={};return t.forEach(r=>{Ih(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=o_(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()}},_=df();const K=Bt(_),fx=oW({__proto__:null,default:K},[_]);var cE={exports:{}},ih={},QI;function kW(){if(QI)return ih;QI=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===U?null:I.displayName||I.name||null;if(typeof I=="string")return I;switch(I){case w:return"Fragment";case C:return"Profiler";case D:return"StrictMode";case T:return"Suspense";case R:return"SuspenseList";case z: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 N:return"Portal";case P:return I.displayName||"Context";case j:return(I._context.displayName||"Context")+".Consumer";case A:var H=I.render;return I=I.displayName,I||(I=H.displayName||H.name||"",I=I!==""?"ForwardRef("+I+")":"ForwardRef"),I;case M:return H=I.displayName||null,H!==null?H:e(I.type)||"Memo";case $:H=I._payload,I=I._init;try{return e(I(H))}catch{}}return null}function t(I){return""+I}function n(I){try{t(I);var H=!1}catch{H=!0}if(H){H=console;var Y=H.error,re=typeof Symbol=="function"&&Symbol.toStringTag&&I[Symbol.toStringTag]||I.constructor.name||"Object";return Y.call(H,"The provided key is an unsupported type %s. This value must be coerced to a string before using it here.",re),t(I)}}function r(I){if(I===w)return"<>";if(typeof I=="object"&&I!==null&&I.$$typeof===$)return"<...>";try{var H=e(I);return H?"<"+H+">":"<...>"}catch{return"<...>"}}function o(){var I=V.A;return I===null?null:I.getOwner()}function s(){return Error("react-stack-top-frame")}function c(I){if(F.call(I,"key")){var H=Object.getOwnPropertyDescriptor(I,"key").get;if(H&&H.isReactWarning)return!1}return I.key!==void 0}function u(I,H){function Y(){q||(q=!0,console.error("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://react.dev/link/special-props)",H))}Y.isReactWarning=!0,Object.defineProperty(I,"key",{get:Y,configurable:!0})}function f(){var I=e(this.type);return Q[I]||(Q[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,H,Y,re,ge,we){var le=Y.ref;return I={$$typeof:S,type:I,key:H,props:Y,_owner:re},(le!==void 0?le: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:we}),Object.freeze&&(Object.freeze(I.props),Object.freeze(I)),I}function g(I,H,Y,re,ge,we){var le=H.children;if(le!==void 0)if(re)if(X(le)){for(re=0;re<le.length;re++)h(le[re]);Object.freeze&&Object.freeze(le)}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 h(le);if(F.call(H,"key")){le=e(I);var ye=Object.keys(H).filter(function(xe){return xe!=="key"});re=0<ye.length?"{key: someKey, "+ye.join(": ..., ")+": ...}":"{key: someKey}",te[le+re]||(ye=0<ye.length?"{"+ye.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} />`,re,le,ye,le),te[le+re]=!0)}if(le=null,Y!==void 0&&(n(Y),le=""+Y),c(H)&&(n(H.key),le=""+H.key),"key"in H){Y={};for(var me in H)me!=="key"&&(Y[me]=H[me])}else Y=H;return le&&u(Y,typeof I=="function"?I.displayName||I.name||"Unknown":I),m(I,le,Y,o(),ge,we)}function h(I){y(I)?I._store&&(I._store.validated=1):typeof I=="object"&&I!==null&&I.$$typeof===$&&(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 x=df(),S=Symbol.for("react.transitional.element"),N=Symbol.for("react.portal"),w=Symbol.for("react.fragment"),D=Symbol.for("react.strict_mode"),C=Symbol.for("react.profiler"),j=Symbol.for("react.consumer"),P=Symbol.for("react.context"),A=Symbol.for("react.forward_ref"),T=Symbol.for("react.suspense"),R=Symbol.for("react.suspense_list"),M=Symbol.for("react.memo"),$=Symbol.for("react.lazy"),z=Symbol.for("react.activity"),U=Symbol.for("react.client.reference"),V=x.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,F=Object.prototype.hasOwnProperty,X=Array.isArray,ee=console.createTask?console.createTask:function(){return null};x={react_stack_bottom_frame:function(I){return I()}};var q,Q={},G=x.react_stack_bottom_frame.bind(x,s)(),ne=ee(r(s)),te={};ih.Fragment=w,ih.jsx=function(I,H,Y){var re=1e4>V.recentlyCreatedOwnerStacks++;return g(I,H,Y,!1,re?Error("react-stack-top-frame"):G,re?ee(r(I)):ne)},ih.jsxs=function(I,H,Y){var re=1e4>V.recentlyCreatedOwnerStacks++;return g(I,H,Y,!0,re?Error("react-stack-top-frame"):G,re?ee(r(I)):ne)}})(),ih}var XI;function IW(){return XI||(XI=1,cE.exports=kW()),cE.exports}var ce=IW(),U8=_.createContext(void 0),jp=e=>{const t=_.useContext(U8);if(e)return e;if(!t)throw new Error("No QueryClient set, use QueryClientProvider to set one");return t},LW=({client:e,children:t})=>(_.useEffect(()=>(e.mount(),()=>{e.unmount()}),[e]),ce.jsx(U8.Provider,{value:e,children:t})),q8=_.createContext(!1),H8=()=>_.useContext(q8);q8.Provider;function VW(){let e=!1;return{clearReset:()=>{e=!1},reset:()=>{e=!0},isReset:()=>e}}var $W=_.createContext(VW()),F8=()=>_.useContext($W),K8=(e,t)=>{(e.suspense||e.throwOnError||e.experimental_prefetchInRender)&&(t.isReset()||(e.retryOnMount=!1))},G8=e=>{_.useEffect(()=>{e.clearReset()},[e])},Y8=({result:e,errorResetBoundary:t,throwOnError:n,query:r,suspense:o})=>e.isError&&!t.isReset()&&!e.isFetching&&r&&(o&&e.data===void 0||M8(n,[e.error,r])),c_=(e,t)=>t.state.data===void 0,Q8=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))}},X8=(e,t)=>e.isLoading&&e.isFetching&&!t,nC=(e,t)=>e?.suspense&&t.isPending,Jb=(e,t,n)=>t.fetchOptimistic(e).catch(()=>{n.clearReset()});function W8({queries:e,...t},n){const r=jp(n),o=H8(),s=F8(),c=_.useMemo(()=>e.map(N=>{const w=r.defaultQueryOptions(N);return w._optimisticResults=o?"isRestoring":"optimistic",w}),[e,r,o]);c.forEach(N=>{Q8(N),K8(N,s)}),G8(s);const[u]=_.useState(()=>new RW(r,c,t)),[f,m,g]=u.getOptimisticResult(c,t.combine),h=!o&&t.subscribed!==!1;_.useSyncExternalStore(_.useCallback(N=>h?u.subscribe(pn.batchCalls(N)):dr,[u,h]),()=>u.getCurrentResult(),()=>u.getCurrentResult()),_.useEffect(()=>{u.setQueries(c,t)},[c,t,u]);const x=f.some((N,w)=>nC(c[w],N))?f.flatMap((N,w)=>{const D=c[w];if(D){const C=new _p(r,D);if(nC(D,N))return Jb(D,C,s);X8(N,o)&&Jb(D,C,s)}return[]}):[];if(x.length>0)throw Promise.all(x);const S=f.find((N,w)=>{const D=c[w];return D&&Y8({result:N,errorResetBoundary:s,throwOnError:D.throwOnError,query:r.getQueryCache().get(D.queryHash),suspense:D.suspense})});if(S?.error)throw S.error;return m(g())}function mx(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=H8(),o=F8(),s=jp(n),c=s.defaultQueryOptions(e);s.getDefaultOptions().queries?._experimental_beforeQuery?.(c),c.queryFn||console.error(`[${c.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`),c._optimisticResults=r?"isRestoring":"optimistic",Q8(c),K8(c,o),G8(o);const u=!s.getQueryCache().get(c.queryHash),[f]=_.useState(()=>new t(s,c)),m=f.getOptimisticResult(c),g=!r&&e.subscribed!==!1;if(_.useSyncExternalStore(_.useCallback(h=>{const y=g?f.subscribe(pn.batchCalls(h)):dr;return f.updateResult(),y},[f,g]),()=>f.getCurrentResult(),()=>f.getCurrentResult()),_.useEffect(()=>{f.setOptions(c)},[c,f]),nC(c,m))throw Jb(c,f,o);if(Y8({result:m,errorResetBoundary:o,throwOnError:c.throwOnError,query:s.getQueryCache().get(c.queryHash),suspense:c.suspense}))throw m.error;return s.getDefaultOptions().queries?._experimental_afterQuery?.(c,m),c.experimental_prefetchInRender&&!_c&&X8(m,r)&&(u?Jb(c,f,o):s.getQueryCache().get(c.queryHash)?.promise)?.catch(dr).finally(()=>{f.updateResult()}),c.notifyOnChangeProps?m:f.trackResult(m)}function BW(e,t){return mx(e,_p,t)}function zW(e,t){return e.queryFn===ar&&console.error("skipToken is not allowed for useSuspenseQuery"),mx({...e,enabled:!0,suspense:!0,throwOnError:c_,placeholderData:void 0},_p,t)}function UW(e,t){return e.queryFn===ar&&console.error("skipToken is not allowed for useSuspenseInfiniteQuery"),mx({...e,enabled:!0,suspense:!0,throwOnError:c_},B8,t)}function qW(e,t){return W8({...e,queries:e.queries.map(n=>(n.queryFn===ar&&console.error("skipToken is not allowed for useSuspenseQueries"),{...n,suspense:!0,throwOnError:c_,enabled:!0,placeholderData:void 0}))},t)}function HW(e,t){const n=jp(t);n.getQueryState(e.queryKey)||n.prefetchQuery(e)}function FW(e,t){const n=jp(t);n.getQueryState(e.queryKey)||n.prefetchInfiniteQuery(e)}function KW(e,t){const n=jp(t),[r]=_.useState(()=>new _W(n,e));_.useEffect(()=>{r.setOptions(e)},[r,e]);const o=_.useSyncExternalStore(_.useCallback(c=>r.subscribe(pn.batchCalls(c)),[r]),()=>r.getCurrentResult(),()=>r.getCurrentResult()),s=_.useCallback((c,u)=>{r.mutate(c,u).catch(dr)},[r]);if(o.error&&M8(r.options.throwOnError,[o.error]))throw o.error;return{...o,mutate:s,mutateAsync:o.mutate}}function GW(e,t){return mx(e,B8,t)}function jc(e){return!!e&&!Array.isArray(e)&&typeof e=="object"}const YW=typeof Symbol=="function"&&!!Symbol.asyncIterator;function Z8(e){return YW&&jc(e)&&Symbol.asyncIterator in e}var QW=Object.create,J8=Object.defineProperty,XW=Object.getOwnPropertyDescriptor,e9=Object.getOwnPropertyNames,WW=Object.getPrototypeOf,ZW=Object.prototype.hasOwnProperty,Rp=(e,t)=>function(){return t||(0,e[e9(e)[0]])((t={exports:{}}).exports,t),t.exports},JW=(e,t,n,r)=>{if(t&&typeof t=="object"||typeof t=="function")for(var o=e9(t),s=0,c=o.length,u;s<c;s++)u=o[s],!ZW.call(e,u)&&u!==n&&J8(e,u,{get:(f=>t[f]).bind(null,u),enumerable:!(r=XW(t,u))||r.enumerable});return e},hx=(e,t,n)=>(n=e!=null?QW(WW(e)):{},JW(J8(n,"default",{value:e,enumerable:!0}),e));const t9=()=>{},WI=e=>{Object.freeze&&Object.freeze(e)};function n9(e,t,n){var r;const o=t.join(".");return(r=n[o])!==null&&r!==void 0||(n[o]=new Proxy(t9,{get(s,c){if(!(typeof c!="string"||c==="then"))return n9(e,[...t,c],n)},apply(s,c,u){const f=t[t.length-1];let m={args:u,path:t};return f==="call"?m={args:u.length>=2?[u[1]]:[],path:t.slice(0,-1)}:f==="apply"&&(m={args:u.length>=2?u[1]:[],path:t.slice(0,-1)}),WI(m.args),WI(m.path),e(m)}})),n[o]}const px=e=>n9(e,[],Object.create(null)),u_=e=>new Proxy(t9,{get(t,n){if(n!=="then")return e(n)}});var r9=Rp({"../../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}}),eZ=Rp({"../../node_modules/.pnpm/@oxc-project+runtime@0.72.2/node_modules/@oxc-project/runtime/src/helpers/toPrimitive.js"(e,t){var n=r9().default;function r(o,s){if(n(o)!="object"||!o)return o;var c=o[Symbol.toPrimitive];if(c!==void 0){var u=c.call(o,s||"default");if(n(u)!="object")return u;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}}),tZ=Rp({"../../node_modules/.pnpm/@oxc-project+runtime@0.72.2/node_modules/@oxc-project/runtime/src/helpers/toPropertyKey.js"(e,t){var n=r9().default,r=eZ();function o(s){var c=r(s,"string");return n(c)=="symbol"?c:c+""}t.exports=o,t.exports.__esModule=!0,t.exports.default=t.exports}}),a9=Rp({"../../node_modules/.pnpm/@oxc-project+runtime@0.72.2/node_modules/@oxc-project/runtime/src/helpers/defineProperty.js"(e,t){var n=tZ();function r(o,s,c){return(s=n(s))in o?Object.defineProperty(o,s,{value:c,enumerable:!0,configurable:!0,writable:!0}):o[s]=c,o}t.exports=r,t.exports.__esModule=!0,t.exports.default=t.exports}}),d_=Rp({"../../node_modules/.pnpm/@oxc-project+runtime@0.72.2/node_modules/@oxc-project/runtime/src/helpers/objectSpread2.js"(e,t){var n=a9();function r(s,c){var u=Object.keys(s);if(Object.getOwnPropertySymbols){var f=Object.getOwnPropertySymbols(s);c&&(f=f.filter(function(m){return Object.getOwnPropertyDescriptor(s,m).enumerable})),u.push.apply(u,f)}return u}function o(s){for(var c=1;c<arguments.length;c++){var u=arguments[c]!=null?arguments[c]:{};c%2?r(Object(u),!0).forEach(function(f){n(s,f,u[f])}):Object.getOwnPropertyDescriptors?Object.defineProperties(s,Object.getOwnPropertyDescriptors(u)):r(Object(u)).forEach(function(f){Object.defineProperty(s,f,Object.getOwnPropertyDescriptor(u,f))})}return s}t.exports=o,t.exports.__esModule=!0,t.exports.default=t.exports}});hx(d_());hx(a9());var fb=hx(d_());function nZ(e,t){if("error"in e){const r=t.deserialize(e.error);return{ok:!1,error:(0,fb.default)((0,fb.default)({},e),{},{error:r})}}return{ok:!0,result:(0,fb.default)((0,fb.default)({},e.result),(!e.result.type||e.result.type==="data")&&{type:"data",data:t.deserialize(e.result.data)})}}var uE=class extends Error{constructor(){super("Unable to transform response from server")}};function rZ(e,t){let n;try{n=nZ(e,t)}catch{throw new uE}if(!n.ok&&(!jc(n.error.error)||typeof n.error.error.code!="number"))throw new uE;if(n.ok&&!jc(n.result))throw new uE;return n}hx(d_());function gx(e){const t={subscribe(n){let r=null,o=!1,s=!1,c=!1;function u(){if(r===null){c=!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),u())},complete(){var f;o||(o=!0,(f=n.complete)===null||f===void 0||f.call(n),u())}}),c&&u(),{unsubscribe:u}},pipe(...n){return n.reduce(aZ,t)}};return t}function aZ(e,t){return t(e)}function iZ(e){const t=new AbortController;return new Promise((r,o)=>{let s=!1;function c(){s||(s=!0,u.unsubscribe())}t.signal.addEventListener("abort",()=>{o(t.signal.reason)});const u=e.subscribe({next(f){s=!0,r(f),c()},error(f){o(f)},complete(){t.abort(),c()}})})}var oZ=Object.create,i9=Object.defineProperty,sZ=Object.getOwnPropertyDescriptor,o9=Object.getOwnPropertyNames,lZ=Object.getPrototypeOf,cZ=Object.prototype.hasOwnProperty,yl=(e,t)=>function(){return t||(0,e[o9(e)[0]])((t={exports:{}}).exports,t),t.exports},uZ=(e,t,n,r)=>{if(t&&typeof t=="object"||typeof t=="function")for(var o=o9(t),s=0,c=o.length,u;s<c;s++)u=o[s],!cZ.call(e,u)&&u!==n&&i9(e,u,{get:(f=>t[f]).bind(null,u),enumerable:!(r=sZ(t,u))||r.enumerable});return e},Zc=(e,t,n)=>(n=e!=null?oZ(lZ(e)):{},uZ(t||!e||!e.__esModule?i9(n,"default",{value:e,enumerable:!0}):n,e)),dZ=yl({"../../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 c in r)if({}.hasOwnProperty.call(r,c)){if(o.includes(c))continue;s[c]=r[c]}return s}t.exports=n,t.exports.__esModule=!0,t.exports.default=t.exports}}),fZ=yl({"../../node_modules/.pnpm/@oxc-project+runtime@0.72.2/node_modules/@oxc-project/runtime/src/helpers/objectWithoutProperties.js"(e,t){var n=dZ();function r(o,s){if(o==null)return{};var c,u,f=n(o,s);if(Object.getOwnPropertySymbols){var m=Object.getOwnPropertySymbols(o);for(u=0;u<m.length;u++)c=m[u],s.includes(c)||{}.propertyIsEnumerable.call(o,c)&&(f[c]=o[c])}return f}t.exports=r,t.exports.__esModule=!0,t.exports.default=t.exports}}),s9=yl({"../../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}}),mZ=yl({"../../node_modules/.pnpm/@oxc-project+runtime@0.72.2/node_modules/@oxc-project/runtime/src/helpers/toPrimitive.js"(e,t){var n=s9().default;function r(o,s){if(n(o)!="object"||!o)return o;var c=o[Symbol.toPrimitive];if(c!==void 0){var u=c.call(o,s||"default");if(n(u)!="object")return u;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}}),hZ=yl({"../../node_modules/.pnpm/@oxc-project+runtime@0.72.2/node_modules/@oxc-project/runtime/src/helpers/toPropertyKey.js"(e,t){var n=s9().default,r=mZ();function o(s){var c=r(s,"string");return n(c)=="symbol"?c:c+""}t.exports=o,t.exports.__esModule=!0,t.exports.default=t.exports}}),pZ=yl({"../../node_modules/.pnpm/@oxc-project+runtime@0.72.2/node_modules/@oxc-project/runtime/src/helpers/defineProperty.js"(e,t){var n=hZ();function r(o,s,c){return(s=n(s))in o?Object.defineProperty(o,s,{value:c,enumerable:!0,configurable:!0,writable:!0}):o[s]=c,o}t.exports=r,t.exports.__esModule=!0,t.exports.default=t.exports}}),Pp=yl({"../../node_modules/.pnpm/@oxc-project+runtime@0.72.2/node_modules/@oxc-project/runtime/src/helpers/objectSpread2.js"(e,t){var n=pZ();function r(s,c){var u=Object.keys(s);if(Object.getOwnPropertySymbols){var f=Object.getOwnPropertySymbols(s);c&&(f=f.filter(function(m){return Object.getOwnPropertyDescriptor(s,m).enumerable})),u.push.apply(u,f)}return u}function o(s){for(var c=1;c<arguments.length;c++){var u=arguments[c]!=null?arguments[c]:{};c%2?r(Object(u),!0).forEach(function(f){n(s,f,u[f])}):Object.getOwnPropertyDescriptors?Object.defineProperties(s,Object.getOwnPropertyDescriptors(u)):r(Object(u)).forEach(function(f){Object.defineProperty(s,f,Object.getOwnPropertyDescriptor(u,f))})}return s}t.exports=o,t.exports.__esModule=!0,t.exports.default=t.exports}}),gZ=Zc(fZ(),1),ZI=Zc(Pp(),1);const vZ=["cursor","direction"];function Wi(e,t,n){const r=e.flatMap(o=>o.split("."));if(!t&&(!n||n==="any"))return r.length?[r]:[];if(n==="infinite"&&jc(t)&&("direction"in t||"cursor"in t)){const{cursor:o,direction:s}=t,c=(0,gZ.default)(t,vZ);return[r,{input:c,type:"infinite"}]}return[r,(0,ZI.default)((0,ZI.default)({},typeof t<"u"&&t!==ar&&{input:t}),n&&n!=="any"&&{type:n})]}function zb(e){return Wi(e,void 0,"any")}var bZ=Object.create,l9=Object.defineProperty,yZ=Object.getOwnPropertyDescriptor,c9=Object.getOwnPropertyNames,xZ=Object.getPrototypeOf,NZ=Object.prototype.hasOwnProperty,mo=(e,t)=>function(){return t||(0,e[c9(e)[0]])((t={exports:{}}).exports,t),t.exports},wZ=(e,t,n,r)=>{if(t&&typeof t=="object"||typeof t=="function")for(var o=c9(t),s=0,c=o.length,u;s<c;s++)u=o[s],!NZ.call(e,u)&&u!==n&&l9(e,u,{get:(f=>t[f]).bind(null,u),enumerable:!(r=yZ(t,u))||r.enumerable});return e},yn=(e,t,n)=>(n=e!=null?bZ(xZ(e)):{},wZ(t||!e||!e.__esModule?l9(n,"default",{value:e,enumerable:!0}):n,e)),u9=mo({"../../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}}),EZ=mo({"../../node_modules/.pnpm/@oxc-project+runtime@0.72.2/node_modules/@oxc-project/runtime/src/helpers/toPrimitive.js"(e,t){var n=u9().default;function r(o,s){if(n(o)!="object"||!o)return o;var c=o[Symbol.toPrimitive];if(c!==void 0){var u=c.call(o,s||"default");if(n(u)!="object")return u;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}}),SZ=mo({"../../node_modules/.pnpm/@oxc-project+runtime@0.72.2/node_modules/@oxc-project/runtime/src/helpers/toPropertyKey.js"(e,t){var n=u9().default,r=EZ();function o(s){var c=r(s,"string");return n(c)=="symbol"?c:c+""}t.exports=o,t.exports.__esModule=!0,t.exports.default=t.exports}}),Jc=mo({"../../node_modules/.pnpm/@oxc-project+runtime@0.72.2/node_modules/@oxc-project/runtime/src/helpers/defineProperty.js"(e,t){var n=SZ();function r(o,s,c){return(s=n(s))in o?Object.defineProperty(o,s,{value:c,enumerable:!0,configurable:!0,writable:!0}):o[s]=c,o}t.exports=r,t.exports.__esModule=!0,t.exports.default=t.exports}}),hi=mo({"../../node_modules/.pnpm/@oxc-project+runtime@0.72.2/node_modules/@oxc-project/runtime/src/helpers/objectSpread2.js"(e,t){var n=Jc();function r(s,c){var u=Object.keys(s);if(Object.getOwnPropertySymbols){var f=Object.getOwnPropertySymbols(s);c&&(f=f.filter(function(m){return Object.getOwnPropertyDescriptor(s,m).enumerable})),u.push.apply(u,f)}return u}function o(s){for(var c=1;c<arguments.length;c++){var u=arguments[c]!=null?arguments[c]:{};c%2?r(Object(u),!0).forEach(function(f){n(s,f,u[f])}):Object.getOwnPropertyDescriptors?Object.defineProperties(s,Object.getOwnPropertyDescriptors(u)):r(Object(u)).forEach(function(f){Object.defineProperty(s,f,Object.getOwnPropertyDescriptor(u,f))})}return s}t.exports=o,t.exports.__esModule=!0,t.exports.default=t.exports}});function AZ(e){return t=>{let n=0,r=null;const o=[];function s(){r||(r=t.subscribe({next(u){for(const m of o){var f;(f=m.next)===null||f===void 0||f.call(m,u)}},error(u){for(const m of o){var f;(f=m.error)===null||f===void 0||f.call(m,u)}},complete(){for(const f of o){var u;(u=f.complete)===null||u===void 0||u.call(f)}}}))}function c(){if(n===0&&r){const u=r;r=null,u.unsubscribe()}}return gx(u=>(n++,o.push(u),s(),{unsubscribe(){n--,c();const f=o.findIndex(m=>m===u);f>-1&&o.splice(f,1)}}))}}function OZ(e){let t=e;const n=[],r=c=>{t!==void 0&&c.next(t),n.push(c)},o=c=>{n.splice(n.indexOf(c),1)},s=gx(c=>(r(c),()=>{o(c)}));return s.next=c=>{if(t!==c){t=c;for(const u of n)u.next(c)}},s.get=()=>t,s}function DZ(e){return gx(t=>{function n(o=0,s=e.op){const c=e.links[o];if(!c)throw new Error("No more links to execute - did you forget to add an ending link?");return c({op:s,next(f){return n(o+1,f)}})}return n().subscribe(t)})}var mb=yn(Jc(),1),cd=yn(hi(),1);function CZ(e){return e instanceof Vh}function TZ(e){return jc(e)&&jc(e.error)&&typeof e.error.code=="number"&&typeof e.error.message=="string"}function _Z(e,t){return typeof e=="string"?e:jc(e)&&typeof e.message=="string"?e.message:t}var Vh=class Ub extends Error{constructor(t,n){var r,o;const s=n?.cause;super(t,{cause:s}),(0,mb.default)(this,"cause",void 0),(0,mb.default)(this,"shape",void 0),(0,mb.default)(this,"data",void 0),(0,mb.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,Ub.prototype)}static from(t,n={}){const r=t;return CZ(r)?(n.meta&&(r.meta=(0,cd.default)((0,cd.default)({},r.meta),n.meta)),r):TZ(r)?new Ub(r.error.message,(0,cd.default)((0,cd.default)({},n),{},{result:r})):new Ub(_Z(r,"Unknown error"),(0,cd.default)((0,cd.default)({},n),{},{cause:r}))}};function jZ(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 JI=e=>typeof e=="function";function RZ(e){if(e)return e;if(typeof window<"u"&&JI(window.fetch))return window.fetch;if(typeof globalThis<"u"&&JI(globalThis.fetch))return globalThis.fetch;throw new Error("No fetch implementation found")}var Ah=yn(hi());function PZ(e){return{url:e.url.toString(),fetch:e.fetch,transformer:jZ(e.transformer),methodOverride:e.methodOverride}}function MZ(e){const t={};for(let n=0;n<e.length;n++){const r=e[n];t[n]=r}return t}const kZ={query:"GET",mutation:"POST",subscription:"PATCH"};function d9(e){return"input"in e?e.transformer.input.serialize(e.input):MZ(e.inputs.map(t=>e.transformer.input.serialize(t)))}const f9=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=d9(e);s!==void 0&&e.methodOverride!=="POST"&&o.push(`input=${encodeURIComponent(JSON.stringify(s))}`)}return o.length&&(r+="?"+o.join("&")),r},IZ=e=>{if(e.type==="query"&&e.methodOverride!=="POST")return;const t=d9(e);return t!==void 0?JSON.stringify(t):void 0},LZ=e=>zZ((0,Ah.default)((0,Ah.default)({},e),{},{contentTypeHeader:"application/json",getUrl:f9,getBody:IZ}));var VZ=class extends Error{constructor(){const e="AbortError";super(e),this.name=e,this.message=e}};const $Z=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 VZ};async function BZ(e){var t;$Z(e.signal);const n=e.getUrl(e),r=e.getBody(e),o=(t=e.methodOverride)!==null&&t!==void 0?t:kZ[e.type],s=await(async()=>{const u=await e.headers();return Symbol.iterator in u?Object.fromEntries(u):u})(),c=(0,Ah.default)((0,Ah.default)((0,Ah.default)({},e.contentTypeHeader&&o!=="GET"?{"content-type":e.contentTypeHeader}:{}),e.trpcAcceptHeader?{"trpc-accept":e.trpcAcceptHeader}:void 0),s);return RZ(e.fetch)(n,{method:o,signal:e.signal,body:r,headers:c})}async function zZ(e){const t={},n=await BZ(e);t.response=n;const r=await n.json();return t.responseJSON=r,{json:r,meta:t}}yn(hi(),1);const eL=()=>{throw new Error("Something went wrong. Please submit an issue at https://github.com/trpc/trpc/issues/new")};function tL(e){let t=null,n=null;const r=()=>{clearTimeout(n),n=null,t=null};function o(u){const f=[[]];let m=0;for(;;){const y=u[m];if(!y)break;const x=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(x.concat(y).map(N=>N.key))){x.push(y),m++;continue}if(x.length===0){var h;(h=y.reject)===null||h===void 0||h.call(y,new Error("Input is too big for a single dispatch")),m++;continue}f.push([])}return f}function s(){const u=o(t);r();for(const f of u){if(!f.length)continue;const m={items:f};for(const h of f)h.batch=m;e.fetch(m.items.map(h=>h.key)).then(async h=>{await Promise.all(h.map(async(x,S)=>{const N=m.items[S];try{var w;const C=await Promise.resolve(x);(w=N.resolve)===null||w===void 0||w.call(N,C)}catch(C){var D;(D=N.reject)===null||D===void 0||D.call(N,C)}N.batch=null,N.reject=null,N.resolve=null}));for(const x of m.items){var y;(y=x.reject)===null||y===void 0||y.call(x,new Error("Missing result")),x.batch=null}}).catch(h=>{for(const x of m.items){var y;(y=x.reject)===null||y===void 0||y.call(x,h),x.batch=null}})}}function c(u){var f;const m={aborted:!1,key:u,batch:null,resolve:eL,reject:eL},g=new Promise((h,y)=>{var x;m.reject=y,m.resolve=h,(x=t)!==null&&x!==void 0||(t=[]),t.push(m)});return(f=n)!==null&&f!==void 0||(n=setTimeout(s)),g}return{load:c}}function UZ(...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 hb=yn(hi(),1);function qZ(e){var t,n;const r=PZ(e),o=(t=e.maxURLLength)!==null&&t!==void 0?t:1/0,s=(n=e.maxItems)!==null&&n!==void 0?n:1/0;return()=>{const c=g=>({validate(h){if(o===1/0&&s===1/0)return!0;if(h.length>s)return!1;const y=h.map(N=>N.path).join(","),x=h.map(N=>N.input);return f9((0,hb.default)((0,hb.default)({},r),{},{type:g,path:y,inputs:x,signal:null})).length<=o},async fetch(h){const y=h.map(C=>C.path).join(","),x=h.map(C=>C.input),S=UZ(...h.map(C=>C.signal)),N=await LZ((0,hb.default)((0,hb.default)({},r),{},{path:y,inputs:x,type:g,headers(){return e.headers?typeof e.headers=="function"?e.headers({opList:h}):e.headers:{}},signal:S}));return(Array.isArray(N.json)?N.json:h.map(()=>N.json)).map(C=>({meta:N.meta,json:C}))}}),u=tL(c("query")),f=tL(c("mutation")),m={query:u,mutation:f};return({op:g})=>gx(h=>{/* istanbul ignore if -- @preserve */if(g.type==="subscription")throw new Error("Subscriptions are unsupported by `httpLink` - use `httpSubscriptionLink` or `wsLink`");const x=m[g.type].load(g);let S;return x.then(N=>{S=N;const w=rZ(N.json,r.transformer.output);if(!w.ok){h.error(Vh.from(w.error,{meta:N.meta}));return}h.next({context:N.meta,result:w.result}),h.complete()}).catch(N=>{h.error(Vh.from(N,{meta:S?.meta}))}),()=>{}})}}yn(hi(),1);const m9=(e,...t)=>typeof e=="function"?e(...t):e;yn(Jc(),1);function HZ(){let e,t;return{promise:new Promise((r,o)=>{e=r,t=o}),resolve:e,reject:t}}async function FZ(e){const t=await m9(e.url);if(!e.connectionParams)return t;const r=`${t.includes("?")?"&":"?"}connectionParams=1`;return t+r}async function KZ(e){const t={method:"connectionParams",data:await m9(e)};return JSON.stringify(t)}yn(Jc(),1);var gc=yn(Jc(),1);function GZ(e){const{promise:t,resolve:n,reject:r}=HZ();return e.addEventListener("open",()=>{e.removeEventListener("error",r),n()}),e.addEventListener("error",r),t}function YZ(e,{intervalMs:t,pongTimeoutMs:n}){let r,o;function s(){r=setTimeout(()=>{e.send("PING"),o=setTimeout(()=>{e.close()},n)},t)}function c(){clearTimeout(r),s()}function u(){clearTimeout(o),c()}e.addEventListener("open",s),e.addEventListener("message",({data:f})=>{clearTimeout(r),s(),f==="PONG"&&u()}),e.addEventListener("close",()=>{clearTimeout(r),clearTimeout(o)})}var QZ=class rC{constructor(t){var n;if((0,gc.default)(this,"id",++rC.connectCount),(0,gc.default)(this,"WebSocketPonyfill",void 0),(0,gc.default)(this,"urlOptions",void 0),(0,gc.default)(this,"keepAliveOpts",void 0),(0,gc.default)(this,"wsObservable",OZ(null)),(0,gc.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=++rC.connectCount;const n=FZ(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&&YZ(r,t.keepAliveOpts),r.addEventListener("close",()=>{t.ws===r&&(t.ws=null)}),await GZ(r),t.urlOptions.connectionParams&&r.send(await KZ(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,gc.default)(QZ,"connectCount",0);yn(Jc(),1);yn(hi(),1);var dE=yn(Jc(),1),nL=yn(hi(),1),vx=class{constructor(e){(0,dE.default)(this,"links",void 0),(0,dE.default)(this,"runtime",void 0),(0,dE.default)(this,"requestId",void 0),this.requestId=0,this.runtime={},this.links=e.links.map(t=>t(this.runtime))}$request(e){var t;return DZ({links:this.links,op:(0,nL.default)((0,nL.default)({},e),{},{context:(t=e.context)!==null&&t!==void 0?t:{},id:++this.requestId})}).pipe(AZ())}async requestAsPromise(e){var t=this;try{const n=t.$request(e);return(await iZ(n)).result.data}catch(n){throw Vh.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 c;(c=n.onStarted)===null||c===void 0||c.call(n,{context:o.context});break}case"stopped":{var u;(u=n.onStopped)===null||u===void 0||u.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 h9=Symbol.for("trpc_untypedClient"),XZ={query:"query",mutate:"mutation",subscribe:"subscription"},WZ=e=>XZ[e];function p9(e){const t=px(({path:n,args:r})=>{const o=[...n],s=WZ(o.pop()),c=o.join(".");return e[s](c,...r)});return u_(n=>n===h9?e:t[n])}function ZZ(e){const t=new vx(e);return p9(t)}function f_(e){return e[h9]}yn(hi(),1);yn(hi(),1);var JZ=mo({"../../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,c,u,f=2;for(typeof Symbol<"u"&&(c=Symbol.asyncIterator,u=Symbol.iterator);f--;){if(c&&(s=o[c])!=null)return s.call(o);if(u&&(s=o[u])!=null)return new r(s.call(o));c="@@asyncIterator",u="@@iterator"}throw new TypeError("Object is not async iterable")}function r(o){function s(c){if(Object(c)!==c)return Promise.reject(new TypeError(c+" is not an object."));var u=c.done;return Promise.resolve(c.value).then(function(f){return{value:f,done:u}})}return r=function(u){this.s=u,this.n=u.next},r.prototype={s:null,n:null,next:function(){return s(this.n.apply(this.s,arguments))},return:function(u){var f=this.s.return;return f===void 0?Promise.resolve({value:u,done:!0}):s(f.apply(this.s,arguments))},throw:function(u){var f=this.s.return;return f===void 0?Promise.reject(u):s(f.apply(this.s,arguments))}},new r(o)}t.exports=n,t.exports.__esModule=!0,t.exports.default=t.exports}});yn(JZ(),1);yn(hi(),1);var eJ=mo({"../../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(u,f){var m=Error();return m.name="SuppressedError",m.error=u,m.suppressed=f,m},o={},s=[];function c(u,f){if(f!=null){if(Object(f)!==f)throw new TypeError("using declarations can only be used with objects, functions, null, or undefined.");if(u)var m=f[Symbol.asyncDispose||Symbol.for("Symbol.asyncDispose")];if(m===void 0&&(m=f[Symbol.dispose||Symbol.for("Symbol.dispose")],u))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:u})}else u&&s.push({d:f,a:u});return f}return{e:o,u:c.bind(null,!1),a:c.bind(null,!0),d:function(){var f,m=this.e,g=0;function h(){for(;f=s.pop();)try{if(!f.a&&g===1)return g=0,s.push(f),Promise.resolve().then(h);if(f.d){var x=f.d.call(f.v);if(f.a)return g|=2,Promise.resolve(x).then(h,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(x){return m=m!==o?new r(x,m):x,h()}return h()}}}t.exports=n,t.exports.__esModule=!0,t.exports.default=t.exports}}),g9=mo({"../../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}}),tJ=mo({"../../node_modules/.pnpm/@oxc-project+runtime@0.72.2/node_modules/@oxc-project/runtime/src/helpers/awaitAsyncGenerator.js"(e,t){var n=g9();function r(o){return new n(o,0)}t.exports=r,t.exports.__esModule=!0,t.exports.default=t.exports}}),nJ=mo({"../../node_modules/.pnpm/@oxc-project+runtime@0.72.2/node_modules/@oxc-project/runtime/src/helpers/wrapAsyncGenerator.js"(e,t){var n=g9();function r(s){return function(){return new o(s.apply(this,arguments))}}function o(s){var c,u;function f(g,h){try{var y=s[g](h),x=y.value,S=x instanceof n;Promise.resolve(S?x.v:x).then(function(N){if(S){var w=g==="return"?"return":"next";if(!x.k||N.done)return f(w,N);N=s[w](N).value}m(y.done?"return":"normal",N)},function(N){f("throw",N)})}catch(N){m("throw",N)}}function m(g,h){switch(g){case"return":c.resolve({value:h,done:!0});break;case"throw":c.reject(h);break;default:c.resolve({value:h,done:!1})}(c=c.next)?f(c.key,c.arg):u=null}this._invoke=function(g,h){return new Promise(function(y,x){var S={key:g,arg:h,resolve:y,reject:x,next:null};u?u=u.next=S:(c=u=S,f(g,h))})},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}});yn(eJ(),1);yn(tJ(),1);yn(nJ(),1);yn(hi(),1);function rJ(e){return px(({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[c,...u]=n,f=(r=u[0])!==null&&r!==void 0?r:{};return e[s](o,c,f)})}var fE;const aJ=["client","ssrContext","ssrState","abortOnUnmount"],iJ=(fE=_.createContext)===null||fE===void 0?void 0:fE.call(fx,null),oJ=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 sJ(e){return px(t=>{const n=[...t.path],r=n.pop(),o=[...t.args],s=o.shift(),c=oJ(r),u=Wi(n,s,c);return{infiniteQueryOptions:()=>e.infiniteQueryOptions(n,u,o[0]),queryOptions:()=>e.queryOptions(n,u,...o),fetch:()=>e.fetchQuery(u,...o),fetchInfinite:()=>e.fetchInfiniteQuery(u,o[0]),prefetch:()=>e.prefetchQuery(u,...o),prefetchInfinite:()=>e.prefetchInfiniteQuery(u,o[0]),ensureData:()=>e.ensureQueryData(u,...o),invalidate:()=>e.invalidateQueries(u,...o),reset:()=>e.resetQueries(u,...o),refetch:()=>e.refetchQueries(u,...o),cancel:()=>e.cancelQuery(u,...o),setData:()=>{e.setQueryData(u,o[0],o[1])},setQueriesData:()=>e.setQueriesData(u,o[0],o[1],o[2]),setInfiniteData:()=>{e.setInfiniteQueryData(u,o[0],o[1])},getData:()=>e.getQueryData(u),getInfiniteData:()=>e.getInfiniteQueryData(u),setMutationDefaults:()=>e.setMutationDefaults(zb(n),s),getMutationDefaults:()=>e.getMutationDefaults(zb(n)),isMutating:()=>e.isMutating({mutationKey:zb(n)})}[r]()})}function lJ(e){const t=p9(e.client),n=sJ(e);return u_(r=>{const o=r;return o==="client"?t:aJ.includes(o)?e[o]:n[r]})}var cJ=Zc(Pp(),1);function rL(e){const t=e instanceof vx?e:f_(e);return px(n=>{const r=n.path,o=r.join("."),[s,c]=n.args;return(0,cJ.default)({queryKey:Wi(r,s,"query"),queryFn:()=>t.query(o,s,c?.trpc)},c)})}var mE=Zc(Pp(),1);function Tr(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 c;s=(0,mE.default)((0,mE.default)((0,mE.default)({},(c=s)!==null&&c!==void 0?c:{}),n.pageParam?{cursor:n.pageParam}:{}),{},{direction:n.direction})}return[o.join("."),s,t?.trpc]}var uJ=yl({"../../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,c,u,f=2;for(typeof Symbol<"u"&&(c=Symbol.asyncIterator,u=Symbol.iterator);f--;){if(c&&(s=o[c])!=null)return s.call(o);if(u&&(s=o[u])!=null)return new r(s.call(o));c="@@asyncIterator",u="@@iterator"}throw new TypeError("Object is not async iterable")}function r(o){function s(c){if(Object(c)!==c)return Promise.reject(new TypeError(c+" is not an object."));var u=c.done;return Promise.resolve(c.value).then(function(f){return{value:f,done:u}})}return r=function(u){this.s=u,this.n=u.next},r.prototype={s:null,n:null,next:function(){return s(this.n.apply(this.s,arguments))},return:function(u){var f=this.s.return;return f===void 0?Promise.resolve({value:u,done:!0}):s(f.apply(this.s,arguments))},throw:function(u){var f=this.s.return;return f===void 0?Promise.reject(u):s(f.apply(this.s,arguments))}},new r(o)}t.exports=n,t.exports.__esModule=!0,t.exports.default=t.exports}}),dJ=Zc(uJ(),1);function aC(e){return{path:e.path.join(".")}}function oh(e){const t=aC(e);return _.useMemo(()=>t,[t])}async function v9(e,t,n){const o=t.getQueryCache().build(t,{queryKey:n});o.setState({data:[],status:"success"});const s=[];var c=!1,u=!1,f;try{for(var m=(0,dJ.default)(e),g;c=!(g=await m.next()).done;c=!1){const h=g.value;s.push(h),o.setState({data:[...s]})}}catch(h){u=!0,f=h}finally{try{c&&m.return!=null&&await m.return()}finally{if(u)throw f}}return s}var Tt=Zc(Pp(),1);function fJ(e){const{client:t,queryClient:n}=e,r=t instanceof vx?t:f_(t);return{infiniteQueryOptions:(o,s,c)=>{var u,f;const m=((u=s[1])===null||u===void 0?void 0:u.input)===ar,g=async h=>{var y;const x=(0,Tt.default)((0,Tt.default)({},c),{},{trpc:(0,Tt.default)((0,Tt.default)({},c?.trpc),!(c==null||(y=c.trpc)===null||y===void 0)&&y.abortOnUnmount?{signal:h.signal}:{signal:null})});return await r.query(...Tr(s,x,{direction:h.direction,pageParam:h.pageParam}))};return Object.assign((0,Tt.default)((0,Tt.default)({},c),{},{initialData:c?.initialData,queryKey:s,queryFn:m?ar:g,initialPageParam:(f=c?.initialCursor)!==null&&f!==void 0?f:null}),{trpc:aC({path:o})})},queryOptions:(o,s,c)=>{var u;const f=((u=s[1])===null||u===void 0?void 0:u.input)===ar,m=async g=>{var h;const y=(0,Tt.default)((0,Tt.default)({},c),{},{trpc:(0,Tt.default)((0,Tt.default)({},c?.trpc),!(c==null||(h=c.trpc)===null||h===void 0)&&h.abortOnUnmount?{signal:g.signal}:{signal:null})}),x=await r.query(...Tr(s,y));return Z8(x)?v9(x,n,s):x};return Object.assign((0,Tt.default)((0,Tt.default)({},c),{},{initialData:c?.initialData,queryKey:s,queryFn:f?ar:m}),{trpc:aC({path:o})})},fetchQuery:(o,s)=>n.fetchQuery((0,Tt.default)((0,Tt.default)({},s),{},{queryKey:o,queryFn:()=>r.query(...Tr(o,s))})),fetchInfiniteQuery:(o,s)=>{var c;return n.fetchInfiniteQuery((0,Tt.default)((0,Tt.default)({},s),{},{queryKey:o,queryFn:({pageParam:u,direction:f})=>r.query(...Tr(o,s,{pageParam:u,direction:f})),initialPageParam:(c=s?.initialCursor)!==null&&c!==void 0?c:null}))},prefetchQuery:(o,s)=>n.prefetchQuery((0,Tt.default)((0,Tt.default)({},s),{},{queryKey:o,queryFn:()=>r.query(...Tr(o,s))})),prefetchInfiniteQuery:(o,s)=>{var c;return n.prefetchInfiniteQuery((0,Tt.default)((0,Tt.default)({},s),{},{queryKey:o,queryFn:({pageParam:u,direction:f})=>r.query(...Tr(o,s,{pageParam:u,direction:f})),initialPageParam:(c=s?.initialCursor)!==null&&c!==void 0?c:null}))},ensureQueryData:(o,s)=>n.ensureQueryData((0,Tt.default)((0,Tt.default)({},s),{},{queryKey:o,queryFn:()=>r.query(...Tr(o,s))})),invalidateQueries:(o,s,c)=>n.invalidateQueries((0,Tt.default)((0,Tt.default)({},s),{},{queryKey:o}),c),resetQueries:(o,s,c)=>n.resetQueries((0,Tt.default)((0,Tt.default)({},s),{},{queryKey:o}),c),refetchQueries:(o,s,c)=>n.refetchQueries((0,Tt.default)((0,Tt.default)({},s),{},{queryKey:o}),c),cancelQuery:(o,s)=>n.cancelQueries({queryKey:o},s),setQueryData:(o,s,c)=>n.setQueryData(o,s,c),setQueriesData:(o,s,c,u)=>n.setQueriesData((0,Tt.default)((0,Tt.default)({},s),{},{queryKey:o}),c,u),getQueryData:o=>n.getQueryData(o),setInfiniteQueryData:(o,s,c)=>n.setQueryData(o,s,c),getInfiniteQueryData:o=>n.getQueryData(o),setMutationDefaults:(o,s)=>{const c=o[0],u=f=>r.mutation(...Tr([c,{input:f}],e));return n.setMutationDefaults(o,typeof s=="function"?s({canonicalMutationFn:u}):s)},getMutationDefaults:o=>n.getMutationDefaults(o),isMutating:o=>n.isMutating((0,Tt.default)((0,Tt.default)({},o),{},{exact:!0}))}}var je=Zc(Pp());const aL=(e,t)=>new Proxy(e,{get(r,o){return t(o),r[o]}});function mJ(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:iJ,s=ZZ,c=A=>{var T;const{abortOnUnmount:R=!1,queryClient:M,ssrContext:$}=A,[z,U]=_.useState((T=A.ssrState)!==null&&T!==void 0?T:!1),V=A.client instanceof vx?A.client:f_(A.client),F=_.useMemo(()=>fJ({client:V,queryClient:M}),[V,M]),X=_.useMemo(()=>(0,je.default)({abortOnUnmount:R,queryClient:M,client:V,ssrContext:$??null,ssrState:z},F),[R,V,F,M,$,z]);return _.useEffect(()=>{U(ee=>ee?"mounted":!1)},[]),ce.jsx(o.Provider,{value:X,children:A.children})};function u(){const A=_.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,T){var R;const{queryClient:M,ssrState:$}=u();return $&&$!=="mounted"&&((R=M.getQueryCache().find({queryKey:A}))===null||R===void 0?void 0:R.state.status)==="error"?(0,je.default)({retryOnMount:!1},T):T}function m(A,T,R){var M,$,z,U,V;const F=u(),{abortOnUnmount:X,client:ee,ssrState:q,queryClient:Q,prefetchQuery:G}=F,ne=Wi(A,T,"query"),te=Q.getQueryDefaults(ne),I=T===ar;typeof window>"u"&&q==="prepass"&&(R==null||(M=R.trpc)===null||M===void 0?void 0:M.ssr)!==!1&&(($=R?.enabled)!==null&&$!==void 0?$:te?.enabled)!==!1&&!I&&!Q.getQueryCache().find({queryKey:ne})&&G(ne,R);const H=f(ne,(0,je.default)((0,je.default)({},te),R)),Y=(z=(U=R==null||(V=R.trpc)===null||V===void 0?void 0:V.abortOnUnmount)!==null&&U!==void 0?U:void 0)!==null&&z!==void 0?z:X,re=BW((0,je.default)((0,je.default)({},H),{},{queryKey:ne,queryFn:I?T:async ge=>{const we=(0,je.default)((0,je.default)({},H),{},{trpc:(0,je.default)((0,je.default)({},H?.trpc),Y?{signal:ge.signal}:{signal:null})}),le=await ee.query(...Tr(ne,we));return Z8(le)?v9(le,Q,ne):le}}),Q);return re.trpc=oh({path:A}),re}function g(A,T,R){var M,$,z;const U=u(),V=Wi(A,T,"query"),F=T===ar,X=(M=($=R==null||(z=R.trpc)===null||z===void 0?void 0:z.abortOnUnmount)!==null&&$!==void 0?$:void 0)!==null&&M!==void 0?M:U.abortOnUnmount;HW((0,je.default)((0,je.default)({},R),{},{queryKey:V,queryFn:F?T:ee=>{const q={trpc:(0,je.default)((0,je.default)({},R?.trpc),X?{signal:ee.signal}:{})};return U.client.query(...Tr(V,q))}}))}function h(A,T,R){var M,$,z;const U=u(),V=Wi(A,T,"query"),F=(M=($=R==null||(z=R.trpc)===null||z===void 0?void 0:z.abortOnUnmount)!==null&&$!==void 0?$:void 0)!==null&&M!==void 0?M:U.abortOnUnmount,X=zW((0,je.default)((0,je.default)({},R),{},{queryKey:V,queryFn:ee=>{const q=(0,je.default)((0,je.default)({},R),{},{trpc:(0,je.default)((0,je.default)({},R?.trpc),F?{signal:ee.signal}:{signal:null})});return U.client.query(...Tr(V,q))}}),U.queryClient);return X.trpc=oh({path:A}),[X.data,X]}function y(A,T){const{client:R,queryClient:M}=u(),$=zb(A),z=M.defaultMutationOptions(M.getMutationDefaults($)),U=KW((0,je.default)((0,je.default)({},T),{},{mutationKey:$,mutationFn:V=>R.mutation(...Tr([A,{input:V}],T)),onSuccess(...V){var F,X;return r({originalFn:()=>{var q,Q,G;return(q=T==null||(Q=T.onSuccess)===null||Q===void 0?void 0:Q.call(T,...V))!==null&&q!==void 0?q:z==null||(G=z.onSuccess)===null||G===void 0?void 0:G.call(z,...V)},queryClient:M,meta:(F=(X=T?.meta)!==null&&X!==void 0?X:z?.meta)!==null&&F!==void 0?F:{}})}}),M);return U.trpc=oh({path:A}),U}const x={data:void 0,error:null,status:"idle"},S={data:void 0,error:null,status:"connecting"};/* istanbul ignore next -- @preserve */function N(A,T,R){var M;const $=(M=R?.enabled)!==null&&M!==void 0?M:T!==ar,z=hl(Wi(A,T,"any")),{client:U}=u(),V=_.useRef(R);_.useEffect(()=>{V.current=R});const[F]=_.useState(new Set([])),X=_.useCallback(I=>{F.add(I)},[F]),ee=_.useRef(null),q=_.useCallback(I=>{const H=G.current,Y=G.current=I(H);let re=!1;for(const ge of F)if(H[ge]!==Y[ge]){re=!0;break}re&&te(aL(Y,X))},[X,F]),Q=_.useCallback(()=>{var I;if((I=ee.current)===null||I===void 0||I.unsubscribe(),!$){q(()=>(0,je.default)((0,je.default)({},x),{},{reset:Q}));return}q(()=>(0,je.default)((0,je.default)({},S),{},{reset:Q}));const H=U.subscription(A.join("."),T??void 0,{onStarted:()=>{var Y,re;(Y=(re=V.current).onStarted)===null||Y===void 0||Y.call(re),q(ge=>(0,je.default)((0,je.default)({},ge),{},{status:"pending",error:null}))},onData:Y=>{var re,ge;(re=(ge=V.current).onData)===null||re===void 0||re.call(ge,Y),q(we=>(0,je.default)((0,je.default)({},we),{},{status:"pending",data:Y,error:null}))},onError:Y=>{var re,ge;(re=(ge=V.current).onError)===null||re===void 0||re.call(ge,Y),q(we=>(0,je.default)((0,je.default)({},we),{},{status:"error",error:Y}))},onConnectionStateChange:Y=>{q(re=>{switch(Y.state){case"idle":return(0,je.default)((0,je.default)({},re),{},{status:Y.state,error:null,data:void 0});case"connecting":return(0,je.default)((0,je.default)({},re),{},{error:Y.error,status:Y.state});case"pending":return re}})},onComplete:()=>{var Y,re;(Y=(re=V.current).onComplete)===null||Y===void 0||Y.call(re),q(ge=>(0,je.default)((0,je.default)({},ge),{},{status:"idle",error:null,data:void 0}))}});ee.current=H},[U,z,$,q]);_.useEffect(()=>(Q(),()=>{var I;(I=ee.current)===null||I===void 0||I.unsubscribe()}),[Q]);const G=_.useRef($?(0,je.default)((0,je.default)({},S),{},{reset:Q}):(0,je.default)((0,je.default)({},x),{},{reset:Q})),[ne,te]=_.useState(aL(G.current,X));return ne}function w(A,T,R){var M,$,z,U,V;const{client:F,ssrState:X,prefetchInfiniteQuery:ee,queryClient:q,abortOnUnmount:Q}=u(),G=Wi(A,T,"infinite"),ne=q.getQueryDefaults(G),te=T===ar;typeof window>"u"&&X==="prepass"&&(R==null||(M=R.trpc)===null||M===void 0?void 0:M.ssr)!==!1&&(($=R?.enabled)!==null&&$!==void 0?$:ne?.enabled)!==!1&&!te&&!q.getQueryCache().find({queryKey:G})&&ee(G,(0,je.default)((0,je.default)({},ne),R));const I=f(G,(0,je.default)((0,je.default)({},ne),R)),H=(z=R==null||(U=R.trpc)===null||U===void 0?void 0:U.abortOnUnmount)!==null&&z!==void 0?z:Q,Y=GW((0,je.default)((0,je.default)({},I),{},{initialPageParam:(V=R.initialCursor)!==null&&V!==void 0?V:null,persister:R.persister,queryKey:G,queryFn:te?T:re=>{var ge;const we=(0,je.default)((0,je.default)({},I),{},{trpc:(0,je.default)((0,je.default)({},I?.trpc),H?{signal:re.signal}:{signal:null})});return F.query(...Tr(G,we,{pageParam:(ge=re.pageParam)!==null&&ge!==void 0?ge:R.initialCursor,direction:re.direction}))}}),q);return Y.trpc=oh({path:A}),Y}function D(A,T,R){var M,$,z;const U=u(),V=Wi(A,T,"infinite"),F=U.queryClient.getQueryDefaults(V),X=T===ar,ee=f(V,(0,je.default)((0,je.default)({},F),R)),q=(M=R==null||($=R.trpc)===null||$===void 0?void 0:$.abortOnUnmount)!==null&&M!==void 0?M:U.abortOnUnmount;FW((0,je.default)((0,je.default)({},R),{},{initialPageParam:(z=R.initialCursor)!==null&&z!==void 0?z:null,queryKey:V,queryFn:X?T:Q=>{var G;const ne=(0,je.default)((0,je.default)({},ee),{},{trpc:(0,je.default)((0,je.default)({},ee?.trpc),q?{signal:Q.signal}:{})});return U.client.query(...Tr(V,ne,{pageParam:(G=Q.pageParam)!==null&&G!==void 0?G:R.initialCursor,direction:Q.direction}))}}))}function C(A,T,R){var M,$,z;const U=u(),V=Wi(A,T,"infinite"),F=U.queryClient.getQueryDefaults(V),X=f(V,(0,je.default)((0,je.default)({},F),R)),ee=(M=R==null||($=R.trpc)===null||$===void 0?void 0:$.abortOnUnmount)!==null&&M!==void 0?M:U.abortOnUnmount,q=UW((0,je.default)((0,je.default)({},R),{},{initialPageParam:(z=R.initialCursor)!==null&&z!==void 0?z:null,queryKey:V,queryFn:Q=>{var G;const ne=(0,je.default)((0,je.default)({},X),{},{trpc:(0,je.default)((0,je.default)({},X?.trpc),ee?{signal:Q.signal}:{})});return U.client.query(...Tr(V,ne,{pageParam:(G=Q.pageParam)!==null&&G!==void 0?G:R.initialCursor,direction:Q.direction}))}}),U.queryClient);return q.trpc=oh({path:A}),[q.data,q]}return{Provider:c,createClient:s,useContext:u,useUtils:u,useQuery:m,usePrefetchQuery:g,useSuspenseQuery:h,useQueries:(A,T)=>{const{ssrState:R,queryClient:M,prefetchQuery:$,client:z}=u(),U=rL(z),V=A(U);if(typeof window>"u"&&R==="prepass")for(const X of V){var F;const ee=X;((F=ee.trpc)===null||F===void 0?void 0:F.ssr)!==!1&&!M.getQueryCache().find({queryKey:ee.queryKey})&&$(ee.queryKey,ee)}return W8({queries:V.map(X=>(0,je.default)((0,je.default)({},X),{},{queryKey:X.queryKey})),combine:T?.combine},M)},useSuspenseQueries:A=>{const{queryClient:T,client:R}=u(),M=rL(R),$=A(M),z=qW({queries:$.map(U=>(0,je.default)((0,je.default)({},U),{},{queryFn:U.queryFn,queryKey:U.queryKey}))},T);return[z.map(U=>U.data),z]},useMutation:y,useSubscription:N,useInfiniteQuery:w,usePrefetchInfiniteQuery:D,useSuspenseInfiniteQuery:C}}function hJ(e){const t=rJ(e);return u_(n=>n==="useContext"||n==="useUtils"?()=>{const r=e.useUtils();return _.useMemo(()=>lJ(r),[r])}:e.hasOwnProperty(n)?e[n]:t[n])}function pJ(e){const t=mJ();return hJ(t)}const et=pJ(),tt=e=>typeof e=="string",sh=()=>{let e,t;const n=new Promise((r,o)=>{e=r,t=o});return n.resolve=e,n.reject=t,n},iL=e=>e==null?"":""+e,gJ=(e,t,n)=>{e.forEach(r=>{t[r]&&(n[r]=t[r])})},vJ=/###/g,oL=e=>e&&e.indexOf("###")>-1?e.replace(vJ,"."):e,sL=e=>!e||tt(e),Oh=(e,t,n)=>{const r=tt(t)?t.split("."):t;let o=0;for(;o<r.length-1;){if(sL(e))return{};const s=oL(r[o]);!e[s]&&n&&(e[s]=new n),Object.prototype.hasOwnProperty.call(e,s)?e=e[s]:e={},++o}return sL(e)?{}:{obj:e,k:oL(r[o])}},lL=(e,t,n)=>{const{obj:r,k:o}=Oh(e,t,Object);if(r!==void 0||t.length===1){r[o]=n;return}let s=t[t.length-1],c=t.slice(0,t.length-1),u=Oh(e,c,Object);for(;u.obj===void 0&&c.length;)s=`${c[c.length-1]}.${s}`,c=c.slice(0,c.length-1),u=Oh(e,c,Object),u?.obj&&typeof u.obj[`${u.k}.${s}`]<"u"&&(u.obj=void 0);u.obj[`${u.k}.${s}`]=n},bJ=(e,t,n,r)=>{const{obj:o,k:s}=Oh(e,t,Object);o[s]=o[s]||[],o[s].push(n)},ey=(e,t)=>{const{obj:n,k:r}=Oh(e,t);if(n&&Object.prototype.hasOwnProperty.call(n,r))return n[r]},yJ=(e,t,n)=>{const r=ey(e,n);return r!==void 0?r:ey(t,n)},b9=(e,t,n)=>{for(const r in t)r!=="__proto__"&&r!=="constructor"&&(r in e?tt(e[r])||e[r]instanceof String||tt(t[r])||t[r]instanceof String?n&&(e[r]=t[r]):b9(e[r],t[r],n):e[r]=t[r]);return e},dc=e=>e.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&");var xJ={"&":"&","<":"<",">":">",'"':""","'":"'","/":"/"};const NJ=e=>tt(e)?e.replace(/[&<>"'\/]/g,t=>xJ[t]):e;class wJ{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 EJ=[" ",",","?","!",";"],SJ=new wJ(20),AJ=(e,t,n)=>{t=t||"",n=n||"";const r=EJ.filter(c=>t.indexOf(c)<0&&n.indexOf(c)<0);if(r.length===0)return!0;const o=SJ.getRegExp(`(${r.map(c=>c==="?"?"\\?":c).join("|")})`);let s=!o.test(e);if(!s){const c=e.indexOf(n);c>0&&!o.test(e.substring(0,c))&&(s=!0)}return s},iC=(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 c,u="";for(let f=s;f<r.length;++f)if(f!==s&&(u+=n),u+=r[f],c=o[u],c!==void 0){if(["string","number","boolean"].indexOf(typeof c)>-1&&f<r.length-1)continue;s+=f-s+1;break}o=c}return o},$h=e=>e?.replace("_","-"),OJ={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 ty{constructor(t,n={}){this.init(t,n)}init(t,n={}){this.prefix=n.prefix||"i18next:",this.logger=t||OJ,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:(tt(t[0])&&(t[0]=`${r}${this.prefix} ${t[0]}`),this.logger[n](t))}create(t){return new ty(this.logger,{prefix:`${this.prefix}:${t}:`,...this.options})}clone(t){return t=t||this.options,t.prefix=t.prefix||this.prefix,new ty(this.logger,t)}}var Ji=new ty;let bx=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 c=0;c<s;c++)o(...n)}),this.observers["*"]&&Array.from(this.observers["*"].entries()).forEach(([o,s])=>{for(let c=0;c<s;c++)o.apply(o,[t,...n])})}};class cL extends bx{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,c=o.ignoreJSONStructure!==void 0?o.ignoreJSONStructure:this.options.ignoreJSONStructure;let u;t.indexOf(".")>-1?u=t.split("."):(u=[t,n],r&&(Array.isArray(r)?u.push(...r):tt(r)&&s?u.push(...r.split(s)):u.push(r)));const f=ey(this.data,u);return!f&&!n&&!r&&t.indexOf(".")>-1&&(t=u[0],n=u[1],r=u.slice(2).join(".")),f||!c||!tt(r)?f:iC(this.data?.[t]?.[n],r,s)}addResource(t,n,r,o,s={silent:!1}){const c=s.keySeparator!==void 0?s.keySeparator:this.options.keySeparator;let u=[t,n];r&&(u=u.concat(c?r.split(c):r)),t.indexOf(".")>-1&&(u=t.split("."),o=n,n=u[1]),this.addNamespaces(n),lL(this.data,u,o),s.silent||this.emit("added",t,n,r,o)}addResources(t,n,r,o={silent:!1}){for(const s in r)(tt(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,c={silent:!1,skipCopy:!1}){let u=[t,n];t.indexOf(".")>-1&&(u=t.split("."),o=r,r=n,n=u[1]),this.addNamespaces(n);let f=ey(this.data,u)||{};c.skipCopy||(r=JSON.parse(JSON.stringify(r))),o?b9(f,r,s):f={...f,...r},lL(this.data,u,f),c.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 y9={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 x9=Symbol("i18next/PATH_KEY");function DJ(){const e=[],t=Object.create(null);let n;return t.get=(r,o)=>(n?.revoke?.(),o===x9?e:(e.push(o),n=Proxy.revocable(r,t),n.proxy)),Proxy.revocable(Object.create(null),t).proxy}function oC(e,t){const{[x9]:n}=e(DJ());return n.join(t?.keySeparator??".")}const uL={},hE=e=>!tt(e)&&typeof e!="boolean"&&typeof e!="number";class ny extends bx{constructor(t,n={}){super(),gJ(["resourceStore","languageUtils","pluralResolver","interpolator","backendConnector","i18nFormat","utils"],t,this),this.options=n,this.options.keySeparator===void 0&&(this.options.keySeparator="."),this.logger=Ji.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=hE(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 c=r&&t.indexOf(r)>-1,u=!this.options.userDefinedKeySeparator&&!n.keySeparator&&!this.options.userDefinedNsSeparator&&!n.nsSeparator&&!AJ(t,r,o);if(c&&!u){const f=t.match(this.interpolator.nestingRegexp);if(f&&f.length>0)return{key:t,namespaces:tt(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:tt(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=oC(t,{...this.options,...o})),Array.isArray(t)||(t=[String(t)]);const s=o.returnDetails!==void 0?o.returnDetails:this.options.returnDetails,c=o.keySeparator!==void 0?o.keySeparator:this.options.keySeparator,{key:u,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 h=o.lng||this.language,y=o.appendNamespaceToCIMode||this.options.appendNamespaceToCIMode;if(h?.toLowerCase()==="cimode")return y?s?{res:`${m}${g}${u}`,usedKey:u,exactUsedKey:u,usedLng:h,usedNS:m,usedParams:this.getUsedParamsDetails(o)}:`${m}${g}${u}`:s?{res:u,usedKey:u,exactUsedKey:u,usedLng:h,usedNS:m,usedParams:this.getUsedParamsDetails(o)}:u;const x=this.resolve(t,o);let S=x?.res;const N=x?.usedKey||u,w=x?.exactUsedKey||u,D=["[object Number]","[object Function]","[object RegExp]"],C=o.joinArrays!==void 0?o.joinArrays:this.options.joinArrays,j=!this.i18nFormat||this.i18nFormat.handleAsObject,P=o.count!==void 0&&!tt(o.count),A=ny.hasDefaultValue(o),T=P?this.pluralResolver.getSuffix(h,o.count,o):"",R=o.ordinal&&P?this.pluralResolver.getSuffix(h,o.count,{ordinal:!1}):"",M=P&&!o.ordinal&&o.count===0,$=M&&o[`defaultValue${this.options.pluralSeparator}zero`]||o[`defaultValue${T}`]||o[`defaultValue${R}`]||o.defaultValue;let z=S;j&&!S&&A&&(z=$);const U=hE(z),V=Object.prototype.toString.apply(z);if(j&&z&&U&&D.indexOf(V)<0&&!(tt(C)&&Array.isArray(z))){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(N,z,{...o,ns:f}):`key '${u} (${this.language})' returned an object instead of string.`;return s?(x.res=F,x.usedParams=this.getUsedParamsDetails(o),x):F}if(c){const F=Array.isArray(z),X=F?[]:{},ee=F?w:N;for(const q in z)if(Object.prototype.hasOwnProperty.call(z,q)){const Q=`${ee}${c}${q}`;A&&!S?X[q]=this.translate(Q,{...o,defaultValue:hE($)?$[q]:void 0,joinArrays:!1,ns:f}):X[q]=this.translate(Q,{...o,joinArrays:!1,ns:f}),X[q]===Q&&(X[q]=z[q])}S=X}}else if(j&&tt(C)&&Array.isArray(S))S=S.join(C),S&&(S=this.extendTranslation(S,t,o,r));else{let F=!1,X=!1;!this.isValidLookup(S)&&A&&(F=!0,S=$),this.isValidLookup(S)||(X=!0,S=u);const q=(o.missingKeyNoValueFallbackToKey||this.options.missingKeyNoValueFallbackToKey)&&X?void 0:S,Q=A&&$!==S&&this.options.updateMissing;if(X||F||Q){if(this.logger.log(Q?"updateKey":"missingKey",h,m,u,Q?$:S),c){const I=this.resolve(u,{...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 G=[];const ne=this.languageUtils.getFallbackCodes(this.options.fallbackLng,o.lng||this.language);if(this.options.saveMissingTo==="fallback"&&ne&&ne[0])for(let I=0;I<ne.length;I++)G.push(ne[I]);else this.options.saveMissingTo==="all"?G=this.languageUtils.toResolveHierarchy(o.lng||this.language):G.push(o.lng||this.language);const te=(I,H,Y)=>{const re=A&&Y!==S?Y:q;this.options.missingKeyHandler?this.options.missingKeyHandler(I,m,H,re,Q,o):this.backendConnector?.saveMissing&&this.backendConnector.saveMissing(I,m,H,re,Q,o),this.emit("missingKey",I,m,H,S)};this.options.saveMissing&&(this.options.saveMissingPlurals&&P?G.forEach(I=>{const H=this.pluralResolver.getSuffixes(I,o);M&&o[`defaultValue${this.options.pluralSeparator}zero`]&&H.indexOf(`${this.options.pluralSeparator}zero`)<0&&H.push(`${this.options.pluralSeparator}zero`),H.forEach(Y=>{te([I],u+Y,o[`defaultValue${Y}`]||$)})}):te(G,u,$))}S=this.extendTranslation(S,t,o,x,r),X&&S===u&&this.options.appendNamespaceToMissingKey&&(S=`${m}${g}${u}`),(X||F)&&this.options.parseMissingKeyHandler&&(S=this.options.parseMissingKeyHandler(this.options.appendNamespaceToMissingKey?`${m}${g}${u}`:u,F?S:void 0,o))}return s?(x.res=S,x.usedParams=this.getUsedParamsDetails(o),x):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=tt(t)&&(r?.interpolation?.skipOnVariables!==void 0?r.interpolation.skipOnVariables:this.options.interpolation.skipOnVariables);let m;if(f){const h=t.match(this.interpolator.nestingRegexp);m=h&&h.length}let g=r.replace&&!tt(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 h=t.match(this.interpolator.nestingRegexp),y=h&&h.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,(...h)=>s?.[0]===h[0]&&!r.context?(this.logger.warn(`It seems you are nesting recursively key: ${h[0]} in key: ${n[0]}`),null):this.translate(...h,n),r)),r.interpolation&&this.interpolator.reset()}const c=r.postProcess||this.options.postProcess,u=tt(c)?[c]:c;return t!=null&&u?.length&&r.applyPostProcessor!==!1&&(t=y9.handle(u,t,n,this.options&&this.options.postProcessPassResolved?{i18nResolved:{...o,usedParams:this.getUsedParamsDetails(r)},...r}:r,this)),t}resolve(t,n={}){let r,o,s,c,u;return tt(t)&&(t=[t]),t.forEach(f=>{if(this.isValidLookup(r))return;const m=this.extractFromKey(f,n),g=m.key;o=g;let h=m.namespaces;this.options.fallbackNS&&(h=h.concat(this.options.fallbackNS));const y=n.count!==void 0&&!tt(n.count),x=y&&!n.ordinal&&n.count===0,S=n.context!==void 0&&(tt(n.context)||typeof n.context=="number")&&n.context!=="",N=n.lngs?n.lngs:this.languageUtils.toResolveHierarchy(n.lng||this.language,n.fallbackLng);h.forEach(w=>{this.isValidLookup(r)||(u=w,!uL[`${N[0]}-${w}`]&&this.utils?.hasLoadedNamespace&&!this.utils?.hasLoadedNamespace(u)&&(uL[`${N[0]}-${w}`]=!0,this.logger.warn(`key "${o}" for languages "${N.join(", ")}" won't get resolved as namespace "${u}" 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!!!")),N.forEach(D=>{if(this.isValidLookup(r))return;c=D;const C=[g];if(this.i18nFormat?.addLookupKeys)this.i18nFormat.addLookupKeys(C,g,D,w,n);else{let P;y&&(P=this.pluralResolver.getSuffix(D,n.count,n));const A=`${this.options.pluralSeparator}zero`,T=`${this.options.pluralSeparator}ordinal${this.options.pluralSeparator}`;if(y&&(n.ordinal&&P.indexOf(T)===0&&C.push(g+P.replace(T,this.options.pluralSeparator)),C.push(g+P),x&&C.push(g+A)),S){const R=`${g}${this.options.contextSeparator||"_"}${n.context}`;C.push(R),y&&(n.ordinal&&P.indexOf(T)===0&&C.push(R+P.replace(T,this.options.pluralSeparator)),C.push(R+P),x&&C.push(R+A))}}let j;for(;j=C.pop();)this.isValidLookup(r)||(s=j,r=this.getResource(D,w,j,n))}))})}),{res:r,usedKey:o,exactUsedKey:s,usedLng:c,usedNS:u}}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&&!tt(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 dL{constructor(t){this.options=t,this.supportedLngs=this.options.supportedLngs||!1,this.logger=Ji.create("languageUtils")}getScriptPartFromCode(t){if(t=$h(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=$h(t),!t||t.indexOf("-")<0)return t;const n=t.split("-");return this.formatLanguageCode(n[0])}formatLanguageCode(t){if(tt(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(c=>{if(c===s)return c;if(!(c.indexOf("-")<0&&s.indexOf("-")<0)&&(c.indexOf("-")>0&&s.indexOf("-")<0&&c.substring(0,c.indexOf("-"))===s||c.indexOf(s)===0&&s.length>1))return c})}),n||(n=this.getFallbackCodes(this.options.fallbackLng)[0]),n}getFallbackCodes(t,n){if(!t)return[];if(typeof t=="function"&&(t=t(n)),tt(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=c=>{c&&(this.isSupportedCode(c)?o.push(c):this.logger.warn(`rejecting language code not found in supportedLngs: ${c}`))};return tt(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))):tt(t)&&s(this.formatLanguageCode(t)),r.forEach(c=>{o.indexOf(c)<0&&s(this.formatLanguageCode(c))}),o}}const fL={zero:0,one:1,two:2,few:3,many:4,other:5},mL={select:e=>e===1?"one":"other",resolvedOptions:()=>({pluralCategories:["one","other"]})};class CJ{constructor(t,n={}){this.languageUtils=t,this.options=n,this.logger=Ji.create("pluralResolver"),this.pluralRulesCache={}}clearCache(){this.pluralRulesCache={}}getRule(t,n={}){const r=$h(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 c;try{c=new Intl.PluralRules(r,{type:o})}catch{if(typeof Intl>"u")return this.logger.error("No Intl support, please use an Intl polyfill!"),mL;if(!t.match(/-|_/))return mL;const f=this.languageUtils.getLanguagePartFromCode(t);c=this.getRule(f,n)}return this.pluralRulesCache[s]=c,c}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)=>fL[o]-fL[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 hL=(e,t,n,r=".",o=!0)=>{let s=yJ(e,t,n);return!s&&o&&tt(n)&&(s=iC(e,n,r),s===void 0&&(s=iC(t,n,r))),s},pE=e=>e.replace(/\$/g,"$$$$");class pL{constructor(t={}){this.logger=Ji.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:c,suffix:u,suffixEscaped:f,formatSeparator:m,unescapeSuffix:g,unescapePrefix:h,nestingPrefix:y,nestingPrefixEscaped:x,nestingSuffix:S,nestingSuffixEscaped:N,nestingOptionsSeparator:w,maxReplaces:D,alwaysFormat:C}=t.interpolation;this.escape=n!==void 0?n:NJ,this.escapeValue=r!==void 0?r:!0,this.useRawValueToEscape=o!==void 0?o:!1,this.prefix=s?dc(s):c||"{{",this.suffix=u?dc(u):f||"}}",this.formatSeparator=m||",",this.unescapePrefix=g?"":h||"-",this.unescapeSuffix=this.unescapePrefix?"":g||"",this.nestingPrefix=y?dc(y):x||dc("$t("),this.nestingSuffix=S?dc(S):N||dc(")"),this.nestingOptionsSeparator=w||",",this.maxReplaces=D||1e3,this.alwaysFormat=C!==void 0?C:!1,this.resetRegExp()}reset(){this.options&&this.init(this.options)}resetRegExp(){const t=(n,r)=>n?.source===r?(n.lastIndex=0,n):new RegExp(r,"g");this.regexp=t(this.regexp,`${this.prefix}(.+?)${this.suffix}`),this.regexpUnescape=t(this.regexpUnescape,`${this.prefix}${this.unescapePrefix}(.+?)${this.unescapeSuffix}${this.suffix}`),this.nestingRegexp=t(this.nestingRegexp,`${this.nestingPrefix}((?:[^()"']+|"[^"]*"|'[^']*'|\\((?:[^()]|"[^"]*"|'[^']*')*\\))*?)${this.nestingSuffix}`)}interpolate(t,n,r,o){let s,c,u;const f=this.options&&this.options.interpolation&&this.options.interpolation.defaultVariables||{},m=x=>{if(x.indexOf(this.formatSeparator)<0){const D=hL(n,f,x,this.options.keySeparator,this.options.ignoreJSONStructure);return this.alwaysFormat?this.format(D,void 0,r,{...o,...n,interpolationkey:x}):D}const S=x.split(this.formatSeparator),N=S.shift().trim(),w=S.join(this.formatSeparator).trim();return this.format(hL(n,f,N,this.options.keySeparator,this.options.ignoreJSONStructure),w,r,{...o,...n,interpolationkey:N})};this.resetRegExp();const g=o?.missingInterpolationHandler||this.options.missingInterpolationHandler,h=o?.interpolation?.skipOnVariables!==void 0?o.interpolation.skipOnVariables:this.options.interpolation.skipOnVariables;return[{regex:this.regexpUnescape,safeValue:x=>pE(x)},{regex:this.regexp,safeValue:x=>this.escapeValue?pE(this.escape(x)):pE(x)}].forEach(x=>{for(u=0;s=x.regex.exec(t);){const S=s[1].trim();if(c=m(S),c===void 0)if(typeof g=="function"){const w=g(t,s,o);c=tt(w)?w:""}else if(o&&Object.prototype.hasOwnProperty.call(o,S))c="";else if(h){c=s[0];continue}else this.logger.warn(`missed to pass in variable ${S} for interpolating ${t}`),c="";else!tt(c)&&!this.useRawValueToEscape&&(c=iL(c));const N=x.safeValue(c);if(t=t.replace(s[0],N),h?(x.regex.lastIndex+=c.length,x.regex.lastIndex-=s[0].length):x.regex.lastIndex=0,u++,u>=this.maxReplaces)break}}),t}nest(t,n,r={}){let o,s,c;const u=(f,m)=>{const g=this.nestingOptionsSeparator;if(f.indexOf(g)<0)return f;const h=f.split(new RegExp(`${dc(g)}[ ]*{`));let y=`{${h[1]}`;f=h[0],y=this.interpolate(y,c);const x=y.match(/'/g),S=y.match(/"/g);((x?.length??0)%2===0&&!S||(S?.length??0)%2!==0)&&(y=y.replace(/'/g,'"'));try{c=JSON.parse(y),m&&(c={...m,...c})}catch(N){return this.logger.warn(`failed parsing options string in nesting for key ${f}`,N),`${f}${g}${y}`}return c.defaultValue&&c.defaultValue.indexOf(this.prefix)>-1&&delete c.defaultValue,f};for(;o=this.nestingRegexp.exec(t);){let f=[];c={...r},c=c.replace&&!tt(c.replace)?c.replace:c,c.applyPostProcessor=!1,delete c.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(u.call(this,o[1].trim(),c),c),s&&o[0]===t&&!tt(s))return s;tt(s)||(s=iL(s)),s||(this.logger.warn(`missed to resolve ${o[1]} for nesting ${t}`),s=""),f.length&&(s=f.reduce((g,h)=>this.format(g,h,r.lng,{...r,interpolationkey:o[1].trim()}),s.trim())),t=t.replace(o[0],s),this.regexp.lastIndex=0}return t}}const TJ=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(c=>{if(c){const[u,...f]=c.split(":"),m=f.join(":").trim().replace(/^'+|'+$/g,""),g=u.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}},gL=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 c=r+JSON.stringify(s);let u=t[c];return u||(u=e($h(r),o),t[c]=u),u(n)}},_J=e=>(t,n,r)=>e($h(n),r)(t);class jJ{constructor(t={}){this.logger=Ji.create("formatter"),this.options=t,this.init(t)}init(t,n={interpolation:{}}){this.formatSeparator=n.interpolation.formatSeparator||",";const r=n.cacheInBuiltFormats?gL:_J;this.formats={number:r((o,s)=>{const c=new Intl.NumberFormat(o,{...s});return u=>c.format(u)}),currency:r((o,s)=>{const c=new Intl.NumberFormat(o,{...s,style:"currency"});return u=>c.format(u)}),datetime:r((o,s)=>{const c=new Intl.DateTimeFormat(o,{...s});return u=>c.format(u)}),relativetime:r((o,s)=>{const c=new Intl.RelativeTimeFormat(o,{...s});return u=>c.format(u,s.range||"day")}),list:r((o,s)=>{const c=new Intl.ListFormat(o,{...s});return u=>c.format(u)})}}add(t,n){this.formats[t.toLowerCase().trim()]=n}addCached(t,n){this.formats[t.toLowerCase().trim()]=gL(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(u=>u.indexOf(")")>-1)){const u=s.findIndex(f=>f.indexOf(")")>-1);s[0]=[s[0],...s.splice(1,u)].join(this.formatSeparator)}return s.reduce((u,f)=>{const{formatName:m,formatOptions:g}=TJ(f);if(this.formats[m]){let h=u;try{const y=o?.formatParams?.[o.interpolationkey]||{},x=y.locale||y.lng||o.locale||o.lng||r;h=this.formats[m](u,x,{...g,...o,...y})}catch(y){this.logger.warn(y)}return h}else this.logger.warn(`there was no format function for ${m}`);return u},t)}}const RJ=(e,t)=>{e.pending[t]!==void 0&&(delete e.pending[t],e.pendingCount--)};class PJ extends bx{constructor(t,n,r,o={}){super(),this.backend=t,this.store=n,this.services=r,this.languageUtils=r.languageUtils,this.options=o,this.logger=Ji.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={},c={},u={},f={};return t.forEach(m=>{let g=!0;n.forEach(h=>{const y=`${m}|${h}`;!r.reload&&this.store.hasResourceBundle(m,h)?this.state[y]=2:this.state[y]<0||(this.state[y]===1?c[y]===void 0&&(c[y]=!0):(this.state[y]=1,g=!1,c[y]===void 0&&(c[y]=!0),s[y]===void 0&&(s[y]=!0),f[h]===void 0&&(f[h]=!0)))}),g||(u[m]=!0)}),(Object.keys(s).length||Object.keys(c).length)&&this.queue.push({pending:c,pendingCount:Object.keys(c).length,loaded:{},errors:[],callback:o}),{toLoad:Object.keys(s),pending:Object.keys(c),toLoadLanguages:Object.keys(u),toLoadNamespaces:Object.keys(f)}}loaded(t,n,r){const o=t.split("|"),s=o[0],c=o[1];n&&this.emit("failedLoading",s,c,n),!n&&r&&this.store.addResourceBundle(s,c,r,void 0,void 0,{skipCopy:!0}),this.state[t]=n?-1:2,n&&r&&(this.state[t]=0);const u={};this.queue.forEach(f=>{bJ(f.loaded,[s],c),RJ(f,t),n&&f.errors.push(n),f.pendingCount===0&&!f.done&&(Object.keys(f.loaded).forEach(m=>{u[m]||(u[m]={});const g=f.loaded[m];g.length&&g.forEach(h=>{u[m][h]===void 0&&(u[m][h]=!0)})}),f.done=!0,f.errors.length?f.callback(f.errors):f.callback())}),this.emit("loaded",u),this.queue=this.queue.filter(f=>!f.done)}read(t,n,r,o=0,s=this.retryTimeout,c){if(!t.length)return c(null,{});if(this.readingCalls>=this.maxParallelReads){this.waitingReads.push({lng:t,ns:n,fcName:r,tried:o,wait:s,callback:c});return}this.readingCalls++;const u=(m,g)=>{if(this.readingCalls--,this.waitingReads.length>0){const h=this.waitingReads.shift();this.read(h.lng,h.ns,h.fcName,h.tried,h.wait,h.callback)}if(m&&g&&o<this.maxRetries){setTimeout(()=>{this.read.call(this,t,n,r,o+1,s*2,c)},s);return}c(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=>u(null,g)).catch(u):u(null,m)}catch(m){u(m)}return}return f(t,n,u)}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();tt(t)&&(t=this.languageUtils.toResolveHierarchy(t)),tt(n)&&(n=[n]);const s=this.queueLoad(t,n,r,o);if(!s.toLoad.length)return s.pending.length||o(),null;s.toLoad.forEach(c=>{this.loadOne(c)})}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,(c,u)=>{c&&this.logger.warn(`${n}loading namespace ${s} for language ${o} failed`,c),!c&&u&&this.logger.log(`${n}loaded namespace ${s} for language ${o}`,u),this.loaded(t,c,u)})}saveMissing(t,n,r,o,s,c={},u=()=>{}){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={...c,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(h=>u(null,h)).catch(u):u(null,g)}catch(g){u(g)}else m(t,n,r,o,u,f)}!t||!t[0]||this.store.addResource(t[0],n,r,o)}}}const gE=()=>({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]),tt(e[1])&&(t.defaultValue=e[1]),tt(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}),vL=e=>(tt(e.ns)&&(e.ns=[e.ns]),tt(e.fallbackLng)&&(e.fallbackLng=[e.fallbackLng]),tt(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),pb=()=>{},MJ=e=>{Object.getOwnPropertyNames(Object.getPrototypeOf(e)).forEach(n=>{typeof e[n]=="function"&&(e[n]=e[n].bind(e))})},N9="__i18next_supportNoticeShown",kJ=()=>typeof globalThis<"u"&&!!globalThis[N9],IJ=()=>{typeof globalThis<"u"&&(globalThis[N9]=!0)},LJ=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 Dh extends bx{constructor(t={},n){if(super(),this.options=vL(t),this.services={},this.logger=Ji,this.modules={external:[]},MJ(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&&(tt(t.ns)?t.defaultNS=t.ns:t.ns.indexOf("translation")<0&&(t.defaultNS=t.ns[0]));const r=gE();this.options={...r,...this.options,...vL(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&&!LJ(this)&&!kJ()&&(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 💙"),IJ());const o=m=>m?typeof m=="function"?new m:m:null;if(!this.options.isClone){this.modules.logger?Ji.init(o(this.modules.logger),this.options):Ji.init(null,this.options);let m;this.modules.formatter?m=this.modules.formatter:m=jJ;const g=new dL(this.options);this.store=new cL(this.options.resources,this.options);const h=this.services;h.logger=Ji,h.resourceStore=this.store,h.languageUtils=g,h.pluralResolver=new CJ(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)&&(h.formatter=o(m),h.formatter.init&&h.formatter.init(h,this.options),this.options.interpolation.format=h.formatter.format.bind(h.formatter)),h.interpolator=new pL(this.options),h.utils={hasLoadedNamespace:this.hasLoadedNamespace.bind(this)},h.backendConnector=new PJ(o(this.modules.backend),h.resourceStore,h,this.options),h.backendConnector.on("*",(x,...S)=>{this.emit(x,...S)}),this.modules.languageDetector&&(h.languageDetector=o(this.modules.languageDetector),h.languageDetector.init&&h.languageDetector.init(h,this.options.detection,this.options)),this.modules.i18nFormat&&(h.i18nFormat=o(this.modules.i18nFormat),h.i18nFormat.init&&h.i18nFormat.init(this)),this.translator=new ny(this.services,this.options),this.translator.on("*",(x,...S)=>{this.emit(x,...S)}),this.modules.external.forEach(x=>{x.init&&x.init(this)})}if(this.format=this.options.interpolation.format,n||(n=pb),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 u=sh(),f=()=>{const m=(g,h)=>{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),u.resolve(h),n(g,h)};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),u}loadResources(t,n=pb){let r=n;const o=tt(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=[],c=u=>{if(!u||u==="cimode")return;this.services.languageUtils.toResolveHierarchy(u).forEach(m=>{m!=="cimode"&&s.indexOf(m)<0&&s.push(m)})};o?c(o):this.services.languageUtils.getFallbackCodes(this.options.fallbackLng).forEach(f=>c(f)),this.options.preload?.forEach?.(u=>c(u)),this.services.backendConnector.load(s,this.options.ns,u=>{!u&&!this.resolvedLanguage&&this.language&&this.setResolvedLanguage(this.language),r(u)})}else r(null)}reloadResources(t,n,r){const o=sh();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=pb),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"&&y9.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=sh();this.emit("languageChanging",t);const o=u=>{this.language=u,this.languages=this.services.languageUtils.toResolveHierarchy(u),this.resolvedLanguage=void 0,this.setResolvedLanguage(u)},s=(u,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(u,(...m)=>this.t(...m))},c=u=>{!t&&!u&&this.services.languageDetector&&(u=[]);const f=tt(u)?u:u&&u[0],m=this.store.hasLanguageSomeTranslations(f)?f:this.services.languageUtils.getBestMatchFromCodes(tt(u)?[u]:u);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?c(this.services.languageDetector.detect()):!t&&this.services.languageDetector&&this.services.languageDetector.async?this.services.languageDetector.detect.length===0?this.services.languageDetector.detect().then(c):this.services.languageDetector.detect(c):c(t),r}getFixedT(t,n,r){const o=(s,c,...u)=>{let f;typeof c!="object"?f=this.options.overloadTranslationOptionHandler([s,c].concat(u)):f={...c},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(h=>(typeof h=="function"&&(h=oC(h,{...this.options,...c})),`${f.keyPrefix}${m}${h}`)):(typeof s=="function"&&(s=oC(s,{...this.options,...c})),g=f.keyPrefix?`${f.keyPrefix}${m}${s}`:s),this.t(g,f)};return tt(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 c=(u,f)=>{const m=this.services.backendConnector.state[`${u}|${f}`];return m===-1||m===0||m===2};if(n.precheck){const u=n.precheck(this,c);if(u!==void 0)return u}return!!(this.hasResourceBundle(r,t)||!this.services.backendConnector.backend||this.options.resources&&!this.options.partialBundledLanguages||c(r,t)&&(!o||c(s,t)))}loadNamespaces(t,n){const r=sh();return this.options.ns?(tt(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=sh();tt(t)&&(t=[t]);const o=this.options.preload||[],s=t.filter(c=>o.indexOf(c)<0&&this.services.languageUtils.isSupportedCode(c));return s.length?(this.options.preload=o.concat(s),this.loadResources(c=>{r.resolve(),n&&n(c)}),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 dL(gE());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 Dh(t,n);return r.createInstance=Dh.createInstance,r}cloneInstance(t={},n=pb){const r=t.forkResourceStore;r&&delete t.forkResourceStore;const o={...this.options,...t,isClone:!0},s=new Dh(o);if((t.debug!==void 0||t.prefix!==void 0)&&(s.logger=s.logger.clone(t)),["store","services","language"].forEach(u=>{s[u]=this[u]}),s.services={...this.services},s.services.utils={hasLoadedNamespace:s.hasLoadedNamespace.bind(s)},r){const u=Object.keys(this.store.data).reduce((f,m)=>(f[m]={...this.store.data[m]},f[m]=Object.keys(f[m]).reduce((g,h)=>(g[h]={...f[m][h]},g),f[m]),f),{});s.store=new cL(u,o),s.services.resourceStore=s.store}if(t.interpolation){const f={...gE().interpolation,...this.options.interpolation,...t.interpolation},m={...o,interpolation:f};s.services.interpolator=new pL(m)}return s.translator=new ny(s.services,o),s.translator.on("*",(u,...f)=>{s.emit(u,...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 br=Dh.createInstance();br.createInstance;br.dir;br.init;br.loadResources;br.reloadResources;br.use;br.changeLanguage;br.getFixedT;br.t;br.exists;br.setDefaultNamespace;br.hasLoadedNamespace;br.loadNamespaces;br.loadLanguages;const{slice:VJ,forEach:$J}=[];function BJ(e){return $J.call(VJ.call(arguments,1),t=>{if(t)for(const n in t)e[n]===void 0&&(e[n]=t[n])}),e}function zJ(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 bL=/^[\u0009\u0020-\u007e\u0080-\u00ff]+$/,UJ=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 c=r.maxAge-0;if(Number.isNaN(c))throw new Error("maxAge should be a Number");s+=`; Max-Age=${Math.floor(c)}`}if(r.domain){if(!bL.test(r.domain))throw new TypeError("option domain is invalid");s+=`; Domain=${r.domain}`}if(r.path){if(!bL.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},yL={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=UJ(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 qJ={name:"cookie",lookup(e){let{lookupCookie:t}=e;if(t&&typeof document<"u")return yL.read(t)||void 0},cacheUserLanguage(e,t){let{lookupCookie:n,cookieMinutes:r,cookieDomain:o,cookieOptions:s}=t;n&&typeof document<"u"&&yL.create(n,e,r,o,s)}},HJ={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 c=0;c<s.length;c++){const u=s[c].indexOf("=");u>0&&s[c].substring(0,u)===t&&(n=s[c].substring(u+1))}}return n}},FJ={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 c=s.split("&");for(let u=0;u<c.length;u++){const f=c[u].indexOf("=");f>0&&c[u].substring(0,f)===t&&(r=c[u].substring(f+1))}}if(r)return r;if(!r&&n>-1){const c=o.match(/\/([a-zA-Z-]*)/g);return Array.isArray(c)?c[typeof n=="number"?n:0]?.replace("/",""):void 0}}}return r}};let ud=null;const xL=()=>{if(ud!==null)return ud;try{if(ud=typeof window<"u"&&window.localStorage!==null,!ud)return!1;const e="i18next.translate.boo";window.localStorage.setItem(e,"foo"),window.localStorage.removeItem(e)}catch{ud=!1}return ud};var KJ={name:"localStorage",lookup(e){let{lookupLocalStorage:t}=e;if(t&&xL())return window.localStorage.getItem(t)||void 0},cacheUserLanguage(e,t){let{lookupLocalStorage:n}=t;n&&xL()&&window.localStorage.setItem(n,e)}};let dd=null;const NL=()=>{if(dd!==null)return dd;try{if(dd=typeof window<"u"&&window.sessionStorage!==null,!dd)return!1;const e="i18next.translate.boo";window.sessionStorage.setItem(e,"foo"),window.sessionStorage.removeItem(e)}catch{dd=!1}return dd};var GJ={name:"sessionStorage",lookup(e){let{lookupSessionStorage:t}=e;if(t&&NL())return window.sessionStorage.getItem(t)||void 0},cacheUserLanguage(e,t){let{lookupSessionStorage:n}=t;n&&NL()&&window.sessionStorage.setItem(n,e)}},YJ={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}},QJ={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}},XJ={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}},WJ={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 w9=!1;try{document.cookie,w9=!0}catch{}const E9=["querystring","cookie","localStorage","sessionStorage","navigator","htmlTag"];w9||E9.splice(1,1);const ZJ=()=>({order:E9,lookupQuerystring:"lng",lookupCookie:"i18next",lookupLocalStorage:"i18nextLng",lookupSessionStorage:"i18nextLng",caches:["localStorage"],excludeCacheFor:["cimode"],convertDetectedLanguage:e=>e});class S9{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=BJ(n,this.options||{},ZJ()),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(qJ),this.addDetector(HJ),this.addDetector(KJ),this.addDetector(GJ),this.addDetector(YJ),this.addDetector(QJ),this.addDetector(XJ),this.addDetector(WJ),this.addDetector(FJ)}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&&!zJ(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)}))}}S9.type="languageDetector";const JJ=(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);Rc(o[0])&&(o[0]=`react-i18next:: ${o[0]}`),e?.services?.logger?.warn?e.services.logger.warn(...o):console?.warn&&console.warn(...o)},wL={},A9=(e,t,n,r)=>{Rc(n)&&wL[n]||(Rc(n)&&(wL[n]=new Date),JJ(e,t,n,r))},O9=(e,t)=>()=>{if(e.isInitialized)t();else{const n=()=>{setTimeout(()=>{e.off("initialized",n)},0),t()};e.on("initialized",n)}},sC=(e,t,n)=>{e.loadNamespaces(t,O9(e,n))},EL=(e,t,n,r)=>{if(Rc(n)&&(n=[n]),e.options.preload&&e.options.preload.indexOf(t)>-1)return sC(e,n,r);n.forEach(o=>{e.options.ns.indexOf(o)<0&&e.options.ns.push(o)}),e.loadLanguages(t,O9(e,r))},eee=(e,t,n={})=>!t.languages||!t.languages.length?(A9(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}}),Rc=e=>typeof e=="string",tee=e=>typeof e=="object"&&e!==null,nee=/&(?:amp|#38|lt|#60|gt|#62|apos|#39|quot|#34|nbsp|#160|copy|#169|reg|#174|hellip|#8230|#x2F|#47);/g,ree={"&":"&","&":"&","<":"<","<":"<",">":">",">":">","'":"'","'":"'",""":'"',""":'"'," ":" "," ":" ","©":"©","©":"©","®":"®","®":"®","…":"…","…":"…","/":"/","/":"/"},aee=e=>ree[e],iee=e=>e.replace(nee,aee);let lC={bindI18n:"languageChanged",bindI18nStore:"",transEmptyNodeValue:"",transSupportBasicHtmlNodes:!0,transWrapTextNodes:"",transKeepBasicHtmlNodesFor:["br","strong","i","p"],useSuspense:!0,unescape:iee,transDefaultProps:void 0};const oee=(e={})=>{lC={...lC,...e}},see=()=>lC;let D9;const lee=e=>{D9=e},cee=()=>D9,uee={type:"3rdParty",init(e){oee(e.options.react),lee(e)}},dee=_.createContext();class fee{constructor(){this.usedNamespaces={}}addUsedNamespaces(t){t.forEach(n=>{this.usedNamespaces[n]||(this.usedNamespaces[n]=!0)})}getUsedNamespaces(){return Object.keys(this.usedNamespaces)}}var vE={exports:{}},bE={},SL;function mee(){if(SL)return bE;SL=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(x,S){return x===S&&(x!==0||1/x===1/S)||x!==x&&S!==S}function t(x,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 N=S();if(!h){var w=S();s(N,w)||(console.error("The result of getSnapshot should be cached to avoid an infinite loop"),h=!0)}w=c({inst:{value:N,getSnapshot:S}});var D=w[0].inst,C=w[1];return f(function(){D.value=N,D.getSnapshot=S,n(D)&&C({inst:D})},[x,N,S]),u(function(){return n(D)&&C({inst:D}),x(function(){n(D)&&C({inst:D})})},[x]),m(N),N}function n(x){var S=x.getSnapshot;x=x.value;try{var N=S();return!s(x,N)}catch{return!0}}function r(x,S){return S()}typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(Error());var o=df(),s=typeof Object.is=="function"?Object.is:e,c=o.useState,u=o.useEffect,f=o.useLayoutEffect,m=o.useDebugValue,g=!1,h=!1,y=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?r:t;bE.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())})(),bE}var AL;function hee(){return AL||(AL=1,vE.exports=mee()),vE.exports}var C9=hee();const pee=(e,t)=>Rc(t)?t:tee(t)&&Rc(t.defaultValue)?t.defaultValue:Array.isArray(e)?e[e.length-1]:e,gee={t:pee,ready:!1},vee=()=>()=>{},yx=(e,t={})=>{const{i18n:n}=t,{i18n:r,defaultNS:o}=_.useContext(dee)||{},s=n||r||cee();s&&!s.reportNamespaces&&(s.reportNamespaces=new fee),s||A9(s,"NO_I18NEXT_INSTANCE","useTranslation: You will need to pass in an i18next instance by using initReactI18next");const c=_.useMemo(()=>({...see(),...s?.options?.react,...t}),[s,t]),{useSuspense:u,keyPrefix:f}=c,m=o||s?.options?.defaultNS,g=Rc(m)?[m]:m||["translation"],h=_.useMemo(()=>g,g);s?.reportNamespaces?.addUsedNamespaces?.(h);const y=_.useRef(0),x=_.useCallback($=>{if(!s)return vee;const{bindI18n:z,bindI18nStore:U}=c,V=()=>{y.current+=1,$()};return z&&s.on(z,V),U&&s.store.on(U,V),()=>{z&&z.split(" ").forEach(F=>s.off(F,V)),U&&U.split(" ").forEach(F=>s.store.off(F,V))}},[s,c]),S=_.useRef(),N=_.useCallback(()=>{if(!s)return gee;const $=!!(s.isInitialized||s.initializedStoreOnce)&&h.every(ee=>eee(ee,s,c)),z=t.lng||s.language,U=y.current,V=S.current;if(V&&V.ready===$&&V.lng===z&&V.keyPrefix===f&&V.revision===U)return V;const X={t:s.getFixedT(z,c.nsMode==="fallback"?h:h[0],f),ready:$,lng:z,keyPrefix:f,revision:U};return S.current=X,X},[s,h,f,c,t.lng]),[w,D]=_.useState(0),{t:C,ready:j}=C9.useSyncExternalStore(x,N,N);_.useEffect(()=>{if(s&&!j&&!u){const $=()=>D(z=>z+1);t.lng?EL(s,t.lng,h,$):sC(s,h,$)}},[s,t.lng,h,j,u,w]);const P=s||{},A=_.useRef(null),T=_.useRef(),R=$=>{const z=Object.getOwnPropertyDescriptors($);z.__original&&delete z.__original;const U=Object.create(Object.getPrototypeOf($),z);if(!Object.prototype.hasOwnProperty.call(U,"__original"))try{Object.defineProperty(U,"__original",{value:$,writable:!1,enumerable:!1,configurable:!1})}catch{}return U},M=_.useMemo(()=>{const $=P,z=$?.language;let U=$;$&&(A.current&&A.current.__original===$?T.current!==z?(U=R($),A.current=U,T.current=z):U=A.current:(U=R($),A.current=U,T.current=z));const V=[C,U,j];return V.t=C,V.i18n=U,V.ready=j,V},[C,P,j,P.resolvedLanguage,P.language,P.languages]);if(s&&u&&!j)throw new Promise($=>{const z=()=>$();t.lng?EL(s,t.lng,h,z):sC(s,h,z)});return M},bee={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:"全部类型"}},yee={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"}},xee={common:{save:"حفظ",cancel:"إلغاء",delete:"حذف",edit:"تعديل",add:"إضافة",search:"بحث",filter:"تصفية",export:"تصدير",import:"استيراد",refresh:"تحديث",confirm:"تأكيد",close:"إغلاق",loading:"جاري التحميل...",noData:"لا توجد بيانات",success:"تمت العملية بنجاح",error:"فشلت العملية",warning:"تحذير",info:"معلومات",all:"الكل",enable:"تفعيل",disable:"تعطيل",active:"نشط",inactive:"غير نشط",status:"الحالة",actions:"الإجراءات",createdAt:"تاريخ الإنشاء",updatedAt:"تاريخ التحديث",version:"الإصدار",description:"الوصف",name:"الاسم",type:"النوع",language:"اللغة",jurisdiction:"الولاية القضائية",assetType:"نوع الأصل"},auth:{login:"تسجيل دخول المسؤول",loginSubtitle:"سجّل الدخول باستخدام حساب NAC الخاص بك",email:"البريد الإلكتروني",password:"كلمة المرور",loginButton:"تسجيل الدخول",loggingIn:"جاري تسجيل الدخول...",loginSuccess:"تم تسجيل الدخول بنجاح",loginFailed:"فشل تسجيل الدخول. يرجى التحقق من البريد الإلكتروني وكلمة المرور.",logout:"تسجيل الخروج",logoutSuccess:"تم تسجيل الخروج بنجاح",authNotice:"يستخدم هذا النظام مصادقة NAC الأصلية. يتم تسجيل جميع العمليات في سجلات التدقيق.",verifying:"جاري التحقق من الهوية...",unauthorized:"تم رفض الوصول",adminOnly:"هذا النظام مقيد للمسؤولين فقط."},nav:{dashboard:"الوعي الظرفي",knowledgeBase:"قاعدة المعرفة",crawlers:"مراقبة الزواحف",approvalCases:"حالات الموافقة بالذكاء الاصطناعي",tagEngine:"محرك العلامات",protocolRegistry:"سجل البروتوكولات",auditLog:"الصلاحيات والتدقيق",systemTitle:"محرك معرفة NAC",systemSubtitle:"لوحة الإدارة",adminPanel:"لوحة المسؤول"},dashboard:{title:"الوعي الظرفي العالمي",subtitle:"مراقبة حالة محرك المعرفة في الوقت الفعلي",totalRules:"إجمالي قواعد الامتثال",activeCrawlers:"الزواحف النشطة",pendingReviews:"المراجعات المعلقة",approvalRate:"معدل الموافقة",knowledgeGrowth:"نمو قاعدة المعرفة",jurisdictionCoverage:"تغطية الولايات القضائية",assetDistribution:"توزيع أنواع الأصول",crawlerHealth:"صحة الزواحف",recentActivity:"النشاط الأخير",systemStatus:"حالة النظام",allSystemsNormal:"جميع الأنظمة تعمل بشكل طبيعي",lastUpdated:"آخر تحديث",viewAll:"عرض الكل",rules:"قاعدة",crawlers:"زاحف",cases:"حالة"},knowledgeBase:{title:"إدارة قاعدة المعرفة",subtitle:"إدارة قواعد الامتثال واللوائح وتفاصيل المعاملات",addRule:"إضافة قاعدة",editRule:"تعديل القاعدة",deleteRule:"حذف القاعدة",ruleTitle:"عنوان القاعدة",ruleContent:"محتوى القاعدة",ruleSource:"مصدر القاعدة",effectiveDate:"تاريخ السريان",translationStatus:"حالة الترجمة",original:"النص الأصلي",aiTranslated:"ترجمة ذكاء اصطناعي",humanReviewed:"مراجعة بشرية",addTranslation:"إضافة ترجمة",missingTranslation:"ترجمة مفقودة",languageCoverage:"تغطية اللغات",contentLanguage:"لغة المحتوى",switchLanguage:"تبديل اللغة للعرض",ruleActivated:"تم تفعيل القاعدة",ruleDeactivated:"تم تعطيل القاعدة",searchPlaceholder:"ابحث في عنوان القاعدة أو المحتوى أو المصدر...",filterByJurisdiction:"تصفية حسب الولاية",filterByAssetType:"تصفية حسب نوع الأصل",filterByStatus:"تصفية حسب الحالة",totalRules:"{{count}} قاعدة إجمالاً"},crawlers:{title:"مراقبة وإدارة الزواحف",subtitle:"مراقبة زواحف جمع البيانات الداخلية والخارجية في الوقت الفعلي",internalCrawlers:"الزواحف الداخلية",externalCrawlers:"الزواحف الخارجية",crawlerName:"اسم الزاحف",crawlerType:"نوع الزاحف",lastRun:"آخر تشغيل",nextRun:"التشغيل التالي",successRate:"معدل النجاح",totalCollected:"إجمالي المجموع",triggerNow:"تشغيل الآن",triggering:"جاري التشغيل...",triggered:"تم تشغيل مهمة الزحف",addSource:"إضافة مصدر",editSource:"تعديل المصدر",sourceUrl:"رابط المصدر",frequency:"التكرار",internal:"داخلي",external:"خارجي",running:"يعمل",idle:"خامل",error:"خطأ",logs:"السجلات",viewLogs:"عرض السجلات"},approvals:{title:"مراجعة حالات الموافقة بالذكاء الاصطناعي",subtitle:"مراجعة نتائج الموافقة التلقائية ومراجعة الحالات متوسطة المخاطر يدوياً",caseId:"معرف الحالة",assetName:"اسم الأصل",applicant:"مقدم الطلب",submittedAt:"تاريخ التقديم",riskLevel:"مستوى المخاطر",aiDecision:"قرار الذكاء الاصطناعي",humanDecision:"القرار البشري",reviewStatus:"حالة المراجعة",pendingReview:"في انتظار المراجعة",approved:"موافق عليه",rejected:"مرفوض",underReview:"قيد المراجعة",highRisk:"مخاطر عالية",mediumRisk:"مخاطر متوسطة",lowRisk:"مخاطر منخفضة",approve:"موافقة",reject:"رفض",reviewComment:"تعليق المراجعة",addComment:"أضف تعليق المراجعة...",submitReview:"إرسال المراجعة",aiConfidence:"ثقة الذكاء الاصطناعي",complianceScore:"درجة الامتثال",missingDocuments:"المستندات المفقودة",reviewHistory:"سجل المراجعة",caseDetails:"تفاصيل الحالة",viewDetails:"عرض التفاصيل"},tagEngine:{title:"حوكمة محرك العلامات والقواعد",subtitle:"إدارة قواعد توليد تسلسل العلامات التلقائية",tagId:"معرف العلامة",tagName:"اسم العلامة",tagCategory:"فئة العلامة",tagRule:"قاعدة العلامة",matchPattern:"نمط المطابقة",priority:"الأولوية",addTag:"إضافة علامة",editTag:"تعديل العلامة",deleteTag:"حذف العلامة",testTag:"اختبار العلامة",testInput:"مدخل الاختبار",testResult:"نتيجة الاختبار",jurisdictionDimension:"بُعد الولاية القضائية",assetTypeDimension:"بُعد نوع الأصل",complianceDimension:"بُعد الامتثال",riskDimension:"بُعد المخاطر",crossLanguageAlignment:"المحاذاة عبر اللغات",standardTagId:"معرف العلامة القياسي",languageMappings:"تعيينات اللغات"},protocols:{title:"إدارة سجل البروتوكولات",subtitle:"إدارة جميع بروتوكولات NAC الأصلية المدمجة مع نظام الموافقة بالذكاء الاصطناعي",protocolName:"اسم البروتوكول",protocolCode:"كود البروتوكول",protocolVersion:"إصدار البروتوكول",protocolStatus:"حالة البروتوكول",triggerConditions:"شروط التشغيل",endpoint:"نقطة الخدمة",addProtocol:"تسجيل بروتوكول",editProtocol:"تعديل البروتوكول",deactivateProtocol:"تعطيل البروتوكول",activateProtocol:"تفعيل البروتوكول",protocolActivated:"تم تفعيل البروتوكول",protocolDeactivated:"تم تعطيل البروتوكول",registeredAt:"تاريخ التسجيل",lastCalled:"آخر استدعاء",callCount:"عدد الاستدعاءات",protocolFamily:"عائلة البروتوكولات",coreProtocols:"البروتوكولات الأساسية"},audit:{title:"إدارة الصلاحيات والتدقيق",subtitle:"التحكم في الوصول المستند إلى الأدوار وسجلات التدقيق غير القابلة للتغيير",users:"إدارة المستخدمين",roles:"إدارة الأدوار",auditLogs:"سجلات التدقيق",userId:"معرف المستخدم",userName:"اسم المستخدم",userEmail:"البريد الإلكتروني",userRole:"دور المستخدم",lastLogin:"آخر تسجيل دخول",admin:"مسؤول",reviewer:"مراجع",legal:"قانوني",operator:"مشغل",action:"الإجراء",resource:"المورد",ipAddress:"عنوان IP",timestamp:"الطابع الزمني",result:"النتيجة",details:"التفاصيل",exportLogs:"تصدير السجلات",filterByUser:"تصفية حسب المستخدم",filterByAction:"تصفية حسب الإجراء",filterByDate:"تصفية حسب التاريخ",immutableNote:"سجلات التدقيق غير قابلة للتغيير. يتم تسجيل جميع العمليات الحرجة."},languageSwitcher:{selectLanguage:"اختر اللغة",currentLanguage:"اللغة الحالية",knowledgeLanguage:"لغة قاعدة المعرفة"},jurisdictions:{CN:"الصين",HK:"هونغ كونغ",US:"الولايات المتحدة",EU:"الاتحاد الأوروبي",SG:"سنغافورة",AE:"الإمارات العربية المتحدة",JP:"اليابان",KR:"كوريا الجنوبية",RU:"روسيا",GB:"المملكة المتحدة",ALL:"جميع الولايات"},assetTypes:{"RE.RESIDENTIAL":"العقارات السكنية","RE.COMMERCIAL":"العقارات التجارية","RE.INDUSTRIAL":"العقارات الصناعية","FIN.EQUITY":"أصول الملكية","FIN.DEBT":"أصول الدين","FIN.FUND":"حصص الصناديق","COMM.PRECIOUS":"المعادن الثمينة","COMM.ENERGY":"سلع الطاقة","IP.PATENT":"براءات الاختراع","IP.COPYRIGHT":"حقوق النشر","INFRA.TRANSPORT":"البنية التحتية للنقل",ALL:"جميع الأنواع"}},Nee={common:{save:"保存",cancel:"キャンセル",delete:"削除",edit:"編集",add:"追加",search:"検索",filter:"フィルター",export:"エクスポート",import:"インポート",refresh:"更新",confirm:"確認",close:"閉じる",loading:"読み込み中...",noData:"データなし",success:"操作成功",error:"操作失敗",warning:"警告",info:"情報",all:"すべて",enable:"有効",disable:"無効",active:"アクティブ",inactive:"非アクティブ",status:"ステータス",actions:"操作",createdAt:"作成日時",updatedAt:"更新日時",version:"バージョン",description:"説明",name:"名前",type:"タイプ",language:"言語",jurisdiction:"司法管轄",assetType:"資産タイプ"},auth:{login:"管理者ログイン",loginSubtitle:"NACシステムアカウントでサインイン",email:"メールアドレス",password:"パスワード",loginButton:"ログイン",loggingIn:"ログイン中...",loginSuccess:"ログイン成功",loginFailed:"ログイン失敗。メールとパスワードを確認してください。",logout:"ログアウト",logoutSuccess:"ログアウトしました",authNotice:"このシステムはNACネイティブ認証を使用しています。すべての操作は監査ログに記録されます。",verifying:"認証中...",unauthorized:"アクセス拒否",adminOnly:"このシステムは管理者のみアクセス可能です。"},nav:{dashboard:"状況認識",knowledgeBase:"ナレッジベース",crawlers:"クローラー監視",approvalCases:"AI承認ケース",tagEngine:"タグエンジン",protocolRegistry:"プロトコルレジストリ",auditLog:"権限と監査",systemTitle:"NACナレッジエンジン",systemSubtitle:"管理コンソール",adminPanel:"管理パネル"},dashboard:{title:"グローバル状況認識",subtitle:"ナレッジエンジンの稼働状況をリアルタイム監視",totalRules:"コンプライアンスルール総数",activeCrawlers:"アクティブクローラー",pendingReviews:"承認待ちケース",approvalRate:"承認率",knowledgeGrowth:"ナレッジベース成長",jurisdictionCoverage:"管轄カバレッジ",assetDistribution:"資産タイプ分布",crawlerHealth:"クローラー健全性",recentActivity:"最近のアクティビティ",systemStatus:"システム状態",allSystemsNormal:"すべてのシステム正常稼働",lastUpdated:"最終更新",viewAll:"すべて表示",rules:"件のルール",crawlers:"台のクローラー",cases:"件のケース"},knowledgeBase:{title:"ナレッジベース管理",subtitle:"コンプライアンスルール、規制、取引詳細の管理",addRule:"ルール追加",editRule:"ルール編集",deleteRule:"ルール削除",ruleTitle:"ルールタイトル",ruleContent:"ルール内容",ruleSource:"ルールソース",effectiveDate:"発効日",translationStatus:"翻訳ステータス",original:"原文",aiTranslated:"AI翻訳",humanReviewed:"人間によるレビュー済み",addTranslation:"翻訳追加",missingTranslation:"翻訳なし",languageCoverage:"言語カバレッジ",contentLanguage:"コンテンツ言語",switchLanguage:"言語を切り替えて表示",ruleActivated:"ルールを有効化しました",ruleDeactivated:"ルールを無効化しました",searchPlaceholder:"ルールタイトル、内容、ソースを検索...",filterByJurisdiction:"管轄でフィルター",filterByAssetType:"資産タイプでフィルター",filterByStatus:"ステータスでフィルター",totalRules:"合計{{count}}件のルール"},crawlers:{title:"クローラー監視・管理",subtitle:"内部・外部データクローラーのリアルタイム監視",internalCrawlers:"内部クローラー",externalCrawlers:"外部クローラー",crawlerName:"クローラー名",crawlerType:"クローラータイプ",lastRun:"最終実行",nextRun:"次回実行",successRate:"成功率",totalCollected:"収集総数",triggerNow:"今すぐ実行",triggering:"実行中...",triggered:"クロールタスクを開始しました",addSource:"ソース追加",editSource:"ソース編集",sourceUrl:"ソースURL",frequency:"頻度",internal:"内部",external:"外部",running:"実行中",idle:"待機中",error:"エラー",logs:"ログ",viewLogs:"ログを表示"},approvals:{title:"AI承認ケースレビュー",subtitle:"AI自動承認結果のレビューと中リスクケースの手動審査",caseId:"ケースID",assetName:"資産名",applicant:"申請者",submittedAt:"提出日時",riskLevel:"リスクレベル",aiDecision:"AI判定",humanDecision:"人間の判定",reviewStatus:"レビューステータス",pendingReview:"レビュー待ち",approved:"承認済み",rejected:"却下済み",underReview:"レビュー中",highRisk:"高リスク",mediumRisk:"中リスク",lowRisk:"低リスク",approve:"承認",reject:"却下",reviewComment:"レビューコメント",addComment:"レビューコメントを追加...",submitReview:"レビュー送信",aiConfidence:"AI信頼度",complianceScore:"コンプライアンススコア",missingDocuments:"不足書類",reviewHistory:"レビュー履歴",caseDetails:"ケース詳細",viewDetails:"詳細を表示"},tagEngine:{title:"タグ・ルールエンジンガバナンス",subtitle:"自動タグシーケンス生成ルールの管理",tagId:"タグID",tagName:"タグ名",tagCategory:"タグカテゴリ",tagRule:"タグルール",matchPattern:"マッチパターン",priority:"優先度",addTag:"タグ追加",editTag:"タグ編集",deleteTag:"タグ削除",testTag:"タグテスト",testInput:"テスト入力",testResult:"テスト結果",jurisdictionDimension:"管轄ディメンション",assetTypeDimension:"資産タイプディメンション",complianceDimension:"コンプライアンスディメンション",riskDimension:"リスクディメンション",crossLanguageAlignment:"クロス言語アライメント",standardTagId:"標準タグID",languageMappings:"言語マッピング"},protocols:{title:"プロトコルレジストリ管理",subtitle:"AIシステムに統合されたすべてのNACネイティブプロトコルの管理",protocolName:"プロトコル名",protocolCode:"プロトコルコード",protocolVersion:"プロトコルバージョン",protocolStatus:"プロトコルステータス",triggerConditions:"トリガー条件",endpoint:"サービスエンドポイント",addProtocol:"プロトコル登録",editProtocol:"プロトコル編集",deactivateProtocol:"プロトコル無効化",activateProtocol:"プロトコル有効化",protocolActivated:"プロトコルを有効化しました",protocolDeactivated:"プロトコルを無効化しました",registeredAt:"登録日時",lastCalled:"最終呼び出し",callCount:"呼び出し回数",protocolFamily:"プロトコルファミリー",coreProtocols:"コアプロトコル"},audit:{title:"権限・監査管理",subtitle:"ロールベースのアクセス制御と改ざん不可能な監査ログ",users:"ユーザー管理",roles:"ロール管理",auditLogs:"監査ログ",userId:"ユーザーID",userName:"ユーザー名",userEmail:"メール",userRole:"ロール",lastLogin:"最終ログイン",admin:"管理者",reviewer:"レビュアー",legal:"法務",operator:"オペレーター",action:"アクション",resource:"リソース",ipAddress:"IPアドレス",timestamp:"タイムスタンプ",result:"結果",details:"詳細",exportLogs:"ログエクスポート",filterByUser:"ユーザーでフィルター",filterByAction:"アクションでフィルター",filterByDate:"日付でフィルター",immutableNote:"監査ログは改ざん不可能です。すべての重要な操作が記録されます。"},languageSwitcher:{selectLanguage:"言語を選択",currentLanguage:"現在の言語",knowledgeLanguage:"ナレッジベース言語"},jurisdictions:{CN:"中国",HK:"香港",US:"米国",EU:"EU",SG:"シンガポール",AE:"UAE",JP:"日本",KR:"韓国",RU:"ロシア",GB:"英国",ALL:"すべての管轄"},assetTypes:{"RE.RESIDENTIAL":"住宅不動産","RE.COMMERCIAL":"商業不動産","RE.INDUSTRIAL":"工業不動産","FIN.EQUITY":"株式資産","FIN.DEBT":"債務資産","FIN.FUND":"ファンド持分","COMM.PRECIOUS":"貴金属","COMM.ENERGY":"エネルギー商品","IP.PATENT":"特許","IP.COPYRIGHT":"著作権","INFRA.TRANSPORT":"交通インフラ",ALL:"すべてのタイプ"}},wee={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:"모든 유형"}},Eee={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"}},See={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:"Все типы"}},Aee=[{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:"🇷🇺"}];br.use(S9).use(uee).init({resources:{zh:{translation:bee},en:{translation:yee},ar:{translation:xee},ja:{translation:Nee},ko:{translation:wee},fr:{translation:Eee},ru:{translation:See}},fallbackLng:"zh",supportedLngs:["zh","en","ar","ja","ko","fr","ru"],detection:{order:["localStorage","navigator"],caches:["localStorage"],lookupLocalStorage:"nac-admin-language"},interpolation:{escapeValue:!1}});br.on("languageChanged",e=>{const t=Aee.find(n=>n.code===e);document.documentElement.dir=t?.dir??"ltr",document.documentElement.lang=e});const Oee="Please login (10001)";var yE={exports:{}},lh={},xE={exports:{}},NE={},OL;function Dee(){return OL||(OL=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,$){var q=e.unstable_now();V=q;var Q=!0;try{e:{j=!1,P&&(P=!1,R(z),z=-1),C=!0;var G=D;try{t:{for(c(q),w=r(x);w!==null&&!(w.expirationTime>q&&f());){var ne=w.callback;if(typeof ne=="function"){w.callback=null,D=w.priorityLevel;var te=ne(w.expirationTime<=q);if(q=e.unstable_now(),typeof te=="function"){w.callback=te,c(q),Q=!0;break t}w===r(x)&&o(x),c(q)}else o(x);w=r(x)}if(w!==null)Q=!0;else{var I=r(S);I!==null&&m(u,I.startTime-q),Q=!1}}break e}finally{w=null,D=G,C=!1}Q=void 0}}finally{Q?F():$=!1}}}function n(q,Q){var G=q.length;q.push(Q);e:for(;0<G;){var ne=G-1>>>1,te=q[ne];if(0<s(te,Q))q[ne]=Q,q[G]=te,G=ne;else break e}}function r(q){return q.length===0?null:q[0]}function o(q){if(q.length===0)return null;var Q=q[0],G=q.pop();if(G!==Q){q[0]=G;e:for(var ne=0,te=q.length,I=te>>>1;ne<I;){var H=2*(ne+1)-1,Y=q[H],re=H+1,ge=q[re];if(0>s(Y,G))re<te&&0>s(ge,Y)?(q[ne]=ge,q[re]=G,ne=re):(q[ne]=Y,q[H]=G,ne=H);else if(re<te&&0>s(ge,G))q[ne]=ge,q[re]=G,ne=re;else break e}}return Q}function s(q,Q){var G=q.sortIndex-Q.sortIndex;return G!==0?G:q.id-Q.id}function c(q){for(var Q=r(S);Q!==null;){if(Q.callback===null)o(S);else if(Q.startTime<=q)o(S),Q.sortIndex=Q.expirationTime,n(x,Q);else break;Q=r(S)}}function u(q){if(P=!1,c(q),!j)if(r(x)!==null)j=!0,$||($=!0,F());else{var Q=r(S);Q!==null&&m(u,Q.startTime-q)}}function f(){return A?!0:!(e.unstable_now()-V<U)}function m(q,Q){z=T(function(){q(e.unstable_now())},Q)}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 h=Date,y=h.now();e.unstable_now=function(){return h.now()-y}}var x=[],S=[],N=1,w=null,D=3,C=!1,j=!1,P=!1,A=!1,T=typeof setTimeout=="function"?setTimeout:null,R=typeof clearTimeout=="function"?clearTimeout:null,M=typeof setImmediate<"u"?setImmediate:null,$=!1,z=-1,U=5,V=-1;if(typeof M=="function")var F=function(){M(t)};else if(typeof MessageChannel<"u"){var X=new MessageChannel,ee=X.port2;X.port1.onmessage=t,F=function(){ee.postMessage(null)}}else F=function(){T(t,0)};e.unstable_IdlePriority=5,e.unstable_ImmediatePriority=1,e.unstable_LowPriority=4,e.unstable_NormalPriority=3,e.unstable_Profiling=null,e.unstable_UserBlockingPriority=2,e.unstable_cancelCallback=function(q){q.callback=null},e.unstable_forceFrameRate=function(q){0>q||125<q?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):U=0<q?Math.floor(1e3/q):5},e.unstable_getCurrentPriorityLevel=function(){return D},e.unstable_next=function(q){switch(D){case 1:case 2:case 3:var Q=3;break;default:Q=D}var G=D;D=Q;try{return q()}finally{D=G}},e.unstable_requestPaint=function(){A=!0},e.unstable_runWithPriority=function(q,Q){switch(q){case 1:case 2:case 3:case 4:case 5:break;default:q=3}var G=D;D=q;try{return Q()}finally{D=G}},e.unstable_scheduleCallback=function(q,Q,G){var ne=e.unstable_now();switch(typeof G=="object"&&G!==null?(G=G.delay,G=typeof G=="number"&&0<G?ne+G:ne):G=ne,q){case 1:var te=-1;break;case 2:te=250;break;case 5:te=1073741823;break;case 4:te=1e4;break;default:te=5e3}return te=G+te,q={id:N++,callback:Q,priorityLevel:q,startTime:G,expirationTime:te,sortIndex:-1},G>ne?(q.sortIndex=G,n(S,q),r(x)===null&&q===r(S)&&(P?(R(z),z=-1):P=!0,m(u,G-ne))):(q.sortIndex=te,n(x,q),j||C||(j=!0,$||($=!0,F()))),q},e.unstable_shouldYield=f,e.unstable_wrapCallback=function(q){var Q=D;return function(){var G=D;D=Q;try{return q.apply(this,arguments)}finally{D=G}}},typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error())})()})(NE)),NE}var DL;function Cee(){return DL||(DL=1,xE.exports=Dee()),xE.exports}var wE={exports:{}},cr={},CL;function Tee(){if(CL)return cr;CL=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(h){return""+h}function n(h,y,x){var S=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;try{t(S);var N=!1}catch{N=!0}return N&&(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:h,containerInfo:y,implementation:x}}function r(h,y){if(h==="font")return"";if(typeof y=="string")return y==="use-credentials"?y:""}function o(h){return h===null?"`null`":h===void 0?"`undefined`":h===""?"an empty string":'something with type "'+typeof h+'"'}function s(h){return h===null?"`null`":h===void 0?"`undefined`":h===""?"an empty string":typeof h=="string"?JSON.stringify(h):typeof h=="number"?"`"+h+"`":'something with type "'+typeof h+'"'}function c(){var h=g.H;return h===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.`),h}typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(Error());var u=df(),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=u.__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"),cr.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=f,cr.createPortal=function(h,y){var x=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(h,y,null,x)},cr.flushSync=function(h){var y=g.T,x=f.p;try{if(g.T=null,f.p=2,h)return h()}finally{g.T=y,f.p=x,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.")}},cr.preconnect=function(h,y){typeof h=="string"&&h?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(h)),typeof h=="string"&&(y?(y=y.crossOrigin,y=typeof y=="string"?y==="use-credentials"?y:"":void 0):y=null,f.d.C(h,y))},cr.prefetchDNS=function(h){if(typeof h!="string"||!h)console.error("ReactDOM.prefetchDNS(): Expected the `href` argument (first) to be a non-empty string but encountered %s instead.",o(h));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 h=="string"&&f.d.D(h)},cr.preinit=function(h,y){if(typeof h=="string"&&h?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(h)),typeof h=="string"&&y&&typeof y.as=="string"){var x=y.as,S=r(x,y.crossOrigin),N=typeof y.integrity=="string"?y.integrity:void 0,w=typeof y.fetchPriority=="string"?y.fetchPriority:void 0;x==="style"?f.d.S(h,typeof y.precedence=="string"?y.precedence:void 0,{crossOrigin:S,integrity:N,fetchPriority:w}):x==="script"&&f.d.X(h,{crossOrigin:S,integrity:N,fetchPriority:w,nonce:typeof y.nonce=="string"?y.nonce:void 0})}},cr.preinitModule=function(h,y){var x="";if(typeof h=="string"&&h||(x+=" The `href` argument encountered was "+o(h)+"."),y!==void 0&&typeof y!="object"?x+=" The `options` argument encountered was "+o(y)+".":y&&"as"in y&&y.as!=="script"&&(x+=" The `as` option encountered was "+s(y.as)+"."),x)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",x);else switch(x=y&&typeof y.as=="string"?y.as:"script",x){case"script":break;default:x=s(x),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)',x,h)}typeof h=="string"&&(typeof y=="object"&&y!==null?(y.as==null||y.as==="script")&&(x=r(y.as,y.crossOrigin),f.d.M(h,{crossOrigin:x,integrity:typeof y.integrity=="string"?y.integrity:void 0,nonce:typeof y.nonce=="string"?y.nonce:void 0})):y==null&&f.d.M(h))},cr.preload=function(h,y){var x="";if(typeof h=="string"&&h||(x+=" The `href` argument encountered was "+o(h)+"."),y==null||typeof y!="object"?x+=" The `options` argument encountered was "+o(y)+".":typeof y.as=="string"&&y.as||(x+=" The `as` option encountered was "+o(y.as)+"."),x&&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',x),typeof h=="string"&&typeof y=="object"&&y!==null&&typeof y.as=="string"){x=y.as;var S=r(x,y.crossOrigin);f.d.L(h,x,{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})}},cr.preloadModule=function(h,y){var x="";typeof h=="string"&&h||(x+=" The `href` argument encountered was "+o(h)+"."),y!==void 0&&typeof y!="object"?x+=" The `options` argument encountered was "+o(y)+".":y&&"as"in y&&typeof y.as!="string"&&(x+=" The `as` option encountered was "+o(y.as)+"."),x&&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',x),typeof h=="string"&&(y?(x=r(y.as,y.crossOrigin),f.d.m(h,{as:typeof y.as=="string"&&y.as!=="script"?y.as:void 0,crossOrigin:x,integrity:typeof y.integrity=="string"?y.integrity:void 0})):f.d.m(h))},cr.requestFormReset=function(h){f.d.r(h)},cr.unstable_batchedUpdates=function(h,y){return h(y)},cr.useFormState=function(h,y,x){return c().useFormState(h,y,x)},cr.useFormStatus=function(){return c().useHostTransitionStatus()},cr.version="19.2.1",typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error())})(),cr}var TL;function T9(){return TL||(TL=1,wE.exports=Tee()),wE.exports}var _L;function _ee(){if(_L)return lh;_L=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 p=i[l],v=Rn(a)?a.slice():mt({},a);return v[p]=t(a[p],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 p=i[d],v=Rn(a)?a.slice():mt({},a);return d+1===i.length?(v[l[d]]=v[p],Rn(v)?v.splice(p,1):delete v[p]):v[p]=r(a[p],i,l,d+1),v}function o(a,i,l){var d=i[l],p=Rn(a)?a.slice():mt({},a);return l+1===i.length?(Rn(p)?p.splice(d,1):delete p[d],p):(p[d]=o(a[d],i,l+1),p)}function s(){return!1}function c(){return null}function u(){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 h(a){var i=[];return a.forEach(function(l){i.push(l)}),i.sort().join(", ")}function y(a,i,l,d){return new GG(a,i,l,d)}function x(a,i){a.context===Ls&&(ON(a.current,2,i,a,null,null),xu())}function S(a,i){if(Sa!==null){var l=i.staleFamilies;i=i.updatedFamilies,em(),qR(a.current,i,l),xu()}}function N(a){Sa=a}function w(a){return!(!a||a.nodeType!==1&&a.nodeType!==9&&a.nodeType!==11)}function D(a){var i=a,l=a;if(a.alternate)for(;i.return;)i=i.return;else{a=i;do i=a,(i.flags&4098)!==0&&(l=i.return),a=i.return;while(a)}return i.tag===3?l:null}function C(a){if(a.tag===13){var i=a.memoizedState;if(i===null&&(a=a.alternate,a!==null&&(i=a.memoizedState)),i!==null)return i.dehydrated}return null}function j(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(D(a)!==a)throw Error("Unable to find node on an unmounted component.")}function A(a){var i=a.alternate;if(!i){if(i=D(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 p=l.return;if(p===null)break;var v=p.alternate;if(v===null){if(d=p.return,d!==null){l=d;continue}break}if(p.child===v.child){for(v=p.child;v;){if(v===l)return P(p),a;if(v===d)return P(p),i;v=v.sibling}throw Error("Unable to find node on an unmounted component.")}if(l.return!==d.return)l=p,d=v;else{for(var E=!1,O=p.child;O;){if(O===l){E=!0,l=p,d=v;break}if(O===d){E=!0,d=p,l=v;break}O=O.sibling}if(!E){for(O=v.child;O;){if(O===l){E=!0,l=v,d=p;break}if(O===d){E=!0,d=v,l=p;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 T(a){var i=a.tag;if(i===5||i===26||i===27||i===6)return a;for(a=a.child;a!==null;){if(i=T(a),i!==null)return i;a=a.sibling}return null}function R(a){return a===null||typeof a!="object"?null:(a=X3&&a[X3]||a["@@iterator"],typeof a=="function"?a:null)}function M(a){if(a==null)return null;if(typeof a=="function")return a.$$typeof===pQ?null:a.displayName||a.name||null;if(typeof a=="string")return a;switch(a){case Du:return"Fragment";case PN:return"Profiler";case rv:return"StrictMode";case kN:return"Suspense";case IN:return"SuspenseList";case LN: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 Ou:return"Portal";case Vi:return a.displayName||"Context";case MN:return(a._context.displayName||"Context")+".Consumer";case um:var i=a.render;return a=a.displayName,a||(a=i.displayName||i.name||"",a=a!==""?"ForwardRef("+a+")":"ForwardRef"),a;case av:return i=a.displayName||null,i!==null?i:M(a.type)||"Memo";case na:i=a._payload,a=a._init;try{return M(a(i))}catch{}}return null}function $(a){return typeof a.tag=="number"?z(a):typeof a.name=="string"?a.name:null}function z(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 M(i);case 8:return i===rv?"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 z(a.return)}return null}function U(a){return{current:a}}function V(a,i){0>jo?console.error("Unexpected pop."):(i!==$N[jo]&&console.error("Unexpected Fiber popped."),a.current=VN[jo],VN[jo]=null,$N[jo]=null,jo--)}function F(a,i,l){jo++,VN[jo]=a.current,$N[jo]=l,a.current=i}function X(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(js,i,a),F(dm,a,a),F(_s,null,a);var l=i.nodeType;switch(l){case 9:case 11:l=l===9?"#document":"#fragment",i=(i=i.documentElement)&&(i=i.namespaceURI)?x3(i):Ko;break;default:if(l=i.tagName,i=i.namespaceURI)i=x3(i),i=N3(i,l);else switch(l){case"svg":i=sd;break;case"math":i=nb;break;default:i=Ko}}l=l.toLowerCase(),l=hR(null,l),l={context:i,ancestorInfo:l},V(_s,a),F(_s,l,a)}function q(a){V(_s,a),V(dm,a),V(js,a)}function Q(){return X(_s.current)}function G(a){a.memoizedState!==null&&F(iv,a,a);var i=X(_s.current),l=a.type,d=N3(i.context,l);l=hR(i.ancestorInfo,l),d={context:d,ancestorInfo:l},i!==d&&(F(dm,a,a),F(_s,d,a))}function ne(a){dm.current===a&&(V(_s,a),V(dm,a)),iv.current===a&&(V(iv,a),nh._currentValue=uc)}function te(){}function I(){if(fm===0){W3=console.log,Z3=console.info,J3=console.warn,e5=console.error,t5=console.group,n5=console.groupCollapsed,r5=console.groupEnd;var a={configurable:!0,enumerable:!0,value:te,writable:!0};Object.defineProperties(console,{info:a,log:a,warn:a,error:a,group:a,groupCollapsed:a,groupEnd:a})}fm++}function H(){if(fm--,fm===0){var a={configurable:!0,enumerable:!0,writable:!0};Object.defineProperties(console,{log:mt({},a,{value:W3}),info:mt({},a,{value:Z3}),warn:mt({},a,{value:J3}),error:mt({},a,{value:e5}),group:mt({},a,{value:t5}),groupCollapsed:mt({},a,{value:n5}),groupEnd:mt({},a,{value:r5})})}0>fm&&console.error("disabledDepth fell below zero. This is a bug in React. Please file an issue.")}function Y(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 re(a){if(BN===void 0)try{throw Error()}catch(l){var i=l.stack.trim().match(/\n( *(at )?)/);BN=i&&i[1]||"",a5=-1<l.stack.indexOf(`
|
||
at`)?" (<anonymous>)":-1<l.stack.indexOf("@")?"@unknown:0:0":""}return`
|
||
`+BN+a+a5}function ge(a,i){if(!a||zN)return"";var l=UN.get(a);if(l!==void 0)return l;zN=!0,l=Error.prepareStackTrace,Error.prepareStackTrace=void 0;var d=null;d=pe.H,pe.H=null,I();try{var p={DetermineComponentFrameRoot:function(){try{if(i){var Z=function(){throw Error()};if(Object.defineProperty(Z.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(Z,[])}catch(Ce){var fe=Ce}Reflect.construct(a,[],Z)}else{try{Z.call()}catch(Ce){fe=Ce}a.call(Z.prototype)}}else{try{throw Error()}catch(Ce){fe=Ce}(Z=a())&&typeof Z.catch=="function"&&Z.catch(function(){})}}catch(Ce){if(Ce&&fe&&typeof Ce.stack=="string")return[Ce.stack,fe.stack]}return[null,null]}};p.DetermineComponentFrameRoot.displayName="DetermineComponentFrameRoot";var v=Object.getOwnPropertyDescriptor(p.DetermineComponentFrameRoot,"name");v&&v.configurable&&Object.defineProperty(p.DetermineComponentFrameRoot,"name",{value:"DetermineComponentFrameRoot"});var E=p.DetermineComponentFrameRoot(),O=E[0],k=E[1];if(O&&k){var L=O.split(`
|
||
`),oe=k.split(`
|
||
`);for(E=v=0;v<L.length&&!L[v].includes("DetermineComponentFrameRoot");)v++;for(;E<oe.length&&!oe[E].includes("DetermineComponentFrameRoot");)E++;if(v===L.length||E===oe.length)for(v=L.length-1,E=oe.length-1;1<=v&&0<=E&&L[v]!==oe[E];)E--;for(;1<=v&&0<=E;v--,E--)if(L[v]!==oe[E]){if(v!==1||E!==1)do if(v--,E--,0>E||L[v]!==oe[E]){var se=`
|
||
`+L[v].replace(" at new "," at ");return a.displayName&&se.includes("<anonymous>")&&(se=se.replace("<anonymous>",a.displayName)),typeof a=="function"&&UN.set(a,se),se}while(1<=v&&0<=E);break}}}finally{zN=!1,pe.H=d,H(),Error.prepareStackTrace=l}return L=(L=a?a.displayName||a.name:"")?re(L):"",typeof a=="function"&&UN.set(a,L),L}function we(a,i){switch(a.tag){case 26:case 27:case 5:return re(a.type);case 16:return re("Lazy");case 13:return a.child!==i&&i!==null?re("Suspense Fallback"):re("Suspense");case 19:return re("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 re("Activity");default:return""}}function le(a){try{var i="",l=null;do{i+=we(a,l);var d=a._debugInfo;if(d)for(var p=d.length-1;0<=p;p--){var v=d[p];if(typeof v.name=="string"){var E=i;e:{var O=v.name,k=v.env,L=v.debugLocation;if(L!=null){var oe=Y(L),se=oe.lastIndexOf(`
|
||
`),Z=se===-1?oe:oe.slice(se+1);if(Z.indexOf(O)!==-1){var fe=`
|
||
`+Z;break e}}fe=re(O+(k?" ["+k+"]":""))}i=E+fe}}l=a,a=a.return}while(a);return i}catch(Ce){return`
|
||
Error generating stack: `+Ce.message+`
|
||
`+Ce.stack}}function ye(a){return(a=a?a.displayName||a.name:"")?re(a):""}function me(){if(ra===null)return null;var a=ra._debugOwner;return a!=null?$(a):null}function xe(){if(ra===null)return"";var a=ra;try{var i="";switch(a.tag===6&&(a=a.return),a.tag){case 26:case 27:case 5:i+=re(a.type);break;case 13:i+=re("Suspense");break;case 19:i+=re("SuspenseList");break;case 31:i+=re("Activity");break;case 30:case 0:case 15:case 1:a._debugOwner||i!==""||(i+=ye(a.type));break;case 11:a._debugOwner||i!==""||(i+=ye(a.type.render))}for(;a;)if(typeof a.tag=="number"){var l=a;a=l._debugOwner;var d=l._debugStack;if(a&&d){var p=Y(d);p!==""&&(i+=`
|
||
`+p)}}else if(a.debugStack!=null){var v=a.debugStack;(a=a.owner)&&v&&(i+=`
|
||
`+Y(v))}else break;var E=i}catch(O){E=`
|
||
Error generating stack: `+O.message+`
|
||
`+O.stack}return E}function de(a,i,l,d,p,v,E){var O=ra;ie(a);try{return a!==null&&a._debugTask?a._debugTask.run(i.bind(null,l,d,p,v,E)):i(l,d,p,v,E)}finally{ie(O)}throw Error("runWithFiberInDEV should never be called in production. This is a bug in React.")}function ie(a){pe.getCurrentStack=a===null?null:xe,$i=!1,ra=a}function ze(a){return typeof Symbol=="function"&&Symbol.toStringTag&&a[Symbol.toStringTag]||a.constructor.name||"Object"}function Ne(a){try{return ut(a),!1}catch{return!0}}function ut(a){return""+a}function Ve(a,i){if(Ne(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)),ut(a)}function nt(a,i){if(Ne(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)),ut(a)}function Un(a){if(Ne(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)),ut(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{Tu=i.inject(a),sr=i}catch(l){console.error("React instrumentation encountered an error: %o.",l)}return!!i.checkDCE}function Re(a){if(typeof wQ=="function"&&EQ(a),sr&&typeof sr.setStrictMode=="function")try{sr.setStrictMode(Tu,a)}catch(i){Bi||(Bi=!0,console.error("React instrumentation encountered an error: %o",i))}}function ir(a){return a>>>=0,a===0?32:31-(SQ(a)/AQ|0)|0}function St(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 qn(a,i,l){var d=a.pendingLanes;if(d===0)return 0;var p=0,v=a.suspendedLanes,E=a.pingedLanes;a=a.warmLanes;var O=d&134217727;return O!==0?(d=O&~v,d!==0?p=St(d):(E&=O,E!==0?p=St(E):l||(l=O&~a,l!==0&&(p=St(l))))):(O=d&~v,O!==0?p=St(O):E!==0?p=St(E):l||(l=d&~a,l!==0&&(p=St(l)))),p===0?0:i!==0&&i!==p&&(i&v)===0&&(v=p&-p,l=i&-i,v>=l||v===32&&(l&4194048)!==0)?i:p}function kr(a,i){return(a.pendingLanes&~(a.suspendedLanes&~a.pingedLanes)&i)===0}function vi(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 Yr(){var a=lv;return lv<<=1,(lv&62914560)===0&&(lv=4194304),a}function bi(a){for(var i=[],l=0;31>l;l++)i.push(a);return i}function Fa(a,i){a.pendingLanes|=i,i!==268435456&&(a.suspendedLanes=0,a.pingedLanes=0,a.warmLanes=0)}function gs(a,i,l,d,p,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,k=a.expirationTimes,L=a.hiddenUpdates;for(l=E&~l;0<l;){var oe=31-Nr(l),se=1<<oe;O[oe]=0,k[oe]=-1;var Z=L[oe];if(Z!==null)for(L[oe]=null,oe=0;oe<Z.length;oe++){var fe=Z[oe];fe!==null&&(fe.lane&=-536870913)}l&=~se}d!==0&&ba(a,d,0),v!==0&&p===0&&a.tag!==0&&(a.suspendedLanes|=v&~(E&~i))}function ba(a,i,l){a.pendingLanes|=i,a.suspendedLanes&=~i;var d=31-Nr(i);a.entangledLanes|=i,a.entanglements[d]=a.entanglements[d]|1073741824|l&261930}function vs(a,i){var l=a.entangledLanes|=i;for(a=a.entanglements;l;){var d=31-Nr(l),p=1<<d;p&i|a[d]&i&&(a[d]|=i),l&=~p}}function Ir(a,i){var l=i&-i;return l=(l&42)!==0?1:yi(l),(l&(a.suspendedLanes|i))!==0?0:l}function yi(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 bo(a,i,l){if(zi)for(a=a.pendingUpdatersLaneMap;0<l;){var d=31-Nr(l),p=1<<d;a[d].add(i),l&=~p}}function yo(a,i){if(zi)for(var l=a.pendingUpdatersLaneMap,d=a.memoizedUpdaters;0<i;){var p=31-Nr(i);a=1<<p,p=l[p],0<p.size&&(p.forEach(function(v){var E=v.alternate;E!==null&&d.has(E)||d.add(v)}),p.clear()),i&=~a}}function xo(a){return a&=-a,Na<a?Ui<a?(a&134217727)!==0?Ro:cv:Ui:Na}function xi(){var a=Pt.p;return a!==0?a:(a=window.event,a===void 0?Ro:q3(a.type))}function B(a,i){var l=Pt.p;try{return Pt.p=a,i()}finally{Pt.p=l}}function ue(a){delete a[tr],delete a[wr],delete a[GN],delete a[OQ],delete a[DQ]}function Ee(a){var i=a[tr];if(i)return i;for(var l=a.parentNode;l;){if(i=l[Ps]||l[tr]){if(l=i.alternate,i.child!==null||l!==null&&l.child!==null)for(a=T3(a);a!==null;){if(l=a[tr])return l;a=T3(a)}return i}a=l,l=a.parentNode}return null}function De(a){if(a=a[tr]||a[Ps]){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 Je(a){var i=a[i5];return i||(i=a[i5]={hoistableStyles:new Map,hoistableScripts:new Map}),i}function Se(a){a[mm]=!0}function He(a,i){Be(a,i),Be(a+"Capture",i)}function Be(a,i){zl[a]&&console.error("EventRegistry: More than one plugin attempted to publish the same registration name, `%s`.",a),zl[a]=i;var l=a.toLowerCase();for(YN[l]=a,a==="onDoubleClick"&&(YN.ondblclick=a),a=0;a<i.length;a++)o5.add(i[a])}function zt(a,i){CQ[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 yr(a){return Xa.call(l5,a)?!0:Xa.call(s5,a)?!1:TQ.test(a)?l5[a]=!0:(s5[a]=!0,console.error("Invalid attribute name: `%s`",a),!1)}function dn(a,i,l){if(yr(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:(Ve(l,i),a===""+l?l:a)}}function jn(a,i,l){if(yr(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}}Ve(l,i),a.setAttribute(i,""+l)}}function No(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}Ve(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}Ve(d,l),a.setAttributeNS(i,l,""+d)}}function an(a){switch(typeof a){case"bigint":case"boolean":case"number":case"string":case"undefined":return a;case"object":return Un(a),a;default:return""}}function Tf(a){var i=a.type;return(a=a.nodeName)&&a.toLowerCase()==="input"&&(i==="checkbox"||i==="radio")}function wo(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 p=d.get,v=d.set;return Object.defineProperty(a,i,{configurable:!0,get:function(){return p.call(this)},set:function(E){Un(E),l=""+E,v.call(this,E)}}),Object.defineProperty(a,i,{enumerable:d.enumerable}),{getValue:function(){return l},setValue:function(E){Un(E),l=""+E},stopTracking:function(){a._valueTracker=null,delete a[i]}}}}function Xp(a){if(!a._valueTracker){var i=Tf(a)?"checked":"value";a._valueTracker=wo(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=Tf(a)?a.checked?"true":"false":a.value),a=d,a!==l?(i.setValue(a),!0):!1}function Wp(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 ya(a){return a.replace(_Q,function(i){return"\\"+i.charCodeAt(0).toString(16)+" "})}function nR(a,i){i.checked===void 0||i.defaultChecked===void 0||u5||(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),u5=!0),i.value===void 0||i.defaultValue===void 0||c5||(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),c5=!0)}function D0(a,i,l,d,p,v,E,O){a.name="",E!=null&&typeof E!="function"&&typeof E!="symbol"&&typeof E!="boolean"?(Ve(E,"type"),a.type=E):a.removeAttribute("type"),i!=null?E==="number"?(i===0&&a.value===""||a.value!=i)&&(a.value=""+an(i)):a.value!==""+an(i)&&(a.value=""+an(i)):E!=="submit"&&E!=="reset"||a.removeAttribute("value"),i!=null?C0(a,E,an(i)):l!=null?C0(a,E,an(l)):d!=null&&a.removeAttribute("value"),p==null&&v!=null&&(a.defaultChecked=!!v),p!=null&&(a.checked=p&&typeof p!="function"&&typeof p!="symbol"),O!=null&&typeof O!="function"&&typeof O!="symbol"&&typeof O!="boolean"?(Ve(O,"name"),a.name=""+an(O)):a.removeAttribute("name")}function rR(a,i,l,d,p,v,E,O){if(v!=null&&typeof v!="function"&&typeof v!="symbol"&&typeof v!="boolean"&&(Ve(v,"type"),a.type=v),i!=null||l!=null){if(!(v!=="submit"&&v!=="reset"||i!=null)){Xp(a);return}l=l!=null?""+an(l):"",i=i!=null?""+an(i):l,O||i===a.value||(a.value=i),a.defaultValue=i}d=d??p,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"&&(Ve(E,"name"),a.name=E),Xp(a)}function C0(a,i,l){i==="number"&&Wp(a.ownerDocument)===a||a.defaultValue===""+l||(a.defaultValue=""+l)}function aR(a,i){i.value==null&&(typeof i.children=="object"&&i.children!==null?RN.Children.forEach(i.children,function(l){l==null||typeof l=="string"||typeof l=="number"||typeof l=="bigint"||f5||(f5=!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||m5||(m5=!0,console.error("Pass a `value` prop if you set dangerouslyInnerHTML so React knows which value should be selected."))),i.selected==null||d5||(console.error("Use the `defaultValue` or `value` props on <select> instead of setting `selected` on <option>."),d5=!0)}function iR(){var a=me();return a?`
|
||
|
||
Check the render method of \``+a+"`.":""}function lu(a,i,l,d){if(a=a.options,i){i={};for(var p=0;p<l.length;p++)i["$"+l[p]]=!0;for(l=0;l<a.length;l++)p=i.hasOwnProperty("$"+a[l].value),a[l].selected!==p&&(a[l].selected=p),p&&d&&(a[l].defaultSelected=!0)}else{for(l=""+an(l),i=null,p=0;p<a.length;p++){if(a[p].value===l){a[p].selected=!0,d&&(a[p].defaultSelected=!0);return}i!==null||a[p].disabled||(i=a[p])}i!==null&&(i.selected=!0)}}function oR(a,i){for(a=0;a<p5.length;a++){var l=p5[a];if(i[l]!=null){var d=Rn(i[l]);i.multiple&&!d?console.error("The `%s` prop supplied to <select> must be an array if `multiple` is true.%s",l,iR()):!i.multiple&&d&&console.error("The `%s` prop supplied to <select> must be a scalar value if `multiple` is false.%s",l,iR())}}i.value===void 0||i.defaultValue===void 0||h5||(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"),h5=!0)}function sR(a,i){i.value===void 0||i.defaultValue===void 0||g5||(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"),g5=!0),i.children!=null&&i.value==null&&console.error("Use the `defaultValue` or `value` props instead of setting children on <textarea>.")}function lR(a,i,l){if(i!=null&&(i=""+an(i),i!==a.value&&(a.value=i),l==null)){a.defaultValue!==i&&(a.defaultValue=i);return}a.defaultValue=l!=null?""+an(l):""}function cR(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(Rn(d)){if(1<d.length)throw Error("<textarea> can only have at most one child.");d=d[0]}l=d}l==null&&(l=""),i=l}l=an(i),a.defaultValue=l,d=a.textContent,d===l&&d!==""&&d!==null&&(a.value=d),Xp(a)}function uR(a,i){return a.serverProps===void 0&&a.serverTail.length===0&&a.children.length===1&&3<a.distanceFromLeaf&&a.distanceFromLeaf>15-i?uR(a.children[0],i):a}function Qr(a){return" "+" ".repeat(a)}function cu(a){return"+ "+" ".repeat(a)}function Ol(a){return"- "+" ".repeat(a)}function dR(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 _f(a,i){return v5.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 Zp(a,i,l){var d=120-2*l;if(i===null)return cu(l)+_f(a,d)+`
|
||
`;if(typeof i=="string"){for(var p=0;p<i.length&&p<a.length&&i.charCodeAt(p)===a.charCodeAt(p);p++);return p>d-8&&10<p&&(a="..."+a.slice(p-8),i="..."+i.slice(p-8)),cu(l)+_f(a,d)+`
|
||
`+Ol(l)+_f(i,d)+`
|
||
`}return Qr(l)+_f(a,d)+`
|
||
`}function T0(a){return Object.prototype.toString.call(a).replace(/^\[object (.*)\]$/,function(i,l){return l})}function jf(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(Rn(a))return"[...]";if(a.$$typeof===Li)return(i=M(a.type))?"<"+i+">":"<...>";var l=T0(a);if(l==="Object"){l="",i-=2;for(var d in a)if(a.hasOwnProperty(d)){var p=JSON.stringify(d);if(p!=='"'+d+'"'&&(d=p),i-=d.length-2,p=jf(a[d],15>i?i:15),i-=p.length,0>i){l+=l===""?"...":", ...";break}l+=(l===""?"":",")+d+":"+p}return"{"+l+"}"}return l;case"function":return(i=a.displayName||a.name)?"function "+i:"function";default:return String(a)}}function uu(a,i){return typeof a!="string"||v5.test(a)?"{"+jf(a,i-2)+"}":a.length>i-2?5>i?'"..."':'"'+a.slice(0,i-5)+'..."':'"'+a+'"'}function _0(a,i,l){var d=120-l.length-a.length,p=[],v;for(v in i)if(i.hasOwnProperty(v)&&v!=="children"){var E=uu(i[v],120-l.length-v.length-1);d-=v.length+E.length+2,p.push(v+"="+E)}return p.length===0?l+"<"+a+`>
|
||
`:0<d?l+"<"+a+" "+p.join(" ")+`>
|
||
`:l+"<"+a+`
|
||
`+l+" "+p.join(`
|
||
`+l+" ")+`
|
||
`+l+`>
|
||
`}function AG(a,i,l){var d="",p=mt({},i),v;for(v in a)if(a.hasOwnProperty(v)){delete p[v];var E=120-2*l-v.length-2,O=jf(a[v],E);i.hasOwnProperty(v)?(E=jf(i[v],E),d+=cu(l)+v+": "+O+`
|
||
`,d+=Ol(l)+v+": "+E+`
|
||
`):d+=cu(l)+v+": "+O+`
|
||
`}for(var k in p)p.hasOwnProperty(k)&&(a=jf(p[k],120-2*l-k.length-2),d+=Ol(l)+k+": "+a+`
|
||
`);return d}function OG(a,i,l,d){var p="",v=new Map;for(L in l)l.hasOwnProperty(L)&&v.set(L.toLowerCase(),L);if(v.size===1&&v.has("children"))p+=_0(a,i,Qr(d));else{for(var E in i)if(i.hasOwnProperty(E)&&E!=="children"){var O=120-2*(d+1)-E.length-1,k=v.get(E.toLowerCase());if(k!==void 0){v.delete(E.toLowerCase());var L=i[E];k=l[k];var oe=uu(L,O);O=uu(k,O),typeof L=="object"&&L!==null&&typeof k=="object"&&k!==null&&T0(L)==="Object"&&T0(k)==="Object"&&(2<Object.keys(L).length||2<Object.keys(k).length||-1<oe.indexOf("...")||-1<O.indexOf("..."))?p+=Qr(d+1)+E+`={{
|
||
`+AG(L,k,d+2)+Qr(d+1)+`}}
|
||
`:(p+=cu(d+1)+E+"="+oe+`
|
||
`,p+=Ol(d+1)+E+"="+O+`
|
||
`)}else p+=Qr(d+1)+E+"="+uu(i[E],O)+`
|
||
`}v.forEach(function(se){if(se!=="children"){var Z=120-2*(d+1)-se.length-1;p+=Ol(d+1)+se+"="+uu(l[se],Z)+`
|
||
`}}),p=p===""?Qr(d)+"<"+a+`>
|
||
`:Qr(d)+"<"+a+`
|
||
`+p+Qr(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),p+=Zp(v,""+a,d+1)):(typeof i=="string"||typeof i=="number"||typeof i=="bigint")&&(p=a==null?p+Zp(""+i,null,d+1):p+Zp(""+i,void 0,d+1)),p}function fR(a,i){var l=dR(a);if(l===null){for(l="",a=a.child;a;)l+=fR(a,i),a=a.sibling;return l}return Qr(i)+"<"+l+`>
|
||
`}function j0(a,i){var l=uR(a,i);if(l!==a&&(a.children.length!==1||a.children[0]!==l))return Qr(i)+`...
|
||
`+j0(l,i+1);l="";var d=a.fiber._debugInfo;if(d)for(var p=0;p<d.length;p++){var v=d[p].name;typeof v=="string"&&(l+=Qr(i)+"<"+v+`>
|
||
`,i++)}if(d="",p=a.fiber.pendingProps,a.fiber.tag===6)d=Zp(p,a.serverProps,i),i++;else if(v=dR(a.fiber),v!==null)if(a.serverProps===void 0){d=i;var E=120-2*d-v.length-2,O="";for(L in p)if(p.hasOwnProperty(L)&&L!=="children"){var k=uu(p[L],15);if(E-=L.length+k.length+2,0>E){O+=" ...";break}O+=" "+L+"="+k}d=Qr(d)+"<"+v+O+`>
|
||
`,i++}else a.serverProps===null?(d=_0(v,p,cu(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=OG(v,p,a.serverProps,i),i++);var L="";for(p=a.fiber.child,v=0;p&&v<a.children.length;)E=a.children[v],E.fiber===p?(L+=j0(E,i),v++):L+=fR(p,i),p=p.sibling;for(p&&0<a.children.length&&(L+=Qr(i)+`...
|
||
`),p=a.serverTail,a.serverProps===null&&i--,a=0;a<p.length;a++)v=p[a],L=typeof v=="string"?L+(Ol(i)+_f(v,120-2*i)+`
|
||
`):L+_0(v.type,v.props,Ol(i));return l+d+L}function R0(a){try{return`
|
||
|
||
`+j0(a,0)}catch{return""}}function mR(a,i,l){for(var d=i,p=null,v=0;d;)d===a&&(v=0),p={fiber:d,children:p!==null?[p]:[],serverProps:d===i?l:d===a?null:void 0,serverTail:[],distanceFromLeaf:v},v++,d=d.return;return p!==null?R0(p).replaceAll(/^[+-]/gm,">"):""}function hR(a,i){var l=mt({},a||y5),d={tag:i};return b5.indexOf(i)!==-1&&(l.aTagInScope=null,l.buttonTagInScope=null,l.nobrTagInScope=null),RQ.indexOf(i)!==-1&&(l.pTagInButtonScope=null),jQ.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 pR(a,i,l){switch(i){case"select":return a==="hr"||a==="option"||a==="optgroup"||a==="script"||a==="template"||a==="#text";case"optgroup":return a==="option"||a==="#text";case"option":return a==="#text";case"tr":return a==="th"||a==="td"||a==="style"||a==="script"||a==="template";case"tbody":case"thead":case"tfoot":return a==="tr"||a==="style"||a==="script"||a==="template";case"colgroup":return a==="col"||a==="template";case"table":return a==="caption"||a==="colgroup"||a==="tbody"||a==="tfoot"||a==="thead"||a==="style"||a==="script"||a==="template";case"head":return a==="base"||a==="basefont"||a==="bgsound"||a==="link"||a==="meta"||a==="title"||a==="noscript"||a==="noframes"||a==="style"||a==="script"||a==="template";case"html":if(l)break;return a==="head"||a==="body"||a==="frameset";case"frameset":return a==="frame";case"#document":if(!l)return a==="html"}switch(a){case"h1":case"h2":case"h3":case"h4":case"h5":case"h6":return i!=="h1"&&i!=="h2"&&i!=="h3"&&i!=="h4"&&i!=="h5"&&i!=="h6";case"rp":case"rt":return PQ.indexOf(i)===-1;case"caption":case"col":case"colgroup":case"frameset":case"frame":case"tbody":case"td":case"tfoot":case"th":case"thead":case"tr":return i==null;case"head":return l||i===null;case"html":return l&&i==="#document"||i===null;case"body":return l&&(i==="#document"||i==="html")||i===null}return!0}function DG(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 gR(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 P0(a,i){i=i||y5;var l=i.current;if(i=(l=pR(a,l&&l.tag,i.implicitRootScope)?null:l)?null:DG(a,i),i=l||i,!i)return!0;var d=i.tag;if(i=String(!!l)+"|"+a+"|"+d,uv[i])return!1;uv[i]=!0;var p=(i=ra)?gR(i.return,d):null,v=i!==null&&p!==null?mR(p,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,p===null||a===null||p===a&&a._debugOwner===i._debugOwner||de(p,function(){console.error(`<%s> cannot contain a nested %s.
|
||
See this log for the ancestor stack trace.`,d,E)})),!1}function Jp(a,i,l){if(l||pR("#text",i,!1))return!0;if(l="#text|"+i,uv[l])return!1;uv[l]=!0;var d=(l=ra)?gR(l,i):null;return l=l!==null&&d!==null?mR(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 Rf(a,i){if(i){var l=a.firstChild;if(l&&l===a.lastChild&&l.nodeType===3){l.nodeValue=i;return}}a.textContent=i}function CG(a){return a.replace(IQ,function(i,l){return l.toUpperCase()})}function vR(a,i,l){var d=i.indexOf("--")===0;d||(-1<i.indexOf("-")?_u.hasOwnProperty(i)&&_u[i]||(_u[i]=!0,console.error("Unsupported style property %s. Did you mean %s?",i,CG(i.replace(kQ,"ms-")))):MQ.test(i)?_u.hasOwnProperty(i)&&_u[i]||(_u[i]=!0,console.error("Unsupported vendor-prefixed style property %s. Did you mean %s?",i,i.charAt(0).toUpperCase()+i.slice(1))):!w5.test(l)||XN.hasOwnProperty(l)&&XN[l]||(XN[l]=!0,console.error(`Style property values shouldn't contain a semicolon. Try "%s: %s" instead.`,i,l.replace(w5,""))),typeof l=="number"&&(isNaN(l)?E5||(E5=!0,console.error("`NaN` is an invalid value for the `%s` css style property.",i)):isFinite(l)||S5||(S5=!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||A5.has(i)?i==="float"?a.cssFloat=l:(nt(l,i),a[i]=(""+l).trim()):a[i]=l+"px"}function bR(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 p in l)if(l.hasOwnProperty(p)&&!i.hasOwnProperty(p))for(var v=QN[p]||[p],E=0;E<v.length;E++)d[v[E]]=p}for(var O in i)if(i.hasOwnProperty(O)&&(!l||l[O]!==i[O]))for(p=QN[O]||[O],v=0;v<p.length;v++)d[p[v]]=O;O={};for(var k in i)for(p=QN[k]||[k],v=0;v<p.length;v++)O[p[v]]=k;k={};for(var L in d)if(p=d[L],(v=O[L])&&p!==v&&(E=p+","+v,!k[E])){k[E]=!0,E=console;var oe=i[p];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",p,v)}}for(var se in l)!l.hasOwnProperty(se)||i!=null&&i.hasOwnProperty(se)||(se.indexOf("--")===0?a.setProperty(se,""):se==="float"?a.cssFloat="":a[se]="");for(var Z in i)L=i[Z],i.hasOwnProperty(Z)&&l[Z]!==L&&vR(a,Z,L)}else for(d in i)i.hasOwnProperty(d)&&vR(a,d,i[d])}function Pf(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 yR(a){return LQ.get(a)||a}function TG(a,i){if(Xa.call(Ru,i)&&Ru[i])return!0;if($Q.test(i)){if(a="aria-"+i.slice(4).toLowerCase(),a=O5.hasOwnProperty(a)?a:null,a==null)return console.error("Invalid ARIA attribute `%s`. ARIA attributes follow the pattern aria-* and must be lowercase.",i),Ru[i]=!0;if(i!==a)return console.error("Invalid ARIA attribute `%s`. Did you mean `%s`?",i,a),Ru[i]=!0}if(VQ.test(i)){if(a=i.toLowerCase(),a=O5.hasOwnProperty(a)?a:null,a==null)return Ru[i]=!0,!1;i!==a&&(console.error("Unknown ARIA attribute `%s`. Did you mean `%s`?",i,a),Ru[i]=!0)}return!0}function _G(a,i){var l=[],d;for(d in i)TG(a,d)||l.push(d);i=l.map(function(p){return"`"+p+"`"}).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 jG(a,i,l,d){if(Xa.call(Er,i)&&Er[i])return!0;var p=i.toLowerCase();if(p==="onfocusin"||p==="onfocusout")return console.error("React uses onFocus and onBlur instead of onFocusIn and onFocusOut. All React events are normalized to bubble, so onFocusIn and onFocusOut are not needed/supported by React."),Er[i]=!0;if(typeof l=="function"&&(a==="form"&&i==="action"||a==="input"&&i==="formAction"||a==="button"&&i==="formAction"))return!0;if(d!=null){if(a=d.possibleRegistrationNames,d.registrationNameDependencies.hasOwnProperty(i))return!0;if(d=a.hasOwnProperty(p)?a[p]:null,d!=null)return console.error("Invalid event handler property `%s`. Did you mean `%s`?",i,d),Er[i]=!0;if(C5.test(i))return console.error("Unknown event handler property `%s`. It will be ignored.",i),Er[i]=!0}else if(C5.test(i))return BQ.test(i)&&console.error("Invalid event handler property `%s`. React events use the camelCase naming convention, for example `onClick`.",i),Er[i]=!0;if(zQ.test(i)||UQ.test(i))return!0;if(p==="innerhtml")return console.error("Directly setting property `innerHTML` is not permitted. For more information, lookup documentation on `dangerouslySetInnerHTML`."),Er[i]=!0;if(p==="aria")return console.error("The `aria` attribute is reserved for future use in React. Pass individual `aria-` attributes instead."),Er[i]=!0;if(p==="is"&&l!==null&&l!==void 0&&typeof l!="string")return console.error("Received a `%s` for a string attribute `is`. If this is expected, cast the value to a string.",typeof l),Er[i]=!0;if(typeof l=="number"&&isNaN(l))return console.error("Received NaN for the `%s` attribute. If this is expected, cast the value to a string.",i),Er[i]=!0;if(fv.hasOwnProperty(p)){if(p=fv[p],p!==i)return console.error("Invalid DOM property `%s`. Did you mean `%s`?",i,p),Er[i]=!0}else if(i!==p)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,p),Er[i]=!0;switch(i){case"dangerouslySetInnerHTML":case"children":case"style":case"suppressContentEditableWarning":case"suppressHydrationWarning":case"defaultValue":case"defaultChecked":case"innerHTML":case"ref":return!0;case"innerText":case"textContent":return!0}switch(typeof l){case"boolean":switch(i){case"autoFocus":case"checked":case"multiple":case"muted":case"selected":case"contentEditable":case"spellCheck":case"draggable":case"value":case"autoReverse":case"externalResourcesRequired":case"focusable":case"preserveAlpha":case"allowFullScreen":case"async":case"autoPlay":case"controls":case"default":case"defer":case"disabled":case"disablePictureInPicture":case"disableRemotePlayback":case"formNoValidate":case"hidden":case"loop":case"noModule":case"noValidate":case"open":case"playsInline":case"readOnly":case"required":case"reversed":case"scoped":case"seamless":case"itemScope":case"capture":case"download":case"inert":return!0;default:return p=i.toLowerCase().slice(0,5),p==="data-"||p==="aria-"?!0:(l?console.error('Received `%s` for a non-boolean attribute `%s`.\n\nIf you want to write it to the DOM, pass a string instead: %s="%s" or %s={value.toString()}.',l,i,i,l,i):console.error('Received `%s` for a non-boolean attribute `%s`.\n\nIf you want to write it to the DOM, pass a string instead: %s="%s" or %s={value.toString()}.\n\nIf you used to conditionally omit it with %s={condition && value}, pass %s={condition ? value : undefined} instead.',l,i,i,l,i,i,i),Er[i]=!0)}case"function":case"symbol":return Er[i]=!0,!1;case"string":if(l==="false"||l==="true"){switch(i){case"checked":case"selected":case"multiple":case"muted":case"allowFullScreen":case"async":case"autoPlay":case"controls":case"default":case"defer":case"disabled":case"disablePictureInPicture":case"disableRemotePlayback":case"formNoValidate":case"hidden":case"loop":case"noModule":case"noValidate":case"open":case"playsInline":case"readOnly":case"required":case"reversed":case"scoped":case"seamless":case"itemScope":case"inert":break;default:return!0}console.error("Received the string `%s` for the boolean attribute `%s`. %s Did you mean %s={%s}?",l,i,l==="false"?"The browser will interpret it as a truthy value.":'Although this works, it will not work as expected if you pass the string "false".',i,l),Er[i]=!0}}return!0}function RG(a,i,l){var d=[],p;for(p in i)jG(a,p,i[p],l)||d.push(p);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 Mf(a){return qQ.test(""+a)?"javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')":a}function Eo(){}function M0(a){return a=a.target||a.srcElement||window,a.correspondingUseElement&&(a=a.correspondingUseElement),a.nodeType===3?a.parentNode:a}function xR(a){var i=De(a);if(i&&(a=i.stateNode)){var l=a[wr]||null;e:switch(a=i.stateNode,i.type){case"input":if(D0(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(Ve(i,"name"),l=l.querySelectorAll('input[name="'+ya(""+i)+'"][type="radio"]'),i=0;i<l.length;i++){var d=l[i];if(d!==a&&d.form===a.form){var p=d[wr]||null;if(!p)throw Error("ReactDOMInput: Mixing React and non-React radio inputs with the same `name` is not supported.");D0(d,p.value,p.defaultValue,p.defaultValue,p.checked,p.defaultChecked,p.type,p.name)}}for(i=0;i<l.length;i++)d=l[i],d.form===a.form&&tR(d)}break e;case"textarea":lR(a,l.value,l.defaultValue);break e;case"select":i=l.value,i!=null&&lu(a,!!l.multiple,i,!1)}}}function NR(a,i,l){if(WN)return a(i,l);WN=!0;try{var d=a(i);return d}finally{if(WN=!1,(Pu!==null||Mu!==null)&&(xu(),Pu&&(i=Pu,a=Mu,Mu=Pu=null,xR(i),a)))for(i=0;i<a.length;i++)xR(a[i])}}function kf(a,i){var l=a.stateNode;if(l===null)return null;var d=l[wr]||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 wR(){if(mv)return mv;var a,i=JN,l=i.length,d,p="value"in Ms?Ms.value:Ms.textContent,v=p.length;for(a=0;a<l&&i[a]===p[a];a++);var E=l-a;for(d=1;d<=E&&i[l-d]===p[v-d];d++);return mv=p.slice(a,1<d?1-d:void 0)}function eg(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 tg(){return!0}function ER(){return!1}function Lr(a){function i(l,d,p,v,E){this._reactName=l,this._targetInst=p,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)?tg:ER,this.isPropagationStopped=ER,this}return mt(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=tg)},stopPropagation:function(){var l=this.nativeEvent;l&&(l.stopPropagation?l.stopPropagation():typeof l.cancelBubble!="unknown"&&(l.cancelBubble=!0),this.isPropagationStopped=tg)},persist:function(){},isPersistent:tg}),i}function PG(a){var i=this.nativeEvent;return i.getModifierState?i.getModifierState(a):(a=nX[a])?!!i[a]:!1}function k0(){return PG}function SR(a,i){switch(a){case"keyup":return hX.indexOf(i.keyCode)!==-1;case"keydown":return i.keyCode!==R5;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function AR(a){return a=a.detail,typeof a=="object"&&"data"in a?a.data:null}function MG(a,i){switch(a){case"compositionend":return AR(i);case"keypress":return i.which!==M5?null:(I5=!0,k5);case"textInput":return a=i.data,a===k5&&I5?null:a;default:return null}}function kG(a,i){if(ku)return a==="compositionend"||!rw&&SR(a,i)?(a=wR(),mv=JN=Ms=null,ku=!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 P5&&i.locale!=="ko"?null:i.data;default:return null}}function OR(a){var i=a&&a.nodeName&&a.nodeName.toLowerCase();return i==="input"?!!gX[a.type]:i==="textarea"}function IG(a){if(!qi)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 DR(a,i,l,d){Pu?Mu?Mu.push(d):Mu=[d]:Pu=d,i=Gg(i,"onChange"),0<i.length&&(l=new hv("onChange","change",null,l,d),a.push({event:l,listeners:i}))}function LG(a){c3(a,0)}function ng(a){var i=Me(a);if(tR(i))return a}function CR(a,i){if(a==="change")return i}function TR(){ym&&(ym.detachEvent("onpropertychange",_R),xm=ym=null)}function _R(a){if(a.propertyName==="value"&&ng(xm)){var i=[];DR(i,xm,a,M0(a)),NR(LG,i)}}function VG(a,i,l){a==="focusin"?(TR(),ym=i,xm=l,ym.attachEvent("onpropertychange",_R)):a==="focusout"&&TR()}function $G(a){if(a==="selectionchange"||a==="keyup"||a==="keydown")return ng(xm)}function BG(a,i){if(a==="click")return ng(i)}function zG(a,i){if(a==="input"||a==="change")return ng(i)}function UG(a,i){return a===i&&(a!==0||1/a===1/i)||a!==a&&i!==i}function If(a,i){if(Sr(a,i))return!0;if(typeof a!="object"||a===null||typeof i!="object"||i===null)return!1;var l=Object.keys(a),d=Object.keys(i);if(l.length!==d.length)return!1;for(d=0;d<l.length;d++){var p=l[d];if(!Xa.call(i,p)||!Sr(a[p],i[p]))return!1}return!0}function jR(a){for(;a&&a.firstChild;)a=a.firstChild;return a}function RR(a,i){var l=jR(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=jR(l)}}function PR(a,i){return a&&i?a===i?!0:a&&a.nodeType===3?!1:i&&i.nodeType===3?PR(a,i.parentNode):"contains"in a?a.contains(i):a.compareDocumentPosition?!!(a.compareDocumentPosition(i)&16):!1:!1}function MR(a){a=a!=null&&a.ownerDocument!=null&&a.ownerDocument.defaultView!=null?a.ownerDocument.defaultView:window;for(var i=Wp(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=Wp(a.document)}return i}function I0(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 kR(a,i,l){var d=l.window===l?l.document:l.nodeType===9?l:l.ownerDocument;iw||Iu==null||Iu!==Wp(d)||(d=Iu,"selectionStart"in d&&I0(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}),Nm&&If(Nm,d)||(Nm=d,d=Gg(aw,"onSelect"),0<d.length&&(i=new hv("onSelect","select",null,i,l),a.push({event:i,listeners:d}),i.target=Iu)))}function Dl(a,i){var l={};return l[a.toLowerCase()]=i.toLowerCase(),l["Webkit"+a]="webkit"+i,l["Moz"+a]="moz"+i,l}function Cl(a){if(ow[a])return ow[a];if(!Lu[a])return a;var i=Lu[a],l;for(l in i)if(i.hasOwnProperty(l)&&l in V5)return ow[a]=i[l];return a}function Ka(a,i){q5.set(a,i),He(i,[a])}function qG(a){for(var i=gv,l=0;l<a.length;l++){var d=a[l];if(typeof d=="object"&&d!==null)if(Rn(d)&&d.length===2&&typeof d[0]=="string"){if(i!==gv&&i!==dw)return cw;i=dw}else return cw;else{if(typeof d=="function"||typeof d=="string"&&50<d.length||i!==gv&&i!==uw)return cw;i=uw}}return i}function L0(a,i,l,d){for(var p in a)Xa.call(a,p)&&p[0]!=="_"&&Ni(p,a[p],i,l,d)}function Ni(a,i,l,d,p){switch(typeof i){case"object":if(i===null){i="null";break}else{if(i.$$typeof===Li){var v=M(i.type)||"…",E=i.key;i=i.props;var O=Object.keys(i),k=O.length;if(E==null&&k===0){i="<"+v+" />";break}if(3>d||k===1&&O[0]==="children"&&E==null){i="<"+v+" … />";break}l.push([p+" ".repeat(d)+a,"<"+v]),E!==null&&Ni("key",E,l,d+1,p),a=!1;for(var L in i)L==="children"?i.children!=null&&(!Rn(i.children)||0<i.children.length)&&(a=!0):Xa.call(i,L)&&L[0]!=="_"&&Ni(L,i[L],l,d+1,p);l.push(["",a?">…</"+v+">":"/>"]);return}if(v=Object.prototype.toString.call(i),v=v.slice(8,v.length-1),v==="Array"){if(L=qG(i),L===uw||L===gv){i=JSON.stringify(i);break}else if(L===dw){for(l.push([p+" ".repeat(d)+a,""]),a=0;a<i.length;a++)v=i[a],Ni(v[0],v[1],l,d+1,p);return}}if(v==="Promise"){if(i.status==="fulfilled"){if(v=l.length,Ni(a,i.value,l,d,p),l.length>v){l=l[v],l[1]="Promise<"+(l[1]||"Object")+">";return}}else if(i.status==="rejected"&&(v=l.length,Ni(a,i.reason,l,d,p),l.length>v)){l=l[v],l[1]="Rejected Promise<"+l[1]+">";return}l.push([" ".repeat(d)+a,"Promise"]);return}v==="Object"&&(L=Object.getPrototypeOf(i))&&typeof L.constructor=="function"&&(v=L.constructor.name),l.push([p+" ".repeat(d)+a,v==="Object"?3>d?"":"…":v]),3>d&&L0(i,l,d+1,p);return}case"function":i=i.name===""?"() => {}":i.name+"() {}";break;case"string":i=i===EX?"…":JSON.stringify(i);break;case"undefined":i="undefined";break;case"boolean":i=i?"true":"false";break;default:i=String(i)}l.push([p+" ".repeat(d)+a,i])}function IR(a,i,l,d){var p=!0;for(E in a)E in i||(l.push([vv+" ".repeat(d)+E,"…"]),p=!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")p=" ".repeat(d)+v,l.push([vv+p,"…"],[bv+p,"…"]);else{if(!(3<=d)){if(typeof E=="object"&&typeof O=="object"&&E!==null&&O!==null&&E.$$typeof===O.$$typeof)if(O.$$typeof===Li){if(E.type===O.type&&E.key===O.key){E=M(O.type)||"…",p=" ".repeat(d)+v,E="<"+E+" … />",l.push([vv+p,E],[bv+p,E]),p=!1;continue}}else{var k=Object.prototype.toString.call(E),L=Object.prototype.toString.call(O);if(k===L&&(L==="[object Object]"||L==="[object Array]")){k=[K5+" ".repeat(d)+v,L==="[object Array]"?"Array":""],l.push(k),L=l.length,IR(E,O,l,d+1)?L===l.length&&(k[1]="Referentially unequal but deeply equal objects. Consider memoization."):p=!1;continue}}else if(typeof E=="function"&&typeof O=="function"&&E.name===O.name&&E.length===O.length&&(k=Function.prototype.toString.call(E),L=Function.prototype.toString.call(O),k===L)){E=O.name===""?"() => {}":O.name+"() {}",l.push([K5+" ".repeat(d)+v,E+" Referentially unequal function closure. Consider memoization."]);continue}}Ni(v,E,l,d,vv),Ni(v,O,l,d,bv)}p=!1}}else l.push([bv+" ".repeat(d)+v,"…"]),p=!1;return p}function Ga(a){Nt=a&63?"Blocking":a&64?"Gesture":a&4194176?"Transition":a&62914560?"Suspense":a&2080374784?"Idle":"Other"}function wi(a,i,l,d){Qt&&(Is.start=i,Is.end=l,Po.color="warning",Po.tooltipText=d,Po.properties=null,(a=a._debugTask)?a.run(performance.measure.bind(performance,d,Is)):performance.measure(d,Is))}function rg(a,i,l){wi(a,i,l,"Reconnect")}function ag(a,i,l,d,p){var v=z(a);if(v!==null&&Qt){var E=a.alternate,O=a.actualDuration;if(E===null||E.child!==a.child)for(var k=a.child;k!==null;k=k.sibling)O-=k.actualDuration;d=.5>O?d?"tertiary-light":"primary-light":10>O?d?"tertiary":"primary":100>O?d?"tertiary-dark":"primary-dark":"error";var L=a.memoizedProps;O=a._debugTask,L!==null&&E!==null&&E.memoizedProps!==L?(k=[SX],L=IR(E.memoizedProps,L,k,0),1<k.length&&(L&&!ks&&(E.lanes&p)===0&&100<a.actualDuration?(ks=!0,k[0]=AX,Po.color="warning",Po.tooltipText=G5):(Po.color=d,Po.tooltipText=v),Po.properties=k,Is.start=i,Is.end=l,O!=null?O.run(performance.measure.bind(performance,""+v,Is)):performance.measure(""+v,Is))):O!=null?O.run(console.timeStamp.bind(console,v,i,l,wa,void 0,d)):console.timeStamp(v,i,l,wa,void 0,d)}}function V0(a,i,l,d){if(Qt){var p=z(a);if(p!==null){for(var v=null,E=[],O=0;O<d.length;O++){var k=d[O];v==null&&k.source!==null&&(v=k.source._debugTask),k=k.value,E.push(["Error",typeof k=="object"&&k!==null&&typeof k.message=="string"?String(k.message):String(k)])}a.key!==null&&Ni("key",a.key,E,0,""),a.memoizedProps!==null&&L0(a.memoizedProps,E,0,""),v==null&&(v=a._debugTask),a={start:i,end:l,detail:{devtools:{color:"error",track:wa,tooltipText:a.tag===13?"Hydration failed":"Error boundary caught an error",properties:E}}},v?v.run(performance.measure.bind(performance,""+p,a)):performance.measure(""+p,a)}}}function Ei(a,i,l,d,p){if(p!==null){if(Qt){var v=z(a);if(v!==null){d=[];for(var E=0;E<p.length;E++){var O=p[E].value;d.push(["Error",typeof O=="object"&&O!==null&&typeof O.message=="string"?String(O.message):String(O)])}a.key!==null&&Ni("key",a.key,d,0,""),a.memoizedProps!==null&&L0(a.memoizedProps,d,0,""),i={start:i,end:l,detail:{devtools:{color:"error",track:wa,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=z(a),v!==null&&Qt&&(p=1>d?"secondary-light":100>d?"secondary":500>d?"secondary-dark":"error",(a=a._debugTask)?a.run(console.timeStamp.bind(console,v,i,l,wa,void 0,p)):console.timeStamp(v,i,l,wa,void 0,p))}function HG(a,i,l,d){if(Qt&&!(i<=a)){var p=(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,Nt,yt,p)):console.timeStamp(l,a,i,Nt,yt,p)}}function LR(a,i,l,d){!Qt||i<=a||(l=(l&738197653)===l?"tertiary-dark":"primary-dark",d?d.run(console.timeStamp.bind(console,"Prewarm",a,i,Nt,yt,l)):console.timeStamp("Prewarm",a,i,Nt,yt,l))}function VR(a,i,l,d){!Qt||i<=a||(l=(l&738197653)===l?"tertiary-dark":"primary-dark",d?d.run(console.timeStamp.bind(console,"Suspended",a,i,Nt,yt,l)):console.timeStamp("Suspended",a,i,Nt,yt,l))}function FG(a,i,l,d,p,v){if(Qt&&!(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:Nt,trackGroup:yt,tooltipText:p?"Hydration Failed":"Recovered after Error",properties:l}}},v?v.run(performance.measure.bind(performance,"Recovered",a)):performance.measure("Recovered",a)}}function $0(a,i,l,d){!Qt||i<=a||(d?d.run(console.timeStamp.bind(console,"Errored",a,i,Nt,yt,"error")):console.timeStamp("Errored",a,i,Nt,yt,"error"))}function KG(a,i,l,d){!Qt||i<=a||(d?d.run(console.timeStamp.bind(console,l,a,i,Nt,yt,"secondary-light")):console.timeStamp(l,a,i,Nt,yt,"secondary-light"))}function $R(a,i,l,d,p){if(Qt&&!(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:Nt,trackGroup:yt,tooltipText:d?"Remaining Effects Errored":"Commit Errored",properties:v}}},p?p.run(performance.measure.bind(performance,"Errored",a)):performance.measure("Errored",a)}}function B0(a,i,l){!Qt||i<=a||console.timeStamp("Animating",a,i,Nt,yt,"secondary-dark")}function ig(){for(var a=Vu,i=fw=Vu=0;i<a;){var l=Ea[i];Ea[i++]=null;var d=Ea[i];Ea[i++]=null;var p=Ea[i];Ea[i++]=null;var v=Ea[i];if(Ea[i++]=null,d!==null&&p!==null){var E=d.pending;E===null?p.next=p:(p.next=E.next,E.next=p),d.pending=p}v!==0&&BR(l,p,v)}}function og(a,i,l,d){Ea[Vu++]=a,Ea[Vu++]=i,Ea[Vu++]=l,Ea[Vu++]=d,fw|=d,a.lanes|=d,a=a.alternate,a!==null&&(a.lanes|=d)}function z0(a,i,l,d){return og(a,i,l,d),sg(a)}function or(a,i){return og(a,null,null,i),sg(a)}function BR(a,i,l){a.lanes|=l;var d=a.alternate;d!==null&&(d.lanes|=l);for(var p=!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&wm||(p=!0)),a=v,v=v.return;return a.tag===3?(v=a.stateNode,p&&i!==null&&(p=31-Nr(l),a=v.hiddenUpdates,d=a[p],d===null?a[p]=[i]:d.push(i),i.lane=l|536870912),v):null}function sg(a){if(Qm>zX)throw ac=Qm=0,Xm=Fw=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.");ac>UX&&(ac=0,Xm=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&&n3(a);for(var i=a,l=i.return;l!==null;)i.alternate===null&&(i.flags&4098)!==0&&n3(a),i=l,l=i.return;return i.tag===3?i.stateNode:null}function Tl(a){if(Sa===null)return a;var i=Sa(a);return i===void 0?a:i.current}function U0(a){if(Sa===null)return a;var i=Sa(a);return i===void 0?a!=null&&typeof a.render=="function"&&(i=Tl(a.render),a.render!==i)?(i={$$typeof:um,render:i},a.displayName!==void 0&&(i.displayName=a.displayName),i):a:i.current}function zR(a,i){if(Sa===null)return!1;var l=a.elementType;i=i.type;var d=!1,p=typeof i=="object"&&i!==null?i.$$typeof:null;switch(a.tag){case 1:typeof i=="function"&&(d=!0);break;case 0:(typeof i=="function"||p===na)&&(d=!0);break;case 11:(p===um||p===na)&&(d=!0);break;case 14:case 15:(p===av||p===na)&&(d=!0);break;default:return!1}return!!(d&&(a=Sa(l),a!==void 0&&a===Sa(i)))}function UR(a){Sa!==null&&typeof WeakSet=="function"&&($u===null&&($u=new WeakSet),$u.add(a))}function qR(a,i,l){do{var d=a,p=d.alternate,v=d.child,E=d.sibling,O=d.tag;d=d.type;var k=null;switch(O){case 0:case 15:case 1:k=d;break;case 11:k=d.render}if(Sa===null)throw Error("Expected resolveFamily to be set during hot reload.");var L=!1;if(d=!1,k!==null&&(k=Sa(k),k!==void 0&&(l.has(k)?d=!0:i.has(k)&&(O===1?d=!0:L=!0))),$u!==null&&($u.has(a)||p!==null&&$u.has(p))&&(d=!0),d&&(a._debugNeedsRemount=!0),(d||L)&&(p=or(a,2),p!==null&&cn(p,a,2)),v===null||d||qR(v,i,l),E===null)break;a=E}while(!0)}function GG(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,Y5||typeof Object.preventExtensions!="function"||Object.preventExtensions(this)}function q0(a){return a=a.prototype,!(!a||!a.isReactComponent)}function So(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=Tl(a.type);break;case 1:l.type=Tl(a.type);break;case 11:l.type=U0(a.type)}return l}function HR(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 H0(a,i,l,d,p,v){var E=0,O=a;if(typeof a=="function")q0(a)&&(E=1),O=Tl(O);else if(typeof a=="string")E=Q(),E=nQ(a,l,E)?26:a==="html"||a==="head"||a==="body"?27:5;else e:switch(a){case LN:return i=y(31,l,i,p),i.elementType=LN,i.lanes=v,i;case Du:return _l(l.children,p,v,i);case rv:E=8,p|=lr,p|=Wa;break;case PN:return a=l,d=p,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|st),i.elementType=PN,i.lanes=v,i.stateNode={effectDuration:0,passiveEffectDuration:0},i;case kN:return i=y(13,l,i,p),i.elementType=kN,i.lanes=v,i;case IN:return i=y(19,l,i,p),i.elementType=IN,i.lanes=v,i;default:if(typeof a=="object"&&a!==null)switch(a.$$typeof){case Vi:E=10;break e;case MN:E=9;break e;case um:E=11,O=U0(O);break e;case av:E=14;break e;case na: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":Rn(a)?l="array":a!==void 0&&a.$$typeof===Li?(l="<"+(M(a.type)||"Unknown")+" />",O=" Did you accidentally export a JSX literal instead of a component?"):l=typeof a,(E=d?$(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,p),i.elementType=a,i.type=O,i.lanes=v,i._debugOwner=d,i}function lg(a,i,l){return i=H0(a.type,a.key,a.props,a._owner,i,l),i._debugOwner=a._owner,i._debugStack=a._debugStack,i._debugTask=a._debugTask,i}function _l(a,i,l,d){return a=y(7,a,d,i),a.lanes=l,a}function F0(a,i,l){return a=y(6,a,null,i),a.lanes=l,a}function FR(a){var i=y(18,null,null,Ye);return i.stateNode=a,i}function K0(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 Xr(a,i){if(typeof a=="object"&&a!==null){var l=mw.get(a);return l!==void 0?l:(i={value:a,source:i,stack:le(i)},mw.set(a,i),i)}return{value:a,source:i,stack:le(i)}}function Ao(a,i){bs(),Bu[zu++]=Em,Bu[zu++]=yv,yv=a,Em=i}function KR(a,i,l){bs(),Aa[Oa++]=ko,Aa[Oa++]=Io,Aa[Oa++]=ql,ql=a;var d=ko;a=Io;var p=32-Nr(d)-1;d&=~(1<<p),l+=1;var v=32-Nr(i)+p;if(30<v){var E=p-p%5;v=(d&(1<<E)-1).toString(32),d>>=E,p-=E,ko=1<<32-Nr(i)+p|l<<p|d,Io=v+a}else ko=1<<v|l<<p|d,Io=a}function G0(a){bs(),a.return!==null&&(Ao(a,1),KR(a,1,0))}function Y0(a){for(;a===yv;)yv=Bu[--zu],Bu[zu]=null,Em=Bu[--zu],Bu[zu]=null;for(;a===ql;)ql=Aa[--Oa],Aa[Oa]=null,Io=Aa[--Oa],Aa[Oa]=null,ko=Aa[--Oa],Aa[Oa]=null}function GR(){return bs(),ql!==null?{id:ko,overflow:Io}:null}function YR(a,i){bs(),Aa[Oa++]=ko,Aa[Oa++]=Io,Aa[Oa++]=ql,ko=i.id,Io=i.overflow,ql=a}function bs(){pt||console.error("Expected to be hydrating. This is a bug in React. Please file an issue.")}function jl(a,i){if(a.return===null){if(aa===null)aa={fiber:a,children:[],serverProps:void 0,serverTail:[],distanceFromLeaf:i};else{if(aa.fiber!==a)throw Error("Saw multiple hydration diff roots in a pass. This is a bug in React.");aa.distanceFromLeaf>i&&(aa.distanceFromLeaf=i)}return aa}var l=jl(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 QR(){pt&&console.error("We should not be hydrating here. This is a bug in React. Please file a bug.")}function cg(a,i){Hi||(a=jl(a,0),a.serverProps=null,i!==null&&(i=D3(i),a.serverTail.push(i)))}function ys(a){var i=1<arguments.length&&arguments[1]!==void 0?arguments[1]:!1,l="",d=aa;throw d!==null&&(aa=null,l=R0(d)),Lf(Xr(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)),hw}function XR(a){var i=a.stateNode,l=a.type,d=a.memoizedProps;switch(i[tr]=a,i[wr]=d,hN(l,d),l){case"dialog":bt("cancel",i),bt("close",i);break;case"iframe":case"object":case"embed":bt("load",i);break;case"video":case"audio":for(l=0;l<Wm.length;l++)bt(Wm[l],i);break;case"source":bt("error",i);break;case"img":case"image":case"link":bt("error",i),bt("load",i);break;case"details":bt("toggle",i);break;case"input":zt("input",d),bt("invalid",i),nR(i,d),rR(i,d.value,d.defaultValue,d.checked,d.defaultChecked,d.type,d.name,!0);break;case"option":aR(i,d);break;case"select":zt("select",d),bt("invalid",i),oR(i,d);break;case"textarea":zt("textarea",d),bt("invalid",i),sR(i,d),cR(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||m3(i.textContent,l)?(d.popover!=null&&(bt("beforetoggle",i),bt("toggle",i)),d.onScroll!=null&&bt("scroll",i),d.onScrollEnd!=null&&bt("scrollend",i),d.onClick!=null&&(i.onclick=Eo),i=!0):i=!1,i||ys(a,!0)}function WR(a){for(nr=a.return;nr;)switch(nr.tag){case 5:case 31:case 13:Da=!1;return;case 27:case 3:Da=!0;return;default:nr=nr.return}}function du(a){if(a!==nr)return!1;if(!pt)return WR(a),pt=!0,!1;var i=a.tag,l;if((l=i!==3&&i!==27)&&((l=i===5)&&(l=a.type,l=!(l!=="form"&&l!=="button")||yN(a.type,a.memoizedProps)),l=!l),l&&Xt){for(l=Xt;l;){var d=jl(a,0),p=D3(l);d.serverTail.push(p),l=p.type==="Suspense"?EN(l):ta(l.nextSibling)}ys(a)}if(WR(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.");Xt=EN(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.");Xt=EN(a)}else i===27?(i=Xt,Ts(a.type)?(a=rE,rE=null,Xt=a):Xt=i):Xt=nr?ta(a.stateNode.nextSibling):null;return!0}function Rl(){Xt=nr=null,Hi=pt=!1}function Q0(){var a=Vs;return a!==null&&(Cr===null?Cr=a:Cr.push.apply(Cr,a),Vs=null),a}function Lf(a){Vs===null?Vs=[a]:Vs.push(a)}function X0(){var a=aa;if(a!==null){aa=null;for(var i=R0(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 ug(){Uu=xv=null,qu=!1}function xs(a,i,l){F(pw,i._currentValue,a),i._currentValue=l,F(gw,i._currentRenderer,a),i._currentRenderer!==void 0&&i._currentRenderer!==null&&i._currentRenderer!==X5&&console.error("Detected multiple renderers concurrently rendering the same context provider. This is currently unsupported."),i._currentRenderer=X5}function Oo(a,i){a._currentValue=pw.current;var l=gw.current;V(gw,i),a._currentRenderer=l,V(pw,i)}function W0(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 Z0(a,i,l,d){var p=a.child;for(p!==null&&(p.return=a);p!==null;){var v=p.dependencies;if(v!==null){var E=p.child;v=v.firstContext;e:for(;v!==null;){var O=v;v=p;for(var k=0;k<i.length;k++)if(O.context===i[k]){v.lanes|=l,O=v.alternate,O!==null&&(O.lanes|=l),W0(v.return,l,a),d||(E=null);break e}v=O.next}}else if(p.tag===18){if(E=p.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),W0(E,l,a),E=null}else E=p.child;if(E!==null)E.return=p;else for(E=p;E!==null;){if(E===a){E=null;break}if(p=E.sibling,p!==null){p.return=E.return,E=p;break}E=E.return}p=E}}function fu(a,i,l,d){a=null;for(var p=i,v=!1;p!==null;){if(!v){if((p.flags&524288)!==0)v=!0;else if((p.flags&262144)!==0)break}if(p.tag===10){var E=p.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=p.type;Sr(p.pendingProps.value,E.value)||(a!==null?a.push(O):a=[O])}}else if(p===iv.current){if(E=p.alternate,E===null)throw Error("Should have a current fiber. This is a bug in React.");E.memoizedState.memoizedState!==p.memoizedState.memoizedState&&(a!==null?a.push(nh):a=[nh])}p=p.return}a!==null&&Z0(i,a,l,d),i.flags|=262144}function dg(a){for(a=a.firstContext;a!==null;){if(!Sr(a.context._currentValue,a.memoizedValue))return!0;a=a.next}return!1}function Pl(a){xv=a,Uu=null,a=a.dependencies,a!==null&&(a.firstContext=null)}function tn(a){return qu&&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()."),ZR(xv,a)}function fg(a,i){return xv===null&&Pl(a),ZR(a,i)}function ZR(a,i){var l=i._currentValue;if(i={context:i,memoizedValue:l,next:null},Uu===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().");Uu=i,a.dependencies={lanes:0,firstContext:i,_debugThenableState:null},a.flags|=524288}else Uu=Uu.next=i;return l}function J0(){return{controller:new CX,data:new Map,refCount:0}}function Ml(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 Vf(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&&TX(_X,function(){a.controller.abort()})}function Si(a,i,l){(a&127)!==0?0>Fi&&(Fi=En(),Am=Nv(i),vw=i,l!=null&&(bw=z(l)),(Et&(Mn|sa))!==Yn&&(un=!0,Bs=Sm),a=im(),i=am(),a!==Hu||i!==Om?Hu=-1.1:i!==null&&(Bs=Sm),Kl=a,Om=i):(a&4194048)!==0&&0>Ca&&(Ca=En(),Dm=Nv(i),W5=i,l!=null&&(Z5=z(l)),0>Bo)&&(a=im(),i=am(),(a!==Us||i!==Gl)&&(Us=-1.1),zs=a,Gl=i)}function YG(a){if(0>Fi){Fi=En(),Am=a._debugTask!=null?a._debugTask:null,(Et&(Mn|sa))!==Yn&&(Bs=Sm);var i=im(),l=am();i!==Hu||l!==Om?Hu=-1.1:l!==null&&(Bs=Sm),Kl=i,Om=l}0>Ca&&(Ca=En(),Dm=a._debugTask!=null?a._debugTask:null,0>Bo)&&(a=im(),i=am(),(a!==Us||i!==Gl)&&(Us=-1.1),zs=a,Gl=i)}function Do(){var a=Hl;return Hl=0,a}function mg(a){var i=Hl;return Hl=a,i}function $f(a){var i=Hl;return Hl+=a,i}function hg(){Ge=qe=-1.1}function Wr(){var a=qe;return qe=-1.1,a}function Zr(a){0<=a&&(qe=a)}function Ai(){var a=on;return on=-0,a}function Oi(a){0<=a&&(on=a)}function Di(){var a=nn;return nn=null,a}function Ci(){var a=un;return un=!1,a}function e1(a){Ar=En(),0>a.actualStartTime&&(a.actualStartTime=Ar)}function t1(a){if(0<=Ar){var i=En()-Ar;a.actualDuration+=i,a.selfBaseDuration=i,Ar=-1}}function JR(a){if(0<=Ar){var i=En()-Ar;a.actualDuration+=i,Ar=-1}}function Ti(){if(0<=Ar){var a=En(),i=a-Ar;Ar=-1,Hl+=i,on+=i,Ge=a}}function eP(a){nn===null&&(nn=[]),nn.push(a),Vo===null&&(Vo=[]),Vo.push(a)}function _i(){Ar=En(),0>qe&&(qe=Ar)}function Bf(a){for(var i=a.child;i;)a.actualDuration+=i.actualDuration,i=i.sibling}function QG(a,i){if(Tm===null){var l=Tm=[];xw=0,Yl=uN(),Fu={status:"pending",value:void 0,then:function(d){l.push(d)}}}return xw++,i.then(tP,tP),i}function tP(){if(--xw===0&&(-1<Ca||(Bo=-1.1),Tm!==null)){Fu!==null&&(Fu.status="fulfilled");var a=Tm;Tm=null,Yl=0,Fu=null;for(var i=0;i<a.length;i++)(0,a[i])()}}function XG(a,i){var l=[],d={status:"pending",value:null,reason:null,then:function(p){l.push(p)}};return a.then(function(){d.status="fulfilled",d.value=i;for(var p=0;p<l.length;p++)(0,l[p])(i)},function(p){for(d.status="rejected",d.reason=p,p=0;p<l.length;p++)(0,l[p])(void 0)}),d}function n1(){var a=Ql.current;return a!==null?a:Ht.pooledCache}function pg(a,i){i===null?F(Ql,Ql.current,a):F(Ql,i.pool,a)}function nP(){var a=n1();return a===null?null:{parent:wn._currentValue,pool:a}}function rP(){return{didWarnAboutUncachedPromise:!1,thenables:[]}}function aP(a){return a=a.status,a==="fulfilled"||a==="rejected"}function iP(a,i,l){pe.actQueue!==null&&(pe.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(Eo,Eo),i=l),i._debugInfo===void 0){a=performance.now(),d=i.displayName;var p={name:typeof d=="string"?d:"Promise",start:a,end:a,value:i};i._debugInfo=[{awaited:p}],i.status!=="fulfilled"&&i.status!=="rejected"&&(a=function(){p.end=performance.now()},i.then(a,a))}switch(i.status){case"fulfilled":return i.value;case"rejected":throw a=i.reason,sP(a),a;default:if(typeof i.status=="string")i.then(Eo,Eo);else{if(a=Ht,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,sP(a),a}throw Wl=i,Im=!0,Ku}}function Ns(a){try{return kX(a)}catch(i){throw i!==null&&typeof i=="object"&&typeof i.then=="function"?(Wl=i,Im=!0,Ku):i}}function oP(){if(Wl===null)throw Error("Expected a suspended thenable. This is a bug in React. Please file an issue.");var a=Wl;return Wl=null,Im=!1,a}function sP(a){if(a===Ku||a===Tv)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=lt;return a!=null&&(lt=i===null?a:i.concat(a)),i}function r1(){var a=lt;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 gg(a,i,l){for(var d=Object.keys(a.props),p=0;p<d.length;p++){var v=d[p];if(v!=="children"&&v!=="key"){i===null&&(i=lg(a,l.mode,0),i._debugInfo=lt,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 vg(a){var i=Lm;return Lm+=1,Gu===null&&(Gu=rP()),iP(Gu,a,i)}function zf(a,i){i=i.props.ref,a.ref=i!==void 0?i:null}function lP(a,i){throw i.$$typeof===mQ?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 bg(a,i){var l=r1();l!==null?l.run(lP.bind(null,a,i)):lP(a,i)}function cP(a,i){var l=z(a)||"Component";bk[l]||(bk[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 yg(a,i){var l=r1();l!==null?l.run(cP.bind(null,a,i)):cP(a,i)}function uP(a,i){var l=z(a)||"Component";yk[l]||(yk[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 xg(a,i){var l=r1();l!==null?l.run(uP.bind(null,a,i)):uP(a,i)}function dP(a){function i(W,J){if(a){var ae=W.deletions;ae===null?(W.deletions=[J],W.flags|=16):ae.push(J)}}function l(W,J){if(!a)return null;for(;J!==null;)i(W,J),J=J.sibling;return null}function d(W){for(var J=new Map;W!==null;)W.key!==null?J.set(W.key,W):J.set(W.index,W),W=W.sibling;return J}function p(W,J){return W=So(W,J),W.index=0,W.sibling=null,W}function v(W,J,ae){return W.index=ae,a?(ae=W.alternate,ae!==null?(ae=ae.index,ae<J?(W.flags|=67108866,J):ae):(W.flags|=67108866,J)):(W.flags|=1048576,J)}function E(W){return a&&W.alternate===null&&(W.flags|=67108866),W}function O(W,J,ae,ve){return J===null||J.tag!==6?(J=F0(ae,W.mode,ve),J.return=W,J._debugOwner=W,J._debugTask=W._debugTask,J._debugInfo=lt,J):(J=p(J,ae),J.return=W,J._debugInfo=lt,J)}function k(W,J,ae,ve){var Te=ae.type;return Te===Du?(J=oe(W,J,ae.props.children,ve,ae.key),gg(ae,J,W),J):J!==null&&(J.elementType===Te||zR(J,ae)||typeof Te=="object"&&Te!==null&&Te.$$typeof===na&&Ns(Te)===J.type)?(J=p(J,ae.props),zf(J,ae),J.return=W,J._debugOwner=ae._owner,J._debugInfo=lt,J):(J=lg(ae,W.mode,ve),zf(J,ae),J.return=W,J._debugInfo=lt,J)}function L(W,J,ae,ve){return J===null||J.tag!==4||J.stateNode.containerInfo!==ae.containerInfo||J.stateNode.implementation!==ae.implementation?(J=K0(ae,W.mode,ve),J.return=W,J._debugInfo=lt,J):(J=p(J,ae.children||[]),J.return=W,J._debugInfo=lt,J)}function oe(W,J,ae,ve,Te){return J===null||J.tag!==7?(J=_l(ae,W.mode,ve,Te),J.return=W,J._debugOwner=W,J._debugTask=W._debugTask,J._debugInfo=lt,J):(J=p(J,ae),J.return=W,J._debugInfo=lt,J)}function se(W,J,ae){if(typeof J=="string"&&J!==""||typeof J=="number"||typeof J=="bigint")return J=F0(""+J,W.mode,ae),J.return=W,J._debugOwner=W,J._debugTask=W._debugTask,J._debugInfo=lt,J;if(typeof J=="object"&&J!==null){switch(J.$$typeof){case Li:return ae=lg(J,W.mode,ae),zf(ae,J),ae.return=W,W=Zn(J._debugInfo),ae._debugInfo=lt,lt=W,ae;case Ou:return J=K0(J,W.mode,ae),J.return=W,J._debugInfo=lt,J;case na:var ve=Zn(J._debugInfo);return J=Ns(J),W=se(W,J,ae),lt=ve,W}if(Rn(J)||R(J))return ae=_l(J,W.mode,ae,null),ae.return=W,ae._debugOwner=W,ae._debugTask=W._debugTask,W=Zn(J._debugInfo),ae._debugInfo=lt,lt=W,ae;if(typeof J.then=="function")return ve=Zn(J._debugInfo),W=se(W,vg(J),ae),lt=ve,W;if(J.$$typeof===Vi)return se(W,fg(W,J),ae);bg(W,J)}return typeof J=="function"&&yg(W,J),typeof J=="symbol"&&xg(W,J),null}function Z(W,J,ae,ve){var Te=J!==null?J.key:null;if(typeof ae=="string"&&ae!==""||typeof ae=="number"||typeof ae=="bigint")return Te!==null?null:O(W,J,""+ae,ve);if(typeof ae=="object"&&ae!==null){switch(ae.$$typeof){case Li:return ae.key===Te?(Te=Zn(ae._debugInfo),W=k(W,J,ae,ve),lt=Te,W):null;case Ou:return ae.key===Te?L(W,J,ae,ve):null;case na:return Te=Zn(ae._debugInfo),ae=Ns(ae),W=Z(W,J,ae,ve),lt=Te,W}if(Rn(ae)||R(ae))return Te!==null?null:(Te=Zn(ae._debugInfo),W=oe(W,J,ae,ve,null),lt=Te,W);if(typeof ae.then=="function")return Te=Zn(ae._debugInfo),W=Z(W,J,vg(ae),ve),lt=Te,W;if(ae.$$typeof===Vi)return Z(W,J,fg(W,ae),ve);bg(W,ae)}return typeof ae=="function"&&yg(W,ae),typeof ae=="symbol"&&xg(W,ae),null}function fe(W,J,ae,ve,Te){if(typeof ve=="string"&&ve!==""||typeof ve=="number"||typeof ve=="bigint")return W=W.get(ae)||null,O(J,W,""+ve,Te);if(typeof ve=="object"&&ve!==null){switch(ve.$$typeof){case Li:return ae=W.get(ve.key===null?ae:ve.key)||null,W=Zn(ve._debugInfo),J=k(J,ae,ve,Te),lt=W,J;case Ou:return W=W.get(ve.key===null?ae:ve.key)||null,L(J,W,ve,Te);case na:var Ze=Zn(ve._debugInfo);return ve=Ns(ve),J=fe(W,J,ae,ve,Te),lt=Ze,J}if(Rn(ve)||R(ve))return ae=W.get(ae)||null,W=Zn(ve._debugInfo),J=oe(J,ae,ve,Te,null),lt=W,J;if(typeof ve.then=="function")return Ze=Zn(ve._debugInfo),J=fe(W,J,ae,vg(ve),Te),lt=Ze,J;if(ve.$$typeof===Vi)return fe(W,J,ae,fg(J,ve),Te);bg(J,ve)}return typeof ve=="function"&&yg(J,ve),typeof ve=="symbol"&&xg(J,ve),null}function Ce(W,J,ae,ve){if(typeof ae!="object"||ae===null)return ve;switch(ae.$$typeof){case Li:case Ou:g(W,J,ae);var Te=ae.key;if(typeof Te!="string")break;if(ve===null){ve=new Set,ve.add(Te);break}if(!ve.has(Te)){ve.add(Te);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.",Te)});break;case na:ae=Ns(ae),Ce(W,J,ae,ve)}return ve}function _e(W,J,ae,ve){for(var Te=null,Ze=null,Ue=null,$e=J,at=J=0,Wt=null;$e!==null&&at<ae.length;at++){$e.index>at?(Wt=$e,$e=null):Wt=$e.sibling;var bn=Z(W,$e,ae[at],ve);if(bn===null){$e===null&&($e=Wt);break}Te=Ce(W,bn,ae[at],Te),a&&$e&&bn.alternate===null&&i(W,$e),J=v(bn,J,at),Ue===null?Ze=bn:Ue.sibling=bn,Ue=bn,$e=Wt}if(at===ae.length)return l(W,$e),pt&&Ao(W,at),Ze;if($e===null){for(;at<ae.length;at++)$e=se(W,ae[at],ve),$e!==null&&(Te=Ce(W,$e,ae[at],Te),J=v($e,J,at),Ue===null?Ze=$e:Ue.sibling=$e,Ue=$e);return pt&&Ao(W,at),Ze}for($e=d($e);at<ae.length;at++)Wt=fe($e,W,at,ae[at],ve),Wt!==null&&(Te=Ce(W,Wt,ae[at],Te),a&&Wt.alternate!==null&&$e.delete(Wt.key===null?at:Wt.key),J=v(Wt,J,at),Ue===null?Ze=Wt:Ue.sibling=Wt,Ue=Wt);return a&&$e.forEach(function(Yo){return i(W,Yo)}),pt&&Ao(W,at),Ze}function Gt(W,J,ae,ve){if(ae==null)throw Error("An iterable object provided no iterator.");for(var Te=null,Ze=null,Ue=J,$e=J=0,at=null,Wt=null,bn=ae.next();Ue!==null&&!bn.done;$e++,bn=ae.next()){Ue.index>$e?(at=Ue,Ue=null):at=Ue.sibling;var Yo=Z(W,Ue,bn.value,ve);if(Yo===null){Ue===null&&(Ue=at);break}Wt=Ce(W,Yo,bn.value,Wt),a&&Ue&&Yo.alternate===null&&i(W,Ue),J=v(Yo,J,$e),Ze===null?Te=Yo:Ze.sibling=Yo,Ze=Yo,Ue=at}if(bn.done)return l(W,Ue),pt&&Ao(W,$e),Te;if(Ue===null){for(;!bn.done;$e++,bn=ae.next())Ue=se(W,bn.value,ve),Ue!==null&&(Wt=Ce(W,Ue,bn.value,Wt),J=v(Ue,J,$e),Ze===null?Te=Ue:Ze.sibling=Ue,Ze=Ue);return pt&&Ao(W,$e),Te}for(Ue=d(Ue);!bn.done;$e++,bn=ae.next())at=fe(Ue,W,$e,bn.value,ve),at!==null&&(Wt=Ce(W,at,bn.value,Wt),a&&at.alternate!==null&&Ue.delete(at.key===null?$e:at.key),J=v(at,J,$e),Ze===null?Te=at:Ze.sibling=at,Ze=at);return a&&Ue.forEach(function(iW){return i(W,iW)}),pt&&Ao(W,$e),Te}function xt(W,J,ae,ve){if(typeof ae=="object"&&ae!==null&&ae.type===Du&&ae.key===null&&(gg(ae,null,W),ae=ae.props.children),typeof ae=="object"&&ae!==null){switch(ae.$$typeof){case Li:var Te=Zn(ae._debugInfo);e:{for(var Ze=ae.key;J!==null;){if(J.key===Ze){if(Ze=ae.type,Ze===Du){if(J.tag===7){l(W,J.sibling),ve=p(J,ae.props.children),ve.return=W,ve._debugOwner=ae._owner,ve._debugInfo=lt,gg(ae,ve,W),W=ve;break e}}else if(J.elementType===Ze||zR(J,ae)||typeof Ze=="object"&&Ze!==null&&Ze.$$typeof===na&&Ns(Ze)===J.type){l(W,J.sibling),ve=p(J,ae.props),zf(ve,ae),ve.return=W,ve._debugOwner=ae._owner,ve._debugInfo=lt,W=ve;break e}l(W,J);break}else i(W,J);J=J.sibling}ae.type===Du?(ve=_l(ae.props.children,W.mode,ve,ae.key),ve.return=W,ve._debugOwner=W,ve._debugTask=W._debugTask,ve._debugInfo=lt,gg(ae,ve,W),W=ve):(ve=lg(ae,W.mode,ve),zf(ve,ae),ve.return=W,ve._debugInfo=lt,W=ve)}return W=E(W),lt=Te,W;case Ou:e:{for(Te=ae,ae=Te.key;J!==null;){if(J.key===ae)if(J.tag===4&&J.stateNode.containerInfo===Te.containerInfo&&J.stateNode.implementation===Te.implementation){l(W,J.sibling),ve=p(J,Te.children||[]),ve.return=W,W=ve;break e}else{l(W,J);break}else i(W,J);J=J.sibling}ve=K0(Te,W.mode,ve),ve.return=W,W=ve}return E(W);case na:return Te=Zn(ae._debugInfo),ae=Ns(ae),W=xt(W,J,ae,ve),lt=Te,W}if(Rn(ae))return Te=Zn(ae._debugInfo),W=_e(W,J,ae,ve),lt=Te,W;if(R(ae)){if(Te=Zn(ae._debugInfo),Ze=R(ae),typeof Ze!="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=Ze.call(ae);return Ue===ae?(W.tag!==0||Object.prototype.toString.call(W.type)!=="[object GeneratorFunction]"||Object.prototype.toString.call(Ue)!=="[object Generator]")&&(gk||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."),gk=!0):ae.entries!==Ze||Sw||(console.error("Using Maps as children is not supported. Use an array of keyed ReactElements instead."),Sw=!0),W=Gt(W,J,Ue,ve),lt=Te,W}if(typeof ae.then=="function")return Te=Zn(ae._debugInfo),W=xt(W,J,vg(ae),ve),lt=Te,W;if(ae.$$typeof===Vi)return xt(W,J,fg(W,ae),ve);bg(W,ae)}return typeof ae=="string"&&ae!==""||typeof ae=="number"||typeof ae=="bigint"?(Te=""+ae,J!==null&&J.tag===6?(l(W,J.sibling),ve=p(J,Te),ve.return=W,W=ve):(l(W,J),ve=F0(Te,W.mode,ve),ve.return=W,ve._debugOwner=W,ve._debugTask=W._debugTask,ve._debugInfo=lt,W=ve),E(W)):(typeof ae=="function"&&yg(W,ae),typeof ae=="symbol"&&xg(W,ae),l(W,J))}return function(W,J,ae,ve){var Te=lt;lt=null;try{Lm=0;var Ze=xt(W,J,ae,ve);return Gu=null,Ze}catch(Wt){if(Wt===Ku||Wt===Tv)throw Wt;var Ue=y(29,Wt,null,W.mode);Ue.lanes=ve,Ue.return=W;var $e=Ue._debugInfo=lt;if(Ue._debugOwner=W._debugOwner,Ue._debugTask=W._debugTask,$e!=null){for(var at=$e.length-1;0<=at;at--)if(typeof $e[at].stack=="string"){Ue._debugOwner=$e[at],Ue._debugTask=$e[at].debugTask;break}}return Ue}finally{lt=Te}}}function fP(a,i){var l=Rn(a);return a=!l&&typeof R(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 a1(a){a.updateQueue={baseState:a.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function i1(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 ws(a){return{lane:a,tag:Nk,payload:null,callback:null,next:null}}function Es(a,i,l){var d=a.updateQueue;if(d===null)return null;if(d=d.shared,Ow===d&&!Sk){var p=z(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`,p),Sk=!0}return(Et&Mn)!==Yn?(p=d.pending,p===null?i.next=i:(i.next=p.next,p.next=i),d.pending=i,i=sg(a),BR(a,null,l),i):(og(a,d,i,l),sg(a))}function Uf(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,vs(a,l)}}function Ng(a,i){var l=a.updateQueue,d=a.alternate;if(d!==null&&(d=d.updateQueue,l===d)){var p=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?p=v=E:v=v.next=E,l=l.next}while(l!==null);v===null?p=v=i:v=v.next=i}else p=v=i;l={baseState:d.baseState,firstBaseUpdate:p,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 qf(){if(Dw){var a=Fu;if(a!==null)throw a}}function Hf(a,i,l,d){Dw=!1;var p=a.updateQueue;qs=!1,Ow=p.shared;var v=p.firstBaseUpdate,E=p.lastBaseUpdate,O=p.shared.pending;if(O!==null){p.shared.pending=null;var k=O,L=k.next;k.next=null,E===null?v=L:E.next=L,E=k;var oe=a.alternate;oe!==null&&(oe=oe.updateQueue,O=oe.lastBaseUpdate,O!==E&&(O===null?oe.firstBaseUpdate=L:O.next=L,oe.lastBaseUpdate=k))}if(v!==null){var se=p.baseState;E=0,oe=L=k=null,O=v;do{var Z=O.lane&-536870913,fe=Z!==O.lane;if(fe?(ct&Z)===Z:(d&Z)===Z){Z!==0&&Z===Yl&&(Dw=!0),oe!==null&&(oe=oe.next={lane:0,tag:O.tag,payload:O.payload,callback:null,next:null});e:{Z=a;var Ce=O,_e=i,Gt=l;switch(Ce.tag){case wk:if(Ce=Ce.payload,typeof Ce=="function"){qu=!0;var xt=Ce.call(Gt,se,_e);if(Z.mode&lr){Re(!0);try{Ce.call(Gt,se,_e)}finally{Re(!1)}}qu=!1,se=xt;break e}se=Ce;break e;case Aw:Z.flags=Z.flags&-65537|128;case Nk:if(xt=Ce.payload,typeof xt=="function"){if(qu=!0,Ce=xt.call(Gt,se,_e),Z.mode&lr){Re(!0);try{xt.call(Gt,se,_e)}finally{Re(!1)}}qu=!1}else Ce=xt;if(Ce==null)break e;se=mt({},se,Ce);break e;case Ek:qs=!0}}Z=O.callback,Z!==null&&(a.flags|=64,fe&&(a.flags|=8192),fe=p.callbacks,fe===null?p.callbacks=[Z]:fe.push(Z))}else fe={lane:Z,tag:O.tag,payload:O.payload,callback:O.callback,next:null},oe===null?(L=oe=fe,k=se):oe=oe.next=fe,E|=Z;if(O=O.next,O===null){if(O=p.shared.pending,O===null)break;fe=O,O=fe.next,fe.next=null,p.lastBaseUpdate=fe,p.shared.pending=null}}while(!0);oe===null&&(k=se),p.baseState=k,p.firstBaseUpdate=L,p.lastBaseUpdate=oe,v===null&&(p.shared.lanes=0),Ks|=E,a.lanes=E,a.memoizedState=se}Ow=null}function mP(a,i){if(typeof a!="function")throw Error("Invalid argument passed as callback. Expected a function. Instead received: "+a);a.call(i)}function WG(a,i){var l=a.shared.hiddenCallbacks;if(l!==null)for(a.shared.hiddenCallbacks=null,a=0;a<l.length;a++)mP(l[a],i)}function hP(a,i){var l=a.callbacks;if(l!==null)for(a.callbacks=null,a=0;a<l.length;a++)mP(l[a],i)}function pP(a,i){var l=Gi;F(jv,l,a),F(Yu,i,a),Gi=l|i.baseLanes}function o1(a){F(jv,Gi,a),F(Yu,Yu.current,a)}function s1(a){Gi=jv.current,V(Yu,a),V(jv,a)}function Ss(a){var i=a.alternate;F(vn,vn.current&Qu,a),F(ia,a,a),Ta===null&&(i===null||Yu.current!==null||i.memoizedState!==null)&&(Ta=a)}function l1(a){F(vn,vn.current,a),F(ia,a,a),Ta===null&&(Ta=a)}function gP(a){a.tag===22?(F(vn,vn.current,a),F(ia,a,a),Ta===null&&(Ta=a)):As(a)}function As(a){F(vn,vn.current,a),F(ia,ia.current,a)}function Jr(a){V(ia,a),Ta===a&&(Ta=null),V(vn,a)}function wg(a){for(var i=a;i!==null;){if(i.tag===13){var l=i.memoizedState;if(l!==null&&(l=l.dehydrated,l===null||NN(l)||wN(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 ft(){var a=he;ja===null?ja=[a]:ja.push(a)}function Ae(){var a=he;if(ja!==null&&(qo++,ja[qo]!==a)){var i=z(We);if(!Ak.has(i)&&(Ak.add(i),ja!==null)){for(var l="",d=0;d<=qo;d++){var p=ja[d],v=d===qo?a:p;for(p=d+1+". "+p;30>p.length;)p+=" ";p+=v+`
|
||
`,l+=p}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 mu(a){a==null||Rn(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.",he,typeof a)}function Eg(){var a=z(We);Dk.has(a)||(Dk.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 c1(a,i){if(Bm)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.",he),!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`,he,"["+i.join(", ")+"]","["+a.join(", ")+"]");for(var l=0;l<i.length&&l<a.length;l++)if(!Sr(a[l],i[l]))return!1;return!0}function u1(a,i,l,d,p,v){zo=v,We=i,ja=a!==null?a._debugHookTypes:null,qo=-1,Bm=a!==null&&a.type!==i.type,(Object.prototype.toString.call(l)==="[object AsyncFunction]"||Object.prototype.toString.call(l)==="[object AsyncGeneratorFunction]")&&(v=z(We),Cw.has(v)||(Cw.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,pe.H=a!==null&&a.memoizedState!==null?_w:ja!==null?Ck:Tw,Jl=v=(i.mode&lr)!==Ye;var E=Nw(l,d,p);if(Jl=!1,Wu&&(E=d1(i,l,d,p)),v){Re(!0);try{E=d1(i,l,d,p)}finally{Re(!1)}}return vP(a,i),E}function vP(a,i){i._debugHookTypes=ja,i.dependencies===null?Uo!==null&&(i.dependencies={lanes:0,firstContext:null,_debugThenableState:Uo}):i.dependencies._debugThenableState=Uo,pe.H=zm;var l=qt!==null&&qt.next!==null;if(zo=0,ja=he=Sn=qt=We=null,qo=-1,a!==null&&(a.flags&65011712)!==(i.flags&65011712)&&console.error("Internal React error: Expected static flag was missing. Please notify the React team."),Pv=!1,$m=0,Uo=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&&dg(a)&&(An=!0)),Im?(Im=!1,a=!0):a=!1,a&&(i=z(i)||"Unknown",Ok.has(i)||Cw.has(i)||(Ok.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 d1(a,i,l,d){We=a;var p=0;do{if(Wu&&(Uo=null),$m=0,Wu=!1,p>=LX)throw Error("Too many re-renders. React limits the number of renders to prevent an infinite loop.");if(p+=1,Bm=!1,Sn=qt=null,a.updateQueue!=null){var v=a.updateQueue;v.lastEffect=null,v.events=null,v.stores=null,v.memoCache!=null&&(v.memoCache.index=0)}qo=-1,pe.H=Tk,v=Nw(i,l,d)}while(Wu);return v}function ZG(){var a=pe.H,i=a.useState()[0];return i=typeof i.then=="function"?Ff(i):i,a=a.useState()[0],(qt!==null?qt.memoizedState:null)!==a&&(We.flags|=1024),i}function f1(){var a=Mv!==0;return Mv=0,a}function m1(a,i,l){i.updateQueue=a.updateQueue,i.flags=(i.mode&Wa)!==Ye?i.flags&-402655237:i.flags&-2053,a.lanes&=~l}function h1(a){if(Pv){for(a=a.memoizedState;a!==null;){var i=a.queue;i!==null&&(i.pending=null),a=a.next}Pv=!1}zo=0,ja=Sn=qt=We=null,qo=-1,he=null,Wu=!1,$m=Mv=0,Uo=null}function xr(){var a={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return Sn===null?We.memoizedState=Sn=a:Sn=Sn.next=a,Sn}function kt(){if(qt===null){var a=We.alternate;a=a!==null?a.memoizedState:null}else a=qt.next;var i=Sn===null?We.memoizedState:Sn.next;if(i!==null)Sn=i,qt=a;else{if(a===null)throw We.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.");qt=a,a={memoizedState:qt.memoizedState,baseState:qt.baseState,baseQueue:qt.baseQueue,queue:qt.queue,next:null},Sn===null?We.memoizedState=Sn=a:Sn=Sn.next=a}return Sn}function Sg(){return{lastEffect:null,events:null,stores:null,memoCache:null}}function Ff(a){var i=$m;return $m+=1,Uo===null&&(Uo=rP()),a=iP(Uo,a,i),i=We,(Sn===null?i.memoizedState:Sn.next)===null&&(i=i.alternate,pe.H=i!==null&&i.memoizedState!==null?_w:Tw),a}function Os(a){if(a!==null&&typeof a=="object"){if(typeof a.then=="function")return Ff(a);if(a.$$typeof===Vi)return tn(a)}throw Error("An unsupported type was passed to use(): "+String(a))}function kl(a){var i=null,l=We.updateQueue;if(l!==null&&(i=l.memoCache),i==null){var d=We.alternate;d!==null&&(d=d.updateQueue,d!==null&&(d=d.memoCache,d!=null&&(i={data:d.data.map(function(p){return p.slice()}),index:0})))}if(i==null&&(i={data:[],index:0}),l===null&&(l=Sg(),We.updateQueue=l),l.memoCache=i,l=i.data[i.index],l===void 0||Bm)for(l=i.data[i.index]=Array(a),d=0;d<a;d++)l[d]=hQ;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 Ya(a,i){return typeof i=="function"?i(a):i}function p1(a,i,l){var d=xr();if(l!==void 0){var p=l(i);if(Jl){Re(!0);try{l(i)}finally{Re(!1)}}}else p=i;return d.memoizedState=d.baseState=p,a={pending:null,lanes:0,dispatch:null,lastRenderedReducer:a,lastRenderedState:p},d.queue=a,a=a.dispatch=rY.bind(null,We,a),[d.memoizedState,a]}function hu(a){var i=kt();return g1(i,qt,a)}function g1(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 p=a.baseQueue,v=d.pending;if(v!==null){if(p!==null){var E=p.next;p.next=v.next,v.next=E}i.baseQueue!==p&&console.error("Internal error: Expected work-in-progress queue to be a clone. This is a bug in React."),i.baseQueue=p=v,d.pending=null}if(v=a.baseState,p===null)a.memoizedState=v;else{i=p.next;var O=E=null,k=null,L=i,oe=!1;do{var se=L.lane&-536870913;if(se!==L.lane?(ct&se)===se:(zo&se)===se){var Z=L.revertLane;if(Z===0)k!==null&&(k=k.next={lane:0,revertLane:0,gesture:null,action:L.action,hasEagerState:L.hasEagerState,eagerState:L.eagerState,next:null}),se===Yl&&(oe=!0);else if((zo&Z)===Z){L=L.next,Z===Yl&&(oe=!0);continue}else se={lane:0,revertLane:L.revertLane,gesture:null,action:L.action,hasEagerState:L.hasEagerState,eagerState:L.eagerState,next:null},k===null?(O=k=se,E=v):k=k.next=se,We.lanes|=Z,Ks|=Z;se=L.action,Jl&&l(v,se),v=L.hasEagerState?L.eagerState:l(v,se)}else Z={lane:se,revertLane:L.revertLane,gesture:L.gesture,action:L.action,hasEagerState:L.hasEagerState,eagerState:L.eagerState,next:null},k===null?(O=k=Z,E=v):k=k.next=Z,We.lanes|=se,Ks|=se;L=L.next}while(L!==null&&L!==i);if(k===null?E=v:k.next=O,!Sr(v,a.memoizedState)&&(An=!0,oe&&(l=Fu,l!==null)))throw l;a.memoizedState=v,a.baseState=E,a.baseQueue=k,d.lastRenderedState=v}return p===null&&(d.lanes=0),[a.memoizedState,d.dispatch]}function Kf(a){var i=kt(),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,p=l.pending,v=i.memoizedState;if(p!==null){l.pending=null;var E=p=p.next;do v=a(v,E.action),E=E.next;while(E!==p);Sr(v,i.memoizedState)||(An=!0),i.memoizedState=v,i.baseQueue===null&&(i.baseState=v),l.lastRenderedState=v}return[v,d]}function v1(a,i,l){var d=We,p=xr();if(pt){if(l===void 0)throw Error("Missing getServerSnapshot, which is required for server-rendered content. Will revert to client rendering.");var v=l();Xu||v===l()||(console.error("The result of getServerSnapshot should be cached to avoid an infinite loop"),Xu=!0)}else{if(v=i(),Xu||(l=i(),Sr(v,l)||(console.error("The result of getSnapshot should be cached to avoid an infinite loop"),Xu=!0)),Ht===null)throw Error("Expected a work-in-progress root. This is a bug in React. Please file an issue.");(ct&127)!==0||bP(d,i,v)}return p.memoizedState=v,l={value:v,getSnapshot:i},p.queue=l,Cg(xP.bind(null,d,l,a),[a]),d.flags|=2048,gu(_a|Dr,{destroy:void 0},yP.bind(null,d,l,v,i),null),v}function Ag(a,i,l){var d=We,p=kt(),v=pt;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(),!Xu){var E=i();Sr(l,E)||(console.error("The result of getSnapshot should be cached to avoid an infinite loop"),Xu=!0)}(E=!Sr((qt||p).memoizedState,l))&&(p.memoizedState=l,An=!0),p=p.queue;var O=xP.bind(null,d,p,a);if(Vr(2048,Dr,O,[a]),p.getSnapshot!==i||E||Sn!==null&&Sn.memoizedState.tag&_a){if(d.flags|=2048,gu(_a|Dr,{destroy:void 0},yP.bind(null,d,p,l,i),null),Ht===null)throw Error("Expected a work-in-progress root. This is a bug in React. Please file an issue.");v||(zo&127)!==0||bP(d,i,l)}return l}function bP(a,i,l){a.flags|=16384,a={getSnapshot:i,value:l},i=We.updateQueue,i===null?(i=Sg(),We.updateQueue=i,i.stores=[a]):(l=i.stores,l===null?i.stores=[a]:l.push(a))}function yP(a,i,l,d){i.value=l,i.getSnapshot=d,NP(i)&&wP(a)}function xP(a,i,l){return l(function(){NP(i)&&(Si(2,"updateSyncExternalStore()",a),wP(a))})}function NP(a){var i=a.getSnapshot;a=a.value;try{var l=i();return!Sr(a,l)}catch{return!0}}function wP(a){var i=or(a,2);i!==null&&cn(i,a,2)}function b1(a){var i=xr();if(typeof a=="function"){var l=a;if(a=l(),Jl){Re(!0);try{l()}finally{Re(!1)}}}return i.memoizedState=i.baseState=a,i.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:Ya,lastRenderedState:a},i}function y1(a){a=b1(a);var i=a.queue,l=zP.bind(null,We,i);return i.dispatch=l,[a.memoizedState,l]}function x1(a){var i=xr();i.memoizedState=i.baseState=a;var l={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return i.queue=l,i=M1.bind(null,We,!0,l),l.dispatch=i,[a,i]}function EP(a,i){var l=kt();return SP(l,qt,a,i)}function SP(a,i,l,d){return a.baseState=l,g1(a,qt,typeof d=="function"?d:Ya)}function AP(a,i){var l=kt();return qt!==null?SP(l,qt,a,i):(l.baseState=a,[a,l.queue.dispatch])}function JG(a,i,l,d,p){if(Mg(a))throw Error("Cannot update form state while rendering.");if(a=i.action,a!==null){var v={payload:p,action:a,next:null,isTransition:!0,status:"pending",value:null,reason:null,listeners:[],then:function(E){v.listeners.push(E)}};pe.T!==null?l(!0):v.isTransition=!1,d(v),l=i.pending,l===null?(v.next=i.pending=v,OP(i,v)):(v.next=l.next,i.pending=l.next=v)}}function OP(a,i){var l=i.action,d=i.payload,p=a.state;if(i.isTransition){var v=pe.T,E={};E._updatedFibers=new Set,pe.T=E;try{var O=l(p,d),k=pe.S;k!==null&&k(E,O),DP(a,i,O)}catch(L){N1(a,i,L)}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),pe.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(p,d),DP(a,i,E)}catch(L){N1(a,i,L)}}function DP(a,i,l){l!==null&&typeof l=="object"&&typeof l.then=="function"?(pe.asyncTransitions++,l.then(Pg,Pg),l.then(function(d){CP(a,i,d)},function(d){return N1(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.")):CP(a,i,l)}function CP(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,OP(a,l)))}function N1(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 _P(a,i){return i}function pu(a,i){if(pt){var l=Ht.formState;if(l!==null){e:{var d=We;if(pt){if(Xt){t:{for(var p=Xt,v=Da;p.nodeType!==8;){if(!v){p=null;break t}if(p=ta(p.nextSibling),p===null){p=null;break t}}v=p.data,p=v===Jw||v===hI?p:null}if(p){Xt=ta(p.nextSibling),d=p.data===Jw;break e}}ys(d)}d=!1}d&&(i=l[0])}}return l=xr(),l.memoizedState=l.baseState=i,d={pending:null,lanes:0,dispatch:null,lastRenderedReducer:_P,lastRenderedState:i},l.queue=d,l=zP.bind(null,We,d),d.dispatch=l,d=b1(!1),v=M1.bind(null,We,!1,d.queue),d=xr(),p={state:i,dispatch:null,action:a,pending:null},d.queue=p,l=JG.bind(null,We,p,v,l),p.dispatch=l,d.memoizedState=a,[i,l,!1]}function Og(a){var i=kt();return jP(i,qt,a)}function jP(a,i,l){if(i=g1(a,i,_P)[0],a=hu(Ya)[0],typeof i=="object"&&i!==null&&typeof i.then=="function")try{var d=Ff(i)}catch(E){throw E===Ku?Tv:E}else d=i;i=kt();var p=i.queue,v=p.dispatch;return l!==i.memoizedState&&(We.flags|=2048,gu(_a|Dr,{destroy:void 0},eY.bind(null,p,l),null)),[d,v,a]}function eY(a,i){a.action=i}function Dg(a){var i=kt(),l=qt;if(l!==null)return jP(i,l,a);kt(),i=i.memoizedState,l=kt();var d=l.queue.dispatch;return l.memoizedState=a,[i,d,!1]}function gu(a,i,l,d){return a={tag:a,create:l,deps:d,inst:i,next:null},i=We.updateQueue,i===null&&(i=Sg(),We.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 w1(a){var i=xr();return a={current:a},i.memoizedState=a}function Il(a,i,l,d){var p=xr();We.flags|=a,p.memoizedState=gu(_a|i,{destroy:void 0},l,d===void 0?null:d)}function Vr(a,i,l,d){var p=kt();d=d===void 0?null:d;var v=p.memoizedState.inst;qt!==null&&d!==null&&c1(d,qt.memoizedState.deps)?p.memoizedState=gu(i,v,l,d):(We.flags|=a,p.memoizedState=gu(_a|i,v,l,d))}function Cg(a,i){(We.mode&Wa)!==Ye?Il(276826112,Dr,a,i):Il(8390656,Dr,a,i)}function tY(a){We.flags|=4;var i=We.updateQueue;if(i===null)i=Sg(),We.updateQueue=i,i.events=[a];else{var l=i.events;l===null?i.events=[a]:l.push(a)}}function E1(a){var i=xr(),l={impl:a};return i.memoizedState=l,function(){if((Et&Mn)!==Yn)throw Error("A function wrapped in useEffectEvent can't be called during rendering.");return l.impl.apply(void 0,arguments)}}function Tg(a){var i=kt().memoizedState;return tY({ref:i,nextImpl:a}),function(){if((Et&Mn)!==Yn)throw Error("A function wrapped in useEffectEvent can't be called during rendering.");return i.impl.apply(void 0,arguments)}}function S1(a,i){var l=4194308;return(We.mode&Wa)!==Ye&&(l|=134217728),Il(l,oa,a,i)}function RP(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 A1(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;(We.mode&Wa)!==Ye&&(d|=134217728),Il(d,oa,RP.bind(null,i,a),l)}function _g(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,Vr(4,oa,RP.bind(null,i,a),l)}function O1(a,i){return xr().memoizedState=[a,i===void 0?null:i],a}function jg(a,i){var l=kt();i=i===void 0?null:i;var d=l.memoizedState;return i!==null&&c1(i,d[1])?d[0]:(l.memoizedState=[a,i],a)}function D1(a,i){var l=xr();i=i===void 0?null:i;var d=a();if(Jl){Re(!0);try{a()}finally{Re(!1)}}return l.memoizedState=[d,i],d}function Rg(a,i){var l=kt();i=i===void 0?null:i;var d=l.memoizedState;if(i!==null&&c1(i,d[1]))return d[0];if(d=a(),Jl){Re(!0);try{a()}finally{Re(!1)}}return l.memoizedState=[d,i],d}function C1(a,i){var l=xr();return T1(l,a,i)}function PP(a,i){var l=kt();return kP(l,qt.memoizedState,a,i)}function MP(a,i){var l=kt();return qt===null?T1(l,a,i):kP(l,qt.memoizedState,a,i)}function T1(a,i,l){return l===void 0||(zo&1073741824)!==0&&(ct&261930)===0?a.memoizedState=i:(a.memoizedState=l,a=IM(),We.lanes|=a,Ks|=a,l)}function kP(a,i,l,d){return Sr(l,i)?l:Yu.current!==null?(a=T1(a,l,d),Sr(a,i)||(An=!0),a):(zo&42)===0||(zo&1073741824)!==0&&(ct&261930)===0?(An=!0,a.memoizedState=l):(a=IM(),We.lanes|=a,Ks|=a,i)}function Pg(){pe.asyncTransitions--}function IP(a,i,l,d,p){var v=Pt.p;Pt.p=v!==0&&v<Ui?v:Ui;var E=pe.T,O={};O._updatedFibers=new Set,pe.T=O,M1(a,!1,i,l);try{var k=p(),L=pe.S;if(L!==null&&L(O,k),k!==null&&typeof k=="object"&&typeof k.then=="function"){pe.asyncTransitions++,k.then(Pg,Pg);var oe=XG(k,d);Gf(a,i,oe,ea(a))}else Gf(a,i,d,ea(a))}catch(se){Gf(a,i,{then:function(){},status:"rejected",reason:se},ea(a))}finally{Pt.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),pe.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 _1(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 p=LP(a).queue;YG(a),IP(a,p,i,uc,l===null?m:function(){return VP(a),l(d)})}function LP(a){var i=a.memoizedState;if(i!==null)return i;i={memoizedState:uc,baseState:uc,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:Ya,lastRenderedState:uc},next:null};var l={};return i.next={memoizedState:l,baseState:l,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:Ya,lastRenderedState:l},next:null},a.memoizedState=i,a=a.alternate,a!==null&&(a.memoizedState=i),i}function VP(a){pe.T===null&&console.error("requestFormReset was called outside a transition or action. To fix, move to an action, or wrap with startTransition.");var i=LP(a);i.next===null&&(i=a.alternate.memoizedState),Gf(a,i.next.queue,{},ea(a))}function j1(){var a=b1(!1);return a=IP.bind(null,We,a.queue,!0,!1),xr().memoizedState=a,[!1,a]}function $P(){var a=hu(Ya)[0],i=kt().memoizedState;return[typeof a=="boolean"?a:Ff(a),i]}function BP(){var a=Kf(Ya)[0],i=kt().memoizedState;return[typeof a=="boolean"?a:Ff(a),i]}function Ll(){return tn(nh)}function R1(){var a=xr(),i=Ht.identifierPrefix;if(pt){var l=Io,d=ko;l=(d&~(1<<32-Nr(d)-1)).toString(32)+l,i="_"+i+"R_"+l,l=Mv++,0<l&&(i+="H"+l.toString(32)),i+="_"}else l=IX++,i="_"+i+"r_"+l.toString(32)+"_";return a.memoizedState=i}function P1(){return xr().memoizedState=nY.bind(null,We)}function nY(a,i){for(var l=a.return;l!==null;){switch(l.tag){case 24:case 3:var d=ea(l),p=ws(d),v=Es(l,p,d);v!==null&&(Si(d,"refresh()",a),cn(v,l,d),Uf(v,l,d)),a=J0(),i!=null&&v!==null&&console.error("The seed argument is not enabled outside experimental channels."),p.payload={cache:a};return}l=l.return}}function rY(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=ea(a);var p={lane:d,revertLane:0,gesture:null,action:l,hasEagerState:!1,eagerState:null,next:null};Mg(a)?UP(i,p):(p=z0(a,i,p,d),p!==null&&(Si(d,"dispatch()",a),cn(p,a,d),qP(p,i,d)))}function zP(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=ea(a),Gf(a,i,l,d)&&Si(d,"setState()",a)}function Gf(a,i,l,d){var p={lane:d,revertLane:0,gesture:null,action:l,hasEagerState:!1,eagerState:null,next:null};if(Mg(a))UP(i,p);else{var v=a.alternate;if(a.lanes===0&&(v===null||v.lanes===0)&&(v=i.lastRenderedReducer,v!==null)){var E=pe.H;pe.H=Ja;try{var O=i.lastRenderedState,k=v(O,l);if(p.hasEagerState=!0,p.eagerState=k,Sr(k,O))return og(a,i,p,0),Ht===null&&ig(),!1}catch{}finally{pe.H=E}}if(l=z0(a,i,p,d),l!==null)return cn(l,a,d),qP(l,i,d),!0}return!1}function M1(a,i,l,d){if(pe.T===null&&Yl===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:uN(),gesture:null,action:d,hasEagerState:!1,eagerState:null,next:null},Mg(a)){if(i)throw Error("Cannot update optimistic state while rendering.");console.error("Cannot call startTransition while rendering.")}else i=z0(a,l,d,2),i!==null&&(Si(2,"setOptimistic()",a),cn(i,a,2))}function Mg(a){var i=a.alternate;return a===We||i!==null&&i===We}function UP(a,i){Wu=Pv=!0;var l=a.pending;l===null?i.next=i:(i.next=l.next,l.next=i),a.pending=i}function qP(a,i,l){if((l&4194048)!==0){var d=i.lanes;d&=a.pendingLanes,l|=d,i.lanes=l,vs(a,l)}}function k1(a){if(a!==null&&typeof a!="function"){var i=String(a);Bk.has(i)||(Bk.add(i),console.error("Expected the last optional `callback` argument to be a function. Instead received: %s.",a))}}function I1(a,i,l,d){var p=a.memoizedState,v=l(d,p);if(a.mode&lr){Re(!0);try{v=l(d,p)}finally{Re(!1)}}v===void 0&&(i=M(i)||"Component",Ik.has(i)||(Ik.add(i),console.error("%s.getDerivedStateFromProps(): A valid state object (or null) must be returned. You have returned undefined.",i))),p=v==null?p:mt({},p,v),a.memoizedState=p,a.lanes===0&&(a.updateQueue.baseState=p)}function HP(a,i,l,d,p,v,E){var O=a.stateNode;if(typeof O.shouldComponentUpdate=="function"){if(l=O.shouldComponentUpdate(d,v,E),a.mode&lr){Re(!0);try{l=O.shouldComponentUpdate(d,v,E)}finally{Re(!1)}}return l===void 0&&console.error("%s.shouldComponentUpdate(): Returned undefined instead of a boolean value. Make sure to return true or false.",M(i)||"Component"),l}return i.prototype&&i.prototype.isPureReactComponent?!If(l,d)||!If(p,v):!0}function FP(a,i,l,d){var p=i.state;typeof i.componentWillReceiveProps=="function"&&i.componentWillReceiveProps(l,d),typeof i.UNSAFE_componentWillReceiveProps=="function"&&i.UNSAFE_componentWillReceiveProps(l,d),i.state!==p&&(a=z(a)||"Component",jk.has(a)||(jk.add(a),console.error("%s.componentWillReceiveProps(): Assigning directly to this.state is deprecated (except inside a component's constructor). Use setState instead.",a)),jw.enqueueReplaceState(i,i.state,null))}function Vl(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=mt({},l));for(var p in a)l[p]===void 0&&(l[p]=a[p])}return l}function KP(a){lw(a),console.warn(`%s
|
||
|
||
%s
|
||
`,Zu?"An error occurred in the <"+Zu+"> 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 GP(a){var i=Zu?"The above error occurred in the <"+Zu+"> 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, "+((Rw||"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,wI+" "+a[0],EI,ib+d+ib,SI):a.splice(0,0,wI,EI,ib+d+ib,SI),a.unshift(console),d=rW.apply(console.error,a),d()}else console.error(`%o
|
||
|
||
%s
|
||
|
||
%s
|
||
`,a,i,l)}function YP(a){lw(a)}function kg(a,i){try{Zu=i.source?z(i.source):null,Rw=null;var l=i.value;if(pe.actQueue!==null)pe.thrownErrors.push(l);else{var d=a.onUncaughtError;d(l,{componentStack:i.stack})}}catch(p){setTimeout(function(){throw p})}}function QP(a,i,l){try{Zu=l.source?z(l.source):null,Rw=z(i);var d=a.onCaughtError;d(l.value,{componentStack:l.stack,errorBoundary:i.tag===1?i.stateNode:null})}catch(p){setTimeout(function(){throw p})}}function L1(a,i,l){return l=ws(l),l.tag=Aw,l.payload={element:null},l.callback=function(){de(i.source,kg,a,i)},l}function V1(a){return a=ws(a),a.tag=Aw,a}function $1(a,i,l,d){var p=l.type.getDerivedStateFromError;if(typeof p=="function"){var v=d.value;a.payload=function(){return p(v)},a.callback=function(){UR(l),de(d.source,QP,i,l,d)}}var E=l.stateNode;E!==null&&typeof E.componentDidCatch=="function"&&(a.callback=function(){UR(l),de(d.source,QP,i,l,d),typeof p!="function"&&(Ys===null?Ys=new Set([this]):Ys.add(this)),RX(this,d),typeof p=="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.",z(l)||"Unknown")})}function aY(a,i,l,d,p){if(l.flags|=32768,zi&&tm(a,p),d!==null&&typeof d=="object"&&typeof d.then=="function"){if(i=l.alternate,i!==null&&fu(i,l,p,!0),pt&&(Hi=!0),l=ia.current,l!==null){switch(l.tag){case 31:case 13:return Ta===null?Hg():l.alternate===null&&sn===Fo&&(sn=Lv),l.flags&=-257,l.flags|=65536,l.lanes=p,d===_v?l.flags|=16384:(i=l.updateQueue,i===null?l.updateQueue=new Set([d]):i.add(d),oN(a,d,p)),!1;case 22:return l.flags|=65536,d===_v?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)),oN(a,d,p)),!1}throw Error("Unexpected Suspense handler tag ("+l.tag+"). This is a bug in React.")}return oN(a,d,p),Hg(),!1}if(pt)return Hi=!0,i=ia.current,i!==null?((i.flags&65536)===0&&(i.flags|=256),i.flags|=65536,i.lanes=p,d!==hw&&Lf(Xr(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!==hw&&Lf(Xr(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,p&=-p,a.lanes|=p,d=Xr(d,l),p=L1(a.stateNode,d,p),Ng(a,p),sn!==Hs&&(sn=ec)),!1;var v=Xr(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(Gm===null?Gm=[v]:Gm.push(v),sn!==Hs&&(sn=ec),i===null)return!0;d=Xr(d,l),l=i;do{switch(l.tag){case 3:return l.flags|=65536,a=p&-p,l.lanes|=a,a=L1(l.stateNode,d,a),Ng(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"&&(Ys===null||!Ys.has(v))))return l.flags|=65536,p&=-p,l.lanes|=p,p=V1(p),$1(p,a,l,d),Ng(l,p),!1}l=l.return}while(l!==null);return!1}function Jn(a,i,l,d){i.child=a===null?xk(i,null,l,d):Zl(i,a.child,l,d)}function XP(a,i,l,d,p){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 Pl(i),d=u1(a,i,l,E,v,p),O=f1(),a!==null&&!An?(m1(a,i,p),Co(a,i,p)):(pt&&O&&G0(i),i.flags|=1,Jn(a,i,d,p),i.child)}function WP(a,i,l,d,p){if(a===null){var v=l.type;return typeof v=="function"&&!q0(v)&&v.defaultProps===void 0&&l.compare===null?(l=Tl(v),i.tag=15,i.type=l,z1(i,v),ZP(a,i,l,d,p)):(a=H0(l.type,null,d,i,i.mode,p),a.ref=i.ref,a.return=i,i.child=a)}if(v=a.child,!G1(a,p)){var E=v.memoizedProps;if(l=l.compare,l=l!==null?l:If,l(E,d)&&a.ref===i.ref)return Co(a,i,p)}return i.flags|=1,a=So(v,d),a.ref=i.ref,a.return=i,i.child=a}function ZP(a,i,l,d,p){if(a!==null){var v=a.memoizedProps;if(If(v,d)&&a.ref===i.ref&&i.type===a.type)if(An=!1,i.pendingProps=d=v,G1(a,p))(a.flags&131072)!==0&&(An=!0);else return i.lanes=a.lanes,Co(a,i,p)}return B1(a,i,l,d,p)}function JP(a,i,l,d){var p=d.children,v=a!==null?a.memoizedState:null;if(a===null&&i.stateNode===null&&(i.stateNode={_visibility:wm,_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,p=0;d!==null;)p=p|d.lanes|d.childLanes,d=d.sibling;d=p&~v}else d=0,i.child=null;return eM(a,i,v,l,d)}if((l&536870912)!==0)i.memoizedState={baseLanes:0,cachePool:null},a!==null&&pg(i,v!==null?v.cachePool:null),v!==null?pP(i,v):o1(i),gP(i);else return d=i.lanes=536870912,eM(a,i,v!==null?v.baseLanes|l:l,l,d)}else v!==null?(pg(i,v.cachePool),pP(i,v),As(i),i.memoizedState=null):(a!==null&&pg(i,null),o1(i),As(i));return Jn(a,i,p,l),i.child}function Yf(a,i){return a!==null&&a.tag===22||i.stateNode!==null||(i.stateNode={_visibility:wm,_pendingMarkers:null,_retryCache:null,_transitions:null}),i.sibling}function eM(a,i,l,d,p){var v=n1();return v=v===null?null:{parent:wn._currentValue,pool:v},i.memoizedState={baseLanes:l,cachePool:v},a!==null&&pg(i,null),o1(i),gP(i),a!==null&&fu(a,i,d,!0),i.childLanes=p,null}function Ig(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=Vg({mode:i.mode,children:i.children},a.mode),i.ref=a.ref,a.child=i,i.return=a,i}function tM(a,i,l){return Zl(i,a.child,null,l),a=Ig(i,i.pendingProps),a.flags|=2,Jr(i),i.memoizedState=null,a}function iY(a,i,l){var d=i.pendingProps,p=(i.flags&128)!==0;if(i.flags&=-129,a===null){if(pt){if(d.mode==="hidden")return a=Ig(i,d),i.lanes=536870912,Yf(null,a);if(l1(i),(a=Xt)?(l=O3(a,Da),l=l!==null&&l.data===oc?l:null,l!==null&&(d={dehydrated:l,treeContext:GR(),retryLane:536870912,hydrationErrors:null},i.memoizedState=d,d=FR(l),d.return=i,i.child=d,nr=i,Xt=null)):l=null,l===null)throw cg(i,a),ys(i);return i.lanes=536870912,null}return Ig(i,d)}var v=a.memoizedState;if(v!==null){var E=v.dehydrated;if(l1(i),p)if(i.flags&256)i.flags&=-257,i=tM(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(QR(),(l&536870912)!==0&&qg(i),An||fu(a,i,l,!1),p=(l&a.childLanes)!==0,An||p){if(d=Ht,d!==null&&(E=Ir(d,l),E!==0&&E!==v.retryLane))throw v.retryLane=E,or(a,E),cn(d,a,E),Pw;Hg(),i=tM(a,i,l)}else a=v.treeContext,Xt=ta(E.nextSibling),nr=i,pt=!0,Vs=null,Hi=!1,aa=null,Da=!1,a!==null&&YR(i,a),i=Ig(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&&qg(i),a=So(v,d),a.ref=i.ref,i.child=a,a.return=i,a}function Lg(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 B1(a,i,l,d,p){if(l.prototype&&typeof l.prototype.render=="function"){var v=M(l)||"Unknown";zk[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),zk[v]=!0)}return i.mode&lr&&Za.recordLegacyContextWarning(i,null),a===null&&(z1(i,i.type),l.contextTypes&&(v=M(l)||"Unknown",qk[v]||(qk[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)))),Pl(i),l=u1(a,i,l,d,void 0,p),d=f1(),a!==null&&!An?(m1(a,i,p),Co(a,i,p)):(pt&&d&&G0(i),i.flags|=1,Jn(a,i,l,p),i.child)}function nM(a,i,l,d,p,v){return Pl(i),qo=-1,Bm=a!==null&&a.type!==i.type,i.updateQueue=null,l=d1(i,d,l,p),vP(a,i),d=f1(),a!==null&&!An?(m1(a,i,v),Co(a,i,v)):(pt&&d&&G0(i),i.flags|=1,Jn(a,i,l,v),i.child)}function rM(a,i,l,d,p){switch(c(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=p&-p;if(i.lanes|=O,E=Ht,E===null)throw Error("Expected a work-in-progress root. This is a bug in React. Please file an issue.");O=V1(O),$1(O,E,i,Xr(v,i)),Ng(i,O)}if(Pl(i),i.stateNode===null){if(E=Ls,v=l.contextType,"contextType"in l&&v!==null&&(v===void 0||v.$$typeof!==Vi)&&!$k.has(l)&&($k.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===MN?" 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",M(l)||"Component",O)),typeof v=="object"&&v!==null&&(E=tn(v)),v=new l(d,E),i.mode&lr){Re(!0);try{v=new l(d,E)}finally{Re(!1)}}if(E=i.memoizedState=v.state!==null&&v.state!==void 0?v.state:null,v.updater=jw,i.stateNode=v,v._reactInternals=i,v._reactInternalInstance=_k,typeof l.getDerivedStateFromProps=="function"&&E===null&&(E=M(l)||"Component",Rk.has(E)||(Rk.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 k=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?k="componentWillUpdate":typeof v.UNSAFE_componentWillUpdate=="function"&&(k="UNSAFE_componentWillUpdate"),E!==null||O!==null||k!==null){v=M(l)||"Component";var L=typeof l.getDerivedStateFromProps=="function"?"getDerivedStateFromProps()":"getSnapshotBeforeUpdate()";Mk.has(v)||(Mk.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,L,E!==null?`
|
||
`+E:"",O!==null?`
|
||
`+O:"",k!==null?`
|
||
`+k:""))}}v=i.stateNode,E=M(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&&!Vk.has(l)&&(Vk.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&&!Lk.has(l)&&(Lk.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.",M(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"||Pk.has(l)||(Pk.add(l),console.error("%s: getSnapshotBeforeUpdate() should be used with componentDidUpdate(). This component defines getSnapshotBeforeUpdate() only.",M(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"||Rn(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={},a1(i),E=l.contextType,v.context=typeof E=="object"&&E!==null?tn(E):Ls,v.state===d&&(E=M(l)||"Component",kk.has(E)||(kk.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&&Za.recordLegacyContextWarning(i,v),Za.recordUnsafeLifecycleWarnings(i,v),v.state=i.memoizedState,E=l.getDerivedStateFromProps,typeof E=="function"&&(I1(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.",z(i)||"Component"),jw.enqueueReplaceState(v,v.state,null)),Hf(i,d,v,p),qf(),v.state=i.memoizedState),typeof v.componentDidMount=="function"&&(i.flags|=4194308),(i.mode&Wa)!==Ye&&(i.flags|=134217728),v=!0}else if(a===null){v=i.stateNode;var oe=i.memoizedProps;O=Vl(l,oe),v.props=O;var se=v.context;k=l.contextType,E=Ls,typeof k=="object"&&k!==null&&(E=tn(k)),L=l.getDerivedStateFromProps,k=typeof L=="function"||typeof v.getSnapshotBeforeUpdate=="function",oe=i.pendingProps!==oe,k||typeof v.UNSAFE_componentWillReceiveProps!="function"&&typeof v.componentWillReceiveProps!="function"||(oe||se!==E)&&FP(i,v,d,E),qs=!1;var Z=i.memoizedState;v.state=Z,Hf(i,d,v,p),qf(),se=i.memoizedState,oe||Z!==se||qs?(typeof L=="function"&&(I1(i,l,L,d),se=i.memoizedState),(O=qs||HP(i,l,O,d,Z,se,E))?(k||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&Wa)!==Ye&&(i.flags|=134217728)):(typeof v.componentDidMount=="function"&&(i.flags|=4194308),(i.mode&Wa)!==Ye&&(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&Wa)!==Ye&&(i.flags|=134217728),v=!1)}else{v=i.stateNode,i1(a,i),E=i.memoizedProps,k=Vl(l,E),v.props=k,L=i.pendingProps,Z=v.context,se=l.contextType,O=Ls,typeof se=="object"&&se!==null&&(O=tn(se)),oe=l.getDerivedStateFromProps,(se=typeof oe=="function"||typeof v.getSnapshotBeforeUpdate=="function")||typeof v.UNSAFE_componentWillReceiveProps!="function"&&typeof v.componentWillReceiveProps!="function"||(E!==L||Z!==O)&&FP(i,v,d,O),qs=!1,Z=i.memoizedState,v.state=Z,Hf(i,d,v,p),qf();var fe=i.memoizedState;E!==L||Z!==fe||qs||a!==null&&a.dependencies!==null&&dg(a.dependencies)?(typeof oe=="function"&&(I1(i,l,oe,d),fe=i.memoizedState),(k=qs||HP(i,l,k,d,Z,fe,O)||a!==null&&a.dependencies!==null&&dg(a.dependencies))?(se||typeof v.UNSAFE_componentWillUpdate!="function"&&typeof v.componentWillUpdate!="function"||(typeof v.componentWillUpdate=="function"&&v.componentWillUpdate(d,fe,O),typeof v.UNSAFE_componentWillUpdate=="function"&&v.UNSAFE_componentWillUpdate(d,fe,O)),typeof v.componentDidUpdate=="function"&&(i.flags|=4),typeof v.getSnapshotBeforeUpdate=="function"&&(i.flags|=1024)):(typeof v.componentDidUpdate!="function"||E===a.memoizedProps&&Z===a.memoizedState||(i.flags|=4),typeof v.getSnapshotBeforeUpdate!="function"||E===a.memoizedProps&&Z===a.memoizedState||(i.flags|=1024),i.memoizedProps=d,i.memoizedState=fe),v.props=d,v.state=fe,v.context=O,v=k):(typeof v.componentDidUpdate!="function"||E===a.memoizedProps&&Z===a.memoizedState||(i.flags|=4),typeof v.getSnapshotBeforeUpdate!="function"||E===a.memoizedProps&&Z===a.memoizedState||(i.flags|=1024),v=!1)}if(O=v,Lg(a,i),E=(i.flags&128)!==0,O||E){if(O=i.stateNode,ie(i),E&&typeof l.getDerivedStateFromError!="function")l=null,Ar=-1;else if(l=ok(O),i.mode&lr){Re(!0);try{ok(O)}finally{Re(!1)}}i.flags|=1,a!==null&&E?(i.child=Zl(i,a.child,null,p),i.child=Zl(i,null,l,p)):Jn(a,i,l,p),i.memoizedState=O.state,a=i.child}else a=Co(a,i,p);return p=i.stateNode,v&&p.props!==d&&(Ju||console.error("It looks like %s is reassigning its own `this.props` while rendering. This is not supported and can lead to confusing bugs.",z(i)||"a component"),Ju=!0),a}function aM(a,i,l,d){return Rl(),i.flags|=256,Jn(a,i,l,d),i.child}function z1(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=M(i)||"Unknown",Hk[a]||(console.error("%s: Function components do not support getDerivedStateFromProps.",a),Hk[a]=!0)),typeof i.contextType=="object"&&i.contextType!==null&&(i=M(i)||"Unknown",Uk[i]||(console.error("%s: Function components do not support contextType.",i),Uk[i]=!0))}function U1(a){return{baseLanes:a,cachePool:nP()}}function q1(a,i,l){return a=a!==null?a.childLanes&~l:0,i&&(a|=qr),a}function iM(a,i,l){var d,p=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&Vm)!==0),d&&(v=!0,i.flags&=-129),d=(i.flags&32)!==0,i.flags&=-33,a===null){if(pt){if(v?Ss(i):As(i),(a=Xt)?(l=O3(a,Da),l=l!==null&&l.data!==oc?l:null,l!==null&&(d={dehydrated:l,treeContext:GR(),retryLane:536870912,hydrationErrors:null},i.memoizedState=d,d=FR(l),d.return=i,i.child=d,nr=i,Xt=null)):l=null,l===null)throw cg(i,a),ys(i);return wN(l)?i.lanes=32:i.lanes=536870912,null}var O=p.children;if(p=p.fallback,v){As(i);var k=i.mode;return O=Vg({mode:"hidden",children:O},k),p=_l(p,k,l,null),O.return=i,p.return=i,O.sibling=p,i.child=O,p=i.child,p.memoizedState=U1(l),p.childLanes=q1(a,d,l),i.memoizedState=Mw,Yf(null,p)}return Ss(i),H1(i,O)}var L=a.memoizedState;if(L!==null){var oe=L.dehydrated;if(oe!==null){if(E)i.flags&256?(Ss(i),i.flags&=-257,i=F1(a,i,l)):i.memoizedState!==null?(As(i),i.child=a.child,i.flags|=128,i=null):(As(i),O=p.fallback,k=i.mode,p=Vg({mode:"visible",children:p.children},k),O=_l(O,k,l,null),O.flags|=2,p.return=i,O.return=i,p.sibling=O,i.child=p,Zl(i,a.child,null,l),p=i.child,p.memoizedState=U1(l),p.childLanes=q1(a,d,l),i.memoizedState=Mw,i=Yf(null,p));else if(Ss(i),QR(),(l&536870912)!==0&&qg(i),wN(oe)){if(d=oe.nextSibling&&oe.nextSibling.dataset,d){O=d.dgst;var se=d.msg;k=d.stck;var Z=d.cstck}v=se,d=O,p=k,oe=Z,O=v,k=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=p||"",O.digest=d,d=k===void 0?null:k,p={value:O,source:null,stack:d},typeof d=="string"&&mw.set(O,p),Lf(p),i=F1(a,i,l)}else if(An||fu(a,i,l,!1),d=(l&a.childLanes)!==0,An||d){if(d=Ht,d!==null&&(p=Ir(d,l),p!==0&&p!==L.retryLane))throw L.retryLane=p,or(a,p),cn(d,a,p),Pw;NN(oe)||Hg(),i=F1(a,i,l)}else NN(oe)?(i.flags|=192,i.child=a.child,i=null):(a=L.treeContext,Xt=ta(oe.nextSibling),nr=i,pt=!0,Vs=null,Hi=!1,aa=null,Da=!1,a!==null&&YR(i,a),i=H1(i,p.children),i.flags|=4096);return i}}return v?(As(i),O=p.fallback,k=i.mode,Z=a.child,oe=Z.sibling,p=So(Z,{mode:"hidden",children:p.children}),p.subtreeFlags=Z.subtreeFlags&65011712,oe!==null?O=So(oe,O):(O=_l(O,k,l,null),O.flags|=2),O.return=i,p.return=i,p.sibling=O,i.child=p,Yf(null,p),p=i.child,O=a.child.memoizedState,O===null?O=U1(l):(k=O.cachePool,k!==null?(Z=wn._currentValue,k=k.parent!==Z?{parent:Z,pool:Z}:k):k=nP(),O={baseLanes:O.baseLanes|l,cachePool:k}),p.memoizedState=O,p.childLanes=q1(a,d,l),i.memoizedState=Mw,Yf(a.child,p)):(L!==null&&(l&62914560)===l&&(l&a.lanes)!==0&&qg(i),Ss(i),l=a.child,a=l.sibling,l=So(l,{mode:"visible",children:p.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 H1(a,i){return i=Vg({mode:"visible",children:i},a.mode),i.return=a,a.child=i}function Vg(a,i){return a=y(22,a,null,i),a.lanes=0,a}function F1(a,i,l){return Zl(i,a.child,null,l),a=H1(i,i.pendingProps.children),a.flags|=2,i.memoizedState=null,a}function oM(a,i,l){a.lanes|=i;var d=a.alternate;d!==null&&(d.lanes|=i),W0(a.return,i,l)}function K1(a,i,l,d,p,v){var E=a.memoizedState;E===null?a.memoizedState={isBackwards:i,rendering:null,renderingStartTime:0,last:d,tail:l,tailMode:p,treeForkCount:v}:(E.isBackwards=i,E.rendering=null,E.renderingStartTime=0,E.last=d,E.tail=l,E.tailMode=p,E.treeForkCount=v)}function sM(a,i,l){var d=i.pendingProps,p=d.revealOrder,v=d.tail,E=d.children,O=vn.current;if((d=(O&Vm)!==0)?(O=O&Qu|Vm,i.flags|=128):O&=Qu,F(vn,O,i),O=p??"null",p!=="forwards"&&p!=="unstable_legacy-backwards"&&p!=="together"&&p!=="independent"&&!Fk[O])if(Fk[O]=!0,p==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(p==="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 p=="string")switch(p.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.',p,p.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.',p,p.toLowerCase());break;default:console.error('"%s" is not a supported revealOrder on <SuspenseList />. Did you mean "independent", "together", "forwards" or "backwards"?',p)}else console.error('%s is not a supported value for revealOrder on <SuspenseList />. Did you mean "independent", "together", "forwards" or "backwards"?',p);O=v??"null",Iv[O]||(v==null?(p==="forwards"||p==="backwards"||p==="unstable_legacy-backwards")&&(Iv[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"?(Iv[O]=!0,console.error('"%s" is not a supported value for tail on <SuspenseList />. Did you mean "visible", "collapsed" or "hidden"?',v)):p!=="forwards"&&p!=="backwards"&&p!=="unstable_legacy-backwards"&&(Iv[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((p==="forwards"||p==="backwards"||p==="unstable_legacy-backwards")&&E!==void 0&&E!==null&&E!==!1)if(Rn(E)){for(O=0;O<E.length;O++)if(!fP(E[O],O))break e}else if(O=R(E),typeof O=="function"){if(O=O.call(E))for(var k=O.next(),L=0;!k.done;k=O.next()){if(!fP(k.value,L))break e;L++}}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?',p);if(Jn(a,i,E,l),pt?(bs(),E=Em):E=0,!d&&a!==null&&(a.flags&128)!==0)e:for(a=i.child;a!==null;){if(a.tag===13)a.memoizedState!==null&&oM(a,l,i);else if(a.tag===19)oM(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(p){case"forwards":for(l=i.child,p=null;l!==null;)a=l.alternate,a!==null&&wg(a)===null&&(p=l),l=l.sibling;l=p,l===null?(p=i.child,i.child=null):(p=l.sibling,l.sibling=null),K1(i,!1,p,l,v,E);break;case"backwards":case"unstable_legacy-backwards":for(l=null,p=i.child,i.child=null;p!==null;){if(a=p.alternate,a!==null&&wg(a)===null){i.child=p;break}a=p.sibling,p.sibling=l,l=p,p=a}K1(i,!0,l,null,v,E);break;case"together":K1(i,!1,null,null,void 0,E);break;default:i.memoizedState=null}return i.child}function Co(a,i,l){if(a!==null&&(i.dependencies=a.dependencies),Ar=-1,Ks|=i.lanes,(l&i.childLanes)===0)if(a!==null){if(fu(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=So(a,a.pendingProps),i.child=l,l.return=i;a.sibling!==null;)a=a.sibling,l=l.sibling=So(a,a.pendingProps),l.return=i;l.sibling=null}return i.child}function G1(a,i){return(a.lanes&i)!==0?!0:(a=a.dependencies,!!(a!==null&&dg(a)))}function oY(a,i,l){switch(i.tag){case 3:ee(i,i.stateNode.containerInfo),xs(i,wn,a.memoizedState.cache),Rl();break;case 27:case 5:G(i);break;case 4:ee(i,i.stateNode.containerInfo);break;case 10:xs(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,l1(i),null;break;case 13:if(d=i.memoizedState,d!==null)return d.dehydrated!==null?(Ss(i),i.flags|=128,null):(l&i.child.childLanes)!==0?iM(a,i,l):(Ss(i),a=Co(a,i,l),a!==null?a.sibling:null);Ss(i);break;case 19:var p=(a.flags&128)!==0;if(d=(l&i.childLanes)!==0,d||(fu(a,i,l,!1),d=(l&i.childLanes)!==0),p){if(d)return sM(a,i,l);i.flags|=128}if(p=i.memoizedState,p!==null&&(p.rendering=null,p.tail=null,p.lastEffect=null),F(vn,vn.current,i),d)break;return null;case 22:return i.lanes=0,JP(a,i,l,i.pendingProps);case 24:xs(i,wn,a.memoizedState.cache)}return Co(a,i,l)}function Y1(a,i,l){if(i._debugNeedsRemount&&a!==null){l=H0(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 p=d.child;if(p===null)throw Error("Expected parent to have a child.");for(;p.sibling!==i;)if(p=p.sibling,p===null)throw Error("Expected to find the previous sibling.");p.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(!G1(a,l)&&(i.flags&128)===0)return An=!1,oY(a,i,l);An=(a.flags&131072)!==0}else An=!1,(d=pt)&&(bs(),d=(i.flags&1048576)!==0),d&&(d=i.index,bs(),KR(i,Em,d));switch(i.lanes=0,i.tag){case 16:e:if(d=i.pendingProps,a=Ns(i.elementType),i.type=a,typeof a=="function")q0(a)?(d=Vl(a,d),i.tag=1,i.type=a=Tl(a),i=rM(null,i,a,d,l)):(i.tag=0,z1(i,a),i.type=a=Tl(a),i=B1(null,i,a,d,l));else{if(a!=null){if(p=a.$$typeof,p===um){i.tag=11,i.type=a=U0(a),i=XP(null,i,a,d,l);break e}else if(p===av){i.tag=14,i=WP(null,i,a,d,l);break e}}throw i="",a!==null&&typeof a=="object"&&a.$$typeof===na&&(i=" Did you wrap a component in React.lazy() more than once?"),l=M(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 B1(a,i,i.type,i.pendingProps,l);case 1:return d=i.type,p=Vl(d,i.pendingProps),rM(a,i,d,p,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;p=v.element,i1(a,i),Hf(i,d,null,l);var E=i.memoizedState;if(d=E.cache,xs(i,wn,d),d!==v.cache&&Z0(i,[wn],l,!0),qf(),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=aM(a,i,d,l);break e}else if(d!==p){p=Xr(Error("This root received an early update, before anything was able hydrate. Switched the entire root to client rendering."),i),Lf(p),i=aM(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(Xt=ta(a.firstChild),nr=i,pt=!0,Vs=null,Hi=!1,aa=null,Da=!0,l=xk(i,null,d,l),i.child=l;l;)l.flags=l.flags&-3|4096,l=l.sibling}else{if(Rl(),d===p){i=Co(a,i,l);break e}Jn(a,i,d,l)}i=i.child}return i;case 26:return Lg(a,i),a===null?(l=R3(i.type,null,i.pendingProps,null))?i.memoizedState=l:pt||(l=i.type,a=i.pendingProps,d=X(js.current),d=Yg(d).createElement(l),d[tr]=i,d[wr]=a,er(d,l,a),Se(d),i.stateNode=d):i.memoizedState=R3(i.type,a.memoizedProps,i.pendingProps,a.memoizedState),null;case 27:return G(i),a===null&&pt&&(d=X(js.current),p=Q(),d=i.stateNode=_3(i.type,i.pendingProps,d,p,!1),Hi||(p=b3(d,i.type,i.pendingProps,p),p!==null&&(jl(i,0).serverProps=p)),nr=i,Da=!0,p=Xt,Ts(i.type)?(rE=p,Xt=ta(d.firstChild)):Xt=p),Jn(a,i,i.pendingProps.children,l),Lg(a,i),a===null&&(i.flags|=4194304),i.child;case 5:return a===null&&pt&&(v=Q(),d=P0(i.type,v.ancestorInfo),p=Xt,(E=!p)||(E=YY(p,i.type,i.pendingProps,Da),E!==null?(i.stateNode=E,Hi||(v=b3(E,i.type,i.pendingProps,v),v!==null&&(jl(i,0).serverProps=v)),nr=i,Xt=ta(E.firstChild),Da=!1,v=!0):v=!1,E=!v),E&&(d&&cg(i,p),ys(i))),G(i),p=i.type,v=i.pendingProps,E=a!==null?a.memoizedProps:null,d=v.children,yN(p,v)?d=null:E!==null&&yN(p,E)&&(i.flags|=32),i.memoizedState!==null&&(p=u1(a,i,ZG,null,null,l),nh._currentValue=p),Lg(a,i),Jn(a,i,d,l),i.child;case 6:return a===null&&pt&&(l=i.pendingProps,a=Q(),d=a.ancestorInfo.current,l=d!=null?Jp(l,d.tag,a.ancestorInfo.implicitRootScope):!0,a=Xt,(d=!a)||(d=QY(a,i.pendingProps,Da),d!==null?(i.stateNode=d,nr=i,Xt=null,d=!0):d=!1,d=!d),d&&(l&&cg(i,a),ys(i))),null;case 13:return iM(a,i,l);case 4:return ee(i,i.stateNode.containerInfo),d=i.pendingProps,a===null?i.child=Zl(i,null,d,l):Jn(a,i,d,l),i.child;case 11:return XP(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,p=i.pendingProps,v=p.value,"value"in p||Kk||(Kk=!0,console.error("The `value` prop is required for the `<Context.Provider>`. Did you misspell it or forget to pass it?")),xs(i,d,v),Jn(a,i,p.children,l),i.child;case 9:return p=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."),Pl(i),p=tn(p),d=Nw(d,p,void 0),i.flags|=1,Jn(a,i,d,l),i.child;case 14:return WP(a,i,i.type,i.pendingProps,l);case 15:return ZP(a,i,i.type,i.pendingProps,l);case 19:return sM(a,i,l);case 31:return iY(a,i,l);case 22:return JP(a,i,l,i.pendingProps);case 24:return Pl(i),d=tn(wn),a===null?(p=n1(),p===null&&(p=Ht,v=J0(),p.pooledCache=v,Ml(v),v!==null&&(p.pooledCacheLanes|=l),p=v),i.memoizedState={parent:d,cache:p},a1(i),xs(i,wn,p)):((a.lanes&l)!==0&&(i1(a,i),Hf(i,null,null,l),qf()),p=a.memoizedState,v=i.memoizedState,p.parent!==d?(p={parent:d,cache:d},i.memoizedState=p,i.lanes===0&&(i.memoizedState=i.updateQueue.baseState=p),xs(i,wn,d)):(d=v.cache,xs(i,wn,d),d!==p.cache&&Z0(i,[wn],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 To(a){a.flags|=4}function Q1(a,i,l,d,p){if((i=(a.mode&DX)!==Ye)&&(i=!1),i){if(a.flags|=16777216,(p&335544128)===p)if(a.stateNode.complete)a.flags|=8192;else if(BM())a.flags|=8192;else throw Wl=_v,Ew}else a.flags&=-16777217}function lM(a,i){if(i.type!=="stylesheet"||(i.state.loading&Ra)!==cc)a.flags&=-16777217;else if(a.flags|=16777216,!L3(i))if(BM())a.flags|=8192;else throw Wl=_v,Ew}function $g(a,i){i!==null&&(a.flags|=4),a.flags&16384&&(i=a.tag!==22?Yr():536870912,a.lanes|=i,rc|=i)}function Qf(a,i){if(!pt)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 Kt(a){var i=a.alternate!==null&&a.alternate.child===a.child,l=0,d=0;if(i)if((a.mode&st)!==Ye){for(var p=a.selfBaseDuration,v=a.child;v!==null;)l|=v.lanes|v.childLanes,d|=v.subtreeFlags&65011712,d|=v.flags&65011712,p+=v.treeBaseDuration,v=v.sibling;a.treeBaseDuration=p}else for(p=a.child;p!==null;)l|=p.lanes|p.childLanes,d|=p.subtreeFlags&65011712,d|=p.flags&65011712,p.return=a,p=p.sibling;else if((a.mode&st)!==Ye){p=a.actualDuration,v=a.selfBaseDuration;for(var E=a.child;E!==null;)l|=E.lanes|E.childLanes,d|=E.subtreeFlags,d|=E.flags,p+=E.actualDuration,v+=E.treeBaseDuration,E=E.sibling;a.actualDuration=p,a.treeBaseDuration=v}else for(p=a.child;p!==null;)l|=p.lanes|p.childLanes,d|=p.subtreeFlags,d|=p.flags,p.return=a,p=p.sibling;return a.subtreeFlags|=d,a.childLanes=l,i}function sY(a,i,l){var d=i.pendingProps;switch(Y0(i),i.tag){case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return Kt(i),null;case 1:return Kt(i),null;case 3:return l=i.stateNode,d=null,a!==null&&(d=a.memoizedState.cache),i.memoizedState.cache!==d&&(i.flags|=2048),Oo(wn,i),q(i),l.pendingContext&&(l.context=l.pendingContext,l.pendingContext=null),(a===null||a.child===null)&&(du(i)?(X0(),To(i)):a===null||a.memoizedState.isDehydrated&&(i.flags&256)===0||(i.flags|=1024,Q0())),Kt(i),null;case 26:var p=i.type,v=i.memoizedState;return a===null?(To(i),v!==null?(Kt(i),lM(i,v)):(Kt(i),Q1(i,p,null,d,l))):v?v!==a.memoizedState?(To(i),Kt(i),lM(i,v)):(Kt(i),i.flags&=-16777217):(a=a.memoizedProps,a!==d&&To(i),Kt(i),Q1(i,p,a,d,l)),null;case 27:if(ne(i),l=X(js.current),p=i.type,a!==null&&i.stateNode!=null)a.memoizedProps!==d&&To(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 Kt(i),null}a=Q(),du(i)?XR(i):(a=_3(p,d,l,a,!0),i.stateNode=a,To(i))}return Kt(i),null;case 5:if(ne(i),p=i.type,a!==null&&i.stateNode!=null)a.memoizedProps!==d&&To(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 Kt(i),null}var E=Q();if(du(i))XR(i);else{switch(v=X(js.current),P0(p,E.ancestorInfo),E=E.context,v=Yg(v),E){case sd:v=v.createElementNS(ju,p);break;case nb:v=v.createElementNS(dv,p);break;default:switch(p){case"svg":v=v.createElementNS(ju,p);break;case"math":v=v.createElementNS(dv,p);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(p,{is:d.is}):v.createElement(p),p.indexOf("-")===-1&&(p!==p.toLowerCase()&&console.error("<%s /> is using incorrect casing. Use PascalCase for React components, or lowercase for HTML elements.",p),Object.prototype.toString.call(v)!=="[object HTMLUnknownElement]"||Xa.call(gI,p)||(gI[p]=!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.",p)))}}v[tr]=i,v[wr]=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,p,d),p){case"button":case"input":case"select":case"textarea":d=!!d.autoFocus;break e;case"img":d=!0;break e;default:d=!1}d&&To(i)}}return Kt(i),Q1(i,i.type,a===null?null:a.memoizedProps,i.pendingProps,l),null;case 6:if(a&&i.stateNode!=null)a.memoizedProps!==d&&To(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=X(js.current),l=Q(),du(i)){if(a=i.stateNode,l=i.memoizedProps,p=!Hi,d=null,v=nr,v!==null)switch(v.tag){case 3:p&&(p=C3(a,l,d),p!==null&&(jl(i,0).serverProps=p));break;case 27:case 5:d=v.memoizedProps,p&&(p=C3(a,l,d),p!==null&&(jl(i,0).serverProps=p))}a[tr]=i,a=!!(a.nodeValue===l||d!==null&&d.suppressHydrationWarning===!0||m3(a.nodeValue,l)),a||ys(i,!0)}else p=l.ancestorInfo.current,p!=null&&Jp(d,p.tag,l.ancestorInfo.implicitRootScope),a=Yg(a).createTextNode(d),a[tr]=i,i.stateNode=a}return Kt(i),null;case 31:if(l=i.memoizedState,a===null||a.memoizedState!==null){if(d=du(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,Kt(i),(i.mode&st)!==Ye&&l!==null&&(a=i.child,a!==null&&(i.treeBaseDuration-=a.treeBaseDuration))}else X0(),Rl(),(i.flags&128)===0&&(l=i.memoizedState=null),i.flags|=4,Kt(i),(i.mode&st)!==Ye&&l!==null&&(a=i.child,a!==null&&(i.treeBaseDuration-=a.treeBaseDuration));a=!1}else l=Q0(),a!==null&&a.memoizedState!==null&&(a.memoizedState.hydrationErrors=l),a=!0;if(!a)return i.flags&256?(Jr(i),i):(Jr(i),null);if((i.flags&128)!==0)throw Error("Client rendering an Activity suspended it again. This is a bug in React.")}return Kt(i),null;case 13:if(d=i.memoizedState,a===null||a.memoizedState!==null&&a.memoizedState.dehydrated!==null){if(p=d,v=du(i),p!==null&&p.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,Kt(i),(i.mode&st)!==Ye&&p!==null&&(p=i.child,p!==null&&(i.treeBaseDuration-=p.treeBaseDuration))}else X0(),Rl(),(i.flags&128)===0&&(p=i.memoizedState=null),i.flags|=4,Kt(i),(i.mode&st)!==Ye&&p!==null&&(p=i.child,p!==null&&(i.treeBaseDuration-=p.treeBaseDuration));p=!1}else p=Q0(),a!==null&&a.memoizedState!==null&&(a.memoizedState.hydrationErrors=p),p=!0;if(!p)return i.flags&256?(Jr(i),i):(Jr(i),null)}return Jr(i),(i.flags&128)!==0?(i.lanes=l,(i.mode&st)!==Ye&&Bf(i),i):(l=d!==null,a=a!==null&&a.memoizedState!==null,l&&(d=i.child,p=null,d.alternate!==null&&d.alternate.memoizedState!==null&&d.alternate.memoizedState.cachePool!==null&&(p=d.alternate.memoizedState.cachePool.pool),v=null,d.memoizedState!==null&&d.memoizedState.cachePool!==null&&(v=d.memoizedState.cachePool.pool),v!==p&&(d.flags|=2048)),l!==a&&l&&(i.child.flags|=8192),$g(i,i.updateQueue),Kt(i),(i.mode&st)!==Ye&&l&&(a=i.child,a!==null&&(i.treeBaseDuration-=a.treeBaseDuration)),null);case 4:return q(i),a===null&&fN(i.stateNode.containerInfo),Kt(i),null;case 10:return Oo(i.type,i),Kt(i),null;case 19:if(V(vn,i),d=i.memoizedState,d===null)return Kt(i),null;if(p=(i.flags&128)!==0,v=d.rendering,v===null)if(p)Qf(d,!1);else{if(sn!==Fo||a!==null&&(a.flags&128)!==0)for(a=i.child;a!==null;){if(v=wg(a),v!==null){for(i.flags|=128,Qf(d,!1),a=v.updateQueue,i.updateQueue=a,$g(i,a),i.subtreeFlags=0,a=l,l=i.child;l!==null;)HR(l,a),l=l.sibling;return F(vn,vn.current&Qu|Vm,i),pt&&Ao(i,d.treeForkCount),i.child}a=a.sibling}d.tail!==null&&Fn()>qv&&(i.flags|=128,p=!0,Qf(d,!1),i.lanes=4194304)}else{if(!p)if(a=wg(v),a!==null){if(i.flags|=128,p=!0,a=a.updateQueue,i.updateQueue=a,$g(i,a),Qf(d,!0),d.tail===null&&d.tailMode==="hidden"&&!v.alternate&&!pt)return Kt(i),null}else 2*Fn()-d.renderingStartTime>qv&&l!==536870912&&(i.flags|=128,p=!0,Qf(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=Fn(),a.sibling=null,l=vn.current,l=p?l&Qu|Vm:l&Qu,F(vn,l,i),pt&&Ao(i,d.treeForkCount),a):(Kt(i),null);case 22:case 23:return Jr(i),s1(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&&(Kt(i),i.subtreeFlags&6&&(i.flags|=8192)):Kt(i),l=i.updateQueue,l!==null&&$g(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&&V(Ql,i),null;case 24:return l=null,a!==null&&(l=a.memoizedState.cache),i.memoizedState.cache!==l&&(i.flags|=2048),Oo(wn,i),Kt(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 lY(a,i){switch(Y0(i),i.tag){case 1:return a=i.flags,a&65536?(i.flags=a&-65537|128,(i.mode&st)!==Ye&&Bf(i),i):null;case 3:return Oo(wn,i),q(i),a=i.flags,(a&65536)!==0&&(a&128)===0?(i.flags=a&-65537|128,i):null;case 26:case 27:case 5:return ne(i),null;case 31:if(i.memoizedState!==null){if(Jr(i),i.alternate===null)throw Error("Threw in newly mounted dehydrated component. This is likely a bug in React. Please file an issue.");Rl()}return a=i.flags,a&65536?(i.flags=a&-65537|128,(i.mode&st)!==Ye&&Bf(i),i):null;case 13:if(Jr(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.");Rl()}return a=i.flags,a&65536?(i.flags=a&-65537|128,(i.mode&st)!==Ye&&Bf(i),i):null;case 19:return V(vn,i),null;case 4:return q(i),null;case 10:return Oo(i.type,i),null;case 22:case 23:return Jr(i),s1(i),a!==null&&V(Ql,i),a=i.flags,a&65536?(i.flags=a&-65537|128,(i.mode&st)!==Ye&&Bf(i),i):null;case 24:return Oo(wn,i),null;case 25:return null;default:return null}}function cM(a,i){switch(Y0(i),i.tag){case 3:Oo(wn,i),q(i);break;case 26:case 27:case 5:ne(i);break;case 4:q(i);break;case 31:i.memoizedState!==null&&Jr(i);break;case 13:Jr(i);break;case 19:V(vn,i);break;case 10:Oo(i.type,i);break;case 22:case 23:Jr(i),s1(i),a!==null&&V(Ql,i);break;case 24:Oo(wn,i)}}function ji(a){return(a.mode&st)!==Ye}function uM(a,i){ji(a)?(_i(),Xf(i,a),Ti()):Xf(i,a)}function X1(a,i,l){ji(a)?(_i(),vu(l,a,i),Ti()):vu(l,a,i)}function Xf(a,i){try{var l=i.updateQueue,d=l!==null?l.lastEffect:null;if(d!==null){var p=d.next;l=p;do{if((l.tag&a)===a&&(d=void 0,(a&Or)!==Rv&&(ad=!0),d=de(i,PX,l),(a&Or)!==Rv&&(ad=!1),d!==void 0&&typeof d!="function")){var v=void 0;v=(l.tag&oa)!==0?"useLayoutEffect":(l.tag&Or)!==0?"useInsertionEffect":"useEffect";var E=void 0;E=d===null?" You returned null. If your effect does not require clean up, return undefined (or nothing).":typeof d.then=="function"?`
|
||
|
||
It looks like you wrote `+v+`(async () => ...) or returned a Promise. Instead, write the async function inside your effect and call it immediately:
|
||
|
||
`+v+`(() => {
|
||
async function fetchData() {
|
||
// You can await here
|
||
const response = await MyAPI.getData(someId);
|
||
// ...
|
||
}
|
||
fetchData();
|
||
}, [someId]); // Or [] if effect doesn't need props or state
|
||
|
||
Learn more about data fetching with Hooks: https://react.dev/link/hooks-data-fetching`:" You returned: "+d,de(i,function(O,k){console.error("%s must not return anything besides a function, which is used for clean-up.%s",O,k)},v,E)}l=l.next}while(l!==p)}}catch(O){Rt(i,i.return,O)}}function vu(a,i,l){try{var d=i.updateQueue,p=d!==null?d.lastEffect:null;if(p!==null){var v=p.next;d=v;do{if((d.tag&a)===a){var E=d.inst,O=E.destroy;O!==void 0&&(E.destroy=void 0,(a&Or)!==Rv&&(ad=!0),p=i,de(p,MX,p,l,O),(a&Or)!==Rv&&(ad=!1))}d=d.next}while(d!==v)}}catch(k){Rt(i,i.return,k)}}function dM(a,i){ji(a)?(_i(),Xf(i,a),Ti()):Xf(i,a)}function W1(a,i,l){ji(a)?(_i(),vu(l,a,i),Ti()):vu(l,a,i)}function fM(a){var i=a.updateQueue;if(i!==null){var l=a.stateNode;a.type.defaultProps||"ref"in a.memoizedProps||Ju||(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.",z(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.",z(a)||"instance"));try{de(a,hP,i,l)}catch(d){Rt(a,a.return,d)}}}function cY(a,i,l){return a.getSnapshotBeforeUpdate(i,l)}function uY(a,i){var l=i.memoizedProps,d=i.memoizedState;i=a.stateNode,a.type.defaultProps||"ref"in a.memoizedProps||Ju||(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.",z(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.",z(a)||"instance"));try{var p=Vl(a.type,l),v=de(a,cY,i,p,d);l=Gk,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.",z(a))})),i.__reactInternalSnapshotBeforeUpdate=v}catch(E){Rt(a,a.return,E)}}function mM(a,i,l){l.props=Vl(a.type,a.memoizedProps),l.state=a.memoizedState,ji(a)?(_i(),de(a,fk,a,i,l),Ti()):de(a,fk,a,i,l)}function dY(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(ji(a))try{_i(),a.refCleanup=i(l)}finally{Ti()}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().",z(a)),i.current=l}}function Wf(a,i){try{de(a,dY,a)}catch(l){Rt(a,i,l)}}function Ri(a,i){var l=a.ref,d=a.refCleanup;if(l!==null)if(typeof d=="function")try{if(ji(a))try{_i(),de(a,d)}finally{Ti(a)}else de(a,d)}catch(p){Rt(a,i,p)}finally{a.refCleanup=null,a=a.alternate,a!=null&&(a.refCleanup=null)}else if(typeof l=="function")try{if(ji(a))try{_i(),de(a,l,null)}finally{Ti(a)}else de(a,l,null)}catch(p){Rt(a,i,p)}else l.current=null}function hM(a,i,l,d){var p=a.memoizedProps,v=p.id,E=p.onCommit;p=p.onRender,i=i===null?"mount":"update",Ov&&(i="nested-update"),typeof p=="function"&&p(v,i,a.actualDuration,a.treeBaseDuration,a.actualStartTime,l),typeof E=="function"&&E(v,i,d,l)}function fY(a,i,l,d){var p=a.memoizedProps;a=p.id,p=p.onPostCommit,i=i===null?"mount":"update",Ov&&(i="nested-update"),typeof p=="function"&&p(a,i,d,l)}function pM(a){var i=a.type,l=a.memoizedProps,d=a.stateNode;try{de(a,IY,d,i,l,a)}catch(p){Rt(a,a.return,p)}}function Z1(a,i,l){try{de(a,VY,a.stateNode,a.type,l,i,a)}catch(d){Rt(a,a.return,d)}}function gM(a){return a.tag===5||a.tag===3||a.tag===26||a.tag===27&&Ts(a.type)||a.tag===4}function J1(a){e:for(;;){for(;a.sibling===null;){if(a.return===null||gM(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&&Ts(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 eN(a,i,l){var d=a.tag;if(d===5||d===6)a=a.stateNode,i?(E3(l),(l.nodeType===9?l.body:l.nodeName==="HTML"?l.ownerDocument.body:l).insertBefore(a,i)):(E3(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=Eo));else if(d!==4&&(d===27&&Ts(a.type)&&(l=a.stateNode,i=null),a=a.child,a!==null))for(eN(a,i,l),a=a.sibling;a!==null;)eN(a,i,l),a=a.sibling}function Bg(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&&Ts(a.type)&&(l=a.stateNode),a=a.child,a!==null))for(Bg(a,i,l),a=a.sibling;a!==null;)Bg(a,i,l),a=a.sibling}function mY(a){for(var i,l=a.return;l!==null;){if(gM(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=J1(a),Bg(a,l,i);break;case 5:l=i.stateNode,i.flags&32&&(w3(l),i.flags&=-33),i=J1(a),Bg(a,i,l);break;case 3:case 4:i=i.stateNode.containerInfo,l=J1(a),eN(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 vM(a){var i=a.stateNode,l=a.memoizedProps;try{de(a,eQ,a.type,l,i,a)}catch(d){Rt(a,a.return,d)}}function bM(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 hY(a,i){if(a=a.containerInfo,eE=ob,a=MR(a),I0(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 p=d.anchorOffset,v=d.focusNode;d=d.focusOffset;try{l.nodeType,v.nodeType}catch{l=null;break e}var E=0,O=-1,k=-1,L=0,oe=0,se=a,Z=null;t:for(;;){for(var fe;se!==l||p!==0&&se.nodeType!==3||(O=E+p),se!==v||d!==0&&se.nodeType!==3||(k=E+d),se.nodeType===3&&(E+=se.nodeValue.length),(fe=se.firstChild)!==null;)Z=se,se=fe;for(;;){if(se===a)break t;if(Z===l&&++L===p&&(O=E),Z===v&&++oe===d&&(k=E),(fe=se.nextSibling)!==null)break;se=Z,Z=se.parentNode}se=fe}l=O===-1||k===-1?null:{start:O,end:k}}else l=null}l=l||{start:0,end:0}}else l=null;for(tE={focusedElem:a,selectionRange:l},ob=!1,Gn=i;Gn!==null;)if(i=Gn,a=i.child,(i.subtreeFlags&1028)!==0&&a!==null)a.return=i,Gn=a;else for(;Gn!==null;){switch(a=i=Gn,l=a.alternate,p=a.flags,a.tag){case 0:if((p&4)!==0&&(a=a.updateQueue,a=a!==null?a.events:null,a!==null))for(l=0;l<a.length;l++)p=a[l],p.ref.impl=p.nextImpl;break;case 11:case 15:break;case 1:(p&1024)!==0&&l!==null&&uY(a,l);break;case 3:if((p&1024)!==0){if(a=a.stateNode.containerInfo,l=a.nodeType,l===9)xN(a);else if(l===1)switch(a.nodeName){case"HEAD":case"HTML":case"BODY":xN(a);break;default:a.textContent=""}}break;case 5:case 26:case 27:case 6:case 4:case 17:break;default:if((p&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,Gn=a;break}Gn=i.return}}function yM(a,i,l){var d=Wr(),p=Ai(),v=Di(),E=Ci(),O=l.flags;switch(l.tag){case 0:case 11:case 15:Pi(a,l),O&4&&uM(l,oa|_a);break;case 1:if(Pi(a,l),O&4)if(a=l.stateNode,i===null)l.type.defaultProps||"ref"in l.memoizedProps||Ju||(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.",z(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.",z(l)||"instance")),ji(l)?(_i(),de(l,ww,l,a),Ti()):de(l,ww,l,a);else{var k=Vl(l.type,i.memoizedProps);i=i.memoizedState,l.type.defaultProps||"ref"in l.memoizedProps||Ju||(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.",z(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.",z(l)||"instance")),ji(l)?(_i(),de(l,ck,l,a,k,i,a.__reactInternalSnapshotBeforeUpdate),Ti()):de(l,ck,l,a,k,i,a.__reactInternalSnapshotBeforeUpdate)}O&64&&fM(l),O&512&&Wf(l,l.return);break;case 3:if(i=Do(),Pi(a,l),O&64&&(O=l.updateQueue,O!==null)){if(k=null,l.child!==null)switch(l.child.tag){case 27:case 5:k=l.child.stateNode;break;case 1:k=l.child.stateNode}try{de(l,hP,O,k)}catch(oe){Rt(l,l.return,oe)}}a.effectDuration+=mg(i);break;case 27:i===null&&O&4&&vM(l);case 26:case 5:if(Pi(a,l),i===null){if(O&4)pM(l);else if(O&64){a=l.type,i=l.memoizedProps,k=l.stateNode;try{de(l,LY,k,a,i,l)}catch(oe){Rt(l,l.return,oe)}}}O&512&&Wf(l,l.return);break;case 12:if(O&4){O=Do(),Pi(a,l),a=l.stateNode,a.effectDuration+=$f(O);try{de(l,hM,l,i,$s,a.effectDuration)}catch(oe){Rt(l,l.return,oe)}}else Pi(a,l);break;case 31:Pi(a,l),O&4&&wM(a,l);break;case 13:Pi(a,l),O&4&&EM(a,l),O&64&&(a=l.memoizedState,a!==null&&(a=a.dehydrated,a!==null&&(O=EY.bind(null,l),XY(a,O))));break;case 22:if(O=l.memoizedState!==null||Ho,!O){i=i!==null&&i.memoizedState!==null||On,k=Ho;var L=On;Ho=O,(On=i)&&!L?(Mi(a,l,(l.subtreeFlags&8772)!==0),(l.mode&st)!==Ye&&0<=qe&&0<=Ge&&.05<Ge-qe&&rg(l,qe,Ge)):Pi(a,l),Ho=k,On=L}break;case 30:break;default:Pi(a,l)}(l.mode&st)!==Ye&&0<=qe&&0<=Ge&&((un||.05<on)&&Ei(l,qe,Ge,on,nn),l.alternate===null&&l.return!==null&&l.return.alternate!==null&&.05<Ge-qe&&(bM(l.return.alternate,l.return)||wi(l,qe,Ge,"Mount"))),Zr(d),Oi(p),nn=v,un=E}function xM(a){var i=a.alternate;i!==null&&(a.alternate=null,xM(i)),a.child=null,a.deletions=null,a.sibling=null,a.tag===5&&(i=a.stateNode,i!==null&&ue(i)),a.stateNode=null,a._debugOwner=null,a.return=null,a.dependencies=null,a.memoizedProps=null,a.memoizedState=null,a.pendingProps=null,a.stateNode=null,a.updateQueue=null}function _o(a,i,l){for(l=l.child;l!==null;)NM(a,i,l),l=l.sibling}function NM(a,i,l){if(sr&&typeof sr.onCommitFiberUnmount=="function")try{sr.onCommitFiberUnmount(Tu,l)}catch(L){Bi||(Bi=!0,console.error("React instrumentation encountered an error: %o",L))}var d=Wr(),p=Ai(),v=Di(),E=Ci();switch(l.tag){case 26:On||Ri(l,i),_o(a,i,l),l.memoizedState?l.memoizedState.count--:l.stateNode&&(a=l.stateNode,a.parentNode.removeChild(a));break;case 27:On||Ri(l,i);var O=Dn,k=zr;Ts(l.type)&&(Dn=l.stateNode,zr=!1),_o(a,i,l),de(l,om,l.stateNode),Dn=O,zr=k;break;case 5:On||Ri(l,i);case 6:if(O=Dn,k=zr,Dn=null,_o(a,i,l),Dn=O,zr=k,Dn!==null)if(zr)try{de(l,zY,Dn,l.stateNode)}catch(L){Rt(l,i,L)}else try{de(l,BY,Dn,l.stateNode)}catch(L){Rt(l,i,L)}break;case 18:Dn!==null&&(zr?(a=Dn,S3(a.nodeType===9?a.body:a.nodeName==="HTML"?a.ownerDocument.body:a,l.stateNode),Au(a)):S3(Dn,l.stateNode));break;case 4:O=Dn,k=zr,Dn=l.stateNode.containerInfo,zr=!0,_o(a,i,l),Dn=O,zr=k;break;case 0:case 11:case 14:case 15:vu(Or,l,i),On||X1(l,i,oa),_o(a,i,l);break;case 1:On||(Ri(l,i),O=l.stateNode,typeof O.componentWillUnmount=="function"&&mM(l,i,O)),_o(a,i,l);break;case 21:_o(a,i,l);break;case 22:On=(O=On)||l.memoizedState!==null,_o(a,i,l),On=O;break;default:_o(a,i,l)}(l.mode&st)!==Ye&&0<=qe&&0<=Ge&&(un||.05<on)&&Ei(l,qe,Ge,on,nn),Zr(d),Oi(p),nn=v,un=E}function wM(a,i){if(i.memoizedState===null&&(a=i.alternate,a!==null&&(a=a.memoizedState,a!==null))){a=a.dehydrated;try{de(i,ZY,a)}catch(l){Rt(i,i.return,l)}}}function EM(a,i){if(i.memoizedState===null&&(a=i.alternate,a!==null&&(a=a.memoizedState,a!==null&&(a=a.dehydrated,a!==null))))try{de(i,JY,a)}catch(l){Rt(i,i.return,l)}}function pY(a){switch(a.tag){case 31:case 13:case 19:var i=a.stateNode;return i===null&&(i=a.stateNode=new Yk),i;case 22:return a=a.stateNode,i=a._retryCache,i===null&&(i=a._retryCache=new Yk),i;default:throw Error("Unexpected Suspense handler tag ("+a.tag+"). This is a bug in React.")}}function zg(a,i){var l=pY(a);i.forEach(function(d){if(!l.has(d)){if(l.add(d),zi)if(ed!==null&&td!==null)tm(td,ed);else throw Error("Expected finished root and lanes to be set. This is a bug in React.");var p=SY.bind(null,a,d);d.then(p,p)}})}function $r(a,i){var l=i.deletions;if(l!==null)for(var d=0;d<l.length;d++){var p=a,v=i,E=l[d],O=Wr(),k=v;e:for(;k!==null;){switch(k.tag){case 27:if(Ts(k.type)){Dn=k.stateNode,zr=!1;break e}break;case 5:Dn=k.stateNode,zr=!1;break e;case 3:case 4:Dn=k.stateNode.containerInfo,zr=!0;break e}k=k.return}if(Dn===null)throw Error("Expected to find a host parent. This error is likely caused by a bug in React. Please file an issue.");NM(p,v,E),Dn=null,zr=!1,(E.mode&st)!==Ye&&0<=qe&&0<=Ge&&.05<Ge-qe&&wi(E,qe,Ge,"Unmount"),Zr(O),p=E,v=p.alternate,v!==null&&(v.return=null),p.return=null}if(i.subtreeFlags&13886)for(i=i.child;i!==null;)SM(i,a),i=i.sibling}function SM(a,i){var l=Wr(),d=Ai(),p=Di(),v=Ci(),E=a.alternate,O=a.flags;switch(a.tag){case 0:case 11:case 14:case 15:$r(i,a),Br(a),O&4&&(vu(Or|_a,a,a.return),Xf(Or|_a,a),X1(a,a.return,oa|_a));break;case 1:if($r(i,a),Br(a),O&512&&(On||E===null||Ri(E,E.return)),O&64&&Ho&&(O=a.updateQueue,O!==null&&(E=O.callbacks,E!==null))){var k=O.shared.hiddenCallbacks;O.shared.hiddenCallbacks=k===null?E:k.concat(E)}break;case 26:if(k=ei,$r(i,a),Br(a),O&512&&(On||E===null||Ri(E,E.return)),O&4){var L=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,k=k.ownerDocument||k;t:switch(O){case"title":L=k.getElementsByTagName("title")[0],(!L||L[mm]||L[tr]||L.namespaceURI===ju||L.hasAttribute("itemprop"))&&(L=k.createElement(O),k.head.insertBefore(L,k.querySelector("head > title"))),er(L,O,E),L[tr]=a,Se(L),O=L;break e;case"link":var oe=k3("link","href",k).get(O+(E.href||""));if(oe){for(var se=0;se<oe.length;se++)if(L=oe[se],L.getAttribute("href")===(E.href==null||E.href===""?null:E.href)&&L.getAttribute("rel")===(E.rel==null?null:E.rel)&&L.getAttribute("title")===(E.title==null?null:E.title)&&L.getAttribute("crossorigin")===(E.crossOrigin==null?null:E.crossOrigin)){oe.splice(se,1);break t}}L=k.createElement(O),er(L,O,E),k.head.appendChild(L);break;case"meta":if(oe=k3("meta","content",k).get(O+(E.content||""))){for(se=0;se<oe.length;se++)if(L=oe[se],Ve(E.content,"content"),L.getAttribute("content")===(E.content==null?null:""+E.content)&&L.getAttribute("name")===(E.name==null?null:E.name)&&L.getAttribute("property")===(E.property==null?null:E.property)&&L.getAttribute("http-equiv")===(E.httpEquiv==null?null:E.httpEquiv)&&L.getAttribute("charset")===(E.charSet==null?null:E.charSet)){oe.splice(se,1);break t}}L=k.createElement(O),er(L,O,E),k.head.appendChild(L);break;default:throw Error('getNodesForType encountered a type it did not expect: "'+O+'". This is a bug in React.')}L[tr]=a,Se(L),O=L}a.stateNode=O}else I3(k,a.type,a.stateNode);else a.stateNode=M3(k,O,a.memoizedProps);else L!==O?(L===null?E.stateNode!==null&&(E=E.stateNode,E.parentNode.removeChild(E)):L.count--,O===null?I3(k,a.type,a.stateNode):M3(k,O,a.memoizedProps)):O===null&&a.stateNode!==null&&Z1(a,a.memoizedProps,E.memoizedProps)}break;case 27:$r(i,a),Br(a),O&512&&(On||E===null||Ri(E,E.return)),E!==null&&O&4&&Z1(a,a.memoizedProps,E.memoizedProps);break;case 5:if($r(i,a),Br(a),O&512&&(On||E===null||Ri(E,E.return)),a.flags&32){k=a.stateNode;try{de(a,w3,k)}catch(_e){Rt(a,a.return,_e)}}O&4&&a.stateNode!=null&&(k=a.memoizedProps,Z1(a,k,E!==null?E.memoizedProps:k)),O&1024&&(kw=!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),Br(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,k=a.stateNode;try{de(a,$Y,k,E,O)}catch(_e){Rt(a,a.return,_e)}}break;case 3:if(k=Do(),rb=null,L=ei,ei=Qg(i.containerInfo),$r(i,a),ei=L,Br(a),O&4&&E!==null&&E.memoizedState.isDehydrated)try{de(a,WY,i.containerInfo)}catch(_e){Rt(a,a.return,_e)}kw&&(kw=!1,AM(a)),i.effectDuration+=mg(k);break;case 4:O=ei,ei=Qg(a.stateNode.containerInfo),$r(i,a),Br(a),ei=O;break;case 12:O=Do(),$r(i,a),Br(a),a.stateNode.effectDuration+=$f(O);break;case 31:$r(i,a),Br(a),O&4&&(O=a.updateQueue,O!==null&&(a.updateQueue=null,zg(a,O)));break;case 13:$r(i,a),Br(a),a.child.flags&8192&&a.memoizedState!==null!=(E!==null&&E.memoizedState!==null)&&(Uv=Fn()),O&4&&(O=a.updateQueue,O!==null&&(a.updateQueue=null,zg(a,O)));break;case 22:k=a.memoizedState!==null;var Z=E!==null&&E.memoizedState!==null,fe=Ho,Ce=On;if(Ho=fe||k,On=Ce||Z,$r(i,a),On=Ce,Ho=fe,Z&&!k&&!fe&&!Ce&&(a.mode&st)!==Ye&&0<=qe&&0<=Ge&&.05<Ge-qe&&rg(a,qe,Ge),Br(a),O&8192)e:for(i=a.stateNode,i._visibility=k?i._visibility&~wm:i._visibility|wm,!k||E===null||Z||Ho||On||($l(a),(a.mode&st)!==Ye&&0<=qe&&0<=Ge&&.05<Ge-qe&&wi(a,qe,Ge,"Disconnect")),E=null,i=a;;){if(i.tag===5||i.tag===26){if(E===null){Z=E=i;try{L=Z.stateNode,k?de(Z,qY,L):de(Z,KY,Z.stateNode,Z.memoizedProps)}catch(_e){Rt(Z,Z.return,_e)}}}else if(i.tag===6){if(E===null){Z=i;try{oe=Z.stateNode,k?de(Z,HY,oe):de(Z,GY,oe,Z.memoizedProps)}catch(_e){Rt(Z,Z.return,_e)}}}else if(i.tag===18){if(E===null){Z=i;try{se=Z.stateNode,k?de(Z,UY,se):de(Z,FY,Z.stateNode)}catch(_e){Rt(Z,Z.return,_e)}}}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,zg(a,E))));break;case 19:$r(i,a),Br(a),O&4&&(O=a.updateQueue,O!==null&&(a.updateQueue=null,zg(a,O)));break;case 30:break;case 21:break;default:$r(i,a),Br(a)}(a.mode&st)!==Ye&&0<=qe&&0<=Ge&&((un||.05<on)&&Ei(a,qe,Ge,on,nn),a.alternate===null&&a.return!==null&&a.return.alternate!==null&&.05<Ge-qe&&(bM(a.return.alternate,a.return)||wi(a,qe,Ge,"Mount"))),Zr(l),Oi(d),nn=p,un=v}function Br(a){var i=a.flags;if(i&2){try{de(a,mY,a)}catch(l){Rt(a,a.return,l)}a.flags&=-3}i&4096&&(a.flags&=-4097)}function AM(a){if(a.subtreeFlags&1024)for(a=a.child;a!==null;){var i=a;AM(i),i.tag===5&&i.flags&1024&&i.stateNode.reset(),a=a.sibling}}function Pi(a,i){if(i.subtreeFlags&8772)for(i=i.child;i!==null;)yM(a,i.alternate,i),i=i.sibling}function OM(a){var i=Wr(),l=Ai(),d=Di(),p=Ci();switch(a.tag){case 0:case 11:case 14:case 15:X1(a,a.return,oa),$l(a);break;case 1:Ri(a,a.return);var v=a.stateNode;typeof v.componentWillUnmount=="function"&&mM(a,a.return,v),$l(a);break;case 27:de(a,om,a.stateNode);case 26:case 5:Ri(a,a.return),$l(a);break;case 22:a.memoizedState===null&&$l(a);break;case 30:$l(a);break;default:$l(a)}(a.mode&st)!==Ye&&0<=qe&&0<=Ge&&(un||.05<on)&&Ei(a,qe,Ge,on,nn),Zr(i),Oi(l),nn=d,un=p}function $l(a){for(a=a.child;a!==null;)OM(a),a=a.sibling}function DM(a,i,l,d){var p=Wr(),v=Ai(),E=Di(),O=Ci(),k=l.flags;switch(l.tag){case 0:case 11:case 15:Mi(a,l,d),uM(l,oa);break;case 1:if(Mi(a,l,d),i=l.stateNode,typeof i.componentDidMount=="function"&&de(l,ww,l,i),i=l.updateQueue,i!==null){a=l.stateNode;try{de(l,WG,i,a)}catch(L){Rt(l,l.return,L)}}d&&k&64&&fM(l),Wf(l,l.return);break;case 27:vM(l);case 26:case 5:Mi(a,l,d),d&&i===null&&k&4&&pM(l),Wf(l,l.return);break;case 12:if(d&&k&4){k=Do(),Mi(a,l,d),d=l.stateNode,d.effectDuration+=$f(k);try{de(l,hM,l,i,$s,d.effectDuration)}catch(L){Rt(l,l.return,L)}}else Mi(a,l,d);break;case 31:Mi(a,l,d),d&&k&4&&wM(a,l);break;case 13:Mi(a,l,d),d&&k&4&&EM(a,l);break;case 22:l.memoizedState===null&&Mi(a,l,d),Wf(l,l.return);break;case 30:break;default:Mi(a,l,d)}(l.mode&st)!==Ye&&0<=qe&&0<=Ge&&(un||.05<on)&&Ei(l,qe,Ge,on,nn),Zr(p),Oi(v),nn=E,un=O}function Mi(a,i,l){for(l=l&&(i.subtreeFlags&8772)!==0,i=i.child;i!==null;)DM(a,i.alternate,i,l),i=i.sibling}function tN(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&&Ml(a),l!=null&&Vf(l))}function nN(a,i){a=null,i.alternate!==null&&(a=i.alternate.memoizedState.cache),i=i.memoizedState.cache,i!==a&&(Ml(i),a!=null&&Vf(a))}function Qa(a,i,l,d,p){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;CM(a,i,l,d,v!==null?v.actualStartTime:p),i=v}}function CM(a,i,l,d,p){var v=Wr(),E=Ai(),O=Di(),k=Ci(),L=ks,oe=i.flags;switch(i.tag){case 0:case 11:case 15:(i.mode&st)!==Ye&&0<i.actualStartTime&&(i.flags&1)!==0&&ag(i,i.actualStartTime,p,Pn,l),Qa(a,i,l,d,p),oe&2048&&dM(i,Dr|_a);break;case 1:(i.mode&st)!==Ye&&0<i.actualStartTime&&((i.flags&128)!==0?V0(i,i.actualStartTime,p,[]):(i.flags&1)!==0&&ag(i,i.actualStartTime,p,Pn,l)),Qa(a,i,l,d,p);break;case 3:var se=Do(),Z=Pn;Pn=i.alternate!==null&&i.alternate.memoizedState.isDehydrated&&(i.flags&256)===0,Qa(a,i,l,d,p),Pn=Z,oe&2048&&(l=null,i.alternate!==null&&(l=i.alternate.memoizedState.cache),d=i.memoizedState.cache,d!==l&&(Ml(d),l!=null&&Vf(l))),a.passiveEffectDuration+=mg(se);break;case 12:if(oe&2048){oe=Do(),Qa(a,i,l,d,p),a=i.stateNode,a.passiveEffectDuration+=$f(oe);try{de(i,fY,i,i.alternate,$s,a.passiveEffectDuration)}catch(fe){Rt(i,i.return,fe)}}else Qa(a,i,l,d,p);break;case 31:oe=Pn,se=i.alternate!==null?i.alternate.memoizedState:null,Z=i.memoizedState,se!==null&&Z===null?(Z=i.deletions,Z!==null&&0<Z.length&&Z[0].tag===18?(Pn=!1,se=se.hydrationErrors,se!==null&&V0(i,i.actualStartTime,p,se)):Pn=!0):Pn=!1,Qa(a,i,l,d,p),Pn=oe;break;case 13:oe=Pn,se=i.alternate!==null?i.alternate.memoizedState:null,Z=i.memoizedState,se===null||se.dehydrated===null||Z!==null&&Z.dehydrated!==null?Pn=!1:(Z=i.deletions,Z!==null&&0<Z.length&&Z[0].tag===18?(Pn=!1,se=se.hydrationErrors,se!==null&&V0(i,i.actualStartTime,p,se)):Pn=!0),Qa(a,i,l,d,p),Pn=oe;break;case 23:break;case 22:Z=i.stateNode,se=i.alternate,i.memoizedState!==null?Z._visibility&Mo?Qa(a,i,l,d,p):Zf(a,i,l,d,p):Z._visibility&Mo?Qa(a,i,l,d,p):(Z._visibility|=Mo,bu(a,i,l,d,(i.subtreeFlags&10256)!==0||i.actualDuration!==0&&(i.alternate===null||i.alternate.child!==i.child),p),(i.mode&st)===Ye||Pn||(a=i.actualStartTime,0<=a&&.05<p-a&&rg(i,a,p),0<=qe&&0<=Ge&&.05<Ge-qe&&rg(i,qe,Ge))),oe&2048&&tN(se,i);break;case 24:Qa(a,i,l,d,p),oe&2048&&nN(i.alternate,i);break;default:Qa(a,i,l,d,p)}(i.mode&st)!==Ye&&((a=!Pn&&i.alternate===null&&i.return!==null&&i.return.alternate!==null)&&(l=i.actualStartTime,0<=l&&.05<p-l&&wi(i,l,p,"Mount")),0<=qe&&0<=Ge&&((un||.05<on)&&Ei(i,qe,Ge,on,nn),a&&.05<Ge-qe&&wi(i,qe,Ge,"Mount"))),Zr(v),Oi(E),nn=O,un=k,ks=L}function bu(a,i,l,d,p,v){for(p=p&&((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,p,E!==null?E.actualStartTime:v),i=E}}function TM(a,i,l,d,p,v){var E=Wr(),O=Ai(),k=Di(),L=Ci(),oe=ks;p&&(i.mode&st)!==Ye&&0<i.actualStartTime&&(i.flags&1)!==0&&ag(i,i.actualStartTime,v,Pn,l);var se=i.flags;switch(i.tag){case 0:case 11:case 15:bu(a,i,l,d,p,v),dM(i,Dr);break;case 23:break;case 22:var Z=i.stateNode;i.memoizedState!==null?Z._visibility&Mo?bu(a,i,l,d,p,v):Zf(a,i,l,d,v):(Z._visibility|=Mo,bu(a,i,l,d,p,v)),p&&se&2048&&tN(i.alternate,i);break;case 24:bu(a,i,l,d,p,v),p&&se&2048&&nN(i.alternate,i);break;default:bu(a,i,l,d,p,v)}(i.mode&st)!==Ye&&0<=qe&&0<=Ge&&(un||.05<on)&&Ei(i,qe,Ge,on,nn),Zr(E),Oi(O),nn=k,un=L,ks=oe}function Zf(a,i,l,d,p){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,k=d,L=i!==null?i.actualStartTime:p,oe=ks;(v.mode&st)!==Ye&&0<v.actualStartTime&&(v.flags&1)!==0&&ag(v,v.actualStartTime,L,Pn,O);var se=v.flags;switch(v.tag){case 22:Zf(E,v,O,k,L),se&2048&&tN(v.alternate,v);break;case 24:Zf(E,v,O,k,L),se&2048&&nN(v.alternate,v);break;default:Zf(E,v,O,k,L)}ks=oe,v=i}}function yu(a,i,l){if(a.subtreeFlags&Um)for(a=a.child;a!==null;)_M(a,i,l),a=a.sibling}function _M(a,i,l){switch(a.tag){case 26:yu(a,i,l),a.flags&Um&&a.memoizedState!==null&&rQ(l,ei,a.memoizedState,a.memoizedProps);break;case 5:yu(a,i,l);break;case 3:case 4:var d=ei;ei=Qg(a.stateNode.containerInfo),yu(a,i,l),ei=d;break;case 22:a.memoizedState===null&&(d=a.alternate,d!==null&&d.memoizedState!==null?(d=Um,Um=16777216,yu(a,i,l),Um=d):yu(a,i,l));break;default:yu(a,i,l)}}function jM(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 Jf(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],p=Wr();Gn=d,MM(d,a),(d.mode&st)!==Ye&&0<=qe&&0<=Ge&&.05<Ge-qe&&wi(d,qe,Ge,"Unmount"),Zr(p)}jM(a)}if(a.subtreeFlags&10256)for(a=a.child;a!==null;)RM(a),a=a.sibling}function RM(a){var i=Wr(),l=Ai(),d=Di(),p=Ci();switch(a.tag){case 0:case 11:case 15:Jf(a),a.flags&2048&&W1(a,a.return,Dr|_a);break;case 3:var v=Do();Jf(a),a.stateNode.passiveEffectDuration+=mg(v);break;case 12:v=Do(),Jf(a),a.stateNode.passiveEffectDuration+=$f(v);break;case 22:v=a.stateNode,a.memoizedState!==null&&v._visibility&Mo&&(a.return===null||a.return.tag!==13)?(v._visibility&=~Mo,Ug(a),(a.mode&st)!==Ye&&0<=qe&&0<=Ge&&.05<Ge-qe&&wi(a,qe,Ge,"Disconnect")):Jf(a);break;default:Jf(a)}(a.mode&st)!==Ye&&0<=qe&&0<=Ge&&(un||.05<on)&&Ei(a,qe,Ge,on,nn),Zr(i),Oi(l),un=p,nn=d}function Ug(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],p=Wr();Gn=d,MM(d,a),(d.mode&st)!==Ye&&0<=qe&&0<=Ge&&.05<Ge-qe&&wi(d,qe,Ge,"Unmount"),Zr(p)}jM(a)}for(a=a.child;a!==null;)PM(a),a=a.sibling}function PM(a){var i=Wr(),l=Ai(),d=Di(),p=Ci();switch(a.tag){case 0:case 11:case 15:W1(a,a.return,Dr),Ug(a);break;case 22:var v=a.stateNode;v._visibility&Mo&&(v._visibility&=~Mo,Ug(a));break;default:Ug(a)}(a.mode&st)!==Ye&&0<=qe&&0<=Ge&&(un||.05<on)&&Ei(a,qe,Ge,on,nn),Zr(i),Oi(l),un=p,nn=d}function MM(a,i){for(;Gn!==null;){var l=Gn,d=l,p=i,v=Wr(),E=Ai(),O=Di(),k=Ci();switch(d.tag){case 0:case 11:case 15:W1(d,p,Dr);break;case 23:case 22:d.memoizedState!==null&&d.memoizedState.cachePool!==null&&(p=d.memoizedState.cachePool.pool,p!=null&&Ml(p));break;case 24:Vf(d.memoizedState.cache)}if((d.mode&st)!==Ye&&0<=qe&&0<=Ge&&(un||.05<on)&&Ei(d,qe,Ge,on,nn),Zr(v),Oi(E),un=k,nn=O,d=l.child,d!==null)d.return=l,Gn=d;else e:for(l=a;Gn!==null;){if(d=Gn,v=d.sibling,E=d.return,xM(d),d===l){Gn=null;break e}if(v!==null){v.return=E,Gn=v;break e}Gn=E}}}function gY(){$X.forEach(function(a){return a()})}function kM(){var a=typeof IS_REACT_ACT_ENVIRONMENT<"u"?IS_REACT_ACT_ENVIRONMENT:void 0;return a||pe.actQueue===null||console.error("The current testing environment is not configured to support act(...)"),a}function ea(a){if((Et&Mn)!==Yn&&ct!==0)return ct&-ct;var i=pe.T;return i!==null?(i._updatedFibers||(i._updatedFibers=new Set),i._updatedFibers.add(a),uN()):xi()}function IM(){if(qr===0)if((ct&536870912)===0||pt){var a=sv;sv<<=1,(sv&3932160)===0&&(sv=262144),qr=a}else qr=536870912;return a=ia.current,a!==null&&(a.flags|=32),qr}function cn(a,i,l){if(ad&&console.error("useInsertionEffect must not schedule updates."),Kw&&(Kv=!0),(a===Ht&&(It===tc||It===nc)||a.cancelPendingCommit!==null)&&(Nu(a,0),Ds(a,ct,qr,!1)),Fa(a,l),(Et&Mn)!==Yn&&a===Ht){if($i)switch(i.tag){case 0:case 11:case 15:a=dt&&z(dt)||"Unknown",cI.has(a)||(cI.add(a),i=z(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:lI||(console.error("Cannot update during an existing state transition (such as within `render`). Render methods should be a pure function of props and state."),lI=!0)}}else zi&&bo(a,i,l),OY(i),a===Ht&&((Et&Mn)===Yn&&(Gs|=l),sn===Hs&&Ds(a,ct,qr,!1)),ki(a)}function LM(a,i,l){if((Et&(Mn|sa))!==Yn)throw Error("Should not already be working.");if(ct!==0&&dt!==null){var d=dt,p=Fn();switch(tk){case Fm:case tc:var v=Cm;Qt&&((d=d._debugTask)?d.run(console.timeStamp.bind(console,"Suspended",v,p,wa,void 0,"primary-light")):console.timeStamp("Suspended",v,p,wa,void 0,"primary-light"));break;case nc:v=Cm,Qt&&((d=d._debugTask)?d.run(console.timeStamp.bind(console,"Action",v,p,wa,void 0,"primary-light")):console.timeStamp("Action",v,p,wa,void 0,"primary-light"));break;default:Qt&&(d=p-Cm,3>d||console.timeStamp("Blocked",Cm,p,wa,void 0,5>d?"primary-light":10>d?"primary":100>d?"primary-dark":"error"))}}v=(l=!l&&(i&127)===0&&(i&a.expiredLanes)===0||kr(a,i))?bY(a,i):aN(a,i,!0);var E=l;do{if(v===Fo){nd&&!l&&Ds(a,i,0,!1),i=It,Cm=En(),tk=i;break}else{if(d=Fn(),p=a.current.alternate,E&&!vY(p)){Ga(i),p=Kn,v=d,!Qt||v<=p||(mn?mn.run(console.timeStamp.bind(console,"Teared Render",p,v,Nt,yt,"error")):console.timeStamp("Teared Render",p,v,Nt,yt,"error")),Bl(i,d),v=aN(a,i,!1),E=!1;continue}if(v===ec){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){Ga(i),$0(Kn,d,i,mn),Bl(i,d),i=O;e:{d=a,v=E,E=Gm;var k=d.current.memoizedState.isDehydrated;if(k&&(Nu(d,O).flags|=256),O=aN(d,O,!1),O!==ec){if(Vw&&!k){d.errorRecoveryDisabledLanes|=v,Gs|=v,v=Hs;break e}d=Cr,Cr=E,d!==null&&(Cr===null?Cr=d:Cr.push.apply(Cr,d))}v=O}if(E=!1,v!==ec)continue;d=Fn()}}if(v===Hm){Ga(i),$0(Kn,d,i,mn),Bl(i,d),Nu(a,0),Ds(a,i,0,!0);break}e:{switch(l=a,v){case Fo:case Hm:throw Error("Root did not complete. This is a bug in React.");case Hs:if((i&4194048)!==i)break;case Vv:Ga(i),LR(Kn,d,i,mn),Bl(i,d),p=i,(p&127)!==0?Ev=d:(p&4194048)!==0&&(Sv=d),Ds(l,i,qr,!Fs);break e;case ec:Cr=null;break;case Lv:case Qk:break;default:throw Error("Unknown root exit status.")}if(pe.actQueue!==null)iN(l,p,i,Cr,Ym,zv,qr,Gs,rc,v,null,null,Kn,d);else{if((i&62914560)===i&&(E=Uv+Zk-Fn(),10<E)){if(Ds(l,i,qr,!Fs),qn(l,0,!0)!==0)break e;ti=i,l.timeoutHandle=vI(VM.bind(null,l,p,Cr,Ym,zv,i,qr,Gs,rc,Fs,v,"Throttled",Kn,d),E);break e}VM(l,p,Cr,Ym,zv,i,qr,Gs,rc,Fs,v,null,Kn,d)}}}break}while(!0);ki(a)}function VM(a,i,l,d,p,v,E,O,k,L,oe,se,Z,fe){a.timeoutHandle=lc;var Ce=i.subtreeFlags,_e=null;if((Ce&8192||(Ce&16785408)===16785408)&&(_e={stylesheets:null,count:0,imgCount:0,imgBytes:0,suspenseyImages:[],waitingForImages:!0,waitingForViewTransition:!1,unsuspend:Eo},_M(i,v,_e),Ce=(v&62914560)===v?Uv-Fn():(v&4194048)===v?Wk-Fn():0,Ce=aQ(_e,Ce),Ce!==null)){ti=v,a.cancelPendingCommit=Ce(iN.bind(null,a,i,v,l,d,p,E,O,k,oe,_e,_e.waitingForViewTransition?"Waiting for the previous Animation":0<_e.count?0<_e.imgCount?"Suspended on CSS and Images":"Suspended on CSS":_e.imgCount===1?"Suspended on an Image":0<_e.imgCount?"Suspended on Images":null,Z,fe)),Ds(a,v,E,!L);return}iN(a,i,v,l,d,p,E,O,k,oe,_e,se,Z,fe)}function vY(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 p=l[d],v=p.getSnapshot;p=p.value;try{if(!Sr(v(),p))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 Ds(a,i,l,d){i&=~$w,i&=~Gs,a.suspendedLanes|=i,a.pingedLanes&=~i,d&&(a.warmLanes|=i),d=a.expirationTimes;for(var p=i;0<p;){var v=31-Nr(p),E=1<<v;d[v]=-1,p&=~E}l!==0&&ba(a,l,i)}function xu(){return(Et&(Mn|sa))===Yn?(nm(0),!1):!0}function rN(){if(dt!==null){if(It===Ur)var a=dt.return;else a=dt,ug(),h1(a),Gu=null,Lm=0,a=dt;for(;a!==null;)cM(a.alternate,a),a=a.return;dt=null}}function Bl(a,i){(a&127)!==0&&(Fl=i),(a&4194048)!==0&&($o=i),(a&62914560)!==0&&(J5=i),(a&2080374784)!==0&&(ek=i)}function Nu(a,i){Qt&&(console.timeStamp("Blocking Track",.003,.003,"Blocking",yt,"primary-light"),console.timeStamp("Transition Track",.003,.003,"Transition",yt,"primary-light"),console.timeStamp("Suspense Track",.003,.003,"Suspense",yt,"primary-light"),console.timeStamp("Idle Track",.003,.003,"Idle",yt,"primary-light"));var l=Kn;if(Kn=En(),ct!==0&&0<l){if(Ga(ct),sn===Lv||sn===Hs)LR(l,Kn,i,mn);else{var d=Kn,p=mn;if(Qt&&!(d<=l)){var v=(i&738197653)===i?"tertiary-dark":"primary-dark",E=(i&536870912)===i?"Prewarm":(i&201326741)===i?"Interrupted Hydration":"Interrupted Render";p?p.run(console.timeStamp.bind(console,E,l,d,Nt,yt,v)):console.timeStamp(E,l,d,Nt,yt,v)}}Bl(ct,Kn)}if(l=mn,mn=null,(i&127)!==0){mn=Am,p=0<=Fi&&Fi<Fl?Fl:Fi,d=0<=Kl&&Kl<Fl?Fl:Kl,v=0<=d?d:0<=p?p:Kn,0<=Ev?(Ga(2),VR(Ev,v,i,l)):Av&127,l=p;var O=d,k=Om,L=0<Hu,oe=Bs===Sm,se=Bs===wv;if(p=Kn,d=Am,v=vw,E=bw,Qt){if(Nt="Blocking",0<l?l>p&&(l=p):l=p,0<O?O>l&&(O=l):O=l,k!==null&&l>O){var Z=L?"secondary-light":"warning";d?d.run(console.timeStamp.bind(console,L?"Consecutive":"Event: "+k,O,l,Nt,yt,Z)):console.timeStamp(L?"Consecutive":"Event: "+k,O,l,Nt,yt,Z)}p>l&&(O=oe?"error":(i&738197653)===i?"tertiary-light":"primary-light",oe=se?"Promise Resolved":oe?"Cascading Update":5<p-l?"Update Blocked":"Update",se=[],E!=null&&se.push(["Component name",E]),v!=null&&se.push(["Method name",v]),l={start:l,end:p,detail:{devtools:{properties:se,track:Nt,trackGroup:yt,color:O}}},d?d.run(performance.measure.bind(performance,oe,l)):performance.measure(oe,l))}Fi=-1.1,Bs=0,bw=vw=null,Ev=-1.1,Hu=Kl,Kl=-1.1,Fl=En()}if((i&4194048)!==0&&(mn=Dm,p=0<=Bo&&Bo<$o?$o:Bo,l=0<=Ca&&Ca<$o?$o:Ca,d=0<=zs&&zs<$o?$o:zs,v=0<=d?d:0<=l?l:Kn,0<=Sv?(Ga(256),VR(Sv,v,i,mn)):Av&4194048,se=d,O=Gl,k=0<Us,L=yw===wv,v=Kn,d=Dm,E=W5,oe=Z5,Qt&&(Nt="Transition",0<l?l>v&&(l=v):l=v,0<p?p>l&&(p=l):p=l,0<se?se>p&&(se=p):se=p,p>se&&O!==null&&(Z=k?"secondary-light":"warning",d?d.run(console.timeStamp.bind(console,k?"Consecutive":"Event: "+O,se,p,Nt,yt,Z)):console.timeStamp(k?"Consecutive":"Event: "+O,se,p,Nt,yt,Z)),l>p&&(d?d.run(console.timeStamp.bind(console,"Action",p,l,Nt,yt,"primary-dark")):console.timeStamp("Action",p,l,Nt,yt,"primary-dark")),v>l&&(p=L?"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:Nt,trackGroup:yt,color:"primary-light"}}},d?d.run(performance.measure.bind(performance,p,l)):performance.measure(p,l))),Ca=Bo=-1.1,yw=0,Sv=-1.1,Us=zs,zs=-1.1,$o=En()),(i&62914560)!==0&&(Av&62914560)!==0&&(Ga(4194304),B0(J5,Kn)),(i&2080374784)!==0&&(Av&2080374784)!==0&&(Ga(268435456),B0(ek,Kn)),l=a.timeoutHandle,l!==lc&&(a.timeoutHandle=lc,ZX(l)),l=a.cancelPendingCommit,l!==null&&(a.cancelPendingCommit=null,l()),ti=0,rN(),Ht=a,dt=l=So(a.current,null),ct=i,It=Ur,la=null,Fs=!1,nd=kr(a,i),Vw=!1,sn=Fo,rc=qr=$w=Gs=Ks=0,Cr=Gm=null,zv=!1,(i&8)!==0&&(i|=i&32),d=a.entangledLanes,d!==0)for(a=a.entanglements,d&=i;0<d;)p=31-Nr(d),v=1<<p,i|=a[p],d&=~v;return Gi=i,ig(),a=F5(),1e3<a-H5&&(pe.recentlyCreatedOwnerStacks=0,H5=a),Za.discardPendingWarnings(),l}function $M(a,i){We=null,pe.H=zm,pe.getCurrentStack=null,$i=!1,ra=null,i===Ku||i===Tv?(i=oP(),It=Fm):i===Ew?(i=oP(),It=Xk):It=i===Pw?Lw:i!==null&&typeof i=="object"&&typeof i.then=="function"?Km:$v,la=i;var l=dt;l===null?(sn=Hm,kg(a,Xr(i,a.current))):l.mode&st&&t1(l)}function BM(){var a=ia.current;return a===null?!0:(ct&4194048)===ct?Ta===null:(ct&62914560)===ct||(ct&536870912)!==0?a===Ta:!1}function zM(){var a=pe.H;return pe.H=zm,a===null?zm:a}function UM(){var a=pe.A;return pe.A=VX,a}function qg(a){mn===null&&(mn=a._debugTask==null?null:a._debugTask)}function Hg(){sn=Hs,Fs||(ct&4194048)!==ct&&ia.current!==null||(nd=!0),(Ks&134217727)===0&&(Gs&134217727)===0||Ht===null||Ds(Ht,ct,qr,!1)}function aN(a,i,l){var d=Et;Et|=Mn;var p=zM(),v=UM();if(Ht!==a||ct!==i){if(zi){var E=a.memoizedUpdaters;0<E.size&&(tm(a,ct),E.clear()),yo(a,i)}Ym=null,Nu(a,i)}i=!1,E=sn;e:do try{if(It!==Ur&&dt!==null){var O=dt,k=la;switch(It){case Lw:rN(),E=Vv;break e;case Fm:case tc:case nc:case Km:ia.current===null&&(i=!0);var L=It;if(It=Ur,la=null,wu(a,O,k,L),l&&nd){E=Fo;break e}break;default:L=It,It=Ur,la=null,wu(a,O,k,L)}}qM(),E=sn;break}catch(oe){$M(a,oe)}while(!0);return i&&a.shellSuspendCounter++,ug(),Et=d,pe.H=p,pe.A=v,dt===null&&(Ht=null,ct=0,ig()),E}function qM(){for(;dt!==null;)HM(dt)}function bY(a,i){var l=Et;Et|=Mn;var d=zM(),p=UM();if(Ht!==a||ct!==i){if(zi){var v=a.memoizedUpdaters;0<v.size&&(tm(a,ct),v.clear()),yo(a,i)}Ym=null,qv=Fn()+Jk,Nu(a,i)}else nd=kr(a,i);e:do try{if(It!==Ur&&dt!==null)t:switch(i=dt,v=la,It){case $v:It=Ur,la=null,wu(a,i,v,$v);break;case tc:case nc:if(aP(v)){It=Ur,la=null,FM(i);break}i=function(){It!==tc&&It!==nc||Ht!==a||(It=Bv),ki(a)},v.then(i,i);break e;case Fm:It=Bv;break e;case Xk:It=Iw;break e;case Bv:aP(v)?(It=Ur,la=null,FM(i)):(It=Ur,la=null,wu(a,i,v,Bv));break;case Iw:var E=null;switch(dt.tag){case 26:E=dt.memoizedState;case 5:case 27:var O=dt;if(E?L3(E):O.stateNode.complete){It=Ur,la=null;var k=O.sibling;if(k!==null)dt=k;else{var L=O.return;L!==null?(dt=L,Fg(L)):dt=null}break t}break;default:console.error("Unexpected type of fiber triggered a suspensey commit. This is a bug in React.")}It=Ur,la=null,wu(a,i,v,Iw);break;case Km:It=Ur,la=null,wu(a,i,v,Km);break;case Lw:rN(),sn=Vv;break e;default:throw Error("Unexpected SuspendedReason. This is a bug in React.")}pe.actQueue!==null?qM():yY();break}catch(oe){$M(a,oe)}while(!0);return ug(),pe.H=d,pe.A=p,Et=l,dt!==null?Fo:(Ht=null,ct=0,ig(),sn)}function yY(){for(;dt!==null&&!bQ();)HM(dt)}function HM(a){var i=a.alternate;(a.mode&st)!==Ye?(e1(a),i=de(a,Y1,i,a,Gi),t1(a)):i=de(a,Y1,i,a,Gi),a.memoizedProps=a.pendingProps,i===null?Fg(a):dt=i}function FM(a){var i=de(a,xY,a);a.memoizedProps=a.pendingProps,i===null?Fg(a):dt=i}function xY(a){var i=a.alternate,l=(a.mode&st)!==Ye;switch(l&&e1(a),a.tag){case 15:case 0:i=nM(i,a,a.pendingProps,a.type,void 0,ct);break;case 11:i=nM(i,a,a.pendingProps,a.type.render,a.ref,ct);break;case 5:h1(a);default:cM(i,a),a=dt=HR(a,Gi),i=Y1(i,a,Gi)}return l&&t1(a),i}function wu(a,i,l,d){ug(),h1(i),Gu=null,Lm=0;var p=i.return;try{if(aY(a,p,i,l,ct)){sn=Hm,kg(a,Xr(l,a.current)),dt=null;return}}catch(v){if(p!==null)throw dt=p,v;sn=Hm,kg(a,Xr(l,a.current)),dt=null;return}i.flags&32768?(pt||d===$v?a=!0:nd||(ct&536870912)!==0?a=!1:(Fs=a=!0,(d===tc||d===nc||d===Fm||d===Km)&&(d=ia.current,d!==null&&d.tag===13&&(d.flags|=16384))),KM(i,a)):Fg(i)}function Fg(a){var i=a;do{if((i.flags&32768)!==0){KM(i,Fs);return}var l=i.alternate;if(a=i.return,e1(i),l=de(i,sY,l,i,Gi),(i.mode&st)!==Ye&&JR(i),l!==null){dt=l;return}if(i=i.sibling,i!==null){dt=i;return}dt=i=a}while(i!==null);sn===Fo&&(sn=Qk)}function KM(a,i){do{var l=lY(a.alternate,a);if(l!==null){l.flags&=32767,dt=l;return}if((a.mode&st)!==Ye){JR(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)){dt=a;return}dt=a=l}while(a!==null);sn=Vv,dt=null}function iN(a,i,l,d,p,v,E,O,k,L,oe,se,Z,fe){a.cancelPendingCommit=null;do em();while(Cn!==Qs);if(Za.flushLegacyContextWarning(),Za.flushPendingUnsafeLifecycleWarnings(),(Et&(Mn|sa))!==Yn)throw Error("Should not already be working.");if(Ga(l),L===ec?$0(Z,fe,l,mn):d!==null?FG(Z,fe,l,d,i!==null&&i.alternate!==null&&i.alternate.memoizedState.isDehydrated&&(i.flags&256)!==0,mn):HG(Z,fe,l,mn),i!==null){if(l===0&&console.error("finishedLanes should not be empty during a commit. This is a bug in React."),i===a.current)throw Error("Cannot commit the same tree as before. This error is likely caused by a bug in React. Please file an issue.");if(v=i.lanes|i.childLanes,v|=fw,gs(a,l,v,E,O,k),a===Ht&&(dt=Ht=null,ct=0),rd=i,Xs=a,ti=l,Uw=v,Hw=p,iI=d,qw=fe,oI=se,ni=Hv,sI=null,i.actualDuration!==0||(i.subtreeFlags&10256)!==0||(i.flags&10256)!==0?(a.callbackNode=null,a.callbackPriority=0,AY(Cu,function(){return eh=window.event,ni===Hv&&(ni=zw),WM(),null})):(a.callbackNode=null,a.callbackPriority=0),Vo=null,$s=En(),se!==null&&KG(fe,$s,se,mn),d=(i.flags&13878)!==0,(i.subtreeFlags&13878)!==0||d){d=pe.T,pe.T=null,p=Pt.p,Pt.p=Na,E=Et,Et|=sa;try{hY(a,i,l)}finally{Et=E,Pt.p=p,pe.T=d}}Cn=tI,GM(),YM(),QM()}}function GM(){if(Cn===tI){Cn=Qs;var a=Xs,i=rd,l=ti,d=(i.flags&13878)!==0;if((i.subtreeFlags&13878)!==0||d){d=pe.T,pe.T=null;var p=Pt.p;Pt.p=Na;var v=Et;Et|=sa;try{ed=l,td=a,hg(),SM(i,a),td=ed=null,l=tE;var E=MR(a.containerInfo),O=l.focusedElem,k=l.selectionRange;if(E!==O&&O&&O.ownerDocument&&PR(O.ownerDocument.documentElement,O)){if(k!==null&&I0(O)){var L=k.start,oe=k.end;if(oe===void 0&&(oe=L),"selectionStart"in O)O.selectionStart=L,O.selectionEnd=Math.min(oe,O.value.length);else{var se=O.ownerDocument||document,Z=se&&se.defaultView||window;if(Z.getSelection){var fe=Z.getSelection(),Ce=O.textContent.length,_e=Math.min(k.start,Ce),Gt=k.end===void 0?_e:Math.min(k.end,Ce);!fe.extend&&_e>Gt&&(E=Gt,Gt=_e,_e=E);var xt=RR(O,_e),W=RR(O,Gt);if(xt&&W&&(fe.rangeCount!==1||fe.anchorNode!==xt.node||fe.anchorOffset!==xt.offset||fe.focusNode!==W.node||fe.focusOffset!==W.offset)){var J=se.createRange();J.setStart(xt.node,xt.offset),fe.removeAllRanges(),_e>Gt?(fe.addRange(J),fe.extend(W.node,W.offset)):(J.setEnd(W.node,W.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 ae=se[O];ae.element.scrollLeft=ae.left,ae.element.scrollTop=ae.top}}ob=!!eE,tE=eE=null}finally{Et=v,Pt.p=p,pe.T=d}}a.current=i,Cn=nI}}function YM(){if(Cn===nI){Cn=Qs;var a=sI;if(a!==null){$s=En();var i=Lo,l=$s;!Qt||l<=i||console.timeStamp(a,i,l,Nt,yt,"secondary-light")}a=Xs,i=rd,l=ti;var d=(i.flags&8772)!==0;if((i.subtreeFlags&8772)!==0||d){d=pe.T,pe.T=null;var p=Pt.p;Pt.p=Na;var v=Et;Et|=sa;try{ed=l,td=a,hg(),yM(a,i.alternate,i),td=ed=null}finally{Et=v,Pt.p=p,pe.T=d}}a=qw,i=oI,Lo=En(),a=i===null?a:$s,i=Lo,l=ni===Bw,d=mn,Vo!==null?$R(a,i,Vo,!1,d):!Qt||i<=a||(d?d.run(console.timeStamp.bind(console,l?"Commit Interrupted View Transition":"Commit",a,i,Nt,yt,l?"error":"secondary-dark")):console.timeStamp(l?"Commit Interrupted View Transition":"Commit",a,i,Nt,yt,l?"error":"secondary-dark")),Cn=rI}}function QM(){if(Cn===aI||Cn===rI){if(Cn===aI){var a=Lo;Lo=En();var i=Lo,l=ni===Bw;!Qt||i<=a||console.timeStamp(l?"Interrupted View Transition":"Starting Animation",a,i,Nt,yt,l?" error":"secondary-light"),ni!==Bw&&(ni=eI)}Cn=Qs,yQ(),a=Xs;var d=rd;i=ti,l=iI;var p=d.actualDuration!==0||(d.subtreeFlags&10256)!==0||(d.flags&10256)!==0;p?Cn=Fv:(Cn=Qs,rd=Xs=null,XM(a,a.pendingLanes),ac=0,Xm=null);var v=a.pendingLanes;if(v===0&&(Ys=null),p||t3(a),v=xo(i),d=d.stateNode,sr&&typeof sr.onCommitFiberRoot=="function")try{var E=(d.current.flags&128)===128;switch(v){case Na:var O=HN;break;case Ui:O=FN;break;case Ro:O=Cu;break;case cv:O=KN;break;default:O=Cu}sr.onCommitFiberRoot(Tu,d,O,E)}catch(se){Bi||(Bi=!0,console.error("React instrumentation encountered an error: %o",se))}if(zi&&a.memoizedUpdaters.clear(),gY(),l!==null){E=pe.T,O=Pt.p,Pt.p=Na,pe.T=null;try{var k=a.onRecoverableError;for(d=0;d<l.length;d++){var L=l[d],oe=NY(L.stack);de(L.source,k,L.value,oe)}}finally{pe.T=E,Pt.p=O}}(ti&3)!==0&&em(),ki(a),v=a.pendingLanes,(i&261930)!==0&&(v&42)!==0?(Dv=!0,a===Fw?Qm++:(Qm=0,Fw=a)):Qm=0,p||Bl(i,Lo),nm(0)}}function NY(a){return a={componentStack:a},Object.defineProperty(a,"digest",{get:function(){console.error('You are accessing "digest" from the errorInfo object passed to onRecoverableError. This property is no longer provided as part of errorInfo but can be accessed as a property of the Error instance itself.')}}),a}function XM(a,i){(a.pooledCacheLanes&=i)===0&&(i=a.pooledCache,i!=null&&(a.pooledCache=null,Vf(i)))}function em(){return GM(),YM(),QM(),WM()}function WM(){if(Cn!==Fv)return!1;var a=Xs,i=Uw;Uw=0;var l=xo(ti),d=Ro>l?Ro:l;l=pe.T;var p=Pt.p;try{Pt.p=d,pe.T=null;var v=Hw;Hw=null,d=Xs;var E=ti;if(Cn=Qs,rd=Xs=null,ti=0,(Et&(Mn|sa))!==Yn)throw Error("Cannot flush passive effects while already rendering.");Ga(E),Kw=!0,Kv=!1;var O=0;if(Vo=null,O=Fn(),ni===eI)B0(Lo,O,jX);else{var k=Lo,L=O,oe=ni===zw;!Qt||L<=k||(mn?mn.run(console.timeStamp.bind(console,oe?"Waiting for Paint":"Waiting",k,L,Nt,yt,"secondary-light")):console.timeStamp(oe?"Waiting for Paint":"Waiting",k,L,Nt,yt,"secondary-light"))}k=Et,Et|=sa;var se=d.current;hg(),RM(se);var Z=d.current;se=qw,hg(),CM(d,Z,E,v,se),t3(d),Et=k;var fe=Fn();if(Z=O,se=mn,Vo!==null?$R(Z,fe,Vo,!0,se):!Qt||fe<=Z||(se?se.run(console.timeStamp.bind(console,"Remaining Effects",Z,fe,Nt,yt,"secondary-dark")):console.timeStamp("Remaining Effects",Z,fe,Nt,yt,"secondary-dark")),Bl(E,fe),nm(0,!1),Kv?d===Xm?ac++:(ac=0,Xm=d):ac=0,Kv=Kw=!1,sr&&typeof sr.onPostCommitFiberRoot=="function")try{sr.onPostCommitFiberRoot(Tu,d)}catch(_e){Bi||(Bi=!0,console.error("React instrumentation encountered an error: %o",_e))}var Ce=d.current.stateNode;return Ce.effectDuration=0,Ce.passiveEffectDuration=0,!0}finally{Pt.p=p,pe.T=l,XM(a,i)}}function ZM(a,i,l){i=Xr(l,i),eP(i),i=L1(a.stateNode,i,2),a=Es(a,i,2),a!==null&&(Fa(a,2),ki(a))}function Rt(a,i,l){if(ad=!1,a.tag===3)ZM(a,a,l);else{for(;i!==null;){if(i.tag===3){ZM(i,a,l);return}if(i.tag===1){var d=i.stateNode;if(typeof i.type.getDerivedStateFromError=="function"||typeof d.componentDidCatch=="function"&&(Ys===null||!Ys.has(d))){a=Xr(l,a),eP(a),l=V1(2),d=Es(i,l,2),d!==null&&($1(l,d,i,a),Fa(d,2),ki(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 oN(a,i,l){var d=a.pingCache;if(d===null){d=a.pingCache=new BX;var p=new Set;d.set(i,p)}else p=d.get(i),p===void 0&&(p=new Set,d.set(i,p));p.has(l)||(Vw=!0,p.add(l),d=wY.bind(null,a,i,l),zi&&tm(a,l),i.then(d,d))}function wY(a,i,l){var d=a.pingCache;d!==null&&d.delete(i),a.pingedLanes|=a.suspendedLanes&l,a.warmLanes&=~l,(l&127)!==0?0>Fi&&(Fl=Fi=En(),Am=Nv("Promise Resolved"),Bs=wv):(l&4194048)!==0&&0>Ca&&($o=Ca=En(),Dm=Nv("Promise Resolved"),yw=wv),kM()&&pe.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`),Ht===a&&(ct&l)===l&&(sn===Hs||sn===Lv&&(ct&62914560)===ct&&Fn()-Uv<Zk?(Et&Mn)===Yn&&Nu(a,0):$w|=l,rc===ct&&(rc=0)),ki(a)}function JM(a,i){i===0&&(i=Yr()),a=or(a,i),a!==null&&(Fa(a,i),ki(a))}function EY(a){var i=a.memoizedState,l=0;i!==null&&(l=i.retryLane),JM(a,l)}function SY(a,i){var l=0;switch(a.tag){case 31:case 13:var d=a.stateNode,p=a.memoizedState;p!==null&&(l=p.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),JM(a,l)}function sN(a,i,l){if((i.subtreeFlags&67117056)!==0)for(i=i.child;i!==null;){var d=a,p=i,v=p.type===rv;v=l||v,p.tag!==22?p.flags&67108864?v&&de(p,e3,d,p):sN(d,p,v):p.memoizedState===null&&(v&&p.flags&8192?de(p,e3,d,p):p.subtreeFlags&67108864&&de(p,sN,d,p,v)),i=i.sibling}}function e3(a,i){Re(!0);try{OM(i),PM(i),DM(a,i.alternate,i,!1),TM(a,i,0,null,!1,0)}finally{Re(!1)}}function t3(a){var i=!0;a.current.mode&(lr|Wa)||(i=!1),sN(a,a.current,i)}function n3(a){if((Et&Mn)===Yn){var i=a.tag;if(i===3||i===1||i===0||i===11||i===14||i===15){if(i=z(a)||"ReactComponent",Gv!==null){if(Gv.has(i))return;Gv.add(i)}else Gv=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 tm(a,i){zi&&a.memoizedUpdaters.forEach(function(l){bo(a,l,i)})}function AY(a,i){var l=pe.actQueue;return l!==null?(l.push(i),qX):qN(a,i)}function OY(a){kM()&&pe.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`,z(a))})}function ki(a){a!==id&&a.next===null&&(id===null?Yv=id=a:id=id.next=a),Qv=!0,pe.actQueue!==null?Yw||(Yw=!0,o3()):Gw||(Gw=!0,o3())}function nm(a,i){if(!Qw&&Qv){Qw=!0;do for(var l=!1,d=Yv;d!==null;){if(a!==0){var p=d.pendingLanes;if(p===0)var v=0;else{var E=d.suspendedLanes,O=d.pingedLanes;v=(1<<31-Nr(42|a)+1)-1,v&=p&~(E&~O),v=v&201326741?v&201326741|1:v?v|2:0}v!==0&&(l=!0,i3(d,v))}else v=ct,v=qn(d,d===Ht?v:0,d.cancelPendingCommit!==null||d.timeoutHandle!==lc),(v&3)===0||kr(d,v)||(l=!0,i3(d,v));d=d.next}while(l);Qw=!1}}function DY(){eh=window.event,lN()}function lN(){Qv=Yw=Gw=!1;var a=0;Ws!==0&&MY()&&(a=Ws);for(var i=Fn(),l=null,d=Yv;d!==null;){var p=d.next,v=r3(d,i);v===0?(d.next=null,l===null?Yv=p:l.next=p,p===null&&(id=l)):(l=d,(a!==0||(v&3)!==0)&&(Qv=!0)),d=p}Cn!==Qs&&Cn!==Fv||nm(a),Ws!==0&&(Ws=0)}function r3(a,i){for(var l=a.suspendedLanes,d=a.pingedLanes,p=a.expirationTimes,v=a.pendingLanes&-62914561;0<v;){var E=31-Nr(v),O=1<<E,k=p[E];k===-1?((O&l)===0||(O&d)!==0)&&(p[E]=vi(O,i)):k<=i&&(a.expiredLanes|=O),v&=~O}if(i=Ht,l=ct,l=qn(a,a===i?l:0,a.cancelPendingCommit!==null||a.timeoutHandle!==lc),d=a.callbackNode,l===0||a===i&&(It===tc||It===nc)||a.cancelPendingCommit!==null)return d!==null&&cN(d),a.callbackNode=null,a.callbackPriority=0;if((l&3)===0||kr(a,l)){if(i=l&-l,i!==a.callbackPriority||pe.actQueue!==null&&d!==Xw)cN(d);else return i;switch(xo(l)){case Na:case Ui:l=FN;break;case Ro:l=Cu;break;case cv:l=KN;break;default:l=Cu}return d=a3.bind(null,a),pe.actQueue!==null?(pe.actQueue.push(d),l=Xw):l=qN(l,d),a.callbackPriority=i,a.callbackNode=l,i}return d!==null&&cN(d),a.callbackPriority=2,a.callbackNode=null,2}function a3(a,i){if(Dv=Ov=!1,eh=window.event,Cn!==Qs&&Cn!==Fv)return a.callbackNode=null,a.callbackPriority=0,null;var l=a.callbackNode;if(ni===Hv&&(ni=zw),em()&&a.callbackNode!==l)return null;var d=ct;return d=qn(a,a===Ht?d:0,a.cancelPendingCommit!==null||a.timeoutHandle!==lc),d===0?null:(LM(a,d,i),r3(a,Fn()),a.callbackNode!=null&&a.callbackNode===l?a3.bind(null,a):null)}function i3(a,i){if(em())return null;Ov=Dv,Dv=!1,LM(a,i,!0)}function cN(a){a!==Xw&&a!==null&&vQ(a)}function o3(){pe.actQueue!==null&&pe.actQueue.push(function(){return lN(),null}),JX(function(){(Et&(Mn|sa))!==Yn?qN(HN,DY):lN()})}function uN(){if(Ws===0){var a=Yl;a===0&&(a=ov,ov<<=1,(ov&261888)===0&&(ov=256)),Ws=a}return Ws}function s3(a){return a==null||typeof a=="symbol"||typeof a=="boolean"?null:typeof a=="function"?a:(Ve(a,"action"),Mf(""+a))}function l3(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 CY(a,i,l,d,p){if(i==="submit"&&l&&l.stateNode===p){var v=s3((p[wr]||null).action),E=d.submitter;E&&(i=(i=E[wr]||null)?s3(i.formAction):E.getAttribute("formAction"),i!==null&&(v=i,E=null));var O=new hv("action","action",null,d,p);a.push({event:O,listeners:[{instance:null,listener:function(){if(d.defaultPrevented){if(Ws!==0){var k=E?l3(p,E):new FormData(p),L={pending:!0,data:k,method:p.method,action:v};Object.freeze(L),_1(l,L,null,k)}}else typeof v=="function"&&(O.preventDefault(),k=E?l3(p,E):new FormData(p),L={pending:!0,data:k,method:p.method,action:v},Object.freeze(L),_1(l,L,v,k))},currentTarget:p}]})}}function Kg(a,i,l){a.currentTarget=l;try{i(a)}catch(d){lw(d)}a.currentTarget=null}function c3(a,i){i=(i&4)!==0;for(var l=0;l<a.length;l++){var d=a[l];e:{var p=void 0,v=d.event;if(d=d.listeners,i)for(var E=d.length-1;0<=E;E--){var O=d[E],k=O.instance,L=O.currentTarget;if(O=O.listener,k!==p&&v.isPropagationStopped())break e;k!==null?de(k,Kg,v,O,L):Kg(v,O,L),p=k}else for(E=0;E<d.length;E++){if(O=d[E],k=O.instance,L=O.currentTarget,O=O.listener,k!==p&&v.isPropagationStopped())break e;k!==null?de(k,Kg,v,O,L):Kg(v,O,L),p=k}}}}function bt(a,i){Ww.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[GN];l===void 0&&(l=i[GN]=new Set);var d=a+"__bubble";l.has(d)||(u3(i,a,2,!1),l.add(d))}function dN(a,i,l){Ww.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),u3(l,a,d,i)}function fN(a){if(!a[Xv]){a[Xv]=!0,o5.forEach(function(l){l!=="selectionchange"&&(Ww.has(l)||dN(l,!1,a),dN(l,!0,a))});var i=a.nodeType===9?a:a.ownerDocument;i===null||i[Xv]||(i[Xv]=!0,dN("selectionchange",!1,i))}}function u3(a,i,l,d){switch(q3(i)){case Na:var p=lQ;break;case Ui:p=cQ;break;default:p=CN}l=p.bind(null,i,l,a),p=void 0,!ZN||i!=="touchstart"&&i!=="touchmove"&&i!=="wheel"||(p=!0),d?p!==void 0?a.addEventListener(i,l,{capture:!0,passive:p}):a.addEventListener(i,l,!0):p!==void 0?a.addEventListener(i,l,{passive:p}):a.addEventListener(i,l,!1)}function mN(a,i,l,d,p){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===p)break;if(E===4)for(E=d.return;E!==null;){var k=E.tag;if((k===3||k===4)&&E.stateNode.containerInfo===p)return;E=E.return}for(;O!==null;){if(E=Ee(O),E===null)return;if(k=E.tag,k===5||k===6||k===26||k===27){d=v=E;continue e}O=O.parentNode}}d=d.return}NR(function(){var L=v,oe=M0(l),se=[];e:{var Z=q5.get(a);if(Z!==void 0){var fe=hv,Ce=a;switch(a){case"keypress":if(eg(l)===0)break e;case"keydown":case"keyup":fe=aX;break;case"focusin":Ce="focus",fe=nw;break;case"focusout":Ce="blur",fe=nw;break;case"beforeblur":case"afterblur":fe=nw;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=T5;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":fe=KQ;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":fe=sX;break;case $5:case B5:case z5:fe=QQ;break;case U5:fe=cX;break;case"scroll":case"scrollend":fe=HQ;break;case"wheel":fe=dX;break;case"copy":case"cut":case"paste":fe=WQ;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":fe=j5;break;case"toggle":case"beforetoggle":fe=mX}var _e=(i&4)!==0,Gt=!_e&&(a==="scroll"||a==="scrollend"),xt=_e?Z!==null?Z+"Capture":null:Z;_e=[];for(var W=L,J;W!==null;){var ae=W;if(J=ae.stateNode,ae=ae.tag,ae!==5&&ae!==26&&ae!==27||J===null||xt===null||(ae=kf(W,xt),ae!=null&&_e.push(rm(W,ae,J))),Gt)break;W=W.return}0<_e.length&&(Z=new fe(Z,Ce,null,l,oe),se.push({event:Z,listeners:_e}))}}if((i&7)===0){e:{if(Z=a==="mouseover"||a==="pointerover",fe=a==="mouseout"||a==="pointerout",Z&&l!==hm&&(Ce=l.relatedTarget||l.fromElement)&&(Ee(Ce)||Ce[Ps]))break e;if((fe||Z)&&(Z=oe.window===oe?oe:(Z=oe.ownerDocument)?Z.defaultView||Z.parentWindow:window,fe?(Ce=l.relatedTarget||l.toElement,fe=L,Ce=Ce?Ee(Ce):null,Ce!==null&&(Gt=D(Ce),_e=Ce.tag,Ce!==Gt||_e!==5&&_e!==27&&_e!==6)&&(Ce=null)):(fe=null,Ce=L),fe!==Ce)){if(_e=T5,ae="onMouseLeave",xt="onMouseEnter",W="mouse",(a==="pointerout"||a==="pointerover")&&(_e=j5,ae="onPointerLeave",xt="onPointerEnter",W="pointer"),Gt=fe==null?Z:Me(fe),J=Ce==null?Z:Me(Ce),Z=new _e(ae,W+"leave",fe,l,oe),Z.target=Gt,Z.relatedTarget=J,ae=null,Ee(oe)===L&&(_e=new _e(xt,W+"enter",Ce,l,oe),_e.target=J,_e.relatedTarget=Gt,ae=_e),Gt=ae,fe&&Ce)t:{for(_e=TY,xt=fe,W=Ce,J=0,ae=xt;ae;ae=_e(ae))J++;ae=0;for(var ve=W;ve;ve=_e(ve))ae++;for(;0<J-ae;)xt=_e(xt),J--;for(;0<ae-J;)W=_e(W),ae--;for(;J--;){if(xt===W||W!==null&&xt===W.alternate){_e=xt;break t}xt=_e(xt),W=_e(W)}_e=null}else _e=null;fe!==null&&d3(se,Z,fe,_e,!1),Ce!==null&&Gt!==null&&d3(se,Gt,Ce,_e,!0)}}e:{if(Z=L?Me(L):window,fe=Z.nodeName&&Z.nodeName.toLowerCase(),fe==="select"||fe==="input"&&Z.type==="file")var Te=CR;else if(OR(Z))if(L5)Te=zG;else{Te=$G;var Ze=VG}else fe=Z.nodeName,!fe||fe.toLowerCase()!=="input"||Z.type!=="checkbox"&&Z.type!=="radio"?L&&Pf(L.elementType)&&(Te=CR):Te=BG;if(Te&&(Te=Te(a,L))){DR(se,Te,l,oe);break e}Ze&&Ze(a,Z,L),a==="focusout"&&L&&Z.type==="number"&&L.memoizedProps.value!=null&&C0(Z,"number",Z.value)}switch(Ze=L?Me(L):window,a){case"focusin":(OR(Ze)||Ze.contentEditable==="true")&&(Iu=Ze,aw=L,Nm=null);break;case"focusout":Nm=aw=Iu=null;break;case"mousedown":iw=!0;break;case"contextmenu":case"mouseup":case"dragend":iw=!1,kR(se,l,oe);break;case"selectionchange":if(vX)break;case"keydown":case"keyup":kR(se,l,oe)}var Ue;if(rw)e:{switch(a){case"compositionstart":var $e="onCompositionStart";break e;case"compositionend":$e="onCompositionEnd";break e;case"compositionupdate":$e="onCompositionUpdate";break e}$e=void 0}else ku?SR(a,l)&&($e="onCompositionEnd"):a==="keydown"&&l.keyCode===R5&&($e="onCompositionStart");$e&&(P5&&l.locale!=="ko"&&(ku||$e!=="onCompositionStart"?$e==="onCompositionEnd"&&ku&&(Ue=wR()):(Ms=oe,JN="value"in Ms?Ms.value:Ms.textContent,ku=!0)),Ze=Gg(L,$e),0<Ze.length&&($e=new _5($e,a,null,l,oe),se.push({event:$e,listeners:Ze}),Ue?$e.data=Ue:(Ue=AR(l),Ue!==null&&($e.data=Ue)))),(Ue=pX?MG(a,l):kG(a,l))&&($e=Gg(L,"onBeforeInput"),0<$e.length&&(Ze=new JQ("onBeforeInput","beforeinput",null,l,oe),se.push({event:Ze,listeners:$e}),Ze.data=Ue)),CY(se,a,L,l,oe)}c3(se,i)})}function rm(a,i,l){return{instance:a,listener:i,currentTarget:l}}function Gg(a,i){for(var l=i+"Capture",d=[];a!==null;){var p=a,v=p.stateNode;if(p=p.tag,p!==5&&p!==26&&p!==27||v===null||(p=kf(a,l),p!=null&&d.unshift(rm(a,p,v)),p=kf(a,i),p!=null&&d.push(rm(a,p,v))),a.tag===3)return d;a=a.return}return[]}function TY(a){if(a===null)return null;do a=a.return;while(a&&a.tag!==5&&a.tag!==27);return a||null}function d3(a,i,l,d,p){for(var v=i._reactName,E=[];l!==null&&l!==d;){var O=l,k=O.alternate,L=O.stateNode;if(O=O.tag,k!==null&&k===d)break;O!==5&&O!==26&&O!==27||L===null||(k=L,p?(L=kf(l,v),L!=null&&E.unshift(rm(l,L,k))):p||(L=kf(l,v),L!=null&&E.push(rm(l,L,k)))),l=l.return}E.length!==0&&a.push({event:i,listeners:E})}function hN(a,i){_G(a,i),a!=="input"&&a!=="textarea"&&a!=="select"||i==null||i.value!==null||D5||(D5=!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:zl,possibleRegistrationNames:YN};Pf(a)||typeof i.is=="string"||RG(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 Hn(a,i,l,d){i!==l&&(l=Cs(l),Cs(i)!==l&&(d[a]=i))}function _Y(a,i,l){i.forEach(function(d){l[h3(d)]=d==="style"?gN(a):a.getAttribute(d)})}function Ii(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 f3(a,i){return a=a.namespaceURI===dv||a.namespaceURI===ju?a.ownerDocument.createElementNS(a.namespaceURI,a.tagName):a.ownerDocument.createElement(a.tagName),a.innerHTML=i,a.innerHTML}function Cs(a){return Ne(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)),ut(a)),(typeof a=="string"?a:""+a).replace(HX,`
|
||
`).replace(FX,"")}function m3(a,i){return i=Cs(i),Cs(a)===i}function Ut(a,i,l,d,p,v){switch(l){case"children":typeof d=="string"?(Jp(d,i,!1),i==="body"||i==="textarea"&&d===""||Rf(a,d)):(typeof d=="number"||typeof d=="bigint")&&(Jp(""+d,i,!1),i!=="body"&&Rf(a,""+d));break;case"className":No(a,"class",d);break;case"tabIndex":No(a,"tabindex",d);break;case"dir":case"role":case"viewBox":case"width":case"height":No(a,l,d);break;case"style":bR(a,d,v);break;case"data":if(i!=="object"){No(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}Ve(d,l),d=Mf(""+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"&&(p.encType==null&&p.method==null||Jv||(Jv=!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.")),p.target==null||Zv||(Zv=!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"||p.type==="submit"||p.type==="image"||Wv?i!=="button"||p.type==null||p.type==="submit"||Wv?typeof d=="function"&&(p.name==null||fI||(fI=!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.')),p.formEncType==null&&p.formMethod==null||Jv||(Jv=!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.")),p.formTarget==null||Zv||(Zv=!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."))):(Wv=!0,console.error('A button can only specify a formAction along with type="submit" or no type.')):(Wv=!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"&&Ut(a,i,"name",p.name,p,null),Ut(a,i,"formEncType",p.formEncType,p,null),Ut(a,i,"formMethod",p.formMethod,p,null),Ut(a,i,"formTarget",p.formTarget,p,null)):(Ut(a,i,"encType",p.encType,p,null),Ut(a,i,"method",p.method,p,null),Ut(a,i,"target",p.target,p,null)));if(d==null||typeof d=="symbol"||typeof d=="boolean"){a.removeAttribute(l);break}Ve(d,l),d=Mf(""+d),a.setAttribute(l,d);break;case"onClick":d!=null&&(typeof d!="function"&&Ii(l,d),a.onclick=Eo);break;case"onScroll":d!=null&&(typeof d!="function"&&Ii(l,d),bt("scroll",a));break;case"onScrollEnd":d!=null&&(typeof d!="function"&&Ii(l,d),bt("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(p.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}Ve(d,l),l=Mf(""+d),a.setAttributeNS(ic,"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"?(Ve(d,l),a.setAttribute(l,""+d)):a.removeAttribute(l);break;case"inert":d!==""||eb[l]||(eb[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"?(Ve(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?(Ve(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):(Ve(d,l),a.setAttribute(l,d));break;case"popover":bt("beforetoggle",a),bt("toggle",a),jn(a,"popover",d);break;case"xlinkActuate":gn(a,ic,"xlink:actuate",d);break;case"xlinkArcrole":gn(a,ic,"xlink:arcrole",d);break;case"xlinkRole":gn(a,ic,"xlink:role",d);break;case"xlinkShow":gn(a,ic,"xlink:show",d);break;case"xlinkTitle":gn(a,ic,"xlink:title",d);break;case"xlinkType":gn(a,ic,"xlink:type",d);break;case"xmlBase":gn(a,Zw,"xml:base",d);break;case"xmlLang":gn(a,Zw,"xml:lang",d);break;case"xmlSpace":gn(a,Zw,"xml:space",d);break;case"is":v!=null&&console.error('Cannot update the "is" prop after it has been initialized.'),jn(a,"is",d);break;case"innerText":case"textContent":break;case"popoverTarget":mI||d==null||typeof d!="object"||(mI=!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=yR(l),jn(a,l,d)):zl.hasOwnProperty(l)&&d!=null&&typeof d!="function"&&Ii(l,d)}}function pN(a,i,l,d,p,v){switch(l){case"style":bR(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(p.children!=null)throw Error("Can only set one of `children` or `props.dangerouslySetInnerHTML`.");a.innerHTML=l}}break;case"children":typeof d=="string"?Rf(a,d):(typeof d=="number"||typeof d=="bigint")&&Rf(a,""+d);break;case"onScroll":d!=null&&(typeof d!="function"&&Ii(l,d),bt("scroll",a));break;case"onScrollEnd":d!=null&&(typeof d!="function"&&Ii(l,d),bt("scrollend",a));break;case"onClick":d!=null&&(typeof d!="function"&&Ii(l,d),a.onclick=Eo);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"innerHTML":case"ref":break;case"innerText":case"textContent":break;default:if(zl.hasOwnProperty(l))d!=null&&typeof d!="function"&&Ii(l,d);else e:{if(l[0]==="o"&&l[1]==="n"&&(p=l.endsWith("Capture"),i=l.slice(2,p?l.length-7:void 0),v=a[wr]||null,v=v!=null?v[l]:null,typeof v=="function"&&a.removeEventListener(i,v,p),typeof d=="function")){typeof v!="function"&&v!==null&&(l in a?a[l]=null:a.hasAttribute(l)&&a.removeAttribute(l)),a.addEventListener(i,d,p);break e}l in a?a[l]=d:d===!0?a.setAttribute(l,""):jn(a,l,d)}}}function er(a,i,l){switch(hN(i,l),i){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"img":bt("error",a),bt("load",a);var d=!1,p=!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":p=!0;break;case"children":case"dangerouslySetInnerHTML":throw Error(i+" is a void element tag and must neither have `children` nor use `dangerouslySetInnerHTML`.");default:Ut(a,i,v,E,l,null)}}p&&Ut(a,i,"srcSet",l.srcSet,l,null),d&&Ut(a,i,"src",l.src,l,null);return;case"input":zt("input",l),bt("invalid",a);var O=v=E=p=null,k=null,L=null;for(d in l)if(l.hasOwnProperty(d)){var oe=l[d];if(oe!=null)switch(d){case"name":p=oe;break;case"type":E=oe;break;case"checked":k=oe;break;case"defaultChecked":L=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:Ut(a,i,d,oe,l,null)}}nR(a,l),rR(a,v,O,k,L,E,p,!1);return;case"select":zt("select",l),bt("invalid",a),d=E=v=null;for(p in l)if(l.hasOwnProperty(p)&&(O=l[p],O!=null))switch(p){case"value":v=O;break;case"defaultValue":E=O;break;case"multiple":d=O;default:Ut(a,i,p,O,l,null)}oR(a,l),i=v,l=E,a.multiple=!!d,i!=null?lu(a,!!d,i,!1):l!=null&&lu(a,!!d,l,!0);return;case"textarea":zt("textarea",l),bt("invalid",a),v=p=d=null;for(E in l)if(l.hasOwnProperty(E)&&(O=l[E],O!=null))switch(E){case"value":d=O;break;case"defaultValue":p=O;break;case"children":v=O;break;case"dangerouslySetInnerHTML":if(O!=null)throw Error("`dangerouslySetInnerHTML` does not make sense on <textarea>.");break;default:Ut(a,i,E,O,l,null)}sR(a,l),cR(a,d,p,v);return;case"option":aR(a,l);for(k in l)if(l.hasOwnProperty(k)&&(d=l[k],d!=null))switch(k){case"selected":a.selected=d&&typeof d!="function"&&typeof d!="symbol";break;default:Ut(a,i,k,d,l,null)}return;case"dialog":bt("beforetoggle",a),bt("toggle",a),bt("cancel",a),bt("close",a);break;case"iframe":case"object":bt("load",a);break;case"video":case"audio":for(d=0;d<Wm.length;d++)bt(Wm[d],a);break;case"image":bt("error",a),bt("load",a);break;case"details":bt("toggle",a);break;case"embed":case"source":case"link":bt("error",a),bt("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(L in l)if(l.hasOwnProperty(L)&&(d=l[L],d!=null))switch(L){case"children":case"dangerouslySetInnerHTML":throw Error(i+" is a void element tag and must neither have `children` nor use `dangerouslySetInnerHTML`.");default:Ut(a,i,L,d,l,null)}return;default:if(Pf(i)){for(oe in l)l.hasOwnProperty(oe)&&(d=l[oe],d!==void 0&&pN(a,i,oe,d,l,void 0));return}}for(O in l)l.hasOwnProperty(O)&&(d=l[O],d!=null&&Ut(a,i,O,d,l,null))}function jY(a,i,l,d){switch(hN(i,d),i){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"input":var p=null,v=null,E=null,O=null,k=null,L=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":k=se;default:d.hasOwnProperty(fe)||Ut(a,i,fe,null,d,se)}}for(var Z in d){var fe=d[Z];if(se=l[Z],d.hasOwnProperty(Z)&&(fe!=null||se!=null))switch(Z){case"type":v=fe;break;case"name":p=fe;break;case"checked":L=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&&Ut(a,i,Z,fe,d,se)}}i=l.type==="checkbox"||l.type==="radio"?l.checked!=null:l.value!=null,d=d.type==="checkbox"||d.type==="radio"?d.checked!=null:d.value!=null,i||!d||dI||(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"),dI=!0),!i||d||uI||(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"),uI=!0),D0(a,E,O,k,L,oe,v,p);return;case"select":fe=E=O=Z=null;for(v in l)if(k=l[v],l.hasOwnProperty(v)&&k!=null)switch(v){case"value":break;case"multiple":fe=k;default:d.hasOwnProperty(v)||Ut(a,i,v,null,d,k)}for(p in d)if(v=d[p],k=l[p],d.hasOwnProperty(p)&&(v!=null||k!=null))switch(p){case"value":Z=v;break;case"defaultValue":O=v;break;case"multiple":E=v;default:v!==k&&Ut(a,i,p,v,d,k)}d=O,i=E,l=fe,Z!=null?lu(a,!!i,Z,!1):!!l!=!!i&&(d!=null?lu(a,!!i,d,!0):lu(a,!!i,i?[]:"",!1));return;case"textarea":fe=Z=null;for(O in l)if(p=l[O],l.hasOwnProperty(O)&&p!=null&&!d.hasOwnProperty(O))switch(O){case"value":break;case"children":break;default:Ut(a,i,O,null,d,p)}for(E in d)if(p=d[E],v=l[E],d.hasOwnProperty(E)&&(p!=null||v!=null))switch(E){case"value":Z=p;break;case"defaultValue":fe=p;break;case"children":break;case"dangerouslySetInnerHTML":if(p!=null)throw Error("`dangerouslySetInnerHTML` does not make sense on <textarea>.");break;default:p!==v&&Ut(a,i,E,p,d,v)}lR(a,Z,fe);return;case"option":for(var Ce in l)if(Z=l[Ce],l.hasOwnProperty(Ce)&&Z!=null&&!d.hasOwnProperty(Ce))switch(Ce){case"selected":a.selected=!1;break;default:Ut(a,i,Ce,null,d,Z)}for(k in d)if(Z=d[k],fe=l[k],d.hasOwnProperty(k)&&Z!==fe&&(Z!=null||fe!=null))switch(k){case"selected":a.selected=Z&&typeof Z!="function"&&typeof Z!="symbol";break;default:Ut(a,i,k,Z,d,fe)}return;case"img":case"link":case"area":case"base":case"br":case"col":case"embed":case"hr":case"keygen":case"meta":case"param":case"source":case"track":case"wbr":case"menuitem":for(var _e in l)Z=l[_e],l.hasOwnProperty(_e)&&Z!=null&&!d.hasOwnProperty(_e)&&Ut(a,i,_e,null,d,Z);for(L in d)if(Z=d[L],fe=l[L],d.hasOwnProperty(L)&&Z!==fe&&(Z!=null||fe!=null))switch(L){case"children":case"dangerouslySetInnerHTML":if(Z!=null)throw Error(i+" is a void element tag and must neither have `children` nor use `dangerouslySetInnerHTML`.");break;default:Ut(a,i,L,Z,d,fe)}return;default:if(Pf(i)){for(var Gt in l)Z=l[Gt],l.hasOwnProperty(Gt)&&Z!==void 0&&!d.hasOwnProperty(Gt)&&pN(a,i,Gt,void 0,d,Z);for(oe in d)Z=d[oe],fe=l[oe],!d.hasOwnProperty(oe)||Z===fe||Z===void 0&&fe===void 0||pN(a,i,oe,Z,d,fe);return}}for(var xt in l)Z=l[xt],l.hasOwnProperty(xt)&&Z!=null&&!d.hasOwnProperty(xt)&&Ut(a,i,xt,null,d,Z);for(se in d)Z=d[se],fe=l[se],!d.hasOwnProperty(se)||Z===fe||Z==null&&fe==null||Ut(a,i,se,Z,d,fe)}function h3(a){switch(a){case"class":return"className";case"for":return"htmlFor";default:return a}}function gN(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 p3(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,p=d="",v;for(v in i)if(i.hasOwnProperty(v)){var E=i[v];E!=null&&typeof E!="boolean"&&E!==""&&(v.indexOf("--")===0?(nt(E,v),d+=p+v+":"+(""+E).trim()):typeof E!="number"||E===0||A5.has(v)?(nt(E,v),d+=p+v.replace(x5,"-$1").toLowerCase().replace(N5,"-ms-")+":"+(""+E).trim()):d+=p+v.replace(x5,"-$1").toLowerCase().replace(N5,"-ms-")+":"+E+"px",p=";")}d=d||null,i=a.getAttribute("style"),i!==d&&(d=Cs(d),Cs(i)!==d&&(l.style=gN(a)))}}function xa(a,i,l,d,p,v){if(p.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(Ve(d,i),a===""+d)return}Hn(i,a,d,v)}function g3(a,i,l,d,p,v){if(p.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}Hn(i,a,d,v)}function vN(a,i,l,d,p,v){if(p.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(Ve(d,l),a===""+d)return}Hn(i,a,d,v)}function v3(a,i,l,d,p,v){if(p.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)&&(Ve(d,i),a===""+d))return}Hn(i,a,d,v)}function bN(a,i,l,d,p,v){if(p.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(Ve(d,i),l=Mf(""+d),a===l)return}Hn(i,a,d,v)}function b3(a,i,l,d){for(var p={},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(Pf(i)){for(var k in l)if(l.hasOwnProperty(k)){var L=l[k];if(L!=null){if(zl.hasOwnProperty(k))typeof L!="function"&&Ii(k,L);else if(l.suppressHydrationWarning!==!0)switch(k){case"children":typeof L!="string"&&typeof L!="number"||Hn("children",a.textContent,L,p);continue;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"defaultValue":case"defaultChecked":case"innerHTML":case"ref":continue;case"dangerouslySetInnerHTML":E=a.innerHTML,L=L?L.__html:void 0,L!=null&&(L=f3(a,L),Hn(k,E,L,p));continue;case"style":v.delete(k),p3(a,L,p);continue;case"offsetParent":case"offsetTop":case"offsetLeft":case"offsetWidth":case"offsetHeight":case"isContentEditable":case"outerText":case"outerHTML":v.delete(k.toLowerCase()),console.error("Assignment to read-only property will result in a no-op: `%s`",k);continue;case"className":v.delete("class"),E=dn(a,"class",L),Hn("className",E,L,p);continue;default:d.context===Ko&&i!=="svg"&&i!=="math"?v.delete(k.toLowerCase()):v.delete(k),E=dn(a,k,L),Hn(k,E,L,p)}}}}else for(L in l)if(l.hasOwnProperty(L)&&(k=l[L],k!=null)){if(zl.hasOwnProperty(L))typeof k!="function"&&Ii(L,k);else if(l.suppressHydrationWarning!==!0)switch(L){case"children":typeof k!="string"&&typeof k!="number"||Hn("children",a.textContent,k,p);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,k=k?k.__html:void 0,k!=null&&(k=f3(a,k),E!==k&&(p[L]={__html:E}));continue;case"className":xa(a,L,"class",k,v,p);continue;case"tabIndex":xa(a,L,"tabindex",k,v,p);continue;case"style":v.delete(L),p3(a,k,p);continue;case"multiple":v.delete(L),Hn(L,a.multiple,k,p);continue;case"muted":v.delete(L),Hn(L,a.muted,k,p);continue;case"autoFocus":v.delete("autofocus"),Hn(L,a.autofocus,k,p);continue;case"data":if(i!=="object"){v.delete(L),E=a.getAttribute("data"),Hn(L,E,k,p);continue}case"src":case"href":if(!(k!==""||i==="a"&&L==="href"||i==="object"&&L==="data")){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);continue}bN(a,L,L,k,v,p);continue;case"action":case"formAction":if(E=a.getAttribute(L),typeof k=="function"){v.delete(L.toLowerCase()),L==="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===KX){v.delete(L.toLowerCase()),Hn(L,"function",k,p);continue}bN(a,L,L.toLowerCase(),k,v,p);continue;case"xlinkHref":bN(a,L,"xlink:href",k,v,p);continue;case"contentEditable":vN(a,L,"contenteditable",k,v,p);continue;case"spellCheck":vN(a,L,"spellcheck",k,v,p);continue;case"draggable":case"autoReverse":case"externalResourcesRequired":case"focusable":case"preserveAlpha":vN(a,L,L,k,v,p);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":g3(a,L,L.toLowerCase(),k,v,p);continue;case"capture":case"download":e:{O=a;var oe=E=L,se=p;if(v.delete(oe),O=O.getAttribute(oe),O===null)switch(typeof k){case"undefined":case"function":case"symbol":break e;default:if(k===!1)break e}else if(k!=null)switch(typeof k){case"function":case"symbol":break;case"boolean":if(k===!0&&O==="")break e;break;default:if(Ve(k,E),O===""+k)break e}Hn(E,O,k,se)}continue;case"cols":case"rows":case"size":case"span":e:{if(O=a,oe=E=L,se=p,v.delete(oe),O=O.getAttribute(oe),O===null)switch(typeof k){case"undefined":case"function":case"symbol":case"boolean":break e;default:if(isNaN(k)||1>k)break e}else if(k!=null)switch(typeof k){case"function":case"symbol":case"boolean":break;default:if(!(isNaN(k)||1>k)&&(Ve(k,E),O===""+k))break e}Hn(E,O,k,se)}continue;case"rowSpan":v3(a,L,"rowspan",k,v,p);continue;case"start":v3(a,L,L,k,v,p);continue;case"xHeight":xa(a,L,"x-height",k,v,p);continue;case"xlinkActuate":xa(a,L,"xlink:actuate",k,v,p);continue;case"xlinkArcrole":xa(a,L,"xlink:arcrole",k,v,p);continue;case"xlinkRole":xa(a,L,"xlink:role",k,v,p);continue;case"xlinkShow":xa(a,L,"xlink:show",k,v,p);continue;case"xlinkTitle":xa(a,L,"xlink:title",k,v,p);continue;case"xlinkType":xa(a,L,"xlink:type",k,v,p);continue;case"xmlBase":xa(a,L,"xml:base",k,v,p);continue;case"xmlLang":xa(a,L,"xml:lang",k,v,p);continue;case"xmlSpace":xa(a,L,"xml:space",k,v,p);continue;case"inert":k!==""||eb[L]||(eb[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)),g3(a,L,L,k,v,p);continue;default:if(!(2<L.length)||L[0]!=="o"&&L[0]!=="O"||L[1]!=="n"&&L[1]!=="N"){O=yR(L),E=!1,d.context===Ko&&i!=="svg"&&i!=="math"?v.delete(O.toLowerCase()):(oe=L.toLowerCase(),oe=fv.hasOwnProperty(oe)&&fv[oe]||null,oe!==null&&oe!==L&&(E=!0,v.delete(oe)),v.delete(O));e:if(oe=a,se=O,O=k,yr(se))if(oe.hasAttribute(se))oe=oe.getAttribute(se),Ve(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||Hn(L,O,k,p)}}}return 0<v.size&&l.suppressHydrationWarning!==!0&&_Y(a,v,p),Object.keys(p).length===0?null:p}function RY(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 y3(a){switch(a){case"css":case"script":case"font":case"img":case"image":case"input":case"link":return!0;default:return!1}}function PY(){if(typeof performance.getEntriesByType=="function"){for(var a=0,i=0,l=performance.getEntriesByType("resource"),d=0;d<l.length;d++){var p=l[d],v=p.transferSize,E=p.initiatorType,O=p.duration;if(v&&O&&y3(E)){for(E=0,O=p.responseEnd,d+=1;d<l.length;d++){var k=l[d],L=k.startTime;if(L>O)break;var oe=k.transferSize,se=k.initiatorType;oe&&y3(se)&&(k=k.responseEnd,E+=oe*(k<O?1:(O-L)/(k-L)))}if(--d,i+=8*(v+E)/(p.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 Yg(a){return a.nodeType===9?a:a.ownerDocument}function x3(a){switch(a){case ju:return sd;case dv:return nb;default:return Ko}}function N3(a,i){if(a===Ko)switch(i){case"svg":return sd;case"math":return nb;default:return Ko}return a===sd&&i==="foreignObject"?Ko:a}function yN(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 MY(){var a=window.event;return a&&a.type==="popstate"?a===nE?!1:(nE=a,!0):(nE=null,!1)}function am(){var a=window.event;return a&&a!==eh?a.type:null}function im(){var a=window.event;return a&&a!==eh?a.timeStamp:-1.1}function kY(a){setTimeout(function(){throw a})}function IY(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 LY(){}function VY(a,i,l,d){jY(a,i,l,d),a[wr]=d}function w3(a){Rf(a,"")}function $Y(a,i,l){a.nodeValue=l}function E3(a){if(!a.__reactWarnedAboutChildrenConflict){var i=a[wr]||null;if(i!==null){var l=De(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 Ts(a){return a==="head"}function BY(a,i){a.removeChild(i)}function zY(a,i){(a.nodeType===9?a.body:a.nodeName==="HTML"?a.ownerDocument.body:a).removeChild(i)}function S3(a,i){var l=i,d=0;do{var p=l.nextSibling;if(a.removeChild(l),p&&p.nodeType===8)if(l=p.data,l===Jm||l===tb){if(d===0){a.removeChild(p),Au(i);return}d--}else if(l===Zm||l===Zs||l===sc||l===od||l===oc)d++;else if(l===YX)om(a.ownerDocument.documentElement);else if(l===XX){l=a.ownerDocument.head,om(l);for(var v=l.firstChild;v;){var E=v.nextSibling,O=v.nodeName;v[mm]||O==="SCRIPT"||O==="STYLE"||O==="LINK"&&v.rel.toLowerCase()==="stylesheet"||l.removeChild(v),v=E}}else l===QX&&om(a.ownerDocument.body);l=p}while(l);Au(i)}function A3(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===Jm){if(a===0)break;a--}else l!==Zm&&l!==Zs&&l!==sc&&l!==od||a++;l=d}while(l)}function UY(a){A3(a,!0)}function qY(a){a=a.style,typeof a.setProperty=="function"?a.setProperty("display","none","important"):a.display="none"}function HY(a){a.nodeValue=""}function FY(a){A3(a,!1)}function KY(a,i){i=i[WX],i=i!=null&&i.hasOwnProperty("display")?i.display:null,a.style.display=i==null||typeof i=="boolean"?"":(""+i).trim()}function GY(a,i){a.nodeValue=i}function xN(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":xN(l),ue(l);continue;case"SCRIPT":case"STYLE":continue;case"LINK":if(l.rel.toLowerCase()==="stylesheet")continue}a.removeChild(l)}}function YY(a,i,l,d){for(;a.nodeType===1;){var p=l;if(a.nodeName.toLowerCase()!==i.toLowerCase()){if(!d&&(a.nodeName!=="INPUT"||a.type!=="hidden"))break}else if(d){if(!a[mm])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!==p.rel||a.getAttribute("href")!==(p.href==null||p.href===""?null:p.href)||a.getAttribute("crossorigin")!==(p.crossOrigin==null?null:p.crossOrigin)||a.getAttribute("title")!==(p.title==null?null:p.title))break;return a;case"style":if(a.hasAttribute("data-precedence"))break;return a;case"script":if(v=a.getAttribute("src"),(v!==(p.src==null?null:p.src)||a.getAttribute("type")!==(p.type==null?null:p.type)||a.getAttribute("crossorigin")!==(p.crossOrigin==null?null:p.crossOrigin))&&v&&a.hasAttribute("async")&&!a.hasAttribute("itemprop"))break;return a;default:return a}}else if(i==="input"&&a.type==="hidden"){Ve(p.name,"name");var v=p.name==null?null:""+p.name;if(p.type==="hidden"&&a.getAttribute("name")===v)return a}else return a;if(a=ta(a.nextSibling),a===null)break}return null}function QY(a,i,l){if(i==="")return null;for(;a.nodeType!==3;)if((a.nodeType!==1||a.nodeName!=="INPUT"||a.type!=="hidden")&&!l||(a=ta(a.nextSibling),a===null))return null;return a}function O3(a,i){for(;a.nodeType!==8;)if((a.nodeType!==1||a.nodeName!=="INPUT"||a.type!=="hidden")&&!i||(a=ta(a.nextSibling),a===null))return null;return a}function NN(a){return a.data===Zs||a.data===sc}function wN(a){return a.data===od||a.data===Zs&&a.ownerDocument.readyState!==pI}function XY(a,i){var l=a.ownerDocument;if(a.data===sc)a._reactRetry=i;else if(a.data!==Zs||l.readyState!==pI)i();else{var d=function(){i(),l.removeEventListener("DOMContentLoaded",d)};l.addEventListener("DOMContentLoaded",d),a._reactRetry=d}}function ta(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===od||i===Zs||i===sc||i===oc||i===Jw||i===hI)break;if(i===Jm||i===tb)return null}}return a}function D3(a){if(a.nodeType===1){for(var i=a.nodeName.toLowerCase(),l={},d=a.attributes,p=0;p<d.length;p++){var v=d[p];l[h3(v.name)]=v.name.toLowerCase()==="style"?gN(a):v.value}return{type:i,props:l}}return a.nodeType===8?a.data===oc?{type:"Activity",props:{}}:{type:"Suspense",props:{}}:a.nodeValue}function C3(a,i,l){return l===null||l[GX]!==!0?(a.nodeValue===i?a=null:(i=Cs(i),a=Cs(a.nodeValue)===i?null:a.nodeValue),a):null}function EN(a){a=a.nextSibling;for(var i=0;a;){if(a.nodeType===8){var l=a.data;if(l===Jm||l===tb){if(i===0)return ta(a.nextSibling);i--}else l!==Zm&&l!==od&&l!==Zs&&l!==sc&&l!==oc||i++}a=a.nextSibling}return null}function T3(a){a=a.previousSibling;for(var i=0;a;){if(a.nodeType===8){var l=a.data;if(l===Zm||l===od||l===Zs||l===sc||l===oc){if(i===0)return a;i--}else l!==Jm&&l!==tb||i++}a=a.previousSibling}return null}function WY(a){Au(a)}function ZY(a){Au(a)}function JY(a){Au(a)}function _3(a,i,l,d,p){switch(p&&P0(a,d.ancestorInfo),i=Yg(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 eQ(a,i,l,d){if(!l[Ps]&&De(l)){var p=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.",p,p,p)}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(p=l.attributes;p.length;)l.removeAttributeNode(p[0]);er(l,a,i),l[tr]=d,l[wr]=i}function om(a){for(var i=a.attributes;i.length;)a.removeAttributeNode(i[0]);ue(a)}function Qg(a){return typeof a.getRootNode=="function"?a.getRootNode():a.nodeType===9?a:a.ownerDocument}function j3(a,i,l){var d=ld;if(d&&typeof i=="string"&&i){var p=ya(i);p='link[rel="'+a+'"][href="'+p+'"]',typeof l=="string"&&(p+='[crossorigin="'+l+'"]'),NI.has(p)||(NI.add(p),a={rel:a,crossOrigin:l,href:i},d.querySelector(p)===null&&(i=d.createElement("link"),er(i,"link",a),Se(i),d.head.appendChild(i)))}}function R3(a,i,l,d){var p=(p=js.current)?Qg(p):null;if(!p)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=Eu(l.href),i=Je(p).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=Eu(l.href);var v=Je(p).hoistableStyles,E=v.get(a);if(!E&&(p=p.ownerDocument||p,E={type:"stylesheet",instance:null,count:0,state:{loading:cc,preload:null}},v.set(a,E),(v=p.querySelector(sm(a)))&&!v._p&&(E.instance=v,E.state.loading=th|Ra),!Pa.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};Pa.set(a,O),v||tQ(p,a,O,E.state)}if(i&&d===null)throw l=`
|
||
|
||
- `+Xg(i)+`
|
||
+ `+Xg(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=`
|
||
|
||
- `+Xg(i)+`
|
||
+ `+Xg(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=Su(l),i=Je(p).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 Xg(a){var i=0,l="<link";return typeof a.rel=="string"?(i++,l+=' rel="'+a.rel+'"'):Xa.call(a,"rel")&&(i++,l+=' rel="'+(a.rel===null?"null":"invalid type "+typeof a.rel)+'"'),typeof a.href=="string"?(i++,l+=' href="'+a.href+'"'):Xa.call(a,"href")&&(i++,l+=' href="'+(a.href===null?"null":"invalid type "+typeof a.href)+'"'),typeof a.precedence=="string"?(i++,l+=' precedence="'+a.precedence+'"'):Xa.call(a,"precedence")&&(i++,l+=" precedence={"+(a.precedence===null?"null":"invalid type "+typeof a.precedence)+"}"),Object.getOwnPropertyNames(a).length>i&&(l+=" ..."),l+" />"}function Eu(a){return'href="'+ya(a)+'"'}function sm(a){return'link[rel="stylesheet"]['+a+"]"}function P3(a){return mt({},a,{"data-precedence":a.precedence,precedence:null})}function tQ(a,i,l,d){a.querySelector('link[rel="preload"][as="style"]['+i+"]")?d.loading=th:(i=a.createElement("link"),d.preload=i,i.addEventListener("load",function(){return d.loading|=th}),i.addEventListener("error",function(){return d.loading|=yI}),er(i,"link",l),Se(i),a.head.appendChild(i))}function Su(a){return'[src="'+ya(a)+'"]'}function lm(a){return"script[async]"+a}function M3(a,i,l){if(i.count++,i.instance===null)switch(i.type){case"style":var d=a.querySelector('style[data-href~="'+ya(l.href)+'"]');if(d)return i.instance=d,Se(d),d;var p=mt({},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",p),Wg(d,l.precedence,a),i.instance=d;case"stylesheet":p=Eu(l.href);var v=a.querySelector(sm(p));if(v)return i.state.loading|=Ra,i.instance=v,Se(v),v;d=P3(l),(p=Pa.get(p))&&SN(d,p),v=(a.ownerDocument||a).createElement("link"),Se(v);var E=v;return E._p=new Promise(function(O,k){E.onload=O,E.onerror=k}),er(v,"link",d),i.state.loading|=Ra,Wg(v,l.precedence,a),i.instance=v;case"script":return v=Su(l.src),(p=a.querySelector(lm(v)))?(i.instance=p,Se(p),p):(d=l,(p=Pa.get(v))&&(d=mt({},l),AN(d,p)),a=a.ownerDocument||a,p=a.createElement("script"),Se(p),er(p,"link",d),a.head.appendChild(p),i.instance=p);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&Ra)===cc&&(d=i.instance,i.state.loading|=Ra,Wg(d,l.precedence,a));return i.instance}function Wg(a,i,l){for(var d=l.querySelectorAll('link[rel="stylesheet"][data-precedence],style[data-precedence]'),p=d.length?d[d.length-1]:null,v=p,E=0;E<d.length;E++){var O=d[E];if(O.dataset.precedence===i)v=O;else if(v!==p)break}v?v.parentNode.insertBefore(a,v.nextSibling):(i=l.nodeType===9?l.head:l,i.insertBefore(a,i.firstChild))}function SN(a,i){a.crossOrigin==null&&(a.crossOrigin=i.crossOrigin),a.referrerPolicy==null&&(a.referrerPolicy=i.referrerPolicy),a.title==null&&(a.title=i.title)}function AN(a,i){a.crossOrigin==null&&(a.crossOrigin=i.crossOrigin),a.referrerPolicy==null&&(a.referrerPolicy=i.referrerPolicy),a.integrity==null&&(a.integrity=i.integrity)}function k3(a,i,l){if(rb===null){var d=new Map,p=rb=new Map;p.set(l,d)}else p=rb,d=p.get(l),d||(d=new Map,p.set(l,d));if(d.has(a))return d;for(d.set(a,null),l=l.getElementsByTagName(a),p=0;p<l.length;p++){var v=l[p];if(!(v[mm]||v[tr]||a==="link"&&v.getAttribute("rel")==="stylesheet")&&v.namespaceURI!==ju){var E=v.getAttribute(i)||"";E=a+E;var O=d.get(E);O?O.push(v):d.set(E,[v])}}return d}function I3(a,i,l){a=a.ownerDocument||a,a.head.insertBefore(l,i==="title"?a.querySelector("head > title"):null)}function nQ(a,i,l){var d=!l.ancestorInfo.containerTagInScope;if(l.context===sd||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 p=i.onError,v=i.disabled;l=[],i.onLoad&&l.push("`onLoad`"),p&&l.push("`onError`"),v!=null&&l.push("`disabled`"),p=RY(l,"and"),p+=l.length===1?" prop":" props",v=l.length===1?"an "+p:"the "+p,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,p)}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 L3(a){return!(a.type==="stylesheet"&&(a.state.loading&xI)===cc)}function rQ(a,i,l,d){if(l.type==="stylesheet"&&(typeof d.media!="string"||matchMedia(d.media).matches!==!1)&&(l.state.loading&Ra)===cc){if(l.instance===null){var p=Eu(d.href),v=i.querySelector(sm(p));if(v){i=v._p,i!==null&&typeof i=="object"&&typeof i.then=="function"&&(a.count++,a=Zg.bind(a),i.then(a,a)),l.state.loading|=Ra,l.instance=v,Se(v);return}v=i.ownerDocument||i,d=P3(d),(p=Pa.get(p))&&SN(d,p),v=v.createElement("link"),Se(v);var E=v;E._p=new Promise(function(O,k){E.onload=O,E.onerror=k}),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&xI)===cc&&(a.count++,l=Zg.bind(a),i.addEventListener("load",l),i.addEventListener("error",l))}}function aQ(a,i){return a.stylesheets&&a.count===0&&Jg(a,a.stylesheets),0<a.count||0<a.imgCount?function(l){var d=setTimeout(function(){if(a.stylesheets&&Jg(a,a.stylesheets),a.unsuspend){var v=a.unsuspend;a.unsuspend=null,v()}},eW+i);0<a.imgBytes&&aE===0&&(aE=125*PY()*nW);var p=setTimeout(function(){if(a.waitingForImages=!1,a.count===0&&(a.stylesheets&&Jg(a,a.stylesheets),a.unsuspend)){var v=a.unsuspend;a.unsuspend=null,v()}},(a.imgBytes>aE?50:tW)+i);return a.unsuspend=l,function(){a.unsuspend=null,clearTimeout(d),clearTimeout(p)}}:null}function Zg(){if(this.count--,this.count===0&&(this.imgCount===0||!this.waitingForImages)){if(this.stylesheets)Jg(this,this.stylesheets);else if(this.unsuspend){var a=this.unsuspend;this.unsuspend=null,a()}}}function Jg(a,i){a.stylesheets=null,a.unsuspend!==null&&(a.count++,ab=new Map,i.forEach(iQ,a),ab=null,Zg.call(a))}function iQ(a,i){if(!(i.state.loading&Ra)){var l=ab.get(a);if(l)var d=l.get(iE);else{l=new Map,ab.set(a,l);for(var p=a.querySelectorAll("link[data-precedence],style[data-precedence]"),v=0;v<p.length;v++){var E=p[v];(E.nodeName==="LINK"||E.getAttribute("media")!=="not all")&&(l.set(E.dataset.precedence,E),d=E)}d&&l.set(iE,d)}p=i.instance,E=p.getAttribute("data-precedence"),v=l.get(E)||d,v===d&&l.set(iE,p),l.set(E,p),this.count++,d=Zg.bind(this),p.addEventListener("load",d),p.addEventListener("error",d),v?v.parentNode.insertBefore(p,v.nextSibling):(a=a.nodeType===9?a.head:a,a.insertBefore(p,a.firstChild)),i.state.loading|=Ra}}function oQ(a,i,l,d,p,v,E,O,k){for(this.tag=1,this.containerInfo=a,this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=lc,this.callbackNode=this.next=this.pendingContext=this.context=this.cancelPendingCommit=null,this.callbackPriority=0,this.expirationTimes=bi(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=bi(0),this.hiddenUpdates=bi(null),this.identifierPrefix=d,this.onUncaughtError=p,this.onCaughtError=v,this.onRecoverableError=E,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=k,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 V3(a,i,l,d,p,v,E,O,k,L,oe,se){return a=new oQ(a,i,l,E,k,L,oe,se,O),i=OX,v===!0&&(i|=lr|Wa),i|=st,v=y(3,null,null,i),a.current=v,v.stateNode=a,i=J0(),Ml(i),a.pooledCache=i,Ml(i),v.memoizedState={element:d,isDehydrated:l,cache:i},a1(v),a}function $3(a){return a?(a=Ls,a):Ls}function ON(a,i,l,d,p,v){if(sr&&typeof sr.onScheduleFiberRoot=="function")try{sr.onScheduleFiberRoot(Tu,d,l)}catch(E){Bi||(Bi=!0,console.error("React instrumentation encountered an error: %o",E))}p=$3(p),d.context===null?d.context=p:d.pendingContext=p,$i&&ra!==null&&!AI&&(AI=!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.`,z(ra)||"Unknown")),d=ws(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=Es(a,d,i),l!==null&&(Si(i,"root.render()",null),cn(l,a,i),Uf(l,a,i))}function B3(a,i){if(a=a.memoizedState,a!==null&&a.dehydrated!==null){var l=a.retryLane;a.retryLane=l!==0&&l<i?l:i}}function DN(a,i){B3(a,i),(a=a.alternate)&&B3(a,i)}function z3(a){if(a.tag===13||a.tag===31){var i=or(a,67108864);i!==null&&cn(i,a,67108864),DN(a,67108864)}}function U3(a){if(a.tag===13||a.tag===31){var i=ea(a);i=yi(i);var l=or(a,i);l!==null&&cn(l,a,i),DN(a,i)}}function sQ(){return ra}function lQ(a,i,l,d){var p=pe.T;pe.T=null;var v=Pt.p;try{Pt.p=Na,CN(a,i,l,d)}finally{Pt.p=v,pe.T=p}}function cQ(a,i,l,d){var p=pe.T;pe.T=null;var v=Pt.p;try{Pt.p=Ui,CN(a,i,l,d)}finally{Pt.p=v,pe.T=p}}function CN(a,i,l,d){if(ob){var p=TN(d);if(p===null)mN(a,i,d,sb,l),H3(a,d);else if(uQ(p,a,i,l,d))d.stopPropagation();else if(H3(a,d),i&4&&-1<aW.indexOf(a)){for(;p!==null;){var v=De(p);if(v!==null)switch(v.tag){case 3:if(v=v.stateNode,v.current.memoizedState.isDehydrated){var E=St(v.pendingLanes);if(E!==0){var O=v;for(O.pendingLanes|=2,O.entangledLanes|=2;E;){var k=1<<31-Nr(E);O.entanglements[1]|=k,E&=~k}ki(v),(Et&(Mn|sa))===Yn&&(qv=Fn()+Jk,nm(0))}}break;case 31:case 13:O=or(v,2),O!==null&&cn(O,v,2),xu(),DN(v,2)}if(v=TN(d),v===null&&mN(a,i,d,sb,l),v===p)break;p=v}p!==null&&d.stopPropagation()}else mN(a,i,d,null,l)}}function TN(a){return a=M0(a),_N(a)}function _N(a){if(sb=null,a=Ee(a),a!==null){var i=D(a);if(i===null)a=null;else{var l=i.tag;if(l===13){if(a=C(i),a!==null)return a;a=null}else if(l===31){if(a=j(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 sb=a,null}function q3(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 Na;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 Ui;case"message":switch(xQ()){case HN:return Na;case FN:return Ui;case Cu:case NQ:return Ro;case KN:return cv;default:return Ro}default:return Ro}}function H3(a,i){switch(a){case"focusin":case"focusout":Js=null;break;case"dragenter":case"dragleave":el=null;break;case"mouseover":case"mouseout":tl=null;break;case"pointerover":case"pointerout":rh.delete(i.pointerId);break;case"gotpointercapture":case"lostpointercapture":ah.delete(i.pointerId)}}function cm(a,i,l,d,p,v){return a===null||a.nativeEvent!==v?(a={blockedOn:i,domEventName:l,eventSystemFlags:d,nativeEvent:v,targetContainers:[p]},i!==null&&(i=De(i),i!==null&&z3(i)),a):(a.eventSystemFlags|=d,i=a.targetContainers,p!==null&&i.indexOf(p)===-1&&i.push(p),a)}function uQ(a,i,l,d,p){switch(i){case"focusin":return Js=cm(Js,a,i,l,d,p),!0;case"dragenter":return el=cm(el,a,i,l,d,p),!0;case"mouseover":return tl=cm(tl,a,i,l,d,p),!0;case"pointerover":var v=p.pointerId;return rh.set(v,cm(rh.get(v)||null,a,i,l,d,p)),!0;case"gotpointercapture":return v=p.pointerId,ah.set(v,cm(ah.get(v)||null,a,i,l,d,p)),!0}return!1}function F3(a){var i=Ee(a.target);if(i!==null){var l=D(i);if(l!==null){if(i=l.tag,i===13){if(i=C(l),i!==null){a.blockedOn=i,B(a.priority,function(){U3(l)});return}}else if(i===31){if(i=j(l),i!==null){a.blockedOn=i,B(a.priority,function(){U3(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 ev(a){if(a.blockedOn!==null)return!1;for(var i=a.targetContainers;0<i.length;){var l=TN(a.nativeEvent);if(l===null){l=a.nativeEvent;var d=new l.constructor(l.type,l),p=d;hm!==null&&console.error("Expected currently replaying event to be null. This error is likely caused by a bug in React. Please file an issue."),hm=p,l.target.dispatchEvent(d),hm===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."),hm=null}else return i=De(l),i!==null&&z3(i),a.blockedOn=l,!1;i.shift()}return!0}function K3(a,i,l){ev(a)&&l.delete(i)}function dQ(){oE=!1,Js!==null&&ev(Js)&&(Js=null),el!==null&&ev(el)&&(el=null),tl!==null&&ev(tl)&&(tl=null),rh.forEach(K3),ah.forEach(K3)}function tv(a,i){a.blockedOn===i&&(a.blockedOn=null,oE||(oE=!0,Nn.unstable_scheduleCallback(Nn.unstable_NormalPriority,dQ)))}function G3(a){lb!==a&&(lb=a,Nn.unstable_scheduleCallback(Nn.unstable_NormalPriority,function(){lb===a&&(lb=null);for(var i=0;i<a.length;i+=3){var l=a[i],d=a[i+1],p=a[i+2];if(typeof d!="function"){if(_N(d||l)===null)continue;break}var v=De(l);v!==null&&(a.splice(i,3),i-=3,l={pending:!0,data:p,method:l.method,action:d},Object.freeze(l),_1(v,l,d,p))}}))}function Au(a){function i(k){return tv(k,a)}Js!==null&&tv(Js,a),el!==null&&tv(el,a),tl!==null&&tv(tl,a),rh.forEach(i),ah.forEach(i);for(var l=0;l<nl.length;l++){var d=nl[l];d.blockedOn===a&&(d.blockedOn=null)}for(;0<nl.length&&(l=nl[0],l.blockedOn===null);)F3(l),l.blockedOn===null&&nl.shift();if(l=(a.ownerDocument||a).$$reactFormReplay,l!=null)for(d=0;d<l.length;d+=3){var p=l[d],v=l[d+1],E=p[wr]||null;if(typeof v=="function")E||G3(l);else if(E){var O=null;if(v&&v.hasAttribute("formAction")){if(p=v,E=v[wr]||null)O=E.formAction;else if(_N(p)!==null)continue}else O=E.action;typeof O=="function"?l[d+1]=O:(l.splice(d,3),d-=3),G3(l)}}}function Y3(){function a(v){v.canIntercept&&v.info==="react-transition"&&v.intercept({handler:function(){return new Promise(function(E){return p=E})},focusReset:"manual",scroll:"manual"})}function i(){p!==null&&(p(),p=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,p=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),p!==null&&(p(),p=null)}}}function jN(a){this._internalRoot=a}function nv(a){this._internalRoot=a}function Q3(a){a[Ps]&&(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 Nn=Cee(),RN=df(),fQ=T9(),mt=Object.assign,mQ=Symbol.for("react.element"),Li=Symbol.for("react.transitional.element"),Ou=Symbol.for("react.portal"),Du=Symbol.for("react.fragment"),rv=Symbol.for("react.strict_mode"),PN=Symbol.for("react.profiler"),MN=Symbol.for("react.consumer"),Vi=Symbol.for("react.context"),um=Symbol.for("react.forward_ref"),kN=Symbol.for("react.suspense"),IN=Symbol.for("react.suspense_list"),av=Symbol.for("react.memo"),na=Symbol.for("react.lazy"),LN=Symbol.for("react.activity"),hQ=Symbol.for("react.memo_cache_sentinel"),X3=Symbol.iterator,pQ=Symbol.for("react.client.reference"),Rn=Array.isArray,pe=RN.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,Pt=fQ.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,gQ=Object.freeze({pending:!1,data:null,method:null,action:null}),VN=[],$N=[],jo=-1,_s=U(null),dm=U(null),js=U(null),iv=U(null),fm=0,W3,Z3,J3,e5,t5,n5,r5;te.__reactDisabledLog=!0;var BN,a5,zN=!1,UN=new(typeof WeakMap=="function"?WeakMap:Map),ra=null,$i=!1,Xa=Object.prototype.hasOwnProperty,qN=Nn.unstable_scheduleCallback,vQ=Nn.unstable_cancelCallback,bQ=Nn.unstable_shouldYield,yQ=Nn.unstable_requestPaint,Fn=Nn.unstable_now,xQ=Nn.unstable_getCurrentPriorityLevel,HN=Nn.unstable_ImmediatePriority,FN=Nn.unstable_UserBlockingPriority,Cu=Nn.unstable_NormalPriority,NQ=Nn.unstable_LowPriority,KN=Nn.unstable_IdlePriority,wQ=Nn.log,EQ=Nn.unstable_setDisableYieldValue,Tu=null,sr=null,Bi=!1,zi=typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u",Nr=Math.clz32?Math.clz32:ir,SQ=Math.log,AQ=Math.LN2,ov=256,sv=262144,lv=4194304,Na=2,Ui=8,Ro=32,cv=268435456,Rs=Math.random().toString(36).slice(2),tr="__reactFiber$"+Rs,wr="__reactProps$"+Rs,Ps="__reactContainer$"+Rs,GN="__reactEvents$"+Rs,OQ="__reactListeners$"+Rs,DQ="__reactHandles$"+Rs,i5="__reactResources$"+Rs,mm="__reactMarker$"+Rs,o5=new Set,zl={},YN={},CQ={button:!0,checkbox:!0,image:!0,hidden:!0,radio:!0,reset:!0,submit:!0},TQ=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]*$"),s5={},l5={},_Q=/[\n"\\]/g,c5=!1,u5=!1,d5=!1,f5=!1,m5=!1,h5=!1,p5=["value","defaultValue"],g5=!1,v5=/["'&<>\n\t]|^\s|\s$/,jQ="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(" "),b5="applet caption html table td th marquee object template foreignObject desc title".split(" "),RQ=b5.concat(["button"]),PQ="dd dt li option optgroup p rp rt".split(" "),y5={current:null,formTag:null,aTagInScope:null,buttonTagInScope:null,nobrTagInScope:null,pTagInButtonScope:null,listItemTagAutoclosing:null,dlItemTagAutoclosing:null,containerTagInScope:null,implicitRootScope:!1},uv={},QN={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"]},x5=/([A-Z])/g,N5=/^ms-/,MQ=/^(?:webkit|moz|o)[A-Z]/,kQ=/^-ms-/,IQ=/-(.)/g,w5=/;\s*$/,_u={},XN={},E5=!1,S5=!1,A5=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(" ")),dv="http://www.w3.org/1998/Math/MathML",ju="http://www.w3.org/2000/svg",LQ=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"]]),fv={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"},O5={"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},Ru={},VQ=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]*$"),$Q=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]*$"),D5=!1,Er={},C5=/^on./,BQ=/^on[^A-Z]/,zQ=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]*$"),UQ=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]*$"),qQ=/^[\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,hm=null,Pu=null,Mu=null,WN=!1,qi=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),ZN=!1;if(qi)try{var pm={};Object.defineProperty(pm,"passive",{get:function(){ZN=!0}}),window.addEventListener("test",pm,pm),window.removeEventListener("test",pm,pm)}catch{ZN=!1}var Ms=null,JN=null,mv=null,Ul={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(a){return a.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},hv=Lr(Ul),gm=mt({},Ul,{view:0,detail:0}),HQ=Lr(gm),ew,tw,vm,pv=mt({},gm,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:k0,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!==vm&&(vm&&a.type==="mousemove"?(ew=a.screenX-vm.screenX,tw=a.screenY-vm.screenY):tw=ew=0,vm=a),ew)},movementY:function(a){return"movementY"in a?a.movementY:tw}}),T5=Lr(pv),FQ=mt({},pv,{dataTransfer:0}),KQ=Lr(FQ),GQ=mt({},gm,{relatedTarget:0}),nw=Lr(GQ),YQ=mt({},Ul,{animationName:0,elapsedTime:0,pseudoElement:0}),QQ=Lr(YQ),XQ=mt({},Ul,{clipboardData:function(a){return"clipboardData"in a?a.clipboardData:window.clipboardData}}),WQ=Lr(XQ),ZQ=mt({},Ul,{data:0}),_5=Lr(ZQ),JQ=_5,eX={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},tX={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"},nX={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"},rX=mt({},gm,{key:function(a){if(a.key){var i=eX[a.key]||a.key;if(i!=="Unidentified")return i}return a.type==="keypress"?(a=eg(a),a===13?"Enter":String.fromCharCode(a)):a.type==="keydown"||a.type==="keyup"?tX[a.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:k0,charCode:function(a){return a.type==="keypress"?eg(a):0},keyCode:function(a){return a.type==="keydown"||a.type==="keyup"?a.keyCode:0},which:function(a){return a.type==="keypress"?eg(a):a.type==="keydown"||a.type==="keyup"?a.keyCode:0}}),aX=Lr(rX),iX=mt({},pv,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),j5=Lr(iX),oX=mt({},gm,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:k0}),sX=Lr(oX),lX=mt({},Ul,{propertyName:0,elapsedTime:0,pseudoElement:0}),cX=Lr(lX),uX=mt({},pv,{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}),dX=Lr(uX),fX=mt({},Ul,{newState:0,oldState:0}),mX=Lr(fX),hX=[9,13,27,32],R5=229,rw=qi&&"CompositionEvent"in window,bm=null;qi&&"documentMode"in document&&(bm=document.documentMode);var pX=qi&&"TextEvent"in window&&!bm,P5=qi&&(!rw||bm&&8<bm&&11>=bm),M5=32,k5=String.fromCharCode(M5),I5=!1,ku=!1,gX={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},ym=null,xm=null,L5=!1;qi&&(L5=IG("input")&&(!document.documentMode||9<document.documentMode));var Sr=typeof Object.is=="function"?Object.is:UG,vX=qi&&"documentMode"in document&&11>=document.documentMode,Iu=null,aw=null,Nm=null,iw=!1,Lu={animationend:Dl("Animation","AnimationEnd"),animationiteration:Dl("Animation","AnimationIteration"),animationstart:Dl("Animation","AnimationStart"),transitionrun:Dl("Transition","TransitionRun"),transitionstart:Dl("Transition","TransitionStart"),transitioncancel:Dl("Transition","TransitionCancel"),transitionend:Dl("Transition","TransitionEnd")},ow={},V5={};qi&&(V5=document.createElement("div").style,"AnimationEvent"in window||(delete Lu.animationend.animation,delete Lu.animationiteration.animation,delete Lu.animationstart.animation),"TransitionEvent"in window||delete Lu.transitionend.transition);var $5=Cl("animationend"),B5=Cl("animationiteration"),z5=Cl("animationstart"),bX=Cl("transitionrun"),yX=Cl("transitionstart"),xX=Cl("transitioncancel"),U5=Cl("transitionend"),q5=new Map,sw="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(" ");sw.push("scrollEnd");var H5=0;if(typeof performance=="object"&&typeof performance.now=="function")var NX=performance,F5=function(){return NX.now()};else{var wX=Date;F5=function(){return wX.now()}}var lw=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)},EX="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.",gv=0,cw=1,uw=2,dw=3,vv="– ",bv="+ ",K5=" ",Qt=typeof console<"u"&&typeof console.timeStamp=="function"&&typeof performance<"u"&&typeof performance.measure=="function",wa="Components ⚛",yt="Scheduler ⚛",Nt="Blocking",ks=!1,Po={color:"primary",properties:null,tooltipText:"",track:wa},Is={start:-0,end:-0,detail:{devtools:Po}},SX=["Changed Props",""],G5="This component received deeply equal props. It might benefit from useMemo or the React Compiler in its owner.",AX=["Changed Props",G5],wm=1,Mo=2,Ea=[],Vu=0,fw=0,Ls={};Object.freeze(Ls);var Sa=null,$u=null,Ye=0,OX=1,st=2,lr=8,Wa=16,DX=32,Y5=!1;try{var Q5=Object.preventExtensions({})}catch{Y5=!0}var mw=new WeakMap,Bu=[],zu=0,yv=null,Em=0,Aa=[],Oa=0,ql=null,ko=1,Io="",nr=null,Xt=null,pt=!1,Hi=!1,aa=null,Vs=null,Da=!1,hw=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."),pw=U(null),gw=U(null),X5={},xv=null,Uu=null,qu=!1,CX=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()})}},TX=Nn.unstable_scheduleCallback,_X=Nn.unstable_NormalPriority,wn={$$typeof:Vi,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0,_currentRenderer:null,_currentRenderer2:null},En=Nn.unstable_now,Nv=console.createTask?console.createTask:function(){return null},Sm=1,wv=2,Kn=-0,$s=-0,Lo=-0,Vo=null,Ar=-1.1,Hl=-0,on=-0,qe=-1.1,Ge=-1.1,nn=null,un=!1,Fl=-0,Fi=-1.1,Am=null,Bs=0,vw=null,bw=null,Kl=-1.1,Om=null,Hu=-1.1,Ev=-1.1,$o=-0,Bo=-1.1,Ca=-1.1,yw=0,Dm=null,W5=null,Z5=null,zs=-1.1,Gl=null,Us=-1.1,Sv=-1.1,J5=-0,ek=-0,Av=0,jX=null,tk=0,Cm=-1.1,Ov=!1,Dv=!1,Tm=null,xw=0,Yl=0,Fu=null,nk=pe.S;pe.S=function(a,i){if(Wk=Fn(),typeof i=="object"&&i!==null&&typeof i.then=="function"){if(0>Bo&&0>Ca){Bo=En();var l=im(),d=am();(l!==Us||d!==Gl)&&(Us=-1.1),zs=l,Gl=d}QG(a,i)}nk!==null&&nk(a,i)};var Ql=U(null),Za={recordUnsafeLifecycleWarnings:function(){},flushPendingUnsafeLifecycleWarnings:function(){},recordLegacyContextWarning:function(){},flushLegacyContextWarning:function(){},discardPendingWarnings:function(){}},_m=[],jm=[],Rm=[],Pm=[],Mm=[],km=[],Xl=new Set;Za.recordUnsafeLifecycleWarnings=function(a,i){Xl.has(a.type)||(typeof i.componentWillMount=="function"&&i.componentWillMount.__suppressDeprecationWarning!==!0&&_m.push(a),a.mode&lr&&typeof i.UNSAFE_componentWillMount=="function"&&jm.push(a),typeof i.componentWillReceiveProps=="function"&&i.componentWillReceiveProps.__suppressDeprecationWarning!==!0&&Rm.push(a),a.mode&lr&&typeof i.UNSAFE_componentWillReceiveProps=="function"&&Pm.push(a),typeof i.componentWillUpdate=="function"&&i.componentWillUpdate.__suppressDeprecationWarning!==!0&&Mm.push(a),a.mode&lr&&typeof i.UNSAFE_componentWillUpdate=="function"&&km.push(a))},Za.flushPendingUnsafeLifecycleWarnings=function(){var a=new Set;0<_m.length&&(_m.forEach(function(O){a.add(z(O)||"Component"),Xl.add(O.type)}),_m=[]);var i=new Set;0<jm.length&&(jm.forEach(function(O){i.add(z(O)||"Component"),Xl.add(O.type)}),jm=[]);var l=new Set;0<Rm.length&&(Rm.forEach(function(O){l.add(z(O)||"Component"),Xl.add(O.type)}),Rm=[]);var d=new Set;0<Pm.length&&(Pm.forEach(function(O){d.add(z(O)||"Component"),Xl.add(O.type)}),Pm=[]);var p=new Set;0<Mm.length&&(Mm.forEach(function(O){p.add(z(O)||"Component"),Xl.add(O.type)}),Mm=[]);var v=new Set;if(0<km.length&&(km.forEach(function(O){v.add(z(O)||"Component"),Xl.add(O.type)}),km=[]),0<i.size){var E=h(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=h(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=h(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=h(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=h(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<p.size&&(E=h(p),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 Cv=new Map,rk=new Set;Za.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."):!rk.has(a.type)&&(d=Cv.get(l),a.type.contextTypes!=null||a.type.childContextTypes!=null||i!==null&&typeof i.getChildContext=="function")&&(d===void 0&&(d=[],Cv.set(l,d)),d.push(a))},Za.flushLegacyContextWarning=function(){Cv.forEach(function(a){if(a.length!==0){var i=a[0],l=new Set;a.forEach(function(p){l.add(z(p)||"Component"),rk.add(p.type)});var d=h(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)})}})},Za.discardPendingWarnings=function(){_m=[],jm=[],Rm=[],Pm=[],Mm=[],km=[],Cv=new Map};var ak={react_stack_bottom_frame:function(a,i,l){var d=$i;$i=!0;try{return a(i,l)}finally{$i=d}}},Nw=ak.react_stack_bottom_frame.bind(ak),ik={react_stack_bottom_frame:function(a){var i=$i;$i=!0;try{return a.render()}finally{$i=i}}},ok=ik.react_stack_bottom_frame.bind(ik),sk={react_stack_bottom_frame:function(a,i){try{i.componentDidMount()}catch(l){Rt(a,a.return,l)}}},ww=sk.react_stack_bottom_frame.bind(sk),lk={react_stack_bottom_frame:function(a,i,l,d,p){try{i.componentDidUpdate(l,d,p)}catch(v){Rt(a,a.return,v)}}},ck=lk.react_stack_bottom_frame.bind(lk),uk={react_stack_bottom_frame:function(a,i){var l=i.stack;a.componentDidCatch(i.value,{componentStack:l!==null?l:""})}},RX=uk.react_stack_bottom_frame.bind(uk),dk={react_stack_bottom_frame:function(a,i,l){try{l.componentWillUnmount()}catch(d){Rt(a,i,d)}}},fk=dk.react_stack_bottom_frame.bind(dk),mk={react_stack_bottom_frame:function(a){var i=a.create;return a=a.inst,i=i(),a.destroy=i}},PX=mk.react_stack_bottom_frame.bind(mk),hk={react_stack_bottom_frame:function(a,i,l){try{l()}catch(d){Rt(a,i,d)}}},MX=hk.react_stack_bottom_frame.bind(hk),pk={react_stack_bottom_frame:function(a){var i=a._init;return i(a._payload)}},kX=pk.react_stack_bottom_frame.bind(pk),Ku=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`."),Ew=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."),Tv=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."),_v={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.')}},Wl=null,Im=!1,Gu=null,Lm=0,lt=null,Sw,gk=Sw=!1,vk={},bk={},yk={};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=z(a),p=d||"null";if(!vk[p]){vk[p]=!0,l=l._owner,a=a._debugOwner;var v="";a&&typeof a.tag=="number"&&(p=z(a))&&(v=`
|
||
|
||
Check the render method of \``+p+"`."),v||d&&(v=`
|
||
|
||
Check the top-level render call using <`+d+">.");var E="";l!=null&&a!==l&&(d=null,typeof l.tag=="number"?d=z(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 Zl=dP(!0),xk=dP(!1),Nk=0,wk=1,Ek=2,Aw=3,qs=!1,Sk=!1,Ow=null,Dw=!1,Yu=U(null),jv=U(0),ia=U(null),Ta=null,Qu=1,Vm=2,vn=U(0),Rv=0,_a=1,Or=2,oa=4,Dr=8,Xu,Ak=new Set,Ok=new Set,Cw=new Set,Dk=new Set,zo=0,We=null,qt=null,Sn=null,Pv=!1,Wu=!1,Jl=!1,Mv=0,$m=0,Uo=null,IX=0,LX=25,he=null,ja=null,qo=-1,Bm=!1,zm={readContext:tn,use:Os,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};zm.useEffectEvent=fn;var Tw=null,Ck=null,_w=null,Tk=null,Ki=null,Ja=null,kv=null;Tw={readContext:function(a){return tn(a)},use:Os,useCallback:function(a,i){return he="useCallback",ft(),mu(i),O1(a,i)},useContext:function(a){return he="useContext",ft(),tn(a)},useEffect:function(a,i){return he="useEffect",ft(),mu(i),Cg(a,i)},useImperativeHandle:function(a,i,l){return he="useImperativeHandle",ft(),mu(l),A1(a,i,l)},useInsertionEffect:function(a,i){he="useInsertionEffect",ft(),mu(i),Il(4,Or,a,i)},useLayoutEffect:function(a,i){return he="useLayoutEffect",ft(),mu(i),S1(a,i)},useMemo:function(a,i){he="useMemo",ft(),mu(i);var l=pe.H;pe.H=Ki;try{return D1(a,i)}finally{pe.H=l}},useReducer:function(a,i,l){he="useReducer",ft();var d=pe.H;pe.H=Ki;try{return p1(a,i,l)}finally{pe.H=d}},useRef:function(a){return he="useRef",ft(),w1(a)},useState:function(a){he="useState",ft();var i=pe.H;pe.H=Ki;try{return y1(a)}finally{pe.H=i}},useDebugValue:function(){he="useDebugValue",ft()},useDeferredValue:function(a,i){return he="useDeferredValue",ft(),C1(a,i)},useTransition:function(){return he="useTransition",ft(),j1()},useSyncExternalStore:function(a,i,l){return he="useSyncExternalStore",ft(),v1(a,i,l)},useId:function(){return he="useId",ft(),R1()},useFormState:function(a,i){return he="useFormState",ft(),Eg(),pu(a,i)},useActionState:function(a,i){return he="useActionState",ft(),pu(a,i)},useOptimistic:function(a){return he="useOptimistic",ft(),x1(a)},useHostTransitionStatus:Ll,useMemoCache:kl,useCacheRefresh:function(){return he="useCacheRefresh",ft(),P1()},useEffectEvent:function(a){return he="useEffectEvent",ft(),E1(a)}},Ck={readContext:function(a){return tn(a)},use:Os,useCallback:function(a,i){return he="useCallback",Ae(),O1(a,i)},useContext:function(a){return he="useContext",Ae(),tn(a)},useEffect:function(a,i){return he="useEffect",Ae(),Cg(a,i)},useImperativeHandle:function(a,i,l){return he="useImperativeHandle",Ae(),A1(a,i,l)},useInsertionEffect:function(a,i){he="useInsertionEffect",Ae(),Il(4,Or,a,i)},useLayoutEffect:function(a,i){return he="useLayoutEffect",Ae(),S1(a,i)},useMemo:function(a,i){he="useMemo",Ae();var l=pe.H;pe.H=Ki;try{return D1(a,i)}finally{pe.H=l}},useReducer:function(a,i,l){he="useReducer",Ae();var d=pe.H;pe.H=Ki;try{return p1(a,i,l)}finally{pe.H=d}},useRef:function(a){return he="useRef",Ae(),w1(a)},useState:function(a){he="useState",Ae();var i=pe.H;pe.H=Ki;try{return y1(a)}finally{pe.H=i}},useDebugValue:function(){he="useDebugValue",Ae()},useDeferredValue:function(a,i){return he="useDeferredValue",Ae(),C1(a,i)},useTransition:function(){return he="useTransition",Ae(),j1()},useSyncExternalStore:function(a,i,l){return he="useSyncExternalStore",Ae(),v1(a,i,l)},useId:function(){return he="useId",Ae(),R1()},useActionState:function(a,i){return he="useActionState",Ae(),pu(a,i)},useFormState:function(a,i){return he="useFormState",Ae(),Eg(),pu(a,i)},useOptimistic:function(a){return he="useOptimistic",Ae(),x1(a)},useHostTransitionStatus:Ll,useMemoCache:kl,useCacheRefresh:function(){return he="useCacheRefresh",Ae(),P1()},useEffectEvent:function(a){return he="useEffectEvent",Ae(),E1(a)}},_w={readContext:function(a){return tn(a)},use:Os,useCallback:function(a,i){return he="useCallback",Ae(),jg(a,i)},useContext:function(a){return he="useContext",Ae(),tn(a)},useEffect:function(a,i){he="useEffect",Ae(),Vr(2048,Dr,a,i)},useImperativeHandle:function(a,i,l){return he="useImperativeHandle",Ae(),_g(a,i,l)},useInsertionEffect:function(a,i){return he="useInsertionEffect",Ae(),Vr(4,Or,a,i)},useLayoutEffect:function(a,i){return he="useLayoutEffect",Ae(),Vr(4,oa,a,i)},useMemo:function(a,i){he="useMemo",Ae();var l=pe.H;pe.H=Ja;try{return Rg(a,i)}finally{pe.H=l}},useReducer:function(a,i,l){he="useReducer",Ae();var d=pe.H;pe.H=Ja;try{return hu(a,i,l)}finally{pe.H=d}},useRef:function(){return he="useRef",Ae(),kt().memoizedState},useState:function(){he="useState",Ae();var a=pe.H;pe.H=Ja;try{return hu(Ya)}finally{pe.H=a}},useDebugValue:function(){he="useDebugValue",Ae()},useDeferredValue:function(a,i){return he="useDeferredValue",Ae(),PP(a,i)},useTransition:function(){return he="useTransition",Ae(),$P()},useSyncExternalStore:function(a,i,l){return he="useSyncExternalStore",Ae(),Ag(a,i,l)},useId:function(){return he="useId",Ae(),kt().memoizedState},useFormState:function(a){return he="useFormState",Ae(),Eg(),Og(a)},useActionState:function(a){return he="useActionState",Ae(),Og(a)},useOptimistic:function(a,i){return he="useOptimistic",Ae(),EP(a,i)},useHostTransitionStatus:Ll,useMemoCache:kl,useCacheRefresh:function(){return he="useCacheRefresh",Ae(),kt().memoizedState},useEffectEvent:function(a){return he="useEffectEvent",Ae(),Tg(a)}},Tk={readContext:function(a){return tn(a)},use:Os,useCallback:function(a,i){return he="useCallback",Ae(),jg(a,i)},useContext:function(a){return he="useContext",Ae(),tn(a)},useEffect:function(a,i){he="useEffect",Ae(),Vr(2048,Dr,a,i)},useImperativeHandle:function(a,i,l){return he="useImperativeHandle",Ae(),_g(a,i,l)},useInsertionEffect:function(a,i){return he="useInsertionEffect",Ae(),Vr(4,Or,a,i)},useLayoutEffect:function(a,i){return he="useLayoutEffect",Ae(),Vr(4,oa,a,i)},useMemo:function(a,i){he="useMemo",Ae();var l=pe.H;pe.H=kv;try{return Rg(a,i)}finally{pe.H=l}},useReducer:function(a,i,l){he="useReducer",Ae();var d=pe.H;pe.H=kv;try{return Kf(a,i,l)}finally{pe.H=d}},useRef:function(){return he="useRef",Ae(),kt().memoizedState},useState:function(){he="useState",Ae();var a=pe.H;pe.H=kv;try{return Kf(Ya)}finally{pe.H=a}},useDebugValue:function(){he="useDebugValue",Ae()},useDeferredValue:function(a,i){return he="useDeferredValue",Ae(),MP(a,i)},useTransition:function(){return he="useTransition",Ae(),BP()},useSyncExternalStore:function(a,i,l){return he="useSyncExternalStore",Ae(),Ag(a,i,l)},useId:function(){return he="useId",Ae(),kt().memoizedState},useFormState:function(a){return he="useFormState",Ae(),Eg(),Dg(a)},useActionState:function(a){return he="useActionState",Ae(),Dg(a)},useOptimistic:function(a,i){return he="useOptimistic",Ae(),AP(a,i)},useHostTransitionStatus:Ll,useMemoCache:kl,useCacheRefresh:function(){return he="useCacheRefresh",Ae(),kt().memoizedState},useEffectEvent:function(a){return he="useEffectEvent",Ae(),Tg(a)}},Ki={readContext:function(a){return f(),tn(a)},use:function(a){return u(),Os(a)},useCallback:function(a,i){return he="useCallback",u(),ft(),O1(a,i)},useContext:function(a){return he="useContext",u(),ft(),tn(a)},useEffect:function(a,i){return he="useEffect",u(),ft(),Cg(a,i)},useImperativeHandle:function(a,i,l){return he="useImperativeHandle",u(),ft(),A1(a,i,l)},useInsertionEffect:function(a,i){he="useInsertionEffect",u(),ft(),Il(4,Or,a,i)},useLayoutEffect:function(a,i){return he="useLayoutEffect",u(),ft(),S1(a,i)},useMemo:function(a,i){he="useMemo",u(),ft();var l=pe.H;pe.H=Ki;try{return D1(a,i)}finally{pe.H=l}},useReducer:function(a,i,l){he="useReducer",u(),ft();var d=pe.H;pe.H=Ki;try{return p1(a,i,l)}finally{pe.H=d}},useRef:function(a){return he="useRef",u(),ft(),w1(a)},useState:function(a){he="useState",u(),ft();var i=pe.H;pe.H=Ki;try{return y1(a)}finally{pe.H=i}},useDebugValue:function(){he="useDebugValue",u(),ft()},useDeferredValue:function(a,i){return he="useDeferredValue",u(),ft(),C1(a,i)},useTransition:function(){return he="useTransition",u(),ft(),j1()},useSyncExternalStore:function(a,i,l){return he="useSyncExternalStore",u(),ft(),v1(a,i,l)},useId:function(){return he="useId",u(),ft(),R1()},useFormState:function(a,i){return he="useFormState",u(),ft(),pu(a,i)},useActionState:function(a,i){return he="useActionState",u(),ft(),pu(a,i)},useOptimistic:function(a){return he="useOptimistic",u(),ft(),x1(a)},useMemoCache:function(a){return u(),kl(a)},useHostTransitionStatus:Ll,useCacheRefresh:function(){return he="useCacheRefresh",ft(),P1()},useEffectEvent:function(a){return he="useEffectEvent",u(),ft(),E1(a)}},Ja={readContext:function(a){return f(),tn(a)},use:function(a){return u(),Os(a)},useCallback:function(a,i){return he="useCallback",u(),Ae(),jg(a,i)},useContext:function(a){return he="useContext",u(),Ae(),tn(a)},useEffect:function(a,i){he="useEffect",u(),Ae(),Vr(2048,Dr,a,i)},useImperativeHandle:function(a,i,l){return he="useImperativeHandle",u(),Ae(),_g(a,i,l)},useInsertionEffect:function(a,i){return he="useInsertionEffect",u(),Ae(),Vr(4,Or,a,i)},useLayoutEffect:function(a,i){return he="useLayoutEffect",u(),Ae(),Vr(4,oa,a,i)},useMemo:function(a,i){he="useMemo",u(),Ae();var l=pe.H;pe.H=Ja;try{return Rg(a,i)}finally{pe.H=l}},useReducer:function(a,i,l){he="useReducer",u(),Ae();var d=pe.H;pe.H=Ja;try{return hu(a,i,l)}finally{pe.H=d}},useRef:function(){return he="useRef",u(),Ae(),kt().memoizedState},useState:function(){he="useState",u(),Ae();var a=pe.H;pe.H=Ja;try{return hu(Ya)}finally{pe.H=a}},useDebugValue:function(){he="useDebugValue",u(),Ae()},useDeferredValue:function(a,i){return he="useDeferredValue",u(),Ae(),PP(a,i)},useTransition:function(){return he="useTransition",u(),Ae(),$P()},useSyncExternalStore:function(a,i,l){return he="useSyncExternalStore",u(),Ae(),Ag(a,i,l)},useId:function(){return he="useId",u(),Ae(),kt().memoizedState},useFormState:function(a){return he="useFormState",u(),Ae(),Og(a)},useActionState:function(a){return he="useActionState",u(),Ae(),Og(a)},useOptimistic:function(a,i){return he="useOptimistic",u(),Ae(),EP(a,i)},useMemoCache:function(a){return u(),kl(a)},useHostTransitionStatus:Ll,useCacheRefresh:function(){return he="useCacheRefresh",Ae(),kt().memoizedState},useEffectEvent:function(a){return he="useEffectEvent",u(),Ae(),Tg(a)}},kv={readContext:function(a){return f(),tn(a)},use:function(a){return u(),Os(a)},useCallback:function(a,i){return he="useCallback",u(),Ae(),jg(a,i)},useContext:function(a){return he="useContext",u(),Ae(),tn(a)},useEffect:function(a,i){he="useEffect",u(),Ae(),Vr(2048,Dr,a,i)},useImperativeHandle:function(a,i,l){return he="useImperativeHandle",u(),Ae(),_g(a,i,l)},useInsertionEffect:function(a,i){return he="useInsertionEffect",u(),Ae(),Vr(4,Or,a,i)},useLayoutEffect:function(a,i){return he="useLayoutEffect",u(),Ae(),Vr(4,oa,a,i)},useMemo:function(a,i){he="useMemo",u(),Ae();var l=pe.H;pe.H=Ja;try{return Rg(a,i)}finally{pe.H=l}},useReducer:function(a,i,l){he="useReducer",u(),Ae();var d=pe.H;pe.H=Ja;try{return Kf(a,i,l)}finally{pe.H=d}},useRef:function(){return he="useRef",u(),Ae(),kt().memoizedState},useState:function(){he="useState",u(),Ae();var a=pe.H;pe.H=Ja;try{return Kf(Ya)}finally{pe.H=a}},useDebugValue:function(){he="useDebugValue",u(),Ae()},useDeferredValue:function(a,i){return he="useDeferredValue",u(),Ae(),MP(a,i)},useTransition:function(){return he="useTransition",u(),Ae(),BP()},useSyncExternalStore:function(a,i,l){return he="useSyncExternalStore",u(),Ae(),Ag(a,i,l)},useId:function(){return he="useId",u(),Ae(),kt().memoizedState},useFormState:function(a){return he="useFormState",u(),Ae(),Dg(a)},useActionState:function(a){return he="useActionState",u(),Ae(),Dg(a)},useOptimistic:function(a,i){return he="useOptimistic",u(),Ae(),AP(a,i)},useMemoCache:function(a){return u(),kl(a)},useHostTransitionStatus:Ll,useCacheRefresh:function(){return he="useCacheRefresh",Ae(),kt().memoizedState},useEffectEvent:function(a){return he="useEffectEvent",u(),Ae(),Tg(a)}};var _k={},jk=new Set,Rk=new Set,Pk=new Set,Mk=new Set,kk=new Set,Ik=new Set,Lk=new Set,Vk=new Set,$k=new Set,Bk=new Set;Object.freeze(_k);var jw={enqueueSetState:function(a,i,l){a=a._reactInternals;var d=ea(a),p=ws(d);p.payload=i,l!=null&&(k1(l),p.callback=l),i=Es(a,p,d),i!==null&&(Si(d,"this.setState()",a),cn(i,a,d),Uf(i,a,d))},enqueueReplaceState:function(a,i,l){a=a._reactInternals;var d=ea(a),p=ws(d);p.tag=wk,p.payload=i,l!=null&&(k1(l),p.callback=l),i=Es(a,p,d),i!==null&&(Si(d,"this.replaceState()",a),cn(i,a,d),Uf(i,a,d))},enqueueForceUpdate:function(a,i){a=a._reactInternals;var l=ea(a),d=ws(l);d.tag=Ek,i!=null&&(k1(i),d.callback=i),i=Es(a,d,l),i!==null&&(Si(l,"this.forceUpdate()",a),cn(i,a,l),Uf(i,a,l))}},Zu=null,Rw=null,Pw=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,zk={},Uk={},qk={},Hk={},Ju=!1,Fk={},Iv={},Mw={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null},Kk=!1,Gk=null;Gk=new Set;var Ho=!1,On=!1,kw=!1,Yk=typeof WeakSet=="function"?WeakSet:Set,Gn=null,ed=null,td=null,Dn=null,zr=!1,ei=null,Pn=!1,Um=8192,VX={getCacheForType:function(a){var i=tn(wn),l=i.data.get(a);return l===void 0&&(l=a(),i.data.set(a,l)),l},cacheSignal:function(){return tn(wn).controller.signal},getOwner:function(){return ra}};if(typeof Symbol=="function"&&Symbol.for){var qm=Symbol.for;qm("selector.component"),qm("selector.has_pseudo_class"),qm("selector.role"),qm("selector.test_id"),qm("selector.text")}var $X=[],BX=typeof WeakMap=="function"?WeakMap:Map,Yn=0,Mn=2,sa=4,Fo=0,Hm=1,ec=2,Lv=3,Hs=4,Vv=6,Qk=5,Et=Yn,Ht=null,dt=null,ct=0,Ur=0,$v=1,tc=2,Fm=3,Xk=4,Iw=5,Km=6,Bv=7,Lw=8,nc=9,It=Ur,la=null,Fs=!1,nd=!1,Vw=!1,Gi=0,sn=Fo,Ks=0,Gs=0,$w=0,qr=0,rc=0,Gm=null,Cr=null,zv=!1,Uv=0,Wk=0,Zk=300,qv=1/0,Jk=500,Ym=null,mn=null,Ys=null,Hv=0,Bw=1,zw=2,eI=3,Qs=0,tI=1,nI=2,rI=3,aI=4,Fv=5,Cn=0,Xs=null,rd=null,ti=0,Uw=0,qw=-0,Hw=null,iI=null,oI=null,ni=Hv,sI=null,zX=50,Qm=0,Fw=null,Kw=!1,Kv=!1,UX=50,ac=0,Xm=null,ad=!1,Gv=null,lI=!1,cI=new Set,qX={},Yv=null,id=null,Gw=!1,Yw=!1,Qv=!1,Qw=!1,Ws=0,Xw={};(function(){for(var a=0;a<sw.length;a++){var i=sw[a],l=i.toLowerCase();i=i[0].toUpperCase()+i.slice(1),Ka(l,"on"+i)}Ka($5,"onAnimationEnd"),Ka(B5,"onAnimationIteration"),Ka(z5,"onAnimationStart"),Ka("dblclick","onDoubleClick"),Ka("focusin","onFocus"),Ka("focusout","onBlur"),Ka(bX,"onTransitionRun"),Ka(yX,"onTransitionStart"),Ka(xX,"onTransitionCancel"),Ka(U5,"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 Wm="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(" "),Ww=new Set("beforetoggle cancel close invalid load scroll scrollend toggle".split(" ").concat(Wm)),Xv="_reactListening"+Math.random().toString(36).slice(2),uI=!1,dI=!1,Wv=!1,fI=!1,Zv=!1,Jv=!1,mI=!1,eb={},HX=/\r\n?/g,FX=/\u0000|\uFFFD/g,ic="http://www.w3.org/1999/xlink",Zw="http://www.w3.org/XML/1998/namespace",KX="javascript:throw new Error('React form unexpectedly submitted.')",GX="suppressHydrationWarning",oc="&",tb="/&",Zm="$",Jm="/$",Zs="$?",sc="$~",od="$!",YX="html",QX="body",XX="head",Jw="F!",hI="F",pI="loading",WX="style",Ko=0,sd=1,nb=2,eE=null,tE=null,gI={dialog:!0,webview:!0},nE=null,eh=void 0,vI=typeof setTimeout=="function"?setTimeout:void 0,ZX=typeof clearTimeout=="function"?clearTimeout:void 0,lc=-1,bI=typeof Promise=="function"?Promise:void 0,JX=typeof queueMicrotask=="function"?queueMicrotask:typeof bI<"u"?function(a){return bI.resolve(null).then(a).catch(kY)}:vI,rE=null,cc=0,th=1,yI=2,xI=3,Ra=4,Pa=new Map,NI=new Set,Go=Pt.d;Pt.d={f:function(){var a=Go.f(),i=xu();return a||i},r:function(a){var i=De(a);i!==null&&i.tag===5&&i.type==="form"?VP(i):Go.r(a)},D:function(a){Go.D(a),j3("dns-prefetch",a,null)},C:function(a,i){Go.C(a,i),j3("preconnect",a,i)},L:function(a,i,l){Go.L(a,i,l);var d=ld;if(d&&a&&i){var p='link[rel="preload"][as="'+ya(i)+'"]';i==="image"&&l&&l.imageSrcSet?(p+='[imagesrcset="'+ya(l.imageSrcSet)+'"]',typeof l.imageSizes=="string"&&(p+='[imagesizes="'+ya(l.imageSizes)+'"]')):p+='[href="'+ya(a)+'"]';var v=p;switch(i){case"style":v=Eu(a);break;case"script":v=Su(a)}Pa.has(v)||(a=mt({rel:"preload",href:i==="image"&&l&&l.imageSrcSet?void 0:a,as:i},l),Pa.set(v,a),d.querySelector(p)!==null||i==="style"&&d.querySelector(sm(v))||i==="script"&&d.querySelector(lm(v))||(i=d.createElement("link"),er(i,"link",a),Se(i),d.head.appendChild(i)))}},m:function(a,i){Go.m(a,i);var l=ld;if(l&&a){var d=i&&typeof i.as=="string"?i.as:"script",p='link[rel="modulepreload"][as="'+ya(d)+'"][href="'+ya(a)+'"]',v=p;switch(d){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":v=Su(a)}if(!Pa.has(v)&&(a=mt({rel:"modulepreload",href:a},i),Pa.set(v,a),l.querySelector(p)===null)){switch(d){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(l.querySelector(lm(v)))return}d=l.createElement("link"),er(d,"link",a),Se(d),l.head.appendChild(d)}}},X:function(a,i){Go.X(a,i);var l=ld;if(l&&a){var d=Je(l).hoistableScripts,p=Su(a),v=d.get(p);v||(v=l.querySelector(lm(p)),v||(a=mt({src:a,async:!0},i),(i=Pa.get(p))&&AN(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(p,v))}},S:function(a,i,l){Go.S(a,i,l);var d=ld;if(d&&a){var p=Je(d).hoistableStyles,v=Eu(a);i=i||"default";var E=p.get(v);if(!E){var O={loading:cc,preload:null};if(E=d.querySelector(sm(v)))O.loading=th|Ra;else{a=mt({rel:"stylesheet",href:a,"data-precedence":i},l),(l=Pa.get(v))&&SN(a,l);var k=E=d.createElement("link");Se(k),er(k,"link",a),k._p=new Promise(function(L,oe){k.onload=L,k.onerror=oe}),k.addEventListener("load",function(){O.loading|=th}),k.addEventListener("error",function(){O.loading|=yI}),O.loading|=Ra,Wg(E,i,d)}E={type:"stylesheet",instance:E,count:1,state:O},p.set(v,E)}}},M:function(a,i){Go.M(a,i);var l=ld;if(l&&a){var d=Je(l).hoistableScripts,p=Su(a),v=d.get(p);v||(v=l.querySelector(lm(p)),v||(a=mt({src:a,async:!0,type:"module"},i),(i=Pa.get(p))&&AN(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(p,v))}}};var ld=typeof document>"u"?null:document,rb=null,eW=6e4,tW=800,nW=500,aE=0,iE=null,ab=null,uc=gQ,nh={$$typeof:Vi,Provider:null,Consumer:null,_currentValue:uc,_currentValue2:uc,_threadCount:0},wI="%c%s%c",EI="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",SI="",ib=" ",rW=Function.prototype.bind,AI=!1,OI=null,DI=null,CI=null,TI=null,_I=null,jI=null,RI=null,PI=null,MI=null,kI=null;OI=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=mt({},a.memoizedProps),l=or(a,2),l!==null&&cn(l,a,2))},DI=function(a,i,l){i=e(a,i),i!==null&&(l=o(i.memoizedState,l,0),i.memoizedState=l,i.baseState=l,a.memoizedProps=mt({},a.memoizedProps),l=or(a,2),l!==null&&cn(l,a,2))},CI=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=mt({},a.memoizedProps),l=or(a,2),l!==null&&cn(l,a,2))},TI=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&&cn(i,a,2)},_I=function(a,i){a.pendingProps=o(a.memoizedProps,i,0),a.alternate&&(a.alternate.pendingProps=a.pendingProps),i=or(a,2),i!==null&&cn(i,a,2)},jI=function(a,i,l){a.pendingProps=n(a.memoizedProps,i,l),a.alternate&&(a.alternate.pendingProps=a.pendingProps),i=or(a,2),i!==null&&cn(i,a,2)},RI=function(a){var i=or(a,2);i!==null&&cn(i,a,2)},PI=function(a){var i=Yr(),l=or(a,i);l!==null&&cn(l,a,i)},MI=function(a){c=a},kI=function(a){s=a};var ob=!0,sb=null,oE=!1,Js=null,el=null,tl=null,rh=new Map,ah=new Map,nl=[],aW="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(" "),lb=null;if(nv.prototype.render=jN.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()."):w(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,p=ea(d);ON(d,p,l,i,null,null)},nv.prototype.unmount=jN.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;(Et&(Mn|sa))!==Yn&&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."),ON(a.current,2,null,a,null,null),xu(),i[Ps]=null}},nv.prototype.unstable_scheduleHydration=function(a){if(a){var i=xi();a={blockedOn:null,target:a,priority:i};for(var l=0;l<nl.length&&i!==0&&i<nl[l].priority;l++);nl.splice(l,0,a),l===0&&F3(a)}},(function(){var a=RN.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"),Pt.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?T(a):null,a=a===null?null:a.stateNode,a},!(function(){var a={bundleType:1,version:"19.2.1",rendererPackageName:"react-dom",currentDispatcherRef:pe,reconcilerVersion:"19.2.1"};return a.overrideHookState=OI,a.overrideHookStateDeletePath=DI,a.overrideHookStateRenamePath=CI,a.overrideProps=TI,a.overridePropsDeletePath=_I,a.overridePropsRenamePath=jI,a.scheduleUpdate=RI,a.scheduleRetry=PI,a.setErrorHandler=MI,a.setSuspenseHandler=kI,a.scheduleRefresh=S,a.scheduleRoot=x,a.setRefreshHandler=N,a.getCurrentFiber=sQ,xn(a)})()&&qi&&window.top===window.self&&(-1<navigator.userAgent.indexOf("Chrome")&&navigator.userAgent.indexOf("Edge")===-1||-1<navigator.userAgent.indexOf("Firefox"))){var II=window.location.protocol;/^(https?|file):$/.test(II)&&console.info("%cDownload the React DevTools for a better development experience: https://react.dev/link/react-devtools"+(II==="file:"?`
|
||
You might need to use a local HTTP server (instead of file://): https://react.dev/link/react-devtools-faq`:""),"font-weight:bold")}lh.createRoot=function(a,i){if(!w(a))throw Error("Target container is not a DOM element.");Q3(a);var l=!1,d="",p=KP,v=GP,E=YP;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===Li&&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&&(p=i.onUncaughtError),i.onCaughtError!==void 0&&(v=i.onCaughtError),i.onRecoverableError!==void 0&&(E=i.onRecoverableError)),i=V3(a,1,!1,null,null,l,d,null,p,v,E,Y3),a[Ps]=i.current,fN(a),new jN(i)},lh.hydrateRoot=function(a,i,l){if(!w(a))throw Error("Target container is not a DOM element.");Q3(a),i===void 0&&console.error("Must provide initial children as second argument to hydrateRoot. Example usage: hydrateRoot(domContainer, <App />)");var d=!1,p="",v=KP,E=GP,O=YP,k=null;return l!=null&&(l.unstable_strictMode===!0&&(d=!0),l.identifierPrefix!==void 0&&(p=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&&(k=l.formState)),i=V3(a,1,!0,i,l??null,d,p,k,v,E,O,Y3),i.context=$3(null),l=i.current,d=ea(l),d=yi(d),p=ws(d),p.callback=null,Es(l,p,d),Si(d,"hydrateRoot()",null),l=d,i.current.lanes=l,Fa(i,l),ki(i),a[Ps]=i.current,fN(a),new nv(i)},lh.version="19.2.1",typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error())})(),lh}var jL;function jee(){return jL||(jL=1,yE.exports=_ee()),yE.exports}var Ree=jee(),Pee=(function(){function e(){this.keyToValue=new Map,this.valueToKey=new Map}return e.prototype.set=function(t,n){this.keyToValue.set(t,n),this.valueToKey.set(n,t)},e.prototype.getByKey=function(t){return this.keyToValue.get(t)},e.prototype.getByValue=function(t){return this.valueToKey.get(t)},e.prototype.clear=function(){this.keyToValue.clear(),this.valueToKey.clear()},e})(),_9=(function(){function e(t){this.generateIdentifier=t,this.kv=new Pee}return e.prototype.register=function(t,n){this.kv.getByValue(t)||(n||(n=this.generateIdentifier(t)),this.kv.set(n,t))},e.prototype.clear=function(){this.kv.clear()},e.prototype.getIdentifier=function(t){return this.kv.getByValue(t)},e.prototype.getValue=function(t){return this.kv.getByKey(t)},e})(),Mee=(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)}})(),kee=(function(e){Mee(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})(_9),Iee=function(e,t){var n=typeof Symbol=="function"&&e[Symbol.iterator];if(!n)return e;var r=n.call(e),o,s=[],c;try{for(;(t===void 0||t-- >0)&&!(o=r.next()).done;)s.push(o.value)}catch(u){c={error:u}}finally{try{o&&!o.done&&(n=r.return)&&n.call(r)}finally{if(c)throw c.error}}return s};function Lee(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 Vee(e,t){var n=Lee(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 Pd(e,t){Object.entries(e).forEach(function(n){var r=Iee(n,2),o=r[0],s=r[1];return t(s,o)})}function qb(e,t){return e.indexOf(t)!==-1}function RL(e,t){for(var n=0;n<e.length;n++){var r=e[n];if(t(r))return r}}var $ee=(function(){function e(){this.transfomers={}}return e.prototype.register=function(t){this.transfomers[t.name]=t},e.prototype.findApplicable=function(t){return Vee(this.transfomers,function(n){return n.isApplicable(t)})},e.prototype.findByName=function(t){return this.transfomers[t]},e})(),Bee=function(e){return Object.prototype.toString.call(e).slice(8,-1)},j9=function(e){return typeof e>"u"},zee=function(e){return e===null},Bh=function(e){return typeof e!="object"||e===null||e===Object.prototype?!1:Object.getPrototypeOf(e)===null?!0:Object.getPrototypeOf(e)===Object.prototype},cC=function(e){return Bh(e)&&Object.keys(e).length===0},pl=function(e){return Array.isArray(e)},Uee=function(e){return typeof e=="string"},qee=function(e){return typeof e=="number"&&!isNaN(e)},Hee=function(e){return typeof e=="boolean"},Fee=function(e){return e instanceof RegExp},zh=function(e){return e instanceof Map},Uh=function(e){return e instanceof Set},R9=function(e){return Bee(e)==="Symbol"},Kee=function(e){return e instanceof Date&&!isNaN(e.valueOf())},Gee=function(e){return e instanceof Error},PL=function(e){return typeof e=="number"&&isNaN(e)},Yee=function(e){return Hee(e)||zee(e)||j9(e)||qee(e)||Uee(e)||R9(e)},Qee=function(e){return typeof e=="bigint"},Xee=function(e){return e===1/0||e===-1/0},Wee=function(e){return ArrayBuffer.isView(e)&&!(e instanceof DataView)},Zee=function(e){return e instanceof URL},P9=function(e){return e.replace(/\./g,"\\.")},EE=function(e){return e.map(String).map(P9).join(".")},Ch=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 c=o===".";if(c){t.push(n),n="";continue}n+=o}var u=n;return t.push(u),t},uC=function(){return uC=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},uC.apply(this,arguments)},dC=function(e,t){var n=typeof Symbol=="function"&&e[Symbol.iterator];if(!n)return e;var r=n.call(e),o,s=[],c;try{for(;(t===void 0||t-- >0)&&!(o=r.next()).done;)s.push(o.value)}catch(u){c={error:u}}finally{try{o&&!o.done&&(n=r.return)&&n.call(r)}finally{if(c)throw c.error}}return s},fC=function(e,t){for(var n=0,r=t.length,o=e.length;n<r;n++,o++)e[o]=t[n];return e};function Yi(e,t,n,r){return{isApplicable:e,annotation:t,transform:n,untransform:r}}var M9=[Yi(j9,"undefined",function(){return null},function(){}),Yi(Qee,"bigint",function(e){return e.toString()},function(e){return typeof BigInt<"u"?BigInt(e):(console.error("Please add a BigInt polyfill."),e)}),Yi(Kee,"Date",function(e){return e.toISOString()},function(e){return new Date(e)}),Yi(Gee,"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}),Yi(Fee,"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)}),Yi(Uh,"set",function(e){return fC([],dC(e.values()))},function(e){return new Set(e)}),Yi(zh,"map",function(e){return fC([],dC(e.entries()))},function(e){return new Map(e)}),Yi(function(e){return PL(e)||Xee(e)},"number",function(e){return PL(e)?"NaN":e>0?"Infinity":"-Infinity"},Number),Yi(function(e){return e===0&&1/e===-1/0},"number",function(){return"-0"},Number),Yi(Zee,"URL",function(e){return e.toString()},function(e){return new URL(e)})];function xx(e,t,n,r){return{isApplicable:e,annotation:t,transform:n,untransform:r}}var k9=xx(function(e,t){if(R9(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}),Jee=[Int8Array,Uint8Array,Int16Array,Uint16Array,Int32Array,Uint32Array,Float32Array,Float64Array,Uint8ClampedArray].reduce(function(e,t){return e[t.name]=t,e},{}),I9=xx(Wee,function(e){return["typed-array",e.constructor.name]},function(e){return fC([],dC(e))},function(e,t){var n=Jee[t[1]];if(!n)throw new Error("Trying to deserialize unknown typed array");return new n(e)});function L9(e,t){if(e?.constructor){var n=!!t.classRegistry.getIdentifier(e.constructor);return n}return!1}var V9=xx(L9,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 uC({},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)}),$9=xx(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)}),ete=[V9,k9,$9,I9],ML=function(e,t){var n=RL(ete,function(o){return o.isApplicable(e,t)});if(n)return{value:n.transform(e,t),type:n.annotation(e,t)};var r=RL(M9,function(o){return o.isApplicable(e,t)});if(r)return{value:r.transform(e,t),type:r.annotation}},B9={};M9.forEach(function(e){B9[e.annotation]=e});var tte=function(e,t,n){if(pl(t))switch(t[0]){case"symbol":return k9.untransform(e,t,n);case"class":return V9.untransform(e,t,n);case"custom":return $9.untransform(e,t,n);case"typed-array":return I9.untransform(e,t,n);default:throw new Error("Unknown transformation: "+t)}else{var r=B9[t];if(!r)throw new Error("Unknown transformation: "+t);return r.untransform(e,n)}},xd=function(e,t){for(var n=e.keys();t>0;)n.next(),t--;return n.next().value};function z9(e){if(qb(e,"__proto__"))throw new Error("__proto__ is not allowed as a property");if(qb(e,"prototype"))throw new Error("prototype is not allowed as a property");if(qb(e,"constructor"))throw new Error("constructor is not allowed as a property")}var nte=function(e,t){z9(t);for(var n=0;n<t.length;n++){var r=t[n];if(Uh(e))e=xd(e,+r);else if(zh(e)){var o=+r,s=+t[++n]==0?"key":"value",c=xd(e,o);switch(s){case"key":e=c;break;case"value":e=e.get(c);break}}else e=e[r]}return e},mC=function(e,t,n){if(z9(t),t.length===0)return n(e);for(var r=e,o=0;o<t.length-1;o++){var s=t[o];if(pl(r)){var c=+s;r=r[c]}else if(Bh(r))r=r[s];else if(Uh(r)){var u=+s;r=xd(r,u)}else if(zh(r)){var f=o===t.length-2;if(f)break;var u=+s,m=+t[++o]==0?"key":"value",g=xd(r,u);switch(m){case"key":r=g;break;case"value":r=r.get(g);break}}}var h=t[t.length-1];if(pl(r)?r[+h]=n(r[+h]):Bh(r)&&(r[h]=n(r[h])),Uh(r)){var y=xd(r,+h),x=n(y);y!==x&&(r.delete(y),r.add(x))}if(zh(r)){var u=+t[t.length-2],S=xd(r,u),m=+h==0?"key":"value";switch(m){case"key":{var N=n(S);r.set(N,r.get(S)),N!==S&&r.delete(S);break}case"value":{r.set(S,n(r.get(S)));break}}}return e},Zo=function(e,t){var n=typeof Symbol=="function"&&e[Symbol.iterator];if(!n)return e;var r=n.call(e),o,s=[],c;try{for(;(t===void 0||t-- >0)&&!(o=r.next()).done;)s.push(o.value)}catch(u){c={error:u}}finally{try{o&&!o.done&&(n=r.return)&&n.call(r)}finally{if(c)throw c.error}}return s},cl=function(e,t){for(var n=0,r=t.length,o=e.length;n<r;n++,o++)e[o]=t[n];return e};function hC(e,t,n){if(n===void 0&&(n=[]),!!e){if(!pl(e)){Pd(e,function(c,u){return hC(c,t,cl(cl([],Zo(n)),Zo(Ch(u))))});return}var r=Zo(e,2),o=r[0],s=r[1];s&&Pd(s,function(c,u){hC(c,t,cl(cl([],Zo(n)),Zo(Ch(u))))}),t(o,n)}}function rte(e,t,n){return hC(t,function(r,o){e=mC(e,o,function(s){return tte(s,r,n)})}),e}function ate(e,t){function n(c,u){var f=nte(e,Ch(u));c.map(Ch).forEach(function(m){e=mC(e,m,function(){return f})})}if(pl(t)){var r=Zo(t,2),o=r[0],s=r[1];o.forEach(function(c){e=mC(e,Ch(c),function(){return e})}),s&&Pd(s,n)}else Pd(t,n);return e}var ite=function(e,t){return Bh(e)||pl(e)||zh(e)||Uh(e)||L9(e,t)};function ote(e,t,n){var r=n.get(e);r?r.push(t):n.set(e,[t])}function ste(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=Zo(o),c=s[0],u=s.slice(1);c.length===0?r=u.map(EE):n[EE(c)]=u.map(EE)}}),r?cC(n)?[r]:[r,n]:cC(n)?void 0:n}var U9=function(e,t,n,r,o,s,c){var u;o===void 0&&(o=[]),s===void 0&&(s=[]),c===void 0&&(c=new Map);var f=Yee(e);if(!f){ote(e,o,t);var m=c.get(e);if(m)return r?{transformedValue:null}:m}if(!ite(e,n)){var g=ML(e,n),h=g?{transformedValue:g.value,annotations:[g.type]}:{transformedValue:e};return f||c.set(e,h),h}if(qb(s,e))return{transformedValue:null};var y=ML(e,n),x=(u=y?.value)!==null&&u!==void 0?u:e,S=pl(x)?[]:{},N={};Pd(x,function(D,C){var j=U9(D,t,n,r,cl(cl([],Zo(o)),[C]),cl(cl([],Zo(s)),[e]),c);S[C]=j.transformedValue,pl(j.annotations)?N[C]=j.annotations:Bh(j.annotations)&&Pd(j.annotations,function(P,A){N[P9(C)+"."+A]=P})});var w=cC(N)?{transformedValue:S,annotations:y?[y.type]:void 0}:{transformedValue:S,annotations:y?[y.type,N]:N};return f||c.set(e,w),w};function q9(e){return Object.prototype.toString.call(e).slice(8,-1)}function kL(e){return q9(e)==="Array"}function lte(e){if(q9(e)!=="Object")return!1;const t=Object.getPrototypeOf(e);return!!t&&t.constructor===Object&&t===Object.prototype}function cte(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 pC(e,t={}){if(kL(e))return e.map(o=>pC(o,t));if(!lte(e))return e;const n=Object.getOwnPropertyNames(e),r=Object.getOwnPropertySymbols(e);return[...n,...r].reduce((o,s)=>{if(kL(t.props)&&!t.props.includes(s))return o;const c=e[s],u=pC(c,t);return cte(o,s,u,e,t.nonenumerable),o},{})}var yc=function(){return yc=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},yc.apply(this,arguments)},ute=function(e,t){var n=typeof Symbol=="function"&&e[Symbol.iterator];if(!n)return e;var r=n.call(e),o,s=[],c;try{for(;(t===void 0||t-- >0)&&!(o=r.next()).done;)s.push(o.value)}catch(u){c={error:u}}finally{try{o&&!o.done&&(n=r.return)&&n.call(r)}finally{if(c)throw c.error}}return s},dte=function(e,t){for(var n=0,r=t.length,o=e.length;n<r;n++,o++)e[o]=t[n];return e},us=(function(){function e(t){var n=t===void 0?{}:t,r=n.dedupe,o=r===void 0?!1:r;this.classRegistry=new kee,this.symbolRegistry=new _9(function(s){var c;return(c=s.description)!==null&&c!==void 0?c:""}),this.customTransformerRegistry=new $ee,this.allowedErrorProps=[],this.dedupe=o}return e.prototype.serialize=function(t){var n=new Map,r=U9(t,n,this,this.dedupe),o={json:r.transformedValue};r.annotations&&(o.meta=yc(yc({},o.meta),{values:r.annotations}));var s=ste(n,this.dedupe);return s&&(o.meta=yc(yc({},o.meta),{referentialEqualities:s})),o},e.prototype.deserialize=function(t){var n=t.json,r=t.meta,o=pC(n);return r?.values&&(o=rte(o,r.values,this)),r?.referentialEqualities&&(o=ate(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(yc({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,dte([],ute(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})();us.serialize;us.deserialize;us.stringify;us.parse;us.registerClass;us.registerCustom;us.registerSymbol;us.allowErrorProps;var fte=(e,t,n,r,o,s,c,u)=>{let f=document.documentElement,m=["light","dark"];function g(x){(Array.isArray(e)?e:[e]).forEach(S=>{let N=S==="class",w=N&&s?o.map(D=>s[D]||D):o;N?(f.classList.remove(...w),f.classList.add(s&&s[x]?s[x]:x)):f.setAttribute(S,x)}),h(x)}function h(x){u&&m.includes(x)&&(f.style.colorScheme=x)}function y(){return window.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light"}if(r)g(r);else try{let x=localStorage.getItem(t)||n,S=c&&x==="system"?y():x;g(S)}catch{}},mte=_.createContext(void 0),hte={setTheme:e=>{},themes:[]},pte=()=>{var e;return(e=_.useContext(mte))!=null?e:hte};_.memo(({forcedTheme:e,storageKey:t,attribute:n,enableSystem:r,enableColorScheme:o,defaultTheme:s,value:c,themes:u,nonce:f,scriptProps:m})=>{let g=JSON.stringify([n,t,s,e,u,c,r,o]).slice(1,-1);return _.createElement("script",{...m,suppressHydrationWarning:!0,nonce:typeof window>"u"?f:"",dangerouslySetInnerHTML:{__html:`(${fte.toString()})(${g})`}})});var Mp=T9();const H9=Bt(Mp);function gte(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 vte=e=>{switch(e){case"success":return xte;case"info":return wte;case"warning":return Nte;case"error":return Ete;default:return null}},bte=Array(12).fill(0),yte=({visible:e,className:t})=>K.createElement("div",{className:["sonner-loading-wrapper",t].filter(Boolean).join(" "),"data-visible":e},K.createElement("div",{className:"sonner-spinner"},bte.map((n,r)=>K.createElement("div",{className:"sonner-loading-bar",key:`spinner-bar-${r}`})))),xte=K.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",height:"20",width:"20"},K.createElement("path",{fillRule:"evenodd",d:"M10 18a8 8 0 100-16 8 8 0 000 16zm3.857-9.809a.75.75 0 00-1.214-.882l-3.483 4.79-1.88-1.88a.75.75 0 10-1.06 1.061l2.5 2.5a.75.75 0 001.137-.089l4-5.5z",clipRule:"evenodd"})),Nte=K.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",height:"20",width:"20"},K.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"})),wte=K.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",height:"20",width:"20"},K.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"})),Ete=K.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",height:"20",width:"20"},K.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"})),Ste=K.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"},K.createElement("line",{x1:"18",y1:"6",x2:"6",y2:"18"}),K.createElement("line",{x1:"6",y1:"6",x2:"18",y2:"18"})),Ate=()=>{const[e,t]=K.useState(document.hidden);return K.useEffect(()=>{const n=()=>{t(document.hidden)};return document.addEventListener("visibilitychange",n),()=>window.removeEventListener("visibilitychange",n)},[]),e};let gC=1;class Ote{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:gC++,c=this.toasts.find(f=>f.id===s),u=t.dismissible===void 0?!0:t.dismissible;return this.dismissedToasts.has(s)&&this.dismissedToasts.delete(s),c?this.toasts=this.toasts.map(f=>f.id===s?(this.publish({...f,...t,id:s,title:r}),{...f,...t,id:s,dismissible:u,title:r}):f):this.addToast({title:r,...o,dismissible:u,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,c;const u=o.then(async m=>{if(c=["resolve",m],K.isValidElement(m))s=!1,this.create({id:r,type:"default",message:m});else if(Cte(m)&&!m.ok){s=!1;const h=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 h=="object"&&!K.isValidElement(h)?h:{message:h};this.create({id:r,type:"error",description:y,...S})}else if(m instanceof Error){s=!1;const h=typeof n.error=="function"?await n.error(m):n.error,y=typeof n.description=="function"?await n.description(m):n.description,S=typeof h=="object"&&!K.isValidElement(h)?h:{message:h};this.create({id:r,type:"error",description:y,...S})}else if(n.success!==void 0){s=!1;const h=typeof n.success=="function"?await n.success(m):n.success,y=typeof n.description=="function"?await n.description(m):n.description,S=typeof h=="object"&&!K.isValidElement(h)?h:{message:h};this.create({id:r,type:"success",description:y,...S})}}).catch(async m=>{if(c=["reject",m],n.error!==void 0){s=!1;const g=typeof n.error=="function"?await n.error(m):n.error,h=typeof n.description=="function"?await n.description(m):n.description,x=typeof g=="object"&&!K.isValidElement(g)?g:{message:g};this.create({id:r,type:"error",description:h,...x})}}).finally(()=>{s&&(this.dismiss(r),r=void 0),n.finally==null||n.finally.call(n)}),f=()=>new Promise((m,g)=>u.then(()=>c[0]==="reject"?g(c[1]):m(c[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||gC++;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 Hr=new Ote,Dte=(e,t)=>{const n=t?.id||gC++;return Hr.addToast({title:e,...t,id:n}),n},Cte=e=>e&&typeof e=="object"&&"ok"in e&&typeof e.ok=="boolean"&&"status"in e&&typeof e.status=="number",Tte=Dte,_te=()=>Hr.toasts,jte=()=>Hr.getActiveToasts(),gt=Object.assign(Tte,{success:Hr.success,info:Hr.info,warning:Hr.warning,error:Hr.error,custom:Hr.custom,message:Hr.message,promise:Hr.promise,dismiss:Hr.dismiss,loading:Hr.loading},{getHistory:_te,getToasts:jte});gte("[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 gb(e){return e.label!==void 0}const Rte=3,Pte="24px",Mte="16px",IL=4e3,kte=356,Ite=14,Lte=45,Vte=200;function Qi(...e){return e.filter(Boolean).join(" ")}function $te(e){const[t,n]=e.split("-"),r=[];return t&&r.push(t),n&&r.push(n),r}const Bte=e=>{var t,n,r,o,s,c,u,f,m;const{invert:g,toast:h,unstyled:y,interacting:x,setHeights:S,visibleToasts:N,heights:w,index:D,toasts:C,expanded:j,removeToast:P,defaultRichColors:A,closeButton:T,style:R,cancelButtonStyle:M,actionButtonStyle:$,className:z="",descriptionClassName:U="",duration:V,position:F,gap:X,expandByDefault:ee,classNames:q,icons:Q,closeButtonAriaLabel:G="Close toast"}=e,[ne,te]=K.useState(null),[I,H]=K.useState(null),[Y,re]=K.useState(!1),[ge,we]=K.useState(!1),[le,ye]=K.useState(!1),[me,xe]=K.useState(!1),[de,ie]=K.useState(!1),[ze,Ne]=K.useState(0),[ut,Ve]=K.useState(0),nt=K.useRef(h.duration||V||IL),Un=K.useRef(null),xn=K.useRef(null),Re=D===0,ir=D+1<=N,St=h.type,qn=h.dismissible!==!1,kr=h.className||"",vi=h.descriptionClassName||"",Yr=K.useMemo(()=>w.findIndex(Se=>Se.toastId===h.id)||0,[w,h.id]),bi=K.useMemo(()=>{var Se;return(Se=h.closeButton)!=null?Se:T},[h.closeButton,T]),Fa=K.useMemo(()=>h.duration||V||IL,[h.duration,V]),gs=K.useRef(0),ba=K.useRef(0),vs=K.useRef(0),Ir=K.useRef(null),[yi,bo]=F.split("-"),yo=K.useMemo(()=>w.reduce((Se,He,Be)=>Be>=Yr?Se:Se+He.height,0),[w,Yr]),xo=Ate(),xi=h.invert||g,B=St==="loading";ba.current=K.useMemo(()=>Yr*X+yo,[Yr,yo]),K.useEffect(()=>{nt.current=Fa},[Fa]),K.useEffect(()=>{re(!0)},[]),K.useEffect(()=>{const Se=xn.current;if(Se){const He=Se.getBoundingClientRect().height;return Ve(He),S(Be=>[{toastId:h.id,height:He,position:h.position},...Be]),()=>S(Be=>Be.filter(zt=>zt.toastId!==h.id))}},[S,h.id]),K.useLayoutEffect(()=>{if(!Y)return;const Se=xn.current,He=Se.style.height;Se.style.height="auto";const Be=Se.getBoundingClientRect().height;Se.style.height=He,Ve(Be),S(zt=>zt.find(dn=>dn.toastId===h.id)?zt.map(dn=>dn.toastId===h.id?{...dn,height:Be}:dn):[{toastId:h.id,height:Be,position:h.position},...zt])},[Y,h.title,h.description,S,h.id,h.jsx,h.action,h.cancel]);const ue=K.useCallback(()=>{we(!0),Ne(ba.current),S(Se=>Se.filter(He=>He.toastId!==h.id)),setTimeout(()=>{P(h)},Vte)},[h,P,S,ba]);K.useEffect(()=>{if(h.promise&&St==="loading"||h.duration===1/0||h.type==="loading")return;let Se;return j||x||xo?(()=>{if(vs.current<gs.current){const zt=new Date().getTime()-gs.current;nt.current=nt.current-zt}vs.current=new Date().getTime()})():(()=>{nt.current!==1/0&&(gs.current=new Date().getTime(),Se=setTimeout(()=>{h.onAutoClose==null||h.onAutoClose.call(h,h),ue()},nt.current))})(),()=>clearTimeout(Se)},[j,x,h,St,xo,ue]),K.useEffect(()=>{h.delete&&(ue(),h.onDismiss==null||h.onDismiss.call(h,h))},[ue,h.delete]);function Ee(){var Se;if(Q?.loading){var He;return K.createElement("div",{className:Qi(q?.loader,h==null||(He=h.classNames)==null?void 0:He.loader,"sonner-loader"),"data-visible":St==="loading"},Q.loading)}return K.createElement(yte,{className:Qi(q?.loader,h==null||(Se=h.classNames)==null?void 0:Se.loader),visible:St==="loading"})}const De=h.icon||Q?.[St]||vte(St);var Me,Je;return K.createElement("li",{tabIndex:0,ref:xn,className:Qi(z,kr,q?.toast,h==null||(t=h.classNames)==null?void 0:t.toast,q?.default,q?.[St],h==null||(n=h.classNames)==null?void 0:n[St]),"data-sonner-toast":"","data-rich-colors":(Me=h.richColors)!=null?Me:A,"data-styled":!(h.jsx||h.unstyled||y),"data-mounted":Y,"data-promise":!!h.promise,"data-swiped":de,"data-removed":ge,"data-visible":ir,"data-y-position":yi,"data-x-position":bo,"data-index":D,"data-front":Re,"data-swiping":le,"data-dismissible":qn,"data-type":St,"data-invert":xi,"data-swipe-out":me,"data-swipe-direction":I,"data-expanded":!!(j||ee&&Y),"data-testid":h.testId,style:{"--index":D,"--toasts-before":D,"--z-index":C.length-D,"--offset":`${ge?ze:ba.current}px`,"--initial-height":ee?"auto":`${ut}px`,...R,...h.style},onDragEnd:()=>{ye(!1),te(null),Ir.current=null},onPointerDown:Se=>{Se.button!==2&&(B||!qn||(Un.current=new Date,Ne(ba.current),Se.target.setPointerCapture(Se.pointerId),Se.target.tagName!=="BUTTON"&&(ye(!0),Ir.current={x:Se.clientX,y:Se.clientY})))},onPointerUp:()=>{var Se,He,Be;if(me||!qn)return;Ir.current=null;const zt=Number(((Se=xn.current)==null?void 0:Se.style.getPropertyValue("--swipe-amount-x").replace("px",""))||0),yr=Number(((He=xn.current)==null?void 0:He.style.getPropertyValue("--swipe-amount-y").replace("px",""))||0),dn=new Date().getTime()-((Be=Un.current)==null?void 0:Be.getTime()),jn=ne==="x"?zt:yr,No=Math.abs(jn)/dn;if(Math.abs(jn)>=Lte||No>.11){Ne(ba.current),h.onDismiss==null||h.onDismiss.call(h,h),H(ne==="x"?zt>0?"right":"left":yr>0?"down":"up"),ue(),xe(!0);return}else{var gn,an;(gn=xn.current)==null||gn.style.setProperty("--swipe-amount-x","0px"),(an=xn.current)==null||an.style.setProperty("--swipe-amount-y","0px")}ie(!1),ye(!1),te(null)},onPointerMove:Se=>{var He,Be,zt;if(!Ir.current||!qn||((He=window.getSelection())==null?void 0:He.toString().length)>0)return;const dn=Se.clientY-Ir.current.y,jn=Se.clientX-Ir.current.x;var No;const gn=(No=e.swipeDirections)!=null?No:$te(F);!ne&&(Math.abs(jn)>1||Math.abs(dn)>1)&&te(Math.abs(jn)>Math.abs(dn)?"x":"y");let an={x:0,y:0};const Tf=wo=>1/(1.5+Math.abs(wo)/20);if(ne==="y"){if(gn.includes("top")||gn.includes("bottom"))if(gn.includes("top")&&dn<0||gn.includes("bottom")&&dn>0)an.y=dn;else{const wo=dn*Tf(dn);an.y=Math.abs(wo)<Math.abs(dn)?wo:dn}}else if(ne==="x"&&(gn.includes("left")||gn.includes("right")))if(gn.includes("left")&&jn<0||gn.includes("right")&&jn>0)an.x=jn;else{const wo=jn*Tf(jn);an.x=Math.abs(wo)<Math.abs(jn)?wo:jn}(Math.abs(an.x)>0||Math.abs(an.y)>0)&&ie(!0),(Be=xn.current)==null||Be.style.setProperty("--swipe-amount-x",`${an.x}px`),(zt=xn.current)==null||zt.style.setProperty("--swipe-amount-y",`${an.y}px`)}},bi&&!h.jsx&&St!=="loading"?K.createElement("button",{"aria-label":G,"data-disabled":B,"data-close-button":!0,onClick:B||!qn?()=>{}:()=>{ue(),h.onDismiss==null||h.onDismiss.call(h,h)},className:Qi(q?.closeButton,h==null||(r=h.classNames)==null?void 0:r.closeButton)},(Je=Q?.close)!=null?Je:Ste):null,(St||h.icon||h.promise)&&h.icon!==null&&(Q?.[St]!==null||h.icon)?K.createElement("div",{"data-icon":"",className:Qi(q?.icon,h==null||(o=h.classNames)==null?void 0:o.icon)},h.promise||h.type==="loading"&&!h.icon?h.icon||Ee():null,h.type!=="loading"?De:null):null,K.createElement("div",{"data-content":"",className:Qi(q?.content,h==null||(s=h.classNames)==null?void 0:s.content)},K.createElement("div",{"data-title":"",className:Qi(q?.title,h==null||(c=h.classNames)==null?void 0:c.title)},h.jsx?h.jsx:typeof h.title=="function"?h.title():h.title),h.description?K.createElement("div",{"data-description":"",className:Qi(U,vi,q?.description,h==null||(u=h.classNames)==null?void 0:u.description)},typeof h.description=="function"?h.description():h.description):null),K.isValidElement(h.cancel)?h.cancel:h.cancel&&gb(h.cancel)?K.createElement("button",{"data-button":!0,"data-cancel":!0,style:h.cancelButtonStyle||M,onClick:Se=>{gb(h.cancel)&&qn&&(h.cancel.onClick==null||h.cancel.onClick.call(h.cancel,Se),ue())},className:Qi(q?.cancelButton,h==null||(f=h.classNames)==null?void 0:f.cancelButton)},h.cancel.label):null,K.isValidElement(h.action)?h.action:h.action&&gb(h.action)?K.createElement("button",{"data-button":!0,"data-action":!0,style:h.actionButtonStyle||$,onClick:Se=>{gb(h.action)&&(h.action.onClick==null||h.action.onClick.call(h.action,Se),!Se.defaultPrevented&&ue())},className:Qi(q?.actionButton,h==null||(m=h.classNames)==null?void 0:m.actionButton)},h.action.label):null)};function LL(){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 zte(e,t){const n={};return[e,t].forEach((r,o)=>{const s=o===1,c=s?"--mobile-offset":"--offset",u=s?Mte:Pte;function f(m){["top","right","bottom","left"].forEach(g=>{n[`${c}-${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[`${c}-${m}`]=u:n[`${c}-${m}`]=typeof r[m]=="number"?`${r[m]}px`:r[m]}):f(u)}),n}const Ute=K.forwardRef(function(t,n){const{id:r,invert:o,position:s="bottom-right",hotkey:c=["altKey","KeyT"],expand:u,closeButton:f,className:m,offset:g,mobileOffset:h,theme:y="light",richColors:x,duration:S,style:N,visibleToasts:w=Rte,toastOptions:D,dir:C=LL(),gap:j=Ite,icons:P,containerAriaLabel:A="Notifications"}=t,[T,R]=K.useState([]),M=K.useMemo(()=>r?T.filter(Y=>Y.toasterId===r):T.filter(Y=>!Y.toasterId),[T,r]),$=K.useMemo(()=>Array.from(new Set([s].concat(M.filter(Y=>Y.position).map(Y=>Y.position)))),[M,s]),[z,U]=K.useState([]),[V,F]=K.useState(!1),[X,ee]=K.useState(!1),[q,Q]=K.useState(y!=="system"?y:typeof window<"u"&&window.matchMedia&&window.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light"),G=K.useRef(null),ne=c.join("+").replace(/Key/g,"").replace(/Digit/g,""),te=K.useRef(null),I=K.useRef(!1),H=K.useCallback(Y=>{R(re=>{var ge;return(ge=re.find(we=>we.id===Y.id))!=null&&ge.delete||Hr.dismiss(Y.id),re.filter(({id:we})=>we!==Y.id)})},[]);return K.useEffect(()=>Hr.subscribe(Y=>{if(Y.dismiss){requestAnimationFrame(()=>{R(re=>re.map(ge=>ge.id===Y.id?{...ge,delete:!0}:ge))});return}setTimeout(()=>{H9.flushSync(()=>{R(re=>{const ge=re.findIndex(we=>we.id===Y.id);return ge!==-1?[...re.slice(0,ge),{...re[ge],...Y},...re.slice(ge+1)]:[Y,...re]})})})}),[T]),K.useEffect(()=>{if(y!=="system"){Q(y);return}if(y==="system"&&(window.matchMedia&&window.matchMedia("(prefers-color-scheme: dark)").matches?Q("dark"):Q("light")),typeof window>"u")return;const Y=window.matchMedia("(prefers-color-scheme: dark)");try{Y.addEventListener("change",({matches:re})=>{Q(re?"dark":"light")})}catch{Y.addListener(({matches:ge})=>{try{Q(ge?"dark":"light")}catch(we){console.error(we)}})}},[y]),K.useEffect(()=>{T.length<=1&&F(!1)},[T]),K.useEffect(()=>{const Y=re=>{var ge;if(c.every(ye=>re[ye]||re.code===ye)){var le;F(!0),(le=G.current)==null||le.focus()}re.code==="Escape"&&(document.activeElement===G.current||(ge=G.current)!=null&&ge.contains(document.activeElement))&&F(!1)};return document.addEventListener("keydown",Y),()=>document.removeEventListener("keydown",Y)},[c]),K.useEffect(()=>{if(G.current)return()=>{te.current&&(te.current.focus({preventScroll:!0}),te.current=null,I.current=!1)}},[G.current]),K.createElement("section",{ref:n,"aria-label":`${A} ${ne}`,tabIndex:-1,"aria-live":"polite","aria-relevant":"additions text","aria-atomic":"false",suppressHydrationWarning:!0},$.map((Y,re)=>{var ge;const[we,le]=Y.split("-");return M.length?K.createElement("ol",{key:Y,dir:C==="auto"?LL():C,tabIndex:-1,ref:G,className:m,"data-sonner-toaster":!0,"data-sonner-theme":q,"data-y-position":we,"data-x-position":le,style:{"--front-toast-height":`${((ge=z[0])==null?void 0:ge.height)||0}px`,"--width":`${kte}px`,"--gap":`${j}px`,...N,...zte(g,h)},onBlur:ye=>{I.current&&!ye.currentTarget.contains(ye.relatedTarget)&&(I.current=!1,te.current&&(te.current.focus({preventScroll:!0}),te.current=null))},onFocus:ye=>{ye.target instanceof HTMLElement&&ye.target.dataset.dismissible==="false"||I.current||(I.current=!0,te.current=ye.relatedTarget)},onMouseEnter:()=>F(!0),onMouseMove:()=>F(!0),onMouseLeave:()=>{X||F(!1)},onDragEnd:()=>F(!1),onPointerDown:ye=>{ye.target instanceof HTMLElement&&ye.target.dataset.dismissible==="false"||ee(!0)},onPointerUp:()=>ee(!1)},M.filter(ye=>!ye.position&&re===0||ye.position===Y).map((ye,me)=>{var xe,de;return K.createElement(Bte,{key:ye.id,icons:P,index:me,toast:ye,defaultRichColors:x,duration:(xe=D?.duration)!=null?xe:S,className:D?.className,descriptionClassName:D?.descriptionClassName,invert:o,visibleToasts:w,closeButton:(de=D?.closeButton)!=null?de:f,interacting:X,position:Y,style:D?.style,unstyled:D?.unstyled,classNames:D?.classNames,cancelButtonStyle:D?.cancelButtonStyle,actionButtonStyle:D?.actionButtonStyle,closeButtonAriaLabel:D?.closeButtonAriaLabel,removeToast:H,toasts:M.filter(ie=>ie.position==ye.position),heights:z.filter(ie=>ie.position==ye.position),setHeights:U,expandByDefault:u,gap:j,expanded:V,swipeDirections:t.swipeDirections})})):null}))}),qte=({...e})=>{const{theme:t="system"}=pte();return b.jsxDEV(Ute,{"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 Le(e,t,{checkForDefaultPrevented:n=!0}={}){return function(o){if(e?.(o),n===!1||!o.defaultPrevented)return t?.(o)}}function VL(e,t){if(typeof e=="function")return e(t);e!=null&&(e.current=t)}function Nx(...e){return t=>{let n=!1;const r=e.map(o=>{const s=VL(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():VL(e[o],null)}}}}function Mt(...e){return _.useCallback(Nx(...e),e)}function Hte(e,t){const n=_.createContext(t),r=s=>{const{children:c,...u}=s,f=_.useMemo(()=>u,Object.values(u));return ce.jsx(n.Provider,{value:f,children:c})};r.displayName=e+"Provider";function o(s){const c=_.useContext(n);if(c)return c;if(t!==void 0)return t;throw new Error(`\`${s}\` must be used within \`${e}\``)}return[r,o]}function ds(e,t=[]){let n=[];function r(s,c){const u=_.createContext(c),f=n.length;n=[...n,c];const m=h=>{const{scope:y,children:x,...S}=h,N=y?.[e]?.[f]||u,w=_.useMemo(()=>S,Object.values(S));return ce.jsx(N.Provider,{value:w,children:x})};m.displayName=s+"Provider";function g(h,y){const x=y?.[e]?.[f]||u,S=_.useContext(x);if(S)return S;if(c!==void 0)return c;throw new Error(`\`${h}\` must be used within \`${s}\``)}return[m,g]}const o=()=>{const s=n.map(c=>_.createContext(c));return function(u){const f=u?.[e]||s;return _.useMemo(()=>({[`__scope${e}`]:{...u,[e]:f}}),[u,f])}};return o.scopeName=e,[r,Fte(o,...t)]}function Fte(...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 c=r.reduce((u,{useScope:f,scopeName:m})=>{const h=f(s)[`__scope${m}`];return{...u,...h}},{});return _.useMemo(()=>({[`__scope${t.scopeName}`]:c}),[c])}};return n.scopeName=t.scopeName,n}function Pc(e){const t=Kte(e),n=_.forwardRef((r,o)=>{const{children:s,...c}=r,u=_.Children.toArray(s),f=u.find(Yte);if(f){const m=f.props.children,g=u.map(h=>h===f?_.Children.count(m)>1?_.Children.only(null):_.isValidElement(m)?m.props.children:null:h);return ce.jsx(t,{...c,ref:o,children:_.isValidElement(m)?_.cloneElement(m,void 0,g):null})}return ce.jsx(t,{...c,ref:o,children:s})});return n.displayName=`${e}.Slot`,n}var F9=Pc("Slot");function Kte(e){const t=_.forwardRef((n,r)=>{const{children:o,...s}=n;if(_.isValidElement(o)){const c=Xte(o),u=Qte(s,o.props);return o.type!==_.Fragment&&(u.ref=r?Nx(r,c):c),_.cloneElement(o,u)}return _.Children.count(o)>1?_.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}var K9=Symbol("radix.slottable");function Gte(e){const t=({children:n})=>ce.jsx(ce.Fragment,{children:n});return t.displayName=`${e}.Slottable`,t.__radixId=K9,t}function Yte(e){return _.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===K9}function Qte(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]=(...u)=>{const f=s(...u);return o(...u),f}:o&&(n[r]=o):r==="style"?n[r]={...o,...s}:r==="className"&&(n[r]=[o,s].filter(Boolean).join(" "))}return{...e,...n}}function Xte(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 Wte=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],vt=Wte.reduce((e,t)=>{const n=Pc(`Primitive.${t}`),r=_.forwardRef((o,s)=>{const{asChild:c,...u}=o,f=c?n:t;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),ce.jsx(f,{...u,ref:s})});return r.displayName=`Primitive.${t}`,{...e,[t]:r}},{});function G9(e,t){e&&Mp.flushSync(()=>e.dispatchEvent(t))}function lo(e){const t=_.useRef(e);return _.useEffect(()=>{t.current=e}),_.useMemo(()=>(...n)=>t.current?.(...n),[])}function Zte(e,t=globalThis?.document){const n=lo(e);_.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 Jte="DismissableLayer",vC="dismissableLayer.update",ene="dismissableLayer.pointerDownOutside",tne="dismissableLayer.focusOutside",$L,Y9=_.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),kp=_.forwardRef((e,t)=>{const{disableOutsidePointerEvents:n=!1,onEscapeKeyDown:r,onPointerDownOutside:o,onFocusOutside:s,onInteractOutside:c,onDismiss:u,...f}=e,m=_.useContext(Y9),[g,h]=_.useState(null),y=g?.ownerDocument??globalThis?.document,[,x]=_.useState({}),S=Mt(t,R=>h(R)),N=Array.from(m.layers),[w]=[...m.layersWithOutsidePointerEventsDisabled].slice(-1),D=N.indexOf(w),C=g?N.indexOf(g):-1,j=m.layersWithOutsidePointerEventsDisabled.size>0,P=C>=D,A=ane(R=>{const M=R.target,$=[...m.branches].some(z=>z.contains(M));!P||$||(o?.(R),c?.(R),R.defaultPrevented||u?.())},y),T=ine(R=>{const M=R.target;[...m.branches].some(z=>z.contains(M))||(s?.(R),c?.(R),R.defaultPrevented||u?.())},y);return Zte(R=>{C===m.layers.size-1&&(r?.(R),!R.defaultPrevented&&u&&(R.preventDefault(),u()))},y),_.useEffect(()=>{if(g)return n&&(m.layersWithOutsidePointerEventsDisabled.size===0&&($L=y.body.style.pointerEvents,y.body.style.pointerEvents="none"),m.layersWithOutsidePointerEventsDisabled.add(g)),m.layers.add(g),BL(),()=>{n&&m.layersWithOutsidePointerEventsDisabled.size===1&&(y.body.style.pointerEvents=$L)}},[g,y,n,m]),_.useEffect(()=>()=>{g&&(m.layers.delete(g),m.layersWithOutsidePointerEventsDisabled.delete(g),BL())},[g,m]),_.useEffect(()=>{const R=()=>x({});return document.addEventListener(vC,R),()=>document.removeEventListener(vC,R)},[]),ce.jsx(vt.div,{...f,ref:S,style:{pointerEvents:j?P?"auto":"none":void 0,...e.style},onFocusCapture:Le(e.onFocusCapture,T.onFocusCapture),onBlurCapture:Le(e.onBlurCapture,T.onBlurCapture),onPointerDownCapture:Le(e.onPointerDownCapture,A.onPointerDownCapture)})});kp.displayName=Jte;var nne="DismissableLayerBranch",rne=_.forwardRef((e,t)=>{const n=_.useContext(Y9),r=_.useRef(null),o=Mt(t,r);return _.useEffect(()=>{const s=r.current;if(s)return n.branches.add(s),()=>{n.branches.delete(s)}},[n.branches]),ce.jsx(vt.div,{...e,ref:o})});rne.displayName=nne;function ane(e,t=globalThis?.document){const n=lo(e),r=_.useRef(!1),o=_.useRef(()=>{});return _.useEffect(()=>{const s=u=>{if(u.target&&!r.current){let f=function(){Q9(ene,n,m,{discrete:!0})};const m={originalEvent:u};u.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},c=window.setTimeout(()=>{t.addEventListener("pointerdown",s)},0);return()=>{window.clearTimeout(c),t.removeEventListener("pointerdown",s),t.removeEventListener("click",o.current)}},[t,n]),{onPointerDownCapture:()=>r.current=!0}}function ine(e,t=globalThis?.document){const n=lo(e),r=_.useRef(!1);return _.useEffect(()=>{const o=s=>{s.target&&!r.current&&Q9(tne,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 BL(){const e=new CustomEvent(vC);document.dispatchEvent(e)}function Q9(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?G9(o,s):o.dispatchEvent(s)}var vr=globalThis?.document?_.useLayoutEffect:()=>{},one=fx[" useId ".trim().toString()]||(()=>{}),sne=0;function ro(e){const[t,n]=_.useState(one());return vr(()=>{n(r=>r??String(sne++))},[e]),t?`radix-${t}`:""}const lne=["top","right","bottom","left"],gl=Math.min,fa=Math.max,ry=Math.round,vb=Math.floor,ao=e=>({x:e,y:e}),cne={left:"right",right:"left",bottom:"top",top:"bottom"},une={start:"end",end:"start"};function bC(e,t,n){return fa(e,gl(t,n))}function is(e,t){return typeof e=="function"?e(t):e}function os(e){return e.split("-")[0]}function ff(e){return e.split("-")[1]}function m_(e){return e==="x"?"y":"x"}function h_(e){return e==="y"?"height":"width"}const dne=new Set(["top","bottom"]);function eo(e){return dne.has(os(e))?"y":"x"}function p_(e){return m_(eo(e))}function fne(e,t,n){n===void 0&&(n=!1);const r=ff(e),o=p_(e),s=h_(o);let c=o==="x"?r===(n?"end":"start")?"right":"left":r==="start"?"bottom":"top";return t.reference[s]>t.floating[s]&&(c=ay(c)),[c,ay(c)]}function mne(e){const t=ay(e);return[yC(e),t,yC(t)]}function yC(e){return e.replace(/start|end/g,t=>une[t])}const zL=["left","right"],UL=["right","left"],hne=["top","bottom"],pne=["bottom","top"];function gne(e,t,n){switch(e){case"top":case"bottom":return n?t?UL:zL:t?zL:UL;case"left":case"right":return t?hne:pne;default:return[]}}function vne(e,t,n,r){const o=ff(e);let s=gne(os(e),n==="start",r);return o&&(s=s.map(c=>c+"-"+o),t&&(s=s.concat(s.map(yC)))),s}function ay(e){return e.replace(/left|right|bottom|top/g,t=>cne[t])}function bne(e){return{top:0,right:0,bottom:0,left:0,...e}}function X9(e){return typeof e!="number"?bne(e):{top:e,right:e,bottom:e,left:e}}function iy(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 qL(e,t,n){let{reference:r,floating:o}=e;const s=eo(t),c=p_(t),u=h_(c),f=os(t),m=s==="y",g=r.x+r.width/2-o.width/2,h=r.y+r.height/2-o.height/2,y=r[u]/2-o[u]/2;let x;switch(f){case"top":x={x:g,y:r.y-o.height};break;case"bottom":x={x:g,y:r.y+r.height};break;case"right":x={x:r.x+r.width,y:h};break;case"left":x={x:r.x-o.width,y:h};break;default:x={x:r.x,y:r.y}}switch(ff(t)){case"start":x[c]-=y*(n&&m?-1:1);break;case"end":x[c]+=y*(n&&m?-1:1);break}return x}const yne=async(e,t,n)=>{const{placement:r="bottom",strategy:o="absolute",middleware:s=[],platform:c}=n,u=s.filter(Boolean),f=await(c.isRTL==null?void 0:c.isRTL(t));let m=await c.getElementRects({reference:e,floating:t,strategy:o}),{x:g,y:h}=qL(m,r,f),y=r,x={},S=0;for(let N=0;N<u.length;N++){const{name:w,fn:D}=u[N],{x:C,y:j,data:P,reset:A}=await D({x:g,y:h,initialPlacement:r,placement:y,strategy:o,middlewareData:x,rects:m,platform:c,elements:{reference:e,floating:t}});g=C??g,h=j??h,x={...x,[w]:{...x[w],...P}},A&&S<=50&&(S++,typeof A=="object"&&(A.placement&&(y=A.placement),A.rects&&(m=A.rects===!0?await c.getElementRects({reference:e,floating:t,strategy:o}):A.rects),{x:g,y:h}=qL(m,y,f)),N=-1)}return{x:g,y:h,placement:y,strategy:o,middlewareData:x}};async function qh(e,t){var n;t===void 0&&(t={});const{x:r,y:o,platform:s,rects:c,elements:u,strategy:f}=e,{boundary:m="clippingAncestors",rootBoundary:g="viewport",elementContext:h="floating",altBoundary:y=!1,padding:x=0}=is(t,e),S=X9(x),w=u[y?h==="floating"?"reference":"floating":h],D=iy(await s.getClippingRect({element:(n=await(s.isElement==null?void 0:s.isElement(w)))==null||n?w:w.contextElement||await(s.getDocumentElement==null?void 0:s.getDocumentElement(u.floating)),boundary:m,rootBoundary:g,strategy:f})),C=h==="floating"?{x:r,y:o,width:c.floating.width,height:c.floating.height}:c.reference,j=await(s.getOffsetParent==null?void 0:s.getOffsetParent(u.floating)),P=await(s.isElement==null?void 0:s.isElement(j))?await(s.getScale==null?void 0:s.getScale(j))||{x:1,y:1}:{x:1,y:1},A=iy(s.convertOffsetParentRelativeRectToViewportRelativeRect?await s.convertOffsetParentRelativeRectToViewportRelativeRect({elements:u,rect:C,offsetParent:j,strategy:f}):C);return{top:(D.top-A.top+S.top)/P.y,bottom:(A.bottom-D.bottom+S.bottom)/P.y,left:(D.left-A.left+S.left)/P.x,right:(A.right-D.right+S.right)/P.x}}const xne=e=>({name:"arrow",options:e,async fn(t){const{x:n,y:r,placement:o,rects:s,platform:c,elements:u,middlewareData:f}=t,{element:m,padding:g=0}=is(e,t)||{};if(m==null)return{};const h=X9(g),y={x:n,y:r},x=p_(o),S=h_(x),N=await c.getDimensions(m),w=x==="y",D=w?"top":"left",C=w?"bottom":"right",j=w?"clientHeight":"clientWidth",P=s.reference[S]+s.reference[x]-y[x]-s.floating[S],A=y[x]-s.reference[x],T=await(c.getOffsetParent==null?void 0:c.getOffsetParent(m));let R=T?T[j]:0;(!R||!await(c.isElement==null?void 0:c.isElement(T)))&&(R=u.floating[j]||s.floating[S]);const M=P/2-A/2,$=R/2-N[S]/2-1,z=gl(h[D],$),U=gl(h[C],$),V=z,F=R-N[S]-U,X=R/2-N[S]/2+M,ee=bC(V,X,F),q=!f.arrow&&ff(o)!=null&&X!==ee&&s.reference[S]/2-(X<V?z:U)-N[S]/2<0,Q=q?X<V?X-V:X-F:0;return{[x]:y[x]+Q,data:{[x]:ee,centerOffset:X-ee-Q,...q&&{alignmentOffset:Q}},reset:q}}}),Nne=function(e){return e===void 0&&(e={}),{name:"flip",options:e,async fn(t){var n,r;const{placement:o,middlewareData:s,rects:c,initialPlacement:u,platform:f,elements:m}=t,{mainAxis:g=!0,crossAxis:h=!0,fallbackPlacements:y,fallbackStrategy:x="bestFit",fallbackAxisSideDirection:S="none",flipAlignment:N=!0,...w}=is(e,t);if((n=s.arrow)!=null&&n.alignmentOffset)return{};const D=os(o),C=eo(u),j=os(u)===u,P=await(f.isRTL==null?void 0:f.isRTL(m.floating)),A=y||(j||!N?[ay(u)]:mne(u)),T=S!=="none";!y&&T&&A.push(...vne(u,N,S,P));const R=[u,...A],M=await qh(t,w),$=[];let z=((r=s.flip)==null?void 0:r.overflows)||[];if(g&&$.push(M[D]),h){const X=fne(o,c,P);$.push(M[X[0]],M[X[1]])}if(z=[...z,{placement:o,overflows:$}],!$.every(X=>X<=0)){var U,V;const X=(((U=s.flip)==null?void 0:U.index)||0)+1,ee=R[X];if(ee&&(!(h==="alignment"?C!==eo(ee):!1)||z.every(G=>eo(G.placement)===C?G.overflows[0]>0:!0)))return{data:{index:X,overflows:z},reset:{placement:ee}};let q=(V=z.filter(Q=>Q.overflows[0]<=0).sort((Q,G)=>Q.overflows[1]-G.overflows[1])[0])==null?void 0:V.placement;if(!q)switch(x){case"bestFit":{var F;const Q=(F=z.filter(G=>{if(T){const ne=eo(G.placement);return ne===C||ne==="y"}return!0}).map(G=>[G.placement,G.overflows.filter(ne=>ne>0).reduce((ne,te)=>ne+te,0)]).sort((G,ne)=>G[1]-ne[1])[0])==null?void 0:F[0];Q&&(q=Q);break}case"initialPlacement":q=u;break}if(o!==q)return{reset:{placement:q}}}return{}}}};function HL(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function FL(e){return lne.some(t=>e[t]>=0)}const wne=function(e){return e===void 0&&(e={}),{name:"hide",options:e,async fn(t){const{rects:n}=t,{strategy:r="referenceHidden",...o}=is(e,t);switch(r){case"referenceHidden":{const s=await qh(t,{...o,elementContext:"reference"}),c=HL(s,n.reference);return{data:{referenceHiddenOffsets:c,referenceHidden:FL(c)}}}case"escaped":{const s=await qh(t,{...o,altBoundary:!0}),c=HL(s,n.floating);return{data:{escapedOffsets:c,escaped:FL(c)}}}default:return{}}}}},W9=new Set(["left","top"]);async function Ene(e,t){const{placement:n,platform:r,elements:o}=e,s=await(r.isRTL==null?void 0:r.isRTL(o.floating)),c=os(n),u=ff(n),f=eo(n)==="y",m=W9.has(c)?-1:1,g=s&&f?-1:1,h=is(t,e);let{mainAxis:y,crossAxis:x,alignmentAxis:S}=typeof h=="number"?{mainAxis:h,crossAxis:0,alignmentAxis:null}:{mainAxis:h.mainAxis||0,crossAxis:h.crossAxis||0,alignmentAxis:h.alignmentAxis};return u&&typeof S=="number"&&(x=u==="end"?S*-1:S),f?{x:x*g,y:y*m}:{x:y*m,y:x*g}}const Sne=function(e){return e===void 0&&(e=0),{name:"offset",options:e,async fn(t){var n,r;const{x:o,y:s,placement:c,middlewareData:u}=t,f=await Ene(t,e);return c===((n=u.offset)==null?void 0:n.placement)&&(r=u.arrow)!=null&&r.alignmentOffset?{}:{x:o+f.x,y:s+f.y,data:{...f,placement:c}}}}},Ane=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:c=!1,limiter:u={fn:w=>{let{x:D,y:C}=w;return{x:D,y:C}}},...f}=is(e,t),m={x:n,y:r},g=await qh(t,f),h=eo(os(o)),y=m_(h);let x=m[y],S=m[h];if(s){const w=y==="y"?"top":"left",D=y==="y"?"bottom":"right",C=x+g[w],j=x-g[D];x=bC(C,x,j)}if(c){const w=h==="y"?"top":"left",D=h==="y"?"bottom":"right",C=S+g[w],j=S-g[D];S=bC(C,S,j)}const N=u.fn({...t,[y]:x,[h]:S});return{...N,data:{x:N.x-n,y:N.y-r,enabled:{[y]:s,[h]:c}}}}}},One=function(e){return e===void 0&&(e={}),{options:e,fn(t){const{x:n,y:r,placement:o,rects:s,middlewareData:c}=t,{offset:u=0,mainAxis:f=!0,crossAxis:m=!0}=is(e,t),g={x:n,y:r},h=eo(o),y=m_(h);let x=g[y],S=g[h];const N=is(u,t),w=typeof N=="number"?{mainAxis:N,crossAxis:0}:{mainAxis:0,crossAxis:0,...N};if(f){const j=y==="y"?"height":"width",P=s.reference[y]-s.floating[j]+w.mainAxis,A=s.reference[y]+s.reference[j]-w.mainAxis;x<P?x=P:x>A&&(x=A)}if(m){var D,C;const j=y==="y"?"width":"height",P=W9.has(os(o)),A=s.reference[h]-s.floating[j]+(P&&((D=c.offset)==null?void 0:D[h])||0)+(P?0:w.crossAxis),T=s.reference[h]+s.reference[j]+(P?0:((C=c.offset)==null?void 0:C[h])||0)-(P?w.crossAxis:0);S<A?S=A:S>T&&(S=T)}return{[y]:x,[h]:S}}}},Dne=function(e){return e===void 0&&(e={}),{name:"size",options:e,async fn(t){var n,r;const{placement:o,rects:s,platform:c,elements:u}=t,{apply:f=()=>{},...m}=is(e,t),g=await qh(t,m),h=os(o),y=ff(o),x=eo(o)==="y",{width:S,height:N}=s.floating;let w,D;h==="top"||h==="bottom"?(w=h,D=y===(await(c.isRTL==null?void 0:c.isRTL(u.floating))?"start":"end")?"left":"right"):(D=h,w=y==="end"?"top":"bottom");const C=N-g.top-g.bottom,j=S-g.left-g.right,P=gl(N-g[w],C),A=gl(S-g[D],j),T=!t.middlewareData.shift;let R=P,M=A;if((n=t.middlewareData.shift)!=null&&n.enabled.x&&(M=j),(r=t.middlewareData.shift)!=null&&r.enabled.y&&(R=C),T&&!y){const z=fa(g.left,0),U=fa(g.right,0),V=fa(g.top,0),F=fa(g.bottom,0);x?M=S-2*(z!==0||U!==0?z+U:fa(g.left,g.right)):R=N-2*(V!==0||F!==0?V+F:fa(g.top,g.bottom))}await f({...t,availableWidth:M,availableHeight:R});const $=await c.getDimensions(u.floating);return S!==$.width||N!==$.height?{reset:{rects:!0}}:{}}}};function wx(){return typeof window<"u"}function mf(e){return Z9(e)?(e.nodeName||"").toLowerCase():"#document"}function ga(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function ho(e){var t;return(t=(Z9(e)?e.ownerDocument:e.document)||window.document)==null?void 0:t.documentElement}function Z9(e){return wx()?e instanceof Node||e instanceof ga(e).Node:!1}function di(e){return wx()?e instanceof Element||e instanceof ga(e).Element:!1}function co(e){return wx()?e instanceof HTMLElement||e instanceof ga(e).HTMLElement:!1}function KL(e){return!wx()||typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof ga(e).ShadowRoot}const Cne=new Set(["inline","contents"]);function Ip(e){const{overflow:t,overflowX:n,overflowY:r,display:o}=fi(e);return/auto|scroll|overlay|hidden|clip/.test(t+r+n)&&!Cne.has(o)}const Tne=new Set(["table","td","th"]);function _ne(e){return Tne.has(mf(e))}const jne=[":popover-open",":modal"];function Ex(e){return jne.some(t=>{try{return e.matches(t)}catch{return!1}})}const Rne=["transform","translate","scale","rotate","perspective"],Pne=["transform","translate","scale","rotate","perspective","filter"],Mne=["paint","layout","strict","content"];function g_(e){const t=v_(),n=di(e)?fi(e):e;return Rne.some(r=>n[r]?n[r]!=="none":!1)||(n.containerType?n.containerType!=="normal":!1)||!t&&(n.backdropFilter?n.backdropFilter!=="none":!1)||!t&&(n.filter?n.filter!=="none":!1)||Pne.some(r=>(n.willChange||"").includes(r))||Mne.some(r=>(n.contain||"").includes(r))}function kne(e){let t=vl(e);for(;co(t)&&!Md(t);){if(g_(t))return t;if(Ex(t))return null;t=vl(t)}return null}function v_(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}const Ine=new Set(["html","body","#document"]);function Md(e){return Ine.has(mf(e))}function fi(e){return ga(e).getComputedStyle(e)}function Sx(e){return di(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function vl(e){if(mf(e)==="html")return e;const t=e.assignedSlot||e.parentNode||KL(e)&&e.host||ho(e);return KL(t)?t.host:t}function J9(e){const t=vl(e);return Md(t)?e.ownerDocument?e.ownerDocument.body:e.body:co(t)&&Ip(t)?t:J9(t)}function Hh(e,t,n){var r;t===void 0&&(t=[]),n===void 0&&(n=!0);const o=J9(e),s=o===((r=e.ownerDocument)==null?void 0:r.body),c=ga(o);if(s){const u=xC(c);return t.concat(c,c.visualViewport||[],Ip(o)?o:[],u&&n?Hh(u):[])}return t.concat(o,Hh(o,[],n))}function xC(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function ez(e){const t=fi(e);let n=parseFloat(t.width)||0,r=parseFloat(t.height)||0;const o=co(e),s=o?e.offsetWidth:n,c=o?e.offsetHeight:r,u=ry(n)!==s||ry(r)!==c;return u&&(n=s,r=c),{width:n,height:r,$:u}}function b_(e){return di(e)?e:e.contextElement}function Dd(e){const t=b_(e);if(!co(t))return ao(1);const n=t.getBoundingClientRect(),{width:r,height:o,$:s}=ez(t);let c=(s?ry(n.width):n.width)/r,u=(s?ry(n.height):n.height)/o;return(!c||!Number.isFinite(c))&&(c=1),(!u||!Number.isFinite(u))&&(u=1),{x:c,y:u}}const Lne=ao(0);function tz(e){const t=ga(e);return!v_()||!t.visualViewport?Lne:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function Vne(e,t,n){return t===void 0&&(t=!1),!n||t&&n!==ga(e)?!1:t}function Mc(e,t,n,r){t===void 0&&(t=!1),n===void 0&&(n=!1);const o=e.getBoundingClientRect(),s=b_(e);let c=ao(1);t&&(r?di(r)&&(c=Dd(r)):c=Dd(e));const u=Vne(s,n,r)?tz(s):ao(0);let f=(o.left+u.x)/c.x,m=(o.top+u.y)/c.y,g=o.width/c.x,h=o.height/c.y;if(s){const y=ga(s),x=r&&di(r)?ga(r):r;let S=y,N=xC(S);for(;N&&r&&x!==S;){const w=Dd(N),D=N.getBoundingClientRect(),C=fi(N),j=D.left+(N.clientLeft+parseFloat(C.paddingLeft))*w.x,P=D.top+(N.clientTop+parseFloat(C.paddingTop))*w.y;f*=w.x,m*=w.y,g*=w.x,h*=w.y,f+=j,m+=P,S=ga(N),N=xC(S)}}return iy({width:g,height:h,x:f,y:m})}function Ax(e,t){const n=Sx(e).scrollLeft;return t?t.left+n:Mc(ho(e)).left+n}function nz(e,t){const n=e.getBoundingClientRect(),r=n.left+t.scrollLeft-Ax(e,n),o=n.top+t.scrollTop;return{x:r,y:o}}function $ne(e){let{elements:t,rect:n,offsetParent:r,strategy:o}=e;const s=o==="fixed",c=ho(r),u=t?Ex(t.floating):!1;if(r===c||u&&s)return n;let f={scrollLeft:0,scrollTop:0},m=ao(1);const g=ao(0),h=co(r);if((h||!h&&!s)&&((mf(r)!=="body"||Ip(c))&&(f=Sx(r)),co(r))){const x=Mc(r);m=Dd(r),g.x=x.x+r.clientLeft,g.y=x.y+r.clientTop}const y=c&&!h&&!s?nz(c,f):ao(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 Bne(e){return Array.from(e.getClientRects())}function zne(e){const t=ho(e),n=Sx(e),r=e.ownerDocument.body,o=fa(t.scrollWidth,t.clientWidth,r.scrollWidth,r.clientWidth),s=fa(t.scrollHeight,t.clientHeight,r.scrollHeight,r.clientHeight);let c=-n.scrollLeft+Ax(e);const u=-n.scrollTop;return fi(r).direction==="rtl"&&(c+=fa(t.clientWidth,r.clientWidth)-o),{width:o,height:s,x:c,y:u}}const GL=25;function Une(e,t){const n=ga(e),r=ho(e),o=n.visualViewport;let s=r.clientWidth,c=r.clientHeight,u=0,f=0;if(o){s=o.width,c=o.height;const g=v_();(!g||g&&t==="fixed")&&(u=o.offsetLeft,f=o.offsetTop)}const m=Ax(r);if(m<=0){const g=r.ownerDocument,h=g.body,y=getComputedStyle(h),x=g.compatMode==="CSS1Compat"&&parseFloat(y.marginLeft)+parseFloat(y.marginRight)||0,S=Math.abs(r.clientWidth-h.clientWidth-x);S<=GL&&(s-=S)}else m<=GL&&(s+=m);return{width:s,height:c,x:u,y:f}}const qne=new Set(["absolute","fixed"]);function Hne(e,t){const n=Mc(e,!0,t==="fixed"),r=n.top+e.clientTop,o=n.left+e.clientLeft,s=co(e)?Dd(e):ao(1),c=e.clientWidth*s.x,u=e.clientHeight*s.y,f=o*s.x,m=r*s.y;return{width:c,height:u,x:f,y:m}}function YL(e,t,n){let r;if(t==="viewport")r=Une(e,n);else if(t==="document")r=zne(ho(e));else if(di(t))r=Hne(t,n);else{const o=tz(e);r={x:t.x-o.x,y:t.y-o.y,width:t.width,height:t.height}}return iy(r)}function rz(e,t){const n=vl(e);return n===t||!di(n)||Md(n)?!1:fi(n).position==="fixed"||rz(n,t)}function Fne(e,t){const n=t.get(e);if(n)return n;let r=Hh(e,[],!1).filter(u=>di(u)&&mf(u)!=="body"),o=null;const s=fi(e).position==="fixed";let c=s?vl(e):e;for(;di(c)&&!Md(c);){const u=fi(c),f=g_(c);!f&&u.position==="fixed"&&(o=null),(s?!f&&!o:!f&&u.position==="static"&&!!o&&qne.has(o.position)||Ip(c)&&!f&&rz(e,c))?r=r.filter(g=>g!==c):o=u,c=vl(c)}return t.set(e,r),r}function Kne(e){let{element:t,boundary:n,rootBoundary:r,strategy:o}=e;const c=[...n==="clippingAncestors"?Ex(t)?[]:Fne(t,this._c):[].concat(n),r],u=c[0],f=c.reduce((m,g)=>{const h=YL(t,g,o);return m.top=fa(h.top,m.top),m.right=gl(h.right,m.right),m.bottom=gl(h.bottom,m.bottom),m.left=fa(h.left,m.left),m},YL(t,u,o));return{width:f.right-f.left,height:f.bottom-f.top,x:f.left,y:f.top}}function Gne(e){const{width:t,height:n}=ez(e);return{width:t,height:n}}function Yne(e,t,n){const r=co(t),o=ho(t),s=n==="fixed",c=Mc(e,!0,s,t);let u={scrollLeft:0,scrollTop:0};const f=ao(0);function m(){f.x=Ax(o)}if(r||!r&&!s)if((mf(t)!=="body"||Ip(o))&&(u=Sx(t)),r){const x=Mc(t,!0,s,t);f.x=x.x+t.clientLeft,f.y=x.y+t.clientTop}else o&&m();s&&!r&&o&&m();const g=o&&!r&&!s?nz(o,u):ao(0),h=c.left+u.scrollLeft-f.x-g.x,y=c.top+u.scrollTop-f.y-g.y;return{x:h,y,width:c.width,height:c.height}}function SE(e){return fi(e).position==="static"}function QL(e,t){if(!co(e)||fi(e).position==="fixed")return null;if(t)return t(e);let n=e.offsetParent;return ho(e)===n&&(n=n.ownerDocument.body),n}function az(e,t){const n=ga(e);if(Ex(e))return n;if(!co(e)){let o=vl(e);for(;o&&!Md(o);){if(di(o)&&!SE(o))return o;o=vl(o)}return n}let r=QL(e,t);for(;r&&_ne(r)&&SE(r);)r=QL(r,t);return r&&Md(r)&&SE(r)&&!g_(r)?n:r||kne(e)||n}const Qne=async function(e){const t=this.getOffsetParent||az,n=this.getDimensions,r=await n(e.floating);return{reference:Yne(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:r.width,height:r.height}}};function Xne(e){return fi(e).direction==="rtl"}const Wne={convertOffsetParentRelativeRectToViewportRelativeRect:$ne,getDocumentElement:ho,getClippingRect:Kne,getOffsetParent:az,getElementRects:Qne,getClientRects:Bne,getDimensions:Gne,getScale:Dd,isElement:di,isRTL:Xne};function iz(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}function Zne(e,t){let n=null,r;const o=ho(e);function s(){var u;clearTimeout(r),(u=n)==null||u.disconnect(),n=null}function c(u,f){u===void 0&&(u=!1),f===void 0&&(f=1),s();const m=e.getBoundingClientRect(),{left:g,top:h,width:y,height:x}=m;if(u||t(),!y||!x)return;const S=vb(h),N=vb(o.clientWidth-(g+y)),w=vb(o.clientHeight-(h+x)),D=vb(g),j={rootMargin:-S+"px "+-N+"px "+-w+"px "+-D+"px",threshold:fa(0,gl(1,f))||1};let P=!0;function A(T){const R=T[0].intersectionRatio;if(R!==f){if(!P)return c();R?c(!1,R):r=setTimeout(()=>{c(!1,1e-7)},1e3)}R===1&&!iz(m,e.getBoundingClientRect())&&c(),P=!1}try{n=new IntersectionObserver(A,{...j,root:o.ownerDocument})}catch{n=new IntersectionObserver(A,j)}n.observe(e)}return c(!0),s}function Jne(e,t,n,r){r===void 0&&(r={});const{ancestorScroll:o=!0,ancestorResize:s=!0,elementResize:c=typeof ResizeObserver=="function",layoutShift:u=typeof IntersectionObserver=="function",animationFrame:f=!1}=r,m=b_(e),g=o||s?[...m?Hh(m):[],...Hh(t)]:[];g.forEach(D=>{o&&D.addEventListener("scroll",n,{passive:!0}),s&&D.addEventListener("resize",n)});const h=m&&u?Zne(m,n):null;let y=-1,x=null;c&&(x=new ResizeObserver(D=>{let[C]=D;C&&C.target===m&&x&&(x.unobserve(t),cancelAnimationFrame(y),y=requestAnimationFrame(()=>{var j;(j=x)==null||j.observe(t)})),n()}),m&&!f&&x.observe(m),x.observe(t));let S,N=f?Mc(e):null;f&&w();function w(){const D=Mc(e);N&&!iz(N,D)&&n(),N=D,S=requestAnimationFrame(w)}return n(),()=>{var D;g.forEach(C=>{o&&C.removeEventListener("scroll",n),s&&C.removeEventListener("resize",n)}),h?.(),(D=x)==null||D.disconnect(),x=null,f&&cancelAnimationFrame(S)}}const ere=Sne,tre=Ane,nre=Nne,rre=Dne,are=wne,XL=xne,ire=One,ore=(e,t,n)=>{const r=new Map,o={platform:Wne,...n},s={...o.platform,_c:r};return yne(e,t,{...o,platform:s})};var sre=typeof document<"u",lre=function(){},Hb=sre?_.useLayoutEffect:lre;function oy(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(!oy(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)&&!oy(e[s],t[s]))return!1}return!0}return e!==e&&t!==t}function oz(e){return typeof window>"u"?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function WL(e,t){const n=oz(e);return Math.round(t*n)/n}function AE(e){const t=_.useRef(e);return Hb(()=>{t.current=e}),t}function cre(e){e===void 0&&(e={});const{placement:t="bottom",strategy:n="absolute",middleware:r=[],platform:o,elements:{reference:s,floating:c}={},transform:u=!0,whileElementsMounted:f,open:m}=e,[g,h]=_.useState({x:0,y:0,strategy:n,placement:t,middlewareData:{},isPositioned:!1}),[y,x]=_.useState(r);oy(y,r)||x(r);const[S,N]=_.useState(null),[w,D]=_.useState(null),C=_.useCallback(G=>{G!==T.current&&(T.current=G,N(G))},[]),j=_.useCallback(G=>{G!==R.current&&(R.current=G,D(G))},[]),P=s||S,A=c||w,T=_.useRef(null),R=_.useRef(null),M=_.useRef(g),$=f!=null,z=AE(f),U=AE(o),V=AE(m),F=_.useCallback(()=>{if(!T.current||!R.current)return;const G={placement:t,strategy:n,middleware:y};U.current&&(G.platform=U.current),ore(T.current,R.current,G).then(ne=>{const te={...ne,isPositioned:V.current!==!1};X.current&&!oy(M.current,te)&&(M.current=te,Mp.flushSync(()=>{h(te)}))})},[y,t,n,U,V]);Hb(()=>{m===!1&&M.current.isPositioned&&(M.current.isPositioned=!1,h(G=>({...G,isPositioned:!1})))},[m]);const X=_.useRef(!1);Hb(()=>(X.current=!0,()=>{X.current=!1}),[]),Hb(()=>{if(P&&(T.current=P),A&&(R.current=A),P&&A){if(z.current)return z.current(P,A,F);F()}},[P,A,F,z,$]);const ee=_.useMemo(()=>({reference:T,floating:R,setReference:C,setFloating:j}),[C,j]),q=_.useMemo(()=>({reference:P,floating:A}),[P,A]),Q=_.useMemo(()=>{const G={position:n,left:0,top:0};if(!q.floating)return G;const ne=WL(q.floating,g.x),te=WL(q.floating,g.y);return u?{...G,transform:"translate("+ne+"px, "+te+"px)",...oz(q.floating)>=1.5&&{willChange:"transform"}}:{position:n,left:ne,top:te}},[n,u,q.floating,g.x,g.y]);return _.useMemo(()=>({...g,update:F,refs:ee,elements:q,floatingStyles:Q}),[g,F,ee,q,Q])}const ure=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?XL({element:r.current,padding:o}).fn(n):{}:r?XL({element:r,padding:o}).fn(n):{}}}},dre=(e,t)=>({...ere(e),options:[e,t]}),fre=(e,t)=>({...tre(e),options:[e,t]}),mre=(e,t)=>({...ire(e),options:[e,t]}),hre=(e,t)=>({...nre(e),options:[e,t]}),pre=(e,t)=>({...rre(e),options:[e,t]}),gre=(e,t)=>({...are(e),options:[e,t]}),vre=(e,t)=>({...ure(e),options:[e,t]});var bre="Arrow",sz=_.forwardRef((e,t)=>{const{children:n,width:r=10,height:o=5,...s}=e;return ce.jsx(vt.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"})})});sz.displayName=bre;var yre=sz;function lz(e){const[t,n]=_.useState(void 0);return vr(()=>{if(e){n({width:e.offsetWidth,height:e.offsetHeight});const r=new ResizeObserver(o=>{if(!Array.isArray(o)||!o.length)return;const s=o[0];let c,u;if("borderBoxSize"in s){const f=s.borderBoxSize,m=Array.isArray(f)?f[0]:f;c=m.inlineSize,u=m.blockSize}else c=e.offsetWidth,u=e.offsetHeight;n({width:c,height:u})});return r.observe(e,{box:"border-box"}),()=>r.unobserve(e)}else n(void 0)},[e]),t}var y_="Popper",[cz,hf]=ds(y_),[xre,uz]=cz(y_),dz=e=>{const{__scopePopper:t,children:n}=e,[r,o]=_.useState(null);return ce.jsx(xre,{scope:t,anchor:r,onAnchorChange:o,children:n})};dz.displayName=y_;var fz="PopperAnchor",mz=_.forwardRef((e,t)=>{const{__scopePopper:n,virtualRef:r,...o}=e,s=uz(fz,n),c=_.useRef(null),u=Mt(t,c),f=_.useRef(null);return _.useEffect(()=>{const m=f.current;f.current=r?.current||c.current,m!==f.current&&s.onAnchorChange(f.current)}),r?null:ce.jsx(vt.div,{...o,ref:u})});mz.displayName=fz;var x_="PopperContent",[Nre,wre]=cz(x_),hz=_.forwardRef((e,t)=>{const{__scopePopper:n,side:r="bottom",sideOffset:o=0,align:s="center",alignOffset:c=0,arrowPadding:u=0,avoidCollisions:f=!0,collisionBoundary:m=[],collisionPadding:g=0,sticky:h="partial",hideWhenDetached:y=!1,updatePositionStrategy:x="optimized",onPlaced:S,...N}=e,w=uz(x_,n),[D,C]=_.useState(null),j=Mt(t,le=>C(le)),[P,A]=_.useState(null),T=lz(P),R=T?.width??0,M=T?.height??0,$=r+(s!=="center"?"-"+s:""),z=typeof g=="number"?g:{top:0,right:0,bottom:0,left:0,...g},U=Array.isArray(m)?m:[m],V=U.length>0,F={padding:z,boundary:U.filter(Sre),altBoundary:V},{refs:X,floatingStyles:ee,placement:q,isPositioned:Q,middlewareData:G}=cre({strategy:"fixed",placement:$,whileElementsMounted:(...le)=>Jne(...le,{animationFrame:x==="always"}),elements:{reference:w.anchor},middleware:[dre({mainAxis:o+M,alignmentAxis:c}),f&&fre({mainAxis:!0,crossAxis:!1,limiter:h==="partial"?mre():void 0,...F}),f&&hre({...F}),pre({...F,apply:({elements:le,rects:ye,availableWidth:me,availableHeight:xe})=>{const{width:de,height:ie}=ye.reference,ze=le.floating.style;ze.setProperty("--radix-popper-available-width",`${me}px`),ze.setProperty("--radix-popper-available-height",`${xe}px`),ze.setProperty("--radix-popper-anchor-width",`${de}px`),ze.setProperty("--radix-popper-anchor-height",`${ie}px`)}}),P&&vre({element:P,padding:u}),Are({arrowWidth:R,arrowHeight:M}),y&&gre({strategy:"referenceHidden",...F})]}),[ne,te]=vz(q),I=lo(S);vr(()=>{Q&&I?.()},[Q,I]);const H=G.arrow?.x,Y=G.arrow?.y,re=G.arrow?.centerOffset!==0,[ge,we]=_.useState();return vr(()=>{D&&we(window.getComputedStyle(D).zIndex)},[D]),ce.jsx("div",{ref:X.setFloating,"data-radix-popper-content-wrapper":"",style:{...ee,transform:Q?ee.transform:"translate(0, -200%)",minWidth:"max-content",zIndex:ge,"--radix-popper-transform-origin":[G.transformOrigin?.x,G.transformOrigin?.y].join(" "),...G.hide?.referenceHidden&&{visibility:"hidden",pointerEvents:"none"}},dir:e.dir,children:ce.jsx(Nre,{scope:n,placedSide:ne,onArrowChange:A,arrowX:H,arrowY:Y,shouldHideArrow:re,children:ce.jsx(vt.div,{"data-side":ne,"data-align":te,...N,ref:j,style:{...N.style,animation:Q?void 0:"none"}})})})});hz.displayName=x_;var pz="PopperArrow",Ere={top:"bottom",right:"left",bottom:"top",left:"right"},gz=_.forwardRef(function(t,n){const{__scopePopper:r,...o}=t,s=wre(pz,r),c=Ere[s.placedSide];return ce.jsx("span",{ref:s.onArrowChange,style:{position:"absolute",left:s.arrowX,top:s.arrowY,[c]: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(yre,{...o,ref:n,style:{...o.style,display:"block"}})})});gz.displayName=pz;function Sre(e){return e!==null}var Are=e=>({name:"transformOrigin",options:e,fn(t){const{placement:n,rects:r,middlewareData:o}=t,c=o.arrow?.centerOffset!==0,u=c?0:e.arrowWidth,f=c?0:e.arrowHeight,[m,g]=vz(n),h={start:"0%",center:"50%",end:"100%"}[g],y=(o.arrow?.x??0)+u/2,x=(o.arrow?.y??0)+f/2;let S="",N="";return m==="bottom"?(S=c?h:`${y}px`,N=`${-f}px`):m==="top"?(S=c?h:`${y}px`,N=`${r.floating.height+f}px`):m==="right"?(S=`${-f}px`,N=c?h:`${x}px`):m==="left"&&(S=`${r.floating.width+f}px`,N=c?h:`${x}px`),{data:{x:S,y:N}}}});function vz(e){const[t,n="center"]=e.split("-");return[t,n]}var N_=dz,w_=mz,E_=hz,S_=gz,Ore="Portal",Lp=_.forwardRef((e,t)=>{const{container:n,...r}=e,[o,s]=_.useState(!1);vr(()=>s(!0),[]);const c=n||o&&globalThis?.document?.body;return c?H9.createPortal(ce.jsx(vt.div,{...r,ref:t}),c):null});Lp.displayName=Ore;function Dre(e,t){return _.useReducer((n,r)=>t[n][r]??n,e)}var po=e=>{const{present:t,children:n}=e,r=Cre(t),o=typeof n=="function"?n({present:r.isPresent}):_.Children.only(n),s=Mt(r.ref,Tre(o));return typeof n=="function"||r.isPresent?_.cloneElement(o,{ref:s}):null};po.displayName="Presence";function Cre(e){const[t,n]=_.useState(),r=_.useRef(null),o=_.useRef(e),s=_.useRef("none"),c=e?"mounted":"unmounted",[u,f]=Dre(c,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return _.useEffect(()=>{const m=bb(r.current);s.current=u==="mounted"?m:"none"},[u]),vr(()=>{const m=r.current,g=o.current;if(g!==e){const y=s.current,x=bb(m);e?f("MOUNT"):x==="none"||m?.display==="none"?f("UNMOUNT"):f(g&&y!==x?"ANIMATION_OUT":"UNMOUNT"),o.current=e}},[e,f]),vr(()=>{if(t){let m;const g=t.ownerDocument.defaultView??window,h=x=>{const N=bb(r.current).includes(CSS.escape(x.animationName));if(x.target===t&&N&&(f("ANIMATION_END"),!o.current)){const w=t.style.animationFillMode;t.style.animationFillMode="forwards",m=g.setTimeout(()=>{t.style.animationFillMode==="forwards"&&(t.style.animationFillMode=w)})}},y=x=>{x.target===t&&(s.current=bb(r.current))};return t.addEventListener("animationstart",y),t.addEventListener("animationcancel",h),t.addEventListener("animationend",h),()=>{g.clearTimeout(m),t.removeEventListener("animationstart",y),t.removeEventListener("animationcancel",h),t.removeEventListener("animationend",h)}}else f("ANIMATION_END")},[t,f]),{isPresent:["mounted","unmountSuspended"].includes(u),ref:_.useCallback(m=>{r.current=m?getComputedStyle(m):null,n(m)},[])}}function bb(e){return e?.animationName||"none"}function Tre(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 _re=fx[" useInsertionEffect ".trim().toString()]||vr;function kc({prop:e,defaultProp:t,onChange:n=()=>{},caller:r}){const[o,s,c]=jre({defaultProp:t,onChange:n}),u=e!==void 0,f=u?e:o;{const g=_.useRef(e!==void 0);_.useEffect(()=>{const h=g.current;h!==u&&console.warn(`${r} is changing from ${h?"controlled":"uncontrolled"} to ${u?"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=u},[u,r])}const m=_.useCallback(g=>{if(u){const h=Rre(g)?g(e):g;h!==e&&c.current?.(h)}else s(g)},[u,e,s,c]);return[f,m]}function jre({defaultProp:e,onChange:t}){const[n,r]=_.useState(e),o=_.useRef(n),s=_.useRef(t);return _re(()=>{s.current=t},[t]),_.useEffect(()=>{o.current!==n&&(s.current?.(n),o.current=n)},[n,o]),[n,r,s]}function Rre(e){return typeof e=="function"}var bz=Object.freeze({position:"absolute",border:0,width:1,height:1,padding:0,margin:-1,overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",wordWrap:"normal"}),Pre="VisuallyHidden",yz=_.forwardRef((e,t)=>ce.jsx(vt.span,{...e,ref:t,style:{...bz,...e.style}}));yz.displayName=Pre;var Mre=yz,[Ox]=ds("Tooltip",[hf]),Dx=hf(),xz="TooltipProvider",kre=700,NC="tooltip.open",[Ire,A_]=Ox(xz),Nz=e=>{const{__scopeTooltip:t,delayDuration:n=kre,skipDelayDuration:r=300,disableHoverableContent:o=!1,children:s}=e,c=_.useRef(!0),u=_.useRef(!1),f=_.useRef(0);return _.useEffect(()=>{const m=f.current;return()=>window.clearTimeout(m)},[]),ce.jsx(Ire,{scope:t,isOpenDelayedRef:c,delayDuration:n,onOpen:_.useCallback(()=>{window.clearTimeout(f.current),c.current=!1},[]),onClose:_.useCallback(()=>{window.clearTimeout(f.current),f.current=window.setTimeout(()=>c.current=!0,r)},[r]),isPointerInTransitRef:u,onPointerInTransitChange:_.useCallback(m=>{u.current=m},[]),disableHoverableContent:o,children:s})};Nz.displayName=xz;var Fh="Tooltip",[Lre,Vp]=Ox(Fh),wz=e=>{const{__scopeTooltip:t,children:n,open:r,defaultOpen:o,onOpenChange:s,disableHoverableContent:c,delayDuration:u}=e,f=A_(Fh,e.__scopeTooltip),m=Dx(t),[g,h]=_.useState(null),y=ro(),x=_.useRef(0),S=c??f.disableHoverableContent,N=u??f.delayDuration,w=_.useRef(!1),[D,C]=kc({prop:r,defaultProp:o??!1,onChange:R=>{R?(f.onOpen(),document.dispatchEvent(new CustomEvent(NC))):f.onClose(),s?.(R)},caller:Fh}),j=_.useMemo(()=>D?w.current?"delayed-open":"instant-open":"closed",[D]),P=_.useCallback(()=>{window.clearTimeout(x.current),x.current=0,w.current=!1,C(!0)},[C]),A=_.useCallback(()=>{window.clearTimeout(x.current),x.current=0,C(!1)},[C]),T=_.useCallback(()=>{window.clearTimeout(x.current),x.current=window.setTimeout(()=>{w.current=!0,C(!0),x.current=0},N)},[N,C]);return _.useEffect(()=>()=>{x.current&&(window.clearTimeout(x.current),x.current=0)},[]),ce.jsx(N_,{...m,children:ce.jsx(Lre,{scope:t,contentId:y,open:D,stateAttribute:j,trigger:g,onTriggerChange:h,onTriggerEnter:_.useCallback(()=>{f.isOpenDelayedRef.current?T():P()},[f.isOpenDelayedRef,T,P]),onTriggerLeave:_.useCallback(()=>{S?A():(window.clearTimeout(x.current),x.current=0)},[A,S]),onOpen:P,onClose:A,disableHoverableContent:S,children:n})})};wz.displayName=Fh;var wC="TooltipTrigger",Ez=_.forwardRef((e,t)=>{const{__scopeTooltip:n,...r}=e,o=Vp(wC,n),s=A_(wC,n),c=Dx(n),u=_.useRef(null),f=Mt(t,u,o.onTriggerChange),m=_.useRef(!1),g=_.useRef(!1),h=_.useCallback(()=>m.current=!1,[]);return _.useEffect(()=>()=>document.removeEventListener("pointerup",h),[h]),ce.jsx(w_,{asChild:!0,...c,children:ce.jsx(vt.button,{"aria-describedby":o.open?o.contentId:void 0,"data-state":o.stateAttribute,...r,ref:f,onPointerMove:Le(e.onPointerMove,y=>{y.pointerType!=="touch"&&!g.current&&!s.isPointerInTransitRef.current&&(o.onTriggerEnter(),g.current=!0)}),onPointerLeave:Le(e.onPointerLeave,()=>{o.onTriggerLeave(),g.current=!1}),onPointerDown:Le(e.onPointerDown,()=>{o.open&&o.onClose(),m.current=!0,document.addEventListener("pointerup",h,{once:!0})}),onFocus:Le(e.onFocus,()=>{m.current||o.onOpen()}),onBlur:Le(e.onBlur,o.onClose),onClick:Le(e.onClick,o.onClose)})})});Ez.displayName=wC;var O_="TooltipPortal",[Vre,$re]=Ox(O_,{forceMount:void 0}),Sz=e=>{const{__scopeTooltip:t,forceMount:n,children:r,container:o}=e,s=Vp(O_,t);return ce.jsx(Vre,{scope:t,forceMount:n,children:ce.jsx(po,{present:n||s.open,children:ce.jsx(Lp,{asChild:!0,container:o,children:r})})})};Sz.displayName=O_;var kd="TooltipContent",Az=_.forwardRef((e,t)=>{const n=$re(kd,e.__scopeTooltip),{forceMount:r=n.forceMount,side:o="top",...s}=e,c=Vp(kd,e.__scopeTooltip);return ce.jsx(po,{present:r||c.open,children:c.disableHoverableContent?ce.jsx(Oz,{side:o,...s,ref:t}):ce.jsx(Bre,{side:o,...s,ref:t})})}),Bre=_.forwardRef((e,t)=>{const n=Vp(kd,e.__scopeTooltip),r=A_(kd,e.__scopeTooltip),o=_.useRef(null),s=Mt(t,o),[c,u]=_.useState(null),{trigger:f,onClose:m}=n,g=o.current,{onPointerInTransitChange:h}=r,y=_.useCallback(()=>{u(null),h(!1)},[h]),x=_.useCallback((S,N)=>{const w=S.currentTarget,D={x:S.clientX,y:S.clientY},C=Hre(D,w.getBoundingClientRect()),j=Fre(D,C),P=Kre(N.getBoundingClientRect()),A=Yre([...j,...P]);u(A),h(!0)},[h]);return _.useEffect(()=>()=>y(),[y]),_.useEffect(()=>{if(f&&g){const S=w=>x(w,g),N=w=>x(w,f);return f.addEventListener("pointerleave",S),g.addEventListener("pointerleave",N),()=>{f.removeEventListener("pointerleave",S),g.removeEventListener("pointerleave",N)}}},[f,g,x,y]),_.useEffect(()=>{if(c){const S=N=>{const w=N.target,D={x:N.clientX,y:N.clientY},C=f?.contains(w)||g?.contains(w),j=!Gre(D,c);C?y():j&&(y(),m())};return document.addEventListener("pointermove",S),()=>document.removeEventListener("pointermove",S)}},[f,g,c,m,y]),ce.jsx(Oz,{...e,ref:s})}),[zre,Ure]=Ox(Fh,{isInside:!1}),qre=Gte("TooltipContent"),Oz=_.forwardRef((e,t)=>{const{__scopeTooltip:n,children:r,"aria-label":o,onEscapeKeyDown:s,onPointerDownOutside:c,...u}=e,f=Vp(kd,n),m=Dx(n),{onClose:g}=f;return _.useEffect(()=>(document.addEventListener(NC,g),()=>document.removeEventListener(NC,g)),[g]),_.useEffect(()=>{if(f.trigger){const h=y=>{y.target?.contains(f.trigger)&&g()};return window.addEventListener("scroll",h,{capture:!0}),()=>window.removeEventListener("scroll",h,{capture:!0})}},[f.trigger,g]),ce.jsx(kp,{asChild:!0,disableOutsidePointerEvents:!1,onEscapeKeyDown:s,onPointerDownOutside:c,onFocusOutside:h=>h.preventDefault(),onDismiss:g,children:ce.jsxs(E_,{"data-state":f.stateAttribute,...m,...u,ref:t,style:{...u.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(qre,{children:r}),ce.jsx(zre,{scope:n,isInside:!0,children:ce.jsx(Mre,{id:f.contentId,role:"tooltip",children:o||r})})]})})});Az.displayName=kd;var Dz="TooltipArrow",Cz=_.forwardRef((e,t)=>{const{__scopeTooltip:n,...r}=e,o=Dx(n);return Ure(Dz,n).isInside?null:ce.jsx(S_,{...o,...r,ref:t})});Cz.displayName=Dz;function Hre(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 Kre(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 Gre(e,t){const{x:n,y:r}=e;let o=!1;for(let s=0,c=t.length-1;s<t.length;c=s++){const u=t[s],f=t[c],m=u.x,g=u.y,h=f.x,y=f.y;g>r!=y>r&&n<(h-m)*(r-g)/(y-g)+m&&(o=!o)}return o}function Yre(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),Qre(t)}function Qre(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],c=t[t.length-2];if((s.x-c.x)*(o.y-c.y)>=(s.y-c.y)*(o.x-c.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],c=n[n.length-2];if((s.x-c.x)*(o.y-c.y)>=(s.y-c.y)*(o.x-c.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 Xre=Nz,Wre=wz,Zre=Ez,Jre=Sz,eae=Az,tae=Cz;function Tz(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=Tz(e[t]))&&(r&&(r+=" "),r+=n)}else for(n in e)e[n]&&(r&&(r+=" "),r+=n);return r}function it(){for(var e,t,n=0,r="",o=arguments.length;n<o;n++)(e=arguments[n])&&(t=Tz(e))&&(r&&(r+=" "),r+=t);return r}const D_="-",nae=e=>{const t=aae(e),{conflictingClassGroups:n,conflictingClassGroupModifiers:r}=e;return{getClassGroupId:c=>{const u=c.split(D_);return u[0]===""&&u.length!==1&&u.shift(),_z(u,t)||rae(c)},getConflictingClassGroupIds:(c,u)=>{const f=n[c]||[];return u&&r[c]?[...f,...r[c]]:f}}},_z=(e,t)=>{if(e.length===0)return t.classGroupId;const n=e[0],r=t.nextPart.get(n),o=r?_z(e.slice(1),r):void 0;if(o)return o;if(t.validators.length===0)return;const s=e.join(D_);return t.validators.find(({validator:c})=>c(s))?.classGroupId},ZL=/^\[(.+)\]$/,rae=e=>{if(ZL.test(e)){const t=ZL.exec(e)[1],n=t?.substring(0,t.indexOf(":"));if(n)return"arbitrary.."+n}},aae=e=>{const{theme:t,classGroups:n}=e,r={nextPart:new Map,validators:[]};for(const o in n)EC(n[o],r,o,t);return r},EC=(e,t,n,r)=>{e.forEach(o=>{if(typeof o=="string"){const s=o===""?t:JL(t,o);s.classGroupId=n;return}if(typeof o=="function"){if(iae(o)){EC(o(r),t,n,r);return}t.validators.push({validator:o,classGroupId:n});return}Object.entries(o).forEach(([s,c])=>{EC(c,JL(t,s),n,r)})})},JL=(e,t)=>{let n=e;return t.split(D_).forEach(r=>{n.nextPart.has(r)||n.nextPart.set(r,{nextPart:new Map,validators:[]}),n=n.nextPart.get(r)}),n},iae=e=>e.isThemeGetter,oae=e=>{if(e<1)return{get:()=>{},set:()=>{}};let t=0,n=new Map,r=new Map;const o=(s,c)=>{n.set(s,c),t++,t>e&&(t=0,r=n,n=new Map)};return{get(s){let c=n.get(s);if(c!==void 0)return c;if((c=r.get(s))!==void 0)return o(s,c),c},set(s,c){n.has(s)?n.set(s,c):o(s,c)}}},SC="!",AC=":",sae=AC.length,lae=e=>{const{prefix:t,experimentalParseClassName:n}=e;let r=o=>{const s=[];let c=0,u=0,f=0,m;for(let S=0;S<o.length;S++){let N=o[S];if(c===0&&u===0){if(N===AC){s.push(o.slice(f,S)),f=S+sae;continue}if(N==="/"){m=S;continue}}N==="["?c++:N==="]"?c--:N==="("?u++:N===")"&&u--}const g=s.length===0?o:o.substring(f),h=cae(g),y=h!==g,x=m&&m>f?m-f:void 0;return{modifiers:s,hasImportantModifier:y,baseClassName:h,maybePostfixModifierPosition:x}};if(t){const o=t+AC,s=r;r=c=>c.startsWith(o)?s(c.substring(o.length)):{isExternal:!0,modifiers:[],hasImportantModifier:!1,baseClassName:c,maybePostfixModifierPosition:void 0}}if(n){const o=r;r=s=>n({className:s,parseClassName:o})}return r},cae=e=>e.endsWith(SC)?e.substring(0,e.length-1):e.startsWith(SC)?e.substring(1):e,uae=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(c=>{c[0]==="["||t[c]?(o.push(...s.sort(),c),s=[]):s.push(c)}),o.push(...s.sort()),o}},dae=e=>({cache:oae(e.cacheSize),parseClassName:lae(e),sortModifiers:uae(e),...nae(e)}),fae=/\s+/,mae=(e,t)=>{const{parseClassName:n,getClassGroupId:r,getConflictingClassGroupIds:o,sortModifiers:s}=t,c=[],u=e.trim().split(fae);let f="";for(let m=u.length-1;m>=0;m-=1){const g=u[m],{isExternal:h,modifiers:y,hasImportantModifier:x,baseClassName:S,maybePostfixModifierPosition:N}=n(g);if(h){f=g+(f.length>0?" "+f:f);continue}let w=!!N,D=r(w?S.substring(0,N):S);if(!D){if(!w){f=g+(f.length>0?" "+f:f);continue}if(D=r(S),!D){f=g+(f.length>0?" "+f:f);continue}w=!1}const C=s(y).join(":"),j=x?C+SC:C,P=j+D;if(c.includes(P))continue;c.push(P);const A=o(D,w);for(let T=0;T<A.length;++T){const R=A[T];c.push(j+R)}f=g+(f.length>0?" "+f:f)}return f};function hae(){let e=0,t,n,r="";for(;e<arguments.length;)(t=arguments[e++])&&(n=jz(t))&&(r&&(r+=" "),r+=n);return r}const jz=e=>{if(typeof e=="string")return e;let t,n="";for(let r=0;r<e.length;r++)e[r]&&(t=jz(e[r]))&&(n&&(n+=" "),n+=t);return n};function pae(e,...t){let n,r,o,s=c;function c(f){const m=t.reduce((g,h)=>h(g),e());return n=dae(m),r=n.cache.get,o=n.cache.set,s=u,u(f)}function u(f){const m=r(f);if(m)return m;const g=mae(f,n);return o(f,g),g}return function(){return s(hae.apply(null,arguments))}}const kn=e=>{const t=n=>n[e]||[];return t.isThemeGetter=!0,t},Rz=/^\[(?:(\w[\w-]*):)?(.+)\]$/i,Pz=/^\((?:(\w[\w-]*):)?(.+)\)$/i,gae=/^\d+\/\d+$/,vae=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,bae=/\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$/,yae=/^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/,xae=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,Nae=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,fd=e=>gae.test(e),ht=e=>!!e&&!Number.isNaN(Number(e)),rl=e=>!!e&&Number.isInteger(Number(e)),OE=e=>e.endsWith("%")&&ht(e.slice(0,-1)),Qo=e=>vae.test(e),wae=()=>!0,Eae=e=>bae.test(e)&&!yae.test(e),Mz=()=>!1,Sae=e=>xae.test(e),Aae=e=>Nae.test(e),Oae=e=>!ke(e)&&!Ie(e),Dae=e=>pf(e,Lz,Mz),ke=e=>Rz.test(e),fc=e=>pf(e,Vz,Eae),DE=e=>pf(e,Rae,ht),eV=e=>pf(e,kz,Mz),Cae=e=>pf(e,Iz,Aae),yb=e=>pf(e,$z,Sae),Ie=e=>Pz.test(e),ch=e=>gf(e,Vz),Tae=e=>gf(e,Pae),tV=e=>gf(e,kz),_ae=e=>gf(e,Lz),jae=e=>gf(e,Iz),xb=e=>gf(e,$z,!0),pf=(e,t,n)=>{const r=Rz.exec(e);return r?r[1]?t(r[1]):n(r[2]):!1},gf=(e,t,n=!1)=>{const r=Pz.exec(e);return r?r[1]?t(r[1]):n:!1},kz=e=>e==="position"||e==="percentage",Iz=e=>e==="image"||e==="url",Lz=e=>e==="length"||e==="size"||e==="bg-size",Vz=e=>e==="length",Rae=e=>e==="number",Pae=e=>e==="family-name",$z=e=>e==="shadow",Mae=()=>{const e=kn("color"),t=kn("font"),n=kn("text"),r=kn("font-weight"),o=kn("tracking"),s=kn("leading"),c=kn("breakpoint"),u=kn("container"),f=kn("spacing"),m=kn("radius"),g=kn("shadow"),h=kn("inset-shadow"),y=kn("text-shadow"),x=kn("drop-shadow"),S=kn("blur"),N=kn("perspective"),w=kn("aspect"),D=kn("ease"),C=kn("animate"),j=()=>["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(),Ie,ke],T=()=>["auto","hidden","clip","visible","scroll"],R=()=>["auto","contain","none"],M=()=>[Ie,ke,f],$=()=>[fd,"full","auto",...M()],z=()=>[rl,"none","subgrid",Ie,ke],U=()=>["auto",{span:["full",rl,Ie,ke]},rl,Ie,ke],V=()=>[rl,"auto",Ie,ke],F=()=>["auto","min","max","fr",Ie,ke],X=()=>["start","end","center","between","around","evenly","stretch","baseline","center-safe","end-safe"],ee=()=>["start","end","center","stretch","center-safe","end-safe"],q=()=>["auto",...M()],Q=()=>[fd,"auto","full","dvw","dvh","lvw","lvh","svw","svh","min","max","fit",...M()],G=()=>[e,Ie,ke],ne=()=>[...P(),tV,eV,{position:[Ie,ke]}],te=()=>["no-repeat",{repeat:["","x","y","space","round"]}],I=()=>["auto","cover","contain",_ae,Dae,{size:[Ie,ke]}],H=()=>[OE,ch,fc],Y=()=>["","none","full",m,Ie,ke],re=()=>["",ht,ch,fc],ge=()=>["solid","dashed","dotted","double"],we=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],le=()=>[ht,OE,tV,eV],ye=()=>["","none",S,Ie,ke],me=()=>["none",ht,Ie,ke],xe=()=>["none",ht,Ie,ke],de=()=>[ht,Ie,ke],ie=()=>[fd,"full",...M()];return{cacheSize:500,theme:{animate:["spin","ping","pulse","bounce"],aspect:["video"],blur:[Qo],breakpoint:[Qo],color:[wae],container:[Qo],"drop-shadow":[Qo],ease:["in","out","in-out"],font:[Oae],"font-weight":["thin","extralight","light","normal","medium","semibold","bold","extrabold","black"],"inset-shadow":[Qo],leading:["none","tight","snug","normal","relaxed","loose"],perspective:["dramatic","near","normal","midrange","distant","none"],radius:[Qo],shadow:[Qo],spacing:["px",ht],text:[Qo],"text-shadow":[Qo],tracking:["tighter","tight","normal","wide","wider","widest"]},classGroups:{aspect:[{aspect:["auto","square",fd,ke,Ie,w]}],container:["container"],columns:[{columns:[ht,ke,Ie,u]}],"break-after":[{"break-after":j()}],"break-before":[{"break-before":j()}],"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:T()}],"overflow-x":[{"overflow-x":T()}],"overflow-y":[{"overflow-y":T()}],overscroll:[{overscroll:R()}],"overscroll-x":[{"overscroll-x":R()}],"overscroll-y":[{"overscroll-y":R()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:$()}],"inset-x":[{"inset-x":$()}],"inset-y":[{"inset-y":$()}],start:[{start:$()}],end:[{end:$()}],top:[{top:$()}],right:[{right:$()}],bottom:[{bottom:$()}],left:[{left:$()}],visibility:["visible","invisible","collapse"],z:[{z:[rl,"auto",Ie,ke]}],basis:[{basis:[fd,"full","auto",u,...M()]}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["nowrap","wrap","wrap-reverse"]}],flex:[{flex:[ht,fd,"auto","initial","none",ke]}],grow:[{grow:["",ht,Ie,ke]}],shrink:[{shrink:["",ht,Ie,ke]}],order:[{order:[rl,"first","last","none",Ie,ke]}],"grid-cols":[{"grid-cols":z()}],"col-start-end":[{col:U()}],"col-start":[{"col-start":V()}],"col-end":[{"col-end":V()}],"grid-rows":[{"grid-rows":z()}],"row-start-end":[{row:U()}],"row-start":[{"row-start":V()}],"row-end":[{"row-end":V()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":F()}],"auto-rows":[{"auto-rows":F()}],gap:[{gap:M()}],"gap-x":[{"gap-x":M()}],"gap-y":[{"gap-y":M()}],"justify-content":[{justify:[...X(),"normal"]}],"justify-items":[{"justify-items":[...ee(),"normal"]}],"justify-self":[{"justify-self":["auto",...ee()]}],"align-content":[{content:["normal",...X()]}],"align-items":[{items:[...ee(),{baseline:["","last"]}]}],"align-self":[{self:["auto",...ee(),{baseline:["","last"]}]}],"place-content":[{"place-content":X()}],"place-items":[{"place-items":[...ee(),"baseline"]}],"place-self":[{"place-self":["auto",...ee()]}],p:[{p:M()}],px:[{px:M()}],py:[{py:M()}],ps:[{ps:M()}],pe:[{pe:M()}],pt:[{pt:M()}],pr:[{pr:M()}],pb:[{pb:M()}],pl:[{pl:M()}],m:[{m:q()}],mx:[{mx:q()}],my:[{my:q()}],ms:[{ms:q()}],me:[{me:q()}],mt:[{mt:q()}],mr:[{mr:q()}],mb:[{mb:q()}],ml:[{ml:q()}],"space-x":[{"space-x":M()}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":M()}],"space-y-reverse":["space-y-reverse"],size:[{size:Q()}],w:[{w:[u,"screen",...Q()]}],"min-w":[{"min-w":[u,"screen","none",...Q()]}],"max-w":[{"max-w":[u,"screen","none","prose",{screen:[c]},...Q()]}],h:[{h:["screen","lh",...Q()]}],"min-h":[{"min-h":["screen","lh","none",...Q()]}],"max-h":[{"max-h":["screen","lh",...Q()]}],"font-size":[{text:["base",n,ch,fc]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:[r,Ie,DE]}],"font-stretch":[{"font-stretch":["ultra-condensed","extra-condensed","condensed","semi-condensed","normal","semi-expanded","expanded","extra-expanded","ultra-expanded",OE,ke]}],"font-family":[{font:[Tae,ke,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,Ie,ke]}],"line-clamp":[{"line-clamp":[ht,"none",Ie,DE]}],leading:[{leading:[s,...M()]}],"list-image":[{"list-image":["none",Ie,ke]}],"list-style-position":[{list:["inside","outside"]}],"list-style-type":[{list:["disc","decimal","none",Ie,ke]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"placeholder-color":[{placeholder:G()}],"text-color":[{text:G()}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...ge(),"wavy"]}],"text-decoration-thickness":[{decoration:[ht,"from-font","auto",Ie,fc]}],"text-decoration-color":[{decoration:G()}],"underline-offset":[{"underline-offset":[ht,"auto",Ie,ke]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:M()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",Ie,ke]}],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",Ie,ke]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:ne()}],"bg-repeat":[{bg:te()}],"bg-size":[{bg:I()}],"bg-image":[{bg:["none",{linear:[{to:["t","tr","r","br","b","bl","l","tl"]},rl,Ie,ke],radial:["",Ie,ke],conic:[rl,Ie,ke]},jae,Cae]}],"bg-color":[{bg:G()}],"gradient-from-pos":[{from:H()}],"gradient-via-pos":[{via:H()}],"gradient-to-pos":[{to:H()}],"gradient-from":[{from:G()}],"gradient-via":[{via:G()}],"gradient-to":[{to:G()}],rounded:[{rounded:Y()}],"rounded-s":[{"rounded-s":Y()}],"rounded-e":[{"rounded-e":Y()}],"rounded-t":[{"rounded-t":Y()}],"rounded-r":[{"rounded-r":Y()}],"rounded-b":[{"rounded-b":Y()}],"rounded-l":[{"rounded-l":Y()}],"rounded-ss":[{"rounded-ss":Y()}],"rounded-se":[{"rounded-se":Y()}],"rounded-ee":[{"rounded-ee":Y()}],"rounded-es":[{"rounded-es":Y()}],"rounded-tl":[{"rounded-tl":Y()}],"rounded-tr":[{"rounded-tr":Y()}],"rounded-br":[{"rounded-br":Y()}],"rounded-bl":[{"rounded-bl":Y()}],"border-w":[{border:re()}],"border-w-x":[{"border-x":re()}],"border-w-y":[{"border-y":re()}],"border-w-s":[{"border-s":re()}],"border-w-e":[{"border-e":re()}],"border-w-t":[{"border-t":re()}],"border-w-r":[{"border-r":re()}],"border-w-b":[{"border-b":re()}],"border-w-l":[{"border-l":re()}],"divide-x":[{"divide-x":re()}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":re()}],"divide-y-reverse":["divide-y-reverse"],"border-style":[{border:[...ge(),"hidden","none"]}],"divide-style":[{divide:[...ge(),"hidden","none"]}],"border-color":[{border:G()}],"border-color-x":[{"border-x":G()}],"border-color-y":[{"border-y":G()}],"border-color-s":[{"border-s":G()}],"border-color-e":[{"border-e":G()}],"border-color-t":[{"border-t":G()}],"border-color-r":[{"border-r":G()}],"border-color-b":[{"border-b":G()}],"border-color-l":[{"border-l":G()}],"divide-color":[{divide:G()}],"outline-style":[{outline:[...ge(),"none","hidden"]}],"outline-offset":[{"outline-offset":[ht,Ie,ke]}],"outline-w":[{outline:["",ht,ch,fc]}],"outline-color":[{outline:G()}],shadow:[{shadow:["","none",g,xb,yb]}],"shadow-color":[{shadow:G()}],"inset-shadow":[{"inset-shadow":["none",h,xb,yb]}],"inset-shadow-color":[{"inset-shadow":G()}],"ring-w":[{ring:re()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:G()}],"ring-offset-w":[{"ring-offset":[ht,fc]}],"ring-offset-color":[{"ring-offset":G()}],"inset-ring-w":[{"inset-ring":re()}],"inset-ring-color":[{"inset-ring":G()}],"text-shadow":[{"text-shadow":["none",y,xb,yb]}],"text-shadow-color":[{"text-shadow":G()}],opacity:[{opacity:[ht,Ie,ke]}],"mix-blend":[{"mix-blend":[...we(),"plus-darker","plus-lighter"]}],"bg-blend":[{"bg-blend":we()}],"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":[ht]}],"mask-image-linear-from-pos":[{"mask-linear-from":le()}],"mask-image-linear-to-pos":[{"mask-linear-to":le()}],"mask-image-linear-from-color":[{"mask-linear-from":G()}],"mask-image-linear-to-color":[{"mask-linear-to":G()}],"mask-image-t-from-pos":[{"mask-t-from":le()}],"mask-image-t-to-pos":[{"mask-t-to":le()}],"mask-image-t-from-color":[{"mask-t-from":G()}],"mask-image-t-to-color":[{"mask-t-to":G()}],"mask-image-r-from-pos":[{"mask-r-from":le()}],"mask-image-r-to-pos":[{"mask-r-to":le()}],"mask-image-r-from-color":[{"mask-r-from":G()}],"mask-image-r-to-color":[{"mask-r-to":G()}],"mask-image-b-from-pos":[{"mask-b-from":le()}],"mask-image-b-to-pos":[{"mask-b-to":le()}],"mask-image-b-from-color":[{"mask-b-from":G()}],"mask-image-b-to-color":[{"mask-b-to":G()}],"mask-image-l-from-pos":[{"mask-l-from":le()}],"mask-image-l-to-pos":[{"mask-l-to":le()}],"mask-image-l-from-color":[{"mask-l-from":G()}],"mask-image-l-to-color":[{"mask-l-to":G()}],"mask-image-x-from-pos":[{"mask-x-from":le()}],"mask-image-x-to-pos":[{"mask-x-to":le()}],"mask-image-x-from-color":[{"mask-x-from":G()}],"mask-image-x-to-color":[{"mask-x-to":G()}],"mask-image-y-from-pos":[{"mask-y-from":le()}],"mask-image-y-to-pos":[{"mask-y-to":le()}],"mask-image-y-from-color":[{"mask-y-from":G()}],"mask-image-y-to-color":[{"mask-y-to":G()}],"mask-image-radial":[{"mask-radial":[Ie,ke]}],"mask-image-radial-from-pos":[{"mask-radial-from":le()}],"mask-image-radial-to-pos":[{"mask-radial-to":le()}],"mask-image-radial-from-color":[{"mask-radial-from":G()}],"mask-image-radial-to-color":[{"mask-radial-to":G()}],"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":[ht]}],"mask-image-conic-from-pos":[{"mask-conic-from":le()}],"mask-image-conic-to-pos":[{"mask-conic-to":le()}],"mask-image-conic-from-color":[{"mask-conic-from":G()}],"mask-image-conic-to-color":[{"mask-conic-to":G()}],"mask-mode":[{mask:["alpha","luminance","match"]}],"mask-origin":[{"mask-origin":["border","padding","content","fill","stroke","view"]}],"mask-position":[{mask:ne()}],"mask-repeat":[{mask:te()}],"mask-size":[{mask:I()}],"mask-type":[{"mask-type":["alpha","luminance"]}],"mask-image":[{mask:["none",Ie,ke]}],filter:[{filter:["","none",Ie,ke]}],blur:[{blur:ye()}],brightness:[{brightness:[ht,Ie,ke]}],contrast:[{contrast:[ht,Ie,ke]}],"drop-shadow":[{"drop-shadow":["","none",x,xb,yb]}],"drop-shadow-color":[{"drop-shadow":G()}],grayscale:[{grayscale:["",ht,Ie,ke]}],"hue-rotate":[{"hue-rotate":[ht,Ie,ke]}],invert:[{invert:["",ht,Ie,ke]}],saturate:[{saturate:[ht,Ie,ke]}],sepia:[{sepia:["",ht,Ie,ke]}],"backdrop-filter":[{"backdrop-filter":["","none",Ie,ke]}],"backdrop-blur":[{"backdrop-blur":ye()}],"backdrop-brightness":[{"backdrop-brightness":[ht,Ie,ke]}],"backdrop-contrast":[{"backdrop-contrast":[ht,Ie,ke]}],"backdrop-grayscale":[{"backdrop-grayscale":["",ht,Ie,ke]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[ht,Ie,ke]}],"backdrop-invert":[{"backdrop-invert":["",ht,Ie,ke]}],"backdrop-opacity":[{"backdrop-opacity":[ht,Ie,ke]}],"backdrop-saturate":[{"backdrop-saturate":[ht,Ie,ke]}],"backdrop-sepia":[{"backdrop-sepia":["",ht,Ie,ke]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":M()}],"border-spacing-x":[{"border-spacing-x":M()}],"border-spacing-y":[{"border-spacing-y":M()}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["","all","colors","opacity","shadow","transform","none",Ie,ke]}],"transition-behavior":[{transition:["normal","discrete"]}],duration:[{duration:[ht,"initial",Ie,ke]}],ease:[{ease:["linear","initial",D,Ie,ke]}],delay:[{delay:[ht,Ie,ke]}],animate:[{animate:["none",C,Ie,ke]}],backface:[{backface:["hidden","visible"]}],perspective:[{perspective:[N,Ie,ke]}],"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:xe()}],"scale-x":[{"scale-x":xe()}],"scale-y":[{"scale-y":xe()}],"scale-z":[{"scale-z":xe()}],"scale-3d":["scale-3d"],skew:[{skew:de()}],"skew-x":[{"skew-x":de()}],"skew-y":[{"skew-y":de()}],transform:[{transform:[Ie,ke,"","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:G()}],appearance:[{appearance:["none","auto"]}],"caret-color":[{caret:G()}],"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",Ie,ke]}],"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":M()}],"scroll-mx":[{"scroll-mx":M()}],"scroll-my":[{"scroll-my":M()}],"scroll-ms":[{"scroll-ms":M()}],"scroll-me":[{"scroll-me":M()}],"scroll-mt":[{"scroll-mt":M()}],"scroll-mr":[{"scroll-mr":M()}],"scroll-mb":[{"scroll-mb":M()}],"scroll-ml":[{"scroll-ml":M()}],"scroll-p":[{"scroll-p":M()}],"scroll-px":[{"scroll-px":M()}],"scroll-py":[{"scroll-py":M()}],"scroll-ps":[{"scroll-ps":M()}],"scroll-pe":[{"scroll-pe":M()}],"scroll-pt":[{"scroll-pt":M()}],"scroll-pr":[{"scroll-pr":M()}],"scroll-pb":[{"scroll-pb":M()}],"scroll-pl":[{"scroll-pl":M()}],"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",Ie,ke]}],fill:[{fill:["none",...G()]}],"stroke-w":[{stroke:[ht,ch,fc,DE]}],stroke:[{stroke:["none",...G()]}],"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"]}},kae=pae(Mae);function wt(...e){return kae(it(e))}function C_({delayDuration:e=0,...t}){return b.jsxDEV(Xre,{"data-loc":"client/src/components/ui/tooltip.tsx:11","data-slot":"tooltip-provider",delayDuration:e,...t},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/components/ui/tooltip.tsx",lineNumber:11,columnNumber:5},this)}function CE({...e}){return b.jsxDEV(C_,{"data-loc":"client/src/components/ui/tooltip.tsx:23",children:b.jsxDEV(Wre,{"data-loc":"client/src/components/ui/tooltip.tsx:24","data-slot":"tooltip",...e},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/components/ui/tooltip.tsx",lineNumber:24,columnNumber:7},this)},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/components/ui/tooltip.tsx",lineNumber:23,columnNumber:5},this)}function TE({...e}){return b.jsxDEV(Zre,{"data-loc":"client/src/components/ui/tooltip.tsx:32","data-slot":"tooltip-trigger",...e},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/components/ui/tooltip.tsx",lineNumber:32,columnNumber:10},this)}function _E({className:e,sideOffset:t=0,children:n,...r}){return b.jsxDEV(Jre,{"data-loc":"client/src/components/ui/tooltip.tsx:42",children:b.jsxDEV(eae,{"data-loc":"client/src/components/ui/tooltip.tsx:43","data-slot":"tooltip-content",sideOffset:t,className:wt("bg-foreground text-background animate-in fade-in-0 zoom-in-95 data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=closed]:zoom-out-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 z-50 w-fit origin-(--radix-tooltip-content-transform-origin) rounded-md px-3 py-1.5 text-xs text-balance",e),...r,children:[n,b.jsxDEV(tae,{"data-loc":"client/src/components/ui/tooltip.tsx:53",className:"bg-foreground fill-foreground z-50 size-2.5 translate-y-[calc(-50%_-_2px)] rotate-45 rounded-[2px]"},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/components/ui/tooltip.tsx",lineNumber:53,columnNumber:9},this)]},void 0,!0,{fileName:"/home/ubuntu/nac-admin/client/src/components/ui/tooltip.tsx",lineNumber:43,columnNumber:7},this)},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/components/ui/tooltip.tsx",lineNumber:42,columnNumber:5},this)}const nV=e=>typeof e=="boolean"?`${e}`:e===0?"0":e,rV=it,T_=(e,t)=>n=>{var r;if(t?.variants==null)return rV(e,n?.class,n?.className);const{variants:o,defaultVariants:s}=t,c=Object.keys(o).map(m=>{const g=n?.[m],h=s?.[m];if(g===null)return null;const y=nV(g)||nV(h);return o[m][y]}),u=n&&Object.entries(n).reduce((m,g)=>{let[h,y]=g;return y===void 0||(m[h]=y),m},{}),f=t==null||(r=t.compoundVariants)===null||r===void 0?void 0:r.reduce((m,g)=>{let{class:h,className:y,...x}=g;return Object.entries(x).every(S=>{let[N,w]=S;return Array.isArray(w)?w.includes({...s,...u}[N]):{...s,...u}[N]===w})?[...m,h,y]:m},[]);return rV(e,c,f,n?.class,n?.className)},Iae=T_("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 rt({className:e,variant:t,size:n,asChild:r=!1,...o}){const s=r?F9:"button";return b.jsxDEV(s,{"data-loc":"client/src/components/ui/button.tsx:52","data-slot":"button",className:wt(Iae({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 At({className:e,...t}){return b.jsxDEV("div",{"data-loc":"client/src/components/ui/card.tsx:7","data-slot":"card",className:wt("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 ha({className:e,...t}){return b.jsxDEV("div",{"data-loc":"client/src/components/ui/card.tsx:20","data-slot":"card-header",className:wt("@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 pa({className:e,...t}){return b.jsxDEV("div",{"data-loc":"client/src/components/ui/card.tsx:33","data-slot":"card-title",className:wt("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 Bz({className:e,...t}){return b.jsxDEV("div",{"data-loc":"client/src/components/ui/card.tsx:43","data-slot":"card-description",className:wt("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 Ot({className:e,...t}){return b.jsxDEV("div",{"data-loc":"client/src/components/ui/card.tsx:66","data-slot":"card-content",className:wt("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 Lae=e=>e.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),zz=(...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 Vae={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 $ae=_.forwardRef(({color:e="currentColor",size:t=24,strokeWidth:n=2,absoluteStrokeWidth:r,className:o="",children:s,iconNode:c,...u},f)=>_.createElement("svg",{ref:f,...Vae,width:t,height:t,stroke:e,strokeWidth:r?Number(n)*24/Number(t):n,className:zz("lucide",o),...u},[...c.map(([m,g])=>_.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 Ke=(e,t)=>{const n=_.forwardRef(({className:r,...o},s)=>_.createElement($ae,{ref:s,iconNode:t,className:zz(`lucide-${Lae(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 sy=Ke("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 yd=Ke("Archive",[["rect",{width:"20",height:"5",x:"2",y:"3",rx:"1",key:"1wp1u1"}],["path",{d:"M4 8v11a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V8",key:"1s80jp"}],["path",{d:"M10 12h4",key:"a56b0p"}]]);/**
|
||
* @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 Uz=Ke("Bell",[["path",{d:"M6 8a6 6 0 0 1 12 0c0 7 3 9 3 9H3s3-2 3-9",key:"1qo2s2"}],["path",{d:"M10.3 21a1.94 1.94 0 0 0 3.4 0",key:"qgo35s"}]]);/**
|
||
* @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 __=Ke("BookOpen",[["path",{d:"M12 7v14",key:"1akyts"}],["path",{d:"M3 18a1 1 0 0 1-1-1V4a1 1 0 0 1 1-1h5a4 4 0 0 1 4 4 4 4 0 0 1 4-4h5a1 1 0 0 1 1 1v13a1 1 0 0 1-1 1h-6a3 3 0 0 0-3 3 3 3 0 0 0-3-3z",key:"ruj8y"}]]);/**
|
||
* @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 Nd=Ke("Bot",[["path",{d:"M12 8V4H8",key:"hb8ula"}],["rect",{width:"16",height:"12",x:"4",y:"8",rx:"2",key:"enze0r"}],["path",{d:"M2 14h2",key:"vft8re"}],["path",{d:"M20 14h2",key:"4cs60a"}],["path",{d:"M15 13v2",key:"1xurst"}],["path",{d:"M9 13v2",key:"rq6x2g"}]]);/**
|
||
* @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=Ke("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 zae=Ke("ChartColumn",[["path",{d:"M3 3v16a2 2 0 0 0 2 2h16",key:"c24i48"}],["path",{d:"M18 17V9",key:"2bz60n"}],["path",{d:"M13 17V5",key:"1frdt8"}],["path",{d:"M8 17v-3",key:"17ska0"}]]);/**
|
||
* @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=Ke("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 Cx=Ke("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 qz=Ke("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 j_=Ke("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 OC=Ke("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 mi=Ke("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 Kh=Ke("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 qae=Ke("ClipboardCheck",[["rect",{width:"8",height:"4",x:"8",y:"2",rx:"1",ry:"1",key:"tgr4d6"}],["path",{d:"M16 4h2a2 2 0 0 1 2 2v14a2 2 0 0 1-2 2H6a2 2 0 0 1-2-2V6a2 2 0 0 1 2-2h2",key:"116196"}],["path",{d:"m9 14 2 2 4-4",key:"df797q"}]]);/**
|
||
* @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 vf=Ke("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 R_=Ke("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 Hae=Ke("ExternalLink",[["path",{d:"M15 3h6v6",key:"1q9fwt"}],["path",{d:"M10 14 21 3",key:"gplh6r"}],["path",{d:"M18 13v6a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h6",key:"a6xqqp"}]]);/**
|
||
* @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=Ke("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 Kae=Ke("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 Hz=Ke("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 Gae=Ke("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 Ic=Ke("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 Yae=Ke("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 P_=Ke("Info",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M12 16v-4",key:"1dtifu"}],["path",{d:"M12 8h.01",key:"e9boi3"}]]);/**
|
||
* @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 Fb=Ke("Languages",[["path",{d:"m5 8 6 6",key:"1wu5hv"}],["path",{d:"m4 14 6-6 2-3",key:"1k1g8d"}],["path",{d:"M2 5h12",key:"or177f"}],["path",{d:"M7 2h1",key:"1t2jsx"}],["path",{d:"m22 22-5-10-5 10",key:"don7ne"}],["path",{d:"M14 18h6",key:"1m8k6r"}]]);/**
|
||
* @license lucide-react v0.453.0 - ISC
|
||
*
|
||
* This source code is licensed under the ISC license.
|
||
* See the LICENSE file in the root directory of this source tree.
|
||
*/const Qae=Ke("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 Xae=Ke("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 _r=Ke("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 Wae=Ke("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 Zae=Ke("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 Jae=Ke("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 eie=Ke("MessageSquare",[["path",{d:"M21 15a2 2 0 0 1-2 2H7l-4 4V5a2 2 0 0 1 2-2h14a2 2 0 0 1 2 2z",key:"1lielz"}]]);/**
|
||
* @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 Fz=Ke("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 DC=Ke("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 $p=Ke("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 tie=Ke("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 eu=Ke("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 nie=Ke("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 rie=Ke("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 Kz=Ke("Send",[["path",{d:"M14.536 21.686a.5.5 0 0 0 .937-.024l6.5-19a.496.496 0 0 0-.635-.635l-19 6.5a.5.5 0 0 0-.024.937l7.93 3.18a2 2 0 0 1 1.112 1.11z",key:"1ffxy3"}],["path",{d:"m21.854 2.147-10.94 10.939",key:"12cjpa"}]]);/**
|
||
* @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 aie=Ke("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 bl=Ke("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 CC=Ke("Sparkles",[["path",{d:"M9.937 15.5A2 2 0 0 0 8.5 14.063l-6.135-1.582a.5.5 0 0 1 0-.962L8.5 9.936A2 2 0 0 0 9.937 8.5l1.582-6.135a.5.5 0 0 1 .963 0L14.063 8.5A2 2 0 0 0 15.5 9.937l6.135 1.581a.5.5 0 0 1 0 .964L15.5 14.063a2 2 0 0 0-1.437 1.437l-1.582 6.135a.5.5 0 0 1-.963 0z",key:"4pj2yx"}],["path",{d:"M20 3v4",key:"1olli1"}],["path",{d:"M22 5h-4",key:"1gvqau"}],["path",{d:"M4 17v2",key:"vumght"}],["path",{d:"M5 18H3",key:"zchphs"}]]);/**
|
||
* @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 Gz=Ke("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 Yz=Ke("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 Qz=Ke("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 Xz=Ke("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 Lc=Ke("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 TC=Ke("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 iie=Ke("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 oie=Ke("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 sie=Ke("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 Th=Ke("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 lie(e,t){if(e instanceof RegExp)return{keys:!1,pattern:e};var n,r,o,s,c=[],u="",f=e.split("/");for(f[0]||f.shift();o=f.shift();)n=o[0],n==="*"?(c.push(n),u+=o[1]==="?"?"(?:/(.*))?":"/(.*)"):n===":"?(r=o.indexOf("?",1),s=o.indexOf(".",1),c.push(o.substring(1,~r?r:~s?s:o.length)),u+=~r&&!~s?"(?:/([^/]+?))?":"/([^/]+?)",~s&&(u+=(~r?"?":"")+"\\"+o.substring(s))):u+="/"+o;return{keys:c,pattern:new RegExp("^"+u+(t?"(?=$|/)":"/?$"),"i")}}const cie=fx.useInsertionEffect,uie=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u",die=uie?_.useLayoutEffect:_.useEffect,fie=cie||die,Wz=e=>{const t=_.useRef([e,(...n)=>t[0](...n)]).current;return fie(()=>{t[0]=e}),t[1]},mie="popstate",M_="pushState",k_="replaceState",hie="hashchange",aV=[mie,M_,k_,hie],pie=e=>{for(const t of aV)addEventListener(t,e);return()=>{for(const t of aV)removeEventListener(t,e)}},Zz=(e,t)=>C9.useSyncExternalStore(pie,e,t),gie=()=>location.search,vie=({ssrSearch:e=""}={})=>Zz(gie,()=>e),iV=()=>location.pathname,bie=({ssrPath:e}={})=>Zz(iV,e?()=>e:iV),yie=(e,{replace:t=!1,state:n=null}={})=>history[t?k_:M_](n,"",e),xie=(e={})=>[bie(e),yie],oV=Symbol.for("wouter_v3");if(typeof history<"u"&&typeof window[oV]>"u"){for(const e of[M_,k_]){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,oV,{value:!0})}const Nie=(e,t)=>t.toLowerCase().indexOf(e.toLowerCase())?"~"+t:t.slice(e.length)||"/",Jz=(e="")=>e==="/"?"":e,wie=(e,t)=>e[0]==="~"?e.slice(1):Jz(t)+e,Eie=(e="",t)=>Nie(_C(Jz(e)),_C(t)),Sie=e=>e[0]==="?"?e.slice(1):e,_C=e=>{try{return decodeURI(e)}catch{return e}},Aie=e=>_C(Sie(e)),eU={hook:xie,searchHook:vie,parser:lie,base:"",ssrPath:void 0,ssrSearch:void 0,ssrContext:void 0,hrefs:e=>e},tU=_.createContext(eU),bf=()=>_.useContext(tU),nU={},rU=_.createContext(nU),Oie=()=>_.useContext(rU),Tx=e=>{const[t,n]=e.hook(e);return[Eie(e.base,t),Wz((r,o)=>n(wie(r,e.base),o))]},_x=()=>Tx(bf()),Die=()=>{const e=bf();return Aie(e.searchHook(e))},aU=(e,t,n,r)=>{const{pattern:o,keys:s}=t instanceof RegExp?{keys:!1,pattern:t}:e(t||"*",r),c=o.exec(n)||[],[u,...f]=c;return u!==void 0?[!0,(()=>{const m=s!==!1?Object.fromEntries(s.map((h,y)=>[h,f[y]])):c.groups;let g={...f};return m&&Object.assign(g,m),g})(),...r?[u]:[]]:[!1,null]},Cie=({children:e,...t})=>{const n=bf(),r=t.hook?eU:n;let o=r;const[s,c]=t.ssrPath?.split("?")??[];c&&(t.ssrSearch=c,t.ssrPath=s),t.hrefs=t.hrefs??t.hook?.hrefs;let u=_.useRef({}),f=u.current,m=f;for(let g in r){const h=g==="base"?r[g]+(t[g]||""):t[g]||r[g];f===m&&h!==m[g]&&(u.current=m={...m}),m[g]=h,(h!==r[g]||h!==o[g])&&(o=m)}return _.createElement(tU.Provider,{value:o,children:e})},sV=({children:e,component:t},n)=>t?_.createElement(t,{params:n}):typeof e=="function"?e(n):e,Tie=e=>{let t=_.useRef(nU);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},ca=({path:e,nest:t,match:n,...r})=>{const o=bf(),[s]=Tx(o),[c,u,f]=n??aU(o.parser,e,s,t),m=Tie({...Oie(),...u});if(!c)return null;const g=f?_.createElement(Cie,{base:f},sV(r,m)):sV(r,m);return _.createElement(rU.Provider,{value:m,children:g})},_ie=_.forwardRef((e,t)=>{const n=bf(),[r,o]=Tx(n),{to:s="",href:c=s,onClick:u,asChild:f,children:m,className:g,replace:h,state:y,...x}=e,S=Wz(w=>{w.ctrlKey||w.metaKey||w.altKey||w.shiftKey||w.button!==0||(u?.(w),w.defaultPrevented||(w.preventDefault(),o(c,e)))}),N=n.hrefs(c[0]==="~"?c.slice(1):n.base+c,n);return f&&_.isValidElement(m)?_.cloneElement(m,{onClick:S,href:N}):_.createElement("a",{...x,onClick:S,href:N,className:g?.call?g(r===c):g,children:m,ref:t})}),jC=e=>Array.isArray(e)?e.flatMap(t=>jC(t&&t.type===_.Fragment?t.props.children:t)):[e],jie=({children:e,location:t})=>{const n=bf(),[r]=Tx(n);typeof window<"u"&&(window.__WOUTER_ROUTES__||(window.__WOUTER_ROUTES__=[]),jC(e).forEach(s=>{if(_.isValidElement(s)&&s.props.path){const c=s.props.path;window.__WOUTER_ROUTES__.includes(c)||window.__WOUTER_ROUTES__.push(c)}}));for(const o of jC(e)){let s=0;if(_.isValidElement(o)&&(s=aU(n.parser,o.props.path,t||r,o.props.nest))[0])return _.cloneElement(o,{match:s})}return null};function lV(){const[,e]=_x(),t=()=>{e("/")};return b.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:b.jsxDEV(At,{"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:b.jsxDEV(Ot,{"data-loc":"client/src/pages/NotFound.tsx:16",className:"pt-8 pb-8 text-center",children:[b.jsxDEV("div",{"data-loc":"client/src/pages/NotFound.tsx:17",className:"flex justify-center mb-6",children:b.jsxDEV("div",{"data-loc":"client/src/pages/NotFound.tsx:18",className:"relative",children:[b.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),b.jsxDEV(OC,{"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),b.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),b.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),b.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.",b.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),b.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:b.jsxDEV(rt,{"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:[b.jsxDEV(Yae,{"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 Rie extends _.Component{constructor(t){super(t),this.state={hasError:!1,error:null}}static getDerivedStateFromError(t){return{hasError:!0,error:t}}render(){return this.state.hasError?b.jsxDEV("div",{"data-loc":"client/src/components/ErrorBoundary.tsx:27",className:"flex items-center justify-center min-h-screen p-8 bg-background",children:b.jsxDEV("div",{"data-loc":"client/src/components/ErrorBoundary.tsx:28",className:"flex flex-col items-center w-full max-w-2xl p-8",children:[b.jsxDEV(Lc,{"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),b.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),b.jsxDEV("div",{"data-loc":"client/src/components/ErrorBoundary.tsx:36",className:"p-4 w-full rounded bg-muted overflow-auto mb-6",children:b.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),b.jsxDEV("button",{"data-loc":"client/src/components/ErrorBoundary.tsx:42",onClick:()=>window.location.reload(),className:wt("flex items-center gap-2 px-4 py-2 rounded-lg","bg-primary text-primary-foreground","hover:opacity-90 cursor-pointer"),children:[b.jsxDEV(nie,{"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 Pie=_.createContext(void 0);function Mie({children:e,defaultTheme:t="light",switchable:n=!1}){const[r,o]=_.useState(()=>n&&localStorage.getItem("theme")||t);_.useEffect(()=>{const c=document.documentElement;r==="dark"?c.classList.add("dark"):c.classList.remove("dark"),n&&localStorage.setItem("theme",r)},[r,n]);const s=n?()=>{o(c=>c==="light"?"dark":"light")}:void 0;return b.jsxDEV(Pie.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 jE="focusScope.autoFocusOnMount",RE="focusScope.autoFocusOnUnmount",cV={bubbles:!1,cancelable:!0},kie="FocusScope",jx=_.forwardRef((e,t)=>{const{loop:n=!1,trapped:r=!1,onMountAutoFocus:o,onUnmountAutoFocus:s,...c}=e,[u,f]=_.useState(null),m=lo(o),g=lo(s),h=_.useRef(null),y=Mt(t,N=>f(N)),x=_.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;_.useEffect(()=>{if(r){let N=function(j){if(x.paused||!u)return;const P=j.target;u.contains(P)?h.current=P:il(h.current,{select:!0})},w=function(j){if(x.paused||!u)return;const P=j.relatedTarget;P!==null&&(u.contains(P)||il(h.current,{select:!0}))},D=function(j){if(document.activeElement===document.body)for(const A of j)A.removedNodes.length>0&&il(u)};document.addEventListener("focusin",N),document.addEventListener("focusout",w);const C=new MutationObserver(D);return u&&C.observe(u,{childList:!0,subtree:!0}),()=>{document.removeEventListener("focusin",N),document.removeEventListener("focusout",w),C.disconnect()}}},[r,u,x.paused]),_.useEffect(()=>{if(u){dV.add(x);const N=document.activeElement;if(!u.contains(N)){const D=new CustomEvent(jE,cV);u.addEventListener(jE,m),u.dispatchEvent(D),D.defaultPrevented||(Iie(zie(iU(u)),{select:!0}),document.activeElement===N&&il(u))}return()=>{u.removeEventListener(jE,m),setTimeout(()=>{const D=new CustomEvent(RE,cV);u.addEventListener(RE,g),u.dispatchEvent(D),D.defaultPrevented||il(N??document.body,{select:!0}),u.removeEventListener(RE,g),dV.remove(x)},0)}}},[u,m,g,x]);const S=_.useCallback(N=>{if(!n&&!r||x.paused)return;const w=N.key==="Tab"&&!N.altKey&&!N.ctrlKey&&!N.metaKey,D=document.activeElement;if(w&&D){const C=N.currentTarget,[j,P]=Lie(C);j&&P?!N.shiftKey&&D===P?(N.preventDefault(),n&&il(j,{select:!0})):N.shiftKey&&D===j&&(N.preventDefault(),n&&il(P,{select:!0})):D===C&&N.preventDefault()}},[n,r,x.paused]);return ce.jsx(vt.div,{tabIndex:-1,...c,ref:y,onKeyDown:S})});jx.displayName=kie;function Iie(e,{select:t=!1}={}){const n=document.activeElement;for(const r of e)if(il(r,{select:t}),document.activeElement!==n)return}function Lie(e){const t=iU(e),n=uV(t,e),r=uV(t.reverse(),e);return[n,r]}function iU(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 uV(e,t){for(const n of e)if(!Vie(n,{upTo:t}))return n}function Vie(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 $ie(e){return e instanceof HTMLInputElement&&"select"in e}function il(e,{select:t=!1}={}){if(e&&e.focus){const n=document.activeElement;e.focus({preventScroll:!0}),e!==n&&$ie(e)&&t&&e.select()}}var dV=Bie();function Bie(){let e=[];return{add(t){const n=e[0];t!==n&&n?.pause(),e=fV(e,t),e.unshift(t)},remove(t){e=fV(e,t),e[0]?.resume()}}}function fV(e,t){const n=[...e],r=n.indexOf(t);return r!==-1&&n.splice(r,1),n}function zie(e){return e.filter(t=>t.tagName!=="A")}var PE=0;function I_(){_.useEffect(()=>{const e=document.querySelectorAll("[data-radix-focus-guard]");return document.body.insertAdjacentElement("afterbegin",e[0]??mV()),document.body.insertAdjacentElement("beforeend",e[1]??mV()),PE++,()=>{PE===1&&document.querySelectorAll("[data-radix-focus-guard]").forEach(t=>t.remove()),PE--}},[])}function mV(){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 Zi=function(){return Zi=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},Zi.apply(this,arguments)};function oU(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 Uie(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 Kb="right-scroll-bar-position",Gb="width-before-scroll-bar",qie="with-scroll-bars-hidden",Hie="--removed-body-scroll-bar-size";function ME(e,t){return typeof e=="function"?e(t):e&&(e.current=t),e}function Fie(e,t){var n=_.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 Kie=typeof window<"u"?_.useLayoutEffect:_.useEffect,hV=new WeakMap;function Gie(e,t){var n=Fie(null,function(r){return e.forEach(function(o){return ME(o,r)})});return Kie(function(){var r=hV.get(n);if(r){var o=new Set(r),s=new Set(e),c=n.current;o.forEach(function(u){s.has(u)||ME(u,null)}),s.forEach(function(u){o.has(u)||ME(u,c)})}hV.set(n,e)},[e]),n}function Yie(e){return e}function Qie(e,t){t===void 0&&(t=Yie);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 c=t(s,r);return n.push(c),function(){n=n.filter(function(u){return u!==c})}},assignSyncMedium:function(s){for(r=!0;n.length;){var c=n;n=[],c.forEach(s)}n={push:function(u){return s(u)},filter:function(){return n}}},assignMedium:function(s){r=!0;var c=[];if(n.length){var u=n;n=[],u.forEach(s),c=n}var f=function(){var g=c;c=[],g.forEach(s)},m=function(){return Promise.resolve().then(f)};m(),n={push:function(g){c.push(g),m()},filter:function(g){return c=c.filter(g),n}}}};return o}function Xie(e){e===void 0&&(e={});var t=Qie(null);return t.options=Zi({async:!0,ssr:!1},e),t}var sU=function(e){var t=e.sideCar,n=oU(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 _.createElement(r,Zi({},n))};sU.isSideCarExport=!0;function Wie(e,t){return e.useMedium(t),sU}var lU=Xie(),kE=function(){},Rx=_.forwardRef(function(e,t){var n=_.useRef(null),r=_.useState({onScrollCapture:kE,onWheelCapture:kE,onTouchMoveCapture:kE}),o=r[0],s=r[1],c=e.forwardProps,u=e.children,f=e.className,m=e.removeScrollBar,g=e.enabled,h=e.shards,y=e.sideCar,x=e.noRelative,S=e.noIsolation,N=e.inert,w=e.allowPinchZoom,D=e.as,C=D===void 0?"div":D,j=e.gapMode,P=oU(e,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noRelative","noIsolation","inert","allowPinchZoom","as","gapMode"]),A=y,T=Gie([n,t]),R=Zi(Zi({},P),o);return _.createElement(_.Fragment,null,g&&_.createElement(A,{sideCar:lU,removeScrollBar:m,shards:h,noRelative:x,noIsolation:S,inert:N,setCallbacks:s,allowPinchZoom:!!w,lockRef:n,gapMode:j}),c?_.cloneElement(_.Children.only(u),Zi(Zi({},R),{ref:T})):_.createElement(C,Zi({},R,{className:f,ref:T}),u))});Rx.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1};Rx.classNames={fullWidth:Gb,zeroRight:Kb};var Zie=function(){if(typeof __webpack_nonce__<"u")return __webpack_nonce__};function Jie(){if(!document)return null;var e=document.createElement("style");e.type="text/css";var t=Zie();return t&&e.setAttribute("nonce",t),e}function eoe(e,t){e.styleSheet?e.styleSheet.cssText=t:e.appendChild(document.createTextNode(t))}function toe(e){var t=document.head||document.getElementsByTagName("head")[0];t.appendChild(e)}var noe=function(){var e=0,t=null;return{add:function(n){e==0&&(t=Jie())&&(eoe(t,n),toe(t)),e++},remove:function(){e--,!e&&t&&(t.parentNode&&t.parentNode.removeChild(t),t=null)}}},roe=function(){var e=noe();return function(t,n){_.useEffect(function(){return e.add(t),function(){e.remove()}},[t&&n])}},cU=function(){var e=roe(),t=function(n){var r=n.styles,o=n.dynamic;return e(r,o),null};return t},aoe={left:0,top:0,right:0,gap:0},IE=function(e){return parseInt(e||"",10)||0},ioe=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[IE(n),IE(r),IE(o)]},ooe=function(e){if(e===void 0&&(e="margin"),typeof window>"u")return aoe;var t=ioe(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])}},soe=cU(),Cd="data-scroll-locked",loe=function(e,t,n,r){var o=e.left,s=e.top,c=e.right,u=e.gap;return n===void 0&&(n="margin"),`
|
||
.`.concat(qie,` {
|
||
overflow: hidden `).concat(r,`;
|
||
padding-right: `).concat(u,"px ").concat(r,`;
|
||
}
|
||
body[`).concat(Cd,`] {
|
||
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(c,`px;
|
||
margin-left:0;
|
||
margin-top:0;
|
||
margin-right: `).concat(u,"px ").concat(r,`;
|
||
`),n==="padding"&&"padding-right: ".concat(u,"px ").concat(r,";")].filter(Boolean).join(""),`
|
||
}
|
||
|
||
.`).concat(Kb,` {
|
||
right: `).concat(u,"px ").concat(r,`;
|
||
}
|
||
|
||
.`).concat(Gb,` {
|
||
margin-right: `).concat(u,"px ").concat(r,`;
|
||
}
|
||
|
||
.`).concat(Kb," .").concat(Kb,` {
|
||
right: 0 `).concat(r,`;
|
||
}
|
||
|
||
.`).concat(Gb," .").concat(Gb,` {
|
||
margin-right: 0 `).concat(r,`;
|
||
}
|
||
|
||
body[`).concat(Cd,`] {
|
||
`).concat(Hie,": ").concat(u,`px;
|
||
}
|
||
`)},pV=function(){var e=parseInt(document.body.getAttribute(Cd)||"0",10);return isFinite(e)?e:0},coe=function(){_.useEffect(function(){return document.body.setAttribute(Cd,(pV()+1).toString()),function(){var e=pV()-1;e<=0?document.body.removeAttribute(Cd):document.body.setAttribute(Cd,e.toString())}},[])},uoe=function(e){var t=e.noRelative,n=e.noImportant,r=e.gapMode,o=r===void 0?"margin":r;coe();var s=_.useMemo(function(){return ooe(o)},[o]);return _.createElement(soe,{styles:loe(s,!t,o,n?"":"!important")})},RC=!1;if(typeof window<"u")try{var Nb=Object.defineProperty({},"passive",{get:function(){return RC=!0,!0}});window.addEventListener("test",Nb,Nb),window.removeEventListener("test",Nb,Nb)}catch{RC=!1}var md=RC?{passive:!1}:!1,doe=function(e){return e.tagName==="TEXTAREA"},uU=function(e,t){if(!(e instanceof Element))return!1;var n=window.getComputedStyle(e);return n[t]!=="hidden"&&!(n.overflowY===n.overflowX&&!doe(e)&&n[t]==="visible")},foe=function(e){return uU(e,"overflowY")},moe=function(e){return uU(e,"overflowX")},gV=function(e,t){var n=t.ownerDocument,r=t;do{typeof ShadowRoot<"u"&&r instanceof ShadowRoot&&(r=r.host);var o=dU(e,r);if(o){var s=fU(e,r),c=s[1],u=s[2];if(c>u)return!0}r=r.parentNode}while(r&&r!==n.body);return!1},hoe=function(e){var t=e.scrollTop,n=e.scrollHeight,r=e.clientHeight;return[t,n,r]},poe=function(e){var t=e.scrollLeft,n=e.scrollWidth,r=e.clientWidth;return[t,n,r]},dU=function(e,t){return e==="v"?foe(t):moe(t)},fU=function(e,t){return e==="v"?hoe(t):poe(t)},goe=function(e,t){return e==="h"&&t==="rtl"?-1:1},voe=function(e,t,n,r,o){var s=goe(e,window.getComputedStyle(t).direction),c=s*r,u=n.target,f=t.contains(u),m=!1,g=c>0,h=0,y=0;do{if(!u)break;var x=fU(e,u),S=x[0],N=x[1],w=x[2],D=N-w-s*S;(S||D)&&dU(e,u)&&(h+=D,y+=S);var C=u.parentNode;u=C&&C.nodeType===Node.DOCUMENT_FRAGMENT_NODE?C.host:C}while(!f&&u!==document.body||f&&(t.contains(u)||t===u));return(g&&Math.abs(h)<1||!g&&Math.abs(y)<1)&&(m=!0),m},wb=function(e){return"changedTouches"in e?[e.changedTouches[0].clientX,e.changedTouches[0].clientY]:[0,0]},vV=function(e){return[e.deltaX,e.deltaY]},bV=function(e){return e&&"current"in e?e.current:e},boe=function(e,t){return e[0]===t[0]&&e[1]===t[1]},yoe=function(e){return`
|
||
.block-interactivity-`.concat(e,` {pointer-events: none;}
|
||
.allow-interactivity-`).concat(e,` {pointer-events: all;}
|
||
`)},xoe=0,hd=[];function Noe(e){var t=_.useRef([]),n=_.useRef([0,0]),r=_.useRef(),o=_.useState(xoe++)[0],s=_.useState(cU)[0],c=_.useRef(e);_.useEffect(function(){c.current=e},[e]),_.useEffect(function(){if(e.inert){document.body.classList.add("block-interactivity-".concat(o));var N=Uie([e.lockRef.current],(e.shards||[]).map(bV),!0).filter(Boolean);return N.forEach(function(w){return w.classList.add("allow-interactivity-".concat(o))}),function(){document.body.classList.remove("block-interactivity-".concat(o)),N.forEach(function(w){return w.classList.remove("allow-interactivity-".concat(o))})}}},[e.inert,e.lockRef.current,e.shards]);var u=_.useCallback(function(N,w){if("touches"in N&&N.touches.length===2||N.type==="wheel"&&N.ctrlKey)return!c.current.allowPinchZoom;var D=wb(N),C=n.current,j="deltaX"in N?N.deltaX:C[0]-D[0],P="deltaY"in N?N.deltaY:C[1]-D[1],A,T=N.target,R=Math.abs(j)>Math.abs(P)?"h":"v";if("touches"in N&&R==="h"&&T.type==="range")return!1;var M=gV(R,T);if(!M)return!0;if(M?A=R:(A=R==="v"?"h":"v",M=gV(R,T)),!M)return!1;if(!r.current&&"changedTouches"in N&&(j||P)&&(r.current=A),!A)return!0;var $=r.current||A;return voe($,w,N,$==="h"?j:P)},[]),f=_.useCallback(function(N){var w=N;if(!(!hd.length||hd[hd.length-1]!==s)){var D="deltaY"in w?vV(w):wb(w),C=t.current.filter(function(A){return A.name===w.type&&(A.target===w.target||w.target===A.shadowParent)&&boe(A.delta,D)})[0];if(C&&C.should){w.cancelable&&w.preventDefault();return}if(!C){var j=(c.current.shards||[]).map(bV).filter(Boolean).filter(function(A){return A.contains(w.target)}),P=j.length>0?u(w,j[0]):!c.current.noIsolation;P&&w.cancelable&&w.preventDefault()}}},[]),m=_.useCallback(function(N,w,D,C){var j={name:N,delta:w,target:D,should:C,shadowParent:woe(D)};t.current.push(j),setTimeout(function(){t.current=t.current.filter(function(P){return P!==j})},1)},[]),g=_.useCallback(function(N){n.current=wb(N),r.current=void 0},[]),h=_.useCallback(function(N){m(N.type,vV(N),N.target,u(N,e.lockRef.current))},[]),y=_.useCallback(function(N){m(N.type,wb(N),N.target,u(N,e.lockRef.current))},[]);_.useEffect(function(){return hd.push(s),e.setCallbacks({onScrollCapture:h,onWheelCapture:h,onTouchMoveCapture:y}),document.addEventListener("wheel",f,md),document.addEventListener("touchmove",f,md),document.addEventListener("touchstart",g,md),function(){hd=hd.filter(function(N){return N!==s}),document.removeEventListener("wheel",f,md),document.removeEventListener("touchmove",f,md),document.removeEventListener("touchstart",g,md)}},[]);var x=e.removeScrollBar,S=e.inert;return _.createElement(_.Fragment,null,S?_.createElement(s,{styles:yoe(o)}):null,x?_.createElement(uoe,{noRelative:e.noRelative,gapMode:e.gapMode}):null)}function woe(e){for(var t=null;e!==null;)e instanceof ShadowRoot&&(t=e.host,e=e.host),e=e.parentNode;return t}const Eoe=Wie(lU,Noe);var Px=_.forwardRef(function(e,t){return _.createElement(Rx,Zi({},e,{ref:t,sideCar:Eoe}))});Px.classNames=Rx.classNames;var Soe=function(e){if(typeof document>"u")return null;var t=Array.isArray(e)?e[0]:e;return t.ownerDocument.body},pd=new WeakMap,Eb=new WeakMap,Sb={},LE=0,mU=function(e){return e&&(e.host||mU(e.parentNode))},Aoe=function(e,t){return t.map(function(n){if(e.contains(n))return n;var r=mU(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})},Ooe=function(e,t,n,r){var o=Aoe(t,Array.isArray(e)?e:[e]);Sb[n]||(Sb[n]=new WeakMap);var s=Sb[n],c=[],u=new Set,f=new Set(o),m=function(h){!h||u.has(h)||(u.add(h),m(h.parentNode))};o.forEach(m);var g=function(h){!h||f.has(h)||Array.prototype.forEach.call(h.children,function(y){if(u.has(y))g(y);else try{var x=y.getAttribute(r),S=x!==null&&x!=="false",N=(pd.get(y)||0)+1,w=(s.get(y)||0)+1;pd.set(y,N),s.set(y,w),c.push(y),N===1&&S&&Eb.set(y,!0),w===1&&y.setAttribute(n,"true"),S||y.setAttribute(r,"true")}catch(D){console.error("aria-hidden: cannot operate on ",y,D)}})};return g(t),u.clear(),LE++,function(){c.forEach(function(h){var y=pd.get(h)-1,x=s.get(h)-1;pd.set(h,y),s.set(h,x),y||(Eb.has(h)||h.removeAttribute(r),Eb.delete(h)),x||h.removeAttribute(n)}),LE--,LE||(pd=new WeakMap,pd=new WeakMap,Eb=new WeakMap,Sb={})}},L_=function(e,t,n){n===void 0&&(n="data-aria-hidden");var r=Array.from(Array.isArray(e)?e:[e]),o=Soe(e);return o?(r.push.apply(r,Array.from(o.querySelectorAll("[aria-live], script"))),Ooe(r,o,n,"aria-hidden")):function(){return null}},Mx="Dialog",[hU]=ds(Mx),[Doe,pi]=hU(Mx),pU=e=>{const{__scopeDialog:t,children:n,open:r,defaultOpen:o,onOpenChange:s,modal:c=!0}=e,u=_.useRef(null),f=_.useRef(null),[m,g]=kc({prop:r,defaultProp:o??!1,onChange:s,caller:Mx});return ce.jsx(Doe,{scope:t,triggerRef:u,contentRef:f,contentId:ro(),titleId:ro(),descriptionId:ro(),open:m,onOpenChange:g,onOpenToggle:_.useCallback(()=>g(h=>!h),[g]),modal:c,children:n})};pU.displayName=Mx;var gU="DialogTrigger",vU=_.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,o=pi(gU,n),s=Mt(t,o.triggerRef);return ce.jsx(vt.button,{type:"button","aria-haspopup":"dialog","aria-expanded":o.open,"aria-controls":o.contentId,"data-state":B_(o.open),...r,ref:s,onClick:Le(e.onClick,o.onOpenToggle)})});vU.displayName=gU;var V_="DialogPortal",[Coe,bU]=hU(V_,{forceMount:void 0}),yU=e=>{const{__scopeDialog:t,forceMount:n,children:r,container:o}=e,s=pi(V_,t);return ce.jsx(Coe,{scope:t,forceMount:n,children:_.Children.map(r,c=>ce.jsx(po,{present:n||s.open,children:ce.jsx(Lp,{asChild:!0,container:o,children:c})}))})};yU.displayName=V_;var ly="DialogOverlay",xU=_.forwardRef((e,t)=>{const n=bU(ly,e.__scopeDialog),{forceMount:r=n.forceMount,...o}=e,s=pi(ly,e.__scopeDialog);return s.modal?ce.jsx(po,{present:r||s.open,children:ce.jsx(_oe,{...o,ref:t})}):null});xU.displayName=ly;var Toe=Pc("DialogOverlay.RemoveScroll"),_oe=_.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,o=pi(ly,n);return ce.jsx(Px,{as:Toe,allowPinchZoom:!0,shards:[o.contentRef],children:ce.jsx(vt.div,{"data-state":B_(o.open),...r,ref:t,style:{pointerEvents:"auto",...r.style}})})}),Vc="DialogContent",NU=_.forwardRef((e,t)=>{const n=bU(Vc,e.__scopeDialog),{forceMount:r=n.forceMount,...o}=e,s=pi(Vc,e.__scopeDialog);return ce.jsx(po,{present:r||s.open,children:s.modal?ce.jsx(joe,{...o,ref:t}):ce.jsx(Roe,{...o,ref:t})})});NU.displayName=Vc;var joe=_.forwardRef((e,t)=>{const n=pi(Vc,e.__scopeDialog),r=_.useRef(null),o=Mt(t,n.contentRef,r);return _.useEffect(()=>{const s=r.current;if(s)return L_(s)},[]),ce.jsx(wU,{...e,ref:o,trapFocus:n.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:Le(e.onCloseAutoFocus,s=>{s.preventDefault(),n.triggerRef.current?.focus()}),onPointerDownOutside:Le(e.onPointerDownOutside,s=>{const c=s.detail.originalEvent,u=c.button===0&&c.ctrlKey===!0;(c.button===2||u)&&s.preventDefault()}),onFocusOutside:Le(e.onFocusOutside,s=>s.preventDefault())})}),Roe=_.forwardRef((e,t)=>{const n=pi(Vc,e.__scopeDialog),r=_.useRef(!1),o=_.useRef(!1);return ce.jsx(wU,{...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 c=s.target;n.triggerRef.current?.contains(c)&&s.preventDefault(),s.detail.originalEvent.type==="focusin"&&o.current&&s.preventDefault()}})}),wU=_.forwardRef((e,t)=>{const{__scopeDialog:n,trapFocus:r,onOpenAutoFocus:o,onCloseAutoFocus:s,...c}=e,u=pi(Vc,n),f=_.useRef(null),m=Mt(t,f);return I_(),ce.jsxs(ce.Fragment,{children:[ce.jsx(jx,{asChild:!0,loop:!0,trapped:r,onMountAutoFocus:o,onUnmountAutoFocus:s,children:ce.jsx(kp,{role:"dialog",id:u.contentId,"aria-describedby":u.descriptionId,"aria-labelledby":u.titleId,"data-state":B_(u.open),...c,ref:m,onDismiss:()=>u.onOpenChange(!1)})}),ce.jsxs(ce.Fragment,{children:[ce.jsx(Moe,{titleId:u.titleId}),ce.jsx(Ioe,{contentRef:f,descriptionId:u.descriptionId})]})]})}),$_="DialogTitle",EU=_.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,o=pi($_,n);return ce.jsx(vt.h2,{id:o.titleId,...r,ref:t})});EU.displayName=$_;var SU="DialogDescription",Poe=_.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,o=pi(SU,n);return ce.jsx(vt.p,{id:o.descriptionId,...r,ref:t})});Poe.displayName=SU;var AU="DialogClose",OU=_.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,o=pi(AU,n);return ce.jsx(vt.button,{type:"button",...r,ref:t,onClick:Le(e.onClick,()=>o.onOpenChange(!1))})});OU.displayName=AU;function B_(e){return e?"open":"closed"}var DU="DialogTitleWarning",[jAe,CU]=Hte(DU,{contentName:Vc,titleName:$_,docsSlug:"dialog"}),Moe=({titleId:e})=>{const t=CU(DU),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 _.useEffect(()=>{e&&(document.getElementById(e)||console.error(n))},[n,e]),null},koe="DialogDescriptionWarning",Ioe=({contentRef:e,descriptionId:t})=>{const r=`Warning: Missing \`Description\` or \`aria-describedby={undefined}\` for {${CU(koe).contentName}}.`;return _.useEffect(()=>{const o=e.current?.getAttribute("aria-describedby");t&&o&&(document.getElementById(t)||console.warn(r))},[r,e,t]),null},Loe=pU,Voe=vU,$oe=yU,Boe=xU,zoe=NU,Uoe=EU,qoe=OU;const TU=_.createContext({isComposing:()=>!1,setComposing:()=>{},justEndedComposing:()=>!1,markCompositionEnd:()=>{}}),z_=()=>_.useContext(TU);function $c({...e}){const t=_.useRef(!1),n=_.useRef(!1),r=_.useRef(null),o=_.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 b.jsxDEV(TU.Provider,{"data-loc":"client/src/components/ui/dialog.tsx:50",value:o,children:b.jsxDEV(Loe,{"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 Gh({...e}){return b.jsxDEV(Voe,{"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 Hoe({...e}){return b.jsxDEV($oe,{"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 _U({className:e,...t}){return b.jsxDEV(Boe,{"data-loc":"client/src/components/ui/dialog.tsx:79","data-slot":"dialog-overlay",className:wt("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)}_U.displayName="DialogOverlay";function Bc({className:e,children:t,showCloseButton:n=!0,onEscapeKeyDown:r,...o}){const{isComposing:s}=z_(),c=_.useCallback(u=>{if(u.isComposing||s()){u.preventDefault();return}r?.(u)},[s,r]);return b.jsxDEV(Hoe,{"data-loc":"client/src/components/ui/dialog.tsx:122","data-slot":"dialog-portal",children:[b.jsxDEV(_U,{"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),b.jsxDEV(zoe,{"data-loc":"client/src/components/ui/dialog.tsx:124","data-slot":"dialog-content",className:wt("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:c,...o,children:[t,n&&b.jsxDEV(qoe,{"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:[b.jsxDEV(sie,{"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),b.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 zc({className:e,...t}){return b.jsxDEV("div",{"data-loc":"client/src/components/ui/dialog.tsx:150","data-slot":"dialog-header",className:wt("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 Uc({className:e,...t}){return b.jsxDEV(Uoe,{"data-loc":"client/src/components/ui/dialog.tsx:176","data-slot":"dialog-title",className:wt("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 Ab(e){const t=_.useRef(e);t.current=e;const n=_.useRef(null);return n.current||(n.current=function(...r){return t.current.apply(this,r)}),n.current}function jU(e={}){const{onKeyDown:t,onCompositionStart:n,onCompositionEnd:r}=e,o=_.useRef(!1),s=_.useRef(null),c=_.useRef(null),u=Ab(h=>{s.current&&(clearTimeout(s.current),s.current=null),c.current&&(clearTimeout(c.current),c.current=null),o.current=!0,n?.(h)}),f=Ab(h=>{s.current=setTimeout(()=>{c.current=setTimeout(()=>{o.current=!1})}),r?.(h)}),m=Ab(h=>{if(o.current&&(h.key==="Escape"||h.key==="Enter"&&!h.shiftKey)){h.stopPropagation();return}t?.(h)}),g=Ab(()=>o.current);return{onCompositionStart:u,onCompositionEnd:f,onKeyDown:m,isComposing:g}}function Vn({className:e,type:t,onKeyDown:n,onCompositionStart:r,onCompositionEnd:o,...s}){const c=z_(),{onCompositionStart:u,onCompositionEnd:f,onKeyDown:m}=jU({onKeyDown:g=>{const h=g.nativeEvent.isComposing||c.justEndedComposing();g.key==="Enter"&&h||n?.(g)},onCompositionStart:g=>{c.setComposing(!0),r?.(g)},onCompositionEnd:g=>{c.markCompositionEnd(),setTimeout(()=>{c.setComposing(!1)},100),o?.(g)}});return b.jsxDEV("input",{"data-loc":"client/src/components/ui/input.tsx:53",type:t,"data-slot":"input",className:wt("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:u,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 Foe="Label",RU=_.forwardRef((e,t)=>ce.jsx(vt.label,{...e,ref:t,onMouseDown:n=>{n.target.closest("button, input, select, textarea")||(e.onMouseDown?.(n),!n.defaultPrevented&&n.detail>1&&n.preventDefault())}}));RU.displayName=Foe;var Koe=RU;function Ct({className:e,...t}){return b.jsxDEV(Koe,{"data-loc":"client/src/components/ui/label.tsx:11","data-slot":"label",className:wt("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 Goe=T_("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 Yoe({className:e,variant:t,...n}){return b.jsxDEV("div",{"data-loc":"client/src/components/ui/alert.tsx:28","data-slot":"alert",role:"alert",className:wt(Goe({variant:t}),e),...n},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/components/ui/alert.tsx",lineNumber:28,columnNumber:5},this)}function Qoe({className:e,...t}){return b.jsxDEV("div",{"data-loc":"client/src/components/ui/alert.tsx:55","data-slot":"alert-description",className:wt("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 U_(e){const t=e+"CollectionProvider",[n,r]=ds(t),[o,s]=n(t,{collectionRef:{current:null},itemMap:new Map}),c=N=>{const{scope:w,children:D}=N,C=K.useRef(null),j=K.useRef(new Map).current;return ce.jsx(o,{scope:w,itemMap:j,collectionRef:C,children:D})};c.displayName=t;const u=e+"CollectionSlot",f=Pc(u),m=K.forwardRef((N,w)=>{const{scope:D,children:C}=N,j=s(u,D),P=Mt(w,j.collectionRef);return ce.jsx(f,{ref:P,children:C})});m.displayName=u;const g=e+"CollectionItemSlot",h="data-radix-collection-item",y=Pc(g),x=K.forwardRef((N,w)=>{const{scope:D,children:C,...j}=N,P=K.useRef(null),A=Mt(w,P),T=s(g,D);return K.useEffect(()=>(T.itemMap.set(P,{ref:P,...j}),()=>void T.itemMap.delete(P))),ce.jsx(y,{[h]:"",ref:A,children:C})});x.displayName=g;function S(N){const w=s(e+"CollectionConsumer",N);return K.useCallback(()=>{const C=w.collectionRef.current;if(!C)return[];const j=Array.from(C.querySelectorAll(`[${h}]`));return Array.from(w.itemMap.values()).sort((T,R)=>j.indexOf(T.ref.current)-j.indexOf(R.ref.current))},[w.collectionRef,w.itemMap])}return[{Provider:c,Slot:m,ItemSlot:x},S,r]}var Xoe=_.createContext(void 0);function q_(e){const t=_.useContext(Xoe);return e||t||"ltr"}var VE="rovingFocusGroup.onEntryFocus",Woe={bubbles:!1,cancelable:!0},Bp="RovingFocusGroup",[PC,PU,Zoe]=U_(Bp),[Joe,MU]=ds(Bp,[Zoe]),[ese,tse]=Joe(Bp),kU=_.forwardRef((e,t)=>ce.jsx(PC.Provider,{scope:e.__scopeRovingFocusGroup,children:ce.jsx(PC.Slot,{scope:e.__scopeRovingFocusGroup,children:ce.jsx(nse,{...e,ref:t})})}));kU.displayName=Bp;var nse=_.forwardRef((e,t)=>{const{__scopeRovingFocusGroup:n,orientation:r,loop:o=!1,dir:s,currentTabStopId:c,defaultCurrentTabStopId:u,onCurrentTabStopIdChange:f,onEntryFocus:m,preventScrollOnEntryFocus:g=!1,...h}=e,y=_.useRef(null),x=Mt(t,y),S=q_(s),[N,w]=kc({prop:c,defaultProp:u??null,onChange:f,caller:Bp}),[D,C]=_.useState(!1),j=lo(m),P=PU(n),A=_.useRef(!1),[T,R]=_.useState(0);return _.useEffect(()=>{const M=y.current;if(M)return M.addEventListener(VE,j),()=>M.removeEventListener(VE,j)},[j]),ce.jsx(ese,{scope:n,orientation:r,dir:S,loop:o,currentTabStopId:N,onItemFocus:_.useCallback(M=>w(M),[w]),onItemShiftTab:_.useCallback(()=>C(!0),[]),onFocusableItemAdd:_.useCallback(()=>R(M=>M+1),[]),onFocusableItemRemove:_.useCallback(()=>R(M=>M-1),[]),children:ce.jsx(vt.div,{tabIndex:D||T===0?-1:0,"data-orientation":r,...h,ref:x,style:{outline:"none",...e.style},onMouseDown:Le(e.onMouseDown,()=>{A.current=!0}),onFocus:Le(e.onFocus,M=>{const $=!A.current;if(M.target===M.currentTarget&&$&&!D){const z=new CustomEvent(VE,Woe);if(M.currentTarget.dispatchEvent(z),!z.defaultPrevented){const U=P().filter(q=>q.focusable),V=U.find(q=>q.active),F=U.find(q=>q.id===N),ee=[V,F,...U].filter(Boolean).map(q=>q.ref.current);VU(ee,g)}}A.current=!1}),onBlur:Le(e.onBlur,()=>C(!1))})})}),IU="RovingFocusGroupItem",LU=_.forwardRef((e,t)=>{const{__scopeRovingFocusGroup:n,focusable:r=!0,active:o=!1,tabStopId:s,children:c,...u}=e,f=ro(),m=s||f,g=tse(IU,n),h=g.currentTabStopId===m,y=PU(n),{onFocusableItemAdd:x,onFocusableItemRemove:S,currentTabStopId:N}=g;return _.useEffect(()=>{if(r)return x(),()=>S()},[r,x,S]),ce.jsx(PC.ItemSlot,{scope:n,id:m,focusable:r,active:o,children:ce.jsx(vt.span,{tabIndex:h?0:-1,"data-orientation":g.orientation,...u,ref:t,onMouseDown:Le(e.onMouseDown,w=>{r?g.onItemFocus(m):w.preventDefault()}),onFocus:Le(e.onFocus,()=>g.onItemFocus(m)),onKeyDown:Le(e.onKeyDown,w=>{if(w.key==="Tab"&&w.shiftKey){g.onItemShiftTab();return}if(w.target!==w.currentTarget)return;const D=ise(w,g.orientation,g.dir);if(D!==void 0){if(w.metaKey||w.ctrlKey||w.altKey||w.shiftKey)return;w.preventDefault();let j=y().filter(P=>P.focusable).map(P=>P.ref.current);if(D==="last")j.reverse();else if(D==="prev"||D==="next"){D==="prev"&&j.reverse();const P=j.indexOf(w.currentTarget);j=g.loop?ose(j,P+1):j.slice(P+1)}setTimeout(()=>VU(j))}}),children:typeof c=="function"?c({isCurrentTabStop:h,hasTabStop:N!=null}):c})})});LU.displayName=IU;var rse={ArrowLeft:"prev",ArrowUp:"prev",ArrowRight:"next",ArrowDown:"next",PageUp:"first",Home:"first",PageDown:"last",End:"last"};function ase(e,t){return t!=="rtl"?e:e==="ArrowLeft"?"ArrowRight":e==="ArrowRight"?"ArrowLeft":e}function ise(e,t,n){const r=ase(e.key,n);if(!(t==="vertical"&&["ArrowLeft","ArrowRight"].includes(r))&&!(t==="horizontal"&&["ArrowUp","ArrowDown"].includes(r)))return rse[r]}function VU(e,t=!1){const n=document.activeElement;for(const r of e)if(r===n||(r.focus({preventScroll:t}),document.activeElement!==n))return}function ose(e,t){return e.map((n,r)=>e[(t+r)%e.length])}var sse=kU,lse=LU,MC=["Enter"," "],cse=["ArrowDown","PageUp","Home"],$U=["ArrowUp","PageDown","End"],use=[...cse,...$U],dse={ltr:[...MC,"ArrowRight"],rtl:[...MC,"ArrowLeft"]},fse={ltr:["ArrowLeft"],rtl:["ArrowRight"]},zp="Menu",[Yh,mse,hse]=U_(zp),[tu,BU]=ds(zp,[hse,hf,MU]),kx=hf(),zU=MU(),[pse,nu]=tu(zp),[gse,Up]=tu(zp),UU=e=>{const{__scopeMenu:t,open:n=!1,children:r,dir:o,onOpenChange:s,modal:c=!0}=e,u=kx(t),[f,m]=_.useState(null),g=_.useRef(!1),h=lo(s),y=q_(o);return _.useEffect(()=>{const x=()=>{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",x,{capture:!0}),()=>{document.removeEventListener("keydown",x,{capture:!0}),document.removeEventListener("pointerdown",S,{capture:!0}),document.removeEventListener("pointermove",S,{capture:!0})}},[]),ce.jsx(N_,{...u,children:ce.jsx(pse,{scope:t,open:n,onOpenChange:h,content:f,onContentChange:m,children:ce.jsx(gse,{scope:t,onClose:_.useCallback(()=>h(!1),[h]),isUsingKeyboardRef:g,dir:y,modal:c,children:r})})})};UU.displayName=zp;var vse="MenuAnchor",H_=_.forwardRef((e,t)=>{const{__scopeMenu:n,...r}=e,o=kx(n);return ce.jsx(w_,{...o,...r,ref:t})});H_.displayName=vse;var F_="MenuPortal",[bse,qU]=tu(F_,{forceMount:void 0}),HU=e=>{const{__scopeMenu:t,forceMount:n,children:r,container:o}=e,s=nu(F_,t);return ce.jsx(bse,{scope:t,forceMount:n,children:ce.jsx(po,{present:n||s.open,children:ce.jsx(Lp,{asChild:!0,container:o,children:r})})})};HU.displayName=F_;var Ba="MenuContent",[yse,K_]=tu(Ba),FU=_.forwardRef((e,t)=>{const n=qU(Ba,e.__scopeMenu),{forceMount:r=n.forceMount,...o}=e,s=nu(Ba,e.__scopeMenu),c=Up(Ba,e.__scopeMenu);return ce.jsx(Yh.Provider,{scope:e.__scopeMenu,children:ce.jsx(po,{present:r||s.open,children:ce.jsx(Yh.Slot,{scope:e.__scopeMenu,children:c.modal?ce.jsx(xse,{...o,ref:t}):ce.jsx(Nse,{...o,ref:t})})})})}),xse=_.forwardRef((e,t)=>{const n=nu(Ba,e.__scopeMenu),r=_.useRef(null),o=Mt(t,r);return _.useEffect(()=>{const s=r.current;if(s)return L_(s)},[]),ce.jsx(G_,{...e,ref:o,trapFocus:n.open,disableOutsidePointerEvents:n.open,disableOutsideScroll:!0,onFocusOutside:Le(e.onFocusOutside,s=>s.preventDefault(),{checkForDefaultPrevented:!1}),onDismiss:()=>n.onOpenChange(!1)})}),Nse=_.forwardRef((e,t)=>{const n=nu(Ba,e.__scopeMenu);return ce.jsx(G_,{...e,ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,disableOutsideScroll:!1,onDismiss:()=>n.onOpenChange(!1)})}),wse=Pc("MenuContent.ScrollLock"),G_=_.forwardRef((e,t)=>{const{__scopeMenu:n,loop:r=!1,trapFocus:o,onOpenAutoFocus:s,onCloseAutoFocus:c,disableOutsidePointerEvents:u,onEntryFocus:f,onEscapeKeyDown:m,onPointerDownOutside:g,onFocusOutside:h,onInteractOutside:y,onDismiss:x,disableOutsideScroll:S,...N}=e,w=nu(Ba,n),D=Up(Ba,n),C=kx(n),j=zU(n),P=mse(n),[A,T]=_.useState(null),R=_.useRef(null),M=Mt(t,R,w.onContentChange),$=_.useRef(0),z=_.useRef(""),U=_.useRef(0),V=_.useRef(null),F=_.useRef("right"),X=_.useRef(0),ee=S?Px:_.Fragment,q=S?{as:wse,allowPinchZoom:!0}:void 0,Q=ne=>{const te=z.current+ne,I=P().filter(le=>!le.disabled),H=document.activeElement,Y=I.find(le=>le.ref.current===H)?.textValue,re=I.map(le=>le.textValue),ge=Mse(re,te,Y),we=I.find(le=>le.textValue===ge)?.ref.current;(function le(ye){z.current=ye,window.clearTimeout($.current),ye!==""&&($.current=window.setTimeout(()=>le(""),1e3))})(te),we&&setTimeout(()=>we.focus())};_.useEffect(()=>()=>window.clearTimeout($.current),[]),I_();const G=_.useCallback(ne=>F.current===V.current?.side&&Ise(ne,V.current?.area),[]);return ce.jsx(yse,{scope:n,searchRef:z,onItemEnter:_.useCallback(ne=>{G(ne)&&ne.preventDefault()},[G]),onItemLeave:_.useCallback(ne=>{G(ne)||(R.current?.focus(),T(null))},[G]),onTriggerLeave:_.useCallback(ne=>{G(ne)&&ne.preventDefault()},[G]),pointerGraceTimerRef:U,onPointerGraceIntentChange:_.useCallback(ne=>{V.current=ne},[]),children:ce.jsx(ee,{...q,children:ce.jsx(jx,{asChild:!0,trapped:o,onMountAutoFocus:Le(s,ne=>{ne.preventDefault(),R.current?.focus({preventScroll:!0})}),onUnmountAutoFocus:c,children:ce.jsx(kp,{asChild:!0,disableOutsidePointerEvents:u,onEscapeKeyDown:m,onPointerDownOutside:g,onFocusOutside:h,onInteractOutside:y,onDismiss:x,children:ce.jsx(sse,{asChild:!0,...j,dir:D.dir,orientation:"vertical",loop:r,currentTabStopId:A,onCurrentTabStopIdChange:T,onEntryFocus:Le(f,ne=>{D.isUsingKeyboardRef.current||ne.preventDefault()}),preventScrollOnEntryFocus:!0,children:ce.jsx(E_,{role:"menu","aria-orientation":"vertical","data-state":sq(w.open),"data-radix-menu-content":"",dir:D.dir,...C,...N,ref:M,style:{outline:"none",...N.style},onKeyDown:Le(N.onKeyDown,ne=>{const I=ne.target.closest("[data-radix-menu-content]")===ne.currentTarget,H=ne.ctrlKey||ne.altKey||ne.metaKey,Y=ne.key.length===1;I&&(ne.key==="Tab"&&ne.preventDefault(),!H&&Y&&Q(ne.key));const re=R.current;if(ne.target!==re||!use.includes(ne.key))return;ne.preventDefault();const we=P().filter(le=>!le.disabled).map(le=>le.ref.current);$U.includes(ne.key)&&we.reverse(),Rse(we)}),onBlur:Le(e.onBlur,ne=>{ne.currentTarget.contains(ne.target)||(window.clearTimeout($.current),z.current="")}),onPointerMove:Le(e.onPointerMove,Qh(ne=>{const te=ne.target,I=X.current!==ne.clientX;if(ne.currentTarget.contains(te)&&I){const H=ne.clientX>X.current?"right":"left";F.current=H,X.current=ne.clientX}}))})})})})})})});FU.displayName=Ba;var Ese="MenuGroup",Y_=_.forwardRef((e,t)=>{const{__scopeMenu:n,...r}=e;return ce.jsx(vt.div,{role:"group",...r,ref:t})});Y_.displayName=Ese;var Sse="MenuLabel",KU=_.forwardRef((e,t)=>{const{__scopeMenu:n,...r}=e;return ce.jsx(vt.div,{...r,ref:t})});KU.displayName=Sse;var cy="MenuItem",yV="menu.itemSelect",Ix=_.forwardRef((e,t)=>{const{disabled:n=!1,onSelect:r,...o}=e,s=_.useRef(null),c=Up(cy,e.__scopeMenu),u=K_(cy,e.__scopeMenu),f=Mt(t,s),m=_.useRef(!1),g=()=>{const h=s.current;if(!n&&h){const y=new CustomEvent(yV,{bubbles:!0,cancelable:!0});h.addEventListener(yV,x=>r?.(x),{once:!0}),G9(h,y),y.defaultPrevented?m.current=!1:c.onClose()}};return ce.jsx(GU,{...o,ref:f,disabled:n,onClick:Le(e.onClick,g),onPointerDown:h=>{e.onPointerDown?.(h),m.current=!0},onPointerUp:Le(e.onPointerUp,h=>{m.current||h.currentTarget?.click()}),onKeyDown:Le(e.onKeyDown,h=>{const y=u.searchRef.current!=="";n||y&&h.key===" "||MC.includes(h.key)&&(h.currentTarget.click(),h.preventDefault())})})});Ix.displayName=cy;var GU=_.forwardRef((e,t)=>{const{__scopeMenu:n,disabled:r=!1,textValue:o,...s}=e,c=K_(cy,n),u=zU(n),f=_.useRef(null),m=Mt(t,f),[g,h]=_.useState(!1),[y,x]=_.useState("");return _.useEffect(()=>{const S=f.current;S&&x((S.textContent??"").trim())},[s.children]),ce.jsx(Yh.ItemSlot,{scope:n,disabled:r,textValue:o??y,children:ce.jsx(lse,{asChild:!0,...u,focusable:!r,children:ce.jsx(vt.div,{role:"menuitem","data-highlighted":g?"":void 0,"aria-disabled":r||void 0,"data-disabled":r?"":void 0,...s,ref:m,onPointerMove:Le(e.onPointerMove,Qh(S=>{r?c.onItemLeave(S):(c.onItemEnter(S),S.defaultPrevented||S.currentTarget.focus({preventScroll:!0}))})),onPointerLeave:Le(e.onPointerLeave,Qh(S=>c.onItemLeave(S))),onFocus:Le(e.onFocus,()=>h(!0)),onBlur:Le(e.onBlur,()=>h(!1))})})})}),Ase="MenuCheckboxItem",YU=_.forwardRef((e,t)=>{const{checked:n=!1,onCheckedChange:r,...o}=e;return ce.jsx(JU,{scope:e.__scopeMenu,checked:n,children:ce.jsx(Ix,{role:"menuitemcheckbox","aria-checked":uy(n)?"mixed":n,...o,ref:t,"data-state":X_(n),onSelect:Le(o.onSelect,()=>r?.(uy(n)?!0:!n),{checkForDefaultPrevented:!1})})})});YU.displayName=Ase;var QU="MenuRadioGroup",[Ose,Dse]=tu(QU,{value:void 0,onValueChange:()=>{}}),XU=_.forwardRef((e,t)=>{const{value:n,onValueChange:r,...o}=e,s=lo(r);return ce.jsx(Ose,{scope:e.__scopeMenu,value:n,onValueChange:s,children:ce.jsx(Y_,{...o,ref:t})})});XU.displayName=QU;var WU="MenuRadioItem",ZU=_.forwardRef((e,t)=>{const{value:n,...r}=e,o=Dse(WU,e.__scopeMenu),s=n===o.value;return ce.jsx(JU,{scope:e.__scopeMenu,checked:s,children:ce.jsx(Ix,{role:"menuitemradio","aria-checked":s,...r,ref:t,"data-state":X_(s),onSelect:Le(r.onSelect,()=>o.onValueChange?.(n),{checkForDefaultPrevented:!1})})})});ZU.displayName=WU;var Q_="MenuItemIndicator",[JU,Cse]=tu(Q_,{checked:!1}),eq=_.forwardRef((e,t)=>{const{__scopeMenu:n,forceMount:r,...o}=e,s=Cse(Q_,n);return ce.jsx(po,{present:r||uy(s.checked)||s.checked===!0,children:ce.jsx(vt.span,{...o,ref:t,"data-state":X_(s.checked)})})});eq.displayName=Q_;var Tse="MenuSeparator",tq=_.forwardRef((e,t)=>{const{__scopeMenu:n,...r}=e;return ce.jsx(vt.div,{role:"separator","aria-orientation":"horizontal",...r,ref:t})});tq.displayName=Tse;var _se="MenuArrow",nq=_.forwardRef((e,t)=>{const{__scopeMenu:n,...r}=e,o=kx(n);return ce.jsx(S_,{...o,...r,ref:t})});nq.displayName=_se;var jse="MenuSub",[RAe,rq]=tu(jse),xh="MenuSubTrigger",aq=_.forwardRef((e,t)=>{const n=nu(xh,e.__scopeMenu),r=Up(xh,e.__scopeMenu),o=rq(xh,e.__scopeMenu),s=K_(xh,e.__scopeMenu),c=_.useRef(null),{pointerGraceTimerRef:u,onPointerGraceIntentChange:f}=s,m={__scopeMenu:e.__scopeMenu},g=_.useCallback(()=>{c.current&&window.clearTimeout(c.current),c.current=null},[]);return _.useEffect(()=>g,[g]),_.useEffect(()=>{const h=u.current;return()=>{window.clearTimeout(h),f(null)}},[u,f]),ce.jsx(H_,{asChild:!0,...m,children:ce.jsx(GU,{id:o.triggerId,"aria-haspopup":"menu","aria-expanded":n.open,"aria-controls":o.contentId,"data-state":sq(n.open),...e,ref:Nx(t,o.onTriggerChange),onClick:h=>{e.onClick?.(h),!(e.disabled||h.defaultPrevented)&&(h.currentTarget.focus(),n.open||n.onOpenChange(!0))},onPointerMove:Le(e.onPointerMove,Qh(h=>{s.onItemEnter(h),!h.defaultPrevented&&!e.disabled&&!n.open&&!c.current&&(s.onPointerGraceIntentChange(null),c.current=window.setTimeout(()=>{n.onOpenChange(!0),g()},100))})),onPointerLeave:Le(e.onPointerLeave,Qh(h=>{g();const y=n.content?.getBoundingClientRect();if(y){const x=n.content?.dataset.side,S=x==="right",N=S?-5:5,w=y[S?"left":"right"],D=y[S?"right":"left"];s.onPointerGraceIntentChange({area:[{x:h.clientX+N,y:h.clientY},{x:w,y:y.top},{x:D,y:y.top},{x:D,y:y.bottom},{x:w,y:y.bottom}],side:x}),window.clearTimeout(u.current),u.current=window.setTimeout(()=>s.onPointerGraceIntentChange(null),300)}else{if(s.onTriggerLeave(h),h.defaultPrevented)return;s.onPointerGraceIntentChange(null)}})),onKeyDown:Le(e.onKeyDown,h=>{const y=s.searchRef.current!=="";e.disabled||y&&h.key===" "||dse[r.dir].includes(h.key)&&(n.onOpenChange(!0),n.content?.focus(),h.preventDefault())})})})});aq.displayName=xh;var iq="MenuSubContent",oq=_.forwardRef((e,t)=>{const n=qU(Ba,e.__scopeMenu),{forceMount:r=n.forceMount,...o}=e,s=nu(Ba,e.__scopeMenu),c=Up(Ba,e.__scopeMenu),u=rq(iq,e.__scopeMenu),f=_.useRef(null),m=Mt(t,f);return ce.jsx(Yh.Provider,{scope:e.__scopeMenu,children:ce.jsx(po,{present:r||s.open,children:ce.jsx(Yh.Slot,{scope:e.__scopeMenu,children:ce.jsx(G_,{id:u.contentId,"aria-labelledby":u.triggerId,...o,ref:m,align:"start",side:c.dir==="rtl"?"left":"right",disableOutsidePointerEvents:!1,disableOutsideScroll:!1,trapFocus:!1,onOpenAutoFocus:g=>{c.isUsingKeyboardRef.current&&f.current?.focus(),g.preventDefault()},onCloseAutoFocus:g=>g.preventDefault(),onFocusOutside:Le(e.onFocusOutside,g=>{g.target!==u.trigger&&s.onOpenChange(!1)}),onEscapeKeyDown:Le(e.onEscapeKeyDown,g=>{c.onClose(),g.preventDefault()}),onKeyDown:Le(e.onKeyDown,g=>{const h=g.currentTarget.contains(g.target),y=fse[c.dir].includes(g.key);h&&y&&(s.onOpenChange(!1),u.trigger?.focus(),g.preventDefault())})})})})})});oq.displayName=iq;function sq(e){return e?"open":"closed"}function uy(e){return e==="indeterminate"}function X_(e){return uy(e)?"indeterminate":e?"checked":"unchecked"}function Rse(e){const t=document.activeElement;for(const n of e)if(n===t||(n.focus(),document.activeElement!==t))return}function Pse(e,t){return e.map((n,r)=>e[(t+r)%e.length])}function Mse(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 c=Pse(e,Math.max(s,0));o.length===1&&(c=c.filter(m=>m!==n));const f=c.find(m=>m.toLowerCase().startsWith(o.toLowerCase()));return f!==n?f:void 0}function kse(e,t){const{x:n,y:r}=e;let o=!1;for(let s=0,c=t.length-1;s<t.length;c=s++){const u=t[s],f=t[c],m=u.x,g=u.y,h=f.x,y=f.y;g>r!=y>r&&n<(h-m)*(r-g)/(y-g)+m&&(o=!o)}return o}function Ise(e,t){if(!t)return!1;const n={x:e.clientX,y:e.clientY};return kse(n,t)}function Qh(e){return t=>t.pointerType==="mouse"?e(t):void 0}var Lse=UU,Vse=H_,$se=HU,Bse=FU,zse=Y_,Use=KU,qse=Ix,Hse=YU,Fse=XU,Kse=ZU,Gse=eq,Yse=tq,Qse=nq,Xse=aq,Wse=oq,Lx="DropdownMenu",[Zse]=ds(Lx,[BU]),Mr=BU(),[Jse,lq]=Zse(Lx),cq=e=>{const{__scopeDropdownMenu:t,children:n,dir:r,open:o,defaultOpen:s,onOpenChange:c,modal:u=!0}=e,f=Mr(t),m=_.useRef(null),[g,h]=kc({prop:o,defaultProp:s??!1,onChange:c,caller:Lx});return ce.jsx(Jse,{scope:t,triggerId:ro(),triggerRef:m,contentId:ro(),open:g,onOpenChange:h,onOpenToggle:_.useCallback(()=>h(y=>!y),[h]),modal:u,children:ce.jsx(Lse,{...f,open:g,onOpenChange:h,dir:r,modal:u,children:n})})};cq.displayName=Lx;var uq="DropdownMenuTrigger",dq=_.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,disabled:r=!1,...o}=e,s=lq(uq,n),c=Mr(n);return ce.jsx(Vse,{asChild:!0,...c,children:ce.jsx(vt.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:Nx(t,s.triggerRef),onPointerDown:Le(e.onPointerDown,u=>{!r&&u.button===0&&u.ctrlKey===!1&&(s.onOpenToggle(),s.open||u.preventDefault())}),onKeyDown:Le(e.onKeyDown,u=>{r||(["Enter"," "].includes(u.key)&&s.onOpenToggle(),u.key==="ArrowDown"&&s.onOpenChange(!0),["Enter"," ","ArrowDown"].includes(u.key)&&u.preventDefault())})})})});dq.displayName=uq;var ele="DropdownMenuPortal",fq=e=>{const{__scopeDropdownMenu:t,...n}=e,r=Mr(t);return ce.jsx($se,{...r,...n})};fq.displayName=ele;var mq="DropdownMenuContent",hq=_.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=lq(mq,n),s=Mr(n),c=_.useRef(!1);return ce.jsx(Bse,{id:o.contentId,"aria-labelledby":o.triggerId,...s,...r,ref:t,onCloseAutoFocus:Le(e.onCloseAutoFocus,u=>{c.current||o.triggerRef.current?.focus(),c.current=!1,u.preventDefault()}),onInteractOutside:Le(e.onInteractOutside,u=>{const f=u.detail.originalEvent,m=f.button===0&&f.ctrlKey===!0,g=f.button===2||m;(!o.modal||g)&&(c.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)"}})});hq.displayName=mq;var tle="DropdownMenuGroup",nle=_.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=Mr(n);return ce.jsx(zse,{...o,...r,ref:t})});nle.displayName=tle;var rle="DropdownMenuLabel",pq=_.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=Mr(n);return ce.jsx(Use,{...o,...r,ref:t})});pq.displayName=rle;var ale="DropdownMenuItem",gq=_.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=Mr(n);return ce.jsx(qse,{...o,...r,ref:t})});gq.displayName=ale;var ile="DropdownMenuCheckboxItem",ole=_.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=Mr(n);return ce.jsx(Hse,{...o,...r,ref:t})});ole.displayName=ile;var sle="DropdownMenuRadioGroup",lle=_.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=Mr(n);return ce.jsx(Fse,{...o,...r,ref:t})});lle.displayName=sle;var cle="DropdownMenuRadioItem",ule=_.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=Mr(n);return ce.jsx(Kse,{...o,...r,ref:t})});ule.displayName=cle;var dle="DropdownMenuItemIndicator",fle=_.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=Mr(n);return ce.jsx(Gse,{...o,...r,ref:t})});fle.displayName=dle;var mle="DropdownMenuSeparator",vq=_.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=Mr(n);return ce.jsx(Yse,{...o,...r,ref:t})});vq.displayName=mle;var hle="DropdownMenuArrow",ple=_.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=Mr(n);return ce.jsx(Qse,{...o,...r,ref:t})});ple.displayName=hle;var gle="DropdownMenuSubTrigger",vle=_.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=Mr(n);return ce.jsx(Xse,{...o,...r,ref:t})});vle.displayName=gle;var ble="DropdownMenuSubContent",yle=_.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=Mr(n);return ce.jsx(Wse,{...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)"}})});yle.displayName=ble;var xle=cq,Nle=dq,wle=fq,Ele=hq,Sle=pq,Ale=gq,Ole=vq;function Dle({...e}){return b.jsxDEV(xle,{"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 Cle({...e}){return b.jsxDEV(Nle,{"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 Tle({className:e,sideOffset:t=4,...n}){return b.jsxDEV(wle,{"data-loc":"client/src/components/ui/dropdown-menu.tsx:38",children:b.jsxDEV(Ele,{"data-loc":"client/src/components/ui/dropdown-menu.tsx:39","data-slot":"dropdown-menu-content",sideOffset:t,className:wt("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 _le({className:e,inset:t,variant:n="default",...r}){return b.jsxDEV(Ale,{"data-loc":"client/src/components/ui/dropdown-menu.tsx:70","data-slot":"dropdown-menu-item","data-inset":t,"data-variant":n,className:wt("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 jle({className:e,inset:t,...n}){return b.jsxDEV(Sle,{"data-loc":"client/src/components/ui/dropdown-menu.tsx:152","data-slot":"dropdown-menu-label","data-inset":t,className:wt("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 Rle({className:e,...t}){return b.jsxDEV(Ole,{"data-loc":"client/src/components/ui/dropdown-menu.tsx:169","data-slot":"dropdown-menu-separator",className:wt("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 Ob=[{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 bq({variant:e="icon",className:t}){const{i18n:n,t:r}=yx(),o=Ob.find(c=>c.code===n.language)||Ob[0],s=c=>{const u=Ob.find(f=>f.code===c);n.changeLanguage(c),u&&(document.documentElement.dir=u.dir,document.documentElement.lang=c),localStorage.setItem("nac-admin-language",c)};return b.jsxDEV(Dle,{"data-loc":"client/src/components/LanguageSwitcher.tsx:46",children:[b.jsxDEV(Cle,{"data-loc":"client/src/components/LanguageSwitcher.tsx:47",asChild:!0,children:b.jsxDEV(rt,{"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:[b.jsxDEV(Ic,{"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"&&b.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),b.jsxDEV(Tle,{"data-loc":"client/src/components/LanguageSwitcher.tsx:61",align:"end",className:"w-48 bg-slate-800 border-slate-700 text-slate-200",children:[b.jsxDEV(jle,{"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),b.jsxDEV(Rle,{"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),Ob.map(c=>b.jsxDEV(_le,{"data-loc":"client/src/components/LanguageSwitcher.tsx:70",onClick:()=>s(c.code),className:`cursor-pointer hover:bg-slate-700 focus:bg-slate-700 ${n.language===c.code?"text-amber-400 bg-slate-700/50":"text-slate-200"}`,children:[b.jsxDEV("span",{"data-loc":"client/src/components/LanguageSwitcher.tsx:79",className:"mr-2 text-base",children:c.flag},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/components/LanguageSwitcher.tsx",lineNumber:79,columnNumber:13},this),b.jsxDEV("span",{"data-loc":"client/src/components/LanguageSwitcher.tsx:80",className:"flex-1",children:c.label},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/components/LanguageSwitcher.tsx",lineNumber:80,columnNumber:13},this),n.language===c.code&&b.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)]},c.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 Ple(){_x();const{t:e}=yx(),[t,n]=_.useState(""),[r,o]=_.useState(""),[s,c]=_.useState(""),u=et.nacAuth.login.useMutation({onSuccess:()=>{window.location.href="/"},onError:m=>{c(m.message||e("auth.loginFailed"))}}),f=m=>{if(m.preventDefault(),c(""),!t||!r){c(e("auth.loginFailed"));return}u.mutate({email:t,password:r})};return b.jsxDEV("div",{"data-loc":"client/src/pages/Login.tsx:41",className:"min-h-screen bg-background flex items-center justify-center p-4 relative overflow-hidden",children:[b.jsxDEV("div",{"data-loc":"client/src/pages/Login.tsx:43",className:"absolute inset-0 overflow-hidden pointer-events-none",children:[b.jsxDEV("div",{"data-loc":"client/src/pages/Login.tsx:44",className:"absolute -top-40 -right-40 w-96 h-96 rounded-full opacity-10",style:{background:"radial-gradient(circle, oklch(0.65 0.18 200), transparent)"}},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/Login.tsx",lineNumber:44,columnNumber:9},this),b.jsxDEV("div",{"data-loc":"client/src/pages/Login.tsx:46",className:"absolute -bottom-40 -left-40 w-96 h-96 rounded-full opacity-10",style:{background:"radial-gradient(circle, oklch(0.55 0.20 230), transparent)"}},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/Login.tsx",lineNumber:46,columnNumber:9},this),b.jsxDEV("div",{"data-loc":"client/src/pages/Login.tsx:48",className:"absolute top-1/2 left-1/2 -translate-x-1/2 -translate-y-1/2 w-[600px] h-[600px] rounded-full opacity-5",style:{background:"radial-gradient(circle, oklch(0.65 0.18 200), transparent)"}},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/Login.tsx",lineNumber:48,columnNumber:9},this)]},void 0,!0,{fileName:"/home/ubuntu/nac-admin/client/src/pages/Login.tsx",lineNumber:43,columnNumber:7},this),b.jsxDEV("div",{"data-loc":"client/src/pages/Login.tsx:53",className:"absolute top-4 right-4 z-20",children:b.jsxDEV(bq,{"data-loc":"client/src/pages/Login.tsx:54",variant:"full"},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/Login.tsx",lineNumber:54,columnNumber:9},this)},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/Login.tsx",lineNumber:53,columnNumber:7},this),b.jsxDEV("div",{"data-loc":"client/src/pages/Login.tsx:57",className:"w-full max-w-md relative z-10",children:[b.jsxDEV("div",{"data-loc":"client/src/pages/Login.tsx:59",className:"text-center mb-8",children:[b.jsxDEV("div",{"data-loc":"client/src/pages/Login.tsx:60",className:"inline-flex items-center justify-center w-16 h-16 rounded-2xl nac-gradient mb-4 shadow-lg",children:b.jsxDEV(bl,{"data-loc":"client/src/pages/Login.tsx:61",className:"w-8 h-8 text-white"},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/Login.tsx",lineNumber:61,columnNumber:13},this)},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/Login.tsx",lineNumber:60,columnNumber:11},this),b.jsxDEV("h1",{"data-loc":"client/src/pages/Login.tsx:63",className:"text-3xl font-bold nac-gradient-text",children:e("nav.systemTitle")},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/Login.tsx",lineNumber:63,columnNumber:11},this),b.jsxDEV("p",{"data-loc":"client/src/pages/Login.tsx:64",className:"text-muted-foreground mt-2 text-sm",children:e("nav.systemSubtitle")},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/Login.tsx",lineNumber:64,columnNumber:11},this),b.jsxDEV("p",{"data-loc":"client/src/pages/Login.tsx:65",className:"text-muted-foreground/60 text-xs mt-1",children:"NewAssetChain Knowledge Engine"},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/Login.tsx",lineNumber:65,columnNumber:11},this)]},void 0,!0,{fileName:"/home/ubuntu/nac-admin/client/src/pages/Login.tsx",lineNumber:59,columnNumber:9},this),b.jsxDEV(At,{"data-loc":"client/src/pages/Login.tsx:68",className:"border-border/50 shadow-2xl",children:[b.jsxDEV(ha,{"data-loc":"client/src/pages/Login.tsx:69",className:"pb-4",children:[b.jsxDEV(pa,{"data-loc":"client/src/pages/Login.tsx:70",className:"text-lg font-semibold",children:e("auth.login")},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/Login.tsx",lineNumber:70,columnNumber:13},this),b.jsxDEV(Bz,{"data-loc":"client/src/pages/Login.tsx:71",className:"text-sm",children:e("auth.loginSubtitle")},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/Login.tsx",lineNumber:71,columnNumber:13},this)]},void 0,!0,{fileName:"/home/ubuntu/nac-admin/client/src/pages/Login.tsx",lineNumber:69,columnNumber:11},this),b.jsxDEV(Ot,{"data-loc":"client/src/pages/Login.tsx:75",children:[b.jsxDEV("form",{"data-loc":"client/src/pages/Login.tsx:76",onSubmit:f,className:"space-y-4",children:[b.jsxDEV("div",{"data-loc":"client/src/pages/Login.tsx:77",className:"space-y-2",children:[b.jsxDEV(Ct,{"data-loc":"client/src/pages/Login.tsx:78",htmlFor:"email",className:"text-sm font-medium",children:e("auth.email")},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/Login.tsx",lineNumber:78,columnNumber:17},this),b.jsxDEV("div",{"data-loc":"client/src/pages/Login.tsx:79",className:"relative",children:[b.jsxDEV(Jae,{"data-loc":"client/src/pages/Login.tsx:80",className:"absolute left-3 top-1/2 -translate-y-1/2 w-4 h-4 text-muted-foreground"},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/Login.tsx",lineNumber:80,columnNumber:19},this),b.jsxDEV(Vn,{"data-loc":"client/src/pages/Login.tsx:81",id:"email",type:"email",placeholder:"admin@newassetchain.io",value:t,onChange:m=>n(m.target.value),className:"pl-10 bg-input border-border/50 focus:border-primary",disabled:u.isPending,autoComplete:"email"},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/Login.tsx",lineNumber:81,columnNumber:19},this)]},void 0,!0,{fileName:"/home/ubuntu/nac-admin/client/src/pages/Login.tsx",lineNumber:79,columnNumber:17},this)]},void 0,!0,{fileName:"/home/ubuntu/nac-admin/client/src/pages/Login.tsx",lineNumber:77,columnNumber:15},this),b.jsxDEV("div",{"data-loc":"client/src/pages/Login.tsx:94",className:"space-y-2",children:[b.jsxDEV(Ct,{"data-loc":"client/src/pages/Login.tsx:95",htmlFor:"password",className:"text-sm font-medium",children:e("auth.password")},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/Login.tsx",lineNumber:95,columnNumber:17},this),b.jsxDEV("div",{"data-loc":"client/src/pages/Login.tsx:96",className:"relative",children:[b.jsxDEV(Wae,{"data-loc":"client/src/pages/Login.tsx:97",className:"absolute left-3 top-1/2 -translate-y-1/2 w-4 h-4 text-muted-foreground"},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/Login.tsx",lineNumber:97,columnNumber:19},this),b.jsxDEV(Vn,{"data-loc":"client/src/pages/Login.tsx:98",id:"password",type:"password",placeholder:"••••••••",value:r,onChange:m=>o(m.target.value),className:"pl-10 bg-input border-border/50 focus:border-primary",disabled:u.isPending,autoComplete:"current-password"},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/Login.tsx",lineNumber:98,columnNumber:19},this)]},void 0,!0,{fileName:"/home/ubuntu/nac-admin/client/src/pages/Login.tsx",lineNumber:96,columnNumber:17},this)]},void 0,!0,{fileName:"/home/ubuntu/nac-admin/client/src/pages/Login.tsx",lineNumber:94,columnNumber:15},this),s&&b.jsxDEV(Yoe,{"data-loc":"client/src/pages/Login.tsx:112",variant:"destructive",className:"py-2",children:b.jsxDEV(Qoe,{"data-loc":"client/src/pages/Login.tsx:113",className:"text-sm",children:s},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/Login.tsx",lineNumber:113,columnNumber:19},this)},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/Login.tsx",lineNumber:112,columnNumber:17},this),b.jsxDEV(rt,{"data-loc":"client/src/pages/Login.tsx:117",type:"submit",className:"w-full nac-gradient text-white font-medium h-10 mt-2",disabled:u.isPending,children:u.isPending?b.jsxDEV(b.Fragment,{children:[b.jsxDEV(_r,{"data-loc":"client/src/pages/Login.tsx:123",className:"w-4 h-4 mr-2 animate-spin"},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/Login.tsx",lineNumber:123,columnNumber:21},this),e("auth.loggingIn")]},void 0,!0,{fileName:"/home/ubuntu/nac-admin/client/src/pages/Login.tsx",lineNumber:123,columnNumber:19},this):e("auth.loginButton")},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/Login.tsx",lineNumber:117,columnNumber:15},this)]},void 0,!0,{fileName:"/home/ubuntu/nac-admin/client/src/pages/Login.tsx",lineNumber:76,columnNumber:13},this),b.jsxDEV("div",{"data-loc":"client/src/pages/Login.tsx:130",className:"mt-6 pt-4 border-t border-border/30",children:b.jsxDEV("div",{"data-loc":"client/src/pages/Login.tsx:131",className:"flex items-center gap-2 text-xs text-muted-foreground/60",children:[b.jsxDEV(bl,{"data-loc":"client/src/pages/Login.tsx:132",className:"w-3 h-3"},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/Login.tsx",lineNumber:132,columnNumber:17},this),b.jsxDEV("span",{"data-loc":"client/src/pages/Login.tsx:133",children:e("auth.authNotice")},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/Login.tsx",lineNumber:133,columnNumber:17},this)]},void 0,!0,{fileName:"/home/ubuntu/nac-admin/client/src/pages/Login.tsx",lineNumber:131,columnNumber:15},this)},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/Login.tsx",lineNumber:130,columnNumber:13},this)]},void 0,!0,{fileName:"/home/ubuntu/nac-admin/client/src/pages/Login.tsx",lineNumber:75,columnNumber:11},this)]},void 0,!0,{fileName:"/home/ubuntu/nac-admin/client/src/pages/Login.tsx",lineNumber:68,columnNumber:9},this),b.jsxDEV("p",{"data-loc":"client/src/pages/Login.tsx:139",className:"text-center text-xs text-muted-foreground/40 mt-6",children:"© 2025 NewAssetChain · Knowledge Engine Admin v1.0"},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/Login.tsx",lineNumber:139,columnNumber:9},this)]},void 0,!0,{fileName:"/home/ubuntu/nac-admin/client/src/pages/Login.tsx",lineNumber:57,columnNumber:7},this)]},void 0,!0,{fileName:"/home/ubuntu/nac-admin/client/src/pages/Login.tsx",lineNumber:41,columnNumber:5},this)}const Mle=T_("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 za({className:e,variant:t,asChild:n=!1,...r}){const o=n?F9:"span";return b.jsxDEV(o,{"data-loc":"client/src/components/ui/badge.tsx:38","data-slot":"badge",className:wt(Mle({variant:t}),e),...r},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/components/ui/badge.tsx",lineNumber:38,columnNumber:5},this)}var $E,xV;function Gr(){if(xV)return $E;xV=1;var e=Array.isArray;return $E=e,$E}var BE,NV;function yq(){if(NV)return BE;NV=1;var e=typeof cb=="object"&&cb&&cb.Object===Object&&cb;return BE=e,BE}var zE,wV;function go(){if(wV)return zE;wV=1;var e=yq(),t=typeof self=="object"&&self&&self.Object===Object&&self,n=e||t||Function("return this")();return zE=n,zE}var UE,EV;function qp(){if(EV)return UE;EV=1;var e=go(),t=e.Symbol;return UE=t,UE}var qE,SV;function kle(){if(SV)return qE;SV=1;var e=qp(),t=Object.prototype,n=t.hasOwnProperty,r=t.toString,o=e?e.toStringTag:void 0;function s(c){var u=n.call(c,o),f=c[o];try{c[o]=void 0;var m=!0}catch{}var g=r.call(c);return m&&(u?c[o]=f:delete c[o]),g}return qE=s,qE}var HE,AV;function Ile(){if(AV)return HE;AV=1;var e=Object.prototype,t=e.toString;function n(r){return t.call(r)}return HE=n,HE}var FE,OV;function fs(){if(OV)return FE;OV=1;var e=qp(),t=kle(),n=Ile(),r="[object Null]",o="[object Undefined]",s=e?e.toStringTag:void 0;function c(u){return u==null?u===void 0?o:r:s&&s in Object(u)?t(u):n(u)}return FE=c,FE}var KE,DV;function ms(){if(DV)return KE;DV=1;function e(t){return t!=null&&typeof t=="object"}return KE=e,KE}var GE,CV;function yf(){if(CV)return GE;CV=1;var e=fs(),t=ms(),n="[object Symbol]";function r(o){return typeof o=="symbol"||t(o)&&e(o)==n}return GE=r,GE}var YE,TV;function W_(){if(TV)return YE;TV=1;var e=Gr(),t=yf(),n=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,r=/^\w*$/;function o(s,c){if(e(s))return!1;var u=typeof s;return u=="number"||u=="symbol"||u=="boolean"||s==null||t(s)?!0:r.test(s)||!n.test(s)||c!=null&&s in Object(c)}return YE=o,YE}var QE,_V;function xl(){if(_V)return QE;_V=1;function e(t){var n=typeof t;return t!=null&&(n=="object"||n=="function")}return QE=e,QE}var XE,jV;function Z_(){if(jV)return XE;jV=1;var e=fs(),t=xl(),n="[object AsyncFunction]",r="[object Function]",o="[object GeneratorFunction]",s="[object Proxy]";function c(u){if(!t(u))return!1;var f=e(u);return f==r||f==o||f==n||f==s}return XE=c,XE}var WE,RV;function Lle(){if(RV)return WE;RV=1;var e=go(),t=e["__core-js_shared__"];return WE=t,WE}var ZE,PV;function Vle(){if(PV)return ZE;PV=1;var e=Lle(),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 ZE=n,ZE}var JE,MV;function xq(){if(MV)return JE;MV=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 JE=n,JE}var eS,kV;function $le(){if(kV)return eS;kV=1;var e=Z_(),t=Vle(),n=xl(),r=xq(),o=/[\\^$.*+?()[\]{}|]/g,s=/^\[object .+?Constructor\]$/,c=Function.prototype,u=Object.prototype,f=c.toString,m=u.hasOwnProperty,g=RegExp("^"+f.call(m).replace(o,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function h(y){if(!n(y)||t(y))return!1;var x=e(y)?g:s;return x.test(r(y))}return eS=h,eS}var tS,IV;function Ble(){if(IV)return tS;IV=1;function e(t,n){return t?.[n]}return tS=e,tS}var nS,LV;function ru(){if(LV)return nS;LV=1;var e=$le(),t=Ble();function n(r,o){var s=t(r,o);return e(s)?s:void 0}return nS=n,nS}var rS,VV;function Vx(){if(VV)return rS;VV=1;var e=ru(),t=e(Object,"create");return rS=t,rS}var aS,$V;function zle(){if($V)return aS;$V=1;var e=Vx();function t(){this.__data__=e?e(null):{},this.size=0}return aS=t,aS}var iS,BV;function Ule(){if(BV)return iS;BV=1;function e(t){var n=this.has(t)&&delete this.__data__[t];return this.size-=n?1:0,n}return iS=e,iS}var oS,zV;function qle(){if(zV)return oS;zV=1;var e=Vx(),t="__lodash_hash_undefined__",n=Object.prototype,r=n.hasOwnProperty;function o(s){var c=this.__data__;if(e){var u=c[s];return u===t?void 0:u}return r.call(c,s)?c[s]:void 0}return oS=o,oS}var sS,UV;function Hle(){if(UV)return sS;UV=1;var e=Vx(),t=Object.prototype,n=t.hasOwnProperty;function r(o){var s=this.__data__;return e?s[o]!==void 0:n.call(s,o)}return sS=r,sS}var lS,qV;function Fle(){if(qV)return lS;qV=1;var e=Vx(),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 lS=n,lS}var cS,HV;function Kle(){if(HV)return cS;HV=1;var e=zle(),t=Ule(),n=qle(),r=Hle(),o=Fle();function s(c){var u=-1,f=c==null?0:c.length;for(this.clear();++u<f;){var m=c[u];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,cS=s,cS}var uS,FV;function Gle(){if(FV)return uS;FV=1;function e(){this.__data__=[],this.size=0}return uS=e,uS}var dS,KV;function J_(){if(KV)return dS;KV=1;function e(t,n){return t===n||t!==t&&n!==n}return dS=e,dS}var fS,GV;function $x(){if(GV)return fS;GV=1;var e=J_();function t(n,r){for(var o=n.length;o--;)if(e(n[o][0],r))return o;return-1}return fS=t,fS}var mS,YV;function Yle(){if(YV)return mS;YV=1;var e=$x(),t=Array.prototype,n=t.splice;function r(o){var s=this.__data__,c=e(s,o);if(c<0)return!1;var u=s.length-1;return c==u?s.pop():n.call(s,c,1),--this.size,!0}return mS=r,mS}var hS,QV;function Qle(){if(QV)return hS;QV=1;var e=$x();function t(n){var r=this.__data__,o=e(r,n);return o<0?void 0:r[o][1]}return hS=t,hS}var pS,XV;function Xle(){if(XV)return pS;XV=1;var e=$x();function t(n){return e(this.__data__,n)>-1}return pS=t,pS}var gS,WV;function Wle(){if(WV)return gS;WV=1;var e=$x();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 gS=t,gS}var vS,ZV;function Bx(){if(ZV)return vS;ZV=1;var e=Gle(),t=Yle(),n=Qle(),r=Xle(),o=Wle();function s(c){var u=-1,f=c==null?0:c.length;for(this.clear();++u<f;){var m=c[u];this.set(m[0],m[1])}}return s.prototype.clear=e,s.prototype.delete=t,s.prototype.get=n,s.prototype.has=r,s.prototype.set=o,vS=s,vS}var bS,JV;function ej(){if(JV)return bS;JV=1;var e=ru(),t=go(),n=e(t,"Map");return bS=n,bS}var yS,e4;function Zle(){if(e4)return yS;e4=1;var e=Kle(),t=Bx(),n=ej();function r(){this.size=0,this.__data__={hash:new e,map:new(n||t),string:new e}}return yS=r,yS}var xS,t4;function Jle(){if(t4)return xS;t4=1;function e(t){var n=typeof t;return n=="string"||n=="number"||n=="symbol"||n=="boolean"?t!=="__proto__":t===null}return xS=e,xS}var NS,n4;function zx(){if(n4)return NS;n4=1;var e=Jle();function t(n,r){var o=n.__data__;return e(r)?o[typeof r=="string"?"string":"hash"]:o.map}return NS=t,NS}var wS,r4;function ece(){if(r4)return wS;r4=1;var e=zx();function t(n){var r=e(this,n).delete(n);return this.size-=r?1:0,r}return wS=t,wS}var ES,a4;function tce(){if(a4)return ES;a4=1;var e=zx();function t(n){return e(this,n).get(n)}return ES=t,ES}var SS,i4;function nce(){if(i4)return SS;i4=1;var e=zx();function t(n){return e(this,n).has(n)}return SS=t,SS}var AS,o4;function rce(){if(o4)return AS;o4=1;var e=zx();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 AS=t,AS}var OS,s4;function tj(){if(s4)return OS;s4=1;var e=Zle(),t=ece(),n=tce(),r=nce(),o=rce();function s(c){var u=-1,f=c==null?0:c.length;for(this.clear();++u<f;){var m=c[u];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,OS=s,OS}var DS,l4;function Nq(){if(l4)return DS;l4=1;var e=tj(),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 c=arguments,u=o?o.apply(this,c):c[0],f=s.cache;if(f.has(u))return f.get(u);var m=r.apply(this,c);return s.cache=f.set(u,m)||f,m};return s.cache=new(n.Cache||e),s}return n.Cache=e,DS=n,DS}var CS,c4;function ace(){if(c4)return CS;c4=1;var e=Nq(),t=500;function n(r){var o=e(r,function(c){return s.size===t&&s.clear(),c}),s=o.cache;return o}return CS=n,CS}var TS,u4;function ice(){if(u4)return TS;u4=1;var e=ace(),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(c,u,f,m){s.push(f?m.replace(n,"$1"):u||c)}),s});return TS=r,TS}var _S,d4;function nj(){if(d4)return _S;d4=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 _S=e,_S}var jS,f4;function oce(){if(f4)return jS;f4=1;var e=qp(),t=nj(),n=Gr(),r=yf(),o=e?e.prototype:void 0,s=o?o.toString:void 0;function c(u){if(typeof u=="string")return u;if(n(u))return t(u,c)+"";if(r(u))return s?s.call(u):"";var f=u+"";return f=="0"&&1/u==-1/0?"-0":f}return jS=c,jS}var RS,m4;function wq(){if(m4)return RS;m4=1;var e=oce();function t(n){return n==null?"":e(n)}return RS=t,RS}var PS,h4;function Eq(){if(h4)return PS;h4=1;var e=Gr(),t=W_(),n=ice(),r=wq();function o(s,c){return e(s)?s:t(s,c)?[s]:n(r(s))}return PS=o,PS}var MS,p4;function Ux(){if(p4)return MS;p4=1;var e=yf();function t(n){if(typeof n=="string"||e(n))return n;var r=n+"";return r=="0"&&1/n==-1/0?"-0":r}return MS=t,MS}var kS,g4;function rj(){if(g4)return kS;g4=1;var e=Eq(),t=Ux();function n(r,o){o=e(o,r);for(var s=0,c=o.length;r!=null&&s<c;)r=r[t(o[s++])];return s&&s==c?r:void 0}return kS=n,kS}var IS,v4;function Sq(){if(v4)return IS;v4=1;var e=rj();function t(n,r,o){var s=n==null?void 0:e(n,r);return s===void 0?o:s}return IS=t,IS}var sce=Sq();const va=Bt(sce);var LS,b4;function lce(){if(b4)return LS;b4=1;function e(t){return t==null}return LS=e,LS}var cce=lce();const ot=Bt(cce);var VS,y4;function uce(){if(y4)return VS;y4=1;var e=fs(),t=Gr(),n=ms(),r="[object String]";function o(s){return typeof s=="string"||!t(s)&&n(s)&&e(s)==r}return VS=o,VS}var dce=uce();const qc=Bt(dce);var fce=Z_();const Xe=Bt(fce);var mce=xl();const xf=Bt(mce);var $S={exports:{}},Lt={},x4;function hce(){if(x4)return Lt;x4=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"),c=Symbol.for("react.context"),u=Symbol.for("react.server_context"),f=Symbol.for("react.forward_ref"),m=Symbol.for("react.suspense"),g=Symbol.for("react.suspense_list"),h=Symbol.for("react.memo"),y=Symbol.for("react.lazy"),x=Symbol.for("react.offscreen"),S=!1,N=!1,w=!1,D=!1,C=!1,j;j=Symbol.for("react.module.reference");function P(Ne){return!!(typeof Ne=="string"||typeof Ne=="function"||Ne===n||Ne===o||C||Ne===r||Ne===m||Ne===g||D||Ne===x||S||N||w||typeof Ne=="object"&&Ne!==null&&(Ne.$$typeof===y||Ne.$$typeof===h||Ne.$$typeof===s||Ne.$$typeof===c||Ne.$$typeof===f||Ne.$$typeof===j||Ne.getModuleId!==void 0))}function A(Ne){if(typeof Ne=="object"&&Ne!==null){var ut=Ne.$$typeof;switch(ut){case e:var Ve=Ne.type;switch(Ve){case n:case o:case r:case m:case g:return Ve;default:var nt=Ve&&Ve.$$typeof;switch(nt){case u:case c:case f:case y:case h:case s:return nt;default:return ut}}case t:return ut}}}var T=c,R=s,M=e,$=f,z=n,U=y,V=h,F=t,X=o,ee=r,q=m,Q=g,G=!1,ne=!1;function te(Ne){return G||(G=!0,console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 18+.")),!1}function I(Ne){return ne||(ne=!0,console.warn("The ReactIs.isConcurrentMode() alias has been deprecated, and will be removed in React 18+.")),!1}function H(Ne){return A(Ne)===c}function Y(Ne){return A(Ne)===s}function re(Ne){return typeof Ne=="object"&&Ne!==null&&Ne.$$typeof===e}function ge(Ne){return A(Ne)===f}function we(Ne){return A(Ne)===n}function le(Ne){return A(Ne)===y}function ye(Ne){return A(Ne)===h}function me(Ne){return A(Ne)===t}function xe(Ne){return A(Ne)===o}function de(Ne){return A(Ne)===r}function ie(Ne){return A(Ne)===m}function ze(Ne){return A(Ne)===g}Lt.ContextConsumer=T,Lt.ContextProvider=R,Lt.Element=M,Lt.ForwardRef=$,Lt.Fragment=z,Lt.Lazy=U,Lt.Memo=V,Lt.Portal=F,Lt.Profiler=X,Lt.StrictMode=ee,Lt.Suspense=q,Lt.SuspenseList=Q,Lt.isAsyncMode=te,Lt.isConcurrentMode=I,Lt.isContextConsumer=H,Lt.isContextProvider=Y,Lt.isElement=re,Lt.isForwardRef=ge,Lt.isFragment=we,Lt.isLazy=le,Lt.isMemo=ye,Lt.isPortal=me,Lt.isProfiler=xe,Lt.isStrictMode=de,Lt.isSuspense=ie,Lt.isSuspenseList=ze,Lt.isValidElementType=P,Lt.typeOf=A})(),Lt}var N4;function pce(){return N4||(N4=1,$S.exports=hce()),$S.exports}var gce=pce(),BS,w4;function Aq(){if(w4)return BS;w4=1;var e=fs(),t=ms(),n="[object Number]";function r(o){return typeof o=="number"||t(o)&&e(o)==n}return BS=r,BS}var zS,E4;function vce(){if(E4)return zS;E4=1;var e=Aq();function t(n){return e(n)&&n!=+n}return zS=t,zS}var bce=vce();const Nf=Bt(bce);var yce=Aq();const xce=Bt(yce);var jr=function(t){return t===0?0:t>0?1:-1},wc=function(t){return qc(t)&&t.indexOf("%")===t.length-1},Oe=function(t){return xce(t)&&!Nf(t)},Nce=function(t){return ot(t)},Bn=function(t){return Oe(t)||qc(t)},wce=0,wf=function(t){var n=++wce;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)&&!qc(t))return r;var s;if(wc(t)){var c=t.indexOf("%");s=n*parseFloat(t.slice(0,c))/100}else s=+t;return Nf(s)&&(s=r),o&&s>n&&(s=n),s},ll=function(t){if(!t)return null;var n=Object.keys(t);return n&&n.length?t[n[0]]:null},Ece=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},Fr=function(t,n){return Oe(t)&&Oe(n)?function(r){return t+r*(n-t)}:function(){return n}};function dy(e,t,n){return!e||!e.length?null:e.find(function(r){return r&&(typeof t=="function"?t(r):va(r,t))===n})}var Sce=function(t,n){return Oe(t)&&Oe(n)?t-n:qc(t)&&qc(n)?t.localeCompare(n):t instanceof Date&&n instanceof Date?t.getTime()-n.getTime():String(t).localeCompare(String(n))};function Td(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 kC(e){"@babel/helpers - typeof";return kC=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},kC(e)}var Ace=["viewBox","children"],Oce=["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"],S4=["points","pathLength"],US={svg:Ace,polygon:S4,polyline:S4},aj=["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"],fy=function(t,n){if(!t||typeof t=="function"||typeof t=="boolean")return null;var r=t;if(_.isValidElement(t)&&(r=t.props),!xf(r))return null;var o={};return Object.keys(r).forEach(function(s){aj.includes(s)&&(o[s]=n||function(c){return r[s](r,c)})}),o},Dce=function(t,n,r){return function(o){return t(n,r,o),null}},Hc=function(t,n,r){if(!xf(t)||kC(t)!=="object")return null;var o=null;return Object.keys(t).forEach(function(s){var c=t[s];aj.includes(s)&&typeof c=="function"&&(o||(o={}),o[s]=Dce(c,n,r))}),o},Cce=["children"],Tce=["children"];function A4(e,t){if(e==null)return{};var n=_ce(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 _ce(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 IC(e){"@babel/helpers - typeof";return IC=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},IC(e)}var O4={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"},ns=function(t){return typeof t=="string"?t:t?t.displayName||t.name||"Component":""},D4=null,qS=null,ij=function e(t){if(t===D4&&Array.isArray(qS))return qS;var n=[];return _.Children.forEach(t,function(r){ot(r)||(gce.isFragment(r)?n=n.concat(e(r.props.children)):n.push(r))}),qS=n,D4=t,n};function Ua(e,t){var n=[],r=[];return Array.isArray(t)?r=t.map(function(o){return ns(o)}):r=[ns(t)],ij(e).forEach(function(o){var s=va(o,"type.displayName")||va(o,"type.name");r.indexOf(s)!==-1&&n.push(o)}),n}function da(e,t){var n=Ua(e,t);return n&&n[0]}var C4=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)},jce=["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"],Rce=function(t){return t&&t.type&&qc(t.type)&&jce.indexOf(t.type)>=0},Pce=function(t){return t&&IC(t)==="object"&&"clipDot"in t},Mce=function(t,n,r,o){var s,c=(s=US?.[o])!==null&&s!==void 0?s:[];return n.startsWith("data-")||!Xe(t)&&(o&&c.includes(n)||Oce.includes(n))||r&&aj.includes(n)},Fe=function(t,n,r){if(!t||typeof t=="function"||typeof t=="boolean")return null;var o=t;if(_.isValidElement(t)&&(o=t.props),!xf(o))return null;var s={};return Object.keys(o).forEach(function(c){var u;Mce((u=o)===null||u===void 0?void 0:u[c],c,n,r)&&(s[c]=o[c])}),s},LC=function e(t,n){if(t===n)return!0;var r=_.Children.count(t);if(r!==_.Children.count(n))return!1;if(r===0)return!0;if(r===1)return T4(Array.isArray(t)?t[0]:t,Array.isArray(n)?n[0]:n);for(var o=0;o<r;o++){var s=t[o],c=n[o];if(Array.isArray(s)||Array.isArray(c)){if(!e(s,c))return!1}else if(!T4(s,c))return!1}return!0},T4=function(t,n){if(ot(t)&&ot(n))return!0;if(!ot(t)&&!ot(n)){var r=t.props||{},o=r.children,s=A4(r,Cce),c=n.props||{},u=c.children,f=A4(c,Tce);return o&&u?Td(s,f)&&LC(o,u):!o&&!u?Td(s,f):!1}return!1},_4=function(t,n){var r=[],o={};return ij(t).forEach(function(s,c){if(Rce(s))r.push(s);else if(s){var u=ns(s.type),f=n[u]||{},m=f.handler,g=f.once;if(m&&(!g||!o[u])){var h=m(s,u,c);r.push(h),o[u]=!0}}}),r},kce=function(t){var n=t&&t.type;return n&&O4[n]?O4[n]:null},Ice=function(t,n){return ij(n).indexOf(t)},Lce=["children","width","height","viewBox","className","style","title","desc"];function VC(){return VC=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},VC.apply(this,arguments)}function Vce(e,t){if(e==null)return{};var n=$ce(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 $ce(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 $C(e){var t=e.children,n=e.width,r=e.height,o=e.viewBox,s=e.className,c=e.style,u=e.title,f=e.desc,m=Vce(e,Lce),g=o||{width:n,height:r,x:0,y:0},h=it("recharts-surface",s);return K.createElement("svg",VC({},Fe(m,!0,"svg"),{className:h,width:n,height:r,style:c,viewBox:"".concat(g.x," ").concat(g.y," ").concat(g.width," ").concat(g.height)}),K.createElement("title",null,u),K.createElement("desc",null,f),t)}var Bce=["children","className"];function BC(){return BC=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},BC.apply(this,arguments)}function zce(e,t){if(e==null)return{};var n=Uce(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 Uce(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 Dt=K.forwardRef(function(e,t){var n=e.children,r=e.className,o=zce(e,Bce),s=it("recharts-layer",r);return K.createElement("g",BC({className:s},Fe(o,!0),{ref:t}),n)}),ui=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 c=0;console.warn(n.replace(/%s/g,function(){return o[c++]}))}},HS,j4;function qce(){if(j4)return HS;j4=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 c=Array(s);++o<s;)c[o]=t[o+n];return c}return HS=e,HS}var FS,R4;function Hce(){if(R4)return FS;R4=1;var e=qce();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 FS=t,FS}var KS,P4;function Oq(){if(P4)return KS;P4=1;var e="\\ud800-\\udfff",t="\\u0300-\\u036f",n="\\ufe20-\\ufe2f",r="\\u20d0-\\u20ff",o=t+n+r,s="\\ufe0e\\ufe0f",c="\\u200d",u=RegExp("["+c+e+o+s+"]");function f(m){return u.test(m)}return KS=f,KS}var GS,M4;function Fce(){if(M4)return GS;M4=1;function e(t){return t.split("")}return GS=e,GS}var YS,k4;function Kce(){if(k4)return YS;k4=1;var e="\\ud800-\\udfff",t="\\u0300-\\u036f",n="\\ufe20-\\ufe2f",r="\\u20d0-\\u20ff",o=t+n+r,s="\\ufe0e\\ufe0f",c="["+e+"]",u="["+o+"]",f="\\ud83c[\\udffb-\\udfff]",m="(?:"+u+"|"+f+")",g="[^"+e+"]",h="(?:\\ud83c[\\udde6-\\uddff]){2}",y="[\\ud800-\\udbff][\\udc00-\\udfff]",x="\\u200d",S=m+"?",N="["+s+"]?",w="(?:"+x+"(?:"+[g,h,y].join("|")+")"+N+S+")*",D=N+S+w,C="(?:"+[g+u+"?",u,h,y,c].join("|")+")",j=RegExp(f+"(?="+f+")|"+C+D,"g");function P(A){return A.match(j)||[]}return YS=P,YS}var QS,I4;function Gce(){if(I4)return QS;I4=1;var e=Fce(),t=Oq(),n=Kce();function r(o){return t(o)?n(o):e(o)}return QS=r,QS}var XS,L4;function Yce(){if(L4)return XS;L4=1;var e=Hce(),t=Oq(),n=Gce(),r=wq();function o(s){return function(c){c=r(c);var u=t(c)?n(c):void 0,f=u?u[0]:c.charAt(0),m=u?e(u,1).join(""):c.slice(1);return f[s]()+m}}return XS=o,XS}var WS,V4;function Qce(){if(V4)return WS;V4=1;var e=Yce(),t=e("toUpperCase");return WS=t,WS}var Xce=Qce();const qx=Bt(Xce);function Jt(e){return function(){return e}}const Dq=Math.cos,my=Math.sin,gi=Math.sqrt,hy=Math.PI,Hx=2*hy,zC=Math.PI,UC=2*zC,vc=1e-6,Wce=UC-vc;function Cq(e){this._+=e[0];for(let t=1,n=e.length;t<n;++t)this._+=arguments[t]+e[t]}function Zce(e){let t=Math.floor(e);if(!(t>=0))throw new Error(`invalid digits: ${e}`);if(t>15)return Cq;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 Jce{constructor(t){this._x0=this._y0=this._x1=this._y1=null,this._="",this._append=t==null?Cq:Zce(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,c){this._append`C${+t},${+n},${+r},${+o},${this._x1=+s},${this._y1=+c}`}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 c=this._x1,u=this._y1,f=r-t,m=o-n,g=c-t,h=u-n,y=g*g+h*h;if(this._x1===null)this._append`M${this._x1=t},${this._y1=n}`;else if(y>vc)if(!(Math.abs(h*f-m*g)>vc)||!s)this._append`L${this._x1=t},${this._y1=n}`;else{let x=r-c,S=o-u,N=f*f+m*m,w=x*x+S*S,D=Math.sqrt(N),C=Math.sqrt(y),j=s*Math.tan((zC-Math.acos((N+y-w)/(2*D*C)))/2),P=j/C,A=j/D;Math.abs(P-1)>vc&&this._append`L${t+P*g},${n+P*h}`,this._append`A${s},${s},0,0,${+(h*x>g*S)},${this._x1=t+A*f},${this._y1=n+A*m}`}}arc(t,n,r,o,s,c){if(t=+t,n=+n,r=+r,c=!!c,r<0)throw new Error(`negative radius: ${r}`);let u=r*Math.cos(o),f=r*Math.sin(o),m=t+u,g=n+f,h=1^c,y=c?o-s:s-o;this._x1===null?this._append`M${m},${g}`:(Math.abs(this._x1-m)>vc||Math.abs(this._y1-g)>vc)&&this._append`L${m},${g}`,r&&(y<0&&(y=y%UC+UC),y>Wce?this._append`A${r},${r},0,1,${h},${t-u},${n-f}A${r},${r},0,1,${h},${this._x1=m},${this._y1=g}`:y>vc&&this._append`A${r},${r},0,${+(y>=zC)},${h},${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 oj(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 Jce(t)}function sj(e){return typeof e=="object"&&"length"in e?e:Array.from(e)}function Tq(e){this._context=e}Tq.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 Fx(e){return new Tq(e)}function _q(e){return e[0]}function jq(e){return e[1]}function Rq(e,t){var n=Jt(!0),r=null,o=Fx,s=null,c=oj(u);e=typeof e=="function"?e:e===void 0?_q:Jt(e),t=typeof t=="function"?t:t===void 0?jq:Jt(t);function u(f){var m,g=(f=sj(f)).length,h,y=!1,x;for(r==null&&(s=o(x=c())),m=0;m<=g;++m)!(m<g&&n(h=f[m],m,f))===y&&((y=!y)?s.lineStart():s.lineEnd()),y&&s.point(+e(h,m,f),+t(h,m,f));if(x)return s=null,x+""||null}return u.x=function(f){return arguments.length?(e=typeof f=="function"?f:Jt(+f),u):e},u.y=function(f){return arguments.length?(t=typeof f=="function"?f:Jt(+f),u):t},u.defined=function(f){return arguments.length?(n=typeof f=="function"?f:Jt(!!f),u):n},u.curve=function(f){return arguments.length?(o=f,r!=null&&(s=o(r)),u):o},u.context=function(f){return arguments.length?(f==null?r=s=null:s=o(r=f),u):r},u}function Db(e,t,n){var r=null,o=Jt(!0),s=null,c=Fx,u=null,f=oj(m);e=typeof e=="function"?e:e===void 0?_q:Jt(+e),t=typeof t=="function"?t:Jt(t===void 0?0:+t),n=typeof n=="function"?n:n===void 0?jq:Jt(+n);function m(h){var y,x,S,N=(h=sj(h)).length,w,D=!1,C,j=new Array(N),P=new Array(N);for(s==null&&(u=c(C=f())),y=0;y<=N;++y){if(!(y<N&&o(w=h[y],y,h))===D)if(D=!D)x=y,u.areaStart(),u.lineStart();else{for(u.lineEnd(),u.lineStart(),S=y-1;S>=x;--S)u.point(j[S],P[S]);u.lineEnd(),u.areaEnd()}D&&(j[y]=+e(w,y,h),P[y]=+t(w,y,h),u.point(r?+r(w,y,h):j[y],n?+n(w,y,h):P[y]))}if(C)return u=null,C+""||null}function g(){return Rq().defined(o).curve(c).context(s)}return m.x=function(h){return arguments.length?(e=typeof h=="function"?h:Jt(+h),r=null,m):e},m.x0=function(h){return arguments.length?(e=typeof h=="function"?h:Jt(+h),m):e},m.x1=function(h){return arguments.length?(r=h==null?null:typeof h=="function"?h:Jt(+h),m):r},m.y=function(h){return arguments.length?(t=typeof h=="function"?h:Jt(+h),n=null,m):t},m.y0=function(h){return arguments.length?(t=typeof h=="function"?h:Jt(+h),m):t},m.y1=function(h){return arguments.length?(n=h==null?null:typeof h=="function"?h:Jt(+h),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(h){return arguments.length?(o=typeof h=="function"?h:Jt(!!h),m):o},m.curve=function(h){return arguments.length?(c=h,s!=null&&(u=c(s)),m):c},m.context=function(h){return arguments.length?(h==null?s=u=null:u=c(s=h),m):s},m}class Pq{constructor(t,n){this._context=t,this._x=n}areaStart(){this._line=0}areaEnd(){this._line=NaN}lineStart(){this._point=0}lineEnd(){(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line}point(t,n){switch(t=+t,n=+n,this._point){case 0:{this._point=1,this._line?this._context.lineTo(t,n):this._context.moveTo(t,n);break}case 1:this._point=2;default:{this._x?this._context.bezierCurveTo(this._x0=(this._x0+t)/2,this._y0,this._x0,n,t,n):this._context.bezierCurveTo(this._x0,this._y0=(this._y0+n)/2,t,this._y0,t,n);break}}this._x0=t,this._y0=n}}function eue(e){return new Pq(e,!0)}function tue(e){return new Pq(e,!1)}const lj={draw(e,t){const n=gi(t/hy);e.moveTo(n,0),e.arc(0,0,n,0,Hx)}},nue={draw(e,t){const n=gi(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()}},Mq=gi(1/3),rue=Mq*2,aue={draw(e,t){const n=gi(t/rue),r=n*Mq;e.moveTo(0,-n),e.lineTo(r,0),e.lineTo(0,n),e.lineTo(-r,0),e.closePath()}},iue={draw(e,t){const n=gi(t),r=-n/2;e.rect(r,r,n,n)}},oue=.8908130915292852,kq=my(hy/10)/my(7*hy/10),sue=my(Hx/10)*kq,lue=-Dq(Hx/10)*kq,cue={draw(e,t){const n=gi(t*oue),r=sue*n,o=lue*n;e.moveTo(0,-n),e.lineTo(r,o);for(let s=1;s<5;++s){const c=Hx*s/5,u=Dq(c),f=my(c);e.lineTo(f*n,-u*n),e.lineTo(u*r-f*o,f*r+u*o)}e.closePath()}},ZS=gi(3),uue={draw(e,t){const n=-gi(t/(ZS*3));e.moveTo(0,n*2),e.lineTo(-ZS*n,-n),e.lineTo(ZS*n,-n),e.closePath()}},Ma=-.5,ka=gi(3)/2,qC=1/gi(12),due=(qC/2+1)*3,fue={draw(e,t){const n=gi(t/due),r=n/2,o=n*qC,s=r,c=n*qC+n,u=-s,f=c;e.moveTo(r,o),e.lineTo(s,c),e.lineTo(u,f),e.lineTo(Ma*r-ka*o,ka*r+Ma*o),e.lineTo(Ma*s-ka*c,ka*s+Ma*c),e.lineTo(Ma*u-ka*f,ka*u+Ma*f),e.lineTo(Ma*r+ka*o,Ma*o-ka*r),e.lineTo(Ma*s+ka*c,Ma*c-ka*s),e.lineTo(Ma*u+ka*f,Ma*f-ka*u),e.closePath()}};function mue(e,t){let n=null,r=oj(o);e=typeof e=="function"?e:Jt(e||lj),t=typeof t=="function"?t:Jt(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:Jt(s),o):e},o.size=function(s){return arguments.length?(t=typeof s=="function"?s:Jt(+s),o):t},o.context=function(s){return arguments.length?(n=s??null,o):n},o}function py(){}function gy(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 Iq(e){this._context=e}Iq.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:gy(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:gy(this,e,t);break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}};function hue(e){return new Iq(e)}function Lq(e){this._context=e}Lq.prototype={areaStart:py,areaEnd:py,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:gy(this,e,t);break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}};function pue(e){return new Lq(e)}function Vq(e){this._context=e}Vq.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=NaN,this._point=0},lineEnd:function(){(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:gy(this,e,t);break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}};function gue(e){return new Vq(e)}function $q(e){this._context=e}$q.prototype={areaStart:py,areaEnd:py,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 vue(e){return new $q(e)}function $4(e){return e<0?-1:1}function B4(e,t,n){var r=e._x1-e._x0,o=t-e._x1,s=(e._y1-e._y0)/(r||o<0&&-0),c=(n-e._y1)/(o||r<0&&-0),u=(s*o+c*r)/(r+o);return($4(s)+$4(c))*Math.min(Math.abs(s),Math.abs(c),.5*Math.abs(u))||0}function z4(e,t){var n=e._x1-e._x0;return n?(3*(e._y1-e._y0)/n-t)/2:t}function JS(e,t,n){var r=e._x0,o=e._y0,s=e._x1,c=e._y1,u=(s-r)/3;e._context.bezierCurveTo(r+u,o+u*t,s-u,c-u*n,s,c)}function vy(e){this._context=e}vy.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:JS(this,this._t0,z4(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,JS(this,z4(this,n=B4(this,e,t)),n);break;default:JS(this,this._t0,n=B4(this,e,t));break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t,this._t0=n}}};function Bq(e){this._context=new zq(e)}(Bq.prototype=Object.create(vy.prototype)).point=function(e,t){vy.prototype.point.call(this,t,e)};function zq(e){this._context=e}zq.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 bue(e){return new vy(e)}function yue(e){return new Bq(e)}function Uq(e){this._context=e}Uq.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=U4(e),o=U4(t),s=0,c=1;c<n;++s,++c)this._context.bezierCurveTo(r[0][s],o[0][s],r[1][s],o[1][s],e[c],t[c]);(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 U4(e){var t,n=e.length-1,r,o=new Array(n),s=new Array(n),c=new Array(n);for(o[0]=0,s[0]=2,c[0]=e[0]+2*e[1],t=1;t<n-1;++t)o[t]=1,s[t]=4,c[t]=4*e[t]+2*e[t+1];for(o[n-1]=2,s[n-1]=7,c[n-1]=8*e[n-1]+e[n],t=1;t<n;++t)r=o[t]/s[t-1],s[t]-=r,c[t]-=r*c[t-1];for(o[n-1]=c[n-1]/s[n-1],t=n-2;t>=0;--t)o[t]=(c[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 xue(e){return new Uq(e)}function Kx(e,t){this._context=e,this._t=t}Kx.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 Nue(e){return new Kx(e,.5)}function wue(e){return new Kx(e,0)}function Eue(e){return new Kx(e,1)}function Id(e,t){if((c=e.length)>1)for(var n=1,r,o,s=e[t[0]],c,u=s.length;n<c;++n)for(o=s,s=e[t[n]],r=0;r<u;++r)s[r][1]+=s[r][0]=isNaN(o[r][1])?o[r][0]:o[r][1]}function HC(e){for(var t=e.length,n=new Array(t);--t>=0;)n[t]=t;return n}function Sue(e,t){return e[t]}function Aue(e){const t=[];return t.key=e,t}function Oue(){var e=Jt([]),t=HC,n=Id,r=Sue;function o(s){var c=Array.from(e.apply(this,arguments),Aue),u,f=c.length,m=-1,g;for(const h of s)for(u=0,++m;u<f;++u)(c[u][m]=[0,+r(h,c[u].key,m,s)]).data=h;for(u=0,g=sj(t(c));u<f;++u)c[g[u]].index=u;return n(c,g),c}return o.keys=function(s){return arguments.length?(e=typeof s=="function"?s:Jt(Array.from(s)),o):e},o.value=function(s){return arguments.length?(r=typeof s=="function"?s:Jt(+s),o):r},o.order=function(s){return arguments.length?(t=s==null?HC:typeof s=="function"?s:Jt(Array.from(s)),o):t},o.offset=function(s){return arguments.length?(n=s??Id,o):n},o}function Due(e,t){if((r=e.length)>0){for(var n,r,o=0,s=e[0].length,c;o<s;++o){for(c=n=0;n<r;++n)c+=e[n][o][1]||0;if(c)for(n=0;n<r;++n)e[n][o][1]/=c}Id(e,t)}}function Cue(e,t){if((o=e.length)>0){for(var n=0,r=e[t[0]],o,s=r.length;n<s;++n){for(var c=0,u=0;c<o;++c)u+=e[c][n][1]||0;r[n][1]+=r[n][0]=-u/2}Id(e,t)}}function Tue(e,t){if(!(!((c=e.length)>0)||!((s=(o=e[t[0]]).length)>0))){for(var n=0,r=1,o,s,c;r<s;++r){for(var u=0,f=0,m=0;u<c;++u){for(var g=e[t[u]],h=g[r][1]||0,y=g[r-1][1]||0,x=(h-y)/2,S=0;S<u;++S){var N=e[t[S]],w=N[r][1]||0,D=N[r-1][1]||0;x+=w-D}f+=h,m+=x*h}o[r-1][1]+=o[r-1][0]=n,f&&(n-=m/f)}o[r-1][1]+=o[r-1][0]=n,Id(e,t)}}function Xh(e){"@babel/helpers - typeof";return Xh=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Xh(e)}var _ue=["type","size","sizeType"];function FC(){return FC=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},FC.apply(this,arguments)}function q4(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 H4(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?q4(Object(n),!0).forEach(function(r){jue(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):q4(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function jue(e,t,n){return t=Rue(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Rue(e){var t=Pue(e,"string");return Xh(t)=="symbol"?t:t+""}function Pue(e,t){if(Xh(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(Xh(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function Mue(e,t){if(e==null)return{};var n=kue(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 kue(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 qq={symbolCircle:lj,symbolCross:nue,symbolDiamond:aue,symbolSquare:iue,symbolStar:cue,symbolTriangle:uue,symbolWye:fue},Iue=Math.PI/180,Lue=function(t){var n="symbol".concat(qx(t));return qq[n]||lj},Vue=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*Iue;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}},$ue=function(t,n){qq["symbol".concat(qx(t))]=n},cj=function(t){var n=t.type,r=n===void 0?"circle":n,o=t.size,s=o===void 0?64:o,c=t.sizeType,u=c===void 0?"area":c,f=Mue(t,_ue),m=H4(H4({},f),{},{type:r,size:s,sizeType:u}),g=function(){var w=Lue(r),D=mue().type(w).size(Vue(s,u,r));return D()},h=m.className,y=m.cx,x=m.cy,S=Fe(m,!0);return y===+y&&x===+x&&s===+s?K.createElement("path",FC({},S,{className:it("recharts-symbols",h),transform:"translate(".concat(y,", ").concat(x,")"),d:g()})):null};cj.registerSymbol=$ue;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 KC(){return KC=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},KC.apply(this,arguments)}function F4(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 Bue(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?F4(Object(n),!0).forEach(function(r){Wh(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):F4(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function zue(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Uue(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,Fq(r.key),r)}}function que(e,t,n){return t&&Uue(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function Hue(e,t,n){return t=by(t),Fue(e,Hq()?Reflect.construct(t,n||[],by(e).constructor):t.apply(e,n))}function Fue(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 Kue(e)}function Kue(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Hq(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(Hq=function(){return!!e})()}function by(e){return by=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},by(e)}function Gue(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&&GC(e,t)}function GC(e,t){return GC=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,o){return r.__proto__=o,r},GC(e,t)}function Wh(e,t,n){return t=Fq(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Fq(e){var t=Yue(e,"string");return Ld(t)=="symbol"?t:t+""}function Yue(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 Ia=32,uj=(function(e){function t(){return zue(this,t),Hue(this,t,arguments)}return Gue(t,e),que(t,[{key:"renderIcon",value:function(r){var o=this.props.inactiveColor,s=Ia/2,c=Ia/6,u=Ia/3,f=r.inactive?o:r.color;if(r.type==="plainline")return K.createElement("line",{strokeWidth:4,fill:"none",stroke:f,strokeDasharray:r.payload.strokeDasharray,x1:0,y1:s,x2:Ia,y2:s,className:"recharts-legend-icon"});if(r.type==="line")return K.createElement("path",{strokeWidth:4,fill:"none",stroke:f,d:"M0,".concat(s,"h").concat(u,`
|
||
A`).concat(c,",").concat(c,",0,1,1,").concat(2*u,",").concat(s,`
|
||
H`).concat(Ia,"M").concat(2*u,",").concat(s,`
|
||
A`).concat(c,",").concat(c,",0,1,1,").concat(u,",").concat(s),className:"recharts-legend-icon"});if(r.type==="rect")return K.createElement("path",{stroke:"none",fill:f,d:"M0,".concat(Ia/8,"h").concat(Ia,"v").concat(Ia*3/4,"h").concat(-Ia,"z"),className:"recharts-legend-icon"});if(K.isValidElement(r.legendIcon)){var m=Bue({},r);return delete m.legendIcon,K.cloneElement(r.legendIcon,m)}return K.createElement(cj,{fill:f,cx:s,cy:s,size:Ia,sizeType:"diameter",type:r.type})}},{key:"renderItems",value:function(){var r=this,o=this.props,s=o.payload,c=o.iconSize,u=o.layout,f=o.formatter,m=o.inactiveColor,g={x:0,y:0,width:Ia,height:Ia},h={display:u==="horizontal"?"inline-block":"block",marginRight:10},y={display:"inline-block",verticalAlign:"middle",marginRight:4};return s.map(function(x,S){var N=x.formatter||f,w=it(Wh(Wh({"recharts-legend-item":!0},"legend-item-".concat(S),!0),"inactive",x.inactive));if(x.type==="none")return null;var D=Xe(x.value)?null:x.value;ui(!Xe(x.value),`The name property is also required when using a function for the dataKey of a chart's cartesian components. Ex: <Bar name="Name of my Data"/>`);var C=x.inactive?m:x.color;return K.createElement("li",KC({className:w,style:h,key:"legend-item-".concat(S)},Hc(r.props,x,S)),K.createElement($C,{width:c,height:c,viewBox:g,style:y},r.renderIcon(x)),K.createElement("span",{className:"recharts-legend-item-text",style:{color:C}},N?N(D,x,S):D))})}},{key:"render",value:function(){var r=this.props,o=r.payload,s=r.layout,c=r.align;if(!o||!o.length)return null;var u={padding:0,margin:0,textAlign:s==="horizontal"?c:"left"};return K.createElement("ul",{className:"recharts-default-legend",style:u},this.renderItems())}}])})(_.PureComponent);Wh(uj,"displayName","Legend");Wh(uj,"defaultProps",{iconSize:14,layout:"horizontal",align:"center",verticalAlign:"middle",inactiveColor:"#ccc"});var eA,K4;function Que(){if(K4)return eA;K4=1;var e=Bx();function t(){this.__data__=new e,this.size=0}return eA=t,eA}var tA,G4;function Xue(){if(G4)return tA;G4=1;function e(t){var n=this.__data__,r=n.delete(t);return this.size=n.size,r}return tA=e,tA}var nA,Y4;function Wue(){if(Y4)return nA;Y4=1;function e(t){return this.__data__.get(t)}return nA=e,nA}var rA,Q4;function Zue(){if(Q4)return rA;Q4=1;function e(t){return this.__data__.has(t)}return rA=e,rA}var aA,X4;function Jue(){if(X4)return aA;X4=1;var e=Bx(),t=ej(),n=tj(),r=200;function o(s,c){var u=this.__data__;if(u instanceof e){var f=u.__data__;if(!t||f.length<r-1)return f.push([s,c]),this.size=++u.size,this;u=this.__data__=new n(f)}return u.set(s,c),this.size=u.size,this}return aA=o,aA}var iA,W4;function Kq(){if(W4)return iA;W4=1;var e=Bx(),t=Que(),n=Xue(),r=Wue(),o=Zue(),s=Jue();function c(u){var f=this.__data__=new e(u);this.size=f.size}return c.prototype.clear=t,c.prototype.delete=n,c.prototype.get=r,c.prototype.has=o,c.prototype.set=s,iA=c,iA}var oA,Z4;function ede(){if(Z4)return oA;Z4=1;var e="__lodash_hash_undefined__";function t(n){return this.__data__.set(n,e),this}return oA=t,oA}var sA,J4;function tde(){if(J4)return sA;J4=1;function e(t){return this.__data__.has(t)}return sA=e,sA}var lA,e2;function Gq(){if(e2)return lA;e2=1;var e=tj(),t=ede(),n=tde();function r(o){var s=-1,c=o==null?0:o.length;for(this.__data__=new e;++s<c;)this.add(o[s])}return r.prototype.add=r.prototype.push=t,r.prototype.has=n,lA=r,lA}var cA,t2;function Yq(){if(t2)return cA;t2=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 cA=e,cA}var uA,n2;function Qq(){if(n2)return uA;n2=1;function e(t,n){return t.has(n)}return uA=e,uA}var dA,r2;function Xq(){if(r2)return dA;r2=1;var e=Gq(),t=Yq(),n=Qq(),r=1,o=2;function s(c,u,f,m,g,h){var y=f&r,x=c.length,S=u.length;if(x!=S&&!(y&&S>x))return!1;var N=h.get(c),w=h.get(u);if(N&&w)return N==u&&w==c;var D=-1,C=!0,j=f&o?new e:void 0;for(h.set(c,u),h.set(u,c);++D<x;){var P=c[D],A=u[D];if(m)var T=y?m(A,P,D,u,c,h):m(P,A,D,c,u,h);if(T!==void 0){if(T)continue;C=!1;break}if(j){if(!t(u,function(R,M){if(!n(j,M)&&(P===R||g(P,R,f,m,h)))return j.push(M)})){C=!1;break}}else if(!(P===A||g(P,A,f,m,h))){C=!1;break}}return h.delete(c),h.delete(u),C}return dA=s,dA}var fA,a2;function nde(){if(a2)return fA;a2=1;var e=go(),t=e.Uint8Array;return fA=t,fA}var mA,i2;function rde(){if(i2)return mA;i2=1;function e(t){var n=-1,r=Array(t.size);return t.forEach(function(o,s){r[++n]=[s,o]}),r}return mA=e,mA}var hA,o2;function dj(){if(o2)return hA;o2=1;function e(t){var n=-1,r=Array(t.size);return t.forEach(function(o){r[++n]=o}),r}return hA=e,hA}var pA,s2;function ade(){if(s2)return pA;s2=1;var e=qp(),t=nde(),n=J_(),r=Xq(),o=rde(),s=dj(),c=1,u=2,f="[object Boolean]",m="[object Date]",g="[object Error]",h="[object Map]",y="[object Number]",x="[object RegExp]",S="[object Set]",N="[object String]",w="[object Symbol]",D="[object ArrayBuffer]",C="[object DataView]",j=e?e.prototype:void 0,P=j?j.valueOf:void 0;function A(T,R,M,$,z,U,V){switch(M){case C:if(T.byteLength!=R.byteLength||T.byteOffset!=R.byteOffset)return!1;T=T.buffer,R=R.buffer;case D:return!(T.byteLength!=R.byteLength||!U(new t(T),new t(R)));case f:case m:case y:return n(+T,+R);case g:return T.name==R.name&&T.message==R.message;case x:case N:return T==R+"";case h:var F=o;case S:var X=$&c;if(F||(F=s),T.size!=R.size&&!X)return!1;var ee=V.get(T);if(ee)return ee==R;$|=u,V.set(T,R);var q=r(F(T),F(R),$,z,U,V);return V.delete(T),q;case w:if(P)return P.call(T)==P.call(R)}return!1}return pA=A,pA}var gA,l2;function Wq(){if(l2)return gA;l2=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 gA=e,gA}var vA,c2;function ide(){if(c2)return vA;c2=1;var e=Wq(),t=Gr();function n(r,o,s){var c=o(r);return t(r)?c:e(c,s(r))}return vA=n,vA}var bA,u2;function ode(){if(u2)return bA;u2=1;function e(t,n){for(var r=-1,o=t==null?0:t.length,s=0,c=[];++r<o;){var u=t[r];n(u,r,t)&&(c[s++]=u)}return c}return bA=e,bA}var yA,d2;function sde(){if(d2)return yA;d2=1;function e(){return[]}return yA=e,yA}var xA,f2;function lde(){if(f2)return xA;f2=1;var e=ode(),t=sde(),n=Object.prototype,r=n.propertyIsEnumerable,o=Object.getOwnPropertySymbols,s=o?function(c){return c==null?[]:(c=Object(c),e(o(c),function(u){return r.call(c,u)}))}:t;return xA=s,xA}var NA,m2;function cde(){if(m2)return NA;m2=1;function e(t,n){for(var r=-1,o=Array(t);++r<t;)o[r]=n(r);return o}return NA=e,NA}var wA,h2;function ude(){if(h2)return wA;h2=1;var e=fs(),t=ms(),n="[object Arguments]";function r(o){return t(o)&&e(o)==n}return wA=r,wA}var EA,p2;function fj(){if(p2)return EA;p2=1;var e=ude(),t=ms(),n=Object.prototype,r=n.hasOwnProperty,o=n.propertyIsEnumerable,s=e((function(){return arguments})())?e:function(c){return t(c)&&r.call(c,"callee")&&!o.call(c,"callee")};return EA=s,EA}var Nh={exports:{}},SA,g2;function dde(){if(g2)return SA;g2=1;function e(){return!1}return SA=e,SA}Nh.exports;var v2;function Zq(){return v2||(v2=1,(function(e,t){var n=go(),r=dde(),o=t&&!t.nodeType&&t,s=o&&!0&&e&&!e.nodeType&&e,c=s&&s.exports===o,u=c?n.Buffer:void 0,f=u?u.isBuffer:void 0,m=f||r;e.exports=m})(Nh,Nh.exports)),Nh.exports}var AA,b2;function mj(){if(b2)return AA;b2=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 AA=n,AA}var OA,y2;function hj(){if(y2)return OA;y2=1;var e=9007199254740991;function t(n){return typeof n=="number"&&n>-1&&n%1==0&&n<=e}return OA=t,OA}var DA,x2;function fde(){if(x2)return DA;x2=1;var e=fs(),t=hj(),n=ms(),r="[object Arguments]",o="[object Array]",s="[object Boolean]",c="[object Date]",u="[object Error]",f="[object Function]",m="[object Map]",g="[object Number]",h="[object Object]",y="[object RegExp]",x="[object Set]",S="[object String]",N="[object WeakMap]",w="[object ArrayBuffer]",D="[object DataView]",C="[object Float32Array]",j="[object Float64Array]",P="[object Int8Array]",A="[object Int16Array]",T="[object Int32Array]",R="[object Uint8Array]",M="[object Uint8ClampedArray]",$="[object Uint16Array]",z="[object Uint32Array]",U={};U[C]=U[j]=U[P]=U[A]=U[T]=U[R]=U[M]=U[$]=U[z]=!0,U[r]=U[o]=U[w]=U[s]=U[D]=U[c]=U[u]=U[f]=U[m]=U[g]=U[h]=U[y]=U[x]=U[S]=U[N]=!1;function V(F){return n(F)&&t(F.length)&&!!U[e(F)]}return DA=V,DA}var CA,N2;function Jq(){if(N2)return CA;N2=1;function e(t){return function(n){return t(n)}}return CA=e,CA}var wh={exports:{}};wh.exports;var w2;function mde(){return w2||(w2=1,(function(e,t){var n=yq(),r=t&&!t.nodeType&&t,o=r&&!0&&e&&!e.nodeType&&e,s=o&&o.exports===r,c=s&&n.process,u=(function(){try{var f=o&&o.require&&o.require("util").types;return f||c&&c.binding&&c.binding("util")}catch{}})();e.exports=u})(wh,wh.exports)),wh.exports}var TA,E2;function eH(){if(E2)return TA;E2=1;var e=fde(),t=Jq(),n=mde(),r=n&&n.isTypedArray,o=r?t(r):e;return TA=o,TA}var _A,S2;function hde(){if(S2)return _A;S2=1;var e=cde(),t=fj(),n=Gr(),r=Zq(),o=mj(),s=eH(),c=Object.prototype,u=c.hasOwnProperty;function f(m,g){var h=n(m),y=!h&&t(m),x=!h&&!y&&r(m),S=!h&&!y&&!x&&s(m),N=h||y||x||S,w=N?e(m.length,String):[],D=w.length;for(var C in m)(g||u.call(m,C))&&!(N&&(C=="length"||x&&(C=="offset"||C=="parent")||S&&(C=="buffer"||C=="byteLength"||C=="byteOffset")||o(C,D)))&&w.push(C);return w}return _A=f,_A}var jA,A2;function pde(){if(A2)return jA;A2=1;var e=Object.prototype;function t(n){var r=n&&n.constructor,o=typeof r=="function"&&r.prototype||e;return n===o}return jA=t,jA}var RA,O2;function tH(){if(O2)return RA;O2=1;function e(t,n){return function(r){return t(n(r))}}return RA=e,RA}var PA,D2;function gde(){if(D2)return PA;D2=1;var e=tH(),t=e(Object.keys,Object);return PA=t,PA}var MA,C2;function vde(){if(C2)return MA;C2=1;var e=pde(),t=gde(),n=Object.prototype,r=n.hasOwnProperty;function o(s){if(!e(s))return t(s);var c=[];for(var u in Object(s))r.call(s,u)&&u!="constructor"&&c.push(u);return c}return MA=o,MA}var kA,T2;function Hp(){if(T2)return kA;T2=1;var e=Z_(),t=hj();function n(r){return r!=null&&t(r.length)&&!e(r)}return kA=n,kA}var IA,_2;function Gx(){if(_2)return IA;_2=1;var e=hde(),t=vde(),n=Hp();function r(o){return n(o)?e(o):t(o)}return IA=r,IA}var LA,j2;function bde(){if(j2)return LA;j2=1;var e=ide(),t=lde(),n=Gx();function r(o){return e(o,n,t)}return LA=r,LA}var VA,R2;function yde(){if(R2)return VA;R2=1;var e=bde(),t=1,n=Object.prototype,r=n.hasOwnProperty;function o(s,c,u,f,m,g){var h=u&t,y=e(s),x=y.length,S=e(c),N=S.length;if(x!=N&&!h)return!1;for(var w=x;w--;){var D=y[w];if(!(h?D in c:r.call(c,D)))return!1}var C=g.get(s),j=g.get(c);if(C&&j)return C==c&&j==s;var P=!0;g.set(s,c),g.set(c,s);for(var A=h;++w<x;){D=y[w];var T=s[D],R=c[D];if(f)var M=h?f(R,T,D,c,s,g):f(T,R,D,s,c,g);if(!(M===void 0?T===R||m(T,R,u,f,g):M)){P=!1;break}A||(A=D=="constructor")}if(P&&!A){var $=s.constructor,z=c.constructor;$!=z&&"constructor"in s&&"constructor"in c&&!(typeof $=="function"&&$ instanceof $&&typeof z=="function"&&z instanceof z)&&(P=!1)}return g.delete(s),g.delete(c),P}return VA=o,VA}var $A,P2;function xde(){if(P2)return $A;P2=1;var e=ru(),t=go(),n=e(t,"DataView");return $A=n,$A}var BA,M2;function Nde(){if(M2)return BA;M2=1;var e=ru(),t=go(),n=e(t,"Promise");return BA=n,BA}var zA,k2;function nH(){if(k2)return zA;k2=1;var e=ru(),t=go(),n=e(t,"Set");return zA=n,zA}var UA,I2;function wde(){if(I2)return UA;I2=1;var e=ru(),t=go(),n=e(t,"WeakMap");return UA=n,UA}var qA,L2;function Ede(){if(L2)return qA;L2=1;var e=xde(),t=ej(),n=Nde(),r=nH(),o=wde(),s=fs(),c=xq(),u="[object Map]",f="[object Object]",m="[object Promise]",g="[object Set]",h="[object WeakMap]",y="[object DataView]",x=c(e),S=c(t),N=c(n),w=c(r),D=c(o),C=s;return(e&&C(new e(new ArrayBuffer(1)))!=y||t&&C(new t)!=u||n&&C(n.resolve())!=m||r&&C(new r)!=g||o&&C(new o)!=h)&&(C=function(j){var P=s(j),A=P==f?j.constructor:void 0,T=A?c(A):"";if(T)switch(T){case x:return y;case S:return u;case N:return m;case w:return g;case D:return h}return P}),qA=C,qA}var HA,V2;function Sde(){if(V2)return HA;V2=1;var e=Kq(),t=Xq(),n=ade(),r=yde(),o=Ede(),s=Gr(),c=Zq(),u=eH(),f=1,m="[object Arguments]",g="[object Array]",h="[object Object]",y=Object.prototype,x=y.hasOwnProperty;function S(N,w,D,C,j,P){var A=s(N),T=s(w),R=A?g:o(N),M=T?g:o(w);R=R==m?h:R,M=M==m?h:M;var $=R==h,z=M==h,U=R==M;if(U&&c(N)){if(!c(w))return!1;A=!0,$=!1}if(U&&!$)return P||(P=new e),A||u(N)?t(N,w,D,C,j,P):n(N,w,R,D,C,j,P);if(!(D&f)){var V=$&&x.call(N,"__wrapped__"),F=z&&x.call(w,"__wrapped__");if(V||F){var X=V?N.value():N,ee=F?w.value():w;return P||(P=new e),j(X,ee,D,C,P)}}return U?(P||(P=new e),r(N,w,D,C,j,P)):!1}return HA=S,HA}var FA,$2;function pj(){if($2)return FA;$2=1;var e=Sde(),t=ms();function n(r,o,s,c,u){return r===o?!0:r==null||o==null||!t(r)&&!t(o)?r!==r&&o!==o:e(r,o,s,c,n,u)}return FA=n,FA}var KA,B2;function Ade(){if(B2)return KA;B2=1;var e=Kq(),t=pj(),n=1,r=2;function o(s,c,u,f){var m=u.length,g=m,h=!f;if(s==null)return!g;for(s=Object(s);m--;){var y=u[m];if(h&&y[2]?y[1]!==s[y[0]]:!(y[0]in s))return!1}for(;++m<g;){y=u[m];var x=y[0],S=s[x],N=y[1];if(h&&y[2]){if(S===void 0&&!(x in s))return!1}else{var w=new e;if(f)var D=f(S,N,x,s,c,w);if(!(D===void 0?t(N,S,n|r,f,w):D))return!1}}return!0}return KA=o,KA}var GA,z2;function rH(){if(z2)return GA;z2=1;var e=xl();function t(n){return n===n&&!e(n)}return GA=t,GA}var YA,U2;function Ode(){if(U2)return YA;U2=1;var e=rH(),t=Gx();function n(r){for(var o=t(r),s=o.length;s--;){var c=o[s],u=r[c];o[s]=[c,u,e(u)]}return o}return YA=n,YA}var QA,q2;function aH(){if(q2)return QA;q2=1;function e(t,n){return function(r){return r==null?!1:r[t]===n&&(n!==void 0||t in Object(r))}}return QA=e,QA}var XA,H2;function Dde(){if(H2)return XA;H2=1;var e=Ade(),t=Ode(),n=aH();function r(o){var s=t(o);return s.length==1&&s[0][2]?n(s[0][0],s[0][1]):function(c){return c===o||e(c,o,s)}}return XA=r,XA}var WA,F2;function Cde(){if(F2)return WA;F2=1;function e(t,n){return t!=null&&n in Object(t)}return WA=e,WA}var ZA,K2;function Tde(){if(K2)return ZA;K2=1;var e=Eq(),t=fj(),n=Gr(),r=mj(),o=hj(),s=Ux();function c(u,f,m){f=e(f,u);for(var g=-1,h=f.length,y=!1;++g<h;){var x=s(f[g]);if(!(y=u!=null&&m(u,x)))break;u=u[x]}return y||++g!=h?y:(h=u==null?0:u.length,!!h&&o(h)&&r(x,h)&&(n(u)||t(u)))}return ZA=c,ZA}var JA,G2;function _de(){if(G2)return JA;G2=1;var e=Cde(),t=Tde();function n(r,o){return r!=null&&t(r,o,e)}return JA=n,JA}var eO,Y2;function jde(){if(Y2)return eO;Y2=1;var e=pj(),t=Sq(),n=_de(),r=W_(),o=rH(),s=aH(),c=Ux(),u=1,f=2;function m(g,h){return r(g)&&o(h)?s(c(g),h):function(y){var x=t(y,g);return x===void 0&&x===h?n(y,g):e(h,x,u|f)}}return eO=m,eO}var tO,Q2;function Ef(){if(Q2)return tO;Q2=1;function e(t){return t}return tO=e,tO}var nO,X2;function Rde(){if(X2)return nO;X2=1;function e(t){return function(n){return n?.[t]}}return nO=e,nO}var rO,W2;function Pde(){if(W2)return rO;W2=1;var e=rj();function t(n){return function(r){return e(r,n)}}return rO=t,rO}var aO,Z2;function Mde(){if(Z2)return aO;Z2=1;var e=Rde(),t=Pde(),n=W_(),r=Ux();function o(s){return n(s)?e(r(s)):t(s)}return aO=o,aO}var iO,J2;function vo(){if(J2)return iO;J2=1;var e=Dde(),t=jde(),n=Ef(),r=Gr(),o=Mde();function s(c){return typeof c=="function"?c:c==null?n:typeof c=="object"?r(c)?t(c[0],c[1]):e(c):o(c)}return iO=s,iO}var oO,e$;function iH(){if(e$)return oO;e$=1;function e(t,n,r,o){for(var s=t.length,c=r+(o?1:-1);o?c--:++c<s;)if(n(t[c],c,t))return c;return-1}return oO=e,oO}var sO,t$;function kde(){if(t$)return sO;t$=1;function e(t){return t!==t}return sO=e,sO}var lO,n$;function Ide(){if(n$)return lO;n$=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 lO=e,lO}var cO,r$;function Lde(){if(r$)return cO;r$=1;var e=iH(),t=kde(),n=Ide();function r(o,s,c){return s===s?n(o,s,c):e(o,t,c)}return cO=r,cO}var uO,a$;function Vde(){if(a$)return uO;a$=1;var e=Lde();function t(n,r){var o=n==null?0:n.length;return!!o&&e(n,r,0)>-1}return uO=t,uO}var dO,i$;function $de(){if(i$)return dO;i$=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 dO=e,dO}var fO,o$;function Bde(){if(o$)return fO;o$=1;function e(){}return fO=e,fO}var mO,s$;function zde(){if(s$)return mO;s$=1;var e=nH(),t=Bde(),n=dj(),r=1/0,o=e&&1/n(new e([,-0]))[1]==r?function(s){return new e(s)}:t;return mO=o,mO}var hO,l$;function Ude(){if(l$)return hO;l$=1;var e=Gq(),t=Vde(),n=$de(),r=Qq(),o=zde(),s=dj(),c=200;function u(f,m,g){var h=-1,y=t,x=f.length,S=!0,N=[],w=N;if(g)S=!1,y=n;else if(x>=c){var D=m?null:o(f);if(D)return s(D);S=!1,y=r,w=new e}else w=m?[]:N;e:for(;++h<x;){var C=f[h],j=m?m(C):C;if(C=g||C!==0?C:0,S&&j===j){for(var P=w.length;P--;)if(w[P]===j)continue e;m&&w.push(j),N.push(C)}else y(w,j,g)||(w!==N&&w.push(j),N.push(C))}return N}return hO=u,hO}var pO,c$;function qde(){if(c$)return pO;c$=1;var e=vo(),t=Ude();function n(r,o){return r&&r.length?t(r,e(o,2)):[]}return pO=n,pO}var Hde=qde();const u$=Bt(Hde);function oH(e,t,n){return t===!0?u$(e,n):Xe(t)?u$(e,t):e}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)}var Fde=["ref"];function d$(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 Xo(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?d$(Object(n),!0).forEach(function(r){Yx(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):d$(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function Kde(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function f$(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,lH(r.key),r)}}function Gde(e,t,n){return t&&f$(e.prototype,t),n&&f$(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function Yde(e,t,n){return t=yy(t),Qde(e,sH()?Reflect.construct(t,n||[],yy(e).constructor):t.apply(e,n))}function Qde(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 Xde(e)}function Xde(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function sH(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(sH=function(){return!!e})()}function yy(e){return yy=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},yy(e)}function Wde(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&&YC(e,t)}function YC(e,t){return YC=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,o){return r.__proto__=o,r},YC(e,t)}function Yx(e,t,n){return t=lH(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function lH(e){var t=Zde(e,"string");return Vd(t)=="symbol"?t:t+""}function Zde(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)}function Jde(e,t){if(e==null)return{};var n=efe(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 efe(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 tfe(e){return e.value}function nfe(e,t){if(K.isValidElement(e))return K.cloneElement(e,t);if(typeof e=="function")return K.createElement(e,t);t.ref;var n=Jde(t,Fde);return K.createElement(uj,n)}var m$=1,Dc=(function(e){function t(){var n;Kde(this,t);for(var r=arguments.length,o=new Array(r),s=0;s<r;s++)o[s]=arguments[s];return n=Yde(this,t,[].concat(o)),Yx(n,"lastBoundingBox",{width:-1,height:-1}),n}return Wde(t,e),Gde(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)>m$||Math.abs(o.height-this.lastBoundingBox.height)>m$)&&(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?Xo({},this.lastBoundingBox):{width:0,height:0}}},{key:"getDefaultPosition",value:function(r){var o=this.props,s=o.layout,c=o.align,u=o.verticalAlign,f=o.margin,m=o.chartWidth,g=o.chartHeight,h,y;if(!r||(r.left===void 0||r.left===null)&&(r.right===void 0||r.right===null))if(c==="center"&&s==="vertical"){var x=this.getBBoxSnapshot();h={left:((m||0)-x.width)/2}}else h=c==="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(u==="middle"){var S=this.getBBoxSnapshot();y={top:((g||0)-S.height)/2}}else y=u==="bottom"?{bottom:f&&f.bottom||0}:{top:f&&f.top||0};return Xo(Xo({},h),y)}},{key:"render",value:function(){var r=this,o=this.props,s=o.content,c=o.width,u=o.height,f=o.wrapperStyle,m=o.payloadUniqBy,g=o.payload,h=Xo(Xo({position:"absolute",width:c||"auto",height:u||"auto"},this.getDefaultPosition(f)),f);return K.createElement("div",{className:"recharts-legend-wrapper",style:h,ref:function(x){r.wrapperNode=x}},nfe(s,Xo(Xo({},this.props),{},{payload:oH(g,m,tfe)})))}}],[{key:"getWithHeight",value:function(r,o){var s=Xo(Xo({},this.defaultProps),r.props),c=s.layout;return c==="vertical"&&Oe(r.props.height)?{height:r.props.height}:c==="horizontal"?{width:r.props.width||o}:null}}])})(_.PureComponent);Yx(Dc,"displayName","Legend");Yx(Dc,"defaultProps",{iconSize:14,layout:"horizontal",align:"center",verticalAlign:"bottom"});var gO,h$;function rfe(){if(h$)return gO;h$=1;var e=qp(),t=fj(),n=Gr(),r=e?e.isConcatSpreadable:void 0;function o(s){return n(s)||t(s)||!!(r&&s&&s[r])}return gO=o,gO}var vO,p$;function cH(){if(p$)return vO;p$=1;var e=Wq(),t=rfe();function n(r,o,s,c,u){var f=-1,m=r.length;for(s||(s=t),u||(u=[]);++f<m;){var g=r[f];o>0&&s(g)?o>1?n(g,o-1,s,c,u):e(u,g):c||(u[u.length]=g)}return u}return vO=n,vO}var bO,g$;function afe(){if(g$)return bO;g$=1;function e(t){return function(n,r,o){for(var s=-1,c=Object(n),u=o(n),f=u.length;f--;){var m=u[t?f:++s];if(r(c[m],m,c)===!1)break}return n}}return bO=e,bO}var yO,v$;function ife(){if(v$)return yO;v$=1;var e=afe(),t=e();return yO=t,yO}var xO,b$;function uH(){if(b$)return xO;b$=1;var e=ife(),t=Gx();function n(r,o){return r&&e(r,o,t)}return xO=n,xO}var NO,y$;function ofe(){if(y$)return NO;y$=1;var e=Hp();function t(n,r){return function(o,s){if(o==null)return o;if(!e(o))return n(o,s);for(var c=o.length,u=r?c:-1,f=Object(o);(r?u--:++u<c)&&s(f[u],u,f)!==!1;);return o}}return NO=t,NO}var wO,x$;function gj(){if(x$)return wO;x$=1;var e=uH(),t=ofe(),n=t(e);return wO=n,wO}var EO,N$;function dH(){if(N$)return EO;N$=1;var e=gj(),t=Hp();function n(r,o){var s=-1,c=t(r)?Array(r.length):[];return e(r,function(u,f,m){c[++s]=o(u,f,m)}),c}return EO=n,EO}var SO,w$;function sfe(){if(w$)return SO;w$=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 AO,E$;function lfe(){if(E$)return AO;E$=1;var e=yf();function t(n,r){if(n!==r){var o=n!==void 0,s=n===null,c=n===n,u=e(n),f=r!==void 0,m=r===null,g=r===r,h=e(r);if(!m&&!h&&!u&&n>r||u&&f&&g&&!m&&!h||s&&f&&g||!o&&g||!c)return 1;if(!s&&!u&&!h&&n<r||h&&o&&c&&!s&&!u||m&&o&&c||!f&&c||!g)return-1}return 0}return AO=t,AO}var OO,S$;function cfe(){if(S$)return OO;S$=1;var e=lfe();function t(n,r,o){for(var s=-1,c=n.criteria,u=r.criteria,f=c.length,m=o.length;++s<f;){var g=e(c[s],u[s]);if(g){if(s>=m)return g;var h=o[s];return g*(h=="desc"?-1:1)}}return n.index-r.index}return OO=t,OO}var DO,A$;function ufe(){if(A$)return DO;A$=1;var e=nj(),t=rj(),n=vo(),r=dH(),o=sfe(),s=Jq(),c=cfe(),u=Ef(),f=Gr();function m(g,h,y){h.length?h=e(h,function(N){return f(N)?function(w){return t(w,N.length===1?N[0]:N)}:N}):h=[u];var x=-1;h=e(h,s(n));var S=r(g,function(N,w,D){var C=e(h,function(j){return j(N)});return{criteria:C,index:++x,value:N}});return o(S,function(N,w){return c(N,w,y)})}return DO=m,DO}var CO,O$;function dfe(){if(O$)return CO;O$=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 CO=e,CO}var TO,D$;function ffe(){if(D$)return TO;D$=1;var e=dfe(),t=Math.max;function n(r,o,s){return o=t(o===void 0?r.length-1:o,0),function(){for(var c=arguments,u=-1,f=t(c.length-o,0),m=Array(f);++u<f;)m[u]=c[o+u];u=-1;for(var g=Array(o+1);++u<o;)g[u]=c[u];return g[o]=s(m),e(r,this,g)}}return TO=n,TO}var _O,C$;function mfe(){if(C$)return _O;C$=1;function e(t){return function(){return t}}return _O=e,_O}var jO,T$;function fH(){if(T$)return jO;T$=1;var e=ru(),t=(function(){try{var n=e(Object,"defineProperty");return n({},"",{}),n}catch{}})();return jO=t,jO}var RO,_$;function hfe(){if(_$)return RO;_$=1;var e=mfe(),t=fH(),n=Ef(),r=t?function(o,s){return t(o,"toString",{configurable:!0,enumerable:!1,value:e(s),writable:!0})}:n;return RO=r,RO}var PO,j$;function pfe(){if(j$)return PO;j$=1;var e=800,t=16,n=Date.now;function r(o){var s=0,c=0;return function(){var u=n(),f=t-(u-c);if(c=u,f>0){if(++s>=e)return arguments[0]}else s=0;return o.apply(void 0,arguments)}}return PO=r,PO}var MO,R$;function gfe(){if(R$)return MO;R$=1;var e=hfe(),t=pfe(),n=t(e);return MO=n,MO}var kO,P$;function vfe(){if(P$)return kO;P$=1;var e=Ef(),t=ffe(),n=gfe();function r(o,s){return n(t(o,s,e),o+"")}return kO=r,kO}var IO,M$;function Qx(){if(M$)return IO;M$=1;var e=J_(),t=Hp(),n=mj(),r=xl();function o(s,c,u){if(!r(u))return!1;var f=typeof c;return(f=="number"?t(u)&&n(c,u.length):f=="string"&&c in u)?e(u[c],s):!1}return IO=o,IO}var LO,k$;function bfe(){if(k$)return LO;k$=1;var e=cH(),t=ufe(),n=vfe(),r=Qx(),o=n(function(s,c){if(s==null)return[];var u=c.length;return u>1&&r(s,c[0],c[1])?c=[]:u>2&&r(c[0],c[1],c[2])&&(c=[c[0]]),t(s,e(c,1),[])});return LO=o,LO}var yfe=bfe();const vj=Bt(yfe);function Zh(e){"@babel/helpers - typeof";return Zh=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},Zh(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 xfe(e,t){return Sfe(e)||Efe(e,t)||wfe(e,t)||Nfe()}function Nfe(){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 wfe(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 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}function Efe(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r,o,s,c,u=[],f=!0,m=!1;try{if(s=(n=n.call(e)).next,t!==0)for(;!(f=(r=s.call(n)).done)&&(u.push(r.value),u.length!==t);f=!0);}catch(g){m=!0,o=g}finally{try{if(!f&&n.return!=null&&(c=n.return(),Object(c)!==c))return}finally{if(m)throw o}}return u}}function Sfe(e){if(Array.isArray(e))return e}function L$(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 VO(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?L$(Object(n),!0).forEach(function(r){Afe(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):L$(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function Afe(e,t,n){return t=Ofe(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Ofe(e){var t=Dfe(e,"string");return Zh(t)=="symbol"?t:t+""}function Dfe(e,t){if(Zh(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(Zh(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function Cfe(e){return Array.isArray(e)&&Bn(e[0])&&Bn(e[1])?e.join(" ~ "):e}var Tfe=function(t){var n=t.separator,r=n===void 0?" : ":n,o=t.contentStyle,s=o===void 0?{}:o,c=t.itemStyle,u=c===void 0?{}:c,f=t.labelStyle,m=f===void 0?{}:f,g=t.payload,h=t.formatter,y=t.itemSorter,x=t.wrapperClassName,S=t.labelClassName,N=t.label,w=t.labelFormatter,D=t.accessibilityLayer,C=D===void 0?!1:D,j=function(){if(g&&g.length){var V={padding:0,margin:0},F=(y?vj(g,y):g).map(function(X,ee){if(X.type==="none")return null;var q=VO({display:"block",paddingTop:4,paddingBottom:4,color:X.color||"#000"},u),Q=X.formatter||h||Cfe,G=X.value,ne=X.name,te=G,I=ne;if(Q&&te!=null&&I!=null){var H=Q(G,ne,X,ee,g);if(Array.isArray(H)){var Y=xfe(H,2);te=Y[0],I=Y[1]}else te=H}return K.createElement("li",{className:"recharts-tooltip-item",key:"tooltip-item-".concat(ee),style:q},Bn(I)?K.createElement("span",{className:"recharts-tooltip-item-name"},I):null,Bn(I)?K.createElement("span",{className:"recharts-tooltip-item-separator"},r):null,K.createElement("span",{className:"recharts-tooltip-item-value"},te),K.createElement("span",{className:"recharts-tooltip-item-unit"},X.unit||""))});return K.createElement("ul",{className:"recharts-tooltip-item-list",style:V},F)}return null},P=VO({margin:0,padding:10,backgroundColor:"#fff",border:"1px solid #ccc",whiteSpace:"nowrap"},s),A=VO({margin:0},m),T=!ot(N),R=T?N:"",M=it("recharts-default-tooltip",x),$=it("recharts-tooltip-label",S);T&&w&&g!==void 0&&g!==null&&(R=w(N,g));var z=C?{role:"status","aria-live":"assertive"}:{};return K.createElement("div",QC({className:M,style:P},z),K.createElement("p",{className:$,style:A},K.isValidElement(R)?R:"".concat(R)),j())};function Jh(e){"@babel/helpers - typeof";return Jh=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},Jh(e)}function Cb(e,t,n){return t=_fe(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function _fe(e){var t=jfe(e,"string");return Jh(t)=="symbol"?t:t+""}function jfe(e,t){if(Jh(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(Jh(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var uh="recharts-tooltip-wrapper",Rfe={visibility:"hidden"};function Pfe(e){var t=e.coordinate,n=e.translateX,r=e.translateY;return it(uh,Cb(Cb(Cb(Cb({},"".concat(uh,"-right"),Oe(n)&&t&&Oe(t.x)&&n>=t.x),"".concat(uh,"-left"),Oe(n)&&t&&Oe(t.x)&&n<t.x),"".concat(uh,"-bottom"),Oe(r)&&t&&Oe(t.y)&&r>=t.y),"".concat(uh,"-top"),Oe(r)&&t&&Oe(t.y)&&r<t.y))}function V$(e){var t=e.allowEscapeViewBox,n=e.coordinate,r=e.key,o=e.offsetTopLeft,s=e.position,c=e.reverseDirection,u=e.tooltipDimension,f=e.viewBox,m=e.viewBoxDimension;if(s&&Oe(s[r]))return s[r];var g=n[r]-u-o,h=n[r]+o;if(t[r])return c[r]?g:h;if(c[r]){var y=g,x=f[r];return y<x?Math.max(h,f[r]):Math.max(g,f[r])}var S=h+u,N=f[r]+m;return S>N?Math.max(g,f[r]):Math.max(h,f[r])}function Mfe(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 kfe(e){var t=e.allowEscapeViewBox,n=e.coordinate,r=e.offsetTopLeft,o=e.position,s=e.reverseDirection,c=e.tooltipBox,u=e.useTranslate3d,f=e.viewBox,m,g,h;return c.height>0&&c.width>0&&n?(g=V$({allowEscapeViewBox:t,coordinate:n,key:"x",offsetTopLeft:r,position:o,reverseDirection:s,tooltipDimension:c.width,viewBox:f,viewBoxDimension:f.width}),h=V$({allowEscapeViewBox:t,coordinate:n,key:"y",offsetTopLeft:r,position:o,reverseDirection:s,tooltipDimension:c.height,viewBox:f,viewBoxDimension:f.height}),m=Mfe({translateX:g,translateY:h,useTranslate3d:u})):m=Rfe,{cssProperties:m,cssClasses:Pfe({translateX:g,translateY:h,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 $$(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 B$(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?$$(Object(n),!0).forEach(function(r){WC(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):$$(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function Ife(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Lfe(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,hH(r.key),r)}}function Vfe(e,t,n){return t&&Lfe(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function $fe(e,t,n){return t=xy(t),Bfe(e,mH()?Reflect.construct(t,n||[],xy(e).constructor):t.apply(e,n))}function Bfe(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 zfe(e)}function zfe(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function mH(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(mH=function(){return!!e})()}function xy(e){return xy=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},xy(e)}function Ufe(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&&XC(e,t)}function XC(e,t){return XC=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,o){return r.__proto__=o,r},XC(e,t)}function WC(e,t,n){return t=hH(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function hH(e){var t=qfe(e,"string");return $d(t)=="symbol"?t:t+""}function qfe(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 z$=1,Hfe=(function(e){function t(){var n;Ife(this,t);for(var r=arguments.length,o=new Array(r),s=0;s<r;s++)o[s]=arguments[s];return n=$fe(this,t,[].concat(o)),WC(n,"state",{dismissed:!1,dismissedAtCoordinate:{x:0,y:0},lastBoundingBox:{width:-1,height:-1}}),WC(n,"handleKeyDown",function(c){if(c.key==="Escape"){var u,f,m,g;n.setState({dismissed:!0,dismissedAtCoordinate:{x:(u=(f=n.props.coordinate)===null||f===void 0?void 0:f.x)!==null&&u!==void 0?u:0,y:(m=(g=n.props.coordinate)===null||g===void 0?void 0:g.y)!==null&&m!==void 0?m:0}})}}),n}return Ufe(t,e),Vfe(t,[{key:"updateBBox",value:function(){if(this.wrapperNode&&this.wrapperNode.getBoundingClientRect){var r=this.wrapperNode.getBoundingClientRect();(Math.abs(r.width-this.state.lastBoundingBox.width)>z$||Math.abs(r.height-this.state.lastBoundingBox.height)>z$)&&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,c=o.allowEscapeViewBox,u=o.animationDuration,f=o.animationEasing,m=o.children,g=o.coordinate,h=o.hasPayload,y=o.isAnimationActive,x=o.offset,S=o.position,N=o.reverseDirection,w=o.useTranslate3d,D=o.viewBox,C=o.wrapperStyle,j=kfe({allowEscapeViewBox:c,coordinate:g,offsetTopLeft:x,position:S,reverseDirection:N,tooltipBox:this.state.lastBoundingBox,useTranslate3d:w,viewBox:D}),P=j.cssClasses,A=j.cssProperties,T=B$(B$({transition:y&&s?"transform ".concat(u,"ms ").concat(f):void 0},A),{},{pointerEvents:"none",visibility:!this.state.dismissed&&s&&h?"visible":"hidden",position:"absolute",top:0,left:0},C);return K.createElement("div",{tabIndex:-1,className:P,style:T,ref:function(M){r.wrapperNode=M}},m)}}])})(_.PureComponent),Ffe=function(){return!(typeof window<"u"&&window.document&&window.document.createElement&&window.setTimeout)},au={isSsr:Ffe()};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 U$(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 q$(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?U$(Object(n),!0).forEach(function(r){bj(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):U$(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function Kfe(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Gfe(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,gH(r.key),r)}}function Yfe(e,t,n){return t&&Gfe(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function Qfe(e,t,n){return t=Ny(t),Xfe(e,pH()?Reflect.construct(t,n||[],Ny(e).constructor):t.apply(e,n))}function Xfe(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 Wfe(e)}function Wfe(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function pH(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(pH=function(){return!!e})()}function Ny(e){return Ny=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},Ny(e)}function Zfe(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&&ZC(e,t)}function ZC(e,t){return ZC=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,o){return r.__proto__=o,r},ZC(e,t)}function bj(e,t,n){return t=gH(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function gH(e){var t=Jfe(e,"string");return Bd(t)=="symbol"?t:t+""}function Jfe(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)}function eme(e){return e.dataKey}function tme(e,t){return K.isValidElement(e)?K.cloneElement(e,t):typeof e=="function"?K.createElement(e,t):K.createElement(Tfe,t)}var si=(function(e){function t(){return Kfe(this,t),Qfe(this,t,arguments)}return Zfe(t,e),Yfe(t,[{key:"render",value:function(){var r=this,o=this.props,s=o.active,c=o.allowEscapeViewBox,u=o.animationDuration,f=o.animationEasing,m=o.content,g=o.coordinate,h=o.filterNull,y=o.isAnimationActive,x=o.offset,S=o.payload,N=o.payloadUniqBy,w=o.position,D=o.reverseDirection,C=o.useTranslate3d,j=o.viewBox,P=o.wrapperStyle,A=S??[];h&&A.length&&(A=oH(S.filter(function(R){return R.value!=null&&(R.hide!==!0||r.props.includeHidden)}),N,eme));var T=A.length>0;return K.createElement(Hfe,{allowEscapeViewBox:c,animationDuration:u,animationEasing:f,isAnimationActive:y,active:s,coordinate:g,hasPayload:T,offset:x,position:w,reverseDirection:D,useTranslate3d:C,viewBox:j,wrapperStyle:P},tme(m,q$(q$({},this.props),{},{payload:A})))}}])})(_.PureComponent);bj(si,"displayName","Tooltip");bj(si,"defaultProps",{accessibilityLayer:!1,allowEscapeViewBox:{x:!1,y:!1},animationDuration:400,animationEasing:"ease",contentStyle:{},coordinate:{x:0,y:0},cursor:!0,cursorStyle:{},filterNull:!0,isAnimationActive:!au.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 $O,H$;function nme(){if(H$)return $O;H$=1;var e=go(),t=function(){return e.Date.now()};return $O=t,$O}var BO,F$;function rme(){if(F$)return BO;F$=1;var e=/\s/;function t(n){for(var r=n.length;r--&&e.test(n.charAt(r)););return r}return BO=t,BO}var zO,K$;function ame(){if(K$)return zO;K$=1;var e=rme(),t=/^\s+/;function n(r){return r&&r.slice(0,e(r)+1).replace(t,"")}return zO=n,zO}var UO,G$;function vH(){if(G$)return UO;G$=1;var e=ame(),t=xl(),n=yf(),r=NaN,o=/^[-+]0x[0-9a-f]+$/i,s=/^0b[01]+$/i,c=/^0o[0-7]+$/i,u=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 h=s.test(m);return h||c.test(m)?u(m.slice(2),h?2:8):o.test(m)?r:+m}return UO=f,UO}var qO,Y$;function ime(){if(Y$)return qO;Y$=1;var e=xl(),t=nme(),n=vH(),r="Expected a function",o=Math.max,s=Math.min;function c(u,f,m){var g,h,y,x,S,N,w=0,D=!1,C=!1,j=!0;if(typeof u!="function")throw new TypeError(r);f=n(f)||0,e(m)&&(D=!!m.leading,C="maxWait"in m,y=C?o(n(m.maxWait)||0,f):y,j="trailing"in m?!!m.trailing:j);function P(F){var X=g,ee=h;return g=h=void 0,w=F,x=u.apply(ee,X),x}function A(F){return w=F,S=setTimeout(M,f),D?P(F):x}function T(F){var X=F-N,ee=F-w,q=f-X;return C?s(q,y-ee):q}function R(F){var X=F-N,ee=F-w;return N===void 0||X>=f||X<0||C&&ee>=y}function M(){var F=t();if(R(F))return $(F);S=setTimeout(M,T(F))}function $(F){return S=void 0,j&&g?P(F):(g=h=void 0,x)}function z(){S!==void 0&&clearTimeout(S),w=0,g=N=h=S=void 0}function U(){return S===void 0?x:$(t())}function V(){var F=t(),X=R(F);if(g=arguments,h=this,N=F,X){if(S===void 0)return A(N);if(C)return clearTimeout(S),S=setTimeout(M,f),P(N)}return S===void 0&&(S=setTimeout(M,f)),x}return V.cancel=z,V.flush=U,V}return qO=c,qO}var HO,Q$;function ome(){if(Q$)return HO;Q$=1;var e=ime(),t=xl(),n="Expected a function";function r(o,s,c){var u=!0,f=!0;if(typeof o!="function")throw new TypeError(n);return t(c)&&(u="leading"in c?!!c.leading:u,f="trailing"in c?!!c.trailing:f),e(o,s,{leading:u,maxWait:s,trailing:f})}return HO=r,HO}var sme=ome();const bH=Bt(sme);function ep(e){"@babel/helpers - typeof";return ep=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},ep(e)}function X$(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 Tb(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?X$(Object(n),!0).forEach(function(r){lme(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):X$(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function lme(e,t,n){return t=cme(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function cme(e){var t=ume(e,"string");return ep(t)=="symbol"?t:t+""}function ume(e,t){if(ep(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(ep(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function dme(e,t){return pme(e)||hme(e,t)||mme(e,t)||fme()}function fme(){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 mme(e,t){if(e){if(typeof e=="string")return W$(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 W$(e,t)}}function W$(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 hme(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r,o,s,c,u=[],f=!0,m=!1;try{if(s=(n=n.call(e)).next,t!==0)for(;!(f=(r=s.call(n)).done)&&(u.push(r.value),u.length!==t);f=!0);}catch(g){m=!0,o=g}finally{try{if(!f&&n.return!=null&&(c=n.return(),Object(c)!==c))return}finally{if(m)throw o}}return u}}function pme(e){if(Array.isArray(e))return e}var Z$=_.forwardRef(function(e,t){var n=e.aspect,r=e.initialDimension,o=r===void 0?{width:-1,height:-1}:r,s=e.width,c=s===void 0?"100%":s,u=e.height,f=u===void 0?"100%":u,m=e.minWidth,g=m===void 0?0:m,h=e.minHeight,y=e.maxHeight,x=e.children,S=e.debounce,N=S===void 0?0:S,w=e.id,D=e.className,C=e.onResize,j=e.style,P=j===void 0?{}:j,A=_.useRef(null),T=_.useRef();T.current=C,_.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 R=_.useState({containerWidth:o.width,containerHeight:o.height}),M=dme(R,2),$=M[0],z=M[1],U=_.useCallback(function(F,X){z(function(ee){var q=Math.round(F),Q=Math.round(X);return ee.containerWidth===q&&ee.containerHeight===Q?ee:{containerWidth:q,containerHeight:Q}})},[]);_.useEffect(function(){var F=function(ne){var te,I=ne[0].contentRect,H=I.width,Y=I.height;U(H,Y),(te=T.current)===null||te===void 0||te.call(T,H,Y)};N>0&&(F=bH(F,N,{trailing:!0,leading:!1}));var X=new ResizeObserver(F),ee=A.current.getBoundingClientRect(),q=ee.width,Q=ee.height;return U(q,Q),X.observe(A.current),function(){X.disconnect()}},[U,N]);var V=_.useMemo(function(){var F=$.containerWidth,X=$.containerHeight;if(F<0||X<0)return null;ui(wc(c)||wc(f),`The width(%s) and height(%s) are both fixed numbers,
|
||
maybe you don't need to use a ResponsiveContainer.`,c,f),ui(!n||n>0,"The aspect(%s) must be greater than zero.",n);var ee=wc(c)?F:c,q=wc(f)?X:f;n&&n>0&&(ee?q=ee/n:q&&(ee=q*n),y&&q>y&&(q=y)),ui(ee>0||q>0,`The width(%s) and height(%s) of chart should be greater than 0,
|
||
please check the style of container, or the props width(%s) and height(%s),
|
||
or add a minWidth(%s) or minHeight(%s) or use aspect(%s) to control the
|
||
height and width.`,ee,q,c,f,g,h,n);var Q=!Array.isArray(x)&&ns(x.type).endsWith("Chart");return K.Children.map(x,function(G){return K.isValidElement(G)?_.cloneElement(G,Tb({width:ee,height:q},Q?{style:Tb({height:"100%",width:"100%",maxHeight:q,maxWidth:ee},G.props.style)}:{})):G})},[n,x,f,y,h,g,$,c]);return K.createElement("div",{id:w?"".concat(w):void 0,className:it("recharts-responsive-container",D),style:Tb(Tb({},P),{},{width:c,height:f,minWidth:g,minHeight:h,maxHeight:y}),ref:A},V)}),Xx=function(t){return null};Xx.displayName="Cell";function tp(e){"@babel/helpers - typeof";return tp=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},tp(e)}function J$(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 JC(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?J$(Object(n),!0).forEach(function(r){gme(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):J$(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function gme(e,t,n){return t=vme(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function vme(e){var t=bme(e,"string");return tp(t)=="symbol"?t:t+""}function bme(e,t){if(tp(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(tp(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var gd={widthCache:{},cacheCount:0},yme=2e3,xme={position:"absolute",top:"-20000px",left:0,padding:0,margin:0,border:"none",whiteSpace:"pre"},e6="recharts_measurement_span";function Nme(e){var t=JC({},e);return Object.keys(t).forEach(function(n){t[n]||delete t[n]}),t}var _h=function(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(t==null||au.isSsr)return{width:0,height:0};var r=Nme(n),o=JSON.stringify({text:t,copyStyle:r});if(gd.widthCache[o])return gd.widthCache[o];try{var s=document.getElementById(e6);s||(s=document.createElement("span"),s.setAttribute("id",e6),s.setAttribute("aria-hidden","true"),document.body.appendChild(s));var c=JC(JC({},xme),r);Object.assign(s.style,c),s.textContent="".concat(t);var u=s.getBoundingClientRect(),f={width:u.width,height:u.height};return gd.widthCache[o]=f,++gd.cacheCount>yme&&(gd.cacheCount=0,gd.widthCache={}),f}catch{return{width:0,height:0}}},wme=function(t){return{top:t.top+window.scrollY-document.documentElement.clientTop,left:t.left+window.scrollX-document.documentElement.clientLeft}};function np(e){"@babel/helpers - typeof";return np=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},np(e)}function wy(e,t){return Ome(e)||Ame(e,t)||Sme(e,t)||Eme()}function Eme(){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 Sme(e,t){if(e){if(typeof e=="string")return t6(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 t6(e,t)}}function t6(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 Ame(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r,o,s,c,u=[],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)&&(u.push(r.value),u.length!==t);f=!0);}catch(g){m=!0,o=g}finally{try{if(!f&&n.return!=null&&(c=n.return(),Object(c)!==c))return}finally{if(m)throw o}}return u}}function Ome(e){if(Array.isArray(e))return e}function Dme(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function n6(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,Tme(r.key),r)}}function Cme(e,t,n){return t&&n6(e.prototype,t),n&&n6(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function Tme(e){var t=_me(e,"string");return np(t)=="symbol"?t:t+""}function _me(e,t){if(np(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(np(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}var r6=/(-?\d+(?:\.\d+)?[a-zA-Z%]*)([*/])(-?\d+(?:\.\d+)?[a-zA-Z%]*)/,a6=/(-?\d+(?:\.\d+)?[a-zA-Z%]*)([+-])(-?\d+(?:\.\d+)?[a-zA-Z%]*)/,jme=/^px|cm|vh|vw|em|rem|%|mm|in|pt|pc|ex|ch|vmin|vmax|Q$/,Rme=/(-?\d+(?:\.\d+)?)([a-zA-Z%]+)?/,yH={cm:96/2.54,mm:96/25.4,pt:96/72,pc:96/6,in:96,Q:96/(2.54*40),px:1},Pme=Object.keys(yH),wd="NaN";function Mme(e,t){return e*yH[t]}var _b=(function(){function e(t,n){Dme(this,e),this.num=t,this.unit=n,this.num=t,this.unit=n,Number.isNaN(t)&&(this.unit=""),n!==""&&!jme.test(n)&&(this.num=NaN,this.unit=""),Pme.includes(n)&&(this.num=Mme(t,n),this.unit="px")}return Cme(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=Rme.exec(n))!==null&&r!==void 0?r:[],s=wy(o,3),c=s[1],u=s[2];return new e(parseFloat(c),u??"")}}])})();function xH(e){if(e.includes(wd))return wd;for(var t=e;t.includes("*")||t.includes("/");){var n,r=(n=r6.exec(t))!==null&&n!==void 0?n:[],o=wy(r,4),s=o[1],c=o[2],u=o[3],f=_b.parse(s??""),m=_b.parse(u??""),g=c==="*"?f.multiply(m):f.divide(m);if(g.isNaN())return wd;t=t.replace(r6,g.toString())}for(;t.includes("+")||/.-\d+(?:\.\d+)?/.test(t);){var h,y=(h=a6.exec(t))!==null&&h!==void 0?h:[],x=wy(y,4),S=x[1],N=x[2],w=x[3],D=_b.parse(S??""),C=_b.parse(w??""),j=N==="+"?D.add(C):D.subtract(C);if(j.isNaN())return wd;t=t.replace(a6,j.toString())}return t}var i6=/\(([^()]*)\)/;function kme(e){for(var t=e;t.includes("(");){var n=i6.exec(t),r=wy(n,2),o=r[1];t=t.replace(i6,xH(o))}return t}function Ime(e){var t=e.replace(/\s+/g,"");return t=kme(t),t=xH(t),t}function Lme(e){try{return Ime(e)}catch{return wd}}function FO(e){var t=Lme(e.slice(5,-1));return t===wd?"":t}var Vme=["x","y","lineHeight","capHeight","scaleToFit","textAnchor","verticalAnchor","fill"],$me=["dx","dy","angle","className","breakAll"];function eT(){return eT=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},eT.apply(this,arguments)}function o6(e,t){if(e==null)return{};var n=Bme(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 Bme(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 s6(e,t){return Hme(e)||qme(e,t)||Ume(e,t)||zme()}function zme(){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 Ume(e,t){if(e){if(typeof e=="string")return l6(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 l6(e,t)}}function l6(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 qme(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r,o,s,c,u=[],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)&&(u.push(r.value),u.length!==t);f=!0);}catch(g){m=!0,o=g}finally{try{if(!f&&n.return!=null&&(c=n.return(),Object(c)!==c))return}finally{if(m)throw o}}return u}}function Hme(e){if(Array.isArray(e))return e}var NH=/[ \f\n\r\t\v\u2028\u2029]+/,wH=function(t){var n=t.children,r=t.breakAll,o=t.style;try{var s=[];ot(n)||(r?s=n.toString().split(""):s=n.toString().split(NH));var c=s.map(function(f){return{word:f,width:_h(f,o).width}}),u=r?0:_h(" ",o).width;return{wordsWithComputedWidth:c,spaceWidth:u}}catch{return null}},Fme=function(t,n,r,o,s){var c=t.maxLines,u=t.children,f=t.style,m=t.breakAll,g=Oe(c),h=u,y=function(){var ee=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];return ee.reduce(function(q,Q){var G=Q.word,ne=Q.width,te=q[q.length-1];if(te&&(o==null||s||te.width+ne+r<Number(o)))te.words.push(G),te.width+=ne+r;else{var I={words:[G],width:ne};q.push(I)}return q},[])},x=y(n),S=function(ee){return ee.reduce(function(q,Q){return q.width>Q.width?q:Q})};if(!g)return x;for(var N="…",w=function(ee){var q=h.slice(0,ee),Q=wH({breakAll:m,style:f,children:q+N}).wordsWithComputedWidth,G=y(Q),ne=G.length>c||S(G).width>Number(o);return[ne,G]},D=0,C=h.length-1,j=0,P;D<=C&&j<=h.length-1;){var A=Math.floor((D+C)/2),T=A-1,R=w(T),M=s6(R,2),$=M[0],z=M[1],U=w(A),V=s6(U,1),F=V[0];if(!$&&!F&&(D=A+1),$&&F&&(C=A-1),!$&&F){P=z;break}j++}return P||x},c6=function(t){var n=ot(t)?[]:t.toString().split(NH);return[{words:n}]},Kme=function(t){var n=t.width,r=t.scaleToFit,o=t.children,s=t.style,c=t.breakAll,u=t.maxLines;if((n||r)&&!au.isSsr){var f,m,g=wH({breakAll:c,children:o,style:s});if(g){var h=g.wordsWithComputedWidth,y=g.spaceWidth;f=h,m=y}else return c6(o);return Fme({breakAll:c,children:o,maxLines:u,style:s},f,m,n,r)}return c6(o)},u6="#808080",Fc=function(t){var n=t.x,r=n===void 0?0:n,o=t.y,s=o===void 0?0:o,c=t.lineHeight,u=c===void 0?"1em":c,f=t.capHeight,m=f===void 0?"0.71em":f,g=t.scaleToFit,h=g===void 0?!1:g,y=t.textAnchor,x=y===void 0?"start":y,S=t.verticalAnchor,N=S===void 0?"end":S,w=t.fill,D=w===void 0?u6:w,C=o6(t,Vme),j=_.useMemo(function(){return Kme({breakAll:C.breakAll,children:C.children,maxLines:C.maxLines,scaleToFit:h,style:C.style,width:C.width})},[C.breakAll,C.children,C.maxLines,h,C.style,C.width]),P=C.dx,A=C.dy,T=C.angle,R=C.className,M=C.breakAll,$=o6(C,$me);if(!Bn(r)||!Bn(s))return null;var z=r+(Oe(P)?P:0),U=s+(Oe(A)?A:0),V;switch(N){case"start":V=FO("calc(".concat(m,")"));break;case"middle":V=FO("calc(".concat((j.length-1)/2," * -").concat(u," + (").concat(m," / 2))"));break;default:V=FO("calc(".concat(j.length-1," * -").concat(u,")"));break}var F=[];if(h){var X=j[0].width,ee=C.width;F.push("scale(".concat((Oe(ee)?ee/X:1)/X,")"))}return T&&F.push("rotate(".concat(T,", ").concat(z,", ").concat(U,")")),F.length&&($.transform=F.join(" ")),K.createElement("text",eT({},Fe($,!0),{x:z,y:U,className:it("recharts-text",R),textAnchor:x,fill:D.includes("url")?u6:D}),j.map(function(q,Q){var G=q.words.join(M?"":" ");return K.createElement("tspan",{x:z,dy:Q===0?V:u,key:"".concat(G,"-").concat(Q)},G)}))};function ml(e,t){return e==null||t==null?NaN:e<t?-1:e>t?1:e>=t?0:NaN}function Gme(e,t){return e==null||t==null?NaN:t<e?-1:t>e?1:t>=e?0:NaN}function yj(e){let t,n,r;e.length!==2?(t=ml,n=(u,f)=>ml(e(u),f),r=(u,f)=>e(u)-f):(t=e===ml||e===Gme?e:Yme,n=e,r=e);function o(u,f,m=0,g=u.length){if(m<g){if(t(f,f)!==0)return g;do{const h=m+g>>>1;n(u[h],f)<0?m=h+1:g=h}while(m<g)}return m}function s(u,f,m=0,g=u.length){if(m<g){if(t(f,f)!==0)return g;do{const h=m+g>>>1;n(u[h],f)<=0?m=h+1:g=h}while(m<g)}return m}function c(u,f,m=0,g=u.length){const h=o(u,f,m,g-1);return h>m&&r(u[h-1],f)>-r(u[h],f)?h-1:h}return{left:o,center:c,right:s}}function Yme(){return 0}function EH(e){return e===null?NaN:+e}function*Qme(e,t){for(let n of e)n!=null&&(n=+n)>=n&&(yield n)}const Xme=yj(ml),Fp=Xme.right;yj(EH).center;class d6 extends Map{constructor(t,n=Jme){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(f6(this,t))}has(t){return super.has(f6(this,t))}set(t,n){return super.set(Wme(this,t),n)}delete(t){return super.delete(Zme(this,t))}}function f6({_intern:e,_key:t},n){const r=t(n);return e.has(r)?e.get(r):n}function Wme({_intern:e,_key:t},n){const r=t(n);return e.has(r)?e.get(r):(e.set(r,n),n)}function Zme({_intern:e,_key:t},n){const r=t(n);return e.has(r)&&(n=e.get(r),e.delete(r)),n}function Jme(e){return e!==null&&typeof e=="object"?e.valueOf():e}function ehe(e=ml){if(e===ml)return SH;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 SH(e,t){return(e==null||!(e>=e))-(t==null||!(t>=t))||(e<t?-1:e>t?1:0)}const the=Math.sqrt(50),nhe=Math.sqrt(10),rhe=Math.sqrt(2);function Ey(e,t,n){const r=(t-e)/Math.max(0,n),o=Math.floor(Math.log10(r)),s=r/Math.pow(10,o),c=s>=the?10:s>=nhe?5:s>=rhe?2:1;let u,f,m;return o<0?(m=Math.pow(10,-o)/c,u=Math.round(e*m),f=Math.round(t*m),u/m<e&&++u,f/m>t&&--f,m=-m):(m=Math.pow(10,o)*c,u=Math.round(e/m),f=Math.round(t/m),u*m<e&&++u,f*m>t&&--f),f<u&&.5<=n&&n<2?Ey(e,t,n*2):[u,f,m]}function tT(e,t,n){if(t=+t,e=+e,n=+n,!(n>0))return[];if(e===t)return[e];const r=t<e,[o,s,c]=r?Ey(t,e,n):Ey(e,t,n);if(!(s>=o))return[];const u=s-o+1,f=new Array(u);if(r)if(c<0)for(let m=0;m<u;++m)f[m]=(s-m)/-c;else for(let m=0;m<u;++m)f[m]=(s-m)*c;else if(c<0)for(let m=0;m<u;++m)f[m]=(o+m)/-c;else for(let m=0;m<u;++m)f[m]=(o+m)*c;return f}function nT(e,t,n){return t=+t,e=+e,n=+n,Ey(e,t,n)[2]}function rT(e,t,n){t=+t,e=+e,n=+n;const r=t<e,o=r?nT(t,e,n):nT(e,t,n);return(r?-1:1)*(o<0?1/-o:o)}function m6(e,t){let n;for(const r of e)r!=null&&(n<r||n===void 0&&r>=r)&&(n=r);return n}function h6(e,t){let n;for(const r of e)r!=null&&(n>r||n===void 0&&r>=r)&&(n=r);return n}function AH(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?SH:ehe(o);r>n;){if(r-n>600){const f=r-n+1,m=t-n+1,g=Math.log(f),h=.5*Math.exp(2*g/3),y=.5*Math.sqrt(g*h*(f-h)/f)*(m-f/2<0?-1:1),x=Math.max(n,Math.floor(t-m*h/f+y)),S=Math.min(r,Math.floor(t+(f-m)*h/f+y));AH(e,t,x,S,o)}const s=e[t];let c=n,u=r;for(dh(e,n,t),o(e[r],s)>0&&dh(e,n,r);c<u;){for(dh(e,c,u),++c,--u;o(e[c],s)<0;)++c;for(;o(e[u],s)>0;)--u}o(e[n],s)===0?dh(e,n,u):(++u,dh(e,u,r)),u<=t&&(n=u+1),t<=u&&(r=u-1)}return e}function dh(e,t,n){const r=e[t];e[t]=e[n],e[n]=r}function ahe(e,t,n){if(e=Float64Array.from(Qme(e)),!(!(r=e.length)||isNaN(t=+t))){if(t<=0||r<2)return h6(e);if(t>=1)return m6(e);var r,o=(r-1)*t,s=Math.floor(o),c=m6(AH(e,s).subarray(0,s+1)),u=h6(e.subarray(s+1));return c+(u-c)*(o-s)}}function ihe(e,t,n=EH){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),c=+n(e[s],s,e),u=+n(e[s+1],s+1,e);return c+(u-c)*(o-s)}}function ohe(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 Ha(e,t){switch(arguments.length){case 0:break;case 1:this.range(e);break;default:this.range(t).domain(e);break}return this}function hs(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 aT=Symbol("implicit");function xj(){var e=new d6,t=[],n=[],r=aT;function o(s){let c=e.get(s);if(c===void 0){if(r!==aT)return r;e.set(s,c=t.push(s)-1)}return n[c%n.length]}return o.domain=function(s){if(!arguments.length)return t.slice();t=[],e=new d6;for(const c of s)e.has(c)||e.set(c,t.push(c)-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 xj(t,n).unknown(r)},Ha.apply(o,arguments),o}function rp(){var e=xj().unknown(void 0),t=e.domain,n=e.range,r=0,o=1,s,c,u=!1,f=0,m=0,g=.5;delete e.unknown;function h(){var y=t().length,x=o<r,S=x?o:r,N=x?r:o;s=(N-S)/Math.max(1,y-f+m*2),u&&(s=Math.floor(s)),S+=(N-S-s*(y-f))*g,c=s*(1-f),u&&(S=Math.round(S),c=Math.round(c));var w=ohe(y).map(function(D){return S+s*D});return n(x?w.reverse():w)}return e.domain=function(y){return arguments.length?(t(y),h()):t()},e.range=function(y){return arguments.length?([r,o]=y,r=+r,o=+o,h()):[r,o]},e.rangeRound=function(y){return[r,o]=y,r=+r,o=+o,u=!0,h()},e.bandwidth=function(){return c},e.step=function(){return s},e.round=function(y){return arguments.length?(u=!!y,h()):u},e.padding=function(y){return arguments.length?(f=Math.min(1,m=+y),h()):f},e.paddingInner=function(y){return arguments.length?(f=Math.min(1,y),h()):f},e.paddingOuter=function(y){return arguments.length?(m=+y,h()):m},e.align=function(y){return arguments.length?(g=Math.max(0,Math.min(1,y)),h()):g},e.copy=function(){return rp(t(),[r,o]).round(u).paddingInner(f).paddingOuter(m).align(g)},Ha.apply(h(),arguments)}function OH(e){var t=e.copy;return e.padding=e.paddingOuter,delete e.paddingInner,delete e.paddingOuter,e.copy=function(){return OH(t())},e}function jh(){return OH(rp.apply(null,arguments).paddingInner(1))}function Nj(e,t,n){e.prototype=t.prototype=n,n.constructor=e}function DH(e,t){var n=Object.create(e.prototype);for(var r in t)n[r]=t[r];return n}function Kp(){}var ap=.7,Sy=1/ap,_d="\\s*([+-]?\\d+)\\s*",ip="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*",io="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*",she=/^#([0-9a-f]{3,8})$/,lhe=new RegExp(`^rgb\\(${_d},${_d},${_d}\\)$`),che=new RegExp(`^rgb\\(${io},${io},${io}\\)$`),uhe=new RegExp(`^rgba\\(${_d},${_d},${_d},${ip}\\)$`),dhe=new RegExp(`^rgba\\(${io},${io},${io},${ip}\\)$`),fhe=new RegExp(`^hsl\\(${ip},${io},${io}\\)$`),mhe=new RegExp(`^hsla\\(${ip},${io},${io},${ip}\\)$`),p6={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};Nj(Kp,op,{copy(e){return Object.assign(new this.constructor,this,e)},displayable(){return this.rgb().displayable()},hex:g6,formatHex:g6,formatHex8:hhe,formatHsl:phe,formatRgb:v6,toString:v6});function g6(){return this.rgb().formatHex()}function hhe(){return this.rgb().formatHex8()}function phe(){return CH(this).formatHsl()}function v6(){return this.rgb().formatRgb()}function op(e){var t,n;return e=(e+"").trim().toLowerCase(),(t=she.exec(e))?(n=t[1].length,t=parseInt(t[1],16),n===6?b6(t):n===3?new Kr(t>>8&15|t>>4&240,t>>4&15|t&240,(t&15)<<4|t&15,1):n===8?jb(t>>24&255,t>>16&255,t>>8&255,(t&255)/255):n===4?jb(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=lhe.exec(e))?new Kr(t[1],t[2],t[3],1):(t=che.exec(e))?new Kr(t[1]*255/100,t[2]*255/100,t[3]*255/100,1):(t=uhe.exec(e))?jb(t[1],t[2],t[3],t[4]):(t=dhe.exec(e))?jb(t[1]*255/100,t[2]*255/100,t[3]*255/100,t[4]):(t=fhe.exec(e))?N6(t[1],t[2]/100,t[3]/100,1):(t=mhe.exec(e))?N6(t[1],t[2]/100,t[3]/100,t[4]):p6.hasOwnProperty(e)?b6(p6[e]):e==="transparent"?new Kr(NaN,NaN,NaN,0):null}function b6(e){return new Kr(e>>16&255,e>>8&255,e&255,1)}function jb(e,t,n,r){return r<=0&&(e=t=n=NaN),new Kr(e,t,n,r)}function ghe(e){return e instanceof Kp||(e=op(e)),e?(e=e.rgb(),new Kr(e.r,e.g,e.b,e.opacity)):new Kr}function iT(e,t,n,r){return arguments.length===1?ghe(e):new Kr(e,t,n,r??1)}function Kr(e,t,n,r){this.r=+e,this.g=+t,this.b=+n,this.opacity=+r}Nj(Kr,iT,DH(Kp,{brighter(e){return e=e==null?Sy:Math.pow(Sy,e),new Kr(this.r*e,this.g*e,this.b*e,this.opacity)},darker(e){return e=e==null?ap:Math.pow(ap,e),new Kr(this.r*e,this.g*e,this.b*e,this.opacity)},rgb(){return this},clamp(){return new Kr(Cc(this.r),Cc(this.g),Cc(this.b),Ay(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:y6,formatHex:y6,formatHex8:vhe,formatRgb:x6,toString:x6}));function y6(){return`#${Ec(this.r)}${Ec(this.g)}${Ec(this.b)}`}function vhe(){return`#${Ec(this.r)}${Ec(this.g)}${Ec(this.b)}${Ec((isNaN(this.opacity)?1:this.opacity)*255)}`}function x6(){const e=Ay(this.opacity);return`${e===1?"rgb(":"rgba("}${Cc(this.r)}, ${Cc(this.g)}, ${Cc(this.b)}${e===1?")":`, ${e})`}`}function Ay(e){return isNaN(e)?1:Math.max(0,Math.min(1,e))}function Cc(e){return Math.max(0,Math.min(255,Math.round(e)||0))}function Ec(e){return e=Cc(e),(e<16?"0":"")+e.toString(16)}function N6(e,t,n,r){return r<=0?e=t=n=NaN:n<=0||n>=1?e=t=NaN:t<=0&&(e=NaN),new ci(e,t,n,r)}function CH(e){if(e instanceof ci)return new ci(e.h,e.s,e.l,e.opacity);if(e instanceof Kp||(e=op(e)),!e)return new ci;if(e instanceof ci)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),c=NaN,u=s-o,f=(s+o)/2;return u?(t===s?c=(n-r)/u+(n<r)*6:n===s?c=(r-t)/u+2:c=(t-n)/u+4,u/=f<.5?s+o:2-s-o,c*=60):u=f>0&&f<1?0:c,new ci(c,u,f,e.opacity)}function bhe(e,t,n,r){return arguments.length===1?CH(e):new ci(e,t,n,r??1)}function ci(e,t,n,r){this.h=+e,this.s=+t,this.l=+n,this.opacity=+r}Nj(ci,bhe,DH(Kp,{brighter(e){return e=e==null?Sy:Math.pow(Sy,e),new ci(this.h,this.s,this.l*e,this.opacity)},darker(e){return e=e==null?ap:Math.pow(ap,e),new ci(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 Kr(KO(e>=240?e-240:e+120,o,r),KO(e,o,r),KO(e<120?e+240:e-120,o,r),this.opacity)},clamp(){return new ci(w6(this.h),Rb(this.s),Rb(this.l),Ay(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=Ay(this.opacity);return`${e===1?"hsl(":"hsla("}${w6(this.h)}, ${Rb(this.s)*100}%, ${Rb(this.l)*100}%${e===1?")":`, ${e})`}`}}));function w6(e){return e=(e||0)%360,e<0?e+360:e}function Rb(e){return Math.max(0,Math.min(1,e||0))}function KO(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 wj=e=>()=>e;function yhe(e,t){return function(n){return e+n*t}}function xhe(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 Nhe(e){return(e=+e)==1?TH:function(t,n){return n-t?xhe(t,n,e):wj(isNaN(t)?n:t)}}function TH(e,t){var n=t-e;return n?yhe(e,n):wj(isNaN(e)?t:e)}const E6=(function e(t){var n=Nhe(t);function r(o,s){var c=n((o=iT(o)).r,(s=iT(s)).r),u=n(o.g,s.g),f=n(o.b,s.b),m=TH(o.opacity,s.opacity);return function(g){return o.r=c(g),o.g=u(g),o.b=f(g),o.opacity=m(g),o+""}}return r.gamma=e,r})(1);function whe(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 Ehe(e){return ArrayBuffer.isView(e)&&!(e instanceof DataView)}function She(e,t){var n=t?t.length:0,r=e?Math.min(n,e.length):0,o=new Array(r),s=new Array(n),c;for(c=0;c<r;++c)o[c]=Sf(e[c],t[c]);for(;c<n;++c)s[c]=t[c];return function(u){for(c=0;c<r;++c)s[c]=o[c](u);return s}}function Ahe(e,t){var n=new Date;return e=+e,t=+t,function(r){return n.setTime(e*(1-r)+t*r),n}}function Oy(e,t){return e=+e,t=+t,function(n){return e*(1-n)+t*n}}function Ohe(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]=Sf(e[o],t[o]):r[o]=t[o];return function(s){for(o in n)r[o]=n[o](s);return r}}var oT=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,GO=new RegExp(oT.source,"g");function Dhe(e){return function(){return e}}function Che(e){return function(t){return e(t)+""}}function The(e,t){var n=oT.lastIndex=GO.lastIndex=0,r,o,s,c=-1,u=[],f=[];for(e=e+"",t=t+"";(r=oT.exec(e))&&(o=GO.exec(t));)(s=o.index)>n&&(s=t.slice(n,s),u[c]?u[c]+=s:u[++c]=s),(r=r[0])===(o=o[0])?u[c]?u[c]+=o:u[++c]=o:(u[++c]=null,f.push({i:c,x:Oy(r,o)})),n=GO.lastIndex;return n<t.length&&(s=t.slice(n),u[c]?u[c]+=s:u[++c]=s),u.length<2?f[0]?Che(f[0].x):Dhe(t):(t=f.length,function(m){for(var g=0,h;g<t;++g)u[(h=f[g]).i]=h.x(m);return u.join("")})}function Sf(e,t){var n=typeof t,r;return t==null||n==="boolean"?wj(t):(n==="number"?Oy:n==="string"?(r=op(t))?(t=r,E6):The:t instanceof op?E6:t instanceof Date?Ahe:Ehe(t)?whe:Array.isArray(t)?She:typeof t.valueOf!="function"&&typeof t.toString!="function"||isNaN(t)?Ohe:Oy)(e,t)}function Ej(e,t){return e=+e,t=+t,function(n){return Math.round(e*(1-n)+t*n)}}function _he(e,t){t===void 0&&(t=e,e=Sf);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(c){var u=Math.max(0,Math.min(r-1,Math.floor(c*=r)));return s[u](c-u)}}function jhe(e){return function(){return e}}function Dy(e){return+e}var S6=[0,1];function Pr(e){return e}function sT(e,t){return(t-=e=+e)?function(n){return(n-e)/t}:jhe(isNaN(t)?NaN:.5)}function Rhe(e,t){var n;return e>t&&(n=e,e=t,t=n),function(r){return Math.max(e,Math.min(t,r))}}function Phe(e,t,n){var r=e[0],o=e[1],s=t[0],c=t[1];return o<r?(r=sT(o,r),s=n(c,s)):(r=sT(r,o),s=n(s,c)),function(u){return s(r(u))}}function Mhe(e,t,n){var r=Math.min(e.length,t.length)-1,o=new Array(r),s=new Array(r),c=-1;for(e[r]<e[0]&&(e=e.slice().reverse(),t=t.slice().reverse());++c<r;)o[c]=sT(e[c],e[c+1]),s[c]=n(t[c],t[c+1]);return function(u){var f=Fp(e,u,1,r)-1;return s[f](o[f](u))}}function Gp(e,t){return t.domain(e.domain()).range(e.range()).interpolate(e.interpolate()).clamp(e.clamp()).unknown(e.unknown())}function Wx(){var e=S6,t=S6,n=Sf,r,o,s,c=Pr,u,f,m;function g(){var y=Math.min(e.length,t.length);return c!==Pr&&(c=Rhe(e[0],e[y-1])),u=y>2?Mhe:Phe,f=m=null,h}function h(y){return y==null||isNaN(y=+y)?s:(f||(f=u(e.map(r),t,n)))(r(c(y)))}return h.invert=function(y){return c(o((m||(m=u(t,e.map(r),Oy)))(y)))},h.domain=function(y){return arguments.length?(e=Array.from(y,Dy),g()):e.slice()},h.range=function(y){return arguments.length?(t=Array.from(y),g()):t.slice()},h.rangeRound=function(y){return t=Array.from(y),n=Ej,g()},h.clamp=function(y){return arguments.length?(c=y?!0:Pr,g()):c!==Pr},h.interpolate=function(y){return arguments.length?(n=y,g()):n},h.unknown=function(y){return arguments.length?(s=y,h):s},function(y,x){return r=y,o=x,g()}}function Sj(){return Wx()(Pr,Pr)}function khe(e){return Math.abs(e=Math.round(e))>=1e21?e.toLocaleString("en").replace(/,/g,""):e.toString(10)}function Cy(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 zd(e){return e=Cy(Math.abs(e)),e?e[1]:NaN}function Ihe(e,t){return function(n,r){for(var o=n.length,s=[],c=0,u=e[0],f=0;o>0&&u>0&&(f+u+1>r&&(u=Math.max(1,r-f)),s.push(n.substring(o-=u,o+u)),!((f+=u+1)>r));)u=e[c=(c+1)%e.length];return s.reverse().join(t)}}function Lhe(e){return function(t){return t.replace(/[0-9]/g,function(n){return e[+n]})}}var Vhe=/^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;function sp(e){if(!(t=Vhe.exec(e)))throw new Error("invalid format: "+e);var t;return new Aj({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]})}sp.prototype=Aj.prototype;function Aj(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+""}Aj.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 $he(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 _H;function Bhe(e,t){var n=Cy(e,t);if(!n)return e+"";var r=n[0],o=n[1],s=o-(_H=Math.max(-8,Math.min(8,Math.floor(o/3)))*3)+1,c=r.length;return s===c?r:s>c?r+new Array(s-c+1).join("0"):s>0?r.slice(0,s)+"."+r.slice(s):"0."+new Array(1-s).join("0")+Cy(e,Math.max(0,t+s-1))[0]}function A6(e,t){var n=Cy(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 O6={"%":(e,t)=>(e*100).toFixed(t),b:e=>Math.round(e).toString(2),c:e=>e+"",d:khe,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)=>A6(e*100,t),r:A6,s:Bhe,X:e=>Math.round(e).toString(16).toUpperCase(),x:e=>Math.round(e).toString(16)};function D6(e){return e}var C6=Array.prototype.map,T6=["y","z","a","f","p","n","µ","m","","k","M","G","T","P","E","Z","Y"];function zhe(e){var t=e.grouping===void 0||e.thousands===void 0?D6:Ihe(C6.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?D6:Lhe(C6.call(e.numerals,String)),c=e.percent===void 0?"%":e.percent+"",u=e.minus===void 0?"−":e.minus+"",f=e.nan===void 0?"NaN":e.nan+"";function m(h){h=sp(h);var y=h.fill,x=h.align,S=h.sign,N=h.symbol,w=h.zero,D=h.width,C=h.comma,j=h.precision,P=h.trim,A=h.type;A==="n"?(C=!0,A="g"):O6[A]||(j===void 0&&(j=12),P=!0,A="g"),(w||y==="0"&&x==="=")&&(w=!0,y="0",x="=");var T=N==="$"?n:N==="#"&&/[boxX]/.test(A)?"0"+A.toLowerCase():"",R=N==="$"?r:/[%p]/.test(A)?c:"",M=O6[A],$=/[defgprs%]/.test(A);j=j===void 0?6:/[gprs]/.test(A)?Math.max(1,Math.min(21,j)):Math.max(0,Math.min(20,j));function z(U){var V=T,F=R,X,ee,q;if(A==="c")F=M(U)+F,U="";else{U=+U;var Q=U<0||1/U<0;if(U=isNaN(U)?f:M(Math.abs(U),j),P&&(U=$he(U)),Q&&+U==0&&S!=="+"&&(Q=!1),V=(Q?S==="("?S:u:S==="-"||S==="("?"":S)+V,F=(A==="s"?T6[8+_H/3]:"")+F+(Q&&S==="("?")":""),$){for(X=-1,ee=U.length;++X<ee;)if(q=U.charCodeAt(X),48>q||q>57){F=(q===46?o+U.slice(X+1):U.slice(X))+F,U=U.slice(0,X);break}}}C&&!w&&(U=t(U,1/0));var G=V.length+U.length+F.length,ne=G<D?new Array(D-G+1).join(y):"";switch(C&&w&&(U=t(ne+U,ne.length?D-F.length:1/0),ne=""),x){case"<":U=V+U+F+ne;break;case"=":U=V+ne+U+F;break;case"^":U=ne.slice(0,G=ne.length>>1)+V+U+F+ne.slice(G);break;default:U=ne+V+U+F;break}return s(U)}return z.toString=function(){return h+""},z}function g(h,y){var x=m((h=sp(h),h.type="f",h)),S=Math.max(-8,Math.min(8,Math.floor(zd(y)/3)))*3,N=Math.pow(10,-S),w=T6[8+S/3];return function(D){return x(N*D)+w}}return{format:m,formatPrefix:g}}var Pb,Oj,jH;Uhe({thousands:",",grouping:[3],currency:["$",""]});function Uhe(e){return Pb=zhe(e),Oj=Pb.format,jH=Pb.formatPrefix,Pb}function qhe(e){return Math.max(0,-zd(Math.abs(e)))}function Hhe(e,t){return Math.max(0,Math.max(-8,Math.min(8,Math.floor(zd(t)/3)))*3-zd(Math.abs(e)))}function Fhe(e,t){return e=Math.abs(e),t=Math.abs(t)-e,Math.max(0,zd(t)-zd(e))+1}function RH(e,t,n,r){var o=rT(e,t,n),s;switch(r=sp(r??",f"),r.type){case"s":{var c=Math.max(Math.abs(e),Math.abs(t));return r.precision==null&&!isNaN(s=Hhe(o,c))&&(r.precision=s),jH(r,c)}case"":case"e":case"g":case"p":case"r":{r.precision==null&&!isNaN(s=Fhe(o,Math.max(Math.abs(e),Math.abs(t))))&&(r.precision=s-(r.type==="e"));break}case"f":case"%":{r.precision==null&&!isNaN(s=qhe(o))&&(r.precision=s-(r.type==="%")*2);break}}return Oj(r)}function Nl(e){var t=e.domain;return e.ticks=function(n){var r=t();return tT(r[0],r[r.length-1],n??10)},e.tickFormat=function(n,r){var o=t();return RH(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,c=r[o],u=r[s],f,m,g=10;for(u<c&&(m=c,c=u,u=m,m=o,o=s,s=m);g-- >0;){if(m=nT(c,u,n),m===f)return r[o]=c,r[s]=u,t(r);if(m>0)c=Math.floor(c/m)*m,u=Math.ceil(u/m)*m;else if(m<0)c=Math.ceil(c*m)/m,u=Math.floor(u*m)/m;else break;f=m}return e},e}function Ty(){var e=Sj();return e.copy=function(){return Gp(e,Ty())},Ha.apply(e,arguments),Nl(e)}function PH(e){var t;function n(r){return r==null||isNaN(r=+r)?t:r}return n.invert=n,n.domain=n.range=function(r){return arguments.length?(e=Array.from(r,Dy),n):e.slice()},n.unknown=function(r){return arguments.length?(t=r,n):t},n.copy=function(){return PH(e).unknown(t)},e=arguments.length?Array.from(e,Dy):[0,1],Nl(n)}function MH(e,t){e=e.slice();var n=0,r=e.length-1,o=e[n],s=e[r],c;return s<o&&(c=n,n=r,r=c,c=o,o=s,s=c),e[n]=t.floor(o),e[r]=t.ceil(s),e}function _6(e){return Math.log(e)}function j6(e){return Math.exp(e)}function Khe(e){return-Math.log(-e)}function Ghe(e){return-Math.exp(-e)}function Yhe(e){return isFinite(e)?+("1e"+e):e<0?0:e}function Qhe(e){return e===10?Yhe:e===Math.E?Math.exp:t=>Math.pow(e,t)}function Xhe(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 R6(e){return(t,n)=>-e(-t,n)}function Dj(e){const t=e(_6,j6),n=t.domain;let r=10,o,s;function c(){return o=Xhe(r),s=Qhe(r),n()[0]<0?(o=R6(o),s=R6(s),e(Khe,Ghe)):e(_6,j6),t}return t.base=function(u){return arguments.length?(r=+u,c()):r},t.domain=function(u){return arguments.length?(n(u),c()):n()},t.ticks=u=>{const f=n();let m=f[0],g=f[f.length-1];const h=g<m;h&&([m,g]=[g,m]);let y=o(m),x=o(g),S,N;const w=u==null?10:+u;let D=[];if(!(r%1)&&x-y<w){if(y=Math.floor(y),x=Math.ceil(x),m>0){for(;y<=x;++y)for(S=1;S<r;++S)if(N=y<0?S/s(-y):S*s(y),!(N<m)){if(N>g)break;D.push(N)}}else for(;y<=x;++y)for(S=r-1;S>=1;--S)if(N=y>0?S/s(-y):S*s(y),!(N<m)){if(N>g)break;D.push(N)}D.length*2<w&&(D=tT(m,g,w))}else D=tT(y,x,Math.min(x-y,w)).map(s);return h?D.reverse():D},t.tickFormat=(u,f)=>{if(u==null&&(u=10),f==null&&(f=r===10?"s":","),typeof f!="function"&&(!(r%1)&&(f=sp(f)).precision==null&&(f.trim=!0),f=Oj(f)),u===1/0)return f;const m=Math.max(1,r*u/t.ticks().length);return g=>{let h=g/s(Math.round(o(g)));return h*r<r-.5&&(h*=r),h<=m?f(g):""}},t.nice=()=>n(MH(n(),{floor:u=>s(Math.floor(o(u))),ceil:u=>s(Math.ceil(o(u)))})),t}function kH(){const e=Dj(Wx()).domain([1,10]);return e.copy=()=>Gp(e,kH()).base(e.base()),Ha.apply(e,arguments),e}function P6(e){return function(t){return Math.sign(t)*Math.log1p(Math.abs(t/e))}}function M6(e){return function(t){return Math.sign(t)*Math.expm1(Math.abs(t))*e}}function Cj(e){var t=1,n=e(P6(t),M6(t));return n.constant=function(r){return arguments.length?e(P6(t=+r),M6(t)):t},Nl(n)}function IH(){var e=Cj(Wx());return e.copy=function(){return Gp(e,IH()).constant(e.constant())},Ha.apply(e,arguments)}function k6(e){return function(t){return t<0?-Math.pow(-t,e):Math.pow(t,e)}}function Whe(e){return e<0?-Math.sqrt(-e):Math.sqrt(e)}function Zhe(e){return e<0?-e*e:e*e}function Tj(e){var t=e(Pr,Pr),n=1;function r(){return n===1?e(Pr,Pr):n===.5?e(Whe,Zhe):e(k6(n),k6(1/n))}return t.exponent=function(o){return arguments.length?(n=+o,r()):n},Nl(t)}function _j(){var e=Tj(Wx());return e.copy=function(){return Gp(e,_j()).exponent(e.exponent())},Ha.apply(e,arguments),e}function Jhe(){return _j.apply(null,arguments).exponent(.5)}function I6(e){return Math.sign(e)*e*e}function epe(e){return Math.sign(e)*Math.sqrt(Math.abs(e))}function LH(){var e=Sj(),t=[0,1],n=!1,r;function o(s){var c=epe(e(s));return isNaN(c)?r:n?Math.round(c):c}return o.invert=function(s){return e.invert(I6(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,Dy)).map(I6)),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 LH(e.domain(),t).round(n).clamp(e.clamp()).unknown(r)},Ha.apply(o,arguments),Nl(o)}function VH(){var e=[],t=[],n=[],r;function o(){var c=0,u=Math.max(1,t.length);for(n=new Array(u-1);++c<u;)n[c-1]=ihe(e,c/u);return s}function s(c){return c==null||isNaN(c=+c)?r:t[Fp(n,c)]}return s.invertExtent=function(c){var u=t.indexOf(c);return u<0?[NaN,NaN]:[u>0?n[u-1]:e[0],u<n.length?n[u]:e[e.length-1]]},s.domain=function(c){if(!arguments.length)return e.slice();e=[];for(let u of c)u!=null&&!isNaN(u=+u)&&e.push(u);return e.sort(ml),o()},s.range=function(c){return arguments.length?(t=Array.from(c),o()):t.slice()},s.unknown=function(c){return arguments.length?(r=c,s):r},s.quantiles=function(){return n.slice()},s.copy=function(){return VH().domain(e).range(t).unknown(r)},Ha.apply(s,arguments)}function $H(){var e=0,t=1,n=1,r=[.5],o=[0,1],s;function c(f){return f!=null&&f<=f?o[Fp(r,f,0,n)]:s}function u(){var f=-1;for(r=new Array(n);++f<n;)r[f]=((f+1)*t-(f-n)*e)/(n+1);return c}return c.domain=function(f){return arguments.length?([e,t]=f,e=+e,t=+t,u()):[e,t]},c.range=function(f){return arguments.length?(n=(o=Array.from(f)).length-1,u()):o.slice()},c.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]]},c.unknown=function(f){return arguments.length&&(s=f),c},c.thresholds=function(){return r.slice()},c.copy=function(){return $H().domain([e,t]).range(o).unknown(s)},Ha.apply(Nl(c),arguments)}function BH(){var e=[.5],t=[0,1],n,r=1;function o(s){return s!=null&&s<=s?t[Fp(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 c=t.indexOf(s);return[e[c-1],e[c]]},o.unknown=function(s){return arguments.length?(n=s,o):n},o.copy=function(){return BH().domain(e).range(t).unknown(n)},Ha.apply(o,arguments)}const YO=new Date,QO=new Date;function zn(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 c=o(s),u=o.ceil(s);return s-c<u-s?c:u},o.offset=(s,c)=>(t(s=new Date(+s),c==null?1:Math.floor(c)),s),o.range=(s,c,u)=>{const f=[];if(s=o.ceil(s),u=u==null?1:Math.floor(u),!(s<c)||!(u>0))return f;let m;do f.push(m=new Date(+s)),t(s,u),e(s);while(m<s&&s<c);return f},o.filter=s=>zn(c=>{if(c>=c)for(;e(c),!s(c);)c.setTime(c-1)},(c,u)=>{if(c>=c)if(u<0)for(;++u<=0;)for(;t(c,-1),!s(c););else for(;--u>=0;)for(;t(c,1),!s(c););}),n&&(o.count=(s,c)=>(YO.setTime(+s),QO.setTime(+c),e(YO),e(QO),Math.floor(n(YO,QO))),o.every=s=>(s=Math.floor(s),!isFinite(s)||!(s>0)?null:s>1?o.filter(r?c=>r(c)%s===0:c=>o.count(0,c)%s===0):o)),o}const _y=zn(()=>{},(e,t)=>{e.setTime(+e+t)},(e,t)=>t-e);_y.every=e=>(e=Math.floor(e),!isFinite(e)||!(e>0)?null:e>1?zn(t=>{t.setTime(Math.floor(t/e)*e)},(t,n)=>{t.setTime(+t+n*e)},(t,n)=>(n-t)/e):_y);_y.range;const Jo=1e3,$a=Jo*60,es=$a*60,ss=es*24,jj=ss*7,L6=ss*30,XO=ss*365,Sc=zn(e=>{e.setTime(e-e.getMilliseconds())},(e,t)=>{e.setTime(+e+t*Jo)},(e,t)=>(t-e)/Jo,e=>e.getUTCSeconds());Sc.range;const Rj=zn(e=>{e.setTime(e-e.getMilliseconds()-e.getSeconds()*Jo)},(e,t)=>{e.setTime(+e+t*$a)},(e,t)=>(t-e)/$a,e=>e.getMinutes());Rj.range;const Pj=zn(e=>{e.setUTCSeconds(0,0)},(e,t)=>{e.setTime(+e+t*$a)},(e,t)=>(t-e)/$a,e=>e.getUTCMinutes());Pj.range;const Mj=zn(e=>{e.setTime(e-e.getMilliseconds()-e.getSeconds()*Jo-e.getMinutes()*$a)},(e,t)=>{e.setTime(+e+t*es)},(e,t)=>(t-e)/es,e=>e.getHours());Mj.range;const kj=zn(e=>{e.setUTCMinutes(0,0,0)},(e,t)=>{e.setTime(+e+t*es)},(e,t)=>(t-e)/es,e=>e.getUTCHours());kj.range;const Yp=zn(e=>e.setHours(0,0,0,0),(e,t)=>e.setDate(e.getDate()+t),(e,t)=>(t-e-(t.getTimezoneOffset()-e.getTimezoneOffset())*$a)/ss,e=>e.getDate()-1);Yp.range;const Zx=zn(e=>{e.setUTCHours(0,0,0,0)},(e,t)=>{e.setUTCDate(e.getUTCDate()+t)},(e,t)=>(t-e)/ss,e=>e.getUTCDate()-1);Zx.range;const zH=zn(e=>{e.setUTCHours(0,0,0,0)},(e,t)=>{e.setUTCDate(e.getUTCDate()+t)},(e,t)=>(t-e)/ss,e=>Math.floor(e/ss));zH.range;function iu(e){return zn(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())*$a)/jj)}const Jx=iu(0),jy=iu(1),tpe=iu(2),npe=iu(3),Ud=iu(4),rpe=iu(5),ape=iu(6);Jx.range;jy.range;tpe.range;npe.range;Ud.range;rpe.range;ape.range;function ou(e){return zn(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)/jj)}const e0=ou(0),Ry=ou(1),ipe=ou(2),ope=ou(3),qd=ou(4),spe=ou(5),lpe=ou(6);e0.range;Ry.range;ipe.range;ope.range;qd.range;spe.range;lpe.range;const Ij=zn(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());Ij.range;const Lj=zn(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());Lj.range;const ls=zn(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());ls.every=e=>!isFinite(e=Math.floor(e))||!(e>0)?null:zn(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)});ls.range;const cs=zn(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());cs.every=e=>!isFinite(e=Math.floor(e))||!(e>0)?null:zn(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)});cs.range;function UH(e,t,n,r,o,s){const c=[[Sc,1,Jo],[Sc,5,5*Jo],[Sc,15,15*Jo],[Sc,30,30*Jo],[s,1,$a],[s,5,5*$a],[s,15,15*$a],[s,30,30*$a],[o,1,es],[o,3,3*es],[o,6,6*es],[o,12,12*es],[r,1,ss],[r,2,2*ss],[n,1,jj],[t,1,L6],[t,3,3*L6],[e,1,XO]];function u(m,g,h){const y=g<m;y&&([m,g]=[g,m]);const x=h&&typeof h.range=="function"?h:f(m,g,h),S=x?x.range(m,+g+1):[];return y?S.reverse():S}function f(m,g,h){const y=Math.abs(g-m)/h,x=yj(([,,w])=>w).right(c,y);if(x===c.length)return e.every(rT(m/XO,g/XO,h));if(x===0)return _y.every(Math.max(rT(m,g,h),1));const[S,N]=c[y/c[x-1][2]<c[x][2]/y?x-1:x];return S.every(N)}return[u,f]}const[cpe,upe]=UH(cs,Lj,e0,zH,kj,Pj),[dpe,fpe]=UH(ls,Ij,Jx,Yp,Mj,Rj);function WO(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 ZO(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 fh(e,t,n){return{y:e,m:t,d:n,H:0,M:0,S:0,L:0}}function mpe(e){var t=e.dateTime,n=e.date,r=e.time,o=e.periods,s=e.days,c=e.shortDays,u=e.months,f=e.shortMonths,m=mh(o),g=hh(o),h=mh(s),y=hh(s),x=mh(c),S=hh(c),N=mh(u),w=hh(u),D=mh(f),C=hh(f),j={a:Q,A:G,b:ne,B:te,c:null,d:q6,e:q6,f:Ipe,g:Kpe,G:Ype,H:Ppe,I:Mpe,j:kpe,L:qH,m:Lpe,M:Vpe,p:I,q:H,Q:K6,s:G6,S:$pe,u:Bpe,U:zpe,V:Upe,w:qpe,W:Hpe,x:null,X:null,y:Fpe,Y:Gpe,Z:Qpe,"%":F6},P={a:Y,A:re,b:ge,B:we,c:null,d:H6,e:H6,f:Jpe,g:cge,G:dge,H:Xpe,I:Wpe,j:Zpe,L:FH,m:ege,M:tge,p:le,q:ye,Q:K6,s:G6,S:nge,u:rge,U:age,V:ige,w:oge,W:sge,x:null,X:null,y:lge,Y:uge,Z:fge,"%":F6},A={a:z,A:U,b:V,B:F,c:X,d:z6,e:z6,f:Tpe,g:B6,G:$6,H:U6,I:U6,j:Ape,L:Cpe,m:Spe,M:Ope,p:$,q:Epe,Q:jpe,s:Rpe,S:Dpe,u:bpe,U:ype,V:xpe,w:vpe,W:Npe,x:ee,X:q,y:B6,Y:$6,Z:wpe,"%":_pe};j.x=T(n,j),j.X=T(r,j),j.c=T(t,j),P.x=T(n,P),P.X=T(r,P),P.c=T(t,P);function T(me,xe){return function(de){var ie=[],ze=-1,Ne=0,ut=me.length,Ve,nt,Un;for(de instanceof Date||(de=new Date(+de));++ze<ut;)me.charCodeAt(ze)===37&&(ie.push(me.slice(Ne,ze)),(nt=V6[Ve=me.charAt(++ze)])!=null?Ve=me.charAt(++ze):nt=Ve==="e"?" ":"0",(Un=xe[Ve])&&(Ve=Un(de,nt)),ie.push(Ve),Ne=ze+1);return ie.push(me.slice(Ne,ze)),ie.join("")}}function R(me,xe){return function(de){var ie=fh(1900,void 0,1),ze=M(ie,me,de+="",0),Ne,ut;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(xe&&!("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?(Ne=ZO(fh(ie.y,0,1)),ut=Ne.getUTCDay(),Ne=ut>4||ut===0?Ry.ceil(Ne):Ry(Ne),Ne=Zx.offset(Ne,(ie.V-1)*7),ie.y=Ne.getUTCFullYear(),ie.m=Ne.getUTCMonth(),ie.d=Ne.getUTCDate()+(ie.w+6)%7):(Ne=WO(fh(ie.y,0,1)),ut=Ne.getDay(),Ne=ut>4||ut===0?jy.ceil(Ne):jy(Ne),Ne=Yp.offset(Ne,(ie.V-1)*7),ie.y=Ne.getFullYear(),ie.m=Ne.getMonth(),ie.d=Ne.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),ut="Z"in ie?ZO(fh(ie.y,0,1)).getUTCDay():WO(fh(ie.y,0,1)).getDay(),ie.m=0,ie.d="W"in ie?(ie.w+6)%7+ie.W*7-(ut+5)%7:ie.w+ie.U*7-(ut+6)%7);return"Z"in ie?(ie.H+=ie.Z/100|0,ie.M+=ie.Z%100,ZO(ie)):WO(ie)}}function M(me,xe,de,ie){for(var ze=0,Ne=xe.length,ut=de.length,Ve,nt;ze<Ne;){if(ie>=ut)return-1;if(Ve=xe.charCodeAt(ze++),Ve===37){if(Ve=xe.charAt(ze++),nt=A[Ve in V6?xe.charAt(ze++):Ve],!nt||(ie=nt(me,de,ie))<0)return-1}else if(Ve!=de.charCodeAt(ie++))return-1}return ie}function $(me,xe,de){var ie=m.exec(xe.slice(de));return ie?(me.p=g.get(ie[0].toLowerCase()),de+ie[0].length):-1}function z(me,xe,de){var ie=x.exec(xe.slice(de));return ie?(me.w=S.get(ie[0].toLowerCase()),de+ie[0].length):-1}function U(me,xe,de){var ie=h.exec(xe.slice(de));return ie?(me.w=y.get(ie[0].toLowerCase()),de+ie[0].length):-1}function V(me,xe,de){var ie=D.exec(xe.slice(de));return ie?(me.m=C.get(ie[0].toLowerCase()),de+ie[0].length):-1}function F(me,xe,de){var ie=N.exec(xe.slice(de));return ie?(me.m=w.get(ie[0].toLowerCase()),de+ie[0].length):-1}function X(me,xe,de){return M(me,t,xe,de)}function ee(me,xe,de){return M(me,n,xe,de)}function q(me,xe,de){return M(me,r,xe,de)}function Q(me){return c[me.getDay()]}function G(me){return s[me.getDay()]}function ne(me){return f[me.getMonth()]}function te(me){return u[me.getMonth()]}function I(me){return o[+(me.getHours()>=12)]}function H(me){return 1+~~(me.getMonth()/3)}function Y(me){return c[me.getUTCDay()]}function re(me){return s[me.getUTCDay()]}function ge(me){return f[me.getUTCMonth()]}function we(me){return u[me.getUTCMonth()]}function le(me){return o[+(me.getUTCHours()>=12)]}function ye(me){return 1+~~(me.getUTCMonth()/3)}return{format:function(me){var xe=T(me+="",j);return xe.toString=function(){return me},xe},parse:function(me){var xe=R(me+="",!1);return xe.toString=function(){return me},xe},utcFormat:function(me){var xe=T(me+="",P);return xe.toString=function(){return me},xe},utcParse:function(me){var xe=R(me+="",!0);return xe.toString=function(){return me},xe}}}var V6={"-":"",_:" ",0:"0"},Wn=/^\s*\d+/,hpe=/^%/,ppe=/[\\^$*+?|[\]().{}]/g;function jt(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 gpe(e){return e.replace(ppe,"\\$&")}function mh(e){return new RegExp("^(?:"+e.map(gpe).join("|")+")","i")}function hh(e){return new Map(e.map((t,n)=>[t.toLowerCase(),n]))}function vpe(e,t,n){var r=Wn.exec(t.slice(n,n+1));return r?(e.w=+r[0],n+r[0].length):-1}function bpe(e,t,n){var r=Wn.exec(t.slice(n,n+1));return r?(e.u=+r[0],n+r[0].length):-1}function ype(e,t,n){var r=Wn.exec(t.slice(n,n+2));return r?(e.U=+r[0],n+r[0].length):-1}function xpe(e,t,n){var r=Wn.exec(t.slice(n,n+2));return r?(e.V=+r[0],n+r[0].length):-1}function Npe(e,t,n){var r=Wn.exec(t.slice(n,n+2));return r?(e.W=+r[0],n+r[0].length):-1}function $6(e,t,n){var r=Wn.exec(t.slice(n,n+4));return r?(e.y=+r[0],n+r[0].length):-1}function B6(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 wpe(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 Epe(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 Spe(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 z6(e,t,n){var r=Wn.exec(t.slice(n,n+2));return r?(e.d=+r[0],n+r[0].length):-1}function Ape(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 U6(e,t,n){var r=Wn.exec(t.slice(n,n+2));return r?(e.H=+r[0],n+r[0].length):-1}function Ope(e,t,n){var r=Wn.exec(t.slice(n,n+2));return r?(e.M=+r[0],n+r[0].length):-1}function Dpe(e,t,n){var r=Wn.exec(t.slice(n,n+2));return r?(e.S=+r[0],n+r[0].length):-1}function Cpe(e,t,n){var r=Wn.exec(t.slice(n,n+3));return r?(e.L=+r[0],n+r[0].length):-1}function Tpe(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 _pe(e,t,n){var r=hpe.exec(t.slice(n,n+1));return r?n+r[0].length:-1}function jpe(e,t,n){var r=Wn.exec(t.slice(n));return r?(e.Q=+r[0],n+r[0].length):-1}function Rpe(e,t,n){var r=Wn.exec(t.slice(n));return r?(e.s=+r[0],n+r[0].length):-1}function q6(e,t){return jt(e.getDate(),t,2)}function Ppe(e,t){return jt(e.getHours(),t,2)}function Mpe(e,t){return jt(e.getHours()%12||12,t,2)}function kpe(e,t){return jt(1+Yp.count(ls(e),e),t,3)}function qH(e,t){return jt(e.getMilliseconds(),t,3)}function Ipe(e,t){return qH(e,t)+"000"}function Lpe(e,t){return jt(e.getMonth()+1,t,2)}function Vpe(e,t){return jt(e.getMinutes(),t,2)}function $pe(e,t){return jt(e.getSeconds(),t,2)}function Bpe(e){var t=e.getDay();return t===0?7:t}function zpe(e,t){return jt(Jx.count(ls(e)-1,e),t,2)}function HH(e){var t=e.getDay();return t>=4||t===0?Ud(e):Ud.ceil(e)}function Upe(e,t){return e=HH(e),jt(Ud.count(ls(e),e)+(ls(e).getDay()===4),t,2)}function qpe(e){return e.getDay()}function Hpe(e,t){return jt(jy.count(ls(e)-1,e),t,2)}function Fpe(e,t){return jt(e.getFullYear()%100,t,2)}function Kpe(e,t){return e=HH(e),jt(e.getFullYear()%100,t,2)}function Gpe(e,t){return jt(e.getFullYear()%1e4,t,4)}function Ype(e,t){var n=e.getDay();return e=n>=4||n===0?Ud(e):Ud.ceil(e),jt(e.getFullYear()%1e4,t,4)}function Qpe(e){var t=e.getTimezoneOffset();return(t>0?"-":(t*=-1,"+"))+jt(t/60|0,"0",2)+jt(t%60,"0",2)}function H6(e,t){return jt(e.getUTCDate(),t,2)}function Xpe(e,t){return jt(e.getUTCHours(),t,2)}function Wpe(e,t){return jt(e.getUTCHours()%12||12,t,2)}function Zpe(e,t){return jt(1+Zx.count(cs(e),e),t,3)}function FH(e,t){return jt(e.getUTCMilliseconds(),t,3)}function Jpe(e,t){return FH(e,t)+"000"}function ege(e,t){return jt(e.getUTCMonth()+1,t,2)}function tge(e,t){return jt(e.getUTCMinutes(),t,2)}function nge(e,t){return jt(e.getUTCSeconds(),t,2)}function rge(e){var t=e.getUTCDay();return t===0?7:t}function age(e,t){return jt(e0.count(cs(e)-1,e),t,2)}function KH(e){var t=e.getUTCDay();return t>=4||t===0?qd(e):qd.ceil(e)}function ige(e,t){return e=KH(e),jt(qd.count(cs(e),e)+(cs(e).getUTCDay()===4),t,2)}function oge(e){return e.getUTCDay()}function sge(e,t){return jt(Ry.count(cs(e)-1,e),t,2)}function lge(e,t){return jt(e.getUTCFullYear()%100,t,2)}function cge(e,t){return e=KH(e),jt(e.getUTCFullYear()%100,t,2)}function uge(e,t){return jt(e.getUTCFullYear()%1e4,t,4)}function dge(e,t){var n=e.getUTCDay();return e=n>=4||n===0?qd(e):qd.ceil(e),jt(e.getUTCFullYear()%1e4,t,4)}function fge(){return"+0000"}function F6(){return"%"}function K6(e){return+e}function G6(e){return Math.floor(+e/1e3)}var vd,GH,YH;mge({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 mge(e){return vd=mpe(e),GH=vd.format,vd.parse,YH=vd.utcFormat,vd.utcParse,vd}function hge(e){return new Date(e)}function pge(e){return e instanceof Date?+e:+new Date(+e)}function Vj(e,t,n,r,o,s,c,u,f,m){var g=Sj(),h=g.invert,y=g.domain,x=m(".%L"),S=m(":%S"),N=m("%I:%M"),w=m("%I %p"),D=m("%a %d"),C=m("%b %d"),j=m("%B"),P=m("%Y");function A(T){return(f(T)<T?x:u(T)<T?S:c(T)<T?N:s(T)<T?w:r(T)<T?o(T)<T?D:C:n(T)<T?j:P)(T)}return g.invert=function(T){return new Date(h(T))},g.domain=function(T){return arguments.length?y(Array.from(T,pge)):y().map(hge)},g.ticks=function(T){var R=y();return e(R[0],R[R.length-1],T??10)},g.tickFormat=function(T,R){return R==null?A:m(R)},g.nice=function(T){var R=y();return(!T||typeof T.range!="function")&&(T=t(R[0],R[R.length-1],T??10)),T?y(MH(R,T)):g},g.copy=function(){return Gp(g,Vj(e,t,n,r,o,s,c,u,f,m))},g}function gge(){return Ha.apply(Vj(dpe,fpe,ls,Ij,Jx,Yp,Mj,Rj,Sc,GH).domain([new Date(2e3,0,1),new Date(2e3,0,2)]),arguments)}function vge(){return Ha.apply(Vj(cpe,upe,cs,Lj,e0,Zx,kj,Pj,Sc,YH).domain([Date.UTC(2e3,0,1),Date.UTC(2e3,0,2)]),arguments)}function t0(){var e=0,t=1,n,r,o,s,c=Pr,u=!1,f;function m(h){return h==null||isNaN(h=+h)?f:c(o===0?.5:(h=(s(h)-n)*o,u?Math.max(0,Math.min(1,h)):h))}m.domain=function(h){return arguments.length?([e,t]=h,n=s(e=+e),r=s(t=+t),o=n===r?0:1/(r-n),m):[e,t]},m.clamp=function(h){return arguments.length?(u=!!h,m):u},m.interpolator=function(h){return arguments.length?(c=h,m):c};function g(h){return function(y){var x,S;return arguments.length?([x,S]=y,c=h(x,S),m):[c(0),c(1)]}}return m.range=g(Sf),m.rangeRound=g(Ej),m.unknown=function(h){return arguments.length?(f=h,m):f},function(h){return s=h,n=h(e),r=h(t),o=n===r?0:1/(r-n),m}}function wl(e,t){return t.domain(e.domain()).interpolator(e.interpolator()).clamp(e.clamp()).unknown(e.unknown())}function QH(){var e=Nl(t0()(Pr));return e.copy=function(){return wl(e,QH())},hs.apply(e,arguments)}function XH(){var e=Dj(t0()).domain([1,10]);return e.copy=function(){return wl(e,XH()).base(e.base())},hs.apply(e,arguments)}function WH(){var e=Cj(t0());return e.copy=function(){return wl(e,WH()).constant(e.constant())},hs.apply(e,arguments)}function $j(){var e=Tj(t0());return e.copy=function(){return wl(e,$j()).exponent(e.exponent())},hs.apply(e,arguments)}function bge(){return $j.apply(null,arguments).exponent(.5)}function ZH(){var e=[],t=Pr;function n(r){if(r!=null&&!isNaN(r=+r))return t((Fp(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(ml),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)=>ahe(e,s/r))},n.copy=function(){return ZH(t).domain(e)},hs.apply(n,arguments)}function n0(){var e=0,t=.5,n=1,r=1,o,s,c,u,f,m=Pr,g,h=!1,y;function x(N){return isNaN(N=+N)?y:(N=.5+((N=+g(N))-s)*(r*N<r*s?u:f),m(h?Math.max(0,Math.min(1,N)):N))}x.domain=function(N){return arguments.length?([e,t,n]=N,o=g(e=+e),s=g(t=+t),c=g(n=+n),u=o===s?0:.5/(s-o),f=s===c?0:.5/(c-s),r=s<o?-1:1,x):[e,t,n]},x.clamp=function(N){return arguments.length?(h=!!N,x):h},x.interpolator=function(N){return arguments.length?(m=N,x):m};function S(N){return function(w){var D,C,j;return arguments.length?([D,C,j]=w,m=_he(N,[D,C,j]),x):[m(0),m(.5),m(1)]}}return x.range=S(Sf),x.rangeRound=S(Ej),x.unknown=function(N){return arguments.length?(y=N,x):y},function(N){return g=N,o=N(e),s=N(t),c=N(n),u=o===s?0:.5/(s-o),f=s===c?0:.5/(c-s),r=s<o?-1:1,x}}function JH(){var e=Nl(n0()(Pr));return e.copy=function(){return wl(e,JH())},hs.apply(e,arguments)}function eF(){var e=Dj(n0()).domain([.1,1,10]);return e.copy=function(){return wl(e,eF()).base(e.base())},hs.apply(e,arguments)}function tF(){var e=Cj(n0());return e.copy=function(){return wl(e,tF()).constant(e.constant())},hs.apply(e,arguments)}function Bj(){var e=Tj(n0());return e.copy=function(){return wl(e,Bj()).exponent(e.exponent())},hs.apply(e,arguments)}function yge(){return Bj.apply(null,arguments).exponent(.5)}const Y6=Object.freeze(Object.defineProperty({__proto__:null,scaleBand:rp,scaleDiverging:JH,scaleDivergingLog:eF,scaleDivergingPow:Bj,scaleDivergingSqrt:yge,scaleDivergingSymlog:tF,scaleIdentity:PH,scaleImplicit:aT,scaleLinear:Ty,scaleLog:kH,scaleOrdinal:xj,scalePoint:jh,scalePow:_j,scaleQuantile:VH,scaleQuantize:$H,scaleRadial:LH,scaleSequential:QH,scaleSequentialLog:XH,scaleSequentialPow:$j,scaleSequentialQuantile:ZH,scaleSequentialSqrt:bge,scaleSequentialSymlog:WH,scaleSqrt:Jhe,scaleSymlog:IH,scaleThreshold:BH,scaleTime:gge,scaleUtc:vge,tickFormat:RH},Symbol.toStringTag,{value:"Module"}));var JO,Q6;function r0(){if(Q6)return JO;Q6=1;var e=yf();function t(n,r,o){for(var s=-1,c=n.length;++s<c;){var u=n[s],f=r(u);if(f!=null&&(m===void 0?f===f&&!e(f):o(f,m)))var m=f,g=u}return g}return JO=t,JO}var eD,X6;function nF(){if(X6)return eD;X6=1;function e(t,n){return t>n}return eD=e,eD}var tD,W6;function xge(){if(W6)return tD;W6=1;var e=r0(),t=nF(),n=Ef();function r(o){return o&&o.length?e(o,n,t):void 0}return tD=r,tD}var Nge=xge();const ul=Bt(Nge);var nD,Z6;function rF(){if(Z6)return nD;Z6=1;function e(t,n){return t<n}return nD=e,nD}var rD,J6;function wge(){if(J6)return rD;J6=1;var e=r0(),t=rF(),n=Ef();function r(o){return o&&o.length?e(o,n,t):void 0}return rD=r,rD}var Ege=wge();const a0=Bt(Ege);var aD,eB;function Sge(){if(eB)return aD;eB=1;var e=nj(),t=vo(),n=dH(),r=Gr();function o(s,c){var u=r(s)?e:n;return u(s,t(c,3))}return aD=o,aD}var iD,tB;function Age(){if(tB)return iD;tB=1;var e=cH(),t=Sge();function n(r,o){return e(t(r,o),1)}return iD=n,iD}var Oge=Age();const Dge=Bt(Oge);var oD,nB;function Cge(){if(nB)return oD;nB=1;var e=pj();function t(n,r){return e(n,r)}return oD=t,oD}var Tge=Cge();const Hd=Bt(Tge);var Af=1e9,_ge={precision:20,rounding:4,toExpNeg:-7,toExpPos:21,LN10:"2.302585092994045684017991454684364207601101488628772976033327900967572609677352480235997205089598298341967784042286"},Uj,ln=!0,qa="[DecimalError] ",Tc=qa+"Invalid argument: ",zj=qa+"Exponent out of range: ",Of=Math.floor,bc=Math.pow,jge=/^(\d+(\.\d*)?|\.\d+)(e[+-]?\d+)?$/i,ma,Qn=1e7,rn=7,aF=9007199254740991,Py=Of(aF/rn),Pe={};Pe.absoluteValue=Pe.abs=function(){var e=new this.constructor(this);return e.s&&(e.s=1),e};Pe.comparedTo=Pe.cmp=function(e){var t,n,r,o,s=this;if(e=new s.constructor(e),s.s!==e.s)return s.s||-e.s;if(s.e!==e.e)return s.e>e.e^s.s<0?1:-1;for(r=s.d.length,o=e.d.length,t=0,n=r<o?r:o;t<n;++t)if(s.d[t]!==e.d[t])return s.d[t]>e.d[t]^s.s<0?1:-1;return r===o?0:r>o^s.s<0?1:-1};Pe.decimalPlaces=Pe.dp=function(){var e=this,t=e.d.length-1,n=(t-e.e)*rn;if(t=e.d[t],t)for(;t%10==0;t/=10)n--;return n<0?0:n};Pe.dividedBy=Pe.div=function(e){return rs(this,new this.constructor(e))};Pe.dividedToIntegerBy=Pe.idiv=function(e){var t=this,n=t.constructor;return Yt(rs(t,new n(e),0,1),n.precision)};Pe.equals=Pe.eq=function(e){return!this.cmp(e)};Pe.exponent=function(){return _n(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(ma))throw Error(qa+"NaN");if(n.s<1)throw Error(qa+(n.s?"NaN":"-Infinity"));return n.eq(ma)?new r(0):(ln=!1,t=rs(lp(n,s),lp(e,s),s),ln=!0,Yt(t,o))};Pe.minus=Pe.sub=function(e){var t=this;return e=new t.constructor(e),t.s==e.s?sF(t,e):iF(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(qa+"NaN");return n.s?(ln=!1,t=rs(n,e,0,1).times(e),ln=!0,n.minus(t)):Yt(new r(n),o)};Pe.naturalExponential=Pe.exp=function(){return oF(this)};Pe.naturalLogarithm=Pe.ln=function(){return lp(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?iF(t,e):sF(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(Tc+e);if(t=_n(o)+1,r=o.d.length-1,n=r*rn+1,r=o.d[r],r){for(;r%10==0;r/=10)n--;for(r=o.d[0];r>=10;r/=10)n++}return e&&t>n?t:n};Pe.squareRoot=Pe.sqrt=function(){var e,t,n,r,o,s,c,u=this,f=u.constructor;if(u.s<1){if(!u.s)return new f(0);throw Error(qa+"NaN")}for(e=_n(u),ln=!1,o=Math.sqrt(+u),o==0||o==1/0?(t=to(u.d),(t.length+e)%2==0&&(t+="0"),o=Math.sqrt(t),e=Of((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=c=n+3;;)if(s=r,r=s.plus(rs(u,s,c+2)).times(.5),to(s.d).slice(0,c)===(t=to(r.d)).slice(0,c)){if(t=t.slice(c-3,c+1),o==c&&t=="4999"){if(Yt(s,n+1,0),s.times(s).eq(u)){r=s;break}}else if(t!="9999")break;c+=4}return ln=!0,Yt(r,n)};Pe.times=Pe.mul=function(e){var t,n,r,o,s,c,u,f,m,g=this,h=g.constructor,y=g.d,x=(e=new h(e)).d;if(!g.s||!e.s)return new h(0);for(e.s*=g.s,n=g.e+e.e,f=y.length,m=x.length,f<m&&(s=y,y=x,x=s,c=f,f=m,m=c),s=[],c=f+m,r=c;r--;)s.push(0);for(r=m;--r>=0;){for(t=0,o=f+r;o>r;)u=s[o]+x[r]*y[o-r-1]+t,s[o--]=u%Qn|0,t=u/Qn|0;s[o]=(s[o]+t)%Qn|0}for(;!s[--c];)s.pop();return t?++n:s.shift(),e.d=s,e.e=n,ln?Yt(e,h.precision):e};Pe.toDecimalPlaces=Pe.todp=function(e,t){var n=this,r=n.constructor;return n=new r(n),e===void 0?n:(uo(e,0,Af),t===void 0?t=r.rounding:uo(t,0,8),Yt(n,e+_n(n)+1,t))};Pe.toExponential=function(e,t){var n,r=this,o=r.constructor;return e===void 0?n=Kc(r,!0):(uo(e,0,Af),t===void 0?t=o.rounding:uo(t,0,8),r=Yt(new o(r),e+1,t),n=Kc(r,!0,e+1)),n};Pe.toFixed=function(e,t){var n,r,o=this,s=o.constructor;return e===void 0?Kc(o):(uo(e,0,Af),t===void 0?t=s.rounding:uo(t,0,8),r=Yt(new s(o),e+_n(o)+1,t),n=Kc(r.abs(),!1,e+_n(r)+1),o.isneg()&&!o.isZero()?"-"+n:n)};Pe.toInteger=Pe.toint=function(){var e=this,t=e.constructor;return Yt(new t(e),_n(e)+1,t.rounding)};Pe.toNumber=function(){return+this};Pe.toPower=Pe.pow=function(e){var t,n,r,o,s,c,u=this,f=u.constructor,m=12,g=+(e=new f(e));if(!e.s)return new f(ma);if(u=new f(u),!u.s){if(e.s<1)throw Error(qa+"Infinity");return u}if(u.eq(ma))return u;if(r=f.precision,e.eq(ma))return Yt(u,r);if(t=e.e,n=e.d.length-1,c=t>=n,s=u.s,c){if((n=g<0?-g:g)<=aF){for(o=new f(ma),t=Math.ceil(r/rn+4),ln=!1;n%2&&(o=o.times(u),aB(o.d,t)),n=Of(n/2),n!==0;)u=u.times(u),aB(u.d,t);return ln=!0,e.s<0?new f(ma).div(o):Yt(o,r)}}else if(s<0)throw Error(qa+"NaN");return s=s<0&&e.d[Math.max(t,n)]&1?-1:1,u.s=1,ln=!1,o=e.times(lp(u,r+m)),ln=!0,o=oF(o),o.s=s,o};Pe.toPrecision=function(e,t){var n,r,o=this,s=o.constructor;return e===void 0?(n=_n(o),r=Kc(o,n<=s.toExpNeg||n>=s.toExpPos)):(uo(e,1,Af),t===void 0?t=s.rounding:uo(t,0,8),o=Yt(new s(o),e,t),n=_n(o),r=Kc(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):(uo(e,1,Af),t===void 0?t=r.rounding:uo(t,0,8)),Yt(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=_n(e),n=e.constructor;return Kc(e,t<=n.toExpNeg||t>=n.toExpPos)};function iF(e,t){var n,r,o,s,c,u,f,m,g=e.constructor,h=g.precision;if(!e.s||!t.s)return t.s||(t=new g(e)),ln?Yt(t,h):t;if(f=e.d,m=t.d,c=e.e,o=t.e,f=f.slice(),s=c-o,s){for(s<0?(r=f,s=-s,u=m.length):(r=m,o=c,u=f.length),c=Math.ceil(h/rn),u=c>u?c+1:u+1,s>u&&(s=u,r.length=1),r.reverse();s--;)r.push(0);r.reverse()}for(u=f.length,s=m.length,u-s<0&&(s=u,r=m,m=f,f=r),n=0;s;)n=(f[--s]=f[s]+m[s]+n)/Qn|0,f[s]%=Qn;for(n&&(f.unshift(n),++o),u=f.length;f[--u]==0;)f.pop();return t.d=f,t.e=o,ln?Yt(t,h):t}function uo(e,t,n){if(e!==~~e||e<t||e>n)throw Error(Tc+e)}function to(e){var t,n,r,o=e.length-1,s="",c=e[0];if(o>0){for(s+=c,t=1;t<o;t++)r=e[t]+"",n=rn-r.length,n&&(s+=sl(n)),s+=r;c=e[t],r=c+"",n=rn-r.length,n&&(s+=sl(n))}else if(c===0)return"0";for(;c%10===0;)c/=10;return s+c}var rs=(function(){function e(r,o){var s,c=0,u=r.length;for(r=r.slice();u--;)s=r[u]*o+c,r[u]=s%Qn|0,c=s/Qn|0;return c&&r.unshift(c),r}function t(r,o,s,c){var u,f;if(s!=c)f=s>c?1:-1;else for(u=f=0;u<s;u++)if(r[u]!=o[u]){f=r[u]>o[u]?1:-1;break}return f}function n(r,o,s){for(var c=0;s--;)r[s]-=c,c=r[s]<o[s]?1:0,r[s]=c*Qn+r[s]-o[s];for(;!r[0]&&r.length>1;)r.shift()}return function(r,o,s,c){var u,f,m,g,h,y,x,S,N,w,D,C,j,P,A,T,R,M,$=r.constructor,z=r.s==o.s?1:-1,U=r.d,V=o.d;if(!r.s)return new $(r);if(!o.s)throw Error(qa+"Division by zero");for(f=r.e-o.e,R=V.length,A=U.length,x=new $(z),S=x.d=[],m=0;V[m]==(U[m]||0);)++m;if(V[m]>(U[m]||0)&&--f,s==null?C=s=$.precision:c?C=s+(_n(r)-_n(o))+1:C=s,C<0)return new $(0);if(C=C/rn+2|0,m=0,R==1)for(g=0,V=V[0],C++;(m<A||g)&&C--;m++)j=g*Qn+(U[m]||0),S[m]=j/V|0,g=j%V|0;else{for(g=Qn/(V[0]+1)|0,g>1&&(V=e(V,g),U=e(U,g),R=V.length,A=U.length),P=R,N=U.slice(0,R),w=N.length;w<R;)N[w++]=0;M=V.slice(),M.unshift(0),T=V[0],V[1]>=Qn/2&&++T;do g=0,u=t(V,N,R,w),u<0?(D=N[0],R!=w&&(D=D*Qn+(N[1]||0)),g=D/T|0,g>1?(g>=Qn&&(g=Qn-1),h=e(V,g),y=h.length,w=N.length,u=t(h,N,y,w),u==1&&(g--,n(h,R<y?M:V,y))):(g==0&&(u=g=1),h=V.slice()),y=h.length,y<w&&h.unshift(0),n(N,h,w),u==-1&&(w=N.length,u=t(V,N,R,w),u<1&&(g++,n(N,R<w?M:V,w))),w=N.length):u===0&&(g++,N=[0]),S[m++]=g,u&&N[0]?N[w++]=U[P]||0:(N=[U[P]],w=1);while((P++<A||N[0]!==void 0)&&C--)}return S[0]||S.shift(),x.e=f,Yt(x,c?s+_n(x)+1:s)}})();function oF(e,t){var n,r,o,s,c,u,f=0,m=0,g=e.constructor,h=g.precision;if(_n(e)>16)throw Error(zj+_n(e));if(!e.s)return new g(ma);for(ln=!1,u=h,c=new g(.03125);e.abs().gte(.1);)e=e.times(c),m+=5;for(r=Math.log(bc(2,m))/Math.LN10*2+5|0,u+=r,n=o=s=new g(ma),g.precision=u;;){if(o=Yt(o.times(e),u),n=n.times(++f),c=s.plus(rs(o,n,u)),to(c.d).slice(0,u)===to(s.d).slice(0,u)){for(;m--;)s=Yt(s.times(s),u);return g.precision=h,t==null?(ln=!0,Yt(s,h)):s}s=c}}function _n(e){for(var t=e.e*rn,n=e.d[0];n>=10;n/=10)t++;return t}function sD(e,t,n){if(t>e.LN10.sd())throw ln=!0,n&&(e.precision=n),Error(qa+"LN10 precision limit exceeded");return Yt(new e(e.LN10),t)}function sl(e){for(var t="";e--;)t+="0";return t}function lp(e,t){var n,r,o,s,c,u,f,m,g,h=1,y=10,x=e,S=x.d,N=x.constructor,w=N.precision;if(x.s<1)throw Error(qa+(x.s?"NaN":"-Infinity"));if(x.eq(ma))return new N(0);if(t==null?(ln=!1,m=w):m=t,x.eq(10))return t==null&&(ln=!0),sD(N,m);if(m+=y,N.precision=m,n=to(S),r=n.charAt(0),s=_n(x),Math.abs(s)<15e14){for(;r<7&&r!=1||r==1&&n.charAt(1)>3;)x=x.times(e),n=to(x.d),r=n.charAt(0),h++;s=_n(x),r>1?(x=new N("0."+n),s++):x=new N(r+"."+n.slice(1))}else return f=sD(N,m+2,w).times(s+""),x=lp(new N(r+"."+n.slice(1)),m-y).plus(f),N.precision=w,t==null?(ln=!0,Yt(x,w)):x;for(u=c=x=rs(x.minus(ma),x.plus(ma),m),g=Yt(x.times(x),m),o=3;;){if(c=Yt(c.times(g),m),f=u.plus(rs(c,new N(o),m)),to(f.d).slice(0,m)===to(u.d).slice(0,m))return u=u.times(2),s!==0&&(u=u.plus(sD(N,m+2,w).times(s+""))),u=rs(u,new N(h),m),N.precision=w,t==null?(ln=!0,Yt(u,w)):u;u=f,o+=2}}function rB(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=Of(n/rn),e.d=[],r=(n+1)%rn,n<0&&(r+=rn),r<o){for(r&&e.d.push(+t.slice(0,r)),o-=rn;r<o;)e.d.push(+t.slice(r,r+=rn));t=t.slice(r),r=rn-t.length}else r-=o;for(;r--;)t+="0";if(e.d.push(+t),ln&&(e.e>Py||e.e<-Py))throw Error(zj+n)}else e.s=0,e.e=0,e.d=[0];return e}function Yt(e,t,n){var r,o,s,c,u,f,m,g,h=e.d;for(c=1,s=h[0];s>=10;s/=10)c++;if(r=t-c,r<0)r+=rn,o=t,m=h[g=0];else{if(g=Math.ceil((r+1)/rn),s=h.length,g>=s)return e;for(m=s=h[g],c=1;s>=10;s/=10)c++;r%=rn,o=r-rn+c}if(n!==void 0&&(s=bc(10,c-o-1),u=m/s%10|0,f=t<0||h[g+1]!==void 0||m%s,f=n<4?(u||f)&&(n==0||n==(e.s<0?3:2)):u>5||u==5&&(n==4||f||n==6&&(r>0?o>0?m/bc(10,c-o):0:h[g-1])%10&1||n==(e.s<0?8:7))),t<1||!h[0])return f?(s=_n(e),h.length=1,t=t-s-1,h[0]=bc(10,(rn-t%rn)%rn),e.e=Of(-t/rn)||0):(h.length=1,h[0]=e.e=e.s=0),e;if(r==0?(h.length=g,s=1,g--):(h.length=g+1,s=bc(10,rn-r),h[g]=o>0?(m/bc(10,c-o)%bc(10,o)|0)*s:0),f)for(;;)if(g==0){(h[0]+=s)==Qn&&(h[0]=1,++e.e);break}else{if(h[g]+=s,h[g]!=Qn)break;h[g--]=0,s=1}for(r=h.length;h[--r]===0;)h.pop();if(ln&&(e.e>Py||e.e<-Py))throw Error(zj+_n(e));return e}function sF(e,t){var n,r,o,s,c,u,f,m,g,h,y=e.constructor,x=y.precision;if(!e.s||!t.s)return t.s?t.s=-t.s:t=new y(e),ln?Yt(t,x):t;if(f=e.d,h=t.d,r=t.e,m=e.e,f=f.slice(),c=m-r,c){for(g=c<0,g?(n=f,c=-c,u=h.length):(n=h,r=m,u=f.length),o=Math.max(Math.ceil(x/rn),u)+2,c>o&&(c=o,n.length=1),n.reverse(),o=c;o--;)n.push(0);n.reverse()}else{for(o=f.length,u=h.length,g=o<u,g&&(u=o),o=0;o<u;o++)if(f[o]!=h[o]){g=f[o]<h[o];break}c=0}for(g&&(n=f,f=h,h=n,t.s=-t.s),u=f.length,o=h.length-u;o>0;--o)f[u++]=0;for(o=h.length;o>c;){if(f[--o]<h[o]){for(s=o;s&&f[--s]===0;)f[s]=Qn-1;--f[s],f[o]+=Qn}f[o]-=h[o]}for(;f[--u]===0;)f.pop();for(;f[0]===0;f.shift())--r;return f[0]?(t.d=f,t.e=r,ln?Yt(t,x):t):new y(0)}function Kc(e,t,n){var r,o=_n(e),s=to(e.d),c=s.length;return t?(n&&(r=n-c)>0?s=s.charAt(0)+"."+s.slice(1)+sl(r):c>1&&(s=s.charAt(0)+"."+s.slice(1)),s=s+(o<0?"e":"e+")+o):o<0?(s="0."+sl(-o-1)+s,n&&(r=n-c)>0&&(s+=sl(r))):o>=c?(s+=sl(o+1-c),n&&(r=n-o-1)>0&&(s=s+"."+sl(r))):((r=o+1)<c&&(s=s.slice(0,r)+"."+s.slice(r)),n&&(r=n-c)>0&&(o+1===c&&(s+="."),s+=sl(r))),e.s<0?"-"+s:s}function aB(e,t){if(e.length>t)return e.length=t,!0}function lF(e){var t,n,r;function o(s){var c=this;if(!(c instanceof o))return new o(s);if(c.constructor=o,s instanceof o){c.s=s.s,c.e=s.e,c.d=(s=s.d)?s.slice():s;return}if(typeof s=="number"){if(s*0!==0)throw Error(Tc+s);if(s>0)c.s=1;else if(s<0)s=-s,c.s=-1;else{c.s=0,c.e=0,c.d=[0];return}if(s===~~s&&s<1e7){c.e=0,c.d=[s];return}return rB(c,s.toString())}else if(typeof s!="string")throw Error(Tc+s);if(s.charCodeAt(0)===45?(s=s.slice(1),c.s=-1):c.s=1,jge.test(s))rB(c,s);else throw Error(Tc+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=lF,o.config=o.set=Rge,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 Rge(e){if(!e||typeof e!="object")throw Error(qa+"Object expected");var t,n,r,o=["precision",1,Af,"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(Of(r)===r&&r>=o[t+1]&&r<=o[t+2])this[n]=r;else throw Error(Tc+n+": "+r);if((r=e[n="LN10"])!==void 0)if(r==Math.LN10)this[n]=new this(r);else throw Error(Tc+n+": "+r);return this}var Uj=lF(_ge);ma=new Uj(1);const Ft=Uj;function Pge(e){return Lge(e)||Ige(e)||kge(e)||Mge()}function Mge(){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 kge(e,t){if(e){if(typeof e=="string")return lT(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 lT(e,t)}}function Ige(e){if(typeof Symbol<"u"&&Symbol.iterator in Object(e))return Array.from(e)}function Lge(e){if(Array.isArray(e))return lT(e)}function lT(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 Vge=function(t){return t},cF={},uF=function(t){return t===cF},iB=function(t){return function n(){return arguments.length===0||arguments.length===1&&uF(arguments.length<=0?void 0:arguments[0])?n:t.apply(void 0,arguments)}},$ge=function e(t,n){return t===1?n:iB(function(){for(var r=arguments.length,o=new Array(r),s=0;s<r;s++)o[s]=arguments[s];var c=o.filter(function(u){return u!==cF}).length;return c>=t?n.apply(void 0,o):e(t-c,iB(function(){for(var u=arguments.length,f=new Array(u),m=0;m<u;m++)f[m]=arguments[m];var g=o.map(function(h){return uF(h)?f.shift():h});return n.apply(void 0,Pge(g).concat(f))}))})},i0=function(t){return $ge(t.length,t)},cT=function(t,n){for(var r=[],o=t;o<n;++o)r[o-t]=o;return r},Bge=i0(function(e,t){return Array.isArray(t)?t.map(e):Object.keys(t).map(function(n){return t[n]}).map(e)}),zge=function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];if(!n.length)return Vge;var o=n.reverse(),s=o[0],c=o.slice(1);return function(){return c.reduce(function(u,f){return f(u)},s.apply(void 0,arguments))}},uT=function(t){return Array.isArray(t)?t.reverse():t.split("").reverse.join("")},dF=function(t){var n=null,r=null;return function(){for(var o=arguments.length,s=new Array(o),c=0;c<o;c++)s[c]=arguments[c];return n&&s.every(function(u,f){return u===n[f]})||(n=s,r=t.apply(void 0,s)),r}};function Uge(e){var t;return e===0?t=1:t=Math.floor(new Ft(e).abs().log(10).toNumber())+1,t}function qge(e,t,n){for(var r=new Ft(e),o=0,s=[];r.lt(t)&&o<1e5;)s.push(r.toNumber()),r=r.add(n),o++;return s}var Hge=i0(function(e,t,n){var r=+e,o=+t;return r+n*(o-r)}),Fge=i0(function(e,t,n){var r=t-+e;return r=r||1/0,(n-e)/r}),Kge=i0(function(e,t,n){var r=t-+e;return r=r||1/0,Math.max(0,Math.min(1,(n-e)/r))});const o0={rangeStep:qge,getDigitCount:Uge,interpolateNumber:Hge,uninterpolateNumber:Fge,uninterpolateTruncation:Kge};function dT(e){return Qge(e)||Yge(e)||fF(e)||Gge()}function Gge(){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 Yge(e){if(typeof Symbol<"u"&&Symbol.iterator in Object(e))return Array.from(e)}function Qge(e){if(Array.isArray(e))return fT(e)}function cp(e,t){return Zge(e)||Wge(e,t)||fF(e,t)||Xge()}function Xge(){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 fF(e,t){if(e){if(typeof e=="string")return fT(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 fT(e,t)}}function fT(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 Wge(e,t){if(!(typeof Symbol>"u"||!(Symbol.iterator in Object(e)))){var n=[],r=!0,o=!1,s=void 0;try{for(var c=e[Symbol.iterator](),u;!(r=(u=c.next()).done)&&(n.push(u.value),!(t&&n.length===t));r=!0);}catch(f){o=!0,s=f}finally{try{!r&&c.return!=null&&c.return()}finally{if(o)throw s}}return n}}function Zge(e){if(Array.isArray(e))return e}function mF(e){var t=cp(e,2),n=t[0],r=t[1],o=n,s=r;return n>r&&(o=r,s=n),[o,s]}function hF(e,t,n){if(e.lte(0))return new Ft(0);var r=o0.getDigitCount(e.toNumber()),o=new Ft(10).pow(r),s=e.div(o),c=r!==1?.05:.1,u=new Ft(Math.ceil(s.div(c).toNumber())).add(n).mul(c),f=u.mul(o);return t?f:new Ft(Math.ceil(f))}function Jge(e,t,n){var r=1,o=new Ft(e);if(!o.isint()&&n){var s=Math.abs(e);s<1?(r=new Ft(10).pow(o0.getDigitCount(e)-1),o=new Ft(Math.floor(o.div(r).toNumber())).mul(r)):s>1&&(o=new Ft(Math.floor(e)))}else e===0?o=new Ft(Math.floor((t-1)/2)):n||(o=new Ft(Math.floor(e)));var c=Math.floor((t-1)/2),u=zge(Bge(function(f){return o.add(new Ft(f-c).mul(r)).toNumber()}),cT);return u(0,t)}function pF(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 Ft(0),tickMin:new Ft(0),tickMax:new Ft(0)};var s=hF(new Ft(t).sub(e).div(n-1),r,o),c;e<=0&&t>=0?c=new Ft(0):(c=new Ft(e).add(t).div(2),c=c.sub(new Ft(c).mod(s)));var u=Math.ceil(c.sub(e).div(s).toNumber()),f=Math.ceil(new Ft(t).sub(c).div(s).toNumber()),m=u+f+1;return m>n?pF(e,t,n,r,o+1):(m<n&&(f=t>0?f+(n-m):f,u=t>0?u:u+(n-m)),{step:s,tickMin:c.sub(new Ft(u).mul(s)),tickMax:c.add(new Ft(f).mul(s))})}function eve(e){var t=cp(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,c=Math.max(o,2),u=mF([n,r]),f=cp(u,2),m=f[0],g=f[1];if(m===-1/0||g===1/0){var h=g===1/0?[m].concat(dT(cT(0,o-1).map(function(){return 1/0}))):[].concat(dT(cT(0,o-1).map(function(){return-1/0})),[g]);return n>r?uT(h):h}if(m===g)return Jge(m,o,s);var y=pF(m,g,c,s),x=y.step,S=y.tickMin,N=y.tickMax,w=o0.rangeStep(S,N.add(new Ft(.1).mul(x)),x);return n>r?uT(w):w}function tve(e,t){var n=cp(e,2),r=n[0],o=n[1],s=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0,c=mF([r,o]),u=cp(c,2),f=u[0],m=u[1];if(f===-1/0||m===1/0)return[r,o];if(f===m)return[f];var g=Math.max(t,2),h=hF(new Ft(m).sub(f).div(g-1),s,0),y=[].concat(dT(o0.rangeStep(new Ft(f),new Ft(m).sub(new Ft(.99).mul(h)),h)),[m]);return r>o?uT(y):y}var nve=dF(eve),rve=dF(tve),oB="Invariant failed";function Gc(e,t){var n=typeof t=="function"?t():t,r=n?"".concat(oB,": ").concat(n):oB;throw new Error(r)}var ave=["offset","layout","width","dataKey","data","dataPointFormatter","xAxis","yAxis"];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 My(){return My=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},My.apply(this,arguments)}function ive(e,t){return cve(e)||lve(e,t)||sve(e,t)||ove()}function ove(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
||
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function sve(e,t){if(e){if(typeof e=="string")return sB(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 sB(e,t)}}function sB(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 lve(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r,o,s,c,u=[],f=!0,m=!1;try{if(s=(n=n.call(e)).next,t!==0)for(;!(f=(r=s.call(n)).done)&&(u.push(r.value),u.length!==t);f=!0);}catch(g){m=!0,o=g}finally{try{if(!f&&n.return!=null&&(c=n.return(),Object(c)!==c))return}finally{if(m)throw o}}return u}}function cve(e){if(Array.isArray(e))return e}function uve(e,t){if(e==null)return{};var n=dve(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 dve(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 fve(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function mve(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,bF(r.key),r)}}function hve(e,t,n){return t&&mve(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function pve(e,t,n){return t=ky(t),gve(e,gF()?Reflect.construct(t,n||[],ky(e).constructor):t.apply(e,n))}function gve(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 vve(e)}function vve(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function gF(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(gF=function(){return!!e})()}function ky(e){return ky=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},ky(e)}function bve(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&&mT(e,t)}function mT(e,t){return mT=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,o){return r.__proto__=o,r},mT(e,t)}function vF(e,t,n){return t=bF(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function bF(e){var t=yve(e,"string");return Fd(t)=="symbol"?t:t+""}function yve(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 s0=(function(e){function t(){return fve(this,t),pve(this,t,arguments)}return bve(t,e),hve(t,[{key:"render",value:function(){var r=this.props,o=r.offset,s=r.layout,c=r.width,u=r.dataKey,f=r.data,m=r.dataPointFormatter,g=r.xAxis,h=r.yAxis,y=uve(r,ave),x=Fe(y,!1);this.props.direction==="x"&&g.type!=="number"&&Gc(!1,'ErrorBar requires Axis type property to be "number".');var S=f.map(function(N){var w=m(N,u),D=w.x,C=w.y,j=w.value,P=w.errorVal;if(!P)return null;var A=[],T,R;if(Array.isArray(P)){var M=ive(P,2);T=M[0],R=M[1]}else T=R=P;if(s==="vertical"){var $=g.scale,z=C+o,U=z+c,V=z-c,F=$(j-T),X=$(j+R);A.push({x1:X,y1:U,x2:X,y2:V}),A.push({x1:F,y1:z,x2:X,y2:z}),A.push({x1:F,y1:U,x2:F,y2:V})}else if(s==="horizontal"){var ee=h.scale,q=D+o,Q=q-c,G=q+c,ne=ee(j-T),te=ee(j+R);A.push({x1:Q,y1:te,x2:G,y2:te}),A.push({x1:q,y1:ne,x2:q,y2:te}),A.push({x1:Q,y1:ne,x2:G,y2:ne})}return K.createElement(Dt,My({className:"recharts-errorBar",key:"bar-".concat(A.map(function(I){return"".concat(I.x1,"-").concat(I.x2,"-").concat(I.y1,"-").concat(I.y2)}))},x),A.map(function(I){return K.createElement("line",My({},I,{key:"line-".concat(I.x1,"-").concat(I.x2,"-").concat(I.y1,"-").concat(I.y2)}))}))});return K.createElement(Dt,{className:"recharts-errorBars"},S)}}])})(K.Component);vF(s0,"defaultProps",{stroke:"black",strokeWidth:1.5,width:5,offset:0,layout:"horizontal"});vF(s0,"displayName","ErrorBar");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 lB(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 mc(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?lB(Object(n),!0).forEach(function(r){xve(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):lB(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function xve(e,t,n){return t=Nve(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Nve(e){var t=wve(e,"string");return up(t)=="symbol"?t:t+""}function wve(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 yF=function(t){var n=t.children,r=t.formattedGraphicalItems,o=t.legendWidth,s=t.legendContent,c=da(n,Dc);if(!c)return null;var u=Dc.defaultProps,f=u!==void 0?mc(mc({},u),c.props):{},m;return c.props&&c.props.payload?m=c.props&&c.props.payload:s==="children"?m=(r||[]).reduce(function(g,h){var y=h.item,x=h.props,S=x.sectors||x.data||[];return g.concat(S.map(function(N){return{type:c.props.iconType||y.props.legendType,value:N.name,color:N.fill,payload:N}}))},[]):m=(r||[]).map(function(g){var h=g.item,y=h.type.defaultProps,x=y!==void 0?mc(mc({},y),h.props):{},S=x.dataKey,N=x.name,w=x.legendType,D=x.hide;return{inactive:D,dataKey:S,type:f.iconType||w||"square",color:qj(h),value:N||S,payload:x}}),mc(mc(mc({},f),Dc.getWithHeight(c,o)),{},{payload:m,item:c})};function dp(e){"@babel/helpers - typeof";return dp=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},dp(e)}function cB(e){return Ove(e)||Ave(e)||Sve(e)||Eve()}function Eve(){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 Sve(e,t){if(e){if(typeof e=="string")return hT(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 hT(e,t)}}function Ave(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function Ove(e){if(Array.isArray(e))return hT(e)}function hT(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 uB(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 hn(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?uB(Object(n),!0).forEach(function(r){jd(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):uB(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function jd(e,t,n){return t=Dve(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Dve(e){var t=Cve(e,"string");return dp(t)=="symbol"?t:t+""}function Cve(e,t){if(dp(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(dp(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 ot(e)||ot(t)?n:Bn(t)?va(e,t,n):Xe(t)?t(e):n}function Rh(e,t,n,r){var o=Dge(e,function(u){return $n(u,t)});if(n==="number"){var s=o.filter(function(u){return Oe(u)||parseFloat(u)});return s.length?[a0(s),ul(s)]:[1/0,-1/0]}var c=r?o.filter(function(u){return!ot(u)}):o;return c.map(function(u){return Bn(u)||u instanceof Date?u:""})}var Tve=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,c=-1,u=(n=r?.length)!==null&&n!==void 0?n:0;if(u<=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<u;m++){var g=m>0?o[m-1].coordinate:o[u-1].coordinate,h=o[m].coordinate,y=m>=u-1?o[0].coordinate:o[m+1].coordinate,x=void 0;if(jr(h-g)!==jr(y-h)){var S=[];if(jr(y-h)===jr(f[1]-f[0])){x=y;var N=h+f[1]-f[0];S[0]=Math.min(N,(N+g)/2),S[1]=Math.max(N,(N+g)/2)}else{x=g;var w=y+f[1]-f[0];S[0]=Math.min(h,(w+h)/2),S[1]=Math.max(h,(w+h)/2)}var D=[Math.min(h,(x+h)/2),Math.max(h,(x+h)/2)];if(t>D[0]&&t<=D[1]||t>=S[0]&&t<=S[1]){c=o[m].index;break}}else{var C=Math.min(g,y),j=Math.max(g,y);if(t>(C+h)/2&&t<=(j+h)/2){c=o[m].index;break}}}else for(var P=0;P<u;P++)if(P===0&&t<=(r[P].coordinate+r[P+1].coordinate)/2||P>0&&P<u-1&&t>(r[P].coordinate+r[P-1].coordinate)/2&&t<=(r[P].coordinate+r[P+1].coordinate)/2||P===u-1&&t>(r[P].coordinate+r[P-1].coordinate)/2){c=r[P].index;break}return c},qj=function(t){var n,r=t,o=r.type.displayName,s=(n=t.type)!==null&&n!==void 0&&n.defaultProps?hn(hn({},t.type.defaultProps),t.props):t.props,c=s.stroke,u=s.fill,f;switch(o){case"Line":f=c;break;case"Area":case"Radar":f=c&&c!=="none"?c:u;break;default:f=u;break}return f},_ve=function(t){var n=t.barSize,r=t.totalSize,o=t.stackGroups,s=o===void 0?{}:o;if(!s)return{};for(var c={},u=Object.keys(s),f=0,m=u.length;f<m;f++)for(var g=s[u[f]].stackGroups,h=Object.keys(g),y=0,x=h.length;y<x;y++){var S=g[h[y]],N=S.items,w=S.cateAxisId,D=N.filter(function(R){return ns(R.type).indexOf("Bar")>=0});if(D&&D.length){var C=D[0].type.defaultProps,j=C!==void 0?hn(hn({},C),D[0].props):D[0].props,P=j.barSize,A=j[w];c[A]||(c[A]=[]);var T=ot(P)?n:P;c[A].push({item:D[0],stackList:D.slice(1),barSize:ot(T)?void 0:Rr(T,r,0)})}}return c},jve=function(t){var n=t.barGap,r=t.barCategoryGap,o=t.bandSize,s=t.sizeList,c=s===void 0?[]:s,u=t.maxBarSize,f=c.length;if(f<1)return null;var m=Rr(n,o,0,!0),g,h=[];if(c[0].barSize===+c[0].barSize){var y=!1,x=o/f,S=c.reduce(function(P,A){return P+A.barSize||0},0);S+=(f-1)*m,S>=o&&(S-=(f-1)*m,m=0),S>=o&&x>0&&(y=!0,x*=.9,S=f*x);var N=(o-S)/2>>0,w={offset:N-m,size:0};g=c.reduce(function(P,A){var T={item:A.item,position:{offset:w.offset+w.size+m,size:y?x:A.barSize}},R=[].concat(cB(P),[T]);return w=R[R.length-1].position,A.stackList&&A.stackList.length&&A.stackList.forEach(function(M){R.push({item:M,position:w})}),R},h)}else{var D=Rr(r,o,0,!0);o-2*D-(f-1)*m<=0&&(m=0);var C=(o-2*D-(f-1)*m)/f;C>1&&(C>>=0);var j=u===+u?Math.min(C,u):C;g=c.reduce(function(P,A,T){var R=[].concat(cB(P),[{item:A.item,position:{offset:D+(C+m)*T+(C-j)/2,size:j}}]);return A.stackList&&A.stackList.length&&A.stackList.forEach(function(M){R.push({item:M,position:R[R.length-1].position})}),R},h)}return g},Rve=function(t,n,r,o){var s=r.children,c=r.width,u=r.margin,f=c-(u.left||0)-(u.right||0),m=yF({children:s,legendWidth:f});if(m){var g=o||{},h=g.width,y=g.height,x=m.align,S=m.verticalAlign,N=m.layout;if((N==="vertical"||N==="horizontal"&&S==="middle")&&x!=="center"&&Oe(t[x]))return hn(hn({},t),{},jd({},x,t[x]+(h||0)));if((N==="horizontal"||N==="vertical"&&x==="center")&&S!=="middle"&&Oe(t[S]))return hn(hn({},t),{},jd({},S,t[S]+(y||0)))}return t},Pve=function(t,n,r){return ot(n)?!0:t==="horizontal"?n==="yAxis":t==="vertical"||r==="x"?n==="xAxis":r==="y"?n==="yAxis":!0},xF=function(t,n,r,o,s){var c=n.props.children,u=Ua(c,s0).filter(function(m){return Pve(o,s,m.props.direction)});if(u&&u.length){var f=u.map(function(m){return m.props.dataKey});return t.reduce(function(m,g){var h=$n(g,r);if(ot(h))return m;var y=Array.isArray(h)?[a0(h),ul(h)]:[h,h],x=f.reduce(function(S,N){var w=$n(g,N,0),D=y[0]-Math.abs(Array.isArray(w)?w[0]:w),C=y[1]+Math.abs(Array.isArray(w)?w[1]:w);return[Math.min(D,S[0]),Math.max(C,S[1])]},[1/0,-1/0]);return[Math.min(x[0],m[0]),Math.max(x[1],m[1])]},[1/0,-1/0])}return null},Mve=function(t,n,r,o,s){var c=n.map(function(u){return xF(t,u,r,s,o)}).filter(function(u){return!ot(u)});return c&&c.length?c.reduce(function(u,f){return[Math.min(u[0],f[0]),Math.max(u[1],f[1])]},[1/0,-1/0]):null},NF=function(t,n,r,o,s){var c=n.map(function(f){var m=f.props.dataKey;return r==="number"&&m&&xF(t,f,m,o)||Rh(t,m,r,s)});if(r==="number")return c.reduce(function(f,m){return[Math.min(f[0],m[0]),Math.max(f[1],m[1])]},[1/0,-1/0]);var u={};return c.reduce(function(f,m){for(var g=0,h=m.length;g<h;g++)u[m[g]]||(u[m[g]]=!0,f.push(m[g]));return f},[])},wF=function(t,n){return t==="horizontal"&&n==="xAxis"||t==="vertical"&&n==="yAxis"||t==="centric"&&n==="angleAxis"||t==="radial"&&n==="radiusAxis"},EF=function(t,n,r,o){if(o)return t.map(function(f){return f.coordinate});var s,c,u=t.map(function(f){return f.coordinate===n&&(s=!0),f.coordinate===r&&(c=!0),f.coordinate});return s||u.push(n),c||u.push(r),u},ts=function(t,n,r){if(!t)return null;var o=t.scale,s=t.duplicateDomain,c=t.type,u=t.range,f=t.realScaleType==="scaleBand"?o.bandwidth()/2:2,m=(n||r)&&c==="category"&&o.bandwidth?o.bandwidth()/f:0;if(m=t.axisType==="angleAxis"&&u?.length>=2?jr(u[0]-u[1])*2*m:m,n&&(t.ticks||t.niceTicks)){var g=(t.ticks||t.niceTicks).map(function(h){var y=s?s.indexOf(h):h;return{coordinate:o(y)+m,value:h,offset:m}});return g.filter(function(h){return!Nf(h.coordinate)})}return t.isCategorical&&t.categoricalDomain?t.categoricalDomain.map(function(h,y){return{coordinate:o(h)+m,value:h,index:y,offset:m}}):o.ticks&&!r?o.ticks(t.tickCount).map(function(h){return{coordinate:o(h)+m,value:h,offset:m}}):o.domain().map(function(h,y){return{coordinate:o(h)+m,value:s?s[h]:h,index:y,offset:m}})},lD=new WeakMap,Mb=function(t,n){if(typeof n!="function")return t;lD.has(t)||lD.set(t,new WeakMap);var r=lD.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},SF=function(t,n,r){var o=t.scale,s=t.type,c=t.layout,u=t.axisType;if(o==="auto")return c==="radial"&&u==="radiusAxis"?{scale:rp(),realScaleType:"band"}:c==="radial"&&u==="angleAxis"?{scale:Ty(),realScaleType:"linear"}:s==="category"&&n&&(n.indexOf("LineChart")>=0||n.indexOf("AreaChart")>=0||n.indexOf("ComposedChart")>=0&&!r)?{scale:jh(),realScaleType:"point"}:s==="category"?{scale:rp(),realScaleType:"band"}:{scale:Ty(),realScaleType:"linear"};if(qc(o)){var f="scale".concat(qx(o));return{scale:(Y6[f]||jh)(),realScaleType:Y6[f]?f:"point"}}return Xe(o)?{scale:o}:{scale:jh(),realScaleType:"point"}},dB=1e-4,AF=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])-dB,c=Math.max(o[0],o[1])+dB,u=t(n[0]),f=t(n[r-1]);(u<s||u>c||f<s||f>c)&&t.domain([n[0],n[r-1]])}},kve=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},Ive=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},Lve=function(t){var n=t.length;if(!(n<=0))for(var r=0,o=t[0].length;r<o;++r)for(var s=0,c=0,u=0;u<n;++u){var f=Nf(t[u][r][1])?t[u][r][0]:t[u][r][1];f>=0?(t[u][r][0]=s,t[u][r][1]=s+f,s=t[u][r][1]):(t[u][r][0]=c,t[u][r][1]=c+f,c=t[u][r][1])}},Vve=function(t){var n=t.length;if(!(n<=0))for(var r=0,o=t[0].length;r<o;++r)for(var s=0,c=0;c<n;++c){var u=Nf(t[c][r][1])?t[c][r][0]:t[c][r][1];u>=0?(t[c][r][0]=s,t[c][r][1]=s+u,s=t[c][r][1]):(t[c][r][0]=0,t[c][r][1]=0)}},$ve={sign:Lve,expand:Due,none:Id,silhouette:Cue,wiggle:Tue,positive:Vve},Bve=function(t,n,r){var o=n.map(function(u){return u.props.dataKey}),s=$ve[r],c=Oue().keys(o).value(function(u,f){return+$n(u,f,0)}).order(HC).offset(s);return c(t)},zve=function(t,n,r,o,s,c){if(!t)return null;var u=c?n.reverse():n,f={},m=u.reduce(function(h,y){var x,S=(x=y.type)!==null&&x!==void 0&&x.defaultProps?hn(hn({},y.type.defaultProps),y.props):y.props,N=S.stackId,w=S.hide;if(w)return h;var D=S[r],C=h[D]||{hasStack:!1,stackGroups:{}};if(Bn(N)){var j=C.stackGroups[N]||{numericAxisId:r,cateAxisId:o,items:[]};j.items.push(y),C.hasStack=!0,C.stackGroups[N]=j}else C.stackGroups[wf("_stackId_")]={numericAxisId:r,cateAxisId:o,items:[y]};return hn(hn({},h),{},jd({},D,C))},f),g={};return Object.keys(m).reduce(function(h,y){var x=m[y];if(x.hasStack){var S={};x.stackGroups=Object.keys(x.stackGroups).reduce(function(N,w){var D=x.stackGroups[w];return hn(hn({},N),{},jd({},w,{numericAxisId:r,cateAxisId:o,items:D.items,stackedData:Bve(t,D.items,s)}))},S)}return hn(hn({},h),{},jd({},y,x))},g)},OF=function(t,n){var r=n.realScaleType,o=n.type,s=n.tickCount,c=n.originalDomain,u=n.allowDecimals,f=r||n.scale;if(f!=="auto"&&f!=="linear")return null;if(s&&o==="number"&&c&&(c[0]==="auto"||c[1]==="auto")){var m=t.domain();if(!m.length)return null;var g=nve(m,s,u);return t.domain([a0(g),ul(g)]),{niceTicks:g}}if(s&&o==="number"){var h=t.domain(),y=rve(h,s,u);return{niceTicks:y}}return null};function fB(e){var t=e.axis,n=e.ticks,r=e.bandSize,o=e.entry,s=e.index,c=e.dataKey;if(t.type==="category"){if(!t.allowDuplicatedCategory&&t.dataKey&&!ot(o[t.dataKey])){var u=dy(n,"value",o[t.dataKey]);if(u)return u.coordinate+r/2}return n[s]?n[s].coordinate+r/2:null}var f=$n(o,ot(c)?t.dataKey:c);return ot(f)?null:t.scale(f)}var mB=function(t){var n=t.axis,r=t.ticks,o=t.offset,s=t.bandSize,c=t.entry,u=t.index;if(n.type==="category")return r[u]?r[u].coordinate+o:null;var f=$n(c,n.dataKey,n.domain[u]);return ot(f)?null:n.scale(f)-s/2+o},Uve=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]},qve=function(t,n){var r,o=(r=t.type)!==null&&r!==void 0&&r.defaultProps?hn(hn({},t.type.defaultProps),t.props):t.props,s=o.stackId;if(Bn(s)){var c=n[s];if(c){var u=c.items.indexOf(t);return u>=0?c.stackedData[u]:null}}return null},Hve=function(t){return t.reduce(function(n,r){return[a0(r.concat([n[0]]).filter(Oe)),ul(r.concat([n[1]]).filter(Oe))]},[1/0,-1/0])},DF=function(t,n,r){return Object.keys(t).reduce(function(o,s){var c=t[s],u=c.stackedData,f=u.reduce(function(m,g){var h=Hve(g.slice(n,r+1));return[Math.min(m[0],h[0]),Math.max(m[1],h[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})},hB=/^dataMin[\s]*-[\s]*([0-9]+([.]{1}[0-9]+){0,1})$/,pB=/^dataMax[\s]*\+[\s]*([0-9]+([.]{1}[0-9]+){0,1})$/,pT=function(t,n,r){if(Xe(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(hB.test(t[0])){var s=+hB.exec(t[0])[1];o[0]=n[0]-s}else Xe(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(pB.test(t[1])){var c=+pB.exec(t[1])[1];o[1]=n[1]+c}else Xe(t[1])?o[1]=t[1](n[1]):o[1]=n[1];return o},Iy=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=vj(n,function(h){return h.coordinate}),c=1/0,u=1,f=s.length;u<f;u++){var m=s[u],g=s[u-1];c=Math.min((m.coordinate||0)-(g.coordinate||0),c)}return c===1/0?0:c}return r?void 0:0},gB=function(t,n,r){return!t||!t.length||Hd(t,va(r,"type.defaultProps.domain"))?n:t},CF=function(t,n){var r=t.type.defaultProps?hn(hn({},t.type.defaultProps),t.props):t.props,o=r.dataKey,s=r.name,c=r.unit,u=r.formatter,f=r.tooltipType,m=r.chartType,g=r.hide;return hn(hn({},Fe(t,!1)),{},{dataKey:o,unit:c,formatter:u,name:s||o,color:qj(t),value:$n(n,o),type:f,payload:n,chartType:m,hide:g})};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 vB(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?vB(Object(n),!0).forEach(function(r){TF(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):vB(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function TF(e,t,n){return t=Fve(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Fve(e){var t=Kve(e,"string");return fp(t)=="symbol"?t:t+""}function Kve(e,t){if(fp(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(fp(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function Gve(e,t){return Wve(e)||Xve(e,t)||Qve(e,t)||Yve()}function Yve(){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 Qve(e,t){if(e){if(typeof e=="string")return bB(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 bB(e,t)}}function bB(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 Xve(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r,o,s,c,u=[],f=!0,m=!1;try{if(s=(n=n.call(e)).next,t!==0)for(;!(f=(r=s.call(n)).done)&&(u.push(r.value),u.length!==t);f=!0);}catch(g){m=!0,o=g}finally{try{if(!f&&n.return!=null&&(c=n.return(),Object(c)!==c))return}finally{if(m)throw o}}return u}}function Wve(e){if(Array.isArray(e))return e}var Ly=Math.PI/180,Zve=function(t){return t*180/Math.PI},en=function(t,n,r,o){return{x:t+Math.cos(-Ly*o)*r,y:n+Math.sin(-Ly*o)*r}},_F=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},Jve=function(t,n,r,o,s){var c=t.width,u=t.height,f=t.startAngle,m=t.endAngle,g=Rr(t.cx,c,c/2),h=Rr(t.cy,u,u/2),y=_F(c,u,r),x=Rr(t.innerRadius,y,0),S=Rr(t.outerRadius,y,y*.8),N=Object.keys(n);return N.reduce(function(w,D){var C=n[D],j=C.domain,P=C.reversed,A;if(ot(C.range))o==="angleAxis"?A=[f,m]:o==="radiusAxis"&&(A=[x,S]),P&&(A=[A[1],A[0]]);else{A=C.range;var T=A,R=Gve(T,2);f=R[0],m=R[1]}var M=SF(C,s),$=M.realScaleType,z=M.scale;z.domain(j).range(A),AF(z);var U=OF(z,Wo(Wo({},C),{},{realScaleType:$})),V=Wo(Wo(Wo({},C),U),{},{range:A,radius:S,realScaleType:$,scale:z,cx:g,cy:h,innerRadius:x,outerRadius:S,startAngle:f,endAngle:m});return Wo(Wo({},w),{},TF({},D,V))},{})},ebe=function(t,n){var r=t.x,o=t.y,s=n.x,c=n.y;return Math.sqrt(Math.pow(r-s,2)+Math.pow(o-c,2))},tbe=function(t,n){var r=t.x,o=t.y,s=n.cx,c=n.cy,u=ebe({x:r,y:o},{x:s,y:c});if(u<=0)return{radius:u};var f=(r-s)/u,m=Math.acos(f);return o>c&&(m=2*Math.PI-m),{radius:u,angle:Zve(m),angleInRadian:m}},nbe=function(t){var n=t.startAngle,r=t.endAngle,o=Math.floor(n/360),s=Math.floor(r/360),c=Math.min(o,s);return{startAngle:n-c*360,endAngle:r-c*360}},rbe=function(t,n){var r=n.startAngle,o=n.endAngle,s=Math.floor(r/360),c=Math.floor(o/360),u=Math.min(s,c);return t+u*360},yB=function(t,n){var r=t.x,o=t.y,s=tbe({x:r,y:o},n),c=s.radius,u=s.angle,f=n.innerRadius,m=n.outerRadius;if(c<f||c>m)return!1;if(c===0)return!0;var g=nbe(n),h=g.startAngle,y=g.endAngle,x=u,S;if(h<=y){for(;x>y;)x-=360;for(;x<h;)x+=360;S=x>=h&&x<=y}else{for(;x>h;)x-=360;for(;x<y;)x+=360;S=x>=y&&x<=h}return S?Wo(Wo({},n),{},{radius:c,angle:rbe(x,n)}):null},jF=function(t){return!_.isValidElement(t)&&!Xe(t)&&typeof t!="boolean"?t.className:""};function mp(e){"@babel/helpers - typeof";return mp=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},mp(e)}var abe=["offset"];function ibe(e){return cbe(e)||lbe(e)||sbe(e)||obe()}function obe(){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 sbe(e,t){if(e){if(typeof e=="string")return gT(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 gT(e,t)}}function lbe(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function cbe(e){if(Array.isArray(e))return gT(e)}function gT(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 ube(e,t){if(e==null)return{};var n=dbe(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 dbe(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 xB(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 Ln(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?xB(Object(n),!0).forEach(function(r){fbe(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):xB(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function fbe(e,t,n){return t=mbe(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function mbe(e){var t=hbe(e,"string");return mp(t)=="symbol"?t:t+""}function hbe(e,t){if(mp(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(mp(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function hp(){return hp=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},hp.apply(this,arguments)}var pbe=function(t){var n=t.value,r=t.formatter,o=ot(t.children)?n:t.children;return Xe(r)?r(o):o},gbe=function(t,n){var r=jr(n-t),o=Math.min(Math.abs(n-t),360);return r*o},vbe=function(t,n,r){var o=t.position,s=t.viewBox,c=t.offset,u=t.className,f=s,m=f.cx,g=f.cy,h=f.innerRadius,y=f.outerRadius,x=f.startAngle,S=f.endAngle,N=f.clockWise,w=(h+y)/2,D=gbe(x,S),C=D>=0?1:-1,j,P;o==="insideStart"?(j=x+C*c,P=N):o==="insideEnd"?(j=S-C*c,P=!N):o==="end"&&(j=S+C*c,P=N),P=D<=0?P:!P;var A=en(m,g,w,j),T=en(m,g,w,j+(P?1:-1)*359),R="M".concat(A.x,",").concat(A.y,`
|
||
A`).concat(w,",").concat(w,",0,1,").concat(P?0:1,`,
|
||
`).concat(T.x,",").concat(T.y),M=ot(t.id)?wf("recharts-radial-line-"):t.id;return K.createElement("text",hp({},r,{dominantBaseline:"central",className:it("recharts-radial-bar-label",u)}),K.createElement("defs",null,K.createElement("path",{id:M,d:R})),K.createElement("textPath",{xlinkHref:"#".concat(M)},n))},bbe=function(t){var n=t.viewBox,r=t.offset,o=t.position,s=n,c=s.cx,u=s.cy,f=s.innerRadius,m=s.outerRadius,g=s.startAngle,h=s.endAngle,y=(g+h)/2;if(o==="outside"){var x=en(c,u,m+r,y),S=x.x,N=x.y;return{x:S,y:N,textAnchor:S>=c?"start":"end",verticalAnchor:"middle"}}if(o==="center")return{x:c,y:u,textAnchor:"middle",verticalAnchor:"middle"};if(o==="centerTop")return{x:c,y:u,textAnchor:"middle",verticalAnchor:"start"};if(o==="centerBottom")return{x:c,y:u,textAnchor:"middle",verticalAnchor:"end"};var w=(f+m)/2,D=en(c,u,w,y),C=D.x,j=D.y;return{x:C,y:j,textAnchor:"middle",verticalAnchor:"middle"}},ybe=function(t){var n=t.viewBox,r=t.parentViewBox,o=t.offset,s=t.position,c=n,u=c.x,f=c.y,m=c.width,g=c.height,h=g>=0?1:-1,y=h*o,x=h>0?"end":"start",S=h>0?"start":"end",N=m>=0?1:-1,w=N*o,D=N>0?"end":"start",C=N>0?"start":"end";if(s==="top"){var j={x:u+m/2,y:f-h*o,textAnchor:"middle",verticalAnchor:x};return Ln(Ln({},j),r?{height:Math.max(f-r.y,0),width:m}:{})}if(s==="bottom"){var P={x:u+m/2,y:f+g+y,textAnchor:"middle",verticalAnchor:S};return Ln(Ln({},P),r?{height:Math.max(r.y+r.height-(f+g),0),width:m}:{})}if(s==="left"){var A={x:u-w,y:f+g/2,textAnchor:D,verticalAnchor:"middle"};return Ln(Ln({},A),r?{width:Math.max(A.x-r.x,0),height:g}:{})}if(s==="right"){var T={x:u+m+w,y:f+g/2,textAnchor:C,verticalAnchor:"middle"};return Ln(Ln({},T),r?{width:Math.max(r.x+r.width-T.x,0),height:g}:{})}var R=r?{width:m,height:g}:{};return s==="insideLeft"?Ln({x:u+w,y:f+g/2,textAnchor:C,verticalAnchor:"middle"},R):s==="insideRight"?Ln({x:u+m-w,y:f+g/2,textAnchor:D,verticalAnchor:"middle"},R):s==="insideTop"?Ln({x:u+m/2,y:f+y,textAnchor:"middle",verticalAnchor:S},R):s==="insideBottom"?Ln({x:u+m/2,y:f+g-y,textAnchor:"middle",verticalAnchor:x},R):s==="insideTopLeft"?Ln({x:u+w,y:f+y,textAnchor:C,verticalAnchor:S},R):s==="insideTopRight"?Ln({x:u+m-w,y:f+y,textAnchor:D,verticalAnchor:S},R):s==="insideBottomLeft"?Ln({x:u+w,y:f+g-y,textAnchor:C,verticalAnchor:x},R):s==="insideBottomRight"?Ln({x:u+m-w,y:f+g-y,textAnchor:D,verticalAnchor:x},R):xf(s)&&(Oe(s.x)||wc(s.x))&&(Oe(s.y)||wc(s.y))?Ln({x:u+Rr(s.x,m),y:f+Rr(s.y,g),textAnchor:"end",verticalAnchor:"end"},R):Ln({x:u+m/2,y:f+g/2,textAnchor:"middle",verticalAnchor:"middle"},R)},xbe=function(t){return"cx"in t&&Oe(t.cx)};function Xn(e){var t=e.offset,n=t===void 0?5:t,r=ube(e,abe),o=Ln({offset:n},r),s=o.viewBox,c=o.position,u=o.value,f=o.children,m=o.content,g=o.className,h=g===void 0?"":g,y=o.textBreakAll;if(!s||ot(u)&&ot(f)&&!_.isValidElement(m)&&!Xe(m))return null;if(_.isValidElement(m))return _.cloneElement(m,o);var x;if(Xe(m)){if(x=_.createElement(m,o),_.isValidElement(x))return x}else x=pbe(o);var S=xbe(s),N=Fe(o,!0);if(S&&(c==="insideStart"||c==="insideEnd"||c==="end"))return vbe(o,x,N);var w=S?bbe(o):ybe(o);return K.createElement(Fc,hp({className:it("recharts-label",h)},N,w,{breakAll:y}),x)}Xn.displayName="Label";var RF=function(t){var n=t.cx,r=t.cy,o=t.angle,s=t.startAngle,c=t.endAngle,u=t.r,f=t.radius,m=t.innerRadius,g=t.outerRadius,h=t.x,y=t.y,x=t.top,S=t.left,N=t.width,w=t.height,D=t.clockWise,C=t.labelViewBox;if(C)return C;if(Oe(N)&&Oe(w)){if(Oe(h)&&Oe(y))return{x:h,y,width:N,height:w};if(Oe(x)&&Oe(S))return{x,y:S,width:N,height:w}}return Oe(h)&&Oe(y)?{x:h,y,width:0,height:0}:Oe(n)&&Oe(r)?{cx:n,cy:r,startAngle:s||o||0,endAngle:c||o||0,innerRadius:m||0,outerRadius:g||f||u||0,clockWise:D}:t.viewBox?t.viewBox:{}},Nbe=function(t,n){return t?t===!0?K.createElement(Xn,{key:"label-implicit",viewBox:n}):Bn(t)?K.createElement(Xn,{key:"label-implicit",viewBox:n,value:t}):_.isValidElement(t)?t.type===Xn?_.cloneElement(t,{key:"label-implicit",viewBox:n}):K.createElement(Xn,{key:"label-implicit",content:t,viewBox:n}):Xe(t)?K.createElement(Xn,{key:"label-implicit",content:t,viewBox:n}):xf(t)?K.createElement(Xn,hp({viewBox:n},t,{key:"label-implicit"})):null:null},wbe=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=RF(t),c=Ua(o,Xn).map(function(f,m){return _.cloneElement(f,{viewBox:n||s,key:"label-".concat(m)})});if(!r)return c;var u=Nbe(t.label,n||s);return[u].concat(ibe(c))};Xn.parseViewBox=RF;Xn.renderCallByParent=wbe;var cD,NB;function Ebe(){if(NB)return cD;NB=1;function e(t){var n=t==null?0:t.length;return n?t[n-1]:void 0}return cD=e,cD}var Sbe=Ebe();const Abe=Bt(Sbe);function pp(e){"@babel/helpers - typeof";return pp=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},pp(e)}var Obe=["valueAccessor"],Dbe=["data","dataKey","clockWise","id","textBreakAll"];function Cbe(e){return Rbe(e)||jbe(e)||_be(e)||Tbe()}function Tbe(){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 _be(e,t){if(e){if(typeof e=="string")return vT(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 vT(e,t)}}function jbe(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function Rbe(e){if(Array.isArray(e))return vT(e)}function vT(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 Vy(){return Vy=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},Vy.apply(this,arguments)}function wB(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 EB(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?wB(Object(n),!0).forEach(function(r){Pbe(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):wB(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function Pbe(e,t,n){return t=Mbe(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Mbe(e){var t=kbe(e,"string");return pp(t)=="symbol"?t:t+""}function kbe(e,t){if(pp(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(pp(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function SB(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={};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 Lbe=function(t){return Array.isArray(t.value)?Abe(t.value):t.value};function as(e){var t=e.valueAccessor,n=t===void 0?Lbe:t,r=SB(e,Obe),o=r.data,s=r.dataKey,c=r.clockWise,u=r.id,f=r.textBreakAll,m=SB(r,Dbe);return!o||!o.length?null:K.createElement(Dt,{className:"recharts-label-list"},o.map(function(g,h){var y=ot(s)?n(g,h):$n(g&&g.payload,s),x=ot(u)?{}:{id:"".concat(u,"-").concat(h)};return K.createElement(Xn,Vy({},Fe(g,!0),m,x,{parentViewBox:g.parentViewBox,value:y,textBreakAll:f,viewBox:Xn.parseViewBox(ot(c)?g:EB(EB({},g),{},{clockWise:c})),key:"label-".concat(h),index:h}))}))}as.displayName="LabelList";function Vbe(e,t){return e?e===!0?K.createElement(as,{key:"labelList-implicit",data:t}):K.isValidElement(e)||Xe(e)?K.createElement(as,{key:"labelList-implicit",data:t,content:e}):xf(e)?K.createElement(as,Vy({data:t},e,{key:"labelList-implicit"})):null:null}function $be(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=Ua(r,as).map(function(c,u){return _.cloneElement(c,{data:t,key:"labelList-".concat(u)})});if(!n)return o;var s=Vbe(e.label,t);return[s].concat(Cbe(o))}as.renderCallByParent=$be;function gp(e){"@babel/helpers - typeof";return gp=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},gp(e)}function bT(){return bT=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},bT.apply(this,arguments)}function AB(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 OB(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?AB(Object(n),!0).forEach(function(r){Bbe(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):AB(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function Bbe(e,t,n){return t=zbe(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function zbe(e){var t=Ube(e,"string");return gp(t)=="symbol"?t:t+""}function Ube(e,t){if(gp(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(gp(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var qbe=function(t,n){var r=jr(n-t),o=Math.min(Math.abs(n-t),359.999);return r*o},kb=function(t){var n=t.cx,r=t.cy,o=t.radius,s=t.angle,c=t.sign,u=t.isExternal,f=t.cornerRadius,m=t.cornerIsExternal,g=f*(u?1:-1)+o,h=Math.asin(f/g)/Ly,y=m?s:s+c*h,x=en(n,r,g,y),S=en(n,r,o,y),N=m?s-c*h:s,w=en(n,r,g*Math.cos(h*Ly),N);return{center:x,circleTangency:S,lineTangency:w,theta:h}},PF=function(t){var n=t.cx,r=t.cy,o=t.innerRadius,s=t.outerRadius,c=t.startAngle,u=t.endAngle,f=qbe(c,u),m=c+f,g=en(n,r,s,c),h=en(n,r,s,m),y="M ".concat(g.x,",").concat(g.y,`
|
||
A `).concat(s,",").concat(s,`,0,
|
||
`).concat(+(Math.abs(f)>180),",").concat(+(c>m),`,
|
||
`).concat(h.x,",").concat(h.y,`
|
||
`);if(o>0){var x=en(n,r,o,c),S=en(n,r,o,m);y+="L ".concat(S.x,",").concat(S.y,`
|
||
A `).concat(o,",").concat(o,`,0,
|
||
`).concat(+(Math.abs(f)>180),",").concat(+(c<=m),`,
|
||
`).concat(x.x,",").concat(x.y," Z")}else y+="L ".concat(n,",").concat(r," Z");return y},Hbe=function(t){var n=t.cx,r=t.cy,o=t.innerRadius,s=t.outerRadius,c=t.cornerRadius,u=t.forceCornerRadius,f=t.cornerIsExternal,m=t.startAngle,g=t.endAngle,h=jr(g-m),y=kb({cx:n,cy:r,radius:s,angle:m,sign:h,cornerRadius:c,cornerIsExternal:f}),x=y.circleTangency,S=y.lineTangency,N=y.theta,w=kb({cx:n,cy:r,radius:s,angle:g,sign:-h,cornerRadius:c,cornerIsExternal:f}),D=w.circleTangency,C=w.lineTangency,j=w.theta,P=f?Math.abs(m-g):Math.abs(m-g)-N-j;if(P<0)return u?"M ".concat(S.x,",").concat(S.y,`
|
||
a`).concat(c,",").concat(c,",0,0,1,").concat(c*2,`,0
|
||
a`).concat(c,",").concat(c,",0,0,1,").concat(-c*2,`,0
|
||
`):PF({cx:n,cy:r,innerRadius:o,outerRadius:s,startAngle:m,endAngle:g});var A="M ".concat(S.x,",").concat(S.y,`
|
||
A`).concat(c,",").concat(c,",0,0,").concat(+(h<0),",").concat(x.x,",").concat(x.y,`
|
||
A`).concat(s,",").concat(s,",0,").concat(+(P>180),",").concat(+(h<0),",").concat(D.x,",").concat(D.y,`
|
||
A`).concat(c,",").concat(c,",0,0,").concat(+(h<0),",").concat(C.x,",").concat(C.y,`
|
||
`);if(o>0){var T=kb({cx:n,cy:r,radius:o,angle:m,sign:h,isExternal:!0,cornerRadius:c,cornerIsExternal:f}),R=T.circleTangency,M=T.lineTangency,$=T.theta,z=kb({cx:n,cy:r,radius:o,angle:g,sign:-h,isExternal:!0,cornerRadius:c,cornerIsExternal:f}),U=z.circleTangency,V=z.lineTangency,F=z.theta,X=f?Math.abs(m-g):Math.abs(m-g)-$-F;if(X<0&&c===0)return"".concat(A,"L").concat(n,",").concat(r,"Z");A+="L".concat(V.x,",").concat(V.y,`
|
||
A`).concat(c,",").concat(c,",0,0,").concat(+(h<0),",").concat(U.x,",").concat(U.y,`
|
||
A`).concat(o,",").concat(o,",0,").concat(+(X>180),",").concat(+(h>0),",").concat(R.x,",").concat(R.y,`
|
||
A`).concat(c,",").concat(c,",0,0,").concat(+(h<0),",").concat(M.x,",").concat(M.y,"Z")}else A+="L".concat(n,",").concat(r,"Z");return A},Fbe={cx:0,cy:0,innerRadius:0,outerRadius:0,startAngle:0,endAngle:0,cornerRadius:0,forceCornerRadius:!1,cornerIsExternal:!1},MF=function(t){var n=OB(OB({},Fbe),t),r=n.cx,o=n.cy,s=n.innerRadius,c=n.outerRadius,u=n.cornerRadius,f=n.forceCornerRadius,m=n.cornerIsExternal,g=n.startAngle,h=n.endAngle,y=n.className;if(c<s||g===h)return null;var x=it("recharts-sector",y),S=c-s,N=Rr(u,S,0,!0),w;return N>0&&Math.abs(g-h)<360?w=Hbe({cx:r,cy:o,innerRadius:s,outerRadius:c,cornerRadius:Math.min(N,S/2),forceCornerRadius:f,cornerIsExternal:m,startAngle:g,endAngle:h}):w=PF({cx:r,cy:o,innerRadius:s,outerRadius:c,startAngle:g,endAngle:h}),K.createElement("path",bT({},Fe(n,!0),{className:x,d:w,role:"img"}))};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)}function yT(){return yT=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},yT.apply(this,arguments)}function DB(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 CB(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?DB(Object(n),!0).forEach(function(r){Kbe(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):DB(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function Kbe(e,t,n){return t=Gbe(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Gbe(e){var t=Ybe(e,"string");return vp(t)=="symbol"?t:t+""}function Ybe(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)}var TB={curveBasisClosed:pue,curveBasisOpen:gue,curveBasis:hue,curveBumpX:eue,curveBumpY:tue,curveLinearClosed:vue,curveLinear:Fx,curveMonotoneX:bue,curveMonotoneY:yue,curveNatural:xue,curveStep:Nue,curveStepAfter:Eue,curveStepBefore:wue},Ib=function(t){return t.x===+t.x&&t.y===+t.y},ph=function(t){return t.x},gh=function(t){return t.y},Qbe=function(t,n){if(Xe(t))return t;var r="curve".concat(qx(t));return(r==="curveMonotone"||r==="curveBump")&&n?TB["".concat(r).concat(n==="vertical"?"Y":"X")]:TB[r]||Fx},Xbe=function(t){var n=t.type,r=n===void 0?"linear":n,o=t.points,s=o===void 0?[]:o,c=t.baseLine,u=t.layout,f=t.connectNulls,m=f===void 0?!1:f,g=Qbe(r,u),h=m?s.filter(function(N){return Ib(N)}):s,y;if(Array.isArray(c)){var x=m?c.filter(function(N){return Ib(N)}):c,S=h.map(function(N,w){return CB(CB({},N),{},{base:x[w]})});return u==="vertical"?y=Db().y(gh).x1(ph).x0(function(N){return N.base.x}):y=Db().x(ph).y1(gh).y0(function(N){return N.base.y}),y.defined(Ib).curve(g),y(S)}return u==="vertical"&&Oe(c)?y=Db().y(gh).x1(ph).x0(c):Oe(c)?y=Db().x(ph).y1(gh).y0(c):y=Rq().x(ph).y(gh),y.defined(Ib).curve(g),y(h)},Rd=function(t){var n=t.className,r=t.points,o=t.path,s=t.pathRef;if((!r||!r.length)&&!o)return null;var c=r&&r.length?Xbe(t):o;return _.createElement("path",yT({},Fe(t,!1),fy(t),{className:it("recharts-curve",n),d:c,ref:s}))},uD={exports:{}},dD={exports:{}},Vt={},_B;function Wbe(){if(_B)return Vt;_B=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,c=e?Symbol.for("react.provider"):60109,u=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,h=e?Symbol.for("react.suspense"):60113,y=e?Symbol.for("react.suspense_list"):60120,x=e?Symbol.for("react.memo"):60115,S=e?Symbol.for("react.lazy"):60116,N=e?Symbol.for("react.block"):60121,w=e?Symbol.for("react.fundamental"):60117,D=e?Symbol.for("react.responder"):60118,C=e?Symbol.for("react.scope"):60119;function j(ie){return typeof ie=="string"||typeof ie=="function"||ie===r||ie===m||ie===s||ie===o||ie===h||ie===y||typeof ie=="object"&&ie!==null&&(ie.$$typeof===S||ie.$$typeof===x||ie.$$typeof===c||ie.$$typeof===u||ie.$$typeof===g||ie.$$typeof===w||ie.$$typeof===D||ie.$$typeof===C||ie.$$typeof===N)}function P(ie){if(typeof ie=="object"&&ie!==null){var ze=ie.$$typeof;switch(ze){case t:var Ne=ie.type;switch(Ne){case f:case m:case r:case s:case o:case h:return Ne;default:var ut=Ne&&Ne.$$typeof;switch(ut){case u:case g:case S:case x:case c:return ut;default:return ze}}case n:return ze}}}var A=f,T=m,R=u,M=c,$=t,z=g,U=r,V=S,F=x,X=n,ee=s,q=o,Q=h,G=!1;function ne(ie){return G||(G=!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.")),te(ie)||P(ie)===f}function te(ie){return P(ie)===m}function I(ie){return P(ie)===u}function H(ie){return P(ie)===c}function Y(ie){return typeof ie=="object"&&ie!==null&&ie.$$typeof===t}function re(ie){return P(ie)===g}function ge(ie){return P(ie)===r}function we(ie){return P(ie)===S}function le(ie){return P(ie)===x}function ye(ie){return P(ie)===n}function me(ie){return P(ie)===s}function xe(ie){return P(ie)===o}function de(ie){return P(ie)===h}Vt.AsyncMode=A,Vt.ConcurrentMode=T,Vt.ContextConsumer=R,Vt.ContextProvider=M,Vt.Element=$,Vt.ForwardRef=z,Vt.Fragment=U,Vt.Lazy=V,Vt.Memo=F,Vt.Portal=X,Vt.Profiler=ee,Vt.StrictMode=q,Vt.Suspense=Q,Vt.isAsyncMode=ne,Vt.isConcurrentMode=te,Vt.isContextConsumer=I,Vt.isContextProvider=H,Vt.isElement=Y,Vt.isForwardRef=re,Vt.isFragment=ge,Vt.isLazy=we,Vt.isMemo=le,Vt.isPortal=ye,Vt.isProfiler=me,Vt.isStrictMode=xe,Vt.isSuspense=de,Vt.isValidElementType=j,Vt.typeOf=P})(),Vt}var jB;function kF(){return jB||(jB=1,dD.exports=Wbe()),dD.exports}/*
|
||
object-assign
|
||
(c) Sindre Sorhus
|
||
@license MIT
|
||
*/var fD,RB;function Zbe(){if(RB)return fD;RB=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 c={},u=0;u<10;u++)c["_"+String.fromCharCode(u)]=u;var f=Object.getOwnPropertyNames(c).map(function(g){return c[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 fD=o()?Object.assign:function(s,c){for(var u,f=r(s),m,g=1;g<arguments.length;g++){u=Object(arguments[g]);for(var h in u)t.call(u,h)&&(f[h]=u[h]);if(e){m=e(u);for(var y=0;y<m.length;y++)n.call(u,m[y])&&(f[m[y]]=u[m[y]])}}return f},fD}var mD,PB;function IF(){if(PB)return mD;PB=1;var e="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED";return mD=e,mD}var hD,MB;function LF(){return MB||(MB=1,hD=Function.call.bind(Object.prototype.hasOwnProperty)),hD}var pD,kB;function Jbe(){if(kB)return pD;kB=1;var e=function(){};{var t=IF(),n={},r=LF();e=function(s){var c="Warning: "+s;typeof console<"u"&&console.error(c);try{throw new Error(c)}catch{}}}function o(s,c,u,f,m){for(var g in s)if(r(s,g)){var h;try{if(typeof s[g]!="function"){var y=Error((f||"React class")+": "+u+" 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}h=s[g](c,g,f,u,null,t)}catch(S){h=S}if(h&&!(h instanceof Error)&&e((f||"React class")+": type specification of "+u+" `"+g+"` is invalid; the type checker function must return `null` or an `Error` but returned a "+typeof h+". You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument)."),h instanceof Error&&!(h.message in n)){n[h.message]=!0;var x=m?m():"";e("Failed "+u+" type: "+h.message+(x??""))}}}return o.resetWarningCache=function(){n={}},pD=o,pD}var gD,IB;function eye(){if(IB)return gD;IB=1;var e=kF(),t=Zbe(),n=IF(),r=LF(),o=Jbe(),s=function(){};s=function(u){var f="Warning: "+u;typeof console<"u"&&console.error(f);try{throw new Error(f)}catch{}};function c(){return null}return gD=function(u,f){var m=typeof Symbol=="function"&&Symbol.iterator,g="@@iterator";function h(te){var I=te&&(m&&te[m]||te[g]);if(typeof I=="function")return I}var y="<<anonymous>>",x={array:D("array"),bigint:D("bigint"),bool:D("boolean"),func:D("function"),number:D("number"),object:D("object"),string:D("string"),symbol:D("symbol"),any:C(),arrayOf:j,element:P(),elementType:A(),instanceOf:T,node:z(),objectOf:M,oneOf:R,oneOfType:$,shape:V,exact:F};function S(te,I){return te===I?te!==0||1/te===1/I:te!==te&&I!==I}function N(te,I){this.message=te,this.data=I&&typeof I=="object"?I:{},this.stack=""}N.prototype=Error.prototype;function w(te){var I={},H=0;function Y(ge,we,le,ye,me,xe,de){if(ye=ye||y,xe=xe||le,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=ye+":"+le;!I[ze]&&H<3&&(s("You are manually calling a React.PropTypes validation function for the `"+xe+"` prop on `"+ye+"`. 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,H++)}}return we[le]==null?ge?we[le]===null?new N("The "+me+" `"+xe+"` is marked as required "+("in `"+ye+"`, but its value is `null`.")):new N("The "+me+" `"+xe+"` is marked as required in "+("`"+ye+"`, but its value is `undefined`.")):null:te(we,le,ye,me,xe)}var re=Y.bind(null,!1);return re.isRequired=Y.bind(null,!0),re}function D(te){function I(H,Y,re,ge,we,le){var ye=H[Y],me=q(ye);if(me!==te){var xe=Q(ye);return new N("Invalid "+ge+" `"+we+"` of type "+("`"+xe+"` supplied to `"+re+"`, expected ")+("`"+te+"`."),{expectedType:te})}return null}return w(I)}function C(){return w(c)}function j(te){function I(H,Y,re,ge,we){if(typeof te!="function")return new N("Property `"+we+"` of component `"+re+"` has invalid PropType notation inside arrayOf.");var le=H[Y];if(!Array.isArray(le)){var ye=q(le);return new N("Invalid "+ge+" `"+we+"` of type "+("`"+ye+"` supplied to `"+re+"`, expected an array."))}for(var me=0;me<le.length;me++){var xe=te(le,me,re,ge,we+"["+me+"]",n);if(xe instanceof Error)return xe}return null}return w(I)}function P(){function te(I,H,Y,re,ge){var we=I[H];if(!u(we)){var le=q(we);return new N("Invalid "+re+" `"+ge+"` of type "+("`"+le+"` supplied to `"+Y+"`, expected a single ReactElement."))}return null}return w(te)}function A(){function te(I,H,Y,re,ge){var we=I[H];if(!e.isValidElementType(we)){var le=q(we);return new N("Invalid "+re+" `"+ge+"` of type "+("`"+le+"` supplied to `"+Y+"`, expected a single ReactElement type."))}return null}return w(te)}function T(te){function I(H,Y,re,ge,we){if(!(H[Y]instanceof te)){var le=te.name||y,ye=ne(H[Y]);return new N("Invalid "+ge+" `"+we+"` of type "+("`"+ye+"` supplied to `"+re+"`, expected ")+("instance of `"+le+"`."))}return null}return w(I)}function R(te){if(!Array.isArray(te))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."),c;function I(H,Y,re,ge,we){for(var le=H[Y],ye=0;ye<te.length;ye++)if(S(le,te[ye]))return null;var me=JSON.stringify(te,function(de,ie){var ze=Q(ie);return ze==="symbol"?String(ie):ie});return new N("Invalid "+ge+" `"+we+"` of value `"+String(le)+"` "+("supplied to `"+re+"`, expected one of "+me+"."))}return w(I)}function M(te){function I(H,Y,re,ge,we){if(typeof te!="function")return new N("Property `"+we+"` of component `"+re+"` has invalid PropType notation inside objectOf.");var le=H[Y],ye=q(le);if(ye!=="object")return new N("Invalid "+ge+" `"+we+"` of type "+("`"+ye+"` supplied to `"+re+"`, expected an object."));for(var me in le)if(r(le,me)){var xe=te(le,me,re,ge,we+"."+me,n);if(xe instanceof Error)return xe}return null}return w(I)}function $(te){if(!Array.isArray(te))return s("Invalid argument supplied to oneOfType, expected an instance of array."),c;for(var I=0;I<te.length;I++){var H=te[I];if(typeof H!="function")return s("Invalid argument supplied to oneOfType. Expected an array of check functions, but received "+G(H)+" at index "+I+"."),c}function Y(re,ge,we,le,ye){for(var me=[],xe=0;xe<te.length;xe++){var de=te[xe],ie=de(re,ge,we,le,ye,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 N("Invalid "+le+" `"+ye+"` supplied to "+("`"+we+"`"+ze+"."))}return w(Y)}function z(){function te(I,H,Y,re,ge){return X(I[H])?null:new N("Invalid "+re+" `"+ge+"` supplied to "+("`"+Y+"`, expected a ReactNode."))}return w(te)}function U(te,I,H,Y,re){return new N((te||"React class")+": "+I+" type `"+H+"."+Y+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+re+"`.")}function V(te){function I(H,Y,re,ge,we){var le=H[Y],ye=q(le);if(ye!=="object")return new N("Invalid "+ge+" `"+we+"` of type `"+ye+"` "+("supplied to `"+re+"`, expected `object`."));for(var me in te){var xe=te[me];if(typeof xe!="function")return U(re,ge,we,me,Q(xe));var de=xe(le,me,re,ge,we+"."+me,n);if(de)return de}return null}return w(I)}function F(te){function I(H,Y,re,ge,we){var le=H[Y],ye=q(le);if(ye!=="object")return new N("Invalid "+ge+" `"+we+"` of type `"+ye+"` "+("supplied to `"+re+"`, expected `object`."));var me=t({},H[Y],te);for(var xe in me){var de=te[xe];if(r(te,xe)&&typeof de!="function")return U(re,ge,we,xe,Q(de));if(!de)return new N("Invalid "+ge+" `"+we+"` key `"+xe+"` supplied to `"+re+"`.\nBad object: "+JSON.stringify(H[Y],null," ")+`
|
||
Valid keys: `+JSON.stringify(Object.keys(te),null," "));var ie=de(le,xe,re,ge,we+"."+xe,n);if(ie)return ie}return null}return w(I)}function X(te){switch(typeof te){case"number":case"string":case"undefined":return!0;case"boolean":return!te;case"object":if(Array.isArray(te))return te.every(X);if(te===null||u(te))return!0;var I=h(te);if(I){var H=I.call(te),Y;if(I!==te.entries){for(;!(Y=H.next()).done;)if(!X(Y.value))return!1}else for(;!(Y=H.next()).done;){var re=Y.value;if(re&&!X(re[1]))return!1}}else return!1;return!0;default:return!1}}function ee(te,I){return te==="symbol"?!0:I?I["@@toStringTag"]==="Symbol"||typeof Symbol=="function"&&I instanceof Symbol:!1}function q(te){var I=typeof te;return Array.isArray(te)?"array":te instanceof RegExp?"object":ee(I,te)?"symbol":I}function Q(te){if(typeof te>"u"||te===null)return""+te;var I=q(te);if(I==="object"){if(te instanceof Date)return"date";if(te instanceof RegExp)return"regexp"}return I}function G(te){var I=Q(te);switch(I){case"array":case"object":return"an "+I;case"boolean":case"date":case"regexp":return"a "+I;default:return I}}function ne(te){return!te.constructor||!te.constructor.name?y:te.constructor.name}return x.checkPropTypes=o,x.resetWarningCache=o.resetWarningCache,x.PropTypes=x,x},gD}var LB;function tye(){if(LB)return uD.exports;LB=1;{var e=kF(),t=!0;uD.exports=eye()(e.isElement,t)}return uD.exports}var nye=tye();const $t=Bt(nye);var rye=Object.getOwnPropertyNames,aye=Object.getOwnPropertySymbols,iye=Object.prototype.hasOwnProperty;function VB(e,t){return function(r,o,s){return e(r,o,s)&&t(r,o,s)}}function Lb(e){return function(n,r,o){if(!n||!r||typeof n!="object"||typeof r!="object")return e(n,r,o);var s=o.cache,c=s.get(n),u=s.get(r);if(c&&u)return c===r&&u===n;s.set(n,r),s.set(r,n);var f=e(n,r,o);return s.delete(n),s.delete(r),f}}function oye(e){return e?.[Symbol.toStringTag]}function $B(e){return rye(e).concat(aye(e))}var sye=Object.hasOwn||(function(e,t){return iye.call(e,t)});function su(e,t){return e===t||!e&&!t&&e!==e&&t!==t}var lye="__v",cye="__o",uye="_owner",BB=Object.getOwnPropertyDescriptor,zB=Object.keys;function dye(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 fye(e,t){return su(e.getTime(),t.getTime())}function mye(e,t){return e.name===t.name&&e.message===t.message&&e.cause===t.cause&&e.stack===t.stack}function hye(e,t){return e===t}function UB(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(),c,u,f=0;(c=s.next())&&!c.done;){for(var m=t.entries(),g=!1,h=0;(u=m.next())&&!u.done;){if(o[h]){h++;continue}var y=c.value,x=u.value;if(n.equals(y[0],x[0],f,h,e,t,n)&&n.equals(y[1],x[1],y[0],x[0],e,t,n)){g=o[h]=!0;break}h++}if(!g)return!1;f++}return!0}var pye=su;function gye(e,t,n){var r=zB(e),o=r.length;if(zB(t).length!==o)return!1;for(;o-- >0;)if(!VF(e,t,n,r[o]))return!1;return!0}function vh(e,t,n){var r=$B(e),o=r.length;if($B(t).length!==o)return!1;for(var s,c,u;o-- >0;)if(s=r[o],!VF(e,t,n,s)||(c=BB(e,s),u=BB(t,s),(c||u)&&(!c||!u||c.configurable!==u.configurable||c.enumerable!==u.enumerable||c.writable!==u.writable)))return!1;return!0}function vye(e,t){return su(e.valueOf(),t.valueOf())}function bye(e,t){return e.source===t.source&&e.flags===t.flags}function qB(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(),c,u;(c=s.next())&&!c.done;){for(var f=t.values(),m=!1,g=0;(u=f.next())&&!u.done;){if(!o[g]&&n.equals(c.value,u.value,c.value,u.value,e,t,n)){m=o[g]=!0;break}g++}if(!m)return!1}return!0}function yye(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 xye(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 VF(e,t,n,r){return(r===uye||r===cye||r===lye)&&(e.$$typeof||t.$$typeof)?!0:sye(t,r)&&n.equals(e[r],t[r],r,r,e,t,n)}var Nye="[object Arguments]",wye="[object Boolean]",Eye="[object Date]",Sye="[object Error]",Aye="[object Map]",Oye="[object Number]",Dye="[object Object]",Cye="[object RegExp]",Tye="[object Set]",_ye="[object String]",jye="[object URL]",Rye=Array.isArray,HB=typeof ArrayBuffer=="function"&&ArrayBuffer.isView?ArrayBuffer.isView:null,FB=Object.assign,Pye=Object.prototype.toString.call.bind(Object.prototype.toString);function Mye(e){var t=e.areArraysEqual,n=e.areDatesEqual,r=e.areErrorsEqual,o=e.areFunctionsEqual,s=e.areMapsEqual,c=e.areNumbersEqual,u=e.areObjectsEqual,f=e.arePrimitiveWrappersEqual,m=e.areRegExpsEqual,g=e.areSetsEqual,h=e.areTypedArraysEqual,y=e.areUrlsEqual,x=e.unknownTagComparators;return function(N,w,D){if(N===w)return!0;if(N==null||w==null)return!1;var C=typeof N;if(C!==typeof w)return!1;if(C!=="object")return C==="number"?c(N,w,D):C==="function"?o(N,w,D):!1;var j=N.constructor;if(j!==w.constructor)return!1;if(j===Object)return u(N,w,D);if(Rye(N))return t(N,w,D);if(HB!=null&&HB(N))return h(N,w,D);if(j===Date)return n(N,w,D);if(j===RegExp)return m(N,w,D);if(j===Map)return s(N,w,D);if(j===Set)return g(N,w,D);var P=Pye(N);if(P===Eye)return n(N,w,D);if(P===Cye)return m(N,w,D);if(P===Aye)return s(N,w,D);if(P===Tye)return g(N,w,D);if(P===Dye)return typeof N.then!="function"&&typeof w.then!="function"&&u(N,w,D);if(P===jye)return y(N,w,D);if(P===Sye)return r(N,w,D);if(P===Nye)return u(N,w,D);if(P===wye||P===Oye||P===_ye)return f(N,w,D);if(x){var A=x[P];if(!A){var T=oye(N);T&&(A=x[T])}if(A)return A(N,w,D)}return!1}}function kye(e){var t=e.circular,n=e.createCustomConfig,r=e.strict,o={areArraysEqual:r?vh:dye,areDatesEqual:fye,areErrorsEqual:mye,areFunctionsEqual:hye,areMapsEqual:r?VB(UB,vh):UB,areNumbersEqual:pye,areObjectsEqual:r?vh:gye,arePrimitiveWrappersEqual:vye,areRegExpsEqual:bye,areSetsEqual:r?VB(qB,vh):qB,areTypedArraysEqual:r?vh:yye,areUrlsEqual:xye,unknownTagComparators:void 0};if(n&&(o=FB({},o,n(o))),t){var s=Lb(o.areArraysEqual),c=Lb(o.areMapsEqual),u=Lb(o.areObjectsEqual),f=Lb(o.areSetsEqual);o=FB({},o,{areArraysEqual:s,areMapsEqual:c,areObjectsEqual:u,areSetsEqual:f})}return o}function Iye(e){return function(t,n,r,o,s,c,u){return e(t,n,u)}}function Lye(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(),h=g.cache,y=h===void 0?t?new WeakMap:void 0:h,x=g.meta;return n(f,m,{cache:y,equals:o,meta:x,strict:s})};if(t)return function(f,m){return n(f,m,{cache:new WeakMap,equals:o,meta:void 0,strict:s})};var c={cache:void 0,equals:o,meta:void 0,strict:s};return function(f,m){return n(f,m,c)}}var Vye=El();El({strict:!0});El({circular:!0});El({circular:!0,strict:!0});El({createInternalComparator:function(){return su}});El({strict:!0,createInternalComparator:function(){return su}});El({circular:!0,createInternalComparator:function(){return su}});El({circular:!0,createInternalComparator:function(){return su},strict:!0});function El(e){e===void 0&&(e={});var t=e.circular,n=t===void 0?!1:t,r=e.createInternalComparator,o=e.createState,s=e.strict,c=s===void 0?!1:s,u=kye(e),f=Mye(u),m=r?r(f):Iye(f);return Lye({circular:n,comparator:f,createState:o,equals:m,strict:c})}function $ye(e){typeof requestAnimationFrame<"u"&&requestAnimationFrame(e)}function KB(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):$ye(o)};requestAnimationFrame(r)}function xT(e){"@babel/helpers - typeof";return xT=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},xT(e)}function Bye(e){return Hye(e)||qye(e)||Uye(e)||zye()}function zye(){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 Uye(e,t){if(e){if(typeof e=="string")return GB(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 GB(e,t)}}function GB(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 qye(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function Hye(e){if(Array.isArray(e))return e}function Fye(){var e={},t=function(){return null},n=!1,r=function o(s){if(!n){if(Array.isArray(s)){if(!s.length)return;var c=s,u=Bye(c),f=u[0],m=u.slice(1);if(typeof f=="number"){KB(o.bind(null,m),f);return}o(f),KB(o.bind(null,m));return}xT(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 bp(e){"@babel/helpers - typeof";return bp=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},bp(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 QB(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){$F(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 $F(e,t,n){return t=Kye(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Kye(e){var t=Gye(e,"string");return bp(t)==="symbol"?t:String(t)}function Gye(e,t){if(bp(e)!=="object"||e===null)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(bp(r)!=="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var Yye=function(t,n){return[Object.keys(t),Object.keys(n)].reduce(function(r,o){return r.filter(function(s){return o.includes(s)})})},Qye=function(t){return t},Xye=function(t){return t.replace(/([A-Z])/g,function(n){return"-".concat(n.toLowerCase())})},Ph=function(t,n){return Object.keys(n).reduce(function(r,o){return QB(QB({},r),{},$F({},o,t(o,n[o])))},{})},XB=function(t,n,r){return t.map(function(o){return"".concat(Xye(o)," ").concat(n,"ms ").concat(r)}).join(",")},$y=function(t,n,r,o,s,c,u,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,c,u,f],g=0;console.warn(n.replace(/%s/g,function(){return m[g++]}))}};function Wye(e,t){return exe(e)||Jye(e,t)||BF(e,t)||Zye()}function Zye(){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 Jye(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r,o,s,c,u=[],f=!0,m=!1;try{if(s=(n=n.call(e)).next,t!==0)for(;!(f=(r=s.call(n)).done)&&(u.push(r.value),u.length!==t);f=!0);}catch(g){m=!0,o=g}finally{try{if(!f&&n.return!=null&&(c=n.return(),Object(c)!==c))return}finally{if(m)throw o}}return u}}function exe(e){if(Array.isArray(e))return e}function txe(e){return axe(e)||rxe(e)||BF(e)||nxe()}function nxe(){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 BF(e,t){if(e){if(typeof e=="string")return NT(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 NT(e,t)}}function rxe(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function axe(e){if(Array.isArray(e))return NT(e)}function NT(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 By=1e-4,zF=function(t,n){return[0,3*t,3*n-6*t,3*t-3*n+1]},UF=function(t,n){return t.map(function(r,o){return r*Math.pow(n,o)}).reduce(function(r,o){return r+o})},WB=function(t,n){return function(r){var o=zF(t,n);return UF(o,r)}},ixe=function(t,n){return function(r){var o=zF(t,n),s=[].concat(txe(o.map(function(c,u){return c*u}).slice(1)),[0]);return UF(s,r)}},ZB=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],c=n[2],u=n[3];if(n.length===1)switch(n[0]){case"linear":o=0,s=0,c=1,u=1;break;case"ease":o=.25,s=.1,c=.25,u=1;break;case"ease-in":o=.42,s=0,c=1,u=1;break;case"ease-out":o=.42,s=0,c=.58,u=1;break;case"ease-in-out":o=0,s=0,c=.58,u=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(w){return parseFloat(w)}),g=Wye(m,4);o=g[0],s=g[1],c=g[2],u=g[3]}else $y(!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)}}$y([o,c,s,u].every(function(w){return typeof w=="number"&&w>=0&&w<=1}),"[configBezier]: arguments should be x1, y1, x2, y2 of [0, 1] instead received %s",n);var h=WB(o,c),y=WB(s,u),x=ixe(o,c),S=function(D){return D>1?1:D<0?0:D},N=function(D){for(var C=D>1?1:D,j=C,P=0;P<8;++P){var A=h(j)-C,T=x(j);if(Math.abs(A-C)<By||T<By)return y(j);j=S(j-A/T)}return y(j)};return N.isStepper=!1,N},oxe=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,c=t.dt,u=c===void 0?17:c,f=function(g,h,y){var x=-(g-h)*r,S=y*s,N=y+(x-S)*u/1e3,w=y*u/1e3+g;return Math.abs(w-h)<By&&Math.abs(N)<By?[h,0]:[w,N]};return f.isStepper=!0,f.dt=u,f},sxe=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 ZB(o);case"spring":return oxe();default:if(o.split("(")[0]==="cubic-bezier")return ZB(o);$y(!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:($y(!1,"[configEasing]: first argument type should be function or string, instead received %s",n),null)};function yp(e){"@babel/helpers - typeof";return yp=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},yp(e)}function JB(e){return uxe(e)||cxe(e)||qF(e)||lxe()}function lxe(){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 cxe(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function uxe(e){if(Array.isArray(e))return ET(e)}function e7(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?e7(Object(n),!0).forEach(function(r){wT(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):e7(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function wT(e,t,n){return t=dxe(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function dxe(e){var t=fxe(e,"string");return yp(t)==="symbol"?t:String(t)}function fxe(e,t){if(yp(e)!=="object"||e===null)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(yp(r)!=="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function mxe(e,t){return gxe(e)||pxe(e,t)||qF(e,t)||hxe()}function hxe(){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 qF(e,t){if(e){if(typeof e=="string")return ET(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 ET(e,t)}}function ET(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 pxe(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r,o,s,c,u=[],f=!0,m=!1;try{if(s=(n=n.call(e)).next,t!==0)for(;!(f=(r=s.call(n)).done)&&(u.push(r.value),u.length!==t);f=!0);}catch(g){m=!0,o=g}finally{try{if(!f&&n.return!=null&&(c=n.return(),Object(c)!==c))return}finally{if(m)throw o}}return u}}function gxe(e){if(Array.isArray(e))return e}var zy=function(t,n,r){return t+(n-t)*r},ST=function(t){var n=t.from,r=t.to;return n!==r},vxe=function e(t,n,r){var o=Ph(function(s,c){if(ST(c)){var u=t(c.from,c.to,c.velocity),f=mxe(u,2),m=f[0],g=f[1];return rr(rr({},c),{},{from:m,velocity:g})}return c},n);return r<1?Ph(function(s,c){return ST(c)?rr(rr({},c),{},{velocity:zy(c.velocity,o[s].velocity,r),from:zy(c.from,o[s].from,r)}):c},n):e(t,o,r-1)};const bxe=(function(e,t,n,r,o){var s=Yye(e,t),c=s.reduce(function(w,D){return rr(rr({},w),{},wT({},D,[e[D],t[D]]))},{}),u=s.reduce(function(w,D){return rr(rr({},w),{},wT({},D,{from:e[D],velocity:0,to:t[D]}))},{}),f=-1,m,g,h=function(){return null},y=function(){return Ph(function(D,C){return C.from},u)},x=function(){return!Object.values(u).filter(ST).length},S=function(D){m||(m=D);var C=D-m,j=C/n.dt;u=vxe(n,u,j),o(rr(rr(rr({},e),t),y())),m=D,x()||(f=requestAnimationFrame(h))},N=function(D){g||(g=D);var C=(D-g)/r,j=Ph(function(A,T){return zy.apply(void 0,JB(T).concat([n(C)]))},c);if(o(rr(rr(rr({},e),t),j)),C<1)f=requestAnimationFrame(h);else{var P=Ph(function(A,T){return zy.apply(void 0,JB(T).concat([n(1)]))},c);o(rr(rr(rr({},e),t),P))}};return h=n.isStepper?S:N,function(){return requestAnimationFrame(h),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 yxe=["children","begin","duration","attributeName","easing","isActive","steps","from","to","canBegin","onAnimationEnd","shouldReAnimate","onAnimationReStart"];function xxe(e,t){if(e==null)return{};var n=Nxe(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 Nxe(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 vD(e){return Axe(e)||Sxe(e)||Exe(e)||wxe()}function wxe(){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 Exe(e,t){if(e){if(typeof e=="string")return AT(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 AT(e,t)}}function Sxe(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function Axe(e){if(Array.isArray(e))return AT(e)}function AT(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 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 ri(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){Eh(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 Eh(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 Oxe(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Dxe(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 Cxe(e,t,n){return t&&Dxe(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function HF(e){var t=Txe(e,"string");return Kd(t)==="symbol"?t:String(t)}function Txe(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 _xe(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&&OT(e,t)}function OT(e,t){return OT=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,o){return r.__proto__=o,r},OT(e,t)}function jxe(e){var t=Rxe();return function(){var r=Uy(e),o;if(t){var s=Uy(this).constructor;o=Reflect.construct(r,arguments,s)}else o=r.apply(this,arguments);return DT(this,o)}}function DT(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 CT(e)}function CT(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Rxe(){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 Uy(e){return Uy=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},Uy(e)}var fo=(function(e){_xe(n,e);var t=jxe(n);function n(r,o){var s;Oxe(this,n),s=t.call(this,r,o);var c=s.props,u=c.isActive,f=c.attributeName,m=c.from,g=c.to,h=c.steps,y=c.children,x=c.duration;if(s.handleStyleChange=s.handleStyleChange.bind(CT(s)),s.changeStyle=s.changeStyle.bind(CT(s)),!u||x<=0)return s.state={style:{}},typeof y=="function"&&(s.state={style:g}),DT(s);if(h&&h.length)s.state={style:h[0].style};else if(m){if(typeof y=="function")return s.state={style:m},DT(s);s.state={style:f?Eh({},f,m):m}}else s.state={style:{}};return s}return Cxe(n,[{key:"componentDidMount",value:function(){var o=this.props,s=o.isActive,c=o.canBegin;this.mounted=!0,!(!s||!c)&&this.runAnimation(this.props)}},{key:"componentDidUpdate",value:function(o){var s=this.props,c=s.isActive,u=s.canBegin,f=s.attributeName,m=s.shouldReAnimate,g=s.to,h=s.from,y=this.state.style;if(u){if(!c){var x={style:f?Eh({},f,g):g};this.state&&y&&(f&&y[f]!==g||!f&&y!==g)&&this.setState(x);return}if(!(Vye(o.to,g)&&o.canBegin&&o.isActive)){var S=!o.canBegin||!o.isActive;this.manager&&this.manager.stop(),this.stopJSAnimation&&this.stopJSAnimation();var N=S||m?h:o.to;if(this.state&&y){var w={style:f?Eh({},f,N):N};(f&&y[f]!==N||!f&&y!==N)&&this.setState(w)}this.runAnimation(ri(ri({},this.props),{},{from:N,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,c=o.from,u=o.to,f=o.duration,m=o.easing,g=o.begin,h=o.onAnimationEnd,y=o.onAnimationStart,x=bxe(c,u,sxe(m),f,this.changeStyle),S=function(){s.stopJSAnimation=x()};this.manager.start([y,g,S,f,h])}},{key:"runStepAnimation",value:function(o){var s=this,c=o.steps,u=o.begin,f=o.onAnimationStart,m=c[0],g=m.style,h=m.duration,y=h===void 0?0:h,x=function(N,w,D){if(D===0)return N;var C=w.duration,j=w.easing,P=j===void 0?"ease":j,A=w.style,T=w.properties,R=w.onAnimationEnd,M=D>0?c[D-1]:w,$=T||Object.keys(A);if(typeof P=="function"||P==="spring")return[].concat(vD(N),[s.runJSAnimation.bind(s,{from:M.style,to:A,duration:C,easing:P}),C]);var z=XB($,C,P),U=ri(ri(ri({},M.style),A),{},{transition:z});return[].concat(vD(N),[U,C,R]).filter(Qye)};return this.manager.start([f].concat(vD(c.reduce(x,[g,Math.max(y,u)])),[o.onAnimationEnd]))}},{key:"runAnimation",value:function(o){this.manager||(this.manager=Fye());var s=o.begin,c=o.duration,u=o.attributeName,f=o.to,m=o.easing,g=o.onAnimationStart,h=o.onAnimationEnd,y=o.steps,x=o.children,S=this.manager;if(this.unSubscribe=S.subscribe(this.handleStyleChange),typeof m=="function"||typeof x=="function"||m==="spring"){this.runJSAnimation(o);return}if(y.length>1){this.runStepAnimation(o);return}var N=u?Eh({},u,f):f,w=XB(Object.keys(N),c,m);S.start([g,s,ri(ri({},N),{},{transition:w}),c,h])}},{key:"render",value:function(){var o=this.props,s=o.children;o.begin;var c=o.duration;o.attributeName,o.easing;var u=o.isActive;o.steps,o.from,o.to,o.canBegin,o.onAnimationEnd,o.shouldReAnimate,o.onAnimationReStart;var f=xxe(o,yxe),m=_.Children.count(s),g=this.state.style;if(typeof s=="function")return s(g);if(!u||m===0||c<=0)return s;var h=function(x){var S=x.props,N=S.style,w=N===void 0?{}:N,D=S.className,C=_.cloneElement(x,ri(ri({},f),{},{style:ri(ri({},w),g),className:D}));return C};return m===1?h(_.Children.only(s)):K.createElement("div",null,_.Children.map(s,function(y){return h(y)}))}}]),n})(_.PureComponent);fo.displayName="Animate";fo.defaultProps={begin:0,duration:1e3,from:"",to:"",attributeName:"",easing:"ease",isActive:!0,canBegin:!0,steps:[],onAnimationEnd:function(){},onAnimationStart:function(){}};fo.propTypes={from:$t.oneOfType([$t.object,$t.string]),to:$t.oneOfType([$t.object,$t.string]),attributeName:$t.string,duration:$t.number,begin:$t.number,easing:$t.oneOfType([$t.string,$t.func]),steps:$t.arrayOf($t.shape({duration:$t.number.isRequired,style:$t.object.isRequired,easing:$t.oneOfType([$t.oneOf(["ease","ease-in","ease-out","ease-in-out","linear"]),$t.func]),properties:$t.arrayOf("string"),onAnimationEnd:$t.func})),children:$t.oneOfType([$t.node,$t.func]),isActive:$t.bool,canBegin:$t.bool,onAnimationEnd:$t.func,shouldReAnimate:$t.bool,onAnimationStart:$t.func,onAnimationReStart:$t.func};function xp(e){"@babel/helpers - typeof";return xp=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},xp(e)}function qy(){return qy=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},qy.apply(this,arguments)}function Pxe(e,t){return Lxe(e)||Ixe(e,t)||kxe(e,t)||Mxe()}function Mxe(){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 kxe(e,t){if(e){if(typeof e=="string")return n7(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 n7(e,t)}}function n7(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 Ixe(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r,o,s,c,u=[],f=!0,m=!1;try{if(s=(n=n.call(e)).next,t!==0)for(;!(f=(r=s.call(n)).done)&&(u.push(r.value),u.length!==t);f=!0);}catch(g){m=!0,o=g}finally{try{if(!f&&n.return!=null&&(c=n.return(),Object(c)!==c))return}finally{if(m)throw o}}return u}}function Lxe(e){if(Array.isArray(e))return e}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){Vxe(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 Vxe(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=Bxe(e,"string");return xp(t)=="symbol"?t:t+""}function Bxe(e,t){if(xp(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(xp(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var i7=function(t,n,r,o,s){var c=Math.min(Math.abs(r)/2,Math.abs(o)/2),u=o>=0?1:-1,f=r>=0?1:-1,m=o>=0&&r>=0||o<0&&r<0?1:0,g;if(c>0&&s instanceof Array){for(var h=[0,0,0,0],y=0,x=4;y<x;y++)h[y]=s[y]>c?c:s[y];g="M".concat(t,",").concat(n+u*h[0]),h[0]>0&&(g+="A ".concat(h[0],",").concat(h[0],",0,0,").concat(m,",").concat(t+f*h[0],",").concat(n)),g+="L ".concat(t+r-f*h[1],",").concat(n),h[1]>0&&(g+="A ".concat(h[1],",").concat(h[1],",0,0,").concat(m,`,
|
||
`).concat(t+r,",").concat(n+u*h[1])),g+="L ".concat(t+r,",").concat(n+o-u*h[2]),h[2]>0&&(g+="A ".concat(h[2],",").concat(h[2],",0,0,").concat(m,`,
|
||
`).concat(t+r-f*h[2],",").concat(n+o)),g+="L ".concat(t+f*h[3],",").concat(n+o),h[3]>0&&(g+="A ".concat(h[3],",").concat(h[3],",0,0,").concat(m,`,
|
||
`).concat(t,",").concat(n+o-u*h[3])),g+="Z"}else if(c>0&&s===+s&&s>0){var S=Math.min(c,s);g="M ".concat(t,",").concat(n+u*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+u*S,`
|
||
L `).concat(t+r,",").concat(n+o-u*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-u*S," Z")}else g="M ".concat(t,",").concat(n," h ").concat(r," v ").concat(o," h ").concat(-r," Z");return g},zxe=function(t,n){if(!t||!n)return!1;var r=t.x,o=t.y,s=n.x,c=n.y,u=n.width,f=n.height;if(Math.abs(u)>0&&Math.abs(f)>0){var m=Math.min(s,s+u),g=Math.max(s,s+u),h=Math.min(c,c+f),y=Math.max(c,c+f);return r>=m&&r<=g&&o>=h&&o<=y}return!1},Uxe={x:0,y:0,width:0,height:0,radius:0,isAnimationActive:!1,isUpdateAnimationActive:!1,animationBegin:0,animationDuration:1500,animationEasing:"ease"},Hj=function(t){var n=a7(a7({},Uxe),t),r=_.useRef(),o=_.useState(-1),s=Pxe(o,2),c=s[0],u=s[1];_.useEffect(function(){if(r.current&&r.current.getTotalLength)try{var P=r.current.getTotalLength();P&&u(P)}catch{}},[]);var f=n.x,m=n.y,g=n.width,h=n.height,y=n.radius,x=n.className,S=n.animationEasing,N=n.animationDuration,w=n.animationBegin,D=n.isAnimationActive,C=n.isUpdateAnimationActive;if(f!==+f||m!==+m||g!==+g||h!==+h||g===0||h===0)return null;var j=it("recharts-rectangle",x);return C?K.createElement(fo,{canBegin:c>0,from:{width:g,height:h,x:f,y:m},to:{width:g,height:h,x:f,y:m},duration:N,animationEasing:S,isActive:C},function(P){var A=P.width,T=P.height,R=P.x,M=P.y;return K.createElement(fo,{canBegin:c>0,from:"0px ".concat(c===-1?1:c,"px"),to:"".concat(c,"px 0px"),attributeName:"strokeDasharray",begin:w,duration:N,isActive:D,easing:S},K.createElement("path",qy({},Fe(n,!0),{className:j,d:i7(R,M,A,T,y),ref:r})))}):K.createElement("path",qy({},Fe(n,!0),{className:j,d:i7(f,m,g,h,y)}))},qxe=["points","className","baseLinePoints","connectNulls"];function Ed(){return Ed=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},Ed.apply(this,arguments)}function Hxe(e,t){if(e==null)return{};var n=Fxe(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 Fxe(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 o7(e){return Qxe(e)||Yxe(e)||Gxe(e)||Kxe()}function Kxe(){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 Gxe(e,t){if(e){if(typeof e=="string")return TT(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 TT(e,t)}}function Yxe(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function Qxe(e){if(Array.isArray(e))return TT(e)}function TT(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 s7=function(t){return t&&t.x===+t.x&&t.y===+t.y},Xxe=function(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],n=[[]];return t.forEach(function(r){s7(r)?n[n.length-1].push(r):n[n.length-1].length>0&&n.push([])}),s7(t[0])&&n[n.length-1].push(t[0]),n[n.length-1].length<=0&&(n=n.slice(0,-1)),n},Mh=function(t,n){var r=Xxe(t);n&&(r=[r.reduce(function(s,c){return[].concat(o7(s),o7(c))},[])]);var o=r.map(function(s){return s.reduce(function(c,u,f){return"".concat(c).concat(f===0?"M":"L").concat(u.x,",").concat(u.y)},"")}).join("");return r.length===1?"".concat(o,"Z"):o},Wxe=function(t,n,r){var o=Mh(t,r);return"".concat(o.slice(-1)==="Z"?o.slice(0,-1):o,"L").concat(Mh(n.reverse(),r).slice(1))},Zxe=function(t){var n=t.points,r=t.className,o=t.baseLinePoints,s=t.connectNulls,c=Hxe(t,qxe);if(!n||!n.length)return null;var u=it("recharts-polygon",r);if(o&&o.length){var f=c.stroke&&c.stroke!=="none",m=Wxe(n,o,s);return K.createElement("g",{className:u},K.createElement("path",Ed({},Fe(c,!0),{fill:m.slice(-1)==="Z"?c.fill:"none",stroke:"none",d:m})),f?K.createElement("path",Ed({},Fe(c,!0),{fill:"none",d:Mh(n,s)})):null,f?K.createElement("path",Ed({},Fe(c,!0),{fill:"none",d:Mh(o,s)})):null)}var g=Mh(n,s);return K.createElement("path",Ed({},Fe(c,!0),{fill:g.slice(-1)==="Z"?c.fill:"none",className:u,d:g}))};function _T(){return _T=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},_T.apply(this,arguments)}var l0=function(t){var n=t.cx,r=t.cy,o=t.r,s=t.className,c=it("recharts-dot",s);return n===+n&&r===+r&&o===+o?_.createElement("circle",_T({},Fe(t,!1),fy(t),{className:c,cx:n,cy:r,r:o})):null};function Np(e){"@babel/helpers - typeof";return Np=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},Np(e)}var Jxe=["x","y","top","left","width","height","className"];function jT(){return jT=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},jT.apply(this,arguments)}function l7(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 e0e(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?l7(Object(n),!0).forEach(function(r){t0e(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):l7(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function t0e(e,t,n){return t=n0e(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function n0e(e){var t=r0e(e,"string");return Np(t)=="symbol"?t:t+""}function r0e(e,t){if(Np(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(Np(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function a0e(e,t){if(e==null)return{};var n=i0e(e,t),r,o;if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(e);for(o=0;o<s.length;o++)r=s[o],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function i0e(e,t){if(e==null)return{};var n={};for(var r in e)if(Object.prototype.hasOwnProperty.call(e,r)){if(t.indexOf(r)>=0)continue;n[r]=e[r]}return n}var o0e=function(t,n,r,o,s,c){return"M".concat(t,",").concat(s,"v").concat(o,"M").concat(c,",").concat(n,"h").concat(r)},s0e=function(t){var n=t.x,r=n===void 0?0:n,o=t.y,s=o===void 0?0:o,c=t.top,u=c===void 0?0:c,f=t.left,m=f===void 0?0:f,g=t.width,h=g===void 0?0:g,y=t.height,x=y===void 0?0:y,S=t.className,N=a0e(t,Jxe),w=e0e({x:r,y:s,top:u,left:m,width:h,height:x},N);return!Oe(r)||!Oe(s)||!Oe(h)||!Oe(x)||!Oe(u)||!Oe(m)?null:K.createElement("path",jT({},Fe(w,!0),{className:it("recharts-cross",S),d:o0e(r,s,h,x,u,m)}))},bD,c7;function l0e(){if(c7)return bD;c7=1;var e=r0(),t=nF(),n=vo();function r(o,s){return o&&o.length?e(o,n(s,2),t):void 0}return bD=r,bD}var c0e=l0e();const u0e=Bt(c0e);var yD,u7;function d0e(){if(u7)return yD;u7=1;var e=r0(),t=vo(),n=rF();function r(o,s){return o&&o.length?e(o,t(s,2),n):void 0}return yD=r,yD}var f0e=d0e();const m0e=Bt(f0e);var h0e=["cx","cy","angle","ticks","axisLine"],p0e=["ticks","tick","angle","tickFormatter","stroke"];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 kh(){return kh=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},kh.apply(this,arguments)}function d7(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),n.push.apply(n,r)}return n}function hc(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){c0(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 f7(e,t){if(e==null)return{};var n=g0e(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 g0e(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 v0e(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function m7(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,KF(r.key),r)}}function b0e(e,t,n){return t&&m7(e.prototype,t),n&&m7(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function y0e(e,t,n){return t=Hy(t),x0e(e,FF()?Reflect.construct(t,n||[],Hy(e).constructor):t.apply(e,n))}function x0e(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 N0e(e)}function N0e(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 Hy(e){return Hy=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},Hy(e)}function w0e(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&&RT(e,t)}function RT(e,t){return RT=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,o){return r.__proto__=o,r},RT(e,t)}function c0(e,t,n){return t=KF(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function KF(e){var t=E0e(e,"string");return Gd(t)=="symbol"?t:t+""}function E0e(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 u0=(function(e){function t(){return v0e(this,t),y0e(this,t,arguments)}return w0e(t,e),b0e(t,[{key:"getTickValueCoord",value:function(r){var o=r.coordinate,s=this.props,c=s.angle,u=s.cx,f=s.cy;return en(u,f,o,c)}},{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,c=r.angle,u=r.ticks,f=u0e(u,function(g){return g.coordinate||0}),m=m0e(u,function(g){return g.coordinate||0});return{cx:o,cy:s,startAngle:c,endAngle:c,innerRadius:m.coordinate||0,outerRadius:f.coordinate||0}}},{key:"renderAxisLine",value:function(){var r=this.props,o=r.cx,s=r.cy,c=r.angle,u=r.ticks,f=r.axisLine,m=f7(r,h0e),g=u.reduce(function(S,N){return[Math.min(S[0],N.coordinate),Math.max(S[1],N.coordinate)]},[1/0,-1/0]),h=en(o,s,g[0],c),y=en(o,s,g[1],c),x=hc(hc(hc({},Fe(m,!1)),{},{fill:"none"},Fe(f,!1)),{},{x1:h.x,y1:h.y,x2:y.x,y2:y.y});return K.createElement("line",kh({className:"recharts-polar-radius-axis-line"},x))}},{key:"renderTicks",value:function(){var r=this,o=this.props,s=o.ticks,c=o.tick,u=o.angle,f=o.tickFormatter,m=o.stroke,g=f7(o,p0e),h=this.getTickTextAnchor(),y=Fe(g,!1),x=Fe(c,!1),S=s.map(function(N,w){var D=r.getTickValueCoord(N),C=hc(hc(hc(hc({textAnchor:h,transform:"rotate(".concat(90-u,", ").concat(D.x,", ").concat(D.y,")")},y),{},{stroke:"none",fill:m},x),{},{index:w},D),{},{payload:N});return K.createElement(Dt,kh({className:it("recharts-polar-radius-axis-tick",jF(c)),key:"tick-".concat(N.coordinate)},Hc(r.props,N,w)),t.renderTickItem(c,C,f?f(N.value,w):N.value))});return K.createElement(Dt,{className:"recharts-polar-radius-axis-ticks"},S)}},{key:"render",value:function(){var r=this.props,o=r.ticks,s=r.axisLine,c=r.tick;return!o||!o.length?null:K.createElement(Dt,{className:it("recharts-polar-radius-axis",this.props.className)},s&&this.renderAxisLine(),c&&this.renderTicks(),Xn.renderCallByParent(this.props,this.getViewBox()))}}],[{key:"renderTickItem",value:function(r,o,s){var c;return K.isValidElement(r)?c=K.cloneElement(r,o):Xe(r)?c=r(o):c=K.createElement(Fc,kh({},o,{className:"recharts-polar-radius-axis-tick-value"}),s),c}}])})(_.PureComponent);c0(u0,"displayName","PolarRadiusAxis");c0(u0,"axisType","radiusAxis");c0(u0,"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 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 xc(){return xc=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},xc.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 pc(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){d0(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 S0e(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function p7(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,YF(r.key),r)}}function A0e(e,t,n){return t&&p7(e.prototype,t),n&&p7(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function O0e(e,t,n){return t=Fy(t),D0e(e,GF()?Reflect.construct(t,n||[],Fy(e).constructor):t.apply(e,n))}function D0e(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 C0e(e)}function C0e(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function GF(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(GF=function(){return!!e})()}function Fy(e){return Fy=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},Fy(e)}function T0e(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&&PT(e,t)}function PT(e,t){return PT=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,o){return r.__proto__=o,r},PT(e,t)}function d0(e,t,n){return t=YF(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function YF(e){var t=_0e(e,"string");return Yd(t)=="symbol"?t:t+""}function _0e(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 j0e=Math.PI/180,g7=1e-5,f0=(function(e){function t(){return S0e(this,t),O0e(this,t,arguments)}return T0e(t,e),A0e(t,[{key:"getTickLineCoord",value:function(r){var o=this.props,s=o.cx,c=o.cy,u=o.radius,f=o.orientation,m=o.tickSize,g=m||8,h=en(s,c,u,r.coordinate),y=en(s,c,u+(f==="inner"?-1:1)*g,r.coordinate);return{x1:h.x,y1:h.y,x2:y.x,y2:y.y}}},{key:"getTickTextAnchor",value:function(r){var o=this.props.orientation,s=Math.cos(-r.coordinate*j0e),c;return s>g7?c=o==="outer"?"start":"end":s<-g7?c=o==="outer"?"end":"start":c="middle",c}},{key:"renderAxisLine",value:function(){var r=this.props,o=r.cx,s=r.cy,c=r.radius,u=r.axisLine,f=r.axisLineType,m=pc(pc({},Fe(this.props,!1)),{},{fill:"none"},Fe(u,!1));if(f==="circle")return K.createElement(l0,xc({className:"recharts-polar-angle-axis-line"},m,{cx:o,cy:s,r:c}));var g=this.props.ticks,h=g.map(function(y){return en(o,s,c,y.coordinate)});return K.createElement(Zxe,xc({className:"recharts-polar-angle-axis-line"},m,{points:h}))}},{key:"renderTicks",value:function(){var r=this,o=this.props,s=o.ticks,c=o.tick,u=o.tickLine,f=o.tickFormatter,m=o.stroke,g=Fe(this.props,!1),h=Fe(c,!1),y=pc(pc({},g),{},{fill:"none"},Fe(u,!1)),x=s.map(function(S,N){var w=r.getTickLineCoord(S),D=r.getTickTextAnchor(S),C=pc(pc(pc({textAnchor:D},g),{},{stroke:"none",fill:m},h),{},{index:N,payload:S,x:w.x2,y:w.y2});return K.createElement(Dt,xc({className:it("recharts-polar-angle-axis-tick",jF(c)),key:"tick-".concat(S.coordinate)},Hc(r.props,S,N)),u&&K.createElement("line",xc({className:"recharts-polar-angle-axis-tick-line"},y,w)),c&&t.renderTickItem(c,C,f?f(S.value,N):S.value))});return K.createElement(Dt,{className:"recharts-polar-angle-axis-ticks"},x)}},{key:"render",value:function(){var r=this.props,o=r.ticks,s=r.radius,c=r.axisLine;return s<=0||!o||!o.length?null:K.createElement(Dt,{className:it("recharts-polar-angle-axis",this.props.className)},c&&this.renderAxisLine(),this.renderTicks())}}],[{key:"renderTickItem",value:function(r,o,s){var c;return K.isValidElement(r)?c=K.cloneElement(r,o):Xe(r)?c=r(o):c=K.createElement(Fc,xc({},o,{className:"recharts-polar-angle-axis-tick-value"}),s),c}}])})(_.PureComponent);d0(f0,"displayName","PolarAngleAxis");d0(f0,"axisType","angleAxis");d0(f0,"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 xD,v7;function R0e(){if(v7)return xD;v7=1;var e=tH(),t=e(Object.getPrototypeOf,Object);return xD=t,xD}var ND,b7;function P0e(){if(b7)return ND;b7=1;var e=fs(),t=R0e(),n=ms(),r="[object Object]",o=Function.prototype,s=Object.prototype,c=o.toString,u=s.hasOwnProperty,f=c.call(Object);function m(g){if(!n(g)||e(g)!=r)return!1;var h=t(g);if(h===null)return!0;var y=u.call(h,"constructor")&&h.constructor;return typeof y=="function"&&y instanceof y&&c.call(y)==f}return ND=m,ND}var M0e=P0e();const k0e=Bt(M0e);var wD,y7;function I0e(){if(y7)return wD;y7=1;var e=fs(),t=ms(),n="[object Boolean]";function r(o){return o===!0||o===!1||t(o)&&e(o)==n}return wD=r,wD}var L0e=I0e();const V0e=Bt(L0e);function wp(e){"@babel/helpers - typeof";return wp=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},wp(e)}function Ky(){return Ky=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},Ky.apply(this,arguments)}function $0e(e,t){return q0e(e)||U0e(e,t)||z0e(e,t)||B0e()}function B0e(){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 z0e(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 U0e(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r,o,s,c,u=[],f=!0,m=!1;try{if(s=(n=n.call(e)).next,t!==0)for(;!(f=(r=s.call(n)).done)&&(u.push(r.value),u.length!==t);f=!0);}catch(g){m=!0,o=g}finally{try{if(!f&&n.return!=null&&(c=n.return(),Object(c)!==c))return}finally{if(m)throw o}}return u}}function q0e(e){if(Array.isArray(e))return e}function N7(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 w7(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?N7(Object(n),!0).forEach(function(r){H0e(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):N7(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function H0e(e,t,n){return t=F0e(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function F0e(e){var t=K0e(e,"string");return wp(t)=="symbol"?t:t+""}function K0e(e,t){if(wp(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(wp(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var E7=function(t,n,r,o,s){var c=r-o,u;return u="M ".concat(t,",").concat(n),u+="L ".concat(t+r,",").concat(n),u+="L ".concat(t+r-c/2,",").concat(n+s),u+="L ".concat(t+r-c/2-o,",").concat(n+s),u+="L ".concat(t,",").concat(n," Z"),u},G0e={x:0,y:0,upperWidth:0,lowerWidth:0,height:0,isUpdateAnimationActive:!1,animationBegin:0,animationDuration:1500,animationEasing:"ease"},Y0e=function(t){var n=w7(w7({},G0e),t),r=_.useRef(),o=_.useState(-1),s=$0e(o,2),c=s[0],u=s[1];_.useEffect(function(){if(r.current&&r.current.getTotalLength)try{var j=r.current.getTotalLength();j&&u(j)}catch{}},[]);var f=n.x,m=n.y,g=n.upperWidth,h=n.lowerWidth,y=n.height,x=n.className,S=n.animationEasing,N=n.animationDuration,w=n.animationBegin,D=n.isUpdateAnimationActive;if(f!==+f||m!==+m||g!==+g||h!==+h||y!==+y||g===0&&h===0||y===0)return null;var C=it("recharts-trapezoid",x);return D?K.createElement(fo,{canBegin:c>0,from:{upperWidth:0,lowerWidth:0,height:y,x:f,y:m},to:{upperWidth:g,lowerWidth:h,height:y,x:f,y:m},duration:N,animationEasing:S,isActive:D},function(j){var P=j.upperWidth,A=j.lowerWidth,T=j.height,R=j.x,M=j.y;return K.createElement(fo,{canBegin:c>0,from:"0px ".concat(c===-1?1:c,"px"),to:"".concat(c,"px 0px"),attributeName:"strokeDasharray",begin:w,duration:N,easing:S},K.createElement("path",Ky({},Fe(n,!0),{className:C,d:E7(R,M,P,A,T),ref:r})))}):K.createElement("g",null,K.createElement("path",Ky({},Fe(n,!0),{className:C,d:E7(f,m,g,h,y)})))},Q0e=["option","shapeType","propTransformer","activeClassName","isActive"];function Ep(e){"@babel/helpers - typeof";return Ep=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},Ep(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}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 Gy(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){Z0e(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 Z0e(e,t,n){return t=J0e(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function J0e(e){var t=e1e(e,"string");return Ep(t)=="symbol"?t:t+""}function e1e(e,t){if(Ep(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(Ep(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function t1e(e,t){return Gy(Gy({},t),e)}function n1e(e,t){return e==="symbols"}function A7(e){var t=e.shapeType,n=e.elementProps;switch(t){case"rectangle":return K.createElement(Hj,n);case"trapezoid":return K.createElement(Y0e,n);case"sector":return K.createElement(MF,n);case"symbols":if(n1e(t))return K.createElement(cj,n);break;default:return null}}function r1e(e){return _.isValidElement(e)?e.props:e}function QF(e){var t=e.option,n=e.shapeType,r=e.propTransformer,o=r===void 0?t1e:r,s=e.activeClassName,c=s===void 0?"recharts-active-shape":s,u=e.isActive,f=X0e(e,Q0e),m;if(_.isValidElement(t))m=_.cloneElement(t,Gy(Gy({},f),r1e(t)));else if(Xe(t))m=t(f);else if(k0e(t)&&!V0e(t)){var g=o(t,f);m=K.createElement(A7,{shapeType:n,elementProps:g})}else{var h=f;m=K.createElement(A7,{shapeType:n,elementProps:h})}return u?K.createElement(Dt,{className:c},m):m}function m0(e,t){return t!=null&&"trapezoids"in e.props}function h0(e,t){return t!=null&&"sectors"in e.props}function Sp(e,t){return t!=null&&"points"in e.props}function a1e(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 i1e(e,t){var n=e.endAngle===t.endAngle,r=e.startAngle===t.startAngle;return n&&r}function o1e(e,t){var n=e.x===t.x,r=e.y===t.y,o=e.z===t.z;return n&&r&&o}function s1e(e,t){var n;return m0(e,t)?n=a1e:h0(e,t)?n=i1e:Sp(e,t)&&(n=o1e),n}function l1e(e,t){var n;return m0(e,t)?n="trapezoids":h0(e,t)?n="sectors":Sp(e,t)&&(n="points"),n}function c1e(e,t){if(m0(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(h0(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 Sp(e,t)?t.payload:{}}function u1e(e){var t=e.activeTooltipItem,n=e.graphicalItem,r=e.itemData,o=l1e(n,t),s=c1e(n,t),c=r.filter(function(f,m){var g=Hd(s,f),h=n.props[o].filter(function(S){var N=s1e(n,t);return N(S,t)}),y=n.props[o].indexOf(h[h.length-1]),x=m===y;return g&&x}),u=r.indexOf(c[c.length-1]);return u}var Yb;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 Sd(){return Sd=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},Sd.apply(this,arguments)}function O7(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),n.push.apply(n,r)}return n}function Zt(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?O7(Object(n),!0).forEach(function(r){Va(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):O7(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function d1e(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function D7(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,WF(r.key),r)}}function f1e(e,t,n){return t&&D7(e.prototype,t),n&&D7(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function m1e(e,t,n){return t=Yy(t),h1e(e,XF()?Reflect.construct(t,n||[],Yy(e).constructor):t.apply(e,n))}function h1e(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 p1e(e)}function p1e(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function XF(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(XF=function(){return!!e})()}function Yy(e){return Yy=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},Yy(e)}function g1e(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&&MT(e,t)}function MT(e,t){return MT=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,o){return r.__proto__=o,r},MT(e,t)}function Va(e,t,n){return t=WF(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function WF(e){var t=v1e(e,"string");return Qd(t)=="symbol"?t:t+""}function v1e(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 ps=(function(e){function t(n){var r;return d1e(this,t),r=m1e(this,t,[n]),Va(r,"pieRef",null),Va(r,"sectorRefs",[]),Va(r,"id",wf("recharts-pie-")),Va(r,"handleAnimationEnd",function(){var o=r.props.onAnimationEnd;r.setState({isAnimationFinished:!0}),Xe(o)&&o()}),Va(r,"handleAnimationStart",function(){var o=r.props.onAnimationStart;r.setState({isAnimationFinished:!1}),Xe(o)&&o()}),r.state={isAnimationFinished:!n.isAnimationActive,prevIsAnimationActive:n.isAnimationActive,prevAnimationId:n.animationId,sectorToFocus:0},r}return g1e(t,e),f1e(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,c=s.label,u=s.labelLine,f=s.dataKey,m=s.valueKey,g=Fe(this.props,!1),h=Fe(c,!1),y=Fe(u,!1),x=c&&c.offsetRadius||20,S=r.map(function(N,w){var D=(N.startAngle+N.endAngle)/2,C=en(N.cx,N.cy,N.outerRadius+x,D),j=Zt(Zt(Zt(Zt({},g),N),{},{stroke:"none"},h),{},{index:w,textAnchor:t.getTextAnchor(C.x,N.cx)},C),P=Zt(Zt(Zt(Zt({},g),N),{},{fill:"none",stroke:N.fill},y),{},{index:w,points:[en(N.cx,N.cy,N.outerRadius,D),C]}),A=f;return ot(f)&&ot(m)?A="value":ot(f)&&(A=m),K.createElement(Dt,{key:"label-".concat(N.startAngle,"-").concat(N.endAngle,"-").concat(N.midAngle,"-").concat(w)},u&&t.renderLabelLineItem(u,P,"line"),t.renderLabelItem(c,j,$n(N,A)))});return K.createElement(Dt,{className:"recharts-pie-labels"},S)}},{key:"renderSectorsStatically",value:function(r){var o=this,s=this.props,c=s.activeShape,u=s.blendStroke,f=s.inactiveShape;return r.map(function(m,g){if(m?.startAngle===0&&m?.endAngle===0&&r.length!==1)return null;var h=o.isActiveIndex(g),y=f&&o.hasActiveIndex()?f:null,x=h?c:y,S=Zt(Zt({},m),{},{stroke:u?m.fill:m.stroke,tabIndex:-1});return K.createElement(Dt,Sd({ref:function(w){w&&!o.sectorRefs.includes(w)&&o.sectorRefs.push(w)},tabIndex:-1,className:"recharts-pie-sector"},Hc(o.props,m,g),{key:"sector-".concat(m?.startAngle,"-").concat(m?.endAngle,"-").concat(m.midAngle,"-").concat(g)}),K.createElement(QF,Sd({option:x,isActive:h,shapeType:"sector"},S)))})}},{key:"renderSectorsWithAnimation",value:function(){var r=this,o=this.props,s=o.sectors,c=o.isAnimationActive,u=o.animationBegin,f=o.animationDuration,m=o.animationEasing,g=o.animationId,h=this.state,y=h.prevSectors,x=h.prevIsAnimationActive;return K.createElement(fo,{begin:u,duration:f,isActive:c,easing:m,from:{t:0},to:{t:1},key:"pie-".concat(g,"-").concat(x),onAnimationStart:this.handleAnimationStart,onAnimationEnd:this.handleAnimationEnd},function(S){var N=S.t,w=[],D=s&&s[0],C=D.startAngle;return s.forEach(function(j,P){var A=y&&y[P],T=P>0?va(j,"paddingAngle",0):0;if(A){var R=Fr(A.endAngle-A.startAngle,j.endAngle-j.startAngle),M=Zt(Zt({},j),{},{startAngle:C+T,endAngle:C+R(N)+T});w.push(M),C=M.endAngle}else{var $=j.endAngle,z=j.startAngle,U=Fr(0,$-z),V=U(N),F=Zt(Zt({},j),{},{startAngle:C+T,endAngle:C+V+T});w.push(F),C=F.endAngle}}),K.createElement(Dt,null,r.renderSectorsStatically(w))})}},{key:"attachKeyboardHandlers",value:function(r){var o=this;r.onkeydown=function(s){if(!s.altKey)switch(s.key){case"ArrowLeft":{var c=++o.state.sectorToFocus%o.sectorRefs.length;o.sectorRefs[c].focus(),o.setState({sectorToFocus:c});break}case"ArrowRight":{var u=--o.state.sectorToFocus<0?o.sectorRefs.length-1:o.state.sectorToFocus%o.sectorRefs.length;o.sectorRefs[u].focus(),o.setState({sectorToFocus:u});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,c=this.state.prevSectors;return s&&o&&o.length&&(!c||!Hd(c,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,c=o.sectors,u=o.className,f=o.label,m=o.cx,g=o.cy,h=o.innerRadius,y=o.outerRadius,x=o.isAnimationActive,S=this.state.isAnimationFinished;if(s||!c||!c.length||!Oe(m)||!Oe(g)||!Oe(h)||!Oe(y))return null;var N=it("recharts-pie",u);return K.createElement(Dt,{tabIndex:this.props.rootTabIndex,className:N,ref:function(D){r.pieRef=D}},this.renderSectors(),f&&this.renderLabels(c),Xn.renderCallByParent(this.props,null,!1),(!x||S)&&as.renderCallByParent(this.props,c,!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(K.isValidElement(r))return K.cloneElement(r,o);if(Xe(r))return r(o);var c=it("recharts-pie-label-line",typeof r!="boolean"?r.className:"");return K.createElement(Rd,Sd({},o,{key:s,type:"linear",className:c}))}},{key:"renderLabelItem",value:function(r,o,s){if(K.isValidElement(r))return K.cloneElement(r,o);var c=s;if(Xe(r)&&(c=r(o),K.isValidElement(c)))return c;var u=it("recharts-pie-label-text",typeof r!="boolean"&&!Xe(r)?r.className:"");return K.createElement(Fc,Sd({},o,{alignmentBaseline:"middle",className:u}),c)}}])})(_.PureComponent);Yb=ps;Va(ps,"displayName","Pie");Va(ps,"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:!au.isSsr,animationBegin:400,animationDuration:1500,animationEasing:"ease",nameKey:"name",blendStroke:!1,rootTabIndex:0});Va(ps,"parseDeltaAngle",function(e,t){var n=jr(t-e),r=Math.min(Math.abs(t-e),360);return n*r});Va(ps,"getRealPieData",function(e){var t=e.data,n=e.children,r=Fe(e,!1),o=Ua(n,Xx);return t&&t.length?t.map(function(s,c){return Zt(Zt(Zt({payload:s},r),s),o&&o[c]&&o[c].props)}):o&&o.length?o.map(function(s){return Zt(Zt({},r),s.props)}):[]});Va(ps,"parseCoordinateOfPie",function(e,t){var n=t.top,r=t.left,o=t.width,s=t.height,c=_F(o,s),u=r+Rr(e.cx,o,o/2),f=n+Rr(e.cy,s,s/2),m=Rr(e.innerRadius,c,0),g=Rr(e.outerRadius,c,c*.8),h=e.maxRadius||Math.sqrt(o*o+s*s)/2;return{cx:u,cy:f,innerRadius:m,outerRadius:g,maxRadius:h}});Va(ps,"getComposedData",function(e){var t=e.item,n=e.offset,r=t.type.defaultProps!==void 0?Zt(Zt({},t.type.defaultProps),t.props):t.props,o=Yb.getRealPieData(r);if(!o||!o.length)return null;var s=r.cornerRadius,c=r.startAngle,u=r.endAngle,f=r.paddingAngle,m=r.dataKey,g=r.nameKey,h=r.valueKey,y=r.tooltipType,x=Math.abs(r.minAngle),S=Yb.parseCoordinateOfPie(r,n),N=Yb.parseDeltaAngle(c,u),w=Math.abs(N),D=m;ot(m)&&ot(h)?(ui(!1,`Use "dataKey" to specify the value of pie,
|
||
the props "valueKey" will be deprecated in 1.1.0`),D="value"):ot(m)&&(ui(!1,`Use "dataKey" to specify the value of pie,
|
||
the props "valueKey" will be deprecated in 1.1.0`),D=h);var C=o.filter(function(M){return $n(M,D,0)!==0}).length,j=(w>=360?C:C-1)*f,P=w-C*x-j,A=o.reduce(function(M,$){var z=$n($,D,0);return M+(Oe(z)?z:0)},0),T;if(A>0){var R;T=o.map(function(M,$){var z=$n(M,D,0),U=$n(M,g,$),V=(Oe(z)?z:0)/A,F;$?F=R.endAngle+jr(N)*f*(z!==0?1:0):F=c;var X=F+jr(N)*((z!==0?x:0)+V*P),ee=(F+X)/2,q=(S.innerRadius+S.outerRadius)/2,Q=[{name:U,value:z,payload:M,dataKey:D,type:y}],G=en(S.cx,S.cy,q,ee);return R=Zt(Zt(Zt({percent:V,cornerRadius:s,name:U,tooltipPayload:Q,midAngle:ee,middleRadius:q,tooltipPosition:G},M),S),{},{value:$n(M,D),startAngle:F,endAngle:X,payload:M,paddingAngle:jr(N)*f}),R})}return Zt(Zt({},S),{},{sectors:T,data:o})});var ED,C7;function b1e(){if(C7)return ED;C7=1;var e=Math.ceil,t=Math.max;function n(r,o,s,c){for(var u=-1,f=t(e((o-r)/(s||1)),0),m=Array(f);f--;)m[c?f:++u]=r,r+=s;return m}return ED=n,ED}var SD,T7;function ZF(){if(T7)return SD;T7=1;var e=vH(),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 SD=r,SD}var AD,_7;function y1e(){if(_7)return AD;_7=1;var e=b1e(),t=Qx(),n=ZF();function r(o){return function(s,c,u){return u&&typeof u!="number"&&t(s,c,u)&&(c=u=void 0),s=n(s),c===void 0?(c=s,s=0):c=n(c),u=u===void 0?s<c?1:-1:n(u),e(s,c,u,o)}}return AD=r,AD}var OD,j7;function x1e(){if(j7)return OD;j7=1;var e=y1e(),t=e();return OD=t,OD}var N1e=x1e();const Qy=Bt(N1e);function Ap(e){"@babel/helpers - typeof";return Ap=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},Ap(e)}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 P7(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){JF(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 JF(e,t,n){return t=w1e(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function w1e(e){var t=E1e(e,"string");return Ap(t)=="symbol"?t:t+""}function E1e(e,t){if(Ap(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(Ap(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var S1e=["Webkit","Moz","O","ms"],A1e=function(t,n){var r=t.replace(/(\w)/,function(s){return s.toUpperCase()}),o=S1e.reduce(function(s,c){return P7(P7({},s),{},JF({},c+r,n))},{});return o[t]=n,o};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 Xy(){return Xy=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},Xy.apply(this,arguments)}function M7(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 DD(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?M7(Object(n),!0).forEach(function(r){ua(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):M7(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function O1e(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function k7(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,tK(r.key),r)}}function D1e(e,t,n){return t&&k7(e.prototype,t),n&&k7(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function C1e(e,t,n){return t=Wy(t),T1e(e,eK()?Reflect.construct(t,n||[],Wy(e).constructor):t.apply(e,n))}function T1e(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 _1e(e)}function _1e(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 Wy(e){return Wy=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},Wy(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&&kT(e,t)}function kT(e,t){return kT=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,o){return r.__proto__=o,r},kT(e,t)}function ua(e,t,n){return t=tK(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function tK(e){var t=R1e(e,"string");return Xd(t)=="symbol"?t:t+""}function R1e(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)}var P1e=function(t){var n=t.data,r=t.startIndex,o=t.endIndex,s=t.x,c=t.width,u=t.travellerWidth;if(!n||!n.length)return{};var f=n.length,m=jh().domain(Qy(0,f)).range([s,s+c-u]),g=m.domain().map(function(h){return m(h)});return{isTextActive:!1,isSlideMoving:!1,isTravellerMoving:!1,isTravellerFocused:!1,startX:m(r),endX:m(o),scale:m,scaleValues:g}},I7=function(t){return t.changedTouches&&!!t.changedTouches.length},Wd=(function(e){function t(n){var r;return O1e(this,t),r=C1e(this,t,[n]),ua(r,"handleDrag",function(o){r.leaveTimer&&(clearTimeout(r.leaveTimer),r.leaveTimer=null),r.state.isTravellerMoving?r.handleTravellerMove(o):r.state.isSlideMoving&&r.handleSlideDrag(o)}),ua(r,"handleTouchMove",function(o){o.changedTouches!=null&&o.changedTouches.length>0&&r.handleDrag(o.changedTouches[0])}),ua(r,"handleDragEnd",function(){r.setState({isTravellerMoving:!1,isSlideMoving:!1},function(){var o=r.props,s=o.endIndex,c=o.onDragEnd,u=o.startIndex;c?.({endIndex:s,startIndex:u})}),r.detachDragEndListener()}),ua(r,"handleLeaveWrapper",function(){(r.state.isTravellerMoving||r.state.isSlideMoving)&&(r.leaveTimer=window.setTimeout(r.handleDragEnd,r.props.leaveTimeOut))}),ua(r,"handleEnterSlideOrTraveller",function(){r.setState({isTextActive:!0})}),ua(r,"handleLeaveSlideOrTraveller",function(){r.setState({isTextActive:!1})}),ua(r,"handleSlideDragStart",function(o){var s=I7(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 j1e(t,e),D1e(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,c=this.state.scaleValues,u=this.props,f=u.gap,m=u.data,g=m.length-1,h=Math.min(o,s),y=Math.max(o,s),x=t.getIndexInRange(c,h),S=t.getIndexInRange(c,y);return{startIndex:x-x%f,endIndex:S===g?g:S-S%f}}},{key:"getTextOfTick",value:function(r){var o=this.props,s=o.data,c=o.tickFormatter,u=o.dataKey,f=$n(s[r],u,r);return Xe(c)?c(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,c=o.startX,u=o.endX,f=this.props,m=f.x,g=f.width,h=f.travellerWidth,y=f.startIndex,x=f.endIndex,S=f.onChange,N=r.pageX-s;N>0?N=Math.min(N,m+g-h-u,m+g-h-c):N<0&&(N=Math.max(N,m-c,m-u));var w=this.getIndex({startX:c+N,endX:u+N});(w.startIndex!==y||w.endIndex!==x)&&S&&S(w),this.setState({startX:c+N,endX:u+N,slideMoveStartX:r.pageX})}},{key:"handleTravellerDragStart",value:function(r,o){var s=I7(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,c=o.movingTravellerId,u=o.endX,f=o.startX,m=this.state[c],g=this.props,h=g.x,y=g.width,x=g.travellerWidth,S=g.onChange,N=g.gap,w=g.data,D={startX:this.state.startX,endX:this.state.endX},C=r.pageX-s;C>0?C=Math.min(C,h+y-x-m):C<0&&(C=Math.max(C,h-m)),D[c]=m+C;var j=this.getIndex(D),P=j.startIndex,A=j.endIndex,T=function(){var M=w.length-1;return c==="startX"&&(u>f?P%N===0:A%N===0)||u<f&&A===M||c==="endX"&&(u>f?A%N===0:P%N===0)||u>f&&A===M};this.setState(ua(ua({},c,m+C),"brushMoveStartX",r.pageX),function(){S&&T()&&S(j)})}},{key:"handleTravellerMoveKeyboard",value:function(r,o){var s=this,c=this.state,u=c.scaleValues,f=c.startX,m=c.endX,g=this.state[o],h=u.indexOf(g);if(h!==-1){var y=h+r;if(!(y===-1||y>=u.length)){var x=u[y];o==="startX"&&x>=m||o==="endX"&&x<=f||this.setState(ua({},o,x),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,c=r.width,u=r.height,f=r.fill,m=r.stroke;return K.createElement("rect",{stroke:m,fill:f,x:o,y:s,width:c,height:u})}},{key:"renderPanorama",value:function(){var r=this.props,o=r.x,s=r.y,c=r.width,u=r.height,f=r.data,m=r.children,g=r.padding,h=_.Children.only(m);return h?K.cloneElement(h,{x:o,y:s,width:c,height:u,margin:g,compact:!0,data:f}):null}},{key:"renderTravellerLayer",value:function(r,o){var s,c,u=this,f=this.props,m=f.y,g=f.travellerWidth,h=f.height,y=f.traveller,x=f.ariaLabel,S=f.data,N=f.startIndex,w=f.endIndex,D=Math.max(r,this.props.x),C=DD(DD({},Fe(this.props,!1)),{},{x:D,y:m,width:g,height:h}),j=x||"Min value: ".concat((s=S[N])===null||s===void 0?void 0:s.name,", Max value: ").concat((c=S[w])===null||c===void 0?void 0:c.name);return K.createElement(Dt,{tabIndex:0,role:"slider","aria-label":j,"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(),u.handleTravellerMoveKeyboard(A.key==="ArrowRight"?1:-1,o))},onFocus:function(){u.setState({isTravellerFocused:!0})},onBlur:function(){u.setState({isTravellerFocused:!1})},style:{cursor:"col-resize"}},t.renderTraveller(y,C))}},{key:"renderSlide",value:function(r,o){var s=this.props,c=s.y,u=s.height,f=s.stroke,m=s.travellerWidth,g=Math.min(r,o)+m,h=Math.max(Math.abs(o-r)-m,0);return K.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:c,width:h,height:u})}},{key:"renderText",value:function(){var r=this.props,o=r.startIndex,s=r.endIndex,c=r.y,u=r.height,f=r.travellerWidth,m=r.stroke,g=this.state,h=g.startX,y=g.endX,x=5,S={pointerEvents:"none",fill:m};return K.createElement(Dt,{className:"recharts-brush-texts"},K.createElement(Fc,Xy({textAnchor:"end",verticalAnchor:"middle",x:Math.min(h,y)-x,y:c+u/2},S),this.getTextOfTick(o)),K.createElement(Fc,Xy({textAnchor:"start",verticalAnchor:"middle",x:Math.max(h,y)+f+x,y:c+u/2},S),this.getTextOfTick(s)))}},{key:"render",value:function(){var r=this.props,o=r.data,s=r.className,c=r.children,u=r.x,f=r.y,m=r.width,g=r.height,h=r.alwaysShowText,y=this.state,x=y.startX,S=y.endX,N=y.isTextActive,w=y.isSlideMoving,D=y.isTravellerMoving,C=y.isTravellerFocused;if(!o||!o.length||!Oe(u)||!Oe(f)||!Oe(m)||!Oe(g)||m<=0||g<=0)return null;var j=it("recharts-brush",s),P=K.Children.count(c)===1,A=A1e("userSelect","none");return K.createElement(Dt,{className:j,onMouseLeave:this.handleLeaveWrapper,onTouchMove:this.handleTouchMove,style:A},this.renderBackground(),P&&this.renderPanorama(),this.renderSlide(x,S),this.renderTravellerLayer(x,"startX"),this.renderTravellerLayer(S,"endX"),(N||w||D||C||h)&&this.renderText())}}],[{key:"renderDefaultTraveller",value:function(r){var o=r.x,s=r.y,c=r.width,u=r.height,f=r.stroke,m=Math.floor(s+u/2)-1;return K.createElement(K.Fragment,null,K.createElement("rect",{x:o,y:s,width:c,height:u,fill:f,stroke:"none"}),K.createElement("line",{x1:o+1,y1:m,x2:o+c-1,y2:m,fill:"none",stroke:"#fff"}),K.createElement("line",{x1:o+1,y1:m+2,x2:o+c-1,y2:m+2,fill:"none",stroke:"#fff"}))}},{key:"renderTraveller",value:function(r,o){var s;return K.isValidElement(r)?s=K.cloneElement(r,o):Xe(r)?s=r(o):s=t.renderDefaultTraveller(o),s}},{key:"getDerivedStateFromProps",value:function(r,o){var s=r.data,c=r.width,u=r.x,f=r.travellerWidth,m=r.updateId,g=r.startIndex,h=r.endIndex;if(s!==o.prevData||m!==o.prevUpdateId)return DD({prevData:s,prevTravellerWidth:f,prevUpdateId:m,prevX:u,prevWidth:c},s&&s.length?P1e({data:s,width:c,x:u,travellerWidth:f,startIndex:g,endIndex:h}):{scale:null,scaleValues:null});if(o.scale&&(c!==o.prevWidth||u!==o.prevX||f!==o.prevTravellerWidth)){o.scale.range([u,u+c-f]);var y=o.scale.domain().map(function(x){return o.scale(x)});return{prevData:s,prevTravellerWidth:f,prevUpdateId:m,prevX:u,prevWidth:c,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,c=0,u=s-1;u-c>1;){var f=Math.floor((c+u)/2);r[f]>o?u=f:c=f}return o>=r[u]?u:c}}])})(_.PureComponent);ua(Wd,"displayName","Brush");ua(Wd,"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 CD,L7;function M1e(){if(L7)return CD;L7=1;var e=gj();function t(n,r){var o;return e(n,function(s,c,u){return o=r(s,c,u),!o}),!!o}return CD=t,CD}var TD,V7;function k1e(){if(V7)return TD;V7=1;var e=Yq(),t=vo(),n=M1e(),r=Gr(),o=Qx();function s(c,u,f){var m=r(c)?e:n;return f&&o(c,u,f)&&(u=void 0),m(c,t(u,3))}return TD=s,TD}var I1e=k1e();const L1e=Bt(I1e);var oo=function(t,n){var r=t.alwaysShow,o=t.ifOverflow;return r&&(o="extendDomain"),o===n},_D,$7;function V1e(){if($7)return _D;$7=1;var e=fH();function t(n,r,o){r=="__proto__"&&e?e(n,r,{configurable:!0,enumerable:!0,value:o,writable:!0}):n[r]=o}return _D=t,_D}var jD,B7;function $1e(){if(B7)return jD;B7=1;var e=V1e(),t=uH(),n=vo();function r(o,s){var c={};return s=n(s,3),t(o,function(u,f,m){e(c,f,s(u,f,m))}),c}return jD=r,jD}var B1e=$1e();const z1e=Bt(B1e);var RD,z7;function U1e(){if(z7)return RD;z7=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 RD=e,RD}var PD,U7;function q1e(){if(U7)return PD;U7=1;var e=gj();function t(n,r){var o=!0;return e(n,function(s,c,u){return o=!!r(s,c,u),o}),o}return PD=t,PD}var MD,q7;function H1e(){if(q7)return MD;q7=1;var e=U1e(),t=q1e(),n=vo(),r=Gr(),o=Qx();function s(c,u,f){var m=r(c)?e:t;return f&&o(c,u,f)&&(u=void 0),m(c,n(u,3))}return MD=s,MD}var F1e=H1e();const nK=Bt(F1e);var K1e=["x","y"];function Zd(e){"@babel/helpers - typeof";return Zd=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Zd(e)}function IT(){return IT=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},IT.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 bh(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){G1e(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 G1e(e,t,n){return t=Y1e(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Y1e(e){var t=Q1e(e,"string");return Zd(t)=="symbol"?t:t+""}function Q1e(e,t){if(Zd(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(Zd(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function X1e(e,t){if(e==null)return{};var n=W1e(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 W1e(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 Z1e(e,t){var n=e.x,r=e.y,o=X1e(e,K1e),s="".concat(n),c=parseInt(s,10),u="".concat(r),f=parseInt(u,10),m="".concat(t.height||o.height),g=parseInt(m,10),h="".concat(t.width||o.width),y=parseInt(h,10);return bh(bh(bh(bh(bh({},t),o),c?{x:c}:{}),f?{y:f}:{}),{},{height:g,width:y,name:t.name,radius:t.radius})}function F7(e){return K.createElement(QF,IT({shapeType:"rectangle",propTransformer:Z1e,activeClassName:"recharts-active-bar"},e))}var J1e=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)||Nce(r);return s?t(r,o):(s||Gc(!1,"minPointSize callback function received a value with type of ".concat(Zd(r),". Currently only numbers or null/undefined are supported.")),n)}},eNe=["value","background"],rK;function Jd(e){"@babel/helpers - typeof";return Jd=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},Jd(e)}function tNe(e,t){if(e==null)return{};var n=nNe(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 nNe(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 Zy(){return Zy=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},Zy.apply(this,arguments)}function K7(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),n.push.apply(n,r)}return n}function Tn(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?K7(Object(n),!0).forEach(function(r){dl(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):K7(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function rNe(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function G7(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,iK(r.key),r)}}function aNe(e,t,n){return t&&G7(e.prototype,t),n&&G7(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function iNe(e,t,n){return t=Jy(t),oNe(e,aK()?Reflect.construct(t,n||[],Jy(e).constructor):t.apply(e,n))}function oNe(e,t){if(t&&(Jd(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return sNe(e)}function sNe(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function aK(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(aK=function(){return!!e})()}function Jy(e){return Jy=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},Jy(e)}function lNe(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&<(e,t)}function LT(e,t){return LT=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,o){return r.__proto__=o,r},LT(e,t)}function dl(e,t,n){return t=iK(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function iK(e){var t=cNe(e,"string");return Jd(t)=="symbol"?t:t+""}function cNe(e,t){if(Jd(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(Jd(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}var Qp=(function(e){function t(){var n;rNe(this,t);for(var r=arguments.length,o=new Array(r),s=0;s<r;s++)o[s]=arguments[s];return n=iNe(this,t,[].concat(o)),dl(n,"state",{isAnimationFinished:!1}),dl(n,"id",wf("recharts-bar-")),dl(n,"handleAnimationEnd",function(){var c=n.props.onAnimationEnd;n.setState({isAnimationFinished:!0}),c&&c()}),dl(n,"handleAnimationStart",function(){var c=n.props.onAnimationStart;n.setState({isAnimationFinished:!1}),c&&c()}),n}return lNe(t,e),aNe(t,[{key:"renderRectanglesStatically",value:function(r){var o=this,s=this.props,c=s.shape,u=s.dataKey,f=s.activeIndex,m=s.activeBar,g=Fe(this.props,!1);return r&&r.map(function(h,y){var x=y===f,S=x?m:c,N=Tn(Tn(Tn({},g),h),{},{isActive:x,option:S,index:y,dataKey:u,onAnimationStart:o.handleAnimationStart,onAnimationEnd:o.handleAnimationEnd});return K.createElement(Dt,Zy({className:"recharts-bar-rectangle"},Hc(o.props,h,y),{key:"rectangle-".concat(h?.x,"-").concat(h?.y,"-").concat(h?.value,"-").concat(y)}),K.createElement(F7,N))})}},{key:"renderRectanglesWithAnimation",value:function(){var r=this,o=this.props,s=o.data,c=o.layout,u=o.isAnimationActive,f=o.animationBegin,m=o.animationDuration,g=o.animationEasing,h=o.animationId,y=this.state.prevData;return K.createElement(fo,{begin:f,duration:m,isActive:u,easing:g,from:{t:0},to:{t:1},key:"bar-".concat(h),onAnimationEnd:this.handleAnimationEnd,onAnimationStart:this.handleAnimationStart},function(x){var S=x.t,N=s.map(function(w,D){var C=y&&y[D];if(C){var j=Fr(C.x,w.x),P=Fr(C.y,w.y),A=Fr(C.width,w.width),T=Fr(C.height,w.height);return Tn(Tn({},w),{},{x:j(S),y:P(S),width:A(S),height:T(S)})}if(c==="horizontal"){var R=Fr(0,w.height),M=R(S);return Tn(Tn({},w),{},{y:w.y+w.height-M,height:M})}var $=Fr(0,w.width),z=$(S);return Tn(Tn({},w),{},{width:z})});return K.createElement(Dt,null,r.renderRectanglesStatically(N))})}},{key:"renderRectangles",value:function(){var r=this.props,o=r.data,s=r.isAnimationActive,c=this.state.prevData;return s&&o&&o.length&&(!c||!Hd(c,o))?this.renderRectanglesWithAnimation():this.renderRectanglesStatically(o)}},{key:"renderBackground",value:function(){var r=this,o=this.props,s=o.data,c=o.dataKey,u=o.activeIndex,f=Fe(this.props.background,!1);return s.map(function(m,g){m.value;var h=m.background,y=tNe(m,eNe);if(!h)return null;var x=Tn(Tn(Tn(Tn(Tn({},y),{},{fill:"#eee"},h),f),Hc(r.props,m,g)),{},{onAnimationStart:r.handleAnimationStart,onAnimationEnd:r.handleAnimationEnd,dataKey:c,index:g,className:"recharts-bar-background-rectangle"});return K.createElement(F7,Zy({key:"background-bar-".concat(g),option:r.props.background,isActive:g===u},x))})}},{key:"renderErrorBar",value:function(r,o){if(this.props.isAnimationActive&&!this.state.isAnimationFinished)return null;var s=this.props,c=s.data,u=s.xAxis,f=s.yAxis,m=s.layout,g=s.children,h=Ua(g,s0);if(!h)return null;var y=m==="vertical"?c[0].height/2:c[0].width/2,x=function(w,D){var C=Array.isArray(w.value)?w.value[1]:w.value;return{x:w.x,y:w.y,value:C,errorVal:$n(w,D)}},S={clipPath:r?"url(#clipPath-".concat(o,")"):null};return K.createElement(Dt,S,h.map(function(N){return K.cloneElement(N,{key:"error-bar-".concat(o,"-").concat(N.props.dataKey),data:c,xAxis:u,yAxis:f,layout:m,offset:y,dataPointFormatter:x})}))}},{key:"render",value:function(){var r=this.props,o=r.hide,s=r.data,c=r.className,u=r.xAxis,f=r.yAxis,m=r.left,g=r.top,h=r.width,y=r.height,x=r.isAnimationActive,S=r.background,N=r.id;if(o||!s||!s.length)return null;var w=this.state.isAnimationFinished,D=it("recharts-bar",c),C=u&&u.allowDataOverflow,j=f&&f.allowDataOverflow,P=C||j,A=ot(N)?this.id:N;return K.createElement(Dt,{className:D},C||j?K.createElement("defs",null,K.createElement("clipPath",{id:"clipPath-".concat(A)},K.createElement("rect",{x:C?m:m-h/2,y:j?g:g-y/2,width:C?h:h*2,height:j?y:y*2}))):null,K.createElement(Dt,{className:"recharts-bar-rectangles",clipPath:P?"url(#clipPath-".concat(A,")"):null},S?this.renderBackground():null,this.renderRectangles()),this.renderErrorBar(P,A),(!x||w)&&as.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}}])})(_.PureComponent);rK=Qp;dl(Qp,"displayName","Bar");dl(Qp,"defaultProps",{xAxisId:0,yAxisId:0,legendType:"rect",minPointSize:0,hide:!1,data:[],layout:"vertical",activeBar:!1,isAnimationActive:!au.isSsr,animationBegin:0,animationDuration:400,animationEasing:"ease"});dl(Qp,"getComposedData",function(e){var t=e.props,n=e.item,r=e.barPosition,o=e.bandSize,s=e.xAxis,c=e.yAxis,u=e.xAxisTicks,f=e.yAxisTicks,m=e.stackedData,g=e.dataStartIndex,h=e.displayedData,y=e.offset,x=kve(r,n);if(!x)return null;var S=t.layout,N=n.type.defaultProps,w=N!==void 0?Tn(Tn({},N),n.props):n.props,D=w.dataKey,C=w.children,j=w.minPointSize,P=S==="horizontal"?c:s,A=m?P.scale.domain():null,T=Uve({numericAxis:P}),R=Ua(C,Xx),M=h.map(function($,z){var U,V,F,X,ee,q;m?U=Ive(m[g+z],A):(U=$n($,D),Array.isArray(U)||(U=[T,U]));var Q=J1e(j,rK.defaultProps.minPointSize)(U[1],z);if(S==="horizontal"){var G,ne=[c.scale(U[0]),c.scale(U[1])],te=ne[0],I=ne[1];V=mB({axis:s,ticks:u,bandSize:o,offset:x.offset,entry:$,index:z}),F=(G=I??te)!==null&&G!==void 0?G:void 0,X=x.size;var H=te-I;if(ee=Number.isNaN(H)?0:H,q={x:V,y:c.y,width:X,height:c.height},Math.abs(Q)>0&&Math.abs(ee)<Math.abs(Q)){var Y=jr(ee||Q)*(Math.abs(Q)-Math.abs(ee));F-=Y,ee+=Y}}else{var re=[s.scale(U[0]),s.scale(U[1])],ge=re[0],we=re[1];if(V=ge,F=mB({axis:c,ticks:f,bandSize:o,offset:x.offset,entry:$,index:z}),X=we-ge,ee=x.size,q={x:s.x,y:F,width:s.width,height:ee},Math.abs(Q)>0&&Math.abs(X)<Math.abs(Q)){var le=jr(X||Q)*(Math.abs(Q)-Math.abs(X));X+=le}}return Tn(Tn(Tn({},$),{},{x:V,y:F,width:X,height:ee,value:m?U:U[1],payload:$,background:q},R&&R[z]&&R[z].props),{},{tooltipPayload:[CF(n,$)],tooltipPosition:{x:V+X/2,y:F+ee/2}})});return Tn({data:M,layout:S},y)});function Op(e){"@babel/helpers - typeof";return Op=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},Op(e)}function uNe(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Y7(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,oK(r.key),r)}}function dNe(e,t,n){return t&&Y7(e.prototype,t),n&&Y7(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function Q7(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),n.push.apply(n,r)}return n}function li(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?Q7(Object(n),!0).forEach(function(r){p0(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Q7(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function p0(e,t,n){return t=oK(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function oK(e){var t=fNe(e,"string");return Op(t)=="symbol"?t:t+""}function fNe(e,t){if(Op(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(Op(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var mNe=function(t,n,r,o,s){var c=t.width,u=t.height,f=t.layout,m=t.children,g=Object.keys(n),h={left:r.left,leftMirror:r.left,right:c-r.right,rightMirror:c-r.right,top:r.top,topMirror:r.top,bottom:u-r.bottom,bottomMirror:u-r.bottom},y=!!da(m,Qp);return g.reduce(function(x,S){var N=n[S],w=N.orientation,D=N.domain,C=N.padding,j=C===void 0?{}:C,P=N.mirror,A=N.reversed,T="".concat(w).concat(P?"Mirror":""),R,M,$,z,U;if(N.type==="number"&&(N.padding==="gap"||N.padding==="no-gap")){var V=D[1]-D[0],F=1/0,X=N.categoricalDomain.sort(Sce);if(X.forEach(function(re,ge){ge>0&&(F=Math.min((re||0)-(X[ge-1]||0),F))}),Number.isFinite(F)){var ee=F/V,q=N.layout==="vertical"?r.height:r.width;if(N.padding==="gap"&&(R=ee*q/2),N.padding==="no-gap"){var Q=Rr(t.barCategoryGap,ee*q),G=ee*q/2;R=G-Q-(G-Q)/q*Q}}}o==="xAxis"?M=[r.left+(j.left||0)+(R||0),r.left+r.width-(j.right||0)-(R||0)]:o==="yAxis"?M=f==="horizontal"?[r.top+r.height-(j.bottom||0),r.top+(j.top||0)]:[r.top+(j.top||0)+(R||0),r.top+r.height-(j.bottom||0)-(R||0)]:M=N.range,A&&(M=[M[1],M[0]]);var ne=SF(N,s,y),te=ne.scale,I=ne.realScaleType;te.domain(D).range(M),AF(te);var H=OF(te,li(li({},N),{},{realScaleType:I}));o==="xAxis"?(U=w==="top"&&!P||w==="bottom"&&P,$=r.left,z=h[T]-U*N.height):o==="yAxis"&&(U=w==="left"&&!P||w==="right"&&P,$=h[T]-U*N.width,z=r.top);var Y=li(li(li({},N),H),{},{realScaleType:I,x:$,y:z,scale:te,width:o==="xAxis"?r.width:N.width,height:o==="yAxis"?r.height:N.height});return Y.bandSize=Iy(Y,H),!N.hide&&o==="xAxis"?h[T]+=(U?-1:1)*Y.height:N.hide||(h[T]+=(U?-1:1)*Y.width),li(li({},x),{},p0({},S,Y))},{})},sK=function(t,n){var r=t.x,o=t.y,s=n.x,c=n.y;return{x:Math.min(r,s),y:Math.min(o,c),width:Math.abs(s-r),height:Math.abs(c-o)}},hNe=function(t){var n=t.x1,r=t.y1,o=t.x2,s=t.y2;return sK({x:n,y:r},{x:o,y:s})},lK=(function(){function e(t){uNe(this,e),this.scale=t}return dNe(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 c=this.bandwidth?this.bandwidth()/2:0;return this.scale(n)+c}case"end":{var u=this.bandwidth?this.bandwidth():0;return this.scale(n)+u}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)}}])})();p0(lK,"EPS",1e-4);var Fj=function(t){var n=Object.keys(t).reduce(function(r,o){return li(li({},r),{},p0({},o,lK.create(t[o])))},{});return li(li({},n),{},{apply:function(o){var s=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},c=s.bandAware,u=s.position;return z1e(o,function(f,m){return n[m].apply(f,{bandAware:c,position:u})})},isInRange:function(o){return nK(o,function(s,c){return n[c].isInRange(s)})}})};function pNe(e){return(e%180+180)%180}var gNe=function(t){var n=t.width,r=t.height,o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,s=pNe(o),c=s*Math.PI/180,u=Math.atan(r/n),f=c>u&&c<Math.PI-u?r/Math.sin(c):n/Math.cos(c);return Math.abs(f)},kD,X7;function vNe(){if(X7)return kD;X7=1;var e=vo(),t=Hp(),n=Gx();function r(o){return function(s,c,u){var f=Object(s);if(!t(s)){var m=e(c,3);s=n(s),c=function(h){return m(f[h],h,f)}}var g=o(s,c,u);return g>-1?f[m?s[g]:g]:void 0}}return kD=r,kD}var ID,W7;function bNe(){if(W7)return ID;W7=1;var e=ZF();function t(n){var r=e(n),o=r%1;return r===r?o?r-o:r:0}return ID=t,ID}var LD,Z7;function yNe(){if(Z7)return LD;Z7=1;var e=iH(),t=vo(),n=bNe(),r=Math.max;function o(s,c,u){var f=s==null?0:s.length;if(!f)return-1;var m=u==null?0:n(u);return m<0&&(m=r(f+m,0)),e(s,t(c,3),m)}return LD=o,LD}var VD,J7;function xNe(){if(J7)return VD;J7=1;var e=vNe(),t=yNe(),n=e(t);return VD=n,VD}var NNe=xNe();const wNe=Bt(NNe);var ENe=Nq();const SNe=Bt(ENe);var ANe=SNe(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 ex(e){"@babel/helpers - typeof";return ex=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},ex(e)}var Kj=_.createContext(void 0),Gj=_.createContext(void 0),cK=_.createContext(void 0),uK=_.createContext({}),dK=_.createContext(void 0),fK=_.createContext(0),mK=_.createContext(0),e8=function(t){var n=t.state,r=n.xAxisMap,o=n.yAxisMap,s=n.offset,c=t.clipPathId,u=t.children,f=t.width,m=t.height,g=ANe(s);return K.createElement(Kj.Provider,{value:r},K.createElement(Gj.Provider,{value:o},K.createElement(uK.Provider,{value:s},K.createElement(cK.Provider,{value:g},K.createElement(dK.Provider,{value:c},K.createElement(fK.Provider,{value:m},K.createElement(mK.Provider,{value:f},u)))))))},ONe=function(){return _.useContext(dK)};function hK(e){var t=Object.keys(e);return t.length===0?"There are no available ids.":"Available ids are: ".concat(t,".")}var pK=function(t){var n=_.useContext(Kj);n==null&&Gc(!1,"Could not find Recharts context; are you sure this is rendered inside a Recharts wrapper component?");var r=n[t];return r==null&&Gc(!1,'Could not find xAxis by id "'.concat(t,'" [').concat(ex(t),"]. ").concat(hK(n))),r},DNe=function(){var t=_.useContext(Kj);return ll(t)},CNe=function(){var t=_.useContext(Gj),n=wNe(t,function(r){return nK(r.domain,Number.isFinite)});return n||ll(t)},gK=function(t){var n=_.useContext(Gj);n==null&&Gc(!1,"Could not find Recharts context; are you sure this is rendered inside a Recharts wrapper component?");var r=n[t];return r==null&&Gc(!1,'Could not find yAxis by id "'.concat(t,'" [').concat(ex(t),"]. ").concat(hK(n))),r},TNe=function(){var t=_.useContext(cK);return t},_Ne=function(){return _.useContext(uK)},Yj=function(){return _.useContext(mK)},Qj=function(){return _.useContext(fK)};function ef(e){"@babel/helpers - typeof";return ef=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},ef(e)}function jNe(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function RNe(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,bK(r.key),r)}}function PNe(e,t,n){return t&&RNe(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function MNe(e,t,n){return t=tx(t),kNe(e,vK()?Reflect.construct(t,n||[],tx(e).constructor):t.apply(e,n))}function kNe(e,t){if(t&&(ef(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return INe(e)}function INe(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function vK(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(vK=function(){return!!e})()}function tx(e){return tx=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},tx(e)}function LNe(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&&VT(e,t)}function VT(e,t){return VT=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,o){return r.__proto__=o,r},VT(e,t)}function t8(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),n.push.apply(n,r)}return n}function n8(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?t8(Object(n),!0).forEach(function(r){Xj(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):t8(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function Xj(e,t,n){return t=bK(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function bK(e){var t=VNe(e,"string");return ef(t)=="symbol"?t:t+""}function VNe(e,t){if(ef(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(ef(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}function $Ne(e,t){return qNe(e)||UNe(e,t)||zNe(e,t)||BNe()}function BNe(){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 zNe(e,t){if(e){if(typeof e=="string")return r8(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 r8(e,t)}}function r8(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 UNe(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r,o,s,c,u=[],f=!0,m=!1;try{if(s=(n=n.call(e)).next,t!==0)for(;!(f=(r=s.call(n)).done)&&(u.push(r.value),u.length!==t);f=!0);}catch(g){m=!0,o=g}finally{try{if(!f&&n.return!=null&&(c=n.return(),Object(c)!==c))return}finally{if(m)throw o}}return u}}function qNe(e){if(Array.isArray(e))return e}function $T(){return $T=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},$T.apply(this,arguments)}var HNe=function(t,n){var r;return K.isValidElement(t)?r=K.cloneElement(t,n):Xe(t)?r=t(n):r=K.createElement("line",$T({},n,{className:"recharts-reference-line-line"})),r},FNe=function(t,n,r,o,s,c,u,f,m){var g=s.x,h=s.y,y=s.width,x=s.height;if(r){var S=m.y,N=t.y.apply(S,{position:c});if(oo(m,"discard")&&!t.y.isInRange(N))return null;var w=[{x:g+y,y:N},{x:g,y:N}];return f==="left"?w.reverse():w}if(n){var D=m.x,C=t.x.apply(D,{position:c});if(oo(m,"discard")&&!t.x.isInRange(C))return null;var j=[{x:C,y:h+x},{x:C,y:h}];return u==="top"?j.reverse():j}if(o){var P=m.segment,A=P.map(function(T){return t.apply(T,{position:c})});return oo(m,"discard")&&L1e(A,function(T){return!t.isInRange(T)})?null:A}return null};function KNe(e){var t=e.x,n=e.y,r=e.segment,o=e.xAxisId,s=e.yAxisId,c=e.shape,u=e.className,f=e.alwaysShow,m=ONe(),g=pK(o),h=gK(s),y=TNe();if(!m||!y)return null;ui(f===void 0,'The alwaysShow prop is deprecated. Please use ifOverflow="extendDomain" instead.');var x=Fj({x:g.scale,y:h.scale}),S=Bn(t),N=Bn(n),w=r&&r.length===2,D=FNe(x,S,N,w,y,e.position,g.orientation,h.orientation,e);if(!D)return null;var C=$Ne(D,2),j=C[0],P=j.x,A=j.y,T=C[1],R=T.x,M=T.y,$=oo(e,"hidden")?"url(#".concat(m,")"):void 0,z=n8(n8({clipPath:$},Fe(e,!0)),{},{x1:P,y1:A,x2:R,y2:M});return K.createElement(Dt,{className:it("recharts-reference-line",u)},HNe(c,z),Xn.renderCallByParent(e,hNe({x1:P,y1:A,x2:R,y2:M})))}var Wj=(function(e){function t(){return jNe(this,t),MNe(this,t,arguments)}return LNe(t,e),PNe(t,[{key:"render",value:function(){return K.createElement(KNe,this.props)}}])})(K.Component);Xj(Wj,"displayName","ReferenceLine");Xj(Wj,"defaultProps",{isFront:!1,ifOverflow:"discard",xAxisId:0,yAxisId:0,fill:"none",stroke:"#ccc",fillOpacity:1,strokeWidth:1,position:"middle"});function BT(){return BT=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},BT.apply(this,arguments)}function tf(e){"@babel/helpers - typeof";return tf=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},tf(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 i8(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){g0(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 GNe(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function YNe(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,xK(r.key),r)}}function QNe(e,t,n){return t&&YNe(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function XNe(e,t,n){return t=nx(t),WNe(e,yK()?Reflect.construct(t,n||[],nx(e).constructor):t.apply(e,n))}function WNe(e,t){if(t&&(tf(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return ZNe(e)}function ZNe(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function yK(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(yK=function(){return!!e})()}function nx(e){return nx=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},nx(e)}function JNe(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&&zT(e,t)}function zT(e,t){return zT=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,o){return r.__proto__=o,r},zT(e,t)}function g0(e,t,n){return t=xK(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function xK(e){var t=ewe(e,"string");return tf(t)=="symbol"?t:t+""}function ewe(e,t){if(tf(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(tf(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}var twe=function(t){var n=t.x,r=t.y,o=t.xAxis,s=t.yAxis,c=Fj({x:o.scale,y:s.scale}),u=c.apply({x:n,y:r},{bandAware:!0});return oo(t,"discard")&&!c.isInRange(u)?null:u},v0=(function(e){function t(){return GNe(this,t),XNe(this,t,arguments)}return JNe(t,e),QNe(t,[{key:"render",value:function(){var r=this.props,o=r.x,s=r.y,c=r.r,u=r.alwaysShow,f=r.clipPathId,m=Bn(o),g=Bn(s);if(ui(u===void 0,'The alwaysShow prop is deprecated. Please use ifOverflow="extendDomain" instead.'),!m||!g)return null;var h=twe(this.props);if(!h)return null;var y=h.x,x=h.y,S=this.props,N=S.shape,w=S.className,D=oo(this.props,"hidden")?"url(#".concat(f,")"):void 0,C=i8(i8({clipPath:D},Fe(this.props,!0)),{},{cx:y,cy:x});return K.createElement(Dt,{className:it("recharts-reference-dot",w)},t.renderDot(N,C),Xn.renderCallByParent(this.props,{x:y-c,y:x-c,width:2*c,height:2*c}))}}])})(K.Component);g0(v0,"displayName","ReferenceDot");g0(v0,"defaultProps",{isFront:!1,ifOverflow:"discard",xAxisId:0,yAxisId:0,r:10,fill:"#fff",stroke:"#ccc",fillOpacity:1,strokeWidth:1});g0(v0,"renderDot",function(e,t){var n;return K.isValidElement(e)?n=K.cloneElement(e,t):Xe(e)?n=e(t):n=K.createElement(l0,BT({},t,{cx:t.cx,cy:t.cy,className:"recharts-reference-dot-dot"})),n});function UT(){return UT=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},UT.apply(this,arguments)}function nf(e){"@babel/helpers - typeof";return nf=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},nf(e)}function o8(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 s8(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?o8(Object(n),!0).forEach(function(r){b0(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):o8(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function nwe(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function rwe(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,wK(r.key),r)}}function awe(e,t,n){return t&&rwe(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function iwe(e,t,n){return t=rx(t),owe(e,NK()?Reflect.construct(t,n||[],rx(e).constructor):t.apply(e,n))}function owe(e,t){if(t&&(nf(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return swe(e)}function swe(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function NK(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(NK=function(){return!!e})()}function rx(e){return rx=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},rx(e)}function lwe(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&&qT(e,t)}function qT(e,t){return qT=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,o){return r.__proto__=o,r},qT(e,t)}function b0(e,t,n){return t=wK(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function wK(e){var t=cwe(e,"string");return nf(t)=="symbol"?t:t+""}function cwe(e,t){if(nf(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(nf(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}var uwe=function(t,n,r,o,s){var c=s.x1,u=s.x2,f=s.y1,m=s.y2,g=s.xAxis,h=s.yAxis;if(!g||!h)return null;var y=Fj({x:g.scale,y:h.scale}),x={x:t?y.x.apply(c,{position:"start"}):y.x.rangeMin,y:r?y.y.apply(f,{position:"start"}):y.y.rangeMin},S={x:n?y.x.apply(u,{position:"end"}):y.x.rangeMax,y:o?y.y.apply(m,{position:"end"}):y.y.rangeMax};return oo(s,"discard")&&(!y.isInRange(x)||!y.isInRange(S))?null:sK(x,S)},y0=(function(e){function t(){return nwe(this,t),iwe(this,t,arguments)}return lwe(t,e),awe(t,[{key:"render",value:function(){var r=this.props,o=r.x1,s=r.x2,c=r.y1,u=r.y2,f=r.className,m=r.alwaysShow,g=r.clipPathId;ui(m===void 0,'The alwaysShow prop is deprecated. Please use ifOverflow="extendDomain" instead.');var h=Bn(o),y=Bn(s),x=Bn(c),S=Bn(u),N=this.props.shape;if(!h&&!y&&!x&&!S&&!N)return null;var w=uwe(h,y,x,S,this.props);if(!w&&!N)return null;var D=oo(this.props,"hidden")?"url(#".concat(g,")"):void 0;return K.createElement(Dt,{className:it("recharts-reference-area",f)},t.renderRect(N,s8(s8({clipPath:D},Fe(this.props,!0)),w)),Xn.renderCallByParent(this.props,w))}}])})(K.Component);b0(y0,"displayName","ReferenceArea");b0(y0,"defaultProps",{isFront:!1,ifOverflow:"discard",xAxisId:0,yAxisId:0,r:10,fill:"#ccc",fillOpacity:.5,stroke:"none",strokeWidth:1});b0(y0,"renderRect",function(e,t){var n;return K.isValidElement(e)?n=K.cloneElement(e,t):Xe(e)?n=e(t):n=K.createElement(Hj,UT({},t,{className:"recharts-reference-area-rect"})),n});function EK(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 dwe(e,t,n){var r={width:e.width+t.width,height:e.height+t.height};return gNe(r,n)}function fwe(e,t,n){var r=n==="width",o=e.x,s=e.y,c=e.width,u=e.height;return t===1?{start:r?o:s,end:r?o+c:s+u}:{start:r?o+c:s+u,end:r?o:s}}function ax(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 mwe(e,t){return EK(e,t+1)}function hwe(e,t,n,r,o){for(var s=(r||[]).slice(),c=t.start,u=t.end,f=0,m=1,g=c,h=function(){var S=r?.[f];if(S===void 0)return{v:EK(r,m)};var N=f,w,D=function(){return w===void 0&&(w=n(S,N)),w},C=S.coordinate,j=f===0||ax(e,C,D,g,u);j||(f=0,g=c,m+=1),j&&(g=C+e*(D()/2+o),f+=m)},y;m<=s.length;)if(y=h(),y)return y.v;return[]}function Dp(e){"@babel/helpers - typeof";return Dp=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},Dp(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 ur(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){pwe(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 pwe(e,t,n){return t=gwe(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function gwe(e){var t=vwe(e,"string");return Dp(t)=="symbol"?t:t+""}function vwe(e,t){if(Dp(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(Dp(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function bwe(e,t,n,r,o){for(var s=(r||[]).slice(),c=s.length,u=t.start,f=t.end,m=function(y){var x=s[y],S,N=function(){return S===void 0&&(S=n(x,y)),S};if(y===c-1){var w=e*(x.coordinate+e*N()/2-f);s[y]=x=ur(ur({},x),{},{tickCoord:w>0?x.coordinate-w*e:x.coordinate})}else s[y]=x=ur(ur({},x),{},{tickCoord:x.coordinate});var D=ax(e,x.tickCoord,N,u,f);D&&(f=x.tickCoord-e*(N()/2+o),s[y]=ur(ur({},x),{},{isShow:!0}))},g=c-1;g>=0;g--)m(g);return s}function ywe(e,t,n,r,o,s){var c=(r||[]).slice(),u=c.length,f=t.start,m=t.end;if(s){var g=r[u-1],h=n(g,u-1),y=e*(g.coordinate+e*h/2-m);c[u-1]=g=ur(ur({},g),{},{tickCoord:y>0?g.coordinate-y*e:g.coordinate});var x=ax(e,g.tickCoord,function(){return h},f,m);x&&(m=g.tickCoord-e*(h/2+o),c[u-1]=ur(ur({},g),{},{isShow:!0}))}for(var S=s?u-1:u,N=function(C){var j=c[C],P,A=function(){return P===void 0&&(P=n(j,C)),P};if(C===0){var T=e*(j.coordinate-e*A()/2-f);c[C]=j=ur(ur({},j),{},{tickCoord:T<0?j.coordinate-T*e:j.coordinate})}else c[C]=j=ur(ur({},j),{},{tickCoord:j.coordinate});var R=ax(e,j.tickCoord,A,f,m);R&&(f=j.tickCoord+e*(A()/2+o),c[C]=ur(ur({},j),{},{isShow:!0}))},w=0;w<S;w++)N(w);return c}function Zj(e,t,n){var r=e.tick,o=e.ticks,s=e.viewBox,c=e.minTickGap,u=e.orientation,f=e.interval,m=e.tickFormatter,g=e.unit,h=e.angle;if(!o||!o.length||!r)return[];if(Oe(f)||au.isSsr)return mwe(o,typeof f=="number"&&Oe(f)?f:0);var y=[],x=u==="top"||u==="bottom"?"width":"height",S=g&&x==="width"?_h(g,{fontSize:t,letterSpacing:n}):{width:0,height:0},N=function(j,P){var A=Xe(m)?m(j.value,P):j.value;return x==="width"?dwe(_h(A,{fontSize:t,letterSpacing:n}),S,h):_h(A,{fontSize:t,letterSpacing:n})[x]},w=o.length>=2?jr(o[1].coordinate-o[0].coordinate):1,D=fwe(s,w,x);return f==="equidistantPreserveStart"?hwe(w,D,N,o,c):(f==="preserveStart"||f==="preserveStartEnd"?y=ywe(w,D,N,o,c,f==="preserveStartEnd"):y=bwe(w,D,N,o,c),y.filter(function(C){return C.isShow}))}var xwe=["viewBox"],Nwe=["viewBox"],wwe=["ticks"];function rf(e){"@babel/helpers - typeof";return rf=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},rf(e)}function Ad(){return Ad=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},Ad.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 In(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){Jj(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 $D(e,t){if(e==null)return{};var n=Ewe(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 Ewe(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 Swe(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function u8(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,AK(r.key),r)}}function Awe(e,t,n){return t&&u8(e.prototype,t),n&&u8(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function Owe(e,t,n){return t=ix(t),Dwe(e,SK()?Reflect.construct(t,n||[],ix(e).constructor):t.apply(e,n))}function Dwe(e,t){if(t&&(rf(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return Cwe(e)}function Cwe(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function SK(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(SK=function(){return!!e})()}function ix(e){return ix=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},ix(e)}function Twe(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&&HT(e,t)}function HT(e,t){return HT=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,o){return r.__proto__=o,r},HT(e,t)}function Jj(e,t,n){return t=AK(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function AK(e){var t=_we(e,"string");return rf(t)=="symbol"?t:t+""}function _we(e,t){if(rf(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(rf(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}var Df=(function(e){function t(n){var r;return Swe(this,t),r=Owe(this,t,[n]),r.state={fontSize:"",letterSpacing:""},r}return Twe(t,e),Awe(t,[{key:"shouldComponentUpdate",value:function(r,o){var s=r.viewBox,c=$D(r,xwe),u=this.props,f=u.viewBox,m=$D(u,Nwe);return!Td(s,f)||!Td(c,m)||!Td(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,c=o.y,u=o.width,f=o.height,m=o.orientation,g=o.tickSize,h=o.mirror,y=o.tickMargin,x,S,N,w,D,C,j=h?-1:1,P=r.tickSize||g,A=Oe(r.tickCoord)?r.tickCoord:r.coordinate;switch(m){case"top":x=S=r.coordinate,w=c+ +!h*f,N=w-j*P,C=N-j*y,D=A;break;case"left":N=w=r.coordinate,S=s+ +!h*u,x=S-j*P,D=x-j*y,C=A;break;case"right":N=w=r.coordinate,S=s+ +h*u,x=S+j*P,D=x+j*y,C=A;break;default:x=S=r.coordinate,w=c+ +h*f,N=w+j*P,C=N+j*y,D=A;break}return{line:{x1:x,y1:N,x2:S,y2:w},tick:{x:D,y:C}}}},{key:"getTickTextAnchor",value:function(){var r=this.props,o=r.orientation,s=r.mirror,c;switch(o){case"left":c=s?"start":"end";break;case"right":c=s?"end":"start";break;default:c="middle";break}return c}},{key:"getTickVerticalAnchor",value:function(){var r=this.props,o=r.orientation,s=r.mirror,c="end";switch(o){case"left":case"right":c="middle";break;case"top":c=s?"start":"end";break;default:c=s?"end":"start";break}return c}},{key:"renderAxisLine",value:function(){var r=this.props,o=r.x,s=r.y,c=r.width,u=r.height,f=r.orientation,m=r.mirror,g=r.axisLine,h=In(In(In({},Fe(this.props,!1)),Fe(g,!1)),{},{fill:"none"});if(f==="top"||f==="bottom"){var y=+(f==="top"&&!m||f==="bottom"&&m);h=In(In({},h),{},{x1:o,y1:s+y*u,x2:o+c,y2:s+y*u})}else{var x=+(f==="left"&&!m||f==="right"&&m);h=In(In({},h),{},{x1:o+x*c,y1:s,x2:o+x*c,y2:s+u})}return K.createElement("line",Ad({},h,{className:it("recharts-cartesian-axis-line",va(g,"className"))}))}},{key:"renderTicks",value:function(r,o,s){var c=this,u=this.props,f=u.tickLine,m=u.stroke,g=u.tick,h=u.tickFormatter,y=u.unit,x=Zj(In(In({},this.props),{},{ticks:r}),o,s),S=this.getTickTextAnchor(),N=this.getTickVerticalAnchor(),w=Fe(this.props,!1),D=Fe(g,!1),C=In(In({},w),{},{fill:"none"},Fe(f,!1)),j=x.map(function(P,A){var T=c.getTickLineCoord(P),R=T.line,M=T.tick,$=In(In(In(In({textAnchor:S,verticalAnchor:N},w),{},{stroke:"none",fill:m},D),M),{},{index:A,payload:P,visibleTicksCount:x.length,tickFormatter:h});return K.createElement(Dt,Ad({className:"recharts-cartesian-axis-tick",key:"tick-".concat(P.value,"-").concat(P.coordinate,"-").concat(P.tickCoord)},Hc(c.props,P,A)),f&&K.createElement("line",Ad({},C,R,{className:it("recharts-cartesian-axis-tick-line",va(f,"className"))})),g&&t.renderTickItem(g,$,"".concat(Xe(h)?h(P.value,A):P.value).concat(y||"")))});return K.createElement("g",{className:"recharts-cartesian-axis-ticks"},j)}},{key:"render",value:function(){var r=this,o=this.props,s=o.axisLine,c=o.width,u=o.height,f=o.ticksGenerator,m=o.className,g=o.hide;if(g)return null;var h=this.props,y=h.ticks,x=$D(h,wwe),S=y;return Xe(f)&&(S=y&&y.length>0?f(this.props):f(x)),c<=0||u<=0||!S||!S.length?null:K.createElement(Dt,{className:it("recharts-cartesian-axis",m),ref:function(w){r.layerReference=w}},s&&this.renderAxisLine(),this.renderTicks(S,this.state.fontSize,this.state.letterSpacing),Xn.renderCallByParent(this.props))}}],[{key:"renderTickItem",value:function(r,o,s){var c,u=it(o.className,"recharts-cartesian-axis-tick-value");return K.isValidElement(r)?c=K.cloneElement(r,In(In({},o),{},{className:u})):Xe(r)?c=r(In(In({},o),{},{className:u})):c=K.createElement(Fc,Ad({},o,{className:"recharts-cartesian-axis-tick-value"}),s),c}}])})(_.Component);Jj(Df,"displayName","CartesianAxis");Jj(Df,"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 jwe=["x1","y1","x2","y2","key"],Rwe=["offset"];function Yc(e){"@babel/helpers - typeof";return Yc=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},Yc(e)}function d8(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?d8(Object(n),!0).forEach(function(r){Pwe(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):d8(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function Pwe(e,t,n){return t=Mwe(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Mwe(e){var t=kwe(e,"string");return Yc(t)=="symbol"?t:t+""}function kwe(e,t){if(Yc(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(Yc(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(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 f8(e,t){if(e==null)return{};var n=Iwe(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 Iwe(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 Lwe=function(t){var n=t.fill;if(!n||n==="none")return null;var r=t.fillOpacity,o=t.x,s=t.y,c=t.width,u=t.height,f=t.ry;return K.createElement("rect",{x:o,y:s,ry:f,width:c,height:u,stroke:"none",fill:n,fillOpacity:r,className:"recharts-cartesian-grid-bg"})};function OK(e,t){var n;if(K.isValidElement(e))n=K.cloneElement(e,t);else if(Xe(e))n=e(t);else{var r=t.x1,o=t.y1,s=t.x2,c=t.y2,u=t.key,f=f8(t,jwe),m=Fe(f,!1);m.offset;var g=f8(m,Rwe);n=K.createElement("line",Ac({},g,{x1:r,y1:o,x2:s,y2:c,fill:"none",key:u}))}return n}function Vwe(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 c=s.map(function(u,f){var m=fr(fr({},e),{},{x1:t,y1:u,x2:t+n,y2:u,key:"line-".concat(f),index:f});return OK(o,m)});return K.createElement("g",{className:"recharts-cartesian-grid-horizontal"},c)}function $we(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 c=s.map(function(u,f){var m=fr(fr({},e),{},{x1:u,y1:t,x2:u,y2:t+n,key:"line-".concat(f),index:f});return OK(o,m)});return K.createElement("g",{className:"recharts-cartesian-grid-vertical"},c)}function Bwe(e){var t=e.horizontalFill,n=e.fillOpacity,r=e.x,o=e.y,s=e.width,c=e.height,u=e.horizontalPoints,f=e.horizontal,m=f===void 0?!0:f;if(!m||!t||!t.length)return null;var g=u.map(function(y){return Math.round(y+o-o)}).sort(function(y,x){return y-x});o!==g[0]&&g.unshift(0);var h=g.map(function(y,x){var S=!g[x+1],N=S?o+c-y:g[x+1]-y;if(N<=0)return null;var w=x%t.length;return K.createElement("rect",{key:"react-".concat(x),y,x:r,height:N,width:s,stroke:"none",fill:t[w],fillOpacity:n,className:"recharts-cartesian-grid-bg"})});return K.createElement("g",{className:"recharts-cartesian-gridstripes-horizontal"},h)}function zwe(e){var t=e.vertical,n=t===void 0?!0:t,r=e.verticalFill,o=e.fillOpacity,s=e.x,c=e.y,u=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,x){return y-x});s!==g[0]&&g.unshift(0);var h=g.map(function(y,x){var S=!g[x+1],N=S?s+u-y:g[x+1]-y;if(N<=0)return null;var w=x%r.length;return K.createElement("rect",{key:"react-".concat(x),x:y,y:c,width:N,height:f,stroke:"none",fill:r[w],fillOpacity:o,className:"recharts-cartesian-grid-bg"})});return K.createElement("g",{className:"recharts-cartesian-gridstripes-vertical"},h)}var Uwe=function(t,n){var r=t.xAxis,o=t.width,s=t.height,c=t.offset;return EF(Zj(fr(fr(fr({},Df.defaultProps),r),{},{ticks:ts(r,!0),viewBox:{x:0,y:0,width:o,height:s}})),c.left,c.left+c.width,n)},qwe=function(t,n){var r=t.yAxis,o=t.width,s=t.height,c=t.offset;return EF(Zj(fr(fr(fr({},Df.defaultProps),r),{},{ticks:ts(r,!0),viewBox:{x:0,y:0,width:o,height:s}})),c.top,c.top+c.height,n)},bd={horizontal:!0,vertical:!0,stroke:"#ccc",fill:"none",verticalFill:[],horizontalFill:[]};function DK(e){var t,n,r,o,s,c,u=Yj(),f=Qj(),m=_Ne(),g=fr(fr({},e),{},{stroke:(t=e.stroke)!==null&&t!==void 0?t:bd.stroke,fill:(n=e.fill)!==null&&n!==void 0?n:bd.fill,horizontal:(r=e.horizontal)!==null&&r!==void 0?r:bd.horizontal,horizontalFill:(o=e.horizontalFill)!==null&&o!==void 0?o:bd.horizontalFill,vertical:(s=e.vertical)!==null&&s!==void 0?s:bd.vertical,verticalFill:(c=e.verticalFill)!==null&&c!==void 0?c:bd.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}),h=g.x,y=g.y,x=g.width,S=g.height,N=g.syncWithTicks,w=g.horizontalValues,D=g.verticalValues,C=DNe(),j=CNe();if(!Oe(x)||x<=0||!Oe(S)||S<=0||!Oe(h)||h!==+h||!Oe(y)||y!==+y)return null;var P=g.verticalCoordinatesGenerator||Uwe,A=g.horizontalCoordinatesGenerator||qwe,T=g.horizontalPoints,R=g.verticalPoints;if((!T||!T.length)&&Xe(A)){var M=w&&w.length,$=A({yAxis:j?fr(fr({},j),{},{ticks:M?w:j.ticks}):void 0,width:u,height:f,offset:m},M?!0:N);ui(Array.isArray($),"horizontalCoordinatesGenerator should return Array but instead it returned [".concat(Yc($),"]")),Array.isArray($)&&(T=$)}if((!R||!R.length)&&Xe(P)){var z=D&&D.length,U=P({xAxis:C?fr(fr({},C),{},{ticks:z?D:C.ticks}):void 0,width:u,height:f,offset:m},z?!0:N);ui(Array.isArray(U),"verticalCoordinatesGenerator should return Array but instead it returned [".concat(Yc(U),"]")),Array.isArray(U)&&(R=U)}return K.createElement("g",{className:"recharts-cartesian-grid"},K.createElement(Lwe,{fill:g.fill,fillOpacity:g.fillOpacity,x:g.x,y:g.y,width:g.width,height:g.height,ry:g.ry}),K.createElement(Vwe,Ac({},g,{offset:m,horizontalPoints:T,xAxis:C,yAxis:j})),K.createElement($we,Ac({},g,{offset:m,verticalPoints:R,xAxis:C,yAxis:j})),K.createElement(Bwe,Ac({},g,{horizontalPoints:T})),K.createElement(zwe,Ac({},g,{verticalPoints:R})))}DK.displayName="CartesianGrid";var Hwe=["layout","type","stroke","connectNulls","isRange","ref"],Fwe=["key"],CK;function af(e){"@babel/helpers - typeof";return af=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},af(e)}function TK(e,t){if(e==null)return{};var n=Kwe(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 Kwe(e,t){if(e==null)return{};var n={};for(var r in e)if(Object.prototype.hasOwnProperty.call(e,r)){if(t.indexOf(r)>=0)continue;n[r]=e[r]}return n}function Oc(){return Oc=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},Oc.apply(this,arguments)}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 ol(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){no(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 Gwe(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,jK(r.key),r)}}function Ywe(e,t,n){return t&&h8(e.prototype,t),n&&h8(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function Qwe(e,t,n){return t=ox(t),Xwe(e,_K()?Reflect.construct(t,n||[],ox(e).constructor):t.apply(e,n))}function Xwe(e,t){if(t&&(af(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return Wwe(e)}function Wwe(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function _K(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(_K=function(){return!!e})()}function ox(e){return ox=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},ox(e)}function Zwe(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&&FT(e,t)}function FT(e,t){return FT=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,o){return r.__proto__=o,r},FT(e,t)}function no(e,t,n){return t=jK(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function jK(e){var t=Jwe(e,"string");return af(t)=="symbol"?t:t+""}function Jwe(e,t){if(af(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(af(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}var so=(function(e){function t(){var n;Gwe(this,t);for(var r=arguments.length,o=new Array(r),s=0;s<r;s++)o[s]=arguments[s];return n=Qwe(this,t,[].concat(o)),no(n,"state",{isAnimationFinished:!0}),no(n,"id",wf("recharts-area-")),no(n,"handleAnimationEnd",function(){var c=n.props.onAnimationEnd;n.setState({isAnimationFinished:!0}),Xe(c)&&c()}),no(n,"handleAnimationStart",function(){var c=n.props.onAnimationStart;n.setState({isAnimationFinished:!1}),Xe(c)&&c()}),n}return Zwe(t,e),Ywe(t,[{key:"renderDots",value:function(r,o,s){var c=this.props.isAnimationActive,u=this.state.isAnimationFinished;if(c&&!u)return null;var f=this.props,m=f.dot,g=f.points,h=f.dataKey,y=Fe(this.props,!1),x=Fe(m,!0),S=g.map(function(w,D){var C=ol(ol(ol({key:"dot-".concat(D),r:3},y),x),{},{index:D,cx:w.x,cy:w.y,dataKey:h,value:w.value,payload:w.payload,points:g});return t.renderDotItem(m,C)}),N={clipPath:r?"url(#clipPath-".concat(o?"":"dots-").concat(s,")"):null};return K.createElement(Dt,Oc({className:"recharts-area-dots"},N),S)}},{key:"renderHorizontalRect",value:function(r){var o=this.props,s=o.baseLine,c=o.points,u=o.strokeWidth,f=c[0].x,m=c[c.length-1].x,g=r*Math.abs(f-m),h=ul(c.map(function(y){return y.y||0}));return Oe(s)&&typeof s=="number"?h=Math.max(s,h):s&&Array.isArray(s)&&s.length&&(h=Math.max(ul(s.map(function(y){return y.y||0})),h)),Oe(h)?K.createElement("rect",{x:f<m?f:f-g,y:0,width:g,height:Math.floor(h+(u?parseInt("".concat(u),10):1))}):null}},{key:"renderVerticalRect",value:function(r){var o=this.props,s=o.baseLine,c=o.points,u=o.strokeWidth,f=c[0].y,m=c[c.length-1].y,g=r*Math.abs(f-m),h=ul(c.map(function(y){return y.x||0}));return Oe(s)&&typeof s=="number"?h=Math.max(s,h):s&&Array.isArray(s)&&s.length&&(h=Math.max(ul(s.map(function(y){return y.x||0})),h)),Oe(h)?K.createElement("rect",{x:0,y:f<m?f:f-g,width:h+(u?parseInt("".concat(u),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,c){var u=this.props,f=u.layout,m=u.type,g=u.stroke,h=u.connectNulls,y=u.isRange;u.ref;var x=TK(u,Hwe);return K.createElement(Dt,{clipPath:s?"url(#clipPath-".concat(c,")"):null},K.createElement(Rd,Oc({},Fe(x,!0),{points:r,connectNulls:h,type:m,baseLine:o,layout:f,stroke:"none",className:"recharts-area-area"})),g!=="none"&&K.createElement(Rd,Oc({},Fe(this.props,!1),{className:"recharts-area-curve",layout:f,type:m,connectNulls:h,fill:"none",points:r})),g!=="none"&&y&&K.createElement(Rd,Oc({},Fe(this.props,!1),{className:"recharts-area-curve",layout:f,type:m,connectNulls:h,fill:"none",points:o})))}},{key:"renderAreaWithAnimation",value:function(r,o){var s=this,c=this.props,u=c.points,f=c.baseLine,m=c.isAnimationActive,g=c.animationBegin,h=c.animationDuration,y=c.animationEasing,x=c.animationId,S=this.state,N=S.prevPoints,w=S.prevBaseLine;return K.createElement(fo,{begin:g,duration:h,isActive:m,easing:y,from:{t:0},to:{t:1},key:"area-".concat(x),onAnimationEnd:this.handleAnimationEnd,onAnimationStart:this.handleAnimationStart},function(D){var C=D.t;if(N){var j=N.length/u.length,P=u.map(function(M,$){var z=Math.floor($*j);if(N[z]){var U=N[z],V=Fr(U.x,M.x),F=Fr(U.y,M.y);return ol(ol({},M),{},{x:V(C),y:F(C)})}return M}),A;if(Oe(f)&&typeof f=="number"){var T=Fr(w,f);A=T(C)}else if(ot(f)||Nf(f)){var R=Fr(w,0);A=R(C)}else A=f.map(function(M,$){var z=Math.floor($*j);if(w[z]){var U=w[z],V=Fr(U.x,M.x),F=Fr(U.y,M.y);return ol(ol({},M),{},{x:V(C),y:F(C)})}return M});return s.renderAreaStatically(P,A,r,o)}return K.createElement(Dt,null,K.createElement("defs",null,K.createElement("clipPath",{id:"animationClipPath-".concat(o)},s.renderClipRect(C))),K.createElement(Dt,{clipPath:"url(#animationClipPath-".concat(o,")")},s.renderAreaStatically(u,f,r,o)))})}},{key:"renderArea",value:function(r,o){var s=this.props,c=s.points,u=s.baseLine,f=s.isAnimationActive,m=this.state,g=m.prevPoints,h=m.prevBaseLine,y=m.totalLength;return f&&c&&c.length&&(!g&&y>0||!Hd(g,c)||!Hd(h,u))?this.renderAreaWithAnimation(r,o):this.renderAreaStatically(c,u,r,o)}},{key:"render",value:function(){var r,o=this.props,s=o.hide,c=o.dot,u=o.points,f=o.className,m=o.top,g=o.left,h=o.xAxis,y=o.yAxis,x=o.width,S=o.height,N=o.isAnimationActive,w=o.id;if(s||!u||!u.length)return null;var D=this.state.isAnimationFinished,C=u.length===1,j=it("recharts-area",f),P=h&&h.allowDataOverflow,A=y&&y.allowDataOverflow,T=P||A,R=ot(w)?this.id:w,M=(r=Fe(c,!1))!==null&&r!==void 0?r:{r:3,strokeWidth:2},$=M.r,z=$===void 0?3:$,U=M.strokeWidth,V=U===void 0?2:U,F=Pce(c)?c:{},X=F.clipDot,ee=X===void 0?!0:X,q=z*2+V;return K.createElement(Dt,{className:j},P||A?K.createElement("defs",null,K.createElement("clipPath",{id:"clipPath-".concat(R)},K.createElement("rect",{x:P?g:g-x/2,y:A?m:m-S/2,width:P?x:x*2,height:A?S:S*2})),!ee&&K.createElement("clipPath",{id:"clipPath-dots-".concat(R)},K.createElement("rect",{x:g-q/2,y:m-q/2,width:x+q,height:S+q}))):null,C?null:this.renderArea(T,R),(c||C)&&this.renderDots(T,ee,R),(!N||D)&&as.renderCallByParent(this.props,u))}}],[{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}}])})(_.PureComponent);CK=so;no(so,"displayName","Area");no(so,"defaultProps",{stroke:"#3182bd",fill:"#3182bd",fillOpacity:.6,xAxisId:0,yAxisId:0,legendType:"line",connectNulls:!1,points:[],dot:!1,activeDot:!0,hide:!1,isAnimationActive:!au.isSsr,animationBegin:0,animationDuration:1500,animationEasing:"ease"});no(so,"getBaseValue",function(e,t,n,r){var o=e.layout,s=e.baseValue,c=t.props.baseValue,u=c??s;if(Oe(u)&&typeof u=="number")return u;var f=o==="horizontal"?r:n,m=f.scale.domain();if(f.type==="number"){var g=Math.max(m[0],m[1]),h=Math.min(m[0],m[1]);return u==="dataMin"?h:u==="dataMax"||g<0?g:Math.max(Math.min(m[0],m[1]),0)}return u==="dataMin"?m[0]:u==="dataMax"?m[1]:m[0]});no(so,"getComposedData",function(e){var t=e.props,n=e.item,r=e.xAxis,o=e.yAxis,s=e.xAxisTicks,c=e.yAxisTicks,u=e.bandSize,f=e.dataKey,m=e.stackedData,g=e.dataStartIndex,h=e.displayedData,y=e.offset,x=t.layout,S=m&&m.length,N=CK.getBaseValue(t,n,r,o),w=x==="horizontal",D=!1,C=h.map(function(P,A){var T;S?T=m[g+A]:(T=$n(P,f),Array.isArray(T)?D=!0:T=[N,T]);var R=T[1]==null||S&&$n(P,f)==null;return w?{x:fB({axis:r,ticks:s,bandSize:u,entry:P,index:A}),y:R?null:o.scale(T[1]),value:T,payload:P}:{x:R?null:r.scale(T[1]),y:fB({axis:o,ticks:c,bandSize:u,entry:P,index:A}),value:T,payload:P}}),j;return S||D?j=C.map(function(P){var A=Array.isArray(P.value)?P.value[0]:null;return w?{x:P.x,y:A!=null&&P.y!=null?o.scale(A):null}:{x:A!=null?r.scale(A):null,y:P.y}}):j=w?o.scale(N):r.scale(N),ol({points:C,baseLine:j,layout:x,isRange:D},y)});no(so,"renderDotItem",function(e,t){var n;if(K.isValidElement(e))n=K.cloneElement(e,t);else if(Xe(e))n=e(t);else{var r=it("recharts-area-dot",typeof e!="boolean"?e.className:""),o=t.key,s=TK(t,Fwe);n=K.createElement(l0,Oc({},s,{key:o,className:r}))}return n});function of(e){"@babel/helpers - typeof";return of=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},of(e)}function eEe(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function tEe(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,MK(r.key),r)}}function nEe(e,t,n){return t&&tEe(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function rEe(e,t,n){return t=sx(t),aEe(e,RK()?Reflect.construct(t,n||[],sx(e).constructor):t.apply(e,n))}function aEe(e,t){if(t&&(of(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return iEe(e)}function iEe(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function RK(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(RK=function(){return!!e})()}function sx(e){return sx=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},sx(e)}function oEe(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&&KT(e,t)}function KT(e,t){return KT=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,o){return r.__proto__=o,r},KT(e,t)}function PK(e,t,n){return t=MK(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function MK(e){var t=sEe(e,"string");return of(t)=="symbol"?t:t+""}function sEe(e,t){if(of(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(of(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}function GT(){return GT=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},GT.apply(this,arguments)}function lEe(e){var t=e.xAxisId,n=Yj(),r=Qj(),o=pK(t);return o==null?null:_.createElement(Df,GT({},o,{className:it("recharts-".concat(o.axisType," ").concat(o.axisType),o.className),viewBox:{x:0,y:0,width:n,height:r},ticksGenerator:function(c){return ts(c,!0)}}))}var x0=(function(e){function t(){return eEe(this,t),rEe(this,t,arguments)}return oEe(t,e),nEe(t,[{key:"render",value:function(){return _.createElement(lEe,this.props)}}])})(_.Component);PK(x0,"displayName","XAxis");PK(x0,"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 sf(e){"@babel/helpers - typeof";return sf=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},sf(e)}function cEe(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function uEe(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,LK(r.key),r)}}function dEe(e,t,n){return t&&uEe(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function fEe(e,t,n){return t=lx(t),mEe(e,kK()?Reflect.construct(t,n||[],lx(e).constructor):t.apply(e,n))}function mEe(e,t){if(t&&(sf(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return hEe(e)}function hEe(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function kK(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(kK=function(){return!!e})()}function lx(e){return lx=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},lx(e)}function pEe(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&&YT(e,t)}function YT(e,t){return YT=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,o){return r.__proto__=o,r},YT(e,t)}function IK(e,t,n){return t=LK(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function LK(e){var t=gEe(e,"string");return sf(t)=="symbol"?t:t+""}function gEe(e,t){if(sf(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(sf(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}function QT(){return QT=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},QT.apply(this,arguments)}var vEe=function(t){var n=t.yAxisId,r=Yj(),o=Qj(),s=gK(n);return s==null?null:_.createElement(Df,QT({},s,{className:it("recharts-".concat(s.axisType," ").concat(s.axisType),s.className),viewBox:{x:0,y:0,width:r,height:o},ticksGenerator:function(u){return ts(u,!0)}}))},N0=(function(e){function t(){return cEe(this,t),fEe(this,t,arguments)}return pEe(t,e),dEe(t,[{key:"render",value:function(){return _.createElement(vEe,this.props)}}])})(_.Component);IK(N0,"displayName","YAxis");IK(N0,"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 p8(e){return NEe(e)||xEe(e)||yEe(e)||bEe()}function bEe(){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 yEe(e,t){if(e){if(typeof e=="string")return XT(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 XT(e,t)}}function xEe(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function NEe(e){if(Array.isArray(e))return XT(e)}function XT(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 WT=function(t,n,r,o,s){var c=Ua(t,Wj),u=Ua(t,v0),f=[].concat(p8(c),p8(u)),m=Ua(t,y0),g="".concat(o,"Id"),h=o[0],y=n;if(f.length&&(y=f.reduce(function(N,w){if(w.props[g]===r&&oo(w.props,"extendDomain")&&Oe(w.props[h])){var D=w.props[h];return[Math.min(N[0],D),Math.max(N[1],D)]}return N},y)),m.length){var x="".concat(h,"1"),S="".concat(h,"2");y=m.reduce(function(N,w){if(w.props[g]===r&&oo(w.props,"extendDomain")&&Oe(w.props[x])&&Oe(w.props[S])){var D=w.props[x],C=w.props[S];return[Math.min(N[0],D,C),Math.max(N[1],D,C)]}return N},y)}return s&&s.length&&(y=s.reduce(function(N,w){return Oe(w)?[Math.min(N[0],w),Math.max(N[1],w)]:N},y)),y},BD={exports:{}},g8;function wEe(){return g8||(g8=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,h,y){if(typeof g!="function")throw new TypeError("The listener must be a function");var x=new o(g,h||f,y),S=n?n+m:m;return f._events[S]?f._events[S].fn?f._events[S]=[f._events[S],x]:f._events[S].push(x):(f._events[S]=x,f._eventsCount++),f}function c(f,m){--f._eventsCount===0?f._events=new r:delete f._events[m]}function u(){this._events=new r,this._eventsCount=0}u.prototype.eventNames=function(){var m=[],g,h;if(this._eventsCount===0)return m;for(h in g=this._events)t.call(g,h)&&m.push(n?h.slice(1):h);return Object.getOwnPropertySymbols?m.concat(Object.getOwnPropertySymbols(g)):m},u.prototype.listeners=function(m){var g=n?n+m:m,h=this._events[g];if(!h)return[];if(h.fn)return[h.fn];for(var y=0,x=h.length,S=new Array(x);y<x;y++)S[y]=h[y].fn;return S},u.prototype.listenerCount=function(m){var g=n?n+m:m,h=this._events[g];return h?h.fn?1:h.length:0},u.prototype.emit=function(m,g,h,y,x,S){var N=n?n+m:m;if(!this._events[N])return!1;var w=this._events[N],D=arguments.length,C,j;if(w.fn){switch(w.once&&this.removeListener(m,w.fn,void 0,!0),D){case 1:return w.fn.call(w.context),!0;case 2:return w.fn.call(w.context,g),!0;case 3:return w.fn.call(w.context,g,h),!0;case 4:return w.fn.call(w.context,g,h,y),!0;case 5:return w.fn.call(w.context,g,h,y,x),!0;case 6:return w.fn.call(w.context,g,h,y,x,S),!0}for(j=1,C=new Array(D-1);j<D;j++)C[j-1]=arguments[j];w.fn.apply(w.context,C)}else{var P=w.length,A;for(j=0;j<P;j++)switch(w[j].once&&this.removeListener(m,w[j].fn,void 0,!0),D){case 1:w[j].fn.call(w[j].context);break;case 2:w[j].fn.call(w[j].context,g);break;case 3:w[j].fn.call(w[j].context,g,h);break;case 4:w[j].fn.call(w[j].context,g,h,y);break;default:if(!C)for(A=1,C=new Array(D-1);A<D;A++)C[A-1]=arguments[A];w[j].fn.apply(w[j].context,C)}}return!0},u.prototype.on=function(m,g,h){return s(this,m,g,h,!1)},u.prototype.once=function(m,g,h){return s(this,m,g,h,!0)},u.prototype.removeListener=function(m,g,h,y){var x=n?n+m:m;if(!this._events[x])return this;if(!g)return c(this,x),this;var S=this._events[x];if(S.fn)S.fn===g&&(!y||S.once)&&(!h||S.context===h)&&c(this,x);else{for(var N=0,w=[],D=S.length;N<D;N++)(S[N].fn!==g||y&&!S[N].once||h&&S[N].context!==h)&&w.push(S[N]);w.length?this._events[x]=w.length===1?w[0]:w:c(this,x)}return this},u.prototype.removeAllListeners=function(m){var g;return m?(g=n?n+m:m,this._events[g]&&c(this,g)):(this._events=new r,this._eventsCount=0),this},u.prototype.off=u.prototype.removeListener,u.prototype.addListener=u.prototype.on,u.prefixed=n,u.EventEmitter=u,e.exports=u})(BD)),BD.exports}var EEe=wEe();const SEe=Bt(EEe);var zD=new SEe,UD="recharts.syncMouseEvents";function Cp(e){"@babel/helpers - typeof";return Cp=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},Cp(e)}function AEe(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,VK(r.key),r)}}function DEe(e,t,n){return t&&OEe(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function qD(e,t,n){return t=VK(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function VK(e){var t=CEe(e,"string");return Cp(t)=="symbol"?t:t+""}function CEe(e,t){if(Cp(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(Cp(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}var TEe=(function(){function e(){AEe(this,e),qD(this,"activeIndex",0),qD(this,"coordinateList",[]),qD(this,"layout","horizontal")}return DEe(e,[{key:"setDetails",value:function(n){var r,o=n.coordinateList,s=o===void 0?null:o,c=n.container,u=c===void 0?null:c,f=n.layout,m=f===void 0?null:f,g=n.offset,h=g===void 0?null:g,y=n.mouseHandlerCallback,x=y===void 0?null:y;this.coordinateList=(r=s??this.coordinateList)!==null&&r!==void 0?r:[],this.container=u??this.container,this.layout=m??this.layout,this.offset=h??this.offset,this.mouseHandlerCallback=x??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,c=o.y,u=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,h=s+f+m,y=c+this.offset.top+u/2+g;this.mouseHandlerCallback({pageX:h,pageY:y})}}}])})();function _Ee(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 jEe(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 $K(e){var t=e.cx,n=e.cy,r=e.radius,o=e.startAngle,s=e.endAngle,c=en(t,n,r,o),u=en(t,n,r,s);return{points:[c,u],cx:t,cy:n,radius:r,startAngle:o,endAngle:s}}function REe(e,t,n){var r,o,s,c;if(e==="horizontal")r=t.x,s=r,o=n.top,c=n.top+n.height;else if(e==="vertical")o=t.y,c=o,r=n.left,s=n.left+n.width;else if(t.cx!=null&&t.cy!=null)if(e==="centric"){var u=t.cx,f=t.cy,m=t.innerRadius,g=t.outerRadius,h=t.angle,y=en(u,f,m,h),x=en(u,f,g,h);r=y.x,o=y.y,s=x.x,c=x.y}else return $K(t);return[{x:r,y:o},{x:s,y:c}]}function Tp(e){"@babel/helpers - typeof";return Tp=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},Tp(e)}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 Vb(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){PEe(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 PEe(e,t,n){return t=MEe(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function MEe(e){var t=kEe(e,"string");return Tp(t)=="symbol"?t:t+""}function kEe(e,t){if(Tp(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(Tp(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function IEe(e){var t,n,r=e.element,o=e.tooltipEventType,s=e.isActive,c=e.activeCoordinate,u=e.activePayload,f=e.offset,m=e.activeTooltipIndex,g=e.tooltipAxisBandSize,h=e.layout,y=e.chartName,x=(t=r.props.cursor)!==null&&t!==void 0?t:(n=r.type.defaultProps)===null||n===void 0?void 0:n.cursor;if(!r||!x||!s||!c||y!=="ScatterChart"&&o!=="axis")return null;var S,N=Rd;if(y==="ScatterChart")S=c,N=s0e;else if(y==="BarChart")S=jEe(h,c,f,g),N=Hj;else if(h==="radial"){var w=$K(c),D=w.cx,C=w.cy,j=w.radius,P=w.startAngle,A=w.endAngle;S={cx:D,cy:C,startAngle:P,endAngle:A,innerRadius:j,outerRadius:j},N=MF}else S={points:REe(h,c,f)},N=Rd;var T=Vb(Vb(Vb(Vb({stroke:"#ccc",pointerEvents:"none"},f),S),Fe(x,!1)),{},{payload:u,payloadIndex:m,className:it("recharts-tooltip-cursor",x.className)});return _.isValidElement(x)?_.cloneElement(x,T):_.createElement(N,T)}var LEe=["item"],VEe=["children","className","width","height","style","compact","title","desc"];function lf(e){"@babel/helpers - typeof";return lf=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},lf(e)}function Od(){return Od=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},Od.apply(this,arguments)}function b8(e,t){return zEe(e)||BEe(e,t)||zK(e,t)||$Ee()}function $Ee(){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 BEe(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r,o,s,c,u=[],f=!0,m=!1;try{if(s=(n=n.call(e)).next,t!==0)for(;!(f=(r=s.call(n)).done)&&(u.push(r.value),u.length!==t);f=!0);}catch(g){m=!0,o=g}finally{try{if(!f&&n.return!=null&&(c=n.return(),Object(c)!==c))return}finally{if(m)throw o}}return u}}function zEe(e){if(Array.isArray(e))return e}function y8(e,t){if(e==null)return{};var n=UEe(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 UEe(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 qEe(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function HEe(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,UK(r.key),r)}}function FEe(e,t,n){return t&&HEe(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function KEe(e,t,n){return t=cx(t),GEe(e,BK()?Reflect.construct(t,n||[],cx(e).constructor):t.apply(e,n))}function GEe(e,t){if(t&&(lf(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return YEe(e)}function YEe(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function BK(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(BK=function(){return!!e})()}function cx(e){return cx=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},cx(e)}function QEe(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&&ZT(e,t)}function ZT(e,t){return ZT=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,o){return r.__proto__=o,r},ZT(e,t)}function cf(e){return ZEe(e)||WEe(e)||zK(e)||XEe()}function XEe(){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 zK(e,t){if(e){if(typeof e=="string")return JT(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 JT(e,t)}}function WEe(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function ZEe(e){if(Array.isArray(e))return JT(e)}function JT(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 be(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){Qe(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 Qe(e,t,n){return t=UK(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function UK(e){var t=JEe(e,"string");return lf(t)=="symbol"?t:t+""}function JEe(e,t){if(lf(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(lf(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var eSe={xAxis:["bottom","top"],yAxis:["left","right"]},tSe={width:"100%",height:"100%"},qK={x:0,y:0};function $b(e){return e}var nSe=function(t,n){return n==="horizontal"?t.x:n==="vertical"?t.y:n==="centric"?t.angle:t.radius},rSe=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 c=s.coordinate,u=o.radius;return be(be(be({},o),en(o.cx,o.cy,u,c)),{},{angle:c,radius:u})}var f=s.coordinate,m=o.angle;return be(be(be({},o),en(o.cx,o.cy,f,m)),{},{angle:m,radius:f})}return qK},w0=function(t,n){var r=n.graphicalItems,o=n.dataStartIndex,s=n.dataEndIndex,c=(r??[]).reduce(function(u,f){var m=f.props.data;return m&&m.length?[].concat(cf(u),cf(m)):u},[]);return c.length>0?c:t&&t.length&&Oe(o)&&Oe(s)?t.slice(o,s+1):[]};function HK(e){return e==="number"?[0,"auto"]:void 0}var e_=function(t,n,r,o){var s=t.graphicalItems,c=t.tooltipAxis,u=w0(n,t);return r<0||!s||!s.length||r>=u.length?null:s.reduce(function(f,m){var g,h=(g=m.props.data)!==null&&g!==void 0?g:n;h&&t.dataStartIndex+t.dataEndIndex!==0&&t.dataEndIndex-t.dataStartIndex>=r&&(h=h.slice(t.dataStartIndex,t.dataEndIndex+1));var y;if(c.dataKey&&!c.allowDuplicatedCategory){var x=h===void 0?u:h;y=dy(x,c.dataKey,o)}else y=h&&h[r]||u[r];return y?[].concat(cf(f),[CF(m,y)]):f},[])},N8=function(t,n,r,o){var s=o||{x:t.chartX,y:t.chartY},c=nSe(s,r),u=t.orderedTooltipTicks,f=t.tooltipAxis,m=t.tooltipTicks,g=Tve(c,u,m,f);if(g>=0&&m){var h=m[g]&&m[g].value,y=e_(t,n,g,h),x=rSe(r,u,g,s);return{activeTooltipIndex:g,activeLabel:h,activePayload:y,activeCoordinate:x}}return null},aSe=function(t,n){var r=n.axes,o=n.graphicalItems,s=n.axisType,c=n.axisIdKey,u=n.stackGroups,f=n.dataStartIndex,m=n.dataEndIndex,g=t.layout,h=t.children,y=t.stackOffset,x=wF(g,s);return r.reduce(function(S,N){var w,D=N.type.defaultProps!==void 0?be(be({},N.type.defaultProps),N.props):N.props,C=D.type,j=D.dataKey,P=D.allowDataOverflow,A=D.allowDuplicatedCategory,T=D.scale,R=D.ticks,M=D.includeHidden,$=D[c];if(S[$])return S;var z=w0(t.data,{graphicalItems:o.filter(function(H){var Y,re=c in H.props?H.props[c]:(Y=H.type.defaultProps)===null||Y===void 0?void 0:Y[c];return re===$}),dataStartIndex:f,dataEndIndex:m}),U=z.length,V,F,X;_Ee(D.domain,P,C)&&(V=pT(D.domain,null,P),x&&(C==="number"||T!=="auto")&&(X=Rh(z,j,"category")));var ee=HK(C);if(!V||V.length===0){var q,Q=(q=D.domain)!==null&&q!==void 0?q:ee;if(j){if(V=Rh(z,j,C),C==="category"&&x){var G=Ece(V);A&&G?(F=V,V=Qy(0,U)):A||(V=gB(Q,V,N).reduce(function(H,Y){return H.indexOf(Y)>=0?H:[].concat(cf(H),[Y])},[]))}else if(C==="category")A?V=V.filter(function(H){return H!==""&&!ot(H)}):V=gB(Q,V,N).reduce(function(H,Y){return H.indexOf(Y)>=0||Y===""||ot(Y)?H:[].concat(cf(H),[Y])},[]);else if(C==="number"){var ne=Mve(z,o.filter(function(H){var Y,re,ge=c in H.props?H.props[c]:(Y=H.type.defaultProps)===null||Y===void 0?void 0:Y[c],we="hide"in H.props?H.props.hide:(re=H.type.defaultProps)===null||re===void 0?void 0:re.hide;return ge===$&&(M||!we)}),j,s,g);ne&&(V=ne)}x&&(C==="number"||T!=="auto")&&(X=Rh(z,j,"category"))}else x?V=Qy(0,U):u&&u[$]&&u[$].hasStack&&C==="number"?V=y==="expand"?[0,1]:DF(u[$].stackGroups,f,m):V=NF(z,o.filter(function(H){var Y=c in H.props?H.props[c]:H.type.defaultProps[c],re="hide"in H.props?H.props.hide:H.type.defaultProps.hide;return Y===$&&(M||!re)}),C,g,!0);if(C==="number")V=WT(h,V,$,s,R),Q&&(V=pT(Q,V,P));else if(C==="category"&&Q){var te=Q,I=V.every(function(H){return te.indexOf(H)>=0});I&&(V=te)}}return be(be({},S),{},Qe({},$,be(be({},D),{},{axisType:s,domain:V,categoricalDomain:X,duplicateDomain:F,originalDomain:(w=D.domain)!==null&&w!==void 0?w:ee,isCategorical:x,layout:g})))},{})},iSe=function(t,n){var r=n.graphicalItems,o=n.Axis,s=n.axisType,c=n.axisIdKey,u=n.stackGroups,f=n.dataStartIndex,m=n.dataEndIndex,g=t.layout,h=t.children,y=w0(t.data,{graphicalItems:r,dataStartIndex:f,dataEndIndex:m}),x=y.length,S=wF(g,s),N=-1;return r.reduce(function(w,D){var C=D.type.defaultProps!==void 0?be(be({},D.type.defaultProps),D.props):D.props,j=C[c],P=HK("number");if(!w[j]){N++;var A;return S?A=Qy(0,x):u&&u[j]&&u[j].hasStack?(A=DF(u[j].stackGroups,f,m),A=WT(h,A,j,s)):(A=pT(P,NF(y,r.filter(function(T){var R,M,$=c in T.props?T.props[c]:(R=T.type.defaultProps)===null||R===void 0?void 0:R[c],z="hide"in T.props?T.props.hide:(M=T.type.defaultProps)===null||M===void 0?void 0:M.hide;return $===j&&!z}),"number",g),o.defaultProps.allowDataOverflow),A=WT(h,A,j,s)),be(be({},w),{},Qe({},j,be(be({axisType:s},o.defaultProps),{},{hide:!0,orientation:va(eSe,"".concat(s,".").concat(N%2),null),domain:A,originalDomain:P,isCategorical:S,layout:g})))}return w},{})},oSe=function(t,n){var r=n.axisType,o=r===void 0?"xAxis":r,s=n.AxisComp,c=n.graphicalItems,u=n.stackGroups,f=n.dataStartIndex,m=n.dataEndIndex,g=t.children,h="".concat(o,"Id"),y=Ua(g,s),x={};return y&&y.length?x=aSe(t,{axes:y,graphicalItems:c,axisType:o,axisIdKey:h,stackGroups:u,dataStartIndex:f,dataEndIndex:m}):c&&c.length&&(x=iSe(t,{Axis:s,graphicalItems:c,axisType:o,axisIdKey:h,stackGroups:u,dataStartIndex:f,dataEndIndex:m})),x},sSe=function(t){var n=ll(t),r=ts(n,!1,!0);return{tooltipTicks:r,orderedTooltipTicks:vj(r,function(o){return o.coordinate}),tooltipAxis:n,tooltipAxisBandSize:Iy(n,r)}},w8=function(t){var n=t.children,r=t.defaultShowTooltip,o=da(n,Wd),s=0,c=0;return t.data&&t.data.length!==0&&(c=t.data.length-1),o&&o.props&&(o.props.startIndex>=0&&(s=o.props.startIndex),o.props.endIndex>=0&&(c=o.props.endIndex)),{chartX:0,chartY:0,dataStartIndex:s,dataEndIndex:c,activeTooltipIndex:-1,isTooltipActive:!!r}},lSe=function(t){return!t||!t.length?!1:t.some(function(n){var r=ns(n&&n.type);return r&&r.indexOf("Bar")>=0})},E8=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"}},cSe=function(t,n){var r=t.props,o=t.graphicalItems,s=t.xAxisMap,c=s===void 0?{}:s,u=t.yAxisMap,f=u===void 0?{}:u,m=r.width,g=r.height,h=r.children,y=r.margin||{},x=da(h,Wd),S=da(h,Dc),N=Object.keys(f).reduce(function(A,T){var R=f[T],M=R.orientation;return!R.mirror&&!R.hide?be(be({},A),{},Qe({},M,A[M]+R.width)):A},{left:y.left||0,right:y.right||0}),w=Object.keys(c).reduce(function(A,T){var R=c[T],M=R.orientation;return!R.mirror&&!R.hide?be(be({},A),{},Qe({},M,va(A,"".concat(M))+R.height)):A},{top:y.top||0,bottom:y.bottom||0}),D=be(be({},w),N),C=D.bottom;x&&(D.bottom+=x.props.height||Wd.defaultProps.height),S&&n&&(D=Rve(D,o,r,n));var j=m-D.left-D.right,P=g-D.top-D.bottom;return be(be({brushBottom:C},D),{},{width:Math.max(j,0),height:Math.max(P,0)})},uSe=function(t,n){if(n==="xAxis")return t[n].width;if(n==="yAxis")return t[n].height},FK=function(t){var n=t.chartName,r=t.GraphicalChild,o=t.defaultTooltipEventType,s=o===void 0?"axis":o,c=t.validateTooltipEventTypes,u=c===void 0?["axis"]:c,f=t.axisComponents,m=t.legendContent,g=t.formatAxisMap,h=t.defaultProps,y=function(D,C){var j=C.graphicalItems,P=C.stackGroups,A=C.offset,T=C.updateId,R=C.dataStartIndex,M=C.dataEndIndex,$=D.barSize,z=D.layout,U=D.barGap,V=D.barCategoryGap,F=D.maxBarSize,X=E8(z),ee=X.numericAxisName,q=X.cateAxisName,Q=lSe(j),G=[];return j.forEach(function(ne,te){var I=w0(D.data,{graphicalItems:[ne],dataStartIndex:R,dataEndIndex:M}),H=ne.type.defaultProps!==void 0?be(be({},ne.type.defaultProps),ne.props):ne.props,Y=H.dataKey,re=H.maxBarSize,ge=H["".concat(ee,"Id")],we=H["".concat(q,"Id")],le={},ye=f.reduce(function(ir,St){var qn,kr,vi=C["".concat(St.axisType,"Map")],Yr=H["".concat(St.axisType,"Id")];vi&&vi[Yr]||St.axisType==="zAxis"||Gc(!1,"Specifying a(n) ".concat(St.axisType,"Id requires a corresponding ").concat(St.axisType,"Id on the targeted graphical component ").concat((qn=ne==null||(kr=ne.type)===null||kr===void 0?void 0:kr.displayName)!==null&&qn!==void 0?qn:""));var bi=vi[Yr];return be(be({},ir),{},Qe(Qe({},St.axisType,bi),"".concat(St.axisType,"Ticks"),ts(bi)))},le),me=ye[q],xe=ye["".concat(q,"Ticks")],de=P&&P[ge]&&P[ge].hasStack&&qve(ne,P[ge].stackGroups),ie=ns(ne.type).indexOf("Bar")>=0,ze=Iy(me,xe),Ne=[],ut=Q&&_ve({barSize:$,stackGroups:P,totalSize:uSe(ye,q)});if(ie){var Ve,nt,Un=ot(re)?F:re,xn=(Ve=(nt=Iy(me,xe,!0))!==null&&nt!==void 0?nt:Un)!==null&&Ve!==void 0?Ve:0;Ne=jve({barGap:U,barCategoryGap:V,bandSize:xn!==ze?xn:ze,sizeList:ut[we],maxBarSize:Un}),xn!==ze&&(Ne=Ne.map(function(ir){return be(be({},ir),{},{position:be(be({},ir.position),{},{offset:ir.position.offset-xn/2})})}))}var Re=ne&&ne.type&&ne.type.getComposedData;Re&&G.push({props:be(be({},Re(be(be({},ye),{},{displayedData:I,props:D,dataKey:Y,item:ne,bandSize:ze,barPosition:Ne,offset:A,stackedData:de,layout:z,dataStartIndex:R,dataEndIndex:M}))),{},Qe(Qe(Qe({key:ne.key||"item-".concat(te)},ee,ye[ee]),q,ye[q]),"animationId",T)),childIndex:Ice(ne,D.children),item:ne})}),G},x=function(D,C){var j=D.props,P=D.dataStartIndex,A=D.dataEndIndex,T=D.updateId;if(!C4({props:j}))return null;var R=j.children,M=j.layout,$=j.stackOffset,z=j.data,U=j.reverseStackOrder,V=E8(M),F=V.numericAxisName,X=V.cateAxisName,ee=Ua(R,r),q=zve(z,ee,"".concat(F,"Id"),"".concat(X,"Id"),$,U),Q=f.reduce(function(H,Y){var re="".concat(Y.axisType,"Map");return be(be({},H),{},Qe({},re,oSe(j,be(be({},Y),{},{graphicalItems:ee,stackGroups:Y.axisType===F&&q,dataStartIndex:P,dataEndIndex:A}))))},{}),G=cSe(be(be({},Q),{},{props:j,graphicalItems:ee}),C?.legendBBox);Object.keys(Q).forEach(function(H){Q[H]=g(j,Q[H],G,H.replace("Map",""),n)});var ne=Q["".concat(X,"Map")],te=sSe(ne),I=y(j,be(be({},Q),{},{dataStartIndex:P,dataEndIndex:A,updateId:T,graphicalItems:ee,stackGroups:q,offset:G}));return be(be({formattedGraphicalItems:I,graphicalItems:ee,offset:G,stackGroups:q},te),Q)},S=(function(w){function D(C){var j,P,A;return qEe(this,D),A=KEe(this,D,[C]),Qe(A,"eventEmitterSymbol",Symbol("rechartsEventEmitter")),Qe(A,"accessibilityManager",new TEe),Qe(A,"handleLegendBBoxUpdate",function(T){if(T){var R=A.state,M=R.dataStartIndex,$=R.dataEndIndex,z=R.updateId;A.setState(be({legendBBox:T},x({props:A.props,dataStartIndex:M,dataEndIndex:$,updateId:z},be(be({},A.state),{},{legendBBox:T}))))}}),Qe(A,"handleReceiveSyncEvent",function(T,R,M){if(A.props.syncId===T){if(M===A.eventEmitterSymbol&&typeof A.props.syncMethod!="function")return;A.applySyncEvent(R)}}),Qe(A,"handleBrushChange",function(T){var R=T.startIndex,M=T.endIndex;if(R!==A.state.dataStartIndex||M!==A.state.dataEndIndex){var $=A.state.updateId;A.setState(function(){return be({dataStartIndex:R,dataEndIndex:M},x({props:A.props,dataStartIndex:R,dataEndIndex:M,updateId:$},A.state))}),A.triggerSyncEvent({dataStartIndex:R,dataEndIndex:M})}}),Qe(A,"handleMouseEnter",function(T){var R=A.getMouseInfo(T);if(R){var M=be(be({},R),{},{isTooltipActive:!0});A.setState(M),A.triggerSyncEvent(M);var $=A.props.onMouseEnter;Xe($)&&$(M,T)}}),Qe(A,"triggeredAfterMouseMove",function(T){var R=A.getMouseInfo(T),M=R?be(be({},R),{},{isTooltipActive:!0}):{isTooltipActive:!1};A.setState(M),A.triggerSyncEvent(M);var $=A.props.onMouseMove;Xe($)&&$(M,T)}),Qe(A,"handleItemMouseEnter",function(T){A.setState(function(){return{isTooltipActive:!0,activeItem:T,activePayload:T.tooltipPayload,activeCoordinate:T.tooltipPosition||{x:T.cx,y:T.cy}}})}),Qe(A,"handleItemMouseLeave",function(){A.setState(function(){return{isTooltipActive:!1}})}),Qe(A,"handleMouseMove",function(T){T.persist(),A.throttleTriggeredAfterMouseMove(T)}),Qe(A,"handleMouseLeave",function(T){A.throttleTriggeredAfterMouseMove.cancel();var R={isTooltipActive:!1};A.setState(R),A.triggerSyncEvent(R);var M=A.props.onMouseLeave;Xe(M)&&M(R,T)}),Qe(A,"handleOuterEvent",function(T){var R=kce(T),M=va(A.props,"".concat(R));if(R&&Xe(M)){var $,z;/.*touch.*/i.test(R)?z=A.getMouseInfo(T.changedTouches[0]):z=A.getMouseInfo(T),M(($=z)!==null&&$!==void 0?$:{},T)}}),Qe(A,"handleClick",function(T){var R=A.getMouseInfo(T);if(R){var M=be(be({},R),{},{isTooltipActive:!0});A.setState(M),A.triggerSyncEvent(M);var $=A.props.onClick;Xe($)&&$(M,T)}}),Qe(A,"handleMouseDown",function(T){var R=A.props.onMouseDown;if(Xe(R)){var M=A.getMouseInfo(T);R(M,T)}}),Qe(A,"handleMouseUp",function(T){var R=A.props.onMouseUp;if(Xe(R)){var M=A.getMouseInfo(T);R(M,T)}}),Qe(A,"handleTouchMove",function(T){T.changedTouches!=null&&T.changedTouches.length>0&&A.throttleTriggeredAfterMouseMove(T.changedTouches[0])}),Qe(A,"handleTouchStart",function(T){T.changedTouches!=null&&T.changedTouches.length>0&&A.handleMouseDown(T.changedTouches[0])}),Qe(A,"handleTouchEnd",function(T){T.changedTouches!=null&&T.changedTouches.length>0&&A.handleMouseUp(T.changedTouches[0])}),Qe(A,"handleDoubleClick",function(T){var R=A.props.onDoubleClick;if(Xe(R)){var M=A.getMouseInfo(T);R(M,T)}}),Qe(A,"handleContextMenu",function(T){var R=A.props.onContextMenu;if(Xe(R)){var M=A.getMouseInfo(T);R(M,T)}}),Qe(A,"triggerSyncEvent",function(T){A.props.syncId!==void 0&&zD.emit(UD,A.props.syncId,T,A.eventEmitterSymbol)}),Qe(A,"applySyncEvent",function(T){var R=A.props,M=R.layout,$=R.syncMethod,z=A.state.updateId,U=T.dataStartIndex,V=T.dataEndIndex;if(T.dataStartIndex!==void 0||T.dataEndIndex!==void 0)A.setState(be({dataStartIndex:U,dataEndIndex:V},x({props:A.props,dataStartIndex:U,dataEndIndex:V,updateId:z},A.state)));else if(T.activeTooltipIndex!==void 0){var F=T.chartX,X=T.chartY,ee=T.activeTooltipIndex,q=A.state,Q=q.offset,G=q.tooltipTicks;if(!Q)return;if(typeof $=="function")ee=$(G,T);else if($==="value"){ee=-1;for(var ne=0;ne<G.length;ne++)if(G[ne].value===T.activeLabel){ee=ne;break}}var te=be(be({},Q),{},{x:Q.left,y:Q.top}),I=Math.min(F,te.x+te.width),H=Math.min(X,te.y+te.height),Y=G[ee]&&G[ee].value,re=e_(A.state,A.props.data,ee),ge=G[ee]?{x:M==="horizontal"?G[ee].coordinate:I,y:M==="horizontal"?H:G[ee].coordinate}:qK;A.setState(be(be({},T),{},{activeLabel:Y,activeCoordinate:ge,activePayload:re,activeTooltipIndex:ee}))}else A.setState(T)}),Qe(A,"renderCursor",function(T){var R,M=A.state,$=M.isTooltipActive,z=M.activeCoordinate,U=M.activePayload,V=M.offset,F=M.activeTooltipIndex,X=M.tooltipAxisBandSize,ee=A.getTooltipEventType(),q=(R=T.props.active)!==null&&R!==void 0?R:$,Q=A.props.layout,G=T.key||"_recharts-cursor";return K.createElement(IEe,{key:G,activeCoordinate:z,activePayload:U,activeTooltipIndex:F,chartName:n,element:T,isActive:q,layout:Q,offset:V,tooltipAxisBandSize:X,tooltipEventType:ee})}),Qe(A,"renderPolarAxis",function(T,R,M){var $=va(T,"type.axisType"),z=va(A.state,"".concat($,"Map")),U=T.type.defaultProps,V=U!==void 0?be(be({},U),T.props):T.props,F=z&&z[V["".concat($,"Id")]];return _.cloneElement(T,be(be({},F),{},{className:it($,F.className),key:T.key||"".concat(R,"-").concat(M),ticks:ts(F,!0)}))}),Qe(A,"renderPolarGrid",function(T){var R=T.props,M=R.radialLines,$=R.polarAngles,z=R.polarRadius,U=A.state,V=U.radiusAxisMap,F=U.angleAxisMap,X=ll(V),ee=ll(F),q=ee.cx,Q=ee.cy,G=ee.innerRadius,ne=ee.outerRadius;return _.cloneElement(T,{polarAngles:Array.isArray($)?$:ts(ee,!0).map(function(te){return te.coordinate}),polarRadius:Array.isArray(z)?z:ts(X,!0).map(function(te){return te.coordinate}),cx:q,cy:Q,innerRadius:G,outerRadius:ne,key:T.key||"polar-grid",radialLines:M})}),Qe(A,"renderLegend",function(){var T=A.state.formattedGraphicalItems,R=A.props,M=R.children,$=R.width,z=R.height,U=A.props.margin||{},V=$-(U.left||0)-(U.right||0),F=yF({children:M,formattedGraphicalItems:T,legendWidth:V,legendContent:m});if(!F)return null;var X=F.item,ee=y8(F,LEe);return _.cloneElement(X,be(be({},ee),{},{chartWidth:$,chartHeight:z,margin:U,onBBoxUpdate:A.handleLegendBBoxUpdate}))}),Qe(A,"renderTooltip",function(){var T,R=A.props,M=R.children,$=R.accessibilityLayer,z=da(M,si);if(!z)return null;var U=A.state,V=U.isTooltipActive,F=U.activeCoordinate,X=U.activePayload,ee=U.activeLabel,q=U.offset,Q=(T=z.props.active)!==null&&T!==void 0?T:V;return _.cloneElement(z,{viewBox:be(be({},q),{},{x:q.left,y:q.top}),active:Q,label:ee,payload:Q?X:[],coordinate:F,accessibilityLayer:$})}),Qe(A,"renderBrush",function(T){var R=A.props,M=R.margin,$=R.data,z=A.state,U=z.offset,V=z.dataStartIndex,F=z.dataEndIndex,X=z.updateId;return _.cloneElement(T,{key:T.key||"_recharts-brush",onChange:Mb(A.handleBrushChange,T.props.onChange),data:$,x:Oe(T.props.x)?T.props.x:U.left,y:Oe(T.props.y)?T.props.y:U.top+U.height+U.brushBottom-(M.bottom||0),width:Oe(T.props.width)?T.props.width:U.width,startIndex:V,endIndex:F,updateId:"brush-".concat(X)})}),Qe(A,"renderReferenceElement",function(T,R,M){if(!T)return null;var $=A,z=$.clipPathId,U=A.state,V=U.xAxisMap,F=U.yAxisMap,X=U.offset,ee=T.type.defaultProps||{},q=T.props,Q=q.xAxisId,G=Q===void 0?ee.xAxisId:Q,ne=q.yAxisId,te=ne===void 0?ee.yAxisId:ne;return _.cloneElement(T,{key:T.key||"".concat(R,"-").concat(M),xAxis:V[G],yAxis:F[te],viewBox:{x:X.left,y:X.top,width:X.width,height:X.height},clipPathId:z})}),Qe(A,"renderActivePoints",function(T){var R=T.item,M=T.activePoint,$=T.basePoint,z=T.childIndex,U=T.isRange,V=[],F=R.props.key,X=R.item.type.defaultProps!==void 0?be(be({},R.item.type.defaultProps),R.item.props):R.item.props,ee=X.activeDot,q=X.dataKey,Q=be(be({index:z,dataKey:q,cx:M.x,cy:M.y,r:4,fill:qj(R.item),strokeWidth:2,stroke:"#fff",payload:M.payload,value:M.value},Fe(ee,!1)),fy(ee));return V.push(D.renderActiveDot(ee,Q,"".concat(F,"-activePoint-").concat(z))),$?V.push(D.renderActiveDot(ee,be(be({},Q),{},{cx:$.x,cy:$.y}),"".concat(F,"-basePoint-").concat(z))):U&&V.push(null),V}),Qe(A,"renderGraphicChild",function(T,R,M){var $=A.filterFormatItem(T,R,M);if(!$)return null;var z=A.getTooltipEventType(),U=A.state,V=U.isTooltipActive,F=U.tooltipAxis,X=U.activeTooltipIndex,ee=U.activeLabel,q=A.props.children,Q=da(q,si),G=$.props,ne=G.points,te=G.isRange,I=G.baseLine,H=$.item.type.defaultProps!==void 0?be(be({},$.item.type.defaultProps),$.item.props):$.item.props,Y=H.activeDot,re=H.hide,ge=H.activeBar,we=H.activeShape,le=!!(!re&&V&&Q&&(Y||ge||we)),ye={};z!=="axis"&&Q&&Q.props.trigger==="click"?ye={onClick:Mb(A.handleItemMouseEnter,T.props.onClick)}:z!=="axis"&&(ye={onMouseLeave:Mb(A.handleItemMouseLeave,T.props.onMouseLeave),onMouseEnter:Mb(A.handleItemMouseEnter,T.props.onMouseEnter)});var me=_.cloneElement(T,be(be({},$.props),ye));function xe(St){return typeof F.dataKey=="function"?F.dataKey(St.payload):null}if(le)if(X>=0){var de,ie;if(F.dataKey&&!F.allowDuplicatedCategory){var ze=typeof F.dataKey=="function"?xe:"payload.".concat(F.dataKey.toString());de=dy(ne,ze,ee),ie=te&&I&&dy(I,ze,ee)}else de=ne?.[X],ie=te&&I&&I[X];if(we||ge){var Ne=T.props.activeIndex!==void 0?T.props.activeIndex:X;return[_.cloneElement(T,be(be(be({},$.props),ye),{},{activeIndex:Ne})),null,null]}if(!ot(de))return[me].concat(cf(A.renderActivePoints({item:$,activePoint:de,basePoint:ie,childIndex:X,isRange:te})))}else{var ut,Ve=(ut=A.getItemByXY(A.state.activeCoordinate))!==null&&ut!==void 0?ut:{graphicalItem:me},nt=Ve.graphicalItem,Un=nt.item,xn=Un===void 0?T:Un,Re=nt.childIndex,ir=be(be(be({},$.props),ye),{},{activeIndex:Re});return[_.cloneElement(xn,ir),null,null]}return te?[me,null,null]:[me,null]}),Qe(A,"renderCustomized",function(T,R,M){return _.cloneElement(T,be(be({key:"recharts-customized-".concat(M)},A.props),A.state))}),Qe(A,"renderMap",{CartesianGrid:{handler:$b,once:!0},ReferenceArea:{handler:A.renderReferenceElement},ReferenceLine:{handler:$b},ReferenceDot:{handler:A.renderReferenceElement},XAxis:{handler:$b},YAxis:{handler:$b},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((j=C.id)!==null&&j!==void 0?j:wf("recharts"),"-clip"),A.throttleTriggeredAfterMouseMove=bH(A.triggeredAfterMouseMove,(P=C.throttleDelay)!==null&&P!==void 0?P:1e3/60),A.state={},A}return QEe(D,w),FEe(D,[{key:"componentDidMount",value:function(){var j,P;this.addListener(),this.accessibilityManager.setDetails({container:this.container,offset:{left:(j=this.props.margin.left)!==null&&j!==void 0?j: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 j=this.props,P=j.children,A=j.data,T=j.height,R=j.layout,M=da(P,si);if(M){var $=M.props.defaultIndex;if(!(typeof $!="number"||$<0||$>this.state.tooltipTicks.length-1)){var z=this.state.tooltipTicks[$]&&this.state.tooltipTicks[$].value,U=e_(this.state,A,$,z),V=this.state.tooltipTicks[$].coordinate,F=(this.state.offset.top+T)/2,X=R==="horizontal",ee=X?{x:V,y:F}:{y:V,x:F},q=this.state.formattedGraphicalItems.find(function(G){var ne=G.item;return ne.type.name==="Scatter"});q&&(ee=be(be({},ee),q.props.points[$].tooltipPosition),U=q.props.points[$].tooltipPayload);var Q={activeTooltipIndex:$,isTooltipActive:!0,activeLabel:z,activePayload:U,activeCoordinate:ee};this.setState(Q),this.renderCursor(M),this.accessibilityManager.setIndex($)}}}},{key:"getSnapshotBeforeUpdate",value:function(j,P){if(!this.props.accessibilityLayer)return null;if(this.state.tooltipTicks!==P.tooltipTicks&&this.accessibilityManager.setDetails({coordinateList:this.state.tooltipTicks}),this.props.layout!==j.layout&&this.accessibilityManager.setDetails({layout:this.props.layout}),this.props.margin!==j.margin){var A,T;this.accessibilityManager.setDetails({offset:{left:(A=this.props.margin.left)!==null&&A!==void 0?A:0,top:(T=this.props.margin.top)!==null&&T!==void 0?T:0}})}return null}},{key:"componentDidUpdate",value:function(j){LC([da(j.children,si)],[da(this.props.children,si)])||this.displayDefaultTooltip()}},{key:"componentWillUnmount",value:function(){this.removeListener(),this.throttleTriggeredAfterMouseMove.cancel()}},{key:"getTooltipEventType",value:function(){var j=da(this.props.children,si);if(j&&typeof j.props.shared=="boolean"){var P=j.props.shared?"axis":"item";return u.indexOf(P)>=0?P:s}return s}},{key:"getMouseInfo",value:function(j){if(!this.container)return null;var P=this.container,A=P.getBoundingClientRect(),T=wme(A),R={chartX:Math.round(j.pageX-T.left),chartY:Math.round(j.pageY-T.top)},M=A.width/P.offsetWidth||1,$=this.inRange(R.chartX,R.chartY,M);if(!$)return null;var z=this.state,U=z.xAxisMap,V=z.yAxisMap,F=this.getTooltipEventType(),X=N8(this.state,this.props.data,this.props.layout,$);if(F!=="axis"&&U&&V){var ee=ll(U).scale,q=ll(V).scale,Q=ee&&ee.invert?ee.invert(R.chartX):null,G=q&&q.invert?q.invert(R.chartY):null;return be(be({},R),{},{xValue:Q,yValue:G},X)}return X?be(be({},R),X):null}},{key:"inRange",value:function(j,P){var A=arguments.length>2&&arguments[2]!==void 0?arguments[2]:1,T=this.props.layout,R=j/A,M=P/A;if(T==="horizontal"||T==="vertical"){var $=this.state.offset,z=R>=$.left&&R<=$.left+$.width&&M>=$.top&&M<=$.top+$.height;return z?{x:R,y:M}:null}var U=this.state,V=U.angleAxisMap,F=U.radiusAxisMap;if(V&&F){var X=ll(V);return yB({x:R,y:M},X)}return null}},{key:"parseEventsOfWrapper",value:function(){var j=this.props.children,P=this.getTooltipEventType(),A=da(j,si),T={};A&&P==="axis"&&(A.props.trigger==="click"?T={onClick:this.handleClick}:T={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 R=fy(this.props,this.handleOuterEvent);return be(be({},R),T)}},{key:"addListener",value:function(){zD.on(UD,this.handleReceiveSyncEvent)}},{key:"removeListener",value:function(){zD.removeListener(UD,this.handleReceiveSyncEvent)}},{key:"filterFormatItem",value:function(j,P,A){for(var T=this.state.formattedGraphicalItems,R=0,M=T.length;R<M;R++){var $=T[R];if($.item===j||$.props.key===j.key||P===ns($.item.type)&&A===$.childIndex)return $}return null}},{key:"renderClipPath",value:function(){var j=this.clipPathId,P=this.state.offset,A=P.left,T=P.top,R=P.height,M=P.width;return K.createElement("defs",null,K.createElement("clipPath",{id:j},K.createElement("rect",{x:A,y:T,height:R,width:M})))}},{key:"getXScales",value:function(){var j=this.state.xAxisMap;return j?Object.entries(j).reduce(function(P,A){var T=b8(A,2),R=T[0],M=T[1];return be(be({},P),{},Qe({},R,M.scale))},{}):null}},{key:"getYScales",value:function(){var j=this.state.yAxisMap;return j?Object.entries(j).reduce(function(P,A){var T=b8(A,2),R=T[0],M=T[1];return be(be({},P),{},Qe({},R,M.scale))},{}):null}},{key:"getXScaleByAxisId",value:function(j){var P;return(P=this.state.xAxisMap)===null||P===void 0||(P=P[j])===null||P===void 0?void 0:P.scale}},{key:"getYScaleByAxisId",value:function(j){var P;return(P=this.state.yAxisMap)===null||P===void 0||(P=P[j])===null||P===void 0?void 0:P.scale}},{key:"getItemByXY",value:function(j){var P=this.state,A=P.formattedGraphicalItems,T=P.activeItem;if(A&&A.length)for(var R=0,M=A.length;R<M;R++){var $=A[R],z=$.props,U=$.item,V=U.type.defaultProps!==void 0?be(be({},U.type.defaultProps),U.props):U.props,F=ns(U.type);if(F==="Bar"){var X=(z.data||[]).find(function(G){return zxe(j,G)});if(X)return{graphicalItem:$,payload:X}}else if(F==="RadialBar"){var ee=(z.data||[]).find(function(G){return yB(j,G)});if(ee)return{graphicalItem:$,payload:ee}}else if(m0($,T)||h0($,T)||Sp($,T)){var q=u1e({graphicalItem:$,activeTooltipItem:T,itemData:V.data}),Q=V.activeIndex===void 0?q:V.activeIndex;return{graphicalItem:be(be({},$),{},{childIndex:Q}),payload:Sp($,T)?V.data[q]:$.props.data[q]}}}return null}},{key:"render",value:function(){var j=this;if(!C4(this))return null;var P=this.props,A=P.children,T=P.className,R=P.width,M=P.height,$=P.style,z=P.compact,U=P.title,V=P.desc,F=y8(P,VEe),X=Fe(F,!1);if(z)return K.createElement(e8,{state:this.state,width:this.props.width,height:this.props.height,clipPathId:this.clipPathId},K.createElement($C,Od({},X,{width:R,height:M,title:U,desc:V}),this.renderClipPath(),_4(A,this.renderMap)));if(this.props.accessibilityLayer){var ee,q;X.tabIndex=(ee=this.props.tabIndex)!==null&&ee!==void 0?ee:0,X.role=(q=this.props.role)!==null&&q!==void 0?q:"application",X.onKeyDown=function(G){j.accessibilityManager.keyboardEvent(G)},X.onFocus=function(){j.accessibilityManager.focus()}}var Q=this.parseEventsOfWrapper();return K.createElement(e8,{state:this.state,width:this.props.width,height:this.props.height,clipPathId:this.clipPathId},K.createElement("div",Od({className:it("recharts-wrapper",T),style:be({position:"relative",cursor:"default",width:R,height:M},$)},Q,{ref:function(ne){j.container=ne}}),K.createElement($C,Od({},X,{width:R,height:M,title:U,desc:V,style:tSe}),this.renderClipPath(),_4(A,this.renderMap)),this.renderLegend(),this.renderTooltip()))}}])})(_.Component);Qe(S,"displayName",n),Qe(S,"defaultProps",be({layout:"horizontal",stackOffset:"none",barCategoryGap:"10%",barGap:4,margin:{top:5,right:5,bottom:5,left:5},reverseStackOrder:!1,syncMethod:"index"},h)),Qe(S,"getDerivedStateFromProps",function(w,D){var C=w.dataKey,j=w.data,P=w.children,A=w.width,T=w.height,R=w.layout,M=w.stackOffset,$=w.margin,z=D.dataStartIndex,U=D.dataEndIndex;if(D.updateId===void 0){var V=w8(w);return be(be(be({},V),{},{updateId:0},x(be(be({props:w},V),{},{updateId:0}),D)),{},{prevDataKey:C,prevData:j,prevWidth:A,prevHeight:T,prevLayout:R,prevStackOffset:M,prevMargin:$,prevChildren:P})}if(C!==D.prevDataKey||j!==D.prevData||A!==D.prevWidth||T!==D.prevHeight||R!==D.prevLayout||M!==D.prevStackOffset||!Td($,D.prevMargin)){var F=w8(w),X={chartX:D.chartX,chartY:D.chartY,isTooltipActive:D.isTooltipActive},ee=be(be({},N8(D,j,R)),{},{updateId:D.updateId+1}),q=be(be(be({},F),X),ee);return be(be(be({},q),x(be({props:w},q),D)),{},{prevDataKey:C,prevData:j,prevWidth:A,prevHeight:T,prevLayout:R,prevStackOffset:M,prevMargin:$,prevChildren:P})}if(!LC(P,D.prevChildren)){var Q,G,ne,te,I=da(P,Wd),H=I&&(Q=(G=I.props)===null||G===void 0?void 0:G.startIndex)!==null&&Q!==void 0?Q:z,Y=I&&(ne=(te=I.props)===null||te===void 0?void 0:te.endIndex)!==null&&ne!==void 0?ne:U,re=H!==z||Y!==U,ge=!ot(j),we=ge&&!re?D.updateId:D.updateId+1;return be(be({updateId:we},x(be(be({props:w},D),{},{updateId:we,dataStartIndex:H,dataEndIndex:Y}),D)),{},{prevChildren:P,dataStartIndex:H,dataEndIndex:Y})}return null}),Qe(S,"renderActiveDot",function(w,D,C){var j;return _.isValidElement(w)?j=_.cloneElement(w,D):Xe(w)?j=w(D):j=K.createElement(l0,D),K.createElement(Dt,{className:"recharts-active-dot",key:C},j)});var N=_.forwardRef(function(D,C){return K.createElement(S,Od({},D,{ref:C}))});return N.displayName=S.displayName,N},dSe=FK({chartName:"PieChart",GraphicalChild:ps,validateTooltipEventTypes:["item"],defaultTooltipEventType:"item",legendContent:"children",axisComponents:[{axisType:"angleAxis",AxisComp:f0},{axisType:"radiusAxis",AxisComp:u0}],formatAxisMap:Jve,defaultProps:{layout:"centric",startAngle:0,endAngle:360,cx:"50%",cy:"50%",innerRadius:0,outerRadius:"80%"}}),fSe=FK({chartName:"AreaChart",GraphicalChild:so,axisComponents:[{axisType:"xAxis",AxisComp:x0},{axisType:"yAxis",AxisComp:N0}],formatAxisMap:mNe});const mSe={CN:"#3b82f6",HK:"#10b981",US:"#f59e0b",EU:"#8b5cf6",SG:"#ec4899",AE:"#f97316",ALL:"#6b7280"},hSe=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 al({title:e,value:t,icon:n,sub:r,color:o="primary",trend:s}){const c={primary:"text-primary",emerald:"text-emerald-400",amber:"text-amber-400",red:"text-red-400",purple:"text-purple-400"};return b.jsxDEV(At,{"data-loc":"client/src/pages/Dashboard.tsx:33",className:"border-border/50 hover:border-primary/30 transition-colors",children:b.jsxDEV(Ot,{"data-loc":"client/src/pages/Dashboard.tsx:34",className:"p-5",children:b.jsxDEV("div",{"data-loc":"client/src/pages/Dashboard.tsx:35",className:"flex items-start justify-between",children:[b.jsxDEV("div",{"data-loc":"client/src/pages/Dashboard.tsx:36",className:"flex-1",children:[b.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),b.jsxDEV("p",{"data-loc":"client/src/pages/Dashboard.tsx:38",className:`text-3xl font-bold mt-1 ${c[o]||c.primary}`,children:t},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/Dashboard.tsx",lineNumber:38,columnNumber:13},this),r&&b.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&&b.jsxDEV("p",{"data-loc":"client/src/pages/Dashboard.tsx:40",className:"text-xs text-emerald-400 mt-1 flex items-center gap-1",children:[b.jsxDEV(Xz,{"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),b.jsxDEV("div",{"data-loc":"client/src/pages/Dashboard.tsx:42",className:`p-2.5 rounded-xl bg-card border border-border/50 ${c[o]||c.primary}`,children:b.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 pSe(){const{data:e,isLoading:t}=et.dashboard.stats.useQuery(),{data:n}=et.dashboard.recentActivity.useQuery();if(t)return b.jsxDEV("div",{"data-loc":"client/src/pages/Dashboard.tsx:57",className:"p-6 space-y-4",children:b.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,c)=>b.jsxDEV(At,{"data-loc":"client/src/pages/Dashboard.tsx:60",className:"border-border/50 animate-pulse",children:b.jsxDEV(Ot,{"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)},c,!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:mSe[s._id]||"#6b7280"}));return b.jsxDEV("div",{"data-loc":"client/src/pages/Dashboard.tsx:75",className:"p-6 space-y-6",children:[b.jsxDEV("div",{"data-loc":"client/src/pages/Dashboard.tsx:77",className:"flex items-center justify-between",children:[b.jsxDEV("div",{"data-loc":"client/src/pages/Dashboard.tsx:78",children:[b.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),b.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),b.jsxDEV("div",{"data-loc":"client/src/pages/Dashboard.tsx:82",className:"flex items-center gap-2",children:[b.jsxDEV("div",{"data-loc":"client/src/pages/Dashboard.tsx:83",className:"flex items-center gap-1.5 text-xs text-emerald-400",children:[b.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),b.jsxDEV(za,{"data-loc":"client/src/pages/Dashboard.tsx:87",variant:"outline",className:"text-xs border-border/50",children:[b.jsxDEV(vf,{"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),b.jsxDEV("div",{"data-loc":"client/src/pages/Dashboard.tsx:95",className:"grid grid-cols-2 lg:grid-cols-4 gap-4",children:[b.jsxDEV(al,{"data-loc":"client/src/pages/Dashboard.tsx:96",title:"合规规则总数",value:r?.knowledgeBase?.totalRules??0,icon:R_,sub:"知识库规则条目",color:"primary"},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/Dashboard.tsx",lineNumber:96,columnNumber:9},this),b.jsxDEV(al,{"data-loc":"client/src/pages/Dashboard.tsx:97",title:"活跃协议",value:r?.knowledgeBase?.activeProtocols??0,icon:Th,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),b.jsxDEV(al,{"data-loc":"client/src/pages/Dashboard.tsx:98",title:"采集器运行",value:r?.crawlers?.active??0,icon:sy,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),b.jsxDEV(al,{"data-loc":"client/src/pages/Dashboard.tsx:99",title:"审批通过率",value:`${r?.approvals?.approvalRate??0}%`,icon:mi,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),b.jsxDEV(al,{"data-loc":"client/src/pages/Dashboard.tsx:100",title:"待人工审核",value:r?.approvals?.pending??0,icon:Lc,sub:"中风险案例",color:"amber"},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/Dashboard.tsx",lineNumber:100,columnNumber:9},this),b.jsxDEV(al,{"data-loc":"client/src/pages/Dashboard.tsx:101",title:"系统用户",value:r?.users?.total??0,icon:iie,sub:"NAC 注册用户",color:"purple"},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/Dashboard.tsx",lineNumber:101,columnNumber:9},this),b.jsxDEV(al,{"data-loc":"client/src/pages/Dashboard.tsx:102",title:"审计日志",value:r?.audit?.total??0,icon:bl,sub:"不可篡改记录",color:"primary"},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/Dashboard.tsx",lineNumber:102,columnNumber:9},this),b.jsxDEV(al,{"data-loc":"client/src/pages/Dashboard.tsx:103",title:"司法辖区覆盖",value:o.length,icon:Ic,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),b.jsxDEV("div",{"data-loc":"client/src/pages/Dashboard.tsx:107",className:"grid grid-cols-1 lg:grid-cols-3 gap-4",children:[b.jsxDEV(At,{"data-loc":"client/src/pages/Dashboard.tsx:109",className:"lg:col-span-2 border-border/50",children:[b.jsxDEV(ha,{"data-loc":"client/src/pages/Dashboard.tsx:110",className:"pb-2",children:b.jsxDEV(pa,{"data-loc":"client/src/pages/Dashboard.tsx:111",className:"text-sm font-semibold flex items-center gap-2",children:[b.jsxDEV(Xz,{"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),b.jsxDEV(Ot,{"data-loc":"client/src/pages/Dashboard.tsx:116",children:b.jsxDEV(Z$,{"data-loc":"client/src/pages/Dashboard.tsx:117",width:"100%",height:200,children:b.jsxDEV(fSe,{"data-loc":"client/src/pages/Dashboard.tsx:118",data:hSe,children:[b.jsxDEV("defs",{"data-loc":"client/src/pages/Dashboard.tsx:119",children:b.jsxDEV("linearGradient",{"data-loc":"client/src/pages/Dashboard.tsx:120",id:"colorApproved",x1:"0",y1:"0",x2:"0",y2:"1",children:[b.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),b.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),b.jsxDEV(DK,{"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),b.jsxDEV(x0,{"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),b.jsxDEV(N0,{"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),b.jsxDEV(si,{"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),b.jsxDEV(so,{"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),b.jsxDEV(so,{"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),b.jsxDEV(so,{"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),b.jsxDEV(Dc,{"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),b.jsxDEV(At,{"data-loc":"client/src/pages/Dashboard.tsx:139",className:"border-border/50",children:[b.jsxDEV(ha,{"data-loc":"client/src/pages/Dashboard.tsx:140",className:"pb-2",children:b.jsxDEV(pa,{"data-loc":"client/src/pages/Dashboard.tsx:141",className:"text-sm font-semibold flex items-center gap-2",children:[b.jsxDEV(Ic,{"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),b.jsxDEV(Ot,{"data-loc":"client/src/pages/Dashboard.tsx:146",children:o.length>0?b.jsxDEV(b.Fragment,{children:[b.jsxDEV(Z$,{"data-loc":"client/src/pages/Dashboard.tsx:149",width:"100%",height:140,children:b.jsxDEV(dSe,{"data-loc":"client/src/pages/Dashboard.tsx:150",children:[b.jsxDEV(ps,{"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,c)=>b.jsxDEV(Xx,{"data-loc":"client/src/pages/Dashboard.tsx:153",fill:s.fill},c,!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),b.jsxDEV(si,{"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),b.jsxDEV("div",{"data-loc":"client/src/pages/Dashboard.tsx:159",className:"grid grid-cols-2 gap-1 mt-2",children:o.map(s=>b.jsxDEV("div",{"data-loc":"client/src/pages/Dashboard.tsx:161",className:"flex items-center gap-1.5 text-xs",children:[b.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),b.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),b.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):b.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),b.jsxDEV("div",{"data-loc":"client/src/pages/Dashboard.tsx:177",className:"grid grid-cols-1 lg:grid-cols-2 gap-4",children:[b.jsxDEV(At,{"data-loc":"client/src/pages/Dashboard.tsx:179",className:"border-border/50",children:[b.jsxDEV(ha,{"data-loc":"client/src/pages/Dashboard.tsx:180",className:"pb-2",children:b.jsxDEV(pa,{"data-loc":"client/src/pages/Dashboard.tsx:181",className:"text-sm font-semibold flex items-center gap-2",children:[b.jsxDEV(aie,{"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),b.jsxDEV(Ot,{"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=>b.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:[b.jsxDEV("div",{"data-loc":"client/src/pages/Dashboard.tsx:196",children:[b.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),b.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),b.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),b.jsxDEV(At,{"data-loc":"client/src/pages/Dashboard.tsx:209",className:"border-border/50",children:[b.jsxDEV(ha,{"data-loc":"client/src/pages/Dashboard.tsx:210",className:"pb-2",children:b.jsxDEV(pa,{"data-loc":"client/src/pages/Dashboard.tsx:211",className:"text-sm font-semibold flex items-center gap-2",children:[b.jsxDEV(sy,{"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),b.jsxDEV(Ot,{"data-loc":"client/src/pages/Dashboard.tsx:216",children:n&&n.length>0?b.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,c)=>b.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:[b.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),b.jsxDEV("div",{"data-loc":"client/src/pages/Dashboard.tsx:222",className:"flex-1 min-w-0",children:[b.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),b.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),b.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)]},c,!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):b.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 S8(e,[t,n]){return Math.min(n,Math.max(t,e))}function KK(e){const t=_.useRef({value:e,previous:e});return _.useMemo(()=>(t.current.value!==e&&(t.current.previous=t.current.value,t.current.value=e),t.current.previous),[e])}var gSe=[" ","Enter","ArrowUp","ArrowDown"],vSe=[" ","Enter"],Qc="Select",[E0,S0,bSe]=U_(Qc),[Cf]=ds(Qc,[bSe,hf]),A0=hf(),[ySe,Sl]=Cf(Qc),[xSe,NSe]=Cf(Qc),GK=e=>{const{__scopeSelect:t,children:n,open:r,defaultOpen:o,onOpenChange:s,value:c,defaultValue:u,onValueChange:f,dir:m,name:g,autoComplete:h,disabled:y,required:x,form:S}=e,N=A0(t),[w,D]=_.useState(null),[C,j]=_.useState(null),[P,A]=_.useState(!1),T=q_(m),[R,M]=kc({prop:r,defaultProp:o??!1,onChange:s,caller:Qc}),[$,z]=kc({prop:c,defaultProp:u,onChange:f,caller:Qc}),U=_.useRef(null),V=w?S||!!w.closest("form"):!0,[F,X]=_.useState(new Set),ee=Array.from(F).map(q=>q.props.value).join(";");return ce.jsx(N_,{...N,children:ce.jsxs(ySe,{required:x,scope:t,trigger:w,onTriggerChange:D,valueNode:C,onValueNodeChange:j,valueNodeHasChildren:P,onValueNodeHasChildrenChange:A,contentId:ro(),value:$,onValueChange:z,open:R,onOpenChange:M,dir:T,triggerPointerDownPosRef:U,disabled:y,children:[ce.jsx(E0.Provider,{scope:t,children:ce.jsx(xSe,{scope:e.__scopeSelect,onNativeOptionAdd:_.useCallback(q=>{X(Q=>new Set(Q).add(q))},[]),onNativeOptionRemove:_.useCallback(q=>{X(Q=>{const G=new Set(Q);return G.delete(q),G})},[]),children:n})}),V?ce.jsxs(pG,{"aria-hidden":!0,required:x,tabIndex:-1,name:g,autoComplete:h,value:$,onChange:q=>z(q.target.value),disabled:y,form:S,children:[$===void 0?ce.jsx("option",{value:""}):null,Array.from(F)]},ee):null]})})};GK.displayName=Qc;var YK="SelectTrigger",QK=_.forwardRef((e,t)=>{const{__scopeSelect:n,disabled:r=!1,...o}=e,s=A0(n),c=Sl(YK,n),u=c.disabled||r,f=Mt(t,c.onTriggerChange),m=S0(n),g=_.useRef("touch"),[h,y,x]=vG(N=>{const w=m().filter(j=>!j.disabled),D=w.find(j=>j.value===c.value),C=bG(w,N,D);C!==void 0&&c.onValueChange(C.value)}),S=N=>{u||(c.onOpenChange(!0),x()),N&&(c.triggerPointerDownPosRef.current={x:Math.round(N.pageX),y:Math.round(N.pageY)})};return ce.jsx(w_,{asChild:!0,...s,children:ce.jsx(vt.button,{type:"button",role:"combobox","aria-controls":c.contentId,"aria-expanded":c.open,"aria-required":c.required,"aria-autocomplete":"none",dir:c.dir,"data-state":c.open?"open":"closed",disabled:u,"data-disabled":u?"":void 0,"data-placeholder":gG(c.value)?"":void 0,...o,ref:f,onClick:Le(o.onClick,N=>{N.currentTarget.focus(),g.current!=="mouse"&&S(N)}),onPointerDown:Le(o.onPointerDown,N=>{g.current=N.pointerType;const w=N.target;w.hasPointerCapture(N.pointerId)&&w.releasePointerCapture(N.pointerId),N.button===0&&N.ctrlKey===!1&&N.pointerType==="mouse"&&(S(N),N.preventDefault())}),onKeyDown:Le(o.onKeyDown,N=>{const w=h.current!=="";!(N.ctrlKey||N.altKey||N.metaKey)&&N.key.length===1&&y(N.key),!(w&&N.key===" ")&&gSe.includes(N.key)&&(S(),N.preventDefault())})})})});QK.displayName=YK;var XK="SelectValue",WK=_.forwardRef((e,t)=>{const{__scopeSelect:n,className:r,style:o,children:s,placeholder:c="",...u}=e,f=Sl(XK,n),{onValueNodeHasChildrenChange:m}=f,g=s!==void 0,h=Mt(t,f.onValueNodeChange);return vr(()=>{m(g)},[m,g]),ce.jsx(vt.span,{...u,ref:h,style:{pointerEvents:"none"},children:gG(f.value)?ce.jsx(ce.Fragment,{children:c}):s})});WK.displayName=XK;var wSe="SelectIcon",ZK=_.forwardRef((e,t)=>{const{__scopeSelect:n,children:r,...o}=e;return ce.jsx(vt.span,{"aria-hidden":!0,...o,ref:t,children:r||"▼"})});ZK.displayName=wSe;var ESe="SelectPortal",JK=e=>ce.jsx(Lp,{asChild:!0,...e});JK.displayName=ESe;var Xc="SelectContent",eG=_.forwardRef((e,t)=>{const n=Sl(Xc,e.__scopeSelect),[r,o]=_.useState();if(vr(()=>{o(new DocumentFragment)},[]),!n.open){const s=r;return s?Mp.createPortal(ce.jsx(tG,{scope:e.__scopeSelect,children:ce.jsx(E0.Slot,{scope:e.__scopeSelect,children:ce.jsx("div",{children:e.children})})}),s):null}return ce.jsx(nG,{...e,ref:t})});eG.displayName=Xc;var oi=10,[tG,Al]=Cf(Xc),SSe="SelectContentImpl",ASe=Pc("SelectContent.RemoveScroll"),nG=_.forwardRef((e,t)=>{const{__scopeSelect:n,position:r="item-aligned",onCloseAutoFocus:o,onEscapeKeyDown:s,onPointerDownOutside:c,side:u,sideOffset:f,align:m,alignOffset:g,arrowPadding:h,collisionBoundary:y,collisionPadding:x,sticky:S,hideWhenDetached:N,avoidCollisions:w,...D}=e,C=Sl(Xc,n),[j,P]=_.useState(null),[A,T]=_.useState(null),R=Mt(t,le=>P(le)),[M,$]=_.useState(null),[z,U]=_.useState(null),V=S0(n),[F,X]=_.useState(!1),ee=_.useRef(!1);_.useEffect(()=>{if(j)return L_(j)},[j]),I_();const q=_.useCallback(le=>{const[ye,...me]=V().map(ie=>ie.ref.current),[xe]=me.slice(-1),de=document.activeElement;for(const ie of le)if(ie===de||(ie?.scrollIntoView({block:"nearest"}),ie===ye&&A&&(A.scrollTop=0),ie===xe&&A&&(A.scrollTop=A.scrollHeight),ie?.focus(),document.activeElement!==de))return},[V,A]),Q=_.useCallback(()=>q([M,j]),[q,M,j]);_.useEffect(()=>{F&&Q()},[F,Q]);const{onOpenChange:G,triggerPointerDownPosRef:ne}=C;_.useEffect(()=>{if(j){let le={x:0,y:0};const ye=xe=>{le={x:Math.abs(Math.round(xe.pageX)-(ne.current?.x??0)),y:Math.abs(Math.round(xe.pageY)-(ne.current?.y??0))}},me=xe=>{le.x<=10&&le.y<=10?xe.preventDefault():j.contains(xe.target)||G(!1),document.removeEventListener("pointermove",ye),ne.current=null};return ne.current!==null&&(document.addEventListener("pointermove",ye),document.addEventListener("pointerup",me,{capture:!0,once:!0})),()=>{document.removeEventListener("pointermove",ye),document.removeEventListener("pointerup",me,{capture:!0})}}},[j,G,ne]),_.useEffect(()=>{const le=()=>G(!1);return window.addEventListener("blur",le),window.addEventListener("resize",le),()=>{window.removeEventListener("blur",le),window.removeEventListener("resize",le)}},[G]);const[te,I]=vG(le=>{const ye=V().filter(de=>!de.disabled),me=ye.find(de=>de.ref.current===document.activeElement),xe=bG(ye,le,me);xe&&setTimeout(()=>xe.ref.current.focus())}),H=_.useCallback((le,ye,me)=>{const xe=!ee.current&&!me;(C.value!==void 0&&C.value===ye||xe)&&($(le),xe&&(ee.current=!0))},[C.value]),Y=_.useCallback(()=>j?.focus(),[j]),re=_.useCallback((le,ye,me)=>{const xe=!ee.current&&!me;(C.value!==void 0&&C.value===ye||xe)&&U(le)},[C.value]),ge=r==="popper"?t_:rG,we=ge===t_?{side:u,sideOffset:f,align:m,alignOffset:g,arrowPadding:h,collisionBoundary:y,collisionPadding:x,sticky:S,hideWhenDetached:N,avoidCollisions:w}:{};return ce.jsx(tG,{scope:n,content:j,viewport:A,onViewportChange:T,itemRefCallback:H,selectedItem:M,onItemLeave:Y,itemTextRefCallback:re,focusSelectedItem:Q,selectedItemText:z,position:r,isPositioned:F,searchRef:te,children:ce.jsx(Px,{as:ASe,allowPinchZoom:!0,children:ce.jsx(jx,{asChild:!0,trapped:C.open,onMountAutoFocus:le=>{le.preventDefault()},onUnmountAutoFocus:Le(o,le=>{C.trigger?.focus({preventScroll:!0}),le.preventDefault()}),children:ce.jsx(kp,{asChild:!0,disableOutsidePointerEvents:!0,onEscapeKeyDown:s,onPointerDownOutside:c,onFocusOutside:le=>le.preventDefault(),onDismiss:()=>C.onOpenChange(!1),children:ce.jsx(ge,{role:"listbox",id:C.contentId,"data-state":C.open?"open":"closed",dir:C.dir,onContextMenu:le=>le.preventDefault(),...D,...we,onPlaced:()=>X(!0),ref:R,style:{display:"flex",flexDirection:"column",outline:"none",...D.style},onKeyDown:Le(D.onKeyDown,le=>{const ye=le.ctrlKey||le.altKey||le.metaKey;if(le.key==="Tab"&&le.preventDefault(),!ye&&le.key.length===1&&I(le.key),["ArrowUp","ArrowDown","Home","End"].includes(le.key)){let xe=V().filter(de=>!de.disabled).map(de=>de.ref.current);if(["ArrowUp","End"].includes(le.key)&&(xe=xe.slice().reverse()),["ArrowUp","ArrowDown"].includes(le.key)){const de=le.target,ie=xe.indexOf(de);xe=xe.slice(ie+1)}setTimeout(()=>q(xe)),le.preventDefault()}})})})})})})});nG.displayName=SSe;var OSe="SelectItemAlignedPosition",rG=_.forwardRef((e,t)=>{const{__scopeSelect:n,onPlaced:r,...o}=e,s=Sl(Xc,n),c=Al(Xc,n),[u,f]=_.useState(null),[m,g]=_.useState(null),h=Mt(t,R=>g(R)),y=S0(n),x=_.useRef(!1),S=_.useRef(!0),{viewport:N,selectedItem:w,selectedItemText:D,focusSelectedItem:C}=c,j=_.useCallback(()=>{if(s.trigger&&s.valueNode&&u&&m&&N&&w&&D){const R=s.trigger.getBoundingClientRect(),M=m.getBoundingClientRect(),$=s.valueNode.getBoundingClientRect(),z=D.getBoundingClientRect();if(s.dir!=="rtl"){const de=z.left-M.left,ie=$.left-de,ze=R.left-ie,Ne=R.width+ze,ut=Math.max(Ne,M.width),Ve=window.innerWidth-oi,nt=S8(ie,[oi,Math.max(oi,Ve-ut)]);u.style.minWidth=Ne+"px",u.style.left=nt+"px"}else{const de=M.right-z.right,ie=window.innerWidth-$.right-de,ze=window.innerWidth-R.right-ie,Ne=R.width+ze,ut=Math.max(Ne,M.width),Ve=window.innerWidth-oi,nt=S8(ie,[oi,Math.max(oi,Ve-ut)]);u.style.minWidth=Ne+"px",u.style.right=nt+"px"}const U=y(),V=window.innerHeight-oi*2,F=N.scrollHeight,X=window.getComputedStyle(m),ee=parseInt(X.borderTopWidth,10),q=parseInt(X.paddingTop,10),Q=parseInt(X.borderBottomWidth,10),G=parseInt(X.paddingBottom,10),ne=ee+q+F+G+Q,te=Math.min(w.offsetHeight*5,ne),I=window.getComputedStyle(N),H=parseInt(I.paddingTop,10),Y=parseInt(I.paddingBottom,10),re=R.top+R.height/2-oi,ge=V-re,we=w.offsetHeight/2,le=w.offsetTop+we,ye=ee+q+le,me=ne-ye;if(ye<=re){const de=U.length>0&&w===U[U.length-1].ref.current;u.style.bottom="0px";const ie=m.clientHeight-N.offsetTop-N.offsetHeight,ze=Math.max(ge,we+(de?Y:0)+ie+Q),Ne=ye+ze;u.style.height=Ne+"px"}else{const de=U.length>0&&w===U[0].ref.current;u.style.top="0px";const ze=Math.max(re,ee+N.offsetTop+(de?H:0)+we)+me;u.style.height=ze+"px",N.scrollTop=ye-re+N.offsetTop}u.style.margin=`${oi}px 0`,u.style.minHeight=te+"px",u.style.maxHeight=V+"px",r?.(),requestAnimationFrame(()=>x.current=!0)}},[y,s.trigger,s.valueNode,u,m,N,w,D,s.dir,r]);vr(()=>j(),[j]);const[P,A]=_.useState();vr(()=>{m&&A(window.getComputedStyle(m).zIndex)},[m]);const T=_.useCallback(R=>{R&&S.current===!0&&(j(),C?.(),S.current=!1)},[j,C]);return ce.jsx(CSe,{scope:n,contentWrapper:u,shouldExpandOnScrollRef:x,onScrollButtonChange:T,children:ce.jsx("div",{ref:f,style:{display:"flex",flexDirection:"column",position:"fixed",zIndex:P},children:ce.jsx(vt.div,{...o,ref:h,style:{boxSizing:"border-box",maxHeight:"100%",...o.style}})})})});rG.displayName=OSe;var DSe="SelectPopperPosition",t_=_.forwardRef((e,t)=>{const{__scopeSelect:n,align:r="start",collisionPadding:o=oi,...s}=e,c=A0(n);return ce.jsx(E_,{...c,...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)"}})});t_.displayName=DSe;var[CSe,eR]=Cf(Xc,{}),n_="SelectViewport",aG=_.forwardRef((e,t)=>{const{__scopeSelect:n,nonce:r,...o}=e,s=Al(n_,n),c=eR(n_,n),u=Mt(t,s.onViewportChange),f=_.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(E0.Slot,{scope:n,children:ce.jsx(vt.div,{"data-radix-select-viewport":"",role:"presentation",...o,ref:u,style:{position:"relative",flex:1,overflow:"hidden auto",...o.style},onScroll:Le(o.onScroll,m=>{const g=m.currentTarget,{contentWrapper:h,shouldExpandOnScrollRef:y}=c;if(y?.current&&h){const x=Math.abs(f.current-g.scrollTop);if(x>0){const S=window.innerHeight-oi*2,N=parseFloat(h.style.minHeight),w=parseFloat(h.style.height),D=Math.max(N,w);if(D<S){const C=D+x,j=Math.min(S,C),P=C-j;h.style.height=j+"px",h.style.bottom==="0px"&&(g.scrollTop=P>0?P:0,h.style.justifyContent="flex-end")}}}f.current=g.scrollTop})})})]})});aG.displayName=n_;var iG="SelectGroup",[TSe,_Se]=Cf(iG),jSe=_.forwardRef((e,t)=>{const{__scopeSelect:n,...r}=e,o=ro();return ce.jsx(TSe,{scope:n,id:o,children:ce.jsx(vt.div,{role:"group","aria-labelledby":o,...r,ref:t})})});jSe.displayName=iG;var oG="SelectLabel",RSe=_.forwardRef((e,t)=>{const{__scopeSelect:n,...r}=e,o=_Se(oG,n);return ce.jsx(vt.div,{id:o.id,...r,ref:t})});RSe.displayName=oG;var ux="SelectItem",[PSe,sG]=Cf(ux),lG=_.forwardRef((e,t)=>{const{__scopeSelect:n,value:r,disabled:o=!1,textValue:s,...c}=e,u=Sl(ux,n),f=Al(ux,n),m=u.value===r,[g,h]=_.useState(s??""),[y,x]=_.useState(!1),S=Mt(t,C=>f.itemRefCallback?.(C,r,o)),N=ro(),w=_.useRef("touch"),D=()=>{o||(u.onValueChange(r),u.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(PSe,{scope:n,value:r,disabled:o,textId:N,isSelected:m,onItemTextChange:_.useCallback(C=>{h(j=>j||(C?.textContent??"").trim())},[]),children:ce.jsx(E0.ItemSlot,{scope:n,value:r,disabled:o,textValue:g,children:ce.jsx(vt.div,{role:"option","aria-labelledby":N,"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,...c,ref:S,onFocus:Le(c.onFocus,()=>x(!0)),onBlur:Le(c.onBlur,()=>x(!1)),onClick:Le(c.onClick,()=>{w.current!=="mouse"&&D()}),onPointerUp:Le(c.onPointerUp,()=>{w.current==="mouse"&&D()}),onPointerDown:Le(c.onPointerDown,C=>{w.current=C.pointerType}),onPointerMove:Le(c.onPointerMove,C=>{w.current=C.pointerType,o?f.onItemLeave?.():w.current==="mouse"&&C.currentTarget.focus({preventScroll:!0})}),onPointerLeave:Le(c.onPointerLeave,C=>{C.currentTarget===document.activeElement&&f.onItemLeave?.()}),onKeyDown:Le(c.onKeyDown,C=>{f.searchRef?.current!==""&&C.key===" "||(vSe.includes(C.key)&&D(),C.key===" "&&C.preventDefault())})})})})});lG.displayName=ux;var Sh="SelectItemText",cG=_.forwardRef((e,t)=>{const{__scopeSelect:n,className:r,style:o,...s}=e,c=Sl(Sh,n),u=Al(Sh,n),f=sG(Sh,n),m=NSe(Sh,n),[g,h]=_.useState(null),y=Mt(t,D=>h(D),f.onItemTextChange,D=>u.itemTextRefCallback?.(D,f.value,f.disabled)),x=g?.textContent,S=_.useMemo(()=>ce.jsx("option",{value:f.value,disabled:f.disabled,children:x},f.value),[f.disabled,f.value,x]),{onNativeOptionAdd:N,onNativeOptionRemove:w}=m;return vr(()=>(N(S),()=>w(S)),[N,w,S]),ce.jsxs(ce.Fragment,{children:[ce.jsx(vt.span,{id:f.textId,...s,ref:y}),f.isSelected&&c.valueNode&&!c.valueNodeHasChildren?Mp.createPortal(s.children,c.valueNode):null]})});cG.displayName=Sh;var uG="SelectItemIndicator",dG=_.forwardRef((e,t)=>{const{__scopeSelect:n,...r}=e;return sG(uG,n).isSelected?ce.jsx(vt.span,{"aria-hidden":!0,...r,ref:t}):null});dG.displayName=uG;var r_="SelectScrollUpButton",fG=_.forwardRef((e,t)=>{const n=Al(r_,e.__scopeSelect),r=eR(r_,e.__scopeSelect),[o,s]=_.useState(!1),c=Mt(t,r.onScrollButtonChange);return vr(()=>{if(n.viewport&&n.isPositioned){let u=function(){const m=f.scrollTop>0;s(m)};const f=n.viewport;return u(),f.addEventListener("scroll",u),()=>f.removeEventListener("scroll",u)}},[n.viewport,n.isPositioned]),o?ce.jsx(hG,{...e,ref:c,onAutoScroll:()=>{const{viewport:u,selectedItem:f}=n;u&&f&&(u.scrollTop=u.scrollTop-f.offsetHeight)}}):null});fG.displayName=r_;var a_="SelectScrollDownButton",mG=_.forwardRef((e,t)=>{const n=Al(a_,e.__scopeSelect),r=eR(a_,e.__scopeSelect),[o,s]=_.useState(!1),c=Mt(t,r.onScrollButtonChange);return vr(()=>{if(n.viewport&&n.isPositioned){let u=function(){const m=f.scrollHeight-f.clientHeight,g=Math.ceil(f.scrollTop)<m;s(g)};const f=n.viewport;return u(),f.addEventListener("scroll",u),()=>f.removeEventListener("scroll",u)}},[n.viewport,n.isPositioned]),o?ce.jsx(hG,{...e,ref:c,onAutoScroll:()=>{const{viewport:u,selectedItem:f}=n;u&&f&&(u.scrollTop=u.scrollTop+f.offsetHeight)}}):null});mG.displayName=a_;var hG=_.forwardRef((e,t)=>{const{__scopeSelect:n,onAutoScroll:r,...o}=e,s=Al("SelectScrollButton",n),c=_.useRef(null),u=S0(n),f=_.useCallback(()=>{c.current!==null&&(window.clearInterval(c.current),c.current=null)},[]);return _.useEffect(()=>()=>f(),[f]),vr(()=>{u().find(g=>g.ref.current===document.activeElement)?.ref.current?.scrollIntoView({block:"nearest"})},[u]),ce.jsx(vt.div,{"aria-hidden":!0,...o,ref:t,style:{flexShrink:0,...o.style},onPointerDown:Le(o.onPointerDown,()=>{c.current===null&&(c.current=window.setInterval(r,50))}),onPointerMove:Le(o.onPointerMove,()=>{s.onItemLeave?.(),c.current===null&&(c.current=window.setInterval(r,50))}),onPointerLeave:Le(o.onPointerLeave,()=>{f()})})}),MSe="SelectSeparator",kSe=_.forwardRef((e,t)=>{const{__scopeSelect:n,...r}=e;return ce.jsx(vt.div,{"aria-hidden":!0,...r,ref:t})});kSe.displayName=MSe;var i_="SelectArrow",ISe=_.forwardRef((e,t)=>{const{__scopeSelect:n,...r}=e,o=A0(n),s=Sl(i_,n),c=Al(i_,n);return s.open&&c.position==="popper"?ce.jsx(S_,{...o,...r,ref:t}):null});ISe.displayName=i_;var LSe="SelectBubbleInput",pG=_.forwardRef(({__scopeSelect:e,value:t,...n},r)=>{const o=_.useRef(null),s=Mt(r,o),c=KK(t);return _.useEffect(()=>{const u=o.current;if(!u)return;const f=window.HTMLSelectElement.prototype,g=Object.getOwnPropertyDescriptor(f,"value").set;if(c!==t&&g){const h=new Event("change",{bubbles:!0});g.call(u,t),u.dispatchEvent(h)}},[c,t]),ce.jsx(vt.select,{...n,style:{...bz,...n.style},ref:s,defaultValue:t})});pG.displayName=LSe;function gG(e){return e===""||e===void 0}function vG(e){const t=lo(e),n=_.useRef(""),r=_.useRef(0),o=_.useCallback(c=>{const u=n.current+c;t(u),(function f(m){n.current=m,window.clearTimeout(r.current),m!==""&&(r.current=window.setTimeout(()=>f(""),1e3))})(u)},[t]),s=_.useCallback(()=>{n.current="",window.clearTimeout(r.current)},[]);return _.useEffect(()=>()=>window.clearTimeout(r.current),[]),[n,o,s]}function bG(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 c=VSe(e,Math.max(s,0));o.length===1&&(c=c.filter(m=>m!==n));const f=c.find(m=>m.textValue.toLowerCase().startsWith(o.toLowerCase()));return f!==n?f:void 0}function VSe(e,t){return e.map((n,r)=>e[(t+r)%e.length])}var $Se=GK,BSe=QK,zSe=WK,USe=ZK,qSe=JK,HSe=eG,FSe=aG,KSe=lG,GSe=cG,YSe=dG,QSe=fG,XSe=mG;function mr({...e}){return b.jsxDEV($Se,{"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 hr({...e}){return b.jsxDEV(zSe,{"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 pr({className:e,size:t="default",children:n,...r}){return b.jsxDEV(BSe,{"data-loc":"client/src/components/ui/select.tsx:34","data-slot":"select-trigger","data-size":t,className:wt("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,b.jsxDEV(USe,{"data-loc":"client/src/components/ui/select.tsx:44",asChild:!0,children:b.jsxDEV(Cx,{"data-loc":"client/src/components/ui/select.tsx:45",className:"size-4 opacity-50"},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/components/ui/select.tsx",lineNumber:45,columnNumber:9},this)},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/components/ui/select.tsx",lineNumber:44,columnNumber:7},this)]},void 0,!0,{fileName:"/home/ubuntu/nac-admin/client/src/components/ui/select.tsx",lineNumber:34,columnNumber:5},this)}function gr({className:e,children:t,position:n="popper",align:r="center",...o}){return b.jsxDEV(qSe,{"data-loc":"client/src/components/ui/select.tsx:59",children:b.jsxDEV(HSe,{"data-loc":"client/src/components/ui/select.tsx:60","data-slot":"select-content",className:wt("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:[b.jsxDEV(WSe,{"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),b.jsxDEV(FSe,{"data-loc":"client/src/components/ui/select.tsx:73",className:wt("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),b.jsxDEV(ZSe,{"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 _t({className:e,children:t,...n}){return b.jsxDEV(KSe,{"data-loc":"client/src/components/ui/select.tsx:107","data-slot":"select-item",className:wt("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:[b.jsxDEV("span",{"data-loc":"client/src/components/ui/select.tsx:115",className:"absolute right-2 flex size-3.5 items-center justify-center",children:b.jsxDEV(YSe,{"data-loc":"client/src/components/ui/select.tsx:116",children:b.jsxDEV(Uae,{"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),b.jsxDEV(GSe,{"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 WSe({className:e,...t}){return b.jsxDEV(QSe,{"data-loc":"client/src/components/ui/select.tsx:143","data-slot":"select-scroll-up-button",className:wt("flex cursor-default items-center justify-center py-1",e),...t,children:b.jsxDEV(j_,{"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 ZSe({className:e,...t}){return b.jsxDEV(XSe,{"data-loc":"client/src/components/ui/select.tsx:161","data-slot":"select-scroll-down-button",className:wt("flex cursor-default items-center justify-center py-1",e),...t,children:b.jsxDEV(Cx,{"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 uf({className:e,onKeyDown:t,onCompositionStart:n,onCompositionEnd:r,...o}){const s=z_(),{onCompositionStart:c,onCompositionEnd:u,onKeyDown:f}=jU({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 b.jsxDEV("textarea",{"data-loc":"client/src/components/ui/textarea.tsx:53","data-slot":"textarea",className:wt("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:c,onCompositionEnd:u,onKeyDown:f,...o},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/components/ui/textarea.tsx",lineNumber:53,columnNumber:5},this)}var O0="Switch",[JSe]=ds(O0),[eAe,tAe]=JSe(O0),yG=_.forwardRef((e,t)=>{const{__scopeSwitch:n,name:r,checked:o,defaultChecked:s,required:c,disabled:u,value:f="on",onCheckedChange:m,form:g,...h}=e,[y,x]=_.useState(null),S=Mt(t,j=>x(j)),N=_.useRef(!1),w=y?g||!!y.closest("form"):!0,[D,C]=kc({prop:o,defaultProp:s??!1,onChange:m,caller:O0});return ce.jsxs(eAe,{scope:n,checked:D,disabled:u,children:[ce.jsx(vt.button,{type:"button",role:"switch","aria-checked":D,"aria-required":c,"data-state":EG(D),"data-disabled":u?"":void 0,disabled:u,value:f,...h,ref:S,onClick:Le(e.onClick,j=>{C(P=>!P),w&&(N.current=j.isPropagationStopped(),N.current||j.stopPropagation())})}),w&&ce.jsx(wG,{control:y,bubbles:!N.current,name:r,value:f,checked:D,required:c,disabled:u,form:g,style:{transform:"translateX(-100%)"}})]})});yG.displayName=O0;var xG="SwitchThumb",NG=_.forwardRef((e,t)=>{const{__scopeSwitch:n,...r}=e,o=tAe(xG,n);return ce.jsx(vt.span,{"data-state":EG(o.checked),"data-disabled":o.disabled?"":void 0,...r,ref:t})});NG.displayName=xG;var nAe="SwitchBubbleInput",wG=_.forwardRef(({__scopeSwitch:e,control:t,checked:n,bubbles:r=!0,...o},s)=>{const c=_.useRef(null),u=Mt(c,s),f=KK(n),m=lz(t);return _.useEffect(()=>{const g=c.current;if(!g)return;const h=window.HTMLInputElement.prototype,x=Object.getOwnPropertyDescriptor(h,"checked").set;if(f!==n&&x){const S=new Event("click",{bubbles:r});x.call(g,n),g.dispatchEvent(S)}},[f,n,r]),ce.jsx("input",{type:"checkbox","aria-hidden":!0,defaultChecked:n,...o,tabIndex:-1,ref:u,style:{...o.style,...m,position:"absolute",pointerEvents:"none",opacity:0,margin:0}})});wG.displayName=nAe;function EG(e){return e?"checked":"unchecked"}var rAe=yG,aAe=NG;function A8({className:e,...t}){return b.jsxDEV(rAe,{"data-loc":"client/src/components/ui/switch.tsx:11","data-slot":"switch",className:wt("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:b.jsxDEV(aAe,{"data-loc":"client/src/components/ui/switch.tsx:19","data-slot":"switch-thumb",className:wt("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 O8=["CN","HK","US","EU","SG","AE","ALL"],D8=["RealEstate","Securities","DigitalToken","Commodity","IntellectualProperty","Equipment","ALL"],HD={zh:"🇨🇳",en:"🇺🇸",ar:"🇸🇦",ja:"🇯🇵",ko:"🇰🇷",fr:"🇫🇷",ru:"🇷🇺"},FD={zh:"中文",en:"English",ar:"العربية",ja:"日本語",ko:"한국어",fr:"Français",ru:"Русский"};function iAe(){const{t:e,i18n:t}=yx(),n=t.language.split("-")[0],r=["zh","en","ar","ja","ko","fr","ru"].includes(n)?n:"zh",o=Die(),c=new URLSearchParams(o).get("search")||"",[u,f]=_.useState(""),[m,g]=_.useState(""),[h,y]=_.useState(""),[x,S]=_.useState(1),[N,w]=_.useState(c);_.useEffect(()=>{c&&(w(c),S(1))},[c]);const[D,C]=_.useState(!1),[j,P]=_.useState(null),[A,T]=_.useState(null),[R,M]=_.useState({jurisdiction:"",assetType:"",ruleName:"",description:"",required:!0,tags:"",sourceLang:"zh",autoTranslate:!0}),$=et.useUtils(),{data:z,isLoading:U,refetch:V}=et.knowledgeBase.list.useQuery({jurisdiction:u||void 0,assetType:m||void 0,status:h||void 0,search:N||void 0,page:x,pageSize:15,lang:r}),F=et.knowledgeBase.create.useMutation({onSuccess:()=>{gt.success(e("knowledgeBase.ruleCreated","规则创建成功,AI翻译已自动生成")),C(!1),$.knowledgeBase.list.invalidate(),M({jurisdiction:"",assetType:"",ruleName:"",description:"",required:!0,tags:"",sourceLang:"zh",autoTranslate:!0})},onError:H=>gt.error(H.message)}),X=et.knowledgeBase.toggleStatus.useMutation({onSuccess:()=>{gt.success(e("common.statusUpdated","状态已更新")),$.knowledgeBase.list.invalidate()},onError:H=>gt.error(H.message)}),ee=et.knowledgeBase.delete.useMutation({onSuccess:()=>{gt.success(e("common.deleted","规则已删除")),$.knowledgeBase.list.invalidate()},onError:H=>gt.error(H.message)}),q=et.knowledgeBase.translateRule.useMutation({onSuccess:H=>{gt.success(e("knowledgeBase.translateSuccess","AI翻译完成,已更新七种语言")),$.knowledgeBase.list.invalidate(),T(null)},onError:H=>{gt.error(H.message),T(null)}}),Q=et.knowledgeBase.migrateAllToMultiLang.useMutation({onSuccess:H=>{gt.success(`批量翻译完成,已迁移 ${H.migratedCount} 条规则`),$.knowledgeBase.list.invalidate()},onError:H=>gt.error(H.message)}),G=z?.items||[],ne=z?.total||0,te=Math.ceil(ne/15),I=H=>{T(H),q.mutate({id:H})};return b.jsxDEV(C_,{"data-loc":"client/src/pages/KnowledgeBase.tsx:116",children:b.jsxDEV("div",{"data-loc":"client/src/pages/KnowledgeBase.tsx:117",className:"p-6 space-y-5",children:[b.jsxDEV("div",{"data-loc":"client/src/pages/KnowledgeBase.tsx:118",className:"flex items-center justify-between",children:[b.jsxDEV("div",{"data-loc":"client/src/pages/KnowledgeBase.tsx:119",children:[b.jsxDEV("h1",{"data-loc":"client/src/pages/KnowledgeBase.tsx:120",className:"text-2xl font-bold nac-gradient-text",children:e("nav.knowledgeBase","知识库管理")},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/KnowledgeBase.tsx",lineNumber:120,columnNumber:13},this),b.jsxDEV("p",{"data-loc":"client/src/pages/KnowledgeBase.tsx:121",className:"text-sm text-muted-foreground mt-0.5",children:e("knowledgeBase.subtitle","管理合规规则、法规条文与交易细则 — 支持七种语言")},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/KnowledgeBase.tsx",lineNumber:121,columnNumber:13},this)]},void 0,!0,{fileName:"/home/ubuntu/nac-admin/client/src/pages/KnowledgeBase.tsx",lineNumber:119,columnNumber:11},this),b.jsxDEV("div",{"data-loc":"client/src/pages/KnowledgeBase.tsx:123",className:"flex items-center gap-2",children:[b.jsxDEV(CE,{"data-loc":"client/src/pages/KnowledgeBase.tsx:124",children:[b.jsxDEV(TE,{"data-loc":"client/src/pages/KnowledgeBase.tsx:125",asChild:!0,children:b.jsxDEV(rt,{"data-loc":"client/src/pages/KnowledgeBase.tsx:126",variant:"outline",size:"sm",onClick:()=>Q.mutate(),disabled:Q.isPending,className:"border-border/50",children:[Q.isPending?b.jsxDEV(_r,{"data-loc":"client/src/pages/KnowledgeBase.tsx:132",className:"w-4 h-4 mr-1.5 animate-spin"},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/KnowledgeBase.tsx",lineNumber:132,columnNumber:48},this):b.jsxDEV(Ic,{"data-loc":"client/src/pages/KnowledgeBase.tsx:132",className:"w-4 h-4 mr-1.5"},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/KnowledgeBase.tsx",lineNumber:132,columnNumber:152},this),e("knowledgeBase.batchTranslate","批量AI翻译")]},void 0,!0,{fileName:"/home/ubuntu/nac-admin/client/src/pages/KnowledgeBase.tsx",lineNumber:126,columnNumber:17},this)},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/KnowledgeBase.tsx",lineNumber:125,columnNumber:15},this),b.jsxDEV(_E,{"data-loc":"client/src/pages/KnowledgeBase.tsx:136",children:"为所有缺少多语言翻译的规则自动生成七语言版本"},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/KnowledgeBase.tsx",lineNumber:136,columnNumber:15},this)]},void 0,!0,{fileName:"/home/ubuntu/nac-admin/client/src/pages/KnowledgeBase.tsx",lineNumber:124,columnNumber:13},this),b.jsxDEV(rt,{"data-loc":"client/src/pages/KnowledgeBase.tsx:138",variant:"outline",size:"sm",onClick:()=>V(),className:"border-border/50",children:[b.jsxDEV(eu,{"data-loc":"client/src/pages/KnowledgeBase.tsx:139",className:"w-4 h-4 mr-1.5"},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/KnowledgeBase.tsx",lineNumber:139,columnNumber:15},this),e("common.refresh","刷新")]},void 0,!0,{fileName:"/home/ubuntu/nac-admin/client/src/pages/KnowledgeBase.tsx",lineNumber:138,columnNumber:13},this),b.jsxDEV($c,{"data-loc":"client/src/pages/KnowledgeBase.tsx:141",open:D,onOpenChange:C,children:[b.jsxDEV(Gh,{"data-loc":"client/src/pages/KnowledgeBase.tsx:142",asChild:!0,children:b.jsxDEV(rt,{"data-loc":"client/src/pages/KnowledgeBase.tsx:143",size:"sm",className:"nac-gradient text-white",children:[b.jsxDEV($p,{"data-loc":"client/src/pages/KnowledgeBase.tsx:144",className:"w-4 h-4 mr-1.5"},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/KnowledgeBase.tsx",lineNumber:144,columnNumber:19},this),e("knowledgeBase.addRule","新增规则")]},void 0,!0,{fileName:"/home/ubuntu/nac-admin/client/src/pages/KnowledgeBase.tsx",lineNumber:143,columnNumber:17},this)},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/KnowledgeBase.tsx",lineNumber:142,columnNumber:15},this),b.jsxDEV(Bc,{"data-loc":"client/src/pages/KnowledgeBase.tsx:147",className:"bg-card border-border/50 max-w-lg",children:[b.jsxDEV(zc,{"data-loc":"client/src/pages/KnowledgeBase.tsx:148",children:b.jsxDEV(Uc,{"data-loc":"client/src/pages/KnowledgeBase.tsx:149",children:e("knowledgeBase.createRule","新增合规规则")},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/KnowledgeBase.tsx",lineNumber:149,columnNumber:19},this)},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/KnowledgeBase.tsx",lineNumber:148,columnNumber:17},this),b.jsxDEV("div",{"data-loc":"client/src/pages/KnowledgeBase.tsx:151",className:"space-y-4 mt-2",children:[b.jsxDEV("div",{"data-loc":"client/src/pages/KnowledgeBase.tsx:152",className:"grid grid-cols-2 gap-3",children:[b.jsxDEV("div",{"data-loc":"client/src/pages/KnowledgeBase.tsx:153",className:"space-y-1.5",children:[b.jsxDEV(Ct,{"data-loc":"client/src/pages/KnowledgeBase.tsx:154",className:"text-xs",children:e("knowledgeBase.jurisdiction","司法辖区")},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/KnowledgeBase.tsx",lineNumber:154,columnNumber:23},this),b.jsxDEV(mr,{"data-loc":"client/src/pages/KnowledgeBase.tsx:155",value:R.jurisdiction,onValueChange:H=>M(Y=>({...Y,jurisdiction:H})),children:[b.jsxDEV(pr,{"data-loc":"client/src/pages/KnowledgeBase.tsx:156",className:"bg-input border-border/50 h-9",children:b.jsxDEV(hr,{"data-loc":"client/src/pages/KnowledgeBase.tsx:156",placeholder:"选择辖区"},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/KnowledgeBase.tsx",lineNumber:156,columnNumber:132},this)},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/KnowledgeBase.tsx",lineNumber:156,columnNumber:25},this),b.jsxDEV(gr,{"data-loc":"client/src/pages/KnowledgeBase.tsx:157",className:"bg-card border-border/50",children:O8.map(H=>b.jsxDEV(_t,{"data-loc":"client/src/pages/KnowledgeBase.tsx:158",value:H,children:H},H,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/KnowledgeBase.tsx",lineNumber:158,columnNumber:51},this))},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/KnowledgeBase.tsx",lineNumber:157,columnNumber:25},this)]},void 0,!0,{fileName:"/home/ubuntu/nac-admin/client/src/pages/KnowledgeBase.tsx",lineNumber:155,columnNumber:23},this)]},void 0,!0,{fileName:"/home/ubuntu/nac-admin/client/src/pages/KnowledgeBase.tsx",lineNumber:153,columnNumber:21},this),b.jsxDEV("div",{"data-loc":"client/src/pages/KnowledgeBase.tsx:162",className:"space-y-1.5",children:[b.jsxDEV(Ct,{"data-loc":"client/src/pages/KnowledgeBase.tsx:163",className:"text-xs",children:e("knowledgeBase.assetType","资产类型")},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/KnowledgeBase.tsx",lineNumber:163,columnNumber:23},this),b.jsxDEV(mr,{"data-loc":"client/src/pages/KnowledgeBase.tsx:164",value:R.assetType,onValueChange:H=>M(Y=>({...Y,assetType:H})),children:[b.jsxDEV(pr,{"data-loc":"client/src/pages/KnowledgeBase.tsx:165",className:"bg-input border-border/50 h-9",children:b.jsxDEV(hr,{"data-loc":"client/src/pages/KnowledgeBase.tsx:165",placeholder:"选择类型"},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/KnowledgeBase.tsx",lineNumber:165,columnNumber:132},this)},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/KnowledgeBase.tsx",lineNumber:165,columnNumber:25},this),b.jsxDEV(gr,{"data-loc":"client/src/pages/KnowledgeBase.tsx:166",className:"bg-card border-border/50",children:D8.map(H=>b.jsxDEV(_t,{"data-loc":"client/src/pages/KnowledgeBase.tsx:167",value:H,children:H},H,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/KnowledgeBase.tsx",lineNumber:167,columnNumber:49},this))},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/KnowledgeBase.tsx",lineNumber:166,columnNumber:25},this)]},void 0,!0,{fileName:"/home/ubuntu/nac-admin/client/src/pages/KnowledgeBase.tsx",lineNumber:164,columnNumber:23},this)]},void 0,!0,{fileName:"/home/ubuntu/nac-admin/client/src/pages/KnowledgeBase.tsx",lineNumber:162,columnNumber:21},this)]},void 0,!0,{fileName:"/home/ubuntu/nac-admin/client/src/pages/KnowledgeBase.tsx",lineNumber:152,columnNumber:19},this),b.jsxDEV("div",{"data-loc":"client/src/pages/KnowledgeBase.tsx:172",className:"space-y-1.5",children:[b.jsxDEV(Ct,{"data-loc":"client/src/pages/KnowledgeBase.tsx:173",className:"text-xs",children:e("knowledgeBase.sourceLang","输入语言")},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/KnowledgeBase.tsx",lineNumber:173,columnNumber:21},this),b.jsxDEV(mr,{"data-loc":"client/src/pages/KnowledgeBase.tsx:174",value:R.sourceLang,onValueChange:H=>M(Y=>({...Y,sourceLang:H})),children:[b.jsxDEV(pr,{"data-loc":"client/src/pages/KnowledgeBase.tsx:175",className:"bg-input border-border/50 h-9",children:b.jsxDEV(hr,{"data-loc":"client/src/pages/KnowledgeBase.tsx:175"},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/KnowledgeBase.tsx",lineNumber:175,columnNumber:130},this)},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/KnowledgeBase.tsx",lineNumber:175,columnNumber:23},this),b.jsxDEV(gr,{"data-loc":"client/src/pages/KnowledgeBase.tsx:176",className:"bg-card border-border/50",children:Object.entries(FD).map(([H,Y])=>b.jsxDEV(_t,{"data-loc":"client/src/pages/KnowledgeBase.tsx:178",value:H,children:[HD[H]," ",Y]},H,!0,{fileName:"/home/ubuntu/nac-admin/client/src/pages/KnowledgeBase.tsx",lineNumber:178,columnNumber:27},this))},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/KnowledgeBase.tsx",lineNumber:176,columnNumber:23},this)]},void 0,!0,{fileName:"/home/ubuntu/nac-admin/client/src/pages/KnowledgeBase.tsx",lineNumber:174,columnNumber:21},this)]},void 0,!0,{fileName:"/home/ubuntu/nac-admin/client/src/pages/KnowledgeBase.tsx",lineNumber:172,columnNumber:19},this),b.jsxDEV("div",{"data-loc":"client/src/pages/KnowledgeBase.tsx:183",className:"space-y-1.5",children:[b.jsxDEV(Ct,{"data-loc":"client/src/pages/KnowledgeBase.tsx:184",className:"text-xs",children:e("knowledgeBase.ruleName","规则名称")},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/KnowledgeBase.tsx",lineNumber:184,columnNumber:21},this),b.jsxDEV(Vn,{"data-loc":"client/src/pages/KnowledgeBase.tsx:185",value:R.ruleName,onChange:H=>M(Y=>({...Y,ruleName:H.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:185,columnNumber:21},this)]},void 0,!0,{fileName:"/home/ubuntu/nac-admin/client/src/pages/KnowledgeBase.tsx",lineNumber:183,columnNumber:19},this),b.jsxDEV("div",{"data-loc":"client/src/pages/KnowledgeBase.tsx:187",className:"space-y-1.5",children:[b.jsxDEV(Ct,{"data-loc":"client/src/pages/KnowledgeBase.tsx:188",className:"text-xs",children:e("knowledgeBase.description","规则描述")},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/KnowledgeBase.tsx",lineNumber:188,columnNumber:21},this),b.jsxDEV(uf,{"data-loc":"client/src/pages/KnowledgeBase.tsx:189",value:R.description,onChange:H=>M(Y=>({...Y,description:H.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:189,columnNumber:21},this)]},void 0,!0,{fileName:"/home/ubuntu/nac-admin/client/src/pages/KnowledgeBase.tsx",lineNumber:187,columnNumber:19},this),b.jsxDEV("div",{"data-loc":"client/src/pages/KnowledgeBase.tsx:191",className:"space-y-1.5",children:[b.jsxDEV(Ct,{"data-loc":"client/src/pages/KnowledgeBase.tsx:192",className:"text-xs",children:e("knowledgeBase.tags","标签(逗号分隔)")},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/KnowledgeBase.tsx",lineNumber:192,columnNumber:21},this),b.jsxDEV(Vn,{"data-loc":"client/src/pages/KnowledgeBase.tsx:193",value:R.tags,onChange:H=>M(Y=>({...Y,tags:H.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:193,columnNumber:21},this)]},void 0,!0,{fileName:"/home/ubuntu/nac-admin/client/src/pages/KnowledgeBase.tsx",lineNumber:191,columnNumber:19},this),b.jsxDEV("div",{"data-loc":"client/src/pages/KnowledgeBase.tsx:195",className:"flex items-center justify-between",children:[b.jsxDEV("div",{"data-loc":"client/src/pages/KnowledgeBase.tsx:196",className:"flex items-center gap-2",children:[b.jsxDEV(A8,{"data-loc":"client/src/pages/KnowledgeBase.tsx:197",checked:R.required,onCheckedChange:H=>M(Y=>({...Y,required:H}))},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/KnowledgeBase.tsx",lineNumber:197,columnNumber:23},this),b.jsxDEV(Ct,{"data-loc":"client/src/pages/KnowledgeBase.tsx:198",className:"text-xs",children:e("knowledgeBase.required","强制要求")},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/KnowledgeBase.tsx",lineNumber:198,columnNumber:23},this)]},void 0,!0,{fileName:"/home/ubuntu/nac-admin/client/src/pages/KnowledgeBase.tsx",lineNumber:196,columnNumber:21},this),b.jsxDEV("div",{"data-loc":"client/src/pages/KnowledgeBase.tsx:200",className:"flex items-center gap-2",children:[b.jsxDEV(A8,{"data-loc":"client/src/pages/KnowledgeBase.tsx:201",checked:R.autoTranslate,onCheckedChange:H=>M(Y=>({...Y,autoTranslate:H}))},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/KnowledgeBase.tsx",lineNumber:201,columnNumber:23},this),b.jsxDEV(Ct,{"data-loc":"client/src/pages/KnowledgeBase.tsx:202",className:"text-xs flex items-center gap-1",children:[b.jsxDEV(Fb,{"data-loc":"client/src/pages/KnowledgeBase.tsx:203",className:"w-3 h-3"},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/KnowledgeBase.tsx",lineNumber:203,columnNumber:25},this),e("knowledgeBase.autoTranslate","AI自动翻译七语言")]},void 0,!0,{fileName:"/home/ubuntu/nac-admin/client/src/pages/KnowledgeBase.tsx",lineNumber:202,columnNumber:23},this)]},void 0,!0,{fileName:"/home/ubuntu/nac-admin/client/src/pages/KnowledgeBase.tsx",lineNumber:200,columnNumber:21},this)]},void 0,!0,{fileName:"/home/ubuntu/nac-admin/client/src/pages/KnowledgeBase.tsx",lineNumber:195,columnNumber:19},this),R.autoTranslate&&b.jsxDEV("p",{"data-loc":"client/src/pages/KnowledgeBase.tsx:208",className:"text-xs text-muted-foreground bg-accent/30 rounded p-2",children:"🤖 创建后将自动调用AI生成:中文、英文、阿拉伯文、日文、韩文、法文、俄文七种语言版本"},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/KnowledgeBase.tsx",lineNumber:208,columnNumber:21},this),b.jsxDEV(rt,{"data-loc":"client/src/pages/KnowledgeBase.tsx:212",className:"w-full nac-gradient text-white",onClick:()=>F.mutate({...R,tags:R.tags.split(",").map(H=>H.trim()).filter(Boolean),sourceLang:R.sourceLang,autoTranslate:R.autoTranslate}),disabled:F.isPending||!R.jurisdiction||!R.assetType||!R.ruleName,children:F.isPending?b.jsxDEV(b.Fragment,{children:[b.jsxDEV(_r,{"data-loc":"client/src/pages/KnowledgeBase.tsx:223",className:"w-4 h-4 mr-1.5 animate-spin"},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/KnowledgeBase.tsx",lineNumber:223,columnNumber:25},this),"AI翻译生成中..."]},void 0,!0,{fileName:"/home/ubuntu/nac-admin/client/src/pages/KnowledgeBase.tsx",lineNumber:223,columnNumber:23},this):e("knowledgeBase.createRule","创建规则")},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/KnowledgeBase.tsx",lineNumber:212,columnNumber:19},this)]},void 0,!0,{fileName:"/home/ubuntu/nac-admin/client/src/pages/KnowledgeBase.tsx",lineNumber:151,columnNumber:17},this)]},void 0,!0,{fileName:"/home/ubuntu/nac-admin/client/src/pages/KnowledgeBase.tsx",lineNumber:147,columnNumber:15},this)]},void 0,!0,{fileName:"/home/ubuntu/nac-admin/client/src/pages/KnowledgeBase.tsx",lineNumber:141,columnNumber:13},this)]},void 0,!0,{fileName:"/home/ubuntu/nac-admin/client/src/pages/KnowledgeBase.tsx",lineNumber:123,columnNumber:11},this)]},void 0,!0,{fileName:"/home/ubuntu/nac-admin/client/src/pages/KnowledgeBase.tsx",lineNumber:118,columnNumber:9},this),b.jsxDEV("div",{"data-loc":"client/src/pages/KnowledgeBase.tsx:233",className:"flex items-center gap-2 text-xs text-muted-foreground",children:[b.jsxDEV(Fb,{"data-loc":"client/src/pages/KnowledgeBase.tsx:234",className:"w-3.5 h-3.5"},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/KnowledgeBase.tsx",lineNumber:234,columnNumber:11},this),b.jsxDEV("span",{"data-loc":"client/src/pages/KnowledgeBase.tsx:235",children:["当前显示语言:",HD[r]," ",FD[r]," — 切换界面语言可同步切换规则显示语言"]},void 0,!0,{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:233,columnNumber:9},this),N&&b.jsxDEV("div",{"data-loc":"client/src/pages/KnowledgeBase.tsx:240",className:"flex items-center gap-2 px-3 py-2 bg-blue-50 dark:bg-blue-950/30 border border-blue-200 dark:border-blue-800 rounded-lg text-sm",children:[b.jsxDEV(__,{"data-loc":"client/src/pages/KnowledgeBase.tsx:241",className:"w-4 h-4 text-blue-500 shrink-0"},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/KnowledgeBase.tsx",lineNumber:241,columnNumber:13},this),b.jsxDEV("span",{"data-loc":"client/src/pages/KnowledgeBase.tsx:242",className:"text-blue-700 dark:text-blue-300",children:"来自AI智能体引用跳转,正在搜索:"},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/KnowledgeBase.tsx",lineNumber:242,columnNumber:13},this),b.jsxDEV("span",{"data-loc":"client/src/pages/KnowledgeBase.tsx:243",className:"font-semibold text-blue-900 dark:text-blue-100",children:N},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/KnowledgeBase.tsx",lineNumber:243,columnNumber:13},this),b.jsxDEV("button",{"data-loc":"client/src/pages/KnowledgeBase.tsx:244",onClick:()=>w(""),className:"ml-auto text-blue-500 hover:text-blue-700 text-xs underline",children:"清除搜索"},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/KnowledgeBase.tsx",lineNumber:244,columnNumber:13},this)]},void 0,!0,{fileName:"/home/ubuntu/nac-admin/client/src/pages/KnowledgeBase.tsx",lineNumber:240,columnNumber:11},this),b.jsxDEV(At,{"data-loc":"client/src/pages/KnowledgeBase.tsx:254",className:"border-border/50",children:b.jsxDEV(Ot,{"data-loc":"client/src/pages/KnowledgeBase.tsx:255",className:"p-4",children:b.jsxDEV("div",{"data-loc":"client/src/pages/KnowledgeBase.tsx:256",className:"flex flex-wrap items-center gap-3",children:[b.jsxDEV(Gae,{"data-loc":"client/src/pages/KnowledgeBase.tsx:257",className:"w-4 h-4 text-muted-foreground"},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/KnowledgeBase.tsx",lineNumber:257,columnNumber:15},this),b.jsxDEV(Vn,{"data-loc":"client/src/pages/KnowledgeBase.tsx:259",placeholder:"搜索规则名称、描述内容...",value:N,onChange:H=>{w(H.target.value),S(1)},className:"w-52 bg-input border-border/50 h-8 text-sm"},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/KnowledgeBase.tsx",lineNumber:259,columnNumber:15},this),b.jsxDEV(mr,{"data-loc":"client/src/pages/KnowledgeBase.tsx:265",value:u,onValueChange:H=>{f(H==="ALL_FILTER"?"":H),S(1)},children:[b.jsxDEV(pr,{"data-loc":"client/src/pages/KnowledgeBase.tsx:266",className:"w-36 bg-input border-border/50 h-8 text-sm",children:b.jsxDEV(hr,{"data-loc":"client/src/pages/KnowledgeBase.tsx:266",placeholder:e("knowledgeBase.jurisdiction","司法辖区")},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/KnowledgeBase.tsx",lineNumber:266,columnNumber:137},this)},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/KnowledgeBase.tsx",lineNumber:266,columnNumber:17},this),b.jsxDEV(gr,{"data-loc":"client/src/pages/KnowledgeBase.tsx:267",className:"bg-card border-border/50",children:[b.jsxDEV(_t,{"data-loc":"client/src/pages/KnowledgeBase.tsx:268",value:"ALL_FILTER",children:e("common.all","全部辖区")},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/KnowledgeBase.tsx",lineNumber:268,columnNumber:19},this),O8.map(H=>b.jsxDEV(_t,{"data-loc":"client/src/pages/KnowledgeBase.tsx:269",value:H,children:H},H,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/KnowledgeBase.tsx",lineNumber:269,columnNumber:43},this))]},void 0,!0,{fileName:"/home/ubuntu/nac-admin/client/src/pages/KnowledgeBase.tsx",lineNumber:267,columnNumber:17},this)]},void 0,!0,{fileName:"/home/ubuntu/nac-admin/client/src/pages/KnowledgeBase.tsx",lineNumber:265,columnNumber:15},this),b.jsxDEV(mr,{"data-loc":"client/src/pages/KnowledgeBase.tsx:272",value:m,onValueChange:H=>{g(H==="ALL_FILTER"?"":H),S(1)},children:[b.jsxDEV(pr,{"data-loc":"client/src/pages/KnowledgeBase.tsx:273",className:"w-40 bg-input border-border/50 h-8 text-sm",children:b.jsxDEV(hr,{"data-loc":"client/src/pages/KnowledgeBase.tsx:273",placeholder:e("knowledgeBase.assetType","资产类型")},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/KnowledgeBase.tsx",lineNumber:273,columnNumber:137},this)},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/KnowledgeBase.tsx",lineNumber:273,columnNumber:17},this),b.jsxDEV(gr,{"data-loc":"client/src/pages/KnowledgeBase.tsx:274",className:"bg-card border-border/50",children:[b.jsxDEV(_t,{"data-loc":"client/src/pages/KnowledgeBase.tsx:275",value:"ALL_FILTER",children:e("common.all","全部类型")},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/KnowledgeBase.tsx",lineNumber:275,columnNumber:19},this),D8.map(H=>b.jsxDEV(_t,{"data-loc":"client/src/pages/KnowledgeBase.tsx:276",value:H,children:H},H,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/KnowledgeBase.tsx",lineNumber:276,columnNumber:41},this))]},void 0,!0,{fileName:"/home/ubuntu/nac-admin/client/src/pages/KnowledgeBase.tsx",lineNumber:274,columnNumber:17},this)]},void 0,!0,{fileName:"/home/ubuntu/nac-admin/client/src/pages/KnowledgeBase.tsx",lineNumber:272,columnNumber:15},this),b.jsxDEV(mr,{"data-loc":"client/src/pages/KnowledgeBase.tsx:279",value:h,onValueChange:H=>{y(H==="ALL_FILTER"?"":H),S(1)},children:[b.jsxDEV(pr,{"data-loc":"client/src/pages/KnowledgeBase.tsx:280",className:"w-28 bg-input border-border/50 h-8 text-sm",children:b.jsxDEV(hr,{"data-loc":"client/src/pages/KnowledgeBase.tsx:280",placeholder:e("common.status","状态")},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/KnowledgeBase.tsx",lineNumber:280,columnNumber:137},this)},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/KnowledgeBase.tsx",lineNumber:280,columnNumber:17},this),b.jsxDEV(gr,{"data-loc":"client/src/pages/KnowledgeBase.tsx:281",className:"bg-card border-border/50",children:[b.jsxDEV(_t,{"data-loc":"client/src/pages/KnowledgeBase.tsx:282",value:"ALL_FILTER",children:e("common.all","全部状态")},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/KnowledgeBase.tsx",lineNumber:282,columnNumber:19},this),b.jsxDEV(_t,{"data-loc":"client/src/pages/KnowledgeBase.tsx:283",value:"active",children:e("common.active","已激活")},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/KnowledgeBase.tsx",lineNumber:283,columnNumber:19},this),b.jsxDEV(_t,{"data-loc":"client/src/pages/KnowledgeBase.tsx:284",value:"disabled",children:e("common.disabled","已禁用")},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/KnowledgeBase.tsx",lineNumber:284,columnNumber:19},this)]},void 0,!0,{fileName:"/home/ubuntu/nac-admin/client/src/pages/KnowledgeBase.tsx",lineNumber:281,columnNumber:17},this)]},void 0,!0,{fileName:"/home/ubuntu/nac-admin/client/src/pages/KnowledgeBase.tsx",lineNumber:279,columnNumber:15},this),b.jsxDEV("span",{"data-loc":"client/src/pages/KnowledgeBase.tsx:287",className:"text-xs text-muted-foreground ml-auto",children:["共 ",ne," 条规则",N?`(搜索“${N}”)`:""]},void 0,!0,{fileName:"/home/ubuntu/nac-admin/client/src/pages/KnowledgeBase.tsx",lineNumber:287,columnNumber:15},this)]},void 0,!0,{fileName:"/home/ubuntu/nac-admin/client/src/pages/KnowledgeBase.tsx",lineNumber:256,columnNumber:13},this)},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/KnowledgeBase.tsx",lineNumber:255,columnNumber:11},this)},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/KnowledgeBase.tsx",lineNumber:254,columnNumber:9},this),b.jsxDEV(At,{"data-loc":"client/src/pages/KnowledgeBase.tsx:293",className:"border-border/50",children:b.jsxDEV(Ot,{"data-loc":"client/src/pages/KnowledgeBase.tsx:294",className:"p-0",children:U?b.jsxDEV("div",{"data-loc":"client/src/pages/KnowledgeBase.tsx:296",className:"p-8 text-center text-muted-foreground text-sm",children:[b.jsxDEV(_r,{"data-loc":"client/src/pages/KnowledgeBase.tsx:297",className:"w-6 h-6 animate-spin mx-auto mb-2"},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/KnowledgeBase.tsx",lineNumber:297,columnNumber:17},this),"加载中..."]},void 0,!0,{fileName:"/home/ubuntu/nac-admin/client/src/pages/KnowledgeBase.tsx",lineNumber:296,columnNumber:15},this):G.length===0?b.jsxDEV("div",{"data-loc":"client/src/pages/KnowledgeBase.tsx:300",className:"p-8 text-center",children:[b.jsxDEV(R_,{"data-loc":"client/src/pages/KnowledgeBase.tsx:301",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:301,columnNumber:17},this),b.jsxDEV("p",{"data-loc":"client/src/pages/KnowledgeBase.tsx:302",className:"text-muted-foreground text-sm",children:e("knowledgeBase.noRules","暂无合规规则")},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/KnowledgeBase.tsx",lineNumber:302,columnNumber:17},this)]},void 0,!0,{fileName:"/home/ubuntu/nac-admin/client/src/pages/KnowledgeBase.tsx",lineNumber:300,columnNumber:15},this):b.jsxDEV("div",{"data-loc":"client/src/pages/KnowledgeBase.tsx:305",className:"overflow-x-auto",children:b.jsxDEV("table",{"data-loc":"client/src/pages/KnowledgeBase.tsx:306",className:"w-full text-sm",children:[b.jsxDEV("thead",{"data-loc":"client/src/pages/KnowledgeBase.tsx:307",children:b.jsxDEV("tr",{"data-loc":"client/src/pages/KnowledgeBase.tsx:308",className:"border-b border-border/30",children:[b.jsxDEV("th",{"data-loc":"client/src/pages/KnowledgeBase.tsx:309",className:"text-left p-3 text-xs font-medium text-muted-foreground",children:e("knowledgeBase.ruleName","规则名称")},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/KnowledgeBase.tsx",lineNumber:309,columnNumber:23},this),b.jsxDEV("th",{"data-loc":"client/src/pages/KnowledgeBase.tsx:310",className:"text-left p-3 text-xs font-medium text-muted-foreground",children:e("knowledgeBase.jurisdiction","辖区")},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/KnowledgeBase.tsx",lineNumber:310,columnNumber:23},this),b.jsxDEV("th",{"data-loc":"client/src/pages/KnowledgeBase.tsx:311",className:"text-left p-3 text-xs font-medium text-muted-foreground",children:e("knowledgeBase.assetType","资产类型")},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/KnowledgeBase.tsx",lineNumber:311,columnNumber:23},this),b.jsxDEV("th",{"data-loc":"client/src/pages/KnowledgeBase.tsx:312",className:"text-left p-3 text-xs font-medium text-muted-foreground",children:e("knowledgeBase.i18nStatus","多语言")},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/KnowledgeBase.tsx",lineNumber:312,columnNumber:23},this),b.jsxDEV("th",{"data-loc":"client/src/pages/KnowledgeBase.tsx:313",className:"text-left p-3 text-xs font-medium text-muted-foreground",children:e("common.status","状态")},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/KnowledgeBase.tsx",lineNumber:313,columnNumber:23},this),b.jsxDEV("th",{"data-loc":"client/src/pages/KnowledgeBase.tsx:314",className:"text-right p-3 text-xs font-medium text-muted-foreground",children:e("common.actions","操作")},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/KnowledgeBase.tsx",lineNumber:314,columnNumber:23},this)]},void 0,!0,{fileName:"/home/ubuntu/nac-admin/client/src/pages/KnowledgeBase.tsx",lineNumber:308,columnNumber:21},this)},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/KnowledgeBase.tsx",lineNumber:307,columnNumber:19},this),b.jsxDEV("tbody",{"data-loc":"client/src/pages/KnowledgeBase.tsx:317",children:G.map(H=>{const Y=H._id?.toString(),re=j===Y,ge=H.ruleNameI18n&&Object.keys(H.ruleNameI18n).length>=3,we=H.ruleNameI18n?Object.keys(H.ruleNameI18n).length:0;return b.jsxDEV(b.Fragment,{children:[b.jsxDEV("tr",{"data-loc":"client/src/pages/KnowledgeBase.tsx:326",className:"border-b border-border/20 hover:bg-accent/30 transition-colors",children:[b.jsxDEV("td",{"data-loc":"client/src/pages/KnowledgeBase.tsx:327",className:"p-3",children:[b.jsxDEV("p",{"data-loc":"client/src/pages/KnowledgeBase.tsx:328",className:"font-medium",children:H.displayName||H.ruleName},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/KnowledgeBase.tsx",lineNumber:328,columnNumber:31},this),b.jsxDEV("p",{"data-loc":"client/src/pages/KnowledgeBase.tsx:329",className:"text-xs text-muted-foreground mt-0.5 line-clamp-1",children:H.displayDescription||H.description},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/KnowledgeBase.tsx",lineNumber:329,columnNumber:31},this)]},void 0,!0,{fileName:"/home/ubuntu/nac-admin/client/src/pages/KnowledgeBase.tsx",lineNumber:327,columnNumber:29},this),b.jsxDEV("td",{"data-loc":"client/src/pages/KnowledgeBase.tsx:331",className:"p-3",children:b.jsxDEV(za,{"data-loc":"client/src/pages/KnowledgeBase.tsx:332",variant:"outline",className:"text-xs border-primary/30 text-primary",children:H.jurisdiction},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/KnowledgeBase.tsx",lineNumber:332,columnNumber:31},this)},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/KnowledgeBase.tsx",lineNumber:331,columnNumber:29},this),b.jsxDEV("td",{"data-loc":"client/src/pages/KnowledgeBase.tsx:334",className:"p-3 text-xs text-muted-foreground",children:H.assetType},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/KnowledgeBase.tsx",lineNumber:334,columnNumber:29},this),b.jsxDEV("td",{"data-loc":"client/src/pages/KnowledgeBase.tsx:335",className:"p-3",children:b.jsxDEV("div",{"data-loc":"client/src/pages/KnowledgeBase.tsx:336",className:"flex items-center gap-1",children:ge?b.jsxDEV(CE,{"data-loc":"client/src/pages/KnowledgeBase.tsx:338",children:[b.jsxDEV(TE,{"data-loc":"client/src/pages/KnowledgeBase.tsx:339",asChild:!0,children:b.jsxDEV("button",{"data-loc":"client/src/pages/KnowledgeBase.tsx:340",className:"flex items-center gap-1 text-xs text-emerald-400 hover:text-emerald-300",onClick:()=>P(re?null:Y),children:[b.jsxDEV(Ic,{"data-loc":"client/src/pages/KnowledgeBase.tsx:344",className:"w-3 h-3"},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/KnowledgeBase.tsx",lineNumber:344,columnNumber:41},this),we,"/7",re?b.jsxDEV(j_,{"data-loc":"client/src/pages/KnowledgeBase.tsx:346",className:"w-3 h-3"},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/KnowledgeBase.tsx",lineNumber:346,columnNumber:55},this):b.jsxDEV(Cx,{"data-loc":"client/src/pages/KnowledgeBase.tsx:346",className:"w-3 h-3"},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/KnowledgeBase.tsx",lineNumber:346,columnNumber:141},this)]},void 0,!0,{fileName:"/home/ubuntu/nac-admin/client/src/pages/KnowledgeBase.tsx",lineNumber:340,columnNumber:39},this)},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/KnowledgeBase.tsx",lineNumber:339,columnNumber:37},this),b.jsxDEV(_E,{"data-loc":"client/src/pages/KnowledgeBase.tsx:349",children:"点击展开查看所有语言版本"},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/KnowledgeBase.tsx",lineNumber:349,columnNumber:37},this)]},void 0,!0,{fileName:"/home/ubuntu/nac-admin/client/src/pages/KnowledgeBase.tsx",lineNumber:338,columnNumber:35},this):b.jsxDEV("span",{"data-loc":"client/src/pages/KnowledgeBase.tsx:352",className:"text-xs text-amber-400/70",children:["仅",we,"种"]},void 0,!0,{fileName:"/home/ubuntu/nac-admin/client/src/pages/KnowledgeBase.tsx",lineNumber:352,columnNumber:35},this)},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/KnowledgeBase.tsx",lineNumber:336,columnNumber:31},this)},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/KnowledgeBase.tsx",lineNumber:335,columnNumber:29},this),b.jsxDEV("td",{"data-loc":"client/src/pages/KnowledgeBase.tsx:356",className:"p-3",children:b.jsxDEV("span",{"data-loc":"client/src/pages/KnowledgeBase.tsx:357",className:`text-xs px-2 py-0.5 rounded-full font-medium status-${H.status}`,children:H.status==="active"?e("common.active","已激活"):e("common.disabled","已禁用")},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/KnowledgeBase.tsx",lineNumber:357,columnNumber:31},this)},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/KnowledgeBase.tsx",lineNumber:356,columnNumber:29},this),b.jsxDEV("td",{"data-loc":"client/src/pages/KnowledgeBase.tsx:361",className:"p-3",children:b.jsxDEV("div",{"data-loc":"client/src/pages/KnowledgeBase.tsx:362",className:"flex items-center justify-end gap-1",children:[b.jsxDEV(CE,{"data-loc":"client/src/pages/KnowledgeBase.tsx:363",children:[b.jsxDEV(TE,{"data-loc":"client/src/pages/KnowledgeBase.tsx:364",asChild:!0,children:b.jsxDEV(rt,{"data-loc":"client/src/pages/KnowledgeBase.tsx:365",variant:"ghost",size:"sm",className:"h-7 px-2 text-xs text-blue-400 hover:text-blue-300",onClick:()=>I(Y),disabled:A===Y,children:A===Y?b.jsxDEV(_r,{"data-loc":"client/src/pages/KnowledgeBase.tsx:372",className:"w-3.5 h-3.5 animate-spin"},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/KnowledgeBase.tsx",lineNumber:372,columnNumber:41},this):b.jsxDEV(Fb,{"data-loc":"client/src/pages/KnowledgeBase.tsx:374",className:"w-3.5 h-3.5"},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/KnowledgeBase.tsx",lineNumber:374,columnNumber:41},this)},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/KnowledgeBase.tsx",lineNumber:365,columnNumber:37},this)},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/KnowledgeBase.tsx",lineNumber:364,columnNumber:35},this),b.jsxDEV(_E,{"data-loc":"client/src/pages/KnowledgeBase.tsx:378",children:"AI生成/补全七语言翻译"},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/KnowledgeBase.tsx",lineNumber:378,columnNumber:35},this)]},void 0,!0,{fileName:"/home/ubuntu/nac-admin/client/src/pages/KnowledgeBase.tsx",lineNumber:363,columnNumber:33},this),b.jsxDEV(rt,{"data-loc":"client/src/pages/KnowledgeBase.tsx:380",variant:"ghost",size:"sm",className:"h-7 px-2 text-xs",onClick:()=>X.mutate({id:Y,status:H.status==="active"?"disabled":"active"}),children:[b.jsxDEV(Yz,{"data-loc":"client/src/pages/KnowledgeBase.tsx:385",className:"w-3.5 h-3.5 mr-1"},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/KnowledgeBase.tsx",lineNumber:385,columnNumber:35},this),H.status==="active"?e("common.disable","禁用"):e("common.enable","激活")]},void 0,!0,{fileName:"/home/ubuntu/nac-admin/client/src/pages/KnowledgeBase.tsx",lineNumber:380,columnNumber:33},this),b.jsxDEV(rt,{"data-loc":"client/src/pages/KnowledgeBase.tsx:388",variant:"ghost",size:"sm",className:"h-7 px-2 text-xs text-destructive hover:text-destructive",onClick:()=>{confirm(e("common.confirmDelete","确认删除此规则?"))&&ee.mutate({id:Y})},children:b.jsxDEV(Qz,{"data-loc":"client/src/pages/KnowledgeBase.tsx:393",className:"w-3.5 h-3.5"},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/KnowledgeBase.tsx",lineNumber:393,columnNumber:35},this)},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/KnowledgeBase.tsx",lineNumber:388,columnNumber:33},this)]},void 0,!0,{fileName:"/home/ubuntu/nac-admin/client/src/pages/KnowledgeBase.tsx",lineNumber:362,columnNumber:31},this)},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/KnowledgeBase.tsx",lineNumber:361,columnNumber:29},this)]},Y,!0,{fileName:"/home/ubuntu/nac-admin/client/src/pages/KnowledgeBase.tsx",lineNumber:326,columnNumber:27},this),re&&H.ruleNameI18n&&b.jsxDEV("tr",{"data-loc":"client/src/pages/KnowledgeBase.tsx:400",className:"border-b border-border/20 bg-accent/10",children:b.jsxDEV("td",{"data-loc":"client/src/pages/KnowledgeBase.tsx:401",colSpan:6,className:"px-4 py-3",children:b.jsxDEV("div",{"data-loc":"client/src/pages/KnowledgeBase.tsx:402",className:"grid grid-cols-2 md:grid-cols-3 lg:grid-cols-4 gap-2",children:Object.entries(H.ruleNameI18n).map(([le,ye])=>b.jsxDEV("div",{"data-loc":"client/src/pages/KnowledgeBase.tsx:404",className:"bg-card/50 rounded p-2 border border-border/30",children:[b.jsxDEV("div",{"data-loc":"client/src/pages/KnowledgeBase.tsx:405",className:"flex items-center gap-1 mb-1",children:[b.jsxDEV("span",{"data-loc":"client/src/pages/KnowledgeBase.tsx:406",className:"text-sm",children:HD[le]||"🌐"},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/KnowledgeBase.tsx",lineNumber:406,columnNumber:41},this),b.jsxDEV("span",{"data-loc":"client/src/pages/KnowledgeBase.tsx:407",className:"text-xs font-medium text-muted-foreground",children:FD[le]||le},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/KnowledgeBase.tsx",lineNumber:407,columnNumber:41},this)]},void 0,!0,{fileName:"/home/ubuntu/nac-admin/client/src/pages/KnowledgeBase.tsx",lineNumber:405,columnNumber:39},this),b.jsxDEV("p",{"data-loc":"client/src/pages/KnowledgeBase.tsx:409",className:"text-xs font-medium",children:ye},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/KnowledgeBase.tsx",lineNumber:409,columnNumber:39},this),H.descriptionI18n?.[le]&&b.jsxDEV("p",{"data-loc":"client/src/pages/KnowledgeBase.tsx:411",className:"text-xs text-muted-foreground mt-0.5 line-clamp-2",children:H.descriptionI18n[le]},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/KnowledgeBase.tsx",lineNumber:411,columnNumber:41},this)]},le,!0,{fileName:"/home/ubuntu/nac-admin/client/src/pages/KnowledgeBase.tsx",lineNumber:404,columnNumber:37},this))},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/KnowledgeBase.tsx",lineNumber:402,columnNumber:33},this)},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/KnowledgeBase.tsx",lineNumber:401,columnNumber:31},this)},`${Y}-i18n`,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/KnowledgeBase.tsx",lineNumber:400,columnNumber:29},this)]},void 0,!0,{fileName:"/home/ubuntu/nac-admin/client/src/pages/KnowledgeBase.tsx",lineNumber:325,columnNumber:25},this)})},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/KnowledgeBase.tsx",lineNumber:317,columnNumber:19},this)]},void 0,!0,{fileName:"/home/ubuntu/nac-admin/client/src/pages/KnowledgeBase.tsx",lineNumber:306,columnNumber:17},this)},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/KnowledgeBase.tsx",lineNumber:305,columnNumber:15},this)},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/KnowledgeBase.tsx",lineNumber:294,columnNumber:11},this)},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/KnowledgeBase.tsx",lineNumber:293,columnNumber:9},this),te>1&&b.jsxDEV("div",{"data-loc":"client/src/pages/KnowledgeBase.tsx:431",className:"flex items-center justify-center gap-2",children:[b.jsxDEV(rt,{"data-loc":"client/src/pages/KnowledgeBase.tsx:432",variant:"outline",size:"sm",onClick:()=>S(H=>Math.max(1,H-1)),disabled:x===1,className:"border-border/50 h-8",children:e("common.prevPage","上一页")},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/KnowledgeBase.tsx",lineNumber:432,columnNumber:13},this),b.jsxDEV("span",{"data-loc":"client/src/pages/KnowledgeBase.tsx:433",className:"text-xs text-muted-foreground",children:[x," / ",te]},void 0,!0,{fileName:"/home/ubuntu/nac-admin/client/src/pages/KnowledgeBase.tsx",lineNumber:433,columnNumber:13},this),b.jsxDEV(rt,{"data-loc":"client/src/pages/KnowledgeBase.tsx:434",variant:"outline",size:"sm",onClick:()=>S(H=>Math.min(te,H+1)),disabled:x===te,className:"border-border/50 h-8",children:e("common.nextPage","下一页")},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/KnowledgeBase.tsx",lineNumber:434,columnNumber:13},this)]},void 0,!0,{fileName:"/home/ubuntu/nac-admin/client/src/pages/KnowledgeBase.tsx",lineNumber:431,columnNumber:11},this)]},void 0,!0,{fileName:"/home/ubuntu/nac-admin/client/src/pages/KnowledgeBase.tsx",lineNumber:117,columnNumber:7},this)},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/KnowledgeBase.tsx",lineNumber:116,columnNumber:5},this)}const oAe=["CN","HK","US","EU","SG","AE","ALL"],sAe=["regulation","trade_rule","credit","asset_document","court_judgment","tax_rule"],lAe=["realtime","hourly","daily","weekly","monthly"];function cAe(){const[e,t]=_.useState(!1),[n,r]=_.useState({name:"",jurisdiction:"",type:"external",source:"",category:"",frequency:"daily"}),[o,s]=_.useState(null),c=et.useUtils(),{data:u,isLoading:f,refetch:m}=et.crawler.list.useQuery(),{data:g}=et.crawler.logs.useQuery({crawlerId:o||void 0,limit:30}),h=et.crawler.trigger.useMutation({onSuccess:N=>{gt.success(N.message),c.crawler.list.invalidate(),c.crawler.logs.invalidate()},onError:N=>gt.error(N.message)}),y=et.crawler.create.useMutation({onSuccess:()=>{gt.success("采集器创建成功"),t(!1),c.crawler.list.invalidate(),r({name:"",jurisdiction:"",type:"external",source:"",category:"",frequency:"daily"})},onError:N=>gt.error(N.message)}),x=u||[],S=g||[];return b.jsxDEV("div",{"data-loc":"client/src/pages/Crawlers.tsx:40",className:"p-6 space-y-5",children:[b.jsxDEV("div",{"data-loc":"client/src/pages/Crawlers.tsx:41",className:"flex items-center justify-between",children:[b.jsxDEV("div",{"data-loc":"client/src/pages/Crawlers.tsx:42",children:[b.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),b.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),b.jsxDEV("div",{"data-loc":"client/src/pages/Crawlers.tsx:46",className:"flex items-center gap-2",children:[b.jsxDEV(rt,{"data-loc":"client/src/pages/Crawlers.tsx:47",variant:"outline",size:"sm",onClick:()=>m(),className:"border-border/50",children:[b.jsxDEV(eu,{"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),b.jsxDEV($c,{"data-loc":"client/src/pages/Crawlers.tsx:50",open:e,onOpenChange:t,children:[b.jsxDEV(Gh,{"data-loc":"client/src/pages/Crawlers.tsx:51",asChild:!0,children:b.jsxDEV(rt,{"data-loc":"client/src/pages/Crawlers.tsx:52",size:"sm",className:"nac-gradient text-white",children:[b.jsxDEV($p,{"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),b.jsxDEV(Bc,{"data-loc":"client/src/pages/Crawlers.tsx:54",className:"bg-card border-border/50 max-w-lg",children:[b.jsxDEV(zc,{"data-loc":"client/src/pages/Crawlers.tsx:55",children:b.jsxDEV(Uc,{"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),b.jsxDEV("div",{"data-loc":"client/src/pages/Crawlers.tsx:56",className:"space-y-4 mt-2",children:[b.jsxDEV("div",{"data-loc":"client/src/pages/Crawlers.tsx:57",className:"space-y-1.5",children:[b.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),b.jsxDEV(Vn,{"data-loc":"client/src/pages/Crawlers.tsx:59",value:n.name,onChange:N=>r(w=>({...w,name:N.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),b.jsxDEV("div",{"data-loc":"client/src/pages/Crawlers.tsx:61",className:"grid grid-cols-2 gap-3",children:[b.jsxDEV("div",{"data-loc":"client/src/pages/Crawlers.tsx:62",className:"space-y-1.5",children:[b.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),b.jsxDEV(mr,{"data-loc":"client/src/pages/Crawlers.tsx:64",value:n.jurisdiction,onValueChange:N=>r(w=>({...w,jurisdiction:N})),children:[b.jsxDEV(pr,{"data-loc":"client/src/pages/Crawlers.tsx:65",className:"bg-input border-border/50 h-9",children:b.jsxDEV(hr,{"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),b.jsxDEV(gr,{"data-loc":"client/src/pages/Crawlers.tsx:66",className:"bg-card border-border/50",children:oAe.map(N=>b.jsxDEV(_t,{"data-loc":"client/src/pages/Crawlers.tsx:67",value:N,children:N},N,!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),b.jsxDEV("div",{"data-loc":"client/src/pages/Crawlers.tsx:71",className:"space-y-1.5",children:[b.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),b.jsxDEV(mr,{"data-loc":"client/src/pages/Crawlers.tsx:73",value:n.type,onValueChange:N=>r(w=>({...w,type:N})),children:[b.jsxDEV(pr,{"data-loc":"client/src/pages/Crawlers.tsx:74",className:"bg-input border-border/50 h-9",children:b.jsxDEV(hr,{"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),b.jsxDEV(gr,{"data-loc":"client/src/pages/Crawlers.tsx:75",className:"bg-card border-border/50",children:[b.jsxDEV(_t,{"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),b.jsxDEV(_t,{"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),b.jsxDEV("div",{"data-loc":"client/src/pages/Crawlers.tsx:82",className:"space-y-1.5",children:[b.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),b.jsxDEV(Vn,{"data-loc":"client/src/pages/Crawlers.tsx:84",value:n.source,onChange:N=>r(w=>({...w,source:N.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),b.jsxDEV("div",{"data-loc":"client/src/pages/Crawlers.tsx:86",className:"grid grid-cols-2 gap-3",children:[b.jsxDEV("div",{"data-loc":"client/src/pages/Crawlers.tsx:87",className:"space-y-1.5",children:[b.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),b.jsxDEV(mr,{"data-loc":"client/src/pages/Crawlers.tsx:89",value:n.category,onValueChange:N=>r(w=>({...w,category:N})),children:[b.jsxDEV(pr,{"data-loc":"client/src/pages/Crawlers.tsx:90",className:"bg-input border-border/50 h-9",children:b.jsxDEV(hr,{"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),b.jsxDEV(gr,{"data-loc":"client/src/pages/Crawlers.tsx:91",className:"bg-card border-border/50",children:sAe.map(N=>b.jsxDEV(_t,{"data-loc":"client/src/pages/Crawlers.tsx:92",value:N,children:N},N,!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),b.jsxDEV("div",{"data-loc":"client/src/pages/Crawlers.tsx:96",className:"space-y-1.5",children:[b.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),b.jsxDEV(mr,{"data-loc":"client/src/pages/Crawlers.tsx:98",value:n.frequency,onValueChange:N=>r(w=>({...w,frequency:N})),children:[b.jsxDEV(pr,{"data-loc":"client/src/pages/Crawlers.tsx:99",className:"bg-input border-border/50 h-9",children:b.jsxDEV(hr,{"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),b.jsxDEV(gr,{"data-loc":"client/src/pages/Crawlers.tsx:100",className:"bg-card border-border/50",children:lAe.map(N=>b.jsxDEV(_t,{"data-loc":"client/src/pages/Crawlers.tsx:101",value:N,children:N},N,!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),b.jsxDEV(rt,{"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),b.jsxDEV("div",{"data-loc":"client/src/pages/Crawlers.tsx:115",className:"grid grid-cols-1 lg:grid-cols-3 gap-5",children:[b.jsxDEV("div",{"data-loc":"client/src/pages/Crawlers.tsx:117",className:"lg:col-span-2 space-y-3",children:f?b.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):x.map(N=>b.jsxDEV(At,{"data-loc":"client/src/pages/Crawlers.tsx:121",className:`border-border/50 cursor-pointer transition-all hover:border-primary/30 ${o===N._id?.toString()?"border-primary/50 bg-primary/5":""}`,onClick:()=>s(N._id?.toString()),children:b.jsxDEV(Ot,{"data-loc":"client/src/pages/Crawlers.tsx:126",className:"p-4",children:b.jsxDEV("div",{"data-loc":"client/src/pages/Crawlers.tsx:127",className:"flex items-start justify-between",children:[b.jsxDEV("div",{"data-loc":"client/src/pages/Crawlers.tsx:128",className:"flex-1 min-w-0",children:[b.jsxDEV("div",{"data-loc":"client/src/pages/Crawlers.tsx:129",className:"flex items-center gap-2 mb-1",children:[N.type==="internal"?b.jsxDEV(oie,{"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):b.jsxDEV(sy,{"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),b.jsxDEV("p",{"data-loc":"client/src/pages/Crawlers.tsx:131",className:"font-medium text-sm truncate",children:N.name},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/Crawlers.tsx",lineNumber:131,columnNumber:23},this),b.jsxDEV(za,{"data-loc":"client/src/pages/Crawlers.tsx:132",variant:"outline",className:"text-xs border-border/50 shrink-0",children:N.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),b.jsxDEV("p",{"data-loc":"client/src/pages/Crawlers.tsx:134",className:"text-xs text-muted-foreground truncate",children:N.source},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/Crawlers.tsx",lineNumber:134,columnNumber:21},this),b.jsxDEV("div",{"data-loc":"client/src/pages/Crawlers.tsx:135",className:"flex items-center gap-3 mt-2 text-xs text-muted-foreground",children:[b.jsxDEV("span",{"data-loc":"client/src/pages/Crawlers.tsx:136",className:"flex items-center gap-1",children:[b.jsxDEV(vf,{"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),N.frequency]},void 0,!0,{fileName:"/home/ubuntu/nac-admin/client/src/pages/Crawlers.tsx",lineNumber:136,columnNumber:23},this),b.jsxDEV("span",{"data-loc":"client/src/pages/Crawlers.tsx:137",className:"flex items-center gap-1",children:[b.jsxDEV(mi,{"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),N.successRate,"%"]},void 0,!0,{fileName:"/home/ubuntu/nac-admin/client/src/pages/Crawlers.tsx",lineNumber:137,columnNumber:23},this),b.jsxDEV("span",{"data-loc":"client/src/pages/Crawlers.tsx:138",children:["采集 ",N.totalCollected," 条"]},void 0,!0,{fileName:"/home/ubuntu/nac-admin/client/src/pages/Crawlers.tsx",lineNumber:138,columnNumber:23},this),N.lastRun&&b.jsxDEV("span",{"data-loc":"client/src/pages/Crawlers.tsx:139",children:["最后运行: ",new Date(N.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),b.jsxDEV("div",{"data-loc":"client/src/pages/Crawlers.tsx:142",className:"flex items-center gap-2 ml-3 shrink-0",children:[b.jsxDEV("span",{"data-loc":"client/src/pages/Crawlers.tsx:143",className:`text-xs px-2 py-0.5 rounded-full font-medium status-${N.status}`,children:N.status==="active"?"运行中":"已停止"},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/Crawlers.tsx",lineNumber:143,columnNumber:21},this),b.jsxDEV(rt,{"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:w=>{w.stopPropagation(),h.mutate({crawlerId:N._id.toString()})},disabled:h.isPending,children:[b.jsxDEV(DC,{"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)},N._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),b.jsxDEV(At,{"data-loc":"client/src/pages/Crawlers.tsx:162",className:"border-border/50",children:[b.jsxDEV(ha,{"data-loc":"client/src/pages/Crawlers.tsx:163",className:"pb-2",children:b.jsxDEV(pa,{"data-loc":"client/src/pages/Crawlers.tsx:164",className:"text-sm font-semibold flex items-center gap-2",children:[b.jsxDEV(sy,{"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),b.jsxDEV(Ot,{"data-loc":"client/src/pages/Crawlers.tsx:169",children:S.length===0?b.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):b.jsxDEV("div",{"data-loc":"client/src/pages/Crawlers.tsx:175",className:"space-y-2 max-h-[500px] overflow-y-auto",children:S.map((N,w)=>b.jsxDEV("div",{"data-loc":"client/src/pages/Crawlers.tsx:177",className:"border-b border-border/20 pb-2 last:border-0",children:[b.jsxDEV("div",{"data-loc":"client/src/pages/Crawlers.tsx:178",className:"flex items-center gap-1.5 mb-0.5",children:[N.status==="triggered"?b.jsxDEV(DC,{"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):N.status==="success"?b.jsxDEV(mi,{"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):b.jsxDEV(Kh,{"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),b.jsxDEV("span",{"data-loc":"client/src/pages/Crawlers.tsx:182",className:"text-xs font-medium",children:N.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),b.jsxDEV("p",{"data-loc":"client/src/pages/Crawlers.tsx:184",className:"text-xs text-muted-foreground",children:N.message},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/Crawlers.tsx",lineNumber:184,columnNumber:21},this),b.jsxDEV("p",{"data-loc":"client/src/pages/Crawlers.tsx:185",className:"text-xs text-muted-foreground/50 mt-0.5",children:new Date(N.timestamp).toLocaleString("zh-CN")},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/Crawlers.tsx",lineNumber:185,columnNumber:21},this)]},w,!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 uAe(){const[e,t]=_.useState(""),[n,r]=_.useState(""),[o,s]=_.useState(1),[c,u]=_.useState(!1),[f,m]=_.useState(null),[g,h]=_.useState(""),y=et.useUtils(),{data:x,isLoading:S,refetch:N}=et.approvalCase.list.useQuery({riskLevel:e||void 0,status:n||void 0,page:o,pageSize:15}),w=et.approvalCase.review.useMutation({onSuccess:()=>{gt.success("审核意见已提交"),u(!1),h(""),m(null),y.approvalCase.list.invalidate()},onError:T=>gt.error(T.message)}),D=x?.items||[],C=x?.total||0,j=Math.ceil(C/15),P=T=>{const M={low:{label:"低风险",cls:"risk-low"},medium:{label:"中风险",cls:"risk-medium"},high:{label:"高风险",cls:"risk-high"}}[T]||{label:T,cls:"status-inactive"};return b.jsxDEV("span",{"data-loc":"client/src/pages/ApprovalCases.tsx:50",className:`text-xs px-2 py-0.5 rounded-full font-medium ${M.cls}`,children:M.label},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/ApprovalCases.tsx",lineNumber:50,columnNumber:12},this)},A=T=>{const M={approved:{label:"已通过",cls:"status-active"},rejected:{label:"已拒绝",cls:"status-error"},pending_human:{label:"待人工审核",cls:"status-pending"},auto_approved:{label:"自动通过",cls:"status-active"}}[T]||{label:T,cls:"status-inactive"};return b.jsxDEV("span",{"data-loc":"client/src/pages/ApprovalCases.tsx:61",className:`text-xs px-2 py-0.5 rounded-full font-medium ${M.cls}`,children:M.label},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/ApprovalCases.tsx",lineNumber:61,columnNumber:12},this)};return b.jsxDEV("div",{"data-loc":"client/src/pages/ApprovalCases.tsx:65",className:"p-6 space-y-5",children:[b.jsxDEV("div",{"data-loc":"client/src/pages/ApprovalCases.tsx:66",className:"flex items-center justify-between",children:[b.jsxDEV("div",{"data-loc":"client/src/pages/ApprovalCases.tsx:67",children:[b.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),b.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),b.jsxDEV(rt,{"data-loc":"client/src/pages/ApprovalCases.tsx:71",variant:"outline",size:"sm",onClick:()=>N(),className:"border-border/50",children:[b.jsxDEV(eu,{"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),b.jsxDEV("div",{"data-loc":"client/src/pages/ApprovalCases.tsx:77",className:"grid grid-cols-2 lg:grid-cols-4 gap-3",children:[{label:"待人工审核",value:x?.pendingCount??0,icon:vf,color:"text-amber-400"},{label:"今日通过",value:x?.todayApproved??0,icon:mi,color:"text-emerald-400"},{label:"今日拒绝",value:x?.todayRejected??0,icon:Kh,color:"text-red-400"},{label:"高风险案例",value:x?.highRiskCount??0,icon:Lc,color:"text-red-400"}].map(T=>b.jsxDEV(At,{"data-loc":"client/src/pages/ApprovalCases.tsx:84",className:"border-border/50",children:b.jsxDEV(Ot,{"data-loc":"client/src/pages/ApprovalCases.tsx:85",className:"p-4 flex items-center gap-3",children:[b.jsxDEV(T.icon,{"data-loc":"client/src/pages/ApprovalCases.tsx:86",className:`w-8 h-8 ${T.color} shrink-0`},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/ApprovalCases.tsx",lineNumber:86,columnNumber:15},this),b.jsxDEV("div",{"data-loc":"client/src/pages/ApprovalCases.tsx:87",children:[b.jsxDEV("p",{"data-loc":"client/src/pages/ApprovalCases.tsx:88",className:`text-2xl font-bold ${T.color}`,children:T.value},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/ApprovalCases.tsx",lineNumber:88,columnNumber:17},this),b.jsxDEV("p",{"data-loc":"client/src/pages/ApprovalCases.tsx:89",className:"text-xs text-muted-foreground",children:T.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)},T.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),b.jsxDEV(At,{"data-loc":"client/src/pages/ApprovalCases.tsx:97",className:"border-border/50",children:b.jsxDEV(Ot,{"data-loc":"client/src/pages/ApprovalCases.tsx:98",className:"p-4",children:b.jsxDEV("div",{"data-loc":"client/src/pages/ApprovalCases.tsx:99",className:"flex flex-wrap items-center gap-3",children:[b.jsxDEV(mr,{"data-loc":"client/src/pages/ApprovalCases.tsx:100",value:e,onValueChange:T=>{t(T==="ALL_FILTER"?"":T),s(1)},children:[b.jsxDEV(pr,{"data-loc":"client/src/pages/ApprovalCases.tsx:101",className:"w-32 bg-input border-border/50 h-8 text-sm",children:b.jsxDEV(hr,{"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),b.jsxDEV(gr,{"data-loc":"client/src/pages/ApprovalCases.tsx:102",className:"bg-card border-border/50",children:[b.jsxDEV(_t,{"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),b.jsxDEV(_t,{"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),b.jsxDEV(_t,{"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),b.jsxDEV(_t,{"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),b.jsxDEV(mr,{"data-loc":"client/src/pages/ApprovalCases.tsx:109",value:n,onValueChange:T=>{r(T==="ALL_FILTER"?"":T),s(1)},children:[b.jsxDEV(pr,{"data-loc":"client/src/pages/ApprovalCases.tsx:110",className:"w-36 bg-input border-border/50 h-8 text-sm",children:b.jsxDEV(hr,{"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),b.jsxDEV(gr,{"data-loc":"client/src/pages/ApprovalCases.tsx:111",className:"bg-card border-border/50",children:[b.jsxDEV(_t,{"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),b.jsxDEV(_t,{"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),b.jsxDEV(_t,{"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),b.jsxDEV(_t,{"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),b.jsxDEV(_t,{"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),b.jsxDEV("span",{"data-loc":"client/src/pages/ApprovalCases.tsx:119",className:"text-xs text-muted-foreground ml-auto",children:["共 ",C," 个案例"]},void 0,!0,{fileName:"/home/ubuntu/nac-admin/client/src/pages/ApprovalCases.tsx",lineNumber:119,columnNumber:13},this)]},void 0,!0,{fileName:"/home/ubuntu/nac-admin/client/src/pages/ApprovalCases.tsx",lineNumber:99,columnNumber:11},this)},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/ApprovalCases.tsx",lineNumber:98,columnNumber:9},this)},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/ApprovalCases.tsx",lineNumber:97,columnNumber:7},this),b.jsxDEV(At,{"data-loc":"client/src/pages/ApprovalCases.tsx:125",className:"border-border/50",children:b.jsxDEV(Ot,{"data-loc":"client/src/pages/ApprovalCases.tsx:126",className:"p-0",children:S?b.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):D.length===0?b.jsxDEV("div",{"data-loc":"client/src/pages/ApprovalCases.tsx:130",className:"p-8 text-center",children:[b.jsxDEV(Hz,{"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),b.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):b.jsxDEV("div",{"data-loc":"client/src/pages/ApprovalCases.tsx:135",className:"overflow-x-auto",children:b.jsxDEV("table",{"data-loc":"client/src/pages/ApprovalCases.tsx:136",className:"w-full text-sm",children:[b.jsxDEV("thead",{"data-loc":"client/src/pages/ApprovalCases.tsx:137",children:b.jsxDEV("tr",{"data-loc":"client/src/pages/ApprovalCases.tsx:138",className:"border-b border-border/30",children:[b.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),b.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),b.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),b.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),b.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),b.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),b.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),b.jsxDEV("tbody",{"data-loc":"client/src/pages/ApprovalCases.tsx:148",children:D.map(T=>b.jsxDEV("tr",{"data-loc":"client/src/pages/ApprovalCases.tsx:150",className:"border-b border-border/20 hover:bg-accent/30 transition-colors",children:[b.jsxDEV("td",{"data-loc":"client/src/pages/ApprovalCases.tsx:151",className:"p-3",children:[b.jsxDEV("p",{"data-loc":"client/src/pages/ApprovalCases.tsx:152",className:"font-medium text-sm",children:T.assetName||T.assetId},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/ApprovalCases.tsx",lineNumber:152,columnNumber:25},this),b.jsxDEV("p",{"data-loc":"client/src/pages/ApprovalCases.tsx:153",className:"text-xs text-muted-foreground mt-0.5 line-clamp-1",children:T.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),b.jsxDEV("td",{"data-loc":"client/src/pages/ApprovalCases.tsx:155",className:"p-3",children:b.jsxDEV("div",{"data-loc":"client/src/pages/ApprovalCases.tsx:156",className:"flex flex-col gap-1",children:[b.jsxDEV(za,{"data-loc":"client/src/pages/ApprovalCases.tsx:157",variant:"outline",className:"text-xs border-primary/30 text-primary w-fit",children:T.jurisdiction},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/ApprovalCases.tsx",lineNumber:157,columnNumber:27},this),b.jsxDEV("span",{"data-loc":"client/src/pages/ApprovalCases.tsx:158",className:"text-xs text-muted-foreground",children:T.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),b.jsxDEV("td",{"data-loc":"client/src/pages/ApprovalCases.tsx:161",className:"p-3",children:P(T.riskLevel)},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/ApprovalCases.tsx",lineNumber:161,columnNumber:23},this),b.jsxDEV("td",{"data-loc":"client/src/pages/ApprovalCases.tsx:162",className:"p-3",children:b.jsxDEV("div",{"data-loc":"client/src/pages/ApprovalCases.tsx:163",className:"flex items-center gap-1.5",children:[b.jsxDEV("div",{"data-loc":"client/src/pages/ApprovalCases.tsx:164",className:"w-16 h-1.5 rounded-full bg-muted overflow-hidden",children:b.jsxDEV("div",{"data-loc":"client/src/pages/ApprovalCases.tsx:165",className:"h-full rounded-full bg-primary",style:{width:`${T.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),b.jsxDEV("span",{"data-loc":"client/src/pages/ApprovalCases.tsx:167",className:"text-xs font-medium",children:T.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),b.jsxDEV("td",{"data-loc":"client/src/pages/ApprovalCases.tsx:170",className:"p-3",children:A(T.status)},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/ApprovalCases.tsx",lineNumber:170,columnNumber:23},this),b.jsxDEV("td",{"data-loc":"client/src/pages/ApprovalCases.tsx:171",className:"p-3 text-xs text-muted-foreground",children:T.createdAt?new Date(T.createdAt).toLocaleDateString("zh-CN"):"-"},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/ApprovalCases.tsx",lineNumber:171,columnNumber:23},this),b.jsxDEV("td",{"data-loc":"client/src/pages/ApprovalCases.tsx:174",className:"p-3",children:b.jsxDEV("div",{"data-loc":"client/src/pages/ApprovalCases.tsx:175",className:"flex items-center justify-end gap-1",children:b.jsxDEV(rt,{"data-loc":"client/src/pages/ApprovalCases.tsx:176",variant:"ghost",size:"sm",className:"h-7 px-2 text-xs",onClick:()=>{m(T),u(!0)},children:[b.jsxDEV(Fae,{"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)]},T._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),j>1&&b.jsxDEV("div",{"data-loc":"client/src/pages/ApprovalCases.tsx:196",className:"flex items-center justify-center gap-2",children:[b.jsxDEV(rt,{"data-loc":"client/src/pages/ApprovalCases.tsx:197",variant:"outline",size:"sm",onClick:()=>s(T=>Math.max(1,T-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),b.jsxDEV("span",{"data-loc":"client/src/pages/ApprovalCases.tsx:198",className:"text-xs text-muted-foreground",children:[o," / ",j]},void 0,!0,{fileName:"/home/ubuntu/nac-admin/client/src/pages/ApprovalCases.tsx",lineNumber:198,columnNumber:11},this),b.jsxDEV(rt,{"data-loc":"client/src/pages/ApprovalCases.tsx:199",variant:"outline",size:"sm",onClick:()=>s(T=>Math.min(j,T+1)),disabled:o===j,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),b.jsxDEV($c,{"data-loc":"client/src/pages/ApprovalCases.tsx:204",open:c,onOpenChange:u,children:b.jsxDEV(Bc,{"data-loc":"client/src/pages/ApprovalCases.tsx:205",className:"bg-card border-border/50 max-w-2xl",children:[b.jsxDEV(zc,{"data-loc":"client/src/pages/ApprovalCases.tsx:206",children:b.jsxDEV(Uc,{"data-loc":"client/src/pages/ApprovalCases.tsx:207",className:"flex items-center gap-2",children:[b.jsxDEV(bl,{"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&&b.jsxDEV("div",{"data-loc":"client/src/pages/ApprovalCases.tsx:213",className:"space-y-4 mt-2",children:[b.jsxDEV("div",{"data-loc":"client/src/pages/ApprovalCases.tsx:214",className:"grid grid-cols-2 gap-3 text-sm",children:[b.jsxDEV("div",{"data-loc":"client/src/pages/ApprovalCases.tsx:215",className:"bg-muted/30 rounded-lg p-3 space-y-1",children:[b.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),b.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),b.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),b.jsxDEV("div",{"data-loc":"client/src/pages/ApprovalCases.tsx:220",className:"bg-muted/30 rounded-lg p-3 space-y-1",children:[b.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),b.jsxDEV("div",{"data-loc":"client/src/pages/ApprovalCases.tsx:222",className:"flex items-center gap-2",children:[P(f.riskLevel),b.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),b.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&&b.jsxDEV("div",{"data-loc":"client/src/pages/ApprovalCases.tsx:230",className:"bg-muted/20 rounded-lg p-3",children:[b.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),b.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&&b.jsxDEV("div",{"data-loc":"client/src/pages/ApprovalCases.tsx:234",className:"mt-2",children:[b.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((T,R)=>b.jsxDEV("p",{"data-loc":"client/src/pages/ApprovalCases.tsx:237",className:"text-xs text-muted-foreground",children:["• ",T]},R,!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),b.jsxDEV("div",{"data-loc":"client/src/pages/ApprovalCases.tsx:243",className:"space-y-1.5",children:[b.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),b.jsxDEV(uf,{"data-loc":"client/src/pages/ApprovalCases.tsx:245",value:g,onChange:T=>h(T.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),b.jsxDEV("div",{"data-loc":"client/src/pages/ApprovalCases.tsx:253",className:"flex gap-3",children:[b.jsxDEV(rt,{"data-loc":"client/src/pages/ApprovalCases.tsx:254",className:"flex-1 bg-emerald-600 hover:bg-emerald-700 text-white",onClick:()=>w.mutate({id:f._id.toString(),decision:"approved",comment:g}),disabled:w.isPending,children:[b.jsxDEV(mi,{"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),b.jsxDEV(rt,{"data-loc":"client/src/pages/ApprovalCases.tsx:261",className:"flex-1 bg-red-600 hover:bg-red-700 text-white",onClick:()=>w.mutate({id:f._id.toString(),decision:"rejected",comment:g}),disabled:w.isPending,children:[b.jsxDEV(Kh,{"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 KD=["jurisdiction","asset_type","compliance_requirement","risk_indicator"],GD={jurisdiction:"司法辖区",asset_type:"资产类型",compliance_requirement:"合规要求",risk_indicator:"风险指标"};function dAe(){const[e,t]=_.useState(!1),[n,r]=_.useState(!1),[o,s]=_.useState({keyword:"",tags:"",dimension:"",description:""}),[c,u]=_.useState({documentId:"",originalTags:"",correctedTags:"",reason:""}),f=et.useUtils(),{data:m,isLoading:g,refetch:h}=et.tagEngine.listRules.useQuery(),y=et.tagEngine.createRule.useMutation({onSuccess:()=>{gt.success("标签规则创建成功"),t(!1),f.tagEngine.listRules.invalidate(),s({keyword:"",tags:"",dimension:"",description:""})},onError:C=>gt.error(C.message)}),x=et.tagEngine.correctTag.useMutation({onSuccess:()=>{gt.success("标签修正已提交,将作为训练数据"),r(!1),f.tagEngine.listRules.invalidate(),u({documentId:"",originalTags:"",correctedTags:"",reason:""})},onError:C=>gt.error(C.message)}),S=m||[],N=S.filter(C=>C.type==="rule"),w=S.filter(C=>C.type==="correction"),D={};return KD.forEach(C=>{D[C]=N.filter(j=>j.dimension===C).length}),b.jsxDEV("div",{"data-loc":"client/src/pages/TagEngine.tsx:58",className:"p-6 space-y-5",children:[b.jsxDEV("div",{"data-loc":"client/src/pages/TagEngine.tsx:59",className:"flex items-center justify-between",children:[b.jsxDEV("div",{"data-loc":"client/src/pages/TagEngine.tsx:60",children:[b.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),b.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),b.jsxDEV("div",{"data-loc":"client/src/pages/TagEngine.tsx:64",className:"flex items-center gap-2",children:[b.jsxDEV(rt,{"data-loc":"client/src/pages/TagEngine.tsx:65",variant:"outline",size:"sm",onClick:()=>h(),className:"border-border/50",children:[b.jsxDEV(eu,{"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),b.jsxDEV($c,{"data-loc":"client/src/pages/TagEngine.tsx:69",open:n,onOpenChange:r,children:[b.jsxDEV(Gh,{"data-loc":"client/src/pages/TagEngine.tsx:70",asChild:!0,children:b.jsxDEV(rt,{"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:[b.jsxDEV(Fz,{"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),b.jsxDEV(Bc,{"data-loc":"client/src/pages/TagEngine.tsx:75",className:"bg-card border-border/50 max-w-lg",children:[b.jsxDEV(zc,{"data-loc":"client/src/pages/TagEngine.tsx:76",children:b.jsxDEV(Uc,{"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),b.jsxDEV("div",{"data-loc":"client/src/pages/TagEngine.tsx:77",className:"space-y-4 mt-2",children:[b.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),b.jsxDEV("div",{"data-loc":"client/src/pages/TagEngine.tsx:81",className:"space-y-1.5",children:[b.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),b.jsxDEV(Vn,{"data-loc":"client/src/pages/TagEngine.tsx:83",value:c.documentId,onChange:C=>u(j=>({...j,documentId:C.target.value})),className:"bg-input border-border/50 h-9",placeholder:"文档或资产的唯一标识符"},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/TagEngine.tsx",lineNumber:83,columnNumber:19},this)]},void 0,!0,{fileName:"/home/ubuntu/nac-admin/client/src/pages/TagEngine.tsx",lineNumber:81,columnNumber:17},this),b.jsxDEV("div",{"data-loc":"client/src/pages/TagEngine.tsx:85",className:"space-y-1.5",children:[b.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),b.jsxDEV(Vn,{"data-loc":"client/src/pages/TagEngine.tsx:87",value:c.originalTags,onChange:C=>u(j=>({...j,originalTags:C.target.value})),className:"bg-input border-border/50 h-9",placeholder:"CN, RealEstate, ..."},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/TagEngine.tsx",lineNumber:87,columnNumber:19},this)]},void 0,!0,{fileName:"/home/ubuntu/nac-admin/client/src/pages/TagEngine.tsx",lineNumber:85,columnNumber:17},this),b.jsxDEV("div",{"data-loc":"client/src/pages/TagEngine.tsx:89",className:"space-y-1.5",children:[b.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),b.jsxDEV(Vn,{"data-loc":"client/src/pages/TagEngine.tsx:91",value:c.correctedTags,onChange:C=>u(j=>({...j,correctedTags:C.target.value})),className:"bg-input border-border/50 h-9",placeholder:"CN.Shanghai, RealEstate.Commercial, ..."},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/TagEngine.tsx",lineNumber:91,columnNumber:19},this)]},void 0,!0,{fileName:"/home/ubuntu/nac-admin/client/src/pages/TagEngine.tsx",lineNumber:89,columnNumber:17},this),b.jsxDEV("div",{"data-loc":"client/src/pages/TagEngine.tsx:93",className:"space-y-1.5",children:[b.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),b.jsxDEV(uf,{"data-loc":"client/src/pages/TagEngine.tsx:95",value:c.reason,onChange:C=>u(j=>({...j,reason:C.target.value})),className:"bg-input border-border/50 resize-none",rows:2,placeholder:"说明为什么AI打标有误..."},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/TagEngine.tsx",lineNumber:95,columnNumber:19},this)]},void 0,!0,{fileName:"/home/ubuntu/nac-admin/client/src/pages/TagEngine.tsx",lineNumber:93,columnNumber:17},this),b.jsxDEV(rt,{"data-loc":"client/src/pages/TagEngine.tsx:97",className:"w-full bg-amber-600 hover:bg-amber-700 text-white",onClick:()=>x.mutate({documentId:c.documentId,originalTags:c.originalTags.split(",").map(C=>C.trim()).filter(Boolean),correctedTags:c.correctedTags.split(",").map(C=>C.trim()).filter(Boolean),reason:c.reason}),disabled:x.isPending||!c.documentId||!c.correctedTags,children:x.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),b.jsxDEV($c,{"data-loc":"client/src/pages/TagEngine.tsx:113",open:e,onOpenChange:t,children:[b.jsxDEV(Gh,{"data-loc":"client/src/pages/TagEngine.tsx:114",asChild:!0,children:b.jsxDEV(rt,{"data-loc":"client/src/pages/TagEngine.tsx:115",size:"sm",className:"nac-gradient text-white",children:[b.jsxDEV($p,{"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),b.jsxDEV(Bc,{"data-loc":"client/src/pages/TagEngine.tsx:117",className:"bg-card border-border/50 max-w-lg",children:[b.jsxDEV(zc,{"data-loc":"client/src/pages/TagEngine.tsx:118",children:b.jsxDEV(Uc,{"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),b.jsxDEV("div",{"data-loc":"client/src/pages/TagEngine.tsx:119",className:"space-y-4 mt-2",children:[b.jsxDEV("div",{"data-loc":"client/src/pages/TagEngine.tsx:120",className:"grid grid-cols-2 gap-3",children:[b.jsxDEV("div",{"data-loc":"client/src/pages/TagEngine.tsx:121",className:"space-y-1.5",children:[b.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),b.jsxDEV(Vn,{"data-loc":"client/src/pages/TagEngine.tsx:123",value:o.keyword,onChange:C=>s(j=>({...j,keyword:C.target.value})),className:"bg-input border-border/50 h-9",placeholder:"例:上海市"},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/TagEngine.tsx",lineNumber:123,columnNumber:21},this)]},void 0,!0,{fileName:"/home/ubuntu/nac-admin/client/src/pages/TagEngine.tsx",lineNumber:121,columnNumber:19},this),b.jsxDEV("div",{"data-loc":"client/src/pages/TagEngine.tsx:125",className:"space-y-1.5",children:[b.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),b.jsxDEV(mr,{"data-loc":"client/src/pages/TagEngine.tsx:127",value:o.dimension,onValueChange:C=>s(j=>({...j,dimension:C})),children:[b.jsxDEV(pr,{"data-loc":"client/src/pages/TagEngine.tsx:128",className:"bg-input border-border/50 h-9",children:b.jsxDEV(hr,{"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),b.jsxDEV(gr,{"data-loc":"client/src/pages/TagEngine.tsx:129",className:"bg-card border-border/50",children:KD.map(C=>b.jsxDEV(_t,{"data-loc":"client/src/pages/TagEngine.tsx:130",value:C,children:GD[C]},C,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/TagEngine.tsx",lineNumber:130,columnNumber:46},this))},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/TagEngine.tsx",lineNumber:129,columnNumber:23},this)]},void 0,!0,{fileName:"/home/ubuntu/nac-admin/client/src/pages/TagEngine.tsx",lineNumber:127,columnNumber:21},this)]},void 0,!0,{fileName:"/home/ubuntu/nac-admin/client/src/pages/TagEngine.tsx",lineNumber:125,columnNumber:19},this)]},void 0,!0,{fileName:"/home/ubuntu/nac-admin/client/src/pages/TagEngine.tsx",lineNumber:120,columnNumber:17},this),b.jsxDEV("div",{"data-loc":"client/src/pages/TagEngine.tsx:135",className:"space-y-1.5",children:[b.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),b.jsxDEV(Vn,{"data-loc":"client/src/pages/TagEngine.tsx:137",value:o.tags,onChange:C=>s(j=>({...j,tags:C.target.value})),className:"bg-input border-border/50 h-9",placeholder:"CN, CN.Shanghai"},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/TagEngine.tsx",lineNumber:137,columnNumber:19},this)]},void 0,!0,{fileName:"/home/ubuntu/nac-admin/client/src/pages/TagEngine.tsx",lineNumber:135,columnNumber:17},this),b.jsxDEV("div",{"data-loc":"client/src/pages/TagEngine.tsx:139",className:"space-y-1.5",children:[b.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),b.jsxDEV(uf,{"data-loc":"client/src/pages/TagEngine.tsx:141",value:o.description,onChange:C=>s(j=>({...j,description:C.target.value})),className:"bg-input border-border/50 resize-none",rows:2,placeholder:"规则用途说明..."},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/TagEngine.tsx",lineNumber:141,columnNumber:19},this)]},void 0,!0,{fileName:"/home/ubuntu/nac-admin/client/src/pages/TagEngine.tsx",lineNumber:139,columnNumber:17},this),b.jsxDEV(rt,{"data-loc":"client/src/pages/TagEngine.tsx:143",className:"w-full nac-gradient text-white",onClick:()=>y.mutate({keyword:o.keyword,tags:o.tags.split(",").map(C=>C.trim()).filter(Boolean),dimension:o.dimension,description:o.description}),disabled:y.isPending||!o.keyword||!o.dimension||!o.tags,children:y.isPending?"创建中...":"创建规则"},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/TagEngine.tsx",lineNumber:143,columnNumber:17},this)]},void 0,!0,{fileName:"/home/ubuntu/nac-admin/client/src/pages/TagEngine.tsx",lineNumber:119,columnNumber:15},this)]},void 0,!0,{fileName:"/home/ubuntu/nac-admin/client/src/pages/TagEngine.tsx",lineNumber:117,columnNumber:13},this)]},void 0,!0,{fileName:"/home/ubuntu/nac-admin/client/src/pages/TagEngine.tsx",lineNumber:113,columnNumber:11},this)]},void 0,!0,{fileName:"/home/ubuntu/nac-admin/client/src/pages/TagEngine.tsx",lineNumber:64,columnNumber:9},this)]},void 0,!0,{fileName:"/home/ubuntu/nac-admin/client/src/pages/TagEngine.tsx",lineNumber:59,columnNumber:7},this),b.jsxDEV("div",{"data-loc":"client/src/pages/TagEngine.tsx:162",className:"grid grid-cols-2 lg:grid-cols-4 gap-3",children:KD.map(C=>b.jsxDEV(At,{"data-loc":"client/src/pages/TagEngine.tsx:164",className:"border-border/50",children:b.jsxDEV(Ot,{"data-loc":"client/src/pages/TagEngine.tsx:165",className:"p-4 flex items-center gap-3",children:[b.jsxDEV(Qae,{"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),b.jsxDEV("div",{"data-loc":"client/src/pages/TagEngine.tsx:167",children:[b.jsxDEV("p",{"data-loc":"client/src/pages/TagEngine.tsx:168",className:"text-xl font-bold text-primary",children:D[C]??0},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/TagEngine.tsx",lineNumber:168,columnNumber:17},this),b.jsxDEV("p",{"data-loc":"client/src/pages/TagEngine.tsx:169",className:"text-xs text-muted-foreground",children:GD[C]},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/TagEngine.tsx",lineNumber:169,columnNumber:17},this)]},void 0,!0,{fileName:"/home/ubuntu/nac-admin/client/src/pages/TagEngine.tsx",lineNumber:167,columnNumber:15},this)]},void 0,!0,{fileName:"/home/ubuntu/nac-admin/client/src/pages/TagEngine.tsx",lineNumber:165,columnNumber:13},this)},C,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/TagEngine.tsx",lineNumber:164,columnNumber:11},this))},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/TagEngine.tsx",lineNumber:162,columnNumber:7},this),b.jsxDEV("div",{"data-loc":"client/src/pages/TagEngine.tsx:177",className:"grid grid-cols-1 lg:grid-cols-2 gap-5",children:[b.jsxDEV(At,{"data-loc":"client/src/pages/TagEngine.tsx:179",className:"border-border/50",children:[b.jsxDEV(ha,{"data-loc":"client/src/pages/TagEngine.tsx:180",className:"pb-2",children:b.jsxDEV(pa,{"data-loc":"client/src/pages/TagEngine.tsx:181",className:"text-sm font-semibold flex items-center gap-2",children:[b.jsxDEV(Gz,{"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),"标签匹配规则 (",N.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),b.jsxDEV(Ot,{"data-loc":"client/src/pages/TagEngine.tsx:186",children:g?b.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):N.length===0?b.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):b.jsxDEV("div",{"data-loc":"client/src/pages/TagEngine.tsx:192",className:"space-y-2 max-h-[400px] overflow-y-auto",children:N.map(C=>b.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:b.jsxDEV("div",{"data-loc":"client/src/pages/TagEngine.tsx:195",className:"flex items-start justify-between",children:[b.jsxDEV("div",{"data-loc":"client/src/pages/TagEngine.tsx:196",children:[b.jsxDEV("p",{"data-loc":"client/src/pages/TagEngine.tsx:197",className:"text-sm font-medium",children:["关键词: ",b.jsxDEV("span",{"data-loc":"client/src/pages/TagEngine.tsx:197",className:"text-primary",children:C.keyword},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/TagEngine.tsx",lineNumber:197,columnNumber:111},this)]},void 0,!0,{fileName:"/home/ubuntu/nac-admin/client/src/pages/TagEngine.tsx",lineNumber:197,columnNumber:25},this),b.jsxDEV("div",{"data-loc":"client/src/pages/TagEngine.tsx:198",className:"flex flex-wrap gap-1 mt-1",children:(C.tags||[]).map(j=>b.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:j},j,!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),b.jsxDEV("p",{"data-loc":"client/src/pages/TagEngine.tsx:203",className:"text-xs text-muted-foreground mt-1",children:GD[C.dimension]||C.dimension},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/TagEngine.tsx",lineNumber:203,columnNumber:25},this)]},void 0,!0,{fileName:"/home/ubuntu/nac-admin/client/src/pages/TagEngine.tsx",lineNumber:196,columnNumber:23},this),b.jsxDEV(za,{"data-loc":"client/src/pages/TagEngine.tsx:205",variant:"outline",className:"text-xs border-emerald-500/30 text-emerald-400 shrink-0",children:"活跃"},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/TagEngine.tsx",lineNumber:205,columnNumber:23},this)]},void 0,!0,{fileName:"/home/ubuntu/nac-admin/client/src/pages/TagEngine.tsx",lineNumber:195,columnNumber:21},this)},C._id?.toString(),!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/TagEngine.tsx",lineNumber:194,columnNumber:19},this))},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/TagEngine.tsx",lineNumber:192,columnNumber:15},this)},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/TagEngine.tsx",lineNumber:186,columnNumber:11},this)]},void 0,!0,{fileName:"/home/ubuntu/nac-admin/client/src/pages/TagEngine.tsx",lineNumber:179,columnNumber:9},this),b.jsxDEV(At,{"data-loc":"client/src/pages/TagEngine.tsx:215",className:"border-border/50",children:[b.jsxDEV(ha,{"data-loc":"client/src/pages/TagEngine.tsx:216",className:"pb-2",children:b.jsxDEV(pa,{"data-loc":"client/src/pages/TagEngine.tsx:217",className:"text-sm font-semibold flex items-center gap-2",children:[b.jsxDEV(Bae,{"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打标修正记录 (",w.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),b.jsxDEV(Ot,{"data-loc":"client/src/pages/TagEngine.tsx:222",children:w.length===0?b.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):b.jsxDEV("div",{"data-loc":"client/src/pages/TagEngine.tsx:226",className:"space-y-2 max-h-[400px] overflow-y-auto",children:w.map(C=>b.jsxDEV("div",{"data-loc":"client/src/pages/TagEngine.tsx:228",className:"border border-amber-500/20 rounded-lg p-3",children:[b.jsxDEV("p",{"data-loc":"client/src/pages/TagEngine.tsx:229",className:"text-xs font-medium text-muted-foreground mb-1",children:["文档: ",C.documentId]},void 0,!0,{fileName:"/home/ubuntu/nac-admin/client/src/pages/TagEngine.tsx",lineNumber:229,columnNumber:21},this),b.jsxDEV("div",{"data-loc":"client/src/pages/TagEngine.tsx:230",className:"flex items-center gap-2 text-xs",children:[b.jsxDEV("div",{"data-loc":"client/src/pages/TagEngine.tsx:231",children:[b.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),b.jsxDEV("div",{"data-loc":"client/src/pages/TagEngine.tsx:233",className:"flex flex-wrap gap-1",children:(C.originalTags||[]).map(j=>b.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:j},j,!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),b.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),b.jsxDEV("div",{"data-loc":"client/src/pages/TagEngine.tsx:240",children:[b.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),b.jsxDEV("div",{"data-loc":"client/src/pages/TagEngine.tsx:242",className:"flex flex-wrap gap-1",children:(C.correctedTags||[]).map(j=>b.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:j},j,!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),b.jsxDEV("p",{"data-loc":"client/src/pages/TagEngine.tsx:249",className:"text-xs text-muted-foreground mt-1.5",children:["修正者: ",C.correctedBy]},void 0,!0,{fileName:"/home/ubuntu/nac-admin/client/src/pages/TagEngine.tsx",lineNumber:249,columnNumber:21},this)]},C._id?.toString(),!0,{fileName:"/home/ubuntu/nac-admin/client/src/pages/TagEngine.tsx",lineNumber:228,columnNumber:19},this))},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/TagEngine.tsx",lineNumber:226,columnNumber:15},this)},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/TagEngine.tsx",lineNumber:222,columnNumber:11},this)]},void 0,!0,{fileName:"/home/ubuntu/nac-admin/client/src/pages/TagEngine.tsx",lineNumber:215,columnNumber:9},this)]},void 0,!0,{fileName:"/home/ubuntu/nac-admin/client/src/pages/TagEngine.tsx",lineNumber:177,columnNumber:7},this)]},void 0,!0,{fileName:"/home/ubuntu/nac-admin/client/src/pages/TagEngine.tsx",lineNumber:58,columnNumber:5},this)}const fAe=["compliance","asset","identity","governance","settlement","oracle"];function mAe(){const[e,t]=_.useState(!1),[n,r]=_.useState(!1),[o,s]=_.useState(null),[c,u]=_.useState({name:"",type:"",version:"",endpoint:"",trigger:"",description:""}),[f,m]=_.useState({version:"",trigger:""}),g=et.useUtils(),{data:h,isLoading:y,refetch:x}=et.protocolRegistry.list.useQuery(),S=et.protocolRegistry.register.useMutation({onSuccess:()=>{gt.success("协议注册成功"),t(!1),g.protocolRegistry.list.invalidate(),u({name:"",type:"",version:"",endpoint:"",trigger:"",description:""})},onError:A=>gt.error(A.message)}),N=et.protocolRegistry.toggleStatus.useMutation({onSuccess:()=>{gt.success("协议状态已更新"),g.protocolRegistry.list.invalidate()},onError:A=>gt.error(A.message)}),w=et.protocolRegistry.updateVersion.useMutation({onSuccess:()=>{gt.success("协议版本已更新"),r(!1),g.protocolRegistry.list.invalidate()},onError:A=>gt.error(A.message)}),D=h||[],C=D.filter(A=>A.status==="active").length,j=D.filter(A=>A.status==="deprecated").length,P=A=>{const T={active:"status-active",disabled:"status-inactive",deprecated:"status-deprecated"},R={active:"运行中",disabled:"已停用",deprecated:"已废弃"};return b.jsxDEV("span",{"data-loc":"client/src/pages/ProtocolRegistry.tsx:57",className:`text-xs px-2 py-0.5 rounded-full font-medium ${T[A]||"status-inactive"}`,children:R[A]||A},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/ProtocolRegistry.tsx",lineNumber:57,columnNumber:12},this)};return b.jsxDEV("div",{"data-loc":"client/src/pages/ProtocolRegistry.tsx:61",className:"p-6 space-y-5",children:[b.jsxDEV("div",{"data-loc":"client/src/pages/ProtocolRegistry.tsx:62",className:"flex items-center justify-between",children:[b.jsxDEV("div",{"data-loc":"client/src/pages/ProtocolRegistry.tsx:63",children:[b.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),b.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),b.jsxDEV("div",{"data-loc":"client/src/pages/ProtocolRegistry.tsx:67",className:"flex items-center gap-2",children:[b.jsxDEV(rt,{"data-loc":"client/src/pages/ProtocolRegistry.tsx:68",variant:"outline",size:"sm",onClick:()=>x(),className:"border-border/50",children:[b.jsxDEV(eu,{"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),b.jsxDEV($c,{"data-loc":"client/src/pages/ProtocolRegistry.tsx:71",open:e,onOpenChange:t,children:[b.jsxDEV(Gh,{"data-loc":"client/src/pages/ProtocolRegistry.tsx:72",asChild:!0,children:b.jsxDEV(rt,{"data-loc":"client/src/pages/ProtocolRegistry.tsx:73",size:"sm",className:"nac-gradient text-white",children:[b.jsxDEV($p,{"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),b.jsxDEV(Bc,{"data-loc":"client/src/pages/ProtocolRegistry.tsx:75",className:"bg-card border-border/50 max-w-lg",children:[b.jsxDEV(zc,{"data-loc":"client/src/pages/ProtocolRegistry.tsx:76",children:b.jsxDEV(Uc,{"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),b.jsxDEV("div",{"data-loc":"client/src/pages/ProtocolRegistry.tsx:77",className:"space-y-4 mt-2",children:[b.jsxDEV("div",{"data-loc":"client/src/pages/ProtocolRegistry.tsx:78",className:"grid grid-cols-2 gap-3",children:[b.jsxDEV("div",{"data-loc":"client/src/pages/ProtocolRegistry.tsx:79",className:"space-y-1.5",children:[b.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),b.jsxDEV(Vn,{"data-loc":"client/src/pages/ProtocolRegistry.tsx:81",value:c.name,onChange:A=>u(T=>({...T,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),b.jsxDEV("div",{"data-loc":"client/src/pages/ProtocolRegistry.tsx:83",className:"space-y-1.5",children:[b.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),b.jsxDEV(mr,{"data-loc":"client/src/pages/ProtocolRegistry.tsx:85",value:c.type,onValueChange:A=>u(T=>({...T,type:A})),children:[b.jsxDEV(pr,{"data-loc":"client/src/pages/ProtocolRegistry.tsx:86",className:"bg-input border-border/50 h-9",children:b.jsxDEV(hr,{"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),b.jsxDEV(gr,{"data-loc":"client/src/pages/ProtocolRegistry.tsx:87",className:"bg-card border-border/50",children:fAe.map(A=>b.jsxDEV(_t,{"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),b.jsxDEV("div",{"data-loc":"client/src/pages/ProtocolRegistry.tsx:93",className:"grid grid-cols-2 gap-3",children:[b.jsxDEV("div",{"data-loc":"client/src/pages/ProtocolRegistry.tsx:94",className:"space-y-1.5",children:[b.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),b.jsxDEV(Vn,{"data-loc":"client/src/pages/ProtocolRegistry.tsx:96",value:c.version,onChange:A=>u(T=>({...T,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),b.jsxDEV("div",{"data-loc":"client/src/pages/ProtocolRegistry.tsx:98",className:"space-y-1.5",children:[b.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),b.jsxDEV(Vn,{"data-loc":"client/src/pages/ProtocolRegistry.tsx:100",value:c.endpoint,onChange:A=>u(T=>({...T,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),b.jsxDEV("div",{"data-loc":"client/src/pages/ProtocolRegistry.tsx:103",className:"space-y-1.5",children:[b.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),b.jsxDEV(Vn,{"data-loc":"client/src/pages/ProtocolRegistry.tsx:105",value:c.trigger,onChange:A=>u(T=>({...T,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),b.jsxDEV("div",{"data-loc":"client/src/pages/ProtocolRegistry.tsx:107",className:"space-y-1.5",children:[b.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),b.jsxDEV(uf,{"data-loc":"client/src/pages/ProtocolRegistry.tsx:109",value:c.description,onChange:A=>u(T=>({...T,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),b.jsxDEV(rt,{"data-loc":"client/src/pages/ProtocolRegistry.tsx:111",className:"w-full nac-gradient text-white",onClick:()=>S.mutate(c),disabled:S.isPending||!c.name||!c.type||!c.version||!c.endpoint||!c.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),b.jsxDEV("div",{"data-loc":"client/src/pages/ProtocolRegistry.tsx:125",className:"grid grid-cols-3 gap-3",children:[b.jsxDEV(At,{"data-loc":"client/src/pages/ProtocolRegistry.tsx:126",className:"border-border/50",children:b.jsxDEV(Ot,{"data-loc":"client/src/pages/ProtocolRegistry.tsx:127",className:"p-4 flex items-center gap-3",children:[b.jsxDEV(Th,{"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),b.jsxDEV("div",{"data-loc":"client/src/pages/ProtocolRegistry.tsx:129",children:[b.jsxDEV("p",{"data-loc":"client/src/pages/ProtocolRegistry.tsx:129",className:"text-2xl font-bold text-primary",children:D.length},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/ProtocolRegistry.tsx",lineNumber:129,columnNumber:71},this),b.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),b.jsxDEV(At,{"data-loc":"client/src/pages/ProtocolRegistry.tsx:132",className:"border-border/50",children:b.jsxDEV(Ot,{"data-loc":"client/src/pages/ProtocolRegistry.tsx:133",className:"p-4 flex items-center gap-3",children:[b.jsxDEV(Ic,{"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),b.jsxDEV("div",{"data-loc":"client/src/pages/ProtocolRegistry.tsx:135",children:[b.jsxDEV("p",{"data-loc":"client/src/pages/ProtocolRegistry.tsx:135",className:"text-2xl font-bold text-emerald-400",children:C},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/ProtocolRegistry.tsx",lineNumber:135,columnNumber:71},this),b.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),b.jsxDEV(At,{"data-loc":"client/src/pages/ProtocolRegistry.tsx:138",className:"border-border/50",children:b.jsxDEV(Ot,{"data-loc":"client/src/pages/ProtocolRegistry.tsx:139",className:"p-4 flex items-center gap-3",children:[b.jsxDEV(Lc,{"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),b.jsxDEV("div",{"data-loc":"client/src/pages/ProtocolRegistry.tsx:141",children:[b.jsxDEV("p",{"data-loc":"client/src/pages/ProtocolRegistry.tsx:141",className:"text-2xl font-bold text-orange-400",children:j},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/ProtocolRegistry.tsx",lineNumber:141,columnNumber:71},this),b.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?b.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):D.length===0?b.jsxDEV(At,{"data-loc":"client/src/pages/ProtocolRegistry.tsx:150",className:"border-border/50",children:b.jsxDEV(Ot,{"data-loc":"client/src/pages/ProtocolRegistry.tsx:151",className:"p-8 text-center",children:[b.jsxDEV(Th,{"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),b.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):b.jsxDEV("div",{"data-loc":"client/src/pages/ProtocolRegistry.tsx:157",className:"grid grid-cols-1 md:grid-cols-2 gap-4",children:D.map(A=>b.jsxDEV(At,{"data-loc":"client/src/pages/ProtocolRegistry.tsx:159",className:"border-border/50 hover:border-primary/30 transition-colors",children:b.jsxDEV(Ot,{"data-loc":"client/src/pages/ProtocolRegistry.tsx:160",className:"p-4",children:[b.jsxDEV("div",{"data-loc":"client/src/pages/ProtocolRegistry.tsx:161",className:"flex items-start justify-between mb-3",children:[b.jsxDEV("div",{"data-loc":"client/src/pages/ProtocolRegistry.tsx:162",children:[b.jsxDEV("div",{"data-loc":"client/src/pages/ProtocolRegistry.tsx:163",className:"flex items-center gap-2",children:[b.jsxDEV(Th,{"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),b.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),b.jsxDEV(za,{"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),b.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&&b.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),b.jsxDEV("div",{"data-loc":"client/src/pages/ProtocolRegistry.tsx:177",className:"bg-muted/20 rounded p-2 mb-3",children:[b.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),b.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),b.jsxDEV("div",{"data-loc":"client/src/pages/ProtocolRegistry.tsx:182",className:"bg-muted/20 rounded p-2 mb-3",children:[b.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),b.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),b.jsxDEV("div",{"data-loc":"client/src/pages/ProtocolRegistry.tsx:187",className:"flex items-center gap-2",children:[b.jsxDEV(rt,{"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:[b.jsxDEV(Fz,{"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),b.jsxDEV(rt,{"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 T=A.status==="active"?"disabled":A.status==="disabled"?"deprecated":"active";N.mutate({id:A._id.toString(),status:T})},disabled:N.isPending,children:[b.jsxDEV(Yz,{"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),b.jsxDEV($c,{"data-loc":"client/src/pages/ProtocolRegistry.tsx:219",open:n,onOpenChange:r,children:b.jsxDEV(Bc,{"data-loc":"client/src/pages/ProtocolRegistry.tsx:220",className:"bg-card border-border/50 max-w-md",children:[b.jsxDEV(zc,{"data-loc":"client/src/pages/ProtocolRegistry.tsx:221",children:b.jsxDEV(Uc,{"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),b.jsxDEV("div",{"data-loc":"client/src/pages/ProtocolRegistry.tsx:222",className:"space-y-4 mt-2",children:[b.jsxDEV("div",{"data-loc":"client/src/pages/ProtocolRegistry.tsx:223",className:"space-y-1.5",children:[b.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),b.jsxDEV(Vn,{"data-loc":"client/src/pages/ProtocolRegistry.tsx:225",value:f.version,onChange:A=>m(T=>({...T,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),b.jsxDEV("div",{"data-loc":"client/src/pages/ProtocolRegistry.tsx:227",className:"space-y-1.5",children:[b.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),b.jsxDEV(Vn,{"data-loc":"client/src/pages/ProtocolRegistry.tsx:229",value:f.trigger,onChange:A=>m(T=>({...T,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),b.jsxDEV(rt,{"data-loc":"client/src/pages/ProtocolRegistry.tsx:231",className:"w-full nac-gradient text-white",onClick:()=>o&&w.mutate({id:o._id.toString(),version:f.version,trigger:f.trigger||void 0}),disabled:w.isPending||!f.version,children:w.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 YD={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 hAe(){const[e,t]=_.useState(""),[n,r]=_.useState(""),[o,s]=_.useState(1),{data:c,isLoading:u,refetch:f}=et.rbac.auditLogs.useQuery({action:e||void 0,page:o,pageSize:20}),{data:m,isLoading:g}=et.rbac.listUsers.useQuery({page:1,pageSize:100}),h=c?.items||[],y=c?.total||0,x=Math.ceil(y/20),S=m?.users||[],N=w=>YD[w]||w;return b.jsxDEV("div",{"data-loc":"client/src/pages/AuditLog.tsx:38",className:"p-6 space-y-5",children:[b.jsxDEV("div",{"data-loc":"client/src/pages/AuditLog.tsx:39",className:"flex items-center justify-between",children:[b.jsxDEV("div",{"data-loc":"client/src/pages/AuditLog.tsx:40",children:[b.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),b.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),b.jsxDEV(rt,{"data-loc":"client/src/pages/AuditLog.tsx:44",variant:"outline",size:"sm",onClick:()=>f(),className:"border-border/50",children:[b.jsxDEV(eu,{"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),b.jsxDEV("div",{"data-loc":"client/src/pages/AuditLog.tsx:49",className:"grid grid-cols-1 lg:grid-cols-2 gap-5",children:[b.jsxDEV(At,{"data-loc":"client/src/pages/AuditLog.tsx:51",className:"border-border/50",children:[b.jsxDEV(ha,{"data-loc":"client/src/pages/AuditLog.tsx:52",className:"pb-2",children:b.jsxDEV(pa,{"data-loc":"client/src/pages/AuditLog.tsx:53",className:"text-sm font-semibold flex items-center gap-2",children:[b.jsxDEV(TC,{"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),b.jsxDEV(Ot,{"data-loc":"client/src/pages/AuditLog.tsx:57",children:g?b.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?b.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):b.jsxDEV("div",{"data-loc":"client/src/pages/AuditLog.tsx:63",className:"space-y-2 max-h-[400px] overflow-y-auto",children:S.map(w=>b.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:[b.jsxDEV("div",{"data-loc":"client/src/pages/AuditLog.tsx:66",children:[b.jsxDEV("p",{"data-loc":"client/src/pages/AuditLog.tsx:67",className:"text-sm font-medium",children:w.email},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/AuditLog.tsx",lineNumber:67,columnNumber:23},this),b.jsxDEV("p",{"data-loc":"client/src/pages/AuditLog.tsx:68",className:"text-xs text-muted-foreground",children:w.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),b.jsxDEV(mr,{"data-loc":"client/src/pages/AuditLog.tsx:70",value:w.role,onValueChange:D=>{},children:[b.jsxDEV(pr,{"data-loc":"client/src/pages/AuditLog.tsx:74",className:"w-28 bg-input border-border/50 h-7 text-xs",children:b.jsxDEV(hr,{"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),b.jsxDEV(gr,{"data-loc":"client/src/pages/AuditLog.tsx:77",className:"bg-card border-border/50",children:[b.jsxDEV(_t,{"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),b.jsxDEV(_t,{"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),b.jsxDEV(_t,{"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),b.jsxDEV(_t,{"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)]},w._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),b.jsxDEV(At,{"data-loc":"client/src/pages/AuditLog.tsx:92",className:"border-border/50",children:[b.jsxDEV(ha,{"data-loc":"client/src/pages/AuditLog.tsx:93",className:"pb-2",children:b.jsxDEV(pa,{"data-loc":"client/src/pages/AuditLog.tsx:94",className:"text-sm font-semibold flex items-center gap-2",children:[b.jsxDEV(bl,{"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),b.jsxDEV(Ot,{"data-loc":"client/src/pages/AuditLog.tsx:98",children:[b.jsxDEV("div",{"data-loc":"client/src/pages/AuditLog.tsx:99",className:"grid grid-cols-2 gap-3",children:[b.jsxDEV("div",{"data-loc":"client/src/pages/AuditLog.tsx:100",className:"bg-muted/20 rounded-lg p-3 text-center",children:[b.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),b.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),b.jsxDEV("div",{"data-loc":"client/src/pages/AuditLog.tsx:104",className:"bg-muted/20 rounded-lg p-3 text-center",children:[b.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),b.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),b.jsxDEV("div",{"data-loc":"client/src/pages/AuditLog.tsx:108",className:"bg-muted/20 rounded-lg p-3 text-center",children:[b.jsxDEV("p",{"data-loc":"client/src/pages/AuditLog.tsx:109",className:"text-2xl font-bold text-amber-400",children:S.filter(w=>w.role==="admin").length},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/AuditLog.tsx",lineNumber:109,columnNumber:17},this),b.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),b.jsxDEV("div",{"data-loc":"client/src/pages/AuditLog.tsx:112",className:"bg-muted/20 rounded-lg p-3 text-center",children:[b.jsxDEV("p",{"data-loc":"client/src/pages/AuditLog.tsx:113",className:"text-2xl font-bold text-blue-400",children:S.filter(w=>w.role==="reviewer").length},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/AuditLog.tsx",lineNumber:113,columnNumber:17},this),b.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),b.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:[b.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:[b.jsxDEV(bl,{"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),b.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),b.jsxDEV(At,{"data-loc":"client/src/pages/AuditLog.tsx:128",className:"border-border/50",children:[b.jsxDEV(ha,{"data-loc":"client/src/pages/AuditLog.tsx:129",className:"pb-2",children:b.jsxDEV("div",{"data-loc":"client/src/pages/AuditLog.tsx:130",className:"flex items-center justify-between",children:[b.jsxDEV(pa,{"data-loc":"client/src/pages/AuditLog.tsx:131",className:"text-sm font-semibold flex items-center gap-2",children:[b.jsxDEV(Hz,{"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),b.jsxDEV("div",{"data-loc":"client/src/pages/AuditLog.tsx:134",className:"flex items-center gap-2",children:[b.jsxDEV(mr,{"data-loc":"client/src/pages/AuditLog.tsx:135",value:e,onValueChange:w=>{t(w==="ALL_FILTER"?"":w),s(1)},children:[b.jsxDEV(pr,{"data-loc":"client/src/pages/AuditLog.tsx:136",className:"w-36 bg-input border-border/50 h-7 text-xs",children:b.jsxDEV(hr,{"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),b.jsxDEV(gr,{"data-loc":"client/src/pages/AuditLog.tsx:137",className:"bg-card border-border/50",children:[b.jsxDEV(_t,{"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(YD).map(w=>b.jsxDEV(_t,{"data-loc":"client/src/pages/AuditLog.tsx:139",value:w,children:YD[w]},w,!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),b.jsxDEV("div",{"data-loc":"client/src/pages/AuditLog.tsx:142",className:"relative",children:[b.jsxDEV(rie,{"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),b.jsxDEV(Vn,{"data-loc":"client/src/pages/AuditLog.tsx:144",value:n,onChange:w=>{r(w.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),b.jsxDEV(Ot,{"data-loc":"client/src/pages/AuditLog.tsx:154",className:"p-0",children:[u?b.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):h.length===0?b.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):b.jsxDEV("div",{"data-loc":"client/src/pages/AuditLog.tsx:160",className:"overflow-x-auto",children:b.jsxDEV("table",{"data-loc":"client/src/pages/AuditLog.tsx:161",className:"w-full text-sm",children:[b.jsxDEV("thead",{"data-loc":"client/src/pages/AuditLog.tsx:162",children:b.jsxDEV("tr",{"data-loc":"client/src/pages/AuditLog.tsx:163",className:"border-b border-border/30",children:[b.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),b.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),b.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),b.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),b.jsxDEV("tbody",{"data-loc":"client/src/pages/AuditLog.tsx:170",children:h.map(w=>b.jsxDEV("tr",{"data-loc":"client/src/pages/AuditLog.tsx:172",className:"border-b border-border/20 hover:bg-accent/20 transition-colors",children:[b.jsxDEV("td",{"data-loc":"client/src/pages/AuditLog.tsx:173",className:"p-3",children:b.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:N(w.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),b.jsxDEV("td",{"data-loc":"client/src/pages/AuditLog.tsx:178",className:"p-3",children:b.jsxDEV("div",{"data-loc":"client/src/pages/AuditLog.tsx:179",className:"flex items-center gap-1.5",children:[b.jsxDEV(TC,{"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),b.jsxDEV("span",{"data-loc":"client/src/pages/AuditLog.tsx:181",className:"text-xs",children:w.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),b.jsxDEV("td",{"data-loc":"client/src/pages/AuditLog.tsx:184",className:"p-3",children:b.jsxDEV("p",{"data-loc":"client/src/pages/AuditLog.tsx:185",className:"text-xs text-muted-foreground line-clamp-1",children:w.details?JSON.stringify(w.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),b.jsxDEV("td",{"data-loc":"client/src/pages/AuditLog.tsx:189",className:"p-3",children:b.jsxDEV("div",{"data-loc":"client/src/pages/AuditLog.tsx:190",className:"flex items-center gap-1 text-xs text-muted-foreground",children:[b.jsxDEV(vf,{"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),w.createdAt?new Date(w.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)]},w._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),x>1&&b.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:[b.jsxDEV(rt,{"data-loc":"client/src/pages/AuditLog.tsx:203",variant:"outline",size:"sm",onClick:()=>s(w=>Math.max(1,w-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),b.jsxDEV("span",{"data-loc":"client/src/pages/AuditLog.tsx:204",className:"text-xs text-muted-foreground",children:[o," / ",x]},void 0,!0,{fileName:"/home/ubuntu/nac-admin/client/src/pages/AuditLog.tsx",lineNumber:204,columnNumber:15},this),b.jsxDEV(rt,{"data-loc":"client/src/pages/AuditLog.tsx:205",variant:"outline",size:"sm",onClick:()=>s(w=>Math.min(x,w+1)),disabled:o===x,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)}const Qb={BookOpen:__,Shield:bl,Languages:Fb,ClipboardCheck:qae},pAe={knowledge_qa:"text-blue-500",compliance:"text-red-500",translation:"text-green-500",approval_assist:"text-purple-500"};function gAe({confidence:e}){const t=Math.round(e*100),n=t>=80?"text-green-600":t>=60?"text-yellow-600":"text-red-500";return b.jsxDEV("span",{"data-loc":"client/src/pages/AIAgents.tsx:55",className:`text-xs ${n} flex items-center gap-1`,children:[b.jsxDEV(mi,{"data-loc":"client/src/pages/AIAgents.tsx:56",className:"w-3 h-3"},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/AIAgents.tsx",lineNumber:56,columnNumber:7},this),"置信度 ",t,"%"]},void 0,!0,{fileName:"/home/ubuntu/nac-admin/client/src/pages/AIAgents.tsx",lineNumber:55,columnNumber:5},this)}function vAe({source:e,onClick:t}){return b.jsxDEV("button",{"data-loc":"client/src/pages/AIAgents.tsx:65",onClick:t,className:"inline-flex items-center gap-1 text-xs text-blue-600 dark:text-blue-400 hover:text-blue-800 dark:hover:text-blue-200 hover:underline transition-colors cursor-pointer bg-blue-50 dark:bg-blue-950/30 rounded px-1.5 py-0.5 border border-blue-200 dark:border-blue-800",title:`点击跳转到知识库:${e}`,children:[b.jsxDEV(__,{"data-loc":"client/src/pages/AIAgents.tsx:70",className:"w-2.5 h-2.5 shrink-0"},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/AIAgents.tsx",lineNumber:70,columnNumber:7},this),b.jsxDEV("span",{"data-loc":"client/src/pages/AIAgents.tsx:71",className:"max-w-[120px] truncate",children:e},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/AIAgents.tsx",lineNumber:71,columnNumber:7},this),b.jsxDEV(Hae,{"data-loc":"client/src/pages/AIAgents.tsx:72",className:"w-2.5 h-2.5 shrink-0"},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/AIAgents.tsx",lineNumber:72,columnNumber:7},this)]},void 0,!0,{fileName:"/home/ubuntu/nac-admin/client/src/pages/AIAgents.tsx",lineNumber:65,columnNumber:5},this)}function bAe({msg:e,onSourceClick:t}){const n=e.role==="user";return b.jsxDEV("div",{"data-loc":"client/src/pages/AIAgents.tsx:81",className:`flex gap-3 ${n?"flex-row-reverse":"flex-row"}`,children:[b.jsxDEV("div",{"data-loc":"client/src/pages/AIAgents.tsx:82",className:`w-8 h-8 rounded-full flex items-center justify-center shrink-0 ${n?"bg-primary text-primary-foreground":"bg-muted"}`,children:n?b.jsxDEV(TC,{"data-loc":"client/src/pages/AIAgents.tsx:83",className:"w-4 h-4"},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/AIAgents.tsx",lineNumber:83,columnNumber:19},this):b.jsxDEV(Nd,{"data-loc":"client/src/pages/AIAgents.tsx:83",className:"w-4 h-4"},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/AIAgents.tsx",lineNumber:83,columnNumber:94},this)},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/AIAgents.tsx",lineNumber:82,columnNumber:7},this),b.jsxDEV("div",{"data-loc":"client/src/pages/AIAgents.tsx:85",className:`max-w-[75%] space-y-1 ${n?"items-end":"items-start"} flex flex-col`,children:[b.jsxDEV("div",{"data-loc":"client/src/pages/AIAgents.tsx:86",className:`rounded-2xl px-4 py-3 text-sm leading-relaxed whitespace-pre-wrap break-words ${n?"bg-primary text-primary-foreground rounded-tr-sm":"bg-muted text-foreground rounded-tl-sm"}`,dir:e.isRTL?"rtl":"ltr",children:e.content},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/AIAgents.tsx",lineNumber:86,columnNumber:9},this),!n&&b.jsxDEV("div",{"data-loc":"client/src/pages/AIAgents.tsx:97",className:"flex flex-wrap gap-2 px-1",children:[e.confidence!==void 0&&b.jsxDEV(gAe,{"data-loc":"client/src/pages/AIAgents.tsx:98",confidence:e.confidence},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/AIAgents.tsx",lineNumber:98,columnNumber:46},this),e.sources&&e.sources.length>0&&b.jsxDEV("div",{"data-loc":"client/src/pages/AIAgents.tsx:100",className:"flex flex-wrap items-center gap-1",children:[b.jsxDEV("span",{"data-loc":"client/src/pages/AIAgents.tsx:101",className:"text-xs text-muted-foreground flex items-center gap-1",children:[b.jsxDEV(P_,{"data-loc":"client/src/pages/AIAgents.tsx:102",className:"w-3 h-3"},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/AIAgents.tsx",lineNumber:102,columnNumber:19},this),"引用来源:"]},void 0,!0,{fileName:"/home/ubuntu/nac-admin/client/src/pages/AIAgents.tsx",lineNumber:101,columnNumber:17},this),e.sources.slice(0,3).map((r,o)=>b.jsxDEV(vAe,{"data-loc":"client/src/pages/AIAgents.tsx:106",source:r,onClick:()=>t?.(r)},o,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/AIAgents.tsx",lineNumber:106,columnNumber:19},this)),e.sources.length>3&&b.jsxDEV("span",{"data-loc":"client/src/pages/AIAgents.tsx:113",className:"text-xs text-muted-foreground",children:["+",e.sources.length-3,"条"]},void 0,!0,{fileName:"/home/ubuntu/nac-admin/client/src/pages/AIAgents.tsx",lineNumber:113,columnNumber:19},this)]},void 0,!0,{fileName:"/home/ubuntu/nac-admin/client/src/pages/AIAgents.tsx",lineNumber:100,columnNumber:15},this)]},void 0,!0,{fileName:"/home/ubuntu/nac-admin/client/src/pages/AIAgents.tsx",lineNumber:97,columnNumber:11},this),!n&&e.suggestions&&e.suggestions.length>0&&b.jsxDEV("div",{"data-loc":"client/src/pages/AIAgents.tsx:120",className:"flex flex-wrap gap-1 px-1",children:e.suggestions.map((r,o)=>b.jsxDEV(za,{"data-loc":"client/src/pages/AIAgents.tsx:122",variant:"outline",className:"text-xs cursor-default",children:r},o,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/AIAgents.tsx",lineNumber:122,columnNumber:15},this))},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/AIAgents.tsx",lineNumber:120,columnNumber:11},this)]},void 0,!0,{fileName:"/home/ubuntu/nac-admin/client/src/pages/AIAgents.tsx",lineNumber:85,columnNumber:7},this)]},void 0,!0,{fileName:"/home/ubuntu/nac-admin/client/src/pages/AIAgents.tsx",lineNumber:81,columnNumber:5},this)}function yAe({conv:e,isActive:t,onClick:n,onDelete:r}){const o=Qb[e.agentType==="knowledge_qa"?"BookOpen":e.agentType==="compliance"?"Shield":e.agentType==="translation"?"Languages":"ClipboardCheck"]||Nd,s=pAe[e.agentType]||"text-muted-foreground",u=new Date(e.updatedAt).toLocaleDateString("zh-CN",{month:"short",day:"numeric"});return b.jsxDEV("div",{"data-loc":"client/src/pages/AIAgents.tsx:149",className:`group flex items-start gap-2 rounded-lg p-2.5 cursor-pointer transition-all ${t?"bg-primary/10 border border-primary/20":"hover:bg-muted"}`,onClick:n,children:[b.jsxDEV(o,{"data-loc":"client/src/pages/AIAgents.tsx:155",className:`w-3.5 h-3.5 mt-0.5 shrink-0 ${s}`},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/AIAgents.tsx",lineNumber:155,columnNumber:7},this),b.jsxDEV("div",{"data-loc":"client/src/pages/AIAgents.tsx:156",className:"flex-1 min-w-0",children:[b.jsxDEV("p",{"data-loc":"client/src/pages/AIAgents.tsx:157",className:"text-xs font-medium truncate leading-snug",children:e.title},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/AIAgents.tsx",lineNumber:157,columnNumber:9},this),b.jsxDEV("div",{"data-loc":"client/src/pages/AIAgents.tsx:158",className:"flex items-center gap-1.5 mt-0.5",children:[b.jsxDEV(vf,{"data-loc":"client/src/pages/AIAgents.tsx:159",className:"w-2.5 h-2.5 text-muted-foreground"},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/AIAgents.tsx",lineNumber:159,columnNumber:11},this),b.jsxDEV("span",{"data-loc":"client/src/pages/AIAgents.tsx:160",className:"text-[10px] text-muted-foreground",children:u},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/AIAgents.tsx",lineNumber:160,columnNumber:11},this),b.jsxDEV("span",{"data-loc":"client/src/pages/AIAgents.tsx:161",className:"text-[10px] text-muted-foreground",children:["· ",e.messageCount,"条"]},void 0,!0,{fileName:"/home/ubuntu/nac-admin/client/src/pages/AIAgents.tsx",lineNumber:161,columnNumber:11},this)]},void 0,!0,{fileName:"/home/ubuntu/nac-admin/client/src/pages/AIAgents.tsx",lineNumber:158,columnNumber:9},this)]},void 0,!0,{fileName:"/home/ubuntu/nac-admin/client/src/pages/AIAgents.tsx",lineNumber:156,columnNumber:7},this),b.jsxDEV("button",{"data-loc":"client/src/pages/AIAgents.tsx:164",className:"opacity-0 group-hover:opacity-100 p-0.5 rounded hover:text-red-500 transition-all shrink-0",onClick:f=>{f.stopPropagation(),r()},children:b.jsxDEV(Qz,{"data-loc":"client/src/pages/AIAgents.tsx:168",className:"w-3 h-3"},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/AIAgents.tsx",lineNumber:168,columnNumber:9},this)},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/AIAgents.tsx",lineNumber:164,columnNumber:7},this)]},void 0,!0,{fileName:"/home/ubuntu/nac-admin/client/src/pages/AIAgents.tsx",lineNumber:149,columnNumber:5},this)}function xAe(){const[e,t]=_.useState(null),[n,r]=_.useState(null),[o,s]=_.useState([]),[c,u]=_.useState(""),[f,m]=_.useState(!0),g=_.useRef(null);et.useUtils();const[,h]=_x(),y=V=>{const F=V.split("·").pop()||V;h(`/knowledge-base?search=${encodeURIComponent(F)}`)},{data:x,isLoading:S}=et.aiAgent.list.useQuery(),{data:N}=et.aiAgent.status.useQuery(),{data:w,refetch:D}=et.aiAgent.listConversations.useQuery({agentType:e||void 0,limit:30},{enabled:!0}),C=et.aiAgent.loadHistory.useQuery({conversationId:n,limit:50},{enabled:!!n});_.useEffect(()=>{if(C.data?.messages&&n){const V=C.data.messages.map(F=>({role:F.role,content:F.content,confidence:F.confidence,sources:F.sources,suggestions:F.suggestions}));s(V)}},[C.data,n]);const j=et.aiAgent.deleteConversation.useMutation({onSuccess:()=>{gt.success("会话已删除"),D()},onError:V=>gt.error(`删除失败: ${V.message}`)}),P=et.aiAgent.chat.useMutation({onSuccess:V=>{s(F=>[...F,{role:"assistant",content:V.message,confidence:V.confidence,sources:V.sources,suggestions:V.suggestions,isRTL:V.metadata?.isRTL}]),!n&&V.conversationId&&r(V.conversationId),D()},onError:V=>{gt.error(`Agent响应失败: ${V.message}`)}});_.useEffect(()=>{g.current?.scrollIntoView({behavior:"smooth"})},[o]);const A=V=>{t(V),r(null),s([]),u("")},T=V=>{t(V.agentType),r(V.conversationId),s([])},R=()=>{r(null),s([]),u("")},M=()=>{const V=c.trim();if(!V||P.isPending||!e)return;const F={role:"user",content:V};s(X=>[...X,F]),u(""),P.mutate({agentType:e,userMessage:V,conversationId:n||void 0,persistHistory:!0})},$=V=>{V.key==="Enter"&&!V.shiftKey&&(V.preventDefault(),M())},z=x?.agents.find(V=>V.type===e),U=w?.conversations||[];return b.jsxDEV("div",{"data-loc":"client/src/pages/AIAgents.tsx:310",className:"flex h-full gap-0 overflow-hidden",children:[b.jsxDEV("div",{"data-loc":"client/src/pages/AIAgents.tsx:312",className:"w-72 shrink-0 border-r flex flex-col bg-muted/20",children:[b.jsxDEV("div",{"data-loc":"client/src/pages/AIAgents.tsx:314",className:"p-4 border-b",children:[b.jsxDEV("div",{"data-loc":"client/src/pages/AIAgents.tsx:315",className:"flex items-center gap-2 mb-1",children:[b.jsxDEV(CC,{"data-loc":"client/src/pages/AIAgents.tsx:316",className:"w-5 h-5 text-primary"},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/AIAgents.tsx",lineNumber:316,columnNumber:13},this),b.jsxDEV("h2",{"data-loc":"client/src/pages/AIAgents.tsx:317",className:"font-semibold text-sm",children:"AI智能体"},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/AIAgents.tsx",lineNumber:317,columnNumber:13},this)]},void 0,!0,{fileName:"/home/ubuntu/nac-admin/client/src/pages/AIAgents.tsx",lineNumber:315,columnNumber:11},this),N&&b.jsxDEV("div",{"data-loc":"client/src/pages/AIAgents.tsx:320",className:`mt-2 flex items-center gap-1.5 text-xs px-2 py-1 rounded-md ${N.configured?"bg-green-500/10 text-green-600":"bg-yellow-500/10 text-yellow-600"}`,children:N.configured?b.jsxDEV(b.Fragment,{children:[b.jsxDEV(mi,{"data-loc":"client/src/pages/AIAgents.tsx:322",className:"w-3 h-3"},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/AIAgents.tsx",lineNumber:322,columnNumber:21},this),"AI服务已就绪 · ",N.model]},void 0,!0,{fileName:"/home/ubuntu/nac-admin/client/src/pages/AIAgents.tsx",lineNumber:322,columnNumber:19},this):b.jsxDEV(b.Fragment,{children:[b.jsxDEV(OC,{"data-loc":"client/src/pages/AIAgents.tsx:323",className:"w-3 h-3"},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/AIAgents.tsx",lineNumber:323,columnNumber:21},this),"AI服务未配置"]},void 0,!0,{fileName:"/home/ubuntu/nac-admin/client/src/pages/AIAgents.tsx",lineNumber:323,columnNumber:19},this)},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/AIAgents.tsx",lineNumber:320,columnNumber:13},this)]},void 0,!0,{fileName:"/home/ubuntu/nac-admin/client/src/pages/AIAgents.tsx",lineNumber:314,columnNumber:9},this),b.jsxDEV("div",{"data-loc":"client/src/pages/AIAgents.tsx:330",className:"p-2 space-y-1 border-b",children:S?b.jsxDEV("div",{"data-loc":"client/src/pages/AIAgents.tsx:332",className:"flex items-center justify-center py-4",children:b.jsxDEV(_r,{"data-loc":"client/src/pages/AIAgents.tsx:333",className:"w-4 h-4 animate-spin text-muted-foreground"},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/AIAgents.tsx",lineNumber:333,columnNumber:15},this)},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/AIAgents.tsx",lineNumber:332,columnNumber:13},this):x?.agents.map(V=>{const F=Qb[V.icon]||Nd,X=e===V.type&&!n;return b.jsxDEV("button",{"data-loc":"client/src/pages/AIAgents.tsx:340",onClick:()=>A(V.type),className:`w-full text-left rounded-lg p-2.5 transition-all ${X?"bg-primary text-primary-foreground":"hover:bg-muted"}`,children:b.jsxDEV("div",{"data-loc":"client/src/pages/AIAgents.tsx:347",className:"flex items-center gap-2",children:[b.jsxDEV(F,{"data-loc":"client/src/pages/AIAgents.tsx:348",className:"w-4 h-4 shrink-0"},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/AIAgents.tsx",lineNumber:348,columnNumber:21},this),b.jsxDEV("span",{"data-loc":"client/src/pages/AIAgents.tsx:349",className:"text-sm font-medium truncate",children:V.name},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/AIAgents.tsx",lineNumber:349,columnNumber:21},this),X&&b.jsxDEV(qz,{"data-loc":"client/src/pages/AIAgents.tsx:350",className:"w-3 h-3 ml-auto shrink-0"},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/AIAgents.tsx",lineNumber:350,columnNumber:34},this)]},void 0,!0,{fileName:"/home/ubuntu/nac-admin/client/src/pages/AIAgents.tsx",lineNumber:347,columnNumber:19},this)},V.type,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/AIAgents.tsx",lineNumber:340,columnNumber:17},this)})},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/AIAgents.tsx",lineNumber:330,columnNumber:9},this),b.jsxDEV("div",{"data-loc":"client/src/pages/AIAgents.tsx:359",className:"flex-1 overflow-y-auto flex flex-col",children:[b.jsxDEV("button",{"data-loc":"client/src/pages/AIAgents.tsx:360",className:"flex items-center justify-between px-3 py-2 text-xs font-medium text-muted-foreground hover:text-foreground transition-colors",onClick:()=>m(V=>!V),children:[b.jsxDEV("span",{"data-loc":"client/src/pages/AIAgents.tsx:364",className:"flex items-center gap-1.5",children:[b.jsxDEV(eie,{"data-loc":"client/src/pages/AIAgents.tsx:365",className:"w-3.5 h-3.5"},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/AIAgents.tsx",lineNumber:365,columnNumber:15},this),"历史会话 ",U.length>0&&`(${U.length})`]},void 0,!0,{fileName:"/home/ubuntu/nac-admin/client/src/pages/AIAgents.tsx",lineNumber:364,columnNumber:13},this),f?b.jsxDEV(j_,{"data-loc":"client/src/pages/AIAgents.tsx:368",className:"w-3 h-3"},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/AIAgents.tsx",lineNumber:368,columnNumber:28},this):b.jsxDEV(Cx,{"data-loc":"client/src/pages/AIAgents.tsx:368",className:"w-3 h-3"},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/AIAgents.tsx",lineNumber:368,columnNumber:109},this)]},void 0,!0,{fileName:"/home/ubuntu/nac-admin/client/src/pages/AIAgents.tsx",lineNumber:360,columnNumber:11},this),f&&b.jsxDEV("div",{"data-loc":"client/src/pages/AIAgents.tsx:372",className:"px-2 pb-2 space-y-0.5",children:U.length===0?b.jsxDEV("p",{"data-loc":"client/src/pages/AIAgents.tsx:374",className:"text-xs text-muted-foreground text-center py-4",children:"暂无历史会话"},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/AIAgents.tsx",lineNumber:374,columnNumber:17},this):U.map(V=>b.jsxDEV(yAe,{"data-loc":"client/src/pages/AIAgents.tsx:377",conv:V,isActive:n===V.conversationId,onClick:()=>T(V),onDelete:()=>j.mutate({conversationId:V.conversationId})},V.conversationId,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/AIAgents.tsx",lineNumber:377,columnNumber:19},this))},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/AIAgents.tsx",lineNumber:372,columnNumber:13},this)]},void 0,!0,{fileName:"/home/ubuntu/nac-admin/client/src/pages/AIAgents.tsx",lineNumber:359,columnNumber:9},this),x&&!x.configured&&b.jsxDEV("div",{"data-loc":"client/src/pages/AIAgents.tsx:392",className:"p-3 border-t",children:b.jsxDEV("div",{"data-loc":"client/src/pages/AIAgents.tsx:393",className:"bg-yellow-500/10 text-yellow-700 text-xs rounded-lg p-2.5 leading-relaxed",children:[b.jsxDEV(OC,{"data-loc":"client/src/pages/AIAgents.tsx:394",className:"w-3 h-3 inline mr-1"},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/AIAgents.tsx",lineNumber:394,columnNumber:15},this),x.configHint]},void 0,!0,{fileName:"/home/ubuntu/nac-admin/client/src/pages/AIAgents.tsx",lineNumber:393,columnNumber:13},this)},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/AIAgents.tsx",lineNumber:392,columnNumber:11},this)]},void 0,!0,{fileName:"/home/ubuntu/nac-admin/client/src/pages/AIAgents.tsx",lineNumber:312,columnNumber:7},this),b.jsxDEV("div",{"data-loc":"client/src/pages/AIAgents.tsx:402",className:"flex-1 flex flex-col overflow-hidden",children:e?b.jsxDEV(b.Fragment,{children:[b.jsxDEV("div",{"data-loc":"client/src/pages/AIAgents.tsx:435",className:"border-b px-4 py-3 flex items-center gap-3 bg-background",children:[z&&(()=>{const V=Qb[z.icon]||Nd;return b.jsxDEV(b.Fragment,{children:[b.jsxDEV("div",{"data-loc":"client/src/pages/AIAgents.tsx:440",className:"w-8 h-8 rounded-lg bg-primary/10 flex items-center justify-center",children:b.jsxDEV(V,{"data-loc":"client/src/pages/AIAgents.tsx:441",className:"w-4 h-4 text-primary"},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/AIAgents.tsx",lineNumber:441,columnNumber:23},this)},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/AIAgents.tsx",lineNumber:440,columnNumber:21},this),b.jsxDEV("div",{"data-loc":"client/src/pages/AIAgents.tsx:443",children:[b.jsxDEV("p",{"data-loc":"client/src/pages/AIAgents.tsx:444",className:"text-sm font-semibold",children:z.name},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/AIAgents.tsx",lineNumber:444,columnNumber:23},this),b.jsxDEV("p",{"data-loc":"client/src/pages/AIAgents.tsx:445",className:"text-xs text-muted-foreground",children:n?`续接历史会话 · ${o.length}条消息`:"新对话 · 历史将自动保存"},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/AIAgents.tsx",lineNumber:445,columnNumber:23},this)]},void 0,!0,{fileName:"/home/ubuntu/nac-admin/client/src/pages/AIAgents.tsx",lineNumber:443,columnNumber:21},this)]},void 0,!0,{fileName:"/home/ubuntu/nac-admin/client/src/pages/AIAgents.tsx",lineNumber:439,columnNumber:19},this)})(),b.jsxDEV("div",{"data-loc":"client/src/pages/AIAgents.tsx:455",className:"ml-auto flex items-center gap-2",children:[n&&b.jsxDEV(rt,{"data-loc":"client/src/pages/AIAgents.tsx:457",variant:"ghost",size:"sm",className:"text-xs text-muted-foreground gap-1",onClick:R,children:[b.jsxDEV($p,{"data-loc":"client/src/pages/AIAgents.tsx:463",className:"w-3 h-3"},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/AIAgents.tsx",lineNumber:463,columnNumber:21},this),"新对话"]},void 0,!0,{fileName:"/home/ubuntu/nac-admin/client/src/pages/AIAgents.tsx",lineNumber:457,columnNumber:19},this),b.jsxDEV(rt,{"data-loc":"client/src/pages/AIAgents.tsx:467",variant:"ghost",size:"sm",className:"text-xs text-muted-foreground",onClick:()=>{s([]),r(null)},children:"清空"},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/AIAgents.tsx",lineNumber:467,columnNumber:17},this)]},void 0,!0,{fileName:"/home/ubuntu/nac-admin/client/src/pages/AIAgents.tsx",lineNumber:455,columnNumber:15},this)]},void 0,!0,{fileName:"/home/ubuntu/nac-admin/client/src/pages/AIAgents.tsx",lineNumber:435,columnNumber:13},this),C.isLoading&&n&&b.jsxDEV("div",{"data-loc":"client/src/pages/AIAgents.tsx:480",className:"flex items-center justify-center py-4 text-xs text-muted-foreground gap-2",children:[b.jsxDEV(_r,{"data-loc":"client/src/pages/AIAgents.tsx:481",className:"w-3.5 h-3.5 animate-spin"},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/AIAgents.tsx",lineNumber:481,columnNumber:17},this),"正在加载历史消息..."]},void 0,!0,{fileName:"/home/ubuntu/nac-admin/client/src/pages/AIAgents.tsx",lineNumber:480,columnNumber:15},this),b.jsxDEV("div",{"data-loc":"client/src/pages/AIAgents.tsx:487",className:"flex-1 overflow-y-auto p-4 space-y-4",children:[o.length===0&&!C.isLoading&&z&&b.jsxDEV("div",{"data-loc":"client/src/pages/AIAgents.tsx:489",className:"text-center py-8",children:[b.jsxDEV("p",{"data-loc":"client/src/pages/AIAgents.tsx:490",className:"text-sm text-muted-foreground mb-4",children:"建议提问:"},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/AIAgents.tsx",lineNumber:490,columnNumber:19},this),b.jsxDEV("div",{"data-loc":"client/src/pages/AIAgents.tsx:491",className:"flex flex-wrap gap-2 justify-center",children:z.suggestedQuestions.map((V,F)=>b.jsxDEV("button",{"data-loc":"client/src/pages/AIAgents.tsx:493",onClick:()=>u(V),className:"text-xs border rounded-full px-3 py-1.5 hover:bg-muted transition-colors text-left",children:V},F,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/AIAgents.tsx",lineNumber:493,columnNumber:23},this))},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/AIAgents.tsx",lineNumber:491,columnNumber:19},this)]},void 0,!0,{fileName:"/home/ubuntu/nac-admin/client/src/pages/AIAgents.tsx",lineNumber:489,columnNumber:17},this),o.map((V,F)=>b.jsxDEV(bAe,{"data-loc":"client/src/pages/AIAgents.tsx:506",msg:V,onSourceClick:y},F,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/AIAgents.tsx",lineNumber:506,columnNumber:17},this)),P.isPending&&b.jsxDEV("div",{"data-loc":"client/src/pages/AIAgents.tsx:510",className:"flex gap-3",children:[b.jsxDEV("div",{"data-loc":"client/src/pages/AIAgents.tsx:511",className:"w-8 h-8 rounded-full bg-muted flex items-center justify-center shrink-0",children:b.jsxDEV(Nd,{"data-loc":"client/src/pages/AIAgents.tsx:512",className:"w-4 h-4"},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/AIAgents.tsx",lineNumber:512,columnNumber:21},this)},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/AIAgents.tsx",lineNumber:511,columnNumber:19},this),b.jsxDEV("div",{"data-loc":"client/src/pages/AIAgents.tsx:514",className:"bg-muted rounded-2xl rounded-tl-sm px-4 py-3",children:b.jsxDEV(_r,{"data-loc":"client/src/pages/AIAgents.tsx:515",className:"w-4 h-4 animate-spin text-muted-foreground"},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/AIAgents.tsx",lineNumber:515,columnNumber:21},this)},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/AIAgents.tsx",lineNumber:514,columnNumber:19},this)]},void 0,!0,{fileName:"/home/ubuntu/nac-admin/client/src/pages/AIAgents.tsx",lineNumber:510,columnNumber:17},this),b.jsxDEV("div",{"data-loc":"client/src/pages/AIAgents.tsx:519",ref:g},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/AIAgents.tsx",lineNumber:519,columnNumber:15},this)]},void 0,!0,{fileName:"/home/ubuntu/nac-admin/client/src/pages/AIAgents.tsx",lineNumber:487,columnNumber:13},this),b.jsxDEV("div",{"data-loc":"client/src/pages/AIAgents.tsx:523",className:"border-t p-4 bg-background",children:[b.jsxDEV("div",{"data-loc":"client/src/pages/AIAgents.tsx:524",className:"flex gap-2 items-end",children:[b.jsxDEV(uf,{"data-loc":"client/src/pages/AIAgents.tsx:525",value:c,onChange:V=>u(V.target.value),onKeyDown:$,placeholder:`向${z?.name||"AI助手"}提问... (Enter发送,Shift+Enter换行)`,className:"flex-1 min-h-[60px] max-h-[120px] resize-none text-sm",disabled:P.isPending},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/AIAgents.tsx",lineNumber:525,columnNumber:17},this),b.jsxDEV(rt,{"data-loc":"client/src/pages/AIAgents.tsx:533",onClick:M,disabled:!c.trim()||P.isPending,size:"icon",className:"h-10 w-10 shrink-0",children:P.isPending?b.jsxDEV(_r,{"data-loc":"client/src/pages/AIAgents.tsx:540",className:"w-4 h-4 animate-spin"},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/AIAgents.tsx",lineNumber:540,columnNumber:23},this):b.jsxDEV(Kz,{"data-loc":"client/src/pages/AIAgents.tsx:541",className:"w-4 h-4"},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/AIAgents.tsx",lineNumber:541,columnNumber:23},this)},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/AIAgents.tsx",lineNumber:533,columnNumber:17},this)]},void 0,!0,{fileName:"/home/ubuntu/nac-admin/client/src/pages/AIAgents.tsx",lineNumber:524,columnNumber:15},this),b.jsxDEV("p",{"data-loc":"client/src/pages/AIAgents.tsx:545",className:"text-xs text-muted-foreground mt-1.5",children:"AI回答仅供参考,重要合规决策请咨询专业法律顾问 · 对话历史已自动保存"},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/AIAgents.tsx",lineNumber:545,columnNumber:15},this)]},void 0,!0,{fileName:"/home/ubuntu/nac-admin/client/src/pages/AIAgents.tsx",lineNumber:523,columnNumber:13},this)]},void 0,!0,{fileName:"/home/ubuntu/nac-admin/client/src/pages/AIAgents.tsx",lineNumber:433,columnNumber:11},this):b.jsxDEV("div",{"data-loc":"client/src/pages/AIAgents.tsx:405",className:"flex-1 flex items-center justify-center p-8",children:b.jsxDEV("div",{"data-loc":"client/src/pages/AIAgents.tsx:406",className:"text-center max-w-md",children:[b.jsxDEV("div",{"data-loc":"client/src/pages/AIAgents.tsx:407",className:"w-16 h-16 rounded-2xl bg-primary/10 flex items-center justify-center mx-auto mb-4",children:b.jsxDEV(CC,{"data-loc":"client/src/pages/AIAgents.tsx:408",className:"w-8 h-8 text-primary"},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/AIAgents.tsx",lineNumber:408,columnNumber:17},this)},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/AIAgents.tsx",lineNumber:407,columnNumber:15},this),b.jsxDEV("h3",{"data-loc":"client/src/pages/AIAgents.tsx:410",className:"text-lg font-semibold mb-2",children:"NAC AI智能体系统"},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/AIAgents.tsx",lineNumber:410,columnNumber:15},this),b.jsxDEV("p",{"data-loc":"client/src/pages/AIAgents.tsx:411",className:"text-sm text-muted-foreground mb-6",children:"选择左侧的智能体开始对话。对话历史将自动保存到数据库,支持跨会话续接。"},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/AIAgents.tsx",lineNumber:411,columnNumber:15},this),b.jsxDEV("div",{"data-loc":"client/src/pages/AIAgents.tsx:414",className:"grid grid-cols-2 gap-3",children:x?.agents.map(V=>{const F=Qb[V.icon]||Nd;return b.jsxDEV("button",{"data-loc":"client/src/pages/AIAgents.tsx:418",onClick:()=>A(V.type),className:"border rounded-xl p-3 text-left hover:border-primary hover:bg-primary/5 transition-all",children:[b.jsxDEV(F,{"data-loc":"client/src/pages/AIAgents.tsx:423",className:"w-5 h-5 text-primary mb-2"},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/AIAgents.tsx",lineNumber:423,columnNumber:23},this),b.jsxDEV("p",{"data-loc":"client/src/pages/AIAgents.tsx:424",className:"text-sm font-medium",children:V.name},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/AIAgents.tsx",lineNumber:424,columnNumber:23},this),b.jsxDEV("p",{"data-loc":"client/src/pages/AIAgents.tsx:425",className:"text-xs text-muted-foreground mt-0.5 line-clamp-2",children:V.description},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/AIAgents.tsx",lineNumber:425,columnNumber:23},this)]},V.type,!0,{fileName:"/home/ubuntu/nac-admin/client/src/pages/AIAgents.tsx",lineNumber:418,columnNumber:21},this)})},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/AIAgents.tsx",lineNumber:414,columnNumber:15},this)]},void 0,!0,{fileName:"/home/ubuntu/nac-admin/client/src/pages/AIAgents.tsx",lineNumber:406,columnNumber:13},this)},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/AIAgents.tsx",lineNumber:405,columnNumber:11},this)},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/AIAgents.tsx",lineNumber:402,columnNumber:7},this)]},void 0,!0,{fileName:"/home/ubuntu/nac-admin/client/src/pages/AIAgents.tsx",lineNumber:310,columnNumber:5},this)}function NAe({name:e,envKey:t,configured:n,description:r,docUrl:o,onTest:s,isTesting:c}){return b.jsxDEV(At,{"data-loc":"client/src/pages/NotificationSettings.tsx:25",className:`border ${n?"border-green-500/30 bg-green-500/5":"border-border"}`,children:[b.jsxDEV(ha,{"data-loc":"client/src/pages/NotificationSettings.tsx:26",className:"pb-3",children:[b.jsxDEV("div",{"data-loc":"client/src/pages/NotificationSettings.tsx:27",className:"flex items-center justify-between",children:[b.jsxDEV(pa,{"data-loc":"client/src/pages/NotificationSettings.tsx:28",className:"text-sm font-semibold",children:e},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/NotificationSettings.tsx",lineNumber:28,columnNumber:11},this),b.jsxDEV(za,{"data-loc":"client/src/pages/NotificationSettings.tsx:29",variant:n?"default":"secondary",className:"text-xs",children:n?b.jsxDEV(b.Fragment,{children:[b.jsxDEV(mi,{"data-loc":"client/src/pages/NotificationSettings.tsx:30",className:"w-3 h-3 mr-1"},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/NotificationSettings.tsx",lineNumber:30,columnNumber:29},this),"已配置"]},void 0,!0,{fileName:"/home/ubuntu/nac-admin/client/src/pages/NotificationSettings.tsx",lineNumber:30,columnNumber:27},this):b.jsxDEV(b.Fragment,{children:[b.jsxDEV(Kh,{"data-loc":"client/src/pages/NotificationSettings.tsx:30",className:"w-3 h-3 mr-1"},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/NotificationSettings.tsx",lineNumber:30,columnNumber:137},this),"未配置"]},void 0,!0,{fileName:"/home/ubuntu/nac-admin/client/src/pages/NotificationSettings.tsx",lineNumber:30,columnNumber:135},this)},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/NotificationSettings.tsx",lineNumber:29,columnNumber:11},this)]},void 0,!0,{fileName:"/home/ubuntu/nac-admin/client/src/pages/NotificationSettings.tsx",lineNumber:27,columnNumber:9},this),b.jsxDEV(Bz,{"data-loc":"client/src/pages/NotificationSettings.tsx:33",className:"text-xs",children:r},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/NotificationSettings.tsx",lineNumber:33,columnNumber:9},this)]},void 0,!0,{fileName:"/home/ubuntu/nac-admin/client/src/pages/NotificationSettings.tsx",lineNumber:26,columnNumber:7},this),b.jsxDEV(Ot,{"data-loc":"client/src/pages/NotificationSettings.tsx:35",className:"space-y-3",children:[b.jsxDEV("div",{"data-loc":"client/src/pages/NotificationSettings.tsx:36",className:"bg-muted rounded-md p-2.5",children:b.jsxDEV("p",{"data-loc":"client/src/pages/NotificationSettings.tsx:37",className:"text-xs font-mono text-muted-foreground",children:t},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/NotificationSettings.tsx",lineNumber:37,columnNumber:11},this)},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/NotificationSettings.tsx",lineNumber:36,columnNumber:9},this),b.jsxDEV("div",{"data-loc":"client/src/pages/NotificationSettings.tsx:39",className:"flex items-center gap-2",children:[b.jsxDEV(rt,{"data-loc":"client/src/pages/NotificationSettings.tsx:40",variant:"outline",size:"sm",className:"text-xs",onClick:s,disabled:!n||c,children:[c?b.jsxDEV(_r,{"data-loc":"client/src/pages/NotificationSettings.tsx:47",className:"w-3 h-3 mr-1 animate-spin"},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/NotificationSettings.tsx",lineNumber:47,columnNumber:26},this):b.jsxDEV(Kz,{"data-loc":"client/src/pages/NotificationSettings.tsx:47",className:"w-3 h-3 mr-1"},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/NotificationSettings.tsx",lineNumber:47,columnNumber:134},this),"发送测试通知"]},void 0,!0,{fileName:"/home/ubuntu/nac-admin/client/src/pages/NotificationSettings.tsx",lineNumber:40,columnNumber:11},this),b.jsxDEV("a",{"data-loc":"client/src/pages/NotificationSettings.tsx:50",href:o,target:"_blank",rel:"noopener noreferrer",className:"text-xs text-primary hover:underline",children:"配置文档 →"},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/NotificationSettings.tsx",lineNumber:50,columnNumber:11},this)]},void 0,!0,{fileName:"/home/ubuntu/nac-admin/client/src/pages/NotificationSettings.tsx",lineNumber:39,columnNumber:9},this),!n&&b.jsxDEV("p",{"data-loc":"client/src/pages/NotificationSettings.tsx:60",className:"text-xs text-muted-foreground bg-muted/50 rounded p-2",children:["在生产服务器 ",b.jsxDEV("code",{"data-loc":"client/src/pages/NotificationSettings.tsx:61",className:"font-mono",children:"/opt/nac/nac-admin/.env"},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/NotificationSettings.tsx",lineNumber:61,columnNumber:20},this)," 中添加:",b.jsxDEV("br",{"data-loc":"client/src/pages/NotificationSettings.tsx:61"},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/NotificationSettings.tsx",lineNumber:61,columnNumber:139},this),b.jsxDEV("code",{"data-loc":"client/src/pages/NotificationSettings.tsx:62",className:"font-mono text-primary",children:[t,"=https://..."]},void 0,!0,{fileName:"/home/ubuntu/nac-admin/client/src/pages/NotificationSettings.tsx",lineNumber:62,columnNumber:13},this)]},void 0,!0,{fileName:"/home/ubuntu/nac-admin/client/src/pages/NotificationSettings.tsx",lineNumber:60,columnNumber:11},this)]},void 0,!0,{fileName:"/home/ubuntu/nac-admin/client/src/pages/NotificationSettings.tsx",lineNumber:35,columnNumber:7},this)]},void 0,!0,{fileName:"/home/ubuntu/nac-admin/client/src/pages/NotificationSettings.tsx",lineNumber:25,columnNumber:5},this)}function wAe(){const[e,t]=_.useState(null),{data:n,isLoading:r,refetch:o}=et.notification.webhookStatus.useQuery(),s=et.notification.test.useMutation({onSuccess:(g,h)=>{g.success?gt.success(`${h.channel} 测试通知发送成功`):gt.error(`${h.channel} 测试通知发送失败`),t(null)},onError:g=>{gt.error(`发送失败: ${g.message}`),t(null)}}),c=et.notification.testCrawlerAlert.useMutation({onSuccess:()=>{gt.success("采集器告警测试已发送到所有已配置的渠道")},onError:g=>{gt.error(`发送失败: ${g.message}`)}}),u=g=>{t(g),s.mutate({channel:g})},f=[{name:"企业微信(WeCom)",key:"NAC_NOTIFY_WECOM_URL",configured:n?.wecom||!1,description:"通过企业微信机器人发送Markdown格式告警消息,支持@全体成员(critical级别)",docUrl:"https://developer.work.weixin.qq.com/document/path/91770",channel:"wecom"},{name:"钉钉(DingTalk)",key:"NAC_NOTIFY_DINGTALK_URL",configured:n?.dingtalk||!1,description:"通过钉钉自定义机器人发送Markdown消息,critical级别自动@所有人",docUrl:"https://open.dingtalk.com/document/robots/custom-robot-access",channel:"dingtalk"},{name:"飞书(Feishu/Lark)",key:"NAC_NOTIFY_FEISHU_URL",configured:n?.feishu||!1,description:"通过飞书自定义机器人发送卡片消息,支持彩色标题(绿/黄/红)",docUrl:"https://open.feishu.cn/document/client-docs/bot-v3/add-custom-bot",channel:"feishu"},{name:"通用Webhook",key:"NAC_NOTIFY_WEBHOOK_URL",configured:n?.generic||!1,description:"发送JSON格式通知到任意Webhook端点,适用于自定义告警系统",docUrl:"#",channel:"generic"}],m=f.filter(g=>g.configured).length;return b.jsxDEV("div",{"data-loc":"client/src/pages/NotificationSettings.tsx:146",className:"p-6 space-y-6 max-w-4xl",children:[b.jsxDEV("div",{"data-loc":"client/src/pages/NotificationSettings.tsx:148",children:[b.jsxDEV("div",{"data-loc":"client/src/pages/NotificationSettings.tsx:149",className:"flex items-center gap-2 mb-1",children:[b.jsxDEV(Uz,{"data-loc":"client/src/pages/NotificationSettings.tsx:150",className:"w-5 h-5 text-primary"},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/NotificationSettings.tsx",lineNumber:150,columnNumber:11},this),b.jsxDEV("h1",{"data-loc":"client/src/pages/NotificationSettings.tsx:151",className:"text-xl font-bold",children:"告警通知配置"},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/NotificationSettings.tsx",lineNumber:151,columnNumber:11},this)]},void 0,!0,{fileName:"/home/ubuntu/nac-admin/client/src/pages/NotificationSettings.tsx",lineNumber:149,columnNumber:9},this),b.jsxDEV("p",{"data-loc":"client/src/pages/NotificationSettings.tsx:153",className:"text-sm text-muted-foreground",children:"配置企业微信、钉钉、飞书等国内Webhook渠道,接收采集器异常、备份失败等系统告警"},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/NotificationSettings.tsx",lineNumber:153,columnNumber:9},this)]},void 0,!0,{fileName:"/home/ubuntu/nac-admin/client/src/pages/NotificationSettings.tsx",lineNumber:148,columnNumber:7},this),b.jsxDEV(At,{"data-loc":"client/src/pages/NotificationSettings.tsx:159",children:b.jsxDEV(Ot,{"data-loc":"client/src/pages/NotificationSettings.tsx:160",className:"pt-4",children:b.jsxDEV("div",{"data-loc":"client/src/pages/NotificationSettings.tsx:161",className:"flex items-center gap-4",children:[b.jsxDEV("div",{"data-loc":"client/src/pages/NotificationSettings.tsx:162",className:`w-10 h-10 rounded-full flex items-center justify-center ${m>0?"bg-green-500/10":"bg-yellow-500/10"}`,children:m>0?b.jsxDEV(mi,{"data-loc":"client/src/pages/NotificationSettings.tsx:164",className:"w-5 h-5 text-green-600"},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/NotificationSettings.tsx",lineNumber:164,columnNumber:19},this):b.jsxDEV(Lc,{"data-loc":"client/src/pages/NotificationSettings.tsx:165",className:"w-5 h-5 text-yellow-600"},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/NotificationSettings.tsx",lineNumber:165,columnNumber:19},this)},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/NotificationSettings.tsx",lineNumber:162,columnNumber:13},this),b.jsxDEV("div",{"data-loc":"client/src/pages/NotificationSettings.tsx:168",children:[b.jsxDEV("p",{"data-loc":"client/src/pages/NotificationSettings.tsx:169",className:"text-sm font-medium",children:m>0?`已配置 ${m} 个通知渠道`:"尚未配置任何通知渠道"},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/NotificationSettings.tsx",lineNumber:169,columnNumber:15},this),b.jsxDEV("p",{"data-loc":"client/src/pages/NotificationSettings.tsx:175",className:"text-xs text-muted-foreground",children:m>0?"所有已配置的渠道都会收到告警通知(不是只发一个)":"配置至少一个渠道以接收系统告警"},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/NotificationSettings.tsx",lineNumber:175,columnNumber:15},this)]},void 0,!0,{fileName:"/home/ubuntu/nac-admin/client/src/pages/NotificationSettings.tsx",lineNumber:168,columnNumber:13},this),m>0&&b.jsxDEV(rt,{"data-loc":"client/src/pages/NotificationSettings.tsx:183",variant:"outline",size:"sm",className:"ml-auto text-xs",onClick:()=>c.mutate(),disabled:c.isPending,children:[c.isPending?b.jsxDEV(_r,{"data-loc":"client/src/pages/NotificationSettings.tsx:191",className:"w-3 h-3 mr-1 animate-spin"},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/NotificationSettings.tsx",lineNumber:191,columnNumber:21},this):b.jsxDEV(Lc,{"data-loc":"client/src/pages/NotificationSettings.tsx:192",className:"w-3 h-3 mr-1"},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/NotificationSettings.tsx",lineNumber:192,columnNumber:21},this),"模拟采集器告警"]},void 0,!0,{fileName:"/home/ubuntu/nac-admin/client/src/pages/NotificationSettings.tsx",lineNumber:183,columnNumber:15},this)]},void 0,!0,{fileName:"/home/ubuntu/nac-admin/client/src/pages/NotificationSettings.tsx",lineNumber:161,columnNumber:11},this)},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/NotificationSettings.tsx",lineNumber:160,columnNumber:9},this)},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/NotificationSettings.tsx",lineNumber:159,columnNumber:7},this),b.jsxDEV(At,{"data-loc":"client/src/pages/NotificationSettings.tsx:202",children:[b.jsxDEV(ha,{"data-loc":"client/src/pages/NotificationSettings.tsx:203",className:"pb-3",children:b.jsxDEV(pa,{"data-loc":"client/src/pages/NotificationSettings.tsx:204",className:"text-sm flex items-center gap-2",children:[b.jsxDEV(P_,{"data-loc":"client/src/pages/NotificationSettings.tsx:205",className:"w-4 h-4 text-primary"},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/NotificationSettings.tsx",lineNumber:205,columnNumber:13},this),"告警触发场景"]},void 0,!0,{fileName:"/home/ubuntu/nac-admin/client/src/pages/NotificationSettings.tsx",lineNumber:204,columnNumber:11},this)},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/NotificationSettings.tsx",lineNumber:203,columnNumber:9},this),b.jsxDEV(Ot,{"data-loc":"client/src/pages/NotificationSettings.tsx:209",children:b.jsxDEV("div",{"data-loc":"client/src/pages/NotificationSettings.tsx:210",className:"grid grid-cols-2 gap-3 text-xs",children:[{level:"error",label:"采集器异常",desc:"任意采集器连接失败或抓取错误"},{level:"critical",label:"MongoDB备份失败",desc:"每日凌晨3点备份任务失败"},{level:"warning",label:"审批案例告警",desc:"高风险案例或超期未处理"},{level:"info",label:"归档任务完成",desc:"每月1日案例库归档完成通知"}].map(g=>b.jsxDEV("div",{"data-loc":"client/src/pages/NotificationSettings.tsx:217",className:"flex items-start gap-2 p-2 bg-muted/50 rounded-lg",children:[b.jsxDEV(za,{"data-loc":"client/src/pages/NotificationSettings.tsx:218",variant:"outline",className:`text-xs shrink-0 ${g.level==="critical"?"border-red-500 text-red-500":g.level==="error"?"border-orange-500 text-orange-500":g.level==="warning"?"border-yellow-500 text-yellow-500":"border-green-500 text-green-500"}`,children:g.level},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/NotificationSettings.tsx",lineNumber:218,columnNumber:17},this),b.jsxDEV("div",{"data-loc":"client/src/pages/NotificationSettings.tsx:229",children:[b.jsxDEV("p",{"data-loc":"client/src/pages/NotificationSettings.tsx:230",className:"font-medium",children:g.label},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/NotificationSettings.tsx",lineNumber:230,columnNumber:19},this),b.jsxDEV("p",{"data-loc":"client/src/pages/NotificationSettings.tsx:231",className:"text-muted-foreground",children:g.desc},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/NotificationSettings.tsx",lineNumber:231,columnNumber:19},this)]},void 0,!0,{fileName:"/home/ubuntu/nac-admin/client/src/pages/NotificationSettings.tsx",lineNumber:229,columnNumber:17},this)]},g.label,!0,{fileName:"/home/ubuntu/nac-admin/client/src/pages/NotificationSettings.tsx",lineNumber:217,columnNumber:15},this))},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/NotificationSettings.tsx",lineNumber:210,columnNumber:11},this)},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/NotificationSettings.tsx",lineNumber:209,columnNumber:9},this)]},void 0,!0,{fileName:"/home/ubuntu/nac-admin/client/src/pages/NotificationSettings.tsx",lineNumber:202,columnNumber:7},this),b.jsxDEV("div",{"data-loc":"client/src/pages/NotificationSettings.tsx:240",children:[b.jsxDEV("h2",{"data-loc":"client/src/pages/NotificationSettings.tsx:241",className:"text-sm font-semibold mb-3",children:"通知渠道配置"},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/NotificationSettings.tsx",lineNumber:241,columnNumber:9},this),r?b.jsxDEV("div",{"data-loc":"client/src/pages/NotificationSettings.tsx:243",className:"flex items-center justify-center py-8",children:b.jsxDEV(_r,{"data-loc":"client/src/pages/NotificationSettings.tsx:244",className:"w-5 h-5 animate-spin text-muted-foreground"},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/NotificationSettings.tsx",lineNumber:244,columnNumber:13},this)},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/NotificationSettings.tsx",lineNumber:243,columnNumber:11},this):b.jsxDEV("div",{"data-loc":"client/src/pages/NotificationSettings.tsx:247",className:"grid grid-cols-2 gap-4",children:f.map(g=>b.jsxDEV(NAe,{"data-loc":"client/src/pages/NotificationSettings.tsx:249",name:g.name,envKey:g.key,configured:g.configured,description:g.description,docUrl:g.docUrl,onTest:()=>u(g.channel),isTesting:e===g.channel},g.key,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/NotificationSettings.tsx",lineNumber:249,columnNumber:15},this))},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/NotificationSettings.tsx",lineNumber:247,columnNumber:11},this)]},void 0,!0,{fileName:"/home/ubuntu/nac-admin/client/src/pages/NotificationSettings.tsx",lineNumber:240,columnNumber:7},this),b.jsxDEV(At,{"data-loc":"client/src/pages/NotificationSettings.tsx:265",className:"border-dashed",children:b.jsxDEV(Ot,{"data-loc":"client/src/pages/NotificationSettings.tsx:266",className:"pt-4",children:b.jsxDEV("p",{"data-loc":"client/src/pages/NotificationSettings.tsx:267",className:"text-xs text-muted-foreground leading-relaxed",children:[b.jsxDEV("strong",{"data-loc":"client/src/pages/NotificationSettings.tsx:268",children:"配置方式:"},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/NotificationSettings.tsx",lineNumber:268,columnNumber:13},this),"在生产服务器上编辑 ",b.jsxDEV("code",{"data-loc":"client/src/pages/NotificationSettings.tsx:268",className:"font-mono bg-muted px-1 rounded",children:"/opt/nac/nac-admin/.env"},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/NotificationSettings.tsx",lineNumber:268,columnNumber:102},this),", 添加对应的Webhook URL后重启服务(",b.jsxDEV("code",{"data-loc":"client/src/pages/NotificationSettings.tsx:269",className:"font-mono bg-muted px-1 rounded",children:"systemctl restart nac-admin"},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/NotificationSettings.tsx",lineNumber:269,columnNumber:35},this),")。 所有已配置的渠道都会同时收到通知,无需选择。"]},void 0,!0,{fileName:"/home/ubuntu/nac-admin/client/src/pages/NotificationSettings.tsx",lineNumber:267,columnNumber:11},this)},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/NotificationSettings.tsx",lineNumber:266,columnNumber:9},this)},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/NotificationSettings.tsx",lineNumber:265,columnNumber:7},this)]},void 0,!0,{fileName:"/home/ubuntu/nac-admin/client/src/pages/NotificationSettings.tsx",lineNumber:146,columnNumber:5},this)}function C8({className:e,...t}){return b.jsxDEV("div",{"data-loc":"client/src/components/ui/table.tsx:7","data-slot":"table-container",className:"relative w-full overflow-x-auto",children:b.jsxDEV("table",{"data-loc":"client/src/components/ui/table.tsx:11","data-slot":"table",className:wt("w-full caption-bottom text-sm",e),...t},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/components/ui/table.tsx",lineNumber:11,columnNumber:7},this)},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/components/ui/table.tsx",lineNumber:7,columnNumber:5},this)}function T8({className:e,...t}){return b.jsxDEV("thead",{"data-loc":"client/src/components/ui/table.tsx:22","data-slot":"table-header",className:wt("[&_tr]:border-b",e),...t},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/components/ui/table.tsx",lineNumber:22,columnNumber:5},this)}function _8({className:e,...t}){return b.jsxDEV("tbody",{"data-loc":"client/src/components/ui/table.tsx:32","data-slot":"table-body",className:wt("[&_tr:last-child]:border-0",e),...t},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/components/ui/table.tsx",lineNumber:32,columnNumber:5},this)}function Bb({className:e,...t}){return b.jsxDEV("tr",{"data-loc":"client/src/components/ui/table.tsx:55","data-slot":"table-row",className:wt("hover:bg-muted/50 data-[state=selected]:bg-muted border-b transition-colors",e),...t},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/components/ui/table.tsx",lineNumber:55,columnNumber:5},this)}function ai({className:e,...t}){return b.jsxDEV("th",{"data-loc":"client/src/components/ui/table.tsx:68","data-slot":"table-head",className:wt("text-foreground h-10 px-2 text-left align-middle font-medium whitespace-nowrap [&:has([role=checkbox])]:pr-0 [&>[role=checkbox]]:translate-y-[2px]",e),...t},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/components/ui/table.tsx",lineNumber:68,columnNumber:5},this)}function ii({className:e,...t}){return b.jsxDEV("td",{"data-loc":"client/src/components/ui/table.tsx:81","data-slot":"table-cell",className:wt("p-2 align-middle whitespace-nowrap [&:has([role=checkbox])]:pr-0 [&>[role=checkbox]]:translate-y-[2px]",e),...t},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/components/ui/table.tsx",lineNumber:81,columnNumber:5},this)}function EAe(e){return e<1e3?`${e}ms`:`${(e/1e3).toFixed(1)}s`}function j8(e){return e?new Date(e).toLocaleString("zh-CN",{timeZone:"Asia/Shanghai"}):"-"}function SAe(){const[e,t]=_.useState("overview"),{data:n,isLoading:r,refetch:o}=et.archive.dryRun.useQuery(),{data:s,isLoading:c,refetch:u}=et.archive.logs.useQuery({limit:20}),{data:f,isLoading:m}=et.archive.listArchived.useQuery({page:1,pageSize:20}),g=et.archive.run.useMutation({onSuccess:y=>{y.success?gt.success(`归档完成:共归档 ${y.archivedCount} 个案例`):gt.warning(`归档部分失败:成功 ${y.archivedCount},失败 ${y.failedCount}`),o(),u()},onError:y=>{gt.error(`归档失败: ${y.message}`)}}),h=()=>{confirm(`确认执行归档?将把超过1年的已完结案例(共 ${n?.totalEligible||0} 个)迁移到归档集合。此操作不可撤销。`)&&g.mutate()};return b.jsxDEV("div",{"data-loc":"client/src/pages/ArchiveManagement.tsx:62",className:"p-6 space-y-6 max-w-5xl",children:[b.jsxDEV("div",{"data-loc":"client/src/pages/ArchiveManagement.tsx:64",children:[b.jsxDEV("div",{"data-loc":"client/src/pages/ArchiveManagement.tsx:65",className:"flex items-center gap-2 mb-1",children:[b.jsxDEV(yd,{"data-loc":"client/src/pages/ArchiveManagement.tsx:66",className:"w-5 h-5 text-primary"},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/ArchiveManagement.tsx",lineNumber:66,columnNumber:11},this),b.jsxDEV("h1",{"data-loc":"client/src/pages/ArchiveManagement.tsx:67",className:"text-xl font-bold",children:"案例库归档管理"},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/ArchiveManagement.tsx",lineNumber:67,columnNumber:11},this)]},void 0,!0,{fileName:"/home/ubuntu/nac-admin/client/src/pages/ArchiveManagement.tsx",lineNumber:65,columnNumber:9},this),b.jsxDEV("p",{"data-loc":"client/src/pages/ArchiveManagement.tsx:69",className:"text-sm text-muted-foreground",children:"将超过1年的已完结审批案例迁移到归档集合,防止主集合数据量持续增长影响查询性能"},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/ArchiveManagement.tsx",lineNumber:69,columnNumber:9},this)]},void 0,!0,{fileName:"/home/ubuntu/nac-admin/client/src/pages/ArchiveManagement.tsx",lineNumber:64,columnNumber:7},this),b.jsxDEV("div",{"data-loc":"client/src/pages/ArchiveManagement.tsx:75",className:"grid grid-cols-3 gap-4",children:[b.jsxDEV(At,{"data-loc":"client/src/pages/ArchiveManagement.tsx:76",children:b.jsxDEV(Ot,{"data-loc":"client/src/pages/ArchiveManagement.tsx:77",className:"pt-4",children:b.jsxDEV("div",{"data-loc":"client/src/pages/ArchiveManagement.tsx:78",className:"flex items-center gap-3",children:[b.jsxDEV("div",{"data-loc":"client/src/pages/ArchiveManagement.tsx:79",className:"w-10 h-10 rounded-lg bg-yellow-500/10 flex items-center justify-center",children:b.jsxDEV(Lc,{"data-loc":"client/src/pages/ArchiveManagement.tsx:80",className:"w-5 h-5 text-yellow-600"},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/ArchiveManagement.tsx",lineNumber:80,columnNumber:17},this)},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/ArchiveManagement.tsx",lineNumber:79,columnNumber:15},this),b.jsxDEV("div",{"data-loc":"client/src/pages/ArchiveManagement.tsx:82",children:[b.jsxDEV("p",{"data-loc":"client/src/pages/ArchiveManagement.tsx:83",className:"text-2xl font-bold",children:r?"...":n?.totalEligible||0},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/ArchiveManagement.tsx",lineNumber:83,columnNumber:17},this),b.jsxDEV("p",{"data-loc":"client/src/pages/ArchiveManagement.tsx:84",className:"text-xs text-muted-foreground",children:"待归档案例"},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/ArchiveManagement.tsx",lineNumber:84,columnNumber:17},this)]},void 0,!0,{fileName:"/home/ubuntu/nac-admin/client/src/pages/ArchiveManagement.tsx",lineNumber:82,columnNumber:15},this)]},void 0,!0,{fileName:"/home/ubuntu/nac-admin/client/src/pages/ArchiveManagement.tsx",lineNumber:78,columnNumber:13},this)},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/ArchiveManagement.tsx",lineNumber:77,columnNumber:11},this)},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/ArchiveManagement.tsx",lineNumber:76,columnNumber:9},this),b.jsxDEV(At,{"data-loc":"client/src/pages/ArchiveManagement.tsx:90",children:b.jsxDEV(Ot,{"data-loc":"client/src/pages/ArchiveManagement.tsx:91",className:"pt-4",children:b.jsxDEV("div",{"data-loc":"client/src/pages/ArchiveManagement.tsx:92",className:"flex items-center gap-3",children:[b.jsxDEV("div",{"data-loc":"client/src/pages/ArchiveManagement.tsx:93",className:"w-10 h-10 rounded-lg bg-blue-500/10 flex items-center justify-center",children:b.jsxDEV(yd,{"data-loc":"client/src/pages/ArchiveManagement.tsx:94",className:"w-5 h-5 text-blue-600"},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/ArchiveManagement.tsx",lineNumber:94,columnNumber:17},this)},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/ArchiveManagement.tsx",lineNumber:93,columnNumber:15},this),b.jsxDEV("div",{"data-loc":"client/src/pages/ArchiveManagement.tsx:96",children:[b.jsxDEV("p",{"data-loc":"client/src/pages/ArchiveManagement.tsx:97",className:"text-2xl font-bold",children:m?"...":f?.total||0},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/ArchiveManagement.tsx",lineNumber:97,columnNumber:17},this),b.jsxDEV("p",{"data-loc":"client/src/pages/ArchiveManagement.tsx:98",className:"text-xs text-muted-foreground",children:"已归档案例"},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/ArchiveManagement.tsx",lineNumber:98,columnNumber:17},this)]},void 0,!0,{fileName:"/home/ubuntu/nac-admin/client/src/pages/ArchiveManagement.tsx",lineNumber:96,columnNumber:15},this)]},void 0,!0,{fileName:"/home/ubuntu/nac-admin/client/src/pages/ArchiveManagement.tsx",lineNumber:92,columnNumber:13},this)},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/ArchiveManagement.tsx",lineNumber:91,columnNumber:11},this)},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/ArchiveManagement.tsx",lineNumber:90,columnNumber:9},this),b.jsxDEV(At,{"data-loc":"client/src/pages/ArchiveManagement.tsx:104",children:b.jsxDEV(Ot,{"data-loc":"client/src/pages/ArchiveManagement.tsx:105",className:"pt-4",children:b.jsxDEV("div",{"data-loc":"client/src/pages/ArchiveManagement.tsx:106",className:"flex items-center gap-3",children:[b.jsxDEV("div",{"data-loc":"client/src/pages/ArchiveManagement.tsx:107",className:"w-10 h-10 rounded-lg bg-green-500/10 flex items-center justify-center",children:b.jsxDEV(zae,{"data-loc":"client/src/pages/ArchiveManagement.tsx:108",className:"w-5 h-5 text-green-600"},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/ArchiveManagement.tsx",lineNumber:108,columnNumber:17},this)},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/ArchiveManagement.tsx",lineNumber:107,columnNumber:15},this),b.jsxDEV("div",{"data-loc":"client/src/pages/ArchiveManagement.tsx:110",children:[b.jsxDEV("p",{"data-loc":"client/src/pages/ArchiveManagement.tsx:111",className:"text-2xl font-bold",children:c?"...":s?.length||0},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/ArchiveManagement.tsx",lineNumber:111,columnNumber:17},this),b.jsxDEV("p",{"data-loc":"client/src/pages/ArchiveManagement.tsx:112",className:"text-xs text-muted-foreground",children:"历史归档次数"},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/ArchiveManagement.tsx",lineNumber:112,columnNumber:17},this)]},void 0,!0,{fileName:"/home/ubuntu/nac-admin/client/src/pages/ArchiveManagement.tsx",lineNumber:110,columnNumber:15},this)]},void 0,!0,{fileName:"/home/ubuntu/nac-admin/client/src/pages/ArchiveManagement.tsx",lineNumber:106,columnNumber:13},this)},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/ArchiveManagement.tsx",lineNumber:105,columnNumber:11},this)},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/ArchiveManagement.tsx",lineNumber:104,columnNumber:9},this)]},void 0,!0,{fileName:"/home/ubuntu/nac-admin/client/src/pages/ArchiveManagement.tsx",lineNumber:75,columnNumber:7},this),b.jsxDEV(At,{"data-loc":"client/src/pages/ArchiveManagement.tsx:120",className:"border-blue-500/20 bg-blue-500/5",children:b.jsxDEV(Ot,{"data-loc":"client/src/pages/ArchiveManagement.tsx:121",className:"pt-4",children:b.jsxDEV("div",{"data-loc":"client/src/pages/ArchiveManagement.tsx:122",className:"flex gap-3",children:[b.jsxDEV(P_,{"data-loc":"client/src/pages/ArchiveManagement.tsx:123",className:"w-4 h-4 text-blue-600 shrink-0 mt-0.5"},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/ArchiveManagement.tsx",lineNumber:123,columnNumber:13},this),b.jsxDEV("div",{"data-loc":"client/src/pages/ArchiveManagement.tsx:124",className:"text-xs text-blue-700 space-y-1",children:[b.jsxDEV("p",{"data-loc":"client/src/pages/ArchiveManagement.tsx:125",className:"font-medium",children:"归档策略"},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/ArchiveManagement.tsx",lineNumber:125,columnNumber:15},this),b.jsxDEV("p",{"data-loc":"client/src/pages/ArchiveManagement.tsx:126",children:["• 归档条件:状态为 ",b.jsxDEV("code",{"data-loc":"client/src/pages/ArchiveManagement.tsx:126",className:"bg-blue-100 px-1 rounded",children:"approved"},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/ArchiveManagement.tsx",lineNumber:126,columnNumber:83},this)," 或 ",b.jsxDEV("code",{"data-loc":"client/src/pages/ArchiveManagement.tsx:126",className:"bg-blue-100 px-1 rounded",children:"rejected"},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/ArchiveManagement.tsx",lineNumber:126,columnNumber:198},this),",且最后更新时间超过 365 天"]},void 0,!0,{fileName:"/home/ubuntu/nac-admin/client/src/pages/ArchiveManagement.tsx",lineNumber:126,columnNumber:15},this),b.jsxDEV("p",{"data-loc":"client/src/pages/ArchiveManagement.tsx:127",children:"• 自动执行:每月 1 日凌晨 2:00 由 cron 任务自动触发"},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/ArchiveManagement.tsx",lineNumber:127,columnNumber:15},this),b.jsxDEV("p",{"data-loc":"client/src/pages/ArchiveManagement.tsx:128",children:["• 法律保留:归档集合(",b.jsxDEV("code",{"data-loc":"client/src/pages/ArchiveManagement.tsx:128",className:"bg-blue-100 px-1 rounded",children:"approval_cases_archive"},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/ArchiveManagement.tsx",lineNumber:128,columnNumber:84},this),")永久保留,不自动删除"]},void 0,!0,{fileName:"/home/ubuntu/nac-admin/client/src/pages/ArchiveManagement.tsx",lineNumber:128,columnNumber:15},this),b.jsxDEV("p",{"data-loc":"client/src/pages/ArchiveManagement.tsx:129",children:"• 告警通知:归档完成后自动推送到已配置的 Webhook 渠道"},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/ArchiveManagement.tsx",lineNumber:129,columnNumber:15},this)]},void 0,!0,{fileName:"/home/ubuntu/nac-admin/client/src/pages/ArchiveManagement.tsx",lineNumber:124,columnNumber:13},this)]},void 0,!0,{fileName:"/home/ubuntu/nac-admin/client/src/pages/ArchiveManagement.tsx",lineNumber:122,columnNumber:11},this)},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/ArchiveManagement.tsx",lineNumber:121,columnNumber:9},this)},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/ArchiveManagement.tsx",lineNumber:120,columnNumber:7},this),b.jsxDEV("div",{"data-loc":"client/src/pages/ArchiveManagement.tsx:136",className:"flex items-center gap-3",children:[b.jsxDEV(rt,{"data-loc":"client/src/pages/ArchiveManagement.tsx:137",onClick:h,disabled:g.isPending||n?.totalEligible===0,className:"gap-2",children:[g.isPending?b.jsxDEV(_r,{"data-loc":"client/src/pages/ArchiveManagement.tsx:143",className:"w-4 h-4 animate-spin"},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/ArchiveManagement.tsx",lineNumber:143,columnNumber:15},this):b.jsxDEV(DC,{"data-loc":"client/src/pages/ArchiveManagement.tsx:144",className:"w-4 h-4"},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/ArchiveManagement.tsx",lineNumber:144,columnNumber:15},this),g.isPending?"归档中...":`立即执行归档(${n?.totalEligible||0} 个案例)`]},void 0,!0,{fileName:"/home/ubuntu/nac-admin/client/src/pages/ArchiveManagement.tsx",lineNumber:137,columnNumber:9},this),b.jsxDEV(rt,{"data-loc":"client/src/pages/ArchiveManagement.tsx:148",variant:"outline",size:"sm",onClick:()=>{o(),u()},className:"gap-1",children:[b.jsxDEV(eu,{"data-loc":"client/src/pages/ArchiveManagement.tsx:154",className:"w-3 h-3"},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/ArchiveManagement.tsx",lineNumber:154,columnNumber:11},this),"刷新"]},void 0,!0,{fileName:"/home/ubuntu/nac-admin/client/src/pages/ArchiveManagement.tsx",lineNumber:148,columnNumber:9},this),n?.totalEligible===0&&b.jsxDEV("p",{"data-loc":"client/src/pages/ArchiveManagement.tsx:158",className:"text-xs text-muted-foreground flex items-center gap-1",children:[b.jsxDEV(mi,{"data-loc":"client/src/pages/ArchiveManagement.tsx:159",className:"w-3 h-3 text-green-500"},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/ArchiveManagement.tsx",lineNumber:159,columnNumber:13},this),"当前无需归档的案例"]},void 0,!0,{fileName:"/home/ubuntu/nac-admin/client/src/pages/ArchiveManagement.tsx",lineNumber:158,columnNumber:11},this)]},void 0,!0,{fileName:"/home/ubuntu/nac-admin/client/src/pages/ArchiveManagement.tsx",lineNumber:136,columnNumber:7},this),b.jsxDEV("div",{"data-loc":"client/src/pages/ArchiveManagement.tsx:166",children:[b.jsxDEV("div",{"data-loc":"client/src/pages/ArchiveManagement.tsx:167",className:"flex gap-1 border-b mb-4",children:[{key:"logs",label:"归档历史",icon:vf},{key:"archived",label:"归档案例",icon:yd}].map(y=>{const x=y.icon;return b.jsxDEV("button",{"data-loc":"client/src/pages/ArchiveManagement.tsx:174",onClick:()=>t(y.key),className:`flex items-center gap-1.5 px-4 py-2 text-sm border-b-2 transition-colors ${e===y.key?"border-primary text-primary font-medium":"border-transparent text-muted-foreground hover:text-foreground"}`,children:[b.jsxDEV(x,{"data-loc":"client/src/pages/ArchiveManagement.tsx:183",className:"w-3.5 h-3.5"},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/ArchiveManagement.tsx",lineNumber:183,columnNumber:17},this),y.label]},y.key,!0,{fileName:"/home/ubuntu/nac-admin/client/src/pages/ArchiveManagement.tsx",lineNumber:174,columnNumber:15},this)})},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/ArchiveManagement.tsx",lineNumber:167,columnNumber:9},this),e==="logs"&&b.jsxDEV("div",{"data-loc":"client/src/pages/ArchiveManagement.tsx:192",children:c?b.jsxDEV("div",{"data-loc":"client/src/pages/ArchiveManagement.tsx:194",className:"flex items-center justify-center py-8",children:b.jsxDEV(_r,{"data-loc":"client/src/pages/ArchiveManagement.tsx:195",className:"w-5 h-5 animate-spin text-muted-foreground"},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/ArchiveManagement.tsx",lineNumber:195,columnNumber:17},this)},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/ArchiveManagement.tsx",lineNumber:194,columnNumber:15},this):!s||s.length===0?b.jsxDEV("div",{"data-loc":"client/src/pages/ArchiveManagement.tsx:198",className:"text-center py-12 text-muted-foreground",children:[b.jsxDEV(yd,{"data-loc":"client/src/pages/ArchiveManagement.tsx:199",className:"w-8 h-8 mx-auto mb-2 opacity-30"},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/ArchiveManagement.tsx",lineNumber:199,columnNumber:17},this),b.jsxDEV("p",{"data-loc":"client/src/pages/ArchiveManagement.tsx:200",className:"text-sm",children:"暂无归档历史记录"},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/ArchiveManagement.tsx",lineNumber:200,columnNumber:17},this)]},void 0,!0,{fileName:"/home/ubuntu/nac-admin/client/src/pages/ArchiveManagement.tsx",lineNumber:198,columnNumber:15},this):b.jsxDEV(C8,{"data-loc":"client/src/pages/ArchiveManagement.tsx:203",children:[b.jsxDEV(T8,{"data-loc":"client/src/pages/ArchiveManagement.tsx:204",children:b.jsxDEV(Bb,{"data-loc":"client/src/pages/ArchiveManagement.tsx:205",children:[b.jsxDEV(ai,{"data-loc":"client/src/pages/ArchiveManagement.tsx:206",children:"执行时间"},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/ArchiveManagement.tsx",lineNumber:206,columnNumber:21},this),b.jsxDEV(ai,{"data-loc":"client/src/pages/ArchiveManagement.tsx:207",children:"状态"},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/ArchiveManagement.tsx",lineNumber:207,columnNumber:21},this),b.jsxDEV(ai,{"data-loc":"client/src/pages/ArchiveManagement.tsx:208",children:"符合条件"},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/ArchiveManagement.tsx",lineNumber:208,columnNumber:21},this),b.jsxDEV(ai,{"data-loc":"client/src/pages/ArchiveManagement.tsx:209",children:"已归档"},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/ArchiveManagement.tsx",lineNumber:209,columnNumber:21},this),b.jsxDEV(ai,{"data-loc":"client/src/pages/ArchiveManagement.tsx:210",children:"失败"},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/ArchiveManagement.tsx",lineNumber:210,columnNumber:21},this),b.jsxDEV(ai,{"data-loc":"client/src/pages/ArchiveManagement.tsx:211",children:"耗时"},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/ArchiveManagement.tsx",lineNumber:211,columnNumber:21},this)]},void 0,!0,{fileName:"/home/ubuntu/nac-admin/client/src/pages/ArchiveManagement.tsx",lineNumber:205,columnNumber:19},this)},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/ArchiveManagement.tsx",lineNumber:204,columnNumber:17},this),b.jsxDEV(_8,{"data-loc":"client/src/pages/ArchiveManagement.tsx:214",children:s.map((y,x)=>b.jsxDEV(Bb,{"data-loc":"client/src/pages/ArchiveManagement.tsx:216",children:[b.jsxDEV(ii,{"data-loc":"client/src/pages/ArchiveManagement.tsx:217",className:"text-xs",children:j8(y.executedAt)},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/ArchiveManagement.tsx",lineNumber:217,columnNumber:23},this),b.jsxDEV(ii,{"data-loc":"client/src/pages/ArchiveManagement.tsx:218",children:b.jsxDEV(za,{"data-loc":"client/src/pages/ArchiveManagement.tsx:219",variant:y.success?"default":"destructive",className:"text-xs",children:y.success?b.jsxDEV(b.Fragment,{children:[b.jsxDEV(mi,{"data-loc":"client/src/pages/ArchiveManagement.tsx:220",className:"w-3 h-3 mr-1"},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/ArchiveManagement.tsx",lineNumber:220,columnNumber:44},this),"成功"]},void 0,!0,{fileName:"/home/ubuntu/nac-admin/client/src/pages/ArchiveManagement.tsx",lineNumber:220,columnNumber:42},this):b.jsxDEV(b.Fragment,{children:[b.jsxDEV(Kh,{"data-loc":"client/src/pages/ArchiveManagement.tsx:220",className:"w-3 h-3 mr-1"},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/ArchiveManagement.tsx",lineNumber:220,columnNumber:149},this),"失败"]},void 0,!0,{fileName:"/home/ubuntu/nac-admin/client/src/pages/ArchiveManagement.tsx",lineNumber:220,columnNumber:147},this)},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/ArchiveManagement.tsx",lineNumber:219,columnNumber:25},this)},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/ArchiveManagement.tsx",lineNumber:218,columnNumber:23},this),b.jsxDEV(ii,{"data-loc":"client/src/pages/ArchiveManagement.tsx:223",className:"text-sm",children:y.totalEligible},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/ArchiveManagement.tsx",lineNumber:223,columnNumber:23},this),b.jsxDEV(ii,{"data-loc":"client/src/pages/ArchiveManagement.tsx:224",className:"text-sm text-green-600 font-medium",children:y.archivedCount},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/ArchiveManagement.tsx",lineNumber:224,columnNumber:23},this),b.jsxDEV(ii,{"data-loc":"client/src/pages/ArchiveManagement.tsx:225",className:"text-sm text-red-500",children:y.failedCount||"-"},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/ArchiveManagement.tsx",lineNumber:225,columnNumber:23},this),b.jsxDEV(ii,{"data-loc":"client/src/pages/ArchiveManagement.tsx:226",className:"text-xs text-muted-foreground",children:EAe(y.durationMs)},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/ArchiveManagement.tsx",lineNumber:226,columnNumber:23},this)]},x,!0,{fileName:"/home/ubuntu/nac-admin/client/src/pages/ArchiveManagement.tsx",lineNumber:216,columnNumber:21},this))},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/ArchiveManagement.tsx",lineNumber:214,columnNumber:17},this)]},void 0,!0,{fileName:"/home/ubuntu/nac-admin/client/src/pages/ArchiveManagement.tsx",lineNumber:203,columnNumber:15},this)},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/ArchiveManagement.tsx",lineNumber:192,columnNumber:11},this),e==="archived"&&b.jsxDEV("div",{"data-loc":"client/src/pages/ArchiveManagement.tsx:237",children:m?b.jsxDEV("div",{"data-loc":"client/src/pages/ArchiveManagement.tsx:239",className:"flex items-center justify-center py-8",children:b.jsxDEV(_r,{"data-loc":"client/src/pages/ArchiveManagement.tsx:240",className:"w-5 h-5 animate-spin text-muted-foreground"},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/ArchiveManagement.tsx",lineNumber:240,columnNumber:17},this)},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/ArchiveManagement.tsx",lineNumber:239,columnNumber:15},this):!f||f.total===0?b.jsxDEV("div",{"data-loc":"client/src/pages/ArchiveManagement.tsx:243",className:"text-center py-12 text-muted-foreground",children:[b.jsxDEV(yd,{"data-loc":"client/src/pages/ArchiveManagement.tsx:244",className:"w-8 h-8 mx-auto mb-2 opacity-30"},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/ArchiveManagement.tsx",lineNumber:244,columnNumber:17},this),b.jsxDEV("p",{"data-loc":"client/src/pages/ArchiveManagement.tsx:245",className:"text-sm",children:"归档集合为空"},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/ArchiveManagement.tsx",lineNumber:245,columnNumber:17},this)]},void 0,!0,{fileName:"/home/ubuntu/nac-admin/client/src/pages/ArchiveManagement.tsx",lineNumber:243,columnNumber:15},this):b.jsxDEV(b.Fragment,{children:[b.jsxDEV("p",{"data-loc":"client/src/pages/ArchiveManagement.tsx:249",className:"text-xs text-muted-foreground mb-3",children:["共 ",f.total," 个归档案例(显示最新20条)"]},void 0,!0,{fileName:"/home/ubuntu/nac-admin/client/src/pages/ArchiveManagement.tsx",lineNumber:249,columnNumber:17},this),b.jsxDEV(C8,{"data-loc":"client/src/pages/ArchiveManagement.tsx:250",children:[b.jsxDEV(T8,{"data-loc":"client/src/pages/ArchiveManagement.tsx:251",children:b.jsxDEV(Bb,{"data-loc":"client/src/pages/ArchiveManagement.tsx:252",children:[b.jsxDEV(ai,{"data-loc":"client/src/pages/ArchiveManagement.tsx:253",children:"案例编号"},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/ArchiveManagement.tsx",lineNumber:253,columnNumber:23},this),b.jsxDEV(ai,{"data-loc":"client/src/pages/ArchiveManagement.tsx:254",children:"司法管辖区"},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/ArchiveManagement.tsx",lineNumber:254,columnNumber:23},this),b.jsxDEV(ai,{"data-loc":"client/src/pages/ArchiveManagement.tsx:255",children:"状态"},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/ArchiveManagement.tsx",lineNumber:255,columnNumber:23},this),b.jsxDEV(ai,{"data-loc":"client/src/pages/ArchiveManagement.tsx:256",children:"归档时间"},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/ArchiveManagement.tsx",lineNumber:256,columnNumber:23},this),b.jsxDEV(ai,{"data-loc":"client/src/pages/ArchiveManagement.tsx:257",children:"归档原因"},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/ArchiveManagement.tsx",lineNumber:257,columnNumber:23},this)]},void 0,!0,{fileName:"/home/ubuntu/nac-admin/client/src/pages/ArchiveManagement.tsx",lineNumber:252,columnNumber:21},this)},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/ArchiveManagement.tsx",lineNumber:251,columnNumber:19},this),b.jsxDEV(_8,{"data-loc":"client/src/pages/ArchiveManagement.tsx:260",children:f.items.map((y,x)=>b.jsxDEV(Bb,{"data-loc":"client/src/pages/ArchiveManagement.tsx:262",children:[b.jsxDEV(ii,{"data-loc":"client/src/pages/ArchiveManagement.tsx:263",className:"text-xs font-mono",children:y.caseNumber||y._id?.toString().slice(-8)},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/ArchiveManagement.tsx",lineNumber:263,columnNumber:25},this),b.jsxDEV(ii,{"data-loc":"client/src/pages/ArchiveManagement.tsx:264",children:b.jsxDEV(za,{"data-loc":"client/src/pages/ArchiveManagement.tsx:265",variant:"outline",className:"text-xs",children:y.jurisdiction||"-"},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/ArchiveManagement.tsx",lineNumber:265,columnNumber:27},this)},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/ArchiveManagement.tsx",lineNumber:264,columnNumber:25},this),b.jsxDEV(ii,{"data-loc":"client/src/pages/ArchiveManagement.tsx:267",children:b.jsxDEV(za,{"data-loc":"client/src/pages/ArchiveManagement.tsx:268",variant:y.status==="approved"?"default":"secondary",className:"text-xs",children:y.status==="approved"?"已批准":"已拒绝"},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/ArchiveManagement.tsx",lineNumber:268,columnNumber:27},this)},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/ArchiveManagement.tsx",lineNumber:267,columnNumber:25},this),b.jsxDEV(ii,{"data-loc":"client/src/pages/ArchiveManagement.tsx:275",className:"text-xs",children:y.archivedAt?j8(new Date(y.archivedAt).toISOString()):"-"},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/ArchiveManagement.tsx",lineNumber:275,columnNumber:25},this),b.jsxDEV(ii,{"data-loc":"client/src/pages/ArchiveManagement.tsx:276",className:"text-xs text-muted-foreground",children:y.archiveReason||"-"},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/ArchiveManagement.tsx",lineNumber:276,columnNumber:25},this)]},x,!0,{fileName:"/home/ubuntu/nac-admin/client/src/pages/ArchiveManagement.tsx",lineNumber:262,columnNumber:23},this))},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/ArchiveManagement.tsx",lineNumber:260,columnNumber:19},this)]},void 0,!0,{fileName:"/home/ubuntu/nac-admin/client/src/pages/ArchiveManagement.tsx",lineNumber:250,columnNumber:17},this)]},void 0,!0,{fileName:"/home/ubuntu/nac-admin/client/src/pages/ArchiveManagement.tsx",lineNumber:248,columnNumber:15},this)},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/ArchiveManagement.tsx",lineNumber:237,columnNumber:11},this)]},void 0,!0,{fileName:"/home/ubuntu/nac-admin/client/src/pages/ArchiveManagement.tsx",lineNumber:166,columnNumber:7},this)]},void 0,!0,{fileName:"/home/ubuntu/nac-admin/client/src/pages/ArchiveManagement.tsx",lineNumber:62,columnNumber:5},this)}function Xi({children:e}){const[t,n]=_x(),{t:r}=yx(),o=[{path:"/",icon:Xae,label:r("nav.dashboard"),desc:r("dashboard.subtitle").slice(0,8)+"..."},{path:"/knowledge",icon:R_,label:r("nav.knowledgeBase"),desc:r("knowledgeBase.subtitle").slice(0,6)+"..."},{path:"/crawlers",icon:tie,label:r("nav.crawlers"),desc:r("crawlers.subtitle").slice(0,6)+"..."},{path:"/approvals",icon:Kae,label:r("nav.approvalCases"),desc:r("approvals.subtitle").slice(0,6)+"..."},{path:"/tags",icon:Gz,label:r("nav.tagEngine"),desc:r("tagEngine.subtitle").slice(0,6)+"..."},{path:"/protocols",icon:Th,label:r("nav.protocolRegistry"),desc:r("protocols.subtitle").slice(0,6)+"..."},{path:"/audit",icon:bl,label:r("nav.auditLog"),desc:r("audit.subtitle").slice(0,6)+"..."},{path:"/ai-agents",icon:CC,label:"AI智能体",desc:"合规问答·分析"},{path:"/notifications",icon:Uz,label:"告警通知",desc:"企微·钉钉·飞书"},{path:"/archive",icon:yd,label:"案例归档",desc:"历史案例管理"}],{data:s,isLoading:c}=et.nacAuth.me.useQuery(void 0,{retry:!1,refetchOnWindowFocus:!1}),u=et.nacAuth.logout.useMutation({onSuccess:()=>{n("/login"),gt.success(r("auth.logoutSuccess"))}});if(_.useEffect(()=>{!c&&!s&&n("/login")},[c,s,n]),c)return b.jsxDEV("div",{"data-loc":"client/src/components/AdminLayout.tsx:55",className:"min-h-screen bg-background flex items-center justify-center",children:b.jsxDEV("div",{"data-loc":"client/src/components/AdminLayout.tsx:56",className:"flex flex-col items-center gap-3",children:[b.jsxDEV("div",{"data-loc":"client/src/components/AdminLayout.tsx:57",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:57,columnNumber:11},this),b.jsxDEV("p",{"data-loc":"client/src/components/AdminLayout.tsx:58",className:"text-sm text-muted-foreground",children:r("auth.verifying")},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/components/AdminLayout.tsx",lineNumber:58,columnNumber:11},this)]},void 0,!0,{fileName:"/home/ubuntu/nac-admin/client/src/components/AdminLayout.tsx",lineNumber:56,columnNumber:9},this)},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/components/AdminLayout.tsx",lineNumber:55,columnNumber:7},this);if(!s)return null;const f=s;return b.jsxDEV("div",{"data-loc":"client/src/components/AdminLayout.tsx:69",className:"min-h-screen bg-background flex",children:[b.jsxDEV("aside",{"data-loc":"client/src/components/AdminLayout.tsx:71",className:"w-60 shrink-0 bg-card border-r border-border/50 flex flex-col",children:[b.jsxDEV("div",{"data-loc":"client/src/components/AdminLayout.tsx:73",className:"h-14 flex items-center px-4 border-b border-border/50 gap-3",children:[b.jsxDEV("div",{"data-loc":"client/src/components/AdminLayout.tsx:74",className:"w-8 h-8 rounded-lg nac-gradient flex items-center justify-center shrink-0",children:b.jsxDEV(Ic,{"data-loc":"client/src/components/AdminLayout.tsx:75",className:"w-4 h-4 text-white"},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/components/AdminLayout.tsx",lineNumber:75,columnNumber:13},this)},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/components/AdminLayout.tsx",lineNumber:74,columnNumber:11},this),b.jsxDEV("div",{"data-loc":"client/src/components/AdminLayout.tsx:77",className:"overflow-hidden",children:[b.jsxDEV("p",{"data-loc":"client/src/components/AdminLayout.tsx:78",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:78,columnNumber:13},this),b.jsxDEV("p",{"data-loc":"client/src/components/AdminLayout.tsx:79",className:"text-xs text-muted-foreground",children:r("nav.systemSubtitle")},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/components/AdminLayout.tsx",lineNumber:79,columnNumber:13},this)]},void 0,!0,{fileName:"/home/ubuntu/nac-admin/client/src/components/AdminLayout.tsx",lineNumber:77,columnNumber:11},this)]},void 0,!0,{fileName:"/home/ubuntu/nac-admin/client/src/components/AdminLayout.tsx",lineNumber:73,columnNumber:9},this),b.jsxDEV("nav",{"data-loc":"client/src/components/AdminLayout.tsx:84",className:"flex-1 p-2 space-y-0.5 overflow-y-auto",children:o.map(m=>{const g=t===m.path;return b.jsxDEV(_ie,{"data-loc":"client/src/components/AdminLayout.tsx:88",href:m.path,children:b.jsxDEV("div",{"data-loc":"client/src/components/AdminLayout.tsx:89",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:[b.jsxDEV(m.icon,{"data-loc":"client/src/components/AdminLayout.tsx:95",className:`w-4 h-4 shrink-0 ${g?"text-primary":""}`},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/components/AdminLayout.tsx",lineNumber:95,columnNumber:19},this),b.jsxDEV("div",{"data-loc":"client/src/components/AdminLayout.tsx:96",className:"flex-1 overflow-hidden",children:b.jsxDEV("p",{"data-loc":"client/src/components/AdminLayout.tsx:97",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:97,columnNumber:21},this)},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/components/AdminLayout.tsx",lineNumber:96,columnNumber:19},this),g&&b.jsxDEV(qz,{"data-loc":"client/src/components/AdminLayout.tsx:99",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:99,columnNumber:32},this)]},void 0,!0,{fileName:"/home/ubuntu/nac-admin/client/src/components/AdminLayout.tsx",lineNumber:89,columnNumber:17},this)},m.path,!1,{fileName:"/home/ubuntu/nac-admin/client/src/components/AdminLayout.tsx",lineNumber:88,columnNumber:15},this)})},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/components/AdminLayout.tsx",lineNumber:84,columnNumber:9},this),b.jsxDEV("div",{"data-loc":"client/src/components/AdminLayout.tsx:107",className:"p-3 border-t border-border/50",children:b.jsxDEV("div",{"data-loc":"client/src/components/AdminLayout.tsx:108",className:"flex items-center gap-2",children:[b.jsxDEV("div",{"data-loc":"client/src/components/AdminLayout.tsx:109",className:"w-7 h-7 rounded-full nac-gradient flex items-center justify-center shrink-0",children:b.jsxDEV("span",{"data-loc":"client/src/components/AdminLayout.tsx:110",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:110,columnNumber:15},this)},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/components/AdminLayout.tsx",lineNumber:109,columnNumber:13},this),b.jsxDEV("div",{"data-loc":"client/src/components/AdminLayout.tsx:114",className:"flex-1 overflow-hidden",children:[b.jsxDEV("p",{"data-loc":"client/src/components/AdminLayout.tsx:115",className:"text-xs font-medium truncate",children:f.email},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/components/AdminLayout.tsx",lineNumber:115,columnNumber:15},this),b.jsxDEV("p",{"data-loc":"client/src/components/AdminLayout.tsx:116",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:116,columnNumber:15},this)]},void 0,!0,{fileName:"/home/ubuntu/nac-admin/client/src/components/AdminLayout.tsx",lineNumber:114,columnNumber:13},this),b.jsxDEV(rt,{"data-loc":"client/src/components/AdminLayout.tsx:118",variant:"ghost",size:"sm",className:"h-7 w-7 p-0 text-muted-foreground hover:text-destructive shrink-0",onClick:()=>u.mutate(),title:r("auth.logout"),children:b.jsxDEV(Zae,{"data-loc":"client/src/components/AdminLayout.tsx:124",className:"w-3.5 h-3.5"},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/components/AdminLayout.tsx",lineNumber:124,columnNumber:15},this)},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/components/AdminLayout.tsx",lineNumber:118,columnNumber:13},this)]},void 0,!0,{fileName:"/home/ubuntu/nac-admin/client/src/components/AdminLayout.tsx",lineNumber:108,columnNumber:11},this)},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/components/AdminLayout.tsx",lineNumber:107,columnNumber:9},this)]},void 0,!0,{fileName:"/home/ubuntu/nac-admin/client/src/components/AdminLayout.tsx",lineNumber:71,columnNumber:7},this),b.jsxDEV("main",{"data-loc":"client/src/components/AdminLayout.tsx:131",className:"flex-1 overflow-auto min-w-0",children:[b.jsxDEV("div",{"data-loc":"client/src/components/AdminLayout.tsx:133",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:[b.jsxDEV("div",{"data-loc":"client/src/components/AdminLayout.tsx:134",className:"flex-1",children:o.find(m=>m.path===t)&&b.jsxDEV("p",{"data-loc":"client/src/components/AdminLayout.tsx:136",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:136,columnNumber:15},this)},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/components/AdminLayout.tsx",lineNumber:134,columnNumber:11},this),b.jsxDEV("div",{"data-loc":"client/src/components/AdminLayout.tsx:141",className:"flex items-center gap-3",children:[b.jsxDEV(bq,{"data-loc":"client/src/components/AdminLayout.tsx:143",variant:"icon"},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/components/AdminLayout.tsx",lineNumber:143,columnNumber:13},this),b.jsxDEV("div",{"data-loc":"client/src/components/AdminLayout.tsx:144",className:"w-px h-4 bg-border/50"},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/components/AdminLayout.tsx",lineNumber:144,columnNumber:13},this),b.jsxDEV("div",{"data-loc":"client/src/components/AdminLayout.tsx:145",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:145,columnNumber:13},this),b.jsxDEV("span",{"data-loc":"client/src/components/AdminLayout.tsx:146",className:"text-xs text-muted-foreground",children:r("dashboard.allSystemsNormal")},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/components/AdminLayout.tsx",lineNumber:146,columnNumber:13},this)]},void 0,!0,{fileName:"/home/ubuntu/nac-admin/client/src/components/AdminLayout.tsx",lineNumber:141,columnNumber:11},this)]},void 0,!0,{fileName:"/home/ubuntu/nac-admin/client/src/components/AdminLayout.tsx",lineNumber:133,columnNumber:9},this),e]},void 0,!0,{fileName:"/home/ubuntu/nac-admin/client/src/components/AdminLayout.tsx",lineNumber:131,columnNumber:7},this)]},void 0,!0,{fileName:"/home/ubuntu/nac-admin/client/src/components/AdminLayout.tsx",lineNumber:69,columnNumber:5},this)}function AAe(){return b.jsxDEV(jie,{"data-loc":"client/src/App.tsx:22",children:[b.jsxDEV(ca,{"data-loc":"client/src/App.tsx:23",path:"/login",component:Ple},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/App.tsx",lineNumber:23,columnNumber:7},this),b.jsxDEV(ca,{"data-loc":"client/src/App.tsx:24",path:"/",component:()=>b.jsxDEV(Xi,{"data-loc":"client/src/App.tsx:24",children:b.jsxDEV(pSe,{"data-loc":"client/src/App.tsx:24"},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/App.tsx",lineNumber:24,columnNumber:119},this)},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/App.tsx",lineNumber:24,columnNumber:73},this)},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/App.tsx",lineNumber:24,columnNumber:7},this),b.jsxDEV(ca,{"data-loc":"client/src/App.tsx:25",path:"/knowledge",component:()=>b.jsxDEV(Xi,{"data-loc":"client/src/App.tsx:25",children:b.jsxDEV(iAe,{"data-loc":"client/src/App.tsx:25"},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/App.tsx",lineNumber:25,columnNumber:128},this)},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/App.tsx",lineNumber:25,columnNumber:82},this)},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/App.tsx",lineNumber:25,columnNumber:7},this),b.jsxDEV(ca,{"data-loc":"client/src/App.tsx:26",path:"/crawlers",component:()=>b.jsxDEV(Xi,{"data-loc":"client/src/App.tsx:26",children:b.jsxDEV(cAe,{"data-loc":"client/src/App.tsx:26"},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/App.tsx",lineNumber:26,columnNumber:127},this)},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/App.tsx",lineNumber:26,columnNumber:81},this)},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/App.tsx",lineNumber:26,columnNumber:7},this),b.jsxDEV(ca,{"data-loc":"client/src/App.tsx:27",path:"/approvals",component:()=>b.jsxDEV(Xi,{"data-loc":"client/src/App.tsx:27",children:b.jsxDEV(uAe,{"data-loc":"client/src/App.tsx:27"},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/App.tsx",lineNumber:27,columnNumber:128},this)},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/App.tsx",lineNumber:27,columnNumber:82},this)},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/App.tsx",lineNumber:27,columnNumber:7},this),b.jsxDEV(ca,{"data-loc":"client/src/App.tsx:28",path:"/tags",component:()=>b.jsxDEV(Xi,{"data-loc":"client/src/App.tsx:28",children:b.jsxDEV(dAe,{"data-loc":"client/src/App.tsx:28"},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/App.tsx",lineNumber:28,columnNumber:123},this)},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/App.tsx",lineNumber:28,columnNumber:77},this)},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/App.tsx",lineNumber:28,columnNumber:7},this),b.jsxDEV(ca,{"data-loc":"client/src/App.tsx:29",path:"/protocols",component:()=>b.jsxDEV(Xi,{"data-loc":"client/src/App.tsx:29",children:b.jsxDEV(mAe,{"data-loc":"client/src/App.tsx:29"},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/App.tsx",lineNumber:29,columnNumber:128},this)},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/App.tsx",lineNumber:29,columnNumber:82},this)},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/App.tsx",lineNumber:29,columnNumber:7},this),b.jsxDEV(ca,{"data-loc":"client/src/App.tsx:30",path:"/audit",component:()=>b.jsxDEV(Xi,{"data-loc":"client/src/App.tsx:30",children:b.jsxDEV(hAe,{"data-loc":"client/src/App.tsx:30"},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/App.tsx",lineNumber:30,columnNumber:124},this)},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/App.tsx",lineNumber:30,columnNumber:78},this)},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/App.tsx",lineNumber:30,columnNumber:7},this),b.jsxDEV(ca,{"data-loc":"client/src/App.tsx:31",path:"/ai-agents",component:()=>b.jsxDEV(Xi,{"data-loc":"client/src/App.tsx:31",children:b.jsxDEV(xAe,{"data-loc":"client/src/App.tsx:31"},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/App.tsx",lineNumber:31,columnNumber:128},this)},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/App.tsx",lineNumber:31,columnNumber:82},this)},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/App.tsx",lineNumber:31,columnNumber:7},this),b.jsxDEV(ca,{"data-loc":"client/src/App.tsx:32",path:"/notifications",component:()=>b.jsxDEV(Xi,{"data-loc":"client/src/App.tsx:32",children:b.jsxDEV(wAe,{"data-loc":"client/src/App.tsx:32"},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/App.tsx",lineNumber:32,columnNumber:132},this)},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/App.tsx",lineNumber:32,columnNumber:86},this)},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/App.tsx",lineNumber:32,columnNumber:7},this),b.jsxDEV(ca,{"data-loc":"client/src/App.tsx:33",path:"/archive",component:()=>b.jsxDEV(Xi,{"data-loc":"client/src/App.tsx:33",children:b.jsxDEV(SAe,{"data-loc":"client/src/App.tsx:33"},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/App.tsx",lineNumber:33,columnNumber:126},this)},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/App.tsx",lineNumber:33,columnNumber:80},this)},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/App.tsx",lineNumber:33,columnNumber:7},this),b.jsxDEV(ca,{"data-loc":"client/src/App.tsx:34",path:"/404",component:lV},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/App.tsx",lineNumber:34,columnNumber:7},this),b.jsxDEV(ca,{"data-loc":"client/src/App.tsx:35",component:lV},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/App.tsx",lineNumber:35,columnNumber:7},this)]},void 0,!0,{fileName:"/home/ubuntu/nac-admin/client/src/App.tsx",lineNumber:22,columnNumber:5},this)}function OAe(){return b.jsxDEV(Rie,{"data-loc":"client/src/App.tsx:42",children:b.jsxDEV(Mie,{"data-loc":"client/src/App.tsx:43",defaultTheme:"dark",children:b.jsxDEV(C_,{"data-loc":"client/src/App.tsx:44",children:[b.jsxDEV(qte,{"data-loc":"client/src/App.tsx:45"},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/App.tsx",lineNumber:45,columnNumber:11},this),b.jsxDEV(AAe,{"data-loc":"client/src/App.tsx:46"},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/App.tsx",lineNumber:46,columnNumber:11},this)]},void 0,!0,{fileName:"/home/ubuntu/nac-admin/client/src/App.tsx",lineNumber:44,columnNumber:9},this)},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/App.tsx",lineNumber:43,columnNumber:7},this)},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/App.tsx",lineNumber:42,columnNumber:5},this)}const DAe=()=>"/login",dx=new MW,SG=e=>{!(e instanceof Vh)||typeof window>"u"||!(e.message===Oee)||window.location.pathname!=="/login"&&(window.location.href=DAe())};dx.getQueryCache().subscribe(e=>{if(e.type==="updated"&&e.action.type==="error"){const t=e.query.state.error;SG(t),console.error("[API Query Error]",t)}});dx.getMutationCache().subscribe(e=>{if(e.type==="updated"&&e.action.type==="error"){const t=e.mutation.state.error;SG(t),console.error("[API Mutation Error]",t)}});const CAe=et.createClient({links:[qZ({url:"/api/trpc",transformer:us,fetch(e,t){return globalThis.fetch(e,{...t??{},credentials:"include"})}})]});Ree.createRoot(document.getElementById("root")).render(b.jsxDEV(et.Provider,{"data-loc":"client/src/main.tsx:59",client:CAe,queryClient:dx,children:b.jsxDEV(LW,{"data-loc":"client/src/main.tsx:60",client:dx,children:b.jsxDEV(OAe,{"data-loc":"client/src/main.tsx:61"},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/main.tsx",lineNumber:61,columnNumber:7},void 0)},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/main.tsx",lineNumber:60,columnNumber:5},void 0)},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/main.tsx",lineNumber:59,columnNumber:3},void 0));
|