710 lines
1.5 MiB
710 lines
1.5 MiB
function iW(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 oE={exports:{}},ub={},sE={exports:{}},bh={exports:{}};bh.exports;var kI;function oW(){return kI||(kI=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,ce){Object.defineProperty(s.prototype,B,{get:function(){console.warn("%s(...) is deprecated in plain JavaScript React classes. %s",ce[0],ce[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,ce){B=(B=B.constructor)&&(B.displayName||B.name)||"ReactClass";var Ee=B+"."+ce;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.",ce,B),ze[Ee]=!0)}function s(B,ce,Ee){this.props=B,this.context=ce,this.refs=Ve,this.updater=Ee||Ne}function c(){}function u(B,ce,Ee){this.props=B,this.context=ce,this.refs=Ve,this.updater=Ee||Ne}function f(){}function m(B){return""+B}function g(B){try{m(B);var ce=!1}catch{ce=!0}if(ce){ce=console;var Ee=ce.error,De=typeof Symbol=="function"&&Symbol.toStringTag&&B[Symbol.toStringTag]||B.constructor.name||"Object";return Ee.call(ce,"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 L:return"Fragment";case W:return"Profiler";case Q:return"StrictMode";case ue:return"Suspense";case xe: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 ne:return"Portal";case ge:return B.displayName||"Context";case ae:return(B._context.displayName||"Context")+".Consumer";case we:var ce=B.render;return B=B.displayName,B||(B=ce.displayName||ce.name||"",B=B!==""?"ForwardRef("+B+")":"ForwardRef"),B;case me:return ce=B.displayName||null,ce!==null?ce:h(B.type)||"Memo";case ye:ce=B._payload,B=B._init;try{return h(B(ce))}catch{}}return null}function y(B){if(B===L)return"<>";if(typeof B=="object"&&B!==null&&B.$$typeof===ye)return"<...>";try{var ce=h(B);return ce?"<"+ce+">":"<...>"}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 ce=Object.getOwnPropertyDescriptor(B,"key").get;if(ce&&ce.isReactWarning)return!1}return B.key!==void 0}function w(B,ce){function Ee(){Un||(Un=!0,console.error("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://react.dev/link/special-props)",ce))}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,ce,Ee,De,Me,Je){var Se=Ee.ref;return B={$$typeof:te,type:B,key:ce,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,ce){return ce=C(B.type,ce,B.props,B._owner,B._debugStack,B._debugTask),B._store&&(ce._store.validated=B._store.validated),ce}function P(B){A(B)?B._store&&(B._store.validated=1):typeof B=="object"&&B!==null&&B.$$typeof===ye&&(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===te}function T(B){var ce={"=":"=0",":":"=2"};return"$"+B.replace(/[=:]/g,function(Ee){return ce[Ee]})}function R(B,ce){return typeof B=="object"&&B!==null&&B.key!=null?(g(B.key),T(""+B.key)):ce.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(ce){B.status==="pending"&&(B.status="fulfilled",B.value=ce)},function(ce){B.status==="pending"&&(B.status="rejected",B.reason=ce)})),B.status){case"fulfilled":return B.value;case"rejected":throw B.reason}}throw B}function $(B,ce,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 te:case ne:Se=!0;break;case ye:return Se=B._init,$(Se(B._payload),ce,Ee,De,Me)}}if(Se){Se=B,Me=Me(Se);var He=De===""?"."+R(Se,0):De;return zn(Me)?(Ee="",He!=null&&(Ee=He.replace(gs,"$&/")+"/"),$(Me,ce,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),ce.push(Me)),1}if(Se=0,He=De===""?".":De+":",zn(B))for(var Be=0;Be<B.length;Be++)De=B[Be],Je=He+R(De,Be),Se+=$(De,ce,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,ce,Ee,Je,Me);else if(Je==="object"){if(typeof B.then=="function")return $(M(B),ce,Ee,De,Me);throw ce=String(B),Error("Objects are not valid as a React child (found: "+(ce==="[object Object]"?"object with keys {"+Object.keys(B).join(", ")+"}":ce)+"). If you meant to render a collection of children, use an array instead.")}return Se}function I(B,ce,Ee){if(B==null)return B;var De=[],Me=0;return $(B,De,"","",function(Je){return ce.call(Ee,Je,Me++)}),De}function z(B){if(B._status===-1){var ce=B._ioInfo;ce!=null&&(ce.start=ce.end=performance.now()),ce=B._result;var Ee=ce();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)}}),ce=B._ioInfo,ce!=null){ce.value=Ee;var De=Ee.displayName;typeof De=="string"&&(ce.name=De)}B._status===-1&&(B._status=0,B._result=Ee)}if(B._status===1)return ce=B._result,ce===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?`,ce),"default"in ce||console.error(`lazy: Expected the result of a dynamic import() call. Instead received: %s
|
||
|
||
Your code should look like:
|
||
const MyComponent = lazy(() => import('./MyComponent'))`,ce),ce.default;throw B._result}function H(){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 G(){Re.asyncTransitions--}function Y(B){if(Ir===null)try{var ce=("require"+Math.random()).slice(0,7);Ir=(e&&e[ce]).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 J(B){return 1<B.length&&typeof AggregateError=="function"?new AggregateError(B):B[0]}function q(B,ce){ce!==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=ce}function U(B,ce,Ee){var De=Re.actQueue;if(De!==null)if(De.length!==0)try{K(De),Y(function(){return U(B,ce,Ee)});return}catch(Me){Re.thrownErrors.push(Me)}else Re.actQueue=null;0<Re.thrownErrors.length?(De=J(Re.thrownErrors),Re.thrownErrors.length=0,Ee(De)):ce(B)}function K(B){if(!yo){yo=!0;var ce=0;try{for(;ce<B.length;ce++){var Ee=B[ce];do{Re.didUsePromise=!1;var De=Ee(!1);if(De!==null){if(Re.didUsePromise){B[ce]=Ee,B.splice(0,ce);return}Ee=De}else break}while(!0)}B.length=0}catch(Me){B.splice(0,ce+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 te=Symbol.for("react.transitional.element"),ne=Symbol.for("react.portal"),L=Symbol.for("react.fragment"),Q=Symbol.for("react.strict_mode"),W=Symbol.for("react.profiler"),ae=Symbol.for("react.consumer"),ge=Symbol.for("react.context"),we=Symbol.for("react.forward_ref"),ue=Symbol.for("react.suspense"),xe=Symbol.for("react.suspense_list"),me=Symbol.for("react.memo"),ye=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,ce){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,ce,"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 zn=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 Un,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 ce=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(ce))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)})}:Y;nt=Object.freeze({__proto__:null,c:function(B){return H().useMemoCache(B)}});var xi={map:I,forEach:function(B,ce,Ee){I(B,function(){ce.apply(this,arguments)},Ee)},count:function(B){var ce=0;return I(B,function(){ce++}),ce},toArray:function(B){return I(B,function(ce){return ce})||[]},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=L,t.Profiler=W,t.PureComponent=u,t.StrictMode=Q,t.Suspense=ue,t.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=Re,t.__COMPILER_RUNTIME=nt,t.act=function(B){var ce=Re.actQueue,Ee=yi;yi++;var De=Re.actQueue=ce!==null?ce:[],Me=!1;try{var Je=B()}catch(Be){Re.thrownErrors.push(Be)}if(0<Re.thrownErrors.length)throw q(ce,Ee),B=J(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(ce,Ee),Ee===0){try{K(De),Y(function(){return U(yr,Be,zt)})}catch(jn){Re.thrownErrors.push(jn)}if(0<Re.thrownErrors.length){var dn=J(Re.thrownErrors);Re.thrownErrors.length=0,zt(dn)}}else Be(yr)},function(yr){q(ce,Ee),0<Re.thrownErrors.length&&(yr=J(Re.thrownErrors),Re.thrownErrors.length=0),zt(yr)})}}}var He=Je;if(q(ce,Ee),Ee===0&&(K(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=J(Re.thrownErrors),Re.thrownErrors.length=0,B;return{then:function(Be,zt){Me=!0,Ee===0?(Re.actQueue=De,Y(function(){return U(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,ce,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(ce!=null){var Se;e:{if(ir.call(ce,"ref")&&(Se=Object.getOwnPropertyDescriptor(ce,"ref").get)&&Se.isReactWarning){Se=!1;break e}Se=ce.ref!==void 0}Se&&(Je=x()),N(ce)&&(g(ce.key),Me=""+ce.key);for(He in ce)!ir.call(ce,He)||He==="key"||He==="__self"||He==="__source"||He==="ref"&&ce.ref===void 0||(De[He]=ce[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:ae,_context:B},B._currentRenderer=null,B._currentRenderer2=null,B},t.createElement=function(B,ce,Ee){for(var De=2;De<arguments.length;De++)P(arguments[De]);De={};var Me=null;if(ce!=null)for(Be in kr||!("__self"in ce)||"key"in ce||(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(ce)&&(g(ce.key),Me=""+ce.key),ce)ir.call(ce,Be)&&Be!=="key"&&Be!=="__self"&&Be!=="__source"&&(De[Be]=ce[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 ce={$$typeof:we,render:B},Ee;return Object.defineProperty(ce,"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)}}),ce},t.isValidElement=A,t.lazy=function(B){B={_status:-1,_result:B};var ce={$$typeof:ye,_payload:B,_init:z},Ee={name:"lazy",start:-1,end:-1,value:null,owner:null,debugStack:Error("react-stack-top-frame"),debugTask:console.createTask?console.createTask("lazy()"):null};return B._ioInfo=Ee,ce._debugInfo=[{awaited:Ee}],ce},t.memo=function(B,ce){B==null&&console.error("memo: The first argument must be a component. Instead received: %s",B===null?"null":typeof B),ce={$$typeof:me,type:B,compare:ce===void 0?null:ce};var Ee;return Object.defineProperty(ce,"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)}}),ce},t.startTransition=function(B){var ce=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(G,G),De.then(f,ba))}catch(Je){ba(Je)}finally{ce===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.")),ce!==null&&Ee.types!==null&&(ce.types!==null&&ce.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."),ce.types=Ee.types),Re.T=ce}},t.unstable_useCacheRefresh=function(){return H().useCacheRefresh()},t.use=function(B){return H().use(B)},t.useActionState=function(B,ce,Ee){return H().useActionState(B,ce,Ee)},t.useCallback=function(B,ce){return H().useCallback(B,ce)},t.useContext=function(B){var ce=H();return B.$$typeof===ae&&console.error("Calling useContext(Context.Consumer) is not supported and will cause bugs. Did you mean to call useContext(Context) instead?"),ce.useContext(B)},t.useDebugValue=function(B,ce){return H().useDebugValue(B,ce)},t.useDeferredValue=function(B,ce){return H().useDeferredValue(B,ce)},t.useEffect=function(B,ce){return B==null&&console.warn("React Hook useEffect requires an effect callback. Did you forget to pass a callback to the hook?"),H().useEffect(B,ce)},t.useEffectEvent=function(B){return H().useEffectEvent(B)},t.useId=function(){return H().useId()},t.useImperativeHandle=function(B,ce,Ee){return H().useImperativeHandle(B,ce,Ee)},t.useInsertionEffect=function(B,ce){return B==null&&console.warn("React Hook useInsertionEffect requires an effect callback. Did you forget to pass a callback to the hook?"),H().useInsertionEffect(B,ce)},t.useLayoutEffect=function(B,ce){return B==null&&console.warn("React Hook useLayoutEffect requires an effect callback. Did you forget to pass a callback to the hook?"),H().useLayoutEffect(B,ce)},t.useMemo=function(B,ce){return H().useMemo(B,ce)},t.useOptimistic=function(B,ce){return H().useOptimistic(B,ce)},t.useReducer=function(B,ce,Ee){return H().useReducer(B,ce,Ee)},t.useRef=function(B){return H().useRef(B)},t.useState=function(B){return H().useState(B)},t.useSyncExternalStore=function(B,ce,Ee){return H().useSyncExternalStore(B,ce,Ee)},t.useTransition=function(){return H().useTransition()},t.version="19.2.1",typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error())})()})(bh,bh.exports)),bh.exports}var II;function df(){return II||(II=1,sE.exports=oW()),sE.exports}var LI;function sW(){if(LI)return ub;LI=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(L){if(L==null)return null;if(typeof L=="function")return L.$$typeof===z?null:L.displayName||L.name||null;if(typeof L=="string")return L;switch(L){case w:return"Fragment";case C:return"Profiler";case D:return"StrictMode";case T:return"Suspense";case R:return"SuspenseList";case I:return"Activity"}if(typeof L=="object")switch(typeof L.tag=="number"&&console.error("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),L.$$typeof){case N:return"Portal";case P:return L.displayName||"Context";case j:return(L._context.displayName||"Context")+".Consumer";case A:var Q=L.render;return L=L.displayName,L||(L=Q.displayName||Q.name||"",L=L!==""?"ForwardRef("+L+")":"ForwardRef"),L;case M:return Q=L.displayName||null,Q!==null?Q:e(L.type)||"Memo";case $:Q=L._payload,L=L._init;try{return e(L(Q))}catch{}}return null}function t(L){return""+L}function n(L){try{t(L);var Q=!1}catch{Q=!0}if(Q){Q=console;var W=Q.error,ae=typeof Symbol=="function"&&Symbol.toStringTag&&L[Symbol.toStringTag]||L.constructor.name||"Object";return W.call(Q,"The provided key is an unsupported type %s. This value must be coerced to a string before using it here.",ae),t(L)}}function r(L){if(L===w)return"<>";if(typeof L=="object"&&L!==null&&L.$$typeof===$)return"<...>";try{var Q=e(L);return Q?"<"+Q+">":"<...>"}catch{return"<...>"}}function o(){var L=H.A;return L===null?null:L.getOwner()}function s(){return Error("react-stack-top-frame")}function c(L){if(G.call(L,"key")){var Q=Object.getOwnPropertyDescriptor(L,"key").get;if(Q&&Q.isReactWarning)return!1}return L.key!==void 0}function u(L,Q){function W(){q||(q=!0,console.error("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://react.dev/link/special-props)",Q))}W.isReactWarning=!0,Object.defineProperty(L,"key",{get:W,configurable:!0})}function f(){var L=e(this.type);return U[L]||(U[L]=!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.")),L=this.props.ref,L!==void 0?L:null}function m(L,Q,W,ae,ge,we){var ue=W.ref;return L={$$typeof:S,type:L,key:Q,props:W,_owner:ae},(ue!==void 0?ue:null)!==null?Object.defineProperty(L,"ref",{enumerable:!1,get:f}):Object.defineProperty(L,"ref",{enumerable:!1,value:null}),L._store={},Object.defineProperty(L._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:0}),Object.defineProperty(L,"_debugInfo",{configurable:!1,enumerable:!1,writable:!0,value:null}),Object.defineProperty(L,"_debugStack",{configurable:!1,enumerable:!1,writable:!0,value:ge}),Object.defineProperty(L,"_debugTask",{configurable:!1,enumerable:!1,writable:!0,value:we}),Object.freeze&&(Object.freeze(L.props),Object.freeze(L)),L}function g(L,Q,W,ae,ge,we){var ue=Q.children;if(ue!==void 0)if(ae)if(Y(ue)){for(ae=0;ae<ue.length;ae++)h(ue[ae]);Object.freeze&&Object.freeze(ue)}else console.error("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");else h(ue);if(G.call(Q,"key")){ue=e(L);var xe=Object.keys(Q).filter(function(ye){return ye!=="key"});ae=0<xe.length?"{key: someKey, "+xe.join(": ..., ")+": ...}":"{key: someKey}",ne[ue+ae]||(xe=0<xe.length?"{"+xe.join(": ..., ")+": ...}":"{}",console.error(`A props object containing a "key" prop is being spread into JSX:
|
||
let props = %s;
|
||
<%s {...props} />
|
||
React keys must be passed directly to JSX without using spread:
|
||
let props = %s;
|
||
<%s key={someKey} {...props} />`,ae,ue,xe,ue),ne[ue+ae]=!0)}if(ue=null,W!==void 0&&(n(W),ue=""+W),c(Q)&&(n(Q.key),ue=""+Q.key),"key"in Q){W={};for(var me in Q)me!=="key"&&(W[me]=Q[me])}else W=Q;return ue&&u(W,typeof L=="function"?L.displayName||L.name||"Unknown":L),m(L,ue,W,o(),ge,we)}function h(L){y(L)?L._store&&(L._store.validated=1):typeof L=="object"&&L!==null&&L.$$typeof===$&&(L._payload.status==="fulfilled"?y(L._payload.value)&&L._payload.value._store&&(L._payload.value._store.validated=1):L._store&&(L._store.validated=1))}function y(L){return typeof L=="object"&&L!==null&&L.$$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"),I=Symbol.for("react.activity"),z=Symbol.for("react.client.reference"),H=x.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,G=Object.prototype.hasOwnProperty,Y=Array.isArray,J=console.createTask?console.createTask:function(){return null};x={react_stack_bottom_frame:function(L){return L()}};var q,U={},K=x.react_stack_bottom_frame.bind(x,s)(),te=J(r(s)),ne={};ub.Fragment=w,ub.jsxDEV=function(L,Q,W,ae){var ge=1e4>H.recentlyCreatedOwnerStacks++;return g(L,Q,W,ae,ge?Error("react-stack-top-frame"):K,ge?J(r(L)):te)}})(),ub}var VI;function lW(){return VI||(VI=1,oE.exports=sW()),oE.exports}var b=lW(),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(){}},cW={setTimeout:(e,t)=>setTimeout(e,t),clearTimeout:e=>clearTimeout(e),setInterval:(e,t)=>setInterval(e,t),clearInterval:e=>clearInterval(e)},uW=class{#t=cW;#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 uW;function dW(e){setTimeout(e,0)}var _c=typeof window>"u"||"Deno"in globalThis;function dr(){}function fW(e,t){return typeof e=="function"?e(t):e}function YD(e){return typeof e=="number"&&e>=0&&e!==1/0}function j8(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 $I(e,t){const{type:n="all",exact:r,fetchStatus:o,predicate:s,queryKey:c,stale:u}=e;if(c){if(r){if(t.queryHash!==a_(c,t.options))return!1}else if(!kh(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 BI(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(!kh(t.options.mutationKey,s))return!1}return!(r&&t.state.status!==r||o&&!o(t))}function a_(e,t){return(t?.queryKeyHashFn||hl)(e)}function hl(e){return JSON.stringify(e,(t,n)=>QD(n)?Object.keys(n).sort().reduce((r,o)=>(r[o]=n[o],r),{}):n)}function kh(e,t){return e===t?!0:typeof e!=typeof t?!1:e&&t&&typeof e=="object"&&typeof t=="object"?Object.keys(t).every(n=>kh(e[n],t[n])):!1}var mW=Object.prototype.hasOwnProperty;function Xb(e,t){if(e===t)return e;const n=zI(e)&&zI(t);if(!n&&!(QD(e)&&QD(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:mW.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 Ih(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 zI(e){return Array.isArray(e)&&e.length===Object.keys(e).length}function QD(e){if(!UI(e))return!1;const t=e.constructor;if(t===void 0)return!0;const n=t.prototype;return!(!UI(n)||!n.hasOwnProperty("isPrototypeOf")||Object.getPrototypeOf(e)!==Object.prototype)}function UI(e){return Object.prototype.toString.call(e)==="[object Object]"}function hW(e){return new Promise(t=>{Nc.setTimeout(t,e)})}function XD(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 pW(e,t,n=0){const r=[...e,t];return n&&r.length>n?r.slice(1):r}function gW(e,t,n=0){const r=[t,...e];return n&&r.length>n?r.slice(0,-1):r}var ar=Symbol();function R8(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 P8(e,t){return typeof e=="function"?e(...t):!!e}var vW=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"}},i_=new vW;function WD(){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 bW=dW;function yW(){let e=[],t=0,n=u=>{u()},r=u=>{u()},o=bW;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=yW(),xW=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 xW;function NW(e){return Math.min(1e3*2**e,3e4)}function M8(e){return(e??"online")==="online"?Wb.isOnline():!0}var ZD=class extends Error{constructor(e){super("CancelledError"),this.revert=e?.revert,this.silent=e?.silent}};function k8(e){let t=!1,n=0,r;const o=WD(),s=()=>o.status!=="pending",c=N=>{if(!s()){const w=new ZD(N);y(w),e.onCancel?.(w)}},u=()=>{t=!0},f=()=>{t=!1},m=()=>i_.isFocused()&&(e.networkMode==="always"||Wb.isOnline())&&e.canRun(),g=()=>M8(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??NW,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),hW(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 I8=class{#t;destroy(){this.clearGcTimeout()}scheduleGc(){this.clearGcTimeout(),YD(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)}},wW=class extends I8{#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=qI(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=qI(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=XD(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:!j8(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=R8(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=k8({initialPromise:t?.initialPromise,fn:c.fetchFn,onCancel:u=>{u instanceof ZD&&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 ZD){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,...L8(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 L8(e,t){return{fetchFailureCount:0,fetchFailureReason:null,fetchStatus:M8(t.networkMode)?"fetching":"paused",...e===void 0&&{error:null,status:"pending"}}}function qI(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 Tp=class extends Wc{constructor(e,t){super(),this.options=t,this.#t=e,this.#o=null,this.#s=WD(),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),HI(this.#e,this.options)?this.#h():this.updateResult(),this.#y())}onUnsubscribe(){this.hasListeners()||this.destroy()}shouldFetchOnReconnect(){return JD(this.#e,this.options,this.options.refetchOnReconnect)}shouldFetchOnWindowFocus(){return JD(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&&!Ih(this.options,t)&&this.#t.getQueryCache().notify({type:"observerOptionsUpdated",query:this.#e,observer:this});const r=this.hasListeners();r&&FI(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 SW(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||!YD(e))return;const n=j8(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||!YD(this.#l)||this.#l===0)&&(this.#u=Nc.setInterval(()=>{(this.options.refetchIntervalInBackground||i_.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&&HI(e,t),I=M&&FI(e,n,t,r);($||I)&&(g={...g,...L8(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=XD(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=XD(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:o_(e,t),refetch:this.refetch,promise:this.#s,isEnabled:La(t.enabled,e)!==!1};if(this.options.experimental_prefetchInRender){const M=z=>{R.status==="error"?z.reject(R.error):R.data!==void 0&&z.resolve(R.data)},$=()=>{const z=this.#s=R.promise=WD();M(z)},I=this.#s;switch(I.status){case"pending":e.queryHash===n.queryHash&&M(I);break;case"fulfilled":(R.status==="error"||R.data!==I.value)&&$();break;case"rejected":(R.status!=="error"||R.error!==I.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),Ih(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 EW(e,t){return La(t.enabled,e)!==!1&&e.state.data===void 0&&!(e.state.status==="error"&&t.retryOnMount===!1)}function HI(e,t){return EW(e,t)||e.state.data!==void 0&&JD(e,t,t.refetchOnMount)}function JD(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&&o_(e,t)}return!1}function FI(e,t,n,r){return(e!==t||La(r.enabled,e)===!1)&&(!n.suspense||e.state.status!=="error")&&o_(e,n)}function o_(e,t){return La(t.enabled,e)!==!1&&e.isStaleByTime(fl(t.staleTime,e))}function SW(e,t){return!Ih(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=R8(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?gW:pW;return{pages:A(S.pages,j,P),pageParams:A(S.pageParams,N,P)}};if(o&&s.length){const S=o==="backward",N=S?V8:eC,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:eC(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 eC(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 V8(e,{pages:t,pageParams:n}){return t.length>0?e.getPreviousPageParam?.(t[0],t,n[0],n):void 0}function AW(e,t){return t?eC(e,t)!=null:!1}function OW(e,t){return!t||!e.getPreviousPageParam?!1:V8(e,t)!=null}var $8=class extends Tp{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:AW(t,n.data),hasPreviousPage:OW(t,n.data),isFetchNextPageError:m,isFetchingNextPage:g,isFetchPreviousPageError:h,isFetchingPreviousPage:y,isRefetchError:u&&!m&&!h,isRefetching:s&&!g&&!y}}},DW=class extends I8{#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||B8(),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=k8({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 B8(){return{context:void 0,data:void 0,error:null,failureCount:0,failureReason:null,isPaused:!1,status:"idle",variables:void 0,submittedAt:0}}var CW=class extends 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 DW({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=>BI(t,n))}findAll(e={}){return this.getAll().filter(t=>BI(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 TW=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),Ih(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??B8();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 KI(e,t){const n=new Set(t);return e.filter(r=>!n.has(r))}function _W(e,t,n){const r=e.slice(0);return r[t]=n,r}var jW=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||!Ih(g,y)});!f&&!m||(f&&(this.#r=o),this.#e=s,this.hasListeners()&&(f&&(KI(n,o).forEach(g=>{g.destroy()}),KI(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 Tp(this.#t,o)})}),n}#u(e,t){const n=this.#r.indexOf(e);n!==-1&&(this.#e=_W(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)})})}}},RW=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??a_(r,t);let s=this.get(o);return s||(s=new wW({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=>$I(t,n))}findAll(e={}){const t=this.getAll();return Object.keys(e).length>0?t.filter(n=>$I(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()})})}},PW=class{#t;#e;#n;#a;#r;#i;#s;#o;constructor(e={}){this.#t=e.queryCache||new RW,this.#e=e.mutationCache||new CW,this.#n=e.defaultOptions||{},this.#a=new Map,this.#r=new Map,this.#i=0}mount(){this.#i++,this.#i===1&&(this.#s=i_.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=fW(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=>{kh(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=>{kh(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=a_(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 F=Bt(_),fx=iW({__proto__:null,default:F},[_]);var lE={exports:{}},ah={},GI;function MW(){if(GI)return ah;GI=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(L){if(L==null)return null;if(typeof L=="function")return L.$$typeof===z?null:L.displayName||L.name||null;if(typeof L=="string")return L;switch(L){case w:return"Fragment";case C:return"Profiler";case D:return"StrictMode";case T:return"Suspense";case R:return"SuspenseList";case I:return"Activity"}if(typeof L=="object")switch(typeof L.tag=="number"&&console.error("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),L.$$typeof){case N:return"Portal";case P:return L.displayName||"Context";case j:return(L._context.displayName||"Context")+".Consumer";case A:var Q=L.render;return L=L.displayName,L||(L=Q.displayName||Q.name||"",L=L!==""?"ForwardRef("+L+")":"ForwardRef"),L;case M:return Q=L.displayName||null,Q!==null?Q:e(L.type)||"Memo";case $:Q=L._payload,L=L._init;try{return e(L(Q))}catch{}}return null}function t(L){return""+L}function n(L){try{t(L);var Q=!1}catch{Q=!0}if(Q){Q=console;var W=Q.error,ae=typeof Symbol=="function"&&Symbol.toStringTag&&L[Symbol.toStringTag]||L.constructor.name||"Object";return W.call(Q,"The provided key is an unsupported type %s. This value must be coerced to a string before using it here.",ae),t(L)}}function r(L){if(L===w)return"<>";if(typeof L=="object"&&L!==null&&L.$$typeof===$)return"<...>";try{var Q=e(L);return Q?"<"+Q+">":"<...>"}catch{return"<...>"}}function o(){var L=H.A;return L===null?null:L.getOwner()}function s(){return Error("react-stack-top-frame")}function c(L){if(G.call(L,"key")){var Q=Object.getOwnPropertyDescriptor(L,"key").get;if(Q&&Q.isReactWarning)return!1}return L.key!==void 0}function u(L,Q){function W(){q||(q=!0,console.error("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://react.dev/link/special-props)",Q))}W.isReactWarning=!0,Object.defineProperty(L,"key",{get:W,configurable:!0})}function f(){var L=e(this.type);return U[L]||(U[L]=!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.")),L=this.props.ref,L!==void 0?L:null}function m(L,Q,W,ae,ge,we){var ue=W.ref;return L={$$typeof:S,type:L,key:Q,props:W,_owner:ae},(ue!==void 0?ue:null)!==null?Object.defineProperty(L,"ref",{enumerable:!1,get:f}):Object.defineProperty(L,"ref",{enumerable:!1,value:null}),L._store={},Object.defineProperty(L._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:0}),Object.defineProperty(L,"_debugInfo",{configurable:!1,enumerable:!1,writable:!0,value:null}),Object.defineProperty(L,"_debugStack",{configurable:!1,enumerable:!1,writable:!0,value:ge}),Object.defineProperty(L,"_debugTask",{configurable:!1,enumerable:!1,writable:!0,value:we}),Object.freeze&&(Object.freeze(L.props),Object.freeze(L)),L}function g(L,Q,W,ae,ge,we){var ue=Q.children;if(ue!==void 0)if(ae)if(Y(ue)){for(ae=0;ae<ue.length;ae++)h(ue[ae]);Object.freeze&&Object.freeze(ue)}else console.error("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");else h(ue);if(G.call(Q,"key")){ue=e(L);var xe=Object.keys(Q).filter(function(ye){return ye!=="key"});ae=0<xe.length?"{key: someKey, "+xe.join(": ..., ")+": ...}":"{key: someKey}",ne[ue+ae]||(xe=0<xe.length?"{"+xe.join(": ..., ")+": ...}":"{}",console.error(`A props object containing a "key" prop is being spread into JSX:
|
||
let props = %s;
|
||
<%s {...props} />
|
||
React keys must be passed directly to JSX without using spread:
|
||
let props = %s;
|
||
<%s key={someKey} {...props} />`,ae,ue,xe,ue),ne[ue+ae]=!0)}if(ue=null,W!==void 0&&(n(W),ue=""+W),c(Q)&&(n(Q.key),ue=""+Q.key),"key"in Q){W={};for(var me in Q)me!=="key"&&(W[me]=Q[me])}else W=Q;return ue&&u(W,typeof L=="function"?L.displayName||L.name||"Unknown":L),m(L,ue,W,o(),ge,we)}function h(L){y(L)?L._store&&(L._store.validated=1):typeof L=="object"&&L!==null&&L.$$typeof===$&&(L._payload.status==="fulfilled"?y(L._payload.value)&&L._payload.value._store&&(L._payload.value._store.validated=1):L._store&&(L._store.validated=1))}function y(L){return typeof L=="object"&&L!==null&&L.$$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"),I=Symbol.for("react.activity"),z=Symbol.for("react.client.reference"),H=x.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,G=Object.prototype.hasOwnProperty,Y=Array.isArray,J=console.createTask?console.createTask:function(){return null};x={react_stack_bottom_frame:function(L){return L()}};var q,U={},K=x.react_stack_bottom_frame.bind(x,s)(),te=J(r(s)),ne={};ah.Fragment=w,ah.jsx=function(L,Q,W){var ae=1e4>H.recentlyCreatedOwnerStacks++;return g(L,Q,W,!1,ae?Error("react-stack-top-frame"):K,ae?J(r(L)):te)},ah.jsxs=function(L,Q,W){var ae=1e4>H.recentlyCreatedOwnerStacks++;return g(L,Q,W,!0,ae?Error("react-stack-top-frame"):K,ae?J(r(L)):te)}})(),ah}var YI;function kW(){return YI||(YI=1,lE.exports=MW()),lE.exports}var le=kW(),z8=_.createContext(void 0),_p=e=>{const t=_.useContext(z8);if(e)return e;if(!t)throw new Error("No QueryClient set, use QueryClientProvider to set one");return t},IW=({client:e,children:t})=>(_.useEffect(()=>(e.mount(),()=>{e.unmount()}),[e]),le.jsx(z8.Provider,{value:e,children:t})),U8=_.createContext(!1),q8=()=>_.useContext(U8);U8.Provider;function LW(){let e=!1;return{clearReset:()=>{e=!1},reset:()=>{e=!0},isReset:()=>e}}var VW=_.createContext(LW()),H8=()=>_.useContext(VW),F8=(e,t)=>{(e.suspense||e.throwOnError||e.experimental_prefetchInRender)&&(t.isReset()||(e.retryOnMount=!1))},K8=e=>{_.useEffect(()=>{e.clearReset()},[e])},G8=({result:e,errorResetBoundary:t,throwOnError:n,query:r,suspense:o})=>e.isError&&!t.isReset()&&!e.isFetching&&r&&(o&&e.data===void 0||P8(n,[e.error,r])),s_=(e,t)=>t.state.data===void 0,Y8=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))}},Q8=(e,t)=>e.isLoading&&e.isFetching&&!t,tC=(e,t)=>e?.suspense&&t.isPending,Jb=(e,t,n)=>t.fetchOptimistic(e).catch(()=>{n.clearReset()});function X8({queries:e,...t},n){const r=_p(n),o=q8(),s=H8(),c=_.useMemo(()=>e.map(N=>{const w=r.defaultQueryOptions(N);return w._optimisticResults=o?"isRestoring":"optimistic",w}),[e,r,o]);c.forEach(N=>{Y8(N),F8(N,s)}),K8(s);const[u]=_.useState(()=>new jW(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)=>tC(c[w],N))?f.flatMap((N,w)=>{const D=c[w];if(D){const C=new Tp(r,D);if(tC(D,N))return Jb(D,C,s);Q8(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&&G8({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=q8(),o=H8(),s=_p(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",Y8(c),F8(c,o),K8(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]),tC(c,m))throw Jb(c,f,o);if(G8({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&&Q8(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 $W(e,t){return mx(e,Tp,t)}function BW(e,t){return e.queryFn===ar&&console.error("skipToken is not allowed for useSuspenseQuery"),mx({...e,enabled:!0,suspense:!0,throwOnError:s_,placeholderData:void 0},Tp,t)}function zW(e,t){return e.queryFn===ar&&console.error("skipToken is not allowed for useSuspenseInfiniteQuery"),mx({...e,enabled:!0,suspense:!0,throwOnError:s_},$8,t)}function UW(e,t){return X8({...e,queries:e.queries.map(n=>(n.queryFn===ar&&console.error("skipToken is not allowed for useSuspenseQueries"),{...n,suspense:!0,throwOnError:s_,enabled:!0,placeholderData:void 0}))},t)}function qW(e,t){const n=_p(t);n.getQueryState(e.queryKey)||n.prefetchQuery(e)}function HW(e,t){const n=_p(t);n.getQueryState(e.queryKey)||n.prefetchInfiniteQuery(e)}function FW(e,t){const n=_p(t),[r]=_.useState(()=>new TW(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&&P8(r.options.throwOnError,[o.error]))throw o.error;return{...o,mutate:s,mutateAsync:o.mutate}}function KW(e,t){return mx(e,$8,t)}function jc(e){return!!e&&!Array.isArray(e)&&typeof e=="object"}const GW=typeof Symbol=="function"&&!!Symbol.asyncIterator;function W8(e){return GW&&jc(e)&&Symbol.asyncIterator in e}var YW=Object.create,Z8=Object.defineProperty,QW=Object.getOwnPropertyDescriptor,J8=Object.getOwnPropertyNames,XW=Object.getPrototypeOf,WW=Object.prototype.hasOwnProperty,jp=(e,t)=>function(){return t||(0,e[J8(e)[0]])((t={exports:{}}).exports,t),t.exports},ZW=(e,t,n,r)=>{if(t&&typeof t=="object"||typeof t=="function")for(var o=J8(t),s=0,c=o.length,u;s<c;s++)u=o[s],!WW.call(e,u)&&u!==n&&Z8(e,u,{get:(f=>t[f]).bind(null,u),enumerable:!(r=QW(t,u))||r.enumerable});return e},hx=(e,t,n)=>(n=e!=null?YW(XW(e)):{},ZW(Z8(n,"default",{value:e,enumerable:!0}),e));const e9=()=>{},QI=e=>{Object.freeze&&Object.freeze(e)};function t9(e,t,n){var r;const o=t.join(".");return(r=n[o])!==null&&r!==void 0||(n[o]=new Proxy(e9,{get(s,c){if(!(typeof c!="string"||c==="then"))return t9(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)}),QI(m.args),QI(m.path),e(m)}})),n[o]}const px=e=>t9(e,[],Object.create(null)),l_=e=>new Proxy(e9,{get(t,n){if(n!=="then")return e(n)}});var n9=jp({"../../node_modules/.pnpm/@oxc-project+runtime@0.72.2/node_modules/@oxc-project/runtime/src/helpers/typeof.js"(e,t){function n(r){"@babel/helpers - typeof";return t.exports=n=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(o){return typeof o}:function(o){return o&&typeof Symbol=="function"&&o.constructor===Symbol&&o!==Symbol.prototype?"symbol":typeof o},t.exports.__esModule=!0,t.exports.default=t.exports,n(r)}t.exports=n,t.exports.__esModule=!0,t.exports.default=t.exports}}),JW=jp({"../../node_modules/.pnpm/@oxc-project+runtime@0.72.2/node_modules/@oxc-project/runtime/src/helpers/toPrimitive.js"(e,t){var n=n9().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}}),eZ=jp({"../../node_modules/.pnpm/@oxc-project+runtime@0.72.2/node_modules/@oxc-project/runtime/src/helpers/toPropertyKey.js"(e,t){var n=n9().default,r=JW();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}}),r9=jp({"../../node_modules/.pnpm/@oxc-project+runtime@0.72.2/node_modules/@oxc-project/runtime/src/helpers/defineProperty.js"(e,t){var n=eZ();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}}),c_=jp({"../../node_modules/.pnpm/@oxc-project+runtime@0.72.2/node_modules/@oxc-project/runtime/src/helpers/objectSpread2.js"(e,t){var n=r9();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(c_());hx(r9());var fb=hx(c_());function tZ(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 cE=class extends Error{constructor(){super("Unable to transform response from server")}};function nZ(e,t){let n;try{n=tZ(e,t)}catch{throw new cE}if(!n.ok&&(!jc(n.error.error)||typeof n.error.error.code!="number"))throw new cE;if(n.ok&&!jc(n.result))throw new cE;return n}hx(c_());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(rZ,t)}};return t}function rZ(e,t){return t(e)}function aZ(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 iZ=Object.create,a9=Object.defineProperty,oZ=Object.getOwnPropertyDescriptor,i9=Object.getOwnPropertyNames,sZ=Object.getPrototypeOf,lZ=Object.prototype.hasOwnProperty,yl=(e,t)=>function(){return t||(0,e[i9(e)[0]])((t={exports:{}}).exports,t),t.exports},cZ=(e,t,n,r)=>{if(t&&typeof t=="object"||typeof t=="function")for(var o=i9(t),s=0,c=o.length,u;s<c;s++)u=o[s],!lZ.call(e,u)&&u!==n&&a9(e,u,{get:(f=>t[f]).bind(null,u),enumerable:!(r=oZ(t,u))||r.enumerable});return e},Zc=(e,t,n)=>(n=e!=null?iZ(sZ(e)):{},cZ(t||!e||!e.__esModule?a9(n,"default",{value:e,enumerable:!0}):n,e)),uZ=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}}),dZ=yl({"../../node_modules/.pnpm/@oxc-project+runtime@0.72.2/node_modules/@oxc-project/runtime/src/helpers/objectWithoutProperties.js"(e,t){var n=uZ();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}}),o9=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}}),fZ=yl({"../../node_modules/.pnpm/@oxc-project+runtime@0.72.2/node_modules/@oxc-project/runtime/src/helpers/toPrimitive.js"(e,t){var n=o9().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}}),mZ=yl({"../../node_modules/.pnpm/@oxc-project+runtime@0.72.2/node_modules/@oxc-project/runtime/src/helpers/toPropertyKey.js"(e,t){var n=o9().default,r=fZ();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}}),hZ=yl({"../../node_modules/.pnpm/@oxc-project+runtime@0.72.2/node_modules/@oxc-project/runtime/src/helpers/defineProperty.js"(e,t){var n=mZ();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}}),Rp=yl({"../../node_modules/.pnpm/@oxc-project+runtime@0.72.2/node_modules/@oxc-project/runtime/src/helpers/objectSpread2.js"(e,t){var n=hZ();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}}),pZ=Zc(dZ(),1),XI=Zc(Rp(),1);const gZ=["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,pZ.default)(t,gZ);return[r,{input:c,type:"infinite"}]}return[r,(0,XI.default)((0,XI.default)({},typeof t<"u"&&t!==ar&&{input:t}),n&&n!=="any"&&{type:n})]}function zb(e){return Wi(e,void 0,"any")}var vZ=Object.create,s9=Object.defineProperty,bZ=Object.getOwnPropertyDescriptor,l9=Object.getOwnPropertyNames,yZ=Object.getPrototypeOf,xZ=Object.prototype.hasOwnProperty,mo=(e,t)=>function(){return t||(0,e[l9(e)[0]])((t={exports:{}}).exports,t),t.exports},NZ=(e,t,n,r)=>{if(t&&typeof t=="object"||typeof t=="function")for(var o=l9(t),s=0,c=o.length,u;s<c;s++)u=o[s],!xZ.call(e,u)&&u!==n&&s9(e,u,{get:(f=>t[f]).bind(null,u),enumerable:!(r=bZ(t,u))||r.enumerable});return e},yn=(e,t,n)=>(n=e!=null?vZ(yZ(e)):{},NZ(t||!e||!e.__esModule?s9(n,"default",{value:e,enumerable:!0}):n,e)),c9=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}}),wZ=mo({"../../node_modules/.pnpm/@oxc-project+runtime@0.72.2/node_modules/@oxc-project/runtime/src/helpers/toPrimitive.js"(e,t){var n=c9().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}}),EZ=mo({"../../node_modules/.pnpm/@oxc-project+runtime@0.72.2/node_modules/@oxc-project/runtime/src/helpers/toPropertyKey.js"(e,t){var n=c9().default,r=wZ();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=EZ();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 SZ(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 AZ(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 OZ(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 DZ(e){return e instanceof Lh}function CZ(e){return jc(e)&&jc(e.error)&&typeof e.error.code=="number"&&typeof e.error.message=="string"}function TZ(e,t){return typeof e=="string"?e:jc(e)&&typeof e.message=="string"?e.message:t}var Lh=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 DZ(r)?(n.meta&&(r.meta=(0,cd.default)((0,cd.default)({},r.meta),n.meta)),r):CZ(r)?new Ub(r.error.message,(0,cd.default)((0,cd.default)({},n),{},{result:r})):new Ub(TZ(r,"Unknown error"),(0,cd.default)((0,cd.default)({},n),{},{cause:r}))}};function _Z(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 WI=e=>typeof e=="function";function jZ(e){if(e)return e;if(typeof window<"u"&&WI(window.fetch))return window.fetch;if(typeof globalThis<"u"&&WI(globalThis.fetch))return globalThis.fetch;throw new Error("No fetch implementation found")}var Sh=yn(hi());function RZ(e){return{url:e.url.toString(),fetch:e.fetch,transformer:_Z(e.transformer),methodOverride:e.methodOverride}}function PZ(e){const t={};for(let n=0;n<e.length;n++){const r=e[n];t[n]=r}return t}const MZ={query:"GET",mutation:"POST",subscription:"PATCH"};function u9(e){return"input"in e?e.transformer.input.serialize(e.input):PZ(e.inputs.map(t=>e.transformer.input.serialize(t)))}const d9=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=u9(e);s!==void 0&&e.methodOverride!=="POST"&&o.push(`input=${encodeURIComponent(JSON.stringify(s))}`)}return o.length&&(r+="?"+o.join("&")),r},kZ=e=>{if(e.type==="query"&&e.methodOverride!=="POST")return;const t=u9(e);return t!==void 0?JSON.stringify(t):void 0},IZ=e=>BZ((0,Sh.default)((0,Sh.default)({},e),{},{contentTypeHeader:"application/json",getUrl:d9,getBody:kZ}));var LZ=class extends Error{constructor(){const e="AbortError";super(e),this.name=e,this.message=e}};const VZ=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 LZ};async function $Z(e){var t;VZ(e.signal);const n=e.getUrl(e),r=e.getBody(e),o=(t=e.methodOverride)!==null&&t!==void 0?t:MZ[e.type],s=await(async()=>{const u=await e.headers();return Symbol.iterator in u?Object.fromEntries(u):u})(),c=(0,Sh.default)((0,Sh.default)((0,Sh.default)({},e.contentTypeHeader&&o!=="GET"?{"content-type":e.contentTypeHeader}:{}),e.trpcAcceptHeader?{"trpc-accept":e.trpcAcceptHeader}:void 0),s);return jZ(e.fetch)(n,{method:o,signal:e.signal,body:r,headers:c})}async function BZ(e){const t={},n=await $Z(e);t.response=n;const r=await n.json();return t.responseJSON=r,{json:r,meta:t}}yn(hi(),1);const ZI=()=>{throw new Error("Something went wrong. Please submit an issue at https://github.com/trpc/trpc/issues/new")};function JI(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:ZI,reject:ZI},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 zZ(...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 UZ(e){var t,n;const r=RZ(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 d9((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=zZ(...h.map(C=>C.signal)),N=await IZ((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=JI(c("query")),f=JI(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=nZ(N.json,r.transformer.output);if(!w.ok){h.error(Lh.from(w.error,{meta:N.meta}));return}h.next({context:N.meta,result:w.result}),h.complete()}).catch(N=>{h.error(Lh.from(N,{meta:S?.meta}))}),()=>{}})}}yn(hi(),1);const f9=(e,...t)=>typeof e=="function"?e(...t):e;yn(Jc(),1);function qZ(){let e,t;return{promise:new Promise((r,o)=>{e=r,t=o}),resolve:e,reject:t}}async function HZ(e){const t=await f9(e.url);if(!e.connectionParams)return t;const r=`${t.includes("?")?"&":"?"}connectionParams=1`;return t+r}async function FZ(e){const t={method:"connectionParams",data:await f9(e)};return JSON.stringify(t)}yn(Jc(),1);var gc=yn(Jc(),1);function KZ(e){const{promise:t,resolve:n,reject:r}=qZ();return e.addEventListener("open",()=>{e.removeEventListener("error",r),n()}),e.addEventListener("error",r),t}function GZ(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 YZ=class nC{constructor(t){var n;if((0,gc.default)(this,"id",++nC.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",AZ(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=++nC.connectCount;const n=HZ(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&&GZ(r,t.keepAliveOpts),r.addEventListener("close",()=>{t.ws===r&&(t.ws=null)}),await KZ(r),t.urlOptions.connectionParams&&r.send(await FZ(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)(YZ,"connectCount",0);yn(Jc(),1);yn(hi(),1);var uE=yn(Jc(),1),eL=yn(hi(),1),vx=class{constructor(e){(0,uE.default)(this,"links",void 0),(0,uE.default)(this,"runtime",void 0),(0,uE.default)(this,"requestId",void 0),this.requestId=0,this.runtime={},this.links=e.links.map(t=>t(this.runtime))}$request(e){var t;return OZ({links:this.links,op:(0,eL.default)((0,eL.default)({},e),{},{context:(t=e.context)!==null&&t!==void 0?t:{},id:++this.requestId})}).pipe(SZ())}async requestAsPromise(e){var t=this;try{const n=t.$request(e);return(await aZ(n)).result.data}catch(n){throw Lh.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 m9=Symbol.for("trpc_untypedClient"),QZ={query:"query",mutate:"mutation",subscribe:"subscription"},XZ=e=>QZ[e];function h9(e){const t=px(({path:n,args:r})=>{const o=[...n],s=XZ(o.pop()),c=o.join(".");return e[s](c,...r)});return l_(n=>n===m9?e:t[n])}function WZ(e){const t=new vx(e);return h9(t)}function u_(e){return e[m9]}yn(hi(),1);yn(hi(),1);var ZZ=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(ZZ(),1);yn(hi(),1);var JZ=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}}),p9=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}}),eJ=mo({"../../node_modules/.pnpm/@oxc-project+runtime@0.72.2/node_modules/@oxc-project/runtime/src/helpers/awaitAsyncGenerator.js"(e,t){var n=p9();function r(o){return new n(o,0)}t.exports=r,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/wrapAsyncGenerator.js"(e,t){var n=p9();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(JZ(),1);yn(eJ(),1);yn(tJ(),1);yn(hi(),1);function nJ(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 dE;const rJ=["client","ssrContext","ssrState","abortOnUnmount"],aJ=(dE=_.createContext)===null||dE===void 0?void 0:dE.call(fx,null),iJ=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 oJ(e){return px(t=>{const n=[...t.path],r=n.pop(),o=[...t.args],s=o.shift(),c=iJ(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 sJ(e){const t=h9(e.client),n=oJ(e);return l_(r=>{const o=r;return o==="client"?t:rJ.includes(o)?e[o]:n[r]})}var lJ=Zc(Rp(),1);function tL(e){const t=e instanceof vx?e:u_(e);return px(n=>{const r=n.path,o=r.join("."),[s,c]=n.args;return(0,lJ.default)({queryKey:Wi(r,s,"query"),queryFn:()=>t.query(o,s,c?.trpc)},c)})}var fE=Zc(Rp(),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,fE.default)((0,fE.default)((0,fE.default)({},(c=s)!==null&&c!==void 0?c:{}),n.pageParam?{cursor:n.pageParam}:{}),{},{direction:n.direction})}return[o.join("."),s,t?.trpc]}var cJ=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}}),uJ=Zc(cJ(),1);function rC(e){return{path:e.path.join(".")}}function ih(e){const t=rC(e);return _.useMemo(()=>t,[t])}async function g9(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,uJ.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(Rp(),1);function dJ(e){const{client:t,queryClient:n}=e,r=t instanceof vx?t:u_(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:rC({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 W8(x)?g9(x,n,s):x};return Object.assign((0,Tt.default)((0,Tt.default)({},c),{},{initialData:c?.initialData,queryKey:s,queryFn:f?ar:m}),{trpc:rC({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(Rp());const nL=(e,t)=>new Proxy(e,{get(r,o){return t(o),r[o]}});function fJ(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:aJ,s=WZ,c=A=>{var T;const{abortOnUnmount:R=!1,queryClient:M,ssrContext:$}=A,[I,z]=_.useState((T=A.ssrState)!==null&&T!==void 0?T:!1),H=A.client instanceof vx?A.client:u_(A.client),G=_.useMemo(()=>dJ({client:H,queryClient:M}),[H,M]),Y=_.useMemo(()=>(0,je.default)({abortOnUnmount:R,queryClient:M,client:H,ssrContext:$??null,ssrState:I},G),[R,H,G,M,$,I]);return _.useEffect(()=>{z(J=>J?"mounted":!1)},[]),le.jsx(o.Provider,{value:Y,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,$,I,z,H;const G=u(),{abortOnUnmount:Y,client:J,ssrState:q,queryClient:U,prefetchQuery:K}=G,te=Wi(A,T,"query"),ne=U.getQueryDefaults(te),L=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?$:ne?.enabled)!==!1&&!L&&!U.getQueryCache().find({queryKey:te})&&K(te,R);const Q=f(te,(0,je.default)((0,je.default)({},ne),R)),W=(I=(z=R==null||(H=R.trpc)===null||H===void 0?void 0:H.abortOnUnmount)!==null&&z!==void 0?z:void 0)!==null&&I!==void 0?I:Y,ae=$W((0,je.default)((0,je.default)({},Q),{},{queryKey:te,queryFn:L?T:async ge=>{const we=(0,je.default)((0,je.default)({},Q),{},{trpc:(0,je.default)((0,je.default)({},Q?.trpc),W?{signal:ge.signal}:{signal:null})}),ue=await J.query(...Tr(te,we));return W8(ue)?g9(ue,U,te):ue}}),U);return ae.trpc=ih({path:A}),ae}function g(A,T,R){var M,$,I;const z=u(),H=Wi(A,T,"query"),G=T===ar,Y=(M=($=R==null||(I=R.trpc)===null||I===void 0?void 0:I.abortOnUnmount)!==null&&$!==void 0?$:void 0)!==null&&M!==void 0?M:z.abortOnUnmount;qW((0,je.default)((0,je.default)({},R),{},{queryKey:H,queryFn:G?T:J=>{const q={trpc:(0,je.default)((0,je.default)({},R?.trpc),Y?{signal:J.signal}:{})};return z.client.query(...Tr(H,q))}}))}function h(A,T,R){var M,$,I;const z=u(),H=Wi(A,T,"query"),G=(M=($=R==null||(I=R.trpc)===null||I===void 0?void 0:I.abortOnUnmount)!==null&&$!==void 0?$:void 0)!==null&&M!==void 0?M:z.abortOnUnmount,Y=BW((0,je.default)((0,je.default)({},R),{},{queryKey:H,queryFn:J=>{const q=(0,je.default)((0,je.default)({},R),{},{trpc:(0,je.default)((0,je.default)({},R?.trpc),G?{signal:J.signal}:{signal:null})});return z.client.query(...Tr(H,q))}}),z.queryClient);return Y.trpc=ih({path:A}),[Y.data,Y]}function y(A,T){const{client:R,queryClient:M}=u(),$=zb(A),I=M.defaultMutationOptions(M.getMutationDefaults($)),z=FW((0,je.default)((0,je.default)({},T),{},{mutationKey:$,mutationFn:H=>R.mutation(...Tr([A,{input:H}],T)),onSuccess(...H){var G,Y;return r({originalFn:()=>{var q,U,K;return(q=T==null||(U=T.onSuccess)===null||U===void 0?void 0:U.call(T,...H))!==null&&q!==void 0?q:I==null||(K=I.onSuccess)===null||K===void 0?void 0:K.call(I,...H)},queryClient:M,meta:(G=(Y=T?.meta)!==null&&Y!==void 0?Y:I?.meta)!==null&&G!==void 0?G:{}})}}),M);return z.trpc=ih({path:A}),z}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,I=hl(Wi(A,T,"any")),{client:z}=u(),H=_.useRef(R);_.useEffect(()=>{H.current=R});const[G]=_.useState(new Set([])),Y=_.useCallback(L=>{G.add(L)},[G]),J=_.useRef(null),q=_.useCallback(L=>{const Q=K.current,W=K.current=L(Q);let ae=!1;for(const ge of G)if(Q[ge]!==W[ge]){ae=!0;break}ae&&ne(nL(W,Y))},[Y,G]),U=_.useCallback(()=>{var L;if((L=J.current)===null||L===void 0||L.unsubscribe(),!$){q(()=>(0,je.default)((0,je.default)({},x),{},{reset:U}));return}q(()=>(0,je.default)((0,je.default)({},S),{},{reset:U}));const Q=z.subscription(A.join("."),T??void 0,{onStarted:()=>{var W,ae;(W=(ae=H.current).onStarted)===null||W===void 0||W.call(ae),q(ge=>(0,je.default)((0,je.default)({},ge),{},{status:"pending",error:null}))},onData:W=>{var ae,ge;(ae=(ge=H.current).onData)===null||ae===void 0||ae.call(ge,W),q(we=>(0,je.default)((0,je.default)({},we),{},{status:"pending",data:W,error:null}))},onError:W=>{var ae,ge;(ae=(ge=H.current).onError)===null||ae===void 0||ae.call(ge,W),q(we=>(0,je.default)((0,je.default)({},we),{},{status:"error",error:W}))},onConnectionStateChange:W=>{q(ae=>{switch(W.state){case"idle":return(0,je.default)((0,je.default)({},ae),{},{status:W.state,error:null,data:void 0});case"connecting":return(0,je.default)((0,je.default)({},ae),{},{error:W.error,status:W.state});case"pending":return ae}})},onComplete:()=>{var W,ae;(W=(ae=H.current).onComplete)===null||W===void 0||W.call(ae),q(ge=>(0,je.default)((0,je.default)({},ge),{},{status:"idle",error:null,data:void 0}))}});J.current=Q},[z,I,$,q]);_.useEffect(()=>(U(),()=>{var L;(L=J.current)===null||L===void 0||L.unsubscribe()}),[U]);const K=_.useRef($?(0,je.default)((0,je.default)({},S),{},{reset:U}):(0,je.default)((0,je.default)({},x),{},{reset:U})),[te,ne]=_.useState(nL(K.current,Y));return te}function w(A,T,R){var M,$,I,z,H;const{client:G,ssrState:Y,prefetchInfiniteQuery:J,queryClient:q,abortOnUnmount:U}=u(),K=Wi(A,T,"infinite"),te=q.getQueryDefaults(K),ne=T===ar;typeof window>"u"&&Y==="prepass"&&(R==null||(M=R.trpc)===null||M===void 0?void 0:M.ssr)!==!1&&(($=R?.enabled)!==null&&$!==void 0?$:te?.enabled)!==!1&&!ne&&!q.getQueryCache().find({queryKey:K})&&J(K,(0,je.default)((0,je.default)({},te),R));const L=f(K,(0,je.default)((0,je.default)({},te),R)),Q=(I=R==null||(z=R.trpc)===null||z===void 0?void 0:z.abortOnUnmount)!==null&&I!==void 0?I:U,W=KW((0,je.default)((0,je.default)({},L),{},{initialPageParam:(H=R.initialCursor)!==null&&H!==void 0?H:null,persister:R.persister,queryKey:K,queryFn:ne?T:ae=>{var ge;const we=(0,je.default)((0,je.default)({},L),{},{trpc:(0,je.default)((0,je.default)({},L?.trpc),Q?{signal:ae.signal}:{signal:null})});return G.query(...Tr(K,we,{pageParam:(ge=ae.pageParam)!==null&&ge!==void 0?ge:R.initialCursor,direction:ae.direction}))}}),q);return W.trpc=ih({path:A}),W}function D(A,T,R){var M,$,I;const z=u(),H=Wi(A,T,"infinite"),G=z.queryClient.getQueryDefaults(H),Y=T===ar,J=f(H,(0,je.default)((0,je.default)({},G),R)),q=(M=R==null||($=R.trpc)===null||$===void 0?void 0:$.abortOnUnmount)!==null&&M!==void 0?M:z.abortOnUnmount;HW((0,je.default)((0,je.default)({},R),{},{initialPageParam:(I=R.initialCursor)!==null&&I!==void 0?I:null,queryKey:H,queryFn:Y?T:U=>{var K;const te=(0,je.default)((0,je.default)({},J),{},{trpc:(0,je.default)((0,je.default)({},J?.trpc),q?{signal:U.signal}:{})});return z.client.query(...Tr(H,te,{pageParam:(K=U.pageParam)!==null&&K!==void 0?K:R.initialCursor,direction:U.direction}))}}))}function C(A,T,R){var M,$,I;const z=u(),H=Wi(A,T,"infinite"),G=z.queryClient.getQueryDefaults(H),Y=f(H,(0,je.default)((0,je.default)({},G),R)),J=(M=R==null||($=R.trpc)===null||$===void 0?void 0:$.abortOnUnmount)!==null&&M!==void 0?M:z.abortOnUnmount,q=zW((0,je.default)((0,je.default)({},R),{},{initialPageParam:(I=R.initialCursor)!==null&&I!==void 0?I:null,queryKey:H,queryFn:U=>{var K;const te=(0,je.default)((0,je.default)({},Y),{},{trpc:(0,je.default)((0,je.default)({},Y?.trpc),J?{signal:U.signal}:{})});return z.client.query(...Tr(H,te,{pageParam:(K=U.pageParam)!==null&&K!==void 0?K:R.initialCursor,direction:U.direction}))}}),z.queryClient);return q.trpc=ih({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:I}=u(),z=tL(I),H=A(z);if(typeof window>"u"&&R==="prepass")for(const Y of H){var G;const J=Y;((G=J.trpc)===null||G===void 0?void 0:G.ssr)!==!1&&!M.getQueryCache().find({queryKey:J.queryKey})&&$(J.queryKey,J)}return X8({queries:H.map(Y=>(0,je.default)((0,je.default)({},Y),{},{queryKey:Y.queryKey})),combine:T?.combine},M)},useSuspenseQueries:A=>{const{queryClient:T,client:R}=u(),M=tL(R),$=A(M),I=UW({queries:$.map(z=>(0,je.default)((0,je.default)({},z),{},{queryFn:z.queryFn,queryKey:z.queryKey}))},T);return[I.map(z=>z.data),I]},useMutation:y,useSubscription:N,useInfiniteQuery:w,usePrefetchInfiniteQuery:D,useSuspenseInfiniteQuery:C}}function mJ(e){const t=nJ(e);return l_(n=>n==="useContext"||n==="useUtils"?()=>{const r=e.useUtils();return _.useMemo(()=>sJ(r),[r])}:e.hasOwnProperty(n)?e[n]:t[n])}function hJ(e){const t=fJ();return mJ(t)}const et=hJ(),tt=e=>typeof e=="string",oh=()=>{let e,t;const n=new Promise((r,o)=>{e=r,t=o});return n.resolve=e,n.reject=t,n},rL=e=>e==null?"":""+e,pJ=(e,t,n)=>{e.forEach(r=>{t[r]&&(n[r]=t[r])})},gJ=/###/g,aL=e=>e&&e.indexOf("###")>-1?e.replace(gJ,"."):e,iL=e=>!e||tt(e),Ah=(e,t,n)=>{const r=tt(t)?t.split("."):t;let o=0;for(;o<r.length-1;){if(iL(e))return{};const s=aL(r[o]);!e[s]&&n&&(e[s]=new n),Object.prototype.hasOwnProperty.call(e,s)?e=e[s]:e={},++o}return iL(e)?{}:{obj:e,k:aL(r[o])}},oL=(e,t,n)=>{const{obj:r,k:o}=Ah(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=Ah(e,c,Object);for(;u.obj===void 0&&c.length;)s=`${c[c.length-1]}.${s}`,c=c.slice(0,c.length-1),u=Ah(e,c,Object),u?.obj&&typeof u.obj[`${u.k}.${s}`]<"u"&&(u.obj=void 0);u.obj[`${u.k}.${s}`]=n},vJ=(e,t,n,r)=>{const{obj:o,k:s}=Ah(e,t,Object);o[s]=o[s]||[],o[s].push(n)},ey=(e,t)=>{const{obj:n,k:r}=Ah(e,t);if(n&&Object.prototype.hasOwnProperty.call(n,r))return n[r]},bJ=(e,t,n)=>{const r=ey(e,n);return r!==void 0?r:ey(t,n)},v9=(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]):v9(e[r],t[r],n):e[r]=t[r]);return e},dc=e=>e.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&");var yJ={"&":"&","<":"<",">":">",'"':""","'":"'","/":"/"};const xJ=e=>tt(e)?e.replace(/[&<>"'\/]/g,t=>yJ[t]):e;class NJ{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 wJ=[" ",",","?","!",";"],EJ=new NJ(20),SJ=(e,t,n)=>{t=t||"",n=n||"";const r=wJ.filter(c=>t.indexOf(c)<0&&n.indexOf(c)<0);if(r.length===0)return!0;const o=EJ.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},aC=(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},Vh=e=>e?.replace("_","-"),AJ={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||AJ,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 sL 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:aC(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),oL(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?v9(f,r,s):f={...f,...r},oL(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 b9={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 y9=Symbol("i18next/PATH_KEY");function OJ(){const e=[],t=Object.create(null);let n;return t.get=(r,o)=>(n?.revoke?.(),o===y9?e:(e.push(o),n=Proxy.revocable(r,t),n.proxy)),Proxy.revocable(Object.create(null),t).proxy}function iC(e,t){const{[y9]:n}=e(OJ());return n.join(t?.keySeparator??".")}const lL={},mE=e=>!tt(e)&&typeof e!="boolean"&&typeof e!="number";class ny extends bx{constructor(t,n={}){super(),pJ(["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=mE(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&&!SJ(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=iC(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 I=S;j&&!S&&A&&(I=$);const z=mE(I),H=Object.prototype.toString.apply(I);if(j&&I&&z&&D.indexOf(H)<0&&!(tt(C)&&Array.isArray(I))){if(!o.returnObjects&&!this.options.returnObjects){this.options.returnedObjectHandler||this.logger.warn("accessing an object - but returnObjects options is not enabled!");const G=this.options.returnedObjectHandler?this.options.returnedObjectHandler(N,I,{...o,ns:f}):`key '${u} (${this.language})' returned an object instead of string.`;return s?(x.res=G,x.usedParams=this.getUsedParamsDetails(o),x):G}if(c){const G=Array.isArray(I),Y=G?[]:{},J=G?w:N;for(const q in I)if(Object.prototype.hasOwnProperty.call(I,q)){const U=`${J}${c}${q}`;A&&!S?Y[q]=this.translate(U,{...o,defaultValue:mE($)?$[q]:void 0,joinArrays:!1,ns:f}):Y[q]=this.translate(U,{...o,joinArrays:!1,ns:f}),Y[q]===U&&(Y[q]=I[q])}S=Y}}else if(j&&tt(C)&&Array.isArray(S))S=S.join(C),S&&(S=this.extendTranslation(S,t,o,r));else{let G=!1,Y=!1;!this.isValidLookup(S)&&A&&(G=!0,S=$),this.isValidLookup(S)||(Y=!0,S=u);const q=(o.missingKeyNoValueFallbackToKey||this.options.missingKeyNoValueFallbackToKey)&&Y?void 0:S,U=A&&$!==S&&this.options.updateMissing;if(Y||G||U){if(this.logger.log(U?"updateKey":"missingKey",h,m,u,U?$:S),c){const L=this.resolve(u,{...o,keySeparator:!1});L&&L.res&&this.logger.warn("Seems the loaded translations were in flat JSON format instead of nested. Either set keySeparator: false on init or make sure your translations are published in nested format.")}let K=[];const te=this.languageUtils.getFallbackCodes(this.options.fallbackLng,o.lng||this.language);if(this.options.saveMissingTo==="fallback"&&te&&te[0])for(let L=0;L<te.length;L++)K.push(te[L]);else this.options.saveMissingTo==="all"?K=this.languageUtils.toResolveHierarchy(o.lng||this.language):K.push(o.lng||this.language);const ne=(L,Q,W)=>{const ae=A&&W!==S?W:q;this.options.missingKeyHandler?this.options.missingKeyHandler(L,m,Q,ae,U,o):this.backendConnector?.saveMissing&&this.backendConnector.saveMissing(L,m,Q,ae,U,o),this.emit("missingKey",L,m,Q,S)};this.options.saveMissing&&(this.options.saveMissingPlurals&&P?K.forEach(L=>{const Q=this.pluralResolver.getSuffixes(L,o);M&&o[`defaultValue${this.options.pluralSeparator}zero`]&&Q.indexOf(`${this.options.pluralSeparator}zero`)<0&&Q.push(`${this.options.pluralSeparator}zero`),Q.forEach(W=>{ne([L],u+W,o[`defaultValue${W}`]||$)})}):ne(K,u,$))}S=this.extendTranslation(S,t,o,x,r),Y&&S===u&&this.options.appendNamespaceToMissingKey&&(S=`${m}${g}${u}`),(Y||G)&&this.options.parseMissingKeyHandler&&(S=this.options.parseMissingKeyHandler(this.options.appendNamespaceToMissingKey?`${m}${g}${u}`:u,G?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=b9.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,!lL[`${N[0]}-${w}`]&&this.utils?.hasLoadedNamespace&&!this.utils?.hasLoadedNamespace(u)&&(lL[`${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 cL{constructor(t){this.options=t,this.supportedLngs=this.options.supportedLngs||!1,this.logger=Ji.create("languageUtils")}getScriptPartFromCode(t){if(t=Vh(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=Vh(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 uL={zero:0,one:1,two:2,few:3,many:4,other:5},dL={select:e=>e===1?"one":"other",resolvedOptions:()=>({pluralCategories:["one","other"]})};class DJ{constructor(t,n={}){this.languageUtils=t,this.options=n,this.logger=Ji.create("pluralResolver"),this.pluralRulesCache={}}clearCache(){this.pluralRulesCache={}}getRule(t,n={}){const r=Vh(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!"),dL;if(!t.match(/-|_/))return dL;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)=>uL[o]-uL[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 fL=(e,t,n,r=".",o=!0)=>{let s=bJ(e,t,n);return!s&&o&&tt(n)&&(s=aC(e,n,r),s===void 0&&(s=aC(t,n,r))),s},hE=e=>e.replace(/\$/g,"$$$$");class mL{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:xJ,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=fL(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(fL(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=>hE(x)},{regex:this.regexp,safeValue:x=>this.escapeValue?hE(this.escape(x)):hE(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=rL(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=rL(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 CJ=e=>{let t=e.toLowerCase().trim();const n={};if(e.indexOf("(")>-1){const r=e.split("(");t=r[0].toLowerCase().trim();const o=r[1].substring(0,r[1].length-1);t==="currency"&&o.indexOf(":")<0?n.currency||(n.currency=o.trim()):t==="relativetime"&&o.indexOf(":")<0?n.range||(n.range=o.trim()):o.split(";").forEach(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}},hL=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(Vh(r),o),t[c]=u),u(n)}},TJ=e=>(t,n,r)=>e(Vh(n),r)(t);class _J{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?hL:TJ;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()]=hL(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}=CJ(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 jJ=(e,t)=>{e.pending[t]!==void 0&&(delete e.pending[t],e.pendingCount--)};class RJ 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=>{vJ(f.loaded,[s],c),jJ(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 pE=()=>({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}),pL=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=()=>{},PJ=e=>{Object.getOwnPropertyNames(Object.getPrototypeOf(e)).forEach(n=>{typeof e[n]=="function"&&(e[n]=e[n].bind(e))})},x9="__i18next_supportNoticeShown",MJ=()=>typeof globalThis<"u"&&!!globalThis[x9],kJ=()=>{typeof globalThis<"u"&&(globalThis[x9]=!0)},IJ=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 Oh extends bx{constructor(t={},n){if(super(),this.options=pL(t),this.services={},this.logger=Ji,this.modules={external:[]},PJ(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=pE();this.options={...r,...this.options,...pL(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&&!IJ(this)&&!MJ()&&(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 💙"),kJ());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=_J;const g=new cL(this.options);this.store=new sL(this.options.resources,this.options);const h=this.services;h.logger=Ji,h.resourceStore=this.store,h.languageUtils=g,h.pluralResolver=new DJ(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 mL(this.options),h.utils={hasLoadedNamespace:this.hasLoadedNamespace.bind(this)},h.backendConnector=new RJ(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=oh(),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=oh();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"&&b9.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=oh();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=iC(h,{...this.options,...c})),`${f.keyPrefix}${m}${h}`)):(typeof s=="function"&&(s=iC(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=oh();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=oh();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 cL(pE());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 Oh(t,n);return r.createInstance=Oh.createInstance,r}cloneInstance(t={},n=pb){const r=t.forkResourceStore;r&&delete t.forkResourceStore;const o={...this.options,...t,isClone:!0},s=new Oh(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 sL(u,o),s.services.resourceStore=s.store}if(t.interpolation){const f={...pE().interpolation,...this.options.interpolation,...t.interpolation},m={...o,interpolation:f};s.services.interpolator=new mL(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=Oh.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:LJ,forEach:VJ}=[];function $J(e){return VJ.call(LJ.call(arguments,1),t=>{if(t)for(const n in t)e[n]===void 0&&(e[n]=t[n])}),e}function BJ(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 gL=/^[\u0009\u0020-\u007e\u0080-\u00ff]+$/,zJ=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(!gL.test(r.domain))throw new TypeError("option domain is invalid");s+=`; Domain=${r.domain}`}if(r.path){if(!gL.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},vL={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=zJ(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 UJ={name:"cookie",lookup(e){let{lookupCookie:t}=e;if(t&&typeof document<"u")return vL.read(t)||void 0},cacheUserLanguage(e,t){let{lookupCookie:n,cookieMinutes:r,cookieDomain:o,cookieOptions:s}=t;n&&typeof document<"u"&&vL.create(n,e,r,o,s)}},qJ={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}},HJ={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 bL=()=>{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 FJ={name:"localStorage",lookup(e){let{lookupLocalStorage:t}=e;if(t&&bL())return window.localStorage.getItem(t)||void 0},cacheUserLanguage(e,t){let{lookupLocalStorage:n}=t;n&&bL()&&window.localStorage.setItem(n,e)}};let dd=null;const yL=()=>{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 KJ={name:"sessionStorage",lookup(e){let{lookupSessionStorage:t}=e;if(t&&yL())return window.sessionStorage.getItem(t)||void 0},cacheUserLanguage(e,t){let{lookupSessionStorage:n}=t;n&&yL()&&window.sessionStorage.setItem(n,e)}},GJ={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}},YJ={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}},QJ={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}},XJ={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 N9=!1;try{document.cookie,N9=!0}catch{}const w9=["querystring","cookie","localStorage","sessionStorage","navigator","htmlTag"];N9||w9.splice(1,1);const WJ=()=>({order:w9,lookupQuerystring:"lng",lookupCookie:"i18next",lookupLocalStorage:"i18nextLng",lookupSessionStorage:"i18nextLng",caches:["localStorage"],excludeCacheFor:["cimode"],convertDetectedLanguage:e=>e});class E9{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=$J(n,this.options||{},WJ()),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(UJ),this.addDetector(qJ),this.addDetector(FJ),this.addDetector(KJ),this.addDetector(GJ),this.addDetector(YJ),this.addDetector(QJ),this.addDetector(XJ),this.addDetector(HJ)}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&&!BJ(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)}))}}E9.type="languageDetector";const ZJ=(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)},xL={},S9=(e,t,n,r)=>{Rc(n)&&xL[n]||(Rc(n)&&(xL[n]=new Date),ZJ(e,t,n,r))},A9=(e,t)=>()=>{if(e.isInitialized)t();else{const n=()=>{setTimeout(()=>{e.off("initialized",n)},0),t()};e.on("initialized",n)}},oC=(e,t,n)=>{e.loadNamespaces(t,A9(e,n))},NL=(e,t,n,r)=>{if(Rc(n)&&(n=[n]),e.options.preload&&e.options.preload.indexOf(t)>-1)return oC(e,n,r);n.forEach(o=>{e.options.ns.indexOf(o)<0&&e.options.ns.push(o)}),e.loadLanguages(t,A9(e,r))},JJ=(e,t,n={})=>!t.languages||!t.languages.length?(S9(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",eee=e=>typeof e=="object"&&e!==null,tee=/&(?:amp|#38|lt|#60|gt|#62|apos|#39|quot|#34|nbsp|#160|copy|#169|reg|#174|hellip|#8230|#x2F|#47);/g,nee={"&":"&","&":"&","<":"<","<":"<",">":">",">":">","'":"'","'":"'",""":'"',""":'"'," ":" "," ":" ","©":"©","©":"©","®":"®","®":"®","…":"…","…":"…","/":"/","/":"/"},ree=e=>nee[e],aee=e=>e.replace(tee,ree);let sC={bindI18n:"languageChanged",bindI18nStore:"",transEmptyNodeValue:"",transSupportBasicHtmlNodes:!0,transWrapTextNodes:"",transKeepBasicHtmlNodesFor:["br","strong","i","p"],useSuspense:!0,unescape:aee,transDefaultProps:void 0};const iee=(e={})=>{sC={...sC,...e}},oee=()=>sC;let O9;const see=e=>{O9=e},lee=()=>O9,cee={type:"3rdParty",init(e){iee(e.options.react),see(e)}},uee=_.createContext();class dee{constructor(){this.usedNamespaces={}}addUsedNamespaces(t){t.forEach(n=>{this.usedNamespaces[n]||(this.usedNamespaces[n]=!0)})}getUsedNamespaces(){return Object.keys(this.usedNamespaces)}}var gE={exports:{}},vE={},wL;function fee(){if(wL)return vE;wL=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;vE.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())})(),vE}var EL;function mee(){return EL||(EL=1,gE.exports=fee()),gE.exports}var D9=mee();const hee=(e,t)=>Rc(t)?t:eee(t)&&Rc(t.defaultValue)?t.defaultValue:Array.isArray(e)?e[e.length-1]:e,pee={t:hee,ready:!1},gee=()=>()=>{},yx=(e,t={})=>{const{i18n:n}=t,{i18n:r,defaultNS:o}=_.useContext(uee)||{},s=n||r||lee();s&&!s.reportNamespaces&&(s.reportNamespaces=new dee),s||S9(s,"NO_I18NEXT_INSTANCE","useTranslation: You will need to pass in an i18next instance by using initReactI18next");const c=_.useMemo(()=>({...oee(),...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 gee;const{bindI18n:I,bindI18nStore:z}=c,H=()=>{y.current+=1,$()};return I&&s.on(I,H),z&&s.store.on(z,H),()=>{I&&I.split(" ").forEach(G=>s.off(G,H)),z&&z.split(" ").forEach(G=>s.store.off(G,H))}},[s,c]),S=_.useRef(),N=_.useCallback(()=>{if(!s)return pee;const $=!!(s.isInitialized||s.initializedStoreOnce)&&h.every(J=>JJ(J,s,c)),I=t.lng||s.language,z=y.current,H=S.current;if(H&&H.ready===$&&H.lng===I&&H.keyPrefix===f&&H.revision===z)return H;const Y={t:s.getFixedT(I,c.nsMode==="fallback"?h:h[0],f),ready:$,lng:I,keyPrefix:f,revision:z};return S.current=Y,Y},[s,h,f,c,t.lng]),[w,D]=_.useState(0),{t:C,ready:j}=D9.useSyncExternalStore(x,N,N);_.useEffect(()=>{if(s&&!j&&!u){const $=()=>D(I=>I+1);t.lng?NL(s,t.lng,h,$):oC(s,h,$)}},[s,t.lng,h,j,u,w]);const P=s||{},A=_.useRef(null),T=_.useRef(),R=$=>{const I=Object.getOwnPropertyDescriptors($);I.__original&&delete I.__original;const z=Object.create(Object.getPrototypeOf($),I);if(!Object.prototype.hasOwnProperty.call(z,"__original"))try{Object.defineProperty(z,"__original",{value:$,writable:!1,enumerable:!1,configurable:!1})}catch{}return z},M=_.useMemo(()=>{const $=P,I=$?.language;let z=$;$&&(A.current&&A.current.__original===$?T.current!==I?(z=R($),A.current=z,T.current=I):z=A.current:(z=R($),A.current=z,T.current=I));const H=[C,z,j];return H.t=C,H.i18n=z,H.ready=j,H},[C,P,j,P.resolvedLanguage,P.language,P.languages]);if(s&&u&&!j)throw new Promise($=>{const I=()=>$();t.lng?NL(s,t.lng,h,I):oC(s,h,I)});return M},vee={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:"全部类型"}},bee={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"}},yee={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:"جميع الأنواع"}},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:"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:"すべてのタイプ"}},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:"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"}},Eee={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:"Все типы"}},See=[{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(E9).use(cee).init({resources:{zh:{translation:vee},en:{translation:bee},ar:{translation:yee},ja:{translation:xee},ko:{translation:Nee},fr:{translation:wee},ru:{translation:Eee}},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=See.find(n=>n.code===e);document.documentElement.dir=t?.dir??"ltr",document.documentElement.lang=e});const Aee="Please login (10001)";var bE={exports:{}},sh={},yE={exports:{}},xE={},SL;function Oee(){return SL||(SL=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();H=q;var U=!0;try{e:{j=!1,P&&(P=!1,R(I),I=-1),C=!0;var K=D;try{t:{for(c(q),w=r(x);w!==null&&!(w.expirationTime>q&&f());){var te=w.callback;if(typeof te=="function"){w.callback=null,D=w.priorityLevel;var ne=te(w.expirationTime<=q);if(q=e.unstable_now(),typeof ne=="function"){w.callback=ne,c(q),U=!0;break t}w===r(x)&&o(x),c(q)}else o(x);w=r(x)}if(w!==null)U=!0;else{var L=r(S);L!==null&&m(u,L.startTime-q),U=!1}}break e}finally{w=null,D=K,C=!1}U=void 0}}finally{U?G():$=!1}}}function n(q,U){var K=q.length;q.push(U);e:for(;0<K;){var te=K-1>>>1,ne=q[te];if(0<s(ne,U))q[te]=U,q[K]=ne,K=te;else break e}}function r(q){return q.length===0?null:q[0]}function o(q){if(q.length===0)return null;var U=q[0],K=q.pop();if(K!==U){q[0]=K;e:for(var te=0,ne=q.length,L=ne>>>1;te<L;){var Q=2*(te+1)-1,W=q[Q],ae=Q+1,ge=q[ae];if(0>s(W,K))ae<ne&&0>s(ge,W)?(q[te]=ge,q[ae]=K,te=ae):(q[te]=W,q[Q]=K,te=Q);else if(ae<ne&&0>s(ge,K))q[te]=ge,q[ae]=K,te=ae;else break e}}return U}function s(q,U){var K=q.sortIndex-U.sortIndex;return K!==0?K:q.id-U.id}function c(q){for(var U=r(S);U!==null;){if(U.callback===null)o(S);else if(U.startTime<=q)o(S),U.sortIndex=U.expirationTime,n(x,U);else break;U=r(S)}}function u(q){if(P=!1,c(q),!j)if(r(x)!==null)j=!0,$||($=!0,G());else{var U=r(S);U!==null&&m(u,U.startTime-q)}}function f(){return A?!0:!(e.unstable_now()-H<z)}function m(q,U){I=T(function(){q(e.unstable_now())},U)}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,I=-1,z=5,H=-1;if(typeof M=="function")var G=function(){M(t)};else if(typeof MessageChannel<"u"){var Y=new MessageChannel,J=Y.port2;Y.port1.onmessage=t,G=function(){J.postMessage(null)}}else G=function(){T(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"):z=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 U=3;break;default:U=D}var K=D;D=U;try{return q()}finally{D=K}},e.unstable_requestPaint=function(){A=!0},e.unstable_runWithPriority=function(q,U){switch(q){case 1:case 2:case 3:case 4:case 5:break;default:q=3}var K=D;D=q;try{return U()}finally{D=K}},e.unstable_scheduleCallback=function(q,U,K){var te=e.unstable_now();switch(typeof K=="object"&&K!==null?(K=K.delay,K=typeof K=="number"&&0<K?te+K:te):K=te,q){case 1:var ne=-1;break;case 2:ne=250;break;case 5:ne=1073741823;break;case 4:ne=1e4;break;default:ne=5e3}return ne=K+ne,q={id:N++,callback:U,priorityLevel:q,startTime:K,expirationTime:ne,sortIndex:-1},K>te?(q.sortIndex=K,n(S,q),r(x)===null&&q===r(S)&&(P?(R(I),I=-1):P=!0,m(u,K-te))):(q.sortIndex=ne,n(x,q),j||C||(j=!0,$||($=!0,G()))),q},e.unstable_shouldYield=f,e.unstable_wrapCallback=function(q){var U=D;return function(){var K=D;D=U;try{return q.apply(this,arguments)}finally{D=K}}},typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error())})()})(xE)),xE}var AL;function Dee(){return AL||(AL=1,yE.exports=Oee()),yE.exports}var NE={exports:{}},cr={},OL;function Cee(){if(OL)return cr;OL=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 DL;function C9(){return DL||(DL=1,NE.exports=Cee()),NE.exports}var CL;function Tee(){if(CL)return sh;CL=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 KG(a,i,l,d)}function x(a,i){a.context===Ls&&(AN(a.current,2,i,a,null,null),xu())}function S(a,i){if(Sa!==null){var l=i.staleFamilies;i=i.updatedFamilies,Jf(),zR(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=Y3&&a[Y3]||a["@@iterator"],typeof a=="function"?a:null)}function M(a){if(a==null)return null;if(typeof a=="function")return a.$$typeof===hQ?null:a.displayName||a.name||null;if(typeof a=="string")return a;switch(a){case Du:return"Fragment";case RN:return"Profiler";case rv:return"StrictMode";case MN:return"Suspense";case kN:return"SuspenseList";case IN: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 PN:return(a._context.displayName||"Context")+".Consumer";case cm: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"?I(a):typeof a.name=="string"?a.name:null}function I(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 I(a.return)}return null}function z(a){return{current:a}}function H(a,i){0>jo?console.error("Unexpected pop."):(i!==VN[jo]&&console.error("Unexpected Fiber popped."),a.current=LN[jo],LN[jo]=null,VN[jo]=null,jo--)}function G(a,i,l){jo++,LN[jo]=a.current,VN[jo]=l,a.current=i}function Y(a){return a===null&&console.error("Expected host context to exist. This error is likely caused by a bug in React. Please file an issue."),a}function J(a,i){G(js,i,a),G(um,a,a),G(_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)?b3(i):Ko;break;default:if(l=i.tagName,i=i.namespaceURI)i=b3(i),i=y3(i,l);else switch(l){case"svg":i=sd;break;case"math":i=nb;break;default:i=Ko}}l=l.toLowerCase(),l=fR(null,l),l={context:i,ancestorInfo:l},H(_s,a),G(_s,l,a)}function q(a){H(_s,a),H(um,a),H(js,a)}function U(){return Y(_s.current)}function K(a){a.memoizedState!==null&&G(iv,a,a);var i=Y(_s.current),l=a.type,d=y3(i.context,l);l=fR(i.ancestorInfo,l),d={context:d,ancestorInfo:l},i!==d&&(G(um,a,a),G(_s,d,a))}function te(a){um.current===a&&(H(_s,a),H(um,a)),iv.current===a&&(H(iv,a),th._currentValue=uc)}function ne(){}function L(){if(dm===0){Q3=console.log,X3=console.info,W3=console.warn,Z3=console.error,J3=console.group,e5=console.groupCollapsed,t5=console.groupEnd;var a={configurable:!0,enumerable:!0,value:ne,writable:!0};Object.defineProperties(console,{info:a,log:a,warn:a,error:a,group:a,groupCollapsed:a,groupEnd:a})}dm++}function Q(){if(dm--,dm===0){var a={configurable:!0,enumerable:!0,writable:!0};Object.defineProperties(console,{log:mt({},a,{value:Q3}),info:mt({},a,{value:X3}),warn:mt({},a,{value:W3}),error:mt({},a,{value:Z3}),group:mt({},a,{value:J3}),groupCollapsed:mt({},a,{value:e5}),groupEnd:mt({},a,{value:t5})})}0>dm&&console.error("disabledDepth fell below zero. This is a bug in React. Please file an issue.")}function W(a){var i=Error.prepareStackTrace;if(Error.prepareStackTrace=void 0,a=a.stack,Error.prepareStackTrace=i,a.startsWith(`Error: react-stack-top-frame
|
||
`)&&(a=a.slice(29)),i=a.indexOf(`
|
||
`),i!==-1&&(a=a.slice(i+1)),i=a.indexOf("react_stack_bottom_frame"),i!==-1&&(i=a.lastIndexOf(`
|
||
`,i)),i!==-1)a=a.slice(0,i);else return"";return a}function ae(a){if($N===void 0)try{throw Error()}catch(l){var i=l.stack.trim().match(/\n( *(at )?)/);$N=i&&i[1]||"",n5=-1<l.stack.indexOf(`
|
||
at`)?" (<anonymous>)":-1<l.stack.indexOf("@")?"@unknown:0:0":""}return`
|
||
`+$N+a+n5}function ge(a,i){if(!a||BN)return"";var l=zN.get(a);if(l!==void 0)return l;BN=!0,l=Error.prepareStackTrace,Error.prepareStackTrace=void 0;var d=null;d=pe.H,pe.H=null,L();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 V=O.split(`
|
||
`),oe=k.split(`
|
||
`);for(E=v=0;v<V.length&&!V[v].includes("DetermineComponentFrameRoot");)v++;for(;E<oe.length&&!oe[E].includes("DetermineComponentFrameRoot");)E++;if(v===V.length||E===oe.length)for(v=V.length-1,E=oe.length-1;1<=v&&0<=E&&V[v]!==oe[E];)E--;for(;1<=v&&0<=E;v--,E--)if(V[v]!==oe[E]){if(v!==1||E!==1)do if(v--,E--,0>E||V[v]!==oe[E]){var se=`
|
||
`+V[v].replace(" at new "," at ");return a.displayName&&se.includes("<anonymous>")&&(se=se.replace("<anonymous>",a.displayName)),typeof a=="function"&&zN.set(a,se),se}while(1<=v&&0<=E);break}}}finally{BN=!1,pe.H=d,Q(),Error.prepareStackTrace=l}return V=(V=a?a.displayName||a.name:"")?ae(V):"",typeof a=="function"&&zN.set(a,V),V}function we(a,i){switch(a.tag){case 26:case 27:case 5:return ae(a.type);case 16:return ae("Lazy");case 13:return a.child!==i&&i!==null?ae("Suspense Fallback"):ae("Suspense");case 19:return ae("SuspenseList");case 0:case 15:return ge(a.type,!1);case 11:return ge(a.type.render,!1);case 1:return ge(a.type,!0);case 31:return ae("Activity");default:return""}}function ue(a){try{var i="",l=null;do{i+=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,V=v.debugLocation;if(V!=null){var oe=W(V),se=oe.lastIndexOf(`
|
||
`),Z=se===-1?oe:oe.slice(se+1);if(Z.indexOf(O)!==-1){var fe=`
|
||
`+Z;break e}}fe=ae(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 xe(a){return(a=a?a.displayName||a.name:"")?ae(a):""}function me(){if(ra===null)return null;var a=ra._debugOwner;return a!=null?$(a):null}function ye(){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+=ae(a.type);break;case 13:i+=ae("Suspense");break;case 19:i+=ae("SuspenseList");break;case 31:i+=ae("Activity");break;case 30:case 0:case 15:case 1:a._debugOwner||i!==""||(i+=xe(a.type));break;case 11:a._debugOwner||i!==""||(i+=xe(a.type.render))}for(;a;)if(typeof a.tag=="number"){var l=a;a=l._debugOwner;var d=l._debugStack;if(a&&d){var p=W(d);p!==""&&(i+=`
|
||
`+p)}}else if(a.debugStack!=null){var v=a.debugStack;(a=a.owner)&&v&&(i+=`
|
||
`+W(v))}else break;var E=i}catch(O){E=`
|
||
Error generating stack: `+O.message+`
|
||
`+O.stack}return E}function de(a,i,l,d,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:ye,$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 zn(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 NQ=="function"&&wQ(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-(EQ(a)/SQ|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 Un(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,V=a.hiddenUpdates;for(l=E&~l;0<l;){var oe=31-Nr(l),se=1<<oe;O[oe]=0,k[oe]=-1;var Z=V[oe];if(Z!==null)for(V[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:z3(a.type))}function B(a,i){var l=Pt.p;try{return Pt.p=a,i()}finally{Pt.p=l}}function ce(a){delete a[tr],delete a[wr],delete a[KN],delete a[AQ],delete a[OQ]}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=D3(a);a!==null;){if(l=a[tr])return l;a=D3(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[r5];return i||(i=a[r5]={hoistableStyles:new Map,hoistableScripts:new Map}),i}function Se(a){a[fm]=!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(GN[l]=a,a==="onDoubleClick"&&(GN.ondblclick=a),a=0;a<i.length;a++)a5.add(i[a])}function zt(a,i){DQ[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(o5,a)?!0:Xa.call(i5,a)?!1:CQ.test(a)?o5[a]=!0:(i5[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 zn(a),a;default:return""}}function Cf(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){zn(E),l=""+E,v.call(this,E)}}),Object.defineProperty(a,i,{enumerable:d.enumerable}),{getValue:function(){return l},setValue:function(E){zn(E),l=""+E},stopTracking:function(){a._valueTracker=null,delete a[i]}}}}function Xp(a){if(!a._valueTracker){var i=Cf(a)?"checked":"value";a._valueTracker=wo(a,i,""+a[i])}}function Jj(a){if(!a)return!1;var i=a._valueTracker;if(!i)return!0;var l=i.getValue(),d="";return a&&(d=Cf(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(TQ,function(i){return"\\"+i.charCodeAt(0).toString(16)+" "})}function eR(a,i){i.checked===void 0||i.defaultChecked===void 0||l5||(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),l5=!0),i.value===void 0||i.defaultValue===void 0||s5||(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),s5=!0)}function O0(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?D0(a,E,an(i)):l!=null?D0(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 tR(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 D0(a,i,l){i==="number"&&Wp(a.ownerDocument)===a||a.defaultValue===""+l||(a.defaultValue=""+l)}function nR(a,i){i.value==null&&(typeof i.children=="object"&&i.children!==null?jN.Children.forEach(i.children,function(l){l==null||typeof l=="string"||typeof l=="number"||typeof l=="bigint"||u5||(u5=!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||d5||(d5=!0,console.error("Pass a `value` prop if you set dangerouslyInnerHTML so React knows which value should be selected."))),i.selected==null||c5||(console.error("Use the `defaultValue` or `value` props on <select> instead of setting `selected` on <option>."),c5=!0)}function rR(){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 aR(a,i){for(a=0;a<m5.length;a++){var l=m5[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,rR()):!i.multiple&&d&&console.error("The `%s` prop supplied to <select> must be a scalar value if `multiple` is false.%s",l,rR())}}i.value===void 0||i.defaultValue===void 0||f5||(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"),f5=!0)}function iR(a,i){i.value===void 0||i.defaultValue===void 0||h5||(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"),h5=!0),i.children!=null&&i.value==null&&console.error("Use the `defaultValue` or `value` props instead of setting children on <textarea>.")}function oR(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 sR(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 lR(a,i){return a.serverProps===void 0&&a.serverTail.length===0&&a.children.length===1&&3<a.distanceFromLeaf&&a.distanceFromLeaf>15-i?lR(a.children[0],i):a}function Qr(a){return" "+" ".repeat(a)}function cu(a){return"+ "+" ".repeat(a)}function Ol(a){return"- "+" ".repeat(a)}function cR(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 Tf(a,i){return p5.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)+Tf(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)+Tf(a,d)+`
|
||
`+Ol(l)+Tf(i,d)+`
|
||
`}return Qr(l)+Tf(a,d)+`
|
||
`}function C0(a){return Object.prototype.toString.call(a).replace(/^\[object (.*)\]$/,function(i,l){return l})}function _f(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=C0(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=_f(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"||p5.test(a)?"{"+_f(a,i-2)+"}":a.length>i-2?5>i?'"..."':'"'+a.slice(0,i-5)+'..."':'"'+a+'"'}function T0(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 SG(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=_f(a[v],E);i.hasOwnProperty(v)?(E=_f(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=_f(p[k],120-2*l-k.length-2),d+=Ol(l)+k+": "+a+`
|
||
`);return d}function AG(a,i,l,d){var p="",v=new Map;for(V in l)l.hasOwnProperty(V)&&v.set(V.toLowerCase(),V);if(v.size===1&&v.has("children"))p+=T0(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 V=i[E];k=l[k];var oe=uu(V,O);O=uu(k,O),typeof V=="object"&&V!==null&&typeof k=="object"&&k!==null&&C0(V)==="Object"&&C0(k)==="Object"&&(2<Object.keys(V).length||2<Object.keys(k).length||-1<oe.indexOf("...")||-1<O.indexOf("..."))?p+=Qr(d+1)+E+`={{
|
||
`+SG(V,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 uR(a,i){var l=cR(a);if(l===null){for(l="",a=a.child;a;)l+=uR(a,i),a=a.sibling;return l}return Qr(i)+"<"+l+`>
|
||
`}function _0(a,i){var l=lR(a,i);if(l!==a&&(a.children.length!==1||a.children[0]!==l))return Qr(i)+`...
|
||
`+_0(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=cR(a.fiber),v!==null)if(a.serverProps===void 0){d=i;var E=120-2*d-v.length-2,O="";for(V in p)if(p.hasOwnProperty(V)&&V!=="children"){var k=uu(p[V],15);if(E-=V.length+k.length+2,0>E){O+=" ...";break}O+=" "+V+"="+k}d=Qr(d)+"<"+v+O+`>
|
||
`,i++}else a.serverProps===null?(d=T0(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=AG(v,p,a.serverProps,i),i++);var V="";for(p=a.fiber.child,v=0;p&&v<a.children.length;)E=a.children[v],E.fiber===p?(V+=_0(E,i),v++):V+=uR(p,i),p=p.sibling;for(p&&0<a.children.length&&(V+=Qr(i)+`...
|
||
`),p=a.serverTail,a.serverProps===null&&i--,a=0;a<p.length;a++)v=p[a],V=typeof v=="string"?V+(Ol(i)+Tf(v,120-2*i)+`
|
||
`):V+T0(v.type,v.props,Ol(i));return l+d+V}function j0(a){try{return`
|
||
|
||
`+_0(a,0)}catch{return""}}function dR(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?j0(p).replaceAll(/^[+-]/gm,">"):""}function fR(a,i){var l=mt({},a||v5),d={tag:i};return g5.indexOf(i)!==-1&&(l.aTagInScope=null,l.buttonTagInScope=null,l.nobrTagInScope=null),jQ.indexOf(i)!==-1&&(l.pTagInButtonScope=null),_Q.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 mR(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 RQ.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 OG(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 hR(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 R0(a,i){i=i||v5;var l=i.current;if(i=(l=mR(a,l&&l.tag,i.implicitRootScope)?null:l)?null:OG(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)?hR(i.return,d):null,v=i!==null&&p!==null?dR(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||mR("#text",i,!1))return!0;if(l="#text|"+i,uv[l])return!1;uv[l]=!0;var d=(l=ra)?hR(l,i):null;return l=l!==null&&d!==null?dR(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 jf(a,i){if(i){var l=a.firstChild;if(l&&l===a.lastChild&&l.nodeType===3){l.nodeValue=i;return}}a.textContent=i}function DG(a){return a.replace(kQ,function(i,l){return l.toUpperCase()})}function pR(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,DG(i.replace(MQ,"ms-")))):PQ.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))):!x5.test(l)||QN.hasOwnProperty(l)&&QN[l]||(QN[l]=!0,console.error(`Style property values shouldn't contain a semicolon. Try "%s: %s" instead.`,i,l.replace(x5,""))),typeof l=="number"&&(isNaN(l)?N5||(N5=!0,console.error("`NaN` is an invalid value for the `%s` css style property.",i)):isFinite(l)||w5||(w5=!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||E5.has(i)?i==="float"?a.cssFloat=l:(nt(l,i),a[i]=(""+l).trim()):a[i]=l+"px"}function gR(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=YN[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=YN[O]||[O],v=0;v<p.length;v++)d[p[v]]=O;O={};for(var k in i)for(p=YN[k]||[k],v=0;v<p.length;v++)O[p[v]]=k;k={};for(var V in d)if(p=d[V],(v=O[V])&&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)V=i[Z],i.hasOwnProperty(Z)&&l[Z]!==V&&pR(a,Z,V)}else for(d in i)i.hasOwnProperty(d)&&pR(a,d,i[d])}function Rf(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 vR(a){return IQ.get(a)||a}function CG(a,i){if(Xa.call(Ru,i)&&Ru[i])return!0;if(VQ.test(i)){if(a="aria-"+i.slice(4).toLowerCase(),a=S5.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(LQ.test(i)){if(a=i.toLowerCase(),a=S5.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 TG(a,i){var l=[],d;for(d in i)CG(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 _G(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(O5.test(i))return console.error("Unknown event handler property `%s`. It will be ignored.",i),Er[i]=!0}else if(O5.test(i))return $Q.test(i)&&console.error("Invalid event handler property `%s`. React events use the camelCase naming convention, for example `onClick`.",i),Er[i]=!0;if(BQ.test(i)||zQ.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 jG(a,i,l){var d=[],p;for(p in i)_G(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 Pf(a){return UQ.test(""+a)?"javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')":a}function Eo(){}function P0(a){return a=a.target||a.srcElement||window,a.correspondingUseElement&&(a=a.correspondingUseElement),a.nodeType===3?a.parentNode:a}function bR(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(O0(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.");O0(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&&Jj(d)}break e;case"textarea":oR(a,l.value,l.defaultValue);break e;case"select":i=l.value,i!=null&&lu(a,!!l.multiple,i,!1)}}}function yR(a,i,l){if(XN)return a(i,l);XN=!0;try{var d=a(i);return d}finally{if(XN=!1,(Pu!==null||Mu!==null)&&(xu(),Pu&&(i=Pu,a=Mu,Mu=Pu=null,bR(i),a)))for(i=0;i<a.length;i++)bR(a[i])}}function Mf(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 xR(){if(mv)return mv;var a,i=ZN,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 NR(){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:NR,this.isPropagationStopped=NR,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 RG(a){var i=this.nativeEvent;return i.getModifierState?i.getModifierState(a):(a=tX[a])?!!i[a]:!1}function M0(){return RG}function wR(a,i){switch(a){case"keyup":return mX.indexOf(i.keyCode)!==-1;case"keydown":return i.keyCode!==_5;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function ER(a){return a=a.detail,typeof a=="object"&&"data"in a?a.data:null}function PG(a,i){switch(a){case"compositionend":return ER(i);case"keypress":return i.which!==R5?null:(M5=!0,P5);case"textInput":return a=i.data,a===P5&&M5?null:a;default:return null}}function MG(a,i){if(ku)return a==="compositionend"||!nw&&wR(a,i)?(a=xR(),mv=ZN=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 j5&&i.locale!=="ko"?null:i.data;default:return null}}function SR(a){var i=a&&a.nodeName&&a.nodeName.toLowerCase();return i==="input"?!!pX[a.type]:i==="textarea"}function kG(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 AR(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 IG(a){s3(a,0)}function ng(a){var i=Me(a);if(Jj(i))return a}function OR(a,i){if(a==="change")return i}function DR(){bm&&(bm.detachEvent("onpropertychange",CR),ym=bm=null)}function CR(a){if(a.propertyName==="value"&&ng(ym)){var i=[];AR(i,ym,a,P0(a)),yR(IG,i)}}function LG(a,i,l){a==="focusin"?(DR(),bm=i,ym=l,bm.attachEvent("onpropertychange",CR)):a==="focusout"&&DR()}function VG(a){if(a==="selectionchange"||a==="keyup"||a==="keydown")return ng(ym)}function $G(a,i){if(a==="click")return ng(i)}function BG(a,i){if(a==="input"||a==="change")return ng(i)}function zG(a,i){return a===i&&(a!==0||1/a===1/i)||a!==a&&i!==i}function kf(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 TR(a){for(;a&&a.firstChild;)a=a.firstChild;return a}function _R(a,i){var l=TR(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=TR(l)}}function jR(a,i){return a&&i?a===i?!0:a&&a.nodeType===3?!1:i&&i.nodeType===3?jR(a,i.parentNode):"contains"in a?a.contains(i):a.compareDocumentPosition?!!(a.compareDocumentPosition(i)&16):!1:!1}function RR(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 k0(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 PR(a,i,l){var d=l.window===l?l.document:l.nodeType===9?l:l.ownerDocument;aw||Iu==null||Iu!==Wp(d)||(d=Iu,"selectionStart"in d&&k0(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}),xm&&kf(xm,d)||(xm=d,d=Gg(rw,"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(iw[a])return iw[a];if(!Lu[a])return a;var i=Lu[a],l;for(l in i)if(i.hasOwnProperty(l)&&l in I5)return iw[a]=i[l];return a}function Ka(a,i){z5.set(a,i),He(i,[a])}function UG(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!==uw)return lw;i=uw}else return lw;else{if(typeof d=="function"||typeof d=="string"&&50<d.length||i!==gv&&i!==cw)return lw;i=cw}}return i}function I0(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 V in i)V==="children"?i.children!=null&&(!Rn(i.children)||0<i.children.length)&&(a=!0):Xa.call(i,V)&&V[0]!=="_"&&Ni(V,i[V],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(V=UG(i),V===cw||V===gv){i=JSON.stringify(i);break}else if(V===uw){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"&&(V=Object.getPrototypeOf(i))&&typeof V.constructor=="function"&&(v=V.constructor.name),l.push([p+" ".repeat(d)+a,v==="Object"?3>d?"":"…":v]),3>d&&I0(i,l,d+1,p);return}case"function":i=i.name===""?"() => {}":i.name+"() {}";break;case"string":i=i===wX?"…":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 MR(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),V=Object.prototype.toString.call(O);if(k===V&&(V==="[object Object]"||V==="[object Array]")){k=[H5+" ".repeat(d)+v,V==="[object Array]"?"Array":""],l.push(k),V=l.length,MR(E,O,l,d+1)?V===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),V=Function.prototype.toString.call(O),k===V)){E=O.name===""?"() => {}":O.name+"() {}",l.push([H5+" ".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=I(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 V=a.memoizedProps;O=a._debugTask,V!==null&&E!==null&&E.memoizedProps!==V?(k=[EX],V=MR(E.memoizedProps,V,k,0),1<k.length&&(V&&!ks&&(E.lanes&p)===0&&100<a.actualDuration?(ks=!0,k[0]=SX,Po.color="warning",Po.tooltipText=F5):(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 L0(a,i,l,d){if(Qt){var p=I(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&&I0(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=I(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&&I0(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=I(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 qG(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 kR(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 IR(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 HG(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 V0(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 FG(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 LR(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 $0(a,i,l){!Qt||i<=a||console.timeStamp("Animating",a,i,Nt,yt,"secondary-dark")}function ig(){for(var a=Vu,i=dw=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&&VR(l,p,v)}}function og(a,i,l,d){Ea[Vu++]=a,Ea[Vu++]=i,Ea[Vu++]=l,Ea[Vu++]=d,dw|=d,a.lanes|=d,a=a.alternate,a!==null&&(a.lanes|=d)}function B0(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 VR(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&Nm||(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(Ym>BX)throw ac=Ym=0,Qm=Hw=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>zX&&(ac=0,Qm=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&&e3(a);for(var i=a,l=i.return;l!==null;)i.alternate===null&&(i.flags&4098)!==0&&e3(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 z0(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:cm,render:i},a.displayName!==void 0&&(i.displayName=a.displayName),i):a:i.current}function $R(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===cm||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 BR(a){Sa!==null&&typeof WeakSet=="function"&&($u===null&&($u=new WeakSet),$u.add(a))}function zR(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 V=!1;if(d=!1,k!==null&&(k=Sa(k),k!==void 0&&(l.has(k)?d=!0:i.has(k)&&(O===1?d=!0:V=!0))),$u!==null&&($u.has(a)||p!==null&&$u.has(p))&&(d=!0),d&&(a._debugNeedsRemount=!0),(d||V)&&(p=or(a,2),p!==null&&cn(p,a,2)),v===null||d||zR(v,i,l),E===null)break;a=E}while(!0)}function KG(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,K5||typeof Object.preventExtensions!="function"||Object.preventExtensions(this)}function U0(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=z0(a.type)}return l}function UR(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 q0(a,i,l,d,p,v){var E=0,O=a;if(typeof a=="function")U0(a)&&(E=1),O=Tl(O);else if(typeof a=="string")E=U(),E=tQ(a,l,E)?26:a==="html"||a==="head"||a==="body"?27:5;else e:switch(a){case IN:return i=y(31,l,i,p),i.elementType=IN,i.lanes=v,i;case Du:return _l(l.children,p,v,i);case rv:E=8,p|=lr,p|=Wa;break;case RN: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=RN,i.lanes=v,i.stateNode={effectDuration:0,passiveEffectDuration:0},i;case MN:return i=y(13,l,i,p),i.elementType=MN,i.lanes=v,i;case kN:return i=y(19,l,i,p),i.elementType=kN,i.lanes=v,i;default:if(typeof a=="object"&&a!==null)switch(a.$$typeof){case Vi:E=10;break e;case PN:E=9;break e;case cm:E=11,O=z0(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=q0(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 H0(a,i,l){return a=y(6,a,null,i),a.lanes=l,a}function qR(a){var i=y(18,null,null,Ye);return i.stateNode=a,i}function F0(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=fw.get(a);return l!==void 0?l:(i={value:a,source:i,stack:ue(i)},fw.set(a,i),i)}return{value:a,source:i,stack:ue(i)}}function Ao(a,i){bs(),Bu[zu++]=wm,Bu[zu++]=yv,yv=a,wm=i}function HR(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 K0(a){bs(),a.return!==null&&(Ao(a,1),HR(a,1,0))}function G0(a){for(;a===yv;)yv=Bu[--zu],Bu[zu]=null,wm=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 FR(){return bs(),ql!==null?{id:ko,overflow:Io}:null}function KR(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 GR(){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=A3(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=j0(d)),If(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)),mw}function YR(a){var i=a.stateNode,l=a.type,d=a.memoizedProps;switch(i[tr]=a,i[wr]=d,mN(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<Xm.length;l++)bt(Xm[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),eR(i,d),tR(i,d.value,d.defaultValue,d.checked,d.defaultChecked,d.type,d.name,!0);break;case"option":nR(i,d);break;case"select":zt("select",d),bt("invalid",i),aR(i,d);break;case"textarea":zt("textarea",d),bt("invalid",i),iR(i,d),sR(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||d3(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 QR(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 QR(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")||bN(a.type,a.memoizedProps)),l=!l),l&&Xt){for(l=Xt;l;){var d=jl(a,0),p=A3(l);d.serverTail.push(p),l=p.type==="Suspense"?wN(l):ta(l.nextSibling)}ys(a)}if(QR(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=wN(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=wN(a)}else i===27?(i=Xt,Ts(a.type)?(a=nE,nE=null,Xt=a):Xt=i):Xt=nr?ta(a.stateNode.nextSibling):null;return!0}function Rl(){Xt=nr=null,Hi=pt=!1}function Y0(){var a=Vs;return a!==null&&(Cr===null?Cr=a:Cr.push.apply(Cr,a),Vs=null),a}function If(a){Vs===null?Vs=[a]:Vs.push(a)}function Q0(){var a=aa;if(a!==null){aa=null;for(var i=j0(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){G(hw,i._currentValue,a),i._currentValue=l,G(pw,i._currentRenderer,a),i._currentRenderer!==void 0&&i._currentRenderer!==null&&i._currentRenderer!==Y5&&console.error("Detected multiple renderers concurrently rendering the same context provider. This is currently unsupported."),i._currentRenderer=Y5}function Oo(a,i){a._currentValue=hw.current;var l=pw.current;H(pw,i),a._currentRenderer=l,H(hw,i)}function X0(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 W0(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),X0(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),X0(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(th):a=[th])}p=p.return}a!==null&&W0(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()."),XR(xv,a)}function fg(a,i){return xv===null&&Pl(a),XR(a,i)}function XR(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 Z0(){return{controller:new DX,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 Lf(a){a.refCount--,0>a.refCount&&console.warn("A cache instance was released after it was already freed. This likely indicates a bug in React."),a.refCount===0&&CX(TX,function(){a.controller.abort()})}function Si(a,i,l){(a&127)!==0?0>Fi&&(Fi=En(),Sm=Nv(i),gw=i,l!=null&&(vw=I(l)),(Et&(Mn|sa))!==Gn&&(un=!0,Bs=Em),a=am(),i=rm(),a!==Hu||i!==Am?Hu=-1.1:i!==null&&(Bs=Em),Kl=a,Am=i):(a&4194048)!==0&&0>Ca&&(Ca=En(),Om=Nv(i),Q5=i,l!=null&&(X5=I(l)),0>Bo)&&(a=am(),i=rm(),(a!==Us||i!==Gl)&&(Us=-1.1),zs=a,Gl=i)}function GG(a){if(0>Fi){Fi=En(),Sm=a._debugTask!=null?a._debugTask:null,(Et&(Mn|sa))!==Gn&&(Bs=Em);var i=am(),l=rm();i!==Hu||l!==Am?Hu=-1.1:l!==null&&(Bs=Em),Kl=i,Am=l}0>Ca&&(Ca=En(),Om=a._debugTask!=null?a._debugTask:null,0>Bo)&&(a=am(),i=rm(),(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 Vf(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 J0(a){Ar=En(),0>a.actualStartTime&&(a.actualStartTime=Ar)}function e1(a){if(0<=Ar){var i=En()-Ar;a.actualDuration+=i,a.selfBaseDuration=i,Ar=-1}}function WR(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 ZR(a){nn===null&&(nn=[]),nn.push(a),Vo===null&&(Vo=[]),Vo.push(a)}function _i(){Ar=En(),0>qe&&(qe=Ar)}function $f(a){for(var i=a.child;i;)a.actualDuration+=i.actualDuration,i=i.sibling}function YG(a,i){if(Cm===null){var l=Cm=[];yw=0,Yl=cN(),Fu={status:"pending",value:void 0,then:function(d){l.push(d)}}}return yw++,i.then(JR,JR),i}function JR(){if(--yw===0&&(-1<Ca||(Bo=-1.1),Cm!==null)){Fu!==null&&(Fu.status="fulfilled");var a=Cm;Cm=null,Yl=0,Fu=null;for(var i=0;i<a.length;i++)(0,a[i])()}}function QG(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 t1(){var a=Ql.current;return a!==null?a:Ht.pooledCache}function pg(a,i){i===null?G(Ql,Ql.current,a):G(Ql,i.pool,a)}function eP(){var a=t1();return a===null?null:{parent:wn._currentValue,pool:a}}function tP(){return{didWarnAboutUncachedPromise:!1,thenables:[]}}function nP(a){return a=a.status,a==="fulfilled"||a==="rejected"}function rP(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,iP(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,iP(a),a}throw Wl=i,km=!0,Ku}}function Ns(a){try{return MX(a)}catch(i){throw i!==null&&typeof i=="object"&&typeof i.then=="function"?(Wl=i,km=!0,Ku):i}}function aP(){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,km=!1,a}function iP(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 n1(){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=Im;return Im+=1,Gu===null&&(Gu=tP()),rP(Gu,a,i)}function Bf(a,i){i=i.props.ref,a.ref=i!==void 0?i:null}function oP(a,i){throw i.$$typeof===fQ?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=n1();l!==null?l.run(oP.bind(null,a,i)):oP(a,i)}function sP(a,i){var l=I(a)||"Component";gk[l]||(gk[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=n1();l!==null?l.run(sP.bind(null,a,i)):sP(a,i)}function lP(a,i){var l=I(a)||"Component";vk[l]||(vk[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=n1();l!==null?l.run(lP.bind(null,a,i)):lP(a,i)}function cP(a){function i(X,ee){if(a){var re=X.deletions;re===null?(X.deletions=[ee],X.flags|=16):re.push(ee)}}function l(X,ee){if(!a)return null;for(;ee!==null;)i(X,ee),ee=ee.sibling;return null}function d(X){for(var ee=new Map;X!==null;)X.key!==null?ee.set(X.key,X):ee.set(X.index,X),X=X.sibling;return ee}function p(X,ee){return X=So(X,ee),X.index=0,X.sibling=null,X}function v(X,ee,re){return X.index=re,a?(re=X.alternate,re!==null?(re=re.index,re<ee?(X.flags|=67108866,ee):re):(X.flags|=67108866,ee)):(X.flags|=1048576,ee)}function E(X){return a&&X.alternate===null&&(X.flags|=67108866),X}function O(X,ee,re,ve){return ee===null||ee.tag!==6?(ee=H0(re,X.mode,ve),ee.return=X,ee._debugOwner=X,ee._debugTask=X._debugTask,ee._debugInfo=lt,ee):(ee=p(ee,re),ee.return=X,ee._debugInfo=lt,ee)}function k(X,ee,re,ve){var Te=re.type;return Te===Du?(ee=oe(X,ee,re.props.children,ve,re.key),gg(re,ee,X),ee):ee!==null&&(ee.elementType===Te||$R(ee,re)||typeof Te=="object"&&Te!==null&&Te.$$typeof===na&&Ns(Te)===ee.type)?(ee=p(ee,re.props),Bf(ee,re),ee.return=X,ee._debugOwner=re._owner,ee._debugInfo=lt,ee):(ee=lg(re,X.mode,ve),Bf(ee,re),ee.return=X,ee._debugInfo=lt,ee)}function V(X,ee,re,ve){return ee===null||ee.tag!==4||ee.stateNode.containerInfo!==re.containerInfo||ee.stateNode.implementation!==re.implementation?(ee=F0(re,X.mode,ve),ee.return=X,ee._debugInfo=lt,ee):(ee=p(ee,re.children||[]),ee.return=X,ee._debugInfo=lt,ee)}function oe(X,ee,re,ve,Te){return ee===null||ee.tag!==7?(ee=_l(re,X.mode,ve,Te),ee.return=X,ee._debugOwner=X,ee._debugTask=X._debugTask,ee._debugInfo=lt,ee):(ee=p(ee,re),ee.return=X,ee._debugInfo=lt,ee)}function se(X,ee,re){if(typeof ee=="string"&&ee!==""||typeof ee=="number"||typeof ee=="bigint")return ee=H0(""+ee,X.mode,re),ee.return=X,ee._debugOwner=X,ee._debugTask=X._debugTask,ee._debugInfo=lt,ee;if(typeof ee=="object"&&ee!==null){switch(ee.$$typeof){case Li:return re=lg(ee,X.mode,re),Bf(re,ee),re.return=X,X=Zn(ee._debugInfo),re._debugInfo=lt,lt=X,re;case Ou:return ee=F0(ee,X.mode,re),ee.return=X,ee._debugInfo=lt,ee;case na:var ve=Zn(ee._debugInfo);return ee=Ns(ee),X=se(X,ee,re),lt=ve,X}if(Rn(ee)||R(ee))return re=_l(ee,X.mode,re,null),re.return=X,re._debugOwner=X,re._debugTask=X._debugTask,X=Zn(ee._debugInfo),re._debugInfo=lt,lt=X,re;if(typeof ee.then=="function")return ve=Zn(ee._debugInfo),X=se(X,vg(ee),re),lt=ve,X;if(ee.$$typeof===Vi)return se(X,fg(X,ee),re);bg(X,ee)}return typeof ee=="function"&&yg(X,ee),typeof ee=="symbol"&&xg(X,ee),null}function Z(X,ee,re,ve){var Te=ee!==null?ee.key:null;if(typeof re=="string"&&re!==""||typeof re=="number"||typeof re=="bigint")return Te!==null?null:O(X,ee,""+re,ve);if(typeof re=="object"&&re!==null){switch(re.$$typeof){case Li:return re.key===Te?(Te=Zn(re._debugInfo),X=k(X,ee,re,ve),lt=Te,X):null;case Ou:return re.key===Te?V(X,ee,re,ve):null;case na:return Te=Zn(re._debugInfo),re=Ns(re),X=Z(X,ee,re,ve),lt=Te,X}if(Rn(re)||R(re))return Te!==null?null:(Te=Zn(re._debugInfo),X=oe(X,ee,re,ve,null),lt=Te,X);if(typeof re.then=="function")return Te=Zn(re._debugInfo),X=Z(X,ee,vg(re),ve),lt=Te,X;if(re.$$typeof===Vi)return Z(X,ee,fg(X,re),ve);bg(X,re)}return typeof re=="function"&&yg(X,re),typeof re=="symbol"&&xg(X,re),null}function fe(X,ee,re,ve,Te){if(typeof ve=="string"&&ve!==""||typeof ve=="number"||typeof ve=="bigint")return X=X.get(re)||null,O(ee,X,""+ve,Te);if(typeof ve=="object"&&ve!==null){switch(ve.$$typeof){case Li:return re=X.get(ve.key===null?re:ve.key)||null,X=Zn(ve._debugInfo),ee=k(ee,re,ve,Te),lt=X,ee;case Ou:return X=X.get(ve.key===null?re:ve.key)||null,V(ee,X,ve,Te);case na:var Ze=Zn(ve._debugInfo);return ve=Ns(ve),ee=fe(X,ee,re,ve,Te),lt=Ze,ee}if(Rn(ve)||R(ve))return re=X.get(re)||null,X=Zn(ve._debugInfo),ee=oe(ee,re,ve,Te,null),lt=X,ee;if(typeof ve.then=="function")return Ze=Zn(ve._debugInfo),ee=fe(X,ee,re,vg(ve),Te),lt=Ze,ee;if(ve.$$typeof===Vi)return fe(X,ee,re,fg(ee,ve),Te);bg(ee,ve)}return typeof ve=="function"&&yg(ee,ve),typeof ve=="symbol"&&xg(ee,ve),null}function Ce(X,ee,re,ve){if(typeof re!="object"||re===null)return ve;switch(re.$$typeof){case Li:case Ou:g(X,ee,re);var Te=re.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(ee,function(){console.error("Encountered two children with the same key, `%s`. Keys should be unique so that components maintain their identity across updates. Non-unique keys may cause children to be duplicated and/or omitted — the behavior is unsupported and could change in a future version.",Te)});break;case na:re=Ns(re),Ce(X,ee,re,ve)}return ve}function _e(X,ee,re,ve){for(var Te=null,Ze=null,Ue=null,$e=ee,at=ee=0,Wt=null;$e!==null&&at<re.length;at++){$e.index>at?(Wt=$e,$e=null):Wt=$e.sibling;var bn=Z(X,$e,re[at],ve);if(bn===null){$e===null&&($e=Wt);break}Te=Ce(X,bn,re[at],Te),a&&$e&&bn.alternate===null&&i(X,$e),ee=v(bn,ee,at),Ue===null?Ze=bn:Ue.sibling=bn,Ue=bn,$e=Wt}if(at===re.length)return l(X,$e),pt&&Ao(X,at),Ze;if($e===null){for(;at<re.length;at++)$e=se(X,re[at],ve),$e!==null&&(Te=Ce(X,$e,re[at],Te),ee=v($e,ee,at),Ue===null?Ze=$e:Ue.sibling=$e,Ue=$e);return pt&&Ao(X,at),Ze}for($e=d($e);at<re.length;at++)Wt=fe($e,X,at,re[at],ve),Wt!==null&&(Te=Ce(X,Wt,re[at],Te),a&&Wt.alternate!==null&&$e.delete(Wt.key===null?at:Wt.key),ee=v(Wt,ee,at),Ue===null?Ze=Wt:Ue.sibling=Wt,Ue=Wt);return a&&$e.forEach(function(Yo){return i(X,Yo)}),pt&&Ao(X,at),Ze}function Gt(X,ee,re,ve){if(re==null)throw Error("An iterable object provided no iterator.");for(var Te=null,Ze=null,Ue=ee,$e=ee=0,at=null,Wt=null,bn=re.next();Ue!==null&&!bn.done;$e++,bn=re.next()){Ue.index>$e?(at=Ue,Ue=null):at=Ue.sibling;var Yo=Z(X,Ue,bn.value,ve);if(Yo===null){Ue===null&&(Ue=at);break}Wt=Ce(X,Yo,bn.value,Wt),a&&Ue&&Yo.alternate===null&&i(X,Ue),ee=v(Yo,ee,$e),Ze===null?Te=Yo:Ze.sibling=Yo,Ze=Yo,Ue=at}if(bn.done)return l(X,Ue),pt&&Ao(X,$e),Te;if(Ue===null){for(;!bn.done;$e++,bn=re.next())Ue=se(X,bn.value,ve),Ue!==null&&(Wt=Ce(X,Ue,bn.value,Wt),ee=v(Ue,ee,$e),Ze===null?Te=Ue:Ze.sibling=Ue,Ze=Ue);return pt&&Ao(X,$e),Te}for(Ue=d(Ue);!bn.done;$e++,bn=re.next())at=fe(Ue,X,$e,bn.value,ve),at!==null&&(Wt=Ce(X,at,bn.value,Wt),a&&at.alternate!==null&&Ue.delete(at.key===null?$e:at.key),ee=v(at,ee,$e),Ze===null?Te=at:Ze.sibling=at,Ze=at);return a&&Ue.forEach(function(aW){return i(X,aW)}),pt&&Ao(X,$e),Te}function xt(X,ee,re,ve){if(typeof re=="object"&&re!==null&&re.type===Du&&re.key===null&&(gg(re,null,X),re=re.props.children),typeof re=="object"&&re!==null){switch(re.$$typeof){case Li:var Te=Zn(re._debugInfo);e:{for(var Ze=re.key;ee!==null;){if(ee.key===Ze){if(Ze=re.type,Ze===Du){if(ee.tag===7){l(X,ee.sibling),ve=p(ee,re.props.children),ve.return=X,ve._debugOwner=re._owner,ve._debugInfo=lt,gg(re,ve,X),X=ve;break e}}else if(ee.elementType===Ze||$R(ee,re)||typeof Ze=="object"&&Ze!==null&&Ze.$$typeof===na&&Ns(Ze)===ee.type){l(X,ee.sibling),ve=p(ee,re.props),Bf(ve,re),ve.return=X,ve._debugOwner=re._owner,ve._debugInfo=lt,X=ve;break e}l(X,ee);break}else i(X,ee);ee=ee.sibling}re.type===Du?(ve=_l(re.props.children,X.mode,ve,re.key),ve.return=X,ve._debugOwner=X,ve._debugTask=X._debugTask,ve._debugInfo=lt,gg(re,ve,X),X=ve):(ve=lg(re,X.mode,ve),Bf(ve,re),ve.return=X,ve._debugInfo=lt,X=ve)}return X=E(X),lt=Te,X;case Ou:e:{for(Te=re,re=Te.key;ee!==null;){if(ee.key===re)if(ee.tag===4&&ee.stateNode.containerInfo===Te.containerInfo&&ee.stateNode.implementation===Te.implementation){l(X,ee.sibling),ve=p(ee,Te.children||[]),ve.return=X,X=ve;break e}else{l(X,ee);break}else i(X,ee);ee=ee.sibling}ve=F0(Te,X.mode,ve),ve.return=X,X=ve}return E(X);case na:return Te=Zn(re._debugInfo),re=Ns(re),X=xt(X,ee,re,ve),lt=Te,X}if(Rn(re))return Te=Zn(re._debugInfo),X=_e(X,ee,re,ve),lt=Te,X;if(R(re)){if(Te=Zn(re._debugInfo),Ze=R(re),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(re);return Ue===re?(X.tag!==0||Object.prototype.toString.call(X.type)!=="[object GeneratorFunction]"||Object.prototype.toString.call(Ue)!=="[object Generator]")&&(hk||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."),hk=!0):re.entries!==Ze||Ew||(console.error("Using Maps as children is not supported. Use an array of keyed ReactElements instead."),Ew=!0),X=Gt(X,ee,Ue,ve),lt=Te,X}if(typeof re.then=="function")return Te=Zn(re._debugInfo),X=xt(X,ee,vg(re),ve),lt=Te,X;if(re.$$typeof===Vi)return xt(X,ee,fg(X,re),ve);bg(X,re)}return typeof re=="string"&&re!==""||typeof re=="number"||typeof re=="bigint"?(Te=""+re,ee!==null&&ee.tag===6?(l(X,ee.sibling),ve=p(ee,Te),ve.return=X,X=ve):(l(X,ee),ve=H0(Te,X.mode,ve),ve.return=X,ve._debugOwner=X,ve._debugTask=X._debugTask,ve._debugInfo=lt,X=ve),E(X)):(typeof re=="function"&&yg(X,re),typeof re=="symbol"&&xg(X,re),l(X,ee))}return function(X,ee,re,ve){var Te=lt;lt=null;try{Im=0;var Ze=xt(X,ee,re,ve);return Gu=null,Ze}catch(Wt){if(Wt===Ku||Wt===Tv)throw Wt;var Ue=y(29,Wt,null,X.mode);Ue.lanes=ve,Ue.return=X;var $e=Ue._debugInfo=lt;if(Ue._debugOwner=X._debugOwner,Ue._debugTask=X._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 uP(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 r1(a){a.updateQueue={baseState:a.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function a1(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:yk,payload:null,callback:null,next:null}}function Es(a,i,l){var d=a.updateQueue;if(d===null)return null;if(d=d.shared,Aw===d&&!wk){var p=I(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),wk=!0}return(Et&Mn)!==Gn?(p=d.pending,p===null?i.next=i:(i.next=p.next,p.next=i),d.pending=i,i=sg(a),VR(a,null,l),i):(og(a,d,i,l),sg(a))}function zf(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 Uf(){if(Ow){var a=Fu;if(a!==null)throw a}}function qf(a,i,l,d){Ow=!1;var p=a.updateQueue;qs=!1,Aw=p.shared;var v=p.firstBaseUpdate,E=p.lastBaseUpdate,O=p.shared.pending;if(O!==null){p.shared.pending=null;var k=O,V=k.next;k.next=null,E===null?v=V:E.next=V,E=k;var oe=a.alternate;oe!==null&&(oe=oe.updateQueue,O=oe.lastBaseUpdate,O!==E&&(O===null?oe.firstBaseUpdate=V:O.next=V,oe.lastBaseUpdate=k))}if(v!==null){var se=p.baseState;E=0,oe=V=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&&(Ow=!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 xk: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 Sw:Z.flags=Z.flags&-65537|128;case yk: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 Nk: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?(V=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=V,p.lastBaseUpdate=oe,v===null&&(p.shared.lanes=0),Ks|=E,a.lanes=E,a.memoizedState=se}Aw=null}function dP(a,i){if(typeof a!="function")throw Error("Invalid argument passed as callback. Expected a function. Instead received: "+a);a.call(i)}function XG(a,i){var l=a.shared.hiddenCallbacks;if(l!==null)for(a.shared.hiddenCallbacks=null,a=0;a<l.length;a++)dP(l[a],i)}function fP(a,i){var l=a.callbacks;if(l!==null)for(a.callbacks=null,a=0;a<l.length;a++)dP(l[a],i)}function mP(a,i){var l=Gi;G(jv,l,a),G(Yu,i,a),Gi=l|i.baseLanes}function i1(a){G(jv,Gi,a),G(Yu,Yu.current,a)}function o1(a){Gi=jv.current,H(Yu,a),H(jv,a)}function Ss(a){var i=a.alternate;G(vn,vn.current&Qu,a),G(ia,a,a),Ta===null&&(i===null||Yu.current!==null||i.memoizedState!==null)&&(Ta=a)}function s1(a){G(vn,vn.current,a),G(ia,a,a),Ta===null&&(Ta=a)}function hP(a){a.tag===22?(G(vn,vn.current,a),G(ia,a,a),Ta===null&&(Ta=a)):As(a)}function As(a){G(vn,vn.current,a),G(ia,ia.current,a)}function Jr(a){H(ia,a),Ta===a&&(Ta=null),H(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||xN(l)||NN(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=I(We);if(!Ek.has(i)&&(Ek.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=I(We);Ak.has(a)||(Ak.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 l1(a,i){if($m)return!1;if(i===null)return console.error("%s received a final argument during this render, but not during the previous render. Even though the final argument is optional, its type cannot change between renders.",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 c1(a,i,l,d,p,v){zo=v,We=i,ja=a!==null?a._debugHookTypes:null,qo=-1,$m=a!==null&&a.type!==i.type,(Object.prototype.toString.call(l)==="[object AsyncFunction]"||Object.prototype.toString.call(l)==="[object AsyncGeneratorFunction]")&&(v=I(We),Dw.has(v)||(Dw.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?Tw:ja!==null?Ok:Cw,Jl=v=(i.mode&lr)!==Ye;var E=xw(l,d,p);if(Jl=!1,Wu&&(E=u1(i,l,d,p)),v){Re(!0);try{E=u1(i,l,d,p)}finally{Re(!1)}}return pP(a,i),E}function pP(a,i){i._debugHookTypes=ja,i.dependencies===null?Uo!==null&&(i.dependencies={lanes:0,firstContext:null,_debugThenableState:Uo}):i.dependencies._debugThenableState=Uo,pe.H=Bm;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,Vm=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)),km?(km=!1,a=!0):a=!1,a&&(i=I(i)||"Unknown",Sk.has(i)||Dw.has(i)||(Sk.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 u1(a,i,l,d){We=a;var p=0;do{if(Wu&&(Uo=null),Vm=0,Wu=!1,p>=IX)throw Error("Too many re-renders. React limits the number of renders to prevent an infinite loop.");if(p+=1,$m=!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=Dk,v=xw(i,l,d)}while(Wu);return v}function WG(){var a=pe.H,i=a.useState()[0];return i=typeof i.then=="function"?Hf(i):i,a=a.useState()[0],(qt!==null?qt.memoizedState:null)!==a&&(We.flags|=1024),i}function d1(){var a=Mv!==0;return Mv=0,a}function f1(a,i,l){i.updateQueue=a.updateQueue,i.flags=(i.mode&Wa)!==Ye?i.flags&-402655237:i.flags&-2053,a.lanes&=~l}function m1(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,Vm=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 Hf(a){var i=Vm;return Vm+=1,Uo===null&&(Uo=tP()),a=rP(Uo,a,i),i=We,(Sn===null?i.memoizedState:Sn.next)===null&&(i=i.alternate,pe.H=i!==null&&i.memoizedState!==null?Tw:Cw),a}function Os(a){if(a!==null&&typeof a=="object"){if(typeof a.then=="function")return Hf(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||$m)for(l=i.data[i.index]=Array(a),d=0;d<a;d++)l[d]=mQ;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 h1(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=nY.bind(null,We,a),[d.memoizedState,a]}function hu(a){var i=kt();return p1(i,qt,a)}function p1(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,V=i,oe=!1;do{var se=V.lane&-536870913;if(se!==V.lane?(ct&se)===se:(zo&se)===se){var Z=V.revertLane;if(Z===0)k!==null&&(k=k.next={lane:0,revertLane:0,gesture:null,action:V.action,hasEagerState:V.hasEagerState,eagerState:V.eagerState,next:null}),se===Yl&&(oe=!0);else if((zo&Z)===Z){V=V.next,Z===Yl&&(oe=!0);continue}else se={lane:0,revertLane:V.revertLane,gesture:null,action:V.action,hasEagerState:V.hasEagerState,eagerState:V.eagerState,next:null},k===null?(O=k=se,E=v):k=k.next=se,We.lanes|=Z,Ks|=Z;se=V.action,Jl&&l(v,se),v=V.hasEagerState?V.eagerState:l(v,se)}else Z={lane:se,revertLane:V.revertLane,gesture:V.gesture,action:V.action,hasEagerState:V.hasEagerState,eagerState:V.eagerState,next:null},k===null?(O=k=Z,E=v):k=k.next=Z,We.lanes|=se,Ks|=se;V=V.next}while(V!==null&&V!==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 Ff(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 g1(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||gP(d,i,v)}return p.memoizedState=v,l={value:v,getSnapshot:i},p.queue=l,Cg(bP.bind(null,d,l,a),[a]),d.flags|=2048,gu(_a|Dr,{destroy:void 0},vP.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=bP.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},vP.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||gP(d,i,l)}return l}function gP(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 vP(a,i,l,d){i.value=l,i.getSnapshot=d,yP(i)&&xP(a)}function bP(a,i,l){return l(function(){yP(i)&&(Si(2,"updateSyncExternalStore()",a),xP(a))})}function yP(a){var i=a.getSnapshot;a=a.value;try{var l=i();return!Sr(a,l)}catch{return!0}}function xP(a){var i=or(a,2);i!==null&&cn(i,a,2)}function v1(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 b1(a){a=v1(a);var i=a.queue,l=$P.bind(null,We,i);return i.dispatch=l,[a.memoizedState,l]}function y1(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=P1.bind(null,We,!0,l),l.dispatch=i,[a,i]}function NP(a,i){var l=kt();return wP(l,qt,a,i)}function wP(a,i,l,d){return a.baseState=l,p1(a,qt,typeof d=="function"?d:Ya)}function EP(a,i){var l=kt();return qt!==null?wP(l,qt,a,i):(l.baseState=a,[a,l.queue.dispatch])}function ZG(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,SP(i,v)):(v.next=l.next,i.pending=l.next=v)}}function SP(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),AP(a,i,O)}catch(V){x1(a,i,V)}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),AP(a,i,E)}catch(V){x1(a,i,V)}}function AP(a,i,l){l!==null&&typeof l=="object"&&typeof l.then=="function"?(pe.asyncTransitions++,l.then(Pg,Pg),l.then(function(d){OP(a,i,d)},function(d){return x1(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.")):OP(a,i,l)}function OP(a,i,l){i.status="fulfilled",i.value=l,DP(i),a.state=l,i=a.pending,i!==null&&(l=i.next,l===i?a.pending=null:(l=l.next,i.next=l,SP(a,l)))}function x1(a,i,l){var d=a.pending;if(a.pending=null,d!==null){d=d.next;do i.status="rejected",i.reason=l,DP(i),i=i.next;while(i!==d)}a.action=null}function DP(a){a=a.listeners;for(var i=0;i<a.length;i++)(0,a[i])()}function CP(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===Zw||v===fI?p:null}if(p){Xt=ta(p.nextSibling),d=p.data===Zw;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:CP,lastRenderedState:i},l.queue=d,l=$P.bind(null,We,d),d.dispatch=l,d=v1(!1),v=P1.bind(null,We,!1,d.queue),d=xr(),p={state:i,dispatch:null,action:a,pending:null},d.queue=p,l=ZG.bind(null,We,p,v,l),p.dispatch=l,d.memoizedState=a,[i,l,!1]}function Og(a){var i=kt();return TP(i,qt,a)}function TP(a,i,l){if(i=p1(a,i,CP)[0],a=hu(Ya)[0],typeof i=="object"&&i!==null&&typeof i.then=="function")try{var d=Hf(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},JG.bind(null,p,l),null)),[d,v,a]}function JG(a,i){a.action=i}function Dg(a){var i=kt(),l=qt;if(l!==null)return TP(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 N1(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&&l1(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 eY(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 w1(a){var i=xr(),l={impl:a};return i.memoizedState=l,function(){if((Et&Mn)!==Gn)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 eY({ref:i,nextImpl:a}),function(){if((Et&Mn)!==Gn)throw Error("A function wrapped in useEffectEvent can't be called during rendering.");return i.impl.apply(void 0,arguments)}}function E1(a,i){var l=4194308;return(We.mode&Wa)!==Ye&&(l|=134217728),Il(l,oa,a,i)}function _P(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 S1(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,_P.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,_P.bind(null,i,a),l)}function A1(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&&l1(i,d[1])?d[0]:(l.memoizedState=[a,i],a)}function O1(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&&l1(i,d[1]))return d[0];if(d=a(),Jl){Re(!0);try{a()}finally{Re(!1)}}return l.memoizedState=[d,i],d}function D1(a,i){var l=xr();return C1(l,a,i)}function jP(a,i){var l=kt();return PP(l,qt.memoizedState,a,i)}function RP(a,i){var l=kt();return qt===null?C1(l,a,i):PP(l,qt.memoizedState,a,i)}function C1(a,i,l){return l===void 0||(zo&1073741824)!==0&&(ct&261930)===0?a.memoizedState=i:(a.memoizedState=l,a=MM(),We.lanes|=a,Ks|=a,l)}function PP(a,i,l,d){return Sr(l,i)?l:Yu.current!==null?(a=C1(a,l,d),Sr(a,i)||(An=!0),a):(zo&42)===0||(zo&1073741824)!==0&&(ct&261930)===0?(An=!0,a.memoizedState=l):(a=MM(),We.lanes|=a,Ks|=a,i)}function Pg(){pe.asyncTransitions--}function MP(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,P1(a,!1,i,l);try{var k=p(),V=pe.S;if(V!==null&&V(O,k),k!==null&&typeof k=="object"&&typeof k.then=="function"){pe.asyncTransitions++,k.then(Pg,Pg);var oe=QG(k,d);Kf(a,i,oe,ea(a))}else Kf(a,i,d,ea(a))}catch(se){Kf(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 T1(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=kP(a).queue;GG(a),MP(a,p,i,uc,l===null?m:function(){return IP(a),l(d)})}function kP(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 IP(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=kP(a);i.next===null&&(i=a.alternate.memoizedState),Kf(a,i.next.queue,{},ea(a))}function _1(){var a=v1(!1);return a=MP.bind(null,We,a.queue,!0,!1),xr().memoizedState=a,[!1,a]}function LP(){var a=hu(Ya)[0],i=kt().memoizedState;return[typeof a=="boolean"?a:Hf(a),i]}function VP(){var a=Ff(Ya)[0],i=kt().memoizedState;return[typeof a=="boolean"?a:Hf(a),i]}function Ll(){return tn(th)}function j1(){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=kX++,i="_"+i+"r_"+l.toString(32)+"_";return a.memoizedState=i}function R1(){return xr().memoizedState=tY.bind(null,We)}function tY(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),zf(v,l,d)),a=Z0(),i!=null&&v!==null&&console.error("The seed argument is not enabled outside experimental channels."),p.payload={cache:a};return}l=l.return}}function nY(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)?BP(i,p):(p=B0(a,i,p,d),p!==null&&(Si(d,"dispatch()",a),cn(p,a,d),zP(p,i,d)))}function $P(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),Kf(a,i,l,d)&&Si(d,"setState()",a)}function Kf(a,i,l,d){var p={lane:d,revertLane:0,gesture:null,action:l,hasEagerState:!1,eagerState:null,next:null};if(Mg(a))BP(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=B0(a,i,p,d),l!==null)return cn(l,a,d),zP(l,i,d),!0}return!1}function P1(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:cN(),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=B0(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 BP(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 zP(a,i,l){if((l&4194048)!==0){var d=i.lanes;d&=a.pendingLanes,l|=d,i.lanes=l,vs(a,l)}}function M1(a){if(a!==null&&typeof a!="function"){var i=String(a);Vk.has(i)||(Vk.add(i),console.error("Expected the last optional `callback` argument to be a function. Instead received: %s.",a))}}function k1(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",Mk.has(i)||(Mk.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 UP(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?!kf(l,d)||!kf(p,v):!0}function qP(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=I(a)||"Component",Tk.has(a)||(Tk.add(a),console.error("%s.componentWillReceiveProps(): Assigning directly to this.state is deprecated (except inside a component's constructor). Use setState instead.",a)),_w.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 HP(a){sw(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 FP(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, "+((jw||"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,xI+" "+a[0],NI,ib+d+ib,wI):a.splice(0,0,xI,NI,ib+d+ib,wI),a.unshift(console),d=nW.apply(console.error,a),d()}else console.error(`%o
|
||
|
||
%s
|
||
|
||
%s
|
||
`,a,i,l)}function KP(a){sw(a)}function kg(a,i){try{Zu=i.source?I(i.source):null,jw=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 GP(a,i,l){try{Zu=l.source?I(l.source):null,jw=I(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 I1(a,i,l){return l=ws(l),l.tag=Sw,l.payload={element:null},l.callback=function(){de(i.source,kg,a,i)},l}function L1(a){return a=ws(a),a.tag=Sw,a}function V1(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(){BR(l),de(d.source,GP,i,l,d)}}var E=l.stateNode;E!==null&&typeof E.componentDidCatch=="function"&&(a.callback=function(){BR(l),de(d.source,GP,i,l,d),typeof p!="function"&&(Ys===null?Ys=new Set([this]):Ys.add(this)),jX(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.",I(l)||"Unknown")})}function rY(a,i,l,d,p){if(l.flags|=32768,zi&&em(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),iN(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)),iN(a,d,p)),!1}throw Error("Unexpected Suspense handler tag ("+l.tag+"). This is a bug in React.")}return iN(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!==mw&&If(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!==mw&&If(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=I1(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(Km===null?Km=[v]:Km.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=I1(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=L1(p),V1(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?bk(i,null,l,d):Zl(i,a.child,l,d)}function YP(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=c1(a,i,l,E,v,p),O=d1(),a!==null&&!An?(f1(a,i,p),Co(a,i,p)):(pt&&O&&K0(i),i.flags|=1,Jn(a,i,d,p),i.child)}function QP(a,i,l,d,p){if(a===null){var v=l.type;return typeof v=="function"&&!U0(v)&&v.defaultProps===void 0&&l.compare===null?(l=Tl(v),i.tag=15,i.type=l,B1(i,v),XP(a,i,l,d,p)):(a=q0(l.type,null,d,i,i.mode,p),a.ref=i.ref,a.return=i,i.child=a)}if(v=a.child,!K1(a,p)){var E=v.memoizedProps;if(l=l.compare,l=l!==null?l:kf,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 XP(a,i,l,d,p){if(a!==null){var v=a.memoizedProps;if(kf(v,d)&&a.ref===i.ref&&i.type===a.type)if(An=!1,i.pendingProps=d=v,K1(a,p))(a.flags&131072)!==0&&(An=!0);else return i.lanes=a.lanes,Co(a,i,p)}return $1(a,i,l,d,p)}function WP(a,i,l,d){var p=d.children,v=a!==null?a.memoizedState:null;if(a===null&&i.stateNode===null&&(i.stateNode={_visibility:Nm,_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 ZP(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?mP(i,v):i1(i),hP(i);else return d=i.lanes=536870912,ZP(a,i,v!==null?v.baseLanes|l:l,l,d)}else v!==null?(pg(i,v.cachePool),mP(i,v),As(i),i.memoizedState=null):(a!==null&&pg(i,null),i1(i),As(i));return Jn(a,i,p,l),i.child}function Gf(a,i){return a!==null&&a.tag===22||i.stateNode!==null||(i.stateNode={_visibility:Nm,_pendingMarkers:null,_retryCache:null,_transitions:null}),i.sibling}function ZP(a,i,l,d,p){var v=t1();return v=v===null?null:{parent:wn._currentValue,pool:v},i.memoizedState={baseLanes:l,cachePool:v},a!==null&&pg(i,null),i1(i),hP(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 JP(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 aY(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,Gf(null,a);if(s1(i),(a=Xt)?(l=S3(a,Da),l=l!==null&&l.data===oc?l:null,l!==null&&(d={dehydrated:l,treeContext:FR(),retryLane:536870912,hydrationErrors:null},i.memoizedState=d,d=qR(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(s1(i),p)if(i.flags&256)i.flags&=-257,i=JP(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(GR(),(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),Rw;Hg(),i=JP(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&&KR(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 $1(a,i,l,d,p){if(l.prototype&&typeof l.prototype.render=="function"){var v=M(l)||"Unknown";$k[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),$k[v]=!0)}return i.mode&lr&&Za.recordLegacyContextWarning(i,null),a===null&&(B1(i,i.type),l.contextTypes&&(v=M(l)||"Unknown",zk[v]||(zk[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=c1(a,i,l,d,void 0,p),d=d1(),a!==null&&!An?(f1(a,i,p),Co(a,i,p)):(pt&&d&&K0(i),i.flags|=1,Jn(a,i,l,p),i.child)}function eM(a,i,l,d,p,v){return Pl(i),qo=-1,$m=a!==null&&a.type!==i.type,i.updateQueue=null,l=u1(i,d,l,p),pP(a,i),d=d1(),a!==null&&!An?(f1(a,i,v),Co(a,i,v)):(pt&&d&&K0(i),i.flags|=1,Jn(a,i,l,v),i.child)}function tM(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=L1(O),V1(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)&&!Lk.has(l)&&(Lk.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===PN?" 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=_w,i.stateNode=v,v._reactInternals=i,v._reactInternalInstance=Ck,typeof l.getDerivedStateFromProps=="function"&&E===null&&(E=M(l)||"Component",_k.has(E)||(_k.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 V=typeof l.getDerivedStateFromProps=="function"?"getDerivedStateFromProps()":"getSnapshotBeforeUpdate()";Rk.has(v)||(Rk.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,V,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&&!Ik.has(l)&&(Ik.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&&!kk.has(l)&&(kk.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"||jk.has(l)||(jk.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={},r1(i),E=l.contextType,v.context=typeof E=="object"&&E!==null?tn(E):Ls,v.state===d&&(E=M(l)||"Component",Pk.has(E)||(Pk.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"&&(k1(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.",I(i)||"Component"),_w.enqueueReplaceState(v,v.state,null)),qf(i,d,v,p),Uf(),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)),V=l.getDerivedStateFromProps,k=typeof V=="function"||typeof v.getSnapshotBeforeUpdate=="function",oe=i.pendingProps!==oe,k||typeof v.UNSAFE_componentWillReceiveProps!="function"&&typeof v.componentWillReceiveProps!="function"||(oe||se!==E)&&qP(i,v,d,E),qs=!1;var Z=i.memoizedState;v.state=Z,qf(i,d,v,p),Uf(),se=i.memoizedState,oe||Z!==se||qs?(typeof V=="function"&&(k1(i,l,V,d),se=i.memoizedState),(O=qs||UP(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,a1(a,i),E=i.memoizedProps,k=Vl(l,E),v.props=k,V=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!==V||Z!==O)&&qP(i,v,d,O),qs=!1,Z=i.memoizedState,v.state=Z,qf(i,d,v,p),Uf();var fe=i.memoizedState;E!==V||Z!==fe||qs||a!==null&&a.dependencies!==null&&dg(a.dependencies)?(typeof oe=="function"&&(k1(i,l,oe,d),fe=i.memoizedState),(k=qs||UP(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=ak(O),i.mode&lr){Re(!0);try{ak(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.",I(i)||"a component"),Ju=!0),a}function nM(a,i,l,d){return Rl(),i.flags|=256,Jn(a,i,l,d),i.child}function B1(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",Uk[a]||(console.error("%s: Function components do not support getDerivedStateFromProps.",a),Uk[a]=!0)),typeof i.contextType=="object"&&i.contextType!==null&&(i=M(i)||"Unknown",Bk[i]||(console.error("%s: Function components do not support contextType.",i),Bk[i]=!0))}function z1(a){return{baseLanes:a,cachePool:eP()}}function U1(a,i,l){return a=a!==null?a.childLanes&~l:0,i&&(a|=qr),a}function rM(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&Lm)!==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=S3(a,Da),l=l!==null&&l.data!==oc?l:null,l!==null&&(d={dehydrated:l,treeContext:FR(),retryLane:536870912,hydrationErrors:null},i.memoizedState=d,d=qR(l),d.return=i,i.child=d,nr=i,Xt=null)):l=null,l===null)throw cg(i,a),ys(i);return NN(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=z1(l),p.childLanes=U1(a,d,l),i.memoizedState=Pw,Gf(null,p)}return Ss(i),q1(i,O)}var V=a.memoizedState;if(V!==null){var oe=V.dehydrated;if(oe!==null){if(E)i.flags&256?(Ss(i),i.flags&=-257,i=H1(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=z1(l),p.childLanes=U1(a,d,l),i.memoizedState=Pw,i=Gf(null,p));else if(Ss(i),GR(),(l&536870912)!==0&&qg(i),NN(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"&&fw.set(O,p),If(p),i=H1(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!==V.retryLane))throw V.retryLane=p,or(a,p),cn(d,a,p),Rw;xN(oe)||Hg(),i=H1(a,i,l)}else xN(oe)?(i.flags|=192,i.child=a.child,i=null):(a=V.treeContext,Xt=ta(oe.nextSibling),nr=i,pt=!0,Vs=null,Hi=!1,aa=null,Da=!1,a!==null&&KR(i,a),i=q1(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,Gf(null,p),p=i.child,O=a.child.memoizedState,O===null?O=z1(l):(k=O.cachePool,k!==null?(Z=wn._currentValue,k=k.parent!==Z?{parent:Z,pool:Z}:k):k=eP(),O={baseLanes:O.baseLanes|l,cachePool:k}),p.memoizedState=O,p.childLanes=U1(a,d,l),i.memoizedState=Pw,Gf(a.child,p)):(V!==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 q1(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 H1(a,i,l){return Zl(i,a.child,null,l),a=q1(i,i.pendingProps.children),a.flags|=2,i.memoizedState=null,a}function aM(a,i,l){a.lanes|=i;var d=a.alternate;d!==null&&(d.lanes|=i),X0(a.return,i,l)}function F1(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 iM(a,i,l){var d=i.pendingProps,p=d.revealOrder,v=d.tail,E=d.children,O=vn.current;if((d=(O&Lm)!==0)?(O=O&Qu|Lm,i.flags|=128):O&=Qu,G(vn,O,i),O=p??"null",p!=="forwards"&&p!=="unstable_legacy-backwards"&&p!=="together"&&p!=="independent"&&!qk[O])if(qk[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(!uP(E[O],O))break e}else if(O=R(E),typeof O=="function"){if(O=O.call(E))for(var k=O.next(),V=0;!k.done;k=O.next()){if(!uP(k.value,V))break e;V++}}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=wm):E=0,!d&&a!==null&&(a.flags&128)!==0)e:for(a=i.child;a!==null;){if(a.tag===13)a.memoizedState!==null&&aM(a,l,i);else if(a.tag===19)aM(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),F1(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}F1(i,!0,l,null,v,E);break;case"together":F1(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 K1(a,i){return(a.lanes&i)!==0?!0:(a=a.dependencies,!!(a!==null&&dg(a)))}function iY(a,i,l){switch(i.tag){case 3:J(i,i.stateNode.containerInfo),xs(i,wn,a.memoizedState.cache),Rl();break;case 27:case 5:K(i);break;case 4:J(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,s1(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?rM(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 iM(a,i,l);i.flags|=128}if(p=i.memoizedState,p!==null&&(p.rendering=null,p.tail=null,p.lastEffect=null),G(vn,vn.current,i),d)break;return null;case 22:return i.lanes=0,WP(a,i,l,i.pendingProps);case 24:xs(i,wn,a.memoizedState.cache)}return Co(a,i,l)}function G1(a,i,l){if(i._debugNeedsRemount&&a!==null){l=q0(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(!K1(a,l)&&(i.flags&128)===0)return An=!1,iY(a,i,l);An=(a.flags&131072)!==0}else An=!1,(d=pt)&&(bs(),d=(i.flags&1048576)!==0),d&&(d=i.index,bs(),HR(i,wm,d));switch(i.lanes=0,i.tag){case 16:e:if(d=i.pendingProps,a=Ns(i.elementType),i.type=a,typeof a=="function")U0(a)?(d=Vl(a,d),i.tag=1,i.type=a=Tl(a),i=tM(null,i,a,d,l)):(i.tag=0,B1(i,a),i.type=a=Tl(a),i=$1(null,i,a,d,l));else{if(a!=null){if(p=a.$$typeof,p===cm){i.tag=11,i.type=a=z0(a),i=YP(null,i,a,d,l);break e}else if(p===av){i.tag=14,i=QP(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 $1(a,i,i.type,i.pendingProps,l);case 1:return d=i.type,p=Vl(d,i.pendingProps),tM(a,i,d,p,l);case 3:e:{if(J(i,i.stateNode.containerInfo),a===null)throw Error("Should have a current fiber. This is a bug in React.");d=i.pendingProps;var v=i.memoizedState;p=v.element,a1(a,i),qf(i,d,null,l);var E=i.memoizedState;if(d=E.cache,xs(i,wn,d),d!==v.cache&&W0(i,[wn],l,!0),Uf(),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=nM(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),If(p),i=nM(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=bk(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=_3(i.type,null,i.pendingProps,null))?i.memoizedState=l:pt||(l=i.type,a=i.pendingProps,d=Y(js.current),d=Yg(d).createElement(l),d[tr]=i,d[wr]=a,er(d,l,a),Se(d),i.stateNode=d):i.memoizedState=_3(i.type,a.memoizedProps,i.pendingProps,a.memoizedState),null;case 27:return K(i),a===null&&pt&&(d=Y(js.current),p=U(),d=i.stateNode=C3(i.type,i.pendingProps,d,p,!1),Hi||(p=g3(d,i.type,i.pendingProps,p),p!==null&&(jl(i,0).serverProps=p)),nr=i,Da=!0,p=Xt,Ts(i.type)?(nE=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=U(),d=R0(i.type,v.ancestorInfo),p=Xt,(E=!p)||(E=GY(p,i.type,i.pendingProps,Da),E!==null?(i.stateNode=E,Hi||(v=g3(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))),K(i),p=i.type,v=i.pendingProps,E=a!==null?a.memoizedProps:null,d=v.children,bN(p,v)?d=null:E!==null&&bN(p,E)&&(i.flags|=32),i.memoizedState!==null&&(p=c1(a,i,WG,null,null,l),th._currentValue=p),Lg(a,i),Jn(a,i,d,l),i.child;case 6:return a===null&&pt&&(l=i.pendingProps,a=U(),d=a.ancestorInfo.current,l=d!=null?Jp(l,d.tag,a.ancestorInfo.implicitRootScope):!0,a=Xt,(d=!a)||(d=YY(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 rM(a,i,l);case 4:return J(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 YP(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||Hk||(Hk=!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=xw(d,p,void 0),i.flags|=1,Jn(a,i,d,l),i.child;case 14:return QP(a,i,i.type,i.pendingProps,l);case 15:return XP(a,i,i.type,i.pendingProps,l);case 19:return iM(a,i,l);case 31:return aY(a,i,l);case 22:return WP(a,i,l,i.pendingProps);case 24:return Pl(i),d=tn(wn),a===null?(p=t1(),p===null&&(p=Ht,v=Z0(),p.pooledCache=v,Ml(v),v!==null&&(p.pooledCacheLanes|=l),p=v),i.memoizedState={parent:d,cache:p},r1(i),xs(i,wn,p)):((a.lanes&l)!==0&&(a1(a,i),qf(i,null,null,l),Uf()),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&&W0(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 Y1(a,i,l,d,p){if((i=(a.mode&OX)!==Ye)&&(i=!1),i){if(a.flags|=16777216,(p&335544128)===p)if(a.stateNode.complete)a.flags|=8192;else if(VM())a.flags|=8192;else throw Wl=_v,ww}else a.flags&=-16777217}function oM(a,i){if(i.type!=="stylesheet"||(i.state.loading&Ra)!==cc)a.flags&=-16777217;else if(a.flags|=16777216,!k3(i))if(VM())a.flags|=8192;else throw Wl=_v,ww}function $g(a,i){i!==null&&(a.flags|=4),a.flags&16384&&(i=a.tag!==22?Yr():536870912,a.lanes|=i,rc|=i)}function Yf(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 oY(a,i,l){var d=i.pendingProps;switch(G0(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)?(Q0(),To(i)):a===null||a.memoizedState.isDehydrated&&(i.flags&256)===0||(i.flags|=1024,Y0())),Kt(i),null;case 26:var p=i.type,v=i.memoizedState;return a===null?(To(i),v!==null?(Kt(i),oM(i,v)):(Kt(i),Y1(i,p,null,d,l))):v?v!==a.memoizedState?(To(i),Kt(i),oM(i,v)):(Kt(i),i.flags&=-16777217):(a=a.memoizedProps,a!==d&&To(i),Kt(i),Y1(i,p,a,d,l)),null;case 27:if(te(i),l=Y(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=U(),du(i)?YR(i):(a=C3(p,d,l,a,!0),i.stateNode=a,To(i))}return Kt(i),null;case 5:if(te(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=U();if(du(i))YR(i);else{switch(v=Y(js.current),R0(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(hI,p)||(hI[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),Y1(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=Y(js.current),l=U(),du(i)){if(a=i.stateNode,l=i.memoizedProps,p=!Hi,d=null,v=nr,v!==null)switch(v.tag){case 3:p&&(p=O3(a,l,d),p!==null&&(jl(i,0).serverProps=p));break;case 27:case 5:d=v.memoizedProps,p&&(p=O3(a,l,d),p!==null&&(jl(i,0).serverProps=p))}a[tr]=i,a=!!(a.nodeValue===l||d!==null&&d.suppressHydrationWarning===!0||d3(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 Q0(),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=Y0(),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 Q0(),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=Y0(),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&&$f(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&&dN(i.stateNode.containerInfo),Kt(i),null;case 10:return Oo(i.type,i),Kt(i),null;case 19:if(H(vn,i),d=i.memoizedState,d===null)return Kt(i),null;if(p=(i.flags&128)!==0,v=d.rendering,v===null)if(p)Yf(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,Yf(d,!1),a=v.updateQueue,i.updateQueue=a,$g(i,a),i.subtreeFlags=0,a=l,l=i.child;l!==null;)UR(l,a),l=l.sibling;return G(vn,vn.current&Qu|Lm,i),pt&&Ao(i,d.treeForkCount),i.child}a=a.sibling}d.tail!==null&&Hn()>qv&&(i.flags|=128,p=!0,Yf(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),Yf(d,!0),d.tail===null&&d.tailMode==="hidden"&&!v.alternate&&!pt)return Kt(i),null}else 2*Hn()-d.renderingStartTime>qv&&l!==536870912&&(i.flags|=128,p=!0,Yf(d,!1),i.lanes=4194304);d.isBackwards?(v.sibling=i.child,i.child=v):(a=d.last,a!==null?a.sibling=v:i.child=v,d.last=v)}return d.tail!==null?(a=d.tail,d.rendering=a,d.tail=a.sibling,d.renderingStartTime=Hn(),a.sibling=null,l=vn.current,l=p?l&Qu|Lm:l&Qu,G(vn,l,i),pt&&Ao(i,d.treeForkCount),a):(Kt(i),null);case 22:case 23:return Jr(i),o1(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&&H(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 sY(a,i){switch(G0(i),i.tag){case 1:return a=i.flags,a&65536?(i.flags=a&-65537|128,(i.mode&st)!==Ye&&$f(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 te(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&&$f(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&&$f(i),i):null;case 19:return H(vn,i),null;case 4:return q(i),null;case 10:return Oo(i.type,i),null;case 22:case 23:return Jr(i),o1(i),a!==null&&H(Ql,i),a=i.flags,a&65536?(i.flags=a&-65537|128,(i.mode&st)!==Ye&&$f(i),i):null;case 24:return Oo(wn,i),null;case 25:return null;default:return null}}function sM(a,i){switch(G0(i),i.tag){case 3:Oo(wn,i),q(i);break;case 26:case 27:case 5:te(i);break;case 4:q(i);break;case 31:i.memoizedState!==null&&Jr(i);break;case 13:Jr(i);break;case 19:H(vn,i);break;case 10:Oo(i.type,i);break;case 22:case 23:Jr(i),o1(i),a!==null&&H(Ql,i);break;case 24:Oo(wn,i)}}function ji(a){return(a.mode&st)!==Ye}function lM(a,i){ji(a)?(_i(),Qf(i,a),Ti()):Qf(i,a)}function Q1(a,i,l){ji(a)?(_i(),vu(l,a,i),Ti()):vu(l,a,i)}function Qf(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,RX,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,PX,p,l,O),(a&Or)!==Rv&&(ad=!1))}d=d.next}while(d!==v)}}catch(k){Rt(i,i.return,k)}}function cM(a,i){ji(a)?(_i(),Qf(i,a),Ti()):Qf(i,a)}function X1(a,i,l){ji(a)?(_i(),vu(l,a,i),Ti()):vu(l,a,i)}function uM(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.",I(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.",I(a)||"instance"));try{de(a,fP,i,l)}catch(d){Rt(a,a.return,d)}}}function lY(a,i,l){return a.getSnapshotBeforeUpdate(i,l)}function cY(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.",I(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.",I(a)||"instance"));try{var p=Vl(a.type,l),v=de(a,lY,i,p,d);l=Fk,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.",I(a))})),i.__reactInternalSnapshotBeforeUpdate=v}catch(E){Rt(a,a.return,E)}}function dM(a,i,l){l.props=Vl(a.type,a.memoizedProps),l.state=a.memoizedState,ji(a)?(_i(),de(a,uk,a,i,l),Ti()):de(a,uk,a,i,l)}function uY(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().",I(a)),i.current=l}}function Xf(a,i){try{de(a,uY,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 fM(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 dY(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 mM(a){var i=a.type,l=a.memoizedProps,d=a.stateNode;try{de(a,kY,d,i,l,a)}catch(p){Rt(a,a.return,p)}}function W1(a,i,l){try{de(a,LY,a.stateNode,a.type,l,i,a)}catch(d){Rt(a,a.return,d)}}function hM(a){return a.tag===5||a.tag===3||a.tag===26||a.tag===27&&Ts(a.type)||a.tag===4}function Z1(a){e:for(;;){for(;a.sibling===null;){if(a.return===null||hM(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 J1(a,i,l){var d=a.tag;if(d===5||d===6)a=a.stateNode,i?(N3(l),(l.nodeType===9?l.body:l.nodeName==="HTML"?l.ownerDocument.body:l).insertBefore(a,i)):(N3(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(J1(a,i,l),a=a.sibling;a!==null;)J1(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 fY(a){for(var i,l=a.return;l!==null;){if(hM(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=Z1(a),Bg(a,l,i);break;case 5:l=i.stateNode,i.flags&32&&(x3(l),i.flags&=-33),i=Z1(a),Bg(a,i,l);break;case 3:case 4:i=i.stateNode.containerInfo,l=Z1(a),J1(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 pM(a){var i=a.stateNode,l=a.memoizedProps;try{de(a,JY,a.type,l,i,a)}catch(d){Rt(a,a.return,d)}}function gM(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 mY(a,i){if(a=a.containerInfo,Jw=ob,a=RR(a),k0(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,V=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&&++V===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(eE={focusedElem:a,selectionRange:l},ob=!1,Kn=i;Kn!==null;)if(i=Kn,a=i.child,(i.subtreeFlags&1028)!==0&&a!==null)a.return=i,Kn=a;else for(;Kn!==null;){switch(a=i=Kn,l=a.alternate,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&&cY(a,l);break;case 3:if((p&1024)!==0){if(a=a.stateNode.containerInfo,l=a.nodeType,l===9)yN(a);else if(l===1)switch(a.nodeName){case"HEAD":case"HTML":case"BODY":yN(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,Kn=a;break}Kn=i.return}}function vM(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&&lM(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.",I(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.",I(l)||"instance")),ji(l)?(_i(),de(l,Nw,l,a),Ti()):de(l,Nw,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.",I(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.",I(l)||"instance")),ji(l)?(_i(),de(l,sk,l,a,k,i,a.__reactInternalSnapshotBeforeUpdate),Ti()):de(l,sk,l,a,k,i,a.__reactInternalSnapshotBeforeUpdate)}O&64&&uM(l),O&512&&Xf(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,fP,O,k)}catch(oe){Rt(l,l.return,oe)}}a.effectDuration+=mg(i);break;case 27:i===null&&O&4&&pM(l);case 26:case 5:if(Pi(a,l),i===null){if(O&4)mM(l);else if(O&64){a=l.type,i=l.memoizedProps,k=l.stateNode;try{de(l,IY,k,a,i,l)}catch(oe){Rt(l,l.return,oe)}}}O&512&&Xf(l,l.return);break;case 12:if(O&4){O=Do(),Pi(a,l),a=l.stateNode,a.effectDuration+=Vf(O);try{de(l,fM,l,i,$s,a.effectDuration)}catch(oe){Rt(l,l.return,oe)}}else Pi(a,l);break;case 31:Pi(a,l),O&4&&xM(a,l);break;case 13:Pi(a,l),O&4&&NM(a,l),O&64&&(a=l.memoizedState,a!==null&&(a=a.dehydrated,a!==null&&(O=wY.bind(null,l),QY(a,O))));break;case 22:if(O=l.memoizedState!==null||Ho,!O){i=i!==null&&i.memoizedState!==null||On,k=Ho;var V=On;Ho=O,(On=i)&&!V?(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=V}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&&(gM(l.return.alternate,l.return)||wi(l,qe,Ge,"Mount"))),Zr(d),Oi(p),nn=v,un=E}function bM(a){var i=a.alternate;i!==null&&(a.alternate=null,bM(i)),a.child=null,a.deletions=null,a.sibling=null,a.tag===5&&(i=a.stateNode,i!==null&&ce(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;)yM(a,i,l),l=l.sibling}function yM(a,i,l){if(sr&&typeof sr.onCommitFiberUnmount=="function")try{sr.onCommitFiberUnmount(Tu,l)}catch(V){Bi||(Bi=!0,console.error("React instrumentation encountered an error: %o",V))}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,im,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,BY,Dn,l.stateNode)}catch(V){Rt(l,i,V)}else try{de(l,$Y,Dn,l.stateNode)}catch(V){Rt(l,i,V)}break;case 18:Dn!==null&&(zr?(a=Dn,w3(a.nodeType===9?a.body:a.nodeName==="HTML"?a.ownerDocument.body:a,l.stateNode),Au(a)):w3(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||Q1(l,i,oa),_o(a,i,l);break;case 1:On||(Ri(l,i),O=l.stateNode,typeof O.componentWillUnmount=="function"&&dM(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 xM(a,i){if(i.memoizedState===null&&(a=i.alternate,a!==null&&(a=a.memoizedState,a!==null))){a=a.dehydrated;try{de(i,WY,a)}catch(l){Rt(i,i.return,l)}}}function NM(a,i){if(i.memoizedState===null&&(a=i.alternate,a!==null&&(a=a.memoizedState,a!==null&&(a=a.dehydrated,a!==null))))try{de(i,ZY,a)}catch(l){Rt(i,i.return,l)}}function hY(a){switch(a.tag){case 31:case 13:case 19:var i=a.stateNode;return i===null&&(i=a.stateNode=new Kk),i;case 22:return a=a.stateNode,i=a._retryCache,i===null&&(i=a._retryCache=new Kk),i;default:throw Error("Unexpected Suspense handler tag ("+a.tag+"). This is a bug in React.")}}function zg(a,i){var l=hY(a);i.forEach(function(d){if(!l.has(d)){if(l.add(d),zi)if(ed!==null&&td!==null)em(td,ed);else throw Error("Expected finished root and lanes to be set. This is a bug in React.");var p=EY.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.");yM(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;)wM(i,a),i=i.sibling}function wM(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),Qf(Or|_a,a),Q1(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 V=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":V=k.getElementsByTagName("title")[0],(!V||V[fm]||V[tr]||V.namespaceURI===ju||V.hasAttribute("itemprop"))&&(V=k.createElement(O),k.head.insertBefore(V,k.querySelector("head > title"))),er(V,O,E),V[tr]=a,Se(V),O=V;break e;case"link":var oe=P3("link","href",k).get(O+(E.href||""));if(oe){for(var se=0;se<oe.length;se++)if(V=oe[se],V.getAttribute("href")===(E.href==null||E.href===""?null:E.href)&&V.getAttribute("rel")===(E.rel==null?null:E.rel)&&V.getAttribute("title")===(E.title==null?null:E.title)&&V.getAttribute("crossorigin")===(E.crossOrigin==null?null:E.crossOrigin)){oe.splice(se,1);break t}}V=k.createElement(O),er(V,O,E),k.head.appendChild(V);break;case"meta":if(oe=P3("meta","content",k).get(O+(E.content||""))){for(se=0;se<oe.length;se++)if(V=oe[se],Ve(E.content,"content"),V.getAttribute("content")===(E.content==null?null:""+E.content)&&V.getAttribute("name")===(E.name==null?null:E.name)&&V.getAttribute("property")===(E.property==null?null:E.property)&&V.getAttribute("http-equiv")===(E.httpEquiv==null?null:E.httpEquiv)&&V.getAttribute("charset")===(E.charSet==null?null:E.charSet)){oe.splice(se,1);break t}}V=k.createElement(O),er(V,O,E),k.head.appendChild(V);break;default:throw Error('getNodesForType encountered a type it did not expect: "'+O+'". This is a bug in React.')}V[tr]=a,Se(V),O=V}a.stateNode=O}else M3(k,a.type,a.stateNode);else a.stateNode=R3(k,O,a.memoizedProps);else V!==O?(V===null?E.stateNode!==null&&(E=E.stateNode,E.parentNode.removeChild(E)):V.count--,O===null?M3(k,a.type,a.stateNode):R3(k,O,a.memoizedProps)):O===null&&a.stateNode!==null&&W1(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&&W1(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,x3,k)}catch(_e){Rt(a,a.return,_e)}}O&4&&a.stateNode!=null&&(k=a.memoizedProps,W1(a,k,E!==null?E.memoizedProps:k)),O&1024&&(Mw=!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,VY,k,E,O)}catch(_e){Rt(a,a.return,_e)}}break;case 3:if(k=Do(),rb=null,V=ei,ei=Qg(i.containerInfo),$r(i,a),ei=V,Br(a),O&4&&E!==null&&E.memoizedState.isDehydrated)try{de(a,XY,i.containerInfo)}catch(_e){Rt(a,a.return,_e)}Mw&&(Mw=!1,EM(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+=Vf(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=Hn()),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&~Nm:i._visibility|Nm,!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{V=Z.stateNode,k?de(Z,UY,V):de(Z,FY,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,qY,oe):de(Z,KY,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,zY,se):de(Z,HY,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&&(gM(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,fY,a)}catch(l){Rt(a,a.return,l)}a.flags&=-3}i&4096&&(a.flags&=-4097)}function EM(a){if(a.subtreeFlags&1024)for(a=a.child;a!==null;){var i=a;EM(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;)vM(a,i.alternate,i),i=i.sibling}function SM(a){var i=Wr(),l=Ai(),d=Di(),p=Ci();switch(a.tag){case 0:case 11:case 14:case 15:Q1(a,a.return,oa),$l(a);break;case 1:Ri(a,a.return);var v=a.stateNode;typeof v.componentWillUnmount=="function"&&dM(a,a.return,v),$l(a);break;case 27:de(a,im,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;)SM(a),a=a.sibling}function AM(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),lM(l,oa);break;case 1:if(Mi(a,l,d),i=l.stateNode,typeof i.componentDidMount=="function"&&de(l,Nw,l,i),i=l.updateQueue,i!==null){a=l.stateNode;try{de(l,XG,i,a)}catch(V){Rt(l,l.return,V)}}d&&k&64&&uM(l),Xf(l,l.return);break;case 27:pM(l);case 26:case 5:Mi(a,l,d),d&&i===null&&k&4&&mM(l),Xf(l,l.return);break;case 12:if(d&&k&4){k=Do(),Mi(a,l,d),d=l.stateNode,d.effectDuration+=Vf(k);try{de(l,fM,l,i,$s,d.effectDuration)}catch(V){Rt(l,l.return,V)}}else Mi(a,l,d);break;case 31:Mi(a,l,d),d&&k&4&&xM(a,l);break;case 13:Mi(a,l,d),d&&k&4&&NM(a,l);break;case 22:l.memoizedState===null&&Mi(a,l,d),Xf(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;)AM(a,i.alternate,i,l),i=i.sibling}function eN(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&&Lf(l))}function tN(a,i){a=null,i.alternate!==null&&(a=i.alternate.memoizedState.cache),i=i.memoizedState.cache,i!==a&&(Ml(i),a!=null&&Lf(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;OM(a,i,l,d,v!==null?v.actualStartTime:p),i=v}}function OM(a,i,l,d,p){var v=Wr(),E=Ai(),O=Di(),k=Ci(),V=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&&cM(i,Dr|_a);break;case 1:(i.mode&st)!==Ye&&0<i.actualStartTime&&((i.flags&128)!==0?L0(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&&Lf(l))),a.passiveEffectDuration+=mg(se);break;case 12:if(oe&2048){oe=Do(),Qa(a,i,l,d,p),a=i.stateNode,a.passiveEffectDuration+=Vf(oe);try{de(i,dY,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&&L0(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&&L0(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):Wf(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&&eN(se,i);break;case 24:Qa(a,i,l,d,p),oe&2048&&tN(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=V}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;DM(a,i,l,d,p,E!==null?E.actualStartTime:v),i=E}}function DM(a,i,l,d,p,v){var E=Wr(),O=Ai(),k=Di(),V=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),cM(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):Wf(a,i,l,d,v):(Z._visibility|=Mo,bu(a,i,l,d,p,v)),p&&se&2048&&eN(i.alternate,i);break;case 24:bu(a,i,l,d,p,v),p&&se&2048&&tN(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=V,ks=oe}function Wf(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,V=i!==null?i.actualStartTime:p,oe=ks;(v.mode&st)!==Ye&&0<v.actualStartTime&&(v.flags&1)!==0&&ag(v,v.actualStartTime,V,Pn,O);var se=v.flags;switch(v.tag){case 22:Wf(E,v,O,k,V),se&2048&&eN(v.alternate,v);break;case 24:Wf(E,v,O,k,V),se&2048&&tN(v.alternate,v);break;default:Wf(E,v,O,k,V)}ks=oe,v=i}}function yu(a,i,l){if(a.subtreeFlags&zm)for(a=a.child;a!==null;)CM(a,i,l),a=a.sibling}function CM(a,i,l){switch(a.tag){case 26:yu(a,i,l),a.flags&zm&&a.memoizedState!==null&&nQ(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=zm,zm=16777216,yu(a,i,l),zm=d):yu(a,i,l));break;default:yu(a,i,l)}}function TM(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 Zf(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();Kn=d,RM(d,a),(d.mode&st)!==Ye&&0<=qe&&0<=Ge&&.05<Ge-qe&&wi(d,qe,Ge,"Unmount"),Zr(p)}TM(a)}if(a.subtreeFlags&10256)for(a=a.child;a!==null;)_M(a),a=a.sibling}function _M(a){var i=Wr(),l=Ai(),d=Di(),p=Ci();switch(a.tag){case 0:case 11:case 15:Zf(a),a.flags&2048&&X1(a,a.return,Dr|_a);break;case 3:var v=Do();Zf(a),a.stateNode.passiveEffectDuration+=mg(v);break;case 12:v=Do(),Zf(a),a.stateNode.passiveEffectDuration+=Vf(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")):Zf(a);break;default:Zf(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();Kn=d,RM(d,a),(d.mode&st)!==Ye&&0<=qe&&0<=Ge&&.05<Ge-qe&&wi(d,qe,Ge,"Unmount"),Zr(p)}TM(a)}for(a=a.child;a!==null;)jM(a),a=a.sibling}function jM(a){var i=Wr(),l=Ai(),d=Di(),p=Ci();switch(a.tag){case 0:case 11:case 15:X1(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 RM(a,i){for(;Kn!==null;){var l=Kn,d=l,p=i,v=Wr(),E=Ai(),O=Di(),k=Ci();switch(d.tag){case 0:case 11:case 15:X1(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:Lf(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,Kn=d;else e:for(l=a;Kn!==null;){if(d=Kn,v=d.sibling,E=d.return,bM(d),d===l){Kn=null;break e}if(v!==null){v.return=E,Kn=v;break e}Kn=E}}}function pY(){VX.forEach(function(a){return a()})}function PM(){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)!==Gn&&ct!==0)return ct&-ct;var i=pe.T;return i!==null?(i._updatedFibers||(i._updatedFibers=new Set),i._updatedFibers.add(a),cN()):xi()}function MM(){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."),Fw&&(Kv=!0),(a===Ht&&(It===tc||It===nc)||a.cancelPendingCommit!==null)&&(Nu(a,0),Ds(a,ct,qr,!1)),Fa(a,l),(Et&Mn)!==Gn&&a===Ht){if($i)switch(i.tag){case 0:case 11:case 15:a=dt&&I(dt)||"Unknown",sI.has(a)||(sI.add(a),i=I(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:oI||(console.error("Cannot update during an existing state transition (such as within `render`). Render methods should be a pure function of props and state."),oI=!0)}}else zi&&bo(a,i,l),AY(i),a===Ht&&((Et&Mn)===Gn&&(Gs|=l),sn===Hs&&Ds(a,ct,qr,!1)),ki(a)}function kM(a,i,l){if((Et&(Mn|sa))!==Gn)throw Error("Should not already be working.");if(ct!==0&&dt!==null){var d=dt,p=Hn();switch(J5){case Hm:case tc:var v=Dm;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=Dm,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-Dm,3>d||console.timeStamp("Blocked",Dm,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))?vY(a,i):rN(a,i,!0);var E=l;do{if(v===Fo){nd&&!l&&Ds(a,i,0,!1),i=It,Dm=En(),J5=i;break}else{if(d=Hn(),p=a.current.alternate,E&&!gY(p)){Ga(i),p=Fn,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=rN(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),V0(Fn,d,i,mn),Bl(i,d),i=O;e:{d=a,v=E,E=Km;var k=d.current.memoizedState.isDehydrated;if(k&&(Nu(d,O).flags|=256),O=rN(d,O,!1),O!==ec){if(Lw&&!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=Hn()}}if(v===qm){Ga(i),V0(Fn,d,i,mn),Bl(i,d),Nu(a,0),Ds(a,i,0,!0);break}e:{switch(l=a,v){case Fo:case qm:throw Error("Root did not complete. This is a bug in React.");case Hs:if((i&4194048)!==i)break;case Vv:Ga(i),kR(Fn,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 Gk:break;default:throw Error("Unknown root exit status.")}if(pe.actQueue!==null)aN(l,p,i,Cr,Gm,zv,qr,Gs,rc,v,null,null,Fn,d);else{if((i&62914560)===i&&(E=Uv+Xk-Hn(),10<E)){if(Ds(l,i,qr,!Fs),Un(l,0,!0)!==0)break e;ti=i,l.timeoutHandle=pI(IM.bind(null,l,p,Cr,Gm,zv,i,qr,Gs,rc,Fs,v,"Throttled",Fn,d),E);break e}IM(l,p,Cr,Gm,zv,i,qr,Gs,rc,Fs,v,null,Fn,d)}}}break}while(!0);ki(a)}function IM(a,i,l,d,p,v,E,O,k,V,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},CM(i,v,_e),Ce=(v&62914560)===v?Uv-Hn():(v&4194048)===v?Qk-Hn():0,Ce=rQ(_e,Ce),Ce!==null)){ti=v,a.cancelPendingCommit=Ce(aN.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,!V);return}aN(a,i,v,l,d,p,E,O,k,oe,_e,se,Z,fe)}function gY(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&=~Vw,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))===Gn?(tm(0),!1):!0}function nN(){if(dt!==null){if(It===Ur)var a=dt.return;else a=dt,ug(),m1(a),Gu=null,Im=0,a=dt;for(;a!==null;)sM(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&&(W5=i),(a&2080374784)!==0&&(Z5=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=Fn;if(Fn=En(),ct!==0&&0<l){if(Ga(ct),sn===Lv||sn===Hs)kR(l,Fn,i,mn);else{var d=Fn,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,Fn)}if(l=mn,mn=null,(i&127)!==0){mn=Sm,p=0<=Fi&&Fi<Fl?Fl:Fi,d=0<=Kl&&Kl<Fl?Fl:Kl,v=0<=d?d:0<=p?p:Fn,0<=Ev?(Ga(2),IR(Ev,v,i,l)):Av&127,l=p;var O=d,k=Am,V=0<Hu,oe=Bs===Em,se=Bs===wv;if(p=Fn,d=Sm,v=gw,E=vw,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=V?"secondary-light":"warning";d?d.run(console.timeStamp.bind(console,V?"Consecutive":"Event: "+k,O,l,Nt,yt,Z)):console.timeStamp(V?"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,vw=gw=null,Ev=-1.1,Hu=Kl,Kl=-1.1,Fl=En()}if((i&4194048)!==0&&(mn=Om,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:Fn,0<=Sv?(Ga(256),IR(Sv,v,i,mn)):Av&4194048,se=d,O=Gl,k=0<Us,V=bw===wv,v=Fn,d=Om,E=Q5,oe=X5,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=V?"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,bw=0,Sv=-1.1,Us=zs,zs=-1.1,$o=En()),(i&62914560)!==0&&(Av&62914560)!==0&&(Ga(4194304),$0(W5,Fn)),(i&2080374784)!==0&&(Av&2080374784)!==0&&(Ga(268435456),$0(Z5,Fn)),l=a.timeoutHandle,l!==lc&&(a.timeoutHandle=lc,WX(l)),l=a.cancelPendingCommit,l!==null&&(a.cancelPendingCommit=null,l()),ti=0,nN(),Ht=a,dt=l=So(a.current,null),ct=i,It=Ur,la=null,Fs=!1,nd=kr(a,i),Lw=!1,sn=Fo,rc=qr=Vw=Gs=Ks=0,Cr=Km=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=q5(),1e3<a-U5&&(pe.recentlyCreatedOwnerStacks=0,U5=a),Za.discardPendingWarnings(),l}function LM(a,i){We=null,pe.H=Bm,pe.getCurrentStack=null,$i=!1,ra=null,i===Ku||i===Tv?(i=aP(),It=Hm):i===ww?(i=aP(),It=Yk):It=i===Rw?Iw:i!==null&&typeof i=="object"&&typeof i.then=="function"?Fm:$v,la=i;var l=dt;l===null?(sn=qm,kg(a,Xr(i,a.current))):l.mode&st&&e1(l)}function VM(){var a=ia.current;return a===null?!0:(ct&4194048)===ct?Ta===null:(ct&62914560)===ct||(ct&536870912)!==0?a===Ta:!1}function $M(){var a=pe.H;return pe.H=Bm,a===null?Bm:a}function BM(){var a=pe.A;return pe.A=LX,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 rN(a,i,l){var d=Et;Et|=Mn;var p=$M(),v=BM();if(Ht!==a||ct!==i){if(zi){var E=a.memoizedUpdaters;0<E.size&&(em(a,ct),E.clear()),yo(a,i)}Gm=null,Nu(a,i)}i=!1,E=sn;e:do try{if(It!==Ur&&dt!==null){var O=dt,k=la;switch(It){case Iw:nN(),E=Vv;break e;case Hm:case tc:case nc:case Fm:ia.current===null&&(i=!0);var V=It;if(It=Ur,la=null,wu(a,O,k,V),l&&nd){E=Fo;break e}break;default:V=It,It=Ur,la=null,wu(a,O,k,V)}}zM(),E=sn;break}catch(oe){LM(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 zM(){for(;dt!==null;)UM(dt)}function vY(a,i){var l=Et;Et|=Mn;var d=$M(),p=BM();if(Ht!==a||ct!==i){if(zi){var v=a.memoizedUpdaters;0<v.size&&(em(a,ct),v.clear()),yo(a,i)}Gm=null,qv=Hn()+Wk,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(nP(v)){It=Ur,la=null,qM(i);break}i=function(){It!==tc&&It!==nc||Ht!==a||(It=Bv),ki(a)},v.then(i,i);break e;case Hm:It=Bv;break e;case Yk:It=kw;break e;case Bv:nP(v)?(It=Ur,la=null,qM(i)):(It=Ur,la=null,wu(a,i,v,Bv));break;case kw:var E=null;switch(dt.tag){case 26:E=dt.memoizedState;case 5:case 27:var O=dt;if(E?k3(E):O.stateNode.complete){It=Ur,la=null;var k=O.sibling;if(k!==null)dt=k;else{var V=O.return;V!==null?(dt=V,Fg(V)):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,kw);break;case Fm:It=Ur,la=null,wu(a,i,v,Fm);break;case Iw:nN(),sn=Vv;break e;default:throw Error("Unexpected SuspendedReason. This is a bug in React.")}pe.actQueue!==null?zM():bY();break}catch(oe){LM(a,oe)}while(!0);return ug(),pe.H=d,pe.A=p,Et=l,dt!==null?Fo:(Ht=null,ct=0,ig(),sn)}function bY(){for(;dt!==null&&!vQ();)UM(dt)}function UM(a){var i=a.alternate;(a.mode&st)!==Ye?(J0(a),i=de(a,G1,i,a,Gi),e1(a)):i=de(a,G1,i,a,Gi),a.memoizedProps=a.pendingProps,i===null?Fg(a):dt=i}function qM(a){var i=de(a,yY,a);a.memoizedProps=a.pendingProps,i===null?Fg(a):dt=i}function yY(a){var i=a.alternate,l=(a.mode&st)!==Ye;switch(l&&J0(a),a.tag){case 15:case 0:i=eM(i,a,a.pendingProps,a.type,void 0,ct);break;case 11:i=eM(i,a,a.pendingProps,a.type.render,a.ref,ct);break;case 5:m1(a);default:sM(i,a),a=dt=UR(a,Gi),i=G1(i,a,Gi)}return l&&e1(a),i}function wu(a,i,l,d){ug(),m1(i),Gu=null,Im=0;var p=i.return;try{if(rY(a,p,i,l,ct)){sn=qm,kg(a,Xr(l,a.current)),dt=null;return}}catch(v){if(p!==null)throw dt=p,v;sn=qm,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===Hm||d===Fm)&&(d=ia.current,d!==null&&d.tag===13&&(d.flags|=16384))),HM(i,a)):Fg(i)}function Fg(a){var i=a;do{if((i.flags&32768)!==0){HM(i,Fs);return}var l=i.alternate;if(a=i.return,J0(i),l=de(i,oY,l,i,Gi),(i.mode&st)!==Ye&&WR(i),l!==null){dt=l;return}if(i=i.sibling,i!==null){dt=i;return}dt=i=a}while(i!==null);sn===Fo&&(sn=Gk)}function HM(a,i){do{var l=sY(a.alternate,a);if(l!==null){l.flags&=32767,dt=l;return}if((a.mode&st)!==Ye){WR(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 aN(a,i,l,d,p,v,E,O,k,V,oe,se,Z,fe){a.cancelPendingCommit=null;do Jf();while(Cn!==Qs);if(Za.flushLegacyContextWarning(),Za.flushPendingUnsafeLifecycleWarnings(),(Et&(Mn|sa))!==Gn)throw Error("Should not already be working.");if(Ga(l),V===ec?V0(Z,fe,l,mn):d!==null?HG(Z,fe,l,d,i!==null&&i.alternate!==null&&i.alternate.memoizedState.isDehydrated&&(i.flags&256)!==0,mn):qG(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|=dw,gs(a,l,v,E,O,k),a===Ht&&(dt=Ht=null,ct=0),rd=i,Xs=a,ti=l,zw=v,qw=p,rI=d,Uw=fe,aI=se,ni=Hv,iI=null,i.actualDuration!==0||(i.subtreeFlags&10256)!==0||(i.flags&10256)!==0?(a.callbackNode=null,a.callbackPriority=0,SY(Cu,function(){return Jm=window.event,ni===Hv&&(ni=Bw),QM(),null})):(a.callbackNode=null,a.callbackPriority=0),Vo=null,$s=En(),se!==null&&FG(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{mY(a,i,l)}finally{Et=E,Pt.p=p,pe.T=d}}Cn=Jk,FM(),KM(),GM()}}function FM(){if(Cn===Jk){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(),wM(i,a),td=ed=null,l=eE;var E=RR(a.containerInfo),O=l.focusedElem,k=l.selectionRange;if(E!==O&&O&&O.ownerDocument&&jR(O.ownerDocument.documentElement,O)){if(k!==null&&k0(O)){var V=k.start,oe=k.end;if(oe===void 0&&(oe=V),"selectionStart"in O)O.selectionStart=V,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=_R(O,_e),X=_R(O,Gt);if(xt&&X&&(fe.rangeCount!==1||fe.anchorNode!==xt.node||fe.anchorOffset!==xt.offset||fe.focusNode!==X.node||fe.focusOffset!==X.offset)){var ee=se.createRange();ee.setStart(xt.node,xt.offset),fe.removeAllRanges(),_e>Gt?(fe.addRange(ee),fe.extend(X.node,X.offset)):(ee.setEnd(X.node,X.offset),fe.addRange(ee))}}}}for(se=[],fe=O;fe=fe.parentNode;)fe.nodeType===1&&se.push({element:fe,left:fe.scrollLeft,top:fe.scrollTop});for(typeof O.focus=="function"&&O.focus(),O=0;O<se.length;O++){var re=se[O];re.element.scrollLeft=re.left,re.element.scrollTop=re.top}}ob=!!Jw,eE=Jw=null}finally{Et=v,Pt.p=p,pe.T=d}}a.current=i,Cn=eI}}function KM(){if(Cn===eI){Cn=Qs;var a=iI;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(),vM(a,i.alternate,i),td=ed=null}finally{Et=v,Pt.p=p,pe.T=d}}a=Uw,i=aI,Lo=En(),a=i===null?a:$s,i=Lo,l=ni===$w,d=mn,Vo!==null?LR(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=tI}}function GM(){if(Cn===nI||Cn===tI){if(Cn===nI){var a=Lo;Lo=En();var i=Lo,l=ni===$w;!Qt||i<=a||console.timeStamp(l?"Interrupted View Transition":"Starting Animation",a,i,Nt,yt,l?" error":"secondary-light"),ni!==$w&&(ni=Zk)}Cn=Qs,bQ(),a=Xs;var d=rd;i=ti,l=rI;var p=d.actualDuration!==0||(d.subtreeFlags&10256)!==0||(d.flags&10256)!==0;p?Cn=Fv:(Cn=Qs,rd=Xs=null,YM(a,a.pendingLanes),ac=0,Qm=null);var v=a.pendingLanes;if(v===0&&(Ys=null),p||JM(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=qN;break;case Ui:O=HN;break;case Ro:O=Cu;break;case cv:O=FN;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(),pY(),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 V=l[d],oe=xY(V.stack);de(V.source,k,V.value,oe)}}finally{pe.T=E,Pt.p=O}}(ti&3)!==0&&Jf(),ki(a),v=a.pendingLanes,(i&261930)!==0&&(v&42)!==0?(Dv=!0,a===Hw?Ym++:(Ym=0,Hw=a)):Ym=0,p||Bl(i,Lo),tm(0)}}function xY(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 YM(a,i){(a.pooledCacheLanes&=i)===0&&(i=a.pooledCache,i!=null&&(a.pooledCache=null,Lf(i)))}function Jf(){return FM(),KM(),GM(),QM()}function QM(){if(Cn!==Fv)return!1;var a=Xs,i=zw;zw=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=qw;qw=null,d=Xs;var E=ti;if(Cn=Qs,rd=Xs=null,ti=0,(Et&(Mn|sa))!==Gn)throw Error("Cannot flush passive effects while already rendering.");Ga(E),Fw=!0,Kv=!1;var O=0;if(Vo=null,O=Hn(),ni===Zk)$0(Lo,O,_X);else{var k=Lo,V=O,oe=ni===Bw;!Qt||V<=k||(mn?mn.run(console.timeStamp.bind(console,oe?"Waiting for Paint":"Waiting",k,V,Nt,yt,"secondary-light")):console.timeStamp(oe?"Waiting for Paint":"Waiting",k,V,Nt,yt,"secondary-light"))}k=Et,Et|=sa;var se=d.current;hg(),_M(se);var Z=d.current;se=Uw,hg(),OM(d,Z,E,v,se),JM(d),Et=k;var fe=Hn();if(Z=O,se=mn,Vo!==null?LR(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),tm(0,!1),Kv?d===Qm?ac++:(ac=0,Qm=d):ac=0,Kv=Fw=!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,YM(a,i)}}function XM(a,i,l){i=Xr(l,i),ZR(i),i=I1(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)XM(a,a,l);else{for(;i!==null;){if(i.tag===3){XM(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),ZR(a),l=L1(2),d=Es(i,l,2),d!==null&&(V1(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 iN(a,i,l){var d=a.pingCache;if(d===null){d=a.pingCache=new $X;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)||(Lw=!0,p.add(l),d=NY.bind(null,a,i,l),zi&&em(a,l),i.then(d,d))}function NY(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(),Sm=Nv("Promise Resolved"),Bs=wv):(l&4194048)!==0&&0>Ca&&($o=Ca=En(),Om=Nv("Promise Resolved"),bw=wv),PM()&&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&&Hn()-Uv<Xk?(Et&Mn)===Gn&&Nu(a,0):Vw|=l,rc===ct&&(rc=0)),ki(a)}function WM(a,i){i===0&&(i=Yr()),a=or(a,i),a!==null&&(Fa(a,i),ki(a))}function wY(a){var i=a.memoizedState,l=0;i!==null&&(l=i.retryLane),WM(a,l)}function EY(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),WM(a,l)}function oN(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,ZM,d,p):oN(d,p,v):p.memoizedState===null&&(v&&p.flags&8192?de(p,ZM,d,p):p.subtreeFlags&67108864&&de(p,oN,d,p,v)),i=i.sibling}}function ZM(a,i){Re(!0);try{SM(i),jM(i),AM(a,i.alternate,i,!1),DM(a,i,0,null,!1,0)}finally{Re(!1)}}function JM(a){var i=!0;a.current.mode&(lr|Wa)||(i=!1),oN(a,a.current,i)}function e3(a){if((Et&Mn)===Gn){var i=a.tag;if(i===3||i===1||i===0||i===11||i===14||i===15){if(i=I(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 em(a,i){zi&&a.memoizedUpdaters.forEach(function(l){bo(a,l,i)})}function SY(a,i){var l=pe.actQueue;return l!==null?(l.push(i),UX):UN(a,i)}function AY(a){PM()&&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`,I(a))})}function ki(a){a!==id&&a.next===null&&(id===null?Yv=id=a:id=id.next=a),Qv=!0,pe.actQueue!==null?Gw||(Gw=!0,a3()):Kw||(Kw=!0,a3())}function tm(a,i){if(!Yw&&Qv){Yw=!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,r3(d,v))}else v=ct,v=Un(d,d===Ht?v:0,d.cancelPendingCommit!==null||d.timeoutHandle!==lc),(v&3)===0||kr(d,v)||(l=!0,r3(d,v));d=d.next}while(l);Yw=!1}}function OY(){Jm=window.event,sN()}function sN(){Qv=Gw=Kw=!1;var a=0;Ws!==0&&PY()&&(a=Ws);for(var i=Hn(),l=null,d=Yv;d!==null;){var p=d.next,v=t3(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||tm(a),Ws!==0&&(Ws=0)}function t3(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=Un(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&&lN(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!==Qw)lN(d);else return i;switch(xo(l)){case Na:case Ui:l=HN;break;case Ro:l=Cu;break;case cv:l=FN;break;default:l=Cu}return d=n3.bind(null,a),pe.actQueue!==null?(pe.actQueue.push(d),l=Qw):l=UN(l,d),a.callbackPriority=i,a.callbackNode=l,i}return d!==null&&lN(d),a.callbackPriority=2,a.callbackNode=null,2}function n3(a,i){if(Dv=Ov=!1,Jm=window.event,Cn!==Qs&&Cn!==Fv)return a.callbackNode=null,a.callbackPriority=0,null;var l=a.callbackNode;if(ni===Hv&&(ni=Bw),Jf()&&a.callbackNode!==l)return null;var d=ct;return d=Un(a,a===Ht?d:0,a.cancelPendingCommit!==null||a.timeoutHandle!==lc),d===0?null:(kM(a,d,i),t3(a,Hn()),a.callbackNode!=null&&a.callbackNode===l?n3.bind(null,a):null)}function r3(a,i){if(Jf())return null;Ov=Dv,Dv=!1,kM(a,i,!0)}function lN(a){a!==Qw&&a!==null&&gQ(a)}function a3(){pe.actQueue!==null&&pe.actQueue.push(function(){return sN(),null}),ZX(function(){(Et&(Mn|sa))!==Gn?UN(qN,OY):sN()})}function cN(){if(Ws===0){var a=Yl;a===0&&(a=ov,ov<<=1,(ov&261888)===0&&(ov=256)),Ws=a}return Ws}function i3(a){return a==null||typeof a=="symbol"||typeof a=="boolean"?null:typeof a=="function"?a:(Ve(a,"action"),Pf(""+a))}function o3(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 DY(a,i,l,d,p){if(i==="submit"&&l&&l.stateNode===p){var v=i3((p[wr]||null).action),E=d.submitter;E&&(i=(i=E[wr]||null)?i3(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?o3(p,E):new FormData(p),V={pending:!0,data:k,method:p.method,action:v};Object.freeze(V),T1(l,V,null,k)}}else typeof v=="function"&&(O.preventDefault(),k=E?o3(p,E):new FormData(p),V={pending:!0,data:k,method:p.method,action:v},Object.freeze(V),T1(l,V,v,k))},currentTarget:p}]})}}function Kg(a,i,l){a.currentTarget=l;try{i(a)}catch(d){sw(d)}a.currentTarget=null}function s3(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,V=O.currentTarget;if(O=O.listener,k!==p&&v.isPropagationStopped())break e;k!==null?de(k,Kg,v,O,V):Kg(v,O,V),p=k}else for(E=0;E<d.length;E++){if(O=d[E],k=O.instance,V=O.currentTarget,O=O.listener,k!==p&&v.isPropagationStopped())break e;k!==null?de(k,Kg,v,O,V):Kg(v,O,V),p=k}}}}function bt(a,i){Xw.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[KN];l===void 0&&(l=i[KN]=new Set);var d=a+"__bubble";l.has(d)||(l3(i,a,2,!1),l.add(d))}function uN(a,i,l){Xw.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),l3(l,a,d,i)}function dN(a){if(!a[Xv]){a[Xv]=!0,a5.forEach(function(l){l!=="selectionchange"&&(Xw.has(l)||uN(l,!1,a),uN(l,!0,a))});var i=a.nodeType===9?a:a.ownerDocument;i===null||i[Xv]||(i[Xv]=!0,uN("selectionchange",!1,i))}}function l3(a,i,l,d){switch(z3(i)){case Na:var p=sQ;break;case Ui:p=lQ;break;default:p=DN}l=p.bind(null,i,l,a),p=void 0,!WN||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 fN(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}yR(function(){var V=v,oe=P0(l),se=[];e:{var Z=z5.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=rX;break;case"focusin":Ce="focus",fe=tw;break;case"focusout":Ce="blur",fe=tw;break;case"beforeblur":case"afterblur":fe=tw;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=D5;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":fe=FQ;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":fe=oX;break;case L5:case V5:case $5:fe=YQ;break;case B5:fe=lX;break;case"scroll":case"scrollend":fe=qQ;break;case"wheel":fe=uX;break;case"copy":case"cut":case"paste":fe=XQ;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":fe=T5;break;case"toggle":case"beforetoggle":fe=fX}var _e=(i&4)!==0,Gt=!_e&&(a==="scroll"||a==="scrollend"),xt=_e?Z!==null?Z+"Capture":null:Z;_e=[];for(var X=V,ee;X!==null;){var re=X;if(ee=re.stateNode,re=re.tag,re!==5&&re!==26&&re!==27||ee===null||xt===null||(re=Mf(X,xt),re!=null&&_e.push(nm(X,re,ee))),Gt)break;X=X.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!==mm&&(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=V,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=V),fe!==Ce)){if(_e=D5,re="onMouseLeave",xt="onMouseEnter",X="mouse",(a==="pointerout"||a==="pointerover")&&(_e=T5,re="onPointerLeave",xt="onPointerEnter",X="pointer"),Gt=fe==null?Z:Me(fe),ee=Ce==null?Z:Me(Ce),Z=new _e(re,X+"leave",fe,l,oe),Z.target=Gt,Z.relatedTarget=ee,re=null,Ee(oe)===V&&(_e=new _e(xt,X+"enter",Ce,l,oe),_e.target=ee,_e.relatedTarget=Gt,re=_e),Gt=re,fe&&Ce)t:{for(_e=CY,xt=fe,X=Ce,ee=0,re=xt;re;re=_e(re))ee++;re=0;for(var ve=X;ve;ve=_e(ve))re++;for(;0<ee-re;)xt=_e(xt),ee--;for(;0<re-ee;)X=_e(X),re--;for(;ee--;){if(xt===X||X!==null&&xt===X.alternate){_e=xt;break t}xt=_e(xt),X=_e(X)}_e=null}else _e=null;fe!==null&&c3(se,Z,fe,_e,!1),Ce!==null&&Gt!==null&&c3(se,Gt,Ce,_e,!0)}}e:{if(Z=V?Me(V):window,fe=Z.nodeName&&Z.nodeName.toLowerCase(),fe==="select"||fe==="input"&&Z.type==="file")var Te=OR;else if(SR(Z))if(k5)Te=BG;else{Te=VG;var Ze=LG}else fe=Z.nodeName,!fe||fe.toLowerCase()!=="input"||Z.type!=="checkbox"&&Z.type!=="radio"?V&&Rf(V.elementType)&&(Te=OR):Te=$G;if(Te&&(Te=Te(a,V))){AR(se,Te,l,oe);break e}Ze&&Ze(a,Z,V),a==="focusout"&&V&&Z.type==="number"&&V.memoizedProps.value!=null&&D0(Z,"number",Z.value)}switch(Ze=V?Me(V):window,a){case"focusin":(SR(Ze)||Ze.contentEditable==="true")&&(Iu=Ze,rw=V,xm=null);break;case"focusout":xm=rw=Iu=null;break;case"mousedown":aw=!0;break;case"contextmenu":case"mouseup":case"dragend":aw=!1,PR(se,l,oe);break;case"selectionchange":if(gX)break;case"keydown":case"keyup":PR(se,l,oe)}var Ue;if(nw)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?wR(a,l)&&($e="onCompositionEnd"):a==="keydown"&&l.keyCode===_5&&($e="onCompositionStart");$e&&(j5&&l.locale!=="ko"&&(ku||$e!=="onCompositionStart"?$e==="onCompositionEnd"&&ku&&(Ue=xR()):(Ms=oe,ZN="value"in Ms?Ms.value:Ms.textContent,ku=!0)),Ze=Gg(V,$e),0<Ze.length&&($e=new C5($e,a,null,l,oe),se.push({event:$e,listeners:Ze}),Ue?$e.data=Ue:(Ue=ER(l),Ue!==null&&($e.data=Ue)))),(Ue=hX?PG(a,l):MG(a,l))&&($e=Gg(V,"onBeforeInput"),0<$e.length&&(Ze=new ZQ("onBeforeInput","beforeinput",null,l,oe),se.push({event:Ze,listeners:$e}),Ze.data=Ue)),DY(se,a,V,l,oe)}s3(se,i)})}function nm(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=Mf(a,l),p!=null&&d.unshift(nm(a,p,v)),p=Mf(a,i),p!=null&&d.push(nm(a,p,v))),a.tag===3)return d;a=a.return}return[]}function CY(a){if(a===null)return null;do a=a.return;while(a&&a.tag!==5&&a.tag!==27);return a||null}function c3(a,i,l,d,p){for(var v=i._reactName,E=[];l!==null&&l!==d;){var O=l,k=O.alternate,V=O.stateNode;if(O=O.tag,k!==null&&k===d)break;O!==5&&O!==26&&O!==27||V===null||(k=V,p?(V=Mf(l,v),V!=null&&E.unshift(nm(l,V,k))):p||(V=Mf(l,v),V!=null&&E.push(nm(l,V,k)))),l=l.return}E.length!==0&&a.push({event:i,listeners:E})}function mN(a,i){TG(a,i),a!=="input"&&a!=="textarea"&&a!=="select"||i==null||i.value!==null||A5||(A5=!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:GN};Rf(a)||typeof i.is=="string"||jG(a,i,l),i.contentEditable&&!i.suppressContentEditableWarning&&i.children!=null&&console.error("A component is `contentEditable` and contains `children` managed by React. It is now your responsibility to guarantee that none of those nodes are unexpectedly modified or duplicated. This is probably not intentional.")}function qn(a,i,l,d){i!==l&&(l=Cs(l),Cs(i)!==l&&(d[a]=i))}function TY(a,i,l){i.forEach(function(d){l[f3(d)]=d==="style"?pN(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 u3(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(qX,`
|
||
`).replace(HX,"")}function d3(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===""||jf(a,d)):(typeof d=="number"||typeof d=="bigint")&&(Jp(""+d,i,!1),i!=="body"&&jf(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":gR(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=Pf(""+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||uI||(uI=!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=Pf(""+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=Pf(""+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,Ww,"xml:base",d);break;case"xmlLang":gn(a,Ww,"xml:lang",d);break;case"xmlSpace":gn(a,Ww,"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":dI||d==null||typeof d!="object"||(dI=!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=vR(l),jn(a,l,d)):zl.hasOwnProperty(l)&&d!=null&&typeof d!="function"&&Ii(l,d)}}function hN(a,i,l,d,p,v){switch(l){case"style":gR(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"?jf(a,d):(typeof d=="number"||typeof d=="bigint")&&jf(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(mN(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,V=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":V=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)}}eR(a,l),tR(a,v,O,k,V,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)}aR(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)}iR(a,l),sR(a,d,p,v);return;case"option":nR(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<Xm.length;d++)bt(Xm[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(V in l)if(l.hasOwnProperty(V)&&(d=l[V],d!=null))switch(V){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,d,l,null)}return;default:if(Rf(i)){for(oe in l)l.hasOwnProperty(oe)&&(d=l[oe],d!==void 0&&hN(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 _Y(a,i,l,d){switch(mN(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,V=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":V=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||cI||(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"),cI=!0),!i||d||lI||(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"),lI=!0),O0(a,E,O,k,V,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)}oR(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(V in d)if(Z=d[V],fe=l[V],d.hasOwnProperty(V)&&Z!==fe&&(Z!=null||fe!=null))switch(V){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,V,Z,d,fe)}return;default:if(Rf(i)){for(var Gt in l)Z=l[Gt],l.hasOwnProperty(Gt)&&Z!==void 0&&!d.hasOwnProperty(Gt)&&hN(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||hN(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 f3(a){switch(a){case"class":return"className";case"for":return"htmlFor";default:return a}}function pN(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 m3(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||E5.has(v)?(nt(E,v),d+=p+v.replace(b5,"-$1").toLowerCase().replace(y5,"-ms-")+":"+(""+E).trim()):d+=p+v.replace(b5,"-$1").toLowerCase().replace(y5,"-ms-")+":"+E+"px",p=";")}d=d||null,i=a.getAttribute("style"),i!==d&&(d=Cs(d),Cs(i)!==d&&(l.style=pN(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}qn(i,a,d,v)}function h3(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}qn(i,a,d,v)}function gN(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}qn(i,a,d,v)}function p3(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}qn(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":case"boolean":return}else if(d!=null)switch(typeof d){case"function":case"symbol":case"boolean":break;default:if(Ve(d,i),l=Pf(""+d),a===l)return}qn(i,a,d,v)}function g3(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(Rf(i)){for(var k in l)if(l.hasOwnProperty(k)){var V=l[k];if(V!=null){if(zl.hasOwnProperty(k))typeof V!="function"&&Ii(k,V);else if(l.suppressHydrationWarning!==!0)switch(k){case"children":typeof V!="string"&&typeof V!="number"||qn("children",a.textContent,V,p);continue;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"defaultValue":case"defaultChecked":case"innerHTML":case"ref":continue;case"dangerouslySetInnerHTML":E=a.innerHTML,V=V?V.__html:void 0,V!=null&&(V=u3(a,V),qn(k,E,V,p));continue;case"style":v.delete(k),m3(a,V,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",V),qn("className",E,V,p);continue;default:d.context===Ko&&i!=="svg"&&i!=="math"?v.delete(k.toLowerCase()):v.delete(k),E=dn(a,k,V),qn(k,E,V,p)}}}}else for(V in l)if(l.hasOwnProperty(V)&&(k=l[V],k!=null)){if(zl.hasOwnProperty(V))typeof k!="function"&&Ii(V,k);else if(l.suppressHydrationWarning!==!0)switch(V){case"children":typeof k!="string"&&typeof k!="number"||qn("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=u3(a,k),E!==k&&(p[V]={__html:E}));continue;case"className":xa(a,V,"class",k,v,p);continue;case"tabIndex":xa(a,V,"tabindex",k,v,p);continue;case"style":v.delete(V),m3(a,k,p);continue;case"multiple":v.delete(V),qn(V,a.multiple,k,p);continue;case"muted":v.delete(V),qn(V,a.muted,k,p);continue;case"autoFocus":v.delete("autofocus"),qn(V,a.autofocus,k,p);continue;case"data":if(i!=="object"){v.delete(V),E=a.getAttribute("data"),qn(V,E,k,p);continue}case"src":case"href":if(!(k!==""||i==="a"&&V==="href"||i==="object"&&V==="data")){console.error(V==="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.',V,V);continue}vN(a,V,V,k,v,p);continue;case"action":case"formAction":if(E=a.getAttribute(V),typeof k=="function"){v.delete(V.toLowerCase()),V==="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===FX){v.delete(V.toLowerCase()),qn(V,"function",k,p);continue}vN(a,V,V.toLowerCase(),k,v,p);continue;case"xlinkHref":vN(a,V,"xlink:href",k,v,p);continue;case"contentEditable":gN(a,V,"contenteditable",k,v,p);continue;case"spellCheck":gN(a,V,"spellcheck",k,v,p);continue;case"draggable":case"autoReverse":case"externalResourcesRequired":case"focusable":case"preserveAlpha":gN(a,V,V,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":h3(a,V,V.toLowerCase(),k,v,p);continue;case"capture":case"download":e:{O=a;var oe=E=V,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}qn(E,O,k,se)}continue;case"cols":case"rows":case"size":case"span":e:{if(O=a,oe=E=V,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}qn(E,O,k,se)}continue;case"rowSpan":p3(a,V,"rowspan",k,v,p);continue;case"start":p3(a,V,V,k,v,p);continue;case"xHeight":xa(a,V,"x-height",k,v,p);continue;case"xlinkActuate":xa(a,V,"xlink:actuate",k,v,p);continue;case"xlinkArcrole":xa(a,V,"xlink:arcrole",k,v,p);continue;case"xlinkRole":xa(a,V,"xlink:role",k,v,p);continue;case"xlinkShow":xa(a,V,"xlink:show",k,v,p);continue;case"xlinkTitle":xa(a,V,"xlink:title",k,v,p);continue;case"xlinkType":xa(a,V,"xlink:type",k,v,p);continue;case"xmlBase":xa(a,V,"xml:base",k,v,p);continue;case"xmlLang":xa(a,V,"xml:lang",k,v,p);continue;case"xmlSpace":xa(a,V,"xml:space",k,v,p);continue;case"inert":k!==""||eb[V]||(eb[V]=!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.",V)),h3(a,V,V,k,v,p);continue;default:if(!(2<V.length)||V[0]!=="o"&&V[0]!=="O"||V[1]!=="n"&&V[1]!=="N"){O=vR(V),E=!1,d.context===Ko&&i!=="svg"&&i!=="math"?v.delete(O.toLowerCase()):(oe=V.toLowerCase(),oe=fv.hasOwnProperty(oe)&&fv[oe]||null,oe!==null&&oe!==V&&(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||qn(V,O,k,p)}}}return 0<v.size&&l.suppressHydrationWarning!==!0&&TY(a,v,p),Object.keys(p).length===0?null:p}function jY(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 v3(a){switch(a){case"css":case"script":case"font":case"img":case"image":case"input":case"link":return!0;default:return!1}}function RY(){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&&v3(E)){for(E=0,O=p.responseEnd,d+=1;d<l.length;d++){var k=l[d],V=k.startTime;if(V>O)break;var oe=k.transferSize,se=k.initiatorType;oe&&v3(se)&&(k=k.responseEnd,E+=oe*(k<O?1:(O-V)/(k-V)))}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 b3(a){switch(a){case ju:return sd;case dv:return nb;default:return Ko}}function y3(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 bN(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 PY(){var a=window.event;return a&&a.type==="popstate"?a===tE?!1:(tE=a,!0):(tE=null,!1)}function rm(){var a=window.event;return a&&a!==Jm?a.type:null}function am(){var a=window.event;return a&&a!==Jm?a.timeStamp:-1.1}function MY(a){setTimeout(function(){throw a})}function kY(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 IY(){}function LY(a,i,l,d){_Y(a,i,l,d),a[wr]=d}function x3(a){jf(a,"")}function VY(a,i,l){a.nodeValue=l}function N3(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 $Y(a,i){a.removeChild(i)}function BY(a,i){(a.nodeType===9?a.body:a.nodeName==="HTML"?a.ownerDocument.body:a).removeChild(i)}function w3(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===Zm||l===tb){if(d===0){a.removeChild(p),Au(i);return}d--}else if(l===Wm||l===Zs||l===sc||l===od||l===oc)d++;else if(l===GX)im(a.ownerDocument.documentElement);else if(l===QX){l=a.ownerDocument.head,im(l);for(var v=l.firstChild;v;){var E=v.nextSibling,O=v.nodeName;v[fm]||O==="SCRIPT"||O==="STYLE"||O==="LINK"&&v.rel.toLowerCase()==="stylesheet"||l.removeChild(v),v=E}}else l===YX&&im(a.ownerDocument.body);l=p}while(l);Au(i)}function E3(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===Zm){if(a===0)break;a--}else l!==Wm&&l!==Zs&&l!==sc&&l!==od||a++;l=d}while(l)}function zY(a){E3(a,!0)}function UY(a){a=a.style,typeof a.setProperty=="function"?a.setProperty("display","none","important"):a.display="none"}function qY(a){a.nodeValue=""}function HY(a){E3(a,!1)}function FY(a,i){i=i[XX],i=i!=null&&i.hasOwnProperty("display")?i.display:null,a.style.display=i==null||typeof i=="boolean"?"":(""+i).trim()}function KY(a,i){a.nodeValue=i}function yN(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":yN(l),ce(l);continue;case"SCRIPT":case"STYLE":continue;case"LINK":if(l.rel.toLowerCase()==="stylesheet")continue}a.removeChild(l)}}function GY(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[fm])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 YY(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 S3(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 xN(a){return a.data===Zs||a.data===sc}function NN(a){return a.data===od||a.data===Zs&&a.ownerDocument.readyState!==mI}function QY(a,i){var l=a.ownerDocument;if(a.data===sc)a._reactRetry=i;else if(a.data!==Zs||l.readyState!==mI)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===Wm||i===od||i===Zs||i===sc||i===oc||i===Zw||i===fI)break;if(i===Zm||i===tb)return null}}return a}function A3(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[f3(v.name)]=v.name.toLowerCase()==="style"?pN(a):v.value}return{type:i,props:l}}return a.nodeType===8?a.data===oc?{type:"Activity",props:{}}:{type:"Suspense",props:{}}:a.nodeValue}function O3(a,i,l){return l===null||l[KX]!==!0?(a.nodeValue===i?a=null:(i=Cs(i),a=Cs(a.nodeValue)===i?null:a.nodeValue),a):null}function wN(a){a=a.nextSibling;for(var i=0;a;){if(a.nodeType===8){var l=a.data;if(l===Zm||l===tb){if(i===0)return ta(a.nextSibling);i--}else l!==Wm&&l!==od&&l!==Zs&&l!==sc&&l!==oc||i++}a=a.nextSibling}return null}function D3(a){a=a.previousSibling;for(var i=0;a;){if(a.nodeType===8){var l=a.data;if(l===Wm||l===od||l===Zs||l===sc||l===oc){if(i===0)return a;i--}else l!==Zm&&l!==tb||i++}a=a.previousSibling}return null}function XY(a){Au(a)}function WY(a){Au(a)}function ZY(a){Au(a)}function C3(a,i,l,d,p){switch(p&&R0(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 JY(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 im(a){for(var i=a.attributes;i.length;)a.removeAttributeNode(i[0]);ce(a)}function Qg(a){return typeof a.getRootNode=="function"?a.getRootNode():a.nodeType===9?a:a.ownerDocument}function T3(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+'"]'),yI.has(p)||(yI.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 _3(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(om(a)))&&!v._p&&(E.instance=v,E.state.loading=eh|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||eQ(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 om(a){return'link[rel="stylesheet"]['+a+"]"}function j3(a){return mt({},a,{"data-precedence":a.precedence,precedence:null})}function eQ(a,i,l,d){a.querySelector('link[rel="preload"][as="style"]['+i+"]")?d.loading=eh:(i=a.createElement("link"),d.preload=i,i.addEventListener("load",function(){return d.loading|=eh}),i.addEventListener("error",function(){return d.loading|=vI}),er(i,"link",l),Se(i),a.head.appendChild(i))}function Su(a){return'[src="'+ya(a)+'"]'}function sm(a){return"script[async]"+a}function R3(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(om(p));if(v)return i.state.loading|=Ra,i.instance=v,Se(v),v;d=j3(l),(p=Pa.get(p))&&EN(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(sm(v)))?(i.instance=p,Se(p),p):(d=l,(p=Pa.get(v))&&(d=mt({},l),SN(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 EN(a,i){a.crossOrigin==null&&(a.crossOrigin=i.crossOrigin),a.referrerPolicy==null&&(a.referrerPolicy=i.referrerPolicy),a.title==null&&(a.title=i.title)}function SN(a,i){a.crossOrigin==null&&(a.crossOrigin=i.crossOrigin),a.referrerPolicy==null&&(a.referrerPolicy=i.referrerPolicy),a.integrity==null&&(a.integrity=i.integrity)}function P3(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[fm]||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 M3(a,i,l){a=a.ownerDocument||a,a.head.insertBefore(l,i==="title"?a.querySelector("head > title"):null)}function tQ(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=jY(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 k3(a){return!(a.type==="stylesheet"&&(a.state.loading&bI)===cc)}function nQ(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(om(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=j3(d),(p=Pa.get(p))&&EN(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&bI)===cc&&(a.count++,l=Zg.bind(a),i.addEventListener("load",l),i.addEventListener("error",l))}}function rQ(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()}},JX+i);0<a.imgBytes&&rE===0&&(rE=125*RY()*tW);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>rE?50:eW)+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(aQ,a),ab=null,Zg.call(a))}function aQ(a,i){if(!(i.state.loading&Ra)){var l=ab.get(a);if(l)var d=l.get(aE);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(aE,d)}p=i.instance,E=p.getAttribute("data-precedence"),v=l.get(E)||d,v===d&&l.set(aE,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 iQ(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 I3(a,i,l,d,p,v,E,O,k,V,oe,se){return a=new iQ(a,i,l,E,k,V,oe,se,O),i=AX,v===!0&&(i|=lr|Wa),i|=st,v=y(3,null,null,i),a.current=v,v.stateNode=a,i=Z0(),Ml(i),a.pooledCache=i,Ml(i),v.memoizedState={element:d,isDehydrated:l,cache:i},r1(v),a}function L3(a){return a?(a=Ls,a):Ls}function AN(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=L3(p),d.context===null?d.context=p:d.pendingContext=p,$i&&ra!==null&&!EI&&(EI=!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.`,I(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),zf(l,a,i))}function V3(a,i){if(a=a.memoizedState,a!==null&&a.dehydrated!==null){var l=a.retryLane;a.retryLane=l!==0&&l<i?l:i}}function ON(a,i){V3(a,i),(a=a.alternate)&&V3(a,i)}function $3(a){if(a.tag===13||a.tag===31){var i=or(a,67108864);i!==null&&cn(i,a,67108864),ON(a,67108864)}}function B3(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),ON(a,i)}}function oQ(){return ra}function sQ(a,i,l,d){var p=pe.T;pe.T=null;var v=Pt.p;try{Pt.p=Na,DN(a,i,l,d)}finally{Pt.p=v,pe.T=p}}function lQ(a,i,l,d){var p=pe.T;pe.T=null;var v=Pt.p;try{Pt.p=Ui,DN(a,i,l,d)}finally{Pt.p=v,pe.T=p}}function DN(a,i,l,d){if(ob){var p=CN(d);if(p===null)fN(a,i,d,sb,l),U3(a,d);else if(cQ(p,a,i,l,d))d.stopPropagation();else if(U3(a,d),i&4&&-1<rW.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))===Gn&&(qv=Hn()+Wk,tm(0))}}break;case 31:case 13:O=or(v,2),O!==null&&cn(O,v,2),xu(),ON(v,2)}if(v=CN(d),v===null&&fN(a,i,d,sb,l),v===p)break;p=v}p!==null&&d.stopPropagation()}else fN(a,i,d,null,l)}}function CN(a){return a=P0(a),TN(a)}function TN(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 z3(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(yQ()){case qN:return Na;case HN:return Ui;case Cu:case xQ:return Ro;case FN:return cv;default:return Ro}default:return Ro}}function U3(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":nh.delete(i.pointerId);break;case"gotpointercapture":case"lostpointercapture":rh.delete(i.pointerId)}}function lm(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&&$3(i)),a):(a.eventSystemFlags|=d,i=a.targetContainers,p!==null&&i.indexOf(p)===-1&&i.push(p),a)}function cQ(a,i,l,d,p){switch(i){case"focusin":return Js=lm(Js,a,i,l,d,p),!0;case"dragenter":return el=lm(el,a,i,l,d,p),!0;case"mouseover":return tl=lm(tl,a,i,l,d,p),!0;case"pointerover":var v=p.pointerId;return nh.set(v,lm(nh.get(v)||null,a,i,l,d,p)),!0;case"gotpointercapture":return v=p.pointerId,rh.set(v,lm(rh.get(v)||null,a,i,l,d,p)),!0}return!1}function q3(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(){B3(l)});return}}else if(i===31){if(i=j(l),i!==null){a.blockedOn=i,B(a.priority,function(){B3(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=CN(a.nativeEvent);if(l===null){l=a.nativeEvent;var d=new l.constructor(l.type,l),p=d;mm!==null&&console.error("Expected currently replaying event to be null. This error is likely caused by a bug in React. Please file an issue."),mm=p,l.target.dispatchEvent(d),mm===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."),mm=null}else return i=De(l),i!==null&&$3(i),a.blockedOn=l,!1;i.shift()}return!0}function H3(a,i,l){ev(a)&&l.delete(i)}function uQ(){iE=!1,Js!==null&&ev(Js)&&(Js=null),el!==null&&ev(el)&&(el=null),tl!==null&&ev(tl)&&(tl=null),nh.forEach(H3),rh.forEach(H3)}function tv(a,i){a.blockedOn===i&&(a.blockedOn=null,iE||(iE=!0,Nn.unstable_scheduleCallback(Nn.unstable_NormalPriority,uQ)))}function F3(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(TN(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),T1(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),nh.forEach(i),rh.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);)q3(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||F3(l);else if(E){var O=null;if(v&&v.hasAttribute("formAction")){if(p=v,E=v[wr]||null)O=E.formAction;else if(TN(p)!==null)continue}else O=E.action;typeof O=="function"?l[d+1]=O:(l.splice(d,3),d-=3),F3(l)}}}function K3(){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 _N(a){this._internalRoot=a}function nv(a){this._internalRoot=a}function G3(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=Dee(),jN=df(),dQ=C9(),mt=Object.assign,fQ=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"),RN=Symbol.for("react.profiler"),PN=Symbol.for("react.consumer"),Vi=Symbol.for("react.context"),cm=Symbol.for("react.forward_ref"),MN=Symbol.for("react.suspense"),kN=Symbol.for("react.suspense_list"),av=Symbol.for("react.memo"),na=Symbol.for("react.lazy"),IN=Symbol.for("react.activity"),mQ=Symbol.for("react.memo_cache_sentinel"),Y3=Symbol.iterator,hQ=Symbol.for("react.client.reference"),Rn=Array.isArray,pe=jN.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,Pt=dQ.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,pQ=Object.freeze({pending:!1,data:null,method:null,action:null}),LN=[],VN=[],jo=-1,_s=z(null),um=z(null),js=z(null),iv=z(null),dm=0,Q3,X3,W3,Z3,J3,e5,t5;ne.__reactDisabledLog=!0;var $N,n5,BN=!1,zN=new(typeof WeakMap=="function"?WeakMap:Map),ra=null,$i=!1,Xa=Object.prototype.hasOwnProperty,UN=Nn.unstable_scheduleCallback,gQ=Nn.unstable_cancelCallback,vQ=Nn.unstable_shouldYield,bQ=Nn.unstable_requestPaint,Hn=Nn.unstable_now,yQ=Nn.unstable_getCurrentPriorityLevel,qN=Nn.unstable_ImmediatePriority,HN=Nn.unstable_UserBlockingPriority,Cu=Nn.unstable_NormalPriority,xQ=Nn.unstable_LowPriority,FN=Nn.unstable_IdlePriority,NQ=Nn.log,wQ=Nn.unstable_setDisableYieldValue,Tu=null,sr=null,Bi=!1,zi=typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u",Nr=Math.clz32?Math.clz32:ir,EQ=Math.log,SQ=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,KN="__reactEvents$"+Rs,AQ="__reactListeners$"+Rs,OQ="__reactHandles$"+Rs,r5="__reactResources$"+Rs,fm="__reactMarker$"+Rs,a5=new Set,zl={},GN={},DQ={button:!0,checkbox:!0,image:!0,hidden:!0,radio:!0,reset:!0,submit:!0},CQ=RegExp("^[:A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD][:A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD\\-.0-9\\u00B7\\u0300-\\u036F\\u203F-\\u2040]*$"),i5={},o5={},TQ=/[\n"\\]/g,s5=!1,l5=!1,c5=!1,u5=!1,d5=!1,f5=!1,m5=["value","defaultValue"],h5=!1,p5=/["'&<>\n\t]|^\s|\s$/,_Q="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(" "),g5="applet caption html table td th marquee object template foreignObject desc title".split(" "),jQ=g5.concat(["button"]),RQ="dd dt li option optgroup p rp rt".split(" "),v5={current:null,formTag:null,aTagInScope:null,buttonTagInScope:null,nobrTagInScope:null,pTagInButtonScope:null,listItemTagAutoclosing:null,dlItemTagAutoclosing:null,containerTagInScope:null,implicitRootScope:!1},uv={},YN={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"]},b5=/([A-Z])/g,y5=/^ms-/,PQ=/^(?:webkit|moz|o)[A-Z]/,MQ=/^-ms-/,kQ=/-(.)/g,x5=/;\s*$/,_u={},QN={},N5=!1,w5=!1,E5=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",IQ=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"},S5={"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={},LQ=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]*$"),VQ=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]*$"),A5=!1,Er={},O5=/^on./,$Q=/^on[^A-Z]/,BQ=RegExp("^(aria)-[:A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD\\-.0-9\\u00B7\\u0300-\\u036F\\u203F-\\u2040]*$"),zQ=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]*$"),UQ=/^[\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,mm=null,Pu=null,Mu=null,XN=!1,qi=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),WN=!1;if(qi)try{var hm={};Object.defineProperty(hm,"passive",{get:function(){WN=!0}}),window.addEventListener("test",hm,hm),window.removeEventListener("test",hm,hm)}catch{WN=!1}var Ms=null,ZN=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),pm=mt({},Ul,{view:0,detail:0}),qQ=Lr(pm),JN,ew,gm,pv=mt({},pm,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:M0,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!==gm&&(gm&&a.type==="mousemove"?(JN=a.screenX-gm.screenX,ew=a.screenY-gm.screenY):ew=JN=0,gm=a),JN)},movementY:function(a){return"movementY"in a?a.movementY:ew}}),D5=Lr(pv),HQ=mt({},pv,{dataTransfer:0}),FQ=Lr(HQ),KQ=mt({},pm,{relatedTarget:0}),tw=Lr(KQ),GQ=mt({},Ul,{animationName:0,elapsedTime:0,pseudoElement:0}),YQ=Lr(GQ),QQ=mt({},Ul,{clipboardData:function(a){return"clipboardData"in a?a.clipboardData:window.clipboardData}}),XQ=Lr(QQ),WQ=mt({},Ul,{data:0}),C5=Lr(WQ),ZQ=C5,JQ={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},eX={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"},tX={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"},nX=mt({},pm,{key:function(a){if(a.key){var i=JQ[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"?eX[a.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:M0,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}}),rX=Lr(nX),aX=mt({},pv,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),T5=Lr(aX),iX=mt({},pm,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:M0}),oX=Lr(iX),sX=mt({},Ul,{propertyName:0,elapsedTime:0,pseudoElement:0}),lX=Lr(sX),cX=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}),uX=Lr(cX),dX=mt({},Ul,{newState:0,oldState:0}),fX=Lr(dX),mX=[9,13,27,32],_5=229,nw=qi&&"CompositionEvent"in window,vm=null;qi&&"documentMode"in document&&(vm=document.documentMode);var hX=qi&&"TextEvent"in window&&!vm,j5=qi&&(!nw||vm&&8<vm&&11>=vm),R5=32,P5=String.fromCharCode(R5),M5=!1,ku=!1,pX={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},bm=null,ym=null,k5=!1;qi&&(k5=kG("input")&&(!document.documentMode||9<document.documentMode));var Sr=typeof Object.is=="function"?Object.is:zG,gX=qi&&"documentMode"in document&&11>=document.documentMode,Iu=null,rw=null,xm=null,aw=!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")},iw={},I5={};qi&&(I5=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 L5=Cl("animationend"),V5=Cl("animationiteration"),$5=Cl("animationstart"),vX=Cl("transitionrun"),bX=Cl("transitionstart"),yX=Cl("transitioncancel"),B5=Cl("transitionend"),z5=new Map,ow="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(" ");ow.push("scrollEnd");var U5=0;if(typeof performance=="object"&&typeof performance.now=="function")var xX=performance,q5=function(){return xX.now()};else{var NX=Date;q5=function(){return NX.now()}}var sw=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)},wX="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,lw=1,cw=2,uw=3,vv="– ",bv="+ ",H5=" ",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}},EX=["Changed Props",""],F5="This component received deeply equal props. It might benefit from useMemo or the React Compiler in its owner.",SX=["Changed Props",F5],Nm=1,Mo=2,Ea=[],Vu=0,dw=0,Ls={};Object.freeze(Ls);var Sa=null,$u=null,Ye=0,AX=1,st=2,lr=8,Wa=16,OX=32,K5=!1;try{var G5=Object.preventExtensions({})}catch{K5=!0}var fw=new WeakMap,Bu=[],zu=0,yv=null,wm=0,Aa=[],Oa=0,ql=null,ko=1,Io="",nr=null,Xt=null,pt=!1,Hi=!1,aa=null,Vs=null,Da=!1,mw=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."),hw=z(null),pw=z(null),Y5={},xv=null,Uu=null,qu=!1,DX=typeof AbortController<"u"?AbortController:function(){var a=[],i=this.signal={aborted:!1,addEventListener:function(l,d){a.push(d)}};this.abort=function(){i.aborted=!0,a.forEach(function(l){return l()})}},CX=Nn.unstable_scheduleCallback,TX=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},Em=1,wv=2,Fn=-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,Sm=null,Bs=0,gw=null,vw=null,Kl=-1.1,Am=null,Hu=-1.1,Ev=-1.1,$o=-0,Bo=-1.1,Ca=-1.1,bw=0,Om=null,Q5=null,X5=null,zs=-1.1,Gl=null,Us=-1.1,Sv=-1.1,W5=-0,Z5=-0,Av=0,_X=null,J5=0,Dm=-1.1,Ov=!1,Dv=!1,Cm=null,yw=0,Yl=0,Fu=null,ek=pe.S;pe.S=function(a,i){if(Qk=Hn(),typeof i=="object"&&i!==null&&typeof i.then=="function"){if(0>Bo&&0>Ca){Bo=En();var l=am(),d=rm();(l!==Us||d!==Gl)&&(Us=-1.1),zs=l,Gl=d}YG(a,i)}ek!==null&&ek(a,i)};var Ql=z(null),Za={recordUnsafeLifecycleWarnings:function(){},flushPendingUnsafeLifecycleWarnings:function(){},recordLegacyContextWarning:function(){},flushLegacyContextWarning:function(){},discardPendingWarnings:function(){}},Tm=[],_m=[],jm=[],Rm=[],Pm=[],Mm=[],Xl=new Set;Za.recordUnsafeLifecycleWarnings=function(a,i){Xl.has(a.type)||(typeof i.componentWillMount=="function"&&i.componentWillMount.__suppressDeprecationWarning!==!0&&Tm.push(a),a.mode&lr&&typeof i.UNSAFE_componentWillMount=="function"&&_m.push(a),typeof i.componentWillReceiveProps=="function"&&i.componentWillReceiveProps.__suppressDeprecationWarning!==!0&&jm.push(a),a.mode&lr&&typeof i.UNSAFE_componentWillReceiveProps=="function"&&Rm.push(a),typeof i.componentWillUpdate=="function"&&i.componentWillUpdate.__suppressDeprecationWarning!==!0&&Pm.push(a),a.mode&lr&&typeof i.UNSAFE_componentWillUpdate=="function"&&Mm.push(a))},Za.flushPendingUnsafeLifecycleWarnings=function(){var a=new Set;0<Tm.length&&(Tm.forEach(function(O){a.add(I(O)||"Component"),Xl.add(O.type)}),Tm=[]);var i=new Set;0<_m.length&&(_m.forEach(function(O){i.add(I(O)||"Component"),Xl.add(O.type)}),_m=[]);var l=new Set;0<jm.length&&(jm.forEach(function(O){l.add(I(O)||"Component"),Xl.add(O.type)}),jm=[]);var d=new Set;0<Rm.length&&(Rm.forEach(function(O){d.add(I(O)||"Component"),Xl.add(O.type)}),Rm=[]);var p=new Set;0<Pm.length&&(Pm.forEach(function(O){p.add(I(O)||"Component"),Xl.add(O.type)}),Pm=[]);var v=new Set;if(0<Mm.length&&(Mm.forEach(function(O){v.add(I(O)||"Component"),Xl.add(O.type)}),Mm=[]),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,tk=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."):!tk.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(I(p)||"Component"),tk.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(){Tm=[],_m=[],jm=[],Rm=[],Pm=[],Mm=[],Cv=new Map};var nk={react_stack_bottom_frame:function(a,i,l){var d=$i;$i=!0;try{return a(i,l)}finally{$i=d}}},xw=nk.react_stack_bottom_frame.bind(nk),rk={react_stack_bottom_frame:function(a){var i=$i;$i=!0;try{return a.render()}finally{$i=i}}},ak=rk.react_stack_bottom_frame.bind(rk),ik={react_stack_bottom_frame:function(a,i){try{i.componentDidMount()}catch(l){Rt(a,a.return,l)}}},Nw=ik.react_stack_bottom_frame.bind(ik),ok={react_stack_bottom_frame:function(a,i,l,d,p){try{i.componentDidUpdate(l,d,p)}catch(v){Rt(a,a.return,v)}}},sk=ok.react_stack_bottom_frame.bind(ok),lk={react_stack_bottom_frame:function(a,i){var l=i.stack;a.componentDidCatch(i.value,{componentStack:l!==null?l:""})}},jX=lk.react_stack_bottom_frame.bind(lk),ck={react_stack_bottom_frame:function(a,i,l){try{l.componentWillUnmount()}catch(d){Rt(a,i,d)}}},uk=ck.react_stack_bottom_frame.bind(ck),dk={react_stack_bottom_frame:function(a){var i=a.create;return a=a.inst,i=i(),a.destroy=i}},RX=dk.react_stack_bottom_frame.bind(dk),fk={react_stack_bottom_frame:function(a,i,l){try{l()}catch(d){Rt(a,i,d)}}},PX=fk.react_stack_bottom_frame.bind(fk),mk={react_stack_bottom_frame:function(a){var i=a._init;return i(a._payload)}},MX=mk.react_stack_bottom_frame.bind(mk),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`."),ww=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,km=!1,Gu=null,Im=0,lt=null,Ew,hk=Ew=!1,pk={},gk={},vk={};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=I(a),p=d||"null";if(!pk[p]){pk[p]=!0,l=l._owner,a=a._debugOwner;var v="";a&&typeof a.tag=="number"&&(p=I(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=I(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=cP(!0),bk=cP(!1),yk=0,xk=1,Nk=2,Sw=3,qs=!1,wk=!1,Aw=null,Ow=!1,Yu=z(null),jv=z(0),ia=z(null),Ta=null,Qu=1,Lm=2,vn=z(0),Rv=0,_a=1,Or=2,oa=4,Dr=8,Xu,Ek=new Set,Sk=new Set,Dw=new Set,Ak=new Set,zo=0,We=null,qt=null,Sn=null,Pv=!1,Wu=!1,Jl=!1,Mv=0,Vm=0,Uo=null,kX=0,IX=25,he=null,ja=null,qo=-1,$m=!1,Bm={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};Bm.useEffectEvent=fn;var Cw=null,Ok=null,Tw=null,Dk=null,Ki=null,Ja=null,kv=null;Cw={readContext:function(a){return tn(a)},use:Os,useCallback:function(a,i){return he="useCallback",ft(),mu(i),A1(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),S1(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),E1(a,i)},useMemo:function(a,i){he="useMemo",ft(),mu(i);var l=pe.H;pe.H=Ki;try{return O1(a,i)}finally{pe.H=l}},useReducer:function(a,i,l){he="useReducer",ft();var d=pe.H;pe.H=Ki;try{return h1(a,i,l)}finally{pe.H=d}},useRef:function(a){return he="useRef",ft(),N1(a)},useState:function(a){he="useState",ft();var i=pe.H;pe.H=Ki;try{return b1(a)}finally{pe.H=i}},useDebugValue:function(){he="useDebugValue",ft()},useDeferredValue:function(a,i){return he="useDeferredValue",ft(),D1(a,i)},useTransition:function(){return he="useTransition",ft(),_1()},useSyncExternalStore:function(a,i,l){return he="useSyncExternalStore",ft(),g1(a,i,l)},useId:function(){return he="useId",ft(),j1()},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(),y1(a)},useHostTransitionStatus:Ll,useMemoCache:kl,useCacheRefresh:function(){return he="useCacheRefresh",ft(),R1()},useEffectEvent:function(a){return he="useEffectEvent",ft(),w1(a)}},Ok={readContext:function(a){return tn(a)},use:Os,useCallback:function(a,i){return he="useCallback",Ae(),A1(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(),S1(a,i,l)},useInsertionEffect:function(a,i){he="useInsertionEffect",Ae(),Il(4,Or,a,i)},useLayoutEffect:function(a,i){return he="useLayoutEffect",Ae(),E1(a,i)},useMemo:function(a,i){he="useMemo",Ae();var l=pe.H;pe.H=Ki;try{return O1(a,i)}finally{pe.H=l}},useReducer:function(a,i,l){he="useReducer",Ae();var d=pe.H;pe.H=Ki;try{return h1(a,i,l)}finally{pe.H=d}},useRef:function(a){return he="useRef",Ae(),N1(a)},useState:function(a){he="useState",Ae();var i=pe.H;pe.H=Ki;try{return b1(a)}finally{pe.H=i}},useDebugValue:function(){he="useDebugValue",Ae()},useDeferredValue:function(a,i){return he="useDeferredValue",Ae(),D1(a,i)},useTransition:function(){return he="useTransition",Ae(),_1()},useSyncExternalStore:function(a,i,l){return he="useSyncExternalStore",Ae(),g1(a,i,l)},useId:function(){return he="useId",Ae(),j1()},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(),y1(a)},useHostTransitionStatus:Ll,useMemoCache:kl,useCacheRefresh:function(){return he="useCacheRefresh",Ae(),R1()},useEffectEvent:function(a){return he="useEffectEvent",Ae(),w1(a)}},Tw={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(),jP(a,i)},useTransition:function(){return he="useTransition",Ae(),LP()},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(),NP(a,i)},useHostTransitionStatus:Ll,useMemoCache:kl,useCacheRefresh:function(){return he="useCacheRefresh",Ae(),kt().memoizedState},useEffectEvent:function(a){return he="useEffectEvent",Ae(),Tg(a)}},Dk={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 Ff(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 Ff(Ya)}finally{pe.H=a}},useDebugValue:function(){he="useDebugValue",Ae()},useDeferredValue:function(a,i){return he="useDeferredValue",Ae(),RP(a,i)},useTransition:function(){return he="useTransition",Ae(),VP()},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(),EP(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(),A1(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(),S1(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(),E1(a,i)},useMemo:function(a,i){he="useMemo",u(),ft();var l=pe.H;pe.H=Ki;try{return O1(a,i)}finally{pe.H=l}},useReducer:function(a,i,l){he="useReducer",u(),ft();var d=pe.H;pe.H=Ki;try{return h1(a,i,l)}finally{pe.H=d}},useRef:function(a){return he="useRef",u(),ft(),N1(a)},useState:function(a){he="useState",u(),ft();var i=pe.H;pe.H=Ki;try{return b1(a)}finally{pe.H=i}},useDebugValue:function(){he="useDebugValue",u(),ft()},useDeferredValue:function(a,i){return he="useDeferredValue",u(),ft(),D1(a,i)},useTransition:function(){return he="useTransition",u(),ft(),_1()},useSyncExternalStore:function(a,i,l){return he="useSyncExternalStore",u(),ft(),g1(a,i,l)},useId:function(){return he="useId",u(),ft(),j1()},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(),y1(a)},useMemoCache:function(a){return u(),kl(a)},useHostTransitionStatus:Ll,useCacheRefresh:function(){return he="useCacheRefresh",ft(),R1()},useEffectEvent:function(a){return he="useEffectEvent",u(),ft(),w1(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(),jP(a,i)},useTransition:function(){return he="useTransition",u(),Ae(),LP()},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(),NP(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 Ff(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 Ff(Ya)}finally{pe.H=a}},useDebugValue:function(){he="useDebugValue",u(),Ae()},useDeferredValue:function(a,i){return he="useDeferredValue",u(),Ae(),RP(a,i)},useTransition:function(){return he="useTransition",u(),Ae(),VP()},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(),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)}};var Ck={},Tk=new Set,_k=new Set,jk=new Set,Rk=new Set,Pk=new Set,Mk=new Set,kk=new Set,Ik=new Set,Lk=new Set,Vk=new Set;Object.freeze(Ck);var _w={enqueueSetState:function(a,i,l){a=a._reactInternals;var d=ea(a),p=ws(d);p.payload=i,l!=null&&(M1(l),p.callback=l),i=Es(a,p,d),i!==null&&(Si(d,"this.setState()",a),cn(i,a,d),zf(i,a,d))},enqueueReplaceState:function(a,i,l){a=a._reactInternals;var d=ea(a),p=ws(d);p.tag=xk,p.payload=i,l!=null&&(M1(l),p.callback=l),i=Es(a,p,d),i!==null&&(Si(d,"this.replaceState()",a),cn(i,a,d),zf(i,a,d))},enqueueForceUpdate:function(a,i){a=a._reactInternals;var l=ea(a),d=ws(l);d.tag=Nk,i!=null&&(M1(i),d.callback=i),i=Es(a,d,l),i!==null&&(Si(l,"this.forceUpdate()",a),cn(i,a,l),zf(i,a,l))}},Zu=null,jw=null,Rw=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,$k={},Bk={},zk={},Uk={},Ju=!1,qk={},Iv={},Pw={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null},Hk=!1,Fk=null;Fk=new Set;var Ho=!1,On=!1,Mw=!1,Kk=typeof WeakSet=="function"?WeakSet:Set,Kn=null,ed=null,td=null,Dn=null,zr=!1,ei=null,Pn=!1,zm=8192,LX={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 Um=Symbol.for;Um("selector.component"),Um("selector.has_pseudo_class"),Um("selector.role"),Um("selector.test_id"),Um("selector.text")}var VX=[],$X=typeof WeakMap=="function"?WeakMap:Map,Gn=0,Mn=2,sa=4,Fo=0,qm=1,ec=2,Lv=3,Hs=4,Vv=6,Gk=5,Et=Gn,Ht=null,dt=null,ct=0,Ur=0,$v=1,tc=2,Hm=3,Yk=4,kw=5,Fm=6,Bv=7,Iw=8,nc=9,It=Ur,la=null,Fs=!1,nd=!1,Lw=!1,Gi=0,sn=Fo,Ks=0,Gs=0,Vw=0,qr=0,rc=0,Km=null,Cr=null,zv=!1,Uv=0,Qk=0,Xk=300,qv=1/0,Wk=500,Gm=null,mn=null,Ys=null,Hv=0,$w=1,Bw=2,Zk=3,Qs=0,Jk=1,eI=2,tI=3,nI=4,Fv=5,Cn=0,Xs=null,rd=null,ti=0,zw=0,Uw=-0,qw=null,rI=null,aI=null,ni=Hv,iI=null,BX=50,Ym=0,Hw=null,Fw=!1,Kv=!1,zX=50,ac=0,Qm=null,ad=!1,Gv=null,oI=!1,sI=new Set,UX={},Yv=null,id=null,Kw=!1,Gw=!1,Qv=!1,Yw=!1,Ws=0,Qw={};(function(){for(var a=0;a<ow.length;a++){var i=ow[a],l=i.toLowerCase();i=i[0].toUpperCase()+i.slice(1),Ka(l,"on"+i)}Ka(L5,"onAnimationEnd"),Ka(V5,"onAnimationIteration"),Ka($5,"onAnimationStart"),Ka("dblclick","onDoubleClick"),Ka("focusin","onFocus"),Ka("focusout","onBlur"),Ka(vX,"onTransitionRun"),Ka(bX,"onTransitionStart"),Ka(yX,"onTransitionCancel"),Ka(B5,"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 Xm="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(" "),Xw=new Set("beforetoggle cancel close invalid load scroll scrollend toggle".split(" ").concat(Xm)),Xv="_reactListening"+Math.random().toString(36).slice(2),lI=!1,cI=!1,Wv=!1,uI=!1,Zv=!1,Jv=!1,dI=!1,eb={},qX=/\r\n?/g,HX=/\u0000|\uFFFD/g,ic="http://www.w3.org/1999/xlink",Ww="http://www.w3.org/XML/1998/namespace",FX="javascript:throw new Error('React form unexpectedly submitted.')",KX="suppressHydrationWarning",oc="&",tb="/&",Wm="$",Zm="/$",Zs="$?",sc="$~",od="$!",GX="html",YX="body",QX="head",Zw="F!",fI="F",mI="loading",XX="style",Ko=0,sd=1,nb=2,Jw=null,eE=null,hI={dialog:!0,webview:!0},tE=null,Jm=void 0,pI=typeof setTimeout=="function"?setTimeout:void 0,WX=typeof clearTimeout=="function"?clearTimeout:void 0,lc=-1,gI=typeof Promise=="function"?Promise:void 0,ZX=typeof queueMicrotask=="function"?queueMicrotask:typeof gI<"u"?function(a){return gI.resolve(null).then(a).catch(MY)}:pI,nE=null,cc=0,eh=1,vI=2,bI=3,Ra=4,Pa=new Map,yI=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"?IP(i):Go.r(a)},D:function(a){Go.D(a),T3("dns-prefetch",a,null)},C:function(a,i){Go.C(a,i),T3("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(om(v))||i==="script"&&d.querySelector(sm(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(sm(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(sm(p)),v||(a=mt({src:a,async:!0},i),(i=Pa.get(p))&&SN(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(om(v)))O.loading=eh|Ra;else{a=mt({rel:"stylesheet",href:a,"data-precedence":i},l),(l=Pa.get(v))&&EN(a,l);var k=E=d.createElement("link");Se(k),er(k,"link",a),k._p=new Promise(function(V,oe){k.onload=V,k.onerror=oe}),k.addEventListener("load",function(){O.loading|=eh}),k.addEventListener("error",function(){O.loading|=vI}),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(sm(p)),v||(a=mt({src:a,async:!0,type:"module"},i),(i=Pa.get(p))&&SN(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,JX=6e4,eW=800,tW=500,rE=0,aE=null,ab=null,uc=pQ,th={$$typeof:Vi,Provider:null,Consumer:null,_currentValue:uc,_currentValue2:uc,_threadCount:0},xI="%c%s%c",NI="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",wI="",ib=" ",nW=Function.prototype.bind,EI=!1,SI=null,AI=null,OI=null,DI=null,CI=null,TI=null,_I=null,jI=null,RI=null,PI=null;SI=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))},AI=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))},OI=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))},DI=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)},CI=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)},TI=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)},_I=function(a){var i=or(a,2);i!==null&&cn(i,a,2)},jI=function(a){var i=Yr(),l=or(a,i);l!==null&&cn(l,a,i)},RI=function(a){c=a},PI=function(a){s=a};var ob=!0,sb=null,iE=!1,Js=null,el=null,tl=null,nh=new Map,rh=new Map,nl=[],rW="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=_N.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);AN(d,p,l,i,null,null)},nv.prototype.unmount=_N.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))!==Gn&&console.error("Attempted to synchronously unmount a root while React was already rendering. React cannot finish unmounting the root until the current render has completed, which may lead to a race condition."),AN(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&&q3(a)}},(function(){var a=jN.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=SI,a.overrideHookStateDeletePath=AI,a.overrideHookStateRenamePath=OI,a.overrideProps=DI,a.overridePropsDeletePath=CI,a.overridePropsRenamePath=TI,a.scheduleUpdate=_I,a.scheduleRetry=jI,a.setErrorHandler=RI,a.setSuspenseHandler=PI,a.scheduleRefresh=S,a.scheduleRoot=x,a.setRefreshHandler=N,a.getCurrentFiber=oQ,xn(a)})()&&qi&&window.top===window.self&&(-1<navigator.userAgent.indexOf("Chrome")&&navigator.userAgent.indexOf("Edge")===-1||-1<navigator.userAgent.indexOf("Firefox"))){var MI=window.location.protocol;/^(https?|file):$/.test(MI)&&console.info("%cDownload the React DevTools for a better development experience: https://react.dev/link/react-devtools"+(MI==="file:"?`
|
||
You might need to use a local HTTP server (instead of file://): https://react.dev/link/react-devtools-faq`:""),"font-weight:bold")}sh.createRoot=function(a,i){if(!w(a))throw Error("Target container is not a DOM element.");G3(a);var l=!1,d="",p=HP,v=FP,E=KP;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=I3(a,1,!1,null,null,l,d,null,p,v,E,K3),a[Ps]=i.current,dN(a),new _N(i)},sh.hydrateRoot=function(a,i,l){if(!w(a))throw Error("Target container is not a DOM element.");G3(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=HP,E=FP,O=KP,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=I3(a,1,!0,i,l??null,d,p,k,v,E,O,K3),i.context=L3(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,dN(a),new nv(i)},sh.version="19.2.1",typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error())})(),sh}var TL;function _ee(){return TL||(TL=1,bE.exports=Tee()),bE.exports}var jee=_ee(),Ree=(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})(),T9=(function(){function e(t){this.generateIdentifier=t,this.kv=new Ree}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})(),Pee=(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)}})(),Mee=(function(e){Pee(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})(T9),kee=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 Iee(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 Lee(e,t){var n=Iee(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=kee(n,2),o=r[0],s=r[1];return t(s,o)})}function qb(e,t){return e.indexOf(t)!==-1}function _L(e,t){for(var n=0;n<e.length;n++){var r=e[n];if(t(r))return r}}var Vee=(function(){function e(){this.transfomers={}}return e.prototype.register=function(t){this.transfomers[t.name]=t},e.prototype.findApplicable=function(t){return Lee(this.transfomers,function(n){return n.isApplicable(t)})},e.prototype.findByName=function(t){return this.transfomers[t]},e})(),$ee=function(e){return Object.prototype.toString.call(e).slice(8,-1)},_9=function(e){return typeof e>"u"},Bee=function(e){return e===null},$h=function(e){return typeof e!="object"||e===null||e===Object.prototype?!1:Object.getPrototypeOf(e)===null?!0:Object.getPrototypeOf(e)===Object.prototype},lC=function(e){return $h(e)&&Object.keys(e).length===0},pl=function(e){return Array.isArray(e)},zee=function(e){return typeof e=="string"},Uee=function(e){return typeof e=="number"&&!isNaN(e)},qee=function(e){return typeof e=="boolean"},Hee=function(e){return e instanceof RegExp},Bh=function(e){return e instanceof Map},zh=function(e){return e instanceof Set},j9=function(e){return $ee(e)==="Symbol"},Fee=function(e){return e instanceof Date&&!isNaN(e.valueOf())},Kee=function(e){return e instanceof Error},jL=function(e){return typeof e=="number"&&isNaN(e)},Gee=function(e){return qee(e)||Bee(e)||_9(e)||Uee(e)||zee(e)||j9(e)},Yee=function(e){return typeof e=="bigint"},Qee=function(e){return e===1/0||e===-1/0},Xee=function(e){return ArrayBuffer.isView(e)&&!(e instanceof DataView)},Wee=function(e){return e instanceof URL},R9=function(e){return e.replace(/\./g,"\\.")},wE=function(e){return e.map(String).map(R9).join(".")},Dh=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},cC=function(){return cC=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},cC.apply(this,arguments)},uC=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},dC=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 P9=[Yi(_9,"undefined",function(){return null},function(){}),Yi(Yee,"bigint",function(e){return e.toString()},function(e){return typeof BigInt<"u"?BigInt(e):(console.error("Please add a BigInt polyfill."),e)}),Yi(Fee,"Date",function(e){return e.toISOString()},function(e){return new Date(e)}),Yi(Kee,"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(Hee,"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(zh,"set",function(e){return dC([],uC(e.values()))},function(e){return new Set(e)}),Yi(Bh,"map",function(e){return dC([],uC(e.entries()))},function(e){return new Map(e)}),Yi(function(e){return jL(e)||Qee(e)},"number",function(e){return jL(e)?"NaN":e>0?"Infinity":"-Infinity"},Number),Yi(function(e){return e===0&&1/e===-1/0},"number",function(){return"-0"},Number),Yi(Wee,"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 M9=xx(function(e,t){if(j9(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}),Zee=[Int8Array,Uint8Array,Int16Array,Uint16Array,Int32Array,Uint32Array,Float32Array,Float64Array,Uint8ClampedArray].reduce(function(e,t){return e[t.name]=t,e},{}),k9=xx(Xee,function(e){return["typed-array",e.constructor.name]},function(e){return dC([],uC(e))},function(e,t){var n=Zee[t[1]];if(!n)throw new Error("Trying to deserialize unknown typed array");return new n(e)});function I9(e,t){if(e?.constructor){var n=!!t.classRegistry.getIdentifier(e.constructor);return n}return!1}var L9=xx(I9,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 cC({},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)}),V9=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)}),Jee=[L9,M9,V9,k9],RL=function(e,t){var n=_L(Jee,function(o){return o.isApplicable(e,t)});if(n)return{value:n.transform(e,t),type:n.annotation(e,t)};var r=_L(P9,function(o){return o.isApplicable(e,t)});if(r)return{value:r.transform(e,t),type:r.annotation}},$9={};P9.forEach(function(e){$9[e.annotation]=e});var ete=function(e,t,n){if(pl(t))switch(t[0]){case"symbol":return M9.untransform(e,t,n);case"class":return L9.untransform(e,t,n);case"custom":return V9.untransform(e,t,n);case"typed-array":return k9.untransform(e,t,n);default:throw new Error("Unknown transformation: "+t)}else{var r=$9[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 B9(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 tte=function(e,t){B9(t);for(var n=0;n<t.length;n++){var r=t[n];if(zh(e))e=xd(e,+r);else if(Bh(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},fC=function(e,t,n){if(B9(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($h(r))r=r[s];else if(zh(r)){var u=+s;r=xd(r,u)}else if(Bh(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]):$h(r)&&(r[h]=n(r[h])),zh(r)){var y=xd(r,+h),x=n(y);y!==x&&(r.delete(y),r.add(x))}if(Bh(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 mC(e,t,n){if(n===void 0&&(n=[]),!!e){if(!pl(e)){Pd(e,function(c,u){return mC(c,t,cl(cl([],Zo(n)),Zo(Dh(u))))});return}var r=Zo(e,2),o=r[0],s=r[1];s&&Pd(s,function(c,u){mC(c,t,cl(cl([],Zo(n)),Zo(Dh(u))))}),t(o,n)}}function nte(e,t,n){return mC(t,function(r,o){e=fC(e,o,function(s){return ete(s,r,n)})}),e}function rte(e,t){function n(c,u){var f=tte(e,Dh(u));c.map(Dh).forEach(function(m){e=fC(e,m,function(){return f})})}if(pl(t)){var r=Zo(t,2),o=r[0],s=r[1];o.forEach(function(c){e=fC(e,Dh(c),function(){return e})}),s&&Pd(s,n)}else Pd(t,n);return e}var ate=function(e,t){return $h(e)||pl(e)||Bh(e)||zh(e)||I9(e,t)};function ite(e,t,n){var r=n.get(e);r?r.push(t):n.set(e,[t])}function ote(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(wE):n[wE(c)]=u.map(wE)}}),r?lC(n)?[r]:[r,n]:lC(n)?void 0:n}var z9=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=Gee(e);if(!f){ite(e,o,t);var m=c.get(e);if(m)return r?{transformedValue:null}:m}if(!ate(e,n)){var g=RL(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=RL(e,n),x=(u=y?.value)!==null&&u!==void 0?u:e,S=pl(x)?[]:{},N={};Pd(x,function(D,C){var j=z9(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:$h(j.annotations)&&Pd(j.annotations,function(P,A){N[R9(C)+"."+A]=P})});var w=lC(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 U9(e){return Object.prototype.toString.call(e).slice(8,-1)}function PL(e){return U9(e)==="Array"}function ste(e){if(U9(e)!=="Object")return!1;const t=Object.getPrototypeOf(e);return!!t&&t.constructor===Object&&t===Object.prototype}function lte(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 hC(e,t={}){if(PL(e))return e.map(o=>hC(o,t));if(!ste(e))return e;const n=Object.getOwnPropertyNames(e),r=Object.getOwnPropertySymbols(e);return[...n,...r].reduce((o,s)=>{if(PL(t.props)&&!t.props.includes(s))return o;const c=e[s],u=hC(c,t);return lte(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)},cte=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},ute=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 Mee,this.symbolRegistry=new T9(function(s){var c;return(c=s.description)!==null&&c!==void 0?c:""}),this.customTransformerRegistry=new Vee,this.allowedErrorProps=[],this.dedupe=o}return e.prototype.serialize=function(t){var n=new Map,r=z9(t,n,this,this.dedupe),o={json:r.transformedValue};r.annotations&&(o.meta=yc(yc({},o.meta),{values:r.annotations}));var s=ote(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=hC(n);return r?.values&&(o=nte(o,r.values,this)),r?.referentialEqualities&&(o=rte(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,ute([],cte(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 dte=(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{}},fte=_.createContext(void 0),mte={setTheme:e=>{},themes:[]},hte=()=>{var e;return(e=_.useContext(fte))!=null?e:mte};_.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:`(${dte.toString()})(${g})`}})});var Pp=C9();const q9=Bt(Pp);function pte(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 gte=e=>{switch(e){case"success":return yte;case"info":return Nte;case"warning":return xte;case"error":return wte;default:return null}},vte=Array(12).fill(0),bte=({visible:e,className:t})=>F.createElement("div",{className:["sonner-loading-wrapper",t].filter(Boolean).join(" "),"data-visible":e},F.createElement("div",{className:"sonner-spinner"},vte.map((n,r)=>F.createElement("div",{className:"sonner-loading-bar",key:`spinner-bar-${r}`})))),yte=F.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",height:"20",width:"20"},F.createElement("path",{fillRule:"evenodd",d:"M10 18a8 8 0 100-16 8 8 0 000 16zm3.857-9.809a.75.75 0 00-1.214-.882l-3.483 4.79-1.88-1.88a.75.75 0 10-1.06 1.061l2.5 2.5a.75.75 0 001.137-.089l4-5.5z",clipRule:"evenodd"})),xte=F.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",height:"20",width:"20"},F.createElement("path",{fillRule:"evenodd",d:"M9.401 3.003c1.155-2 4.043-2 5.197 0l7.355 12.748c1.154 2-.29 4.5-2.599 4.5H4.645c-2.309 0-3.752-2.5-2.598-4.5L9.4 3.003zM12 8.25a.75.75 0 01.75.75v3.75a.75.75 0 01-1.5 0V9a.75.75 0 01.75-.75zm0 8.25a.75.75 0 100-1.5.75.75 0 000 1.5z",clipRule:"evenodd"})),Nte=F.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",height:"20",width:"20"},F.createElement("path",{fillRule:"evenodd",d:"M18 10a8 8 0 11-16 0 8 8 0 0116 0zm-7-4a1 1 0 11-2 0 1 1 0 012 0zM9 9a.75.75 0 000 1.5h.253a.25.25 0 01.244.304l-.459 2.066A1.75 1.75 0 0010.747 15H11a.75.75 0 000-1.5h-.253a.25.25 0 01-.244-.304l.459-2.066A1.75 1.75 0 009.253 9H9z",clipRule:"evenodd"})),wte=F.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",height:"20",width:"20"},F.createElement("path",{fillRule:"evenodd",d:"M18 10a8 8 0 11-16 0 8 8 0 0116 0zm-8-5a.75.75 0 01.75.75v4.5a.75.75 0 01-1.5 0v-4.5A.75.75 0 0110 5zm0 10a1 1 0 100-2 1 1 0 000 2z",clipRule:"evenodd"})),Ete=F.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:"12",height:"12",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"},F.createElement("line",{x1:"18",y1:"6",x2:"6",y2:"18"}),F.createElement("line",{x1:"6",y1:"6",x2:"18",y2:"18"})),Ste=()=>{const[e,t]=F.useState(document.hidden);return F.useEffect(()=>{const n=()=>{t(document.hidden)};return document.addEventListener("visibilitychange",n),()=>window.removeEventListener("visibilitychange",n)},[]),e};let pC=1;class Ate{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:pC++,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],F.isValidElement(m))s=!1,this.create({id:r,type:"default",message:m});else if(Dte(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"&&!F.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"&&!F.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"&&!F.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"&&!F.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||pC++;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 Ate,Ote=(e,t)=>{const n=t?.id||pC++;return Hr.addToast({title:e,...t,id:n}),n},Dte=e=>e&&typeof e=="object"&&"ok"in e&&typeof e.ok=="boolean"&&"status"in e&&typeof e.status=="number",Cte=Ote,Tte=()=>Hr.toasts,_te=()=>Hr.getActiveToasts(),gt=Object.assign(Cte,{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:Tte,getToasts:_te});pte("[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 jte=3,Rte="24px",Pte="16px",ML=4e3,Mte=356,kte=14,Ite=45,Lte=200;function Qi(...e){return e.filter(Boolean).join(" ")}function Vte(e){const[t,n]=e.split("-"),r=[];return t&&r.push(t),n&&r.push(n),r}const $te=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:I="",descriptionClassName:z="",duration:H,position:G,gap:Y,expandByDefault:J,classNames:q,icons:U,closeButtonAriaLabel:K="Close toast"}=e,[te,ne]=F.useState(null),[L,Q]=F.useState(null),[W,ae]=F.useState(!1),[ge,we]=F.useState(!1),[ue,xe]=F.useState(!1),[me,ye]=F.useState(!1),[de,ie]=F.useState(!1),[ze,Ne]=F.useState(0),[ut,Ve]=F.useState(0),nt=F.useRef(h.duration||H||ML),zn=F.useRef(null),xn=F.useRef(null),Re=D===0,ir=D+1<=N,St=h.type,Un=h.dismissible!==!1,kr=h.className||"",vi=h.descriptionClassName||"",Yr=F.useMemo(()=>w.findIndex(Se=>Se.toastId===h.id)||0,[w,h.id]),bi=F.useMemo(()=>{var Se;return(Se=h.closeButton)!=null?Se:T},[h.closeButton,T]),Fa=F.useMemo(()=>h.duration||H||ML,[h.duration,H]),gs=F.useRef(0),ba=F.useRef(0),vs=F.useRef(0),Ir=F.useRef(null),[yi,bo]=G.split("-"),yo=F.useMemo(()=>w.reduce((Se,He,Be)=>Be>=Yr?Se:Se+He.height,0),[w,Yr]),xo=Ste(),xi=h.invert||g,B=St==="loading";ba.current=F.useMemo(()=>Yr*Y+yo,[Yr,yo]),F.useEffect(()=>{nt.current=Fa},[Fa]),F.useEffect(()=>{ae(!0)},[]),F.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]),F.useLayoutEffect(()=>{if(!W)return;const Se=xn.current,He=Se.style.height;Se.style.height="auto";const Be=Se.getBoundingClientRect().height;Se.style.height=He,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])},[W,h.title,h.description,S,h.id,h.jsx,h.action,h.cancel]);const ce=F.useCallback(()=>{we(!0),Ne(ba.current),S(Se=>Se.filter(He=>He.toastId!==h.id)),setTimeout(()=>{P(h)},Lte)},[h,P,S,ba]);F.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),ce()},nt.current))})(),()=>clearTimeout(Se)},[j,x,h,St,xo,ce]),F.useEffect(()=>{h.delete&&(ce(),h.onDismiss==null||h.onDismiss.call(h,h))},[ce,h.delete]);function Ee(){var Se;if(U?.loading){var He;return F.createElement("div",{className:Qi(q?.loader,h==null||(He=h.classNames)==null?void 0:He.loader,"sonner-loader"),"data-visible":St==="loading"},U.loading)}return F.createElement(bte,{className:Qi(q?.loader,h==null||(Se=h.classNames)==null?void 0:Se.loader),visible:St==="loading"})}const De=h.icon||U?.[St]||gte(St);var Me,Je;return F.createElement("li",{tabIndex:0,ref:xn,className:Qi(I,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":W,"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":ue,"data-dismissible":Un,"data-type":St,"data-invert":xi,"data-swipe-out":me,"data-swipe-direction":L,"data-expanded":!!(j||J&&W),"data-testid":h.testId,style:{"--index":D,"--toasts-before":D,"--z-index":C.length-D,"--offset":`${ge?ze:ba.current}px`,"--initial-height":J?"auto":`${ut}px`,...R,...h.style},onDragEnd:()=>{xe(!1),ne(null),Ir.current=null},onPointerDown:Se=>{Se.button!==2&&(B||!Un||(zn.current=new Date,Ne(ba.current),Se.target.setPointerCapture(Se.pointerId),Se.target.tagName!=="BUTTON"&&(xe(!0),Ir.current={x:Se.clientX,y:Se.clientY})))},onPointerUp:()=>{var Se,He,Be;if(me||!Un)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=zn.current)==null?void 0:Be.getTime()),jn=te==="x"?zt:yr,No=Math.abs(jn)/dn;if(Math.abs(jn)>=Ite||No>.11){Ne(ba.current),h.onDismiss==null||h.onDismiss.call(h,h),Q(te==="x"?zt>0?"right":"left":yr>0?"down":"up"),ce(),ye(!0);return}else{var gn,an;(gn=xn.current)==null||gn.style.setProperty("--swipe-amount-x","0px"),(an=xn.current)==null||an.style.setProperty("--swipe-amount-y","0px")}ie(!1),xe(!1),ne(null)},onPointerMove:Se=>{var He,Be,zt;if(!Ir.current||!Un||((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:Vte(G);!te&&(Math.abs(jn)>1||Math.abs(dn)>1)&&ne(Math.abs(jn)>Math.abs(dn)?"x":"y");let an={x:0,y:0};const Cf=wo=>1/(1.5+Math.abs(wo)/20);if(te==="y"){if(gn.includes("top")||gn.includes("bottom"))if(gn.includes("top")&&dn<0||gn.includes("bottom")&&dn>0)an.y=dn;else{const wo=dn*Cf(dn);an.y=Math.abs(wo)<Math.abs(dn)?wo:dn}}else if(te==="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*Cf(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"?F.createElement("button",{"aria-label":K,"data-disabled":B,"data-close-button":!0,onClick:B||!Un?()=>{}:()=>{ce(),h.onDismiss==null||h.onDismiss.call(h,h)},className:Qi(q?.closeButton,h==null||(r=h.classNames)==null?void 0:r.closeButton)},(Je=U?.close)!=null?Je:Ete):null,(St||h.icon||h.promise)&&h.icon!==null&&(U?.[St]!==null||h.icon)?F.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,F.createElement("div",{"data-content":"",className:Qi(q?.content,h==null||(s=h.classNames)==null?void 0:s.content)},F.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?F.createElement("div",{"data-description":"",className:Qi(z,vi,q?.description,h==null||(u=h.classNames)==null?void 0:u.description)},typeof h.description=="function"?h.description():h.description):null),F.isValidElement(h.cancel)?h.cancel:h.cancel&&gb(h.cancel)?F.createElement("button",{"data-button":!0,"data-cancel":!0,style:h.cancelButtonStyle||M,onClick:Se=>{gb(h.cancel)&&Un&&(h.cancel.onClick==null||h.cancel.onClick.call(h.cancel,Se),ce())},className:Qi(q?.cancelButton,h==null||(f=h.classNames)==null?void 0:f.cancelButton)},h.cancel.label):null,F.isValidElement(h.action)?h.action:h.action&&gb(h.action)?F.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&&ce())},className:Qi(q?.actionButton,h==null||(m=h.classNames)==null?void 0:m.actionButton)},h.action.label):null)};function kL(){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 Bte(e,t){const n={};return[e,t].forEach((r,o)=>{const s=o===1,c=s?"--mobile-offset":"--offset",u=s?Pte:Rte;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 zte=F.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=jte,toastOptions:D,dir:C=kL(),gap:j=kte,icons:P,containerAriaLabel:A="Notifications"}=t,[T,R]=F.useState([]),M=F.useMemo(()=>r?T.filter(W=>W.toasterId===r):T.filter(W=>!W.toasterId),[T,r]),$=F.useMemo(()=>Array.from(new Set([s].concat(M.filter(W=>W.position).map(W=>W.position)))),[M,s]),[I,z]=F.useState([]),[H,G]=F.useState(!1),[Y,J]=F.useState(!1),[q,U]=F.useState(y!=="system"?y:typeof window<"u"&&window.matchMedia&&window.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light"),K=F.useRef(null),te=c.join("+").replace(/Key/g,"").replace(/Digit/g,""),ne=F.useRef(null),L=F.useRef(!1),Q=F.useCallback(W=>{R(ae=>{var ge;return(ge=ae.find(we=>we.id===W.id))!=null&&ge.delete||Hr.dismiss(W.id),ae.filter(({id:we})=>we!==W.id)})},[]);return F.useEffect(()=>Hr.subscribe(W=>{if(W.dismiss){requestAnimationFrame(()=>{R(ae=>ae.map(ge=>ge.id===W.id?{...ge,delete:!0}:ge))});return}setTimeout(()=>{q9.flushSync(()=>{R(ae=>{const ge=ae.findIndex(we=>we.id===W.id);return ge!==-1?[...ae.slice(0,ge),{...ae[ge],...W},...ae.slice(ge+1)]:[W,...ae]})})})}),[T]),F.useEffect(()=>{if(y!=="system"){U(y);return}if(y==="system"&&(window.matchMedia&&window.matchMedia("(prefers-color-scheme: dark)").matches?U("dark"):U("light")),typeof window>"u")return;const W=window.matchMedia("(prefers-color-scheme: dark)");try{W.addEventListener("change",({matches:ae})=>{U(ae?"dark":"light")})}catch{W.addListener(({matches:ge})=>{try{U(ge?"dark":"light")}catch(we){console.error(we)}})}},[y]),F.useEffect(()=>{T.length<=1&&G(!1)},[T]),F.useEffect(()=>{const W=ae=>{var ge;if(c.every(xe=>ae[xe]||ae.code===xe)){var ue;G(!0),(ue=K.current)==null||ue.focus()}ae.code==="Escape"&&(document.activeElement===K.current||(ge=K.current)!=null&&ge.contains(document.activeElement))&&G(!1)};return document.addEventListener("keydown",W),()=>document.removeEventListener("keydown",W)},[c]),F.useEffect(()=>{if(K.current)return()=>{ne.current&&(ne.current.focus({preventScroll:!0}),ne.current=null,L.current=!1)}},[K.current]),F.createElement("section",{ref:n,"aria-label":`${A} ${te}`,tabIndex:-1,"aria-live":"polite","aria-relevant":"additions text","aria-atomic":"false",suppressHydrationWarning:!0},$.map((W,ae)=>{var ge;const[we,ue]=W.split("-");return M.length?F.createElement("ol",{key:W,dir:C==="auto"?kL():C,tabIndex:-1,ref:K,className:m,"data-sonner-toaster":!0,"data-sonner-theme":q,"data-y-position":we,"data-x-position":ue,style:{"--front-toast-height":`${((ge=I[0])==null?void 0:ge.height)||0}px`,"--width":`${Mte}px`,"--gap":`${j}px`,...N,...Bte(g,h)},onBlur:xe=>{L.current&&!xe.currentTarget.contains(xe.relatedTarget)&&(L.current=!1,ne.current&&(ne.current.focus({preventScroll:!0}),ne.current=null))},onFocus:xe=>{xe.target instanceof HTMLElement&&xe.target.dataset.dismissible==="false"||L.current||(L.current=!0,ne.current=xe.relatedTarget)},onMouseEnter:()=>G(!0),onMouseMove:()=>G(!0),onMouseLeave:()=>{Y||G(!1)},onDragEnd:()=>G(!1),onPointerDown:xe=>{xe.target instanceof HTMLElement&&xe.target.dataset.dismissible==="false"||J(!0)},onPointerUp:()=>J(!1)},M.filter(xe=>!xe.position&&ae===0||xe.position===W).map((xe,me)=>{var ye,de;return F.createElement($te,{key:xe.id,icons:P,index:me,toast:xe,defaultRichColors:x,duration:(ye=D?.duration)!=null?ye:S,className:D?.className,descriptionClassName:D?.descriptionClassName,invert:o,visibleToasts:w,closeButton:(de=D?.closeButton)!=null?de:f,interacting:Y,position:W,style:D?.style,unstyled:D?.unstyled,classNames:D?.classNames,cancelButtonStyle:D?.cancelButtonStyle,actionButtonStyle:D?.actionButtonStyle,closeButtonAriaLabel:D?.closeButtonAriaLabel,removeToast:Q,toasts:M.filter(ie=>ie.position==xe.position),heights:I.filter(ie=>ie.position==xe.position),setHeights:z,expandByDefault:u,gap:j,expanded:H,swipeDirections:t.swipeDirections})})):null}))}),Ute=({...e})=>{const{theme:t="system"}=hte();return b.jsxDEV(zte,{"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 IL(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=IL(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():IL(e[o],null)}}}}function Mt(...e){return _.useCallback(Nx(...e),e)}function qte(e,t){const n=_.createContext(t),r=s=>{const{children:c,...u}=s,f=_.useMemo(()=>u,Object.values(u));return le.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 le.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,Hte(o,...t)]}function Hte(...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=Fte(e),n=_.forwardRef((r,o)=>{const{children:s,...c}=r,u=_.Children.toArray(s),f=u.find(Gte);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 le.jsx(t,{...c,ref:o,children:_.isValidElement(m)?_.cloneElement(m,void 0,g):null})}return le.jsx(t,{...c,ref:o,children:s})});return n.displayName=`${e}.Slot`,n}var H9=Pc("Slot");function Fte(e){const t=_.forwardRef((n,r)=>{const{children:o,...s}=n;if(_.isValidElement(o)){const c=Qte(o),u=Yte(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 F9=Symbol("radix.slottable");function Kte(e){const t=({children:n})=>le.jsx(le.Fragment,{children:n});return t.displayName=`${e}.Slottable`,t.__radixId=F9,t}function Gte(e){return _.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===F9}function Yte(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 Qte(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 Xte=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],vt=Xte.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),le.jsx(f,{...u,ref:s})});return r.displayName=`Primitive.${t}`,{...e,[t]:r}},{});function K9(e,t){e&&Pp.flushSync(()=>e.dispatchEvent(t))}function lo(e){const t=_.useRef(e);return _.useEffect(()=>{t.current=e}),_.useMemo(()=>(...n)=>t.current?.(...n),[])}function Wte(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 Zte="DismissableLayer",gC="dismissableLayer.update",Jte="dismissableLayer.pointerDownOutside",ene="dismissableLayer.focusOutside",LL,G9=_.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),Mp=_.forwardRef((e,t)=>{const{disableOutsidePointerEvents:n=!1,onEscapeKeyDown:r,onPointerDownOutside:o,onFocusOutside:s,onInteractOutside:c,onDismiss:u,...f}=e,m=_.useContext(G9),[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=rne(R=>{const M=R.target,$=[...m.branches].some(I=>I.contains(M));!P||$||(o?.(R),c?.(R),R.defaultPrevented||u?.())},y),T=ane(R=>{const M=R.target;[...m.branches].some(I=>I.contains(M))||(s?.(R),c?.(R),R.defaultPrevented||u?.())},y);return Wte(R=>{C===m.layers.size-1&&(r?.(R),!R.defaultPrevented&&u&&(R.preventDefault(),u()))},y),_.useEffect(()=>{if(g)return n&&(m.layersWithOutsidePointerEventsDisabled.size===0&&(LL=y.body.style.pointerEvents,y.body.style.pointerEvents="none"),m.layersWithOutsidePointerEventsDisabled.add(g)),m.layers.add(g),VL(),()=>{n&&m.layersWithOutsidePointerEventsDisabled.size===1&&(y.body.style.pointerEvents=LL)}},[g,y,n,m]),_.useEffect(()=>()=>{g&&(m.layers.delete(g),m.layersWithOutsidePointerEventsDisabled.delete(g),VL())},[g,m]),_.useEffect(()=>{const R=()=>x({});return document.addEventListener(gC,R),()=>document.removeEventListener(gC,R)},[]),le.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)})});Mp.displayName=Zte;var tne="DismissableLayerBranch",nne=_.forwardRef((e,t)=>{const n=_.useContext(G9),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]),le.jsx(vt.div,{...e,ref:o})});nne.displayName=tne;function rne(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(){Y9(Jte,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 ane(e,t=globalThis?.document){const n=lo(e),r=_.useRef(!1);return _.useEffect(()=>{const o=s=>{s.target&&!r.current&&Y9(ene,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 VL(){const e=new CustomEvent(gC);document.dispatchEvent(e)}function Y9(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?K9(o,s):o.dispatchEvent(s)}var vr=globalThis?.document?_.useLayoutEffect:()=>{},ine=fx[" useId ".trim().toString()]||(()=>{}),one=0;function ro(e){const[t,n]=_.useState(ine());return vr(()=>{n(r=>r??String(one++))},[e]),t?`radix-${t}`:""}const sne=["top","right","bottom","left"],gl=Math.min,fa=Math.max,ry=Math.round,vb=Math.floor,ao=e=>({x:e,y:e}),lne={left:"right",right:"left",bottom:"top",top:"bottom"},cne={start:"end",end:"start"};function vC(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 d_(e){return e==="x"?"y":"x"}function f_(e){return e==="y"?"height":"width"}const une=new Set(["top","bottom"]);function eo(e){return une.has(os(e))?"y":"x"}function m_(e){return d_(eo(e))}function dne(e,t,n){n===void 0&&(n=!1);const r=ff(e),o=m_(e),s=f_(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 fne(e){const t=ay(e);return[bC(e),t,bC(t)]}function bC(e){return e.replace(/start|end/g,t=>cne[t])}const $L=["left","right"],BL=["right","left"],mne=["top","bottom"],hne=["bottom","top"];function pne(e,t,n){switch(e){case"top":case"bottom":return n?t?BL:$L:t?$L:BL;case"left":case"right":return t?mne:hne;default:return[]}}function gne(e,t,n,r){const o=ff(e);let s=pne(os(e),n==="start",r);return o&&(s=s.map(c=>c+"-"+o),t&&(s=s.concat(s.map(bC)))),s}function ay(e){return e.replace(/left|right|bottom|top/g,t=>lne[t])}function vne(e){return{top:0,right:0,bottom:0,left:0,...e}}function Q9(e){return typeof e!="number"?vne(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 zL(e,t,n){let{reference:r,floating:o}=e;const s=eo(t),c=m_(t),u=f_(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 bne=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}=zL(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}=zL(m,y,f)),N=-1)}return{x:g,y:h,placement:y,strategy:o,middlewareData:x}};async function Uh(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=Q9(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 yne=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=Q9(g),y={x:n,y:r},x=m_(o),S=f_(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,I=gl(h[D],$),z=gl(h[C],$),H=I,G=R-N[S]-z,Y=R/2-N[S]/2+M,J=vC(H,Y,G),q=!f.arrow&&ff(o)!=null&&Y!==J&&s.reference[S]/2-(Y<H?I:z)-N[S]/2<0,U=q?Y<H?Y-H:Y-G:0;return{[x]:y[x]+U,data:{[x]:J,centerOffset:Y-J-U,...q&&{alignmentOffset:U}},reset:q}}}),xne=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)]:fne(u)),T=S!=="none";!y&&T&&A.push(...gne(u,N,S,P));const R=[u,...A],M=await Uh(t,w),$=[];let I=((r=s.flip)==null?void 0:r.overflows)||[];if(g&&$.push(M[D]),h){const Y=dne(o,c,P);$.push(M[Y[0]],M[Y[1]])}if(I=[...I,{placement:o,overflows:$}],!$.every(Y=>Y<=0)){var z,H;const Y=(((z=s.flip)==null?void 0:z.index)||0)+1,J=R[Y];if(J&&(!(h==="alignment"?C!==eo(J):!1)||I.every(K=>eo(K.placement)===C?K.overflows[0]>0:!0)))return{data:{index:Y,overflows:I},reset:{placement:J}};let q=(H=I.filter(U=>U.overflows[0]<=0).sort((U,K)=>U.overflows[1]-K.overflows[1])[0])==null?void 0:H.placement;if(!q)switch(x){case"bestFit":{var G;const U=(G=I.filter(K=>{if(T){const te=eo(K.placement);return te===C||te==="y"}return!0}).map(K=>[K.placement,K.overflows.filter(te=>te>0).reduce((te,ne)=>te+ne,0)]).sort((K,te)=>K[1]-te[1])[0])==null?void 0:G[0];U&&(q=U);break}case"initialPlacement":q=u;break}if(o!==q)return{reset:{placement:q}}}return{}}}};function UL(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function qL(e){return sne.some(t=>e[t]>=0)}const Nne=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 Uh(t,{...o,elementContext:"reference"}),c=UL(s,n.reference);return{data:{referenceHiddenOffsets:c,referenceHidden:qL(c)}}}case"escaped":{const s=await Uh(t,{...o,altBoundary:!0}),c=UL(s,n.floating);return{data:{escapedOffsets:c,escaped:qL(c)}}}default:return{}}}}},X9=new Set(["left","top"]);async function wne(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=X9.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 Ene=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 wne(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}}}}},Sne=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 Uh(t,f),h=eo(os(o)),y=d_(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=vC(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=vC(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}}}}}},Ane=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=d_(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=X9.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}}}},One=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 Uh(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 I=fa(g.left,0),z=fa(g.right,0),H=fa(g.top,0),G=fa(g.bottom,0);x?M=S-2*(I!==0||z!==0?I+z:fa(g.left,g.right)):R=N-2*(H!==0||G!==0?H+G: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 W9(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=(W9(e)?e.ownerDocument:e.document)||window.document)==null?void 0:t.documentElement}function W9(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 HL(e){return!wx()||typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof ga(e).ShadowRoot}const Dne=new Set(["inline","contents"]);function kp(e){const{overflow:t,overflowX:n,overflowY:r,display:o}=fi(e);return/auto|scroll|overlay|hidden|clip/.test(t+r+n)&&!Dne.has(o)}const Cne=new Set(["table","td","th"]);function Tne(e){return Cne.has(mf(e))}const _ne=[":popover-open",":modal"];function Ex(e){return _ne.some(t=>{try{return e.matches(t)}catch{return!1}})}const jne=["transform","translate","scale","rotate","perspective"],Rne=["transform","translate","scale","rotate","perspective","filter"],Pne=["paint","layout","strict","content"];function h_(e){const t=p_(),n=di(e)?fi(e):e;return jne.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)||Rne.some(r=>(n.willChange||"").includes(r))||Pne.some(r=>(n.contain||"").includes(r))}function Mne(e){let t=vl(e);for(;co(t)&&!Md(t);){if(h_(t))return t;if(Ex(t))return null;t=vl(t)}return null}function p_(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}const kne=new Set(["html","body","#document"]);function Md(e){return kne.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||HL(e)&&e.host||ho(e);return HL(t)?t.host:t}function Z9(e){const t=vl(e);return Md(t)?e.ownerDocument?e.ownerDocument.body:e.body:co(t)&&kp(t)?t:Z9(t)}function qh(e,t,n){var r;t===void 0&&(t=[]),n===void 0&&(n=!0);const o=Z9(e),s=o===((r=e.ownerDocument)==null?void 0:r.body),c=ga(o);if(s){const u=yC(c);return t.concat(c,c.visualViewport||[],kp(o)?o:[],u&&n?qh(u):[])}return t.concat(o,qh(o,[],n))}function yC(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function J9(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 g_(e){return di(e)?e:e.contextElement}function Dd(e){const t=g_(e);if(!co(t))return ao(1);const n=t.getBoundingClientRect(),{width:r,height:o,$:s}=J9(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 Ine=ao(0);function ez(e){const t=ga(e);return!p_()||!t.visualViewport?Ine:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function Lne(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=g_(e);let c=ao(1);t&&(r?di(r)&&(c=Dd(r)):c=Dd(e));const u=Lne(s,n,r)?ez(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=yC(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=yC(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 tz(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 Vne(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"||kp(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?tz(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 $ne(e){return Array.from(e.getClientRects())}function Bne(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 FL=25;function zne(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=p_();(!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<=FL&&(s-=S)}else m<=FL&&(s+=m);return{width:s,height:c,x:u,y:f}}const Une=new Set(["absolute","fixed"]);function qne(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 KL(e,t,n){let r;if(t==="viewport")r=zne(e,n);else if(t==="document")r=Bne(ho(e));else if(di(t))r=qne(t,n);else{const o=ez(e);r={x:t.x-o.x,y:t.y-o.y,width:t.width,height:t.height}}return iy(r)}function nz(e,t){const n=vl(e);return n===t||!di(n)||Md(n)?!1:fi(n).position==="fixed"||nz(n,t)}function Hne(e,t){const n=t.get(e);if(n)return n;let r=qh(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=h_(c);!f&&u.position==="fixed"&&(o=null),(s?!f&&!o:!f&&u.position==="static"&&!!o&&Une.has(o.position)||kp(c)&&!f&&nz(e,c))?r=r.filter(g=>g!==c):o=u,c=vl(c)}return t.set(e,r),r}function Fne(e){let{element:t,boundary:n,rootBoundary:r,strategy:o}=e;const c=[...n==="clippingAncestors"?Ex(t)?[]:Hne(t,this._c):[].concat(n),r],u=c[0],f=c.reduce((m,g)=>{const h=KL(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},KL(t,u,o));return{width:f.right-f.left,height:f.bottom-f.top,x:f.left,y:f.top}}function Kne(e){const{width:t,height:n}=J9(e);return{width:t,height:n}}function Gne(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"||kp(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?tz(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 EE(e){return fi(e).position==="static"}function GL(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 rz(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)&&!EE(o))return o;o=vl(o)}return n}let r=GL(e,t);for(;r&&Tne(r)&&EE(r);)r=GL(r,t);return r&&Md(r)&&EE(r)&&!h_(r)?n:r||Mne(e)||n}const Yne=async function(e){const t=this.getOffsetParent||rz,n=this.getDimensions,r=await n(e.floating);return{reference:Gne(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:r.width,height:r.height}}};function Qne(e){return fi(e).direction==="rtl"}const Xne={convertOffsetParentRelativeRectToViewportRelativeRect:Vne,getDocumentElement:ho,getClippingRect:Fne,getOffsetParent:rz,getElementRects:Yne,getClientRects:$ne,getDimensions:Kne,getScale:Dd,isElement:di,isRTL:Qne};function az(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}function Wne(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&&!az(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 Zne(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=g_(e),g=o||s?[...m?qh(m):[],...qh(t)]:[];g.forEach(D=>{o&&D.addEventListener("scroll",n,{passive:!0}),s&&D.addEventListener("resize",n)});const h=m&&u?Wne(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&&!az(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 Jne=Ene,ere=Sne,tre=xne,nre=One,rre=Nne,YL=yne,are=Ane,ire=(e,t,n)=>{const r=new Map,o={platform:Xne,...n},s={...o.platform,_c:r};return bne(e,t,{...o,platform:s})};var ore=typeof document<"u",sre=function(){},Hb=ore?_.useLayoutEffect:sre;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 iz(e){return typeof window>"u"?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function QL(e,t){const n=iz(e);return Math.round(t*n)/n}function SE(e){const t=_.useRef(e);return Hb(()=>{t.current=e}),t}function lre(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(K=>{K!==T.current&&(T.current=K,N(K))},[]),j=_.useCallback(K=>{K!==R.current&&(R.current=K,D(K))},[]),P=s||S,A=c||w,T=_.useRef(null),R=_.useRef(null),M=_.useRef(g),$=f!=null,I=SE(f),z=SE(o),H=SE(m),G=_.useCallback(()=>{if(!T.current||!R.current)return;const K={placement:t,strategy:n,middleware:y};z.current&&(K.platform=z.current),ire(T.current,R.current,K).then(te=>{const ne={...te,isPositioned:H.current!==!1};Y.current&&!oy(M.current,ne)&&(M.current=ne,Pp.flushSync(()=>{h(ne)}))})},[y,t,n,z,H]);Hb(()=>{m===!1&&M.current.isPositioned&&(M.current.isPositioned=!1,h(K=>({...K,isPositioned:!1})))},[m]);const Y=_.useRef(!1);Hb(()=>(Y.current=!0,()=>{Y.current=!1}),[]),Hb(()=>{if(P&&(T.current=P),A&&(R.current=A),P&&A){if(I.current)return I.current(P,A,G);G()}},[P,A,G,I,$]);const J=_.useMemo(()=>({reference:T,floating:R,setReference:C,setFloating:j}),[C,j]),q=_.useMemo(()=>({reference:P,floating:A}),[P,A]),U=_.useMemo(()=>{const K={position:n,left:0,top:0};if(!q.floating)return K;const te=QL(q.floating,g.x),ne=QL(q.floating,g.y);return u?{...K,transform:"translate("+te+"px, "+ne+"px)",...iz(q.floating)>=1.5&&{willChange:"transform"}}:{position:n,left:te,top:ne}},[n,u,q.floating,g.x,g.y]);return _.useMemo(()=>({...g,update:G,refs:J,elements:q,floatingStyles:U}),[g,G,J,q,U])}const cre=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?YL({element:r.current,padding:o}).fn(n):{}:r?YL({element:r,padding:o}).fn(n):{}}}},ure=(e,t)=>({...Jne(e),options:[e,t]}),dre=(e,t)=>({...ere(e),options:[e,t]}),fre=(e,t)=>({...are(e),options:[e,t]}),mre=(e,t)=>({...tre(e),options:[e,t]}),hre=(e,t)=>({...nre(e),options:[e,t]}),pre=(e,t)=>({...rre(e),options:[e,t]}),gre=(e,t)=>({...cre(e),options:[e,t]});var vre="Arrow",oz=_.forwardRef((e,t)=>{const{children:n,width:r=10,height:o=5,...s}=e;return le.jsx(vt.svg,{...s,ref:t,width:r,height:o,viewBox:"0 0 30 10",preserveAspectRatio:"none",children:e.asChild?n:le.jsx("polygon",{points:"0,0 30,0 15,10"})})});oz.displayName=vre;var bre=oz;function sz(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 v_="Popper",[lz,hf]=ds(v_),[yre,cz]=lz(v_),uz=e=>{const{__scopePopper:t,children:n}=e,[r,o]=_.useState(null);return le.jsx(yre,{scope:t,anchor:r,onAnchorChange:o,children:n})};uz.displayName=v_;var dz="PopperAnchor",fz=_.forwardRef((e,t)=>{const{__scopePopper:n,virtualRef:r,...o}=e,s=cz(dz,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:le.jsx(vt.div,{...o,ref:u})});fz.displayName=dz;var b_="PopperContent",[xre,Nre]=lz(b_),mz=_.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=cz(b_,n),[D,C]=_.useState(null),j=Mt(t,ue=>C(ue)),[P,A]=_.useState(null),T=sz(P),R=T?.width??0,M=T?.height??0,$=r+(s!=="center"?"-"+s:""),I=typeof g=="number"?g:{top:0,right:0,bottom:0,left:0,...g},z=Array.isArray(m)?m:[m],H=z.length>0,G={padding:I,boundary:z.filter(Ere),altBoundary:H},{refs:Y,floatingStyles:J,placement:q,isPositioned:U,middlewareData:K}=lre({strategy:"fixed",placement:$,whileElementsMounted:(...ue)=>Zne(...ue,{animationFrame:x==="always"}),elements:{reference:w.anchor},middleware:[ure({mainAxis:o+M,alignmentAxis:c}),f&&dre({mainAxis:!0,crossAxis:!1,limiter:h==="partial"?fre():void 0,...G}),f&&mre({...G}),hre({...G,apply:({elements:ue,rects:xe,availableWidth:me,availableHeight:ye})=>{const{width:de,height:ie}=xe.reference,ze=ue.floating.style;ze.setProperty("--radix-popper-available-width",`${me}px`),ze.setProperty("--radix-popper-available-height",`${ye}px`),ze.setProperty("--radix-popper-anchor-width",`${de}px`),ze.setProperty("--radix-popper-anchor-height",`${ie}px`)}}),P&&gre({element:P,padding:u}),Sre({arrowWidth:R,arrowHeight:M}),y&&pre({strategy:"referenceHidden",...G})]}),[te,ne]=gz(q),L=lo(S);vr(()=>{U&&L?.()},[U,L]);const Q=K.arrow?.x,W=K.arrow?.y,ae=K.arrow?.centerOffset!==0,[ge,we]=_.useState();return vr(()=>{D&&we(window.getComputedStyle(D).zIndex)},[D]),le.jsx("div",{ref:Y.setFloating,"data-radix-popper-content-wrapper":"",style:{...J,transform:U?J.transform:"translate(0, -200%)",minWidth:"max-content",zIndex:ge,"--radix-popper-transform-origin":[K.transformOrigin?.x,K.transformOrigin?.y].join(" "),...K.hide?.referenceHidden&&{visibility:"hidden",pointerEvents:"none"}},dir:e.dir,children:le.jsx(xre,{scope:n,placedSide:te,onArrowChange:A,arrowX:Q,arrowY:W,shouldHideArrow:ae,children:le.jsx(vt.div,{"data-side":te,"data-align":ne,...N,ref:j,style:{...N.style,animation:U?void 0:"none"}})})})});mz.displayName=b_;var hz="PopperArrow",wre={top:"bottom",right:"left",bottom:"top",left:"right"},pz=_.forwardRef(function(t,n){const{__scopePopper:r,...o}=t,s=Nre(hz,r),c=wre[s.placedSide];return le.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:le.jsx(bre,{...o,ref:n,style:{...o.style,display:"block"}})})});pz.displayName=hz;function Ere(e){return e!==null}var Sre=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]=gz(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 gz(e){const[t,n="center"]=e.split("-");return[t,n]}var y_=uz,x_=fz,N_=mz,w_=pz,Are="Portal",Ip=_.forwardRef((e,t)=>{const{container:n,...r}=e,[o,s]=_.useState(!1);vr(()=>s(!0),[]);const c=n||o&&globalThis?.document?.body;return c?q9.createPortal(le.jsx(vt.div,{...r,ref:t}),c):null});Ip.displayName=Are;function Ore(e,t){return _.useReducer((n,r)=>t[n][r]??n,e)}var po=e=>{const{present:t,children:n}=e,r=Dre(t),o=typeof n=="function"?n({present:r.isPresent}):_.Children.only(n),s=Mt(r.ref,Cre(o));return typeof n=="function"||r.isPresent?_.cloneElement(o,{ref:s}):null};po.displayName="Presence";function Dre(e){const[t,n]=_.useState(),r=_.useRef(null),o=_.useRef(e),s=_.useRef("none"),c=e?"mounted":"unmounted",[u,f]=Ore(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 Cre(e){let t=Object.getOwnPropertyDescriptor(e.props,"ref")?.get,n=t&&"isReactWarning"in t&&t.isReactWarning;return n?e.ref:(t=Object.getOwnPropertyDescriptor(e,"ref")?.get,n=t&&"isReactWarning"in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}var Tre=fx[" useInsertionEffect ".trim().toString()]||vr;function kc({prop:e,defaultProp:t,onChange:n=()=>{},caller:r}){const[o,s,c]=_re({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=jre(g)?g(e):g;h!==e&&c.current?.(h)}else s(g)},[u,e,s,c]);return[f,m]}function _re({defaultProp:e,onChange:t}){const[n,r]=_.useState(e),o=_.useRef(n),s=_.useRef(t);return Tre(()=>{s.current=t},[t]),_.useEffect(()=>{o.current!==n&&(s.current?.(n),o.current=n)},[n,o]),[n,r,s]}function jre(e){return typeof e=="function"}var vz=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"}),Rre="VisuallyHidden",bz=_.forwardRef((e,t)=>le.jsx(vt.span,{...e,ref:t,style:{...vz,...e.style}}));bz.displayName=Rre;var Pre=bz,[Ox]=ds("Tooltip",[hf]),Dx=hf(),yz="TooltipProvider",Mre=700,xC="tooltip.open",[kre,E_]=Ox(yz),xz=e=>{const{__scopeTooltip:t,delayDuration:n=Mre,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)},[]),le.jsx(kre,{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})};xz.displayName=yz;var Hh="Tooltip",[Ire,Lp]=Ox(Hh),Nz=e=>{const{__scopeTooltip:t,children:n,open:r,defaultOpen:o,onOpenChange:s,disableHoverableContent:c,delayDuration:u}=e,f=E_(Hh,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(xC))):f.onClose(),s?.(R)},caller:Hh}),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)},[]),le.jsx(y_,{...m,children:le.jsx(Ire,{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})})};Nz.displayName=Hh;var NC="TooltipTrigger",wz=_.forwardRef((e,t)=>{const{__scopeTooltip:n,...r}=e,o=Lp(NC,n),s=E_(NC,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]),le.jsx(x_,{asChild:!0,...c,children:le.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)})})});wz.displayName=NC;var S_="TooltipPortal",[Lre,Vre]=Ox(S_,{forceMount:void 0}),Ez=e=>{const{__scopeTooltip:t,forceMount:n,children:r,container:o}=e,s=Lp(S_,t);return le.jsx(Lre,{scope:t,forceMount:n,children:le.jsx(po,{present:n||s.open,children:le.jsx(Ip,{asChild:!0,container:o,children:r})})})};Ez.displayName=S_;var kd="TooltipContent",Sz=_.forwardRef((e,t)=>{const n=Vre(kd,e.__scopeTooltip),{forceMount:r=n.forceMount,side:o="top",...s}=e,c=Lp(kd,e.__scopeTooltip);return le.jsx(po,{present:r||c.open,children:c.disableHoverableContent?le.jsx(Az,{side:o,...s,ref:t}):le.jsx($re,{side:o,...s,ref:t})})}),$re=_.forwardRef((e,t)=>{const n=Lp(kd,e.__scopeTooltip),r=E_(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=qre(D,w.getBoundingClientRect()),j=Hre(D,C),P=Fre(N.getBoundingClientRect()),A=Gre([...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=!Kre(D,c);C?y():j&&(y(),m())};return document.addEventListener("pointermove",S),()=>document.removeEventListener("pointermove",S)}},[f,g,c,m,y]),le.jsx(Az,{...e,ref:s})}),[Bre,zre]=Ox(Hh,{isInside:!1}),Ure=Kte("TooltipContent"),Az=_.forwardRef((e,t)=>{const{__scopeTooltip:n,children:r,"aria-label":o,onEscapeKeyDown:s,onPointerDownOutside:c,...u}=e,f=Lp(kd,n),m=Dx(n),{onClose:g}=f;return _.useEffect(()=>(document.addEventListener(xC,g),()=>document.removeEventListener(xC,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]),le.jsx(Mp,{asChild:!0,disableOutsidePointerEvents:!1,onEscapeKeyDown:s,onPointerDownOutside:c,onFocusOutside:h=>h.preventDefault(),onDismiss:g,children:le.jsxs(N_,{"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:[le.jsx(Ure,{children:r}),le.jsx(Bre,{scope:n,isInside:!0,children:le.jsx(Pre,{id:f.contentId,role:"tooltip",children:o||r})})]})})});Sz.displayName=kd;var Oz="TooltipArrow",Dz=_.forwardRef((e,t)=>{const{__scopeTooltip:n,...r}=e,o=Dx(n);return zre(Oz,n).isInside?null:le.jsx(w_,{...o,...r,ref:t})});Dz.displayName=Oz;function qre(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 Hre(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 Fre(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 Kre(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 Gre(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),Yre(t)}function Yre(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 Qre=xz,Xre=Nz,Wre=wz,Zre=Ez,Jre=Sz,eae=Dz;function Cz(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=Cz(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=Cz(e))&&(r&&(r+=" "),r+=t);return r}const A_="-",tae=e=>{const t=rae(e),{conflictingClassGroups:n,conflictingClassGroupModifiers:r}=e;return{getClassGroupId:c=>{const u=c.split(A_);return u[0]===""&&u.length!==1&&u.shift(),Tz(u,t)||nae(c)},getConflictingClassGroupIds:(c,u)=>{const f=n[c]||[];return u&&r[c]?[...f,...r[c]]:f}}},Tz=(e,t)=>{if(e.length===0)return t.classGroupId;const n=e[0],r=t.nextPart.get(n),o=r?Tz(e.slice(1),r):void 0;if(o)return o;if(t.validators.length===0)return;const s=e.join(A_);return t.validators.find(({validator:c})=>c(s))?.classGroupId},XL=/^\[(.+)\]$/,nae=e=>{if(XL.test(e)){const t=XL.exec(e)[1],n=t?.substring(0,t.indexOf(":"));if(n)return"arbitrary.."+n}},rae=e=>{const{theme:t,classGroups:n}=e,r={nextPart:new Map,validators:[]};for(const o in n)wC(n[o],r,o,t);return r},wC=(e,t,n,r)=>{e.forEach(o=>{if(typeof o=="string"){const s=o===""?t:WL(t,o);s.classGroupId=n;return}if(typeof o=="function"){if(aae(o)){wC(o(r),t,n,r);return}t.validators.push({validator:o,classGroupId:n});return}Object.entries(o).forEach(([s,c])=>{wC(c,WL(t,s),n,r)})})},WL=(e,t)=>{let n=e;return t.split(A_).forEach(r=>{n.nextPart.has(r)||n.nextPart.set(r,{nextPart:new Map,validators:[]}),n=n.nextPart.get(r)}),n},aae=e=>e.isThemeGetter,iae=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)}}},EC="!",SC=":",oae=SC.length,sae=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===SC){s.push(o.slice(f,S)),f=S+oae;continue}if(N==="/"){m=S;continue}}N==="["?c++:N==="]"?c--:N==="("?u++:N===")"&&u--}const g=s.length===0?o:o.substring(f),h=lae(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+SC,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},lae=e=>e.endsWith(EC)?e.substring(0,e.length-1):e.startsWith(EC)?e.substring(1):e,cae=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}},uae=e=>({cache:iae(e.cacheSize),parseClassName:sae(e),sortModifiers:cae(e),...tae(e)}),dae=/\s+/,fae=(e,t)=>{const{parseClassName:n,getClassGroupId:r,getConflictingClassGroupIds:o,sortModifiers:s}=t,c=[],u=e.trim().split(dae);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+EC: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 mae(){let e=0,t,n,r="";for(;e<arguments.length;)(t=arguments[e++])&&(n=_z(t))&&(r&&(r+=" "),r+=n);return r}const _z=e=>{if(typeof e=="string")return e;let t,n="";for(let r=0;r<e.length;r++)e[r]&&(t=_z(e[r]))&&(n&&(n+=" "),n+=t);return n};function hae(e,...t){let n,r,o,s=c;function c(f){const m=t.reduce((g,h)=>h(g),e());return n=uae(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=fae(f,n);return o(f,g),g}return function(){return s(mae.apply(null,arguments))}}const kn=e=>{const t=n=>n[e]||[];return t.isThemeGetter=!0,t},jz=/^\[(?:(\w[\w-]*):)?(.+)\]$/i,Rz=/^\((?:(\w[\w-]*):)?(.+)\)$/i,pae=/^\d+\/\d+$/,gae=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,vae=/\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$/,bae=/^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/,yae=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,xae=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,fd=e=>pae.test(e),ht=e=>!!e&&!Number.isNaN(Number(e)),rl=e=>!!e&&Number.isInteger(Number(e)),AE=e=>e.endsWith("%")&&ht(e.slice(0,-1)),Qo=e=>gae.test(e),Nae=()=>!0,wae=e=>vae.test(e)&&!bae.test(e),Pz=()=>!1,Eae=e=>yae.test(e),Sae=e=>xae.test(e),Aae=e=>!ke(e)&&!Ie(e),Oae=e=>pf(e,Iz,Pz),ke=e=>jz.test(e),fc=e=>pf(e,Lz,wae),OE=e=>pf(e,jae,ht),ZL=e=>pf(e,Mz,Pz),Dae=e=>pf(e,kz,Sae),yb=e=>pf(e,Vz,Eae),Ie=e=>Rz.test(e),lh=e=>gf(e,Lz),Cae=e=>gf(e,Rae),JL=e=>gf(e,Mz),Tae=e=>gf(e,Iz),_ae=e=>gf(e,kz),xb=e=>gf(e,Vz,!0),pf=(e,t,n)=>{const r=jz.exec(e);return r?r[1]?t(r[1]):n(r[2]):!1},gf=(e,t,n=!1)=>{const r=Rz.exec(e);return r?r[1]?t(r[1]):n:!1},Mz=e=>e==="position"||e==="percentage",kz=e=>e==="image"||e==="url",Iz=e=>e==="length"||e==="size"||e==="bg-size",Lz=e=>e==="length",jae=e=>e==="number",Rae=e=>e==="family-name",Vz=e=>e==="shadow",Pae=()=>{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()],I=()=>[rl,"none","subgrid",Ie,ke],z=()=>["auto",{span:["full",rl,Ie,ke]},rl,Ie,ke],H=()=>[rl,"auto",Ie,ke],G=()=>["auto","min","max","fr",Ie,ke],Y=()=>["start","end","center","between","around","evenly","stretch","baseline","center-safe","end-safe"],J=()=>["start","end","center","stretch","center-safe","end-safe"],q=()=>["auto",...M()],U=()=>[fd,"auto","full","dvw","dvh","lvw","lvh","svw","svh","min","max","fit",...M()],K=()=>[e,Ie,ke],te=()=>[...P(),JL,ZL,{position:[Ie,ke]}],ne=()=>["no-repeat",{repeat:["","x","y","space","round"]}],L=()=>["auto","cover","contain",Tae,Oae,{size:[Ie,ke]}],Q=()=>[AE,lh,fc],W=()=>["","none","full",m,Ie,ke],ae=()=>["",ht,lh,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"],ue=()=>[ht,AE,JL,ZL],xe=()=>["","none",S,Ie,ke],me=()=>["none",ht,Ie,ke],ye=()=>["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:[Nae],container:[Qo],"drop-shadow":[Qo],ease:["in","out","in-out"],font:[Aae],"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":I()}],"col-start-end":[{col:z()}],"col-start":[{"col-start":H()}],"col-end":[{"col-end":H()}],"grid-rows":[{"grid-rows":I()}],"row-start-end":[{row:z()}],"row-start":[{"row-start":H()}],"row-end":[{"row-end":H()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":G()}],"auto-rows":[{"auto-rows":G()}],gap:[{gap:M()}],"gap-x":[{"gap-x":M()}],"gap-y":[{"gap-y":M()}],"justify-content":[{justify:[...Y(),"normal"]}],"justify-items":[{"justify-items":[...J(),"normal"]}],"justify-self":[{"justify-self":["auto",...J()]}],"align-content":[{content:["normal",...Y()]}],"align-items":[{items:[...J(),{baseline:["","last"]}]}],"align-self":[{self:["auto",...J(),{baseline:["","last"]}]}],"place-content":[{"place-content":Y()}],"place-items":[{"place-items":[...J(),"baseline"]}],"place-self":[{"place-self":["auto",...J()]}],p:[{p: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:U()}],w:[{w:[u,"screen",...U()]}],"min-w":[{"min-w":[u,"screen","none",...U()]}],"max-w":[{"max-w":[u,"screen","none","prose",{screen:[c]},...U()]}],h:[{h:["screen","lh",...U()]}],"min-h":[{"min-h":["screen","lh","none",...U()]}],"max-h":[{"max-h":["screen","lh",...U()]}],"font-size":[{text:["base",n,lh,fc]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:[r,Ie,OE]}],"font-stretch":[{"font-stretch":["ultra-condensed","extra-condensed","condensed","semi-condensed","normal","semi-expanded","expanded","extra-expanded","ultra-expanded",AE,ke]}],"font-family":[{font:[Cae,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,OE]}],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:K()}],"text-color":[{text:K()}],"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:K()}],"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:te()}],"bg-repeat":[{bg:ne()}],"bg-size":[{bg:L()}],"bg-image":[{bg:["none",{linear:[{to:["t","tr","r","br","b","bl","l","tl"]},rl,Ie,ke],radial:["",Ie,ke],conic:[rl,Ie,ke]},_ae,Dae]}],"bg-color":[{bg:K()}],"gradient-from-pos":[{from:Q()}],"gradient-via-pos":[{via:Q()}],"gradient-to-pos":[{to:Q()}],"gradient-from":[{from:K()}],"gradient-via":[{via:K()}],"gradient-to":[{to:K()}],rounded:[{rounded:W()}],"rounded-s":[{"rounded-s":W()}],"rounded-e":[{"rounded-e":W()}],"rounded-t":[{"rounded-t":W()}],"rounded-r":[{"rounded-r":W()}],"rounded-b":[{"rounded-b":W()}],"rounded-l":[{"rounded-l":W()}],"rounded-ss":[{"rounded-ss":W()}],"rounded-se":[{"rounded-se":W()}],"rounded-ee":[{"rounded-ee":W()}],"rounded-es":[{"rounded-es":W()}],"rounded-tl":[{"rounded-tl":W()}],"rounded-tr":[{"rounded-tr":W()}],"rounded-br":[{"rounded-br":W()}],"rounded-bl":[{"rounded-bl":W()}],"border-w":[{border:ae()}],"border-w-x":[{"border-x":ae()}],"border-w-y":[{"border-y":ae()}],"border-w-s":[{"border-s":ae()}],"border-w-e":[{"border-e":ae()}],"border-w-t":[{"border-t":ae()}],"border-w-r":[{"border-r":ae()}],"border-w-b":[{"border-b":ae()}],"border-w-l":[{"border-l":ae()}],"divide-x":[{"divide-x":ae()}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":ae()}],"divide-y-reverse":["divide-y-reverse"],"border-style":[{border:[...ge(),"hidden","none"]}],"divide-style":[{divide:[...ge(),"hidden","none"]}],"border-color":[{border:K()}],"border-color-x":[{"border-x":K()}],"border-color-y":[{"border-y":K()}],"border-color-s":[{"border-s":K()}],"border-color-e":[{"border-e":K()}],"border-color-t":[{"border-t":K()}],"border-color-r":[{"border-r":K()}],"border-color-b":[{"border-b":K()}],"border-color-l":[{"border-l":K()}],"divide-color":[{divide:K()}],"outline-style":[{outline:[...ge(),"none","hidden"]}],"outline-offset":[{"outline-offset":[ht,Ie,ke]}],"outline-w":[{outline:["",ht,lh,fc]}],"outline-color":[{outline:K()}],shadow:[{shadow:["","none",g,xb,yb]}],"shadow-color":[{shadow:K()}],"inset-shadow":[{"inset-shadow":["none",h,xb,yb]}],"inset-shadow-color":[{"inset-shadow":K()}],"ring-w":[{ring:ae()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:K()}],"ring-offset-w":[{"ring-offset":[ht,fc]}],"ring-offset-color":[{"ring-offset":K()}],"inset-ring-w":[{"inset-ring":ae()}],"inset-ring-color":[{"inset-ring":K()}],"text-shadow":[{"text-shadow":["none",y,xb,yb]}],"text-shadow-color":[{"text-shadow":K()}],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":ue()}],"mask-image-linear-to-pos":[{"mask-linear-to":ue()}],"mask-image-linear-from-color":[{"mask-linear-from":K()}],"mask-image-linear-to-color":[{"mask-linear-to":K()}],"mask-image-t-from-pos":[{"mask-t-from":ue()}],"mask-image-t-to-pos":[{"mask-t-to":ue()}],"mask-image-t-from-color":[{"mask-t-from":K()}],"mask-image-t-to-color":[{"mask-t-to":K()}],"mask-image-r-from-pos":[{"mask-r-from":ue()}],"mask-image-r-to-pos":[{"mask-r-to":ue()}],"mask-image-r-from-color":[{"mask-r-from":K()}],"mask-image-r-to-color":[{"mask-r-to":K()}],"mask-image-b-from-pos":[{"mask-b-from":ue()}],"mask-image-b-to-pos":[{"mask-b-to":ue()}],"mask-image-b-from-color":[{"mask-b-from":K()}],"mask-image-b-to-color":[{"mask-b-to":K()}],"mask-image-l-from-pos":[{"mask-l-from":ue()}],"mask-image-l-to-pos":[{"mask-l-to":ue()}],"mask-image-l-from-color":[{"mask-l-from":K()}],"mask-image-l-to-color":[{"mask-l-to":K()}],"mask-image-x-from-pos":[{"mask-x-from":ue()}],"mask-image-x-to-pos":[{"mask-x-to":ue()}],"mask-image-x-from-color":[{"mask-x-from":K()}],"mask-image-x-to-color":[{"mask-x-to":K()}],"mask-image-y-from-pos":[{"mask-y-from":ue()}],"mask-image-y-to-pos":[{"mask-y-to":ue()}],"mask-image-y-from-color":[{"mask-y-from":K()}],"mask-image-y-to-color":[{"mask-y-to":K()}],"mask-image-radial":[{"mask-radial":[Ie,ke]}],"mask-image-radial-from-pos":[{"mask-radial-from":ue()}],"mask-image-radial-to-pos":[{"mask-radial-to":ue()}],"mask-image-radial-from-color":[{"mask-radial-from":K()}],"mask-image-radial-to-color":[{"mask-radial-to":K()}],"mask-image-radial-shape":[{"mask-radial":["circle","ellipse"]}],"mask-image-radial-size":[{"mask-radial":[{closest:["side","corner"],farthest:["side","corner"]}]}],"mask-image-radial-pos":[{"mask-radial-at":P()}],"mask-image-conic-pos":[{"mask-conic":[ht]}],"mask-image-conic-from-pos":[{"mask-conic-from":ue()}],"mask-image-conic-to-pos":[{"mask-conic-to":ue()}],"mask-image-conic-from-color":[{"mask-conic-from":K()}],"mask-image-conic-to-color":[{"mask-conic-to":K()}],"mask-mode":[{mask:["alpha","luminance","match"]}],"mask-origin":[{"mask-origin":["border","padding","content","fill","stroke","view"]}],"mask-position":[{mask:te()}],"mask-repeat":[{mask:ne()}],"mask-size":[{mask:L()}],"mask-type":[{"mask-type":["alpha","luminance"]}],"mask-image":[{mask:["none",Ie,ke]}],filter:[{filter:["","none",Ie,ke]}],blur:[{blur:xe()}],brightness:[{brightness:[ht,Ie,ke]}],contrast:[{contrast:[ht,Ie,ke]}],"drop-shadow":[{"drop-shadow":["","none",x,xb,yb]}],"drop-shadow-color":[{"drop-shadow":K()}],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":xe()}],"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:ye()}],"scale-x":[{"scale-x":ye()}],"scale-y":[{"scale-y":ye()}],"scale-z":[{"scale-z":ye()}],"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:K()}],appearance:[{appearance:["none","auto"]}],"caret-color":[{caret:K()}],"color-scheme":[{scheme:["normal","dark","light","light-dark","only-dark","only-light"]}],cursor:[{cursor:["auto","default","pointer","wait","text","move","help","not-allowed","none","context-menu","progress","cell","crosshair","vertical-text","alias","copy","no-drop","grab","grabbing","all-scroll","col-resize","row-resize","n-resize","e-resize","s-resize","w-resize","ne-resize","nw-resize","se-resize","sw-resize","ew-resize","ns-resize","nesw-resize","nwse-resize","zoom-in","zoom-out",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",...K()]}],"stroke-w":[{stroke:[ht,lh,fc,OE]}],stroke:[{stroke:["none",...K()]}],"forced-color-adjust":[{"forced-color-adjust":["auto","none"]}]},conflictingClassGroups:{overflow:["overflow-x","overflow-y"],overscroll:["overscroll-x","overscroll-y"],inset:["inset-x","inset-y","start","end","top","right","bottom","left"],"inset-x":["right","left"],"inset-y":["top","bottom"],flex:["basis","grow","shrink"],gap:["gap-x","gap-y"],p:["px","py","ps","pe","pt","pr","pb","pl"],px:["pr","pl"],py:["pt","pb"],m:["mx","my","ms","me","mt","mr","mb","ml"],mx:["mr","ml"],my:["mt","mb"],size:["w","h"],"font-size":["leading"],"fvn-normal":["fvn-ordinal","fvn-slashed-zero","fvn-figure","fvn-spacing","fvn-fraction"],"fvn-ordinal":["fvn-normal"],"fvn-slashed-zero":["fvn-normal"],"fvn-figure":["fvn-normal"],"fvn-spacing":["fvn-normal"],"fvn-fraction":["fvn-normal"],"line-clamp":["display","overflow"],rounded:["rounded-s","rounded-e","rounded-t","rounded-r","rounded-b","rounded-l","rounded-ss","rounded-se","rounded-ee","rounded-es","rounded-tl","rounded-tr","rounded-br","rounded-bl"],"rounded-s":["rounded-ss","rounded-es"],"rounded-e":["rounded-se","rounded-ee"],"rounded-t":["rounded-tl","rounded-tr"],"rounded-r":["rounded-tr","rounded-br"],"rounded-b":["rounded-br","rounded-bl"],"rounded-l":["rounded-tl","rounded-bl"],"border-spacing":["border-spacing-x","border-spacing-y"],"border-w":["border-w-x","border-w-y","border-w-s","border-w-e","border-w-t","border-w-r","border-w-b","border-w-l"],"border-w-x":["border-w-r","border-w-l"],"border-w-y":["border-w-t","border-w-b"],"border-color":["border-color-x","border-color-y","border-color-s","border-color-e","border-color-t","border-color-r","border-color-b","border-color-l"],"border-color-x":["border-color-r","border-color-l"],"border-color-y":["border-color-t","border-color-b"],translate:["translate-x","translate-y","translate-none"],"translate-none":["translate","translate-x","translate-y","translate-z"],"scroll-m":["scroll-mx","scroll-my","scroll-ms","scroll-me","scroll-mt","scroll-mr","scroll-mb","scroll-ml"],"scroll-mx":["scroll-mr","scroll-ml"],"scroll-my":["scroll-mt","scroll-mb"],"scroll-p":["scroll-px","scroll-py","scroll-ps","scroll-pe","scroll-pt","scroll-pr","scroll-pb","scroll-pl"],"scroll-px":["scroll-pr","scroll-pl"],"scroll-py":["scroll-pt","scroll-pb"],touch:["touch-x","touch-y","touch-pz"],"touch-x":["touch"],"touch-y":["touch"],"touch-pz":["touch"]},conflictingClassGroupModifiers:{"font-size":["leading"]},orderSensitiveModifiers:["*","**","after","backdrop","before","details-content","file","first-letter","first-line","marker","placeholder","selection"]}},Mae=hae(Pae);function wt(...e){return Mae(it(e))}function O_({delayDuration:e=0,...t}){return b.jsxDEV(Qre,{"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 DE({...e}){return b.jsxDEV(O_,{"data-loc":"client/src/components/ui/tooltip.tsx:23",children:b.jsxDEV(Xre,{"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 CE({...e}){return b.jsxDEV(Wre,{"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 TE({className:e,sideOffset:t=0,children:n,...r}){return b.jsxDEV(Zre,{"data-loc":"client/src/components/ui/tooltip.tsx:42",children:b.jsxDEV(Jre,{"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(eae,{"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 eV=e=>typeof e=="boolean"?`${e}`:e===0?"0":e,tV=it,D_=(e,t)=>n=>{var r;if(t?.variants==null)return tV(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=eV(g)||eV(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 tV(e,c,f,n?.class,n?.className)},kae=D_("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?H9:"button";return b.jsxDEV(s,{"data-loc":"client/src/components/ui/button.tsx:52","data-slot":"button",className:wt(kae({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 $z({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 Iae=e=>e.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),Bz=(...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 Lae={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 Vae=_.forwardRef(({color:e="currentColor",size:t=24,strokeWidth:n=2,absoluteStrokeWidth:r,className:o="",children:s,iconNode:c,...u},f)=>_.createElement("svg",{ref:f,...Lae,width:t,height:t,stroke:e,strokeWidth:r?Number(n)*24/Number(t):n,className:Bz("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(Vae,{ref:s,iconNode:t,className:Bz(`lucide-${Iae(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 zz=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 $ae=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 Uz=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 C_=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 AC=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 Fh=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 T_=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("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 Fae=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 qz=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 Kae=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 Gae=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 __=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 Yae=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 Qae=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 Xae=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 Wae=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 Zae=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 Jae=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 Hz=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 OC=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 Vp=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 eie=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 tie=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 nie=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 Fz=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 rie=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 DC=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 Kz=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 Gz=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 Yz=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 Qz=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 CC=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 aie=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 iie=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 oie=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 Ch=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 sie(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 lie=fx.useInsertionEffect,cie=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u",uie=cie?_.useLayoutEffect:_.useEffect,die=lie||uie,Xz=e=>{const t=_.useRef([e,(...n)=>t[0](...n)]).current;return die(()=>{t[0]=e}),t[1]},fie="popstate",j_="pushState",R_="replaceState",mie="hashchange",nV=[fie,j_,R_,mie],hie=e=>{for(const t of nV)addEventListener(t,e);return()=>{for(const t of nV)removeEventListener(t,e)}},Wz=(e,t)=>D9.useSyncExternalStore(hie,e,t),pie=()=>location.search,gie=({ssrSearch:e=""}={})=>Wz(pie,()=>e),rV=()=>location.pathname,vie=({ssrPath:e}={})=>Wz(rV,e?()=>e:rV),bie=(e,{replace:t=!1,state:n=null}={})=>history[t?R_:j_](n,"",e),yie=(e={})=>[vie(e),bie],aV=Symbol.for("wouter_v3");if(typeof history<"u"&&typeof window[aV]>"u"){for(const e of[j_,R_]){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,aV,{value:!0})}const xie=(e,t)=>t.toLowerCase().indexOf(e.toLowerCase())?"~"+t:t.slice(e.length)||"/",Zz=(e="")=>e==="/"?"":e,Nie=(e,t)=>e[0]==="~"?e.slice(1):Zz(t)+e,wie=(e="",t)=>xie(iV(Zz(e)),iV(t)),iV=e=>{try{return decodeURI(e)}catch{return e}},Jz={hook:yie,searchHook:gie,parser:sie,base:"",ssrPath:void 0,ssrSearch:void 0,ssrContext:void 0,hrefs:e=>e},eU=_.createContext(Jz),$p=()=>_.useContext(eU),tU={},nU=_.createContext(tU),Eie=()=>_.useContext(nU),Tx=e=>{const[t,n]=e.hook(e);return[wie(e.base,t),Xz((r,o)=>n(Nie(r,e.base),o))]},P_=()=>Tx($p()),rU=(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]},Sie=({children:e,...t})=>{const n=$p(),r=t.hook?Jz: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(eU.Provider,{value:o,children:e})},oV=({children:e,component:t},n)=>t?_.createElement(t,{params:n}):typeof e=="function"?e(n):e,Aie=e=>{let t=_.useRef(tU);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=$p(),[s]=Tx(o),[c,u,f]=n??rU(o.parser,e,s,t),m=Aie({...Eie(),...u});if(!c)return null;const g=f?_.createElement(Sie,{base:f},oV(r,m)):oV(r,m);return _.createElement(nU.Provider,{value:m,children:g})},Oie=_.forwardRef((e,t)=>{const n=$p(),[r,o]=Tx(n),{to:s="",href:c=s,onClick:u,asChild:f,children:m,className:g,replace:h,state:y,...x}=e,S=Xz(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})}),TC=e=>Array.isArray(e)?e.flatMap(t=>TC(t&&t.type===_.Fragment?t.props.children:t)):[e],Die=({children:e,location:t})=>{const n=$p(),[r]=Tx(n);typeof window<"u"&&(window.__WOUTER_ROUTES__||(window.__WOUTER_ROUTES__=[]),TC(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 TC(e)){let s=0;if(_.isValidElement(o)&&(s=rU(n.parser,o.props.path,t||r,o.props.nest))[0])return _.cloneElement(o,{match:s})}return null};function sV(){const[,e]=P_(),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(AC,{"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(Gae,{"data-loc":"client/src/pages/NotFound.tsx:44",className:"w-4 h-4 mr-2"},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/NotFound.tsx",lineNumber:44,columnNumber:15},this),"Go Home"]},void 0,!0,{fileName:"/home/ubuntu/nac-admin/client/src/pages/NotFound.tsx",lineNumber:40,columnNumber:13},this)},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/NotFound.tsx",lineNumber:36,columnNumber:11},this)]},void 0,!0,{fileName:"/home/ubuntu/nac-admin/client/src/pages/NotFound.tsx",lineNumber:16,columnNumber:9},this)},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/NotFound.tsx",lineNumber:15,columnNumber:7},this)},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/NotFound.tsx",lineNumber:14,columnNumber:5},this)}class Cie extends _.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(tie,{"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 Tie=_.createContext(void 0);function _ie({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(Tie.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 _E="focusScope.autoFocusOnMount",jE="focusScope.autoFocusOnUnmount",lV={bubbles:!1,cancelable:!0},jie="FocusScope",_x=_.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){uV.add(x);const N=document.activeElement;if(!u.contains(N)){const D=new CustomEvent(_E,lV);u.addEventListener(_E,m),u.dispatchEvent(D),D.defaultPrevented||(Rie(Lie(aU(u)),{select:!0}),document.activeElement===N&&il(u))}return()=>{u.removeEventListener(_E,m),setTimeout(()=>{const D=new CustomEvent(jE,lV);u.addEventListener(jE,g),u.dispatchEvent(D),D.defaultPrevented||il(N??document.body,{select:!0}),u.removeEventListener(jE,g),uV.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]=Pie(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 le.jsx(vt.div,{tabIndex:-1,...c,ref:y,onKeyDown:S})});_x.displayName=jie;function Rie(e,{select:t=!1}={}){const n=document.activeElement;for(const r of e)if(il(r,{select:t}),document.activeElement!==n)return}function Pie(e){const t=aU(e),n=cV(t,e),r=cV(t.reverse(),e);return[n,r]}function aU(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 cV(e,t){for(const n of e)if(!Mie(n,{upTo:t}))return n}function Mie(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 kie(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&&kie(e)&&t&&e.select()}}var uV=Iie();function Iie(){let e=[];return{add(t){const n=e[0];t!==n&&n?.pause(),e=dV(e,t),e.unshift(t)},remove(t){e=dV(e,t),e[0]?.resume()}}}function dV(e,t){const n=[...e],r=n.indexOf(t);return r!==-1&&n.splice(r,1),n}function Lie(e){return e.filter(t=>t.tagName!=="A")}var RE=0;function M_(){_.useEffect(()=>{const e=document.querySelectorAll("[data-radix-focus-guard]");return document.body.insertAdjacentElement("afterbegin",e[0]??fV()),document.body.insertAdjacentElement("beforeend",e[1]??fV()),RE++,()=>{RE===1&&document.querySelectorAll("[data-radix-focus-guard]").forEach(t=>t.remove()),RE--}},[])}function fV(){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 iU(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 Vie(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",$ie="with-scroll-bars-hidden",Bie="--removed-body-scroll-bar-size";function PE(e,t){return typeof e=="function"?e(t):e&&(e.current=t),e}function zie(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 Uie=typeof window<"u"?_.useLayoutEffect:_.useEffect,mV=new WeakMap;function qie(e,t){var n=zie(null,function(r){return e.forEach(function(o){return PE(o,r)})});return Uie(function(){var r=mV.get(n);if(r){var o=new Set(r),s=new Set(e),c=n.current;o.forEach(function(u){s.has(u)||PE(u,null)}),s.forEach(function(u){o.has(u)||PE(u,c)})}mV.set(n,e)},[e]),n}function Hie(e){return e}function Fie(e,t){t===void 0&&(t=Hie);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 Kie(e){e===void 0&&(e={});var t=Fie(null);return t.options=Zi({async:!0,ssr:!1},e),t}var oU=function(e){var t=e.sideCar,n=iU(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))};oU.isSideCarExport=!0;function Gie(e,t){return e.useMedium(t),oU}var sU=Kie(),ME=function(){},jx=_.forwardRef(function(e,t){var n=_.useRef(null),r=_.useState({onScrollCapture:ME,onWheelCapture:ME,onTouchMoveCapture:ME}),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=iU(e,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noRelative","noIsolation","inert","allowPinchZoom","as","gapMode"]),A=y,T=qie([n,t]),R=Zi(Zi({},P),o);return _.createElement(_.Fragment,null,g&&_.createElement(A,{sideCar:sU,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))});jx.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1};jx.classNames={fullWidth:Gb,zeroRight:Kb};var Yie=function(){if(typeof __webpack_nonce__<"u")return __webpack_nonce__};function Qie(){if(!document)return null;var e=document.createElement("style");e.type="text/css";var t=Yie();return t&&e.setAttribute("nonce",t),e}function Xie(e,t){e.styleSheet?e.styleSheet.cssText=t:e.appendChild(document.createTextNode(t))}function Wie(e){var t=document.head||document.getElementsByTagName("head")[0];t.appendChild(e)}var Zie=function(){var e=0,t=null;return{add:function(n){e==0&&(t=Qie())&&(Xie(t,n),Wie(t)),e++},remove:function(){e--,!e&&t&&(t.parentNode&&t.parentNode.removeChild(t),t=null)}}},Jie=function(){var e=Zie();return function(t,n){_.useEffect(function(){return e.add(t),function(){e.remove()}},[t&&n])}},lU=function(){var e=Jie(),t=function(n){var r=n.styles,o=n.dynamic;return e(r,o),null};return t},eoe={left:0,top:0,right:0,gap:0},kE=function(e){return parseInt(e||"",10)||0},toe=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[kE(n),kE(r),kE(o)]},noe=function(e){if(e===void 0&&(e="margin"),typeof window>"u")return eoe;var t=toe(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])}},roe=lU(),Cd="data-scroll-locked",aoe=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($ie,` {
|
||
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(Bie,": ").concat(u,`px;
|
||
}
|
||
`)},hV=function(){var e=parseInt(document.body.getAttribute(Cd)||"0",10);return isFinite(e)?e:0},ioe=function(){_.useEffect(function(){return document.body.setAttribute(Cd,(hV()+1).toString()),function(){var e=hV()-1;e<=0?document.body.removeAttribute(Cd):document.body.setAttribute(Cd,e.toString())}},[])},ooe=function(e){var t=e.noRelative,n=e.noImportant,r=e.gapMode,o=r===void 0?"margin":r;ioe();var s=_.useMemo(function(){return noe(o)},[o]);return _.createElement(roe,{styles:aoe(s,!t,o,n?"":"!important")})},_C=!1;if(typeof window<"u")try{var Nb=Object.defineProperty({},"passive",{get:function(){return _C=!0,!0}});window.addEventListener("test",Nb,Nb),window.removeEventListener("test",Nb,Nb)}catch{_C=!1}var md=_C?{passive:!1}:!1,soe=function(e){return e.tagName==="TEXTAREA"},cU=function(e,t){if(!(e instanceof Element))return!1;var n=window.getComputedStyle(e);return n[t]!=="hidden"&&!(n.overflowY===n.overflowX&&!soe(e)&&n[t]==="visible")},loe=function(e){return cU(e,"overflowY")},coe=function(e){return cU(e,"overflowX")},pV=function(e,t){var n=t.ownerDocument,r=t;do{typeof ShadowRoot<"u"&&r instanceof ShadowRoot&&(r=r.host);var o=uU(e,r);if(o){var s=dU(e,r),c=s[1],u=s[2];if(c>u)return!0}r=r.parentNode}while(r&&r!==n.body);return!1},uoe=function(e){var t=e.scrollTop,n=e.scrollHeight,r=e.clientHeight;return[t,n,r]},doe=function(e){var t=e.scrollLeft,n=e.scrollWidth,r=e.clientWidth;return[t,n,r]},uU=function(e,t){return e==="v"?loe(t):coe(t)},dU=function(e,t){return e==="v"?uoe(t):doe(t)},foe=function(e,t){return e==="h"&&t==="rtl"?-1:1},moe=function(e,t,n,r,o){var s=foe(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=dU(e,u),S=x[0],N=x[1],w=x[2],D=N-w-s*S;(S||D)&&uU(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]},gV=function(e){return[e.deltaX,e.deltaY]},vV=function(e){return e&&"current"in e?e.current:e},hoe=function(e,t){return e[0]===t[0]&&e[1]===t[1]},poe=function(e){return`
|
||
.block-interactivity-`.concat(e,` {pointer-events: none;}
|
||
.allow-interactivity-`).concat(e,` {pointer-events: all;}
|
||
`)},goe=0,hd=[];function voe(e){var t=_.useRef([]),n=_.useRef([0,0]),r=_.useRef(),o=_.useState(goe++)[0],s=_.useState(lU)[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=Vie([e.lockRef.current],(e.shards||[]).map(vV),!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=pV(R,T);if(!M)return!0;if(M?A=R:(A=R==="v"?"h":"v",M=pV(R,T)),!M)return!1;if(!r.current&&"changedTouches"in N&&(j||P)&&(r.current=A),!A)return!0;var $=r.current||A;return moe($,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?gV(w):wb(w),C=t.current.filter(function(A){return A.name===w.type&&(A.target===w.target||w.target===A.shadowParent)&&hoe(A.delta,D)})[0];if(C&&C.should){w.cancelable&&w.preventDefault();return}if(!C){var j=(c.current.shards||[]).map(vV).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:boe(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,gV(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:poe(o)}):null,x?_.createElement(ooe,{noRelative:e.noRelative,gapMode:e.gapMode}):null)}function boe(e){for(var t=null;e!==null;)e instanceof ShadowRoot&&(t=e.host,e=e.host),e=e.parentNode;return t}const yoe=Gie(sU,voe);var Rx=_.forwardRef(function(e,t){return _.createElement(jx,Zi({},e,{ref:t,sideCar:yoe}))});Rx.classNames=jx.classNames;var xoe=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={},IE=0,fU=function(e){return e&&(e.host||fU(e.parentNode))},Noe=function(e,t){return t.map(function(n){if(e.contains(n))return n;var r=fU(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})},woe=function(e,t,n,r){var o=Noe(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(),IE++,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)}),IE--,IE||(pd=new WeakMap,pd=new WeakMap,Eb=new WeakMap,Sb={})}},k_=function(e,t,n){n===void 0&&(n="data-aria-hidden");var r=Array.from(Array.isArray(e)?e:[e]),o=xoe(e);return o?(r.push.apply(r,Array.from(o.querySelectorAll("[aria-live], script"))),woe(r,o,n,"aria-hidden")):function(){return null}},Px="Dialog",[mU]=ds(Px),[Eoe,pi]=mU(Px),hU=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:Px});return le.jsx(Eoe,{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})};hU.displayName=Px;var pU="DialogTrigger",gU=_.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,o=pi(pU,n),s=Mt(t,o.triggerRef);return le.jsx(vt.button,{type:"button","aria-haspopup":"dialog","aria-expanded":o.open,"aria-controls":o.contentId,"data-state":V_(o.open),...r,ref:s,onClick:Le(e.onClick,o.onOpenToggle)})});gU.displayName=pU;var I_="DialogPortal",[Soe,vU]=mU(I_,{forceMount:void 0}),bU=e=>{const{__scopeDialog:t,forceMount:n,children:r,container:o}=e,s=pi(I_,t);return le.jsx(Soe,{scope:t,forceMount:n,children:_.Children.map(r,c=>le.jsx(po,{present:n||s.open,children:le.jsx(Ip,{asChild:!0,container:o,children:c})}))})};bU.displayName=I_;var ly="DialogOverlay",yU=_.forwardRef((e,t)=>{const n=vU(ly,e.__scopeDialog),{forceMount:r=n.forceMount,...o}=e,s=pi(ly,e.__scopeDialog);return s.modal?le.jsx(po,{present:r||s.open,children:le.jsx(Ooe,{...o,ref:t})}):null});yU.displayName=ly;var Aoe=Pc("DialogOverlay.RemoveScroll"),Ooe=_.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,o=pi(ly,n);return le.jsx(Rx,{as:Aoe,allowPinchZoom:!0,shards:[o.contentRef],children:le.jsx(vt.div,{"data-state":V_(o.open),...r,ref:t,style:{pointerEvents:"auto",...r.style}})})}),Vc="DialogContent",xU=_.forwardRef((e,t)=>{const n=vU(Vc,e.__scopeDialog),{forceMount:r=n.forceMount,...o}=e,s=pi(Vc,e.__scopeDialog);return le.jsx(po,{present:r||s.open,children:s.modal?le.jsx(Doe,{...o,ref:t}):le.jsx(Coe,{...o,ref:t})})});xU.displayName=Vc;var Doe=_.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 k_(s)},[]),le.jsx(NU,{...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())})}),Coe=_.forwardRef((e,t)=>{const n=pi(Vc,e.__scopeDialog),r=_.useRef(!1),o=_.useRef(!1);return le.jsx(NU,{...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()}})}),NU=_.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 M_(),le.jsxs(le.Fragment,{children:[le.jsx(_x,{asChild:!0,loop:!0,trapped:r,onMountAutoFocus:o,onUnmountAutoFocus:s,children:le.jsx(Mp,{role:"dialog",id:u.contentId,"aria-describedby":u.descriptionId,"aria-labelledby":u.titleId,"data-state":V_(u.open),...c,ref:m,onDismiss:()=>u.onOpenChange(!1)})}),le.jsxs(le.Fragment,{children:[le.jsx(_oe,{titleId:u.titleId}),le.jsx(Roe,{contentRef:f,descriptionId:u.descriptionId})]})]})}),L_="DialogTitle",wU=_.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,o=pi(L_,n);return le.jsx(vt.h2,{id:o.titleId,...r,ref:t})});wU.displayName=L_;var EU="DialogDescription",Toe=_.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,o=pi(EU,n);return le.jsx(vt.p,{id:o.descriptionId,...r,ref:t})});Toe.displayName=EU;var SU="DialogClose",AU=_.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,o=pi(SU,n);return le.jsx(vt.button,{type:"button",...r,ref:t,onClick:Le(e.onClick,()=>o.onOpenChange(!1))})});AU.displayName=SU;function V_(e){return e?"open":"closed"}var OU="DialogTitleWarning",[OAe,DU]=qte(OU,{contentName:Vc,titleName:L_,docsSlug:"dialog"}),_oe=({titleId:e})=>{const t=DU(OU),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},joe="DialogDescriptionWarning",Roe=({contentRef:e,descriptionId:t})=>{const r=`Warning: Missing \`Description\` or \`aria-describedby={undefined}\` for {${DU(joe).contentName}}.`;return _.useEffect(()=>{const o=e.current?.getAttribute("aria-describedby");t&&o&&(document.getElementById(t)||console.warn(r))},[r,e,t]),null},Poe=hU,Moe=gU,koe=bU,Ioe=yU,Loe=xU,Voe=wU,$oe=AU;const CU=_.createContext({isComposing:()=>!1,setComposing:()=>{},justEndedComposing:()=>!1,markCompositionEnd:()=>{}}),$_=()=>_.useContext(CU);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(CU.Provider,{"data-loc":"client/src/components/ui/dialog.tsx:50",value:o,children:b.jsxDEV(Poe,{"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 Kh({...e}){return b.jsxDEV(Moe,{"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 Boe({...e}){return b.jsxDEV(koe,{"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 TU({className:e,...t}){return b.jsxDEV(Ioe,{"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)}TU.displayName="DialogOverlay";function Bc({className:e,children:t,showCloseButton:n=!0,onEscapeKeyDown:r,...o}){const{isComposing:s}=$_(),c=_.useCallback(u=>{if(u.isComposing||s()){u.preventDefault();return}r?.(u)},[s,r]);return b.jsxDEV(Boe,{"data-loc":"client/src/components/ui/dialog.tsx:122","data-slot":"dialog-portal",children:[b.jsxDEV(TU,{"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(Loe,{"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($oe,{"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(oie,{"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(Voe,{"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 _U(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 Qn({className:e,type:t,onKeyDown:n,onCompositionStart:r,onCompositionEnd:o,...s}){const c=$_(),{onCompositionStart:u,onCompositionEnd:f,onKeyDown:m}=_U({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 zoe="Label",jU=_.forwardRef((e,t)=>le.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())}}));jU.displayName=zoe;var Uoe=jU;function Ct({className:e,...t}){return b.jsxDEV(Uoe,{"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 qoe=D_("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 Hoe({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(qoe({variant:t}),e),...n},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/components/ui/alert.tsx",lineNumber:28,columnNumber:5},this)}function Foe({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 B_(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=F.useRef(null),j=F.useRef(new Map).current;return le.jsx(o,{scope:w,itemMap:j,collectionRef:C,children:D})};c.displayName=t;const u=e+"CollectionSlot",f=Pc(u),m=F.forwardRef((N,w)=>{const{scope:D,children:C}=N,j=s(u,D),P=Mt(w,j.collectionRef);return le.jsx(f,{ref:P,children:C})});m.displayName=u;const g=e+"CollectionItemSlot",h="data-radix-collection-item",y=Pc(g),x=F.forwardRef((N,w)=>{const{scope:D,children:C,...j}=N,P=F.useRef(null),A=Mt(w,P),T=s(g,D);return F.useEffect(()=>(T.itemMap.set(P,{ref:P,...j}),()=>void T.itemMap.delete(P))),le.jsx(y,{[h]:"",ref:A,children:C})});x.displayName=g;function S(N){const w=s(e+"CollectionConsumer",N);return F.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 Koe=_.createContext(void 0);function z_(e){const t=_.useContext(Koe);return e||t||"ltr"}var LE="rovingFocusGroup.onEntryFocus",Goe={bubbles:!1,cancelable:!0},Bp="RovingFocusGroup",[jC,RU,Yoe]=B_(Bp),[Qoe,PU]=ds(Bp,[Yoe]),[Xoe,Woe]=Qoe(Bp),MU=_.forwardRef((e,t)=>le.jsx(jC.Provider,{scope:e.__scopeRovingFocusGroup,children:le.jsx(jC.Slot,{scope:e.__scopeRovingFocusGroup,children:le.jsx(Zoe,{...e,ref:t})})}));MU.displayName=Bp;var Zoe=_.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=z_(s),[N,w]=kc({prop:c,defaultProp:u??null,onChange:f,caller:Bp}),[D,C]=_.useState(!1),j=lo(m),P=RU(n),A=_.useRef(!1),[T,R]=_.useState(0);return _.useEffect(()=>{const M=y.current;if(M)return M.addEventListener(LE,j),()=>M.removeEventListener(LE,j)},[j]),le.jsx(Xoe,{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:le.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 I=new CustomEvent(LE,Goe);if(M.currentTarget.dispatchEvent(I),!I.defaultPrevented){const z=P().filter(q=>q.focusable),H=z.find(q=>q.active),G=z.find(q=>q.id===N),J=[H,G,...z].filter(Boolean).map(q=>q.ref.current);LU(J,g)}}A.current=!1}),onBlur:Le(e.onBlur,()=>C(!1))})})}),kU="RovingFocusGroupItem",IU=_.forwardRef((e,t)=>{const{__scopeRovingFocusGroup:n,focusable:r=!0,active:o=!1,tabStopId:s,children:c,...u}=e,f=ro(),m=s||f,g=Woe(kU,n),h=g.currentTabStopId===m,y=RU(n),{onFocusableItemAdd:x,onFocusableItemRemove:S,currentTabStopId:N}=g;return _.useEffect(()=>{if(r)return x(),()=>S()},[r,x,S]),le.jsx(jC.ItemSlot,{scope:n,id:m,focusable:r,active:o,children:le.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=tse(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?nse(j,P+1):j.slice(P+1)}setTimeout(()=>LU(j))}}),children:typeof c=="function"?c({isCurrentTabStop:h,hasTabStop:N!=null}):c})})});IU.displayName=kU;var Joe={ArrowLeft:"prev",ArrowUp:"prev",ArrowRight:"next",ArrowDown:"next",PageUp:"first",Home:"first",PageDown:"last",End:"last"};function ese(e,t){return t!=="rtl"?e:e==="ArrowLeft"?"ArrowRight":e==="ArrowRight"?"ArrowLeft":e}function tse(e,t,n){const r=ese(e.key,n);if(!(t==="vertical"&&["ArrowLeft","ArrowRight"].includes(r))&&!(t==="horizontal"&&["ArrowUp","ArrowDown"].includes(r)))return Joe[r]}function LU(e,t=!1){const n=document.activeElement;for(const r of e)if(r===n||(r.focus({preventScroll:t}),document.activeElement!==n))return}function nse(e,t){return e.map((n,r)=>e[(t+r)%e.length])}var rse=MU,ase=IU,RC=["Enter"," "],ise=["ArrowDown","PageUp","Home"],VU=["ArrowUp","PageDown","End"],ose=[...ise,...VU],sse={ltr:[...RC,"ArrowRight"],rtl:[...RC,"ArrowLeft"]},lse={ltr:["ArrowLeft"],rtl:["ArrowRight"]},zp="Menu",[Gh,cse,use]=B_(zp),[tu,$U]=ds(zp,[use,hf,PU]),Mx=hf(),BU=PU(),[dse,nu]=tu(zp),[fse,Up]=tu(zp),zU=e=>{const{__scopeMenu:t,open:n=!1,children:r,dir:o,onOpenChange:s,modal:c=!0}=e,u=Mx(t),[f,m]=_.useState(null),g=_.useRef(!1),h=lo(s),y=z_(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})}},[]),le.jsx(y_,{...u,children:le.jsx(dse,{scope:t,open:n,onOpenChange:h,content:f,onContentChange:m,children:le.jsx(fse,{scope:t,onClose:_.useCallback(()=>h(!1),[h]),isUsingKeyboardRef:g,dir:y,modal:c,children:r})})})};zU.displayName=zp;var mse="MenuAnchor",U_=_.forwardRef((e,t)=>{const{__scopeMenu:n,...r}=e,o=Mx(n);return le.jsx(x_,{...o,...r,ref:t})});U_.displayName=mse;var q_="MenuPortal",[hse,UU]=tu(q_,{forceMount:void 0}),qU=e=>{const{__scopeMenu:t,forceMount:n,children:r,container:o}=e,s=nu(q_,t);return le.jsx(hse,{scope:t,forceMount:n,children:le.jsx(po,{present:n||s.open,children:le.jsx(Ip,{asChild:!0,container:o,children:r})})})};qU.displayName=q_;var Ba="MenuContent",[pse,H_]=tu(Ba),HU=_.forwardRef((e,t)=>{const n=UU(Ba,e.__scopeMenu),{forceMount:r=n.forceMount,...o}=e,s=nu(Ba,e.__scopeMenu),c=Up(Ba,e.__scopeMenu);return le.jsx(Gh.Provider,{scope:e.__scopeMenu,children:le.jsx(po,{present:r||s.open,children:le.jsx(Gh.Slot,{scope:e.__scopeMenu,children:c.modal?le.jsx(gse,{...o,ref:t}):le.jsx(vse,{...o,ref:t})})})})}),gse=_.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 k_(s)},[]),le.jsx(F_,{...e,ref:o,trapFocus:n.open,disableOutsidePointerEvents:n.open,disableOutsideScroll:!0,onFocusOutside:Le(e.onFocusOutside,s=>s.preventDefault(),{checkForDefaultPrevented:!1}),onDismiss:()=>n.onOpenChange(!1)})}),vse=_.forwardRef((e,t)=>{const n=nu(Ba,e.__scopeMenu);return le.jsx(F_,{...e,ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,disableOutsideScroll:!1,onDismiss:()=>n.onOpenChange(!1)})}),bse=Pc("MenuContent.ScrollLock"),F_=_.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=Mx(n),j=BU(n),P=cse(n),[A,T]=_.useState(null),R=_.useRef(null),M=Mt(t,R,w.onContentChange),$=_.useRef(0),I=_.useRef(""),z=_.useRef(0),H=_.useRef(null),G=_.useRef("right"),Y=_.useRef(0),J=S?Rx:_.Fragment,q=S?{as:bse,allowPinchZoom:!0}:void 0,U=te=>{const ne=I.current+te,L=P().filter(ue=>!ue.disabled),Q=document.activeElement,W=L.find(ue=>ue.ref.current===Q)?.textValue,ae=L.map(ue=>ue.textValue),ge=_se(ae,ne,W),we=L.find(ue=>ue.textValue===ge)?.ref.current;(function ue(xe){I.current=xe,window.clearTimeout($.current),xe!==""&&($.current=window.setTimeout(()=>ue(""),1e3))})(ne),we&&setTimeout(()=>we.focus())};_.useEffect(()=>()=>window.clearTimeout($.current),[]),M_();const K=_.useCallback(te=>G.current===H.current?.side&&Rse(te,H.current?.area),[]);return le.jsx(pse,{scope:n,searchRef:I,onItemEnter:_.useCallback(te=>{K(te)&&te.preventDefault()},[K]),onItemLeave:_.useCallback(te=>{K(te)||(R.current?.focus(),T(null))},[K]),onTriggerLeave:_.useCallback(te=>{K(te)&&te.preventDefault()},[K]),pointerGraceTimerRef:z,onPointerGraceIntentChange:_.useCallback(te=>{H.current=te},[]),children:le.jsx(J,{...q,children:le.jsx(_x,{asChild:!0,trapped:o,onMountAutoFocus:Le(s,te=>{te.preventDefault(),R.current?.focus({preventScroll:!0})}),onUnmountAutoFocus:c,children:le.jsx(Mp,{asChild:!0,disableOutsidePointerEvents:u,onEscapeKeyDown:m,onPointerDownOutside:g,onFocusOutside:h,onInteractOutside:y,onDismiss:x,children:le.jsx(rse,{asChild:!0,...j,dir:D.dir,orientation:"vertical",loop:r,currentTabStopId:A,onCurrentTabStopIdChange:T,onEntryFocus:Le(f,te=>{D.isUsingKeyboardRef.current||te.preventDefault()}),preventScrollOnEntryFocus:!0,children:le.jsx(N_,{role:"menu","aria-orientation":"vertical","data-state":oq(w.open),"data-radix-menu-content":"",dir:D.dir,...C,...N,ref:M,style:{outline:"none",...N.style},onKeyDown:Le(N.onKeyDown,te=>{const L=te.target.closest("[data-radix-menu-content]")===te.currentTarget,Q=te.ctrlKey||te.altKey||te.metaKey,W=te.key.length===1;L&&(te.key==="Tab"&&te.preventDefault(),!Q&&W&&U(te.key));const ae=R.current;if(te.target!==ae||!ose.includes(te.key))return;te.preventDefault();const we=P().filter(ue=>!ue.disabled).map(ue=>ue.ref.current);VU.includes(te.key)&&we.reverse(),Cse(we)}),onBlur:Le(e.onBlur,te=>{te.currentTarget.contains(te.target)||(window.clearTimeout($.current),I.current="")}),onPointerMove:Le(e.onPointerMove,Yh(te=>{const ne=te.target,L=Y.current!==te.clientX;if(te.currentTarget.contains(ne)&&L){const Q=te.clientX>Y.current?"right":"left";G.current=Q,Y.current=te.clientX}}))})})})})})})});HU.displayName=Ba;var yse="MenuGroup",K_=_.forwardRef((e,t)=>{const{__scopeMenu:n,...r}=e;return le.jsx(vt.div,{role:"group",...r,ref:t})});K_.displayName=yse;var xse="MenuLabel",FU=_.forwardRef((e,t)=>{const{__scopeMenu:n,...r}=e;return le.jsx(vt.div,{...r,ref:t})});FU.displayName=xse;var cy="MenuItem",bV="menu.itemSelect",kx=_.forwardRef((e,t)=>{const{disabled:n=!1,onSelect:r,...o}=e,s=_.useRef(null),c=Up(cy,e.__scopeMenu),u=H_(cy,e.__scopeMenu),f=Mt(t,s),m=_.useRef(!1),g=()=>{const h=s.current;if(!n&&h){const y=new CustomEvent(bV,{bubbles:!0,cancelable:!0});h.addEventListener(bV,x=>r?.(x),{once:!0}),K9(h,y),y.defaultPrevented?m.current=!1:c.onClose()}};return le.jsx(KU,{...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===" "||RC.includes(h.key)&&(h.currentTarget.click(),h.preventDefault())})})});kx.displayName=cy;var KU=_.forwardRef((e,t)=>{const{__scopeMenu:n,disabled:r=!1,textValue:o,...s}=e,c=H_(cy,n),u=BU(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]),le.jsx(Gh.ItemSlot,{scope:n,disabled:r,textValue:o??y,children:le.jsx(ase,{asChild:!0,...u,focusable:!r,children:le.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,Yh(S=>{r?c.onItemLeave(S):(c.onItemEnter(S),S.defaultPrevented||S.currentTarget.focus({preventScroll:!0}))})),onPointerLeave:Le(e.onPointerLeave,Yh(S=>c.onItemLeave(S))),onFocus:Le(e.onFocus,()=>h(!0)),onBlur:Le(e.onBlur,()=>h(!1))})})})}),Nse="MenuCheckboxItem",GU=_.forwardRef((e,t)=>{const{checked:n=!1,onCheckedChange:r,...o}=e;return le.jsx(ZU,{scope:e.__scopeMenu,checked:n,children:le.jsx(kx,{role:"menuitemcheckbox","aria-checked":uy(n)?"mixed":n,...o,ref:t,"data-state":Y_(n),onSelect:Le(o.onSelect,()=>r?.(uy(n)?!0:!n),{checkForDefaultPrevented:!1})})})});GU.displayName=Nse;var YU="MenuRadioGroup",[wse,Ese]=tu(YU,{value:void 0,onValueChange:()=>{}}),QU=_.forwardRef((e,t)=>{const{value:n,onValueChange:r,...o}=e,s=lo(r);return le.jsx(wse,{scope:e.__scopeMenu,value:n,onValueChange:s,children:le.jsx(K_,{...o,ref:t})})});QU.displayName=YU;var XU="MenuRadioItem",WU=_.forwardRef((e,t)=>{const{value:n,...r}=e,o=Ese(XU,e.__scopeMenu),s=n===o.value;return le.jsx(ZU,{scope:e.__scopeMenu,checked:s,children:le.jsx(kx,{role:"menuitemradio","aria-checked":s,...r,ref:t,"data-state":Y_(s),onSelect:Le(r.onSelect,()=>o.onValueChange?.(n),{checkForDefaultPrevented:!1})})})});WU.displayName=XU;var G_="MenuItemIndicator",[ZU,Sse]=tu(G_,{checked:!1}),JU=_.forwardRef((e,t)=>{const{__scopeMenu:n,forceMount:r,...o}=e,s=Sse(G_,n);return le.jsx(po,{present:r||uy(s.checked)||s.checked===!0,children:le.jsx(vt.span,{...o,ref:t,"data-state":Y_(s.checked)})})});JU.displayName=G_;var Ase="MenuSeparator",eq=_.forwardRef((e,t)=>{const{__scopeMenu:n,...r}=e;return le.jsx(vt.div,{role:"separator","aria-orientation":"horizontal",...r,ref:t})});eq.displayName=Ase;var Ose="MenuArrow",tq=_.forwardRef((e,t)=>{const{__scopeMenu:n,...r}=e,o=Mx(n);return le.jsx(w_,{...o,...r,ref:t})});tq.displayName=Ose;var Dse="MenuSub",[DAe,nq]=tu(Dse),yh="MenuSubTrigger",rq=_.forwardRef((e,t)=>{const n=nu(yh,e.__scopeMenu),r=Up(yh,e.__scopeMenu),o=nq(yh,e.__scopeMenu),s=H_(yh,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]),le.jsx(U_,{asChild:!0,...m,children:le.jsx(KU,{id:o.triggerId,"aria-haspopup":"menu","aria-expanded":n.open,"aria-controls":o.contentId,"data-state":oq(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,Yh(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,Yh(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===" "||sse[r.dir].includes(h.key)&&(n.onOpenChange(!0),n.content?.focus(),h.preventDefault())})})})});rq.displayName=yh;var aq="MenuSubContent",iq=_.forwardRef((e,t)=>{const n=UU(Ba,e.__scopeMenu),{forceMount:r=n.forceMount,...o}=e,s=nu(Ba,e.__scopeMenu),c=Up(Ba,e.__scopeMenu),u=nq(aq,e.__scopeMenu),f=_.useRef(null),m=Mt(t,f);return le.jsx(Gh.Provider,{scope:e.__scopeMenu,children:le.jsx(po,{present:r||s.open,children:le.jsx(Gh.Slot,{scope:e.__scopeMenu,children:le.jsx(F_,{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=lse[c.dir].includes(g.key);h&&y&&(s.onOpenChange(!1),u.trigger?.focus(),g.preventDefault())})})})})})});iq.displayName=aq;function oq(e){return e?"open":"closed"}function uy(e){return e==="indeterminate"}function Y_(e){return uy(e)?"indeterminate":e?"checked":"unchecked"}function Cse(e){const t=document.activeElement;for(const n of e)if(n===t||(n.focus(),document.activeElement!==t))return}function Tse(e,t){return e.map((n,r)=>e[(t+r)%e.length])}function _se(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=Tse(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 jse(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 Rse(e,t){if(!t)return!1;const n={x:e.clientX,y:e.clientY};return jse(n,t)}function Yh(e){return t=>t.pointerType==="mouse"?e(t):void 0}var Pse=zU,Mse=U_,kse=qU,Ise=HU,Lse=K_,Vse=FU,$se=kx,Bse=GU,zse=QU,Use=WU,qse=JU,Hse=eq,Fse=tq,Kse=rq,Gse=iq,Ix="DropdownMenu",[Yse]=ds(Ix,[$U]),Mr=$U(),[Qse,sq]=Yse(Ix),lq=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:Ix});return le.jsx(Qse,{scope:t,triggerId:ro(),triggerRef:m,contentId:ro(),open:g,onOpenChange:h,onOpenToggle:_.useCallback(()=>h(y=>!y),[h]),modal:u,children:le.jsx(Pse,{...f,open:g,onOpenChange:h,dir:r,modal:u,children:n})})};lq.displayName=Ix;var cq="DropdownMenuTrigger",uq=_.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,disabled:r=!1,...o}=e,s=sq(cq,n),c=Mr(n);return le.jsx(Mse,{asChild:!0,...c,children:le.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())})})})});uq.displayName=cq;var Xse="DropdownMenuPortal",dq=e=>{const{__scopeDropdownMenu:t,...n}=e,r=Mr(t);return le.jsx(kse,{...r,...n})};dq.displayName=Xse;var fq="DropdownMenuContent",mq=_.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=sq(fq,n),s=Mr(n),c=_.useRef(!1);return le.jsx(Ise,{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)"}})});mq.displayName=fq;var Wse="DropdownMenuGroup",Zse=_.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=Mr(n);return le.jsx(Lse,{...o,...r,ref:t})});Zse.displayName=Wse;var Jse="DropdownMenuLabel",hq=_.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=Mr(n);return le.jsx(Vse,{...o,...r,ref:t})});hq.displayName=Jse;var ele="DropdownMenuItem",pq=_.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=Mr(n);return le.jsx($se,{...o,...r,ref:t})});pq.displayName=ele;var tle="DropdownMenuCheckboxItem",nle=_.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=Mr(n);return le.jsx(Bse,{...o,...r,ref:t})});nle.displayName=tle;var rle="DropdownMenuRadioGroup",ale=_.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=Mr(n);return le.jsx(zse,{...o,...r,ref:t})});ale.displayName=rle;var ile="DropdownMenuRadioItem",ole=_.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=Mr(n);return le.jsx(Use,{...o,...r,ref:t})});ole.displayName=ile;var sle="DropdownMenuItemIndicator",lle=_.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=Mr(n);return le.jsx(qse,{...o,...r,ref:t})});lle.displayName=sle;var cle="DropdownMenuSeparator",gq=_.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=Mr(n);return le.jsx(Hse,{...o,...r,ref:t})});gq.displayName=cle;var ule="DropdownMenuArrow",dle=_.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=Mr(n);return le.jsx(Fse,{...o,...r,ref:t})});dle.displayName=ule;var fle="DropdownMenuSubTrigger",mle=_.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=Mr(n);return le.jsx(Kse,{...o,...r,ref:t})});mle.displayName=fle;var hle="DropdownMenuSubContent",ple=_.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=Mr(n);return le.jsx(Gse,{...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)"}})});ple.displayName=hle;var gle=lq,vle=uq,ble=dq,yle=mq,xle=hq,Nle=pq,wle=gq;function Ele({...e}){return b.jsxDEV(gle,{"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 Sle({...e}){return b.jsxDEV(vle,{"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 Ale({className:e,sideOffset:t=4,...n}){return b.jsxDEV(ble,{"data-loc":"client/src/components/ui/dropdown-menu.tsx:38",children:b.jsxDEV(yle,{"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 Ole({className:e,inset:t,variant:n="default",...r}){return b.jsxDEV(Nle,{"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 Dle({className:e,inset:t,...n}){return b.jsxDEV(xle,{"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 Cle({className:e,...t}){return b.jsxDEV(wle,{"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 vq({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(Ele,{"data-loc":"client/src/components/LanguageSwitcher.tsx:46",children:[b.jsxDEV(Sle,{"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(Ale,{"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(Dle,{"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(Cle,{"data-loc":"client/src/components/LanguageSwitcher.tsx:68",className:"bg-slate-700"},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/components/LanguageSwitcher.tsx",lineNumber:68,columnNumber:9},this),Ob.map(c=>b.jsxDEV(Ole,{"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 Tle(){P_();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(vq,{"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($z,{"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(Zae,{"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(Qn,{"data-loc":"client/src/pages/Login.tsx:81",id:"email",type:"email",placeholder:"admin@newassetchain.io",value:t,onChange:m=>n(m.target.value),className:"pl-10 bg-input border-border/50 focus:border-primary",disabled: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(Xae,{"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(Qn,{"data-loc":"client/src/pages/Login.tsx:98",id:"password",type:"password",placeholder:"••••••••",value:r,onChange:m=>o(m.target.value),className:"pl-10 bg-input border-border/50 focus:border-primary",disabled: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(Hoe,{"data-loc":"client/src/pages/Login.tsx:112",variant:"destructive",className:"py-2",children:b.jsxDEV(Foe,{"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 _le=D_("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?H9:"span";return b.jsxDEV(o,{"data-loc":"client/src/components/ui/badge.tsx:38","data-slot":"badge",className:wt(_le({variant:t}),e),...r},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/components/ui/badge.tsx",lineNumber:38,columnNumber:5},this)}var VE,yV;function Gr(){if(yV)return VE;yV=1;var e=Array.isArray;return VE=e,VE}var $E,xV;function bq(){if(xV)return $E;xV=1;var e=typeof cb=="object"&&cb&&cb.Object===Object&&cb;return $E=e,$E}var BE,NV;function go(){if(NV)return BE;NV=1;var e=bq(),t=typeof self=="object"&&self&&self.Object===Object&&self,n=e||t||Function("return this")();return BE=n,BE}var zE,wV;function qp(){if(wV)return zE;wV=1;var e=go(),t=e.Symbol;return zE=t,zE}var UE,EV;function jle(){if(EV)return UE;EV=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 UE=s,UE}var qE,SV;function Rle(){if(SV)return qE;SV=1;var e=Object.prototype,t=e.toString;function n(r){return t.call(r)}return qE=n,qE}var HE,AV;function fs(){if(AV)return HE;AV=1;var e=qp(),t=jle(),n=Rle(),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 HE=c,HE}var FE,OV;function ms(){if(OV)return FE;OV=1;function e(t){return t!=null&&typeof t=="object"}return FE=e,FE}var KE,DV;function bf(){if(DV)return KE;DV=1;var e=fs(),t=ms(),n="[object Symbol]";function r(o){return typeof o=="symbol"||t(o)&&e(o)==n}return KE=r,KE}var GE,CV;function Q_(){if(CV)return GE;CV=1;var e=Gr(),t=bf(),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 GE=o,GE}var YE,TV;function xl(){if(TV)return YE;TV=1;function e(t){var n=typeof t;return t!=null&&(n=="object"||n=="function")}return YE=e,YE}var QE,_V;function X_(){if(_V)return QE;_V=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 QE=c,QE}var XE,jV;function Ple(){if(jV)return XE;jV=1;var e=go(),t=e["__core-js_shared__"];return XE=t,XE}var WE,RV;function Mle(){if(RV)return WE;RV=1;var e=Ple(),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 WE=n,WE}var ZE,PV;function yq(){if(PV)return ZE;PV=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 ZE=n,ZE}var JE,MV;function kle(){if(MV)return JE;MV=1;var e=X_(),t=Mle(),n=xl(),r=yq(),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 JE=h,JE}var eS,kV;function Ile(){if(kV)return eS;kV=1;function e(t,n){return t?.[n]}return eS=e,eS}var tS,IV;function ru(){if(IV)return tS;IV=1;var e=kle(),t=Ile();function n(r,o){var s=t(r,o);return e(s)?s:void 0}return tS=n,tS}var nS,LV;function Lx(){if(LV)return nS;LV=1;var e=ru(),t=e(Object,"create");return nS=t,nS}var rS,VV;function Lle(){if(VV)return rS;VV=1;var e=Lx();function t(){this.__data__=e?e(null):{},this.size=0}return rS=t,rS}var aS,$V;function Vle(){if($V)return aS;$V=1;function e(t){var n=this.has(t)&&delete this.__data__[t];return this.size-=n?1:0,n}return aS=e,aS}var iS,BV;function $le(){if(BV)return iS;BV=1;var e=Lx(),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 iS=o,iS}var oS,zV;function Ble(){if(zV)return oS;zV=1;var e=Lx(),t=Object.prototype,n=t.hasOwnProperty;function r(o){var s=this.__data__;return e?s[o]!==void 0:n.call(s,o)}return oS=r,oS}var sS,UV;function zle(){if(UV)return sS;UV=1;var e=Lx(),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 sS=n,sS}var lS,qV;function Ule(){if(qV)return lS;qV=1;var e=Lle(),t=Vle(),n=$le(),r=Ble(),o=zle();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,lS=s,lS}var cS,HV;function qle(){if(HV)return cS;HV=1;function e(){this.__data__=[],this.size=0}return cS=e,cS}var uS,FV;function W_(){if(FV)return uS;FV=1;function e(t,n){return t===n||t!==t&&n!==n}return uS=e,uS}var dS,KV;function Vx(){if(KV)return dS;KV=1;var e=W_();function t(n,r){for(var o=n.length;o--;)if(e(n[o][0],r))return o;return-1}return dS=t,dS}var fS,GV;function Hle(){if(GV)return fS;GV=1;var e=Vx(),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 fS=r,fS}var mS,YV;function Fle(){if(YV)return mS;YV=1;var e=Vx();function t(n){var r=this.__data__,o=e(r,n);return o<0?void 0:r[o][1]}return mS=t,mS}var hS,QV;function Kle(){if(QV)return hS;QV=1;var e=Vx();function t(n){return e(this.__data__,n)>-1}return hS=t,hS}var pS,XV;function Gle(){if(XV)return pS;XV=1;var e=Vx();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 pS=t,pS}var gS,WV;function $x(){if(WV)return gS;WV=1;var e=qle(),t=Hle(),n=Fle(),r=Kle(),o=Gle();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,gS=s,gS}var vS,ZV;function Z_(){if(ZV)return vS;ZV=1;var e=ru(),t=go(),n=e(t,"Map");return vS=n,vS}var bS,JV;function Yle(){if(JV)return bS;JV=1;var e=Ule(),t=$x(),n=Z_();function r(){this.size=0,this.__data__={hash:new e,map:new(n||t),string:new e}}return bS=r,bS}var yS,e4;function Qle(){if(e4)return yS;e4=1;function e(t){var n=typeof t;return n=="string"||n=="number"||n=="symbol"||n=="boolean"?t!=="__proto__":t===null}return yS=e,yS}var xS,t4;function Bx(){if(t4)return xS;t4=1;var e=Qle();function t(n,r){var o=n.__data__;return e(r)?o[typeof r=="string"?"string":"hash"]:o.map}return xS=t,xS}var NS,n4;function Xle(){if(n4)return NS;n4=1;var e=Bx();function t(n){var r=e(this,n).delete(n);return this.size-=r?1:0,r}return NS=t,NS}var wS,r4;function Wle(){if(r4)return wS;r4=1;var e=Bx();function t(n){return e(this,n).get(n)}return wS=t,wS}var ES,a4;function Zle(){if(a4)return ES;a4=1;var e=Bx();function t(n){return e(this,n).has(n)}return ES=t,ES}var SS,i4;function Jle(){if(i4)return SS;i4=1;var e=Bx();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 SS=t,SS}var AS,o4;function J_(){if(o4)return AS;o4=1;var e=Yle(),t=Xle(),n=Wle(),r=Zle(),o=Jle();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,AS=s,AS}var OS,s4;function xq(){if(s4)return OS;s4=1;var e=J_(),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,OS=n,OS}var DS,l4;function ece(){if(l4)return DS;l4=1;var e=xq(),t=500;function n(r){var o=e(r,function(c){return s.size===t&&s.clear(),c}),s=o.cache;return o}return DS=n,DS}var CS,c4;function tce(){if(c4)return CS;c4=1;var e=ece(),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 CS=r,CS}var TS,u4;function ej(){if(u4)return TS;u4=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 TS=e,TS}var _S,d4;function nce(){if(d4)return _S;d4=1;var e=qp(),t=ej(),n=Gr(),r=bf(),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 _S=c,_S}var jS,f4;function Nq(){if(f4)return jS;f4=1;var e=nce();function t(n){return n==null?"":e(n)}return jS=t,jS}var RS,m4;function wq(){if(m4)return RS;m4=1;var e=Gr(),t=Q_(),n=tce(),r=Nq();function o(s,c){return e(s)?s:t(s,c)?[s]:n(r(s))}return RS=o,RS}var PS,h4;function zx(){if(h4)return PS;h4=1;var e=bf();function t(n){if(typeof n=="string"||e(n))return n;var r=n+"";return r=="0"&&1/n==-1/0?"-0":r}return PS=t,PS}var MS,p4;function tj(){if(p4)return MS;p4=1;var e=wq(),t=zx();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 MS=n,MS}var kS,g4;function Eq(){if(g4)return kS;g4=1;var e=tj();function t(n,r,o){var s=n==null?void 0:e(n,r);return s===void 0?o:s}return kS=t,kS}var rce=Eq();const va=Bt(rce);var IS,v4;function ace(){if(v4)return IS;v4=1;function e(t){return t==null}return IS=e,IS}var ice=ace();const ot=Bt(ice);var LS,b4;function oce(){if(b4)return LS;b4=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 LS=o,LS}var sce=oce();const qc=Bt(sce);var lce=X_();const Xe=Bt(lce);var cce=xl();const yf=Bt(cce);var VS={exports:{}},Lt={},y4;function uce(){if(y4)return Lt;y4=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,I=n,z=y,H=h,G=t,Y=o,J=r,q=m,U=g,K=!1,te=!1;function ne(Ne){return K||(K=!0,console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 18+.")),!1}function L(Ne){return te||(te=!0,console.warn("The ReactIs.isConcurrentMode() alias has been deprecated, and will be removed in React 18+.")),!1}function Q(Ne){return A(Ne)===c}function W(Ne){return A(Ne)===s}function ae(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 ue(Ne){return A(Ne)===y}function xe(Ne){return A(Ne)===h}function me(Ne){return A(Ne)===t}function ye(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=I,Lt.Lazy=z,Lt.Memo=H,Lt.Portal=G,Lt.Profiler=Y,Lt.StrictMode=J,Lt.Suspense=q,Lt.SuspenseList=U,Lt.isAsyncMode=ne,Lt.isConcurrentMode=L,Lt.isContextConsumer=Q,Lt.isContextProvider=W,Lt.isElement=ae,Lt.isForwardRef=ge,Lt.isFragment=we,Lt.isLazy=ue,Lt.isMemo=xe,Lt.isPortal=me,Lt.isProfiler=ye,Lt.isStrictMode=de,Lt.isSuspense=ie,Lt.isSuspenseList=ze,Lt.isValidElementType=P,Lt.typeOf=A})(),Lt}var x4;function dce(){return x4||(x4=1,VS.exports=uce()),VS.exports}var fce=dce(),$S,N4;function Sq(){if(N4)return $S;N4=1;var e=fs(),t=ms(),n="[object Number]";function r(o){return typeof o=="number"||t(o)&&e(o)==n}return $S=r,$S}var BS,w4;function mce(){if(w4)return BS;w4=1;var e=Sq();function t(n){return e(n)&&n!=+n}return BS=t,BS}var hce=mce();const xf=Bt(hce);var pce=Sq();const gce=Bt(pce);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 gce(t)&&!xf(t)},vce=function(t){return ot(t)},$n=function(t){return Oe(t)||qc(t)},bce=0,Nf=function(t){var n=++bce;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 xf(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},yce=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 xce=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 PC(e){"@babel/helpers - typeof";return PC=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},PC(e)}var Nce=["viewBox","children"],wce=["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"],E4=["points","pathLength"],zS={svg:Nce,polygon:E4,polyline:E4},nj=["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),!yf(r))return null;var o={};return Object.keys(r).forEach(function(s){nj.includes(s)&&(o[s]=n||function(c){return r[s](r,c)})}),o},Ece=function(t,n,r){return function(o){return t(n,r,o),null}},Hc=function(t,n,r){if(!yf(t)||PC(t)!=="object")return null;var o=null;return Object.keys(t).forEach(function(s){var c=t[s];nj.includes(s)&&typeof c=="function"&&(o||(o={}),o[s]=Ece(c,n,r))}),o},Sce=["children"],Ace=["children"];function S4(e,t){if(e==null)return{};var n=Oce(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 Oce(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 MC(e){"@babel/helpers - typeof";return MC=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},MC(e)}var A4={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":""},O4=null,US=null,rj=function e(t){if(t===O4&&Array.isArray(US))return US;var n=[];return _.Children.forEach(t,function(r){ot(r)||(fce.isFragment(r)?n=n.concat(e(r.props.children)):n.push(r))}),US=n,O4=t,n};function Ua(e,t){var n=[],r=[];return Array.isArray(t)?r=t.map(function(o){return ns(o)}):r=[ns(t)],rj(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 D4=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)},Dce=["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"],Cce=function(t){return t&&t.type&&qc(t.type)&&Dce.indexOf(t.type)>=0},Tce=function(t){return t&&MC(t)==="object"&&"clipDot"in t},_ce=function(t,n,r,o){var s,c=(s=zS?.[o])!==null&&s!==void 0?s:[];return n.startsWith("data-")||!Xe(t)&&(o&&c.includes(n)||wce.includes(n))||r&&nj.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),!yf(o))return null;var s={};return Object.keys(o).forEach(function(c){var u;_ce((u=o)===null||u===void 0?void 0:u[c],c,n,r)&&(s[c]=o[c])}),s},kC=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 C4(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(!C4(s,c))return!1}return!0},C4=function(t,n){if(ot(t)&&ot(n))return!0;if(!ot(t)&&!ot(n)){var r=t.props||{},o=r.children,s=S4(r,Sce),c=n.props||{},u=c.children,f=S4(c,Ace);return o&&u?Td(s,f)&&kC(o,u):!o&&!u?Td(s,f):!1}return!1},T4=function(t,n){var r=[],o={};return rj(t).forEach(function(s,c){if(Cce(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},jce=function(t){var n=t&&t.type;return n&&A4[n]?A4[n]:null},Rce=function(t,n){return rj(n).indexOf(t)},Pce=["children","width","height","viewBox","className","style","title","desc"];function IC(){return IC=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},IC.apply(this,arguments)}function Mce(e,t){if(e==null)return{};var n=kce(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 kce(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 LC(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=Mce(e,Pce),g=o||{width:n,height:r,x:0,y:0},h=it("recharts-surface",s);return F.createElement("svg",IC({},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)}),F.createElement("title",null,u),F.createElement("desc",null,f),t)}var Ice=["children","className"];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 Lce(e,t){if(e==null)return{};var n=Vce(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 Vce(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=F.forwardRef(function(e,t){var n=e.children,r=e.className,o=Lce(e,Ice),s=it("recharts-layer",r);return F.createElement("g",VC({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++]}))}},qS,_4;function $ce(){if(_4)return qS;_4=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 qS=e,qS}var HS,j4;function Bce(){if(j4)return HS;j4=1;var e=$ce();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 HS=t,HS}var FS,R4;function Aq(){if(R4)return FS;R4=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 FS=f,FS}var KS,P4;function zce(){if(P4)return KS;P4=1;function e(t){return t.split("")}return KS=e,KS}var GS,M4;function Uce(){if(M4)return GS;M4=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 GS=P,GS}var YS,k4;function qce(){if(k4)return YS;k4=1;var e=zce(),t=Aq(),n=Uce();function r(o){return t(o)?n(o):e(o)}return YS=r,YS}var QS,I4;function Hce(){if(I4)return QS;I4=1;var e=Bce(),t=Aq(),n=qce(),r=Nq();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 QS=o,QS}var XS,L4;function Fce(){if(L4)return XS;L4=1;var e=Hce(),t=e("toUpperCase");return XS=t,XS}var Kce=Fce();const Ux=Bt(Kce);function Jt(e){return function(){return e}}const Oq=Math.cos,my=Math.sin,gi=Math.sqrt,hy=Math.PI,qx=2*hy,$C=Math.PI,BC=2*$C,vc=1e-6,Gce=BC-vc;function Dq(e){this._+=e[0];for(let t=1,n=e.length;t<n;++t)this._+=arguments[t]+e[t]}function Yce(e){let t=Math.floor(e);if(!(t>=0))throw new Error(`invalid digits: ${e}`);if(t>15)return Dq;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 Qce{constructor(t){this._x0=this._y0=this._x1=this._y1=null,this._="",this._append=t==null?Dq:Yce(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(($C-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%BC+BC),y>Gce?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>=$C)},${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 aj(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 Qce(t)}function ij(e){return typeof e=="object"&&"length"in e?e:Array.from(e)}function Cq(e){this._context=e}Cq.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._point=0},lineEnd:function(){(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;default:this._context.lineTo(e,t);break}}};function Hx(e){return new Cq(e)}function Tq(e){return e[0]}function _q(e){return e[1]}function jq(e,t){var n=Jt(!0),r=null,o=Hx,s=null,c=aj(u);e=typeof e=="function"?e:e===void 0?Tq:Jt(e),t=typeof t=="function"?t:t===void 0?_q:Jt(t);function u(f){var m,g=(f=ij(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=Hx,u=null,f=aj(m);e=typeof e=="function"?e:e===void 0?Tq:Jt(+e),t=typeof t=="function"?t:Jt(t===void 0?0:+t),n=typeof n=="function"?n:n===void 0?_q:Jt(+n);function m(h){var y,x,S,N=(h=ij(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 jq().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 Rq{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 Xce(e){return new Rq(e,!0)}function Wce(e){return new Rq(e,!1)}const oj={draw(e,t){const n=gi(t/hy);e.moveTo(n,0),e.arc(0,0,n,0,qx)}},Zce={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()}},Pq=gi(1/3),Jce=Pq*2,eue={draw(e,t){const n=gi(t/Jce),r=n*Pq;e.moveTo(0,-n),e.lineTo(r,0),e.lineTo(0,n),e.lineTo(-r,0),e.closePath()}},tue={draw(e,t){const n=gi(t),r=-n/2;e.rect(r,r,n,n)}},nue=.8908130915292852,Mq=my(hy/10)/my(7*hy/10),rue=my(qx/10)*Mq,aue=-Oq(qx/10)*Mq,iue={draw(e,t){const n=gi(t*nue),r=rue*n,o=aue*n;e.moveTo(0,-n),e.lineTo(r,o);for(let s=1;s<5;++s){const c=qx*s/5,u=Oq(c),f=my(c);e.lineTo(f*n,-u*n),e.lineTo(u*r-f*o,f*r+u*o)}e.closePath()}},WS=gi(3),oue={draw(e,t){const n=-gi(t/(WS*3));e.moveTo(0,n*2),e.lineTo(-WS*n,-n),e.lineTo(WS*n,-n),e.closePath()}},Ma=-.5,ka=gi(3)/2,zC=1/gi(12),sue=(zC/2+1)*3,lue={draw(e,t){const n=gi(t/sue),r=n/2,o=n*zC,s=r,c=n*zC+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 cue(e,t){let n=null,r=aj(o);e=typeof e=="function"?e:Jt(e||oj),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 kq(e){this._context=e}kq.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 uue(e){return new kq(e)}function Iq(e){this._context=e}Iq.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 due(e){return new Iq(e)}function Lq(e){this._context=e}Lq.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 fue(e){return new Lq(e)}function Vq(e){this._context=e}Vq.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 mue(e){return new Vq(e)}function V4(e){return e<0?-1:1}function $4(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(V4(s)+V4(c))*Math.min(Math.abs(s),Math.abs(c),.5*Math.abs(u))||0}function B4(e,t){var n=e._x1-e._x0;return n?(3*(e._y1-e._y0)/n-t)/2:t}function ZS(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:ZS(this,this._t0,B4(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,ZS(this,B4(this,n=$4(this,e,t)),n);break;default:ZS(this,this._t0,n=$4(this,e,t));break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t,this._t0=n}}};function $q(e){this._context=new Bq(e)}($q.prototype=Object.create(vy.prototype)).point=function(e,t){vy.prototype.point.call(this,t,e)};function Bq(e){this._context=e}Bq.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 hue(e){return new vy(e)}function pue(e){return new $q(e)}function zq(e){this._context=e}zq.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=z4(e),o=z4(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 z4(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 gue(e){return new zq(e)}function Fx(e,t){this._context=e,this._t=t}Fx.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 vue(e){return new Fx(e,.5)}function bue(e){return new Fx(e,0)}function yue(e){return new Fx(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 UC(e){for(var t=e.length,n=new Array(t);--t>=0;)n[t]=t;return n}function xue(e,t){return e[t]}function Nue(e){const t=[];return t.key=e,t}function wue(){var e=Jt([]),t=UC,n=Id,r=xue;function o(s){var c=Array.from(e.apply(this,arguments),Nue),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=ij(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?UC:typeof s=="function"?s:Jt(Array.from(s)),o):t},o.offset=function(s){return arguments.length?(n=s??Id,o):n},o}function Eue(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 Sue(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 Aue(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 Qh(e){"@babel/helpers - typeof";return Qh=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},Qh(e)}var Oue=["type","size","sizeType"];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 U4(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),n.push.apply(n,r)}return n}function q4(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?U4(Object(n),!0).forEach(function(r){Due(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):U4(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function Due(e,t,n){return t=Cue(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Cue(e){var t=Tue(e,"string");return Qh(t)=="symbol"?t:t+""}function Tue(e,t){if(Qh(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(Qh(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function _ue(e,t){if(e==null)return{};var n=jue(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 jue(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 Uq={symbolCircle:oj,symbolCross:Zce,symbolDiamond:eue,symbolSquare:tue,symbolStar:iue,symbolTriangle:oue,symbolWye:lue},Rue=Math.PI/180,Pue=function(t){var n="symbol".concat(Ux(t));return Uq[n]||oj},Mue=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*Rue;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}},kue=function(t,n){Uq["symbol".concat(Ux(t))]=n},sj=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=_ue(t,Oue),m=q4(q4({},f),{},{type:r,size:s,sizeType:u}),g=function(){var w=Pue(r),D=cue().type(w).size(Mue(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?F.createElement("path",qC({},S,{className:it("recharts-symbols",h),transform:"translate(".concat(y,", ").concat(x,")"),d:g()})):null};sj.registerSymbol=kue;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 HC(){return HC=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},HC.apply(this,arguments)}function H4(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 Iue(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?H4(Object(n),!0).forEach(function(r){Xh(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):H4(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function Lue(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Vue(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,Hq(r.key),r)}}function $ue(e,t,n){return t&&Vue(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function Bue(e,t,n){return t=by(t),zue(e,qq()?Reflect.construct(t,n||[],by(e).constructor):t.apply(e,n))}function zue(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 Uue(e)}function Uue(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function qq(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(qq=function(){return!!e})()}function by(e){return by=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},by(e)}function que(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&&FC(e,t)}function FC(e,t){return FC=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,o){return r.__proto__=o,r},FC(e,t)}function Xh(e,t,n){return t=Hq(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Hq(e){var t=Hue(e,"string");return Ld(t)=="symbol"?t:t+""}function Hue(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,lj=(function(e){function t(){return Lue(this,t),Bue(this,t,arguments)}return que(t,e),$ue(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 F.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 F.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 F.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(F.isValidElement(r.legendIcon)){var m=Iue({},r);return delete m.legendIcon,F.cloneElement(r.legendIcon,m)}return F.createElement(sj,{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(Xh(Xh({"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 F.createElement("li",HC({className:w,style:h,key:"legend-item-".concat(S)},Hc(r.props,x,S)),F.createElement(LC,{width:c,height:c,viewBox:g,style:y},r.renderIcon(x)),F.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 F.createElement("ul",{className:"recharts-default-legend",style:u},this.renderItems())}}])})(_.PureComponent);Xh(lj,"displayName","Legend");Xh(lj,"defaultProps",{iconSize:14,layout:"horizontal",align:"center",verticalAlign:"middle",inactiveColor:"#ccc"});var JS,F4;function Fue(){if(F4)return JS;F4=1;var e=$x();function t(){this.__data__=new e,this.size=0}return JS=t,JS}var eA,K4;function Kue(){if(K4)return eA;K4=1;function e(t){var n=this.__data__,r=n.delete(t);return this.size=n.size,r}return eA=e,eA}var tA,G4;function Gue(){if(G4)return tA;G4=1;function e(t){return this.__data__.get(t)}return tA=e,tA}var nA,Y4;function Yue(){if(Y4)return nA;Y4=1;function e(t){return this.__data__.has(t)}return nA=e,nA}var rA,Q4;function Que(){if(Q4)return rA;Q4=1;var e=$x(),t=Z_(),n=J_(),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 rA=o,rA}var aA,X4;function Fq(){if(X4)return aA;X4=1;var e=$x(),t=Fue(),n=Kue(),r=Gue(),o=Yue(),s=Que();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,aA=c,aA}var iA,W4;function Xue(){if(W4)return iA;W4=1;var e="__lodash_hash_undefined__";function t(n){return this.__data__.set(n,e),this}return iA=t,iA}var oA,Z4;function Wue(){if(Z4)return oA;Z4=1;function e(t){return this.__data__.has(t)}return oA=e,oA}var sA,J4;function Kq(){if(J4)return sA;J4=1;var e=J_(),t=Xue(),n=Wue();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,sA=r,sA}var lA,e2;function Gq(){if(e2)return lA;e2=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 lA=e,lA}var cA,t2;function Yq(){if(t2)return cA;t2=1;function e(t,n){return t.has(n)}return cA=e,cA}var uA,n2;function Qq(){if(n2)return uA;n2=1;var e=Kq(),t=Gq(),n=Yq(),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 uA=s,uA}var dA,r2;function Zue(){if(r2)return dA;r2=1;var e=go(),t=e.Uint8Array;return dA=t,dA}var fA,a2;function Jue(){if(a2)return fA;a2=1;function e(t){var n=-1,r=Array(t.size);return t.forEach(function(o,s){r[++n]=[s,o]}),r}return fA=e,fA}var mA,i2;function cj(){if(i2)return mA;i2=1;function e(t){var n=-1,r=Array(t.size);return t.forEach(function(o){r[++n]=o}),r}return mA=e,mA}var hA,o2;function ede(){if(o2)return hA;o2=1;var e=qp(),t=Zue(),n=W_(),r=Qq(),o=Jue(),s=cj(),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,$,I,z,H){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||!z(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 G=o;case S:var Y=$&c;if(G||(G=s),T.size!=R.size&&!Y)return!1;var J=H.get(T);if(J)return J==R;$|=u,H.set(T,R);var q=r(G(T),G(R),$,I,z,H);return H.delete(T),q;case w:if(P)return P.call(T)==P.call(R)}return!1}return hA=A,hA}var pA,s2;function Xq(){if(s2)return pA;s2=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 pA=e,pA}var gA,l2;function tde(){if(l2)return gA;l2=1;var e=Xq(),t=Gr();function n(r,o,s){var c=o(r);return t(r)?c:e(c,s(r))}return gA=n,gA}var vA,c2;function nde(){if(c2)return vA;c2=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 vA=e,vA}var bA,u2;function rde(){if(u2)return bA;u2=1;function e(){return[]}return bA=e,bA}var yA,d2;function ade(){if(d2)return yA;d2=1;var e=nde(),t=rde(),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 yA=s,yA}var xA,f2;function ide(){if(f2)return xA;f2=1;function e(t,n){for(var r=-1,o=Array(t);++r<t;)o[r]=n(r);return o}return xA=e,xA}var NA,m2;function ode(){if(m2)return NA;m2=1;var e=fs(),t=ms(),n="[object Arguments]";function r(o){return t(o)&&e(o)==n}return NA=r,NA}var wA,h2;function uj(){if(h2)return wA;h2=1;var e=ode(),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 wA=s,wA}var xh={exports:{}},EA,p2;function sde(){if(p2)return EA;p2=1;function e(){return!1}return EA=e,EA}xh.exports;var g2;function Wq(){return g2||(g2=1,(function(e,t){var n=go(),r=sde(),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})(xh,xh.exports)),xh.exports}var SA,v2;function dj(){if(v2)return SA;v2=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 SA=n,SA}var AA,b2;function fj(){if(b2)return AA;b2=1;var e=9007199254740991;function t(n){return typeof n=="number"&&n>-1&&n%1==0&&n<=e}return AA=t,AA}var OA,y2;function lde(){if(y2)return OA;y2=1;var e=fs(),t=fj(),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]",I="[object Uint32Array]",z={};z[C]=z[j]=z[P]=z[A]=z[T]=z[R]=z[M]=z[$]=z[I]=!0,z[r]=z[o]=z[w]=z[s]=z[D]=z[c]=z[u]=z[f]=z[m]=z[g]=z[h]=z[y]=z[x]=z[S]=z[N]=!1;function H(G){return n(G)&&t(G.length)&&!!z[e(G)]}return OA=H,OA}var DA,x2;function Zq(){if(x2)return DA;x2=1;function e(t){return function(n){return t(n)}}return DA=e,DA}var Nh={exports:{}};Nh.exports;var N2;function cde(){return N2||(N2=1,(function(e,t){var n=bq(),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})(Nh,Nh.exports)),Nh.exports}var CA,w2;function Jq(){if(w2)return CA;w2=1;var e=lde(),t=Zq(),n=cde(),r=n&&n.isTypedArray,o=r?t(r):e;return CA=o,CA}var TA,E2;function ude(){if(E2)return TA;E2=1;var e=ide(),t=uj(),n=Gr(),r=Wq(),o=dj(),s=Jq(),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 TA=f,TA}var _A,S2;function dde(){if(S2)return _A;S2=1;var e=Object.prototype;function t(n){var r=n&&n.constructor,o=typeof r=="function"&&r.prototype||e;return n===o}return _A=t,_A}var jA,A2;function eH(){if(A2)return jA;A2=1;function e(t,n){return function(r){return t(n(r))}}return jA=e,jA}var RA,O2;function fde(){if(O2)return RA;O2=1;var e=eH(),t=e(Object.keys,Object);return RA=t,RA}var PA,D2;function mde(){if(D2)return PA;D2=1;var e=dde(),t=fde(),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 PA=o,PA}var MA,C2;function Hp(){if(C2)return MA;C2=1;var e=X_(),t=fj();function n(r){return r!=null&&t(r.length)&&!e(r)}return MA=n,MA}var kA,T2;function Kx(){if(T2)return kA;T2=1;var e=ude(),t=mde(),n=Hp();function r(o){return n(o)?e(o):t(o)}return kA=r,kA}var IA,_2;function hde(){if(_2)return IA;_2=1;var e=tde(),t=ade(),n=Kx();function r(o){return e(o,n,t)}return IA=r,IA}var LA,j2;function pde(){if(j2)return LA;j2=1;var e=hde(),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,I=c.constructor;$!=I&&"constructor"in s&&"constructor"in c&&!(typeof $=="function"&&$ instanceof $&&typeof I=="function"&&I instanceof I)&&(P=!1)}return g.delete(s),g.delete(c),P}return LA=o,LA}var VA,R2;function gde(){if(R2)return VA;R2=1;var e=ru(),t=go(),n=e(t,"DataView");return VA=n,VA}var $A,P2;function vde(){if(P2)return $A;P2=1;var e=ru(),t=go(),n=e(t,"Promise");return $A=n,$A}var BA,M2;function tH(){if(M2)return BA;M2=1;var e=ru(),t=go(),n=e(t,"Set");return BA=n,BA}var zA,k2;function bde(){if(k2)return zA;k2=1;var e=ru(),t=go(),n=e(t,"WeakMap");return zA=n,zA}var UA,I2;function yde(){if(I2)return UA;I2=1;var e=gde(),t=Z_(),n=vde(),r=tH(),o=bde(),s=fs(),c=yq(),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}),UA=C,UA}var qA,L2;function xde(){if(L2)return qA;L2=1;var e=Fq(),t=Qq(),n=ede(),r=pde(),o=yde(),s=Gr(),c=Wq(),u=Jq(),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,I=M==h,z=R==M;if(z&&c(N)){if(!c(w))return!1;A=!0,$=!1}if(z&&!$)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 H=$&&x.call(N,"__wrapped__"),G=I&&x.call(w,"__wrapped__");if(H||G){var Y=H?N.value():N,J=G?w.value():w;return P||(P=new e),j(Y,J,D,C,P)}}return z?(P||(P=new e),r(N,w,D,C,j,P)):!1}return qA=S,qA}var HA,V2;function mj(){if(V2)return HA;V2=1;var e=xde(),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 HA=n,HA}var FA,$2;function Nde(){if($2)return FA;$2=1;var e=Fq(),t=mj(),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 FA=o,FA}var KA,B2;function nH(){if(B2)return KA;B2=1;var e=xl();function t(n){return n===n&&!e(n)}return KA=t,KA}var GA,z2;function wde(){if(z2)return GA;z2=1;var e=nH(),t=Kx();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 GA=n,GA}var YA,U2;function rH(){if(U2)return YA;U2=1;function e(t,n){return function(r){return r==null?!1:r[t]===n&&(n!==void 0||t in Object(r))}}return YA=e,YA}var QA,q2;function Ede(){if(q2)return QA;q2=1;var e=Nde(),t=wde(),n=rH();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 QA=r,QA}var XA,H2;function Sde(){if(H2)return XA;H2=1;function e(t,n){return t!=null&&n in Object(t)}return XA=e,XA}var WA,F2;function Ade(){if(F2)return WA;F2=1;var e=wq(),t=uj(),n=Gr(),r=dj(),o=fj(),s=zx();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 WA=c,WA}var ZA,K2;function Ode(){if(K2)return ZA;K2=1;var e=Sde(),t=Ade();function n(r,o){return r!=null&&t(r,o,e)}return ZA=n,ZA}var JA,G2;function Dde(){if(G2)return JA;G2=1;var e=mj(),t=Eq(),n=Ode(),r=Q_(),o=nH(),s=rH(),c=zx(),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 JA=m,JA}var eO,Y2;function wf(){if(Y2)return eO;Y2=1;function e(t){return t}return eO=e,eO}var tO,Q2;function Cde(){if(Q2)return tO;Q2=1;function e(t){return function(n){return n?.[t]}}return tO=e,tO}var nO,X2;function Tde(){if(X2)return nO;X2=1;var e=tj();function t(n){return function(r){return e(r,n)}}return nO=t,nO}var rO,W2;function _de(){if(W2)return rO;W2=1;var e=Cde(),t=Tde(),n=Q_(),r=zx();function o(s){return n(s)?e(r(s)):t(s)}return rO=o,rO}var aO,Z2;function vo(){if(Z2)return aO;Z2=1;var e=Ede(),t=Dde(),n=wf(),r=Gr(),o=_de();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 aO=s,aO}var iO,J2;function aH(){if(J2)return iO;J2=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 iO=e,iO}var oO,e$;function jde(){if(e$)return oO;e$=1;function e(t){return t!==t}return oO=e,oO}var sO,t$;function Rde(){if(t$)return sO;t$=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 sO=e,sO}var lO,n$;function Pde(){if(n$)return lO;n$=1;var e=aH(),t=jde(),n=Rde();function r(o,s,c){return s===s?n(o,s,c):e(o,t,c)}return lO=r,lO}var cO,r$;function Mde(){if(r$)return cO;r$=1;var e=Pde();function t(n,r){var o=n==null?0:n.length;return!!o&&e(n,r,0)>-1}return cO=t,cO}var uO,a$;function kde(){if(a$)return uO;a$=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 uO=e,uO}var dO,i$;function Ide(){if(i$)return dO;i$=1;function e(){}return dO=e,dO}var fO,o$;function Lde(){if(o$)return fO;o$=1;var e=tH(),t=Ide(),n=cj(),r=1/0,o=e&&1/n(new e([,-0]))[1]==r?function(s){return new e(s)}:t;return fO=o,fO}var mO,s$;function Vde(){if(s$)return mO;s$=1;var e=Kq(),t=Mde(),n=kde(),r=Yq(),o=Lde(),s=cj(),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 mO=u,mO}var hO,l$;function $de(){if(l$)return hO;l$=1;var e=vo(),t=Vde();function n(r,o){return r&&r.length?t(r,e(o,2)):[]}return hO=n,hO}var Bde=$de();const c$=Bt(Bde);function iH(e,t,n){return t===!0?c$(e,n):Xe(t)?c$(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 zde=["ref"];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 Xo(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){Gx(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 Ude(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function d$(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,sH(r.key),r)}}function qde(e,t,n){return t&&d$(e.prototype,t),n&&d$(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function Hde(e,t,n){return t=yy(t),Fde(e,oH()?Reflect.construct(t,n||[],yy(e).constructor):t.apply(e,n))}function Fde(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 Kde(e)}function Kde(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function oH(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(oH=function(){return!!e})()}function yy(e){return yy=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},yy(e)}function Gde(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&&KC(e,t)}function KC(e,t){return KC=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,o){return r.__proto__=o,r},KC(e,t)}function Gx(e,t,n){return t=sH(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function sH(e){var t=Yde(e,"string");return Vd(t)=="symbol"?t:t+""}function Yde(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 Qde(e,t){if(e==null)return{};var n=Xde(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 Xde(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 Wde(e){return e.value}function Zde(e,t){if(F.isValidElement(e))return F.cloneElement(e,t);if(typeof e=="function")return F.createElement(e,t);t.ref;var n=Qde(t,zde);return F.createElement(lj,n)}var f$=1,Dc=(function(e){function t(){var n;Ude(this,t);for(var r=arguments.length,o=new Array(r),s=0;s<r;s++)o[s]=arguments[s];return n=Hde(this,t,[].concat(o)),Gx(n,"lastBoundingBox",{width:-1,height:-1}),n}return Gde(t,e),qde(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)>f$||Math.abs(o.height-this.lastBoundingBox.height)>f$)&&(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 F.createElement("div",{className:"recharts-legend-wrapper",style:h,ref:function(x){r.wrapperNode=x}},Zde(s,Xo(Xo({},this.props),{},{payload:iH(g,m,Wde)})))}}],[{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);Gx(Dc,"displayName","Legend");Gx(Dc,"defaultProps",{iconSize:14,layout:"horizontal",align:"center",verticalAlign:"bottom"});var pO,m$;function Jde(){if(m$)return pO;m$=1;var e=qp(),t=uj(),n=Gr(),r=e?e.isConcatSpreadable:void 0;function o(s){return n(s)||t(s)||!!(r&&s&&s[r])}return pO=o,pO}var gO,h$;function lH(){if(h$)return gO;h$=1;var e=Xq(),t=Jde();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 gO=n,gO}var vO,p$;function efe(){if(p$)return vO;p$=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 vO=e,vO}var bO,g$;function tfe(){if(g$)return bO;g$=1;var e=efe(),t=e();return bO=t,bO}var yO,v$;function cH(){if(v$)return yO;v$=1;var e=tfe(),t=Kx();function n(r,o){return r&&e(r,o,t)}return yO=n,yO}var xO,b$;function nfe(){if(b$)return xO;b$=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 xO=t,xO}var NO,y$;function hj(){if(y$)return NO;y$=1;var e=cH(),t=nfe(),n=t(e);return NO=n,NO}var wO,x$;function uH(){if(x$)return wO;x$=1;var e=hj(),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 wO=n,wO}var EO,N$;function rfe(){if(N$)return EO;N$=1;function e(t,n){var r=t.length;for(t.sort(n);r--;)t[r]=t[r].value;return t}return EO=e,EO}var SO,w$;function afe(){if(w$)return SO;w$=1;var e=bf();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 SO=t,SO}var AO,E$;function ife(){if(E$)return AO;E$=1;var e=afe();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 AO=t,AO}var OO,S$;function ofe(){if(S$)return OO;S$=1;var e=ej(),t=tj(),n=vo(),r=uH(),o=rfe(),s=Zq(),c=ife(),u=wf(),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 OO=m,OO}var DO,A$;function sfe(){if(A$)return DO;A$=1;function e(t,n,r){switch(r.length){case 0:return t.call(n);case 1:return t.call(n,r[0]);case 2:return t.call(n,r[0],r[1]);case 3:return t.call(n,r[0],r[1],r[2])}return t.apply(n,r)}return DO=e,DO}var CO,O$;function lfe(){if(O$)return CO;O$=1;var e=sfe(),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 CO=n,CO}var TO,D$;function cfe(){if(D$)return TO;D$=1;function e(t){return function(){return t}}return TO=e,TO}var _O,C$;function dH(){if(C$)return _O;C$=1;var e=ru(),t=(function(){try{var n=e(Object,"defineProperty");return n({},"",{}),n}catch{}})();return _O=t,_O}var jO,T$;function ufe(){if(T$)return jO;T$=1;var e=cfe(),t=dH(),n=wf(),r=t?function(o,s){return t(o,"toString",{configurable:!0,enumerable:!1,value:e(s),writable:!0})}:n;return jO=r,jO}var RO,_$;function dfe(){if(_$)return RO;_$=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 RO=r,RO}var PO,j$;function ffe(){if(j$)return PO;j$=1;var e=ufe(),t=dfe(),n=t(e);return PO=n,PO}var MO,R$;function mfe(){if(R$)return MO;R$=1;var e=wf(),t=lfe(),n=ffe();function r(o,s){return n(t(o,s,e),o+"")}return MO=r,MO}var kO,P$;function Yx(){if(P$)return kO;P$=1;var e=W_(),t=Hp(),n=dj(),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 kO=o,kO}var IO,M$;function hfe(){if(M$)return IO;M$=1;var e=lH(),t=ofe(),n=mfe(),r=Yx(),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 IO=o,IO}var pfe=hfe();const pj=Bt(pfe);function Wh(e){"@babel/helpers - typeof";return Wh=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},Wh(e)}function GC(){return GC=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},GC.apply(this,arguments)}function gfe(e,t){return xfe(e)||yfe(e,t)||bfe(e,t)||vfe()}function vfe(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
||
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function bfe(e,t){if(e){if(typeof e=="string")return k$(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 k$(e,t)}}function k$(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 yfe(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 xfe(e){if(Array.isArray(e))return e}function I$(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 LO(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?I$(Object(n),!0).forEach(function(r){Nfe(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):I$(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function Nfe(e,t,n){return t=wfe(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function wfe(e){var t=Efe(e,"string");return Wh(t)=="symbol"?t:t+""}function Efe(e,t){if(Wh(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(Wh(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function Sfe(e){return Array.isArray(e)&&$n(e[0])&&$n(e[1])?e.join(" ~ "):e}var Afe=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 H={padding:0,margin:0},G=(y?pj(g,y):g).map(function(Y,J){if(Y.type==="none")return null;var q=LO({display:"block",paddingTop:4,paddingBottom:4,color:Y.color||"#000"},u),U=Y.formatter||h||Sfe,K=Y.value,te=Y.name,ne=K,L=te;if(U&&ne!=null&&L!=null){var Q=U(K,te,Y,J,g);if(Array.isArray(Q)){var W=gfe(Q,2);ne=W[0],L=W[1]}else ne=Q}return F.createElement("li",{className:"recharts-tooltip-item",key:"tooltip-item-".concat(J),style:q},$n(L)?F.createElement("span",{className:"recharts-tooltip-item-name"},L):null,$n(L)?F.createElement("span",{className:"recharts-tooltip-item-separator"},r):null,F.createElement("span",{className:"recharts-tooltip-item-value"},ne),F.createElement("span",{className:"recharts-tooltip-item-unit"},Y.unit||""))});return F.createElement("ul",{className:"recharts-tooltip-item-list",style:H},G)}return null},P=LO({margin:0,padding:10,backgroundColor:"#fff",border:"1px solid #ccc",whiteSpace:"nowrap"},s),A=LO({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 I=C?{role:"status","aria-live":"assertive"}:{};return F.createElement("div",GC({className:M,style:P},I),F.createElement("p",{className:$,style:A},F.isValidElement(R)?R:"".concat(R)),j())};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 Cb(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)}var ch="recharts-tooltip-wrapper",Cfe={visibility:"hidden"};function Tfe(e){var t=e.coordinate,n=e.translateX,r=e.translateY;return it(ch,Cb(Cb(Cb(Cb({},"".concat(ch,"-right"),Oe(n)&&t&&Oe(t.x)&&n>=t.x),"".concat(ch,"-left"),Oe(n)&&t&&Oe(t.x)&&n<t.x),"".concat(ch,"-bottom"),Oe(r)&&t&&Oe(t.y)&&r>=t.y),"".concat(ch,"-top"),Oe(r)&&t&&Oe(t.y)&&r<t.y))}function L$(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 _fe(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 jfe(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=L$({allowEscapeViewBox:t,coordinate:n,key:"x",offsetTopLeft:r,position:o,reverseDirection:s,tooltipDimension:c.width,viewBox:f,viewBoxDimension:f.width}),h=L$({allowEscapeViewBox:t,coordinate:n,key:"y",offsetTopLeft:r,position:o,reverseDirection:s,tooltipDimension:c.height,viewBox:f,viewBoxDimension:f.height}),m=_fe({translateX:g,translateY:h,useTranslate3d:u})):m=Cfe,{cssProperties:m,cssClasses:Tfe({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 V$(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 $$(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?V$(Object(n),!0).forEach(function(r){QC(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):V$(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function Rfe(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Pfe(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,mH(r.key),r)}}function Mfe(e,t,n){return t&&Pfe(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function kfe(e,t,n){return t=xy(t),Ife(e,fH()?Reflect.construct(t,n||[],xy(e).constructor):t.apply(e,n))}function Ife(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 Lfe(e)}function Lfe(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function fH(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(fH=function(){return!!e})()}function xy(e){return xy=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},xy(e)}function Vfe(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 QC(e,t,n){return t=mH(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function mH(e){var t=$fe(e,"string");return $d(t)=="symbol"?t:t+""}function $fe(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 B$=1,Bfe=(function(e){function t(){var n;Rfe(this,t);for(var r=arguments.length,o=new Array(r),s=0;s<r;s++)o[s]=arguments[s];return n=kfe(this,t,[].concat(o)),QC(n,"state",{dismissed:!1,dismissedAtCoordinate:{x:0,y:0},lastBoundingBox:{width:-1,height:-1}}),QC(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 Vfe(t,e),Mfe(t,[{key:"updateBBox",value:function(){if(this.wrapperNode&&this.wrapperNode.getBoundingClientRect){var r=this.wrapperNode.getBoundingClientRect();(Math.abs(r.width-this.state.lastBoundingBox.width)>B$||Math.abs(r.height-this.state.lastBoundingBox.height)>B$)&&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=jfe({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=$$($$({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 F.createElement("div",{tabIndex:-1,className:P,style:T,ref:function(M){r.wrapperNode=M}},m)}}])})(_.PureComponent),zfe=function(){return!(typeof window<"u"&&window.document&&window.document.createElement&&window.setTimeout)},au={isSsr:zfe()};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 z$(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 U$(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?z$(Object(n),!0).forEach(function(r){gj(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):z$(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function Ufe(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function qfe(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,pH(r.key),r)}}function Hfe(e,t,n){return t&&qfe(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function Ffe(e,t,n){return t=Ny(t),Kfe(e,hH()?Reflect.construct(t,n||[],Ny(e).constructor):t.apply(e,n))}function Kfe(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 Gfe(e)}function Gfe(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function hH(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(hH=function(){return!!e})()}function Ny(e){return Ny=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},Ny(e)}function Yfe(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 gj(e,t,n){return t=pH(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function pH(e){var t=Qfe(e,"string");return Bd(t)=="symbol"?t:t+""}function Qfe(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 Xfe(e){return e.dataKey}function Wfe(e,t){return F.isValidElement(e)?F.cloneElement(e,t):typeof e=="function"?F.createElement(e,t):F.createElement(Afe,t)}var si=(function(e){function t(){return Ufe(this,t),Ffe(this,t,arguments)}return Yfe(t,e),Hfe(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=iH(S.filter(function(R){return R.value!=null&&(R.hide!==!0||r.props.includeHidden)}),N,Xfe));var T=A.length>0;return F.createElement(Bfe,{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},Wfe(m,U$(U$({},this.props),{},{payload:A})))}}])})(_.PureComponent);gj(si,"displayName","Tooltip");gj(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 VO,q$;function Zfe(){if(q$)return VO;q$=1;var e=go(),t=function(){return e.Date.now()};return VO=t,VO}var $O,H$;function Jfe(){if(H$)return $O;H$=1;var e=/\s/;function t(n){for(var r=n.length;r--&&e.test(n.charAt(r)););return r}return $O=t,$O}var BO,F$;function eme(){if(F$)return BO;F$=1;var e=Jfe(),t=/^\s+/;function n(r){return r&&r.slice(0,e(r)+1).replace(t,"")}return BO=n,BO}var zO,K$;function gH(){if(K$)return zO;K$=1;var e=eme(),t=xl(),n=bf(),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 zO=f,zO}var UO,G$;function tme(){if(G$)return UO;G$=1;var e=xl(),t=Zfe(),n=gH(),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(G){var Y=g,J=h;return g=h=void 0,w=G,x=u.apply(J,Y),x}function A(G){return w=G,S=setTimeout(M,f),D?P(G):x}function T(G){var Y=G-N,J=G-w,q=f-Y;return C?s(q,y-J):q}function R(G){var Y=G-N,J=G-w;return N===void 0||Y>=f||Y<0||C&&J>=y}function M(){var G=t();if(R(G))return $(G);S=setTimeout(M,T(G))}function $(G){return S=void 0,j&&g?P(G):(g=h=void 0,x)}function I(){S!==void 0&&clearTimeout(S),w=0,g=N=h=S=void 0}function z(){return S===void 0?x:$(t())}function H(){var G=t(),Y=R(G);if(g=arguments,h=this,N=G,Y){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 H.cancel=I,H.flush=z,H}return UO=c,UO}var qO,Y$;function nme(){if(Y$)return qO;Y$=1;var e=tme(),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 qO=r,qO}var rme=nme();const vH=Bt(rme);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 Q$(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?Q$(Object(n),!0).forEach(function(r){ame(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Q$(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function ame(e,t,n){return t=ime(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function ime(e){var t=ome(e,"string");return Jh(t)=="symbol"?t:t+""}function ome(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)}function sme(e,t){return dme(e)||ume(e,t)||cme(e,t)||lme()}function lme(){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 cme(e,t){if(e){if(typeof e=="string")return X$(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 X$(e,t)}}function X$(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 ume(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 dme(e){if(Array.isArray(e))return e}var W$=_.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=sme(R,2),$=M[0],I=M[1],z=_.useCallback(function(G,Y){I(function(J){var q=Math.round(G),U=Math.round(Y);return J.containerWidth===q&&J.containerHeight===U?J:{containerWidth:q,containerHeight:U}})},[]);_.useEffect(function(){var G=function(te){var ne,L=te[0].contentRect,Q=L.width,W=L.height;z(Q,W),(ne=T.current)===null||ne===void 0||ne.call(T,Q,W)};N>0&&(G=vH(G,N,{trailing:!0,leading:!1}));var Y=new ResizeObserver(G),J=A.current.getBoundingClientRect(),q=J.width,U=J.height;return z(q,U),Y.observe(A.current),function(){Y.disconnect()}},[z,N]);var H=_.useMemo(function(){var G=$.containerWidth,Y=$.containerHeight;if(G<0||Y<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 J=wc(c)?G:c,q=wc(f)?Y:f;n&&n>0&&(J?q=J/n:q&&(J=q*n),y&&q>y&&(q=y)),ui(J>0||q>0,`The width(%s) and height(%s) of chart should be greater than 0,
|
||
please check the style of container, or the props width(%s) and height(%s),
|
||
or add a minWidth(%s) or minHeight(%s) or use aspect(%s) to control the
|
||
height and width.`,J,q,c,f,g,h,n);var U=!Array.isArray(x)&&ns(x.type).endsWith("Chart");return F.Children.map(x,function(K){return F.isValidElement(K)?_.cloneElement(K,Tb({width:J,height:q},U?{style:Tb({height:"100%",width:"100%",maxHeight:q,maxWidth:J},K.props.style)}:{})):K})},[n,x,f,y,h,g,$,c]);return F.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},H)}),Qx=function(t){return null};Qx.displayName="Cell";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 Z$(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 WC(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?Z$(Object(n),!0).forEach(function(r){fme(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Z$(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function fme(e,t,n){return t=mme(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function mme(e){var t=hme(e,"string");return ep(t)=="symbol"?t:t+""}function hme(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)}var gd={widthCache:{},cacheCount:0},pme=2e3,gme={position:"absolute",top:"-20000px",left:0,padding:0,margin:0,border:"none",whiteSpace:"pre"},J$="recharts_measurement_span";function vme(e){var t=WC({},e);return Object.keys(t).forEach(function(n){t[n]||delete t[n]}),t}var Th=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=vme(n),o=JSON.stringify({text:t,copyStyle:r});if(gd.widthCache[o])return gd.widthCache[o];try{var s=document.getElementById(J$);s||(s=document.createElement("span"),s.setAttribute("id",J$),s.setAttribute("aria-hidden","true"),document.body.appendChild(s));var c=WC(WC({},gme),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>pme&&(gd.cacheCount=0,gd.widthCache={}),f}catch{return{width:0,height:0}}},bme=function(t){return{top:t.top+window.scrollY-document.documentElement.clientTop,left:t.left+window.scrollX-document.documentElement.clientLeft}};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 wy(e,t){return wme(e)||Nme(e,t)||xme(e,t)||yme()}function yme(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
||
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function xme(e,t){if(e){if(typeof e=="string")return e6(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 e6(e,t)}}function e6(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 Nme(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 wme(e){if(Array.isArray(e))return e}function Eme(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function t6(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,Ame(r.key),r)}}function Sme(e,t,n){return t&&t6(e.prototype,t),n&&t6(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function Ame(e){var t=Ome(e,"string");return tp(t)=="symbol"?t:t+""}function Ome(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 String(e)}var n6=/(-?\d+(?:\.\d+)?[a-zA-Z%]*)([*/])(-?\d+(?:\.\d+)?[a-zA-Z%]*)/,r6=/(-?\d+(?:\.\d+)?[a-zA-Z%]*)([+-])(-?\d+(?:\.\d+)?[a-zA-Z%]*)/,Dme=/^px|cm|vh|vw|em|rem|%|mm|in|pt|pc|ex|ch|vmin|vmax|Q$/,Cme=/(-?\d+(?:\.\d+)?)([a-zA-Z%]+)?/,bH={cm:96/2.54,mm:96/25.4,pt:96/72,pc:96/6,in:96,Q:96/(2.54*40),px:1},Tme=Object.keys(bH),wd="NaN";function _me(e,t){return e*bH[t]}var _b=(function(){function e(t,n){Eme(this,e),this.num=t,this.unit=n,this.num=t,this.unit=n,Number.isNaN(t)&&(this.unit=""),n!==""&&!Dme.test(n)&&(this.num=NaN,this.unit=""),Tme.includes(n)&&(this.num=_me(t,n),this.unit="px")}return Sme(e,[{key:"add",value:function(n){return this.unit!==n.unit?new e(NaN,""):new e(this.num+n.num,this.unit)}},{key:"subtract",value:function(n){return this.unit!==n.unit?new e(NaN,""):new e(this.num-n.num,this.unit)}},{key:"multiply",value:function(n){return this.unit!==""&&n.unit!==""&&this.unit!==n.unit?new e(NaN,""):new e(this.num*n.num,this.unit||n.unit)}},{key:"divide",value:function(n){return this.unit!==""&&n.unit!==""&&this.unit!==n.unit?new e(NaN,""):new e(this.num/n.num,this.unit||n.unit)}},{key:"toString",value:function(){return"".concat(this.num).concat(this.unit)}},{key:"isNaN",value:function(){return Number.isNaN(this.num)}}],[{key:"parse",value:function(n){var r,o=(r=Cme.exec(n))!==null&&r!==void 0?r:[],s=wy(o,3),c=s[1],u=s[2];return new e(parseFloat(c),u??"")}}])})();function yH(e){if(e.includes(wd))return wd;for(var t=e;t.includes("*")||t.includes("/");){var n,r=(n=n6.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(n6,g.toString())}for(;t.includes("+")||/.-\d+(?:\.\d+)?/.test(t);){var h,y=(h=r6.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(r6,j.toString())}return t}var a6=/\(([^()]*)\)/;function jme(e){for(var t=e;t.includes("(");){var n=a6.exec(t),r=wy(n,2),o=r[1];t=t.replace(a6,yH(o))}return t}function Rme(e){var t=e.replace(/\s+/g,"");return t=jme(t),t=yH(t),t}function Pme(e){try{return Rme(e)}catch{return wd}}function HO(e){var t=Pme(e.slice(5,-1));return t===wd?"":t}var Mme=["x","y","lineHeight","capHeight","scaleToFit","textAnchor","verticalAnchor","fill"],kme=["dx","dy","angle","className","breakAll"];function ZC(){return ZC=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},ZC.apply(this,arguments)}function i6(e,t){if(e==null)return{};var n=Ime(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 Ime(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 o6(e,t){return Bme(e)||$me(e,t)||Vme(e,t)||Lme()}function Lme(){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 Vme(e,t){if(e){if(typeof e=="string")return s6(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 s6(e,t)}}function s6(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 $me(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 Bme(e){if(Array.isArray(e))return e}var xH=/[ \f\n\r\t\v\u2028\u2029]+/,NH=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(xH));var c=s.map(function(f){return{word:f,width:Th(f,o).width}}),u=r?0:Th(" ",o).width;return{wordsWithComputedWidth:c,spaceWidth:u}}catch{return null}},zme=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 J=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];return J.reduce(function(q,U){var K=U.word,te=U.width,ne=q[q.length-1];if(ne&&(o==null||s||ne.width+te+r<Number(o)))ne.words.push(K),ne.width+=te+r;else{var L={words:[K],width:te};q.push(L)}return q},[])},x=y(n),S=function(J){return J.reduce(function(q,U){return q.width>U.width?q:U})};if(!g)return x;for(var N="…",w=function(J){var q=h.slice(0,J),U=NH({breakAll:m,style:f,children:q+N}).wordsWithComputedWidth,K=y(U),te=K.length>c||S(K).width>Number(o);return[te,K]},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=o6(R,2),$=M[0],I=M[1],z=w(A),H=o6(z,1),G=H[0];if(!$&&!G&&(D=A+1),$&&G&&(C=A-1),!$&&G){P=I;break}j++}return P||x},l6=function(t){var n=ot(t)?[]:t.toString().split(xH);return[{words:n}]},Ume=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=NH({breakAll:c,children:o,style:s});if(g){var h=g.wordsWithComputedWidth,y=g.spaceWidth;f=h,m=y}else return l6(o);return zme({breakAll:c,children:o,maxLines:u,style:s},f,m,n,r)}return l6(o)},c6="#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?c6:w,C=i6(t,Mme),j=_.useMemo(function(){return Ume({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,$=i6(C,kme);if(!$n(r)||!$n(s))return null;var I=r+(Oe(P)?P:0),z=s+(Oe(A)?A:0),H;switch(N){case"start":H=HO("calc(".concat(m,")"));break;case"middle":H=HO("calc(".concat((j.length-1)/2," * -").concat(u," + (").concat(m," / 2))"));break;default:H=HO("calc(".concat(j.length-1," * -").concat(u,")"));break}var G=[];if(h){var Y=j[0].width,J=C.width;G.push("scale(".concat((Oe(J)?J/Y:1)/Y,")"))}return T&&G.push("rotate(".concat(T,", ").concat(I,", ").concat(z,")")),G.length&&($.transform=G.join(" ")),F.createElement("text",ZC({},Fe($,!0),{x:I,y:z,className:it("recharts-text",R),textAnchor:x,fill:D.includes("url")?c6:D}),j.map(function(q,U){var K=q.words.join(M?"":" ");return F.createElement("tspan",{x:I,dy:U===0?H:u,key:"".concat(K,"-").concat(U)},K)}))};function ml(e,t){return e==null||t==null?NaN:e<t?-1:e>t?1:e>=t?0:NaN}function qme(e,t){return e==null||t==null?NaN:t<e?-1:t>e?1:t>=e?0:NaN}function vj(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===qme?e:Hme,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 Hme(){return 0}function wH(e){return e===null?NaN:+e}function*Fme(e,t){for(let n of e)n!=null&&(n=+n)>=n&&(yield n)}const Kme=vj(ml),Fp=Kme.right;vj(wH).center;class u6 extends Map{constructor(t,n=Qme){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(d6(this,t))}has(t){return super.has(d6(this,t))}set(t,n){return super.set(Gme(this,t),n)}delete(t){return super.delete(Yme(this,t))}}function d6({_intern:e,_key:t},n){const r=t(n);return e.has(r)?e.get(r):n}function Gme({_intern:e,_key:t},n){const r=t(n);return e.has(r)?e.get(r):(e.set(r,n),n)}function Yme({_intern:e,_key:t},n){const r=t(n);return e.has(r)&&(n=e.get(r),e.delete(r)),n}function Qme(e){return e!==null&&typeof e=="object"?e.valueOf():e}function Xme(e=ml){if(e===ml)return EH;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 EH(e,t){return(e==null||!(e>=e))-(t==null||!(t>=t))||(e<t?-1:e>t?1:0)}const Wme=Math.sqrt(50),Zme=Math.sqrt(10),Jme=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>=Wme?10:s>=Zme?5:s>=Jme?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 JC(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 eT(e,t,n){return t=+t,e=+e,n=+n,Ey(e,t,n)[2]}function tT(e,t,n){t=+t,e=+e,n=+n;const r=t<e,o=r?eT(t,e,n):eT(e,t,n);return(r?-1:1)*(o<0?1/-o:o)}function f6(e,t){let n;for(const r of e)r!=null&&(n<r||n===void 0&&r>=r)&&(n=r);return n}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 SH(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?EH:Xme(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));SH(e,t,x,S,o)}const s=e[t];let c=n,u=r;for(uh(e,n,t),o(e[r],s)>0&&uh(e,n,r);c<u;){for(uh(e,c,u),++c,--u;o(e[c],s)<0;)++c;for(;o(e[u],s)>0;)--u}o(e[n],s)===0?uh(e,n,u):(++u,uh(e,u,r)),u<=t&&(n=u+1),t<=u&&(r=u-1)}return e}function uh(e,t,n){const r=e[t];e[t]=e[n],e[n]=r}function ehe(e,t,n){if(e=Float64Array.from(Fme(e)),!(!(r=e.length)||isNaN(t=+t))){if(t<=0||r<2)return m6(e);if(t>=1)return f6(e);var r,o=(r-1)*t,s=Math.floor(o),c=f6(SH(e,s).subarray(0,s+1)),u=m6(e.subarray(s+1));return c+(u-c)*(o-s)}}function the(e,t,n=wH){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 nhe(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 nT=Symbol("implicit");function bj(){var e=new u6,t=[],n=[],r=nT;function o(s){let c=e.get(s);if(c===void 0){if(r!==nT)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 u6;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 bj(t,n).unknown(r)},Ha.apply(o,arguments),o}function np(){var e=bj().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=nhe(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 np(t(),[r,o]).round(u).paddingInner(f).paddingOuter(m).align(g)},Ha.apply(h(),arguments)}function AH(e){var t=e.copy;return e.padding=e.paddingOuter,delete e.paddingInner,delete e.paddingOuter,e.copy=function(){return AH(t())},e}function _h(){return AH(np.apply(null,arguments).paddingInner(1))}function yj(e,t,n){e.prototype=t.prototype=n,n.constructor=e}function OH(e,t){var n=Object.create(e.prototype);for(var r in t)n[r]=t[r];return n}function Kp(){}var rp=.7,Sy=1/rp,_d="\\s*([+-]?\\d+)\\s*",ap="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*",io="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*",rhe=/^#([0-9a-f]{3,8})$/,ahe=new RegExp(`^rgb\\(${_d},${_d},${_d}\\)$`),ihe=new RegExp(`^rgb\\(${io},${io},${io}\\)$`),ohe=new RegExp(`^rgba\\(${_d},${_d},${_d},${ap}\\)$`),she=new RegExp(`^rgba\\(${io},${io},${io},${ap}\\)$`),lhe=new RegExp(`^hsl\\(${ap},${io},${io}\\)$`),che=new RegExp(`^hsla\\(${ap},${io},${io},${ap}\\)$`),h6={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};yj(Kp,ip,{copy(e){return Object.assign(new this.constructor,this,e)},displayable(){return this.rgb().displayable()},hex:p6,formatHex:p6,formatHex8:uhe,formatHsl:dhe,formatRgb:g6,toString:g6});function p6(){return this.rgb().formatHex()}function uhe(){return this.rgb().formatHex8()}function dhe(){return DH(this).formatHsl()}function g6(){return this.rgb().formatRgb()}function ip(e){var t,n;return e=(e+"").trim().toLowerCase(),(t=rhe.exec(e))?(n=t[1].length,t=parseInt(t[1],16),n===6?v6(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=ahe.exec(e))?new Kr(t[1],t[2],t[3],1):(t=ihe.exec(e))?new Kr(t[1]*255/100,t[2]*255/100,t[3]*255/100,1):(t=ohe.exec(e))?jb(t[1],t[2],t[3],t[4]):(t=she.exec(e))?jb(t[1]*255/100,t[2]*255/100,t[3]*255/100,t[4]):(t=lhe.exec(e))?x6(t[1],t[2]/100,t[3]/100,1):(t=che.exec(e))?x6(t[1],t[2]/100,t[3]/100,t[4]):h6.hasOwnProperty(e)?v6(h6[e]):e==="transparent"?new Kr(NaN,NaN,NaN,0):null}function v6(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 fhe(e){return e instanceof Kp||(e=ip(e)),e?(e=e.rgb(),new Kr(e.r,e.g,e.b,e.opacity)):new Kr}function rT(e,t,n,r){return arguments.length===1?fhe(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}yj(Kr,rT,OH(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?rp:Math.pow(rp,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:b6,formatHex:b6,formatHex8:mhe,formatRgb:y6,toString:y6}));function b6(){return`#${Ec(this.r)}${Ec(this.g)}${Ec(this.b)}`}function mhe(){return`#${Ec(this.r)}${Ec(this.g)}${Ec(this.b)}${Ec((isNaN(this.opacity)?1:this.opacity)*255)}`}function y6(){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 x6(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 DH(e){if(e instanceof ci)return new ci(e.h,e.s,e.l,e.opacity);if(e instanceof Kp||(e=ip(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 hhe(e,t,n,r){return arguments.length===1?DH(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}yj(ci,hhe,OH(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?rp:Math.pow(rp,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(FO(e>=240?e-240:e+120,o,r),FO(e,o,r),FO(e<120?e+240:e-120,o,r),this.opacity)},clamp(){return new ci(N6(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("}${N6(this.h)}, ${Rb(this.s)*100}%, ${Rb(this.l)*100}%${e===1?")":`, ${e})`}`}}));function N6(e){return e=(e||0)%360,e<0?e+360:e}function Rb(e){return Math.max(0,Math.min(1,e||0))}function FO(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 xj=e=>()=>e;function phe(e,t){return function(n){return e+n*t}}function ghe(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 vhe(e){return(e=+e)==1?CH:function(t,n){return n-t?ghe(t,n,e):xj(isNaN(t)?n:t)}}function CH(e,t){var n=t-e;return n?phe(e,n):xj(isNaN(e)?t:e)}const w6=(function e(t){var n=vhe(t);function r(o,s){var c=n((o=rT(o)).r,(s=rT(s)).r),u=n(o.g,s.g),f=n(o.b,s.b),m=CH(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 bhe(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 yhe(e){return ArrayBuffer.isView(e)&&!(e instanceof DataView)}function xhe(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]=Ef(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 Nhe(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 whe(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]=Ef(e[o],t[o]):r[o]=t[o];return function(s){for(o in n)r[o]=n[o](s);return r}}var aT=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,KO=new RegExp(aT.source,"g");function Ehe(e){return function(){return e}}function She(e){return function(t){return e(t)+""}}function Ahe(e,t){var n=aT.lastIndex=KO.lastIndex=0,r,o,s,c=-1,u=[],f=[];for(e=e+"",t=t+"";(r=aT.exec(e))&&(o=KO.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=KO.lastIndex;return n<t.length&&(s=t.slice(n),u[c]?u[c]+=s:u[++c]=s),u.length<2?f[0]?She(f[0].x):Ehe(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 Ef(e,t){var n=typeof t,r;return t==null||n==="boolean"?xj(t):(n==="number"?Oy:n==="string"?(r=ip(t))?(t=r,w6):Ahe:t instanceof ip?w6:t instanceof Date?Nhe:yhe(t)?bhe:Array.isArray(t)?xhe:typeof t.valueOf!="function"&&typeof t.toString!="function"||isNaN(t)?whe:Oy)(e,t)}function Nj(e,t){return e=+e,t=+t,function(n){return Math.round(e*(1-n)+t*n)}}function Ohe(e,t){t===void 0&&(t=e,e=Ef);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 Dhe(e){return function(){return e}}function Dy(e){return+e}var E6=[0,1];function Pr(e){return e}function iT(e,t){return(t-=e=+e)?function(n){return(n-e)/t}:Dhe(isNaN(t)?NaN:.5)}function Che(e,t){var n;return e>t&&(n=e,e=t,t=n),function(r){return Math.max(e,Math.min(t,r))}}function The(e,t,n){var r=e[0],o=e[1],s=t[0],c=t[1];return o<r?(r=iT(o,r),s=n(c,s)):(r=iT(r,o),s=n(s,c)),function(u){return s(r(u))}}function _he(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]=iT(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 Xx(){var e=E6,t=E6,n=Ef,r,o,s,c=Pr,u,f,m;function g(){var y=Math.min(e.length,t.length);return c!==Pr&&(c=Che(e[0],e[y-1])),u=y>2?_he:The,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=Nj,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 wj(){return Xx()(Pr,Pr)}function jhe(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 Rhe(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 Phe(e){return function(t){return t.replace(/[0-9]/g,function(n){return e[+n]})}}var Mhe=/^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;function op(e){if(!(t=Mhe.exec(e)))throw new Error("invalid format: "+e);var t;return new Ej({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]})}op.prototype=Ej.prototype;function Ej(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+""}Ej.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 khe(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 TH;function Ihe(e,t){var n=Cy(e,t);if(!n)return e+"";var r=n[0],o=n[1],s=o-(TH=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 S6(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 A6={"%":(e,t)=>(e*100).toFixed(t),b:e=>Math.round(e).toString(2),c:e=>e+"",d:jhe,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)=>S6(e*100,t),r:S6,s:Ihe,X:e=>Math.round(e).toString(16).toUpperCase(),x:e=>Math.round(e).toString(16)};function O6(e){return e}var D6=Array.prototype.map,C6=["y","z","a","f","p","n","µ","m","","k","M","G","T","P","E","Z","Y"];function Lhe(e){var t=e.grouping===void 0||e.thousands===void 0?O6:Rhe(D6.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?O6:Phe(D6.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=op(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"):A6[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=A6[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 I(z){var H=T,G=R,Y,J,q;if(A==="c")G=M(z)+G,z="";else{z=+z;var U=z<0||1/z<0;if(z=isNaN(z)?f:M(Math.abs(z),j),P&&(z=khe(z)),U&&+z==0&&S!=="+"&&(U=!1),H=(U?S==="("?S:u:S==="-"||S==="("?"":S)+H,G=(A==="s"?C6[8+TH/3]:"")+G+(U&&S==="("?")":""),$){for(Y=-1,J=z.length;++Y<J;)if(q=z.charCodeAt(Y),48>q||q>57){G=(q===46?o+z.slice(Y+1):z.slice(Y))+G,z=z.slice(0,Y);break}}}C&&!w&&(z=t(z,1/0));var K=H.length+z.length+G.length,te=K<D?new Array(D-K+1).join(y):"";switch(C&&w&&(z=t(te+z,te.length?D-G.length:1/0),te=""),x){case"<":z=H+z+G+te;break;case"=":z=H+te+z+G;break;case"^":z=te.slice(0,K=te.length>>1)+H+z+G+te.slice(K);break;default:z=te+H+z+G;break}return s(z)}return I.toString=function(){return h+""},I}function g(h,y){var x=m((h=op(h),h.type="f",h)),S=Math.max(-8,Math.min(8,Math.floor(zd(y)/3)))*3,N=Math.pow(10,-S),w=C6[8+S/3];return function(D){return x(N*D)+w}}return{format:m,formatPrefix:g}}var Pb,Sj,_H;Vhe({thousands:",",grouping:[3],currency:["$",""]});function Vhe(e){return Pb=Lhe(e),Sj=Pb.format,_H=Pb.formatPrefix,Pb}function $he(e){return Math.max(0,-zd(Math.abs(e)))}function Bhe(e,t){return Math.max(0,Math.max(-8,Math.min(8,Math.floor(zd(t)/3)))*3-zd(Math.abs(e)))}function zhe(e,t){return e=Math.abs(e),t=Math.abs(t)-e,Math.max(0,zd(t)-zd(e))+1}function jH(e,t,n,r){var o=tT(e,t,n),s;switch(r=op(r??",f"),r.type){case"s":{var c=Math.max(Math.abs(e),Math.abs(t));return r.precision==null&&!isNaN(s=Bhe(o,c))&&(r.precision=s),_H(r,c)}case"":case"e":case"g":case"p":case"r":{r.precision==null&&!isNaN(s=zhe(o,Math.max(Math.abs(e),Math.abs(t))))&&(r.precision=s-(r.type==="e"));break}case"f":case"%":{r.precision==null&&!isNaN(s=$he(o))&&(r.precision=s-(r.type==="%")*2);break}}return Sj(r)}function Nl(e){var t=e.domain;return e.ticks=function(n){var r=t();return JC(r[0],r[r.length-1],n??10)},e.tickFormat=function(n,r){var o=t();return jH(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=eT(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=wj();return e.copy=function(){return Gp(e,Ty())},Ha.apply(e,arguments),Nl(e)}function RH(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 RH(e).unknown(t)},e=arguments.length?Array.from(e,Dy):[0,1],Nl(n)}function PH(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 T6(e){return Math.log(e)}function _6(e){return Math.exp(e)}function Uhe(e){return-Math.log(-e)}function qhe(e){return-Math.exp(-e)}function Hhe(e){return isFinite(e)?+("1e"+e):e<0?0:e}function Fhe(e){return e===10?Hhe:e===Math.E?Math.exp:t=>Math.pow(e,t)}function Khe(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 j6(e){return(t,n)=>-e(-t,n)}function Aj(e){const t=e(T6,_6),n=t.domain;let r=10,o,s;function c(){return o=Khe(r),s=Fhe(r),n()[0]<0?(o=j6(o),s=j6(s),e(Uhe,qhe)):e(T6,_6),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=JC(m,g,w))}else D=JC(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=op(f)).precision==null&&(f.trim=!0),f=Sj(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(PH(n(),{floor:u=>s(Math.floor(o(u))),ceil:u=>s(Math.ceil(o(u)))})),t}function MH(){const e=Aj(Xx()).domain([1,10]);return e.copy=()=>Gp(e,MH()).base(e.base()),Ha.apply(e,arguments),e}function R6(e){return function(t){return Math.sign(t)*Math.log1p(Math.abs(t/e))}}function P6(e){return function(t){return Math.sign(t)*Math.expm1(Math.abs(t))*e}}function Oj(e){var t=1,n=e(R6(t),P6(t));return n.constant=function(r){return arguments.length?e(R6(t=+r),P6(t)):t},Nl(n)}function kH(){var e=Oj(Xx());return e.copy=function(){return Gp(e,kH()).constant(e.constant())},Ha.apply(e,arguments)}function M6(e){return function(t){return t<0?-Math.pow(-t,e):Math.pow(t,e)}}function Ghe(e){return e<0?-Math.sqrt(-e):Math.sqrt(e)}function Yhe(e){return e<0?-e*e:e*e}function Dj(e){var t=e(Pr,Pr),n=1;function r(){return n===1?e(Pr,Pr):n===.5?e(Ghe,Yhe):e(M6(n),M6(1/n))}return t.exponent=function(o){return arguments.length?(n=+o,r()):n},Nl(t)}function Cj(){var e=Dj(Xx());return e.copy=function(){return Gp(e,Cj()).exponent(e.exponent())},Ha.apply(e,arguments),e}function Qhe(){return Cj.apply(null,arguments).exponent(.5)}function k6(e){return Math.sign(e)*e*e}function Xhe(e){return Math.sign(e)*Math.sqrt(Math.abs(e))}function IH(){var e=wj(),t=[0,1],n=!1,r;function o(s){var c=Xhe(e(s));return isNaN(c)?r:n?Math.round(c):c}return o.invert=function(s){return e.invert(k6(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(k6)),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 IH(e.domain(),t).round(n).clamp(e.clamp()).unknown(r)},Ha.apply(o,arguments),Nl(o)}function LH(){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]=the(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 LH().domain(e).range(t).unknown(r)},Ha.apply(s,arguments)}function VH(){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 VH().domain([e,t]).range(o).unknown(s)},Ha.apply(Nl(c),arguments)}function $H(){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 $H().domain(e).range(t).unknown(n)},Ha.apply(o,arguments)}const GO=new Date,YO=new Date;function Bn(e,t,n,r){function o(s){return e(s=arguments.length===0?new Date:new Date(+s)),s}return o.floor=s=>(e(s=new Date(+s)),s),o.ceil=s=>(e(s=new Date(s-1)),t(s,1),e(s),s),o.round=s=>{const 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=>Bn(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)=>(GO.setTime(+s),YO.setTime(+c),e(GO),e(YO),Math.floor(n(GO,YO))),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=Bn(()=>{},(e,t)=>{e.setTime(+e+t)},(e,t)=>t-e);_y.every=e=>(e=Math.floor(e),!isFinite(e)||!(e>0)?null:e>1?Bn(t=>{t.setTime(Math.floor(t/e)*e)},(t,n)=>{t.setTime(+t+n*e)},(t,n)=>(n-t)/e):_y);_y.range;const Jo=1e3,$a=Jo*60,es=$a*60,ss=es*24,Tj=ss*7,I6=ss*30,QO=ss*365,Sc=Bn(e=>{e.setTime(e-e.getMilliseconds())},(e,t)=>{e.setTime(+e+t*Jo)},(e,t)=>(t-e)/Jo,e=>e.getUTCSeconds());Sc.range;const _j=Bn(e=>{e.setTime(e-e.getMilliseconds()-e.getSeconds()*Jo)},(e,t)=>{e.setTime(+e+t*$a)},(e,t)=>(t-e)/$a,e=>e.getMinutes());_j.range;const jj=Bn(e=>{e.setUTCSeconds(0,0)},(e,t)=>{e.setTime(+e+t*$a)},(e,t)=>(t-e)/$a,e=>e.getUTCMinutes());jj.range;const Rj=Bn(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());Rj.range;const Pj=Bn(e=>{e.setUTCMinutes(0,0,0)},(e,t)=>{e.setTime(+e+t*es)},(e,t)=>(t-e)/es,e=>e.getUTCHours());Pj.range;const Yp=Bn(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 Wx=Bn(e=>{e.setUTCHours(0,0,0,0)},(e,t)=>{e.setUTCDate(e.getUTCDate()+t)},(e,t)=>(t-e)/ss,e=>e.getUTCDate()-1);Wx.range;const BH=Bn(e=>{e.setUTCHours(0,0,0,0)},(e,t)=>{e.setUTCDate(e.getUTCDate()+t)},(e,t)=>(t-e)/ss,e=>Math.floor(e/ss));BH.range;function iu(e){return Bn(t=>{t.setDate(t.getDate()-(t.getDay()+7-e)%7),t.setHours(0,0,0,0)},(t,n)=>{t.setDate(t.getDate()+n*7)},(t,n)=>(n-t-(n.getTimezoneOffset()-t.getTimezoneOffset())*$a)/Tj)}const Zx=iu(0),jy=iu(1),Whe=iu(2),Zhe=iu(3),Ud=iu(4),Jhe=iu(5),epe=iu(6);Zx.range;jy.range;Whe.range;Zhe.range;Ud.range;Jhe.range;epe.range;function ou(e){return Bn(t=>{t.setUTCDate(t.getUTCDate()-(t.getUTCDay()+7-e)%7),t.setUTCHours(0,0,0,0)},(t,n)=>{t.setUTCDate(t.getUTCDate()+n*7)},(t,n)=>(n-t)/Tj)}const Jx=ou(0),Ry=ou(1),tpe=ou(2),npe=ou(3),qd=ou(4),rpe=ou(5),ape=ou(6);Jx.range;Ry.range;tpe.range;npe.range;qd.range;rpe.range;ape.range;const Mj=Bn(e=>{e.setDate(1),e.setHours(0,0,0,0)},(e,t)=>{e.setMonth(e.getMonth()+t)},(e,t)=>t.getMonth()-e.getMonth()+(t.getFullYear()-e.getFullYear())*12,e=>e.getMonth());Mj.range;const kj=Bn(e=>{e.setUTCDate(1),e.setUTCHours(0,0,0,0)},(e,t)=>{e.setUTCMonth(e.getUTCMonth()+t)},(e,t)=>t.getUTCMonth()-e.getUTCMonth()+(t.getUTCFullYear()-e.getUTCFullYear())*12,e=>e.getUTCMonth());kj.range;const ls=Bn(e=>{e.setMonth(0,1),e.setHours(0,0,0,0)},(e,t)=>{e.setFullYear(e.getFullYear()+t)},(e,t)=>t.getFullYear()-e.getFullYear(),e=>e.getFullYear());ls.every=e=>!isFinite(e=Math.floor(e))||!(e>0)?null:Bn(t=>{t.setFullYear(Math.floor(t.getFullYear()/e)*e),t.setMonth(0,1),t.setHours(0,0,0,0)},(t,n)=>{t.setFullYear(t.getFullYear()+n*e)});ls.range;const cs=Bn(e=>{e.setUTCMonth(0,1),e.setUTCHours(0,0,0,0)},(e,t)=>{e.setUTCFullYear(e.getUTCFullYear()+t)},(e,t)=>t.getUTCFullYear()-e.getUTCFullYear(),e=>e.getUTCFullYear());cs.every=e=>!isFinite(e=Math.floor(e))||!(e>0)?null:Bn(t=>{t.setUTCFullYear(Math.floor(t.getUTCFullYear()/e)*e),t.setUTCMonth(0,1),t.setUTCHours(0,0,0,0)},(t,n)=>{t.setUTCFullYear(t.getUTCFullYear()+n*e)});cs.range;function zH(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,Tj],[t,1,I6],[t,3,3*I6],[e,1,QO]];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=vj(([,,w])=>w).right(c,y);if(x===c.length)return e.every(tT(m/QO,g/QO,h));if(x===0)return _y.every(Math.max(tT(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[ipe,ope]=zH(cs,kj,Jx,BH,Pj,jj),[spe,lpe]=zH(ls,Mj,Zx,Yp,Rj,_j);function XO(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 WO(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 dh(e,t,n){return{y:e,m:t,d:n,H:0,M:0,S:0,L:0}}function cpe(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=fh(o),g=mh(o),h=fh(s),y=mh(s),x=fh(c),S=mh(c),N=fh(u),w=mh(u),D=fh(f),C=mh(f),j={a:U,A:K,b:te,B:ne,c:null,d:U6,e:U6,f:Rpe,g:Upe,G:Hpe,H:Tpe,I:_pe,j:jpe,L:UH,m:Ppe,M:Mpe,p:L,q:Q,Q:F6,s:K6,S:kpe,u:Ipe,U:Lpe,V:Vpe,w:$pe,W:Bpe,x:null,X:null,y:zpe,Y:qpe,Z:Fpe,"%":H6},P={a:W,A:ae,b:ge,B:we,c:null,d:q6,e:q6,f:Qpe,g:ige,G:sge,H:Kpe,I:Gpe,j:Ype,L:HH,m:Xpe,M:Wpe,p:ue,q:xe,Q:F6,s:K6,S:Zpe,u:Jpe,U:ege,V:tge,w:nge,W:rge,x:null,X:null,y:age,Y:oge,Z:lge,"%":H6},A={a:I,A:z,b:H,B:G,c:Y,d:B6,e:B6,f:Ape,g:$6,G:V6,H:z6,I:z6,j:Npe,L:Spe,m:xpe,M:wpe,p:$,q:ype,Q:Dpe,s:Cpe,S:Epe,u:hpe,U:ppe,V:gpe,w:mpe,W:vpe,x:J,X:q,y:$6,Y:V6,Z:bpe,"%":Ope};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,ye){return function(de){var ie=[],ze=-1,Ne=0,ut=me.length,Ve,nt,zn;for(de instanceof Date||(de=new Date(+de));++ze<ut;)me.charCodeAt(ze)===37&&(ie.push(me.slice(Ne,ze)),(nt=L6[Ve=me.charAt(++ze)])!=null?Ve=me.charAt(++ze):nt=Ve==="e"?" ":"0",(zn=ye[Ve])&&(Ve=zn(de,nt)),ie.push(Ve),Ne=ze+1);return ie.push(me.slice(Ne,ze)),ie.join("")}}function R(me,ye){return function(de){var ie=dh(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(ye&&!("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=WO(dh(ie.y,0,1)),ut=Ne.getUTCDay(),Ne=ut>4||ut===0?Ry.ceil(Ne):Ry(Ne),Ne=Wx.offset(Ne,(ie.V-1)*7),ie.y=Ne.getUTCFullYear(),ie.m=Ne.getUTCMonth(),ie.d=Ne.getUTCDate()+(ie.w+6)%7):(Ne=XO(dh(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?WO(dh(ie.y,0,1)).getUTCDay():XO(dh(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,WO(ie)):XO(ie)}}function M(me,ye,de,ie){for(var ze=0,Ne=ye.length,ut=de.length,Ve,nt;ze<Ne;){if(ie>=ut)return-1;if(Ve=ye.charCodeAt(ze++),Ve===37){if(Ve=ye.charAt(ze++),nt=A[Ve in L6?ye.charAt(ze++):Ve],!nt||(ie=nt(me,de,ie))<0)return-1}else if(Ve!=de.charCodeAt(ie++))return-1}return ie}function $(me,ye,de){var ie=m.exec(ye.slice(de));return ie?(me.p=g.get(ie[0].toLowerCase()),de+ie[0].length):-1}function I(me,ye,de){var ie=x.exec(ye.slice(de));return ie?(me.w=S.get(ie[0].toLowerCase()),de+ie[0].length):-1}function z(me,ye,de){var ie=h.exec(ye.slice(de));return ie?(me.w=y.get(ie[0].toLowerCase()),de+ie[0].length):-1}function H(me,ye,de){var ie=D.exec(ye.slice(de));return ie?(me.m=C.get(ie[0].toLowerCase()),de+ie[0].length):-1}function G(me,ye,de){var ie=N.exec(ye.slice(de));return ie?(me.m=w.get(ie[0].toLowerCase()),de+ie[0].length):-1}function Y(me,ye,de){return M(me,t,ye,de)}function J(me,ye,de){return M(me,n,ye,de)}function q(me,ye,de){return M(me,r,ye,de)}function U(me){return c[me.getDay()]}function K(me){return s[me.getDay()]}function te(me){return f[me.getMonth()]}function ne(me){return u[me.getMonth()]}function L(me){return o[+(me.getHours()>=12)]}function Q(me){return 1+~~(me.getMonth()/3)}function W(me){return c[me.getUTCDay()]}function ae(me){return s[me.getUTCDay()]}function ge(me){return f[me.getUTCMonth()]}function we(me){return u[me.getUTCMonth()]}function ue(me){return o[+(me.getUTCHours()>=12)]}function xe(me){return 1+~~(me.getUTCMonth()/3)}return{format:function(me){var ye=T(me+="",j);return ye.toString=function(){return me},ye},parse:function(me){var ye=R(me+="",!1);return ye.toString=function(){return me},ye},utcFormat:function(me){var ye=T(me+="",P);return ye.toString=function(){return me},ye},utcParse:function(me){var ye=R(me+="",!0);return ye.toString=function(){return me},ye}}}var L6={"-":"",_:" ",0:"0"},Wn=/^\s*\d+/,upe=/^%/,dpe=/[\\^$*+?|[\]().{}]/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 fpe(e){return e.replace(dpe,"\\$&")}function fh(e){return new RegExp("^(?:"+e.map(fpe).join("|")+")","i")}function mh(e){return new Map(e.map((t,n)=>[t.toLowerCase(),n]))}function mpe(e,t,n){var r=Wn.exec(t.slice(n,n+1));return r?(e.w=+r[0],n+r[0].length):-1}function hpe(e,t,n){var r=Wn.exec(t.slice(n,n+1));return r?(e.u=+r[0],n+r[0].length):-1}function ppe(e,t,n){var r=Wn.exec(t.slice(n,n+2));return r?(e.U=+r[0],n+r[0].length):-1}function gpe(e,t,n){var r=Wn.exec(t.slice(n,n+2));return r?(e.V=+r[0],n+r[0].length):-1}function vpe(e,t,n){var r=Wn.exec(t.slice(n,n+2));return r?(e.W=+r[0],n+r[0].length):-1}function V6(e,t,n){var r=Wn.exec(t.slice(n,n+4));return r?(e.y=+r[0],n+r[0].length):-1}function $6(e,t,n){var r=Wn.exec(t.slice(n,n+2));return r?(e.y=+r[0]+(+r[0]>68?1900:2e3),n+r[0].length):-1}function bpe(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 ype(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 xpe(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 B6(e,t,n){var r=Wn.exec(t.slice(n,n+2));return r?(e.d=+r[0],n+r[0].length):-1}function Npe(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 z6(e,t,n){var r=Wn.exec(t.slice(n,n+2));return r?(e.H=+r[0],n+r[0].length):-1}function wpe(e,t,n){var r=Wn.exec(t.slice(n,n+2));return r?(e.M=+r[0],n+r[0].length):-1}function Epe(e,t,n){var r=Wn.exec(t.slice(n,n+2));return r?(e.S=+r[0],n+r[0].length):-1}function Spe(e,t,n){var r=Wn.exec(t.slice(n,n+3));return r?(e.L=+r[0],n+r[0].length):-1}function Ape(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 Ope(e,t,n){var r=upe.exec(t.slice(n,n+1));return r?n+r[0].length:-1}function Dpe(e,t,n){var r=Wn.exec(t.slice(n));return r?(e.Q=+r[0],n+r[0].length):-1}function Cpe(e,t,n){var r=Wn.exec(t.slice(n));return r?(e.s=+r[0],n+r[0].length):-1}function U6(e,t){return jt(e.getDate(),t,2)}function Tpe(e,t){return jt(e.getHours(),t,2)}function _pe(e,t){return jt(e.getHours()%12||12,t,2)}function jpe(e,t){return jt(1+Yp.count(ls(e),e),t,3)}function UH(e,t){return jt(e.getMilliseconds(),t,3)}function Rpe(e,t){return UH(e,t)+"000"}function Ppe(e,t){return jt(e.getMonth()+1,t,2)}function Mpe(e,t){return jt(e.getMinutes(),t,2)}function kpe(e,t){return jt(e.getSeconds(),t,2)}function Ipe(e){var t=e.getDay();return t===0?7:t}function Lpe(e,t){return jt(Zx.count(ls(e)-1,e),t,2)}function qH(e){var t=e.getDay();return t>=4||t===0?Ud(e):Ud.ceil(e)}function Vpe(e,t){return e=qH(e),jt(Ud.count(ls(e),e)+(ls(e).getDay()===4),t,2)}function $pe(e){return e.getDay()}function Bpe(e,t){return jt(jy.count(ls(e)-1,e),t,2)}function zpe(e,t){return jt(e.getFullYear()%100,t,2)}function Upe(e,t){return e=qH(e),jt(e.getFullYear()%100,t,2)}function qpe(e,t){return jt(e.getFullYear()%1e4,t,4)}function Hpe(e,t){var n=e.getDay();return e=n>=4||n===0?Ud(e):Ud.ceil(e),jt(e.getFullYear()%1e4,t,4)}function Fpe(e){var t=e.getTimezoneOffset();return(t>0?"-":(t*=-1,"+"))+jt(t/60|0,"0",2)+jt(t%60,"0",2)}function q6(e,t){return jt(e.getUTCDate(),t,2)}function Kpe(e,t){return jt(e.getUTCHours(),t,2)}function Gpe(e,t){return jt(e.getUTCHours()%12||12,t,2)}function Ype(e,t){return jt(1+Wx.count(cs(e),e),t,3)}function HH(e,t){return jt(e.getUTCMilliseconds(),t,3)}function Qpe(e,t){return HH(e,t)+"000"}function Xpe(e,t){return jt(e.getUTCMonth()+1,t,2)}function Wpe(e,t){return jt(e.getUTCMinutes(),t,2)}function Zpe(e,t){return jt(e.getUTCSeconds(),t,2)}function Jpe(e){var t=e.getUTCDay();return t===0?7:t}function ege(e,t){return jt(Jx.count(cs(e)-1,e),t,2)}function FH(e){var t=e.getUTCDay();return t>=4||t===0?qd(e):qd.ceil(e)}function tge(e,t){return e=FH(e),jt(qd.count(cs(e),e)+(cs(e).getUTCDay()===4),t,2)}function nge(e){return e.getUTCDay()}function rge(e,t){return jt(Ry.count(cs(e)-1,e),t,2)}function age(e,t){return jt(e.getUTCFullYear()%100,t,2)}function ige(e,t){return e=FH(e),jt(e.getUTCFullYear()%100,t,2)}function oge(e,t){return jt(e.getUTCFullYear()%1e4,t,4)}function sge(e,t){var n=e.getUTCDay();return e=n>=4||n===0?qd(e):qd.ceil(e),jt(e.getUTCFullYear()%1e4,t,4)}function lge(){return"+0000"}function H6(){return"%"}function F6(e){return+e}function K6(e){return Math.floor(+e/1e3)}var vd,KH,GH;cge({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 cge(e){return vd=cpe(e),KH=vd.format,vd.parse,GH=vd.utcFormat,vd.utcParse,vd}function uge(e){return new Date(e)}function dge(e){return e instanceof Date?+e:+new Date(+e)}function Ij(e,t,n,r,o,s,c,u,f,m){var g=wj(),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,dge)):y().map(uge)},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(PH(R,T)):g},g.copy=function(){return Gp(g,Ij(e,t,n,r,o,s,c,u,f,m))},g}function fge(){return Ha.apply(Ij(spe,lpe,ls,Mj,Zx,Yp,Rj,_j,Sc,KH).domain([new Date(2e3,0,1),new Date(2e3,0,2)]),arguments)}function mge(){return Ha.apply(Ij(ipe,ope,cs,kj,Jx,Wx,Pj,jj,Sc,GH).domain([Date.UTC(2e3,0,1),Date.UTC(2e3,0,2)]),arguments)}function e0(){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(Ef),m.rangeRound=g(Nj),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 YH(){var e=Nl(e0()(Pr));return e.copy=function(){return wl(e,YH())},hs.apply(e,arguments)}function QH(){var e=Aj(e0()).domain([1,10]);return e.copy=function(){return wl(e,QH()).base(e.base())},hs.apply(e,arguments)}function XH(){var e=Oj(e0());return e.copy=function(){return wl(e,XH()).constant(e.constant())},hs.apply(e,arguments)}function Lj(){var e=Dj(e0());return e.copy=function(){return wl(e,Lj()).exponent(e.exponent())},hs.apply(e,arguments)}function hge(){return Lj.apply(null,arguments).exponent(.5)}function WH(){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)=>ehe(e,s/r))},n.copy=function(){return WH(t).domain(e)},hs.apply(n,arguments)}function t0(){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=Ohe(N,[D,C,j]),x):[m(0),m(.5),m(1)]}}return x.range=S(Ef),x.rangeRound=S(Nj),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 ZH(){var e=Nl(t0()(Pr));return e.copy=function(){return wl(e,ZH())},hs.apply(e,arguments)}function JH(){var e=Aj(t0()).domain([.1,1,10]);return e.copy=function(){return wl(e,JH()).base(e.base())},hs.apply(e,arguments)}function eF(){var e=Oj(t0());return e.copy=function(){return wl(e,eF()).constant(e.constant())},hs.apply(e,arguments)}function Vj(){var e=Dj(t0());return e.copy=function(){return wl(e,Vj()).exponent(e.exponent())},hs.apply(e,arguments)}function pge(){return Vj.apply(null,arguments).exponent(.5)}const G6=Object.freeze(Object.defineProperty({__proto__:null,scaleBand:np,scaleDiverging:ZH,scaleDivergingLog:JH,scaleDivergingPow:Vj,scaleDivergingSqrt:pge,scaleDivergingSymlog:eF,scaleIdentity:RH,scaleImplicit:nT,scaleLinear:Ty,scaleLog:MH,scaleOrdinal:bj,scalePoint:_h,scalePow:Cj,scaleQuantile:LH,scaleQuantize:VH,scaleRadial:IH,scaleSequential:YH,scaleSequentialLog:QH,scaleSequentialPow:Lj,scaleSequentialQuantile:WH,scaleSequentialSqrt:hge,scaleSequentialSymlog:XH,scaleSqrt:Qhe,scaleSymlog:kH,scaleThreshold:$H,scaleTime:fge,scaleUtc:mge,tickFormat:jH},Symbol.toStringTag,{value:"Module"}));var ZO,Y6;function n0(){if(Y6)return ZO;Y6=1;var e=bf();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 ZO=t,ZO}var JO,Q6;function tF(){if(Q6)return JO;Q6=1;function e(t,n){return t>n}return JO=e,JO}var eD,X6;function gge(){if(X6)return eD;X6=1;var e=n0(),t=tF(),n=wf();function r(o){return o&&o.length?e(o,n,t):void 0}return eD=r,eD}var vge=gge();const ul=Bt(vge);var tD,W6;function nF(){if(W6)return tD;W6=1;function e(t,n){return t<n}return tD=e,tD}var nD,Z6;function bge(){if(Z6)return nD;Z6=1;var e=n0(),t=nF(),n=wf();function r(o){return o&&o.length?e(o,n,t):void 0}return nD=r,nD}var yge=bge();const r0=Bt(yge);var rD,J6;function xge(){if(J6)return rD;J6=1;var e=ej(),t=vo(),n=uH(),r=Gr();function o(s,c){var u=r(s)?e:n;return u(s,t(c,3))}return rD=o,rD}var aD,eB;function Nge(){if(eB)return aD;eB=1;var e=lH(),t=xge();function n(r,o){return e(t(r,o),1)}return aD=n,aD}var wge=Nge();const Ege=Bt(wge);var iD,tB;function Sge(){if(tB)return iD;tB=1;var e=mj();function t(n,r){return e(n,r)}return iD=t,iD}var Age=Sge();const Hd=Bt(Age);var Sf=1e9,Oge={precision:20,rounding:4,toExpNeg:-7,toExpPos:21,LN10:"2.302585092994045684017991454684364207601101488628772976033327900967572609677352480235997205089598298341967784042286"},Bj,ln=!0,qa="[DecimalError] ",Tc=qa+"Invalid argument: ",$j=qa+"Exponent out of range: ",Af=Math.floor,bc=Math.pow,Dge=/^(\d+(\.\d*)?|\.\d+)(e[+-]?\d+)?$/i,ma,Yn=1e7,rn=7,rF=9007199254740991,Py=Af(rF/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(sp(n,s),sp(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?oF(t,e):aF(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 iF(this)};Pe.naturalLogarithm=Pe.ln=function(){return sp(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?aF(t,e):oF(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=Af((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%Yn|0,t=u/Yn|0;s[o]=(s[o]+t)%Yn|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,Sf),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,Sf),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,Sf),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)<=rF){for(o=new f(ma),t=Math.ceil(r/rn+4),ln=!1;n%2&&(o=o.times(u),rB(o.d,t)),n=Af(n/2),n!==0;)u=u.times(u),rB(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(sp(u,r+m)),ln=!0,o=iF(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,Sf),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,Sf),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 aF(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)/Yn|0,f[s]%=Yn;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%Yn|0,c=s/Yn|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*Yn+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,I=r.s==o.s?1:-1,z=r.d,H=o.d;if(!r.s)return new $(r);if(!o.s)throw Error(qa+"Division by zero");for(f=r.e-o.e,R=H.length,A=z.length,x=new $(I),S=x.d=[],m=0;H[m]==(z[m]||0);)++m;if(H[m]>(z[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,H=H[0],C++;(m<A||g)&&C--;m++)j=g*Yn+(z[m]||0),S[m]=j/H|0,g=j%H|0;else{for(g=Yn/(H[0]+1)|0,g>1&&(H=e(H,g),z=e(z,g),R=H.length,A=z.length),P=R,N=z.slice(0,R),w=N.length;w<R;)N[w++]=0;M=H.slice(),M.unshift(0),T=H[0],H[1]>=Yn/2&&++T;do g=0,u=t(H,N,R,w),u<0?(D=N[0],R!=w&&(D=D*Yn+(N[1]||0)),g=D/T|0,g>1?(g>=Yn&&(g=Yn-1),h=e(H,g),y=h.length,w=N.length,u=t(h,N,y,w),u==1&&(g--,n(h,R<y?M:H,y))):(g==0&&(u=g=1),h=H.slice()),y=h.length,y<w&&h.unshift(0),n(N,h,w),u==-1&&(w=N.length,u=t(H,N,R,w),u<1&&(g++,n(N,R<w?M:H,w))),w=N.length):u===0&&(g++,N=[0]),S[m++]=g,u&&N[0]?N[w++]=z[P]||0:(N=[z[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 iF(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($j+_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 oD(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 sp(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),oD(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=oD(N,m+2,w).times(s+""),x=sp(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(oD(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 nB(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=Af(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($j+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=Af(-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)==Yn&&(h[0]=1,++e.e);break}else{if(h[g]+=s,h[g]!=Yn)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($j+_n(e));return e}function oF(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]=Yn-1;--f[s],f[o]+=Yn}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 rB(e,t){if(e.length>t)return e.length=t,!0}function sF(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 nB(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,Dge.test(s))nB(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=sF,o.config=o.set=Cge,e===void 0&&(e={}),e)for(r=["precision","rounding","toExpNeg","toExpPos","LN10"],t=0;t<r.length;)e.hasOwnProperty(n=r[t++])||(e[n]=this[n]);return o.config(e),o}function Cge(e){if(!e||typeof e!="object")throw Error(qa+"Object expected");var t,n,r,o=["precision",1,Sf,"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(Af(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 Bj=sF(Oge);ma=new Bj(1);const Ft=Bj;function Tge(e){return Pge(e)||Rge(e)||jge(e)||_ge()}function _ge(){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 jge(e,t){if(e){if(typeof e=="string")return oT(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 oT(e,t)}}function Rge(e){if(typeof Symbol<"u"&&Symbol.iterator in Object(e))return Array.from(e)}function Pge(e){if(Array.isArray(e))return oT(e)}function oT(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 Mge=function(t){return t},lF={},cF=function(t){return t===lF},aB=function(t){return function n(){return arguments.length===0||arguments.length===1&&cF(arguments.length<=0?void 0:arguments[0])?n:t.apply(void 0,arguments)}},kge=function e(t,n){return t===1?n:aB(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!==lF}).length;return c>=t?n.apply(void 0,o):e(t-c,aB(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 cF(h)?f.shift():h});return n.apply(void 0,Tge(g).concat(f))}))})},a0=function(t){return kge(t.length,t)},sT=function(t,n){for(var r=[],o=t;o<n;++o)r[o-t]=o;return r},Ige=a0(function(e,t){return Array.isArray(t)?t.map(e):Object.keys(t).map(function(n){return t[n]}).map(e)}),Lge=function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];if(!n.length)return Mge;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))}},lT=function(t){return Array.isArray(t)?t.reverse():t.split("").reverse.join("")},uF=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 Vge(e){var t;return e===0?t=1:t=Math.floor(new Ft(e).abs().log(10).toNumber())+1,t}function $ge(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 Bge=a0(function(e,t,n){var r=+e,o=+t;return r+n*(o-r)}),zge=a0(function(e,t,n){var r=t-+e;return r=r||1/0,(n-e)/r}),Uge=a0(function(e,t,n){var r=t-+e;return r=r||1/0,Math.max(0,Math.min(1,(n-e)/r))});const i0={rangeStep:$ge,getDigitCount:Vge,interpolateNumber:Bge,uninterpolateNumber:zge,uninterpolateTruncation:Uge};function cT(e){return Fge(e)||Hge(e)||dF(e)||qge()}function qge(){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 Hge(e){if(typeof Symbol<"u"&&Symbol.iterator in Object(e))return Array.from(e)}function Fge(e){if(Array.isArray(e))return uT(e)}function lp(e,t){return Yge(e)||Gge(e,t)||dF(e,t)||Kge()}function Kge(){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 dF(e,t){if(e){if(typeof e=="string")return uT(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 uT(e,t)}}function uT(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 Gge(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 Yge(e){if(Array.isArray(e))return e}function fF(e){var t=lp(e,2),n=t[0],r=t[1],o=n,s=r;return n>r&&(o=r,s=n),[o,s]}function mF(e,t,n){if(e.lte(0))return new Ft(0);var r=i0.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 Qge(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(i0.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=Lge(Ige(function(f){return o.add(new Ft(f-c).mul(r)).toNumber()}),sT);return u(0,t)}function hF(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=mF(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?hF(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 Xge(e){var t=lp(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=fF([n,r]),f=lp(u,2),m=f[0],g=f[1];if(m===-1/0||g===1/0){var h=g===1/0?[m].concat(cT(sT(0,o-1).map(function(){return 1/0}))):[].concat(cT(sT(0,o-1).map(function(){return-1/0})),[g]);return n>r?lT(h):h}if(m===g)return Qge(m,o,s);var y=hF(m,g,c,s),x=y.step,S=y.tickMin,N=y.tickMax,w=i0.rangeStep(S,N.add(new Ft(.1).mul(x)),x);return n>r?lT(w):w}function Wge(e,t){var n=lp(e,2),r=n[0],o=n[1],s=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0,c=fF([r,o]),u=lp(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=mF(new Ft(m).sub(f).div(g-1),s,0),y=[].concat(cT(i0.rangeStep(new Ft(f),new Ft(m).sub(new Ft(.99).mul(h)),h)),[m]);return r>o?lT(y):y}var Zge=uF(Xge),Jge=uF(Wge),iB="Invariant failed";function Gc(e,t){var n=typeof t=="function"?t():t,r=n?"".concat(iB,": ").concat(n):iB;throw new Error(r)}var eve=["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 tve(e,t){return ive(e)||ave(e,t)||rve(e,t)||nve()}function nve(){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 rve(e,t){if(e){if(typeof e=="string")return oB(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 oB(e,t)}}function oB(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 ave(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 ive(e){if(Array.isArray(e))return e}function ove(e,t){if(e==null)return{};var n=sve(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 sve(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 lve(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function cve(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,vF(r.key),r)}}function uve(e,t,n){return t&&cve(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function dve(e,t,n){return t=ky(t),fve(e,pF()?Reflect.construct(t,n||[],ky(e).constructor):t.apply(e,n))}function fve(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 mve(e)}function mve(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function pF(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(pF=function(){return!!e})()}function ky(e){return ky=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},ky(e)}function hve(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&&dT(e,t)}function dT(e,t){return dT=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,o){return r.__proto__=o,r},dT(e,t)}function gF(e,t,n){return t=vF(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function vF(e){var t=pve(e,"string");return Fd(t)=="symbol"?t:t+""}function pve(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 o0=(function(e){function t(){return lve(this,t),dve(this,t,arguments)}return hve(t,e),uve(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=ove(r,eve),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=tve(P,2);T=M[0],R=M[1]}else T=R=P;if(s==="vertical"){var $=g.scale,I=C+o,z=I+c,H=I-c,G=$(j-T),Y=$(j+R);A.push({x1:Y,y1:z,x2:Y,y2:H}),A.push({x1:G,y1:I,x2:Y,y2:I}),A.push({x1:G,y1:z,x2:G,y2:H})}else if(s==="horizontal"){var J=h.scale,q=D+o,U=q-c,K=q+c,te=J(j-T),ne=J(j+R);A.push({x1:U,y1:ne,x2:K,y2:ne}),A.push({x1:q,y1:te,x2:q,y2:ne}),A.push({x1:U,y1:te,x2:K,y2:te})}return F.createElement(Dt,My({className:"recharts-errorBar",key:"bar-".concat(A.map(function(L){return"".concat(L.x1,"-").concat(L.x2,"-").concat(L.y1,"-").concat(L.y2)}))},x),A.map(function(L){return F.createElement("line",My({},L,{key:"line-".concat(L.x1,"-").concat(L.x2,"-").concat(L.y1,"-").concat(L.y2)}))}))});return F.createElement(Dt,{className:"recharts-errorBars"},S)}}])})(F.Component);gF(o0,"defaultProps",{stroke:"black",strokeWidth:1.5,width:5,offset:0,layout:"horizontal"});gF(o0,"displayName","ErrorBar");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 sB(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?sB(Object(n),!0).forEach(function(r){gve(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):sB(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function gve(e,t,n){return t=vve(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function vve(e){var t=bve(e,"string");return cp(t)=="symbol"?t:t+""}function bve(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(t==="string"?String:Number)(e)}var bF=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:zj(h),value:N||S,payload:x}}),mc(mc(mc({},f),Dc.getWithHeight(c,o)),{},{payload:m,item:c})};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){return wve(e)||Nve(e)||xve(e)||yve()}function yve(){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 xve(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 Nve(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function wve(e){if(Array.isArray(e))return fT(e)}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 cB(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?cB(Object(n),!0).forEach(function(r){jd(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):cB(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function jd(e,t,n){return t=Eve(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Eve(e){var t=Sve(e,"string");return up(t)=="symbol"?t:t+""}function Sve(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)}function Vn(e,t,n){return ot(e)||ot(t)?n:$n(t)?va(e,t,n):Xe(t)?t(e):n}function jh(e,t,n,r){var o=Ege(e,function(u){return Vn(u,t)});if(n==="number"){var s=o.filter(function(u){return Oe(u)||parseFloat(u)});return s.length?[r0(s),ul(s)]:[1/0,-1/0]}var c=r?o.filter(function(u){return!ot(u)}):o;return c.map(function(u){return $n(u)||u instanceof Date?u:""})}var Ave=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},zj=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},Ove=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},Dve=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(lB(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(lB(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},Cve=function(t,n,r,o){var s=r.children,c=r.width,u=r.margin,f=c-(u.left||0)-(u.right||0),m=bF({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},Tve=function(t,n,r){return ot(n)?!0:t==="horizontal"?n==="yAxis":t==="vertical"||r==="x"?n==="xAxis":r==="y"?n==="yAxis":!0},yF=function(t,n,r,o,s){var c=n.props.children,u=Ua(c,o0).filter(function(m){return Tve(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=Vn(g,r);if(ot(h))return m;var y=Array.isArray(h)?[r0(h),ul(h)]:[h,h],x=f.reduce(function(S,N){var w=Vn(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},_ve=function(t,n,r,o,s){var c=n.map(function(u){return yF(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},xF=function(t,n,r,o,s){var c=n.map(function(f){var m=f.props.dataKey;return r==="number"&&m&&yF(t,f,m,o)||jh(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},[])},NF=function(t,n){return t==="horizontal"&&n==="xAxis"||t==="vertical"&&n==="yAxis"||t==="centric"&&n==="angleAxis"||t==="radial"&&n==="radiusAxis"},wF=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!xf(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}})},sD=new WeakMap,Mb=function(t,n){if(typeof n!="function")return t;sD.has(t)||sD.set(t,new WeakMap);var r=sD.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},EF=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:np(),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:_h(),realScaleType:"point"}:s==="category"?{scale:np(),realScaleType:"band"}:{scale:Ty(),realScaleType:"linear"};if(qc(o)){var f="scale".concat(Ux(o));return{scale:(G6[f]||_h)(),realScaleType:G6[f]?f:"point"}}return Xe(o)?{scale:o}:{scale:_h(),realScaleType:"point"}},uB=1e-4,SF=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])-uB,c=Math.max(o[0],o[1])+uB,u=t(n[0]),f=t(n[r-1]);(u<s||u>c||f<s||f>c)&&t.domain([n[0],n[r-1]])}},jve=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},Rve=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},Pve=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=xf(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])}},Mve=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=xf(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)}},kve={sign:Pve,expand:Eue,none:Id,silhouette:Sue,wiggle:Aue,positive:Mve},Ive=function(t,n,r){var o=n.map(function(u){return u.props.dataKey}),s=kve[r],c=wue().keys(o).value(function(u,f){return+Vn(u,f,0)}).order(UC).offset(s);return c(t)},Lve=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($n(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[Nf("_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:Ive(t,D.items,s)}))},S)}return hn(hn({},h),{},jd({},y,x))},g)},AF=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=Zge(m,s,u);return t.domain([r0(g),ul(g)]),{niceTicks:g}}if(s&&o==="number"){var h=t.domain(),y=Jge(h,s,u);return{niceTicks:y}}return null};function dB(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=Vn(o,ot(c)?t.dataKey:c);return ot(f)?null:t.scale(f)}var fB=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=Vn(c,n.dataKey,n.domain[u]);return ot(f)?null:n.scale(f)-s/2+o},Vve=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]},$ve=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($n(s)){var c=n[s];if(c){var u=c.items.indexOf(t);return u>=0?c.stackedData[u]:null}}return null},Bve=function(t){return t.reduce(function(n,r){return[r0(r.concat([n[0]]).filter(Oe)),ul(r.concat([n[1]]).filter(Oe))]},[1/0,-1/0])},OF=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=Bve(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})},mB=/^dataMin[\s]*-[\s]*([0-9]+([.]{1}[0-9]+){0,1})$/,hB=/^dataMax[\s]*\+[\s]*([0-9]+([.]{1}[0-9]+){0,1})$/,mT=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(mB.test(t[0])){var s=+mB.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(hB.test(t[1])){var c=+hB.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=pj(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},pB=function(t,n,r){return!t||!t.length||Hd(t,va(r,"type.defaultProps.domain"))?n:t},DF=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:zj(t),value:Vn(n,o),type:f,payload:n,chartType:m,hide:g})};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 gB(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?gB(Object(n),!0).forEach(function(r){CF(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):gB(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function CF(e,t,n){return t=zve(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function zve(e){var t=Uve(e,"string");return dp(t)=="symbol"?t:t+""}function Uve(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 qve(e,t){return Gve(e)||Kve(e,t)||Fve(e,t)||Hve()}function Hve(){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 Fve(e,t){if(e){if(typeof e=="string")return vB(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 vB(e,t)}}function vB(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 Kve(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 Gve(e){if(Array.isArray(e))return e}var Ly=Math.PI/180,Yve=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}},TF=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},Qve=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=TF(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=qve(T,2);f=R[0],m=R[1]}var M=EF(C,s),$=M.realScaleType,I=M.scale;I.domain(j).range(A),SF(I);var z=AF(I,Wo(Wo({},C),{},{realScaleType:$})),H=Wo(Wo(Wo({},C),z),{},{range:A,radius:S,realScaleType:$,scale:I,cx:g,cy:h,innerRadius:x,outerRadius:S,startAngle:f,endAngle:m});return Wo(Wo({},w),{},CF({},D,H))},{})},Xve=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))},Wve=function(t,n){var r=t.x,o=t.y,s=n.cx,c=n.cy,u=Xve({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:Yve(m),angleInRadian:m}},Zve=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}},Jve=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},bB=function(t,n){var r=t.x,o=t.y,s=Wve({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=Zve(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:Jve(x,n)}):null},_F=function(t){return!_.isValidElement(t)&&!Xe(t)&&typeof t!="boolean"?t.className:""};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)}var ebe=["offset"];function tbe(e){return ibe(e)||abe(e)||rbe(e)||nbe()}function nbe(){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 rbe(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 abe(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function ibe(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 obe(e,t){if(e==null)return{};var n=sbe(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 sbe(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 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 Ln(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){lbe(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 lbe(e,t,n){return t=cbe(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function cbe(e){var t=ube(e,"string");return fp(t)=="symbol"?t:t+""}function ube(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 mp(){return mp=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},mp.apply(this,arguments)}var dbe=function(t){var n=t.value,r=t.formatter,o=ot(t.children)?n:t.children;return Xe(r)?r(o):o},fbe=function(t,n){var r=jr(n-t),o=Math.min(Math.abs(n-t),360);return r*o},mbe=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=fbe(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)?Nf("recharts-radial-line-"):t.id;return F.createElement("text",mp({},r,{dominantBaseline:"central",className:it("recharts-radial-bar-label",u)}),F.createElement("defs",null,F.createElement("path",{id:M,d:R})),F.createElement("textPath",{xlinkHref:"#".concat(M)},n))},hbe=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"}},pbe=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):yf(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)},gbe=function(t){return"cx"in t&&Oe(t.cx)};function Xn(e){var t=e.offset,n=t===void 0?5:t,r=obe(e,ebe),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=dbe(o);var S=gbe(s),N=Fe(o,!0);if(S&&(c==="insideStart"||c==="insideEnd"||c==="end"))return mbe(o,x,N);var w=S?hbe(o):pbe(o);return F.createElement(Fc,mp({className:it("recharts-label",h)},N,w,{breakAll:y}),x)}Xn.displayName="Label";var jF=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:{}},vbe=function(t,n){return t?t===!0?F.createElement(Xn,{key:"label-implicit",viewBox:n}):$n(t)?F.createElement(Xn,{key:"label-implicit",viewBox:n,value:t}):_.isValidElement(t)?t.type===Xn?_.cloneElement(t,{key:"label-implicit",viewBox:n}):F.createElement(Xn,{key:"label-implicit",content:t,viewBox:n}):Xe(t)?F.createElement(Xn,{key:"label-implicit",content:t,viewBox:n}):yf(t)?F.createElement(Xn,mp({viewBox:n},t,{key:"label-implicit"})):null:null},bbe=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=jF(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=vbe(t.label,n||s);return[u].concat(tbe(c))};Xn.parseViewBox=jF;Xn.renderCallByParent=bbe;var lD,xB;function ybe(){if(xB)return lD;xB=1;function e(t){var n=t==null?0:t.length;return n?t[n-1]:void 0}return lD=e,lD}var xbe=ybe();const Nbe=Bt(xbe);function hp(e){"@babel/helpers - typeof";return hp=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},hp(e)}var wbe=["valueAccessor"],Ebe=["data","dataKey","clockWise","id","textBreakAll"];function Sbe(e){return Cbe(e)||Dbe(e)||Obe(e)||Abe()}function Abe(){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 Obe(e,t){if(e){if(typeof e=="string")return pT(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 pT(e,t)}}function Dbe(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function Cbe(e){if(Array.isArray(e))return pT(e)}function pT(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 NB(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 wB(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?NB(Object(n),!0).forEach(function(r){Tbe(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):NB(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function Tbe(e,t,n){return t=_be(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function _be(e){var t=jbe(e,"string");return hp(t)=="symbol"?t:t+""}function jbe(e,t){if(hp(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(hp(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function EB(e,t){if(e==null)return{};var n=Rbe(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 Rbe(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 Pbe=function(t){return Array.isArray(t.value)?Nbe(t.value):t.value};function as(e){var t=e.valueAccessor,n=t===void 0?Pbe:t,r=EB(e,wbe),o=r.data,s=r.dataKey,c=r.clockWise,u=r.id,f=r.textBreakAll,m=EB(r,Ebe);return!o||!o.length?null:F.createElement(Dt,{className:"recharts-label-list"},o.map(function(g,h){var y=ot(s)?n(g,h):Vn(g&&g.payload,s),x=ot(u)?{}:{id:"".concat(u,"-").concat(h)};return F.createElement(Xn,Vy({},Fe(g,!0),m,x,{parentViewBox:g.parentViewBox,value:y,textBreakAll:f,viewBox:Xn.parseViewBox(ot(c)?g:wB(wB({},g),{},{clockWise:c})),key:"label-".concat(h),index:h}))}))}as.displayName="LabelList";function Mbe(e,t){return e?e===!0?F.createElement(as,{key:"labelList-implicit",data:t}):F.isValidElement(e)||Xe(e)?F.createElement(as,{key:"labelList-implicit",data:t,content:e}):yf(e)?F.createElement(as,Vy({data:t},e,{key:"labelList-implicit"})):null:null}function kbe(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=Mbe(e.label,t);return[s].concat(Sbe(o))}as.renderCallByParent=kbe;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)}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 SB(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 AB(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?SB(Object(n),!0).forEach(function(r){Ibe(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):SB(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function Ibe(e,t,n){return t=Lbe(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Lbe(e){var t=Vbe(e,"string");return pp(t)=="symbol"?t:t+""}function Vbe(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)}var $be=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}},RF=function(t){var n=t.cx,r=t.cy,o=t.innerRadius,s=t.outerRadius,c=t.startAngle,u=t.endAngle,f=$be(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},Bbe=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
|
||
`):RF({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,I=kb({cx:n,cy:r,radius:o,angle:g,sign:-h,isExternal:!0,cornerRadius:c,cornerIsExternal:f}),z=I.circleTangency,H=I.lineTangency,G=I.theta,Y=f?Math.abs(m-g):Math.abs(m-g)-$-G;if(Y<0&&c===0)return"".concat(A,"L").concat(n,",").concat(r,"Z");A+="L".concat(H.x,",").concat(H.y,`
|
||
A`).concat(c,",").concat(c,",0,0,").concat(+(h<0),",").concat(z.x,",").concat(z.y,`
|
||
A`).concat(o,",").concat(o,",0,").concat(+(Y>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},zbe={cx:0,cy:0,innerRadius:0,outerRadius:0,startAngle:0,endAngle:0,cornerRadius:0,forceCornerRadius:!1,cornerIsExternal:!1},PF=function(t){var n=AB(AB({},zbe),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=Bbe({cx:r,cy:o,innerRadius:s,outerRadius:c,cornerRadius:Math.min(N,S/2),forceCornerRadius:f,cornerIsExternal:m,startAngle:g,endAngle:h}):w=RF({cx:r,cy:o,innerRadius:s,outerRadius:c,startAngle:g,endAngle:h}),F.createElement("path",gT({},Fe(n,!0),{className:x,d:w,role:"img"}))};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 vT(){return vT=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},vT.apply(this,arguments)}function OB(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),n.push.apply(n,r)}return n}function DB(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?OB(Object(n),!0).forEach(function(r){Ube(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):OB(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function Ube(e,t,n){return t=qbe(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function qbe(e){var t=Hbe(e,"string");return gp(t)=="symbol"?t:t+""}function Hbe(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 CB={curveBasisClosed:due,curveBasisOpen:fue,curveBasis:uue,curveBumpX:Xce,curveBumpY:Wce,curveLinearClosed:mue,curveLinear:Hx,curveMonotoneX:hue,curveMonotoneY:pue,curveNatural:gue,curveStep:vue,curveStepAfter:yue,curveStepBefore:bue},Ib=function(t){return t.x===+t.x&&t.y===+t.y},hh=function(t){return t.x},ph=function(t){return t.y},Fbe=function(t,n){if(Xe(t))return t;var r="curve".concat(Ux(t));return(r==="curveMonotone"||r==="curveBump")&&n?CB["".concat(r).concat(n==="vertical"?"Y":"X")]:CB[r]||Hx},Kbe=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=Fbe(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 DB(DB({},N),{},{base:x[w]})});return u==="vertical"?y=Db().y(ph).x1(hh).x0(function(N){return N.base.x}):y=Db().x(hh).y1(ph).y0(function(N){return N.base.y}),y.defined(Ib).curve(g),y(S)}return u==="vertical"&&Oe(c)?y=Db().y(ph).x1(hh).x0(c):Oe(c)?y=Db().x(hh).y1(ph).y0(c):y=jq().x(hh).y(ph),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?Kbe(t):o;return _.createElement("path",vT({},Fe(t,!1),fy(t),{className:it("recharts-curve",n),d:c,ref:s}))},cD={exports:{}},uD={exports:{}},Vt={},TB;function Gbe(){if(TB)return Vt;TB=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,I=g,z=r,H=S,G=x,Y=n,J=s,q=o,U=h,K=!1;function te(ie){return K||(K=!0,console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 17+. Update your code to use ReactIs.isConcurrentMode() instead. It has the exact same API.")),ne(ie)||P(ie)===f}function ne(ie){return P(ie)===m}function L(ie){return P(ie)===u}function Q(ie){return P(ie)===c}function W(ie){return typeof ie=="object"&&ie!==null&&ie.$$typeof===t}function ae(ie){return P(ie)===g}function ge(ie){return P(ie)===r}function we(ie){return P(ie)===S}function ue(ie){return P(ie)===x}function xe(ie){return P(ie)===n}function me(ie){return P(ie)===s}function ye(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=I,Vt.Fragment=z,Vt.Lazy=H,Vt.Memo=G,Vt.Portal=Y,Vt.Profiler=J,Vt.StrictMode=q,Vt.Suspense=U,Vt.isAsyncMode=te,Vt.isConcurrentMode=ne,Vt.isContextConsumer=L,Vt.isContextProvider=Q,Vt.isElement=W,Vt.isForwardRef=ae,Vt.isFragment=ge,Vt.isLazy=we,Vt.isMemo=ue,Vt.isPortal=xe,Vt.isProfiler=me,Vt.isStrictMode=ye,Vt.isSuspense=de,Vt.isValidElementType=j,Vt.typeOf=P})(),Vt}var _B;function MF(){return _B||(_B=1,uD.exports=Gbe()),uD.exports}/*
|
||
object-assign
|
||
(c) Sindre Sorhus
|
||
@license MIT
|
||
*/var dD,jB;function Ybe(){if(jB)return dD;jB=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 dD=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},dD}var fD,RB;function kF(){if(RB)return fD;RB=1;var e="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED";return fD=e,fD}var mD,PB;function IF(){return PB||(PB=1,mD=Function.call.bind(Object.prototype.hasOwnProperty)),mD}var hD,MB;function Qbe(){if(MB)return hD;MB=1;var e=function(){};{var t=kF(),n={},r=IF();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={}},hD=o,hD}var pD,kB;function Xbe(){if(kB)return pD;kB=1;var e=MF(),t=Ybe(),n=kF(),r=IF(),o=Qbe(),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 pD=function(u,f){var m=typeof Symbol=="function"&&Symbol.iterator,g="@@iterator";function h(ne){var L=ne&&(m&&ne[m]||ne[g]);if(typeof L=="function")return L}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:I(),objectOf:M,oneOf:R,oneOfType:$,shape:H,exact:G};function S(ne,L){return ne===L?ne!==0||1/ne===1/L:ne!==ne&&L!==L}function N(ne,L){this.message=ne,this.data=L&&typeof L=="object"?L:{},this.stack=""}N.prototype=Error.prototype;function w(ne){var L={},Q=0;function W(ge,we,ue,xe,me,ye,de){if(xe=xe||y,ye=ye||ue,de!==n){if(f){var ie=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use `PropTypes.checkPropTypes()` to call them. Read more at http://fb.me/use-check-prop-types");throw ie.name="Invariant Violation",ie}else if(typeof console<"u"){var ze=xe+":"+ue;!L[ze]&&Q<3&&(s("You are manually calling a React.PropTypes validation function for the `"+ye+"` prop on `"+xe+"`. This is deprecated and will throw in the standalone `prop-types` package. You may be seeing this warning due to a third-party PropTypes library. See https://fb.me/react-warning-dont-call-proptypes for details."),L[ze]=!0,Q++)}}return we[ue]==null?ge?we[ue]===null?new N("The "+me+" `"+ye+"` is marked as required "+("in `"+xe+"`, but its value is `null`.")):new N("The "+me+" `"+ye+"` is marked as required in "+("`"+xe+"`, but its value is `undefined`.")):null:ne(we,ue,xe,me,ye)}var ae=W.bind(null,!1);return ae.isRequired=W.bind(null,!0),ae}function D(ne){function L(Q,W,ae,ge,we,ue){var xe=Q[W],me=q(xe);if(me!==ne){var ye=U(xe);return new N("Invalid "+ge+" `"+we+"` of type "+("`"+ye+"` supplied to `"+ae+"`, expected ")+("`"+ne+"`."),{expectedType:ne})}return null}return w(L)}function C(){return w(c)}function j(ne){function L(Q,W,ae,ge,we){if(typeof ne!="function")return new N("Property `"+we+"` of component `"+ae+"` has invalid PropType notation inside arrayOf.");var ue=Q[W];if(!Array.isArray(ue)){var xe=q(ue);return new N("Invalid "+ge+" `"+we+"` of type "+("`"+xe+"` supplied to `"+ae+"`, expected an array."))}for(var me=0;me<ue.length;me++){var ye=ne(ue,me,ae,ge,we+"["+me+"]",n);if(ye instanceof Error)return ye}return null}return w(L)}function P(){function ne(L,Q,W,ae,ge){var we=L[Q];if(!u(we)){var ue=q(we);return new N("Invalid "+ae+" `"+ge+"` of type "+("`"+ue+"` supplied to `"+W+"`, expected a single ReactElement."))}return null}return w(ne)}function A(){function ne(L,Q,W,ae,ge){var we=L[Q];if(!e.isValidElementType(we)){var ue=q(we);return new N("Invalid "+ae+" `"+ge+"` of type "+("`"+ue+"` supplied to `"+W+"`, expected a single ReactElement type."))}return null}return w(ne)}function T(ne){function L(Q,W,ae,ge,we){if(!(Q[W]instanceof ne)){var ue=ne.name||y,xe=te(Q[W]);return new N("Invalid "+ge+" `"+we+"` of type "+("`"+xe+"` supplied to `"+ae+"`, expected ")+("instance of `"+ue+"`."))}return null}return w(L)}function R(ne){if(!Array.isArray(ne))return arguments.length>1?s("Invalid arguments supplied to oneOf, expected an array, got "+arguments.length+" arguments. A common mistake is to write oneOf(x, y, z) instead of oneOf([x, y, z])."):s("Invalid argument supplied to oneOf, expected an array."),c;function L(Q,W,ae,ge,we){for(var ue=Q[W],xe=0;xe<ne.length;xe++)if(S(ue,ne[xe]))return null;var me=JSON.stringify(ne,function(de,ie){var ze=U(ie);return ze==="symbol"?String(ie):ie});return new N("Invalid "+ge+" `"+we+"` of value `"+String(ue)+"` "+("supplied to `"+ae+"`, expected one of "+me+"."))}return w(L)}function M(ne){function L(Q,W,ae,ge,we){if(typeof ne!="function")return new N("Property `"+we+"` of component `"+ae+"` has invalid PropType notation inside objectOf.");var ue=Q[W],xe=q(ue);if(xe!=="object")return new N("Invalid "+ge+" `"+we+"` of type "+("`"+xe+"` supplied to `"+ae+"`, expected an object."));for(var me in ue)if(r(ue,me)){var ye=ne(ue,me,ae,ge,we+"."+me,n);if(ye instanceof Error)return ye}return null}return w(L)}function $(ne){if(!Array.isArray(ne))return s("Invalid argument supplied to oneOfType, expected an instance of array."),c;for(var L=0;L<ne.length;L++){var Q=ne[L];if(typeof Q!="function")return s("Invalid argument supplied to oneOfType. Expected an array of check functions, but received "+K(Q)+" at index "+L+"."),c}function W(ae,ge,we,ue,xe){for(var me=[],ye=0;ye<ne.length;ye++){var de=ne[ye],ie=de(ae,ge,we,ue,xe,n);if(ie==null)return null;ie.data&&r(ie.data,"expectedType")&&me.push(ie.data.expectedType)}var ze=me.length>0?", expected one of type ["+me.join(", ")+"]":"";return new N("Invalid "+ue+" `"+xe+"` supplied to "+("`"+we+"`"+ze+"."))}return w(W)}function I(){function ne(L,Q,W,ae,ge){return Y(L[Q])?null:new N("Invalid "+ae+" `"+ge+"` supplied to "+("`"+W+"`, expected a ReactNode."))}return w(ne)}function z(ne,L,Q,W,ae){return new N((ne||"React class")+": "+L+" type `"+Q+"."+W+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+ae+"`.")}function H(ne){function L(Q,W,ae,ge,we){var ue=Q[W],xe=q(ue);if(xe!=="object")return new N("Invalid "+ge+" `"+we+"` of type `"+xe+"` "+("supplied to `"+ae+"`, expected `object`."));for(var me in ne){var ye=ne[me];if(typeof ye!="function")return z(ae,ge,we,me,U(ye));var de=ye(ue,me,ae,ge,we+"."+me,n);if(de)return de}return null}return w(L)}function G(ne){function L(Q,W,ae,ge,we){var ue=Q[W],xe=q(ue);if(xe!=="object")return new N("Invalid "+ge+" `"+we+"` of type `"+xe+"` "+("supplied to `"+ae+"`, expected `object`."));var me=t({},Q[W],ne);for(var ye in me){var de=ne[ye];if(r(ne,ye)&&typeof de!="function")return z(ae,ge,we,ye,U(de));if(!de)return new N("Invalid "+ge+" `"+we+"` key `"+ye+"` supplied to `"+ae+"`.\nBad object: "+JSON.stringify(Q[W],null," ")+`
|
||
Valid keys: `+JSON.stringify(Object.keys(ne),null," "));var ie=de(ue,ye,ae,ge,we+"."+ye,n);if(ie)return ie}return null}return w(L)}function Y(ne){switch(typeof ne){case"number":case"string":case"undefined":return!0;case"boolean":return!ne;case"object":if(Array.isArray(ne))return ne.every(Y);if(ne===null||u(ne))return!0;var L=h(ne);if(L){var Q=L.call(ne),W;if(L!==ne.entries){for(;!(W=Q.next()).done;)if(!Y(W.value))return!1}else for(;!(W=Q.next()).done;){var ae=W.value;if(ae&&!Y(ae[1]))return!1}}else return!1;return!0;default:return!1}}function J(ne,L){return ne==="symbol"?!0:L?L["@@toStringTag"]==="Symbol"||typeof Symbol=="function"&&L instanceof Symbol:!1}function q(ne){var L=typeof ne;return Array.isArray(ne)?"array":ne instanceof RegExp?"object":J(L,ne)?"symbol":L}function U(ne){if(typeof ne>"u"||ne===null)return""+ne;var L=q(ne);if(L==="object"){if(ne instanceof Date)return"date";if(ne instanceof RegExp)return"regexp"}return L}function K(ne){var L=U(ne);switch(L){case"array":case"object":return"an "+L;case"boolean":case"date":case"regexp":return"a "+L;default:return L}}function te(ne){return!ne.constructor||!ne.constructor.name?y:ne.constructor.name}return x.checkPropTypes=o,x.resetWarningCache=o.resetWarningCache,x.PropTypes=x,x},pD}var IB;function Wbe(){if(IB)return cD.exports;IB=1;{var e=MF(),t=!0;cD.exports=Xbe()(e.isElement,t)}return cD.exports}var Zbe=Wbe();const $t=Bt(Zbe);var Jbe=Object.getOwnPropertyNames,eye=Object.getOwnPropertySymbols,tye=Object.prototype.hasOwnProperty;function LB(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 nye(e){return e?.[Symbol.toStringTag]}function VB(e){return Jbe(e).concat(eye(e))}var rye=Object.hasOwn||(function(e,t){return tye.call(e,t)});function su(e,t){return e===t||!e&&!t&&e!==e&&t!==t}var aye="__v",iye="__o",oye="_owner",$B=Object.getOwnPropertyDescriptor,BB=Object.keys;function sye(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 lye(e,t){return su(e.getTime(),t.getTime())}function cye(e,t){return e.name===t.name&&e.message===t.message&&e.cause===t.cause&&e.stack===t.stack}function uye(e,t){return e===t}function zB(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 dye=su;function fye(e,t,n){var r=BB(e),o=r.length;if(BB(t).length!==o)return!1;for(;o-- >0;)if(!LF(e,t,n,r[o]))return!1;return!0}function gh(e,t,n){var r=VB(e),o=r.length;if(VB(t).length!==o)return!1;for(var s,c,u;o-- >0;)if(s=r[o],!LF(e,t,n,s)||(c=$B(e,s),u=$B(t,s),(c||u)&&(!c||!u||c.configurable!==u.configurable||c.enumerable!==u.enumerable||c.writable!==u.writable)))return!1;return!0}function mye(e,t){return su(e.valueOf(),t.valueOf())}function hye(e,t){return e.source===t.source&&e.flags===t.flags}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.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 pye(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 gye(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 LF(e,t,n,r){return(r===oye||r===iye||r===aye)&&(e.$$typeof||t.$$typeof)?!0:rye(t,r)&&n.equals(e[r],t[r],r,r,e,t,n)}var vye="[object Arguments]",bye="[object Boolean]",yye="[object Date]",xye="[object Error]",Nye="[object Map]",wye="[object Number]",Eye="[object Object]",Sye="[object RegExp]",Aye="[object Set]",Oye="[object String]",Dye="[object URL]",Cye=Array.isArray,qB=typeof ArrayBuffer=="function"&&ArrayBuffer.isView?ArrayBuffer.isView:null,HB=Object.assign,Tye=Object.prototype.toString.call.bind(Object.prototype.toString);function _ye(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(Cye(N))return t(N,w,D);if(qB!=null&&qB(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=Tye(N);if(P===yye)return n(N,w,D);if(P===Sye)return m(N,w,D);if(P===Nye)return s(N,w,D);if(P===Aye)return g(N,w,D);if(P===Eye)return typeof N.then!="function"&&typeof w.then!="function"&&u(N,w,D);if(P===Dye)return y(N,w,D);if(P===xye)return r(N,w,D);if(P===vye)return u(N,w,D);if(P===bye||P===wye||P===Oye)return f(N,w,D);if(x){var A=x[P];if(!A){var T=nye(N);T&&(A=x[T])}if(A)return A(N,w,D)}return!1}}function jye(e){var t=e.circular,n=e.createCustomConfig,r=e.strict,o={areArraysEqual:r?gh:sye,areDatesEqual:lye,areErrorsEqual:cye,areFunctionsEqual:uye,areMapsEqual:r?LB(zB,gh):zB,areNumbersEqual:dye,areObjectsEqual:r?gh:fye,arePrimitiveWrappersEqual:mye,areRegExpsEqual:hye,areSetsEqual:r?LB(UB,gh):UB,areTypedArraysEqual:r?gh:pye,areUrlsEqual:gye,unknownTagComparators:void 0};if(n&&(o=HB({},o,n(o))),t){var s=Lb(o.areArraysEqual),c=Lb(o.areMapsEqual),u=Lb(o.areObjectsEqual),f=Lb(o.areSetsEqual);o=HB({},o,{areArraysEqual:s,areMapsEqual:c,areObjectsEqual:u,areSetsEqual:f})}return o}function Rye(e){return function(t,n,r,o,s,c,u){return e(t,n,u)}}function Pye(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 Mye=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=jye(e),f=_ye(u),m=r?r(f):Rye(f);return Pye({circular:n,comparator:f,createState:o,equals:m,strict:c})}function kye(e){typeof requestAnimationFrame<"u"&&requestAnimationFrame(e)}function FB(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):kye(o)};requestAnimationFrame(r)}function bT(e){"@babel/helpers - typeof";return bT=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},bT(e)}function Iye(e){return Bye(e)||$ye(e)||Vye(e)||Lye()}function Lye(){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 Vye(e,t){if(e){if(typeof e=="string")return KB(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 KB(e,t)}}function KB(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 $ye(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function Bye(e){if(Array.isArray(e))return e}function zye(){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=Iye(c),f=u[0],m=u.slice(1);if(typeof f=="number"){FB(o.bind(null,m),f);return}o(f),FB(o.bind(null,m));return}bT(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 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 GB(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 YB(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?GB(Object(n),!0).forEach(function(r){VF(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):GB(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function VF(e,t,n){return t=Uye(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Uye(e){var t=qye(e,"string");return vp(t)==="symbol"?t:String(t)}function qye(e,t){if(vp(e)!=="object"||e===null)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 Hye=function(t,n){return[Object.keys(t),Object.keys(n)].reduce(function(r,o){return r.filter(function(s){return o.includes(s)})})},Fye=function(t){return t},Kye=function(t){return t.replace(/([A-Z])/g,function(n){return"-".concat(n.toLowerCase())})},Rh=function(t,n){return Object.keys(n).reduce(function(r,o){return YB(YB({},r),{},VF({},o,t(o,n[o])))},{})},QB=function(t,n,r){return t.map(function(o){return"".concat(Kye(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 Gye(e,t){return Xye(e)||Qye(e,t)||$F(e,t)||Yye()}function Yye(){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 Qye(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 Xye(e){if(Array.isArray(e))return e}function Wye(e){return exe(e)||Jye(e)||$F(e)||Zye()}function Zye(){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 $F(e,t){if(e){if(typeof e=="string")return yT(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 yT(e,t)}}function Jye(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function exe(e){if(Array.isArray(e))return yT(e)}function yT(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,BF=function(t,n){return[0,3*t,3*n-6*t,3*t-3*n+1]},zF=function(t,n){return t.map(function(r,o){return r*Math.pow(n,o)}).reduce(function(r,o){return r+o})},XB=function(t,n){return function(r){var o=BF(t,n);return zF(o,r)}},txe=function(t,n){return function(r){var o=BF(t,n),s=[].concat(Wye(o.map(function(c,u){return c*u}).slice(1)),[0]);return zF(s,r)}},WB=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=Gye(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=XB(o,c),y=XB(s,u),x=txe(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},nxe=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},rxe=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 WB(o);case"spring":return nxe();default:if(o.split("(")[0]==="cubic-bezier")return WB(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 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 ZB(e){return oxe(e)||ixe(e)||UF(e)||axe()}function axe(){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 ixe(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function oxe(e){if(Array.isArray(e))return NT(e)}function JB(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?JB(Object(n),!0).forEach(function(r){xT(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):JB(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function xT(e,t,n){return t=sxe(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function sxe(e){var t=lxe(e,"string");return bp(t)==="symbol"?t:String(t)}function lxe(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)}function cxe(e,t){return fxe(e)||dxe(e,t)||UF(e,t)||uxe()}function uxe(){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 UF(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 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}function dxe(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 fxe(e){if(Array.isArray(e))return e}var zy=function(t,n,r){return t+(n-t)*r},wT=function(t){var n=t.from,r=t.to;return n!==r},mxe=function e(t,n,r){var o=Rh(function(s,c){if(wT(c)){var u=t(c.from,c.to,c.velocity),f=cxe(u,2),m=f[0],g=f[1];return rr(rr({},c),{},{from:m,velocity:g})}return c},n);return r<1?Rh(function(s,c){return wT(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 hxe=(function(e,t,n,r,o){var s=Hye(e,t),c=s.reduce(function(w,D){return rr(rr({},w),{},xT({},D,[e[D],t[D]]))},{}),u=s.reduce(function(w,D){return rr(rr({},w),{},xT({},D,{from:e[D],velocity:0,to:t[D]}))},{}),f=-1,m,g,h=function(){return null},y=function(){return Rh(function(D,C){return C.from},u)},x=function(){return!Object.values(u).filter(wT).length},S=function(D){m||(m=D);var C=D-m,j=C/n.dt;u=mxe(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=Rh(function(A,T){return zy.apply(void 0,ZB(T).concat([n(C)]))},c);if(o(rr(rr(rr({},e),t),j)),C<1)f=requestAnimationFrame(h);else{var P=Rh(function(A,T){return zy.apply(void 0,ZB(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 pxe=["children","begin","duration","attributeName","easing","isActive","steps","from","to","canBegin","onAnimationEnd","shouldReAnimate","onAnimationReStart"];function gxe(e,t){if(e==null)return{};var n=vxe(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 vxe(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 gD(e){return Nxe(e)||xxe(e)||yxe(e)||bxe()}function bxe(){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 yxe(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 xxe(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function Nxe(e){if(Array.isArray(e))return ET(e)}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 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 ri(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){wh(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 wh(e,t,n){return t=qF(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function wxe(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Exe(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,qF(r.key),r)}}function Sxe(e,t,n){return t&&Exe(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function qF(e){var t=Axe(e,"string");return Kd(t)==="symbol"?t:String(t)}function Axe(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 Oxe(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&&ST(e,t)}function ST(e,t){return ST=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,o){return r.__proto__=o,r},ST(e,t)}function Dxe(e){var t=Cxe();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 AT(this,o)}}function AT(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 OT(e)}function OT(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Cxe(){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){Oxe(n,e);var t=Dxe(n);function n(r,o){var s;wxe(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(OT(s)),s.changeStyle=s.changeStyle.bind(OT(s)),!u||x<=0)return s.state={style:{}},typeof y=="function"&&(s.state={style:g}),AT(s);if(h&&h.length)s.state={style:h[0].style};else if(m){if(typeof y=="function")return s.state={style:m},AT(s);s.state={style:f?wh({},f,m):m}}else s.state={style:{}};return s}return Sxe(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?wh({},f,g):g};this.state&&y&&(f&&y[f]!==g||!f&&y!==g)&&this.setState(x);return}if(!(Mye(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?wh({},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=hxe(c,u,rxe(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(gD(N),[s.runJSAnimation.bind(s,{from:M.style,to:A,duration:C,easing:P}),C]);var I=QB($,C,P),z=ri(ri(ri({},M.style),A),{},{transition:I});return[].concat(gD(N),[z,C,R]).filter(Fye)};return this.manager.start([f].concat(gD(c.reduce(x,[g,Math.max(y,u)])),[o.onAnimationEnd]))}},{key:"runAnimation",value:function(o){this.manager||(this.manager=zye());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?wh({},u,f):f,w=QB(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=gxe(o,pxe),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)):F.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 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 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 Txe(e,t){return Pxe(e)||Rxe(e,t)||jxe(e,t)||_xe()}function _xe(){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 jxe(e,t){if(e){if(typeof e=="string")return t7(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 t7(e,t)}}function t7(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 Rxe(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 Pxe(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 r7(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){Mxe(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 Mxe(e,t,n){return t=kxe(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function kxe(e){var t=Ixe(e,"string");return yp(t)=="symbol"?t:t+""}function Ixe(e,t){if(yp(e)!="object"||!e)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)}var a7=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},Lxe=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},Vxe={x:0,y:0,width:0,height:0,radius:0,isAnimationActive:!1,isUpdateAnimationActive:!1,animationBegin:0,animationDuration:1500,animationEasing:"ease"},Uj=function(t){var n=r7(r7({},Vxe),t),r=_.useRef(),o=_.useState(-1),s=Txe(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?F.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 F.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},F.createElement("path",qy({},Fe(n,!0),{className:j,d:a7(R,M,A,T,y),ref:r})))}):F.createElement("path",qy({},Fe(n,!0),{className:j,d:a7(f,m,g,h,y)}))},$xe=["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 Bxe(e,t){if(e==null)return{};var n=zxe(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 zxe(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 i7(e){return Fxe(e)||Hxe(e)||qxe(e)||Uxe()}function Uxe(){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 qxe(e,t){if(e){if(typeof e=="string")return DT(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 DT(e,t)}}function Hxe(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function Fxe(e){if(Array.isArray(e))return DT(e)}function DT(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 o7=function(t){return t&&t.x===+t.x&&t.y===+t.y},Kxe=function(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],n=[[]];return t.forEach(function(r){o7(r)?n[n.length-1].push(r):n[n.length-1].length>0&&n.push([])}),o7(t[0])&&n[n.length-1].push(t[0]),n[n.length-1].length<=0&&(n=n.slice(0,-1)),n},Ph=function(t,n){var r=Kxe(t);n&&(r=[r.reduce(function(s,c){return[].concat(i7(s),i7(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},Gxe=function(t,n,r){var o=Ph(t,r);return"".concat(o.slice(-1)==="Z"?o.slice(0,-1):o,"L").concat(Ph(n.reverse(),r).slice(1))},Yxe=function(t){var n=t.points,r=t.className,o=t.baseLinePoints,s=t.connectNulls,c=Bxe(t,$xe);if(!n||!n.length)return null;var u=it("recharts-polygon",r);if(o&&o.length){var f=c.stroke&&c.stroke!=="none",m=Gxe(n,o,s);return F.createElement("g",{className:u},F.createElement("path",Ed({},Fe(c,!0),{fill:m.slice(-1)==="Z"?c.fill:"none",stroke:"none",d:m})),f?F.createElement("path",Ed({},Fe(c,!0),{fill:"none",d:Ph(n,s)})):null,f?F.createElement("path",Ed({},Fe(c,!0),{fill:"none",d:Ph(o,s)})):null)}var g=Ph(n,s);return F.createElement("path",Ed({},Fe(c,!0),{fill:g.slice(-1)==="Z"?c.fill:"none",className:u,d:g}))};function CT(){return CT=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},CT.apply(this,arguments)}var s0=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",CT({},Fe(t,!1),fy(t),{className:c,cx:n,cy:r,r:o})):null};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)}var Qxe=["x","y","top","left","width","height","className"];function TT(){return TT=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},TT.apply(this,arguments)}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 Xxe(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){Wxe(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 Wxe(e,t,n){return t=Zxe(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Zxe(e){var t=Jxe(e,"string");return xp(t)=="symbol"?t:t+""}function Jxe(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)}function e0e(e,t){if(e==null)return{};var n=t0e(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 t0e(e,t){if(e==null)return{};var n={};for(var r in e)if(Object.prototype.hasOwnProperty.call(e,r)){if(t.indexOf(r)>=0)continue;n[r]=e[r]}return n}var n0e=function(t,n,r,o,s,c){return"M".concat(t,",").concat(s,"v").concat(o,"M").concat(c,",").concat(n,"h").concat(r)},r0e=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=e0e(t,Qxe),w=Xxe({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:F.createElement("path",TT({},Fe(w,!0),{className:it("recharts-cross",S),d:n0e(r,s,h,x,u,m)}))},vD,l7;function a0e(){if(l7)return vD;l7=1;var e=n0(),t=tF(),n=vo();function r(o,s){return o&&o.length?e(o,n(s,2),t):void 0}return vD=r,vD}var i0e=a0e();const o0e=Bt(i0e);var bD,c7;function s0e(){if(c7)return bD;c7=1;var e=n0(),t=vo(),n=nF();function r(o,s){return o&&o.length?e(o,t(s,2),n):void 0}return bD=r,bD}var l0e=s0e();const c0e=Bt(l0e);var u0e=["cx","cy","angle","ticks","axisLine"],d0e=["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 Mh(){return Mh=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},Mh.apply(this,arguments)}function u7(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),n.push.apply(n,r)}return n}function hc(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?u7(Object(n),!0).forEach(function(r){l0(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):u7(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function d7(e,t){if(e==null)return{};var n=f0e(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 f0e(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 m0e(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function f7(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,FF(r.key),r)}}function h0e(e,t,n){return t&&f7(e.prototype,t),n&&f7(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function p0e(e,t,n){return t=Hy(t),g0e(e,HF()?Reflect.construct(t,n||[],Hy(e).constructor):t.apply(e,n))}function g0e(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 v0e(e)}function v0e(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function HF(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(HF=function(){return!!e})()}function Hy(e){return Hy=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},Hy(e)}function b0e(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&&_T(e,t)}function _T(e,t){return _T=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,o){return r.__proto__=o,r},_T(e,t)}function l0(e,t,n){return t=FF(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function FF(e){var t=y0e(e,"string");return Gd(t)=="symbol"?t:t+""}function y0e(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 c0=(function(e){function t(){return m0e(this,t),p0e(this,t,arguments)}return b0e(t,e),h0e(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=o0e(u,function(g){return g.coordinate||0}),m=c0e(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=d7(r,u0e),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 F.createElement("line",Mh({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=d7(o,d0e),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 F.createElement(Dt,Mh({className:it("recharts-polar-radius-axis-tick",_F(c)),key:"tick-".concat(N.coordinate)},Hc(r.props,N,w)),t.renderTickItem(c,C,f?f(N.value,w):N.value))});return F.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:F.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 F.isValidElement(r)?c=F.cloneElement(r,o):Xe(r)?c=r(o):c=F.createElement(Fc,Mh({},o,{className:"recharts-polar-radius-axis-tick-value"}),s),c}}])})(_.PureComponent);l0(c0,"displayName","PolarRadiusAxis");l0(c0,"axisType","radiusAxis");l0(c0,"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 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 pc(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){u0(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 x0e(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function h7(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,GF(r.key),r)}}function N0e(e,t,n){return t&&h7(e.prototype,t),n&&h7(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function w0e(e,t,n){return t=Fy(t),E0e(e,KF()?Reflect.construct(t,n||[],Fy(e).constructor):t.apply(e,n))}function E0e(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 S0e(e)}function S0e(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function KF(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(KF=function(){return!!e})()}function Fy(e){return Fy=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},Fy(e)}function A0e(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&&jT(e,t)}function jT(e,t){return jT=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,o){return r.__proto__=o,r},jT(e,t)}function u0(e,t,n){return t=GF(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function GF(e){var t=O0e(e,"string");return Yd(t)=="symbol"?t:t+""}function O0e(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 D0e=Math.PI/180,p7=1e-5,d0=(function(e){function t(){return x0e(this,t),w0e(this,t,arguments)}return A0e(t,e),N0e(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*D0e),c;return s>p7?c=o==="outer"?"start":"end":s<-p7?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 F.createElement(s0,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 F.createElement(Yxe,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 F.createElement(Dt,xc({className:it("recharts-polar-angle-axis-tick",_F(c)),key:"tick-".concat(S.coordinate)},Hc(r.props,S,N)),u&&F.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 F.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:F.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 F.isValidElement(r)?c=F.cloneElement(r,o):Xe(r)?c=r(o):c=F.createElement(Fc,xc({},o,{className:"recharts-polar-angle-axis-tick-value"}),s),c}}])})(_.PureComponent);u0(d0,"displayName","PolarAngleAxis");u0(d0,"axisType","angleAxis");u0(d0,"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 yD,g7;function C0e(){if(g7)return yD;g7=1;var e=eH(),t=e(Object.getPrototypeOf,Object);return yD=t,yD}var xD,v7;function T0e(){if(v7)return xD;v7=1;var e=fs(),t=C0e(),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 xD=m,xD}var _0e=T0e();const j0e=Bt(_0e);var ND,b7;function R0e(){if(b7)return ND;b7=1;var e=fs(),t=ms(),n="[object Boolean]";function r(o){return o===!0||o===!1||t(o)&&e(o)==n}return ND=r,ND}var P0e=R0e();const M0e=Bt(P0e);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 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 k0e(e,t){return $0e(e)||V0e(e,t)||L0e(e,t)||I0e()}function I0e(){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 L0e(e,t){if(e){if(typeof e=="string")return y7(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 y7(e,t)}}function y7(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 V0e(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 $0e(e){if(Array.isArray(e))return e}function x7(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),n.push.apply(n,r)}return n}function N7(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?x7(Object(n),!0).forEach(function(r){B0e(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):x7(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function B0e(e,t,n){return t=z0e(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function z0e(e){var t=U0e(e,"string");return Np(t)=="symbol"?t:t+""}function U0e(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)}var w7=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},q0e={x:0,y:0,upperWidth:0,lowerWidth:0,height:0,isUpdateAnimationActive:!1,animationBegin:0,animationDuration:1500,animationEasing:"ease"},H0e=function(t){var n=N7(N7({},q0e),t),r=_.useRef(),o=_.useState(-1),s=k0e(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?F.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 F.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},F.createElement("path",Ky({},Fe(n,!0),{className:C,d:w7(R,M,P,A,T),ref:r})))}):F.createElement("g",null,F.createElement("path",Ky({},Fe(n,!0),{className:C,d:w7(f,m,g,h,y)})))},F0e=["option","shapeType","propTransformer","activeClassName","isActive"];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 K0e(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 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 Gy(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){Y0e(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 Y0e(e,t,n){return t=Q0e(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Q0e(e){var t=X0e(e,"string");return wp(t)=="symbol"?t:t+""}function X0e(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)}function W0e(e,t){return Gy(Gy({},t),e)}function Z0e(e,t){return e==="symbols"}function S7(e){var t=e.shapeType,n=e.elementProps;switch(t){case"rectangle":return F.createElement(Uj,n);case"trapezoid":return F.createElement(H0e,n);case"sector":return F.createElement(PF,n);case"symbols":if(Z0e(t))return F.createElement(sj,n);break;default:return null}}function J0e(e){return _.isValidElement(e)?e.props:e}function YF(e){var t=e.option,n=e.shapeType,r=e.propTransformer,o=r===void 0?W0e:r,s=e.activeClassName,c=s===void 0?"recharts-active-shape":s,u=e.isActive,f=K0e(e,F0e),m;if(_.isValidElement(t))m=_.cloneElement(t,Gy(Gy({},f),J0e(t)));else if(Xe(t))m=t(f);else if(j0e(t)&&!M0e(t)){var g=o(t,f);m=F.createElement(S7,{shapeType:n,elementProps:g})}else{var h=f;m=F.createElement(S7,{shapeType:n,elementProps:h})}return u?F.createElement(Dt,{className:c},m):m}function f0(e,t){return t!=null&&"trapezoids"in e.props}function m0(e,t){return t!=null&&"sectors"in e.props}function Ep(e,t){return t!=null&&"points"in e.props}function e1e(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 t1e(e,t){var n=e.endAngle===t.endAngle,r=e.startAngle===t.startAngle;return n&&r}function n1e(e,t){var n=e.x===t.x,r=e.y===t.y,o=e.z===t.z;return n&&r&&o}function r1e(e,t){var n;return f0(e,t)?n=e1e:m0(e,t)?n=t1e:Ep(e,t)&&(n=n1e),n}function a1e(e,t){var n;return f0(e,t)?n="trapezoids":m0(e,t)?n="sectors":Ep(e,t)&&(n="points"),n}function i1e(e,t){if(f0(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(m0(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 Ep(e,t)?t.payload:{}}function o1e(e){var t=e.activeTooltipItem,n=e.graphicalItem,r=e.itemData,o=a1e(n,t),s=i1e(n,t),c=r.filter(function(f,m){var g=Hd(s,f),h=n.props[o].filter(function(S){var N=r1e(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 A7(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?A7(Object(n),!0).forEach(function(r){Va(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):A7(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function s1e(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function O7(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,XF(r.key),r)}}function l1e(e,t,n){return t&&O7(e.prototype,t),n&&O7(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function c1e(e,t,n){return t=Yy(t),u1e(e,QF()?Reflect.construct(t,n||[],Yy(e).constructor):t.apply(e,n))}function u1e(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 d1e(e)}function d1e(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function QF(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(QF=function(){return!!e})()}function Yy(e){return Yy=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},Yy(e)}function f1e(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 Va(e,t,n){return t=XF(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function XF(e){var t=m1e(e,"string");return Qd(t)=="symbol"?t:t+""}function m1e(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 s1e(this,t),r=c1e(this,t,[n]),Va(r,"pieRef",null),Va(r,"sectorRefs",[]),Va(r,"id",Nf("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 f1e(t,e),l1e(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),F.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,Vn(N,A)))});return F.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 F.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)}),F.createElement(YF,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 F.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,I=j.startAngle,z=Fr(0,$-I),H=z(N),G=Zt(Zt({},j),{},{startAngle:C+T,endAngle:C+H+T});w.push(G),C=G.endAngle}}),F.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 F.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(F.isValidElement(r))return F.cloneElement(r,o);if(Xe(r))return r(o);var c=it("recharts-pie-label-line",typeof r!="boolean"?r.className:"");return F.createElement(Rd,Sd({},o,{key:s,type:"linear",className:c}))}},{key:"renderLabelItem",value:function(r,o,s){if(F.isValidElement(r))return F.cloneElement(r,o);var c=s;if(Xe(r)&&(c=r(o),F.isValidElement(c)))return c;var u=it("recharts-pie-label-text",typeof r!="boolean"&&!Xe(r)?r.className:"");return F.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,Qx);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=TF(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 Vn(M,D,0)!==0}).length,j=(w>=360?C:C-1)*f,P=w-C*x-j,A=o.reduce(function(M,$){var I=Vn($,D,0);return M+(Oe(I)?I:0)},0),T;if(A>0){var R;T=o.map(function(M,$){var I=Vn(M,D,0),z=Vn(M,g,$),H=(Oe(I)?I:0)/A,G;$?G=R.endAngle+jr(N)*f*(I!==0?1:0):G=c;var Y=G+jr(N)*((I!==0?x:0)+H*P),J=(G+Y)/2,q=(S.innerRadius+S.outerRadius)/2,U=[{name:z,value:I,payload:M,dataKey:D,type:y}],K=en(S.cx,S.cy,q,J);return R=Zt(Zt(Zt({percent:H,cornerRadius:s,name:z,tooltipPayload:U,midAngle:J,middleRadius:q,tooltipPosition:K},M),S),{},{value:Vn(M,D),startAngle:G,endAngle:Y,payload:M,paddingAngle:jr(N)*f}),R})}return Zt(Zt({},S),{},{sectors:T,data:o})});var wD,D7;function h1e(){if(D7)return wD;D7=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 wD=n,wD}var ED,C7;function WF(){if(C7)return ED;C7=1;var e=gH(),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 ED=r,ED}var SD,T7;function p1e(){if(T7)return SD;T7=1;var e=h1e(),t=Yx(),n=WF();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 SD=r,SD}var AD,_7;function g1e(){if(_7)return AD;_7=1;var e=p1e(),t=e();return AD=t,AD}var v1e=g1e();const Qy=Bt(v1e);function Sp(e){"@babel/helpers - typeof";return Sp=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},Sp(e)}function j7(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 R7(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?j7(Object(n),!0).forEach(function(r){ZF(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):j7(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function ZF(e,t,n){return t=b1e(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function b1e(e){var t=y1e(e,"string");return Sp(t)=="symbol"?t:t+""}function y1e(e,t){if(Sp(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(Sp(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var x1e=["Webkit","Moz","O","ms"],N1e=function(t,n){var r=t.replace(/(\w)/,function(s){return s.toUpperCase()}),o=x1e.reduce(function(s,c){return R7(R7({},s),{},ZF({},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 P7(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),n.push.apply(n,r)}return n}function OD(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?P7(Object(n),!0).forEach(function(r){ua(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):P7(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function w1e(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,eK(r.key),r)}}function E1e(e,t,n){return t&&M7(e.prototype,t),n&&M7(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function S1e(e,t,n){return t=Wy(t),A1e(e,JF()?Reflect.construct(t,n||[],Wy(e).constructor):t.apply(e,n))}function A1e(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 O1e(e)}function O1e(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function JF(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(JF=function(){return!!e})()}function Wy(e){return Wy=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},Wy(e)}function D1e(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 ua(e,t,n){return t=eK(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function eK(e){var t=C1e(e,"string");return Xd(t)=="symbol"?t:t+""}function C1e(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 T1e=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=_h().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}},k7=function(t){return t.changedTouches&&!!t.changedTouches.length},Wd=(function(e){function t(n){var r;return w1e(this,t),r=S1e(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=k7(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 D1e(t,e),E1e(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=Vn(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=k7(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 F.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?F.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=OD(OD({},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 F.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 F.createElement("rect",{className:"recharts-brush-slide",onMouseEnter:this.handleEnterSlideOrTraveller,onMouseLeave:this.handleLeaveSlideOrTraveller,onMouseDown:this.handleSlideDragStart,onTouchStart:this.handleSlideDragStart,style:{cursor:"move"},stroke:"none",fill:f,fillOpacity:.2,x:g,y: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 F.createElement(Dt,{className:"recharts-brush-texts"},F.createElement(Fc,Xy({textAnchor:"end",verticalAnchor:"middle",x:Math.min(h,y)-x,y:c+u/2},S),this.getTextOfTick(o)),F.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=F.Children.count(c)===1,A=N1e("userSelect","none");return F.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 F.createElement(F.Fragment,null,F.createElement("rect",{x:o,y:s,width:c,height:u,fill:f,stroke:"none"}),F.createElement("line",{x1:o+1,y1:m,x2:o+c-1,y2:m,fill:"none",stroke:"#fff"}),F.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 F.isValidElement(r)?s=F.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 OD({prevData:s,prevTravellerWidth:f,prevUpdateId:m,prevX:u,prevWidth:c},s&&s.length?T1e({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 DD,I7;function _1e(){if(I7)return DD;I7=1;var e=hj();function t(n,r){var o;return e(n,function(s,c,u){return o=r(s,c,u),!o}),!!o}return DD=t,DD}var CD,L7;function j1e(){if(L7)return CD;L7=1;var e=Gq(),t=vo(),n=_1e(),r=Gr(),o=Yx();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 CD=s,CD}var R1e=j1e();const P1e=Bt(R1e);var oo=function(t,n){var r=t.alwaysShow,o=t.ifOverflow;return r&&(o="extendDomain"),o===n},TD,V7;function M1e(){if(V7)return TD;V7=1;var e=dH();function t(n,r,o){r=="__proto__"&&e?e(n,r,{configurable:!0,enumerable:!0,value:o,writable:!0}):n[r]=o}return TD=t,TD}var _D,$7;function k1e(){if($7)return _D;$7=1;var e=M1e(),t=cH(),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 _D=r,_D}var I1e=k1e();const L1e=Bt(I1e);var jD,B7;function V1e(){if(B7)return jD;B7=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 jD=e,jD}var RD,z7;function $1e(){if(z7)return RD;z7=1;var e=hj();function t(n,r){var o=!0;return e(n,function(s,c,u){return o=!!r(s,c,u),o}),o}return RD=t,RD}var PD,U7;function B1e(){if(U7)return PD;U7=1;var e=V1e(),t=$1e(),n=vo(),r=Gr(),o=Yx();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 PD=s,PD}var z1e=B1e();const tK=Bt(z1e);var U1e=["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 MT(){return MT=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},MT.apply(this,arguments)}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 vh(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){q1e(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 q1e(e,t,n){return t=H1e(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function H1e(e){var t=F1e(e,"string");return Zd(t)=="symbol"?t:t+""}function F1e(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 K1e(e,t){if(e==null)return{};var n=G1e(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 G1e(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 Y1e(e,t){var n=e.x,r=e.y,o=K1e(e,U1e),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 vh(vh(vh(vh(vh({},t),o),c?{x:c}:{}),f?{y:f}:{}),{},{height:g,width:y,name:t.name,radius:t.radius})}function H7(e){return F.createElement(YF,MT({shapeType:"rectangle",propTransformer:Y1e,activeClassName:"recharts-active-bar"},e))}var Q1e=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)||vce(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)}},X1e=["value","background"],nK;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 W1e(e,t){if(e==null)return{};var n=Z1e(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 Z1e(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 F7(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?F7(Object(n),!0).forEach(function(r){dl(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):F7(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function J1e(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,aK(r.key),r)}}function eNe(e,t,n){return t&&K7(e.prototype,t),n&&K7(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function tNe(e,t,n){return t=Jy(t),nNe(e,rK()?Reflect.construct(t,n||[],Jy(e).constructor):t.apply(e,n))}function nNe(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 rNe(e)}function rNe(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 Jy(e){return Jy=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},Jy(e)}function aNe(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 dl(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=iNe(e,"string");return Jd(t)=="symbol"?t:t+""}function iNe(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;J1e(this,t);for(var r=arguments.length,o=new Array(r),s=0;s<r;s++)o[s]=arguments[s];return n=tNe(this,t,[].concat(o)),dl(n,"state",{isAnimationFinished:!1}),dl(n,"id",Nf("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 aNe(t,e),eNe(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 F.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)}),F.createElement(H7,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 F.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),I=$(S);return Tn(Tn({},w),{},{width:I})});return F.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=W1e(m,X1e);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 F.createElement(H7,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,o0);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:Vn(w,D)}},S={clipPath:r?"url(#clipPath-".concat(o,")"):null};return F.createElement(Dt,S,h.map(function(N){return F.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 F.createElement(Dt,{className:D},C||j?F.createElement("defs",null,F.createElement("clipPath",{id:"clipPath-".concat(A)},F.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,F.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);nK=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=jve(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=Vve({numericAxis:P}),R=Ua(C,Qx),M=h.map(function($,I){var z,H,G,Y,J,q;m?z=Rve(m[g+I],A):(z=Vn($,D),Array.isArray(z)||(z=[T,z]));var U=Q1e(j,nK.defaultProps.minPointSize)(z[1],I);if(S==="horizontal"){var K,te=[c.scale(z[0]),c.scale(z[1])],ne=te[0],L=te[1];H=fB({axis:s,ticks:u,bandSize:o,offset:x.offset,entry:$,index:I}),G=(K=L??ne)!==null&&K!==void 0?K:void 0,Y=x.size;var Q=ne-L;if(J=Number.isNaN(Q)?0:Q,q={x:H,y:c.y,width:Y,height:c.height},Math.abs(U)>0&&Math.abs(J)<Math.abs(U)){var W=jr(J||U)*(Math.abs(U)-Math.abs(J));G-=W,J+=W}}else{var ae=[s.scale(z[0]),s.scale(z[1])],ge=ae[0],we=ae[1];if(H=ge,G=fB({axis:c,ticks:f,bandSize:o,offset:x.offset,entry:$,index:I}),Y=we-ge,J=x.size,q={x:s.x,y:G,width:s.width,height:J},Math.abs(U)>0&&Math.abs(Y)<Math.abs(U)){var ue=jr(Y||U)*(Math.abs(U)-Math.abs(Y));Y+=ue}}return Tn(Tn(Tn({},$),{},{x:H,y:G,width:Y,height:J,value:m?z:z[1],payload:$,background:q},R&&R[I]&&R[I].props),{},{tooltipPayload:[DF(n,$)],tooltipPosition:{x:H+Y/2,y:G+J/2}})});return Tn({data:M,layout:S},y)});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 oNe(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 sNe(e,t,n){return t&&G7(e.prototype,t),n&&G7(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function Y7(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?Y7(Object(n),!0).forEach(function(r){h0(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Y7(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function h0(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=lNe(e,"string");return Ap(t)=="symbol"?t:t+""}function lNe(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 cNe=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,$,I,z;if(N.type==="number"&&(N.padding==="gap"||N.padding==="no-gap")){var H=D[1]-D[0],G=1/0,Y=N.categoricalDomain.sort(xce);if(Y.forEach(function(ae,ge){ge>0&&(G=Math.min((ae||0)-(Y[ge-1]||0),G))}),Number.isFinite(G)){var J=G/H,q=N.layout==="vertical"?r.height:r.width;if(N.padding==="gap"&&(R=J*q/2),N.padding==="no-gap"){var U=Rr(t.barCategoryGap,J*q),K=J*q/2;R=K-U-(K-U)/q*U}}}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 te=EF(N,s,y),ne=te.scale,L=te.realScaleType;ne.domain(D).range(M),SF(ne);var Q=AF(ne,li(li({},N),{},{realScaleType:L}));o==="xAxis"?(z=w==="top"&&!P||w==="bottom"&&P,$=r.left,I=h[T]-z*N.height):o==="yAxis"&&(z=w==="left"&&!P||w==="right"&&P,$=h[T]-z*N.width,I=r.top);var W=li(li(li({},N),Q),{},{realScaleType:L,x:$,y:I,scale:ne,width:o==="xAxis"?r.width:N.width,height:o==="yAxis"?r.height:N.height});return W.bandSize=Iy(W,Q),!N.hide&&o==="xAxis"?h[T]+=(z?-1:1)*W.height:N.hide||(h[T]+=(z?-1:1)*W.width),li(li({},x),{},h0({},S,W))},{})},oK=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)}},uNe=function(t){var n=t.x1,r=t.y1,o=t.x2,s=t.y2;return oK({x:n,y:r},{x:o,y:s})},sK=(function(){function e(t){oNe(this,e),this.scale=t}return sNe(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)}}])})();h0(sK,"EPS",1e-4);var qj=function(t){var n=Object.keys(t).reduce(function(r,o){return li(li({},r),{},h0({},o,sK.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 L1e(o,function(f,m){return n[m].apply(f,{bandAware:c,position:u})})},isInRange:function(o){return tK(o,function(s,c){return n[c].isInRange(s)})}})};function dNe(e){return(e%180+180)%180}var fNe=function(t){var n=t.width,r=t.height,o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,s=dNe(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)},MD,Q7;function mNe(){if(Q7)return MD;Q7=1;var e=vo(),t=Hp(),n=Kx();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 MD=r,MD}var kD,X7;function hNe(){if(X7)return kD;X7=1;var e=WF();function t(n){var r=e(n),o=r%1;return r===r?o?r-o:r:0}return kD=t,kD}var ID,W7;function pNe(){if(W7)return ID;W7=1;var e=aH(),t=vo(),n=hNe(),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 ID=o,ID}var LD,Z7;function gNe(){if(Z7)return LD;Z7=1;var e=mNe(),t=pNe(),n=e(t);return LD=n,LD}var vNe=gNe();const bNe=Bt(vNe);var yNe=xq();const xNe=Bt(yNe);var NNe=xNe(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 Hj=_.createContext(void 0),Fj=_.createContext(void 0),lK=_.createContext(void 0),cK=_.createContext({}),uK=_.createContext(void 0),dK=_.createContext(0),fK=_.createContext(0),J7=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=NNe(s);return F.createElement(Hj.Provider,{value:r},F.createElement(Fj.Provider,{value:o},F.createElement(cK.Provider,{value:s},F.createElement(lK.Provider,{value:g},F.createElement(uK.Provider,{value:c},F.createElement(dK.Provider,{value:m},F.createElement(fK.Provider,{value:f},u)))))))},wNe=function(){return _.useContext(uK)};function mK(e){var t=Object.keys(e);return t.length===0?"There are no available ids.":"Available ids are: ".concat(t,".")}var hK=function(t){var n=_.useContext(Hj);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(mK(n))),r},ENe=function(){var t=_.useContext(Hj);return ll(t)},SNe=function(){var t=_.useContext(Fj),n=bNe(t,function(r){return tK(r.domain,Number.isFinite)});return n||ll(t)},pK=function(t){var n=_.useContext(Fj);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(mK(n))),r},ANe=function(){var t=_.useContext(lK);return t},ONe=function(){return _.useContext(cK)},Kj=function(){return _.useContext(fK)},Gj=function(){return _.useContext(dK)};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 DNe(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function CNe(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 TNe(e,t,n){return t&&CNe(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function _Ne(e,t,n){return t=tx(t),jNe(e,gK()?Reflect.construct(t,n||[],tx(e).constructor):t.apply(e,n))}function jNe(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 RNe(e)}function RNe(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function gK(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(gK=function(){return!!e})()}function tx(e){return tx=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},tx(e)}function PNe(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&IT(e,t)}function IT(e,t){return IT=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,o){return r.__proto__=o,r},IT(e,t)}function e8(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),n.push.apply(n,r)}return n}function t8(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?e8(Object(n),!0).forEach(function(r){Yj(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):e8(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function Yj(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=MNe(e,"string");return ef(t)=="symbol"?t:t+""}function MNe(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 kNe(e,t){return $Ne(e)||VNe(e,t)||LNe(e,t)||INe()}function INe(){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 LNe(e,t){if(e){if(typeof e=="string")return n8(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 n8(e,t)}}function n8(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 VNe(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 $Ne(e){if(Array.isArray(e))return e}function LT(){return LT=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},LT.apply(this,arguments)}var BNe=function(t,n){var r;return F.isValidElement(t)?r=F.cloneElement(t,n):Xe(t)?r=t(n):r=F.createElement("line",LT({},n,{className:"recharts-reference-line-line"})),r},zNe=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")&&P1e(A,function(T){return!t.isInRange(T)})?null:A}return null};function UNe(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=wNe(),g=hK(o),h=pK(s),y=ANe();if(!m||!y)return null;ui(f===void 0,'The alwaysShow prop is deprecated. Please use ifOverflow="extendDomain" instead.');var x=qj({x:g.scale,y:h.scale}),S=$n(t),N=$n(n),w=r&&r.length===2,D=zNe(x,S,N,w,y,e.position,g.orientation,h.orientation,e);if(!D)return null;var C=kNe(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,I=t8(t8({clipPath:$},Fe(e,!0)),{},{x1:P,y1:A,x2:R,y2:M});return F.createElement(Dt,{className:it("recharts-reference-line",u)},BNe(c,I),Xn.renderCallByParent(e,uNe({x1:P,y1:A,x2:R,y2:M})))}var Qj=(function(e){function t(){return DNe(this,t),_Ne(this,t,arguments)}return PNe(t,e),TNe(t,[{key:"render",value:function(){return F.createElement(UNe,this.props)}}])})(F.Component);Yj(Qj,"displayName","ReferenceLine");Yj(Qj,"defaultProps",{isFront:!1,ifOverflow:"discard",xAxisId:0,yAxisId:0,fill:"none",stroke:"#ccc",fillOpacity:1,strokeWidth:1,position:"middle"});function VT(){return VT=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},VT.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 r8(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),n.push.apply(n,r)}return n}function a8(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?r8(Object(n),!0).forEach(function(r){p0(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):r8(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function qNe(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function HNe(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,yK(r.key),r)}}function FNe(e,t,n){return t&&HNe(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function KNe(e,t,n){return t=nx(t),GNe(e,bK()?Reflect.construct(t,n||[],nx(e).constructor):t.apply(e,n))}function GNe(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 YNe(e)}function YNe(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 nx(e){return nx=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},nx(e)}function QNe(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&&$T(e,t)}function $T(e,t){return $T=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,o){return r.__proto__=o,r},$T(e,t)}function p0(e,t,n){return t=yK(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function yK(e){var t=XNe(e,"string");return tf(t)=="symbol"?t:t+""}function XNe(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 WNe=function(t){var n=t.x,r=t.y,o=t.xAxis,s=t.yAxis,c=qj({x:o.scale,y:s.scale}),u=c.apply({x:n,y:r},{bandAware:!0});return oo(t,"discard")&&!c.isInRange(u)?null:u},g0=(function(e){function t(){return qNe(this,t),KNe(this,t,arguments)}return QNe(t,e),FNe(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=$n(o),g=$n(s);if(ui(u===void 0,'The alwaysShow prop is deprecated. Please use ifOverflow="extendDomain" instead.'),!m||!g)return null;var h=WNe(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=a8(a8({clipPath:D},Fe(this.props,!0)),{},{cx:y,cy:x});return F.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}))}}])})(F.Component);p0(g0,"displayName","ReferenceDot");p0(g0,"defaultProps",{isFront:!1,ifOverflow:"discard",xAxisId:0,yAxisId:0,r:10,fill:"#fff",stroke:"#ccc",fillOpacity:1,strokeWidth:1});p0(g0,"renderDot",function(e,t){var n;return F.isValidElement(e)?n=F.cloneElement(e,t):Xe(e)?n=e(t):n=F.createElement(s0,VT({},t,{cx:t.cx,cy:t.cy,className:"recharts-reference-dot-dot"})),n});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 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 i8(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 o8(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?i8(Object(n),!0).forEach(function(r){v0(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):i8(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function ZNe(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function JNe(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,NK(r.key),r)}}function ewe(e,t,n){return t&&JNe(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function twe(e,t,n){return t=rx(t),nwe(e,xK()?Reflect.construct(t,n||[],rx(e).constructor):t.apply(e,n))}function nwe(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 rwe(e)}function rwe(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function xK(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(xK=function(){return!!e})()}function rx(e){return rx=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},rx(e)}function awe(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 v0(e,t,n){return t=NK(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function NK(e){var t=iwe(e,"string");return nf(t)=="symbol"?t:t+""}function iwe(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 owe=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=qj({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:oK(x,S)},b0=(function(e){function t(){return ZNe(this,t),twe(this,t,arguments)}return awe(t,e),ewe(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=$n(o),y=$n(s),x=$n(c),S=$n(u),N=this.props.shape;if(!h&&!y&&!x&&!S&&!N)return null;var w=owe(h,y,x,S,this.props);if(!w&&!N)return null;var D=oo(this.props,"hidden")?"url(#".concat(g,")"):void 0;return F.createElement(Dt,{className:it("recharts-reference-area",f)},t.renderRect(N,o8(o8({clipPath:D},Fe(this.props,!0)),w)),Xn.renderCallByParent(this.props,w))}}])})(F.Component);v0(b0,"displayName","ReferenceArea");v0(b0,"defaultProps",{isFront:!1,ifOverflow:"discard",xAxisId:0,yAxisId:0,r:10,fill:"#ccc",fillOpacity:.5,stroke:"none",strokeWidth:1});v0(b0,"renderRect",function(e,t){var n;return F.isValidElement(e)?n=F.cloneElement(e,t):Xe(e)?n=e(t):n=F.createElement(Uj,BT({},t,{className:"recharts-reference-area-rect"})),n});function wK(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 swe(e,t,n){var r={width:e.width+t.width,height:e.height+t.height};return fNe(r,n)}function lwe(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 cwe(e,t){return wK(e,t+1)}function uwe(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:wK(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 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 s8(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?s8(Object(n),!0).forEach(function(r){dwe(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):s8(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function dwe(e,t,n){return t=fwe(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function fwe(e){var t=mwe(e,"string");return Op(t)=="symbol"?t:t+""}function mwe(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)}function hwe(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 pwe(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 Xj(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 cwe(o,typeof f=="number"&&Oe(f)?f:0);var y=[],x=u==="top"||u==="bottom"?"width":"height",S=g&&x==="width"?Th(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"?swe(Th(A,{fontSize:t,letterSpacing:n}),S,h):Th(A,{fontSize:t,letterSpacing:n})[x]},w=o.length>=2?jr(o[1].coordinate-o[0].coordinate):1,D=lwe(s,w,x);return f==="equidistantPreserveStart"?uwe(w,D,N,o,c):(f==="preserveStart"||f==="preserveStartEnd"?y=pwe(w,D,N,o,c,f==="preserveStartEnd"):y=hwe(w,D,N,o,c),y.filter(function(C){return C.isShow}))}var gwe=["viewBox"],vwe=["viewBox"],bwe=["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 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 In(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){Wj(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 VD(e,t){if(e==null)return{};var n=ywe(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 ywe(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 xwe(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function c8(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,SK(r.key),r)}}function Nwe(e,t,n){return t&&c8(e.prototype,t),n&&c8(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function wwe(e,t,n){return t=ix(t),Ewe(e,EK()?Reflect.construct(t,n||[],ix(e).constructor):t.apply(e,n))}function Ewe(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 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 EK(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(EK=function(){return!!e})()}function ix(e){return ix=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},ix(e)}function Awe(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&&UT(e,t)}function UT(e,t){return UT=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,o){return r.__proto__=o,r},UT(e,t)}function Wj(e,t,n){return t=SK(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function SK(e){var t=Owe(e,"string");return rf(t)=="symbol"?t:t+""}function Owe(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 Of=(function(e){function t(n){var r;return xwe(this,t),r=wwe(this,t,[n]),r.state={fontSize:"",letterSpacing:""},r}return Awe(t,e),Nwe(t,[{key:"shouldComponentUpdate",value:function(r,o){var s=r.viewBox,c=VD(r,gwe),u=this.props,f=u.viewBox,m=VD(u,vwe);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 F.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=Xj(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 F.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&&F.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 F.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=VD(h,bwe),S=y;return Xe(f)&&(S=y&&y.length>0?f(this.props):f(x)),c<=0||u<=0||!S||!S.length?null:F.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 F.isValidElement(r)?c=F.cloneElement(r,In(In({},o),{},{className:u})):Xe(r)?c=r(In(In({},o),{},{className:u})):c=F.createElement(Fc,Ad({},o,{className:"recharts-cartesian-axis-tick-value"}),s),c}}])})(_.Component);Wj(Of,"displayName","CartesianAxis");Wj(Of,"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 Dwe=["x1","y1","x2","y2","key"],Cwe=["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 u8(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?u8(Object(n),!0).forEach(function(r){Twe(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):u8(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function Twe(e,t,n){return t=_we(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function _we(e){var t=jwe(e,"string");return Yc(t)=="symbol"?t:t+""}function jwe(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 d8(e,t){if(e==null)return{};var n=Rwe(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 Rwe(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 Pwe=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 F.createElement("rect",{x:o,y:s,ry:f,width:c,height:u,stroke:"none",fill:n,fillOpacity:r,className:"recharts-cartesian-grid-bg"})};function AK(e,t){var n;if(F.isValidElement(e))n=F.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=d8(t,Dwe),m=Fe(f,!1);m.offset;var g=d8(m,Cwe);n=F.createElement("line",Ac({},g,{x1:r,y1:o,x2:s,y2:c,fill:"none",key:u}))}return n}function Mwe(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 AK(o,m)});return F.createElement("g",{className:"recharts-cartesian-grid-horizontal"},c)}function kwe(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 AK(o,m)});return F.createElement("g",{className:"recharts-cartesian-grid-vertical"},c)}function Iwe(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 F.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 F.createElement("g",{className:"recharts-cartesian-gridstripes-horizontal"},h)}function Lwe(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 F.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 F.createElement("g",{className:"recharts-cartesian-gridstripes-vertical"},h)}var Vwe=function(t,n){var r=t.xAxis,o=t.width,s=t.height,c=t.offset;return wF(Xj(fr(fr(fr({},Of.defaultProps),r),{},{ticks:ts(r,!0),viewBox:{x:0,y:0,width:o,height:s}})),c.left,c.left+c.width,n)},$we=function(t,n){var r=t.yAxis,o=t.width,s=t.height,c=t.offset;return wF(Xj(fr(fr(fr({},Of.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 OK(e){var t,n,r,o,s,c,u=Kj(),f=Gj(),m=ONe(),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=ENe(),j=SNe();if(!Oe(x)||x<=0||!Oe(S)||S<=0||!Oe(h)||h!==+h||!Oe(y)||y!==+y)return null;var P=g.verticalCoordinatesGenerator||Vwe,A=g.horizontalCoordinatesGenerator||$we,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 I=D&&D.length,z=P({xAxis:C?fr(fr({},C),{},{ticks:I?D:C.ticks}):void 0,width:u,height:f,offset:m},I?!0:N);ui(Array.isArray(z),"verticalCoordinatesGenerator should return Array but instead it returned [".concat(Yc(z),"]")),Array.isArray(z)&&(R=z)}return F.createElement("g",{className:"recharts-cartesian-grid"},F.createElement(Pwe,{fill:g.fill,fillOpacity:g.fillOpacity,x:g.x,y:g.y,width:g.width,height:g.height,ry:g.ry}),F.createElement(Mwe,Ac({},g,{offset:m,horizontalPoints:T,xAxis:C,yAxis:j})),F.createElement(kwe,Ac({},g,{offset:m,verticalPoints:R,xAxis:C,yAxis:j})),F.createElement(Iwe,Ac({},g,{horizontalPoints:T})),F.createElement(Lwe,Ac({},g,{verticalPoints:R})))}OK.displayName="CartesianGrid";var Bwe=["layout","type","stroke","connectNulls","isRange","ref"],zwe=["key"],DK;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 CK(e,t){if(e==null)return{};var n=Uwe(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 Uwe(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 f8(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?f8(Object(n),!0).forEach(function(r){no(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):f8(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function qwe(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function m8(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,_K(r.key),r)}}function Hwe(e,t,n){return t&&m8(e.prototype,t),n&&m8(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function Fwe(e,t,n){return t=ox(t),Kwe(e,TK()?Reflect.construct(t,n||[],ox(e).constructor):t.apply(e,n))}function Kwe(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 Gwe(e)}function Gwe(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function TK(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(TK=function(){return!!e})()}function ox(e){return ox=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},ox(e)}function Ywe(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 no(e,t,n){return t=_K(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function _K(e){var t=Qwe(e,"string");return af(t)=="symbol"?t:t+""}function Qwe(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;qwe(this,t);for(var r=arguments.length,o=new Array(r),s=0;s<r;s++)o[s]=arguments[s];return n=Fwe(this,t,[].concat(o)),no(n,"state",{isAnimationFinished:!0}),no(n,"id",Nf("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 Ywe(t,e),Hwe(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 F.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)?F.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)?F.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=CK(u,Bwe);return F.createElement(Dt,{clipPath:s?"url(#clipPath-".concat(c,")"):null},F.createElement(Rd,Oc({},Fe(x,!0),{points:r,connectNulls:h,type:m,baseLine:o,layout:f,stroke:"none",className:"recharts-area-area"})),g!=="none"&&F.createElement(Rd,Oc({},Fe(this.props,!1),{className:"recharts-area-curve",layout:f,type:m,connectNulls:h,fill:"none",points:r})),g!=="none"&&y&&F.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 F.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 I=Math.floor($*j);if(N[I]){var z=N[I],H=Fr(z.x,M.x),G=Fr(z.y,M.y);return ol(ol({},M),{},{x:H(C),y:G(C)})}return M}),A;if(Oe(f)&&typeof f=="number"){var T=Fr(w,f);A=T(C)}else if(ot(f)||xf(f)){var R=Fr(w,0);A=R(C)}else A=f.map(function(M,$){var I=Math.floor($*j);if(w[I]){var z=w[I],H=Fr(z.x,M.x),G=Fr(z.y,M.y);return ol(ol({},M),{},{x:H(C),y:G(C)})}return M});return s.renderAreaStatically(P,A,r,o)}return F.createElement(Dt,null,F.createElement("defs",null,F.createElement("clipPath",{id:"animationClipPath-".concat(o)},s.renderClipRect(C))),F.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,I=$===void 0?3:$,z=M.strokeWidth,H=z===void 0?2:z,G=Tce(c)?c:{},Y=G.clipDot,J=Y===void 0?!0:Y,q=I*2+H;return F.createElement(Dt,{className:j},P||A?F.createElement("defs",null,F.createElement("clipPath",{id:"clipPath-".concat(R)},F.createElement("rect",{x:P?g:g-x/2,y:A?m:m-S/2,width:P?x:x*2,height:A?S:S*2})),!J&&F.createElement("clipPath",{id:"clipPath-dots-".concat(R)},F.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,J,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);DK=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=DK.getBaseValue(t,n,r,o),w=x==="horizontal",D=!1,C=h.map(function(P,A){var T;S?T=m[g+A]:(T=Vn(P,f),Array.isArray(T)?D=!0:T=[N,T]);var R=T[1]==null||S&&Vn(P,f)==null;return w?{x:dB({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:dB({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(F.isValidElement(e))n=F.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=CK(t,zwe);n=F.createElement(s0,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 Xwe(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Wwe(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,PK(r.key),r)}}function Zwe(e,t,n){return t&&Wwe(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function Jwe(e,t,n){return t=sx(t),eEe(e,jK()?Reflect.construct(t,n||[],sx(e).constructor):t.apply(e,n))}function eEe(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 tEe(e)}function tEe(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function jK(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(jK=function(){return!!e})()}function sx(e){return sx=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},sx(e)}function nEe(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 RK(e,t,n){return t=PK(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function PK(e){var t=rEe(e,"string");return of(t)=="symbol"?t:t+""}function rEe(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 FT(){return FT=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},FT.apply(this,arguments)}function aEe(e){var t=e.xAxisId,n=Kj(),r=Gj(),o=hK(t);return o==null?null:_.createElement(Of,FT({},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 y0=(function(e){function t(){return Xwe(this,t),Jwe(this,t,arguments)}return nEe(t,e),Zwe(t,[{key:"render",value:function(){return _.createElement(aEe,this.props)}}])})(_.Component);RK(y0,"displayName","XAxis");RK(y0,"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 iEe(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function oEe(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,IK(r.key),r)}}function sEe(e,t,n){return t&&oEe(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function lEe(e,t,n){return t=lx(t),cEe(e,MK()?Reflect.construct(t,n||[],lx(e).constructor):t.apply(e,n))}function cEe(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 uEe(e)}function uEe(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function MK(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(MK=function(){return!!e})()}function lx(e){return lx=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},lx(e)}function dEe(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&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 kK(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=fEe(e,"string");return sf(t)=="symbol"?t:t+""}function fEe(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 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)}var mEe=function(t){var n=t.yAxisId,r=Kj(),o=Gj(),s=pK(n);return s==null?null:_.createElement(Of,GT({},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)}}))},x0=(function(e){function t(){return iEe(this,t),lEe(this,t,arguments)}return dEe(t,e),sEe(t,[{key:"render",value:function(){return _.createElement(mEe,this.props)}}])})(_.Component);kK(x0,"displayName","YAxis");kK(x0,"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 h8(e){return vEe(e)||gEe(e)||pEe(e)||hEe()}function hEe(){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 pEe(e,t){if(e){if(typeof e=="string")return YT(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 YT(e,t)}}function gEe(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function vEe(e){if(Array.isArray(e))return YT(e)}function YT(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 QT=function(t,n,r,o,s){var c=Ua(t,Qj),u=Ua(t,g0),f=[].concat(h8(c),h8(u)),m=Ua(t,b0),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},$D={exports:{}},p8;function bEe(){return p8||(p8=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})($D)),$D.exports}var yEe=bEe();const xEe=Bt(yEe);var BD=new xEe,zD="recharts.syncMouseEvents";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 NEe(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function wEe(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 EEe(e,t,n){return t&&wEe(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function UD(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=SEe(e,"string");return Dp(t)=="symbol"?t:t+""}function SEe(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 String(e)}var AEe=(function(){function e(){NEe(this,e),UD(this,"activeIndex",0),UD(this,"coordinateList",[]),UD(this,"layout","horizontal")}return EEe(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 OEe(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 DEe(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 VK(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 CEe(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 VK(t);return[{x:r,y:o},{x:s,y:c}]}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 g8(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),n.push.apply(n,r)}return n}function Vb(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?g8(Object(n),!0).forEach(function(r){TEe(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):g8(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function TEe(e,t,n){return t=_Ee(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function _Ee(e){var t=jEe(e,"string");return Cp(t)=="symbol"?t:t+""}function jEe(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(t==="string"?String:Number)(e)}function REe(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=r0e;else if(y==="BarChart")S=DEe(h,c,f,g),N=Uj;else if(h==="radial"){var w=VK(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=PF}else S={points:CEe(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 PEe=["item"],MEe=["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 v8(e,t){return LEe(e)||IEe(e,t)||BK(e,t)||kEe()}function kEe(){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 IEe(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 LEe(e){if(Array.isArray(e))return e}function b8(e,t){if(e==null)return{};var n=VEe(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 VEe(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 $Ee(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function BEe(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,zK(r.key),r)}}function zEe(e,t,n){return t&&BEe(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function UEe(e,t,n){return t=cx(t),qEe(e,$K()?Reflect.construct(t,n||[],cx(e).constructor):t.apply(e,n))}function qEe(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 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 $K(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return($K=function(){return!!e})()}function cx(e){return cx=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},cx(e)}function FEe(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&&XT(e,t)}function XT(e,t){return XT=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,o){return r.__proto__=o,r},XT(e,t)}function cf(e){return YEe(e)||GEe(e)||BK(e)||KEe()}function KEe(){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 BK(e,t){if(e){if(typeof e=="string")return WT(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 WT(e,t)}}function GEe(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function YEe(e){if(Array.isArray(e))return WT(e)}function WT(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 y8(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?y8(Object(n),!0).forEach(function(r){Qe(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):y8(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function Qe(e,t,n){return t=zK(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function zK(e){var t=QEe(e,"string");return lf(t)=="symbol"?t:t+""}function QEe(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 XEe={xAxis:["bottom","top"],yAxis:["left","right"]},WEe={width:"100%",height:"100%"},UK={x:0,y:0};function $b(e){return e}var ZEe=function(t,n){return n==="horizontal"?t.x:n==="vertical"?t.y:n==="centric"?t.angle:t.radius},JEe=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 UK},N0=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 qK(e){return e==="number"?[0,"auto"]:void 0}var ZT=function(t,n,r,o){var s=t.graphicalItems,c=t.tooltipAxis,u=N0(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),[DF(m,y)]):f},[])},x8=function(t,n,r,o){var s=o||{x:t.chartX,y:t.chartY},c=ZEe(s,r),u=t.orderedTooltipTicks,f=t.tooltipAxis,m=t.tooltipTicks,g=Ave(c,u,m,f);if(g>=0&&m){var h=m[g]&&m[g].value,y=ZT(t,n,g,h),x=JEe(r,u,g,s);return{activeTooltipIndex:g,activeLabel:h,activePayload:y,activeCoordinate:x}}return null},eSe=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=NF(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 I=N0(t.data,{graphicalItems:o.filter(function(Q){var W,ae=c in Q.props?Q.props[c]:(W=Q.type.defaultProps)===null||W===void 0?void 0:W[c];return ae===$}),dataStartIndex:f,dataEndIndex:m}),z=I.length,H,G,Y;OEe(D.domain,P,C)&&(H=mT(D.domain,null,P),x&&(C==="number"||T!=="auto")&&(Y=jh(I,j,"category")));var J=qK(C);if(!H||H.length===0){var q,U=(q=D.domain)!==null&&q!==void 0?q:J;if(j){if(H=jh(I,j,C),C==="category"&&x){var K=yce(H);A&&K?(G=H,H=Qy(0,z)):A||(H=pB(U,H,N).reduce(function(Q,W){return Q.indexOf(W)>=0?Q:[].concat(cf(Q),[W])},[]))}else if(C==="category")A?H=H.filter(function(Q){return Q!==""&&!ot(Q)}):H=pB(U,H,N).reduce(function(Q,W){return Q.indexOf(W)>=0||W===""||ot(W)?Q:[].concat(cf(Q),[W])},[]);else if(C==="number"){var te=_ve(I,o.filter(function(Q){var W,ae,ge=c in Q.props?Q.props[c]:(W=Q.type.defaultProps)===null||W===void 0?void 0:W[c],we="hide"in Q.props?Q.props.hide:(ae=Q.type.defaultProps)===null||ae===void 0?void 0:ae.hide;return ge===$&&(M||!we)}),j,s,g);te&&(H=te)}x&&(C==="number"||T!=="auto")&&(Y=jh(I,j,"category"))}else x?H=Qy(0,z):u&&u[$]&&u[$].hasStack&&C==="number"?H=y==="expand"?[0,1]:OF(u[$].stackGroups,f,m):H=xF(I,o.filter(function(Q){var W=c in Q.props?Q.props[c]:Q.type.defaultProps[c],ae="hide"in Q.props?Q.props.hide:Q.type.defaultProps.hide;return W===$&&(M||!ae)}),C,g,!0);if(C==="number")H=QT(h,H,$,s,R),U&&(H=mT(U,H,P));else if(C==="category"&&U){var ne=U,L=H.every(function(Q){return ne.indexOf(Q)>=0});L&&(H=ne)}}return be(be({},S),{},Qe({},$,be(be({},D),{},{axisType:s,domain:H,categoricalDomain:Y,duplicateDomain:G,originalDomain:(w=D.domain)!==null&&w!==void 0?w:J,isCategorical:x,layout:g})))},{})},tSe=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=N0(t.data,{graphicalItems:r,dataStartIndex:f,dataEndIndex:m}),x=y.length,S=NF(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=qK("number");if(!w[j]){N++;var A;return S?A=Qy(0,x):u&&u[j]&&u[j].hasStack?(A=OF(u[j].stackGroups,f,m),A=QT(h,A,j,s)):(A=mT(P,xF(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],I="hide"in T.props?T.props.hide:(M=T.type.defaultProps)===null||M===void 0?void 0:M.hide;return $===j&&!I}),"number",g),o.defaultProps.allowDataOverflow),A=QT(h,A,j,s)),be(be({},w),{},Qe({},j,be(be({axisType:s},o.defaultProps),{},{hide:!0,orientation:va(XEe,"".concat(s,".").concat(N%2),null),domain:A,originalDomain:P,isCategorical:S,layout:g})))}return w},{})},nSe=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=eSe(t,{axes:y,graphicalItems:c,axisType:o,axisIdKey:h,stackGroups:u,dataStartIndex:f,dataEndIndex:m}):c&&c.length&&(x=tSe(t,{Axis:s,graphicalItems:c,axisType:o,axisIdKey:h,stackGroups:u,dataStartIndex:f,dataEndIndex:m})),x},rSe=function(t){var n=ll(t),r=ts(n,!1,!0);return{tooltipTicks:r,orderedTooltipTicks:pj(r,function(o){return o.coordinate}),tooltipAxis:n,tooltipAxisBandSize:Iy(n,r)}},N8=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}},aSe=function(t){return!t||!t.length?!1:t.some(function(n){var r=ns(n&&n.type);return r&&r.indexOf("Bar")>=0})},w8=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"}},iSe=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=Cve(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)})},oSe=function(t,n){if(n==="xAxis")return t[n].width;if(n==="yAxis")return t[n].height},HK=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,I=D.layout,z=D.barGap,H=D.barCategoryGap,G=D.maxBarSize,Y=w8(I),J=Y.numericAxisName,q=Y.cateAxisName,U=aSe(j),K=[];return j.forEach(function(te,ne){var L=N0(D.data,{graphicalItems:[te],dataStartIndex:R,dataEndIndex:M}),Q=te.type.defaultProps!==void 0?be(be({},te.type.defaultProps),te.props):te.props,W=Q.dataKey,ae=Q.maxBarSize,ge=Q["".concat(J,"Id")],we=Q["".concat(q,"Id")],ue={},xe=f.reduce(function(ir,St){var Un,kr,vi=C["".concat(St.axisType,"Map")],Yr=Q["".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((Un=te==null||(kr=te.type)===null||kr===void 0?void 0:kr.displayName)!==null&&Un!==void 0?Un:""));var bi=vi[Yr];return be(be({},ir),{},Qe(Qe({},St.axisType,bi),"".concat(St.axisType,"Ticks"),ts(bi)))},ue),me=xe[q],ye=xe["".concat(q,"Ticks")],de=P&&P[ge]&&P[ge].hasStack&&$ve(te,P[ge].stackGroups),ie=ns(te.type).indexOf("Bar")>=0,ze=Iy(me,ye),Ne=[],ut=U&&Ove({barSize:$,stackGroups:P,totalSize:oSe(xe,q)});if(ie){var Ve,nt,zn=ot(ae)?G:ae,xn=(Ve=(nt=Iy(me,ye,!0))!==null&&nt!==void 0?nt:zn)!==null&&Ve!==void 0?Ve:0;Ne=Dve({barGap:z,barCategoryGap:H,bandSize:xn!==ze?xn:ze,sizeList:ut[we],maxBarSize:zn}),xn!==ze&&(Ne=Ne.map(function(ir){return be(be({},ir),{},{position:be(be({},ir.position),{},{offset:ir.position.offset-xn/2})})}))}var Re=te&&te.type&&te.type.getComposedData;Re&&K.push({props:be(be({},Re(be(be({},xe),{},{displayedData:L,props:D,dataKey:W,item:te,bandSize:ze,barPosition:Ne,offset:A,stackedData:de,layout:I,dataStartIndex:R,dataEndIndex:M}))),{},Qe(Qe(Qe({key:te.key||"item-".concat(ne)},J,xe[J]),q,xe[q]),"animationId",T)),childIndex:Rce(te,D.children),item:te})}),K},x=function(D,C){var j=D.props,P=D.dataStartIndex,A=D.dataEndIndex,T=D.updateId;if(!D4({props:j}))return null;var R=j.children,M=j.layout,$=j.stackOffset,I=j.data,z=j.reverseStackOrder,H=w8(M),G=H.numericAxisName,Y=H.cateAxisName,J=Ua(R,r),q=Lve(I,J,"".concat(G,"Id"),"".concat(Y,"Id"),$,z),U=f.reduce(function(Q,W){var ae="".concat(W.axisType,"Map");return be(be({},Q),{},Qe({},ae,nSe(j,be(be({},W),{},{graphicalItems:J,stackGroups:W.axisType===G&&q,dataStartIndex:P,dataEndIndex:A}))))},{}),K=iSe(be(be({},U),{},{props:j,graphicalItems:J}),C?.legendBBox);Object.keys(U).forEach(function(Q){U[Q]=g(j,U[Q],K,Q.replace("Map",""),n)});var te=U["".concat(Y,"Map")],ne=rSe(te),L=y(j,be(be({},U),{},{dataStartIndex:P,dataEndIndex:A,updateId:T,graphicalItems:J,stackGroups:q,offset:K}));return be(be({formattedGraphicalItems:L,graphicalItems:J,offset:K,stackGroups:q},ne),U)},S=(function(w){function D(C){var j,P,A;return $Ee(this,D),A=UEe(this,D,[C]),Qe(A,"eventEmitterSymbol",Symbol("rechartsEventEmitter")),Qe(A,"accessibilityManager",new AEe),Qe(A,"handleLegendBBoxUpdate",function(T){if(T){var R=A.state,M=R.dataStartIndex,$=R.dataEndIndex,I=R.updateId;A.setState(be({legendBBox:T},x({props:A.props,dataStartIndex:M,dataEndIndex:$,updateId:I},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=jce(T),M=va(A.props,"".concat(R));if(R&&Xe(M)){var $,I;/.*touch.*/i.test(R)?I=A.getMouseInfo(T.changedTouches[0]):I=A.getMouseInfo(T),M(($=I)!==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&&BD.emit(zD,A.props.syncId,T,A.eventEmitterSymbol)}),Qe(A,"applySyncEvent",function(T){var R=A.props,M=R.layout,$=R.syncMethod,I=A.state.updateId,z=T.dataStartIndex,H=T.dataEndIndex;if(T.dataStartIndex!==void 0||T.dataEndIndex!==void 0)A.setState(be({dataStartIndex:z,dataEndIndex:H},x({props:A.props,dataStartIndex:z,dataEndIndex:H,updateId:I},A.state)));else if(T.activeTooltipIndex!==void 0){var G=T.chartX,Y=T.chartY,J=T.activeTooltipIndex,q=A.state,U=q.offset,K=q.tooltipTicks;if(!U)return;if(typeof $=="function")J=$(K,T);else if($==="value"){J=-1;for(var te=0;te<K.length;te++)if(K[te].value===T.activeLabel){J=te;break}}var ne=be(be({},U),{},{x:U.left,y:U.top}),L=Math.min(G,ne.x+ne.width),Q=Math.min(Y,ne.y+ne.height),W=K[J]&&K[J].value,ae=ZT(A.state,A.props.data,J),ge=K[J]?{x:M==="horizontal"?K[J].coordinate:L,y:M==="horizontal"?Q:K[J].coordinate}:UK;A.setState(be(be({},T),{},{activeLabel:W,activeCoordinate:ge,activePayload:ae,activeTooltipIndex:J}))}else A.setState(T)}),Qe(A,"renderCursor",function(T){var R,M=A.state,$=M.isTooltipActive,I=M.activeCoordinate,z=M.activePayload,H=M.offset,G=M.activeTooltipIndex,Y=M.tooltipAxisBandSize,J=A.getTooltipEventType(),q=(R=T.props.active)!==null&&R!==void 0?R:$,U=A.props.layout,K=T.key||"_recharts-cursor";return F.createElement(REe,{key:K,activeCoordinate:I,activePayload:z,activeTooltipIndex:G,chartName:n,element:T,isActive:q,layout:U,offset:H,tooltipAxisBandSize:Y,tooltipEventType:J})}),Qe(A,"renderPolarAxis",function(T,R,M){var $=va(T,"type.axisType"),I=va(A.state,"".concat($,"Map")),z=T.type.defaultProps,H=z!==void 0?be(be({},z),T.props):T.props,G=I&&I[H["".concat($,"Id")]];return _.cloneElement(T,be(be({},G),{},{className:it($,G.className),key:T.key||"".concat(R,"-").concat(M),ticks:ts(G,!0)}))}),Qe(A,"renderPolarGrid",function(T){var R=T.props,M=R.radialLines,$=R.polarAngles,I=R.polarRadius,z=A.state,H=z.radiusAxisMap,G=z.angleAxisMap,Y=ll(H),J=ll(G),q=J.cx,U=J.cy,K=J.innerRadius,te=J.outerRadius;return _.cloneElement(T,{polarAngles:Array.isArray($)?$:ts(J,!0).map(function(ne){return ne.coordinate}),polarRadius:Array.isArray(I)?I:ts(Y,!0).map(function(ne){return ne.coordinate}),cx:q,cy:U,innerRadius:K,outerRadius:te,key:T.key||"polar-grid",radialLines:M})}),Qe(A,"renderLegend",function(){var T=A.state.formattedGraphicalItems,R=A.props,M=R.children,$=R.width,I=R.height,z=A.props.margin||{},H=$-(z.left||0)-(z.right||0),G=bF({children:M,formattedGraphicalItems:T,legendWidth:H,legendContent:m});if(!G)return null;var Y=G.item,J=b8(G,PEe);return _.cloneElement(Y,be(be({},J),{},{chartWidth:$,chartHeight:I,margin:z,onBBoxUpdate:A.handleLegendBBoxUpdate}))}),Qe(A,"renderTooltip",function(){var T,R=A.props,M=R.children,$=R.accessibilityLayer,I=da(M,si);if(!I)return null;var z=A.state,H=z.isTooltipActive,G=z.activeCoordinate,Y=z.activePayload,J=z.activeLabel,q=z.offset,U=(T=I.props.active)!==null&&T!==void 0?T:H;return _.cloneElement(I,{viewBox:be(be({},q),{},{x:q.left,y:q.top}),active:U,label:J,payload:U?Y:[],coordinate:G,accessibilityLayer:$})}),Qe(A,"renderBrush",function(T){var R=A.props,M=R.margin,$=R.data,I=A.state,z=I.offset,H=I.dataStartIndex,G=I.dataEndIndex,Y=I.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:z.left,y:Oe(T.props.y)?T.props.y:z.top+z.height+z.brushBottom-(M.bottom||0),width:Oe(T.props.width)?T.props.width:z.width,startIndex:H,endIndex:G,updateId:"brush-".concat(Y)})}),Qe(A,"renderReferenceElement",function(T,R,M){if(!T)return null;var $=A,I=$.clipPathId,z=A.state,H=z.xAxisMap,G=z.yAxisMap,Y=z.offset,J=T.type.defaultProps||{},q=T.props,U=q.xAxisId,K=U===void 0?J.xAxisId:U,te=q.yAxisId,ne=te===void 0?J.yAxisId:te;return _.cloneElement(T,{key:T.key||"".concat(R,"-").concat(M),xAxis:H[K],yAxis:G[ne],viewBox:{x:Y.left,y:Y.top,width:Y.width,height:Y.height},clipPathId:I})}),Qe(A,"renderActivePoints",function(T){var R=T.item,M=T.activePoint,$=T.basePoint,I=T.childIndex,z=T.isRange,H=[],G=R.props.key,Y=R.item.type.defaultProps!==void 0?be(be({},R.item.type.defaultProps),R.item.props):R.item.props,J=Y.activeDot,q=Y.dataKey,U=be(be({index:I,dataKey:q,cx:M.x,cy:M.y,r:4,fill:zj(R.item),strokeWidth:2,stroke:"#fff",payload:M.payload,value:M.value},Fe(J,!1)),fy(J));return H.push(D.renderActiveDot(J,U,"".concat(G,"-activePoint-").concat(I))),$?H.push(D.renderActiveDot(J,be(be({},U),{},{cx:$.x,cy:$.y}),"".concat(G,"-basePoint-").concat(I))):z&&H.push(null),H}),Qe(A,"renderGraphicChild",function(T,R,M){var $=A.filterFormatItem(T,R,M);if(!$)return null;var I=A.getTooltipEventType(),z=A.state,H=z.isTooltipActive,G=z.tooltipAxis,Y=z.activeTooltipIndex,J=z.activeLabel,q=A.props.children,U=da(q,si),K=$.props,te=K.points,ne=K.isRange,L=K.baseLine,Q=$.item.type.defaultProps!==void 0?be(be({},$.item.type.defaultProps),$.item.props):$.item.props,W=Q.activeDot,ae=Q.hide,ge=Q.activeBar,we=Q.activeShape,ue=!!(!ae&&H&&U&&(W||ge||we)),xe={};I!=="axis"&&U&&U.props.trigger==="click"?xe={onClick:Mb(A.handleItemMouseEnter,T.props.onClick)}:I!=="axis"&&(xe={onMouseLeave:Mb(A.handleItemMouseLeave,T.props.onMouseLeave),onMouseEnter:Mb(A.handleItemMouseEnter,T.props.onMouseEnter)});var me=_.cloneElement(T,be(be({},$.props),xe));function ye(St){return typeof G.dataKey=="function"?G.dataKey(St.payload):null}if(ue)if(Y>=0){var de,ie;if(G.dataKey&&!G.allowDuplicatedCategory){var ze=typeof G.dataKey=="function"?ye:"payload.".concat(G.dataKey.toString());de=dy(te,ze,J),ie=ne&&L&&dy(L,ze,J)}else de=te?.[Y],ie=ne&&L&&L[Y];if(we||ge){var Ne=T.props.activeIndex!==void 0?T.props.activeIndex:Y;return[_.cloneElement(T,be(be(be({},$.props),xe),{},{activeIndex:Ne})),null,null]}if(!ot(de))return[me].concat(cf(A.renderActivePoints({item:$,activePoint:de,basePoint:ie,childIndex:Y,isRange:ne})))}else{var ut,Ve=(ut=A.getItemByXY(A.state.activeCoordinate))!==null&&ut!==void 0?ut:{graphicalItem:me},nt=Ve.graphicalItem,zn=nt.item,xn=zn===void 0?T:zn,Re=nt.childIndex,ir=be(be(be({},$.props),xe),{},{activeIndex:Re});return[_.cloneElement(xn,ir),null,null]}return ne?[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:Nf("recharts"),"-clip"),A.throttleTriggeredAfterMouseMove=vH(A.triggeredAfterMouseMove,(P=C.throttleDelay)!==null&&P!==void 0?P:1e3/60),A.state={},A}return FEe(D,w),zEe(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 I=this.state.tooltipTicks[$]&&this.state.tooltipTicks[$].value,z=ZT(this.state,A,$,I),H=this.state.tooltipTicks[$].coordinate,G=(this.state.offset.top+T)/2,Y=R==="horizontal",J=Y?{x:H,y:G}:{y:H,x:G},q=this.state.formattedGraphicalItems.find(function(K){var te=K.item;return te.type.name==="Scatter"});q&&(J=be(be({},J),q.props.points[$].tooltipPosition),z=q.props.points[$].tooltipPayload);var U={activeTooltipIndex:$,isTooltipActive:!0,activeLabel:I,activePayload:z,activeCoordinate:J};this.setState(U),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){kC([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=bme(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 I=this.state,z=I.xAxisMap,H=I.yAxisMap,G=this.getTooltipEventType(),Y=x8(this.state,this.props.data,this.props.layout,$);if(G!=="axis"&&z&&H){var J=ll(z).scale,q=ll(H).scale,U=J&&J.invert?J.invert(R.chartX):null,K=q&&q.invert?q.invert(R.chartY):null;return be(be({},R),{},{xValue:U,yValue:K},Y)}return Y?be(be({},R),Y):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,I=R>=$.left&&R<=$.left+$.width&&M>=$.top&&M<=$.top+$.height;return I?{x:R,y:M}:null}var z=this.state,H=z.angleAxisMap,G=z.radiusAxisMap;if(H&&G){var Y=ll(H);return bB({x:R,y:M},Y)}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(){BD.on(zD,this.handleReceiveSyncEvent)}},{key:"removeListener",value:function(){BD.removeListener(zD,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 F.createElement("defs",null,F.createElement("clipPath",{id:j},F.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=v8(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=v8(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],I=$.props,z=$.item,H=z.type.defaultProps!==void 0?be(be({},z.type.defaultProps),z.props):z.props,G=ns(z.type);if(G==="Bar"){var Y=(I.data||[]).find(function(K){return Lxe(j,K)});if(Y)return{graphicalItem:$,payload:Y}}else if(G==="RadialBar"){var J=(I.data||[]).find(function(K){return bB(j,K)});if(J)return{graphicalItem:$,payload:J}}else if(f0($,T)||m0($,T)||Ep($,T)){var q=o1e({graphicalItem:$,activeTooltipItem:T,itemData:H.data}),U=H.activeIndex===void 0?q:H.activeIndex;return{graphicalItem:be(be({},$),{},{childIndex:U}),payload:Ep($,T)?H.data[q]:$.props.data[q]}}}return null}},{key:"render",value:function(){var j=this;if(!D4(this))return null;var P=this.props,A=P.children,T=P.className,R=P.width,M=P.height,$=P.style,I=P.compact,z=P.title,H=P.desc,G=b8(P,MEe),Y=Fe(G,!1);if(I)return F.createElement(J7,{state:this.state,width:this.props.width,height:this.props.height,clipPathId:this.clipPathId},F.createElement(LC,Od({},Y,{width:R,height:M,title:z,desc:H}),this.renderClipPath(),T4(A,this.renderMap)));if(this.props.accessibilityLayer){var J,q;Y.tabIndex=(J=this.props.tabIndex)!==null&&J!==void 0?J:0,Y.role=(q=this.props.role)!==null&&q!==void 0?q:"application",Y.onKeyDown=function(K){j.accessibilityManager.keyboardEvent(K)},Y.onFocus=function(){j.accessibilityManager.focus()}}var U=this.parseEventsOfWrapper();return F.createElement(J7,{state:this.state,width:this.props.width,height:this.props.height,clipPathId:this.clipPathId},F.createElement("div",Od({className:it("recharts-wrapper",T),style:be({position:"relative",cursor:"default",width:R,height:M},$)},U,{ref:function(te){j.container=te}}),F.createElement(LC,Od({},Y,{width:R,height:M,title:z,desc:H,style:WEe}),this.renderClipPath(),T4(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,I=D.dataStartIndex,z=D.dataEndIndex;if(D.updateId===void 0){var H=N8(w);return be(be(be({},H),{},{updateId:0},x(be(be({props:w},H),{},{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 G=N8(w),Y={chartX:D.chartX,chartY:D.chartY,isTooltipActive:D.isTooltipActive},J=be(be({},x8(D,j,R)),{},{updateId:D.updateId+1}),q=be(be(be({},G),Y),J);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(!kC(P,D.prevChildren)){var U,K,te,ne,L=da(P,Wd),Q=L&&(U=(K=L.props)===null||K===void 0?void 0:K.startIndex)!==null&&U!==void 0?U:I,W=L&&(te=(ne=L.props)===null||ne===void 0?void 0:ne.endIndex)!==null&&te!==void 0?te:z,ae=Q!==I||W!==z,ge=!ot(j),we=ge&&!ae?D.updateId:D.updateId+1;return be(be({updateId:we},x(be(be({props:w},D),{},{updateId:we,dataStartIndex:Q,dataEndIndex:W}),D)),{},{prevChildren:P,dataStartIndex:Q,dataEndIndex:W})}return null}),Qe(S,"renderActiveDot",function(w,D,C){var j;return _.isValidElement(w)?j=_.cloneElement(w,D):Xe(w)?j=w(D):j=F.createElement(s0,D),F.createElement(Dt,{className:"recharts-active-dot",key:C},j)});var N=_.forwardRef(function(D,C){return F.createElement(S,Od({},D,{ref:C}))});return N.displayName=S.displayName,N},sSe=HK({chartName:"PieChart",GraphicalChild:ps,validateTooltipEventTypes:["item"],defaultTooltipEventType:"item",legendContent:"children",axisComponents:[{axisType:"angleAxis",AxisComp:d0},{axisType:"radiusAxis",AxisComp:c0}],formatAxisMap:Qve,defaultProps:{layout:"centric",startAngle:0,endAngle:360,cx:"50%",cy:"50%",innerRadius:0,outerRadius:"80%"}}),lSe=HK({chartName:"AreaChart",GraphicalChild:so,axisComponents:[{axisType:"xAxis",AxisComp:y0},{axisType:"yAxis",AxisComp:x0}],formatAxisMap:cNe});const cSe={CN:"#3b82f6",HK:"#10b981",US:"#f59e0b",EU:"#8b5cf6",SG:"#ec4899",AE:"#f97316",ALL:"#6b7280"},uSe=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(Qz,{"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 dSe(){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:cSe[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:T_,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:Ch,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:aie,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(Qz,{"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(W$,{"data-loc":"client/src/pages/Dashboard.tsx:117",width:"100%",height:200,children:b.jsxDEV(lSe,{"data-loc":"client/src/pages/Dashboard.tsx:118",data:uSe,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(OK,{"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(y0,{"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(x0,{"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(W$,{"data-loc":"client/src/pages/Dashboard.tsx:149",width:"100%",height:140,children:b.jsxDEV(sSe,{"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(Qx,{"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(rie,{"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 E8(e,[t,n]){return Math.min(n,Math.max(t,e))}function FK(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 fSe=[" ","Enter","ArrowUp","ArrowDown"],mSe=[" ","Enter"],Qc="Select",[w0,E0,hSe]=B_(Qc),[Df]=ds(Qc,[hSe,hf]),S0=hf(),[pSe,Sl]=Df(Qc),[gSe,vSe]=Df(Qc),KK=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=S0(t),[w,D]=_.useState(null),[C,j]=_.useState(null),[P,A]=_.useState(!1),T=z_(m),[R,M]=kc({prop:r,defaultProp:o??!1,onChange:s,caller:Qc}),[$,I]=kc({prop:c,defaultProp:u,onChange:f,caller:Qc}),z=_.useRef(null),H=w?S||!!w.closest("form"):!0,[G,Y]=_.useState(new Set),J=Array.from(G).map(q=>q.props.value).join(";");return le.jsx(y_,{...N,children:le.jsxs(pSe,{required:x,scope:t,trigger:w,onTriggerChange:D,valueNode:C,onValueNodeChange:j,valueNodeHasChildren:P,onValueNodeHasChildrenChange:A,contentId:ro(),value:$,onValueChange:I,open:R,onOpenChange:M,dir:T,triggerPointerDownPosRef:z,disabled:y,children:[le.jsx(w0.Provider,{scope:t,children:le.jsx(gSe,{scope:e.__scopeSelect,onNativeOptionAdd:_.useCallback(q=>{Y(U=>new Set(U).add(q))},[]),onNativeOptionRemove:_.useCallback(q=>{Y(U=>{const K=new Set(U);return K.delete(q),K})},[]),children:n})}),H?le.jsxs(hG,{"aria-hidden":!0,required:x,tabIndex:-1,name:g,autoComplete:h,value:$,onChange:q=>I(q.target.value),disabled:y,form:S,children:[$===void 0?le.jsx("option",{value:""}):null,Array.from(G)]},J):null]})})};KK.displayName=Qc;var GK="SelectTrigger",YK=_.forwardRef((e,t)=>{const{__scopeSelect:n,disabled:r=!1,...o}=e,s=S0(n),c=Sl(GK,n),u=c.disabled||r,f=Mt(t,c.onTriggerChange),m=E0(n),g=_.useRef("touch"),[h,y,x]=gG(N=>{const w=m().filter(j=>!j.disabled),D=w.find(j=>j.value===c.value),C=vG(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 le.jsx(x_,{asChild:!0,...s,children:le.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":pG(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===" ")&&fSe.includes(N.key)&&(S(),N.preventDefault())})})})});YK.displayName=GK;var QK="SelectValue",XK=_.forwardRef((e,t)=>{const{__scopeSelect:n,className:r,style:o,children:s,placeholder:c="",...u}=e,f=Sl(QK,n),{onValueNodeHasChildrenChange:m}=f,g=s!==void 0,h=Mt(t,f.onValueNodeChange);return vr(()=>{m(g)},[m,g]),le.jsx(vt.span,{...u,ref:h,style:{pointerEvents:"none"},children:pG(f.value)?le.jsx(le.Fragment,{children:c}):s})});XK.displayName=QK;var bSe="SelectIcon",WK=_.forwardRef((e,t)=>{const{__scopeSelect:n,children:r,...o}=e;return le.jsx(vt.span,{"aria-hidden":!0,...o,ref:t,children:r||"▼"})});WK.displayName=bSe;var ySe="SelectPortal",ZK=e=>le.jsx(Ip,{asChild:!0,...e});ZK.displayName=ySe;var Xc="SelectContent",JK=_.forwardRef((e,t)=>{const n=Sl(Xc,e.__scopeSelect),[r,o]=_.useState();if(vr(()=>{o(new DocumentFragment)},[]),!n.open){const s=r;return s?Pp.createPortal(le.jsx(eG,{scope:e.__scopeSelect,children:le.jsx(w0.Slot,{scope:e.__scopeSelect,children:le.jsx("div",{children:e.children})})}),s):null}return le.jsx(tG,{...e,ref:t})});JK.displayName=Xc;var oi=10,[eG,Al]=Df(Xc),xSe="SelectContentImpl",NSe=Pc("SelectContent.RemoveScroll"),tG=_.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,ue=>P(ue)),[M,$]=_.useState(null),[I,z]=_.useState(null),H=E0(n),[G,Y]=_.useState(!1),J=_.useRef(!1);_.useEffect(()=>{if(j)return k_(j)},[j]),M_();const q=_.useCallback(ue=>{const[xe,...me]=H().map(ie=>ie.ref.current),[ye]=me.slice(-1),de=document.activeElement;for(const ie of ue)if(ie===de||(ie?.scrollIntoView({block:"nearest"}),ie===xe&&A&&(A.scrollTop=0),ie===ye&&A&&(A.scrollTop=A.scrollHeight),ie?.focus(),document.activeElement!==de))return},[H,A]),U=_.useCallback(()=>q([M,j]),[q,M,j]);_.useEffect(()=>{G&&U()},[G,U]);const{onOpenChange:K,triggerPointerDownPosRef:te}=C;_.useEffect(()=>{if(j){let ue={x:0,y:0};const xe=ye=>{ue={x:Math.abs(Math.round(ye.pageX)-(te.current?.x??0)),y:Math.abs(Math.round(ye.pageY)-(te.current?.y??0))}},me=ye=>{ue.x<=10&&ue.y<=10?ye.preventDefault():j.contains(ye.target)||K(!1),document.removeEventListener("pointermove",xe),te.current=null};return te.current!==null&&(document.addEventListener("pointermove",xe),document.addEventListener("pointerup",me,{capture:!0,once:!0})),()=>{document.removeEventListener("pointermove",xe),document.removeEventListener("pointerup",me,{capture:!0})}}},[j,K,te]),_.useEffect(()=>{const ue=()=>K(!1);return window.addEventListener("blur",ue),window.addEventListener("resize",ue),()=>{window.removeEventListener("blur",ue),window.removeEventListener("resize",ue)}},[K]);const[ne,L]=gG(ue=>{const xe=H().filter(de=>!de.disabled),me=xe.find(de=>de.ref.current===document.activeElement),ye=vG(xe,ue,me);ye&&setTimeout(()=>ye.ref.current.focus())}),Q=_.useCallback((ue,xe,me)=>{const ye=!J.current&&!me;(C.value!==void 0&&C.value===xe||ye)&&($(ue),ye&&(J.current=!0))},[C.value]),W=_.useCallback(()=>j?.focus(),[j]),ae=_.useCallback((ue,xe,me)=>{const ye=!J.current&&!me;(C.value!==void 0&&C.value===xe||ye)&&z(ue)},[C.value]),ge=r==="popper"?JT:nG,we=ge===JT?{side:u,sideOffset:f,align:m,alignOffset:g,arrowPadding:h,collisionBoundary:y,collisionPadding:x,sticky:S,hideWhenDetached:N,avoidCollisions:w}:{};return le.jsx(eG,{scope:n,content:j,viewport:A,onViewportChange:T,itemRefCallback:Q,selectedItem:M,onItemLeave:W,itemTextRefCallback:ae,focusSelectedItem:U,selectedItemText:I,position:r,isPositioned:G,searchRef:ne,children:le.jsx(Rx,{as:NSe,allowPinchZoom:!0,children:le.jsx(_x,{asChild:!0,trapped:C.open,onMountAutoFocus:ue=>{ue.preventDefault()},onUnmountAutoFocus:Le(o,ue=>{C.trigger?.focus({preventScroll:!0}),ue.preventDefault()}),children:le.jsx(Mp,{asChild:!0,disableOutsidePointerEvents:!0,onEscapeKeyDown:s,onPointerDownOutside:c,onFocusOutside:ue=>ue.preventDefault(),onDismiss:()=>C.onOpenChange(!1),children:le.jsx(ge,{role:"listbox",id:C.contentId,"data-state":C.open?"open":"closed",dir:C.dir,onContextMenu:ue=>ue.preventDefault(),...D,...we,onPlaced:()=>Y(!0),ref:R,style:{display:"flex",flexDirection:"column",outline:"none",...D.style},onKeyDown:Le(D.onKeyDown,ue=>{const xe=ue.ctrlKey||ue.altKey||ue.metaKey;if(ue.key==="Tab"&&ue.preventDefault(),!xe&&ue.key.length===1&&L(ue.key),["ArrowUp","ArrowDown","Home","End"].includes(ue.key)){let ye=H().filter(de=>!de.disabled).map(de=>de.ref.current);if(["ArrowUp","End"].includes(ue.key)&&(ye=ye.slice().reverse()),["ArrowUp","ArrowDown"].includes(ue.key)){const de=ue.target,ie=ye.indexOf(de);ye=ye.slice(ie+1)}setTimeout(()=>q(ye)),ue.preventDefault()}})})})})})})});tG.displayName=xSe;var wSe="SelectItemAlignedPosition",nG=_.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=E0(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(),I=D.getBoundingClientRect();if(s.dir!=="rtl"){const de=I.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=E8(ie,[oi,Math.max(oi,Ve-ut)]);u.style.minWidth=Ne+"px",u.style.left=nt+"px"}else{const de=M.right-I.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=E8(ie,[oi,Math.max(oi,Ve-ut)]);u.style.minWidth=Ne+"px",u.style.right=nt+"px"}const z=y(),H=window.innerHeight-oi*2,G=N.scrollHeight,Y=window.getComputedStyle(m),J=parseInt(Y.borderTopWidth,10),q=parseInt(Y.paddingTop,10),U=parseInt(Y.borderBottomWidth,10),K=parseInt(Y.paddingBottom,10),te=J+q+G+K+U,ne=Math.min(w.offsetHeight*5,te),L=window.getComputedStyle(N),Q=parseInt(L.paddingTop,10),W=parseInt(L.paddingBottom,10),ae=R.top+R.height/2-oi,ge=H-ae,we=w.offsetHeight/2,ue=w.offsetTop+we,xe=J+q+ue,me=te-xe;if(xe<=ae){const de=z.length>0&&w===z[z.length-1].ref.current;u.style.bottom="0px";const ie=m.clientHeight-N.offsetTop-N.offsetHeight,ze=Math.max(ge,we+(de?W:0)+ie+U),Ne=xe+ze;u.style.height=Ne+"px"}else{const de=z.length>0&&w===z[0].ref.current;u.style.top="0px";const ze=Math.max(ae,J+N.offsetTop+(de?Q:0)+we)+me;u.style.height=ze+"px",N.scrollTop=xe-ae+N.offsetTop}u.style.margin=`${oi}px 0`,u.style.minHeight=ne+"px",u.style.maxHeight=H+"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 le.jsx(SSe,{scope:n,contentWrapper:u,shouldExpandOnScrollRef:x,onScrollButtonChange:T,children:le.jsx("div",{ref:f,style:{display:"flex",flexDirection:"column",position:"fixed",zIndex:P},children:le.jsx(vt.div,{...o,ref:h,style:{boxSizing:"border-box",maxHeight:"100%",...o.style}})})})});nG.displayName=wSe;var ESe="SelectPopperPosition",JT=_.forwardRef((e,t)=>{const{__scopeSelect:n,align:r="start",collisionPadding:o=oi,...s}=e,c=S0(n);return le.jsx(N_,{...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)"}})});JT.displayName=ESe;var[SSe,Zj]=Df(Xc,{}),e_="SelectViewport",rG=_.forwardRef((e,t)=>{const{__scopeSelect:n,nonce:r,...o}=e,s=Al(e_,n),c=Zj(e_,n),u=Mt(t,s.onViewportChange),f=_.useRef(0);return le.jsxs(le.Fragment,{children:[le.jsx("style",{dangerouslySetInnerHTML:{__html:"[data-radix-select-viewport]{scrollbar-width:none;-ms-overflow-style:none;-webkit-overflow-scrolling:touch;}[data-radix-select-viewport]::-webkit-scrollbar{display:none}"},nonce:r}),le.jsx(w0.Slot,{scope:n,children:le.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})})})]})});rG.displayName=e_;var aG="SelectGroup",[ASe,OSe]=Df(aG),DSe=_.forwardRef((e,t)=>{const{__scopeSelect:n,...r}=e,o=ro();return le.jsx(ASe,{scope:n,id:o,children:le.jsx(vt.div,{role:"group","aria-labelledby":o,...r,ref:t})})});DSe.displayName=aG;var iG="SelectLabel",CSe=_.forwardRef((e,t)=>{const{__scopeSelect:n,...r}=e,o=OSe(iG,n);return le.jsx(vt.div,{id:o.id,...r,ref:t})});CSe.displayName=iG;var ux="SelectItem",[TSe,oG]=Df(ux),sG=_.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 le.jsx(TSe,{scope:n,value:r,disabled:o,textId:N,isSelected:m,onItemTextChange:_.useCallback(C=>{h(j=>j||(C?.textContent??"").trim())},[]),children:le.jsx(w0.ItemSlot,{scope:n,value:r,disabled:o,textValue:g,children:le.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===" "||(mSe.includes(C.key)&&D(),C.key===" "&&C.preventDefault())})})})})});sG.displayName=ux;var Eh="SelectItemText",lG=_.forwardRef((e,t)=>{const{__scopeSelect:n,className:r,style:o,...s}=e,c=Sl(Eh,n),u=Al(Eh,n),f=oG(Eh,n),m=vSe(Eh,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(()=>le.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]),le.jsxs(le.Fragment,{children:[le.jsx(vt.span,{id:f.textId,...s,ref:y}),f.isSelected&&c.valueNode&&!c.valueNodeHasChildren?Pp.createPortal(s.children,c.valueNode):null]})});lG.displayName=Eh;var cG="SelectItemIndicator",uG=_.forwardRef((e,t)=>{const{__scopeSelect:n,...r}=e;return oG(cG,n).isSelected?le.jsx(vt.span,{"aria-hidden":!0,...r,ref:t}):null});uG.displayName=cG;var t_="SelectScrollUpButton",dG=_.forwardRef((e,t)=>{const n=Al(t_,e.__scopeSelect),r=Zj(t_,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?le.jsx(mG,{...e,ref:c,onAutoScroll:()=>{const{viewport:u,selectedItem:f}=n;u&&f&&(u.scrollTop=u.scrollTop-f.offsetHeight)}}):null});dG.displayName=t_;var n_="SelectScrollDownButton",fG=_.forwardRef((e,t)=>{const n=Al(n_,e.__scopeSelect),r=Zj(n_,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?le.jsx(mG,{...e,ref:c,onAutoScroll:()=>{const{viewport:u,selectedItem:f}=n;u&&f&&(u.scrollTop=u.scrollTop+f.offsetHeight)}}):null});fG.displayName=n_;var mG=_.forwardRef((e,t)=>{const{__scopeSelect:n,onAutoScroll:r,...o}=e,s=Al("SelectScrollButton",n),c=_.useRef(null),u=E0(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]),le.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()})})}),_Se="SelectSeparator",jSe=_.forwardRef((e,t)=>{const{__scopeSelect:n,...r}=e;return le.jsx(vt.div,{"aria-hidden":!0,...r,ref:t})});jSe.displayName=_Se;var r_="SelectArrow",RSe=_.forwardRef((e,t)=>{const{__scopeSelect:n,...r}=e,o=S0(n),s=Sl(r_,n),c=Al(r_,n);return s.open&&c.position==="popper"?le.jsx(w_,{...o,...r,ref:t}):null});RSe.displayName=r_;var PSe="SelectBubbleInput",hG=_.forwardRef(({__scopeSelect:e,value:t,...n},r)=>{const o=_.useRef(null),s=Mt(r,o),c=FK(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]),le.jsx(vt.select,{...n,style:{...vz,...n.style},ref:s,defaultValue:t})});hG.displayName=PSe;function pG(e){return e===""||e===void 0}function gG(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 vG(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=MSe(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 MSe(e,t){return e.map((n,r)=>e[(t+r)%e.length])}var kSe=KK,ISe=YK,LSe=XK,VSe=WK,$Se=ZK,BSe=JK,zSe=rG,USe=sG,qSe=lG,HSe=uG,FSe=dG,KSe=fG;function mr({...e}){return b.jsxDEV(kSe,{"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(LSe,{"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(ISe,{"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(VSe,{"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($Se,{"data-loc":"client/src/components/ui/select.tsx:59",children:b.jsxDEV(BSe,{"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(GSe,{"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(zSe,{"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(YSe,{"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(USe,{"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(HSe,{"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(qSe,{"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 GSe({className:e,...t}){return b.jsxDEV(FSe,{"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(C_,{"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 YSe({className:e,...t}){return b.jsxDEV(KSe,{"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=$_(),{onCompositionStart:c,onCompositionEnd:u,onKeyDown:f}=_U({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 A0="Switch",[QSe]=ds(A0),[XSe,WSe]=QSe(A0),bG=_.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:A0});return le.jsxs(XSe,{scope:n,checked:D,disabled:u,children:[le.jsx(vt.button,{type:"button",role:"switch","aria-checked":D,"aria-required":c,"data-state":wG(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&&le.jsx(NG,{control:y,bubbles:!N.current,name:r,value:f,checked:D,required:c,disabled:u,form:g,style:{transform:"translateX(-100%)"}})]})});bG.displayName=A0;var yG="SwitchThumb",xG=_.forwardRef((e,t)=>{const{__scopeSwitch:n,...r}=e,o=WSe(yG,n);return le.jsx(vt.span,{"data-state":wG(o.checked),"data-disabled":o.disabled?"":void 0,...r,ref:t})});xG.displayName=yG;var ZSe="SwitchBubbleInput",NG=_.forwardRef(({__scopeSwitch:e,control:t,checked:n,bubbles:r=!0,...o},s)=>{const c=_.useRef(null),u=Mt(c,s),f=FK(n),m=sz(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]),le.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}})});NG.displayName=ZSe;function wG(e){return e?"checked":"unchecked"}var JSe=bG,eAe=xG;function S8({className:e,...t}){return b.jsxDEV(JSe,{"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(eAe,{"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 A8=["CN","HK","US","EU","SG","AE","ALL"],O8=["RealEstate","Securities","DigitalToken","Commodity","IntellectualProperty","Equipment","ALL"],qD={zh:"🇨🇳",en:"🇺🇸",ar:"🇸🇦",ja:"🇯🇵",ko:"🇰🇷",fr:"🇫🇷",ru:"🇷🇺"},HD={zh:"中文",en:"English",ar:"العربية",ja:"日本語",ko:"한국어",fr:"Français",ru:"Русский"};function tAe(){const{t:e,i18n:t}=yx(),n=t.language.split("-")[0],r=["zh","en","ar","ja","ko","fr","ru"].includes(n)?n:"zh",[o,s]=_.useState(""),[c,u]=_.useState(""),[f,m]=_.useState(""),[g,h]=_.useState(1),[y,x]=_.useState(!1),[S,N]=_.useState(null),[w,D]=_.useState(null),[C,j]=_.useState({jurisdiction:"",assetType:"",ruleName:"",description:"",required:!0,tags:"",sourceLang:"zh",autoTranslate:!0}),P=et.useUtils(),{data:A,isLoading:T,refetch:R}=et.knowledgeBase.list.useQuery({jurisdiction:o||void 0,assetType:c||void 0,status:f||void 0,page:g,pageSize:15,lang:r}),M=et.knowledgeBase.create.useMutation({onSuccess:()=>{gt.success(e("knowledgeBase.ruleCreated","规则创建成功,AI翻译已自动生成")),x(!1),P.knowledgeBase.list.invalidate(),j({jurisdiction:"",assetType:"",ruleName:"",description:"",required:!0,tags:"",sourceLang:"zh",autoTranslate:!0})},onError:U=>gt.error(U.message)}),$=et.knowledgeBase.toggleStatus.useMutation({onSuccess:()=>{gt.success(e("common.statusUpdated","状态已更新")),P.knowledgeBase.list.invalidate()},onError:U=>gt.error(U.message)}),I=et.knowledgeBase.delete.useMutation({onSuccess:()=>{gt.success(e("common.deleted","规则已删除")),P.knowledgeBase.list.invalidate()},onError:U=>gt.error(U.message)}),z=et.knowledgeBase.translateRule.useMutation({onSuccess:U=>{gt.success(e("knowledgeBase.translateSuccess","AI翻译完成,已更新七种语言")),P.knowledgeBase.list.invalidate(),D(null)},onError:U=>{gt.error(U.message),D(null)}}),H=et.knowledgeBase.migrateAllToMultiLang.useMutation({onSuccess:U=>{gt.success(`批量翻译完成,已迁移 ${U.migratedCount} 条规则`),P.knowledgeBase.list.invalidate()},onError:U=>gt.error(U.message)}),G=A?.items||[],Y=A?.total||0,J=Math.ceil(Y/15),q=U=>{D(U),z.mutate({id:U})};return b.jsxDEV(O_,{"data-loc":"client/src/pages/KnowledgeBase.tsx:100",children:b.jsxDEV("div",{"data-loc":"client/src/pages/KnowledgeBase.tsx:101",className:"p-6 space-y-5",children:[b.jsxDEV("div",{"data-loc":"client/src/pages/KnowledgeBase.tsx:102",className:"flex items-center justify-between",children:[b.jsxDEV("div",{"data-loc":"client/src/pages/KnowledgeBase.tsx:103",children:[b.jsxDEV("h1",{"data-loc":"client/src/pages/KnowledgeBase.tsx:104",className:"text-2xl font-bold nac-gradient-text",children:e("nav.knowledgeBase","知识库管理")},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/KnowledgeBase.tsx",lineNumber:104,columnNumber:13},this),b.jsxDEV("p",{"data-loc":"client/src/pages/KnowledgeBase.tsx:105",className:"text-sm text-muted-foreground mt-0.5",children:e("knowledgeBase.subtitle","管理合规规则、法规条文与交易细则 — 支持七种语言")},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/KnowledgeBase.tsx",lineNumber:105,columnNumber:13},this)]},void 0,!0,{fileName:"/home/ubuntu/nac-admin/client/src/pages/KnowledgeBase.tsx",lineNumber:103,columnNumber:11},this),b.jsxDEV("div",{"data-loc":"client/src/pages/KnowledgeBase.tsx:107",className:"flex items-center gap-2",children:[b.jsxDEV(DE,{"data-loc":"client/src/pages/KnowledgeBase.tsx:108",children:[b.jsxDEV(CE,{"data-loc":"client/src/pages/KnowledgeBase.tsx:109",asChild:!0,children:b.jsxDEV(rt,{"data-loc":"client/src/pages/KnowledgeBase.tsx:110",variant:"outline",size:"sm",onClick:()=>H.mutate(),disabled:H.isPending,className:"border-border/50",children:[H.isPending?b.jsxDEV(_r,{"data-loc":"client/src/pages/KnowledgeBase.tsx:116",className:"w-4 h-4 mr-1.5 animate-spin"},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/KnowledgeBase.tsx",lineNumber:116,columnNumber:48},this):b.jsxDEV(Ic,{"data-loc":"client/src/pages/KnowledgeBase.tsx:116",className:"w-4 h-4 mr-1.5"},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/KnowledgeBase.tsx",lineNumber:116,columnNumber:152},this),e("knowledgeBase.batchTranslate","批量AI翻译")]},void 0,!0,{fileName:"/home/ubuntu/nac-admin/client/src/pages/KnowledgeBase.tsx",lineNumber:110,columnNumber:17},this)},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/KnowledgeBase.tsx",lineNumber:109,columnNumber:15},this),b.jsxDEV(TE,{"data-loc":"client/src/pages/KnowledgeBase.tsx:120",children:"为所有缺少多语言翻译的规则自动生成七语言版本"},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/KnowledgeBase.tsx",lineNumber:120,columnNumber:15},this)]},void 0,!0,{fileName:"/home/ubuntu/nac-admin/client/src/pages/KnowledgeBase.tsx",lineNumber:108,columnNumber:13},this),b.jsxDEV(rt,{"data-loc":"client/src/pages/KnowledgeBase.tsx:122",variant:"outline",size:"sm",onClick:()=>R(),className:"border-border/50",children:[b.jsxDEV(eu,{"data-loc":"client/src/pages/KnowledgeBase.tsx:123",className:"w-4 h-4 mr-1.5"},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/KnowledgeBase.tsx",lineNumber:123,columnNumber:15},this),e("common.refresh","刷新")]},void 0,!0,{fileName:"/home/ubuntu/nac-admin/client/src/pages/KnowledgeBase.tsx",lineNumber:122,columnNumber:13},this),b.jsxDEV($c,{"data-loc":"client/src/pages/KnowledgeBase.tsx:125",open:y,onOpenChange:x,children:[b.jsxDEV(Kh,{"data-loc":"client/src/pages/KnowledgeBase.tsx:126",asChild:!0,children:b.jsxDEV(rt,{"data-loc":"client/src/pages/KnowledgeBase.tsx:127",size:"sm",className:"nac-gradient text-white",children:[b.jsxDEV(Vp,{"data-loc":"client/src/pages/KnowledgeBase.tsx:128",className:"w-4 h-4 mr-1.5"},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/KnowledgeBase.tsx",lineNumber:128,columnNumber:19},this),e("knowledgeBase.addRule","新增规则")]},void 0,!0,{fileName:"/home/ubuntu/nac-admin/client/src/pages/KnowledgeBase.tsx",lineNumber:127,columnNumber:17},this)},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/KnowledgeBase.tsx",lineNumber:126,columnNumber:15},this),b.jsxDEV(Bc,{"data-loc":"client/src/pages/KnowledgeBase.tsx:131",className:"bg-card border-border/50 max-w-lg",children:[b.jsxDEV(zc,{"data-loc":"client/src/pages/KnowledgeBase.tsx:132",children:b.jsxDEV(Uc,{"data-loc":"client/src/pages/KnowledgeBase.tsx:133",children:e("knowledgeBase.createRule","新增合规规则")},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/KnowledgeBase.tsx",lineNumber:133,columnNumber:19},this)},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/KnowledgeBase.tsx",lineNumber:132,columnNumber:17},this),b.jsxDEV("div",{"data-loc":"client/src/pages/KnowledgeBase.tsx:135",className:"space-y-4 mt-2",children:[b.jsxDEV("div",{"data-loc":"client/src/pages/KnowledgeBase.tsx:136",className:"grid grid-cols-2 gap-3",children:[b.jsxDEV("div",{"data-loc":"client/src/pages/KnowledgeBase.tsx:137",className:"space-y-1.5",children:[b.jsxDEV(Ct,{"data-loc":"client/src/pages/KnowledgeBase.tsx:138",className:"text-xs",children:e("knowledgeBase.jurisdiction","司法辖区")},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/KnowledgeBase.tsx",lineNumber:138,columnNumber:23},this),b.jsxDEV(mr,{"data-loc":"client/src/pages/KnowledgeBase.tsx:139",value:C.jurisdiction,onValueChange:U=>j(K=>({...K,jurisdiction:U})),children:[b.jsxDEV(pr,{"data-loc":"client/src/pages/KnowledgeBase.tsx:140",className:"bg-input border-border/50 h-9",children:b.jsxDEV(hr,{"data-loc":"client/src/pages/KnowledgeBase.tsx:140",placeholder:"选择辖区"},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/KnowledgeBase.tsx",lineNumber:140,columnNumber:132},this)},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/KnowledgeBase.tsx",lineNumber:140,columnNumber:25},this),b.jsxDEV(gr,{"data-loc":"client/src/pages/KnowledgeBase.tsx:141",className:"bg-card border-border/50",children:A8.map(U=>b.jsxDEV(_t,{"data-loc":"client/src/pages/KnowledgeBase.tsx:142",value:U,children:U},U,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/KnowledgeBase.tsx",lineNumber:142,columnNumber:51},this))},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/KnowledgeBase.tsx",lineNumber:141,columnNumber:25},this)]},void 0,!0,{fileName:"/home/ubuntu/nac-admin/client/src/pages/KnowledgeBase.tsx",lineNumber:139,columnNumber:23},this)]},void 0,!0,{fileName:"/home/ubuntu/nac-admin/client/src/pages/KnowledgeBase.tsx",lineNumber:137,columnNumber:21},this),b.jsxDEV("div",{"data-loc":"client/src/pages/KnowledgeBase.tsx:146",className:"space-y-1.5",children:[b.jsxDEV(Ct,{"data-loc":"client/src/pages/KnowledgeBase.tsx:147",className:"text-xs",children:e("knowledgeBase.assetType","资产类型")},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/KnowledgeBase.tsx",lineNumber:147,columnNumber:23},this),b.jsxDEV(mr,{"data-loc":"client/src/pages/KnowledgeBase.tsx:148",value:C.assetType,onValueChange:U=>j(K=>({...K,assetType:U})),children:[b.jsxDEV(pr,{"data-loc":"client/src/pages/KnowledgeBase.tsx:149",className:"bg-input border-border/50 h-9",children:b.jsxDEV(hr,{"data-loc":"client/src/pages/KnowledgeBase.tsx:149",placeholder:"选择类型"},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/KnowledgeBase.tsx",lineNumber:149,columnNumber:132},this)},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/KnowledgeBase.tsx",lineNumber:149,columnNumber:25},this),b.jsxDEV(gr,{"data-loc":"client/src/pages/KnowledgeBase.tsx:150",className:"bg-card border-border/50",children:O8.map(U=>b.jsxDEV(_t,{"data-loc":"client/src/pages/KnowledgeBase.tsx:151",value:U,children:U},U,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/KnowledgeBase.tsx",lineNumber:151,columnNumber:49},this))},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/KnowledgeBase.tsx",lineNumber:150,columnNumber:25},this)]},void 0,!0,{fileName:"/home/ubuntu/nac-admin/client/src/pages/KnowledgeBase.tsx",lineNumber:148,columnNumber:23},this)]},void 0,!0,{fileName:"/home/ubuntu/nac-admin/client/src/pages/KnowledgeBase.tsx",lineNumber:146,columnNumber:21},this)]},void 0,!0,{fileName:"/home/ubuntu/nac-admin/client/src/pages/KnowledgeBase.tsx",lineNumber:136,columnNumber:19},this),b.jsxDEV("div",{"data-loc":"client/src/pages/KnowledgeBase.tsx:156",className:"space-y-1.5",children:[b.jsxDEV(Ct,{"data-loc":"client/src/pages/KnowledgeBase.tsx:157",className:"text-xs",children:e("knowledgeBase.sourceLang","输入语言")},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/KnowledgeBase.tsx",lineNumber:157,columnNumber:21},this),b.jsxDEV(mr,{"data-loc":"client/src/pages/KnowledgeBase.tsx:158",value:C.sourceLang,onValueChange:U=>j(K=>({...K,sourceLang:U})),children:[b.jsxDEV(pr,{"data-loc":"client/src/pages/KnowledgeBase.tsx:159",className:"bg-input border-border/50 h-9",children:b.jsxDEV(hr,{"data-loc":"client/src/pages/KnowledgeBase.tsx:159"},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/KnowledgeBase.tsx",lineNumber:159,columnNumber:130},this)},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/KnowledgeBase.tsx",lineNumber:159,columnNumber:23},this),b.jsxDEV(gr,{"data-loc":"client/src/pages/KnowledgeBase.tsx:160",className:"bg-card border-border/50",children:Object.entries(HD).map(([U,K])=>b.jsxDEV(_t,{"data-loc":"client/src/pages/KnowledgeBase.tsx:162",value:U,children:[qD[U]," ",K]},U,!0,{fileName:"/home/ubuntu/nac-admin/client/src/pages/KnowledgeBase.tsx",lineNumber:162,columnNumber:27},this))},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/KnowledgeBase.tsx",lineNumber:160,columnNumber:23},this)]},void 0,!0,{fileName:"/home/ubuntu/nac-admin/client/src/pages/KnowledgeBase.tsx",lineNumber:158,columnNumber:21},this)]},void 0,!0,{fileName:"/home/ubuntu/nac-admin/client/src/pages/KnowledgeBase.tsx",lineNumber:156,columnNumber:19},this),b.jsxDEV("div",{"data-loc":"client/src/pages/KnowledgeBase.tsx:167",className:"space-y-1.5",children:[b.jsxDEV(Ct,{"data-loc":"client/src/pages/KnowledgeBase.tsx:168",className:"text-xs",children:e("knowledgeBase.ruleName","规则名称")},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/KnowledgeBase.tsx",lineNumber:168,columnNumber:21},this),b.jsxDEV(Qn,{"data-loc":"client/src/pages/KnowledgeBase.tsx:169",value:C.ruleName,onChange:U=>j(K=>({...K,ruleName:U.target.value})),className:"bg-input border-border/50 h-9",placeholder:"例:不动产登记证要求"},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/KnowledgeBase.tsx",lineNumber:169,columnNumber:21},this)]},void 0,!0,{fileName:"/home/ubuntu/nac-admin/client/src/pages/KnowledgeBase.tsx",lineNumber:167,columnNumber:19},this),b.jsxDEV("div",{"data-loc":"client/src/pages/KnowledgeBase.tsx:171",className:"space-y-1.5",children:[b.jsxDEV(Ct,{"data-loc":"client/src/pages/KnowledgeBase.tsx:172",className:"text-xs",children:e("knowledgeBase.description","规则描述")},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/KnowledgeBase.tsx",lineNumber:172,columnNumber:21},this),b.jsxDEV(uf,{"data-loc":"client/src/pages/KnowledgeBase.tsx:173",value:C.description,onChange:U=>j(K=>({...K,description:U.target.value})),className:"bg-input border-border/50 resize-none",rows:3,placeholder:"详细描述合规要求..."},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/KnowledgeBase.tsx",lineNumber:173,columnNumber:21},this)]},void 0,!0,{fileName:"/home/ubuntu/nac-admin/client/src/pages/KnowledgeBase.tsx",lineNumber:171,columnNumber:19},this),b.jsxDEV("div",{"data-loc":"client/src/pages/KnowledgeBase.tsx:175",className:"space-y-1.5",children:[b.jsxDEV(Ct,{"data-loc":"client/src/pages/KnowledgeBase.tsx:176",className:"text-xs",children:e("knowledgeBase.tags","标签(逗号分隔)")},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/KnowledgeBase.tsx",lineNumber:176,columnNumber:21},this),b.jsxDEV(Qn,{"data-loc":"client/src/pages/KnowledgeBase.tsx:177",value:C.tags,onChange:U=>j(K=>({...K,tags:U.target.value})),className:"bg-input border-border/50 h-9",placeholder:"CN, RealEstate, Document"},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/KnowledgeBase.tsx",lineNumber:177,columnNumber:21},this)]},void 0,!0,{fileName:"/home/ubuntu/nac-admin/client/src/pages/KnowledgeBase.tsx",lineNumber:175,columnNumber:19},this),b.jsxDEV("div",{"data-loc":"client/src/pages/KnowledgeBase.tsx:179",className:"flex items-center justify-between",children:[b.jsxDEV("div",{"data-loc":"client/src/pages/KnowledgeBase.tsx:180",className:"flex items-center gap-2",children:[b.jsxDEV(S8,{"data-loc":"client/src/pages/KnowledgeBase.tsx:181",checked:C.required,onCheckedChange:U=>j(K=>({...K,required:U}))},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/KnowledgeBase.tsx",lineNumber:181,columnNumber:23},this),b.jsxDEV(Ct,{"data-loc":"client/src/pages/KnowledgeBase.tsx:182",className:"text-xs",children:e("knowledgeBase.required","强制要求")},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/KnowledgeBase.tsx",lineNumber:182,columnNumber:23},this)]},void 0,!0,{fileName:"/home/ubuntu/nac-admin/client/src/pages/KnowledgeBase.tsx",lineNumber:180,columnNumber:21},this),b.jsxDEV("div",{"data-loc":"client/src/pages/KnowledgeBase.tsx:184",className:"flex items-center gap-2",children:[b.jsxDEV(S8,{"data-loc":"client/src/pages/KnowledgeBase.tsx:185",checked:C.autoTranslate,onCheckedChange:U=>j(K=>({...K,autoTranslate:U}))},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/KnowledgeBase.tsx",lineNumber:185,columnNumber:23},this),b.jsxDEV(Ct,{"data-loc":"client/src/pages/KnowledgeBase.tsx:186",className:"text-xs flex items-center gap-1",children:[b.jsxDEV(Fb,{"data-loc":"client/src/pages/KnowledgeBase.tsx:187",className:"w-3 h-3"},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/KnowledgeBase.tsx",lineNumber:187,columnNumber:25},this),e("knowledgeBase.autoTranslate","AI自动翻译七语言")]},void 0,!0,{fileName:"/home/ubuntu/nac-admin/client/src/pages/KnowledgeBase.tsx",lineNumber:186,columnNumber:23},this)]},void 0,!0,{fileName:"/home/ubuntu/nac-admin/client/src/pages/KnowledgeBase.tsx",lineNumber:184,columnNumber:21},this)]},void 0,!0,{fileName:"/home/ubuntu/nac-admin/client/src/pages/KnowledgeBase.tsx",lineNumber:179,columnNumber:19},this),C.autoTranslate&&b.jsxDEV("p",{"data-loc":"client/src/pages/KnowledgeBase.tsx:192",className:"text-xs text-muted-foreground bg-accent/30 rounded p-2",children:"🤖 创建后将自动调用AI生成:中文、英文、阿拉伯文、日文、韩文、法文、俄文七种语言版本"},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/KnowledgeBase.tsx",lineNumber:192,columnNumber:21},this),b.jsxDEV(rt,{"data-loc":"client/src/pages/KnowledgeBase.tsx:196",className:"w-full nac-gradient text-white",onClick:()=>M.mutate({...C,tags:C.tags.split(",").map(U=>U.trim()).filter(Boolean),sourceLang:C.sourceLang,autoTranslate:C.autoTranslate}),disabled:M.isPending||!C.jurisdiction||!C.assetType||!C.ruleName,children:M.isPending?b.jsxDEV(b.Fragment,{children:[b.jsxDEV(_r,{"data-loc":"client/src/pages/KnowledgeBase.tsx:207",className:"w-4 h-4 mr-1.5 animate-spin"},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/KnowledgeBase.tsx",lineNumber:207,columnNumber:25},this),"AI翻译生成中..."]},void 0,!0,{fileName:"/home/ubuntu/nac-admin/client/src/pages/KnowledgeBase.tsx",lineNumber:207,columnNumber:23},this):e("knowledgeBase.createRule","创建规则")},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/KnowledgeBase.tsx",lineNumber:196,columnNumber:19},this)]},void 0,!0,{fileName:"/home/ubuntu/nac-admin/client/src/pages/KnowledgeBase.tsx",lineNumber:135,columnNumber:17},this)]},void 0,!0,{fileName:"/home/ubuntu/nac-admin/client/src/pages/KnowledgeBase.tsx",lineNumber:131,columnNumber:15},this)]},void 0,!0,{fileName:"/home/ubuntu/nac-admin/client/src/pages/KnowledgeBase.tsx",lineNumber:125,columnNumber:13},this)]},void 0,!0,{fileName:"/home/ubuntu/nac-admin/client/src/pages/KnowledgeBase.tsx",lineNumber:107,columnNumber:11},this)]},void 0,!0,{fileName:"/home/ubuntu/nac-admin/client/src/pages/KnowledgeBase.tsx",lineNumber:102,columnNumber:9},this),b.jsxDEV("div",{"data-loc":"client/src/pages/KnowledgeBase.tsx:217",className:"flex items-center gap-2 text-xs text-muted-foreground",children:[b.jsxDEV(Fb,{"data-loc":"client/src/pages/KnowledgeBase.tsx:218",className:"w-3.5 h-3.5"},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/KnowledgeBase.tsx",lineNumber:218,columnNumber:11},this),b.jsxDEV("span",{"data-loc":"client/src/pages/KnowledgeBase.tsx:219",children:["当前显示语言:",qD[r]," ",HD[r]," — 切换界面语言可同步切换规则显示语言"]},void 0,!0,{fileName:"/home/ubuntu/nac-admin/client/src/pages/KnowledgeBase.tsx",lineNumber:219,columnNumber:11},this)]},void 0,!0,{fileName:"/home/ubuntu/nac-admin/client/src/pages/KnowledgeBase.tsx",lineNumber:217,columnNumber:9},this),b.jsxDEV(At,{"data-loc":"client/src/pages/KnowledgeBase.tsx:223",className:"border-border/50",children:b.jsxDEV(Ot,{"data-loc":"client/src/pages/KnowledgeBase.tsx:224",className:"p-4",children:b.jsxDEV("div",{"data-loc":"client/src/pages/KnowledgeBase.tsx:225",className:"flex flex-wrap items-center gap-3",children:[b.jsxDEV(Kae,{"data-loc":"client/src/pages/KnowledgeBase.tsx:226",className:"w-4 h-4 text-muted-foreground"},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/KnowledgeBase.tsx",lineNumber:226,columnNumber:15},this),b.jsxDEV(mr,{"data-loc":"client/src/pages/KnowledgeBase.tsx:227",value:o,onValueChange:U=>{s(U==="ALL_FILTER"?"":U),h(1)},children:[b.jsxDEV(pr,{"data-loc":"client/src/pages/KnowledgeBase.tsx:228",className:"w-36 bg-input border-border/50 h-8 text-sm",children:b.jsxDEV(hr,{"data-loc":"client/src/pages/KnowledgeBase.tsx:228",placeholder:e("knowledgeBase.jurisdiction","司法辖区")},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/KnowledgeBase.tsx",lineNumber:228,columnNumber:137},this)},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/KnowledgeBase.tsx",lineNumber:228,columnNumber:17},this),b.jsxDEV(gr,{"data-loc":"client/src/pages/KnowledgeBase.tsx:229",className:"bg-card border-border/50",children:[b.jsxDEV(_t,{"data-loc":"client/src/pages/KnowledgeBase.tsx:230",value:"ALL_FILTER",children:e("common.all","全部辖区")},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/KnowledgeBase.tsx",lineNumber:230,columnNumber:19},this),A8.map(U=>b.jsxDEV(_t,{"data-loc":"client/src/pages/KnowledgeBase.tsx:231",value:U,children:U},U,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/KnowledgeBase.tsx",lineNumber:231,columnNumber:43},this))]},void 0,!0,{fileName:"/home/ubuntu/nac-admin/client/src/pages/KnowledgeBase.tsx",lineNumber:229,columnNumber:17},this)]},void 0,!0,{fileName:"/home/ubuntu/nac-admin/client/src/pages/KnowledgeBase.tsx",lineNumber:227,columnNumber:15},this),b.jsxDEV(mr,{"data-loc":"client/src/pages/KnowledgeBase.tsx:234",value:c,onValueChange:U=>{u(U==="ALL_FILTER"?"":U),h(1)},children:[b.jsxDEV(pr,{"data-loc":"client/src/pages/KnowledgeBase.tsx:235",className:"w-40 bg-input border-border/50 h-8 text-sm",children:b.jsxDEV(hr,{"data-loc":"client/src/pages/KnowledgeBase.tsx:235",placeholder:e("knowledgeBase.assetType","资产类型")},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/KnowledgeBase.tsx",lineNumber:235,columnNumber:137},this)},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/KnowledgeBase.tsx",lineNumber:235,columnNumber:17},this),b.jsxDEV(gr,{"data-loc":"client/src/pages/KnowledgeBase.tsx:236",className:"bg-card border-border/50",children:[b.jsxDEV(_t,{"data-loc":"client/src/pages/KnowledgeBase.tsx:237",value:"ALL_FILTER",children:e("common.all","全部类型")},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/KnowledgeBase.tsx",lineNumber:237,columnNumber:19},this),O8.map(U=>b.jsxDEV(_t,{"data-loc":"client/src/pages/KnowledgeBase.tsx:238",value:U,children:U},U,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/KnowledgeBase.tsx",lineNumber:238,columnNumber:41},this))]},void 0,!0,{fileName:"/home/ubuntu/nac-admin/client/src/pages/KnowledgeBase.tsx",lineNumber:236,columnNumber:17},this)]},void 0,!0,{fileName:"/home/ubuntu/nac-admin/client/src/pages/KnowledgeBase.tsx",lineNumber:234,columnNumber:15},this),b.jsxDEV(mr,{"data-loc":"client/src/pages/KnowledgeBase.tsx:241",value:f,onValueChange:U=>{m(U==="ALL_FILTER"?"":U),h(1)},children:[b.jsxDEV(pr,{"data-loc":"client/src/pages/KnowledgeBase.tsx:242",className:"w-28 bg-input border-border/50 h-8 text-sm",children:b.jsxDEV(hr,{"data-loc":"client/src/pages/KnowledgeBase.tsx:242",placeholder:e("common.status","状态")},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/KnowledgeBase.tsx",lineNumber:242,columnNumber:137},this)},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/KnowledgeBase.tsx",lineNumber:242,columnNumber:17},this),b.jsxDEV(gr,{"data-loc":"client/src/pages/KnowledgeBase.tsx:243",className:"bg-card border-border/50",children:[b.jsxDEV(_t,{"data-loc":"client/src/pages/KnowledgeBase.tsx:244",value:"ALL_FILTER",children:e("common.all","全部状态")},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/KnowledgeBase.tsx",lineNumber:244,columnNumber:19},this),b.jsxDEV(_t,{"data-loc":"client/src/pages/KnowledgeBase.tsx:245",value:"active",children:e("common.active","已激活")},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/KnowledgeBase.tsx",lineNumber:245,columnNumber:19},this),b.jsxDEV(_t,{"data-loc":"client/src/pages/KnowledgeBase.tsx:246",value:"disabled",children:e("common.disabled","已禁用")},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/KnowledgeBase.tsx",lineNumber:246,columnNumber:19},this)]},void 0,!0,{fileName:"/home/ubuntu/nac-admin/client/src/pages/KnowledgeBase.tsx",lineNumber:243,columnNumber:17},this)]},void 0,!0,{fileName:"/home/ubuntu/nac-admin/client/src/pages/KnowledgeBase.tsx",lineNumber:241,columnNumber:15},this),b.jsxDEV("span",{"data-loc":"client/src/pages/KnowledgeBase.tsx:249",className:"text-xs text-muted-foreground ml-auto",children:["共 ",Y," 条规则"]},void 0,!0,{fileName:"/home/ubuntu/nac-admin/client/src/pages/KnowledgeBase.tsx",lineNumber:249,columnNumber:15},this)]},void 0,!0,{fileName:"/home/ubuntu/nac-admin/client/src/pages/KnowledgeBase.tsx",lineNumber:225,columnNumber:13},this)},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/KnowledgeBase.tsx",lineNumber:224,columnNumber:11},this)},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/KnowledgeBase.tsx",lineNumber:223,columnNumber:9},this),b.jsxDEV(At,{"data-loc":"client/src/pages/KnowledgeBase.tsx:255",className:"border-border/50",children:b.jsxDEV(Ot,{"data-loc":"client/src/pages/KnowledgeBase.tsx:256",className:"p-0",children:T?b.jsxDEV("div",{"data-loc":"client/src/pages/KnowledgeBase.tsx:258",className:"p-8 text-center text-muted-foreground text-sm",children:[b.jsxDEV(_r,{"data-loc":"client/src/pages/KnowledgeBase.tsx:259",className:"w-6 h-6 animate-spin mx-auto mb-2"},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/KnowledgeBase.tsx",lineNumber:259,columnNumber:17},this),"加载中..."]},void 0,!0,{fileName:"/home/ubuntu/nac-admin/client/src/pages/KnowledgeBase.tsx",lineNumber:258,columnNumber:15},this):G.length===0?b.jsxDEV("div",{"data-loc":"client/src/pages/KnowledgeBase.tsx:262",className:"p-8 text-center",children:[b.jsxDEV(T_,{"data-loc":"client/src/pages/KnowledgeBase.tsx:263",className:"w-10 h-10 text-muted-foreground/30 mx-auto mb-2"},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/KnowledgeBase.tsx",lineNumber:263,columnNumber:17},this),b.jsxDEV("p",{"data-loc":"client/src/pages/KnowledgeBase.tsx:264",className:"text-muted-foreground text-sm",children:e("knowledgeBase.noRules","暂无合规规则")},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/KnowledgeBase.tsx",lineNumber:264,columnNumber:17},this)]},void 0,!0,{fileName:"/home/ubuntu/nac-admin/client/src/pages/KnowledgeBase.tsx",lineNumber:262,columnNumber:15},this):b.jsxDEV("div",{"data-loc":"client/src/pages/KnowledgeBase.tsx:267",className:"overflow-x-auto",children:b.jsxDEV("table",{"data-loc":"client/src/pages/KnowledgeBase.tsx:268",className:"w-full text-sm",children:[b.jsxDEV("thead",{"data-loc":"client/src/pages/KnowledgeBase.tsx:269",children:b.jsxDEV("tr",{"data-loc":"client/src/pages/KnowledgeBase.tsx:270",className:"border-b border-border/30",children:[b.jsxDEV("th",{"data-loc":"client/src/pages/KnowledgeBase.tsx:271",className:"text-left p-3 text-xs font-medium text-muted-foreground",children:e("knowledgeBase.ruleName","规则名称")},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/KnowledgeBase.tsx",lineNumber:271,columnNumber:23},this),b.jsxDEV("th",{"data-loc":"client/src/pages/KnowledgeBase.tsx:272",className:"text-left p-3 text-xs font-medium text-muted-foreground",children:e("knowledgeBase.jurisdiction","辖区")},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/KnowledgeBase.tsx",lineNumber:272,columnNumber:23},this),b.jsxDEV("th",{"data-loc":"client/src/pages/KnowledgeBase.tsx:273",className:"text-left p-3 text-xs font-medium text-muted-foreground",children:e("knowledgeBase.assetType","资产类型")},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/KnowledgeBase.tsx",lineNumber:273,columnNumber:23},this),b.jsxDEV("th",{"data-loc":"client/src/pages/KnowledgeBase.tsx:274",className:"text-left p-3 text-xs font-medium text-muted-foreground",children:e("knowledgeBase.i18nStatus","多语言")},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/KnowledgeBase.tsx",lineNumber:274,columnNumber:23},this),b.jsxDEV("th",{"data-loc":"client/src/pages/KnowledgeBase.tsx:275",className:"text-left p-3 text-xs font-medium text-muted-foreground",children:e("common.status","状态")},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/KnowledgeBase.tsx",lineNumber:275,columnNumber:23},this),b.jsxDEV("th",{"data-loc":"client/src/pages/KnowledgeBase.tsx:276",className:"text-right p-3 text-xs font-medium text-muted-foreground",children:e("common.actions","操作")},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/KnowledgeBase.tsx",lineNumber:276,columnNumber:23},this)]},void 0,!0,{fileName:"/home/ubuntu/nac-admin/client/src/pages/KnowledgeBase.tsx",lineNumber:270,columnNumber:21},this)},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/KnowledgeBase.tsx",lineNumber:269,columnNumber:19},this),b.jsxDEV("tbody",{"data-loc":"client/src/pages/KnowledgeBase.tsx:279",children:G.map(U=>{const K=U._id?.toString(),te=S===K,ne=U.ruleNameI18n&&Object.keys(U.ruleNameI18n).length>=3,L=U.ruleNameI18n?Object.keys(U.ruleNameI18n).length:0;return b.jsxDEV(b.Fragment,{children:[b.jsxDEV("tr",{"data-loc":"client/src/pages/KnowledgeBase.tsx:288",className:"border-b border-border/20 hover:bg-accent/30 transition-colors",children:[b.jsxDEV("td",{"data-loc":"client/src/pages/KnowledgeBase.tsx:289",className:"p-3",children:[b.jsxDEV("p",{"data-loc":"client/src/pages/KnowledgeBase.tsx:290",className:"font-medium",children:U.displayName||U.ruleName},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/KnowledgeBase.tsx",lineNumber:290,columnNumber:31},this),b.jsxDEV("p",{"data-loc":"client/src/pages/KnowledgeBase.tsx:291",className:"text-xs text-muted-foreground mt-0.5 line-clamp-1",children:U.displayDescription||U.description},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/KnowledgeBase.tsx",lineNumber:291,columnNumber:31},this)]},void 0,!0,{fileName:"/home/ubuntu/nac-admin/client/src/pages/KnowledgeBase.tsx",lineNumber:289,columnNumber:29},this),b.jsxDEV("td",{"data-loc":"client/src/pages/KnowledgeBase.tsx:293",className:"p-3",children:b.jsxDEV(za,{"data-loc":"client/src/pages/KnowledgeBase.tsx:294",variant:"outline",className:"text-xs border-primary/30 text-primary",children:U.jurisdiction},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/KnowledgeBase.tsx",lineNumber:294,columnNumber:31},this)},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/KnowledgeBase.tsx",lineNumber:293,columnNumber:29},this),b.jsxDEV("td",{"data-loc":"client/src/pages/KnowledgeBase.tsx:296",className:"p-3 text-xs text-muted-foreground",children:U.assetType},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/KnowledgeBase.tsx",lineNumber:296,columnNumber:29},this),b.jsxDEV("td",{"data-loc":"client/src/pages/KnowledgeBase.tsx:297",className:"p-3",children:b.jsxDEV("div",{"data-loc":"client/src/pages/KnowledgeBase.tsx:298",className:"flex items-center gap-1",children:ne?b.jsxDEV(DE,{"data-loc":"client/src/pages/KnowledgeBase.tsx:300",children:[b.jsxDEV(CE,{"data-loc":"client/src/pages/KnowledgeBase.tsx:301",asChild:!0,children:b.jsxDEV("button",{"data-loc":"client/src/pages/KnowledgeBase.tsx:302",className:"flex items-center gap-1 text-xs text-emerald-400 hover:text-emerald-300",onClick:()=>N(te?null:K),children:[b.jsxDEV(Ic,{"data-loc":"client/src/pages/KnowledgeBase.tsx:306",className:"w-3 h-3"},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/KnowledgeBase.tsx",lineNumber:306,columnNumber:41},this),L,"/7",te?b.jsxDEV(C_,{"data-loc":"client/src/pages/KnowledgeBase.tsx:308",className:"w-3 h-3"},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/KnowledgeBase.tsx",lineNumber:308,columnNumber:55},this):b.jsxDEV(Cx,{"data-loc":"client/src/pages/KnowledgeBase.tsx:308",className:"w-3 h-3"},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/KnowledgeBase.tsx",lineNumber:308,columnNumber:141},this)]},void 0,!0,{fileName:"/home/ubuntu/nac-admin/client/src/pages/KnowledgeBase.tsx",lineNumber:302,columnNumber:39},this)},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/KnowledgeBase.tsx",lineNumber:301,columnNumber:37},this),b.jsxDEV(TE,{"data-loc":"client/src/pages/KnowledgeBase.tsx:311",children:"点击展开查看所有语言版本"},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/KnowledgeBase.tsx",lineNumber:311,columnNumber:37},this)]},void 0,!0,{fileName:"/home/ubuntu/nac-admin/client/src/pages/KnowledgeBase.tsx",lineNumber:300,columnNumber:35},this):b.jsxDEV("span",{"data-loc":"client/src/pages/KnowledgeBase.tsx:314",className:"text-xs text-amber-400/70",children:["仅",L,"种"]},void 0,!0,{fileName:"/home/ubuntu/nac-admin/client/src/pages/KnowledgeBase.tsx",lineNumber:314,columnNumber:35},this)},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/KnowledgeBase.tsx",lineNumber:298,columnNumber:31},this)},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/KnowledgeBase.tsx",lineNumber:297,columnNumber:29},this),b.jsxDEV("td",{"data-loc":"client/src/pages/KnowledgeBase.tsx:318",className:"p-3",children:b.jsxDEV("span",{"data-loc":"client/src/pages/KnowledgeBase.tsx:319",className:`text-xs px-2 py-0.5 rounded-full font-medium status-${U.status}`,children:U.status==="active"?e("common.active","已激活"):e("common.disabled","已禁用")},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/KnowledgeBase.tsx",lineNumber:319,columnNumber:31},this)},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/KnowledgeBase.tsx",lineNumber:318,columnNumber:29},this),b.jsxDEV("td",{"data-loc":"client/src/pages/KnowledgeBase.tsx:323",className:"p-3",children:b.jsxDEV("div",{"data-loc":"client/src/pages/KnowledgeBase.tsx:324",className:"flex items-center justify-end gap-1",children:[b.jsxDEV(DE,{"data-loc":"client/src/pages/KnowledgeBase.tsx:325",children:[b.jsxDEV(CE,{"data-loc":"client/src/pages/KnowledgeBase.tsx:326",asChild:!0,children:b.jsxDEV(rt,{"data-loc":"client/src/pages/KnowledgeBase.tsx:327",variant:"ghost",size:"sm",className:"h-7 px-2 text-xs text-blue-400 hover:text-blue-300",onClick:()=>q(K),disabled:w===K,children:w===K?b.jsxDEV(_r,{"data-loc":"client/src/pages/KnowledgeBase.tsx:334",className:"w-3.5 h-3.5 animate-spin"},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/KnowledgeBase.tsx",lineNumber:334,columnNumber:41},this):b.jsxDEV(Fb,{"data-loc":"client/src/pages/KnowledgeBase.tsx:336",className:"w-3.5 h-3.5"},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/KnowledgeBase.tsx",lineNumber:336,columnNumber:41},this)},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/KnowledgeBase.tsx",lineNumber:327,columnNumber:37},this)},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/KnowledgeBase.tsx",lineNumber:326,columnNumber:35},this),b.jsxDEV(TE,{"data-loc":"client/src/pages/KnowledgeBase.tsx:340",children:"AI生成/补全七语言翻译"},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/KnowledgeBase.tsx",lineNumber:340,columnNumber:35},this)]},void 0,!0,{fileName:"/home/ubuntu/nac-admin/client/src/pages/KnowledgeBase.tsx",lineNumber:325,columnNumber:33},this),b.jsxDEV(rt,{"data-loc":"client/src/pages/KnowledgeBase.tsx:342",variant:"ghost",size:"sm",className:"h-7 px-2 text-xs",onClick:()=>$.mutate({id:K,status:U.status==="active"?"disabled":"active"}),children:[b.jsxDEV(Gz,{"data-loc":"client/src/pages/KnowledgeBase.tsx:347",className:"w-3.5 h-3.5 mr-1"},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/KnowledgeBase.tsx",lineNumber:347,columnNumber:35},this),U.status==="active"?e("common.disable","禁用"):e("common.enable","激活")]},void 0,!0,{fileName:"/home/ubuntu/nac-admin/client/src/pages/KnowledgeBase.tsx",lineNumber:342,columnNumber:33},this),b.jsxDEV(rt,{"data-loc":"client/src/pages/KnowledgeBase.tsx:350",variant:"ghost",size:"sm",className:"h-7 px-2 text-xs text-destructive hover:text-destructive",onClick:()=>{confirm(e("common.confirmDelete","确认删除此规则?"))&&I.mutate({id:K})},children:b.jsxDEV(Yz,{"data-loc":"client/src/pages/KnowledgeBase.tsx:355",className:"w-3.5 h-3.5"},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/KnowledgeBase.tsx",lineNumber:355,columnNumber:35},this)},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/KnowledgeBase.tsx",lineNumber:350,columnNumber:33},this)]},void 0,!0,{fileName:"/home/ubuntu/nac-admin/client/src/pages/KnowledgeBase.tsx",lineNumber:324,columnNumber:31},this)},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/KnowledgeBase.tsx",lineNumber:323,columnNumber:29},this)]},K,!0,{fileName:"/home/ubuntu/nac-admin/client/src/pages/KnowledgeBase.tsx",lineNumber:288,columnNumber:27},this),te&&U.ruleNameI18n&&b.jsxDEV("tr",{"data-loc":"client/src/pages/KnowledgeBase.tsx:362",className:"border-b border-border/20 bg-accent/10",children:b.jsxDEV("td",{"data-loc":"client/src/pages/KnowledgeBase.tsx:363",colSpan:6,className:"px-4 py-3",children:b.jsxDEV("div",{"data-loc":"client/src/pages/KnowledgeBase.tsx:364",className:"grid grid-cols-2 md:grid-cols-3 lg:grid-cols-4 gap-2",children:Object.entries(U.ruleNameI18n).map(([Q,W])=>b.jsxDEV("div",{"data-loc":"client/src/pages/KnowledgeBase.tsx:366",className:"bg-card/50 rounded p-2 border border-border/30",children:[b.jsxDEV("div",{"data-loc":"client/src/pages/KnowledgeBase.tsx:367",className:"flex items-center gap-1 mb-1",children:[b.jsxDEV("span",{"data-loc":"client/src/pages/KnowledgeBase.tsx:368",className:"text-sm",children:qD[Q]||"🌐"},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/KnowledgeBase.tsx",lineNumber:368,columnNumber:41},this),b.jsxDEV("span",{"data-loc":"client/src/pages/KnowledgeBase.tsx:369",className:"text-xs font-medium text-muted-foreground",children:HD[Q]||Q},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/KnowledgeBase.tsx",lineNumber:369,columnNumber:41},this)]},void 0,!0,{fileName:"/home/ubuntu/nac-admin/client/src/pages/KnowledgeBase.tsx",lineNumber:367,columnNumber:39},this),b.jsxDEV("p",{"data-loc":"client/src/pages/KnowledgeBase.tsx:371",className:"text-xs font-medium",children:W},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/KnowledgeBase.tsx",lineNumber:371,columnNumber:39},this),U.descriptionI18n?.[Q]&&b.jsxDEV("p",{"data-loc":"client/src/pages/KnowledgeBase.tsx:373",className:"text-xs text-muted-foreground mt-0.5 line-clamp-2",children:U.descriptionI18n[Q]},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/KnowledgeBase.tsx",lineNumber:373,columnNumber:41},this)]},Q,!0,{fileName:"/home/ubuntu/nac-admin/client/src/pages/KnowledgeBase.tsx",lineNumber:366,columnNumber:37},this))},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/KnowledgeBase.tsx",lineNumber:364,columnNumber:33},this)},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/KnowledgeBase.tsx",lineNumber:363,columnNumber:31},this)},`${K}-i18n`,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/KnowledgeBase.tsx",lineNumber:362,columnNumber:29},this)]},void 0,!0,{fileName:"/home/ubuntu/nac-admin/client/src/pages/KnowledgeBase.tsx",lineNumber:287,columnNumber:25},this)})},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/KnowledgeBase.tsx",lineNumber:279,columnNumber:19},this)]},void 0,!0,{fileName:"/home/ubuntu/nac-admin/client/src/pages/KnowledgeBase.tsx",lineNumber:268,columnNumber:17},this)},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/KnowledgeBase.tsx",lineNumber:267,columnNumber:15},this)},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/KnowledgeBase.tsx",lineNumber:256,columnNumber:11},this)},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/KnowledgeBase.tsx",lineNumber:255,columnNumber:9},this),J>1&&b.jsxDEV("div",{"data-loc":"client/src/pages/KnowledgeBase.tsx:393",className:"flex items-center justify-center gap-2",children:[b.jsxDEV(rt,{"data-loc":"client/src/pages/KnowledgeBase.tsx:394",variant:"outline",size:"sm",onClick:()=>h(U=>Math.max(1,U-1)),disabled:g===1,className:"border-border/50 h-8",children:e("common.prevPage","上一页")},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/KnowledgeBase.tsx",lineNumber:394,columnNumber:13},this),b.jsxDEV("span",{"data-loc":"client/src/pages/KnowledgeBase.tsx:395",className:"text-xs text-muted-foreground",children:[g," / ",J]},void 0,!0,{fileName:"/home/ubuntu/nac-admin/client/src/pages/KnowledgeBase.tsx",lineNumber:395,columnNumber:13},this),b.jsxDEV(rt,{"data-loc":"client/src/pages/KnowledgeBase.tsx:396",variant:"outline",size:"sm",onClick:()=>h(U=>Math.min(J,U+1)),disabled:g===J,className:"border-border/50 h-8",children:e("common.nextPage","下一页")},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/KnowledgeBase.tsx",lineNumber:396,columnNumber:13},this)]},void 0,!0,{fileName:"/home/ubuntu/nac-admin/client/src/pages/KnowledgeBase.tsx",lineNumber:393,columnNumber:11},this)]},void 0,!0,{fileName:"/home/ubuntu/nac-admin/client/src/pages/KnowledgeBase.tsx",lineNumber:101,columnNumber:7},this)},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/KnowledgeBase.tsx",lineNumber:100,columnNumber:5},this)}const nAe=["CN","HK","US","EU","SG","AE","ALL"],rAe=["regulation","trade_rule","credit","asset_document","court_judgment","tax_rule"],aAe=["realtime","hourly","daily","weekly","monthly"];function iAe(){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(Kh,{"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(Vp,{"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(Qn,{"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:nAe.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(Qn,{"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:rAe.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:aAe.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(iie,{"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(OC,{"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(OC,{"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(Fh,{"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 oAe(){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:Fh,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(qz,{"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(Hae,{"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(Fh,{"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 FD=["jurisdiction","asset_type","compliance_requirement","risk_indicator"],KD={jurisdiction:"司法辖区",asset_type:"资产类型",compliance_requirement:"合规要求",risk_indicator:"风险指标"};function sAe(){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 FD.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(Kh,{"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(Hz,{"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(Qn,{"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(Qn,{"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(Qn,{"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(Kh,{"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(Vp,{"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(Qn,{"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:FD.map(C=>b.jsxDEV(_t,{"data-loc":"client/src/pages/TagEngine.tsx:130",value:C,children:KD[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(Qn,{"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:FD.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(Yae,{"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:KD[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(Kz,{"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:KD[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 lAe=["compliance","asset","identity","governance","settlement","oracle"];function cAe(){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(Kh,{"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(Vp,{"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(Qn,{"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:lAe.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(Qn,{"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(Qn,{"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(Qn,{"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(Ch,{"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(Ch,{"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(Ch,{"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(Hz,{"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(Gz,{"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(Qn,{"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(Qn,{"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 GD={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 uAe(){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=>GD[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(CC,{"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(qz,{"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(GD).map(w=>b.jsxDEV(_t,{"data-loc":"client/src/pages/AuditLog.tsx:139",value:w,children:GD[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(nie,{"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(Qn,{"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(CC,{"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:$ae,Shield:bl,Languages:Fb,ClipboardCheck:qae},dAe={knowledge_qa:"text-blue-500",compliance:"text-red-500",translation:"text-green-500",approval_assist:"text-purple-500"};function fAe({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:53",className:`text-xs ${n} flex items-center gap-1`,children:[b.jsxDEV(mi,{"data-loc":"client/src/pages/AIAgents.tsx:54",className:"w-3 h-3"},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/AIAgents.tsx",lineNumber:54,columnNumber:7},this),"置信度 ",t,"%"]},void 0,!0,{fileName:"/home/ubuntu/nac-admin/client/src/pages/AIAgents.tsx",lineNumber:53,columnNumber:5},this)}function mAe({msg:e}){const t=e.role==="user";return b.jsxDEV("div",{"data-loc":"client/src/pages/AIAgents.tsx:64",className:`flex gap-3 ${t?"flex-row-reverse":"flex-row"}`,children:[b.jsxDEV("div",{"data-loc":"client/src/pages/AIAgents.tsx:65",className:`w-8 h-8 rounded-full flex items-center justify-center shrink-0 ${t?"bg-primary text-primary-foreground":"bg-muted"}`,children:t?b.jsxDEV(CC,{"data-loc":"client/src/pages/AIAgents.tsx:66",className:"w-4 h-4"},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/AIAgents.tsx",lineNumber:66,columnNumber:19},this):b.jsxDEV(Nd,{"data-loc":"client/src/pages/AIAgents.tsx:66",className:"w-4 h-4"},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/AIAgents.tsx",lineNumber:66,columnNumber:94},this)},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/AIAgents.tsx",lineNumber:65,columnNumber:7},this),b.jsxDEV("div",{"data-loc":"client/src/pages/AIAgents.tsx:68",className:`max-w-[75%] space-y-1 ${t?"items-end":"items-start"} flex flex-col`,children:[b.jsxDEV("div",{"data-loc":"client/src/pages/AIAgents.tsx:69",className:`rounded-2xl px-4 py-3 text-sm leading-relaxed whitespace-pre-wrap break-words ${t?"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:69,columnNumber:9},this),!t&&b.jsxDEV("div",{"data-loc":"client/src/pages/AIAgents.tsx:80",className:"flex flex-wrap gap-2 px-1",children:[e.confidence!==void 0&&b.jsxDEV(fAe,{"data-loc":"client/src/pages/AIAgents.tsx:81",confidence:e.confidence},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/AIAgents.tsx",lineNumber:81,columnNumber:46},this),e.sources&&e.sources.length>0&&b.jsxDEV("span",{"data-loc":"client/src/pages/AIAgents.tsx:83",className:"text-xs text-muted-foreground flex items-center gap-1",children:[b.jsxDEV(__,{"data-loc":"client/src/pages/AIAgents.tsx:84",className:"w-3 h-3"},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/AIAgents.tsx",lineNumber:84,columnNumber:17},this),"引用:",e.sources.slice(0,2).join("、"),e.sources.length>2&&` 等${e.sources.length}条`]},void 0,!0,{fileName:"/home/ubuntu/nac-admin/client/src/pages/AIAgents.tsx",lineNumber:83,columnNumber:15},this)]},void 0,!0,{fileName:"/home/ubuntu/nac-admin/client/src/pages/AIAgents.tsx",lineNumber:80,columnNumber:11},this),!t&&e.suggestions&&e.suggestions.length>0&&b.jsxDEV("div",{"data-loc":"client/src/pages/AIAgents.tsx:92",className:"flex flex-wrap gap-1 px-1",children:e.suggestions.map((n,r)=>b.jsxDEV(za,{"data-loc":"client/src/pages/AIAgents.tsx:94",variant:"outline",className:"text-xs cursor-default",children:n},r,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/AIAgents.tsx",lineNumber:94,columnNumber:15},this))},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/AIAgents.tsx",lineNumber:92,columnNumber:11},this)]},void 0,!0,{fileName:"/home/ubuntu/nac-admin/client/src/pages/AIAgents.tsx",lineNumber:68,columnNumber:7},this)]},void 0,!0,{fileName:"/home/ubuntu/nac-admin/client/src/pages/AIAgents.tsx",lineNumber:64,columnNumber:5},this)}function hAe({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=dAe[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:121",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:127",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:127,columnNumber:7},this),b.jsxDEV("div",{"data-loc":"client/src/pages/AIAgents.tsx:128",className:"flex-1 min-w-0",children:[b.jsxDEV("p",{"data-loc":"client/src/pages/AIAgents.tsx:129",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:129,columnNumber:9},this),b.jsxDEV("div",{"data-loc":"client/src/pages/AIAgents.tsx:130",className:"flex items-center gap-1.5 mt-0.5",children:[b.jsxDEV(vf,{"data-loc":"client/src/pages/AIAgents.tsx:131",className:"w-2.5 h-2.5 text-muted-foreground"},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/AIAgents.tsx",lineNumber:131,columnNumber:11},this),b.jsxDEV("span",{"data-loc":"client/src/pages/AIAgents.tsx:132",className:"text-[10px] text-muted-foreground",children:u},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/AIAgents.tsx",lineNumber:132,columnNumber:11},this),b.jsxDEV("span",{"data-loc":"client/src/pages/AIAgents.tsx:133",className:"text-[10px] text-muted-foreground",children:["· ",e.messageCount,"条"]},void 0,!0,{fileName:"/home/ubuntu/nac-admin/client/src/pages/AIAgents.tsx",lineNumber:133,columnNumber:11},this)]},void 0,!0,{fileName:"/home/ubuntu/nac-admin/client/src/pages/AIAgents.tsx",lineNumber:130,columnNumber:9},this)]},void 0,!0,{fileName:"/home/ubuntu/nac-admin/client/src/pages/AIAgents.tsx",lineNumber:128,columnNumber:7},this),b.jsxDEV("button",{"data-loc":"client/src/pages/AIAgents.tsx:136",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(Yz,{"data-loc":"client/src/pages/AIAgents.tsx:140",className:"w-3 h-3"},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/AIAgents.tsx",lineNumber:140,columnNumber:9},this)},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/AIAgents.tsx",lineNumber:136,columnNumber:7},this)]},void 0,!0,{fileName:"/home/ubuntu/nac-admin/client/src/pages/AIAgents.tsx",lineNumber:121,columnNumber:5},this)}function pAe(){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{data:h,isLoading:y}=et.aiAgent.list.useQuery(),{data:x}=et.aiAgent.status.useQuery(),{data:S,refetch:N}=et.aiAgent.listConversations.useQuery({agentType:e||void 0,limit:30},{enabled:!0}),w=et.aiAgent.loadHistory.useQuery({conversationId:n,limit:50},{enabled:!!n});_.useEffect(()=>{if(w.data?.messages&&n){const I=w.data.messages.map(z=>({role:z.role,content:z.content,confidence:z.confidence,sources:z.sources,suggestions:z.suggestions}));s(I)}},[w.data,n]);const D=et.aiAgent.deleteConversation.useMutation({onSuccess:()=>{gt.success("会话已删除"),N()},onError:I=>gt.error(`删除失败: ${I.message}`)}),C=et.aiAgent.chat.useMutation({onSuccess:I=>{s(z=>[...z,{role:"assistant",content:I.message,confidence:I.confidence,sources:I.sources,suggestions:I.suggestions,isRTL:I.metadata?.isRTL}]),!n&&I.conversationId&&r(I.conversationId),N()},onError:I=>{gt.error(`Agent响应失败: ${I.message}`)}});_.useEffect(()=>{g.current?.scrollIntoView({behavior:"smooth"})},[o]);const j=I=>{t(I),r(null),s([]),u("")},P=I=>{t(I.agentType),r(I.conversationId),s([])},A=()=>{r(null),s([]),u("")},T=()=>{const I=c.trim();if(!I||C.isPending||!e)return;const z={role:"user",content:I};s(H=>[...H,z]),u(""),C.mutate({agentType:e,userMessage:I,conversationId:n||void 0,persistHistory:!0})},R=I=>{I.key==="Enter"&&!I.shiftKey&&(I.preventDefault(),T())},M=h?.agents.find(I=>I.type===e),$=S?.conversations||[];return b.jsxDEV("div",{"data-loc":"client/src/pages/AIAgents.tsx:273",className:"flex h-full gap-0 overflow-hidden",children:[b.jsxDEV("div",{"data-loc":"client/src/pages/AIAgents.tsx:275",className:"w-72 shrink-0 border-r flex flex-col bg-muted/20",children:[b.jsxDEV("div",{"data-loc":"client/src/pages/AIAgents.tsx:277",className:"p-4 border-b",children:[b.jsxDEV("div",{"data-loc":"client/src/pages/AIAgents.tsx:278",className:"flex items-center gap-2 mb-1",children:[b.jsxDEV(DC,{"data-loc":"client/src/pages/AIAgents.tsx:279",className:"w-5 h-5 text-primary"},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/AIAgents.tsx",lineNumber:279,columnNumber:13},this),b.jsxDEV("h2",{"data-loc":"client/src/pages/AIAgents.tsx:280",className:"font-semibold text-sm",children:"AI智能体"},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/AIAgents.tsx",lineNumber:280,columnNumber:13},this)]},void 0,!0,{fileName:"/home/ubuntu/nac-admin/client/src/pages/AIAgents.tsx",lineNumber:278,columnNumber:11},this),x&&b.jsxDEV("div",{"data-loc":"client/src/pages/AIAgents.tsx:283",className:`mt-2 flex items-center gap-1.5 text-xs px-2 py-1 rounded-md ${x.configured?"bg-green-500/10 text-green-600":"bg-yellow-500/10 text-yellow-600"}`,children:x.configured?b.jsxDEV(b.Fragment,{children:[b.jsxDEV(mi,{"data-loc":"client/src/pages/AIAgents.tsx:285",className:"w-3 h-3"},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/AIAgents.tsx",lineNumber:285,columnNumber:21},this),"AI服务已就绪 · ",x.model]},void 0,!0,{fileName:"/home/ubuntu/nac-admin/client/src/pages/AIAgents.tsx",lineNumber:285,columnNumber:19},this):b.jsxDEV(b.Fragment,{children:[b.jsxDEV(AC,{"data-loc":"client/src/pages/AIAgents.tsx:286",className:"w-3 h-3"},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/AIAgents.tsx",lineNumber:286,columnNumber:21},this),"AI服务未配置"]},void 0,!0,{fileName:"/home/ubuntu/nac-admin/client/src/pages/AIAgents.tsx",lineNumber:286,columnNumber:19},this)},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/AIAgents.tsx",lineNumber:283,columnNumber:13},this)]},void 0,!0,{fileName:"/home/ubuntu/nac-admin/client/src/pages/AIAgents.tsx",lineNumber:277,columnNumber:9},this),b.jsxDEV("div",{"data-loc":"client/src/pages/AIAgents.tsx:293",className:"p-2 space-y-1 border-b",children:y?b.jsxDEV("div",{"data-loc":"client/src/pages/AIAgents.tsx:295",className:"flex items-center justify-center py-4",children:b.jsxDEV(_r,{"data-loc":"client/src/pages/AIAgents.tsx:296",className:"w-4 h-4 animate-spin text-muted-foreground"},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/AIAgents.tsx",lineNumber:296,columnNumber:15},this)},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/AIAgents.tsx",lineNumber:295,columnNumber:13},this):h?.agents.map(I=>{const z=Qb[I.icon]||Nd,H=e===I.type&&!n;return b.jsxDEV("button",{"data-loc":"client/src/pages/AIAgents.tsx:303",onClick:()=>j(I.type),className:`w-full text-left rounded-lg p-2.5 transition-all ${H?"bg-primary text-primary-foreground":"hover:bg-muted"}`,children:b.jsxDEV("div",{"data-loc":"client/src/pages/AIAgents.tsx:310",className:"flex items-center gap-2",children:[b.jsxDEV(z,{"data-loc":"client/src/pages/AIAgents.tsx:311",className:"w-4 h-4 shrink-0"},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/AIAgents.tsx",lineNumber:311,columnNumber:21},this),b.jsxDEV("span",{"data-loc":"client/src/pages/AIAgents.tsx:312",className:"text-sm font-medium truncate",children:I.name},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/AIAgents.tsx",lineNumber:312,columnNumber:21},this),H&&b.jsxDEV(Uz,{"data-loc":"client/src/pages/AIAgents.tsx:313",className:"w-3 h-3 ml-auto shrink-0"},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/AIAgents.tsx",lineNumber:313,columnNumber:34},this)]},void 0,!0,{fileName:"/home/ubuntu/nac-admin/client/src/pages/AIAgents.tsx",lineNumber:310,columnNumber:19},this)},I.type,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/AIAgents.tsx",lineNumber:303,columnNumber:17},this)})},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/AIAgents.tsx",lineNumber:293,columnNumber:9},this),b.jsxDEV("div",{"data-loc":"client/src/pages/AIAgents.tsx:322",className:"flex-1 overflow-y-auto flex flex-col",children:[b.jsxDEV("button",{"data-loc":"client/src/pages/AIAgents.tsx:323",className:"flex items-center justify-between px-3 py-2 text-xs font-medium text-muted-foreground hover:text-foreground transition-colors",onClick:()=>m(I=>!I),children:[b.jsxDEV("span",{"data-loc":"client/src/pages/AIAgents.tsx:327",className:"flex items-center gap-1.5",children:[b.jsxDEV(Jae,{"data-loc":"client/src/pages/AIAgents.tsx:328",className:"w-3.5 h-3.5"},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/AIAgents.tsx",lineNumber:328,columnNumber:15},this),"历史会话 ",$.length>0&&`(${$.length})`]},void 0,!0,{fileName:"/home/ubuntu/nac-admin/client/src/pages/AIAgents.tsx",lineNumber:327,columnNumber:13},this),f?b.jsxDEV(C_,{"data-loc":"client/src/pages/AIAgents.tsx:331",className:"w-3 h-3"},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/AIAgents.tsx",lineNumber:331,columnNumber:28},this):b.jsxDEV(Cx,{"data-loc":"client/src/pages/AIAgents.tsx:331",className:"w-3 h-3"},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/AIAgents.tsx",lineNumber:331,columnNumber:109},this)]},void 0,!0,{fileName:"/home/ubuntu/nac-admin/client/src/pages/AIAgents.tsx",lineNumber:323,columnNumber:11},this),f&&b.jsxDEV("div",{"data-loc":"client/src/pages/AIAgents.tsx:335",className:"px-2 pb-2 space-y-0.5",children:$.length===0?b.jsxDEV("p",{"data-loc":"client/src/pages/AIAgents.tsx:337",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:337,columnNumber:17},this):$.map(I=>b.jsxDEV(hAe,{"data-loc":"client/src/pages/AIAgents.tsx:340",conv:I,isActive:n===I.conversationId,onClick:()=>P(I),onDelete:()=>D.mutate({conversationId:I.conversationId})},I.conversationId,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/AIAgents.tsx",lineNumber:340,columnNumber:19},this))},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/AIAgents.tsx",lineNumber:335,columnNumber:13},this)]},void 0,!0,{fileName:"/home/ubuntu/nac-admin/client/src/pages/AIAgents.tsx",lineNumber:322,columnNumber:9},this),h&&!h.configured&&b.jsxDEV("div",{"data-loc":"client/src/pages/AIAgents.tsx:355",className:"p-3 border-t",children:b.jsxDEV("div",{"data-loc":"client/src/pages/AIAgents.tsx:356",className:"bg-yellow-500/10 text-yellow-700 text-xs rounded-lg p-2.5 leading-relaxed",children:[b.jsxDEV(AC,{"data-loc":"client/src/pages/AIAgents.tsx:357",className:"w-3 h-3 inline mr-1"},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/AIAgents.tsx",lineNumber:357,columnNumber:15},this),h.configHint]},void 0,!0,{fileName:"/home/ubuntu/nac-admin/client/src/pages/AIAgents.tsx",lineNumber:356,columnNumber:13},this)},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/AIAgents.tsx",lineNumber:355,columnNumber:11},this)]},void 0,!0,{fileName:"/home/ubuntu/nac-admin/client/src/pages/AIAgents.tsx",lineNumber:275,columnNumber:7},this),b.jsxDEV("div",{"data-loc":"client/src/pages/AIAgents.tsx:365",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:398",className:"border-b px-4 py-3 flex items-center gap-3 bg-background",children:[M&&(()=>{const I=Qb[M.icon]||Nd;return b.jsxDEV(b.Fragment,{children:[b.jsxDEV("div",{"data-loc":"client/src/pages/AIAgents.tsx:403",className:"w-8 h-8 rounded-lg bg-primary/10 flex items-center justify-center",children:b.jsxDEV(I,{"data-loc":"client/src/pages/AIAgents.tsx:404",className:"w-4 h-4 text-primary"},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/AIAgents.tsx",lineNumber:404,columnNumber:23},this)},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/AIAgents.tsx",lineNumber:403,columnNumber:21},this),b.jsxDEV("div",{"data-loc":"client/src/pages/AIAgents.tsx:406",children:[b.jsxDEV("p",{"data-loc":"client/src/pages/AIAgents.tsx:407",className:"text-sm font-semibold",children:M.name},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/AIAgents.tsx",lineNumber:407,columnNumber:23},this),b.jsxDEV("p",{"data-loc":"client/src/pages/AIAgents.tsx:408",className:"text-xs text-muted-foreground",children:n?`续接历史会话 · ${o.length}条消息`:"新对话 · 历史将自动保存"},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/AIAgents.tsx",lineNumber:408,columnNumber:23},this)]},void 0,!0,{fileName:"/home/ubuntu/nac-admin/client/src/pages/AIAgents.tsx",lineNumber:406,columnNumber:21},this)]},void 0,!0,{fileName:"/home/ubuntu/nac-admin/client/src/pages/AIAgents.tsx",lineNumber:402,columnNumber:19},this)})(),b.jsxDEV("div",{"data-loc":"client/src/pages/AIAgents.tsx:418",className:"ml-auto flex items-center gap-2",children:[n&&b.jsxDEV(rt,{"data-loc":"client/src/pages/AIAgents.tsx:420",variant:"ghost",size:"sm",className:"text-xs text-muted-foreground gap-1",onClick:A,children:[b.jsxDEV(Vp,{"data-loc":"client/src/pages/AIAgents.tsx:426",className:"w-3 h-3"},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/AIAgents.tsx",lineNumber:426,columnNumber:21},this),"新对话"]},void 0,!0,{fileName:"/home/ubuntu/nac-admin/client/src/pages/AIAgents.tsx",lineNumber:420,columnNumber:19},this),b.jsxDEV(rt,{"data-loc":"client/src/pages/AIAgents.tsx:430",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:430,columnNumber:17},this)]},void 0,!0,{fileName:"/home/ubuntu/nac-admin/client/src/pages/AIAgents.tsx",lineNumber:418,columnNumber:15},this)]},void 0,!0,{fileName:"/home/ubuntu/nac-admin/client/src/pages/AIAgents.tsx",lineNumber:398,columnNumber:13},this),w.isLoading&&n&&b.jsxDEV("div",{"data-loc":"client/src/pages/AIAgents.tsx:443",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:444",className:"w-3.5 h-3.5 animate-spin"},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/AIAgents.tsx",lineNumber:444,columnNumber:17},this),"正在加载历史消息..."]},void 0,!0,{fileName:"/home/ubuntu/nac-admin/client/src/pages/AIAgents.tsx",lineNumber:443,columnNumber:15},this),b.jsxDEV("div",{"data-loc":"client/src/pages/AIAgents.tsx:450",className:"flex-1 overflow-y-auto p-4 space-y-4",children:[o.length===0&&!w.isLoading&&M&&b.jsxDEV("div",{"data-loc":"client/src/pages/AIAgents.tsx:452",className:"text-center py-8",children:[b.jsxDEV("p",{"data-loc":"client/src/pages/AIAgents.tsx:453",className:"text-sm text-muted-foreground mb-4",children:"建议提问:"},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/AIAgents.tsx",lineNumber:453,columnNumber:19},this),b.jsxDEV("div",{"data-loc":"client/src/pages/AIAgents.tsx:454",className:"flex flex-wrap gap-2 justify-center",children:M.suggestedQuestions.map((I,z)=>b.jsxDEV("button",{"data-loc":"client/src/pages/AIAgents.tsx:456",onClick:()=>u(I),className:"text-xs border rounded-full px-3 py-1.5 hover:bg-muted transition-colors text-left",children:I},z,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/AIAgents.tsx",lineNumber:456,columnNumber:23},this))},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/AIAgents.tsx",lineNumber:454,columnNumber:19},this)]},void 0,!0,{fileName:"/home/ubuntu/nac-admin/client/src/pages/AIAgents.tsx",lineNumber:452,columnNumber:17},this),o.map((I,z)=>b.jsxDEV(mAe,{"data-loc":"client/src/pages/AIAgents.tsx:469",msg:I},z,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/AIAgents.tsx",lineNumber:469,columnNumber:17},this)),C.isPending&&b.jsxDEV("div",{"data-loc":"client/src/pages/AIAgents.tsx:473",className:"flex gap-3",children:[b.jsxDEV("div",{"data-loc":"client/src/pages/AIAgents.tsx:474",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:475",className:"w-4 h-4"},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/AIAgents.tsx",lineNumber:475,columnNumber:21},this)},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/AIAgents.tsx",lineNumber:474,columnNumber:19},this),b.jsxDEV("div",{"data-loc":"client/src/pages/AIAgents.tsx:477",className:"bg-muted rounded-2xl rounded-tl-sm px-4 py-3",children:b.jsxDEV(_r,{"data-loc":"client/src/pages/AIAgents.tsx:478",className:"w-4 h-4 animate-spin text-muted-foreground"},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/AIAgents.tsx",lineNumber:478,columnNumber:21},this)},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/AIAgents.tsx",lineNumber:477,columnNumber:19},this)]},void 0,!0,{fileName:"/home/ubuntu/nac-admin/client/src/pages/AIAgents.tsx",lineNumber:473,columnNumber:17},this),b.jsxDEV("div",{"data-loc":"client/src/pages/AIAgents.tsx:482",ref:g},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/AIAgents.tsx",lineNumber:482,columnNumber:15},this)]},void 0,!0,{fileName:"/home/ubuntu/nac-admin/client/src/pages/AIAgents.tsx",lineNumber:450,columnNumber:13},this),b.jsxDEV("div",{"data-loc":"client/src/pages/AIAgents.tsx:486",className:"border-t p-4 bg-background",children:[b.jsxDEV("div",{"data-loc":"client/src/pages/AIAgents.tsx:487",className:"flex gap-2 items-end",children:[b.jsxDEV(uf,{"data-loc":"client/src/pages/AIAgents.tsx:488",value:c,onChange:I=>u(I.target.value),onKeyDown:R,placeholder:`向${M?.name||"AI助手"}提问... (Enter发送,Shift+Enter换行)`,className:"flex-1 min-h-[60px] max-h-[120px] resize-none text-sm",disabled:C.isPending},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/AIAgents.tsx",lineNumber:488,columnNumber:17},this),b.jsxDEV(rt,{"data-loc":"client/src/pages/AIAgents.tsx:496",onClick:T,disabled:!c.trim()||C.isPending,size:"icon",className:"h-10 w-10 shrink-0",children:C.isPending?b.jsxDEV(_r,{"data-loc":"client/src/pages/AIAgents.tsx:503",className:"w-4 h-4 animate-spin"},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/AIAgents.tsx",lineNumber:503,columnNumber:23},this):b.jsxDEV(Fz,{"data-loc":"client/src/pages/AIAgents.tsx:504",className:"w-4 h-4"},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/AIAgents.tsx",lineNumber:504,columnNumber:23},this)},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/AIAgents.tsx",lineNumber:496,columnNumber:17},this)]},void 0,!0,{fileName:"/home/ubuntu/nac-admin/client/src/pages/AIAgents.tsx",lineNumber:487,columnNumber:15},this),b.jsxDEV("p",{"data-loc":"client/src/pages/AIAgents.tsx:508",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:508,columnNumber:15},this)]},void 0,!0,{fileName:"/home/ubuntu/nac-admin/client/src/pages/AIAgents.tsx",lineNumber:486,columnNumber:13},this)]},void 0,!0,{fileName:"/home/ubuntu/nac-admin/client/src/pages/AIAgents.tsx",lineNumber:396,columnNumber:11},this):b.jsxDEV("div",{"data-loc":"client/src/pages/AIAgents.tsx:368",className:"flex-1 flex items-center justify-center p-8",children:b.jsxDEV("div",{"data-loc":"client/src/pages/AIAgents.tsx:369",className:"text-center max-w-md",children:[b.jsxDEV("div",{"data-loc":"client/src/pages/AIAgents.tsx:370",className:"w-16 h-16 rounded-2xl bg-primary/10 flex items-center justify-center mx-auto mb-4",children:b.jsxDEV(DC,{"data-loc":"client/src/pages/AIAgents.tsx:371",className:"w-8 h-8 text-primary"},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/AIAgents.tsx",lineNumber:371,columnNumber:17},this)},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/AIAgents.tsx",lineNumber:370,columnNumber:15},this),b.jsxDEV("h3",{"data-loc":"client/src/pages/AIAgents.tsx:373",className:"text-lg font-semibold mb-2",children:"NAC AI智能体系统"},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/AIAgents.tsx",lineNumber:373,columnNumber:15},this),b.jsxDEV("p",{"data-loc":"client/src/pages/AIAgents.tsx:374",className:"text-sm text-muted-foreground mb-6",children:"选择左侧的智能体开始对话。对话历史将自动保存到数据库,支持跨会话续接。"},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/AIAgents.tsx",lineNumber:374,columnNumber:15},this),b.jsxDEV("div",{"data-loc":"client/src/pages/AIAgents.tsx:377",className:"grid grid-cols-2 gap-3",children:h?.agents.map(I=>{const z=Qb[I.icon]||Nd;return b.jsxDEV("button",{"data-loc":"client/src/pages/AIAgents.tsx:381",onClick:()=>j(I.type),className:"border rounded-xl p-3 text-left hover:border-primary hover:bg-primary/5 transition-all",children:[b.jsxDEV(z,{"data-loc":"client/src/pages/AIAgents.tsx:386",className:"w-5 h-5 text-primary mb-2"},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/AIAgents.tsx",lineNumber:386,columnNumber:23},this),b.jsxDEV("p",{"data-loc":"client/src/pages/AIAgents.tsx:387",className:"text-sm font-medium",children:I.name},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/AIAgents.tsx",lineNumber:387,columnNumber:23},this),b.jsxDEV("p",{"data-loc":"client/src/pages/AIAgents.tsx:388",className:"text-xs text-muted-foreground mt-0.5 line-clamp-2",children:I.description},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/AIAgents.tsx",lineNumber:388,columnNumber:23},this)]},I.type,!0,{fileName:"/home/ubuntu/nac-admin/client/src/pages/AIAgents.tsx",lineNumber:381,columnNumber:21},this)})},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/AIAgents.tsx",lineNumber:377,columnNumber:15},this)]},void 0,!0,{fileName:"/home/ubuntu/nac-admin/client/src/pages/AIAgents.tsx",lineNumber:369,columnNumber:13},this)},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/AIAgents.tsx",lineNumber:368,columnNumber:11},this)},void 0,!1,{fileName:"/home/ubuntu/nac-admin/client/src/pages/AIAgents.tsx",lineNumber:365,columnNumber:7},this)]},void 0,!0,{fileName:"/home/ubuntu/nac-admin/client/src/pages/AIAgents.tsx",lineNumber:273,columnNumber:5},this)}function gAe({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(Fh,{"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($z,{"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(Fz,{"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 vAe(){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(zz,{"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(__,{"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(gAe,{"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 D8({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 C8({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 T8({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 bAe(e){return e<1e3?`${e}ms`:`${(e/1e3).toFixed(1)}s`}function _8(e){return e?new Date(e).toLocaleString("zh-CN",{timeZone:"Asia/Shanghai"}):"-"}function yAe(){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(__,{"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(OC,{"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(D8,{"data-loc":"client/src/pages/ArchiveManagement.tsx:203",children:[b.jsxDEV(C8,{"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(T8,{"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:_8(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(Fh,{"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:bAe(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(D8,{"data-loc":"client/src/pages/ArchiveManagement.tsx:250",children:[b.jsxDEV(C8,{"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(T8,{"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?_8(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]=P_(),{t:r}=yx(),o=[{path:"/",icon:Qae,label:r("nav.dashboard"),desc:r("dashboard.subtitle").slice(0,8)+"..."},{path:"/knowledge",icon:T_,label:r("nav.knowledgeBase"),desc:r("knowledgeBase.subtitle").slice(0,6)+"..."},{path:"/crawlers",icon:eie,label:r("nav.crawlers"),desc:r("crawlers.subtitle").slice(0,6)+"..."},{path:"/approvals",icon:Fae,label:r("nav.approvalCases"),desc:r("approvals.subtitle").slice(0,6)+"..."},{path:"/tags",icon:Kz,label:r("nav.tagEngine"),desc:r("tagEngine.subtitle").slice(0,6)+"..."},{path:"/protocols",icon:Ch,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:DC,label:"AI智能体",desc:"合规问答·分析"},{path:"/notifications",icon:zz,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(Oie,{"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(Uz,{"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(Wae,{"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(vq,{"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 xAe(){return b.jsxDEV(Die,{"data-loc":"client/src/App.tsx:22",children:[b.jsxDEV(ca,{"data-loc":"client/src/App.tsx:23",path:"/login",component:Tle},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(dSe,{"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(tAe,{"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(iAe,{"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(oAe,{"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(sAe,{"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(cAe,{"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(uAe,{"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(pAe,{"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(vAe,{"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(yAe,{"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:sV},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:sV},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 NAe(){return b.jsxDEV(Cie,{"data-loc":"client/src/App.tsx:42",children:b.jsxDEV(_ie,{"data-loc":"client/src/App.tsx:43",defaultTheme:"dark",children:b.jsxDEV(O_,{"data-loc":"client/src/App.tsx:44",children:[b.jsxDEV(Ute,{"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(xAe,{"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 wAe=()=>"/login",dx=new PW,EG=e=>{!(e instanceof Lh)||typeof window>"u"||!(e.message===Aee)||window.location.pathname!=="/login"&&(window.location.href=wAe())};dx.getQueryCache().subscribe(e=>{if(e.type==="updated"&&e.action.type==="error"){const t=e.query.state.error;EG(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;EG(t),console.error("[API Mutation Error]",t)}});const EAe=et.createClient({links:[UZ({url:"/api/trpc",transformer:us,fetch(e,t){return globalThis.fetch(e,{...t??{},credentials:"include"})}})]});jee.createRoot(document.getElementById("root")).render(b.jsxDEV(et.Provider,{"data-loc":"client/src/main.tsx:59",client:EAe,queryClient:dx,children:b.jsxDEV(IW,{"data-loc":"client/src/main.tsx:60",client:dx,children:b.jsxDEV(NAe,{"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));
|