From c2b864c6c01d1bac18c05a25f8185f4000acdac9 Mon Sep 17 00:00:00 2001 From: sentisso <38100632+sentisso@users.noreply.github.com> Date: Tue, 24 Sep 2024 21:44:42 +0200 Subject: [PATCH] Updates --- ...{index-BAItNVJk.css => index-DGkQz0X2.css} | 2 +- .../{index-CVHWFlzF.js => index-DstgjsQn.js} | 64 ++++---- index.html | 4 +- platforms/etoro.svg | 106 +++++++++++++ platforms/ibkr.svg | 142 ++++++++++++++++++ platforms/patria.png | Bin 0 -> 8460 bytes platforms/portu.svg | 112 ++++++++++++++ platforms/t212.png | Bin 0 -> 61585 bytes platforms/xtb.svg | 98 ++++++++++++ 9 files changed, 493 insertions(+), 35 deletions(-) rename assets/{index-BAItNVJk.css => index-DGkQz0X2.css} (86%) rename assets/{index-CVHWFlzF.js => index-DstgjsQn.js} (91%) create mode 100644 platforms/etoro.svg create mode 100644 platforms/ibkr.svg create mode 100644 platforms/patria.png create mode 100644 platforms/portu.svg create mode 100644 platforms/t212.png create mode 100644 platforms/xtb.svg diff --git a/assets/index-BAItNVJk.css b/assets/index-DGkQz0X2.css similarity index 86% rename from assets/index-BAItNVJk.css rename to assets/index-DGkQz0X2.css index 266f508..080d3b6 100644 --- a/assets/index-BAItNVJk.css +++ b/assets/index-DGkQz0X2.css @@ -1 +1 @@ -*,:before,:after{--tw-border-spacing-x: 0;--tw-border-spacing-y: 0;--tw-translate-x: 0;--tw-translate-y: 0;--tw-rotate: 0;--tw-skew-x: 0;--tw-skew-y: 0;--tw-scale-x: 1;--tw-scale-y: 1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness: proximity;--tw-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width: 0px;--tw-ring-offset-color: #fff;--tw-ring-color: rgb(59 130 246 / .5);--tw-ring-offset-shadow: 0 0 #0000;--tw-ring-shadow: 0 0 #0000;--tw-shadow: 0 0 #0000;--tw-shadow-colored: 0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: ;--tw-contain-size: ;--tw-contain-layout: ;--tw-contain-paint: ;--tw-contain-style: }::backdrop{--tw-border-spacing-x: 0;--tw-border-spacing-y: 0;--tw-translate-x: 0;--tw-translate-y: 0;--tw-rotate: 0;--tw-skew-x: 0;--tw-skew-y: 0;--tw-scale-x: 1;--tw-scale-y: 1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness: proximity;--tw-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width: 0px;--tw-ring-offset-color: #fff;--tw-ring-color: rgb(59 130 246 / .5);--tw-ring-offset-shadow: 0 0 #0000;--tw-ring-shadow: 0 0 #0000;--tw-shadow: 0 0 #0000;--tw-shadow-colored: 0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: ;--tw-contain-size: ;--tw-contain-layout: ;--tw-contain-paint: ;--tw-contain-style: }*,:before,:after{box-sizing:border-box;border-width:0;border-style:solid;border-color:#e5e7eb}:before,:after{--tw-content: ""}html,:host{line-height:1.5;-webkit-text-size-adjust:100%;-moz-tab-size:4;-o-tab-size:4;tab-size:4;font-family:ui-sans-serif,system-ui,sans-serif,"Apple Color Emoji","Segoe UI Emoji",Segoe UI Symbol,"Noto Color Emoji";font-feature-settings:normal;font-variation-settings:normal;-webkit-tap-highlight-color:transparent}body{margin:0;line-height:inherit}hr{height:0;color:inherit;border-top-width:1px}abbr:where([title]){-webkit-text-decoration:underline dotted;text-decoration:underline dotted}h1,h2,h3,h4,h5,h6{font-size:inherit;font-weight:inherit}a{color:inherit;text-decoration:inherit}b,strong{font-weight:bolder}code,kbd,samp,pre{font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,Courier New,monospace;font-feature-settings:normal;font-variation-settings:normal;font-size:1em}small{font-size:80%}sub,sup{font-size:75%;line-height:0;position:relative;vertical-align:baseline}sub{bottom:-.25em}sup{top:-.5em}table{text-indent:0;border-color:inherit;border-collapse:collapse}button,input,optgroup,select,textarea{font-family:inherit;font-feature-settings:inherit;font-variation-settings:inherit;font-size:100%;font-weight:inherit;line-height:inherit;letter-spacing:inherit;color:inherit;margin:0;padding:0}button,select{text-transform:none}button,input:where([type=button]),input:where([type=reset]),input:where([type=submit]){-webkit-appearance:button;background-color:transparent;background-image:none}:-moz-focusring{outline:auto}:-moz-ui-invalid{box-shadow:none}progress{vertical-align:baseline}::-webkit-inner-spin-button,::-webkit-outer-spin-button{height:auto}[type=search]{-webkit-appearance:textfield;outline-offset:-2px}::-webkit-search-decoration{-webkit-appearance:none}::-webkit-file-upload-button{-webkit-appearance:button;font:inherit}summary{display:list-item}blockquote,dl,dd,h1,h2,h3,h4,h5,h6,hr,figure,p,pre{margin:0}fieldset{margin:0;padding:0}legend{padding:0}ol,ul,menu{list-style:none;margin:0;padding:0}dialog{padding:0}textarea{resize:vertical}input::-moz-placeholder,textarea::-moz-placeholder{opacity:1;color:#9ca3af}input::placeholder,textarea::placeholder{opacity:1;color:#9ca3af}button,[role=button]{cursor:pointer}:disabled{cursor:default}img,svg,video,canvas,audio,iframe,embed,object{display:block;vertical-align:middle}img,video{max-width:100%;height:auto}[hidden]{display:none}.fixed{position:fixed}.mx-auto{margin-left:auto;margin-right:auto}.mb-10{margin-bottom:2.5rem}.mb-3{margin-bottom:.75rem}.mb-4{margin-bottom:1rem}.ml-auto{margin-left:auto}.mt-14{margin-top:3.5rem}.flex{display:flex}.max-w-screen-xl{max-width:1280px}.items-center{align-items:center}.bg-white{--tw-bg-opacity: 1;background-color:rgb(255 255 255 / var(--tw-bg-opacity))}.px-3{padding-left:.75rem;padding-right:.75rem}.text-center{text-align:center}.text-2xl{font-size:1.5rem;line-height:2rem}.text-3xl{font-size:1.875rem;line-height:2.25rem}.text-lg{font-size:1.125rem;line-height:1.75rem}.text-sm{font-size:.875rem;line-height:1.25rem}.font-bold{font-weight:700}.text-gray-500{--tw-text-opacity: 1;color:rgb(107 114 128 / var(--tw-text-opacity))} +*,:before,:after{--tw-border-spacing-x: 0;--tw-border-spacing-y: 0;--tw-translate-x: 0;--tw-translate-y: 0;--tw-rotate: 0;--tw-skew-x: 0;--tw-skew-y: 0;--tw-scale-x: 1;--tw-scale-y: 1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness: proximity;--tw-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width: 0px;--tw-ring-offset-color: #fff;--tw-ring-color: rgb(59 130 246 / .5);--tw-ring-offset-shadow: 0 0 #0000;--tw-ring-shadow: 0 0 #0000;--tw-shadow: 0 0 #0000;--tw-shadow-colored: 0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: ;--tw-contain-size: ;--tw-contain-layout: ;--tw-contain-paint: ;--tw-contain-style: }::backdrop{--tw-border-spacing-x: 0;--tw-border-spacing-y: 0;--tw-translate-x: 0;--tw-translate-y: 0;--tw-rotate: 0;--tw-skew-x: 0;--tw-skew-y: 0;--tw-scale-x: 1;--tw-scale-y: 1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness: proximity;--tw-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width: 0px;--tw-ring-offset-color: #fff;--tw-ring-color: rgb(59 130 246 / .5);--tw-ring-offset-shadow: 0 0 #0000;--tw-ring-shadow: 0 0 #0000;--tw-shadow: 0 0 #0000;--tw-shadow-colored: 0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: ;--tw-contain-size: ;--tw-contain-layout: ;--tw-contain-paint: ;--tw-contain-style: }*,:before,:after{box-sizing:border-box;border-width:0;border-style:solid;border-color:#e5e7eb}:before,:after{--tw-content: ""}html,:host{line-height:1.5;-webkit-text-size-adjust:100%;-moz-tab-size:4;-o-tab-size:4;tab-size:4;font-family:ui-sans-serif,system-ui,sans-serif,"Apple Color Emoji","Segoe UI Emoji",Segoe UI Symbol,"Noto Color Emoji";font-feature-settings:normal;font-variation-settings:normal;-webkit-tap-highlight-color:transparent}body{margin:0;line-height:inherit}hr{height:0;color:inherit;border-top-width:1px}abbr:where([title]){-webkit-text-decoration:underline dotted;text-decoration:underline dotted}h1,h2,h3,h4,h5,h6{font-size:inherit;font-weight:inherit}a{color:inherit;text-decoration:inherit}b,strong{font-weight:bolder}code,kbd,samp,pre{font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,Courier New,monospace;font-feature-settings:normal;font-variation-settings:normal;font-size:1em}small{font-size:80%}sub,sup{font-size:75%;line-height:0;position:relative;vertical-align:baseline}sub{bottom:-.25em}sup{top:-.5em}table{text-indent:0;border-color:inherit;border-collapse:collapse}button,input,optgroup,select,textarea{font-family:inherit;font-feature-settings:inherit;font-variation-settings:inherit;font-size:100%;font-weight:inherit;line-height:inherit;letter-spacing:inherit;color:inherit;margin:0;padding:0}button,select{text-transform:none}button,input:where([type=button]),input:where([type=reset]),input:where([type=submit]){-webkit-appearance:button;background-color:transparent;background-image:none}:-moz-focusring{outline:auto}:-moz-ui-invalid{box-shadow:none}progress{vertical-align:baseline}::-webkit-inner-spin-button,::-webkit-outer-spin-button{height:auto}[type=search]{-webkit-appearance:textfield;outline-offset:-2px}::-webkit-search-decoration{-webkit-appearance:none}::-webkit-file-upload-button{-webkit-appearance:button;font:inherit}summary{display:list-item}blockquote,dl,dd,h1,h2,h3,h4,h5,h6,hr,figure,p,pre{margin:0}fieldset{margin:0;padding:0}legend{padding:0}ol,ul,menu{list-style:none;margin:0;padding:0}dialog{padding:0}textarea{resize:vertical}input::-moz-placeholder,textarea::-moz-placeholder{opacity:1;color:#9ca3af}input::placeholder,textarea::placeholder{opacity:1;color:#9ca3af}button,[role=button]{cursor:pointer}:disabled{cursor:default}img,svg,video,canvas,audio,iframe,embed,object{display:block;vertical-align:middle}img,video{max-width:100%;height:auto}[hidden]{display:none}.fixed{position:fixed}.mx-auto{margin-left:auto;margin-right:auto}.mb-10{margin-bottom:2.5rem}.mb-2{margin-bottom:.5rem}.mb-3{margin-bottom:.75rem}.mb-4{margin-bottom:1rem}.ml-auto{margin-left:auto}.mt-14{margin-top:3.5rem}.mt-8{margin-top:2rem}.flex{display:flex}.max-h-8{max-height:2rem}.max-w-40{max-width:10rem}.max-w-screen-xl{max-width:1280px}.items-center{align-items:center}.bg-white{--tw-bg-opacity: 1;background-color:rgb(255 255 255 / var(--tw-bg-opacity))}.px-3{padding-left:.75rem;padding-right:.75rem}.text-center{text-align:center}.text-2xl{font-size:1.5rem;line-height:2rem}.text-3xl{font-size:1.875rem;line-height:2.25rem}.text-lg{font-size:1.125rem;line-height:1.75rem}.text-sm{font-size:.875rem;line-height:1.25rem}.font-bold{font-weight:700}.text-gray-500{--tw-text-opacity: 1;color:rgb(107 114 128 / var(--tw-text-opacity))} diff --git a/assets/index-CVHWFlzF.js b/assets/index-DstgjsQn.js similarity index 91% rename from assets/index-CVHWFlzF.js rename to assets/index-DstgjsQn.js index a0cbfa6..dbc0571 100644 --- a/assets/index-CVHWFlzF.js +++ b/assets/index-DstgjsQn.js @@ -1,4 +1,4 @@ -var y2=Object.defineProperty;var b2=(e,t,n)=>t in e?y2(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n;var tt=(e,t,n)=>b2(e,typeof t!="symbol"?t+"":t,n);function uS(e,t){for(var n=0;nr[i]})}}}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 i of document.querySelectorAll('link[rel="modulepreload"]'))r(i);new MutationObserver(i=>{for(const o of i)if(o.type==="childList")for(const a of o.addedNodes)a.tagName==="LINK"&&a.rel==="modulepreload"&&r(a)}).observe(document,{childList:!0,subtree:!0});function n(i){const o={};return i.integrity&&(o.integrity=i.integrity),i.referrerPolicy&&(o.referrerPolicy=i.referrerPolicy),i.crossOrigin==="use-credentials"?o.credentials="include":i.crossOrigin==="anonymous"?o.credentials="omit":o.credentials="same-origin",o}function r(i){if(i.ep)return;i.ep=!0;const o=n(i);fetch(i.href,o)}})();function Jd(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var dS={exports:{}},ef={},fS={exports:{}},lt={};/** +var y2=Object.defineProperty;var b2=(e,t,n)=>t in e?y2(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n;var tt=(e,t,n)=>b2(e,typeof t!="symbol"?t+"":t,n);function uS(e,t){for(var n=0;nr[i]})}}}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 i of document.querySelectorAll('link[rel="modulepreload"]'))r(i);new MutationObserver(i=>{for(const o of i)if(o.type==="childList")for(const a of o.addedNodes)a.tagName==="LINK"&&a.rel==="modulepreload"&&r(a)}).observe(document,{childList:!0,subtree:!0});function n(i){const o={};return i.integrity&&(o.integrity=i.integrity),i.referrerPolicy&&(o.referrerPolicy=i.referrerPolicy),i.crossOrigin==="use-credentials"?o.credentials="include":i.crossOrigin==="anonymous"?o.credentials="omit":o.credentials="same-origin",o}function r(i){if(i.ep)return;i.ep=!0;const o=n(i);fetch(i.href,o)}})();function Zd(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var dS={exports:{}},Jd={},fS={exports:{}},lt={};/** * @license React * react.production.min.js * @@ -6,7 +6,7 @@ var y2=Object.defineProperty;var b2=(e,t,n)=>t in e?y2(e,t,{enumerable:!0,config * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. - */var wc=Symbol.for("react.element"),x2=Symbol.for("react.portal"),S2=Symbol.for("react.fragment"),C2=Symbol.for("react.strict_mode"),w2=Symbol.for("react.profiler"),E2=Symbol.for("react.provider"),_2=Symbol.for("react.context"),$2=Symbol.for("react.forward_ref"),O2=Symbol.for("react.suspense"),P2=Symbol.for("react.memo"),M2=Symbol.for("react.lazy"),_0=Symbol.iterator;function T2(e){return e===null||typeof e!="object"?null:(e=_0&&e[_0]||e["@@iterator"],typeof e=="function"?e:null)}var hS={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},gS=Object.assign,mS={};function _s(e,t,n){this.props=e,this.context=t,this.refs=mS,this.updater=n||hS}_s.prototype.isReactComponent={};_s.prototype.setState=function(e,t){if(typeof e!="object"&&typeof e!="function"&&e!=null)throw Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,e,t,"setState")};_s.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")};function pS(){}pS.prototype=_s.prototype;function Cp(e,t,n){this.props=e,this.context=t,this.refs=mS,this.updater=n||hS}var wp=Cp.prototype=new pS;wp.constructor=Cp;gS(wp,_s.prototype);wp.isPureReactComponent=!0;var $0=Array.isArray,vS=Object.prototype.hasOwnProperty,Ep={current:null},yS={key:!0,ref:!0,__self:!0,__source:!0};function bS(e,t,n){var r,i={},o=null,a=null;if(t!=null)for(r in t.ref!==void 0&&(a=t.ref),t.key!==void 0&&(o=""+t.key),t)vS.call(t,r)&&!yS.hasOwnProperty(r)&&(i[r]=t[r]);var s=arguments.length-2;if(s===1)i.children=n;else if(1t in e?y2(e,t,{enumerable:!0,config * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. - */var F2=d,A2=Symbol.for("react.element"),L2=Symbol.for("react.fragment"),D2=Object.prototype.hasOwnProperty,z2=F2.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,j2={key:!0,ref:!0,__self:!0,__source:!0};function SS(e,t,n){var r,i={},o=null,a=null;n!==void 0&&(o=""+n),t.key!==void 0&&(o=""+t.key),t.ref!==void 0&&(a=t.ref);for(r in t)D2.call(t,r)&&!j2.hasOwnProperty(r)&&(i[r]=t[r]);if(e&&e.defaultProps)for(r in t=e.defaultProps,t)i[r]===void 0&&(i[r]=t[r]);return{$$typeof:A2,type:e,key:o,ref:a,props:i,_owner:z2.current}}ef.Fragment=L2;ef.jsx=SS;ef.jsxs=SS;dS.exports=ef;var Ce=dS.exports,CS={exports:{}},Cr={},wS={exports:{}},ES={};/** + */var F2=d,A2=Symbol.for("react.element"),L2=Symbol.for("react.fragment"),D2=Object.prototype.hasOwnProperty,z2=F2.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,j2={key:!0,ref:!0,__self:!0,__source:!0};function SS(e,t,n){var r,i={},o=null,a=null;n!==void 0&&(o=""+n),t.key!==void 0&&(o=""+t.key),t.ref!==void 0&&(a=t.ref);for(r in t)D2.call(t,r)&&!j2.hasOwnProperty(r)&&(i[r]=t[r]);if(e&&e.defaultProps)for(r in t=e.defaultProps,t)i[r]===void 0&&(i[r]=t[r]);return{$$typeof:A2,type:e,key:o,ref:a,props:i,_owner:z2.current}}Jd.Fragment=L2;Jd.jsx=SS;Jd.jsxs=SS;dS.exports=Jd;var xe=dS.exports,CS={exports:{}},Cr={},wS={exports:{}},ES={};/** * @license React * scheduler.production.min.js * @@ -30,18 +30,18 @@ var y2=Object.defineProperty;var b2=(e,t,n)=>t in e?y2(e,t,{enumerable:!0,config * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. - */var H2=d,xr=B2;function oe(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,n=1;n"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),cg=Object.prototype.hasOwnProperty,V2=/^[: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]*$/,P0={},M0={};function W2(e){return cg.call(M0,e)?!0:cg.call(P0,e)?!1:V2.test(e)?M0[e]=!0:(P0[e]=!0,!1)}function U2(e,t,n,r){if(n!==null&&n.type===0)return!1;switch(typeof t){case"function":case"symbol":return!0;case"boolean":return r?!1:n!==null?!n.acceptsBooleans:(e=e.toLowerCase().slice(0,5),e!=="data-"&&e!=="aria-");default:return!1}}function G2(e,t,n,r){if(t===null||typeof t>"u"||U2(e,t,n,r))return!0;if(r)return!1;if(n!==null)switch(n.type){case 3:return!t;case 4:return t===!1;case 5:return isNaN(t);case 6:return isNaN(t)||1>t}return!1}function tr(e,t,n,r,i,o,a){this.acceptsBooleans=t===2||t===3||t===4,this.attributeName=r,this.attributeNamespace=i,this.mustUseProperty=n,this.propertyName=e,this.type=t,this.sanitizeURL=o,this.removeEmptyString=a}var jn={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){jn[e]=new tr(e,0,!1,e,null,!1,!1)});[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var t=e[0];jn[t]=new tr(t,1,!1,e[1],null,!1,!1)});["contentEditable","draggable","spellCheck","value"].forEach(function(e){jn[e]=new tr(e,2,!1,e.toLowerCase(),null,!1,!1)});["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){jn[e]=new tr(e,2,!1,e,null,!1,!1)});"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach(function(e){jn[e]=new tr(e,3,!1,e.toLowerCase(),null,!1,!1)});["checked","multiple","muted","selected"].forEach(function(e){jn[e]=new tr(e,3,!0,e,null,!1,!1)});["capture","download"].forEach(function(e){jn[e]=new tr(e,4,!1,e,null,!1,!1)});["cols","rows","size","span"].forEach(function(e){jn[e]=new tr(e,6,!1,e,null,!1,!1)});["rowSpan","start"].forEach(function(e){jn[e]=new tr(e,5,!1,e.toLowerCase(),null,!1,!1)});var $p=/[\-:]([a-z])/g;function Op(e){return e[1].toUpperCase()}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach(function(e){var t=e.replace($p,Op);jn[t]=new tr(t,1,!1,e,null,!1,!1)});"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(e){var t=e.replace($p,Op);jn[t]=new tr(t,1,!1,e,"http://www.w3.org/1999/xlink",!1,!1)});["xml:base","xml:lang","xml:space"].forEach(function(e){var t=e.replace($p,Op);jn[t]=new tr(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)});["tabIndex","crossOrigin"].forEach(function(e){jn[e]=new tr(e,1,!1,e.toLowerCase(),null,!1,!1)});jn.xlinkHref=new tr("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1);["src","href","action","formAction"].forEach(function(e){jn[e]=new tr(e,1,!1,e.toLowerCase(),null,!0,!0)});function Pp(e,t,n,r){var i=jn.hasOwnProperty(t)?jn[t]:null;(i!==null?i.type!==0:r||!(2"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),lg=Object.prototype.hasOwnProperty,V2=/^[: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]*$/,P0={},M0={};function W2(e){return lg.call(M0,e)?!0:lg.call(P0,e)?!1:V2.test(e)?M0[e]=!0:(P0[e]=!0,!1)}function U2(e,t,n,r){if(n!==null&&n.type===0)return!1;switch(typeof t){case"function":case"symbol":return!0;case"boolean":return r?!1:n!==null?!n.acceptsBooleans:(e=e.toLowerCase().slice(0,5),e!=="data-"&&e!=="aria-");default:return!1}}function G2(e,t,n,r){if(t===null||typeof t>"u"||U2(e,t,n,r))return!0;if(r)return!1;if(n!==null)switch(n.type){case 3:return!t;case 4:return t===!1;case 5:return isNaN(t);case 6:return isNaN(t)||1>t}return!1}function tr(e,t,n,r,i,o,a){this.acceptsBooleans=t===2||t===3||t===4,this.attributeName=r,this.attributeNamespace=i,this.mustUseProperty=n,this.propertyName=e,this.type=t,this.sanitizeURL=o,this.removeEmptyString=a}var jn={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){jn[e]=new tr(e,0,!1,e,null,!1,!1)});[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var t=e[0];jn[t]=new tr(t,1,!1,e[1],null,!1,!1)});["contentEditable","draggable","spellCheck","value"].forEach(function(e){jn[e]=new tr(e,2,!1,e.toLowerCase(),null,!1,!1)});["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){jn[e]=new tr(e,2,!1,e,null,!1,!1)});"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach(function(e){jn[e]=new tr(e,3,!1,e.toLowerCase(),null,!1,!1)});["checked","multiple","muted","selected"].forEach(function(e){jn[e]=new tr(e,3,!0,e,null,!1,!1)});["capture","download"].forEach(function(e){jn[e]=new tr(e,4,!1,e,null,!1,!1)});["cols","rows","size","span"].forEach(function(e){jn[e]=new tr(e,6,!1,e,null,!1,!1)});["rowSpan","start"].forEach(function(e){jn[e]=new tr(e,5,!1,e.toLowerCase(),null,!1,!1)});var $p=/[\-:]([a-z])/g;function Op(e){return e[1].toUpperCase()}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach(function(e){var t=e.replace($p,Op);jn[t]=new tr(t,1,!1,e,null,!1,!1)});"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(e){var t=e.replace($p,Op);jn[t]=new tr(t,1,!1,e,"http://www.w3.org/1999/xlink",!1,!1)});["xml:base","xml:lang","xml:space"].forEach(function(e){var t=e.replace($p,Op);jn[t]=new tr(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)});["tabIndex","crossOrigin"].forEach(function(e){jn[e]=new tr(e,1,!1,e.toLowerCase(),null,!1,!1)});jn.xlinkHref=new tr("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1);["src","href","action","formAction"].forEach(function(e){jn[e]=new tr(e,1,!1,e.toLowerCase(),null,!0,!0)});function Pp(e,t,n,r){var i=jn.hasOwnProperty(t)?jn[t]:null;(i!==null?i.type!==0:r||!(2s||i[a]!==o[s]){var l=` -`+i[a].replace(" at new "," at ");return e.displayName&&l.includes("")&&(l=l.replace("",e.displayName)),l}while(1<=a&&0<=s);break}}}finally{Jf=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:"")?rl(e):""}function K2(e){switch(e.tag){case 5:return rl(e.type);case 16:return rl("Lazy");case 13:return rl("Suspense");case 19:return rl("SuspenseList");case 0:case 2:case 15:return e=eh(e.type,!1),e;case 11:return e=eh(e.type.render,!1),e;case 1:return e=eh(e.type,!0),e;default:return""}}function hg(e){if(e==null)return null;if(typeof e=="function")return e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case Da:return"Fragment";case La:return"Portal";case ug:return"Profiler";case Mp:return"StrictMode";case dg:return"Suspense";case fg:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case OS:return(e.displayName||"Context")+".Consumer";case $S:return(e._context.displayName||"Context")+".Provider";case Tp:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case Rp:return t=e.displayName||null,t!==null?t:hg(e.type)||"Memo";case Yi:t=e._payload,e=e._init;try{return hg(e(t))}catch{}}return null}function q2(e){var t=e.type;switch(e.tag){case 24:return"Cache";case 9:return(t.displayName||"Context")+".Consumer";case 10:return(t._context.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return e=t.render,e=e.displayName||e.name||"",t.displayName||(e!==""?"ForwardRef("+e+")":"ForwardRef");case 7:return"Fragment";case 5:return t;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return hg(t);case 8:return t===Mp?"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 17:case 2:case 14:case 15:if(typeof t=="function")return t.displayName||t.name||null;if(typeof t=="string")return t}return null}function xo(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function MS(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function X2(e){var t=MS(e)?"checked":"value",n=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),r=""+e[t];if(!e.hasOwnProperty(t)&&typeof n<"u"&&typeof n.get=="function"&&typeof n.set=="function"){var i=n.get,o=n.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return i.call(this)},set:function(a){r=""+a,o.call(this,a)}}),Object.defineProperty(e,t,{enumerable:n.enumerable}),{getValue:function(){return r},setValue:function(a){r=""+a},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function Wc(e){e._valueTracker||(e._valueTracker=X2(e))}function TS(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=MS(e)?e.checked?"true":"false":e.value),e=r,e!==n?(t.setValue(e),!0):!1}function cd(e){if(e=e||(typeof document<"u"?document:void 0),typeof e>"u")return null;try{return e.activeElement||e.body}catch{return e.body}}function gg(e,t){var n=t.checked;return Jt({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:n??e._wrapperState.initialChecked})}function R0(e,t){var n=t.defaultValue==null?"":t.defaultValue,r=t.checked!=null?t.checked:t.defaultChecked;n=xo(t.value!=null?t.value:n),e._wrapperState={initialChecked:r,initialValue:n,controlled:t.type==="checkbox"||t.type==="radio"?t.checked!=null:t.value!=null}}function RS(e,t){t=t.checked,t!=null&&Pp(e,"checked",t,!1)}function mg(e,t){RS(e,t);var n=xo(t.value),r=t.type;if(n!=null)r==="number"?(n===0&&e.value===""||e.value!=n)&&(e.value=""+n):e.value!==""+n&&(e.value=""+n);else if(r==="submit"||r==="reset"){e.removeAttribute("value");return}t.hasOwnProperty("value")?pg(e,t.type,n):t.hasOwnProperty("defaultValue")&&pg(e,t.type,xo(t.defaultValue)),t.checked==null&&t.defaultChecked!=null&&(e.defaultChecked=!!t.defaultChecked)}function I0(e,t,n){if(t.hasOwnProperty("value")||t.hasOwnProperty("defaultValue")){var r=t.type;if(!(r!=="submit"&&r!=="reset"||t.value!==void 0&&t.value!==null))return;t=""+e._wrapperState.initialValue,n||t===e.value||(e.value=t),e.defaultValue=t}n=e.name,n!==""&&(e.name=""),e.defaultChecked=!!e._wrapperState.initialChecked,n!==""&&(e.name=n)}function pg(e,t,n){(t!=="number"||cd(e.ownerDocument)!==e)&&(n==null?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+n&&(e.defaultValue=""+n))}var il=Array.isArray;function Ja(e,t,n,r){if(e=e.options,t){t={};for(var i=0;i"+t.valueOf().toString()+"",t=Uc.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}});function Dl(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&n.nodeType===3){n.nodeValue=t;return}}e.textContent=t}var gl={animationIterationCount:!0,aspectRatio:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},Y2=["Webkit","ms","Moz","O"];Object.keys(gl).forEach(function(e){Y2.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),gl[t]=gl[e]})});function FS(e,t,n){return t==null||typeof t=="boolean"||t===""?"":n||typeof t!="number"||t===0||gl.hasOwnProperty(e)&&gl[e]?(""+t).trim():t+"px"}function AS(e,t){e=e.style;for(var n in t)if(t.hasOwnProperty(n)){var r=n.indexOf("--")===0,i=FS(n,t[n],r);n==="float"&&(n="cssFloat"),r?e.setProperty(n,i):e[n]=i}}var Q2=Jt({menuitem:!0},{area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0});function bg(e,t){if(t){if(Q2[e]&&(t.children!=null||t.dangerouslySetInnerHTML!=null))throw Error(oe(137,e));if(t.dangerouslySetInnerHTML!=null){if(t.children!=null)throw Error(oe(60));if(typeof t.dangerouslySetInnerHTML!="object"||!("__html"in t.dangerouslySetInnerHTML))throw Error(oe(61))}if(t.style!=null&&typeof t.style!="object")throw Error(oe(62))}}function xg(e,t){if(e.indexOf("-")===-1)return typeof t.is=="string";switch(e){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}}var Sg=null;function Ip(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var Cg=null,es=null,ts=null;function F0(e){if(e=$c(e)){if(typeof Cg!="function")throw Error(oe(280));var t=e.stateNode;t&&(t=sf(t),Cg(e.stateNode,e.type,t))}}function LS(e){es?ts?ts.push(e):ts=[e]:es=e}function DS(){if(es){var e=es,t=ts;if(ts=es=null,F0(e),t)for(e=0;e>>=0,e===0?32:31-(lO(e)/cO|0)|0}var Gc=64,Kc=4194304;function ol(e){switch(e&-e){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: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 e&4194240;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return e&130023424;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return e}}function hd(e,t){var n=e.pendingLanes;if(n===0)return 0;var r=0,i=e.suspendedLanes,o=e.pingedLanes,a=n&268435455;if(a!==0){var s=a&~i;s!==0?r=ol(s):(o&=a,o!==0&&(r=ol(o)))}else a=n&~i,a!==0?r=ol(a):o!==0&&(r=ol(o));if(r===0)return 0;if(t!==0&&t!==r&&!(t&i)&&(i=r&-r,o=t&-t,i>=o||i===16&&(o&4194240)!==0))return t;if(r&4&&(r|=n&16),t=e.entangledLanes,t!==0)for(e=e.entanglements,t&=r;0n;n++)t.push(e);return t}function Ec(e,t,n){e.pendingLanes|=t,t!==536870912&&(e.suspendedLanes=0,e.pingedLanes=0),e=e.eventTimes,t=31-ti(t),e[t]=n}function hO(e,t){var n=e.pendingLanes&~t;e.pendingLanes=t,e.suspendedLanes=0,e.pingedLanes=0,e.expiredLanes&=t,e.mutableReadLanes&=t,e.entangledLanes&=t,t=e.entanglements;var r=e.eventTimes;for(e=e.expirationTimes;0=pl),W0=" ",U0=!1;function iC(e,t){switch(e){case"keyup":return BO.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function oC(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var za=!1;function VO(e,t){switch(e){case"compositionend":return oC(t);case"keypress":return t.which!==32?null:(U0=!0,W0);case"textInput":return e=t.data,e===W0&&U0?null:e;default:return null}}function WO(e,t){if(za)return e==="compositionend"||!jp&&iC(e,t)?(e=nC(),Du=Lp=to=null,za=!1,e):null;switch(e){case"paste":return null;case"keypress":if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1=t)return{node:n,offset:t-e};e=r}e:{for(;n;){if(n.nextSibling){n=n.nextSibling;break e}n=n.parentNode}n=void 0}n=X0(n)}}function cC(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?cC(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function uC(){for(var e=window,t=cd();t instanceof e.HTMLIFrameElement;){try{var n=typeof t.contentWindow.location.href=="string"}catch{n=!1}if(n)e=t.contentWindow;else break;t=cd(e.document)}return t}function Bp(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&(t==="input"&&(e.type==="text"||e.type==="search"||e.type==="tel"||e.type==="url"||e.type==="password")||t==="textarea"||e.contentEditable==="true")}function JO(e){var t=uC(),n=e.focusedElem,r=e.selectionRange;if(t!==n&&n&&n.ownerDocument&&cC(n.ownerDocument.documentElement,n)){if(r!==null&&Bp(n)){if(t=r.start,e=r.end,e===void 0&&(e=t),"selectionStart"in n)n.selectionStart=t,n.selectionEnd=Math.min(e,n.value.length);else if(e=(t=n.ownerDocument||document)&&t.defaultView||window,e.getSelection){e=e.getSelection();var i=n.textContent.length,o=Math.min(r.start,i);r=r.end===void 0?o:Math.min(r.end,i),!e.extend&&o>r&&(i=r,r=o,o=i),i=Y0(n,o);var a=Y0(n,r);i&&a&&(e.rangeCount!==1||e.anchorNode!==i.node||e.anchorOffset!==i.offset||e.focusNode!==a.node||e.focusOffset!==a.offset)&&(t=t.createRange(),t.setStart(i.node,i.offset),e.removeAllRanges(),o>r?(e.addRange(t),e.extend(a.node,a.offset)):(t.setEnd(a.node,a.offset),e.addRange(t)))}}for(t=[],e=n;e=e.parentNode;)e.nodeType===1&&t.push({element:e,left:e.scrollLeft,top:e.scrollTop});for(typeof n.focus=="function"&&n.focus(),n=0;n=document.documentMode,ja=null,Pg=null,yl=null,Mg=!1;function Q0(e,t,n){var r=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;Mg||ja==null||ja!==cd(r)||(r=ja,"selectionStart"in r&&Bp(r)?r={start:r.selectionStart,end:r.selectionEnd}:(r=(r.ownerDocument&&r.ownerDocument.defaultView||window).getSelection(),r={anchorNode:r.anchorNode,anchorOffset:r.anchorOffset,focusNode:r.focusNode,focusOffset:r.focusOffset}),yl&&Wl(yl,r)||(yl=r,r=pd(Pg,"onSelect"),0Va||(e.current=Fg[Va],Fg[Va]=null,Va--)}function zt(e,t){Va++,Fg[Va]=e.current,e.current=t}var So={},qn=Oo(So),ur=Oo(!1),na=So;function us(e,t){var n=e.type.contextTypes;if(!n)return So;var r=e.stateNode;if(r&&r.__reactInternalMemoizedUnmaskedChildContext===t)return r.__reactInternalMemoizedMaskedChildContext;var i={},o;for(o in n)i[o]=t[o];return r&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=i),i}function dr(e){return e=e.childContextTypes,e!=null}function yd(){Ut(ur),Ut(qn)}function iy(e,t,n){if(qn.current!==So)throw Error(oe(168));zt(qn,t),zt(ur,n)}function bC(e,t,n){var r=e.stateNode;if(t=t.childContextTypes,typeof r.getChildContext!="function")return n;r=r.getChildContext();for(var i in r)if(!(i in t))throw Error(oe(108,q2(e)||"Unknown",i));return Jt({},n,r)}function bd(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||So,na=qn.current,zt(qn,e),zt(ur,ur.current),!0}function oy(e,t,n){var r=e.stateNode;if(!r)throw Error(oe(169));n?(e=bC(e,t,na),r.__reactInternalMemoizedMergedChildContext=e,Ut(ur),Ut(qn),zt(qn,e)):Ut(ur),zt(ur,n)}var Pi=null,lf=!1,gh=!1;function xC(e){Pi===null?Pi=[e]:Pi.push(e)}function dP(e){lf=!0,xC(e)}function Po(){if(!gh&&Pi!==null){gh=!0;var e=0,t=Pt;try{var n=Pi;for(Pt=1;e>=a,i-=a,Ti=1<<32-ti(t)+i|n<_?(O=E,E=null):O=E.sibling;var M=h(p,E,x[_],S);if(M===null){E===null&&(E=O);break}e&&E&&M.alternate===null&&t(p,E),g=o(M,g,_),w===null?C=M:w.sibling=M,w=M,E=O}if(_===x.length)return n(p,E),qt&&Do(p,_),C;if(E===null){for(;__?(O=E,E=null):O=E.sibling;var I=h(p,E,M.value,S);if(I===null){E===null&&(E=O);break}e&&E&&I.alternate===null&&t(p,E),g=o(I,g,_),w===null?C=I:w.sibling=I,w=I,E=O}if(M.done)return n(p,E),qt&&Do(p,_),C;if(E===null){for(;!M.done;_++,M=x.next())M=f(p,M.value,S),M!==null&&(g=o(M,g,_),w===null?C=M:w.sibling=M,w=M);return qt&&Do(p,_),C}for(E=r(p,E);!M.done;_++,M=x.next())M=m(E,p,_,M.value,S),M!==null&&(e&&M.alternate!==null&&E.delete(M.key===null?_:M.key),g=o(M,g,_),w===null?C=M:w.sibling=M,w=M);return e&&E.forEach(function(k){return t(p,k)}),qt&&Do(p,_),C}function b(p,g,x,S){if(typeof x=="object"&&x!==null&&x.type===Da&&x.key===null&&(x=x.props.children),typeof x=="object"&&x!==null){switch(x.$$typeof){case Vc:e:{for(var C=x.key,w=g;w!==null;){if(w.key===C){if(C=x.type,C===Da){if(w.tag===7){n(p,w.sibling),g=i(w,x.props.children),g.return=p,p=g;break e}}else if(w.elementType===C||typeof C=="object"&&C!==null&&C.$$typeof===Yi&&ly(C)===w.type){n(p,w.sibling),g=i(w,x.props),g.ref=Vs(p,w,x),g.return=p,p=g;break e}n(p,w);break}else t(p,w);w=w.sibling}x.type===Da?(g=Zo(x.props.children,p.mode,S,x.key),g.return=p,p=g):(S=Gu(x.type,x.key,x.props,null,p.mode,S),S.ref=Vs(p,g,x),S.return=p,p=S)}return a(p);case La:e:{for(w=x.key;g!==null;){if(g.key===w)if(g.tag===4&&g.stateNode.containerInfo===x.containerInfo&&g.stateNode.implementation===x.implementation){n(p,g.sibling),g=i(g,x.children||[]),g.return=p,p=g;break e}else{n(p,g);break}else t(p,g);g=g.sibling}g=Ch(x,p.mode,S),g.return=p,p=g}return a(p);case Yi:return w=x._init,b(p,g,w(x._payload),S)}if(il(x))return y(p,g,x,S);if(Ds(x))return v(p,g,x,S);eu(p,x)}return typeof x=="string"&&x!==""||typeof x=="number"?(x=""+x,g!==null&&g.tag===6?(n(p,g.sibling),g=i(g,x),g.return=p,p=g):(n(p,g),g=Sh(x,p.mode,S),g.return=p,p=g),a(p)):n(p,g)}return b}var fs=EC(!0),_C=EC(!1),Cd=Oo(null),wd=null,Ga=null,Up=null;function Gp(){Up=Ga=wd=null}function Kp(e){var t=Cd.current;Ut(Cd),e._currentValue=t}function Dg(e,t,n){for(;e!==null;){var r=e.alternate;if((e.childLanes&t)!==t?(e.childLanes|=t,r!==null&&(r.childLanes|=t)):r!==null&&(r.childLanes&t)!==t&&(r.childLanes|=t),e===n)break;e=e.return}}function rs(e,t){wd=e,Up=Ga=null,e=e.dependencies,e!==null&&e.firstContext!==null&&(e.lanes&t&&(cr=!0),e.firstContext=null)}function Dr(e){var t=e._currentValue;if(Up!==e)if(e={context:e,memoizedValue:t,next:null},Ga===null){if(wd===null)throw Error(oe(308));Ga=e,wd.dependencies={lanes:0,firstContext:e}}else Ga=Ga.next=e;return t}var Wo=null;function qp(e){Wo===null?Wo=[e]:Wo.push(e)}function $C(e,t,n,r){var i=t.interleaved;return i===null?(n.next=n,qp(t)):(n.next=i.next,i.next=n),t.interleaved=n,Li(e,r)}function Li(e,t){e.lanes|=t;var n=e.alternate;for(n!==null&&(n.lanes|=t),n=e,e=e.return;e!==null;)e.childLanes|=t,n=e.alternate,n!==null&&(n.childLanes|=t),n=e,e=e.return;return n.tag===3?n.stateNode:null}var Qi=!1;function Xp(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function OC(e,t){e=e.updateQueue,t.updateQueue===e&&(t.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,effects:e.effects})}function Ii(e,t){return{eventTime:e,lane:t,tag:0,payload:null,callback:null,next:null}}function ho(e,t,n){var r=e.updateQueue;if(r===null)return null;if(r=r.shared,yt&2){var i=r.pending;return i===null?t.next=t:(t.next=i.next,i.next=t),r.pending=t,Li(e,n)}return i=r.interleaved,i===null?(t.next=t,qp(r)):(t.next=i.next,i.next=t),r.interleaved=t,Li(e,n)}function ju(e,t,n){if(t=t.updateQueue,t!==null&&(t=t.shared,(n&4194240)!==0)){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,Np(e,n)}}function cy(e,t){var n=e.updateQueue,r=e.alternate;if(r!==null&&(r=r.updateQueue,n===r)){var i=null,o=null;if(n=n.firstBaseUpdate,n!==null){do{var a={eventTime:n.eventTime,lane:n.lane,tag:n.tag,payload:n.payload,callback:n.callback,next:null};o===null?i=o=a:o=o.next=a,n=n.next}while(n!==null);o===null?i=o=t:o=o.next=t}else i=o=t;n={baseState:r.baseState,firstBaseUpdate:i,lastBaseUpdate:o,shared:r.shared,effects:r.effects},e.updateQueue=n;return}e=n.lastBaseUpdate,e===null?n.firstBaseUpdate=t:e.next=t,n.lastBaseUpdate=t}function Ed(e,t,n,r){var i=e.updateQueue;Qi=!1;var o=i.firstBaseUpdate,a=i.lastBaseUpdate,s=i.shared.pending;if(s!==null){i.shared.pending=null;var l=s,c=l.next;l.next=null,a===null?o=c:a.next=c,a=l;var u=e.alternate;u!==null&&(u=u.updateQueue,s=u.lastBaseUpdate,s!==a&&(s===null?u.firstBaseUpdate=c:s.next=c,u.lastBaseUpdate=l))}if(o!==null){var f=i.baseState;a=0,u=c=l=null,s=o;do{var h=s.lane,m=s.eventTime;if((r&h)===h){u!==null&&(u=u.next={eventTime:m,lane:0,tag:s.tag,payload:s.payload,callback:s.callback,next:null});e:{var y=e,v=s;switch(h=t,m=n,v.tag){case 1:if(y=v.payload,typeof y=="function"){f=y.call(m,f,h);break e}f=y;break e;case 3:y.flags=y.flags&-65537|128;case 0:if(y=v.payload,h=typeof y=="function"?y.call(m,f,h):y,h==null)break e;f=Jt({},f,h);break e;case 2:Qi=!0}}s.callback!==null&&s.lane!==0&&(e.flags|=64,h=i.effects,h===null?i.effects=[s]:h.push(s))}else m={eventTime:m,lane:h,tag:s.tag,payload:s.payload,callback:s.callback,next:null},u===null?(c=u=m,l=f):u=u.next=m,a|=h;if(s=s.next,s===null){if(s=i.shared.pending,s===null)break;h=s,s=h.next,h.next=null,i.lastBaseUpdate=h,i.shared.pending=null}}while(!0);if(u===null&&(l=f),i.baseState=l,i.firstBaseUpdate=c,i.lastBaseUpdate=u,t=i.shared.interleaved,t!==null){i=t;do a|=i.lane,i=i.next;while(i!==t)}else o===null&&(i.shared.lanes=0);oa|=a,e.lanes=a,e.memoizedState=f}}function uy(e,t,n){if(e=t.effects,t.effects=null,e!==null)for(t=0;tn?n:4,e(!0);var r=ph.transition;ph.transition={};try{e(!1),t()}finally{Pt=n,ph.transition=r}}function WC(){return zr().memoizedState}function mP(e,t,n){var r=mo(e);if(n={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null},UC(e))GC(t,n);else if(n=$C(e,t,n,r),n!==null){var i=Zn();ni(n,e,r,i),KC(n,t,r)}}function pP(e,t,n){var r=mo(e),i={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null};if(UC(e))GC(t,i);else{var o=e.alternate;if(e.lanes===0&&(o===null||o.lanes===0)&&(o=t.lastRenderedReducer,o!==null))try{var a=t.lastRenderedState,s=o(a,n);if(i.hasEagerState=!0,i.eagerState=s,oi(s,a)){var l=t.interleaved;l===null?(i.next=i,qp(t)):(i.next=l.next,l.next=i),t.interleaved=i;return}}catch{}finally{}n=$C(e,t,i,r),n!==null&&(i=Zn(),ni(n,e,r,i),KC(n,t,r))}}function UC(e){var t=e.alternate;return e===Zt||t!==null&&t===Zt}function GC(e,t){bl=$d=!0;var n=e.pending;n===null?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function KC(e,t,n){if(n&4194240){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,Np(e,n)}}var Od={readContext:Dr,useCallback:Hn,useContext:Hn,useEffect:Hn,useImperativeHandle:Hn,useInsertionEffect:Hn,useLayoutEffect:Hn,useMemo:Hn,useReducer:Hn,useRef:Hn,useState:Hn,useDebugValue:Hn,useDeferredValue:Hn,useTransition:Hn,useMutableSource:Hn,useSyncExternalStore:Hn,useId:Hn,unstable_isNewReconciler:!1},vP={readContext:Dr,useCallback:function(e,t){return fi().memoizedState=[e,t===void 0?null:t],e},useContext:Dr,useEffect:fy,useImperativeHandle:function(e,t,n){return n=n!=null?n.concat([e]):null,Hu(4194308,4,zC.bind(null,t,e),n)},useLayoutEffect:function(e,t){return Hu(4194308,4,e,t)},useInsertionEffect:function(e,t){return Hu(4,2,e,t)},useMemo:function(e,t){var n=fi();return t=t===void 0?null:t,e=e(),n.memoizedState=[e,t],e},useReducer:function(e,t,n){var r=fi();return t=n!==void 0?n(t):t,r.memoizedState=r.baseState=t,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:t},r.queue=e,e=e.dispatch=mP.bind(null,Zt,e),[r.memoizedState,e]},useRef:function(e){var t=fi();return e={current:e},t.memoizedState=e},useState:dy,useDebugValue:rv,useDeferredValue:function(e){return fi().memoizedState=e},useTransition:function(){var e=dy(!1),t=e[0];return e=gP.bind(null,e[1]),fi().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,n){var r=Zt,i=fi();if(qt){if(n===void 0)throw Error(oe(407));n=n()}else{if(n=t(),kn===null)throw Error(oe(349));ia&30||RC(r,t,n)}i.memoizedState=n;var o={value:n,getSnapshot:t};return i.queue=o,fy(kC.bind(null,r,o,e),[e]),r.flags|=2048,Zl(9,IC.bind(null,r,o,n,t),void 0,null),n},useId:function(){var e=fi(),t=kn.identifierPrefix;if(qt){var n=Ri,r=Ti;n=(r&~(1<<32-ti(r)-1)).toString(32)+n,t=":"+t+"R"+n,n=Yl++,0")&&(l=l.replace("",e.displayName)),l}while(1<=a&&0<=s);break}}}finally{Zf=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:"")?rl(e):""}function K2(e){switch(e.tag){case 5:return rl(e.type);case 16:return rl("Lazy");case 13:return rl("Suspense");case 19:return rl("SuspenseList");case 0:case 2:case 15:return e=Jf(e.type,!1),e;case 11:return e=Jf(e.type.render,!1),e;case 1:return e=Jf(e.type,!0),e;default:return""}}function fg(e){if(e==null)return null;if(typeof e=="function")return e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case Da:return"Fragment";case La:return"Portal";case cg:return"Profiler";case Mp:return"StrictMode";case ug:return"Suspense";case dg:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case OS:return(e.displayName||"Context")+".Consumer";case $S:return(e._context.displayName||"Context")+".Provider";case Tp:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case Rp:return t=e.displayName||null,t!==null?t:fg(e.type)||"Memo";case Yi:t=e._payload,e=e._init;try{return fg(e(t))}catch{}}return null}function q2(e){var t=e.type;switch(e.tag){case 24:return"Cache";case 9:return(t.displayName||"Context")+".Consumer";case 10:return(t._context.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return e=t.render,e=e.displayName||e.name||"",t.displayName||(e!==""?"ForwardRef("+e+")":"ForwardRef");case 7:return"Fragment";case 5:return t;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return fg(t);case 8:return t===Mp?"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 17:case 2:case 14:case 15:if(typeof t=="function")return t.displayName||t.name||null;if(typeof t=="string")return t}return null}function xo(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function MS(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function X2(e){var t=MS(e)?"checked":"value",n=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),r=""+e[t];if(!e.hasOwnProperty(t)&&typeof n<"u"&&typeof n.get=="function"&&typeof n.set=="function"){var i=n.get,o=n.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return i.call(this)},set:function(a){r=""+a,o.call(this,a)}}),Object.defineProperty(e,t,{enumerable:n.enumerable}),{getValue:function(){return r},setValue:function(a){r=""+a},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function Wc(e){e._valueTracker||(e._valueTracker=X2(e))}function TS(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=MS(e)?e.checked?"true":"false":e.value),e=r,e!==n?(t.setValue(e),!0):!1}function cd(e){if(e=e||(typeof document<"u"?document:void 0),typeof e>"u")return null;try{return e.activeElement||e.body}catch{return e.body}}function hg(e,t){var n=t.checked;return Jt({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:n??e._wrapperState.initialChecked})}function R0(e,t){var n=t.defaultValue==null?"":t.defaultValue,r=t.checked!=null?t.checked:t.defaultChecked;n=xo(t.value!=null?t.value:n),e._wrapperState={initialChecked:r,initialValue:n,controlled:t.type==="checkbox"||t.type==="radio"?t.checked!=null:t.value!=null}}function RS(e,t){t=t.checked,t!=null&&Pp(e,"checked",t,!1)}function gg(e,t){RS(e,t);var n=xo(t.value),r=t.type;if(n!=null)r==="number"?(n===0&&e.value===""||e.value!=n)&&(e.value=""+n):e.value!==""+n&&(e.value=""+n);else if(r==="submit"||r==="reset"){e.removeAttribute("value");return}t.hasOwnProperty("value")?mg(e,t.type,n):t.hasOwnProperty("defaultValue")&&mg(e,t.type,xo(t.defaultValue)),t.checked==null&&t.defaultChecked!=null&&(e.defaultChecked=!!t.defaultChecked)}function I0(e,t,n){if(t.hasOwnProperty("value")||t.hasOwnProperty("defaultValue")){var r=t.type;if(!(r!=="submit"&&r!=="reset"||t.value!==void 0&&t.value!==null))return;t=""+e._wrapperState.initialValue,n||t===e.value||(e.value=t),e.defaultValue=t}n=e.name,n!==""&&(e.name=""),e.defaultChecked=!!e._wrapperState.initialChecked,n!==""&&(e.name=n)}function mg(e,t,n){(t!=="number"||cd(e.ownerDocument)!==e)&&(n==null?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+n&&(e.defaultValue=""+n))}var il=Array.isArray;function Ja(e,t,n,r){if(e=e.options,t){t={};for(var i=0;i"+t.valueOf().toString()+"",t=Uc.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}});function Dl(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&n.nodeType===3){n.nodeValue=t;return}}e.textContent=t}var gl={animationIterationCount:!0,aspectRatio:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},Y2=["Webkit","ms","Moz","O"];Object.keys(gl).forEach(function(e){Y2.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),gl[t]=gl[e]})});function FS(e,t,n){return t==null||typeof t=="boolean"||t===""?"":n||typeof t!="number"||t===0||gl.hasOwnProperty(e)&&gl[e]?(""+t).trim():t+"px"}function AS(e,t){e=e.style;for(var n in t)if(t.hasOwnProperty(n)){var r=n.indexOf("--")===0,i=FS(n,t[n],r);n==="float"&&(n="cssFloat"),r?e.setProperty(n,i):e[n]=i}}var Q2=Jt({menuitem:!0},{area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0});function yg(e,t){if(t){if(Q2[e]&&(t.children!=null||t.dangerouslySetInnerHTML!=null))throw Error(oe(137,e));if(t.dangerouslySetInnerHTML!=null){if(t.children!=null)throw Error(oe(60));if(typeof t.dangerouslySetInnerHTML!="object"||!("__html"in t.dangerouslySetInnerHTML))throw Error(oe(61))}if(t.style!=null&&typeof t.style!="object")throw Error(oe(62))}}function bg(e,t){if(e.indexOf("-")===-1)return typeof t.is=="string";switch(e){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}}var xg=null;function Ip(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var Sg=null,es=null,ts=null;function F0(e){if(e=$c(e)){if(typeof Sg!="function")throw Error(oe(280));var t=e.stateNode;t&&(t=af(t),Sg(e.stateNode,e.type,t))}}function LS(e){es?ts?ts.push(e):ts=[e]:es=e}function DS(){if(es){var e=es,t=ts;if(ts=es=null,F0(e),t)for(e=0;e>>=0,e===0?32:31-(lO(e)/cO|0)|0}var Gc=64,Kc=4194304;function ol(e){switch(e&-e){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: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 e&4194240;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return e&130023424;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return e}}function hd(e,t){var n=e.pendingLanes;if(n===0)return 0;var r=0,i=e.suspendedLanes,o=e.pingedLanes,a=n&268435455;if(a!==0){var s=a&~i;s!==0?r=ol(s):(o&=a,o!==0&&(r=ol(o)))}else a=n&~i,a!==0?r=ol(a):o!==0&&(r=ol(o));if(r===0)return 0;if(t!==0&&t!==r&&!(t&i)&&(i=r&-r,o=t&-t,i>=o||i===16&&(o&4194240)!==0))return t;if(r&4&&(r|=n&16),t=e.entangledLanes,t!==0)for(e=e.entanglements,t&=r;0n;n++)t.push(e);return t}function Ec(e,t,n){e.pendingLanes|=t,t!==536870912&&(e.suspendedLanes=0,e.pingedLanes=0),e=e.eventTimes,t=31-ti(t),e[t]=n}function hO(e,t){var n=e.pendingLanes&~t;e.pendingLanes=t,e.suspendedLanes=0,e.pingedLanes=0,e.expiredLanes&=t,e.mutableReadLanes&=t,e.entangledLanes&=t,t=e.entanglements;var r=e.eventTimes;for(e=e.expirationTimes;0=pl),W0=" ",U0=!1;function iC(e,t){switch(e){case"keyup":return BO.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function oC(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var za=!1;function VO(e,t){switch(e){case"compositionend":return oC(t);case"keypress":return t.which!==32?null:(U0=!0,W0);case"textInput":return e=t.data,e===W0&&U0?null:e;default:return null}}function WO(e,t){if(za)return e==="compositionend"||!jp&&iC(e,t)?(e=nC(),Du=Lp=to=null,za=!1,e):null;switch(e){case"paste":return null;case"keypress":if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1=t)return{node:n,offset:t-e};e=r}e:{for(;n;){if(n.nextSibling){n=n.nextSibling;break e}n=n.parentNode}n=void 0}n=X0(n)}}function cC(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?cC(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function uC(){for(var e=window,t=cd();t instanceof e.HTMLIFrameElement;){try{var n=typeof t.contentWindow.location.href=="string"}catch{n=!1}if(n)e=t.contentWindow;else break;t=cd(e.document)}return t}function Bp(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&(t==="input"&&(e.type==="text"||e.type==="search"||e.type==="tel"||e.type==="url"||e.type==="password")||t==="textarea"||e.contentEditable==="true")}function JO(e){var t=uC(),n=e.focusedElem,r=e.selectionRange;if(t!==n&&n&&n.ownerDocument&&cC(n.ownerDocument.documentElement,n)){if(r!==null&&Bp(n)){if(t=r.start,e=r.end,e===void 0&&(e=t),"selectionStart"in n)n.selectionStart=t,n.selectionEnd=Math.min(e,n.value.length);else if(e=(t=n.ownerDocument||document)&&t.defaultView||window,e.getSelection){e=e.getSelection();var i=n.textContent.length,o=Math.min(r.start,i);r=r.end===void 0?o:Math.min(r.end,i),!e.extend&&o>r&&(i=r,r=o,o=i),i=Y0(n,o);var a=Y0(n,r);i&&a&&(e.rangeCount!==1||e.anchorNode!==i.node||e.anchorOffset!==i.offset||e.focusNode!==a.node||e.focusOffset!==a.offset)&&(t=t.createRange(),t.setStart(i.node,i.offset),e.removeAllRanges(),o>r?(e.addRange(t),e.extend(a.node,a.offset)):(t.setEnd(a.node,a.offset),e.addRange(t)))}}for(t=[],e=n;e=e.parentNode;)e.nodeType===1&&t.push({element:e,left:e.scrollLeft,top:e.scrollTop});for(typeof n.focus=="function"&&n.focus(),n=0;n=document.documentMode,ja=null,Og=null,yl=null,Pg=!1;function Q0(e,t,n){var r=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;Pg||ja==null||ja!==cd(r)||(r=ja,"selectionStart"in r&&Bp(r)?r={start:r.selectionStart,end:r.selectionEnd}:(r=(r.ownerDocument&&r.ownerDocument.defaultView||window).getSelection(),r={anchorNode:r.anchorNode,anchorOffset:r.anchorOffset,focusNode:r.focusNode,focusOffset:r.focusOffset}),yl&&Wl(yl,r)||(yl=r,r=pd(Og,"onSelect"),0Va||(e.current=Ng[Va],Ng[Va]=null,Va--)}function zt(e,t){Va++,Ng[Va]=e.current,e.current=t}var So={},qn=Oo(So),ur=Oo(!1),na=So;function us(e,t){var n=e.type.contextTypes;if(!n)return So;var r=e.stateNode;if(r&&r.__reactInternalMemoizedUnmaskedChildContext===t)return r.__reactInternalMemoizedMaskedChildContext;var i={},o;for(o in n)i[o]=t[o];return r&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=i),i}function dr(e){return e=e.childContextTypes,e!=null}function yd(){Ut(ur),Ut(qn)}function iy(e,t,n){if(qn.current!==So)throw Error(oe(168));zt(qn,t),zt(ur,n)}function bC(e,t,n){var r=e.stateNode;if(t=t.childContextTypes,typeof r.getChildContext!="function")return n;r=r.getChildContext();for(var i in r)if(!(i in t))throw Error(oe(108,q2(e)||"Unknown",i));return Jt({},n,r)}function bd(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||So,na=qn.current,zt(qn,e),zt(ur,ur.current),!0}function oy(e,t,n){var r=e.stateNode;if(!r)throw Error(oe(169));n?(e=bC(e,t,na),r.__reactInternalMemoizedMergedChildContext=e,Ut(ur),Ut(qn),zt(qn,e)):Ut(ur),zt(ur,n)}var Pi=null,sf=!1,hh=!1;function xC(e){Pi===null?Pi=[e]:Pi.push(e)}function dP(e){sf=!0,xC(e)}function Po(){if(!hh&&Pi!==null){hh=!0;var e=0,t=Pt;try{var n=Pi;for(Pt=1;e>=a,i-=a,Ti=1<<32-ti(t)+i|n<_?(O=E,E=null):O=E.sibling;var M=h(p,E,x[_],S);if(M===null){E===null&&(E=O);break}e&&E&&M.alternate===null&&t(p,E),g=o(M,g,_),w===null?C=M:w.sibling=M,w=M,E=O}if(_===x.length)return n(p,E),qt&&Do(p,_),C;if(E===null){for(;__?(O=E,E=null):O=E.sibling;var I=h(p,E,M.value,S);if(I===null){E===null&&(E=O);break}e&&E&&I.alternate===null&&t(p,E),g=o(I,g,_),w===null?C=I:w.sibling=I,w=I,E=O}if(M.done)return n(p,E),qt&&Do(p,_),C;if(E===null){for(;!M.done;_++,M=x.next())M=f(p,M.value,S),M!==null&&(g=o(M,g,_),w===null?C=M:w.sibling=M,w=M);return qt&&Do(p,_),C}for(E=r(p,E);!M.done;_++,M=x.next())M=m(E,p,_,M.value,S),M!==null&&(e&&M.alternate!==null&&E.delete(M.key===null?_:M.key),g=o(M,g,_),w===null?C=M:w.sibling=M,w=M);return e&&E.forEach(function(k){return t(p,k)}),qt&&Do(p,_),C}function b(p,g,x,S){if(typeof x=="object"&&x!==null&&x.type===Da&&x.key===null&&(x=x.props.children),typeof x=="object"&&x!==null){switch(x.$$typeof){case Vc:e:{for(var C=x.key,w=g;w!==null;){if(w.key===C){if(C=x.type,C===Da){if(w.tag===7){n(p,w.sibling),g=i(w,x.props.children),g.return=p,p=g;break e}}else if(w.elementType===C||typeof C=="object"&&C!==null&&C.$$typeof===Yi&&ly(C)===w.type){n(p,w.sibling),g=i(w,x.props),g.ref=Vs(p,w,x),g.return=p,p=g;break e}n(p,w);break}else t(p,w);w=w.sibling}x.type===Da?(g=Zo(x.props.children,p.mode,S,x.key),g.return=p,p=g):(S=Gu(x.type,x.key,x.props,null,p.mode,S),S.ref=Vs(p,g,x),S.return=p,p=S)}return a(p);case La:e:{for(w=x.key;g!==null;){if(g.key===w)if(g.tag===4&&g.stateNode.containerInfo===x.containerInfo&&g.stateNode.implementation===x.implementation){n(p,g.sibling),g=i(g,x.children||[]),g.return=p,p=g;break e}else{n(p,g);break}else t(p,g);g=g.sibling}g=Sh(x,p.mode,S),g.return=p,p=g}return a(p);case Yi:return w=x._init,b(p,g,w(x._payload),S)}if(il(x))return y(p,g,x,S);if(Ds(x))return v(p,g,x,S);eu(p,x)}return typeof x=="string"&&x!==""||typeof x=="number"?(x=""+x,g!==null&&g.tag===6?(n(p,g.sibling),g=i(g,x),g.return=p,p=g):(n(p,g),g=xh(x,p.mode,S),g.return=p,p=g),a(p)):n(p,g)}return b}var fs=EC(!0),_C=EC(!1),Cd=Oo(null),wd=null,Ga=null,Up=null;function Gp(){Up=Ga=wd=null}function Kp(e){var t=Cd.current;Ut(Cd),e._currentValue=t}function Lg(e,t,n){for(;e!==null;){var r=e.alternate;if((e.childLanes&t)!==t?(e.childLanes|=t,r!==null&&(r.childLanes|=t)):r!==null&&(r.childLanes&t)!==t&&(r.childLanes|=t),e===n)break;e=e.return}}function rs(e,t){wd=e,Up=Ga=null,e=e.dependencies,e!==null&&e.firstContext!==null&&(e.lanes&t&&(cr=!0),e.firstContext=null)}function Dr(e){var t=e._currentValue;if(Up!==e)if(e={context:e,memoizedValue:t,next:null},Ga===null){if(wd===null)throw Error(oe(308));Ga=e,wd.dependencies={lanes:0,firstContext:e}}else Ga=Ga.next=e;return t}var Vo=null;function qp(e){Vo===null?Vo=[e]:Vo.push(e)}function $C(e,t,n,r){var i=t.interleaved;return i===null?(n.next=n,qp(t)):(n.next=i.next,i.next=n),t.interleaved=n,Li(e,r)}function Li(e,t){e.lanes|=t;var n=e.alternate;for(n!==null&&(n.lanes|=t),n=e,e=e.return;e!==null;)e.childLanes|=t,n=e.alternate,n!==null&&(n.childLanes|=t),n=e,e=e.return;return n.tag===3?n.stateNode:null}var Qi=!1;function Xp(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function OC(e,t){e=e.updateQueue,t.updateQueue===e&&(t.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,effects:e.effects})}function Ii(e,t){return{eventTime:e,lane:t,tag:0,payload:null,callback:null,next:null}}function ho(e,t,n){var r=e.updateQueue;if(r===null)return null;if(r=r.shared,yt&2){var i=r.pending;return i===null?t.next=t:(t.next=i.next,i.next=t),r.pending=t,Li(e,n)}return i=r.interleaved,i===null?(t.next=t,qp(r)):(t.next=i.next,i.next=t),r.interleaved=t,Li(e,n)}function ju(e,t,n){if(t=t.updateQueue,t!==null&&(t=t.shared,(n&4194240)!==0)){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,Np(e,n)}}function cy(e,t){var n=e.updateQueue,r=e.alternate;if(r!==null&&(r=r.updateQueue,n===r)){var i=null,o=null;if(n=n.firstBaseUpdate,n!==null){do{var a={eventTime:n.eventTime,lane:n.lane,tag:n.tag,payload:n.payload,callback:n.callback,next:null};o===null?i=o=a:o=o.next=a,n=n.next}while(n!==null);o===null?i=o=t:o=o.next=t}else i=o=t;n={baseState:r.baseState,firstBaseUpdate:i,lastBaseUpdate:o,shared:r.shared,effects:r.effects},e.updateQueue=n;return}e=n.lastBaseUpdate,e===null?n.firstBaseUpdate=t:e.next=t,n.lastBaseUpdate=t}function Ed(e,t,n,r){var i=e.updateQueue;Qi=!1;var o=i.firstBaseUpdate,a=i.lastBaseUpdate,s=i.shared.pending;if(s!==null){i.shared.pending=null;var l=s,c=l.next;l.next=null,a===null?o=c:a.next=c,a=l;var u=e.alternate;u!==null&&(u=u.updateQueue,s=u.lastBaseUpdate,s!==a&&(s===null?u.firstBaseUpdate=c:s.next=c,u.lastBaseUpdate=l))}if(o!==null){var f=i.baseState;a=0,u=c=l=null,s=o;do{var h=s.lane,m=s.eventTime;if((r&h)===h){u!==null&&(u=u.next={eventTime:m,lane:0,tag:s.tag,payload:s.payload,callback:s.callback,next:null});e:{var y=e,v=s;switch(h=t,m=n,v.tag){case 1:if(y=v.payload,typeof y=="function"){f=y.call(m,f,h);break e}f=y;break e;case 3:y.flags=y.flags&-65537|128;case 0:if(y=v.payload,h=typeof y=="function"?y.call(m,f,h):y,h==null)break e;f=Jt({},f,h);break e;case 2:Qi=!0}}s.callback!==null&&s.lane!==0&&(e.flags|=64,h=i.effects,h===null?i.effects=[s]:h.push(s))}else m={eventTime:m,lane:h,tag:s.tag,payload:s.payload,callback:s.callback,next:null},u===null?(c=u=m,l=f):u=u.next=m,a|=h;if(s=s.next,s===null){if(s=i.shared.pending,s===null)break;h=s,s=h.next,h.next=null,i.lastBaseUpdate=h,i.shared.pending=null}}while(!0);if(u===null&&(l=f),i.baseState=l,i.firstBaseUpdate=c,i.lastBaseUpdate=u,t=i.shared.interleaved,t!==null){i=t;do a|=i.lane,i=i.next;while(i!==t)}else o===null&&(i.shared.lanes=0);oa|=a,e.lanes=a,e.memoizedState=f}}function uy(e,t,n){if(e=t.effects,t.effects=null,e!==null)for(t=0;tn?n:4,e(!0);var r=mh.transition;mh.transition={};try{e(!1),t()}finally{Pt=n,mh.transition=r}}function WC(){return zr().memoizedState}function mP(e,t,n){var r=mo(e);if(n={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null},UC(e))GC(t,n);else if(n=$C(e,t,n,r),n!==null){var i=Zn();ni(n,e,r,i),KC(n,t,r)}}function pP(e,t,n){var r=mo(e),i={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null};if(UC(e))GC(t,i);else{var o=e.alternate;if(e.lanes===0&&(o===null||o.lanes===0)&&(o=t.lastRenderedReducer,o!==null))try{var a=t.lastRenderedState,s=o(a,n);if(i.hasEagerState=!0,i.eagerState=s,oi(s,a)){var l=t.interleaved;l===null?(i.next=i,qp(t)):(i.next=l.next,l.next=i),t.interleaved=i;return}}catch{}finally{}n=$C(e,t,i,r),n!==null&&(i=Zn(),ni(n,e,r,i),KC(n,t,r))}}function UC(e){var t=e.alternate;return e===Zt||t!==null&&t===Zt}function GC(e,t){bl=$d=!0;var n=e.pending;n===null?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function KC(e,t,n){if(n&4194240){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,Np(e,n)}}var Od={readContext:Dr,useCallback:Hn,useContext:Hn,useEffect:Hn,useImperativeHandle:Hn,useInsertionEffect:Hn,useLayoutEffect:Hn,useMemo:Hn,useReducer:Hn,useRef:Hn,useState:Hn,useDebugValue:Hn,useDeferredValue:Hn,useTransition:Hn,useMutableSource:Hn,useSyncExternalStore:Hn,useId:Hn,unstable_isNewReconciler:!1},vP={readContext:Dr,useCallback:function(e,t){return fi().memoizedState=[e,t===void 0?null:t],e},useContext:Dr,useEffect:fy,useImperativeHandle:function(e,t,n){return n=n!=null?n.concat([e]):null,Hu(4194308,4,zC.bind(null,t,e),n)},useLayoutEffect:function(e,t){return Hu(4194308,4,e,t)},useInsertionEffect:function(e,t){return Hu(4,2,e,t)},useMemo:function(e,t){var n=fi();return t=t===void 0?null:t,e=e(),n.memoizedState=[e,t],e},useReducer:function(e,t,n){var r=fi();return t=n!==void 0?n(t):t,r.memoizedState=r.baseState=t,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:t},r.queue=e,e=e.dispatch=mP.bind(null,Zt,e),[r.memoizedState,e]},useRef:function(e){var t=fi();return e={current:e},t.memoizedState=e},useState:dy,useDebugValue:rv,useDeferredValue:function(e){return fi().memoizedState=e},useTransition:function(){var e=dy(!1),t=e[0];return e=gP.bind(null,e[1]),fi().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,n){var r=Zt,i=fi();if(qt){if(n===void 0)throw Error(oe(407));n=n()}else{if(n=t(),kn===null)throw Error(oe(349));ia&30||RC(r,t,n)}i.memoizedState=n;var o={value:n,getSnapshot:t};return i.queue=o,fy(kC.bind(null,r,o,e),[e]),r.flags|=2048,Zl(9,IC.bind(null,r,o,n,t),void 0,null),n},useId:function(){var e=fi(),t=kn.identifierPrefix;if(qt){var n=Ri,r=Ti;n=(r&~(1<<32-ti(r)-1)).toString(32)+n,t=":"+t+"R"+n,n=Yl++,0<\/script>",e=e.removeChild(e.firstChild)):typeof r.is=="string"?e=a.createElement(n,{is:r.is}):(e=a.createElement(n),n==="select"&&(a=e,r.multiple?a.multiple=!0:r.size&&(a.size=r.size))):e=a.createElementNS(e,n),e[pi]=t,e[Kl]=r,rw(e,t,!1,!1),t.stateNode=e;e:{switch(a=xg(n,r),n){case"dialog":Wt("cancel",e),Wt("close",e),i=r;break;case"iframe":case"object":case"embed":Wt("load",e),i=r;break;case"video":case"audio":for(i=0;ims&&(t.flags|=128,r=!0,Ws(o,!1),t.lanes=4194304)}else{if(!r)if(e=_d(a),e!==null){if(t.flags|=128,r=!0,n=e.updateQueue,n!==null&&(t.updateQueue=n,t.flags|=4),Ws(o,!0),o.tail===null&&o.tailMode==="hidden"&&!a.alternate&&!qt)return Vn(t),null}else 2*un()-o.renderingStartTime>ms&&n!==1073741824&&(t.flags|=128,r=!0,Ws(o,!1),t.lanes=4194304);o.isBackwards?(a.sibling=t.child,t.child=a):(n=o.last,n!==null?n.sibling=a:t.child=a,o.last=a)}return o.tail!==null?(t=o.tail,o.rendering=t,o.tail=t.sibling,o.renderingStartTime=un(),t.sibling=null,n=Qt.current,zt(Qt,r?n&1|2:n&1),t):(Vn(t),null);case 22:case 23:return cv(),r=t.memoizedState!==null,e!==null&&e.memoizedState!==null!==r&&(t.flags|=8192),r&&t.mode&1?pr&1073741824&&(Vn(t),t.subtreeFlags&6&&(t.flags|=8192)):Vn(t),null;case 24:return null;case 25:return null}throw Error(oe(156,t.tag))}function _P(e,t){switch(Vp(t),t.tag){case 1:return dr(t.type)&&yd(),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return hs(),Ut(ur),Ut(qn),Zp(),e=t.flags,e&65536&&!(e&128)?(t.flags=e&-65537|128,t):null;case 5:return Qp(t),null;case 13:if(Ut(Qt),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(oe(340));ds()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return Ut(Qt),null;case 4:return hs(),null;case 10:return Kp(t.type._context),null;case 22:case 23:return cv(),null;case 24:return null;default:return null}}var nu=!1,Gn=!1,$P=typeof WeakSet=="function"?WeakSet:Set,Oe=null;function Ka(e,t){var n=e.ref;if(n!==null)if(typeof n=="function")try{n(null)}catch(r){rn(e,t,r)}else n.current=null}function Kg(e,t,n){try{n()}catch(r){rn(e,t,r)}}var wy=!1;function OP(e,t){if(Tg=gd,e=uC(),Bp(e)){if("selectionStart"in e)var n={start:e.selectionStart,end:e.selectionEnd};else e:{n=(n=e.ownerDocument)&&n.defaultView||window;var r=n.getSelection&&n.getSelection();if(r&&r.rangeCount!==0){n=r.anchorNode;var i=r.anchorOffset,o=r.focusNode;r=r.focusOffset;try{n.nodeType,o.nodeType}catch{n=null;break e}var a=0,s=-1,l=-1,c=0,u=0,f=e,h=null;t:for(;;){for(var m;f!==n||i!==0&&f.nodeType!==3||(s=a+i),f!==o||r!==0&&f.nodeType!==3||(l=a+r),f.nodeType===3&&(a+=f.nodeValue.length),(m=f.firstChild)!==null;)h=f,f=m;for(;;){if(f===e)break t;if(h===n&&++c===i&&(s=a),h===o&&++u===r&&(l=a),(m=f.nextSibling)!==null)break;f=h,h=f.parentNode}f=m}n=s===-1||l===-1?null:{start:s,end:l}}else n=null}n=n||{start:0,end:0}}else n=null;for(Rg={focusedElem:e,selectionRange:n},gd=!1,Oe=t;Oe!==null;)if(t=Oe,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,Oe=e;else for(;Oe!==null;){t=Oe;try{var y=t.alternate;if(t.flags&1024)switch(t.tag){case 0:case 11:case 15:break;case 1:if(y!==null){var v=y.memoizedProps,b=y.memoizedState,p=t.stateNode,g=p.getSnapshotBeforeUpdate(t.elementType===t.type?v:qr(t.type,v),b);p.__reactInternalSnapshotBeforeUpdate=g}break;case 3:var x=t.stateNode.containerInfo;x.nodeType===1?x.textContent="":x.nodeType===9&&x.documentElement&&x.removeChild(x.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(oe(163))}}catch(S){rn(t,t.return,S)}if(e=t.sibling,e!==null){e.return=t.return,Oe=e;break}Oe=t.return}return y=wy,wy=!1,y}function xl(e,t,n){var r=t.updateQueue;if(r=r!==null?r.lastEffect:null,r!==null){var i=r=r.next;do{if((i.tag&e)===e){var o=i.destroy;i.destroy=void 0,o!==void 0&&Kg(t,n,o)}i=i.next}while(i!==r)}}function df(e,t){if(t=t.updateQueue,t=t!==null?t.lastEffect:null,t!==null){var n=t=t.next;do{if((n.tag&e)===e){var r=n.create;n.destroy=r()}n=n.next}while(n!==t)}}function qg(e){var t=e.ref;if(t!==null){var n=e.stateNode;switch(e.tag){case 5:e=n;break;default:e=n}typeof t=="function"?t(e):t.current=e}}function aw(e){var t=e.alternate;t!==null&&(e.alternate=null,aw(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&(delete t[pi],delete t[Kl],delete t[Ng],delete t[cP],delete t[uP])),e.stateNode=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}function sw(e){return e.tag===5||e.tag===3||e.tag===4}function Ey(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||sw(e.return))return null;e=e.return}for(e.sibling.return=e.return,e=e.sibling;e.tag!==5&&e.tag!==6&&e.tag!==18;){if(e.flags&2||e.child===null||e.tag===4)continue e;e.child.return=e,e=e.child}if(!(e.flags&2))return e.stateNode}}function Xg(e,t,n){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?n.nodeType===8?n.parentNode.insertBefore(e,t):n.insertBefore(e,t):(n.nodeType===8?(t=n.parentNode,t.insertBefore(e,n)):(t=n,t.appendChild(e)),n=n._reactRootContainer,n!=null||t.onclick!==null||(t.onclick=vd));else if(r!==4&&(e=e.child,e!==null))for(Xg(e,t,n),e=e.sibling;e!==null;)Xg(e,t,n),e=e.sibling}function Yg(e,t,n){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?n.insertBefore(e,t):n.appendChild(e);else if(r!==4&&(e=e.child,e!==null))for(Yg(e,t,n),e=e.sibling;e!==null;)Yg(e,t,n),e=e.sibling}var Ln=null,Xr=!1;function Ui(e,t,n){for(n=n.child;n!==null;)lw(e,t,n),n=n.sibling}function lw(e,t,n){if(yi&&typeof yi.onCommitFiberUnmount=="function")try{yi.onCommitFiberUnmount(nf,n)}catch{}switch(n.tag){case 5:Gn||Ka(n,t);case 6:var r=Ln,i=Xr;Ln=null,Ui(e,t,n),Ln=r,Xr=i,Ln!==null&&(Xr?(e=Ln,n=n.stateNode,e.nodeType===8?e.parentNode.removeChild(n):e.removeChild(n)):Ln.removeChild(n.stateNode));break;case 18:Ln!==null&&(Xr?(e=Ln,n=n.stateNode,e.nodeType===8?hh(e.parentNode,n):e.nodeType===1&&hh(e,n),Hl(e)):hh(Ln,n.stateNode));break;case 4:r=Ln,i=Xr,Ln=n.stateNode.containerInfo,Xr=!0,Ui(e,t,n),Ln=r,Xr=i;break;case 0:case 11:case 14:case 15:if(!Gn&&(r=n.updateQueue,r!==null&&(r=r.lastEffect,r!==null))){i=r=r.next;do{var o=i,a=o.destroy;o=o.tag,a!==void 0&&(o&2||o&4)&&Kg(n,t,a),i=i.next}while(i!==r)}Ui(e,t,n);break;case 1:if(!Gn&&(Ka(n,t),r=n.stateNode,typeof r.componentWillUnmount=="function"))try{r.props=n.memoizedProps,r.state=n.memoizedState,r.componentWillUnmount()}catch(s){rn(n,t,s)}Ui(e,t,n);break;case 21:Ui(e,t,n);break;case 22:n.mode&1?(Gn=(r=Gn)||n.memoizedState!==null,Ui(e,t,n),Gn=r):Ui(e,t,n);break;default:Ui(e,t,n)}}function _y(e){var t=e.updateQueue;if(t!==null){e.updateQueue=null;var n=e.stateNode;n===null&&(n=e.stateNode=new $P),t.forEach(function(r){var i=AP.bind(null,e,r);n.has(r)||(n.add(r),r.then(i,i))})}}function Ur(e,t){var n=t.deletions;if(n!==null)for(var r=0;ri&&(i=a),r&=~o}if(r=i,r=un()-r,r=(120>r?120:480>r?480:1080>r?1080:1920>r?1920:3e3>r?3e3:4320>r?4320:1960*MP(r/1960))-r,10e?16:e,no===null)var r=!1;else{if(e=no,no=null,Td=0,yt&6)throw Error(oe(331));var i=yt;for(yt|=4,Oe=e.current;Oe!==null;){var o=Oe,a=o.child;if(Oe.flags&16){var s=o.deletions;if(s!==null){for(var l=0;lun()-sv?Qo(e,0):av|=n),fr(e,t)}function pw(e,t){t===0&&(e.mode&1?(t=Kc,Kc<<=1,!(Kc&130023424)&&(Kc=4194304)):t=1);var n=Zn();e=Li(e,t),e!==null&&(Ec(e,t,n),fr(e,n))}function FP(e){var t=e.memoizedState,n=0;t!==null&&(n=t.retryLane),pw(e,n)}function AP(e,t){var n=0;switch(e.tag){case 13:var r=e.stateNode,i=e.memoizedState;i!==null&&(n=i.retryLane);break;case 19:r=e.stateNode;break;default:throw Error(oe(314))}r!==null&&r.delete(t),pw(e,n)}var vw;vw=function(e,t,n){if(e!==null)if(e.memoizedProps!==t.pendingProps||ur.current)cr=!0;else{if(!(e.lanes&n)&&!(t.flags&128))return cr=!1,wP(e,t,n);cr=!!(e.flags&131072)}else cr=!1,qt&&t.flags&1048576&&SC(t,Sd,t.index);switch(t.lanes=0,t.tag){case 2:var r=t.type;Vu(e,t),e=t.pendingProps;var i=us(t,qn.current);rs(t,n),i=ev(null,t,r,e,i,n);var o=tv();return t.flags|=1,typeof i=="object"&&i!==null&&typeof i.render=="function"&&i.$$typeof===void 0?(t.tag=1,t.memoizedState=null,t.updateQueue=null,dr(r)?(o=!0,bd(t)):o=!1,t.memoizedState=i.state!==null&&i.state!==void 0?i.state:null,Xp(t),i.updater=uf,t.stateNode=i,i._reactInternals=t,jg(t,r,e,n),t=Vg(null,t,r,!0,o,n)):(t.tag=0,qt&&o&&Hp(t),Qn(null,t,i,n),t=t.child),t;case 16:r=t.elementType;e:{switch(Vu(e,t),e=t.pendingProps,i=r._init,r=i(r._payload),t.type=r,i=t.tag=DP(r),e=qr(r,e),i){case 0:t=Hg(null,t,r,e,n);break e;case 1:t=xy(null,t,r,e,n);break e;case 11:t=yy(null,t,r,e,n);break e;case 14:t=by(null,t,r,qr(r.type,e),n);break e}throw Error(oe(306,r,""))}return t;case 0:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:qr(r,i),Hg(e,t,r,i,n);case 1:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:qr(r,i),xy(e,t,r,i,n);case 3:e:{if(ew(t),e===null)throw Error(oe(387));r=t.pendingProps,o=t.memoizedState,i=o.element,OC(e,t),Ed(t,r,null,n);var a=t.memoizedState;if(r=a.element,o.isDehydrated)if(o={element:r,isDehydrated:!1,cache:a.cache,pendingSuspenseBoundaries:a.pendingSuspenseBoundaries,transitions:a.transitions},t.updateQueue.baseState=o,t.memoizedState=o,t.flags&256){i=gs(Error(oe(423)),t),t=Sy(e,t,r,n,i);break e}else if(r!==i){i=gs(Error(oe(424)),t),t=Sy(e,t,r,n,i);break e}else for(vr=fo(t.stateNode.containerInfo.firstChild),br=t,qt=!0,Zr=null,n=_C(t,null,r,n),t.child=n;n;)n.flags=n.flags&-3|4096,n=n.sibling;else{if(ds(),r===i){t=Di(e,t,n);break e}Qn(e,t,r,n)}t=t.child}return t;case 5:return PC(t),e===null&&Lg(t),r=t.type,i=t.pendingProps,o=e!==null?e.memoizedProps:null,a=i.children,Ig(r,i)?a=null:o!==null&&Ig(r,o)&&(t.flags|=32),JC(e,t),Qn(e,t,a,n),t.child;case 6:return e===null&&Lg(t),null;case 13:return tw(e,t,n);case 4:return Yp(t,t.stateNode.containerInfo),r=t.pendingProps,e===null?t.child=fs(t,null,r,n):Qn(e,t,r,n),t.child;case 11:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:qr(r,i),yy(e,t,r,i,n);case 7:return Qn(e,t,t.pendingProps,n),t.child;case 8:return Qn(e,t,t.pendingProps.children,n),t.child;case 12:return Qn(e,t,t.pendingProps.children,n),t.child;case 10:e:{if(r=t.type._context,i=t.pendingProps,o=t.memoizedProps,a=i.value,zt(Cd,r._currentValue),r._currentValue=a,o!==null)if(oi(o.value,a)){if(o.children===i.children&&!ur.current){t=Di(e,t,n);break e}}else for(o=t.child,o!==null&&(o.return=t);o!==null;){var s=o.dependencies;if(s!==null){a=o.child;for(var l=s.firstContext;l!==null;){if(l.context===r){if(o.tag===1){l=Ii(-1,n&-n),l.tag=2;var c=o.updateQueue;if(c!==null){c=c.shared;var u=c.pending;u===null?l.next=l:(l.next=u.next,u.next=l),c.pending=l}}o.lanes|=n,l=o.alternate,l!==null&&(l.lanes|=n),Dg(o.return,n,t),s.lanes|=n;break}l=l.next}}else if(o.tag===10)a=o.type===t.type?null:o.child;else if(o.tag===18){if(a=o.return,a===null)throw Error(oe(341));a.lanes|=n,s=a.alternate,s!==null&&(s.lanes|=n),Dg(a,n,t),a=o.sibling}else a=o.child;if(a!==null)a.return=o;else for(a=o;a!==null;){if(a===t){a=null;break}if(o=a.sibling,o!==null){o.return=a.return,a=o;break}a=a.return}o=a}Qn(e,t,i.children,n),t=t.child}return t;case 9:return i=t.type,r=t.pendingProps.children,rs(t,n),i=Dr(i),r=r(i),t.flags|=1,Qn(e,t,r,n),t.child;case 14:return r=t.type,i=qr(r,t.pendingProps),i=qr(r.type,i),by(e,t,r,i,n);case 15:return QC(e,t,t.type,t.pendingProps,n);case 17:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:qr(r,i),Vu(e,t),t.tag=1,dr(r)?(e=!0,bd(t)):e=!1,rs(t,n),qC(t,r,i),jg(t,r,i,n),Vg(null,t,r,!0,e,n);case 19:return nw(e,t,n);case 22:return ZC(e,t,n)}throw Error(oe(156,t.tag))};function yw(e,t){return US(e,t)}function LP(e,t,n,r){this.tag=e,this.key=n,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=r,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function kr(e,t,n,r){return new LP(e,t,n,r)}function dv(e){return e=e.prototype,!(!e||!e.isReactComponent)}function DP(e){if(typeof e=="function")return dv(e)?1:0;if(e!=null){if(e=e.$$typeof,e===Tp)return 11;if(e===Rp)return 14}return 2}function po(e,t){var n=e.alternate;return n===null?(n=kr(e.tag,t,e.key,e.mode),n.elementType=e.elementType,n.type=e.type,n.stateNode=e.stateNode,n.alternate=e,e.alternate=n):(n.pendingProps=t,n.type=e.type,n.flags=0,n.subtreeFlags=0,n.deletions=null),n.flags=e.flags&14680064,n.childLanes=e.childLanes,n.lanes=e.lanes,n.child=e.child,n.memoizedProps=e.memoizedProps,n.memoizedState=e.memoizedState,n.updateQueue=e.updateQueue,t=e.dependencies,n.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext},n.sibling=e.sibling,n.index=e.index,n.ref=e.ref,n}function Gu(e,t,n,r,i,o){var a=2;if(r=e,typeof e=="function")dv(e)&&(a=1);else if(typeof e=="string")a=5;else e:switch(e){case Da:return Zo(n.children,i,o,t);case Mp:a=8,i|=8;break;case ug:return e=kr(12,n,t,i|2),e.elementType=ug,e.lanes=o,e;case dg:return e=kr(13,n,t,i),e.elementType=dg,e.lanes=o,e;case fg:return e=kr(19,n,t,i),e.elementType=fg,e.lanes=o,e;case PS:return hf(n,i,o,t);default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case $S:a=10;break e;case OS:a=9;break e;case Tp:a=11;break e;case Rp:a=14;break e;case Yi:a=16,r=null;break e}throw Error(oe(130,e==null?e:typeof e,""))}return t=kr(a,n,t,i),t.elementType=e,t.type=r,t.lanes=o,t}function Zo(e,t,n,r){return e=kr(7,e,r,t),e.lanes=n,e}function hf(e,t,n,r){return e=kr(22,e,r,t),e.elementType=PS,e.lanes=n,e.stateNode={isHidden:!1},e}function Sh(e,t,n){return e=kr(6,e,null,t),e.lanes=n,e}function Ch(e,t,n){return t=kr(4,e.children!==null?e.children:[],e.key,t),t.lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function zP(e,t,n,r,i){this.tag=t,this.containerInfo=e,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=nh(0),this.expirationTimes=nh(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=nh(0),this.identifierPrefix=r,this.onRecoverableError=i,this.mutableSourceEagerHydrationData=null}function fv(e,t,n,r,i,o,a,s,l){return e=new zP(e,t,n,s,l),t===1?(t=1,o===!0&&(t|=8)):t=0,o=kr(3,null,null,t),e.current=o,o.stateNode=e,o.memoizedState={element:r,isDehydrated:n,cache:null,transitions:null,pendingSuspenseBoundaries:null},Xp(o),e}function jP(e,t,n){var r=3"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(Cw)}catch(e){console.error(e)}}Cw(),CS.exports=Cr;var ma=CS.exports;const tm=Jd(ma),UP=uS({__proto__:null,default:tm},[ma]);var ww,ky=ma;ww=ky.createRoot,ky.hydrateRoot;var Ew={exports:{}};/*! +`+o.stack}return{value:e,source:t,stack:i,digest:null}}function yh(e,t,n){return{value:e,source:null,stack:n??null,digest:t??null}}function jg(e,t){try{console.error(t.value)}catch(n){setTimeout(function(){throw n})}}var xP=typeof WeakMap=="function"?WeakMap:Map;function XC(e,t,n){n=Ii(-1,n),n.tag=3,n.payload={element:null};var r=t.value;return n.callback=function(){Md||(Md=!0,Yg=r),jg(e,t)},n}function YC(e,t,n){n=Ii(-1,n),n.tag=3;var r=e.type.getDerivedStateFromError;if(typeof r=="function"){var i=t.value;n.payload=function(){return r(i)},n.callback=function(){jg(e,t)}}var o=e.stateNode;return o!==null&&typeof o.componentDidCatch=="function"&&(n.callback=function(){jg(e,t),typeof r!="function"&&(go===null?go=new Set([this]):go.add(this));var a=t.stack;this.componentDidCatch(t.value,{componentStack:a!==null?a:""})}),n}function my(e,t,n){var r=e.pingCache;if(r===null){r=e.pingCache=new xP;var i=new Set;r.set(t,i)}else i=r.get(t),i===void 0&&(i=new Set,r.set(t,i));i.has(n)||(i.add(n),e=NP.bind(null,e,t,n),t.then(e,e))}function py(e){do{var t;if((t=e.tag===13)&&(t=e.memoizedState,t=t!==null?t.dehydrated!==null:!0),t)return e;e=e.return}while(e!==null);return null}function vy(e,t,n,r,i){return e.mode&1?(e.flags|=65536,e.lanes=i,e):(e===t?e.flags|=65536:(e.flags|=128,n.flags|=131072,n.flags&=-52805,n.tag===1&&(n.alternate===null?n.tag=17:(t=Ii(-1,1),t.tag=2,ho(n,t,1))),n.lanes|=1),e)}var SP=Bi.ReactCurrentOwner,cr=!1;function Qn(e,t,n,r){t.child=e===null?_C(t,null,n,r):fs(t,e.child,n,r)}function yy(e,t,n,r,i){n=n.render;var o=t.ref;return rs(t,i),r=ev(e,t,n,r,o,i),n=tv(),e!==null&&!cr?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~i,Di(e,t,i)):(qt&&n&&Hp(t),t.flags|=1,Qn(e,t,r,i),t.child)}function by(e,t,n,r,i){if(e===null){var o=n.type;return typeof o=="function"&&!dv(o)&&o.defaultProps===void 0&&n.compare===null&&n.defaultProps===void 0?(t.tag=15,t.type=o,QC(e,t,o,r,i)):(e=Gu(n.type,null,r,t,t.mode,i),e.ref=t.ref,e.return=t,t.child=e)}if(o=e.child,!(e.lanes&i)){var a=o.memoizedProps;if(n=n.compare,n=n!==null?n:Wl,n(a,r)&&e.ref===t.ref)return Di(e,t,i)}return t.flags|=1,e=po(o,r),e.ref=t.ref,e.return=t,t.child=e}function QC(e,t,n,r,i){if(e!==null){var o=e.memoizedProps;if(Wl(o,r)&&e.ref===t.ref)if(cr=!1,t.pendingProps=r=o,(e.lanes&i)!==0)e.flags&131072&&(cr=!0);else return t.lanes=e.lanes,Di(e,t,i)}return Bg(e,t,n,r,i)}function ZC(e,t,n){var r=t.pendingProps,i=r.children,o=e!==null?e.memoizedState:null;if(r.mode==="hidden")if(!(t.mode&1))t.memoizedState={baseLanes:0,cachePool:null,transitions:null},zt(qa,pr),pr|=n;else{if(!(n&1073741824))return e=o!==null?o.baseLanes|n:n,t.lanes=t.childLanes=1073741824,t.memoizedState={baseLanes:e,cachePool:null,transitions:null},t.updateQueue=null,zt(qa,pr),pr|=e,null;t.memoizedState={baseLanes:0,cachePool:null,transitions:null},r=o!==null?o.baseLanes:n,zt(qa,pr),pr|=r}else o!==null?(r=o.baseLanes|n,t.memoizedState=null):r=n,zt(qa,pr),pr|=r;return Qn(e,t,i,n),t.child}function JC(e,t){var n=t.ref;(e===null&&n!==null||e!==null&&e.ref!==n)&&(t.flags|=512,t.flags|=2097152)}function Bg(e,t,n,r,i){var o=dr(n)?na:qn.current;return o=us(t,o),rs(t,i),n=ev(e,t,n,r,o,i),r=tv(),e!==null&&!cr?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~i,Di(e,t,i)):(qt&&r&&Hp(t),t.flags|=1,Qn(e,t,n,i),t.child)}function xy(e,t,n,r,i){if(dr(n)){var o=!0;bd(t)}else o=!1;if(rs(t,i),t.stateNode===null)Vu(e,t),qC(t,n,r),zg(t,n,r,i),r=!0;else if(e===null){var a=t.stateNode,s=t.memoizedProps;a.props=s;var l=a.context,c=n.contextType;typeof c=="object"&&c!==null?c=Dr(c):(c=dr(n)?na:qn.current,c=us(t,c));var u=n.getDerivedStateFromProps,f=typeof u=="function"||typeof a.getSnapshotBeforeUpdate=="function";f||typeof a.UNSAFE_componentWillReceiveProps!="function"&&typeof a.componentWillReceiveProps!="function"||(s!==r||l!==c)&&gy(t,a,r,c),Qi=!1;var h=t.memoizedState;a.state=h,Ed(t,r,a,i),l=t.memoizedState,s!==r||h!==l||ur.current||Qi?(typeof u=="function"&&(Dg(t,n,u,r),l=t.memoizedState),(s=Qi||hy(t,n,s,r,h,l,c))?(f||typeof a.UNSAFE_componentWillMount!="function"&&typeof a.componentWillMount!="function"||(typeof a.componentWillMount=="function"&&a.componentWillMount(),typeof a.UNSAFE_componentWillMount=="function"&&a.UNSAFE_componentWillMount()),typeof a.componentDidMount=="function"&&(t.flags|=4194308)):(typeof a.componentDidMount=="function"&&(t.flags|=4194308),t.memoizedProps=r,t.memoizedState=l),a.props=r,a.state=l,a.context=c,r=s):(typeof a.componentDidMount=="function"&&(t.flags|=4194308),r=!1)}else{a=t.stateNode,OC(e,t),s=t.memoizedProps,c=t.type===t.elementType?s:qr(t.type,s),a.props=c,f=t.pendingProps,h=a.context,l=n.contextType,typeof l=="object"&&l!==null?l=Dr(l):(l=dr(n)?na:qn.current,l=us(t,l));var m=n.getDerivedStateFromProps;(u=typeof m=="function"||typeof a.getSnapshotBeforeUpdate=="function")||typeof a.UNSAFE_componentWillReceiveProps!="function"&&typeof a.componentWillReceiveProps!="function"||(s!==f||h!==l)&&gy(t,a,r,l),Qi=!1,h=t.memoizedState,a.state=h,Ed(t,r,a,i);var y=t.memoizedState;s!==f||h!==y||ur.current||Qi?(typeof m=="function"&&(Dg(t,n,m,r),y=t.memoizedState),(c=Qi||hy(t,n,c,r,h,y,l)||!1)?(u||typeof a.UNSAFE_componentWillUpdate!="function"&&typeof a.componentWillUpdate!="function"||(typeof a.componentWillUpdate=="function"&&a.componentWillUpdate(r,y,l),typeof a.UNSAFE_componentWillUpdate=="function"&&a.UNSAFE_componentWillUpdate(r,y,l)),typeof a.componentDidUpdate=="function"&&(t.flags|=4),typeof a.getSnapshotBeforeUpdate=="function"&&(t.flags|=1024)):(typeof a.componentDidUpdate!="function"||s===e.memoizedProps&&h===e.memoizedState||(t.flags|=4),typeof a.getSnapshotBeforeUpdate!="function"||s===e.memoizedProps&&h===e.memoizedState||(t.flags|=1024),t.memoizedProps=r,t.memoizedState=y),a.props=r,a.state=y,a.context=l,r=c):(typeof a.componentDidUpdate!="function"||s===e.memoizedProps&&h===e.memoizedState||(t.flags|=4),typeof a.getSnapshotBeforeUpdate!="function"||s===e.memoizedProps&&h===e.memoizedState||(t.flags|=1024),r=!1)}return Hg(e,t,n,r,o,i)}function Hg(e,t,n,r,i,o){JC(e,t);var a=(t.flags&128)!==0;if(!r&&!a)return i&&oy(t,n,!1),Di(e,t,o);r=t.stateNode,SP.current=t;var s=a&&typeof n.getDerivedStateFromError!="function"?null:r.render();return t.flags|=1,e!==null&&a?(t.child=fs(t,e.child,null,o),t.child=fs(t,null,s,o)):Qn(e,t,s,o),t.memoizedState=r.state,i&&oy(t,n,!0),t.child}function ew(e){var t=e.stateNode;t.pendingContext?iy(e,t.pendingContext,t.pendingContext!==t.context):t.context&&iy(e,t.context,!1),Yp(e,t.containerInfo)}function Sy(e,t,n,r,i){return ds(),Wp(i),t.flags|=256,Qn(e,t,n,r),t.child}var Vg={dehydrated:null,treeContext:null,retryLane:0};function Wg(e){return{baseLanes:e,cachePool:null,transitions:null}}function tw(e,t,n){var r=t.pendingProps,i=Qt.current,o=!1,a=(t.flags&128)!==0,s;if((s=a)||(s=e!==null&&e.memoizedState===null?!1:(i&2)!==0),s?(o=!0,t.flags&=-129):(e===null||e.memoizedState!==null)&&(i|=1),zt(Qt,i&1),e===null)return Ag(t),e=t.memoizedState,e!==null&&(e=e.dehydrated,e!==null)?(t.mode&1?e.data==="$!"?t.lanes=8:t.lanes=1073741824:t.lanes=1,null):(a=r.children,e=r.fallback,o?(r=t.mode,o=t.child,a={mode:"hidden",children:a},!(r&1)&&o!==null?(o.childLanes=0,o.pendingProps=a):o=ff(a,r,0,null),e=Zo(e,r,n,null),o.return=t,e.return=t,o.sibling=e,t.child=o,t.child.memoizedState=Wg(n),t.memoizedState=Vg,e):iv(t,a));if(i=e.memoizedState,i!==null&&(s=i.dehydrated,s!==null))return CP(e,t,a,r,s,i,n);if(o){o=r.fallback,a=t.mode,i=e.child,s=i.sibling;var l={mode:"hidden",children:r.children};return!(a&1)&&t.child!==i?(r=t.child,r.childLanes=0,r.pendingProps=l,t.deletions=null):(r=po(i,l),r.subtreeFlags=i.subtreeFlags&14680064),s!==null?o=po(s,o):(o=Zo(o,a,n,null),o.flags|=2),o.return=t,r.return=t,r.sibling=o,t.child=r,r=o,o=t.child,a=e.child.memoizedState,a=a===null?Wg(n):{baseLanes:a.baseLanes|n,cachePool:null,transitions:a.transitions},o.memoizedState=a,o.childLanes=e.childLanes&~n,t.memoizedState=Vg,r}return o=e.child,e=o.sibling,r=po(o,{mode:"visible",children:r.children}),!(t.mode&1)&&(r.lanes=n),r.return=t,r.sibling=null,e!==null&&(n=t.deletions,n===null?(t.deletions=[e],t.flags|=16):n.push(e)),t.child=r,t.memoizedState=null,r}function iv(e,t){return t=ff({mode:"visible",children:t},e.mode,0,null),t.return=e,e.child=t}function tu(e,t,n,r){return r!==null&&Wp(r),fs(t,e.child,null,n),e=iv(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function CP(e,t,n,r,i,o,a){if(n)return t.flags&256?(t.flags&=-257,r=yh(Error(oe(422))),tu(e,t,a,r)):t.memoizedState!==null?(t.child=e.child,t.flags|=128,null):(o=r.fallback,i=t.mode,r=ff({mode:"visible",children:r.children},i,0,null),o=Zo(o,i,a,null),o.flags|=2,r.return=t,o.return=t,r.sibling=o,t.child=r,t.mode&1&&fs(t,e.child,null,a),t.child.memoizedState=Wg(a),t.memoizedState=Vg,o);if(!(t.mode&1))return tu(e,t,a,null);if(i.data==="$!"){if(r=i.nextSibling&&i.nextSibling.dataset,r)var s=r.dgst;return r=s,o=Error(oe(419)),r=yh(o,r,void 0),tu(e,t,a,r)}if(s=(a&e.childLanes)!==0,cr||s){if(r=kn,r!==null){switch(a&-a){case 4:i=2;break;case 16:i=8;break;case 64: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:case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:i=32;break;case 536870912:i=268435456;break;default:i=0}i=i&(r.suspendedLanes|a)?0:i,i!==0&&i!==o.retryLane&&(o.retryLane=i,Li(e,i),ni(r,e,i,-1))}return uv(),r=yh(Error(oe(421))),tu(e,t,a,r)}return i.data==="$?"?(t.flags|=128,t.child=e.child,t=FP.bind(null,e),i._reactRetry=t,null):(e=o.treeContext,vr=fo(i.nextSibling),br=t,qt=!0,Zr=null,e!==null&&(Rr[Ir++]=Ti,Rr[Ir++]=Ri,Rr[Ir++]=ra,Ti=e.id,Ri=e.overflow,ra=t),t=iv(t,r.children),t.flags|=4096,t)}function Cy(e,t,n){e.lanes|=t;var r=e.alternate;r!==null&&(r.lanes|=t),Lg(e.return,t,n)}function bh(e,t,n,r,i){var o=e.memoizedState;o===null?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:r,tail:n,tailMode:i}:(o.isBackwards=t,o.rendering=null,o.renderingStartTime=0,o.last=r,o.tail=n,o.tailMode=i)}function nw(e,t,n){var r=t.pendingProps,i=r.revealOrder,o=r.tail;if(Qn(e,t,r.children,n),r=Qt.current,r&2)r=r&1|2,t.flags|=128;else{if(e!==null&&e.flags&128)e:for(e=t.child;e!==null;){if(e.tag===13)e.memoizedState!==null&&Cy(e,n,t);else if(e.tag===19)Cy(e,n,t);else if(e.child!==null){e.child.return=e,e=e.child;continue}if(e===t)break e;for(;e.sibling===null;){if(e.return===null||e.return===t)break e;e=e.return}e.sibling.return=e.return,e=e.sibling}r&=1}if(zt(Qt,r),!(t.mode&1))t.memoizedState=null;else switch(i){case"forwards":for(n=t.child,i=null;n!==null;)e=n.alternate,e!==null&&_d(e)===null&&(i=n),n=n.sibling;n=i,n===null?(i=t.child,t.child=null):(i=n.sibling,n.sibling=null),bh(t,!1,i,n,o);break;case"backwards":for(n=null,i=t.child,t.child=null;i!==null;){if(e=i.alternate,e!==null&&_d(e)===null){t.child=i;break}e=i.sibling,i.sibling=n,n=i,i=e}bh(t,!0,n,null,o);break;case"together":bh(t,!1,null,null,void 0);break;default:t.memoizedState=null}return t.child}function Vu(e,t){!(t.mode&1)&&e!==null&&(e.alternate=null,t.alternate=null,t.flags|=2)}function Di(e,t,n){if(e!==null&&(t.dependencies=e.dependencies),oa|=t.lanes,!(n&t.childLanes))return null;if(e!==null&&t.child!==e.child)throw Error(oe(153));if(t.child!==null){for(e=t.child,n=po(e,e.pendingProps),t.child=n,n.return=t;e.sibling!==null;)e=e.sibling,n=n.sibling=po(e,e.pendingProps),n.return=t;n.sibling=null}return t.child}function wP(e,t,n){switch(t.tag){case 3:ew(t),ds();break;case 5:PC(t);break;case 1:dr(t.type)&&bd(t);break;case 4:Yp(t,t.stateNode.containerInfo);break;case 10:var r=t.type._context,i=t.memoizedProps.value;zt(Cd,r._currentValue),r._currentValue=i;break;case 13:if(r=t.memoizedState,r!==null)return r.dehydrated!==null?(zt(Qt,Qt.current&1),t.flags|=128,null):n&t.child.childLanes?tw(e,t,n):(zt(Qt,Qt.current&1),e=Di(e,t,n),e!==null?e.sibling:null);zt(Qt,Qt.current&1);break;case 19:if(r=(n&t.childLanes)!==0,e.flags&128){if(r)return nw(e,t,n);t.flags|=128}if(i=t.memoizedState,i!==null&&(i.rendering=null,i.tail=null,i.lastEffect=null),zt(Qt,Qt.current),r)break;return null;case 22:case 23:return t.lanes=0,ZC(e,t,n)}return Di(e,t,n)}var rw,Ug,iw,ow;rw=function(e,t){for(var n=t.child;n!==null;){if(n.tag===5||n.tag===6)e.appendChild(n.stateNode);else if(n.tag!==4&&n.child!==null){n.child.return=n,n=n.child;continue}if(n===t)break;for(;n.sibling===null;){if(n.return===null||n.return===t)return;n=n.return}n.sibling.return=n.return,n=n.sibling}};Ug=function(){};iw=function(e,t,n,r){var i=e.memoizedProps;if(i!==r){e=t.stateNode,Wo(bi.current);var o=null;switch(n){case"input":i=hg(e,i),r=hg(e,r),o=[];break;case"select":i=Jt({},i,{value:void 0}),r=Jt({},r,{value:void 0}),o=[];break;case"textarea":i=pg(e,i),r=pg(e,r),o=[];break;default:typeof i.onClick!="function"&&typeof r.onClick=="function"&&(e.onclick=vd)}yg(n,r);var a;n=null;for(c in i)if(!r.hasOwnProperty(c)&&i.hasOwnProperty(c)&&i[c]!=null)if(c==="style"){var s=i[c];for(a in s)s.hasOwnProperty(a)&&(n||(n={}),n[a]="")}else c!=="dangerouslySetInnerHTML"&&c!=="children"&&c!=="suppressContentEditableWarning"&&c!=="suppressHydrationWarning"&&c!=="autoFocus"&&(Ll.hasOwnProperty(c)?o||(o=[]):(o=o||[]).push(c,null));for(c in r){var l=r[c];if(s=i!=null?i[c]:void 0,r.hasOwnProperty(c)&&l!==s&&(l!=null||s!=null))if(c==="style")if(s){for(a in s)!s.hasOwnProperty(a)||l&&l.hasOwnProperty(a)||(n||(n={}),n[a]="");for(a in l)l.hasOwnProperty(a)&&s[a]!==l[a]&&(n||(n={}),n[a]=l[a])}else n||(o||(o=[]),o.push(c,n)),n=l;else c==="dangerouslySetInnerHTML"?(l=l?l.__html:void 0,s=s?s.__html:void 0,l!=null&&s!==l&&(o=o||[]).push(c,l)):c==="children"?typeof l!="string"&&typeof l!="number"||(o=o||[]).push(c,""+l):c!=="suppressContentEditableWarning"&&c!=="suppressHydrationWarning"&&(Ll.hasOwnProperty(c)?(l!=null&&c==="onScroll"&&Wt("scroll",e),o||s===l||(o=[])):(o=o||[]).push(c,l))}n&&(o=o||[]).push("style",n);var c=o;(t.updateQueue=c)&&(t.flags|=4)}};ow=function(e,t,n,r){n!==r&&(t.flags|=4)};function Ws(e,t){if(!qt)switch(e.tailMode){case"hidden":t=e.tail;for(var n=null;t!==null;)t.alternate!==null&&(n=t),t=t.sibling;n===null?e.tail=null:n.sibling=null;break;case"collapsed":n=e.tail;for(var r=null;n!==null;)n.alternate!==null&&(r=n),n=n.sibling;r===null?t||e.tail===null?e.tail=null:e.tail.sibling=null:r.sibling=null}}function Vn(e){var t=e.alternate!==null&&e.alternate.child===e.child,n=0,r=0;if(t)for(var i=e.child;i!==null;)n|=i.lanes|i.childLanes,r|=i.subtreeFlags&14680064,r|=i.flags&14680064,i.return=e,i=i.sibling;else for(i=e.child;i!==null;)n|=i.lanes|i.childLanes,r|=i.subtreeFlags,r|=i.flags,i.return=e,i=i.sibling;return e.subtreeFlags|=r,e.childLanes=n,t}function EP(e,t,n){var r=t.pendingProps;switch(Vp(t),t.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return Vn(t),null;case 1:return dr(t.type)&&yd(),Vn(t),null;case 3:return r=t.stateNode,hs(),Ut(ur),Ut(qn),Zp(),r.pendingContext&&(r.context=r.pendingContext,r.pendingContext=null),(e===null||e.child===null)&&(Jc(t)?t.flags|=4:e===null||e.memoizedState.isDehydrated&&!(t.flags&256)||(t.flags|=1024,Zr!==null&&(Jg(Zr),Zr=null))),Ug(e,t),Vn(t),null;case 5:Qp(t);var i=Wo(Xl.current);if(n=t.type,e!==null&&t.stateNode!=null)iw(e,t,n,r,i),e.ref!==t.ref&&(t.flags|=512,t.flags|=2097152);else{if(!r){if(t.stateNode===null)throw Error(oe(166));return Vn(t),null}if(e=Wo(bi.current),Jc(t)){r=t.stateNode,n=t.type;var o=t.memoizedProps;switch(r[pi]=t,r[Kl]=o,e=(t.mode&1)!==0,n){case"dialog":Wt("cancel",r),Wt("close",r);break;case"iframe":case"object":case"embed":Wt("load",r);break;case"video":case"audio":for(i=0;i<\/script>",e=e.removeChild(e.firstChild)):typeof r.is=="string"?e=a.createElement(n,{is:r.is}):(e=a.createElement(n),n==="select"&&(a=e,r.multiple?a.multiple=!0:r.size&&(a.size=r.size))):e=a.createElementNS(e,n),e[pi]=t,e[Kl]=r,rw(e,t,!1,!1),t.stateNode=e;e:{switch(a=bg(n,r),n){case"dialog":Wt("cancel",e),Wt("close",e),i=r;break;case"iframe":case"object":case"embed":Wt("load",e),i=r;break;case"video":case"audio":for(i=0;ims&&(t.flags|=128,r=!0,Ws(o,!1),t.lanes=4194304)}else{if(!r)if(e=_d(a),e!==null){if(t.flags|=128,r=!0,n=e.updateQueue,n!==null&&(t.updateQueue=n,t.flags|=4),Ws(o,!0),o.tail===null&&o.tailMode==="hidden"&&!a.alternate&&!qt)return Vn(t),null}else 2*un()-o.renderingStartTime>ms&&n!==1073741824&&(t.flags|=128,r=!0,Ws(o,!1),t.lanes=4194304);o.isBackwards?(a.sibling=t.child,t.child=a):(n=o.last,n!==null?n.sibling=a:t.child=a,o.last=a)}return o.tail!==null?(t=o.tail,o.rendering=t,o.tail=t.sibling,o.renderingStartTime=un(),t.sibling=null,n=Qt.current,zt(Qt,r?n&1|2:n&1),t):(Vn(t),null);case 22:case 23:return cv(),r=t.memoizedState!==null,e!==null&&e.memoizedState!==null!==r&&(t.flags|=8192),r&&t.mode&1?pr&1073741824&&(Vn(t),t.subtreeFlags&6&&(t.flags|=8192)):Vn(t),null;case 24:return null;case 25:return null}throw Error(oe(156,t.tag))}function _P(e,t){switch(Vp(t),t.tag){case 1:return dr(t.type)&&yd(),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return hs(),Ut(ur),Ut(qn),Zp(),e=t.flags,e&65536&&!(e&128)?(t.flags=e&-65537|128,t):null;case 5:return Qp(t),null;case 13:if(Ut(Qt),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(oe(340));ds()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return Ut(Qt),null;case 4:return hs(),null;case 10:return Kp(t.type._context),null;case 22:case 23:return cv(),null;case 24:return null;default:return null}}var nu=!1,Gn=!1,$P=typeof WeakSet=="function"?WeakSet:Set,Oe=null;function Ka(e,t){var n=e.ref;if(n!==null)if(typeof n=="function")try{n(null)}catch(r){rn(e,t,r)}else n.current=null}function Gg(e,t,n){try{n()}catch(r){rn(e,t,r)}}var wy=!1;function OP(e,t){if(Mg=gd,e=uC(),Bp(e)){if("selectionStart"in e)var n={start:e.selectionStart,end:e.selectionEnd};else e:{n=(n=e.ownerDocument)&&n.defaultView||window;var r=n.getSelection&&n.getSelection();if(r&&r.rangeCount!==0){n=r.anchorNode;var i=r.anchorOffset,o=r.focusNode;r=r.focusOffset;try{n.nodeType,o.nodeType}catch{n=null;break e}var a=0,s=-1,l=-1,c=0,u=0,f=e,h=null;t:for(;;){for(var m;f!==n||i!==0&&f.nodeType!==3||(s=a+i),f!==o||r!==0&&f.nodeType!==3||(l=a+r),f.nodeType===3&&(a+=f.nodeValue.length),(m=f.firstChild)!==null;)h=f,f=m;for(;;){if(f===e)break t;if(h===n&&++c===i&&(s=a),h===o&&++u===r&&(l=a),(m=f.nextSibling)!==null)break;f=h,h=f.parentNode}f=m}n=s===-1||l===-1?null:{start:s,end:l}}else n=null}n=n||{start:0,end:0}}else n=null;for(Tg={focusedElem:e,selectionRange:n},gd=!1,Oe=t;Oe!==null;)if(t=Oe,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,Oe=e;else for(;Oe!==null;){t=Oe;try{var y=t.alternate;if(t.flags&1024)switch(t.tag){case 0:case 11:case 15:break;case 1:if(y!==null){var v=y.memoizedProps,b=y.memoizedState,p=t.stateNode,g=p.getSnapshotBeforeUpdate(t.elementType===t.type?v:qr(t.type,v),b);p.__reactInternalSnapshotBeforeUpdate=g}break;case 3:var x=t.stateNode.containerInfo;x.nodeType===1?x.textContent="":x.nodeType===9&&x.documentElement&&x.removeChild(x.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(oe(163))}}catch(S){rn(t,t.return,S)}if(e=t.sibling,e!==null){e.return=t.return,Oe=e;break}Oe=t.return}return y=wy,wy=!1,y}function xl(e,t,n){var r=t.updateQueue;if(r=r!==null?r.lastEffect:null,r!==null){var i=r=r.next;do{if((i.tag&e)===e){var o=i.destroy;i.destroy=void 0,o!==void 0&&Gg(t,n,o)}i=i.next}while(i!==r)}}function uf(e,t){if(t=t.updateQueue,t=t!==null?t.lastEffect:null,t!==null){var n=t=t.next;do{if((n.tag&e)===e){var r=n.create;n.destroy=r()}n=n.next}while(n!==t)}}function Kg(e){var t=e.ref;if(t!==null){var n=e.stateNode;switch(e.tag){case 5:e=n;break;default:e=n}typeof t=="function"?t(e):t.current=e}}function aw(e){var t=e.alternate;t!==null&&(e.alternate=null,aw(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&(delete t[pi],delete t[Kl],delete t[kg],delete t[cP],delete t[uP])),e.stateNode=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}function sw(e){return e.tag===5||e.tag===3||e.tag===4}function Ey(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||sw(e.return))return null;e=e.return}for(e.sibling.return=e.return,e=e.sibling;e.tag!==5&&e.tag!==6&&e.tag!==18;){if(e.flags&2||e.child===null||e.tag===4)continue e;e.child.return=e,e=e.child}if(!(e.flags&2))return e.stateNode}}function qg(e,t,n){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?n.nodeType===8?n.parentNode.insertBefore(e,t):n.insertBefore(e,t):(n.nodeType===8?(t=n.parentNode,t.insertBefore(e,n)):(t=n,t.appendChild(e)),n=n._reactRootContainer,n!=null||t.onclick!==null||(t.onclick=vd));else if(r!==4&&(e=e.child,e!==null))for(qg(e,t,n),e=e.sibling;e!==null;)qg(e,t,n),e=e.sibling}function Xg(e,t,n){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?n.insertBefore(e,t):n.appendChild(e);else if(r!==4&&(e=e.child,e!==null))for(Xg(e,t,n),e=e.sibling;e!==null;)Xg(e,t,n),e=e.sibling}var Ln=null,Xr=!1;function Ui(e,t,n){for(n=n.child;n!==null;)lw(e,t,n),n=n.sibling}function lw(e,t,n){if(yi&&typeof yi.onCommitFiberUnmount=="function")try{yi.onCommitFiberUnmount(tf,n)}catch{}switch(n.tag){case 5:Gn||Ka(n,t);case 6:var r=Ln,i=Xr;Ln=null,Ui(e,t,n),Ln=r,Xr=i,Ln!==null&&(Xr?(e=Ln,n=n.stateNode,e.nodeType===8?e.parentNode.removeChild(n):e.removeChild(n)):Ln.removeChild(n.stateNode));break;case 18:Ln!==null&&(Xr?(e=Ln,n=n.stateNode,e.nodeType===8?fh(e.parentNode,n):e.nodeType===1&&fh(e,n),Hl(e)):fh(Ln,n.stateNode));break;case 4:r=Ln,i=Xr,Ln=n.stateNode.containerInfo,Xr=!0,Ui(e,t,n),Ln=r,Xr=i;break;case 0:case 11:case 14:case 15:if(!Gn&&(r=n.updateQueue,r!==null&&(r=r.lastEffect,r!==null))){i=r=r.next;do{var o=i,a=o.destroy;o=o.tag,a!==void 0&&(o&2||o&4)&&Gg(n,t,a),i=i.next}while(i!==r)}Ui(e,t,n);break;case 1:if(!Gn&&(Ka(n,t),r=n.stateNode,typeof r.componentWillUnmount=="function"))try{r.props=n.memoizedProps,r.state=n.memoizedState,r.componentWillUnmount()}catch(s){rn(n,t,s)}Ui(e,t,n);break;case 21:Ui(e,t,n);break;case 22:n.mode&1?(Gn=(r=Gn)||n.memoizedState!==null,Ui(e,t,n),Gn=r):Ui(e,t,n);break;default:Ui(e,t,n)}}function _y(e){var t=e.updateQueue;if(t!==null){e.updateQueue=null;var n=e.stateNode;n===null&&(n=e.stateNode=new $P),t.forEach(function(r){var i=AP.bind(null,e,r);n.has(r)||(n.add(r),r.then(i,i))})}}function Ur(e,t){var n=t.deletions;if(n!==null)for(var r=0;ri&&(i=a),r&=~o}if(r=i,r=un()-r,r=(120>r?120:480>r?480:1080>r?1080:1920>r?1920:3e3>r?3e3:4320>r?4320:1960*MP(r/1960))-r,10e?16:e,no===null)var r=!1;else{if(e=no,no=null,Td=0,yt&6)throw Error(oe(331));var i=yt;for(yt|=4,Oe=e.current;Oe!==null;){var o=Oe,a=o.child;if(Oe.flags&16){var s=o.deletions;if(s!==null){for(var l=0;lun()-sv?Qo(e,0):av|=n),fr(e,t)}function pw(e,t){t===0&&(e.mode&1?(t=Kc,Kc<<=1,!(Kc&130023424)&&(Kc=4194304)):t=1);var n=Zn();e=Li(e,t),e!==null&&(Ec(e,t,n),fr(e,n))}function FP(e){var t=e.memoizedState,n=0;t!==null&&(n=t.retryLane),pw(e,n)}function AP(e,t){var n=0;switch(e.tag){case 13:var r=e.stateNode,i=e.memoizedState;i!==null&&(n=i.retryLane);break;case 19:r=e.stateNode;break;default:throw Error(oe(314))}r!==null&&r.delete(t),pw(e,n)}var vw;vw=function(e,t,n){if(e!==null)if(e.memoizedProps!==t.pendingProps||ur.current)cr=!0;else{if(!(e.lanes&n)&&!(t.flags&128))return cr=!1,wP(e,t,n);cr=!!(e.flags&131072)}else cr=!1,qt&&t.flags&1048576&&SC(t,Sd,t.index);switch(t.lanes=0,t.tag){case 2:var r=t.type;Vu(e,t),e=t.pendingProps;var i=us(t,qn.current);rs(t,n),i=ev(null,t,r,e,i,n);var o=tv();return t.flags|=1,typeof i=="object"&&i!==null&&typeof i.render=="function"&&i.$$typeof===void 0?(t.tag=1,t.memoizedState=null,t.updateQueue=null,dr(r)?(o=!0,bd(t)):o=!1,t.memoizedState=i.state!==null&&i.state!==void 0?i.state:null,Xp(t),i.updater=cf,t.stateNode=i,i._reactInternals=t,zg(t,r,e,n),t=Hg(null,t,r,!0,o,n)):(t.tag=0,qt&&o&&Hp(t),Qn(null,t,i,n),t=t.child),t;case 16:r=t.elementType;e:{switch(Vu(e,t),e=t.pendingProps,i=r._init,r=i(r._payload),t.type=r,i=t.tag=DP(r),e=qr(r,e),i){case 0:t=Bg(null,t,r,e,n);break e;case 1:t=xy(null,t,r,e,n);break e;case 11:t=yy(null,t,r,e,n);break e;case 14:t=by(null,t,r,qr(r.type,e),n);break e}throw Error(oe(306,r,""))}return t;case 0:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:qr(r,i),Bg(e,t,r,i,n);case 1:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:qr(r,i),xy(e,t,r,i,n);case 3:e:{if(ew(t),e===null)throw Error(oe(387));r=t.pendingProps,o=t.memoizedState,i=o.element,OC(e,t),Ed(t,r,null,n);var a=t.memoizedState;if(r=a.element,o.isDehydrated)if(o={element:r,isDehydrated:!1,cache:a.cache,pendingSuspenseBoundaries:a.pendingSuspenseBoundaries,transitions:a.transitions},t.updateQueue.baseState=o,t.memoizedState=o,t.flags&256){i=gs(Error(oe(423)),t),t=Sy(e,t,r,n,i);break e}else if(r!==i){i=gs(Error(oe(424)),t),t=Sy(e,t,r,n,i);break e}else for(vr=fo(t.stateNode.containerInfo.firstChild),br=t,qt=!0,Zr=null,n=_C(t,null,r,n),t.child=n;n;)n.flags=n.flags&-3|4096,n=n.sibling;else{if(ds(),r===i){t=Di(e,t,n);break e}Qn(e,t,r,n)}t=t.child}return t;case 5:return PC(t),e===null&&Ag(t),r=t.type,i=t.pendingProps,o=e!==null?e.memoizedProps:null,a=i.children,Rg(r,i)?a=null:o!==null&&Rg(r,o)&&(t.flags|=32),JC(e,t),Qn(e,t,a,n),t.child;case 6:return e===null&&Ag(t),null;case 13:return tw(e,t,n);case 4:return Yp(t,t.stateNode.containerInfo),r=t.pendingProps,e===null?t.child=fs(t,null,r,n):Qn(e,t,r,n),t.child;case 11:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:qr(r,i),yy(e,t,r,i,n);case 7:return Qn(e,t,t.pendingProps,n),t.child;case 8:return Qn(e,t,t.pendingProps.children,n),t.child;case 12:return Qn(e,t,t.pendingProps.children,n),t.child;case 10:e:{if(r=t.type._context,i=t.pendingProps,o=t.memoizedProps,a=i.value,zt(Cd,r._currentValue),r._currentValue=a,o!==null)if(oi(o.value,a)){if(o.children===i.children&&!ur.current){t=Di(e,t,n);break e}}else for(o=t.child,o!==null&&(o.return=t);o!==null;){var s=o.dependencies;if(s!==null){a=o.child;for(var l=s.firstContext;l!==null;){if(l.context===r){if(o.tag===1){l=Ii(-1,n&-n),l.tag=2;var c=o.updateQueue;if(c!==null){c=c.shared;var u=c.pending;u===null?l.next=l:(l.next=u.next,u.next=l),c.pending=l}}o.lanes|=n,l=o.alternate,l!==null&&(l.lanes|=n),Lg(o.return,n,t),s.lanes|=n;break}l=l.next}}else if(o.tag===10)a=o.type===t.type?null:o.child;else if(o.tag===18){if(a=o.return,a===null)throw Error(oe(341));a.lanes|=n,s=a.alternate,s!==null&&(s.lanes|=n),Lg(a,n,t),a=o.sibling}else a=o.child;if(a!==null)a.return=o;else for(a=o;a!==null;){if(a===t){a=null;break}if(o=a.sibling,o!==null){o.return=a.return,a=o;break}a=a.return}o=a}Qn(e,t,i.children,n),t=t.child}return t;case 9:return i=t.type,r=t.pendingProps.children,rs(t,n),i=Dr(i),r=r(i),t.flags|=1,Qn(e,t,r,n),t.child;case 14:return r=t.type,i=qr(r,t.pendingProps),i=qr(r.type,i),by(e,t,r,i,n);case 15:return QC(e,t,t.type,t.pendingProps,n);case 17:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:qr(r,i),Vu(e,t),t.tag=1,dr(r)?(e=!0,bd(t)):e=!1,rs(t,n),qC(t,r,i),zg(t,r,i,n),Hg(null,t,r,!0,e,n);case 19:return nw(e,t,n);case 22:return ZC(e,t,n)}throw Error(oe(156,t.tag))};function yw(e,t){return US(e,t)}function LP(e,t,n,r){this.tag=e,this.key=n,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=r,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function kr(e,t,n,r){return new LP(e,t,n,r)}function dv(e){return e=e.prototype,!(!e||!e.isReactComponent)}function DP(e){if(typeof e=="function")return dv(e)?1:0;if(e!=null){if(e=e.$$typeof,e===Tp)return 11;if(e===Rp)return 14}return 2}function po(e,t){var n=e.alternate;return n===null?(n=kr(e.tag,t,e.key,e.mode),n.elementType=e.elementType,n.type=e.type,n.stateNode=e.stateNode,n.alternate=e,e.alternate=n):(n.pendingProps=t,n.type=e.type,n.flags=0,n.subtreeFlags=0,n.deletions=null),n.flags=e.flags&14680064,n.childLanes=e.childLanes,n.lanes=e.lanes,n.child=e.child,n.memoizedProps=e.memoizedProps,n.memoizedState=e.memoizedState,n.updateQueue=e.updateQueue,t=e.dependencies,n.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext},n.sibling=e.sibling,n.index=e.index,n.ref=e.ref,n}function Gu(e,t,n,r,i,o){var a=2;if(r=e,typeof e=="function")dv(e)&&(a=1);else if(typeof e=="string")a=5;else e:switch(e){case Da:return Zo(n.children,i,o,t);case Mp:a=8,i|=8;break;case cg:return e=kr(12,n,t,i|2),e.elementType=cg,e.lanes=o,e;case ug:return e=kr(13,n,t,i),e.elementType=ug,e.lanes=o,e;case dg:return e=kr(19,n,t,i),e.elementType=dg,e.lanes=o,e;case PS:return ff(n,i,o,t);default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case $S:a=10;break e;case OS:a=9;break e;case Tp:a=11;break e;case Rp:a=14;break e;case Yi:a=16,r=null;break e}throw Error(oe(130,e==null?e:typeof e,""))}return t=kr(a,n,t,i),t.elementType=e,t.type=r,t.lanes=o,t}function Zo(e,t,n,r){return e=kr(7,e,r,t),e.lanes=n,e}function ff(e,t,n,r){return e=kr(22,e,r,t),e.elementType=PS,e.lanes=n,e.stateNode={isHidden:!1},e}function xh(e,t,n){return e=kr(6,e,null,t),e.lanes=n,e}function Sh(e,t,n){return t=kr(4,e.children!==null?e.children:[],e.key,t),t.lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function zP(e,t,n,r,i){this.tag=t,this.containerInfo=e,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=th(0),this.expirationTimes=th(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=th(0),this.identifierPrefix=r,this.onRecoverableError=i,this.mutableSourceEagerHydrationData=null}function fv(e,t,n,r,i,o,a,s,l){return e=new zP(e,t,n,s,l),t===1?(t=1,o===!0&&(t|=8)):t=0,o=kr(3,null,null,t),e.current=o,o.stateNode=e,o.memoizedState={element:r,isDehydrated:n,cache:null,transitions:null,pendingSuspenseBoundaries:null},Xp(o),e}function jP(e,t,n){var r=3"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(Cw)}catch(e){console.error(e)}}Cw(),CS.exports=Cr;var ma=CS.exports;const em=Zd(ma),UP=uS({__proto__:null,default:em},[ma]);var ww,ky=ma;ww=ky.createRoot,ky.hydrateRoot;var Ew={exports:{}};/*! Copyright (c) 2018 Jed Watson. Licensed under the MIT License (MIT), see http://jedwatson.github.io/classnames -*/(function(e){(function(){var t={}.hasOwnProperty;function n(){for(var o="",a=0;a1&&arguments[1]!==void 0?arguments[1]:{},n=[];return me.Children.forEach(e,function(r){r==null&&!t.keepEmpty||(Array.isArray(r)?n=n.concat(Co(r)):wl.isFragment(r)&&r.props?n=n.concat(Co(r.props.children,t)):n.push(r))}),n}var nm={},XP=function(t){};function YP(e,t){}function QP(e,t){}function ZP(){nm={}}function Ow(e,t,n){!t&&!nm[n]&&(e(!1,n),nm[n]=!0)}function Nn(e,t){Ow(YP,e,t)}function JP(e,t){Ow(QP,e,t)}Nn.preMessage=XP;Nn.resetWarned=ZP;Nn.noteOnce=JP;function je(e){"@babel/helpers - typeof";return je=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},je(e)}function eM(e,t){if(je(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||"default");if(je(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function Pw(e){var t=eM(e,"string");return je(t)=="symbol"?t:t+""}function z(e,t,n){return(t=Pw(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Ny(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function V(e){for(var t=1;t=19;var rm=d.createContext(null);function tM(e){var t=e.children,n=e.onBatchResize,r=d.useRef(0),i=d.useRef([]),o=d.useContext(rm),a=d.useCallback(function(s,l,c){r.current+=1;var u=r.current;i.current.push({size:s,element:l,data:c}),Promise.resolve().then(function(){u===r.current&&(n==null||n(i.current),i.current=[])}),o==null||o(s,l,c)},[n,o]);return d.createElement(rm.Provider,{value:a},t)}var Tw=function(){if(typeof Map<"u")return Map;function e(t,n){var r=-1;return t.some(function(i,o){return i[0]===n?(r=o,!0):!1}),r}return function(){function t(){this.__entries__=[]}return Object.defineProperty(t.prototype,"size",{get:function(){return this.__entries__.length},enumerable:!0,configurable:!0}),t.prototype.get=function(n){var r=e(this.__entries__,n),i=this.__entries__[r];return i&&i[1]},t.prototype.set=function(n,r){var i=e(this.__entries__,n);~i?this.__entries__[i][1]=r:this.__entries__.push([n,r])},t.prototype.delete=function(n){var r=this.__entries__,i=e(r,n);~i&&r.splice(i,1)},t.prototype.has=function(n){return!!~e(this.__entries__,n)},t.prototype.clear=function(){this.__entries__.splice(0)},t.prototype.forEach=function(n,r){r===void 0&&(r=null);for(var i=0,o=this.__entries__;i0},e.prototype.connect_=function(){!im||this.connected_||(document.addEventListener("transitionend",this.onTransitionEnd_),window.addEventListener("resize",this.refresh),sM?(this.mutationsObserver_=new MutationObserver(this.refresh),this.mutationsObserver_.observe(document,{attributes:!0,childList:!0,characterData:!0,subtree:!0})):(document.addEventListener("DOMSubtreeModified",this.refresh),this.mutationEventsAdded_=!0),this.connected_=!0)},e.prototype.disconnect_=function(){!im||!this.connected_||(document.removeEventListener("transitionend",this.onTransitionEnd_),window.removeEventListener("resize",this.refresh),this.mutationsObserver_&&this.mutationsObserver_.disconnect(),this.mutationEventsAdded_&&document.removeEventListener("DOMSubtreeModified",this.refresh),this.mutationsObserver_=null,this.mutationEventsAdded_=!1,this.connected_=!1)},e.prototype.onTransitionEnd_=function(t){var n=t.propertyName,r=n===void 0?"":n,i=aM.some(function(o){return!!~r.indexOf(o)});i&&this.refresh()},e.getInstance=function(){return this.instance_||(this.instance_=new e),this.instance_},e.instance_=null,e}(),Rw=function(e,t){for(var n=0,r=Object.keys(t);n"u"||!(Element instanceof Object))){if(!(t instanceof ps(t).Element))throw new TypeError('parameter 1 is not of type "Element".');var n=this.observations_;n.has(t)||(n.set(t,new pM(t)),this.controller_.addObserver(this),this.controller_.refresh())}},e.prototype.unobserve=function(t){if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");if(!(typeof Element>"u"||!(Element instanceof Object))){if(!(t instanceof ps(t).Element))throw new TypeError('parameter 1 is not of type "Element".');var n=this.observations_;n.has(t)&&(n.delete(t),n.size||this.controller_.removeObserver(this))}},e.prototype.disconnect=function(){this.clearActive(),this.observations_.clear(),this.controller_.removeObserver(this)},e.prototype.gatherActive=function(){var t=this;this.clearActive(),this.observations_.forEach(function(n){n.isActive()&&t.activeObservations_.push(n)})},e.prototype.broadcastActive=function(){if(this.hasActive()){var t=this.callbackCtx_,n=this.activeObservations_.map(function(r){return new vM(r.target,r.broadcastRect())});this.callback_.call(t,n,t),this.clearActive()}},e.prototype.clearActive=function(){this.activeObservations_.splice(0)},e.prototype.hasActive=function(){return this.activeObservations_.length>0},e}(),kw=typeof WeakMap<"u"?new WeakMap:new Tw,Nw=function(){function e(t){if(!(this instanceof e))throw new TypeError("Cannot call a class as a function.");if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");var n=lM.getInstance(),r=new yM(t,n,this);kw.set(this,r)}return e}();["observe","unobserve","disconnect"].forEach(function(e){Nw.prototype[e]=function(){var t;return(t=kw.get(this))[e].apply(t,arguments)}});var bM=function(){return typeof kd.ResizeObserver<"u"?kd.ResizeObserver:Nw}(),ro=new Map;function xM(e){e.forEach(function(t){var n,r=t.target;(n=ro.get(r))===null||n===void 0||n.forEach(function(i){return i(r)})})}var Fw=new bM(xM);function SM(e,t){ro.has(e)||(ro.set(e,new Set),Fw.observe(e)),ro.get(e).add(t)}function CM(e,t){ro.has(e)&&(ro.get(e).delete(t),ro.get(e).size||(Fw.unobserve(e),ro.delete(e)))}function hn(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Ly(e,t){for(var n=0;ne.length)&&(t=e.length);for(var n=0,r=Array(t);n1&&arguments[1]!==void 0?arguments[1]:{},n=[];return me.Children.forEach(e,function(r){r==null&&!t.keepEmpty||(Array.isArray(r)?n=n.concat(Co(r)):wl.isFragment(r)&&r.props?n=n.concat(Co(r.props.children,t)):n.push(r))}),n}var tm={},XP=function(t){};function YP(e,t){}function QP(e,t){}function ZP(){tm={}}function Ow(e,t,n){!t&&!tm[n]&&(e(!1,n),tm[n]=!0)}function Nn(e,t){Ow(YP,e,t)}function JP(e,t){Ow(QP,e,t)}Nn.preMessage=XP;Nn.resetWarned=ZP;Nn.noteOnce=JP;function je(e){"@babel/helpers - typeof";return je=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},je(e)}function eM(e,t){if(je(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||"default");if(je(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function Pw(e){var t=eM(e,"string");return je(t)=="symbol"?t:t+""}function z(e,t,n){return(t=Pw(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Ny(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function V(e){for(var t=1;t=19;var nm=d.createContext(null);function tM(e){var t=e.children,n=e.onBatchResize,r=d.useRef(0),i=d.useRef([]),o=d.useContext(nm),a=d.useCallback(function(s,l,c){r.current+=1;var u=r.current;i.current.push({size:s,element:l,data:c}),Promise.resolve().then(function(){u===r.current&&(n==null||n(i.current),i.current=[])}),o==null||o(s,l,c)},[n,o]);return d.createElement(nm.Provider,{value:a},t)}var Tw=function(){if(typeof Map<"u")return Map;function e(t,n){var r=-1;return t.some(function(i,o){return i[0]===n?(r=o,!0):!1}),r}return function(){function t(){this.__entries__=[]}return Object.defineProperty(t.prototype,"size",{get:function(){return this.__entries__.length},enumerable:!0,configurable:!0}),t.prototype.get=function(n){var r=e(this.__entries__,n),i=this.__entries__[r];return i&&i[1]},t.prototype.set=function(n,r){var i=e(this.__entries__,n);~i?this.__entries__[i][1]=r:this.__entries__.push([n,r])},t.prototype.delete=function(n){var r=this.__entries__,i=e(r,n);~i&&r.splice(i,1)},t.prototype.has=function(n){return!!~e(this.__entries__,n)},t.prototype.clear=function(){this.__entries__.splice(0)},t.prototype.forEach=function(n,r){r===void 0&&(r=null);for(var i=0,o=this.__entries__;i0},e.prototype.connect_=function(){!rm||this.connected_||(document.addEventListener("transitionend",this.onTransitionEnd_),window.addEventListener("resize",this.refresh),sM?(this.mutationsObserver_=new MutationObserver(this.refresh),this.mutationsObserver_.observe(document,{attributes:!0,childList:!0,characterData:!0,subtree:!0})):(document.addEventListener("DOMSubtreeModified",this.refresh),this.mutationEventsAdded_=!0),this.connected_=!0)},e.prototype.disconnect_=function(){!rm||!this.connected_||(document.removeEventListener("transitionend",this.onTransitionEnd_),window.removeEventListener("resize",this.refresh),this.mutationsObserver_&&this.mutationsObserver_.disconnect(),this.mutationEventsAdded_&&document.removeEventListener("DOMSubtreeModified",this.refresh),this.mutationsObserver_=null,this.mutationEventsAdded_=!1,this.connected_=!1)},e.prototype.onTransitionEnd_=function(t){var n=t.propertyName,r=n===void 0?"":n,i=aM.some(function(o){return!!~r.indexOf(o)});i&&this.refresh()},e.getInstance=function(){return this.instance_||(this.instance_=new e),this.instance_},e.instance_=null,e}(),Rw=function(e,t){for(var n=0,r=Object.keys(t);n"u"||!(Element instanceof Object))){if(!(t instanceof ps(t).Element))throw new TypeError('parameter 1 is not of type "Element".');var n=this.observations_;n.has(t)||(n.set(t,new pM(t)),this.controller_.addObserver(this),this.controller_.refresh())}},e.prototype.unobserve=function(t){if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");if(!(typeof Element>"u"||!(Element instanceof Object))){if(!(t instanceof ps(t).Element))throw new TypeError('parameter 1 is not of type "Element".');var n=this.observations_;n.has(t)&&(n.delete(t),n.size||this.controller_.removeObserver(this))}},e.prototype.disconnect=function(){this.clearActive(),this.observations_.clear(),this.controller_.removeObserver(this)},e.prototype.gatherActive=function(){var t=this;this.clearActive(),this.observations_.forEach(function(n){n.isActive()&&t.activeObservations_.push(n)})},e.prototype.broadcastActive=function(){if(this.hasActive()){var t=this.callbackCtx_,n=this.activeObservations_.map(function(r){return new vM(r.target,r.broadcastRect())});this.callback_.call(t,n,t),this.clearActive()}},e.prototype.clearActive=function(){this.activeObservations_.splice(0)},e.prototype.hasActive=function(){return this.activeObservations_.length>0},e}(),kw=typeof WeakMap<"u"?new WeakMap:new Tw,Nw=function(){function e(t){if(!(this instanceof e))throw new TypeError("Cannot call a class as a function.");if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");var n=lM.getInstance(),r=new yM(t,n,this);kw.set(this,r)}return e}();["observe","unobserve","disconnect"].forEach(function(e){Nw.prototype[e]=function(){var t;return(t=kw.get(this))[e].apply(t,arguments)}});var bM=function(){return typeof kd.ResizeObserver<"u"?kd.ResizeObserver:Nw}(),ro=new Map;function xM(e){e.forEach(function(t){var n,r=t.target;(n=ro.get(r))===null||n===void 0||n.forEach(function(i){return i(r)})})}var Fw=new bM(xM);function SM(e,t){ro.has(e)||(ro.set(e,new Set),Fw.observe(e)),ro.get(e).add(t)}function CM(e,t){ro.has(e)&&(ro.get(e).delete(t),ro.get(e).size||(Fw.unobserve(e),ro.delete(e)))}function hn(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Ly(e,t){for(var n=0;ne.length)&&(t=e.length);for(var n=0,r=Array(t);n1&&arguments[1]!==void 0?arguments[1]:1;Dy+=1;var r=Dy;function i(o){if(o===0)zw(r),t();else{var a=Lw(function(){i(o-1)});Sv.set(r,a)}}return i(n),r};Ft.cancel=function(e){var t=Sv.get(e);return zw(e),Dw(t)};function jw(e){if(Array.isArray(e))return e}function RM(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r,i,o,a,s=[],l=!0,c=!1;try{if(o=(n=n.call(e)).next,t===0){if(Object(n)!==n)return;l=!1}else for(;!(l=(r=o.call(n)).done)&&(s.push(r.value),s.length!==t);l=!0);}catch(u){c=!0,i=u}finally{try{if(!l&&n.return!=null&&(a=n.return(),Object(a)!==a))return}finally{if(c)throw i}}return s}}function Bw(){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 Q(e,t){return jw(e)||RM(e,t)||xv(e,t)||Bw()}function rc(e){for(var t=0,n,r=0,i=e.length;i>=4;++r,i-=4)n=e.charCodeAt(r)&255|(e.charCodeAt(++r)&255)<<8|(e.charCodeAt(++r)&255)<<16|(e.charCodeAt(++r)&255)<<24,n=(n&65535)*1540483477+((n>>>16)*59797<<16),n^=n>>>24,t=(n&65535)*1540483477+((n>>>16)*59797<<16)^(t&65535)*1540483477+((t>>>16)*59797<<16);switch(i){case 3:t^=(e.charCodeAt(r+2)&255)<<16;case 2:t^=(e.charCodeAt(r+1)&255)<<8;case 1:t^=e.charCodeAt(r)&255,t=(t&65535)*1540483477+((t>>>16)*59797<<16)}return t^=t>>>13,t=(t&65535)*1540483477+((t>>>16)*59797<<16),((t^t>>>15)>>>0).toString(36)}function Sr(){return!!(typeof window<"u"&&window.document&&window.document.createElement)}function IM(e,t){if(!e)return!1;if(e.contains)return e.contains(t);for(var n=t;n;){if(n===e)return!0;n=n.parentNode}return!1}var zy="data-rc-order",jy="data-rc-priority",kM="rc-util-key",am=new Map;function Hw(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},t=e.mark;return t?t.startsWith("data-")?t:"data-".concat(t):kM}function Tf(e){if(e.attachTo)return e.attachTo;var t=document.querySelector("head");return t||document.body}function NM(e){return e==="queue"?"prependQueue":e?"prepend":"append"}function Cv(e){return Array.from((am.get(e)||e).children).filter(function(t){return t.tagName==="STYLE"})}function Vw(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(!Sr())return null;var n=t.csp,r=t.prepend,i=t.priority,o=i===void 0?0:i,a=NM(r),s=a==="prependQueue",l=document.createElement("style");l.setAttribute(zy,a),s&&o&&l.setAttribute(jy,"".concat(o)),n!=null&&n.nonce&&(l.nonce=n==null?void 0:n.nonce),l.innerHTML=e;var c=Tf(t),u=c.firstChild;if(r){if(s){var f=(t.styles||Cv(c)).filter(function(h){if(!["prepend","prependQueue"].includes(h.getAttribute(zy)))return!1;var m=Number(h.getAttribute(jy)||0);return o>=m});if(f.length)return c.insertBefore(l,f[f.length-1].nextSibling),l}c.insertBefore(l,u)}else c.appendChild(l);return l}function Ww(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=Tf(t);return(t.styles||Cv(n)).find(function(r){return r.getAttribute(Hw(t))===e})}function ic(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=Ww(e,t);if(n){var r=Tf(t);r.removeChild(n)}}function FM(e,t){var n=am.get(e);if(!n||!IM(document,n)){var r=Vw("",t),i=r.parentNode;am.set(e,i),e.removeChild(r)}}function ki(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},r=Tf(n),i=Cv(r),o=V(V({},n),{},{styles:i});FM(r,o);var a=Ww(t,o);if(a){var s,l;if((s=o.csp)!==null&&s!==void 0&&s.nonce&&a.nonce!==((l=o.csp)===null||l===void 0?void 0:l.nonce)){var c;a.nonce=(c=o.csp)===null||c===void 0?void 0:c.nonce}return a.innerHTML!==e&&(a.innerHTML=e),a}var u=Vw(e,o);return u.setAttribute(Hw(o),t),u}function AM(e,t){if(e==null)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.includes(r))continue;n[r]=e[r]}return n}function st(e,t){if(e==null)return{};var n,r,i=AM(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r2&&arguments[2]!==void 0?arguments[2]:!1,r=new Set;function i(o,a){var s=arguments.length>2&&arguments[2]!==void 0?arguments[2]:1,l=r.has(o);if(Nn(!l,"Warning: There may be circular references"),l)return!1;if(o===a)return!0;if(n&&s>1)return!1;r.add(o);var c=s+1;if(Array.isArray(o)){if(!Array.isArray(a)||o.length!==a.length)return!1;for(var u=0;u1&&arguments[1]!==void 0?arguments[1]:!1,a={map:this.cache};return n.forEach(function(s){if(!a)a=void 0;else{var l;a=(l=a)===null||l===void 0||(l=l.map)===null||l===void 0?void 0:l.get(s)}}),(r=a)!==null&&r!==void 0&&r.value&&o&&(a.value[1]=this.cacheCallTimes++),(i=a)===null||i===void 0?void 0:i.value}},{key:"get",value:function(n){var r;return(r=this.internalGet(n,!0))===null||r===void 0?void 0:r[0]}},{key:"has",value:function(n){return!!this.internalGet(n)}},{key:"set",value:function(n,r){var i=this;if(!this.has(n)){if(this.size()+1>e.MAX_CACHE_SIZE+e.MAX_CACHE_OFFSET){var o=this.keys.reduce(function(c,u){var f=Q(c,2),h=f[1];return i.internalGet(u)[1]0,void 0),By+=1}return gn(e,[{key:"getDerivativeToken",value:function(n){return this.derivatives.reduce(function(r,i){return i(n,r)},void 0)}}]),e}(),wh=new wv;function lm(e){var t=Array.isArray(e)?e:[e];return wh.has(t)||wh.set(t,new Uw(t)),wh.get(t)}var BM=new WeakMap,Eh={};function HM(e,t){for(var n=BM,r=0;r1&&arguments[1]!==void 0?arguments[1]:!1,n=Hy.get(e)||"";return n||(Object.keys(e).forEach(function(r){var i=e[r];n+=r,i instanceof Uw?n+=i.id:i&&je(i)==="object"?n+=El(i,t):n+=i}),t&&(n=rc(n)),Hy.set(e,n)),n}function Vy(e,t){return rc("".concat(t,"_").concat(El(e,!0)))}var cm=Sr();function Z(e){return typeof e=="number"?"".concat(e,"px"):e}function Fd(e,t,n){var r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{},i=arguments.length>4&&arguments[4]!==void 0?arguments[4]:!1;if(i)return e;var o=V(V({},r),{},z(z({},ys,t),ri,n)),a=Object.keys(o).map(function(s){var l=o[s];return l?"".concat(s,'="').concat(l,'"'):null}).filter(function(s){return s}).join(" ");return"")}var qu=function(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"";return"--".concat(n?"".concat(n,"-"):"").concat(t).replace(/([a-z0-9])([A-Z])/g,"$1-$2").replace(/([A-Z]+)([A-Z][a-z0-9]+)/g,"$1-$2").replace(/([a-z])([A-Z0-9])/g,"$1-$2").toLowerCase()},VM=function(t,n,r){return Object.keys(t).length?".".concat(n).concat(r!=null&&r.scope?".".concat(r.scope):"","{").concat(Object.entries(t).map(function(i){var o=Q(i,2),a=o[0],s=o[1];return"".concat(a,":").concat(s,";")}).join(""),"}"):""},Gw=function(t,n,r){var i={},o={};return Object.entries(t).forEach(function(a){var s,l,c=Q(a,2),u=c[0],f=c[1];if(r!=null&&(s=r.preserve)!==null&&s!==void 0&&s[u])o[u]=f;else if((typeof f=="string"||typeof f=="number")&&!(r!=null&&(l=r.ignore)!==null&&l!==void 0&&l[u])){var h,m=qu(u,r==null?void 0:r.prefix);i[m]=typeof f=="number"&&!(r!=null&&(h=r.unitless)!==null&&h!==void 0&&h[u])?"".concat(f,"px"):String(f),o[u]="var(".concat(m,")")}}),[o,VM(i,n,{scope:r==null?void 0:r.scope})]},Wy=Sr()?d.useLayoutEffect:d.useEffect,Tn=function(t,n){var r=d.useRef(!0);Wy(function(){return t(r.current)},n),Wy(function(){return r.current=!1,function(){r.current=!0}},[])},os=function(t,n){Tn(function(r){if(!r)return t()},n)},WM=V({},tf),Uy=WM.useInsertionEffect,UM=function(t,n,r){d.useMemo(t,r),Tn(function(){return n(!0)},r)},GM=Uy?function(e,t,n){return Uy(function(){return e(),t()},n)}:UM,KM=V({},tf),qM=KM.useInsertionEffect,XM=function(t){var n=[],r=!1;function i(o){r||n.push(o)}return d.useEffect(function(){return r=!1,function(){r=!0,n.length&&n.forEach(function(o){return o()})}},t),i},YM=function(){return function(t){t()}},QM=typeof qM<"u"?XM:YM;function Ev(e,t,n,r,i){var o=d.useContext(Rf),a=o.cache,s=[e].concat(ge(t)),l=sm(s),c=QM([l]),u=function(y){a.opUpdate(l,function(v){var b=v||[void 0,void 0],p=Q(b,2),g=p[0],x=g===void 0?0:g,S=p[1],C=S,w=C||n(),E=[x,w];return y?y(E):E})};d.useMemo(function(){u()},[l]);var f=a.opGet(l),h=f[1];return GM(function(){i==null||i(h)},function(m){return u(function(y){var v=Q(y,2),b=v[0],p=v[1];return m&&b===0&&(i==null||i(h)),[b+1,p]}),function(){a.opUpdate(l,function(y){var v=y||[],b=Q(v,2),p=b[0],g=p===void 0?0:p,x=b[1],S=g-1;return S===0?(c(function(){(m||!a.opGet(l))&&(r==null||r(x,!1))}),null):[g-1,x]})}},[l]),h}var ZM={},JM="css",Bo=new Map;function eT(e){Bo.set(e,(Bo.get(e)||0)+1)}function tT(e,t){if(typeof document<"u"){var n=document.querySelectorAll("style[".concat(ys,'="').concat(e,'"]'));n.forEach(function(r){if(r[io]===t){var i;(i=r.parentNode)===null||i===void 0||i.removeChild(r)}})}}var nT=0;function rT(e,t){Bo.set(e,(Bo.get(e)||0)-1);var n=Array.from(Bo.keys()),r=n.filter(function(i){var o=Bo.get(i)||0;return o<=0});n.length-r.length>nT&&r.forEach(function(i){tT(i,t),Bo.delete(i)})}var iT=function(t,n,r,i){var o=r.getDerivativeToken(t),a=V(V({},o),n);return i&&(a=i(a)),a},Kw="token";function oT(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},r=d.useContext(Rf),i=r.cache.instanceId,o=r.container,a=n.salt,s=a===void 0?"":a,l=n.override,c=l===void 0?ZM:l,u=n.formatToken,f=n.getComputedToken,h=n.cssVar,m=HM(function(){return Object.assign.apply(Object,[{}].concat(ge(t)))},t),y=El(m),v=El(c),b=h?El(h):"",p=Ev(Kw,[s,e.id,y,v,b],function(){var g,x=f?f(m,c,e):iT(m,c,e,u),S=V({},x),C="";if(h){var w=Gw(x,h.key,{prefix:h.prefix,ignore:h.ignore,unitless:h.unitless,preserve:h.preserve}),E=Q(w,2);x=E[0],C=E[1]}var _=Vy(x,s);x._tokenKey=_,S._tokenKey=Vy(S,s);var O=(g=h==null?void 0:h.key)!==null&&g!==void 0?g:_;x._themeKey=O,eT(O);var M="".concat(JM,"-").concat(rc(_));return x._hashId=M,[x,M,S,C,(h==null?void 0:h.key)||""]},function(g){rT(g[0]._themeKey,i)},function(g){var x=Q(g,4),S=x[0],C=x[3];if(h&&C){var w=ki(C,rc("css-variables-".concat(S._themeKey)),{mark:ri,prepend:"queue",attachTo:o,priority:-999});w[io]=i,w.setAttribute(ys,S._themeKey)}});return p}var aT=function(t,n,r){var i=Q(t,5),o=i[2],a=i[3],s=i[4],l=r||{},c=l.plain;if(!a)return null;var u=o._tokenKey,f=-999,h={"data-rc-order":"prependQueue","data-rc-priority":"".concat(f)},m=Fd(a,s,u,h,c);return[f,u,m]},sT={animationIterationCount:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1},qw="comm",Xw="rule",Yw="decl",lT="@import",cT="@keyframes",uT="@layer",Qw=Math.abs,_v=String.fromCharCode;function Zw(e){return e.trim()}function Xu(e,t,n){return e.replace(t,n)}function dT(e,t,n){return e.indexOf(t,n)}function oc(e,t){return e.charCodeAt(t)|0}function bs(e,t,n){return e.slice(t,n)}function gi(e){return e.length}function fT(e){return e.length}function ou(e,t){return t.push(e),e}var If=1,xs=1,Jw=0,jr=0,yn=0,Ps="";function $v(e,t,n,r,i,o,a,s){return{value:e,root:t,parent:n,type:r,props:i,children:o,line:If,column:xs,length:a,return:"",siblings:s}}function hT(){return yn}function gT(){return yn=jr>0?oc(Ps,--jr):0,xs--,yn===10&&(xs=1,If--),yn}function ii(){return yn=jr2||ac(yn)>3?"":" "}function yT(e,t){for(;--t&&ii()&&!(yn<48||yn>102||yn>57&&yn<65||yn>70&&yn<97););return kf(e,Yu()+(t<6&&oo()==32&&ii()==32))}function um(e){for(;ii();)switch(yn){case e:return jr;case 34:case 39:e!==34&&e!==39&&um(yn);break;case 40:e===41&&um(e);break;case 92:ii();break}return jr}function bT(e,t){for(;ii()&&e+yn!==57;)if(e+yn===84&&oo()===47)break;return"/*"+kf(t,jr-1)+"*"+_v(e===47?e:ii())}function xT(e){for(;!ac(oo());)ii();return kf(e,jr)}function ST(e){return pT(Qu("",null,null,null,[""],e=mT(e),0,[0],e))}function Qu(e,t,n,r,i,o,a,s,l){for(var c=0,u=0,f=a,h=0,m=0,y=0,v=1,b=1,p=1,g=0,x="",S=i,C=o,w=r,E=x;b;)switch(y=g,g=ii()){case 40:if(y!=108&&oc(E,f-1)==58){dT(E+=Xu(_h(g),"&","&\f"),"&\f",Qw(c?s[c-1]:0))!=-1&&(p=-1);break}case 34:case 39:case 91:E+=_h(g);break;case 9:case 10:case 13:case 32:E+=vT(y);break;case 92:E+=yT(Yu()-1,7);continue;case 47:switch(oo()){case 42:case 47:ou(CT(bT(ii(),Yu()),t,n,l),l),(ac(y||1)==5||ac(oo()||1)==5)&&gi(E)&&bs(E,-1,void 0)!==" "&&(E+=" ");break;default:E+="/"}break;case 123*v:s[c++]=gi(E)*p;case 125*v:case 59:case 0:switch(g){case 0:case 125:b=0;case 59+u:p==-1&&(E=Xu(E,/\f/g,"")),m>0&&(gi(E)-f||v===0&&y===47)&&ou(m>32?Ky(E+";",r,n,f-1,l):Ky(Xu(E," ","")+";",r,n,f-2,l),l);break;case 59:E+=";";default:if(ou(w=Gy(E,t,n,c,u,i,s,x,S=[],C=[],f,o),o),g===123)if(u===0)Qu(E,t,w,w,S,o,f,s,C);else switch(h===99&&oc(E,3)===110?100:h){case 100:case 108:case 109:case 115:Qu(e,w,w,r&&ou(Gy(e,w,w,0,0,i,s,x,i,S=[],f,C),C),i,C,f,s,r?S:C);break;default:Qu(E,w,w,w,[""],C,0,s,C)}}c=u=m=0,v=p=1,x=E="",f=a;break;case 58:f=1+gi(E),m=y;default:if(v<1){if(g==123)--v;else if(g==125&&v++==0&&gT()==125)continue}switch(E+=_v(g),g*v){case 38:p=u>0?1:(E+="\f",-1);break;case 44:s[c++]=(gi(E)-1)*p,p=1;break;case 64:oo()===45&&(E+=_h(ii())),h=oo(),u=f=gi(x=E+=xT(Yu())),g++;break;case 45:y===45&&gi(E)==2&&(v=0)}}return o}function Gy(e,t,n,r,i,o,a,s,l,c,u,f){for(var h=i-1,m=i===0?o:[""],y=fT(m),v=0,b=0,p=0;v0?m[g]+" "+x:Xu(x,/&\f/g,m[g])))&&(l[p++]=S);return $v(e,t,n,i===0?Xw:s,l,c,u,f)}function CT(e,t,n,r){return $v(e,t,n,qw,_v(hT()),bs(e,2,-2),0,r)}function Ky(e,t,n,r,i){return $v(e,t,n,Yw,bs(e,0,r),bs(e,r+1,-1),r,i)}function dm(e,t){for(var n="",r=0;r1&&arguments[1]!==void 0?arguments[1]:{},r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{root:!0,parentSelectors:[]},i=r.root,o=r.injectHash,a=r.parentSelectors,s=n.hashId,l=n.layer;n.path;var c=n.hashPriority,u=n.transformers,f=u===void 0?[]:u;n.linters;var h="",m={};function y(p){var g=p.getName(s);if(!m[g]){var x=e(p.style,n,{root:!1,parentSelectors:a}),S=Q(x,1),C=S[0];m[g]="@keyframes ".concat(p.getName(s)).concat(C)}}function v(p){var g=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[];return p.forEach(function(x){Array.isArray(x)?v(x,g):x&&g.push(x)}),g}var b=v(Array.isArray(t)?t:[t]);return b.forEach(function(p){var g=typeof p=="string"&&!i?{}:p;if(typeof g=="string")h+="".concat(g,` +In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Q(e,t){return jw(e)||RM(e,t)||xv(e,t)||Bw()}function rc(e){for(var t=0,n,r=0,i=e.length;i>=4;++r,i-=4)n=e.charCodeAt(r)&255|(e.charCodeAt(++r)&255)<<8|(e.charCodeAt(++r)&255)<<16|(e.charCodeAt(++r)&255)<<24,n=(n&65535)*1540483477+((n>>>16)*59797<<16),n^=n>>>24,t=(n&65535)*1540483477+((n>>>16)*59797<<16)^(t&65535)*1540483477+((t>>>16)*59797<<16);switch(i){case 3:t^=(e.charCodeAt(r+2)&255)<<16;case 2:t^=(e.charCodeAt(r+1)&255)<<8;case 1:t^=e.charCodeAt(r)&255,t=(t&65535)*1540483477+((t>>>16)*59797<<16)}return t^=t>>>13,t=(t&65535)*1540483477+((t>>>16)*59797<<16),((t^t>>>15)>>>0).toString(36)}function Sr(){return!!(typeof window<"u"&&window.document&&window.document.createElement)}function IM(e,t){if(!e)return!1;if(e.contains)return e.contains(t);for(var n=t;n;){if(n===e)return!0;n=n.parentNode}return!1}var zy="data-rc-order",jy="data-rc-priority",kM="rc-util-key",om=new Map;function Hw(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},t=e.mark;return t?t.startsWith("data-")?t:"data-".concat(t):kM}function Mf(e){if(e.attachTo)return e.attachTo;var t=document.querySelector("head");return t||document.body}function NM(e){return e==="queue"?"prependQueue":e?"prepend":"append"}function Cv(e){return Array.from((om.get(e)||e).children).filter(function(t){return t.tagName==="STYLE"})}function Vw(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(!Sr())return null;var n=t.csp,r=t.prepend,i=t.priority,o=i===void 0?0:i,a=NM(r),s=a==="prependQueue",l=document.createElement("style");l.setAttribute(zy,a),s&&o&&l.setAttribute(jy,"".concat(o)),n!=null&&n.nonce&&(l.nonce=n==null?void 0:n.nonce),l.innerHTML=e;var c=Mf(t),u=c.firstChild;if(r){if(s){var f=(t.styles||Cv(c)).filter(function(h){if(!["prepend","prependQueue"].includes(h.getAttribute(zy)))return!1;var m=Number(h.getAttribute(jy)||0);return o>=m});if(f.length)return c.insertBefore(l,f[f.length-1].nextSibling),l}c.insertBefore(l,u)}else c.appendChild(l);return l}function Ww(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=Mf(t);return(t.styles||Cv(n)).find(function(r){return r.getAttribute(Hw(t))===e})}function ic(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=Ww(e,t);if(n){var r=Mf(t);r.removeChild(n)}}function FM(e,t){var n=om.get(e);if(!n||!IM(document,n)){var r=Vw("",t),i=r.parentNode;om.set(e,i),e.removeChild(r)}}function ki(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},r=Mf(n),i=Cv(r),o=V(V({},n),{},{styles:i});FM(r,o);var a=Ww(t,o);if(a){var s,l;if((s=o.csp)!==null&&s!==void 0&&s.nonce&&a.nonce!==((l=o.csp)===null||l===void 0?void 0:l.nonce)){var c;a.nonce=(c=o.csp)===null||c===void 0?void 0:c.nonce}return a.innerHTML!==e&&(a.innerHTML=e),a}var u=Vw(e,o);return u.setAttribute(Hw(o),t),u}function AM(e,t){if(e==null)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.includes(r))continue;n[r]=e[r]}return n}function st(e,t){if(e==null)return{};var n,r,i=AM(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r2&&arguments[2]!==void 0?arguments[2]:!1,r=new Set;function i(o,a){var s=arguments.length>2&&arguments[2]!==void 0?arguments[2]:1,l=r.has(o);if(Nn(!l,"Warning: There may be circular references"),l)return!1;if(o===a)return!0;if(n&&s>1)return!1;r.add(o);var c=s+1;if(Array.isArray(o)){if(!Array.isArray(a)||o.length!==a.length)return!1;for(var u=0;u1&&arguments[1]!==void 0?arguments[1]:!1,a={map:this.cache};return n.forEach(function(s){if(!a)a=void 0;else{var l;a=(l=a)===null||l===void 0||(l=l.map)===null||l===void 0?void 0:l.get(s)}}),(r=a)!==null&&r!==void 0&&r.value&&o&&(a.value[1]=this.cacheCallTimes++),(i=a)===null||i===void 0?void 0:i.value}},{key:"get",value:function(n){var r;return(r=this.internalGet(n,!0))===null||r===void 0?void 0:r[0]}},{key:"has",value:function(n){return!!this.internalGet(n)}},{key:"set",value:function(n,r){var i=this;if(!this.has(n)){if(this.size()+1>e.MAX_CACHE_SIZE+e.MAX_CACHE_OFFSET){var o=this.keys.reduce(function(c,u){var f=Q(c,2),h=f[1];return i.internalGet(u)[1]0,void 0),By+=1}return gn(e,[{key:"getDerivativeToken",value:function(n){return this.derivatives.reduce(function(r,i){return i(n,r)},void 0)}}]),e}(),Ch=new wv;function sm(e){var t=Array.isArray(e)?e:[e];return Ch.has(t)||Ch.set(t,new Uw(t)),Ch.get(t)}var BM=new WeakMap,wh={};function HM(e,t){for(var n=BM,r=0;r1&&arguments[1]!==void 0?arguments[1]:!1,n=Hy.get(e)||"";return n||(Object.keys(e).forEach(function(r){var i=e[r];n+=r,i instanceof Uw?n+=i.id:i&&je(i)==="object"?n+=El(i,t):n+=i}),t&&(n=rc(n)),Hy.set(e,n)),n}function Vy(e,t){return rc("".concat(t,"_").concat(El(e,!0)))}var lm=Sr();function Z(e){return typeof e=="number"?"".concat(e,"px"):e}function Fd(e,t,n){var r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{},i=arguments.length>4&&arguments[4]!==void 0?arguments[4]:!1;if(i)return e;var o=V(V({},r),{},z(z({},ys,t),ri,n)),a=Object.keys(o).map(function(s){var l=o[s];return l?"".concat(s,'="').concat(l,'"'):null}).filter(function(s){return s}).join(" ");return"")}var qu=function(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"";return"--".concat(n?"".concat(n,"-"):"").concat(t).replace(/([a-z0-9])([A-Z])/g,"$1-$2").replace(/([A-Z]+)([A-Z][a-z0-9]+)/g,"$1-$2").replace(/([a-z])([A-Z0-9])/g,"$1-$2").toLowerCase()},VM=function(t,n,r){return Object.keys(t).length?".".concat(n).concat(r!=null&&r.scope?".".concat(r.scope):"","{").concat(Object.entries(t).map(function(i){var o=Q(i,2),a=o[0],s=o[1];return"".concat(a,":").concat(s,";")}).join(""),"}"):""},Gw=function(t,n,r){var i={},o={};return Object.entries(t).forEach(function(a){var s,l,c=Q(a,2),u=c[0],f=c[1];if(r!=null&&(s=r.preserve)!==null&&s!==void 0&&s[u])o[u]=f;else if((typeof f=="string"||typeof f=="number")&&!(r!=null&&(l=r.ignore)!==null&&l!==void 0&&l[u])){var h,m=qu(u,r==null?void 0:r.prefix);i[m]=typeof f=="number"&&!(r!=null&&(h=r.unitless)!==null&&h!==void 0&&h[u])?"".concat(f,"px"):String(f),o[u]="var(".concat(m,")")}}),[o,VM(i,n,{scope:r==null?void 0:r.scope})]},Wy=Sr()?d.useLayoutEffect:d.useEffect,Tn=function(t,n){var r=d.useRef(!0);Wy(function(){return t(r.current)},n),Wy(function(){return r.current=!1,function(){r.current=!0}},[])},os=function(t,n){Tn(function(r){if(!r)return t()},n)},WM=V({},ef),Uy=WM.useInsertionEffect,UM=function(t,n,r){d.useMemo(t,r),Tn(function(){return n(!0)},r)},GM=Uy?function(e,t,n){return Uy(function(){return e(),t()},n)}:UM,KM=V({},ef),qM=KM.useInsertionEffect,XM=function(t){var n=[],r=!1;function i(o){r||n.push(o)}return d.useEffect(function(){return r=!1,function(){r=!0,n.length&&n.forEach(function(o){return o()})}},t),i},YM=function(){return function(t){t()}},QM=typeof qM<"u"?XM:YM;function Ev(e,t,n,r,i){var o=d.useContext(Tf),a=o.cache,s=[e].concat(ge(t)),l=am(s),c=QM([l]),u=function(y){a.opUpdate(l,function(v){var b=v||[void 0,void 0],p=Q(b,2),g=p[0],x=g===void 0?0:g,S=p[1],C=S,w=C||n(),E=[x,w];return y?y(E):E})};d.useMemo(function(){u()},[l]);var f=a.opGet(l),h=f[1];return GM(function(){i==null||i(h)},function(m){return u(function(y){var v=Q(y,2),b=v[0],p=v[1];return m&&b===0&&(i==null||i(h)),[b+1,p]}),function(){a.opUpdate(l,function(y){var v=y||[],b=Q(v,2),p=b[0],g=p===void 0?0:p,x=b[1],S=g-1;return S===0?(c(function(){(m||!a.opGet(l))&&(r==null||r(x,!1))}),null):[g-1,x]})}},[l]),h}var ZM={},JM="css",Bo=new Map;function eT(e){Bo.set(e,(Bo.get(e)||0)+1)}function tT(e,t){if(typeof document<"u"){var n=document.querySelectorAll("style[".concat(ys,'="').concat(e,'"]'));n.forEach(function(r){if(r[io]===t){var i;(i=r.parentNode)===null||i===void 0||i.removeChild(r)}})}}var nT=0;function rT(e,t){Bo.set(e,(Bo.get(e)||0)-1);var n=Array.from(Bo.keys()),r=n.filter(function(i){var o=Bo.get(i)||0;return o<=0});n.length-r.length>nT&&r.forEach(function(i){tT(i,t),Bo.delete(i)})}var iT=function(t,n,r,i){var o=r.getDerivativeToken(t),a=V(V({},o),n);return i&&(a=i(a)),a},Kw="token";function oT(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},r=d.useContext(Tf),i=r.cache.instanceId,o=r.container,a=n.salt,s=a===void 0?"":a,l=n.override,c=l===void 0?ZM:l,u=n.formatToken,f=n.getComputedToken,h=n.cssVar,m=HM(function(){return Object.assign.apply(Object,[{}].concat(ge(t)))},t),y=El(m),v=El(c),b=h?El(h):"",p=Ev(Kw,[s,e.id,y,v,b],function(){var g,x=f?f(m,c,e):iT(m,c,e,u),S=V({},x),C="";if(h){var w=Gw(x,h.key,{prefix:h.prefix,ignore:h.ignore,unitless:h.unitless,preserve:h.preserve}),E=Q(w,2);x=E[0],C=E[1]}var _=Vy(x,s);x._tokenKey=_,S._tokenKey=Vy(S,s);var O=(g=h==null?void 0:h.key)!==null&&g!==void 0?g:_;x._themeKey=O,eT(O);var M="".concat(JM,"-").concat(rc(_));return x._hashId=M,[x,M,S,C,(h==null?void 0:h.key)||""]},function(g){rT(g[0]._themeKey,i)},function(g){var x=Q(g,4),S=x[0],C=x[3];if(h&&C){var w=ki(C,rc("css-variables-".concat(S._themeKey)),{mark:ri,prepend:"queue",attachTo:o,priority:-999});w[io]=i,w.setAttribute(ys,S._themeKey)}});return p}var aT=function(t,n,r){var i=Q(t,5),o=i[2],a=i[3],s=i[4],l=r||{},c=l.plain;if(!a)return null;var u=o._tokenKey,f=-999,h={"data-rc-order":"prependQueue","data-rc-priority":"".concat(f)},m=Fd(a,s,u,h,c);return[f,u,m]},sT={animationIterationCount:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1},qw="comm",Xw="rule",Yw="decl",lT="@import",cT="@keyframes",uT="@layer",Qw=Math.abs,_v=String.fromCharCode;function Zw(e){return e.trim()}function Xu(e,t,n){return e.replace(t,n)}function dT(e,t,n){return e.indexOf(t,n)}function oc(e,t){return e.charCodeAt(t)|0}function bs(e,t,n){return e.slice(t,n)}function gi(e){return e.length}function fT(e){return e.length}function ou(e,t){return t.push(e),e}var Rf=1,xs=1,Jw=0,jr=0,yn=0,Ps="";function $v(e,t,n,r,i,o,a,s){return{value:e,root:t,parent:n,type:r,props:i,children:o,line:Rf,column:xs,length:a,return:"",siblings:s}}function hT(){return yn}function gT(){return yn=jr>0?oc(Ps,--jr):0,xs--,yn===10&&(xs=1,Rf--),yn}function ii(){return yn=jr2||ac(yn)>3?"":" "}function yT(e,t){for(;--t&&ii()&&!(yn<48||yn>102||yn>57&&yn<65||yn>70&&yn<97););return If(e,Yu()+(t<6&&oo()==32&&ii()==32))}function cm(e){for(;ii();)switch(yn){case e:return jr;case 34:case 39:e!==34&&e!==39&&cm(yn);break;case 40:e===41&&cm(e);break;case 92:ii();break}return jr}function bT(e,t){for(;ii()&&e+yn!==57;)if(e+yn===84&&oo()===47)break;return"/*"+If(t,jr-1)+"*"+_v(e===47?e:ii())}function xT(e){for(;!ac(oo());)ii();return If(e,jr)}function ST(e){return pT(Qu("",null,null,null,[""],e=mT(e),0,[0],e))}function Qu(e,t,n,r,i,o,a,s,l){for(var c=0,u=0,f=a,h=0,m=0,y=0,v=1,b=1,p=1,g=0,x="",S=i,C=o,w=r,E=x;b;)switch(y=g,g=ii()){case 40:if(y!=108&&oc(E,f-1)==58){dT(E+=Xu(Eh(g),"&","&\f"),"&\f",Qw(c?s[c-1]:0))!=-1&&(p=-1);break}case 34:case 39:case 91:E+=Eh(g);break;case 9:case 10:case 13:case 32:E+=vT(y);break;case 92:E+=yT(Yu()-1,7);continue;case 47:switch(oo()){case 42:case 47:ou(CT(bT(ii(),Yu()),t,n,l),l),(ac(y||1)==5||ac(oo()||1)==5)&&gi(E)&&bs(E,-1,void 0)!==" "&&(E+=" ");break;default:E+="/"}break;case 123*v:s[c++]=gi(E)*p;case 125*v:case 59:case 0:switch(g){case 0:case 125:b=0;case 59+u:p==-1&&(E=Xu(E,/\f/g,"")),m>0&&(gi(E)-f||v===0&&y===47)&&ou(m>32?Ky(E+";",r,n,f-1,l):Ky(Xu(E," ","")+";",r,n,f-2,l),l);break;case 59:E+=";";default:if(ou(w=Gy(E,t,n,c,u,i,s,x,S=[],C=[],f,o),o),g===123)if(u===0)Qu(E,t,w,w,S,o,f,s,C);else switch(h===99&&oc(E,3)===110?100:h){case 100:case 108:case 109:case 115:Qu(e,w,w,r&&ou(Gy(e,w,w,0,0,i,s,x,i,S=[],f,C),C),i,C,f,s,r?S:C);break;default:Qu(E,w,w,w,[""],C,0,s,C)}}c=u=m=0,v=p=1,x=E="",f=a;break;case 58:f=1+gi(E),m=y;default:if(v<1){if(g==123)--v;else if(g==125&&v++==0&&gT()==125)continue}switch(E+=_v(g),g*v){case 38:p=u>0?1:(E+="\f",-1);break;case 44:s[c++]=(gi(E)-1)*p,p=1;break;case 64:oo()===45&&(E+=Eh(ii())),h=oo(),u=f=gi(x=E+=xT(Yu())),g++;break;case 45:y===45&&gi(E)==2&&(v=0)}}return o}function Gy(e,t,n,r,i,o,a,s,l,c,u,f){for(var h=i-1,m=i===0?o:[""],y=fT(m),v=0,b=0,p=0;v0?m[g]+" "+x:Xu(x,/&\f/g,m[g])))&&(l[p++]=S);return $v(e,t,n,i===0?Xw:s,l,c,u,f)}function CT(e,t,n,r){return $v(e,t,n,qw,_v(hT()),bs(e,2,-2),0,r)}function Ky(e,t,n,r,i){return $v(e,t,n,Yw,bs(e,0,r),bs(e,r+1,-1),r,i)}function um(e,t){for(var n="",r=0;r1&&arguments[1]!==void 0?arguments[1]:{},r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{root:!0,parentSelectors:[]},i=r.root,o=r.injectHash,a=r.parentSelectors,s=n.hashId,l=n.layer;n.path;var c=n.hashPriority,u=n.transformers,f=u===void 0?[]:u;n.linters;var h="",m={};function y(p){var g=p.getName(s);if(!m[g]){var x=e(p.style,n,{root:!1,parentSelectors:a}),S=Q(x,1),C=S[0];m[g]="@keyframes ".concat(p.getName(s)).concat(C)}}function v(p){var g=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[];return p.forEach(function(x){Array.isArray(x)?v(x,g):x&&g.push(x)}),g}var b=v(Array.isArray(t)?t:[t]);return b.forEach(function(p){var g=typeof p=="string"&&!i?{}:p;if(typeof g=="string")h+="".concat(g,` `);else if(g._keyframe)y(g);else{var x=f.reduce(function(S,C){var w;return(C==null||(w=C.visit)===null||w===void 0?void 0:w.call(C,S))||S},g);Object.keys(x).forEach(function(S){var C=x[S];if(je(C)==="object"&&C&&(S!=="animationName"||!C._keyframe)&&!PT(C)){var w=!1,E=S.trim(),_=!1;(i||o)&&s?E.startsWith("@")?w=!0:E==="&"?E=Xy("",s,c):E=Xy(S,s,c):i&&!s&&(E==="&"||E==="")&&(E="",_=!0);var O=e(C,n,{root:_,injectHash:w,parentSelectors:[].concat(ge(a),[E])}),M=Q(O,2),I=M[0],k=M[1];m=V(V({},m),k),h+="".concat(E).concat(I)}else{let B=function(A,P){var R=A.replace(/[A-Z]/g,function(D){return"-".concat(D.toLowerCase())}),N=P;!sT[A]&&typeof N=="number"&&N!==0&&(N="".concat(N,"px")),A==="animationName"&&P!==null&&P!==void 0&&P._keyframe&&(y(P),N=P.getName(s)),h+="".concat(R,":").concat(N,";")};var F,j=(F=C==null?void 0:C.value)!==null&&F!==void 0?F:C;je(C)==="object"&&C!==null&&C!==void 0&&C[nE]&&Array.isArray(j)?j.forEach(function(A){B(S,A)}):B(S,j)}})}}),i?l&&(h="@layer ".concat(l.name," {").concat(h,"}"),l.dependencies&&(m["@layer ".concat(l.name)]=l.dependencies.map(function(p){return"@layer ".concat(p,", ").concat(l.name,";")}).join(` -`))):h="{".concat(h,"}"),[h,m]};function rE(e,t){return rc("".concat(e.join("%")).concat(t))}function TT(){return null}var iE="style";function fm(e,t){var n=e.token,r=e.path,i=e.hashId,o=e.layer,a=e.nonce,s=e.clientOnly,l=e.order,c=l===void 0?0:l,u=d.useContext(Rf),f=u.autoClear;u.mock;var h=u.defaultCache,m=u.hashPriority,y=u.container,v=u.ssrInline,b=u.transformers,p=u.linters,g=u.cache,x=u.layer,S=n._tokenKey,C=[S];x&&C.push("layer"),C.push.apply(C,ge(r));var w=cm,E=Ev(iE,C,function(){var k=C.join("|");if(_T(k)){var F=$T(k),j=Q(F,2),B=j[0],A=j[1];if(B)return[B,S,A,{},s,c]}var P=t(),R=MT(P,{hashId:i,hashPriority:m,layer:x?o:void 0,path:r.join("-"),transformers:b,linters:p}),N=Q(R,2),D=N[0],H=N[1],G=Zu(D),X=rE(C,G);return[G,S,X,H,s,c]},function(k,F){var j=Q(k,3),B=j[2];(F||f)&&cm&&ic(B,{mark:ri})},function(k){var F=Q(k,4),j=F[0];F[1];var B=F[2],A=F[3];if(w&&j!==eE){var P={mark:ri,prepend:x?!1:"queue",attachTo:y,priority:c},R=typeof a=="function"?a():a;R&&(P.csp={nonce:R});var N=[],D=[];Object.keys(A).forEach(function(G){G.startsWith("@layer")?N.push(G):D.push(G)}),N.forEach(function(G){ki(Zu(A[G]),"_layer-".concat(G),V(V({},P),{},{prepend:!0}))});var H=ki(j,B,P);H[io]=g.instanceId,H.setAttribute(ys,S),D.forEach(function(G){ki(Zu(A[G]),"_effect-".concat(G),P)})}}),_=Q(E,3),O=_[0],M=_[1],I=_[2];return function(k){var F;return!v||w||!h?F=d.createElement(TT,null):F=d.createElement("style",Pe({},z(z({},ys,M),ri,I),{dangerouslySetInnerHTML:{__html:O}})),d.createElement(d.Fragment,null,F,k)}}var RT=function(t,n,r){var i=Q(t,6),o=i[0],a=i[1],s=i[2],l=i[3],c=i[4],u=i[5],f=r||{},h=f.plain;if(c)return null;var m=o,y={"data-rc-order":"prependQueue","data-rc-priority":"".concat(u)};return m=Fd(o,a,s,y,h),l&&Object.keys(l).forEach(function(v){if(!n[v]){n[v]=!0;var b=Zu(l[v]),p=Fd(b,a,"_effect-".concat(v),y,h);v.startsWith("@layer")?m=p+m:m+=p}}),[u,s,m]},oE="cssVar",IT=function(t,n){var r=t.key,i=t.prefix,o=t.unitless,a=t.ignore,s=t.token,l=t.scope,c=l===void 0?"":l,u=d.useContext(Rf),f=u.cache.instanceId,h=u.container,m=s._tokenKey,y=[].concat(ge(t.path),[r,c,m]),v=Ev(oE,y,function(){var b=n(),p=Gw(b,r,{prefix:i,unitless:o,ignore:a,scope:c}),g=Q(p,2),x=g[0],S=g[1],C=rE(y,S);return[x,S,C,r]},function(b){var p=Q(b,3),g=p[2];cm&&ic(g,{mark:ri})},function(b){var p=Q(b,3),g=p[1],x=p[2];if(g){var S=ki(g,x,{mark:ri,prepend:"queue",attachTo:h,priority:-999});S[io]=f,S.setAttribute(ys,r)}});return v},kT=function(t,n,r){var i=Q(t,4),o=i[1],a=i[2],s=i[3],l=r||{},c=l.plain;if(!o)return null;var u=-999,f={"data-rc-order":"prependQueue","data-rc-priority":"".concat(u)},h=Fd(o,s,a,f,c);return[u,a,h]};z(z(z({},iE,RT),Kw,aT),oE,kT);var mn=function(){function e(t,n){hn(this,e),z(this,"name",void 0),z(this,"style",void 0),z(this,"_keyframe",!0),this.name=t,this.style=n}return gn(e,[{key:"getName",value:function(){var n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"";return n?"".concat(n,"-").concat(this.name):this.name}}]),e}();function wa(e){return e.notSplit=!0,e}wa(["borderTop","borderBottom"]),wa(["borderTop"]),wa(["borderBottom"]),wa(["borderLeft","borderRight"]),wa(["borderLeft"]),wa(["borderRight"]);var Ov=d.createContext({});function NT(e){return jw(e)||Aw(e)||xv(e)||Bw()}function vi(e,t){for(var n=e,r=0;r3&&arguments[3]!==void 0?arguments[3]:!1;return t.length&&r&&n===void 0&&!vi(e,t.slice(0,-1))?e:aE(e,t,n,r)}function FT(e){return je(e)==="object"&&e!==null&&Object.getPrototypeOf(e)===Object.prototype}function Yy(e){return Array.isArray(e)?[]:{}}var AT=typeof Reflect>"u"?Object.keys:Reflect.ownKeys;function Xa(){for(var e=arguments.length,t=new Array(e),n=0;n{const e=()=>{};return e.deprecated=LT,e},sE=d.createContext(void 0);var zT={items_per_page:"/ page",jump_to:"Go to",jump_to_confirm:"confirm",page:"Page",prev_page:"Previous Page",next_page:"Next Page",prev_5:"Previous 5 Pages",next_5:"Next 5 Pages",prev_3:"Previous 3 Pages",next_3:"Next 3 Pages",page_size:"Page Size"},jT={yearFormat:"YYYY",dayFormat:"D",cellMeridiemFormat:"A",monthBeforeYear:!0},BT=V(V({},jT),{},{locale:"en_US",today:"Today",now:"Now",backToToday:"Back to today",ok:"OK",clear:"Clear",month:"Month",year:"Year",timeSelect:"select time",dateSelect:"select date",weekSelect:"Choose a week",monthSelect:"Choose a month",yearSelect:"Choose a year",decadeSelect:"Choose a decade",dateFormat:"M/D/YYYY",dateTimeFormat:"M/D/YYYY HH:mm:ss",previousMonth:"Previous month (PageUp)",nextMonth:"Next month (PageDown)",previousYear:"Last year (Control + left)",nextYear:"Next year (Control + right)",previousDecade:"Last decade",nextDecade:"Next decade",previousCentury:"Last century",nextCentury:"Next century"});const lE={placeholder:"Select time",rangePlaceholder:["Start time","End time"]},Qy={lang:Object.assign({placeholder:"Select date",yearPlaceholder:"Select year",quarterPlaceholder:"Select quarter",monthPlaceholder:"Select month",weekPlaceholder:"Select week",rangePlaceholder:["Start date","End date"],rangeYearPlaceholder:["Start year","End year"],rangeQuarterPlaceholder:["Start quarter","End quarter"],rangeMonthPlaceholder:["Start month","End month"],rangeWeekPlaceholder:["Start week","End week"]},BT),timePickerLocale:Object.assign({},lE)},hr="${label} is not a valid ${type}",sa={locale:"en",Pagination:zT,DatePicker:Qy,TimePicker:lE,Calendar:Qy,global:{placeholder:"Please select"},Table:{filterTitle:"Filter menu",filterConfirm:"OK",filterReset:"Reset",filterEmptyText:"No filters",filterCheckall:"Select all items",filterSearchPlaceholder:"Search in filters",emptyText:"No data",selectAll:"Select current page",selectInvert:"Invert current page",selectNone:"Clear all data",selectionAll:"Select all data",sortTitle:"Sort",expand:"Expand row",collapse:"Collapse row",triggerDesc:"Click to sort descending",triggerAsc:"Click to sort ascending",cancelSort:"Click to cancel sorting"},Tour:{Next:"Next",Previous:"Previous",Finish:"Finish"},Modal:{okText:"OK",cancelText:"Cancel",justOkText:"OK"},Popconfirm:{okText:"OK",cancelText:"Cancel"},Transfer:{titles:["",""],searchPlaceholder:"Search here",itemUnit:"item",itemsUnit:"items",remove:"Remove",selectCurrent:"Select current page",removeCurrent:"Remove current page",selectAll:"Select all data",deselectAll:"Deselect all data",removeAll:"Remove all data",selectInvert:"Invert current page"},Upload:{uploading:"Uploading...",removeFile:"Remove file",uploadError:"Upload error",previewFile:"Preview file",downloadFile:"Download file"},Empty:{description:"No data"},Icon:{icon:"icon"},Text:{edit:"Edit",copy:"Copy",copied:"Copied",expand:"Expand",collapse:"Collapse"},Form:{optional:"(optional)",defaultValidateMessages:{default:"Field validation error for ${label}",required:"Please enter ${label}",enum:"${label} must be one of [${enum}]",whitespace:"${label} cannot be a blank character",date:{format:"${label} date format is invalid",parse:"${label} cannot be converted to a date",invalid:"${label} is an invalid date"},types:{string:hr,method:hr,array:hr,object:hr,number:hr,date:hr,boolean:hr,integer:hr,float:hr,regexp:hr,email:hr,url:hr,hex:hr},string:{len:"${label} must be ${len} characters",min:"${label} must be at least ${min} characters",max:"${label} must be up to ${max} characters",range:"${label} must be between ${min}-${max} characters"},number:{len:"${label} must be equal to ${len}",min:"${label} must be minimum ${min}",max:"${label} must be maximum ${max}",range:"${label} must be between ${min}-${max}"},array:{len:"Must be ${len} ${label}",min:"At least ${min} ${label}",max:"At most ${max} ${label}",range:"The amount of ${label} must be between ${min}-${max}"},pattern:{mismatch:"${label} does not match the pattern ${pattern}"}}},Image:{preview:"Preview"},QRCode:{expired:"QR code expired",refresh:"Refresh",scanned:"Scanned"},ColorPicker:{presetEmpty:"Empty",transparent:"Transparent",singleColor:"Single",gradientColor:"Gradient"}};Object.assign({},sa.Modal);let Ju=[];const Zy=()=>Ju.reduce((e,t)=>Object.assign(Object.assign({},e),t),sa.Modal);function HT(e){if(e){const t=Object.assign({},e);return Ju.push(t),Zy(),()=>{Ju=Ju.filter(n=>n!==t),Zy()}}Object.assign({},sa.Modal)}const Mv=d.createContext(void 0),VT=(e,t)=>{const n=d.useContext(Mv),r=d.useMemo(()=>{var o;const a=sa[e],s=(o=n==null?void 0:n[e])!==null&&o!==void 0?o:{};return Object.assign(Object.assign({},typeof a=="function"?a():a),s||{})},[e,t,n]),i=d.useMemo(()=>{const o=n==null?void 0:n.locale;return n!=null&&n.exist&&!o?sa.locale:o},[n]);return[r,i]},WT="internalMark",UT=e=>{const{locale:t={},children:n,_ANT_MARK__:r}=e;d.useEffect(()=>HT(t==null?void 0:t.Modal),[t]);const i=d.useMemo(()=>Object.assign(Object.assign({},t),{exist:!0}),[t]);return d.createElement(Mv.Provider,{value:i},n)};function zn(e,t){GT(e)&&(e="100%");var n=KT(e);return e=t===360?e:Math.min(t,Math.max(0,parseFloat(e))),n&&(e=parseInt(String(e*t),10)/100),Math.abs(e-t)<1e-6?1:(t===360?e=(e<0?e%t+t:e%t)/parseFloat(String(t)):e=e%t/parseFloat(String(t)),e)}function au(e){return Math.min(1,Math.max(0,e))}function GT(e){return typeof e=="string"&&e.indexOf(".")!==-1&&parseFloat(e)===1}function KT(e){return typeof e=="string"&&e.indexOf("%")!==-1}function cE(e){return e=parseFloat(e),(isNaN(e)||e<0||e>1)&&(e=1),e}function su(e){return e<=1?"".concat(Number(e)*100,"%"):e}function Go(e){return e.length===1?"0"+e:String(e)}function qT(e,t,n){return{r:zn(e,255)*255,g:zn(t,255)*255,b:zn(n,255)*255}}function Jy(e,t,n){e=zn(e,255),t=zn(t,255),n=zn(n,255);var r=Math.max(e,t,n),i=Math.min(e,t,n),o=0,a=0,s=(r+i)/2;if(r===i)a=0,o=0;else{var l=r-i;switch(a=s>.5?l/(2-r-i):l/(r+i),r){case e:o=(t-n)/l+(t1&&(n-=1),n<1/6?e+(t-e)*(6*n):n<1/2?t:n<2/3?e+(t-e)*(2/3-n)*6:e}function XT(e,t,n){var r,i,o;if(e=zn(e,360),t=zn(t,100),n=zn(n,100),t===0)i=n,o=n,r=n;else{var a=n<.5?n*(1+t):n+t-n*t,s=2*n-a;r=$h(s,a,e+1/3),i=$h(s,a,e),o=$h(s,a,e-1/3)}return{r:r*255,g:i*255,b:o*255}}function hm(e,t,n){e=zn(e,255),t=zn(t,255),n=zn(n,255);var r=Math.max(e,t,n),i=Math.min(e,t,n),o=0,a=r,s=r-i,l=r===0?0:s/r;if(r===i)o=0;else{switch(r){case e:o=(t-n)/s+(t>16,g:(e&65280)>>8,b:e&255}}var mm={aliceblue:"#f0f8ff",antiquewhite:"#faebd7",aqua:"#00ffff",aquamarine:"#7fffd4",azure:"#f0ffff",beige:"#f5f5dc",bisque:"#ffe4c4",black:"#000000",blanchedalmond:"#ffebcd",blue:"#0000ff",blueviolet:"#8a2be2",brown:"#a52a2a",burlywood:"#deb887",cadetblue:"#5f9ea0",chartreuse:"#7fff00",chocolate:"#d2691e",coral:"#ff7f50",cornflowerblue:"#6495ed",cornsilk:"#fff8dc",crimson:"#dc143c",cyan:"#00ffff",darkblue:"#00008b",darkcyan:"#008b8b",darkgoldenrod:"#b8860b",darkgray:"#a9a9a9",darkgreen:"#006400",darkgrey:"#a9a9a9",darkkhaki:"#bdb76b",darkmagenta:"#8b008b",darkolivegreen:"#556b2f",darkorange:"#ff8c00",darkorchid:"#9932cc",darkred:"#8b0000",darksalmon:"#e9967a",darkseagreen:"#8fbc8f",darkslateblue:"#483d8b",darkslategray:"#2f4f4f",darkslategrey:"#2f4f4f",darkturquoise:"#00ced1",darkviolet:"#9400d3",deeppink:"#ff1493",deepskyblue:"#00bfff",dimgray:"#696969",dimgrey:"#696969",dodgerblue:"#1e90ff",firebrick:"#b22222",floralwhite:"#fffaf0",forestgreen:"#228b22",fuchsia:"#ff00ff",gainsboro:"#dcdcdc",ghostwhite:"#f8f8ff",goldenrod:"#daa520",gold:"#ffd700",gray:"#808080",green:"#008000",greenyellow:"#adff2f",grey:"#808080",honeydew:"#f0fff0",hotpink:"#ff69b4",indianred:"#cd5c5c",indigo:"#4b0082",ivory:"#fffff0",khaki:"#f0e68c",lavenderblush:"#fff0f5",lavender:"#e6e6fa",lawngreen:"#7cfc00",lemonchiffon:"#fffacd",lightblue:"#add8e6",lightcoral:"#f08080",lightcyan:"#e0ffff",lightgoldenrodyellow:"#fafad2",lightgray:"#d3d3d3",lightgreen:"#90ee90",lightgrey:"#d3d3d3",lightpink:"#ffb6c1",lightsalmon:"#ffa07a",lightseagreen:"#20b2aa",lightskyblue:"#87cefa",lightslategray:"#778899",lightslategrey:"#778899",lightsteelblue:"#b0c4de",lightyellow:"#ffffe0",lime:"#00ff00",limegreen:"#32cd32",linen:"#faf0e6",magenta:"#ff00ff",maroon:"#800000",mediumaquamarine:"#66cdaa",mediumblue:"#0000cd",mediumorchid:"#ba55d3",mediumpurple:"#9370db",mediumseagreen:"#3cb371",mediumslateblue:"#7b68ee",mediumspringgreen:"#00fa9a",mediumturquoise:"#48d1cc",mediumvioletred:"#c71585",midnightblue:"#191970",mintcream:"#f5fffa",mistyrose:"#ffe4e1",moccasin:"#ffe4b5",navajowhite:"#ffdead",navy:"#000080",oldlace:"#fdf5e6",olive:"#808000",olivedrab:"#6b8e23",orange:"#ffa500",orangered:"#ff4500",orchid:"#da70d6",palegoldenrod:"#eee8aa",palegreen:"#98fb98",paleturquoise:"#afeeee",palevioletred:"#db7093",papayawhip:"#ffefd5",peachpuff:"#ffdab9",peru:"#cd853f",pink:"#ffc0cb",plum:"#dda0dd",powderblue:"#b0e0e6",purple:"#800080",rebeccapurple:"#663399",red:"#ff0000",rosybrown:"#bc8f8f",royalblue:"#4169e1",saddlebrown:"#8b4513",salmon:"#fa8072",sandybrown:"#f4a460",seagreen:"#2e8b57",seashell:"#fff5ee",sienna:"#a0522d",silver:"#c0c0c0",skyblue:"#87ceeb",slateblue:"#6a5acd",slategray:"#708090",slategrey:"#708090",snow:"#fffafa",springgreen:"#00ff7f",steelblue:"#4682b4",tan:"#d2b48c",teal:"#008080",thistle:"#d8bfd8",tomato:"#ff6347",turquoise:"#40e0d0",violet:"#ee82ee",wheat:"#f5deb3",white:"#ffffff",whitesmoke:"#f5f5f5",yellow:"#ffff00",yellowgreen:"#9acd32"};function Na(e){var t={r:0,g:0,b:0},n=1,r=null,i=null,o=null,a=!1,s=!1;return typeof e=="string"&&(e=nR(e)),typeof e=="object"&&(wi(e.r)&&wi(e.g)&&wi(e.b)?(t=qT(e.r,e.g,e.b),a=!0,s=String(e.r).substr(-1)==="%"?"prgb":"rgb"):wi(e.h)&&wi(e.s)&&wi(e.v)?(r=su(e.s),i=su(e.v),t=YT(e.h,r,i),a=!0,s="hsv"):wi(e.h)&&wi(e.s)&&wi(e.l)&&(r=su(e.s),o=su(e.l),t=XT(e.h,r,o),a=!0,s="hsl"),Object.prototype.hasOwnProperty.call(e,"a")&&(n=e.a)),n=cE(n),{ok:a,format:e.format||s,r:Math.min(255,Math.max(t.r,0)),g:Math.min(255,Math.max(t.g,0)),b:Math.min(255,Math.max(t.b,0)),a:n}}var eR="[-\\+]?\\d+%?",tR="[-\\+]?\\d*\\.\\d+%?",ao="(?:".concat(tR,")|(?:").concat(eR,")"),Oh="[\\s|\\(]+(".concat(ao,")[,|\\s]+(").concat(ao,")[,|\\s]+(").concat(ao,")\\s*\\)?"),Ph="[\\s|\\(]+(".concat(ao,")[,|\\s]+(").concat(ao,")[,|\\s]+(").concat(ao,")[,|\\s]+(").concat(ao,")\\s*\\)?"),Gr={CSS_UNIT:new RegExp(ao),rgb:new RegExp("rgb"+Oh),rgba:new RegExp("rgba"+Ph),hsl:new RegExp("hsl"+Oh),hsla:new RegExp("hsla"+Ph),hsv:new RegExp("hsv"+Oh),hsva:new RegExp("hsva"+Ph),hex3:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex6:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/,hex4:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex8:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/};function nR(e){if(e=e.trim().toLowerCase(),e.length===0)return!1;var t=!1;if(mm[e])e=mm[e],t=!0;else if(e==="transparent")return{r:0,g:0,b:0,a:0,format:"name"};var n=Gr.rgb.exec(e);return n?{r:n[1],g:n[2],b:n[3]}:(n=Gr.rgba.exec(e),n?{r:n[1],g:n[2],b:n[3],a:n[4]}:(n=Gr.hsl.exec(e),n?{h:n[1],s:n[2],l:n[3]}:(n=Gr.hsla.exec(e),n?{h:n[1],s:n[2],l:n[3],a:n[4]}:(n=Gr.hsv.exec(e),n?{h:n[1],s:n[2],v:n[3]}:(n=Gr.hsva.exec(e),n?{h:n[1],s:n[2],v:n[3],a:n[4]}:(n=Gr.hex8.exec(e),n?{r:mr(n[1]),g:mr(n[2]),b:mr(n[3]),a:eb(n[4]),format:t?"name":"hex8"}:(n=Gr.hex6.exec(e),n?{r:mr(n[1]),g:mr(n[2]),b:mr(n[3]),format:t?"name":"hex"}:(n=Gr.hex4.exec(e),n?{r:mr(n[1]+n[1]),g:mr(n[2]+n[2]),b:mr(n[3]+n[3]),a:eb(n[4]+n[4]),format:t?"name":"hex8"}:(n=Gr.hex3.exec(e),n?{r:mr(n[1]+n[1]),g:mr(n[2]+n[2]),b:mr(n[3]+n[3]),format:t?"name":"hex"}:!1)))))))))}function wi(e){return!!Gr.CSS_UNIT.exec(String(e))}var In=function(){function e(t,n){t===void 0&&(t=""),n===void 0&&(n={});var r;if(t instanceof e)return t;typeof t=="number"&&(t=JT(t)),this.originalInput=t;var i=Na(t);this.originalInput=t,this.r=i.r,this.g=i.g,this.b=i.b,this.a=i.a,this.roundA=Math.round(100*this.a)/100,this.format=(r=n.format)!==null&&r!==void 0?r:i.format,this.gradientType=n.gradientType,this.r<1&&(this.r=Math.round(this.r)),this.g<1&&(this.g=Math.round(this.g)),this.b<1&&(this.b=Math.round(this.b)),this.isValid=i.ok}return e.prototype.isDark=function(){return this.getBrightness()<128},e.prototype.isLight=function(){return!this.isDark()},e.prototype.getBrightness=function(){var t=this.toRgb();return(t.r*299+t.g*587+t.b*114)/1e3},e.prototype.getLuminance=function(){var t=this.toRgb(),n,r,i,o=t.r/255,a=t.g/255,s=t.b/255;return o<=.03928?n=o/12.92:n=Math.pow((o+.055)/1.055,2.4),a<=.03928?r=a/12.92:r=Math.pow((a+.055)/1.055,2.4),s<=.03928?i=s/12.92:i=Math.pow((s+.055)/1.055,2.4),.2126*n+.7152*r+.0722*i},e.prototype.getAlpha=function(){return this.a},e.prototype.setAlpha=function(t){return this.a=cE(t),this.roundA=Math.round(100*this.a)/100,this},e.prototype.isMonochrome=function(){var t=this.toHsl().s;return t===0},e.prototype.toHsv=function(){var t=hm(this.r,this.g,this.b);return{h:t.h*360,s:t.s,v:t.v,a:this.a}},e.prototype.toHsvString=function(){var t=hm(this.r,this.g,this.b),n=Math.round(t.h*360),r=Math.round(t.s*100),i=Math.round(t.v*100);return this.a===1?"hsv(".concat(n,", ").concat(r,"%, ").concat(i,"%)"):"hsva(".concat(n,", ").concat(r,"%, ").concat(i,"%, ").concat(this.roundA,")")},e.prototype.toHsl=function(){var t=Jy(this.r,this.g,this.b);return{h:t.h*360,s:t.s,l:t.l,a:this.a}},e.prototype.toHslString=function(){var t=Jy(this.r,this.g,this.b),n=Math.round(t.h*360),r=Math.round(t.s*100),i=Math.round(t.l*100);return this.a===1?"hsl(".concat(n,", ").concat(r,"%, ").concat(i,"%)"):"hsla(".concat(n,", ").concat(r,"%, ").concat(i,"%, ").concat(this.roundA,")")},e.prototype.toHex=function(t){return t===void 0&&(t=!1),gm(this.r,this.g,this.b,t)},e.prototype.toHexString=function(t){return t===void 0&&(t=!1),"#"+this.toHex(t)},e.prototype.toHex8=function(t){return t===void 0&&(t=!1),QT(this.r,this.g,this.b,this.a,t)},e.prototype.toHex8String=function(t){return t===void 0&&(t=!1),"#"+this.toHex8(t)},e.prototype.toHexShortString=function(t){return t===void 0&&(t=!1),this.a===1?this.toHexString(t):this.toHex8String(t)},e.prototype.toRgb=function(){return{r:Math.round(this.r),g:Math.round(this.g),b:Math.round(this.b),a:this.a}},e.prototype.toRgbString=function(){var t=Math.round(this.r),n=Math.round(this.g),r=Math.round(this.b);return this.a===1?"rgb(".concat(t,", ").concat(n,", ").concat(r,")"):"rgba(".concat(t,", ").concat(n,", ").concat(r,", ").concat(this.roundA,")")},e.prototype.toPercentageRgb=function(){var t=function(n){return"".concat(Math.round(zn(n,255)*100),"%")};return{r:t(this.r),g:t(this.g),b:t(this.b),a:this.a}},e.prototype.toPercentageRgbString=function(){var t=function(n){return Math.round(zn(n,255)*100)};return this.a===1?"rgb(".concat(t(this.r),"%, ").concat(t(this.g),"%, ").concat(t(this.b),"%)"):"rgba(".concat(t(this.r),"%, ").concat(t(this.g),"%, ").concat(t(this.b),"%, ").concat(this.roundA,")")},e.prototype.toName=function(){if(this.a===0)return"transparent";if(this.a<1)return!1;for(var t="#"+gm(this.r,this.g,this.b,!1),n=0,r=Object.entries(mm);n=0,o=!n&&i&&(t.startsWith("hex")||t==="name");return o?t==="name"&&this.a===0?this.toName():this.toRgbString():(t==="rgb"&&(r=this.toRgbString()),t==="prgb"&&(r=this.toPercentageRgbString()),(t==="hex"||t==="hex6")&&(r=this.toHexString()),t==="hex3"&&(r=this.toHexString(!0)),t==="hex4"&&(r=this.toHex8String(!0)),t==="hex8"&&(r=this.toHex8String()),t==="name"&&(r=this.toName()),t==="hsl"&&(r=this.toHslString()),t==="hsv"&&(r=this.toHsvString()),r||this.toHexString())},e.prototype.toNumber=function(){return(Math.round(this.r)<<16)+(Math.round(this.g)<<8)+Math.round(this.b)},e.prototype.clone=function(){return new e(this.toString())},e.prototype.lighten=function(t){t===void 0&&(t=10);var n=this.toHsl();return n.l+=t/100,n.l=au(n.l),new e(n)},e.prototype.brighten=function(t){t===void 0&&(t=10);var n=this.toRgb();return n.r=Math.max(0,Math.min(255,n.r-Math.round(255*-(t/100)))),n.g=Math.max(0,Math.min(255,n.g-Math.round(255*-(t/100)))),n.b=Math.max(0,Math.min(255,n.b-Math.round(255*-(t/100)))),new e(n)},e.prototype.darken=function(t){t===void 0&&(t=10);var n=this.toHsl();return n.l-=t/100,n.l=au(n.l),new e(n)},e.prototype.tint=function(t){return t===void 0&&(t=10),this.mix("white",t)},e.prototype.shade=function(t){return t===void 0&&(t=10),this.mix("black",t)},e.prototype.desaturate=function(t){t===void 0&&(t=10);var n=this.toHsl();return n.s-=t/100,n.s=au(n.s),new e(n)},e.prototype.saturate=function(t){t===void 0&&(t=10);var n=this.toHsl();return n.s+=t/100,n.s=au(n.s),new e(n)},e.prototype.greyscale=function(){return this.desaturate(100)},e.prototype.spin=function(t){var n=this.toHsl(),r=(n.h+t)%360;return n.h=r<0?360+r:r,new e(n)},e.prototype.mix=function(t,n){n===void 0&&(n=50);var r=this.toRgb(),i=new e(t).toRgb(),o=n/100,a={r:(i.r-r.r)*o+r.r,g:(i.g-r.g)*o+r.g,b:(i.b-r.b)*o+r.b,a:(i.a-r.a)*o+r.a};return new e(a)},e.prototype.analogous=function(t,n){t===void 0&&(t=6),n===void 0&&(n=30);var r=this.toHsl(),i=360/n,o=[this];for(r.h=(r.h-(i*t>>1)+720)%360;--t;)r.h=(r.h+i)%360,o.push(new e(r));return o},e.prototype.complement=function(){var t=this.toHsl();return t.h=(t.h+180)%360,new e(t)},e.prototype.monochromatic=function(t){t===void 0&&(t=6);for(var n=this.toHsv(),r=n.h,i=n.s,o=n.v,a=[],s=1/t;t--;)a.push(new e({h:r,s:i,v:o})),o=(o+s)%1;return a},e.prototype.splitcomplement=function(){var t=this.toHsl(),n=t.h;return[this,new e({h:(n+72)%360,s:t.s,l:t.l}),new e({h:(n+216)%360,s:t.s,l:t.l})]},e.prototype.onBackground=function(t){var n=this.toRgb(),r=new e(t).toRgb(),i=n.a+r.a*(1-n.a);return new e({r:(n.r*n.a+r.r*r.a*(1-n.a))/i,g:(n.g*n.a+r.g*r.a*(1-n.a))/i,b:(n.b*n.a+r.b*r.a*(1-n.a))/i,a:i})},e.prototype.triad=function(){return this.polyad(3)},e.prototype.tetrad=function(){return this.polyad(4)},e.prototype.polyad=function(t){for(var n=this.toHsl(),r=n.h,i=[this],o=360/t,a=1;a=60&&Math.round(e.h)<=240?r=n?Math.round(e.h)-lu*t:Math.round(e.h)+lu*t:r=n?Math.round(e.h)+lu*t:Math.round(e.h)-lu*t,r<0?r+=360:r>=360&&(r-=360),r}function ib(e,t,n){if(e.h===0&&e.s===0)return e.s;var r;return n?r=e.s-tb*t:t===dE?r=e.s+tb:r=e.s+rR*t,r>1&&(r=1),n&&t===uE&&r>.1&&(r=.1),r<.06&&(r=.06),Number(r.toFixed(2))}function ob(e,t,n){var r;return n?r=e.v+iR*t:r=e.v-oR*t,r>1&&(r=1),Number(r.toFixed(2))}function sc(e){for(var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=[],r=Na(e),i=uE;i>0;i-=1){var o=nb(r),a=cu(Na({h:rb(o,i,!0),s:ib(o,i,!0),v:ob(o,i,!0)}));n.push(a)}n.push(cu(r));for(var s=1;s<=dE;s+=1){var l=nb(r),c=cu(Na({h:rb(l,s),s:ib(l,s),v:ob(l,s)}));n.push(c)}return t.theme==="dark"?aR.map(function(u){var f=u.index,h=u.opacity,m=cu(sR(Na(t.backgroundColor||"#141414"),Na(n[f]),h*100));return m}):n}var Mh={red:"#F5222D",volcano:"#FA541C",orange:"#FA8C16",gold:"#FAAD14",yellow:"#FADB14",lime:"#A0D911",green:"#52C41A",cyan:"#13C2C2",blue:"#1677FF",geekblue:"#2F54EB",purple:"#722ED1",magenta:"#EB2F96",grey:"#666666"},pm=["#fff1f0","#ffccc7","#ffa39e","#ff7875","#ff4d4f","#f5222d","#cf1322","#a8071a","#820014","#5c0011"];pm.primary=pm[5];var vm=["#fff2e8","#ffd8bf","#ffbb96","#ff9c6e","#ff7a45","#fa541c","#d4380d","#ad2102","#871400","#610b00"];vm.primary=vm[5];var ym=["#fff7e6","#ffe7ba","#ffd591","#ffc069","#ffa940","#fa8c16","#d46b08","#ad4e00","#873800","#612500"];ym.primary=ym[5];var bm=["#fffbe6","#fff1b8","#ffe58f","#ffd666","#ffc53d","#faad14","#d48806","#ad6800","#874d00","#613400"];bm.primary=bm[5];var xm=["#feffe6","#ffffb8","#fffb8f","#fff566","#ffec3d","#fadb14","#d4b106","#ad8b00","#876800","#614700"];xm.primary=xm[5];var Sm=["#fcffe6","#f4ffb8","#eaff8f","#d3f261","#bae637","#a0d911","#7cb305","#5b8c00","#3f6600","#254000"];Sm.primary=Sm[5];var Cm=["#f6ffed","#d9f7be","#b7eb8f","#95de64","#73d13d","#52c41a","#389e0d","#237804","#135200","#092b00"];Cm.primary=Cm[5];var wm=["#e6fffb","#b5f5ec","#87e8de","#5cdbd3","#36cfc9","#13c2c2","#08979c","#006d75","#00474f","#002329"];wm.primary=wm[5];var Ad=["#e6f4ff","#bae0ff","#91caff","#69b1ff","#4096ff","#1677ff","#0958d9","#003eb3","#002c8c","#001d66"];Ad.primary=Ad[5];var Em=["#f0f5ff","#d6e4ff","#adc6ff","#85a5ff","#597ef7","#2f54eb","#1d39c4","#10239e","#061178","#030852"];Em.primary=Em[5];var _m=["#f9f0ff","#efdbff","#d3adf7","#b37feb","#9254de","#722ed1","#531dab","#391085","#22075e","#120338"];_m.primary=_m[5];var $m=["#fff0f6","#ffd6e7","#ffadd2","#ff85c0","#f759ab","#eb2f96","#c41d7f","#9e1068","#780650","#520339"];$m.primary=$m[5];var Om=["#a6a6a6","#999999","#8c8c8c","#808080","#737373","#666666","#404040","#1a1a1a","#000000","#000000"];Om.primary=Om[5];var Th={red:pm,volcano:vm,orange:ym,gold:bm,yellow:xm,lime:Sm,green:Cm,cyan:wm,blue:Ad,geekblue:Em,purple:_m,magenta:$m,grey:Om};const fE={blue:"#1677FF",purple:"#722ED1",cyan:"#13C2C2",green:"#52C41A",magenta:"#EB2F96",pink:"#EB2F96",red:"#F5222D",orange:"#FA8C16",yellow:"#FADB14",volcano:"#FA541C",geekblue:"#2F54EB",gold:"#FAAD14",lime:"#A0D911"},lc=Object.assign(Object.assign({},fE),{colorPrimary:"#1677ff",colorSuccess:"#52c41a",colorWarning:"#faad14",colorError:"#ff4d4f",colorInfo:"#1677ff",colorLink:"",colorTextBase:"",colorBgBase:"",fontFamily:`-apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, +`))):h="{".concat(h,"}"),[h,m]};function rE(e,t){return rc("".concat(e.join("%")).concat(t))}function TT(){return null}var iE="style";function dm(e,t){var n=e.token,r=e.path,i=e.hashId,o=e.layer,a=e.nonce,s=e.clientOnly,l=e.order,c=l===void 0?0:l,u=d.useContext(Tf),f=u.autoClear;u.mock;var h=u.defaultCache,m=u.hashPriority,y=u.container,v=u.ssrInline,b=u.transformers,p=u.linters,g=u.cache,x=u.layer,S=n._tokenKey,C=[S];x&&C.push("layer"),C.push.apply(C,ge(r));var w=lm,E=Ev(iE,C,function(){var k=C.join("|");if(_T(k)){var F=$T(k),j=Q(F,2),B=j[0],A=j[1];if(B)return[B,S,A,{},s,c]}var P=t(),R=MT(P,{hashId:i,hashPriority:m,layer:x?o:void 0,path:r.join("-"),transformers:b,linters:p}),N=Q(R,2),D=N[0],H=N[1],G=Zu(D),X=rE(C,G);return[G,S,X,H,s,c]},function(k,F){var j=Q(k,3),B=j[2];(F||f)&&lm&&ic(B,{mark:ri})},function(k){var F=Q(k,4),j=F[0];F[1];var B=F[2],A=F[3];if(w&&j!==eE){var P={mark:ri,prepend:x?!1:"queue",attachTo:y,priority:c},R=typeof a=="function"?a():a;R&&(P.csp={nonce:R});var N=[],D=[];Object.keys(A).forEach(function(G){G.startsWith("@layer")?N.push(G):D.push(G)}),N.forEach(function(G){ki(Zu(A[G]),"_layer-".concat(G),V(V({},P),{},{prepend:!0}))});var H=ki(j,B,P);H[io]=g.instanceId,H.setAttribute(ys,S),D.forEach(function(G){ki(Zu(A[G]),"_effect-".concat(G),P)})}}),_=Q(E,3),O=_[0],M=_[1],I=_[2];return function(k){var F;return!v||w||!h?F=d.createElement(TT,null):F=d.createElement("style",Pe({},z(z({},ys,M),ri,I),{dangerouslySetInnerHTML:{__html:O}})),d.createElement(d.Fragment,null,F,k)}}var RT=function(t,n,r){var i=Q(t,6),o=i[0],a=i[1],s=i[2],l=i[3],c=i[4],u=i[5],f=r||{},h=f.plain;if(c)return null;var m=o,y={"data-rc-order":"prependQueue","data-rc-priority":"".concat(u)};return m=Fd(o,a,s,y,h),l&&Object.keys(l).forEach(function(v){if(!n[v]){n[v]=!0;var b=Zu(l[v]),p=Fd(b,a,"_effect-".concat(v),y,h);v.startsWith("@layer")?m=p+m:m+=p}}),[u,s,m]},oE="cssVar",IT=function(t,n){var r=t.key,i=t.prefix,o=t.unitless,a=t.ignore,s=t.token,l=t.scope,c=l===void 0?"":l,u=d.useContext(Tf),f=u.cache.instanceId,h=u.container,m=s._tokenKey,y=[].concat(ge(t.path),[r,c,m]),v=Ev(oE,y,function(){var b=n(),p=Gw(b,r,{prefix:i,unitless:o,ignore:a,scope:c}),g=Q(p,2),x=g[0],S=g[1],C=rE(y,S);return[x,S,C,r]},function(b){var p=Q(b,3),g=p[2];lm&&ic(g,{mark:ri})},function(b){var p=Q(b,3),g=p[1],x=p[2];if(g){var S=ki(g,x,{mark:ri,prepend:"queue",attachTo:h,priority:-999});S[io]=f,S.setAttribute(ys,r)}});return v},kT=function(t,n,r){var i=Q(t,4),o=i[1],a=i[2],s=i[3],l=r||{},c=l.plain;if(!o)return null;var u=-999,f={"data-rc-order":"prependQueue","data-rc-priority":"".concat(u)},h=Fd(o,s,a,f,c);return[u,a,h]};z(z(z({},iE,RT),Kw,aT),oE,kT);var mn=function(){function e(t,n){hn(this,e),z(this,"name",void 0),z(this,"style",void 0),z(this,"_keyframe",!0),this.name=t,this.style=n}return gn(e,[{key:"getName",value:function(){var n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"";return n?"".concat(n,"-").concat(this.name):this.name}}]),e}();function wa(e){return e.notSplit=!0,e}wa(["borderTop","borderBottom"]),wa(["borderTop"]),wa(["borderBottom"]),wa(["borderLeft","borderRight"]),wa(["borderLeft"]),wa(["borderRight"]);var Ov=d.createContext({});function NT(e){return jw(e)||Aw(e)||xv(e)||Bw()}function vi(e,t){for(var n=e,r=0;r3&&arguments[3]!==void 0?arguments[3]:!1;return t.length&&r&&n===void 0&&!vi(e,t.slice(0,-1))?e:aE(e,t,n,r)}function FT(e){return je(e)==="object"&&e!==null&&Object.getPrototypeOf(e)===Object.prototype}function Yy(e){return Array.isArray(e)?[]:{}}var AT=typeof Reflect>"u"?Object.keys:Reflect.ownKeys;function Xa(){for(var e=arguments.length,t=new Array(e),n=0;n{const e=()=>{};return e.deprecated=LT,e},sE=d.createContext(void 0);var zT={items_per_page:"/ page",jump_to:"Go to",jump_to_confirm:"confirm",page:"Page",prev_page:"Previous Page",next_page:"Next Page",prev_5:"Previous 5 Pages",next_5:"Next 5 Pages",prev_3:"Previous 3 Pages",next_3:"Next 3 Pages",page_size:"Page Size"},jT={yearFormat:"YYYY",dayFormat:"D",cellMeridiemFormat:"A",monthBeforeYear:!0},BT=V(V({},jT),{},{locale:"en_US",today:"Today",now:"Now",backToToday:"Back to today",ok:"OK",clear:"Clear",month:"Month",year:"Year",timeSelect:"select time",dateSelect:"select date",weekSelect:"Choose a week",monthSelect:"Choose a month",yearSelect:"Choose a year",decadeSelect:"Choose a decade",dateFormat:"M/D/YYYY",dateTimeFormat:"M/D/YYYY HH:mm:ss",previousMonth:"Previous month (PageUp)",nextMonth:"Next month (PageDown)",previousYear:"Last year (Control + left)",nextYear:"Next year (Control + right)",previousDecade:"Last decade",nextDecade:"Next decade",previousCentury:"Last century",nextCentury:"Next century"});const lE={placeholder:"Select time",rangePlaceholder:["Start time","End time"]},Qy={lang:Object.assign({placeholder:"Select date",yearPlaceholder:"Select year",quarterPlaceholder:"Select quarter",monthPlaceholder:"Select month",weekPlaceholder:"Select week",rangePlaceholder:["Start date","End date"],rangeYearPlaceholder:["Start year","End year"],rangeQuarterPlaceholder:["Start quarter","End quarter"],rangeMonthPlaceholder:["Start month","End month"],rangeWeekPlaceholder:["Start week","End week"]},BT),timePickerLocale:Object.assign({},lE)},hr="${label} is not a valid ${type}",sa={locale:"en",Pagination:zT,DatePicker:Qy,TimePicker:lE,Calendar:Qy,global:{placeholder:"Please select"},Table:{filterTitle:"Filter menu",filterConfirm:"OK",filterReset:"Reset",filterEmptyText:"No filters",filterCheckall:"Select all items",filterSearchPlaceholder:"Search in filters",emptyText:"No data",selectAll:"Select current page",selectInvert:"Invert current page",selectNone:"Clear all data",selectionAll:"Select all data",sortTitle:"Sort",expand:"Expand row",collapse:"Collapse row",triggerDesc:"Click to sort descending",triggerAsc:"Click to sort ascending",cancelSort:"Click to cancel sorting"},Tour:{Next:"Next",Previous:"Previous",Finish:"Finish"},Modal:{okText:"OK",cancelText:"Cancel",justOkText:"OK"},Popconfirm:{okText:"OK",cancelText:"Cancel"},Transfer:{titles:["",""],searchPlaceholder:"Search here",itemUnit:"item",itemsUnit:"items",remove:"Remove",selectCurrent:"Select current page",removeCurrent:"Remove current page",selectAll:"Select all data",deselectAll:"Deselect all data",removeAll:"Remove all data",selectInvert:"Invert current page"},Upload:{uploading:"Uploading...",removeFile:"Remove file",uploadError:"Upload error",previewFile:"Preview file",downloadFile:"Download file"},Empty:{description:"No data"},Icon:{icon:"icon"},Text:{edit:"Edit",copy:"Copy",copied:"Copied",expand:"Expand",collapse:"Collapse"},Form:{optional:"(optional)",defaultValidateMessages:{default:"Field validation error for ${label}",required:"Please enter ${label}",enum:"${label} must be one of [${enum}]",whitespace:"${label} cannot be a blank character",date:{format:"${label} date format is invalid",parse:"${label} cannot be converted to a date",invalid:"${label} is an invalid date"},types:{string:hr,method:hr,array:hr,object:hr,number:hr,date:hr,boolean:hr,integer:hr,float:hr,regexp:hr,email:hr,url:hr,hex:hr},string:{len:"${label} must be ${len} characters",min:"${label} must be at least ${min} characters",max:"${label} must be up to ${max} characters",range:"${label} must be between ${min}-${max} characters"},number:{len:"${label} must be equal to ${len}",min:"${label} must be minimum ${min}",max:"${label} must be maximum ${max}",range:"${label} must be between ${min}-${max}"},array:{len:"Must be ${len} ${label}",min:"At least ${min} ${label}",max:"At most ${max} ${label}",range:"The amount of ${label} must be between ${min}-${max}"},pattern:{mismatch:"${label} does not match the pattern ${pattern}"}}},Image:{preview:"Preview"},QRCode:{expired:"QR code expired",refresh:"Refresh",scanned:"Scanned"},ColorPicker:{presetEmpty:"Empty",transparent:"Transparent",singleColor:"Single",gradientColor:"Gradient"}};Object.assign({},sa.Modal);let Ju=[];const Zy=()=>Ju.reduce((e,t)=>Object.assign(Object.assign({},e),t),sa.Modal);function HT(e){if(e){const t=Object.assign({},e);return Ju.push(t),Zy(),()=>{Ju=Ju.filter(n=>n!==t),Zy()}}Object.assign({},sa.Modal)}const Mv=d.createContext(void 0),VT=(e,t)=>{const n=d.useContext(Mv),r=d.useMemo(()=>{var o;const a=sa[e],s=(o=n==null?void 0:n[e])!==null&&o!==void 0?o:{};return Object.assign(Object.assign({},typeof a=="function"?a():a),s||{})},[e,t,n]),i=d.useMemo(()=>{const o=n==null?void 0:n.locale;return n!=null&&n.exist&&!o?sa.locale:o},[n]);return[r,i]},WT="internalMark",UT=e=>{const{locale:t={},children:n,_ANT_MARK__:r}=e;d.useEffect(()=>HT(t==null?void 0:t.Modal),[t]);const i=d.useMemo(()=>Object.assign(Object.assign({},t),{exist:!0}),[t]);return d.createElement(Mv.Provider,{value:i},n)};function zn(e,t){GT(e)&&(e="100%");var n=KT(e);return e=t===360?e:Math.min(t,Math.max(0,parseFloat(e))),n&&(e=parseInt(String(e*t),10)/100),Math.abs(e-t)<1e-6?1:(t===360?e=(e<0?e%t+t:e%t)/parseFloat(String(t)):e=e%t/parseFloat(String(t)),e)}function au(e){return Math.min(1,Math.max(0,e))}function GT(e){return typeof e=="string"&&e.indexOf(".")!==-1&&parseFloat(e)===1}function KT(e){return typeof e=="string"&&e.indexOf("%")!==-1}function cE(e){return e=parseFloat(e),(isNaN(e)||e<0||e>1)&&(e=1),e}function su(e){return e<=1?"".concat(Number(e)*100,"%"):e}function Uo(e){return e.length===1?"0"+e:String(e)}function qT(e,t,n){return{r:zn(e,255)*255,g:zn(t,255)*255,b:zn(n,255)*255}}function Jy(e,t,n){e=zn(e,255),t=zn(t,255),n=zn(n,255);var r=Math.max(e,t,n),i=Math.min(e,t,n),o=0,a=0,s=(r+i)/2;if(r===i)a=0,o=0;else{var l=r-i;switch(a=s>.5?l/(2-r-i):l/(r+i),r){case e:o=(t-n)/l+(t1&&(n-=1),n<1/6?e+(t-e)*(6*n):n<1/2?t:n<2/3?e+(t-e)*(2/3-n)*6:e}function XT(e,t,n){var r,i,o;if(e=zn(e,360),t=zn(t,100),n=zn(n,100),t===0)i=n,o=n,r=n;else{var a=n<.5?n*(1+t):n+t-n*t,s=2*n-a;r=_h(s,a,e+1/3),i=_h(s,a,e),o=_h(s,a,e-1/3)}return{r:r*255,g:i*255,b:o*255}}function fm(e,t,n){e=zn(e,255),t=zn(t,255),n=zn(n,255);var r=Math.max(e,t,n),i=Math.min(e,t,n),o=0,a=r,s=r-i,l=r===0?0:s/r;if(r===i)o=0;else{switch(r){case e:o=(t-n)/s+(t>16,g:(e&65280)>>8,b:e&255}}var gm={aliceblue:"#f0f8ff",antiquewhite:"#faebd7",aqua:"#00ffff",aquamarine:"#7fffd4",azure:"#f0ffff",beige:"#f5f5dc",bisque:"#ffe4c4",black:"#000000",blanchedalmond:"#ffebcd",blue:"#0000ff",blueviolet:"#8a2be2",brown:"#a52a2a",burlywood:"#deb887",cadetblue:"#5f9ea0",chartreuse:"#7fff00",chocolate:"#d2691e",coral:"#ff7f50",cornflowerblue:"#6495ed",cornsilk:"#fff8dc",crimson:"#dc143c",cyan:"#00ffff",darkblue:"#00008b",darkcyan:"#008b8b",darkgoldenrod:"#b8860b",darkgray:"#a9a9a9",darkgreen:"#006400",darkgrey:"#a9a9a9",darkkhaki:"#bdb76b",darkmagenta:"#8b008b",darkolivegreen:"#556b2f",darkorange:"#ff8c00",darkorchid:"#9932cc",darkred:"#8b0000",darksalmon:"#e9967a",darkseagreen:"#8fbc8f",darkslateblue:"#483d8b",darkslategray:"#2f4f4f",darkslategrey:"#2f4f4f",darkturquoise:"#00ced1",darkviolet:"#9400d3",deeppink:"#ff1493",deepskyblue:"#00bfff",dimgray:"#696969",dimgrey:"#696969",dodgerblue:"#1e90ff",firebrick:"#b22222",floralwhite:"#fffaf0",forestgreen:"#228b22",fuchsia:"#ff00ff",gainsboro:"#dcdcdc",ghostwhite:"#f8f8ff",goldenrod:"#daa520",gold:"#ffd700",gray:"#808080",green:"#008000",greenyellow:"#adff2f",grey:"#808080",honeydew:"#f0fff0",hotpink:"#ff69b4",indianred:"#cd5c5c",indigo:"#4b0082",ivory:"#fffff0",khaki:"#f0e68c",lavenderblush:"#fff0f5",lavender:"#e6e6fa",lawngreen:"#7cfc00",lemonchiffon:"#fffacd",lightblue:"#add8e6",lightcoral:"#f08080",lightcyan:"#e0ffff",lightgoldenrodyellow:"#fafad2",lightgray:"#d3d3d3",lightgreen:"#90ee90",lightgrey:"#d3d3d3",lightpink:"#ffb6c1",lightsalmon:"#ffa07a",lightseagreen:"#20b2aa",lightskyblue:"#87cefa",lightslategray:"#778899",lightslategrey:"#778899",lightsteelblue:"#b0c4de",lightyellow:"#ffffe0",lime:"#00ff00",limegreen:"#32cd32",linen:"#faf0e6",magenta:"#ff00ff",maroon:"#800000",mediumaquamarine:"#66cdaa",mediumblue:"#0000cd",mediumorchid:"#ba55d3",mediumpurple:"#9370db",mediumseagreen:"#3cb371",mediumslateblue:"#7b68ee",mediumspringgreen:"#00fa9a",mediumturquoise:"#48d1cc",mediumvioletred:"#c71585",midnightblue:"#191970",mintcream:"#f5fffa",mistyrose:"#ffe4e1",moccasin:"#ffe4b5",navajowhite:"#ffdead",navy:"#000080",oldlace:"#fdf5e6",olive:"#808000",olivedrab:"#6b8e23",orange:"#ffa500",orangered:"#ff4500",orchid:"#da70d6",palegoldenrod:"#eee8aa",palegreen:"#98fb98",paleturquoise:"#afeeee",palevioletred:"#db7093",papayawhip:"#ffefd5",peachpuff:"#ffdab9",peru:"#cd853f",pink:"#ffc0cb",plum:"#dda0dd",powderblue:"#b0e0e6",purple:"#800080",rebeccapurple:"#663399",red:"#ff0000",rosybrown:"#bc8f8f",royalblue:"#4169e1",saddlebrown:"#8b4513",salmon:"#fa8072",sandybrown:"#f4a460",seagreen:"#2e8b57",seashell:"#fff5ee",sienna:"#a0522d",silver:"#c0c0c0",skyblue:"#87ceeb",slateblue:"#6a5acd",slategray:"#708090",slategrey:"#708090",snow:"#fffafa",springgreen:"#00ff7f",steelblue:"#4682b4",tan:"#d2b48c",teal:"#008080",thistle:"#d8bfd8",tomato:"#ff6347",turquoise:"#40e0d0",violet:"#ee82ee",wheat:"#f5deb3",white:"#ffffff",whitesmoke:"#f5f5f5",yellow:"#ffff00",yellowgreen:"#9acd32"};function Na(e){var t={r:0,g:0,b:0},n=1,r=null,i=null,o=null,a=!1,s=!1;return typeof e=="string"&&(e=nR(e)),typeof e=="object"&&(wi(e.r)&&wi(e.g)&&wi(e.b)?(t=qT(e.r,e.g,e.b),a=!0,s=String(e.r).substr(-1)==="%"?"prgb":"rgb"):wi(e.h)&&wi(e.s)&&wi(e.v)?(r=su(e.s),i=su(e.v),t=YT(e.h,r,i),a=!0,s="hsv"):wi(e.h)&&wi(e.s)&&wi(e.l)&&(r=su(e.s),o=su(e.l),t=XT(e.h,r,o),a=!0,s="hsl"),Object.prototype.hasOwnProperty.call(e,"a")&&(n=e.a)),n=cE(n),{ok:a,format:e.format||s,r:Math.min(255,Math.max(t.r,0)),g:Math.min(255,Math.max(t.g,0)),b:Math.min(255,Math.max(t.b,0)),a:n}}var eR="[-\\+]?\\d+%?",tR="[-\\+]?\\d*\\.\\d+%?",ao="(?:".concat(tR,")|(?:").concat(eR,")"),$h="[\\s|\\(]+(".concat(ao,")[,|\\s]+(").concat(ao,")[,|\\s]+(").concat(ao,")\\s*\\)?"),Oh="[\\s|\\(]+(".concat(ao,")[,|\\s]+(").concat(ao,")[,|\\s]+(").concat(ao,")[,|\\s]+(").concat(ao,")\\s*\\)?"),Gr={CSS_UNIT:new RegExp(ao),rgb:new RegExp("rgb"+$h),rgba:new RegExp("rgba"+Oh),hsl:new RegExp("hsl"+$h),hsla:new RegExp("hsla"+Oh),hsv:new RegExp("hsv"+$h),hsva:new RegExp("hsva"+Oh),hex3:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex6:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/,hex4:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex8:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/};function nR(e){if(e=e.trim().toLowerCase(),e.length===0)return!1;var t=!1;if(gm[e])e=gm[e],t=!0;else if(e==="transparent")return{r:0,g:0,b:0,a:0,format:"name"};var n=Gr.rgb.exec(e);return n?{r:n[1],g:n[2],b:n[3]}:(n=Gr.rgba.exec(e),n?{r:n[1],g:n[2],b:n[3],a:n[4]}:(n=Gr.hsl.exec(e),n?{h:n[1],s:n[2],l:n[3]}:(n=Gr.hsla.exec(e),n?{h:n[1],s:n[2],l:n[3],a:n[4]}:(n=Gr.hsv.exec(e),n?{h:n[1],s:n[2],v:n[3]}:(n=Gr.hsva.exec(e),n?{h:n[1],s:n[2],v:n[3],a:n[4]}:(n=Gr.hex8.exec(e),n?{r:mr(n[1]),g:mr(n[2]),b:mr(n[3]),a:eb(n[4]),format:t?"name":"hex8"}:(n=Gr.hex6.exec(e),n?{r:mr(n[1]),g:mr(n[2]),b:mr(n[3]),format:t?"name":"hex"}:(n=Gr.hex4.exec(e),n?{r:mr(n[1]+n[1]),g:mr(n[2]+n[2]),b:mr(n[3]+n[3]),a:eb(n[4]+n[4]),format:t?"name":"hex8"}:(n=Gr.hex3.exec(e),n?{r:mr(n[1]+n[1]),g:mr(n[2]+n[2]),b:mr(n[3]+n[3]),format:t?"name":"hex"}:!1)))))))))}function wi(e){return!!Gr.CSS_UNIT.exec(String(e))}var In=function(){function e(t,n){t===void 0&&(t=""),n===void 0&&(n={});var r;if(t instanceof e)return t;typeof t=="number"&&(t=JT(t)),this.originalInput=t;var i=Na(t);this.originalInput=t,this.r=i.r,this.g=i.g,this.b=i.b,this.a=i.a,this.roundA=Math.round(100*this.a)/100,this.format=(r=n.format)!==null&&r!==void 0?r:i.format,this.gradientType=n.gradientType,this.r<1&&(this.r=Math.round(this.r)),this.g<1&&(this.g=Math.round(this.g)),this.b<1&&(this.b=Math.round(this.b)),this.isValid=i.ok}return e.prototype.isDark=function(){return this.getBrightness()<128},e.prototype.isLight=function(){return!this.isDark()},e.prototype.getBrightness=function(){var t=this.toRgb();return(t.r*299+t.g*587+t.b*114)/1e3},e.prototype.getLuminance=function(){var t=this.toRgb(),n,r,i,o=t.r/255,a=t.g/255,s=t.b/255;return o<=.03928?n=o/12.92:n=Math.pow((o+.055)/1.055,2.4),a<=.03928?r=a/12.92:r=Math.pow((a+.055)/1.055,2.4),s<=.03928?i=s/12.92:i=Math.pow((s+.055)/1.055,2.4),.2126*n+.7152*r+.0722*i},e.prototype.getAlpha=function(){return this.a},e.prototype.setAlpha=function(t){return this.a=cE(t),this.roundA=Math.round(100*this.a)/100,this},e.prototype.isMonochrome=function(){var t=this.toHsl().s;return t===0},e.prototype.toHsv=function(){var t=fm(this.r,this.g,this.b);return{h:t.h*360,s:t.s,v:t.v,a:this.a}},e.prototype.toHsvString=function(){var t=fm(this.r,this.g,this.b),n=Math.round(t.h*360),r=Math.round(t.s*100),i=Math.round(t.v*100);return this.a===1?"hsv(".concat(n,", ").concat(r,"%, ").concat(i,"%)"):"hsva(".concat(n,", ").concat(r,"%, ").concat(i,"%, ").concat(this.roundA,")")},e.prototype.toHsl=function(){var t=Jy(this.r,this.g,this.b);return{h:t.h*360,s:t.s,l:t.l,a:this.a}},e.prototype.toHslString=function(){var t=Jy(this.r,this.g,this.b),n=Math.round(t.h*360),r=Math.round(t.s*100),i=Math.round(t.l*100);return this.a===1?"hsl(".concat(n,", ").concat(r,"%, ").concat(i,"%)"):"hsla(".concat(n,", ").concat(r,"%, ").concat(i,"%, ").concat(this.roundA,")")},e.prototype.toHex=function(t){return t===void 0&&(t=!1),hm(this.r,this.g,this.b,t)},e.prototype.toHexString=function(t){return t===void 0&&(t=!1),"#"+this.toHex(t)},e.prototype.toHex8=function(t){return t===void 0&&(t=!1),QT(this.r,this.g,this.b,this.a,t)},e.prototype.toHex8String=function(t){return t===void 0&&(t=!1),"#"+this.toHex8(t)},e.prototype.toHexShortString=function(t){return t===void 0&&(t=!1),this.a===1?this.toHexString(t):this.toHex8String(t)},e.prototype.toRgb=function(){return{r:Math.round(this.r),g:Math.round(this.g),b:Math.round(this.b),a:this.a}},e.prototype.toRgbString=function(){var t=Math.round(this.r),n=Math.round(this.g),r=Math.round(this.b);return this.a===1?"rgb(".concat(t,", ").concat(n,", ").concat(r,")"):"rgba(".concat(t,", ").concat(n,", ").concat(r,", ").concat(this.roundA,")")},e.prototype.toPercentageRgb=function(){var t=function(n){return"".concat(Math.round(zn(n,255)*100),"%")};return{r:t(this.r),g:t(this.g),b:t(this.b),a:this.a}},e.prototype.toPercentageRgbString=function(){var t=function(n){return Math.round(zn(n,255)*100)};return this.a===1?"rgb(".concat(t(this.r),"%, ").concat(t(this.g),"%, ").concat(t(this.b),"%)"):"rgba(".concat(t(this.r),"%, ").concat(t(this.g),"%, ").concat(t(this.b),"%, ").concat(this.roundA,")")},e.prototype.toName=function(){if(this.a===0)return"transparent";if(this.a<1)return!1;for(var t="#"+hm(this.r,this.g,this.b,!1),n=0,r=Object.entries(gm);n=0,o=!n&&i&&(t.startsWith("hex")||t==="name");return o?t==="name"&&this.a===0?this.toName():this.toRgbString():(t==="rgb"&&(r=this.toRgbString()),t==="prgb"&&(r=this.toPercentageRgbString()),(t==="hex"||t==="hex6")&&(r=this.toHexString()),t==="hex3"&&(r=this.toHexString(!0)),t==="hex4"&&(r=this.toHex8String(!0)),t==="hex8"&&(r=this.toHex8String()),t==="name"&&(r=this.toName()),t==="hsl"&&(r=this.toHslString()),t==="hsv"&&(r=this.toHsvString()),r||this.toHexString())},e.prototype.toNumber=function(){return(Math.round(this.r)<<16)+(Math.round(this.g)<<8)+Math.round(this.b)},e.prototype.clone=function(){return new e(this.toString())},e.prototype.lighten=function(t){t===void 0&&(t=10);var n=this.toHsl();return n.l+=t/100,n.l=au(n.l),new e(n)},e.prototype.brighten=function(t){t===void 0&&(t=10);var n=this.toRgb();return n.r=Math.max(0,Math.min(255,n.r-Math.round(255*-(t/100)))),n.g=Math.max(0,Math.min(255,n.g-Math.round(255*-(t/100)))),n.b=Math.max(0,Math.min(255,n.b-Math.round(255*-(t/100)))),new e(n)},e.prototype.darken=function(t){t===void 0&&(t=10);var n=this.toHsl();return n.l-=t/100,n.l=au(n.l),new e(n)},e.prototype.tint=function(t){return t===void 0&&(t=10),this.mix("white",t)},e.prototype.shade=function(t){return t===void 0&&(t=10),this.mix("black",t)},e.prototype.desaturate=function(t){t===void 0&&(t=10);var n=this.toHsl();return n.s-=t/100,n.s=au(n.s),new e(n)},e.prototype.saturate=function(t){t===void 0&&(t=10);var n=this.toHsl();return n.s+=t/100,n.s=au(n.s),new e(n)},e.prototype.greyscale=function(){return this.desaturate(100)},e.prototype.spin=function(t){var n=this.toHsl(),r=(n.h+t)%360;return n.h=r<0?360+r:r,new e(n)},e.prototype.mix=function(t,n){n===void 0&&(n=50);var r=this.toRgb(),i=new e(t).toRgb(),o=n/100,a={r:(i.r-r.r)*o+r.r,g:(i.g-r.g)*o+r.g,b:(i.b-r.b)*o+r.b,a:(i.a-r.a)*o+r.a};return new e(a)},e.prototype.analogous=function(t,n){t===void 0&&(t=6),n===void 0&&(n=30);var r=this.toHsl(),i=360/n,o=[this];for(r.h=(r.h-(i*t>>1)+720)%360;--t;)r.h=(r.h+i)%360,o.push(new e(r));return o},e.prototype.complement=function(){var t=this.toHsl();return t.h=(t.h+180)%360,new e(t)},e.prototype.monochromatic=function(t){t===void 0&&(t=6);for(var n=this.toHsv(),r=n.h,i=n.s,o=n.v,a=[],s=1/t;t--;)a.push(new e({h:r,s:i,v:o})),o=(o+s)%1;return a},e.prototype.splitcomplement=function(){var t=this.toHsl(),n=t.h;return[this,new e({h:(n+72)%360,s:t.s,l:t.l}),new e({h:(n+216)%360,s:t.s,l:t.l})]},e.prototype.onBackground=function(t){var n=this.toRgb(),r=new e(t).toRgb(),i=n.a+r.a*(1-n.a);return new e({r:(n.r*n.a+r.r*r.a*(1-n.a))/i,g:(n.g*n.a+r.g*r.a*(1-n.a))/i,b:(n.b*n.a+r.b*r.a*(1-n.a))/i,a:i})},e.prototype.triad=function(){return this.polyad(3)},e.prototype.tetrad=function(){return this.polyad(4)},e.prototype.polyad=function(t){for(var n=this.toHsl(),r=n.h,i=[this],o=360/t,a=1;a=60&&Math.round(e.h)<=240?r=n?Math.round(e.h)-lu*t:Math.round(e.h)+lu*t:r=n?Math.round(e.h)+lu*t:Math.round(e.h)-lu*t,r<0?r+=360:r>=360&&(r-=360),r}function ib(e,t,n){if(e.h===0&&e.s===0)return e.s;var r;return n?r=e.s-tb*t:t===dE?r=e.s+tb:r=e.s+rR*t,r>1&&(r=1),n&&t===uE&&r>.1&&(r=.1),r<.06&&(r=.06),Number(r.toFixed(2))}function ob(e,t,n){var r;return n?r=e.v+iR*t:r=e.v-oR*t,r>1&&(r=1),Number(r.toFixed(2))}function sc(e){for(var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=[],r=Na(e),i=uE;i>0;i-=1){var o=nb(r),a=cu(Na({h:rb(o,i,!0),s:ib(o,i,!0),v:ob(o,i,!0)}));n.push(a)}n.push(cu(r));for(var s=1;s<=dE;s+=1){var l=nb(r),c=cu(Na({h:rb(l,s),s:ib(l,s),v:ob(l,s)}));n.push(c)}return t.theme==="dark"?aR.map(function(u){var f=u.index,h=u.opacity,m=cu(sR(Na(t.backgroundColor||"#141414"),Na(n[f]),h*100));return m}):n}var Ph={red:"#F5222D",volcano:"#FA541C",orange:"#FA8C16",gold:"#FAAD14",yellow:"#FADB14",lime:"#A0D911",green:"#52C41A",cyan:"#13C2C2",blue:"#1677FF",geekblue:"#2F54EB",purple:"#722ED1",magenta:"#EB2F96",grey:"#666666"},mm=["#fff1f0","#ffccc7","#ffa39e","#ff7875","#ff4d4f","#f5222d","#cf1322","#a8071a","#820014","#5c0011"];mm.primary=mm[5];var pm=["#fff2e8","#ffd8bf","#ffbb96","#ff9c6e","#ff7a45","#fa541c","#d4380d","#ad2102","#871400","#610b00"];pm.primary=pm[5];var vm=["#fff7e6","#ffe7ba","#ffd591","#ffc069","#ffa940","#fa8c16","#d46b08","#ad4e00","#873800","#612500"];vm.primary=vm[5];var ym=["#fffbe6","#fff1b8","#ffe58f","#ffd666","#ffc53d","#faad14","#d48806","#ad6800","#874d00","#613400"];ym.primary=ym[5];var bm=["#feffe6","#ffffb8","#fffb8f","#fff566","#ffec3d","#fadb14","#d4b106","#ad8b00","#876800","#614700"];bm.primary=bm[5];var xm=["#fcffe6","#f4ffb8","#eaff8f","#d3f261","#bae637","#a0d911","#7cb305","#5b8c00","#3f6600","#254000"];xm.primary=xm[5];var Sm=["#f6ffed","#d9f7be","#b7eb8f","#95de64","#73d13d","#52c41a","#389e0d","#237804","#135200","#092b00"];Sm.primary=Sm[5];var Cm=["#e6fffb","#b5f5ec","#87e8de","#5cdbd3","#36cfc9","#13c2c2","#08979c","#006d75","#00474f","#002329"];Cm.primary=Cm[5];var Ad=["#e6f4ff","#bae0ff","#91caff","#69b1ff","#4096ff","#1677ff","#0958d9","#003eb3","#002c8c","#001d66"];Ad.primary=Ad[5];var wm=["#f0f5ff","#d6e4ff","#adc6ff","#85a5ff","#597ef7","#2f54eb","#1d39c4","#10239e","#061178","#030852"];wm.primary=wm[5];var Em=["#f9f0ff","#efdbff","#d3adf7","#b37feb","#9254de","#722ed1","#531dab","#391085","#22075e","#120338"];Em.primary=Em[5];var _m=["#fff0f6","#ffd6e7","#ffadd2","#ff85c0","#f759ab","#eb2f96","#c41d7f","#9e1068","#780650","#520339"];_m.primary=_m[5];var $m=["#a6a6a6","#999999","#8c8c8c","#808080","#737373","#666666","#404040","#1a1a1a","#000000","#000000"];$m.primary=$m[5];var Mh={red:mm,volcano:pm,orange:vm,gold:ym,yellow:bm,lime:xm,green:Sm,cyan:Cm,blue:Ad,geekblue:wm,purple:Em,magenta:_m,grey:$m};const fE={blue:"#1677FF",purple:"#722ED1",cyan:"#13C2C2",green:"#52C41A",magenta:"#EB2F96",pink:"#EB2F96",red:"#F5222D",orange:"#FA8C16",yellow:"#FADB14",volcano:"#FA541C",geekblue:"#2F54EB",gold:"#FAAD14",lime:"#A0D911"},lc=Object.assign(Object.assign({},fE),{colorPrimary:"#1677ff",colorSuccess:"#52c41a",colorWarning:"#faad14",colorError:"#ff4d4f",colorInfo:"#1677ff",colorLink:"",colorTextBase:"",colorBgBase:"",fontFamily:`-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'`,fontFamilyCode:"'SFMono-Regular', Consolas, 'Liberation Mono', Menlo, Courier, monospace",fontSize:14,lineWidth:1,lineType:"solid",motionUnit:.1,motionBase:0,motionEaseOutCirc:"cubic-bezier(0.08, 0.82, 0.17, 1)",motionEaseInOutCirc:"cubic-bezier(0.78, 0.14, 0.15, 0.86)",motionEaseOut:"cubic-bezier(0.215, 0.61, 0.355, 1)",motionEaseInOut:"cubic-bezier(0.645, 0.045, 0.355, 1)",motionEaseOutBack:"cubic-bezier(0.12, 0.4, 0.29, 1.46)",motionEaseInBack:"cubic-bezier(0.71, -0.46, 0.88, 0.6)",motionEaseInQuint:"cubic-bezier(0.755, 0.05, 0.855, 0.06)",motionEaseOutQuint:"cubic-bezier(0.23, 1, 0.32, 1)",borderRadius:6,sizeUnit:4,sizeStep:4,sizePopupArrow:16,controlHeight:32,zIndexBase:0,zIndexPopupBase:1e3,opacityImage:1,wireframe:!1,motion:!0});function lR(e,t){let{generateColorPalettes:n,generateNeutralColorPalettes:r}=t;const{colorSuccess:i,colorWarning:o,colorError:a,colorInfo:s,colorPrimary:l,colorBgBase:c,colorTextBase:u}=e,f=n(l),h=n(i),m=n(o),y=n(a),v=n(s),b=r(c,u),p=e.colorLink||e.colorInfo,g=n(p),x=new In(y[1]).mix(new In(y[3]),50).toHexString();return Object.assign(Object.assign({},b),{colorPrimaryBg:f[1],colorPrimaryBgHover:f[2],colorPrimaryBorder:f[3],colorPrimaryBorderHover:f[4],colorPrimaryHover:f[5],colorPrimary:f[6],colorPrimaryActive:f[7],colorPrimaryTextHover:f[8],colorPrimaryText:f[9],colorPrimaryTextActive:f[10],colorSuccessBg:h[1],colorSuccessBgHover:h[2],colorSuccessBorder:h[3],colorSuccessBorderHover:h[4],colorSuccessHover:h[4],colorSuccess:h[6],colorSuccessActive:h[7],colorSuccessTextHover:h[8],colorSuccessText:h[9],colorSuccessTextActive:h[10],colorErrorBg:y[1],colorErrorBgHover:y[2],colorErrorBgFilledHover:x,colorErrorBgActive:y[3],colorErrorBorder:y[3],colorErrorBorderHover:y[4],colorErrorHover:y[5],colorError:y[6],colorErrorActive:y[7],colorErrorTextHover:y[8],colorErrorText:y[9],colorErrorTextActive:y[10],colorWarningBg:m[1],colorWarningBgHover:m[2],colorWarningBorder:m[3],colorWarningBorderHover:m[4],colorWarningHover:m[4],colorWarning:m[6],colorWarningActive:m[7],colorWarningTextHover:m[8],colorWarningText:m[9],colorWarningTextActive:m[10],colorInfoBg:v[1],colorInfoBgHover:v[2],colorInfoBorder:v[3],colorInfoBorderHover:v[4],colorInfoHover:v[4],colorInfo:v[6],colorInfoActive:v[7],colorInfoTextHover:v[8],colorInfoText:v[9],colorInfoTextActive:v[10],colorLinkHover:g[4],colorLink:g[6],colorLinkActive:g[7],colorBgMask:new In("#000").setAlpha(.45).toRgbString(),colorWhite:"#fff"})}const cR=e=>{let t=e,n=e,r=e,i=e;return e<6&&e>=5?t=e+1:e<16&&e>=6?t=e+2:e>=16&&(t=16),e<7&&e>=5?n=4:e<8&&e>=7?n=5:e<14&&e>=8?n=6:e<16&&e>=14?n=7:e>=16&&(n=8),e<6&&e>=2?r=1:e>=6&&(r=2),e>4&&e<8?i=4:e>=8&&(i=6),{borderRadius:e,borderRadiusXS:r,borderRadiusSM:n,borderRadiusLG:t,borderRadiusOuter:i}};function uR(e){const{motionUnit:t,motionBase:n,borderRadius:r,lineWidth:i}=e;return Object.assign({motionDurationFast:`${(n+t).toFixed(1)}s`,motionDurationMid:`${(n+t*2).toFixed(1)}s`,motionDurationSlow:`${(n+t*3).toFixed(1)}s`,lineWidthBold:i+1},cR(r))}const dR=e=>{const{controlHeight:t}=e;return{controlHeightSM:t*.75,controlHeightXS:t*.5,controlHeightLG:t*1.25}};function ed(e){return(e+8)/e}function fR(e){const t=new Array(10).fill(null).map((n,r)=>{const i=r-1,o=e*Math.pow(Math.E,i/5),a=r>1?Math.floor(o):Math.ceil(o);return Math.floor(a/2)*2});return t[1]=e,t.map(n=>({size:n,lineHeight:ed(n)}))}const hR=e=>{const t=fR(e),n=t.map(u=>u.size),r=t.map(u=>u.lineHeight),i=n[1],o=n[0],a=n[2],s=r[1],l=r[0],c=r[2];return{fontSizeSM:o,fontSize:i,fontSizeLG:a,fontSizeXL:n[3],fontSizeHeading1:n[6],fontSizeHeading2:n[5],fontSizeHeading3:n[4],fontSizeHeading4:n[3],fontSizeHeading5:n[2],lineHeight:s,lineHeightLG:c,lineHeightSM:l,fontHeight:Math.round(s*i),fontHeightLG:Math.round(c*a),fontHeightSM:Math.round(l*o),lineHeightHeading1:r[6],lineHeightHeading2:r[5],lineHeightHeading3:r[4],lineHeightHeading4:r[3],lineHeightHeading5:r[2]}};function gR(e){const{sizeUnit:t,sizeStep:n}=e;return{sizeXXL:t*(n+8),sizeXL:t*(n+4),sizeLG:t*(n+2),sizeMD:t*(n+1),sizeMS:t*n,size:t*n,sizeSM:t*(n-1),sizeXS:t*(n-2),sizeXXS:t*(n-3)}}const Or=(e,t)=>new In(e).setAlpha(t).toRgbString(),Gs=(e,t)=>new In(e).darken(t).toHexString(),mR=e=>{const t=sc(e);return{1:t[0],2:t[1],3:t[2],4:t[3],5:t[4],6:t[5],7:t[6],8:t[4],9:t[5],10:t[6]}},pR=(e,t)=>{const n=e||"#fff",r=t||"#000";return{colorBgBase:n,colorTextBase:r,colorText:Or(r,.88),colorTextSecondary:Or(r,.65),colorTextTertiary:Or(r,.45),colorTextQuaternary:Or(r,.25),colorFill:Or(r,.15),colorFillSecondary:Or(r,.06),colorFillTertiary:Or(r,.04),colorFillQuaternary:Or(r,.02),colorBgSolid:Or(r,1),colorBgSolidHover:Or(r,.75),colorBgSolidActive:Or(r,.95),colorBgLayout:Gs(n,4),colorBgContainer:Gs(n,0),colorBgElevated:Gs(n,0),colorBgSpotlight:Or(r,.85),colorBgBlur:"transparent",colorBorder:Gs(n,15),colorBorderSecondary:Gs(n,6)}};function vR(e){Mh.pink=Mh.magenta,Th.pink=Th.magenta;const t=Object.keys(fE).map(n=>{const r=e[n]===Mh[n]?Th[n]:sc(e[n]);return new Array(10).fill(1).reduce((i,o,a)=>(i[`${n}-${a+1}`]=r[a],i[`${n}${a+1}`]=r[a],i),{})}).reduce((n,r)=>(n=Object.assign(Object.assign({},n),r),n),{});return Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},e),t),lR(e,{generateColorPalettes:mR,generateNeutralColorPalettes:pR})),hR(e.fontSize)),gR(e)),dR(e)),uR(e))}const hE=lm(vR),Pm={token:lc,override:{override:lc},hashed:!0},gE=me.createContext(Pm),cc="ant",mE="anticon",yR=["outlined","borderless","filled"],bR=(e,t)=>t||(e?`${cc}-${e}`:cc),bt=d.createContext({getPrefixCls:bR,iconPrefixCls:mE}),xR=`-ant-${Date.now()}-${Math.random()}`;function SR(e,t){const n={},r=(a,s)=>{let l=a.clone();return l=(s==null?void 0:s(l))||l,l.toRgbString()},i=(a,s)=>{const l=new In(a),c=sc(l.toRgbString());n[`${s}-color`]=r(l),n[`${s}-color-disabled`]=c[1],n[`${s}-color-hover`]=c[4],n[`${s}-color-active`]=c[6],n[`${s}-color-outline`]=l.clone().setAlpha(.2).toRgbString(),n[`${s}-color-deprecated-bg`]=c[0],n[`${s}-color-deprecated-border`]=c[2]};if(t.primaryColor){i(t.primaryColor,"primary");const a=new In(t.primaryColor),s=sc(a.toRgbString());s.forEach((c,u)=>{n[`primary-${u+1}`]=c}),n["primary-color-deprecated-l-35"]=r(a,c=>c.lighten(35)),n["primary-color-deprecated-l-20"]=r(a,c=>c.lighten(20)),n["primary-color-deprecated-t-20"]=r(a,c=>c.tint(20)),n["primary-color-deprecated-t-50"]=r(a,c=>c.tint(50)),n["primary-color-deprecated-f-12"]=r(a,c=>c.setAlpha(c.getAlpha()*.12));const l=new In(s[0]);n["primary-color-active-deprecated-f-30"]=r(l,c=>c.setAlpha(c.getAlpha()*.3)),n["primary-color-active-deprecated-d-02"]=r(l,c=>c.darken(2))}return t.successColor&&i(t.successColor,"success"),t.warningColor&&i(t.warningColor,"warning"),t.errorColor&&i(t.errorColor,"error"),t.infoColor&&i(t.infoColor,"info"),` +'Noto Color Emoji'`,fontFamilyCode:"'SFMono-Regular', Consolas, 'Liberation Mono', Menlo, Courier, monospace",fontSize:14,lineWidth:1,lineType:"solid",motionUnit:.1,motionBase:0,motionEaseOutCirc:"cubic-bezier(0.08, 0.82, 0.17, 1)",motionEaseInOutCirc:"cubic-bezier(0.78, 0.14, 0.15, 0.86)",motionEaseOut:"cubic-bezier(0.215, 0.61, 0.355, 1)",motionEaseInOut:"cubic-bezier(0.645, 0.045, 0.355, 1)",motionEaseOutBack:"cubic-bezier(0.12, 0.4, 0.29, 1.46)",motionEaseInBack:"cubic-bezier(0.71, -0.46, 0.88, 0.6)",motionEaseInQuint:"cubic-bezier(0.755, 0.05, 0.855, 0.06)",motionEaseOutQuint:"cubic-bezier(0.23, 1, 0.32, 1)",borderRadius:6,sizeUnit:4,sizeStep:4,sizePopupArrow:16,controlHeight:32,zIndexBase:0,zIndexPopupBase:1e3,opacityImage:1,wireframe:!1,motion:!0});function lR(e,t){let{generateColorPalettes:n,generateNeutralColorPalettes:r}=t;const{colorSuccess:i,colorWarning:o,colorError:a,colorInfo:s,colorPrimary:l,colorBgBase:c,colorTextBase:u}=e,f=n(l),h=n(i),m=n(o),y=n(a),v=n(s),b=r(c,u),p=e.colorLink||e.colorInfo,g=n(p),x=new In(y[1]).mix(new In(y[3]),50).toHexString();return Object.assign(Object.assign({},b),{colorPrimaryBg:f[1],colorPrimaryBgHover:f[2],colorPrimaryBorder:f[3],colorPrimaryBorderHover:f[4],colorPrimaryHover:f[5],colorPrimary:f[6],colorPrimaryActive:f[7],colorPrimaryTextHover:f[8],colorPrimaryText:f[9],colorPrimaryTextActive:f[10],colorSuccessBg:h[1],colorSuccessBgHover:h[2],colorSuccessBorder:h[3],colorSuccessBorderHover:h[4],colorSuccessHover:h[4],colorSuccess:h[6],colorSuccessActive:h[7],colorSuccessTextHover:h[8],colorSuccessText:h[9],colorSuccessTextActive:h[10],colorErrorBg:y[1],colorErrorBgHover:y[2],colorErrorBgFilledHover:x,colorErrorBgActive:y[3],colorErrorBorder:y[3],colorErrorBorderHover:y[4],colorErrorHover:y[5],colorError:y[6],colorErrorActive:y[7],colorErrorTextHover:y[8],colorErrorText:y[9],colorErrorTextActive:y[10],colorWarningBg:m[1],colorWarningBgHover:m[2],colorWarningBorder:m[3],colorWarningBorderHover:m[4],colorWarningHover:m[4],colorWarning:m[6],colorWarningActive:m[7],colorWarningTextHover:m[8],colorWarningText:m[9],colorWarningTextActive:m[10],colorInfoBg:v[1],colorInfoBgHover:v[2],colorInfoBorder:v[3],colorInfoBorderHover:v[4],colorInfoHover:v[4],colorInfo:v[6],colorInfoActive:v[7],colorInfoTextHover:v[8],colorInfoText:v[9],colorInfoTextActive:v[10],colorLinkHover:g[4],colorLink:g[6],colorLinkActive:g[7],colorBgMask:new In("#000").setAlpha(.45).toRgbString(),colorWhite:"#fff"})}const cR=e=>{let t=e,n=e,r=e,i=e;return e<6&&e>=5?t=e+1:e<16&&e>=6?t=e+2:e>=16&&(t=16),e<7&&e>=5?n=4:e<8&&e>=7?n=5:e<14&&e>=8?n=6:e<16&&e>=14?n=7:e>=16&&(n=8),e<6&&e>=2?r=1:e>=6&&(r=2),e>4&&e<8?i=4:e>=8&&(i=6),{borderRadius:e,borderRadiusXS:r,borderRadiusSM:n,borderRadiusLG:t,borderRadiusOuter:i}};function uR(e){const{motionUnit:t,motionBase:n,borderRadius:r,lineWidth:i}=e;return Object.assign({motionDurationFast:`${(n+t).toFixed(1)}s`,motionDurationMid:`${(n+t*2).toFixed(1)}s`,motionDurationSlow:`${(n+t*3).toFixed(1)}s`,lineWidthBold:i+1},cR(r))}const dR=e=>{const{controlHeight:t}=e;return{controlHeightSM:t*.75,controlHeightXS:t*.5,controlHeightLG:t*1.25}};function ed(e){return(e+8)/e}function fR(e){const t=new Array(10).fill(null).map((n,r)=>{const i=r-1,o=e*Math.pow(Math.E,i/5),a=r>1?Math.floor(o):Math.ceil(o);return Math.floor(a/2)*2});return t[1]=e,t.map(n=>({size:n,lineHeight:ed(n)}))}const hR=e=>{const t=fR(e),n=t.map(u=>u.size),r=t.map(u=>u.lineHeight),i=n[1],o=n[0],a=n[2],s=r[1],l=r[0],c=r[2];return{fontSizeSM:o,fontSize:i,fontSizeLG:a,fontSizeXL:n[3],fontSizeHeading1:n[6],fontSizeHeading2:n[5],fontSizeHeading3:n[4],fontSizeHeading4:n[3],fontSizeHeading5:n[2],lineHeight:s,lineHeightLG:c,lineHeightSM:l,fontHeight:Math.round(s*i),fontHeightLG:Math.round(c*a),fontHeightSM:Math.round(l*o),lineHeightHeading1:r[6],lineHeightHeading2:r[5],lineHeightHeading3:r[4],lineHeightHeading4:r[3],lineHeightHeading5:r[2]}};function gR(e){const{sizeUnit:t,sizeStep:n}=e;return{sizeXXL:t*(n+8),sizeXL:t*(n+4),sizeLG:t*(n+2),sizeMD:t*(n+1),sizeMS:t*n,size:t*n,sizeSM:t*(n-1),sizeXS:t*(n-2),sizeXXS:t*(n-3)}}const Or=(e,t)=>new In(e).setAlpha(t).toRgbString(),Gs=(e,t)=>new In(e).darken(t).toHexString(),mR=e=>{const t=sc(e);return{1:t[0],2:t[1],3:t[2],4:t[3],5:t[4],6:t[5],7:t[6],8:t[4],9:t[5],10:t[6]}},pR=(e,t)=>{const n=e||"#fff",r=t||"#000";return{colorBgBase:n,colorTextBase:r,colorText:Or(r,.88),colorTextSecondary:Or(r,.65),colorTextTertiary:Or(r,.45),colorTextQuaternary:Or(r,.25),colorFill:Or(r,.15),colorFillSecondary:Or(r,.06),colorFillTertiary:Or(r,.04),colorFillQuaternary:Or(r,.02),colorBgSolid:Or(r,1),colorBgSolidHover:Or(r,.75),colorBgSolidActive:Or(r,.95),colorBgLayout:Gs(n,4),colorBgContainer:Gs(n,0),colorBgElevated:Gs(n,0),colorBgSpotlight:Or(r,.85),colorBgBlur:"transparent",colorBorder:Gs(n,15),colorBorderSecondary:Gs(n,6)}};function vR(e){Ph.pink=Ph.magenta,Mh.pink=Mh.magenta;const t=Object.keys(fE).map(n=>{const r=e[n]===Ph[n]?Mh[n]:sc(e[n]);return new Array(10).fill(1).reduce((i,o,a)=>(i[`${n}-${a+1}`]=r[a],i[`${n}${a+1}`]=r[a],i),{})}).reduce((n,r)=>(n=Object.assign(Object.assign({},n),r),n),{});return Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},e),t),lR(e,{generateColorPalettes:mR,generateNeutralColorPalettes:pR})),hR(e.fontSize)),gR(e)),dR(e)),uR(e))}const hE=sm(vR),Om={token:lc,override:{override:lc},hashed:!0},gE=me.createContext(Om),cc="ant",mE="anticon",yR=["outlined","borderless","filled"],bR=(e,t)=>t||(e?`${cc}-${e}`:cc),bt=d.createContext({getPrefixCls:bR,iconPrefixCls:mE}),xR=`-ant-${Date.now()}-${Math.random()}`;function SR(e,t){const n={},r=(a,s)=>{let l=a.clone();return l=(s==null?void 0:s(l))||l,l.toRgbString()},i=(a,s)=>{const l=new In(a),c=sc(l.toRgbString());n[`${s}-color`]=r(l),n[`${s}-color-disabled`]=c[1],n[`${s}-color-hover`]=c[4],n[`${s}-color-active`]=c[6],n[`${s}-color-outline`]=l.clone().setAlpha(.2).toRgbString(),n[`${s}-color-deprecated-bg`]=c[0],n[`${s}-color-deprecated-border`]=c[2]};if(t.primaryColor){i(t.primaryColor,"primary");const a=new In(t.primaryColor),s=sc(a.toRgbString());s.forEach((c,u)=>{n[`primary-${u+1}`]=c}),n["primary-color-deprecated-l-35"]=r(a,c=>c.lighten(35)),n["primary-color-deprecated-l-20"]=r(a,c=>c.lighten(20)),n["primary-color-deprecated-t-20"]=r(a,c=>c.tint(20)),n["primary-color-deprecated-t-50"]=r(a,c=>c.tint(50)),n["primary-color-deprecated-f-12"]=r(a,c=>c.setAlpha(c.getAlpha()*.12));const l=new In(s[0]);n["primary-color-active-deprecated-f-30"]=r(l,c=>c.setAlpha(c.getAlpha()*.3)),n["primary-color-active-deprecated-d-02"]=r(l,c=>c.darken(2))}return t.successColor&&i(t.successColor,"success"),t.warningColor&&i(t.warningColor,"warning"),t.errorColor&&i(t.errorColor,"error"),t.infoColor&&i(t.infoColor,"info"),` :root { ${Object.keys(n).map(a=>`--${e}-${a}: ${n[a]};`).join(` `)} } - `.trim()}function CR(e,t){const n=SR(e,t);Sr()&&ki(n,`${xR}-dynamic-theme`)}const la=d.createContext(!1),pE=e=>{let{children:t,disabled:n}=e;const r=d.useContext(la);return d.createElement(la.Provider,{value:n??r},t)},ca=d.createContext(void 0),wR=e=>{let{children:t,size:n}=e;const r=d.useContext(ca);return d.createElement(ca.Provider,{value:n||r},t)};function ER(){const e=d.useContext(la),t=d.useContext(ca);return{componentDisabled:e,componentSize:t}}var vE=gn(function e(){hn(this,e)}),yE="CALC_UNIT",_R=new RegExp(yE,"g");function Rh(e){return typeof e=="number"?"".concat(e).concat(yE):e}var $R=function(e){Hi(n,e);var t=Vi(n);function n(r,i){var o;hn(this,n),o=t.call(this),z(rt(o),"result",""),z(rt(o),"unitlessCssVar",void 0),z(rt(o),"lowPriority",void 0);var a=je(r);return o.unitlessCssVar=i,r instanceof n?o.result="(".concat(r.result,")"):a==="number"?o.result=Rh(r):a==="string"&&(o.result=r),o}return gn(n,[{key:"add",value:function(i){return i instanceof n?this.result="".concat(this.result," + ").concat(i.getResult()):(typeof i=="number"||typeof i=="string")&&(this.result="".concat(this.result," + ").concat(Rh(i))),this.lowPriority=!0,this}},{key:"sub",value:function(i){return i instanceof n?this.result="".concat(this.result," - ").concat(i.getResult()):(typeof i=="number"||typeof i=="string")&&(this.result="".concat(this.result," - ").concat(Rh(i))),this.lowPriority=!0,this}},{key:"mul",value:function(i){return this.lowPriority&&(this.result="(".concat(this.result,")")),i instanceof n?this.result="".concat(this.result," * ").concat(i.getResult(!0)):(typeof i=="number"||typeof i=="string")&&(this.result="".concat(this.result," * ").concat(i)),this.lowPriority=!1,this}},{key:"div",value:function(i){return this.lowPriority&&(this.result="(".concat(this.result,")")),i instanceof n?this.result="".concat(this.result," / ").concat(i.getResult(!0)):(typeof i=="number"||typeof i=="string")&&(this.result="".concat(this.result," / ").concat(i)),this.lowPriority=!1,this}},{key:"getResult",value:function(i){return this.lowPriority||i?"(".concat(this.result,")"):this.result}},{key:"equal",value:function(i){var o=this,a=i||{},s=a.unit,l=!0;return typeof s=="boolean"?l=s:Array.from(this.unitlessCssVar).some(function(c){return o.result.includes(c)})&&(l=!1),this.result=this.result.replace(_R,l?"px":""),typeof this.lowPriority<"u"?"calc(".concat(this.result,")"):this.result}}]),n}(vE),OR=function(e){Hi(n,e);var t=Vi(n);function n(r){var i;return hn(this,n),i=t.call(this),z(rt(i),"result",0),r instanceof n?i.result=r.result:typeof r=="number"&&(i.result=r),i}return gn(n,[{key:"add",value:function(i){return i instanceof n?this.result+=i.result:typeof i=="number"&&(this.result+=i),this}},{key:"sub",value:function(i){return i instanceof n?this.result-=i.result:typeof i=="number"&&(this.result-=i),this}},{key:"mul",value:function(i){return i instanceof n?this.result*=i.result:typeof i=="number"&&(this.result*=i),this}},{key:"div",value:function(i){return i instanceof n?this.result/=i.result:typeof i=="number"&&(this.result/=i),this}},{key:"equal",value:function(){return this.result}}]),n}(vE),PR=function(t,n){var r=t==="css"?$R:OR;return function(i){return new r(i,n)}},ab=function(t,n){return"".concat([n,t.replace(/([A-Z]+)([A-Z][a-z]+)/g,"$1-$2").replace(/([a-z])([A-Z])/g,"$1-$2")].filter(Boolean).join("-"))};function Cn(e){var t=d.useRef();t.current=e;var n=d.useCallback(function(){for(var r,i=arguments.length,o=new Array(i),a=0;a1e4){var r=Date.now();this.lastAccessBeat.forEach(function(i,o){r-i>IR&&(n.map.delete(o),n.lastAccessBeat.delete(o))}),this.accessBeat=0}}}]),e}(),ub=new kR;function NR(e,t){return me.useMemo(function(){var n=ub.get(t);if(n)return n;var r=e();return ub.set(t,r),r},t)}var FR=function(){return{}};function AR(e){var t=e.useCSP,n=t===void 0?FR:t,r=e.useToken,i=e.usePrefix,o=e.getResetStyles,a=e.getCommonStyle,s=e.getCompUnitless;function l(h,m,y,v){var b=Array.isArray(h)?h[0]:h;function p(_){return"".concat(String(b)).concat(_.slice(0,1).toUpperCase()).concat(_.slice(1))}var g=(v==null?void 0:v.unitless)||{},x=typeof s=="function"?s(h):{},S=V(V({},x),{},z({},p("zIndexPopup"),!0));Object.keys(g).forEach(function(_){S[p(_)]=g[_]});var C=V(V({},v),{},{unitless:S,prefixToken:p}),w=u(h,m,y,C),E=c(b,y,C);return function(_){var O=arguments.length>1&&arguments[1]!==void 0?arguments[1]:_,M=w(_,O),I=Q(M,2),k=I[1],F=E(O),j=Q(F,2),B=j[0],A=j[1];return[B,k,A]}}function c(h,m,y){var v=y.unitless,b=y.injectStyle,p=b===void 0?!0:b,g=y.prefixToken,x=y.ignore,S=function(E){var _=E.rootCls,O=E.cssVar,M=O===void 0?{}:O,I=r(),k=I.realToken;return IT({path:[h],prefix:M.prefix,key:M.key,unitless:v,ignore:x,token:k,scope:_},function(){var F=cb(h,k,m),j=sb(h,k,F,{deprecatedTokens:y==null?void 0:y.deprecatedTokens});return Object.keys(F).forEach(function(B){j[g(B)]=j[B],delete j[B]}),j}),null},C=function(E){var _=r(),O=_.cssVar;return[function(M){return p&&O?me.createElement(me.Fragment,null,me.createElement(S,{rootCls:E,cssVar:O,component:h}),M):M},O==null?void 0:O.key]};return C}function u(h,m,y){var v=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{},b=Array.isArray(h)?h:[h,h],p=Q(b,1),g=p[0],x=b.join("-"),S=e.layer||{name:"antd"};return function(C){var w=arguments.length>1&&arguments[1]!==void 0?arguments[1]:C,E=r(),_=E.theme,O=E.realToken,M=E.hashId,I=E.token,k=E.cssVar,F=i(),j=F.rootPrefixCls,B=F.iconPrefixCls,A=n(),P=k?"css":"js",R=NR(function(){var W=new Set;return k&&Object.keys(v.unitless||{}).forEach(function(K){W.add(qu(K,k.prefix)),W.add(qu(K,ab(g,k.prefix)))}),PR(P,W)},[P,g,k==null?void 0:k.prefix]),N=RR(P),D=N.max,H=N.min,G={theme:_,token:I,hashId:M,nonce:function(){return A.nonce},clientOnly:v.clientOnly,layer:S,order:v.order||-999};fm(V(V({},G),{},{clientOnly:!1,path:["Shared",j]}),function(){return typeof o=="function"?o(I):[]});var X=fm(V(V({},G),{},{path:[x,C,B]}),function(){if(v.injectStyle===!1)return[];var W=TR(I),K=W.token,ee=W.flush,U=cb(g,O,y),Y=".".concat(C),J=sb(g,O,U,{deprecatedTokens:v.deprecatedTokens});k&&U&&je(U)==="object"&&Object.keys(U).forEach(function(xe){U[xe]="var(".concat(qu(xe,ab(g,k.prefix)),")")});var re=An(K,{componentCls:Y,prefixCls:C,iconCls:".".concat(B),antCls:".".concat(j),calc:R,max:D,min:H},k?U:J),ce=m(re,{hashId:M,prefixCls:C,rootPrefixCls:j,iconPrefixCls:B});ee(g,J);var he=typeof a=="function"?a(re,C,w,v.resetFont):null;return[v.resetStyle===!1?null:he,ce]});return[X,M]}}function f(h,m,y){var v=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{},b=u(h,m,y,V({resetStyle:!1,order:-998},v)),p=function(x){var S=x.prefixCls,C=x.rootCls,w=C===void 0?S:C;return b(S,w),null};return p}return{genStyleHooks:l,genSubStyleComponent:f,genComponentStyleHook:u}}const Ld=["blue","purple","cyan","green","magenta","pink","red","orange","yellow","volcano","geekblue","lime","gold"],LR="5.21.0";function kh(e){return e>=0&&e<=255}function uu(e,t){const{r:n,g:r,b:i,a:o}=new In(e).toRgb();if(o<1)return e;const{r:a,g:s,b:l}=new In(t).toRgb();for(let c=.01;c<=1;c+=.01){const u=Math.round((n-a*(1-c))/c),f=Math.round((r-s*(1-c))/c),h=Math.round((i-l*(1-c))/c);if(kh(u)&&kh(f)&&kh(h))return new In({r:u,g:f,b:h,a:Math.round(c*100)/100}).toRgbString()}return new In({r:n,g:r,b:i,a:1}).toRgbString()}var DR=function(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 i=0,r=Object.getOwnPropertySymbols(e);i{delete r[h]});const i=Object.assign(Object.assign({},n),r),o=480,a=576,s=768,l=992,c=1200,u=1600;if(i.motion===!1){const h="0s";i.motionDurationFast=h,i.motionDurationMid=h,i.motionDurationSlow=h}return Object.assign(Object.assign(Object.assign({},i),{colorFillContent:i.colorFillSecondary,colorFillContentHover:i.colorFill,colorFillAlter:i.colorFillQuaternary,colorBgContainerDisabled:i.colorFillTertiary,colorBorderBg:i.colorBgContainer,colorSplit:uu(i.colorBorderSecondary,i.colorBgContainer),colorTextPlaceholder:i.colorTextQuaternary,colorTextDisabled:i.colorTextQuaternary,colorTextHeading:i.colorText,colorTextLabel:i.colorTextSecondary,colorTextDescription:i.colorTextTertiary,colorTextLightSolid:i.colorWhite,colorHighlight:i.colorError,colorBgTextHover:i.colorFillSecondary,colorBgTextActive:i.colorFill,colorIcon:i.colorTextTertiary,colorIconHover:i.colorText,colorErrorOutline:uu(i.colorErrorBg,i.colorBgContainer),colorWarningOutline:uu(i.colorWarningBg,i.colorBgContainer),fontSizeIcon:i.fontSizeSM,lineWidthFocus:i.lineWidth*4,lineWidth:i.lineWidth,controlOutlineWidth:i.lineWidth*2,controlInteractiveSize:i.controlHeight/2,controlItemBgHover:i.colorFillTertiary,controlItemBgActive:i.colorPrimaryBg,controlItemBgActiveHover:i.colorPrimaryBgHover,controlItemBgActiveDisabled:i.colorFill,controlTmpOutline:i.colorFillQuaternary,controlOutline:uu(i.colorPrimaryBg,i.colorBgContainer),lineType:i.lineType,borderRadius:i.borderRadius,borderRadiusXS:i.borderRadiusXS,borderRadiusSM:i.borderRadiusSM,borderRadiusLG:i.borderRadiusLG,fontWeightStrong:600,opacityLoading:.65,linkDecoration:"none",linkHoverDecoration:"none",linkFocusDecoration:"none",controlPaddingHorizontal:12,controlPaddingHorizontalSM:8,paddingXXS:i.sizeXXS,paddingXS:i.sizeXS,paddingSM:i.sizeSM,padding:i.size,paddingMD:i.sizeMD,paddingLG:i.sizeLG,paddingXL:i.sizeXL,paddingContentHorizontalLG:i.sizeLG,paddingContentVerticalLG:i.sizeMS,paddingContentHorizontal:i.sizeMS,paddingContentVertical:i.sizeSM,paddingContentHorizontalSM:i.size,paddingContentVerticalSM:i.sizeXS,marginXXS:i.sizeXXS,marginXS:i.sizeXS,marginSM:i.sizeSM,margin:i.size,marginMD:i.sizeMD,marginLG:i.sizeLG,marginXL:i.sizeXL,marginXXL:i.sizeXXL,boxShadow:` + `.trim()}function CR(e,t){const n=SR(e,t);Sr()&&ki(n,`${xR}-dynamic-theme`)}const la=d.createContext(!1),pE=e=>{let{children:t,disabled:n}=e;const r=d.useContext(la);return d.createElement(la.Provider,{value:n??r},t)},ca=d.createContext(void 0),wR=e=>{let{children:t,size:n}=e;const r=d.useContext(ca);return d.createElement(ca.Provider,{value:n||r},t)};function ER(){const e=d.useContext(la),t=d.useContext(ca);return{componentDisabled:e,componentSize:t}}var vE=gn(function e(){hn(this,e)}),yE="CALC_UNIT",_R=new RegExp(yE,"g");function Th(e){return typeof e=="number"?"".concat(e).concat(yE):e}var $R=function(e){Hi(n,e);var t=Vi(n);function n(r,i){var o;hn(this,n),o=t.call(this),z(rt(o),"result",""),z(rt(o),"unitlessCssVar",void 0),z(rt(o),"lowPriority",void 0);var a=je(r);return o.unitlessCssVar=i,r instanceof n?o.result="(".concat(r.result,")"):a==="number"?o.result=Th(r):a==="string"&&(o.result=r),o}return gn(n,[{key:"add",value:function(i){return i instanceof n?this.result="".concat(this.result," + ").concat(i.getResult()):(typeof i=="number"||typeof i=="string")&&(this.result="".concat(this.result," + ").concat(Th(i))),this.lowPriority=!0,this}},{key:"sub",value:function(i){return i instanceof n?this.result="".concat(this.result," - ").concat(i.getResult()):(typeof i=="number"||typeof i=="string")&&(this.result="".concat(this.result," - ").concat(Th(i))),this.lowPriority=!0,this}},{key:"mul",value:function(i){return this.lowPriority&&(this.result="(".concat(this.result,")")),i instanceof n?this.result="".concat(this.result," * ").concat(i.getResult(!0)):(typeof i=="number"||typeof i=="string")&&(this.result="".concat(this.result," * ").concat(i)),this.lowPriority=!1,this}},{key:"div",value:function(i){return this.lowPriority&&(this.result="(".concat(this.result,")")),i instanceof n?this.result="".concat(this.result," / ").concat(i.getResult(!0)):(typeof i=="number"||typeof i=="string")&&(this.result="".concat(this.result," / ").concat(i)),this.lowPriority=!1,this}},{key:"getResult",value:function(i){return this.lowPriority||i?"(".concat(this.result,")"):this.result}},{key:"equal",value:function(i){var o=this,a=i||{},s=a.unit,l=!0;return typeof s=="boolean"?l=s:Array.from(this.unitlessCssVar).some(function(c){return o.result.includes(c)})&&(l=!1),this.result=this.result.replace(_R,l?"px":""),typeof this.lowPriority<"u"?"calc(".concat(this.result,")"):this.result}}]),n}(vE),OR=function(e){Hi(n,e);var t=Vi(n);function n(r){var i;return hn(this,n),i=t.call(this),z(rt(i),"result",0),r instanceof n?i.result=r.result:typeof r=="number"&&(i.result=r),i}return gn(n,[{key:"add",value:function(i){return i instanceof n?this.result+=i.result:typeof i=="number"&&(this.result+=i),this}},{key:"sub",value:function(i){return i instanceof n?this.result-=i.result:typeof i=="number"&&(this.result-=i),this}},{key:"mul",value:function(i){return i instanceof n?this.result*=i.result:typeof i=="number"&&(this.result*=i),this}},{key:"div",value:function(i){return i instanceof n?this.result/=i.result:typeof i=="number"&&(this.result/=i),this}},{key:"equal",value:function(){return this.result}}]),n}(vE),PR=function(t,n){var r=t==="css"?$R:OR;return function(i){return new r(i,n)}},ab=function(t,n){return"".concat([n,t.replace(/([A-Z]+)([A-Z][a-z]+)/g,"$1-$2").replace(/([a-z])([A-Z])/g,"$1-$2")].filter(Boolean).join("-"))};function Cn(e){var t=d.useRef();t.current=e;var n=d.useCallback(function(){for(var r,i=arguments.length,o=new Array(i),a=0;a1e4){var r=Date.now();this.lastAccessBeat.forEach(function(i,o){r-i>IR&&(n.map.delete(o),n.lastAccessBeat.delete(o))}),this.accessBeat=0}}}]),e}(),ub=new kR;function NR(e,t){return me.useMemo(function(){var n=ub.get(t);if(n)return n;var r=e();return ub.set(t,r),r},t)}var FR=function(){return{}};function AR(e){var t=e.useCSP,n=t===void 0?FR:t,r=e.useToken,i=e.usePrefix,o=e.getResetStyles,a=e.getCommonStyle,s=e.getCompUnitless;function l(h,m,y,v){var b=Array.isArray(h)?h[0]:h;function p(_){return"".concat(String(b)).concat(_.slice(0,1).toUpperCase()).concat(_.slice(1))}var g=(v==null?void 0:v.unitless)||{},x=typeof s=="function"?s(h):{},S=V(V({},x),{},z({},p("zIndexPopup"),!0));Object.keys(g).forEach(function(_){S[p(_)]=g[_]});var C=V(V({},v),{},{unitless:S,prefixToken:p}),w=u(h,m,y,C),E=c(b,y,C);return function(_){var O=arguments.length>1&&arguments[1]!==void 0?arguments[1]:_,M=w(_,O),I=Q(M,2),k=I[1],F=E(O),j=Q(F,2),B=j[0],A=j[1];return[B,k,A]}}function c(h,m,y){var v=y.unitless,b=y.injectStyle,p=b===void 0?!0:b,g=y.prefixToken,x=y.ignore,S=function(E){var _=E.rootCls,O=E.cssVar,M=O===void 0?{}:O,I=r(),k=I.realToken;return IT({path:[h],prefix:M.prefix,key:M.key,unitless:v,ignore:x,token:k,scope:_},function(){var F=cb(h,k,m),j=sb(h,k,F,{deprecatedTokens:y==null?void 0:y.deprecatedTokens});return Object.keys(F).forEach(function(B){j[g(B)]=j[B],delete j[B]}),j}),null},C=function(E){var _=r(),O=_.cssVar;return[function(M){return p&&O?me.createElement(me.Fragment,null,me.createElement(S,{rootCls:E,cssVar:O,component:h}),M):M},O==null?void 0:O.key]};return C}function u(h,m,y){var v=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{},b=Array.isArray(h)?h:[h,h],p=Q(b,1),g=p[0],x=b.join("-"),S=e.layer||{name:"antd"};return function(C){var w=arguments.length>1&&arguments[1]!==void 0?arguments[1]:C,E=r(),_=E.theme,O=E.realToken,M=E.hashId,I=E.token,k=E.cssVar,F=i(),j=F.rootPrefixCls,B=F.iconPrefixCls,A=n(),P=k?"css":"js",R=NR(function(){var W=new Set;return k&&Object.keys(v.unitless||{}).forEach(function(K){W.add(qu(K,k.prefix)),W.add(qu(K,ab(g,k.prefix)))}),PR(P,W)},[P,g,k==null?void 0:k.prefix]),N=RR(P),D=N.max,H=N.min,G={theme:_,token:I,hashId:M,nonce:function(){return A.nonce},clientOnly:v.clientOnly,layer:S,order:v.order||-999};dm(V(V({},G),{},{clientOnly:!1,path:["Shared",j]}),function(){return typeof o=="function"?o(I):[]});var X=dm(V(V({},G),{},{path:[x,C,B]}),function(){if(v.injectStyle===!1)return[];var W=TR(I),K=W.token,ee=W.flush,U=cb(g,O,y),Y=".".concat(C),J=sb(g,O,U,{deprecatedTokens:v.deprecatedTokens});k&&U&&je(U)==="object"&&Object.keys(U).forEach(function(Se){U[Se]="var(".concat(qu(Se,ab(g,k.prefix)),")")});var re=An(K,{componentCls:Y,prefixCls:C,iconCls:".".concat(B),antCls:".".concat(j),calc:R,max:D,min:H},k?U:J),ce=m(re,{hashId:M,prefixCls:C,rootPrefixCls:j,iconPrefixCls:B});ee(g,J);var he=typeof a=="function"?a(re,C,w,v.resetFont):null;return[v.resetStyle===!1?null:he,ce]});return[X,M]}}function f(h,m,y){var v=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{},b=u(h,m,y,V({resetStyle:!1,order:-998},v)),p=function(x){var S=x.prefixCls,C=x.rootCls,w=C===void 0?S:C;return b(S,w),null};return p}return{genStyleHooks:l,genSubStyleComponent:f,genComponentStyleHook:u}}const Ld=["blue","purple","cyan","green","magenta","pink","red","orange","yellow","volcano","geekblue","lime","gold"],LR="5.21.0";function Ih(e){return e>=0&&e<=255}function uu(e,t){const{r:n,g:r,b:i,a:o}=new In(e).toRgb();if(o<1)return e;const{r:a,g:s,b:l}=new In(t).toRgb();for(let c=.01;c<=1;c+=.01){const u=Math.round((n-a*(1-c))/c),f=Math.round((r-s*(1-c))/c),h=Math.round((i-l*(1-c))/c);if(Ih(u)&&Ih(f)&&Ih(h))return new In({r:u,g:f,b:h,a:Math.round(c*100)/100}).toRgbString()}return new In({r:n,g:r,b:i,a:1}).toRgbString()}var DR=function(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 i=0,r=Object.getOwnPropertySymbols(e);i{delete r[h]});const i=Object.assign(Object.assign({},n),r),o=480,a=576,s=768,l=992,c=1200,u=1600;if(i.motion===!1){const h="0s";i.motionDurationFast=h,i.motionDurationMid=h,i.motionDurationSlow=h}return Object.assign(Object.assign(Object.assign({},i),{colorFillContent:i.colorFillSecondary,colorFillContentHover:i.colorFill,colorFillAlter:i.colorFillQuaternary,colorBgContainerDisabled:i.colorFillTertiary,colorBorderBg:i.colorBgContainer,colorSplit:uu(i.colorBorderSecondary,i.colorBgContainer),colorTextPlaceholder:i.colorTextQuaternary,colorTextDisabled:i.colorTextQuaternary,colorTextHeading:i.colorText,colorTextLabel:i.colorTextSecondary,colorTextDescription:i.colorTextTertiary,colorTextLightSolid:i.colorWhite,colorHighlight:i.colorError,colorBgTextHover:i.colorFillSecondary,colorBgTextActive:i.colorFill,colorIcon:i.colorTextTertiary,colorIconHover:i.colorText,colorErrorOutline:uu(i.colorErrorBg,i.colorBgContainer),colorWarningOutline:uu(i.colorWarningBg,i.colorBgContainer),fontSizeIcon:i.fontSizeSM,lineWidthFocus:i.lineWidth*4,lineWidth:i.lineWidth,controlOutlineWidth:i.lineWidth*2,controlInteractiveSize:i.controlHeight/2,controlItemBgHover:i.colorFillTertiary,controlItemBgActive:i.colorPrimaryBg,controlItemBgActiveHover:i.colorPrimaryBgHover,controlItemBgActiveDisabled:i.colorFill,controlTmpOutline:i.colorFillQuaternary,controlOutline:uu(i.colorPrimaryBg,i.colorBgContainer),lineType:i.lineType,borderRadius:i.borderRadius,borderRadiusXS:i.borderRadiusXS,borderRadiusSM:i.borderRadiusSM,borderRadiusLG:i.borderRadiusLG,fontWeightStrong:600,opacityLoading:.65,linkDecoration:"none",linkHoverDecoration:"none",linkFocusDecoration:"none",controlPaddingHorizontal:12,controlPaddingHorizontalSM:8,paddingXXS:i.sizeXXS,paddingXS:i.sizeXS,paddingSM:i.sizeSM,padding:i.size,paddingMD:i.sizeMD,paddingLG:i.sizeLG,paddingXL:i.sizeXL,paddingContentHorizontalLG:i.sizeLG,paddingContentVerticalLG:i.sizeMS,paddingContentHorizontal:i.sizeMS,paddingContentVertical:i.sizeSM,paddingContentHorizontalSM:i.size,paddingContentVerticalSM:i.sizeXS,marginXXS:i.sizeXXS,marginXS:i.sizeXS,marginSM:i.sizeSM,margin:i.size,marginMD:i.sizeMD,marginLG:i.sizeLG,marginXL:i.sizeXL,marginXXL:i.sizeXXL,boxShadow:` 0 6px 16px 0 rgba(0, 0, 0, 0.08), 0 3px 6px -4px rgba(0, 0, 0, 0.12), 0 9px 28px 8px rgba(0, 0, 0, 0.05) @@ -92,7 +92,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho 0 -6px 16px 0 rgba(0, 0, 0, 0.08), 0 -3px 6px -4px rgba(0, 0, 0, 0.12), 0 -9px 28px 8px rgba(0, 0, 0, 0.05) - `,boxShadowTabsOverflowLeft:"inset 10px 0 8px -8px rgba(0, 0, 0, 0.08)",boxShadowTabsOverflowRight:"inset -10px 0 8px -8px rgba(0, 0, 0, 0.08)",boxShadowTabsOverflowTop:"inset 0 10px 8px -8px rgba(0, 0, 0, 0.08)",boxShadowTabsOverflowBottom:"inset 0 -10px 8px -8px rgba(0, 0, 0, 0.08)"}),r)}var db=function(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 i=0,r=Object.getOwnPropertySymbols(e);i{const r=n.getDerivativeToken(e),{override:i}=t,o=db(t,["override"]);let a=Object.assign(Object.assign({},r),{override:i});return a=xE(a),o&&Object.entries(o).forEach(s=>{let[l,c]=s;const{theme:u}=c,f=db(c,["theme"]);let h=f;u&&(h=CE(Object.assign(Object.assign({},a),f),{override:f},u)),a[l]=h}),a};function Wi(){const{token:e,hashed:t,theme:n,override:r,cssVar:i}=me.useContext(gE),o=`${LR}-${t||""}`,a=n||hE,[s,l,c]=oT(a,[lc,e],{salt:o,override:r,getComputedToken:CE,formatToken:xE,cssVar:i&&{prefix:i.prefix,key:i.key,unitless:SE,ignore:zR,preserve:jR}});return[a,c,t?l:"",s,i]}const Tv={overflow:"hidden",whiteSpace:"nowrap",textOverflow:"ellipsis"},Lr=function(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;return{boxSizing:"border-box",margin:0,padding:0,color:e.colorText,fontSize:e.fontSize,lineHeight:e.lineHeight,listStyle:"none",fontFamily:t?"inherit":e.fontFamily}},wE=()=>({display:"inline-flex",alignItems:"center",color:"inherit",fontStyle:"normal",lineHeight:0,textAlign:"center",textTransform:"none",verticalAlign:"-0.125em",textRendering:"optimizeLegibility","-webkit-font-smoothing":"antialiased","-moz-osx-font-smoothing":"grayscale","> *":{lineHeight:1},svg:{display:"inline-block"}}),Mc=()=>({"&::before":{display:"table",content:'""'},"&::after":{display:"table",clear:"both",content:'""'}}),BR=e=>({a:{color:e.colorLink,textDecoration:e.linkDecoration,backgroundColor:"transparent",outline:"none",cursor:"pointer",transition:`color ${e.motionDurationSlow}`,"-webkit-text-decoration-skip":"objects","&:hover":{color:e.colorLinkHover},"&:active":{color:e.colorLinkActive},"&:active, &:hover":{textDecoration:e.linkHoverDecoration,outline:0},"&:focus":{textDecoration:e.linkFocusDecoration,outline:0},"&[disabled]":{color:e.colorTextDisabled,cursor:"not-allowed"}}}),HR=(e,t,n,r)=>{const i=`[class^="${t}"], [class*=" ${t}"]`,o=n?`.${n}`:i,a={boxSizing:"border-box","&::before, &::after":{boxSizing:"border-box"}};let s={};return r!==!1&&(s={fontFamily:e.fontFamily,fontSize:e.fontSize}),{[o]:Object.assign(Object.assign(Object.assign({},s),a),{[i]:a})}},VR=e=>({outline:`${Z(e.lineWidthFocus)} solid ${e.colorPrimaryBorder}`,outlineOffset:1,transition:"outline-offset 0s, outline 0s"}),Rv=e=>({"&:focus-visible":Object.assign({},VR(e))}),EE=(e,t)=>{const[n,r]=Wi();return fm({theme:n,token:r,hashId:"",path:["ant-design-icons",e],nonce:()=>t==null?void 0:t.nonce,layer:{name:"antd"}},()=>[{[`.${e}`]:Object.assign(Object.assign({},wE()),{[`.${e} .${e}-icon`]:{display:"block"}})}])},{genStyleHooks:Er,genComponentStyleHook:WR,genSubStyleComponent:_E}=AR({usePrefix:()=>{const{getPrefixCls:e,iconPrefixCls:t}=d.useContext(bt);return{rootPrefixCls:e(),iconPrefixCls:t}},useToken:()=>{const[e,t,n,r,i]=Wi();return{theme:e,realToken:t,hashId:n,token:r,cssVar:i}},useCSP:()=>{const{csp:e,iconPrefixCls:t}=d.useContext(bt);return EE(t,e),e??{}},getResetStyles:e=>[{"&":BR(e)}],getCommonStyle:HR,getCompUnitless:()=>SE});function UR(e,t){return Ld.reduce((n,r)=>{const i=e[`${r}1`],o=e[`${r}3`],a=e[`${r}6`],s=e[`${r}7`];return Object.assign(Object.assign({},n),t(r,{lightColor:i,lightBorderColor:o,darkColor:a,textColor:s}))},{})}const GR=Object.assign({},tf),{useId:fb}=GR,KR=()=>"",qR=typeof fb>"u"?KR:fb;function XR(e,t,n){var r;Pv();const i=e||{},o=i.inherit===!1||!t?Object.assign(Object.assign({},Pm),{hashed:(r=t==null?void 0:t.hashed)!==null&&r!==void 0?r:Pm.hashed,cssVar:t==null?void 0:t.cssVar}):t,a=qR();return Pf(()=>{var s,l;if(!e)return t;const c=Object.assign({},o.components);Object.keys(e.components||{}).forEach(h=>{c[h]=Object.assign(Object.assign({},c[h]),e.components[h])});const u=`css-var-${a.replace(/:/g,"")}`,f=((s=i.cssVar)!==null&&s!==void 0?s:o.cssVar)&&Object.assign(Object.assign(Object.assign({prefix:n==null?void 0:n.prefixCls},typeof o.cssVar=="object"?o.cssVar:{}),typeof i.cssVar=="object"?i.cssVar:{}),{key:typeof i.cssVar=="object"&&((l=i.cssVar)===null||l===void 0?void 0:l.key)||u});return Object.assign(Object.assign(Object.assign({},o),i),{token:Object.assign(Object.assign({},o.token),i.token),components:c,cssVar:f})},[i,o],(s,l)=>s.some((c,u)=>{const f=l[u];return!vs(c,f,!0)}))}var YR=["children"],$E=d.createContext({});function QR(e){var t=e.children,n=st(e,YR);return d.createElement($E.Provider,{value:n},t)}var ZR=function(e){Hi(n,e);var t=Vi(n);function n(){return hn(this,n),t.apply(this,arguments)}return gn(n,[{key:"render",value:function(){return this.props.children}}]),n}(d.Component);function JR(e){var t=d.useReducer(function(s){return s+1},0),n=Q(t,2),r=n[1],i=d.useRef(e),o=Cn(function(){return i.current}),a=Cn(function(s){i.current=typeof s=="function"?s(i.current):s,r()});return[o,a]}var qi="none",du="appear",fu="enter",hu="leave",hb="none",Qr="prepare",Ya="start",Qa="active",Iv="end",OE="prepared";function gb(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n["Webkit".concat(e)]="webkit".concat(t),n["Moz".concat(e)]="moz".concat(t),n["ms".concat(e)]="MS".concat(t),n["O".concat(e)]="o".concat(t.toLowerCase()),n}function eI(e,t){var n={animationend:gb("Animation","AnimationEnd"),transitionend:gb("Transition","TransitionEnd")};return e&&("AnimationEvent"in t||delete n.animationend.animation,"TransitionEvent"in t||delete n.transitionend.transition),n}var tI=eI(Sr(),typeof window<"u"?window:{}),PE={};if(Sr()){var nI=document.createElement("div");PE=nI.style}var gu={};function ME(e){if(gu[e])return gu[e];var t=tI[e];if(t)for(var n=Object.keys(t),r=n.length,i=0;i1&&arguments[1]!==void 0?arguments[1]:2;t();var o=Ft(function(){i<=1?r({isCanceled:function(){return o!==e.current}}):n(r,i-1)});e.current=o}return d.useEffect(function(){return function(){t()}},[]),[n,t]};var oI=[Qr,Ya,Qa,Iv],aI=[Qr,OE],NE=!1,sI=!0;function FE(e){return e===Qa||e===Iv}const lI=function(e,t,n){var r=Ss(hb),i=Q(r,2),o=i[0],a=i[1],s=iI(),l=Q(s,2),c=l[0],u=l[1];function f(){a(Qr,!0)}var h=t?aI:oI;return kE(function(){if(o!==hb&&o!==Iv){var m=h.indexOf(o),y=h[m+1],v=n(o);v===NE?a(y,!0):y&&c(function(b){function p(){b.isCanceled()||a(y,!0)}v===!0?p():Promise.resolve(v).then(p)})}},[e,o]),d.useEffect(function(){return function(){u()}},[]),[f,o]};function cI(e,t,n,r){var i=r.motionEnter,o=i===void 0?!0:i,a=r.motionAppear,s=a===void 0?!0:a,l=r.motionLeave,c=l===void 0?!0:l,u=r.motionDeadline,f=r.motionLeaveImmediately,h=r.onAppearPrepare,m=r.onEnterPrepare,y=r.onLeavePrepare,v=r.onAppearStart,b=r.onEnterStart,p=r.onLeaveStart,g=r.onAppearActive,x=r.onEnterActive,S=r.onLeaveActive,C=r.onAppearEnd,w=r.onEnterEnd,E=r.onLeaveEnd,_=r.onVisibleChanged,O=Ss(),M=Q(O,2),I=M[0],k=M[1],F=JR(qi),j=Q(F,2),B=j[0],A=j[1],P=Ss(null),R=Q(P,2),N=R[0],D=R[1],H=B(),G=d.useRef(!1),X=d.useRef(null);function W(){return n()}var K=d.useRef(!1);function ee(){A(qi),D(null,!0)}var U=Cn(function($e){var ue=B();if(ue!==qi){var Ne=W();if(!($e&&!$e.deadline&&$e.target!==Ne)){var ae=K.current,Ue;ue===du&&ae?Ue=C==null?void 0:C(Ne,$e):ue===fu&&ae?Ue=w==null?void 0:w(Ne,$e):ue===hu&&ae&&(Ue=E==null?void 0:E(Ne,$e)),ae&&Ue!==!1&&ee()}}}),Y=rI(U),J=Q(Y,1),re=J[0],ce=function(ue){switch(ue){case du:return z(z(z({},Qr,h),Ya,v),Qa,g);case fu:return z(z(z({},Qr,m),Ya,b),Qa,x);case hu:return z(z(z({},Qr,y),Ya,p),Qa,S);default:return{}}},he=d.useMemo(function(){return ce(H)},[H]),xe=lI(H,!e,function($e){if($e===Qr){var ue=he[Qr];return ue?ue(W()):NE}if(ye in he){var Ne;D(((Ne=he[ye])===null||Ne===void 0?void 0:Ne.call(he,W(),null))||null)}return ye===Qa&&H!==qi&&(re(W()),u>0&&(clearTimeout(X.current),X.current=setTimeout(function(){U({deadline:!0})},u))),ye===OE&&ee(),sI}),ie=Q(xe,2),de=ie[0],ye=ie[1],be=FE(ye);K.current=be,kE(function(){k(t);var $e=G.current;G.current=!0;var ue;!$e&&t&&s&&(ue=du),$e&&t&&o&&(ue=fu),($e&&!t&&c||!$e&&f&&!t&&c)&&(ue=hu);var Ne=ce(ue);ue&&(e||Ne[Qr])?(A(ue),de()):A(qi)},[t]),d.useEffect(function(){(H===du&&!s||H===fu&&!o||H===hu&&!c)&&A(qi)},[s,o,c]),d.useEffect(function(){return function(){G.current=!1,clearTimeout(X.current)}},[]);var se=d.useRef(!1);d.useEffect(function(){I&&(se.current=!0),I!==void 0&&H===qi&&((se.current||I)&&(_==null||_(I)),se.current=!0)},[I,H]);var we=N;return he[Qr]&&ye===Ya&&(we=V({transition:"none"},we)),[H,ye,we,I??t]}function uI(e){var t=e;je(e)==="object"&&(t=e.transitionSupport);function n(i,o){return!!(i.motionName&&t&&o!==!1)}var r=d.forwardRef(function(i,o){var a=i.visible,s=a===void 0?!0:a,l=i.removeOnLeave,c=l===void 0?!0:l,u=i.forceRender,f=i.children,h=i.motionName,m=i.leavedClassName,y=i.eventProps,v=d.useContext($E),b=v.motion,p=n(i,b),g=d.useRef(),x=d.useRef();function S(){try{return g.current instanceof HTMLElement?g.current:Ku(x.current)}catch{return null}}var C=cI(p,s,S,i),w=Q(C,4),E=w[0],_=w[1],O=w[2],M=w[3],I=d.useRef(M);M&&(I.current=!0);var k=d.useCallback(function(N){g.current=N,yv(o,N)},[o]),F,j=V(V({},y),{},{visible:s});if(!f)F=null;else if(E===qi)M?F=f(V({},j),k):!c&&I.current&&m?F=f(V(V({},j),{},{className:m}),k):u||!c&&!m?F=f(V(V({},j),{},{style:{display:"none"}}),k):F=null;else{var B;_===Qr?B="prepare":FE(_)?B="active":_===Ya&&(B="start");var A=vb(h,"".concat(E,"-").concat(B));F=f(V(V({},j),{},{className:te(vb(h,E),z(z({},A,A&&B),h,typeof h=="string")),style:O}),k)}if(d.isValidElement(F)&&Mo(F)){var P=F,R=P.ref;R||(F=d.cloneElement(F,{ref:k}))}return d.createElement(ZR,{ref:x},F)});return r.displayName="CSSMotion",r}const To=uI(IE);var Tm="add",Rm="keep",Im="remove",Nh="removed";function dI(e){var t;return e&&je(e)==="object"&&"key"in e?t=e:t={key:e},V(V({},t),{},{key:String(t.key)})}function km(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];return e.map(dI)}function fI(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],n=[],r=0,i=t.length,o=km(e),a=km(t);o.forEach(function(c){for(var u=!1,f=r;f1});return l.forEach(function(c){n=n.filter(function(u){var f=u.key,h=u.status;return f!==c||h!==Im}),n.forEach(function(u){u.key===c&&(u.status=Rm)})}),n}var hI=["component","children","onVisibleChanged","onAllRemoved"],gI=["status"],mI=["eventProps","visible","children","motionName","motionAppear","motionEnter","motionLeave","motionLeaveImmediately","motionDeadline","removeOnLeave","leavedClassName","onAppearPrepare","onAppearStart","onAppearActive","onAppearEnd","onEnterStart","onEnterActive","onEnterEnd","onLeaveStart","onLeaveActive","onLeaveEnd"];function pI(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:To,n=function(r){Hi(o,r);var i=Vi(o);function o(){var a;hn(this,o);for(var s=arguments.length,l=new Array(s),c=0;cnull;var xI=function(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 i=0,r=Object.getOwnPropertySymbols(e);it.endsWith("Color"))}const EI=e=>{const{prefixCls:t,iconPrefixCls:n,theme:r,holderRender:i}=e;t!==void 0&&(AE=t),r&&wI(r)&&CR(CI(),r)},_I=e=>{const{children:t,csp:n,autoInsertSpaceInButton:r,alert:i,anchor:o,form:a,locale:s,componentSize:l,direction:c,space:u,splitter:f,virtual:h,dropdownMatchSelectWidth:m,popupMatchSelectWidth:y,popupOverflow:v,legacyLocale:b,parentContext:p,iconPrefixCls:g,theme:x,componentDisabled:S,segmented:C,statistic:w,spin:E,calendar:_,carousel:O,cascader:M,collapse:I,typography:k,checkbox:F,descriptions:j,divider:B,drawer:A,skeleton:P,steps:R,image:N,layout:D,list:H,mentions:G,modal:X,progress:W,result:K,slider:ee,breadcrumb:U,menu:Y,pagination:J,input:re,textArea:ce,empty:he,badge:xe,radio:ie,rate:de,switch:ye,transfer:be,avatar:se,message:we,tag:$e,table:ue,card:Ne,tabs:ae,timeline:Ue,timePicker:Fe,upload:Se,notification:Ve,tree:Be,colorPicker:De,datePicker:He,rangePicker:We,flex:ct,wave:ht,dropdown:Ge,warning:Ct,tour:kt,floatButtonGroup:Et,variant:gt,inputNumber:xn,treeSelect:vt}=e,_t=d.useCallback((mt,nt)=>{const{prefixCls:Tt}=e;if(nt)return nt;const Ot=Tt||p.getPrefixCls("");return mt?`${Ot}-${mt}`:Ot},[p.getPrefixCls,e.prefixCls]),Me=g||p.iconPrefixCls||mE,fe=n||p.csp;EE(Me,fe);const Re=XR(x,p.theme,{prefixCls:_t("")}),Ie={csp:fe,autoInsertSpaceInButton:r,alert:i,anchor:o,locale:s||b,direction:c,space:u,splitter:f,virtual:h,popupMatchSelectWidth:y??m,popupOverflow:v,getPrefixCls:_t,iconPrefixCls:Me,theme:Re,segmented:C,statistic:w,spin:E,calendar:_,carousel:O,cascader:M,collapse:I,typography:k,checkbox:F,descriptions:j,divider:B,drawer:A,skeleton:P,steps:R,image:N,input:re,textArea:ce,layout:D,list:H,mentions:G,modal:X,progress:W,result:K,slider:ee,breadcrumb:U,menu:Y,pagination:J,empty:he,badge:xe,radio:ie,rate:de,switch:ye,transfer:be,avatar:se,message:we,tag:$e,table:ue,card:Ne,tabs:ae,timeline:Ue,timePicker:Fe,upload:Se,notification:Ve,tree:Be,colorPicker:De,datePicker:He,rangePicker:We,flex:ct,wave:ht,dropdown:Ge,warning:Ct,tour:kt,floatButtonGroup:Et,variant:gt,inputNumber:xn,treeSelect:vt},ze=Object.assign({},p);Object.keys(Ie).forEach(mt=>{Ie[mt]!==void 0&&(ze[mt]=Ie[mt])}),SI.forEach(mt=>{const nt=e[mt];nt&&(ze[mt]=nt)}),typeof r<"u"&&(ze.button=Object.assign({autoInsertSpace:r},ze.button));const Ee=Pf(()=>ze,ze,(mt,nt)=>{const Tt=Object.keys(mt),Ot=Object.keys(nt);return Tt.length!==Ot.length||Tt.some(At=>mt[At]!==nt[At])}),_e=d.useMemo(()=>({prefixCls:Me,csp:fe}),[Me,fe]);let pe=d.createElement(d.Fragment,null,d.createElement(bI,{dropdownMatchSelectWidth:m}),t);const ut=d.useMemo(()=>{var mt,nt,Tt,Ot;return Xa(((mt=sa.Form)===null||mt===void 0?void 0:mt.defaultValidateMessages)||{},((Tt=(nt=Ee.locale)===null||nt===void 0?void 0:nt.Form)===null||Tt===void 0?void 0:Tt.defaultValidateMessages)||{},((Ot=Ee.form)===null||Ot===void 0?void 0:Ot.validateMessages)||{},(a==null?void 0:a.validateMessages)||{})},[Ee,a==null?void 0:a.validateMessages]);Object.keys(ut).length>0&&(pe=d.createElement(sE.Provider,{value:ut},pe)),s&&(pe=d.createElement(UT,{locale:s,_ANT_MARK__:WT},pe)),(Me||fe)&&(pe=d.createElement(Ov.Provider,{value:_e},pe)),l&&(pe=d.createElement(wR,{size:l},pe)),pe=d.createElement(yI,null,pe);const Nt=d.useMemo(()=>{const mt=Re||{},{algorithm:nt,token:Tt,components:Ot,cssVar:At}=mt,pn=xI(mt,["algorithm","token","components","cssVar"]),Xn=nt&&(!Array.isArray(nt)||nt.length>0)?lm(nt):hE,Qe={};Object.entries(Ot||{}).forEach(dt=>{let[pt,jt]=dt;const Ye=Object.assign({},jt);"algorithm"in Ye&&(Ye.algorithm===!0?Ye.theme=Xn:(Array.isArray(Ye.algorithm)||typeof Ye.algorithm=="function")&&(Ye.theme=lm(Ye.algorithm)),delete Ye.algorithm),Qe[pt]=Ye});const Le=Object.assign(Object.assign({},lc),Tt);return Object.assign(Object.assign({},pn),{theme:Xn,token:Le,components:Qe,override:Object.assign({override:Le},Qe),cssVar:At})},[Re]);return x&&(pe=d.createElement(gE.Provider,{value:Nt},pe)),Ee.warning&&(pe=d.createElement(DT.Provider,{value:Ee.warning},pe)),S!==void 0&&(pe=d.createElement(pE,{disabled:S},pe)),d.createElement(bt.Provider,{value:Ee},pe)},Ms=e=>{const t=d.useContext(bt),n=d.useContext(Mv);return d.createElement(_I,Object.assign({parentContext:t,legacyLocale:n},e))};Ms.ConfigContext=bt;Ms.SizeContext=ca;Ms.config=EI;Ms.useConfig=ER;Object.defineProperty(Ms,"SizeContext",{get:()=>ca});var $I={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm193.5 301.7l-210.6 292a31.8 31.8 0 01-51.7 0L318.5 484.9c-3.8-5.3 0-12.7 6.5-12.7h46.9c10.2 0 19.9 4.9 25.9 13.3l71.2 98.8 157.2-218c6-8.3 15.6-13.3 25.9-13.3H699c6.5 0 10.3 7.4 6.5 12.7z"}}]},name:"check-circle",theme:"filled"};function LE(e){var t;return e==null||(t=e.getRootNode)===null||t===void 0?void 0:t.call(e)}function OI(e){return LE(e)instanceof ShadowRoot}function Dd(e){return OI(e)?LE(e):null}function PI(e){return e.replace(/-(.)/g,function(t,n){return n.toUpperCase()})}function MI(e,t){Nn(e,"[@ant-design/icons] ".concat(t))}function yb(e){return je(e)==="object"&&typeof e.name=="string"&&typeof e.theme=="string"&&(je(e.icon)==="object"||typeof e.icon=="function")}function bb(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};return Object.keys(e).reduce(function(t,n){var r=e[n];switch(n){case"class":t.className=r,delete t.class;break;default:delete t[n],t[PI(n)]=r}return t},{})}function Nm(e,t,n){return n?me.createElement(e.tag,V(V({key:t},bb(e.attrs)),n),(e.children||[]).map(function(r,i){return Nm(r,"".concat(t,"-").concat(e.tag,"-").concat(i))})):me.createElement(e.tag,V({key:t},bb(e.attrs)),(e.children||[]).map(function(r,i){return Nm(r,"".concat(t,"-").concat(e.tag,"-").concat(i))}))}function DE(e){return sc(e)[0]}function zE(e){return e?Array.isArray(e)?e:[e]:[]}var TI=` + `,boxShadowTabsOverflowLeft:"inset 10px 0 8px -8px rgba(0, 0, 0, 0.08)",boxShadowTabsOverflowRight:"inset -10px 0 8px -8px rgba(0, 0, 0, 0.08)",boxShadowTabsOverflowTop:"inset 0 10px 8px -8px rgba(0, 0, 0, 0.08)",boxShadowTabsOverflowBottom:"inset 0 -10px 8px -8px rgba(0, 0, 0, 0.08)"}),r)}var db=function(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 i=0,r=Object.getOwnPropertySymbols(e);i{const r=n.getDerivativeToken(e),{override:i}=t,o=db(t,["override"]);let a=Object.assign(Object.assign({},r),{override:i});return a=xE(a),o&&Object.entries(o).forEach(s=>{let[l,c]=s;const{theme:u}=c,f=db(c,["theme"]);let h=f;u&&(h=CE(Object.assign(Object.assign({},a),f),{override:f},u)),a[l]=h}),a};function Wi(){const{token:e,hashed:t,theme:n,override:r,cssVar:i}=me.useContext(gE),o=`${LR}-${t||""}`,a=n||hE,[s,l,c]=oT(a,[lc,e],{salt:o,override:r,getComputedToken:CE,formatToken:xE,cssVar:i&&{prefix:i.prefix,key:i.key,unitless:SE,ignore:zR,preserve:jR}});return[a,c,t?l:"",s,i]}const Tv={overflow:"hidden",whiteSpace:"nowrap",textOverflow:"ellipsis"},Lr=function(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;return{boxSizing:"border-box",margin:0,padding:0,color:e.colorText,fontSize:e.fontSize,lineHeight:e.lineHeight,listStyle:"none",fontFamily:t?"inherit":e.fontFamily}},wE=()=>({display:"inline-flex",alignItems:"center",color:"inherit",fontStyle:"normal",lineHeight:0,textAlign:"center",textTransform:"none",verticalAlign:"-0.125em",textRendering:"optimizeLegibility","-webkit-font-smoothing":"antialiased","-moz-osx-font-smoothing":"grayscale","> *":{lineHeight:1},svg:{display:"inline-block"}}),Mc=()=>({"&::before":{display:"table",content:'""'},"&::after":{display:"table",clear:"both",content:'""'}}),BR=e=>({a:{color:e.colorLink,textDecoration:e.linkDecoration,backgroundColor:"transparent",outline:"none",cursor:"pointer",transition:`color ${e.motionDurationSlow}`,"-webkit-text-decoration-skip":"objects","&:hover":{color:e.colorLinkHover},"&:active":{color:e.colorLinkActive},"&:active, &:hover":{textDecoration:e.linkHoverDecoration,outline:0},"&:focus":{textDecoration:e.linkFocusDecoration,outline:0},"&[disabled]":{color:e.colorTextDisabled,cursor:"not-allowed"}}}),HR=(e,t,n,r)=>{const i=`[class^="${t}"], [class*=" ${t}"]`,o=n?`.${n}`:i,a={boxSizing:"border-box","&::before, &::after":{boxSizing:"border-box"}};let s={};return r!==!1&&(s={fontFamily:e.fontFamily,fontSize:e.fontSize}),{[o]:Object.assign(Object.assign(Object.assign({},s),a),{[i]:a})}},VR=e=>({outline:`${Z(e.lineWidthFocus)} solid ${e.colorPrimaryBorder}`,outlineOffset:1,transition:"outline-offset 0s, outline 0s"}),Rv=e=>({"&:focus-visible":Object.assign({},VR(e))}),EE=(e,t)=>{const[n,r]=Wi();return dm({theme:n,token:r,hashId:"",path:["ant-design-icons",e],nonce:()=>t==null?void 0:t.nonce,layer:{name:"antd"}},()=>[{[`.${e}`]:Object.assign(Object.assign({},wE()),{[`.${e} .${e}-icon`]:{display:"block"}})}])},{genStyleHooks:Er,genComponentStyleHook:WR,genSubStyleComponent:_E}=AR({usePrefix:()=>{const{getPrefixCls:e,iconPrefixCls:t}=d.useContext(bt);return{rootPrefixCls:e(),iconPrefixCls:t}},useToken:()=>{const[e,t,n,r,i]=Wi();return{theme:e,realToken:t,hashId:n,token:r,cssVar:i}},useCSP:()=>{const{csp:e,iconPrefixCls:t}=d.useContext(bt);return EE(t,e),e??{}},getResetStyles:e=>[{"&":BR(e)}],getCommonStyle:HR,getCompUnitless:()=>SE});function UR(e,t){return Ld.reduce((n,r)=>{const i=e[`${r}1`],o=e[`${r}3`],a=e[`${r}6`],s=e[`${r}7`];return Object.assign(Object.assign({},n),t(r,{lightColor:i,lightBorderColor:o,darkColor:a,textColor:s}))},{})}const GR=Object.assign({},ef),{useId:fb}=GR,KR=()=>"",qR=typeof fb>"u"?KR:fb;function XR(e,t,n){var r;Pv();const i=e||{},o=i.inherit===!1||!t?Object.assign(Object.assign({},Om),{hashed:(r=t==null?void 0:t.hashed)!==null&&r!==void 0?r:Om.hashed,cssVar:t==null?void 0:t.cssVar}):t,a=qR();return Of(()=>{var s,l;if(!e)return t;const c=Object.assign({},o.components);Object.keys(e.components||{}).forEach(h=>{c[h]=Object.assign(Object.assign({},c[h]),e.components[h])});const u=`css-var-${a.replace(/:/g,"")}`,f=((s=i.cssVar)!==null&&s!==void 0?s:o.cssVar)&&Object.assign(Object.assign(Object.assign({prefix:n==null?void 0:n.prefixCls},typeof o.cssVar=="object"?o.cssVar:{}),typeof i.cssVar=="object"?i.cssVar:{}),{key:typeof i.cssVar=="object"&&((l=i.cssVar)===null||l===void 0?void 0:l.key)||u});return Object.assign(Object.assign(Object.assign({},o),i),{token:Object.assign(Object.assign({},o.token),i.token),components:c,cssVar:f})},[i,o],(s,l)=>s.some((c,u)=>{const f=l[u];return!vs(c,f,!0)}))}var YR=["children"],$E=d.createContext({});function QR(e){var t=e.children,n=st(e,YR);return d.createElement($E.Provider,{value:n},t)}var ZR=function(e){Hi(n,e);var t=Vi(n);function n(){return hn(this,n),t.apply(this,arguments)}return gn(n,[{key:"render",value:function(){return this.props.children}}]),n}(d.Component);function JR(e){var t=d.useReducer(function(s){return s+1},0),n=Q(t,2),r=n[1],i=d.useRef(e),o=Cn(function(){return i.current}),a=Cn(function(s){i.current=typeof s=="function"?s(i.current):s,r()});return[o,a]}var qi="none",du="appear",fu="enter",hu="leave",hb="none",Qr="prepare",Ya="start",Qa="active",Iv="end",OE="prepared";function gb(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n["Webkit".concat(e)]="webkit".concat(t),n["Moz".concat(e)]="moz".concat(t),n["ms".concat(e)]="MS".concat(t),n["O".concat(e)]="o".concat(t.toLowerCase()),n}function eI(e,t){var n={animationend:gb("Animation","AnimationEnd"),transitionend:gb("Transition","TransitionEnd")};return e&&("AnimationEvent"in t||delete n.animationend.animation,"TransitionEvent"in t||delete n.transitionend.transition),n}var tI=eI(Sr(),typeof window<"u"?window:{}),PE={};if(Sr()){var nI=document.createElement("div");PE=nI.style}var gu={};function ME(e){if(gu[e])return gu[e];var t=tI[e];if(t)for(var n=Object.keys(t),r=n.length,i=0;i1&&arguments[1]!==void 0?arguments[1]:2;t();var o=Ft(function(){i<=1?r({isCanceled:function(){return o!==e.current}}):n(r,i-1)});e.current=o}return d.useEffect(function(){return function(){t()}},[]),[n,t]};var oI=[Qr,Ya,Qa,Iv],aI=[Qr,OE],NE=!1,sI=!0;function FE(e){return e===Qa||e===Iv}const lI=function(e,t,n){var r=Ss(hb),i=Q(r,2),o=i[0],a=i[1],s=iI(),l=Q(s,2),c=l[0],u=l[1];function f(){a(Qr,!0)}var h=t?aI:oI;return kE(function(){if(o!==hb&&o!==Iv){var m=h.indexOf(o),y=h[m+1],v=n(o);v===NE?a(y,!0):y&&c(function(b){function p(){b.isCanceled()||a(y,!0)}v===!0?p():Promise.resolve(v).then(p)})}},[e,o]),d.useEffect(function(){return function(){u()}},[]),[f,o]};function cI(e,t,n,r){var i=r.motionEnter,o=i===void 0?!0:i,a=r.motionAppear,s=a===void 0?!0:a,l=r.motionLeave,c=l===void 0?!0:l,u=r.motionDeadline,f=r.motionLeaveImmediately,h=r.onAppearPrepare,m=r.onEnterPrepare,y=r.onLeavePrepare,v=r.onAppearStart,b=r.onEnterStart,p=r.onLeaveStart,g=r.onAppearActive,x=r.onEnterActive,S=r.onLeaveActive,C=r.onAppearEnd,w=r.onEnterEnd,E=r.onLeaveEnd,_=r.onVisibleChanged,O=Ss(),M=Q(O,2),I=M[0],k=M[1],F=JR(qi),j=Q(F,2),B=j[0],A=j[1],P=Ss(null),R=Q(P,2),N=R[0],D=R[1],H=B(),G=d.useRef(!1),X=d.useRef(null);function W(){return n()}var K=d.useRef(!1);function ee(){A(qi),D(null,!0)}var U=Cn(function($e){var ue=B();if(ue!==qi){var Ne=W();if(!($e&&!$e.deadline&&$e.target!==Ne)){var ae=K.current,Ue;ue===du&&ae?Ue=C==null?void 0:C(Ne,$e):ue===fu&&ae?Ue=w==null?void 0:w(Ne,$e):ue===hu&&ae&&(Ue=E==null?void 0:E(Ne,$e)),ae&&Ue!==!1&&ee()}}}),Y=rI(U),J=Q(Y,1),re=J[0],ce=function(ue){switch(ue){case du:return z(z(z({},Qr,h),Ya,v),Qa,g);case fu:return z(z(z({},Qr,m),Ya,b),Qa,x);case hu:return z(z(z({},Qr,y),Ya,p),Qa,S);default:return{}}},he=d.useMemo(function(){return ce(H)},[H]),Se=lI(H,!e,function($e){if($e===Qr){var ue=he[Qr];return ue?ue(W()):NE}if(ye in he){var Ne;D(((Ne=he[ye])===null||Ne===void 0?void 0:Ne.call(he,W(),null))||null)}return ye===Qa&&H!==qi&&(re(W()),u>0&&(clearTimeout(X.current),X.current=setTimeout(function(){U({deadline:!0})},u))),ye===OE&&ee(),sI}),ie=Q(Se,2),de=ie[0],ye=ie[1],be=FE(ye);K.current=be,kE(function(){k(t);var $e=G.current;G.current=!0;var ue;!$e&&t&&s&&(ue=du),$e&&t&&o&&(ue=fu),($e&&!t&&c||!$e&&f&&!t&&c)&&(ue=hu);var Ne=ce(ue);ue&&(e||Ne[Qr])?(A(ue),de()):A(qi)},[t]),d.useEffect(function(){(H===du&&!s||H===fu&&!o||H===hu&&!c)&&A(qi)},[s,o,c]),d.useEffect(function(){return function(){G.current=!1,clearTimeout(X.current)}},[]);var se=d.useRef(!1);d.useEffect(function(){I&&(se.current=!0),I!==void 0&&H===qi&&((se.current||I)&&(_==null||_(I)),se.current=!0)},[I,H]);var we=N;return he[Qr]&&ye===Ya&&(we=V({transition:"none"},we)),[H,ye,we,I??t]}function uI(e){var t=e;je(e)==="object"&&(t=e.transitionSupport);function n(i,o){return!!(i.motionName&&t&&o!==!1)}var r=d.forwardRef(function(i,o){var a=i.visible,s=a===void 0?!0:a,l=i.removeOnLeave,c=l===void 0?!0:l,u=i.forceRender,f=i.children,h=i.motionName,m=i.leavedClassName,y=i.eventProps,v=d.useContext($E),b=v.motion,p=n(i,b),g=d.useRef(),x=d.useRef();function S(){try{return g.current instanceof HTMLElement?g.current:Ku(x.current)}catch{return null}}var C=cI(p,s,S,i),w=Q(C,4),E=w[0],_=w[1],O=w[2],M=w[3],I=d.useRef(M);M&&(I.current=!0);var k=d.useCallback(function(N){g.current=N,yv(o,N)},[o]),F,j=V(V({},y),{},{visible:s});if(!f)F=null;else if(E===qi)M?F=f(V({},j),k):!c&&I.current&&m?F=f(V(V({},j),{},{className:m}),k):u||!c&&!m?F=f(V(V({},j),{},{style:{display:"none"}}),k):F=null;else{var B;_===Qr?B="prepare":FE(_)?B="active":_===Ya&&(B="start");var A=vb(h,"".concat(E,"-").concat(B));F=f(V(V({},j),{},{className:te(vb(h,E),z(z({},A,A&&B),h,typeof h=="string")),style:O}),k)}if(d.isValidElement(F)&&Mo(F)){var P=F,R=P.ref;R||(F=d.cloneElement(F,{ref:k}))}return d.createElement(ZR,{ref:x},F)});return r.displayName="CSSMotion",r}const To=uI(IE);var Mm="add",Tm="keep",Rm="remove",kh="removed";function dI(e){var t;return e&&je(e)==="object"&&"key"in e?t=e:t={key:e},V(V({},t),{},{key:String(t.key)})}function Im(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];return e.map(dI)}function fI(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],n=[],r=0,i=t.length,o=Im(e),a=Im(t);o.forEach(function(c){for(var u=!1,f=r;f1});return l.forEach(function(c){n=n.filter(function(u){var f=u.key,h=u.status;return f!==c||h!==Rm}),n.forEach(function(u){u.key===c&&(u.status=Tm)})}),n}var hI=["component","children","onVisibleChanged","onAllRemoved"],gI=["status"],mI=["eventProps","visible","children","motionName","motionAppear","motionEnter","motionLeave","motionLeaveImmediately","motionDeadline","removeOnLeave","leavedClassName","onAppearPrepare","onAppearStart","onAppearActive","onAppearEnd","onEnterStart","onEnterActive","onEnterEnd","onLeaveStart","onLeaveActive","onLeaveEnd"];function pI(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:To,n=function(r){Hi(o,r);var i=Vi(o);function o(){var a;hn(this,o);for(var s=arguments.length,l=new Array(s),c=0;cnull;var xI=function(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 i=0,r=Object.getOwnPropertySymbols(e);it.endsWith("Color"))}const EI=e=>{const{prefixCls:t,iconPrefixCls:n,theme:r,holderRender:i}=e;t!==void 0&&(AE=t),r&&wI(r)&&CR(CI(),r)},_I=e=>{const{children:t,csp:n,autoInsertSpaceInButton:r,alert:i,anchor:o,form:a,locale:s,componentSize:l,direction:c,space:u,splitter:f,virtual:h,dropdownMatchSelectWidth:m,popupMatchSelectWidth:y,popupOverflow:v,legacyLocale:b,parentContext:p,iconPrefixCls:g,theme:x,componentDisabled:S,segmented:C,statistic:w,spin:E,calendar:_,carousel:O,cascader:M,collapse:I,typography:k,checkbox:F,descriptions:j,divider:B,drawer:A,skeleton:P,steps:R,image:N,layout:D,list:H,mentions:G,modal:X,progress:W,result:K,slider:ee,breadcrumb:U,menu:Y,pagination:J,input:re,textArea:ce,empty:he,badge:Se,radio:ie,rate:de,switch:ye,transfer:be,avatar:se,message:we,tag:$e,table:ue,card:Ne,tabs:ae,timeline:Ue,timePicker:Fe,upload:Ce,notification:Ve,tree:Be,colorPicker:De,datePicker:He,rangePicker:We,flex:ct,wave:ht,dropdown:Ge,warning:Ct,tour:kt,floatButtonGroup:Et,variant:gt,inputNumber:xn,treeSelect:vt}=e,_t=d.useCallback((mt,nt)=>{const{prefixCls:Tt}=e;if(nt)return nt;const Ot=Tt||p.getPrefixCls("");return mt?`${Ot}-${mt}`:Ot},[p.getPrefixCls,e.prefixCls]),Me=g||p.iconPrefixCls||mE,fe=n||p.csp;EE(Me,fe);const Re=XR(x,p.theme,{prefixCls:_t("")}),Ie={csp:fe,autoInsertSpaceInButton:r,alert:i,anchor:o,locale:s||b,direction:c,space:u,splitter:f,virtual:h,popupMatchSelectWidth:y??m,popupOverflow:v,getPrefixCls:_t,iconPrefixCls:Me,theme:Re,segmented:C,statistic:w,spin:E,calendar:_,carousel:O,cascader:M,collapse:I,typography:k,checkbox:F,descriptions:j,divider:B,drawer:A,skeleton:P,steps:R,image:N,input:re,textArea:ce,layout:D,list:H,mentions:G,modal:X,progress:W,result:K,slider:ee,breadcrumb:U,menu:Y,pagination:J,empty:he,badge:Se,radio:ie,rate:de,switch:ye,transfer:be,avatar:se,message:we,tag:$e,table:ue,card:Ne,tabs:ae,timeline:Ue,timePicker:Fe,upload:Ce,notification:Ve,tree:Be,colorPicker:De,datePicker:He,rangePicker:We,flex:ct,wave:ht,dropdown:Ge,warning:Ct,tour:kt,floatButtonGroup:Et,variant:gt,inputNumber:xn,treeSelect:vt},ze=Object.assign({},p);Object.keys(Ie).forEach(mt=>{Ie[mt]!==void 0&&(ze[mt]=Ie[mt])}),SI.forEach(mt=>{const nt=e[mt];nt&&(ze[mt]=nt)}),typeof r<"u"&&(ze.button=Object.assign({autoInsertSpace:r},ze.button));const Ee=Of(()=>ze,ze,(mt,nt)=>{const Tt=Object.keys(mt),Ot=Object.keys(nt);return Tt.length!==Ot.length||Tt.some(At=>mt[At]!==nt[At])}),_e=d.useMemo(()=>({prefixCls:Me,csp:fe}),[Me,fe]);let pe=d.createElement(d.Fragment,null,d.createElement(bI,{dropdownMatchSelectWidth:m}),t);const ut=d.useMemo(()=>{var mt,nt,Tt,Ot;return Xa(((mt=sa.Form)===null||mt===void 0?void 0:mt.defaultValidateMessages)||{},((Tt=(nt=Ee.locale)===null||nt===void 0?void 0:nt.Form)===null||Tt===void 0?void 0:Tt.defaultValidateMessages)||{},((Ot=Ee.form)===null||Ot===void 0?void 0:Ot.validateMessages)||{},(a==null?void 0:a.validateMessages)||{})},[Ee,a==null?void 0:a.validateMessages]);Object.keys(ut).length>0&&(pe=d.createElement(sE.Provider,{value:ut},pe)),s&&(pe=d.createElement(UT,{locale:s,_ANT_MARK__:WT},pe)),(Me||fe)&&(pe=d.createElement(Ov.Provider,{value:_e},pe)),l&&(pe=d.createElement(wR,{size:l},pe)),pe=d.createElement(yI,null,pe);const Nt=d.useMemo(()=>{const mt=Re||{},{algorithm:nt,token:Tt,components:Ot,cssVar:At}=mt,pn=xI(mt,["algorithm","token","components","cssVar"]),Xn=nt&&(!Array.isArray(nt)||nt.length>0)?sm(nt):hE,Qe={};Object.entries(Ot||{}).forEach(dt=>{let[pt,jt]=dt;const Ye=Object.assign({},jt);"algorithm"in Ye&&(Ye.algorithm===!0?Ye.theme=Xn:(Array.isArray(Ye.algorithm)||typeof Ye.algorithm=="function")&&(Ye.theme=sm(Ye.algorithm)),delete Ye.algorithm),Qe[pt]=Ye});const Le=Object.assign(Object.assign({},lc),Tt);return Object.assign(Object.assign({},pn),{theme:Xn,token:Le,components:Qe,override:Object.assign({override:Le},Qe),cssVar:At})},[Re]);return x&&(pe=d.createElement(gE.Provider,{value:Nt},pe)),Ee.warning&&(pe=d.createElement(DT.Provider,{value:Ee.warning},pe)),S!==void 0&&(pe=d.createElement(pE,{disabled:S},pe)),d.createElement(bt.Provider,{value:Ee},pe)},Ms=e=>{const t=d.useContext(bt),n=d.useContext(Mv);return d.createElement(_I,Object.assign({parentContext:t,legacyLocale:n},e))};Ms.ConfigContext=bt;Ms.SizeContext=ca;Ms.config=EI;Ms.useConfig=ER;Object.defineProperty(Ms,"SizeContext",{get:()=>ca});var $I={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm193.5 301.7l-210.6 292a31.8 31.8 0 01-51.7 0L318.5 484.9c-3.8-5.3 0-12.7 6.5-12.7h46.9c10.2 0 19.9 4.9 25.9 13.3l71.2 98.8 157.2-218c6-8.3 15.6-13.3 25.9-13.3H699c6.5 0 10.3 7.4 6.5 12.7z"}}]},name:"check-circle",theme:"filled"};function LE(e){var t;return e==null||(t=e.getRootNode)===null||t===void 0?void 0:t.call(e)}function OI(e){return LE(e)instanceof ShadowRoot}function Dd(e){return OI(e)?LE(e):null}function PI(e){return e.replace(/-(.)/g,function(t,n){return n.toUpperCase()})}function MI(e,t){Nn(e,"[@ant-design/icons] ".concat(t))}function yb(e){return je(e)==="object"&&typeof e.name=="string"&&typeof e.theme=="string"&&(je(e.icon)==="object"||typeof e.icon=="function")}function bb(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};return Object.keys(e).reduce(function(t,n){var r=e[n];switch(n){case"class":t.className=r,delete t.class;break;default:delete t[n],t[PI(n)]=r}return t},{})}function km(e,t,n){return n?me.createElement(e.tag,V(V({key:t},bb(e.attrs)),n),(e.children||[]).map(function(r,i){return km(r,"".concat(t,"-").concat(e.tag,"-").concat(i))})):me.createElement(e.tag,V({key:t},bb(e.attrs)),(e.children||[]).map(function(r,i){return km(r,"".concat(t,"-").concat(e.tag,"-").concat(i))}))}function DE(e){return sc(e)[0]}function zE(e){return e?Array.isArray(e)?e:[e]:[]}var TI=` .anticon { display: inline-flex; align-items: center; @@ -147,7 +147,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho transform: rotate(360deg); } } -`,RI=function(t){var n=d.useContext(Ov),r=n.csp,i=n.prefixCls,o=TI;i&&(o=o.replace(/anticon/g,i)),d.useEffect(function(){var a=t.current,s=Dd(a);ki(o,"@ant-design-icons",{prepend:!0,csp:r,attachTo:s})},[])},II=["icon","className","onClick","style","primaryColor","secondaryColor"],_l={primaryColor:"#333",secondaryColor:"#E6E6E6",calculated:!1};function kI(e){var t=e.primaryColor,n=e.secondaryColor;_l.primaryColor=t,_l.secondaryColor=n||DE(t),_l.calculated=!!n}function NI(){return V({},_l)}var Ts=function(t){var n=t.icon,r=t.className,i=t.onClick,o=t.style,a=t.primaryColor,s=t.secondaryColor,l=st(t,II),c=d.useRef(),u=_l;if(a&&(u={primaryColor:a,secondaryColor:s||DE(a)}),RI(c),MI(yb(n),"icon should be icon definiton, but got ".concat(n)),!yb(n))return null;var f=n;return f&&typeof f.icon=="function"&&(f=V(V({},f),{},{icon:f.icon(u.primaryColor,u.secondaryColor)})),Nm(f.icon,"svg-".concat(f.name),V(V({className:r,onClick:i,style:o,"data-icon":f.name,width:"1em",height:"1em",fill:"currentColor","aria-hidden":"true"},l),{},{ref:c}))};Ts.displayName="IconReact";Ts.getTwoToneColors=NI;Ts.setTwoToneColors=kI;function jE(e){var t=zE(e),n=Q(t,2),r=n[0],i=n[1];return Ts.setTwoToneColors({primaryColor:r,secondaryColor:i})}function FI(){var e=Ts.getTwoToneColors();return e.calculated?[e.primaryColor,e.secondaryColor]:e.primaryColor}var AI=["className","icon","spin","rotate","tabIndex","onClick","twoToneColor"];jE(Ad.primary);var _n=d.forwardRef(function(e,t){var n=e.className,r=e.icon,i=e.spin,o=e.rotate,a=e.tabIndex,s=e.onClick,l=e.twoToneColor,c=st(e,AI),u=d.useContext(Ov),f=u.prefixCls,h=f===void 0?"anticon":f,m=u.rootClassName,y=te(m,h,z(z({},"".concat(h,"-").concat(r.name),!!r.name),"".concat(h,"-spin"),!!i||r.name==="loading"),n),v=a;v===void 0&&s&&(v=-1);var b=o?{msTransform:"rotate(".concat(o,"deg)"),transform:"rotate(".concat(o,"deg)")}:void 0,p=zE(l),g=Q(p,2),x=g[0],S=g[1];return d.createElement("span",Pe({role:"img","aria-label":r.name},c,{ref:t,tabIndex:v,onClick:s,className:y}),d.createElement(Ts,{icon:r,primaryColor:x,secondaryColor:S,style:b}))});_n.displayName="AntdIcon";_n.getTwoToneColor=FI;_n.setTwoToneColor=jE;var LI=function(t,n){return d.createElement(_n,Pe({},t,{ref:n,icon:$I}))},DI=d.forwardRef(LI),zI={icon:{tag:"svg",attrs:{"fill-rule":"evenodd",viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 64c247.4 0 448 200.6 448 448S759.4 960 512 960 64 759.4 64 512 264.6 64 512 64zm127.98 274.82h-.04l-.08.06L512 466.75 384.14 338.88c-.04-.05-.06-.06-.08-.06a.12.12 0 00-.07 0c-.03 0-.05.01-.09.05l-45.02 45.02a.2.2 0 00-.05.09.12.12 0 000 .07v.02a.27.27 0 00.06.06L466.75 512 338.88 639.86c-.05.04-.06.06-.06.08a.12.12 0 000 .07c0 .03.01.05.05.09l45.02 45.02a.2.2 0 00.09.05.12.12 0 00.07 0c.02 0 .04-.01.08-.05L512 557.25l127.86 127.87c.04.04.06.05.08.05a.12.12 0 00.07 0c.03 0 .05-.01.09-.05l45.02-45.02a.2.2 0 00.05-.09.12.12 0 000-.07v-.02a.27.27 0 00-.05-.06L557.25 512l127.87-127.86c.04-.04.05-.06.05-.08a.12.12 0 000-.07c0-.03-.01-.05-.05-.09l-45.02-45.02a.2.2 0 00-.09-.05.12.12 0 00-.07 0z"}}]},name:"close-circle",theme:"filled"},jI=function(t,n){return d.createElement(_n,Pe({},t,{ref:n,icon:zI}))},BI=d.forwardRef(jI),HI={icon:{tag:"svg",attrs:{"fill-rule":"evenodd",viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M799.86 166.31c.02 0 .04.02.08.06l57.69 57.7c.04.03.05.05.06.08a.12.12 0 010 .06c0 .03-.02.05-.06.09L569.93 512l287.7 287.7c.04.04.05.06.06.09a.12.12 0 010 .07c0 .02-.02.04-.06.08l-57.7 57.69c-.03.04-.05.05-.07.06a.12.12 0 01-.07 0c-.03 0-.05-.02-.09-.06L512 569.93l-287.7 287.7c-.04.04-.06.05-.09.06a.12.12 0 01-.07 0c-.02 0-.04-.02-.08-.06l-57.69-57.7c-.04-.03-.05-.05-.06-.07a.12.12 0 010-.07c0-.03.02-.05.06-.09L454.07 512l-287.7-287.7c-.04-.04-.05-.06-.06-.09a.12.12 0 010-.07c0-.02.02-.04.06-.08l57.7-57.69c.03-.04.05-.05.07-.06a.12.12 0 01.07 0c.03 0 .05.02.09.06L512 454.07l287.7-287.7c.04-.04.06-.05.09-.06a.12.12 0 01.07 0z"}}]},name:"close",theme:"outlined"},VI=function(t,n){return d.createElement(_n,Pe({},t,{ref:n,icon:HI}))},WI=d.forwardRef(VI),UI={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm-32 232c0-4.4 3.6-8 8-8h48c4.4 0 8 3.6 8 8v272c0 4.4-3.6 8-8 8h-48c-4.4 0-8-3.6-8-8V296zm32 440a48.01 48.01 0 010-96 48.01 48.01 0 010 96z"}}]},name:"exclamation-circle",theme:"filled"},GI=function(t,n){return d.createElement(_n,Pe({},t,{ref:n,icon:UI}))},KI=d.forwardRef(GI);function BE(e){return e&&me.isValidElement(e)&&e.type===me.Fragment}const qI=(e,t,n)=>me.isValidElement(e)?me.cloneElement(e,typeof n=="function"?n(e.props||{}):n):t;function Nf(e,t){return qI(e,e,t)}const xb=e=>typeof e=="object"&&e!=null&&e.nodeType===1,Sb=(e,t)=>(!t||e!=="hidden")&&e!=="visible"&&e!=="clip",Fh=(e,t)=>{if(e.clientHeight{const i=(o=>{if(!o.ownerDocument||!o.ownerDocument.defaultView)return null;try{return o.ownerDocument.defaultView.frameElement}catch{return null}})(r);return!!i&&(i.clientHeightot||o>e&&a=t&&s>=n?o-e-r:a>t&&sn?a-t+i:0,XI=e=>{const t=e.parentElement;return t??(e.getRootNode().host||null)},Cb=(e,t)=>{var n,r,i,o;if(typeof document>"u")return[];const{scrollMode:a,block:s,inline:l,boundary:c,skipOverflowHiddenElements:u}=t,f=typeof c=="function"?c:A=>A!==c;if(!xb(e))throw new TypeError("Invalid target");const h=document.scrollingElement||document.documentElement,m=[];let y=e;for(;xb(y)&&f(y);){if(y=XI(y),y===h){m.push(y);break}y!=null&&y===document.body&&Fh(y)&&!Fh(document.documentElement)||y!=null&&Fh(y,u)&&m.push(y)}const v=(r=(n=window.visualViewport)==null?void 0:n.width)!=null?r:innerWidth,b=(o=(i=window.visualViewport)==null?void 0:i.height)!=null?o:innerHeight,{scrollX:p,scrollY:g}=window,{height:x,width:S,top:C,right:w,bottom:E,left:_}=e.getBoundingClientRect(),{top:O,right:M,bottom:I,left:k}=(A=>{const P=window.getComputedStyle(A);return{top:parseFloat(P.scrollMarginTop)||0,right:parseFloat(P.scrollMarginRight)||0,bottom:parseFloat(P.scrollMarginBottom)||0,left:parseFloat(P.scrollMarginLeft)||0}})(e);let F=s==="start"||s==="nearest"?C-O:s==="end"?E+I:C+x/2-O+I,j=l==="center"?_+S/2-k+M:l==="end"?w+M:_-k;const B=[];for(let A=0;A=0&&_>=0&&E<=b&&w<=v&&C>=D&&E<=G&&_>=X&&w<=H)return B;const W=getComputedStyle(P),K=parseInt(W.borderLeftWidth,10),ee=parseInt(W.borderTopWidth,10),U=parseInt(W.borderRightWidth,10),Y=parseInt(W.borderBottomWidth,10);let J=0,re=0;const ce="offsetWidth"in P?P.offsetWidth-P.clientWidth-K-U:0,he="offsetHeight"in P?P.offsetHeight-P.clientHeight-ee-Y:0,xe="offsetWidth"in P?P.offsetWidth===0?0:N/P.offsetWidth:0,ie="offsetHeight"in P?P.offsetHeight===0?0:R/P.offsetHeight:0;if(h===P)J=s==="start"?F:s==="end"?F-b:s==="nearest"?mu(g,g+b,b,ee,Y,g+F,g+F+x,x):F-b/2,re=l==="start"?j:l==="center"?j-v/2:l==="end"?j-v:mu(p,p+v,v,K,U,p+j,p+j+S,S),J=Math.max(0,J+g),re=Math.max(0,re+p);else{J=s==="start"?F-D-ee:s==="end"?F-G+Y+he:s==="nearest"?mu(D,G,R,ee,Y+he,F,F+x,x):F-(D+R/2)+he/2,re=l==="start"?j-X-K:l==="center"?j-(X+N/2)+ce/2:l==="end"?j-H+U+ce:mu(X,H,N,K,U+ce,j,j+S,S);const{scrollLeft:de,scrollTop:ye}=P;J=ie===0?0:Math.max(0,Math.min(ye+J/ie,P.scrollHeight-R/ie+he)),re=xe===0?0:Math.max(0,Math.min(de+re/xe,P.scrollWidth-N/xe+ce)),F+=ye-J,j+=de-re}B.push({el:P,top:J,left:re})}return B},YI=e=>e===!1?{block:"end",inline:"nearest"}:(t=>t===Object(t)&&Object.keys(t).length!==0)(e)?e:{block:"start",inline:"nearest"};function QI(e,t){if(!e.isConnected||!(i=>{let o=i;for(;o&&o.parentNode;){if(o.parentNode===document)return!0;o=o.parentNode instanceof ShadowRoot?o.parentNode.host:o.parentNode}return!1})(e))return;const n=(i=>{const o=window.getComputedStyle(i);return{top:parseFloat(o.scrollMarginTop)||0,right:parseFloat(o.scrollMarginRight)||0,bottom:parseFloat(o.scrollMarginBottom)||0,left:parseFloat(o.scrollMarginLeft)||0}})(e);if((i=>typeof i=="object"&&typeof i.behavior=="function")(t))return t.behavior(Cb(e,t));const r=typeof t=="boolean"||t==null?void 0:t.behavior;for(const{el:i,top:o,left:a}of Cb(e,YI(t))){const s=o-n.top+n.bottom,l=a-n.left+n.right;i.scroll({top:s,left:l,behavior:r})}}const Tc=e=>{const[,,,,t]=Wi();return t?`${e}-css-var`:""};var le={MAC_ENTER:3,BACKSPACE:8,TAB:9,NUM_CENTER:12,ENTER:13,SHIFT:16,CTRL:17,ALT:18,PAUSE:19,CAPS_LOCK:20,ESC:27,SPACE:32,PAGE_UP:33,PAGE_DOWN:34,END:35,HOME:36,LEFT:37,UP:38,RIGHT:39,DOWN:40,PRINT_SCREEN:44,INSERT:45,DELETE:46,ZERO:48,ONE:49,TWO:50,THREE:51,FOUR:52,FIVE:53,SIX:54,SEVEN:55,EIGHT:56,NINE:57,QUESTION_MARK:63,A:65,B:66,C:67,D:68,E:69,F:70,G:71,H:72,I:73,J:74,K:75,L:76,M:77,N:78,O:79,P:80,Q:81,R:82,S:83,T:84,U:85,V:86,W:87,X:88,Y:89,Z:90,META:91,WIN_KEY_RIGHT:92,CONTEXT_MENU:93,NUM_ZERO:96,NUM_ONE:97,NUM_TWO:98,NUM_THREE:99,NUM_FOUR:100,NUM_FIVE:101,NUM_SIX:102,NUM_SEVEN:103,NUM_EIGHT:104,NUM_NINE:105,NUM_MULTIPLY:106,NUM_PLUS:107,NUM_MINUS:109,NUM_PERIOD:110,NUM_DIVISION:111,F1:112,F2:113,F3:114,F4:115,F5:116,F6:117,F7:118,F8:119,F9:120,F10:121,F11:122,F12:123,NUMLOCK:144,SEMICOLON:186,DASH:189,EQUALS:187,COMMA:188,PERIOD:190,SLASH:191,APOSTROPHE:192,SINGLE_QUOTE:222,OPEN_SQUARE_BRACKET:219,BACKSLASH:220,CLOSE_SQUARE_BRACKET:221,WIN_KEY:224,MAC_FF_META:224,WIN_IME:229,isTextModifyingKeyEvent:function(t){var n=t.keyCode;if(t.altKey&&!t.ctrlKey||t.metaKey||n>=le.F1&&n<=le.F12)return!1;switch(n){case le.ALT:case le.CAPS_LOCK:case le.CONTEXT_MENU:case le.CTRL:case le.DOWN:case le.END:case le.ESC:case le.HOME:case le.INSERT:case le.LEFT:case le.MAC_FF_META:case le.META:case le.NUMLOCK:case le.NUM_CENTER:case le.PAGE_DOWN:case le.PAGE_UP:case le.PAUSE:case le.PRINT_SCREEN:case le.RIGHT:case le.SHIFT:case le.UP:case le.WIN_KEY:case le.WIN_KEY_RIGHT:return!1;default:return!0}},isCharacterKey:function(t){if(t>=le.ZERO&&t<=le.NINE||t>=le.NUM_ZERO&&t<=le.NUM_MULTIPLY||t>=le.A&&t<=le.Z||window.navigator.userAgent.indexOf("WebKit")!==-1&&t===0)return!0;switch(t){case le.SPACE:case le.QUESTION_MARK:case le.NUM_PLUS:case le.NUM_MINUS:case le.NUM_PERIOD:case le.NUM_DIVISION:case le.SEMICOLON:case le.DASH:case le.EQUALS:case le.COMMA:case le.PERIOD:case le.SLASH:case le.APOSTROPHE:case le.SINGLE_QUOTE:case le.OPEN_SQUARE_BRACKET:case le.BACKSLASH:case le.CLOSE_SQUARE_BRACKET:return!0;default:return!1}}},ZI={icon:{tag:"svg",attrs:{viewBox:"0 0 1024 1024",focusable:"false"},children:[{tag:"path",attrs:{d:"M988 548c-19.9 0-36-16.1-36-36 0-59.4-11.6-117-34.6-171.3a440.45 440.45 0 00-94.3-139.9 437.71 437.71 0 00-139.9-94.3C629 83.6 571.4 72 512 72c-19.9 0-36-16.1-36-36s16.1-36 36-36c69.1 0 136.2 13.5 199.3 40.3C772.3 66 827 103 874 150c47 47 83.9 101.8 109.7 162.7 26.7 63.1 40.2 130.2 40.2 199.3.1 19.9-16 36-35.9 36z"}}]},name:"loading",theme:"outlined"},JI=function(t,n){return d.createElement(_n,Pe({},t,{ref:n,icon:ZI}))},HE=d.forwardRef(JI);const VE=me.createContext(void 0),ko=100,WE={Modal:ko,Drawer:ko,Popover:ko,Popconfirm:ko,Tooltip:ko,Tour:ko,FloatButton:ko},ek={SelectLike:50,Dropdown:50,DatePicker:50,Menu:50,ImagePreview:1};function tk(e){return e in WE}const nk=(e,t)=>{const[,n]=Wi(),r=me.useContext(VE),i=tk(e);let o;if(t!==void 0)o=[t,t];else{let a=r??0;i?a+=(r?0:n.zIndexPopupBase)+WE[e]:a+=ek[e],o=[r===void 0?t:a,a]}return o};function Jn(){Jn=function(){return t};var e,t={},n=Object.prototype,r=n.hasOwnProperty,i=Object.defineProperty||function(A,P,R){A[P]=R.value},o=typeof Symbol=="function"?Symbol:{},a=o.iterator||"@@iterator",s=o.asyncIterator||"@@asyncIterator",l=o.toStringTag||"@@toStringTag";function c(A,P,R){return Object.defineProperty(A,P,{value:R,enumerable:!0,configurable:!0,writable:!0}),A[P]}try{c({},"")}catch{c=function(R,N,D){return R[N]=D}}function u(A,P,R,N){var D=P&&P.prototype instanceof p?P:p,H=Object.create(D.prototype),G=new j(N||[]);return i(H,"_invoke",{value:M(A,R,G)}),H}function f(A,P,R){try{return{type:"normal",arg:A.call(P,R)}}catch(N){return{type:"throw",arg:N}}}t.wrap=u;var h="suspendedStart",m="suspendedYield",y="executing",v="completed",b={};function p(){}function g(){}function x(){}var S={};c(S,a,function(){return this});var C=Object.getPrototypeOf,w=C&&C(C(B([])));w&&w!==n&&r.call(w,a)&&(S=w);var E=x.prototype=p.prototype=Object.create(S);function _(A){["next","throw","return"].forEach(function(P){c(A,P,function(R){return this._invoke(P,R)})})}function O(A,P){function R(D,H,G,X){var W=f(A[D],A,H);if(W.type!=="throw"){var K=W.arg,ee=K.value;return ee&&je(ee)=="object"&&r.call(ee,"__await")?P.resolve(ee.__await).then(function(U){R("next",U,G,X)},function(U){R("throw",U,G,X)}):P.resolve(ee).then(function(U){K.value=U,G(K)},function(U){return R("throw",U,G,X)})}X(W.arg)}var N;i(this,"_invoke",{value:function(H,G){function X(){return new P(function(W,K){R(H,G,W,K)})}return N=N?N.then(X,X):X()}})}function M(A,P,R){var N=h;return function(D,H){if(N===y)throw Error("Generator is already running");if(N===v){if(D==="throw")throw H;return{value:e,done:!0}}for(R.method=D,R.arg=H;;){var G=R.delegate;if(G){var X=I(G,R);if(X){if(X===b)continue;return X}}if(R.method==="next")R.sent=R._sent=R.arg;else if(R.method==="throw"){if(N===h)throw N=v,R.arg;R.dispatchException(R.arg)}else R.method==="return"&&R.abrupt("return",R.arg);N=y;var W=f(A,P,R);if(W.type==="normal"){if(N=R.done?v:m,W.arg===b)continue;return{value:W.arg,done:R.done}}W.type==="throw"&&(N=v,R.method="throw",R.arg=W.arg)}}}function I(A,P){var R=P.method,N=A.iterator[R];if(N===e)return P.delegate=null,R==="throw"&&A.iterator.return&&(P.method="return",P.arg=e,I(A,P),P.method==="throw")||R!=="return"&&(P.method="throw",P.arg=new TypeError("The iterator does not provide a '"+R+"' method")),b;var D=f(N,A.iterator,P.arg);if(D.type==="throw")return P.method="throw",P.arg=D.arg,P.delegate=null,b;var H=D.arg;return H?H.done?(P[A.resultName]=H.value,P.next=A.nextLoc,P.method!=="return"&&(P.method="next",P.arg=e),P.delegate=null,b):H:(P.method="throw",P.arg=new TypeError("iterator result is not an object"),P.delegate=null,b)}function k(A){var P={tryLoc:A[0]};1 in A&&(P.catchLoc=A[1]),2 in A&&(P.finallyLoc=A[2],P.afterLoc=A[3]),this.tryEntries.push(P)}function F(A){var P=A.completion||{};P.type="normal",delete P.arg,A.completion=P}function j(A){this.tryEntries=[{tryLoc:"root"}],A.forEach(k,this),this.reset(!0)}function B(A){if(A||A===""){var P=A[a];if(P)return P.call(A);if(typeof A.next=="function")return A;if(!isNaN(A.length)){var R=-1,N=function D(){for(;++R=0;--D){var H=this.tryEntries[D],G=H.completion;if(H.tryLoc==="root")return N("end");if(H.tryLoc<=this.prev){var X=r.call(H,"catchLoc"),W=r.call(H,"finallyLoc");if(X&&W){if(this.prev=0;--N){var D=this.tryEntries[N];if(D.tryLoc<=this.prev&&r.call(D,"finallyLoc")&&this.prev=0;--R){var N=this.tryEntries[R];if(N.finallyLoc===P)return this.complete(N.completion,N.afterLoc),F(N),b}},catch:function(P){for(var R=this.tryEntries.length-1;R>=0;--R){var N=this.tryEntries[R];if(N.tryLoc===P){var D=N.completion;if(D.type==="throw"){var H=D.arg;F(N)}return H}}throw Error("illegal catch attempt")},delegateYield:function(P,R,N){return this.delegate={iterator:B(P),resultName:R,nextLoc:N},this.method==="next"&&(this.arg=e),b}},t}function wb(e,t,n,r,i,o,a){try{var s=e[o](a),l=s.value}catch(c){return void n(c)}s.done?t(l):Promise.resolve(l).then(r,i)}function pa(e){return function(){var t=this,n=arguments;return new Promise(function(r,i){var o=e.apply(t,n);function a(l){wb(o,r,i,a,s,"next",l)}function s(l){wb(o,r,i,a,s,"throw",l)}a(void 0)})}}var Rc=V({},UP),rk=Rc.version,ik=Rc.render,ok=Rc.unmountComponentAtNode,Ff;try{var ak=Number((rk||"").split(".")[0]);ak>=18&&(Ff=Rc.createRoot)}catch{}function Eb(e){var t=Rc.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;t&&je(t)==="object"&&(t.usingClientEntryPoint=e)}var zd="__rc_react_root__";function sk(e,t){Eb(!0);var n=t[zd]||Ff(t);Eb(!1),n.render(e),t[zd]=n}function lk(e,t){ik(e,t)}function ck(e,t){if(Ff){sk(e,t);return}lk(e,t)}function uk(e){return Fm.apply(this,arguments)}function Fm(){return Fm=pa(Jn().mark(function e(t){return Jn().wrap(function(r){for(;;)switch(r.prev=r.next){case 0:return r.abrupt("return",Promise.resolve().then(function(){var i;(i=t[zd])===null||i===void 0||i.unmount(),delete t[zd]}));case 1:case"end":return r.stop()}},e)})),Fm.apply(this,arguments)}function dk(e){ok(e)}function fk(e){return Am.apply(this,arguments)}function Am(){return Am=pa(Jn().mark(function e(t){return Jn().wrap(function(r){for(;;)switch(r.prev=r.next){case 0:if(Ff===void 0){r.next=2;break}return r.abrupt("return",uk(t));case 2:dk(t);case 3:case"end":return r.stop()}},e)})),Am.apply(this,arguments)}const Ah=()=>({height:0,opacity:0}),_b=e=>{const{scrollHeight:t}=e;return{height:t,opacity:1}},hk=e=>({height:e?e.offsetHeight:0}),Lh=(e,t)=>(t==null?void 0:t.deadline)===!0||t.propertyName==="height",$b=function(){return{motionName:`${arguments.length>0&&arguments[0]!==void 0?arguments[0]:cc}-motion-collapse`,onAppearStart:Ah,onEnterStart:Ah,onAppearActive:_b,onEnterActive:_b,onLeaveStart:hk,onLeaveActive:Ah,onAppearEnd:Lh,onEnterEnd:Lh,onLeaveEnd:Lh,motionDeadline:500}},UE=(e,t,n)=>n!==void 0?n:`${e}-${t}`,Af=function(e){if(!e)return!1;if(e instanceof Element){if(e.offsetParent)return!0;if(e.getBBox){var t=e.getBBox(),n=t.width,r=t.height;if(n||r)return!0}if(e.getBoundingClientRect){var i=e.getBoundingClientRect(),o=i.width,a=i.height;if(o||a)return!0}}return!1},gk=e=>{const{componentCls:t,colorPrimary:n}=e;return{[t]:{position:"absolute",background:"transparent",pointerEvents:"none",boxSizing:"border-box",color:`var(--wave-color, ${n})`,boxShadow:"0 0 0 0 currentcolor",opacity:.2,"&.wave-motion-appear":{transition:[`box-shadow 0.4s ${e.motionEaseOutCirc}`,`opacity 2s ${e.motionEaseOutCirc}`].join(","),"&-active":{boxShadow:"0 0 0 6px currentcolor",opacity:0},"&.wave-quick":{transition:[`box-shadow ${e.motionDurationSlow} ${e.motionEaseInOut}`,`opacity ${e.motionDurationSlow} ${e.motionEaseInOut}`].join(",")}}}}},mk=WR("Wave",e=>[gk(e)]),GE=`${cc}-wave-target`;function Dh(e){return e&&e!=="#fff"&&e!=="#ffffff"&&e!=="rgb(255, 255, 255)"&&e!=="rgba(255, 255, 255, 1)"&&!/rgba\((?:\d*, ){3}0\)/.test(e)&&e!=="transparent"}function pk(e){const{borderTopColor:t,borderColor:n,backgroundColor:r}=getComputedStyle(e);return Dh(t)?t:Dh(n)?n:Dh(r)?r:null}function zh(e){return Number.isNaN(e)?0:e}const vk=e=>{const{className:t,target:n,component:r}=e,i=d.useRef(null),[o,a]=d.useState(null),[s,l]=d.useState([]),[c,u]=d.useState(0),[f,h]=d.useState(0),[m,y]=d.useState(0),[v,b]=d.useState(0),[p,g]=d.useState(!1),x={left:c,top:f,width:m,height:v,borderRadius:s.map(w=>`${w}px`).join(" ")};o&&(x["--wave-color"]=o);function S(){const w=getComputedStyle(n);a(pk(n));const E=w.position==="static",{borderLeftWidth:_,borderTopWidth:O}=w;u(E?n.offsetLeft:zh(-parseFloat(_))),h(E?n.offsetTop:zh(-parseFloat(O))),y(n.offsetWidth),b(n.offsetHeight);const{borderTopLeftRadius:M,borderTopRightRadius:I,borderBottomLeftRadius:k,borderBottomRightRadius:F}=w;l([M,I,F,k].map(j=>zh(parseFloat(j))))}if(d.useEffect(()=>{if(n){const w=Ft(()=>{S(),g(!0)});let E;return typeof ResizeObserver<"u"&&(E=new ResizeObserver(S),E.observe(n)),()=>{Ft.cancel(w),E==null||E.disconnect()}}},[]),!p)return null;const C=(r==="Checkbox"||r==="Radio")&&(n==null?void 0:n.classList.contains(GE));return d.createElement(To,{visible:!0,motionAppear:!0,motionName:"wave-motion",motionDeadline:5e3,onAppearEnd:(w,E)=>{var _;if(E.deadline||E.propertyName==="opacity"){const O=(_=i.current)===null||_===void 0?void 0:_.parentElement;fk(O).then(()=>{O==null||O.remove()})}return!1}},(w,E)=>{let{className:_}=w;return d.createElement("div",{ref:Si(i,E),className:te(t,_,{"wave-quick":C}),style:x})})},yk=(e,t)=>{var n;const{component:r}=t;if(r==="Checkbox"&&!(!((n=e.querySelector("input"))===null||n===void 0)&&n.checked))return;const i=document.createElement("div");i.style.position="absolute",i.style.left="0px",i.style.top="0px",e==null||e.insertBefore(i,e==null?void 0:e.firstChild),ck(d.createElement(vk,Object.assign({},t,{target:e})),i)},bk=(e,t,n)=>{const{wave:r}=d.useContext(bt),[,i,o]=Wi(),a=Cn(c=>{const u=e.current;if(r!=null&&r.disabled||!u)return;const f=u.querySelector(`.${GE}`)||u,{showEffect:h}=r||{};(h||yk)(f,{className:t,token:i,component:n,event:c,hashId:o})}),s=d.useRef();return c=>{Ft.cancel(s.current),s.current=Ft(()=>{a(c)})}},xk=e=>{const{children:t,disabled:n,component:r}=e,{getPrefixCls:i}=d.useContext(bt),o=d.useRef(null),a=i("wave"),[,s]=mk(a),l=bk(o,te(a,s),r);if(me.useEffect(()=>{const u=o.current;if(!u||u.nodeType!==1||n)return;const f=h=>{!Af(h.target)||!u.getAttribute||u.getAttribute("disabled")||u.disabled||u.className.includes("disabled")||u.className.includes("-leave")||l(h)};return u.addEventListener("click",f,!0),()=>{u.removeEventListener("click",f,!0)}},[n]),!me.isValidElement(t))return t??null;const c=Mo(t)?Si(t.ref,o):o;return Nf(t,{ref:c})},Ic=e=>{const t=me.useContext(ca);return me.useMemo(()=>e?typeof e=="string"?e??t:e instanceof Function?e(t):t:t,[e,t])},KE=d.createContext(null),qE=(e,t)=>{const n=d.useContext(KE),r=d.useMemo(()=>{if(!n)return"";const{compactDirection:i,isFirstItem:o,isLastItem:a}=n,s=i==="vertical"?"-vertical-":"-";return te(`${e}-compact${s}item`,{[`${e}-compact${s}first-item`]:o,[`${e}-compact${s}last-item`]:a,[`${e}-compact${s}item-rtl`]:t==="rtl"})},[e,t,n]);return{compactSize:n==null?void 0:n.compactSize,compactDirection:n==null?void 0:n.compactDirection,compactItemClassnames:r}},Sk=e=>{let{children:t}=e;return d.createElement(KE.Provider,{value:null},t)};var Ck=function(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 i=0,r=Object.getOwnPropertySymbols(e);i{const{getPrefixCls:t,direction:n}=d.useContext(bt),{prefixCls:r,size:i,className:o}=e,a=Ck(e,["prefixCls","size","className"]),s=t("btn-group",r),[,,l]=Wi();let c="";switch(i){case"large":c="lg";break;case"small":c="sm";break}const u=te(s,{[`${s}-${c}`]:c,[`${s}-rtl`]:n==="rtl"},o,l);return d.createElement(XE.Provider,{value:i},d.createElement("div",Object.assign({},a,{className:u})))},Ob=/^[\u4E00-\u9FA5]{2}$/,Lm=Ob.test.bind(Ob);function Pb(e){return typeof e=="string"}function jh(e){return e==="text"||e==="link"}function Ek(e,t){if(e==null)return;const n=t?" ":"";return typeof e!="string"&&typeof e!="number"&&Pb(e.type)&&Lm(e.props.children)?Nf(e,{children:e.props.children.split("").join(n)}):Pb(e)?Lm(e)?me.createElement("span",null,e.split("").join(n)):me.createElement("span",null,e):BE(e)?me.createElement("span",null,e):e}function _k(e,t){let n=!1;const r=[];return me.Children.forEach(e,i=>{const o=typeof i,a=o==="string"||o==="number";if(n&&a){const s=r.length-1,l=r[s];r[s]=`${l}${i}`}else r.push(i);n=a}),me.Children.map(r,i=>Ek(i,t))}const YE=d.forwardRef((e,t)=>{const{className:n,style:r,children:i,prefixCls:o}=e,a=te(`${o}-icon`,n);return me.createElement("span",{ref:t,className:a,style:r},i)}),Mb=d.forwardRef((e,t)=>{const{prefixCls:n,className:r,style:i,iconClassName:o}=e,a=te(`${n}-loading-icon`,r);return me.createElement(YE,{prefixCls:n,className:a,style:i,ref:t},me.createElement(HE,{className:o}))}),Bh=()=>({width:0,opacity:0,transform:"scale(0)"}),Hh=e=>({width:e.scrollWidth,opacity:1,transform:"scale(1)"}),$k=e=>{const{prefixCls:t,loading:n,existIcon:r,className:i,style:o}=e,a=!!n;return r?me.createElement(Mb,{prefixCls:t,className:i,style:o}):me.createElement(To,{visible:a,motionName:`${t}-loading-icon-motion`,motionLeave:a,removeOnLeave:!0,onAppearStart:Bh,onAppearActive:Hh,onEnterStart:Bh,onEnterActive:Hh,onLeaveStart:Hh,onLeaveActive:Bh},(s,l)=>{let{className:c,style:u}=s;return me.createElement(Mb,{prefixCls:t,className:i,style:Object.assign(Object.assign({},o),u),ref:l,iconClassName:c})})},Tb=(e,t)=>({[`> span, > ${e}`]:{"&:not(:last-child)":{[`&, & > ${e}`]:{"&:not(:disabled)":{borderInlineEndColor:t}}},"&:not(:first-child)":{[`&, & > ${e}`]:{"&:not(:disabled)":{borderInlineStartColor:t}}}}}),Ok=e=>{const{componentCls:t,fontSize:n,lineWidth:r,groupBorderColor:i,colorErrorHover:o}=e;return{[`${t}-group`]:[{position:"relative",display:"inline-flex",[`> span, > ${t}`]:{"&:not(:last-child)":{[`&, & > ${t}`]:{borderStartEndRadius:0,borderEndEndRadius:0}},"&:not(:first-child)":{marginInlineStart:e.calc(r).mul(-1).equal(),[`&, & > ${t}`]:{borderStartStartRadius:0,borderEndStartRadius:0}}},[t]:{position:"relative",zIndex:1,"&:hover, &:focus, &:active":{zIndex:2},"&[disabled]":{zIndex:0}},[`${t}-icon-only`]:{fontSize:n}},Tb(`${t}-primary`,i),Tb(`${t}-danger`,o)]}},Pn=Math.round;function Vh(e,t){const n=e.replace(/^[^(]*\((.*)/,"$1").replace(/\).*/,"").match(/\d*\.?\d+%?/g)||[],r=n.map(i=>parseFloat(i));for(let i=0;i<3;i+=1)r[i]=t(r[i]||0,n[i]||"",i);return n[3]?r[3]=n[3].includes("%")?r[3]/100:r[3]:r[3]=1,r}const Rb=(e,t,n)=>n===0?e:e/100;function Ks(e,t){const n=t||255;return e>n?n:e<0?0:e}class Lf{constructor(t){z(this,"isValid",!0),z(this,"r",0),z(this,"g",0),z(this,"b",0),z(this,"a",1),z(this,"_h",void 0),z(this,"_s",void 0),z(this,"_l",void 0),z(this,"_v",void 0),z(this,"_max",void 0),z(this,"_min",void 0),z(this,"_brightness",void 0);function n(i){return i[0]in t&&i[1]in t&&i[2]in t}if(t)if(typeof t=="string"){let o=function(a){return i.startsWith(a)};var r=o;const i=t.trim();/^#?[A-F\d]{3,8}$/i.test(i)?this.fromHexString(i):o("rgb")?this.fromRgbString(i):o("hsl")?this.fromHslString(i):(o("hsv")||o("hsb"))&&this.fromHsvString(i)}else if(t instanceof Lf)this.r=t.r,this.g=t.g,this.b=t.b,this.a=t.a,this._h=t._h,this._s=t._s,this._l=t._l,this._v=t._v;else if(n("rgb"))this.r=Ks(t.r),this.g=Ks(t.g),this.b=Ks(t.b),this.a=typeof t.a=="number"?Ks(t.a,1):1;else if(n("hsl"))this.fromHsl(t);else if(n("hsv"))this.fromHsv(t);else throw new Error("@ant-design/fast-color: unsupported input "+JSON.stringify(t))}setR(t){return this._sc("r",t)}setG(t){return this._sc("g",t)}setB(t){return this._sc("b",t)}setA(t){return this._sc("a",t,1)}setHue(t){const n=this.toHsv();return n.h=t,this._c(n)}getLuminance(){function t(o){const a=o/255;return a<=.03928?a/12.92:Math.pow((a+.055)/1.055,2.4)}const n=t(this.r),r=t(this.g),i=t(this.b);return .2126*n+.7152*r+.0722*i}getHue(){if(typeof this._h>"u"){const t=this.getMax()-this.getMin();t===0?this._h=0:this._h=Pn(60*(this.r===this.getMax()?(this.g-this.b)/t+(this.g"u"){const t=this.getMax()-this.getMin();t===0?this._s=0:this._s=t/this.getMax()}return this._s}getLightness(){return typeof this._l>"u"&&(this._l=(this.getMax()+this.getMin())/510),this._l}getValue(){return typeof this._v>"u"&&(this._v=this.getMax()/255),this._v}getBrightness(){return typeof this._brightness>"u"&&(this._brightness=(this.r*299+this.g*587+this.b*114)/1e3),this._brightness}darken(t=10){const n=this.getHue(),r=this.getSaturation();let i=this.getLightness()-t/100;return i<0&&(i=0),this._c({h:n,s:r,l:i,a:this.a})}lighten(t=10){const n=this.getHue(),r=this.getSaturation();let i=this.getLightness()+t/100;return i>1&&(i=1),this._c({h:n,s:r,l:i,a:this.a})}mix(t,n=50){const r=this._c(t),i=n/100,o=s=>(r[s]-this[s])*i+this[s],a={r:Pn(o("r")),g:Pn(o("g")),b:Pn(o("b")),a:Pn(o("a")*100)/100};return this._c(a)}tint(t=10){return this.mix({r:255,g:255,b:255,a:1},t)}shade(t=10){return this.mix({r:0,g:0,b:0,a:1},t)}onBackground(t){const n=this._c(t),r=this.a+n.a*(1-this.a),i=o=>Pn((this[o]*this.a+n[o]*n.a*(1-this.a))/r);return this._c({r:i("r"),g:i("g"),b:i("b"),a:r})}isDark(){return this.getBrightness()<128}isLight(){return this.getBrightness()>=128}equals(t){return this.r===t.r&&this.g===t.g&&this.b===t.b&&this.a===t.a}clone(){return this._c(this)}toHexString(){let t="#";const n=(this.r||0).toString(16);t+=n.length===2?n:"0"+n;const r=(this.g||0).toString(16);t+=r.length===2?r:"0"+r;const i=(this.b||0).toString(16);if(t+=i.length===2?i:"0"+i,typeof this.a=="number"&&this.a>=0&&this.a<1){const o=Pn(this.a*255).toString(16);t+=o.length===2?o:"0"+o}return t}toHsl(){return{h:this.getHue(),s:this.getSaturation(),l:this.getLightness(),a:this.a}}toHslString(){const t=this.getHue(),n=Pn(this.getSaturation()*100),r=Pn(this.getLightness()*100);return this.a!==1?`hsla(${t},${n}%,${r}%,${this.a})`:`hsl(${t},${n}%,${r}%)`}toHsv(){return{h:this.getHue(),s:this.getSaturation(),v:this.getValue(),a:this.a}}toRgb(){return{r:this.r,g:this.g,b:this.b,a:this.a}}toRgbString(){return this.a!==1?`rgba(${this.r},${this.g},${this.b},${this.a})`:`rgb(${this.r},${this.g},${this.b})`}toString(){return this.toRgbString()}_sc(t,n,r){const i=this.clone();return i[t]=Ks(n,r),i}_c(t){return new this.constructor(t)}getMax(){return typeof this._max>"u"&&(this._max=Math.max(this.r,this.g,this.b)),this._max}getMin(){return typeof this._min>"u"&&(this._min=Math.min(this.r,this.g,this.b)),this._min}fromHexString(t){const n=t.replace("#","");function r(i,o){return parseInt(n[i]+n[o||i],16)}n.length<6?(this.r=r(0),this.g=r(1),this.b=r(2),this.a=n[3]?r(3)/255:1):(this.r=r(0,1),this.g=r(2,3),this.b=r(4,5),this.a=n[6]?r(6,7)/255:1)}fromHsl({h:t,s:n,l:r,a:i}){if(this._h=t%360,this._s=n,this._l=r,this.a=typeof i=="number"?i:1,n<=0){const h=Pn(r*255);this.r=h,this.g=h,this.b=h}let o=0,a=0,s=0;const l=t/60,c=(1-Math.abs(2*r-1))*n,u=c*(1-Math.abs(l%2-1));l>=0&&l<1?(o=c,a=u):l>=1&&l<2?(o=u,a=c):l>=2&&l<3?(a=c,s=u):l>=3&&l<4?(a=u,s=c):l>=4&&l<5?(o=u,s=c):l>=5&&l<6&&(o=c,s=u);const f=r-c/2;this.r=Pn((o+f)*255),this.g=Pn((a+f)*255),this.b=Pn((s+f)*255)}fromHsv({h:t,s:n,v:r,a:i}){this._h=t%360,this._s=n,this._v=r,this.a=typeof i=="number"?i:1;const o=Pn(r*255);if(this.r=o,this.g=o,this.b=o,n<=0)return;const a=t/60,s=Math.floor(a),l=a-s,c=Pn(r*(1-n)*255),u=Pn(r*(1-n*l)*255),f=Pn(r*(1-n*(1-l))*255);switch(s){case 0:this.g=f,this.b=c;break;case 1:this.r=u,this.b=c;break;case 2:this.r=c,this.b=f;break;case 3:this.r=c,this.g=u;break;case 4:this.r=f,this.g=c;break;case 5:default:this.g=c,this.b=u;break}}fromHsvString(t){const n=Vh(t,Rb);this.fromHsv({h:n[0],s:n[1],v:n[2],a:n[3]})}fromHslString(t){const n=Vh(t,Rb);this.fromHsl({h:n[0],s:n[1],l:n[2],a:n[3]})}fromRgbString(t){const n=Vh(t,(r,i)=>i.includes("%")?Pn(r/100*255):r);this.r=n[0],this.g=n[1],this.b=n[2],this.a=n[3]}}var Pk=["b"],Mk=["v"],Wh=function(t){return Math.round(Number(t||0))},Tk=function(t){if(t instanceof Lf)return t;if(t&&je(t)==="object"&&"h"in t&&"b"in t){var n=t,r=n.b,i=st(n,Pk);return V(V({},i),{},{v:r})}return typeof t=="string"&&/hsb/.test(t)?t.replace(/hsb/,"hsv"):t},uc=function(e){Hi(n,e);var t=Vi(n);function n(r){return hn(this,n),t.call(this,Tk(r))}return gn(n,[{key:"toHsbString",value:function(){var i=this.toHsb(),o=Wh(i.s*100),a=Wh(i.b*100),s=Wh(i.h),l=i.a,c="hsb(".concat(s,", ").concat(o,"%, ").concat(a,"%)"),u="hsba(".concat(s,", ").concat(o,"%, ").concat(a,"%, ").concat(l.toFixed(l===0?0:2),")");return l===1?c:u}},{key:"toHsb",value:function(){var i=this.toHsv(),o=i.v,a=st(i,Mk);return V(V({},a),{},{b:o,a:this.a})}}]),n}(Lf),Rk=function(t){return t instanceof uc?t:new uc(t)};Rk("#1677ff");const Ik=(e,t)=>(e==null?void 0:e.replace(/[^\w/]/g,"").slice(0,t?8:6))||"",kk=(e,t)=>e?Ik(e,t):"";let Nk=function(){function e(t){hn(this,e);var n;if(this.cleared=!1,t instanceof e){this.metaColor=t.metaColor.clone(),this.colors=(n=t.colors)===null||n===void 0?void 0:n.map(i=>({color:new e(i.color),percent:i.percent})),this.cleared=t.cleared;return}const r=Array.isArray(t);r&&t.length?(this.colors=t.map(i=>{let{color:o,percent:a}=i;return{color:new e(o),percent:a}}),this.metaColor=new uc(this.colors[0].color.metaColor)):this.metaColor=new uc(r?"":t),(!t||r&&!this.colors)&&(this.metaColor=this.metaColor.setA(0),this.cleared=!0)}return gn(e,[{key:"toHsb",value:function(){return this.metaColor.toHsb()}},{key:"toHsbString",value:function(){return this.metaColor.toHsbString()}},{key:"toHex",value:function(){return kk(this.toHexString(),this.metaColor.a<1)}},{key:"toHexString",value:function(){return this.metaColor.toHexString()}},{key:"toRgb",value:function(){return this.metaColor.toRgb()}},{key:"toRgbString",value:function(){return this.metaColor.toRgbString()}},{key:"isGradient",value:function(){return!!this.colors&&!this.cleared}},{key:"getColors",value:function(){return this.colors||[{color:this,percent:0}]}},{key:"toCssString",value:function(){const{colors:n}=this;return n?`linear-gradient(90deg, ${n.map(i=>`${i.color.toRgbString()} ${i.percent}%`).join(", ")})`:this.metaColor.toRgbString()}},{key:"equals",value:function(n){return!n||this.isGradient()!==n.isGradient()?!1:this.isGradient()?this.colors.length===n.colors.length&&this.colors.every((r,i)=>{const o=n.colors[i];return r.percent===o.percent&&r.color.equals(o.color)}):this.toHexString()===n.toHexString()}}])}();var Fk={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M765.7 486.8L314.9 134.7A7.97 7.97 0 00302 141v77.3c0 4.9 2.3 9.6 6.1 12.6l360 281.1-360 281.1c-3.9 3-6.1 7.7-6.1 12.6V883c0 6.7 7.7 10.4 12.9 6.3l450.8-352.1a31.96 31.96 0 000-50.4z"}}]},name:"right",theme:"outlined"},Ak=function(t,n){return d.createElement(_n,Pe({},t,{ref:n,icon:Fk}))},Ib=d.forwardRef(Ak);const Lk=e=>({[e.componentCls]:{[`${e.antCls}-motion-collapse-legacy`]:{overflow:"hidden","&-active":{transition:`height ${e.motionDurationMid} ${e.motionEaseInOut}, +`,RI=function(t){var n=d.useContext(Ov),r=n.csp,i=n.prefixCls,o=TI;i&&(o=o.replace(/anticon/g,i)),d.useEffect(function(){var a=t.current,s=Dd(a);ki(o,"@ant-design-icons",{prepend:!0,csp:r,attachTo:s})},[])},II=["icon","className","onClick","style","primaryColor","secondaryColor"],_l={primaryColor:"#333",secondaryColor:"#E6E6E6",calculated:!1};function kI(e){var t=e.primaryColor,n=e.secondaryColor;_l.primaryColor=t,_l.secondaryColor=n||DE(t),_l.calculated=!!n}function NI(){return V({},_l)}var Ts=function(t){var n=t.icon,r=t.className,i=t.onClick,o=t.style,a=t.primaryColor,s=t.secondaryColor,l=st(t,II),c=d.useRef(),u=_l;if(a&&(u={primaryColor:a,secondaryColor:s||DE(a)}),RI(c),MI(yb(n),"icon should be icon definiton, but got ".concat(n)),!yb(n))return null;var f=n;return f&&typeof f.icon=="function"&&(f=V(V({},f),{},{icon:f.icon(u.primaryColor,u.secondaryColor)})),km(f.icon,"svg-".concat(f.name),V(V({className:r,onClick:i,style:o,"data-icon":f.name,width:"1em",height:"1em",fill:"currentColor","aria-hidden":"true"},l),{},{ref:c}))};Ts.displayName="IconReact";Ts.getTwoToneColors=NI;Ts.setTwoToneColors=kI;function jE(e){var t=zE(e),n=Q(t,2),r=n[0],i=n[1];return Ts.setTwoToneColors({primaryColor:r,secondaryColor:i})}function FI(){var e=Ts.getTwoToneColors();return e.calculated?[e.primaryColor,e.secondaryColor]:e.primaryColor}var AI=["className","icon","spin","rotate","tabIndex","onClick","twoToneColor"];jE(Ad.primary);var _n=d.forwardRef(function(e,t){var n=e.className,r=e.icon,i=e.spin,o=e.rotate,a=e.tabIndex,s=e.onClick,l=e.twoToneColor,c=st(e,AI),u=d.useContext(Ov),f=u.prefixCls,h=f===void 0?"anticon":f,m=u.rootClassName,y=te(m,h,z(z({},"".concat(h,"-").concat(r.name),!!r.name),"".concat(h,"-spin"),!!i||r.name==="loading"),n),v=a;v===void 0&&s&&(v=-1);var b=o?{msTransform:"rotate(".concat(o,"deg)"),transform:"rotate(".concat(o,"deg)")}:void 0,p=zE(l),g=Q(p,2),x=g[0],S=g[1];return d.createElement("span",Pe({role:"img","aria-label":r.name},c,{ref:t,tabIndex:v,onClick:s,className:y}),d.createElement(Ts,{icon:r,primaryColor:x,secondaryColor:S,style:b}))});_n.displayName="AntdIcon";_n.getTwoToneColor=FI;_n.setTwoToneColor=jE;var LI=function(t,n){return d.createElement(_n,Pe({},t,{ref:n,icon:$I}))},DI=d.forwardRef(LI),zI={icon:{tag:"svg",attrs:{"fill-rule":"evenodd",viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 64c247.4 0 448 200.6 448 448S759.4 960 512 960 64 759.4 64 512 264.6 64 512 64zm127.98 274.82h-.04l-.08.06L512 466.75 384.14 338.88c-.04-.05-.06-.06-.08-.06a.12.12 0 00-.07 0c-.03 0-.05.01-.09.05l-45.02 45.02a.2.2 0 00-.05.09.12.12 0 000 .07v.02a.27.27 0 00.06.06L466.75 512 338.88 639.86c-.05.04-.06.06-.06.08a.12.12 0 000 .07c0 .03.01.05.05.09l45.02 45.02a.2.2 0 00.09.05.12.12 0 00.07 0c.02 0 .04-.01.08-.05L512 557.25l127.86 127.87c.04.04.06.05.08.05a.12.12 0 00.07 0c.03 0 .05-.01.09-.05l45.02-45.02a.2.2 0 00.05-.09.12.12 0 000-.07v-.02a.27.27 0 00-.05-.06L557.25 512l127.87-127.86c.04-.04.05-.06.05-.08a.12.12 0 000-.07c0-.03-.01-.05-.05-.09l-45.02-45.02a.2.2 0 00-.09-.05.12.12 0 00-.07 0z"}}]},name:"close-circle",theme:"filled"},jI=function(t,n){return d.createElement(_n,Pe({},t,{ref:n,icon:zI}))},BI=d.forwardRef(jI),HI={icon:{tag:"svg",attrs:{"fill-rule":"evenodd",viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M799.86 166.31c.02 0 .04.02.08.06l57.69 57.7c.04.03.05.05.06.08a.12.12 0 010 .06c0 .03-.02.05-.06.09L569.93 512l287.7 287.7c.04.04.05.06.06.09a.12.12 0 010 .07c0 .02-.02.04-.06.08l-57.7 57.69c-.03.04-.05.05-.07.06a.12.12 0 01-.07 0c-.03 0-.05-.02-.09-.06L512 569.93l-287.7 287.7c-.04.04-.06.05-.09.06a.12.12 0 01-.07 0c-.02 0-.04-.02-.08-.06l-57.69-57.7c-.04-.03-.05-.05-.06-.07a.12.12 0 010-.07c0-.03.02-.05.06-.09L454.07 512l-287.7-287.7c-.04-.04-.05-.06-.06-.09a.12.12 0 010-.07c0-.02.02-.04.06-.08l57.7-57.69c.03-.04.05-.05.07-.06a.12.12 0 01.07 0c.03 0 .05.02.09.06L512 454.07l287.7-287.7c.04-.04.06-.05.09-.06a.12.12 0 01.07 0z"}}]},name:"close",theme:"outlined"},VI=function(t,n){return d.createElement(_n,Pe({},t,{ref:n,icon:HI}))},WI=d.forwardRef(VI),UI={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm-32 232c0-4.4 3.6-8 8-8h48c4.4 0 8 3.6 8 8v272c0 4.4-3.6 8-8 8h-48c-4.4 0-8-3.6-8-8V296zm32 440a48.01 48.01 0 010-96 48.01 48.01 0 010 96z"}}]},name:"exclamation-circle",theme:"filled"},GI=function(t,n){return d.createElement(_n,Pe({},t,{ref:n,icon:UI}))},KI=d.forwardRef(GI);function BE(e){return e&&me.isValidElement(e)&&e.type===me.Fragment}const qI=(e,t,n)=>me.isValidElement(e)?me.cloneElement(e,typeof n=="function"?n(e.props||{}):n):t;function kf(e,t){return qI(e,e,t)}const xb=e=>typeof e=="object"&&e!=null&&e.nodeType===1,Sb=(e,t)=>(!t||e!=="hidden")&&e!=="visible"&&e!=="clip",Nh=(e,t)=>{if(e.clientHeight{const i=(o=>{if(!o.ownerDocument||!o.ownerDocument.defaultView)return null;try{return o.ownerDocument.defaultView.frameElement}catch{return null}})(r);return!!i&&(i.clientHeightot||o>e&&a=t&&s>=n?o-e-r:a>t&&sn?a-t+i:0,XI=e=>{const t=e.parentElement;return t??(e.getRootNode().host||null)},Cb=(e,t)=>{var n,r,i,o;if(typeof document>"u")return[];const{scrollMode:a,block:s,inline:l,boundary:c,skipOverflowHiddenElements:u}=t,f=typeof c=="function"?c:A=>A!==c;if(!xb(e))throw new TypeError("Invalid target");const h=document.scrollingElement||document.documentElement,m=[];let y=e;for(;xb(y)&&f(y);){if(y=XI(y),y===h){m.push(y);break}y!=null&&y===document.body&&Nh(y)&&!Nh(document.documentElement)||y!=null&&Nh(y,u)&&m.push(y)}const v=(r=(n=window.visualViewport)==null?void 0:n.width)!=null?r:innerWidth,b=(o=(i=window.visualViewport)==null?void 0:i.height)!=null?o:innerHeight,{scrollX:p,scrollY:g}=window,{height:x,width:S,top:C,right:w,bottom:E,left:_}=e.getBoundingClientRect(),{top:O,right:M,bottom:I,left:k}=(A=>{const P=window.getComputedStyle(A);return{top:parseFloat(P.scrollMarginTop)||0,right:parseFloat(P.scrollMarginRight)||0,bottom:parseFloat(P.scrollMarginBottom)||0,left:parseFloat(P.scrollMarginLeft)||0}})(e);let F=s==="start"||s==="nearest"?C-O:s==="end"?E+I:C+x/2-O+I,j=l==="center"?_+S/2-k+M:l==="end"?w+M:_-k;const B=[];for(let A=0;A=0&&_>=0&&E<=b&&w<=v&&C>=D&&E<=G&&_>=X&&w<=H)return B;const W=getComputedStyle(P),K=parseInt(W.borderLeftWidth,10),ee=parseInt(W.borderTopWidth,10),U=parseInt(W.borderRightWidth,10),Y=parseInt(W.borderBottomWidth,10);let J=0,re=0;const ce="offsetWidth"in P?P.offsetWidth-P.clientWidth-K-U:0,he="offsetHeight"in P?P.offsetHeight-P.clientHeight-ee-Y:0,Se="offsetWidth"in P?P.offsetWidth===0?0:N/P.offsetWidth:0,ie="offsetHeight"in P?P.offsetHeight===0?0:R/P.offsetHeight:0;if(h===P)J=s==="start"?F:s==="end"?F-b:s==="nearest"?mu(g,g+b,b,ee,Y,g+F,g+F+x,x):F-b/2,re=l==="start"?j:l==="center"?j-v/2:l==="end"?j-v:mu(p,p+v,v,K,U,p+j,p+j+S,S),J=Math.max(0,J+g),re=Math.max(0,re+p);else{J=s==="start"?F-D-ee:s==="end"?F-G+Y+he:s==="nearest"?mu(D,G,R,ee,Y+he,F,F+x,x):F-(D+R/2)+he/2,re=l==="start"?j-X-K:l==="center"?j-(X+N/2)+ce/2:l==="end"?j-H+U+ce:mu(X,H,N,K,U+ce,j,j+S,S);const{scrollLeft:de,scrollTop:ye}=P;J=ie===0?0:Math.max(0,Math.min(ye+J/ie,P.scrollHeight-R/ie+he)),re=Se===0?0:Math.max(0,Math.min(de+re/Se,P.scrollWidth-N/Se+ce)),F+=ye-J,j+=de-re}B.push({el:P,top:J,left:re})}return B},YI=e=>e===!1?{block:"end",inline:"nearest"}:(t=>t===Object(t)&&Object.keys(t).length!==0)(e)?e:{block:"start",inline:"nearest"};function QI(e,t){if(!e.isConnected||!(i=>{let o=i;for(;o&&o.parentNode;){if(o.parentNode===document)return!0;o=o.parentNode instanceof ShadowRoot?o.parentNode.host:o.parentNode}return!1})(e))return;const n=(i=>{const o=window.getComputedStyle(i);return{top:parseFloat(o.scrollMarginTop)||0,right:parseFloat(o.scrollMarginRight)||0,bottom:parseFloat(o.scrollMarginBottom)||0,left:parseFloat(o.scrollMarginLeft)||0}})(e);if((i=>typeof i=="object"&&typeof i.behavior=="function")(t))return t.behavior(Cb(e,t));const r=typeof t=="boolean"||t==null?void 0:t.behavior;for(const{el:i,top:o,left:a}of Cb(e,YI(t))){const s=o-n.top+n.bottom,l=a-n.left+n.right;i.scroll({top:s,left:l,behavior:r})}}const Tc=e=>{const[,,,,t]=Wi();return t?`${e}-css-var`:""};var le={MAC_ENTER:3,BACKSPACE:8,TAB:9,NUM_CENTER:12,ENTER:13,SHIFT:16,CTRL:17,ALT:18,PAUSE:19,CAPS_LOCK:20,ESC:27,SPACE:32,PAGE_UP:33,PAGE_DOWN:34,END:35,HOME:36,LEFT:37,UP:38,RIGHT:39,DOWN:40,PRINT_SCREEN:44,INSERT:45,DELETE:46,ZERO:48,ONE:49,TWO:50,THREE:51,FOUR:52,FIVE:53,SIX:54,SEVEN:55,EIGHT:56,NINE:57,QUESTION_MARK:63,A:65,B:66,C:67,D:68,E:69,F:70,G:71,H:72,I:73,J:74,K:75,L:76,M:77,N:78,O:79,P:80,Q:81,R:82,S:83,T:84,U:85,V:86,W:87,X:88,Y:89,Z:90,META:91,WIN_KEY_RIGHT:92,CONTEXT_MENU:93,NUM_ZERO:96,NUM_ONE:97,NUM_TWO:98,NUM_THREE:99,NUM_FOUR:100,NUM_FIVE:101,NUM_SIX:102,NUM_SEVEN:103,NUM_EIGHT:104,NUM_NINE:105,NUM_MULTIPLY:106,NUM_PLUS:107,NUM_MINUS:109,NUM_PERIOD:110,NUM_DIVISION:111,F1:112,F2:113,F3:114,F4:115,F5:116,F6:117,F7:118,F8:119,F9:120,F10:121,F11:122,F12:123,NUMLOCK:144,SEMICOLON:186,DASH:189,EQUALS:187,COMMA:188,PERIOD:190,SLASH:191,APOSTROPHE:192,SINGLE_QUOTE:222,OPEN_SQUARE_BRACKET:219,BACKSLASH:220,CLOSE_SQUARE_BRACKET:221,WIN_KEY:224,MAC_FF_META:224,WIN_IME:229,isTextModifyingKeyEvent:function(t){var n=t.keyCode;if(t.altKey&&!t.ctrlKey||t.metaKey||n>=le.F1&&n<=le.F12)return!1;switch(n){case le.ALT:case le.CAPS_LOCK:case le.CONTEXT_MENU:case le.CTRL:case le.DOWN:case le.END:case le.ESC:case le.HOME:case le.INSERT:case le.LEFT:case le.MAC_FF_META:case le.META:case le.NUMLOCK:case le.NUM_CENTER:case le.PAGE_DOWN:case le.PAGE_UP:case le.PAUSE:case le.PRINT_SCREEN:case le.RIGHT:case le.SHIFT:case le.UP:case le.WIN_KEY:case le.WIN_KEY_RIGHT:return!1;default:return!0}},isCharacterKey:function(t){if(t>=le.ZERO&&t<=le.NINE||t>=le.NUM_ZERO&&t<=le.NUM_MULTIPLY||t>=le.A&&t<=le.Z||window.navigator.userAgent.indexOf("WebKit")!==-1&&t===0)return!0;switch(t){case le.SPACE:case le.QUESTION_MARK:case le.NUM_PLUS:case le.NUM_MINUS:case le.NUM_PERIOD:case le.NUM_DIVISION:case le.SEMICOLON:case le.DASH:case le.EQUALS:case le.COMMA:case le.PERIOD:case le.SLASH:case le.APOSTROPHE:case le.SINGLE_QUOTE:case le.OPEN_SQUARE_BRACKET:case le.BACKSLASH:case le.CLOSE_SQUARE_BRACKET:return!0;default:return!1}}},ZI={icon:{tag:"svg",attrs:{viewBox:"0 0 1024 1024",focusable:"false"},children:[{tag:"path",attrs:{d:"M988 548c-19.9 0-36-16.1-36-36 0-59.4-11.6-117-34.6-171.3a440.45 440.45 0 00-94.3-139.9 437.71 437.71 0 00-139.9-94.3C629 83.6 571.4 72 512 72c-19.9 0-36-16.1-36-36s16.1-36 36-36c69.1 0 136.2 13.5 199.3 40.3C772.3 66 827 103 874 150c47 47 83.9 101.8 109.7 162.7 26.7 63.1 40.2 130.2 40.2 199.3.1 19.9-16 36-35.9 36z"}}]},name:"loading",theme:"outlined"},JI=function(t,n){return d.createElement(_n,Pe({},t,{ref:n,icon:ZI}))},HE=d.forwardRef(JI);const VE=me.createContext(void 0),ko=100,WE={Modal:ko,Drawer:ko,Popover:ko,Popconfirm:ko,Tooltip:ko,Tour:ko,FloatButton:ko},ek={SelectLike:50,Dropdown:50,DatePicker:50,Menu:50,ImagePreview:1};function tk(e){return e in WE}const nk=(e,t)=>{const[,n]=Wi(),r=me.useContext(VE),i=tk(e);let o;if(t!==void 0)o=[t,t];else{let a=r??0;i?a+=(r?0:n.zIndexPopupBase)+WE[e]:a+=ek[e],o=[r===void 0?t:a,a]}return o};function Jn(){Jn=function(){return t};var e,t={},n=Object.prototype,r=n.hasOwnProperty,i=Object.defineProperty||function(A,P,R){A[P]=R.value},o=typeof Symbol=="function"?Symbol:{},a=o.iterator||"@@iterator",s=o.asyncIterator||"@@asyncIterator",l=o.toStringTag||"@@toStringTag";function c(A,P,R){return Object.defineProperty(A,P,{value:R,enumerable:!0,configurable:!0,writable:!0}),A[P]}try{c({},"")}catch{c=function(R,N,D){return R[N]=D}}function u(A,P,R,N){var D=P&&P.prototype instanceof p?P:p,H=Object.create(D.prototype),G=new j(N||[]);return i(H,"_invoke",{value:M(A,R,G)}),H}function f(A,P,R){try{return{type:"normal",arg:A.call(P,R)}}catch(N){return{type:"throw",arg:N}}}t.wrap=u;var h="suspendedStart",m="suspendedYield",y="executing",v="completed",b={};function p(){}function g(){}function x(){}var S={};c(S,a,function(){return this});var C=Object.getPrototypeOf,w=C&&C(C(B([])));w&&w!==n&&r.call(w,a)&&(S=w);var E=x.prototype=p.prototype=Object.create(S);function _(A){["next","throw","return"].forEach(function(P){c(A,P,function(R){return this._invoke(P,R)})})}function O(A,P){function R(D,H,G,X){var W=f(A[D],A,H);if(W.type!=="throw"){var K=W.arg,ee=K.value;return ee&&je(ee)=="object"&&r.call(ee,"__await")?P.resolve(ee.__await).then(function(U){R("next",U,G,X)},function(U){R("throw",U,G,X)}):P.resolve(ee).then(function(U){K.value=U,G(K)},function(U){return R("throw",U,G,X)})}X(W.arg)}var N;i(this,"_invoke",{value:function(H,G){function X(){return new P(function(W,K){R(H,G,W,K)})}return N=N?N.then(X,X):X()}})}function M(A,P,R){var N=h;return function(D,H){if(N===y)throw Error("Generator is already running");if(N===v){if(D==="throw")throw H;return{value:e,done:!0}}for(R.method=D,R.arg=H;;){var G=R.delegate;if(G){var X=I(G,R);if(X){if(X===b)continue;return X}}if(R.method==="next")R.sent=R._sent=R.arg;else if(R.method==="throw"){if(N===h)throw N=v,R.arg;R.dispatchException(R.arg)}else R.method==="return"&&R.abrupt("return",R.arg);N=y;var W=f(A,P,R);if(W.type==="normal"){if(N=R.done?v:m,W.arg===b)continue;return{value:W.arg,done:R.done}}W.type==="throw"&&(N=v,R.method="throw",R.arg=W.arg)}}}function I(A,P){var R=P.method,N=A.iterator[R];if(N===e)return P.delegate=null,R==="throw"&&A.iterator.return&&(P.method="return",P.arg=e,I(A,P),P.method==="throw")||R!=="return"&&(P.method="throw",P.arg=new TypeError("The iterator does not provide a '"+R+"' method")),b;var D=f(N,A.iterator,P.arg);if(D.type==="throw")return P.method="throw",P.arg=D.arg,P.delegate=null,b;var H=D.arg;return H?H.done?(P[A.resultName]=H.value,P.next=A.nextLoc,P.method!=="return"&&(P.method="next",P.arg=e),P.delegate=null,b):H:(P.method="throw",P.arg=new TypeError("iterator result is not an object"),P.delegate=null,b)}function k(A){var P={tryLoc:A[0]};1 in A&&(P.catchLoc=A[1]),2 in A&&(P.finallyLoc=A[2],P.afterLoc=A[3]),this.tryEntries.push(P)}function F(A){var P=A.completion||{};P.type="normal",delete P.arg,A.completion=P}function j(A){this.tryEntries=[{tryLoc:"root"}],A.forEach(k,this),this.reset(!0)}function B(A){if(A||A===""){var P=A[a];if(P)return P.call(A);if(typeof A.next=="function")return A;if(!isNaN(A.length)){var R=-1,N=function D(){for(;++R=0;--D){var H=this.tryEntries[D],G=H.completion;if(H.tryLoc==="root")return N("end");if(H.tryLoc<=this.prev){var X=r.call(H,"catchLoc"),W=r.call(H,"finallyLoc");if(X&&W){if(this.prev=0;--N){var D=this.tryEntries[N];if(D.tryLoc<=this.prev&&r.call(D,"finallyLoc")&&this.prev=0;--R){var N=this.tryEntries[R];if(N.finallyLoc===P)return this.complete(N.completion,N.afterLoc),F(N),b}},catch:function(P){for(var R=this.tryEntries.length-1;R>=0;--R){var N=this.tryEntries[R];if(N.tryLoc===P){var D=N.completion;if(D.type==="throw"){var H=D.arg;F(N)}return H}}throw Error("illegal catch attempt")},delegateYield:function(P,R,N){return this.delegate={iterator:B(P),resultName:R,nextLoc:N},this.method==="next"&&(this.arg=e),b}},t}function wb(e,t,n,r,i,o,a){try{var s=e[o](a),l=s.value}catch(c){return void n(c)}s.done?t(l):Promise.resolve(l).then(r,i)}function pa(e){return function(){var t=this,n=arguments;return new Promise(function(r,i){var o=e.apply(t,n);function a(l){wb(o,r,i,a,s,"next",l)}function s(l){wb(o,r,i,a,s,"throw",l)}a(void 0)})}}var Rc=V({},UP),rk=Rc.version,ik=Rc.render,ok=Rc.unmountComponentAtNode,Nf;try{var ak=Number((rk||"").split(".")[0]);ak>=18&&(Nf=Rc.createRoot)}catch{}function Eb(e){var t=Rc.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;t&&je(t)==="object"&&(t.usingClientEntryPoint=e)}var zd="__rc_react_root__";function sk(e,t){Eb(!0);var n=t[zd]||Nf(t);Eb(!1),n.render(e),t[zd]=n}function lk(e,t){ik(e,t)}function ck(e,t){if(Nf){sk(e,t);return}lk(e,t)}function uk(e){return Nm.apply(this,arguments)}function Nm(){return Nm=pa(Jn().mark(function e(t){return Jn().wrap(function(r){for(;;)switch(r.prev=r.next){case 0:return r.abrupt("return",Promise.resolve().then(function(){var i;(i=t[zd])===null||i===void 0||i.unmount(),delete t[zd]}));case 1:case"end":return r.stop()}},e)})),Nm.apply(this,arguments)}function dk(e){ok(e)}function fk(e){return Fm.apply(this,arguments)}function Fm(){return Fm=pa(Jn().mark(function e(t){return Jn().wrap(function(r){for(;;)switch(r.prev=r.next){case 0:if(Nf===void 0){r.next=2;break}return r.abrupt("return",uk(t));case 2:dk(t);case 3:case"end":return r.stop()}},e)})),Fm.apply(this,arguments)}const Fh=()=>({height:0,opacity:0}),_b=e=>{const{scrollHeight:t}=e;return{height:t,opacity:1}},hk=e=>({height:e?e.offsetHeight:0}),Ah=(e,t)=>(t==null?void 0:t.deadline)===!0||t.propertyName==="height",$b=function(){return{motionName:`${arguments.length>0&&arguments[0]!==void 0?arguments[0]:cc}-motion-collapse`,onAppearStart:Fh,onEnterStart:Fh,onAppearActive:_b,onEnterActive:_b,onLeaveStart:hk,onLeaveActive:Fh,onAppearEnd:Ah,onEnterEnd:Ah,onLeaveEnd:Ah,motionDeadline:500}},UE=(e,t,n)=>n!==void 0?n:`${e}-${t}`,Ff=function(e){if(!e)return!1;if(e instanceof Element){if(e.offsetParent)return!0;if(e.getBBox){var t=e.getBBox(),n=t.width,r=t.height;if(n||r)return!0}if(e.getBoundingClientRect){var i=e.getBoundingClientRect(),o=i.width,a=i.height;if(o||a)return!0}}return!1},gk=e=>{const{componentCls:t,colorPrimary:n}=e;return{[t]:{position:"absolute",background:"transparent",pointerEvents:"none",boxSizing:"border-box",color:`var(--wave-color, ${n})`,boxShadow:"0 0 0 0 currentcolor",opacity:.2,"&.wave-motion-appear":{transition:[`box-shadow 0.4s ${e.motionEaseOutCirc}`,`opacity 2s ${e.motionEaseOutCirc}`].join(","),"&-active":{boxShadow:"0 0 0 6px currentcolor",opacity:0},"&.wave-quick":{transition:[`box-shadow ${e.motionDurationSlow} ${e.motionEaseInOut}`,`opacity ${e.motionDurationSlow} ${e.motionEaseInOut}`].join(",")}}}}},mk=WR("Wave",e=>[gk(e)]),GE=`${cc}-wave-target`;function Lh(e){return e&&e!=="#fff"&&e!=="#ffffff"&&e!=="rgb(255, 255, 255)"&&e!=="rgba(255, 255, 255, 1)"&&!/rgba\((?:\d*, ){3}0\)/.test(e)&&e!=="transparent"}function pk(e){const{borderTopColor:t,borderColor:n,backgroundColor:r}=getComputedStyle(e);return Lh(t)?t:Lh(n)?n:Lh(r)?r:null}function Dh(e){return Number.isNaN(e)?0:e}const vk=e=>{const{className:t,target:n,component:r}=e,i=d.useRef(null),[o,a]=d.useState(null),[s,l]=d.useState([]),[c,u]=d.useState(0),[f,h]=d.useState(0),[m,y]=d.useState(0),[v,b]=d.useState(0),[p,g]=d.useState(!1),x={left:c,top:f,width:m,height:v,borderRadius:s.map(w=>`${w}px`).join(" ")};o&&(x["--wave-color"]=o);function S(){const w=getComputedStyle(n);a(pk(n));const E=w.position==="static",{borderLeftWidth:_,borderTopWidth:O}=w;u(E?n.offsetLeft:Dh(-parseFloat(_))),h(E?n.offsetTop:Dh(-parseFloat(O))),y(n.offsetWidth),b(n.offsetHeight);const{borderTopLeftRadius:M,borderTopRightRadius:I,borderBottomLeftRadius:k,borderBottomRightRadius:F}=w;l([M,I,F,k].map(j=>Dh(parseFloat(j))))}if(d.useEffect(()=>{if(n){const w=Ft(()=>{S(),g(!0)});let E;return typeof ResizeObserver<"u"&&(E=new ResizeObserver(S),E.observe(n)),()=>{Ft.cancel(w),E==null||E.disconnect()}}},[]),!p)return null;const C=(r==="Checkbox"||r==="Radio")&&(n==null?void 0:n.classList.contains(GE));return d.createElement(To,{visible:!0,motionAppear:!0,motionName:"wave-motion",motionDeadline:5e3,onAppearEnd:(w,E)=>{var _;if(E.deadline||E.propertyName==="opacity"){const O=(_=i.current)===null||_===void 0?void 0:_.parentElement;fk(O).then(()=>{O==null||O.remove()})}return!1}},(w,E)=>{let{className:_}=w;return d.createElement("div",{ref:Si(i,E),className:te(t,_,{"wave-quick":C}),style:x})})},yk=(e,t)=>{var n;const{component:r}=t;if(r==="Checkbox"&&!(!((n=e.querySelector("input"))===null||n===void 0)&&n.checked))return;const i=document.createElement("div");i.style.position="absolute",i.style.left="0px",i.style.top="0px",e==null||e.insertBefore(i,e==null?void 0:e.firstChild),ck(d.createElement(vk,Object.assign({},t,{target:e})),i)},bk=(e,t,n)=>{const{wave:r}=d.useContext(bt),[,i,o]=Wi(),a=Cn(c=>{const u=e.current;if(r!=null&&r.disabled||!u)return;const f=u.querySelector(`.${GE}`)||u,{showEffect:h}=r||{};(h||yk)(f,{className:t,token:i,component:n,event:c,hashId:o})}),s=d.useRef();return c=>{Ft.cancel(s.current),s.current=Ft(()=>{a(c)})}},xk=e=>{const{children:t,disabled:n,component:r}=e,{getPrefixCls:i}=d.useContext(bt),o=d.useRef(null),a=i("wave"),[,s]=mk(a),l=bk(o,te(a,s),r);if(me.useEffect(()=>{const u=o.current;if(!u||u.nodeType!==1||n)return;const f=h=>{!Ff(h.target)||!u.getAttribute||u.getAttribute("disabled")||u.disabled||u.className.includes("disabled")||u.className.includes("-leave")||l(h)};return u.addEventListener("click",f,!0),()=>{u.removeEventListener("click",f,!0)}},[n]),!me.isValidElement(t))return t??null;const c=Mo(t)?Si(t.ref,o):o;return kf(t,{ref:c})},Ic=e=>{const t=me.useContext(ca);return me.useMemo(()=>e?typeof e=="string"?e??t:e instanceof Function?e(t):t:t,[e,t])},KE=d.createContext(null),qE=(e,t)=>{const n=d.useContext(KE),r=d.useMemo(()=>{if(!n)return"";const{compactDirection:i,isFirstItem:o,isLastItem:a}=n,s=i==="vertical"?"-vertical-":"-";return te(`${e}-compact${s}item`,{[`${e}-compact${s}first-item`]:o,[`${e}-compact${s}last-item`]:a,[`${e}-compact${s}item-rtl`]:t==="rtl"})},[e,t,n]);return{compactSize:n==null?void 0:n.compactSize,compactDirection:n==null?void 0:n.compactDirection,compactItemClassnames:r}},Sk=e=>{let{children:t}=e;return d.createElement(KE.Provider,{value:null},t)};var Ck=function(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 i=0,r=Object.getOwnPropertySymbols(e);i{const{getPrefixCls:t,direction:n}=d.useContext(bt),{prefixCls:r,size:i,className:o}=e,a=Ck(e,["prefixCls","size","className"]),s=t("btn-group",r),[,,l]=Wi();let c="";switch(i){case"large":c="lg";break;case"small":c="sm";break}const u=te(s,{[`${s}-${c}`]:c,[`${s}-rtl`]:n==="rtl"},o,l);return d.createElement(XE.Provider,{value:i},d.createElement("div",Object.assign({},a,{className:u})))},Ob=/^[\u4E00-\u9FA5]{2}$/,Am=Ob.test.bind(Ob);function Pb(e){return typeof e=="string"}function zh(e){return e==="text"||e==="link"}function Ek(e,t){if(e==null)return;const n=t?" ":"";return typeof e!="string"&&typeof e!="number"&&Pb(e.type)&&Am(e.props.children)?kf(e,{children:e.props.children.split("").join(n)}):Pb(e)?Am(e)?me.createElement("span",null,e.split("").join(n)):me.createElement("span",null,e):BE(e)?me.createElement("span",null,e):e}function _k(e,t){let n=!1;const r=[];return me.Children.forEach(e,i=>{const o=typeof i,a=o==="string"||o==="number";if(n&&a){const s=r.length-1,l=r[s];r[s]=`${l}${i}`}else r.push(i);n=a}),me.Children.map(r,i=>Ek(i,t))}const YE=d.forwardRef((e,t)=>{const{className:n,style:r,children:i,prefixCls:o}=e,a=te(`${o}-icon`,n);return me.createElement("span",{ref:t,className:a,style:r},i)}),Mb=d.forwardRef((e,t)=>{const{prefixCls:n,className:r,style:i,iconClassName:o}=e,a=te(`${n}-loading-icon`,r);return me.createElement(YE,{prefixCls:n,className:a,style:i,ref:t},me.createElement(HE,{className:o}))}),jh=()=>({width:0,opacity:0,transform:"scale(0)"}),Bh=e=>({width:e.scrollWidth,opacity:1,transform:"scale(1)"}),$k=e=>{const{prefixCls:t,loading:n,existIcon:r,className:i,style:o}=e,a=!!n;return r?me.createElement(Mb,{prefixCls:t,className:i,style:o}):me.createElement(To,{visible:a,motionName:`${t}-loading-icon-motion`,motionLeave:a,removeOnLeave:!0,onAppearStart:jh,onAppearActive:Bh,onEnterStart:jh,onEnterActive:Bh,onLeaveStart:Bh,onLeaveActive:jh},(s,l)=>{let{className:c,style:u}=s;return me.createElement(Mb,{prefixCls:t,className:i,style:Object.assign(Object.assign({},o),u),ref:l,iconClassName:c})})},Tb=(e,t)=>({[`> span, > ${e}`]:{"&:not(:last-child)":{[`&, & > ${e}`]:{"&:not(:disabled)":{borderInlineEndColor:t}}},"&:not(:first-child)":{[`&, & > ${e}`]:{"&:not(:disabled)":{borderInlineStartColor:t}}}}}),Ok=e=>{const{componentCls:t,fontSize:n,lineWidth:r,groupBorderColor:i,colorErrorHover:o}=e;return{[`${t}-group`]:[{position:"relative",display:"inline-flex",[`> span, > ${t}`]:{"&:not(:last-child)":{[`&, & > ${t}`]:{borderStartEndRadius:0,borderEndEndRadius:0}},"&:not(:first-child)":{marginInlineStart:e.calc(r).mul(-1).equal(),[`&, & > ${t}`]:{borderStartStartRadius:0,borderEndStartRadius:0}}},[t]:{position:"relative",zIndex:1,"&:hover, &:focus, &:active":{zIndex:2},"&[disabled]":{zIndex:0}},[`${t}-icon-only`]:{fontSize:n}},Tb(`${t}-primary`,i),Tb(`${t}-danger`,o)]}},Pn=Math.round;function Hh(e,t){const n=e.replace(/^[^(]*\((.*)/,"$1").replace(/\).*/,"").match(/\d*\.?\d+%?/g)||[],r=n.map(i=>parseFloat(i));for(let i=0;i<3;i+=1)r[i]=t(r[i]||0,n[i]||"",i);return n[3]?r[3]=n[3].includes("%")?r[3]/100:r[3]:r[3]=1,r}const Rb=(e,t,n)=>n===0?e:e/100;function Ks(e,t){const n=t||255;return e>n?n:e<0?0:e}class Af{constructor(t){z(this,"isValid",!0),z(this,"r",0),z(this,"g",0),z(this,"b",0),z(this,"a",1),z(this,"_h",void 0),z(this,"_s",void 0),z(this,"_l",void 0),z(this,"_v",void 0),z(this,"_max",void 0),z(this,"_min",void 0),z(this,"_brightness",void 0);function n(i){return i[0]in t&&i[1]in t&&i[2]in t}if(t)if(typeof t=="string"){let o=function(a){return i.startsWith(a)};var r=o;const i=t.trim();/^#?[A-F\d]{3,8}$/i.test(i)?this.fromHexString(i):o("rgb")?this.fromRgbString(i):o("hsl")?this.fromHslString(i):(o("hsv")||o("hsb"))&&this.fromHsvString(i)}else if(t instanceof Af)this.r=t.r,this.g=t.g,this.b=t.b,this.a=t.a,this._h=t._h,this._s=t._s,this._l=t._l,this._v=t._v;else if(n("rgb"))this.r=Ks(t.r),this.g=Ks(t.g),this.b=Ks(t.b),this.a=typeof t.a=="number"?Ks(t.a,1):1;else if(n("hsl"))this.fromHsl(t);else if(n("hsv"))this.fromHsv(t);else throw new Error("@ant-design/fast-color: unsupported input "+JSON.stringify(t))}setR(t){return this._sc("r",t)}setG(t){return this._sc("g",t)}setB(t){return this._sc("b",t)}setA(t){return this._sc("a",t,1)}setHue(t){const n=this.toHsv();return n.h=t,this._c(n)}getLuminance(){function t(o){const a=o/255;return a<=.03928?a/12.92:Math.pow((a+.055)/1.055,2.4)}const n=t(this.r),r=t(this.g),i=t(this.b);return .2126*n+.7152*r+.0722*i}getHue(){if(typeof this._h>"u"){const t=this.getMax()-this.getMin();t===0?this._h=0:this._h=Pn(60*(this.r===this.getMax()?(this.g-this.b)/t+(this.g"u"){const t=this.getMax()-this.getMin();t===0?this._s=0:this._s=t/this.getMax()}return this._s}getLightness(){return typeof this._l>"u"&&(this._l=(this.getMax()+this.getMin())/510),this._l}getValue(){return typeof this._v>"u"&&(this._v=this.getMax()/255),this._v}getBrightness(){return typeof this._brightness>"u"&&(this._brightness=(this.r*299+this.g*587+this.b*114)/1e3),this._brightness}darken(t=10){const n=this.getHue(),r=this.getSaturation();let i=this.getLightness()-t/100;return i<0&&(i=0),this._c({h:n,s:r,l:i,a:this.a})}lighten(t=10){const n=this.getHue(),r=this.getSaturation();let i=this.getLightness()+t/100;return i>1&&(i=1),this._c({h:n,s:r,l:i,a:this.a})}mix(t,n=50){const r=this._c(t),i=n/100,o=s=>(r[s]-this[s])*i+this[s],a={r:Pn(o("r")),g:Pn(o("g")),b:Pn(o("b")),a:Pn(o("a")*100)/100};return this._c(a)}tint(t=10){return this.mix({r:255,g:255,b:255,a:1},t)}shade(t=10){return this.mix({r:0,g:0,b:0,a:1},t)}onBackground(t){const n=this._c(t),r=this.a+n.a*(1-this.a),i=o=>Pn((this[o]*this.a+n[o]*n.a*(1-this.a))/r);return this._c({r:i("r"),g:i("g"),b:i("b"),a:r})}isDark(){return this.getBrightness()<128}isLight(){return this.getBrightness()>=128}equals(t){return this.r===t.r&&this.g===t.g&&this.b===t.b&&this.a===t.a}clone(){return this._c(this)}toHexString(){let t="#";const n=(this.r||0).toString(16);t+=n.length===2?n:"0"+n;const r=(this.g||0).toString(16);t+=r.length===2?r:"0"+r;const i=(this.b||0).toString(16);if(t+=i.length===2?i:"0"+i,typeof this.a=="number"&&this.a>=0&&this.a<1){const o=Pn(this.a*255).toString(16);t+=o.length===2?o:"0"+o}return t}toHsl(){return{h:this.getHue(),s:this.getSaturation(),l:this.getLightness(),a:this.a}}toHslString(){const t=this.getHue(),n=Pn(this.getSaturation()*100),r=Pn(this.getLightness()*100);return this.a!==1?`hsla(${t},${n}%,${r}%,${this.a})`:`hsl(${t},${n}%,${r}%)`}toHsv(){return{h:this.getHue(),s:this.getSaturation(),v:this.getValue(),a:this.a}}toRgb(){return{r:this.r,g:this.g,b:this.b,a:this.a}}toRgbString(){return this.a!==1?`rgba(${this.r},${this.g},${this.b},${this.a})`:`rgb(${this.r},${this.g},${this.b})`}toString(){return this.toRgbString()}_sc(t,n,r){const i=this.clone();return i[t]=Ks(n,r),i}_c(t){return new this.constructor(t)}getMax(){return typeof this._max>"u"&&(this._max=Math.max(this.r,this.g,this.b)),this._max}getMin(){return typeof this._min>"u"&&(this._min=Math.min(this.r,this.g,this.b)),this._min}fromHexString(t){const n=t.replace("#","");function r(i,o){return parseInt(n[i]+n[o||i],16)}n.length<6?(this.r=r(0),this.g=r(1),this.b=r(2),this.a=n[3]?r(3)/255:1):(this.r=r(0,1),this.g=r(2,3),this.b=r(4,5),this.a=n[6]?r(6,7)/255:1)}fromHsl({h:t,s:n,l:r,a:i}){if(this._h=t%360,this._s=n,this._l=r,this.a=typeof i=="number"?i:1,n<=0){const h=Pn(r*255);this.r=h,this.g=h,this.b=h}let o=0,a=0,s=0;const l=t/60,c=(1-Math.abs(2*r-1))*n,u=c*(1-Math.abs(l%2-1));l>=0&&l<1?(o=c,a=u):l>=1&&l<2?(o=u,a=c):l>=2&&l<3?(a=c,s=u):l>=3&&l<4?(a=u,s=c):l>=4&&l<5?(o=u,s=c):l>=5&&l<6&&(o=c,s=u);const f=r-c/2;this.r=Pn((o+f)*255),this.g=Pn((a+f)*255),this.b=Pn((s+f)*255)}fromHsv({h:t,s:n,v:r,a:i}){this._h=t%360,this._s=n,this._v=r,this.a=typeof i=="number"?i:1;const o=Pn(r*255);if(this.r=o,this.g=o,this.b=o,n<=0)return;const a=t/60,s=Math.floor(a),l=a-s,c=Pn(r*(1-n)*255),u=Pn(r*(1-n*l)*255),f=Pn(r*(1-n*(1-l))*255);switch(s){case 0:this.g=f,this.b=c;break;case 1:this.r=u,this.b=c;break;case 2:this.r=c,this.b=f;break;case 3:this.r=c,this.g=u;break;case 4:this.r=f,this.g=c;break;case 5:default:this.g=c,this.b=u;break}}fromHsvString(t){const n=Hh(t,Rb);this.fromHsv({h:n[0],s:n[1],v:n[2],a:n[3]})}fromHslString(t){const n=Hh(t,Rb);this.fromHsl({h:n[0],s:n[1],l:n[2],a:n[3]})}fromRgbString(t){const n=Hh(t,(r,i)=>i.includes("%")?Pn(r/100*255):r);this.r=n[0],this.g=n[1],this.b=n[2],this.a=n[3]}}var Pk=["b"],Mk=["v"],Vh=function(t){return Math.round(Number(t||0))},Tk=function(t){if(t instanceof Af)return t;if(t&&je(t)==="object"&&"h"in t&&"b"in t){var n=t,r=n.b,i=st(n,Pk);return V(V({},i),{},{v:r})}return typeof t=="string"&&/hsb/.test(t)?t.replace(/hsb/,"hsv"):t},uc=function(e){Hi(n,e);var t=Vi(n);function n(r){return hn(this,n),t.call(this,Tk(r))}return gn(n,[{key:"toHsbString",value:function(){var i=this.toHsb(),o=Vh(i.s*100),a=Vh(i.b*100),s=Vh(i.h),l=i.a,c="hsb(".concat(s,", ").concat(o,"%, ").concat(a,"%)"),u="hsba(".concat(s,", ").concat(o,"%, ").concat(a,"%, ").concat(l.toFixed(l===0?0:2),")");return l===1?c:u}},{key:"toHsb",value:function(){var i=this.toHsv(),o=i.v,a=st(i,Mk);return V(V({},a),{},{b:o,a:this.a})}}]),n}(Af),Rk=function(t){return t instanceof uc?t:new uc(t)};Rk("#1677ff");const Ik=(e,t)=>(e==null?void 0:e.replace(/[^\w/]/g,"").slice(0,t?8:6))||"",kk=(e,t)=>e?Ik(e,t):"";let Nk=function(){function e(t){hn(this,e);var n;if(this.cleared=!1,t instanceof e){this.metaColor=t.metaColor.clone(),this.colors=(n=t.colors)===null||n===void 0?void 0:n.map(i=>({color:new e(i.color),percent:i.percent})),this.cleared=t.cleared;return}const r=Array.isArray(t);r&&t.length?(this.colors=t.map(i=>{let{color:o,percent:a}=i;return{color:new e(o),percent:a}}),this.metaColor=new uc(this.colors[0].color.metaColor)):this.metaColor=new uc(r?"":t),(!t||r&&!this.colors)&&(this.metaColor=this.metaColor.setA(0),this.cleared=!0)}return gn(e,[{key:"toHsb",value:function(){return this.metaColor.toHsb()}},{key:"toHsbString",value:function(){return this.metaColor.toHsbString()}},{key:"toHex",value:function(){return kk(this.toHexString(),this.metaColor.a<1)}},{key:"toHexString",value:function(){return this.metaColor.toHexString()}},{key:"toRgb",value:function(){return this.metaColor.toRgb()}},{key:"toRgbString",value:function(){return this.metaColor.toRgbString()}},{key:"isGradient",value:function(){return!!this.colors&&!this.cleared}},{key:"getColors",value:function(){return this.colors||[{color:this,percent:0}]}},{key:"toCssString",value:function(){const{colors:n}=this;return n?`linear-gradient(90deg, ${n.map(i=>`${i.color.toRgbString()} ${i.percent}%`).join(", ")})`:this.metaColor.toRgbString()}},{key:"equals",value:function(n){return!n||this.isGradient()!==n.isGradient()?!1:this.isGradient()?this.colors.length===n.colors.length&&this.colors.every((r,i)=>{const o=n.colors[i];return r.percent===o.percent&&r.color.equals(o.color)}):this.toHexString()===n.toHexString()}}])}();var Fk={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M765.7 486.8L314.9 134.7A7.97 7.97 0 00302 141v77.3c0 4.9 2.3 9.6 6.1 12.6l360 281.1-360 281.1c-3.9 3-6.1 7.7-6.1 12.6V883c0 6.7 7.7 10.4 12.9 6.3l450.8-352.1a31.96 31.96 0 000-50.4z"}}]},name:"right",theme:"outlined"},Ak=function(t,n){return d.createElement(_n,Pe({},t,{ref:n,icon:Fk}))},Ib=d.forwardRef(Ak);const Lk=e=>({[e.componentCls]:{[`${e.antCls}-motion-collapse-legacy`]:{overflow:"hidden","&-active":{transition:`height ${e.motionDurationMid} ${e.motionEaseInOut}, opacity ${e.motionDurationMid} ${e.motionEaseInOut} !important`}},[`${e.antCls}-motion-collapse`]:{overflow:"hidden",transition:`height ${e.motionDurationMid} ${e.motionEaseInOut}, opacity ${e.motionDurationMid} ${e.motionEaseInOut} !important`}}}),Dk=e=>({animationDuration:e,animationFillMode:"both"}),zk=e=>({animationDuration:e,animationFillMode:"both"}),QE=function(e,t,n,r){const o=(arguments.length>4&&arguments[4]!==void 0?arguments[4]:!1)?"&":"";return{[` ${o}${e}-enter, @@ -161,7 +161,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho `]:{transform:"scale(0)",transformOrigin:"0% 0%",opacity:0,animationTimingFunction:e.motionEaseOutQuint,"&-prepare":{transform:"scale(1)"}},[`${r}-leave`]:{animationTimingFunction:e.motionEaseInQuint}}]},kv=new mn("antZoomIn",{"0%":{transform:"scale(0.2)",opacity:0},"100%":{transform:"scale(1)",opacity:1}}),Xk=new mn("antZoomOut",{"0%":{transform:"scale(1)"},"100%":{transform:"scale(0.2)",opacity:0}}),Nb=new mn("antZoomBigIn",{"0%":{transform:"scale(0.8)",opacity:0},"100%":{transform:"scale(1)",opacity:1}}),Fb=new mn("antZoomBigOut",{"0%":{transform:"scale(1)"},"100%":{transform:"scale(0.8)",opacity:0}}),Yk=new mn("antZoomUpIn",{"0%":{transform:"scale(0.8)",transformOrigin:"50% 0%",opacity:0},"100%":{transform:"scale(1)",transformOrigin:"50% 0%"}}),Qk=new mn("antZoomUpOut",{"0%":{transform:"scale(1)",transformOrigin:"50% 0%"},"100%":{transform:"scale(0.8)",transformOrigin:"50% 0%",opacity:0}}),Zk=new mn("antZoomLeftIn",{"0%":{transform:"scale(0.8)",transformOrigin:"0% 50%",opacity:0},"100%":{transform:"scale(1)",transformOrigin:"0% 50%"}}),Jk=new mn("antZoomLeftOut",{"0%":{transform:"scale(1)",transformOrigin:"0% 50%"},"100%":{transform:"scale(0.8)",transformOrigin:"0% 50%",opacity:0}}),eN=new mn("antZoomRightIn",{"0%":{transform:"scale(0.8)",transformOrigin:"100% 50%",opacity:0},"100%":{transform:"scale(1)",transformOrigin:"100% 50%"}}),tN=new mn("antZoomRightOut",{"0%":{transform:"scale(1)",transformOrigin:"100% 50%"},"100%":{transform:"scale(0.8)",transformOrigin:"100% 50%",opacity:0}}),nN=new mn("antZoomDownIn",{"0%":{transform:"scale(0.8)",transformOrigin:"50% 100%",opacity:0},"100%":{transform:"scale(1)",transformOrigin:"50% 100%"}}),rN=new mn("antZoomDownOut",{"0%":{transform:"scale(1)",transformOrigin:"50% 100%"},"100%":{transform:"scale(0.8)",transformOrigin:"50% 100%",opacity:0}}),iN={zoom:{inKeyframes:kv,outKeyframes:Xk},"zoom-big":{inKeyframes:Nb,outKeyframes:Fb},"zoom-big-fast":{inKeyframes:Nb,outKeyframes:Fb},"zoom-left":{inKeyframes:Zk,outKeyframes:Jk},"zoom-right":{inKeyframes:eN,outKeyframes:tN},"zoom-up":{inKeyframes:Yk,outKeyframes:Qk},"zoom-down":{inKeyframes:nN,outKeyframes:rN}},oN=(e,t)=>{const{antCls:n}=e,r=`${n}-${t}`,{inKeyframes:i,outKeyframes:o}=iN[t];return[QE(r,i,o,e.motionDurationFast),{[` ${r}-enter, ${r}-appear - `]:{transform:"scale(0)",opacity:0,animationTimingFunction:e.motionEaseOutCirc,"&-prepare":{transform:"none"}},[`${r}-leave`]:{animationTimingFunction:e.motionEaseInOutCirc}}]},aN=(e,t)=>{const{r:n,g:r,b:i,a:o}=e.toRgb(),a=new uc(e.toRgbString()).onBackground(t).toHsv();return o<=.5?a.v>.5:n*.299+r*.587+i*.114>192},ZE=e=>{const{paddingInline:t,onlyIconSize:n,paddingBlock:r}=e;return An(e,{buttonPaddingHorizontal:t,buttonPaddingVertical:r,buttonIconOnlyFontSize:n})},JE=e=>{var t,n,r,i,o,a;const s=(t=e.contentFontSize)!==null&&t!==void 0?t:e.fontSize,l=(n=e.contentFontSizeSM)!==null&&n!==void 0?n:e.fontSize,c=(r=e.contentFontSizeLG)!==null&&r!==void 0?r:e.fontSizeLG,u=(i=e.contentLineHeight)!==null&&i!==void 0?i:ed(s),f=(o=e.contentLineHeightSM)!==null&&o!==void 0?o:ed(l),h=(a=e.contentLineHeightLG)!==null&&a!==void 0?a:ed(c),m=aN(new Nk(e.colorBgSolid),"#fff")?"#000":"#fff";return{fontWeight:400,defaultShadow:`0 ${e.controlOutlineWidth}px 0 ${e.controlTmpOutline}`,primaryShadow:`0 ${e.controlOutlineWidth}px 0 ${e.controlOutline}`,dangerShadow:`0 ${e.controlOutlineWidth}px 0 ${e.colorErrorOutline}`,primaryColor:e.colorTextLightSolid,dangerColor:e.colorTextLightSolid,borderColorDisabled:e.colorBorder,defaultGhostColor:e.colorBgContainer,ghostBg:"transparent",defaultGhostBorderColor:e.colorBgContainer,paddingInline:e.paddingContentHorizontal-e.lineWidth,paddingInlineLG:e.paddingContentHorizontal-e.lineWidth,paddingInlineSM:8-e.lineWidth,onlyIconSize:e.fontSizeLG,onlyIconSizeSM:e.fontSizeLG-2,onlyIconSizeLG:e.fontSizeLG+2,groupBorderColor:e.colorPrimaryHover,linkHoverBg:"transparent",textTextColor:e.colorText,textTextHoverColor:e.colorText,textTextActiveColor:e.colorText,textHoverBg:e.colorBgTextHover,defaultColor:e.colorText,defaultBg:e.colorBgContainer,defaultBorderColor:e.colorBorder,defaultBorderColorDisabled:e.colorBorder,defaultHoverBg:e.colorBgContainer,defaultHoverColor:e.colorPrimaryHover,defaultHoverBorderColor:e.colorPrimaryHover,defaultActiveBg:e.colorBgContainer,defaultActiveColor:e.colorPrimaryActive,defaultActiveBorderColor:e.colorPrimaryActive,solidTextColor:m,contentFontSize:s,contentFontSizeSM:l,contentFontSizeLG:c,contentLineHeight:u,contentLineHeightSM:f,contentLineHeightLG:h,paddingBlock:Math.max((e.controlHeight-s*u)/2-e.lineWidth,0),paddingBlockSM:Math.max((e.controlHeightSM-l*f)/2-e.lineWidth,0),paddingBlockLG:Math.max((e.controlHeightLG-c*h)/2-e.lineWidth,0)}},sN=e=>{const{componentCls:t,iconCls:n,fontWeight:r}=e;return{[t]:{outline:"none",position:"relative",display:"inline-flex",gap:e.marginXS,alignItems:"center",justifyContent:"center",fontWeight:r,whiteSpace:"nowrap",textAlign:"center",backgroundImage:"none",background:"transparent",border:`${Z(e.lineWidth)} ${e.lineType} transparent`,cursor:"pointer",transition:`all ${e.motionDurationMid} ${e.motionEaseInOut}`,userSelect:"none",touchAction:"manipulation",color:e.colorText,"&:disabled > *":{pointerEvents:"none"},"> span":{display:"inline-block"},[`${t}-icon`]:{lineHeight:1},"> a":{color:"currentColor"},"&:not(:disabled)":Object.assign({},Rv(e)),[`&${t}-two-chinese-chars::first-letter`]:{letterSpacing:"0.34em"},[`&${t}-two-chinese-chars > *:not(${n})`]:{marginInlineEnd:"-0.34em",letterSpacing:"0.34em"},"&-icon-end":{flexDirection:"row-reverse"}}}},e_=(e,t,n)=>({[`&:not(:disabled):not(${e}-disabled)`]:{"&:hover":t,"&:active":n}}),lN=e=>({minWidth:e.controlHeight,paddingInlineStart:0,paddingInlineEnd:0,borderRadius:"50%"}),cN=e=>({borderRadius:e.controlHeight,paddingInlineStart:e.calc(e.controlHeight).div(2).equal(),paddingInlineEnd:e.calc(e.controlHeight).div(2).equal()}),uN=e=>({cursor:"not-allowed",borderColor:e.borderColorDisabled,color:e.colorTextDisabled,background:e.colorBgContainerDisabled,boxShadow:"none"}),Nv=(e,t,n,r,i,o,a,s)=>({[`&${e}-background-ghost`]:Object.assign(Object.assign({color:n||void 0,background:t,borderColor:r||void 0,boxShadow:"none"},e_(e,Object.assign({background:t},a),Object.assign({background:t},s))),{"&:disabled":{cursor:"not-allowed",color:i||void 0,borderColor:o||void 0}})}),dN=e=>({[`&:disabled, &${e.componentCls}-disabled`]:Object.assign({},uN(e))}),fN=e=>({[`&:disabled, &${e.componentCls}-disabled`]:{cursor:"not-allowed",color:e.colorTextDisabled}}),Df=(e,t,n,r)=>{const o=r&&["link","text"].includes(r)?fN:dN;return Object.assign(Object.assign({},o(e)),e_(e.componentCls,t,n))},Fv=(e,t,n,r,i)=>({[`&${e.componentCls}-solid`]:Object.assign({color:t,background:n},Df(e,r,i))}),Av=(e,t,n,r,i)=>({[`&${e.componentCls}-outlined, &${e.componentCls}-dashed`]:Object.assign({borderColor:t,background:n},Df(e,r,i))}),Lv=e=>({[`&${e.componentCls}-dashed`]:{borderStyle:"dashed"}}),Dv=(e,t,n,r)=>({[`&${e.componentCls}-filled`]:Object.assign({boxShadow:"none",background:t},Df(e,n,r))}),Cs=(e,t,n,r,i)=>({[`&${e.componentCls}-${n}`]:Object.assign({color:t,boxShadow:"none"},Df(e,r,i,n))}),hN=e=>Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({color:e.defaultColor,boxShadow:e.defaultShadow},Fv(e,e.solidTextColor,e.colorBgSolid,{background:e.colorBgSolidHover},{background:e.colorBgSolidActive})),Av(e,e.defaultBorderColor,e.defaultBg,{color:e.defaultHoverColor,borderColor:e.defaultHoverBorderColor,background:e.defaultHoverBg},{color:e.defaultActiveColor,borderColor:e.defaultActiveBorderColor,background:e.defaultActiveBg})),Lv(e)),Dv(e,e.colorFillTertiary,{background:e.colorFillSecondary},{background:e.colorFill})),Cs(e,e.textTextColor,"text",{color:e.textTextHoverColor,background:e.textHoverBg},{color:e.textTextActiveColor,background:e.colorBgTextActive})),Cs(e,e.textTextColor,"link",{color:e.colorLinkHover,background:e.linkHoverBg},{color:e.colorLinkActive})),Nv(e.componentCls,e.ghostBg,e.defaultGhostColor,e.defaultGhostBorderColor,e.colorTextDisabled,e.colorBorder)),gN=e=>Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({color:e.colorPrimary,boxShadow:e.primaryShadow},Fv(e,e.primaryColor,e.colorPrimary,{background:e.colorPrimaryHover},{background:e.colorPrimaryActive})),Av(e,e.colorPrimary,e.colorBgContainer,{color:e.colorPrimaryTextHover,borderColor:e.colorPrimaryHover,background:e.colorBgContainer},{color:e.colorPrimaryTextActive,borderColor:e.colorPrimaryActive,background:e.colorBgContainer})),Lv(e)),Dv(e,e.colorPrimaryBg,{background:e.colorPrimaryBgHover},{background:e.colorPrimaryBorder})),Cs(e,e.colorPrimary,"text",{color:e.colorPrimaryTextHover,background:e.colorPrimaryBg},{color:e.colorPrimaryTextActive,background:e.colorPrimaryBorder})),Cs(e,e.colorPrimary,"link",{color:e.colorPrimaryTextHover,background:e.linkHoverBg},{color:e.colorPrimaryTextActive})),Nv(e.componentCls,e.ghostBg,e.colorPrimary,e.colorPrimary,e.colorTextDisabled,e.colorBorder,{color:e.colorPrimaryHover,borderColor:e.colorPrimaryHover},{color:e.colorPrimaryActive,borderColor:e.colorPrimaryActive})),mN=e=>Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({color:e.colorError,boxShadow:e.dangerShadow},Fv(e,e.dangerColor,e.colorError,{background:e.colorErrorHover},{background:e.colorErrorActive})),Av(e,e.colorError,e.colorBgContainer,{color:e.colorErrorHover,borderColor:e.colorErrorBorderHover},{color:e.colorErrorActive,borderColor:e.colorErrorActive})),Lv(e)),Dv(e,e.colorErrorBg,{background:e.colorErrorBgFilledHover},{background:e.colorErrorBgActive})),Cs(e,e.colorError,"text",{color:e.colorErrorHover,background:e.colorErrorBg},{color:e.colorErrorHover,background:e.colorErrorBgActive})),Cs(e,e.colorError,"link",{color:e.colorErrorHover},{color:e.colorErrorActive})),Nv(e.componentCls,e.ghostBg,e.colorError,e.colorError,e.colorTextDisabled,e.colorBorder,{color:e.colorErrorHover,borderColor:e.colorErrorHover},{color:e.colorErrorActive,borderColor:e.colorErrorActive})),pN=e=>{const{componentCls:t}=e;return{[`${t}-default`]:hN(e),[`${t}-primary`]:gN(e),[`${t}-dangerous`]:mN(e)}},zv=function(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"";const{componentCls:n,controlHeight:r,fontSize:i,lineHeight:o,borderRadius:a,buttonPaddingHorizontal:s,iconCls:l,buttonPaddingVertical:c}=e,u=`${n}-icon-only`;return[{[t]:{fontSize:i,lineHeight:o,height:r,padding:`${Z(c)} ${Z(s)}`,borderRadius:a,[`&${u}`]:{width:r,paddingInline:0,[`&${n}-compact-item`]:{flex:"none"},[`&${n}-round`]:{width:"auto"},[l]:{fontSize:e.buttonIconOnlyFontSize}},[`&${n}-loading`]:{opacity:e.opacityLoading,cursor:"default"},[`${n}-loading-icon`]:{transition:`width ${e.motionDurationSlow} ${e.motionEaseInOut}, opacity ${e.motionDurationSlow} ${e.motionEaseInOut}`}}},{[`${n}${n}-circle${t}`]:lN(e)},{[`${n}${n}-round${t}`]:cN(e)}]},vN=e=>{const t=An(e,{fontSize:e.contentFontSize,lineHeight:e.contentLineHeight});return zv(t,e.componentCls)},yN=e=>{const t=An(e,{controlHeight:e.controlHeightSM,fontSize:e.contentFontSizeSM,lineHeight:e.contentLineHeightSM,padding:e.paddingXS,buttonPaddingHorizontal:e.paddingInlineSM,buttonPaddingVertical:e.paddingBlockSM,borderRadius:e.borderRadiusSM,buttonIconOnlyFontSize:e.onlyIconSizeSM});return zv(t,`${e.componentCls}-sm`)},bN=e=>{const t=An(e,{controlHeight:e.controlHeightLG,fontSize:e.contentFontSizeLG,lineHeight:e.contentLineHeightLG,buttonPaddingHorizontal:e.paddingInlineLG,buttonPaddingVertical:e.paddingBlockLG,borderRadius:e.borderRadiusLG,buttonIconOnlyFontSize:e.onlyIconSizeLG});return zv(t,`${e.componentCls}-lg`)},xN=e=>{const{componentCls:t}=e;return{[t]:{[`&${t}-block`]:{width:"100%"}}}},SN=Er("Button",e=>{const t=ZE(e);return[sN(t),vN(t),yN(t),bN(t),xN(t),pN(t),Ok(t)]},JE,{unitless:{fontWeight:!0,contentLineHeight:!0,contentLineHeightSM:!0,contentLineHeightLG:!0}});function CN(e,t,n){const{focusElCls:r,focus:i,borderElCls:o}=n,a=o?"> *":"",s=["hover",i?"focus":null,"active"].filter(Boolean).map(l=>`&:${l} ${a}`).join(",");return{[`&-item:not(${t}-last-item)`]:{marginInlineEnd:e.calc(e.lineWidth).mul(-1).equal()},"&-item":Object.assign(Object.assign({[s]:{zIndex:2}},r?{[`&${r}`]:{zIndex:2}}:{}),{[`&[disabled] ${a}`]:{zIndex:0}})}}function wN(e,t,n){const{borderElCls:r}=n,i=r?`> ${r}`:"";return{[`&-item:not(${t}-first-item):not(${t}-last-item) ${i}`]:{borderRadius:0},[`&-item:not(${t}-last-item)${t}-first-item`]:{[`& ${i}, &${e}-sm ${i}, &${e}-lg ${i}`]:{borderStartEndRadius:0,borderEndEndRadius:0}},[`&-item:not(${t}-first-item)${t}-last-item`]:{[`& ${i}, &${e}-sm ${i}, &${e}-lg ${i}`]:{borderStartStartRadius:0,borderEndStartRadius:0}}}}function jv(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{focus:!0};const{componentCls:n}=e,r=`${n}-compact`;return{[r]:Object.assign(Object.assign({},CN(e,r,t)),wN(n,r,t))}}function EN(e,t){return{[`&-item:not(${t}-last-item)`]:{marginBottom:e.calc(e.lineWidth).mul(-1).equal()},"&-item":{"&:hover,&:focus,&:active":{zIndex:2},"&[disabled]":{zIndex:0}}}}function _N(e,t){return{[`&-item:not(${t}-first-item):not(${t}-last-item)`]:{borderRadius:0},[`&-item${t}-first-item:not(${t}-last-item)`]:{[`&, &${e}-sm, &${e}-lg`]:{borderEndEndRadius:0,borderEndStartRadius:0}},[`&-item${t}-last-item:not(${t}-first-item)`]:{[`&, &${e}-sm, &${e}-lg`]:{borderStartStartRadius:0,borderStartEndRadius:0}}}}function $N(e){const t=`${e.componentCls}-compact-vertical`;return{[t]:Object.assign(Object.assign({},EN(e,t)),_N(e.componentCls,t))}}const ON=e=>{const{componentCls:t,calc:n}=e;return{[t]:{[`&-compact-item${t}-primary`]:{[`&:not([disabled]) + ${t}-compact-item${t}-primary:not([disabled])`]:{position:"relative","&:before":{position:"absolute",top:n(e.lineWidth).mul(-1).equal(),insetInlineStart:n(e.lineWidth).mul(-1).equal(),display:"inline-block",width:e.lineWidth,height:`calc(100% + ${Z(e.lineWidth)} * 2)`,backgroundColor:e.colorPrimaryHover,content:'""'}}},"&-compact-vertical-item":{[`&${t}-primary`]:{[`&:not([disabled]) + ${t}-compact-vertical-item${t}-primary:not([disabled])`]:{position:"relative","&:before":{position:"absolute",top:n(e.lineWidth).mul(-1).equal(),insetInlineStart:n(e.lineWidth).mul(-1).equal(),display:"inline-block",width:`calc(100% + ${Z(e.lineWidth)} * 2)`,height:e.lineWidth,backgroundColor:e.colorPrimaryHover,content:'""'}}}}}}},PN=_E(["Button","compact"],e=>{const t=ZE(e);return[jv(t),$N(t),ON(t)]},JE);var MN=function(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 i=0,r=Object.getOwnPropertySymbols(e);i{var n,r,i;const{loading:o=!1,prefixCls:a,color:s,variant:l,type:c,danger:u=!1,shape:f="default",size:h,styles:m,disabled:y,className:v,rootClassName:b,children:p,icon:g,iconPosition:x="start",ghost:S=!1,block:C=!1,htmlType:w="button",classNames:E,style:_={},autoInsertSpace:O}=e,M=MN(e,["loading","prefixCls","color","variant","type","danger","shape","size","styles","disabled","className","rootClassName","children","icon","iconPosition","ghost","block","htmlType","classNames","style","autoInsertSpace"]),I=c||"default",[k,F]=d.useMemo(()=>{if(s&&l)return[s,l];const He=RN[I]||[];return u?["danger",He[1]]:He},[c,s,l,u]),B=k==="danger"?"dangerous":k,{getPrefixCls:A,direction:P,button:R}=d.useContext(bt),N=(n=O??(R==null?void 0:R.autoInsertSpace))!==null&&n!==void 0?n:!0,D=A("btn",a),[H,G,X]=SN(D),W=d.useContext(la),K=y??W,ee=d.useContext(XE),U=d.useMemo(()=>TN(o),[o]),[Y,J]=d.useState(U.loading),[re,ce]=d.useState(!1),xe=Si(t,d.createRef()),ie=d.Children.count(p)===1&&!g&&!jh(F);d.useEffect(()=>{let He=null;U.delay>0?He=setTimeout(()=>{He=null,J(!0)},U.delay):J(U.loading);function We(){He&&(clearTimeout(He),He=null)}return We},[U]),d.useEffect(()=>{if(!xe||!xe.current||!N)return;const He=xe.current.textContent;ie&&Lm(He)?re||ce(!0):re&&ce(!1)},[xe]);const de=He=>{const{onClick:We}=e;if(Y||K){He.preventDefault();return}We==null||We(He)},{compactSize:ye,compactItemClassnames:be}=qE(D,P),se={large:"lg",small:"sm",middle:void 0},we=Ic(He=>{var We,ct;return(ct=(We=h??ye)!==null&&We!==void 0?We:ee)!==null&&ct!==void 0?ct:He}),$e=we&&se[we]||"",ue=Y?"loading":g,Ne=si(M,["navigate"]),ae=te(D,G,X,{[`${D}-${f}`]:f!=="default"&&f,[`${D}-${B}`]:B,[`${D}-${F}`]:F,[`${D}-${$e}`]:$e,[`${D}-icon-only`]:!p&&p!==0&&!!ue,[`${D}-background-ghost`]:S&&!jh(F),[`${D}-loading`]:Y,[`${D}-two-chinese-chars`]:re&&N&&!Y,[`${D}-block`]:C,[`${D}-rtl`]:P==="rtl",[`${D}-icon-end`]:x==="end"},be,v,b,R==null?void 0:R.className),Ue=Object.assign(Object.assign({},R==null?void 0:R.style),_),Fe=te(E==null?void 0:E.icon,(r=R==null?void 0:R.classNames)===null||r===void 0?void 0:r.icon),Se=Object.assign(Object.assign({},(m==null?void 0:m.icon)||{}),((i=R==null?void 0:R.styles)===null||i===void 0?void 0:i.icon)||{}),Ve=g&&!Y?me.createElement(YE,{prefixCls:D,className:Fe,style:Se},g):me.createElement($k,{existIcon:!!g,prefixCls:D,loading:Y}),Be=p||p===0?_k(p,ie&&N):null;if(Ne.href!==void 0)return H(me.createElement("a",Object.assign({},Ne,{className:te(ae,{[`${D}-disabled`]:K}),href:K?void 0:Ne.href,style:Ue,onClick:de,ref:xe,tabIndex:K?-1:0}),Ve,Be));let De=me.createElement("button",Object.assign({},M,{type:w,className:ae,style:Ue,onClick:de,disabled:K,ref:xe}),Ve,Be,!!be&&me.createElement(PN,{key:"compact",prefixCls:D}));return jh(F)||(De=me.createElement(xk,{component:"Button",disabled:Y},De)),H(De)}),Bv=IN;Bv.Group=wk;Bv.__ANT_BUTTON=!0;var t_=d.createContext(null),Ab=[];function kN(e,t){var n=d.useState(function(){if(!Sr())return null;var y=document.createElement("div");return y}),r=Q(n,1),i=r[0],o=d.useRef(!1),a=d.useContext(t_),s=d.useState(Ab),l=Q(s,2),c=l[0],u=l[1],f=a||(o.current?void 0:function(y){u(function(v){var b=[y].concat(ge(v));return b})});function h(){i.parentElement||document.body.appendChild(i),o.current=!0}function m(){var y;(y=i.parentElement)===null||y===void 0||y.removeChild(i),o.current=!1}return Tn(function(){return e?a?a(h):h():m(),m},[e]),Tn(function(){c.length&&(c.forEach(function(y){return y()}),u(Ab))},[c]),[i,f]}function NN(e){var t="rc-scrollbar-measure-".concat(Math.random().toString(36).substring(7)),n=document.createElement("div");n.id=t;var r=n.style;r.position="absolute",r.left="0",r.top="0",r.width="100px",r.height="100px",r.overflow="scroll";var i,o;if(e){var a=getComputedStyle(e);r.scrollbarColor=a.scrollbarColor,r.scrollbarWidth=a.scrollbarWidth;var s=getComputedStyle(e,"::-webkit-scrollbar"),l=parseInt(s.width,10),c=parseInt(s.height,10);try{var u=l?"width: ".concat(s.width,";"):"",f=c?"height: ".concat(s.height,";"):"";ki(` + `]:{transform:"scale(0)",opacity:0,animationTimingFunction:e.motionEaseOutCirc,"&-prepare":{transform:"none"}},[`${r}-leave`]:{animationTimingFunction:e.motionEaseInOutCirc}}]},aN=(e,t)=>{const{r:n,g:r,b:i,a:o}=e.toRgb(),a=new uc(e.toRgbString()).onBackground(t).toHsv();return o<=.5?a.v>.5:n*.299+r*.587+i*.114>192},ZE=e=>{const{paddingInline:t,onlyIconSize:n,paddingBlock:r}=e;return An(e,{buttonPaddingHorizontal:t,buttonPaddingVertical:r,buttonIconOnlyFontSize:n})},JE=e=>{var t,n,r,i,o,a;const s=(t=e.contentFontSize)!==null&&t!==void 0?t:e.fontSize,l=(n=e.contentFontSizeSM)!==null&&n!==void 0?n:e.fontSize,c=(r=e.contentFontSizeLG)!==null&&r!==void 0?r:e.fontSizeLG,u=(i=e.contentLineHeight)!==null&&i!==void 0?i:ed(s),f=(o=e.contentLineHeightSM)!==null&&o!==void 0?o:ed(l),h=(a=e.contentLineHeightLG)!==null&&a!==void 0?a:ed(c),m=aN(new Nk(e.colorBgSolid),"#fff")?"#000":"#fff";return{fontWeight:400,defaultShadow:`0 ${e.controlOutlineWidth}px 0 ${e.controlTmpOutline}`,primaryShadow:`0 ${e.controlOutlineWidth}px 0 ${e.controlOutline}`,dangerShadow:`0 ${e.controlOutlineWidth}px 0 ${e.colorErrorOutline}`,primaryColor:e.colorTextLightSolid,dangerColor:e.colorTextLightSolid,borderColorDisabled:e.colorBorder,defaultGhostColor:e.colorBgContainer,ghostBg:"transparent",defaultGhostBorderColor:e.colorBgContainer,paddingInline:e.paddingContentHorizontal-e.lineWidth,paddingInlineLG:e.paddingContentHorizontal-e.lineWidth,paddingInlineSM:8-e.lineWidth,onlyIconSize:e.fontSizeLG,onlyIconSizeSM:e.fontSizeLG-2,onlyIconSizeLG:e.fontSizeLG+2,groupBorderColor:e.colorPrimaryHover,linkHoverBg:"transparent",textTextColor:e.colorText,textTextHoverColor:e.colorText,textTextActiveColor:e.colorText,textHoverBg:e.colorBgTextHover,defaultColor:e.colorText,defaultBg:e.colorBgContainer,defaultBorderColor:e.colorBorder,defaultBorderColorDisabled:e.colorBorder,defaultHoverBg:e.colorBgContainer,defaultHoverColor:e.colorPrimaryHover,defaultHoverBorderColor:e.colorPrimaryHover,defaultActiveBg:e.colorBgContainer,defaultActiveColor:e.colorPrimaryActive,defaultActiveBorderColor:e.colorPrimaryActive,solidTextColor:m,contentFontSize:s,contentFontSizeSM:l,contentFontSizeLG:c,contentLineHeight:u,contentLineHeightSM:f,contentLineHeightLG:h,paddingBlock:Math.max((e.controlHeight-s*u)/2-e.lineWidth,0),paddingBlockSM:Math.max((e.controlHeightSM-l*f)/2-e.lineWidth,0),paddingBlockLG:Math.max((e.controlHeightLG-c*h)/2-e.lineWidth,0)}},sN=e=>{const{componentCls:t,iconCls:n,fontWeight:r}=e;return{[t]:{outline:"none",position:"relative",display:"inline-flex",gap:e.marginXS,alignItems:"center",justifyContent:"center",fontWeight:r,whiteSpace:"nowrap",textAlign:"center",backgroundImage:"none",background:"transparent",border:`${Z(e.lineWidth)} ${e.lineType} transparent`,cursor:"pointer",transition:`all ${e.motionDurationMid} ${e.motionEaseInOut}`,userSelect:"none",touchAction:"manipulation",color:e.colorText,"&:disabled > *":{pointerEvents:"none"},"> span":{display:"inline-block"},[`${t}-icon`]:{lineHeight:1},"> a":{color:"currentColor"},"&:not(:disabled)":Object.assign({},Rv(e)),[`&${t}-two-chinese-chars::first-letter`]:{letterSpacing:"0.34em"},[`&${t}-two-chinese-chars > *:not(${n})`]:{marginInlineEnd:"-0.34em",letterSpacing:"0.34em"},"&-icon-end":{flexDirection:"row-reverse"}}}},e_=(e,t,n)=>({[`&:not(:disabled):not(${e}-disabled)`]:{"&:hover":t,"&:active":n}}),lN=e=>({minWidth:e.controlHeight,paddingInlineStart:0,paddingInlineEnd:0,borderRadius:"50%"}),cN=e=>({borderRadius:e.controlHeight,paddingInlineStart:e.calc(e.controlHeight).div(2).equal(),paddingInlineEnd:e.calc(e.controlHeight).div(2).equal()}),uN=e=>({cursor:"not-allowed",borderColor:e.borderColorDisabled,color:e.colorTextDisabled,background:e.colorBgContainerDisabled,boxShadow:"none"}),Nv=(e,t,n,r,i,o,a,s)=>({[`&${e}-background-ghost`]:Object.assign(Object.assign({color:n||void 0,background:t,borderColor:r||void 0,boxShadow:"none"},e_(e,Object.assign({background:t},a),Object.assign({background:t},s))),{"&:disabled":{cursor:"not-allowed",color:i||void 0,borderColor:o||void 0}})}),dN=e=>({[`&:disabled, &${e.componentCls}-disabled`]:Object.assign({},uN(e))}),fN=e=>({[`&:disabled, &${e.componentCls}-disabled`]:{cursor:"not-allowed",color:e.colorTextDisabled}}),Lf=(e,t,n,r)=>{const o=r&&["link","text"].includes(r)?fN:dN;return Object.assign(Object.assign({},o(e)),e_(e.componentCls,t,n))},Fv=(e,t,n,r,i)=>({[`&${e.componentCls}-solid`]:Object.assign({color:t,background:n},Lf(e,r,i))}),Av=(e,t,n,r,i)=>({[`&${e.componentCls}-outlined, &${e.componentCls}-dashed`]:Object.assign({borderColor:t,background:n},Lf(e,r,i))}),Lv=e=>({[`&${e.componentCls}-dashed`]:{borderStyle:"dashed"}}),Dv=(e,t,n,r)=>({[`&${e.componentCls}-filled`]:Object.assign({boxShadow:"none",background:t},Lf(e,n,r))}),Cs=(e,t,n,r,i)=>({[`&${e.componentCls}-${n}`]:Object.assign({color:t,boxShadow:"none"},Lf(e,r,i,n))}),hN=e=>Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({color:e.defaultColor,boxShadow:e.defaultShadow},Fv(e,e.solidTextColor,e.colorBgSolid,{background:e.colorBgSolidHover},{background:e.colorBgSolidActive})),Av(e,e.defaultBorderColor,e.defaultBg,{color:e.defaultHoverColor,borderColor:e.defaultHoverBorderColor,background:e.defaultHoverBg},{color:e.defaultActiveColor,borderColor:e.defaultActiveBorderColor,background:e.defaultActiveBg})),Lv(e)),Dv(e,e.colorFillTertiary,{background:e.colorFillSecondary},{background:e.colorFill})),Cs(e,e.textTextColor,"text",{color:e.textTextHoverColor,background:e.textHoverBg},{color:e.textTextActiveColor,background:e.colorBgTextActive})),Cs(e,e.textTextColor,"link",{color:e.colorLinkHover,background:e.linkHoverBg},{color:e.colorLinkActive})),Nv(e.componentCls,e.ghostBg,e.defaultGhostColor,e.defaultGhostBorderColor,e.colorTextDisabled,e.colorBorder)),gN=e=>Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({color:e.colorPrimary,boxShadow:e.primaryShadow},Fv(e,e.primaryColor,e.colorPrimary,{background:e.colorPrimaryHover},{background:e.colorPrimaryActive})),Av(e,e.colorPrimary,e.colorBgContainer,{color:e.colorPrimaryTextHover,borderColor:e.colorPrimaryHover,background:e.colorBgContainer},{color:e.colorPrimaryTextActive,borderColor:e.colorPrimaryActive,background:e.colorBgContainer})),Lv(e)),Dv(e,e.colorPrimaryBg,{background:e.colorPrimaryBgHover},{background:e.colorPrimaryBorder})),Cs(e,e.colorPrimary,"text",{color:e.colorPrimaryTextHover,background:e.colorPrimaryBg},{color:e.colorPrimaryTextActive,background:e.colorPrimaryBorder})),Cs(e,e.colorPrimary,"link",{color:e.colorPrimaryTextHover,background:e.linkHoverBg},{color:e.colorPrimaryTextActive})),Nv(e.componentCls,e.ghostBg,e.colorPrimary,e.colorPrimary,e.colorTextDisabled,e.colorBorder,{color:e.colorPrimaryHover,borderColor:e.colorPrimaryHover},{color:e.colorPrimaryActive,borderColor:e.colorPrimaryActive})),mN=e=>Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({color:e.colorError,boxShadow:e.dangerShadow},Fv(e,e.dangerColor,e.colorError,{background:e.colorErrorHover},{background:e.colorErrorActive})),Av(e,e.colorError,e.colorBgContainer,{color:e.colorErrorHover,borderColor:e.colorErrorBorderHover},{color:e.colorErrorActive,borderColor:e.colorErrorActive})),Lv(e)),Dv(e,e.colorErrorBg,{background:e.colorErrorBgFilledHover},{background:e.colorErrorBgActive})),Cs(e,e.colorError,"text",{color:e.colorErrorHover,background:e.colorErrorBg},{color:e.colorErrorHover,background:e.colorErrorBgActive})),Cs(e,e.colorError,"link",{color:e.colorErrorHover},{color:e.colorErrorActive})),Nv(e.componentCls,e.ghostBg,e.colorError,e.colorError,e.colorTextDisabled,e.colorBorder,{color:e.colorErrorHover,borderColor:e.colorErrorHover},{color:e.colorErrorActive,borderColor:e.colorErrorActive})),pN=e=>{const{componentCls:t}=e;return{[`${t}-default`]:hN(e),[`${t}-primary`]:gN(e),[`${t}-dangerous`]:mN(e)}},zv=function(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"";const{componentCls:n,controlHeight:r,fontSize:i,lineHeight:o,borderRadius:a,buttonPaddingHorizontal:s,iconCls:l,buttonPaddingVertical:c}=e,u=`${n}-icon-only`;return[{[t]:{fontSize:i,lineHeight:o,height:r,padding:`${Z(c)} ${Z(s)}`,borderRadius:a,[`&${u}`]:{width:r,paddingInline:0,[`&${n}-compact-item`]:{flex:"none"},[`&${n}-round`]:{width:"auto"},[l]:{fontSize:e.buttonIconOnlyFontSize}},[`&${n}-loading`]:{opacity:e.opacityLoading,cursor:"default"},[`${n}-loading-icon`]:{transition:`width ${e.motionDurationSlow} ${e.motionEaseInOut}, opacity ${e.motionDurationSlow} ${e.motionEaseInOut}`}}},{[`${n}${n}-circle${t}`]:lN(e)},{[`${n}${n}-round${t}`]:cN(e)}]},vN=e=>{const t=An(e,{fontSize:e.contentFontSize,lineHeight:e.contentLineHeight});return zv(t,e.componentCls)},yN=e=>{const t=An(e,{controlHeight:e.controlHeightSM,fontSize:e.contentFontSizeSM,lineHeight:e.contentLineHeightSM,padding:e.paddingXS,buttonPaddingHorizontal:e.paddingInlineSM,buttonPaddingVertical:e.paddingBlockSM,borderRadius:e.borderRadiusSM,buttonIconOnlyFontSize:e.onlyIconSizeSM});return zv(t,`${e.componentCls}-sm`)},bN=e=>{const t=An(e,{controlHeight:e.controlHeightLG,fontSize:e.contentFontSizeLG,lineHeight:e.contentLineHeightLG,buttonPaddingHorizontal:e.paddingInlineLG,buttonPaddingVertical:e.paddingBlockLG,borderRadius:e.borderRadiusLG,buttonIconOnlyFontSize:e.onlyIconSizeLG});return zv(t,`${e.componentCls}-lg`)},xN=e=>{const{componentCls:t}=e;return{[t]:{[`&${t}-block`]:{width:"100%"}}}},SN=Er("Button",e=>{const t=ZE(e);return[sN(t),vN(t),yN(t),bN(t),xN(t),pN(t),Ok(t)]},JE,{unitless:{fontWeight:!0,contentLineHeight:!0,contentLineHeightSM:!0,contentLineHeightLG:!0}});function CN(e,t,n){const{focusElCls:r,focus:i,borderElCls:o}=n,a=o?"> *":"",s=["hover",i?"focus":null,"active"].filter(Boolean).map(l=>`&:${l} ${a}`).join(",");return{[`&-item:not(${t}-last-item)`]:{marginInlineEnd:e.calc(e.lineWidth).mul(-1).equal()},"&-item":Object.assign(Object.assign({[s]:{zIndex:2}},r?{[`&${r}`]:{zIndex:2}}:{}),{[`&[disabled] ${a}`]:{zIndex:0}})}}function wN(e,t,n){const{borderElCls:r}=n,i=r?`> ${r}`:"";return{[`&-item:not(${t}-first-item):not(${t}-last-item) ${i}`]:{borderRadius:0},[`&-item:not(${t}-last-item)${t}-first-item`]:{[`& ${i}, &${e}-sm ${i}, &${e}-lg ${i}`]:{borderStartEndRadius:0,borderEndEndRadius:0}},[`&-item:not(${t}-first-item)${t}-last-item`]:{[`& ${i}, &${e}-sm ${i}, &${e}-lg ${i}`]:{borderStartStartRadius:0,borderEndStartRadius:0}}}}function jv(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{focus:!0};const{componentCls:n}=e,r=`${n}-compact`;return{[r]:Object.assign(Object.assign({},CN(e,r,t)),wN(n,r,t))}}function EN(e,t){return{[`&-item:not(${t}-last-item)`]:{marginBottom:e.calc(e.lineWidth).mul(-1).equal()},"&-item":{"&:hover,&:focus,&:active":{zIndex:2},"&[disabled]":{zIndex:0}}}}function _N(e,t){return{[`&-item:not(${t}-first-item):not(${t}-last-item)`]:{borderRadius:0},[`&-item${t}-first-item:not(${t}-last-item)`]:{[`&, &${e}-sm, &${e}-lg`]:{borderEndEndRadius:0,borderEndStartRadius:0}},[`&-item${t}-last-item:not(${t}-first-item)`]:{[`&, &${e}-sm, &${e}-lg`]:{borderStartStartRadius:0,borderStartEndRadius:0}}}}function $N(e){const t=`${e.componentCls}-compact-vertical`;return{[t]:Object.assign(Object.assign({},EN(e,t)),_N(e.componentCls,t))}}const ON=e=>{const{componentCls:t,calc:n}=e;return{[t]:{[`&-compact-item${t}-primary`]:{[`&:not([disabled]) + ${t}-compact-item${t}-primary:not([disabled])`]:{position:"relative","&:before":{position:"absolute",top:n(e.lineWidth).mul(-1).equal(),insetInlineStart:n(e.lineWidth).mul(-1).equal(),display:"inline-block",width:e.lineWidth,height:`calc(100% + ${Z(e.lineWidth)} * 2)`,backgroundColor:e.colorPrimaryHover,content:'""'}}},"&-compact-vertical-item":{[`&${t}-primary`]:{[`&:not([disabled]) + ${t}-compact-vertical-item${t}-primary:not([disabled])`]:{position:"relative","&:before":{position:"absolute",top:n(e.lineWidth).mul(-1).equal(),insetInlineStart:n(e.lineWidth).mul(-1).equal(),display:"inline-block",width:`calc(100% + ${Z(e.lineWidth)} * 2)`,height:e.lineWidth,backgroundColor:e.colorPrimaryHover,content:'""'}}}}}}},PN=_E(["Button","compact"],e=>{const t=ZE(e);return[jv(t),$N(t),ON(t)]},JE);var MN=function(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 i=0,r=Object.getOwnPropertySymbols(e);i{var n,r,i;const{loading:o=!1,prefixCls:a,color:s,variant:l,type:c,danger:u=!1,shape:f="default",size:h,styles:m,disabled:y,className:v,rootClassName:b,children:p,icon:g,iconPosition:x="start",ghost:S=!1,block:C=!1,htmlType:w="button",classNames:E,style:_={},autoInsertSpace:O}=e,M=MN(e,["loading","prefixCls","color","variant","type","danger","shape","size","styles","disabled","className","rootClassName","children","icon","iconPosition","ghost","block","htmlType","classNames","style","autoInsertSpace"]),I=c||"default",[k,F]=d.useMemo(()=>{if(s&&l)return[s,l];const He=RN[I]||[];return u?["danger",He[1]]:He},[c,s,l,u]),B=k==="danger"?"dangerous":k,{getPrefixCls:A,direction:P,button:R}=d.useContext(bt),N=(n=O??(R==null?void 0:R.autoInsertSpace))!==null&&n!==void 0?n:!0,D=A("btn",a),[H,G,X]=SN(D),W=d.useContext(la),K=y??W,ee=d.useContext(XE),U=d.useMemo(()=>TN(o),[o]),[Y,J]=d.useState(U.loading),[re,ce]=d.useState(!1),Se=Si(t,d.createRef()),ie=d.Children.count(p)===1&&!g&&!zh(F);d.useEffect(()=>{let He=null;U.delay>0?He=setTimeout(()=>{He=null,J(!0)},U.delay):J(U.loading);function We(){He&&(clearTimeout(He),He=null)}return We},[U]),d.useEffect(()=>{if(!Se||!Se.current||!N)return;const He=Se.current.textContent;ie&&Am(He)?re||ce(!0):re&&ce(!1)},[Se]);const de=He=>{const{onClick:We}=e;if(Y||K){He.preventDefault();return}We==null||We(He)},{compactSize:ye,compactItemClassnames:be}=qE(D,P),se={large:"lg",small:"sm",middle:void 0},we=Ic(He=>{var We,ct;return(ct=(We=h??ye)!==null&&We!==void 0?We:ee)!==null&&ct!==void 0?ct:He}),$e=we&&se[we]||"",ue=Y?"loading":g,Ne=si(M,["navigate"]),ae=te(D,G,X,{[`${D}-${f}`]:f!=="default"&&f,[`${D}-${B}`]:B,[`${D}-${F}`]:F,[`${D}-${$e}`]:$e,[`${D}-icon-only`]:!p&&p!==0&&!!ue,[`${D}-background-ghost`]:S&&!zh(F),[`${D}-loading`]:Y,[`${D}-two-chinese-chars`]:re&&N&&!Y,[`${D}-block`]:C,[`${D}-rtl`]:P==="rtl",[`${D}-icon-end`]:x==="end"},be,v,b,R==null?void 0:R.className),Ue=Object.assign(Object.assign({},R==null?void 0:R.style),_),Fe=te(E==null?void 0:E.icon,(r=R==null?void 0:R.classNames)===null||r===void 0?void 0:r.icon),Ce=Object.assign(Object.assign({},(m==null?void 0:m.icon)||{}),((i=R==null?void 0:R.styles)===null||i===void 0?void 0:i.icon)||{}),Ve=g&&!Y?me.createElement(YE,{prefixCls:D,className:Fe,style:Ce},g):me.createElement($k,{existIcon:!!g,prefixCls:D,loading:Y}),Be=p||p===0?_k(p,ie&&N):null;if(Ne.href!==void 0)return H(me.createElement("a",Object.assign({},Ne,{className:te(ae,{[`${D}-disabled`]:K}),href:K?void 0:Ne.href,style:Ue,onClick:de,ref:Se,tabIndex:K?-1:0}),Ve,Be));let De=me.createElement("button",Object.assign({},M,{type:w,className:ae,style:Ue,onClick:de,disabled:K,ref:Se}),Ve,Be,!!be&&me.createElement(PN,{key:"compact",prefixCls:D}));return zh(F)||(De=me.createElement(xk,{component:"Button",disabled:Y},De)),H(De)}),Bv=IN;Bv.Group=wk;Bv.__ANT_BUTTON=!0;var t_=d.createContext(null),Ab=[];function kN(e,t){var n=d.useState(function(){if(!Sr())return null;var y=document.createElement("div");return y}),r=Q(n,1),i=r[0],o=d.useRef(!1),a=d.useContext(t_),s=d.useState(Ab),l=Q(s,2),c=l[0],u=l[1],f=a||(o.current?void 0:function(y){u(function(v){var b=[y].concat(ge(v));return b})});function h(){i.parentElement||document.body.appendChild(i),o.current=!0}function m(){var y;(y=i.parentElement)===null||y===void 0||y.removeChild(i),o.current=!1}return Tn(function(){return e?a?a(h):h():m(),m},[e]),Tn(function(){c.length&&(c.forEach(function(y){return y()}),u(Ab))},[c]),[i,f]}function NN(e){var t="rc-scrollbar-measure-".concat(Math.random().toString(36).substring(7)),n=document.createElement("div");n.id=t;var r=n.style;r.position="absolute",r.left="0",r.top="0",r.width="100px",r.height="100px",r.overflow="scroll";var i,o;if(e){var a=getComputedStyle(e);r.scrollbarColor=a.scrollbarColor,r.scrollbarWidth=a.scrollbarWidth;var s=getComputedStyle(e,"::-webkit-scrollbar"),l=parseInt(s.width,10),c=parseInt(s.height,10);try{var u=l?"width: ".concat(s.width,";"):"",f=c?"height: ".concat(s.height,";"):"";ki(` #`.concat(t,`::-webkit-scrollbar { `).concat(u,` `).concat(f,` @@ -169,14 +169,14 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho html body { overflow-y: hidden; `.concat(a?"width: calc(100% - ".concat(o,"px);"):"",` -}`),i)}else ic(i);return function(){ic(i)}},[t,i])}var zN=!1;function jN(e){return zN}var Db=function(t){return t===!1?!1:!Sr()||!t?null:typeof t=="string"?document.querySelector(t):typeof t=="function"?t():t},n_=d.forwardRef(function(e,t){var n=e.open,r=e.autoLock,i=e.getContainer;e.debug;var o=e.autoDestroy,a=o===void 0?!0:o,s=e.children,l=d.useState(n),c=Q(l,2),u=c[0],f=c[1],h=u||n;d.useEffect(function(){(a||n)&&f(n)},[n,a]);var m=d.useState(function(){return Db(i)}),y=Q(m,2),v=y[0],b=y[1];d.useEffect(function(){var I=Db(i);b(I??null)});var p=kN(h&&!v),g=Q(p,2),x=g[0],S=g[1],C=v??x;DN(r&&n&&Sr()&&(C===x||C===document.body));var w=null;if(s&&Mo(s)&&t){var E=s;w=E.ref}var _=Pc(w,t);if(!h||!Sr()||v===void 0)return null;var O=C===!1||jN(),M=s;return t&&(M=d.cloneElement(s,{ref:_})),d.createElement(t_.Provider,{value:S},O?M:ma.createPortal(M,C))});function BN(){var e=V({},tf);return e.useId}var zb=0,jb=BN();const HN=jb?function(t){var n=jb();return t||n}:function(t){var n=d.useState("ssr-id"),r=Q(n,2),i=r[0],o=r[1];return d.useEffect(function(){var a=zb;zb+=1,o("rc_unique_".concat(a))},[]),t||i};var Ko="RC_FORM_INTERNAL_HOOKS",It=function(){Nn(!1,"Can not find FormContext. Please make sure you wrap Field under Form.")},ua=d.createContext({getFieldValue:It,getFieldsValue:It,getFieldError:It,getFieldWarning:It,getFieldsError:It,isFieldsTouched:It,isFieldTouched:It,isFieldValidating:It,isFieldsValidating:It,resetFields:It,setFields:It,setFieldValue:It,setFieldsValue:It,validateFields:It,submit:It,getInternalHooks:function(){return It(),{dispatch:It,initEntityValue:It,registerField:It,useSubscribe:It,setInitialValues:It,destroyForm:It,setCallbacks:It,registerWatch:It,getFields:It,setValidateMessages:It,setPreserve:It,getInitialValue:It}}}),dc=d.createContext(null);function Dm(e){return e==null?[]:Array.isArray(e)?e:[e]}function VN(e){return e&&!!e._init}function zm(){return{default:"Validation error on field %s",required:"%s is required",enum:"%s must be one of %s",whitespace:"%s cannot be empty",date:{format:"%s date %s is invalid for format %s",parse:"%s date could not be parsed, %s is invalid ",invalid:"%s date %s is invalid"},types:{string:"%s is not a %s",method:"%s is not a %s (function)",array:"%s is not an %s",object:"%s is not an %s",number:"%s is not a %s",date:"%s is not a %s",boolean:"%s is not a %s",integer:"%s is not an %s",float:"%s is not a %s",regexp:"%s is not a valid %s",email:"%s is not a valid %s",url:"%s is not a valid %s",hex:"%s is not a valid %s"},string:{len:"%s must be exactly %s characters",min:"%s must be at least %s characters",max:"%s cannot be longer than %s characters",range:"%s must be between %s and %s characters"},number:{len:"%s must equal %s",min:"%s cannot be less than %s",max:"%s cannot be greater than %s",range:"%s must be between %s and %s"},array:{len:"%s must be exactly %s in length",min:"%s cannot be less than %s in length",max:"%s cannot be greater than %s in length",range:"%s must be between %s and %s in length"},pattern:{mismatch:"%s value %s does not match pattern %s"},clone:function(){var t=JSON.parse(JSON.stringify(this));return t.clone=this.clone,t}}}var jm=zm();function WN(e){try{return Function.toString.call(e).indexOf("[native code]")!==-1}catch{return typeof e=="function"}}function UN(e,t,n){if(bv())return Reflect.construct.apply(null,arguments);var r=[null];r.push.apply(r,t);var i=new(e.bind.apply(e,r));return n&&tc(i,n.prototype),i}function Bm(e){var t=typeof Map=="function"?new Map:void 0;return Bm=function(r){if(r===null||!WN(r))return r;if(typeof r!="function")throw new TypeError("Super expression must either be null or a function");if(t!==void 0){if(t.has(r))return t.get(r);t.set(r,i)}function i(){return UN(r,arguments,nc(this).constructor)}return i.prototype=Object.create(r.prototype,{constructor:{value:i,enumerable:!1,writable:!0,configurable:!0}}),tc(i,r)},Bm(e)}var GN=/%[sdj%]/g,KN=function(){};function Hm(e){if(!e||!e.length)return null;var t={};return e.forEach(function(n){var r=n.field;t[r]=t[r]||[],t[r].push(n)}),t}function yr(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r=o)return s;switch(s){case"%s":return String(n[i++]);case"%d":return Number(n[i++]);case"%j":try{return JSON.stringify(n[i++])}catch{return"[Circular]"}break;default:return s}});return a}return e}function qN(e){return e==="string"||e==="url"||e==="hex"||e==="email"||e==="date"||e==="pattern"}function En(e,t){return!!(e==null||t==="array"&&Array.isArray(e)&&!e.length||qN(t)&&typeof e=="string"&&!e)}function XN(e,t,n){var r=[],i=0,o=e.length;function a(s){r.push.apply(r,ge(s||[])),i++,i===o&&n(r)}e.forEach(function(s){t(s,a)})}function Bb(e,t,n){var r=0,i=e.length;function o(a){if(a&&a.length){n(a);return}var s=r;r=r+1,st.max?i.push(yr(o.messages[f].max,t.fullField,t.max)):s&&l&&(ut.max)&&i.push(yr(o.messages[f].range,t.fullField,t.min,t.max))},r_=function(t,n,r,i,o,a){t.required&&(!r.hasOwnProperty(t.field)||En(n,a||t.type))&&i.push(yr(o.messages.required,t.fullField))},pu;const rF=function(){if(pu)return pu;var e="[a-fA-F\\d:]",t=function(w){return w&&w.includeBoundaries?"(?:(?<=\\s|^)(?=".concat(e,")|(?<=").concat(e,")(?=\\s|$))"):""},n="(?:25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]\\d|\\d)(?:\\.(?:25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]\\d|\\d)){3}",r="[a-fA-F\\d]{1,4}",i=["(?:".concat(r,":){7}(?:").concat(r,"|:)"),"(?:".concat(r,":){6}(?:").concat(n,"|:").concat(r,"|:)"),"(?:".concat(r,":){5}(?::").concat(n,"|(?::").concat(r,"){1,2}|:)"),"(?:".concat(r,":){4}(?:(?::").concat(r,"){0,1}:").concat(n,"|(?::").concat(r,"){1,3}|:)"),"(?:".concat(r,":){3}(?:(?::").concat(r,"){0,2}:").concat(n,"|(?::").concat(r,"){1,4}|:)"),"(?:".concat(r,":){2}(?:(?::").concat(r,"){0,3}:").concat(n,"|(?::").concat(r,"){1,5}|:)"),"(?:".concat(r,":){1}(?:(?::").concat(r,"){0,4}:").concat(n,"|(?::").concat(r,"){1,6}|:)"),"(?::(?:(?::".concat(r,"){0,5}:").concat(n,"|(?::").concat(r,"){1,7}|:))")],o="(?:%[0-9a-zA-Z]{1,})?",a="(?:".concat(i.join("|"),")").concat(o),s=new RegExp("(?:^".concat(n,"$)|(?:^").concat(a,"$)")),l=new RegExp("^".concat(n,"$")),c=new RegExp("^".concat(a,"$")),u=function(w){return w&&w.exact?s:new RegExp("(?:".concat(t(w)).concat(n).concat(t(w),")|(?:").concat(t(w)).concat(a).concat(t(w),")"),"g")};u.v4=function(C){return C&&C.exact?l:new RegExp("".concat(t(C)).concat(n).concat(t(C)),"g")},u.v6=function(C){return C&&C.exact?c:new RegExp("".concat(t(C)).concat(a).concat(t(C)),"g")};var f="(?:(?:[a-z]+:)?//)",h="(?:\\S+(?::\\S*)?@)?",m=u.v4().source,y=u.v6().source,v="(?:(?:[a-z\\u00a1-\\uffff0-9][-_]*)*[a-z\\u00a1-\\uffff0-9]+)",b="(?:\\.(?:[a-z\\u00a1-\\uffff0-9]-*)*[a-z\\u00a1-\\uffff0-9]+)*",p="(?:\\.(?:[a-z\\u00a1-\\uffff]{2,}))",g="(?::\\d{2,5})?",x='(?:[/?#][^\\s"]*)?',S="(?:".concat(f,"|www\\.)").concat(h,"(?:localhost|").concat(m,"|").concat(y,"|").concat(v).concat(b).concat(p,")").concat(g).concat(x);return pu=new RegExp("(?:^".concat(S,"$)"),"i"),pu};var Ub={email:/^(([^<>()\[\]\\.,;:\s@"]+(\.[^<>()\[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}])|(([a-zA-Z\-0-9\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]+\.)+[a-zA-Z\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]{2,}))$/,hex:/^#?([a-f0-9]{6}|[a-f0-9]{3})$/i},sl={integer:function(t){return sl.number(t)&&parseInt(t,10)===t},float:function(t){return sl.number(t)&&!sl.integer(t)},array:function(t){return Array.isArray(t)},regexp:function(t){if(t instanceof RegExp)return!0;try{return!!new RegExp(t)}catch{return!1}},date:function(t){return typeof t.getTime=="function"&&typeof t.getMonth=="function"&&typeof t.getYear=="function"&&!isNaN(t.getTime())},number:function(t){return isNaN(t)?!1:typeof t=="number"},object:function(t){return je(t)==="object"&&!sl.array(t)},method:function(t){return typeof t=="function"},email:function(t){return typeof t=="string"&&t.length<=320&&!!t.match(Ub.email)},url:function(t){return typeof t=="string"&&t.length<=2048&&!!t.match(rF())},hex:function(t){return typeof t=="string"&&!!t.match(Ub.hex)}},iF=function(t,n,r,i,o){if(t.required&&n===void 0){r_(t,n,r,i,o);return}var a=["integer","float","array","regexp","object","method","email","number","date","url","hex"],s=t.type;a.indexOf(s)>-1?sl[s](n)||i.push(yr(o.messages.types[s],t.fullField,t.type)):s&&je(n)!==t.type&&i.push(yr(o.messages.types[s],t.fullField,t.type))},oF=function(t,n,r,i,o){(/^\s+$/.test(n)||n==="")&&i.push(yr(o.messages.whitespace,t.fullField))};const ft={required:r_,whitespace:oF,type:iF,range:nF,enum:eF,pattern:tF};var aF=function(t,n,r,i,o){var a=[],s=t.required||!t.required&&i.hasOwnProperty(t.field);if(s){if(En(n)&&!t.required)return r();ft.required(t,n,i,a,o)}r(a)},sF=function(t,n,r,i,o){var a=[],s=t.required||!t.required&&i.hasOwnProperty(t.field);if(s){if(n==null&&!t.required)return r();ft.required(t,n,i,a,o,"array"),n!=null&&(ft.type(t,n,i,a,o),ft.range(t,n,i,a,o))}r(a)},lF=function(t,n,r,i,o){var a=[],s=t.required||!t.required&&i.hasOwnProperty(t.field);if(s){if(En(n)&&!t.required)return r();ft.required(t,n,i,a,o),n!==void 0&&ft.type(t,n,i,a,o)}r(a)},cF=function(t,n,r,i,o){var a=[],s=t.required||!t.required&&i.hasOwnProperty(t.field);if(s){if(En(n,"date")&&!t.required)return r();if(ft.required(t,n,i,a,o),!En(n,"date")){var l;n instanceof Date?l=n:l=new Date(n),ft.type(t,l,i,a,o),l&&ft.range(t,l.getTime(),i,a,o)}}r(a)},uF="enum",dF=function(t,n,r,i,o){var a=[],s=t.required||!t.required&&i.hasOwnProperty(t.field);if(s){if(En(n)&&!t.required)return r();ft.required(t,n,i,a,o),n!==void 0&&ft[uF](t,n,i,a,o)}r(a)},fF=function(t,n,r,i,o){var a=[],s=t.required||!t.required&&i.hasOwnProperty(t.field);if(s){if(En(n)&&!t.required)return r();ft.required(t,n,i,a,o),n!==void 0&&(ft.type(t,n,i,a,o),ft.range(t,n,i,a,o))}r(a)},hF=function(t,n,r,i,o){var a=[],s=t.required||!t.required&&i.hasOwnProperty(t.field);if(s){if(En(n)&&!t.required)return r();ft.required(t,n,i,a,o),n!==void 0&&(ft.type(t,n,i,a,o),ft.range(t,n,i,a,o))}r(a)},gF=function(t,n,r,i,o){var a=[],s=t.required||!t.required&&i.hasOwnProperty(t.field);if(s){if(En(n)&&!t.required)return r();ft.required(t,n,i,a,o),n!==void 0&&ft.type(t,n,i,a,o)}r(a)},mF=function(t,n,r,i,o){var a=[],s=t.required||!t.required&&i.hasOwnProperty(t.field);if(s){if(n===""&&(n=void 0),En(n)&&!t.required)return r();ft.required(t,n,i,a,o),n!==void 0&&(ft.type(t,n,i,a,o),ft.range(t,n,i,a,o))}r(a)},pF=function(t,n,r,i,o){var a=[],s=t.required||!t.required&&i.hasOwnProperty(t.field);if(s){if(En(n)&&!t.required)return r();ft.required(t,n,i,a,o),n!==void 0&&ft.type(t,n,i,a,o)}r(a)},vF=function(t,n,r,i,o){var a=[],s=t.required||!t.required&&i.hasOwnProperty(t.field);if(s){if(En(n,"string")&&!t.required)return r();ft.required(t,n,i,a,o),En(n,"string")||ft.pattern(t,n,i,a,o)}r(a)},yF=function(t,n,r,i,o){var a=[],s=t.required||!t.required&&i.hasOwnProperty(t.field);if(s){if(En(n)&&!t.required)return r();ft.required(t,n,i,a,o),En(n)||ft.type(t,n,i,a,o)}r(a)},bF=function(t,n,r,i,o){var a=[],s=Array.isArray(n)?"array":je(n);ft.required(t,n,i,a,o,s),r(a)},xF=function(t,n,r,i,o){var a=[],s=t.required||!t.required&&i.hasOwnProperty(t.field);if(s){if(En(n,"string")&&!t.required)return r();ft.required(t,n,i,a,o,"string"),En(n,"string")||(ft.type(t,n,i,a,o),ft.range(t,n,i,a,o),ft.pattern(t,n,i,a,o),t.whitespace===!0&&ft.whitespace(t,n,i,a,o))}r(a)},Uh=function(t,n,r,i,o){var a=t.type,s=[],l=t.required||!t.required&&i.hasOwnProperty(t.field);if(l){if(En(n,a)&&!t.required)return r();ft.required(t,n,i,s,o,a),En(n,a)||ft.type(t,n,i,s,o)}r(s)};const $l={string:xF,method:gF,number:mF,boolean:lF,regexp:yF,integer:hF,float:fF,array:sF,object:pF,enum:dF,pattern:vF,date:cF,url:Uh,hex:Uh,email:Uh,required:bF,any:aF};var kc=function(){function e(t){hn(this,e),z(this,"rules",null),z(this,"_messages",jm),this.define(t)}return gn(e,[{key:"define",value:function(n){var r=this;if(!n)throw new Error("Cannot configure a schema with no rules");if(je(n)!=="object"||Array.isArray(n))throw new Error("Rules must be an object");this.rules={},Object.keys(n).forEach(function(i){var o=n[i];r.rules[i]=Array.isArray(o)?o:[o]})}},{key:"messages",value:function(n){return n&&(this._messages=Wb(zm(),n)),this._messages}},{key:"validate",value:function(n){var r=this,i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},o=arguments.length>2&&arguments[2]!==void 0?arguments[2]:function(){},a=n,s=i,l=o;if(typeof s=="function"&&(l=s,s={}),!this.rules||Object.keys(this.rules).length===0)return l&&l(null,a),Promise.resolve(a);function c(y){var v=[],b={};function p(x){if(Array.isArray(x)){var S;v=(S=v).concat.apply(S,ge(x))}else v.push(x)}for(var g=0;g0&&arguments[0]!==void 0?arguments[0]:[],_=Array.isArray(E)?E:[E];!s.suppressWarning&&_.length&&e.warning("async-validator:",_),_.length&&b.message!==void 0&&(_=[].concat(b.message));var O=_.map(Vb(b,a));if(s.first&&O.length)return m[b.field]=1,v(O);if(!p)v(O);else{if(b.required&&!y.value)return b.message!==void 0?O=[].concat(b.message).map(Vb(b,a)):s.error&&(O=[s.error(b,yr(s.messages.required,b.field))]),v(O);var M={};b.defaultField&&Object.keys(y.value).map(function(F){M[F]=b.defaultField}),M=V(V({},M),y.rule.fields);var I={};Object.keys(M).forEach(function(F){var j=M[F],B=Array.isArray(j)?j:[j];I[F]=B.map(g.bind(null,F))});var k=new e(I);k.messages(s.messages),y.rule.options&&(y.rule.options.messages=s.messages,y.rule.options.error=s.error),k.validate(y.value,y.rule.options||s,function(F){var j=[];O&&O.length&&j.push.apply(j,ge(O)),F&&F.length&&j.push.apply(j,ge(F)),v(j.length?j:null)})}}var S;if(b.asyncValidator)S=b.asyncValidator(b,y.value,x,y.source,s);else if(b.validator){try{S=b.validator(b,y.value,x,y.source,s)}catch(E){var C,w;(C=(w=console).error)===null||C===void 0||C.call(w,E),s.suppressValidatorError||setTimeout(function(){throw E},0),x(E.message)}S===!0?x():S===!1?x(typeof b.message=="function"?b.message(b.fullField||b.field):b.message||"".concat(b.fullField||b.field," fails")):S instanceof Array?x(S):S instanceof Error&&x(S.message)}S&&S.then&&S.then(function(){return x()},function(E){return x(E)})},function(y){c(y)},a)}},{key:"getType",value:function(n){if(n.type===void 0&&n.pattern instanceof RegExp&&(n.type="pattern"),typeof n.validator!="function"&&n.type&&!$l.hasOwnProperty(n.type))throw new Error(yr("Unknown rule type %s",n.type));return n.type||"string"}},{key:"getValidationMethod",value:function(n){if(typeof n.validator=="function")return n.validator;var r=Object.keys(n),i=r.indexOf("message");return i!==-1&&r.splice(i,1),r.length===1&&r[0]==="required"?$l.required:$l[this.getType(n)]||void 0}}]),e}();z(kc,"register",function(t,n){if(typeof n!="function")throw new Error("Cannot register a validator by type, validator is not a function");$l[t]=n});z(kc,"warning",KN);z(kc,"messages",jm);z(kc,"validators",$l);var gr="'${name}' is not a valid ${type}",i_={default:"Validation error on field '${name}'",required:"'${name}' is required",enum:"'${name}' must be one of [${enum}]",whitespace:"'${name}' cannot be empty",date:{format:"'${name}' is invalid for format date",parse:"'${name}' could not be parsed as date",invalid:"'${name}' is invalid date"},types:{string:gr,method:gr,array:gr,object:gr,number:gr,date:gr,boolean:gr,integer:gr,float:gr,regexp:gr,email:gr,url:gr,hex:gr},string:{len:"'${name}' must be exactly ${len} characters",min:"'${name}' must be at least ${min} characters",max:"'${name}' cannot be longer than ${max} characters",range:"'${name}' must be between ${min} and ${max} characters"},number:{len:"'${name}' must equal ${len}",min:"'${name}' cannot be less than ${min}",max:"'${name}' cannot be greater than ${max}",range:"'${name}' must be between ${min} and ${max}"},array:{len:"'${name}' must be exactly ${len} in length",min:"'${name}' cannot be less than ${min} in length",max:"'${name}' cannot be greater than ${max} in length",range:"'${name}' must be between ${min} and ${max} in length"},pattern:{mismatch:"'${name}' does not match pattern ${pattern}"}},Gb=kc;function SF(e,t){return e.replace(/\\?\$\{\w+\}/g,function(n){if(n.startsWith("\\"))return n.slice(1);var r=n.slice(2,-1);return t[r]})}var Kb="CODE_LOGIC_ERROR";function Vm(e,t,n,r,i){return Wm.apply(this,arguments)}function Wm(){return Wm=pa(Jn().mark(function e(t,n,r,i,o){var a,s,l,c,u,f,h,m,y;return Jn().wrap(function(b){for(;;)switch(b.prev=b.next){case 0:return a=V({},r),delete a.ruleIndex,Gb.warning=function(){},a.validator&&(s=a.validator,a.validator=function(){try{return s.apply(void 0,arguments)}catch(p){return console.error(p),Promise.reject(Kb)}}),l=null,a&&a.type==="array"&&a.defaultField&&(l=a.defaultField,delete a.defaultField),c=new Gb(z({},t,[a])),u=Xa(i_,i.validateMessages),c.messages(u),f=[],b.prev=10,b.next=13,Promise.resolve(c.validate(z({},t,n),V({},i)));case 13:b.next=18;break;case 15:b.prev=15,b.t0=b.catch(10),b.t0.errors&&(f=b.t0.errors.map(function(p,g){var x=p.message,S=x===Kb?u.default:x;return d.isValidElement(S)?d.cloneElement(S,{key:"error_".concat(g)}):S}));case 18:if(!(!f.length&&l)){b.next=23;break}return b.next=21,Promise.all(n.map(function(p,g){return Vm("".concat(t,".").concat(g),p,l,i,o)}));case 21:return h=b.sent,b.abrupt("return",h.reduce(function(p,g){return[].concat(ge(p),ge(g))},[]));case 23:return m=V(V({},r),{},{name:t,enum:(r.enum||[]).join(", ")},o),y=f.map(function(p){return typeof p=="string"?SF(p,m):p}),b.abrupt("return",y);case 26:case"end":return b.stop()}},e,null,[[10,15]])})),Wm.apply(this,arguments)}function CF(e,t,n,r,i,o){var a=e.join("."),s=n.map(function(u,f){var h=u.validator,m=V(V({},u),{},{ruleIndex:f});return h&&(m.validator=function(y,v,b){var p=!1,g=function(){for(var C=arguments.length,w=new Array(C),E=0;E2&&arguments[2]!==void 0?arguments[2]:!1;return e&&e.some(function(r){return o_(t,r,n)})}function o_(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;return!e||!t||!n&&e.length!==t.length?!1:t.every(function(r,i){return e[i]===r})}function _F(e,t){if(e===t)return!0;if(!e&&t||e&&!t||!e||!t||je(e)!=="object"||je(t)!=="object")return!1;var n=Object.keys(e),r=Object.keys(t),i=new Set([].concat(n,r));return ge(i).every(function(o){var a=e[o],s=t[o];return typeof a=="function"&&typeof s=="function"?!0:a===s})}function $F(e){var t=arguments.length<=1?void 0:arguments[1];return t&&t.target&&je(t.target)==="object"&&e in t.target?t.target[e]:t}function Xb(e,t,n){var r=e.length;if(t<0||t>=r||n<0||n>=r)return e;var i=e[t],o=t-n;return o>0?[].concat(ge(e.slice(0,n)),[i],ge(e.slice(n,t)),ge(e.slice(t+1,r))):o<0?[].concat(ge(e.slice(0,t)),ge(e.slice(t+1,n+1)),[i],ge(e.slice(n+1,r))):e}var OF=["name"],Pr=[];function Gh(e,t,n,r,i,o){return typeof e=="function"?e(t,n,"source"in o?{source:o.source}:{}):r!==i}var Hv=function(e){Hi(n,e);var t=Vi(n);function n(r){var i;if(hn(this,n),i=t.call(this,r),z(rt(i),"state",{resetCount:0}),z(rt(i),"cancelRegisterFunc",null),z(rt(i),"mounted",!1),z(rt(i),"touched",!1),z(rt(i),"dirty",!1),z(rt(i),"validatePromise",void 0),z(rt(i),"prevValidating",void 0),z(rt(i),"errors",Pr),z(rt(i),"warnings",Pr),z(rt(i),"cancelRegister",function(){var l=i.props,c=l.preserve,u=l.isListField,f=l.name;i.cancelRegisterFunc&&i.cancelRegisterFunc(u,c,cn(f)),i.cancelRegisterFunc=null}),z(rt(i),"getNamePath",function(){var l=i.props,c=l.name,u=l.fieldContext,f=u.prefixName,h=f===void 0?[]:f;return c!==void 0?[].concat(ge(h),ge(c)):[]}),z(rt(i),"getRules",function(){var l=i.props,c=l.rules,u=c===void 0?[]:c,f=l.fieldContext;return u.map(function(h){return typeof h=="function"?h(f):h})}),z(rt(i),"refresh",function(){i.mounted&&i.setState(function(l){var c=l.resetCount;return{resetCount:c+1}})}),z(rt(i),"metaCache",null),z(rt(i),"triggerMetaEvent",function(l){var c=i.props.onMetaChange;if(c){var u=V(V({},i.getMeta()),{},{destroy:l});vs(i.metaCache,u)||c(u),i.metaCache=u}else i.metaCache=null}),z(rt(i),"onStoreChange",function(l,c,u){var f=i.props,h=f.shouldUpdate,m=f.dependencies,y=m===void 0?[]:m,v=f.onReset,b=u.store,p=i.getNamePath(),g=i.getValue(l),x=i.getValue(b),S=c&&as(c,p);switch(u.type==="valueUpdate"&&u.source==="external"&&!vs(g,x)&&(i.touched=!0,i.dirty=!0,i.validatePromise=null,i.errors=Pr,i.warnings=Pr,i.triggerMetaEvent()),u.type){case"reset":if(!c||S){i.touched=!1,i.dirty=!1,i.validatePromise=void 0,i.errors=Pr,i.warnings=Pr,i.triggerMetaEvent(),v==null||v(),i.refresh();return}break;case"remove":{if(h&&Gh(h,l,b,g,x,u)){i.reRender();return}break}case"setField":{var C=u.data;if(S){"touched"in C&&(i.touched=C.touched),"validating"in C&&!("originRCField"in C)&&(i.validatePromise=C.validating?Promise.resolve([]):null),"errors"in C&&(i.errors=C.errors||Pr),"warnings"in C&&(i.warnings=C.warnings||Pr),i.dirty=!0,i.triggerMetaEvent(),i.reRender();return}else if("value"in C&&as(c,p,!0)){i.reRender();return}if(h&&!p.length&&Gh(h,l,b,g,x,u)){i.reRender();return}break}case"dependenciesUpdate":{var w=y.map(cn);if(w.some(function(E){return as(u.relatedFields,E)})){i.reRender();return}break}default:if(S||(!y.length||p.length||h)&&Gh(h,l,b,g,x,u)){i.reRender();return}break}h===!0&&i.reRender()}),z(rt(i),"validateRules",function(l){var c=i.getNamePath(),u=i.getValue(),f=l||{},h=f.triggerName,m=f.validateOnly,y=m===void 0?!1:m,v=Promise.resolve().then(pa(Jn().mark(function b(){var p,g,x,S,C,w,E;return Jn().wrap(function(O){for(;;)switch(O.prev=O.next){case 0:if(i.mounted){O.next=2;break}return O.abrupt("return",[]);case 2:if(p=i.props,g=p.validateFirst,x=g===void 0?!1:g,S=p.messageVariables,C=p.validateDebounce,w=i.getRules(),h&&(w=w.filter(function(M){return M}).filter(function(M){var I=M.validateTrigger;if(!I)return!0;var k=Dm(I);return k.includes(h)})),!(C&&h)){O.next=10;break}return O.next=8,new Promise(function(M){setTimeout(M,C)});case 8:if(i.validatePromise===v){O.next=10;break}return O.abrupt("return",[]);case 10:return E=CF(c,u,w,l,x,S),E.catch(function(M){return M}).then(function(){var M=arguments.length>0&&arguments[0]!==void 0?arguments[0]:Pr;if(i.validatePromise===v){var I;i.validatePromise=null;var k=[],F=[];(I=M.forEach)===null||I===void 0||I.call(M,function(j){var B=j.rule.warningOnly,A=j.errors,P=A===void 0?Pr:A;B?F.push.apply(F,ge(P)):k.push.apply(k,ge(P))}),i.errors=k,i.warnings=F,i.triggerMetaEvent(),i.reRender()}}),O.abrupt("return",E);case 13:case"end":return O.stop()}},b)})));return y||(i.validatePromise=v,i.dirty=!0,i.errors=Pr,i.warnings=Pr,i.triggerMetaEvent(),i.reRender()),v}),z(rt(i),"isFieldValidating",function(){return!!i.validatePromise}),z(rt(i),"isFieldTouched",function(){return i.touched}),z(rt(i),"isFieldDirty",function(){if(i.dirty||i.props.initialValue!==void 0)return!0;var l=i.props.fieldContext,c=l.getInternalHooks(Ko),u=c.getInitialValue;return u(i.getNamePath())!==void 0}),z(rt(i),"getErrors",function(){return i.errors}),z(rt(i),"getWarnings",function(){return i.warnings}),z(rt(i),"isListField",function(){return i.props.isListField}),z(rt(i),"isList",function(){return i.props.isList}),z(rt(i),"isPreserve",function(){return i.props.preserve}),z(rt(i),"getMeta",function(){i.prevValidating=i.isFieldValidating();var l={touched:i.isFieldTouched(),validating:i.prevValidating,errors:i.errors,warnings:i.warnings,name:i.getNamePath(),validated:i.validatePromise===null};return l}),z(rt(i),"getOnlyChild",function(l){if(typeof l=="function"){var c=i.getMeta();return V(V({},i.getOnlyChild(l(i.getControlled(),c,i.props.fieldContext))),{},{isFunction:!0})}var u=Co(l);return u.length!==1||!d.isValidElement(u[0])?{child:u,isFunction:!1}:{child:u[0],isFunction:!1}}),z(rt(i),"getValue",function(l){var c=i.props.fieldContext.getFieldsValue,u=i.getNamePath();return vi(l||c(!0),u)}),z(rt(i),"getControlled",function(){var l=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},c=i.props,u=c.name,f=c.trigger,h=c.validateTrigger,m=c.getValueFromEvent,y=c.normalize,v=c.valuePropName,b=c.getValueProps,p=c.fieldContext,g=h!==void 0?h:p.validateTrigger,x=i.getNamePath(),S=p.getInternalHooks,C=p.getFieldsValue,w=S(Ko),E=w.dispatch,_=i.getValue(),O=b||function(j){return z({},v,j)},M=l[f],I=u!==void 0?O(_):{},k=V(V({},l),I);k[f]=function(){i.touched=!0,i.dirty=!0,i.triggerMetaEvent();for(var j,B=arguments.length,A=new Array(B),P=0;P=0&&M<=I.length?(u.keys=[].concat(ge(u.keys.slice(0,M)),[u.id],ge(u.keys.slice(M))),x([].concat(ge(I.slice(0,M)),[O],ge(I.slice(M))))):(u.keys=[].concat(ge(u.keys),[u.id]),x([].concat(ge(I),[O]))),u.id+=1},remove:function(O){var M=C(),I=new Set(Array.isArray(O)?O:[O]);I.size<=0||(u.keys=u.keys.filter(function(k,F){return!I.has(F)}),x(M.filter(function(k,F){return!I.has(F)})))},move:function(O,M){if(O!==M){var I=C();O<0||O>=I.length||M<0||M>=I.length||(u.keys=Xb(u.keys,O,M),x(Xb(I,O,M)))}}},E=g||[];return Array.isArray(E)||(E=[]),r(E.map(function(_,O){var M=u.keys[O];return M===void 0&&(u.keys[O]=u.id,M=u.keys[O],u.id+=1),{name:O,key:M,isListField:!0}}),w,b)})))}function PF(e){var t=!1,n=e.length,r=[];return e.length?new Promise(function(i,o){e.forEach(function(a,s){a.catch(function(l){return t=!0,l}).then(function(l){n-=1,r[s]=l,!(n>0)&&(t&&o(r),i(r))})})}):Promise.resolve([])}var s_="__@field_split__";function Kh(e){return e.map(function(t){return"".concat(je(t),":").concat(t)}).join(s_)}var _a=function(){function e(){hn(this,e),z(this,"kvs",new Map)}return gn(e,[{key:"set",value:function(n,r){this.kvs.set(Kh(n),r)}},{key:"get",value:function(n){return this.kvs.get(Kh(n))}},{key:"update",value:function(n,r){var i=this.get(n),o=r(i);o?this.set(n,o):this.delete(n)}},{key:"delete",value:function(n){this.kvs.delete(Kh(n))}},{key:"map",value:function(n){return ge(this.kvs.entries()).map(function(r){var i=Q(r,2),o=i[0],a=i[1],s=o.split(s_);return n({key:s.map(function(l){var c=l.match(/^([^:]*):(.*)$/),u=Q(c,3),f=u[1],h=u[2];return f==="number"?Number(h):h}),value:a})})}},{key:"toJSON",value:function(){var n={};return this.map(function(r){var i=r.key,o=r.value;return n[i.join(".")]=o,null}),n}}]),e}(),MF=["name"],TF=gn(function e(t){var n=this;hn(this,e),z(this,"formHooked",!1),z(this,"forceRootUpdate",void 0),z(this,"subscribable",!0),z(this,"store",{}),z(this,"fieldEntities",[]),z(this,"initialValues",{}),z(this,"callbacks",{}),z(this,"validateMessages",null),z(this,"preserve",null),z(this,"lastValidatePromise",null),z(this,"getForm",function(){return{getFieldValue:n.getFieldValue,getFieldsValue:n.getFieldsValue,getFieldError:n.getFieldError,getFieldWarning:n.getFieldWarning,getFieldsError:n.getFieldsError,isFieldsTouched:n.isFieldsTouched,isFieldTouched:n.isFieldTouched,isFieldValidating:n.isFieldValidating,isFieldsValidating:n.isFieldsValidating,resetFields:n.resetFields,setFields:n.setFields,setFieldValue:n.setFieldValue,setFieldsValue:n.setFieldsValue,validateFields:n.validateFields,submit:n.submit,_init:!0,getInternalHooks:n.getInternalHooks}}),z(this,"getInternalHooks",function(r){return r===Ko?(n.formHooked=!0,{dispatch:n.dispatch,initEntityValue:n.initEntityValue,registerField:n.registerField,useSubscribe:n.useSubscribe,setInitialValues:n.setInitialValues,destroyForm:n.destroyForm,setCallbacks:n.setCallbacks,setValidateMessages:n.setValidateMessages,getFields:n.getFields,setPreserve:n.setPreserve,getInitialValue:n.getInitialValue,registerWatch:n.registerWatch}):(Nn(!1,"`getInternalHooks` is internal usage. Should not call directly."),null)}),z(this,"useSubscribe",function(r){n.subscribable=r}),z(this,"prevWithoutPreserves",null),z(this,"setInitialValues",function(r,i){if(n.initialValues=r||{},i){var o,a=Xa(r,n.store);(o=n.prevWithoutPreserves)===null||o===void 0||o.map(function(s){var l=s.key;a=Yr(a,l,vi(r,l))}),n.prevWithoutPreserves=null,n.updateStore(a)}}),z(this,"destroyForm",function(r){if(r)n.updateStore({});else{var i=new _a;n.getFieldEntities(!0).forEach(function(o){n.isMergedPreserve(o.isPreserve())||i.set(o.getNamePath(),!0)}),n.prevWithoutPreserves=i}}),z(this,"getInitialValue",function(r){var i=vi(n.initialValues,r);return r.length?Xa(i):i}),z(this,"setCallbacks",function(r){n.callbacks=r}),z(this,"setValidateMessages",function(r){n.validateMessages=r}),z(this,"setPreserve",function(r){n.preserve=r}),z(this,"watchList",[]),z(this,"registerWatch",function(r){return n.watchList.push(r),function(){n.watchList=n.watchList.filter(function(i){return i!==r})}}),z(this,"notifyWatch",function(){var r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];if(n.watchList.length){var i=n.getFieldsValue(),o=n.getFieldsValue(!0);n.watchList.forEach(function(a){a(i,o,r)})}}),z(this,"timeoutId",null),z(this,"warningUnhooked",function(){}),z(this,"updateStore",function(r){n.store=r}),z(this,"getFieldEntities",function(){var r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1;return r?n.fieldEntities.filter(function(i){return i.getNamePath().length}):n.fieldEntities}),z(this,"getFieldsMap",function(){var r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1,i=new _a;return n.getFieldEntities(r).forEach(function(o){var a=o.getNamePath();i.set(a,o)}),i}),z(this,"getFieldEntitiesForNamePathList",function(r){if(!r)return n.getFieldEntities(!0);var i=n.getFieldsMap(!0);return r.map(function(o){var a=cn(o);return i.get(a)||{INVALIDATE_NAME_PATH:cn(o)}})}),z(this,"getFieldsValue",function(r,i){n.warningUnhooked();var o,a,s;if(r===!0||Array.isArray(r)?(o=r,a=i):r&&je(r)==="object"&&(s=r.strict,a=r.filter),o===!0&&!a)return n.store;var l=n.getFieldEntitiesForNamePathList(Array.isArray(o)?o:null),c=[];return l.forEach(function(u){var f,h,m="INVALIDATE_NAME_PATH"in u?u.INVALIDATE_NAME_PATH:u.getNamePath();if(s){var y,v;if((y=(v=u).isList)!==null&&y!==void 0&&y.call(v))return}else if(!o&&(f=(h=u).isListField)!==null&&f!==void 0&&f.call(h))return;if(!a)c.push(m);else{var b="getMeta"in u?u.getMeta():null;a(b)&&c.push(m)}}),qb(n.store,c.map(cn))}),z(this,"getFieldValue",function(r){n.warningUnhooked();var i=cn(r);return vi(n.store,i)}),z(this,"getFieldsError",function(r){n.warningUnhooked();var i=n.getFieldEntitiesForNamePathList(r);return i.map(function(o,a){return o&&!("INVALIDATE_NAME_PATH"in o)?{name:o.getNamePath(),errors:o.getErrors(),warnings:o.getWarnings()}:{name:cn(r[a]),errors:[],warnings:[]}})}),z(this,"getFieldError",function(r){n.warningUnhooked();var i=cn(r),o=n.getFieldsError([i])[0];return o.errors}),z(this,"getFieldWarning",function(r){n.warningUnhooked();var i=cn(r),o=n.getFieldsError([i])[0];return o.warnings}),z(this,"isFieldsTouched",function(){n.warningUnhooked();for(var r=arguments.length,i=new Array(r),o=0;o0&&arguments[0]!==void 0?arguments[0]:{},i=new _a,o=n.getFieldEntities(!0);o.forEach(function(l){var c=l.props.initialValue,u=l.getNamePath();if(c!==void 0){var f=i.get(u)||new Set;f.add({entity:l,value:c}),i.set(u,f)}});var a=function(c){c.forEach(function(u){var f=u.props.initialValue;if(f!==void 0){var h=u.getNamePath(),m=n.getInitialValue(h);if(m!==void 0)Nn(!1,"Form already set 'initialValues' with path '".concat(h.join("."),"'. Field can not overwrite it."));else{var y=i.get(h);if(y&&y.size>1)Nn(!1,"Multiple Field with path '".concat(h.join("."),"' set 'initialValue'. Can not decide which one to pick."));else if(y){var v=n.getFieldValue(h),b=u.isListField();!b&&(!r.skipExist||v===void 0)&&n.updateStore(Yr(n.store,h,ge(y)[0].value))}}}})},s;r.entities?s=r.entities:r.namePathList?(s=[],r.namePathList.forEach(function(l){var c=i.get(l);if(c){var u;(u=s).push.apply(u,ge(ge(c).map(function(f){return f.entity})))}})):s=o,a(s)}),z(this,"resetFields",function(r){n.warningUnhooked();var i=n.store;if(!r){n.updateStore(Xa(n.initialValues)),n.resetWithFieldInitialValue(),n.notifyObservers(i,null,{type:"reset"}),n.notifyWatch();return}var o=r.map(cn);o.forEach(function(a){var s=n.getInitialValue(a);n.updateStore(Yr(n.store,a,s))}),n.resetWithFieldInitialValue({namePathList:o}),n.notifyObservers(i,o,{type:"reset"}),n.notifyWatch(o)}),z(this,"setFields",function(r){n.warningUnhooked();var i=n.store,o=[];r.forEach(function(a){var s=a.name,l=st(a,MF),c=cn(s);o.push(c),"value"in l&&n.updateStore(Yr(n.store,c,l.value)),n.notifyObservers(i,[c],{type:"setField",data:a})}),n.notifyWatch(o)}),z(this,"getFields",function(){var r=n.getFieldEntities(!0),i=r.map(function(o){var a=o.getNamePath(),s=o.getMeta(),l=V(V({},s),{},{name:a,value:n.getFieldValue(a)});return Object.defineProperty(l,"originRCField",{value:!0}),l});return i}),z(this,"initEntityValue",function(r){var i=r.props.initialValue;if(i!==void 0){var o=r.getNamePath(),a=vi(n.store,o);a===void 0&&n.updateStore(Yr(n.store,o,i))}}),z(this,"isMergedPreserve",function(r){var i=r!==void 0?r:n.preserve;return i??!0}),z(this,"registerField",function(r){n.fieldEntities.push(r);var i=r.getNamePath();if(n.notifyWatch([i]),r.props.initialValue!==void 0){var o=n.store;n.resetWithFieldInitialValue({entities:[r],skipExist:!0}),n.notifyObservers(o,[r.getNamePath()],{type:"valueUpdate",source:"internal"})}return function(a,s){var l=arguments.length>2&&arguments[2]!==void 0?arguments[2]:[];if(n.fieldEntities=n.fieldEntities.filter(function(f){return f!==r}),!n.isMergedPreserve(s)&&(!a||l.length>1)){var c=a?void 0:n.getInitialValue(i);if(i.length&&n.getFieldValue(i)!==c&&n.fieldEntities.every(function(f){return!o_(f.getNamePath(),i)})){var u=n.store;n.updateStore(Yr(u,i,c,!0)),n.notifyObservers(u,[i],{type:"remove"}),n.triggerDependenciesUpdate(u,i)}}n.notifyWatch([i])}}),z(this,"dispatch",function(r){switch(r.type){case"updateValue":{var i=r.namePath,o=r.value;n.updateValue(i,o);break}case"validateField":{var a=r.namePath,s=r.triggerName;n.validateFields([a],{triggerName:s});break}}}),z(this,"notifyObservers",function(r,i,o){if(n.subscribable){var a=V(V({},o),{},{store:n.getFieldsValue(!0)});n.getFieldEntities().forEach(function(s){var l=s.onStoreChange;l(r,i,a)})}else n.forceRootUpdate()}),z(this,"triggerDependenciesUpdate",function(r,i){var o=n.getDependencyChildrenFields(i);return o.length&&n.validateFields(o),n.notifyObservers(r,o,{type:"dependenciesUpdate",relatedFields:[i].concat(ge(o))}),o}),z(this,"updateValue",function(r,i){var o=cn(r),a=n.store;n.updateStore(Yr(n.store,o,i)),n.notifyObservers(a,[o],{type:"valueUpdate",source:"internal"}),n.notifyWatch([o]);var s=n.triggerDependenciesUpdate(a,o),l=n.callbacks.onValuesChange;if(l){var c=qb(n.store,[o]);l(c,n.getFieldsValue())}n.triggerOnFieldsChange([o].concat(ge(s)))}),z(this,"setFieldsValue",function(r){n.warningUnhooked();var i=n.store;if(r){var o=Xa(n.store,r);n.updateStore(o)}n.notifyObservers(i,null,{type:"valueUpdate",source:"external"}),n.notifyWatch()}),z(this,"setFieldValue",function(r,i){n.setFields([{name:r,value:i}])}),z(this,"getDependencyChildrenFields",function(r){var i=new Set,o=[],a=new _a;n.getFieldEntities().forEach(function(l){var c=l.props.dependencies;(c||[]).forEach(function(u){var f=cn(u);a.update(f,function(){var h=arguments.length>0&&arguments[0]!==void 0?arguments[0]:new Set;return h.add(l),h})})});var s=function l(c){var u=a.get(c)||new Set;u.forEach(function(f){if(!i.has(f)){i.add(f);var h=f.getNamePath();f.isFieldDirty()&&h.length&&(o.push(h),l(h))}})};return s(r),o}),z(this,"triggerOnFieldsChange",function(r,i){var o=n.callbacks.onFieldsChange;if(o){var a=n.getFields();if(i){var s=new _a;i.forEach(function(c){var u=c.name,f=c.errors;s.set(u,f)}),a.forEach(function(c){c.errors=s.get(c.name)||c.errors})}var l=a.filter(function(c){var u=c.name;return as(r,u)});l.length&&o(l,a)}}),z(this,"validateFields",function(r,i){n.warningUnhooked();var o,a;Array.isArray(r)||typeof r=="string"||typeof i=="string"?(o=r,a=i):a=r;var s=!!o,l=s?o.map(cn):[],c=[],u=String(Date.now()),f=new Set,h=a||{},m=h.recursive,y=h.dirty;n.getFieldEntities(!0).forEach(function(g){if(s||l.push(g.getNamePath()),!(!g.props.rules||!g.props.rules.length)&&!(y&&!g.isFieldDirty())){var x=g.getNamePath();if(f.add(x.join(u)),!s||as(l,x,m)){var S=g.validateRules(V({validateMessages:V(V({},i_),n.validateMessages)},a));c.push(S.then(function(){return{name:x,errors:[],warnings:[]}}).catch(function(C){var w,E=[],_=[];return(w=C.forEach)===null||w===void 0||w.call(C,function(O){var M=O.rule.warningOnly,I=O.errors;M?_.push.apply(_,ge(I)):E.push.apply(E,ge(I))}),E.length?Promise.reject({name:x,errors:E,warnings:_}):{name:x,errors:E,warnings:_}}))}}});var v=PF(c);n.lastValidatePromise=v,v.catch(function(g){return g}).then(function(g){var x=g.map(function(S){var C=S.name;return C});n.notifyObservers(n.store,x,{type:"validateFinish"}),n.triggerOnFieldsChange(x,g)});var b=v.then(function(){return n.lastValidatePromise===v?Promise.resolve(n.getFieldsValue(l)):Promise.reject([])}).catch(function(g){var x=g.filter(function(S){return S&&S.errors.length});return Promise.reject({values:n.getFieldsValue(l),errorFields:x,outOfDate:n.lastValidatePromise!==v})});b.catch(function(g){return g});var p=l.filter(function(g){return f.has(g.join(u))});return n.triggerOnFieldsChange(p),b}),z(this,"submit",function(){n.warningUnhooked(),n.validateFields().then(function(r){var i=n.callbacks.onFinish;if(i)try{i(r)}catch(o){console.error(o)}}).catch(function(r){var i=n.callbacks.onFinishFailed;i&&i(r)})}),this.forceRootUpdate=t});function Wv(e){var t=d.useRef(),n=d.useState({}),r=Q(n,2),i=r[1];if(!t.current)if(e)t.current=e;else{var o=function(){i({})},a=new TF(o);t.current=a.getForm()}return[t.current]}var Km=d.createContext({triggerFormChange:function(){},triggerFormFinish:function(){},registerForm:function(){},unregisterForm:function(){}}),l_=function(t){var n=t.validateMessages,r=t.onFormChange,i=t.onFormFinish,o=t.children,a=d.useContext(Km),s=d.useRef({});return d.createElement(Km.Provider,{value:V(V({},a),{},{validateMessages:V(V({},a.validateMessages),n),triggerFormChange:function(c,u){r&&r(c,{changedFields:u,forms:s.current}),a.triggerFormChange(c,u)},triggerFormFinish:function(c,u){i&&i(c,{values:u,forms:s.current}),a.triggerFormFinish(c,u)},registerForm:function(c,u){c&&(s.current=V(V({},s.current),{},z({},c,u))),a.registerForm(c,u)},unregisterForm:function(c){var u=V({},s.current);delete u[c],s.current=u,a.unregisterForm(c)}})},o)},RF=["name","initialValues","fields","form","preserve","children","component","validateMessages","validateTrigger","onValuesChange","onFieldsChange","onFinish","onFinishFailed","clearOnDestroy"],IF=function(t,n){var r=t.name,i=t.initialValues,o=t.fields,a=t.form,s=t.preserve,l=t.children,c=t.component,u=c===void 0?"form":c,f=t.validateMessages,h=t.validateTrigger,m=h===void 0?"onChange":h,y=t.onValuesChange,v=t.onFieldsChange,b=t.onFinish,p=t.onFinishFailed,g=t.clearOnDestroy,x=st(t,RF),S=d.useRef(null),C=d.useContext(Km),w=Wv(a),E=Q(w,1),_=E[0],O=_.getInternalHooks(Ko),M=O.useSubscribe,I=O.setInitialValues,k=O.setCallbacks,F=O.setValidateMessages,j=O.setPreserve,B=O.destroyForm;d.useImperativeHandle(n,function(){return V(V({},_),{},{nativeElement:S.current})}),d.useEffect(function(){return C.registerForm(r,_),function(){C.unregisterForm(r)}},[C,_,r]),F(V(V({},C.validateMessages),f)),k({onValuesChange:y,onFieldsChange:function(W){if(C.triggerFormChange(r,W),v){for(var K=arguments.length,ee=new Array(K>1?K-1:0),U=1;U{}}),u_=d.createContext(null),d_=e=>{const t=si(e,["prefixCls"]);return d.createElement(l_,Object.assign({},t))},Uv=d.createContext({prefixCls:""}),da=d.createContext({}),NF=e=>{let{children:t,status:n,override:r}=e;const i=d.useContext(da),o=d.useMemo(()=>{const a=Object.assign({},i);return r&&delete a.isFormItemInput,n&&(delete a.status,delete a.hasFeedback,delete a.feedbackIcon),a},[n,r,i]);return d.createElement(da.Provider,{value:o},t)},f_=d.createContext(void 0),qm=e=>{const{space:t,form:n,children:r}=e;if(r==null)return null;let i=r;return n&&(i=me.createElement(NF,{override:!0,status:!0},i)),t&&(i=me.createElement(Sk,null,i)),i},zf=e=>{const{prefixCls:t,className:n,style:r,size:i,shape:o}=e,a=te({[`${t}-lg`]:i==="large",[`${t}-sm`]:i==="small"}),s=te({[`${t}-circle`]:o==="circle",[`${t}-square`]:o==="square",[`${t}-round`]:o==="round"}),l=d.useMemo(()=>typeof i=="number"?{width:i,height:i,lineHeight:`${i}px`}:{},[i]);return d.createElement("span",{className:te(t,a,s,n),style:Object.assign(Object.assign({},l),r)})},FF=new mn("ant-skeleton-loading",{"0%":{backgroundPosition:"100% 50%"},"100%":{backgroundPosition:"0 50%"}}),jf=e=>({height:e,lineHeight:Z(e)}),ss=e=>Object.assign({width:e},jf(e)),AF=e=>({background:e.skeletonLoadingBackground,backgroundSize:"400% 100%",animationName:FF,animationDuration:e.skeletonLoadingMotionDuration,animationTimingFunction:"ease",animationIterationCount:"infinite"}),qh=(e,t)=>Object.assign({width:t(e).mul(5).equal(),minWidth:t(e).mul(5).equal()},jf(e)),LF=e=>{const{skeletonAvatarCls:t,gradientFromColor:n,controlHeight:r,controlHeightLG:i,controlHeightSM:o}=e;return{[t]:Object.assign({display:"inline-block",verticalAlign:"top",background:n},ss(r)),[`${t}${t}-circle`]:{borderRadius:"50%"},[`${t}${t}-lg`]:Object.assign({},ss(i)),[`${t}${t}-sm`]:Object.assign({},ss(o))}},DF=e=>{const{controlHeight:t,borderRadiusSM:n,skeletonInputCls:r,controlHeightLG:i,controlHeightSM:o,gradientFromColor:a,calc:s}=e;return{[r]:Object.assign({display:"inline-block",verticalAlign:"top",background:a,borderRadius:n},qh(t,s)),[`${r}-lg`]:Object.assign({},qh(i,s)),[`${r}-sm`]:Object.assign({},qh(o,s))}},Qb=e=>Object.assign({width:e},jf(e)),zF=e=>{const{skeletonImageCls:t,imageSizeBase:n,gradientFromColor:r,borderRadiusSM:i,calc:o}=e;return{[t]:Object.assign(Object.assign({display:"inline-flex",alignItems:"center",justifyContent:"center",verticalAlign:"middle",background:r,borderRadius:i},Qb(o(n).mul(2).equal())),{[`${t}-path`]:{fill:"#bfbfbf"},[`${t}-svg`]:Object.assign(Object.assign({},Qb(n)),{maxWidth:o(n).mul(4).equal(),maxHeight:o(n).mul(4).equal()}),[`${t}-svg${t}-svg-circle`]:{borderRadius:"50%"}}),[`${t}${t}-circle`]:{borderRadius:"50%"}}},Xh=(e,t,n)=>{const{skeletonButtonCls:r}=e;return{[`${n}${r}-circle`]:{width:t,minWidth:t,borderRadius:"50%"},[`${n}${r}-round`]:{borderRadius:t}}},Yh=(e,t)=>Object.assign({width:t(e).mul(2).equal(),minWidth:t(e).mul(2).equal()},jf(e)),jF=e=>{const{borderRadiusSM:t,skeletonButtonCls:n,controlHeight:r,controlHeightLG:i,controlHeightSM:o,gradientFromColor:a,calc:s}=e;return Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({[n]:Object.assign({display:"inline-block",verticalAlign:"top",background:a,borderRadius:t,width:s(r).mul(2).equal(),minWidth:s(r).mul(2).equal()},Yh(r,s))},Xh(e,r,n)),{[`${n}-lg`]:Object.assign({},Yh(i,s))}),Xh(e,i,`${n}-lg`)),{[`${n}-sm`]:Object.assign({},Yh(o,s))}),Xh(e,o,`${n}-sm`))},BF=e=>{const{componentCls:t,skeletonAvatarCls:n,skeletonTitleCls:r,skeletonParagraphCls:i,skeletonButtonCls:o,skeletonInputCls:a,skeletonImageCls:s,controlHeight:l,controlHeightLG:c,controlHeightSM:u,gradientFromColor:f,padding:h,marginSM:m,borderRadius:y,titleHeight:v,blockRadius:b,paragraphLiHeight:p,controlHeightXS:g,paragraphMarginTop:x}=e;return{[t]:{display:"table",width:"100%",[`${t}-header`]:{display:"table-cell",paddingInlineEnd:h,verticalAlign:"top",[n]:Object.assign({display:"inline-block",verticalAlign:"top",background:f},ss(l)),[`${n}-circle`]:{borderRadius:"50%"},[`${n}-lg`]:Object.assign({},ss(c)),[`${n}-sm`]:Object.assign({},ss(u))},[`${t}-content`]:{display:"table-cell",width:"100%",verticalAlign:"top",[r]:{width:"100%",height:v,background:f,borderRadius:b,[`+ ${i}`]:{marginBlockStart:u}},[i]:{padding:0,"> li":{width:"100%",height:p,listStyle:"none",background:f,borderRadius:b,"+ li":{marginBlockStart:g}}},[`${i}> li:last-child:not(:first-child):not(:nth-child(2))`]:{width:"61%"}},[`&-round ${t}-content`]:{[`${r}, ${i} > li`]:{borderRadius:y}}},[`${t}-with-avatar ${t}-content`]:{[r]:{marginBlockStart:m,[`+ ${i}`]:{marginBlockStart:x}}},[`${t}${t}-element`]:Object.assign(Object.assign(Object.assign(Object.assign({display:"inline-block",width:"auto"},jF(e)),LF(e)),DF(e)),zF(e)),[`${t}${t}-block`]:{width:"100%",[o]:{width:"100%"},[a]:{width:"100%"}},[`${t}${t}-active`]:{[` +}`),i)}else ic(i);return function(){ic(i)}},[t,i])}var zN=!1;function jN(e){return zN}var Db=function(t){return t===!1?!1:!Sr()||!t?null:typeof t=="string"?document.querySelector(t):typeof t=="function"?t():t},n_=d.forwardRef(function(e,t){var n=e.open,r=e.autoLock,i=e.getContainer;e.debug;var o=e.autoDestroy,a=o===void 0?!0:o,s=e.children,l=d.useState(n),c=Q(l,2),u=c[0],f=c[1],h=u||n;d.useEffect(function(){(a||n)&&f(n)},[n,a]);var m=d.useState(function(){return Db(i)}),y=Q(m,2),v=y[0],b=y[1];d.useEffect(function(){var I=Db(i);b(I??null)});var p=kN(h&&!v),g=Q(p,2),x=g[0],S=g[1],C=v??x;DN(r&&n&&Sr()&&(C===x||C===document.body));var w=null;if(s&&Mo(s)&&t){var E=s;w=E.ref}var _=Pc(w,t);if(!h||!Sr()||v===void 0)return null;var O=C===!1||jN(),M=s;return t&&(M=d.cloneElement(s,{ref:_})),d.createElement(t_.Provider,{value:S},O?M:ma.createPortal(M,C))});function BN(){var e=V({},ef);return e.useId}var zb=0,jb=BN();const HN=jb?function(t){var n=jb();return t||n}:function(t){var n=d.useState("ssr-id"),r=Q(n,2),i=r[0],o=r[1];return d.useEffect(function(){var a=zb;zb+=1,o("rc_unique_".concat(a))},[]),t||i};var Go="RC_FORM_INTERNAL_HOOKS",It=function(){Nn(!1,"Can not find FormContext. Please make sure you wrap Field under Form.")},ua=d.createContext({getFieldValue:It,getFieldsValue:It,getFieldError:It,getFieldWarning:It,getFieldsError:It,isFieldsTouched:It,isFieldTouched:It,isFieldValidating:It,isFieldsValidating:It,resetFields:It,setFields:It,setFieldValue:It,setFieldsValue:It,validateFields:It,submit:It,getInternalHooks:function(){return It(),{dispatch:It,initEntityValue:It,registerField:It,useSubscribe:It,setInitialValues:It,destroyForm:It,setCallbacks:It,registerWatch:It,getFields:It,setValidateMessages:It,setPreserve:It,getInitialValue:It}}}),dc=d.createContext(null);function Lm(e){return e==null?[]:Array.isArray(e)?e:[e]}function VN(e){return e&&!!e._init}function Dm(){return{default:"Validation error on field %s",required:"%s is required",enum:"%s must be one of %s",whitespace:"%s cannot be empty",date:{format:"%s date %s is invalid for format %s",parse:"%s date could not be parsed, %s is invalid ",invalid:"%s date %s is invalid"},types:{string:"%s is not a %s",method:"%s is not a %s (function)",array:"%s is not an %s",object:"%s is not an %s",number:"%s is not a %s",date:"%s is not a %s",boolean:"%s is not a %s",integer:"%s is not an %s",float:"%s is not a %s",regexp:"%s is not a valid %s",email:"%s is not a valid %s",url:"%s is not a valid %s",hex:"%s is not a valid %s"},string:{len:"%s must be exactly %s characters",min:"%s must be at least %s characters",max:"%s cannot be longer than %s characters",range:"%s must be between %s and %s characters"},number:{len:"%s must equal %s",min:"%s cannot be less than %s",max:"%s cannot be greater than %s",range:"%s must be between %s and %s"},array:{len:"%s must be exactly %s in length",min:"%s cannot be less than %s in length",max:"%s cannot be greater than %s in length",range:"%s must be between %s and %s in length"},pattern:{mismatch:"%s value %s does not match pattern %s"},clone:function(){var t=JSON.parse(JSON.stringify(this));return t.clone=this.clone,t}}}var zm=Dm();function WN(e){try{return Function.toString.call(e).indexOf("[native code]")!==-1}catch{return typeof e=="function"}}function UN(e,t,n){if(bv())return Reflect.construct.apply(null,arguments);var r=[null];r.push.apply(r,t);var i=new(e.bind.apply(e,r));return n&&tc(i,n.prototype),i}function jm(e){var t=typeof Map=="function"?new Map:void 0;return jm=function(r){if(r===null||!WN(r))return r;if(typeof r!="function")throw new TypeError("Super expression must either be null or a function");if(t!==void 0){if(t.has(r))return t.get(r);t.set(r,i)}function i(){return UN(r,arguments,nc(this).constructor)}return i.prototype=Object.create(r.prototype,{constructor:{value:i,enumerable:!1,writable:!0,configurable:!0}}),tc(i,r)},jm(e)}var GN=/%[sdj%]/g,KN=function(){};function Bm(e){if(!e||!e.length)return null;var t={};return e.forEach(function(n){var r=n.field;t[r]=t[r]||[],t[r].push(n)}),t}function yr(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r=o)return s;switch(s){case"%s":return String(n[i++]);case"%d":return Number(n[i++]);case"%j":try{return JSON.stringify(n[i++])}catch{return"[Circular]"}break;default:return s}});return a}return e}function qN(e){return e==="string"||e==="url"||e==="hex"||e==="email"||e==="date"||e==="pattern"}function En(e,t){return!!(e==null||t==="array"&&Array.isArray(e)&&!e.length||qN(t)&&typeof e=="string"&&!e)}function XN(e,t,n){var r=[],i=0,o=e.length;function a(s){r.push.apply(r,ge(s||[])),i++,i===o&&n(r)}e.forEach(function(s){t(s,a)})}function Bb(e,t,n){var r=0,i=e.length;function o(a){if(a&&a.length){n(a);return}var s=r;r=r+1,st.max?i.push(yr(o.messages[f].max,t.fullField,t.max)):s&&l&&(ut.max)&&i.push(yr(o.messages[f].range,t.fullField,t.min,t.max))},r_=function(t,n,r,i,o,a){t.required&&(!r.hasOwnProperty(t.field)||En(n,a||t.type))&&i.push(yr(o.messages.required,t.fullField))},pu;const rF=function(){if(pu)return pu;var e="[a-fA-F\\d:]",t=function(w){return w&&w.includeBoundaries?"(?:(?<=\\s|^)(?=".concat(e,")|(?<=").concat(e,")(?=\\s|$))"):""},n="(?:25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]\\d|\\d)(?:\\.(?:25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]\\d|\\d)){3}",r="[a-fA-F\\d]{1,4}",i=["(?:".concat(r,":){7}(?:").concat(r,"|:)"),"(?:".concat(r,":){6}(?:").concat(n,"|:").concat(r,"|:)"),"(?:".concat(r,":){5}(?::").concat(n,"|(?::").concat(r,"){1,2}|:)"),"(?:".concat(r,":){4}(?:(?::").concat(r,"){0,1}:").concat(n,"|(?::").concat(r,"){1,3}|:)"),"(?:".concat(r,":){3}(?:(?::").concat(r,"){0,2}:").concat(n,"|(?::").concat(r,"){1,4}|:)"),"(?:".concat(r,":){2}(?:(?::").concat(r,"){0,3}:").concat(n,"|(?::").concat(r,"){1,5}|:)"),"(?:".concat(r,":){1}(?:(?::").concat(r,"){0,4}:").concat(n,"|(?::").concat(r,"){1,6}|:)"),"(?::(?:(?::".concat(r,"){0,5}:").concat(n,"|(?::").concat(r,"){1,7}|:))")],o="(?:%[0-9a-zA-Z]{1,})?",a="(?:".concat(i.join("|"),")").concat(o),s=new RegExp("(?:^".concat(n,"$)|(?:^").concat(a,"$)")),l=new RegExp("^".concat(n,"$")),c=new RegExp("^".concat(a,"$")),u=function(w){return w&&w.exact?s:new RegExp("(?:".concat(t(w)).concat(n).concat(t(w),")|(?:").concat(t(w)).concat(a).concat(t(w),")"),"g")};u.v4=function(C){return C&&C.exact?l:new RegExp("".concat(t(C)).concat(n).concat(t(C)),"g")},u.v6=function(C){return C&&C.exact?c:new RegExp("".concat(t(C)).concat(a).concat(t(C)),"g")};var f="(?:(?:[a-z]+:)?//)",h="(?:\\S+(?::\\S*)?@)?",m=u.v4().source,y=u.v6().source,v="(?:(?:[a-z\\u00a1-\\uffff0-9][-_]*)*[a-z\\u00a1-\\uffff0-9]+)",b="(?:\\.(?:[a-z\\u00a1-\\uffff0-9]-*)*[a-z\\u00a1-\\uffff0-9]+)*",p="(?:\\.(?:[a-z\\u00a1-\\uffff]{2,}))",g="(?::\\d{2,5})?",x='(?:[/?#][^\\s"]*)?',S="(?:".concat(f,"|www\\.)").concat(h,"(?:localhost|").concat(m,"|").concat(y,"|").concat(v).concat(b).concat(p,")").concat(g).concat(x);return pu=new RegExp("(?:^".concat(S,"$)"),"i"),pu};var Ub={email:/^(([^<>()\[\]\\.,;:\s@"]+(\.[^<>()\[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}])|(([a-zA-Z\-0-9\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]+\.)+[a-zA-Z\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]{2,}))$/,hex:/^#?([a-f0-9]{6}|[a-f0-9]{3})$/i},sl={integer:function(t){return sl.number(t)&&parseInt(t,10)===t},float:function(t){return sl.number(t)&&!sl.integer(t)},array:function(t){return Array.isArray(t)},regexp:function(t){if(t instanceof RegExp)return!0;try{return!!new RegExp(t)}catch{return!1}},date:function(t){return typeof t.getTime=="function"&&typeof t.getMonth=="function"&&typeof t.getYear=="function"&&!isNaN(t.getTime())},number:function(t){return isNaN(t)?!1:typeof t=="number"},object:function(t){return je(t)==="object"&&!sl.array(t)},method:function(t){return typeof t=="function"},email:function(t){return typeof t=="string"&&t.length<=320&&!!t.match(Ub.email)},url:function(t){return typeof t=="string"&&t.length<=2048&&!!t.match(rF())},hex:function(t){return typeof t=="string"&&!!t.match(Ub.hex)}},iF=function(t,n,r,i,o){if(t.required&&n===void 0){r_(t,n,r,i,o);return}var a=["integer","float","array","regexp","object","method","email","number","date","url","hex"],s=t.type;a.indexOf(s)>-1?sl[s](n)||i.push(yr(o.messages.types[s],t.fullField,t.type)):s&&je(n)!==t.type&&i.push(yr(o.messages.types[s],t.fullField,t.type))},oF=function(t,n,r,i,o){(/^\s+$/.test(n)||n==="")&&i.push(yr(o.messages.whitespace,t.fullField))};const ft={required:r_,whitespace:oF,type:iF,range:nF,enum:eF,pattern:tF};var aF=function(t,n,r,i,o){var a=[],s=t.required||!t.required&&i.hasOwnProperty(t.field);if(s){if(En(n)&&!t.required)return r();ft.required(t,n,i,a,o)}r(a)},sF=function(t,n,r,i,o){var a=[],s=t.required||!t.required&&i.hasOwnProperty(t.field);if(s){if(n==null&&!t.required)return r();ft.required(t,n,i,a,o,"array"),n!=null&&(ft.type(t,n,i,a,o),ft.range(t,n,i,a,o))}r(a)},lF=function(t,n,r,i,o){var a=[],s=t.required||!t.required&&i.hasOwnProperty(t.field);if(s){if(En(n)&&!t.required)return r();ft.required(t,n,i,a,o),n!==void 0&&ft.type(t,n,i,a,o)}r(a)},cF=function(t,n,r,i,o){var a=[],s=t.required||!t.required&&i.hasOwnProperty(t.field);if(s){if(En(n,"date")&&!t.required)return r();if(ft.required(t,n,i,a,o),!En(n,"date")){var l;n instanceof Date?l=n:l=new Date(n),ft.type(t,l,i,a,o),l&&ft.range(t,l.getTime(),i,a,o)}}r(a)},uF="enum",dF=function(t,n,r,i,o){var a=[],s=t.required||!t.required&&i.hasOwnProperty(t.field);if(s){if(En(n)&&!t.required)return r();ft.required(t,n,i,a,o),n!==void 0&&ft[uF](t,n,i,a,o)}r(a)},fF=function(t,n,r,i,o){var a=[],s=t.required||!t.required&&i.hasOwnProperty(t.field);if(s){if(En(n)&&!t.required)return r();ft.required(t,n,i,a,o),n!==void 0&&(ft.type(t,n,i,a,o),ft.range(t,n,i,a,o))}r(a)},hF=function(t,n,r,i,o){var a=[],s=t.required||!t.required&&i.hasOwnProperty(t.field);if(s){if(En(n)&&!t.required)return r();ft.required(t,n,i,a,o),n!==void 0&&(ft.type(t,n,i,a,o),ft.range(t,n,i,a,o))}r(a)},gF=function(t,n,r,i,o){var a=[],s=t.required||!t.required&&i.hasOwnProperty(t.field);if(s){if(En(n)&&!t.required)return r();ft.required(t,n,i,a,o),n!==void 0&&ft.type(t,n,i,a,o)}r(a)},mF=function(t,n,r,i,o){var a=[],s=t.required||!t.required&&i.hasOwnProperty(t.field);if(s){if(n===""&&(n=void 0),En(n)&&!t.required)return r();ft.required(t,n,i,a,o),n!==void 0&&(ft.type(t,n,i,a,o),ft.range(t,n,i,a,o))}r(a)},pF=function(t,n,r,i,o){var a=[],s=t.required||!t.required&&i.hasOwnProperty(t.field);if(s){if(En(n)&&!t.required)return r();ft.required(t,n,i,a,o),n!==void 0&&ft.type(t,n,i,a,o)}r(a)},vF=function(t,n,r,i,o){var a=[],s=t.required||!t.required&&i.hasOwnProperty(t.field);if(s){if(En(n,"string")&&!t.required)return r();ft.required(t,n,i,a,o),En(n,"string")||ft.pattern(t,n,i,a,o)}r(a)},yF=function(t,n,r,i,o){var a=[],s=t.required||!t.required&&i.hasOwnProperty(t.field);if(s){if(En(n)&&!t.required)return r();ft.required(t,n,i,a,o),En(n)||ft.type(t,n,i,a,o)}r(a)},bF=function(t,n,r,i,o){var a=[],s=Array.isArray(n)?"array":je(n);ft.required(t,n,i,a,o,s),r(a)},xF=function(t,n,r,i,o){var a=[],s=t.required||!t.required&&i.hasOwnProperty(t.field);if(s){if(En(n,"string")&&!t.required)return r();ft.required(t,n,i,a,o,"string"),En(n,"string")||(ft.type(t,n,i,a,o),ft.range(t,n,i,a,o),ft.pattern(t,n,i,a,o),t.whitespace===!0&&ft.whitespace(t,n,i,a,o))}r(a)},Wh=function(t,n,r,i,o){var a=t.type,s=[],l=t.required||!t.required&&i.hasOwnProperty(t.field);if(l){if(En(n,a)&&!t.required)return r();ft.required(t,n,i,s,o,a),En(n,a)||ft.type(t,n,i,s,o)}r(s)};const $l={string:xF,method:gF,number:mF,boolean:lF,regexp:yF,integer:hF,float:fF,array:sF,object:pF,enum:dF,pattern:vF,date:cF,url:Wh,hex:Wh,email:Wh,required:bF,any:aF};var kc=function(){function e(t){hn(this,e),z(this,"rules",null),z(this,"_messages",zm),this.define(t)}return gn(e,[{key:"define",value:function(n){var r=this;if(!n)throw new Error("Cannot configure a schema with no rules");if(je(n)!=="object"||Array.isArray(n))throw new Error("Rules must be an object");this.rules={},Object.keys(n).forEach(function(i){var o=n[i];r.rules[i]=Array.isArray(o)?o:[o]})}},{key:"messages",value:function(n){return n&&(this._messages=Wb(Dm(),n)),this._messages}},{key:"validate",value:function(n){var r=this,i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},o=arguments.length>2&&arguments[2]!==void 0?arguments[2]:function(){},a=n,s=i,l=o;if(typeof s=="function"&&(l=s,s={}),!this.rules||Object.keys(this.rules).length===0)return l&&l(null,a),Promise.resolve(a);function c(y){var v=[],b={};function p(x){if(Array.isArray(x)){var S;v=(S=v).concat.apply(S,ge(x))}else v.push(x)}for(var g=0;g0&&arguments[0]!==void 0?arguments[0]:[],_=Array.isArray(E)?E:[E];!s.suppressWarning&&_.length&&e.warning("async-validator:",_),_.length&&b.message!==void 0&&(_=[].concat(b.message));var O=_.map(Vb(b,a));if(s.first&&O.length)return m[b.field]=1,v(O);if(!p)v(O);else{if(b.required&&!y.value)return b.message!==void 0?O=[].concat(b.message).map(Vb(b,a)):s.error&&(O=[s.error(b,yr(s.messages.required,b.field))]),v(O);var M={};b.defaultField&&Object.keys(y.value).map(function(F){M[F]=b.defaultField}),M=V(V({},M),y.rule.fields);var I={};Object.keys(M).forEach(function(F){var j=M[F],B=Array.isArray(j)?j:[j];I[F]=B.map(g.bind(null,F))});var k=new e(I);k.messages(s.messages),y.rule.options&&(y.rule.options.messages=s.messages,y.rule.options.error=s.error),k.validate(y.value,y.rule.options||s,function(F){var j=[];O&&O.length&&j.push.apply(j,ge(O)),F&&F.length&&j.push.apply(j,ge(F)),v(j.length?j:null)})}}var S;if(b.asyncValidator)S=b.asyncValidator(b,y.value,x,y.source,s);else if(b.validator){try{S=b.validator(b,y.value,x,y.source,s)}catch(E){var C,w;(C=(w=console).error)===null||C===void 0||C.call(w,E),s.suppressValidatorError||setTimeout(function(){throw E},0),x(E.message)}S===!0?x():S===!1?x(typeof b.message=="function"?b.message(b.fullField||b.field):b.message||"".concat(b.fullField||b.field," fails")):S instanceof Array?x(S):S instanceof Error&&x(S.message)}S&&S.then&&S.then(function(){return x()},function(E){return x(E)})},function(y){c(y)},a)}},{key:"getType",value:function(n){if(n.type===void 0&&n.pattern instanceof RegExp&&(n.type="pattern"),typeof n.validator!="function"&&n.type&&!$l.hasOwnProperty(n.type))throw new Error(yr("Unknown rule type %s",n.type));return n.type||"string"}},{key:"getValidationMethod",value:function(n){if(typeof n.validator=="function")return n.validator;var r=Object.keys(n),i=r.indexOf("message");return i!==-1&&r.splice(i,1),r.length===1&&r[0]==="required"?$l.required:$l[this.getType(n)]||void 0}}]),e}();z(kc,"register",function(t,n){if(typeof n!="function")throw new Error("Cannot register a validator by type, validator is not a function");$l[t]=n});z(kc,"warning",KN);z(kc,"messages",zm);z(kc,"validators",$l);var gr="'${name}' is not a valid ${type}",i_={default:"Validation error on field '${name}'",required:"'${name}' is required",enum:"'${name}' must be one of [${enum}]",whitespace:"'${name}' cannot be empty",date:{format:"'${name}' is invalid for format date",parse:"'${name}' could not be parsed as date",invalid:"'${name}' is invalid date"},types:{string:gr,method:gr,array:gr,object:gr,number:gr,date:gr,boolean:gr,integer:gr,float:gr,regexp:gr,email:gr,url:gr,hex:gr},string:{len:"'${name}' must be exactly ${len} characters",min:"'${name}' must be at least ${min} characters",max:"'${name}' cannot be longer than ${max} characters",range:"'${name}' must be between ${min} and ${max} characters"},number:{len:"'${name}' must equal ${len}",min:"'${name}' cannot be less than ${min}",max:"'${name}' cannot be greater than ${max}",range:"'${name}' must be between ${min} and ${max}"},array:{len:"'${name}' must be exactly ${len} in length",min:"'${name}' cannot be less than ${min} in length",max:"'${name}' cannot be greater than ${max} in length",range:"'${name}' must be between ${min} and ${max} in length"},pattern:{mismatch:"'${name}' does not match pattern ${pattern}"}},Gb=kc;function SF(e,t){return e.replace(/\\?\$\{\w+\}/g,function(n){if(n.startsWith("\\"))return n.slice(1);var r=n.slice(2,-1);return t[r]})}var Kb="CODE_LOGIC_ERROR";function Hm(e,t,n,r,i){return Vm.apply(this,arguments)}function Vm(){return Vm=pa(Jn().mark(function e(t,n,r,i,o){var a,s,l,c,u,f,h,m,y;return Jn().wrap(function(b){for(;;)switch(b.prev=b.next){case 0:return a=V({},r),delete a.ruleIndex,Gb.warning=function(){},a.validator&&(s=a.validator,a.validator=function(){try{return s.apply(void 0,arguments)}catch(p){return console.error(p),Promise.reject(Kb)}}),l=null,a&&a.type==="array"&&a.defaultField&&(l=a.defaultField,delete a.defaultField),c=new Gb(z({},t,[a])),u=Xa(i_,i.validateMessages),c.messages(u),f=[],b.prev=10,b.next=13,Promise.resolve(c.validate(z({},t,n),V({},i)));case 13:b.next=18;break;case 15:b.prev=15,b.t0=b.catch(10),b.t0.errors&&(f=b.t0.errors.map(function(p,g){var x=p.message,S=x===Kb?u.default:x;return d.isValidElement(S)?d.cloneElement(S,{key:"error_".concat(g)}):S}));case 18:if(!(!f.length&&l)){b.next=23;break}return b.next=21,Promise.all(n.map(function(p,g){return Hm("".concat(t,".").concat(g),p,l,i,o)}));case 21:return h=b.sent,b.abrupt("return",h.reduce(function(p,g){return[].concat(ge(p),ge(g))},[]));case 23:return m=V(V({},r),{},{name:t,enum:(r.enum||[]).join(", ")},o),y=f.map(function(p){return typeof p=="string"?SF(p,m):p}),b.abrupt("return",y);case 26:case"end":return b.stop()}},e,null,[[10,15]])})),Vm.apply(this,arguments)}function CF(e,t,n,r,i,o){var a=e.join("."),s=n.map(function(u,f){var h=u.validator,m=V(V({},u),{},{ruleIndex:f});return h&&(m.validator=function(y,v,b){var p=!1,g=function(){for(var C=arguments.length,w=new Array(C),E=0;E2&&arguments[2]!==void 0?arguments[2]:!1;return e&&e.some(function(r){return o_(t,r,n)})}function o_(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;return!e||!t||!n&&e.length!==t.length?!1:t.every(function(r,i){return e[i]===r})}function _F(e,t){if(e===t)return!0;if(!e&&t||e&&!t||!e||!t||je(e)!=="object"||je(t)!=="object")return!1;var n=Object.keys(e),r=Object.keys(t),i=new Set([].concat(n,r));return ge(i).every(function(o){var a=e[o],s=t[o];return typeof a=="function"&&typeof s=="function"?!0:a===s})}function $F(e){var t=arguments.length<=1?void 0:arguments[1];return t&&t.target&&je(t.target)==="object"&&e in t.target?t.target[e]:t}function Xb(e,t,n){var r=e.length;if(t<0||t>=r||n<0||n>=r)return e;var i=e[t],o=t-n;return o>0?[].concat(ge(e.slice(0,n)),[i],ge(e.slice(n,t)),ge(e.slice(t+1,r))):o<0?[].concat(ge(e.slice(0,t)),ge(e.slice(t+1,n+1)),[i],ge(e.slice(n+1,r))):e}var OF=["name"],Pr=[];function Uh(e,t,n,r,i,o){return typeof e=="function"?e(t,n,"source"in o?{source:o.source}:{}):r!==i}var Hv=function(e){Hi(n,e);var t=Vi(n);function n(r){var i;if(hn(this,n),i=t.call(this,r),z(rt(i),"state",{resetCount:0}),z(rt(i),"cancelRegisterFunc",null),z(rt(i),"mounted",!1),z(rt(i),"touched",!1),z(rt(i),"dirty",!1),z(rt(i),"validatePromise",void 0),z(rt(i),"prevValidating",void 0),z(rt(i),"errors",Pr),z(rt(i),"warnings",Pr),z(rt(i),"cancelRegister",function(){var l=i.props,c=l.preserve,u=l.isListField,f=l.name;i.cancelRegisterFunc&&i.cancelRegisterFunc(u,c,cn(f)),i.cancelRegisterFunc=null}),z(rt(i),"getNamePath",function(){var l=i.props,c=l.name,u=l.fieldContext,f=u.prefixName,h=f===void 0?[]:f;return c!==void 0?[].concat(ge(h),ge(c)):[]}),z(rt(i),"getRules",function(){var l=i.props,c=l.rules,u=c===void 0?[]:c,f=l.fieldContext;return u.map(function(h){return typeof h=="function"?h(f):h})}),z(rt(i),"refresh",function(){i.mounted&&i.setState(function(l){var c=l.resetCount;return{resetCount:c+1}})}),z(rt(i),"metaCache",null),z(rt(i),"triggerMetaEvent",function(l){var c=i.props.onMetaChange;if(c){var u=V(V({},i.getMeta()),{},{destroy:l});vs(i.metaCache,u)||c(u),i.metaCache=u}else i.metaCache=null}),z(rt(i),"onStoreChange",function(l,c,u){var f=i.props,h=f.shouldUpdate,m=f.dependencies,y=m===void 0?[]:m,v=f.onReset,b=u.store,p=i.getNamePath(),g=i.getValue(l),x=i.getValue(b),S=c&&as(c,p);switch(u.type==="valueUpdate"&&u.source==="external"&&!vs(g,x)&&(i.touched=!0,i.dirty=!0,i.validatePromise=null,i.errors=Pr,i.warnings=Pr,i.triggerMetaEvent()),u.type){case"reset":if(!c||S){i.touched=!1,i.dirty=!1,i.validatePromise=void 0,i.errors=Pr,i.warnings=Pr,i.triggerMetaEvent(),v==null||v(),i.refresh();return}break;case"remove":{if(h&&Uh(h,l,b,g,x,u)){i.reRender();return}break}case"setField":{var C=u.data;if(S){"touched"in C&&(i.touched=C.touched),"validating"in C&&!("originRCField"in C)&&(i.validatePromise=C.validating?Promise.resolve([]):null),"errors"in C&&(i.errors=C.errors||Pr),"warnings"in C&&(i.warnings=C.warnings||Pr),i.dirty=!0,i.triggerMetaEvent(),i.reRender();return}else if("value"in C&&as(c,p,!0)){i.reRender();return}if(h&&!p.length&&Uh(h,l,b,g,x,u)){i.reRender();return}break}case"dependenciesUpdate":{var w=y.map(cn);if(w.some(function(E){return as(u.relatedFields,E)})){i.reRender();return}break}default:if(S||(!y.length||p.length||h)&&Uh(h,l,b,g,x,u)){i.reRender();return}break}h===!0&&i.reRender()}),z(rt(i),"validateRules",function(l){var c=i.getNamePath(),u=i.getValue(),f=l||{},h=f.triggerName,m=f.validateOnly,y=m===void 0?!1:m,v=Promise.resolve().then(pa(Jn().mark(function b(){var p,g,x,S,C,w,E;return Jn().wrap(function(O){for(;;)switch(O.prev=O.next){case 0:if(i.mounted){O.next=2;break}return O.abrupt("return",[]);case 2:if(p=i.props,g=p.validateFirst,x=g===void 0?!1:g,S=p.messageVariables,C=p.validateDebounce,w=i.getRules(),h&&(w=w.filter(function(M){return M}).filter(function(M){var I=M.validateTrigger;if(!I)return!0;var k=Lm(I);return k.includes(h)})),!(C&&h)){O.next=10;break}return O.next=8,new Promise(function(M){setTimeout(M,C)});case 8:if(i.validatePromise===v){O.next=10;break}return O.abrupt("return",[]);case 10:return E=CF(c,u,w,l,x,S),E.catch(function(M){return M}).then(function(){var M=arguments.length>0&&arguments[0]!==void 0?arguments[0]:Pr;if(i.validatePromise===v){var I;i.validatePromise=null;var k=[],F=[];(I=M.forEach)===null||I===void 0||I.call(M,function(j){var B=j.rule.warningOnly,A=j.errors,P=A===void 0?Pr:A;B?F.push.apply(F,ge(P)):k.push.apply(k,ge(P))}),i.errors=k,i.warnings=F,i.triggerMetaEvent(),i.reRender()}}),O.abrupt("return",E);case 13:case"end":return O.stop()}},b)})));return y||(i.validatePromise=v,i.dirty=!0,i.errors=Pr,i.warnings=Pr,i.triggerMetaEvent(),i.reRender()),v}),z(rt(i),"isFieldValidating",function(){return!!i.validatePromise}),z(rt(i),"isFieldTouched",function(){return i.touched}),z(rt(i),"isFieldDirty",function(){if(i.dirty||i.props.initialValue!==void 0)return!0;var l=i.props.fieldContext,c=l.getInternalHooks(Go),u=c.getInitialValue;return u(i.getNamePath())!==void 0}),z(rt(i),"getErrors",function(){return i.errors}),z(rt(i),"getWarnings",function(){return i.warnings}),z(rt(i),"isListField",function(){return i.props.isListField}),z(rt(i),"isList",function(){return i.props.isList}),z(rt(i),"isPreserve",function(){return i.props.preserve}),z(rt(i),"getMeta",function(){i.prevValidating=i.isFieldValidating();var l={touched:i.isFieldTouched(),validating:i.prevValidating,errors:i.errors,warnings:i.warnings,name:i.getNamePath(),validated:i.validatePromise===null};return l}),z(rt(i),"getOnlyChild",function(l){if(typeof l=="function"){var c=i.getMeta();return V(V({},i.getOnlyChild(l(i.getControlled(),c,i.props.fieldContext))),{},{isFunction:!0})}var u=Co(l);return u.length!==1||!d.isValidElement(u[0])?{child:u,isFunction:!1}:{child:u[0],isFunction:!1}}),z(rt(i),"getValue",function(l){var c=i.props.fieldContext.getFieldsValue,u=i.getNamePath();return vi(l||c(!0),u)}),z(rt(i),"getControlled",function(){var l=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},c=i.props,u=c.name,f=c.trigger,h=c.validateTrigger,m=c.getValueFromEvent,y=c.normalize,v=c.valuePropName,b=c.getValueProps,p=c.fieldContext,g=h!==void 0?h:p.validateTrigger,x=i.getNamePath(),S=p.getInternalHooks,C=p.getFieldsValue,w=S(Go),E=w.dispatch,_=i.getValue(),O=b||function(j){return z({},v,j)},M=l[f],I=u!==void 0?O(_):{},k=V(V({},l),I);k[f]=function(){i.touched=!0,i.dirty=!0,i.triggerMetaEvent();for(var j,B=arguments.length,A=new Array(B),P=0;P=0&&M<=I.length?(u.keys=[].concat(ge(u.keys.slice(0,M)),[u.id],ge(u.keys.slice(M))),x([].concat(ge(I.slice(0,M)),[O],ge(I.slice(M))))):(u.keys=[].concat(ge(u.keys),[u.id]),x([].concat(ge(I),[O]))),u.id+=1},remove:function(O){var M=C(),I=new Set(Array.isArray(O)?O:[O]);I.size<=0||(u.keys=u.keys.filter(function(k,F){return!I.has(F)}),x(M.filter(function(k,F){return!I.has(F)})))},move:function(O,M){if(O!==M){var I=C();O<0||O>=I.length||M<0||M>=I.length||(u.keys=Xb(u.keys,O,M),x(Xb(I,O,M)))}}},E=g||[];return Array.isArray(E)||(E=[]),r(E.map(function(_,O){var M=u.keys[O];return M===void 0&&(u.keys[O]=u.id,M=u.keys[O],u.id+=1),{name:O,key:M,isListField:!0}}),w,b)})))}function PF(e){var t=!1,n=e.length,r=[];return e.length?new Promise(function(i,o){e.forEach(function(a,s){a.catch(function(l){return t=!0,l}).then(function(l){n-=1,r[s]=l,!(n>0)&&(t&&o(r),i(r))})})}):Promise.resolve([])}var s_="__@field_split__";function Gh(e){return e.map(function(t){return"".concat(je(t),":").concat(t)}).join(s_)}var _a=function(){function e(){hn(this,e),z(this,"kvs",new Map)}return gn(e,[{key:"set",value:function(n,r){this.kvs.set(Gh(n),r)}},{key:"get",value:function(n){return this.kvs.get(Gh(n))}},{key:"update",value:function(n,r){var i=this.get(n),o=r(i);o?this.set(n,o):this.delete(n)}},{key:"delete",value:function(n){this.kvs.delete(Gh(n))}},{key:"map",value:function(n){return ge(this.kvs.entries()).map(function(r){var i=Q(r,2),o=i[0],a=i[1],s=o.split(s_);return n({key:s.map(function(l){var c=l.match(/^([^:]*):(.*)$/),u=Q(c,3),f=u[1],h=u[2];return f==="number"?Number(h):h}),value:a})})}},{key:"toJSON",value:function(){var n={};return this.map(function(r){var i=r.key,o=r.value;return n[i.join(".")]=o,null}),n}}]),e}(),MF=["name"],TF=gn(function e(t){var n=this;hn(this,e),z(this,"formHooked",!1),z(this,"forceRootUpdate",void 0),z(this,"subscribable",!0),z(this,"store",{}),z(this,"fieldEntities",[]),z(this,"initialValues",{}),z(this,"callbacks",{}),z(this,"validateMessages",null),z(this,"preserve",null),z(this,"lastValidatePromise",null),z(this,"getForm",function(){return{getFieldValue:n.getFieldValue,getFieldsValue:n.getFieldsValue,getFieldError:n.getFieldError,getFieldWarning:n.getFieldWarning,getFieldsError:n.getFieldsError,isFieldsTouched:n.isFieldsTouched,isFieldTouched:n.isFieldTouched,isFieldValidating:n.isFieldValidating,isFieldsValidating:n.isFieldsValidating,resetFields:n.resetFields,setFields:n.setFields,setFieldValue:n.setFieldValue,setFieldsValue:n.setFieldsValue,validateFields:n.validateFields,submit:n.submit,_init:!0,getInternalHooks:n.getInternalHooks}}),z(this,"getInternalHooks",function(r){return r===Go?(n.formHooked=!0,{dispatch:n.dispatch,initEntityValue:n.initEntityValue,registerField:n.registerField,useSubscribe:n.useSubscribe,setInitialValues:n.setInitialValues,destroyForm:n.destroyForm,setCallbacks:n.setCallbacks,setValidateMessages:n.setValidateMessages,getFields:n.getFields,setPreserve:n.setPreserve,getInitialValue:n.getInitialValue,registerWatch:n.registerWatch}):(Nn(!1,"`getInternalHooks` is internal usage. Should not call directly."),null)}),z(this,"useSubscribe",function(r){n.subscribable=r}),z(this,"prevWithoutPreserves",null),z(this,"setInitialValues",function(r,i){if(n.initialValues=r||{},i){var o,a=Xa(r,n.store);(o=n.prevWithoutPreserves)===null||o===void 0||o.map(function(s){var l=s.key;a=Yr(a,l,vi(r,l))}),n.prevWithoutPreserves=null,n.updateStore(a)}}),z(this,"destroyForm",function(r){if(r)n.updateStore({});else{var i=new _a;n.getFieldEntities(!0).forEach(function(o){n.isMergedPreserve(o.isPreserve())||i.set(o.getNamePath(),!0)}),n.prevWithoutPreserves=i}}),z(this,"getInitialValue",function(r){var i=vi(n.initialValues,r);return r.length?Xa(i):i}),z(this,"setCallbacks",function(r){n.callbacks=r}),z(this,"setValidateMessages",function(r){n.validateMessages=r}),z(this,"setPreserve",function(r){n.preserve=r}),z(this,"watchList",[]),z(this,"registerWatch",function(r){return n.watchList.push(r),function(){n.watchList=n.watchList.filter(function(i){return i!==r})}}),z(this,"notifyWatch",function(){var r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];if(n.watchList.length){var i=n.getFieldsValue(),o=n.getFieldsValue(!0);n.watchList.forEach(function(a){a(i,o,r)})}}),z(this,"timeoutId",null),z(this,"warningUnhooked",function(){}),z(this,"updateStore",function(r){n.store=r}),z(this,"getFieldEntities",function(){var r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1;return r?n.fieldEntities.filter(function(i){return i.getNamePath().length}):n.fieldEntities}),z(this,"getFieldsMap",function(){var r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1,i=new _a;return n.getFieldEntities(r).forEach(function(o){var a=o.getNamePath();i.set(a,o)}),i}),z(this,"getFieldEntitiesForNamePathList",function(r){if(!r)return n.getFieldEntities(!0);var i=n.getFieldsMap(!0);return r.map(function(o){var a=cn(o);return i.get(a)||{INVALIDATE_NAME_PATH:cn(o)}})}),z(this,"getFieldsValue",function(r,i){n.warningUnhooked();var o,a,s;if(r===!0||Array.isArray(r)?(o=r,a=i):r&&je(r)==="object"&&(s=r.strict,a=r.filter),o===!0&&!a)return n.store;var l=n.getFieldEntitiesForNamePathList(Array.isArray(o)?o:null),c=[];return l.forEach(function(u){var f,h,m="INVALIDATE_NAME_PATH"in u?u.INVALIDATE_NAME_PATH:u.getNamePath();if(s){var y,v;if((y=(v=u).isList)!==null&&y!==void 0&&y.call(v))return}else if(!o&&(f=(h=u).isListField)!==null&&f!==void 0&&f.call(h))return;if(!a)c.push(m);else{var b="getMeta"in u?u.getMeta():null;a(b)&&c.push(m)}}),qb(n.store,c.map(cn))}),z(this,"getFieldValue",function(r){n.warningUnhooked();var i=cn(r);return vi(n.store,i)}),z(this,"getFieldsError",function(r){n.warningUnhooked();var i=n.getFieldEntitiesForNamePathList(r);return i.map(function(o,a){return o&&!("INVALIDATE_NAME_PATH"in o)?{name:o.getNamePath(),errors:o.getErrors(),warnings:o.getWarnings()}:{name:cn(r[a]),errors:[],warnings:[]}})}),z(this,"getFieldError",function(r){n.warningUnhooked();var i=cn(r),o=n.getFieldsError([i])[0];return o.errors}),z(this,"getFieldWarning",function(r){n.warningUnhooked();var i=cn(r),o=n.getFieldsError([i])[0];return o.warnings}),z(this,"isFieldsTouched",function(){n.warningUnhooked();for(var r=arguments.length,i=new Array(r),o=0;o0&&arguments[0]!==void 0?arguments[0]:{},i=new _a,o=n.getFieldEntities(!0);o.forEach(function(l){var c=l.props.initialValue,u=l.getNamePath();if(c!==void 0){var f=i.get(u)||new Set;f.add({entity:l,value:c}),i.set(u,f)}});var a=function(c){c.forEach(function(u){var f=u.props.initialValue;if(f!==void 0){var h=u.getNamePath(),m=n.getInitialValue(h);if(m!==void 0)Nn(!1,"Form already set 'initialValues' with path '".concat(h.join("."),"'. Field can not overwrite it."));else{var y=i.get(h);if(y&&y.size>1)Nn(!1,"Multiple Field with path '".concat(h.join("."),"' set 'initialValue'. Can not decide which one to pick."));else if(y){var v=n.getFieldValue(h),b=u.isListField();!b&&(!r.skipExist||v===void 0)&&n.updateStore(Yr(n.store,h,ge(y)[0].value))}}}})},s;r.entities?s=r.entities:r.namePathList?(s=[],r.namePathList.forEach(function(l){var c=i.get(l);if(c){var u;(u=s).push.apply(u,ge(ge(c).map(function(f){return f.entity})))}})):s=o,a(s)}),z(this,"resetFields",function(r){n.warningUnhooked();var i=n.store;if(!r){n.updateStore(Xa(n.initialValues)),n.resetWithFieldInitialValue(),n.notifyObservers(i,null,{type:"reset"}),n.notifyWatch();return}var o=r.map(cn);o.forEach(function(a){var s=n.getInitialValue(a);n.updateStore(Yr(n.store,a,s))}),n.resetWithFieldInitialValue({namePathList:o}),n.notifyObservers(i,o,{type:"reset"}),n.notifyWatch(o)}),z(this,"setFields",function(r){n.warningUnhooked();var i=n.store,o=[];r.forEach(function(a){var s=a.name,l=st(a,MF),c=cn(s);o.push(c),"value"in l&&n.updateStore(Yr(n.store,c,l.value)),n.notifyObservers(i,[c],{type:"setField",data:a})}),n.notifyWatch(o)}),z(this,"getFields",function(){var r=n.getFieldEntities(!0),i=r.map(function(o){var a=o.getNamePath(),s=o.getMeta(),l=V(V({},s),{},{name:a,value:n.getFieldValue(a)});return Object.defineProperty(l,"originRCField",{value:!0}),l});return i}),z(this,"initEntityValue",function(r){var i=r.props.initialValue;if(i!==void 0){var o=r.getNamePath(),a=vi(n.store,o);a===void 0&&n.updateStore(Yr(n.store,o,i))}}),z(this,"isMergedPreserve",function(r){var i=r!==void 0?r:n.preserve;return i??!0}),z(this,"registerField",function(r){n.fieldEntities.push(r);var i=r.getNamePath();if(n.notifyWatch([i]),r.props.initialValue!==void 0){var o=n.store;n.resetWithFieldInitialValue({entities:[r],skipExist:!0}),n.notifyObservers(o,[r.getNamePath()],{type:"valueUpdate",source:"internal"})}return function(a,s){var l=arguments.length>2&&arguments[2]!==void 0?arguments[2]:[];if(n.fieldEntities=n.fieldEntities.filter(function(f){return f!==r}),!n.isMergedPreserve(s)&&(!a||l.length>1)){var c=a?void 0:n.getInitialValue(i);if(i.length&&n.getFieldValue(i)!==c&&n.fieldEntities.every(function(f){return!o_(f.getNamePath(),i)})){var u=n.store;n.updateStore(Yr(u,i,c,!0)),n.notifyObservers(u,[i],{type:"remove"}),n.triggerDependenciesUpdate(u,i)}}n.notifyWatch([i])}}),z(this,"dispatch",function(r){switch(r.type){case"updateValue":{var i=r.namePath,o=r.value;n.updateValue(i,o);break}case"validateField":{var a=r.namePath,s=r.triggerName;n.validateFields([a],{triggerName:s});break}}}),z(this,"notifyObservers",function(r,i,o){if(n.subscribable){var a=V(V({},o),{},{store:n.getFieldsValue(!0)});n.getFieldEntities().forEach(function(s){var l=s.onStoreChange;l(r,i,a)})}else n.forceRootUpdate()}),z(this,"triggerDependenciesUpdate",function(r,i){var o=n.getDependencyChildrenFields(i);return o.length&&n.validateFields(o),n.notifyObservers(r,o,{type:"dependenciesUpdate",relatedFields:[i].concat(ge(o))}),o}),z(this,"updateValue",function(r,i){var o=cn(r),a=n.store;n.updateStore(Yr(n.store,o,i)),n.notifyObservers(a,[o],{type:"valueUpdate",source:"internal"}),n.notifyWatch([o]);var s=n.triggerDependenciesUpdate(a,o),l=n.callbacks.onValuesChange;if(l){var c=qb(n.store,[o]);l(c,n.getFieldsValue())}n.triggerOnFieldsChange([o].concat(ge(s)))}),z(this,"setFieldsValue",function(r){n.warningUnhooked();var i=n.store;if(r){var o=Xa(n.store,r);n.updateStore(o)}n.notifyObservers(i,null,{type:"valueUpdate",source:"external"}),n.notifyWatch()}),z(this,"setFieldValue",function(r,i){n.setFields([{name:r,value:i}])}),z(this,"getDependencyChildrenFields",function(r){var i=new Set,o=[],a=new _a;n.getFieldEntities().forEach(function(l){var c=l.props.dependencies;(c||[]).forEach(function(u){var f=cn(u);a.update(f,function(){var h=arguments.length>0&&arguments[0]!==void 0?arguments[0]:new Set;return h.add(l),h})})});var s=function l(c){var u=a.get(c)||new Set;u.forEach(function(f){if(!i.has(f)){i.add(f);var h=f.getNamePath();f.isFieldDirty()&&h.length&&(o.push(h),l(h))}})};return s(r),o}),z(this,"triggerOnFieldsChange",function(r,i){var o=n.callbacks.onFieldsChange;if(o){var a=n.getFields();if(i){var s=new _a;i.forEach(function(c){var u=c.name,f=c.errors;s.set(u,f)}),a.forEach(function(c){c.errors=s.get(c.name)||c.errors})}var l=a.filter(function(c){var u=c.name;return as(r,u)});l.length&&o(l,a)}}),z(this,"validateFields",function(r,i){n.warningUnhooked();var o,a;Array.isArray(r)||typeof r=="string"||typeof i=="string"?(o=r,a=i):a=r;var s=!!o,l=s?o.map(cn):[],c=[],u=String(Date.now()),f=new Set,h=a||{},m=h.recursive,y=h.dirty;n.getFieldEntities(!0).forEach(function(g){if(s||l.push(g.getNamePath()),!(!g.props.rules||!g.props.rules.length)&&!(y&&!g.isFieldDirty())){var x=g.getNamePath();if(f.add(x.join(u)),!s||as(l,x,m)){var S=g.validateRules(V({validateMessages:V(V({},i_),n.validateMessages)},a));c.push(S.then(function(){return{name:x,errors:[],warnings:[]}}).catch(function(C){var w,E=[],_=[];return(w=C.forEach)===null||w===void 0||w.call(C,function(O){var M=O.rule.warningOnly,I=O.errors;M?_.push.apply(_,ge(I)):E.push.apply(E,ge(I))}),E.length?Promise.reject({name:x,errors:E,warnings:_}):{name:x,errors:E,warnings:_}}))}}});var v=PF(c);n.lastValidatePromise=v,v.catch(function(g){return g}).then(function(g){var x=g.map(function(S){var C=S.name;return C});n.notifyObservers(n.store,x,{type:"validateFinish"}),n.triggerOnFieldsChange(x,g)});var b=v.then(function(){return n.lastValidatePromise===v?Promise.resolve(n.getFieldsValue(l)):Promise.reject([])}).catch(function(g){var x=g.filter(function(S){return S&&S.errors.length});return Promise.reject({values:n.getFieldsValue(l),errorFields:x,outOfDate:n.lastValidatePromise!==v})});b.catch(function(g){return g});var p=l.filter(function(g){return f.has(g.join(u))});return n.triggerOnFieldsChange(p),b}),z(this,"submit",function(){n.warningUnhooked(),n.validateFields().then(function(r){var i=n.callbacks.onFinish;if(i)try{i(r)}catch(o){console.error(o)}}).catch(function(r){var i=n.callbacks.onFinishFailed;i&&i(r)})}),this.forceRootUpdate=t});function Wv(e){var t=d.useRef(),n=d.useState({}),r=Q(n,2),i=r[1];if(!t.current)if(e)t.current=e;else{var o=function(){i({})},a=new TF(o);t.current=a.getForm()}return[t.current]}var Gm=d.createContext({triggerFormChange:function(){},triggerFormFinish:function(){},registerForm:function(){},unregisterForm:function(){}}),l_=function(t){var n=t.validateMessages,r=t.onFormChange,i=t.onFormFinish,o=t.children,a=d.useContext(Gm),s=d.useRef({});return d.createElement(Gm.Provider,{value:V(V({},a),{},{validateMessages:V(V({},a.validateMessages),n),triggerFormChange:function(c,u){r&&r(c,{changedFields:u,forms:s.current}),a.triggerFormChange(c,u)},triggerFormFinish:function(c,u){i&&i(c,{values:u,forms:s.current}),a.triggerFormFinish(c,u)},registerForm:function(c,u){c&&(s.current=V(V({},s.current),{},z({},c,u))),a.registerForm(c,u)},unregisterForm:function(c){var u=V({},s.current);delete u[c],s.current=u,a.unregisterForm(c)}})},o)},RF=["name","initialValues","fields","form","preserve","children","component","validateMessages","validateTrigger","onValuesChange","onFieldsChange","onFinish","onFinishFailed","clearOnDestroy"],IF=function(t,n){var r=t.name,i=t.initialValues,o=t.fields,a=t.form,s=t.preserve,l=t.children,c=t.component,u=c===void 0?"form":c,f=t.validateMessages,h=t.validateTrigger,m=h===void 0?"onChange":h,y=t.onValuesChange,v=t.onFieldsChange,b=t.onFinish,p=t.onFinishFailed,g=t.clearOnDestroy,x=st(t,RF),S=d.useRef(null),C=d.useContext(Gm),w=Wv(a),E=Q(w,1),_=E[0],O=_.getInternalHooks(Go),M=O.useSubscribe,I=O.setInitialValues,k=O.setCallbacks,F=O.setValidateMessages,j=O.setPreserve,B=O.destroyForm;d.useImperativeHandle(n,function(){return V(V({},_),{},{nativeElement:S.current})}),d.useEffect(function(){return C.registerForm(r,_),function(){C.unregisterForm(r)}},[C,_,r]),F(V(V({},C.validateMessages),f)),k({onValuesChange:y,onFieldsChange:function(W){if(C.triggerFormChange(r,W),v){for(var K=arguments.length,ee=new Array(K>1?K-1:0),U=1;U{}}),u_=d.createContext(null),d_=e=>{const t=si(e,["prefixCls"]);return d.createElement(l_,Object.assign({},t))},Uv=d.createContext({prefixCls:""}),da=d.createContext({}),NF=e=>{let{children:t,status:n,override:r}=e;const i=d.useContext(da),o=d.useMemo(()=>{const a=Object.assign({},i);return r&&delete a.isFormItemInput,n&&(delete a.status,delete a.hasFeedback,delete a.feedbackIcon),a},[n,r,i]);return d.createElement(da.Provider,{value:o},t)},f_=d.createContext(void 0),Km=e=>{const{space:t,form:n,children:r}=e;if(r==null)return null;let i=r;return n&&(i=me.createElement(NF,{override:!0,status:!0},i)),t&&(i=me.createElement(Sk,null,i)),i},Df=e=>{const{prefixCls:t,className:n,style:r,size:i,shape:o}=e,a=te({[`${t}-lg`]:i==="large",[`${t}-sm`]:i==="small"}),s=te({[`${t}-circle`]:o==="circle",[`${t}-square`]:o==="square",[`${t}-round`]:o==="round"}),l=d.useMemo(()=>typeof i=="number"?{width:i,height:i,lineHeight:`${i}px`}:{},[i]);return d.createElement("span",{className:te(t,a,s,n),style:Object.assign(Object.assign({},l),r)})},FF=new mn("ant-skeleton-loading",{"0%":{backgroundPosition:"100% 50%"},"100%":{backgroundPosition:"0 50%"}}),zf=e=>({height:e,lineHeight:Z(e)}),ss=e=>Object.assign({width:e},zf(e)),AF=e=>({background:e.skeletonLoadingBackground,backgroundSize:"400% 100%",animationName:FF,animationDuration:e.skeletonLoadingMotionDuration,animationTimingFunction:"ease",animationIterationCount:"infinite"}),Kh=(e,t)=>Object.assign({width:t(e).mul(5).equal(),minWidth:t(e).mul(5).equal()},zf(e)),LF=e=>{const{skeletonAvatarCls:t,gradientFromColor:n,controlHeight:r,controlHeightLG:i,controlHeightSM:o}=e;return{[t]:Object.assign({display:"inline-block",verticalAlign:"top",background:n},ss(r)),[`${t}${t}-circle`]:{borderRadius:"50%"},[`${t}${t}-lg`]:Object.assign({},ss(i)),[`${t}${t}-sm`]:Object.assign({},ss(o))}},DF=e=>{const{controlHeight:t,borderRadiusSM:n,skeletonInputCls:r,controlHeightLG:i,controlHeightSM:o,gradientFromColor:a,calc:s}=e;return{[r]:Object.assign({display:"inline-block",verticalAlign:"top",background:a,borderRadius:n},Kh(t,s)),[`${r}-lg`]:Object.assign({},Kh(i,s)),[`${r}-sm`]:Object.assign({},Kh(o,s))}},Qb=e=>Object.assign({width:e},zf(e)),zF=e=>{const{skeletonImageCls:t,imageSizeBase:n,gradientFromColor:r,borderRadiusSM:i,calc:o}=e;return{[t]:Object.assign(Object.assign({display:"inline-flex",alignItems:"center",justifyContent:"center",verticalAlign:"middle",background:r,borderRadius:i},Qb(o(n).mul(2).equal())),{[`${t}-path`]:{fill:"#bfbfbf"},[`${t}-svg`]:Object.assign(Object.assign({},Qb(n)),{maxWidth:o(n).mul(4).equal(),maxHeight:o(n).mul(4).equal()}),[`${t}-svg${t}-svg-circle`]:{borderRadius:"50%"}}),[`${t}${t}-circle`]:{borderRadius:"50%"}}},qh=(e,t,n)=>{const{skeletonButtonCls:r}=e;return{[`${n}${r}-circle`]:{width:t,minWidth:t,borderRadius:"50%"},[`${n}${r}-round`]:{borderRadius:t}}},Xh=(e,t)=>Object.assign({width:t(e).mul(2).equal(),minWidth:t(e).mul(2).equal()},zf(e)),jF=e=>{const{borderRadiusSM:t,skeletonButtonCls:n,controlHeight:r,controlHeightLG:i,controlHeightSM:o,gradientFromColor:a,calc:s}=e;return Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({[n]:Object.assign({display:"inline-block",verticalAlign:"top",background:a,borderRadius:t,width:s(r).mul(2).equal(),minWidth:s(r).mul(2).equal()},Xh(r,s))},qh(e,r,n)),{[`${n}-lg`]:Object.assign({},Xh(i,s))}),qh(e,i,`${n}-lg`)),{[`${n}-sm`]:Object.assign({},Xh(o,s))}),qh(e,o,`${n}-sm`))},BF=e=>{const{componentCls:t,skeletonAvatarCls:n,skeletonTitleCls:r,skeletonParagraphCls:i,skeletonButtonCls:o,skeletonInputCls:a,skeletonImageCls:s,controlHeight:l,controlHeightLG:c,controlHeightSM:u,gradientFromColor:f,padding:h,marginSM:m,borderRadius:y,titleHeight:v,blockRadius:b,paragraphLiHeight:p,controlHeightXS:g,paragraphMarginTop:x}=e;return{[t]:{display:"table",width:"100%",[`${t}-header`]:{display:"table-cell",paddingInlineEnd:h,verticalAlign:"top",[n]:Object.assign({display:"inline-block",verticalAlign:"top",background:f},ss(l)),[`${n}-circle`]:{borderRadius:"50%"},[`${n}-lg`]:Object.assign({},ss(c)),[`${n}-sm`]:Object.assign({},ss(u))},[`${t}-content`]:{display:"table-cell",width:"100%",verticalAlign:"top",[r]:{width:"100%",height:v,background:f,borderRadius:b,[`+ ${i}`]:{marginBlockStart:u}},[i]:{padding:0,"> li":{width:"100%",height:p,listStyle:"none",background:f,borderRadius:b,"+ li":{marginBlockStart:g}}},[`${i}> li:last-child:not(:first-child):not(:nth-child(2))`]:{width:"61%"}},[`&-round ${t}-content`]:{[`${r}, ${i} > li`]:{borderRadius:y}}},[`${t}-with-avatar ${t}-content`]:{[r]:{marginBlockStart:m,[`+ ${i}`]:{marginBlockStart:x}}},[`${t}${t}-element`]:Object.assign(Object.assign(Object.assign(Object.assign({display:"inline-block",width:"auto"},jF(e)),LF(e)),DF(e)),zF(e)),[`${t}${t}-block`]:{width:"100%",[o]:{width:"100%"},[a]:{width:"100%"}},[`${t}${t}-active`]:{[` ${r}, ${i} > li, ${n}, ${o}, ${a}, ${s} - `]:Object.assign({},AF(e))}}},HF=e=>{const{colorFillContent:t,colorFill:n}=e,r=t,i=n;return{color:r,colorGradientEnd:i,gradientFromColor:r,gradientToColor:i,titleHeight:e.controlHeight/2,blockRadius:e.borderRadiusSM,paragraphMarginTop:e.marginLG+e.marginXXS,paragraphLiHeight:e.controlHeight/2}},Is=Er("Skeleton",e=>{const{componentCls:t,calc:n}=e,r=An(e,{skeletonAvatarCls:`${t}-avatar`,skeletonTitleCls:`${t}-title`,skeletonParagraphCls:`${t}-paragraph`,skeletonButtonCls:`${t}-button`,skeletonInputCls:`${t}-input`,skeletonImageCls:`${t}-image`,imageSizeBase:n(e.controlHeight).mul(1.5).equal(),borderRadius:100,skeletonLoadingBackground:`linear-gradient(90deg, ${e.gradientFromColor} 25%, ${e.gradientToColor} 37%, ${e.gradientFromColor} 63%)`,skeletonLoadingMotionDuration:"1.4s"});return[BF(r)]},HF,{deprecatedTokens:[["color","gradientFromColor"],["colorGradientEnd","gradientToColor"]]}),VF=e=>{const{prefixCls:t,className:n,rootClassName:r,active:i,shape:o="circle",size:a="default"}=e,{getPrefixCls:s}=d.useContext(bt),l=s("skeleton",t),[c,u,f]=Is(l),h=si(e,["prefixCls","className"]),m=te(l,`${l}-element`,{[`${l}-active`]:i},n,r,u,f);return c(d.createElement("div",{className:m},d.createElement(zf,Object.assign({prefixCls:`${l}-avatar`,shape:o,size:a},h))))},WF=e=>{const{prefixCls:t,className:n,rootClassName:r,active:i,block:o=!1,size:a="default"}=e,{getPrefixCls:s}=d.useContext(bt),l=s("skeleton",t),[c,u,f]=Is(l),h=si(e,["prefixCls"]),m=te(l,`${l}-element`,{[`${l}-active`]:i,[`${l}-block`]:o},n,r,u,f);return c(d.createElement("div",{className:m},d.createElement(zf,Object.assign({prefixCls:`${l}-button`,size:a},h))))},UF="M365.714286 329.142857q0 45.714286-32.036571 77.677714t-77.677714 32.036571-77.677714-32.036571-32.036571-77.677714 32.036571-77.677714 77.677714-32.036571 77.677714 32.036571 32.036571 77.677714zM950.857143 548.571429l0 256-804.571429 0 0-109.714286 182.857143-182.857143 91.428571 91.428571 292.571429-292.571429zM1005.714286 146.285714l-914.285714 0q-7.460571 0-12.873143 5.412571t-5.412571 12.873143l0 694.857143q0 7.460571 5.412571 12.873143t12.873143 5.412571l914.285714 0q7.460571 0 12.873143-5.412571t5.412571-12.873143l0-694.857143q0-7.460571-5.412571-12.873143t-12.873143-5.412571zM1097.142857 164.571429l0 694.857143q0 37.741714-26.843429 64.585143t-64.585143 26.843429l-914.285714 0q-37.741714 0-64.585143-26.843429t-26.843429-64.585143l0-694.857143q0-37.741714 26.843429-64.585143t64.585143-26.843429l914.285714 0q37.741714 0 64.585143 26.843429t26.843429 64.585143z",GF=e=>{const{prefixCls:t,className:n,rootClassName:r,style:i,active:o}=e,{getPrefixCls:a}=d.useContext(bt),s=a("skeleton",t),[l,c,u]=Is(s),f=te(s,`${s}-element`,{[`${s}-active`]:o},n,r,c,u);return l(d.createElement("div",{className:f},d.createElement("div",{className:te(`${s}-image`,n),style:i},d.createElement("svg",{viewBox:"0 0 1098 1024",xmlns:"http://www.w3.org/2000/svg",className:`${s}-image-svg`},d.createElement("title",null,"Image placeholder"),d.createElement("path",{d:UF,className:`${s}-image-path`})))))},KF=e=>{const{prefixCls:t,className:n,rootClassName:r,active:i,block:o,size:a="default"}=e,{getPrefixCls:s}=d.useContext(bt),l=s("skeleton",t),[c,u,f]=Is(l),h=si(e,["prefixCls"]),m=te(l,`${l}-element`,{[`${l}-active`]:i,[`${l}-block`]:o},n,r,u,f);return c(d.createElement("div",{className:m},d.createElement(zf,Object.assign({prefixCls:`${l}-input`,size:a},h))))},qF=e=>{const{prefixCls:t,className:n,rootClassName:r,style:i,active:o,children:a}=e,{getPrefixCls:s}=d.useContext(bt),l=s("skeleton",t),[c,u,f]=Is(l),h=te(l,`${l}-element`,{[`${l}-active`]:o},u,n,r,f);return c(d.createElement("div",{className:h},d.createElement("div",{className:te(`${l}-image`,n),style:i},a)))},XF=(e,t)=>{const{width:n,rows:r=2}=t;if(Array.isArray(n))return n[e];if(r-1===e)return n},YF=e=>{const{prefixCls:t,className:n,style:r,rows:i}=e,o=ge(new Array(i)).map((a,s)=>d.createElement("li",{key:s,style:{width:XF(s,e)}}));return d.createElement("ul",{className:te(t,n),style:r},o)},QF=e=>{let{prefixCls:t,className:n,width:r,style:i}=e;return d.createElement("h3",{className:te(t,n),style:Object.assign({width:r},i)})};function Qh(e){return e&&typeof e=="object"?e:{}}function ZF(e,t){return e&&!t?{size:"large",shape:"square"}:{size:"large",shape:"circle"}}function JF(e,t){return!e&&t?{width:"38%"}:e&&t?{width:"50%"}:{}}function eA(e,t){const n={};return(!e||!t)&&(n.width="61%"),!e&&t?n.rows=3:n.rows=2,n}const ks=e=>{const{prefixCls:t,loading:n,className:r,rootClassName:i,style:o,children:a,avatar:s=!1,title:l=!0,paragraph:c=!0,active:u,round:f}=e,{getPrefixCls:h,direction:m,skeleton:y}=d.useContext(bt),v=h("skeleton",t),[b,p,g]=Is(v);if(n||!("loading"in e)){const x=!!s,S=!!l,C=!!c;let w;if(x){const O=Object.assign(Object.assign({prefixCls:`${v}-avatar`},ZF(S,C)),Qh(s));w=d.createElement("div",{className:`${v}-header`},d.createElement(zf,Object.assign({},O)))}let E;if(S||C){let O;if(S){const I=Object.assign(Object.assign({prefixCls:`${v}-title`},JF(x,C)),Qh(l));O=d.createElement(QF,Object.assign({},I))}let M;if(C){const I=Object.assign(Object.assign({prefixCls:`${v}-paragraph`},eA(x,S)),Qh(c));M=d.createElement(YF,Object.assign({},I))}E=d.createElement("div",{className:`${v}-content`},O,M)}const _=te(v,{[`${v}-with-avatar`]:x,[`${v}-active`]:u,[`${v}-rtl`]:m==="rtl",[`${v}-round`]:f},y==null?void 0:y.className,r,i,p,g);return b(d.createElement("div",{className:_,style:Object.assign(Object.assign({},y==null?void 0:y.style),o)},w,E))}return a??null};ks.Button=WF;ks.Avatar=VF;ks.Input=KF;ks.Image=GF;ks.Node=qF;const Gv=function(){if(typeof navigator>"u"||typeof window>"u")return!1;var e=navigator.userAgent||navigator.vendor||window.opera;return/(android|bb\d+|meego).+mobile|avantgo|bada\/|blackberry|blazer|compal|elaine|fennec|hiptop|iemobile|ip(hone|od)|iris|kindle|lge |maemo|midp|mmp|mobile.+firefox|netfront|opera m(ob|in)i|palm( os)?|phone|p(ixi|re)\/|plucker|pocket|psp|series(4|6)0|symbian|treo|up\.(browser|link)|vodafone|wap|windows ce|xda|xiino|android|ipad|playbook|silk/i.test(e)||/1207|6310|6590|3gso|4thp|50[1-6]i|770s|802s|a wa|abac|ac(er|oo|s-)|ai(ko|rn)|al(av|ca|co)|amoi|an(ex|ny|yw)|aptu|ar(ch|go)|as(te|us)|attw|au(di|-m|r |s )|avan|be(ck|ll|nq)|bi(lb|rd)|bl(ac|az)|br(e|v)w|bumb|bw-(n|u)|c55\/|capi|ccwa|cdm-|cell|chtm|cldc|cmd-|co(mp|nd)|craw|da(it|ll|ng)|dbte|dc-s|devi|dica|dmob|do(c|p)o|ds(12|-d)|el(49|ai)|em(l2|ul)|er(ic|k0)|esl8|ez([4-7]0|os|wa|ze)|fetc|fly(-|_)|g1 u|g560|gene|gf-5|g-mo|go(\.w|od)|gr(ad|un)|haie|hcit|hd-(m|p|t)|hei-|hi(pt|ta)|hp( i|ip)|hs-c|ht(c(-| |_|a|g|p|s|t)|tp)|hu(aw|tc)|i-(20|go|ma)|i230|iac( |-|\/)|ibro|idea|ig01|ikom|im1k|inno|ipaq|iris|ja(t|v)a|jbro|jemu|jigs|kddi|keji|kgt( |\/)|klon|kpt |kwc-|kyo(c|k)|le(no|xi)|lg( g|\/(k|l|u)|50|54|-[a-w])|libw|lynx|m1-w|m3ga|m50\/|ma(te|ui|xo)|mc(01|21|ca)|m-cr|me(rc|ri)|mi(o8|oa|ts)|mmef|mo(01|02|bi|de|do|t(-| |o|v)|zz)|mt(50|p1|v )|mwbp|mywa|n10[0-2]|n20[2-3]|n30(0|2)|n50(0|2|5)|n7(0(0|1)|10)|ne((c|m)-|on|tf|wf|wg|wt)|nok(6|i)|nzph|o2im|op(ti|wv)|oran|owg1|p800|pan(a|d|t)|pdxg|pg(13|-([1-8]|c))|phil|pire|pl(ay|uc)|pn-2|po(ck|rt|se)|prox|psio|pt-g|qa-a|qc(07|12|21|32|60|-[2-7]|i-)|qtek|r380|r600|raks|rim9|ro(ve|zo)|s55\/|sa(ge|ma|mm|ms|ny|va)|sc(01|h-|oo|p-)|sdk\/|se(c(-|0|1)|47|mc|nd|ri)|sgh-|shar|sie(-|m)|sk-0|sl(45|id)|sm(al|ar|b3|it|t5)|so(ft|ny)|sp(01|h-|v-|v )|sy(01|mb)|t2(18|50)|t6(00|10|18)|ta(gt|lk)|tcl-|tdg-|tel(i|m)|tim-|t-mo|to(pl|sh)|ts(70|m-|m3|m5)|tx-9|up(\.b|g1|si)|utst|v400|v750|veri|vi(rg|te)|vk(40|5[0-3]|-v)|vm40|voda|vulc|vx(52|53|60|61|70|80|81|83|85|98)|w3c(-| )|webc|whit|wi(g |nc|nw)|wmlb|wonu|x700|yas-|your|zeto|zte-/i.test(e==null?void 0:e.substr(0,4))};var tA=["prefixCls","invalidate","item","renderItem","responsive","responsiveDisabled","registerSize","itemKey","className","style","children","display","order","component"],$a=void 0;function nA(e,t){var n=e.prefixCls,r=e.invalidate,i=e.item,o=e.renderItem,a=e.responsive,s=e.responsiveDisabled,l=e.registerSize,c=e.itemKey,u=e.className,f=e.style,h=e.children,m=e.display,y=e.order,v=e.component,b=v===void 0?"div":v,p=st(e,tA),g=a&&!m;function x(_){l(c,_)}d.useEffect(function(){return function(){x(null)}},[]);var S=o&&i!==$a?o(i):h,C;r||(C={opacity:g?0:1,height:g?0:$a,overflowY:g?"hidden":$a,order:a?y:$a,pointerEvents:g?"none":$a,position:g?"absolute":$a});var w={};g&&(w["aria-hidden"]=!0);var E=d.createElement(b,Pe({className:te(!r&&n,u),style:V(V({},C),f)},w,p,{ref:t}),S);return a&&(E=d.createElement(vo,{onResize:function(O){var M=O.offsetWidth;x(M)},disabled:s},E)),E}var Ol=d.forwardRef(nA);Ol.displayName="Item";function rA(e){if(typeof MessageChannel>"u")Ft(e);else{var t=new MessageChannel;t.port1.onmessage=function(){return e()},t.port2.postMessage(void 0)}}function iA(){var e=d.useRef(null),t=function(r){e.current||(e.current=[],rA(function(){ma.unstable_batchedUpdates(function(){e.current.forEach(function(i){i()}),e.current=null})})),e.current.push(r)};return t}function qs(e,t){var n=d.useState(t),r=Q(n,2),i=r[0],o=r[1],a=Cn(function(s){e(function(){o(s)})});return[i,a]}var jd=me.createContext(null),oA=["component"],aA=["className"],sA=["className"],lA=function(t,n){var r=d.useContext(jd);if(!r){var i=t.component,o=i===void 0?"div":i,a=st(t,oA);return d.createElement(o,Pe({},a,{ref:n}))}var s=r.className,l=st(r,aA),c=t.className,u=st(t,sA);return d.createElement(jd.Provider,{value:null},d.createElement(Ol,Pe({ref:n,className:te(s,c)},l,u)))},h_=d.forwardRef(lA);h_.displayName="RawItem";var cA=["prefixCls","data","renderItem","renderRawItem","itemKey","itemWidth","ssr","style","className","maxCount","renderRest","renderRawRest","suffix","component","itemComponent","onVisibleChange"],g_="responsive",m_="invalidate";function uA(e){return"+ ".concat(e.length," ...")}function dA(e,t){var n=e.prefixCls,r=n===void 0?"rc-overflow":n,i=e.data,o=i===void 0?[]:i,a=e.renderItem,s=e.renderRawItem,l=e.itemKey,c=e.itemWidth,u=c===void 0?10:c,f=e.ssr,h=e.style,m=e.className,y=e.maxCount,v=e.renderRest,b=e.renderRawRest,p=e.suffix,g=e.component,x=g===void 0?"div":g,S=e.itemComponent,C=e.onVisibleChange,w=st(e,cA),E=f==="full",_=iA(),O=qs(_,null),M=Q(O,2),I=M[0],k=M[1],F=I||0,j=qs(_,new Map),B=Q(j,2),A=B[0],P=B[1],R=qs(_,0),N=Q(R,2),D=N[0],H=N[1],G=qs(_,0),X=Q(G,2),W=X[0],K=X[1],ee=qs(_,0),U=Q(ee,2),Y=U[0],J=U[1],re=d.useState(null),ce=Q(re,2),he=ce[0],xe=ce[1],ie=d.useState(null),de=Q(ie,2),ye=de[0],be=de[1],se=d.useMemo(function(){return ye===null&&E?Number.MAX_SAFE_INTEGER:ye||0},[ye,I]),we=d.useState(!1),$e=Q(we,2),ue=$e[0],Ne=$e[1],ae="".concat(r,"-item"),Ue=Math.max(D,W),Fe=y===g_,Se=o.length&&Fe,Ve=y===m_,Be=Se||typeof y=="number"&&o.length>y,De=d.useMemo(function(){var Ee=o;return Se?I===null&&E?Ee=o:Ee=o.slice(0,Math.min(o.length,F/u)):typeof y=="number"&&(Ee=o.slice(0,y)),Ee},[o,u,I,y,Se]),He=d.useMemo(function(){return Se?o.slice(se+1):o.slice(De.length)},[o,De,Se,se]),We=d.useCallback(function(Ee,_e){var pe;return typeof l=="function"?l(Ee):(pe=l&&(Ee==null?void 0:Ee[l]))!==null&&pe!==void 0?pe:_e},[l]),ct=d.useCallback(a||function(Ee){return Ee},[a]);function ht(Ee,_e,pe){ye===Ee&&(_e===void 0||_e===he)||(be(Ee),pe||(Ne(EeF){ht(ut-1,Ee-Nt-Y+W);break}}p&>(0)+Y>F&&xe(null)}},[F,A,W,Y,We,De]);var xn=ue&&!!He.length,vt={};he!==null&&Se&&(vt={position:"absolute",left:he,top:0});var _t={prefixCls:ae,responsive:Se,component:S,invalidate:Ve},Me=s?function(Ee,_e){var pe=We(Ee,_e);return d.createElement(jd.Provider,{key:pe,value:V(V({},_t),{},{order:_e,item:Ee,itemKey:pe,registerSize:Ct,display:_e<=se})},s(Ee,_e))}:function(Ee,_e){var pe=We(Ee,_e);return d.createElement(Ol,Pe({},_t,{order:_e,key:pe,item:Ee,renderItem:ct,itemKey:pe,registerSize:Ct,display:_e<=se}))},fe,Re={order:xn?se:Number.MAX_SAFE_INTEGER,className:"".concat(ae,"-rest"),registerSize:kt,display:xn};if(b)b&&(fe=d.createElement(jd.Provider,{value:V(V({},_t),Re)},b(He)));else{var Ie=v||uA;fe=d.createElement(Ol,Pe({},_t,Re),typeof Ie=="function"?Ie(He):Ie)}var ze=d.createElement(x,Pe({className:te(!Ve&&r,m),style:h,ref:t},w),De.map(Me),Be?fe:null,p&&d.createElement(Ol,Pe({},_t,{responsive:Fe,responsiveDisabled:!Se,order:se,className:"".concat(ae,"-suffix"),registerSize:Et,display:!0,style:vt}),p));return Fe&&(ze=d.createElement(vo,{onResize:Ge,disabled:!Se},ze)),ze}var Ni=d.forwardRef(dA);Ni.displayName="Overflow";Ni.Item=h_;Ni.RESPONSIVE=g_;Ni.INVALIDATE=m_;function fA(e){var t=e.prefixCls,n=e.align,r=e.arrow,i=e.arrowPos,o=r||{},a=o.className,s=o.content,l=i.x,c=l===void 0?0:l,u=i.y,f=u===void 0?0:u,h=d.useRef();if(!n||!n.points)return null;var m={position:"absolute"};if(n.autoArrow!==!1){var y=n.points[0],v=n.points[1],b=y[0],p=y[1],g=v[0],x=v[1];b===g||!["t","b"].includes(b)?m.top=f:b==="t"?m.top=0:m.bottom=0,p===x||!["l","r"].includes(p)?m.left=c:p==="l"?m.left=0:m.right=0}return d.createElement("div",{ref:h,className:te("".concat(t,"-arrow"),a),style:m},s)}function hA(e){var t=e.prefixCls,n=e.open,r=e.zIndex,i=e.mask,o=e.motion;return i?d.createElement(To,Pe({},o,{motionAppear:!0,visible:n,removeOnLeave:!0}),function(a){var s=a.className;return d.createElement("div",{style:{zIndex:r},className:te("".concat(t,"-mask"),s)})}):null}var gA=d.memo(function(e){var t=e.children;return t},function(e,t){return t.cache}),mA=d.forwardRef(function(e,t){var n=e.popup,r=e.className,i=e.prefixCls,o=e.style,a=e.target,s=e.onVisibleChanged,l=e.open,c=e.keepDom,u=e.fresh,f=e.onClick,h=e.mask,m=e.arrow,y=e.arrowPos,v=e.align,b=e.motion,p=e.maskMotion,g=e.forceRender,x=e.getPopupContainer,S=e.autoDestroy,C=e.portal,w=e.zIndex,E=e.onMouseEnter,_=e.onMouseLeave,O=e.onPointerEnter,M=e.ready,I=e.offsetX,k=e.offsetY,F=e.offsetR,j=e.offsetB,B=e.onAlign,A=e.onPrepare,P=e.stretch,R=e.targetWidth,N=e.targetHeight,D=typeof n=="function"?n():n,H=l||c,G=(x==null?void 0:x.length)>0,X=d.useState(!x||!G),W=Q(X,2),K=W[0],ee=W[1];if(Tn(function(){!K&&G&&a&&ee(!0)},[K,G,a]),!K)return null;var U="auto",Y={left:"-1000vw",top:"-1000vh",right:U,bottom:U};if(M||!l){var J,re=v.points,ce=v.dynamicInset||((J=v._experimental)===null||J===void 0?void 0:J.dynamicInset),he=ce&&re[0][1]==="r",xe=ce&&re[0][0]==="b";he?(Y.right=F,Y.left=U):(Y.left=I,Y.right=U),xe?(Y.bottom=j,Y.top=U):(Y.top=k,Y.bottom=U)}var ie={};return P&&(P.includes("height")&&N?ie.height=N:P.includes("minHeight")&&N&&(ie.minHeight=N),P.includes("width")&&R?ie.width=R:P.includes("minWidth")&&R&&(ie.minWidth=R)),l||(ie.pointerEvents="none"),d.createElement(C,{open:g||H,getContainer:x&&function(){return x(a)},autoDestroy:S},d.createElement(hA,{prefixCls:i,open:l,zIndex:w,mask:h,motion:p}),d.createElement(vo,{onResize:B,disabled:!l},function(de){return d.createElement(To,Pe({motionAppear:!0,motionEnter:!0,motionLeave:!0,removeOnLeave:!1,forceRender:g,leavedClassName:"".concat(i,"-hidden")},b,{onAppearPrepare:A,onEnterPrepare:A,visible:l,onVisibleChanged:function(be){var se;b==null||(se=b.onVisibleChanged)===null||se===void 0||se.call(b,be),s(be)}}),function(ye,be){var se=ye.className,we=ye.style,$e=te(i,se,r);return d.createElement("div",{ref:Si(de,t,be),className:$e,style:V(V(V(V({"--arrow-x":"".concat(y.x||0,"px"),"--arrow-y":"".concat(y.y||0,"px")},Y),ie),we),{},{boxSizing:"border-box",zIndex:w},o),onMouseEnter:E,onMouseLeave:_,onPointerEnter:O,onClick:f},m&&d.createElement(fA,{prefixCls:i,arrow:m,arrowPos:y,align:v}),d.createElement(gA,{cache:!l&&!u},D))})}))}),pA=d.forwardRef(function(e,t){var n=e.children,r=e.getTriggerDOMNode,i=Mo(n),o=d.useCallback(function(s){yv(t,r?r(s):s)},[r]),a=Pc(o,n.ref);return i?d.cloneElement(n,{ref:a}):n}),Zb=d.createContext(null);function Jb(e){return e?Array.isArray(e)?e:[e]:[]}function vA(e,t,n,r){return d.useMemo(function(){var i=Jb(n??t),o=Jb(r??t),a=new Set(i),s=new Set(o);return e&&(a.has("hover")&&(a.delete("hover"),a.add("click")),s.has("hover")&&(s.delete("hover"),s.add("click"))),[a,s]},[e,t,n,r])}function yA(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],n=arguments.length>2?arguments[2]:void 0;return n?e[0]===t[0]:e[0]===t[0]&&e[1]===t[1]}function bA(e,t,n,r){for(var i=n.points,o=Object.keys(e),a=0;a1&&arguments[1]!==void 0?arguments[1]:1;return Number.isNaN(e)?t:e}function Xs(e){return fc(parseFloat(e),0)}function t1(e,t){var n=V({},e);return(t||[]).forEach(function(r){if(!(r instanceof HTMLBodyElement||r instanceof HTMLHtmlElement)){var i=Nc(r).getComputedStyle(r),o=i.overflow,a=i.overflowClipMargin,s=i.borderTopWidth,l=i.borderBottomWidth,c=i.borderLeftWidth,u=i.borderRightWidth,f=r.getBoundingClientRect(),h=r.offsetHeight,m=r.clientHeight,y=r.offsetWidth,v=r.clientWidth,b=Xs(s),p=Xs(l),g=Xs(c),x=Xs(u),S=fc(Math.round(f.width/y*1e3)/1e3),C=fc(Math.round(f.height/h*1e3)/1e3),w=(y-v-g-x)*S,E=(h-m-b-p)*C,_=b*C,O=p*C,M=g*S,I=x*S,k=0,F=0;if(o==="clip"){var j=Xs(a);k=j*S,F=j*C}var B=f.x+M-k,A=f.y+_-F,P=B+f.width+2*k-M-I-w,R=A+f.height+2*F-_-O-E;n.left=Math.max(n.left,B),n.top=Math.max(n.top,A),n.right=Math.min(n.right,P),n.bottom=Math.min(n.bottom,R)}}),n}function n1(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,n="".concat(t),r=n.match(/^(.*)\%$/);return r?e*(parseFloat(r[1])/100):parseFloat(n)}function r1(e,t){var n=t||[],r=Q(n,2),i=r[0],o=r[1];return[n1(e.width,i),n1(e.height,o)]}function i1(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"";return[e[0],e[1]]}function Oa(e,t){var n=t[0],r=t[1],i,o;return n==="t"?o=e.y:n==="b"?o=e.y+e.height:o=e.y+e.height/2,r==="l"?i=e.x:r==="r"?i=e.x+e.width:i=e.x+e.width/2,{x:i,y:o}}function Gi(e,t){var n={t:"b",b:"t",l:"r",r:"l"};return e.map(function(r,i){return i===t?n[r]||"c":r}).join("")}function xA(e,t,n,r,i,o,a){var s=d.useState({ready:!1,offsetX:0,offsetY:0,offsetR:0,offsetB:0,arrowX:0,arrowY:0,scaleX:1,scaleY:1,align:i[r]||{}}),l=Q(s,2),c=l[0],u=l[1],f=d.useRef(0),h=d.useMemo(function(){return t?Xm(t):[]},[t]),m=d.useRef({}),y=function(){m.current={}};e||y();var v=Cn(function(){if(t&&n&&e){let $t=function(Ls,Io){var xa=arguments.length>2&&arguments[2]!==void 0?arguments[2]:Ue,zc=W.x+Ls,jc=W.y+Io,Te=zc+xe,Ke=jc+he,Gt=Math.max(zc,xa.left),ln=Math.max(jc,xa.top),Kt=Math.min(Te,xa.right),Sa=Math.min(Ke,xa.bottom);return Math.max(0,(Kt-Gt)*(Sa-ln))},On=function(){pt=W.y+pe,jt=pt+he,Ye=W.x+_e,en=Ye+xe};var sn=$t,nn=On,g,x,S,C,w=t,E=w.ownerDocument,_=Nc(w),O=_.getComputedStyle(w),M=O.width,I=O.height,k=O.position,F=w.style.left,j=w.style.top,B=w.style.right,A=w.style.bottom,P=w.style.overflow,R=V(V({},i[r]),o),N=E.createElement("div");(g=w.parentElement)===null||g===void 0||g.appendChild(N),N.style.left="".concat(w.offsetLeft,"px"),N.style.top="".concat(w.offsetTop,"px"),N.style.position=k,N.style.height="".concat(w.offsetHeight,"px"),N.style.width="".concat(w.offsetWidth,"px"),w.style.left="0",w.style.top="0",w.style.right="auto",w.style.bottom="auto",w.style.overflow="hidden";var D;if(Array.isArray(n))D={x:n[0],y:n[1],width:0,height:0};else{var H,G,X=n.getBoundingClientRect();X.x=(H=X.x)!==null&&H!==void 0?H:X.left,X.y=(G=X.y)!==null&&G!==void 0?G:X.top,D={x:X.x,y:X.y,width:X.width,height:X.height}}var W=w.getBoundingClientRect();W.x=(x=W.x)!==null&&x!==void 0?x:W.left,W.y=(S=W.y)!==null&&S!==void 0?S:W.top;var K=E.documentElement,ee=K.clientWidth,U=K.clientHeight,Y=K.scrollWidth,J=K.scrollHeight,re=K.scrollTop,ce=K.scrollLeft,he=W.height,xe=W.width,ie=D.height,de=D.width,ye={left:0,top:0,right:ee,bottom:U},be={left:-ce,top:-re,right:Y-ce,bottom:J-re},se=R.htmlRegion,we="visible",$e="visibleFirst";se!=="scroll"&&se!==$e&&(se=we);var ue=se===$e,Ne=t1(be,h),ae=t1(ye,h),Ue=se===we?ae:Ne,Fe=ue?ae:Ue;w.style.left="auto",w.style.top="auto",w.style.right="0",w.style.bottom="0";var Se=w.getBoundingClientRect();w.style.left=F,w.style.top=j,w.style.right=B,w.style.bottom=A,w.style.overflow=P,(C=w.parentElement)===null||C===void 0||C.removeChild(N);var Ve=fc(Math.round(xe/parseFloat(M)*1e3)/1e3),Be=fc(Math.round(he/parseFloat(I)*1e3)/1e3);if(Ve===0||Be===0||ec(n)&&!Af(n))return;var De=R.offset,He=R.targetOffset,We=r1(W,De),ct=Q(We,2),ht=ct[0],Ge=ct[1],Ct=r1(D,He),kt=Q(Ct,2),Et=kt[0],gt=kt[1];D.x-=Et,D.y-=gt;var xn=R.points||[],vt=Q(xn,2),_t=vt[0],Me=vt[1],fe=i1(Me),Re=i1(_t),Ie=Oa(D,fe),ze=Oa(W,Re),Ee=V({},R),_e=Ie.x-ze.x+ht,pe=Ie.y-ze.y+Ge,ut=$t(_e,pe),Nt=$t(_e,pe,ae),mt=Oa(D,["t","l"]),nt=Oa(W,["t","l"]),Tt=Oa(D,["b","r"]),Ot=Oa(W,["b","r"]),At=R.overflow||{},pn=At.adjustX,Xn=At.adjustY,Qe=At.shiftX,Le=At.shiftY,dt=function(Io){return typeof Io=="boolean"?Io:Io>=0},pt,jt,Ye,en;On();var tn=dt(Xn),Yn=Re[0]===fe[0];if(tn&&Re[0]==="t"&&(jt>Fe.bottom||m.current.bt)){var Ae=pe;Yn?Ae-=he-ie:Ae=mt.y-Ot.y-Ge;var ke=$t(_e,Ae),ot=$t(_e,Ae,ae);ke>ut||ke===ut&&(!ue||ot>=Nt)?(m.current.bt=!0,pe=Ae,Ge=-Ge,Ee.points=[Gi(Re,0),Gi(fe,0)]):m.current.bt=!1}if(tn&&Re[0]==="b"&&(ptut||qe===ut&&(!ue||Xt>=Nt)?(m.current.tb=!0,pe=Ze,Ge=-Ge,Ee.points=[Gi(Re,0),Gi(fe,0)]):m.current.tb=!1}var Bt=dt(pn),Lt=Re[1]===fe[1];if(Bt&&Re[1]==="l"&&(en>Fe.right||m.current.rl)){var Ht=_e;Lt?Ht-=xe-de:Ht=mt.x-Ot.x-ht;var Dt=$t(Ht,pe),Rt=$t(Ht,pe,ae);Dt>ut||Dt===ut&&(!ue||Rt>=Nt)?(m.current.rl=!0,_e=Ht,ht=-ht,Ee.points=[Gi(Re,1),Gi(fe,1)]):m.current.rl=!1}if(Bt&&Re[1]==="r"&&(Yeut||nr===ut&&(!ue||rr>=Nt)?(m.current.lr=!0,_e=Yt,ht=-ht,Ee.points=[Gi(Re,1),Gi(fe,1)]):m.current.lr=!1}On();var Vt=Qe===!0?0:Qe;typeof Vt=="number"&&(Yeae.right&&(_e-=en-ae.right-ht,D.x>ae.right-Vt&&(_e+=D.x-ae.right+Vt)));var $n=Le===!0?0:Le;typeof $n=="number"&&(ptae.bottom&&(pe-=jt-ae.bottom-Ge,D.y>ae.bottom-$n&&(pe+=D.y-ae.bottom+$n)));var _r=W.x+_e,$r=_r+xe,Bn=W.y+pe,Ci=Bn+he,xt=D.x,Je=xt+de,St=D.y,vn=St+ie,an=Math.max(_r,xt),Wr=Math.min($r,Je),li=(an+Wr)/2,Ro=li-_r,$=Math.max(Bn,St),T=Math.min(Ci,vn),L=($+T)/2,q=L-Bn;a==null||a(t,Ee);var ne=Se.right-W.x-(_e+W.width),ve=Se.bottom-W.y-(pe+W.height);Ve===1&&(_e=Math.round(_e),ne=Math.round(ne)),Be===1&&(pe=Math.round(pe),ve=Math.round(ve));var et={ready:!0,offsetX:_e/Ve,offsetY:pe/Be,offsetR:ne/Ve,offsetB:ve/Be,arrowX:Ro/Ve,arrowY:q/Be,scaleX:Ve,scaleY:Be,align:Ee};u(et)}}),b=function(){f.current+=1;var x=f.current;Promise.resolve().then(function(){f.current===x&&v()})},p=function(){u(function(x){return V(V({},x),{},{ready:!1})})};return Tn(p,[r]),Tn(function(){e||p()},[e]),[c.ready,c.offsetX,c.offsetY,c.offsetR,c.offsetB,c.arrowX,c.arrowY,c.scaleX,c.scaleY,c.align,b]}function SA(e,t,n,r,i){Tn(function(){if(e&&t&&n){let h=function(){r(),i()};var f=h,o=t,a=n,s=Xm(o),l=Xm(a),c=Nc(a),u=new Set([c].concat(ge(s),ge(l)));return u.forEach(function(m){m.addEventListener("scroll",h,{passive:!0})}),c.addEventListener("resize",h,{passive:!0}),r(),function(){u.forEach(function(m){m.removeEventListener("scroll",h),c.removeEventListener("resize",h)})}}},[e,t,n])}function CA(e,t,n,r,i,o,a,s){var l=d.useRef(e);l.current=e,d.useEffect(function(){if(t&&r&&(!i||o)){var c=function(m){var y;l.current&&!a(((y=m.composedPath)===null||y===void 0||(y=y.call(m))===null||y===void 0?void 0:y[0])||m.target)&&s(!1)},u=Nc(r);u.addEventListener("mousedown",c,!0),u.addEventListener("contextmenu",c,!0);var f=Dd(n);return f&&(f.addEventListener("mousedown",c,!0),f.addEventListener("contextmenu",c,!0)),function(){u.removeEventListener("mousedown",c,!0),u.removeEventListener("contextmenu",c,!0),f&&(f.removeEventListener("mousedown",c,!0),f.removeEventListener("contextmenu",c,!0))}}},[t,n,r,i,o])}var wA=["prefixCls","children","action","showAction","hideAction","popupVisible","defaultPopupVisible","onPopupVisibleChange","afterPopupVisibleChange","mouseEnterDelay","mouseLeaveDelay","focusDelay","blurDelay","mask","maskClosable","getPopupContainer","forceRender","autoDestroy","destroyPopupOnHide","popup","popupClassName","popupStyle","popupPlacement","builtinPlacements","popupAlign","zIndex","stretch","getPopupClassNameFromAlign","fresh","alignPoint","onPopupClick","onPopupAlign","arrow","popupMotion","maskMotion","popupTransitionName","popupAnimation","maskTransitionName","maskAnimation","className","getTriggerDOMNode"];function EA(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:n_,t=d.forwardRef(function(n,r){var i=n.prefixCls,o=i===void 0?"rc-trigger-popup":i,a=n.children,s=n.action,l=s===void 0?"hover":s,c=n.showAction,u=n.hideAction,f=n.popupVisible,h=n.defaultPopupVisible,m=n.onPopupVisibleChange,y=n.afterPopupVisibleChange,v=n.mouseEnterDelay,b=n.mouseLeaveDelay,p=b===void 0?.1:b,g=n.focusDelay,x=n.blurDelay,S=n.mask,C=n.maskClosable,w=C===void 0?!0:C,E=n.getPopupContainer,_=n.forceRender,O=n.autoDestroy,M=n.destroyPopupOnHide,I=n.popup,k=n.popupClassName,F=n.popupStyle,j=n.popupPlacement,B=n.builtinPlacements,A=B===void 0?{}:B,P=n.popupAlign,R=n.zIndex,N=n.stretch,D=n.getPopupClassNameFromAlign,H=n.fresh,G=n.alignPoint,X=n.onPopupClick,W=n.onPopupAlign,K=n.arrow,ee=n.popupMotion,U=n.maskMotion,Y=n.popupTransitionName,J=n.popupAnimation,re=n.maskTransitionName,ce=n.maskAnimation,he=n.className,xe=n.getTriggerDOMNode,ie=st(n,wA),de=O||M||!1,ye=d.useState(!1),be=Q(ye,2),se=be[0],we=be[1];Tn(function(){we(Gv())},[]);var $e=d.useRef({}),ue=d.useContext(Zb),Ne=d.useMemo(function(){return{registerSubPopup:function(Ke,Gt){$e.current[Ke]=Gt,ue==null||ue.registerSubPopup(Ke,Gt)}}},[ue]),ae=HN(),Ue=d.useState(null),Fe=Q(Ue,2),Se=Fe[0],Ve=Fe[1],Be=d.useRef(null),De=Cn(function(Te){Be.current=Te,ec(Te)&&Se!==Te&&Ve(Te),ue==null||ue.registerSubPopup(ae,Te)}),He=d.useState(null),We=Q(He,2),ct=We[0],ht=We[1],Ge=d.useRef(null),Ct=Cn(function(Te){ec(Te)&&ct!==Te&&(ht(Te),Ge.current=Te)}),kt=d.Children.only(a),Et=(kt==null?void 0:kt.props)||{},gt={},xn=Cn(function(Te){var Ke,Gt,ln=ct;return(ln==null?void 0:ln.contains(Te))||((Ke=Dd(ln))===null||Ke===void 0?void 0:Ke.host)===Te||Te===ln||(Se==null?void 0:Se.contains(Te))||((Gt=Dd(Se))===null||Gt===void 0?void 0:Gt.host)===Te||Te===Se||Object.values($e.current).some(function(Kt){return(Kt==null?void 0:Kt.contains(Te))||Te===Kt})}),vt=e1(o,ee,J,Y),_t=e1(o,U,ce,re),Me=d.useState(h||!1),fe=Q(Me,2),Re=fe[0],Ie=fe[1],ze=f??Re,Ee=Cn(function(Te){f===void 0&&Ie(Te)});Tn(function(){Ie(f||!1)},[f]);var _e=d.useRef(ze);_e.current=ze;var pe=d.useRef([]);pe.current=[];var ut=Cn(function(Te){var Ke;Ee(Te),((Ke=pe.current[pe.current.length-1])!==null&&Ke!==void 0?Ke:ze)!==Te&&(pe.current.push(Te),m==null||m(Te))}),Nt=d.useRef(),mt=function(){clearTimeout(Nt.current)},nt=function(Ke){var Gt=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0;mt(),Gt===0?ut(Ke):Nt.current=setTimeout(function(){ut(Ke)},Gt*1e3)};d.useEffect(function(){return mt},[]);var Tt=d.useState(!1),Ot=Q(Tt,2),At=Ot[0],pn=Ot[1];Tn(function(Te){(!Te||ze)&&pn(!0)},[ze]);var Xn=d.useState(null),Qe=Q(Xn,2),Le=Qe[0],dt=Qe[1],pt=d.useState(null),jt=Q(pt,2),Ye=jt[0],en=jt[1],tn=function(Ke){en([Ke.clientX,Ke.clientY])},Yn=xA(ze,Se,G&&Ye!==null?Ye:ct,j,A,P,W),Ae=Q(Yn,11),ke=Ae[0],ot=Ae[1],Ze=Ae[2],qe=Ae[3],Xt=Ae[4],Bt=Ae[5],Lt=Ae[6],Ht=Ae[7],Dt=Ae[8],Rt=Ae[9],Yt=Ae[10],nr=vA(se,l,c,u),rr=Q(nr,2),Vt=rr[0],$n=rr[1],_r=Vt.has("click"),$r=$n.has("click")||$n.has("contextMenu"),Bn=Cn(function(){At||Yt()}),Ci=function(){_e.current&&G&&$r&&nt(!1)};SA(ze,ct,Se,Bn,Ci),Tn(function(){Bn()},[Ye,j]),Tn(function(){ze&&!(A!=null&&A[j])&&Bn()},[JSON.stringify(P)]);var xt=d.useMemo(function(){var Te=bA(A,o,Rt,G);return te(Te,D==null?void 0:D(Rt))},[Rt,D,A,o,G]);d.useImperativeHandle(r,function(){return{nativeElement:Ge.current,popupElement:Be.current,forceAlign:Bn}});var Je=d.useState(0),St=Q(Je,2),vn=St[0],an=St[1],Wr=d.useState(0),li=Q(Wr,2),Ro=li[0],$=li[1],T=function(){if(N&&ct){var Ke=ct.getBoundingClientRect();an(Ke.width),$(Ke.height)}},L=function(){T(),Bn()},q=function(Ke){pn(!1),Yt(),y==null||y(Ke)},ne=function(){return new Promise(function(Ke){T(),dt(function(){return Ke})})};Tn(function(){Le&&(Yt(),Le(),dt(null))},[Le]);function ve(Te,Ke,Gt,ln){gt[Te]=function(Kt){var Sa;ln==null||ln(Kt),nt(Ke,Gt);for(var Yf=arguments.length,E0=new Array(Yf>1?Yf-1:0),Bc=1;Bc1?Gt-1:0),Kt=1;Kt1?Gt-1:0),Kt=1;Ktt||e,$A=function(e,t){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:void 0;var r,i;const{variant:o,[e]:a}=d.useContext(bt),s=d.useContext(f_),l=a==null?void 0:a.variant;let c;typeof t<"u"?c=t:n===!1?c="borderless":c=(i=(r=s??l)!==null&&r!==void 0?r:o)!==null&&i!==void 0?i:"outlined";const u=yR.includes(c);return[c,u]};var OA={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M884 256h-75c-5.1 0-9.9 2.5-12.9 6.6L512 654.2 227.9 262.6c-3-4.1-7.8-6.6-12.9-6.6h-75c-6.5 0-10.3 7.4-6.5 12.7l352.6 486.1c12.8 17.6 39 17.6 51.7 0l352.6-486.1c3.9-5.3.1-12.7-6.4-12.7z"}}]},name:"down",theme:"outlined"},PA=function(t,n){return d.createElement(_n,Pe({},t,{ref:n,icon:OA}))},MA=d.forwardRef(PA);const hc=["xxl","xl","lg","md","sm","xs"],TA=e=>({xs:`(max-width: ${e.screenXSMax}px)`,sm:`(min-width: ${e.screenSM}px)`,md:`(min-width: ${e.screenMD}px)`,lg:`(min-width: ${e.screenLG}px)`,xl:`(min-width: ${e.screenXL}px)`,xxl:`(min-width: ${e.screenXXL}px)`}),RA=e=>{const t=e,n=[].concat(hc).reverse();return n.forEach((r,i)=>{const o=r.toUpperCase(),a=`screen${o}Min`,s=`screen${o}`;if(!(t[a]<=t[s]))throw new Error(`${a}<=${s} fails : !(${t[a]}<=${t[s]})`);if(i{const n=new Map;let r=-1,i={};return{matchHandlers:{},dispatch(o){return i=o,n.forEach(a=>a(i)),n.size>=1},subscribe(o){return n.size||this.register(),r+=1,n.set(r,o),o(i),r},unsubscribe(o){n.delete(o),n.size||this.unregister()},unregister(){Object.keys(t).forEach(o=>{const a=t[o],s=this.matchHandlers[a];s==null||s.mql.removeListener(s==null?void 0:s.listener)}),n.clear()},register(){Object.keys(t).forEach(o=>{const a=t[o],s=c=>{let{matches:u}=c;this.dispatch(Object.assign(Object.assign({},i),{[o]:u}))},l=window.matchMedia(a);l.addListener(s),this.matchHandlers[a]={mql:l,listener:s},s(l)})},responsiveMap:t}},[e])}function p_(e){var t=e.children,n=e.prefixCls,r=e.id,i=e.overlayInnerStyle,o=e.className,a=e.style;return d.createElement("div",{className:te("".concat(n,"-content"),o),style:a},d.createElement("div",{className:"".concat(n,"-inner"),id:r,role:"tooltip",style:i},typeof t=="function"?t():t))}var Pa={shiftX:64,adjustY:1},Ma={adjustX:1,shiftY:!0},Mr=[0,0],kA={left:{points:["cr","cl"],overflow:Ma,offset:[-4,0],targetOffset:Mr},right:{points:["cl","cr"],overflow:Ma,offset:[4,0],targetOffset:Mr},top:{points:["bc","tc"],overflow:Pa,offset:[0,-4],targetOffset:Mr},bottom:{points:["tc","bc"],overflow:Pa,offset:[0,4],targetOffset:Mr},topLeft:{points:["bl","tl"],overflow:Pa,offset:[0,-4],targetOffset:Mr},leftTop:{points:["tr","tl"],overflow:Ma,offset:[-4,0],targetOffset:Mr},topRight:{points:["br","tr"],overflow:Pa,offset:[0,-4],targetOffset:Mr},rightTop:{points:["tl","tr"],overflow:Ma,offset:[4,0],targetOffset:Mr},bottomRight:{points:["tr","br"],overflow:Pa,offset:[0,4],targetOffset:Mr},rightBottom:{points:["bl","br"],overflow:Ma,offset:[4,0],targetOffset:Mr},bottomLeft:{points:["tl","bl"],overflow:Pa,offset:[0,4],targetOffset:Mr},leftBottom:{points:["br","bl"],overflow:Ma,offset:[-4,0],targetOffset:Mr}},NA=["overlayClassName","trigger","mouseEnterDelay","mouseLeaveDelay","overlayStyle","prefixCls","children","onVisibleChange","afterVisibleChange","transitionName","animation","motion","placement","align","destroyTooltipOnHide","defaultVisible","getTooltipContainer","overlayInnerStyle","arrowContent","overlay","id","showArrow"],FA=function(t,n){var r=t.overlayClassName,i=t.trigger,o=i===void 0?["hover"]:i,a=t.mouseEnterDelay,s=a===void 0?0:a,l=t.mouseLeaveDelay,c=l===void 0?.1:l,u=t.overlayStyle,f=t.prefixCls,h=f===void 0?"rc-tooltip":f,m=t.children,y=t.onVisibleChange,v=t.afterVisibleChange,b=t.transitionName,p=t.animation,g=t.motion,x=t.placement,S=x===void 0?"right":x,C=t.align,w=C===void 0?{}:C,E=t.destroyTooltipOnHide,_=E===void 0?!1:E,O=t.defaultVisible,M=t.getTooltipContainer,I=t.overlayInnerStyle;t.arrowContent;var k=t.overlay,F=t.id,j=t.showArrow,B=j===void 0?!0:j,A=st(t,NA),P=d.useRef(null);d.useImperativeHandle(n,function(){return P.current});var R=V({},A);"visible"in t&&(R.popupVisible=t.visible);var N=function(){return d.createElement(p_,{key:"content",prefixCls:h,id:F,overlayInnerStyle:I},k)};return d.createElement(Kv,Pe({popupClassName:r,prefixCls:h,popup:N,action:o,builtinPlacements:kA,popupPlacement:S,ref:P,popupAlign:w,getPopupContainer:M,onPopupVisibleChange:y,afterPopupVisibleChange:v,popupTransitionName:b,popupAnimation:p,popupMotion:g,defaultPopupVisible:O,autoDestroy:_,mouseLeaveDelay:c,popupStyle:u,mouseEnterDelay:s,arrow:B},R),m)};const AA=d.forwardRef(FA);function LA(e){const{sizePopupArrow:t,borderRadiusXS:n,borderRadiusOuter:r}=e,i=t/2,o=0,a=i,s=r*1/Math.sqrt(2),l=i-r*(1-1/Math.sqrt(2)),c=i-n*(1/Math.sqrt(2)),u=r*(Math.sqrt(2)-1)+n*(1/Math.sqrt(2)),f=2*i-c,h=u,m=2*i-s,y=l,v=2*i-o,b=a,p=i*Math.sqrt(2)+r*(Math.sqrt(2)-2),g=r*(Math.sqrt(2)-1),x=`polygon(${g}px 100%, 50% ${g}px, ${2*i-g}px 100%, ${g}px 100%)`,S=`path('M ${o} ${a} A ${r} ${r} 0 0 0 ${s} ${l} L ${c} ${u} A ${n} ${n} 0 0 1 ${f} ${h} L ${m} ${y} A ${r} ${r} 0 0 0 ${v} ${b} Z')`;return{arrowShadowWidth:p,arrowPath:S,arrowPolygon:x}}const DA=(e,t,n)=>{const{sizePopupArrow:r,arrowPolygon:i,arrowPath:o,arrowShadowWidth:a,borderRadiusXS:s,calc:l}=e;return{pointerEvents:"none",width:r,height:r,overflow:"hidden","&::before":{position:"absolute",bottom:0,insetInlineStart:0,width:r,height:l(r).div(2).equal(),background:t,clipPath:{_multi_value_:!0,value:[i,o]},content:'""'},"&::after":{content:'""',position:"absolute",width:a,height:a,bottom:0,insetInline:0,margin:"auto",borderRadius:{_skip_check_:!0,value:`0 0 ${Z(s)} 0`},transform:"translateY(50%) rotate(-135deg)",boxShadow:n,zIndex:0,background:"transparent"}}},v_=8;function y_(e){const{contentRadius:t,limitVerticalRadius:n}=e,r=t>12?t+2:12;return{arrowOffsetHorizontal:r,arrowOffsetVertical:n?v_:r}}function vu(e,t){return e?t:{}}function zA(e,t,n){const{componentCls:r,boxShadowPopoverArrow:i,arrowOffsetVertical:o,arrowOffsetHorizontal:a}=e,{arrowDistance:s=0,arrowPlacement:l={left:!0,right:!0,top:!0,bottom:!0}}={};return{[r]:Object.assign(Object.assign(Object.assign(Object.assign({[`${r}-arrow`]:[Object.assign(Object.assign({position:"absolute",zIndex:1,display:"block"},DA(e,t,i)),{"&:before":{background:t}})]},vu(!!l.top,{[[`&-placement-top > ${r}-arrow`,`&-placement-topLeft > ${r}-arrow`,`&-placement-topRight > ${r}-arrow`].join(",")]:{bottom:s,transform:"translateY(100%) rotate(180deg)"},[`&-placement-top > ${r}-arrow`]:{left:{_skip_check_:!0,value:"50%"},transform:"translateX(-50%) translateY(100%) rotate(180deg)"},"&-placement-topLeft":{"--arrow-offset-horizontal":a,[`> ${r}-arrow`]:{left:{_skip_check_:!0,value:a}}},"&-placement-topRight":{"--arrow-offset-horizontal":`calc(100% - ${Z(a)})`,[`> ${r}-arrow`]:{right:{_skip_check_:!0,value:a}}}})),vu(!!l.bottom,{[[`&-placement-bottom > ${r}-arrow`,`&-placement-bottomLeft > ${r}-arrow`,`&-placement-bottomRight > ${r}-arrow`].join(",")]:{top:s,transform:"translateY(-100%)"},[`&-placement-bottom > ${r}-arrow`]:{left:{_skip_check_:!0,value:"50%"},transform:"translateX(-50%) translateY(-100%)"},"&-placement-bottomLeft":{"--arrow-offset-horizontal":a,[`> ${r}-arrow`]:{left:{_skip_check_:!0,value:a}}},"&-placement-bottomRight":{"--arrow-offset-horizontal":`calc(100% - ${Z(a)})`,[`> ${r}-arrow`]:{right:{_skip_check_:!0,value:a}}}})),vu(!!l.left,{[[`&-placement-left > ${r}-arrow`,`&-placement-leftTop > ${r}-arrow`,`&-placement-leftBottom > ${r}-arrow`].join(",")]:{right:{_skip_check_:!0,value:s},transform:"translateX(100%) rotate(90deg)"},[`&-placement-left > ${r}-arrow`]:{top:{_skip_check_:!0,value:"50%"},transform:"translateY(-50%) translateX(100%) rotate(90deg)"},[`&-placement-leftTop > ${r}-arrow`]:{top:o},[`&-placement-leftBottom > ${r}-arrow`]:{bottom:o}})),vu(!!l.right,{[[`&-placement-right > ${r}-arrow`,`&-placement-rightTop > ${r}-arrow`,`&-placement-rightBottom > ${r}-arrow`].join(",")]:{left:{_skip_check_:!0,value:s},transform:"translateX(-100%) rotate(-90deg)"},[`&-placement-right > ${r}-arrow`]:{top:{_skip_check_:!0,value:"50%"},transform:"translateY(-50%) translateX(-100%) rotate(-90deg)"},[`&-placement-rightTop > ${r}-arrow`]:{top:o},[`&-placement-rightBottom > ${r}-arrow`]:{bottom:o}}))}}function jA(e,t,n,r){if(r===!1)return{adjustX:!1,adjustY:!1};const i=r&&typeof r=="object"?r:{},o={};switch(e){case"top":case"bottom":o.shiftX=t.arrowOffsetHorizontal*2+n,o.shiftY=!0,o.adjustY=!0;break;case"left":case"right":o.shiftY=t.arrowOffsetVertical*2+n,o.shiftX=!0,o.adjustX=!0;break}const a=Object.assign(Object.assign({},o),i);return a.shiftX||(a.adjustX=!0),a.shiftY||(a.adjustY=!0),a}const a1={left:{points:["cr","cl"]},right:{points:["cl","cr"]},top:{points:["bc","tc"]},bottom:{points:["tc","bc"]},topLeft:{points:["bl","tl"]},leftTop:{points:["tr","tl"]},topRight:{points:["br","tr"]},rightTop:{points:["tl","tr"]},bottomRight:{points:["tr","br"]},rightBottom:{points:["bl","br"]},bottomLeft:{points:["tl","bl"]},leftBottom:{points:["br","bl"]}},BA={topLeft:{points:["bl","tc"]},leftTop:{points:["tr","cl"]},topRight:{points:["br","tc"]},rightTop:{points:["tl","cr"]},bottomRight:{points:["tr","bc"]},rightBottom:{points:["bl","cr"]},bottomLeft:{points:["tl","bc"]},leftBottom:{points:["br","cl"]}},HA=new Set(["topLeft","topRight","bottomLeft","bottomRight","leftTop","leftBottom","rightTop","rightBottom"]);function VA(e){const{arrowWidth:t,autoAdjustOverflow:n,arrowPointAtCenter:r,offset:i,borderRadius:o,visibleFirst:a}=e,s=t/2,l={};return Object.keys(a1).forEach(c=>{const u=r&&BA[c]||a1[c],f=Object.assign(Object.assign({},u),{offset:[0,0],dynamicInset:!0});switch(l[c]=f,HA.has(c)&&(f.autoArrow=!1),c){case"top":case"topLeft":case"topRight":f.offset[1]=-s-i;break;case"bottom":case"bottomLeft":case"bottomRight":f.offset[1]=s+i;break;case"left":case"leftTop":case"leftBottom":f.offset[0]=-s-i;break;case"right":case"rightTop":case"rightBottom":f.offset[0]=s+i;break}const h=y_({contentRadius:o,limitVerticalRadius:!0});if(r)switch(c){case"topLeft":case"bottomLeft":f.offset[0]=-h.arrowOffsetHorizontal-s;break;case"topRight":case"bottomRight":f.offset[0]=h.arrowOffsetHorizontal+s;break;case"leftTop":case"rightTop":f.offset[1]=-h.arrowOffsetHorizontal*2+s;break;case"leftBottom":case"rightBottom":f.offset[1]=h.arrowOffsetHorizontal*2-s;break}f.overflow=jA(c,h,t,n),a&&(f.htmlRegion="visibleFirst")}),l}const WA=e=>{const{componentCls:t,tooltipMaxWidth:n,tooltipColor:r,tooltipBg:i,tooltipBorderRadius:o,zIndexPopup:a,controlHeight:s,boxShadowSecondary:l,paddingSM:c,paddingXS:u}=e;return[{[t]:Object.assign(Object.assign(Object.assign(Object.assign({},Lr(e)),{position:"absolute",zIndex:a,display:"block",width:"max-content",maxWidth:n,visibility:"visible","--valid-offset-x":"var(--arrow-offset-horizontal, var(--arrow-x))",transformOrigin:["var(--valid-offset-x, 50%)","var(--arrow-y, 50%)"].join(" "),"&-hidden":{display:"none"},"--antd-arrow-background-color":i,[`${t}-inner`]:{minWidth:"1em",minHeight:s,padding:`${Z(e.calc(c).div(2).equal())} ${Z(u)}`,color:r,textAlign:"start",textDecoration:"none",wordWrap:"break-word",backgroundColor:i,borderRadius:o,boxShadow:l,boxSizing:"border-box"},[["&-placement-left","&-placement-leftTop","&-placement-leftBottom","&-placement-right","&-placement-rightTop","&-placement-rightBottom"].join(",")]:{[`${t}-inner`]:{borderRadius:e.min(o,v_)}},[`${t}-content`]:{position:"relative"}}),UR(e,(f,h)=>{let{darkColor:m}=h;return{[`&${t}-${f}`]:{[`${t}-inner`]:{backgroundColor:m},[`${t}-arrow`]:{"--antd-arrow-background-color":m}}}})),{"&-rtl":{direction:"rtl"}})},zA(e,"var(--antd-arrow-background-color)"),{[`${t}-pure`]:{position:"relative",maxWidth:"none",margin:e.sizePopupArrow}}]},UA=e=>Object.assign(Object.assign({zIndexPopup:e.zIndexPopupBase+70},y_({contentRadius:e.borderRadius,limitVerticalRadius:!0})),LA(An(e,{borderRadiusOuter:Math.min(e.borderRadiusOuter,4)}))),b_=function(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0;return Er("Tooltip",r=>{const{borderRadius:i,colorTextLightSolid:o,colorBgSpotlight:a}=r,s=An(r,{tooltipMaxWidth:250,tooltipColor:o,tooltipBorderRadius:i,tooltipBg:a});return[WA(s),oN(r,"zoom-big-fast")]},UA,{resetStyle:!1,injectStyle:t})(e)},GA=Ld.map(e=>`${e}-inverse`);function KA(e){return(arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0)?[].concat(ge(GA),ge(Ld)).includes(e):Ld.includes(e)}function x_(e,t){const n=KA(t),r=te({[`${e}-${t}`]:t&&n}),i={},o={};return t&&!n&&(i.background=t,o["--antd-arrow-background-color"]=t),{className:r,overlayStyle:i,arrowStyle:o}}const qA=e=>{const{prefixCls:t,className:n,placement:r="top",title:i,color:o,overlayInnerStyle:a}=e,{getPrefixCls:s}=d.useContext(bt),l=s("tooltip",t),[c,u,f]=b_(l),h=x_(l,o),m=h.arrowStyle,y=Object.assign(Object.assign({},a),h.overlayStyle),v=te(u,f,l,`${l}-pure`,`${l}-placement-${r}`,n,h.className);return c(d.createElement("div",{className:v,style:m},d.createElement("div",{className:`${l}-arrow`}),d.createElement(p_,Object.assign({},e,{className:u,prefixCls:l,overlayInnerStyle:y}),i)))};var XA=function(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 i=0,r=Object.getOwnPropertySymbols(e);i{var n,r;const{prefixCls:i,openClassName:o,getTooltipContainer:a,overlayClassName:s,color:l,overlayInnerStyle:c,children:u,afterOpenChange:f,afterVisibleChange:h,destroyTooltipOnHide:m,arrow:y=!0,title:v,overlay:b,builtinPlacements:p,arrowPointAtCenter:g=!1,autoAdjustOverflow:x=!0}=e,S=!!y,[,C]=Wi(),{getPopupContainer:w,getPrefixCls:E,direction:_}=d.useContext(bt),O=Pv(),M=d.useRef(null),I=()=>{var ae;(ae=M.current)===null||ae===void 0||ae.forceAlign()};d.useImperativeHandle(t,()=>{var ae;return{forceAlign:I,forcePopupAlign:()=>{O.deprecated(!1,"forcePopupAlign","forceAlign"),I()},nativeElement:(ae=M.current)===null||ae===void 0?void 0:ae.nativeElement}});const[k,F]=yo(!1,{value:(n=e.open)!==null&&n!==void 0?n:e.visible,defaultValue:(r=e.defaultOpen)!==null&&r!==void 0?r:e.defaultVisible}),j=!v&&!b&&v!==0,B=ae=>{var Ue,Fe;F(j?!1:ae),j||((Ue=e.onOpenChange)===null||Ue===void 0||Ue.call(e,ae),(Fe=e.onVisibleChange)===null||Fe===void 0||Fe.call(e,ae))},A=d.useMemo(()=>{var ae,Ue;let Fe=g;return typeof y=="object"&&(Fe=(Ue=(ae=y.pointAtCenter)!==null&&ae!==void 0?ae:y.arrowPointAtCenter)!==null&&Ue!==void 0?Ue:g),p||VA({arrowPointAtCenter:Fe,autoAdjustOverflow:x,arrowWidth:S?C.sizePopupArrow:0,borderRadius:C.borderRadius,offset:C.marginXXS,visibleFirst:!0})},[g,y,p,C]),P=d.useMemo(()=>v===0?v:b||v||"",[b,v]),R=d.createElement(qm,{space:!0},typeof P=="function"?P():P),{getPopupContainer:N,placement:D="top",mouseEnterDelay:H=.1,mouseLeaveDelay:G=.1,overlayStyle:X,rootClassName:W}=e,K=XA(e,["getPopupContainer","placement","mouseEnterDelay","mouseLeaveDelay","overlayStyle","rootClassName"]),ee=E("tooltip",i),U=E(),Y=e["data-popover-inject"];let J=k;!("open"in e)&&!("visible"in e)&&j&&(J=!1);const re=d.isValidElement(u)&&!BE(u)?u:d.createElement("span",null,u),ce=re.props,he=!ce.className||typeof ce.className=="string"?te(ce.className,o||`${ee}-open`):ce.className,[xe,ie,de]=b_(ee,!Y),ye=x_(ee,l),be=ye.arrowStyle,se=Object.assign(Object.assign({},c),ye.overlayStyle),we=te(s,{[`${ee}-rtl`]:_==="rtl"},ye.className,W,ie,de),[$e,ue]=nk("Tooltip",K.zIndex),Ne=d.createElement(AA,Object.assign({},K,{zIndex:$e,showArrow:S,placement:D,mouseEnterDelay:H,mouseLeaveDelay:G,prefixCls:ee,overlayClassName:we,overlayStyle:Object.assign(Object.assign({},be),X),getTooltipContainer:N||a||w,ref:M,builtinPlacements:A,overlay:R,visible:J,onVisibleChange:B,afterVisibleChange:f??h,overlayInnerStyle:se,arrowContent:d.createElement("span",{className:`${ee}-arrow-content`}),motion:{motionName:UE(U,"zoom-big-fast",e.transitionName),motionDeadline:1e3},destroyTooltipOnHide:!!m}),J?Nf(re,{className:he}):re);return xe(d.createElement(VE.Provider,{value:ue},Ne))}),eo=YA;eo._InternalPanelDoNotUseOrYouWillBeFired=qA;var QA=le.ESC,ZA=le.TAB;function JA(e){var t=e.visible,n=e.triggerRef,r=e.onVisibleChange,i=e.autoFocus,o=e.overlayRef,a=d.useRef(!1),s=function(){if(t){var f,h;(f=n.current)===null||f===void 0||(h=f.focus)===null||h===void 0||h.call(f),r==null||r(!1)}},l=function(){var f;return(f=o.current)!==null&&f!==void 0&&f.focus?(o.current.focus(),a.current=!0,!0):!1},c=function(f){switch(f.keyCode){case QA:s();break;case ZA:{var h=!1;a.current||(h=l()),h?f.preventDefault():s();break}}};d.useEffect(function(){return t?(window.addEventListener("keydown",c),i&&Ft(l,3),function(){window.removeEventListener("keydown",c),a.current=!1}):function(){a.current=!1}},[t])}var eL=d.forwardRef(function(e,t){var n=e.overlay,r=e.arrow,i=e.prefixCls,o=d.useMemo(function(){var s;return typeof n=="function"?s=n():s=n,s},[n]),a=Si(t,o==null?void 0:o.ref);return me.createElement(me.Fragment,null,r&&me.createElement("div",{className:"".concat(i,"-arrow")}),me.cloneElement(o,{ref:Mo(o)?a:void 0}))}),Ta={adjustX:1,adjustY:1},Ra=[0,0],tL={topLeft:{points:["bl","tl"],overflow:Ta,offset:[0,-4],targetOffset:Ra},top:{points:["bc","tc"],overflow:Ta,offset:[0,-4],targetOffset:Ra},topRight:{points:["br","tr"],overflow:Ta,offset:[0,-4],targetOffset:Ra},bottomLeft:{points:["tl","bl"],overflow:Ta,offset:[0,4],targetOffset:Ra},bottom:{points:["tc","bc"],overflow:Ta,offset:[0,4],targetOffset:Ra},bottomRight:{points:["tr","br"],overflow:Ta,offset:[0,4],targetOffset:Ra}},nL=["arrow","prefixCls","transitionName","animation","align","placement","placements","getPopupContainer","showAction","hideAction","overlayClassName","overlayStyle","visible","trigger","autoFocus","overlay","children","onVisibleChange"];function rL(e,t){var n,r=e.arrow,i=r===void 0?!1:r,o=e.prefixCls,a=o===void 0?"rc-dropdown":o,s=e.transitionName,l=e.animation,c=e.align,u=e.placement,f=u===void 0?"bottomLeft":u,h=e.placements,m=h===void 0?tL:h,y=e.getPopupContainer,v=e.showAction,b=e.hideAction,p=e.overlayClassName,g=e.overlayStyle,x=e.visible,S=e.trigger,C=S===void 0?["hover"]:S,w=e.autoFocus,E=e.overlay,_=e.children,O=e.onVisibleChange,M=st(e,nL),I=me.useState(),k=Q(I,2),F=k[0],j=k[1],B="visible"in e?x:F,A=me.useRef(null),P=me.useRef(null),R=me.useRef(null);me.useImperativeHandle(t,function(){return A.current});var N=function(Y){j(Y),O==null||O(Y)};JA({visible:B,triggerRef:R,onVisibleChange:N,autoFocus:w,overlayRef:P});var D=function(Y){var J=e.onOverlayClick;j(!1),J&&J(Y)},H=function(){return me.createElement(eL,{ref:P,overlay:E,prefixCls:a,arrow:i})},G=function(){return typeof E=="function"?H:H()},X=function(){var Y=e.minOverlayWidthMatchTrigger,J=e.alignPoint;return"minOverlayWidthMatchTrigger"in e?Y:!J},W=function(){var Y=e.openClassName;return Y!==void 0?Y:"".concat(a,"-open")},K=me.cloneElement(_,{className:te((n=_.props)===null||n===void 0?void 0:n.className,B&&W()),ref:Mo(_)?Si(R,_.ref):void 0}),ee=b;return!ee&&C.indexOf("contextMenu")!==-1&&(ee=["click"]),me.createElement(Kv,Pe({builtinPlacements:m},M,{prefixCls:a,ref:A,popupClassName:te(p,z({},"".concat(a,"-show-arrow"),i)),popupStyle:g,action:C,showAction:v,hideAction:ee,popupPlacement:f,popupAlign:c,popupTransitionName:s,popupAnimation:l,popupVisible:B,stretch:X()?"minWidth":"",popup:G(),onPopupVisibleChange:N,onPopupClick:D,getPopupContainer:y}),K)}const iL=me.forwardRef(rL);var S_=d.createContext(null);function C_(e,t){return e===void 0?null:"".concat(e,"-").concat(t)}function w_(e){var t=d.useContext(S_);return C_(t,e)}var oL=["children","locked"],ai=d.createContext(null);function aL(e,t){var n=V({},e);return Object.keys(t).forEach(function(r){var i=t[r];i!==void 0&&(n[r]=i)}),n}function gc(e){var t=e.children,n=e.locked,r=st(e,oL),i=d.useContext(ai),o=Pf(function(){return aL(i,r)},[i,r],function(a,s){return!n&&(a[0]!==s[0]||!vs(a[1],s[1],!0))});return d.createElement(ai.Provider,{value:o},t)}var sL=[],E_=d.createContext(null);function Bf(){return d.useContext(E_)}var __=d.createContext(sL);function Fc(e){var t=d.useContext(__);return d.useMemo(function(){return e!==void 0?[].concat(ge(t),[e]):t},[t,e])}var $_=d.createContext(null),qv=d.createContext({});function s1(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;if(Af(e)){var n=e.nodeName.toLowerCase(),r=["input","select","textarea","button"].includes(n)||e.isContentEditable||n==="a"&&!!e.getAttribute("href"),i=e.getAttribute("tabindex"),o=Number(i),a=null;return i&&!Number.isNaN(o)?a=o:r&&a===null&&(a=0),r&&e.disabled&&(a=null),a!==null&&(a>=0||t&&a<0)}return!1}function lL(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,n=ge(e.querySelectorAll("*")).filter(function(r){return s1(r,t)});return s1(e,t)&&n.unshift(e),n}var Ym=le.LEFT,Qm=le.RIGHT,Zm=le.UP,td=le.DOWN,nd=le.ENTER,O_=le.ESC,Ys=le.HOME,Qs=le.END,l1=[Zm,td,Ym,Qm];function cL(e,t,n,r){var i,o="prev",a="next",s="children",l="parent";if(e==="inline"&&r===nd)return{inlineTrigger:!0};var c=z(z({},Zm,o),td,a),u=z(z(z(z({},Ym,n?a:o),Qm,n?o:a),td,s),nd,s),f=z(z(z(z(z(z({},Zm,o),td,a),nd,s),O_,l),Ym,n?s:l),Qm,n?l:s),h={inline:c,horizontal:u,vertical:f,inlineSub:c,horizontalSub:f,verticalSub:f},m=(i=h["".concat(e).concat(t?"":"Sub")])===null||i===void 0?void 0:i[r];switch(m){case o:return{offset:-1,sibling:!0};case a:return{offset:1,sibling:!0};case l:return{offset:-1,sibling:!1};case s:return{offset:1,sibling:!1};default:return null}}function uL(e){for(var t=e;t;){if(t.getAttribute("data-menu-list"))return t;t=t.parentElement}return null}function dL(e,t){for(var n=e||document.activeElement;n;){if(t.has(n))return n;n=n.parentElement}return null}function Xv(e,t){var n=lL(e,!0);return n.filter(function(r){return t.has(r)})}function c1(e,t,n){var r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:1;if(!e)return null;var i=Xv(e,t),o=i.length,a=i.findIndex(function(s){return n===s});return r<0?a===-1?a=o-1:a-=1:r>0&&(a+=1),a=(a+o)%o,i[a]}var Jm=function(t,n){var r=new Set,i=new Map,o=new Map;return t.forEach(function(a){var s=document.querySelector("[data-menu-id='".concat(C_(n,a),"']"));s&&(r.add(s),o.set(s,a),i.set(a,s))}),{elements:r,key2element:i,element2key:o}};function fL(e,t,n,r,i,o,a,s,l,c){var u=d.useRef(),f=d.useRef();f.current=t;var h=function(){Ft.cancel(u.current)};return d.useEffect(function(){return function(){h()}},[]),function(m){var y=m.which;if([].concat(l1,[nd,O_,Ys,Qs]).includes(y)){var v=o(),b=Jm(v,r),p=b,g=p.elements,x=p.key2element,S=p.element2key,C=x.get(t),w=dL(C,g),E=S.get(w),_=cL(e,a(E,!0).length===1,n,y);if(!_&&y!==Ys&&y!==Qs)return;(l1.includes(y)||[Ys,Qs].includes(y))&&m.preventDefault();var O=function(P){if(P){var R=P,N=P.querySelector("a");N!=null&&N.getAttribute("href")&&(R=N);var D=S.get(P);s(D),h(),u.current=Ft(function(){f.current===D&&R.focus()})}};if([Ys,Qs].includes(y)||_.sibling||!w){var M;!w||e==="inline"?M=i.current:M=uL(w);var I,k=Xv(M,g);y===Ys?I=k[0]:y===Qs?I=k[k.length-1]:I=c1(M,g,w,_.offset),O(I)}else if(_.inlineTrigger)l(E);else if(_.offset>0)l(E,!0),h(),u.current=Ft(function(){b=Jm(v,r);var A=w.getAttribute("aria-controls"),P=document.getElementById(A),R=c1(P,b.elements);O(R)},5);else if(_.offset<0){var F=a(E,!0),j=F[F.length-2],B=x.get(j);l(j,!1),O(B)}}c==null||c(m)}}function hL(e){Promise.resolve().then(e)}var Yv="__RC_UTIL_PATH_SPLIT__",u1=function(t){return t.join(Yv)},gL=function(t){return t.split(Yv)},ep="rc-menu-more";function mL(){var e=d.useState({}),t=Q(e,2),n=t[1],r=d.useRef(new Map),i=d.useRef(new Map),o=d.useState([]),a=Q(o,2),s=a[0],l=a[1],c=d.useRef(0),u=d.useRef(!1),f=function(){u.current||n({})},h=d.useCallback(function(x,S){var C=u1(S);i.current.set(C,x),r.current.set(x,C),c.current+=1;var w=c.current;hL(function(){w===c.current&&f()})},[]),m=d.useCallback(function(x,S){var C=u1(S);i.current.delete(C),r.current.delete(x)},[]),y=d.useCallback(function(x){l(x)},[]),v=d.useCallback(function(x,S){var C=r.current.get(x)||"",w=gL(C);return S&&s.includes(w[0])&&w.unshift(ep),w},[s]),b=d.useCallback(function(x,S){return x.filter(function(C){return C!==void 0}).some(function(C){var w=v(C,!0);return w.includes(S)})},[v]),p=function(){var S=ge(r.current.keys());return s.length&&S.push(ep),S},g=d.useCallback(function(x){var S="".concat(r.current.get(x)).concat(Yv),C=new Set;return ge(i.current.keys()).forEach(function(w){w.startsWith(S)&&C.add(i.current.get(w))}),C},[]);return d.useEffect(function(){return function(){u.current=!0}},[]),{registerPath:h,unregisterPath:m,refreshOverflowKeys:y,isSubPathKey:b,getKeyPath:v,getKeys:p,getSubPathKeys:g}}function ll(e){var t=d.useRef(e);t.current=e;var n=d.useCallback(function(){for(var r,i=arguments.length,o=new Array(i),a=0;a1&&(g.motionAppear=!1);var x=g.onVisibleChanged;return g.onVisibleChanged=function(S){return!h.current&&!S&&b(!0),x==null?void 0:x(S)},v?null:d.createElement(gc,{mode:o,locked:!h.current},d.createElement(To,Pe({visible:p},g,{forceRender:l,removeOnLeave:!1,leavedClassName:"".concat(s,"-hidden")}),function(S){var C=S.className,w=S.style;return d.createElement(Qv,{id:t,className:C,style:w},i)}))}var IL=["style","className","title","eventKey","warnKey","disabled","internalPopupClose","children","itemIcon","expandIcon","popupClassName","popupOffset","popupStyle","onClick","onMouseEnter","onMouseLeave","onTitleClick","onTitleMouseEnter","onTitleMouseLeave"],kL=["active"],NL=d.forwardRef(function(e,t){var n=e.style,r=e.className,i=e.title,o=e.eventKey;e.warnKey;var a=e.disabled,s=e.internalPopupClose,l=e.children,c=e.itemIcon,u=e.expandIcon,f=e.popupClassName,h=e.popupOffset,m=e.popupStyle,y=e.onClick,v=e.onMouseEnter,b=e.onMouseLeave,p=e.onTitleClick,g=e.onTitleMouseEnter,x=e.onTitleMouseLeave,S=st(e,IL),C=w_(o),w=d.useContext(ai),E=w.prefixCls,_=w.mode,O=w.openKeys,M=w.disabled,I=w.overflowDisabled,k=w.activeKey,F=w.selectedKeys,j=w.itemIcon,B=w.expandIcon,A=w.onItemClick,P=w.onOpenChange,R=w.onActive,N=d.useContext(qv),D=N._internalRenderSubMenuItem,H=d.useContext($_),G=H.isSubPathKey,X=Fc(),W="".concat(E,"-submenu"),K=M||a,ee=d.useRef(),U=d.useRef(),Y=c??j,J=u??B,re=O.includes(o),ce=!I&&re,he=G(F,o),xe=P_(o,K,g,x),ie=xe.active,de=st(xe,kL),ye=d.useState(!1),be=Q(ye,2),se=be[0],we=be[1],$e=function(Ct){K||we(Ct)},ue=function(Ct){$e(!0),v==null||v({key:o,domEvent:Ct})},Ne=function(Ct){$e(!1),b==null||b({key:o,domEvent:Ct})},ae=d.useMemo(function(){return ie||(_!=="inline"?se||G([k],o):!1)},[_,ie,k,se,o,G]),Ue=M_(X.length),Fe=function(Ct){K||(p==null||p({key:o,domEvent:Ct}),_==="inline"&&P(o,!re))},Se=ll(function(Ge){y==null||y(Bd(Ge)),A(Ge)}),Ve=function(Ct){_!=="inline"&&P(o,Ct)},Be=function(){R(o)},De=C&&"".concat(C,"-popup"),He=d.createElement("div",Pe({role:"menuitem",style:Ue,className:"".concat(W,"-title"),tabIndex:K?null:-1,ref:ee,title:typeof i=="string"?i:null,"data-menu-id":I&&C?null:C,"aria-expanded":ce,"aria-haspopup":!0,"aria-controls":De,"aria-disabled":K,onClick:Fe,onFocus:Be},de),i,d.createElement(T_,{icon:_!=="horizontal"?J:void 0,props:V(V({},e),{},{isOpen:ce,isSubMenu:!0})},d.createElement("i",{className:"".concat(W,"-arrow")}))),We=d.useRef(_);if(_!=="inline"&&X.length>1?We.current="vertical":We.current=_,!I){var ct=We.current;He=d.createElement(TL,{mode:ct,prefixCls:W,visible:!s&&ce&&_!=="inline",popupClassName:f,popupOffset:h,popupStyle:m,popup:d.createElement(gc,{mode:ct==="horizontal"?"vertical":ct},d.createElement(Qv,{id:De,ref:U},l)),disabled:K,onVisibleChange:Ve},He)}var ht=d.createElement(Ni.Item,Pe({ref:t,role:"none"},S,{component:"li",style:n,className:te(W,"".concat(W,"-").concat(_),r,z(z(z(z({},"".concat(W,"-open"),ce),"".concat(W,"-active"),ae),"".concat(W,"-selected"),he),"".concat(W,"-disabled"),K)),onMouseEnter:ue,onMouseLeave:Ne}),He,!I&&d.createElement(RL,{id:De,open:ce,keyPath:X},l));return D&&(ht=D(ht,e,{selected:he,active:ae,open:ce,disabled:K})),d.createElement(gc,{onItemClick:Se,mode:_==="horizontal"?"vertical":_,itemIcon:Y,expandIcon:J},ht)}),Jv=d.forwardRef(function(e,t){var n=e.eventKey,r=e.children,i=Fc(n),o=Zv(r,i),a=Bf();d.useEffect(function(){if(a)return a.registerPath(n,i),function(){a.unregisterPath(n,i)}},[i]);var s;return a?s=o:s=d.createElement(NL,Pe({ref:t},e),o),d.createElement(__.Provider,{value:i},s)});function I_(e){var t=e.className,n=e.style,r=d.useContext(ai),i=r.prefixCls,o=Bf();return o?null:d.createElement("li",{role:"separator",className:te("".concat(i,"-item-divider"),t),style:n})}var FL=["className","title","eventKey","children"],AL=d.forwardRef(function(e,t){var n=e.className,r=e.title;e.eventKey;var i=e.children,o=st(e,FL),a=d.useContext(ai),s=a.prefixCls,l="".concat(s,"-item-group");return d.createElement("li",Pe({ref:t,role:"presentation"},o,{onClick:function(u){return u.stopPropagation()},className:te(l,n)}),d.createElement("div",{role:"presentation",className:"".concat(l,"-title"),title:typeof r=="string"?r:void 0},r),d.createElement("ul",{role:"group",className:"".concat(l,"-list")},i))}),k_=d.forwardRef(function(e,t){var n=e.eventKey,r=e.children,i=Fc(n),o=Zv(r,i),a=Bf();return a?o:d.createElement(AL,Pe({ref:t},si(e,["warnKey"])),o)}),LL=["label","children","key","type","extra"];function tp(e,t,n){var r=t.item,i=t.group,o=t.submenu,a=t.divider;return(e||[]).map(function(s,l){if(s&&je(s)==="object"){var c=s,u=c.label,f=c.children,h=c.key,m=c.type,y=c.extra,v=st(c,LL),b=h??"tmp-".concat(l);return f||m==="group"?m==="group"?d.createElement(i,Pe({key:b},v,{title:u}),tp(f,t,n)):d.createElement(o,Pe({key:b},v,{title:u}),tp(f,t,n)):m==="divider"?d.createElement(a,Pe({key:b},v)):d.createElement(r,Pe({key:b},v),u,(!!y||y===0)&&d.createElement("span",{className:"".concat(n,"-item-extra")},y))}return null}).filter(function(s){return s})}function f1(e,t,n,r,i){var o=e,a=V({divider:I_,item:Hf,group:k_,submenu:Jv},r);return t&&(o=tp(t,a,i)),Zv(o,n)}var DL=["prefixCls","rootClassName","style","className","tabIndex","items","children","direction","id","mode","inlineCollapsed","disabled","disabledOverflow","subMenuOpenDelay","subMenuCloseDelay","forceSubMenuRender","defaultOpenKeys","openKeys","activeKey","defaultActiveFirst","selectable","multiple","defaultSelectedKeys","selectedKeys","onSelect","onDeselect","inlineIndent","motion","defaultMotions","triggerSubMenuAction","builtinPlacements","itemIcon","expandIcon","overflowedIndicator","overflowedIndicatorPopupClassName","getPopupContainer","onClick","onOpenChange","onKeyDown","openAnimation","openTransitionName","_internalRenderMenuItem","_internalRenderSubMenuItem","_internalComponents"],No=[],zL=d.forwardRef(function(e,t){var n,r=e,i=r.prefixCls,o=i===void 0?"rc-menu":i,a=r.rootClassName,s=r.style,l=r.className,c=r.tabIndex,u=c===void 0?0:c,f=r.items,h=r.children,m=r.direction,y=r.id,v=r.mode,b=v===void 0?"vertical":v,p=r.inlineCollapsed,g=r.disabled,x=r.disabledOverflow,S=r.subMenuOpenDelay,C=S===void 0?.1:S,w=r.subMenuCloseDelay,E=w===void 0?.1:w,_=r.forceSubMenuRender,O=r.defaultOpenKeys,M=r.openKeys,I=r.activeKey,k=r.defaultActiveFirst,F=r.selectable,j=F===void 0?!0:F,B=r.multiple,A=B===void 0?!1:B,P=r.defaultSelectedKeys,R=r.selectedKeys,N=r.onSelect,D=r.onDeselect,H=r.inlineIndent,G=H===void 0?24:H,X=r.motion,W=r.defaultMotions,K=r.triggerSubMenuAction,ee=K===void 0?"hover":K,U=r.builtinPlacements,Y=r.itemIcon,J=r.expandIcon,re=r.overflowedIndicator,ce=re===void 0?"...":re,he=r.overflowedIndicatorPopupClassName,xe=r.getPopupContainer,ie=r.onClick,de=r.onOpenChange,ye=r.onKeyDown;r.openAnimation,r.openTransitionName;var be=r._internalRenderMenuItem,se=r._internalRenderSubMenuItem,we=r._internalComponents,$e=st(r,DL),ue=d.useMemo(function(){return[f1(h,f,No,we,o),f1(h,f,No,{},o)]},[h,f,we]),Ne=Q(ue,2),ae=Ne[0],Ue=Ne[1],Fe=d.useState(!1),Se=Q(Fe,2),Ve=Se[0],Be=Se[1],De=d.useRef(),He=vL(y),We=m==="rtl",ct=yo(O,{value:M,postState:function(Je){return Je||No}}),ht=Q(ct,2),Ge=ht[0],Ct=ht[1],kt=function(Je){var St=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;function vn(){Ct(Je),de==null||de(Je)}St?ma.flushSync(vn):vn()},Et=d.useState(Ge),gt=Q(Et,2),xn=gt[0],vt=gt[1],_t=d.useRef(!1),Me=d.useMemo(function(){return(b==="inline"||b==="vertical")&&p?["vertical",p]:[b,!1]},[b,p]),fe=Q(Me,2),Re=fe[0],Ie=fe[1],ze=Re==="inline",Ee=d.useState(Re),_e=Q(Ee,2),pe=_e[0],ut=_e[1],Nt=d.useState(Ie),mt=Q(Nt,2),nt=mt[0],Tt=mt[1];d.useEffect(function(){ut(Re),Tt(Ie),_t.current&&(ze?Ct(xn):kt(No))},[Re,Ie]);var Ot=d.useState(0),At=Q(Ot,2),pn=At[0],Xn=At[1],Qe=pn>=ae.length-1||pe!=="horizontal"||x;d.useEffect(function(){ze&&vt(Ge)},[Ge]),d.useEffect(function(){return _t.current=!0,function(){_t.current=!1}},[]);var Le=mL(),dt=Le.registerPath,pt=Le.unregisterPath,jt=Le.refreshOverflowKeys,Ye=Le.isSubPathKey,en=Le.getKeyPath,tn=Le.getKeys,Yn=Le.getSubPathKeys,Ae=d.useMemo(function(){return{registerPath:dt,unregisterPath:pt}},[dt,pt]),ke=d.useMemo(function(){return{isSubPathKey:Ye}},[Ye]);d.useEffect(function(){jt(Qe?No:ae.slice(pn+1).map(function(xt){return xt.key}))},[pn,Qe]);var ot=yo(I||k&&((n=ae[0])===null||n===void 0?void 0:n.key),{value:I}),Ze=Q(ot,2),qe=Ze[0],Xt=Ze[1],Bt=ll(function(xt){Xt(xt)}),Lt=ll(function(){Xt(void 0)});d.useImperativeHandle(t,function(){return{list:De.current,focus:function(Je){var St,vn=tn(),an=Jm(vn,He),Wr=an.elements,li=an.key2element,Ro=an.element2key,$=Xv(De.current,Wr),T=qe??($[0]?Ro.get($[0]):(St=ae.find(function(ne){return!ne.props.disabled}))===null||St===void 0?void 0:St.key),L=li.get(T);if(T&&L){var q;L==null||(q=L.focus)===null||q===void 0||q.call(L,Je)}}}});var Ht=yo(P||[],{value:R,postState:function(Je){return Array.isArray(Je)?Je:Je==null?No:[Je]}}),Dt=Q(Ht,2),Rt=Dt[0],Yt=Dt[1],nr=function(Je){if(j){var St=Je.key,vn=Rt.includes(St),an;A?vn?an=Rt.filter(function(li){return li!==St}):an=[].concat(ge(Rt),[St]):an=[St],Yt(an);var Wr=V(V({},Je),{},{selectedKeys:an});vn?D==null||D(Wr):N==null||N(Wr)}!A&&Ge.length&&pe!=="inline"&&kt(No)},rr=ll(function(xt){ie==null||ie(Bd(xt)),nr(xt)}),Vt=ll(function(xt,Je){var St=Ge.filter(function(an){return an!==xt});if(Je)St.push(xt);else if(pe!=="inline"){var vn=Yn(xt);St=St.filter(function(an){return!vn.has(an)})}vs(Ge,St,!0)||kt(St,!0)}),$n=function(Je,St){var vn=St??!Ge.includes(Je);Vt(Je,vn)},_r=fL(pe,qe,We,He,De,tn,en,Xt,$n,ye);d.useEffect(function(){Be(!0)},[]);var $r=d.useMemo(function(){return{_internalRenderMenuItem:be,_internalRenderSubMenuItem:se}},[be,se]),Bn=pe!=="horizontal"||x?ae:ae.map(function(xt,Je){return d.createElement(gc,{key:xt.key,overflowDisabled:Je>pn},xt)}),Ci=d.createElement(Ni,Pe({id:y,ref:De,prefixCls:"".concat(o,"-overflow"),component:"ul",itemComponent:Hf,className:te(o,"".concat(o,"-root"),"".concat(o,"-").concat(pe),l,z(z({},"".concat(o,"-inline-collapsed"),nt),"".concat(o,"-rtl"),We),a),dir:m,style:s,role:"menu",tabIndex:u,data:Bn,renderRawItem:function(Je){return Je},renderRawRest:function(Je){var St=Je.length,vn=St?ae.slice(-St):null;return d.createElement(Jv,{eventKey:ep,title:ce,disabled:Qe,internalPopupClose:St===0,popupClassName:he},vn)},maxCount:pe!=="horizontal"||x?Ni.INVALIDATE:Ni.RESPONSIVE,ssr:"full","data-menu-list":!0,onVisibleChange:function(Je){Xn(Je)},onKeyDown:_r},$e));return d.createElement(qv.Provider,{value:$r},d.createElement(S_.Provider,{value:He},d.createElement(gc,{prefixCls:o,rootClassName:a,mode:pe,openKeys:Ge,rtl:We,disabled:g,motion:Ve?X:null,defaultMotions:Ve?W:null,activeKey:qe,onActive:Bt,onInactive:Lt,selectedKeys:Rt,inlineIndent:G,subMenuOpenDelay:C,subMenuCloseDelay:E,forceSubMenuRender:_,builtinPlacements:U,triggerSubMenuAction:ee,getPopupContainer:xe,itemIcon:Y,expandIcon:J,onItemClick:rr,onOpenChange:Vt},d.createElement($_.Provider,{value:ke},Ci),d.createElement("div",{style:{display:"none"},"aria-hidden":!0},d.createElement(E_.Provider,{value:Ae},Ue)))))}),Ac=zL;Ac.Item=Hf;Ac.SubMenu=Jv;Ac.ItemGroup=k_;Ac.Divider=I_;var jL={icon:{tag:"svg",attrs:{viewBox:"0 0 1024 1024",focusable:"false"},children:[{tag:"path",attrs:{d:"M912 192H328c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h584c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm0 284H328c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h584c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm0 284H328c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h584c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zM104 228a56 56 0 10112 0 56 56 0 10-112 0zm0 284a56 56 0 10112 0 56 56 0 10-112 0zm0 284a56 56 0 10112 0 56 56 0 10-112 0z"}}]},name:"bars",theme:"outlined"},BL=function(t,n){return d.createElement(_n,Pe({},t,{ref:n,icon:jL}))},HL=d.forwardRef(BL),VL={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M724 218.3V141c0-6.7-7.7-10.4-12.9-6.3L260.3 486.8a31.86 31.86 0 000 50.3l450.8 352.1c5.3 4.1 12.9.4 12.9-6.3v-77.3c0-4.9-2.3-9.6-6.1-12.6l-360-281 360-281.1c3.8-3 6.1-7.7 6.1-12.6z"}}]},name:"left",theme:"outlined"},WL=function(t,n){return d.createElement(_n,Pe({},t,{ref:n,icon:VL}))},h1=d.forwardRef(WL);const UL=e=>!isNaN(parseFloat(e))&&isFinite(e),N_=d.createContext({siderHook:{addSider:()=>null,removeSider:()=>null}}),GL=e=>{const{antCls:t,componentCls:n,colorText:r,footerBg:i,headerHeight:o,headerPadding:a,headerColor:s,footerPadding:l,fontSize:c,bodyBg:u,headerBg:f}=e;return{[n]:{display:"flex",flex:"auto",flexDirection:"column",minHeight:0,background:u,"&, *":{boxSizing:"border-box"},[`&${n}-has-sider`]:{flexDirection:"row",[`> ${n}, > ${n}-content`]:{width:0}},[`${n}-header, &${n}-footer`]:{flex:"0 0 auto"},"&-rtl":{direction:"rtl"}},[`${n}-header`]:{height:o,padding:a,color:s,lineHeight:Z(o),background:f,[`${t}-menu`]:{lineHeight:"inherit"}},[`${n}-footer`]:{padding:l,color:r,fontSize:c,background:i},[`${n}-content`]:{flex:"auto",color:r,minHeight:0}}},F_=e=>{const{colorBgLayout:t,controlHeight:n,controlHeightLG:r,colorText:i,controlHeightSM:o,marginXXS:a,colorTextLightSolid:s,colorBgContainer:l}=e,c=r*1.25;return{colorBgHeader:"#001529",colorBgBody:t,colorBgTrigger:"#002140",bodyBg:t,headerBg:"#001529",headerHeight:n*2,headerPadding:`0 ${c}px`,headerColor:i,footerPadding:`${o}px ${c}px`,footerBg:t,siderBg:"#001529",triggerHeight:r+a*2,triggerBg:"#002140",triggerColor:s,zeroTriggerWidth:r,zeroTriggerHeight:r,lightSiderBg:l,lightTriggerBg:l,lightTriggerColor:i}},A_=[["colorBgBody","bodyBg"],["colorBgHeader","headerBg"],["colorBgTrigger","triggerBg"]],L_=Er("Layout",e=>[GL(e)],F_,{deprecatedTokens:A_}),KL=e=>{const{componentCls:t,siderBg:n,motionDurationMid:r,motionDurationSlow:i,antCls:o,triggerHeight:a,triggerColor:s,triggerBg:l,headerHeight:c,zeroTriggerWidth:u,zeroTriggerHeight:f,borderRadius:h,lightSiderBg:m,lightTriggerColor:y,lightTriggerBg:v,bodyBg:b}=e;return{[t]:{position:"relative",minWidth:0,background:n,transition:`all ${r}, background 0s`,"&-has-trigger":{paddingBottom:a},"&-right":{order:1},[`${t}-children`]:{height:"100%",marginTop:-.1,paddingTop:.1,[`${o}-menu${o}-menu-inline-collapsed`]:{width:"auto"}},[`${t}-trigger`]:{position:"fixed",bottom:0,zIndex:1,height:a,color:s,lineHeight:Z(a),textAlign:"center",background:l,cursor:"pointer",transition:`all ${r}`},"&-zero-width":{"> *":{overflow:"hidden"},[`${t}-trigger`]:{position:"absolute",top:c,insetInlineEnd:e.calc(u).mul(-1).equal(),zIndex:1,width:u,height:f,color:s,fontSize:e.fontSizeXL,display:"flex",alignItems:"center",justifyContent:"center",background:n,borderStartStartRadius:0,borderStartEndRadius:h,borderEndEndRadius:h,borderEndStartRadius:0,cursor:"pointer",transition:`background ${i} ease`,"&::after":{position:"absolute",inset:0,background:"transparent",transition:`all ${i}`,content:'""'},"&:hover::after":{background:"rgba(255, 255, 255, 0.2)"},"&-right":{insetInlineStart:e.calc(u).mul(-1).equal(),borderStartStartRadius:h,borderStartEndRadius:0,borderEndEndRadius:0,borderEndStartRadius:h}}},"&-light":{background:m,[`${t}-trigger`]:{color:y,background:v},[`${t}-zero-width-trigger`]:{color:y,background:v,border:`1px solid ${b}`,borderInlineStart:0}}}}},qL=Er(["Layout","Sider"],e=>[KL(e)],F_,{deprecatedTokens:A_});var XL=function(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 i=0,r=Object.getOwnPropertySymbols(e);i{let e=0;return function(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"";return e+=1,`${t}${e}`}})(),z_=d.forwardRef((e,t)=>{const{prefixCls:n,className:r,trigger:i,children:o,defaultCollapsed:a=!1,theme:s="dark",style:l={},collapsible:c=!1,reverseArrow:u=!1,width:f=200,collapsedWidth:h=80,zeroWidthTriggerStyle:m,breakpoint:y,onCollapse:v,onBreakpoint:b}=e,p=XL(e,["prefixCls","className","trigger","children","defaultCollapsed","theme","style","collapsible","reverseArrow","width","collapsedWidth","zeroWidthTriggerStyle","breakpoint","onCollapse","onBreakpoint"]),{siderHook:g}=d.useContext(N_),[x,S]=d.useState("collapsed"in e?e.collapsed:a),[C,w]=d.useState(!1);d.useEffect(()=>{"collapsed"in e&&S(e.collapsed)},[e.collapsed]);const E=(P,R)=>{"collapsed"in e||S(P),v==null||v(P,R)},{getPrefixCls:_}=d.useContext(bt),O=_("layout-sider",n),[M,I,k]=qL(O),F=d.useRef();F.current=P=>{w(P.matches),b==null||b(P.matches),x!==P.matches&&E(P.matches,"responsive")},d.useEffect(()=>{function P(N){return F.current(N)}let R;if(typeof window<"u"){const{matchMedia:N}=window;if(N&&y&&y in g1){R=N(`screen and (max-width: ${g1[y]})`);try{R.addEventListener("change",P)}catch{R.addListener(P)}P(R)}}return()=>{try{R==null||R.removeEventListener("change",P)}catch{R==null||R.removeListener(P)}}},[y]),d.useEffect(()=>{const P=YL("ant-sider-");return g.addSider(P),()=>g.removeSider(P)},[]);const j=()=>{E(!x,"clickTrigger")},B=()=>{const P=si(p,["collapsed"]),R=x?h:f,N=UL(R)?`${R}px`:String(R),D=parseFloat(String(h||0))===0?d.createElement("span",{onClick:j,className:te(`${O}-zero-width-trigger`,`${O}-zero-width-trigger-${u?"right":"left"}`),style:m},i||d.createElement(HL,null)):null,X={expanded:u?d.createElement(Ib,null):d.createElement(h1,null),collapsed:u?d.createElement(h1,null):d.createElement(Ib,null)}[x?"collapsed":"expanded"],W=i!==null?D||d.createElement("div",{className:`${O}-trigger`,onClick:j,style:{width:N}},i||X):null,K=Object.assign(Object.assign({},l),{flex:`0 0 ${N}`,maxWidth:N,minWidth:N,width:N}),ee=te(O,`${O}-${s}`,{[`${O}-collapsed`]:!!x,[`${O}-has-trigger`]:c&&i!==null&&!D,[`${O}-below`]:!!C,[`${O}-zero-width`]:parseFloat(N)===0},r,I,k);return d.createElement("aside",Object.assign({className:ee},P,{style:K,ref:t}),d.createElement("div",{className:`${O}-children`},o),c||C&&D?W:null)},A=d.useMemo(()=>({siderCollapsed:x}),[x]);return M(d.createElement(D_.Provider,{value:A},B()))});var QL={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M176 511a56 56 0 10112 0 56 56 0 10-112 0zm280 0a56 56 0 10112 0 56 56 0 10-112 0zm280 0a56 56 0 10112 0 56 56 0 10-112 0z"}}]},name:"ellipsis",theme:"outlined"},ZL=function(t,n){return d.createElement(_n,Pe({},t,{ref:n,icon:QL}))},JL=d.forwardRef(ZL);function j_(e){return An(e,{inputAffixPadding:e.paddingXXS})}const B_=e=>{const{controlHeight:t,fontSize:n,lineHeight:r,lineWidth:i,controlHeightSM:o,controlHeightLG:a,fontSizeLG:s,lineHeightLG:l,paddingSM:c,controlPaddingHorizontalSM:u,controlPaddingHorizontal:f,colorFillAlter:h,colorPrimaryHover:m,colorPrimary:y,controlOutlineWidth:v,controlOutline:b,colorErrorOutline:p,colorWarningOutline:g,colorBgContainer:x}=e;return{paddingBlock:Math.max(Math.round((t-n*r)/2*10)/10-i,0),paddingBlockSM:Math.max(Math.round((o-n*r)/2*10)/10-i,0),paddingBlockLG:Math.ceil((a-s*l)/2*10)/10-i,paddingInline:c-i,paddingInlineSM:u-i,paddingInlineLG:f-i,addonBg:h,activeBorderColor:y,hoverBorderColor:m,activeShadow:`0 0 0 ${v}px ${b}`,errorActiveShadow:`0 0 0 ${v}px ${p}`,warningActiveShadow:`0 0 0 ${v}px ${g}`,hoverBg:x,activeBg:x,inputFontSize:n,inputFontSizeLG:s,inputFontSizeSM:n}},e5=e=>({borderColor:e.hoverBorderColor,backgroundColor:e.hoverBg}),e0=e=>({color:e.colorTextDisabled,backgroundColor:e.colorBgContainerDisabled,borderColor:e.colorBorder,boxShadow:"none",cursor:"not-allowed",opacity:1,"input[disabled], textarea[disabled]":{cursor:"not-allowed"},"&:hover:not([disabled])":Object.assign({},e5(An(e,{hoverBorderColor:e.colorBorder,hoverBg:e.colorBgContainerDisabled})))}),H_=(e,t)=>({background:e.colorBgContainer,borderWidth:e.lineWidth,borderStyle:e.lineType,borderColor:t.borderColor,"&:hover":{borderColor:t.hoverBorderColor,backgroundColor:e.hoverBg},"&:focus, &:focus-within":{borderColor:t.activeBorderColor,boxShadow:t.activeShadow,outline:0,backgroundColor:e.activeBg}}),m1=(e,t)=>({[`&${e.componentCls}-status-${t.status}:not(${e.componentCls}-disabled)`]:Object.assign(Object.assign({},H_(e,t)),{[`${e.componentCls}-prefix, ${e.componentCls}-suffix`]:{color:t.affixColor}}),[`&${e.componentCls}-status-${t.status}${e.componentCls}-disabled`]:{borderColor:t.borderColor}}),V_=(e,t)=>({"&-outlined":Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},H_(e,{borderColor:e.colorBorder,hoverBorderColor:e.hoverBorderColor,activeBorderColor:e.activeBorderColor,activeShadow:e.activeShadow})),{[`&${e.componentCls}-disabled, &[disabled]`]:Object.assign({},e0(e))}),m1(e,{status:"error",borderColor:e.colorError,hoverBorderColor:e.colorErrorBorderHover,activeBorderColor:e.colorError,activeShadow:e.errorActiveShadow,affixColor:e.colorError})),m1(e,{status:"warning",borderColor:e.colorWarning,hoverBorderColor:e.colorWarningBorderHover,activeBorderColor:e.colorWarning,activeShadow:e.warningActiveShadow,affixColor:e.colorWarning})),t)}),p1=(e,t)=>({[`&${e.componentCls}-group-wrapper-status-${t.status}`]:{[`${e.componentCls}-group-addon`]:{borderColor:t.addonBorderColor,color:t.addonColor}}}),W_=e=>({"&-outlined":Object.assign(Object.assign(Object.assign({[`${e.componentCls}-group`]:{"&-addon":{background:e.addonBg,border:`${Z(e.lineWidth)} ${e.lineType} ${e.colorBorder}`},"&-addon:first-child":{borderInlineEnd:0},"&-addon:last-child":{borderInlineStart:0}}},p1(e,{status:"error",addonBorderColor:e.colorError,addonColor:e.colorErrorText})),p1(e,{status:"warning",addonBorderColor:e.colorWarning,addonColor:e.colorWarningText})),{[`&${e.componentCls}-group-wrapper-disabled`]:{[`${e.componentCls}-group-addon`]:Object.assign({},e0(e))}})}),U_=(e,t)=>{const{componentCls:n}=e;return{"&-borderless":Object.assign({background:"transparent",border:"none","&:focus, &:focus-within":{outline:"none"},[`&${n}-disabled, &[disabled]`]:{color:e.colorTextDisabled},[`&${n}-status-error`]:{"&, & input, & textarea":{color:e.colorError}},[`&${n}-status-warning`]:{"&, & input, & textarea":{color:e.colorWarning}}},t)}},G_=(e,t)=>({background:t.bg,borderWidth:e.lineWidth,borderStyle:e.lineType,borderColor:"transparent","input&, & input, textarea&, & textarea":{color:t==null?void 0:t.inputColor},"&:hover":{background:t.hoverBg},"&:focus, &:focus-within":{outline:0,borderColor:t.activeBorderColor,backgroundColor:e.activeBg}}),v1=(e,t)=>({[`&${e.componentCls}-status-${t.status}:not(${e.componentCls}-disabled)`]:Object.assign(Object.assign({},G_(e,t)),{[`${e.componentCls}-prefix, ${e.componentCls}-suffix`]:{color:t.affixColor}})}),K_=(e,t)=>({"&-filled":Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},G_(e,{bg:e.colorFillTertiary,hoverBg:e.colorFillSecondary,activeBorderColor:e.activeBorderColor})),{[`&${e.componentCls}-disabled, &[disabled]`]:Object.assign({},e0(e))}),v1(e,{status:"error",bg:e.colorErrorBg,hoverBg:e.colorErrorBgHover,activeBorderColor:e.colorError,inputColor:e.colorErrorText,affixColor:e.colorError})),v1(e,{status:"warning",bg:e.colorWarningBg,hoverBg:e.colorWarningBgHover,activeBorderColor:e.colorWarning,inputColor:e.colorWarningText,affixColor:e.colorWarning})),t)}),y1=(e,t)=>({[`&${e.componentCls}-group-wrapper-status-${t.status}`]:{[`${e.componentCls}-group-addon`]:{background:t.addonBg,color:t.addonColor}}}),q_=e=>({"&-filled":Object.assign(Object.assign(Object.assign({[`${e.componentCls}-group`]:{"&-addon":{background:e.colorFillTertiary},[`${e.componentCls}-filled:not(:focus):not(:focus-within)`]:{"&:not(:first-child)":{borderInlineStart:`${Z(e.lineWidth)} ${e.lineType} ${e.colorSplit}`},"&:not(:last-child)":{borderInlineEnd:`${Z(e.lineWidth)} ${e.lineType} ${e.colorSplit}`}}}},y1(e,{status:"error",addonBg:e.colorErrorBg,addonColor:e.colorErrorText})),y1(e,{status:"warning",addonBg:e.colorWarningBg,addonColor:e.colorWarningText})),{[`&${e.componentCls}-group-wrapper-disabled`]:{[`${e.componentCls}-group`]:{"&-addon":{background:e.colorFillTertiary,color:e.colorTextDisabled},"&-addon:first-child":{borderInlineStart:`${Z(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,borderTop:`${Z(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,borderBottom:`${Z(e.lineWidth)} ${e.lineType} ${e.colorBorder}`},"&-addon:last-child":{borderInlineEnd:`${Z(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,borderTop:`${Z(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,borderBottom:`${Z(e.lineWidth)} ${e.lineType} ${e.colorBorder}`}}}})}),X_=e=>({"&::-moz-placeholder":{opacity:1},"&::placeholder":{color:e,userSelect:"none"},"&:placeholder-shown":{textOverflow:"ellipsis"}}),Y_=e=>{const{paddingBlockLG:t,lineHeightLG:n,borderRadiusLG:r,paddingInlineLG:i}=e;return{padding:`${Z(t)} ${Z(i)}`,fontSize:e.inputFontSizeLG,lineHeight:n,borderRadius:r}},Q_=e=>({padding:`${Z(e.paddingBlockSM)} ${Z(e.paddingInlineSM)}`,fontSize:e.inputFontSizeSM,borderRadius:e.borderRadiusSM}),Vf=e=>Object.assign(Object.assign({position:"relative",display:"inline-block",width:"100%",minWidth:0,padding:`${Z(e.paddingBlock)} ${Z(e.paddingInline)}`,color:e.colorText,fontSize:e.inputFontSize,lineHeight:e.lineHeight,borderRadius:e.borderRadius,transition:`all ${e.motionDurationMid}`},X_(e.colorTextPlaceholder)),{"textarea&":{maxWidth:"100%",height:"auto",minHeight:e.controlHeight,lineHeight:e.lineHeight,verticalAlign:"bottom",transition:`all ${e.motionDurationSlow}, height 0s`,resize:"vertical"},"&-lg":Object.assign({},Y_(e)),"&-sm":Object.assign({},Q_(e)),"&-rtl, &-textarea-rtl":{direction:"rtl"}}),Z_=e=>{const{componentCls:t,antCls:n}=e;return{position:"relative",display:"table",width:"100%",borderCollapse:"separate",borderSpacing:0,"&[class*='col-']":{paddingInlineEnd:e.paddingXS,"&:last-child":{paddingInlineEnd:0}},[`&-lg ${t}, &-lg > ${t}-group-addon`]:Object.assign({},Y_(e)),[`&-sm ${t}, &-sm > ${t}-group-addon`]:Object.assign({},Q_(e)),[`&-lg ${n}-select-single ${n}-select-selector`]:{height:e.controlHeightLG},[`&-sm ${n}-select-single ${n}-select-selector`]:{height:e.controlHeightSM},[`> ${t}`]:{display:"table-cell","&:not(:first-child):not(:last-child)":{borderRadius:0}},[`${t}-group`]:{"&-addon, &-wrap":{display:"table-cell",width:1,whiteSpace:"nowrap",verticalAlign:"middle","&:not(:first-child):not(:last-child)":{borderRadius:0}},"&-wrap > *":{display:"block !important"},"&-addon":{position:"relative",padding:`0 ${Z(e.paddingInline)}`,color:e.colorText,fontWeight:"normal",fontSize:e.inputFontSize,textAlign:"center",borderRadius:e.borderRadius,transition:`all ${e.motionDurationSlow}`,lineHeight:1,[`${n}-select`]:{margin:`${Z(e.calc(e.paddingBlock).add(1).mul(-1).equal())} ${Z(e.calc(e.paddingInline).mul(-1).equal())}`,[`&${n}-select-single:not(${n}-select-customize-input):not(${n}-pagination-size-changer)`]:{[`${n}-select-selector`]:{backgroundColor:"inherit",border:`${Z(e.lineWidth)} ${e.lineType} transparent`,boxShadow:"none"}}},[`${n}-cascader-picker`]:{margin:`-9px ${Z(e.calc(e.paddingInline).mul(-1).equal())}`,backgroundColor:"transparent",[`${n}-cascader-input`]:{textAlign:"start",border:0,boxShadow:"none"}}}},[t]:{width:"100%",marginBottom:0,textAlign:"inherit","&:focus":{zIndex:1,borderInlineEndWidth:1},"&:hover":{zIndex:1,borderInlineEndWidth:1,[`${t}-search-with-button &`]:{zIndex:0}}},[`> ${t}:first-child, ${t}-group-addon:first-child`]:{borderStartEndRadius:0,borderEndEndRadius:0,[`${n}-select ${n}-select-selector`]:{borderStartEndRadius:0,borderEndEndRadius:0}},[`> ${t}-affix-wrapper`]:{[`&:not(:first-child) ${t}`]:{borderStartStartRadius:0,borderEndStartRadius:0},[`&:not(:last-child) ${t}`]:{borderStartEndRadius:0,borderEndEndRadius:0}},[`> ${t}:last-child, ${t}-group-addon:last-child`]:{borderStartStartRadius:0,borderEndStartRadius:0,[`${n}-select ${n}-select-selector`]:{borderStartStartRadius:0,borderEndStartRadius:0}},[`${t}-affix-wrapper`]:{"&:not(:last-child)":{borderStartEndRadius:0,borderEndEndRadius:0,[`${t}-search &`]:{borderStartStartRadius:e.borderRadius,borderEndStartRadius:e.borderRadius}},[`&:not(:first-child), ${t}-search &:not(:first-child)`]:{borderStartStartRadius:0,borderEndStartRadius:0}},[`&${t}-group-compact`]:Object.assign(Object.assign({display:"block"},Mc()),{[`${t}-group-addon, ${t}-group-wrap, > ${t}`]:{"&:not(:first-child):not(:last-child)":{borderInlineEndWidth:e.lineWidth,"&:hover, &:focus":{zIndex:1}}},"& > *":{display:"inline-flex",float:"none",verticalAlign:"top",borderRadius:0},[` + `]:Object.assign({},AF(e))}}},HF=e=>{const{colorFillContent:t,colorFill:n}=e,r=t,i=n;return{color:r,colorGradientEnd:i,gradientFromColor:r,gradientToColor:i,titleHeight:e.controlHeight/2,blockRadius:e.borderRadiusSM,paragraphMarginTop:e.marginLG+e.marginXXS,paragraphLiHeight:e.controlHeight/2}},Is=Er("Skeleton",e=>{const{componentCls:t,calc:n}=e,r=An(e,{skeletonAvatarCls:`${t}-avatar`,skeletonTitleCls:`${t}-title`,skeletonParagraphCls:`${t}-paragraph`,skeletonButtonCls:`${t}-button`,skeletonInputCls:`${t}-input`,skeletonImageCls:`${t}-image`,imageSizeBase:n(e.controlHeight).mul(1.5).equal(),borderRadius:100,skeletonLoadingBackground:`linear-gradient(90deg, ${e.gradientFromColor} 25%, ${e.gradientToColor} 37%, ${e.gradientFromColor} 63%)`,skeletonLoadingMotionDuration:"1.4s"});return[BF(r)]},HF,{deprecatedTokens:[["color","gradientFromColor"],["colorGradientEnd","gradientToColor"]]}),VF=e=>{const{prefixCls:t,className:n,rootClassName:r,active:i,shape:o="circle",size:a="default"}=e,{getPrefixCls:s}=d.useContext(bt),l=s("skeleton",t),[c,u,f]=Is(l),h=si(e,["prefixCls","className"]),m=te(l,`${l}-element`,{[`${l}-active`]:i},n,r,u,f);return c(d.createElement("div",{className:m},d.createElement(Df,Object.assign({prefixCls:`${l}-avatar`,shape:o,size:a},h))))},WF=e=>{const{prefixCls:t,className:n,rootClassName:r,active:i,block:o=!1,size:a="default"}=e,{getPrefixCls:s}=d.useContext(bt),l=s("skeleton",t),[c,u,f]=Is(l),h=si(e,["prefixCls"]),m=te(l,`${l}-element`,{[`${l}-active`]:i,[`${l}-block`]:o},n,r,u,f);return c(d.createElement("div",{className:m},d.createElement(Df,Object.assign({prefixCls:`${l}-button`,size:a},h))))},UF="M365.714286 329.142857q0 45.714286-32.036571 77.677714t-77.677714 32.036571-77.677714-32.036571-32.036571-77.677714 32.036571-77.677714 77.677714-32.036571 77.677714 32.036571 32.036571 77.677714zM950.857143 548.571429l0 256-804.571429 0 0-109.714286 182.857143-182.857143 91.428571 91.428571 292.571429-292.571429zM1005.714286 146.285714l-914.285714 0q-7.460571 0-12.873143 5.412571t-5.412571 12.873143l0 694.857143q0 7.460571 5.412571 12.873143t12.873143 5.412571l914.285714 0q7.460571 0 12.873143-5.412571t5.412571-12.873143l0-694.857143q0-7.460571-5.412571-12.873143t-12.873143-5.412571zM1097.142857 164.571429l0 694.857143q0 37.741714-26.843429 64.585143t-64.585143 26.843429l-914.285714 0q-37.741714 0-64.585143-26.843429t-26.843429-64.585143l0-694.857143q0-37.741714 26.843429-64.585143t64.585143-26.843429l914.285714 0q37.741714 0 64.585143 26.843429t26.843429 64.585143z",GF=e=>{const{prefixCls:t,className:n,rootClassName:r,style:i,active:o}=e,{getPrefixCls:a}=d.useContext(bt),s=a("skeleton",t),[l,c,u]=Is(s),f=te(s,`${s}-element`,{[`${s}-active`]:o},n,r,c,u);return l(d.createElement("div",{className:f},d.createElement("div",{className:te(`${s}-image`,n),style:i},d.createElement("svg",{viewBox:"0 0 1098 1024",xmlns:"http://www.w3.org/2000/svg",className:`${s}-image-svg`},d.createElement("title",null,"Image placeholder"),d.createElement("path",{d:UF,className:`${s}-image-path`})))))},KF=e=>{const{prefixCls:t,className:n,rootClassName:r,active:i,block:o,size:a="default"}=e,{getPrefixCls:s}=d.useContext(bt),l=s("skeleton",t),[c,u,f]=Is(l),h=si(e,["prefixCls"]),m=te(l,`${l}-element`,{[`${l}-active`]:i,[`${l}-block`]:o},n,r,u,f);return c(d.createElement("div",{className:m},d.createElement(Df,Object.assign({prefixCls:`${l}-input`,size:a},h))))},qF=e=>{const{prefixCls:t,className:n,rootClassName:r,style:i,active:o,children:a}=e,{getPrefixCls:s}=d.useContext(bt),l=s("skeleton",t),[c,u,f]=Is(l),h=te(l,`${l}-element`,{[`${l}-active`]:o},u,n,r,f);return c(d.createElement("div",{className:h},d.createElement("div",{className:te(`${l}-image`,n),style:i},a)))},XF=(e,t)=>{const{width:n,rows:r=2}=t;if(Array.isArray(n))return n[e];if(r-1===e)return n},YF=e=>{const{prefixCls:t,className:n,style:r,rows:i}=e,o=ge(new Array(i)).map((a,s)=>d.createElement("li",{key:s,style:{width:XF(s,e)}}));return d.createElement("ul",{className:te(t,n),style:r},o)},QF=e=>{let{prefixCls:t,className:n,width:r,style:i}=e;return d.createElement("h3",{className:te(t,n),style:Object.assign({width:r},i)})};function Yh(e){return e&&typeof e=="object"?e:{}}function ZF(e,t){return e&&!t?{size:"large",shape:"square"}:{size:"large",shape:"circle"}}function JF(e,t){return!e&&t?{width:"38%"}:e&&t?{width:"50%"}:{}}function eA(e,t){const n={};return(!e||!t)&&(n.width="61%"),!e&&t?n.rows=3:n.rows=2,n}const ks=e=>{const{prefixCls:t,loading:n,className:r,rootClassName:i,style:o,children:a,avatar:s=!1,title:l=!0,paragraph:c=!0,active:u,round:f}=e,{getPrefixCls:h,direction:m,skeleton:y}=d.useContext(bt),v=h("skeleton",t),[b,p,g]=Is(v);if(n||!("loading"in e)){const x=!!s,S=!!l,C=!!c;let w;if(x){const O=Object.assign(Object.assign({prefixCls:`${v}-avatar`},ZF(S,C)),Yh(s));w=d.createElement("div",{className:`${v}-header`},d.createElement(Df,Object.assign({},O)))}let E;if(S||C){let O;if(S){const I=Object.assign(Object.assign({prefixCls:`${v}-title`},JF(x,C)),Yh(l));O=d.createElement(QF,Object.assign({},I))}let M;if(C){const I=Object.assign(Object.assign({prefixCls:`${v}-paragraph`},eA(x,S)),Yh(c));M=d.createElement(YF,Object.assign({},I))}E=d.createElement("div",{className:`${v}-content`},O,M)}const _=te(v,{[`${v}-with-avatar`]:x,[`${v}-active`]:u,[`${v}-rtl`]:m==="rtl",[`${v}-round`]:f},y==null?void 0:y.className,r,i,p,g);return b(d.createElement("div",{className:_,style:Object.assign(Object.assign({},y==null?void 0:y.style),o)},w,E))}return a??null};ks.Button=WF;ks.Avatar=VF;ks.Input=KF;ks.Image=GF;ks.Node=qF;const Gv=function(){if(typeof navigator>"u"||typeof window>"u")return!1;var e=navigator.userAgent||navigator.vendor||window.opera;return/(android|bb\d+|meego).+mobile|avantgo|bada\/|blackberry|blazer|compal|elaine|fennec|hiptop|iemobile|ip(hone|od)|iris|kindle|lge |maemo|midp|mmp|mobile.+firefox|netfront|opera m(ob|in)i|palm( os)?|phone|p(ixi|re)\/|plucker|pocket|psp|series(4|6)0|symbian|treo|up\.(browser|link)|vodafone|wap|windows ce|xda|xiino|android|ipad|playbook|silk/i.test(e)||/1207|6310|6590|3gso|4thp|50[1-6]i|770s|802s|a wa|abac|ac(er|oo|s-)|ai(ko|rn)|al(av|ca|co)|amoi|an(ex|ny|yw)|aptu|ar(ch|go)|as(te|us)|attw|au(di|-m|r |s )|avan|be(ck|ll|nq)|bi(lb|rd)|bl(ac|az)|br(e|v)w|bumb|bw-(n|u)|c55\/|capi|ccwa|cdm-|cell|chtm|cldc|cmd-|co(mp|nd)|craw|da(it|ll|ng)|dbte|dc-s|devi|dica|dmob|do(c|p)o|ds(12|-d)|el(49|ai)|em(l2|ul)|er(ic|k0)|esl8|ez([4-7]0|os|wa|ze)|fetc|fly(-|_)|g1 u|g560|gene|gf-5|g-mo|go(\.w|od)|gr(ad|un)|haie|hcit|hd-(m|p|t)|hei-|hi(pt|ta)|hp( i|ip)|hs-c|ht(c(-| |_|a|g|p|s|t)|tp)|hu(aw|tc)|i-(20|go|ma)|i230|iac( |-|\/)|ibro|idea|ig01|ikom|im1k|inno|ipaq|iris|ja(t|v)a|jbro|jemu|jigs|kddi|keji|kgt( |\/)|klon|kpt |kwc-|kyo(c|k)|le(no|xi)|lg( g|\/(k|l|u)|50|54|-[a-w])|libw|lynx|m1-w|m3ga|m50\/|ma(te|ui|xo)|mc(01|21|ca)|m-cr|me(rc|ri)|mi(o8|oa|ts)|mmef|mo(01|02|bi|de|do|t(-| |o|v)|zz)|mt(50|p1|v )|mwbp|mywa|n10[0-2]|n20[2-3]|n30(0|2)|n50(0|2|5)|n7(0(0|1)|10)|ne((c|m)-|on|tf|wf|wg|wt)|nok(6|i)|nzph|o2im|op(ti|wv)|oran|owg1|p800|pan(a|d|t)|pdxg|pg(13|-([1-8]|c))|phil|pire|pl(ay|uc)|pn-2|po(ck|rt|se)|prox|psio|pt-g|qa-a|qc(07|12|21|32|60|-[2-7]|i-)|qtek|r380|r600|raks|rim9|ro(ve|zo)|s55\/|sa(ge|ma|mm|ms|ny|va)|sc(01|h-|oo|p-)|sdk\/|se(c(-|0|1)|47|mc|nd|ri)|sgh-|shar|sie(-|m)|sk-0|sl(45|id)|sm(al|ar|b3|it|t5)|so(ft|ny)|sp(01|h-|v-|v )|sy(01|mb)|t2(18|50)|t6(00|10|18)|ta(gt|lk)|tcl-|tdg-|tel(i|m)|tim-|t-mo|to(pl|sh)|ts(70|m-|m3|m5)|tx-9|up(\.b|g1|si)|utst|v400|v750|veri|vi(rg|te)|vk(40|5[0-3]|-v)|vm40|voda|vulc|vx(52|53|60|61|70|80|81|83|85|98)|w3c(-| )|webc|whit|wi(g |nc|nw)|wmlb|wonu|x700|yas-|your|zeto|zte-/i.test(e==null?void 0:e.substr(0,4))};var tA=["prefixCls","invalidate","item","renderItem","responsive","responsiveDisabled","registerSize","itemKey","className","style","children","display","order","component"],$a=void 0;function nA(e,t){var n=e.prefixCls,r=e.invalidate,i=e.item,o=e.renderItem,a=e.responsive,s=e.responsiveDisabled,l=e.registerSize,c=e.itemKey,u=e.className,f=e.style,h=e.children,m=e.display,y=e.order,v=e.component,b=v===void 0?"div":v,p=st(e,tA),g=a&&!m;function x(_){l(c,_)}d.useEffect(function(){return function(){x(null)}},[]);var S=o&&i!==$a?o(i):h,C;r||(C={opacity:g?0:1,height:g?0:$a,overflowY:g?"hidden":$a,order:a?y:$a,pointerEvents:g?"none":$a,position:g?"absolute":$a});var w={};g&&(w["aria-hidden"]=!0);var E=d.createElement(b,Pe({className:te(!r&&n,u),style:V(V({},C),f)},w,p,{ref:t}),S);return a&&(E=d.createElement(vo,{onResize:function(O){var M=O.offsetWidth;x(M)},disabled:s},E)),E}var Ol=d.forwardRef(nA);Ol.displayName="Item";function rA(e){if(typeof MessageChannel>"u")Ft(e);else{var t=new MessageChannel;t.port1.onmessage=function(){return e()},t.port2.postMessage(void 0)}}function iA(){var e=d.useRef(null),t=function(r){e.current||(e.current=[],rA(function(){ma.unstable_batchedUpdates(function(){e.current.forEach(function(i){i()}),e.current=null})})),e.current.push(r)};return t}function qs(e,t){var n=d.useState(t),r=Q(n,2),i=r[0],o=r[1],a=Cn(function(s){e(function(){o(s)})});return[i,a]}var jd=me.createContext(null),oA=["component"],aA=["className"],sA=["className"],lA=function(t,n){var r=d.useContext(jd);if(!r){var i=t.component,o=i===void 0?"div":i,a=st(t,oA);return d.createElement(o,Pe({},a,{ref:n}))}var s=r.className,l=st(r,aA),c=t.className,u=st(t,sA);return d.createElement(jd.Provider,{value:null},d.createElement(Ol,Pe({ref:n,className:te(s,c)},l,u)))},h_=d.forwardRef(lA);h_.displayName="RawItem";var cA=["prefixCls","data","renderItem","renderRawItem","itemKey","itemWidth","ssr","style","className","maxCount","renderRest","renderRawRest","suffix","component","itemComponent","onVisibleChange"],g_="responsive",m_="invalidate";function uA(e){return"+ ".concat(e.length," ...")}function dA(e,t){var n=e.prefixCls,r=n===void 0?"rc-overflow":n,i=e.data,o=i===void 0?[]:i,a=e.renderItem,s=e.renderRawItem,l=e.itemKey,c=e.itemWidth,u=c===void 0?10:c,f=e.ssr,h=e.style,m=e.className,y=e.maxCount,v=e.renderRest,b=e.renderRawRest,p=e.suffix,g=e.component,x=g===void 0?"div":g,S=e.itemComponent,C=e.onVisibleChange,w=st(e,cA),E=f==="full",_=iA(),O=qs(_,null),M=Q(O,2),I=M[0],k=M[1],F=I||0,j=qs(_,new Map),B=Q(j,2),A=B[0],P=B[1],R=qs(_,0),N=Q(R,2),D=N[0],H=N[1],G=qs(_,0),X=Q(G,2),W=X[0],K=X[1],ee=qs(_,0),U=Q(ee,2),Y=U[0],J=U[1],re=d.useState(null),ce=Q(re,2),he=ce[0],Se=ce[1],ie=d.useState(null),de=Q(ie,2),ye=de[0],be=de[1],se=d.useMemo(function(){return ye===null&&E?Number.MAX_SAFE_INTEGER:ye||0},[ye,I]),we=d.useState(!1),$e=Q(we,2),ue=$e[0],Ne=$e[1],ae="".concat(r,"-item"),Ue=Math.max(D,W),Fe=y===g_,Ce=o.length&&Fe,Ve=y===m_,Be=Ce||typeof y=="number"&&o.length>y,De=d.useMemo(function(){var Ee=o;return Ce?I===null&&E?Ee=o:Ee=o.slice(0,Math.min(o.length,F/u)):typeof y=="number"&&(Ee=o.slice(0,y)),Ee},[o,u,I,y,Ce]),He=d.useMemo(function(){return Ce?o.slice(se+1):o.slice(De.length)},[o,De,Ce,se]),We=d.useCallback(function(Ee,_e){var pe;return typeof l=="function"?l(Ee):(pe=l&&(Ee==null?void 0:Ee[l]))!==null&&pe!==void 0?pe:_e},[l]),ct=d.useCallback(a||function(Ee){return Ee},[a]);function ht(Ee,_e,pe){ye===Ee&&(_e===void 0||_e===he)||(be(Ee),pe||(Ne(EeF){ht(ut-1,Ee-Nt-Y+W);break}}p&>(0)+Y>F&&Se(null)}},[F,A,W,Y,We,De]);var xn=ue&&!!He.length,vt={};he!==null&&Ce&&(vt={position:"absolute",left:he,top:0});var _t={prefixCls:ae,responsive:Ce,component:S,invalidate:Ve},Me=s?function(Ee,_e){var pe=We(Ee,_e);return d.createElement(jd.Provider,{key:pe,value:V(V({},_t),{},{order:_e,item:Ee,itemKey:pe,registerSize:Ct,display:_e<=se})},s(Ee,_e))}:function(Ee,_e){var pe=We(Ee,_e);return d.createElement(Ol,Pe({},_t,{order:_e,key:pe,item:Ee,renderItem:ct,itemKey:pe,registerSize:Ct,display:_e<=se}))},fe,Re={order:xn?se:Number.MAX_SAFE_INTEGER,className:"".concat(ae,"-rest"),registerSize:kt,display:xn};if(b)b&&(fe=d.createElement(jd.Provider,{value:V(V({},_t),Re)},b(He)));else{var Ie=v||uA;fe=d.createElement(Ol,Pe({},_t,Re),typeof Ie=="function"?Ie(He):Ie)}var ze=d.createElement(x,Pe({className:te(!Ve&&r,m),style:h,ref:t},w),De.map(Me),Be?fe:null,p&&d.createElement(Ol,Pe({},_t,{responsive:Fe,responsiveDisabled:!Ce,order:se,className:"".concat(ae,"-suffix"),registerSize:Et,display:!0,style:vt}),p));return Fe&&(ze=d.createElement(vo,{onResize:Ge,disabled:!Ce},ze)),ze}var Ni=d.forwardRef(dA);Ni.displayName="Overflow";Ni.Item=h_;Ni.RESPONSIVE=g_;Ni.INVALIDATE=m_;function fA(e){var t=e.prefixCls,n=e.align,r=e.arrow,i=e.arrowPos,o=r||{},a=o.className,s=o.content,l=i.x,c=l===void 0?0:l,u=i.y,f=u===void 0?0:u,h=d.useRef();if(!n||!n.points)return null;var m={position:"absolute"};if(n.autoArrow!==!1){var y=n.points[0],v=n.points[1],b=y[0],p=y[1],g=v[0],x=v[1];b===g||!["t","b"].includes(b)?m.top=f:b==="t"?m.top=0:m.bottom=0,p===x||!["l","r"].includes(p)?m.left=c:p==="l"?m.left=0:m.right=0}return d.createElement("div",{ref:h,className:te("".concat(t,"-arrow"),a),style:m},s)}function hA(e){var t=e.prefixCls,n=e.open,r=e.zIndex,i=e.mask,o=e.motion;return i?d.createElement(To,Pe({},o,{motionAppear:!0,visible:n,removeOnLeave:!0}),function(a){var s=a.className;return d.createElement("div",{style:{zIndex:r},className:te("".concat(t,"-mask"),s)})}):null}var gA=d.memo(function(e){var t=e.children;return t},function(e,t){return t.cache}),mA=d.forwardRef(function(e,t){var n=e.popup,r=e.className,i=e.prefixCls,o=e.style,a=e.target,s=e.onVisibleChanged,l=e.open,c=e.keepDom,u=e.fresh,f=e.onClick,h=e.mask,m=e.arrow,y=e.arrowPos,v=e.align,b=e.motion,p=e.maskMotion,g=e.forceRender,x=e.getPopupContainer,S=e.autoDestroy,C=e.portal,w=e.zIndex,E=e.onMouseEnter,_=e.onMouseLeave,O=e.onPointerEnter,M=e.ready,I=e.offsetX,k=e.offsetY,F=e.offsetR,j=e.offsetB,B=e.onAlign,A=e.onPrepare,P=e.stretch,R=e.targetWidth,N=e.targetHeight,D=typeof n=="function"?n():n,H=l||c,G=(x==null?void 0:x.length)>0,X=d.useState(!x||!G),W=Q(X,2),K=W[0],ee=W[1];if(Tn(function(){!K&&G&&a&&ee(!0)},[K,G,a]),!K)return null;var U="auto",Y={left:"-1000vw",top:"-1000vh",right:U,bottom:U};if(M||!l){var J,re=v.points,ce=v.dynamicInset||((J=v._experimental)===null||J===void 0?void 0:J.dynamicInset),he=ce&&re[0][1]==="r",Se=ce&&re[0][0]==="b";he?(Y.right=F,Y.left=U):(Y.left=I,Y.right=U),Se?(Y.bottom=j,Y.top=U):(Y.top=k,Y.bottom=U)}var ie={};return P&&(P.includes("height")&&N?ie.height=N:P.includes("minHeight")&&N&&(ie.minHeight=N),P.includes("width")&&R?ie.width=R:P.includes("minWidth")&&R&&(ie.minWidth=R)),l||(ie.pointerEvents="none"),d.createElement(C,{open:g||H,getContainer:x&&function(){return x(a)},autoDestroy:S},d.createElement(hA,{prefixCls:i,open:l,zIndex:w,mask:h,motion:p}),d.createElement(vo,{onResize:B,disabled:!l},function(de){return d.createElement(To,Pe({motionAppear:!0,motionEnter:!0,motionLeave:!0,removeOnLeave:!1,forceRender:g,leavedClassName:"".concat(i,"-hidden")},b,{onAppearPrepare:A,onEnterPrepare:A,visible:l,onVisibleChanged:function(be){var se;b==null||(se=b.onVisibleChanged)===null||se===void 0||se.call(b,be),s(be)}}),function(ye,be){var se=ye.className,we=ye.style,$e=te(i,se,r);return d.createElement("div",{ref:Si(de,t,be),className:$e,style:V(V(V(V({"--arrow-x":"".concat(y.x||0,"px"),"--arrow-y":"".concat(y.y||0,"px")},Y),ie),we),{},{boxSizing:"border-box",zIndex:w},o),onMouseEnter:E,onMouseLeave:_,onPointerEnter:O,onClick:f},m&&d.createElement(fA,{prefixCls:i,arrow:m,arrowPos:y,align:v}),d.createElement(gA,{cache:!l&&!u},D))})}))}),pA=d.forwardRef(function(e,t){var n=e.children,r=e.getTriggerDOMNode,i=Mo(n),o=d.useCallback(function(s){yv(t,r?r(s):s)},[r]),a=Pc(o,n.ref);return i?d.cloneElement(n,{ref:a}):n}),Zb=d.createContext(null);function Jb(e){return e?Array.isArray(e)?e:[e]:[]}function vA(e,t,n,r){return d.useMemo(function(){var i=Jb(n??t),o=Jb(r??t),a=new Set(i),s=new Set(o);return e&&(a.has("hover")&&(a.delete("hover"),a.add("click")),s.has("hover")&&(s.delete("hover"),s.add("click"))),[a,s]},[e,t,n,r])}function yA(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],n=arguments.length>2?arguments[2]:void 0;return n?e[0]===t[0]:e[0]===t[0]&&e[1]===t[1]}function bA(e,t,n,r){for(var i=n.points,o=Object.keys(e),a=0;a1&&arguments[1]!==void 0?arguments[1]:1;return Number.isNaN(e)?t:e}function Xs(e){return fc(parseFloat(e),0)}function t1(e,t){var n=V({},e);return(t||[]).forEach(function(r){if(!(r instanceof HTMLBodyElement||r instanceof HTMLHtmlElement)){var i=Nc(r).getComputedStyle(r),o=i.overflow,a=i.overflowClipMargin,s=i.borderTopWidth,l=i.borderBottomWidth,c=i.borderLeftWidth,u=i.borderRightWidth,f=r.getBoundingClientRect(),h=r.offsetHeight,m=r.clientHeight,y=r.offsetWidth,v=r.clientWidth,b=Xs(s),p=Xs(l),g=Xs(c),x=Xs(u),S=fc(Math.round(f.width/y*1e3)/1e3),C=fc(Math.round(f.height/h*1e3)/1e3),w=(y-v-g-x)*S,E=(h-m-b-p)*C,_=b*C,O=p*C,M=g*S,I=x*S,k=0,F=0;if(o==="clip"){var j=Xs(a);k=j*S,F=j*C}var B=f.x+M-k,A=f.y+_-F,P=B+f.width+2*k-M-I-w,R=A+f.height+2*F-_-O-E;n.left=Math.max(n.left,B),n.top=Math.max(n.top,A),n.right=Math.min(n.right,P),n.bottom=Math.min(n.bottom,R)}}),n}function n1(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,n="".concat(t),r=n.match(/^(.*)\%$/);return r?e*(parseFloat(r[1])/100):parseFloat(n)}function r1(e,t){var n=t||[],r=Q(n,2),i=r[0],o=r[1];return[n1(e.width,i),n1(e.height,o)]}function i1(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"";return[e[0],e[1]]}function Oa(e,t){var n=t[0],r=t[1],i,o;return n==="t"?o=e.y:n==="b"?o=e.y+e.height:o=e.y+e.height/2,r==="l"?i=e.x:r==="r"?i=e.x+e.width:i=e.x+e.width/2,{x:i,y:o}}function Gi(e,t){var n={t:"b",b:"t",l:"r",r:"l"};return e.map(function(r,i){return i===t?n[r]||"c":r}).join("")}function xA(e,t,n,r,i,o,a){var s=d.useState({ready:!1,offsetX:0,offsetY:0,offsetR:0,offsetB:0,arrowX:0,arrowY:0,scaleX:1,scaleY:1,align:i[r]||{}}),l=Q(s,2),c=l[0],u=l[1],f=d.useRef(0),h=d.useMemo(function(){return t?qm(t):[]},[t]),m=d.useRef({}),y=function(){m.current={}};e||y();var v=Cn(function(){if(t&&n&&e){let $t=function(Ls,Io){var xa=arguments.length>2&&arguments[2]!==void 0?arguments[2]:Ue,zc=W.x+Ls,jc=W.y+Io,Te=zc+Se,Ke=jc+he,Gt=Math.max(zc,xa.left),ln=Math.max(jc,xa.top),Kt=Math.min(Te,xa.right),Sa=Math.min(Ke,xa.bottom);return Math.max(0,(Kt-Gt)*(Sa-ln))},On=function(){pt=W.y+pe,jt=pt+he,Ye=W.x+_e,en=Ye+Se};var sn=$t,nn=On,g,x,S,C,w=t,E=w.ownerDocument,_=Nc(w),O=_.getComputedStyle(w),M=O.width,I=O.height,k=O.position,F=w.style.left,j=w.style.top,B=w.style.right,A=w.style.bottom,P=w.style.overflow,R=V(V({},i[r]),o),N=E.createElement("div");(g=w.parentElement)===null||g===void 0||g.appendChild(N),N.style.left="".concat(w.offsetLeft,"px"),N.style.top="".concat(w.offsetTop,"px"),N.style.position=k,N.style.height="".concat(w.offsetHeight,"px"),N.style.width="".concat(w.offsetWidth,"px"),w.style.left="0",w.style.top="0",w.style.right="auto",w.style.bottom="auto",w.style.overflow="hidden";var D;if(Array.isArray(n))D={x:n[0],y:n[1],width:0,height:0};else{var H,G,X=n.getBoundingClientRect();X.x=(H=X.x)!==null&&H!==void 0?H:X.left,X.y=(G=X.y)!==null&&G!==void 0?G:X.top,D={x:X.x,y:X.y,width:X.width,height:X.height}}var W=w.getBoundingClientRect();W.x=(x=W.x)!==null&&x!==void 0?x:W.left,W.y=(S=W.y)!==null&&S!==void 0?S:W.top;var K=E.documentElement,ee=K.clientWidth,U=K.clientHeight,Y=K.scrollWidth,J=K.scrollHeight,re=K.scrollTop,ce=K.scrollLeft,he=W.height,Se=W.width,ie=D.height,de=D.width,ye={left:0,top:0,right:ee,bottom:U},be={left:-ce,top:-re,right:Y-ce,bottom:J-re},se=R.htmlRegion,we="visible",$e="visibleFirst";se!=="scroll"&&se!==$e&&(se=we);var ue=se===$e,Ne=t1(be,h),ae=t1(ye,h),Ue=se===we?ae:Ne,Fe=ue?ae:Ue;w.style.left="auto",w.style.top="auto",w.style.right="0",w.style.bottom="0";var Ce=w.getBoundingClientRect();w.style.left=F,w.style.top=j,w.style.right=B,w.style.bottom=A,w.style.overflow=P,(C=w.parentElement)===null||C===void 0||C.removeChild(N);var Ve=fc(Math.round(Se/parseFloat(M)*1e3)/1e3),Be=fc(Math.round(he/parseFloat(I)*1e3)/1e3);if(Ve===0||Be===0||ec(n)&&!Ff(n))return;var De=R.offset,He=R.targetOffset,We=r1(W,De),ct=Q(We,2),ht=ct[0],Ge=ct[1],Ct=r1(D,He),kt=Q(Ct,2),Et=kt[0],gt=kt[1];D.x-=Et,D.y-=gt;var xn=R.points||[],vt=Q(xn,2),_t=vt[0],Me=vt[1],fe=i1(Me),Re=i1(_t),Ie=Oa(D,fe),ze=Oa(W,Re),Ee=V({},R),_e=Ie.x-ze.x+ht,pe=Ie.y-ze.y+Ge,ut=$t(_e,pe),Nt=$t(_e,pe,ae),mt=Oa(D,["t","l"]),nt=Oa(W,["t","l"]),Tt=Oa(D,["b","r"]),Ot=Oa(W,["b","r"]),At=R.overflow||{},pn=At.adjustX,Xn=At.adjustY,Qe=At.shiftX,Le=At.shiftY,dt=function(Io){return typeof Io=="boolean"?Io:Io>=0},pt,jt,Ye,en;On();var tn=dt(Xn),Yn=Re[0]===fe[0];if(tn&&Re[0]==="t"&&(jt>Fe.bottom||m.current.bt)){var Ae=pe;Yn?Ae-=he-ie:Ae=mt.y-Ot.y-Ge;var ke=$t(_e,Ae),ot=$t(_e,Ae,ae);ke>ut||ke===ut&&(!ue||ot>=Nt)?(m.current.bt=!0,pe=Ae,Ge=-Ge,Ee.points=[Gi(Re,0),Gi(fe,0)]):m.current.bt=!1}if(tn&&Re[0]==="b"&&(ptut||qe===ut&&(!ue||Xt>=Nt)?(m.current.tb=!0,pe=Ze,Ge=-Ge,Ee.points=[Gi(Re,0),Gi(fe,0)]):m.current.tb=!1}var Bt=dt(pn),Lt=Re[1]===fe[1];if(Bt&&Re[1]==="l"&&(en>Fe.right||m.current.rl)){var Ht=_e;Lt?Ht-=Se-de:Ht=mt.x-Ot.x-ht;var Dt=$t(Ht,pe),Rt=$t(Ht,pe,ae);Dt>ut||Dt===ut&&(!ue||Rt>=Nt)?(m.current.rl=!0,_e=Ht,ht=-ht,Ee.points=[Gi(Re,1),Gi(fe,1)]):m.current.rl=!1}if(Bt&&Re[1]==="r"&&(Yeut||nr===ut&&(!ue||rr>=Nt)?(m.current.lr=!0,_e=Yt,ht=-ht,Ee.points=[Gi(Re,1),Gi(fe,1)]):m.current.lr=!1}On();var Vt=Qe===!0?0:Qe;typeof Vt=="number"&&(Yeae.right&&(_e-=en-ae.right-ht,D.x>ae.right-Vt&&(_e+=D.x-ae.right+Vt)));var $n=Le===!0?0:Le;typeof $n=="number"&&(ptae.bottom&&(pe-=jt-ae.bottom-Ge,D.y>ae.bottom-$n&&(pe+=D.y-ae.bottom+$n)));var _r=W.x+_e,$r=_r+Se,Bn=W.y+pe,Ci=Bn+he,xt=D.x,Je=xt+de,St=D.y,vn=St+ie,an=Math.max(_r,xt),Wr=Math.min($r,Je),li=(an+Wr)/2,Ro=li-_r,$=Math.max(Bn,St),T=Math.min(Ci,vn),L=($+T)/2,q=L-Bn;a==null||a(t,Ee);var ne=Ce.right-W.x-(_e+W.width),ve=Ce.bottom-W.y-(pe+W.height);Ve===1&&(_e=Math.round(_e),ne=Math.round(ne)),Be===1&&(pe=Math.round(pe),ve=Math.round(ve));var et={ready:!0,offsetX:_e/Ve,offsetY:pe/Be,offsetR:ne/Ve,offsetB:ve/Be,arrowX:Ro/Ve,arrowY:q/Be,scaleX:Ve,scaleY:Be,align:Ee};u(et)}}),b=function(){f.current+=1;var x=f.current;Promise.resolve().then(function(){f.current===x&&v()})},p=function(){u(function(x){return V(V({},x),{},{ready:!1})})};return Tn(p,[r]),Tn(function(){e||p()},[e]),[c.ready,c.offsetX,c.offsetY,c.offsetR,c.offsetB,c.arrowX,c.arrowY,c.scaleX,c.scaleY,c.align,b]}function SA(e,t,n,r,i){Tn(function(){if(e&&t&&n){let h=function(){r(),i()};var f=h,o=t,a=n,s=qm(o),l=qm(a),c=Nc(a),u=new Set([c].concat(ge(s),ge(l)));return u.forEach(function(m){m.addEventListener("scroll",h,{passive:!0})}),c.addEventListener("resize",h,{passive:!0}),r(),function(){u.forEach(function(m){m.removeEventListener("scroll",h),c.removeEventListener("resize",h)})}}},[e,t,n])}function CA(e,t,n,r,i,o,a,s){var l=d.useRef(e);l.current=e,d.useEffect(function(){if(t&&r&&(!i||o)){var c=function(m){var y;l.current&&!a(((y=m.composedPath)===null||y===void 0||(y=y.call(m))===null||y===void 0?void 0:y[0])||m.target)&&s(!1)},u=Nc(r);u.addEventListener("mousedown",c,!0),u.addEventListener("contextmenu",c,!0);var f=Dd(n);return f&&(f.addEventListener("mousedown",c,!0),f.addEventListener("contextmenu",c,!0)),function(){u.removeEventListener("mousedown",c,!0),u.removeEventListener("contextmenu",c,!0),f&&(f.removeEventListener("mousedown",c,!0),f.removeEventListener("contextmenu",c,!0))}}},[t,n,r,i,o])}var wA=["prefixCls","children","action","showAction","hideAction","popupVisible","defaultPopupVisible","onPopupVisibleChange","afterPopupVisibleChange","mouseEnterDelay","mouseLeaveDelay","focusDelay","blurDelay","mask","maskClosable","getPopupContainer","forceRender","autoDestroy","destroyPopupOnHide","popup","popupClassName","popupStyle","popupPlacement","builtinPlacements","popupAlign","zIndex","stretch","getPopupClassNameFromAlign","fresh","alignPoint","onPopupClick","onPopupAlign","arrow","popupMotion","maskMotion","popupTransitionName","popupAnimation","maskTransitionName","maskAnimation","className","getTriggerDOMNode"];function EA(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:n_,t=d.forwardRef(function(n,r){var i=n.prefixCls,o=i===void 0?"rc-trigger-popup":i,a=n.children,s=n.action,l=s===void 0?"hover":s,c=n.showAction,u=n.hideAction,f=n.popupVisible,h=n.defaultPopupVisible,m=n.onPopupVisibleChange,y=n.afterPopupVisibleChange,v=n.mouseEnterDelay,b=n.mouseLeaveDelay,p=b===void 0?.1:b,g=n.focusDelay,x=n.blurDelay,S=n.mask,C=n.maskClosable,w=C===void 0?!0:C,E=n.getPopupContainer,_=n.forceRender,O=n.autoDestroy,M=n.destroyPopupOnHide,I=n.popup,k=n.popupClassName,F=n.popupStyle,j=n.popupPlacement,B=n.builtinPlacements,A=B===void 0?{}:B,P=n.popupAlign,R=n.zIndex,N=n.stretch,D=n.getPopupClassNameFromAlign,H=n.fresh,G=n.alignPoint,X=n.onPopupClick,W=n.onPopupAlign,K=n.arrow,ee=n.popupMotion,U=n.maskMotion,Y=n.popupTransitionName,J=n.popupAnimation,re=n.maskTransitionName,ce=n.maskAnimation,he=n.className,Se=n.getTriggerDOMNode,ie=st(n,wA),de=O||M||!1,ye=d.useState(!1),be=Q(ye,2),se=be[0],we=be[1];Tn(function(){we(Gv())},[]);var $e=d.useRef({}),ue=d.useContext(Zb),Ne=d.useMemo(function(){return{registerSubPopup:function(Ke,Gt){$e.current[Ke]=Gt,ue==null||ue.registerSubPopup(Ke,Gt)}}},[ue]),ae=HN(),Ue=d.useState(null),Fe=Q(Ue,2),Ce=Fe[0],Ve=Fe[1],Be=d.useRef(null),De=Cn(function(Te){Be.current=Te,ec(Te)&&Ce!==Te&&Ve(Te),ue==null||ue.registerSubPopup(ae,Te)}),He=d.useState(null),We=Q(He,2),ct=We[0],ht=We[1],Ge=d.useRef(null),Ct=Cn(function(Te){ec(Te)&&ct!==Te&&(ht(Te),Ge.current=Te)}),kt=d.Children.only(a),Et=(kt==null?void 0:kt.props)||{},gt={},xn=Cn(function(Te){var Ke,Gt,ln=ct;return(ln==null?void 0:ln.contains(Te))||((Ke=Dd(ln))===null||Ke===void 0?void 0:Ke.host)===Te||Te===ln||(Ce==null?void 0:Ce.contains(Te))||((Gt=Dd(Ce))===null||Gt===void 0?void 0:Gt.host)===Te||Te===Ce||Object.values($e.current).some(function(Kt){return(Kt==null?void 0:Kt.contains(Te))||Te===Kt})}),vt=e1(o,ee,J,Y),_t=e1(o,U,ce,re),Me=d.useState(h||!1),fe=Q(Me,2),Re=fe[0],Ie=fe[1],ze=f??Re,Ee=Cn(function(Te){f===void 0&&Ie(Te)});Tn(function(){Ie(f||!1)},[f]);var _e=d.useRef(ze);_e.current=ze;var pe=d.useRef([]);pe.current=[];var ut=Cn(function(Te){var Ke;Ee(Te),((Ke=pe.current[pe.current.length-1])!==null&&Ke!==void 0?Ke:ze)!==Te&&(pe.current.push(Te),m==null||m(Te))}),Nt=d.useRef(),mt=function(){clearTimeout(Nt.current)},nt=function(Ke){var Gt=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0;mt(),Gt===0?ut(Ke):Nt.current=setTimeout(function(){ut(Ke)},Gt*1e3)};d.useEffect(function(){return mt},[]);var Tt=d.useState(!1),Ot=Q(Tt,2),At=Ot[0],pn=Ot[1];Tn(function(Te){(!Te||ze)&&pn(!0)},[ze]);var Xn=d.useState(null),Qe=Q(Xn,2),Le=Qe[0],dt=Qe[1],pt=d.useState(null),jt=Q(pt,2),Ye=jt[0],en=jt[1],tn=function(Ke){en([Ke.clientX,Ke.clientY])},Yn=xA(ze,Ce,G&&Ye!==null?Ye:ct,j,A,P,W),Ae=Q(Yn,11),ke=Ae[0],ot=Ae[1],Ze=Ae[2],qe=Ae[3],Xt=Ae[4],Bt=Ae[5],Lt=Ae[6],Ht=Ae[7],Dt=Ae[8],Rt=Ae[9],Yt=Ae[10],nr=vA(se,l,c,u),rr=Q(nr,2),Vt=rr[0],$n=rr[1],_r=Vt.has("click"),$r=$n.has("click")||$n.has("contextMenu"),Bn=Cn(function(){At||Yt()}),Ci=function(){_e.current&&G&&$r&&nt(!1)};SA(ze,ct,Ce,Bn,Ci),Tn(function(){Bn()},[Ye,j]),Tn(function(){ze&&!(A!=null&&A[j])&&Bn()},[JSON.stringify(P)]);var xt=d.useMemo(function(){var Te=bA(A,o,Rt,G);return te(Te,D==null?void 0:D(Rt))},[Rt,D,A,o,G]);d.useImperativeHandle(r,function(){return{nativeElement:Ge.current,popupElement:Be.current,forceAlign:Bn}});var Je=d.useState(0),St=Q(Je,2),vn=St[0],an=St[1],Wr=d.useState(0),li=Q(Wr,2),Ro=li[0],$=li[1],T=function(){if(N&&ct){var Ke=ct.getBoundingClientRect();an(Ke.width),$(Ke.height)}},L=function(){T(),Bn()},q=function(Ke){pn(!1),Yt(),y==null||y(Ke)},ne=function(){return new Promise(function(Ke){T(),dt(function(){return Ke})})};Tn(function(){Le&&(Yt(),Le(),dt(null))},[Le]);function ve(Te,Ke,Gt,ln){gt[Te]=function(Kt){var Sa;ln==null||ln(Kt),nt(Ke,Gt);for(var Xf=arguments.length,E0=new Array(Xf>1?Xf-1:0),Bc=1;Bc1?Gt-1:0),Kt=1;Kt1?Gt-1:0),Kt=1;Ktt||e,$A=function(e,t){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:void 0;var r,i;const{variant:o,[e]:a}=d.useContext(bt),s=d.useContext(f_),l=a==null?void 0:a.variant;let c;typeof t<"u"?c=t:n===!1?c="borderless":c=(i=(r=s??l)!==null&&r!==void 0?r:o)!==null&&i!==void 0?i:"outlined";const u=yR.includes(c);return[c,u]};var OA={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M884 256h-75c-5.1 0-9.9 2.5-12.9 6.6L512 654.2 227.9 262.6c-3-4.1-7.8-6.6-12.9-6.6h-75c-6.5 0-10.3 7.4-6.5 12.7l352.6 486.1c12.8 17.6 39 17.6 51.7 0l352.6-486.1c3.9-5.3.1-12.7-6.4-12.7z"}}]},name:"down",theme:"outlined"},PA=function(t,n){return d.createElement(_n,Pe({},t,{ref:n,icon:OA}))},MA=d.forwardRef(PA);const hc=["xxl","xl","lg","md","sm","xs"],TA=e=>({xs:`(max-width: ${e.screenXSMax}px)`,sm:`(min-width: ${e.screenSM}px)`,md:`(min-width: ${e.screenMD}px)`,lg:`(min-width: ${e.screenLG}px)`,xl:`(min-width: ${e.screenXL}px)`,xxl:`(min-width: ${e.screenXXL}px)`}),RA=e=>{const t=e,n=[].concat(hc).reverse();return n.forEach((r,i)=>{const o=r.toUpperCase(),a=`screen${o}Min`,s=`screen${o}`;if(!(t[a]<=t[s]))throw new Error(`${a}<=${s} fails : !(${t[a]}<=${t[s]})`);if(i{const n=new Map;let r=-1,i={};return{matchHandlers:{},dispatch(o){return i=o,n.forEach(a=>a(i)),n.size>=1},subscribe(o){return n.size||this.register(),r+=1,n.set(r,o),o(i),r},unsubscribe(o){n.delete(o),n.size||this.unregister()},unregister(){Object.keys(t).forEach(o=>{const a=t[o],s=this.matchHandlers[a];s==null||s.mql.removeListener(s==null?void 0:s.listener)}),n.clear()},register(){Object.keys(t).forEach(o=>{const a=t[o],s=c=>{let{matches:u}=c;this.dispatch(Object.assign(Object.assign({},i),{[o]:u}))},l=window.matchMedia(a);l.addListener(s),this.matchHandlers[a]={mql:l,listener:s},s(l)})},responsiveMap:t}},[e])}function p_(e){var t=e.children,n=e.prefixCls,r=e.id,i=e.overlayInnerStyle,o=e.className,a=e.style;return d.createElement("div",{className:te("".concat(n,"-content"),o),style:a},d.createElement("div",{className:"".concat(n,"-inner"),id:r,role:"tooltip",style:i},typeof t=="function"?t():t))}var Pa={shiftX:64,adjustY:1},Ma={adjustX:1,shiftY:!0},Mr=[0,0],kA={left:{points:["cr","cl"],overflow:Ma,offset:[-4,0],targetOffset:Mr},right:{points:["cl","cr"],overflow:Ma,offset:[4,0],targetOffset:Mr},top:{points:["bc","tc"],overflow:Pa,offset:[0,-4],targetOffset:Mr},bottom:{points:["tc","bc"],overflow:Pa,offset:[0,4],targetOffset:Mr},topLeft:{points:["bl","tl"],overflow:Pa,offset:[0,-4],targetOffset:Mr},leftTop:{points:["tr","tl"],overflow:Ma,offset:[-4,0],targetOffset:Mr},topRight:{points:["br","tr"],overflow:Pa,offset:[0,-4],targetOffset:Mr},rightTop:{points:["tl","tr"],overflow:Ma,offset:[4,0],targetOffset:Mr},bottomRight:{points:["tr","br"],overflow:Pa,offset:[0,4],targetOffset:Mr},rightBottom:{points:["bl","br"],overflow:Ma,offset:[4,0],targetOffset:Mr},bottomLeft:{points:["tl","bl"],overflow:Pa,offset:[0,4],targetOffset:Mr},leftBottom:{points:["br","bl"],overflow:Ma,offset:[-4,0],targetOffset:Mr}},NA=["overlayClassName","trigger","mouseEnterDelay","mouseLeaveDelay","overlayStyle","prefixCls","children","onVisibleChange","afterVisibleChange","transitionName","animation","motion","placement","align","destroyTooltipOnHide","defaultVisible","getTooltipContainer","overlayInnerStyle","arrowContent","overlay","id","showArrow"],FA=function(t,n){var r=t.overlayClassName,i=t.trigger,o=i===void 0?["hover"]:i,a=t.mouseEnterDelay,s=a===void 0?0:a,l=t.mouseLeaveDelay,c=l===void 0?.1:l,u=t.overlayStyle,f=t.prefixCls,h=f===void 0?"rc-tooltip":f,m=t.children,y=t.onVisibleChange,v=t.afterVisibleChange,b=t.transitionName,p=t.animation,g=t.motion,x=t.placement,S=x===void 0?"right":x,C=t.align,w=C===void 0?{}:C,E=t.destroyTooltipOnHide,_=E===void 0?!1:E,O=t.defaultVisible,M=t.getTooltipContainer,I=t.overlayInnerStyle;t.arrowContent;var k=t.overlay,F=t.id,j=t.showArrow,B=j===void 0?!0:j,A=st(t,NA),P=d.useRef(null);d.useImperativeHandle(n,function(){return P.current});var R=V({},A);"visible"in t&&(R.popupVisible=t.visible);var N=function(){return d.createElement(p_,{key:"content",prefixCls:h,id:F,overlayInnerStyle:I},k)};return d.createElement(Kv,Pe({popupClassName:r,prefixCls:h,popup:N,action:o,builtinPlacements:kA,popupPlacement:S,ref:P,popupAlign:w,getPopupContainer:M,onPopupVisibleChange:y,afterPopupVisibleChange:v,popupTransitionName:b,popupAnimation:p,popupMotion:g,defaultPopupVisible:O,autoDestroy:_,mouseLeaveDelay:c,popupStyle:u,mouseEnterDelay:s,arrow:B},R),m)};const AA=d.forwardRef(FA);function LA(e){const{sizePopupArrow:t,borderRadiusXS:n,borderRadiusOuter:r}=e,i=t/2,o=0,a=i,s=r*1/Math.sqrt(2),l=i-r*(1-1/Math.sqrt(2)),c=i-n*(1/Math.sqrt(2)),u=r*(Math.sqrt(2)-1)+n*(1/Math.sqrt(2)),f=2*i-c,h=u,m=2*i-s,y=l,v=2*i-o,b=a,p=i*Math.sqrt(2)+r*(Math.sqrt(2)-2),g=r*(Math.sqrt(2)-1),x=`polygon(${g}px 100%, 50% ${g}px, ${2*i-g}px 100%, ${g}px 100%)`,S=`path('M ${o} ${a} A ${r} ${r} 0 0 0 ${s} ${l} L ${c} ${u} A ${n} ${n} 0 0 1 ${f} ${h} L ${m} ${y} A ${r} ${r} 0 0 0 ${v} ${b} Z')`;return{arrowShadowWidth:p,arrowPath:S,arrowPolygon:x}}const DA=(e,t,n)=>{const{sizePopupArrow:r,arrowPolygon:i,arrowPath:o,arrowShadowWidth:a,borderRadiusXS:s,calc:l}=e;return{pointerEvents:"none",width:r,height:r,overflow:"hidden","&::before":{position:"absolute",bottom:0,insetInlineStart:0,width:r,height:l(r).div(2).equal(),background:t,clipPath:{_multi_value_:!0,value:[i,o]},content:'""'},"&::after":{content:'""',position:"absolute",width:a,height:a,bottom:0,insetInline:0,margin:"auto",borderRadius:{_skip_check_:!0,value:`0 0 ${Z(s)} 0`},transform:"translateY(50%) rotate(-135deg)",boxShadow:n,zIndex:0,background:"transparent"}}},v_=8;function y_(e){const{contentRadius:t,limitVerticalRadius:n}=e,r=t>12?t+2:12;return{arrowOffsetHorizontal:r,arrowOffsetVertical:n?v_:r}}function vu(e,t){return e?t:{}}function zA(e,t,n){const{componentCls:r,boxShadowPopoverArrow:i,arrowOffsetVertical:o,arrowOffsetHorizontal:a}=e,{arrowDistance:s=0,arrowPlacement:l={left:!0,right:!0,top:!0,bottom:!0}}={};return{[r]:Object.assign(Object.assign(Object.assign(Object.assign({[`${r}-arrow`]:[Object.assign(Object.assign({position:"absolute",zIndex:1,display:"block"},DA(e,t,i)),{"&:before":{background:t}})]},vu(!!l.top,{[[`&-placement-top > ${r}-arrow`,`&-placement-topLeft > ${r}-arrow`,`&-placement-topRight > ${r}-arrow`].join(",")]:{bottom:s,transform:"translateY(100%) rotate(180deg)"},[`&-placement-top > ${r}-arrow`]:{left:{_skip_check_:!0,value:"50%"},transform:"translateX(-50%) translateY(100%) rotate(180deg)"},"&-placement-topLeft":{"--arrow-offset-horizontal":a,[`> ${r}-arrow`]:{left:{_skip_check_:!0,value:a}}},"&-placement-topRight":{"--arrow-offset-horizontal":`calc(100% - ${Z(a)})`,[`> ${r}-arrow`]:{right:{_skip_check_:!0,value:a}}}})),vu(!!l.bottom,{[[`&-placement-bottom > ${r}-arrow`,`&-placement-bottomLeft > ${r}-arrow`,`&-placement-bottomRight > ${r}-arrow`].join(",")]:{top:s,transform:"translateY(-100%)"},[`&-placement-bottom > ${r}-arrow`]:{left:{_skip_check_:!0,value:"50%"},transform:"translateX(-50%) translateY(-100%)"},"&-placement-bottomLeft":{"--arrow-offset-horizontal":a,[`> ${r}-arrow`]:{left:{_skip_check_:!0,value:a}}},"&-placement-bottomRight":{"--arrow-offset-horizontal":`calc(100% - ${Z(a)})`,[`> ${r}-arrow`]:{right:{_skip_check_:!0,value:a}}}})),vu(!!l.left,{[[`&-placement-left > ${r}-arrow`,`&-placement-leftTop > ${r}-arrow`,`&-placement-leftBottom > ${r}-arrow`].join(",")]:{right:{_skip_check_:!0,value:s},transform:"translateX(100%) rotate(90deg)"},[`&-placement-left > ${r}-arrow`]:{top:{_skip_check_:!0,value:"50%"},transform:"translateY(-50%) translateX(100%) rotate(90deg)"},[`&-placement-leftTop > ${r}-arrow`]:{top:o},[`&-placement-leftBottom > ${r}-arrow`]:{bottom:o}})),vu(!!l.right,{[[`&-placement-right > ${r}-arrow`,`&-placement-rightTop > ${r}-arrow`,`&-placement-rightBottom > ${r}-arrow`].join(",")]:{left:{_skip_check_:!0,value:s},transform:"translateX(-100%) rotate(-90deg)"},[`&-placement-right > ${r}-arrow`]:{top:{_skip_check_:!0,value:"50%"},transform:"translateY(-50%) translateX(-100%) rotate(-90deg)"},[`&-placement-rightTop > ${r}-arrow`]:{top:o},[`&-placement-rightBottom > ${r}-arrow`]:{bottom:o}}))}}function jA(e,t,n,r){if(r===!1)return{adjustX:!1,adjustY:!1};const i=r&&typeof r=="object"?r:{},o={};switch(e){case"top":case"bottom":o.shiftX=t.arrowOffsetHorizontal*2+n,o.shiftY=!0,o.adjustY=!0;break;case"left":case"right":o.shiftY=t.arrowOffsetVertical*2+n,o.shiftX=!0,o.adjustX=!0;break}const a=Object.assign(Object.assign({},o),i);return a.shiftX||(a.adjustX=!0),a.shiftY||(a.adjustY=!0),a}const a1={left:{points:["cr","cl"]},right:{points:["cl","cr"]},top:{points:["bc","tc"]},bottom:{points:["tc","bc"]},topLeft:{points:["bl","tl"]},leftTop:{points:["tr","tl"]},topRight:{points:["br","tr"]},rightTop:{points:["tl","tr"]},bottomRight:{points:["tr","br"]},rightBottom:{points:["bl","br"]},bottomLeft:{points:["tl","bl"]},leftBottom:{points:["br","bl"]}},BA={topLeft:{points:["bl","tc"]},leftTop:{points:["tr","cl"]},topRight:{points:["br","tc"]},rightTop:{points:["tl","cr"]},bottomRight:{points:["tr","bc"]},rightBottom:{points:["bl","cr"]},bottomLeft:{points:["tl","bc"]},leftBottom:{points:["br","cl"]}},HA=new Set(["topLeft","topRight","bottomLeft","bottomRight","leftTop","leftBottom","rightTop","rightBottom"]);function VA(e){const{arrowWidth:t,autoAdjustOverflow:n,arrowPointAtCenter:r,offset:i,borderRadius:o,visibleFirst:a}=e,s=t/2,l={};return Object.keys(a1).forEach(c=>{const u=r&&BA[c]||a1[c],f=Object.assign(Object.assign({},u),{offset:[0,0],dynamicInset:!0});switch(l[c]=f,HA.has(c)&&(f.autoArrow=!1),c){case"top":case"topLeft":case"topRight":f.offset[1]=-s-i;break;case"bottom":case"bottomLeft":case"bottomRight":f.offset[1]=s+i;break;case"left":case"leftTop":case"leftBottom":f.offset[0]=-s-i;break;case"right":case"rightTop":case"rightBottom":f.offset[0]=s+i;break}const h=y_({contentRadius:o,limitVerticalRadius:!0});if(r)switch(c){case"topLeft":case"bottomLeft":f.offset[0]=-h.arrowOffsetHorizontal-s;break;case"topRight":case"bottomRight":f.offset[0]=h.arrowOffsetHorizontal+s;break;case"leftTop":case"rightTop":f.offset[1]=-h.arrowOffsetHorizontal*2+s;break;case"leftBottom":case"rightBottom":f.offset[1]=h.arrowOffsetHorizontal*2-s;break}f.overflow=jA(c,h,t,n),a&&(f.htmlRegion="visibleFirst")}),l}const WA=e=>{const{componentCls:t,tooltipMaxWidth:n,tooltipColor:r,tooltipBg:i,tooltipBorderRadius:o,zIndexPopup:a,controlHeight:s,boxShadowSecondary:l,paddingSM:c,paddingXS:u}=e;return[{[t]:Object.assign(Object.assign(Object.assign(Object.assign({},Lr(e)),{position:"absolute",zIndex:a,display:"block",width:"max-content",maxWidth:n,visibility:"visible","--valid-offset-x":"var(--arrow-offset-horizontal, var(--arrow-x))",transformOrigin:["var(--valid-offset-x, 50%)","var(--arrow-y, 50%)"].join(" "),"&-hidden":{display:"none"},"--antd-arrow-background-color":i,[`${t}-inner`]:{minWidth:"1em",minHeight:s,padding:`${Z(e.calc(c).div(2).equal())} ${Z(u)}`,color:r,textAlign:"start",textDecoration:"none",wordWrap:"break-word",backgroundColor:i,borderRadius:o,boxShadow:l,boxSizing:"border-box"},[["&-placement-left","&-placement-leftTop","&-placement-leftBottom","&-placement-right","&-placement-rightTop","&-placement-rightBottom"].join(",")]:{[`${t}-inner`]:{borderRadius:e.min(o,v_)}},[`${t}-content`]:{position:"relative"}}),UR(e,(f,h)=>{let{darkColor:m}=h;return{[`&${t}-${f}`]:{[`${t}-inner`]:{backgroundColor:m},[`${t}-arrow`]:{"--antd-arrow-background-color":m}}}})),{"&-rtl":{direction:"rtl"}})},zA(e,"var(--antd-arrow-background-color)"),{[`${t}-pure`]:{position:"relative",maxWidth:"none",margin:e.sizePopupArrow}}]},UA=e=>Object.assign(Object.assign({zIndexPopup:e.zIndexPopupBase+70},y_({contentRadius:e.borderRadius,limitVerticalRadius:!0})),LA(An(e,{borderRadiusOuter:Math.min(e.borderRadiusOuter,4)}))),b_=function(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0;return Er("Tooltip",r=>{const{borderRadius:i,colorTextLightSolid:o,colorBgSpotlight:a}=r,s=An(r,{tooltipMaxWidth:250,tooltipColor:o,tooltipBorderRadius:i,tooltipBg:a});return[WA(s),oN(r,"zoom-big-fast")]},UA,{resetStyle:!1,injectStyle:t})(e)},GA=Ld.map(e=>`${e}-inverse`);function KA(e){return(arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0)?[].concat(ge(GA),ge(Ld)).includes(e):Ld.includes(e)}function x_(e,t){const n=KA(t),r=te({[`${e}-${t}`]:t&&n}),i={},o={};return t&&!n&&(i.background=t,o["--antd-arrow-background-color"]=t),{className:r,overlayStyle:i,arrowStyle:o}}const qA=e=>{const{prefixCls:t,className:n,placement:r="top",title:i,color:o,overlayInnerStyle:a}=e,{getPrefixCls:s}=d.useContext(bt),l=s("tooltip",t),[c,u,f]=b_(l),h=x_(l,o),m=h.arrowStyle,y=Object.assign(Object.assign({},a),h.overlayStyle),v=te(u,f,l,`${l}-pure`,`${l}-placement-${r}`,n,h.className);return c(d.createElement("div",{className:v,style:m},d.createElement("div",{className:`${l}-arrow`}),d.createElement(p_,Object.assign({},e,{className:u,prefixCls:l,overlayInnerStyle:y}),i)))};var XA=function(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 i=0,r=Object.getOwnPropertySymbols(e);i{var n,r;const{prefixCls:i,openClassName:o,getTooltipContainer:a,overlayClassName:s,color:l,overlayInnerStyle:c,children:u,afterOpenChange:f,afterVisibleChange:h,destroyTooltipOnHide:m,arrow:y=!0,title:v,overlay:b,builtinPlacements:p,arrowPointAtCenter:g=!1,autoAdjustOverflow:x=!0}=e,S=!!y,[,C]=Wi(),{getPopupContainer:w,getPrefixCls:E,direction:_}=d.useContext(bt),O=Pv(),M=d.useRef(null),I=()=>{var ae;(ae=M.current)===null||ae===void 0||ae.forceAlign()};d.useImperativeHandle(t,()=>{var ae;return{forceAlign:I,forcePopupAlign:()=>{O.deprecated(!1,"forcePopupAlign","forceAlign"),I()},nativeElement:(ae=M.current)===null||ae===void 0?void 0:ae.nativeElement}});const[k,F]=yo(!1,{value:(n=e.open)!==null&&n!==void 0?n:e.visible,defaultValue:(r=e.defaultOpen)!==null&&r!==void 0?r:e.defaultVisible}),j=!v&&!b&&v!==0,B=ae=>{var Ue,Fe;F(j?!1:ae),j||((Ue=e.onOpenChange)===null||Ue===void 0||Ue.call(e,ae),(Fe=e.onVisibleChange)===null||Fe===void 0||Fe.call(e,ae))},A=d.useMemo(()=>{var ae,Ue;let Fe=g;return typeof y=="object"&&(Fe=(Ue=(ae=y.pointAtCenter)!==null&&ae!==void 0?ae:y.arrowPointAtCenter)!==null&&Ue!==void 0?Ue:g),p||VA({arrowPointAtCenter:Fe,autoAdjustOverflow:x,arrowWidth:S?C.sizePopupArrow:0,borderRadius:C.borderRadius,offset:C.marginXXS,visibleFirst:!0})},[g,y,p,C]),P=d.useMemo(()=>v===0?v:b||v||"",[b,v]),R=d.createElement(Km,{space:!0},typeof P=="function"?P():P),{getPopupContainer:N,placement:D="top",mouseEnterDelay:H=.1,mouseLeaveDelay:G=.1,overlayStyle:X,rootClassName:W}=e,K=XA(e,["getPopupContainer","placement","mouseEnterDelay","mouseLeaveDelay","overlayStyle","rootClassName"]),ee=E("tooltip",i),U=E(),Y=e["data-popover-inject"];let J=k;!("open"in e)&&!("visible"in e)&&j&&(J=!1);const re=d.isValidElement(u)&&!BE(u)?u:d.createElement("span",null,u),ce=re.props,he=!ce.className||typeof ce.className=="string"?te(ce.className,o||`${ee}-open`):ce.className,[Se,ie,de]=b_(ee,!Y),ye=x_(ee,l),be=ye.arrowStyle,se=Object.assign(Object.assign({},c),ye.overlayStyle),we=te(s,{[`${ee}-rtl`]:_==="rtl"},ye.className,W,ie,de),[$e,ue]=nk("Tooltip",K.zIndex),Ne=d.createElement(AA,Object.assign({},K,{zIndex:$e,showArrow:S,placement:D,mouseEnterDelay:H,mouseLeaveDelay:G,prefixCls:ee,overlayClassName:we,overlayStyle:Object.assign(Object.assign({},be),X),getTooltipContainer:N||a||w,ref:M,builtinPlacements:A,overlay:R,visible:J,onVisibleChange:B,afterVisibleChange:f??h,overlayInnerStyle:se,arrowContent:d.createElement("span",{className:`${ee}-arrow-content`}),motion:{motionName:UE(U,"zoom-big-fast",e.transitionName),motionDeadline:1e3},destroyTooltipOnHide:!!m}),J?kf(re,{className:he}):re);return Se(d.createElement(VE.Provider,{value:ue},Ne))}),eo=YA;eo._InternalPanelDoNotUseOrYouWillBeFired=qA;var QA=le.ESC,ZA=le.TAB;function JA(e){var t=e.visible,n=e.triggerRef,r=e.onVisibleChange,i=e.autoFocus,o=e.overlayRef,a=d.useRef(!1),s=function(){if(t){var f,h;(f=n.current)===null||f===void 0||(h=f.focus)===null||h===void 0||h.call(f),r==null||r(!1)}},l=function(){var f;return(f=o.current)!==null&&f!==void 0&&f.focus?(o.current.focus(),a.current=!0,!0):!1},c=function(f){switch(f.keyCode){case QA:s();break;case ZA:{var h=!1;a.current||(h=l()),h?f.preventDefault():s();break}}};d.useEffect(function(){return t?(window.addEventListener("keydown",c),i&&Ft(l,3),function(){window.removeEventListener("keydown",c),a.current=!1}):function(){a.current=!1}},[t])}var eL=d.forwardRef(function(e,t){var n=e.overlay,r=e.arrow,i=e.prefixCls,o=d.useMemo(function(){var s;return typeof n=="function"?s=n():s=n,s},[n]),a=Si(t,o==null?void 0:o.ref);return me.createElement(me.Fragment,null,r&&me.createElement("div",{className:"".concat(i,"-arrow")}),me.cloneElement(o,{ref:Mo(o)?a:void 0}))}),Ta={adjustX:1,adjustY:1},Ra=[0,0],tL={topLeft:{points:["bl","tl"],overflow:Ta,offset:[0,-4],targetOffset:Ra},top:{points:["bc","tc"],overflow:Ta,offset:[0,-4],targetOffset:Ra},topRight:{points:["br","tr"],overflow:Ta,offset:[0,-4],targetOffset:Ra},bottomLeft:{points:["tl","bl"],overflow:Ta,offset:[0,4],targetOffset:Ra},bottom:{points:["tc","bc"],overflow:Ta,offset:[0,4],targetOffset:Ra},bottomRight:{points:["tr","br"],overflow:Ta,offset:[0,4],targetOffset:Ra}},nL=["arrow","prefixCls","transitionName","animation","align","placement","placements","getPopupContainer","showAction","hideAction","overlayClassName","overlayStyle","visible","trigger","autoFocus","overlay","children","onVisibleChange"];function rL(e,t){var n,r=e.arrow,i=r===void 0?!1:r,o=e.prefixCls,a=o===void 0?"rc-dropdown":o,s=e.transitionName,l=e.animation,c=e.align,u=e.placement,f=u===void 0?"bottomLeft":u,h=e.placements,m=h===void 0?tL:h,y=e.getPopupContainer,v=e.showAction,b=e.hideAction,p=e.overlayClassName,g=e.overlayStyle,x=e.visible,S=e.trigger,C=S===void 0?["hover"]:S,w=e.autoFocus,E=e.overlay,_=e.children,O=e.onVisibleChange,M=st(e,nL),I=me.useState(),k=Q(I,2),F=k[0],j=k[1],B="visible"in e?x:F,A=me.useRef(null),P=me.useRef(null),R=me.useRef(null);me.useImperativeHandle(t,function(){return A.current});var N=function(Y){j(Y),O==null||O(Y)};JA({visible:B,triggerRef:R,onVisibleChange:N,autoFocus:w,overlayRef:P});var D=function(Y){var J=e.onOverlayClick;j(!1),J&&J(Y)},H=function(){return me.createElement(eL,{ref:P,overlay:E,prefixCls:a,arrow:i})},G=function(){return typeof E=="function"?H:H()},X=function(){var Y=e.minOverlayWidthMatchTrigger,J=e.alignPoint;return"minOverlayWidthMatchTrigger"in e?Y:!J},W=function(){var Y=e.openClassName;return Y!==void 0?Y:"".concat(a,"-open")},K=me.cloneElement(_,{className:te((n=_.props)===null||n===void 0?void 0:n.className,B&&W()),ref:Mo(_)?Si(R,_.ref):void 0}),ee=b;return!ee&&C.indexOf("contextMenu")!==-1&&(ee=["click"]),me.createElement(Kv,Pe({builtinPlacements:m},M,{prefixCls:a,ref:A,popupClassName:te(p,z({},"".concat(a,"-show-arrow"),i)),popupStyle:g,action:C,showAction:v,hideAction:ee,popupPlacement:f,popupAlign:c,popupTransitionName:s,popupAnimation:l,popupVisible:B,stretch:X()?"minWidth":"",popup:G(),onPopupVisibleChange:N,onPopupClick:D,getPopupContainer:y}),K)}const iL=me.forwardRef(rL);var S_=d.createContext(null);function C_(e,t){return e===void 0?null:"".concat(e,"-").concat(t)}function w_(e){var t=d.useContext(S_);return C_(t,e)}var oL=["children","locked"],ai=d.createContext(null);function aL(e,t){var n=V({},e);return Object.keys(t).forEach(function(r){var i=t[r];i!==void 0&&(n[r]=i)}),n}function gc(e){var t=e.children,n=e.locked,r=st(e,oL),i=d.useContext(ai),o=Of(function(){return aL(i,r)},[i,r],function(a,s){return!n&&(a[0]!==s[0]||!vs(a[1],s[1],!0))});return d.createElement(ai.Provider,{value:o},t)}var sL=[],E_=d.createContext(null);function jf(){return d.useContext(E_)}var __=d.createContext(sL);function Fc(e){var t=d.useContext(__);return d.useMemo(function(){return e!==void 0?[].concat(ge(t),[e]):t},[t,e])}var $_=d.createContext(null),qv=d.createContext({});function s1(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;if(Ff(e)){var n=e.nodeName.toLowerCase(),r=["input","select","textarea","button"].includes(n)||e.isContentEditable||n==="a"&&!!e.getAttribute("href"),i=e.getAttribute("tabindex"),o=Number(i),a=null;return i&&!Number.isNaN(o)?a=o:r&&a===null&&(a=0),r&&e.disabled&&(a=null),a!==null&&(a>=0||t&&a<0)}return!1}function lL(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,n=ge(e.querySelectorAll("*")).filter(function(r){return s1(r,t)});return s1(e,t)&&n.unshift(e),n}var Xm=le.LEFT,Ym=le.RIGHT,Qm=le.UP,td=le.DOWN,nd=le.ENTER,O_=le.ESC,Ys=le.HOME,Qs=le.END,l1=[Qm,td,Xm,Ym];function cL(e,t,n,r){var i,o="prev",a="next",s="children",l="parent";if(e==="inline"&&r===nd)return{inlineTrigger:!0};var c=z(z({},Qm,o),td,a),u=z(z(z(z({},Xm,n?a:o),Ym,n?o:a),td,s),nd,s),f=z(z(z(z(z(z({},Qm,o),td,a),nd,s),O_,l),Xm,n?s:l),Ym,n?l:s),h={inline:c,horizontal:u,vertical:f,inlineSub:c,horizontalSub:f,verticalSub:f},m=(i=h["".concat(e).concat(t?"":"Sub")])===null||i===void 0?void 0:i[r];switch(m){case o:return{offset:-1,sibling:!0};case a:return{offset:1,sibling:!0};case l:return{offset:-1,sibling:!1};case s:return{offset:1,sibling:!1};default:return null}}function uL(e){for(var t=e;t;){if(t.getAttribute("data-menu-list"))return t;t=t.parentElement}return null}function dL(e,t){for(var n=e||document.activeElement;n;){if(t.has(n))return n;n=n.parentElement}return null}function Xv(e,t){var n=lL(e,!0);return n.filter(function(r){return t.has(r)})}function c1(e,t,n){var r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:1;if(!e)return null;var i=Xv(e,t),o=i.length,a=i.findIndex(function(s){return n===s});return r<0?a===-1?a=o-1:a-=1:r>0&&(a+=1),a=(a+o)%o,i[a]}var Zm=function(t,n){var r=new Set,i=new Map,o=new Map;return t.forEach(function(a){var s=document.querySelector("[data-menu-id='".concat(C_(n,a),"']"));s&&(r.add(s),o.set(s,a),i.set(a,s))}),{elements:r,key2element:i,element2key:o}};function fL(e,t,n,r,i,o,a,s,l,c){var u=d.useRef(),f=d.useRef();f.current=t;var h=function(){Ft.cancel(u.current)};return d.useEffect(function(){return function(){h()}},[]),function(m){var y=m.which;if([].concat(l1,[nd,O_,Ys,Qs]).includes(y)){var v=o(),b=Zm(v,r),p=b,g=p.elements,x=p.key2element,S=p.element2key,C=x.get(t),w=dL(C,g),E=S.get(w),_=cL(e,a(E,!0).length===1,n,y);if(!_&&y!==Ys&&y!==Qs)return;(l1.includes(y)||[Ys,Qs].includes(y))&&m.preventDefault();var O=function(P){if(P){var R=P,N=P.querySelector("a");N!=null&&N.getAttribute("href")&&(R=N);var D=S.get(P);s(D),h(),u.current=Ft(function(){f.current===D&&R.focus()})}};if([Ys,Qs].includes(y)||_.sibling||!w){var M;!w||e==="inline"?M=i.current:M=uL(w);var I,k=Xv(M,g);y===Ys?I=k[0]:y===Qs?I=k[k.length-1]:I=c1(M,g,w,_.offset),O(I)}else if(_.inlineTrigger)l(E);else if(_.offset>0)l(E,!0),h(),u.current=Ft(function(){b=Zm(v,r);var A=w.getAttribute("aria-controls"),P=document.getElementById(A),R=c1(P,b.elements);O(R)},5);else if(_.offset<0){var F=a(E,!0),j=F[F.length-2],B=x.get(j);l(j,!1),O(B)}}c==null||c(m)}}function hL(e){Promise.resolve().then(e)}var Yv="__RC_UTIL_PATH_SPLIT__",u1=function(t){return t.join(Yv)},gL=function(t){return t.split(Yv)},Jm="rc-menu-more";function mL(){var e=d.useState({}),t=Q(e,2),n=t[1],r=d.useRef(new Map),i=d.useRef(new Map),o=d.useState([]),a=Q(o,2),s=a[0],l=a[1],c=d.useRef(0),u=d.useRef(!1),f=function(){u.current||n({})},h=d.useCallback(function(x,S){var C=u1(S);i.current.set(C,x),r.current.set(x,C),c.current+=1;var w=c.current;hL(function(){w===c.current&&f()})},[]),m=d.useCallback(function(x,S){var C=u1(S);i.current.delete(C),r.current.delete(x)},[]),y=d.useCallback(function(x){l(x)},[]),v=d.useCallback(function(x,S){var C=r.current.get(x)||"",w=gL(C);return S&&s.includes(w[0])&&w.unshift(Jm),w},[s]),b=d.useCallback(function(x,S){return x.filter(function(C){return C!==void 0}).some(function(C){var w=v(C,!0);return w.includes(S)})},[v]),p=function(){var S=ge(r.current.keys());return s.length&&S.push(Jm),S},g=d.useCallback(function(x){var S="".concat(r.current.get(x)).concat(Yv),C=new Set;return ge(i.current.keys()).forEach(function(w){w.startsWith(S)&&C.add(i.current.get(w))}),C},[]);return d.useEffect(function(){return function(){u.current=!0}},[]),{registerPath:h,unregisterPath:m,refreshOverflowKeys:y,isSubPathKey:b,getKeyPath:v,getKeys:p,getSubPathKeys:g}}function ll(e){var t=d.useRef(e);t.current=e;var n=d.useCallback(function(){for(var r,i=arguments.length,o=new Array(i),a=0;a1&&(g.motionAppear=!1);var x=g.onVisibleChanged;return g.onVisibleChanged=function(S){return!h.current&&!S&&b(!0),x==null?void 0:x(S)},v?null:d.createElement(gc,{mode:o,locked:!h.current},d.createElement(To,Pe({visible:p},g,{forceRender:l,removeOnLeave:!1,leavedClassName:"".concat(s,"-hidden")}),function(S){var C=S.className,w=S.style;return d.createElement(Qv,{id:t,className:C,style:w},i)}))}var IL=["style","className","title","eventKey","warnKey","disabled","internalPopupClose","children","itemIcon","expandIcon","popupClassName","popupOffset","popupStyle","onClick","onMouseEnter","onMouseLeave","onTitleClick","onTitleMouseEnter","onTitleMouseLeave"],kL=["active"],NL=d.forwardRef(function(e,t){var n=e.style,r=e.className,i=e.title,o=e.eventKey;e.warnKey;var a=e.disabled,s=e.internalPopupClose,l=e.children,c=e.itemIcon,u=e.expandIcon,f=e.popupClassName,h=e.popupOffset,m=e.popupStyle,y=e.onClick,v=e.onMouseEnter,b=e.onMouseLeave,p=e.onTitleClick,g=e.onTitleMouseEnter,x=e.onTitleMouseLeave,S=st(e,IL),C=w_(o),w=d.useContext(ai),E=w.prefixCls,_=w.mode,O=w.openKeys,M=w.disabled,I=w.overflowDisabled,k=w.activeKey,F=w.selectedKeys,j=w.itemIcon,B=w.expandIcon,A=w.onItemClick,P=w.onOpenChange,R=w.onActive,N=d.useContext(qv),D=N._internalRenderSubMenuItem,H=d.useContext($_),G=H.isSubPathKey,X=Fc(),W="".concat(E,"-submenu"),K=M||a,ee=d.useRef(),U=d.useRef(),Y=c??j,J=u??B,re=O.includes(o),ce=!I&&re,he=G(F,o),Se=P_(o,K,g,x),ie=Se.active,de=st(Se,kL),ye=d.useState(!1),be=Q(ye,2),se=be[0],we=be[1],$e=function(Ct){K||we(Ct)},ue=function(Ct){$e(!0),v==null||v({key:o,domEvent:Ct})},Ne=function(Ct){$e(!1),b==null||b({key:o,domEvent:Ct})},ae=d.useMemo(function(){return ie||(_!=="inline"?se||G([k],o):!1)},[_,ie,k,se,o,G]),Ue=M_(X.length),Fe=function(Ct){K||(p==null||p({key:o,domEvent:Ct}),_==="inline"&&P(o,!re))},Ce=ll(function(Ge){y==null||y(Bd(Ge)),A(Ge)}),Ve=function(Ct){_!=="inline"&&P(o,Ct)},Be=function(){R(o)},De=C&&"".concat(C,"-popup"),He=d.createElement("div",Pe({role:"menuitem",style:Ue,className:"".concat(W,"-title"),tabIndex:K?null:-1,ref:ee,title:typeof i=="string"?i:null,"data-menu-id":I&&C?null:C,"aria-expanded":ce,"aria-haspopup":!0,"aria-controls":De,"aria-disabled":K,onClick:Fe,onFocus:Be},de),i,d.createElement(T_,{icon:_!=="horizontal"?J:void 0,props:V(V({},e),{},{isOpen:ce,isSubMenu:!0})},d.createElement("i",{className:"".concat(W,"-arrow")}))),We=d.useRef(_);if(_!=="inline"&&X.length>1?We.current="vertical":We.current=_,!I){var ct=We.current;He=d.createElement(TL,{mode:ct,prefixCls:W,visible:!s&&ce&&_!=="inline",popupClassName:f,popupOffset:h,popupStyle:m,popup:d.createElement(gc,{mode:ct==="horizontal"?"vertical":ct},d.createElement(Qv,{id:De,ref:U},l)),disabled:K,onVisibleChange:Ve},He)}var ht=d.createElement(Ni.Item,Pe({ref:t,role:"none"},S,{component:"li",style:n,className:te(W,"".concat(W,"-").concat(_),r,z(z(z(z({},"".concat(W,"-open"),ce),"".concat(W,"-active"),ae),"".concat(W,"-selected"),he),"".concat(W,"-disabled"),K)),onMouseEnter:ue,onMouseLeave:Ne}),He,!I&&d.createElement(RL,{id:De,open:ce,keyPath:X},l));return D&&(ht=D(ht,e,{selected:he,active:ae,open:ce,disabled:K})),d.createElement(gc,{onItemClick:Ce,mode:_==="horizontal"?"vertical":_,itemIcon:Y,expandIcon:J},ht)}),Jv=d.forwardRef(function(e,t){var n=e.eventKey,r=e.children,i=Fc(n),o=Zv(r,i),a=jf();d.useEffect(function(){if(a)return a.registerPath(n,i),function(){a.unregisterPath(n,i)}},[i]);var s;return a?s=o:s=d.createElement(NL,Pe({ref:t},e),o),d.createElement(__.Provider,{value:i},s)});function I_(e){var t=e.className,n=e.style,r=d.useContext(ai),i=r.prefixCls,o=jf();return o?null:d.createElement("li",{role:"separator",className:te("".concat(i,"-item-divider"),t),style:n})}var FL=["className","title","eventKey","children"],AL=d.forwardRef(function(e,t){var n=e.className,r=e.title;e.eventKey;var i=e.children,o=st(e,FL),a=d.useContext(ai),s=a.prefixCls,l="".concat(s,"-item-group");return d.createElement("li",Pe({ref:t,role:"presentation"},o,{onClick:function(u){return u.stopPropagation()},className:te(l,n)}),d.createElement("div",{role:"presentation",className:"".concat(l,"-title"),title:typeof r=="string"?r:void 0},r),d.createElement("ul",{role:"group",className:"".concat(l,"-list")},i))}),k_=d.forwardRef(function(e,t){var n=e.eventKey,r=e.children,i=Fc(n),o=Zv(r,i),a=jf();return a?o:d.createElement(AL,Pe({ref:t},si(e,["warnKey"])),o)}),LL=["label","children","key","type","extra"];function ep(e,t,n){var r=t.item,i=t.group,o=t.submenu,a=t.divider;return(e||[]).map(function(s,l){if(s&&je(s)==="object"){var c=s,u=c.label,f=c.children,h=c.key,m=c.type,y=c.extra,v=st(c,LL),b=h??"tmp-".concat(l);return f||m==="group"?m==="group"?d.createElement(i,Pe({key:b},v,{title:u}),ep(f,t,n)):d.createElement(o,Pe({key:b},v,{title:u}),ep(f,t,n)):m==="divider"?d.createElement(a,Pe({key:b},v)):d.createElement(r,Pe({key:b},v),u,(!!y||y===0)&&d.createElement("span",{className:"".concat(n,"-item-extra")},y))}return null}).filter(function(s){return s})}function f1(e,t,n,r,i){var o=e,a=V({divider:I_,item:Bf,group:k_,submenu:Jv},r);return t&&(o=ep(t,a,i)),Zv(o,n)}var DL=["prefixCls","rootClassName","style","className","tabIndex","items","children","direction","id","mode","inlineCollapsed","disabled","disabledOverflow","subMenuOpenDelay","subMenuCloseDelay","forceSubMenuRender","defaultOpenKeys","openKeys","activeKey","defaultActiveFirst","selectable","multiple","defaultSelectedKeys","selectedKeys","onSelect","onDeselect","inlineIndent","motion","defaultMotions","triggerSubMenuAction","builtinPlacements","itemIcon","expandIcon","overflowedIndicator","overflowedIndicatorPopupClassName","getPopupContainer","onClick","onOpenChange","onKeyDown","openAnimation","openTransitionName","_internalRenderMenuItem","_internalRenderSubMenuItem","_internalComponents"],No=[],zL=d.forwardRef(function(e,t){var n,r=e,i=r.prefixCls,o=i===void 0?"rc-menu":i,a=r.rootClassName,s=r.style,l=r.className,c=r.tabIndex,u=c===void 0?0:c,f=r.items,h=r.children,m=r.direction,y=r.id,v=r.mode,b=v===void 0?"vertical":v,p=r.inlineCollapsed,g=r.disabled,x=r.disabledOverflow,S=r.subMenuOpenDelay,C=S===void 0?.1:S,w=r.subMenuCloseDelay,E=w===void 0?.1:w,_=r.forceSubMenuRender,O=r.defaultOpenKeys,M=r.openKeys,I=r.activeKey,k=r.defaultActiveFirst,F=r.selectable,j=F===void 0?!0:F,B=r.multiple,A=B===void 0?!1:B,P=r.defaultSelectedKeys,R=r.selectedKeys,N=r.onSelect,D=r.onDeselect,H=r.inlineIndent,G=H===void 0?24:H,X=r.motion,W=r.defaultMotions,K=r.triggerSubMenuAction,ee=K===void 0?"hover":K,U=r.builtinPlacements,Y=r.itemIcon,J=r.expandIcon,re=r.overflowedIndicator,ce=re===void 0?"...":re,he=r.overflowedIndicatorPopupClassName,Se=r.getPopupContainer,ie=r.onClick,de=r.onOpenChange,ye=r.onKeyDown;r.openAnimation,r.openTransitionName;var be=r._internalRenderMenuItem,se=r._internalRenderSubMenuItem,we=r._internalComponents,$e=st(r,DL),ue=d.useMemo(function(){return[f1(h,f,No,we,o),f1(h,f,No,{},o)]},[h,f,we]),Ne=Q(ue,2),ae=Ne[0],Ue=Ne[1],Fe=d.useState(!1),Ce=Q(Fe,2),Ve=Ce[0],Be=Ce[1],De=d.useRef(),He=vL(y),We=m==="rtl",ct=yo(O,{value:M,postState:function(Je){return Je||No}}),ht=Q(ct,2),Ge=ht[0],Ct=ht[1],kt=function(Je){var St=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;function vn(){Ct(Je),de==null||de(Je)}St?ma.flushSync(vn):vn()},Et=d.useState(Ge),gt=Q(Et,2),xn=gt[0],vt=gt[1],_t=d.useRef(!1),Me=d.useMemo(function(){return(b==="inline"||b==="vertical")&&p?["vertical",p]:[b,!1]},[b,p]),fe=Q(Me,2),Re=fe[0],Ie=fe[1],ze=Re==="inline",Ee=d.useState(Re),_e=Q(Ee,2),pe=_e[0],ut=_e[1],Nt=d.useState(Ie),mt=Q(Nt,2),nt=mt[0],Tt=mt[1];d.useEffect(function(){ut(Re),Tt(Ie),_t.current&&(ze?Ct(xn):kt(No))},[Re,Ie]);var Ot=d.useState(0),At=Q(Ot,2),pn=At[0],Xn=At[1],Qe=pn>=ae.length-1||pe!=="horizontal"||x;d.useEffect(function(){ze&&vt(Ge)},[Ge]),d.useEffect(function(){return _t.current=!0,function(){_t.current=!1}},[]);var Le=mL(),dt=Le.registerPath,pt=Le.unregisterPath,jt=Le.refreshOverflowKeys,Ye=Le.isSubPathKey,en=Le.getKeyPath,tn=Le.getKeys,Yn=Le.getSubPathKeys,Ae=d.useMemo(function(){return{registerPath:dt,unregisterPath:pt}},[dt,pt]),ke=d.useMemo(function(){return{isSubPathKey:Ye}},[Ye]);d.useEffect(function(){jt(Qe?No:ae.slice(pn+1).map(function(xt){return xt.key}))},[pn,Qe]);var ot=yo(I||k&&((n=ae[0])===null||n===void 0?void 0:n.key),{value:I}),Ze=Q(ot,2),qe=Ze[0],Xt=Ze[1],Bt=ll(function(xt){Xt(xt)}),Lt=ll(function(){Xt(void 0)});d.useImperativeHandle(t,function(){return{list:De.current,focus:function(Je){var St,vn=tn(),an=Zm(vn,He),Wr=an.elements,li=an.key2element,Ro=an.element2key,$=Xv(De.current,Wr),T=qe??($[0]?Ro.get($[0]):(St=ae.find(function(ne){return!ne.props.disabled}))===null||St===void 0?void 0:St.key),L=li.get(T);if(T&&L){var q;L==null||(q=L.focus)===null||q===void 0||q.call(L,Je)}}}});var Ht=yo(P||[],{value:R,postState:function(Je){return Array.isArray(Je)?Je:Je==null?No:[Je]}}),Dt=Q(Ht,2),Rt=Dt[0],Yt=Dt[1],nr=function(Je){if(j){var St=Je.key,vn=Rt.includes(St),an;A?vn?an=Rt.filter(function(li){return li!==St}):an=[].concat(ge(Rt),[St]):an=[St],Yt(an);var Wr=V(V({},Je),{},{selectedKeys:an});vn?D==null||D(Wr):N==null||N(Wr)}!A&&Ge.length&&pe!=="inline"&&kt(No)},rr=ll(function(xt){ie==null||ie(Bd(xt)),nr(xt)}),Vt=ll(function(xt,Je){var St=Ge.filter(function(an){return an!==xt});if(Je)St.push(xt);else if(pe!=="inline"){var vn=Yn(xt);St=St.filter(function(an){return!vn.has(an)})}vs(Ge,St,!0)||kt(St,!0)}),$n=function(Je,St){var vn=St??!Ge.includes(Je);Vt(Je,vn)},_r=fL(pe,qe,We,He,De,tn,en,Xt,$n,ye);d.useEffect(function(){Be(!0)},[]);var $r=d.useMemo(function(){return{_internalRenderMenuItem:be,_internalRenderSubMenuItem:se}},[be,se]),Bn=pe!=="horizontal"||x?ae:ae.map(function(xt,Je){return d.createElement(gc,{key:xt.key,overflowDisabled:Je>pn},xt)}),Ci=d.createElement(Ni,Pe({id:y,ref:De,prefixCls:"".concat(o,"-overflow"),component:"ul",itemComponent:Bf,className:te(o,"".concat(o,"-root"),"".concat(o,"-").concat(pe),l,z(z({},"".concat(o,"-inline-collapsed"),nt),"".concat(o,"-rtl"),We),a),dir:m,style:s,role:"menu",tabIndex:u,data:Bn,renderRawItem:function(Je){return Je},renderRawRest:function(Je){var St=Je.length,vn=St?ae.slice(-St):null;return d.createElement(Jv,{eventKey:Jm,title:ce,disabled:Qe,internalPopupClose:St===0,popupClassName:he},vn)},maxCount:pe!=="horizontal"||x?Ni.INVALIDATE:Ni.RESPONSIVE,ssr:"full","data-menu-list":!0,onVisibleChange:function(Je){Xn(Je)},onKeyDown:_r},$e));return d.createElement(qv.Provider,{value:$r},d.createElement(S_.Provider,{value:He},d.createElement(gc,{prefixCls:o,rootClassName:a,mode:pe,openKeys:Ge,rtl:We,disabled:g,motion:Ve?X:null,defaultMotions:Ve?W:null,activeKey:qe,onActive:Bt,onInactive:Lt,selectedKeys:Rt,inlineIndent:G,subMenuOpenDelay:C,subMenuCloseDelay:E,forceSubMenuRender:_,builtinPlacements:U,triggerSubMenuAction:ee,getPopupContainer:Se,itemIcon:Y,expandIcon:J,onItemClick:rr,onOpenChange:Vt},d.createElement($_.Provider,{value:ke},Ci),d.createElement("div",{style:{display:"none"},"aria-hidden":!0},d.createElement(E_.Provider,{value:Ae},Ue)))))}),Ac=zL;Ac.Item=Bf;Ac.SubMenu=Jv;Ac.ItemGroup=k_;Ac.Divider=I_;var jL={icon:{tag:"svg",attrs:{viewBox:"0 0 1024 1024",focusable:"false"},children:[{tag:"path",attrs:{d:"M912 192H328c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h584c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm0 284H328c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h584c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm0 284H328c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h584c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zM104 228a56 56 0 10112 0 56 56 0 10-112 0zm0 284a56 56 0 10112 0 56 56 0 10-112 0zm0 284a56 56 0 10112 0 56 56 0 10-112 0z"}}]},name:"bars",theme:"outlined"},BL=function(t,n){return d.createElement(_n,Pe({},t,{ref:n,icon:jL}))},HL=d.forwardRef(BL),VL={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M724 218.3V141c0-6.7-7.7-10.4-12.9-6.3L260.3 486.8a31.86 31.86 0 000 50.3l450.8 352.1c5.3 4.1 12.9.4 12.9-6.3v-77.3c0-4.9-2.3-9.6-6.1-12.6l-360-281 360-281.1c3.8-3 6.1-7.7 6.1-12.6z"}}]},name:"left",theme:"outlined"},WL=function(t,n){return d.createElement(_n,Pe({},t,{ref:n,icon:VL}))},h1=d.forwardRef(WL);const UL=e=>!isNaN(parseFloat(e))&&isFinite(e),N_=d.createContext({siderHook:{addSider:()=>null,removeSider:()=>null}}),GL=e=>{const{antCls:t,componentCls:n,colorText:r,footerBg:i,headerHeight:o,headerPadding:a,headerColor:s,footerPadding:l,fontSize:c,bodyBg:u,headerBg:f}=e;return{[n]:{display:"flex",flex:"auto",flexDirection:"column",minHeight:0,background:u,"&, *":{boxSizing:"border-box"},[`&${n}-has-sider`]:{flexDirection:"row",[`> ${n}, > ${n}-content`]:{width:0}},[`${n}-header, &${n}-footer`]:{flex:"0 0 auto"},"&-rtl":{direction:"rtl"}},[`${n}-header`]:{height:o,padding:a,color:s,lineHeight:Z(o),background:f,[`${t}-menu`]:{lineHeight:"inherit"}},[`${n}-footer`]:{padding:l,color:r,fontSize:c,background:i},[`${n}-content`]:{flex:"auto",color:r,minHeight:0}}},F_=e=>{const{colorBgLayout:t,controlHeight:n,controlHeightLG:r,colorText:i,controlHeightSM:o,marginXXS:a,colorTextLightSolid:s,colorBgContainer:l}=e,c=r*1.25;return{colorBgHeader:"#001529",colorBgBody:t,colorBgTrigger:"#002140",bodyBg:t,headerBg:"#001529",headerHeight:n*2,headerPadding:`0 ${c}px`,headerColor:i,footerPadding:`${o}px ${c}px`,footerBg:t,siderBg:"#001529",triggerHeight:r+a*2,triggerBg:"#002140",triggerColor:s,zeroTriggerWidth:r,zeroTriggerHeight:r,lightSiderBg:l,lightTriggerBg:l,lightTriggerColor:i}},A_=[["colorBgBody","bodyBg"],["colorBgHeader","headerBg"],["colorBgTrigger","triggerBg"]],L_=Er("Layout",e=>[GL(e)],F_,{deprecatedTokens:A_}),KL=e=>{const{componentCls:t,siderBg:n,motionDurationMid:r,motionDurationSlow:i,antCls:o,triggerHeight:a,triggerColor:s,triggerBg:l,headerHeight:c,zeroTriggerWidth:u,zeroTriggerHeight:f,borderRadius:h,lightSiderBg:m,lightTriggerColor:y,lightTriggerBg:v,bodyBg:b}=e;return{[t]:{position:"relative",minWidth:0,background:n,transition:`all ${r}, background 0s`,"&-has-trigger":{paddingBottom:a},"&-right":{order:1},[`${t}-children`]:{height:"100%",marginTop:-.1,paddingTop:.1,[`${o}-menu${o}-menu-inline-collapsed`]:{width:"auto"}},[`${t}-trigger`]:{position:"fixed",bottom:0,zIndex:1,height:a,color:s,lineHeight:Z(a),textAlign:"center",background:l,cursor:"pointer",transition:`all ${r}`},"&-zero-width":{"> *":{overflow:"hidden"},[`${t}-trigger`]:{position:"absolute",top:c,insetInlineEnd:e.calc(u).mul(-1).equal(),zIndex:1,width:u,height:f,color:s,fontSize:e.fontSizeXL,display:"flex",alignItems:"center",justifyContent:"center",background:n,borderStartStartRadius:0,borderStartEndRadius:h,borderEndEndRadius:h,borderEndStartRadius:0,cursor:"pointer",transition:`background ${i} ease`,"&::after":{position:"absolute",inset:0,background:"transparent",transition:`all ${i}`,content:'""'},"&:hover::after":{background:"rgba(255, 255, 255, 0.2)"},"&-right":{insetInlineStart:e.calc(u).mul(-1).equal(),borderStartStartRadius:h,borderStartEndRadius:0,borderEndEndRadius:0,borderEndStartRadius:h}}},"&-light":{background:m,[`${t}-trigger`]:{color:y,background:v},[`${t}-zero-width-trigger`]:{color:y,background:v,border:`1px solid ${b}`,borderInlineStart:0}}}}},qL=Er(["Layout","Sider"],e=>[KL(e)],F_,{deprecatedTokens:A_});var XL=function(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 i=0,r=Object.getOwnPropertySymbols(e);i{let e=0;return function(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"";return e+=1,`${t}${e}`}})(),z_=d.forwardRef((e,t)=>{const{prefixCls:n,className:r,trigger:i,children:o,defaultCollapsed:a=!1,theme:s="dark",style:l={},collapsible:c=!1,reverseArrow:u=!1,width:f=200,collapsedWidth:h=80,zeroWidthTriggerStyle:m,breakpoint:y,onCollapse:v,onBreakpoint:b}=e,p=XL(e,["prefixCls","className","trigger","children","defaultCollapsed","theme","style","collapsible","reverseArrow","width","collapsedWidth","zeroWidthTriggerStyle","breakpoint","onCollapse","onBreakpoint"]),{siderHook:g}=d.useContext(N_),[x,S]=d.useState("collapsed"in e?e.collapsed:a),[C,w]=d.useState(!1);d.useEffect(()=>{"collapsed"in e&&S(e.collapsed)},[e.collapsed]);const E=(P,R)=>{"collapsed"in e||S(P),v==null||v(P,R)},{getPrefixCls:_}=d.useContext(bt),O=_("layout-sider",n),[M,I,k]=qL(O),F=d.useRef();F.current=P=>{w(P.matches),b==null||b(P.matches),x!==P.matches&&E(P.matches,"responsive")},d.useEffect(()=>{function P(N){return F.current(N)}let R;if(typeof window<"u"){const{matchMedia:N}=window;if(N&&y&&y in g1){R=N(`screen and (max-width: ${g1[y]})`);try{R.addEventListener("change",P)}catch{R.addListener(P)}P(R)}}return()=>{try{R==null||R.removeEventListener("change",P)}catch{R==null||R.removeListener(P)}}},[y]),d.useEffect(()=>{const P=YL("ant-sider-");return g.addSider(P),()=>g.removeSider(P)},[]);const j=()=>{E(!x,"clickTrigger")},B=()=>{const P=si(p,["collapsed"]),R=x?h:f,N=UL(R)?`${R}px`:String(R),D=parseFloat(String(h||0))===0?d.createElement("span",{onClick:j,className:te(`${O}-zero-width-trigger`,`${O}-zero-width-trigger-${u?"right":"left"}`),style:m},i||d.createElement(HL,null)):null,X={expanded:u?d.createElement(Ib,null):d.createElement(h1,null),collapsed:u?d.createElement(h1,null):d.createElement(Ib,null)}[x?"collapsed":"expanded"],W=i!==null?D||d.createElement("div",{className:`${O}-trigger`,onClick:j,style:{width:N}},i||X):null,K=Object.assign(Object.assign({},l),{flex:`0 0 ${N}`,maxWidth:N,minWidth:N,width:N}),ee=te(O,`${O}-${s}`,{[`${O}-collapsed`]:!!x,[`${O}-has-trigger`]:c&&i!==null&&!D,[`${O}-below`]:!!C,[`${O}-zero-width`]:parseFloat(N)===0},r,I,k);return d.createElement("aside",Object.assign({className:ee},P,{style:K,ref:t}),d.createElement("div",{className:`${O}-children`},o),c||C&&D?W:null)},A=d.useMemo(()=>({siderCollapsed:x}),[x]);return M(d.createElement(D_.Provider,{value:A},B()))});var QL={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M176 511a56 56 0 10112 0 56 56 0 10-112 0zm280 0a56 56 0 10112 0 56 56 0 10-112 0zm280 0a56 56 0 10112 0 56 56 0 10-112 0z"}}]},name:"ellipsis",theme:"outlined"},ZL=function(t,n){return d.createElement(_n,Pe({},t,{ref:n,icon:QL}))},JL=d.forwardRef(ZL);function j_(e){return An(e,{inputAffixPadding:e.paddingXXS})}const B_=e=>{const{controlHeight:t,fontSize:n,lineHeight:r,lineWidth:i,controlHeightSM:o,controlHeightLG:a,fontSizeLG:s,lineHeightLG:l,paddingSM:c,controlPaddingHorizontalSM:u,controlPaddingHorizontal:f,colorFillAlter:h,colorPrimaryHover:m,colorPrimary:y,controlOutlineWidth:v,controlOutline:b,colorErrorOutline:p,colorWarningOutline:g,colorBgContainer:x}=e;return{paddingBlock:Math.max(Math.round((t-n*r)/2*10)/10-i,0),paddingBlockSM:Math.max(Math.round((o-n*r)/2*10)/10-i,0),paddingBlockLG:Math.ceil((a-s*l)/2*10)/10-i,paddingInline:c-i,paddingInlineSM:u-i,paddingInlineLG:f-i,addonBg:h,activeBorderColor:y,hoverBorderColor:m,activeShadow:`0 0 0 ${v}px ${b}`,errorActiveShadow:`0 0 0 ${v}px ${p}`,warningActiveShadow:`0 0 0 ${v}px ${g}`,hoverBg:x,activeBg:x,inputFontSize:n,inputFontSizeLG:s,inputFontSizeSM:n}},e5=e=>({borderColor:e.hoverBorderColor,backgroundColor:e.hoverBg}),e0=e=>({color:e.colorTextDisabled,backgroundColor:e.colorBgContainerDisabled,borderColor:e.colorBorder,boxShadow:"none",cursor:"not-allowed",opacity:1,"input[disabled], textarea[disabled]":{cursor:"not-allowed"},"&:hover:not([disabled])":Object.assign({},e5(An(e,{hoverBorderColor:e.colorBorder,hoverBg:e.colorBgContainerDisabled})))}),H_=(e,t)=>({background:e.colorBgContainer,borderWidth:e.lineWidth,borderStyle:e.lineType,borderColor:t.borderColor,"&:hover":{borderColor:t.hoverBorderColor,backgroundColor:e.hoverBg},"&:focus, &:focus-within":{borderColor:t.activeBorderColor,boxShadow:t.activeShadow,outline:0,backgroundColor:e.activeBg}}),m1=(e,t)=>({[`&${e.componentCls}-status-${t.status}:not(${e.componentCls}-disabled)`]:Object.assign(Object.assign({},H_(e,t)),{[`${e.componentCls}-prefix, ${e.componentCls}-suffix`]:{color:t.affixColor}}),[`&${e.componentCls}-status-${t.status}${e.componentCls}-disabled`]:{borderColor:t.borderColor}}),V_=(e,t)=>({"&-outlined":Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},H_(e,{borderColor:e.colorBorder,hoverBorderColor:e.hoverBorderColor,activeBorderColor:e.activeBorderColor,activeShadow:e.activeShadow})),{[`&${e.componentCls}-disabled, &[disabled]`]:Object.assign({},e0(e))}),m1(e,{status:"error",borderColor:e.colorError,hoverBorderColor:e.colorErrorBorderHover,activeBorderColor:e.colorError,activeShadow:e.errorActiveShadow,affixColor:e.colorError})),m1(e,{status:"warning",borderColor:e.colorWarning,hoverBorderColor:e.colorWarningBorderHover,activeBorderColor:e.colorWarning,activeShadow:e.warningActiveShadow,affixColor:e.colorWarning})),t)}),p1=(e,t)=>({[`&${e.componentCls}-group-wrapper-status-${t.status}`]:{[`${e.componentCls}-group-addon`]:{borderColor:t.addonBorderColor,color:t.addonColor}}}),W_=e=>({"&-outlined":Object.assign(Object.assign(Object.assign({[`${e.componentCls}-group`]:{"&-addon":{background:e.addonBg,border:`${Z(e.lineWidth)} ${e.lineType} ${e.colorBorder}`},"&-addon:first-child":{borderInlineEnd:0},"&-addon:last-child":{borderInlineStart:0}}},p1(e,{status:"error",addonBorderColor:e.colorError,addonColor:e.colorErrorText})),p1(e,{status:"warning",addonBorderColor:e.colorWarning,addonColor:e.colorWarningText})),{[`&${e.componentCls}-group-wrapper-disabled`]:{[`${e.componentCls}-group-addon`]:Object.assign({},e0(e))}})}),U_=(e,t)=>{const{componentCls:n}=e;return{"&-borderless":Object.assign({background:"transparent",border:"none","&:focus, &:focus-within":{outline:"none"},[`&${n}-disabled, &[disabled]`]:{color:e.colorTextDisabled},[`&${n}-status-error`]:{"&, & input, & textarea":{color:e.colorError}},[`&${n}-status-warning`]:{"&, & input, & textarea":{color:e.colorWarning}}},t)}},G_=(e,t)=>({background:t.bg,borderWidth:e.lineWidth,borderStyle:e.lineType,borderColor:"transparent","input&, & input, textarea&, & textarea":{color:t==null?void 0:t.inputColor},"&:hover":{background:t.hoverBg},"&:focus, &:focus-within":{outline:0,borderColor:t.activeBorderColor,backgroundColor:e.activeBg}}),v1=(e,t)=>({[`&${e.componentCls}-status-${t.status}:not(${e.componentCls}-disabled)`]:Object.assign(Object.assign({},G_(e,t)),{[`${e.componentCls}-prefix, ${e.componentCls}-suffix`]:{color:t.affixColor}})}),K_=(e,t)=>({"&-filled":Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},G_(e,{bg:e.colorFillTertiary,hoverBg:e.colorFillSecondary,activeBorderColor:e.activeBorderColor})),{[`&${e.componentCls}-disabled, &[disabled]`]:Object.assign({},e0(e))}),v1(e,{status:"error",bg:e.colorErrorBg,hoverBg:e.colorErrorBgHover,activeBorderColor:e.colorError,inputColor:e.colorErrorText,affixColor:e.colorError})),v1(e,{status:"warning",bg:e.colorWarningBg,hoverBg:e.colorWarningBgHover,activeBorderColor:e.colorWarning,inputColor:e.colorWarningText,affixColor:e.colorWarning})),t)}),y1=(e,t)=>({[`&${e.componentCls}-group-wrapper-status-${t.status}`]:{[`${e.componentCls}-group-addon`]:{background:t.addonBg,color:t.addonColor}}}),q_=e=>({"&-filled":Object.assign(Object.assign(Object.assign({[`${e.componentCls}-group`]:{"&-addon":{background:e.colorFillTertiary},[`${e.componentCls}-filled:not(:focus):not(:focus-within)`]:{"&:not(:first-child)":{borderInlineStart:`${Z(e.lineWidth)} ${e.lineType} ${e.colorSplit}`},"&:not(:last-child)":{borderInlineEnd:`${Z(e.lineWidth)} ${e.lineType} ${e.colorSplit}`}}}},y1(e,{status:"error",addonBg:e.colorErrorBg,addonColor:e.colorErrorText})),y1(e,{status:"warning",addonBg:e.colorWarningBg,addonColor:e.colorWarningText})),{[`&${e.componentCls}-group-wrapper-disabled`]:{[`${e.componentCls}-group`]:{"&-addon":{background:e.colorFillTertiary,color:e.colorTextDisabled},"&-addon:first-child":{borderInlineStart:`${Z(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,borderTop:`${Z(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,borderBottom:`${Z(e.lineWidth)} ${e.lineType} ${e.colorBorder}`},"&-addon:last-child":{borderInlineEnd:`${Z(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,borderTop:`${Z(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,borderBottom:`${Z(e.lineWidth)} ${e.lineType} ${e.colorBorder}`}}}})}),X_=e=>({"&::-moz-placeholder":{opacity:1},"&::placeholder":{color:e,userSelect:"none"},"&:placeholder-shown":{textOverflow:"ellipsis"}}),Y_=e=>{const{paddingBlockLG:t,lineHeightLG:n,borderRadiusLG:r,paddingInlineLG:i}=e;return{padding:`${Z(t)} ${Z(i)}`,fontSize:e.inputFontSizeLG,lineHeight:n,borderRadius:r}},Q_=e=>({padding:`${Z(e.paddingBlockSM)} ${Z(e.paddingInlineSM)}`,fontSize:e.inputFontSizeSM,borderRadius:e.borderRadiusSM}),Hf=e=>Object.assign(Object.assign({position:"relative",display:"inline-block",width:"100%",minWidth:0,padding:`${Z(e.paddingBlock)} ${Z(e.paddingInline)}`,color:e.colorText,fontSize:e.inputFontSize,lineHeight:e.lineHeight,borderRadius:e.borderRadius,transition:`all ${e.motionDurationMid}`},X_(e.colorTextPlaceholder)),{"textarea&":{maxWidth:"100%",height:"auto",minHeight:e.controlHeight,lineHeight:e.lineHeight,verticalAlign:"bottom",transition:`all ${e.motionDurationSlow}, height 0s`,resize:"vertical"},"&-lg":Object.assign({},Y_(e)),"&-sm":Object.assign({},Q_(e)),"&-rtl, &-textarea-rtl":{direction:"rtl"}}),Z_=e=>{const{componentCls:t,antCls:n}=e;return{position:"relative",display:"table",width:"100%",borderCollapse:"separate",borderSpacing:0,"&[class*='col-']":{paddingInlineEnd:e.paddingXS,"&:last-child":{paddingInlineEnd:0}},[`&-lg ${t}, &-lg > ${t}-group-addon`]:Object.assign({},Y_(e)),[`&-sm ${t}, &-sm > ${t}-group-addon`]:Object.assign({},Q_(e)),[`&-lg ${n}-select-single ${n}-select-selector`]:{height:e.controlHeightLG},[`&-sm ${n}-select-single ${n}-select-selector`]:{height:e.controlHeightSM},[`> ${t}`]:{display:"table-cell","&:not(:first-child):not(:last-child)":{borderRadius:0}},[`${t}-group`]:{"&-addon, &-wrap":{display:"table-cell",width:1,whiteSpace:"nowrap",verticalAlign:"middle","&:not(:first-child):not(:last-child)":{borderRadius:0}},"&-wrap > *":{display:"block !important"},"&-addon":{position:"relative",padding:`0 ${Z(e.paddingInline)}`,color:e.colorText,fontWeight:"normal",fontSize:e.inputFontSize,textAlign:"center",borderRadius:e.borderRadius,transition:`all ${e.motionDurationSlow}`,lineHeight:1,[`${n}-select`]:{margin:`${Z(e.calc(e.paddingBlock).add(1).mul(-1).equal())} ${Z(e.calc(e.paddingInline).mul(-1).equal())}`,[`&${n}-select-single:not(${n}-select-customize-input):not(${n}-pagination-size-changer)`]:{[`${n}-select-selector`]:{backgroundColor:"inherit",border:`${Z(e.lineWidth)} ${e.lineType} transparent`,boxShadow:"none"}}},[`${n}-cascader-picker`]:{margin:`-9px ${Z(e.calc(e.paddingInline).mul(-1).equal())}`,backgroundColor:"transparent",[`${n}-cascader-input`]:{textAlign:"start",border:0,boxShadow:"none"}}}},[t]:{width:"100%",marginBottom:0,textAlign:"inherit","&:focus":{zIndex:1,borderInlineEndWidth:1},"&:hover":{zIndex:1,borderInlineEndWidth:1,[`${t}-search-with-button &`]:{zIndex:0}}},[`> ${t}:first-child, ${t}-group-addon:first-child`]:{borderStartEndRadius:0,borderEndEndRadius:0,[`${n}-select ${n}-select-selector`]:{borderStartEndRadius:0,borderEndEndRadius:0}},[`> ${t}-affix-wrapper`]:{[`&:not(:first-child) ${t}`]:{borderStartStartRadius:0,borderEndStartRadius:0},[`&:not(:last-child) ${t}`]:{borderStartEndRadius:0,borderEndEndRadius:0}},[`> ${t}:last-child, ${t}-group-addon:last-child`]:{borderStartStartRadius:0,borderEndStartRadius:0,[`${n}-select ${n}-select-selector`]:{borderStartStartRadius:0,borderEndStartRadius:0}},[`${t}-affix-wrapper`]:{"&:not(:last-child)":{borderStartEndRadius:0,borderEndEndRadius:0,[`${t}-search &`]:{borderStartStartRadius:e.borderRadius,borderEndStartRadius:e.borderRadius}},[`&:not(:first-child), ${t}-search &:not(:first-child)`]:{borderStartStartRadius:0,borderEndStartRadius:0}},[`&${t}-group-compact`]:Object.assign(Object.assign({display:"block"},Mc()),{[`${t}-group-addon, ${t}-group-wrap, > ${t}`]:{"&:not(:first-child):not(:last-child)":{borderInlineEndWidth:e.lineWidth,"&:hover, &:focus":{zIndex:1}}},"& > *":{display:"inline-flex",float:"none",verticalAlign:"top",borderRadius:0},[` & > ${t}-affix-wrapper, & > ${t}-number-affix-wrapper, & > ${n}-picker-range @@ -189,14 +189,14 @@ html body { & > ${n}-cascader-picker:first-child ${t}`]:{borderStartStartRadius:e.borderRadius,borderEndStartRadius:e.borderRadius},[`& > *:last-child, & > ${n}-select:last-child > ${n}-select-selector, & > ${n}-cascader-picker:last-child ${t}, - & > ${n}-cascader-picker-focused:last-child ${t}`]:{borderInlineEndWidth:e.lineWidth,borderStartEndRadius:e.borderRadius,borderEndEndRadius:e.borderRadius},[`& > ${n}-select-auto-complete ${t}`]:{verticalAlign:"top"},[`${t}-group-wrapper + ${t}-group-wrapper`]:{marginInlineStart:e.calc(e.lineWidth).mul(-1).equal(),[`${t}-affix-wrapper`]:{borderRadius:0}},[`${t}-group-wrapper:not(:last-child)`]:{[`&${t}-search > ${t}-group`]:{[`& > ${t}-group-addon > ${t}-search-button`]:{borderRadius:0},[`& > ${t}`]:{borderStartStartRadius:e.borderRadius,borderStartEndRadius:0,borderEndEndRadius:0,borderEndStartRadius:e.borderRadius}}}})}},t5=e=>{const{componentCls:t,controlHeightSM:n,lineWidth:r,calc:i}=e,a=i(n).sub(i(r).mul(2)).sub(16).div(2).equal();return{[t]:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},Lr(e)),Vf(e)),V_(e)),K_(e)),U_(e)),{'&[type="color"]':{height:e.controlHeight,[`&${t}-lg`]:{height:e.controlHeightLG},[`&${t}-sm`]:{height:n,paddingTop:a,paddingBottom:a}},'&[type="search"]::-webkit-search-cancel-button, &[type="search"]::-webkit-search-decoration':{"-webkit-appearance":"none"}})}},n5=e=>{const{componentCls:t}=e;return{[`${t}-clear-icon`]:{margin:0,color:e.colorTextQuaternary,fontSize:e.fontSizeIcon,verticalAlign:-1,cursor:"pointer",transition:`color ${e.motionDurationSlow}`,"&:hover":{color:e.colorTextTertiary},"&:active":{color:e.colorText},"&-hidden":{visibility:"hidden"},"&-has-suffix":{margin:`0 ${Z(e.inputAffixPadding)}`}}}},r5=e=>{const{componentCls:t,inputAffixPadding:n,colorTextDescription:r,motionDurationSlow:i,colorIcon:o,colorIconHover:a,iconCls:s}=e,l=`${t}-affix-wrapper`,c=`${t}-affix-wrapper-disabled`;return{[l]:Object.assign(Object.assign(Object.assign(Object.assign({},Vf(e)),{display:"inline-flex",[`&:not(${t}-disabled):hover`]:{zIndex:1,[`${t}-search-with-button &`]:{zIndex:0}},"&-focused, &:focus":{zIndex:1},[`> input${t}`]:{padding:0},[`> input${t}, > textarea${t}`]:{fontSize:"inherit",border:"none",borderRadius:0,outline:"none",background:"transparent",color:"inherit","&::-ms-reveal":{display:"none"},"&:focus":{boxShadow:"none !important"}},"&::before":{display:"inline-block",width:0,visibility:"hidden",content:'"\\a0"'},[t]:{"&-prefix, &-suffix":{display:"flex",flex:"none",alignItems:"center","> *:not(:last-child)":{marginInlineEnd:e.paddingXS}},"&-show-count-suffix":{color:r},"&-show-count-has-suffix":{marginInlineEnd:e.paddingXXS},"&-prefix":{marginInlineEnd:n},"&-suffix":{marginInlineStart:n}}}),n5(e)),{[`${s}${t}-password-icon`]:{color:o,cursor:"pointer",transition:`all ${i}`,"&:hover":{color:a}}}),[c]:{[`${s}${t}-password-icon`]:{color:o,cursor:"not-allowed","&:hover":{color:o}}}}},i5=e=>{const{componentCls:t,borderRadiusLG:n,borderRadiusSM:r}=e;return{[`${t}-group`]:Object.assign(Object.assign(Object.assign({},Lr(e)),Z_(e)),{"&-rtl":{direction:"rtl"},"&-wrapper":Object.assign(Object.assign(Object.assign({display:"inline-block",width:"100%",textAlign:"start",verticalAlign:"top","&-rtl":{direction:"rtl"},"&-lg":{[`${t}-group-addon`]:{borderRadius:n,fontSize:e.inputFontSizeLG}},"&-sm":{[`${t}-group-addon`]:{borderRadius:r}}},W_(e)),q_(e)),{[`&:not(${t}-compact-first-item):not(${t}-compact-last-item)${t}-compact-item`]:{[`${t}, ${t}-group-addon`]:{borderRadius:0}},[`&:not(${t}-compact-last-item)${t}-compact-first-item`]:{[`${t}, ${t}-group-addon`]:{borderStartEndRadius:0,borderEndEndRadius:0}},[`&:not(${t}-compact-first-item)${t}-compact-last-item`]:{[`${t}, ${t}-group-addon`]:{borderStartStartRadius:0,borderEndStartRadius:0}},[`&:not(${t}-compact-last-item)${t}-compact-item`]:{[`${t}-affix-wrapper`]:{borderStartEndRadius:0,borderEndEndRadius:0}}})})}},o5=e=>{const{componentCls:t,antCls:n}=e,r=`${t}-search`;return{[r]:{[t]:{"&:hover, &:focus":{borderColor:e.colorPrimaryHover,[`+ ${t}-group-addon ${r}-button:not(${n}-btn-primary)`]:{borderInlineStartColor:e.colorPrimaryHover}}},[`${t}-affix-wrapper`]:{borderRadius:0},[`${t}-lg`]:{lineHeight:e.calc(e.lineHeightLG).sub(2e-4).equal()},[`> ${t}-group`]:{[`> ${t}-group-addon:last-child`]:{insetInlineStart:-1,padding:0,border:0,[`${r}-button`]:{marginInlineEnd:-1,paddingTop:0,paddingBottom:0,borderStartStartRadius:0,borderEndStartRadius:0,boxShadow:"none"},[`${r}-button:not(${n}-btn-primary)`]:{color:e.colorTextDescription,"&:hover":{color:e.colorPrimaryHover},"&:active":{color:e.colorPrimaryActive},[`&${n}-btn-loading::before`]:{insetInlineStart:0,insetInlineEnd:0,insetBlockStart:0,insetBlockEnd:0}}}},[`${r}-button`]:{height:e.controlHeight,"&:hover, &:focus":{zIndex:1}},[`&-large ${r}-button`]:{height:e.controlHeightLG},[`&-small ${r}-button`]:{height:e.controlHeightSM},"&-rtl":{direction:"rtl"},[`&${t}-compact-item`]:{[`&:not(${t}-compact-last-item)`]:{[`${t}-group-addon`]:{[`${t}-search-button`]:{marginInlineEnd:e.calc(e.lineWidth).mul(-1).equal(),borderRadius:0}}},[`&:not(${t}-compact-first-item)`]:{[`${t},${t}-affix-wrapper`]:{borderRadius:0}},[`> ${t}-group-addon ${t}-search-button, + & > ${n}-cascader-picker-focused:last-child ${t}`]:{borderInlineEndWidth:e.lineWidth,borderStartEndRadius:e.borderRadius,borderEndEndRadius:e.borderRadius},[`& > ${n}-select-auto-complete ${t}`]:{verticalAlign:"top"},[`${t}-group-wrapper + ${t}-group-wrapper`]:{marginInlineStart:e.calc(e.lineWidth).mul(-1).equal(),[`${t}-affix-wrapper`]:{borderRadius:0}},[`${t}-group-wrapper:not(:last-child)`]:{[`&${t}-search > ${t}-group`]:{[`& > ${t}-group-addon > ${t}-search-button`]:{borderRadius:0},[`& > ${t}`]:{borderStartStartRadius:e.borderRadius,borderStartEndRadius:0,borderEndEndRadius:0,borderEndStartRadius:e.borderRadius}}}})}},t5=e=>{const{componentCls:t,controlHeightSM:n,lineWidth:r,calc:i}=e,a=i(n).sub(i(r).mul(2)).sub(16).div(2).equal();return{[t]:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},Lr(e)),Hf(e)),V_(e)),K_(e)),U_(e)),{'&[type="color"]':{height:e.controlHeight,[`&${t}-lg`]:{height:e.controlHeightLG},[`&${t}-sm`]:{height:n,paddingTop:a,paddingBottom:a}},'&[type="search"]::-webkit-search-cancel-button, &[type="search"]::-webkit-search-decoration':{"-webkit-appearance":"none"}})}},n5=e=>{const{componentCls:t}=e;return{[`${t}-clear-icon`]:{margin:0,color:e.colorTextQuaternary,fontSize:e.fontSizeIcon,verticalAlign:-1,cursor:"pointer",transition:`color ${e.motionDurationSlow}`,"&:hover":{color:e.colorTextTertiary},"&:active":{color:e.colorText},"&-hidden":{visibility:"hidden"},"&-has-suffix":{margin:`0 ${Z(e.inputAffixPadding)}`}}}},r5=e=>{const{componentCls:t,inputAffixPadding:n,colorTextDescription:r,motionDurationSlow:i,colorIcon:o,colorIconHover:a,iconCls:s}=e,l=`${t}-affix-wrapper`,c=`${t}-affix-wrapper-disabled`;return{[l]:Object.assign(Object.assign(Object.assign(Object.assign({},Hf(e)),{display:"inline-flex",[`&:not(${t}-disabled):hover`]:{zIndex:1,[`${t}-search-with-button &`]:{zIndex:0}},"&-focused, &:focus":{zIndex:1},[`> input${t}`]:{padding:0},[`> input${t}, > textarea${t}`]:{fontSize:"inherit",border:"none",borderRadius:0,outline:"none",background:"transparent",color:"inherit","&::-ms-reveal":{display:"none"},"&:focus":{boxShadow:"none !important"}},"&::before":{display:"inline-block",width:0,visibility:"hidden",content:'"\\a0"'},[t]:{"&-prefix, &-suffix":{display:"flex",flex:"none",alignItems:"center","> *:not(:last-child)":{marginInlineEnd:e.paddingXS}},"&-show-count-suffix":{color:r},"&-show-count-has-suffix":{marginInlineEnd:e.paddingXXS},"&-prefix":{marginInlineEnd:n},"&-suffix":{marginInlineStart:n}}}),n5(e)),{[`${s}${t}-password-icon`]:{color:o,cursor:"pointer",transition:`all ${i}`,"&:hover":{color:a}}}),[c]:{[`${s}${t}-password-icon`]:{color:o,cursor:"not-allowed","&:hover":{color:o}}}}},i5=e=>{const{componentCls:t,borderRadiusLG:n,borderRadiusSM:r}=e;return{[`${t}-group`]:Object.assign(Object.assign(Object.assign({},Lr(e)),Z_(e)),{"&-rtl":{direction:"rtl"},"&-wrapper":Object.assign(Object.assign(Object.assign({display:"inline-block",width:"100%",textAlign:"start",verticalAlign:"top","&-rtl":{direction:"rtl"},"&-lg":{[`${t}-group-addon`]:{borderRadius:n,fontSize:e.inputFontSizeLG}},"&-sm":{[`${t}-group-addon`]:{borderRadius:r}}},W_(e)),q_(e)),{[`&:not(${t}-compact-first-item):not(${t}-compact-last-item)${t}-compact-item`]:{[`${t}, ${t}-group-addon`]:{borderRadius:0}},[`&:not(${t}-compact-last-item)${t}-compact-first-item`]:{[`${t}, ${t}-group-addon`]:{borderStartEndRadius:0,borderEndEndRadius:0}},[`&:not(${t}-compact-first-item)${t}-compact-last-item`]:{[`${t}, ${t}-group-addon`]:{borderStartStartRadius:0,borderEndStartRadius:0}},[`&:not(${t}-compact-last-item)${t}-compact-item`]:{[`${t}-affix-wrapper`]:{borderStartEndRadius:0,borderEndEndRadius:0}}})})}},o5=e=>{const{componentCls:t,antCls:n}=e,r=`${t}-search`;return{[r]:{[t]:{"&:hover, &:focus":{borderColor:e.colorPrimaryHover,[`+ ${t}-group-addon ${r}-button:not(${n}-btn-primary)`]:{borderInlineStartColor:e.colorPrimaryHover}}},[`${t}-affix-wrapper`]:{borderRadius:0},[`${t}-lg`]:{lineHeight:e.calc(e.lineHeightLG).sub(2e-4).equal()},[`> ${t}-group`]:{[`> ${t}-group-addon:last-child`]:{insetInlineStart:-1,padding:0,border:0,[`${r}-button`]:{marginInlineEnd:-1,paddingTop:0,paddingBottom:0,borderStartStartRadius:0,borderEndStartRadius:0,boxShadow:"none"},[`${r}-button:not(${n}-btn-primary)`]:{color:e.colorTextDescription,"&:hover":{color:e.colorPrimaryHover},"&:active":{color:e.colorPrimaryActive},[`&${n}-btn-loading::before`]:{insetInlineStart:0,insetInlineEnd:0,insetBlockStart:0,insetBlockEnd:0}}}},[`${r}-button`]:{height:e.controlHeight,"&:hover, &:focus":{zIndex:1}},[`&-large ${r}-button`]:{height:e.controlHeightLG},[`&-small ${r}-button`]:{height:e.controlHeightSM},"&-rtl":{direction:"rtl"},[`&${t}-compact-item`]:{[`&:not(${t}-compact-last-item)`]:{[`${t}-group-addon`]:{[`${t}-search-button`]:{marginInlineEnd:e.calc(e.lineWidth).mul(-1).equal(),borderRadius:0}}},[`&:not(${t}-compact-first-item)`]:{[`${t},${t}-affix-wrapper`]:{borderRadius:0}},[`> ${t}-group-addon ${t}-search-button, > ${t}, ${t}-affix-wrapper`]:{"&:hover, &:focus, &:active":{zIndex:2}},[`> ${t}-affix-wrapper-focused`]:{zIndex:2}}}}},a5=e=>{const{componentCls:t,paddingLG:n}=e,r=`${t}-textarea`;return{[r]:{position:"relative","&-show-count":{[`> ${t}`]:{height:"100%"},[`${t}-data-count`]:{position:"absolute",bottom:e.calc(e.fontSize).mul(e.lineHeight).mul(-1).equal(),insetInlineEnd:0,color:e.colorTextDescription,whiteSpace:"nowrap",pointerEvents:"none"}},[` &-allow-clear > ${t}, &-affix-wrapper${r}-has-feedback ${t} - `]:{paddingInlineEnd:n},[`&-affix-wrapper${t}-affix-wrapper`]:{padding:0,[`> textarea${t}`]:{fontSize:"inherit",border:"none",outline:"none",background:"transparent","&:focus":{boxShadow:"none !important"}},[`${t}-suffix`]:{margin:0,"> *:not(:last-child)":{marginInline:0},[`${t}-clear-icon`]:{position:"absolute",insetInlineEnd:e.paddingInline,insetBlockStart:e.paddingXS},[`${r}-suffix`]:{position:"absolute",top:0,insetInlineEnd:e.paddingInline,bottom:0,zIndex:1,display:"inline-flex",alignItems:"center",margin:"auto",pointerEvents:"none"}}},[`&-affix-wrapper${t}-affix-wrapper-sm`]:{[`${t}-suffix`]:{[`${t}-clear-icon`]:{insetInlineEnd:e.paddingInlineSM}}}}}},s5=e=>{const{componentCls:t}=e;return{[`${t}-out-of-range`]:{[`&, & input, & textarea, ${t}-show-count-suffix, ${t}-data-count`]:{color:e.colorError}}}};Er("Input",e=>{const t=An(e,j_(e));return[t5(t),a5(t),r5(t),i5(t),o5(t),s5(t),jv(t)]},B_,{resetFont:!1});var l5={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M482 152h60q8 0 8 8v704q0 8-8 8h-60q-8 0-8-8V160q0-8 8-8z"}},{tag:"path",attrs:{d:"M192 474h672q8 0 8 8v60q0 8-8 8H160q-8 0-8-8v-60q0-8 8-8z"}}]},name:"plus",theme:"outlined"},c5=function(t,n){return d.createElement(_n,Pe({},t,{ref:n,icon:l5}))},u5=d.forwardRef(c5);const Wf=d.createContext(null);var d5=function(t){var n=t.activeTabOffset,r=t.horizontal,i=t.rtl,o=t.indicator,a=o===void 0?{}:o,s=a.size,l=a.align,c=l===void 0?"center":l,u=d.useState(),f=Q(u,2),h=f[0],m=f[1],y=d.useRef(),v=me.useCallback(function(p){return typeof s=="function"?s(p):typeof s=="number"?s:p},[s]);function b(){Ft.cancel(y.current)}return d.useEffect(function(){var p={};if(n)if(r){p.width=v(n.width);var g=i?"right":"left";c==="start"&&(p[g]=n[g]),c==="center"&&(p[g]=n[g]+n.width/2,p.transform=i?"translateX(50%)":"translateX(-50%)"),c==="end"&&(p[g]=n[g]+n.width,p.transform="translateX(-100%)")}else p.height=v(n.height),c==="start"&&(p.top=n.top),c==="center"&&(p.top=n.top+n.height/2,p.transform="translateY(-50%)"),c==="end"&&(p.top=n.top+n.height,p.transform="translateY(-100%)");return b(),y.current=Ft(function(){m(p)}),b},[n,r,i,c,v]),{style:h}},b1={width:0,height:0,left:0,top:0};function f5(e,t,n){return d.useMemo(function(){for(var r,i=new Map,o=t.get((r=e[0])===null||r===void 0?void 0:r.key)||b1,a=o.left+o.width,s=0;sj?(k=M,w.current="x"):(k=I,w.current="y"),t(-k,-k)&&O.preventDefault()}var _=d.useRef(null);_.current={onTouchStart:x,onTouchMove:S,onTouchEnd:C,onWheel:E},d.useEffect(function(){function O(F){_.current.onTouchStart(F)}function M(F){_.current.onTouchMove(F)}function I(F){_.current.onTouchEnd(F)}function k(F){_.current.onWheel(F)}return document.addEventListener("touchmove",M,{passive:!1}),document.addEventListener("touchend",I,{passive:!0}),e.current.addEventListener("touchstart",O,{passive:!0}),e.current.addEventListener("wheel",k,{passive:!1}),function(){document.removeEventListener("touchmove",M),document.removeEventListener("touchend",I)}},[])}function J_(e){var t=d.useState(0),n=Q(t,2),r=n[0],i=n[1],o=d.useRef(0),a=d.useRef();return a.current=e,os(function(){var s;(s=a.current)===null||s===void 0||s.call(a)},[r]),function(){o.current===r&&(o.current+=1,i(o.current))}}function m5(e){var t=d.useRef([]),n=d.useState({}),r=Q(n,2),i=r[1],o=d.useRef(typeof e=="function"?e():e),a=J_(function(){var l=o.current;t.current.forEach(function(c){l=c(l)}),t.current=[],o.current=l,i({})});function s(l){t.current.push(l),a()}return[o.current,s]}var w1={width:0,height:0,left:0,top:0,right:0};function p5(e,t,n,r,i,o,a){var s=a.tabs,l=a.tabPosition,c=a.rtl,u,f,h;return["top","bottom"].includes(l)?(u="width",f=c?"right":"left",h=Math.abs(n)):(u="height",f="top",h=-n),d.useMemo(function(){if(!s.length)return[0,0];for(var m=s.length,y=m,v=0;vh+t){y=v-1;break}}for(var p=0,g=m-1;g>=0;g-=1){var x=e.get(s[g].key)||w1;if(x[f]=y?[0,0]:[p,y]},[e,t,r,i,o,h,l,s.map(function(m){return m.key}).join("_"),c])}function E1(e){var t;return e instanceof Map?(t={},e.forEach(function(n,r){t[r]=n})):t=e,JSON.stringify(t)}var v5="TABS_DQ";function e$(e){return String(e).replace(/"/g,v5)}function t$(e,t,n,r){return!(!n||r||e===!1||e===void 0&&(t===!1||t===null))}var n$=d.forwardRef(function(e,t){var n=e.prefixCls,r=e.editable,i=e.locale,o=e.style;return!r||r.showAdd===!1?null:d.createElement("button",{ref:t,type:"button",className:"".concat(n,"-nav-add"),style:o,"aria-label":(i==null?void 0:i.addAriaLabel)||"Add tab",onClick:function(s){r.onEdit("add",{event:s})}},r.addIcon||"+")}),_1=d.forwardRef(function(e,t){var n=e.position,r=e.prefixCls,i=e.extra;if(!i)return null;var o,a={};return je(i)==="object"&&!d.isValidElement(i)?a=i:a.right=i,n==="right"&&(o=a.right),n==="left"&&(o=a.left),o?d.createElement("div",{className:"".concat(r,"-extra-content"),ref:t},o):null}),y5=d.forwardRef(function(e,t){var n=e.prefixCls,r=e.id,i=e.tabs,o=e.locale,a=e.mobile,s=e.more,l=s===void 0?{}:s,c=e.style,u=e.className,f=e.editable,h=e.tabBarGutter,m=e.rtl,y=e.removeAriaLabel,v=e.onTabClick,b=e.getPopupContainer,p=e.popupClassName,g=d.useState(!1),x=Q(g,2),S=x[0],C=x[1],w=d.useState(null),E=Q(w,2),_=E[0],O=E[1],M=l.icon,I=M===void 0?"More":M,k="".concat(r,"-more-popup"),F="".concat(n,"-dropdown"),j=_!==null?"".concat(k,"-").concat(_):null,B=o==null?void 0:o.dropdownAriaLabel;function A(X,W){X.preventDefault(),X.stopPropagation(),f.onEdit("remove",{key:W,event:X})}var P=d.createElement(Ac,{onClick:function(W){var K=W.key,ee=W.domEvent;v(K,ee),C(!1)},prefixCls:"".concat(F,"-menu"),id:k,tabIndex:-1,role:"listbox","aria-activedescendant":j,selectedKeys:[_],"aria-label":B!==void 0?B:"expanded dropdown"},i.map(function(X){var W=X.closable,K=X.disabled,ee=X.closeIcon,U=X.key,Y=X.label,J=t$(W,ee,f,K);return d.createElement(Hf,{key:U,id:"".concat(k,"-").concat(U),role:"option","aria-controls":r&&"".concat(r,"-panel-").concat(U),disabled:K},d.createElement("span",null,Y),J&&d.createElement("button",{type:"button","aria-label":y||"remove",tabIndex:0,className:"".concat(F,"-menu-item-remove"),onClick:function(ce){ce.stopPropagation(),A(ce,U)}},ee||f.removeIcon||"×"))}));function R(X){for(var W=i.filter(function(J){return!J.disabled}),K=W.findIndex(function(J){return J.key===_})||0,ee=W.length,U=0;ULe?"left":"right"})}),F=Q(k,2),j=F[0],B=F[1],A=x1(0,function(Qe,Le){!I&&v&&v({direction:Qe>Le?"top":"bottom"})}),P=Q(A,2),R=P[0],N=P[1],D=d.useState([0,0]),H=Q(D,2),G=H[0],X=H[1],W=d.useState([0,0]),K=Q(W,2),ee=K[0],U=K[1],Y=d.useState([0,0]),J=Q(Y,2),re=J[0],ce=J[1],he=d.useState([0,0]),xe=Q(he,2),ie=xe[0],de=xe[1],ye=m5(new Map),be=Q(ye,2),se=be[0],we=be[1],$e=f5(x,se,ee[0]),ue=yu(G,I),Ne=yu(ee,I),ae=yu(re,I),Ue=yu(ie,I),Fe=ueDe?De:Qe}var We=d.useRef(null),ct=d.useState(),ht=Q(ct,2),Ge=ht[0],Ct=ht[1];function kt(){Ct(Date.now())}function Et(){We.current&&clearTimeout(We.current)}g5(E,function(Qe,Le){function dt(pt,jt){pt(function(Ye){var en=He(Ye+jt);return en})}return Fe?(I?dt(B,Qe):dt(N,Le),Et(),kt(),!0):!1}),d.useEffect(function(){return Et(),Ge&&(We.current=setTimeout(function(){Ct(0)},100)),Et},[Ge]);var gt=p5($e,Se,I?j:R,Ne,ae,Ue,V(V({},e),{},{tabs:x})),xn=Q(gt,2),vt=xn[0],_t=xn[1],Me=Cn(function(){var Qe=arguments.length>0&&arguments[0]!==void 0?arguments[0]:a,Le=$e.get(Qe)||{width:0,height:0,left:0,right:0,top:0};if(I){var dt=j;s?Le.rightj+Se&&(dt=Le.right+Le.width-Se):Le.left<-j?dt=-Le.left:Le.left+Le.width>-j+Se&&(dt=-(Le.left+Le.width-Se)),N(0),B(He(dt))}else{var pt=R;Le.top<-R?pt=-Le.top:Le.top+Le.height>-R+Se&&(pt=-(Le.top+Le.height-Se)),B(0),N(He(pt))}}),fe={};f==="top"||f==="bottom"?fe[s?"marginRight":"marginLeft"]=h:fe.marginTop=h;var Re=x.map(function(Qe,Le){var dt=Qe.key;return d.createElement(x5,{id:i,prefixCls:g,key:dt,tab:Qe,style:Le===0?void 0:fe,closable:Qe.closable,editable:c,active:dt===a,renderWrapper:m,removeAriaLabel:u==null?void 0:u.removeAriaLabel,onClick:function(jt){y(dt,jt)},onFocus:function(){Me(dt),kt(),E.current&&(s||(E.current.scrollLeft=0),E.current.scrollTop=0)}})}),Ie=function(){return we(function(){var Le,dt=new Map,pt=(Le=_.current)===null||Le===void 0?void 0:Le.getBoundingClientRect();return x.forEach(function(jt){var Ye,en=jt.key,tn=(Ye=_.current)===null||Ye===void 0?void 0:Ye.querySelector('[data-node-key="'.concat(e$(en),'"]'));if(tn){var Yn=S5(tn,pt),Ae=Q(Yn,4),ke=Ae[0],ot=Ae[1],Ze=Ae[2],qe=Ae[3];dt.set(en,{width:ke,height:ot,left:Ze,top:qe})}}),dt})};d.useEffect(function(){Ie()},[x.map(function(Qe){return Qe.key}).join("_")]);var ze=J_(function(){var Qe=Ia(S),Le=Ia(C),dt=Ia(w);X([Qe[0]-Le[0]-dt[0],Qe[1]-Le[1]-dt[1]]);var pt=Ia(M);ce(pt);var jt=Ia(O);de(jt);var Ye=Ia(_);U([Ye[0]-pt[0],Ye[1]-pt[1]]),Ie()}),Ee=x.slice(0,vt),_e=x.slice(_t+1),pe=[].concat(ge(Ee),ge(_e)),ut=$e.get(a),Nt=d5({activeTabOffset:ut,horizontal:I,indicator:b,rtl:s}),mt=Nt.style;d.useEffect(function(){Me()},[a,Be,De,E1(ut),E1($e),I]),d.useEffect(function(){ze()},[s]);var nt=!!pe.length,Tt="".concat(g,"-nav-wrap"),Ot,At,pn,Xn;return I?s?(At=j>0,Ot=j!==De):(Ot=j<0,At=j!==Be):(pn=R<0,Xn=R!==Be),d.createElement(vo,{onResize:ze},d.createElement("div",{ref:Pc(t,S),role:"tablist",className:te("".concat(g,"-nav"),n),style:r,onKeyDown:function(){kt()}},d.createElement(_1,{ref:C,position:"left",extra:l,prefixCls:g}),d.createElement(vo,{onResize:ze},d.createElement("div",{className:te(Tt,z(z(z(z({},"".concat(Tt,"-ping-left"),Ot),"".concat(Tt,"-ping-right"),At),"".concat(Tt,"-ping-top"),pn),"".concat(Tt,"-ping-bottom"),Xn)),ref:E},d.createElement(vo,{onResize:ze},d.createElement("div",{ref:_,className:"".concat(g,"-nav-list"),style:{transform:"translate(".concat(j,"px, ").concat(R,"px)"),transition:Ge?"none":void 0}},Re,d.createElement(n$,{ref:M,prefixCls:g,locale:u,editable:c,style:V(V({},Re.length===0?void 0:fe),{},{visibility:nt?"hidden":null})}),d.createElement("div",{className:te("".concat(g,"-ink-bar"),z({},"".concat(g,"-ink-bar-animated"),o.inkBar)),style:mt}))))),d.createElement(b5,Pe({},e,{removeAriaLabel:u==null?void 0:u.removeAriaLabel,ref:O,prefixCls:g,tabs:pe,className:!nt&&Ve,tabMoving:!!Ge})),d.createElement(_1,{ref:w,position:"right",extra:l,prefixCls:g})))}),r$=d.forwardRef(function(e,t){var n=e.prefixCls,r=e.className,i=e.style,o=e.id,a=e.active,s=e.tabKey,l=e.children;return d.createElement("div",{id:o&&"".concat(o,"-panel-").concat(s),role:"tabpanel",tabIndex:a?0:-1,"aria-labelledby":o&&"".concat(o,"-tab-").concat(s),"aria-hidden":!a,style:i,className:te(n,a&&"".concat(n,"-active"),r),ref:t},l)}),C5=["renderTabBar"],w5=["label","key"],E5=function(t){var n=t.renderTabBar,r=st(t,C5),i=d.useContext(Wf),o=i.tabs;if(n){var a=V(V({},r),{},{panes:o.map(function(s){var l=s.label,c=s.key,u=st(s,w5);return d.createElement(r$,Pe({tab:l,key:c,tabKey:c},u))})});return n(a,$1)}return d.createElement($1,r)},_5=["key","forceRender","style","className","destroyInactiveTabPane"],$5=function(t){var n=t.id,r=t.activeKey,i=t.animated,o=t.tabPosition,a=t.destroyInactiveTabPane,s=d.useContext(Wf),l=s.prefixCls,c=s.tabs,u=i.tabPane,f="".concat(l,"-tabpane");return d.createElement("div",{className:te("".concat(l,"-content-holder"))},d.createElement("div",{className:te("".concat(l,"-content"),"".concat(l,"-content-").concat(o),z({},"".concat(l,"-content-animated"),u))},c.map(function(h){var m=h.key,y=h.forceRender,v=h.style,b=h.className,p=h.destroyInactiveTabPane,g=st(h,_5),x=m===r;return d.createElement(To,Pe({key:m,visible:x,forceRender:y,removeOnLeave:!!(a||p),leavedClassName:"".concat(f,"-hidden")},i.tabPaneMotion),function(S,C){var w=S.style,E=S.className;return d.createElement(r$,Pe({},g,{prefixCls:f,id:n,tabKey:m,animated:u,active:x,style:V(V({},v),w),className:te(b,E),ref:C}))})})))};function O5(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{inkBar:!0,tabPane:!1},t;return e===!1?t={inkBar:!1,tabPane:!1}:e===!0?t={inkBar:!0,tabPane:!1}:t=V({inkBar:!0},je(e)==="object"?e:{}),t.tabPaneMotion&&t.tabPane===void 0&&(t.tabPane=!0),!t.tabPaneMotion&&t.tabPane&&(t.tabPane=!1),t}var P5=["id","prefixCls","className","items","direction","activeKey","defaultActiveKey","editable","animated","tabPosition","tabBarGutter","tabBarStyle","tabBarExtraContent","locale","more","destroyInactiveTabPane","renderTabBar","onChange","onTabClick","onTabScroll","getPopupContainer","popupClassName","indicator"],O1=0,M5=d.forwardRef(function(e,t){var n=e.id,r=e.prefixCls,i=r===void 0?"rc-tabs":r,o=e.className,a=e.items,s=e.direction,l=e.activeKey,c=e.defaultActiveKey,u=e.editable,f=e.animated,h=e.tabPosition,m=h===void 0?"top":h,y=e.tabBarGutter,v=e.tabBarStyle,b=e.tabBarExtraContent,p=e.locale,g=e.more,x=e.destroyInactiveTabPane,S=e.renderTabBar,C=e.onChange,w=e.onTabClick,E=e.onTabScroll,_=e.getPopupContainer,O=e.popupClassName,M=e.indicator,I=st(e,P5),k=d.useMemo(function(){return(a||[]).filter(function(ie){return ie&&je(ie)==="object"&&"key"in ie})},[a]),F=s==="rtl",j=O5(f),B=d.useState(!1),A=Q(B,2),P=A[0],R=A[1];d.useEffect(function(){R(Gv())},[]);var N=yo(function(){var ie;return(ie=k[0])===null||ie===void 0?void 0:ie.key},{value:l,defaultValue:c}),D=Q(N,2),H=D[0],G=D[1],X=d.useState(function(){return k.findIndex(function(ie){return ie.key===H})}),W=Q(X,2),K=W[0],ee=W[1];d.useEffect(function(){var ie=k.findIndex(function(ye){return ye.key===H});if(ie===-1){var de;ie=Math.max(0,Math.min(K,k.length-1)),G((de=k[ie])===null||de===void 0?void 0:de.key)}ee(ie)},[k.map(function(ie){return ie.key}).join("_"),H,K]);var U=yo(null,{value:n}),Y=Q(U,2),J=Y[0],re=Y[1];d.useEffect(function(){n||(re("rc-tabs-".concat(O1)),O1+=1)},[]);function ce(ie,de){w==null||w(ie,de);var ye=ie!==H;G(ie),ye&&(C==null||C(ie))}var he={id:J,activeKey:H,animated:j,tabPosition:m,rtl:F,mobile:P},xe=V(V({},he),{},{editable:u,locale:p,more:g,tabBarGutter:y,onTabClick:ce,onTabScroll:E,extra:b,style:v,panes:null,getPopupContainer:_,popupClassName:O,indicator:M});return d.createElement(Wf.Provider,{value:{tabs:k,prefixCls:i}},d.createElement("div",Pe({ref:t,id:n,className:te(i,"".concat(i,"-").concat(m),z(z(z({},"".concat(i,"-mobile"),P),"".concat(i,"-editable"),u),"".concat(i,"-rtl"),F),o)},I),d.createElement(E5,Pe({},xe,{renderTabBar:S})),d.createElement($5,Pe({destroyInactiveTabPane:x},he,{animated:j}))))});const T5={motionAppear:!1,motionEnter:!0,motionLeave:!0};function R5(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{inkBar:!0,tabPane:!1},n;return t===!1?n={inkBar:!1,tabPane:!1}:t===!0?n={inkBar:!0,tabPane:!0}:n=Object.assign({inkBar:!0},typeof t=="object"?t:{}),n.tabPane&&(n.tabPaneMotion=Object.assign(Object.assign({},T5),{motionName:UE(e,"switch")})),n}var I5=function(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 i=0,r=Object.getOwnPropertySymbols(e);it)}function N5(e,t){if(e)return e;const n=Co(t).map(r=>{if(d.isValidElement(r)){const{key:i,props:o}=r,a=o||{},{tab:s}=a,l=I5(a,["tab"]);return Object.assign(Object.assign({key:String(i)},l),{label:s})}return null});return k5(n)}const F5=e=>{const{componentCls:t,motionDurationSlow:n}=e;return[{[t]:{[`${t}-switch`]:{"&-appear, &-enter":{transition:"none","&-start":{opacity:0},"&-active":{opacity:1,transition:`opacity ${n}`}},"&-leave":{position:"absolute",transition:"none",inset:0,"&-start":{opacity:1},"&-active":{opacity:0,transition:`opacity ${n}`}}}}},[kb(e,"slide-up"),kb(e,"slide-down")]]},A5=e=>{const{componentCls:t,tabsCardPadding:n,cardBg:r,cardGutter:i,colorBorderSecondary:o,itemSelectedColor:a}=e;return{[`${t}-card`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab`]:{margin:0,padding:n,background:r,border:`${Z(e.lineWidth)} ${e.lineType} ${o}`,transition:`all ${e.motionDurationSlow} ${e.motionEaseInOut}`},[`${t}-tab-active`]:{color:a,background:e.colorBgContainer},[`${t}-ink-bar`]:{visibility:"hidden"}},[`&${t}-top, &${t}-bottom`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab + ${t}-tab`]:{marginLeft:{_skip_check_:!0,value:Z(i)}}}},[`&${t}-top`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab`]:{borderRadius:`${Z(e.borderRadiusLG)} ${Z(e.borderRadiusLG)} 0 0`},[`${t}-tab-active`]:{borderBottomColor:e.colorBgContainer}}},[`&${t}-bottom`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab`]:{borderRadius:`0 0 ${Z(e.borderRadiusLG)} ${Z(e.borderRadiusLG)}`},[`${t}-tab-active`]:{borderTopColor:e.colorBgContainer}}},[`&${t}-left, &${t}-right`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab + ${t}-tab`]:{marginTop:Z(i)}}},[`&${t}-left`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab`]:{borderRadius:{_skip_check_:!0,value:`${Z(e.borderRadiusLG)} 0 0 ${Z(e.borderRadiusLG)}`}},[`${t}-tab-active`]:{borderRightColor:{_skip_check_:!0,value:e.colorBgContainer}}}},[`&${t}-right`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab`]:{borderRadius:{_skip_check_:!0,value:`0 ${Z(e.borderRadiusLG)} ${Z(e.borderRadiusLG)} 0`}},[`${t}-tab-active`]:{borderLeftColor:{_skip_check_:!0,value:e.colorBgContainer}}}}}}},L5=e=>{const{componentCls:t,itemHoverColor:n,dropdownEdgeChildVerticalPadding:r}=e;return{[`${t}-dropdown`]:Object.assign(Object.assign({},Lr(e)),{position:"absolute",top:-9999,left:{_skip_check_:!0,value:-9999},zIndex:e.zIndexPopup,display:"block","&-hidden":{display:"none"},[`${t}-dropdown-menu`]:{maxHeight:e.tabsDropdownHeight,margin:0,padding:`${Z(r)} 0`,overflowX:"hidden",overflowY:"auto",textAlign:{_skip_check_:!0,value:"left"},listStyleType:"none",backgroundColor:e.colorBgContainer,backgroundClip:"padding-box",borderRadius:e.borderRadiusLG,outline:"none",boxShadow:e.boxShadowSecondary,"&-item":Object.assign(Object.assign({},Tv),{display:"flex",alignItems:"center",minWidth:e.tabsDropdownWidth,margin:0,padding:`${Z(e.paddingXXS)} ${Z(e.paddingSM)}`,color:e.colorText,fontWeight:"normal",fontSize:e.fontSize,lineHeight:e.lineHeight,cursor:"pointer",transition:`all ${e.motionDurationSlow}`,"> span":{flex:1,whiteSpace:"nowrap"},"&-remove":{flex:"none",marginLeft:{_skip_check_:!0,value:e.marginSM},color:e.colorTextDescription,fontSize:e.fontSizeSM,background:"transparent",border:0,cursor:"pointer","&:hover":{color:n}},"&:hover":{background:e.controlItemBgHover},"&-disabled":{"&, &:hover":{color:e.colorTextDisabled,background:"transparent",cursor:"not-allowed"}}})}})}},D5=e=>{const{componentCls:t,margin:n,colorBorderSecondary:r,horizontalMargin:i,verticalItemPadding:o,verticalItemMargin:a,calc:s}=e;return{[`${t}-top, ${t}-bottom`]:{flexDirection:"column",[`> ${t}-nav, > div > ${t}-nav`]:{margin:i,"&::before":{position:"absolute",right:{_skip_check_:!0,value:0},left:{_skip_check_:!0,value:0},borderBottom:`${Z(e.lineWidth)} ${e.lineType} ${r}`,content:"''"},[`${t}-ink-bar`]:{height:e.lineWidthBold,"&-animated":{transition:`width ${e.motionDurationSlow}, left ${e.motionDurationSlow}, + `]:{paddingInlineEnd:n},[`&-affix-wrapper${t}-affix-wrapper`]:{padding:0,[`> textarea${t}`]:{fontSize:"inherit",border:"none",outline:"none",background:"transparent","&:focus":{boxShadow:"none !important"}},[`${t}-suffix`]:{margin:0,"> *:not(:last-child)":{marginInline:0},[`${t}-clear-icon`]:{position:"absolute",insetInlineEnd:e.paddingInline,insetBlockStart:e.paddingXS},[`${r}-suffix`]:{position:"absolute",top:0,insetInlineEnd:e.paddingInline,bottom:0,zIndex:1,display:"inline-flex",alignItems:"center",margin:"auto",pointerEvents:"none"}}},[`&-affix-wrapper${t}-affix-wrapper-sm`]:{[`${t}-suffix`]:{[`${t}-clear-icon`]:{insetInlineEnd:e.paddingInlineSM}}}}}},s5=e=>{const{componentCls:t}=e;return{[`${t}-out-of-range`]:{[`&, & input, & textarea, ${t}-show-count-suffix, ${t}-data-count`]:{color:e.colorError}}}};Er("Input",e=>{const t=An(e,j_(e));return[t5(t),a5(t),r5(t),i5(t),o5(t),s5(t),jv(t)]},B_,{resetFont:!1});var l5={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M482 152h60q8 0 8 8v704q0 8-8 8h-60q-8 0-8-8V160q0-8 8-8z"}},{tag:"path",attrs:{d:"M192 474h672q8 0 8 8v60q0 8-8 8H160q-8 0-8-8v-60q0-8 8-8z"}}]},name:"plus",theme:"outlined"},c5=function(t,n){return d.createElement(_n,Pe({},t,{ref:n,icon:l5}))},u5=d.forwardRef(c5);const Vf=d.createContext(null);var d5=function(t){var n=t.activeTabOffset,r=t.horizontal,i=t.rtl,o=t.indicator,a=o===void 0?{}:o,s=a.size,l=a.align,c=l===void 0?"center":l,u=d.useState(),f=Q(u,2),h=f[0],m=f[1],y=d.useRef(),v=me.useCallback(function(p){return typeof s=="function"?s(p):typeof s=="number"?s:p},[s]);function b(){Ft.cancel(y.current)}return d.useEffect(function(){var p={};if(n)if(r){p.width=v(n.width);var g=i?"right":"left";c==="start"&&(p[g]=n[g]),c==="center"&&(p[g]=n[g]+n.width/2,p.transform=i?"translateX(50%)":"translateX(-50%)"),c==="end"&&(p[g]=n[g]+n.width,p.transform="translateX(-100%)")}else p.height=v(n.height),c==="start"&&(p.top=n.top),c==="center"&&(p.top=n.top+n.height/2,p.transform="translateY(-50%)"),c==="end"&&(p.top=n.top+n.height,p.transform="translateY(-100%)");return b(),y.current=Ft(function(){m(p)}),b},[n,r,i,c,v]),{style:h}},b1={width:0,height:0,left:0,top:0};function f5(e,t,n){return d.useMemo(function(){for(var r,i=new Map,o=t.get((r=e[0])===null||r===void 0?void 0:r.key)||b1,a=o.left+o.width,s=0;sj?(k=M,w.current="x"):(k=I,w.current="y"),t(-k,-k)&&O.preventDefault()}var _=d.useRef(null);_.current={onTouchStart:x,onTouchMove:S,onTouchEnd:C,onWheel:E},d.useEffect(function(){function O(F){_.current.onTouchStart(F)}function M(F){_.current.onTouchMove(F)}function I(F){_.current.onTouchEnd(F)}function k(F){_.current.onWheel(F)}return document.addEventListener("touchmove",M,{passive:!1}),document.addEventListener("touchend",I,{passive:!0}),e.current.addEventListener("touchstart",O,{passive:!0}),e.current.addEventListener("wheel",k,{passive:!1}),function(){document.removeEventListener("touchmove",M),document.removeEventListener("touchend",I)}},[])}function J_(e){var t=d.useState(0),n=Q(t,2),r=n[0],i=n[1],o=d.useRef(0),a=d.useRef();return a.current=e,os(function(){var s;(s=a.current)===null||s===void 0||s.call(a)},[r]),function(){o.current===r&&(o.current+=1,i(o.current))}}function m5(e){var t=d.useRef([]),n=d.useState({}),r=Q(n,2),i=r[1],o=d.useRef(typeof e=="function"?e():e),a=J_(function(){var l=o.current;t.current.forEach(function(c){l=c(l)}),t.current=[],o.current=l,i({})});function s(l){t.current.push(l),a()}return[o.current,s]}var w1={width:0,height:0,left:0,top:0,right:0};function p5(e,t,n,r,i,o,a){var s=a.tabs,l=a.tabPosition,c=a.rtl,u,f,h;return["top","bottom"].includes(l)?(u="width",f=c?"right":"left",h=Math.abs(n)):(u="height",f="top",h=-n),d.useMemo(function(){if(!s.length)return[0,0];for(var m=s.length,y=m,v=0;vh+t){y=v-1;break}}for(var p=0,g=m-1;g>=0;g-=1){var x=e.get(s[g].key)||w1;if(x[f]=y?[0,0]:[p,y]},[e,t,r,i,o,h,l,s.map(function(m){return m.key}).join("_"),c])}function E1(e){var t;return e instanceof Map?(t={},e.forEach(function(n,r){t[r]=n})):t=e,JSON.stringify(t)}var v5="TABS_DQ";function e$(e){return String(e).replace(/"/g,v5)}function t$(e,t,n,r){return!(!n||r||e===!1||e===void 0&&(t===!1||t===null))}var n$=d.forwardRef(function(e,t){var n=e.prefixCls,r=e.editable,i=e.locale,o=e.style;return!r||r.showAdd===!1?null:d.createElement("button",{ref:t,type:"button",className:"".concat(n,"-nav-add"),style:o,"aria-label":(i==null?void 0:i.addAriaLabel)||"Add tab",onClick:function(s){r.onEdit("add",{event:s})}},r.addIcon||"+")}),_1=d.forwardRef(function(e,t){var n=e.position,r=e.prefixCls,i=e.extra;if(!i)return null;var o,a={};return je(i)==="object"&&!d.isValidElement(i)?a=i:a.right=i,n==="right"&&(o=a.right),n==="left"&&(o=a.left),o?d.createElement("div",{className:"".concat(r,"-extra-content"),ref:t},o):null}),y5=d.forwardRef(function(e,t){var n=e.prefixCls,r=e.id,i=e.tabs,o=e.locale,a=e.mobile,s=e.more,l=s===void 0?{}:s,c=e.style,u=e.className,f=e.editable,h=e.tabBarGutter,m=e.rtl,y=e.removeAriaLabel,v=e.onTabClick,b=e.getPopupContainer,p=e.popupClassName,g=d.useState(!1),x=Q(g,2),S=x[0],C=x[1],w=d.useState(null),E=Q(w,2),_=E[0],O=E[1],M=l.icon,I=M===void 0?"More":M,k="".concat(r,"-more-popup"),F="".concat(n,"-dropdown"),j=_!==null?"".concat(k,"-").concat(_):null,B=o==null?void 0:o.dropdownAriaLabel;function A(X,W){X.preventDefault(),X.stopPropagation(),f.onEdit("remove",{key:W,event:X})}var P=d.createElement(Ac,{onClick:function(W){var K=W.key,ee=W.domEvent;v(K,ee),C(!1)},prefixCls:"".concat(F,"-menu"),id:k,tabIndex:-1,role:"listbox","aria-activedescendant":j,selectedKeys:[_],"aria-label":B!==void 0?B:"expanded dropdown"},i.map(function(X){var W=X.closable,K=X.disabled,ee=X.closeIcon,U=X.key,Y=X.label,J=t$(W,ee,f,K);return d.createElement(Bf,{key:U,id:"".concat(k,"-").concat(U),role:"option","aria-controls":r&&"".concat(r,"-panel-").concat(U),disabled:K},d.createElement("span",null,Y),J&&d.createElement("button",{type:"button","aria-label":y||"remove",tabIndex:0,className:"".concat(F,"-menu-item-remove"),onClick:function(ce){ce.stopPropagation(),A(ce,U)}},ee||f.removeIcon||"×"))}));function R(X){for(var W=i.filter(function(J){return!J.disabled}),K=W.findIndex(function(J){return J.key===_})||0,ee=W.length,U=0;ULe?"left":"right"})}),F=Q(k,2),j=F[0],B=F[1],A=x1(0,function(Qe,Le){!I&&v&&v({direction:Qe>Le?"top":"bottom"})}),P=Q(A,2),R=P[0],N=P[1],D=d.useState([0,0]),H=Q(D,2),G=H[0],X=H[1],W=d.useState([0,0]),K=Q(W,2),ee=K[0],U=K[1],Y=d.useState([0,0]),J=Q(Y,2),re=J[0],ce=J[1],he=d.useState([0,0]),Se=Q(he,2),ie=Se[0],de=Se[1],ye=m5(new Map),be=Q(ye,2),se=be[0],we=be[1],$e=f5(x,se,ee[0]),ue=yu(G,I),Ne=yu(ee,I),ae=yu(re,I),Ue=yu(ie,I),Fe=ueDe?De:Qe}var We=d.useRef(null),ct=d.useState(),ht=Q(ct,2),Ge=ht[0],Ct=ht[1];function kt(){Ct(Date.now())}function Et(){We.current&&clearTimeout(We.current)}g5(E,function(Qe,Le){function dt(pt,jt){pt(function(Ye){var en=He(Ye+jt);return en})}return Fe?(I?dt(B,Qe):dt(N,Le),Et(),kt(),!0):!1}),d.useEffect(function(){return Et(),Ge&&(We.current=setTimeout(function(){Ct(0)},100)),Et},[Ge]);var gt=p5($e,Ce,I?j:R,Ne,ae,Ue,V(V({},e),{},{tabs:x})),xn=Q(gt,2),vt=xn[0],_t=xn[1],Me=Cn(function(){var Qe=arguments.length>0&&arguments[0]!==void 0?arguments[0]:a,Le=$e.get(Qe)||{width:0,height:0,left:0,right:0,top:0};if(I){var dt=j;s?Le.rightj+Ce&&(dt=Le.right+Le.width-Ce):Le.left<-j?dt=-Le.left:Le.left+Le.width>-j+Ce&&(dt=-(Le.left+Le.width-Ce)),N(0),B(He(dt))}else{var pt=R;Le.top<-R?pt=-Le.top:Le.top+Le.height>-R+Ce&&(pt=-(Le.top+Le.height-Ce)),B(0),N(He(pt))}}),fe={};f==="top"||f==="bottom"?fe[s?"marginRight":"marginLeft"]=h:fe.marginTop=h;var Re=x.map(function(Qe,Le){var dt=Qe.key;return d.createElement(x5,{id:i,prefixCls:g,key:dt,tab:Qe,style:Le===0?void 0:fe,closable:Qe.closable,editable:c,active:dt===a,renderWrapper:m,removeAriaLabel:u==null?void 0:u.removeAriaLabel,onClick:function(jt){y(dt,jt)},onFocus:function(){Me(dt),kt(),E.current&&(s||(E.current.scrollLeft=0),E.current.scrollTop=0)}})}),Ie=function(){return we(function(){var Le,dt=new Map,pt=(Le=_.current)===null||Le===void 0?void 0:Le.getBoundingClientRect();return x.forEach(function(jt){var Ye,en=jt.key,tn=(Ye=_.current)===null||Ye===void 0?void 0:Ye.querySelector('[data-node-key="'.concat(e$(en),'"]'));if(tn){var Yn=S5(tn,pt),Ae=Q(Yn,4),ke=Ae[0],ot=Ae[1],Ze=Ae[2],qe=Ae[3];dt.set(en,{width:ke,height:ot,left:Ze,top:qe})}}),dt})};d.useEffect(function(){Ie()},[x.map(function(Qe){return Qe.key}).join("_")]);var ze=J_(function(){var Qe=Ia(S),Le=Ia(C),dt=Ia(w);X([Qe[0]-Le[0]-dt[0],Qe[1]-Le[1]-dt[1]]);var pt=Ia(M);ce(pt);var jt=Ia(O);de(jt);var Ye=Ia(_);U([Ye[0]-pt[0],Ye[1]-pt[1]]),Ie()}),Ee=x.slice(0,vt),_e=x.slice(_t+1),pe=[].concat(ge(Ee),ge(_e)),ut=$e.get(a),Nt=d5({activeTabOffset:ut,horizontal:I,indicator:b,rtl:s}),mt=Nt.style;d.useEffect(function(){Me()},[a,Be,De,E1(ut),E1($e),I]),d.useEffect(function(){ze()},[s]);var nt=!!pe.length,Tt="".concat(g,"-nav-wrap"),Ot,At,pn,Xn;return I?s?(At=j>0,Ot=j!==De):(Ot=j<0,At=j!==Be):(pn=R<0,Xn=R!==Be),d.createElement(vo,{onResize:ze},d.createElement("div",{ref:Pc(t,S),role:"tablist",className:te("".concat(g,"-nav"),n),style:r,onKeyDown:function(){kt()}},d.createElement(_1,{ref:C,position:"left",extra:l,prefixCls:g}),d.createElement(vo,{onResize:ze},d.createElement("div",{className:te(Tt,z(z(z(z({},"".concat(Tt,"-ping-left"),Ot),"".concat(Tt,"-ping-right"),At),"".concat(Tt,"-ping-top"),pn),"".concat(Tt,"-ping-bottom"),Xn)),ref:E},d.createElement(vo,{onResize:ze},d.createElement("div",{ref:_,className:"".concat(g,"-nav-list"),style:{transform:"translate(".concat(j,"px, ").concat(R,"px)"),transition:Ge?"none":void 0}},Re,d.createElement(n$,{ref:M,prefixCls:g,locale:u,editable:c,style:V(V({},Re.length===0?void 0:fe),{},{visibility:nt?"hidden":null})}),d.createElement("div",{className:te("".concat(g,"-ink-bar"),z({},"".concat(g,"-ink-bar-animated"),o.inkBar)),style:mt}))))),d.createElement(b5,Pe({},e,{removeAriaLabel:u==null?void 0:u.removeAriaLabel,ref:O,prefixCls:g,tabs:pe,className:!nt&&Ve,tabMoving:!!Ge})),d.createElement(_1,{ref:w,position:"right",extra:l,prefixCls:g})))}),r$=d.forwardRef(function(e,t){var n=e.prefixCls,r=e.className,i=e.style,o=e.id,a=e.active,s=e.tabKey,l=e.children;return d.createElement("div",{id:o&&"".concat(o,"-panel-").concat(s),role:"tabpanel",tabIndex:a?0:-1,"aria-labelledby":o&&"".concat(o,"-tab-").concat(s),"aria-hidden":!a,style:i,className:te(n,a&&"".concat(n,"-active"),r),ref:t},l)}),C5=["renderTabBar"],w5=["label","key"],E5=function(t){var n=t.renderTabBar,r=st(t,C5),i=d.useContext(Vf),o=i.tabs;if(n){var a=V(V({},r),{},{panes:o.map(function(s){var l=s.label,c=s.key,u=st(s,w5);return d.createElement(r$,Pe({tab:l,key:c,tabKey:c},u))})});return n(a,$1)}return d.createElement($1,r)},_5=["key","forceRender","style","className","destroyInactiveTabPane"],$5=function(t){var n=t.id,r=t.activeKey,i=t.animated,o=t.tabPosition,a=t.destroyInactiveTabPane,s=d.useContext(Vf),l=s.prefixCls,c=s.tabs,u=i.tabPane,f="".concat(l,"-tabpane");return d.createElement("div",{className:te("".concat(l,"-content-holder"))},d.createElement("div",{className:te("".concat(l,"-content"),"".concat(l,"-content-").concat(o),z({},"".concat(l,"-content-animated"),u))},c.map(function(h){var m=h.key,y=h.forceRender,v=h.style,b=h.className,p=h.destroyInactiveTabPane,g=st(h,_5),x=m===r;return d.createElement(To,Pe({key:m,visible:x,forceRender:y,removeOnLeave:!!(a||p),leavedClassName:"".concat(f,"-hidden")},i.tabPaneMotion),function(S,C){var w=S.style,E=S.className;return d.createElement(r$,Pe({},g,{prefixCls:f,id:n,tabKey:m,animated:u,active:x,style:V(V({},v),w),className:te(b,E),ref:C}))})})))};function O5(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{inkBar:!0,tabPane:!1},t;return e===!1?t={inkBar:!1,tabPane:!1}:e===!0?t={inkBar:!0,tabPane:!1}:t=V({inkBar:!0},je(e)==="object"?e:{}),t.tabPaneMotion&&t.tabPane===void 0&&(t.tabPane=!0),!t.tabPaneMotion&&t.tabPane&&(t.tabPane=!1),t}var P5=["id","prefixCls","className","items","direction","activeKey","defaultActiveKey","editable","animated","tabPosition","tabBarGutter","tabBarStyle","tabBarExtraContent","locale","more","destroyInactiveTabPane","renderTabBar","onChange","onTabClick","onTabScroll","getPopupContainer","popupClassName","indicator"],O1=0,M5=d.forwardRef(function(e,t){var n=e.id,r=e.prefixCls,i=r===void 0?"rc-tabs":r,o=e.className,a=e.items,s=e.direction,l=e.activeKey,c=e.defaultActiveKey,u=e.editable,f=e.animated,h=e.tabPosition,m=h===void 0?"top":h,y=e.tabBarGutter,v=e.tabBarStyle,b=e.tabBarExtraContent,p=e.locale,g=e.more,x=e.destroyInactiveTabPane,S=e.renderTabBar,C=e.onChange,w=e.onTabClick,E=e.onTabScroll,_=e.getPopupContainer,O=e.popupClassName,M=e.indicator,I=st(e,P5),k=d.useMemo(function(){return(a||[]).filter(function(ie){return ie&&je(ie)==="object"&&"key"in ie})},[a]),F=s==="rtl",j=O5(f),B=d.useState(!1),A=Q(B,2),P=A[0],R=A[1];d.useEffect(function(){R(Gv())},[]);var N=yo(function(){var ie;return(ie=k[0])===null||ie===void 0?void 0:ie.key},{value:l,defaultValue:c}),D=Q(N,2),H=D[0],G=D[1],X=d.useState(function(){return k.findIndex(function(ie){return ie.key===H})}),W=Q(X,2),K=W[0],ee=W[1];d.useEffect(function(){var ie=k.findIndex(function(ye){return ye.key===H});if(ie===-1){var de;ie=Math.max(0,Math.min(K,k.length-1)),G((de=k[ie])===null||de===void 0?void 0:de.key)}ee(ie)},[k.map(function(ie){return ie.key}).join("_"),H,K]);var U=yo(null,{value:n}),Y=Q(U,2),J=Y[0],re=Y[1];d.useEffect(function(){n||(re("rc-tabs-".concat(O1)),O1+=1)},[]);function ce(ie,de){w==null||w(ie,de);var ye=ie!==H;G(ie),ye&&(C==null||C(ie))}var he={id:J,activeKey:H,animated:j,tabPosition:m,rtl:F,mobile:P},Se=V(V({},he),{},{editable:u,locale:p,more:g,tabBarGutter:y,onTabClick:ce,onTabScroll:E,extra:b,style:v,panes:null,getPopupContainer:_,popupClassName:O,indicator:M});return d.createElement(Vf.Provider,{value:{tabs:k,prefixCls:i}},d.createElement("div",Pe({ref:t,id:n,className:te(i,"".concat(i,"-").concat(m),z(z(z({},"".concat(i,"-mobile"),P),"".concat(i,"-editable"),u),"".concat(i,"-rtl"),F),o)},I),d.createElement(E5,Pe({},Se,{renderTabBar:S})),d.createElement($5,Pe({destroyInactiveTabPane:x},he,{animated:j}))))});const T5={motionAppear:!1,motionEnter:!0,motionLeave:!0};function R5(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{inkBar:!0,tabPane:!1},n;return t===!1?n={inkBar:!1,tabPane:!1}:t===!0?n={inkBar:!0,tabPane:!0}:n=Object.assign({inkBar:!0},typeof t=="object"?t:{}),n.tabPane&&(n.tabPaneMotion=Object.assign(Object.assign({},T5),{motionName:UE(e,"switch")})),n}var I5=function(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 i=0,r=Object.getOwnPropertySymbols(e);it)}function N5(e,t){if(e)return e;const n=Co(t).map(r=>{if(d.isValidElement(r)){const{key:i,props:o}=r,a=o||{},{tab:s}=a,l=I5(a,["tab"]);return Object.assign(Object.assign({key:String(i)},l),{label:s})}return null});return k5(n)}const F5=e=>{const{componentCls:t,motionDurationSlow:n}=e;return[{[t]:{[`${t}-switch`]:{"&-appear, &-enter":{transition:"none","&-start":{opacity:0},"&-active":{opacity:1,transition:`opacity ${n}`}},"&-leave":{position:"absolute",transition:"none",inset:0,"&-start":{opacity:1},"&-active":{opacity:0,transition:`opacity ${n}`}}}}},[kb(e,"slide-up"),kb(e,"slide-down")]]},A5=e=>{const{componentCls:t,tabsCardPadding:n,cardBg:r,cardGutter:i,colorBorderSecondary:o,itemSelectedColor:a}=e;return{[`${t}-card`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab`]:{margin:0,padding:n,background:r,border:`${Z(e.lineWidth)} ${e.lineType} ${o}`,transition:`all ${e.motionDurationSlow} ${e.motionEaseInOut}`},[`${t}-tab-active`]:{color:a,background:e.colorBgContainer},[`${t}-ink-bar`]:{visibility:"hidden"}},[`&${t}-top, &${t}-bottom`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab + ${t}-tab`]:{marginLeft:{_skip_check_:!0,value:Z(i)}}}},[`&${t}-top`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab`]:{borderRadius:`${Z(e.borderRadiusLG)} ${Z(e.borderRadiusLG)} 0 0`},[`${t}-tab-active`]:{borderBottomColor:e.colorBgContainer}}},[`&${t}-bottom`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab`]:{borderRadius:`0 0 ${Z(e.borderRadiusLG)} ${Z(e.borderRadiusLG)}`},[`${t}-tab-active`]:{borderTopColor:e.colorBgContainer}}},[`&${t}-left, &${t}-right`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab + ${t}-tab`]:{marginTop:Z(i)}}},[`&${t}-left`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab`]:{borderRadius:{_skip_check_:!0,value:`${Z(e.borderRadiusLG)} 0 0 ${Z(e.borderRadiusLG)}`}},[`${t}-tab-active`]:{borderRightColor:{_skip_check_:!0,value:e.colorBgContainer}}}},[`&${t}-right`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab`]:{borderRadius:{_skip_check_:!0,value:`0 ${Z(e.borderRadiusLG)} ${Z(e.borderRadiusLG)} 0`}},[`${t}-tab-active`]:{borderLeftColor:{_skip_check_:!0,value:e.colorBgContainer}}}}}}},L5=e=>{const{componentCls:t,itemHoverColor:n,dropdownEdgeChildVerticalPadding:r}=e;return{[`${t}-dropdown`]:Object.assign(Object.assign({},Lr(e)),{position:"absolute",top:-9999,left:{_skip_check_:!0,value:-9999},zIndex:e.zIndexPopup,display:"block","&-hidden":{display:"none"},[`${t}-dropdown-menu`]:{maxHeight:e.tabsDropdownHeight,margin:0,padding:`${Z(r)} 0`,overflowX:"hidden",overflowY:"auto",textAlign:{_skip_check_:!0,value:"left"},listStyleType:"none",backgroundColor:e.colorBgContainer,backgroundClip:"padding-box",borderRadius:e.borderRadiusLG,outline:"none",boxShadow:e.boxShadowSecondary,"&-item":Object.assign(Object.assign({},Tv),{display:"flex",alignItems:"center",minWidth:e.tabsDropdownWidth,margin:0,padding:`${Z(e.paddingXXS)} ${Z(e.paddingSM)}`,color:e.colorText,fontWeight:"normal",fontSize:e.fontSize,lineHeight:e.lineHeight,cursor:"pointer",transition:`all ${e.motionDurationSlow}`,"> span":{flex:1,whiteSpace:"nowrap"},"&-remove":{flex:"none",marginLeft:{_skip_check_:!0,value:e.marginSM},color:e.colorTextDescription,fontSize:e.fontSizeSM,background:"transparent",border:0,cursor:"pointer","&:hover":{color:n}},"&:hover":{background:e.controlItemBgHover},"&-disabled":{"&, &:hover":{color:e.colorTextDisabled,background:"transparent",cursor:"not-allowed"}}})}})}},D5=e=>{const{componentCls:t,margin:n,colorBorderSecondary:r,horizontalMargin:i,verticalItemPadding:o,verticalItemMargin:a,calc:s}=e;return{[`${t}-top, ${t}-bottom`]:{flexDirection:"column",[`> ${t}-nav, > div > ${t}-nav`]:{margin:i,"&::before":{position:"absolute",right:{_skip_check_:!0,value:0},left:{_skip_check_:!0,value:0},borderBottom:`${Z(e.lineWidth)} ${e.lineType} ${r}`,content:"''"},[`${t}-ink-bar`]:{height:e.lineWidthBold,"&-animated":{transition:`width ${e.motionDurationSlow}, left ${e.motionDurationSlow}, right ${e.motionDurationSlow}`}},[`${t}-nav-wrap`]:{"&::before, &::after":{top:0,bottom:0,width:e.controlHeight},"&::before":{left:{_skip_check_:!0,value:0},boxShadow:e.boxShadowTabsOverflowLeft},"&::after":{right:{_skip_check_:!0,value:0},boxShadow:e.boxShadowTabsOverflowRight},[`&${t}-nav-wrap-ping-left::before`]:{opacity:1},[`&${t}-nav-wrap-ping-right::after`]:{opacity:1}}}},[`${t}-top`]:{[`> ${t}-nav, - > div > ${t}-nav`]:{"&::before":{bottom:0},[`${t}-ink-bar`]:{bottom:0}}},[`${t}-bottom`]:{[`> ${t}-nav, > div > ${t}-nav`]:{order:1,marginTop:n,marginBottom:0,"&::before":{top:0},[`${t}-ink-bar`]:{top:0}},[`> ${t}-content-holder, > div > ${t}-content-holder`]:{order:0}},[`${t}-left, ${t}-right`]:{[`> ${t}-nav, > div > ${t}-nav`]:{flexDirection:"column",minWidth:s(e.controlHeight).mul(1.25).equal(),[`${t}-tab`]:{padding:o,textAlign:"center"},[`${t}-tab + ${t}-tab`]:{margin:a},[`${t}-nav-wrap`]:{flexDirection:"column","&::before, &::after":{right:{_skip_check_:!0,value:0},left:{_skip_check_:!0,value:0},height:e.controlHeight},"&::before":{top:0,boxShadow:e.boxShadowTabsOverflowTop},"&::after":{bottom:0,boxShadow:e.boxShadowTabsOverflowBottom},[`&${t}-nav-wrap-ping-top::before`]:{opacity:1},[`&${t}-nav-wrap-ping-bottom::after`]:{opacity:1}},[`${t}-ink-bar`]:{width:e.lineWidthBold,"&-animated":{transition:`height ${e.motionDurationSlow}, top ${e.motionDurationSlow}`}},[`${t}-nav-list, ${t}-nav-operations`]:{flex:"1 0 auto",flexDirection:"column"}}},[`${t}-left`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-ink-bar`]:{right:{_skip_check_:!0,value:0}}},[`> ${t}-content-holder, > div > ${t}-content-holder`]:{marginLeft:{_skip_check_:!0,value:Z(s(e.lineWidth).mul(-1).equal())},borderLeft:{_skip_check_:!0,value:`${Z(e.lineWidth)} ${e.lineType} ${e.colorBorder}`},[`> ${t}-content > ${t}-tabpane`]:{paddingLeft:{_skip_check_:!0,value:e.paddingLG}}}},[`${t}-right`]:{[`> ${t}-nav, > div > ${t}-nav`]:{order:1,[`${t}-ink-bar`]:{left:{_skip_check_:!0,value:0}}},[`> ${t}-content-holder, > div > ${t}-content-holder`]:{order:0,marginRight:{_skip_check_:!0,value:s(e.lineWidth).mul(-1).equal()},borderRight:{_skip_check_:!0,value:`${Z(e.lineWidth)} ${e.lineType} ${e.colorBorder}`},[`> ${t}-content > ${t}-tabpane`]:{paddingRight:{_skip_check_:!0,value:e.paddingLG}}}}}},z5=e=>{const{componentCls:t,cardPaddingSM:n,cardPaddingLG:r,horizontalItemPaddingSM:i,horizontalItemPaddingLG:o}=e;return{[t]:{"&-small":{[`> ${t}-nav`]:{[`${t}-tab`]:{padding:i,fontSize:e.titleFontSizeSM}}},"&-large":{[`> ${t}-nav`]:{[`${t}-tab`]:{padding:o,fontSize:e.titleFontSizeLG}}}},[`${t}-card`]:{[`&${t}-small`]:{[`> ${t}-nav`]:{[`${t}-tab`]:{padding:n}},[`&${t}-bottom`]:{[`> ${t}-nav ${t}-tab`]:{borderRadius:`0 0 ${Z(e.borderRadius)} ${Z(e.borderRadius)}`}},[`&${t}-top`]:{[`> ${t}-nav ${t}-tab`]:{borderRadius:`${Z(e.borderRadius)} ${Z(e.borderRadius)} 0 0`}},[`&${t}-right`]:{[`> ${t}-nav ${t}-tab`]:{borderRadius:{_skip_check_:!0,value:`0 ${Z(e.borderRadius)} ${Z(e.borderRadius)} 0`}}},[`&${t}-left`]:{[`> ${t}-nav ${t}-tab`]:{borderRadius:{_skip_check_:!0,value:`${Z(e.borderRadius)} 0 0 ${Z(e.borderRadius)}`}}}},[`&${t}-large`]:{[`> ${t}-nav`]:{[`${t}-tab`]:{padding:r}}}}}},j5=e=>{const{componentCls:t,itemActiveColor:n,itemHoverColor:r,iconCls:i,tabsHorizontalItemMargin:o,horizontalItemPadding:a,itemSelectedColor:s,itemColor:l}=e,c=`${t}-tab`;return{[c]:{position:"relative",WebkitTouchCallout:"none",WebkitTapHighlightColor:"transparent",display:"inline-flex",alignItems:"center",padding:a,fontSize:e.titleFontSize,background:"transparent",border:0,outline:"none",cursor:"pointer",color:l,"&-btn, &-remove":Object.assign({"&:focus:not(:focus-visible), &:active":{color:n}},Rv(e)),"&-btn":{outline:"none",transition:`all ${e.motionDurationSlow}`,[`${c}-icon:not(:last-child)`]:{marginInlineEnd:e.marginSM}},"&-remove":{flex:"none",marginRight:{_skip_check_:!0,value:e.calc(e.marginXXS).mul(-1).equal()},marginLeft:{_skip_check_:!0,value:e.marginXS},color:e.colorTextDescription,fontSize:e.fontSizeSM,background:"transparent",border:"none",outline:"none",cursor:"pointer",transition:`all ${e.motionDurationSlow}`,"&:hover":{color:e.colorTextHeading}},"&:hover":{color:r},[`&${c}-active ${c}-btn`]:{color:s,textShadow:e.tabsActiveTextShadow},[`&${c}-disabled`]:{color:e.colorTextDisabled,cursor:"not-allowed"},[`&${c}-disabled ${c}-btn, &${c}-disabled ${t}-remove`]:{"&:focus, &:active":{color:e.colorTextDisabled}},[`& ${c}-remove ${i}`]:{margin:0},[`${i}:not(:last-child)`]:{marginRight:{_skip_check_:!0,value:e.marginSM}}},[`${c} + ${c}`]:{margin:{_skip_check_:!0,value:o}}}},B5=e=>{const{componentCls:t,tabsHorizontalItemMarginRTL:n,iconCls:r,cardGutter:i,calc:o}=e;return{[`${t}-rtl`]:{direction:"rtl",[`${t}-nav`]:{[`${t}-tab`]:{margin:{_skip_check_:!0,value:n},[`${t}-tab:last-of-type`]:{marginLeft:{_skip_check_:!0,value:0}},[r]:{marginRight:{_skip_check_:!0,value:0},marginLeft:{_skip_check_:!0,value:Z(e.marginSM)}},[`${t}-tab-remove`]:{marginRight:{_skip_check_:!0,value:Z(e.marginXS)},marginLeft:{_skip_check_:!0,value:Z(o(e.marginXXS).mul(-1).equal())},[r]:{margin:0}}}},[`&${t}-left`]:{[`> ${t}-nav`]:{order:1},[`> ${t}-content-holder`]:{order:0}},[`&${t}-right`]:{[`> ${t}-nav`]:{order:0},[`> ${t}-content-holder`]:{order:1}},[`&${t}-card${t}-top, &${t}-card${t}-bottom`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab + ${t}-tab`]:{marginRight:{_skip_check_:!0,value:i},marginLeft:{_skip_check_:!0,value:0}}}}},[`${t}-dropdown-rtl`]:{direction:"rtl"},[`${t}-menu-item`]:{[`${t}-dropdown-rtl`]:{textAlign:{_skip_check_:!0,value:"right"}}}}},H5=e=>{const{componentCls:t,tabsCardPadding:n,cardHeight:r,cardGutter:i,itemHoverColor:o,itemActiveColor:a,colorBorderSecondary:s}=e;return{[t]:Object.assign(Object.assign(Object.assign(Object.assign({},Lr(e)),{display:"flex",[`> ${t}-nav, > div > ${t}-nav`]:{position:"relative",display:"flex",flex:"none",alignItems:"center",[`${t}-nav-wrap`]:{position:"relative",display:"flex",flex:"auto",alignSelf:"stretch",overflow:"hidden",whiteSpace:"nowrap",transform:"translate(0)","&::before, &::after":{position:"absolute",zIndex:1,opacity:0,transition:`opacity ${e.motionDurationSlow}`,content:"''",pointerEvents:"none"}},[`${t}-nav-list`]:{position:"relative",display:"flex",transition:`opacity ${e.motionDurationSlow}`},[`${t}-nav-operations`]:{display:"flex",alignSelf:"stretch"},[`${t}-nav-operations-hidden`]:{position:"absolute",visibility:"hidden",pointerEvents:"none"},[`${t}-nav-more`]:{position:"relative",padding:n,background:"transparent",border:0,color:e.colorText,"&::after":{position:"absolute",right:{_skip_check_:!0,value:0},bottom:0,left:{_skip_check_:!0,value:0},height:e.calc(e.controlHeightLG).div(8).equal(),transform:"translateY(100%)",content:"''"}},[`${t}-nav-add`]:Object.assign({minWidth:r,minHeight:r,marginLeft:{_skip_check_:!0,value:i},padding:`0 ${Z(e.paddingXS)}`,background:"transparent",border:`${Z(e.lineWidth)} ${e.lineType} ${s}`,borderRadius:`${Z(e.borderRadiusLG)} ${Z(e.borderRadiusLG)} 0 0`,outline:"none",cursor:"pointer",color:e.colorText,transition:`all ${e.motionDurationSlow} ${e.motionEaseInOut}`,"&:hover":{color:o},"&:active, &:focus:not(:focus-visible)":{color:a}},Rv(e))},[`${t}-extra-content`]:{flex:"none"},[`${t}-ink-bar`]:{position:"absolute",background:e.inkBarColor,pointerEvents:"none"}}),j5(e)),{[`${t}-content`]:{position:"relative",width:"100%"},[`${t}-content-holder`]:{flex:"auto",minWidth:0,minHeight:0},[`${t}-tabpane`]:{outline:"none","&-hidden":{display:"none"}}}),[`${t}-centered`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-nav-wrap`]:{[`&:not([class*='${t}-nav-wrap-ping'])`]:{justifyContent:"center"}}}}}},V5=e=>{const t=e.controlHeightLG;return{zIndexPopup:e.zIndexPopupBase+50,cardBg:e.colorFillAlter,cardHeight:t,cardPadding:`${(t-Math.round(e.fontSize*e.lineHeight))/2-e.lineWidth}px ${e.padding}px`,cardPaddingSM:`${e.paddingXXS*1.5}px ${e.padding}px`,cardPaddingLG:`${e.paddingXS}px ${e.padding}px ${e.paddingXXS*1.5}px`,titleFontSize:e.fontSize,titleFontSizeLG:e.fontSizeLG,titleFontSizeSM:e.fontSize,inkBarColor:e.colorPrimary,horizontalMargin:`0 0 ${e.margin}px 0`,horizontalItemGutter:32,horizontalItemMargin:"",horizontalItemMarginRTL:"",horizontalItemPadding:`${e.paddingSM}px 0`,horizontalItemPaddingSM:`${e.paddingXS}px 0`,horizontalItemPaddingLG:`${e.padding}px 0`,verticalItemPadding:`${e.paddingXS}px ${e.paddingLG}px`,verticalItemMargin:`${e.margin}px 0 0 0`,itemColor:e.colorText,itemSelectedColor:e.colorPrimary,itemHoverColor:e.colorPrimaryHover,itemActiveColor:e.colorPrimaryActive,cardGutter:e.marginXXS/2}},W5=Er("Tabs",e=>{const t=An(e,{tabsCardPadding:e.cardPadding,dropdownEdgeChildVerticalPadding:e.paddingXXS,tabsActiveTextShadow:"0 0 0.25px currentcolor",tabsDropdownHeight:200,tabsDropdownWidth:120,tabsHorizontalItemMargin:`0 0 0 ${Z(e.horizontalItemGutter)}`,tabsHorizontalItemMarginRTL:`0 0 0 ${Z(e.horizontalItemGutter)}`});return[z5(t),B5(t),D5(t),L5(t),A5(t),H5(t),F5(t)]},V5),U5=()=>null;var G5=function(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 i=0,r=Object.getOwnPropertySymbols(e);i{var t,n,r,i,o,a,s,l,c,u,f;const{type:h,className:m,rootClassName:y,size:v,onEdit:b,hideAdd:p,centered:g,addIcon:x,removeIcon:S,moreIcon:C,more:w,popupClassName:E,children:_,items:O,animated:M,style:I,indicatorSize:k,indicator:F}=e,j=G5(e,["type","className","rootClassName","size","onEdit","hideAdd","centered","addIcon","removeIcon","moreIcon","more","popupClassName","children","items","animated","style","indicatorSize","indicator"]),{prefixCls:B}=j,{direction:A,tabs:P,getPrefixCls:R,getPopupContainer:N}=d.useContext(bt),D=R("tabs",B),H=Tc(D),[G,X,W]=W5(D,H);let K;h==="editable-card"&&(K={onEdit:(he,xe)=>{let{key:ie,event:de}=xe;b==null||b(he==="add"?de:ie,he)},removeIcon:(t=S??(P==null?void 0:P.removeIcon))!==null&&t!==void 0?t:d.createElement(WI,null),addIcon:(x??(P==null?void 0:P.addIcon))||d.createElement(u5,null),showAdd:p!==!0});const ee=R(),U=Ic(v),Y=N5(O,_),J=R5(D,M),re=Object.assign(Object.assign({},P==null?void 0:P.style),I),ce={align:(n=F==null?void 0:F.align)!==null&&n!==void 0?n:(r=P==null?void 0:P.indicator)===null||r===void 0?void 0:r.align,size:(s=(o=(i=F==null?void 0:F.size)!==null&&i!==void 0?i:k)!==null&&o!==void 0?o:(a=P==null?void 0:P.indicator)===null||a===void 0?void 0:a.size)!==null&&s!==void 0?s:P==null?void 0:P.indicatorSize};return G(d.createElement(M5,Object.assign({direction:A,getPopupContainer:N},j,{items:Y,className:te({[`${D}-${U}`]:U,[`${D}-card`]:["card","editable-card"].includes(h),[`${D}-editable-card`]:h==="editable-card",[`${D}-centered`]:g},P==null?void 0:P.className,m,y,X,W,H),popupClassName:te(E,X,W,H),style:re,editable:K,more:Object.assign({icon:(f=(u=(c=(l=P==null?void 0:P.more)===null||l===void 0?void 0:l.icon)!==null&&c!==void 0?c:P==null?void 0:P.moreIcon)!==null&&u!==void 0?u:C)!==null&&f!==void 0?f:d.createElement(JL,null),transitionName:`${ee}-slide-up`},w),prefixCls:D,animated:J,indicator:ce})))};i$.TabPane=U5;var K5=function(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 i=0,r=Object.getOwnPropertySymbols(e);i{var{prefixCls:t,className:n,hoverable:r=!0}=e,i=K5(e,["prefixCls","className","hoverable"]);const{getPrefixCls:o}=d.useContext(bt),a=o("card",t),s=te(`${a}-grid`,n,{[`${a}-grid-hoverable`]:r});return d.createElement("div",Object.assign({},i,{className:s}))},q5=e=>{const{antCls:t,componentCls:n,headerHeight:r,cardPaddingBase:i,tabsMarginBottom:o}=e;return Object.assign(Object.assign({display:"flex",justifyContent:"center",flexDirection:"column",minHeight:r,marginBottom:-1,padding:`0 ${Z(i)}`,color:e.colorTextHeading,fontWeight:e.fontWeightStrong,fontSize:e.headerFontSize,background:e.headerBg,borderBottom:`${Z(e.lineWidth)} ${e.lineType} ${e.colorBorderSecondary}`,borderRadius:`${Z(e.borderRadiusLG)} ${Z(e.borderRadiusLG)} 0 0`},Mc()),{"&-wrapper":{width:"100%",display:"flex",alignItems:"center"},"&-title":Object.assign(Object.assign({display:"inline-block",flex:1},Tv),{[` + > div > ${t}-nav`]:{"&::before":{bottom:0},[`${t}-ink-bar`]:{bottom:0}}},[`${t}-bottom`]:{[`> ${t}-nav, > div > ${t}-nav`]:{order:1,marginTop:n,marginBottom:0,"&::before":{top:0},[`${t}-ink-bar`]:{top:0}},[`> ${t}-content-holder, > div > ${t}-content-holder`]:{order:0}},[`${t}-left, ${t}-right`]:{[`> ${t}-nav, > div > ${t}-nav`]:{flexDirection:"column",minWidth:s(e.controlHeight).mul(1.25).equal(),[`${t}-tab`]:{padding:o,textAlign:"center"},[`${t}-tab + ${t}-tab`]:{margin:a},[`${t}-nav-wrap`]:{flexDirection:"column","&::before, &::after":{right:{_skip_check_:!0,value:0},left:{_skip_check_:!0,value:0},height:e.controlHeight},"&::before":{top:0,boxShadow:e.boxShadowTabsOverflowTop},"&::after":{bottom:0,boxShadow:e.boxShadowTabsOverflowBottom},[`&${t}-nav-wrap-ping-top::before`]:{opacity:1},[`&${t}-nav-wrap-ping-bottom::after`]:{opacity:1}},[`${t}-ink-bar`]:{width:e.lineWidthBold,"&-animated":{transition:`height ${e.motionDurationSlow}, top ${e.motionDurationSlow}`}},[`${t}-nav-list, ${t}-nav-operations`]:{flex:"1 0 auto",flexDirection:"column"}}},[`${t}-left`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-ink-bar`]:{right:{_skip_check_:!0,value:0}}},[`> ${t}-content-holder, > div > ${t}-content-holder`]:{marginLeft:{_skip_check_:!0,value:Z(s(e.lineWidth).mul(-1).equal())},borderLeft:{_skip_check_:!0,value:`${Z(e.lineWidth)} ${e.lineType} ${e.colorBorder}`},[`> ${t}-content > ${t}-tabpane`]:{paddingLeft:{_skip_check_:!0,value:e.paddingLG}}}},[`${t}-right`]:{[`> ${t}-nav, > div > ${t}-nav`]:{order:1,[`${t}-ink-bar`]:{left:{_skip_check_:!0,value:0}}},[`> ${t}-content-holder, > div > ${t}-content-holder`]:{order:0,marginRight:{_skip_check_:!0,value:s(e.lineWidth).mul(-1).equal()},borderRight:{_skip_check_:!0,value:`${Z(e.lineWidth)} ${e.lineType} ${e.colorBorder}`},[`> ${t}-content > ${t}-tabpane`]:{paddingRight:{_skip_check_:!0,value:e.paddingLG}}}}}},z5=e=>{const{componentCls:t,cardPaddingSM:n,cardPaddingLG:r,horizontalItemPaddingSM:i,horizontalItemPaddingLG:o}=e;return{[t]:{"&-small":{[`> ${t}-nav`]:{[`${t}-tab`]:{padding:i,fontSize:e.titleFontSizeSM}}},"&-large":{[`> ${t}-nav`]:{[`${t}-tab`]:{padding:o,fontSize:e.titleFontSizeLG}}}},[`${t}-card`]:{[`&${t}-small`]:{[`> ${t}-nav`]:{[`${t}-tab`]:{padding:n}},[`&${t}-bottom`]:{[`> ${t}-nav ${t}-tab`]:{borderRadius:`0 0 ${Z(e.borderRadius)} ${Z(e.borderRadius)}`}},[`&${t}-top`]:{[`> ${t}-nav ${t}-tab`]:{borderRadius:`${Z(e.borderRadius)} ${Z(e.borderRadius)} 0 0`}},[`&${t}-right`]:{[`> ${t}-nav ${t}-tab`]:{borderRadius:{_skip_check_:!0,value:`0 ${Z(e.borderRadius)} ${Z(e.borderRadius)} 0`}}},[`&${t}-left`]:{[`> ${t}-nav ${t}-tab`]:{borderRadius:{_skip_check_:!0,value:`${Z(e.borderRadius)} 0 0 ${Z(e.borderRadius)}`}}}},[`&${t}-large`]:{[`> ${t}-nav`]:{[`${t}-tab`]:{padding:r}}}}}},j5=e=>{const{componentCls:t,itemActiveColor:n,itemHoverColor:r,iconCls:i,tabsHorizontalItemMargin:o,horizontalItemPadding:a,itemSelectedColor:s,itemColor:l}=e,c=`${t}-tab`;return{[c]:{position:"relative",WebkitTouchCallout:"none",WebkitTapHighlightColor:"transparent",display:"inline-flex",alignItems:"center",padding:a,fontSize:e.titleFontSize,background:"transparent",border:0,outline:"none",cursor:"pointer",color:l,"&-btn, &-remove":Object.assign({"&:focus:not(:focus-visible), &:active":{color:n}},Rv(e)),"&-btn":{outline:"none",transition:`all ${e.motionDurationSlow}`,[`${c}-icon:not(:last-child)`]:{marginInlineEnd:e.marginSM}},"&-remove":{flex:"none",marginRight:{_skip_check_:!0,value:e.calc(e.marginXXS).mul(-1).equal()},marginLeft:{_skip_check_:!0,value:e.marginXS},color:e.colorTextDescription,fontSize:e.fontSizeSM,background:"transparent",border:"none",outline:"none",cursor:"pointer",transition:`all ${e.motionDurationSlow}`,"&:hover":{color:e.colorTextHeading}},"&:hover":{color:r},[`&${c}-active ${c}-btn`]:{color:s,textShadow:e.tabsActiveTextShadow},[`&${c}-disabled`]:{color:e.colorTextDisabled,cursor:"not-allowed"},[`&${c}-disabled ${c}-btn, &${c}-disabled ${t}-remove`]:{"&:focus, &:active":{color:e.colorTextDisabled}},[`& ${c}-remove ${i}`]:{margin:0},[`${i}:not(:last-child)`]:{marginRight:{_skip_check_:!0,value:e.marginSM}}},[`${c} + ${c}`]:{margin:{_skip_check_:!0,value:o}}}},B5=e=>{const{componentCls:t,tabsHorizontalItemMarginRTL:n,iconCls:r,cardGutter:i,calc:o}=e;return{[`${t}-rtl`]:{direction:"rtl",[`${t}-nav`]:{[`${t}-tab`]:{margin:{_skip_check_:!0,value:n},[`${t}-tab:last-of-type`]:{marginLeft:{_skip_check_:!0,value:0}},[r]:{marginRight:{_skip_check_:!0,value:0},marginLeft:{_skip_check_:!0,value:Z(e.marginSM)}},[`${t}-tab-remove`]:{marginRight:{_skip_check_:!0,value:Z(e.marginXS)},marginLeft:{_skip_check_:!0,value:Z(o(e.marginXXS).mul(-1).equal())},[r]:{margin:0}}}},[`&${t}-left`]:{[`> ${t}-nav`]:{order:1},[`> ${t}-content-holder`]:{order:0}},[`&${t}-right`]:{[`> ${t}-nav`]:{order:0},[`> ${t}-content-holder`]:{order:1}},[`&${t}-card${t}-top, &${t}-card${t}-bottom`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab + ${t}-tab`]:{marginRight:{_skip_check_:!0,value:i},marginLeft:{_skip_check_:!0,value:0}}}}},[`${t}-dropdown-rtl`]:{direction:"rtl"},[`${t}-menu-item`]:{[`${t}-dropdown-rtl`]:{textAlign:{_skip_check_:!0,value:"right"}}}}},H5=e=>{const{componentCls:t,tabsCardPadding:n,cardHeight:r,cardGutter:i,itemHoverColor:o,itemActiveColor:a,colorBorderSecondary:s}=e;return{[t]:Object.assign(Object.assign(Object.assign(Object.assign({},Lr(e)),{display:"flex",[`> ${t}-nav, > div > ${t}-nav`]:{position:"relative",display:"flex",flex:"none",alignItems:"center",[`${t}-nav-wrap`]:{position:"relative",display:"flex",flex:"auto",alignSelf:"stretch",overflow:"hidden",whiteSpace:"nowrap",transform:"translate(0)","&::before, &::after":{position:"absolute",zIndex:1,opacity:0,transition:`opacity ${e.motionDurationSlow}`,content:"''",pointerEvents:"none"}},[`${t}-nav-list`]:{position:"relative",display:"flex",transition:`opacity ${e.motionDurationSlow}`},[`${t}-nav-operations`]:{display:"flex",alignSelf:"stretch"},[`${t}-nav-operations-hidden`]:{position:"absolute",visibility:"hidden",pointerEvents:"none"},[`${t}-nav-more`]:{position:"relative",padding:n,background:"transparent",border:0,color:e.colorText,"&::after":{position:"absolute",right:{_skip_check_:!0,value:0},bottom:0,left:{_skip_check_:!0,value:0},height:e.calc(e.controlHeightLG).div(8).equal(),transform:"translateY(100%)",content:"''"}},[`${t}-nav-add`]:Object.assign({minWidth:r,minHeight:r,marginLeft:{_skip_check_:!0,value:i},padding:`0 ${Z(e.paddingXS)}`,background:"transparent",border:`${Z(e.lineWidth)} ${e.lineType} ${s}`,borderRadius:`${Z(e.borderRadiusLG)} ${Z(e.borderRadiusLG)} 0 0`,outline:"none",cursor:"pointer",color:e.colorText,transition:`all ${e.motionDurationSlow} ${e.motionEaseInOut}`,"&:hover":{color:o},"&:active, &:focus:not(:focus-visible)":{color:a}},Rv(e))},[`${t}-extra-content`]:{flex:"none"},[`${t}-ink-bar`]:{position:"absolute",background:e.inkBarColor,pointerEvents:"none"}}),j5(e)),{[`${t}-content`]:{position:"relative",width:"100%"},[`${t}-content-holder`]:{flex:"auto",minWidth:0,minHeight:0},[`${t}-tabpane`]:{outline:"none","&-hidden":{display:"none"}}}),[`${t}-centered`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-nav-wrap`]:{[`&:not([class*='${t}-nav-wrap-ping'])`]:{justifyContent:"center"}}}}}},V5=e=>{const t=e.controlHeightLG;return{zIndexPopup:e.zIndexPopupBase+50,cardBg:e.colorFillAlter,cardHeight:t,cardPadding:`${(t-Math.round(e.fontSize*e.lineHeight))/2-e.lineWidth}px ${e.padding}px`,cardPaddingSM:`${e.paddingXXS*1.5}px ${e.padding}px`,cardPaddingLG:`${e.paddingXS}px ${e.padding}px ${e.paddingXXS*1.5}px`,titleFontSize:e.fontSize,titleFontSizeLG:e.fontSizeLG,titleFontSizeSM:e.fontSize,inkBarColor:e.colorPrimary,horizontalMargin:`0 0 ${e.margin}px 0`,horizontalItemGutter:32,horizontalItemMargin:"",horizontalItemMarginRTL:"",horizontalItemPadding:`${e.paddingSM}px 0`,horizontalItemPaddingSM:`${e.paddingXS}px 0`,horizontalItemPaddingLG:`${e.padding}px 0`,verticalItemPadding:`${e.paddingXS}px ${e.paddingLG}px`,verticalItemMargin:`${e.margin}px 0 0 0`,itemColor:e.colorText,itemSelectedColor:e.colorPrimary,itemHoverColor:e.colorPrimaryHover,itemActiveColor:e.colorPrimaryActive,cardGutter:e.marginXXS/2}},W5=Er("Tabs",e=>{const t=An(e,{tabsCardPadding:e.cardPadding,dropdownEdgeChildVerticalPadding:e.paddingXXS,tabsActiveTextShadow:"0 0 0.25px currentcolor",tabsDropdownHeight:200,tabsDropdownWidth:120,tabsHorizontalItemMargin:`0 0 0 ${Z(e.horizontalItemGutter)}`,tabsHorizontalItemMarginRTL:`0 0 0 ${Z(e.horizontalItemGutter)}`});return[z5(t),B5(t),D5(t),L5(t),A5(t),H5(t),F5(t)]},V5),U5=()=>null;var G5=function(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 i=0,r=Object.getOwnPropertySymbols(e);i{var t,n,r,i,o,a,s,l,c,u,f;const{type:h,className:m,rootClassName:y,size:v,onEdit:b,hideAdd:p,centered:g,addIcon:x,removeIcon:S,moreIcon:C,more:w,popupClassName:E,children:_,items:O,animated:M,style:I,indicatorSize:k,indicator:F}=e,j=G5(e,["type","className","rootClassName","size","onEdit","hideAdd","centered","addIcon","removeIcon","moreIcon","more","popupClassName","children","items","animated","style","indicatorSize","indicator"]),{prefixCls:B}=j,{direction:A,tabs:P,getPrefixCls:R,getPopupContainer:N}=d.useContext(bt),D=R("tabs",B),H=Tc(D),[G,X,W]=W5(D,H);let K;h==="editable-card"&&(K={onEdit:(he,Se)=>{let{key:ie,event:de}=Se;b==null||b(he==="add"?de:ie,he)},removeIcon:(t=S??(P==null?void 0:P.removeIcon))!==null&&t!==void 0?t:d.createElement(WI,null),addIcon:(x??(P==null?void 0:P.addIcon))||d.createElement(u5,null),showAdd:p!==!0});const ee=R(),U=Ic(v),Y=N5(O,_),J=R5(D,M),re=Object.assign(Object.assign({},P==null?void 0:P.style),I),ce={align:(n=F==null?void 0:F.align)!==null&&n!==void 0?n:(r=P==null?void 0:P.indicator)===null||r===void 0?void 0:r.align,size:(s=(o=(i=F==null?void 0:F.size)!==null&&i!==void 0?i:k)!==null&&o!==void 0?o:(a=P==null?void 0:P.indicator)===null||a===void 0?void 0:a.size)!==null&&s!==void 0?s:P==null?void 0:P.indicatorSize};return G(d.createElement(M5,Object.assign({direction:A,getPopupContainer:N},j,{items:Y,className:te({[`${D}-${U}`]:U,[`${D}-card`]:["card","editable-card"].includes(h),[`${D}-editable-card`]:h==="editable-card",[`${D}-centered`]:g},P==null?void 0:P.className,m,y,X,W,H),popupClassName:te(E,X,W,H),style:re,editable:K,more:Object.assign({icon:(f=(u=(c=(l=P==null?void 0:P.more)===null||l===void 0?void 0:l.icon)!==null&&c!==void 0?c:P==null?void 0:P.moreIcon)!==null&&u!==void 0?u:C)!==null&&f!==void 0?f:d.createElement(JL,null),transitionName:`${ee}-slide-up`},w),prefixCls:D,animated:J,indicator:ce})))};i$.TabPane=U5;var K5=function(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 i=0,r=Object.getOwnPropertySymbols(e);i{var{prefixCls:t,className:n,hoverable:r=!0}=e,i=K5(e,["prefixCls","className","hoverable"]);const{getPrefixCls:o}=d.useContext(bt),a=o("card",t),s=te(`${a}-grid`,n,{[`${a}-grid-hoverable`]:r});return d.createElement("div",Object.assign({},i,{className:s}))},q5=e=>{const{antCls:t,componentCls:n,headerHeight:r,cardPaddingBase:i,tabsMarginBottom:o}=e;return Object.assign(Object.assign({display:"flex",justifyContent:"center",flexDirection:"column",minHeight:r,marginBottom:-1,padding:`0 ${Z(i)}`,color:e.colorTextHeading,fontWeight:e.fontWeightStrong,fontSize:e.headerFontSize,background:e.headerBg,borderBottom:`${Z(e.lineWidth)} ${e.lineType} ${e.colorBorderSecondary}`,borderRadius:`${Z(e.borderRadiusLG)} ${Z(e.borderRadiusLG)} 0 0`},Mc()),{"&-wrapper":{width:"100%",display:"flex",alignItems:"center"},"&-title":Object.assign(Object.assign({display:"inline-block",flex:1},Tv),{[` > ${n}-typography, > ${n}-typography-edit-content `]:{insetInlineStart:0,marginTop:0,marginBottom:0}}),[`${t}-tabs-top`]:{clear:"both",marginBottom:o,color:e.colorText,fontWeight:"normal",fontSize:e.fontSize,"&-bar":{borderBottom:`${Z(e.lineWidth)} ${e.lineType} ${e.colorBorderSecondary}`}}})},X5=e=>{const{cardPaddingBase:t,colorBorderSecondary:n,cardShadow:r,lineWidth:i}=e;return{width:"33.33%",padding:t,border:0,borderRadius:0,boxShadow:` @@ -205,7 +205,7 @@ html body { ${Z(i)} ${Z(i)} 0 0 ${n}, ${Z(i)} 0 0 0 ${n} inset, 0 ${Z(i)} 0 0 ${n} inset; - `,transition:`all ${e.motionDurationMid}`,"&-hoverable:hover":{position:"relative",zIndex:1,boxShadow:r}}},Y5=e=>{const{componentCls:t,iconCls:n,actionsLiMargin:r,cardActionsIconSize:i,colorBorderSecondary:o,actionsBg:a}=e;return Object.assign(Object.assign({margin:0,padding:0,listStyle:"none",background:a,borderTop:`${Z(e.lineWidth)} ${e.lineType} ${o}`,display:"flex",borderRadius:`0 0 ${Z(e.borderRadiusLG)} ${Z(e.borderRadiusLG)}`},Mc()),{"& > li":{margin:r,color:e.colorTextDescription,textAlign:"center","> span":{position:"relative",display:"block",minWidth:e.calc(e.cardActionsIconSize).mul(2).equal(),fontSize:e.fontSize,lineHeight:e.lineHeight,cursor:"pointer","&:hover":{color:e.colorPrimary,transition:`color ${e.motionDurationMid}`},[`a:not(${t}-btn), > ${n}`]:{display:"inline-block",width:"100%",color:e.colorTextDescription,lineHeight:Z(e.fontHeight),transition:`color ${e.motionDurationMid}`,"&:hover":{color:e.colorPrimary}},[`> ${n}`]:{fontSize:i,lineHeight:Z(e.calc(i).mul(e.lineHeight).equal())}},"&:not(:last-child)":{borderInlineEnd:`${Z(e.lineWidth)} ${e.lineType} ${o}`}}})},Q5=e=>Object.assign(Object.assign({margin:`${Z(e.calc(e.marginXXS).mul(-1).equal())} 0`,display:"flex"},Mc()),{"&-avatar":{paddingInlineEnd:e.padding},"&-detail":{overflow:"hidden",flex:1,"> div:not(:last-child)":{marginBottom:e.marginXS}},"&-title":Object.assign({color:e.colorTextHeading,fontWeight:e.fontWeightStrong,fontSize:e.fontSizeLG},Tv),"&-description":{color:e.colorTextDescription}}),Z5=e=>{const{componentCls:t,cardPaddingBase:n,colorFillAlter:r}=e;return{[`${t}-head`]:{padding:`0 ${Z(n)}`,background:r,"&-title":{fontSize:e.fontSize}},[`${t}-body`]:{padding:`${Z(e.padding)} ${Z(n)}`}}},J5=e=>{const{componentCls:t}=e;return{overflow:"hidden",[`${t}-body`]:{userSelect:"none"}}},eD=e=>{const{componentCls:t,cardShadow:n,cardHeadPadding:r,colorBorderSecondary:i,boxShadowTertiary:o,cardPaddingBase:a,extraColor:s}=e;return{[t]:Object.assign(Object.assign({},Lr(e)),{position:"relative",background:e.colorBgContainer,borderRadius:e.borderRadiusLG,[`&:not(${t}-bordered)`]:{boxShadow:o},[`${t}-head`]:q5(e),[`${t}-extra`]:{marginInlineStart:"auto",color:s,fontWeight:"normal",fontSize:e.fontSize},[`${t}-body`]:Object.assign({padding:a,borderRadius:`0 0 ${Z(e.borderRadiusLG)} ${Z(e.borderRadiusLG)}`},Mc()),[`${t}-grid`]:X5(e),[`${t}-cover`]:{"> *":{display:"block",width:"100%",borderRadius:`${Z(e.borderRadiusLG)} ${Z(e.borderRadiusLG)} 0 0`}},[`${t}-actions`]:Y5(e),[`${t}-meta`]:Q5(e)}),[`${t}-bordered`]:{border:`${Z(e.lineWidth)} ${e.lineType} ${i}`,[`${t}-cover`]:{marginTop:-1,marginInlineStart:-1,marginInlineEnd:-1}},[`${t}-hoverable`]:{cursor:"pointer",transition:`box-shadow ${e.motionDurationMid}, border-color ${e.motionDurationMid}`,"&:hover":{borderColor:"transparent",boxShadow:n}},[`${t}-contain-grid`]:{borderRadius:`${Z(e.borderRadiusLG)} ${Z(e.borderRadiusLG)} 0 0 `,[`${t}-body`]:{display:"flex",flexWrap:"wrap"},[`&:not(${t}-loading) ${t}-body`]:{marginBlockStart:e.calc(e.lineWidth).mul(-1).equal(),marginInlineStart:e.calc(e.lineWidth).mul(-1).equal(),padding:0}},[`${t}-contain-tabs`]:{[`> div${t}-head`]:{minHeight:0,[`${t}-head-title, ${t}-extra`]:{paddingTop:r}}},[`${t}-type-inner`]:Z5(e),[`${t}-loading`]:J5(e),[`${t}-rtl`]:{direction:"rtl"}}},tD=e=>{const{componentCls:t,cardPaddingSM:n,headerHeightSM:r,headerFontSizeSM:i}=e;return{[`${t}-small`]:{[`> ${t}-head`]:{minHeight:r,padding:`0 ${Z(n)}`,fontSize:i,[`> ${t}-head-wrapper`]:{[`> ${t}-extra`]:{fontSize:e.fontSize}}},[`> ${t}-body`]:{padding:n}},[`${t}-small${t}-contain-tabs`]:{[`> ${t}-head`]:{[`${t}-head-title, ${t}-extra`]:{paddingTop:0,display:"flex",alignItems:"center"}}}}},nD=e=>({headerBg:"transparent",headerFontSize:e.fontSizeLG,headerFontSizeSM:e.fontSize,headerHeight:e.fontSizeLG*e.lineHeightLG+e.padding*2,headerHeightSM:e.fontSize*e.lineHeight+e.paddingXS*2,actionsBg:e.colorBgContainer,actionsLiMargin:`${e.paddingSM}px 0`,tabsMarginBottom:-e.padding-e.lineWidth,extraColor:e.colorText}),rD=Er("Card",e=>{const t=An(e,{cardShadow:e.boxShadowCard,cardHeadPadding:e.padding,cardPaddingBase:e.paddingLG,cardActionsIconSize:e.fontSize,cardPaddingSM:12});return[eD(t),tD(t)]},nD);var P1=function(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 i=0,r=Object.getOwnPropertySymbols(e);i{const{actionClasses:t,actions:n=[],actionStyle:r}=e;return d.createElement("ul",{className:t,style:r},n.map((i,o)=>{const a=`action-${o}`;return d.createElement("li",{style:{width:`${100/n.length}%`},key:a},d.createElement("span",null,i))}))},oD=d.forwardRef((e,t)=>{const{prefixCls:n,className:r,rootClassName:i,style:o,extra:a,headStyle:s={},bodyStyle:l={},title:c,loading:u,bordered:f=!0,size:h,type:m,cover:y,actions:v,tabList:b,children:p,activeTabKey:g,defaultActiveTabKey:x,tabBarExtraContent:S,hoverable:C,tabProps:w={},classNames:E,styles:_}=e,O=P1(e,["prefixCls","className","rootClassName","style","extra","headStyle","bodyStyle","title","loading","bordered","size","type","cover","actions","tabList","children","activeTabKey","defaultActiveTabKey","tabBarExtraContent","hoverable","tabProps","classNames","styles"]),{getPrefixCls:M,direction:I,card:k}=d.useContext(bt),F=se=>{var we;(we=e.onTabChange)===null||we===void 0||we.call(e,se)},j=se=>{var we;return te((we=k==null?void 0:k.classNames)===null||we===void 0?void 0:we[se],E==null?void 0:E[se])},B=se=>{var we;return Object.assign(Object.assign({},(we=k==null?void 0:k.styles)===null||we===void 0?void 0:we[se]),_==null?void 0:_[se])},A=d.useMemo(()=>{let se=!1;return d.Children.forEach(p,we=>{(we==null?void 0:we.type)===o$&&(se=!0)}),se},[p]),P=M("card",n),[R,N,D]=rD(P),H=d.createElement(ks,{loading:!0,active:!0,paragraph:{rows:4},title:!1},p),G=g!==void 0,X=Object.assign(Object.assign({},w),{[G?"activeKey":"defaultActiveKey"]:G?g:x,tabBarExtraContent:S});let W;const K=Ic(h),ee=!K||K==="default"?"large":K,U=b?d.createElement(i$,Object.assign({size:ee},X,{className:`${P}-head-tabs`,onChange:F,items:b.map(se=>{var{tab:we}=se,$e=P1(se,["tab"]);return Object.assign({label:we},$e)})})):null;if(c||a||U){const se=te(`${P}-head`,j("header")),we=te(`${P}-head-title`,j("title")),$e=te(`${P}-extra`,j("extra")),ue=Object.assign(Object.assign({},s),B("header"));W=d.createElement("div",{className:se,style:ue},d.createElement("div",{className:`${P}-head-wrapper`},c&&d.createElement("div",{className:we,style:B("title")},c),a&&d.createElement("div",{className:$e,style:B("extra")},a)),U)}const Y=te(`${P}-cover`,j("cover")),J=y?d.createElement("div",{className:Y,style:B("cover")},y):null,re=te(`${P}-body`,j("body")),ce=Object.assign(Object.assign({},l),B("body")),he=d.createElement("div",{className:re,style:ce},u?H:p),xe=te(`${P}-actions`,j("actions")),ie=v!=null&&v.length?d.createElement(iD,{actionClasses:xe,actionStyle:B("actions"),actions:v}):null,de=si(O,["onTabChange"]),ye=te(P,k==null?void 0:k.className,{[`${P}-loading`]:u,[`${P}-bordered`]:f,[`${P}-hoverable`]:C,[`${P}-contain-grid`]:A,[`${P}-contain-tabs`]:b==null?void 0:b.length,[`${P}-${K}`]:K,[`${P}-type-${m}`]:!!m,[`${P}-rtl`]:I==="rtl"},r,i,N,D),be=Object.assign(Object.assign({},k==null?void 0:k.style),o);return R(d.createElement("div",Object.assign({ref:t},de,{className:ye,style:be}),W,J,he,ie))});var aD=function(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 i=0,r=Object.getOwnPropertySymbols(e);i{const{prefixCls:t,className:n,avatar:r,title:i,description:o}=e,a=aD(e,["prefixCls","className","avatar","title","description"]),{getPrefixCls:s}=d.useContext(bt),l=s("card",t),c=te(`${l}-meta`,n),u=r?d.createElement("div",{className:`${l}-meta-avatar`},r):null,f=i?d.createElement("div",{className:`${l}-meta-title`},i):null,h=o?d.createElement("div",{className:`${l}-meta-description`},o):null,m=f||h?d.createElement("div",{className:`${l}-meta-detail`},f,h):null;return d.createElement("div",Object.assign({},a,{className:c}),u,m)},t0=oD;t0.Grid=o$;t0.Meta=sD;const a$=d.createContext({}),lD=e=>{const{componentCls:t}=e;return{[t]:{display:"flex",flexFlow:"row wrap",minWidth:0,"&::before, &::after":{display:"flex"},"&-no-wrap":{flexWrap:"nowrap"},"&-start":{justifyContent:"flex-start"},"&-center":{justifyContent:"center"},"&-end":{justifyContent:"flex-end"},"&-space-between":{justifyContent:"space-between"},"&-space-around":{justifyContent:"space-around"},"&-space-evenly":{justifyContent:"space-evenly"},"&-top":{alignItems:"flex-start"},"&-middle":{alignItems:"center"},"&-bottom":{alignItems:"flex-end"}}}},cD=e=>{const{componentCls:t}=e;return{[t]:{position:"relative",maxWidth:"100%",minHeight:1}}},uD=(e,t)=>{const{prefixCls:n,componentCls:r,gridColumns:i}=e,o={};for(let a=i;a>=0;a--)a===0?(o[`${r}${t}-${a}`]={display:"none"},o[`${r}-push-${a}`]={insetInlineStart:"auto"},o[`${r}-pull-${a}`]={insetInlineEnd:"auto"},o[`${r}${t}-push-${a}`]={insetInlineStart:"auto"},o[`${r}${t}-pull-${a}`]={insetInlineEnd:"auto"},o[`${r}${t}-offset-${a}`]={marginInlineStart:0},o[`${r}${t}-order-${a}`]={order:0}):(o[`${r}${t}-${a}`]=[{"--ant-display":"block",display:"block"},{display:"var(--ant-display)",flex:`0 0 ${a/i*100}%`,maxWidth:`${a/i*100}%`}],o[`${r}${t}-push-${a}`]={insetInlineStart:`${a/i*100}%`},o[`${r}${t}-pull-${a}`]={insetInlineEnd:`${a/i*100}%`},o[`${r}${t}-offset-${a}`]={marginInlineStart:`${a/i*100}%`},o[`${r}${t}-order-${a}`]={order:a});return o[`${r}${t}-flex`]={flex:`var(--${n}${t}-flex)`},o},np=(e,t)=>uD(e,t),dD=(e,t,n)=>({[`@media (min-width: ${Z(t)})`]:Object.assign({},np(e,n))}),fD=()=>({}),hD=()=>({}),gD=Er("Grid",lD,fD),mD=Er("Grid",e=>{const t=An(e,{gridColumns:24}),n={"-sm":t.screenSMMin,"-md":t.screenMDMin,"-lg":t.screenLGMin,"-xl":t.screenXLMin,"-xxl":t.screenXXLMin};return[cD(t),np(t,""),np(t,"-xs"),Object.keys(n).map(r=>dD(t,n[r],r)).reduce((r,i)=>Object.assign(Object.assign({},r),i),{})]},hD);var pD=function(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 i=0,r=Object.getOwnPropertySymbols(e);i{const{getPrefixCls:n,direction:r}=d.useContext(bt),{gutter:i,wrap:o}=d.useContext(a$),{prefixCls:a,span:s,order:l,offset:c,push:u,pull:f,className:h,children:m,flex:y,style:v}=e,b=pD(e,["prefixCls","span","order","offset","push","pull","className","children","flex","style"]),p=n("col",a),[g,x,S]=mD(p),C={};let w={};vD.forEach(O=>{let M={};const I=e[O];typeof I=="number"?M.span=I:typeof I=="object"&&(M=I||{}),delete b[O],w=Object.assign(Object.assign({},w),{[`${p}-${O}-${M.span}`]:M.span!==void 0,[`${p}-${O}-order-${M.order}`]:M.order||M.order===0,[`${p}-${O}-offset-${M.offset}`]:M.offset||M.offset===0,[`${p}-${O}-push-${M.push}`]:M.push||M.push===0,[`${p}-${O}-pull-${M.pull}`]:M.pull||M.pull===0,[`${p}-rtl`]:r==="rtl"}),M.flex&&(w[`${p}-${O}-flex`]=!0,C[`--${p}-${O}-flex`]=M1(M.flex))});const E=te(p,{[`${p}-${s}`]:s!==void 0,[`${p}-order-${l}`]:l,[`${p}-offset-${c}`]:c,[`${p}-push-${u}`]:u,[`${p}-pull-${f}`]:f},h,w,x,S),_={};if(i&&i[0]>0){const O=i[0]/2;_.paddingLeft=O,_.paddingRight=O}return y&&(_.flex=M1(y),o===!1&&!_.minWidth&&(_.minWidth=0)),g(d.createElement("div",Object.assign({},b,{style:Object.assign(Object.assign(Object.assign({},_),v),C),className:E,ref:t}),m))});var yD=function(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 i=0,r=Object.getOwnPropertySymbols(e);i{if(typeof e=="string"&&r(e),typeof e=="object")for(let o=0;o{i()},[JSON.stringify(e),t]),n}const Hd=d.forwardRef((e,t)=>{const{prefixCls:n,justify:r,align:i,className:o,style:a,children:s,gutter:l=0,wrap:c}=e,u=yD(e,["prefixCls","justify","align","className","style","children","gutter","wrap"]),{getPrefixCls:f,direction:h}=d.useContext(bt),[m,y]=d.useState({xs:!0,sm:!0,md:!0,lg:!0,xl:!0,xxl:!0}),[v,b]=d.useState({xs:!1,sm:!1,md:!1,lg:!1,xl:!1,xxl:!1}),p=T1(i,v),g=T1(r,v),x=d.useRef(l),S=IA();d.useEffect(()=>{const P=S.subscribe(R=>{b(R);const N=x.current||0;(!Array.isArray(N)&&typeof N=="object"||Array.isArray(N)&&(typeof N[0]=="object"||typeof N[1]=="object"))&&y(R)});return()=>S.unsubscribe(P)},[]);const C=()=>{const P=[void 0,void 0];return(Array.isArray(l)?l:[l,void 0]).forEach((N,D)=>{if(typeof N=="object")for(let H=0;H0?M[0]/-2:void 0;F&&(k.marginLeft=F,k.marginRight=F);const[j,B]=M;k.rowGap=B;const A=d.useMemo(()=>({gutter:[j,B],wrap:c}),[j,B,c]);return E(d.createElement(a$.Provider,{value:A},d.createElement("div",Object.assign({},u,{className:I,style:Object.assign(Object.assign({},k),a),ref:t}),s)))});var bD={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M890.5 755.3L537.9 269.2c-12.8-17.6-39-17.6-51.7 0L133.5 755.3A8 8 0 00140 768h75c5.1 0 9.9-2.5 12.9-6.6L512 369.8l284.1 391.6c3 4.1 7.8 6.6 12.9 6.6h75c6.5 0 10.3-7.4 6.5-12.7z"}}]},name:"up",theme:"outlined"},xD=function(t,n){return d.createElement(_n,Pe({},t,{ref:n,icon:bD}))},SD=d.forwardRef(xD);function rp(){return typeof BigInt=="function"}function s$(e){return!e&&e!==0&&!Number.isNaN(e)||!String(e).trim()}function ea(e){var t=e.trim(),n=t.startsWith("-");n&&(t=t.slice(1)),t=t.replace(/(\.\d*[^0])0*$/,"$1").replace(/\.0*$/,"").replace(/^0+/,""),t.startsWith(".")&&(t="0".concat(t));var r=t||"0",i=r.split("."),o=i[0]||"0",a=i[1]||"0";o==="0"&&a==="0"&&(n=!1);var s=n?"-":"";return{negative:n,negativeStr:s,trimStr:r,integerStr:o,decimalStr:a,fullStr:"".concat(s).concat(r)}}function n0(e){var t=String(e);return!Number.isNaN(Number(t))&&t.includes("e")}function qo(e){var t=String(e);if(n0(e)){var n=Number(t.slice(t.indexOf("e-")+2)),r=t.match(/\.(\d+)/);return r!=null&&r[1]&&(n+=r[1].length),n}return t.includes(".")&&r0(t)?t.length-t.indexOf(".")-1:0}function Uf(e){var t=String(e);if(n0(e)){if(e>Number.MAX_SAFE_INTEGER)return String(rp()?BigInt(e).toString():Number.MAX_SAFE_INTEGER);if(e0&&arguments[0]!==void 0?arguments[0]:!0;return n?this.isInvalidate()?"":ea("".concat(this.getMark()).concat(this.getIntegerStr(),".").concat(this.getDecimalStr())).fullStr:this.origin}}]),e}(),wD=function(){function e(t){if(hn(this,e),z(this,"origin",""),z(this,"number",void 0),z(this,"empty",void 0),s$(t)){this.empty=!0;return}this.origin=String(t),this.number=Number(t)}return gn(e,[{key:"negate",value:function(){return new e(-this.toNumber())}},{key:"add",value:function(n){if(this.isInvalidate())return new e(n);var r=Number(n);if(Number.isNaN(r))return this;var i=this.number+r;if(i>Number.MAX_SAFE_INTEGER)return new e(Number.MAX_SAFE_INTEGER);if(iNumber.MAX_SAFE_INTEGER)return new e(Number.MAX_SAFE_INTEGER);if(i0&&arguments[0]!==void 0?arguments[0]:!0;return n?this.isInvalidate()?"":Uf(this.number):this.origin}}]),e}();function Kr(e){return rp()?new CD(e):new wD(e)}function id(e,t,n){var r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1;if(e==="")return"";var i=ea(e),o=i.negativeStr,a=i.integerStr,s=i.decimalStr,l="".concat(t).concat(s),c="".concat(o).concat(a);if(n>=0){var u=Number(s[n]);if(u>=5&&!r){var f=Kr(e).add("".concat(o,"0.").concat("0".repeat(n)).concat(10-u));return id(f.toString(),t,n,r)}return n===0?c:"".concat(c).concat(t).concat(s.padEnd(n,"0").slice(0,n))}return l===".0"?c:"".concat(c).concat(l)}function ED(e){return!!(e.addonBefore||e.addonAfter)}function _D(e){return!!(e.prefix||e.suffix||e.allowClear)}function $D(e,t){if(e){e.focus(t);var n=t||{},r=n.cursor;if(r){var i=e.value.length;switch(r){case"start":e.setSelectionRange(0,0);break;case"end":e.setSelectionRange(i,i);break;default:e.setSelectionRange(0,i)}}}}var OD=me.forwardRef(function(e,t){var n,r,i=e.inputElement,o=e.children,a=e.prefixCls,s=e.prefix,l=e.suffix,c=e.addonBefore,u=e.addonAfter,f=e.className,h=e.style,m=e.disabled,y=e.readOnly,v=e.focused,b=e.triggerFocus,p=e.allowClear,g=e.value,x=e.handleReset,S=e.hidden,C=e.classes,w=e.classNames,E=e.dataAttrs,_=e.styles,O=e.components,M=e.onClear,I=o??i,k=(O==null?void 0:O.affixWrapper)||"span",F=(O==null?void 0:O.groupWrapper)||"span",j=(O==null?void 0:O.wrapper)||"span",B=(O==null?void 0:O.groupAddon)||"span",A=d.useRef(null),P=function(ie){var de;(de=A.current)!==null&&de!==void 0&&de.contains(ie.target)&&(b==null||b())},R=_D(e),N=d.cloneElement(I,{value:g,className:te(I.props.className,!R&&(w==null?void 0:w.variant))||null}),D=d.useRef(null);if(me.useImperativeHandle(t,function(){return{nativeElement:D.current||A.current}}),R){var H=null;if(p){var G=!m&&!y&&g,X="".concat(a,"-clear-icon"),W=je(p)==="object"&&p!==null&&p!==void 0&&p.clearIcon?p.clearIcon:"✖";H=me.createElement("span",{onClick:function(ie){x==null||x(ie),M==null||M()},onMouseDown:function(ie){return ie.preventDefault()},className:te(X,z(z({},"".concat(X,"-hidden"),!G),"".concat(X,"-has-suffix"),!!l)),role:"button",tabIndex:-1},W)}var K="".concat(a,"-affix-wrapper"),ee=te(K,z(z(z(z(z({},"".concat(a,"-disabled"),m),"".concat(K,"-disabled"),m),"".concat(K,"-focused"),v),"".concat(K,"-readonly"),y),"".concat(K,"-input-with-clear-btn"),l&&p&&g),C==null?void 0:C.affixWrapper,w==null?void 0:w.affixWrapper,w==null?void 0:w.variant),U=(l||p)&&me.createElement("span",{className:te("".concat(a,"-suffix"),w==null?void 0:w.suffix),style:_==null?void 0:_.suffix},H,l);N=me.createElement(k,Pe({className:ee,style:_==null?void 0:_.affixWrapper,onClick:P},E==null?void 0:E.affixWrapper,{ref:A}),s&&me.createElement("span",{className:te("".concat(a,"-prefix"),w==null?void 0:w.prefix),style:_==null?void 0:_.prefix},s),N,U)}if(ED(e)){var Y="".concat(a,"-group"),J="".concat(Y,"-addon"),re="".concat(Y,"-wrapper"),ce=te("".concat(a,"-wrapper"),Y,C==null?void 0:C.wrapper,w==null?void 0:w.wrapper),he=te(re,z({},"".concat(re,"-disabled"),m),C==null?void 0:C.group,w==null?void 0:w.groupWrapper);N=me.createElement(F,{className:he,ref:D},me.createElement(j,{className:ce},c&&me.createElement(B,{className:J},c),N,u&&me.createElement(B,{className:J},u)))}return me.cloneElement(N,{className:te((n=N.props)===null||n===void 0?void 0:n.className,f)||null,style:V(V({},(r=N.props)===null||r===void 0?void 0:r.style),h),hidden:S})});function PD(e,t){return typeof Proxy<"u"&&e?new Proxy(e,{get:function(r,i){if(t[i])return t[i];var o=r[i];return typeof o=="function"?o.bind(r):o}}):e}function MD(e,t){var n=d.useRef(null);function r(){try{var o=e.selectionStart,a=e.selectionEnd,s=e.value,l=s.substring(0,o),c=s.substring(a);n.current={start:o,end:a,value:s,beforeTxt:l,afterTxt:c}}catch{}}function i(){if(e&&n.current&&t)try{var o=e.value,a=n.current,s=a.beforeTxt,l=a.afterTxt,c=a.start,u=o.length;if(o.startsWith(s))u=s.length;else if(o.endsWith(l))u=o.length-n.current.afterTxt.length;else{var f=s[c-1],h=o.indexOf(f,c-1);h!==-1&&(u=h+1)}e.setSelectionRange(u,u)}catch(m){Nn(!1,"Something warning of cursor restore. Please fire issue about this: ".concat(m.message))}}return[r,i]}var TD=function(){var t=d.useState(!1),n=Q(t,2),r=n[0],i=n[1];return Tn(function(){i(Gv())},[]),r},RD=200,ID=600;function kD(e){var t=e.prefixCls,n=e.upNode,r=e.downNode,i=e.upDisabled,o=e.downDisabled,a=e.onStep,s=d.useRef(),l=d.useRef([]),c=d.useRef();c.current=a;var u=function(){clearTimeout(s.current)},f=function(x,S){x.preventDefault(),u(),c.current(S);function C(){c.current(S),s.current=setTimeout(C,RD)}s.current=setTimeout(C,ID)};d.useEffect(function(){return function(){u(),l.current.forEach(function(g){return Ft.cancel(g)})}},[]);var h=TD();if(h)return null;var m="".concat(t,"-handler"),y=te(m,"".concat(m,"-up"),z({},"".concat(m,"-up-disabled"),i)),v=te(m,"".concat(m,"-down"),z({},"".concat(m,"-down-disabled"),o)),b=function(){return l.current.push(Ft(u))},p={unselectable:"on",role:"button",onMouseUp:b,onMouseLeave:b};return d.createElement("div",{className:"".concat(m,"-wrap")},d.createElement("span",Pe({},p,{onMouseDown:function(x){f(x,!0)},"aria-label":"Increase Value","aria-disabled":i,className:y}),n||d.createElement("span",{unselectable:"on",className:"".concat(t,"-handler-up-inner")})),d.createElement("span",Pe({},p,{onMouseDown:function(x){f(x,!1)},"aria-label":"Decrease Value","aria-disabled":o,className:v}),r||d.createElement("span",{unselectable:"on",className:"".concat(t,"-handler-down-inner")})))}function R1(e){var t=typeof e=="number"?Uf(e):ea(e).fullStr,n=t.includes(".");return n?ea(t.replace(/(\d)\.(\d)/g,"$1$2.")).fullStr:e+"0"}const ND=function(){var e=d.useRef(0),t=function(){Ft.cancel(e.current)};return d.useEffect(function(){return t},[]),function(n){t(),e.current=Ft(function(){n()})}};var FD=["prefixCls","className","style","min","max","step","defaultValue","value","disabled","readOnly","upHandler","downHandler","keyboard","changeOnWheel","controls","classNames","stringMode","parser","formatter","precision","decimalSeparator","onChange","onInput","onPressEnter","onStep","changeOnBlur","domRef"],AD=["disabled","style","prefixCls","value","prefix","suffix","addonBefore","addonAfter","className","classNames"],I1=function(t,n){return t||n.isEmpty()?n.toString():n.toNumber()},k1=function(t){var n=Kr(t);return n.isInvalidate()?null:n},LD=d.forwardRef(function(e,t){var n=e.prefixCls,r=e.className,i=e.style,o=e.min,a=e.max,s=e.step,l=s===void 0?1:s,c=e.defaultValue,u=e.value,f=e.disabled,h=e.readOnly,m=e.upHandler,y=e.downHandler,v=e.keyboard,b=e.changeOnWheel,p=b===void 0?!1:b,g=e.controls,x=g===void 0?!0:g;e.classNames;var S=e.stringMode,C=e.parser,w=e.formatter,E=e.precision,_=e.decimalSeparator,O=e.onChange,M=e.onInput,I=e.onPressEnter,k=e.onStep,F=e.changeOnBlur,j=F===void 0?!0:F,B=e.domRef,A=st(e,FD),P="".concat(n,"-input"),R=d.useRef(null),N=d.useState(!1),D=Q(N,2),H=D[0],G=D[1],X=d.useRef(!1),W=d.useRef(!1),K=d.useRef(!1),ee=d.useState(function(){return Kr(u??c)}),U=Q(ee,2),Y=U[0],J=U[1];function re(Me){u===void 0&&J(Me)}var ce=d.useCallback(function(Me,fe){if(!fe)return E>=0?E:Math.max(qo(Me),qo(l))},[E,l]),he=d.useCallback(function(Me){var fe=String(Me);if(C)return C(fe);var Re=fe;return _&&(Re=Re.replace(_,".")),Re.replace(/[^\w.-]+/g,"")},[C,_]),xe=d.useRef(""),ie=d.useCallback(function(Me,fe){if(w)return w(Me,{userTyping:fe,input:String(xe.current)});var Re=typeof Me=="number"?Uf(Me):Me;if(!fe){var Ie=ce(Re,fe);if(r0(Re)&&(_||Ie>=0)){var ze=_||".";Re=id(Re,ze,Ie)}}return Re},[w,ce,_]),de=d.useState(function(){var Me=c??u;return Y.isInvalidate()&&["string","number"].includes(je(Me))?Number.isNaN(Me)?"":Me:ie(Y.toString(),!1)}),ye=Q(de,2),be=ye[0],se=ye[1];xe.current=be;function we(Me,fe){se(ie(Me.isInvalidate()?Me.toString(!1):Me.toString(!fe),fe))}var $e=d.useMemo(function(){return k1(a)},[a,E]),ue=d.useMemo(function(){return k1(o)},[o,E]),Ne=d.useMemo(function(){return!$e||!Y||Y.isInvalidate()?!1:$e.lessEquals(Y)},[$e,Y]),ae=d.useMemo(function(){return!ue||!Y||Y.isInvalidate()?!1:Y.lessEquals(ue)},[ue,Y]),Ue=MD(R.current,H),Fe=Q(Ue,2),Se=Fe[0],Ve=Fe[1],Be=function(fe){return $e&&!fe.lessEquals($e)?$e:ue&&!ue.lessEquals(fe)?ue:null},De=function(fe){return!Be(fe)},He=function(fe,Re){var Ie=fe,ze=De(Ie)||Ie.isEmpty();if(!Ie.isEmpty()&&!Re&&(Ie=Be(Ie)||Ie,ze=!0),!h&&!f&&ze){var Ee=Ie.toString(),_e=ce(Ee,Re);return _e>=0&&(Ie=Kr(id(Ee,".",_e)),De(Ie)||(Ie=Kr(id(Ee,".",_e,!0)))),Ie.equals(Y)||(re(Ie),O==null||O(Ie.isEmpty()?null:I1(S,Ie)),u===void 0&&we(Ie,Re)),Ie}return Y},We=ND(),ct=function Me(fe){if(Se(),xe.current=fe,se(fe),!W.current){var Re=he(fe),Ie=Kr(Re);Ie.isNaN()||He(Ie,!0)}M==null||M(fe),We(function(){var ze=fe;C||(ze=fe.replace(/。/g,".")),ze!==fe&&Me(ze)})},ht=function(){W.current=!0},Ge=function(){W.current=!1,ct(R.current.value)},Ct=function(fe){ct(fe.target.value)},kt=function(fe){var Re;if(!(fe&&Ne||!fe&&ae)){X.current=!1;var Ie=Kr(K.current?R1(l):l);fe||(Ie=Ie.negate());var ze=(Y||Kr(0)).add(Ie.toString()),Ee=He(ze,!1);k==null||k(I1(S,Ee),{offset:K.current?R1(l):l,type:fe?"up":"down"}),(Re=R.current)===null||Re===void 0||Re.focus()}},Et=function(fe){var Re=Kr(he(be)),Ie;Re.isNaN()?Ie=He(Y,fe):Ie=He(Re,fe),u!==void 0?we(Y,!1):Ie.isNaN()||we(Ie,!1)},gt=function(){X.current=!0},xn=function(fe){var Re=fe.key,Ie=fe.shiftKey;X.current=!0,K.current=Ie,Re==="Enter"&&(W.current||(X.current=!1),Et(!1),I==null||I(fe)),v!==!1&&!W.current&&["Up","ArrowUp","Down","ArrowDown"].includes(Re)&&(kt(Re==="Up"||Re==="ArrowUp"),fe.preventDefault())},vt=function(){X.current=!1,K.current=!1};d.useEffect(function(){if(p&&H){var Me=function(Ie){kt(Ie.deltaY<0),Ie.preventDefault()},fe=R.current;if(fe)return fe.addEventListener("wheel",Me,{passive:!1}),function(){return fe.removeEventListener("wheel",Me)}}});var _t=function(){j&&Et(!1),G(!1),X.current=!1};return os(function(){Y.isInvalidate()||we(Y,!1)},[E,w]),os(function(){var Me=Kr(u);J(Me);var fe=Kr(he(be));(!Me.equals(fe)||!X.current||w)&&we(Me,X.current)},[u]),os(function(){w&&Ve()},[be]),d.createElement("div",{ref:B,className:te(n,r,z(z(z(z(z({},"".concat(n,"-focused"),H),"".concat(n,"-disabled"),f),"".concat(n,"-readonly"),h),"".concat(n,"-not-a-number"),Y.isNaN()),"".concat(n,"-out-of-range"),!Y.isInvalidate()&&!De(Y))),style:i,onFocus:function(){G(!0)},onBlur:_t,onKeyDown:xn,onKeyUp:vt,onCompositionStart:ht,onCompositionEnd:Ge,onBeforeInput:gt},x&&d.createElement(kD,{prefixCls:n,upNode:m,downNode:y,upDisabled:Ne,downDisabled:ae,onStep:kt}),d.createElement("div",{className:"".concat(P,"-wrap")},d.createElement("input",Pe({autoComplete:"off",role:"spinbutton","aria-valuemin":o,"aria-valuemax":a,"aria-valuenow":Y.isInvalidate()?null:Y.toString(),step:l},A,{ref:Si(R,t),className:P,value:be,onChange:Ct,disabled:f,readOnly:h}))))}),DD=d.forwardRef(function(e,t){var n=e.disabled,r=e.style,i=e.prefixCls,o=i===void 0?"rc-input-number":i,a=e.value,s=e.prefix,l=e.suffix,c=e.addonBefore,u=e.addonAfter,f=e.className,h=e.classNames,m=st(e,AD),y=d.useRef(null),v=d.useRef(null),b=d.useRef(null),p=function(x){b.current&&$D(b.current,x)};return d.useImperativeHandle(t,function(){return PD(b.current,{nativeElement:y.current.nativeElement||v.current})}),d.createElement(OD,{className:f,triggerFocus:p,prefixCls:o,value:a,disabled:n,style:r,prefix:s,suffix:l,addonAfter:u,addonBefore:c,classNames:h,components:{affixWrapper:"div",groupWrapper:"div",wrapper:"div",groupAddon:"div"},ref:y},d.createElement(LD,Pe({prefixCls:o,disabled:n,ref:b,domRef:v,className:h==null?void 0:h.input},m)))});const zD=e=>{var t;const n=(t=e.handleVisible)!==null&&t!==void 0?t:"auto";return Object.assign(Object.assign({},B_(e)),{controlWidth:90,handleWidth:e.controlHeightSM-e.lineWidth*2,handleFontSize:e.fontSize/2,handleVisible:n,handleActiveBg:e.colorFillAlter,handleBg:e.colorBgContainer,filledHandleBg:new In(e.colorFillSecondary).onBackground(e.colorBgContainer).toHexString(),handleHoverColor:e.colorPrimary,handleBorderColor:e.colorBorder,handleOpacity:n===!0?1:0})},N1=(e,t)=>{let{componentCls:n,borderRadiusSM:r,borderRadiusLG:i}=e;const o=t==="lg"?i:r;return{[`&-${t}`]:{[`${n}-handler-wrap`]:{borderStartEndRadius:o,borderEndEndRadius:o},[`${n}-handler-up`]:{borderStartEndRadius:o},[`${n}-handler-down`]:{borderEndEndRadius:o}}}},jD=e=>{const{componentCls:t,lineWidth:n,lineType:r,borderRadius:i,inputFontSizeSM:o,inputFontSizeLG:a,controlHeightLG:s,controlHeightSM:l,colorError:c,paddingInlineSM:u,paddingBlockSM:f,paddingBlockLG:h,paddingInlineLG:m,colorTextDescription:y,motionDurationMid:v,handleHoverColor:b,handleOpacity:p,paddingInline:g,paddingBlock:x,handleBg:S,handleActiveBg:C,colorTextDisabled:w,borderRadiusSM:E,borderRadiusLG:_,controlWidth:O,handleBorderColor:M,filledHandleBg:I,lineHeightLG:k,calc:F}=e;return[{[t]:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},Lr(e)),Vf(e)),{display:"inline-block",width:O,margin:0,padding:0,borderRadius:i}),V_(e,{[`${t}-handler-wrap`]:{background:S,[`${t}-handler-down`]:{borderBlockStart:`${Z(n)} ${r} ${M}`}}})),K_(e,{[`${t}-handler-wrap`]:{background:I,[`${t}-handler-down`]:{borderBlockStart:`${Z(n)} ${r} ${M}`}},"&:focus-within":{[`${t}-handler-wrap`]:{background:S}}})),U_(e)),{"&-rtl":{direction:"rtl",[`${t}-input`]:{direction:"rtl"}},"&-lg":{padding:0,fontSize:a,lineHeight:k,borderRadius:_,[`input${t}-input`]:{height:F(s).sub(F(n).mul(2)).equal(),padding:`${Z(h)} ${Z(m)}`}},"&-sm":{padding:0,fontSize:o,borderRadius:E,[`input${t}-input`]:{height:F(l).sub(F(n).mul(2)).equal(),padding:`${Z(f)} ${Z(u)}`}},"&-out-of-range":{[`${t}-input-wrap`]:{input:{color:c}}},"&-group":Object.assign(Object.assign(Object.assign({},Lr(e)),Z_(e)),{"&-wrapper":Object.assign(Object.assign(Object.assign({display:"inline-block",textAlign:"start",verticalAlign:"top",[`${t}-affix-wrapper`]:{width:"100%"},"&-lg":{[`${t}-group-addon`]:{borderRadius:_,fontSize:e.fontSizeLG}},"&-sm":{[`${t}-group-addon`]:{borderRadius:E}}},W_(e)),q_(e)),{[`&:not(${t}-compact-first-item):not(${t}-compact-last-item)${t}-compact-item`]:{[`${t}, ${t}-group-addon`]:{borderRadius:0}},[`&:not(${t}-compact-last-item)${t}-compact-first-item`]:{[`${t}, ${t}-group-addon`]:{borderStartEndRadius:0,borderEndEndRadius:0}},[`&:not(${t}-compact-first-item)${t}-compact-last-item`]:{[`${t}, ${t}-group-addon`]:{borderStartStartRadius:0,borderEndStartRadius:0}}})}),[`&-disabled ${t}-input`]:{cursor:"not-allowed"},[t]:{"&-input":Object.assign(Object.assign(Object.assign(Object.assign({},Lr(e)),{width:"100%",padding:`${Z(x)} ${Z(g)}`,textAlign:"start",backgroundColor:"transparent",border:0,borderRadius:i,outline:0,transition:`all ${v} linear`,appearance:"textfield",fontSize:"inherit"}),X_(e.colorTextPlaceholder)),{'&[type="number"]::-webkit-inner-spin-button, &[type="number"]::-webkit-outer-spin-button':{margin:0,webkitAppearance:"none",appearance:"none"}})},[`&:hover ${t}-handler-wrap, &-focused ${t}-handler-wrap`]:{width:e.handleWidth,opacity:1}})},{[t]:Object.assign(Object.assign(Object.assign({[`${t}-handler-wrap`]:{position:"absolute",insetBlockStart:0,insetInlineEnd:0,width:0,opacity:p,height:"100%",borderStartStartRadius:0,borderStartEndRadius:i,borderEndEndRadius:i,borderEndStartRadius:0,display:"flex",flexDirection:"column",alignItems:"stretch",transition:`all ${v}`,overflow:"hidden",[`${t}-handler`]:{display:"flex",alignItems:"center",justifyContent:"center",flex:"auto",height:"40%",[` + `,transition:`all ${e.motionDurationMid}`,"&-hoverable:hover":{position:"relative",zIndex:1,boxShadow:r}}},Y5=e=>{const{componentCls:t,iconCls:n,actionsLiMargin:r,cardActionsIconSize:i,colorBorderSecondary:o,actionsBg:a}=e;return Object.assign(Object.assign({margin:0,padding:0,listStyle:"none",background:a,borderTop:`${Z(e.lineWidth)} ${e.lineType} ${o}`,display:"flex",borderRadius:`0 0 ${Z(e.borderRadiusLG)} ${Z(e.borderRadiusLG)}`},Mc()),{"& > li":{margin:r,color:e.colorTextDescription,textAlign:"center","> span":{position:"relative",display:"block",minWidth:e.calc(e.cardActionsIconSize).mul(2).equal(),fontSize:e.fontSize,lineHeight:e.lineHeight,cursor:"pointer","&:hover":{color:e.colorPrimary,transition:`color ${e.motionDurationMid}`},[`a:not(${t}-btn), > ${n}`]:{display:"inline-block",width:"100%",color:e.colorTextDescription,lineHeight:Z(e.fontHeight),transition:`color ${e.motionDurationMid}`,"&:hover":{color:e.colorPrimary}},[`> ${n}`]:{fontSize:i,lineHeight:Z(e.calc(i).mul(e.lineHeight).equal())}},"&:not(:last-child)":{borderInlineEnd:`${Z(e.lineWidth)} ${e.lineType} ${o}`}}})},Q5=e=>Object.assign(Object.assign({margin:`${Z(e.calc(e.marginXXS).mul(-1).equal())} 0`,display:"flex"},Mc()),{"&-avatar":{paddingInlineEnd:e.padding},"&-detail":{overflow:"hidden",flex:1,"> div:not(:last-child)":{marginBottom:e.marginXS}},"&-title":Object.assign({color:e.colorTextHeading,fontWeight:e.fontWeightStrong,fontSize:e.fontSizeLG},Tv),"&-description":{color:e.colorTextDescription}}),Z5=e=>{const{componentCls:t,cardPaddingBase:n,colorFillAlter:r}=e;return{[`${t}-head`]:{padding:`0 ${Z(n)}`,background:r,"&-title":{fontSize:e.fontSize}},[`${t}-body`]:{padding:`${Z(e.padding)} ${Z(n)}`}}},J5=e=>{const{componentCls:t}=e;return{overflow:"hidden",[`${t}-body`]:{userSelect:"none"}}},eD=e=>{const{componentCls:t,cardShadow:n,cardHeadPadding:r,colorBorderSecondary:i,boxShadowTertiary:o,cardPaddingBase:a,extraColor:s}=e;return{[t]:Object.assign(Object.assign({},Lr(e)),{position:"relative",background:e.colorBgContainer,borderRadius:e.borderRadiusLG,[`&:not(${t}-bordered)`]:{boxShadow:o},[`${t}-head`]:q5(e),[`${t}-extra`]:{marginInlineStart:"auto",color:s,fontWeight:"normal",fontSize:e.fontSize},[`${t}-body`]:Object.assign({padding:a,borderRadius:`0 0 ${Z(e.borderRadiusLG)} ${Z(e.borderRadiusLG)}`},Mc()),[`${t}-grid`]:X5(e),[`${t}-cover`]:{"> *":{display:"block",width:"100%",borderRadius:`${Z(e.borderRadiusLG)} ${Z(e.borderRadiusLG)} 0 0`}},[`${t}-actions`]:Y5(e),[`${t}-meta`]:Q5(e)}),[`${t}-bordered`]:{border:`${Z(e.lineWidth)} ${e.lineType} ${i}`,[`${t}-cover`]:{marginTop:-1,marginInlineStart:-1,marginInlineEnd:-1}},[`${t}-hoverable`]:{cursor:"pointer",transition:`box-shadow ${e.motionDurationMid}, border-color ${e.motionDurationMid}`,"&:hover":{borderColor:"transparent",boxShadow:n}},[`${t}-contain-grid`]:{borderRadius:`${Z(e.borderRadiusLG)} ${Z(e.borderRadiusLG)} 0 0 `,[`${t}-body`]:{display:"flex",flexWrap:"wrap"},[`&:not(${t}-loading) ${t}-body`]:{marginBlockStart:e.calc(e.lineWidth).mul(-1).equal(),marginInlineStart:e.calc(e.lineWidth).mul(-1).equal(),padding:0}},[`${t}-contain-tabs`]:{[`> div${t}-head`]:{minHeight:0,[`${t}-head-title, ${t}-extra`]:{paddingTop:r}}},[`${t}-type-inner`]:Z5(e),[`${t}-loading`]:J5(e),[`${t}-rtl`]:{direction:"rtl"}}},tD=e=>{const{componentCls:t,cardPaddingSM:n,headerHeightSM:r,headerFontSizeSM:i}=e;return{[`${t}-small`]:{[`> ${t}-head`]:{minHeight:r,padding:`0 ${Z(n)}`,fontSize:i,[`> ${t}-head-wrapper`]:{[`> ${t}-extra`]:{fontSize:e.fontSize}}},[`> ${t}-body`]:{padding:n}},[`${t}-small${t}-contain-tabs`]:{[`> ${t}-head`]:{[`${t}-head-title, ${t}-extra`]:{paddingTop:0,display:"flex",alignItems:"center"}}}}},nD=e=>({headerBg:"transparent",headerFontSize:e.fontSizeLG,headerFontSizeSM:e.fontSize,headerHeight:e.fontSizeLG*e.lineHeightLG+e.padding*2,headerHeightSM:e.fontSize*e.lineHeight+e.paddingXS*2,actionsBg:e.colorBgContainer,actionsLiMargin:`${e.paddingSM}px 0`,tabsMarginBottom:-e.padding-e.lineWidth,extraColor:e.colorText}),rD=Er("Card",e=>{const t=An(e,{cardShadow:e.boxShadowCard,cardHeadPadding:e.padding,cardPaddingBase:e.paddingLG,cardActionsIconSize:e.fontSize,cardPaddingSM:12});return[eD(t),tD(t)]},nD);var P1=function(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 i=0,r=Object.getOwnPropertySymbols(e);i{const{actionClasses:t,actions:n=[],actionStyle:r}=e;return d.createElement("ul",{className:t,style:r},n.map((i,o)=>{const a=`action-${o}`;return d.createElement("li",{style:{width:`${100/n.length}%`},key:a},d.createElement("span",null,i))}))},oD=d.forwardRef((e,t)=>{const{prefixCls:n,className:r,rootClassName:i,style:o,extra:a,headStyle:s={},bodyStyle:l={},title:c,loading:u,bordered:f=!0,size:h,type:m,cover:y,actions:v,tabList:b,children:p,activeTabKey:g,defaultActiveTabKey:x,tabBarExtraContent:S,hoverable:C,tabProps:w={},classNames:E,styles:_}=e,O=P1(e,["prefixCls","className","rootClassName","style","extra","headStyle","bodyStyle","title","loading","bordered","size","type","cover","actions","tabList","children","activeTabKey","defaultActiveTabKey","tabBarExtraContent","hoverable","tabProps","classNames","styles"]),{getPrefixCls:M,direction:I,card:k}=d.useContext(bt),F=se=>{var we;(we=e.onTabChange)===null||we===void 0||we.call(e,se)},j=se=>{var we;return te((we=k==null?void 0:k.classNames)===null||we===void 0?void 0:we[se],E==null?void 0:E[se])},B=se=>{var we;return Object.assign(Object.assign({},(we=k==null?void 0:k.styles)===null||we===void 0?void 0:we[se]),_==null?void 0:_[se])},A=d.useMemo(()=>{let se=!1;return d.Children.forEach(p,we=>{(we==null?void 0:we.type)===o$&&(se=!0)}),se},[p]),P=M("card",n),[R,N,D]=rD(P),H=d.createElement(ks,{loading:!0,active:!0,paragraph:{rows:4},title:!1},p),G=g!==void 0,X=Object.assign(Object.assign({},w),{[G?"activeKey":"defaultActiveKey"]:G?g:x,tabBarExtraContent:S});let W;const K=Ic(h),ee=!K||K==="default"?"large":K,U=b?d.createElement(i$,Object.assign({size:ee},X,{className:`${P}-head-tabs`,onChange:F,items:b.map(se=>{var{tab:we}=se,$e=P1(se,["tab"]);return Object.assign({label:we},$e)})})):null;if(c||a||U){const se=te(`${P}-head`,j("header")),we=te(`${P}-head-title`,j("title")),$e=te(`${P}-extra`,j("extra")),ue=Object.assign(Object.assign({},s),B("header"));W=d.createElement("div",{className:se,style:ue},d.createElement("div",{className:`${P}-head-wrapper`},c&&d.createElement("div",{className:we,style:B("title")},c),a&&d.createElement("div",{className:$e,style:B("extra")},a)),U)}const Y=te(`${P}-cover`,j("cover")),J=y?d.createElement("div",{className:Y,style:B("cover")},y):null,re=te(`${P}-body`,j("body")),ce=Object.assign(Object.assign({},l),B("body")),he=d.createElement("div",{className:re,style:ce},u?H:p),Se=te(`${P}-actions`,j("actions")),ie=v!=null&&v.length?d.createElement(iD,{actionClasses:Se,actionStyle:B("actions"),actions:v}):null,de=si(O,["onTabChange"]),ye=te(P,k==null?void 0:k.className,{[`${P}-loading`]:u,[`${P}-bordered`]:f,[`${P}-hoverable`]:C,[`${P}-contain-grid`]:A,[`${P}-contain-tabs`]:b==null?void 0:b.length,[`${P}-${K}`]:K,[`${P}-type-${m}`]:!!m,[`${P}-rtl`]:I==="rtl"},r,i,N,D),be=Object.assign(Object.assign({},k==null?void 0:k.style),o);return R(d.createElement("div",Object.assign({ref:t},de,{className:ye,style:be}),W,J,he,ie))});var aD=function(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 i=0,r=Object.getOwnPropertySymbols(e);i{const{prefixCls:t,className:n,avatar:r,title:i,description:o}=e,a=aD(e,["prefixCls","className","avatar","title","description"]),{getPrefixCls:s}=d.useContext(bt),l=s("card",t),c=te(`${l}-meta`,n),u=r?d.createElement("div",{className:`${l}-meta-avatar`},r):null,f=i?d.createElement("div",{className:`${l}-meta-title`},i):null,h=o?d.createElement("div",{className:`${l}-meta-description`},o):null,m=f||h?d.createElement("div",{className:`${l}-meta-detail`},f,h):null;return d.createElement("div",Object.assign({},a,{className:c}),u,m)},t0=oD;t0.Grid=o$;t0.Meta=sD;const a$=d.createContext({}),lD=e=>{const{componentCls:t}=e;return{[t]:{display:"flex",flexFlow:"row wrap",minWidth:0,"&::before, &::after":{display:"flex"},"&-no-wrap":{flexWrap:"nowrap"},"&-start":{justifyContent:"flex-start"},"&-center":{justifyContent:"center"},"&-end":{justifyContent:"flex-end"},"&-space-between":{justifyContent:"space-between"},"&-space-around":{justifyContent:"space-around"},"&-space-evenly":{justifyContent:"space-evenly"},"&-top":{alignItems:"flex-start"},"&-middle":{alignItems:"center"},"&-bottom":{alignItems:"flex-end"}}}},cD=e=>{const{componentCls:t}=e;return{[t]:{position:"relative",maxWidth:"100%",minHeight:1}}},uD=(e,t)=>{const{prefixCls:n,componentCls:r,gridColumns:i}=e,o={};for(let a=i;a>=0;a--)a===0?(o[`${r}${t}-${a}`]={display:"none"},o[`${r}-push-${a}`]={insetInlineStart:"auto"},o[`${r}-pull-${a}`]={insetInlineEnd:"auto"},o[`${r}${t}-push-${a}`]={insetInlineStart:"auto"},o[`${r}${t}-pull-${a}`]={insetInlineEnd:"auto"},o[`${r}${t}-offset-${a}`]={marginInlineStart:0},o[`${r}${t}-order-${a}`]={order:0}):(o[`${r}${t}-${a}`]=[{"--ant-display":"block",display:"block"},{display:"var(--ant-display)",flex:`0 0 ${a/i*100}%`,maxWidth:`${a/i*100}%`}],o[`${r}${t}-push-${a}`]={insetInlineStart:`${a/i*100}%`},o[`${r}${t}-pull-${a}`]={insetInlineEnd:`${a/i*100}%`},o[`${r}${t}-offset-${a}`]={marginInlineStart:`${a/i*100}%`},o[`${r}${t}-order-${a}`]={order:a});return o[`${r}${t}-flex`]={flex:`var(--${n}${t}-flex)`},o},tp=(e,t)=>uD(e,t),dD=(e,t,n)=>({[`@media (min-width: ${Z(t)})`]:Object.assign({},tp(e,n))}),fD=()=>({}),hD=()=>({}),gD=Er("Grid",lD,fD),mD=Er("Grid",e=>{const t=An(e,{gridColumns:24}),n={"-sm":t.screenSMMin,"-md":t.screenMDMin,"-lg":t.screenLGMin,"-xl":t.screenXLMin,"-xxl":t.screenXXLMin};return[cD(t),tp(t,""),tp(t,"-xs"),Object.keys(n).map(r=>dD(t,n[r],r)).reduce((r,i)=>Object.assign(Object.assign({},r),i),{})]},hD);var pD=function(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 i=0,r=Object.getOwnPropertySymbols(e);i{const{getPrefixCls:n,direction:r}=d.useContext(bt),{gutter:i,wrap:o}=d.useContext(a$),{prefixCls:a,span:s,order:l,offset:c,push:u,pull:f,className:h,children:m,flex:y,style:v}=e,b=pD(e,["prefixCls","span","order","offset","push","pull","className","children","flex","style"]),p=n("col",a),[g,x,S]=mD(p),C={};let w={};vD.forEach(O=>{let M={};const I=e[O];typeof I=="number"?M.span=I:typeof I=="object"&&(M=I||{}),delete b[O],w=Object.assign(Object.assign({},w),{[`${p}-${O}-${M.span}`]:M.span!==void 0,[`${p}-${O}-order-${M.order}`]:M.order||M.order===0,[`${p}-${O}-offset-${M.offset}`]:M.offset||M.offset===0,[`${p}-${O}-push-${M.push}`]:M.push||M.push===0,[`${p}-${O}-pull-${M.pull}`]:M.pull||M.pull===0,[`${p}-rtl`]:r==="rtl"}),M.flex&&(w[`${p}-${O}-flex`]=!0,C[`--${p}-${O}-flex`]=M1(M.flex))});const E=te(p,{[`${p}-${s}`]:s!==void 0,[`${p}-order-${l}`]:l,[`${p}-offset-${c}`]:c,[`${p}-push-${u}`]:u,[`${p}-pull-${f}`]:f},h,w,x,S),_={};if(i&&i[0]>0){const O=i[0]/2;_.paddingLeft=O,_.paddingRight=O}return y&&(_.flex=M1(y),o===!1&&!_.minWidth&&(_.minWidth=0)),g(d.createElement("div",Object.assign({},b,{style:Object.assign(Object.assign(Object.assign({},_),v),C),className:E,ref:t}),m))});var yD=function(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 i=0,r=Object.getOwnPropertySymbols(e);i{if(typeof e=="string"&&r(e),typeof e=="object")for(let o=0;o{i()},[JSON.stringify(e),t]),n}const mc=d.forwardRef((e,t)=>{const{prefixCls:n,justify:r,align:i,className:o,style:a,children:s,gutter:l=0,wrap:c}=e,u=yD(e,["prefixCls","justify","align","className","style","children","gutter","wrap"]),{getPrefixCls:f,direction:h}=d.useContext(bt),[m,y]=d.useState({xs:!0,sm:!0,md:!0,lg:!0,xl:!0,xxl:!0}),[v,b]=d.useState({xs:!1,sm:!1,md:!1,lg:!1,xl:!1,xxl:!1}),p=T1(i,v),g=T1(r,v),x=d.useRef(l),S=IA();d.useEffect(()=>{const P=S.subscribe(R=>{b(R);const N=x.current||0;(!Array.isArray(N)&&typeof N=="object"||Array.isArray(N)&&(typeof N[0]=="object"||typeof N[1]=="object"))&&y(R)});return()=>S.unsubscribe(P)},[]);const C=()=>{const P=[void 0,void 0];return(Array.isArray(l)?l:[l,void 0]).forEach((N,D)=>{if(typeof N=="object")for(let H=0;H0?M[0]/-2:void 0;F&&(k.marginLeft=F,k.marginRight=F);const[j,B]=M;k.rowGap=B;const A=d.useMemo(()=>({gutter:[j,B],wrap:c}),[j,B,c]);return E(d.createElement(a$.Provider,{value:A},d.createElement("div",Object.assign({},u,{className:I,style:Object.assign(Object.assign({},k),a),ref:t}),s)))});var bD={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M890.5 755.3L537.9 269.2c-12.8-17.6-39-17.6-51.7 0L133.5 755.3A8 8 0 00140 768h75c5.1 0 9.9-2.5 12.9-6.6L512 369.8l284.1 391.6c3 4.1 7.8 6.6 12.9 6.6h75c6.5 0 10.3-7.4 6.5-12.7z"}}]},name:"up",theme:"outlined"},xD=function(t,n){return d.createElement(_n,Pe({},t,{ref:n,icon:bD}))},SD=d.forwardRef(xD);function np(){return typeof BigInt=="function"}function s$(e){return!e&&e!==0&&!Number.isNaN(e)||!String(e).trim()}function ea(e){var t=e.trim(),n=t.startsWith("-");n&&(t=t.slice(1)),t=t.replace(/(\.\d*[^0])0*$/,"$1").replace(/\.0*$/,"").replace(/^0+/,""),t.startsWith(".")&&(t="0".concat(t));var r=t||"0",i=r.split("."),o=i[0]||"0",a=i[1]||"0";o==="0"&&a==="0"&&(n=!1);var s=n?"-":"";return{negative:n,negativeStr:s,trimStr:r,integerStr:o,decimalStr:a,fullStr:"".concat(s).concat(r)}}function n0(e){var t=String(e);return!Number.isNaN(Number(t))&&t.includes("e")}function qo(e){var t=String(e);if(n0(e)){var n=Number(t.slice(t.indexOf("e-")+2)),r=t.match(/\.(\d+)/);return r!=null&&r[1]&&(n+=r[1].length),n}return t.includes(".")&&r0(t)?t.length-t.indexOf(".")-1:0}function Wf(e){var t=String(e);if(n0(e)){if(e>Number.MAX_SAFE_INTEGER)return String(np()?BigInt(e).toString():Number.MAX_SAFE_INTEGER);if(e0&&arguments[0]!==void 0?arguments[0]:!0;return n?this.isInvalidate()?"":ea("".concat(this.getMark()).concat(this.getIntegerStr(),".").concat(this.getDecimalStr())).fullStr:this.origin}}]),e}(),wD=function(){function e(t){if(hn(this,e),z(this,"origin",""),z(this,"number",void 0),z(this,"empty",void 0),s$(t)){this.empty=!0;return}this.origin=String(t),this.number=Number(t)}return gn(e,[{key:"negate",value:function(){return new e(-this.toNumber())}},{key:"add",value:function(n){if(this.isInvalidate())return new e(n);var r=Number(n);if(Number.isNaN(r))return this;var i=this.number+r;if(i>Number.MAX_SAFE_INTEGER)return new e(Number.MAX_SAFE_INTEGER);if(iNumber.MAX_SAFE_INTEGER)return new e(Number.MAX_SAFE_INTEGER);if(i0&&arguments[0]!==void 0?arguments[0]:!0;return n?this.isInvalidate()?"":Wf(this.number):this.origin}}]),e}();function Kr(e){return np()?new CD(e):new wD(e)}function id(e,t,n){var r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1;if(e==="")return"";var i=ea(e),o=i.negativeStr,a=i.integerStr,s=i.decimalStr,l="".concat(t).concat(s),c="".concat(o).concat(a);if(n>=0){var u=Number(s[n]);if(u>=5&&!r){var f=Kr(e).add("".concat(o,"0.").concat("0".repeat(n)).concat(10-u));return id(f.toString(),t,n,r)}return n===0?c:"".concat(c).concat(t).concat(s.padEnd(n,"0").slice(0,n))}return l===".0"?c:"".concat(c).concat(l)}function ED(e){return!!(e.addonBefore||e.addonAfter)}function _D(e){return!!(e.prefix||e.suffix||e.allowClear)}function $D(e,t){if(e){e.focus(t);var n=t||{},r=n.cursor;if(r){var i=e.value.length;switch(r){case"start":e.setSelectionRange(0,0);break;case"end":e.setSelectionRange(i,i);break;default:e.setSelectionRange(0,i)}}}}var OD=me.forwardRef(function(e,t){var n,r,i=e.inputElement,o=e.children,a=e.prefixCls,s=e.prefix,l=e.suffix,c=e.addonBefore,u=e.addonAfter,f=e.className,h=e.style,m=e.disabled,y=e.readOnly,v=e.focused,b=e.triggerFocus,p=e.allowClear,g=e.value,x=e.handleReset,S=e.hidden,C=e.classes,w=e.classNames,E=e.dataAttrs,_=e.styles,O=e.components,M=e.onClear,I=o??i,k=(O==null?void 0:O.affixWrapper)||"span",F=(O==null?void 0:O.groupWrapper)||"span",j=(O==null?void 0:O.wrapper)||"span",B=(O==null?void 0:O.groupAddon)||"span",A=d.useRef(null),P=function(ie){var de;(de=A.current)!==null&&de!==void 0&&de.contains(ie.target)&&(b==null||b())},R=_D(e),N=d.cloneElement(I,{value:g,className:te(I.props.className,!R&&(w==null?void 0:w.variant))||null}),D=d.useRef(null);if(me.useImperativeHandle(t,function(){return{nativeElement:D.current||A.current}}),R){var H=null;if(p){var G=!m&&!y&&g,X="".concat(a,"-clear-icon"),W=je(p)==="object"&&p!==null&&p!==void 0&&p.clearIcon?p.clearIcon:"✖";H=me.createElement("span",{onClick:function(ie){x==null||x(ie),M==null||M()},onMouseDown:function(ie){return ie.preventDefault()},className:te(X,z(z({},"".concat(X,"-hidden"),!G),"".concat(X,"-has-suffix"),!!l)),role:"button",tabIndex:-1},W)}var K="".concat(a,"-affix-wrapper"),ee=te(K,z(z(z(z(z({},"".concat(a,"-disabled"),m),"".concat(K,"-disabled"),m),"".concat(K,"-focused"),v),"".concat(K,"-readonly"),y),"".concat(K,"-input-with-clear-btn"),l&&p&&g),C==null?void 0:C.affixWrapper,w==null?void 0:w.affixWrapper,w==null?void 0:w.variant),U=(l||p)&&me.createElement("span",{className:te("".concat(a,"-suffix"),w==null?void 0:w.suffix),style:_==null?void 0:_.suffix},H,l);N=me.createElement(k,Pe({className:ee,style:_==null?void 0:_.affixWrapper,onClick:P},E==null?void 0:E.affixWrapper,{ref:A}),s&&me.createElement("span",{className:te("".concat(a,"-prefix"),w==null?void 0:w.prefix),style:_==null?void 0:_.prefix},s),N,U)}if(ED(e)){var Y="".concat(a,"-group"),J="".concat(Y,"-addon"),re="".concat(Y,"-wrapper"),ce=te("".concat(a,"-wrapper"),Y,C==null?void 0:C.wrapper,w==null?void 0:w.wrapper),he=te(re,z({},"".concat(re,"-disabled"),m),C==null?void 0:C.group,w==null?void 0:w.groupWrapper);N=me.createElement(F,{className:he,ref:D},me.createElement(j,{className:ce},c&&me.createElement(B,{className:J},c),N,u&&me.createElement(B,{className:J},u)))}return me.cloneElement(N,{className:te((n=N.props)===null||n===void 0?void 0:n.className,f)||null,style:V(V({},(r=N.props)===null||r===void 0?void 0:r.style),h),hidden:S})});function PD(e,t){return typeof Proxy<"u"&&e?new Proxy(e,{get:function(r,i){if(t[i])return t[i];var o=r[i];return typeof o=="function"?o.bind(r):o}}):e}function MD(e,t){var n=d.useRef(null);function r(){try{var o=e.selectionStart,a=e.selectionEnd,s=e.value,l=s.substring(0,o),c=s.substring(a);n.current={start:o,end:a,value:s,beforeTxt:l,afterTxt:c}}catch{}}function i(){if(e&&n.current&&t)try{var o=e.value,a=n.current,s=a.beforeTxt,l=a.afterTxt,c=a.start,u=o.length;if(o.startsWith(s))u=s.length;else if(o.endsWith(l))u=o.length-n.current.afterTxt.length;else{var f=s[c-1],h=o.indexOf(f,c-1);h!==-1&&(u=h+1)}e.setSelectionRange(u,u)}catch(m){Nn(!1,"Something warning of cursor restore. Please fire issue about this: ".concat(m.message))}}return[r,i]}var TD=function(){var t=d.useState(!1),n=Q(t,2),r=n[0],i=n[1];return Tn(function(){i(Gv())},[]),r},RD=200,ID=600;function kD(e){var t=e.prefixCls,n=e.upNode,r=e.downNode,i=e.upDisabled,o=e.downDisabled,a=e.onStep,s=d.useRef(),l=d.useRef([]),c=d.useRef();c.current=a;var u=function(){clearTimeout(s.current)},f=function(x,S){x.preventDefault(),u(),c.current(S);function C(){c.current(S),s.current=setTimeout(C,RD)}s.current=setTimeout(C,ID)};d.useEffect(function(){return function(){u(),l.current.forEach(function(g){return Ft.cancel(g)})}},[]);var h=TD();if(h)return null;var m="".concat(t,"-handler"),y=te(m,"".concat(m,"-up"),z({},"".concat(m,"-up-disabled"),i)),v=te(m,"".concat(m,"-down"),z({},"".concat(m,"-down-disabled"),o)),b=function(){return l.current.push(Ft(u))},p={unselectable:"on",role:"button",onMouseUp:b,onMouseLeave:b};return d.createElement("div",{className:"".concat(m,"-wrap")},d.createElement("span",Pe({},p,{onMouseDown:function(x){f(x,!0)},"aria-label":"Increase Value","aria-disabled":i,className:y}),n||d.createElement("span",{unselectable:"on",className:"".concat(t,"-handler-up-inner")})),d.createElement("span",Pe({},p,{onMouseDown:function(x){f(x,!1)},"aria-label":"Decrease Value","aria-disabled":o,className:v}),r||d.createElement("span",{unselectable:"on",className:"".concat(t,"-handler-down-inner")})))}function R1(e){var t=typeof e=="number"?Wf(e):ea(e).fullStr,n=t.includes(".");return n?ea(t.replace(/(\d)\.(\d)/g,"$1$2.")).fullStr:e+"0"}const ND=function(){var e=d.useRef(0),t=function(){Ft.cancel(e.current)};return d.useEffect(function(){return t},[]),function(n){t(),e.current=Ft(function(){n()})}};var FD=["prefixCls","className","style","min","max","step","defaultValue","value","disabled","readOnly","upHandler","downHandler","keyboard","changeOnWheel","controls","classNames","stringMode","parser","formatter","precision","decimalSeparator","onChange","onInput","onPressEnter","onStep","changeOnBlur","domRef"],AD=["disabled","style","prefixCls","value","prefix","suffix","addonBefore","addonAfter","className","classNames"],I1=function(t,n){return t||n.isEmpty()?n.toString():n.toNumber()},k1=function(t){var n=Kr(t);return n.isInvalidate()?null:n},LD=d.forwardRef(function(e,t){var n=e.prefixCls,r=e.className,i=e.style,o=e.min,a=e.max,s=e.step,l=s===void 0?1:s,c=e.defaultValue,u=e.value,f=e.disabled,h=e.readOnly,m=e.upHandler,y=e.downHandler,v=e.keyboard,b=e.changeOnWheel,p=b===void 0?!1:b,g=e.controls,x=g===void 0?!0:g;e.classNames;var S=e.stringMode,C=e.parser,w=e.formatter,E=e.precision,_=e.decimalSeparator,O=e.onChange,M=e.onInput,I=e.onPressEnter,k=e.onStep,F=e.changeOnBlur,j=F===void 0?!0:F,B=e.domRef,A=st(e,FD),P="".concat(n,"-input"),R=d.useRef(null),N=d.useState(!1),D=Q(N,2),H=D[0],G=D[1],X=d.useRef(!1),W=d.useRef(!1),K=d.useRef(!1),ee=d.useState(function(){return Kr(u??c)}),U=Q(ee,2),Y=U[0],J=U[1];function re(Me){u===void 0&&J(Me)}var ce=d.useCallback(function(Me,fe){if(!fe)return E>=0?E:Math.max(qo(Me),qo(l))},[E,l]),he=d.useCallback(function(Me){var fe=String(Me);if(C)return C(fe);var Re=fe;return _&&(Re=Re.replace(_,".")),Re.replace(/[^\w.-]+/g,"")},[C,_]),Se=d.useRef(""),ie=d.useCallback(function(Me,fe){if(w)return w(Me,{userTyping:fe,input:String(Se.current)});var Re=typeof Me=="number"?Wf(Me):Me;if(!fe){var Ie=ce(Re,fe);if(r0(Re)&&(_||Ie>=0)){var ze=_||".";Re=id(Re,ze,Ie)}}return Re},[w,ce,_]),de=d.useState(function(){var Me=c??u;return Y.isInvalidate()&&["string","number"].includes(je(Me))?Number.isNaN(Me)?"":Me:ie(Y.toString(),!1)}),ye=Q(de,2),be=ye[0],se=ye[1];Se.current=be;function we(Me,fe){se(ie(Me.isInvalidate()?Me.toString(!1):Me.toString(!fe),fe))}var $e=d.useMemo(function(){return k1(a)},[a,E]),ue=d.useMemo(function(){return k1(o)},[o,E]),Ne=d.useMemo(function(){return!$e||!Y||Y.isInvalidate()?!1:$e.lessEquals(Y)},[$e,Y]),ae=d.useMemo(function(){return!ue||!Y||Y.isInvalidate()?!1:Y.lessEquals(ue)},[ue,Y]),Ue=MD(R.current,H),Fe=Q(Ue,2),Ce=Fe[0],Ve=Fe[1],Be=function(fe){return $e&&!fe.lessEquals($e)?$e:ue&&!ue.lessEquals(fe)?ue:null},De=function(fe){return!Be(fe)},He=function(fe,Re){var Ie=fe,ze=De(Ie)||Ie.isEmpty();if(!Ie.isEmpty()&&!Re&&(Ie=Be(Ie)||Ie,ze=!0),!h&&!f&&ze){var Ee=Ie.toString(),_e=ce(Ee,Re);return _e>=0&&(Ie=Kr(id(Ee,".",_e)),De(Ie)||(Ie=Kr(id(Ee,".",_e,!0)))),Ie.equals(Y)||(re(Ie),O==null||O(Ie.isEmpty()?null:I1(S,Ie)),u===void 0&&we(Ie,Re)),Ie}return Y},We=ND(),ct=function Me(fe){if(Ce(),Se.current=fe,se(fe),!W.current){var Re=he(fe),Ie=Kr(Re);Ie.isNaN()||He(Ie,!0)}M==null||M(fe),We(function(){var ze=fe;C||(ze=fe.replace(/。/g,".")),ze!==fe&&Me(ze)})},ht=function(){W.current=!0},Ge=function(){W.current=!1,ct(R.current.value)},Ct=function(fe){ct(fe.target.value)},kt=function(fe){var Re;if(!(fe&&Ne||!fe&&ae)){X.current=!1;var Ie=Kr(K.current?R1(l):l);fe||(Ie=Ie.negate());var ze=(Y||Kr(0)).add(Ie.toString()),Ee=He(ze,!1);k==null||k(I1(S,Ee),{offset:K.current?R1(l):l,type:fe?"up":"down"}),(Re=R.current)===null||Re===void 0||Re.focus()}},Et=function(fe){var Re=Kr(he(be)),Ie;Re.isNaN()?Ie=He(Y,fe):Ie=He(Re,fe),u!==void 0?we(Y,!1):Ie.isNaN()||we(Ie,!1)},gt=function(){X.current=!0},xn=function(fe){var Re=fe.key,Ie=fe.shiftKey;X.current=!0,K.current=Ie,Re==="Enter"&&(W.current||(X.current=!1),Et(!1),I==null||I(fe)),v!==!1&&!W.current&&["Up","ArrowUp","Down","ArrowDown"].includes(Re)&&(kt(Re==="Up"||Re==="ArrowUp"),fe.preventDefault())},vt=function(){X.current=!1,K.current=!1};d.useEffect(function(){if(p&&H){var Me=function(Ie){kt(Ie.deltaY<0),Ie.preventDefault()},fe=R.current;if(fe)return fe.addEventListener("wheel",Me,{passive:!1}),function(){return fe.removeEventListener("wheel",Me)}}});var _t=function(){j&&Et(!1),G(!1),X.current=!1};return os(function(){Y.isInvalidate()||we(Y,!1)},[E,w]),os(function(){var Me=Kr(u);J(Me);var fe=Kr(he(be));(!Me.equals(fe)||!X.current||w)&&we(Me,X.current)},[u]),os(function(){w&&Ve()},[be]),d.createElement("div",{ref:B,className:te(n,r,z(z(z(z(z({},"".concat(n,"-focused"),H),"".concat(n,"-disabled"),f),"".concat(n,"-readonly"),h),"".concat(n,"-not-a-number"),Y.isNaN()),"".concat(n,"-out-of-range"),!Y.isInvalidate()&&!De(Y))),style:i,onFocus:function(){G(!0)},onBlur:_t,onKeyDown:xn,onKeyUp:vt,onCompositionStart:ht,onCompositionEnd:Ge,onBeforeInput:gt},x&&d.createElement(kD,{prefixCls:n,upNode:m,downNode:y,upDisabled:Ne,downDisabled:ae,onStep:kt}),d.createElement("div",{className:"".concat(P,"-wrap")},d.createElement("input",Pe({autoComplete:"off",role:"spinbutton","aria-valuemin":o,"aria-valuemax":a,"aria-valuenow":Y.isInvalidate()?null:Y.toString(),step:l},A,{ref:Si(R,t),className:P,value:be,onChange:Ct,disabled:f,readOnly:h}))))}),DD=d.forwardRef(function(e,t){var n=e.disabled,r=e.style,i=e.prefixCls,o=i===void 0?"rc-input-number":i,a=e.value,s=e.prefix,l=e.suffix,c=e.addonBefore,u=e.addonAfter,f=e.className,h=e.classNames,m=st(e,AD),y=d.useRef(null),v=d.useRef(null),b=d.useRef(null),p=function(x){b.current&&$D(b.current,x)};return d.useImperativeHandle(t,function(){return PD(b.current,{nativeElement:y.current.nativeElement||v.current})}),d.createElement(OD,{className:f,triggerFocus:p,prefixCls:o,value:a,disabled:n,style:r,prefix:s,suffix:l,addonAfter:u,addonBefore:c,classNames:h,components:{affixWrapper:"div",groupWrapper:"div",wrapper:"div",groupAddon:"div"},ref:y},d.createElement(LD,Pe({prefixCls:o,disabled:n,ref:b,domRef:v,className:h==null?void 0:h.input},m)))});const zD=e=>{var t;const n=(t=e.handleVisible)!==null&&t!==void 0?t:"auto";return Object.assign(Object.assign({},B_(e)),{controlWidth:90,handleWidth:e.controlHeightSM-e.lineWidth*2,handleFontSize:e.fontSize/2,handleVisible:n,handleActiveBg:e.colorFillAlter,handleBg:e.colorBgContainer,filledHandleBg:new In(e.colorFillSecondary).onBackground(e.colorBgContainer).toHexString(),handleHoverColor:e.colorPrimary,handleBorderColor:e.colorBorder,handleOpacity:n===!0?1:0})},N1=(e,t)=>{let{componentCls:n,borderRadiusSM:r,borderRadiusLG:i}=e;const o=t==="lg"?i:r;return{[`&-${t}`]:{[`${n}-handler-wrap`]:{borderStartEndRadius:o,borderEndEndRadius:o},[`${n}-handler-up`]:{borderStartEndRadius:o},[`${n}-handler-down`]:{borderEndEndRadius:o}}}},jD=e=>{const{componentCls:t,lineWidth:n,lineType:r,borderRadius:i,inputFontSizeSM:o,inputFontSizeLG:a,controlHeightLG:s,controlHeightSM:l,colorError:c,paddingInlineSM:u,paddingBlockSM:f,paddingBlockLG:h,paddingInlineLG:m,colorTextDescription:y,motionDurationMid:v,handleHoverColor:b,handleOpacity:p,paddingInline:g,paddingBlock:x,handleBg:S,handleActiveBg:C,colorTextDisabled:w,borderRadiusSM:E,borderRadiusLG:_,controlWidth:O,handleBorderColor:M,filledHandleBg:I,lineHeightLG:k,calc:F}=e;return[{[t]:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},Lr(e)),Hf(e)),{display:"inline-block",width:O,margin:0,padding:0,borderRadius:i}),V_(e,{[`${t}-handler-wrap`]:{background:S,[`${t}-handler-down`]:{borderBlockStart:`${Z(n)} ${r} ${M}`}}})),K_(e,{[`${t}-handler-wrap`]:{background:I,[`${t}-handler-down`]:{borderBlockStart:`${Z(n)} ${r} ${M}`}},"&:focus-within":{[`${t}-handler-wrap`]:{background:S}}})),U_(e)),{"&-rtl":{direction:"rtl",[`${t}-input`]:{direction:"rtl"}},"&-lg":{padding:0,fontSize:a,lineHeight:k,borderRadius:_,[`input${t}-input`]:{height:F(s).sub(F(n).mul(2)).equal(),padding:`${Z(h)} ${Z(m)}`}},"&-sm":{padding:0,fontSize:o,borderRadius:E,[`input${t}-input`]:{height:F(l).sub(F(n).mul(2)).equal(),padding:`${Z(f)} ${Z(u)}`}},"&-out-of-range":{[`${t}-input-wrap`]:{input:{color:c}}},"&-group":Object.assign(Object.assign(Object.assign({},Lr(e)),Z_(e)),{"&-wrapper":Object.assign(Object.assign(Object.assign({display:"inline-block",textAlign:"start",verticalAlign:"top",[`${t}-affix-wrapper`]:{width:"100%"},"&-lg":{[`${t}-group-addon`]:{borderRadius:_,fontSize:e.fontSizeLG}},"&-sm":{[`${t}-group-addon`]:{borderRadius:E}}},W_(e)),q_(e)),{[`&:not(${t}-compact-first-item):not(${t}-compact-last-item)${t}-compact-item`]:{[`${t}, ${t}-group-addon`]:{borderRadius:0}},[`&:not(${t}-compact-last-item)${t}-compact-first-item`]:{[`${t}, ${t}-group-addon`]:{borderStartEndRadius:0,borderEndEndRadius:0}},[`&:not(${t}-compact-first-item)${t}-compact-last-item`]:{[`${t}, ${t}-group-addon`]:{borderStartStartRadius:0,borderEndStartRadius:0}}})}),[`&-disabled ${t}-input`]:{cursor:"not-allowed"},[t]:{"&-input":Object.assign(Object.assign(Object.assign(Object.assign({},Lr(e)),{width:"100%",padding:`${Z(x)} ${Z(g)}`,textAlign:"start",backgroundColor:"transparent",border:0,borderRadius:i,outline:0,transition:`all ${v} linear`,appearance:"textfield",fontSize:"inherit"}),X_(e.colorTextPlaceholder)),{'&[type="number"]::-webkit-inner-spin-button, &[type="number"]::-webkit-outer-spin-button':{margin:0,webkitAppearance:"none",appearance:"none"}})},[`&:hover ${t}-handler-wrap, &-focused ${t}-handler-wrap`]:{width:e.handleWidth,opacity:1}})},{[t]:Object.assign(Object.assign(Object.assign({[`${t}-handler-wrap`]:{position:"absolute",insetBlockStart:0,insetInlineEnd:0,width:0,opacity:p,height:"100%",borderStartStartRadius:0,borderStartEndRadius:i,borderEndEndRadius:i,borderEndStartRadius:0,display:"flex",flexDirection:"column",alignItems:"stretch",transition:`all ${v}`,overflow:"hidden",[`${t}-handler`]:{display:"flex",alignItems:"center",justifyContent:"center",flex:"auto",height:"40%",[` ${t}-handler-up-inner, ${t}-handler-down-inner `]:{marginInlineEnd:0,fontSize:e.handleFontSize}}},[`${t}-handler`]:{height:"50%",overflow:"hidden",color:y,fontWeight:"bold",lineHeight:0,textAlign:"center",cursor:"pointer",borderInlineStart:`${Z(n)} ${r} ${M}`,transition:`all ${v} linear`,"&:active":{background:C},"&:hover":{height:"60%",[` @@ -217,7 +217,7 @@ html body { `]:{cursor:"not-allowed"},[` ${t}-handler-up-disabled:hover &-handler-up-inner, ${t}-handler-down-disabled:hover &-handler-down-inner - `]:{color:w}})}]},BD=e=>{const{componentCls:t,paddingBlock:n,paddingInline:r,inputAffixPadding:i,controlWidth:o,borderRadiusLG:a,borderRadiusSM:s,paddingInlineLG:l,paddingInlineSM:c,paddingBlockLG:u,paddingBlockSM:f,motionDurationMid:h}=e;return{[`${t}-affix-wrapper`]:Object.assign(Object.assign({[`input${t}-input`]:{padding:`${Z(n)} 0`}},Vf(e)),{position:"relative",display:"inline-flex",alignItems:"center",width:o,padding:0,paddingInlineStart:r,"&-lg":{borderRadius:a,paddingInlineStart:l,[`input${t}-input`]:{padding:`${Z(u)} 0`}},"&-sm":{borderRadius:s,paddingInlineStart:c,[`input${t}-input`]:{padding:`${Z(f)} 0`}},[`&:not(${t}-disabled):hover`]:{zIndex:1},"&-focused, &:focus":{zIndex:1},[`&-disabled > ${t}-disabled`]:{background:"transparent"},[`> div${t}`]:{width:"100%",border:"none",outline:"none",[`&${t}-focused`]:{boxShadow:"none !important"}},"&::before":{display:"inline-block",width:0,visibility:"hidden",content:'"\\a0"'},[`${t}-handler-wrap`]:{zIndex:2},[t]:{position:"static",color:"inherit","&-prefix, &-suffix":{display:"flex",flex:"none",alignItems:"center",pointerEvents:"none"},"&-prefix":{marginInlineEnd:i},"&-suffix":{insetBlockStart:0,insetInlineEnd:0,height:"100%",marginInlineEnd:r,marginInlineStart:i,transition:`margin ${h}`}},[`&:hover ${t}-handler-wrap, &-focused ${t}-handler-wrap`]:{width:e.handleWidth,opacity:1},[`&:not(${t}-affix-wrapper-without-controls):hover ${t}-suffix`]:{marginInlineEnd:e.calc(e.handleWidth).add(r).equal()}})}},HD=Er("InputNumber",e=>{const t=An(e,j_(e));return[jD(t),BD(t),jv(t)]},zD,{unitless:{handleOpacity:!0}});var VD=function(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 i=0,r=Object.getOwnPropertySymbols(e);i{const{getPrefixCls:n,direction:r}=d.useContext(bt),i=d.useRef(null);d.useImperativeHandle(t,()=>i.current);const{className:o,rootClassName:a,size:s,disabled:l,prefixCls:c,addonBefore:u,addonAfter:f,prefix:h,suffix:m,bordered:y,readOnly:v,status:b,controls:p,variant:g}=e,x=VD(e,["className","rootClassName","size","disabled","prefixCls","addonBefore","addonAfter","prefix","suffix","bordered","readOnly","status","controls","variant"]),S=n("input-number",c),C=Tc(S),[w,E,_]=HD(S,C),{compactSize:O,compactItemClassnames:M}=qE(S,r);let I=d.createElement(SD,{className:`${S}-handler-up-inner`}),k=d.createElement(MA,{className:`${S}-handler-down-inner`});const F=typeof p=="boolean"?p:void 0;typeof p=="object"&&(I=typeof p.upIcon>"u"?I:d.createElement("span",{className:`${S}-handler-up-inner`},p.upIcon),k=typeof p.downIcon>"u"?k:d.createElement("span",{className:`${S}-handler-down-inner`},p.downIcon));const{hasFeedback:j,status:B,isFormItemInput:A,feedbackIcon:P}=d.useContext(da),R=_A(B,b),N=Ic(Y=>{var J;return(J=s??O)!==null&&J!==void 0?J:Y}),D=d.useContext(la),H=l??D,[G,X]=$A("inputNumber",g,y),W=j&&d.createElement(d.Fragment,null,P),K=te({[`${S}-lg`]:N==="large",[`${S}-sm`]:N==="small",[`${S}-rtl`]:r==="rtl",[`${S}-in-form-item`]:A},E),ee=`${S}-group`,U=d.createElement(DD,Object.assign({ref:i,disabled:H,className:te(_,C,o,a,M),upHandler:I,downHandler:k,prefixCls:S,readOnly:v,controls:F,prefix:h,suffix:W||m,addonBefore:u&&d.createElement(qm,{form:!0,space:!0},u),addonAfter:f&&d.createElement(qm,{form:!0,space:!0},f),classNames:{input:K,variant:te({[`${S}-${G}`]:X},o1(S,R,j)),affixWrapper:te({[`${S}-affix-wrapper-sm`]:N==="small",[`${S}-affix-wrapper-lg`]:N==="large",[`${S}-affix-wrapper-rtl`]:r==="rtl",[`${S}-affix-wrapper-without-controls`]:p===!1},E),wrapper:te({[`${ee}-rtl`]:r==="rtl"},E),groupWrapper:te({[`${S}-group-wrapper-sm`]:N==="small",[`${S}-group-wrapper-lg`]:N==="large",[`${S}-group-wrapper-rtl`]:r==="rtl",[`${S}-group-wrapper-${G}`]:X},o1(`${S}-group-wrapper`,R,j),E)}},x));return w(U)}),Fa=l$,WD=e=>d.createElement(Ms,{theme:{components:{InputNumber:{handleVisible:!0}}}},d.createElement(l$,Object.assign({},e)));Fa._InternalPanelDoNotUseOrYouWillBeFired=WD;function ip(e,t,n){return(e-t)/(n-t)}function i0(e,t,n,r){var i=ip(t,n,r),o={};switch(e){case"rtl":o.right="".concat(i*100,"%"),o.transform="translateX(50%)";break;case"btt":o.bottom="".concat(i*100,"%"),o.transform="translateY(50%)";break;case"ttb":o.top="".concat(i*100,"%"),o.transform="translateY(-50%)";break;default:o.left="".concat(i*100,"%"),o.transform="translateX(-50%)";break}return o}function Za(e,t){return Array.isArray(e)?e[t]:e}var va=d.createContext({min:0,max:0,direction:"ltr",step:1,includedStart:0,includedEnd:0,tabIndex:0,keyboard:!0,styles:{},classNames:{}}),UD=d.createContext({}),GD=["prefixCls","value","valueIndex","onStartMove","onDelete","style","render","dragging","draggingDelete","onOffsetChange","onChangeComplete","onFocus","onMouseEnter"],F1=d.forwardRef(function(e,t){var n=e.prefixCls,r=e.value,i=e.valueIndex,o=e.onStartMove,a=e.onDelete,s=e.style,l=e.render,c=e.dragging,u=e.draggingDelete,f=e.onOffsetChange,h=e.onChangeComplete,m=e.onFocus,y=e.onMouseEnter,v=st(e,GD),b=d.useContext(va),p=b.min,g=b.max,x=b.direction,S=b.disabled,C=b.keyboard,w=b.range,E=b.tabIndex,_=b.ariaLabelForHandle,O=b.ariaLabelledByForHandle,M=b.ariaValueTextFormatterForHandle,I=b.styles,k=b.classNames,F="".concat(n,"-handle"),j=function(W){S||o(W,i)},B=function(W){m==null||m(W,i)},A=function(W){y(W,i)},P=function(W){if(!S&&C){var K=null;switch(W.which||W.keyCode){case le.LEFT:K=x==="ltr"||x==="btt"?-1:1;break;case le.RIGHT:K=x==="ltr"||x==="btt"?1:-1;break;case le.UP:K=x!=="ttb"?1:-1;break;case le.DOWN:K=x!=="ttb"?-1:1;break;case le.HOME:K="min";break;case le.END:K="max";break;case le.PAGE_UP:K=2;break;case le.PAGE_DOWN:K=-2;break;case le.BACKSPACE:case le.DELETE:a(i);break}K!==null&&(W.preventDefault(),f(K,i))}},R=function(W){switch(W.which||W.keyCode){case le.LEFT:case le.RIGHT:case le.UP:case le.DOWN:case le.HOME:case le.END:case le.PAGE_UP:case le.PAGE_DOWN:h==null||h();break}},N=i0(x,r,p,g),D={};if(i!==null){var H;D={tabIndex:S?null:Za(E,i),role:"slider","aria-valuemin":p,"aria-valuemax":g,"aria-valuenow":r,"aria-disabled":S,"aria-label":Za(_,i),"aria-labelledby":Za(O,i),"aria-valuetext":(H=Za(M,i))===null||H===void 0?void 0:H(r),"aria-orientation":x==="ltr"||x==="rtl"?"horizontal":"vertical",onMouseDown:j,onTouchStart:j,onFocus:B,onMouseEnter:A,onKeyDown:P,onKeyUp:R}}var G=d.createElement("div",Pe({ref:t,className:te(F,z(z(z({},"".concat(F,"-").concat(i+1),i!==null&&w),"".concat(F,"-dragging"),c),"".concat(F,"-dragging-delete"),u),k.handle),style:V(V(V({},N),s),I.handle)},D,v));return l&&(G=l(G,{index:i,prefixCls:n,value:r,dragging:c,draggingDelete:u})),G}),KD=["prefixCls","style","onStartMove","onOffsetChange","values","handleRender","activeHandleRender","draggingIndex","draggingDelete","onFocus"],qD=d.forwardRef(function(e,t){var n=e.prefixCls,r=e.style,i=e.onStartMove,o=e.onOffsetChange,a=e.values,s=e.handleRender,l=e.activeHandleRender,c=e.draggingIndex,u=e.draggingDelete,f=e.onFocus,h=st(e,KD),m=d.useRef({}),y=d.useState(!1),v=Q(y,2),b=v[0],p=v[1],g=d.useState(-1),x=Q(g,2),S=x[0],C=x[1],w=function(I){C(I),p(!0)},E=function(I,k){w(k),f==null||f(I)},_=function(I,k){w(k)};d.useImperativeHandle(t,function(){return{focus:function(I){var k;(k=m.current[I])===null||k===void 0||k.focus()},hideHelp:function(){ma.flushSync(function(){p(!1)})}}});var O=V({prefixCls:n,onStartMove:i,onOffsetChange:o,render:s,onFocus:E,onMouseEnter:_},h);return d.createElement(d.Fragment,null,a.map(function(M,I){var k=c===I;return d.createElement(F1,Pe({ref:function(j){j?m.current[I]=j:delete m.current[I]},dragging:k,draggingDelete:k&&u,style:Za(r,I),key:I,value:M,valueIndex:I},O))}),l&&b&&d.createElement(F1,Pe({key:"a11y"},O,{value:a[S],valueIndex:null,dragging:c!==-1,draggingDelete:u,render:l,style:{pointerEvents:"none"},tabIndex:null,"aria-hidden":!0})))}),XD=function(t){var n=t.prefixCls,r=t.style,i=t.children,o=t.value,a=t.onClick,s=d.useContext(va),l=s.min,c=s.max,u=s.direction,f=s.includedStart,h=s.includedEnd,m=s.included,y="".concat(n,"-text"),v=i0(u,o,l,c);return d.createElement("span",{className:te(y,z({},"".concat(y,"-active"),m&&f<=o&&o<=h)),style:V(V({},v),r),onMouseDown:function(p){p.stopPropagation()},onClick:function(){a(o)}},i)},YD=function(t){var n=t.prefixCls,r=t.marks,i=t.onClick,o="".concat(n,"-mark");return r.length?d.createElement("div",{className:o},r.map(function(a){var s=a.value,l=a.style,c=a.label;return d.createElement(XD,{key:s,prefixCls:o,style:l,value:s,onClick:i},c)})):null},QD=function(t){var n=t.prefixCls,r=t.value,i=t.style,o=t.activeStyle,a=d.useContext(va),s=a.min,l=a.max,c=a.direction,u=a.included,f=a.includedStart,h=a.includedEnd,m="".concat(n,"-dot"),y=u&&f<=r&&r<=h,v=V(V({},i0(c,r,s,l)),typeof i=="function"?i(r):i);return y&&(v=V(V({},v),typeof o=="function"?o(r):o)),d.createElement("span",{className:te(m,z({},"".concat(m,"-active"),y)),style:v})},ZD=function(t){var n=t.prefixCls,r=t.marks,i=t.dots,o=t.style,a=t.activeStyle,s=d.useContext(va),l=s.min,c=s.max,u=s.step,f=d.useMemo(function(){var h=new Set;if(r.forEach(function(y){h.add(y.value)}),i&&u!==null)for(var m=l;m<=c;)h.add(m),m+=u;return Array.from(h)},[l,c,u,i,r]);return d.createElement("div",{className:"".concat(n,"-step")},f.map(function(h){return d.createElement(QD,{prefixCls:n,key:h,value:h,style:o,activeStyle:a})}))},A1=function(t){var n=t.prefixCls,r=t.style,i=t.start,o=t.end,a=t.index,s=t.onStartMove,l=t.replaceCls,c=d.useContext(va),u=c.direction,f=c.min,h=c.max,m=c.disabled,y=c.range,v=c.classNames,b="".concat(n,"-track"),p=ip(i,f,h),g=ip(o,f,h),x=function(E){!m&&s&&s(E,-1)},S={};switch(u){case"rtl":S.right="".concat(p*100,"%"),S.width="".concat(g*100-p*100,"%");break;case"btt":S.bottom="".concat(p*100,"%"),S.height="".concat(g*100-p*100,"%");break;case"ttb":S.top="".concat(p*100,"%"),S.height="".concat(g*100-p*100,"%");break;default:S.left="".concat(p*100,"%"),S.width="".concat(g*100-p*100,"%")}var C=l||te(b,z(z({},"".concat(b,"-").concat(a+1),a!==null&&y),"".concat(n,"-track-draggable"),s),v.track);return d.createElement("div",{className:C,style:V(V({},S),r),onMouseDown:x,onTouchStart:x})},JD=function(t){var n=t.prefixCls,r=t.style,i=t.values,o=t.startPoint,a=t.onStartMove,s=d.useContext(va),l=s.included,c=s.range,u=s.min,f=s.styles,h=s.classNames,m=d.useMemo(function(){if(!c){if(i.length===0)return[];var v=o??u,b=i[0];return[{start:Math.min(v,b),end:Math.max(v,b)}]}for(var p=[],g=0;ge4&&u3&&arguments[3]!==void 0?arguments[3]:"unit";if(typeof v=="number"){var g,x=y[b],S=x+v,C=[];r.forEach(function(M){C.push(M.value)}),C.push(e,t),C.push(s(x));var w=v>0?1:-1;p==="unit"?C.push(s(x+w*n)):C.push(s(S)),C=C.filter(function(M){return M!==null}).filter(function(M){return v<0?M<=x:M>=x}),p==="unit"&&(C=C.filter(function(M){return M!==x}));var E=p==="unit"?x:S;g=C[0];var _=Math.abs(g-E);if(C.forEach(function(M){var I=Math.abs(M-E);I<_&&(g=M,_=I)}),g===void 0)return v<0?e:t;if(p==="dist")return g;if(Math.abs(v)>1){var O=ge(y);return O[b]=g,m(O,v-w,b,p)}return g}else{if(v==="min")return e;if(v==="max")return t}},u=function(y,v,b){var p=arguments.length>3&&arguments[3]!==void 0?arguments[3]:"unit",g=y[b],x=c(y,v,b,p);return{value:x,changed:x!==g}},f=function(y){return o===null&&y===0||typeof o=="number"&&y3&&arguments[3]!==void 0?arguments[3]:"unit",g=y.map(l),x=g[b],S=c(g,v,b,p);if(g[b]=S,i===!1){var C=o||0;b>0&&g[b-1]!==x&&(g[b]=Math.max(g[b],g[b-1]+C)),b0;O-=1)for(var M=!0;f(g[O]-g[O-1])&&M;){var I=u(g,-1,O-1);g[O-1]=I.value,M=I.changed}for(var k=g.length-1;k>0;k-=1)for(var F=!0;f(g[k]-g[k-1])&&F;){var j=u(g,-1,k-1);g[k-1]=j.value,F=j.changed}for(var B=0;B=0?A:!1},[A,De]),We=d.useMemo(function(){return Object.keys(U||{}).map(function(Ae){var ke=U[Ae],ot={value:Number(Ae)};return ke&&je(ke)==="object"&&!d.isValidElement(ke)&&("label"in ke||"style"in ke)?(ot.style=ke.style,ot.label=ke.label):ot.label=ke,ot}).filter(function(Ae){var ke=Ae.label;return ke||typeof ke=="number"}).sort(function(Ae,ke){return Ae.value-ke.value})},[U]),ct=n4(Ve,Be,De,We,j,He),ht=Q(ct,2),Ge=ht[0],Ct=ht[1],kt=yo(w,{value:C}),Et=Q(kt,2),gt=Et[0],xn=Et[1],vt=d.useMemo(function(){var Ae=gt==null?[]:Array.isArray(gt)?gt:[gt],ke=Q(Ae,1),ot=ke[0],Ze=ot===void 0?Ve:ot,qe=gt===null?[]:[Ze];if(Ne){if(qe=ge(Ae),_||gt===void 0){var Xt=_>=0?_+1:2;for(qe=qe.slice(0,Xt);qe.length=0&&be.current.focus(Ae)}pn(null)},[At]);var Qe=d.useMemo(function(){return Ue&&De===null?!1:Ue},[Ue,De]),Le=Cn(function(Ae,ke){Nt(Ae,ke),M==null||M(_t(vt))}),dt=Ee!==-1;d.useEffect(function(){if(!dt){var Ae=vt.lastIndexOf(_e);be.current.focus(Ae)}},[dt]);var pt=d.useMemo(function(){return ge(ut).sort(function(Ae,ke){return Ae-ke})},[ut]),jt=d.useMemo(function(){return Ne?[pt[0],pt[pt.length-1]]:[Ve,pt[0]]},[pt,Ne,Ve]),Ye=Q(jt,2),en=Ye[0],tn=Ye[1];d.useImperativeHandle(t,function(){return{focus:function(){be.current.focus(0)},blur:function(){var ke,ot=document,Ze=ot.activeElement;(ke=se.current)!==null&&ke!==void 0&&ke.contains(Ze)&&(Ze==null||Ze.blur())}}}),d.useEffect(function(){h&&be.current.focus(0)},[]);var Yn=d.useMemo(function(){return{min:Ve,max:Be,direction:we,disabled:c,keyboard:f,step:De,included:D,includedStart:en,includedEnd:tn,range:Ne,tabIndex:xe,ariaLabelForHandle:ie,ariaLabelledByForHandle:de,ariaValueTextFormatterForHandle:ye,styles:s||{},classNames:a||{}}},[Ve,Be,we,c,f,De,D,en,tn,Ne,xe,ie,de,ye,s,a]);return d.createElement(va.Provider,{value:Yn},d.createElement("div",{ref:se,className:te(r,i,z(z(z(z({},"".concat(r,"-disabled"),c),"".concat(r,"-vertical"),R),"".concat(r,"-horizontal"),!R),"".concat(r,"-with-marks"),We.length)),style:o,onMouseDown:nt},d.createElement("div",{className:te("".concat(r,"-rail"),a==null?void 0:a.rail),style:V(V({},W),s==null?void 0:s.rail)}),ce!==!1&&d.createElement(JD,{prefixCls:r,style:G,values:vt,startPoint:H,onStartMove:Qe?Le:void 0}),d.createElement(ZD,{prefixCls:r,marks:We,dots:Y,style:K,activeStyle:ee}),d.createElement(qD,{ref:be,prefixCls:r,style:X,values:ut,draggingIndex:Ee,draggingDelete:pe,onStartMove:Le,onOffsetChange:Xn,onFocus:m,onBlur:y,handleRender:J,activeHandleRender:re,onChangeComplete:fe,onDelete:ae?Re:void 0}),d.createElement(YD,{prefixCls:r,marks:We,onClick:mt})))});const D1=d.forwardRef((e,t)=>{const{open:n,draggingDelete:r}=e,i=d.useRef(null),o=n&&!r,a=d.useRef(null);function s(){Ft.cancel(a.current),a.current=null}function l(){a.current=Ft(()=>{var c;(c=i.current)===null||c===void 0||c.forceAlign(),a.current=null})}return d.useEffect(()=>(o?l():s(),s),[o,e.title]),d.createElement(eo,Object.assign({ref:Si(i,t)},e,{open:o}))}),o4=e=>{const{componentCls:t,antCls:n,controlSize:r,dotSize:i,marginFull:o,marginPart:a,colorFillContentHover:s,handleColorDisabled:l,calc:c,handleSize:u,handleSizeHover:f,handleActiveColor:h,handleActiveOutlineColor:m,handleLineWidth:y,handleLineWidthHover:v,motionDurationMid:b}=e;return{[t]:Object.assign(Object.assign({},Lr(e)),{position:"relative",height:r,margin:`${Z(a)} ${Z(o)}`,padding:0,cursor:"pointer",touchAction:"none","&-vertical":{margin:`${Z(o)} ${Z(a)}`},[`${t}-rail`]:{position:"absolute",backgroundColor:e.railBg,borderRadius:e.borderRadiusXS,transition:`background-color ${b}`},[`${t}-track,${t}-tracks`]:{position:"absolute",transition:`background-color ${b}`},[`${t}-track`]:{backgroundColor:e.trackBg,borderRadius:e.borderRadiusXS},[`${t}-track-draggable`]:{boxSizing:"content-box",backgroundClip:"content-box",border:"solid rgba(0,0,0,0)"},"&:hover":{[`${t}-rail`]:{backgroundColor:e.railHoverBg},[`${t}-track`]:{backgroundColor:e.trackHoverBg},[`${t}-dot`]:{borderColor:s},[`${t}-handle::after`]:{boxShadow:`0 0 0 ${Z(y)} ${e.colorPrimaryBorderHover}`},[`${t}-dot-active`]:{borderColor:e.dotActiveBorderColor}},[`${t}-handle`]:{position:"absolute",width:u,height:u,outline:"none",userSelect:"none","&-dragging-delete":{opacity:0},"&::before":{content:'""',position:"absolute",insetInlineStart:c(y).mul(-1).equal(),insetBlockStart:c(y).mul(-1).equal(),width:c(u).add(c(y).mul(2)).equal(),height:c(u).add(c(y).mul(2)).equal(),backgroundColor:"transparent"},"&::after":{content:'""',position:"absolute",insetBlockStart:0,insetInlineStart:0,width:u,height:u,backgroundColor:e.colorBgElevated,boxShadow:`0 0 0 ${Z(y)} ${e.handleColor}`,outline:"0px solid transparent",borderRadius:"50%",cursor:"pointer",transition:` + `]:{color:w}})}]},BD=e=>{const{componentCls:t,paddingBlock:n,paddingInline:r,inputAffixPadding:i,controlWidth:o,borderRadiusLG:a,borderRadiusSM:s,paddingInlineLG:l,paddingInlineSM:c,paddingBlockLG:u,paddingBlockSM:f,motionDurationMid:h}=e;return{[`${t}-affix-wrapper`]:Object.assign(Object.assign({[`input${t}-input`]:{padding:`${Z(n)} 0`}},Hf(e)),{position:"relative",display:"inline-flex",alignItems:"center",width:o,padding:0,paddingInlineStart:r,"&-lg":{borderRadius:a,paddingInlineStart:l,[`input${t}-input`]:{padding:`${Z(u)} 0`}},"&-sm":{borderRadius:s,paddingInlineStart:c,[`input${t}-input`]:{padding:`${Z(f)} 0`}},[`&:not(${t}-disabled):hover`]:{zIndex:1},"&-focused, &:focus":{zIndex:1},[`&-disabled > ${t}-disabled`]:{background:"transparent"},[`> div${t}`]:{width:"100%",border:"none",outline:"none",[`&${t}-focused`]:{boxShadow:"none !important"}},"&::before":{display:"inline-block",width:0,visibility:"hidden",content:'"\\a0"'},[`${t}-handler-wrap`]:{zIndex:2},[t]:{position:"static",color:"inherit","&-prefix, &-suffix":{display:"flex",flex:"none",alignItems:"center",pointerEvents:"none"},"&-prefix":{marginInlineEnd:i},"&-suffix":{insetBlockStart:0,insetInlineEnd:0,height:"100%",marginInlineEnd:r,marginInlineStart:i,transition:`margin ${h}`}},[`&:hover ${t}-handler-wrap, &-focused ${t}-handler-wrap`]:{width:e.handleWidth,opacity:1},[`&:not(${t}-affix-wrapper-without-controls):hover ${t}-suffix`]:{marginInlineEnd:e.calc(e.handleWidth).add(r).equal()}})}},HD=Er("InputNumber",e=>{const t=An(e,j_(e));return[jD(t),BD(t),jv(t)]},zD,{unitless:{handleOpacity:!0}});var VD=function(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 i=0,r=Object.getOwnPropertySymbols(e);i{const{getPrefixCls:n,direction:r}=d.useContext(bt),i=d.useRef(null);d.useImperativeHandle(t,()=>i.current);const{className:o,rootClassName:a,size:s,disabled:l,prefixCls:c,addonBefore:u,addonAfter:f,prefix:h,suffix:m,bordered:y,readOnly:v,status:b,controls:p,variant:g}=e,x=VD(e,["className","rootClassName","size","disabled","prefixCls","addonBefore","addonAfter","prefix","suffix","bordered","readOnly","status","controls","variant"]),S=n("input-number",c),C=Tc(S),[w,E,_]=HD(S,C),{compactSize:O,compactItemClassnames:M}=qE(S,r);let I=d.createElement(SD,{className:`${S}-handler-up-inner`}),k=d.createElement(MA,{className:`${S}-handler-down-inner`});const F=typeof p=="boolean"?p:void 0;typeof p=="object"&&(I=typeof p.upIcon>"u"?I:d.createElement("span",{className:`${S}-handler-up-inner`},p.upIcon),k=typeof p.downIcon>"u"?k:d.createElement("span",{className:`${S}-handler-down-inner`},p.downIcon));const{hasFeedback:j,status:B,isFormItemInput:A,feedbackIcon:P}=d.useContext(da),R=_A(B,b),N=Ic(Y=>{var J;return(J=s??O)!==null&&J!==void 0?J:Y}),D=d.useContext(la),H=l??D,[G,X]=$A("inputNumber",g,y),W=j&&d.createElement(d.Fragment,null,P),K=te({[`${S}-lg`]:N==="large",[`${S}-sm`]:N==="small",[`${S}-rtl`]:r==="rtl",[`${S}-in-form-item`]:A},E),ee=`${S}-group`,U=d.createElement(DD,Object.assign({ref:i,disabled:H,className:te(_,C,o,a,M),upHandler:I,downHandler:k,prefixCls:S,readOnly:v,controls:F,prefix:h,suffix:W||m,addonBefore:u&&d.createElement(Km,{form:!0,space:!0},u),addonAfter:f&&d.createElement(Km,{form:!0,space:!0},f),classNames:{input:K,variant:te({[`${S}-${G}`]:X},o1(S,R,j)),affixWrapper:te({[`${S}-affix-wrapper-sm`]:N==="small",[`${S}-affix-wrapper-lg`]:N==="large",[`${S}-affix-wrapper-rtl`]:r==="rtl",[`${S}-affix-wrapper-without-controls`]:p===!1},E),wrapper:te({[`${ee}-rtl`]:r==="rtl"},E),groupWrapper:te({[`${S}-group-wrapper-sm`]:N==="small",[`${S}-group-wrapper-lg`]:N==="large",[`${S}-group-wrapper-rtl`]:r==="rtl",[`${S}-group-wrapper-${G}`]:X},o1(`${S}-group-wrapper`,R,j),E)}},x));return w(U)}),Fa=l$,WD=e=>d.createElement(Ms,{theme:{components:{InputNumber:{handleVisible:!0}}}},d.createElement(l$,Object.assign({},e)));Fa._InternalPanelDoNotUseOrYouWillBeFired=WD;function rp(e,t,n){return(e-t)/(n-t)}function i0(e,t,n,r){var i=rp(t,n,r),o={};switch(e){case"rtl":o.right="".concat(i*100,"%"),o.transform="translateX(50%)";break;case"btt":o.bottom="".concat(i*100,"%"),o.transform="translateY(50%)";break;case"ttb":o.top="".concat(i*100,"%"),o.transform="translateY(-50%)";break;default:o.left="".concat(i*100,"%"),o.transform="translateX(-50%)";break}return o}function Za(e,t){return Array.isArray(e)?e[t]:e}var va=d.createContext({min:0,max:0,direction:"ltr",step:1,includedStart:0,includedEnd:0,tabIndex:0,keyboard:!0,styles:{},classNames:{}}),UD=d.createContext({}),GD=["prefixCls","value","valueIndex","onStartMove","onDelete","style","render","dragging","draggingDelete","onOffsetChange","onChangeComplete","onFocus","onMouseEnter"],F1=d.forwardRef(function(e,t){var n=e.prefixCls,r=e.value,i=e.valueIndex,o=e.onStartMove,a=e.onDelete,s=e.style,l=e.render,c=e.dragging,u=e.draggingDelete,f=e.onOffsetChange,h=e.onChangeComplete,m=e.onFocus,y=e.onMouseEnter,v=st(e,GD),b=d.useContext(va),p=b.min,g=b.max,x=b.direction,S=b.disabled,C=b.keyboard,w=b.range,E=b.tabIndex,_=b.ariaLabelForHandle,O=b.ariaLabelledByForHandle,M=b.ariaValueTextFormatterForHandle,I=b.styles,k=b.classNames,F="".concat(n,"-handle"),j=function(W){S||o(W,i)},B=function(W){m==null||m(W,i)},A=function(W){y(W,i)},P=function(W){if(!S&&C){var K=null;switch(W.which||W.keyCode){case le.LEFT:K=x==="ltr"||x==="btt"?-1:1;break;case le.RIGHT:K=x==="ltr"||x==="btt"?1:-1;break;case le.UP:K=x!=="ttb"?1:-1;break;case le.DOWN:K=x!=="ttb"?-1:1;break;case le.HOME:K="min";break;case le.END:K="max";break;case le.PAGE_UP:K=2;break;case le.PAGE_DOWN:K=-2;break;case le.BACKSPACE:case le.DELETE:a(i);break}K!==null&&(W.preventDefault(),f(K,i))}},R=function(W){switch(W.which||W.keyCode){case le.LEFT:case le.RIGHT:case le.UP:case le.DOWN:case le.HOME:case le.END:case le.PAGE_UP:case le.PAGE_DOWN:h==null||h();break}},N=i0(x,r,p,g),D={};if(i!==null){var H;D={tabIndex:S?null:Za(E,i),role:"slider","aria-valuemin":p,"aria-valuemax":g,"aria-valuenow":r,"aria-disabled":S,"aria-label":Za(_,i),"aria-labelledby":Za(O,i),"aria-valuetext":(H=Za(M,i))===null||H===void 0?void 0:H(r),"aria-orientation":x==="ltr"||x==="rtl"?"horizontal":"vertical",onMouseDown:j,onTouchStart:j,onFocus:B,onMouseEnter:A,onKeyDown:P,onKeyUp:R}}var G=d.createElement("div",Pe({ref:t,className:te(F,z(z(z({},"".concat(F,"-").concat(i+1),i!==null&&w),"".concat(F,"-dragging"),c),"".concat(F,"-dragging-delete"),u),k.handle),style:V(V(V({},N),s),I.handle)},D,v));return l&&(G=l(G,{index:i,prefixCls:n,value:r,dragging:c,draggingDelete:u})),G}),KD=["prefixCls","style","onStartMove","onOffsetChange","values","handleRender","activeHandleRender","draggingIndex","draggingDelete","onFocus"],qD=d.forwardRef(function(e,t){var n=e.prefixCls,r=e.style,i=e.onStartMove,o=e.onOffsetChange,a=e.values,s=e.handleRender,l=e.activeHandleRender,c=e.draggingIndex,u=e.draggingDelete,f=e.onFocus,h=st(e,KD),m=d.useRef({}),y=d.useState(!1),v=Q(y,2),b=v[0],p=v[1],g=d.useState(-1),x=Q(g,2),S=x[0],C=x[1],w=function(I){C(I),p(!0)},E=function(I,k){w(k),f==null||f(I)},_=function(I,k){w(k)};d.useImperativeHandle(t,function(){return{focus:function(I){var k;(k=m.current[I])===null||k===void 0||k.focus()},hideHelp:function(){ma.flushSync(function(){p(!1)})}}});var O=V({prefixCls:n,onStartMove:i,onOffsetChange:o,render:s,onFocus:E,onMouseEnter:_},h);return d.createElement(d.Fragment,null,a.map(function(M,I){var k=c===I;return d.createElement(F1,Pe({ref:function(j){j?m.current[I]=j:delete m.current[I]},dragging:k,draggingDelete:k&&u,style:Za(r,I),key:I,value:M,valueIndex:I},O))}),l&&b&&d.createElement(F1,Pe({key:"a11y"},O,{value:a[S],valueIndex:null,dragging:c!==-1,draggingDelete:u,render:l,style:{pointerEvents:"none"},tabIndex:null,"aria-hidden":!0})))}),XD=function(t){var n=t.prefixCls,r=t.style,i=t.children,o=t.value,a=t.onClick,s=d.useContext(va),l=s.min,c=s.max,u=s.direction,f=s.includedStart,h=s.includedEnd,m=s.included,y="".concat(n,"-text"),v=i0(u,o,l,c);return d.createElement("span",{className:te(y,z({},"".concat(y,"-active"),m&&f<=o&&o<=h)),style:V(V({},v),r),onMouseDown:function(p){p.stopPropagation()},onClick:function(){a(o)}},i)},YD=function(t){var n=t.prefixCls,r=t.marks,i=t.onClick,o="".concat(n,"-mark");return r.length?d.createElement("div",{className:o},r.map(function(a){var s=a.value,l=a.style,c=a.label;return d.createElement(XD,{key:s,prefixCls:o,style:l,value:s,onClick:i},c)})):null},QD=function(t){var n=t.prefixCls,r=t.value,i=t.style,o=t.activeStyle,a=d.useContext(va),s=a.min,l=a.max,c=a.direction,u=a.included,f=a.includedStart,h=a.includedEnd,m="".concat(n,"-dot"),y=u&&f<=r&&r<=h,v=V(V({},i0(c,r,s,l)),typeof i=="function"?i(r):i);return y&&(v=V(V({},v),typeof o=="function"?o(r):o)),d.createElement("span",{className:te(m,z({},"".concat(m,"-active"),y)),style:v})},ZD=function(t){var n=t.prefixCls,r=t.marks,i=t.dots,o=t.style,a=t.activeStyle,s=d.useContext(va),l=s.min,c=s.max,u=s.step,f=d.useMemo(function(){var h=new Set;if(r.forEach(function(y){h.add(y.value)}),i&&u!==null)for(var m=l;m<=c;)h.add(m),m+=u;return Array.from(h)},[l,c,u,i,r]);return d.createElement("div",{className:"".concat(n,"-step")},f.map(function(h){return d.createElement(QD,{prefixCls:n,key:h,value:h,style:o,activeStyle:a})}))},A1=function(t){var n=t.prefixCls,r=t.style,i=t.start,o=t.end,a=t.index,s=t.onStartMove,l=t.replaceCls,c=d.useContext(va),u=c.direction,f=c.min,h=c.max,m=c.disabled,y=c.range,v=c.classNames,b="".concat(n,"-track"),p=rp(i,f,h),g=rp(o,f,h),x=function(E){!m&&s&&s(E,-1)},S={};switch(u){case"rtl":S.right="".concat(p*100,"%"),S.width="".concat(g*100-p*100,"%");break;case"btt":S.bottom="".concat(p*100,"%"),S.height="".concat(g*100-p*100,"%");break;case"ttb":S.top="".concat(p*100,"%"),S.height="".concat(g*100-p*100,"%");break;default:S.left="".concat(p*100,"%"),S.width="".concat(g*100-p*100,"%")}var C=l||te(b,z(z({},"".concat(b,"-").concat(a+1),a!==null&&y),"".concat(n,"-track-draggable"),s),v.track);return d.createElement("div",{className:C,style:V(V({},S),r),onMouseDown:x,onTouchStart:x})},JD=function(t){var n=t.prefixCls,r=t.style,i=t.values,o=t.startPoint,a=t.onStartMove,s=d.useContext(va),l=s.included,c=s.range,u=s.min,f=s.styles,h=s.classNames,m=d.useMemo(function(){if(!c){if(i.length===0)return[];var v=o??u,b=i[0];return[{start:Math.min(v,b),end:Math.max(v,b)}]}for(var p=[],g=0;ge4&&u3&&arguments[3]!==void 0?arguments[3]:"unit";if(typeof v=="number"){var g,x=y[b],S=x+v,C=[];r.forEach(function(M){C.push(M.value)}),C.push(e,t),C.push(s(x));var w=v>0?1:-1;p==="unit"?C.push(s(x+w*n)):C.push(s(S)),C=C.filter(function(M){return M!==null}).filter(function(M){return v<0?M<=x:M>=x}),p==="unit"&&(C=C.filter(function(M){return M!==x}));var E=p==="unit"?x:S;g=C[0];var _=Math.abs(g-E);if(C.forEach(function(M){var I=Math.abs(M-E);I<_&&(g=M,_=I)}),g===void 0)return v<0?e:t;if(p==="dist")return g;if(Math.abs(v)>1){var O=ge(y);return O[b]=g,m(O,v-w,b,p)}return g}else{if(v==="min")return e;if(v==="max")return t}},u=function(y,v,b){var p=arguments.length>3&&arguments[3]!==void 0?arguments[3]:"unit",g=y[b],x=c(y,v,b,p);return{value:x,changed:x!==g}},f=function(y){return o===null&&y===0||typeof o=="number"&&y3&&arguments[3]!==void 0?arguments[3]:"unit",g=y.map(l),x=g[b],S=c(g,v,b,p);if(g[b]=S,i===!1){var C=o||0;b>0&&g[b-1]!==x&&(g[b]=Math.max(g[b],g[b-1]+C)),b0;O-=1)for(var M=!0;f(g[O]-g[O-1])&&M;){var I=u(g,-1,O-1);g[O-1]=I.value,M=I.changed}for(var k=g.length-1;k>0;k-=1)for(var F=!0;f(g[k]-g[k-1])&&F;){var j=u(g,-1,k-1);g[k-1]=j.value,F=j.changed}for(var B=0;B=0?A:!1},[A,De]),We=d.useMemo(function(){return Object.keys(U||{}).map(function(Ae){var ke=U[Ae],ot={value:Number(Ae)};return ke&&je(ke)==="object"&&!d.isValidElement(ke)&&("label"in ke||"style"in ke)?(ot.style=ke.style,ot.label=ke.label):ot.label=ke,ot}).filter(function(Ae){var ke=Ae.label;return ke||typeof ke=="number"}).sort(function(Ae,ke){return Ae.value-ke.value})},[U]),ct=n4(Ve,Be,De,We,j,He),ht=Q(ct,2),Ge=ht[0],Ct=ht[1],kt=yo(w,{value:C}),Et=Q(kt,2),gt=Et[0],xn=Et[1],vt=d.useMemo(function(){var Ae=gt==null?[]:Array.isArray(gt)?gt:[gt],ke=Q(Ae,1),ot=ke[0],Ze=ot===void 0?Ve:ot,qe=gt===null?[]:[Ze];if(Ne){if(qe=ge(Ae),_||gt===void 0){var Xt=_>=0?_+1:2;for(qe=qe.slice(0,Xt);qe.length=0&&be.current.focus(Ae)}pn(null)},[At]);var Qe=d.useMemo(function(){return Ue&&De===null?!1:Ue},[Ue,De]),Le=Cn(function(Ae,ke){Nt(Ae,ke),M==null||M(_t(vt))}),dt=Ee!==-1;d.useEffect(function(){if(!dt){var Ae=vt.lastIndexOf(_e);be.current.focus(Ae)}},[dt]);var pt=d.useMemo(function(){return ge(ut).sort(function(Ae,ke){return Ae-ke})},[ut]),jt=d.useMemo(function(){return Ne?[pt[0],pt[pt.length-1]]:[Ve,pt[0]]},[pt,Ne,Ve]),Ye=Q(jt,2),en=Ye[0],tn=Ye[1];d.useImperativeHandle(t,function(){return{focus:function(){be.current.focus(0)},blur:function(){var ke,ot=document,Ze=ot.activeElement;(ke=se.current)!==null&&ke!==void 0&&ke.contains(Ze)&&(Ze==null||Ze.blur())}}}),d.useEffect(function(){h&&be.current.focus(0)},[]);var Yn=d.useMemo(function(){return{min:Ve,max:Be,direction:we,disabled:c,keyboard:f,step:De,included:D,includedStart:en,includedEnd:tn,range:Ne,tabIndex:Se,ariaLabelForHandle:ie,ariaLabelledByForHandle:de,ariaValueTextFormatterForHandle:ye,styles:s||{},classNames:a||{}}},[Ve,Be,we,c,f,De,D,en,tn,Ne,Se,ie,de,ye,s,a]);return d.createElement(va.Provider,{value:Yn},d.createElement("div",{ref:se,className:te(r,i,z(z(z(z({},"".concat(r,"-disabled"),c),"".concat(r,"-vertical"),R),"".concat(r,"-horizontal"),!R),"".concat(r,"-with-marks"),We.length)),style:o,onMouseDown:nt},d.createElement("div",{className:te("".concat(r,"-rail"),a==null?void 0:a.rail),style:V(V({},W),s==null?void 0:s.rail)}),ce!==!1&&d.createElement(JD,{prefixCls:r,style:G,values:vt,startPoint:H,onStartMove:Qe?Le:void 0}),d.createElement(ZD,{prefixCls:r,marks:We,dots:Y,style:K,activeStyle:ee}),d.createElement(qD,{ref:be,prefixCls:r,style:X,values:ut,draggingIndex:Ee,draggingDelete:pe,onStartMove:Le,onOffsetChange:Xn,onFocus:m,onBlur:y,handleRender:J,activeHandleRender:re,onChangeComplete:fe,onDelete:ae?Re:void 0}),d.createElement(YD,{prefixCls:r,marks:We,onClick:mt})))});const D1=d.forwardRef((e,t)=>{const{open:n,draggingDelete:r}=e,i=d.useRef(null),o=n&&!r,a=d.useRef(null);function s(){Ft.cancel(a.current),a.current=null}function l(){a.current=Ft(()=>{var c;(c=i.current)===null||c===void 0||c.forceAlign(),a.current=null})}return d.useEffect(()=>(o?l():s(),s),[o,e.title]),d.createElement(eo,Object.assign({ref:Si(i,t)},e,{open:o}))}),o4=e=>{const{componentCls:t,antCls:n,controlSize:r,dotSize:i,marginFull:o,marginPart:a,colorFillContentHover:s,handleColorDisabled:l,calc:c,handleSize:u,handleSizeHover:f,handleActiveColor:h,handleActiveOutlineColor:m,handleLineWidth:y,handleLineWidthHover:v,motionDurationMid:b}=e;return{[t]:Object.assign(Object.assign({},Lr(e)),{position:"relative",height:r,margin:`${Z(a)} ${Z(o)}`,padding:0,cursor:"pointer",touchAction:"none","&-vertical":{margin:`${Z(o)} ${Z(a)}`},[`${t}-rail`]:{position:"absolute",backgroundColor:e.railBg,borderRadius:e.borderRadiusXS,transition:`background-color ${b}`},[`${t}-track,${t}-tracks`]:{position:"absolute",transition:`background-color ${b}`},[`${t}-track`]:{backgroundColor:e.trackBg,borderRadius:e.borderRadiusXS},[`${t}-track-draggable`]:{boxSizing:"content-box",backgroundClip:"content-box",border:"solid rgba(0,0,0,0)"},"&:hover":{[`${t}-rail`]:{backgroundColor:e.railHoverBg},[`${t}-track`]:{backgroundColor:e.trackHoverBg},[`${t}-dot`]:{borderColor:s},[`${t}-handle::after`]:{boxShadow:`0 0 0 ${Z(y)} ${e.colorPrimaryBorderHover}`},[`${t}-dot-active`]:{borderColor:e.dotActiveBorderColor}},[`${t}-handle`]:{position:"absolute",width:u,height:u,outline:"none",userSelect:"none","&-dragging-delete":{opacity:0},"&::before":{content:'""',position:"absolute",insetInlineStart:c(y).mul(-1).equal(),insetBlockStart:c(y).mul(-1).equal(),width:c(u).add(c(y).mul(2)).equal(),height:c(u).add(c(y).mul(2)).equal(),backgroundColor:"transparent"},"&::after":{content:'""',position:"absolute",insetBlockStart:0,insetInlineStart:0,width:u,height:u,backgroundColor:e.colorBgElevated,boxShadow:`0 0 0 ${Z(y)} ${e.handleColor}`,outline:"0px solid transparent",borderRadius:"50%",cursor:"pointer",transition:` inset-inline-start ${b}, inset-block-start ${b}, width ${b}, @@ -229,7 +229,7 @@ html body { `]:{backgroundColor:e.colorBgElevated,borderColor:e.trackBgDisabled,boxShadow:"none",cursor:"not-allowed"},[`${t}-handle::after`]:{backgroundColor:e.colorBgElevated,cursor:"not-allowed",width:u,height:u,boxShadow:`0 0 0 ${Z(y)} ${l}`,insetInlineStart:0,insetBlockStart:0},[` ${t}-mark-text, ${t}-dot - `]:{cursor:"not-allowed !important"}},[`&-tooltip ${n}-tooltip-inner`]:{minWidth:"unset"}})}},c$=(e,t)=>{const{componentCls:n,railSize:r,handleSize:i,dotSize:o,marginFull:a,calc:s}=e,l=t?"paddingBlock":"paddingInline",c=t?"width":"height",u=t?"height":"width",f=t?"insetBlockStart":"insetInlineStart",h=t?"top":"insetInlineStart",m=s(r).mul(3).sub(i).div(2).equal(),y=s(i).sub(r).div(2).equal(),v=t?{borderWidth:`${Z(y)} 0`,transform:`translateY(${Z(s(y).mul(-1).equal())})`}:{borderWidth:`0 ${Z(y)}`,transform:`translateX(${Z(e.calc(y).mul(-1).equal())})`};return{[l]:r,[u]:s(r).mul(3).equal(),[`${n}-rail`]:{[c]:"100%",[u]:r},[`${n}-track,${n}-tracks`]:{[u]:r},[`${n}-track-draggable`]:Object.assign({},v),[`${n}-handle`]:{[f]:m},[`${n}-mark`]:{insetInlineStart:0,top:0,[h]:s(r).mul(3).add(t?0:a).equal(),[c]:"100%"},[`${n}-step`]:{insetInlineStart:0,top:0,[h]:r,[c]:"100%",[u]:r},[`${n}-dot`]:{position:"absolute",[f]:s(r).sub(o).div(2).equal()}}},a4=e=>{const{componentCls:t,marginPartWithMark:n}=e;return{[`${t}-horizontal`]:Object.assign(Object.assign({},c$(e,!0)),{[`&${t}-with-marks`]:{marginBottom:n}})}},s4=e=>{const{componentCls:t}=e;return{[`${t}-vertical`]:Object.assign(Object.assign({},c$(e,!1)),{height:"100%"})}},l4=e=>{const n=e.controlHeightLG/4,r=e.controlHeightSM/2,i=e.lineWidth+1,o=e.lineWidth+1*1.5,a=e.colorPrimary,s=new In(a).setAlpha(.2).toRgbString();return{controlSize:n,railSize:4,handleSize:n,handleSizeHover:r,dotSize:8,handleLineWidth:i,handleLineWidthHover:o,railBg:e.colorFillTertiary,railHoverBg:e.colorFillSecondary,trackBg:e.colorPrimaryBorder,trackHoverBg:e.colorPrimaryBorderHover,handleColor:e.colorPrimaryBorder,handleActiveColor:a,handleActiveOutlineColor:s,handleColorDisabled:new In(e.colorTextDisabled).onBackground(e.colorBgContainer).toHexShortString(),dotBorderColor:e.colorBorderSecondary,dotActiveBorderColor:e.colorPrimaryBorder,trackBgDisabled:e.colorBgContainerDisabled}},c4=Er("Slider",e=>{const t=An(e,{marginPart:e.calc(e.controlHeight).sub(e.controlSize).div(2).equal(),marginFull:e.calc(e.controlSize).div(2).equal(),marginPartWithMark:e.calc(e.controlHeightLG).sub(e.controlSize).equal()});return[o4(t),a4(t),s4(t)]},l4),u4=d.createContext({});function Zh(){const[e,t]=d.useState(!1),n=d.useRef(),r=()=>{Ft.cancel(n.current)},i=o=>{r(),o?t(o):n.current=Ft(()=>{t(o)})};return d.useEffect(()=>r,[]),[e,i]}var d4=function(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 i=0,r=Object.getOwnPropertySymbols(e);itypeof n=="number"?n.toString():""}const h4=me.forwardRef((e,t)=>{const{prefixCls:n,range:r,className:i,rootClassName:o,style:a,disabled:s,tooltipPrefixCls:l,tipFormatter:c,tooltipVisible:u,getTooltipPopupContainer:f,tooltipPlacement:h,tooltip:m={},onChangeComplete:y}=e,v=d4(e,["prefixCls","range","className","rootClassName","style","disabled","tooltipPrefixCls","tipFormatter","tooltipVisible","getTooltipPopupContainer","tooltipPlacement","tooltip","onChangeComplete"]),{vertical:b}=e,{direction:p,slider:g,getPrefixCls:x,getPopupContainer:S}=me.useContext(bt),C=me.useContext(la),w=s??C,{handleRender:E,direction:_}=me.useContext(u4),M=(_||p)==="rtl",[I,k]=Zh(),[F,j]=Zh(),B=Object.assign({},m),{open:A,placement:P,getPopupContainer:R,prefixCls:N,formatter:D}=B,H=A??u,G=(I||F)&&H!==!1,X=f4(D,c),[W,K]=Zh(),ee=be=>{y==null||y(be),K(!1)},U=(be,se)=>be||(se?M?"left":"right":"top"),Y=x("slider",n),[J,re,ce]=c4(Y),he=te(i,g==null?void 0:g.className,o,{[`${Y}-rtl`]:M,[`${Y}-lock`]:W},re,ce);M&&!v.vertical&&(v.reverse=!v.reverse),me.useEffect(()=>{const be=()=>{Ft(()=>{j(!1)},1)};return document.addEventListener("mouseup",be),()=>{document.removeEventListener("mouseup",be)}},[]);const xe=r&&!H,ie=E||((be,se)=>{const{index:we}=se,$e=be.props;function ue(Fe,Se,Ve){var Be,De,He,We;Ve&&((De=(Be=v)[Fe])===null||De===void 0||De.call(Be,Se)),(We=(He=$e)[Fe])===null||We===void 0||We.call(He,Se)}const Ne=Object.assign(Object.assign({},$e),{onMouseEnter:Fe=>{k(!0),ue("onMouseEnter",Fe)},onMouseLeave:Fe=>{k(!1),ue("onMouseLeave",Fe)},onMouseDown:Fe=>{j(!0),K(!0),ue("onMouseDown",Fe)},onFocus:Fe=>{var Se;j(!0),(Se=v.onFocus)===null||Se===void 0||Se.call(v,Fe),ue("onFocus",Fe,!0)},onBlur:Fe=>{var Se;j(!1),(Se=v.onBlur)===null||Se===void 0||Se.call(v,Fe),ue("onBlur",Fe,!0)}}),ae=me.cloneElement(be,Ne),Ue=(!!H||G)&&X!==null;return xe?ae:me.createElement(D1,Object.assign({},B,{prefixCls:x("tooltip",N??l),title:X?X(se.value):"",open:Ue,placement:U(P??h,b),key:we,overlayClassName:`${Y}-tooltip`,getPopupContainer:R||f||S}),ae)}),de=xe?(be,se)=>{const we=me.cloneElement(be,{style:Object.assign(Object.assign({},be.props.style),{visibility:"hidden"})});return me.createElement(D1,Object.assign({},B,{prefixCls:x("tooltip",N??l),title:X?X(se.value):"",open:X!==null&&G,placement:U(P??h,b),key:"tooltip",overlayClassName:`${Y}-tooltip`,getPopupContainer:R||f||S,draggingDelete:se.draggingDelete}),we)}:void 0,ye=Object.assign(Object.assign({},g==null?void 0:g.style),a);return J(me.createElement(i4,Object.assign({},v,{step:v.step,range:r,className:he,style:ye,disabled:w,ref:t,prefixCls:Y,handleRender:ie,activeHandleRender:de,onChangeComplete:ee})))});function Vd(e){const[t,n]=d.useState(e);return d.useEffect(()=>{const r=setTimeout(()=>{n(e)},e.length?0:10);return()=>{clearTimeout(r)}},[e]),t}const g4=e=>{const{componentCls:t}=e,n=`${t}-show-help`,r=`${t}-show-help-item`;return{[n]:{transition:`opacity ${e.motionDurationSlow} ${e.motionEaseInOut}`,"&-appear, &-enter":{opacity:0,"&-active":{opacity:1}},"&-leave":{opacity:1,"&-active":{opacity:0}},[r]:{overflow:"hidden",transition:`height ${e.motionDurationSlow} ${e.motionEaseInOut}, + `]:{cursor:"not-allowed !important"}},[`&-tooltip ${n}-tooltip-inner`]:{minWidth:"unset"}})}},c$=(e,t)=>{const{componentCls:n,railSize:r,handleSize:i,dotSize:o,marginFull:a,calc:s}=e,l=t?"paddingBlock":"paddingInline",c=t?"width":"height",u=t?"height":"width",f=t?"insetBlockStart":"insetInlineStart",h=t?"top":"insetInlineStart",m=s(r).mul(3).sub(i).div(2).equal(),y=s(i).sub(r).div(2).equal(),v=t?{borderWidth:`${Z(y)} 0`,transform:`translateY(${Z(s(y).mul(-1).equal())})`}:{borderWidth:`0 ${Z(y)}`,transform:`translateX(${Z(e.calc(y).mul(-1).equal())})`};return{[l]:r,[u]:s(r).mul(3).equal(),[`${n}-rail`]:{[c]:"100%",[u]:r},[`${n}-track,${n}-tracks`]:{[u]:r},[`${n}-track-draggable`]:Object.assign({},v),[`${n}-handle`]:{[f]:m},[`${n}-mark`]:{insetInlineStart:0,top:0,[h]:s(r).mul(3).add(t?0:a).equal(),[c]:"100%"},[`${n}-step`]:{insetInlineStart:0,top:0,[h]:r,[c]:"100%",[u]:r},[`${n}-dot`]:{position:"absolute",[f]:s(r).sub(o).div(2).equal()}}},a4=e=>{const{componentCls:t,marginPartWithMark:n}=e;return{[`${t}-horizontal`]:Object.assign(Object.assign({},c$(e,!0)),{[`&${t}-with-marks`]:{marginBottom:n}})}},s4=e=>{const{componentCls:t}=e;return{[`${t}-vertical`]:Object.assign(Object.assign({},c$(e,!1)),{height:"100%"})}},l4=e=>{const n=e.controlHeightLG/4,r=e.controlHeightSM/2,i=e.lineWidth+1,o=e.lineWidth+1*1.5,a=e.colorPrimary,s=new In(a).setAlpha(.2).toRgbString();return{controlSize:n,railSize:4,handleSize:n,handleSizeHover:r,dotSize:8,handleLineWidth:i,handleLineWidthHover:o,railBg:e.colorFillTertiary,railHoverBg:e.colorFillSecondary,trackBg:e.colorPrimaryBorder,trackHoverBg:e.colorPrimaryBorderHover,handleColor:e.colorPrimaryBorder,handleActiveColor:a,handleActiveOutlineColor:s,handleColorDisabled:new In(e.colorTextDisabled).onBackground(e.colorBgContainer).toHexShortString(),dotBorderColor:e.colorBorderSecondary,dotActiveBorderColor:e.colorPrimaryBorder,trackBgDisabled:e.colorBgContainerDisabled}},c4=Er("Slider",e=>{const t=An(e,{marginPart:e.calc(e.controlHeight).sub(e.controlSize).div(2).equal(),marginFull:e.calc(e.controlSize).div(2).equal(),marginPartWithMark:e.calc(e.controlHeightLG).sub(e.controlSize).equal()});return[o4(t),a4(t),s4(t)]},l4),u4=d.createContext({});function Qh(){const[e,t]=d.useState(!1),n=d.useRef(),r=()=>{Ft.cancel(n.current)},i=o=>{r(),o?t(o):n.current=Ft(()=>{t(o)})};return d.useEffect(()=>r,[]),[e,i]}var d4=function(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 i=0,r=Object.getOwnPropertySymbols(e);itypeof n=="number"?n.toString():""}const h4=me.forwardRef((e,t)=>{const{prefixCls:n,range:r,className:i,rootClassName:o,style:a,disabled:s,tooltipPrefixCls:l,tipFormatter:c,tooltipVisible:u,getTooltipPopupContainer:f,tooltipPlacement:h,tooltip:m={},onChangeComplete:y}=e,v=d4(e,["prefixCls","range","className","rootClassName","style","disabled","tooltipPrefixCls","tipFormatter","tooltipVisible","getTooltipPopupContainer","tooltipPlacement","tooltip","onChangeComplete"]),{vertical:b}=e,{direction:p,slider:g,getPrefixCls:x,getPopupContainer:S}=me.useContext(bt),C=me.useContext(la),w=s??C,{handleRender:E,direction:_}=me.useContext(u4),M=(_||p)==="rtl",[I,k]=Qh(),[F,j]=Qh(),B=Object.assign({},m),{open:A,placement:P,getPopupContainer:R,prefixCls:N,formatter:D}=B,H=A??u,G=(I||F)&&H!==!1,X=f4(D,c),[W,K]=Qh(),ee=be=>{y==null||y(be),K(!1)},U=(be,se)=>be||(se?M?"left":"right":"top"),Y=x("slider",n),[J,re,ce]=c4(Y),he=te(i,g==null?void 0:g.className,o,{[`${Y}-rtl`]:M,[`${Y}-lock`]:W},re,ce);M&&!v.vertical&&(v.reverse=!v.reverse),me.useEffect(()=>{const be=()=>{Ft(()=>{j(!1)},1)};return document.addEventListener("mouseup",be),()=>{document.removeEventListener("mouseup",be)}},[]);const Se=r&&!H,ie=E||((be,se)=>{const{index:we}=se,$e=be.props;function ue(Fe,Ce,Ve){var Be,De,He,We;Ve&&((De=(Be=v)[Fe])===null||De===void 0||De.call(Be,Ce)),(We=(He=$e)[Fe])===null||We===void 0||We.call(He,Ce)}const Ne=Object.assign(Object.assign({},$e),{onMouseEnter:Fe=>{k(!0),ue("onMouseEnter",Fe)},onMouseLeave:Fe=>{k(!1),ue("onMouseLeave",Fe)},onMouseDown:Fe=>{j(!0),K(!0),ue("onMouseDown",Fe)},onFocus:Fe=>{var Ce;j(!0),(Ce=v.onFocus)===null||Ce===void 0||Ce.call(v,Fe),ue("onFocus",Fe,!0)},onBlur:Fe=>{var Ce;j(!1),(Ce=v.onBlur)===null||Ce===void 0||Ce.call(v,Fe),ue("onBlur",Fe,!0)}}),ae=me.cloneElement(be,Ne),Ue=(!!H||G)&&X!==null;return Se?ae:me.createElement(D1,Object.assign({},B,{prefixCls:x("tooltip",N??l),title:X?X(se.value):"",open:Ue,placement:U(P??h,b),key:we,overlayClassName:`${Y}-tooltip`,getPopupContainer:R||f||S}),ae)}),de=Se?(be,se)=>{const we=me.cloneElement(be,{style:Object.assign(Object.assign({},be.props.style),{visibility:"hidden"})});return me.createElement(D1,Object.assign({},B,{prefixCls:x("tooltip",N??l),title:X?X(se.value):"",open:X!==null&&G,placement:U(P??h,b),key:"tooltip",overlayClassName:`${Y}-tooltip`,getPopupContainer:R||f||S,draggingDelete:se.draggingDelete}),we)}:void 0,ye=Object.assign(Object.assign({},g==null?void 0:g.style),a);return J(me.createElement(i4,Object.assign({},v,{step:v.step,range:r,className:he,style:ye,disabled:w,ref:t,prefixCls:Y,handleRender:ie,activeHandleRender:de,onChangeComplete:ee})))});function Hd(e){const[t,n]=d.useState(e);return d.useEffect(()=>{const r=setTimeout(()=>{n(e)},e.length?0:10);return()=>{clearTimeout(r)}},[e]),t}const g4=e=>{const{componentCls:t}=e,n=`${t}-show-help`,r=`${t}-show-help-item`;return{[n]:{transition:`opacity ${e.motionDurationSlow} ${e.motionEaseInOut}`,"&-appear, &-enter":{opacity:0,"&-active":{opacity:1}},"&-leave":{opacity:1,"&-active":{opacity:0}},[r]:{overflow:"hidden",transition:`height ${e.motionDurationSlow} ${e.motionEaseInOut}, opacity ${e.motionDurationSlow} ${e.motionEaseInOut}, transform ${e.motionDurationSlow} ${e.motionEaseInOut} !important`,[`&${r}-appear, &${r}-enter`]:{transform:"translateY(-5px)",opacity:0,"&-active":{transform:"translateY(0)",opacity:1}},[`&${r}-leave-active`]:{transform:"translateY(-5px)"}}}}},m4=e=>({legend:{display:"block",width:"100%",marginBottom:e.marginLG,padding:0,color:e.colorTextDescription,fontSize:e.fontSizeLG,lineHeight:"inherit",border:0,borderBottom:`${Z(e.lineWidth)} ${e.lineType} ${e.colorBorder}`},'input[type="search"]':{boxSizing:"border-box"},'input[type="radio"], input[type="checkbox"]':{lineHeight:"normal"},'input[type="file"]':{display:"block"},'input[type="range"]':{display:"block",width:"100%"},"select[multiple], select[size]":{height:"auto"},"input[type='file']:focus,\n input[type='radio']:focus,\n input[type='checkbox']:focus":{outline:0,boxShadow:`0 0 0 ${Z(e.controlOutlineWidth)} ${e.controlOutline}`},output:{display:"block",paddingTop:15,color:e.colorText,fontSize:e.fontSize,lineHeight:e.lineHeight}}),z1=(e,t)=>{const{formItemCls:n}=e;return{[n]:{[`${n}-label > label`]:{height:t},[`${n}-control-input`]:{minHeight:t}}}},p4=e=>{const{componentCls:t}=e;return{[e.componentCls]:Object.assign(Object.assign(Object.assign({},Lr(e)),m4(e)),{[`${t}-text`]:{display:"inline-block",paddingInlineEnd:e.paddingSM},"&-small":Object.assign({},z1(e,e.controlHeightSM)),"&-large":Object.assign({},z1(e,e.controlHeightLG))})}},v4=e=>{const{formItemCls:t,iconCls:n,componentCls:r,rootPrefixCls:i,antCls:o,labelRequiredMarkColor:a,labelColor:s,labelFontSize:l,labelHeight:c,labelColonMarginInlineStart:u,labelColonMarginInlineEnd:f,itemMarginBottom:h}=e;return{[t]:Object.assign(Object.assign({},Lr(e)),{marginBottom:h,verticalAlign:"top","&-with-help":{transition:"none"},[`&-hidden, &-hidden${o}-row`]:{display:"none"},"&-has-warning":{[`${t}-split`]:{color:e.colorError}},"&-has-error":{[`${t}-split`]:{color:e.colorWarning}},[`${t}-label`]:{flexGrow:0,overflow:"hidden",whiteSpace:"nowrap",textAlign:"end",verticalAlign:"middle","&-left":{textAlign:"start"},"&-wrap":{overflow:"unset",lineHeight:e.lineHeight,whiteSpace:"unset"},"> label":{position:"relative",display:"inline-flex",alignItems:"center",maxWidth:"100%",height:c,color:s,fontSize:l,[`> ${n}`]:{fontSize:e.fontSize,verticalAlign:"top"},[`&${t}-required:not(${t}-required-mark-optional)::before`]:{display:"inline-block",marginInlineEnd:e.marginXXS,color:a,fontSize:e.fontSize,fontFamily:"SimSun, sans-serif",lineHeight:1,content:'"*"',[`${r}-hide-required-mark &`]:{display:"none"}},[`${t}-optional`]:{display:"inline-block",marginInlineStart:e.marginXXS,color:e.colorTextDescription,[`${r}-hide-required-mark &`]:{display:"none"}},[`${t}-tooltip`]:{color:e.colorTextDescription,cursor:"help",writingMode:"horizontal-tb",marginInlineStart:e.marginXXS},"&::after":{content:'":"',position:"relative",marginBlock:0,marginInlineStart:u,marginInlineEnd:f},[`&${t}-no-colon::after`]:{content:'"\\a0"'}}},[`${t}-control`]:{"--ant-display":"flex",flexDirection:"column",flexGrow:1,[`&:first-child:not([class^="'${i}-col-'"]):not([class*="' ${i}-col-'"])`]:{width:"100%"},"&-input":{position:"relative",display:"flex",alignItems:"center",minHeight:e.controlHeight,"&-content":{flex:"auto",maxWidth:"100%"}}},[t]:{"&-explain, &-extra":{clear:"both",color:e.colorTextDescription,fontSize:e.fontSize,lineHeight:e.lineHeight},"&-explain-connected":{width:"100%"},"&-extra":{minHeight:e.controlHeightSM,transition:`color ${e.motionDurationMid} ${e.motionEaseOut}`},"&-explain":{"&-error":{color:e.colorError},"&-warning":{color:e.colorWarning}}},[`&-with-help ${t}-explain`]:{height:"auto",opacity:1},[`${t}-feedback-icon`]:{fontSize:e.fontSize,textAlign:"center",visibility:"visible",animationName:kv,animationDuration:e.motionDurationMid,animationTimingFunction:e.motionEaseOutBack,pointerEvents:"none","&-success":{color:e.colorSuccess},"&-error":{color:e.colorError},"&-warning":{color:e.colorWarning},"&-validating":{color:e.colorPrimary}}})}},j1=(e,t)=>{const{formItemCls:n}=e;return{[`${t}-horizontal`]:{[`${n}-label`]:{flexGrow:0},[`${n}-control`]:{flex:"1 1 0",minWidth:0},[`${n}-label[class$='-24'], ${n}-label[class*='-24 ']`]:{[`& + ${n}-control`]:{minWidth:"unset"}}}}},y4=e=>{const{componentCls:t,formItemCls:n,inlineItemMarginBottom:r}=e;return{[`${t}-inline`]:{display:"flex",flexWrap:"wrap",[n]:{flex:"none",marginInlineEnd:e.margin,marginBottom:r,"&-row":{flexWrap:"nowrap"},[`> ${n}-label, @@ -237,32 +237,32 @@ html body { ${r}-col-24${n}-label, ${r}-col-xl-24${n}-label`]:Jr(e)}},[`@media (max-width: ${Z(e.screenXSMax)})`]:[u$(e),{[t]:{[`${n}:not(${n}-horizontal)`]:{[`${r}-col-xs-24${n}-label`]:Jr(e)}}}],[`@media (max-width: ${Z(e.screenSMMax)})`]:{[t]:{[`${n}:not(${n}-horizontal)`]:{[`${r}-col-sm-24${n}-label`]:Jr(e)}}},[`@media (max-width: ${Z(e.screenMDMax)})`]:{[t]:{[`${n}:not(${n}-horizontal)`]:{[`${r}-col-md-24${n}-label`]:Jr(e)}}},[`@media (max-width: ${Z(e.screenLGMax)})`]:{[t]:{[`${n}:not(${n}-horizontal)`]:{[`${r}-col-lg-24${n}-label`]:Jr(e)}}}}},x4=e=>{const{formItemCls:t,antCls:n}=e;return{[`${t}-vertical`]:{[`${t}-row`]:{flexDirection:"column"},[`${t}-label > label`]:{height:"auto"},[`${t}-control`]:{width:"100%"}},[`${t}-vertical ${t}-label, ${n}-col-24${t}-label, - ${n}-col-xl-24${t}-label`]:Jr(e),[`@media (max-width: ${Z(e.screenXSMax)})`]:[u$(e),{[t]:{[`${n}-col-xs-24${t}-label`]:Jr(e)}}],[`@media (max-width: ${Z(e.screenSMMax)})`]:{[t]:{[`${n}-col-sm-24${t}-label`]:Jr(e)}},[`@media (max-width: ${Z(e.screenMDMax)})`]:{[t]:{[`${n}-col-md-24${t}-label`]:Jr(e)}},[`@media (max-width: ${Z(e.screenLGMax)})`]:{[t]:{[`${n}-col-lg-24${t}-label`]:Jr(e)}}}},S4=e=>({labelRequiredMarkColor:e.colorError,labelColor:e.colorTextHeading,labelFontSize:e.fontSize,labelHeight:e.controlHeight,labelColonMarginInlineStart:e.marginXXS/2,labelColonMarginInlineEnd:e.marginXS,itemMarginBottom:e.marginLG,verticalLabelPadding:`0 0 ${e.paddingXS}px`,verticalLabelMargin:0,inlineItemMarginBottom:0}),d$=(e,t)=>An(e,{formItemCls:`${e.componentCls}-item`,rootPrefixCls:t}),o0=Er("Form",(e,t)=>{let{rootPrefixCls:n}=t;const r=d$(e,n);return[p4(r),v4(r),g4(r),j1(r,r.componentCls),j1(r,r.formItemCls),y4(r),b4(r),x4(r),Lk(r),kv]},S4,{order:-1e3}),B1=[];function Jh(e,t,n){let r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:0;return{key:typeof e=="string"?e:`${t}-${r}`,error:e,errorStatus:n}}const f$=e=>{let{help:t,helpStatus:n,errors:r=B1,warnings:i=B1,className:o,fieldId:a,onVisibleChanged:s}=e;const{prefixCls:l}=d.useContext(Uv),c=`${l}-item-explain`,u=Tc(l),[f,h,m]=o0(l,u),y=d.useMemo(()=>$b(l),[l]),v=Vd(r),b=Vd(i),p=d.useMemo(()=>t!=null?[Jh(t,"help",n)]:[].concat(ge(v.map((x,S)=>Jh(x,"error","error",S))),ge(b.map((x,S)=>Jh(x,"warning","warning",S)))),[t,n,v,b]),g={};return a&&(g.id=`${a}_help`),f(d.createElement(To,{motionDeadline:y.motionDeadline,motionName:`${l}-show-help`,visible:!!p.length,onVisibleChanged:s},x=>{const{className:S,style:C}=x;return d.createElement("div",Object.assign({},g,{className:te(c,S,m,u,o,h),style:C,role:"alert"}),d.createElement(vI,Object.assign({keys:p},$b(l),{motionName:`${l}-show-help-item`,component:!1}),w=>{const{key:E,error:_,errorStatus:O,className:M,style:I}=w;return d.createElement("div",{key:E,className:te(M,{[`${c}-${O}`]:O}),style:I},_)}))}))},C4=["parentNode"],w4="form_item";function Pl(e){return e===void 0||e===!1?[]:Array.isArray(e)?e:[e]}function h$(e,t){if(!e.length)return;const n=e.join("_");return t?`${t}_${n}`:C4.includes(n)?`${w4}_${n}`:n}function g$(e,t,n,r,i,o){let a=r;return o!==void 0?a=o:n.validating?a="validating":e.length?a="error":t.length?a="warning":(n.touched||i&&n.validated)&&(a="success"),a}function H1(e){return Pl(e).join("_")}function E4(e,t){const n=t.getFieldInstance(e),r=Mw(n);if(r)return r;const i=h$(Pl(e),t.__INTERNAL__.name);if(i)return document.getElementById(i)}function m$(e){const[t]=Wv(),n=d.useRef({}),r=d.useMemo(()=>e??Object.assign(Object.assign({},t),{__INTERNAL__:{itemRef:i=>o=>{const a=H1(i);o?n.current[a]=o:delete n.current[a]}},scrollToField:function(i){let o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};const a=E4(i,r);a&&QI(a,Object.assign({scrollMode:"if-needed",block:"nearest"},o))},getFieldInstance:i=>{const o=H1(i);return n.current[o]}}),[e,t]);return[r]}var _4=function(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 i=0,r=Object.getOwnPropertySymbols(e);i{const n=d.useContext(la),{getPrefixCls:r,direction:i,form:o}=d.useContext(bt),{prefixCls:a,className:s,rootClassName:l,size:c,disabled:u=n,form:f,colon:h,labelAlign:m,labelWrap:y,labelCol:v,wrapperCol:b,hideRequiredMark:p,layout:g="horizontal",scrollToFirstError:x,requiredMark:S,onFinishFailed:C,name:w,style:E,feedbackIcons:_,variant:O}=e,M=_4(e,["prefixCls","className","rootClassName","size","disabled","form","colon","labelAlign","labelWrap","labelCol","wrapperCol","hideRequiredMark","layout","scrollToFirstError","requiredMark","onFinishFailed","name","style","feedbackIcons","variant"]),I=Ic(c),k=d.useContext(sE),F=d.useMemo(()=>S!==void 0?S:p?!1:o&&o.requiredMark!==void 0?o.requiredMark:!0,[p,S,o]),j=h??(o==null?void 0:o.colon),B=r("form",a),A=Tc(B),[P,R,N]=o0(B,A),D=te(B,`${B}-${g}`,{[`${B}-hide-required-mark`]:F===!1,[`${B}-rtl`]:i==="rtl",[`${B}-${I}`]:I},N,A,R,o==null?void 0:o.className,s,l),[H]=m$(f),{__INTERNAL__:G}=H;G.name=w;const X=d.useMemo(()=>({name:w,labelAlign:m,labelCol:v,labelWrap:y,wrapperCol:b,vertical:g==="vertical",colon:j,requiredMark:F,itemRef:G.itemRef,form:H,feedbackIcons:_}),[w,m,v,b,g,j,F,H,_]),W=d.useRef(null);d.useImperativeHandle(t,()=>{var U;return Object.assign(Object.assign({},H),{nativeElement:(U=W.current)===null||U===void 0?void 0:U.nativeElement})});const K=(U,Y)=>{if(U){let J={block:"nearest"};typeof U=="object"&&(J=U),H.scrollToField(Y,J)}},ee=U=>{if(C==null||C(U),U.errorFields.length){const Y=U.errorFields[0].name;if(x!==void 0){K(x,Y);return}o&&o.scrollToFirstError!==void 0&&K(o.scrollToFirstError,Y)}};return P(d.createElement(f_.Provider,{value:O},d.createElement(pE,{disabled:u},d.createElement(ca.Provider,{value:I},d.createElement(d_,{validateMessages:k},d.createElement(zi.Provider,{value:X},d.createElement(Rs,Object.assign({id:w},M,{name:w,onFinishFailed:ee,form:H,ref:W,style:Object.assign(Object.assign({},o==null?void 0:o.style),E),className:D}))))))))},O4=d.forwardRef($4);function P4(e){if(typeof e=="function")return e;const t=Co(e);return t.length<=1?t[0]:t}const p$=()=>{const{status:e,errors:t=[],warnings:n=[]}=d.useContext(da);return{status:e,errors:t,warnings:n}};p$.Context=da;function M4(e){const[t,n]=d.useState(e),r=d.useRef(null),i=d.useRef([]),o=d.useRef(!1);d.useEffect(()=>(o.current=!1,()=>{o.current=!0,Ft.cancel(r.current),r.current=null}),[]);function a(s){o.current||(r.current===null&&(i.current=[],r.current=Ft(()=>{r.current=null,n(l=>{let c=l;return i.current.forEach(u=>{c=u(c)}),c})})),i.current.push(s))}return[t,a]}function T4(){const{itemRef:e}=d.useContext(zi),t=d.useRef({});function n(r,i){const o=i&&typeof i=="object"&&i.ref,a=r.join("_");return(t.current.name!==a||t.current.originRef!==o)&&(t.current.name=a,t.current.originRef=o,t.current.ref=Si(e(r),o)),t.current.ref}return n}const R4=e=>{const{formItemCls:t}=e;return{"@media screen and (-ms-high-contrast: active), (-ms-high-contrast: none)":{[`${t}-control`]:{display:"flex"}}}},I4=_E(["Form","item-item"],(e,t)=>{let{rootPrefixCls:n}=t;const r=d$(e,n);return[R4(r)]}),k4=e=>{const{prefixCls:t,status:n,wrapperCol:r,children:i,errors:o,warnings:a,_internalItemRender:s,extra:l,help:c,fieldId:u,marginBottom:f,onErrorVisibleChanged:h}=e,m=`${t}-item`,y=d.useContext(zi),v=r||y.wrapperCol||{},b=te(`${m}-control`,v.className),p=d.useMemo(()=>Object.assign({},y),[y]);delete p.labelCol,delete p.wrapperCol;const g=d.createElement("div",{className:`${m}-control-input`},d.createElement("div",{className:`${m}-control-input-content`},i)),x=d.useMemo(()=>({prefixCls:t,status:n}),[t,n]),S=f!==null||o.length||a.length?d.createElement("div",{style:{display:"flex",flexWrap:"nowrap"}},d.createElement(Uv.Provider,{value:x},d.createElement(f$,{fieldId:u,errors:o,warnings:a,help:c,helpStatus:n,className:`${m}-explain-connected`,onVisibleChanged:h})),!!f&&d.createElement("div",{style:{width:0,height:f}})):null,C={};u&&(C.id=`${u}_extra`);const w=l?d.createElement("div",Object.assign({},C,{className:`${m}-extra`}),l):null,E=s&&s.mark==="pro_table_render"&&s.render?s.render(e,{input:g,errorList:S,extra:w}):d.createElement(d.Fragment,null,g,S,w);return d.createElement(zi.Provider,{value:p},d.createElement(mc,Object.assign({},v,{className:b}),E),d.createElement(I4,{prefixCls:t}))};var N4={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm0 820c-205.4 0-372-166.6-372-372s166.6-372 372-372 372 166.6 372 372-166.6 372-372 372z"}},{tag:"path",attrs:{d:"M623.6 316.7C593.6 290.4 554 276 512 276s-81.6 14.5-111.6 40.7C369.2 344 352 380.7 352 420v7.6c0 4.4 3.6 8 8 8h48c4.4 0 8-3.6 8-8V420c0-44.1 43.1-80 96-80s96 35.9 96 80c0 31.1-22 59.6-56.1 72.7-21.2 8.1-39.2 22.3-52.1 40.9-13.1 19-19.9 41.8-19.9 64.9V620c0 4.4 3.6 8 8 8h48c4.4 0 8-3.6 8-8v-22.7a48.3 48.3 0 0130.9-44.8c59-22.7 97.1-74.7 97.1-132.5.1-39.3-17.1-76-48.3-103.3zM472 732a40 40 0 1080 0 40 40 0 10-80 0z"}}]},name:"question-circle",theme:"outlined"},F4=function(t,n){return d.createElement(_n,Pe({},t,{ref:n,icon:N4}))},Aa=d.forwardRef(F4),A4=function(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 i=0,r=Object.getOwnPropertySymbols(e);i{let{prefixCls:t,label:n,htmlFor:r,labelCol:i,labelAlign:o,colon:a,required:s,requiredMark:l,tooltip:c,vertical:u}=e;var f;const[h]=VT("Form"),{labelAlign:m,labelCol:y,labelWrap:v,colon:b}=d.useContext(zi);if(!n)return null;const p=i||y||{},g=o||m,x=`${t}-item-label`,S=te(x,g==="left"&&`${x}-left`,p.className,{[`${x}-wrap`]:!!v});let C=n;const w=a===!0||b!==!1&&a!==!1;w&&!u&&typeof n=="string"&&n.trim()&&(C=n.replace(/[:|:]\s*$/,""));const _=L4(c);if(_){const{icon:k=d.createElement(Aa,null)}=_,F=A4(_,["icon"]),j=d.createElement(eo,Object.assign({},F),d.cloneElement(k,{className:`${t}-item-tooltip`,title:"",onClick:B=>{B.preventDefault()},tabIndex:null}));C=d.createElement(d.Fragment,null,C,j)}const O=l==="optional",M=typeof l=="function";M?C=l(C,{required:!!s}):O&&!s&&(C=d.createElement(d.Fragment,null,C,d.createElement("span",{className:`${t}-item-optional`,title:""},(h==null?void 0:h.optional)||((f=sa.Form)===null||f===void 0?void 0:f.optional))));const I=te({[`${t}-item-required`]:s,[`${t}-item-required-mark-optional`]:O||M,[`${t}-item-no-colon`]:!w});return d.createElement(mc,Object.assign({},p,{className:S}),d.createElement("label",{htmlFor:r,className:I,title:typeof n=="string"?n:""},C))},z4={success:DI,warning:KI,error:BI,validating:HE};function v$(e){let{children:t,errors:n,warnings:r,hasFeedback:i,validateStatus:o,prefixCls:a,meta:s,noStyle:l}=e;const c=`${a}-item`,{feedbackIcons:u}=d.useContext(zi),f=g$(n,r,s,null,!!i,o),{isFormItemInput:h,status:m,hasFeedback:y,feedbackIcon:v}=d.useContext(da),b=d.useMemo(()=>{var p;let g;if(i){const S=i!==!0&&i.icons||u,C=f&&((p=S==null?void 0:S({status:f,errors:n,warnings:r}))===null||p===void 0?void 0:p[f]),w=f&&z4[f];g=C!==!1&&w?d.createElement("span",{className:te(`${c}-feedback-icon`,`${c}-feedback-icon-${f}`)},C||d.createElement(w,null)):null}const x={status:f||"",errors:n,warnings:r,hasFeedback:!!i,feedbackIcon:g,isFormItemInput:!0};return l&&(x.status=(f??m)||"",x.isFormItemInput=h,x.hasFeedback=!!(i??y),x.feedbackIcon=i!==void 0?x.feedbackIcon:v),x},[f,i,l,h,m]);return d.createElement(da.Provider,{value:b},t)}var j4=function(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 i=0,r=Object.getOwnPropertySymbols(e);i{if(I&&E.current){const N=getComputedStyle(E.current);j(parseInt(N.marginBottom,10))}},[I,k]);const B=N=>{N||j(null)},P=function(){let N=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1;const D=N?_:c.errors,H=N?O:c.warnings;return g$(D,H,c,"",!!u,l)}(),R=te(x,n,r,{[`${x}-with-help`]:M||_.length||O.length,[`${x}-has-feedback`]:P&&u,[`${x}-has-success`]:P==="success",[`${x}-has-warning`]:P==="warning",[`${x}-has-error`]:P==="error",[`${x}-is-validating`]:P==="validating",[`${x}-hidden`]:f,[`${x}-${p}`]:p});return d.createElement("div",{className:R,style:i,ref:E},d.createElement(Hd,Object.assign({className:`${x}-row`},si(g,["_internalItemRender","colon","dependencies","extra","fieldKey","getValueFromEvent","getValueProps","htmlFor","id","initialValue","isListField","label","labelAlign","labelCol","labelWrap","messageVariables","name","normalize","noStyle","preserve","requiredMark","rules","shouldUpdate","trigger","tooltip","validateFirst","validateTrigger","valuePropName","wrapperCol","validateDebounce"])),d.createElement(D4,Object.assign({htmlFor:m},e,{requiredMark:S,required:y??v,prefixCls:t,vertical:w})),d.createElement(k4,Object.assign({},e,c,{errors:_,warnings:O,prefixCls:t,status:P,help:o,marginBottom:F,onErrorVisibleChanged:B}),d.createElement(u_.Provider,{value:b},d.createElement(v$,{prefixCls:t,meta:c,errors:c.errors,warnings:c.warnings,hasFeedback:u,validateStatus:P},h)))),!!F&&d.createElement("div",{className:`${x}-margin-offset`,style:{marginBottom:-F}}))}const H4="__SPLIT__";function V4(e,t){const n=Object.keys(e),r=Object.keys(t);return n.length===r.length&&n.every(i=>{const o=e[i],a=t[i];return o===a||typeof o=="function"||typeof a=="function"})}const W4=d.memo(e=>{let{children:t}=e;return t},(e,t)=>V4(e.control,t.control)&&e.update===t.update&&e.childProps.length===t.childProps.length&&e.childProps.every((n,r)=>n===t.childProps[r]));function V1(){return{errors:[],warnings:[],touched:!1,validating:!1,name:[],validated:!1}}function U4(e){const{name:t,noStyle:n,className:r,dependencies:i,prefixCls:o,shouldUpdate:a,rules:s,children:l,required:c,label:u,messageVariables:f,trigger:h="onChange",validateTrigger:m,hidden:y,help:v,layout:b}=e,{getPrefixCls:p}=d.useContext(bt),{name:g}=d.useContext(zi),x=P4(l),S=typeof x=="function",C=d.useContext(u_),{validateTrigger:w}=d.useContext(ua),E=m!==void 0?m:w,_=t!=null,O=p("form",o),M=Tc(O),[I,k,F]=o0(O,M);Pv();const j=d.useContext(dc),B=d.useRef(),[A,P]=M4({}),[R,N]=Ss(()=>V1()),D=U=>{const Y=j==null?void 0:j.getKey(U.name);if(N(U.destroy?V1():U,!0),n&&v!==!1&&C){let J=U.name;if(U.destroy)J=B.current||J;else if(Y!==void 0){const[re,ce]=Y;J=[re].concat(ge(ce)),B.current=J}C(U,J)}},H=(U,Y)=>{P(J=>{const re=Object.assign({},J),he=[].concat(ge(U.name.slice(0,-1)),ge(Y)).join(H4);return U.destroy?delete re[he]:re[he]=U,re})},[G,X]=d.useMemo(()=>{const U=ge(R.errors),Y=ge(R.warnings);return Object.values(A).forEach(J=>{U.push.apply(U,ge(J.errors||[])),Y.push.apply(Y,ge(J.warnings||[]))}),[U,Y]},[A,R.errors,R.warnings]),W=T4();function K(U,Y,J){return n&&!y?d.createElement(v$,{prefixCls:O,hasFeedback:e.hasFeedback,validateStatus:e.validateStatus,meta:R,errors:G,warnings:X,noStyle:!0},U):d.createElement(B4,Object.assign({key:"row"},e,{className:te(r,F,M,k),prefixCls:O,fieldId:Y,isRequired:J,errors:G,warnings:X,meta:R,onSubItemMetaChange:H,layout:b}),U)}if(!_&&!S&&!i)return I(K(x));let ee={};return typeof u=="string"?ee.label=u:t&&(ee.label=String(t)),f&&(ee=Object.assign(Object.assign({},ee),f)),I(d.createElement(Vv,Object.assign({},e,{messageVariables:ee,trigger:h,validateTrigger:E,onMetaChange:D}),(U,Y,J)=>{const re=Pl(t).length&&Y?Y.name:[],ce=h$(re,g),he=c!==void 0?c:!!(s!=null&&s.some(de=>{if(de&&typeof de=="object"&&de.required&&!de.warningOnly)return!0;if(typeof de=="function"){const ye=de(J);return(ye==null?void 0:ye.required)&&!(ye!=null&&ye.warningOnly)}return!1})),xe=Object.assign({},U);let ie=null;if(Array.isArray(x)&&_)ie=x;else if(!(S&&(!(a||i)||_))){if(!(i&&!S&&!_))if(d.isValidElement(x)){const de=Object.assign(Object.assign({},x.props),xe);if(de.id||(de.id=ce),v||G.length>0||X.length>0||e.extra){const se=[];(v||G.length>0)&&se.push(`${ce}_help`),e.extra&&se.push(`${ce}_extra`),de["aria-describedby"]=se.join(" ")}G.length>0&&(de["aria-invalid"]="true"),he&&(de["aria-required"]="true"),Mo(x)&&(de.ref=W(re,x)),new Set([].concat(ge(Pl(h)),ge(Pl(E)))).forEach(se=>{de[se]=function(){for(var we,$e,ue,Ne,ae,Ue=arguments.length,Fe=new Array(Ue),Se=0;Se{var{prefixCls:t,children:n}=e,r=G4(e,["prefixCls","children"]);const{getPrefixCls:i}=d.useContext(bt),o=i("form",t),a=d.useMemo(()=>({prefixCls:o,status:"error"}),[o]);return d.createElement(a_,Object.assign({},r),(s,l,c)=>d.createElement(Uv.Provider,{value:a},n(s.map(u=>Object.assign(Object.assign({},u),{fieldKey:u.key})),l,{errors:c.errors,warnings:c.warnings})))};function q4(){const{form:e}=d.useContext(zi);return e}const ar=O4;ar.Item=y$;ar.List=K4;ar.ErrorList=f$;ar.useForm=m$;ar.useFormInstance=q4;ar.useWatch=c_;ar.Provider=d_;ar.create=()=>{};function X4(e,t,n){return typeof n=="boolean"?n:e.length?!0:Co(t).some(i=>i.type===z_)}var b$=function(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 i=0,r=Object.getOwnPropertySymbols(e);id.forwardRef((a,s)=>d.createElement(i,Object.assign({ref:s,suffixCls:t,tagName:n},a)))}const a0=d.forwardRef((e,t)=>{const{prefixCls:n,suffixCls:r,className:i,tagName:o}=e,a=b$(e,["prefixCls","suffixCls","className","tagName"]),{getPrefixCls:s}=d.useContext(bt),l=s("layout",n),[c,u,f]=L_(l),h=r?`${l}-${r}`:l;return c(d.createElement(o,Object.assign({className:te(n||h,i,u,f),ref:t},a)))}),Y4=d.forwardRef((e,t)=>{const{direction:n}=d.useContext(bt),[r,i]=d.useState([]),{prefixCls:o,className:a,rootClassName:s,children:l,hasSider:c,tagName:u,style:f}=e,h=b$(e,["prefixCls","className","rootClassName","children","hasSider","tagName","style"]),m=si(h,["suffixCls"]),{getPrefixCls:y,layout:v}=d.useContext(bt),b=y("layout",o),p=X4(r,l,c),[g,x,S]=L_(b),C=te(b,{[`${b}-has-sider`]:p,[`${b}-rtl`]:n==="rtl"},v==null?void 0:v.className,a,s,x,S),w=d.useMemo(()=>({siderHook:{addSider:E=>{i(_=>[].concat(ge(_),[E]))},removeSider:E=>{i(_=>_.filter(O=>O!==E))}}}),[]);return g(d.createElement(N_.Provider,{value:w},d.createElement(u,Object.assign({ref:t,className:C,style:Object.assign(Object.assign({},v==null?void 0:v.style),f)},m),l)))}),Q4=Gf({tagName:"div",displayName:"Layout"})(Y4),Z4=Gf({suffixCls:"header",tagName:"header",displayName:"Header"})(a0),J4=Gf({suffixCls:"footer",tagName:"footer",displayName:"Footer"})(a0),ez=Gf({suffixCls:"content",tagName:"main",displayName:"Content"})(a0),ji=Q4;ji.Header=Z4;ji.Footer=J4;ji.Content=ez;ji.Sider=z_;ji._InternalSiderContext=D_;var tz={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M716.3 313.8c19-18.9 19-49.7 0-68.6l-69.9-69.9.1.1c-18.5-18.5-50.3-50.3-95.3-95.2-21.2-20.7-55.5-20.5-76.5.5L80.9 474.2a53.84 53.84 0 000 76.4L474.6 944a54.14 54.14 0 0076.5 0l165.1-165c19-18.9 19-49.7 0-68.6a48.7 48.7 0 00-68.7 0l-125 125.2c-5.2 5.2-13.3 5.2-18.5 0L189.5 521.4c-5.2-5.2-5.2-13.3 0-18.5l314.4-314.2c.4-.4.9-.7 1.3-1.1 5.2-4.1 12.4-3.7 17.2 1.1l125.2 125.1c19 19 49.8 19 68.7 0zM408.6 514.4a106.3 106.2 0 10212.6 0 106.3 106.2 0 10-212.6 0zm536.2-38.6L821.9 353.5c-19-18.9-49.8-18.9-68.7.1a48.4 48.4 0 000 68.6l83 82.9c5.2 5.2 5.2 13.3 0 18.5l-81.8 81.7a48.4 48.4 0 000 68.6 48.7 48.7 0 0068.7 0l121.8-121.7a53.93 53.93 0 00-.1-76.4z"}}]},name:"ant-design",theme:"outlined"},nz=function(t,n){return d.createElement(_n,Pe({},t,{ref:n,icon:tz}))},rz=d.forwardRef(nz),iz={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M511.6 76.3C264.3 76.2 64 276.4 64 523.5 64 718.9 189.3 885 363.8 946c23.5 5.9 19.9-10.8 19.9-22.2v-77.5c-135.7 15.9-141.2-73.9-150.3-88.9C215 726 171.5 718 184.5 703c30.9-15.9 62.4 4 98.9 57.9 26.4 39.1 77.9 32.5 104 26 5.7-23.5 17.9-44.5 34.7-60.8-140.6-25.2-199.2-111-199.2-213 0-49.5 16.3-95 48.3-131.7-20.4-60.5 1.9-112.3 4.9-120 58.1-5.2 118.5 41.6 123.2 45.3 33-8.9 70.7-13.6 112.9-13.6 42.4 0 80.2 4.9 113.5 13.9 11.3-8.6 67.3-48.8 121.3-43.9 2.9 7.7 24.7 58.3 5.5 118 32.4 36.8 48.9 82.7 48.9 132.3 0 102.2-59 188.1-200 212.9a127.5 127.5 0 0138.1 91v112.5c.8 9 0 17.9 15 17.9 177.1-59.7 304.6-227 304.6-424.1 0-247.2-200.4-447.3-447.5-447.3z"}}]},name:"github",theme:"outlined"},oz=function(t,n){return d.createElement(_n,Pe({},t,{ref:n,icon:iz}))},az=d.forwardRef(oz),sz={icon:{tag:"svg",attrs:{"fill-rule":"evenodd",viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M416 176H255.54v425.62c0 105.3-36.16 134.71-99.1 134.71-29.5 0-56.05-5.05-76.72-12.14L63 848.79C92.48 858.91 137.73 865 173.13 865 317.63 865 416 797.16 416 602.66zm349.49-16C610.26 160 512 248.13 512 364.6c0 100.32 75.67 163.13 185.7 203.64 79.57 28.36 111.03 53.7 111.03 95.22 0 45.57-36.36 74.96-105.13 74.96-63.87 0-121.85-21.31-161.15-42.58v-.04L512 822.43C549.36 843.73 619.12 865 694.74 865 876.52 865 961 767.75 961 653.3c0-97.25-54.04-160.04-170.94-204.63-86.47-34.44-122.81-53.67-122.81-97.23 0-34.45 31.45-65.84 96.3-65.84 63.83 0 107.73 21.45 133.3 34.64l38.34-128.19C895.1 174.46 841.11 160 765.5 160"}}]},name:"java-script",theme:"outlined"},lz=function(t,n){return d.createElement(_n,Pe({},t,{ref:n,icon:sz}))},cz=d.forwardRef(lz);/*! + ${n}-col-xl-24${t}-label`]:Jr(e),[`@media (max-width: ${Z(e.screenXSMax)})`]:[u$(e),{[t]:{[`${n}-col-xs-24${t}-label`]:Jr(e)}}],[`@media (max-width: ${Z(e.screenSMMax)})`]:{[t]:{[`${n}-col-sm-24${t}-label`]:Jr(e)}},[`@media (max-width: ${Z(e.screenMDMax)})`]:{[t]:{[`${n}-col-md-24${t}-label`]:Jr(e)}},[`@media (max-width: ${Z(e.screenLGMax)})`]:{[t]:{[`${n}-col-lg-24${t}-label`]:Jr(e)}}}},S4=e=>({labelRequiredMarkColor:e.colorError,labelColor:e.colorTextHeading,labelFontSize:e.fontSize,labelHeight:e.controlHeight,labelColonMarginInlineStart:e.marginXXS/2,labelColonMarginInlineEnd:e.marginXS,itemMarginBottom:e.marginLG,verticalLabelPadding:`0 0 ${e.paddingXS}px`,verticalLabelMargin:0,inlineItemMarginBottom:0}),d$=(e,t)=>An(e,{formItemCls:`${e.componentCls}-item`,rootPrefixCls:t}),o0=Er("Form",(e,t)=>{let{rootPrefixCls:n}=t;const r=d$(e,n);return[p4(r),v4(r),g4(r),j1(r,r.componentCls),j1(r,r.formItemCls),y4(r),b4(r),x4(r),Lk(r),kv]},S4,{order:-1e3}),B1=[];function Zh(e,t,n){let r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:0;return{key:typeof e=="string"?e:`${t}-${r}`,error:e,errorStatus:n}}const f$=e=>{let{help:t,helpStatus:n,errors:r=B1,warnings:i=B1,className:o,fieldId:a,onVisibleChanged:s}=e;const{prefixCls:l}=d.useContext(Uv),c=`${l}-item-explain`,u=Tc(l),[f,h,m]=o0(l,u),y=d.useMemo(()=>$b(l),[l]),v=Hd(r),b=Hd(i),p=d.useMemo(()=>t!=null?[Zh(t,"help",n)]:[].concat(ge(v.map((x,S)=>Zh(x,"error","error",S))),ge(b.map((x,S)=>Zh(x,"warning","warning",S)))),[t,n,v,b]),g={};return a&&(g.id=`${a}_help`),f(d.createElement(To,{motionDeadline:y.motionDeadline,motionName:`${l}-show-help`,visible:!!p.length,onVisibleChanged:s},x=>{const{className:S,style:C}=x;return d.createElement("div",Object.assign({},g,{className:te(c,S,m,u,o,h),style:C,role:"alert"}),d.createElement(vI,Object.assign({keys:p},$b(l),{motionName:`${l}-show-help-item`,component:!1}),w=>{const{key:E,error:_,errorStatus:O,className:M,style:I}=w;return d.createElement("div",{key:E,className:te(M,{[`${c}-${O}`]:O}),style:I},_)}))}))},C4=["parentNode"],w4="form_item";function Pl(e){return e===void 0||e===!1?[]:Array.isArray(e)?e:[e]}function h$(e,t){if(!e.length)return;const n=e.join("_");return t?`${t}_${n}`:C4.includes(n)?`${w4}_${n}`:n}function g$(e,t,n,r,i,o){let a=r;return o!==void 0?a=o:n.validating?a="validating":e.length?a="error":t.length?a="warning":(n.touched||i&&n.validated)&&(a="success"),a}function H1(e){return Pl(e).join("_")}function E4(e,t){const n=t.getFieldInstance(e),r=Mw(n);if(r)return r;const i=h$(Pl(e),t.__INTERNAL__.name);if(i)return document.getElementById(i)}function m$(e){const[t]=Wv(),n=d.useRef({}),r=d.useMemo(()=>e??Object.assign(Object.assign({},t),{__INTERNAL__:{itemRef:i=>o=>{const a=H1(i);o?n.current[a]=o:delete n.current[a]}},scrollToField:function(i){let o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};const a=E4(i,r);a&&QI(a,Object.assign({scrollMode:"if-needed",block:"nearest"},o))},getFieldInstance:i=>{const o=H1(i);return n.current[o]}}),[e,t]);return[r]}var _4=function(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 i=0,r=Object.getOwnPropertySymbols(e);i{const n=d.useContext(la),{getPrefixCls:r,direction:i,form:o}=d.useContext(bt),{prefixCls:a,className:s,rootClassName:l,size:c,disabled:u=n,form:f,colon:h,labelAlign:m,labelWrap:y,labelCol:v,wrapperCol:b,hideRequiredMark:p,layout:g="horizontal",scrollToFirstError:x,requiredMark:S,onFinishFailed:C,name:w,style:E,feedbackIcons:_,variant:O}=e,M=_4(e,["prefixCls","className","rootClassName","size","disabled","form","colon","labelAlign","labelWrap","labelCol","wrapperCol","hideRequiredMark","layout","scrollToFirstError","requiredMark","onFinishFailed","name","style","feedbackIcons","variant"]),I=Ic(c),k=d.useContext(sE),F=d.useMemo(()=>S!==void 0?S:p?!1:o&&o.requiredMark!==void 0?o.requiredMark:!0,[p,S,o]),j=h??(o==null?void 0:o.colon),B=r("form",a),A=Tc(B),[P,R,N]=o0(B,A),D=te(B,`${B}-${g}`,{[`${B}-hide-required-mark`]:F===!1,[`${B}-rtl`]:i==="rtl",[`${B}-${I}`]:I},N,A,R,o==null?void 0:o.className,s,l),[H]=m$(f),{__INTERNAL__:G}=H;G.name=w;const X=d.useMemo(()=>({name:w,labelAlign:m,labelCol:v,labelWrap:y,wrapperCol:b,vertical:g==="vertical",colon:j,requiredMark:F,itemRef:G.itemRef,form:H,feedbackIcons:_}),[w,m,v,b,g,j,F,H,_]),W=d.useRef(null);d.useImperativeHandle(t,()=>{var U;return Object.assign(Object.assign({},H),{nativeElement:(U=W.current)===null||U===void 0?void 0:U.nativeElement})});const K=(U,Y)=>{if(U){let J={block:"nearest"};typeof U=="object"&&(J=U),H.scrollToField(Y,J)}},ee=U=>{if(C==null||C(U),U.errorFields.length){const Y=U.errorFields[0].name;if(x!==void 0){K(x,Y);return}o&&o.scrollToFirstError!==void 0&&K(o.scrollToFirstError,Y)}};return P(d.createElement(f_.Provider,{value:O},d.createElement(pE,{disabled:u},d.createElement(ca.Provider,{value:I},d.createElement(d_,{validateMessages:k},d.createElement(zi.Provider,{value:X},d.createElement(Rs,Object.assign({id:w},M,{name:w,onFinishFailed:ee,form:H,ref:W,style:Object.assign(Object.assign({},o==null?void 0:o.style),E),className:D}))))))))},O4=d.forwardRef($4);function P4(e){if(typeof e=="function")return e;const t=Co(e);return t.length<=1?t[0]:t}const p$=()=>{const{status:e,errors:t=[],warnings:n=[]}=d.useContext(da);return{status:e,errors:t,warnings:n}};p$.Context=da;function M4(e){const[t,n]=d.useState(e),r=d.useRef(null),i=d.useRef([]),o=d.useRef(!1);d.useEffect(()=>(o.current=!1,()=>{o.current=!0,Ft.cancel(r.current),r.current=null}),[]);function a(s){o.current||(r.current===null&&(i.current=[],r.current=Ft(()=>{r.current=null,n(l=>{let c=l;return i.current.forEach(u=>{c=u(c)}),c})})),i.current.push(s))}return[t,a]}function T4(){const{itemRef:e}=d.useContext(zi),t=d.useRef({});function n(r,i){const o=i&&typeof i=="object"&&i.ref,a=r.join("_");return(t.current.name!==a||t.current.originRef!==o)&&(t.current.name=a,t.current.originRef=o,t.current.ref=Si(e(r),o)),t.current.ref}return n}const R4=e=>{const{formItemCls:t}=e;return{"@media screen and (-ms-high-contrast: active), (-ms-high-contrast: none)":{[`${t}-control`]:{display:"flex"}}}},I4=_E(["Form","item-item"],(e,t)=>{let{rootPrefixCls:n}=t;const r=d$(e,n);return[R4(r)]}),k4=e=>{const{prefixCls:t,status:n,wrapperCol:r,children:i,errors:o,warnings:a,_internalItemRender:s,extra:l,help:c,fieldId:u,marginBottom:f,onErrorVisibleChanged:h}=e,m=`${t}-item`,y=d.useContext(zi),v=r||y.wrapperCol||{},b=te(`${m}-control`,v.className),p=d.useMemo(()=>Object.assign({},y),[y]);delete p.labelCol,delete p.wrapperCol;const g=d.createElement("div",{className:`${m}-control-input`},d.createElement("div",{className:`${m}-control-input-content`},i)),x=d.useMemo(()=>({prefixCls:t,status:n}),[t,n]),S=f!==null||o.length||a.length?d.createElement("div",{style:{display:"flex",flexWrap:"nowrap"}},d.createElement(Uv.Provider,{value:x},d.createElement(f$,{fieldId:u,errors:o,warnings:a,help:c,helpStatus:n,className:`${m}-explain-connected`,onVisibleChanged:h})),!!f&&d.createElement("div",{style:{width:0,height:f}})):null,C={};u&&(C.id=`${u}_extra`);const w=l?d.createElement("div",Object.assign({},C,{className:`${m}-extra`}),l):null,E=s&&s.mark==="pro_table_render"&&s.render?s.render(e,{input:g,errorList:S,extra:w}):d.createElement(d.Fragment,null,g,S,w);return d.createElement(zi.Provider,{value:p},d.createElement(Ko,Object.assign({},v,{className:b}),E),d.createElement(I4,{prefixCls:t}))};var N4={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm0 820c-205.4 0-372-166.6-372-372s166.6-372 372-372 372 166.6 372 372-166.6 372-372 372z"}},{tag:"path",attrs:{d:"M623.6 316.7C593.6 290.4 554 276 512 276s-81.6 14.5-111.6 40.7C369.2 344 352 380.7 352 420v7.6c0 4.4 3.6 8 8 8h48c4.4 0 8-3.6 8-8V420c0-44.1 43.1-80 96-80s96 35.9 96 80c0 31.1-22 59.6-56.1 72.7-21.2 8.1-39.2 22.3-52.1 40.9-13.1 19-19.9 41.8-19.9 64.9V620c0 4.4 3.6 8 8 8h48c4.4 0 8-3.6 8-8v-22.7a48.3 48.3 0 0130.9-44.8c59-22.7 97.1-74.7 97.1-132.5.1-39.3-17.1-76-48.3-103.3zM472 732a40 40 0 1080 0 40 40 0 10-80 0z"}}]},name:"question-circle",theme:"outlined"},F4=function(t,n){return d.createElement(_n,Pe({},t,{ref:n,icon:N4}))},Aa=d.forwardRef(F4),A4=function(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 i=0,r=Object.getOwnPropertySymbols(e);i{let{prefixCls:t,label:n,htmlFor:r,labelCol:i,labelAlign:o,colon:a,required:s,requiredMark:l,tooltip:c,vertical:u}=e;var f;const[h]=VT("Form"),{labelAlign:m,labelCol:y,labelWrap:v,colon:b}=d.useContext(zi);if(!n)return null;const p=i||y||{},g=o||m,x=`${t}-item-label`,S=te(x,g==="left"&&`${x}-left`,p.className,{[`${x}-wrap`]:!!v});let C=n;const w=a===!0||b!==!1&&a!==!1;w&&!u&&typeof n=="string"&&n.trim()&&(C=n.replace(/[:|:]\s*$/,""));const _=L4(c);if(_){const{icon:k=d.createElement(Aa,null)}=_,F=A4(_,["icon"]),j=d.createElement(eo,Object.assign({},F),d.cloneElement(k,{className:`${t}-item-tooltip`,title:"",onClick:B=>{B.preventDefault()},tabIndex:null}));C=d.createElement(d.Fragment,null,C,j)}const O=l==="optional",M=typeof l=="function";M?C=l(C,{required:!!s}):O&&!s&&(C=d.createElement(d.Fragment,null,C,d.createElement("span",{className:`${t}-item-optional`,title:""},(h==null?void 0:h.optional)||((f=sa.Form)===null||f===void 0?void 0:f.optional))));const I=te({[`${t}-item-required`]:s,[`${t}-item-required-mark-optional`]:O||M,[`${t}-item-no-colon`]:!w});return d.createElement(Ko,Object.assign({},p,{className:S}),d.createElement("label",{htmlFor:r,className:I,title:typeof n=="string"?n:""},C))},z4={success:DI,warning:KI,error:BI,validating:HE};function v$(e){let{children:t,errors:n,warnings:r,hasFeedback:i,validateStatus:o,prefixCls:a,meta:s,noStyle:l}=e;const c=`${a}-item`,{feedbackIcons:u}=d.useContext(zi),f=g$(n,r,s,null,!!i,o),{isFormItemInput:h,status:m,hasFeedback:y,feedbackIcon:v}=d.useContext(da),b=d.useMemo(()=>{var p;let g;if(i){const S=i!==!0&&i.icons||u,C=f&&((p=S==null?void 0:S({status:f,errors:n,warnings:r}))===null||p===void 0?void 0:p[f]),w=f&&z4[f];g=C!==!1&&w?d.createElement("span",{className:te(`${c}-feedback-icon`,`${c}-feedback-icon-${f}`)},C||d.createElement(w,null)):null}const x={status:f||"",errors:n,warnings:r,hasFeedback:!!i,feedbackIcon:g,isFormItemInput:!0};return l&&(x.status=(f??m)||"",x.isFormItemInput=h,x.hasFeedback=!!(i??y),x.feedbackIcon=i!==void 0?x.feedbackIcon:v),x},[f,i,l,h,m]);return d.createElement(da.Provider,{value:b},t)}var j4=function(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 i=0,r=Object.getOwnPropertySymbols(e);i{if(I&&E.current){const N=getComputedStyle(E.current);j(parseInt(N.marginBottom,10))}},[I,k]);const B=N=>{N||j(null)},P=function(){let N=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1;const D=N?_:c.errors,H=N?O:c.warnings;return g$(D,H,c,"",!!u,l)}(),R=te(x,n,r,{[`${x}-with-help`]:M||_.length||O.length,[`${x}-has-feedback`]:P&&u,[`${x}-has-success`]:P==="success",[`${x}-has-warning`]:P==="warning",[`${x}-has-error`]:P==="error",[`${x}-is-validating`]:P==="validating",[`${x}-hidden`]:f,[`${x}-${p}`]:p});return d.createElement("div",{className:R,style:i,ref:E},d.createElement(mc,Object.assign({className:`${x}-row`},si(g,["_internalItemRender","colon","dependencies","extra","fieldKey","getValueFromEvent","getValueProps","htmlFor","id","initialValue","isListField","label","labelAlign","labelCol","labelWrap","messageVariables","name","normalize","noStyle","preserve","requiredMark","rules","shouldUpdate","trigger","tooltip","validateFirst","validateTrigger","valuePropName","wrapperCol","validateDebounce"])),d.createElement(D4,Object.assign({htmlFor:m},e,{requiredMark:S,required:y??v,prefixCls:t,vertical:w})),d.createElement(k4,Object.assign({},e,c,{errors:_,warnings:O,prefixCls:t,status:P,help:o,marginBottom:F,onErrorVisibleChanged:B}),d.createElement(u_.Provider,{value:b},d.createElement(v$,{prefixCls:t,meta:c,errors:c.errors,warnings:c.warnings,hasFeedback:u,validateStatus:P},h)))),!!F&&d.createElement("div",{className:`${x}-margin-offset`,style:{marginBottom:-F}}))}const H4="__SPLIT__";function V4(e,t){const n=Object.keys(e),r=Object.keys(t);return n.length===r.length&&n.every(i=>{const o=e[i],a=t[i];return o===a||typeof o=="function"||typeof a=="function"})}const W4=d.memo(e=>{let{children:t}=e;return t},(e,t)=>V4(e.control,t.control)&&e.update===t.update&&e.childProps.length===t.childProps.length&&e.childProps.every((n,r)=>n===t.childProps[r]));function V1(){return{errors:[],warnings:[],touched:!1,validating:!1,name:[],validated:!1}}function U4(e){const{name:t,noStyle:n,className:r,dependencies:i,prefixCls:o,shouldUpdate:a,rules:s,children:l,required:c,label:u,messageVariables:f,trigger:h="onChange",validateTrigger:m,hidden:y,help:v,layout:b}=e,{getPrefixCls:p}=d.useContext(bt),{name:g}=d.useContext(zi),x=P4(l),S=typeof x=="function",C=d.useContext(u_),{validateTrigger:w}=d.useContext(ua),E=m!==void 0?m:w,_=t!=null,O=p("form",o),M=Tc(O),[I,k,F]=o0(O,M);Pv();const j=d.useContext(dc),B=d.useRef(),[A,P]=M4({}),[R,N]=Ss(()=>V1()),D=U=>{const Y=j==null?void 0:j.getKey(U.name);if(N(U.destroy?V1():U,!0),n&&v!==!1&&C){let J=U.name;if(U.destroy)J=B.current||J;else if(Y!==void 0){const[re,ce]=Y;J=[re].concat(ge(ce)),B.current=J}C(U,J)}},H=(U,Y)=>{P(J=>{const re=Object.assign({},J),he=[].concat(ge(U.name.slice(0,-1)),ge(Y)).join(H4);return U.destroy?delete re[he]:re[he]=U,re})},[G,X]=d.useMemo(()=>{const U=ge(R.errors),Y=ge(R.warnings);return Object.values(A).forEach(J=>{U.push.apply(U,ge(J.errors||[])),Y.push.apply(Y,ge(J.warnings||[]))}),[U,Y]},[A,R.errors,R.warnings]),W=T4();function K(U,Y,J){return n&&!y?d.createElement(v$,{prefixCls:O,hasFeedback:e.hasFeedback,validateStatus:e.validateStatus,meta:R,errors:G,warnings:X,noStyle:!0},U):d.createElement(B4,Object.assign({key:"row"},e,{className:te(r,F,M,k),prefixCls:O,fieldId:Y,isRequired:J,errors:G,warnings:X,meta:R,onSubItemMetaChange:H,layout:b}),U)}if(!_&&!S&&!i)return I(K(x));let ee={};return typeof u=="string"?ee.label=u:t&&(ee.label=String(t)),f&&(ee=Object.assign(Object.assign({},ee),f)),I(d.createElement(Vv,Object.assign({},e,{messageVariables:ee,trigger:h,validateTrigger:E,onMetaChange:D}),(U,Y,J)=>{const re=Pl(t).length&&Y?Y.name:[],ce=h$(re,g),he=c!==void 0?c:!!(s!=null&&s.some(de=>{if(de&&typeof de=="object"&&de.required&&!de.warningOnly)return!0;if(typeof de=="function"){const ye=de(J);return(ye==null?void 0:ye.required)&&!(ye!=null&&ye.warningOnly)}return!1})),Se=Object.assign({},U);let ie=null;if(Array.isArray(x)&&_)ie=x;else if(!(S&&(!(a||i)||_))){if(!(i&&!S&&!_))if(d.isValidElement(x)){const de=Object.assign(Object.assign({},x.props),Se);if(de.id||(de.id=ce),v||G.length>0||X.length>0||e.extra){const se=[];(v||G.length>0)&&se.push(`${ce}_help`),e.extra&&se.push(`${ce}_extra`),de["aria-describedby"]=se.join(" ")}G.length>0&&(de["aria-invalid"]="true"),he&&(de["aria-required"]="true"),Mo(x)&&(de.ref=W(re,x)),new Set([].concat(ge(Pl(h)),ge(Pl(E)))).forEach(se=>{de[se]=function(){for(var we,$e,ue,Ne,ae,Ue=arguments.length,Fe=new Array(Ue),Ce=0;Ce{var{prefixCls:t,children:n}=e,r=G4(e,["prefixCls","children"]);const{getPrefixCls:i}=d.useContext(bt),o=i("form",t),a=d.useMemo(()=>({prefixCls:o,status:"error"}),[o]);return d.createElement(a_,Object.assign({},r),(s,l,c)=>d.createElement(Uv.Provider,{value:a},n(s.map(u=>Object.assign(Object.assign({},u),{fieldKey:u.key})),l,{errors:c.errors,warnings:c.warnings})))};function q4(){const{form:e}=d.useContext(zi);return e}const ar=O4;ar.Item=y$;ar.List=K4;ar.ErrorList=f$;ar.useForm=m$;ar.useFormInstance=q4;ar.useWatch=c_;ar.Provider=d_;ar.create=()=>{};function X4(e,t,n){return typeof n=="boolean"?n:e.length?!0:Co(t).some(i=>i.type===z_)}var b$=function(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 i=0,r=Object.getOwnPropertySymbols(e);id.forwardRef((a,s)=>d.createElement(i,Object.assign({ref:s,suffixCls:t,tagName:n},a)))}const a0=d.forwardRef((e,t)=>{const{prefixCls:n,suffixCls:r,className:i,tagName:o}=e,a=b$(e,["prefixCls","suffixCls","className","tagName"]),{getPrefixCls:s}=d.useContext(bt),l=s("layout",n),[c,u,f]=L_(l),h=r?`${l}-${r}`:l;return c(d.createElement(o,Object.assign({className:te(n||h,i,u,f),ref:t},a)))}),Y4=d.forwardRef((e,t)=>{const{direction:n}=d.useContext(bt),[r,i]=d.useState([]),{prefixCls:o,className:a,rootClassName:s,children:l,hasSider:c,tagName:u,style:f}=e,h=b$(e,["prefixCls","className","rootClassName","children","hasSider","tagName","style"]),m=si(h,["suffixCls"]),{getPrefixCls:y,layout:v}=d.useContext(bt),b=y("layout",o),p=X4(r,l,c),[g,x,S]=L_(b),C=te(b,{[`${b}-has-sider`]:p,[`${b}-rtl`]:n==="rtl"},v==null?void 0:v.className,a,s,x,S),w=d.useMemo(()=>({siderHook:{addSider:E=>{i(_=>[].concat(ge(_),[E]))},removeSider:E=>{i(_=>_.filter(O=>O!==E))}}}),[]);return g(d.createElement(N_.Provider,{value:w},d.createElement(u,Object.assign({ref:t,className:C,style:Object.assign(Object.assign({},v==null?void 0:v.style),f)},m),l)))}),Q4=Uf({tagName:"div",displayName:"Layout"})(Y4),Z4=Uf({suffixCls:"header",tagName:"header",displayName:"Header"})(a0),J4=Uf({suffixCls:"footer",tagName:"footer",displayName:"Footer"})(a0),ez=Uf({suffixCls:"content",tagName:"main",displayName:"Content"})(a0),ji=Q4;ji.Header=Z4;ji.Footer=J4;ji.Content=ez;ji.Sider=z_;ji._InternalSiderContext=D_;var tz={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M716.3 313.8c19-18.9 19-49.7 0-68.6l-69.9-69.9.1.1c-18.5-18.5-50.3-50.3-95.3-95.2-21.2-20.7-55.5-20.5-76.5.5L80.9 474.2a53.84 53.84 0 000 76.4L474.6 944a54.14 54.14 0 0076.5 0l165.1-165c19-18.9 19-49.7 0-68.6a48.7 48.7 0 00-68.7 0l-125 125.2c-5.2 5.2-13.3 5.2-18.5 0L189.5 521.4c-5.2-5.2-5.2-13.3 0-18.5l314.4-314.2c.4-.4.9-.7 1.3-1.1 5.2-4.1 12.4-3.7 17.2 1.1l125.2 125.1c19 19 49.8 19 68.7 0zM408.6 514.4a106.3 106.2 0 10212.6 0 106.3 106.2 0 10-212.6 0zm536.2-38.6L821.9 353.5c-19-18.9-49.8-18.9-68.7.1a48.4 48.4 0 000 68.6l83 82.9c5.2 5.2 5.2 13.3 0 18.5l-81.8 81.7a48.4 48.4 0 000 68.6 48.7 48.7 0 0068.7 0l121.8-121.7a53.93 53.93 0 00-.1-76.4z"}}]},name:"ant-design",theme:"outlined"},nz=function(t,n){return d.createElement(_n,Pe({},t,{ref:n,icon:tz}))},rz=d.forwardRef(nz),iz={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M511.6 76.3C264.3 76.2 64 276.4 64 523.5 64 718.9 189.3 885 363.8 946c23.5 5.9 19.9-10.8 19.9-22.2v-77.5c-135.7 15.9-141.2-73.9-150.3-88.9C215 726 171.5 718 184.5 703c30.9-15.9 62.4 4 98.9 57.9 26.4 39.1 77.9 32.5 104 26 5.7-23.5 17.9-44.5 34.7-60.8-140.6-25.2-199.2-111-199.2-213 0-49.5 16.3-95 48.3-131.7-20.4-60.5 1.9-112.3 4.9-120 58.1-5.2 118.5 41.6 123.2 45.3 33-8.9 70.7-13.6 112.9-13.6 42.4 0 80.2 4.9 113.5 13.9 11.3-8.6 67.3-48.8 121.3-43.9 2.9 7.7 24.7 58.3 5.5 118 32.4 36.8 48.9 82.7 48.9 132.3 0 102.2-59 188.1-200 212.9a127.5 127.5 0 0138.1 91v112.5c.8 9 0 17.9 15 17.9 177.1-59.7 304.6-227 304.6-424.1 0-247.2-200.4-447.3-447.5-447.3z"}}]},name:"github",theme:"outlined"},oz=function(t,n){return d.createElement(_n,Pe({},t,{ref:n,icon:iz}))},az=d.forwardRef(oz),sz={icon:{tag:"svg",attrs:{"fill-rule":"evenodd",viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M416 176H255.54v425.62c0 105.3-36.16 134.71-99.1 134.71-29.5 0-56.05-5.05-76.72-12.14L63 848.79C92.48 858.91 137.73 865 173.13 865 317.63 865 416 797.16 416 602.66zm349.49-16C610.26 160 512 248.13 512 364.6c0 100.32 75.67 163.13 185.7 203.64 79.57 28.36 111.03 53.7 111.03 95.22 0 45.57-36.36 74.96-105.13 74.96-63.87 0-121.85-21.31-161.15-42.58v-.04L512 822.43C549.36 843.73 619.12 865 694.74 865 876.52 865 961 767.75 961 653.3c0-97.25-54.04-160.04-170.94-204.63-86.47-34.44-122.81-53.67-122.81-97.23 0-34.45 31.45-65.84 96.3-65.84 63.83 0 107.73 21.45 133.3 34.64l38.34-128.19C895.1 174.46 841.11 160 765.5 160"}}]},name:"java-script",theme:"outlined"},lz=function(t,n){return d.createElement(_n,Pe({},t,{ref:n,icon:sz}))},cz=d.forwardRef(lz);/*! * @kurkle/color v0.3.2 * https://github.com/kurkle/color#readme * (c) 2023 Jukka Kurkela * Released under the MIT License - */function Lc(e){return e+.5|0}const so=(e,t,n)=>Math.max(Math.min(e,n),t);function cl(e){return so(Lc(e*2.55),0,255)}function bo(e){return so(Lc(e*255),0,255)}function Mi(e){return so(Lc(e/2.55)/100,0,1)}function W1(e){return so(Lc(e*100),0,100)}const Tr={0:0,1:1,2:2,3:3,4:4,5:5,6:6,7:7,8:8,9:9,A:10,B:11,C:12,D:13,E:14,F:15,a:10,b:11,c:12,d:13,e:14,f:15},op=[..."0123456789ABCDEF"],uz=e=>op[e&15],dz=e=>op[(e&240)>>4]+op[e&15],bu=e=>(e&240)>>4===(e&15),fz=e=>bu(e.r)&&bu(e.g)&&bu(e.b)&&bu(e.a);function hz(e){var t=e.length,n;return e[0]==="#"&&(t===4||t===5?n={r:255&Tr[e[1]]*17,g:255&Tr[e[2]]*17,b:255&Tr[e[3]]*17,a:t===5?Tr[e[4]]*17:255}:(t===7||t===9)&&(n={r:Tr[e[1]]<<4|Tr[e[2]],g:Tr[e[3]]<<4|Tr[e[4]],b:Tr[e[5]]<<4|Tr[e[6]],a:t===9?Tr[e[7]]<<4|Tr[e[8]]:255})),n}const gz=(e,t)=>e<255?t(e):"";function mz(e){var t=fz(e)?uz:dz;return e?"#"+t(e.r)+t(e.g)+t(e.b)+gz(e.a,t):void 0}const pz=/^(hsla?|hwb|hsv)\(\s*([-+.e\d]+)(?:deg)?[\s,]+([-+.e\d]+)%[\s,]+([-+.e\d]+)%(?:[\s,]+([-+.e\d]+)(%)?)?\s*\)$/;function x$(e,t,n){const r=t*Math.min(n,1-n),i=(o,a=(o+e/30)%12)=>n-r*Math.max(Math.min(a-3,9-a,1),-1);return[i(0),i(8),i(4)]}function vz(e,t,n){const r=(i,o=(i+e/60)%6)=>n-n*t*Math.max(Math.min(o,4-o,1),0);return[r(5),r(3),r(1)]}function yz(e,t,n){const r=x$(e,1,.5);let i;for(t+n>1&&(i=1/(t+n),t*=i,n*=i),i=0;i<3;i++)r[i]*=1-t-n,r[i]+=t;return r}function bz(e,t,n,r,i){return e===i?(t-n)/r+(t.5?u/(2-o-a):u/(o+a),l=bz(n,r,i,u,o),l=l*60+.5),[l|0,c||0,s]}function l0(e,t,n,r){return(Array.isArray(t)?e(t[0],t[1],t[2]):e(t,n,r)).map(bo)}function c0(e,t,n){return l0(x$,e,t,n)}function xz(e,t,n){return l0(yz,e,t,n)}function Sz(e,t,n){return l0(vz,e,t,n)}function S$(e){return(e%360+360)%360}function Cz(e){const t=pz.exec(e);let n=255,r;if(!t)return;t[5]!==r&&(n=t[6]?cl(+t[5]):bo(+t[5]));const i=S$(+t[2]),o=+t[3]/100,a=+t[4]/100;return t[1]==="hwb"?r=xz(i,o,a):t[1]==="hsv"?r=Sz(i,o,a):r=c0(i,o,a),{r:r[0],g:r[1],b:r[2],a:n}}function wz(e,t){var n=s0(e);n[0]=S$(n[0]+t),n=c0(n),e.r=n[0],e.g=n[1],e.b=n[2]}function Ez(e){if(!e)return;const t=s0(e),n=t[0],r=W1(t[1]),i=W1(t[2]);return e.a<255?`hsla(${n}, ${r}%, ${i}%, ${Mi(e.a)})`:`hsl(${n}, ${r}%, ${i}%)`}const U1={x:"dark",Z:"light",Y:"re",X:"blu",W:"gr",V:"medium",U:"slate",A:"ee",T:"ol",S:"or",B:"ra",C:"lateg",D:"ights",R:"in",Q:"turquois",E:"hi",P:"ro",O:"al",N:"le",M:"de",L:"yello",F:"en",K:"ch",G:"arks",H:"ea",I:"ightg",J:"wh"},G1={OiceXe:"f0f8ff",antiquewEte:"faebd7",aqua:"ffff",aquamarRe:"7fffd4",azuY:"f0ffff",beige:"f5f5dc",bisque:"ffe4c4",black:"0",blanKedOmond:"ffebcd",Xe:"ff",XeviTet:"8a2be2",bPwn:"a52a2a",burlywood:"deb887",caMtXe:"5f9ea0",KartYuse:"7fff00",KocTate:"d2691e",cSO:"ff7f50",cSnflowerXe:"6495ed",cSnsilk:"fff8dc",crimson:"dc143c",cyan:"ffff",xXe:"8b",xcyan:"8b8b",xgTMnPd:"b8860b",xWay:"a9a9a9",xgYF:"6400",xgYy:"a9a9a9",xkhaki:"bdb76b",xmagFta:"8b008b",xTivegYF:"556b2f",xSange:"ff8c00",xScEd:"9932cc",xYd:"8b0000",xsOmon:"e9967a",xsHgYF:"8fbc8f",xUXe:"483d8b",xUWay:"2f4f4f",xUgYy:"2f4f4f",xQe:"ced1",xviTet:"9400d3",dAppRk:"ff1493",dApskyXe:"bfff",dimWay:"696969",dimgYy:"696969",dodgerXe:"1e90ff",fiYbrick:"b22222",flSOwEte:"fffaf0",foYstWAn:"228b22",fuKsia:"ff00ff",gaRsbSo:"dcdcdc",ghostwEte:"f8f8ff",gTd:"ffd700",gTMnPd:"daa520",Way:"808080",gYF:"8000",gYFLw:"adff2f",gYy:"808080",honeyMw:"f0fff0",hotpRk:"ff69b4",RdianYd:"cd5c5c",Rdigo:"4b0082",ivSy:"fffff0",khaki:"f0e68c",lavFMr:"e6e6fa",lavFMrXsh:"fff0f5",lawngYF:"7cfc00",NmoncEffon:"fffacd",ZXe:"add8e6",ZcSO:"f08080",Zcyan:"e0ffff",ZgTMnPdLw:"fafad2",ZWay:"d3d3d3",ZgYF:"90ee90",ZgYy:"d3d3d3",ZpRk:"ffb6c1",ZsOmon:"ffa07a",ZsHgYF:"20b2aa",ZskyXe:"87cefa",ZUWay:"778899",ZUgYy:"778899",ZstAlXe:"b0c4de",ZLw:"ffffe0",lime:"ff00",limegYF:"32cd32",lRF:"faf0e6",magFta:"ff00ff",maPon:"800000",VaquamarRe:"66cdaa",VXe:"cd",VScEd:"ba55d3",VpurpN:"9370db",VsHgYF:"3cb371",VUXe:"7b68ee",VsprRggYF:"fa9a",VQe:"48d1cc",VviTetYd:"c71585",midnightXe:"191970",mRtcYam:"f5fffa",mistyPse:"ffe4e1",moccasR:"ffe4b5",navajowEte:"ffdead",navy:"80",Tdlace:"fdf5e6",Tive:"808000",TivedBb:"6b8e23",Sange:"ffa500",SangeYd:"ff4500",ScEd:"da70d6",pOegTMnPd:"eee8aa",pOegYF:"98fb98",pOeQe:"afeeee",pOeviTetYd:"db7093",papayawEp:"ffefd5",pHKpuff:"ffdab9",peru:"cd853f",pRk:"ffc0cb",plum:"dda0dd",powMrXe:"b0e0e6",purpN:"800080",YbeccapurpN:"663399",Yd:"ff0000",Psybrown:"bc8f8f",PyOXe:"4169e1",saddNbPwn:"8b4513",sOmon:"fa8072",sandybPwn:"f4a460",sHgYF:"2e8b57",sHshell:"fff5ee",siFna:"a0522d",silver:"c0c0c0",skyXe:"87ceeb",UXe:"6a5acd",UWay:"708090",UgYy:"708090",snow:"fffafa",sprRggYF:"ff7f",stAlXe:"4682b4",tan:"d2b48c",teO:"8080",tEstN:"d8bfd8",tomato:"ff6347",Qe:"40e0d0",viTet:"ee82ee",JHt:"f5deb3",wEte:"ffffff",wEtesmoke:"f5f5f5",Lw:"ffff00",LwgYF:"9acd32"};function _z(){const e={},t=Object.keys(G1),n=Object.keys(U1);let r,i,o,a,s;for(r=0;r>16&255,o>>8&255,o&255]}return e}let xu;function $z(e){xu||(xu=_z(),xu.transparent=[0,0,0,0]);const t=xu[e.toLowerCase()];return t&&{r:t[0],g:t[1],b:t[2],a:t.length===4?t[3]:255}}const Oz=/^rgba?\(\s*([-+.\d]+)(%)?[\s,]+([-+.e\d]+)(%)?[\s,]+([-+.e\d]+)(%)?(?:[\s,/]+([-+.e\d]+)(%)?)?\s*\)$/;function Pz(e){const t=Oz.exec(e);let n=255,r,i,o;if(t){if(t[7]!==r){const a=+t[7];n=t[8]?cl(a):so(a*255,0,255)}return r=+t[1],i=+t[3],o=+t[5],r=255&(t[2]?cl(r):so(r,0,255)),i=255&(t[4]?cl(i):so(i,0,255)),o=255&(t[6]?cl(o):so(o,0,255)),{r,g:i,b:o,a:n}}}function Mz(e){return e&&(e.a<255?`rgba(${e.r}, ${e.g}, ${e.b}, ${Mi(e.a)})`:`rgb(${e.r}, ${e.g}, ${e.b})`)}const eg=e=>e<=.0031308?e*12.92:Math.pow(e,1/2.4)*1.055-.055,ka=e=>e<=.04045?e/12.92:Math.pow((e+.055)/1.055,2.4);function Tz(e,t,n){const r=ka(Mi(e.r)),i=ka(Mi(e.g)),o=ka(Mi(e.b));return{r:bo(eg(r+n*(ka(Mi(t.r))-r))),g:bo(eg(i+n*(ka(Mi(t.g))-i))),b:bo(eg(o+n*(ka(Mi(t.b))-o))),a:e.a+n*(t.a-e.a)}}function Su(e,t,n){if(e){let r=s0(e);r[t]=Math.max(0,Math.min(r[t]+r[t]*n,t===0?360:1)),r=c0(r),e.r=r[0],e.g=r[1],e.b=r[2]}}function C$(e,t){return e&&Object.assign(t||{},e)}function K1(e){var t={r:0,g:0,b:0,a:255};return Array.isArray(e)?e.length>=3&&(t={r:e[0],g:e[1],b:e[2],a:255},e.length>3&&(t.a=bo(e[3]))):(t=C$(e,{r:0,g:0,b:0,a:1}),t.a=bo(t.a)),t}function Rz(e){return e.charAt(0)==="r"?Pz(e):Cz(e)}class pc{constructor(t){if(t instanceof pc)return t;const n=typeof t;let r;n==="object"?r=K1(t):n==="string"&&(r=hz(t)||$z(t)||Rz(t)),this._rgb=r,this._valid=!!r}get valid(){return this._valid}get rgb(){var t=C$(this._rgb);return t&&(t.a=Mi(t.a)),t}set rgb(t){this._rgb=K1(t)}rgbString(){return this._valid?Mz(this._rgb):void 0}hexString(){return this._valid?mz(this._rgb):void 0}hslString(){return this._valid?Ez(this._rgb):void 0}mix(t,n){if(t){const r=this.rgb,i=t.rgb;let o;const a=n===o?.5:n,s=2*a-1,l=r.a-i.a,c=((s*l===-1?s:(s+l)/(1+s*l))+1)/2;o=1-c,r.r=255&c*r.r+o*i.r+.5,r.g=255&c*r.g+o*i.g+.5,r.b=255&c*r.b+o*i.b+.5,r.a=a*r.a+(1-a)*i.a,this.rgb=r}return this}interpolate(t,n){return t&&(this._rgb=Tz(this._rgb,t._rgb,n)),this}clone(){return new pc(this.rgb)}alpha(t){return this._rgb.a=bo(t),this}clearer(t){const n=this._rgb;return n.a*=1-t,this}greyscale(){const t=this._rgb,n=Lc(t.r*.3+t.g*.59+t.b*.11);return t.r=t.g=t.b=n,this}opaquer(t){const n=this._rgb;return n.a*=1+t,this}negate(){const t=this._rgb;return t.r=255-t.r,t.g=255-t.g,t.b=255-t.b,this}lighten(t){return Su(this._rgb,2,t),this}darken(t){return Su(this._rgb,2,-t),this}saturate(t){return Su(this._rgb,1,t),this}desaturate(t){return Su(this._rgb,1,-t),this}rotate(t){return wz(this._rgb,t),this}}/*! + */function Lc(e){return e+.5|0}const so=(e,t,n)=>Math.max(Math.min(e,n),t);function cl(e){return so(Lc(e*2.55),0,255)}function bo(e){return so(Lc(e*255),0,255)}function Mi(e){return so(Lc(e/2.55)/100,0,1)}function W1(e){return so(Lc(e*100),0,100)}const Tr={0:0,1:1,2:2,3:3,4:4,5:5,6:6,7:7,8:8,9:9,A:10,B:11,C:12,D:13,E:14,F:15,a:10,b:11,c:12,d:13,e:14,f:15},ip=[..."0123456789ABCDEF"],uz=e=>ip[e&15],dz=e=>ip[(e&240)>>4]+ip[e&15],bu=e=>(e&240)>>4===(e&15),fz=e=>bu(e.r)&&bu(e.g)&&bu(e.b)&&bu(e.a);function hz(e){var t=e.length,n;return e[0]==="#"&&(t===4||t===5?n={r:255&Tr[e[1]]*17,g:255&Tr[e[2]]*17,b:255&Tr[e[3]]*17,a:t===5?Tr[e[4]]*17:255}:(t===7||t===9)&&(n={r:Tr[e[1]]<<4|Tr[e[2]],g:Tr[e[3]]<<4|Tr[e[4]],b:Tr[e[5]]<<4|Tr[e[6]],a:t===9?Tr[e[7]]<<4|Tr[e[8]]:255})),n}const gz=(e,t)=>e<255?t(e):"";function mz(e){var t=fz(e)?uz:dz;return e?"#"+t(e.r)+t(e.g)+t(e.b)+gz(e.a,t):void 0}const pz=/^(hsla?|hwb|hsv)\(\s*([-+.e\d]+)(?:deg)?[\s,]+([-+.e\d]+)%[\s,]+([-+.e\d]+)%(?:[\s,]+([-+.e\d]+)(%)?)?\s*\)$/;function x$(e,t,n){const r=t*Math.min(n,1-n),i=(o,a=(o+e/30)%12)=>n-r*Math.max(Math.min(a-3,9-a,1),-1);return[i(0),i(8),i(4)]}function vz(e,t,n){const r=(i,o=(i+e/60)%6)=>n-n*t*Math.max(Math.min(o,4-o,1),0);return[r(5),r(3),r(1)]}function yz(e,t,n){const r=x$(e,1,.5);let i;for(t+n>1&&(i=1/(t+n),t*=i,n*=i),i=0;i<3;i++)r[i]*=1-t-n,r[i]+=t;return r}function bz(e,t,n,r,i){return e===i?(t-n)/r+(t.5?u/(2-o-a):u/(o+a),l=bz(n,r,i,u,o),l=l*60+.5),[l|0,c||0,s]}function l0(e,t,n,r){return(Array.isArray(t)?e(t[0],t[1],t[2]):e(t,n,r)).map(bo)}function c0(e,t,n){return l0(x$,e,t,n)}function xz(e,t,n){return l0(yz,e,t,n)}function Sz(e,t,n){return l0(vz,e,t,n)}function S$(e){return(e%360+360)%360}function Cz(e){const t=pz.exec(e);let n=255,r;if(!t)return;t[5]!==r&&(n=t[6]?cl(+t[5]):bo(+t[5]));const i=S$(+t[2]),o=+t[3]/100,a=+t[4]/100;return t[1]==="hwb"?r=xz(i,o,a):t[1]==="hsv"?r=Sz(i,o,a):r=c0(i,o,a),{r:r[0],g:r[1],b:r[2],a:n}}function wz(e,t){var n=s0(e);n[0]=S$(n[0]+t),n=c0(n),e.r=n[0],e.g=n[1],e.b=n[2]}function Ez(e){if(!e)return;const t=s0(e),n=t[0],r=W1(t[1]),i=W1(t[2]);return e.a<255?`hsla(${n}, ${r}%, ${i}%, ${Mi(e.a)})`:`hsl(${n}, ${r}%, ${i}%)`}const U1={x:"dark",Z:"light",Y:"re",X:"blu",W:"gr",V:"medium",U:"slate",A:"ee",T:"ol",S:"or",B:"ra",C:"lateg",D:"ights",R:"in",Q:"turquois",E:"hi",P:"ro",O:"al",N:"le",M:"de",L:"yello",F:"en",K:"ch",G:"arks",H:"ea",I:"ightg",J:"wh"},G1={OiceXe:"f0f8ff",antiquewEte:"faebd7",aqua:"ffff",aquamarRe:"7fffd4",azuY:"f0ffff",beige:"f5f5dc",bisque:"ffe4c4",black:"0",blanKedOmond:"ffebcd",Xe:"ff",XeviTet:"8a2be2",bPwn:"a52a2a",burlywood:"deb887",caMtXe:"5f9ea0",KartYuse:"7fff00",KocTate:"d2691e",cSO:"ff7f50",cSnflowerXe:"6495ed",cSnsilk:"fff8dc",crimson:"dc143c",cyan:"ffff",xXe:"8b",xcyan:"8b8b",xgTMnPd:"b8860b",xWay:"a9a9a9",xgYF:"6400",xgYy:"a9a9a9",xkhaki:"bdb76b",xmagFta:"8b008b",xTivegYF:"556b2f",xSange:"ff8c00",xScEd:"9932cc",xYd:"8b0000",xsOmon:"e9967a",xsHgYF:"8fbc8f",xUXe:"483d8b",xUWay:"2f4f4f",xUgYy:"2f4f4f",xQe:"ced1",xviTet:"9400d3",dAppRk:"ff1493",dApskyXe:"bfff",dimWay:"696969",dimgYy:"696969",dodgerXe:"1e90ff",fiYbrick:"b22222",flSOwEte:"fffaf0",foYstWAn:"228b22",fuKsia:"ff00ff",gaRsbSo:"dcdcdc",ghostwEte:"f8f8ff",gTd:"ffd700",gTMnPd:"daa520",Way:"808080",gYF:"8000",gYFLw:"adff2f",gYy:"808080",honeyMw:"f0fff0",hotpRk:"ff69b4",RdianYd:"cd5c5c",Rdigo:"4b0082",ivSy:"fffff0",khaki:"f0e68c",lavFMr:"e6e6fa",lavFMrXsh:"fff0f5",lawngYF:"7cfc00",NmoncEffon:"fffacd",ZXe:"add8e6",ZcSO:"f08080",Zcyan:"e0ffff",ZgTMnPdLw:"fafad2",ZWay:"d3d3d3",ZgYF:"90ee90",ZgYy:"d3d3d3",ZpRk:"ffb6c1",ZsOmon:"ffa07a",ZsHgYF:"20b2aa",ZskyXe:"87cefa",ZUWay:"778899",ZUgYy:"778899",ZstAlXe:"b0c4de",ZLw:"ffffe0",lime:"ff00",limegYF:"32cd32",lRF:"faf0e6",magFta:"ff00ff",maPon:"800000",VaquamarRe:"66cdaa",VXe:"cd",VScEd:"ba55d3",VpurpN:"9370db",VsHgYF:"3cb371",VUXe:"7b68ee",VsprRggYF:"fa9a",VQe:"48d1cc",VviTetYd:"c71585",midnightXe:"191970",mRtcYam:"f5fffa",mistyPse:"ffe4e1",moccasR:"ffe4b5",navajowEte:"ffdead",navy:"80",Tdlace:"fdf5e6",Tive:"808000",TivedBb:"6b8e23",Sange:"ffa500",SangeYd:"ff4500",ScEd:"da70d6",pOegTMnPd:"eee8aa",pOegYF:"98fb98",pOeQe:"afeeee",pOeviTetYd:"db7093",papayawEp:"ffefd5",pHKpuff:"ffdab9",peru:"cd853f",pRk:"ffc0cb",plum:"dda0dd",powMrXe:"b0e0e6",purpN:"800080",YbeccapurpN:"663399",Yd:"ff0000",Psybrown:"bc8f8f",PyOXe:"4169e1",saddNbPwn:"8b4513",sOmon:"fa8072",sandybPwn:"f4a460",sHgYF:"2e8b57",sHshell:"fff5ee",siFna:"a0522d",silver:"c0c0c0",skyXe:"87ceeb",UXe:"6a5acd",UWay:"708090",UgYy:"708090",snow:"fffafa",sprRggYF:"ff7f",stAlXe:"4682b4",tan:"d2b48c",teO:"8080",tEstN:"d8bfd8",tomato:"ff6347",Qe:"40e0d0",viTet:"ee82ee",JHt:"f5deb3",wEte:"ffffff",wEtesmoke:"f5f5f5",Lw:"ffff00",LwgYF:"9acd32"};function _z(){const e={},t=Object.keys(G1),n=Object.keys(U1);let r,i,o,a,s;for(r=0;r>16&255,o>>8&255,o&255]}return e}let xu;function $z(e){xu||(xu=_z(),xu.transparent=[0,0,0,0]);const t=xu[e.toLowerCase()];return t&&{r:t[0],g:t[1],b:t[2],a:t.length===4?t[3]:255}}const Oz=/^rgba?\(\s*([-+.\d]+)(%)?[\s,]+([-+.e\d]+)(%)?[\s,]+([-+.e\d]+)(%)?(?:[\s,/]+([-+.e\d]+)(%)?)?\s*\)$/;function Pz(e){const t=Oz.exec(e);let n=255,r,i,o;if(t){if(t[7]!==r){const a=+t[7];n=t[8]?cl(a):so(a*255,0,255)}return r=+t[1],i=+t[3],o=+t[5],r=255&(t[2]?cl(r):so(r,0,255)),i=255&(t[4]?cl(i):so(i,0,255)),o=255&(t[6]?cl(o):so(o,0,255)),{r,g:i,b:o,a:n}}}function Mz(e){return e&&(e.a<255?`rgba(${e.r}, ${e.g}, ${e.b}, ${Mi(e.a)})`:`rgb(${e.r}, ${e.g}, ${e.b})`)}const Jh=e=>e<=.0031308?e*12.92:Math.pow(e,1/2.4)*1.055-.055,ka=e=>e<=.04045?e/12.92:Math.pow((e+.055)/1.055,2.4);function Tz(e,t,n){const r=ka(Mi(e.r)),i=ka(Mi(e.g)),o=ka(Mi(e.b));return{r:bo(Jh(r+n*(ka(Mi(t.r))-r))),g:bo(Jh(i+n*(ka(Mi(t.g))-i))),b:bo(Jh(o+n*(ka(Mi(t.b))-o))),a:e.a+n*(t.a-e.a)}}function Su(e,t,n){if(e){let r=s0(e);r[t]=Math.max(0,Math.min(r[t]+r[t]*n,t===0?360:1)),r=c0(r),e.r=r[0],e.g=r[1],e.b=r[2]}}function C$(e,t){return e&&Object.assign(t||{},e)}function K1(e){var t={r:0,g:0,b:0,a:255};return Array.isArray(e)?e.length>=3&&(t={r:e[0],g:e[1],b:e[2],a:255},e.length>3&&(t.a=bo(e[3]))):(t=C$(e,{r:0,g:0,b:0,a:1}),t.a=bo(t.a)),t}function Rz(e){return e.charAt(0)==="r"?Pz(e):Cz(e)}class pc{constructor(t){if(t instanceof pc)return t;const n=typeof t;let r;n==="object"?r=K1(t):n==="string"&&(r=hz(t)||$z(t)||Rz(t)),this._rgb=r,this._valid=!!r}get valid(){return this._valid}get rgb(){var t=C$(this._rgb);return t&&(t.a=Mi(t.a)),t}set rgb(t){this._rgb=K1(t)}rgbString(){return this._valid?Mz(this._rgb):void 0}hexString(){return this._valid?mz(this._rgb):void 0}hslString(){return this._valid?Ez(this._rgb):void 0}mix(t,n){if(t){const r=this.rgb,i=t.rgb;let o;const a=n===o?.5:n,s=2*a-1,l=r.a-i.a,c=((s*l===-1?s:(s+l)/(1+s*l))+1)/2;o=1-c,r.r=255&c*r.r+o*i.r+.5,r.g=255&c*r.g+o*i.g+.5,r.b=255&c*r.b+o*i.b+.5,r.a=a*r.a+(1-a)*i.a,this.rgb=r}return this}interpolate(t,n){return t&&(this._rgb=Tz(this._rgb,t._rgb,n)),this}clone(){return new pc(this.rgb)}alpha(t){return this._rgb.a=bo(t),this}clearer(t){const n=this._rgb;return n.a*=1-t,this}greyscale(){const t=this._rgb,n=Lc(t.r*.3+t.g*.59+t.b*.11);return t.r=t.g=t.b=n,this}opaquer(t){const n=this._rgb;return n.a*=1+t,this}negate(){const t=this._rgb;return t.r=255-t.r,t.g=255-t.g,t.b=255-t.b,this}lighten(t){return Su(this._rgb,2,t),this}darken(t){return Su(this._rgb,2,-t),this}saturate(t){return Su(this._rgb,1,t),this}desaturate(t){return Su(this._rgb,1,-t),this}rotate(t){return wz(this._rgb,t),this}}/*! * Chart.js v4.4.4 * https://www.chartjs.org * (c) 2024 Chart.js Contributors * Released under the MIT License - */function Ei(){}const Iz=(()=>{let e=0;return()=>e++})();function on(e){return e===null||typeof e>"u"}function Rn(e){if(Array.isArray&&Array.isArray(e))return!0;const t=Object.prototype.toString.call(e);return t.slice(0,7)==="[object"&&t.slice(-6)==="Array]"}function wt(e){return e!==null&&Object.prototype.toString.call(e)==="[object Object]"}function Br(e){return(typeof e=="number"||e instanceof Number)&&isFinite(+e)}function ui(e,t){return Br(e)?e:t}function it(e,t){return typeof e>"u"?t:e}const kz=(e,t)=>typeof e=="string"&&e.endsWith("%")?parseFloat(e)/100*t:+e;function Xe(e,t,n){if(e&&typeof e.call=="function")return e.apply(n,t)}function at(e,t,n,r){let i,o,a;if(Rn(e))for(o=e.length,i=0;ie,x:e=>e.x,y:e=>e.y};function Az(e){const t=e.split("."),n=[];let r="";for(const i of t)r+=i,r.endsWith("\\")?r=r.slice(0,-1)+".":(n.push(r),r="");return n}function Lz(e){const t=Az(e);return n=>{for(const r of t){if(r==="")break;n=n&&n[r]}return n}}function Gd(e,t){return(q1[t]||(q1[t]=Lz(t)))(e)}function u0(e){return e.charAt(0).toUpperCase()+e.slice(1)}const Kd=e=>typeof e<"u",wo=e=>typeof e=="function",X1=(e,t)=>{if(e.size!==t.size)return!1;for(const n of e)if(!t.has(n))return!1;return!0};function Dz(e){return e.type==="mouseup"||e.type==="click"||e.type==="contextmenu"}const Fn=Math.PI,xi=2*Fn,zz=xi+Fn,qd=Number.POSITIVE_INFINITY,jz=Fn/180,ei=Fn/2,Fo=Fn/4,Y1=Fn*2/3,ap=Math.log10,Eo=Math.sign;function Tl(e,t,n){return Math.abs(e-t)i-o).pop(),t}function yc(e){return!isNaN(parseFloat(e))&&isFinite(e)}function Hz(e,t){const n=Math.round(e);return n-t<=e&&n+t>=e}function Vz(e,t,n){let r,i,o;for(r=0,i=e.length;rl&&c=Math.min(t,n)-r&&e<=Math.max(t,n)+r}function d0(e,t,n){n=n||(a=>e[a]1;)o=i+r>>1,n(o)?i=o:r=o;return{lo:i,hi:r}}const Yo=(e,t,n,r)=>d0(e,n,r?i=>{const o=e[i][t];return oe[i][t]d0(e,n,r=>e[r][t]>=n);function Xz(e,t,n){let r=0,i=e.length;for(;rr&&e[i-1]>n;)i--;return r>0||i{const r="_onData"+u0(n),i=e[n];Object.defineProperty(e,n,{configurable:!0,enumerable:!1,value(...o){const a=i.apply(this,o);return e._chartjs.listeners.forEach(s=>{typeof s[r]=="function"&&s[r](...o)}),a}})})}function J1(e,t){const n=e._chartjs;if(!n)return;const r=n.listeners,i=r.indexOf(t);i!==-1&&r.splice(i,1),!(r.length>0)&&(_$.forEach(o=>{delete e[o]}),delete e._chartjs)}function Qz(e){const t=new Set(e);return t.size===e.length?e:Array.from(t)}const $$=function(){return typeof window>"u"?function(e){return e()}:window.requestAnimationFrame}();function O$(e,t){let n=[],r=!1;return function(...i){n=i,r||(r=!0,$$.call(window,()=>{r=!1,e.apply(t,n)}))}}function Zz(e,t){let n;return function(...r){return t?(clearTimeout(n),n=setTimeout(e,t,r)):e.apply(this,r),t}}const f0=e=>e==="start"?"left":e==="end"?"right":"center",Wn=(e,t,n)=>e==="start"?t:e==="end"?n:(t+n)/2,Jz=(e,t,n,r)=>e===(r?"left":"right")?n:e==="center"?(t+n)/2:t;function ej(e,t,n){const r=t.length;let i=0,o=r;if(e._sorted){const{iScale:a,_parsed:s}=e,l=a.axis,{min:c,max:u,minDefined:f,maxDefined:h}=a.getUserBounds();f&&(i=Nr(Math.min(Yo(s,l,c).lo,n?r:Yo(t,l,a.getPixelForValue(c)).lo),0,r-1)),h?o=Nr(Math.max(Yo(s,a.axis,u,!0).hi+1,n?0:Yo(t,l,a.getPixelForValue(u),!0).hi+1),i,r)-i:o=r-i}return{start:i,count:o}}function tj(e){const{xScale:t,yScale:n,_scaleRanges:r}=e,i={xmin:t.min,xmax:t.max,ymin:n.min,ymax:n.max};if(!r)return e._scaleRanges=i,!0;const o=r.xmin!==t.min||r.xmax!==t.max||r.ymin!==n.min||r.ymax!==n.max;return Object.assign(r,i),o}const Cu=e=>e===0||e===1,ex=(e,t,n)=>-(Math.pow(2,10*(e-=1))*Math.sin((e-t)*xi/n)),tx=(e,t,n)=>Math.pow(2,-10*e)*Math.sin((e-t)*xi/n)+1,Rl={linear:e=>e,easeInQuad:e=>e*e,easeOutQuad:e=>-e*(e-2),easeInOutQuad:e=>(e/=.5)<1?.5*e*e:-.5*(--e*(e-2)-1),easeInCubic:e=>e*e*e,easeOutCubic:e=>(e-=1)*e*e+1,easeInOutCubic:e=>(e/=.5)<1?.5*e*e*e:.5*((e-=2)*e*e+2),easeInQuart:e=>e*e*e*e,easeOutQuart:e=>-((e-=1)*e*e*e-1),easeInOutQuart:e=>(e/=.5)<1?.5*e*e*e*e:-.5*((e-=2)*e*e*e-2),easeInQuint:e=>e*e*e*e*e,easeOutQuint:e=>(e-=1)*e*e*e*e+1,easeInOutQuint:e=>(e/=.5)<1?.5*e*e*e*e*e:.5*((e-=2)*e*e*e*e+2),easeInSine:e=>-Math.cos(e*ei)+1,easeOutSine:e=>Math.sin(e*ei),easeInOutSine:e=>-.5*(Math.cos(Fn*e)-1),easeInExpo:e=>e===0?0:Math.pow(2,10*(e-1)),easeOutExpo:e=>e===1?1:-Math.pow(2,-10*e)+1,easeInOutExpo:e=>Cu(e)?e:e<.5?.5*Math.pow(2,10*(e*2-1)):.5*(-Math.pow(2,-10*(e*2-1))+2),easeInCirc:e=>e>=1?e:-(Math.sqrt(1-e*e)-1),easeOutCirc:e=>Math.sqrt(1-(e-=1)*e),easeInOutCirc:e=>(e/=.5)<1?-.5*(Math.sqrt(1-e*e)-1):.5*(Math.sqrt(1-(e-=2)*e)+1),easeInElastic:e=>Cu(e)?e:ex(e,.075,.3),easeOutElastic:e=>Cu(e)?e:tx(e,.075,.3),easeInOutElastic(e){return Cu(e)?e:e<.5?.5*ex(e*2,.1125,.45):.5+.5*tx(e*2-1,.1125,.45)},easeInBack(e){return e*e*((1.70158+1)*e-1.70158)},easeOutBack(e){return(e-=1)*e*((1.70158+1)*e+1.70158)+1},easeInOutBack(e){let t=1.70158;return(e/=.5)<1?.5*(e*e*(((t*=1.525)+1)*e-t)):.5*((e-=2)*e*(((t*=1.525)+1)*e+t)+2)},easeInBounce:e=>1-Rl.easeOutBounce(1-e),easeOutBounce(e){return e<1/2.75?7.5625*e*e:e<2/2.75?7.5625*(e-=1.5/2.75)*e+.75:e<2.5/2.75?7.5625*(e-=2.25/2.75)*e+.9375:7.5625*(e-=2.625/2.75)*e+.984375},easeInOutBounce:e=>e<.5?Rl.easeInBounce(e*2)*.5:Rl.easeOutBounce(e*2-1)*.5+.5};function h0(e){if(e&&typeof e=="object"){const t=e.toString();return t==="[object CanvasPattern]"||t==="[object CanvasGradient]"}return!1}function nx(e){return h0(e)?e:new pc(e)}function tg(e){return h0(e)?e:new pc(e).saturate(.5).darken(.1).hexString()}const nj=["x","y","borderWidth","radius","tension"],rj=["color","borderColor","backgroundColor"];function ij(e){e.set("animation",{delay:void 0,duration:1e3,easing:"easeOutQuart",fn:void 0,from:void 0,loop:void 0,to:void 0,type:void 0}),e.describe("animation",{_fallback:!1,_indexable:!1,_scriptable:t=>t!=="onProgress"&&t!=="onComplete"&&t!=="fn"}),e.set("animations",{colors:{type:"color",properties:rj},numbers:{type:"number",properties:nj}}),e.describe("animations",{_fallback:"animation"}),e.set("transitions",{active:{animation:{duration:400}},resize:{animation:{duration:0}},show:{animations:{colors:{from:"transparent"},visible:{type:"boolean",duration:0}}},hide:{animations:{colors:{to:"transparent"},visible:{type:"boolean",easing:"linear",fn:t=>t|0}}}})}function oj(e){e.set("layout",{autoPadding:!0,padding:{top:0,right:0,bottom:0,left:0}})}const rx=new Map;function aj(e,t){t=t||{};const n=e+JSON.stringify(t);let r=rx.get(n);return r||(r=new Intl.NumberFormat(e,t),rx.set(n,r)),r}function P$(e,t,n){return aj(t,n).format(e)}const M$={values(e){return Rn(e)?e:""+e},numeric(e,t,n){if(e===0)return"0";const r=this.chart.options.locale;let i,o=e;if(n.length>1){const c=Math.max(Math.abs(n[0].value),Math.abs(n[n.length-1].value));(c<1e-4||c>1e15)&&(i="scientific"),o=sj(e,n)}const a=ap(Math.abs(o)),s=isNaN(a)?1:Math.max(Math.min(-1*Math.floor(a),20),0),l={notation:i,minimumFractionDigits:s,maximumFractionDigits:s};return Object.assign(l,this.options.ticks.format),P$(e,r,l)},logarithmic(e,t,n){if(e===0)return"0";const r=n[t].significand||e/Math.pow(10,Math.floor(ap(e)));return[1,2,3,5,10,15].includes(r)||t>.8*n.length?M$.numeric.call(this,e,t,n):""}};function sj(e,t){let n=t.length>3?t[2].value-t[1].value:t[1].value-t[0].value;return Math.abs(n)>=1&&e!==Math.floor(e)&&(n=e-Math.floor(e)),n}var T$={formatters:M$};function lj(e){e.set("scale",{display:!0,offset:!1,reverse:!1,beginAtZero:!1,bounds:"ticks",clip:!0,grace:0,grid:{display:!0,lineWidth:1,drawOnChartArea:!0,drawTicks:!0,tickLength:8,tickWidth:(t,n)=>n.lineWidth,tickColor:(t,n)=>n.color,offset:!1},border:{display:!0,dash:[],dashOffset:0,width:1},title:{display:!1,text:"",padding:{top:4,bottom:4}},ticks:{minRotation:0,maxRotation:50,mirror:!1,textStrokeWidth:0,textStrokeColor:"",padding:3,display:!0,autoSkip:!0,autoSkipPadding:3,labelOffset:0,callback:T$.formatters.values,minor:{},major:{},align:"center",crossAlign:"near",showLabelBackdrop:!1,backdropColor:"rgba(255, 255, 255, 0.75)",backdropPadding:2}}),e.route("scale.ticks","color","","color"),e.route("scale.grid","color","","borderColor"),e.route("scale.border","color","","borderColor"),e.route("scale.title","color","","color"),e.describe("scale",{_fallback:!1,_scriptable:t=>!t.startsWith("before")&&!t.startsWith("after")&&t!=="callback"&&t!=="parser",_indexable:t=>t!=="borderDash"&&t!=="tickBorderDash"&&t!=="dash"}),e.describe("scales",{_fallback:"scale"}),e.describe("scale.ticks",{_scriptable:t=>t!=="backdropPadding"&&t!=="callback",_indexable:t=>t!=="backdropPadding"})}const fa=Object.create(null),lp=Object.create(null);function Il(e,t){if(!t)return e;const n=t.split(".");for(let r=0,i=n.length;rr.chart.platform.getDevicePixelRatio(),this.elements={},this.events=["mousemove","mouseout","click","touchstart","touchmove"],this.font={family:"'Helvetica Neue', 'Helvetica', 'Arial', sans-serif",size:12,style:"normal",lineHeight:1.2,weight:null},this.hover={},this.hoverBackgroundColor=(r,i)=>tg(i.backgroundColor),this.hoverBorderColor=(r,i)=>tg(i.borderColor),this.hoverColor=(r,i)=>tg(i.color),this.indexAxis="x",this.interaction={mode:"nearest",intersect:!0,includeInvisible:!1},this.maintainAspectRatio=!0,this.onHover=null,this.onClick=null,this.parsing=!0,this.plugins={},this.responsive=!0,this.scale=void 0,this.scales={},this.showLine=!0,this.drawActiveElementsOnTop=!0,this.describe(t),this.apply(n)}set(t,n){return ng(this,t,n)}get(t){return Il(this,t)}describe(t,n){return ng(lp,t,n)}override(t,n){return ng(fa,t,n)}route(t,n,r,i){const o=Il(this,t),a=Il(this,r),s="_"+n;Object.defineProperties(o,{[s]:{value:o[n],writable:!0},[n]:{enumerable:!0,get(){const l=this[s],c=a[i];return wt(l)?Object.assign({},c,l):it(l,c)},set(l){this[s]=l}}})}apply(t){t.forEach(n=>n(this))}}var dn=new cj({_scriptable:e=>!e.startsWith("on"),_indexable:e=>e!=="events",hover:{_fallback:"interaction"},interaction:{_scriptable:!1,_indexable:!1}},[ij,oj,lj]);function uj(e){return!e||on(e.size)||on(e.family)?null:(e.style?e.style+" ":"")+(e.weight?e.weight+" ":"")+e.size+"px "+e.family}function ix(e,t,n,r,i){let o=t[i];return o||(o=t[i]=e.measureText(i).width,n.push(i)),o>r&&(r=o),r}function Ao(e,t,n){const r=e.currentDevicePixelRatio,i=n!==0?Math.max(n/2,.5):0;return Math.round((t-i)*r)/r+i}function ox(e,t){!t&&!e||(t=t||e.getContext("2d"),t.save(),t.resetTransform(),t.clearRect(0,0,e.width,e.height),t.restore())}function cp(e,t,n,r){R$(e,t,n,r,null)}function R$(e,t,n,r,i){let o,a,s,l,c,u,f,h;const m=t.pointStyle,y=t.rotation,v=t.radius;let b=(y||0)*jz;if(m&&typeof m=="object"&&(o=m.toString(),o==="[object HTMLImageElement]"||o==="[object HTMLCanvasElement]")){e.save(),e.translate(n,r),e.rotate(b),e.drawImage(m,-m.width/2,-m.height/2,m.width,m.height),e.restore();return}if(!(isNaN(v)||v<=0)){switch(e.beginPath(),m){default:i?e.ellipse(n,r,i/2,v,0,0,xi):e.arc(n,r,v,0,xi),e.closePath();break;case"triangle":u=i?i/2:v,e.moveTo(n+Math.sin(b)*u,r-Math.cos(b)*v),b+=Y1,e.lineTo(n+Math.sin(b)*u,r-Math.cos(b)*v),b+=Y1,e.lineTo(n+Math.sin(b)*u,r-Math.cos(b)*v),e.closePath();break;case"rectRounded":c=v*.516,l=v-c,a=Math.cos(b+Fo)*l,f=Math.cos(b+Fo)*(i?i/2-c:l),s=Math.sin(b+Fo)*l,h=Math.sin(b+Fo)*(i?i/2-c:l),e.arc(n-f,r-s,c,b-Fn,b-ei),e.arc(n+h,r-a,c,b-ei,b),e.arc(n+f,r+s,c,b,b+ei),e.arc(n-h,r+a,c,b+ei,b+Fn),e.closePath();break;case"rect":if(!y){l=Math.SQRT1_2*v,u=i?i/2:l,e.rect(n-u,r-l,2*u,2*l);break}b+=Fo;case"rectRot":f=Math.cos(b)*(i?i/2:v),a=Math.cos(b)*v,s=Math.sin(b)*v,h=Math.sin(b)*(i?i/2:v),e.moveTo(n-f,r-s),e.lineTo(n+h,r-a),e.lineTo(n+f,r+s),e.lineTo(n-h,r+a),e.closePath();break;case"crossRot":b+=Fo;case"cross":f=Math.cos(b)*(i?i/2:v),a=Math.cos(b)*v,s=Math.sin(b)*v,h=Math.sin(b)*(i?i/2:v),e.moveTo(n-f,r-s),e.lineTo(n+f,r+s),e.moveTo(n+h,r-a),e.lineTo(n-h,r+a);break;case"star":f=Math.cos(b)*(i?i/2:v),a=Math.cos(b)*v,s=Math.sin(b)*v,h=Math.sin(b)*(i?i/2:v),e.moveTo(n-f,r-s),e.lineTo(n+f,r+s),e.moveTo(n+h,r-a),e.lineTo(n-h,r+a),b+=Fo,f=Math.cos(b)*(i?i/2:v),a=Math.cos(b)*v,s=Math.sin(b)*v,h=Math.sin(b)*(i?i/2:v),e.moveTo(n-f,r-s),e.lineTo(n+f,r+s),e.moveTo(n+h,r-a),e.lineTo(n-h,r+a);break;case"line":a=i?i/2:Math.cos(b)*v,s=Math.sin(b)*v,e.moveTo(n-a,r-s),e.lineTo(n+a,r+s);break;case"dash":e.moveTo(n,r),e.lineTo(n+Math.cos(b)*(i?i/2:v),r+Math.sin(b)*v);break;case!1:e.closePath();break}e.fill(),t.borderWidth>0&&e.stroke()}}function bc(e,t,n){return n=n||.5,!t||e&&e.x>t.left-n&&e.xt.top-n&&e.y0&&o.strokeColor!=="";let l,c;for(e.save(),e.font=i.string,hj(e,o),l=0;l+e||0;function I$(e,t){const n={},r=wt(t),i=r?Object.keys(t):t,o=wt(e)?r?a=>it(e[a],e[t[a]]):a=>e[a]:()=>e;for(const a of i)n[a]=bj(o(a));return n}function xj(e){return I$(e,{top:"y",right:"x",bottom:"y",left:"x"})}function kl(e){return I$(e,["topLeft","topRight","bottomLeft","bottomRight"])}function Hr(e){const t=xj(e);return t.width=t.left+t.right,t.height=t.top+t.bottom,t}function Kn(e,t){e=e||{},t=t||dn.font;let n=it(e.size,t.size);typeof n=="string"&&(n=parseInt(n,10));let r=it(e.style,t.style);r&&!(""+r).match(vj)&&(console.warn('Invalid font style specified: "'+r+'"'),r=void 0);const i={family:it(e.family,t.family),lineHeight:yj(it(e.lineHeight,t.lineHeight),n),size:n,style:r,weight:it(e.weight,t.weight),string:""};return i.string=uj(i),i}function wu(e,t,n,r){let i,o,a;for(i=0,o=e.length;in&&s===0?0:s+l;return{min:a(r,-Math.abs(o)),max:a(i,o)}}function ya(e,t){return Object.assign(Object.create(e),t)}function p0(e,t=[""],n,r,i=()=>e[0]){const o=n||e;typeof r>"u"&&(r=A$("_fallback",e));const a={[Symbol.toStringTag]:"Object",_cacheable:!0,_scopes:e,_rootScopes:o,_fallback:r,_getTarget:i,override:s=>p0([s,...e],t,o,r)};return new Proxy(a,{deleteProperty(s,l){return delete s[l],delete s._keys,delete e[0][l],!0},get(s,l){return N$(s,l,()=>Mj(l,t,e,s))},getOwnPropertyDescriptor(s,l){return Reflect.getOwnPropertyDescriptor(s._scopes[0],l)},getPrototypeOf(){return Reflect.getPrototypeOf(e[0])},has(s,l){return sx(s).includes(l)},ownKeys(s){return sx(s)},set(s,l,c){const u=s._storage||(s._storage=i());return s[l]=u[l]=c,delete s._keys,!0}})}function ws(e,t,n,r){const i={_cacheable:!1,_proxy:e,_context:t,_subProxy:n,_stack:new Set,_descriptors:k$(e,r),setContext:o=>ws(e,o,n,r),override:o=>ws(e.override(o),t,n,r)};return new Proxy(i,{deleteProperty(o,a){return delete o[a],delete e[a],!0},get(o,a,s){return N$(o,a,()=>wj(o,a,s))},getOwnPropertyDescriptor(o,a){return o._descriptors.allKeys?Reflect.has(e,a)?{enumerable:!0,configurable:!0}:void 0:Reflect.getOwnPropertyDescriptor(e,a)},getPrototypeOf(){return Reflect.getPrototypeOf(e)},has(o,a){return Reflect.has(e,a)},ownKeys(){return Reflect.ownKeys(e)},set(o,a,s){return e[a]=s,delete o[a],!0}})}function k$(e,t={scriptable:!0,indexable:!0}){const{_scriptable:n=t.scriptable,_indexable:r=t.indexable,_allKeys:i=t.allKeys}=e;return{allKeys:i,scriptable:n,indexable:r,isScriptable:wo(n)?n:()=>n,isIndexable:wo(r)?r:()=>r}}const Cj=(e,t)=>e?e+u0(t):t,v0=(e,t)=>wt(t)&&e!=="adapters"&&(Object.getPrototypeOf(t)===null||t.constructor===Object);function N$(e,t,n){if(Object.prototype.hasOwnProperty.call(e,t)||t==="constructor")return e[t];const r=n();return e[t]=r,r}function wj(e,t,n){const{_proxy:r,_context:i,_subProxy:o,_descriptors:a}=e;let s=r[t];return wo(s)&&a.isScriptable(t)&&(s=Ej(t,s,e,n)),Rn(s)&&s.length&&(s=_j(t,s,e,a.isIndexable)),v0(t,s)&&(s=ws(s,i,o&&o[t],a)),s}function Ej(e,t,n,r){const{_proxy:i,_context:o,_subProxy:a,_stack:s}=n;if(s.has(e))throw new Error("Recursion detected: "+Array.from(s).join("->")+"->"+e);s.add(e);let l=t(o,a||r);return s.delete(e),v0(e,l)&&(l=y0(i._scopes,i,e,l)),l}function _j(e,t,n,r){const{_proxy:i,_context:o,_subProxy:a,_descriptors:s}=n;if(typeof o.index<"u"&&r(e))return t[o.index%t.length];if(wt(t[0])){const l=t,c=i._scopes.filter(u=>u!==l);t=[];for(const u of l){const f=y0(c,i,e,u);t.push(ws(f,o,a&&a[e],s))}}return t}function F$(e,t,n){return wo(e)?e(t,n):e}const $j=(e,t)=>e===!0?t:typeof e=="string"?Gd(t,e):void 0;function Oj(e,t,n,r,i){for(const o of t){const a=$j(n,o);if(a){e.add(a);const s=F$(a._fallback,n,i);if(typeof s<"u"&&s!==n&&s!==r)return s}else if(a===!1&&typeof r<"u"&&n!==r)return null}return!1}function y0(e,t,n,r){const i=t._rootScopes,o=F$(t._fallback,n,r),a=[...e,...i],s=new Set;s.add(r);let l=ax(s,a,n,o||n,r);return l===null||typeof o<"u"&&o!==n&&(l=ax(s,a,o,l,r),l===null)?!1:p0(Array.from(s),[""],i,o,()=>Pj(t,n,r))}function ax(e,t,n,r,i){for(;n;)n=Oj(e,t,n,r,i);return n}function Pj(e,t,n){const r=e._getTarget();t in r||(r[t]={});const i=r[t];return Rn(i)&&wt(n)?n:i||{}}function Mj(e,t,n,r){let i;for(const o of t)if(i=A$(Cj(o,e),n),typeof i<"u")return v0(e,i)?y0(n,r,e,i):i}function A$(e,t){for(const n of t){if(!n)continue;const r=n[e];if(typeof r<"u")return r}}function sx(e){let t=e._keys;return t||(t=e._keys=Tj(e._scopes)),t}function Tj(e){const t=new Set;for(const n of e)for(const r of Object.keys(n).filter(i=>!i.startsWith("_")))t.add(r);return Array.from(t)}const Rj=Number.EPSILON||1e-14,Es=(e,t)=>te==="x"?"y":"x";function Ij(e,t,n,r){const i=e.skip?t:e,o=t,a=n.skip?t:n,s=sp(o,i),l=sp(a,o);let c=s/(s+l),u=l/(s+l);c=isNaN(c)?0:c,u=isNaN(u)?0:u;const f=r*c,h=r*u;return{previous:{x:o.x-f*(a.x-i.x),y:o.y-f*(a.y-i.y)},next:{x:o.x+h*(a.x-i.x),y:o.y+h*(a.y-i.y)}}}function kj(e,t,n){const r=e.length;let i,o,a,s,l,c=Es(e,0);for(let u=0;u!c.skip)),t.cubicInterpolationMode==="monotone")Fj(e,i);else{let c=r?e[e.length-1]:e[0];for(o=0,a=e.length;oe.ownerDocument.defaultView.getComputedStyle(e,null);function Dj(e,t){return Kf(e).getPropertyValue(t)}const zj=["top","right","bottom","left"];function ta(e,t,n){const r={};n=n?"-"+n:"";for(let i=0;i<4;i++){const o=zj[i];r[o]=parseFloat(e[t+"-"+o+n])||0}return r.width=r.left+r.right,r.height=r.top+r.bottom,r}const jj=(e,t,n)=>(e>0||t>0)&&(!n||!n.shadowRoot);function Bj(e,t){const n=e.touches,r=n&&n.length?n[0]:e,{offsetX:i,offsetY:o}=r;let a=!1,s,l;if(jj(i,o,e.target))s=i,l=o;else{const c=t.getBoundingClientRect();s=r.clientX-c.left,l=r.clientY-c.top,a=!0}return{x:s,y:l,box:a}}function mi(e,t){if("native"in e)return e;const{canvas:n,currentDevicePixelRatio:r}=t,i=Kf(n),o=i.boxSizing==="border-box",a=ta(i,"padding"),s=ta(i,"border","width"),{x:l,y:c,box:u}=Bj(e,n),f=a.left+(u&&s.left),h=a.top+(u&&s.top);let{width:m,height:y}=t;return o&&(m-=a.width+s.width,y-=a.height+s.height),{x:Math.round((l-f)/m*n.width/r),y:Math.round((c-h)/y*n.height/r)}}function Hj(e,t,n){let r,i;if(t===void 0||n===void 0){const o=e&&x0(e);if(!o)t=e.clientWidth,n=e.clientHeight;else{const a=o.getBoundingClientRect(),s=Kf(o),l=ta(s,"border","width"),c=ta(s,"padding");t=a.width-c.width-l.width,n=a.height-c.height-l.height,r=Xd(s.maxWidth,o,"clientWidth"),i=Xd(s.maxHeight,o,"clientHeight")}}return{width:t,height:n,maxWidth:r||qd,maxHeight:i||qd}}const _u=e=>Math.round(e*10)/10;function Vj(e,t,n,r){const i=Kf(e),o=ta(i,"margin"),a=Xd(i.maxWidth,e,"clientWidth")||qd,s=Xd(i.maxHeight,e,"clientHeight")||qd,l=Hj(e,t,n);let{width:c,height:u}=l;if(i.boxSizing==="content-box"){const h=ta(i,"border","width"),m=ta(i,"padding");c-=m.width+h.width,u-=m.height+h.height}return c=Math.max(0,c-o.width),u=Math.max(0,r?c/r:u-o.height),c=_u(Math.min(c,a,l.maxWidth)),u=_u(Math.min(u,s,l.maxHeight)),c&&!u&&(u=_u(c/2)),(t!==void 0||n!==void 0)&&r&&l.height&&u>l.height&&(u=l.height,c=_u(Math.floor(u*r))),{width:c,height:u}}function lx(e,t,n){const r=t||1,i=Math.floor(e.height*r),o=Math.floor(e.width*r);e.height=Math.floor(e.height),e.width=Math.floor(e.width);const a=e.canvas;return a.style&&(n||!a.style.height&&!a.style.width)&&(a.style.height=`${e.height}px`,a.style.width=`${e.width}px`),e.currentDevicePixelRatio!==r||a.height!==i||a.width!==o?(e.currentDevicePixelRatio=r,a.height=i,a.width=o,e.ctx.setTransform(r,0,0,r,0,0),!0):!1}const Wj=function(){let e=!1;try{const t={get passive(){return e=!0,!1}};b0()&&(window.addEventListener("test",null,t),window.removeEventListener("test",null,t))}catch{}return e}();function cx(e,t){const n=Dj(e,t),r=n&&n.match(/^(\d+)(\.\d+)?px$/);return r?+r[1]:void 0}function jo(e,t,n,r){return{x:e.x+n*(t.x-e.x),y:e.y+n*(t.y-e.y)}}function Uj(e,t,n,r){return{x:e.x+n*(t.x-e.x),y:r==="middle"?n<.5?e.y:t.y:r==="after"?n<1?e.y:t.y:n>0?t.y:e.y}}function Gj(e,t,n,r){const i={x:e.cp2x,y:e.cp2y},o={x:t.cp1x,y:t.cp1y},a=jo(e,i,n),s=jo(i,o,n),l=jo(o,t,n),c=jo(a,s,n),u=jo(s,l,n);return jo(c,u,n)}const Kj=function(e,t){return{x(n){return e+e+t-n},setWidth(n){t=n},textAlign(n){return n==="center"?n:n==="right"?"left":"right"},xPlus(n,r){return n-r},leftForLtr(n,r){return n-r}}},qj=function(){return{x(e){return e},setWidth(e){},textAlign(e){return e},xPlus(e,t){return e+t},leftForLtr(e,t){return e}}};function ls(e,t,n){return e?Kj(t,n):qj()}function D$(e,t){let n,r;(t==="ltr"||t==="rtl")&&(n=e.canvas.style,r=[n.getPropertyValue("direction"),n.getPropertyPriority("direction")],n.setProperty("direction",t,"important"),e.prevTextDirection=r)}function z$(e,t){t!==void 0&&(delete e.prevTextDirection,e.canvas.style.setProperty("direction",t[0],t[1]))}function j$(e){return e==="angle"?{between:E$,compare:Gz,normalize:Xi}:{between:ul,compare:(t,n)=>t-n,normalize:t=>t}}function ux({start:e,end:t,count:n,loop:r,style:i}){return{start:e%n,end:t%n,loop:r&&(t-e+1)%n===0,style:i}}function Xj(e,t,n){const{property:r,start:i,end:o}=n,{between:a,normalize:s}=j$(r),l=t.length;let{start:c,end:u,loop:f}=e,h,m;if(f){for(c+=l,u+=l,h=0,m=l;hl(i,x,p)&&s(i,x)!==0,C=()=>s(o,p)===0||l(o,x,p),w=()=>v||S(),E=()=>!v||C();for(let _=u,O=u;_<=f;++_)g=t[_%a],!g.skip&&(p=c(g[r]),p!==x&&(v=l(p,i,o),b===null&&w()&&(b=s(p,i)===0?_:O),b!==null&&E()&&(y.push(ux({start:b,end:_,loop:h,count:a,style:m})),b=null),O=_,x=p));return b!==null&&y.push(ux({start:b,end:f,loop:h,count:a,style:m})),y}function Qj(e,t){const n=[],r=e.segments;for(let i=0;ii&&e[o%t].skip;)o--;return o%=t,{start:i,end:o}}function Jj(e,t,n,r){const i=e.length,o=[];let a=t,s=e[t],l;for(l=t+1;l<=n;++l){const c=e[l%i];c.skip||c.stop?s.skip||(r=!1,o.push({start:t%i,end:(l-1)%i,loop:r}),t=a=c.stop?l:null):(a=l,s.skip&&(t=l)),s=c}return a!==null&&o.push({start:t%i,end:a%i,loop:r}),o}function e3(e,t){const n=e.points,r=e.options.spanGaps,i=n.length;if(!i)return[];const o=!!e._loop,{start:a,end:s}=Zj(n,i,o,r);if(r===!0)return dx(e,[{start:a,end:s,loop:o}],n,t);const l=s{let e=0;return()=>e++})();function on(e){return e===null||typeof e>"u"}function Rn(e){if(Array.isArray&&Array.isArray(e))return!0;const t=Object.prototype.toString.call(e);return t.slice(0,7)==="[object"&&t.slice(-6)==="Array]"}function wt(e){return e!==null&&Object.prototype.toString.call(e)==="[object Object]"}function Br(e){return(typeof e=="number"||e instanceof Number)&&isFinite(+e)}function ui(e,t){return Br(e)?e:t}function it(e,t){return typeof e>"u"?t:e}const kz=(e,t)=>typeof e=="string"&&e.endsWith("%")?parseFloat(e)/100*t:+e;function Xe(e,t,n){if(e&&typeof e.call=="function")return e.apply(n,t)}function at(e,t,n,r){let i,o,a;if(Rn(e))for(o=e.length,i=0;ie,x:e=>e.x,y:e=>e.y};function Az(e){const t=e.split("."),n=[];let r="";for(const i of t)r+=i,r.endsWith("\\")?r=r.slice(0,-1)+".":(n.push(r),r="");return n}function Lz(e){const t=Az(e);return n=>{for(const r of t){if(r==="")break;n=n&&n[r]}return n}}function Ud(e,t){return(q1[t]||(q1[t]=Lz(t)))(e)}function u0(e){return e.charAt(0).toUpperCase()+e.slice(1)}const Gd=e=>typeof e<"u",wo=e=>typeof e=="function",X1=(e,t)=>{if(e.size!==t.size)return!1;for(const n of e)if(!t.has(n))return!1;return!0};function Dz(e){return e.type==="mouseup"||e.type==="click"||e.type==="contextmenu"}const Fn=Math.PI,xi=2*Fn,zz=xi+Fn,Kd=Number.POSITIVE_INFINITY,jz=Fn/180,ei=Fn/2,Fo=Fn/4,Y1=Fn*2/3,op=Math.log10,Eo=Math.sign;function Tl(e,t,n){return Math.abs(e-t)i-o).pop(),t}function yc(e){return!isNaN(parseFloat(e))&&isFinite(e)}function Hz(e,t){const n=Math.round(e);return n-t<=e&&n+t>=e}function Vz(e,t,n){let r,i,o;for(r=0,i=e.length;rl&&c=Math.min(t,n)-r&&e<=Math.max(t,n)+r}function d0(e,t,n){n=n||(a=>e[a]1;)o=i+r>>1,n(o)?i=o:r=o;return{lo:i,hi:r}}const Yo=(e,t,n,r)=>d0(e,n,r?i=>{const o=e[i][t];return oe[i][t]d0(e,n,r=>e[r][t]>=n);function Xz(e,t,n){let r=0,i=e.length;for(;rr&&e[i-1]>n;)i--;return r>0||i{const r="_onData"+u0(n),i=e[n];Object.defineProperty(e,n,{configurable:!0,enumerable:!1,value(...o){const a=i.apply(this,o);return e._chartjs.listeners.forEach(s=>{typeof s[r]=="function"&&s[r](...o)}),a}})})}function J1(e,t){const n=e._chartjs;if(!n)return;const r=n.listeners,i=r.indexOf(t);i!==-1&&r.splice(i,1),!(r.length>0)&&(_$.forEach(o=>{delete e[o]}),delete e._chartjs)}function Qz(e){const t=new Set(e);return t.size===e.length?e:Array.from(t)}const $$=function(){return typeof window>"u"?function(e){return e()}:window.requestAnimationFrame}();function O$(e,t){let n=[],r=!1;return function(...i){n=i,r||(r=!0,$$.call(window,()=>{r=!1,e.apply(t,n)}))}}function Zz(e,t){let n;return function(...r){return t?(clearTimeout(n),n=setTimeout(e,t,r)):e.apply(this,r),t}}const f0=e=>e==="start"?"left":e==="end"?"right":"center",Wn=(e,t,n)=>e==="start"?t:e==="end"?n:(t+n)/2,Jz=(e,t,n,r)=>e===(r?"left":"right")?n:e==="center"?(t+n)/2:t;function ej(e,t,n){const r=t.length;let i=0,o=r;if(e._sorted){const{iScale:a,_parsed:s}=e,l=a.axis,{min:c,max:u,minDefined:f,maxDefined:h}=a.getUserBounds();f&&(i=Nr(Math.min(Yo(s,l,c).lo,n?r:Yo(t,l,a.getPixelForValue(c)).lo),0,r-1)),h?o=Nr(Math.max(Yo(s,a.axis,u,!0).hi+1,n?0:Yo(t,l,a.getPixelForValue(u),!0).hi+1),i,r)-i:o=r-i}return{start:i,count:o}}function tj(e){const{xScale:t,yScale:n,_scaleRanges:r}=e,i={xmin:t.min,xmax:t.max,ymin:n.min,ymax:n.max};if(!r)return e._scaleRanges=i,!0;const o=r.xmin!==t.min||r.xmax!==t.max||r.ymin!==n.min||r.ymax!==n.max;return Object.assign(r,i),o}const Cu=e=>e===0||e===1,ex=(e,t,n)=>-(Math.pow(2,10*(e-=1))*Math.sin((e-t)*xi/n)),tx=(e,t,n)=>Math.pow(2,-10*e)*Math.sin((e-t)*xi/n)+1,Rl={linear:e=>e,easeInQuad:e=>e*e,easeOutQuad:e=>-e*(e-2),easeInOutQuad:e=>(e/=.5)<1?.5*e*e:-.5*(--e*(e-2)-1),easeInCubic:e=>e*e*e,easeOutCubic:e=>(e-=1)*e*e+1,easeInOutCubic:e=>(e/=.5)<1?.5*e*e*e:.5*((e-=2)*e*e+2),easeInQuart:e=>e*e*e*e,easeOutQuart:e=>-((e-=1)*e*e*e-1),easeInOutQuart:e=>(e/=.5)<1?.5*e*e*e*e:-.5*((e-=2)*e*e*e-2),easeInQuint:e=>e*e*e*e*e,easeOutQuint:e=>(e-=1)*e*e*e*e+1,easeInOutQuint:e=>(e/=.5)<1?.5*e*e*e*e*e:.5*((e-=2)*e*e*e*e+2),easeInSine:e=>-Math.cos(e*ei)+1,easeOutSine:e=>Math.sin(e*ei),easeInOutSine:e=>-.5*(Math.cos(Fn*e)-1),easeInExpo:e=>e===0?0:Math.pow(2,10*(e-1)),easeOutExpo:e=>e===1?1:-Math.pow(2,-10*e)+1,easeInOutExpo:e=>Cu(e)?e:e<.5?.5*Math.pow(2,10*(e*2-1)):.5*(-Math.pow(2,-10*(e*2-1))+2),easeInCirc:e=>e>=1?e:-(Math.sqrt(1-e*e)-1),easeOutCirc:e=>Math.sqrt(1-(e-=1)*e),easeInOutCirc:e=>(e/=.5)<1?-.5*(Math.sqrt(1-e*e)-1):.5*(Math.sqrt(1-(e-=2)*e)+1),easeInElastic:e=>Cu(e)?e:ex(e,.075,.3),easeOutElastic:e=>Cu(e)?e:tx(e,.075,.3),easeInOutElastic(e){return Cu(e)?e:e<.5?.5*ex(e*2,.1125,.45):.5+.5*tx(e*2-1,.1125,.45)},easeInBack(e){return e*e*((1.70158+1)*e-1.70158)},easeOutBack(e){return(e-=1)*e*((1.70158+1)*e+1.70158)+1},easeInOutBack(e){let t=1.70158;return(e/=.5)<1?.5*(e*e*(((t*=1.525)+1)*e-t)):.5*((e-=2)*e*(((t*=1.525)+1)*e+t)+2)},easeInBounce:e=>1-Rl.easeOutBounce(1-e),easeOutBounce(e){return e<1/2.75?7.5625*e*e:e<2/2.75?7.5625*(e-=1.5/2.75)*e+.75:e<2.5/2.75?7.5625*(e-=2.25/2.75)*e+.9375:7.5625*(e-=2.625/2.75)*e+.984375},easeInOutBounce:e=>e<.5?Rl.easeInBounce(e*2)*.5:Rl.easeOutBounce(e*2-1)*.5+.5};function h0(e){if(e&&typeof e=="object"){const t=e.toString();return t==="[object CanvasPattern]"||t==="[object CanvasGradient]"}return!1}function nx(e){return h0(e)?e:new pc(e)}function eg(e){return h0(e)?e:new pc(e).saturate(.5).darken(.1).hexString()}const nj=["x","y","borderWidth","radius","tension"],rj=["color","borderColor","backgroundColor"];function ij(e){e.set("animation",{delay:void 0,duration:1e3,easing:"easeOutQuart",fn:void 0,from:void 0,loop:void 0,to:void 0,type:void 0}),e.describe("animation",{_fallback:!1,_indexable:!1,_scriptable:t=>t!=="onProgress"&&t!=="onComplete"&&t!=="fn"}),e.set("animations",{colors:{type:"color",properties:rj},numbers:{type:"number",properties:nj}}),e.describe("animations",{_fallback:"animation"}),e.set("transitions",{active:{animation:{duration:400}},resize:{animation:{duration:0}},show:{animations:{colors:{from:"transparent"},visible:{type:"boolean",duration:0}}},hide:{animations:{colors:{to:"transparent"},visible:{type:"boolean",easing:"linear",fn:t=>t|0}}}})}function oj(e){e.set("layout",{autoPadding:!0,padding:{top:0,right:0,bottom:0,left:0}})}const rx=new Map;function aj(e,t){t=t||{};const n=e+JSON.stringify(t);let r=rx.get(n);return r||(r=new Intl.NumberFormat(e,t),rx.set(n,r)),r}function P$(e,t,n){return aj(t,n).format(e)}const M$={values(e){return Rn(e)?e:""+e},numeric(e,t,n){if(e===0)return"0";const r=this.chart.options.locale;let i,o=e;if(n.length>1){const c=Math.max(Math.abs(n[0].value),Math.abs(n[n.length-1].value));(c<1e-4||c>1e15)&&(i="scientific"),o=sj(e,n)}const a=op(Math.abs(o)),s=isNaN(a)?1:Math.max(Math.min(-1*Math.floor(a),20),0),l={notation:i,minimumFractionDigits:s,maximumFractionDigits:s};return Object.assign(l,this.options.ticks.format),P$(e,r,l)},logarithmic(e,t,n){if(e===0)return"0";const r=n[t].significand||e/Math.pow(10,Math.floor(op(e)));return[1,2,3,5,10,15].includes(r)||t>.8*n.length?M$.numeric.call(this,e,t,n):""}};function sj(e,t){let n=t.length>3?t[2].value-t[1].value:t[1].value-t[0].value;return Math.abs(n)>=1&&e!==Math.floor(e)&&(n=e-Math.floor(e)),n}var T$={formatters:M$};function lj(e){e.set("scale",{display:!0,offset:!1,reverse:!1,beginAtZero:!1,bounds:"ticks",clip:!0,grace:0,grid:{display:!0,lineWidth:1,drawOnChartArea:!0,drawTicks:!0,tickLength:8,tickWidth:(t,n)=>n.lineWidth,tickColor:(t,n)=>n.color,offset:!1},border:{display:!0,dash:[],dashOffset:0,width:1},title:{display:!1,text:"",padding:{top:4,bottom:4}},ticks:{minRotation:0,maxRotation:50,mirror:!1,textStrokeWidth:0,textStrokeColor:"",padding:3,display:!0,autoSkip:!0,autoSkipPadding:3,labelOffset:0,callback:T$.formatters.values,minor:{},major:{},align:"center",crossAlign:"near",showLabelBackdrop:!1,backdropColor:"rgba(255, 255, 255, 0.75)",backdropPadding:2}}),e.route("scale.ticks","color","","color"),e.route("scale.grid","color","","borderColor"),e.route("scale.border","color","","borderColor"),e.route("scale.title","color","","color"),e.describe("scale",{_fallback:!1,_scriptable:t=>!t.startsWith("before")&&!t.startsWith("after")&&t!=="callback"&&t!=="parser",_indexable:t=>t!=="borderDash"&&t!=="tickBorderDash"&&t!=="dash"}),e.describe("scales",{_fallback:"scale"}),e.describe("scale.ticks",{_scriptable:t=>t!=="backdropPadding"&&t!=="callback",_indexable:t=>t!=="backdropPadding"})}const fa=Object.create(null),sp=Object.create(null);function Il(e,t){if(!t)return e;const n=t.split(".");for(let r=0,i=n.length;rr.chart.platform.getDevicePixelRatio(),this.elements={},this.events=["mousemove","mouseout","click","touchstart","touchmove"],this.font={family:"'Helvetica Neue', 'Helvetica', 'Arial', sans-serif",size:12,style:"normal",lineHeight:1.2,weight:null},this.hover={},this.hoverBackgroundColor=(r,i)=>eg(i.backgroundColor),this.hoverBorderColor=(r,i)=>eg(i.borderColor),this.hoverColor=(r,i)=>eg(i.color),this.indexAxis="x",this.interaction={mode:"nearest",intersect:!0,includeInvisible:!1},this.maintainAspectRatio=!0,this.onHover=null,this.onClick=null,this.parsing=!0,this.plugins={},this.responsive=!0,this.scale=void 0,this.scales={},this.showLine=!0,this.drawActiveElementsOnTop=!0,this.describe(t),this.apply(n)}set(t,n){return tg(this,t,n)}get(t){return Il(this,t)}describe(t,n){return tg(sp,t,n)}override(t,n){return tg(fa,t,n)}route(t,n,r,i){const o=Il(this,t),a=Il(this,r),s="_"+n;Object.defineProperties(o,{[s]:{value:o[n],writable:!0},[n]:{enumerable:!0,get(){const l=this[s],c=a[i];return wt(l)?Object.assign({},c,l):it(l,c)},set(l){this[s]=l}}})}apply(t){t.forEach(n=>n(this))}}var dn=new cj({_scriptable:e=>!e.startsWith("on"),_indexable:e=>e!=="events",hover:{_fallback:"interaction"},interaction:{_scriptable:!1,_indexable:!1}},[ij,oj,lj]);function uj(e){return!e||on(e.size)||on(e.family)?null:(e.style?e.style+" ":"")+(e.weight?e.weight+" ":"")+e.size+"px "+e.family}function ix(e,t,n,r,i){let o=t[i];return o||(o=t[i]=e.measureText(i).width,n.push(i)),o>r&&(r=o),r}function Ao(e,t,n){const r=e.currentDevicePixelRatio,i=n!==0?Math.max(n/2,.5):0;return Math.round((t-i)*r)/r+i}function ox(e,t){!t&&!e||(t=t||e.getContext("2d"),t.save(),t.resetTransform(),t.clearRect(0,0,e.width,e.height),t.restore())}function lp(e,t,n,r){R$(e,t,n,r,null)}function R$(e,t,n,r,i){let o,a,s,l,c,u,f,h;const m=t.pointStyle,y=t.rotation,v=t.radius;let b=(y||0)*jz;if(m&&typeof m=="object"&&(o=m.toString(),o==="[object HTMLImageElement]"||o==="[object HTMLCanvasElement]")){e.save(),e.translate(n,r),e.rotate(b),e.drawImage(m,-m.width/2,-m.height/2,m.width,m.height),e.restore();return}if(!(isNaN(v)||v<=0)){switch(e.beginPath(),m){default:i?e.ellipse(n,r,i/2,v,0,0,xi):e.arc(n,r,v,0,xi),e.closePath();break;case"triangle":u=i?i/2:v,e.moveTo(n+Math.sin(b)*u,r-Math.cos(b)*v),b+=Y1,e.lineTo(n+Math.sin(b)*u,r-Math.cos(b)*v),b+=Y1,e.lineTo(n+Math.sin(b)*u,r-Math.cos(b)*v),e.closePath();break;case"rectRounded":c=v*.516,l=v-c,a=Math.cos(b+Fo)*l,f=Math.cos(b+Fo)*(i?i/2-c:l),s=Math.sin(b+Fo)*l,h=Math.sin(b+Fo)*(i?i/2-c:l),e.arc(n-f,r-s,c,b-Fn,b-ei),e.arc(n+h,r-a,c,b-ei,b),e.arc(n+f,r+s,c,b,b+ei),e.arc(n-h,r+a,c,b+ei,b+Fn),e.closePath();break;case"rect":if(!y){l=Math.SQRT1_2*v,u=i?i/2:l,e.rect(n-u,r-l,2*u,2*l);break}b+=Fo;case"rectRot":f=Math.cos(b)*(i?i/2:v),a=Math.cos(b)*v,s=Math.sin(b)*v,h=Math.sin(b)*(i?i/2:v),e.moveTo(n-f,r-s),e.lineTo(n+h,r-a),e.lineTo(n+f,r+s),e.lineTo(n-h,r+a),e.closePath();break;case"crossRot":b+=Fo;case"cross":f=Math.cos(b)*(i?i/2:v),a=Math.cos(b)*v,s=Math.sin(b)*v,h=Math.sin(b)*(i?i/2:v),e.moveTo(n-f,r-s),e.lineTo(n+f,r+s),e.moveTo(n+h,r-a),e.lineTo(n-h,r+a);break;case"star":f=Math.cos(b)*(i?i/2:v),a=Math.cos(b)*v,s=Math.sin(b)*v,h=Math.sin(b)*(i?i/2:v),e.moveTo(n-f,r-s),e.lineTo(n+f,r+s),e.moveTo(n+h,r-a),e.lineTo(n-h,r+a),b+=Fo,f=Math.cos(b)*(i?i/2:v),a=Math.cos(b)*v,s=Math.sin(b)*v,h=Math.sin(b)*(i?i/2:v),e.moveTo(n-f,r-s),e.lineTo(n+f,r+s),e.moveTo(n+h,r-a),e.lineTo(n-h,r+a);break;case"line":a=i?i/2:Math.cos(b)*v,s=Math.sin(b)*v,e.moveTo(n-a,r-s),e.lineTo(n+a,r+s);break;case"dash":e.moveTo(n,r),e.lineTo(n+Math.cos(b)*(i?i/2:v),r+Math.sin(b)*v);break;case!1:e.closePath();break}e.fill(),t.borderWidth>0&&e.stroke()}}function bc(e,t,n){return n=n||.5,!t||e&&e.x>t.left-n&&e.xt.top-n&&e.y0&&o.strokeColor!=="";let l,c;for(e.save(),e.font=i.string,hj(e,o),l=0;l+e||0;function I$(e,t){const n={},r=wt(t),i=r?Object.keys(t):t,o=wt(e)?r?a=>it(e[a],e[t[a]]):a=>e[a]:()=>e;for(const a of i)n[a]=bj(o(a));return n}function xj(e){return I$(e,{top:"y",right:"x",bottom:"y",left:"x"})}function kl(e){return I$(e,["topLeft","topRight","bottomLeft","bottomRight"])}function Hr(e){const t=xj(e);return t.width=t.left+t.right,t.height=t.top+t.bottom,t}function Kn(e,t){e=e||{},t=t||dn.font;let n=it(e.size,t.size);typeof n=="string"&&(n=parseInt(n,10));let r=it(e.style,t.style);r&&!(""+r).match(vj)&&(console.warn('Invalid font style specified: "'+r+'"'),r=void 0);const i={family:it(e.family,t.family),lineHeight:yj(it(e.lineHeight,t.lineHeight),n),size:n,style:r,weight:it(e.weight,t.weight),string:""};return i.string=uj(i),i}function wu(e,t,n,r){let i,o,a;for(i=0,o=e.length;in&&s===0?0:s+l;return{min:a(r,-Math.abs(o)),max:a(i,o)}}function ya(e,t){return Object.assign(Object.create(e),t)}function p0(e,t=[""],n,r,i=()=>e[0]){const o=n||e;typeof r>"u"&&(r=A$("_fallback",e));const a={[Symbol.toStringTag]:"Object",_cacheable:!0,_scopes:e,_rootScopes:o,_fallback:r,_getTarget:i,override:s=>p0([s,...e],t,o,r)};return new Proxy(a,{deleteProperty(s,l){return delete s[l],delete s._keys,delete e[0][l],!0},get(s,l){return N$(s,l,()=>Mj(l,t,e,s))},getOwnPropertyDescriptor(s,l){return Reflect.getOwnPropertyDescriptor(s._scopes[0],l)},getPrototypeOf(){return Reflect.getPrototypeOf(e[0])},has(s,l){return sx(s).includes(l)},ownKeys(s){return sx(s)},set(s,l,c){const u=s._storage||(s._storage=i());return s[l]=u[l]=c,delete s._keys,!0}})}function ws(e,t,n,r){const i={_cacheable:!1,_proxy:e,_context:t,_subProxy:n,_stack:new Set,_descriptors:k$(e,r),setContext:o=>ws(e,o,n,r),override:o=>ws(e.override(o),t,n,r)};return new Proxy(i,{deleteProperty(o,a){return delete o[a],delete e[a],!0},get(o,a,s){return N$(o,a,()=>wj(o,a,s))},getOwnPropertyDescriptor(o,a){return o._descriptors.allKeys?Reflect.has(e,a)?{enumerable:!0,configurable:!0}:void 0:Reflect.getOwnPropertyDescriptor(e,a)},getPrototypeOf(){return Reflect.getPrototypeOf(e)},has(o,a){return Reflect.has(e,a)},ownKeys(){return Reflect.ownKeys(e)},set(o,a,s){return e[a]=s,delete o[a],!0}})}function k$(e,t={scriptable:!0,indexable:!0}){const{_scriptable:n=t.scriptable,_indexable:r=t.indexable,_allKeys:i=t.allKeys}=e;return{allKeys:i,scriptable:n,indexable:r,isScriptable:wo(n)?n:()=>n,isIndexable:wo(r)?r:()=>r}}const Cj=(e,t)=>e?e+u0(t):t,v0=(e,t)=>wt(t)&&e!=="adapters"&&(Object.getPrototypeOf(t)===null||t.constructor===Object);function N$(e,t,n){if(Object.prototype.hasOwnProperty.call(e,t)||t==="constructor")return e[t];const r=n();return e[t]=r,r}function wj(e,t,n){const{_proxy:r,_context:i,_subProxy:o,_descriptors:a}=e;let s=r[t];return wo(s)&&a.isScriptable(t)&&(s=Ej(t,s,e,n)),Rn(s)&&s.length&&(s=_j(t,s,e,a.isIndexable)),v0(t,s)&&(s=ws(s,i,o&&o[t],a)),s}function Ej(e,t,n,r){const{_proxy:i,_context:o,_subProxy:a,_stack:s}=n;if(s.has(e))throw new Error("Recursion detected: "+Array.from(s).join("->")+"->"+e);s.add(e);let l=t(o,a||r);return s.delete(e),v0(e,l)&&(l=y0(i._scopes,i,e,l)),l}function _j(e,t,n,r){const{_proxy:i,_context:o,_subProxy:a,_descriptors:s}=n;if(typeof o.index<"u"&&r(e))return t[o.index%t.length];if(wt(t[0])){const l=t,c=i._scopes.filter(u=>u!==l);t=[];for(const u of l){const f=y0(c,i,e,u);t.push(ws(f,o,a&&a[e],s))}}return t}function F$(e,t,n){return wo(e)?e(t,n):e}const $j=(e,t)=>e===!0?t:typeof e=="string"?Ud(t,e):void 0;function Oj(e,t,n,r,i){for(const o of t){const a=$j(n,o);if(a){e.add(a);const s=F$(a._fallback,n,i);if(typeof s<"u"&&s!==n&&s!==r)return s}else if(a===!1&&typeof r<"u"&&n!==r)return null}return!1}function y0(e,t,n,r){const i=t._rootScopes,o=F$(t._fallback,n,r),a=[...e,...i],s=new Set;s.add(r);let l=ax(s,a,n,o||n,r);return l===null||typeof o<"u"&&o!==n&&(l=ax(s,a,o,l,r),l===null)?!1:p0(Array.from(s),[""],i,o,()=>Pj(t,n,r))}function ax(e,t,n,r,i){for(;n;)n=Oj(e,t,n,r,i);return n}function Pj(e,t,n){const r=e._getTarget();t in r||(r[t]={});const i=r[t];return Rn(i)&&wt(n)?n:i||{}}function Mj(e,t,n,r){let i;for(const o of t)if(i=A$(Cj(o,e),n),typeof i<"u")return v0(e,i)?y0(n,r,e,i):i}function A$(e,t){for(const n of t){if(!n)continue;const r=n[e];if(typeof r<"u")return r}}function sx(e){let t=e._keys;return t||(t=e._keys=Tj(e._scopes)),t}function Tj(e){const t=new Set;for(const n of e)for(const r of Object.keys(n).filter(i=>!i.startsWith("_")))t.add(r);return Array.from(t)}const Rj=Number.EPSILON||1e-14,Es=(e,t)=>te==="x"?"y":"x";function Ij(e,t,n,r){const i=e.skip?t:e,o=t,a=n.skip?t:n,s=ap(o,i),l=ap(a,o);let c=s/(s+l),u=l/(s+l);c=isNaN(c)?0:c,u=isNaN(u)?0:u;const f=r*c,h=r*u;return{previous:{x:o.x-f*(a.x-i.x),y:o.y-f*(a.y-i.y)},next:{x:o.x+h*(a.x-i.x),y:o.y+h*(a.y-i.y)}}}function kj(e,t,n){const r=e.length;let i,o,a,s,l,c=Es(e,0);for(let u=0;u!c.skip)),t.cubicInterpolationMode==="monotone")Fj(e,i);else{let c=r?e[e.length-1]:e[0];for(o=0,a=e.length;oe.ownerDocument.defaultView.getComputedStyle(e,null);function Dj(e,t){return Gf(e).getPropertyValue(t)}const zj=["top","right","bottom","left"];function ta(e,t,n){const r={};n=n?"-"+n:"";for(let i=0;i<4;i++){const o=zj[i];r[o]=parseFloat(e[t+"-"+o+n])||0}return r.width=r.left+r.right,r.height=r.top+r.bottom,r}const jj=(e,t,n)=>(e>0||t>0)&&(!n||!n.shadowRoot);function Bj(e,t){const n=e.touches,r=n&&n.length?n[0]:e,{offsetX:i,offsetY:o}=r;let a=!1,s,l;if(jj(i,o,e.target))s=i,l=o;else{const c=t.getBoundingClientRect();s=r.clientX-c.left,l=r.clientY-c.top,a=!0}return{x:s,y:l,box:a}}function mi(e,t){if("native"in e)return e;const{canvas:n,currentDevicePixelRatio:r}=t,i=Gf(n),o=i.boxSizing==="border-box",a=ta(i,"padding"),s=ta(i,"border","width"),{x:l,y:c,box:u}=Bj(e,n),f=a.left+(u&&s.left),h=a.top+(u&&s.top);let{width:m,height:y}=t;return o&&(m-=a.width+s.width,y-=a.height+s.height),{x:Math.round((l-f)/m*n.width/r),y:Math.round((c-h)/y*n.height/r)}}function Hj(e,t,n){let r,i;if(t===void 0||n===void 0){const o=e&&x0(e);if(!o)t=e.clientWidth,n=e.clientHeight;else{const a=o.getBoundingClientRect(),s=Gf(o),l=ta(s,"border","width"),c=ta(s,"padding");t=a.width-c.width-l.width,n=a.height-c.height-l.height,r=qd(s.maxWidth,o,"clientWidth"),i=qd(s.maxHeight,o,"clientHeight")}}return{width:t,height:n,maxWidth:r||Kd,maxHeight:i||Kd}}const _u=e=>Math.round(e*10)/10;function Vj(e,t,n,r){const i=Gf(e),o=ta(i,"margin"),a=qd(i.maxWidth,e,"clientWidth")||Kd,s=qd(i.maxHeight,e,"clientHeight")||Kd,l=Hj(e,t,n);let{width:c,height:u}=l;if(i.boxSizing==="content-box"){const h=ta(i,"border","width"),m=ta(i,"padding");c-=m.width+h.width,u-=m.height+h.height}return c=Math.max(0,c-o.width),u=Math.max(0,r?c/r:u-o.height),c=_u(Math.min(c,a,l.maxWidth)),u=_u(Math.min(u,s,l.maxHeight)),c&&!u&&(u=_u(c/2)),(t!==void 0||n!==void 0)&&r&&l.height&&u>l.height&&(u=l.height,c=_u(Math.floor(u*r))),{width:c,height:u}}function lx(e,t,n){const r=t||1,i=Math.floor(e.height*r),o=Math.floor(e.width*r);e.height=Math.floor(e.height),e.width=Math.floor(e.width);const a=e.canvas;return a.style&&(n||!a.style.height&&!a.style.width)&&(a.style.height=`${e.height}px`,a.style.width=`${e.width}px`),e.currentDevicePixelRatio!==r||a.height!==i||a.width!==o?(e.currentDevicePixelRatio=r,a.height=i,a.width=o,e.ctx.setTransform(r,0,0,r,0,0),!0):!1}const Wj=function(){let e=!1;try{const t={get passive(){return e=!0,!1}};b0()&&(window.addEventListener("test",null,t),window.removeEventListener("test",null,t))}catch{}return e}();function cx(e,t){const n=Dj(e,t),r=n&&n.match(/^(\d+)(\.\d+)?px$/);return r?+r[1]:void 0}function jo(e,t,n,r){return{x:e.x+n*(t.x-e.x),y:e.y+n*(t.y-e.y)}}function Uj(e,t,n,r){return{x:e.x+n*(t.x-e.x),y:r==="middle"?n<.5?e.y:t.y:r==="after"?n<1?e.y:t.y:n>0?t.y:e.y}}function Gj(e,t,n,r){const i={x:e.cp2x,y:e.cp2y},o={x:t.cp1x,y:t.cp1y},a=jo(e,i,n),s=jo(i,o,n),l=jo(o,t,n),c=jo(a,s,n),u=jo(s,l,n);return jo(c,u,n)}const Kj=function(e,t){return{x(n){return e+e+t-n},setWidth(n){t=n},textAlign(n){return n==="center"?n:n==="right"?"left":"right"},xPlus(n,r){return n-r},leftForLtr(n,r){return n-r}}},qj=function(){return{x(e){return e},setWidth(e){},textAlign(e){return e},xPlus(e,t){return e+t},leftForLtr(e,t){return e}}};function ls(e,t,n){return e?Kj(t,n):qj()}function D$(e,t){let n,r;(t==="ltr"||t==="rtl")&&(n=e.canvas.style,r=[n.getPropertyValue("direction"),n.getPropertyPriority("direction")],n.setProperty("direction",t,"important"),e.prevTextDirection=r)}function z$(e,t){t!==void 0&&(delete e.prevTextDirection,e.canvas.style.setProperty("direction",t[0],t[1]))}function j$(e){return e==="angle"?{between:E$,compare:Gz,normalize:Xi}:{between:ul,compare:(t,n)=>t-n,normalize:t=>t}}function ux({start:e,end:t,count:n,loop:r,style:i}){return{start:e%n,end:t%n,loop:r&&(t-e+1)%n===0,style:i}}function Xj(e,t,n){const{property:r,start:i,end:o}=n,{between:a,normalize:s}=j$(r),l=t.length;let{start:c,end:u,loop:f}=e,h,m;if(f){for(c+=l,u+=l,h=0,m=l;hl(i,x,p)&&s(i,x)!==0,C=()=>s(o,p)===0||l(o,x,p),w=()=>v||S(),E=()=>!v||C();for(let _=u,O=u;_<=f;++_)g=t[_%a],!g.skip&&(p=c(g[r]),p!==x&&(v=l(p,i,o),b===null&&w()&&(b=s(p,i)===0?_:O),b!==null&&E()&&(y.push(ux({start:b,end:_,loop:h,count:a,style:m})),b=null),O=_,x=p));return b!==null&&y.push(ux({start:b,end:f,loop:h,count:a,style:m})),y}function Qj(e,t){const n=[],r=e.segments;for(let i=0;ii&&e[o%t].skip;)o--;return o%=t,{start:i,end:o}}function Jj(e,t,n,r){const i=e.length,o=[];let a=t,s=e[t],l;for(l=t+1;l<=n;++l){const c=e[l%i];c.skip||c.stop?s.skip||(r=!1,o.push({start:t%i,end:(l-1)%i,loop:r}),t=a=c.stop?l:null):(a=l,s.skip&&(t=l)),s=c}return a!==null&&o.push({start:t%i,end:a%i,loop:r}),o}function e3(e,t){const n=e.points,r=e.options.spanGaps,i=n.length;if(!i)return[];const o=!!e._loop,{start:a,end:s}=Zj(n,i,o,r);if(r===!0)return dx(e,[{start:a,end:s,loop:o}],n,t);const l=ss({chart:t,initial:n.initial,numSteps:a,currentStep:Math.min(r-n.start,a)}))}_refresh(){this._request||(this._running=!0,this._request=$$.call(window,()=>{this._update(),this._request=null,this._running&&this._refresh()}))}_update(t=Date.now()){let n=0;this._charts.forEach((r,i)=>{if(!r.running||!r.items.length)return;const o=r.items;let a=o.length-1,s=!1,l;for(;a>=0;--a)l=o[a],l._active?(l._total>r.duration&&(r.duration=l._total),l.tick(t),s=!0):(o[a]=o[o.length-1],o.pop());s&&(i.draw(),this._notify(i,r,t,"progress")),o.length||(r.running=!1,this._notify(i,r,t,"complete"),r.initial=!1),n+=o.length}),this._lastDate=t,n===0&&(this._running=!1)}_getAnims(t){const n=this._charts;let r=n.get(t);return r||(r={running:!1,initial:!0,items:[],listeners:{complete:[],progress:[]}},n.set(t,r)),r}listen(t,n,r){this._getAnims(t).listeners[n].push(r)}add(t,n){!n||!n.length||this._getAnims(t).items.push(...n)}has(t){return this._getAnims(t).items.length>0}start(t){const n=this._charts.get(t);n&&(n.running=!0,n.start=Date.now(),n.duration=n.items.reduce((r,i)=>Math.max(r,i._duration),0),this._refresh())}running(t){if(!this._running)return!1;const n=this._charts.get(t);return!(!n||!n.running||!n.items.length)}stop(t){const n=this._charts.get(t);if(!n||!n.items.length)return;const r=n.items;let i=r.length-1;for(;i>=0;--i)r[i].cancel();n.items=[],this._notify(t,n,Date.now(),"complete")}remove(t){return this._charts.delete(t)}}var _i=new r3;const hx="transparent",i3={boolean(e,t,n){return n>.5?t:e},color(e,t,n){const r=nx(e||hx),i=r.valid&&nx(t||hx);return i&&i.valid?i.mix(r,n).hexString():t},number(e,t,n){return e+(t-e)*n}};class o3{constructor(t,n,r,i){const o=n[r];i=wu([t.to,i,o,t.from]);const a=wu([t.from,o,i]);this._active=!0,this._fn=t.fn||i3[t.type||typeof a],this._easing=Rl[t.easing]||Rl.linear,this._start=Math.floor(Date.now()+(t.delay||0)),this._duration=this._total=Math.floor(t.duration),this._loop=!!t.loop,this._target=n,this._prop=r,this._from=a,this._to=i,this._promises=void 0}active(){return this._active}update(t,n,r){if(this._active){this._notify(!1);const i=this._target[this._prop],o=r-this._start,a=this._duration-o;this._start=r,this._duration=Math.floor(Math.max(a,t.duration)),this._total+=o,this._loop=!!t.loop,this._to=wu([t.to,n,i,t.from]),this._from=wu([t.from,i,n])}}cancel(){this._active&&(this.tick(Date.now()),this._active=!1,this._notify(!1))}tick(t){const n=t-this._start,r=this._duration,i=this._prop,o=this._from,a=this._loop,s=this._to;let l;if(this._active=o!==s&&(a||n1?2-l:l,l=this._easing(Math.min(1,Math.max(0,l))),this._target[i]=this._fn(o,s,l)}wait(){const t=this._promises||(this._promises=[]);return new Promise((n,r)=>{t.push({res:n,rej:r})})}_notify(t){const n=t?"res":"rej",r=this._promises||[];for(let i=0;i{const o=t[i];if(!wt(o))return;const a={};for(const s of n)a[s]=o[s];(Rn(o.properties)&&o.properties||[i]).forEach(s=>{(s===i||!r.has(s))&&r.set(s,a)})})}_animateOptions(t,n){const r=n.options,i=s3(t,r);if(!i)return[];const o=this._createAnimations(i,r);return r.$shared&&a3(t.options.$animations,r).then(()=>{t.options=r},()=>{}),o}_createAnimations(t,n){const r=this._properties,i=[],o=t.$animations||(t.$animations={}),a=Object.keys(n),s=Date.now();let l;for(l=a.length-1;l>=0;--l){const c=a[l];if(c.charAt(0)==="$")continue;if(c==="options"){i.push(...this._animateOptions(t,n));continue}const u=n[c];let f=o[c];const h=r.get(c);if(f)if(h&&f.active()){f.update(h,u,s);continue}else f.cancel();if(!h||!h.duration){t[c]=u;continue}o[c]=f=new o3(h,t,c,u),i.push(f)}return i}update(t,n){if(this._properties.size===0){Object.assign(t,n);return}const r=this._createAnimations(t,n);if(r.length)return _i.add(this._chart,r),!0}}function a3(e,t){const n=[],r=Object.keys(t);for(let i=0;i0||!n&&o<0)return i.index}return null}function yx(e,t){const{chart:n,_cachedMeta:r}=e,i=n._stacks||(n._stacks={}),{iScale:o,vScale:a,index:s}=r,l=o.axis,c=a.axis,u=d3(o,a,r),f=t.length;let h;for(let m=0;mn[r].axis===t).shift()}function g3(e,t){return ya(e,{active:!1,dataset:void 0,datasetIndex:t,index:t,mode:"default",type:"dataset"})}function m3(e,t,n){return ya(e,{active:!1,dataIndex:t,parsed:void 0,raw:void 0,element:n,index:t,mode:"default",type:"data"})}function Zs(e,t){const n=e.controller.index,r=e.vScale&&e.vScale.axis;if(r){t=t||e._parsed;for(const i of t){const o=i._stacks;if(!o||o[r]===void 0||o[r][n]===void 0)return;delete o[r][n],o[r]._visualValues!==void 0&&o[r]._visualValues[n]!==void 0&&delete o[r]._visualValues[n]}}}const ig=e=>e==="reset"||e==="none",bx=(e,t)=>t?e:Object.assign({},e),p3=(e,t,n)=>e&&!t.hidden&&t._stacked&&{keys:H$(n,!0),values:null};class Nl{constructor(t,n){this.chart=t,this._ctx=t.ctx,this.index=n,this._cachedDataOpts={},this._cachedMeta=this.getMeta(),this._type=this._cachedMeta.type,this.options=void 0,this._parsing=!1,this._data=void 0,this._objectData=void 0,this._sharedOptions=void 0,this._drawStart=void 0,this._drawCount=void 0,this.enableOptionSharing=!1,this.supportsDecimation=!1,this.$context=void 0,this._syncList=[],this.datasetElementType=new.target.datasetElementType,this.dataElementType=new.target.dataElementType,this.initialize()}initialize(){const t=this._cachedMeta;this.configure(),this.linkScales(),t._stacked=px(t.vScale,t),this.addElements(),this.options.fill&&!this.chart.isPluginEnabled("filler")&&console.warn("Tried to use the 'fill' option without the 'Filler' plugin enabled. Please import and register the 'Filler' plugin and make sure it is not disabled in the options")}updateIndex(t){this.index!==t&&Zs(this._cachedMeta),this.index=t}linkScales(){const t=this.chart,n=this._cachedMeta,r=this.getDataset(),i=(f,h,m,y)=>f==="x"?h:f==="r"?y:m,o=n.xAxisID=it(r.xAxisID,rg(t,"x")),a=n.yAxisID=it(r.yAxisID,rg(t,"y")),s=n.rAxisID=it(r.rAxisID,rg(t,"r")),l=n.indexAxis,c=n.iAxisID=i(l,o,a,s),u=n.vAxisID=i(l,a,o,s);n.xScale=this.getScaleForId(o),n.yScale=this.getScaleForId(a),n.rScale=this.getScaleForId(s),n.iScale=this.getScaleForId(c),n.vScale=this.getScaleForId(u)}getDataset(){return this.chart.data.datasets[this.index]}getMeta(){return this.chart.getDatasetMeta(this.index)}getScaleForId(t){return this.chart.scales[t]}_getOtherScale(t){const n=this._cachedMeta;return t===n.iScale?n.vScale:n.iScale}reset(){this._update("reset")}_destroy(){const t=this._cachedMeta;this._data&&J1(this._data,this),t._stacked&&Zs(t)}_dataCheck(){const t=this.getDataset(),n=t.data||(t.data=[]),r=this._data;if(wt(n)){const i=this._cachedMeta;this._data=u3(n,i)}else if(r!==n){if(r){J1(r,this);const i=this._cachedMeta;Zs(i),i._parsed=[]}n&&Object.isExtensible(n)&&Yz(n,this),this._syncList=[],this._data=n}}addElements(){const t=this._cachedMeta;this._dataCheck(),this.datasetElementType&&(t.dataset=new this.datasetElementType)}buildOrUpdateElements(t){const n=this._cachedMeta,r=this.getDataset();let i=!1;this._dataCheck();const o=n._stacked;n._stacked=px(n.vScale,n),n.stack!==r.stack&&(i=!0,Zs(n),n.stack=r.stack),this._resyncElements(t),(i||o!==n._stacked)&&yx(this,n._parsed)}configure(){const t=this.chart.config,n=t.datasetScopeKeys(this._type),r=t.getOptionScopes(this.getDataset(),n,!0);this.options=t.createResolver(r,this.getContext()),this._parsing=this.options.parsing,this._cachedDataOpts={}}parse(t,n){const{_cachedMeta:r,_data:i}=this,{iScale:o,_stacked:a}=r,s=o.axis;let l=t===0&&n===i.length?!0:r._sorted,c=t>0&&r._parsed[t-1],u,f,h;if(this._parsing===!1)r._parsed=i,r._sorted=!0,h=i;else{Rn(i[t])?h=this.parseArrayData(r,i,t,n):wt(i[t])?h=this.parseObjectData(r,i,t,n):h=this.parsePrimitiveData(r,i,t,n);const m=()=>f[s]===null||c&&f[s]v||f=0;--h)if(!y()){this.updateRangeFromParsed(c,t,m,l);break}}return c}getAllParsedValues(t){const n=this._cachedMeta._parsed,r=[];let i,o,a;for(i=0,o=n.length;i=0&&tthis.getContext(r,i,n),v=c.resolveNamedOptions(h,m,y,f);return v.$shared&&(v.$shared=l,o[a]=Object.freeze(bx(v,l))),v}_resolveAnimations(t,n,r){const i=this.chart,o=this._cachedDataOpts,a=`animation-${n}`,s=o[a];if(s)return s;let l;if(i.options.animation!==!1){const u=this.chart.config,f=u.datasetAnimationScopeKeys(this._type,n),h=u.getOptionScopes(this.getDataset(),f);l=u.createResolver(h,this.getContext(t,r,n))}const c=new B$(i,l&&l.animations);return l&&l._cacheable&&(o[a]=Object.freeze(c)),c}getSharedOptions(t){if(t.$shared)return this._sharedOptions||(this._sharedOptions=Object.assign({},t))}includeOptions(t,n){return!n||ig(t)||this.chart._animationsDisabled}_getSharedOptions(t,n){const r=this.resolveDataElementOptions(t,n),i=this._sharedOptions,o=this.getSharedOptions(r),a=this.includeOptions(n,o)||o!==i;return this.updateSharedOptions(o,n,r),{sharedOptions:o,includeOptions:a}}updateElement(t,n,r,i){ig(i)?Object.assign(t,r):this._resolveAnimations(n,i).update(t,r)}updateSharedOptions(t,n,r){t&&!ig(n)&&this._resolveAnimations(void 0,n).update(t,r)}_setStyle(t,n,r,i){t.active=i;const o=this.getStyle(n,i);this._resolveAnimations(n,r,i).update(t,{options:!i&&this.getSharedOptions(o)||o})}removeHoverStyle(t,n,r){this._setStyle(t,r,"active",!1)}setHoverStyle(t,n,r){this._setStyle(t,r,"active",!0)}_removeDatasetHoverStyle(){const t=this._cachedMeta.dataset;t&&this._setStyle(t,void 0,"active",!1)}_setDatasetHoverStyle(){const t=this._cachedMeta.dataset;t&&this._setStyle(t,void 0,"active",!0)}_resyncElements(t){const n=this._data,r=this._cachedMeta.data;for(const[s,l,c]of this._syncList)this[s](l,c);this._syncList=[];const i=r.length,o=n.length,a=Math.min(o,i);a&&this.parse(0,a),o>i?this._insertElements(i,o-i,t):o{for(c.length+=n,s=c.length-1;s>=a;s--)c[s]=c[s-n]};for(l(o),s=t;s0&&this.getParsed(n-1);for(let C=0;C=g){E.skip=!0;continue}const _=this.getParsed(C),O=on(_[m]),M=E[h]=a.getPixelForValue(_[h],C),I=E[m]=o||O?s.getBasePixel():s.getPixelForValue(l?this.applyStack(s,_,l):_[m],C);E.skip=isNaN(M)||isNaN(I)||O,E.stop=C>0&&Math.abs(_[h]-S[h])>b,v&&(E.parsed=_,E.raw=c.data[C]),f&&(E.options=u||this.resolveDataElementOptions(C,w.active?"active":i)),p||this.updateElement(w,C,E,i),S=_}}getMaxOverflow(){const t=this._cachedMeta,n=t.dataset,r=n.options&&n.options.borderWidth||0,i=t.data||[];if(!i.length)return r;const o=i[0].size(this.resolveDataElementOptions(0)),a=i[i.length-1].size(this.resolveDataElementOptions(i.length-1));return Math.max(r,o,a)/2}draw(){const t=this._cachedMeta;t.dataset.updateControlPoints(this.chart.chartArea,t.iScale.axis),super.draw()}}tt(od,"id","line"),tt(od,"defaults",{datasetElementType:"line",dataElementType:"point",showLine:!0,spanGaps:!1}),tt(od,"overrides",{scales:{_index_:{type:"category"},_value_:{type:"linear"}}});function Lo(){throw new Error("This method is not implemented: Check that a complete date adapter is provided.")}class S0{constructor(t){tt(this,"options");this.options=t||{}}static override(t){Object.assign(S0.prototype,t)}init(){}formats(){return Lo()}parse(){return Lo()}format(){return Lo()}add(){return Lo()}diff(){return Lo()}startOf(){return Lo()}endOf(){return Lo()}}var v3={_date:S0};function y3(e,t,n,r){const{controller:i,data:o,_sorted:a}=e,s=i._cachedMeta.iScale;if(s&&t===s.axis&&t!=="r"&&a&&o.length){const l=s._reversePixels?qz:Yo;if(r){if(i._sharedOptions){const c=o[0],u=typeof c.getRange=="function"&&c.getRange(t);if(u){const f=l(o,t,n-u),h=l(o,t,n+u);return{lo:f.lo,hi:h.hi}}}}else return l(o,t,n)}return{lo:0,hi:o.length-1}}function Dc(e,t,n,r,i){const o=e.getSortedVisibleDatasetMetas(),a=n[t];for(let s=0,l=o.length;s{l[a]&&l[a](t[n],i)&&(o.push({element:l,datasetIndex:c,index:u}),s=s||l.inRange(t.x,t.y,i))}),r&&!s?[]:o}var C3={evaluateInteractionItems:Dc,modes:{index(e,t,n,r){const i=mi(t,e),o=n.axis||"x",a=n.includeInvisible||!1,s=n.intersect?og(e,i,o,r,a):ag(e,i,o,!1,r,a),l=[];return s.length?(e.getSortedVisibleDatasetMetas().forEach(c=>{const u=s[0].index,f=c.data[u];f&&!f.skip&&l.push({element:f,datasetIndex:c.index,index:u})}),l):[]},dataset(e,t,n,r){const i=mi(t,e),o=n.axis||"xy",a=n.includeInvisible||!1;let s=n.intersect?og(e,i,o,r,a):ag(e,i,o,!1,r,a);if(s.length>0){const l=s[0].datasetIndex,c=e.getDatasetMeta(l).data;s=[];for(let u=0;un.pos===t)}function Sx(e,t){return e.filter(n=>V$.indexOf(n.pos)===-1&&n.box.axis===t)}function el(e,t){return e.sort((n,r)=>{const i=t?r:n,o=t?n:r;return i.weight===o.weight?i.index-o.index:i.weight-o.weight})}function w3(e){const t=[];let n,r,i,o,a,s;for(n=0,r=(e||[]).length;nc.box.fullSize),!0),r=el(Js(t,"left"),!0),i=el(Js(t,"right")),o=el(Js(t,"top"),!0),a=el(Js(t,"bottom")),s=Sx(t,"x"),l=Sx(t,"y");return{fullSize:n,leftAndTop:r.concat(o),rightAndBottom:i.concat(l).concat(a).concat(s),chartArea:Js(t,"chartArea"),vertical:r.concat(i).concat(l),horizontal:o.concat(a).concat(s)}}function Cx(e,t,n,r){return Math.max(e[n],t[n])+Math.max(e[r],t[r])}function W$(e,t){e.top=Math.max(e.top,t.top),e.left=Math.max(e.left,t.left),e.bottom=Math.max(e.bottom,t.bottom),e.right=Math.max(e.right,t.right)}function O3(e,t,n,r){const{pos:i,box:o}=n,a=e.maxPadding;if(!wt(i)){n.size&&(e[i]-=n.size);const f=r[n.stack]||{size:0,count:1};f.size=Math.max(f.size,n.horizontal?o.height:o.width),n.size=f.size/f.count,e[i]+=n.size}o.getPadding&&W$(a,o.getPadding());const s=Math.max(0,t.outerWidth-Cx(a,e,"left","right")),l=Math.max(0,t.outerHeight-Cx(a,e,"top","bottom")),c=s!==e.w,u=l!==e.h;return e.w=s,e.h=l,n.horizontal?{same:c,other:u}:{same:u,other:c}}function P3(e){const t=e.maxPadding;function n(r){const i=Math.max(t[r]-e[r],0);return e[r]+=i,i}e.y+=n("top"),e.x+=n("left"),n("right"),n("bottom")}function M3(e,t){const n=t.maxPadding;function r(i){const o={left:0,top:0,right:0,bottom:0};return i.forEach(a=>{o[a]=Math.max(t[a],n[a])}),o}return r(e?["left","right"]:["top","bottom"])}function dl(e,t,n,r){const i=[];let o,a,s,l,c,u;for(o=0,a=e.length,c=0;o{typeof v.beforeLayout=="function"&&v.beforeLayout()});const u=l.reduce((v,b)=>b.box.options&&b.box.options.display===!1?v:v+1,0)||1,f=Object.freeze({outerWidth:t,outerHeight:n,padding:i,availableWidth:o,availableHeight:a,vBoxMaxWidth:o/2/u,hBoxMaxHeight:a/2}),h=Object.assign({},i);W$(h,Hr(r));const m=Object.assign({maxPadding:h,w:o,h:a,x:i.left,y:i.top},i),y=_3(l.concat(c),f);dl(s.fullSize,m,f,y),dl(l,m,f,y),dl(c,m,f,y)&&dl(l,m,f,y),P3(m),wx(s.leftAndTop,m,f,y),m.x+=m.w,m.y+=m.h,wx(s.rightAndBottom,m,f,y),e.chartArea={left:m.left,top:m.top,right:m.left+m.w,bottom:m.top+m.h,height:m.h,width:m.w},at(s.chartArea,v=>{const b=v.box;Object.assign(b,e.chartArea),b.update(m.w,m.h,{left:0,top:0,right:0,bottom:0})})}};class U${acquireContext(t,n){}releaseContext(t){return!1}addEventListener(t,n,r){}removeEventListener(t,n,r){}getDevicePixelRatio(){return 1}getMaximumSize(t,n,r,i){return n=Math.max(0,n||t.width),r=r||t.height,{width:n,height:Math.max(0,i?Math.floor(n/i):r)}}isAttached(t){return!0}updateConfig(t){}}class T3 extends U${acquireContext(t){return t&&t.getContext&&t.getContext("2d")||null}updateConfig(t){t.options.animation=!1}}const ad="$chartjs",R3={touchstart:"mousedown",touchmove:"mousemove",touchend:"mouseup",pointerenter:"mouseenter",pointerdown:"mousedown",pointermove:"mousemove",pointerup:"mouseup",pointerleave:"mouseout",pointerout:"mouseout"},Ex=e=>e===null||e==="";function I3(e,t){const n=e.style,r=e.getAttribute("height"),i=e.getAttribute("width");if(e[ad]={initial:{height:r,width:i,style:{display:n.display,height:n.height,width:n.width}}},n.display=n.display||"block",n.boxSizing=n.boxSizing||"border-box",Ex(i)){const o=cx(e,"width");o!==void 0&&(e.width=o)}if(Ex(r))if(e.style.height==="")e.height=e.width/(t||2);else{const o=cx(e,"height");o!==void 0&&(e.height=o)}return e}const G$=Wj?{passive:!0}:!1;function k3(e,t,n){e&&e.addEventListener(t,n,G$)}function N3(e,t,n){e&&e.canvas&&e.canvas.removeEventListener(t,n,G$)}function F3(e,t){const n=R3[e.type]||e.type,{x:r,y:i}=mi(e,t);return{type:n,chart:t,native:e,x:r!==void 0?r:null,y:i!==void 0?i:null}}function Yd(e,t){for(const n of e)if(n===t||n.contains(t))return!0}function A3(e,t,n){const r=e.canvas,i=new MutationObserver(o=>{let a=!1;for(const s of o)a=a||Yd(s.addedNodes,r),a=a&&!Yd(s.removedNodes,r);a&&n()});return i.observe(document,{childList:!0,subtree:!0}),i}function L3(e,t,n){const r=e.canvas,i=new MutationObserver(o=>{let a=!1;for(const s of o)a=a||Yd(s.removedNodes,r),a=a&&!Yd(s.addedNodes,r);a&&n()});return i.observe(document,{childList:!0,subtree:!0}),i}const Sc=new Map;let _x=0;function K$(){const e=window.devicePixelRatio;e!==_x&&(_x=e,Sc.forEach((t,n)=>{n.currentDevicePixelRatio!==e&&t()}))}function D3(e,t){Sc.size||window.addEventListener("resize",K$),Sc.set(e,t)}function z3(e){Sc.delete(e),Sc.size||window.removeEventListener("resize",K$)}function j3(e,t,n){const r=e.canvas,i=r&&x0(r);if(!i)return;const o=O$((s,l)=>{const c=i.clientWidth;n(s,l),c{const l=s[0],c=l.contentRect.width,u=l.contentRect.height;c===0&&u===0||o(c,u)});return a.observe(i),D3(e,o),a}function sg(e,t,n){n&&n.disconnect(),t==="resize"&&z3(e)}function B3(e,t,n){const r=e.canvas,i=O$(o=>{e.ctx!==null&&n(F3(o,e))},e);return k3(r,t,i),i}class H3 extends U${acquireContext(t,n){const r=t&&t.getContext&&t.getContext("2d");return r&&r.canvas===t?(I3(t,n),r):null}releaseContext(t){const n=t.canvas;if(!n[ad])return!1;const r=n[ad].initial;["height","width"].forEach(o=>{const a=r[o];on(a)?n.removeAttribute(o):n.setAttribute(o,a)});const i=r.style||{};return Object.keys(i).forEach(o=>{n.style[o]=i[o]}),n.width=n.width,delete n[ad],!0}addEventListener(t,n,r){this.removeEventListener(t,n);const i=t.$proxies||(t.$proxies={}),a={attach:A3,detach:L3,resize:j3}[n]||B3;i[n]=a(t,n,r)}removeEventListener(t,n){const r=t.$proxies||(t.$proxies={}),i=r[n];if(!i)return;({attach:sg,detach:sg,resize:sg}[n]||N3)(t,n,i),r[n]=void 0}getDevicePixelRatio(){return window.devicePixelRatio}getMaximumSize(t,n,r,i){return Vj(t,n,r,i)}isAttached(t){const n=t&&x0(t);return!!(n&&n.isConnected)}}function V3(e){return!b0()||typeof OffscreenCanvas<"u"&&e instanceof OffscreenCanvas?T3:H3}var Nu;let ba=(Nu=class{constructor(){tt(this,"x");tt(this,"y");tt(this,"active",!1);tt(this,"options");tt(this,"$animations")}tooltipPosition(t){const{x:n,y:r}=this.getProps(["x","y"],t);return{x:n,y:r}}hasValue(){return yc(this.x)&&yc(this.y)}getProps(t,n){const r=this.$animations;if(!n||!r)return this;const i={};return t.forEach(o=>{i[o]=r[o]&&r[o].active()?r[o]._to:this[o]}),i}},tt(Nu,"defaults",{}),tt(Nu,"defaultRoutes"),Nu);function W3(e,t){const n=e.options.ticks,r=U3(e),i=Math.min(n.maxTicksLimit||r,r),o=n.major.enabled?K3(t):[],a=o.length,s=o[0],l=o[a-1],c=[];if(a>i)return q3(t,c,o,a/i),c;const u=G3(o,t,i);if(a>0){let f,h;const m=a>1?Math.round((l-s)/(a-1)):null;for(Ou(t,c,u,on(m)?0:s-m,s),f=0,h=a-1;fi)return l}return Math.max(i,1)}function K3(e){const t=[];let n,r;for(n=0,r=e.length;ne==="left"?"right":e==="right"?"left":e,$x=(e,t,n)=>t==="top"||t==="left"?e[t]+n:e[t]-n,Ox=(e,t)=>Math.min(t||e,e);function Px(e,t){const n=[],r=e.length/t,i=e.length;let o=0;for(;oa+s)))return l}function Z3(e,t){at(e,n=>{const r=n.gc,i=r.length/2;let o;if(i>t){for(o=0;or?r:n,r=i&&n>r?n:r,{min:ui(n,ui(r,n)),max:ui(r,ui(n,r))}}getPadding(){return{left:this.paddingLeft||0,top:this.paddingTop||0,right:this.paddingRight||0,bottom:this.paddingBottom||0}}getTicks(){return this.ticks}getLabels(){const t=this.chart.data;return this.options.labels||(this.isHorizontal()?t.xLabels:t.yLabels)||t.labels||[]}getLabelItems(t=this.chart.chartArea){return this._labelItems||(this._labelItems=this._computeLabelItems(t))}beforeLayout(){this._cache={},this._dataLimitsCached=!1}beforeUpdate(){Xe(this.options.beforeUpdate,[this])}update(t,n,r){const{beginAtZero:i,grace:o,ticks:a}=this.options,s=a.sampleSize;this.beforeUpdate(),this.maxWidth=t,this.maxHeight=n,this._margins=r=Object.assign({left:0,right:0,top:0,bottom:0},r),this.ticks=null,this._labelSizes=null,this._gridLineItems=null,this._labelItems=null,this.beforeSetDimensions(),this.setDimensions(),this.afterSetDimensions(),this._maxLength=this.isHorizontal()?this.width+r.left+r.right:this.height+r.top+r.bottom,this._dataLimitsCached||(this.beforeDataLimits(),this.determineDataLimits(),this.afterDataLimits(),this._range=Sj(this,o,i),this._dataLimitsCached=!0),this.beforeBuildTicks(),this.ticks=this.buildTicks()||[],this.afterBuildTicks();const l=s=o||r<=1||!this.isHorizontal()){this.labelRotation=i;return}const u=this._getLabelSizes(),f=u.widest.width,h=u.highest.height,m=Nr(this.chart.width-f,0,this.maxWidth);s=t.offset?this.maxWidth/r:m/(r-1),f+6>s&&(s=m/(r-(t.offset?.5:1)),l=this.maxHeight-tl(t.grid)-n.padding-Mx(t.title,this.chart.options.font),c=Math.sqrt(f*f+h*h),a=Wz(Math.min(Math.asin(Nr((u.highest.height+6)/s,-1,1)),Math.asin(Nr(l/c,-1,1))-Math.asin(Nr(h/c,-1,1)))),a=Math.max(i,Math.min(o,a))),this.labelRotation=a}afterCalculateLabelRotation(){Xe(this.options.afterCalculateLabelRotation,[this])}afterAutoSkip(){}beforeFit(){Xe(this.options.beforeFit,[this])}fit(){const t={width:0,height:0},{chart:n,options:{ticks:r,title:i,grid:o}}=this,a=this._isVisible(),s=this.isHorizontal();if(a){const l=Mx(i,n.options.font);if(s?(t.width=this.maxWidth,t.height=tl(o)+l):(t.height=this.maxHeight,t.width=tl(o)+l),r.display&&this.ticks.length){const{first:c,last:u,widest:f,highest:h}=this._getLabelSizes(),m=r.padding*2,y=Xo(this.labelRotation),v=Math.cos(y),b=Math.sin(y);if(s){const p=r.mirror?0:b*f.width+v*h.height;t.height=Math.min(this.maxHeight,t.height+p+m)}else{const p=r.mirror?0:v*f.width+b*h.height;t.width=Math.min(this.maxWidth,t.width+p+m)}this._calculatePadding(c,u,b,v)}}this._handleMargins(),s?(this.width=this._length=n.width-this._margins.left-this._margins.right,this.height=t.height):(this.width=t.width,this.height=this._length=n.height-this._margins.top-this._margins.bottom)}_calculatePadding(t,n,r,i){const{ticks:{align:o,padding:a},position:s}=this.options,l=this.labelRotation!==0,c=s!=="top"&&this.axis==="x";if(this.isHorizontal()){const u=this.getPixelForTick(0)-this.left,f=this.right-this.getPixelForTick(this.ticks.length-1);let h=0,m=0;l?c?(h=i*t.width,m=r*n.height):(h=r*t.height,m=i*n.width):o==="start"?m=n.width:o==="end"?h=t.width:o!=="inner"&&(h=t.width/2,m=n.width/2),this.paddingLeft=Math.max((h-u+a)*this.width/(this.width-u),0),this.paddingRight=Math.max((m-f+a)*this.width/(this.width-f),0)}else{let u=n.height/2,f=t.height/2;o==="start"?(u=0,f=t.height):o==="end"&&(u=n.height,f=0),this.paddingTop=u+a,this.paddingBottom=f+a}}_handleMargins(){this._margins&&(this._margins.left=Math.max(this.paddingLeft,this._margins.left),this._margins.top=Math.max(this.paddingTop,this._margins.top),this._margins.right=Math.max(this.paddingRight,this._margins.right),this._margins.bottom=Math.max(this.paddingBottom,this._margins.bottom))}afterFit(){Xe(this.options.afterFit,[this])}isHorizontal(){const{axis:t,position:n}=this.options;return n==="top"||n==="bottom"||t==="x"}isFullSize(){return this.options.fullSize}_convertTicksToLabels(t){this.beforeTickToLabelConversion(),this.generateTickLabels(t);let n,r;for(n=0,r=t.length;n({width:a[O]||0,height:s[O]||0});return{first:_(0),last:_(n-1),widest:_(w),highest:_(E),widths:a,heights:s}}getLabelForValue(t){return t}getPixelForValue(t,n){return NaN}getValueForPixel(t){}getPixelForTick(t){const n=this.ticks;return t<0||t>n.length-1?null:this.getPixelForValue(n[t].value)}getPixelForDecimal(t){this._reversePixels&&(t=1-t);const n=this._startPixel+t*this._length;return Kz(this._alignToPixels?Ao(this.chart,n,0):n)}getDecimalForPixel(t){const n=(t-this._startPixel)/this._length;return this._reversePixels?1-n:n}getBasePixel(){return this.getPixelForValue(this.getBaseValue())}getBaseValue(){const{min:t,max:n}=this;return t<0&&n<0?n:t>0&&n>0?t:0}getContext(t){const n=this.ticks||[];if(t>=0&&ts*i?s/r:l/i:l*i0}_computeGridLineItems(t){const n=this.axis,r=this.chart,i=this.options,{grid:o,position:a,border:s}=i,l=o.offset,c=this.isHorizontal(),f=this.ticks.length+(l?1:0),h=tl(o),m=[],y=s.setContext(this.getContext()),v=y.display?y.width:0,b=v/2,p=function(A){return Ao(r,A,v)};let g,x,S,C,w,E,_,O,M,I,k,F;if(a==="top")g=p(this.bottom),E=this.bottom-h,O=g-b,I=p(t.top)+b,F=t.bottom;else if(a==="bottom")g=p(this.top),I=t.top,F=p(t.bottom)-b,E=g+b,O=this.top+h;else if(a==="left")g=p(this.right),w=this.right-h,_=g-b,M=p(t.left)+b,k=t.right;else if(a==="right")g=p(this.left),M=t.left,k=p(t.right)-b,w=g+b,_=this.left+h;else if(n==="x"){if(a==="center")g=p((t.top+t.bottom)/2+.5);else if(wt(a)){const A=Object.keys(a)[0],P=a[A];g=p(this.chart.scales[A].getPixelForValue(P))}I=t.top,F=t.bottom,E=g+b,O=E+h}else if(n==="y"){if(a==="center")g=p((t.left+t.right)/2);else if(wt(a)){const A=Object.keys(a)[0],P=a[A];g=p(this.chart.scales[A].getPixelForValue(P))}w=g-b,_=w-h,M=t.left,k=t.right}const j=it(i.ticks.maxTicksLimit,f),B=Math.max(1,Math.ceil(f/j));for(x=0;x0&&(ee-=W/2);break}H={left:ee,top:K,width:W+G.width,height:X+G.height,color:B.backdropColor}}b.push({label:S,font:O,textOffset:k,options:{rotation:v,color:P,strokeColor:R,strokeWidth:N,textAlign:D,textBaseline:F,translation:[C,w],backdrop:H}})}return b}_getXAxisLabelAlignment(){const{position:t,ticks:n}=this.options;if(-Xo(this.labelRotation))return t==="top"?"left":"right";let i="center";return n.align==="start"?i="left":n.align==="end"?i="right":n.align==="inner"&&(i="inner"),i}_getYAxisLabelAlignment(t){const{position:n,ticks:{crossAlign:r,mirror:i,padding:o}}=this.options,a=this._getLabelSizes(),s=t+o,l=a.widest.width;let c,u;return n==="left"?i?(u=this.right+o,r==="near"?c="left":r==="center"?(c="center",u+=l/2):(c="right",u+=l)):(u=this.right-s,r==="near"?c="right":r==="center"?(c="center",u-=l/2):(c="left",u=this.left)):n==="right"?i?(u=this.left+o,r==="near"?c="right":r==="center"?(c="center",u-=l/2):(c="left",u-=l)):(u=this.left+s,r==="near"?c="left":r==="center"?(c="center",u+=l/2):(c="right",u=this.right)):c="right",{textAlign:c,x:u}}_computeLabelArea(){if(this.options.ticks.mirror)return;const t=this.chart,n=this.options.position;if(n==="left"||n==="right")return{top:0,left:this.left,bottom:t.height,right:this.right};if(n==="top"||n==="bottom")return{top:this.top,left:0,bottom:this.bottom,right:t.width}}drawBackground(){const{ctx:t,options:{backgroundColor:n},left:r,top:i,width:o,height:a}=this;n&&(t.save(),t.fillStyle=n,t.fillRect(r,i,o,a),t.restore())}getLineWidthForValue(t){const n=this.options.grid;if(!this._isVisible()||!n.display)return 0;const i=this.ticks.findIndex(o=>o.value===t);return i>=0?n.setContext(this.getContext(i)).lineWidth:0}drawGrid(t){const n=this.options.grid,r=this.ctx,i=this._gridLineItems||(this._gridLineItems=this._computeGridLineItems(t));let o,a;const s=(l,c,u)=>{!u.width||!u.color||(r.save(),r.lineWidth=u.width,r.strokeStyle=u.color,r.setLineDash(u.borderDash||[]),r.lineDashOffset=u.borderDashOffset,r.beginPath(),r.moveTo(l.x,l.y),r.lineTo(c.x,c.y),r.stroke(),r.restore())};if(n.display)for(o=0,a=i.length;o{this.draw(o)}}]:[{z:r,draw:o=>{this.drawBackground(),this.drawGrid(o),this.drawTitle()}},{z:i,draw:()=>{this.drawBorder()}},{z:n,draw:o=>{this.drawLabels(o)}}]}getMatchingVisibleMetas(t){const n=this.chart.getSortedVisibleDatasetMetas(),r=this.axis+"AxisID",i=[];let o,a;for(o=0,a=n.length;o{const r=n.split("."),i=r.pop(),o=[e].concat(r).join("."),a=t[n].split("."),s=a.pop(),l=a.join(".");dn.route(o,i,l,s)})}function o6(e){return"id"in e&&"defaults"in e}class a6{constructor(){this.controllers=new Pu(Nl,"datasets",!0),this.elements=new Pu(ba,"elements"),this.plugins=new Pu(Object,"plugins"),this.scales=new Pu(Ns,"scales"),this._typedRegistries=[this.controllers,this.scales,this.elements]}add(...t){this._each("register",t)}remove(...t){this._each("unregister",t)}addControllers(...t){this._each("register",t,this.controllers)}addElements(...t){this._each("register",t,this.elements)}addPlugins(...t){this._each("register",t,this.plugins)}addScales(...t){this._each("register",t,this.scales)}getController(t){return this._get(t,this.controllers,"controller")}getElement(t){return this._get(t,this.elements,"element")}getPlugin(t){return this._get(t,this.plugins,"plugin")}getScale(t){return this._get(t,this.scales,"scale")}removeControllers(...t){this._each("unregister",t,this.controllers)}removeElements(...t){this._each("unregister",t,this.elements)}removePlugins(...t){this._each("unregister",t,this.plugins)}removeScales(...t){this._each("unregister",t,this.scales)}_each(t,n,r){[...n].forEach(i=>{const o=r||this._getRegistryForType(i);r||o.isForType(i)||o===this.plugins&&i.id?this._exec(t,o,i):at(i,a=>{const s=r||this._getRegistryForType(a);this._exec(t,s,a)})})}_exec(t,n,r){const i=u0(t);Xe(r["before"+i],[],r),n[t](r),Xe(r["after"+i],[],r)}_getRegistryForType(t){for(let n=0;no.filter(s=>!a.some(l=>s.plugin.id===l.plugin.id));this._notify(i(n,r),t,"stop"),this._notify(i(r,n),t,"start")}}function l6(e){const t={},n=[],r=Object.keys(hi.plugins.items);for(let o=0;o1&&Tx(e[0].toLowerCase());if(r)return r}throw new Error(`Cannot determine type of '${e}' axis. Please provide 'axis' or 'position' option.`)}function Rx(e,t,n){if(n[t+"AxisID"]===e)return{axis:t}}function m6(e,t){if(t.data&&t.data.datasets){const n=t.data.datasets.filter(r=>r.xAxisID===e||r.yAxisID===e);if(n.length)return Rx(e,"x",n[0])||Rx(e,"y",n[0])}return{}}function p6(e,t){const n=fa[e.type]||{scales:{}},r=t.scales||{},i=dp(e.type,t),o=Object.create(null);return Object.keys(r).forEach(a=>{const s=r[a];if(!wt(s))return console.error(`Invalid scale configuration for scale: ${a}`);if(s._proxy)return console.warn(`Ignoring resolver passed as options for scale: ${a}`);const l=fp(a,s,m6(a,e),dn.scales[s.type]),c=h6(l,i),u=n.scales||{};o[a]=Ml(Object.create(null),[{axis:l},s,u[l],u[c]])}),e.data.datasets.forEach(a=>{const s=a.type||e.type,l=a.indexAxis||dp(s,t),u=(fa[s]||{}).scales||{};Object.keys(u).forEach(f=>{const h=f6(f,l),m=a[h+"AxisID"]||h;o[m]=o[m]||Object.create(null),Ml(o[m],[{axis:h},r[m],u[f]])})}),Object.keys(o).forEach(a=>{const s=o[a];Ml(s,[dn.scales[s.type],dn.scale])}),o}function q$(e){const t=e.options||(e.options={});t.plugins=it(t.plugins,{}),t.scales=p6(e,t)}function X$(e){return e=e||{},e.datasets=e.datasets||[],e.labels=e.labels||[],e}function v6(e){return e=e||{},e.data=X$(e.data),q$(e),e}const Ix=new Map,Y$=new Set;function Mu(e,t){let n=Ix.get(e);return n||(n=t(),Ix.set(e,n),Y$.add(n)),n}const nl=(e,t,n)=>{const r=Gd(t,n);r!==void 0&&e.add(r)};class y6{constructor(t){this._config=v6(t),this._scopeCache=new Map,this._resolverCache=new Map}get platform(){return this._config.platform}get type(){return this._config.type}set type(t){this._config.type=t}get data(){return this._config.data}set data(t){this._config.data=X$(t)}get options(){return this._config.options}set options(t){this._config.options=t}get plugins(){return this._config.plugins}update(){const t=this._config;this.clearCache(),q$(t)}clearCache(){this._scopeCache.clear(),this._resolverCache.clear()}datasetScopeKeys(t){return Mu(t,()=>[[`datasets.${t}`,""]])}datasetAnimationScopeKeys(t,n){return Mu(`${t}.transition.${n}`,()=>[[`datasets.${t}.transitions.${n}`,`transitions.${n}`],[`datasets.${t}`,""]])}datasetElementScopeKeys(t,n){return Mu(`${t}-${n}`,()=>[[`datasets.${t}.elements.${n}`,`datasets.${t}`,`elements.${n}`,""]])}pluginScopeKeys(t){const n=t.id,r=this.type;return Mu(`${r}-plugin-${n}`,()=>[[`plugins.${n}`,...t.additionalOptionScopes||[]]])}_cachedScopes(t,n){const r=this._scopeCache;let i=r.get(t);return(!i||n)&&(i=new Map,r.set(t,i)),i}getOptionScopes(t,n,r){const{options:i,type:o}=this,a=this._cachedScopes(t,r),s=a.get(n);if(s)return s;const l=new Set;n.forEach(u=>{t&&(l.add(t),u.forEach(f=>nl(l,t,f))),u.forEach(f=>nl(l,i,f)),u.forEach(f=>nl(l,fa[o]||{},f)),u.forEach(f=>nl(l,dn,f)),u.forEach(f=>nl(l,lp,f))});const c=Array.from(l);return c.length===0&&c.push(Object.create(null)),Y$.has(n)&&a.set(n,c),c}chartOptionScopes(){const{options:t,type:n}=this;return[t,fa[n]||{},dn.datasets[n]||{},{type:n},dn,lp]}resolveNamedOptions(t,n,r,i=[""]){const o={$shared:!0},{resolver:a,subPrefixes:s}=kx(this._resolverCache,t,i);let l=a;if(x6(a,n)){o.$shared=!1,r=wo(r)?r():r;const c=this.createResolver(t,r,s);l=ws(a,r,c)}for(const c of n)o[c]=l[c];return o}createResolver(t,n,r=[""],i){const{resolver:o}=kx(this._resolverCache,t,r);return wt(n)?ws(o,n,void 0,i):o}}function kx(e,t,n){let r=e.get(t);r||(r=new Map,e.set(t,r));const i=n.join();let o=r.get(i);return o||(o={resolver:p0(t,n),subPrefixes:n.filter(s=>!s.toLowerCase().includes("hover"))},r.set(i,o)),o}const b6=e=>wt(e)&&Object.getOwnPropertyNames(e).some(t=>wo(e[t]));function x6(e,t){const{isScriptable:n,isIndexable:r}=k$(e);for(const i of t){const o=n(i),a=r(i),s=(a||o)&&e[i];if(o&&(wo(s)||b6(s))||a&&Rn(s))return!0}return!1}var S6="4.4.4";const C6=["top","bottom","left","right","chartArea"];function Nx(e,t){return e==="top"||e==="bottom"||C6.indexOf(e)===-1&&t==="x"}function Fx(e,t){return function(n,r){return n[e]===r[e]?n[t]-r[t]:n[e]-r[e]}}function Ax(e){const t=e.chart,n=t.options.animation;t.notifyPlugins("afterRender"),Xe(n&&n.onComplete,[e],t)}function w6(e){const t=e.chart,n=t.options.animation;Xe(n&&n.onProgress,[e],t)}function Q$(e){return b0()&&typeof e=="string"?e=document.getElementById(e):e&&e.length&&(e=e[0]),e&&e.canvas&&(e=e.canvas),e}const sd={},Lx=e=>{const t=Q$(e);return Object.values(sd).filter(n=>n.canvas===t).pop()};function E6(e,t,n){const r=Object.keys(e);for(const i of r){const o=+i;if(o>=t){const a=e[i];delete e[i],(n>0||o>t)&&(e[o+n]=a)}}}function _6(e,t,n,r){return!n||e.type==="mouseout"?null:r?t:e}function Tu(e,t,n){return e.options.clip?e[n]:t[n]}function $6(e,t){const{xScale:n,yScale:r}=e;return n&&r?{left:Tu(n,t,"left"),right:Tu(n,t,"right"),top:Tu(r,t,"top"),bottom:Tu(r,t,"bottom")}:t}var Ki;let qf=(Ki=class{static register(...t){hi.add(...t),Dx()}static unregister(...t){hi.remove(...t),Dx()}constructor(t,n){const r=this.config=new y6(n),i=Q$(t),o=Lx(i);if(o)throw new Error("Canvas is already in use. Chart with ID '"+o.id+"' must be destroyed before the canvas with ID '"+o.canvas.id+"' can be reused.");const a=r.createResolver(r.chartOptionScopes(),this.getContext());this.platform=new(r.platform||V3(i)),this.platform.updateConfig(r);const s=this.platform.acquireContext(i,a.aspectRatio),l=s&&s.canvas,c=l&&l.height,u=l&&l.width;if(this.id=Iz(),this.ctx=s,this.canvas=l,this.width=u,this.height=c,this._options=a,this._aspectRatio=this.aspectRatio,this._layers=[],this._metasets=[],this._stacks=void 0,this.boxes=[],this.currentDevicePixelRatio=void 0,this.chartArea=void 0,this._active=[],this._lastEvent=void 0,this._listeners={},this._responsiveListeners=void 0,this._sortedMetasets=[],this.scales={},this._plugins=new s6,this.$proxies={},this._hiddenIndices={},this.attached=!1,this._animationsDisabled=void 0,this.$context=void 0,this._doResize=Zz(f=>this.update(f),a.resizeDelay||0),this._dataChanges=[],sd[this.id]=this,!s||!l){console.error("Failed to create chart: can't acquire context from the given item");return}_i.listen(this,"complete",Ax),_i.listen(this,"progress",w6),this._initialize(),this.attached&&this.update()}get aspectRatio(){const{options:{aspectRatio:t,maintainAspectRatio:n},width:r,height:i,_aspectRatio:o}=this;return on(t)?n&&o?o:i?r/i:null:t}get data(){return this.config.data}set data(t){this.config.data=t}get options(){return this._options}set options(t){this.config.options=t}get registry(){return hi}_initialize(){return this.notifyPlugins("beforeInit"),this.options.responsive?this.resize():lx(this,this.options.devicePixelRatio),this.bindEvents(),this.notifyPlugins("afterInit"),this}clear(){return ox(this.canvas,this.ctx),this}stop(){return _i.stop(this),this}resize(t,n){_i.running(this)?this._resizeBeforeDraw={width:t,height:n}:this._resize(t,n)}_resize(t,n){const r=this.options,i=this.canvas,o=r.maintainAspectRatio&&this.aspectRatio,a=this.platform.getMaximumSize(i,t,n,o),s=r.devicePixelRatio||this.platform.getDevicePixelRatio(),l=this.width?"resize":"attach";this.width=a.width,this.height=a.height,this._aspectRatio=this.aspectRatio,lx(this,s,!0)&&(this.notifyPlugins("resize",{size:a}),Xe(r.onResize,[this,a],this),this.attached&&this._doResize(l)&&this.render())}ensureScalesHaveIDs(){const n=this.options.scales||{};at(n,(r,i)=>{r.id=i})}buildOrUpdateScales(){const t=this.options,n=t.scales,r=this.scales,i=Object.keys(r).reduce((a,s)=>(a[s]=!1,a),{});let o=[];n&&(o=o.concat(Object.keys(n).map(a=>{const s=n[a],l=fp(a,s),c=l==="r",u=l==="x";return{options:s,dposition:c?"chartArea":u?"bottom":"left",dtype:c?"radialLinear":u?"category":"linear"}}))),at(o,a=>{const s=a.options,l=s.id,c=fp(l,s),u=it(s.type,a.dtype);(s.position===void 0||Nx(s.position,c)!==Nx(a.dposition))&&(s.position=a.dposition),i[l]=!0;let f=null;if(l in r&&r[l].type===u)f=r[l];else{const h=hi.getScale(u);f=new h({id:l,type:u,ctx:this.ctx,chart:this}),r[f.id]=f}f.init(s,t)}),at(i,(a,s)=>{a||delete r[s]}),at(r,a=>{Fr.configure(this,a,a.options),Fr.addBox(this,a)})}_updateMetasets(){const t=this._metasets,n=this.data.datasets.length,r=t.length;if(t.sort((i,o)=>i.index-o.index),r>n){for(let i=n;in.length&&delete this._stacks,t.forEach((r,i)=>{n.filter(o=>o===r._dataset).length===0&&this._destroyDatasetMeta(i)})}buildOrUpdateControllers(){const t=[],n=this.data.datasets;let r,i;for(this._removeUnreferencedMetasets(),r=0,i=n.length;r{this.getDatasetMeta(n).controller.reset()},this)}reset(){this._resetElements(),this.notifyPlugins("reset")}update(t){const n=this.config;n.update();const r=this._options=n.createResolver(n.chartOptionScopes(),this.getContext()),i=this._animationsDisabled=!r.animation;if(this._updateScales(),this._checkEventBindings(),this._updateHiddenIndices(),this._plugins.invalidate(),this.notifyPlugins("beforeUpdate",{mode:t,cancelable:!0})===!1)return;const o=this.buildOrUpdateControllers();this.notifyPlugins("beforeElementsUpdate");let a=0;for(let c=0,u=this.data.datasets.length;c{c.reset()}),this._updateDatasets(t),this.notifyPlugins("afterUpdate",{mode:t}),this._layers.sort(Fx("z","_idx"));const{_active:s,_lastEvent:l}=this;l?this._eventHandler(l,!0):s.length&&this._updateHoverStyles(s,s,!0),this.render()}_updateScales(){at(this.scales,t=>{Fr.removeBox(this,t)}),this.ensureScalesHaveIDs(),this.buildOrUpdateScales()}_checkEventBindings(){const t=this.options,n=new Set(Object.keys(this._listeners)),r=new Set(t.events);(!X1(n,r)||!!this._responsiveListeners!==t.responsive)&&(this.unbindEvents(),this.bindEvents())}_updateHiddenIndices(){const{_hiddenIndices:t}=this,n=this._getUniformDataChanges()||[];for(const{method:r,start:i,count:o}of n){const a=r==="_removeElements"?-o:o;E6(t,i,a)}}_getUniformDataChanges(){const t=this._dataChanges;if(!t||!t.length)return;this._dataChanges=[];const n=this.data.datasets.length,r=o=>new Set(t.filter(a=>a[0]===o).map((a,s)=>s+","+a.splice(1).join(","))),i=r(0);for(let o=1;oo.split(",")).map(o=>({method:o[1],start:+o[2],count:+o[3]}))}_updateLayout(t){if(this.notifyPlugins("beforeLayout",{cancelable:!0})===!1)return;Fr.update(this,this.width,this.height,t);const n=this.chartArea,r=n.width<=0||n.height<=0;this._layers=[],at(this.boxes,i=>{r&&i.position==="chartArea"||(i.configure&&i.configure(),this._layers.push(...i._layers()))},this),this._layers.forEach((i,o)=>{i._idx=o}),this.notifyPlugins("afterLayout")}_updateDatasets(t){if(this.notifyPlugins("beforeDatasetsUpdate",{mode:t,cancelable:!0})!==!1){for(let n=0,r=this.data.datasets.length;n=0;--n)this._drawDataset(t[n]);this.notifyPlugins("afterDatasetsDraw")}_drawDataset(t){const n=this.ctx,r=t._clip,i=!r.disabled,o=$6(t,this.chartArea),a={meta:t,index:t.index,cancelable:!0};this.notifyPlugins("beforeDatasetDraw",a)!==!1&&(i&&g0(n,{left:r.left===!1?0:o.left-r.left,right:r.right===!1?this.width:o.right+r.right,top:r.top===!1?0:o.top-r.top,bottom:r.bottom===!1?this.height:o.bottom+r.bottom}),t.controller.draw(),i&&m0(n),a.cancelable=!1,this.notifyPlugins("afterDatasetDraw",a))}isPointInArea(t){return bc(t,this.chartArea,this._minPadding)}getElementsAtEventForMode(t,n,r,i){const o=C3.modes[n];return typeof o=="function"?o(this,t,r,i):[]}getDatasetMeta(t){const n=this.data.datasets[t],r=this._metasets;let i=r.filter(o=>o&&o._dataset===n).pop();return i||(i={type:null,data:[],dataset:null,controller:null,hidden:null,xAxisID:null,yAxisID:null,order:n&&n.order||0,index:t,_dataset:n,_parsed:[],_sorted:!1},r.push(i)),i}getContext(){return this.$context||(this.$context=ya(null,{chart:this,type:"chart"}))}getVisibleDatasetCount(){return this.getSortedVisibleDatasetMetas().length}isDatasetVisible(t){const n=this.data.datasets[t];if(!n)return!1;const r=this.getDatasetMeta(t);return typeof r.hidden=="boolean"?!r.hidden:!n.hidden}setDatasetVisibility(t,n){const r=this.getDatasetMeta(t);r.hidden=!n}toggleDataVisibility(t){this._hiddenIndices[t]=!this._hiddenIndices[t]}getDataVisibility(t){return!this._hiddenIndices[t]}_updateVisibility(t,n,r){const i=r?"show":"hide",o=this.getDatasetMeta(t),a=o.controller._resolveAnimations(void 0,i);Kd(n)?(o.data[n].hidden=!r,this.update()):(this.setDatasetVisibility(t,r),a.update(o,{visible:r}),this.update(s=>s.datasetIndex===t?i:void 0))}hide(t,n){this._updateVisibility(t,n,!1)}show(t,n){this._updateVisibility(t,n,!0)}_destroyDatasetMeta(t){const n=this._metasets[t];n&&n.controller&&n.controller._destroy(),delete this._metasets[t]}_stop(){let t,n;for(this.stop(),_i.remove(this),t=0,n=this.data.datasets.length;t{n.addEventListener(this,o,a),t[o]=a},i=(o,a,s)=>{o.offsetX=a,o.offsetY=s,this._eventHandler(o)};at(this.options.events,o=>r(o,i))}bindResponsiveEvents(){this._responsiveListeners||(this._responsiveListeners={});const t=this._responsiveListeners,n=this.platform,r=(l,c)=>{n.addEventListener(this,l,c),t[l]=c},i=(l,c)=>{t[l]&&(n.removeEventListener(this,l,c),delete t[l])},o=(l,c)=>{this.canvas&&this.resize(l,c)};let a;const s=()=>{i("attach",s),this.attached=!0,this.resize(),r("resize",o),r("detach",a)};a=()=>{this.attached=!1,i("resize",o),this._stop(),this._resize(0,0),r("attach",s)},n.isAttached(this.canvas)?s():a()}unbindEvents(){at(this._listeners,(t,n)=>{this.platform.removeEventListener(this,n,t)}),this._listeners={},at(this._responsiveListeners,(t,n)=>{this.platform.removeEventListener(this,n,t)}),this._responsiveListeners=void 0}updateHoverStyle(t,n,r){const i=r?"set":"remove";let o,a,s,l;for(n==="dataset"&&(o=this.getDatasetMeta(t[0].datasetIndex),o.controller["_"+i+"DatasetHoverStyle"]()),s=0,l=t.length;s{const s=this.getDatasetMeta(o);if(!s)throw new Error("No dataset found at index "+o);return{datasetIndex:o,element:s.data[a],index:a}});!Wd(r,n)&&(this._active=r,this._lastEvent=null,this._updateHoverStyles(r,n))}notifyPlugins(t,n,r){return this._plugins.notify(this,t,n,r)}isPluginEnabled(t){return this._plugins._cache.filter(n=>n.plugin.id===t).length===1}_updateHoverStyles(t,n,r){const i=this.options.hover,o=(l,c)=>l.filter(u=>!c.some(f=>u.datasetIndex===f.datasetIndex&&u.index===f.index)),a=o(n,t),s=r?t:o(t,n);a.length&&this.updateHoverStyle(a,i.mode,!1),s.length&&i.mode&&this.updateHoverStyle(s,i.mode,!0)}_eventHandler(t,n){const r={event:t,replay:n,cancelable:!0,inChartArea:this.isPointInArea(t)},i=a=>(a.options.events||this.options.events).includes(t.native.type);if(this.notifyPlugins("beforeEvent",r,i)===!1)return;const o=this._handleEvent(t,n,r.inChartArea);return r.cancelable=!1,this.notifyPlugins("afterEvent",r,i),(o||r.changed)&&this.render(),this}_handleEvent(t,n,r){const{_active:i=[],options:o}=this,a=n,s=this._getActiveElements(t,i,r,a),l=Dz(t),c=_6(t,this._lastEvent,r,l);r&&(this._lastEvent=null,Xe(o.onHover,[t,s,this],this),l&&Xe(o.onClick,[t,s,this],this));const u=!Wd(s,i);return(u||n)&&(this._active=s,this._updateHoverStyles(s,i,n)),this._lastEvent=c,u}_getActiveElements(t,n,r,i){if(t.type==="mouseout")return[];if(!r)return n;const o=this.options.hover;return this.getElementsAtEventForMode(t,o.mode,o,i)}},tt(Ki,"defaults",dn),tt(Ki,"instances",sd),tt(Ki,"overrides",fa),tt(Ki,"registry",hi),tt(Ki,"version",S6),tt(Ki,"getChart",Lx),Ki);function Dx(){return at(qf.instances,e=>e._plugins.invalidate())}function Z$(e,t,n=t){e.lineCap=it(n.borderCapStyle,t.borderCapStyle),e.setLineDash(it(n.borderDash,t.borderDash)),e.lineDashOffset=it(n.borderDashOffset,t.borderDashOffset),e.lineJoin=it(n.borderJoinStyle,t.borderJoinStyle),e.lineWidth=it(n.borderWidth,t.borderWidth),e.strokeStyle=it(n.borderColor,t.borderColor)}function O6(e,t,n){e.lineTo(n.x,n.y)}function P6(e){return e.stepped?dj:e.tension||e.cubicInterpolationMode==="monotone"?fj:O6}function J$(e,t,n={}){const r=e.length,{start:i=0,end:o=r-1}=n,{start:a,end:s}=t,l=Math.max(i,a),c=Math.min(o,s),u=is&&o>s;return{count:r,start:l,loop:t.loop,ilen:c(a+(c?s-S:S))%o,x=()=>{v!==b&&(e.lineTo(u,b),e.lineTo(u,v),e.lineTo(u,p))};for(l&&(m=i[g(0)],e.moveTo(m.x,m.y)),h=0;h<=s;++h){if(m=i[g(h)],m.skip)continue;const S=m.x,C=m.y,w=S|0;w===y?(Cb&&(b=C),u=(f*u+S)/++f):(x(),e.lineTo(S,C),y=w,f=0,v=b=C),p=C}x()}function hp(e){const t=e.options,n=t.borderDash&&t.borderDash.length;return!e._decimated&&!e._loop&&!t.tension&&t.cubicInterpolationMode!=="monotone"&&!t.stepped&&!n?T6:M6}function R6(e){return e.stepped?Uj:e.tension||e.cubicInterpolationMode==="monotone"?Gj:jo}function I6(e,t,n,r){let i=t._path;i||(i=t._path=new Path2D,t.path(i,n,r)&&i.closePath()),Z$(e,t.options),e.stroke(i)}function k6(e,t,n,r){const{segments:i,options:o}=t,a=hp(t);for(const s of i)Z$(e,o,s.style),e.beginPath(),a(e,t,s,{start:n,end:n+r-1})&&e.closePath(),e.stroke()}const N6=typeof Path2D=="function";function F6(e,t,n,r){N6&&!t.options.segment?I6(e,t,n,r):k6(e,t,n,r)}class fl extends ba{constructor(t){super(),this.animated=!0,this.options=void 0,this._chart=void 0,this._loop=void 0,this._fullLoop=void 0,this._path=void 0,this._points=void 0,this._segments=void 0,this._decimated=!1,this._pointsUpdated=!1,this._datasetIndex=void 0,t&&Object.assign(this,t)}updateControlPoints(t,n){const r=this.options;if((r.tension||r.cubicInterpolationMode==="monotone")&&!r.stepped&&!this._pointsUpdated){const i=r.spanGaps?this._loop:this._fullLoop;Lj(this._points,r,t,i,n),this._pointsUpdated=!0}}set points(t){this._points=t,delete this._segments,delete this._path,this._pointsUpdated=!1}get points(){return this._points}get segments(){return this._segments||(this._segments=e3(this,this.options.segment))}first(){const t=this.segments,n=this.points;return t.length&&n[t[0].start]}last(){const t=this.segments,n=this.points,r=t.length;return r&&n[t[r-1].end]}interpolate(t,n){const r=this.options,i=t[n],o=this.points,a=Qj(this,{property:n,start:i,end:i});if(!a.length)return;const s=[],l=R6(r);let c,u;for(c=0,u=a.length;ct!=="borderDash"&&t!=="fill"});function zx(e,t,n,r){const i=e.options,{[n]:o}=e.getProps([n],r);return Math.abs(t-o){let{boxHeight:n=t,boxWidth:r=t}=e;return e.usePointStyle&&(n=Math.min(n,t),r=e.pointStyleWidth||Math.min(r,t)),{boxWidth:r,boxHeight:n,itemHeight:Math.max(t,n)}},A6=(e,t)=>e!==null&&t!==null&&e.datasetIndex===t.datasetIndex&&e.index===t.index;class Bx extends ba{constructor(t){super(),this._added=!1,this.legendHitBoxes=[],this._hoveredItem=null,this.doughnutMode=!1,this.chart=t.chart,this.options=t.options,this.ctx=t.ctx,this.legendItems=void 0,this.columnSizes=void 0,this.lineWidths=void 0,this.maxHeight=void 0,this.maxWidth=void 0,this.top=void 0,this.bottom=void 0,this.left=void 0,this.right=void 0,this.height=void 0,this.width=void 0,this._margins=void 0,this.position=void 0,this.weight=void 0,this.fullSize=void 0}update(t,n,r){this.maxWidth=t,this.maxHeight=n,this._margins=r,this.setDimensions(),this.buildLabels(),this.fit()}setDimensions(){this.isHorizontal()?(this.width=this.maxWidth,this.left=this._margins.left,this.right=this.width):(this.height=this.maxHeight,this.top=this._margins.top,this.bottom=this.height)}buildLabels(){const t=this.options.labels||{};let n=Xe(t.generateLabels,[this.chart],this)||[];t.filter&&(n=n.filter(r=>t.filter(r,this.chart.data))),t.sort&&(n=n.sort((r,i)=>t.sort(r,i,this.chart.data))),this.options.reverse&&n.reverse(),this.legendItems=n}fit(){const{options:t,ctx:n}=this;if(!t.display){this.width=this.height=0;return}const r=t.labels,i=Kn(r.font),o=i.size,a=this._computeTitleHeight(),{boxWidth:s,itemHeight:l}=jx(r,o);let c,u;n.font=i.string,this.isHorizontal()?(c=this.maxWidth,u=this._fitRows(a,o,s,l)+10):(u=this.maxHeight,c=this._fitCols(a,i,s,l)+10),this.width=Math.min(c,t.maxWidth||this.maxWidth),this.height=Math.min(u,t.maxHeight||this.maxHeight)}_fitRows(t,n,r,i){const{ctx:o,maxWidth:a,options:{labels:{padding:s}}}=this,l=this.legendHitBoxes=[],c=this.lineWidths=[0],u=i+s;let f=t;o.textAlign="left",o.textBaseline="middle";let h=-1,m=-u;return this.legendItems.forEach((y,v)=>{const b=r+n/2+o.measureText(y.text).width;(v===0||c[c.length-1]+b+2*s>a)&&(f+=u,c[c.length-(v>0?0:1)]=0,m+=u,h++),l[v]={left:0,top:m,row:h,width:b,height:i},c[c.length-1]+=b+s}),f}_fitCols(t,n,r,i){const{ctx:o,maxHeight:a,options:{labels:{padding:s}}}=this,l=this.legendHitBoxes=[],c=this.columnSizes=[],u=a-t;let f=s,h=0,m=0,y=0,v=0;return this.legendItems.forEach((b,p)=>{const{itemWidth:g,itemHeight:x}=L6(r,n,o,b,i);p>0&&m+x+2*s>u&&(f+=h+s,c.push({width:h,height:m}),y+=h+s,v++,h=m=0),l[p]={left:y,top:m,col:v,width:g,height:x},h=Math.max(h,g),m+=x+s}),f+=h,c.push({width:h,height:m}),f}adjustHitBoxes(){if(!this.options.display)return;const t=this._computeTitleHeight(),{legendHitBoxes:n,options:{align:r,labels:{padding:i},rtl:o}}=this,a=ls(o,this.left,this.width);if(this.isHorizontal()){let s=0,l=Wn(r,this.left+i,this.right-this.lineWidths[s]);for(const c of n)s!==c.row&&(s=c.row,l=Wn(r,this.left+i,this.right-this.lineWidths[s])),c.top+=this.top+t+i,c.left=a.leftForLtr(a.x(l),c.width),l+=c.width+i}else{let s=0,l=Wn(r,this.top+t+i,this.bottom-this.columnSizes[s].height);for(const c of n)c.col!==s&&(s=c.col,l=Wn(r,this.top+t+i,this.bottom-this.columnSizes[s].height)),c.top=l,c.left+=this.left+i,c.left=a.leftForLtr(a.x(c.left),c.width),l+=c.height+i}}isHorizontal(){return this.options.position==="top"||this.options.position==="bottom"}draw(){if(this.options.display){const t=this.ctx;g0(t,this),this._draw(),m0(t)}}_draw(){const{options:t,columnSizes:n,lineWidths:r,ctx:i}=this,{align:o,labels:a}=t,s=dn.color,l=ls(t.rtl,this.left,this.width),c=Kn(a.font),{padding:u}=a,f=c.size,h=f/2;let m;this.drawTitle(),i.textAlign=l.textAlign("left"),i.textBaseline="middle",i.lineWidth=.5,i.font=c.string;const{boxWidth:y,boxHeight:v,itemHeight:b}=jx(a,f),p=function(w,E,_){if(isNaN(y)||y<=0||isNaN(v)||v<0)return;i.save();const O=it(_.lineWidth,1);if(i.fillStyle=it(_.fillStyle,s),i.lineCap=it(_.lineCap,"butt"),i.lineDashOffset=it(_.lineDashOffset,0),i.lineJoin=it(_.lineJoin,"miter"),i.lineWidth=O,i.strokeStyle=it(_.strokeStyle,s),i.setLineDash(it(_.lineDash,[])),a.usePointStyle){const M={radius:v*Math.SQRT2/2,pointStyle:_.pointStyle,rotation:_.rotation,borderWidth:O},I=l.xPlus(w,y/2),k=E+h;R$(i,M,I,k,a.pointStyleWidth&&y)}else{const M=E+Math.max((f-v)/2,0),I=l.leftForLtr(w,y),k=kl(_.borderRadius);i.beginPath(),Object.values(k).some(F=>F!==0)?up(i,{x:I,y:M,w:y,h:v,radius:k}):i.rect(I,M,y,v),i.fill(),O!==0&&i.stroke()}i.restore()},g=function(w,E,_){xc(i,_.text,w,E+b/2,c,{strikethrough:_.hidden,textAlign:l.textAlign(_.textAlign)})},x=this.isHorizontal(),S=this._computeTitleHeight();x?m={x:Wn(o,this.left+u,this.right-r[0]),y:this.top+u+S,line:0}:m={x:this.left+u,y:Wn(o,this.top+S+u,this.bottom-n[0].height),line:0},D$(this.ctx,t.textDirection);const C=b+u;this.legendItems.forEach((w,E)=>{i.strokeStyle=w.fontColor,i.fillStyle=w.fontColor;const _=i.measureText(w.text).width,O=l.textAlign(w.textAlign||(w.textAlign=a.textAlign)),M=y+h+_;let I=m.x,k=m.y;l.setWidth(this.width),x?E>0&&I+M+u>this.right&&(k=m.y+=C,m.line++,I=m.x=Wn(o,this.left+u,this.right-r[m.line])):E>0&&k+C>this.bottom&&(I=m.x=I+n[m.line].width+u,m.line++,k=m.y=Wn(o,this.top+S+u,this.bottom-n[m.line].height));const F=l.x(I);if(p(F,k,w),I=Jz(O,I+y+h,x?I+M:this.right,t.rtl),g(l.x(I),k,w),x)m.x+=M+u;else if(typeof w.text!="string"){const j=c.lineHeight;m.y+=e2(w,j)+u}else m.y+=C}),z$(this.ctx,t.textDirection)}drawTitle(){const t=this.options,n=t.title,r=Kn(n.font),i=Hr(n.padding);if(!n.display)return;const o=ls(t.rtl,this.left,this.width),a=this.ctx,s=n.position,l=r.size/2,c=i.top+l;let u,f=this.left,h=this.width;if(this.isHorizontal())h=Math.max(...this.lineWidths),u=this.top+c,f=Wn(t.align,f,this.right-h);else{const y=this.columnSizes.reduce((v,b)=>Math.max(v,b.height),0);u=c+Wn(t.align,this.top,this.bottom-y-t.labels.padding-this._computeTitleHeight())}const m=Wn(s,f,f+h);a.textAlign=o.textAlign(f0(s)),a.textBaseline="middle",a.strokeStyle=n.color,a.fillStyle=n.color,a.font=r.string,xc(a,n.text,m,u,r)}_computeTitleHeight(){const t=this.options.title,n=Kn(t.font),r=Hr(t.padding);return t.display?n.lineHeight+r.height:0}_getLegendItemAt(t,n){let r,i,o;if(ul(t,this.left,this.right)&&ul(n,this.top,this.bottom)){for(o=this.legendHitBoxes,r=0;ro.length>a.length?o:a)),t+n.size/2+r.measureText(i).width}function z6(e,t,n){let r=e;return typeof t.text!="string"&&(r=e2(t,n)),r}function e2(e,t){const n=e.text?e.text.length:0;return t*n}function j6(e,t){return!!((e==="mousemove"||e==="mouseout")&&(t.onHover||t.onLeave)||t.onClick&&(e==="click"||e==="mouseup"))}var B6={id:"legend",_element:Bx,start(e,t,n){const r=e.legend=new Bx({ctx:e.ctx,options:n,chart:e});Fr.configure(e,r,n),Fr.addBox(e,r)},stop(e){Fr.removeBox(e,e.legend),delete e.legend},beforeUpdate(e,t,n){const r=e.legend;Fr.configure(e,r,n),r.options=n},afterUpdate(e){const t=e.legend;t.buildLabels(),t.adjustHitBoxes()},afterEvent(e,t){t.replay||e.legend.handleEvent(t.event)},defaults:{display:!0,position:"top",align:"center",fullSize:!0,reverse:!1,weight:1e3,onClick(e,t,n){const r=t.datasetIndex,i=n.chart;i.isDatasetVisible(r)?(i.hide(r),t.hidden=!0):(i.show(r),t.hidden=!1)},onHover:null,onLeave:null,labels:{color:e=>e.chart.options.color,boxWidth:40,padding:10,generateLabels(e){const t=e.data.datasets,{labels:{usePointStyle:n,pointStyle:r,textAlign:i,color:o,useBorderRadius:a,borderRadius:s}}=e.legend.options;return e._getSortedDatasetMetas().map(l=>{const c=l.controller.getStyle(n?0:void 0),u=Hr(c.borderWidth);return{text:t[l.index].label,fillStyle:c.backgroundColor,fontColor:o,hidden:!l.visible,lineCap:c.borderCapStyle,lineDash:c.borderDash,lineDashOffset:c.borderDashOffset,lineJoin:c.borderJoinStyle,lineWidth:(u.width+u.height)/4,strokeStyle:c.borderColor,pointStyle:r||c.pointStyle,rotation:c.rotation,textAlign:i||c.textAlign,borderRadius:a&&(s||c.borderRadius),datasetIndex:l.index}},this)}},title:{color:e=>e.chart.options.color,display:!1,position:"center",text:""}},descriptors:{_scriptable:e=>!e.startsWith("on"),labels:{_scriptable:e=>!["generateLabels","filter","sort"].includes(e)}}};class t2 extends ba{constructor(t){super(),this.chart=t.chart,this.options=t.options,this.ctx=t.ctx,this._padding=void 0,this.top=void 0,this.bottom=void 0,this.left=void 0,this.right=void 0,this.width=void 0,this.height=void 0,this.position=void 0,this.weight=void 0,this.fullSize=void 0}update(t,n){const r=this.options;if(this.left=0,this.top=0,!r.display){this.width=this.height=this.right=this.bottom=0;return}this.width=this.right=t,this.height=this.bottom=n;const i=Rn(r.text)?r.text.length:1;this._padding=Hr(r.padding);const o=i*Kn(r.font).lineHeight+this._padding.height;this.isHorizontal()?this.height=o:this.width=o}isHorizontal(){const t=this.options.position;return t==="top"||t==="bottom"}_drawArgs(t){const{top:n,left:r,bottom:i,right:o,options:a}=this,s=a.align;let l=0,c,u,f;return this.isHorizontal()?(u=Wn(s,r,o),f=n+t,c=o-r):(a.position==="left"?(u=r+t,f=Wn(s,i,n),l=Fn*-.5):(u=o-t,f=Wn(s,n,i),l=Fn*.5),c=i-n),{titleX:u,titleY:f,maxWidth:c,rotation:l}}draw(){const t=this.ctx,n=this.options;if(!n.display)return;const r=Kn(n.font),o=r.lineHeight/2+this._padding.top,{titleX:a,titleY:s,maxWidth:l,rotation:c}=this._drawArgs(o);xc(t,n.text,0,0,r,{color:n.color,maxWidth:l,rotation:c,textAlign:f0(n.align),textBaseline:"middle",translation:[a,s]})}}function H6(e,t){const n=new t2({ctx:e.ctx,options:t,chart:e});Fr.configure(e,n,t),Fr.addBox(e,n),e.titleBlock=n}var V6={id:"title",_element:t2,start(e,t,n){H6(e,n)},stop(e){const t=e.titleBlock;Fr.removeBox(e,t),delete e.titleBlock},beforeUpdate(e,t,n){const r=e.titleBlock;Fr.configure(e,r,n),r.options=n},defaults:{align:"center",display:!1,font:{weight:"bold"},fullSize:!0,padding:10,position:"top",text:"",weight:2e3},defaultRoutes:{color:"color"},descriptors:{_scriptable:!0,_indexable:!1}};const hl={average(e){if(!e.length)return!1;let t,n,r=new Set,i=0,o=0;for(t=0,n=e.length;ts+l)/r.size,y:i/o}},nearest(e,t){if(!e.length)return!1;let n=t.x,r=t.y,i=Number.POSITIVE_INFINITY,o,a,s;for(o=0,a=e.length;os({chart:t,initial:n.initial,numSteps:a,currentStep:Math.min(r-n.start,a)}))}_refresh(){this._request||(this._running=!0,this._request=$$.call(window,()=>{this._update(),this._request=null,this._running&&this._refresh()}))}_update(t=Date.now()){let n=0;this._charts.forEach((r,i)=>{if(!r.running||!r.items.length)return;const o=r.items;let a=o.length-1,s=!1,l;for(;a>=0;--a)l=o[a],l._active?(l._total>r.duration&&(r.duration=l._total),l.tick(t),s=!0):(o[a]=o[o.length-1],o.pop());s&&(i.draw(),this._notify(i,r,t,"progress")),o.length||(r.running=!1,this._notify(i,r,t,"complete"),r.initial=!1),n+=o.length}),this._lastDate=t,n===0&&(this._running=!1)}_getAnims(t){const n=this._charts;let r=n.get(t);return r||(r={running:!1,initial:!0,items:[],listeners:{complete:[],progress:[]}},n.set(t,r)),r}listen(t,n,r){this._getAnims(t).listeners[n].push(r)}add(t,n){!n||!n.length||this._getAnims(t).items.push(...n)}has(t){return this._getAnims(t).items.length>0}start(t){const n=this._charts.get(t);n&&(n.running=!0,n.start=Date.now(),n.duration=n.items.reduce((r,i)=>Math.max(r,i._duration),0),this._refresh())}running(t){if(!this._running)return!1;const n=this._charts.get(t);return!(!n||!n.running||!n.items.length)}stop(t){const n=this._charts.get(t);if(!n||!n.items.length)return;const r=n.items;let i=r.length-1;for(;i>=0;--i)r[i].cancel();n.items=[],this._notify(t,n,Date.now(),"complete")}remove(t){return this._charts.delete(t)}}var _i=new r3;const hx="transparent",i3={boolean(e,t,n){return n>.5?t:e},color(e,t,n){const r=nx(e||hx),i=r.valid&&nx(t||hx);return i&&i.valid?i.mix(r,n).hexString():t},number(e,t,n){return e+(t-e)*n}};class o3{constructor(t,n,r,i){const o=n[r];i=wu([t.to,i,o,t.from]);const a=wu([t.from,o,i]);this._active=!0,this._fn=t.fn||i3[t.type||typeof a],this._easing=Rl[t.easing]||Rl.linear,this._start=Math.floor(Date.now()+(t.delay||0)),this._duration=this._total=Math.floor(t.duration),this._loop=!!t.loop,this._target=n,this._prop=r,this._from=a,this._to=i,this._promises=void 0}active(){return this._active}update(t,n,r){if(this._active){this._notify(!1);const i=this._target[this._prop],o=r-this._start,a=this._duration-o;this._start=r,this._duration=Math.floor(Math.max(a,t.duration)),this._total+=o,this._loop=!!t.loop,this._to=wu([t.to,n,i,t.from]),this._from=wu([t.from,i,n])}}cancel(){this._active&&(this.tick(Date.now()),this._active=!1,this._notify(!1))}tick(t){const n=t-this._start,r=this._duration,i=this._prop,o=this._from,a=this._loop,s=this._to;let l;if(this._active=o!==s&&(a||n1?2-l:l,l=this._easing(Math.min(1,Math.max(0,l))),this._target[i]=this._fn(o,s,l)}wait(){const t=this._promises||(this._promises=[]);return new Promise((n,r)=>{t.push({res:n,rej:r})})}_notify(t){const n=t?"res":"rej",r=this._promises||[];for(let i=0;i{const o=t[i];if(!wt(o))return;const a={};for(const s of n)a[s]=o[s];(Rn(o.properties)&&o.properties||[i]).forEach(s=>{(s===i||!r.has(s))&&r.set(s,a)})})}_animateOptions(t,n){const r=n.options,i=s3(t,r);if(!i)return[];const o=this._createAnimations(i,r);return r.$shared&&a3(t.options.$animations,r).then(()=>{t.options=r},()=>{}),o}_createAnimations(t,n){const r=this._properties,i=[],o=t.$animations||(t.$animations={}),a=Object.keys(n),s=Date.now();let l;for(l=a.length-1;l>=0;--l){const c=a[l];if(c.charAt(0)==="$")continue;if(c==="options"){i.push(...this._animateOptions(t,n));continue}const u=n[c];let f=o[c];const h=r.get(c);if(f)if(h&&f.active()){f.update(h,u,s);continue}else f.cancel();if(!h||!h.duration){t[c]=u;continue}o[c]=f=new o3(h,t,c,u),i.push(f)}return i}update(t,n){if(this._properties.size===0){Object.assign(t,n);return}const r=this._createAnimations(t,n);if(r.length)return _i.add(this._chart,r),!0}}function a3(e,t){const n=[],r=Object.keys(t);for(let i=0;i0||!n&&o<0)return i.index}return null}function yx(e,t){const{chart:n,_cachedMeta:r}=e,i=n._stacks||(n._stacks={}),{iScale:o,vScale:a,index:s}=r,l=o.axis,c=a.axis,u=d3(o,a,r),f=t.length;let h;for(let m=0;mn[r].axis===t).shift()}function g3(e,t){return ya(e,{active:!1,dataset:void 0,datasetIndex:t,index:t,mode:"default",type:"dataset"})}function m3(e,t,n){return ya(e,{active:!1,dataIndex:t,parsed:void 0,raw:void 0,element:n,index:t,mode:"default",type:"data"})}function Zs(e,t){const n=e.controller.index,r=e.vScale&&e.vScale.axis;if(r){t=t||e._parsed;for(const i of t){const o=i._stacks;if(!o||o[r]===void 0||o[r][n]===void 0)return;delete o[r][n],o[r]._visualValues!==void 0&&o[r]._visualValues[n]!==void 0&&delete o[r]._visualValues[n]}}}const rg=e=>e==="reset"||e==="none",bx=(e,t)=>t?e:Object.assign({},e),p3=(e,t,n)=>e&&!t.hidden&&t._stacked&&{keys:H$(n,!0),values:null};class Nl{constructor(t,n){this.chart=t,this._ctx=t.ctx,this.index=n,this._cachedDataOpts={},this._cachedMeta=this.getMeta(),this._type=this._cachedMeta.type,this.options=void 0,this._parsing=!1,this._data=void 0,this._objectData=void 0,this._sharedOptions=void 0,this._drawStart=void 0,this._drawCount=void 0,this.enableOptionSharing=!1,this.supportsDecimation=!1,this.$context=void 0,this._syncList=[],this.datasetElementType=new.target.datasetElementType,this.dataElementType=new.target.dataElementType,this.initialize()}initialize(){const t=this._cachedMeta;this.configure(),this.linkScales(),t._stacked=px(t.vScale,t),this.addElements(),this.options.fill&&!this.chart.isPluginEnabled("filler")&&console.warn("Tried to use the 'fill' option without the 'Filler' plugin enabled. Please import and register the 'Filler' plugin and make sure it is not disabled in the options")}updateIndex(t){this.index!==t&&Zs(this._cachedMeta),this.index=t}linkScales(){const t=this.chart,n=this._cachedMeta,r=this.getDataset(),i=(f,h,m,y)=>f==="x"?h:f==="r"?y:m,o=n.xAxisID=it(r.xAxisID,ng(t,"x")),a=n.yAxisID=it(r.yAxisID,ng(t,"y")),s=n.rAxisID=it(r.rAxisID,ng(t,"r")),l=n.indexAxis,c=n.iAxisID=i(l,o,a,s),u=n.vAxisID=i(l,a,o,s);n.xScale=this.getScaleForId(o),n.yScale=this.getScaleForId(a),n.rScale=this.getScaleForId(s),n.iScale=this.getScaleForId(c),n.vScale=this.getScaleForId(u)}getDataset(){return this.chart.data.datasets[this.index]}getMeta(){return this.chart.getDatasetMeta(this.index)}getScaleForId(t){return this.chart.scales[t]}_getOtherScale(t){const n=this._cachedMeta;return t===n.iScale?n.vScale:n.iScale}reset(){this._update("reset")}_destroy(){const t=this._cachedMeta;this._data&&J1(this._data,this),t._stacked&&Zs(t)}_dataCheck(){const t=this.getDataset(),n=t.data||(t.data=[]),r=this._data;if(wt(n)){const i=this._cachedMeta;this._data=u3(n,i)}else if(r!==n){if(r){J1(r,this);const i=this._cachedMeta;Zs(i),i._parsed=[]}n&&Object.isExtensible(n)&&Yz(n,this),this._syncList=[],this._data=n}}addElements(){const t=this._cachedMeta;this._dataCheck(),this.datasetElementType&&(t.dataset=new this.datasetElementType)}buildOrUpdateElements(t){const n=this._cachedMeta,r=this.getDataset();let i=!1;this._dataCheck();const o=n._stacked;n._stacked=px(n.vScale,n),n.stack!==r.stack&&(i=!0,Zs(n),n.stack=r.stack),this._resyncElements(t),(i||o!==n._stacked)&&yx(this,n._parsed)}configure(){const t=this.chart.config,n=t.datasetScopeKeys(this._type),r=t.getOptionScopes(this.getDataset(),n,!0);this.options=t.createResolver(r,this.getContext()),this._parsing=this.options.parsing,this._cachedDataOpts={}}parse(t,n){const{_cachedMeta:r,_data:i}=this,{iScale:o,_stacked:a}=r,s=o.axis;let l=t===0&&n===i.length?!0:r._sorted,c=t>0&&r._parsed[t-1],u,f,h;if(this._parsing===!1)r._parsed=i,r._sorted=!0,h=i;else{Rn(i[t])?h=this.parseArrayData(r,i,t,n):wt(i[t])?h=this.parseObjectData(r,i,t,n):h=this.parsePrimitiveData(r,i,t,n);const m=()=>f[s]===null||c&&f[s]v||f=0;--h)if(!y()){this.updateRangeFromParsed(c,t,m,l);break}}return c}getAllParsedValues(t){const n=this._cachedMeta._parsed,r=[];let i,o,a;for(i=0,o=n.length;i=0&&tthis.getContext(r,i,n),v=c.resolveNamedOptions(h,m,y,f);return v.$shared&&(v.$shared=l,o[a]=Object.freeze(bx(v,l))),v}_resolveAnimations(t,n,r){const i=this.chart,o=this._cachedDataOpts,a=`animation-${n}`,s=o[a];if(s)return s;let l;if(i.options.animation!==!1){const u=this.chart.config,f=u.datasetAnimationScopeKeys(this._type,n),h=u.getOptionScopes(this.getDataset(),f);l=u.createResolver(h,this.getContext(t,r,n))}const c=new B$(i,l&&l.animations);return l&&l._cacheable&&(o[a]=Object.freeze(c)),c}getSharedOptions(t){if(t.$shared)return this._sharedOptions||(this._sharedOptions=Object.assign({},t))}includeOptions(t,n){return!n||rg(t)||this.chart._animationsDisabled}_getSharedOptions(t,n){const r=this.resolveDataElementOptions(t,n),i=this._sharedOptions,o=this.getSharedOptions(r),a=this.includeOptions(n,o)||o!==i;return this.updateSharedOptions(o,n,r),{sharedOptions:o,includeOptions:a}}updateElement(t,n,r,i){rg(i)?Object.assign(t,r):this._resolveAnimations(n,i).update(t,r)}updateSharedOptions(t,n,r){t&&!rg(n)&&this._resolveAnimations(void 0,n).update(t,r)}_setStyle(t,n,r,i){t.active=i;const o=this.getStyle(n,i);this._resolveAnimations(n,r,i).update(t,{options:!i&&this.getSharedOptions(o)||o})}removeHoverStyle(t,n,r){this._setStyle(t,r,"active",!1)}setHoverStyle(t,n,r){this._setStyle(t,r,"active",!0)}_removeDatasetHoverStyle(){const t=this._cachedMeta.dataset;t&&this._setStyle(t,void 0,"active",!1)}_setDatasetHoverStyle(){const t=this._cachedMeta.dataset;t&&this._setStyle(t,void 0,"active",!0)}_resyncElements(t){const n=this._data,r=this._cachedMeta.data;for(const[s,l,c]of this._syncList)this[s](l,c);this._syncList=[];const i=r.length,o=n.length,a=Math.min(o,i);a&&this.parse(0,a),o>i?this._insertElements(i,o-i,t):o{for(c.length+=n,s=c.length-1;s>=a;s--)c[s]=c[s-n]};for(l(o),s=t;s0&&this.getParsed(n-1);for(let C=0;C=g){E.skip=!0;continue}const _=this.getParsed(C),O=on(_[m]),M=E[h]=a.getPixelForValue(_[h],C),I=E[m]=o||O?s.getBasePixel():s.getPixelForValue(l?this.applyStack(s,_,l):_[m],C);E.skip=isNaN(M)||isNaN(I)||O,E.stop=C>0&&Math.abs(_[h]-S[h])>b,v&&(E.parsed=_,E.raw=c.data[C]),f&&(E.options=u||this.resolveDataElementOptions(C,w.active?"active":i)),p||this.updateElement(w,C,E,i),S=_}}getMaxOverflow(){const t=this._cachedMeta,n=t.dataset,r=n.options&&n.options.borderWidth||0,i=t.data||[];if(!i.length)return r;const o=i[0].size(this.resolveDataElementOptions(0)),a=i[i.length-1].size(this.resolveDataElementOptions(i.length-1));return Math.max(r,o,a)/2}draw(){const t=this._cachedMeta;t.dataset.updateControlPoints(this.chart.chartArea,t.iScale.axis),super.draw()}}tt(od,"id","line"),tt(od,"defaults",{datasetElementType:"line",dataElementType:"point",showLine:!0,spanGaps:!1}),tt(od,"overrides",{scales:{_index_:{type:"category"},_value_:{type:"linear"}}});function Lo(){throw new Error("This method is not implemented: Check that a complete date adapter is provided.")}class S0{constructor(t){tt(this,"options");this.options=t||{}}static override(t){Object.assign(S0.prototype,t)}init(){}formats(){return Lo()}parse(){return Lo()}format(){return Lo()}add(){return Lo()}diff(){return Lo()}startOf(){return Lo()}endOf(){return Lo()}}var v3={_date:S0};function y3(e,t,n,r){const{controller:i,data:o,_sorted:a}=e,s=i._cachedMeta.iScale;if(s&&t===s.axis&&t!=="r"&&a&&o.length){const l=s._reversePixels?qz:Yo;if(r){if(i._sharedOptions){const c=o[0],u=typeof c.getRange=="function"&&c.getRange(t);if(u){const f=l(o,t,n-u),h=l(o,t,n+u);return{lo:f.lo,hi:h.hi}}}}else return l(o,t,n)}return{lo:0,hi:o.length-1}}function Dc(e,t,n,r,i){const o=e.getSortedVisibleDatasetMetas(),a=n[t];for(let s=0,l=o.length;s{l[a]&&l[a](t[n],i)&&(o.push({element:l,datasetIndex:c,index:u}),s=s||l.inRange(t.x,t.y,i))}),r&&!s?[]:o}var C3={evaluateInteractionItems:Dc,modes:{index(e,t,n,r){const i=mi(t,e),o=n.axis||"x",a=n.includeInvisible||!1,s=n.intersect?ig(e,i,o,r,a):og(e,i,o,!1,r,a),l=[];return s.length?(e.getSortedVisibleDatasetMetas().forEach(c=>{const u=s[0].index,f=c.data[u];f&&!f.skip&&l.push({element:f,datasetIndex:c.index,index:u})}),l):[]},dataset(e,t,n,r){const i=mi(t,e),o=n.axis||"xy",a=n.includeInvisible||!1;let s=n.intersect?ig(e,i,o,r,a):og(e,i,o,!1,r,a);if(s.length>0){const l=s[0].datasetIndex,c=e.getDatasetMeta(l).data;s=[];for(let u=0;un.pos===t)}function Sx(e,t){return e.filter(n=>V$.indexOf(n.pos)===-1&&n.box.axis===t)}function el(e,t){return e.sort((n,r)=>{const i=t?r:n,o=t?n:r;return i.weight===o.weight?i.index-o.index:i.weight-o.weight})}function w3(e){const t=[];let n,r,i,o,a,s;for(n=0,r=(e||[]).length;nc.box.fullSize),!0),r=el(Js(t,"left"),!0),i=el(Js(t,"right")),o=el(Js(t,"top"),!0),a=el(Js(t,"bottom")),s=Sx(t,"x"),l=Sx(t,"y");return{fullSize:n,leftAndTop:r.concat(o),rightAndBottom:i.concat(l).concat(a).concat(s),chartArea:Js(t,"chartArea"),vertical:r.concat(i).concat(l),horizontal:o.concat(a).concat(s)}}function Cx(e,t,n,r){return Math.max(e[n],t[n])+Math.max(e[r],t[r])}function W$(e,t){e.top=Math.max(e.top,t.top),e.left=Math.max(e.left,t.left),e.bottom=Math.max(e.bottom,t.bottom),e.right=Math.max(e.right,t.right)}function O3(e,t,n,r){const{pos:i,box:o}=n,a=e.maxPadding;if(!wt(i)){n.size&&(e[i]-=n.size);const f=r[n.stack]||{size:0,count:1};f.size=Math.max(f.size,n.horizontal?o.height:o.width),n.size=f.size/f.count,e[i]+=n.size}o.getPadding&&W$(a,o.getPadding());const s=Math.max(0,t.outerWidth-Cx(a,e,"left","right")),l=Math.max(0,t.outerHeight-Cx(a,e,"top","bottom")),c=s!==e.w,u=l!==e.h;return e.w=s,e.h=l,n.horizontal?{same:c,other:u}:{same:u,other:c}}function P3(e){const t=e.maxPadding;function n(r){const i=Math.max(t[r]-e[r],0);return e[r]+=i,i}e.y+=n("top"),e.x+=n("left"),n("right"),n("bottom")}function M3(e,t){const n=t.maxPadding;function r(i){const o={left:0,top:0,right:0,bottom:0};return i.forEach(a=>{o[a]=Math.max(t[a],n[a])}),o}return r(e?["left","right"]:["top","bottom"])}function dl(e,t,n,r){const i=[];let o,a,s,l,c,u;for(o=0,a=e.length,c=0;o{typeof v.beforeLayout=="function"&&v.beforeLayout()});const u=l.reduce((v,b)=>b.box.options&&b.box.options.display===!1?v:v+1,0)||1,f=Object.freeze({outerWidth:t,outerHeight:n,padding:i,availableWidth:o,availableHeight:a,vBoxMaxWidth:o/2/u,hBoxMaxHeight:a/2}),h=Object.assign({},i);W$(h,Hr(r));const m=Object.assign({maxPadding:h,w:o,h:a,x:i.left,y:i.top},i),y=_3(l.concat(c),f);dl(s.fullSize,m,f,y),dl(l,m,f,y),dl(c,m,f,y)&&dl(l,m,f,y),P3(m),wx(s.leftAndTop,m,f,y),m.x+=m.w,m.y+=m.h,wx(s.rightAndBottom,m,f,y),e.chartArea={left:m.left,top:m.top,right:m.left+m.w,bottom:m.top+m.h,height:m.h,width:m.w},at(s.chartArea,v=>{const b=v.box;Object.assign(b,e.chartArea),b.update(m.w,m.h,{left:0,top:0,right:0,bottom:0})})}};class U${acquireContext(t,n){}releaseContext(t){return!1}addEventListener(t,n,r){}removeEventListener(t,n,r){}getDevicePixelRatio(){return 1}getMaximumSize(t,n,r,i){return n=Math.max(0,n||t.width),r=r||t.height,{width:n,height:Math.max(0,i?Math.floor(n/i):r)}}isAttached(t){return!0}updateConfig(t){}}class T3 extends U${acquireContext(t){return t&&t.getContext&&t.getContext("2d")||null}updateConfig(t){t.options.animation=!1}}const ad="$chartjs",R3={touchstart:"mousedown",touchmove:"mousemove",touchend:"mouseup",pointerenter:"mouseenter",pointerdown:"mousedown",pointermove:"mousemove",pointerup:"mouseup",pointerleave:"mouseout",pointerout:"mouseout"},Ex=e=>e===null||e==="";function I3(e,t){const n=e.style,r=e.getAttribute("height"),i=e.getAttribute("width");if(e[ad]={initial:{height:r,width:i,style:{display:n.display,height:n.height,width:n.width}}},n.display=n.display||"block",n.boxSizing=n.boxSizing||"border-box",Ex(i)){const o=cx(e,"width");o!==void 0&&(e.width=o)}if(Ex(r))if(e.style.height==="")e.height=e.width/(t||2);else{const o=cx(e,"height");o!==void 0&&(e.height=o)}return e}const G$=Wj?{passive:!0}:!1;function k3(e,t,n){e&&e.addEventListener(t,n,G$)}function N3(e,t,n){e&&e.canvas&&e.canvas.removeEventListener(t,n,G$)}function F3(e,t){const n=R3[e.type]||e.type,{x:r,y:i}=mi(e,t);return{type:n,chart:t,native:e,x:r!==void 0?r:null,y:i!==void 0?i:null}}function Xd(e,t){for(const n of e)if(n===t||n.contains(t))return!0}function A3(e,t,n){const r=e.canvas,i=new MutationObserver(o=>{let a=!1;for(const s of o)a=a||Xd(s.addedNodes,r),a=a&&!Xd(s.removedNodes,r);a&&n()});return i.observe(document,{childList:!0,subtree:!0}),i}function L3(e,t,n){const r=e.canvas,i=new MutationObserver(o=>{let a=!1;for(const s of o)a=a||Xd(s.removedNodes,r),a=a&&!Xd(s.addedNodes,r);a&&n()});return i.observe(document,{childList:!0,subtree:!0}),i}const Sc=new Map;let _x=0;function K$(){const e=window.devicePixelRatio;e!==_x&&(_x=e,Sc.forEach((t,n)=>{n.currentDevicePixelRatio!==e&&t()}))}function D3(e,t){Sc.size||window.addEventListener("resize",K$),Sc.set(e,t)}function z3(e){Sc.delete(e),Sc.size||window.removeEventListener("resize",K$)}function j3(e,t,n){const r=e.canvas,i=r&&x0(r);if(!i)return;const o=O$((s,l)=>{const c=i.clientWidth;n(s,l),c{const l=s[0],c=l.contentRect.width,u=l.contentRect.height;c===0&&u===0||o(c,u)});return a.observe(i),D3(e,o),a}function ag(e,t,n){n&&n.disconnect(),t==="resize"&&z3(e)}function B3(e,t,n){const r=e.canvas,i=O$(o=>{e.ctx!==null&&n(F3(o,e))},e);return k3(r,t,i),i}class H3 extends U${acquireContext(t,n){const r=t&&t.getContext&&t.getContext("2d");return r&&r.canvas===t?(I3(t,n),r):null}releaseContext(t){const n=t.canvas;if(!n[ad])return!1;const r=n[ad].initial;["height","width"].forEach(o=>{const a=r[o];on(a)?n.removeAttribute(o):n.setAttribute(o,a)});const i=r.style||{};return Object.keys(i).forEach(o=>{n.style[o]=i[o]}),n.width=n.width,delete n[ad],!0}addEventListener(t,n,r){this.removeEventListener(t,n);const i=t.$proxies||(t.$proxies={}),a={attach:A3,detach:L3,resize:j3}[n]||B3;i[n]=a(t,n,r)}removeEventListener(t,n){const r=t.$proxies||(t.$proxies={}),i=r[n];if(!i)return;({attach:ag,detach:ag,resize:ag}[n]||N3)(t,n,i),r[n]=void 0}getDevicePixelRatio(){return window.devicePixelRatio}getMaximumSize(t,n,r,i){return Vj(t,n,r,i)}isAttached(t){const n=t&&x0(t);return!!(n&&n.isConnected)}}function V3(e){return!b0()||typeof OffscreenCanvas<"u"&&e instanceof OffscreenCanvas?T3:H3}var Nu;let ba=(Nu=class{constructor(){tt(this,"x");tt(this,"y");tt(this,"active",!1);tt(this,"options");tt(this,"$animations")}tooltipPosition(t){const{x:n,y:r}=this.getProps(["x","y"],t);return{x:n,y:r}}hasValue(){return yc(this.x)&&yc(this.y)}getProps(t,n){const r=this.$animations;if(!n||!r)return this;const i={};return t.forEach(o=>{i[o]=r[o]&&r[o].active()?r[o]._to:this[o]}),i}},tt(Nu,"defaults",{}),tt(Nu,"defaultRoutes"),Nu);function W3(e,t){const n=e.options.ticks,r=U3(e),i=Math.min(n.maxTicksLimit||r,r),o=n.major.enabled?K3(t):[],a=o.length,s=o[0],l=o[a-1],c=[];if(a>i)return q3(t,c,o,a/i),c;const u=G3(o,t,i);if(a>0){let f,h;const m=a>1?Math.round((l-s)/(a-1)):null;for(Ou(t,c,u,on(m)?0:s-m,s),f=0,h=a-1;fi)return l}return Math.max(i,1)}function K3(e){const t=[];let n,r;for(n=0,r=e.length;ne==="left"?"right":e==="right"?"left":e,$x=(e,t,n)=>t==="top"||t==="left"?e[t]+n:e[t]-n,Ox=(e,t)=>Math.min(t||e,e);function Px(e,t){const n=[],r=e.length/t,i=e.length;let o=0;for(;oa+s)))return l}function Z3(e,t){at(e,n=>{const r=n.gc,i=r.length/2;let o;if(i>t){for(o=0;or?r:n,r=i&&n>r?n:r,{min:ui(n,ui(r,n)),max:ui(r,ui(n,r))}}getPadding(){return{left:this.paddingLeft||0,top:this.paddingTop||0,right:this.paddingRight||0,bottom:this.paddingBottom||0}}getTicks(){return this.ticks}getLabels(){const t=this.chart.data;return this.options.labels||(this.isHorizontal()?t.xLabels:t.yLabels)||t.labels||[]}getLabelItems(t=this.chart.chartArea){return this._labelItems||(this._labelItems=this._computeLabelItems(t))}beforeLayout(){this._cache={},this._dataLimitsCached=!1}beforeUpdate(){Xe(this.options.beforeUpdate,[this])}update(t,n,r){const{beginAtZero:i,grace:o,ticks:a}=this.options,s=a.sampleSize;this.beforeUpdate(),this.maxWidth=t,this.maxHeight=n,this._margins=r=Object.assign({left:0,right:0,top:0,bottom:0},r),this.ticks=null,this._labelSizes=null,this._gridLineItems=null,this._labelItems=null,this.beforeSetDimensions(),this.setDimensions(),this.afterSetDimensions(),this._maxLength=this.isHorizontal()?this.width+r.left+r.right:this.height+r.top+r.bottom,this._dataLimitsCached||(this.beforeDataLimits(),this.determineDataLimits(),this.afterDataLimits(),this._range=Sj(this,o,i),this._dataLimitsCached=!0),this.beforeBuildTicks(),this.ticks=this.buildTicks()||[],this.afterBuildTicks();const l=s=o||r<=1||!this.isHorizontal()){this.labelRotation=i;return}const u=this._getLabelSizes(),f=u.widest.width,h=u.highest.height,m=Nr(this.chart.width-f,0,this.maxWidth);s=t.offset?this.maxWidth/r:m/(r-1),f+6>s&&(s=m/(r-(t.offset?.5:1)),l=this.maxHeight-tl(t.grid)-n.padding-Mx(t.title,this.chart.options.font),c=Math.sqrt(f*f+h*h),a=Wz(Math.min(Math.asin(Nr((u.highest.height+6)/s,-1,1)),Math.asin(Nr(l/c,-1,1))-Math.asin(Nr(h/c,-1,1)))),a=Math.max(i,Math.min(o,a))),this.labelRotation=a}afterCalculateLabelRotation(){Xe(this.options.afterCalculateLabelRotation,[this])}afterAutoSkip(){}beforeFit(){Xe(this.options.beforeFit,[this])}fit(){const t={width:0,height:0},{chart:n,options:{ticks:r,title:i,grid:o}}=this,a=this._isVisible(),s=this.isHorizontal();if(a){const l=Mx(i,n.options.font);if(s?(t.width=this.maxWidth,t.height=tl(o)+l):(t.height=this.maxHeight,t.width=tl(o)+l),r.display&&this.ticks.length){const{first:c,last:u,widest:f,highest:h}=this._getLabelSizes(),m=r.padding*2,y=Xo(this.labelRotation),v=Math.cos(y),b=Math.sin(y);if(s){const p=r.mirror?0:b*f.width+v*h.height;t.height=Math.min(this.maxHeight,t.height+p+m)}else{const p=r.mirror?0:v*f.width+b*h.height;t.width=Math.min(this.maxWidth,t.width+p+m)}this._calculatePadding(c,u,b,v)}}this._handleMargins(),s?(this.width=this._length=n.width-this._margins.left-this._margins.right,this.height=t.height):(this.width=t.width,this.height=this._length=n.height-this._margins.top-this._margins.bottom)}_calculatePadding(t,n,r,i){const{ticks:{align:o,padding:a},position:s}=this.options,l=this.labelRotation!==0,c=s!=="top"&&this.axis==="x";if(this.isHorizontal()){const u=this.getPixelForTick(0)-this.left,f=this.right-this.getPixelForTick(this.ticks.length-1);let h=0,m=0;l?c?(h=i*t.width,m=r*n.height):(h=r*t.height,m=i*n.width):o==="start"?m=n.width:o==="end"?h=t.width:o!=="inner"&&(h=t.width/2,m=n.width/2),this.paddingLeft=Math.max((h-u+a)*this.width/(this.width-u),0),this.paddingRight=Math.max((m-f+a)*this.width/(this.width-f),0)}else{let u=n.height/2,f=t.height/2;o==="start"?(u=0,f=t.height):o==="end"&&(u=n.height,f=0),this.paddingTop=u+a,this.paddingBottom=f+a}}_handleMargins(){this._margins&&(this._margins.left=Math.max(this.paddingLeft,this._margins.left),this._margins.top=Math.max(this.paddingTop,this._margins.top),this._margins.right=Math.max(this.paddingRight,this._margins.right),this._margins.bottom=Math.max(this.paddingBottom,this._margins.bottom))}afterFit(){Xe(this.options.afterFit,[this])}isHorizontal(){const{axis:t,position:n}=this.options;return n==="top"||n==="bottom"||t==="x"}isFullSize(){return this.options.fullSize}_convertTicksToLabels(t){this.beforeTickToLabelConversion(),this.generateTickLabels(t);let n,r;for(n=0,r=t.length;n({width:a[O]||0,height:s[O]||0});return{first:_(0),last:_(n-1),widest:_(w),highest:_(E),widths:a,heights:s}}getLabelForValue(t){return t}getPixelForValue(t,n){return NaN}getValueForPixel(t){}getPixelForTick(t){const n=this.ticks;return t<0||t>n.length-1?null:this.getPixelForValue(n[t].value)}getPixelForDecimal(t){this._reversePixels&&(t=1-t);const n=this._startPixel+t*this._length;return Kz(this._alignToPixels?Ao(this.chart,n,0):n)}getDecimalForPixel(t){const n=(t-this._startPixel)/this._length;return this._reversePixels?1-n:n}getBasePixel(){return this.getPixelForValue(this.getBaseValue())}getBaseValue(){const{min:t,max:n}=this;return t<0&&n<0?n:t>0&&n>0?t:0}getContext(t){const n=this.ticks||[];if(t>=0&&ts*i?s/r:l/i:l*i0}_computeGridLineItems(t){const n=this.axis,r=this.chart,i=this.options,{grid:o,position:a,border:s}=i,l=o.offset,c=this.isHorizontal(),f=this.ticks.length+(l?1:0),h=tl(o),m=[],y=s.setContext(this.getContext()),v=y.display?y.width:0,b=v/2,p=function(A){return Ao(r,A,v)};let g,x,S,C,w,E,_,O,M,I,k,F;if(a==="top")g=p(this.bottom),E=this.bottom-h,O=g-b,I=p(t.top)+b,F=t.bottom;else if(a==="bottom")g=p(this.top),I=t.top,F=p(t.bottom)-b,E=g+b,O=this.top+h;else if(a==="left")g=p(this.right),w=this.right-h,_=g-b,M=p(t.left)+b,k=t.right;else if(a==="right")g=p(this.left),M=t.left,k=p(t.right)-b,w=g+b,_=this.left+h;else if(n==="x"){if(a==="center")g=p((t.top+t.bottom)/2+.5);else if(wt(a)){const A=Object.keys(a)[0],P=a[A];g=p(this.chart.scales[A].getPixelForValue(P))}I=t.top,F=t.bottom,E=g+b,O=E+h}else if(n==="y"){if(a==="center")g=p((t.left+t.right)/2);else if(wt(a)){const A=Object.keys(a)[0],P=a[A];g=p(this.chart.scales[A].getPixelForValue(P))}w=g-b,_=w-h,M=t.left,k=t.right}const j=it(i.ticks.maxTicksLimit,f),B=Math.max(1,Math.ceil(f/j));for(x=0;x0&&(ee-=W/2);break}H={left:ee,top:K,width:W+G.width,height:X+G.height,color:B.backdropColor}}b.push({label:S,font:O,textOffset:k,options:{rotation:v,color:P,strokeColor:R,strokeWidth:N,textAlign:D,textBaseline:F,translation:[C,w],backdrop:H}})}return b}_getXAxisLabelAlignment(){const{position:t,ticks:n}=this.options;if(-Xo(this.labelRotation))return t==="top"?"left":"right";let i="center";return n.align==="start"?i="left":n.align==="end"?i="right":n.align==="inner"&&(i="inner"),i}_getYAxisLabelAlignment(t){const{position:n,ticks:{crossAlign:r,mirror:i,padding:o}}=this.options,a=this._getLabelSizes(),s=t+o,l=a.widest.width;let c,u;return n==="left"?i?(u=this.right+o,r==="near"?c="left":r==="center"?(c="center",u+=l/2):(c="right",u+=l)):(u=this.right-s,r==="near"?c="right":r==="center"?(c="center",u-=l/2):(c="left",u=this.left)):n==="right"?i?(u=this.left+o,r==="near"?c="right":r==="center"?(c="center",u-=l/2):(c="left",u-=l)):(u=this.left+s,r==="near"?c="left":r==="center"?(c="center",u+=l/2):(c="right",u=this.right)):c="right",{textAlign:c,x:u}}_computeLabelArea(){if(this.options.ticks.mirror)return;const t=this.chart,n=this.options.position;if(n==="left"||n==="right")return{top:0,left:this.left,bottom:t.height,right:this.right};if(n==="top"||n==="bottom")return{top:this.top,left:0,bottom:this.bottom,right:t.width}}drawBackground(){const{ctx:t,options:{backgroundColor:n},left:r,top:i,width:o,height:a}=this;n&&(t.save(),t.fillStyle=n,t.fillRect(r,i,o,a),t.restore())}getLineWidthForValue(t){const n=this.options.grid;if(!this._isVisible()||!n.display)return 0;const i=this.ticks.findIndex(o=>o.value===t);return i>=0?n.setContext(this.getContext(i)).lineWidth:0}drawGrid(t){const n=this.options.grid,r=this.ctx,i=this._gridLineItems||(this._gridLineItems=this._computeGridLineItems(t));let o,a;const s=(l,c,u)=>{!u.width||!u.color||(r.save(),r.lineWidth=u.width,r.strokeStyle=u.color,r.setLineDash(u.borderDash||[]),r.lineDashOffset=u.borderDashOffset,r.beginPath(),r.moveTo(l.x,l.y),r.lineTo(c.x,c.y),r.stroke(),r.restore())};if(n.display)for(o=0,a=i.length;o{this.draw(o)}}]:[{z:r,draw:o=>{this.drawBackground(),this.drawGrid(o),this.drawTitle()}},{z:i,draw:()=>{this.drawBorder()}},{z:n,draw:o=>{this.drawLabels(o)}}]}getMatchingVisibleMetas(t){const n=this.chart.getSortedVisibleDatasetMetas(),r=this.axis+"AxisID",i=[];let o,a;for(o=0,a=n.length;o{const r=n.split("."),i=r.pop(),o=[e].concat(r).join("."),a=t[n].split("."),s=a.pop(),l=a.join(".");dn.route(o,i,l,s)})}function o6(e){return"id"in e&&"defaults"in e}class a6{constructor(){this.controllers=new Pu(Nl,"datasets",!0),this.elements=new Pu(ba,"elements"),this.plugins=new Pu(Object,"plugins"),this.scales=new Pu(Ns,"scales"),this._typedRegistries=[this.controllers,this.scales,this.elements]}add(...t){this._each("register",t)}remove(...t){this._each("unregister",t)}addControllers(...t){this._each("register",t,this.controllers)}addElements(...t){this._each("register",t,this.elements)}addPlugins(...t){this._each("register",t,this.plugins)}addScales(...t){this._each("register",t,this.scales)}getController(t){return this._get(t,this.controllers,"controller")}getElement(t){return this._get(t,this.elements,"element")}getPlugin(t){return this._get(t,this.plugins,"plugin")}getScale(t){return this._get(t,this.scales,"scale")}removeControllers(...t){this._each("unregister",t,this.controllers)}removeElements(...t){this._each("unregister",t,this.elements)}removePlugins(...t){this._each("unregister",t,this.plugins)}removeScales(...t){this._each("unregister",t,this.scales)}_each(t,n,r){[...n].forEach(i=>{const o=r||this._getRegistryForType(i);r||o.isForType(i)||o===this.plugins&&i.id?this._exec(t,o,i):at(i,a=>{const s=r||this._getRegistryForType(a);this._exec(t,s,a)})})}_exec(t,n,r){const i=u0(t);Xe(r["before"+i],[],r),n[t](r),Xe(r["after"+i],[],r)}_getRegistryForType(t){for(let n=0;no.filter(s=>!a.some(l=>s.plugin.id===l.plugin.id));this._notify(i(n,r),t,"stop"),this._notify(i(r,n),t,"start")}}function l6(e){const t={},n=[],r=Object.keys(hi.plugins.items);for(let o=0;o1&&Tx(e[0].toLowerCase());if(r)return r}throw new Error(`Cannot determine type of '${e}' axis. Please provide 'axis' or 'position' option.`)}function Rx(e,t,n){if(n[t+"AxisID"]===e)return{axis:t}}function m6(e,t){if(t.data&&t.data.datasets){const n=t.data.datasets.filter(r=>r.xAxisID===e||r.yAxisID===e);if(n.length)return Rx(e,"x",n[0])||Rx(e,"y",n[0])}return{}}function p6(e,t){const n=fa[e.type]||{scales:{}},r=t.scales||{},i=up(e.type,t),o=Object.create(null);return Object.keys(r).forEach(a=>{const s=r[a];if(!wt(s))return console.error(`Invalid scale configuration for scale: ${a}`);if(s._proxy)return console.warn(`Ignoring resolver passed as options for scale: ${a}`);const l=dp(a,s,m6(a,e),dn.scales[s.type]),c=h6(l,i),u=n.scales||{};o[a]=Ml(Object.create(null),[{axis:l},s,u[l],u[c]])}),e.data.datasets.forEach(a=>{const s=a.type||e.type,l=a.indexAxis||up(s,t),u=(fa[s]||{}).scales||{};Object.keys(u).forEach(f=>{const h=f6(f,l),m=a[h+"AxisID"]||h;o[m]=o[m]||Object.create(null),Ml(o[m],[{axis:h},r[m],u[f]])})}),Object.keys(o).forEach(a=>{const s=o[a];Ml(s,[dn.scales[s.type],dn.scale])}),o}function q$(e){const t=e.options||(e.options={});t.plugins=it(t.plugins,{}),t.scales=p6(e,t)}function X$(e){return e=e||{},e.datasets=e.datasets||[],e.labels=e.labels||[],e}function v6(e){return e=e||{},e.data=X$(e.data),q$(e),e}const Ix=new Map,Y$=new Set;function Mu(e,t){let n=Ix.get(e);return n||(n=t(),Ix.set(e,n),Y$.add(n)),n}const nl=(e,t,n)=>{const r=Ud(t,n);r!==void 0&&e.add(r)};class y6{constructor(t){this._config=v6(t),this._scopeCache=new Map,this._resolverCache=new Map}get platform(){return this._config.platform}get type(){return this._config.type}set type(t){this._config.type=t}get data(){return this._config.data}set data(t){this._config.data=X$(t)}get options(){return this._config.options}set options(t){this._config.options=t}get plugins(){return this._config.plugins}update(){const t=this._config;this.clearCache(),q$(t)}clearCache(){this._scopeCache.clear(),this._resolverCache.clear()}datasetScopeKeys(t){return Mu(t,()=>[[`datasets.${t}`,""]])}datasetAnimationScopeKeys(t,n){return Mu(`${t}.transition.${n}`,()=>[[`datasets.${t}.transitions.${n}`,`transitions.${n}`],[`datasets.${t}`,""]])}datasetElementScopeKeys(t,n){return Mu(`${t}-${n}`,()=>[[`datasets.${t}.elements.${n}`,`datasets.${t}`,`elements.${n}`,""]])}pluginScopeKeys(t){const n=t.id,r=this.type;return Mu(`${r}-plugin-${n}`,()=>[[`plugins.${n}`,...t.additionalOptionScopes||[]]])}_cachedScopes(t,n){const r=this._scopeCache;let i=r.get(t);return(!i||n)&&(i=new Map,r.set(t,i)),i}getOptionScopes(t,n,r){const{options:i,type:o}=this,a=this._cachedScopes(t,r),s=a.get(n);if(s)return s;const l=new Set;n.forEach(u=>{t&&(l.add(t),u.forEach(f=>nl(l,t,f))),u.forEach(f=>nl(l,i,f)),u.forEach(f=>nl(l,fa[o]||{},f)),u.forEach(f=>nl(l,dn,f)),u.forEach(f=>nl(l,sp,f))});const c=Array.from(l);return c.length===0&&c.push(Object.create(null)),Y$.has(n)&&a.set(n,c),c}chartOptionScopes(){const{options:t,type:n}=this;return[t,fa[n]||{},dn.datasets[n]||{},{type:n},dn,sp]}resolveNamedOptions(t,n,r,i=[""]){const o={$shared:!0},{resolver:a,subPrefixes:s}=kx(this._resolverCache,t,i);let l=a;if(x6(a,n)){o.$shared=!1,r=wo(r)?r():r;const c=this.createResolver(t,r,s);l=ws(a,r,c)}for(const c of n)o[c]=l[c];return o}createResolver(t,n,r=[""],i){const{resolver:o}=kx(this._resolverCache,t,r);return wt(n)?ws(o,n,void 0,i):o}}function kx(e,t,n){let r=e.get(t);r||(r=new Map,e.set(t,r));const i=n.join();let o=r.get(i);return o||(o={resolver:p0(t,n),subPrefixes:n.filter(s=>!s.toLowerCase().includes("hover"))},r.set(i,o)),o}const b6=e=>wt(e)&&Object.getOwnPropertyNames(e).some(t=>wo(e[t]));function x6(e,t){const{isScriptable:n,isIndexable:r}=k$(e);for(const i of t){const o=n(i),a=r(i),s=(a||o)&&e[i];if(o&&(wo(s)||b6(s))||a&&Rn(s))return!0}return!1}var S6="4.4.4";const C6=["top","bottom","left","right","chartArea"];function Nx(e,t){return e==="top"||e==="bottom"||C6.indexOf(e)===-1&&t==="x"}function Fx(e,t){return function(n,r){return n[e]===r[e]?n[t]-r[t]:n[e]-r[e]}}function Ax(e){const t=e.chart,n=t.options.animation;t.notifyPlugins("afterRender"),Xe(n&&n.onComplete,[e],t)}function w6(e){const t=e.chart,n=t.options.animation;Xe(n&&n.onProgress,[e],t)}function Q$(e){return b0()&&typeof e=="string"?e=document.getElementById(e):e&&e.length&&(e=e[0]),e&&e.canvas&&(e=e.canvas),e}const sd={},Lx=e=>{const t=Q$(e);return Object.values(sd).filter(n=>n.canvas===t).pop()};function E6(e,t,n){const r=Object.keys(e);for(const i of r){const o=+i;if(o>=t){const a=e[i];delete e[i],(n>0||o>t)&&(e[o+n]=a)}}}function _6(e,t,n,r){return!n||e.type==="mouseout"?null:r?t:e}function Tu(e,t,n){return e.options.clip?e[n]:t[n]}function $6(e,t){const{xScale:n,yScale:r}=e;return n&&r?{left:Tu(n,t,"left"),right:Tu(n,t,"right"),top:Tu(r,t,"top"),bottom:Tu(r,t,"bottom")}:t}var Ki;let Kf=(Ki=class{static register(...t){hi.add(...t),Dx()}static unregister(...t){hi.remove(...t),Dx()}constructor(t,n){const r=this.config=new y6(n),i=Q$(t),o=Lx(i);if(o)throw new Error("Canvas is already in use. Chart with ID '"+o.id+"' must be destroyed before the canvas with ID '"+o.canvas.id+"' can be reused.");const a=r.createResolver(r.chartOptionScopes(),this.getContext());this.platform=new(r.platform||V3(i)),this.platform.updateConfig(r);const s=this.platform.acquireContext(i,a.aspectRatio),l=s&&s.canvas,c=l&&l.height,u=l&&l.width;if(this.id=Iz(),this.ctx=s,this.canvas=l,this.width=u,this.height=c,this._options=a,this._aspectRatio=this.aspectRatio,this._layers=[],this._metasets=[],this._stacks=void 0,this.boxes=[],this.currentDevicePixelRatio=void 0,this.chartArea=void 0,this._active=[],this._lastEvent=void 0,this._listeners={},this._responsiveListeners=void 0,this._sortedMetasets=[],this.scales={},this._plugins=new s6,this.$proxies={},this._hiddenIndices={},this.attached=!1,this._animationsDisabled=void 0,this.$context=void 0,this._doResize=Zz(f=>this.update(f),a.resizeDelay||0),this._dataChanges=[],sd[this.id]=this,!s||!l){console.error("Failed to create chart: can't acquire context from the given item");return}_i.listen(this,"complete",Ax),_i.listen(this,"progress",w6),this._initialize(),this.attached&&this.update()}get aspectRatio(){const{options:{aspectRatio:t,maintainAspectRatio:n},width:r,height:i,_aspectRatio:o}=this;return on(t)?n&&o?o:i?r/i:null:t}get data(){return this.config.data}set data(t){this.config.data=t}get options(){return this._options}set options(t){this.config.options=t}get registry(){return hi}_initialize(){return this.notifyPlugins("beforeInit"),this.options.responsive?this.resize():lx(this,this.options.devicePixelRatio),this.bindEvents(),this.notifyPlugins("afterInit"),this}clear(){return ox(this.canvas,this.ctx),this}stop(){return _i.stop(this),this}resize(t,n){_i.running(this)?this._resizeBeforeDraw={width:t,height:n}:this._resize(t,n)}_resize(t,n){const r=this.options,i=this.canvas,o=r.maintainAspectRatio&&this.aspectRatio,a=this.platform.getMaximumSize(i,t,n,o),s=r.devicePixelRatio||this.platform.getDevicePixelRatio(),l=this.width?"resize":"attach";this.width=a.width,this.height=a.height,this._aspectRatio=this.aspectRatio,lx(this,s,!0)&&(this.notifyPlugins("resize",{size:a}),Xe(r.onResize,[this,a],this),this.attached&&this._doResize(l)&&this.render())}ensureScalesHaveIDs(){const n=this.options.scales||{};at(n,(r,i)=>{r.id=i})}buildOrUpdateScales(){const t=this.options,n=t.scales,r=this.scales,i=Object.keys(r).reduce((a,s)=>(a[s]=!1,a),{});let o=[];n&&(o=o.concat(Object.keys(n).map(a=>{const s=n[a],l=dp(a,s),c=l==="r",u=l==="x";return{options:s,dposition:c?"chartArea":u?"bottom":"left",dtype:c?"radialLinear":u?"category":"linear"}}))),at(o,a=>{const s=a.options,l=s.id,c=dp(l,s),u=it(s.type,a.dtype);(s.position===void 0||Nx(s.position,c)!==Nx(a.dposition))&&(s.position=a.dposition),i[l]=!0;let f=null;if(l in r&&r[l].type===u)f=r[l];else{const h=hi.getScale(u);f=new h({id:l,type:u,ctx:this.ctx,chart:this}),r[f.id]=f}f.init(s,t)}),at(i,(a,s)=>{a||delete r[s]}),at(r,a=>{Fr.configure(this,a,a.options),Fr.addBox(this,a)})}_updateMetasets(){const t=this._metasets,n=this.data.datasets.length,r=t.length;if(t.sort((i,o)=>i.index-o.index),r>n){for(let i=n;in.length&&delete this._stacks,t.forEach((r,i)=>{n.filter(o=>o===r._dataset).length===0&&this._destroyDatasetMeta(i)})}buildOrUpdateControllers(){const t=[],n=this.data.datasets;let r,i;for(this._removeUnreferencedMetasets(),r=0,i=n.length;r{this.getDatasetMeta(n).controller.reset()},this)}reset(){this._resetElements(),this.notifyPlugins("reset")}update(t){const n=this.config;n.update();const r=this._options=n.createResolver(n.chartOptionScopes(),this.getContext()),i=this._animationsDisabled=!r.animation;if(this._updateScales(),this._checkEventBindings(),this._updateHiddenIndices(),this._plugins.invalidate(),this.notifyPlugins("beforeUpdate",{mode:t,cancelable:!0})===!1)return;const o=this.buildOrUpdateControllers();this.notifyPlugins("beforeElementsUpdate");let a=0;for(let c=0,u=this.data.datasets.length;c{c.reset()}),this._updateDatasets(t),this.notifyPlugins("afterUpdate",{mode:t}),this._layers.sort(Fx("z","_idx"));const{_active:s,_lastEvent:l}=this;l?this._eventHandler(l,!0):s.length&&this._updateHoverStyles(s,s,!0),this.render()}_updateScales(){at(this.scales,t=>{Fr.removeBox(this,t)}),this.ensureScalesHaveIDs(),this.buildOrUpdateScales()}_checkEventBindings(){const t=this.options,n=new Set(Object.keys(this._listeners)),r=new Set(t.events);(!X1(n,r)||!!this._responsiveListeners!==t.responsive)&&(this.unbindEvents(),this.bindEvents())}_updateHiddenIndices(){const{_hiddenIndices:t}=this,n=this._getUniformDataChanges()||[];for(const{method:r,start:i,count:o}of n){const a=r==="_removeElements"?-o:o;E6(t,i,a)}}_getUniformDataChanges(){const t=this._dataChanges;if(!t||!t.length)return;this._dataChanges=[];const n=this.data.datasets.length,r=o=>new Set(t.filter(a=>a[0]===o).map((a,s)=>s+","+a.splice(1).join(","))),i=r(0);for(let o=1;oo.split(",")).map(o=>({method:o[1],start:+o[2],count:+o[3]}))}_updateLayout(t){if(this.notifyPlugins("beforeLayout",{cancelable:!0})===!1)return;Fr.update(this,this.width,this.height,t);const n=this.chartArea,r=n.width<=0||n.height<=0;this._layers=[],at(this.boxes,i=>{r&&i.position==="chartArea"||(i.configure&&i.configure(),this._layers.push(...i._layers()))},this),this._layers.forEach((i,o)=>{i._idx=o}),this.notifyPlugins("afterLayout")}_updateDatasets(t){if(this.notifyPlugins("beforeDatasetsUpdate",{mode:t,cancelable:!0})!==!1){for(let n=0,r=this.data.datasets.length;n=0;--n)this._drawDataset(t[n]);this.notifyPlugins("afterDatasetsDraw")}_drawDataset(t){const n=this.ctx,r=t._clip,i=!r.disabled,o=$6(t,this.chartArea),a={meta:t,index:t.index,cancelable:!0};this.notifyPlugins("beforeDatasetDraw",a)!==!1&&(i&&g0(n,{left:r.left===!1?0:o.left-r.left,right:r.right===!1?this.width:o.right+r.right,top:r.top===!1?0:o.top-r.top,bottom:r.bottom===!1?this.height:o.bottom+r.bottom}),t.controller.draw(),i&&m0(n),a.cancelable=!1,this.notifyPlugins("afterDatasetDraw",a))}isPointInArea(t){return bc(t,this.chartArea,this._minPadding)}getElementsAtEventForMode(t,n,r,i){const o=C3.modes[n];return typeof o=="function"?o(this,t,r,i):[]}getDatasetMeta(t){const n=this.data.datasets[t],r=this._metasets;let i=r.filter(o=>o&&o._dataset===n).pop();return i||(i={type:null,data:[],dataset:null,controller:null,hidden:null,xAxisID:null,yAxisID:null,order:n&&n.order||0,index:t,_dataset:n,_parsed:[],_sorted:!1},r.push(i)),i}getContext(){return this.$context||(this.$context=ya(null,{chart:this,type:"chart"}))}getVisibleDatasetCount(){return this.getSortedVisibleDatasetMetas().length}isDatasetVisible(t){const n=this.data.datasets[t];if(!n)return!1;const r=this.getDatasetMeta(t);return typeof r.hidden=="boolean"?!r.hidden:!n.hidden}setDatasetVisibility(t,n){const r=this.getDatasetMeta(t);r.hidden=!n}toggleDataVisibility(t){this._hiddenIndices[t]=!this._hiddenIndices[t]}getDataVisibility(t){return!this._hiddenIndices[t]}_updateVisibility(t,n,r){const i=r?"show":"hide",o=this.getDatasetMeta(t),a=o.controller._resolveAnimations(void 0,i);Gd(n)?(o.data[n].hidden=!r,this.update()):(this.setDatasetVisibility(t,r),a.update(o,{visible:r}),this.update(s=>s.datasetIndex===t?i:void 0))}hide(t,n){this._updateVisibility(t,n,!1)}show(t,n){this._updateVisibility(t,n,!0)}_destroyDatasetMeta(t){const n=this._metasets[t];n&&n.controller&&n.controller._destroy(),delete this._metasets[t]}_stop(){let t,n;for(this.stop(),_i.remove(this),t=0,n=this.data.datasets.length;t{n.addEventListener(this,o,a),t[o]=a},i=(o,a,s)=>{o.offsetX=a,o.offsetY=s,this._eventHandler(o)};at(this.options.events,o=>r(o,i))}bindResponsiveEvents(){this._responsiveListeners||(this._responsiveListeners={});const t=this._responsiveListeners,n=this.platform,r=(l,c)=>{n.addEventListener(this,l,c),t[l]=c},i=(l,c)=>{t[l]&&(n.removeEventListener(this,l,c),delete t[l])},o=(l,c)=>{this.canvas&&this.resize(l,c)};let a;const s=()=>{i("attach",s),this.attached=!0,this.resize(),r("resize",o),r("detach",a)};a=()=>{this.attached=!1,i("resize",o),this._stop(),this._resize(0,0),r("attach",s)},n.isAttached(this.canvas)?s():a()}unbindEvents(){at(this._listeners,(t,n)=>{this.platform.removeEventListener(this,n,t)}),this._listeners={},at(this._responsiveListeners,(t,n)=>{this.platform.removeEventListener(this,n,t)}),this._responsiveListeners=void 0}updateHoverStyle(t,n,r){const i=r?"set":"remove";let o,a,s,l;for(n==="dataset"&&(o=this.getDatasetMeta(t[0].datasetIndex),o.controller["_"+i+"DatasetHoverStyle"]()),s=0,l=t.length;s{const s=this.getDatasetMeta(o);if(!s)throw new Error("No dataset found at index "+o);return{datasetIndex:o,element:s.data[a],index:a}});!Vd(r,n)&&(this._active=r,this._lastEvent=null,this._updateHoverStyles(r,n))}notifyPlugins(t,n,r){return this._plugins.notify(this,t,n,r)}isPluginEnabled(t){return this._plugins._cache.filter(n=>n.plugin.id===t).length===1}_updateHoverStyles(t,n,r){const i=this.options.hover,o=(l,c)=>l.filter(u=>!c.some(f=>u.datasetIndex===f.datasetIndex&&u.index===f.index)),a=o(n,t),s=r?t:o(t,n);a.length&&this.updateHoverStyle(a,i.mode,!1),s.length&&i.mode&&this.updateHoverStyle(s,i.mode,!0)}_eventHandler(t,n){const r={event:t,replay:n,cancelable:!0,inChartArea:this.isPointInArea(t)},i=a=>(a.options.events||this.options.events).includes(t.native.type);if(this.notifyPlugins("beforeEvent",r,i)===!1)return;const o=this._handleEvent(t,n,r.inChartArea);return r.cancelable=!1,this.notifyPlugins("afterEvent",r,i),(o||r.changed)&&this.render(),this}_handleEvent(t,n,r){const{_active:i=[],options:o}=this,a=n,s=this._getActiveElements(t,i,r,a),l=Dz(t),c=_6(t,this._lastEvent,r,l);r&&(this._lastEvent=null,Xe(o.onHover,[t,s,this],this),l&&Xe(o.onClick,[t,s,this],this));const u=!Vd(s,i);return(u||n)&&(this._active=s,this._updateHoverStyles(s,i,n)),this._lastEvent=c,u}_getActiveElements(t,n,r,i){if(t.type==="mouseout")return[];if(!r)return n;const o=this.options.hover;return this.getElementsAtEventForMode(t,o.mode,o,i)}},tt(Ki,"defaults",dn),tt(Ki,"instances",sd),tt(Ki,"overrides",fa),tt(Ki,"registry",hi),tt(Ki,"version",S6),tt(Ki,"getChart",Lx),Ki);function Dx(){return at(Kf.instances,e=>e._plugins.invalidate())}function Z$(e,t,n=t){e.lineCap=it(n.borderCapStyle,t.borderCapStyle),e.setLineDash(it(n.borderDash,t.borderDash)),e.lineDashOffset=it(n.borderDashOffset,t.borderDashOffset),e.lineJoin=it(n.borderJoinStyle,t.borderJoinStyle),e.lineWidth=it(n.borderWidth,t.borderWidth),e.strokeStyle=it(n.borderColor,t.borderColor)}function O6(e,t,n){e.lineTo(n.x,n.y)}function P6(e){return e.stepped?dj:e.tension||e.cubicInterpolationMode==="monotone"?fj:O6}function J$(e,t,n={}){const r=e.length,{start:i=0,end:o=r-1}=n,{start:a,end:s}=t,l=Math.max(i,a),c=Math.min(o,s),u=is&&o>s;return{count:r,start:l,loop:t.loop,ilen:c(a+(c?s-S:S))%o,x=()=>{v!==b&&(e.lineTo(u,b),e.lineTo(u,v),e.lineTo(u,p))};for(l&&(m=i[g(0)],e.moveTo(m.x,m.y)),h=0;h<=s;++h){if(m=i[g(h)],m.skip)continue;const S=m.x,C=m.y,w=S|0;w===y?(Cb&&(b=C),u=(f*u+S)/++f):(x(),e.lineTo(S,C),y=w,f=0,v=b=C),p=C}x()}function fp(e){const t=e.options,n=t.borderDash&&t.borderDash.length;return!e._decimated&&!e._loop&&!t.tension&&t.cubicInterpolationMode!=="monotone"&&!t.stepped&&!n?T6:M6}function R6(e){return e.stepped?Uj:e.tension||e.cubicInterpolationMode==="monotone"?Gj:jo}function I6(e,t,n,r){let i=t._path;i||(i=t._path=new Path2D,t.path(i,n,r)&&i.closePath()),Z$(e,t.options),e.stroke(i)}function k6(e,t,n,r){const{segments:i,options:o}=t,a=fp(t);for(const s of i)Z$(e,o,s.style),e.beginPath(),a(e,t,s,{start:n,end:n+r-1})&&e.closePath(),e.stroke()}const N6=typeof Path2D=="function";function F6(e,t,n,r){N6&&!t.options.segment?I6(e,t,n,r):k6(e,t,n,r)}class fl extends ba{constructor(t){super(),this.animated=!0,this.options=void 0,this._chart=void 0,this._loop=void 0,this._fullLoop=void 0,this._path=void 0,this._points=void 0,this._segments=void 0,this._decimated=!1,this._pointsUpdated=!1,this._datasetIndex=void 0,t&&Object.assign(this,t)}updateControlPoints(t,n){const r=this.options;if((r.tension||r.cubicInterpolationMode==="monotone")&&!r.stepped&&!this._pointsUpdated){const i=r.spanGaps?this._loop:this._fullLoop;Lj(this._points,r,t,i,n),this._pointsUpdated=!0}}set points(t){this._points=t,delete this._segments,delete this._path,this._pointsUpdated=!1}get points(){return this._points}get segments(){return this._segments||(this._segments=e3(this,this.options.segment))}first(){const t=this.segments,n=this.points;return t.length&&n[t[0].start]}last(){const t=this.segments,n=this.points,r=t.length;return r&&n[t[r-1].end]}interpolate(t,n){const r=this.options,i=t[n],o=this.points,a=Qj(this,{property:n,start:i,end:i});if(!a.length)return;const s=[],l=R6(r);let c,u;for(c=0,u=a.length;ct!=="borderDash"&&t!=="fill"});function zx(e,t,n,r){const i=e.options,{[n]:o}=e.getProps([n],r);return Math.abs(t-o){let{boxHeight:n=t,boxWidth:r=t}=e;return e.usePointStyle&&(n=Math.min(n,t),r=e.pointStyleWidth||Math.min(r,t)),{boxWidth:r,boxHeight:n,itemHeight:Math.max(t,n)}},A6=(e,t)=>e!==null&&t!==null&&e.datasetIndex===t.datasetIndex&&e.index===t.index;class Bx extends ba{constructor(t){super(),this._added=!1,this.legendHitBoxes=[],this._hoveredItem=null,this.doughnutMode=!1,this.chart=t.chart,this.options=t.options,this.ctx=t.ctx,this.legendItems=void 0,this.columnSizes=void 0,this.lineWidths=void 0,this.maxHeight=void 0,this.maxWidth=void 0,this.top=void 0,this.bottom=void 0,this.left=void 0,this.right=void 0,this.height=void 0,this.width=void 0,this._margins=void 0,this.position=void 0,this.weight=void 0,this.fullSize=void 0}update(t,n,r){this.maxWidth=t,this.maxHeight=n,this._margins=r,this.setDimensions(),this.buildLabels(),this.fit()}setDimensions(){this.isHorizontal()?(this.width=this.maxWidth,this.left=this._margins.left,this.right=this.width):(this.height=this.maxHeight,this.top=this._margins.top,this.bottom=this.height)}buildLabels(){const t=this.options.labels||{};let n=Xe(t.generateLabels,[this.chart],this)||[];t.filter&&(n=n.filter(r=>t.filter(r,this.chart.data))),t.sort&&(n=n.sort((r,i)=>t.sort(r,i,this.chart.data))),this.options.reverse&&n.reverse(),this.legendItems=n}fit(){const{options:t,ctx:n}=this;if(!t.display){this.width=this.height=0;return}const r=t.labels,i=Kn(r.font),o=i.size,a=this._computeTitleHeight(),{boxWidth:s,itemHeight:l}=jx(r,o);let c,u;n.font=i.string,this.isHorizontal()?(c=this.maxWidth,u=this._fitRows(a,o,s,l)+10):(u=this.maxHeight,c=this._fitCols(a,i,s,l)+10),this.width=Math.min(c,t.maxWidth||this.maxWidth),this.height=Math.min(u,t.maxHeight||this.maxHeight)}_fitRows(t,n,r,i){const{ctx:o,maxWidth:a,options:{labels:{padding:s}}}=this,l=this.legendHitBoxes=[],c=this.lineWidths=[0],u=i+s;let f=t;o.textAlign="left",o.textBaseline="middle";let h=-1,m=-u;return this.legendItems.forEach((y,v)=>{const b=r+n/2+o.measureText(y.text).width;(v===0||c[c.length-1]+b+2*s>a)&&(f+=u,c[c.length-(v>0?0:1)]=0,m+=u,h++),l[v]={left:0,top:m,row:h,width:b,height:i},c[c.length-1]+=b+s}),f}_fitCols(t,n,r,i){const{ctx:o,maxHeight:a,options:{labels:{padding:s}}}=this,l=this.legendHitBoxes=[],c=this.columnSizes=[],u=a-t;let f=s,h=0,m=0,y=0,v=0;return this.legendItems.forEach((b,p)=>{const{itemWidth:g,itemHeight:x}=L6(r,n,o,b,i);p>0&&m+x+2*s>u&&(f+=h+s,c.push({width:h,height:m}),y+=h+s,v++,h=m=0),l[p]={left:y,top:m,col:v,width:g,height:x},h=Math.max(h,g),m+=x+s}),f+=h,c.push({width:h,height:m}),f}adjustHitBoxes(){if(!this.options.display)return;const t=this._computeTitleHeight(),{legendHitBoxes:n,options:{align:r,labels:{padding:i},rtl:o}}=this,a=ls(o,this.left,this.width);if(this.isHorizontal()){let s=0,l=Wn(r,this.left+i,this.right-this.lineWidths[s]);for(const c of n)s!==c.row&&(s=c.row,l=Wn(r,this.left+i,this.right-this.lineWidths[s])),c.top+=this.top+t+i,c.left=a.leftForLtr(a.x(l),c.width),l+=c.width+i}else{let s=0,l=Wn(r,this.top+t+i,this.bottom-this.columnSizes[s].height);for(const c of n)c.col!==s&&(s=c.col,l=Wn(r,this.top+t+i,this.bottom-this.columnSizes[s].height)),c.top=l,c.left+=this.left+i,c.left=a.leftForLtr(a.x(c.left),c.width),l+=c.height+i}}isHorizontal(){return this.options.position==="top"||this.options.position==="bottom"}draw(){if(this.options.display){const t=this.ctx;g0(t,this),this._draw(),m0(t)}}_draw(){const{options:t,columnSizes:n,lineWidths:r,ctx:i}=this,{align:o,labels:a}=t,s=dn.color,l=ls(t.rtl,this.left,this.width),c=Kn(a.font),{padding:u}=a,f=c.size,h=f/2;let m;this.drawTitle(),i.textAlign=l.textAlign("left"),i.textBaseline="middle",i.lineWidth=.5,i.font=c.string;const{boxWidth:y,boxHeight:v,itemHeight:b}=jx(a,f),p=function(w,E,_){if(isNaN(y)||y<=0||isNaN(v)||v<0)return;i.save();const O=it(_.lineWidth,1);if(i.fillStyle=it(_.fillStyle,s),i.lineCap=it(_.lineCap,"butt"),i.lineDashOffset=it(_.lineDashOffset,0),i.lineJoin=it(_.lineJoin,"miter"),i.lineWidth=O,i.strokeStyle=it(_.strokeStyle,s),i.setLineDash(it(_.lineDash,[])),a.usePointStyle){const M={radius:v*Math.SQRT2/2,pointStyle:_.pointStyle,rotation:_.rotation,borderWidth:O},I=l.xPlus(w,y/2),k=E+h;R$(i,M,I,k,a.pointStyleWidth&&y)}else{const M=E+Math.max((f-v)/2,0),I=l.leftForLtr(w,y),k=kl(_.borderRadius);i.beginPath(),Object.values(k).some(F=>F!==0)?cp(i,{x:I,y:M,w:y,h:v,radius:k}):i.rect(I,M,y,v),i.fill(),O!==0&&i.stroke()}i.restore()},g=function(w,E,_){xc(i,_.text,w,E+b/2,c,{strikethrough:_.hidden,textAlign:l.textAlign(_.textAlign)})},x=this.isHorizontal(),S=this._computeTitleHeight();x?m={x:Wn(o,this.left+u,this.right-r[0]),y:this.top+u+S,line:0}:m={x:this.left+u,y:Wn(o,this.top+S+u,this.bottom-n[0].height),line:0},D$(this.ctx,t.textDirection);const C=b+u;this.legendItems.forEach((w,E)=>{i.strokeStyle=w.fontColor,i.fillStyle=w.fontColor;const _=i.measureText(w.text).width,O=l.textAlign(w.textAlign||(w.textAlign=a.textAlign)),M=y+h+_;let I=m.x,k=m.y;l.setWidth(this.width),x?E>0&&I+M+u>this.right&&(k=m.y+=C,m.line++,I=m.x=Wn(o,this.left+u,this.right-r[m.line])):E>0&&k+C>this.bottom&&(I=m.x=I+n[m.line].width+u,m.line++,k=m.y=Wn(o,this.top+S+u,this.bottom-n[m.line].height));const F=l.x(I);if(p(F,k,w),I=Jz(O,I+y+h,x?I+M:this.right,t.rtl),g(l.x(I),k,w),x)m.x+=M+u;else if(typeof w.text!="string"){const j=c.lineHeight;m.y+=e2(w,j)+u}else m.y+=C}),z$(this.ctx,t.textDirection)}drawTitle(){const t=this.options,n=t.title,r=Kn(n.font),i=Hr(n.padding);if(!n.display)return;const o=ls(t.rtl,this.left,this.width),a=this.ctx,s=n.position,l=r.size/2,c=i.top+l;let u,f=this.left,h=this.width;if(this.isHorizontal())h=Math.max(...this.lineWidths),u=this.top+c,f=Wn(t.align,f,this.right-h);else{const y=this.columnSizes.reduce((v,b)=>Math.max(v,b.height),0);u=c+Wn(t.align,this.top,this.bottom-y-t.labels.padding-this._computeTitleHeight())}const m=Wn(s,f,f+h);a.textAlign=o.textAlign(f0(s)),a.textBaseline="middle",a.strokeStyle=n.color,a.fillStyle=n.color,a.font=r.string,xc(a,n.text,m,u,r)}_computeTitleHeight(){const t=this.options.title,n=Kn(t.font),r=Hr(t.padding);return t.display?n.lineHeight+r.height:0}_getLegendItemAt(t,n){let r,i,o;if(ul(t,this.left,this.right)&&ul(n,this.top,this.bottom)){for(o=this.legendHitBoxes,r=0;ro.length>a.length?o:a)),t+n.size/2+r.measureText(i).width}function z6(e,t,n){let r=e;return typeof t.text!="string"&&(r=e2(t,n)),r}function e2(e,t){const n=e.text?e.text.length:0;return t*n}function j6(e,t){return!!((e==="mousemove"||e==="mouseout")&&(t.onHover||t.onLeave)||t.onClick&&(e==="click"||e==="mouseup"))}var B6={id:"legend",_element:Bx,start(e,t,n){const r=e.legend=new Bx({ctx:e.ctx,options:n,chart:e});Fr.configure(e,r,n),Fr.addBox(e,r)},stop(e){Fr.removeBox(e,e.legend),delete e.legend},beforeUpdate(e,t,n){const r=e.legend;Fr.configure(e,r,n),r.options=n},afterUpdate(e){const t=e.legend;t.buildLabels(),t.adjustHitBoxes()},afterEvent(e,t){t.replay||e.legend.handleEvent(t.event)},defaults:{display:!0,position:"top",align:"center",fullSize:!0,reverse:!1,weight:1e3,onClick(e,t,n){const r=t.datasetIndex,i=n.chart;i.isDatasetVisible(r)?(i.hide(r),t.hidden=!0):(i.show(r),t.hidden=!1)},onHover:null,onLeave:null,labels:{color:e=>e.chart.options.color,boxWidth:40,padding:10,generateLabels(e){const t=e.data.datasets,{labels:{usePointStyle:n,pointStyle:r,textAlign:i,color:o,useBorderRadius:a,borderRadius:s}}=e.legend.options;return e._getSortedDatasetMetas().map(l=>{const c=l.controller.getStyle(n?0:void 0),u=Hr(c.borderWidth);return{text:t[l.index].label,fillStyle:c.backgroundColor,fontColor:o,hidden:!l.visible,lineCap:c.borderCapStyle,lineDash:c.borderDash,lineDashOffset:c.borderDashOffset,lineJoin:c.borderJoinStyle,lineWidth:(u.width+u.height)/4,strokeStyle:c.borderColor,pointStyle:r||c.pointStyle,rotation:c.rotation,textAlign:i||c.textAlign,borderRadius:a&&(s||c.borderRadius),datasetIndex:l.index}},this)}},title:{color:e=>e.chart.options.color,display:!1,position:"center",text:""}},descriptors:{_scriptable:e=>!e.startsWith("on"),labels:{_scriptable:e=>!["generateLabels","filter","sort"].includes(e)}}};class t2 extends ba{constructor(t){super(),this.chart=t.chart,this.options=t.options,this.ctx=t.ctx,this._padding=void 0,this.top=void 0,this.bottom=void 0,this.left=void 0,this.right=void 0,this.width=void 0,this.height=void 0,this.position=void 0,this.weight=void 0,this.fullSize=void 0}update(t,n){const r=this.options;if(this.left=0,this.top=0,!r.display){this.width=this.height=this.right=this.bottom=0;return}this.width=this.right=t,this.height=this.bottom=n;const i=Rn(r.text)?r.text.length:1;this._padding=Hr(r.padding);const o=i*Kn(r.font).lineHeight+this._padding.height;this.isHorizontal()?this.height=o:this.width=o}isHorizontal(){const t=this.options.position;return t==="top"||t==="bottom"}_drawArgs(t){const{top:n,left:r,bottom:i,right:o,options:a}=this,s=a.align;let l=0,c,u,f;return this.isHorizontal()?(u=Wn(s,r,o),f=n+t,c=o-r):(a.position==="left"?(u=r+t,f=Wn(s,i,n),l=Fn*-.5):(u=o-t,f=Wn(s,n,i),l=Fn*.5),c=i-n),{titleX:u,titleY:f,maxWidth:c,rotation:l}}draw(){const t=this.ctx,n=this.options;if(!n.display)return;const r=Kn(n.font),o=r.lineHeight/2+this._padding.top,{titleX:a,titleY:s,maxWidth:l,rotation:c}=this._drawArgs(o);xc(t,n.text,0,0,r,{color:n.color,maxWidth:l,rotation:c,textAlign:f0(n.align),textBaseline:"middle",translation:[a,s]})}}function H6(e,t){const n=new t2({ctx:e.ctx,options:t,chart:e});Fr.configure(e,n,t),Fr.addBox(e,n),e.titleBlock=n}var V6={id:"title",_element:t2,start(e,t,n){H6(e,n)},stop(e){const t=e.titleBlock;Fr.removeBox(e,t),delete e.titleBlock},beforeUpdate(e,t,n){const r=e.titleBlock;Fr.configure(e,r,n),r.options=n},defaults:{align:"center",display:!1,font:{weight:"bold"},fullSize:!0,padding:10,position:"top",text:"",weight:2e3},defaultRoutes:{color:"color"},descriptors:{_scriptable:!0,_indexable:!1}};const hl={average(e){if(!e.length)return!1;let t,n,r=new Set,i=0,o=0;for(t=0,n=e.length;ts+l)/r.size,y:i/o}},nearest(e,t){if(!e.length)return!1;let n=t.x,r=t.y,i=Number.POSITIVE_INFINITY,o,a,s;for(o=0,a=e.length;o-1?e.split(` -`):e}function W6(e,t){const{element:n,datasetIndex:r,index:i}=t,o=e.getDatasetMeta(r).controller,{label:a,value:s}=o.getLabelAndValue(i);return{chart:e,label:a,parsed:o.getParsed(i),raw:e.data.datasets[r].data[i],formattedValue:s,dataset:o.getDataset(),dataIndex:i,datasetIndex:r,element:n}}function Hx(e,t){const n=e.chart.ctx,{body:r,footer:i,title:o}=e,{boxWidth:a,boxHeight:s}=t,l=Kn(t.bodyFont),c=Kn(t.titleFont),u=Kn(t.footerFont),f=o.length,h=i.length,m=r.length,y=Hr(t.padding);let v=y.height,b=0,p=r.reduce((S,C)=>S+C.before.length+C.lines.length+C.after.length,0);if(p+=e.beforeBody.length+e.afterBody.length,f&&(v+=f*c.lineHeight+(f-1)*t.titleSpacing+t.titleMarginBottom),p){const S=t.displayColors?Math.max(s,l.lineHeight):l.lineHeight;v+=m*S+(p-m)*l.lineHeight+(p-1)*t.bodySpacing}h&&(v+=t.footerMarginTop+h*u.lineHeight+(h-1)*t.footerSpacing);let g=0;const x=function(S){b=Math.max(b,n.measureText(S).width+g)};return n.save(),n.font=c.string,at(e.title,x),n.font=l.string,at(e.beforeBody.concat(e.afterBody),x),g=t.displayColors?a+2+t.boxPadding:0,at(r,S=>{at(S.before,x),at(S.lines,x),at(S.after,x)}),g=0,n.font=u.string,at(e.footer,x),n.restore(),b+=y.width,{width:b,height:v}}function U6(e,t){const{y:n,height:r}=t;return ne.height-r/2?"bottom":"center"}function G6(e,t,n,r){const{x:i,width:o}=r,a=n.caretSize+n.caretPadding;if(e==="left"&&i+o+a>t.width||e==="right"&&i-o-a<0)return!0}function K6(e,t,n,r){const{x:i,width:o}=n,{width:a,chartArea:{left:s,right:l}}=e;let c="center";return r==="center"?c=i<=(s+l)/2?"left":"right":i<=o/2?c="left":i>=a-o/2&&(c="right"),G6(c,e,t,n)&&(c="center"),c}function Vx(e,t,n){const r=n.yAlign||t.yAlign||U6(e,n);return{xAlign:n.xAlign||t.xAlign||K6(e,t,n,r),yAlign:r}}function q6(e,t){let{x:n,width:r}=e;return t==="right"?n-=r:t==="center"&&(n-=r/2),n}function X6(e,t,n){let{y:r,height:i}=e;return t==="top"?r+=n:t==="bottom"?r-=i+n:r-=i/2,r}function Wx(e,t,n,r){const{caretSize:i,caretPadding:o,cornerRadius:a}=e,{xAlign:s,yAlign:l}=n,c=i+o,{topLeft:u,topRight:f,bottomLeft:h,bottomRight:m}=kl(a);let y=q6(t,s);const v=X6(t,l,c);return l==="center"?s==="left"?y+=c:s==="right"&&(y-=c):s==="left"?y-=Math.max(u,h)+i:s==="right"&&(y+=Math.max(f,m)+i),{x:Nr(y,0,r.width-t.width),y:Nr(v,0,r.height-t.height)}}function Ru(e,t,n){const r=Hr(n.padding);return t==="center"?e.x+e.width/2:t==="right"?e.x+e.width-r.right:e.x+r.left}function Ux(e){return di([],$i(e))}function Y6(e,t,n){return ya(e,{tooltip:t,tooltipItems:n,type:"tooltip"})}function Gx(e,t){const n=t&&t.dataset&&t.dataset.tooltip&&t.dataset.tooltip.callbacks;return n?e.override(n):e}const n2={beforeTitle:Ei,title(e){if(e.length>0){const t=e[0],n=t.chart.data.labels,r=n?n.length:0;if(this&&this.options&&this.options.mode==="dataset")return t.dataset.label||"";if(t.label)return t.label;if(r>0&&t.dataIndex"u"?n2[t].call(n,r):i}class gp extends ba{constructor(t){super(),this.opacity=0,this._active=[],this._eventPosition=void 0,this._size=void 0,this._cachedAnimations=void 0,this._tooltipItems=[],this.$animations=void 0,this.$context=void 0,this.chart=t.chart,this.options=t.options,this.dataPoints=void 0,this.title=void 0,this.beforeBody=void 0,this.body=void 0,this.afterBody=void 0,this.footer=void 0,this.xAlign=void 0,this.yAlign=void 0,this.x=void 0,this.y=void 0,this.height=void 0,this.width=void 0,this.caretX=void 0,this.caretY=void 0,this.labelColors=void 0,this.labelPointStyles=void 0,this.labelTextColors=void 0}initialize(t){this.options=t,this._cachedAnimations=void 0,this.$context=void 0}_resolveAnimations(){const t=this._cachedAnimations;if(t)return t;const n=this.chart,r=this.options.setContext(this.getContext()),i=r.enabled&&n.options.animation&&r.animations,o=new B$(this.chart,i);return i._cacheable&&(this._cachedAnimations=Object.freeze(o)),o}getContext(){return this.$context||(this.$context=Y6(this.chart.getContext(),this,this._tooltipItems))}getTitle(t,n){const{callbacks:r}=n,i=ir(r,"beforeTitle",this,t),o=ir(r,"title",this,t),a=ir(r,"afterTitle",this,t);let s=[];return s=di(s,$i(i)),s=di(s,$i(o)),s=di(s,$i(a)),s}getBeforeBody(t,n){return Ux(ir(n.callbacks,"beforeBody",this,t))}getBody(t,n){const{callbacks:r}=n,i=[];return at(t,o=>{const a={before:[],lines:[],after:[]},s=Gx(r,o);di(a.before,$i(ir(s,"beforeLabel",this,o))),di(a.lines,ir(s,"label",this,o)),di(a.after,$i(ir(s,"afterLabel",this,o))),i.push(a)}),i}getAfterBody(t,n){return Ux(ir(n.callbacks,"afterBody",this,t))}getFooter(t,n){const{callbacks:r}=n,i=ir(r,"beforeFooter",this,t),o=ir(r,"footer",this,t),a=ir(r,"afterFooter",this,t);let s=[];return s=di(s,$i(i)),s=di(s,$i(o)),s=di(s,$i(a)),s}_createItems(t){const n=this._active,r=this.chart.data,i=[],o=[],a=[];let s=[],l,c;for(l=0,c=n.length;lt.filter(u,f,h,r))),t.itemSort&&(s=s.sort((u,f)=>t.itemSort(u,f,r))),at(s,u=>{const f=Gx(t.callbacks,u);i.push(ir(f,"labelColor",this,u)),o.push(ir(f,"labelPointStyle",this,u)),a.push(ir(f,"labelTextColor",this,u))}),this.labelColors=i,this.labelPointStyles=o,this.labelTextColors=a,this.dataPoints=s,s}update(t,n){const r=this.options.setContext(this.getContext()),i=this._active;let o,a=[];if(!i.length)this.opacity!==0&&(o={opacity:0});else{const s=hl[r.position].call(this,i,this._eventPosition);a=this._createItems(r),this.title=this.getTitle(a,r),this.beforeBody=this.getBeforeBody(a,r),this.body=this.getBody(a,r),this.afterBody=this.getAfterBody(a,r),this.footer=this.getFooter(a,r);const l=this._size=Hx(this,r),c=Object.assign({},s,l),u=Vx(this.chart,r,c),f=Wx(r,c,u,this.chart);this.xAlign=u.xAlign,this.yAlign=u.yAlign,o={opacity:1,x:f.x,y:f.y,width:l.width,height:l.height,caretX:s.x,caretY:s.y}}this._tooltipItems=a,this.$context=void 0,o&&this._resolveAnimations().update(this,o),t&&r.external&&r.external.call(this,{chart:this.chart,tooltip:this,replay:n})}drawCaret(t,n,r,i){const o=this.getCaretPosition(t,r,i);n.lineTo(o.x1,o.y1),n.lineTo(o.x2,o.y2),n.lineTo(o.x3,o.y3)}getCaretPosition(t,n,r){const{xAlign:i,yAlign:o}=this,{caretSize:a,cornerRadius:s}=r,{topLeft:l,topRight:c,bottomLeft:u,bottomRight:f}=kl(s),{x:h,y:m}=t,{width:y,height:v}=n;let b,p,g,x,S,C;return o==="center"?(S=m+v/2,i==="left"?(b=h,p=b-a,x=S+a,C=S-a):(b=h+y,p=b+a,x=S-a,C=S+a),g=b):(i==="left"?p=h+Math.max(l,u)+a:i==="right"?p=h+y-Math.max(c,f)-a:p=this.caretX,o==="top"?(x=m,S=x-a,b=p-a,g=p+a):(x=m+v,S=x+a,b=p+a,g=p-a),C=x),{x1:b,x2:p,x3:g,y1:x,y2:S,y3:C}}drawTitle(t,n,r){const i=this.title,o=i.length;let a,s,l;if(o){const c=ls(r.rtl,this.x,this.width);for(t.x=Ru(this,r.titleAlign,r),n.textAlign=c.textAlign(r.titleAlign),n.textBaseline="middle",a=Kn(r.titleFont),s=r.titleSpacing,n.fillStyle=r.titleColor,n.font=a.string,l=0;lg!==0)?(t.beginPath(),t.fillStyle=o.multiKeyBackground,up(t,{x:v,y,w:c,h:l,radius:p}),t.fill(),t.stroke(),t.fillStyle=a.backgroundColor,t.beginPath(),up(t,{x:b,y:y+1,w:c-2,h:l-2,radius:p}),t.fill()):(t.fillStyle=o.multiKeyBackground,t.fillRect(v,y,c,l),t.strokeRect(v,y,c,l),t.fillStyle=a.backgroundColor,t.fillRect(b,y+1,c-2,l-2))}t.fillStyle=this.labelTextColors[r]}drawBody(t,n,r){const{body:i}=this,{bodySpacing:o,bodyAlign:a,displayColors:s,boxHeight:l,boxWidth:c,boxPadding:u}=r,f=Kn(r.bodyFont);let h=f.lineHeight,m=0;const y=ls(r.rtl,this.x,this.width),v=function(_){n.fillText(_,y.x(t.x+m),t.y+h/2),t.y+=h+o},b=y.textAlign(a);let p,g,x,S,C,w,E;for(n.textAlign=a,n.textBaseline="middle",n.font=f.string,t.x=Ru(this,b,r),n.fillStyle=r.bodyColor,at(this.beforeBody,v),m=s&&b!=="right"?a==="center"?c/2+u:c+2+u:0,S=0,w=i.length;S0&&n.stroke()}_updateAnimationTarget(t){const n=this.chart,r=this.$animations,i=r&&r.x,o=r&&r.y;if(i||o){const a=hl[t.position].call(this,this._active,this._eventPosition);if(!a)return;const s=this._size=Hx(this,t),l=Object.assign({},a,this._size),c=Vx(n,t,l),u=Wx(t,l,c,n);(i._to!==u.x||o._to!==u.y)&&(this.xAlign=c.xAlign,this.yAlign=c.yAlign,this.width=s.width,this.height=s.height,this.caretX=a.x,this.caretY=a.y,this._resolveAnimations().update(this,u))}}_willRender(){return!!this.opacity}draw(t){const n=this.options.setContext(this.getContext());let r=this.opacity;if(!r)return;this._updateAnimationTarget(n);const i={width:this.width,height:this.height},o={x:this.x,y:this.y};r=Math.abs(r)<.001?0:r;const a=Hr(n.padding),s=this.title.length||this.beforeBody.length||this.body.length||this.afterBody.length||this.footer.length;n.enabled&&s&&(t.save(),t.globalAlpha=r,this.drawBackground(o,t,i,n),D$(t,n.textDirection),o.y+=a.top,this.drawTitle(o,t,n),this.drawBody(o,t,n),this.drawFooter(o,t,n),z$(t,n.textDirection),t.restore())}getActiveElements(){return this._active||[]}setActiveElements(t,n){const r=this._active,i=t.map(({datasetIndex:s,index:l})=>{const c=this.chart.getDatasetMeta(s);if(!c)throw new Error("Cannot find a dataset at index "+s);return{datasetIndex:s,element:c.data[l],index:l}}),o=!Wd(r,i),a=this._positionChanged(i,n);(o||a)&&(this._active=i,this._eventPosition=n,this._ignoreReplayEvents=!0,this.update(!0))}handleEvent(t,n,r=!0){if(n&&this._ignoreReplayEvents)return!1;this._ignoreReplayEvents=!1;const i=this.options,o=this._active||[],a=this._getActiveElements(t,o,n,r),s=this._positionChanged(a,t),l=n||!Wd(a,o)||s;return l&&(this._active=a,(i.enabled||i.external)&&(this._eventPosition={x:t.x,y:t.y},this.update(!0,n))),l}_getActiveElements(t,n,r,i){const o=this.options;if(t.type==="mouseout")return[];if(!i)return n.filter(s=>this.chart.data.datasets[s.datasetIndex]&&this.chart.getDatasetMeta(s.datasetIndex).controller.getParsed(s.index)!==void 0);const a=this.chart.getElementsAtEventForMode(t,o.mode,o,r);return o.reverse&&a.reverse(),a}_positionChanged(t,n){const{caretX:r,caretY:i,options:o}=this,a=hl[o.position].call(this,t,n);return a!==!1&&(r!==a.x||i!==a.y)}}tt(gp,"positioners",hl);var Q6={id:"tooltip",_element:gp,positioners:hl,afterInit(e,t,n){n&&(e.tooltip=new gp({chart:e,options:n}))},beforeUpdate(e,t,n){e.tooltip&&e.tooltip.initialize(n)},reset(e,t,n){e.tooltip&&e.tooltip.initialize(n)},afterDraw(e){const t=e.tooltip;if(t&&t._willRender()){const n={tooltip:t};if(e.notifyPlugins("beforeTooltipDraw",{...n,cancelable:!0})===!1)return;t.draw(e.ctx),e.notifyPlugins("afterTooltipDraw",n)}},afterEvent(e,t){if(e.tooltip){const n=t.replay;e.tooltip.handleEvent(t.event,n,t.inChartArea)&&(t.changed=!0)}},defaults:{enabled:!0,external:null,position:"average",backgroundColor:"rgba(0,0,0,0.8)",titleColor:"#fff",titleFont:{weight:"bold"},titleSpacing:2,titleMarginBottom:6,titleAlign:"left",bodyColor:"#fff",bodySpacing:2,bodyFont:{},bodyAlign:"left",footerColor:"#fff",footerSpacing:2,footerMarginTop:6,footerFont:{weight:"bold"},footerAlign:"left",padding:6,caretPadding:2,caretSize:5,cornerRadius:6,boxHeight:(e,t)=>t.bodyFont.size,boxWidth:(e,t)=>t.bodyFont.size,multiKeyBackground:"#fff",displayColors:!0,boxPadding:0,borderColor:"rgba(0,0,0,0)",borderWidth:0,animation:{duration:400,easing:"easeOutQuart"},animations:{numbers:{type:"number",properties:["x","y","width","height","caretX","caretY"]},opacity:{easing:"linear",duration:200}},callbacks:n2},defaultRoutes:{bodyFont:"font",footerFont:"font",titleFont:"font"},descriptors:{_scriptable:e=>e!=="filter"&&e!=="itemSort"&&e!=="external",_indexable:!1,callbacks:{_scriptable:!1,_indexable:!1},animation:{_fallback:!1},animations:{_fallback:"animation"}},additionalOptionScopes:["interaction"]};const Z6=(e,t,n,r)=>(typeof t=="string"?(n=e.push(t)-1,r.unshift({index:n,label:t})):isNaN(t)&&(n=null),n);function J6(e,t,n,r){const i=e.indexOf(t);if(i===-1)return Z6(e,t,n,r);const o=e.lastIndexOf(t);return i!==o?n:i}const eB=(e,t)=>e===null?null:Nr(Math.round(e),0,t);function Kx(e){const t=this.getLabels();return e>=0&&en.length-1?null:this.getPixelForValue(n[t].value)}getValueForPixel(t){return Math.round(this._startValue+this.getDecimalForPixel(t)*this._valueRange)}getBasePixel(){return this.bottom}}tt(mp,"id","category"),tt(mp,"defaults",{ticks:{callback:Kx}});function tB(e,t){const n=[],{bounds:i,step:o,min:a,max:s,precision:l,count:c,maxTicks:u,maxDigits:f,includeBounds:h}=e,m=o||1,y=u-1,{min:v,max:b}=t,p=!on(a),g=!on(s),x=!on(c),S=(b-v)/(f+1);let C=Q1((b-v)/y/m)*m,w,E,_,O;if(C<1e-14&&!p&&!g)return[{value:v},{value:b}];O=Math.ceil(b/C)-Math.floor(v/C),O>y&&(C=Q1(O*C/y/m)*m),on(l)||(w=Math.pow(10,l),C=Math.ceil(C*w)/w),i==="ticks"?(E=Math.floor(v/C)*C,_=Math.ceil(b/C)*C):(E=v,_=b),p&&g&&o&&Hz((s-a)/o,C/1e3)?(O=Math.round(Math.min((s-a)/C,u)),C=(s-a)/O,E=a,_=s):x?(E=p?a:E,_=g?s:_,O=c-1,C=(_-E)/O):(O=(_-E)/C,Tl(O,Math.round(O),C/1e3)?O=Math.round(O):O=Math.ceil(O));const M=Math.max(Z1(C),Z1(E));w=Math.pow(10,on(l)?M:l),E=Math.round(E*w)/w,_=Math.round(_*w)/w;let I=0;for(p&&(h&&E!==a?(n.push({value:a}),Es)break;n.push({value:k})}return g&&h&&_!==s?n.length&&Tl(n[n.length-1].value,s,qx(s,S,e))?n[n.length-1].value=s:n.push({value:s}):(!g||_===s)&&n.push({value:_}),n}function qx(e,t,{horizontal:n,minRotation:r}){const i=Xo(r),o=(n?Math.sin(i):Math.cos(i))||.001,a=.75*t*(""+e).length;return Math.min(t/o,a)}class nB extends Ns{constructor(t){super(t),this.start=void 0,this.end=void 0,this._startValue=void 0,this._endValue=void 0,this._valueRange=0}parse(t,n){return on(t)||(typeof t=="number"||t instanceof Number)&&!isFinite(+t)?null:+t}handleTickRangeOptions(){const{beginAtZero:t}=this.options,{minDefined:n,maxDefined:r}=this.getUserBounds();let{min:i,max:o}=this;const a=l=>i=n?i:l,s=l=>o=r?o:l;if(t){const l=Eo(i),c=Eo(o);l<0&&c<0?s(0):l>0&&c>0&&a(0)}if(i===o){let l=o===0?1:Math.abs(o*.05);s(o+l),t||a(i-l)}this.min=i,this.max=o}getTickLimit(){const t=this.options.ticks;let{maxTicksLimit:n,stepSize:r}=t,i;return r?(i=Math.ceil(this.max/r)-Math.floor(this.min/r)+1,i>1e3&&(console.warn(`scales.${this.id}.ticks.stepSize: ${r} would result generating up to ${i} ticks. Limiting to 1000.`),i=1e3)):(i=this.computeTickLimit(),n=n||11),n&&(i=Math.min(n,i)),i}computeTickLimit(){return Number.POSITIVE_INFINITY}buildTicks(){const t=this.options,n=t.ticks;let r=this.getTickLimit();r=Math.max(2,r);const i={maxTicks:r,bounds:t.bounds,min:t.min,max:t.max,precision:n.precision,step:n.stepSize,count:n.count,maxDigits:this._maxDigits(),horizontal:this.isHorizontal(),minRotation:n.minRotation||0,includeBounds:n.includeBounds!==!1},o=this._range||this,a=tB(i,o);return t.bounds==="ticks"&&Vz(a,this,"value"),t.reverse?(a.reverse(),this.start=this.max,this.end=this.min):(this.start=this.min,this.end=this.max),a}configure(){const t=this.ticks;let n=this.min,r=this.max;if(super.configure(),this.options.offset&&t.length){const i=(r-n)/Math.max(t.length-1,1)/2;n-=i,r+=i}this._startValue=n,this._endValue=r,this._valueRange=r-n}getLabelForValue(t){return P$(t,this.chart.options.locale,this.options.ticks.format)}}class pp extends nB{determineDataLimits(){const{min:t,max:n}=this.getMinMax(!0);this.min=Br(t)?t:0,this.max=Br(n)?n:1,this.handleTickRangeOptions()}computeTickLimit(){const t=this.isHorizontal(),n=t?this.width:this.height,r=Xo(this.options.ticks.minRotation),i=(t?Math.sin(r):Math.cos(r))||.001,o=this._resolveTickFontOptions(0);return Math.ceil(n/Math.min(40,o.lineHeight/i))}getPixelForValue(t){return t===null?NaN:this.getPixelForDecimal((t-this._startValue)/this._valueRange)}getValueForPixel(t){return this._startValue+this.getDecimalForPixel(t)*this._valueRange}}tt(pp,"id","linear"),tt(pp,"defaults",{ticks:{callback:T$.formatters.numeric}});const Xf={millisecond:{common:!0,size:1,steps:1e3},second:{common:!0,size:1e3,steps:60},minute:{common:!0,size:6e4,steps:60},hour:{common:!0,size:36e5,steps:24},day:{common:!0,size:864e5,steps:30},week:{common:!1,size:6048e5,steps:4},month:{common:!0,size:2628e6,steps:12},quarter:{common:!1,size:7884e6,steps:4},year:{common:!0,size:3154e7}},lr=Object.keys(Xf);function Xx(e,t){return e-t}function Yx(e,t){if(on(t))return null;const n=e._adapter,{parser:r,round:i,isoWeekday:o}=e._parseOpts;let a=t;return typeof r=="function"&&(a=r(a)),Br(a)||(a=typeof r=="string"?n.parse(a,r):n.parse(a)),a===null?null:(i&&(a=i==="week"&&(yc(o)||o===!0)?n.startOf(a,"isoWeek",o):n.startOf(a,i)),+a)}function Qx(e,t,n,r){const i=lr.length;for(let o=lr.indexOf(e);o=lr.indexOf(n);o--){const a=lr[o];if(Xf[a].common&&e._adapter.diff(i,r,a)>=t-1)return a}return lr[n?lr.indexOf(n):0]}function iB(e){for(let t=lr.indexOf(e)+1,n=lr.length;t=t?n[r]:n[i];e[o]=!0}}function oB(e,t,n,r){const i=e._adapter,o=+i.startOf(t[0].value,r),a=t[t.length-1].value;let s,l;for(s=o;s<=a;s=+i.add(s,1,r))l=n[s],l>=0&&(t[l].major=!0);return t}function Jx(e,t,n){const r=[],i={},o=t.length;let a,s;for(a=0;a+t.value))}initOffsets(t=[]){let n=0,r=0,i,o;this.options.offset&&t.length&&(i=this.getDecimalForValue(t[0]),t.length===1?n=1-i:n=(this.getDecimalForValue(t[1])-i)/2,o=this.getDecimalForValue(t[t.length-1]),t.length===1?r=o:r=(o-this.getDecimalForValue(t[t.length-2]))/2);const a=t.length<3?.5:.25;n=Nr(n,0,a),r=Nr(r,0,a),this._offsets={start:n,end:r,factor:1/(n+1+r)}}_generate(){const t=this._adapter,n=this.min,r=this.max,i=this.options,o=i.time,a=o.unit||Qx(o.minUnit,n,r,this._getLabelCapacity(n)),s=it(i.ticks.stepSize,1),l=a==="week"?o.isoWeekday:!1,c=yc(l)||l===!0,u={};let f=n,h,m;if(c&&(f=+t.startOf(f,"isoWeek",l)),f=+t.startOf(f,c?"day":a),t.diff(r,n,a)>1e5*s)throw new Error(n+" and "+r+" are too far apart with stepSize of "+s+" "+a);const y=i.ticks.source==="data"&&this.getDataTimestamps();for(h=f,m=0;h+v)}getLabelForValue(t){const n=this._adapter,r=this.options.time;return r.tooltipFormat?n.format(t,r.tooltipFormat):n.format(t,r.displayFormats.datetime)}format(t,n){const i=this.options.time.displayFormats,o=this._unit,a=n||i[o];return this._adapter.format(t,a)}_tickFormatFunction(t,n,r,i){const o=this.options,a=o.ticks.callback;if(a)return Xe(a,[t,n,r],this);const s=o.time.displayFormats,l=this._unit,c=this._majorUnit,u=l&&s[l],f=c&&s[c],h=r[n],m=c&&f&&h&&h.major;return this._adapter.format(t,i||(m?f:u))}generateTickLabels(t){let n,r,i;for(n=0,r=t.length;n0?s:1}getDataTimestamps(){let t=this._cache.data||[],n,r;if(t.length)return t;const i=this.getMatchingVisibleMetas();if(this._normalized&&i.length)return this._cache.data=i[0].controller.getAllParsedValues(this);for(n=0,r=i.length;n=e[r].pos&&t<=e[i].pos&&({lo:r,hi:i}=Yo(e,"pos",t)),{pos:o,time:s}=e[r],{pos:a,time:l}=e[i]):(t>=e[r].time&&t<=e[i].time&&({lo:r,hi:i}=Yo(e,"time",t)),{time:o,pos:s}=e[r],{time:a,pos:l}=e[i]);const c=a-o;return c?s+(l-s)*(t-o)/c:s}class eS extends Qd{constructor(t){super(t),this._table=[],this._minPos=void 0,this._tableRange=void 0}initOffsets(){const t=this._getTimestampsForTable(),n=this._table=this.buildLookupTable(t);this._minPos=Iu(n,this.min),this._tableRange=Iu(n,this.max)-this._minPos,super.initOffsets(t)}buildLookupTable(t){const{min:n,max:r}=this,i=[],o=[];let a,s,l,c,u;for(a=0,s=t.length;a=n&&c<=r&&i.push(c);if(i.length<2)return[{time:n,pos:0},{time:r,pos:1}];for(a=0,s=i.length;ai-o)}_getTimestampsForTable(){let t=this._cache.all||[];if(t.length)return t;const n=this.getDataTimestamps(),r=this.getLabelTimestamps();return n.length&&r.length?t=this.normalize(n.concat(r)):t=n.length?n:r,t=this._cache.all=t,t}getDecimalForValue(t){return(Iu(this._table,t)-this._minPos)/this._tableRange}getValueForPixel(t){const n=this._offsets,r=this.getDecimalForPixel(t)/n.factor-n.end;return Iu(this._table,r*this._tableRange+this._minPos,!0)}}tt(eS,"id","timeseries"),tt(eS,"defaults",Qd.defaults);const r2="label";function tS(e,t){typeof e=="function"?e(t):e&&(e.current=t)}function aB(e,t){const n=e.options;n&&t&&Object.assign(n,t)}function i2(e,t){e.labels=t}function o2(e,t){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:r2;const r=[];e.datasets=t.map(i=>{const o=e.datasets.find(a=>a[n]===i[n]);return!o||!i.data||r.includes(o)?{...i}:(r.push(o),Object.assign(o,i),o)})}function sB(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:r2;const n={labels:[],datasets:[]};return i2(n,e.labels),o2(n,e.datasets,t),n}function lB(e,t){const{height:n=150,width:r=300,redraw:i=!1,datasetIdKey:o,type:a,data:s,options:l,plugins:c=[],fallbackContent:u,updateMode:f,...h}=e,m=d.useRef(null),y=d.useRef(),v=()=>{m.current&&(y.current=new qf(m.current,{type:a,data:sB(s,o),options:l&&{...l},plugins:c}),tS(t,y.current))},b=()=>{tS(t,null),y.current&&(y.current.destroy(),y.current=null)};return d.useEffect(()=>{!i&&y.current&&l&&aB(y.current,l)},[i,l]),d.useEffect(()=>{!i&&y.current&&i2(y.current.config.data,s.labels)},[i,s.labels]),d.useEffect(()=>{!i&&y.current&&s.datasets&&o2(y.current.config.data,s.datasets,o)},[i,s.datasets]),d.useEffect(()=>{y.current&&(i?(b(),setTimeout(v)):y.current.update(f))},[i,l,s.labels,s.datasets,f]),d.useEffect(()=>{y.current&&(b(),setTimeout(v))},[a]),d.useEffect(()=>(v(),()=>b()),[]),me.createElement("canvas",Object.assign({ref:m,role:"img",height:n,width:r},h),u)}const cB=d.forwardRef(lB);function uB(e,t){return qf.register(t),d.forwardRef((n,r)=>me.createElement(cB,Object.assign({},n,{ref:r,type:e})))}const dB=uB("line",od);function fB({currency:e,data:t}){if(!t.length)return null;const n=["Today",...Array.from({length:t[0].plan.years*12},(i,o)=>`Year ${Math.floor(o/12)} Month ${o%12+1}`)],r=t.map(i=>({label:i.platform.name,data:i.portfolioValues,borderColor:i.platform.color,backgroundColor:`${i.platform.color}70`}));return Ce.jsx(dB,{data:{labels:n,datasets:[...r,{label:"Invested Amount",data:t[0].investedValues,borderColor:"#d0d0d0",backgroundColor:"#d0d0d070",borderDash:[5,5]}]},options:{animation:!1,interaction:{intersect:!1,mode:"index"},elements:{point:{radius:0}},scales:{x:{ticks:{callback:(i,o)=>o%12===0?`Year ${o/12}`:""}},y:{ticks:{callback:i=>`${i.toLocaleString()} ${e}`}}},plugins:{legend:{position:"bottom"},tooltip:{itemSort:(i,o)=>o.parsed.y-i.parsed.y,callbacks:{label:i=>{const o=i.dataset.label,a=i.parsed.y;return`${o}: ${a.toLocaleString()} ${e}`}}},zoom:{zoom:{drag:{enabled:!0},wheel:{enabled:!0},pinch:{enabled:!0},mode:"x"}}}}})}const Zd=(e,t,n)=>typeof n=="function"?n(e,t):n,nS=(e,t,n,r)=>{const i=Zd(n,t,r.fixedFee),o=Zd(n,t,r.percentageFee)/100;return e*(1-o)-i},hB=(e,t,n)=>{const i=Zd(t,e,n.annualPercentageFee)/100/12;return e*(1-i)},gB=(e,t)=>{const n=(1+e.averageAnnualReturn/100)**.08333333333333333,r=[Zd(e,0,e.baseInvestment)],i=[nS(e.baseInvestment,0,e,t)];for(let o=0;o{let n=0;e.years>=15?n=.4:e.years>=10?n=.3:e.years>=7?n=.25:e.years>=5&&(n=.2);let r=1;return t>5e6?r=.4:t>1e6?r=.6:t>5e5&&(r=.8),r*(1-n)}},patria:{name:"Patria",color:"#f59100",fixedFee:0,percentageFee:.8,annualPercentageFee:0},xtb:{name:"xtb",color:"#f73e4a",fixedFee:0,percentageFee:.5,annualPercentageFee:0},t212:{name:"T212",color:"#00a7e1",fixedFee:0,percentageFee:.15,annualPercentageFee:0},ibkr:{name:"IBKR",color:"#d91222",fixedFee:e=>e.numberOfProducts*mB,percentageFee:.03,annualPercentageFee:0},etoro:{name:"eToro",color:"#13c636",fixedFee:0,percentageFee:.75,annualPercentageFee:0},nofees:{name:"0% fees",color:"#d0d0d0",fixedFee:0,percentageFee:0,annualPercentageFee:0}};function pB(){return Ce.jsxs(ji.Footer,{className:"bg-white",children:[Ce.jsx("p",{className:"text-center text-sm text-gray-500 mb-3",children:"Disclaimer: This tool is for illustrative purposes only. The actual returns may vary. The tool does not take into account taxes, inflation, or other factors that may affect the investment. The tool is not investment advice."}),Ce.jsxs("p",{className:"text-center text-sm text-gray-500",children:["Built with"," ",Ce.jsxs("a",{href:"https://react.dev/",target:"_blank",rel:"noopener noreferrer",children:["React ",Ce.jsx(cz,{})]})," ","and"," ",Ce.jsxs("a",{href:"https://ant.design/",target:"_blank",rel:"noopener noreferrer",children:["Ant Design ",Ce.jsx(rz,{})]}),"."]})]})}function vB(){return Ce.jsx(ji.Header,{className:"flex bg-white items-center",children:Ce.jsx(Bv,{iconPosition:"end",icon:Ce.jsx(az,{}),href:"https://github.com/sentisso/investment-plan",target:"_blank",className:"ml-auto",children:"See this on GitHub"})})}function yB({currency:e}){const t=(n,r)=>typeof n=="function"?"Dynamic":`${n}${r}`;return Ce.jsxs("div",{className:"mt-14",children:[Ce.jsx("h2",{className:"text-2xl font-bold mb-4",children:"Platform Fees"}),Ce.jsx(Hd,{gutter:16,children:Object.keys(Ho).map(n=>Ce.jsx(mc,{span:6,children:Ce.jsxs(t0,{className:"mb-4",children:[Ce.jsx("h3",{className:"text-lg font-bold",children:Ho[n].name}),Ce.jsxs("p",{children:[Ce.jsx("strong",{children:"Fixed fee:"})," ",t(Ho[n].fixedFee,e)]}),Ce.jsxs("p",{children:[Ce.jsx("strong",{children:"Percentage fee:"})," ",t(Ho[n].percentageFee,"%")]}),Ce.jsxs("p",{children:[Ce.jsx("strong",{children:"Annual percentage fee:"})," ",t(Ho[n].annualPercentageFee,"% p.a.")]})]})}))}),Ce.jsxs(Hd,{children:[Ce.jsxs("p",{children:[Ce.jsx("strong",{children:"Fixed fee:"})," Fee that is charged as a fixed amount for each investment, regardless of the amount invested."]}),Ce.jsxs("p",{children:[Ce.jsx("strong",{children:"Percentage fee:"})," Fee that is calculated as a percentage of the investment amount. Usually a currency conversion fee.",Ce.jsx("br",{}),"Example: investing $100 with a 0.75% fee will result in an actual investment of $99.25 after the fee is deducted."]}),Ce.jsxs("p",{children:[Ce.jsx("strong",{children:"Annual percentage fee:"})," Fee that is calculated as a percentage of the total portfolio value. Fee is paid monthly as 1/12 of the annual fee.",Ce.jsx("br",{}),"Example: 1.5% p.a. fee will be charged as 0.125% (1.5/12) of the total portfolio value each month."]})]})]})}function bB(){const[e,t]=d.useState({years:14,baseInvestment:3e4,monthlyInvestment:8e3,averageAnnualReturn:9.5,numberOfProducts:8}),[n]=d.useState("Kč"),r=d.useMemo(()=>{const o=[];for(const a in Ho){const s=gB(e,Ho[a]);o.push(s)}return o},[e]),i=(o,a)=>{t(s=>({...s,[o]:a}))};return Ce.jsxs(ji,{className:"max-w-screen-xl mx-auto bg-white px-3",children:[Ce.jsx(vB,{}),Ce.jsxs(ji.Content,{children:[Ce.jsxs("h1",{className:"text-3xl mb-10 font-bold text-center",children:["Investment Growth Over ",e.years," Years"]}),Ce.jsx(fB,{data:r,currency:n}),Ce.jsxs(ar,{layout:"vertical",children:[Ce.jsx(ar.Item,{label:Ce.jsxs("span",{children:["Base Investment"," ",Ce.jsx(eo,{title:"The one-time investment you plan to make.",children:Ce.jsx(Aa,{})})]}),children:Ce.jsx(Fa,{min:0,step:1e3,value:e.baseInvestment,onChange:o=>o!=null&&i("baseInvestment",o),addonAfter:n})}),Ce.jsx(ar.Item,{label:Ce.jsxs("span",{children:["Monthly Investment"," ",Ce.jsx(eo,{title:"The amount of money you plan to invest each month.",children:Ce.jsx(Aa,{})})]}),children:Ce.jsx(Fa,{min:0,step:100,value:e.monthlyInvestment,onChange:o=>o!=null&&i("monthlyInvestment",o),addonAfter:n})}),Ce.jsx(ar.Item,{label:Ce.jsxs("span",{children:["Average Annual Return"," ",Ce.jsx(eo,{title:"The expected average annual return rate.",children:Ce.jsx(Aa,{})})]}),children:Ce.jsx(Fa,{min:0,max:100,step:.1,value:e.averageAnnualReturn,onChange:o=>o!=null&&i("averageAnnualReturn",o),addonAfter:"%"})}),Ce.jsx(ar.Item,{label:Ce.jsxs("span",{children:["Years investing"," ",Ce.jsx(eo,{title:"The number of years you plan to invest. This also affects Portu fees.",children:Ce.jsx(Aa,{})})]}),children:Ce.jsxs(Hd,{children:[Ce.jsx(mc,{span:8,children:Ce.jsx(h4,{min:1,max:50,onChange:o=>o!=null&&i("years",o),value:e.years})}),Ce.jsx(mc,{span:4,children:Ce.jsx(Fa,{min:1,max:50,value:e.years,onChange:o=>o!=null&&i("years",o)})})]})}),Ce.jsx(ar.Item,{label:Ce.jsxs("span",{children:["Number of investment products"," ",Ce.jsx(eo,{title:"The number of investment products you plan to have in your portfolio (e.g. number of ETFs). This affects the IBKR fee.",children:Ce.jsx(Aa,{})})]}),children:Ce.jsx(Fa,{min:1,step:1,value:e.numberOfProducts,onChange:o=>o!=null&&i("numberOfProducts",o)})})]}),Ce.jsx(yB,{currency:n})]}),Ce.jsx(pB,{})]})}var a2={exports:{}};/*! Hammer.JS - v2.0.7 - 2016-04-22 +`):e}function W6(e,t){const{element:n,datasetIndex:r,index:i}=t,o=e.getDatasetMeta(r).controller,{label:a,value:s}=o.getLabelAndValue(i);return{chart:e,label:a,parsed:o.getParsed(i),raw:e.data.datasets[r].data[i],formattedValue:s,dataset:o.getDataset(),dataIndex:i,datasetIndex:r,element:n}}function Hx(e,t){const n=e.chart.ctx,{body:r,footer:i,title:o}=e,{boxWidth:a,boxHeight:s}=t,l=Kn(t.bodyFont),c=Kn(t.titleFont),u=Kn(t.footerFont),f=o.length,h=i.length,m=r.length,y=Hr(t.padding);let v=y.height,b=0,p=r.reduce((S,C)=>S+C.before.length+C.lines.length+C.after.length,0);if(p+=e.beforeBody.length+e.afterBody.length,f&&(v+=f*c.lineHeight+(f-1)*t.titleSpacing+t.titleMarginBottom),p){const S=t.displayColors?Math.max(s,l.lineHeight):l.lineHeight;v+=m*S+(p-m)*l.lineHeight+(p-1)*t.bodySpacing}h&&(v+=t.footerMarginTop+h*u.lineHeight+(h-1)*t.footerSpacing);let g=0;const x=function(S){b=Math.max(b,n.measureText(S).width+g)};return n.save(),n.font=c.string,at(e.title,x),n.font=l.string,at(e.beforeBody.concat(e.afterBody),x),g=t.displayColors?a+2+t.boxPadding:0,at(r,S=>{at(S.before,x),at(S.lines,x),at(S.after,x)}),g=0,n.font=u.string,at(e.footer,x),n.restore(),b+=y.width,{width:b,height:v}}function U6(e,t){const{y:n,height:r}=t;return ne.height-r/2?"bottom":"center"}function G6(e,t,n,r){const{x:i,width:o}=r,a=n.caretSize+n.caretPadding;if(e==="left"&&i+o+a>t.width||e==="right"&&i-o-a<0)return!0}function K6(e,t,n,r){const{x:i,width:o}=n,{width:a,chartArea:{left:s,right:l}}=e;let c="center";return r==="center"?c=i<=(s+l)/2?"left":"right":i<=o/2?c="left":i>=a-o/2&&(c="right"),G6(c,e,t,n)&&(c="center"),c}function Vx(e,t,n){const r=n.yAlign||t.yAlign||U6(e,n);return{xAlign:n.xAlign||t.xAlign||K6(e,t,n,r),yAlign:r}}function q6(e,t){let{x:n,width:r}=e;return t==="right"?n-=r:t==="center"&&(n-=r/2),n}function X6(e,t,n){let{y:r,height:i}=e;return t==="top"?r+=n:t==="bottom"?r-=i+n:r-=i/2,r}function Wx(e,t,n,r){const{caretSize:i,caretPadding:o,cornerRadius:a}=e,{xAlign:s,yAlign:l}=n,c=i+o,{topLeft:u,topRight:f,bottomLeft:h,bottomRight:m}=kl(a);let y=q6(t,s);const v=X6(t,l,c);return l==="center"?s==="left"?y+=c:s==="right"&&(y-=c):s==="left"?y-=Math.max(u,h)+i:s==="right"&&(y+=Math.max(f,m)+i),{x:Nr(y,0,r.width-t.width),y:Nr(v,0,r.height-t.height)}}function Ru(e,t,n){const r=Hr(n.padding);return t==="center"?e.x+e.width/2:t==="right"?e.x+e.width-r.right:e.x+r.left}function Ux(e){return di([],$i(e))}function Y6(e,t,n){return ya(e,{tooltip:t,tooltipItems:n,type:"tooltip"})}function Gx(e,t){const n=t&&t.dataset&&t.dataset.tooltip&&t.dataset.tooltip.callbacks;return n?e.override(n):e}const n2={beforeTitle:Ei,title(e){if(e.length>0){const t=e[0],n=t.chart.data.labels,r=n?n.length:0;if(this&&this.options&&this.options.mode==="dataset")return t.dataset.label||"";if(t.label)return t.label;if(r>0&&t.dataIndex"u"?n2[t].call(n,r):i}class hp extends ba{constructor(t){super(),this.opacity=0,this._active=[],this._eventPosition=void 0,this._size=void 0,this._cachedAnimations=void 0,this._tooltipItems=[],this.$animations=void 0,this.$context=void 0,this.chart=t.chart,this.options=t.options,this.dataPoints=void 0,this.title=void 0,this.beforeBody=void 0,this.body=void 0,this.afterBody=void 0,this.footer=void 0,this.xAlign=void 0,this.yAlign=void 0,this.x=void 0,this.y=void 0,this.height=void 0,this.width=void 0,this.caretX=void 0,this.caretY=void 0,this.labelColors=void 0,this.labelPointStyles=void 0,this.labelTextColors=void 0}initialize(t){this.options=t,this._cachedAnimations=void 0,this.$context=void 0}_resolveAnimations(){const t=this._cachedAnimations;if(t)return t;const n=this.chart,r=this.options.setContext(this.getContext()),i=r.enabled&&n.options.animation&&r.animations,o=new B$(this.chart,i);return i._cacheable&&(this._cachedAnimations=Object.freeze(o)),o}getContext(){return this.$context||(this.$context=Y6(this.chart.getContext(),this,this._tooltipItems))}getTitle(t,n){const{callbacks:r}=n,i=ir(r,"beforeTitle",this,t),o=ir(r,"title",this,t),a=ir(r,"afterTitle",this,t);let s=[];return s=di(s,$i(i)),s=di(s,$i(o)),s=di(s,$i(a)),s}getBeforeBody(t,n){return Ux(ir(n.callbacks,"beforeBody",this,t))}getBody(t,n){const{callbacks:r}=n,i=[];return at(t,o=>{const a={before:[],lines:[],after:[]},s=Gx(r,o);di(a.before,$i(ir(s,"beforeLabel",this,o))),di(a.lines,ir(s,"label",this,o)),di(a.after,$i(ir(s,"afterLabel",this,o))),i.push(a)}),i}getAfterBody(t,n){return Ux(ir(n.callbacks,"afterBody",this,t))}getFooter(t,n){const{callbacks:r}=n,i=ir(r,"beforeFooter",this,t),o=ir(r,"footer",this,t),a=ir(r,"afterFooter",this,t);let s=[];return s=di(s,$i(i)),s=di(s,$i(o)),s=di(s,$i(a)),s}_createItems(t){const n=this._active,r=this.chart.data,i=[],o=[],a=[];let s=[],l,c;for(l=0,c=n.length;lt.filter(u,f,h,r))),t.itemSort&&(s=s.sort((u,f)=>t.itemSort(u,f,r))),at(s,u=>{const f=Gx(t.callbacks,u);i.push(ir(f,"labelColor",this,u)),o.push(ir(f,"labelPointStyle",this,u)),a.push(ir(f,"labelTextColor",this,u))}),this.labelColors=i,this.labelPointStyles=o,this.labelTextColors=a,this.dataPoints=s,s}update(t,n){const r=this.options.setContext(this.getContext()),i=this._active;let o,a=[];if(!i.length)this.opacity!==0&&(o={opacity:0});else{const s=hl[r.position].call(this,i,this._eventPosition);a=this._createItems(r),this.title=this.getTitle(a,r),this.beforeBody=this.getBeforeBody(a,r),this.body=this.getBody(a,r),this.afterBody=this.getAfterBody(a,r),this.footer=this.getFooter(a,r);const l=this._size=Hx(this,r),c=Object.assign({},s,l),u=Vx(this.chart,r,c),f=Wx(r,c,u,this.chart);this.xAlign=u.xAlign,this.yAlign=u.yAlign,o={opacity:1,x:f.x,y:f.y,width:l.width,height:l.height,caretX:s.x,caretY:s.y}}this._tooltipItems=a,this.$context=void 0,o&&this._resolveAnimations().update(this,o),t&&r.external&&r.external.call(this,{chart:this.chart,tooltip:this,replay:n})}drawCaret(t,n,r,i){const o=this.getCaretPosition(t,r,i);n.lineTo(o.x1,o.y1),n.lineTo(o.x2,o.y2),n.lineTo(o.x3,o.y3)}getCaretPosition(t,n,r){const{xAlign:i,yAlign:o}=this,{caretSize:a,cornerRadius:s}=r,{topLeft:l,topRight:c,bottomLeft:u,bottomRight:f}=kl(s),{x:h,y:m}=t,{width:y,height:v}=n;let b,p,g,x,S,C;return o==="center"?(S=m+v/2,i==="left"?(b=h,p=b-a,x=S+a,C=S-a):(b=h+y,p=b+a,x=S-a,C=S+a),g=b):(i==="left"?p=h+Math.max(l,u)+a:i==="right"?p=h+y-Math.max(c,f)-a:p=this.caretX,o==="top"?(x=m,S=x-a,b=p-a,g=p+a):(x=m+v,S=x+a,b=p+a,g=p-a),C=x),{x1:b,x2:p,x3:g,y1:x,y2:S,y3:C}}drawTitle(t,n,r){const i=this.title,o=i.length;let a,s,l;if(o){const c=ls(r.rtl,this.x,this.width);for(t.x=Ru(this,r.titleAlign,r),n.textAlign=c.textAlign(r.titleAlign),n.textBaseline="middle",a=Kn(r.titleFont),s=r.titleSpacing,n.fillStyle=r.titleColor,n.font=a.string,l=0;lg!==0)?(t.beginPath(),t.fillStyle=o.multiKeyBackground,cp(t,{x:v,y,w:c,h:l,radius:p}),t.fill(),t.stroke(),t.fillStyle=a.backgroundColor,t.beginPath(),cp(t,{x:b,y:y+1,w:c-2,h:l-2,radius:p}),t.fill()):(t.fillStyle=o.multiKeyBackground,t.fillRect(v,y,c,l),t.strokeRect(v,y,c,l),t.fillStyle=a.backgroundColor,t.fillRect(b,y+1,c-2,l-2))}t.fillStyle=this.labelTextColors[r]}drawBody(t,n,r){const{body:i}=this,{bodySpacing:o,bodyAlign:a,displayColors:s,boxHeight:l,boxWidth:c,boxPadding:u}=r,f=Kn(r.bodyFont);let h=f.lineHeight,m=0;const y=ls(r.rtl,this.x,this.width),v=function(_){n.fillText(_,y.x(t.x+m),t.y+h/2),t.y+=h+o},b=y.textAlign(a);let p,g,x,S,C,w,E;for(n.textAlign=a,n.textBaseline="middle",n.font=f.string,t.x=Ru(this,b,r),n.fillStyle=r.bodyColor,at(this.beforeBody,v),m=s&&b!=="right"?a==="center"?c/2+u:c+2+u:0,S=0,w=i.length;S0&&n.stroke()}_updateAnimationTarget(t){const n=this.chart,r=this.$animations,i=r&&r.x,o=r&&r.y;if(i||o){const a=hl[t.position].call(this,this._active,this._eventPosition);if(!a)return;const s=this._size=Hx(this,t),l=Object.assign({},a,this._size),c=Vx(n,t,l),u=Wx(t,l,c,n);(i._to!==u.x||o._to!==u.y)&&(this.xAlign=c.xAlign,this.yAlign=c.yAlign,this.width=s.width,this.height=s.height,this.caretX=a.x,this.caretY=a.y,this._resolveAnimations().update(this,u))}}_willRender(){return!!this.opacity}draw(t){const n=this.options.setContext(this.getContext());let r=this.opacity;if(!r)return;this._updateAnimationTarget(n);const i={width:this.width,height:this.height},o={x:this.x,y:this.y};r=Math.abs(r)<.001?0:r;const a=Hr(n.padding),s=this.title.length||this.beforeBody.length||this.body.length||this.afterBody.length||this.footer.length;n.enabled&&s&&(t.save(),t.globalAlpha=r,this.drawBackground(o,t,i,n),D$(t,n.textDirection),o.y+=a.top,this.drawTitle(o,t,n),this.drawBody(o,t,n),this.drawFooter(o,t,n),z$(t,n.textDirection),t.restore())}getActiveElements(){return this._active||[]}setActiveElements(t,n){const r=this._active,i=t.map(({datasetIndex:s,index:l})=>{const c=this.chart.getDatasetMeta(s);if(!c)throw new Error("Cannot find a dataset at index "+s);return{datasetIndex:s,element:c.data[l],index:l}}),o=!Vd(r,i),a=this._positionChanged(i,n);(o||a)&&(this._active=i,this._eventPosition=n,this._ignoreReplayEvents=!0,this.update(!0))}handleEvent(t,n,r=!0){if(n&&this._ignoreReplayEvents)return!1;this._ignoreReplayEvents=!1;const i=this.options,o=this._active||[],a=this._getActiveElements(t,o,n,r),s=this._positionChanged(a,t),l=n||!Vd(a,o)||s;return l&&(this._active=a,(i.enabled||i.external)&&(this._eventPosition={x:t.x,y:t.y},this.update(!0,n))),l}_getActiveElements(t,n,r,i){const o=this.options;if(t.type==="mouseout")return[];if(!i)return n.filter(s=>this.chart.data.datasets[s.datasetIndex]&&this.chart.getDatasetMeta(s.datasetIndex).controller.getParsed(s.index)!==void 0);const a=this.chart.getElementsAtEventForMode(t,o.mode,o,r);return o.reverse&&a.reverse(),a}_positionChanged(t,n){const{caretX:r,caretY:i,options:o}=this,a=hl[o.position].call(this,t,n);return a!==!1&&(r!==a.x||i!==a.y)}}tt(hp,"positioners",hl);var Q6={id:"tooltip",_element:hp,positioners:hl,afterInit(e,t,n){n&&(e.tooltip=new hp({chart:e,options:n}))},beforeUpdate(e,t,n){e.tooltip&&e.tooltip.initialize(n)},reset(e,t,n){e.tooltip&&e.tooltip.initialize(n)},afterDraw(e){const t=e.tooltip;if(t&&t._willRender()){const n={tooltip:t};if(e.notifyPlugins("beforeTooltipDraw",{...n,cancelable:!0})===!1)return;t.draw(e.ctx),e.notifyPlugins("afterTooltipDraw",n)}},afterEvent(e,t){if(e.tooltip){const n=t.replay;e.tooltip.handleEvent(t.event,n,t.inChartArea)&&(t.changed=!0)}},defaults:{enabled:!0,external:null,position:"average",backgroundColor:"rgba(0,0,0,0.8)",titleColor:"#fff",titleFont:{weight:"bold"},titleSpacing:2,titleMarginBottom:6,titleAlign:"left",bodyColor:"#fff",bodySpacing:2,bodyFont:{},bodyAlign:"left",footerColor:"#fff",footerSpacing:2,footerMarginTop:6,footerFont:{weight:"bold"},footerAlign:"left",padding:6,caretPadding:2,caretSize:5,cornerRadius:6,boxHeight:(e,t)=>t.bodyFont.size,boxWidth:(e,t)=>t.bodyFont.size,multiKeyBackground:"#fff",displayColors:!0,boxPadding:0,borderColor:"rgba(0,0,0,0)",borderWidth:0,animation:{duration:400,easing:"easeOutQuart"},animations:{numbers:{type:"number",properties:["x","y","width","height","caretX","caretY"]},opacity:{easing:"linear",duration:200}},callbacks:n2},defaultRoutes:{bodyFont:"font",footerFont:"font",titleFont:"font"},descriptors:{_scriptable:e=>e!=="filter"&&e!=="itemSort"&&e!=="external",_indexable:!1,callbacks:{_scriptable:!1,_indexable:!1},animation:{_fallback:!1},animations:{_fallback:"animation"}},additionalOptionScopes:["interaction"]};const Z6=(e,t,n,r)=>(typeof t=="string"?(n=e.push(t)-1,r.unshift({index:n,label:t})):isNaN(t)&&(n=null),n);function J6(e,t,n,r){const i=e.indexOf(t);if(i===-1)return Z6(e,t,n,r);const o=e.lastIndexOf(t);return i!==o?n:i}const eB=(e,t)=>e===null?null:Nr(Math.round(e),0,t);function Kx(e){const t=this.getLabels();return e>=0&&en.length-1?null:this.getPixelForValue(n[t].value)}getValueForPixel(t){return Math.round(this._startValue+this.getDecimalForPixel(t)*this._valueRange)}getBasePixel(){return this.bottom}}tt(gp,"id","category"),tt(gp,"defaults",{ticks:{callback:Kx}});function tB(e,t){const n=[],{bounds:i,step:o,min:a,max:s,precision:l,count:c,maxTicks:u,maxDigits:f,includeBounds:h}=e,m=o||1,y=u-1,{min:v,max:b}=t,p=!on(a),g=!on(s),x=!on(c),S=(b-v)/(f+1);let C=Q1((b-v)/y/m)*m,w,E,_,O;if(C<1e-14&&!p&&!g)return[{value:v},{value:b}];O=Math.ceil(b/C)-Math.floor(v/C),O>y&&(C=Q1(O*C/y/m)*m),on(l)||(w=Math.pow(10,l),C=Math.ceil(C*w)/w),i==="ticks"?(E=Math.floor(v/C)*C,_=Math.ceil(b/C)*C):(E=v,_=b),p&&g&&o&&Hz((s-a)/o,C/1e3)?(O=Math.round(Math.min((s-a)/C,u)),C=(s-a)/O,E=a,_=s):x?(E=p?a:E,_=g?s:_,O=c-1,C=(_-E)/O):(O=(_-E)/C,Tl(O,Math.round(O),C/1e3)?O=Math.round(O):O=Math.ceil(O));const M=Math.max(Z1(C),Z1(E));w=Math.pow(10,on(l)?M:l),E=Math.round(E*w)/w,_=Math.round(_*w)/w;let I=0;for(p&&(h&&E!==a?(n.push({value:a}),Es)break;n.push({value:k})}return g&&h&&_!==s?n.length&&Tl(n[n.length-1].value,s,qx(s,S,e))?n[n.length-1].value=s:n.push({value:s}):(!g||_===s)&&n.push({value:_}),n}function qx(e,t,{horizontal:n,minRotation:r}){const i=Xo(r),o=(n?Math.sin(i):Math.cos(i))||.001,a=.75*t*(""+e).length;return Math.min(t/o,a)}class nB extends Ns{constructor(t){super(t),this.start=void 0,this.end=void 0,this._startValue=void 0,this._endValue=void 0,this._valueRange=0}parse(t,n){return on(t)||(typeof t=="number"||t instanceof Number)&&!isFinite(+t)?null:+t}handleTickRangeOptions(){const{beginAtZero:t}=this.options,{minDefined:n,maxDefined:r}=this.getUserBounds();let{min:i,max:o}=this;const a=l=>i=n?i:l,s=l=>o=r?o:l;if(t){const l=Eo(i),c=Eo(o);l<0&&c<0?s(0):l>0&&c>0&&a(0)}if(i===o){let l=o===0?1:Math.abs(o*.05);s(o+l),t||a(i-l)}this.min=i,this.max=o}getTickLimit(){const t=this.options.ticks;let{maxTicksLimit:n,stepSize:r}=t,i;return r?(i=Math.ceil(this.max/r)-Math.floor(this.min/r)+1,i>1e3&&(console.warn(`scales.${this.id}.ticks.stepSize: ${r} would result generating up to ${i} ticks. Limiting to 1000.`),i=1e3)):(i=this.computeTickLimit(),n=n||11),n&&(i=Math.min(n,i)),i}computeTickLimit(){return Number.POSITIVE_INFINITY}buildTicks(){const t=this.options,n=t.ticks;let r=this.getTickLimit();r=Math.max(2,r);const i={maxTicks:r,bounds:t.bounds,min:t.min,max:t.max,precision:n.precision,step:n.stepSize,count:n.count,maxDigits:this._maxDigits(),horizontal:this.isHorizontal(),minRotation:n.minRotation||0,includeBounds:n.includeBounds!==!1},o=this._range||this,a=tB(i,o);return t.bounds==="ticks"&&Vz(a,this,"value"),t.reverse?(a.reverse(),this.start=this.max,this.end=this.min):(this.start=this.min,this.end=this.max),a}configure(){const t=this.ticks;let n=this.min,r=this.max;if(super.configure(),this.options.offset&&t.length){const i=(r-n)/Math.max(t.length-1,1)/2;n-=i,r+=i}this._startValue=n,this._endValue=r,this._valueRange=r-n}getLabelForValue(t){return P$(t,this.chart.options.locale,this.options.ticks.format)}}class mp extends nB{determineDataLimits(){const{min:t,max:n}=this.getMinMax(!0);this.min=Br(t)?t:0,this.max=Br(n)?n:1,this.handleTickRangeOptions()}computeTickLimit(){const t=this.isHorizontal(),n=t?this.width:this.height,r=Xo(this.options.ticks.minRotation),i=(t?Math.sin(r):Math.cos(r))||.001,o=this._resolveTickFontOptions(0);return Math.ceil(n/Math.min(40,o.lineHeight/i))}getPixelForValue(t){return t===null?NaN:this.getPixelForDecimal((t-this._startValue)/this._valueRange)}getValueForPixel(t){return this._startValue+this.getDecimalForPixel(t)*this._valueRange}}tt(mp,"id","linear"),tt(mp,"defaults",{ticks:{callback:T$.formatters.numeric}});const qf={millisecond:{common:!0,size:1,steps:1e3},second:{common:!0,size:1e3,steps:60},minute:{common:!0,size:6e4,steps:60},hour:{common:!0,size:36e5,steps:24},day:{common:!0,size:864e5,steps:30},week:{common:!1,size:6048e5,steps:4},month:{common:!0,size:2628e6,steps:12},quarter:{common:!1,size:7884e6,steps:4},year:{common:!0,size:3154e7}},lr=Object.keys(qf);function Xx(e,t){return e-t}function Yx(e,t){if(on(t))return null;const n=e._adapter,{parser:r,round:i,isoWeekday:o}=e._parseOpts;let a=t;return typeof r=="function"&&(a=r(a)),Br(a)||(a=typeof r=="string"?n.parse(a,r):n.parse(a)),a===null?null:(i&&(a=i==="week"&&(yc(o)||o===!0)?n.startOf(a,"isoWeek",o):n.startOf(a,i)),+a)}function Qx(e,t,n,r){const i=lr.length;for(let o=lr.indexOf(e);o=lr.indexOf(n);o--){const a=lr[o];if(qf[a].common&&e._adapter.diff(i,r,a)>=t-1)return a}return lr[n?lr.indexOf(n):0]}function iB(e){for(let t=lr.indexOf(e)+1,n=lr.length;t=t?n[r]:n[i];e[o]=!0}}function oB(e,t,n,r){const i=e._adapter,o=+i.startOf(t[0].value,r),a=t[t.length-1].value;let s,l;for(s=o;s<=a;s=+i.add(s,1,r))l=n[s],l>=0&&(t[l].major=!0);return t}function Jx(e,t,n){const r=[],i={},o=t.length;let a,s;for(a=0;a+t.value))}initOffsets(t=[]){let n=0,r=0,i,o;this.options.offset&&t.length&&(i=this.getDecimalForValue(t[0]),t.length===1?n=1-i:n=(this.getDecimalForValue(t[1])-i)/2,o=this.getDecimalForValue(t[t.length-1]),t.length===1?r=o:r=(o-this.getDecimalForValue(t[t.length-2]))/2);const a=t.length<3?.5:.25;n=Nr(n,0,a),r=Nr(r,0,a),this._offsets={start:n,end:r,factor:1/(n+1+r)}}_generate(){const t=this._adapter,n=this.min,r=this.max,i=this.options,o=i.time,a=o.unit||Qx(o.minUnit,n,r,this._getLabelCapacity(n)),s=it(i.ticks.stepSize,1),l=a==="week"?o.isoWeekday:!1,c=yc(l)||l===!0,u={};let f=n,h,m;if(c&&(f=+t.startOf(f,"isoWeek",l)),f=+t.startOf(f,c?"day":a),t.diff(r,n,a)>1e5*s)throw new Error(n+" and "+r+" are too far apart with stepSize of "+s+" "+a);const y=i.ticks.source==="data"&&this.getDataTimestamps();for(h=f,m=0;h+v)}getLabelForValue(t){const n=this._adapter,r=this.options.time;return r.tooltipFormat?n.format(t,r.tooltipFormat):n.format(t,r.displayFormats.datetime)}format(t,n){const i=this.options.time.displayFormats,o=this._unit,a=n||i[o];return this._adapter.format(t,a)}_tickFormatFunction(t,n,r,i){const o=this.options,a=o.ticks.callback;if(a)return Xe(a,[t,n,r],this);const s=o.time.displayFormats,l=this._unit,c=this._majorUnit,u=l&&s[l],f=c&&s[c],h=r[n],m=c&&f&&h&&h.major;return this._adapter.format(t,i||(m?f:u))}generateTickLabels(t){let n,r,i;for(n=0,r=t.length;n0?s:1}getDataTimestamps(){let t=this._cache.data||[],n,r;if(t.length)return t;const i=this.getMatchingVisibleMetas();if(this._normalized&&i.length)return this._cache.data=i[0].controller.getAllParsedValues(this);for(n=0,r=i.length;n=e[r].pos&&t<=e[i].pos&&({lo:r,hi:i}=Yo(e,"pos",t)),{pos:o,time:s}=e[r],{pos:a,time:l}=e[i]):(t>=e[r].time&&t<=e[i].time&&({lo:r,hi:i}=Yo(e,"time",t)),{time:o,pos:s}=e[r],{time:a,pos:l}=e[i]);const c=a-o;return c?s+(l-s)*(t-o)/c:s}class eS extends Yd{constructor(t){super(t),this._table=[],this._minPos=void 0,this._tableRange=void 0}initOffsets(){const t=this._getTimestampsForTable(),n=this._table=this.buildLookupTable(t);this._minPos=Iu(n,this.min),this._tableRange=Iu(n,this.max)-this._minPos,super.initOffsets(t)}buildLookupTable(t){const{min:n,max:r}=this,i=[],o=[];let a,s,l,c,u;for(a=0,s=t.length;a=n&&c<=r&&i.push(c);if(i.length<2)return[{time:n,pos:0},{time:r,pos:1}];for(a=0,s=i.length;ai-o)}_getTimestampsForTable(){let t=this._cache.all||[];if(t.length)return t;const n=this.getDataTimestamps(),r=this.getLabelTimestamps();return n.length&&r.length?t=this.normalize(n.concat(r)):t=n.length?n:r,t=this._cache.all=t,t}getDecimalForValue(t){return(Iu(this._table,t)-this._minPos)/this._tableRange}getValueForPixel(t){const n=this._offsets,r=this.getDecimalForPixel(t)/n.factor-n.end;return Iu(this._table,r*this._tableRange+this._minPos,!0)}}tt(eS,"id","timeseries"),tt(eS,"defaults",Yd.defaults);const r2="label";function tS(e,t){typeof e=="function"?e(t):e&&(e.current=t)}function aB(e,t){const n=e.options;n&&t&&Object.assign(n,t)}function i2(e,t){e.labels=t}function o2(e,t){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:r2;const r=[];e.datasets=t.map(i=>{const o=e.datasets.find(a=>a[n]===i[n]);return!o||!i.data||r.includes(o)?{...i}:(r.push(o),Object.assign(o,i),o)})}function sB(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:r2;const n={labels:[],datasets:[]};return i2(n,e.labels),o2(n,e.datasets,t),n}function lB(e,t){const{height:n=150,width:r=300,redraw:i=!1,datasetIdKey:o,type:a,data:s,options:l,plugins:c=[],fallbackContent:u,updateMode:f,...h}=e,m=d.useRef(null),y=d.useRef(),v=()=>{m.current&&(y.current=new Kf(m.current,{type:a,data:sB(s,o),options:l&&{...l},plugins:c}),tS(t,y.current))},b=()=>{tS(t,null),y.current&&(y.current.destroy(),y.current=null)};return d.useEffect(()=>{!i&&y.current&&l&&aB(y.current,l)},[i,l]),d.useEffect(()=>{!i&&y.current&&i2(y.current.config.data,s.labels)},[i,s.labels]),d.useEffect(()=>{!i&&y.current&&s.datasets&&o2(y.current.config.data,s.datasets,o)},[i,s.datasets]),d.useEffect(()=>{y.current&&(i?(b(),setTimeout(v)):y.current.update(f))},[i,l,s.labels,s.datasets,f]),d.useEffect(()=>{y.current&&(b(),setTimeout(v))},[a]),d.useEffect(()=>(v(),()=>b()),[]),me.createElement("canvas",Object.assign({ref:m,role:"img",height:n,width:r},h),u)}const cB=d.forwardRef(lB);function uB(e,t){return Kf.register(t),d.forwardRef((n,r)=>me.createElement(cB,Object.assign({},n,{ref:r,type:e})))}const dB=uB("line",od);function fB({currency:e,data:t}){if(!t.length)return null;const n=["Today",...Array.from({length:t[0].plan.years*12},(i,o)=>`Year ${Math.floor(o/12)} Month ${o%12+1}`)],r=t.map(i=>({label:i.platform.name,data:i.portfolioValues,borderColor:i.platform.color,backgroundColor:`${i.platform.color}70`}));return xe.jsx("div",{style:{width:"100%",height:"40rem"},children:xe.jsx(dB,{data:{labels:n,datasets:[...r,{label:"Invested Amount",data:t[0].investedValues,borderColor:"#d0d0d0",backgroundColor:"#d0d0d070",borderDash:[5,5]}]},options:{maintainAspectRatio:!1,animation:!1,interaction:{intersect:!1,mode:"index"},elements:{point:{radius:0}},scales:{x:{ticks:{callback:(i,o)=>o%12===0?`Year ${o/12}`:""}},y:{ticks:{callback:i=>`${i.toLocaleString()} ${e}`}}},plugins:{legend:{position:"bottom"},tooltip:{itemSort:(i,o)=>o.parsed.y-i.parsed.y,callbacks:{label:i=>{const o=i.dataset.label,a=i.parsed.y;return`${o}: ${a.toLocaleString()} ${e}`}}},zoom:{zoom:{drag:{enabled:!0},wheel:{enabled:!0},pinch:{enabled:!0},mode:"x"}}}}})})}const Qd=(e,t,n)=>typeof n=="function"?n(e,t):n,nS=(e,t,n,r)=>{const i=Qd(n,t,r.fees.fixedFee),o=Qd(n,t,r.fees.percentageFee)/100;return e*(1-o)-i},hB=(e,t,n)=>{const i=Qd(t,e,n.fees.annualPercentageFee)/100/12;return e*(1-i)},gB=(e,t)=>{const n=(1+e.averageAnnualReturn/100)**.08333333333333333,r=[Qd(e,0,e.baseInvestment)],i=[nS(e.baseInvestment,0,e,t)];for(let o=0;o{let n=0;e.years>=15?n=.4:e.years>=10?n=.3:e.years>=7?n=.25:e.years>=5&&(n=.2);let r=1;return t>5e6?r=.4:t>1e6?r=.6:t>5e5&&(r=.8),r*(1-n)}}},patria:{name:"Patria",color:"#f59100",logo:"/platforms/patria.png",fees:{fixedFee:0,percentageFee:.8,annualPercentageFee:0}},xtb:{name:"xtb",color:"#f73e4a",logo:"/platforms/xtb.svg",fees:{fixedFee:0,percentageFee:.5,annualPercentageFee:0}},t212:{name:"T212",color:"#00a7e1",logo:"/platforms/t212.png",fees:{fixedFee:0,percentageFee:.15,annualPercentageFee:0}},ibkr:{name:"IBKR",color:"#d91222",logo:"/platforms/ibkr.svg",fees:{fixedFee:e=>e.numberOfProducts*mB,percentageFee:.03,annualPercentageFee:0}},etoro:{name:"eToro",color:"#13c636",logo:"/platforms/etoro.svg",fees:{fixedFee:0,percentageFee:.75,annualPercentageFee:0}},nofees:{name:"0% fees",color:"#d0d0d0",fees:{fixedFee:0,percentageFee:0,annualPercentageFee:0}}};function pB(){return xe.jsxs(ji.Footer,{className:"bg-white",children:[xe.jsx("p",{className:"text-center text-sm text-gray-500 mb-3",children:"Disclaimer: This tool is for illustrative purposes only. The actual returns may vary. The tool does not take into account taxes, inflation, or other factors that may affect the investment. The tool is not investment advice."}),xe.jsxs("p",{className:"text-center text-sm text-gray-500",children:["Built with"," ",xe.jsxs("a",{href:"https://react.dev/",target:"_blank",rel:"noopener noreferrer",children:["React ",xe.jsx(cz,{})]})," ","and"," ",xe.jsxs("a",{href:"https://ant.design/",target:"_blank",rel:"noopener noreferrer",children:["Ant Design ",xe.jsx(rz,{})]}),"."]})]})}function vB(){return xe.jsx(ji.Header,{className:"flex bg-white items-center",children:xe.jsx(Bv,{iconPosition:"end",icon:xe.jsx(az,{}),href:"https://github.com/sentisso/investment-plan",target:"_blank",className:"ml-auto",children:"See this on GitHub"})})}function yB({currency:e}){const t=(n,r)=>typeof n=="function"?"Dynamic":`${n}${r}`;return xe.jsxs("div",{className:"mt-14",children:[xe.jsx("h2",{className:"text-2xl font-bold mb-4",children:"Platform Fees"}),xe.jsx(mc,{gutter:16,className:"mb-2",children:Object.values(pp).map(n=>xe.jsx(Ko,{xs:24,sm:12,lg:8,xl:6,children:xe.jsxs(t0,{className:"mb-4",children:[n.logo?xe.jsx("img",{src:`/investment-plan${n.logo}`,draggable:"false",className:"max-w-40 max-h-8 mb-4"}):xe.jsx("h3",{className:"text-lg font-bold mb-4",children:n.name}),xe.jsxs("p",{children:[xe.jsx("strong",{children:"Fixed fee:"})," ",t(n.fees.fixedFee,e)]}),xe.jsxs("p",{children:[xe.jsx("strong",{children:"Percentage fee:"})," ",t(n.fees.percentageFee,"%")]}),xe.jsxs("p",{children:[xe.jsx("strong",{children:"Annual percentage fee:"})," ",t(n.fees.annualPercentageFee,"% p.a.")]})]})}))}),xe.jsxs(mc,{children:[xe.jsxs("p",{children:[xe.jsx("strong",{children:"Fixed fee:"})," Fee that is charged as a fixed amount for each investment, regardless of the amount invested."]}),xe.jsxs("p",{children:[xe.jsx("strong",{children:"Percentage fee:"})," Fee that is calculated as a percentage of the investment amount. Usually a currency conversion fee.",xe.jsx("br",{}),"Example: investing $100 with a 0.75% fee will result in an actual investment of $99.25 after the fee is deducted."]}),xe.jsxs("p",{children:[xe.jsx("strong",{children:"Annual percentage fee:"})," Fee that is calculated as a percentage of the total portfolio value. Fee is paid monthly as 1/12 of the annual fee.",xe.jsx("br",{}),"Example: 1.5% p.a. fee will be charged as 0.125% (1.5/12) of the total portfolio value each month."]})]})]})}function bB(){const[e,t]=d.useState({years:14,baseInvestment:3e4,monthlyInvestment:8e3,averageAnnualReturn:9.5,numberOfProducts:8}),[n]=d.useState("Kč"),r=d.useMemo(()=>{const o=[];for(const a in pp){const s=gB(e,pp[a]);o.push(s)}return o},[e]),i=(o,a)=>{t(s=>({...s,[o]:a}))};return xe.jsxs(ji,{className:"max-w-screen-xl mx-auto bg-white px-3",children:[xe.jsx(vB,{}),xe.jsxs(ji.Content,{children:[xe.jsxs("h1",{className:"text-3xl mb-10 font-bold text-center",children:["Investment Growth Over ",e.years," Years"]}),xe.jsx(fB,{data:r,currency:n}),xe.jsx(ar,{layout:"vertical",className:"mt-8",children:xe.jsxs(mc,{children:[xe.jsxs(Ko,{xs:24,md:12,children:[xe.jsx(ar.Item,{label:xe.jsxs("span",{children:["Base Investment"," ",xe.jsx(eo,{title:"The one-time investment you plan to make.",children:xe.jsx(Aa,{})})]}),children:xe.jsx(Fa,{min:0,step:1e3,value:e.baseInvestment,onChange:o=>o!=null&&i("baseInvestment",o),addonAfter:n})}),xe.jsx(ar.Item,{label:xe.jsxs("span",{children:["Monthly Investment"," ",xe.jsx(eo,{title:"The amount of money you plan to invest each month.",children:xe.jsx(Aa,{})})]}),children:xe.jsx(Fa,{min:0,step:100,value:e.monthlyInvestment,onChange:o=>o!=null&&i("monthlyInvestment",o),addonAfter:n})}),xe.jsx(ar.Item,{label:xe.jsxs("span",{children:["Average Annual Return"," ",xe.jsx(eo,{title:"The expected average annual return rate.",children:xe.jsx(Aa,{})})]}),children:xe.jsx(Fa,{min:0,max:100,step:.1,value:e.averageAnnualReturn,onChange:o=>o!=null&&i("averageAnnualReturn",o),addonAfter:"%"})})]}),xe.jsxs(Ko,{xs:24,lg:12,children:[xe.jsx(ar.Item,{label:xe.jsxs("span",{children:["Years investing"," ",xe.jsx(eo,{title:"The number of years you plan to invest. This also affects Portu fees.",children:xe.jsx(Aa,{})})]}),children:xe.jsxs(mc,{children:[xe.jsx(Ko,{span:12,children:xe.jsx(h4,{min:1,max:50,onChange:o=>o!=null&&i("years",o),value:e.years})}),xe.jsx(Ko,{span:4,children:xe.jsx(Fa,{min:1,max:50,value:e.years,onChange:o=>o!=null&&i("years",o)})})]})}),xe.jsx(ar.Item,{label:xe.jsxs("span",{children:["Number of investment products"," ",xe.jsx(eo,{title:"The number of investment products you plan to have in your portfolio (e.g. number of ETFs). This affects the IBKR fee.",children:xe.jsx(Aa,{})})]}),children:xe.jsx(Fa,{min:1,step:1,value:e.numberOfProducts,onChange:o=>o!=null&&i("numberOfProducts",o)})})]})]})}),xe.jsx(yB,{currency:n})]}),xe.jsx(pB,{})]})}var a2={exports:{}};/*! Hammer.JS - v2.0.7 - 2016-04-22 * http://hammerjs.github.io/ * * Copyright (c) 2016 Jorik Tangelder; * Licensed under the MIT license */(function(e){(function(t,n,r,i){var o=["","webkit","Moz","MS","ms","o"],a=n.createElement("div"),s="function",l=Math.round,c=Math.abs,u=Date.now;function f($,T,L){return setTimeout(x($,L),T)}function h($,T,L){return Array.isArray($)?(m($,L[T],L),!0):!1}function m($,T,L){var q;if($)if($.forEach)$.forEach(T,L);else if($.length!==i)for(q=0;q<$.length;)T.call(L,$[q],q,$),q++;else for(q in $)$.hasOwnProperty(q)&&T.call(L,$[q],q,$)}function y($,T,L){var q="DEPRECATED METHOD: "+T+` `+L+` AT -`;return function(){var ne=new Error("get-stack-trace"),ve=ne&&ne.stack?ne.stack.replace(/^[^\(]+?[\n$]/gm,"").replace(/^\s+at\s+/gm,"").replace(/^Object.\s*\(/gm,"{anonymous}()@"):"Unknown Stack Trace",et=t.console&&(t.console.warn||t.console.log);return et&&et.call(t.console,q,ve),$.apply(this,arguments)}}var v;typeof Object.assign!="function"?v=function(T){if(T===i||T===null)throw new TypeError("Cannot convert undefined or null to object");for(var L=Object(T),q=1;q-1}function M($){return $.trim().split(/\s+/g)}function I($,T,L){if($.indexOf&&!L)return $.indexOf(T);for(var q=0;q<$.length;){if(L&&$[q][L]==T||!L&&$[q]===T)return q;q++}return-1}function k($){return Array.prototype.slice.call($,0)}function F($,T,L){for(var q=[],ne=[],ve=0;ve<$.length;){var et=$[ve][T];I(ne,et)<0&&q.push($[ve]),ne[ve]=et,ve++}return q=q.sort(function(nn,$t){return nn[T]>$t[T]}),q}function j($,T){for(var L,q,ne=T[0].toUpperCase()+T.slice(1),ve=0;ve1&&!L.firstMultiple?L.firstMultiple=Ve(T):ne===1&&(L.firstMultiple=!1);var ve=L.firstInput,et=L.firstMultiple,sn=et?et.center:ve.center,nn=T.center=Be(q);T.timeStamp=u(),T.deltaTime=T.timeStamp-ve.timeStamp,T.angle=ct(sn,nn),T.distance=We(sn,nn),Fe(L,T),T.offsetDirection=He(T.deltaX,T.deltaY);var $t=De(T.deltaTime,T.deltaX,T.deltaY);T.overallVelocityX=$t.x,T.overallVelocityY=$t.y,T.overallVelocity=c($t.x)>c($t.y)?$t.x:$t.y,T.scale=et?Ge(et.pointers,q):1,T.rotation=et?ht(et.pointers,q):0,T.maxPointers=L.prevInput?T.pointers.length>L.prevInput.maxPointers?T.pointers.length:L.prevInput.maxPointers:T.pointers.length,Se(L,T);var On=$.element;_(T.srcEvent.target,On)&&(On=T.srcEvent.target),T.target=On}function Fe($,T){var L=T.center,q=$.offsetDelta||{},ne=$.prevDelta||{},ve=$.prevInput||{};(T.eventType===U||ve.eventType===J)&&(ne=$.prevDelta={x:ve.deltaX||0,y:ve.deltaY||0},q=$.offsetDelta={x:L.x,y:L.y}),T.deltaX=ne.x+(L.x-q.x),T.deltaY=ne.y+(L.y-q.y)}function Se($,T){var L=$.lastInterval||T,q=T.timeStamp-L.timeStamp,ne,ve,et,sn;if(T.eventType!=re&&(q>ee||L.velocity===i)){var nn=T.deltaX-L.deltaX,$t=T.deltaY-L.deltaY,On=De(q,nn,$t);ve=On.x,et=On.y,ne=c(On.x)>c(On.y)?On.x:On.y,sn=He(nn,$t),$.lastInterval=T}else ne=L.velocity,ve=L.velocityX,et=L.velocityY,sn=L.direction;T.velocity=ne,T.velocityX=ve,T.velocityY=et,T.direction=sn}function Ve($){for(var T=[],L=0;L<$.pointers.length;)T[L]={clientX:l($.pointers[L].clientX),clientY:l($.pointers[L].clientY)},L++;return{timeStamp:u(),pointers:T,center:Be(T),deltaX:$.deltaX,deltaY:$.deltaY}}function Be($){var T=$.length;if(T===1)return{x:l($[0].clientX),y:l($[0].clientY)};for(var L=0,q=0,ne=0;ne=c(T)?$<0?he:xe:T<0?ie:de}function We($,T,L){L||(L=we);var q=T[L[0]]-$[L[0]],ne=T[L[1]]-$[L[1]];return Math.sqrt(q*q+ne*ne)}function ct($,T,L){L||(L=we);var q=T[L[0]]-$[L[0]],ne=T[L[1]]-$[L[1]];return Math.atan2(ne,q)*180/Math.PI}function ht($,T){return ct(T[1],T[0],$e)+ct($[1],$[0],$e)}function Ge($,T){return We(T[0],T[1],$e)/We($[0],$[1],$e)}var Ct={mousedown:U,mousemove:Y,mouseup:J},kt="mousedown",Et="mousemove mouseup";function gt(){this.evEl=kt,this.evWin=Et,this.pressed=!1,ue.apply(this,arguments)}g(gt,ue,{handler:function(T){var L=Ct[T.type];L&U&&T.button===0&&(this.pressed=!0),L&Y&&T.which!==1&&(L=J),this.pressed&&(L&J&&(this.pressed=!1),this.callback(this.manager,L,{pointers:[T],changedPointers:[T],pointerType:W,srcEvent:T}))}});var xn={pointerdown:U,pointermove:Y,pointerup:J,pointercancel:re,pointerout:re},vt={2:G,3:X,4:W,5:K},_t="pointerdown",Me="pointermove pointerup pointercancel";t.MSPointerEvent&&!t.PointerEvent&&(_t="MSPointerDown",Me="MSPointerMove MSPointerUp MSPointerCancel");function fe(){this.evEl=_t,this.evWin=Me,ue.apply(this,arguments),this.store=this.manager.session.pointerEvents=[]}g(fe,ue,{handler:function(T){var L=this.store,q=!1,ne=T.type.toLowerCase().replace("ms",""),ve=xn[ne],et=vt[T.pointerType]||T.pointerType,sn=et==G,nn=I(L,T.pointerId,"pointerId");ve&U&&(T.button===0||sn)?nn<0&&(L.push(T),nn=L.length-1):ve&(J|re)&&(q=!0),!(nn<0)&&(L[nn]=T,this.callback(this.manager,ve,{pointers:L,changedPointers:[T],pointerType:et,srcEvent:T}),q&&L.splice(nn,1))}});var Re={touchstart:U,touchmove:Y,touchend:J,touchcancel:re},Ie="touchstart",ze="touchstart touchmove touchend touchcancel";function Ee(){this.evTarget=Ie,this.evWin=ze,this.started=!1,ue.apply(this,arguments)}g(Ee,ue,{handler:function(T){var L=Re[T.type];if(L===U&&(this.started=!0),!!this.started){var q=_e.call(this,T,L);L&(J|re)&&q[0].length-q[1].length===0&&(this.started=!1),this.callback(this.manager,L,{pointers:q[0],changedPointers:q[1],pointerType:G,srcEvent:T})}}});function _e($,T){var L=k($.touches),q=k($.changedTouches);return T&(J|re)&&(L=F(L.concat(q),"identifier")),[L,q]}var pe={touchstart:U,touchmove:Y,touchend:J,touchcancel:re},ut="touchstart touchmove touchend touchcancel";function Nt(){this.evTarget=ut,this.targetIds={},ue.apply(this,arguments)}g(Nt,ue,{handler:function(T){var L=pe[T.type],q=mt.call(this,T,L);q&&this.callback(this.manager,L,{pointers:q[0],changedPointers:q[1],pointerType:G,srcEvent:T})}});function mt($,T){var L=k($.touches),q=this.targetIds;if(T&(U|Y)&&L.length===1)return q[L[0].identifier]=!0,[L,L];var ne,ve,et=k($.changedTouches),sn=[],nn=this.target;if(ve=L.filter(function($t){return _($t.target,nn)}),T===U)for(ne=0;ne-1&&q.splice(ve,1)};setTimeout(ne,nt)}}function Xn($){for(var T=$.srcEvent.clientX,L=$.srcEvent.clientY,q=0;q-1&&this.requireFail.splice(T,1),this},hasRequireFailures:function(){return this.requireFail.length>0},canRecognizeWith:function($){return!!this.simultaneous[$.id]},emit:function($){var T=this,L=this.state;function q(ne){T.manager.emit(ne,$)}L=Bt&&q(T.options.event+Yt(L))},tryEmit:function($){if(this.canEmit())return this.emit($);this.state=Dt},canEmit:function(){for(var $=0;$T.threshold&&ne&T.direction},attrTest:function($){return Vt.prototype.attrTest.call(this,$)&&(this.state&qe||!(this.state&qe)&&this.directionTest($))},emit:function($){this.pX=$.deltaX,this.pY=$.deltaY;var T=nr($.direction);T&&($.additionalEvent=this.options.event+T),this._super.emit.call(this,$)}});function _r(){Vt.apply(this,arguments)}g(_r,Vt,{defaults:{event:"pinch",threshold:0,pointers:2},getTouchAction:function(){return[Ye]},attrTest:function($){return this._super.attrTest.call(this,$)&&(Math.abs($.scale-1)>this.options.threshold||this.state&qe)},emit:function($){if($.scale!==1){var T=$.scale<1?"in":"out";$.additionalEvent=this.options.event+T}this._super.emit.call(this,$)}});function $r(){Rt.apply(this,arguments),this._timer=null,this._input=null}g($r,Rt,{defaults:{event:"press",pointers:1,time:251,threshold:9},getTouchAction:function(){return[pt]},process:function($){var T=this.options,L=$.pointers.length===T.pointers,q=$.distanceT.time;if(this._input=$,!q||!L||$.eventType&(J|re)&&!ne)this.reset();else if($.eventType&U)this.reset(),this._timer=f(function(){this.state=Lt,this.tryEmit()},T.time,this);else if($.eventType&J)return Lt;return Dt},reset:function(){clearTimeout(this._timer)},emit:function($){this.state===Lt&&($&&$.eventType&J?this.manager.emit(this.options.event+"up",$):(this._input.timeStamp=u(),this.manager.emit(this.options.event,this._input)))}});function Bn(){Vt.apply(this,arguments)}g(Bn,Vt,{defaults:{event:"rotate",threshold:0,pointers:2},getTouchAction:function(){return[Ye]},attrTest:function($){return this._super.attrTest.call(this,$)&&(Math.abs($.rotation)>this.options.threshold||this.state&qe)}});function Ci(){Vt.apply(this,arguments)}g(Ci,Vt,{defaults:{event:"swipe",threshold:10,velocity:.3,direction:ye|be,pointers:1},getTouchAction:function(){return $n.prototype.getTouchAction.call(this)},attrTest:function($){var T=this.options.direction,L;return T&(ye|be)?L=$.overallVelocity:T&ye?L=$.overallVelocityX:T&be&&(L=$.overallVelocityY),this._super.attrTest.call(this,$)&&T&$.offsetDirection&&$.distance>this.options.threshold&&$.maxPointers==this.options.pointers&&c(L)>this.options.velocity&&$.eventType&J},emit:function($){var T=nr($.offsetDirection);T&&this.manager.emit(this.options.event+T,$),this.manager.emit(this.options.event,$)}});function xt(){Rt.apply(this,arguments),this.pTime=!1,this.pCenter=!1,this._timer=null,this._input=null,this.count=0}g(xt,Rt,{defaults:{event:"tap",pointers:1,taps:1,interval:300,time:250,threshold:9,posThreshold:10},getTouchAction:function(){return[jt]},process:function($){var T=this.options,L=$.pointers.length===T.pointers,q=$.distance\s*\(/gm,"{anonymous}()@"):"Unknown Stack Trace",et=t.console&&(t.console.warn||t.console.log);return et&&et.call(t.console,q,ve),$.apply(this,arguments)}}var v;typeof Object.assign!="function"?v=function(T){if(T===i||T===null)throw new TypeError("Cannot convert undefined or null to object");for(var L=Object(T),q=1;q-1}function M($){return $.trim().split(/\s+/g)}function I($,T,L){if($.indexOf&&!L)return $.indexOf(T);for(var q=0;q<$.length;){if(L&&$[q][L]==T||!L&&$[q]===T)return q;q++}return-1}function k($){return Array.prototype.slice.call($,0)}function F($,T,L){for(var q=[],ne=[],ve=0;ve<$.length;){var et=$[ve][T];I(ne,et)<0&&q.push($[ve]),ne[ve]=et,ve++}return q=q.sort(function(nn,$t){return nn[T]>$t[T]}),q}function j($,T){for(var L,q,ne=T[0].toUpperCase()+T.slice(1),ve=0;ve1&&!L.firstMultiple?L.firstMultiple=Ve(T):ne===1&&(L.firstMultiple=!1);var ve=L.firstInput,et=L.firstMultiple,sn=et?et.center:ve.center,nn=T.center=Be(q);T.timeStamp=u(),T.deltaTime=T.timeStamp-ve.timeStamp,T.angle=ct(sn,nn),T.distance=We(sn,nn),Fe(L,T),T.offsetDirection=He(T.deltaX,T.deltaY);var $t=De(T.deltaTime,T.deltaX,T.deltaY);T.overallVelocityX=$t.x,T.overallVelocityY=$t.y,T.overallVelocity=c($t.x)>c($t.y)?$t.x:$t.y,T.scale=et?Ge(et.pointers,q):1,T.rotation=et?ht(et.pointers,q):0,T.maxPointers=L.prevInput?T.pointers.length>L.prevInput.maxPointers?T.pointers.length:L.prevInput.maxPointers:T.pointers.length,Ce(L,T);var On=$.element;_(T.srcEvent.target,On)&&(On=T.srcEvent.target),T.target=On}function Fe($,T){var L=T.center,q=$.offsetDelta||{},ne=$.prevDelta||{},ve=$.prevInput||{};(T.eventType===U||ve.eventType===J)&&(ne=$.prevDelta={x:ve.deltaX||0,y:ve.deltaY||0},q=$.offsetDelta={x:L.x,y:L.y}),T.deltaX=ne.x+(L.x-q.x),T.deltaY=ne.y+(L.y-q.y)}function Ce($,T){var L=$.lastInterval||T,q=T.timeStamp-L.timeStamp,ne,ve,et,sn;if(T.eventType!=re&&(q>ee||L.velocity===i)){var nn=T.deltaX-L.deltaX,$t=T.deltaY-L.deltaY,On=De(q,nn,$t);ve=On.x,et=On.y,ne=c(On.x)>c(On.y)?On.x:On.y,sn=He(nn,$t),$.lastInterval=T}else ne=L.velocity,ve=L.velocityX,et=L.velocityY,sn=L.direction;T.velocity=ne,T.velocityX=ve,T.velocityY=et,T.direction=sn}function Ve($){for(var T=[],L=0;L<$.pointers.length;)T[L]={clientX:l($.pointers[L].clientX),clientY:l($.pointers[L].clientY)},L++;return{timeStamp:u(),pointers:T,center:Be(T),deltaX:$.deltaX,deltaY:$.deltaY}}function Be($){var T=$.length;if(T===1)return{x:l($[0].clientX),y:l($[0].clientY)};for(var L=0,q=0,ne=0;ne=c(T)?$<0?he:Se:T<0?ie:de}function We($,T,L){L||(L=we);var q=T[L[0]]-$[L[0]],ne=T[L[1]]-$[L[1]];return Math.sqrt(q*q+ne*ne)}function ct($,T,L){L||(L=we);var q=T[L[0]]-$[L[0]],ne=T[L[1]]-$[L[1]];return Math.atan2(ne,q)*180/Math.PI}function ht($,T){return ct(T[1],T[0],$e)+ct($[1],$[0],$e)}function Ge($,T){return We(T[0],T[1],$e)/We($[0],$[1],$e)}var Ct={mousedown:U,mousemove:Y,mouseup:J},kt="mousedown",Et="mousemove mouseup";function gt(){this.evEl=kt,this.evWin=Et,this.pressed=!1,ue.apply(this,arguments)}g(gt,ue,{handler:function(T){var L=Ct[T.type];L&U&&T.button===0&&(this.pressed=!0),L&Y&&T.which!==1&&(L=J),this.pressed&&(L&J&&(this.pressed=!1),this.callback(this.manager,L,{pointers:[T],changedPointers:[T],pointerType:W,srcEvent:T}))}});var xn={pointerdown:U,pointermove:Y,pointerup:J,pointercancel:re,pointerout:re},vt={2:G,3:X,4:W,5:K},_t="pointerdown",Me="pointermove pointerup pointercancel";t.MSPointerEvent&&!t.PointerEvent&&(_t="MSPointerDown",Me="MSPointerMove MSPointerUp MSPointerCancel");function fe(){this.evEl=_t,this.evWin=Me,ue.apply(this,arguments),this.store=this.manager.session.pointerEvents=[]}g(fe,ue,{handler:function(T){var L=this.store,q=!1,ne=T.type.toLowerCase().replace("ms",""),ve=xn[ne],et=vt[T.pointerType]||T.pointerType,sn=et==G,nn=I(L,T.pointerId,"pointerId");ve&U&&(T.button===0||sn)?nn<0&&(L.push(T),nn=L.length-1):ve&(J|re)&&(q=!0),!(nn<0)&&(L[nn]=T,this.callback(this.manager,ve,{pointers:L,changedPointers:[T],pointerType:et,srcEvent:T}),q&&L.splice(nn,1))}});var Re={touchstart:U,touchmove:Y,touchend:J,touchcancel:re},Ie="touchstart",ze="touchstart touchmove touchend touchcancel";function Ee(){this.evTarget=Ie,this.evWin=ze,this.started=!1,ue.apply(this,arguments)}g(Ee,ue,{handler:function(T){var L=Re[T.type];if(L===U&&(this.started=!0),!!this.started){var q=_e.call(this,T,L);L&(J|re)&&q[0].length-q[1].length===0&&(this.started=!1),this.callback(this.manager,L,{pointers:q[0],changedPointers:q[1],pointerType:G,srcEvent:T})}}});function _e($,T){var L=k($.touches),q=k($.changedTouches);return T&(J|re)&&(L=F(L.concat(q),"identifier")),[L,q]}var pe={touchstart:U,touchmove:Y,touchend:J,touchcancel:re},ut="touchstart touchmove touchend touchcancel";function Nt(){this.evTarget=ut,this.targetIds={},ue.apply(this,arguments)}g(Nt,ue,{handler:function(T){var L=pe[T.type],q=mt.call(this,T,L);q&&this.callback(this.manager,L,{pointers:q[0],changedPointers:q[1],pointerType:G,srcEvent:T})}});function mt($,T){var L=k($.touches),q=this.targetIds;if(T&(U|Y)&&L.length===1)return q[L[0].identifier]=!0,[L,L];var ne,ve,et=k($.changedTouches),sn=[],nn=this.target;if(ve=L.filter(function($t){return _($t.target,nn)}),T===U)for(ne=0;ne-1&&q.splice(ve,1)};setTimeout(ne,nt)}}function Xn($){for(var T=$.srcEvent.clientX,L=$.srcEvent.clientY,q=0;q-1&&this.requireFail.splice(T,1),this},hasRequireFailures:function(){return this.requireFail.length>0},canRecognizeWith:function($){return!!this.simultaneous[$.id]},emit:function($){var T=this,L=this.state;function q(ne){T.manager.emit(ne,$)}L=Bt&&q(T.options.event+Yt(L))},tryEmit:function($){if(this.canEmit())return this.emit($);this.state=Dt},canEmit:function(){for(var $=0;$T.threshold&&ne&T.direction},attrTest:function($){return Vt.prototype.attrTest.call(this,$)&&(this.state&qe||!(this.state&qe)&&this.directionTest($))},emit:function($){this.pX=$.deltaX,this.pY=$.deltaY;var T=nr($.direction);T&&($.additionalEvent=this.options.event+T),this._super.emit.call(this,$)}});function _r(){Vt.apply(this,arguments)}g(_r,Vt,{defaults:{event:"pinch",threshold:0,pointers:2},getTouchAction:function(){return[Ye]},attrTest:function($){return this._super.attrTest.call(this,$)&&(Math.abs($.scale-1)>this.options.threshold||this.state&qe)},emit:function($){if($.scale!==1){var T=$.scale<1?"in":"out";$.additionalEvent=this.options.event+T}this._super.emit.call(this,$)}});function $r(){Rt.apply(this,arguments),this._timer=null,this._input=null}g($r,Rt,{defaults:{event:"press",pointers:1,time:251,threshold:9},getTouchAction:function(){return[pt]},process:function($){var T=this.options,L=$.pointers.length===T.pointers,q=$.distanceT.time;if(this._input=$,!q||!L||$.eventType&(J|re)&&!ne)this.reset();else if($.eventType&U)this.reset(),this._timer=f(function(){this.state=Lt,this.tryEmit()},T.time,this);else if($.eventType&J)return Lt;return Dt},reset:function(){clearTimeout(this._timer)},emit:function($){this.state===Lt&&($&&$.eventType&J?this.manager.emit(this.options.event+"up",$):(this._input.timeStamp=u(),this.manager.emit(this.options.event,this._input)))}});function Bn(){Vt.apply(this,arguments)}g(Bn,Vt,{defaults:{event:"rotate",threshold:0,pointers:2},getTouchAction:function(){return[Ye]},attrTest:function($){return this._super.attrTest.call(this,$)&&(Math.abs($.rotation)>this.options.threshold||this.state&qe)}});function Ci(){Vt.apply(this,arguments)}g(Ci,Vt,{defaults:{event:"swipe",threshold:10,velocity:.3,direction:ye|be,pointers:1},getTouchAction:function(){return $n.prototype.getTouchAction.call(this)},attrTest:function($){var T=this.options.direction,L;return T&(ye|be)?L=$.overallVelocity:T&ye?L=$.overallVelocityX:T&be&&(L=$.overallVelocityY),this._super.attrTest.call(this,$)&&T&$.offsetDirection&&$.distance>this.options.threshold&&$.maxPointers==this.options.pointers&&c(L)>this.options.velocity&&$.eventType&J},emit:function($){var T=nr($.offsetDirection);T&&this.manager.emit(this.options.event+T,$),this.manager.emit(this.options.event,$)}});function xt(){Rt.apply(this,arguments),this.pTime=!1,this.pCenter=!1,this._timer=null,this._input=null,this.count=0}g(xt,Rt,{defaults:{event:"tap",pointers:1,taps:1,interval:300,time:250,threshold:9,posThreshold:10},getTouchAction:function(){return[jt]},process:function($){var T=this.options,L=$.pointers.length===T.pointers,q=$.distancee&&e.enabled&&e.modifierKey,s2=(e,t)=>e&&t[e+"Key"],C0=(e,t)=>e&&!t[e+"Key"];function _o(e,t,n){return e===void 0?!0:typeof e=="string"?e.indexOf(t)!==-1:typeof e=="function"?e({chart:n}).indexOf(t)!==-1:!1}function lg(e,t){return typeof e=="function"&&(e=e({chart:t})),typeof e=="string"?{x:e.indexOf("x")!==-1,y:e.indexOf("y")!==-1}:{x:!1,y:!1}}function SB(e,t){let n;return function(){return clearTimeout(n),n=setTimeout(e,t),t}}function CB({x:e,y:t},n){const r=n.scales,i=Object.keys(r);for(let o=0;o=a.top&&t<=a.bottom&&e>=a.left&&e<=a.right)return a}return null}function l2(e,t,n){const{mode:r="xy",scaleMode:i,overScaleMode:o}=e||{},a=CB(t,n),s=lg(r,n),l=lg(i,n);if(o){const u=lg(o,n);for(const f of["x","y"])u[f]&&(l[f]=s[f],s[f]=!1)}if(a&&l[a.axis])return[a];const c=[];return at(n.scales,function(u){s[u.axis]&&c.push(u)}),c}const vp=new WeakMap;function fn(e){let t=vp.get(e);return t||(t={originalScaleLimits:{},updatedScaleLimits:{},handlers:{},panDelta:{}},vp.set(e,t)),t}function wB(e){vp.delete(e)}function c2(e,t,n){const r=e.max-e.min,i=r*(t-1),o=e.isHorizontal()?n.x:n.y,a=Math.max(0,Math.min(1,(e.getValueForPixel(o)-e.min)/r||0)),s=1-a;return{min:i*a,max:i*s}}function rS(e,t,n,r,i){let o=n[r];if(o==="original"){const a=e.originalScaleLimits[t.id][r];o=it(a.options,a.scale)}return it(o,i)}function EB(e,t,n){const r=e.getValueForPixel(t),i=e.getValueForPixel(n);return{min:Math.min(r,i),max:Math.max(r,i)}}function Fs(e,{min:t,max:n},r,i=!1){const o=fn(e.chart),{id:a,axis:s,options:l}=e,c=r&&(r[a]||r[s])||{},{minRange:u=0}=c,f=rS(o,e,c,"min",-1/0),h=rS(o,e,c,"max",1/0),m=i?Math.max(n-t,u):e.max-e.min,y=(m-n+t)/2;return t-=y,n+=y,th&&(n=h,t=Math.max(h-m,f)),l.min=t,l.max=n,o.updatedScaleLimits[e.id]={min:t,max:n},e.parse(t)!==e.min||e.parse(n)!==e.max}function _B(e,t,n,r){const i=c2(e,t,n),o={min:e.min+i.min,max:e.max-i.max};return Fs(e,o,r,!0)}function $B(e,t,n,r){Fs(e,EB(e,t,n),r,!0)}const iS=e=>e===0||isNaN(e)?0:e<0?Math.min(Math.round(e),-1):Math.max(Math.round(e),1);function OB(e){const n=e.getLabels().length-1;e.min>0&&(e.min-=1),e.maxl&&(o=Math.max(0,o-c),a=s===1?o:o+s,u=o===0),Fs(e,{min:o,max:a},n)||u}const RB={second:500,minute:30*1e3,hour:30*60*1e3,day:12*60*60*1e3,week:3.5*24*60*60*1e3,month:15*24*60*60*1e3,quarter:60*24*60*60*1e3,year:182*24*60*60*1e3};function u2(e,t,n,r=!1){const{min:i,max:o,options:a}=e,s=a.time&&a.time.round,l=RB[s]||0,c=e.getValueForPixel(e.getPixelForValue(i+l)-t),u=e.getValueForPixel(e.getPixelForValue(o+l)-t),{min:f=-1/0,max:h=1/0}=r&&n&&n[e.axis]||{};return isNaN(c)||isNaN(u)||ch?!0:Fs(e,{min:c,max:u},n,r)}function oS(e,t,n){return u2(e,t,n,!0)}const yp={category:PB,default:_B},bp={default:$B},xp={category:TB,default:u2,logarithmic:oS,timeseries:oS};function IB(e,t,n){const{id:r,options:{min:i,max:o}}=e;if(!t[r]||!n[r])return!0;const a=n[r];return a.min!==i||a.max!==o}function aS(e,t){at(e,(n,r)=>{t[r]||delete e[r]})}function As(e,t){const{scales:n}=e,{originalScaleLimits:r,updatedScaleLimits:i}=t;return at(n,function(o){IB(o,r,i)&&(r[o.id]={min:{scale:o.min,options:o.options.min},max:{scale:o.max,options:o.options.max}})}),aS(r,n),aS(i,n),r}function sS(e,t,n,r){const i=yp[e.type]||yp.default;Xe(i,[e,t,n,r])}function lS(e,t,n,r,i){const o=bp[e.type]||bp.default;Xe(o,[e,t,n,r,i])}function kB(e){const t=e.chartArea;return{x:(t.left+t.right)/2,y:(t.top+t.bottom)/2}}function w0(e,t,n="none"){const{x:r=1,y:i=1,focalPoint:o=kB(e)}=typeof t=="number"?{x:t,y:t}:t,a=fn(e),{options:{limits:s,zoom:l}}=a;As(e,a);const c=r!==1,u=i!==1,f=l2(l,o,e);at(f||e.scales,function(h){h.isHorizontal()&&c?sS(h,r,o,s):!h.isHorizontal()&&u&&sS(h,i,o,s)}),e.update(n),Xe(l.onZoom,[{chart:e}])}function d2(e,t,n,r="none"){const i=fn(e),{options:{limits:o,zoom:a}}=i,{mode:s="xy"}=a;As(e,i);const l=_o(s,"x",e),c=_o(s,"y",e);at(e.scales,function(u){u.isHorizontal()&&l?lS(u,t.x,n.x,o):!u.isHorizontal()&&c&&lS(u,t.y,n.y,o)}),e.update(r),Xe(a.onZoom,[{chart:e}])}function NB(e,t,n,r="none"){As(e,fn(e));const i=e.scales[t];Fs(i,n,void 0,!0),e.update(r)}function FB(e,t="default"){const n=fn(e),r=As(e,n);at(e.scales,function(i){const o=i.options;r[i.id]?(o.min=r[i.id].min.options,o.max=r[i.id].max.options):(delete o.min,delete o.max)}),e.update(t),Xe(n.options.zoom.onZoomComplete,[{chart:e}])}function AB(e,t){const n=e.originalScaleLimits[t];if(!n)return;const{min:r,max:i}=n;return it(i.options,i.scale)-it(r.options,r.scale)}function LB(e){const t=fn(e);let n=1,r=1;return at(e.scales,function(i){const o=AB(t,i.id);if(o){const a=Math.round(o/(i.max-i.min)*100)/100;n=Math.min(n,a),r=Math.max(r,a)}}),n<1?n:r}function cS(e,t,n,r){const{panDelta:i}=r,o=i[e.id]||0;Eo(o)===Eo(t)&&(t+=o);const a=xp[e.type]||xp.default;Xe(a,[e,t,n])?i[e.id]=0:i[e.id]=t}function f2(e,t,n,r="none"){const{x:i=0,y:o=0}=typeof t=="number"?{x:t,y:t}:t,a=fn(e),{options:{pan:s,limits:l}}=a,{onPan:c}=s||{};As(e,a);const u=i!==0,f=o!==0;at(n||e.scales,function(h){h.isHorizontal()&&u?cS(h,i,l,a):!h.isHorizontal()&&f&&cS(h,o,l,a)}),e.update(r),Xe(c,[{chart:e}])}function h2(e){const t=fn(e);As(e,t);const n={};for(const r of Object.keys(e.scales)){const{min:i,max:o}=t.originalScaleLimits[r]||{min:{},max:{}};n[r]={min:i.scale,max:o.scale}}return n}function DB(e){const t=h2(e);for(const n of Object.keys(e.scales)){const{min:r,max:i}=t[n];if(r!==void 0&&e.scales[n].min!==r||i!==void 0&&e.scales[n].max!==i)return!0}return!1}function sr(e,t){const{handlers:n}=fn(e),r=n[t];r&&r.target&&(r.target.removeEventListener(t,r),delete n[t])}function Al(e,t,n,r){const{handlers:i,options:o}=fn(e),a=i[n];a&&a.target===t||(sr(e,n),i[n]=s=>r(e,s,o),i[n].target=t,t.addEventListener(n,i[n]))}function zB(e,t){const n=fn(e);n.dragStart&&(n.dragging=!0,n.dragEnd=t,e.update("none"))}function jB(e,t){const n=fn(e);!n.dragStart||t.key!=="Escape"||(sr(e,"keydown"),n.dragging=!1,n.dragStart=n.dragEnd=null,e.update("none"))}function g2(e,t,n){const{onZoomStart:r,onZoomRejected:i}=n;if(r){const o=mi(t,e);if(Xe(r,[{chart:e,event:t,point:o}])===!1)return Xe(i,[{chart:e,event:t}]),!1}}function BB(e,t){const n=fn(e),{pan:r,zoom:i={}}=n.options;if(t.button!==0||s2(Cc(r),t)||C0(Cc(i.drag),t))return Xe(i.onZoomRejected,[{chart:e,event:t}]);g2(e,t,i)!==!1&&(n.dragStart=t,Al(e,e.canvas,"mousemove",zB),Al(e,window.document,"keydown",jB))}function m2(e,t,n,r){const i=_o(t,"x",e),o=_o(t,"y",e);let{top:a,left:s,right:l,bottom:c,width:u,height:f}=e.chartArea;const h=mi(n,e),m=mi(r,e);i&&(s=Math.min(h.x,m.x),l=Math.max(h.x,m.x)),o&&(a=Math.min(h.y,m.y),c=Math.max(h.y,m.y));const y=l-s,v=c-a;return{left:s,top:a,right:l,bottom:c,width:y,height:v,zoomX:i&&y?1+(u-y)/u:1,zoomY:o&&v?1+(f-v)/f:1}}function HB(e,t){const n=fn(e);if(!n.dragStart)return;sr(e,"mousemove");const{mode:r,onZoomComplete:i,drag:{threshold:o=0}}=n.options.zoom,a=m2(e,r,n.dragStart,t),s=_o(r,"x",e)?a.width:0,l=_o(r,"y",e)?a.height:0,c=Math.sqrt(s*s+l*l);if(n.dragStart=n.dragEnd=null,c<=o){n.dragging=!1,e.update("none");return}d2(e,{x:a.left,y:a.top},{x:a.right,y:a.bottom},"zoom"),setTimeout(()=>n.dragging=!1,500),Xe(i,[{chart:e}])}function VB(e,t,n){if(C0(Cc(n.wheel),t)){Xe(n.onZoomRejected,[{chart:e,event:t}]);return}if(g2(e,t,n)!==!1&&(t.cancelable&&t.preventDefault(),t.deltaY!==void 0))return!0}function WB(e,t){const{handlers:{onZoomComplete:n},options:{zoom:r}}=fn(e);if(!VB(e,t,r))return;const i=t.target.getBoundingClientRect(),o=1+(t.deltaY>=0?-r.wheel.speed:r.wheel.speed),a={x:o,y:o,focalPoint:{x:t.clientX-i.left,y:t.clientY-i.top}};w0(e,a),n&&n()}function UB(e,t,n,r){n&&(fn(e).handlers[t]=SB(()=>Xe(n,[{chart:e}]),r))}function GB(e,t){const n=e.canvas,{wheel:r,drag:i,onZoomComplete:o}=t.zoom;r.enabled?(Al(e,n,"wheel",WB),UB(e,"onZoomComplete",o,250)):sr(e,"wheel"),i.enabled?(Al(e,n,"mousedown",BB),Al(e,n.ownerDocument,"mouseup",HB)):(sr(e,"mousedown"),sr(e,"mousemove"),sr(e,"mouseup"),sr(e,"keydown"))}function KB(e){sr(e,"mousedown"),sr(e,"mousemove"),sr(e,"mouseup"),sr(e,"wheel"),sr(e,"click"),sr(e,"keydown")}function qB(e,t){return function(n,r){const{pan:i,zoom:o={}}=t.options;if(!i||!i.enabled)return!1;const a=r&&r.srcEvent;return a&&!t.panning&&r.pointerType==="mouse"&&(C0(Cc(i),a)||s2(Cc(o.drag),a))?(Xe(i.onPanRejected,[{chart:e,event:r}]),!1):!0}}function XB(e,t){const n=Math.abs(e.clientX-t.clientX),r=Math.abs(e.clientY-t.clientY),i=n/r;let o,a;return i>.3&&i<1.7?o=a=!0:n>r?o=!0:a=!0,{x:o,y:a}}function p2(e,t,n){if(t.scale){const{center:r,pointers:i}=n,o=1/t.scale*n.scale,a=n.target.getBoundingClientRect(),s=XB(i[0],i[1]),l=t.options.zoom.mode,c={x:s.x&&_o(l,"x",e)?o:1,y:s.y&&_o(l,"y",e)?o:1,focalPoint:{x:r.x-a.left,y:r.y-a.top}};w0(e,c),t.scale=n.scale}}function YB(e,t){t.options.zoom.pinch.enabled&&(t.scale=1)}function QB(e,t,n){t.scale&&(p2(e,t,n),t.scale=null,Xe(t.options.zoom.onZoomComplete,[{chart:e}]))}function v2(e,t,n){const r=t.delta;r&&(t.panning=!0,f2(e,{x:n.deltaX-r.x,y:n.deltaY-r.y},t.panScales),t.delta={x:n.deltaX,y:n.deltaY})}function ZB(e,t,n){const{enabled:r,onPanStart:i,onPanRejected:o}=t.options.pan;if(!r)return;const a=n.target.getBoundingClientRect(),s={x:n.center.x-a.left,y:n.center.y-a.top};if(Xe(i,[{chart:e,event:n,point:s}])===!1)return Xe(o,[{chart:e,event:n}]);t.panScales=l2(t.options.pan,s,e),t.delta={x:0,y:0},clearTimeout(t.panEndTimeout),v2(e,t,n)}function JB(e,t){t.delta=null,t.panning&&(t.panEndTimeout=setTimeout(()=>t.panning=!1,500),Xe(t.options.pan.onPanComplete,[{chart:e}]))}const Sp=new WeakMap;function eH(e,t){const n=fn(e),r=e.canvas,{pan:i,zoom:o}=t,a=new Fl.Manager(r);o&&o.pinch.enabled&&(a.add(new Fl.Pinch),a.on("pinchstart",()=>YB(e,n)),a.on("pinch",s=>p2(e,n,s)),a.on("pinchend",s=>QB(e,n,s))),i&&i.enabled&&(a.add(new Fl.Pan({threshold:i.threshold,enable:qB(e,n)})),a.on("panstart",s=>ZB(e,n,s)),a.on("panmove",s=>v2(e,n,s)),a.on("panend",()=>JB(e,n))),Sp.set(e,a)}function tH(e){const t=Sp.get(e);t&&(t.remove("pinchstart"),t.remove("pinch"),t.remove("pinchend"),t.remove("panstart"),t.remove("pan"),t.remove("panend"),t.destroy(),Sp.delete(e))}var nH="2.0.1";function ku(e,t,n){const r=n.zoom.drag,{dragStart:i,dragEnd:o}=fn(e);if(r.drawTime!==t||!o)return;const{left:a,top:s,width:l,height:c}=m2(e,n.zoom.mode,i,o),u=e.ctx;u.save(),u.beginPath(),u.fillStyle=r.backgroundColor||"rgba(225,225,225,0.3)",u.fillRect(a,s,l,c),r.borderWidth>0&&(u.lineWidth=r.borderWidth,u.strokeStyle=r.borderColor||"rgba(225,225,225)",u.strokeRect(a,s,l,c)),u.restore()}var rH={id:"zoom",version:nH,defaults:{pan:{enabled:!1,mode:"xy",threshold:10,modifierKey:null},zoom:{wheel:{enabled:!1,speed:.1,modifierKey:null},drag:{enabled:!1,drawTime:"beforeDatasetsDraw",modifierKey:null},pinch:{enabled:!1},mode:"xy"}},start:function(e,t,n){const r=fn(e);r.options=n,Object.prototype.hasOwnProperty.call(n.zoom,"enabled")&&console.warn("The option `zoom.enabled` is no longer supported. Please use `zoom.wheel.enabled`, `zoom.drag.enabled`, or `zoom.pinch.enabled`."),(Object.prototype.hasOwnProperty.call(n.zoom,"overScaleMode")||Object.prototype.hasOwnProperty.call(n.pan,"overScaleMode"))&&console.warn("The option `overScaleMode` is deprecated. Please use `scaleMode` instead (and update `mode` as desired)."),Fl&&eH(e,n),e.pan=(i,o,a)=>f2(e,i,o,a),e.zoom=(i,o)=>w0(e,i,o),e.zoomRect=(i,o,a)=>d2(e,i,o,a),e.zoomScale=(i,o,a)=>NB(e,i,o,a),e.resetZoom=i=>FB(e,i),e.getZoomLevel=()=>LB(e),e.getInitialScaleBounds=()=>h2(e),e.isZoomedOrPanned=()=>DB(e)},beforeEvent(e){const t=fn(e);if(t.panning||t.dragging)return!1},beforeUpdate:function(e,t,n){const r=fn(e);r.options=n,GB(e,n)},beforeDatasetsDraw(e,t,n){ku(e,"beforeDatasetsDraw",n)},afterDatasetsDraw(e,t,n){ku(e,"afterDatasetsDraw",n)},beforeDraw(e,t,n){ku(e,"beforeDraw",n)},afterDraw(e,t,n){ku(e,"afterDraw",n)},stop:function(e){KB(e),Fl&&tH(e),wB(e)},panFunctions:xp,zoomFunctions:yp,zoomRectFunctions:bp};qf.register(mp,pp,ld,fl,V6,Q6,B6,rH);ww(document.getElementById("root")).render(Ce.jsx(d.StrictMode,{children:Ce.jsx(bB,{})})); + */const Cc=e=>e&&e.enabled&&e.modifierKey,s2=(e,t)=>e&&t[e+"Key"],C0=(e,t)=>e&&!t[e+"Key"];function _o(e,t,n){return e===void 0?!0:typeof e=="string"?e.indexOf(t)!==-1:typeof e=="function"?e({chart:n}).indexOf(t)!==-1:!1}function sg(e,t){return typeof e=="function"&&(e=e({chart:t})),typeof e=="string"?{x:e.indexOf("x")!==-1,y:e.indexOf("y")!==-1}:{x:!1,y:!1}}function SB(e,t){let n;return function(){return clearTimeout(n),n=setTimeout(e,t),t}}function CB({x:e,y:t},n){const r=n.scales,i=Object.keys(r);for(let o=0;o=a.top&&t<=a.bottom&&e>=a.left&&e<=a.right)return a}return null}function l2(e,t,n){const{mode:r="xy",scaleMode:i,overScaleMode:o}=e||{},a=CB(t,n),s=sg(r,n),l=sg(i,n);if(o){const u=sg(o,n);for(const f of["x","y"])u[f]&&(l[f]=s[f],s[f]=!1)}if(a&&l[a.axis])return[a];const c=[];return at(n.scales,function(u){s[u.axis]&&c.push(u)}),c}const vp=new WeakMap;function fn(e){let t=vp.get(e);return t||(t={originalScaleLimits:{},updatedScaleLimits:{},handlers:{},panDelta:{}},vp.set(e,t)),t}function wB(e){vp.delete(e)}function c2(e,t,n){const r=e.max-e.min,i=r*(t-1),o=e.isHorizontal()?n.x:n.y,a=Math.max(0,Math.min(1,(e.getValueForPixel(o)-e.min)/r||0)),s=1-a;return{min:i*a,max:i*s}}function rS(e,t,n,r,i){let o=n[r];if(o==="original"){const a=e.originalScaleLimits[t.id][r];o=it(a.options,a.scale)}return it(o,i)}function EB(e,t,n){const r=e.getValueForPixel(t),i=e.getValueForPixel(n);return{min:Math.min(r,i),max:Math.max(r,i)}}function Fs(e,{min:t,max:n},r,i=!1){const o=fn(e.chart),{id:a,axis:s,options:l}=e,c=r&&(r[a]||r[s])||{},{minRange:u=0}=c,f=rS(o,e,c,"min",-1/0),h=rS(o,e,c,"max",1/0),m=i?Math.max(n-t,u):e.max-e.min,y=(m-n+t)/2;return t-=y,n+=y,th&&(n=h,t=Math.max(h-m,f)),l.min=t,l.max=n,o.updatedScaleLimits[e.id]={min:t,max:n},e.parse(t)!==e.min||e.parse(n)!==e.max}function _B(e,t,n,r){const i=c2(e,t,n),o={min:e.min+i.min,max:e.max-i.max};return Fs(e,o,r,!0)}function $B(e,t,n,r){Fs(e,EB(e,t,n),r,!0)}const iS=e=>e===0||isNaN(e)?0:e<0?Math.min(Math.round(e),-1):Math.max(Math.round(e),1);function OB(e){const n=e.getLabels().length-1;e.min>0&&(e.min-=1),e.maxl&&(o=Math.max(0,o-c),a=s===1?o:o+s,u=o===0),Fs(e,{min:o,max:a},n)||u}const RB={second:500,minute:30*1e3,hour:30*60*1e3,day:12*60*60*1e3,week:3.5*24*60*60*1e3,month:15*24*60*60*1e3,quarter:60*24*60*60*1e3,year:182*24*60*60*1e3};function u2(e,t,n,r=!1){const{min:i,max:o,options:a}=e,s=a.time&&a.time.round,l=RB[s]||0,c=e.getValueForPixel(e.getPixelForValue(i+l)-t),u=e.getValueForPixel(e.getPixelForValue(o+l)-t),{min:f=-1/0,max:h=1/0}=r&&n&&n[e.axis]||{};return isNaN(c)||isNaN(u)||ch?!0:Fs(e,{min:c,max:u},n,r)}function oS(e,t,n){return u2(e,t,n,!0)}const yp={category:PB,default:_B},bp={default:$B},xp={category:TB,default:u2,logarithmic:oS,timeseries:oS};function IB(e,t,n){const{id:r,options:{min:i,max:o}}=e;if(!t[r]||!n[r])return!0;const a=n[r];return a.min!==i||a.max!==o}function aS(e,t){at(e,(n,r)=>{t[r]||delete e[r]})}function As(e,t){const{scales:n}=e,{originalScaleLimits:r,updatedScaleLimits:i}=t;return at(n,function(o){IB(o,r,i)&&(r[o.id]={min:{scale:o.min,options:o.options.min},max:{scale:o.max,options:o.options.max}})}),aS(r,n),aS(i,n),r}function sS(e,t,n,r){const i=yp[e.type]||yp.default;Xe(i,[e,t,n,r])}function lS(e,t,n,r,i){const o=bp[e.type]||bp.default;Xe(o,[e,t,n,r,i])}function kB(e){const t=e.chartArea;return{x:(t.left+t.right)/2,y:(t.top+t.bottom)/2}}function w0(e,t,n="none"){const{x:r=1,y:i=1,focalPoint:o=kB(e)}=typeof t=="number"?{x:t,y:t}:t,a=fn(e),{options:{limits:s,zoom:l}}=a;As(e,a);const c=r!==1,u=i!==1,f=l2(l,o,e);at(f||e.scales,function(h){h.isHorizontal()&&c?sS(h,r,o,s):!h.isHorizontal()&&u&&sS(h,i,o,s)}),e.update(n),Xe(l.onZoom,[{chart:e}])}function d2(e,t,n,r="none"){const i=fn(e),{options:{limits:o,zoom:a}}=i,{mode:s="xy"}=a;As(e,i);const l=_o(s,"x",e),c=_o(s,"y",e);at(e.scales,function(u){u.isHorizontal()&&l?lS(u,t.x,n.x,o):!u.isHorizontal()&&c&&lS(u,t.y,n.y,o)}),e.update(r),Xe(a.onZoom,[{chart:e}])}function NB(e,t,n,r="none"){As(e,fn(e));const i=e.scales[t];Fs(i,n,void 0,!0),e.update(r)}function FB(e,t="default"){const n=fn(e),r=As(e,n);at(e.scales,function(i){const o=i.options;r[i.id]?(o.min=r[i.id].min.options,o.max=r[i.id].max.options):(delete o.min,delete o.max)}),e.update(t),Xe(n.options.zoom.onZoomComplete,[{chart:e}])}function AB(e,t){const n=e.originalScaleLimits[t];if(!n)return;const{min:r,max:i}=n;return it(i.options,i.scale)-it(r.options,r.scale)}function LB(e){const t=fn(e);let n=1,r=1;return at(e.scales,function(i){const o=AB(t,i.id);if(o){const a=Math.round(o/(i.max-i.min)*100)/100;n=Math.min(n,a),r=Math.max(r,a)}}),n<1?n:r}function cS(e,t,n,r){const{panDelta:i}=r,o=i[e.id]||0;Eo(o)===Eo(t)&&(t+=o);const a=xp[e.type]||xp.default;Xe(a,[e,t,n])?i[e.id]=0:i[e.id]=t}function f2(e,t,n,r="none"){const{x:i=0,y:o=0}=typeof t=="number"?{x:t,y:t}:t,a=fn(e),{options:{pan:s,limits:l}}=a,{onPan:c}=s||{};As(e,a);const u=i!==0,f=o!==0;at(n||e.scales,function(h){h.isHorizontal()&&u?cS(h,i,l,a):!h.isHorizontal()&&f&&cS(h,o,l,a)}),e.update(r),Xe(c,[{chart:e}])}function h2(e){const t=fn(e);As(e,t);const n={};for(const r of Object.keys(e.scales)){const{min:i,max:o}=t.originalScaleLimits[r]||{min:{},max:{}};n[r]={min:i.scale,max:o.scale}}return n}function DB(e){const t=h2(e);for(const n of Object.keys(e.scales)){const{min:r,max:i}=t[n];if(r!==void 0&&e.scales[n].min!==r||i!==void 0&&e.scales[n].max!==i)return!0}return!1}function sr(e,t){const{handlers:n}=fn(e),r=n[t];r&&r.target&&(r.target.removeEventListener(t,r),delete n[t])}function Al(e,t,n,r){const{handlers:i,options:o}=fn(e),a=i[n];a&&a.target===t||(sr(e,n),i[n]=s=>r(e,s,o),i[n].target=t,t.addEventListener(n,i[n]))}function zB(e,t){const n=fn(e);n.dragStart&&(n.dragging=!0,n.dragEnd=t,e.update("none"))}function jB(e,t){const n=fn(e);!n.dragStart||t.key!=="Escape"||(sr(e,"keydown"),n.dragging=!1,n.dragStart=n.dragEnd=null,e.update("none"))}function g2(e,t,n){const{onZoomStart:r,onZoomRejected:i}=n;if(r){const o=mi(t,e);if(Xe(r,[{chart:e,event:t,point:o}])===!1)return Xe(i,[{chart:e,event:t}]),!1}}function BB(e,t){const n=fn(e),{pan:r,zoom:i={}}=n.options;if(t.button!==0||s2(Cc(r),t)||C0(Cc(i.drag),t))return Xe(i.onZoomRejected,[{chart:e,event:t}]);g2(e,t,i)!==!1&&(n.dragStart=t,Al(e,e.canvas,"mousemove",zB),Al(e,window.document,"keydown",jB))}function m2(e,t,n,r){const i=_o(t,"x",e),o=_o(t,"y",e);let{top:a,left:s,right:l,bottom:c,width:u,height:f}=e.chartArea;const h=mi(n,e),m=mi(r,e);i&&(s=Math.min(h.x,m.x),l=Math.max(h.x,m.x)),o&&(a=Math.min(h.y,m.y),c=Math.max(h.y,m.y));const y=l-s,v=c-a;return{left:s,top:a,right:l,bottom:c,width:y,height:v,zoomX:i&&y?1+(u-y)/u:1,zoomY:o&&v?1+(f-v)/f:1}}function HB(e,t){const n=fn(e);if(!n.dragStart)return;sr(e,"mousemove");const{mode:r,onZoomComplete:i,drag:{threshold:o=0}}=n.options.zoom,a=m2(e,r,n.dragStart,t),s=_o(r,"x",e)?a.width:0,l=_o(r,"y",e)?a.height:0,c=Math.sqrt(s*s+l*l);if(n.dragStart=n.dragEnd=null,c<=o){n.dragging=!1,e.update("none");return}d2(e,{x:a.left,y:a.top},{x:a.right,y:a.bottom},"zoom"),setTimeout(()=>n.dragging=!1,500),Xe(i,[{chart:e}])}function VB(e,t,n){if(C0(Cc(n.wheel),t)){Xe(n.onZoomRejected,[{chart:e,event:t}]);return}if(g2(e,t,n)!==!1&&(t.cancelable&&t.preventDefault(),t.deltaY!==void 0))return!0}function WB(e,t){const{handlers:{onZoomComplete:n},options:{zoom:r}}=fn(e);if(!VB(e,t,r))return;const i=t.target.getBoundingClientRect(),o=1+(t.deltaY>=0?-r.wheel.speed:r.wheel.speed),a={x:o,y:o,focalPoint:{x:t.clientX-i.left,y:t.clientY-i.top}};w0(e,a),n&&n()}function UB(e,t,n,r){n&&(fn(e).handlers[t]=SB(()=>Xe(n,[{chart:e}]),r))}function GB(e,t){const n=e.canvas,{wheel:r,drag:i,onZoomComplete:o}=t.zoom;r.enabled?(Al(e,n,"wheel",WB),UB(e,"onZoomComplete",o,250)):sr(e,"wheel"),i.enabled?(Al(e,n,"mousedown",BB),Al(e,n.ownerDocument,"mouseup",HB)):(sr(e,"mousedown"),sr(e,"mousemove"),sr(e,"mouseup"),sr(e,"keydown"))}function KB(e){sr(e,"mousedown"),sr(e,"mousemove"),sr(e,"mouseup"),sr(e,"wheel"),sr(e,"click"),sr(e,"keydown")}function qB(e,t){return function(n,r){const{pan:i,zoom:o={}}=t.options;if(!i||!i.enabled)return!1;const a=r&&r.srcEvent;return a&&!t.panning&&r.pointerType==="mouse"&&(C0(Cc(i),a)||s2(Cc(o.drag),a))?(Xe(i.onPanRejected,[{chart:e,event:r}]),!1):!0}}function XB(e,t){const n=Math.abs(e.clientX-t.clientX),r=Math.abs(e.clientY-t.clientY),i=n/r;let o,a;return i>.3&&i<1.7?o=a=!0:n>r?o=!0:a=!0,{x:o,y:a}}function p2(e,t,n){if(t.scale){const{center:r,pointers:i}=n,o=1/t.scale*n.scale,a=n.target.getBoundingClientRect(),s=XB(i[0],i[1]),l=t.options.zoom.mode,c={x:s.x&&_o(l,"x",e)?o:1,y:s.y&&_o(l,"y",e)?o:1,focalPoint:{x:r.x-a.left,y:r.y-a.top}};w0(e,c),t.scale=n.scale}}function YB(e,t){t.options.zoom.pinch.enabled&&(t.scale=1)}function QB(e,t,n){t.scale&&(p2(e,t,n),t.scale=null,Xe(t.options.zoom.onZoomComplete,[{chart:e}]))}function v2(e,t,n){const r=t.delta;r&&(t.panning=!0,f2(e,{x:n.deltaX-r.x,y:n.deltaY-r.y},t.panScales),t.delta={x:n.deltaX,y:n.deltaY})}function ZB(e,t,n){const{enabled:r,onPanStart:i,onPanRejected:o}=t.options.pan;if(!r)return;const a=n.target.getBoundingClientRect(),s={x:n.center.x-a.left,y:n.center.y-a.top};if(Xe(i,[{chart:e,event:n,point:s}])===!1)return Xe(o,[{chart:e,event:n}]);t.panScales=l2(t.options.pan,s,e),t.delta={x:0,y:0},clearTimeout(t.panEndTimeout),v2(e,t,n)}function JB(e,t){t.delta=null,t.panning&&(t.panEndTimeout=setTimeout(()=>t.panning=!1,500),Xe(t.options.pan.onPanComplete,[{chart:e}]))}const Sp=new WeakMap;function e8(e,t){const n=fn(e),r=e.canvas,{pan:i,zoom:o}=t,a=new Fl.Manager(r);o&&o.pinch.enabled&&(a.add(new Fl.Pinch),a.on("pinchstart",()=>YB(e,n)),a.on("pinch",s=>p2(e,n,s)),a.on("pinchend",s=>QB(e,n,s))),i&&i.enabled&&(a.add(new Fl.Pan({threshold:i.threshold,enable:qB(e,n)})),a.on("panstart",s=>ZB(e,n,s)),a.on("panmove",s=>v2(e,n,s)),a.on("panend",()=>JB(e,n))),Sp.set(e,a)}function t8(e){const t=Sp.get(e);t&&(t.remove("pinchstart"),t.remove("pinch"),t.remove("pinchend"),t.remove("panstart"),t.remove("pan"),t.remove("panend"),t.destroy(),Sp.delete(e))}var n8="2.0.1";function ku(e,t,n){const r=n.zoom.drag,{dragStart:i,dragEnd:o}=fn(e);if(r.drawTime!==t||!o)return;const{left:a,top:s,width:l,height:c}=m2(e,n.zoom.mode,i,o),u=e.ctx;u.save(),u.beginPath(),u.fillStyle=r.backgroundColor||"rgba(225,225,225,0.3)",u.fillRect(a,s,l,c),r.borderWidth>0&&(u.lineWidth=r.borderWidth,u.strokeStyle=r.borderColor||"rgba(225,225,225)",u.strokeRect(a,s,l,c)),u.restore()}var r8={id:"zoom",version:n8,defaults:{pan:{enabled:!1,mode:"xy",threshold:10,modifierKey:null},zoom:{wheel:{enabled:!1,speed:.1,modifierKey:null},drag:{enabled:!1,drawTime:"beforeDatasetsDraw",modifierKey:null},pinch:{enabled:!1},mode:"xy"}},start:function(e,t,n){const r=fn(e);r.options=n,Object.prototype.hasOwnProperty.call(n.zoom,"enabled")&&console.warn("The option `zoom.enabled` is no longer supported. Please use `zoom.wheel.enabled`, `zoom.drag.enabled`, or `zoom.pinch.enabled`."),(Object.prototype.hasOwnProperty.call(n.zoom,"overScaleMode")||Object.prototype.hasOwnProperty.call(n.pan,"overScaleMode"))&&console.warn("The option `overScaleMode` is deprecated. Please use `scaleMode` instead (and update `mode` as desired)."),Fl&&e8(e,n),e.pan=(i,o,a)=>f2(e,i,o,a),e.zoom=(i,o)=>w0(e,i,o),e.zoomRect=(i,o,a)=>d2(e,i,o,a),e.zoomScale=(i,o,a)=>NB(e,i,o,a),e.resetZoom=i=>FB(e,i),e.getZoomLevel=()=>LB(e),e.getInitialScaleBounds=()=>h2(e),e.isZoomedOrPanned=()=>DB(e)},beforeEvent(e){const t=fn(e);if(t.panning||t.dragging)return!1},beforeUpdate:function(e,t,n){const r=fn(e);r.options=n,GB(e,n)},beforeDatasetsDraw(e,t,n){ku(e,"beforeDatasetsDraw",n)},afterDatasetsDraw(e,t,n){ku(e,"afterDatasetsDraw",n)},beforeDraw(e,t,n){ku(e,"beforeDraw",n)},afterDraw(e,t,n){ku(e,"afterDraw",n)},stop:function(e){KB(e),Fl&&t8(e),wB(e)},panFunctions:xp,zoomFunctions:yp,zoomRectFunctions:bp};Kf.register(gp,mp,ld,fl,V6,Q6,B6,r8);ww(document.getElementById("root")).render(xe.jsx(d.StrictMode,{children:xe.jsx(bB,{})})); diff --git a/index.html b/index.html index cf8c44e..2c2c6cb 100644 --- a/index.html +++ b/index.html @@ -5,8 +5,8 @@ Investment Plan - - + +
diff --git a/platforms/etoro.svg b/platforms/etoro.svg new file mode 100644 index 0000000..0169d6c --- /dev/null +++ b/platforms/etoro.svg @@ -0,0 +1,106 @@ + + + + + + + + + \ No newline at end of file diff --git a/platforms/ibkr.svg b/platforms/ibkr.svg new file mode 100644 index 0000000..691d087 --- /dev/null +++ b/platforms/ibkr.svg @@ -0,0 +1,142 @@ + + + + + + + + + + + + + + image/svg+xml + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/platforms/patria.png b/platforms/patria.png new file mode 100644 index 0000000000000000000000000000000000000000..72f702be647f517ea5fc50dd2fb3157a48138ce5 GIT binary patch literal 8460 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 literal 0 HcmV?d00001 diff --git a/platforms/portu.svg b/platforms/portu.svg new file mode 100644 index 0000000..a654538 --- /dev/null +++ b/platforms/portu.svg @@ -0,0 +1,112 @@ + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/platforms/t212.png b/platforms/t212.png new file mode 100644 index 0000000000000000000000000000000000000000..69b18a69fc9027fc08f264c46a1701ff9b91cb57 GIT binary patch literal 61585 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 literal 0 HcmV?d00001 diff --git a/platforms/xtb.svg b/platforms/xtb.svg new file mode 100644 index 0000000..e46ee27 --- /dev/null +++ b/platforms/xtb.svg @@ -0,0 +1,98 @@ + \ No newline at end of file