diff --git a/.gitignore b/.gitignore index 591ff973..92e61cfd 100644 --- a/.gitignore +++ b/.gitignore @@ -20,4 +20,3 @@ node_modules/ **/cosmian-kms/sqlite-data* run.sh .aider/ -ui/ diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 1b8f121f..c413776c 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -7,7 +7,7 @@ # See https://pre-commit.com for more information # See https://pre-commit.com/hooks.html for more hooks -exclude: documentation/pandoc|documentation/overrides|crate/server/src/tests/test_utils.rs|.pre-commit-config.yaml|crate/server/src/routes/google_cse/jwt.rs|crate/server/src/routes/google_cse/python/openssl|documentation/docs/google_cse|crate/pkcs11/sys|documentation/docs/drawings|test_data|documentation/docs/benchmarks.md|crate/hsm/proteccio/driver +exclude: documentation/pandoc|documentation/overrides|crate/server/src/tests/test_utils.rs|.pre-commit-config.yaml|crate/server/src/routes/google_cse/jwt.rs|crate/server/src/routes/google_cse/python/openssl|documentation/docs/google_cse|crate/pkcs11/sys|documentation/docs/drawings|test_data|documentation/docs/benchmarks.md|crate/hsm/proteccio/driver|crate/server/ui repos: - repo: https://github.com/compilerla/conventional-pre-commit rev: v4.0.0 diff --git a/Dockerfile b/Dockerfile index d42ec439..88afd5b1 100644 --- a/Dockerfile +++ b/Dockerfile @@ -23,10 +23,8 @@ RUN if [ "$TARGETPLATFORM" = "linux/amd64" ]; then export ARCHITECTURE=x86_64; e # Conditional cargo build based on FIPS argument RUN if [ "$FIPS" = "true" ]; then \ - FEATURES="fips" bash .github/scripts/build_ui.sh; \ cargo build -p cosmian_cli -p cosmian_kms_server --release --no-default-features --features="fips"; \ else \ - bash .github/scripts/build_ui.sh; \ cargo build -p cosmian_cli -p cosmian_kms_server --release --no-default-features; \ fi diff --git a/crate/server/ui/dist/Cosmian-Logo-Dark.svg b/crate/server/ui/dist/Cosmian-Logo-Dark.svg new file mode 100644 index 00000000..334c4c1c --- /dev/null +++ b/crate/server/ui/dist/Cosmian-Logo-Dark.svg @@ -0,0 +1,39 @@ + + + + diff --git a/crate/server/ui/dist/Cosmian-Logo.svg b/crate/server/ui/dist/Cosmian-Logo.svg new file mode 100644 index 00000000..318f51cc --- /dev/null +++ b/crate/server/ui/dist/Cosmian-Logo.svg @@ -0,0 +1,38 @@ + + + + diff --git a/crate/server/ui/dist/assets/cosmian_kms_client_wasm_bg--QQPfGN1.wasm b/crate/server/ui/dist/assets/cosmian_kms_client_wasm_bg--QQPfGN1.wasm new file mode 100644 index 00000000..8d30715b Binary files /dev/null and b/crate/server/ui/dist/assets/cosmian_kms_client_wasm_bg--QQPfGN1.wasm differ diff --git a/crate/server/ui/dist/assets/cropped-favicon-cosmian-32x32-BVkavOsn.png b/crate/server/ui/dist/assets/cropped-favicon-cosmian-32x32-BVkavOsn.png new file mode 100644 index 00000000..1f1ff877 Binary files /dev/null and b/crate/server/ui/dist/assets/cropped-favicon-cosmian-32x32-BVkavOsn.png differ diff --git a/crate/server/ui/dist/assets/index-BzFVru8x.css b/crate/server/ui/dist/assets/index-BzFVru8x.css new file mode 100644 index 00000000..ba4c2bcb --- /dev/null +++ b/crate/server/ui/dist/assets/index-BzFVru8x.css @@ -0,0 +1 @@ +/*! tailwindcss v4.1.3 | MIT License | https://tailwindcss.com */@layer properties{@supports (((-webkit-hyphens:none)) and (not (margin-trim:inline))) or ((-moz-orient:inline) and (not (color:rgb(from red r g b)))){*,:before,:after,::backdrop{--tw-rotate-x:rotateX(0);--tw-rotate-y:rotateY(0);--tw-rotate-z:rotateZ(0);--tw-skew-x:skewX(0);--tw-skew-y:skewY(0);--tw-space-y-reverse:0;--tw-border-style:solid;--tw-font-weight:initial;--tw-shadow:0 0 #0000;--tw-shadow-color:initial;--tw-shadow-alpha:100%;--tw-inset-shadow:0 0 #0000;--tw-inset-shadow-color:initial;--tw-inset-shadow-alpha:100%;--tw-ring-color:initial;--tw-ring-shadow:0 0 #0000;--tw-inset-ring-color:initial;--tw-inset-ring-shadow:0 0 #0000;--tw-ring-inset:initial;--tw-ring-offset-width:0px;--tw-ring-offset-color:#fff;--tw-ring-offset-shadow:0 0 #0000;--tw-duration:initial}}}@layer theme{:root,:host{--font-sans:ui-sans-serif,system-ui,sans-serif,"Apple Color Emoji","Segoe UI Emoji","Segoe UI Symbol","Noto Color Emoji";--font-mono:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,"Liberation Mono","Courier New",monospace;--color-red-200:oklch(88.5% .062 18.334);--color-red-500:oklch(63.7% .237 25.331);--color-red-600:oklch(57.7% .245 27.325);--color-red-800:oklch(44.4% .177 26.899);--color-orange-600:oklch(64.6% .222 41.116);--color-yellow-600:oklch(68.1% .162 75.834);--color-green-600:oklch(62.7% .194 149.214);--color-blue-600:oklch(54.6% .245 262.881);--color-blue-700:oklch(48.8% .243 264.376);--color-purple-700:oklch(49.6% .265 301.924);--color-gray-100:oklch(96.7% .003 264.542);--color-gray-300:oklch(87.2% .01 258.338);--color-gray-600:oklch(44.6% .03 256.802);--color-gray-800:oklch(27.8% .033 256.848);--color-gray-900:oklch(21% .034 264.665);--color-white:#fff;--spacing:.25rem;--text-xs:.75rem;--text-xs--line-height:calc(1/.75);--text-sm:.875rem;--text-sm--line-height:calc(1.25/.875);--text-xl:1.25rem;--text-xl--line-height:calc(1.75/1.25);--text-2xl:1.5rem;--text-2xl--line-height:calc(2/1.5);--text-7xl:4.5rem;--text-7xl--line-height:1;--font-weight-medium:500;--font-weight-bold:700;--radius-md:.375rem;--radius-lg:.5rem;--default-transition-duration:.15s;--default-transition-timing-function:cubic-bezier(.4,0,.2,1);--default-font-family:var(--font-sans);--default-mono-font-family:var(--font-mono)}}@layer base{*,:after,:before,::backdrop{box-sizing:border-box;border:0 solid;margin:0;padding:0}::file-selector-button{box-sizing:border-box;border:0 solid;margin:0;padding:0}html,:host{-webkit-text-size-adjust:100%;-moz-tab-size:4;tab-size:4;line-height:1.5;font-family:var(--default-font-family,ui-sans-serif,system-ui,sans-serif,"Apple Color Emoji","Segoe UI Emoji","Segoe UI Symbol","Noto Color Emoji");font-feature-settings:var(--default-font-feature-settings,normal);font-variation-settings:var(--default-font-variation-settings,normal);-webkit-tap-highlight-color:transparent}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;-webkit-text-decoration:inherit;text-decoration:inherit}b,strong{font-weight:bolder}code,kbd,samp,pre{font-family:var(--default-mono-font-family,ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,"Liberation Mono","Courier New",monospace);font-feature-settings:var(--default-mono-font-feature-settings,normal);font-variation-settings:var(--default-mono-font-variation-settings,normal);font-size:1em}small{font-size:80%}sub,sup{vertical-align:baseline;font-size:75%;line-height:0;position:relative}sub{bottom:-.25em}sup{top:-.5em}table{text-indent:0;border-color:inherit;border-collapse:collapse}:-moz-focusring{outline:auto}progress{vertical-align:baseline}summary{display:list-item}ol,ul,menu{list-style:none}img,svg,video,canvas,audio,iframe,embed,object{vertical-align:middle;display:block}img,video{max-width:100%;height:auto}button,input,select,optgroup,textarea{font:inherit;font-feature-settings:inherit;font-variation-settings:inherit;letter-spacing:inherit;color:inherit;opacity:1;background-color:#0000;border-radius:0}::file-selector-button{font:inherit;font-feature-settings:inherit;font-variation-settings:inherit;letter-spacing:inherit;color:inherit;opacity:1;background-color:#0000;border-radius:0}:where(select:is([multiple],[size])) optgroup{font-weight:bolder}:where(select:is([multiple],[size])) optgroup option{padding-inline-start:20px}::file-selector-button{margin-inline-end:4px}::placeholder{opacity:1}@supports (not ((-webkit-appearance:-apple-pay-button))) or (contain-intrinsic-size:1px){::placeholder{color:currentColor}@supports (color:color-mix(in lab,red,red)){::placeholder{color:color-mix(in oklab,currentcolor 50%,transparent)}}}textarea{resize:vertical}::-webkit-search-decoration{-webkit-appearance:none}::-webkit-date-and-time-value{min-height:1lh;text-align:inherit}::-webkit-datetime-edit{display:inline-flex}::-webkit-datetime-edit-fields-wrapper{padding:0}::-webkit-datetime-edit{padding-block:0}::-webkit-datetime-edit-year-field{padding-block:0}::-webkit-datetime-edit-month-field{padding-block:0}::-webkit-datetime-edit-day-field{padding-block:0}::-webkit-datetime-edit-hour-field{padding-block:0}::-webkit-datetime-edit-minute-field{padding-block:0}::-webkit-datetime-edit-second-field{padding-block:0}::-webkit-datetime-edit-millisecond-field{padding-block:0}::-webkit-datetime-edit-meridiem-field{padding-block:0}:-moz-ui-invalid{box-shadow:none}button,input:where([type=button],[type=reset],[type=submit]){-webkit-appearance:button;-moz-appearance:button;appearance:button}::file-selector-button{-webkit-appearance:button;-moz-appearance:button;appearance:button}::-webkit-inner-spin-button{height:auto}::-webkit-outer-spin-button{height:auto}[hidden]:where(:not([hidden=until-found])){display:none!important}}@layer components;@layer utilities{.absolute{position:absolute}.fixed{position:fixed}.relative{position:relative}.static{position:static}.sticky{position:sticky}.inset-0{inset:calc(var(--spacing)*0)}.z-10{z-index:10}.m-0{margin:calc(var(--spacing)*0)}.m-4{margin:calc(var(--spacing)*4)}.mx-2{margin-inline:calc(var(--spacing)*2)}.mt-2{margin-top:calc(var(--spacing)*2)}.mt-4{margin-top:calc(var(--spacing)*4)}.mt-8{margin-top:calc(var(--spacing)*8)}.mr-4{margin-right:calc(var(--spacing)*4)}.mb-2{margin-bottom:calc(var(--spacing)*2)}.mb-4{margin-bottom:calc(var(--spacing)*4)}.mb-5{margin-bottom:calc(var(--spacing)*5)}.mb-6{margin-bottom:calc(var(--spacing)*6)}.mb-8{margin-bottom:calc(var(--spacing)*8)}.mb-20{margin-bottom:calc(var(--spacing)*20)}.ml-2{margin-left:calc(var(--spacing)*2)}.ml-4{margin-left:calc(var(--spacing)*4)}.ml-5{margin-left:calc(var(--spacing)*5)}.block{display:block}.contents{display:contents}.flex{display:flex}.hidden{display:none}.inline{display:inline}.h-7{height:calc(var(--spacing)*7)}.h-16{height:calc(var(--spacing)*16)}.h-\[25px\]{height:25px}.h-full{height:100%}.h-screen{height:100vh}.min-h-screen{min-height:100vh}.w-1\/2{width:50%}.w-2\/3{width:66.6667%}.w-18{width:calc(var(--spacing)*18)}.w-20{width:calc(var(--spacing)*20)}.w-40{width:calc(var(--spacing)*40)}.w-\[200px\]{width:200px}.w-full{width:100%}.flex-grow{flex-grow:1}.transform{transform:var(--tw-rotate-x)var(--tw-rotate-y)var(--tw-rotate-z)var(--tw-skew-x)var(--tw-skew-y)}.list-decimal{list-style-type:decimal}.list-disc{list-style-type:disc}.flex-col{flex-direction:column}.items-center{align-items:center}.justify-between{justify-content:space-between}.justify-center{justify-content:center}.gap-3{gap:calc(var(--spacing)*3)}:where(.space-y-1>:not(:last-child)){--tw-space-y-reverse:0;margin-block-start:calc(calc(var(--spacing)*1)*var(--tw-space-y-reverse));margin-block-end:calc(calc(var(--spacing)*1)*calc(1 - var(--tw-space-y-reverse)))}:where(.space-y-2>:not(:last-child)){--tw-space-y-reverse:0;margin-block-start:calc(calc(var(--spacing)*2)*var(--tw-space-y-reverse));margin-block-end:calc(calc(var(--spacing)*2)*calc(1 - var(--tw-space-y-reverse)))}:where(.space-y-4>:not(:last-child)){--tw-space-y-reverse:0;margin-block-start:calc(calc(var(--spacing)*4)*var(--tw-space-y-reverse));margin-block-end:calc(calc(var(--spacing)*4)*calc(1 - var(--tw-space-y-reverse)))}:where(.space-y-6>:not(:last-child)){--tw-space-y-reverse:0;margin-block-start:calc(calc(var(--spacing)*6)*var(--tw-space-y-reverse));margin-block-end:calc(calc(var(--spacing)*6)*calc(1 - var(--tw-space-y-reverse)))}.overflow-auto{overflow:auto}.overflow-hidden{overflow:hidden}.rounded{border-radius:.25rem}.rounded-lg{border-radius:var(--radius-lg)}.rounded-md{border-radius:var(--radius-md)}.border{border-style:var(--tw-border-style);border-width:1px}.border-0{border-style:var(--tw-border-style);border-width:0}.border-r-0{border-right-style:var(--tw-border-style);border-right-width:0}.border-b{border-bottom-style:var(--tw-border-style);border-bottom-width:1px}.border-l-4{border-left-style:var(--tw-border-style);border-left-width:4px}.border-gray-300{border-color:var(--color-gray-300)}.border-red-600{border-color:var(--color-red-600)}.bg-gray-100{background-color:var(--color-gray-100)}.bg-gray-900{background-color:var(--color-gray-900)}.bg-purple-700\/30{background-color:#8200da4d}@supports (color:color-mix(in lab,red,red)){.bg-purple-700\/30{background-color:color-mix(in oklab,var(--color-purple-700)30%,transparent)}}.bg-red-200{background-color:var(--color-red-200)}.bg-cover{background-size:cover}.bg-center{background-position:50%}.p-0{padding:calc(var(--spacing)*0)}.p-2{padding:calc(var(--spacing)*2)}.p-3{padding:calc(var(--spacing)*3)}.p-4{padding:calc(var(--spacing)*4)}.p-6{padding:calc(var(--spacing)*6)}.p-20{padding:calc(var(--spacing)*20)}.pl-5{padding-left:calc(var(--spacing)*5)}.pl-10{padding-left:calc(var(--spacing)*10)}.text-center{text-align:center}.font-mono{font-family:var(--font-mono)}.text-2xl{font-size:var(--text-2xl);line-height:var(--tw-leading,var(--text-2xl--line-height))}.text-7xl{font-size:var(--text-7xl);line-height:var(--tw-leading,var(--text-7xl--line-height))}.text-sm{font-size:var(--text-sm);line-height:var(--tw-leading,var(--text-sm--line-height))}.text-xl{font-size:var(--text-xl);line-height:var(--tw-leading,var(--text-xl--line-height))}.text-xs{font-size:var(--text-xs);line-height:var(--tw-leading,var(--text-xs--line-height))}.font-bold{--tw-font-weight:var(--font-weight-bold);font-weight:var(--font-weight-bold)}.font-medium{--tw-font-weight:var(--font-weight-medium);font-weight:var(--font-weight-medium)}.whitespace-pre-wrap{white-space:pre-wrap}.text-blue-600{color:var(--color-blue-600)}.text-gray-600{color:var(--color-gray-600)}.text-gray-800{color:var(--color-gray-800)}.text-green-600{color:var(--color-green-600)}.text-orange-600{color:var(--color-orange-600)}.text-red-500{color:var(--color-red-500)}.text-red-600{color:var(--color-red-600)}.text-red-800{color:var(--color-red-800)}.text-white{color:var(--color-white)}.text-yellow-600{color:var(--color-yellow-600)}.shadow-2xl{--tw-shadow:0 25px 50px -12px var(--tw-shadow-color,#00000040);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.shadow-md{--tw-shadow:0 4px 6px -1px var(--tw-shadow-color,#0000001a),0 2px 4px -2px var(--tw-shadow-color,#0000001a);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.transition-opacity{transition-property:opacity;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}.duration-300{--tw-duration:.3s;transition-duration:.3s}@media (hover:hover){.hover\:bg-blue-700:hover{background-color:var(--color-blue-700)}.hover\:decoration-purple-700:hover{-webkit-text-decoration-color:var(--color-purple-700);text-decoration-color:var(--color-purple-700)}}}html,body{height:100%;margin:0;padding:0}#root{flex-direction:column;min-height:100vh;display:flex}@property --tw-rotate-x{syntax:"*";inherits:false;initial-value:rotateX(0)}@property --tw-rotate-y{syntax:"*";inherits:false;initial-value:rotateY(0)}@property --tw-rotate-z{syntax:"*";inherits:false;initial-value:rotateZ(0)}@property --tw-skew-x{syntax:"*";inherits:false;initial-value:skewX(0)}@property --tw-skew-y{syntax:"*";inherits:false;initial-value:skewY(0)}@property --tw-space-y-reverse{syntax:"*";inherits:false;initial-value:0}@property --tw-border-style{syntax:"*";inherits:false;initial-value:solid}@property --tw-font-weight{syntax:"*";inherits:false}@property --tw-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-shadow-color{syntax:"*";inherits:false}@property --tw-shadow-alpha{syntax:"";inherits:false;initial-value:100%}@property --tw-inset-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-inset-shadow-color{syntax:"*";inherits:false}@property --tw-inset-shadow-alpha{syntax:"";inherits:false;initial-value:100%}@property --tw-ring-color{syntax:"*";inherits:false}@property --tw-ring-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-inset-ring-color{syntax:"*";inherits:false}@property --tw-inset-ring-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-ring-inset{syntax:"*";inherits:false}@property --tw-ring-offset-width{syntax:"";inherits:false;initial-value:0}@property --tw-ring-offset-color{syntax:"*";inherits:false;initial-value:#fff}@property --tw-ring-offset-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-duration{syntax:"*";inherits:false} diff --git a/crate/server/ui/dist/assets/index-D0IgDctm.js b/crate/server/ui/dist/assets/index-D0IgDctm.js new file mode 100644 index 00000000..4502f47a --- /dev/null +++ b/crate/server/ui/dist/assets/index-D0IgDctm.js @@ -0,0 +1,518 @@ +function I_(e,t){for(var n=0;nr[a]})}}}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 a of document.querySelectorAll('link[rel="modulepreload"]'))r(a);new MutationObserver(a=>{for(const o of a)if(o.type==="childList")for(const l of o.addedNodes)l.tagName==="LINK"&&l.rel==="modulepreload"&&r(l)}).observe(document,{childList:!0,subtree:!0});function n(a){const o={};return a.integrity&&(o.integrity=a.integrity),a.referrerPolicy&&(o.referrerPolicy=a.referrerPolicy),a.crossOrigin==="use-credentials"?o.credentials="include":a.crossOrigin==="anonymous"?o.credentials="omit":o.credentials="same-origin",o}function r(a){if(a.ep)return;a.ep=!0;const o=n(a);fetch(a.href,o)}})();function jo(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var Ug={exports:{}},ru={},qg={exports:{}},Mn={};/** + * @license React + * react.production.min.js + * + * Copyright (c) Facebook, Inc. and its affiliates. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + */var uw;function Ck(){if(uw)return Mn;uw=1;var e=Symbol.for("react.element"),t=Symbol.for("react.portal"),n=Symbol.for("react.fragment"),r=Symbol.for("react.strict_mode"),a=Symbol.for("react.profiler"),o=Symbol.for("react.provider"),l=Symbol.for("react.context"),c=Symbol.for("react.forward_ref"),d=Symbol.for("react.suspense"),f=Symbol.for("react.memo"),m=Symbol.for("react.lazy"),p=Symbol.iterator;function v(z){return z===null||typeof z!="object"?null:(z=p&&z[p]||z["@@iterator"],typeof z=="function"?z:null)}var h={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},b=Object.assign,x={};function y(z,U,Y){this.props=z,this.context=U,this.refs=x,this.updater=Y||h}y.prototype.isReactComponent={},y.prototype.setState=function(z,U){if(typeof z!="object"&&typeof z!="function"&&z!=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,z,U,"setState")},y.prototype.forceUpdate=function(z){this.updater.enqueueForceUpdate(this,z,"forceUpdate")};function C(){}C.prototype=y.prototype;function w(z,U,Y){this.props=z,this.context=U,this.refs=x,this.updater=Y||h}var E=w.prototype=new C;E.constructor=w,b(E,y.prototype),E.isPureReactComponent=!0;var I=Array.isArray,_=Object.prototype.hasOwnProperty,O={current:null},P={key:!0,ref:!0,__self:!0,__source:!0};function j(z,U,Y){var q,X={},te=null,ee=null;if(U!=null)for(q in U.ref!==void 0&&(ee=U.ref),U.key!==void 0&&(te=""+U.key),U)_.call(U,q)&&!P.hasOwnProperty(q)&&(X[q]=U[q]);var J=arguments.length-2;if(J===1)X.children=Y;else if(1>>1,U=D[z];if(0>>1;za(X,K))tea(ee,X)?(D[z]=ee,D[te]=K,z=te):(D[z]=X,D[q]=K,z=q);else if(tea(ee,K))D[z]=ee,D[te]=K,z=te;else break e}}return V}function a(D,V){var K=D.sortIndex-V.sortIndex;return K!==0?K:D.id-V.id}if(typeof performance=="object"&&typeof performance.now=="function"){var o=performance;e.unstable_now=function(){return o.now()}}else{var l=Date,c=l.now();e.unstable_now=function(){return l.now()-c}}var d=[],f=[],m=1,p=null,v=3,h=!1,b=!1,x=!1,y=typeof setTimeout=="function"?setTimeout:null,C=typeof clearTimeout=="function"?clearTimeout:null,w=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function E(D){for(var V=n(f);V!==null;){if(V.callback===null)r(f);else if(V.startTime<=D)r(f),V.sortIndex=V.expirationTime,t(d,V);else break;V=n(f)}}function I(D){if(x=!1,E(D),!b)if(n(d)!==null)b=!0,T(_);else{var V=n(f);V!==null&&M(I,V.startTime-D)}}function _(D,V){b=!1,x&&(x=!1,C(j),j=-1),h=!0;var K=v;try{for(E(V),p=n(d);p!==null&&(!(p.expirationTime>V)||D&&!L());){var z=p.callback;if(typeof z=="function"){p.callback=null,v=p.priorityLevel;var U=z(p.expirationTime<=V);V=e.unstable_now(),typeof U=="function"?p.callback=U:p===n(d)&&r(d),E(V)}else r(d);p=n(d)}if(p!==null)var Y=!0;else{var q=n(f);q!==null&&M(I,q.startTime-V),Y=!1}return Y}finally{p=null,v=K,h=!1}}var O=!1,P=null,j=-1,R=5,k=-1;function L(){return!(e.unstable_now()-kD||125z?(D.sortIndex=K,t(f,D),n(d)===null&&D===n(f)&&(x?(C(j),j=-1):x=!0,M(I,K-z))):(D.sortIndex=U,t(d,D),b||h||(b=!0,T(_))),D},e.unstable_shouldYield=L,e.unstable_wrapCallback=function(D){var V=v;return function(){var K=v;v=V;try{return D.apply(this,arguments)}finally{v=K}}}}(Xg)),Xg}var vw;function _k(){return vw||(vw=1,Gg.exports=Ek()),Gg.exports}/** + * @license React + * react-dom.production.min.js + * + * Copyright (c) Facebook, Inc. and its affiliates. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + */var gw;function Ik(){if(gw)return Na;gw=1;var e=U0(),t=_k();function n(s){for(var u="https://reactjs.org/docs/error-decoder.html?invariant="+s,g=1;g"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),d=Object.prototype.hasOwnProperty,f=/^[: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]*$/,m={},p={};function v(s){return d.call(p,s)?!0:d.call(m,s)?!1:f.test(s)?p[s]=!0:(m[s]=!0,!1)}function h(s,u,g,$){if(g!==null&&g.type===0)return!1;switch(typeof u){case"function":case"symbol":return!0;case"boolean":return $?!1:g!==null?!g.acceptsBooleans:(s=s.toLowerCase().slice(0,5),s!=="data-"&&s!=="aria-");default:return!1}}function b(s,u,g,$){if(u===null||typeof u>"u"||h(s,u,g,$))return!0;if($)return!1;if(g!==null)switch(g.type){case 3:return!u;case 4:return u===!1;case 5:return isNaN(u);case 6:return isNaN(u)||1>u}return!1}function x(s,u,g,$,N,H,Q){this.acceptsBooleans=u===2||u===3||u===4,this.attributeName=$,this.attributeNamespace=N,this.mustUseProperty=g,this.propertyName=s,this.type=u,this.sanitizeURL=H,this.removeEmptyString=Q}var y={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(s){y[s]=new x(s,0,!1,s,null,!1,!1)}),[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(s){var u=s[0];y[u]=new x(u,1,!1,s[1],null,!1,!1)}),["contentEditable","draggable","spellCheck","value"].forEach(function(s){y[s]=new x(s,2,!1,s.toLowerCase(),null,!1,!1)}),["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(s){y[s]=new x(s,2,!1,s,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(s){y[s]=new x(s,3,!1,s.toLowerCase(),null,!1,!1)}),["checked","multiple","muted","selected"].forEach(function(s){y[s]=new x(s,3,!0,s,null,!1,!1)}),["capture","download"].forEach(function(s){y[s]=new x(s,4,!1,s,null,!1,!1)}),["cols","rows","size","span"].forEach(function(s){y[s]=new x(s,6,!1,s,null,!1,!1)}),["rowSpan","start"].forEach(function(s){y[s]=new x(s,5,!1,s.toLowerCase(),null,!1,!1)});var C=/[\-:]([a-z])/g;function w(s){return s[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(s){var u=s.replace(C,w);y[u]=new x(u,1,!1,s,null,!1,!1)}),"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(s){var u=s.replace(C,w);y[u]=new x(u,1,!1,s,"http://www.w3.org/1999/xlink",!1,!1)}),["xml:base","xml:lang","xml:space"].forEach(function(s){var u=s.replace(C,w);y[u]=new x(u,1,!1,s,"http://www.w3.org/XML/1998/namespace",!1,!1)}),["tabIndex","crossOrigin"].forEach(function(s){y[s]=new x(s,1,!1,s.toLowerCase(),null,!1,!1)}),y.xlinkHref=new x("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1),["src","href","action","formAction"].forEach(function(s){y[s]=new x(s,1,!1,s.toLowerCase(),null,!0,!0)});function E(s,u,g,$){var N=y.hasOwnProperty(u)?y[u]:null;(N!==null?N.type!==0:$||!(2ve||N[Q]!==H[ve]){var $e=` +`+N[Q].replace(" at new "," at ");return s.displayName&&$e.includes("")&&($e=$e.replace("",s.displayName)),$e}while(1<=Q&&0<=ve);break}}}finally{Y=!1,Error.prepareStackTrace=g}return(s=s?s.displayName||s.name:"")?U(s):""}function X(s){switch(s.tag){case 5:return U(s.type);case 16:return U("Lazy");case 13:return U("Suspense");case 19:return U("SuspenseList");case 0:case 2:case 15:return s=q(s.type,!1),s;case 11:return s=q(s.type.render,!1),s;case 1:return s=q(s.type,!0),s;default:return""}}function te(s){if(s==null)return null;if(typeof s=="function")return s.displayName||s.name||null;if(typeof s=="string")return s;switch(s){case P:return"Fragment";case O:return"Portal";case R:return"Profiler";case j:return"StrictMode";case B:return"Suspense";case F:return"SuspenseList"}if(typeof s=="object")switch(s.$$typeof){case L:return(s.displayName||"Context")+".Consumer";case k:return(s._context.displayName||"Context")+".Provider";case W:var u=s.render;return s=s.displayName,s||(s=u.displayName||u.name||"",s=s!==""?"ForwardRef("+s+")":"ForwardRef"),s;case A:return u=s.displayName||null,u!==null?u:te(s.type)||"Memo";case T:u=s._payload,s=s._init;try{return te(s(u))}catch{}}return null}function ee(s){var u=s.type;switch(s.tag){case 24:return"Cache";case 9:return(u.displayName||"Context")+".Consumer";case 10:return(u._context.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return s=u.render,s=s.displayName||s.name||"",u.displayName||(s!==""?"ForwardRef("+s+")":"ForwardRef");case 7:return"Fragment";case 5:return u;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return te(u);case 8:return u===j?"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 u=="function")return u.displayName||u.name||null;if(typeof u=="string")return u}return null}function J(s){switch(typeof s){case"boolean":case"number":case"string":case"undefined":return s;case"object":return s;default:return""}}function ie(s){var u=s.type;return(s=s.nodeName)&&s.toLowerCase()==="input"&&(u==="checkbox"||u==="radio")}function de(s){var u=ie(s)?"checked":"value",g=Object.getOwnPropertyDescriptor(s.constructor.prototype,u),$=""+s[u];if(!s.hasOwnProperty(u)&&typeof g<"u"&&typeof g.get=="function"&&typeof g.set=="function"){var N=g.get,H=g.set;return Object.defineProperty(s,u,{configurable:!0,get:function(){return N.call(this)},set:function(Q){$=""+Q,H.call(this,Q)}}),Object.defineProperty(s,u,{enumerable:g.enumerable}),{getValue:function(){return $},setValue:function(Q){$=""+Q},stopTracking:function(){s._valueTracker=null,delete s[u]}}}}function oe(s){s._valueTracker||(s._valueTracker=de(s))}function le(s){if(!s)return!1;var u=s._valueTracker;if(!u)return!0;var g=u.getValue(),$="";return s&&($=ie(s)?s.checked?"true":"false":s.value),s=$,s!==g?(u.setValue(s),!0):!1}function ae(s){if(s=s||(typeof document<"u"?document:void 0),typeof s>"u")return null;try{return s.activeElement||s.body}catch{return s.body}}function ue(s,u){var g=u.checked;return K({},u,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:g??s._wrapperState.initialChecked})}function pe(s,u){var g=u.defaultValue==null?"":u.defaultValue,$=u.checked!=null?u.checked:u.defaultChecked;g=J(u.value!=null?u.value:g),s._wrapperState={initialChecked:$,initialValue:g,controlled:u.type==="checkbox"||u.type==="radio"?u.checked!=null:u.value!=null}}function fe(s,u){u=u.checked,u!=null&&E(s,"checked",u,!1)}function xe(s,u){fe(s,u);var g=J(u.value),$=u.type;if(g!=null)$==="number"?(g===0&&s.value===""||s.value!=g)&&(s.value=""+g):s.value!==""+g&&(s.value=""+g);else if($==="submit"||$==="reset"){s.removeAttribute("value");return}u.hasOwnProperty("value")?Le(s,u.type,g):u.hasOwnProperty("defaultValue")&&Le(s,u.type,J(u.defaultValue)),u.checked==null&&u.defaultChecked!=null&&(s.defaultChecked=!!u.defaultChecked)}function Ee(s,u,g){if(u.hasOwnProperty("value")||u.hasOwnProperty("defaultValue")){var $=u.type;if(!($!=="submit"&&$!=="reset"||u.value!==void 0&&u.value!==null))return;u=""+s._wrapperState.initialValue,g||u===s.value||(s.value=u),s.defaultValue=u}g=s.name,g!==""&&(s.name=""),s.defaultChecked=!!s._wrapperState.initialChecked,g!==""&&(s.name=g)}function Le(s,u,g){(u!=="number"||ae(s.ownerDocument)!==s)&&(g==null?s.defaultValue=""+s._wrapperState.initialValue:s.defaultValue!==""+g&&(s.defaultValue=""+g))}var Ne=Array.isArray;function ge(s,u,g,$){if(s=s.options,u){u={};for(var N=0;N"+u.valueOf().toString()+"",u=qe.firstChild;s.firstChild;)s.removeChild(s.firstChild);for(;u.firstChild;)s.appendChild(u.firstChild)}});function ze(s,u){if(u){var g=s.firstChild;if(g&&g===s.lastChild&&g.nodeType===3){g.nodeValue=u;return}}s.textContent=u}var Ae={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},Ie=["Webkit","ms","Moz","O"];Object.keys(Ae).forEach(function(s){Ie.forEach(function(u){u=u+s.charAt(0).toUpperCase()+s.substring(1),Ae[u]=Ae[s]})});function Ve(s,u,g){return u==null||typeof u=="boolean"||u===""?"":g||typeof u!="number"||u===0||Ae.hasOwnProperty(s)&&Ae[s]?(""+u).trim():u+"px"}function ye(s,u){s=s.style;for(var g in u)if(u.hasOwnProperty(g)){var $=g.indexOf("--")===0,N=Ve(g,u[g],$);g==="float"&&(g="cssFloat"),$?s.setProperty(g,N):s[g]=N}}var Ce=K({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 _e(s,u){if(u){if(Ce[s]&&(u.children!=null||u.dangerouslySetInnerHTML!=null))throw Error(n(137,s));if(u.dangerouslySetInnerHTML!=null){if(u.children!=null)throw Error(n(60));if(typeof u.dangerouslySetInnerHTML!="object"||!("__html"in u.dangerouslySetInnerHTML))throw Error(n(61))}if(u.style!=null&&typeof u.style!="object")throw Error(n(62))}}function he(s,u){if(s.indexOf("-")===-1)return typeof u.is=="string";switch(s){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 ke=null;function tt(s){return s=s.target||s.srcElement||window,s.correspondingUseElement&&(s=s.correspondingUseElement),s.nodeType===3?s.parentNode:s}var Nt=null,Ht=null,Ge=null;function rt(s){if(s=Hc(s)){if(typeof Nt!="function")throw Error(n(280));var u=s.stateNode;u&&(u=Jd(u),Nt(s.stateNode,s.type,u))}}function gt(s){Ht?Ge?Ge.push(s):Ge=[s]:Ht=s}function at(){if(Ht){var s=Ht,u=Ge;if(Ge=Ht=null,rt(s),u)for(s=0;s>>=0,s===0?32:31-(lr(s)/mr|0)|0}var Er=64,er=4194304;function _r(s){switch(s&-s){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 s&4194240;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return s&130023424;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return s}}function _n(s,u){var g=s.pendingLanes;if(g===0)return 0;var $=0,N=s.suspendedLanes,H=s.pingedLanes,Q=g&268435455;if(Q!==0){var ve=Q&~N;ve!==0?$=_r(ve):(H&=Q,H!==0&&($=_r(H)))}else Q=g&~N,Q!==0?$=_r(Q):H!==0&&($=_r(H));if($===0)return 0;if(u!==0&&u!==$&&(u&N)===0&&(N=$&-$,H=u&-u,N>=H||N===16&&(H&4194240)!==0))return u;if(($&4)!==0&&($|=g&16),u=s.entangledLanes,u!==0)for(s=s.entanglements,u&=$;0g;g++)u.push(s);return u}function gn(s,u,g){s.pendingLanes|=u,u!==536870912&&(s.suspendedLanes=0,s.pingedLanes=0),s=s.eventTimes,u=31-Jn(u),s[u]=g}function Kn(s,u){var g=s.pendingLanes&~u;s.pendingLanes=u,s.suspendedLanes=0,s.pingedLanes=0,s.expiredLanes&=u,s.mutableReadLanes&=u,s.entangledLanes&=u,u=s.entanglements;var $=s.eventTimes;for(s=s.expirationTimes;0=kc),rS=" ",aS=!1;function oS(s,u){switch(s){case"keyup":return hj.indexOf(u.keyCode)!==-1;case"keydown":return u.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function iS(s){return s=s.detail,typeof s=="object"&&"data"in s?s.data:null}var cs=!1;function bj(s,u){switch(s){case"compositionend":return iS(u);case"keypress":return u.which!==32?null:(aS=!0,rS);case"textInput":return s=u.data,s===rS&&aS?null:s;default:return null}}function xj(s,u){if(cs)return s==="compositionend"||!_v&&oS(s,u)?(s=Qx(),Bd=xv=Ni=null,cs=!1,s):null;switch(s){case"paste":return null;case"keypress":if(!(u.ctrlKey||u.altKey||u.metaKey)||u.ctrlKey&&u.altKey){if(u.char&&1=u)return{node:g,offset:u-s};s=$}e:{for(;g;){if(g.nextSibling){g=g.nextSibling;break e}g=g.parentNode}g=void 0}g=mS(g)}}function vS(s,u){return s&&u?s===u?!0:s&&s.nodeType===3?!1:u&&u.nodeType===3?vS(s,u.parentNode):"contains"in s?s.contains(u):s.compareDocumentPosition?!!(s.compareDocumentPosition(u)&16):!1:!1}function gS(){for(var s=window,u=ae();u instanceof s.HTMLIFrameElement;){try{var g=typeof u.contentWindow.location.href=="string"}catch{g=!1}if(g)s=u.contentWindow;else break;u=ae(s.document)}return u}function Rv(s){var u=s&&s.nodeName&&s.nodeName.toLowerCase();return u&&(u==="input"&&(s.type==="text"||s.type==="search"||s.type==="tel"||s.type==="url"||s.type==="password")||u==="textarea"||s.contentEditable==="true")}function Rj(s){var u=gS(),g=s.focusedElem,$=s.selectionRange;if(u!==g&&g&&g.ownerDocument&&vS(g.ownerDocument.documentElement,g)){if($!==null&&Rv(g)){if(u=$.start,s=$.end,s===void 0&&(s=u),"selectionStart"in g)g.selectionStart=u,g.selectionEnd=Math.min(s,g.value.length);else if(s=(u=g.ownerDocument||document)&&u.defaultView||window,s.getSelection){s=s.getSelection();var N=g.textContent.length,H=Math.min($.start,N);$=$.end===void 0?H:Math.min($.end,N),!s.extend&&H>$&&(N=$,$=H,H=N),N=pS(g,H);var Q=pS(g,$);N&&Q&&(s.rangeCount!==1||s.anchorNode!==N.node||s.anchorOffset!==N.offset||s.focusNode!==Q.node||s.focusOffset!==Q.offset)&&(u=u.createRange(),u.setStart(N.node,N.offset),s.removeAllRanges(),H>$?(s.addRange(u),s.extend(Q.node,Q.offset)):(u.setEnd(Q.node,Q.offset),s.addRange(u)))}}for(u=[],s=g;s=s.parentNode;)s.nodeType===1&&u.push({element:s,left:s.scrollLeft,top:s.scrollTop});for(typeof g.focus=="function"&&g.focus(),g=0;g=document.documentMode,us=null,Pv=null,Fc=null,Nv=!1;function hS(s,u,g){var $=g.window===g?g.document:g.nodeType===9?g:g.ownerDocument;Nv||us==null||us!==ae($)||($=us,"selectionStart"in $&&Rv($)?$={start:$.selectionStart,end:$.selectionEnd}:($=($.ownerDocument&&$.ownerDocument.defaultView||window).getSelection(),$={anchorNode:$.anchorNode,anchorOffset:$.anchorOffset,focusNode:$.focusNode,focusOffset:$.focusOffset}),Fc&&Dc(Fc,$)||(Fc=$,$=Gd(Pv,"onSelect"),0<$.length&&(u=new Sv("onSelect","select",null,u,g),s.push({event:u,listeners:$}),u.target=us)))}function Ud(s,u){var g={};return g[s.toLowerCase()]=u.toLowerCase(),g["Webkit"+s]="webkit"+u,g["Moz"+s]="moz"+u,g}var ds={animationend:Ud("Animation","AnimationEnd"),animationiteration:Ud("Animation","AnimationIteration"),animationstart:Ud("Animation","AnimationStart"),transitionend:Ud("Transition","TransitionEnd")},jv={},yS={};c&&(yS=document.createElement("div").style,"AnimationEvent"in window||(delete ds.animationend.animation,delete ds.animationiteration.animation,delete ds.animationstart.animation),"TransitionEvent"in window||delete ds.transitionend.transition);function qd(s){if(jv[s])return jv[s];if(!ds[s])return s;var u=ds[s],g;for(g in u)if(u.hasOwnProperty(g)&&g in yS)return jv[s]=u[g];return s}var bS=qd("animationend"),xS=qd("animationiteration"),SS=qd("animationstart"),CS=qd("transitionend"),wS=new Map,$S="abort auxClick cancel canPlay canPlayThrough click close contextMenu copy cut drag dragEnd dragEnter dragExit dragLeave dragOver dragStart drop durationChange emptied encrypted ended error gotPointerCapture input invalid keyDown keyPress keyUp load loadedData loadedMetadata loadStart lostPointerCapture mouseDown mouseMove mouseOut mouseOver mouseUp paste pause play playing pointerCancel pointerDown pointerMove pointerOut pointerOver pointerUp progress rateChange reset resize seeked seeking stalled submit suspend timeUpdate touchCancel touchEnd touchStart volumeChange scroll toggle touchMove waiting wheel".split(" ");function ji(s,u){wS.set(s,u),o(u,[s])}for(var kv=0;kv<$S.length;kv++){var Mv=$S[kv],Nj=Mv.toLowerCase(),jj=Mv[0].toUpperCase()+Mv.slice(1);ji(Nj,"on"+jj)}ji(bS,"onAnimationEnd"),ji(xS,"onAnimationIteration"),ji(SS,"onAnimationStart"),ji("dblclick","onDoubleClick"),ji("focusin","onFocus"),ji("focusout","onBlur"),ji(CS,"onTransitionEnd"),l("onMouseEnter",["mouseout","mouseover"]),l("onMouseLeave",["mouseout","mouseover"]),l("onPointerEnter",["pointerout","pointerover"]),l("onPointerLeave",["pointerout","pointerover"]),o("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),o("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),o("onBeforeInput",["compositionend","keypress","textInput","paste"]),o("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),o("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),o("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var Lc="abort canplay canplaythrough durationchange emptied encrypted ended error loadeddata loadedmetadata loadstart pause play playing progress ratechange resize seeked seeking stalled suspend timeupdate volumechange waiting".split(" "),kj=new Set("cancel close invalid load scroll toggle".split(" ").concat(Lc));function ES(s,u,g){var $=s.type||"unknown-event";s.currentTarget=g,Ft($,u,void 0,s),s.currentTarget=null}function _S(s,u){u=(u&4)!==0;for(var g=0;gvs||(s.current=Vv[vs],Vv[vs]=null,vs--)}function cr(s,u){vs++,Vv[vs]=s.current,s.current=u}var Ti={},ca=Mi(Ti),_a=Mi(!1),bl=Ti;function gs(s,u){var g=s.type.contextTypes;if(!g)return Ti;var $=s.stateNode;if($&&$.__reactInternalMemoizedUnmaskedChildContext===u)return $.__reactInternalMemoizedMaskedChildContext;var N={},H;for(H in g)N[H]=u[H];return $&&(s=s.stateNode,s.__reactInternalMemoizedUnmaskedChildContext=u,s.__reactInternalMemoizedMaskedChildContext=N),N}function Ia(s){return s=s.childContextTypes,s!=null}function Zd(){hr(_a),hr(ca)}function jS(s,u,g){if(ca.current!==Ti)throw Error(n(168));cr(ca,u),cr(_a,g)}function kS(s,u,g){var $=s.stateNode;if(u=u.childContextTypes,typeof $.getChildContext!="function")return g;$=$.getChildContext();for(var N in $)if(!(N in u))throw Error(n(108,ee(s)||"Unknown",N));return K({},g,$)}function ef(s){return s=(s=s.stateNode)&&s.__reactInternalMemoizedMergedChildContext||Ti,bl=ca.current,cr(ca,s),cr(_a,_a.current),!0}function MS(s,u,g){var $=s.stateNode;if(!$)throw Error(n(169));g?(s=kS(s,u,bl),$.__reactInternalMemoizedMergedChildContext=s,hr(_a),hr(ca),cr(ca,s)):hr(_a),cr(_a,g)}var ti=null,tf=!1,Wv=!1;function TS(s){ti===null?ti=[s]:ti.push(s)}function Bj(s){tf=!0,TS(s)}function Di(){if(!Wv&&ti!==null){Wv=!0;var s=0,u=fn;try{var g=ti;for(fn=1;s>=Q,N-=Q,ni=1<<32-Jn(u)+N|g<Sn?(Gr=dn,dn=null):Gr=dn.sibling;var Un=ot(je,dn,Fe[Sn],vt);if(Un===null){dn===null&&(dn=Gr);break}s&&dn&&Un.alternate===null&&u(je,dn),Oe=H(Un,Oe,Sn),un===null?Zt=Un:un.sibling=Un,un=Un,dn=Gr}if(Sn===Fe.length)return g(je,dn),Sr&&Sl(je,Sn),Zt;if(dn===null){for(;SnSn?(Gr=dn,dn=null):Gr=dn.sibling;var Ki=ot(je,dn,Un.value,vt);if(Ki===null){dn===null&&(dn=Gr);break}s&&dn&&Ki.alternate===null&&u(je,dn),Oe=H(Ki,Oe,Sn),un===null?Zt=Ki:un.sibling=Ki,un=Ki,dn=Gr}if(Un.done)return g(je,dn),Sr&&Sl(je,Sn),Zt;if(dn===null){for(;!Un.done;Sn++,Un=Fe.next())Un=ct(je,Un.value,vt),Un!==null&&(Oe=H(Un,Oe,Sn),un===null?Zt=Un:un.sibling=Un,un=Un);return Sr&&Sl(je,Sn),Zt}for(dn=$(je,dn);!Un.done;Sn++,Un=Fe.next())Un=Wt(dn,je,Sn,Un.value,vt),Un!==null&&(s&&Un.alternate!==null&&dn.delete(Un.key===null?Sn:Un.key),Oe=H(Un,Oe,Sn),un===null?Zt=Un:un.sibling=Un,un=Un);return s&&dn.forEach(function(Sk){return u(je,Sk)}),Sr&&Sl(je,Sn),Zt}function Pr(je,Oe,Fe,vt){if(typeof Fe=="object"&&Fe!==null&&Fe.type===P&&Fe.key===null&&(Fe=Fe.props.children),typeof Fe=="object"&&Fe!==null){switch(Fe.$$typeof){case _:e:{for(var Zt=Fe.key,un=Oe;un!==null;){if(un.key===Zt){if(Zt=Fe.type,Zt===P){if(un.tag===7){g(je,un.sibling),Oe=N(un,Fe.props.children),Oe.return=je,je=Oe;break e}}else if(un.elementType===Zt||typeof Zt=="object"&&Zt!==null&&Zt.$$typeof===T&&BS(Zt)===un.type){g(je,un.sibling),Oe=N(un,Fe.props),Oe.ref=Vc(je,un,Fe),Oe.return=je,je=Oe;break e}g(je,un);break}else u(je,un);un=un.sibling}Fe.type===P?(Oe=Rl(Fe.props.children,je.mode,vt,Fe.key),Oe.return=je,je=Oe):(vt=Pf(Fe.type,Fe.key,Fe.props,null,je.mode,vt),vt.ref=Vc(je,Oe,Fe),vt.return=je,je=vt)}return Q(je);case O:e:{for(un=Fe.key;Oe!==null;){if(Oe.key===un)if(Oe.tag===4&&Oe.stateNode.containerInfo===Fe.containerInfo&&Oe.stateNode.implementation===Fe.implementation){g(je,Oe.sibling),Oe=N(Oe,Fe.children||[]),Oe.return=je,je=Oe;break e}else{g(je,Oe);break}else u(je,Oe);Oe=Oe.sibling}Oe=Bg(Fe,je.mode,vt),Oe.return=je,je=Oe}return Q(je);case T:return un=Fe._init,Pr(je,Oe,un(Fe._payload),vt)}if(Ne(Fe))return Xt(je,Oe,Fe,vt);if(V(Fe))return Jt(je,Oe,Fe,vt);of(je,Fe)}return typeof Fe=="string"&&Fe!==""||typeof Fe=="number"?(Fe=""+Fe,Oe!==null&&Oe.tag===6?(g(je,Oe.sibling),Oe=N(Oe,Fe),Oe.return=je,je=Oe):(g(je,Oe),Oe=zg(Fe,je.mode,vt),Oe.return=je,je=Oe),Q(je)):g(je,Oe)}return Pr}var xs=HS(!0),VS=HS(!1),lf=Mi(null),sf=null,Ss=null,Xv=null;function Qv(){Xv=Ss=sf=null}function Jv(s){var u=lf.current;hr(lf),s._currentValue=u}function Zv(s,u,g){for(;s!==null;){var $=s.alternate;if((s.childLanes&u)!==u?(s.childLanes|=u,$!==null&&($.childLanes|=u)):$!==null&&($.childLanes&u)!==u&&($.childLanes|=u),s===g)break;s=s.return}}function Cs(s,u){sf=s,Xv=Ss=null,s=s.dependencies,s!==null&&s.firstContext!==null&&((s.lanes&u)!==0&&(Oa=!0),s.firstContext=null)}function Ya(s){var u=s._currentValue;if(Xv!==s)if(s={context:s,memoizedValue:u,next:null},Ss===null){if(sf===null)throw Error(n(308));Ss=s,sf.dependencies={lanes:0,firstContext:s}}else Ss=Ss.next=s;return u}var Cl=null;function eg(s){Cl===null?Cl=[s]:Cl.push(s)}function WS(s,u,g,$){var N=u.interleaved;return N===null?(g.next=g,eg(u)):(g.next=N.next,N.next=g),u.interleaved=g,ai(s,$)}function ai(s,u){s.lanes|=u;var g=s.alternate;for(g!==null&&(g.lanes|=u),g=s,s=s.return;s!==null;)s.childLanes|=u,g=s.alternate,g!==null&&(g.childLanes|=u),g=s,s=s.return;return g.tag===3?g.stateNode:null}var Fi=!1;function tg(s){s.updateQueue={baseState:s.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function KS(s,u){s=s.updateQueue,u.updateQueue===s&&(u.updateQueue={baseState:s.baseState,firstBaseUpdate:s.firstBaseUpdate,lastBaseUpdate:s.lastBaseUpdate,shared:s.shared,effects:s.effects})}function oi(s,u){return{eventTime:s,lane:u,tag:0,payload:null,callback:null,next:null}}function Li(s,u,g){var $=s.updateQueue;if($===null)return null;if($=$.shared,(Wn&2)!==0){var N=$.pending;return N===null?u.next=u:(u.next=N.next,N.next=u),$.pending=u,ai(s,g)}return N=$.interleaved,N===null?(u.next=u,eg($)):(u.next=N.next,N.next=u),$.interleaved=u,ai(s,g)}function cf(s,u,g){if(u=u.updateQueue,u!==null&&(u=u.shared,(g&4194240)!==0)){var $=u.lanes;$&=s.pendingLanes,g|=$,u.lanes=g,Zn(s,g)}}function US(s,u){var g=s.updateQueue,$=s.alternate;if($!==null&&($=$.updateQueue,g===$)){var N=null,H=null;if(g=g.firstBaseUpdate,g!==null){do{var Q={eventTime:g.eventTime,lane:g.lane,tag:g.tag,payload:g.payload,callback:g.callback,next:null};H===null?N=H=Q:H=H.next=Q,g=g.next}while(g!==null);H===null?N=H=u:H=H.next=u}else N=H=u;g={baseState:$.baseState,firstBaseUpdate:N,lastBaseUpdate:H,shared:$.shared,effects:$.effects},s.updateQueue=g;return}s=g.lastBaseUpdate,s===null?g.firstBaseUpdate=u:s.next=u,g.lastBaseUpdate=u}function uf(s,u,g,$){var N=s.updateQueue;Fi=!1;var H=N.firstBaseUpdate,Q=N.lastBaseUpdate,ve=N.shared.pending;if(ve!==null){N.shared.pending=null;var $e=ve,Be=$e.next;$e.next=null,Q===null?H=Be:Q.next=Be,Q=$e;var lt=s.alternate;lt!==null&&(lt=lt.updateQueue,ve=lt.lastBaseUpdate,ve!==Q&&(ve===null?lt.firstBaseUpdate=Be:ve.next=Be,lt.lastBaseUpdate=$e))}if(H!==null){var ct=N.baseState;Q=0,lt=Be=$e=null,ve=H;do{var ot=ve.lane,Wt=ve.eventTime;if(($&ot)===ot){lt!==null&&(lt=lt.next={eventTime:Wt,lane:0,tag:ve.tag,payload:ve.payload,callback:ve.callback,next:null});e:{var Xt=s,Jt=ve;switch(ot=u,Wt=g,Jt.tag){case 1:if(Xt=Jt.payload,typeof Xt=="function"){ct=Xt.call(Wt,ct,ot);break e}ct=Xt;break e;case 3:Xt.flags=Xt.flags&-65537|128;case 0:if(Xt=Jt.payload,ot=typeof Xt=="function"?Xt.call(Wt,ct,ot):Xt,ot==null)break e;ct=K({},ct,ot);break e;case 2:Fi=!0}}ve.callback!==null&&ve.lane!==0&&(s.flags|=64,ot=N.effects,ot===null?N.effects=[ve]:ot.push(ve))}else Wt={eventTime:Wt,lane:ot,tag:ve.tag,payload:ve.payload,callback:ve.callback,next:null},lt===null?(Be=lt=Wt,$e=ct):lt=lt.next=Wt,Q|=ot;if(ve=ve.next,ve===null){if(ve=N.shared.pending,ve===null)break;ot=ve,ve=ot.next,ot.next=null,N.lastBaseUpdate=ot,N.shared.pending=null}}while(!0);if(lt===null&&($e=ct),N.baseState=$e,N.firstBaseUpdate=Be,N.lastBaseUpdate=lt,u=N.shared.interleaved,u!==null){N=u;do Q|=N.lane,N=N.next;while(N!==u)}else H===null&&(N.shared.lanes=0);El|=Q,s.lanes=Q,s.memoizedState=ct}}function qS(s,u,g){if(s=u.effects,u.effects=null,s!==null)for(u=0;ug?g:4,s(!0);var $=ig.transition;ig.transition={};try{s(!1),u()}finally{fn=g,ig.transition=$}}function fC(){return Ga().memoizedState}function Kj(s,u,g){var $=Hi(s);if(g={lane:$,action:g,hasEagerState:!1,eagerState:null,next:null},mC(s))pC(u,g);else if(g=WS(s,u,g,$),g!==null){var N=Sa();yo(g,s,$,N),vC(g,u,$)}}function Uj(s,u,g){var $=Hi(s),N={lane:$,action:g,hasEagerState:!1,eagerState:null,next:null};if(mC(s))pC(u,N);else{var H=s.alternate;if(s.lanes===0&&(H===null||H.lanes===0)&&(H=u.lastRenderedReducer,H!==null))try{var Q=u.lastRenderedState,ve=H(Q,g);if(N.hasEagerState=!0,N.eagerState=ve,mo(ve,Q)){var $e=u.interleaved;$e===null?(N.next=N,eg(u)):(N.next=$e.next,$e.next=N),u.interleaved=N;return}}catch{}finally{}g=WS(s,u,N,$),g!==null&&(N=Sa(),yo(g,s,$,N),vC(g,u,$))}}function mC(s){var u=s.alternate;return s===$r||u!==null&&u===$r}function pC(s,u){qc=mf=!0;var g=s.pending;g===null?u.next=u:(u.next=g.next,g.next=u),s.pending=u}function vC(s,u,g){if((g&4194240)!==0){var $=u.lanes;$&=s.pendingLanes,g|=$,u.lanes=g,Zn(s,g)}}var gf={readContext:Ya,useCallback:ua,useContext:ua,useEffect:ua,useImperativeHandle:ua,useInsertionEffect:ua,useLayoutEffect:ua,useMemo:ua,useReducer:ua,useRef:ua,useState:ua,useDebugValue:ua,useDeferredValue:ua,useTransition:ua,useMutableSource:ua,useSyncExternalStore:ua,useId:ua,unstable_isNewReconciler:!1},qj={readContext:Ya,useCallback:function(s,u){return zo().memoizedState=[s,u===void 0?null:u],s},useContext:Ya,useEffect:aC,useImperativeHandle:function(s,u,g){return g=g!=null?g.concat([s]):null,pf(4194308,4,lC.bind(null,u,s),g)},useLayoutEffect:function(s,u){return pf(4194308,4,s,u)},useInsertionEffect:function(s,u){return pf(4,2,s,u)},useMemo:function(s,u){var g=zo();return u=u===void 0?null:u,s=s(),g.memoizedState=[s,u],s},useReducer:function(s,u,g){var $=zo();return u=g!==void 0?g(u):u,$.memoizedState=$.baseState=u,s={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:s,lastRenderedState:u},$.queue=s,s=s.dispatch=Kj.bind(null,$r,s),[$.memoizedState,s]},useRef:function(s){var u=zo();return s={current:s},u.memoizedState=s},useState:nC,useDebugValue:mg,useDeferredValue:function(s){return zo().memoizedState=s},useTransition:function(){var s=nC(!1),u=s[0];return s=Wj.bind(null,s[1]),zo().memoizedState=s,[u,s]},useMutableSource:function(){},useSyncExternalStore:function(s,u,g){var $=$r,N=zo();if(Sr){if(g===void 0)throw Error(n(407));g=g()}else{if(g=u(),Yr===null)throw Error(n(349));($l&30)!==0||QS($,u,g)}N.memoizedState=g;var H={value:g,getSnapshot:u};return N.queue=H,aC(ZS.bind(null,$,H,s),[s]),$.flags|=2048,Xc(9,JS.bind(null,$,H,g,u),void 0,null),g},useId:function(){var s=zo(),u=Yr.identifierPrefix;if(Sr){var g=ri,$=ni;g=($&~(1<<32-Jn($)-1)).toString(32)+g,u=":"+u+"R"+g,g=Yc++,0<\/script>",s=s.removeChild(s.firstChild)):typeof $.is=="string"?s=Q.createElement(g,{is:$.is}):(s=Q.createElement(g),g==="select"&&(Q=s,$.multiple?Q.multiple=!0:$.size&&(Q.size=$.size))):s=Q.createElementNS(s,g),s[Lo]=u,s[Bc]=$,TC(s,u,!1,!1),u.stateNode=s;e:{switch(Q=he(g,$),g){case"dialog":gr("cancel",s),gr("close",s),N=$;break;case"iframe":case"object":case"embed":gr("load",s),N=$;break;case"video":case"audio":for(N=0;NIs&&(u.flags|=128,$=!0,Qc(H,!1),u.lanes=4194304)}else{if(!$)if(s=df(Q),s!==null){if(u.flags|=128,$=!0,g=s.updateQueue,g!==null&&(u.updateQueue=g,u.flags|=4),Qc(H,!0),H.tail===null&&H.tailMode==="hidden"&&!Q.alternate&&!Sr)return da(u),null}else 2*Ke()-H.renderingStartTime>Is&&g!==1073741824&&(u.flags|=128,$=!0,Qc(H,!1),u.lanes=4194304);H.isBackwards?(Q.sibling=u.child,u.child=Q):(g=H.last,g!==null?g.sibling=Q:u.child=Q,H.last=Q)}return H.tail!==null?(u=H.tail,H.rendering=u,H.tail=u.sibling,H.renderingStartTime=Ke(),u.sibling=null,g=wr.current,cr(wr,$?g&1|2:g&1),u):(da(u),null);case 22:case 23:return Fg(),$=u.memoizedState!==null,s!==null&&s.memoizedState!==null!==$&&(u.flags|=8192),$&&(u.mode&1)!==0?(La&1073741824)!==0&&(da(u),u.subtreeFlags&6&&(u.flags|=8192)):da(u),null;case 24:return null;case 25:return null}throw Error(n(156,u.tag))}function tk(s,u){switch(Uv(u),u.tag){case 1:return Ia(u.type)&&Zd(),s=u.flags,s&65536?(u.flags=s&-65537|128,u):null;case 3:return ws(),hr(_a),hr(ca),og(),s=u.flags,(s&65536)!==0&&(s&128)===0?(u.flags=s&-65537|128,u):null;case 5:return rg(u),null;case 13:if(hr(wr),s=u.memoizedState,s!==null&&s.dehydrated!==null){if(u.alternate===null)throw Error(n(340));bs()}return s=u.flags,s&65536?(u.flags=s&-65537|128,u):null;case 19:return hr(wr),null;case 4:return ws(),null;case 10:return Jv(u.type._context),null;case 22:case 23:return Fg(),null;case 24:return null;default:return null}}var xf=!1,fa=!1,nk=typeof WeakSet=="function"?WeakSet:Set,Yt=null;function Es(s,u){var g=s.ref;if(g!==null)if(typeof g=="function")try{g(null)}catch($){Rr(s,u,$)}else g.current=null}function Eg(s,u,g){try{g()}catch($){Rr(s,u,$)}}var LC=!1;function rk(s,u){if(Fv=Ad,s=gS(),Rv(s)){if("selectionStart"in s)var g={start:s.selectionStart,end:s.selectionEnd};else e:{g=(g=s.ownerDocument)&&g.defaultView||window;var $=g.getSelection&&g.getSelection();if($&&$.rangeCount!==0){g=$.anchorNode;var N=$.anchorOffset,H=$.focusNode;$=$.focusOffset;try{g.nodeType,H.nodeType}catch{g=null;break e}var Q=0,ve=-1,$e=-1,Be=0,lt=0,ct=s,ot=null;t:for(;;){for(var Wt;ct!==g||N!==0&&ct.nodeType!==3||(ve=Q+N),ct!==H||$!==0&&ct.nodeType!==3||($e=Q+$),ct.nodeType===3&&(Q+=ct.nodeValue.length),(Wt=ct.firstChild)!==null;)ot=ct,ct=Wt;for(;;){if(ct===s)break t;if(ot===g&&++Be===N&&(ve=Q),ot===H&&++lt===$&&($e=Q),(Wt=ct.nextSibling)!==null)break;ct=ot,ot=ct.parentNode}ct=Wt}g=ve===-1||$e===-1?null:{start:ve,end:$e}}else g=null}g=g||{start:0,end:0}}else g=null;for(Lv={focusedElem:s,selectionRange:g},Ad=!1,Yt=u;Yt!==null;)if(u=Yt,s=u.child,(u.subtreeFlags&1028)!==0&&s!==null)s.return=u,Yt=s;else for(;Yt!==null;){u=Yt;try{var Xt=u.alternate;if((u.flags&1024)!==0)switch(u.tag){case 0:case 11:case 15:break;case 1:if(Xt!==null){var Jt=Xt.memoizedProps,Pr=Xt.memoizedState,je=u.stateNode,Oe=je.getSnapshotBeforeUpdate(u.elementType===u.type?Jt:vo(u.type,Jt),Pr);je.__reactInternalSnapshotBeforeUpdate=Oe}break;case 3:var Fe=u.stateNode.containerInfo;Fe.nodeType===1?Fe.textContent="":Fe.nodeType===9&&Fe.documentElement&&Fe.removeChild(Fe.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(n(163))}}catch(vt){Rr(u,u.return,vt)}if(s=u.sibling,s!==null){s.return=u.return,Yt=s;break}Yt=u.return}return Xt=LC,LC=!1,Xt}function Jc(s,u,g){var $=u.updateQueue;if($=$!==null?$.lastEffect:null,$!==null){var N=$=$.next;do{if((N.tag&s)===s){var H=N.destroy;N.destroy=void 0,H!==void 0&&Eg(u,g,H)}N=N.next}while(N!==$)}}function Sf(s,u){if(u=u.updateQueue,u=u!==null?u.lastEffect:null,u!==null){var g=u=u.next;do{if((g.tag&s)===s){var $=g.create;g.destroy=$()}g=g.next}while(g!==u)}}function _g(s){var u=s.ref;if(u!==null){var g=s.stateNode;switch(s.tag){case 5:s=g;break;default:s=g}typeof u=="function"?u(s):u.current=s}}function AC(s){var u=s.alternate;u!==null&&(s.alternate=null,AC(u)),s.child=null,s.deletions=null,s.sibling=null,s.tag===5&&(u=s.stateNode,u!==null&&(delete u[Lo],delete u[Bc],delete u[Hv],delete u[Aj],delete u[zj])),s.stateNode=null,s.return=null,s.dependencies=null,s.memoizedProps=null,s.memoizedState=null,s.pendingProps=null,s.stateNode=null,s.updateQueue=null}function zC(s){return s.tag===5||s.tag===3||s.tag===4}function BC(s){e:for(;;){for(;s.sibling===null;){if(s.return===null||zC(s.return))return null;s=s.return}for(s.sibling.return=s.return,s=s.sibling;s.tag!==5&&s.tag!==6&&s.tag!==18;){if(s.flags&2||s.child===null||s.tag===4)continue e;s.child.return=s,s=s.child}if(!(s.flags&2))return s.stateNode}}function Ig(s,u,g){var $=s.tag;if($===5||$===6)s=s.stateNode,u?g.nodeType===8?g.parentNode.insertBefore(s,u):g.insertBefore(s,u):(g.nodeType===8?(u=g.parentNode,u.insertBefore(s,g)):(u=g,u.appendChild(s)),g=g._reactRootContainer,g!=null||u.onclick!==null||(u.onclick=Qd));else if($!==4&&(s=s.child,s!==null))for(Ig(s,u,g),s=s.sibling;s!==null;)Ig(s,u,g),s=s.sibling}function Og(s,u,g){var $=s.tag;if($===5||$===6)s=s.stateNode,u?g.insertBefore(s,u):g.appendChild(s);else if($!==4&&(s=s.child,s!==null))for(Og(s,u,g),s=s.sibling;s!==null;)Og(s,u,g),s=s.sibling}var ea=null,go=!1;function Ai(s,u,g){for(g=g.child;g!==null;)HC(s,u,g),g=g.sibling}function HC(s,u,g){if(xn&&typeof xn.onCommitFiberUnmount=="function")try{xn.onCommitFiberUnmount(rn,g)}catch{}switch(g.tag){case 5:fa||Es(g,u);case 6:var $=ea,N=go;ea=null,Ai(s,u,g),ea=$,go=N,ea!==null&&(go?(s=ea,g=g.stateNode,s.nodeType===8?s.parentNode.removeChild(g):s.removeChild(g)):ea.removeChild(g.stateNode));break;case 18:ea!==null&&(go?(s=ea,g=g.stateNode,s.nodeType===8?Bv(s.parentNode,g):s.nodeType===1&&Bv(s,g),Fo(s)):Bv(ea,g.stateNode));break;case 4:$=ea,N=go,ea=g.stateNode.containerInfo,go=!0,Ai(s,u,g),ea=$,go=N;break;case 0:case 11:case 14:case 15:if(!fa&&($=g.updateQueue,$!==null&&($=$.lastEffect,$!==null))){N=$=$.next;do{var H=N,Q=H.destroy;H=H.tag,Q!==void 0&&((H&2)!==0||(H&4)!==0)&&Eg(g,u,Q),N=N.next}while(N!==$)}Ai(s,u,g);break;case 1:if(!fa&&(Es(g,u),$=g.stateNode,typeof $.componentWillUnmount=="function"))try{$.props=g.memoizedProps,$.state=g.memoizedState,$.componentWillUnmount()}catch(ve){Rr(g,u,ve)}Ai(s,u,g);break;case 21:Ai(s,u,g);break;case 22:g.mode&1?(fa=($=fa)||g.memoizedState!==null,Ai(s,u,g),fa=$):Ai(s,u,g);break;default:Ai(s,u,g)}}function VC(s){var u=s.updateQueue;if(u!==null){s.updateQueue=null;var g=s.stateNode;g===null&&(g=s.stateNode=new nk),u.forEach(function($){var N=fk.bind(null,s,$);g.has($)||(g.add($),$.then(N,N))})}}function ho(s,u){var g=u.deletions;if(g!==null)for(var $=0;$N&&(N=Q),$&=~H}if($=N,$=Ke()-$,$=(120>$?120:480>$?480:1080>$?1080:1920>$?1920:3e3>$?3e3:4320>$?4320:1960*ok($/1960))-$,10<$){s.timeoutHandle=zv(Ol.bind(null,s,Ra,li),$);break}Ol(s,Ra,li);break;case 5:Ol(s,Ra,li);break;default:throw Error(n(329))}}}return Pa(s,Ke()),s.callbackNode===g?GC.bind(null,s):null}function Mg(s,u){var g=eu;return s.current.memoizedState.isDehydrated&&(Il(s,u).flags|=256),s=Rf(s,u),s!==2&&(u=Ra,Ra=g,u!==null&&Tg(u)),s}function Tg(s){Ra===null?Ra=s:Ra.push.apply(Ra,s)}function ik(s){for(var u=s;;){if(u.flags&16384){var g=u.updateQueue;if(g!==null&&(g=g.stores,g!==null))for(var $=0;$s?16:s,Bi===null)var $=!1;else{if(s=Bi,Bi=null,_f=0,(Wn&6)!==0)throw Error(n(331));var N=Wn;for(Wn|=4,Yt=s.current;Yt!==null;){var H=Yt,Q=H.child;if((Yt.flags&16)!==0){var ve=H.deletions;if(ve!==null){for(var $e=0;$eKe()-Ng?Il(s,0):Pg|=g),Pa(s,u)}function nw(s,u){u===0&&((s.mode&1)===0?u=1:(u=er,er<<=1,(er&130023424)===0&&(er=4194304)));var g=Sa();s=ai(s,u),s!==null&&(gn(s,u,g),Pa(s,g))}function dk(s){var u=s.memoizedState,g=0;u!==null&&(g=u.retryLane),nw(s,g)}function fk(s,u){var g=0;switch(s.tag){case 13:var $=s.stateNode,N=s.memoizedState;N!==null&&(g=N.retryLane);break;case 19:$=s.stateNode;break;default:throw Error(n(314))}$!==null&&$.delete(u),nw(s,g)}var rw;rw=function(s,u,g){if(s!==null)if(s.memoizedProps!==u.pendingProps||_a.current)Oa=!0;else{if((s.lanes&g)===0&&(u.flags&128)===0)return Oa=!1,Zj(s,u,g);Oa=(s.flags&131072)!==0}else Oa=!1,Sr&&(u.flags&1048576)!==0&&DS(u,rf,u.index);switch(u.lanes=0,u.tag){case 2:var $=u.type;bf(s,u),s=u.pendingProps;var N=gs(u,ca.current);Cs(u,g),N=sg(null,u,$,s,N,g);var H=cg();return u.flags|=1,typeof N=="object"&&N!==null&&typeof N.render=="function"&&N.$$typeof===void 0?(u.tag=1,u.memoizedState=null,u.updateQueue=null,Ia($)?(H=!0,ef(u)):H=!1,u.memoizedState=N.state!==null&&N.state!==void 0?N.state:null,tg(u),N.updater=hf,u.stateNode=N,N._reactInternals=u,vg(u,$,s,g),u=bg(null,u,$,!0,H,g)):(u.tag=0,Sr&&H&&Kv(u),xa(null,u,N,g),u=u.child),u;case 16:$=u.elementType;e:{switch(bf(s,u),s=u.pendingProps,N=$._init,$=N($._payload),u.type=$,N=u.tag=pk($),s=vo($,s),N){case 0:u=yg(null,u,$,s,g);break e;case 1:u=RC(null,u,$,s,g);break e;case 11:u=$C(null,u,$,s,g);break e;case 14:u=EC(null,u,$,vo($.type,s),g);break e}throw Error(n(306,$,""))}return u;case 0:return $=u.type,N=u.pendingProps,N=u.elementType===$?N:vo($,N),yg(s,u,$,N,g);case 1:return $=u.type,N=u.pendingProps,N=u.elementType===$?N:vo($,N),RC(s,u,$,N,g);case 3:e:{if(PC(u),s===null)throw Error(n(387));$=u.pendingProps,H=u.memoizedState,N=H.element,KS(s,u),uf(u,$,null,g);var Q=u.memoizedState;if($=Q.element,H.isDehydrated)if(H={element:$,isDehydrated:!1,cache:Q.cache,pendingSuspenseBoundaries:Q.pendingSuspenseBoundaries,transitions:Q.transitions},u.updateQueue.baseState=H,u.memoizedState=H,u.flags&256){N=$s(Error(n(423)),u),u=NC(s,u,$,g,N);break e}else if($!==N){N=$s(Error(n(424)),u),u=NC(s,u,$,g,N);break e}else for(Fa=ki(u.stateNode.containerInfo.firstChild),Da=u,Sr=!0,po=null,g=VS(u,null,$,g),u.child=g;g;)g.flags=g.flags&-3|4096,g=g.sibling;else{if(bs(),$===N){u=ii(s,u,g);break e}xa(s,u,$,g)}u=u.child}return u;case 5:return YS(u),s===null&&Yv(u),$=u.type,N=u.pendingProps,H=s!==null?s.memoizedProps:null,Q=N.children,Av($,N)?Q=null:H!==null&&Av($,H)&&(u.flags|=32),OC(s,u),xa(s,u,Q,g),u.child;case 6:return s===null&&Yv(u),null;case 13:return jC(s,u,g);case 4:return ng(u,u.stateNode.containerInfo),$=u.pendingProps,s===null?u.child=xs(u,null,$,g):xa(s,u,$,g),u.child;case 11:return $=u.type,N=u.pendingProps,N=u.elementType===$?N:vo($,N),$C(s,u,$,N,g);case 7:return xa(s,u,u.pendingProps,g),u.child;case 8:return xa(s,u,u.pendingProps.children,g),u.child;case 12:return xa(s,u,u.pendingProps.children,g),u.child;case 10:e:{if($=u.type._context,N=u.pendingProps,H=u.memoizedProps,Q=N.value,cr(lf,$._currentValue),$._currentValue=Q,H!==null)if(mo(H.value,Q)){if(H.children===N.children&&!_a.current){u=ii(s,u,g);break e}}else for(H=u.child,H!==null&&(H.return=u);H!==null;){var ve=H.dependencies;if(ve!==null){Q=H.child;for(var $e=ve.firstContext;$e!==null;){if($e.context===$){if(H.tag===1){$e=oi(-1,g&-g),$e.tag=2;var Be=H.updateQueue;if(Be!==null){Be=Be.shared;var lt=Be.pending;lt===null?$e.next=$e:($e.next=lt.next,lt.next=$e),Be.pending=$e}}H.lanes|=g,$e=H.alternate,$e!==null&&($e.lanes|=g),Zv(H.return,g,u),ve.lanes|=g;break}$e=$e.next}}else if(H.tag===10)Q=H.type===u.type?null:H.child;else if(H.tag===18){if(Q=H.return,Q===null)throw Error(n(341));Q.lanes|=g,ve=Q.alternate,ve!==null&&(ve.lanes|=g),Zv(Q,g,u),Q=H.sibling}else Q=H.child;if(Q!==null)Q.return=H;else for(Q=H;Q!==null;){if(Q===u){Q=null;break}if(H=Q.sibling,H!==null){H.return=Q.return,Q=H;break}Q=Q.return}H=Q}xa(s,u,N.children,g),u=u.child}return u;case 9:return N=u.type,$=u.pendingProps.children,Cs(u,g),N=Ya(N),$=$(N),u.flags|=1,xa(s,u,$,g),u.child;case 14:return $=u.type,N=vo($,u.pendingProps),N=vo($.type,N),EC(s,u,$,N,g);case 15:return _C(s,u,u.type,u.pendingProps,g);case 17:return $=u.type,N=u.pendingProps,N=u.elementType===$?N:vo($,N),bf(s,u),u.tag=1,Ia($)?(s=!0,ef(u)):s=!1,Cs(u,g),hC(u,$,N),vg(u,$,N,g),bg(null,u,$,!0,s,g);case 19:return MC(s,u,g);case 22:return IC(s,u,g)}throw Error(n(156,u.tag))};function aw(s,u){return kn(s,u)}function mk(s,u,g,$){this.tag=s,this.key=g,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=u,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=$,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function Qa(s,u,g,$){return new mk(s,u,g,$)}function Ag(s){return s=s.prototype,!(!s||!s.isReactComponent)}function pk(s){if(typeof s=="function")return Ag(s)?1:0;if(s!=null){if(s=s.$$typeof,s===W)return 11;if(s===A)return 14}return 2}function Wi(s,u){var g=s.alternate;return g===null?(g=Qa(s.tag,u,s.key,s.mode),g.elementType=s.elementType,g.type=s.type,g.stateNode=s.stateNode,g.alternate=s,s.alternate=g):(g.pendingProps=u,g.type=s.type,g.flags=0,g.subtreeFlags=0,g.deletions=null),g.flags=s.flags&14680064,g.childLanes=s.childLanes,g.lanes=s.lanes,g.child=s.child,g.memoizedProps=s.memoizedProps,g.memoizedState=s.memoizedState,g.updateQueue=s.updateQueue,u=s.dependencies,g.dependencies=u===null?null:{lanes:u.lanes,firstContext:u.firstContext},g.sibling=s.sibling,g.index=s.index,g.ref=s.ref,g}function Pf(s,u,g,$,N,H){var Q=2;if($=s,typeof s=="function")Ag(s)&&(Q=1);else if(typeof s=="string")Q=5;else e:switch(s){case P:return Rl(g.children,N,H,u);case j:Q=8,N|=8;break;case R:return s=Qa(12,g,u,N|2),s.elementType=R,s.lanes=H,s;case B:return s=Qa(13,g,u,N),s.elementType=B,s.lanes=H,s;case F:return s=Qa(19,g,u,N),s.elementType=F,s.lanes=H,s;case M:return Nf(g,N,H,u);default:if(typeof s=="object"&&s!==null)switch(s.$$typeof){case k:Q=10;break e;case L:Q=9;break e;case W:Q=11;break e;case A:Q=14;break e;case T:Q=16,$=null;break e}throw Error(n(130,s==null?s:typeof s,""))}return u=Qa(Q,g,u,N),u.elementType=s,u.type=$,u.lanes=H,u}function Rl(s,u,g,$){return s=Qa(7,s,$,u),s.lanes=g,s}function Nf(s,u,g,$){return s=Qa(22,s,$,u),s.elementType=M,s.lanes=g,s.stateNode={isHidden:!1},s}function zg(s,u,g){return s=Qa(6,s,null,u),s.lanes=g,s}function Bg(s,u,g){return u=Qa(4,s.children!==null?s.children:[],s.key,u),u.lanes=g,u.stateNode={containerInfo:s.containerInfo,pendingChildren:null,implementation:s.implementation},u}function vk(s,u,g,$,N){this.tag=u,this.containerInfo=s,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=It(0),this.expirationTimes=It(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=It(0),this.identifierPrefix=$,this.onRecoverableError=N,this.mutableSourceEagerHydrationData=null}function Hg(s,u,g,$,N,H,Q,ve,$e){return s=new vk(s,u,g,ve,$e),u===1?(u=1,H===!0&&(u|=8)):u=0,H=Qa(3,null,null,u),s.current=H,H.stateNode=s,H.memoizedState={element:$,isDehydrated:g,cache:null,transitions:null,pendingSuspenseBoundaries:null},tg(H),s}function gk(s,u,g){var $=3"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(e)}catch(t){console.error(t)}}return e(),Yg.exports=Ik(),Yg.exports}var yw;function Ok(){if(yw)return Lf;yw=1;var e=O_();return Lf.createRoot=e.createRoot,Lf.hydrateRoot=e.hydrateRoot,Lf}var Rk=Ok(),Qg={exports:{}};/*! + Copyright (c) 2018 Jed Watson. + Licensed under the MIT License (MIT), see + http://jedwatson.github.io/classnames +*/var bw;function Pk(){return bw||(bw=1,function(e){(function(){var t={}.hasOwnProperty;function n(){for(var o="",l=0;l1&&arguments[1]!==void 0?arguments[1]:{},n=[];return be.Children.forEach(e,function(r){r==null&&!t.keepEmpty||(Array.isArray(r)?n=n.concat(ga(r)):R_(r)&&r.props?n=n.concat(ga(r.props.children,t)):n.push(r))}),n}var vy={},Tk=function(t){};function Dk(e,t){}function Fk(e,t){}function Lk(){vy={}}function P_(e,t,n){!t&&!vy[n]&&(e(!1,n),vy[n]=!0)}function or(e,t){P_(Dk,e,t)}function Ak(e,t){P_(Fk,e,t)}or.preMessage=Tk;or.resetWarned=Lk;or.noteOnce=Ak;function zk(e,t){if(wt(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(wt(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function N_(e){var t=zk(e,"string");return wt(t)=="symbol"?t:t+""}function G(e,t,n){return(t=N_(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function xw(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),n.push.apply(n,r)}return n}function Z(e){for(var t=1;t=19)return!0;var a=Zg.isMemo(t)?t.type.type:t.type;return!(typeof a=="function"&&!((n=a.prototype)!==null&&n!==void 0&&n.render)&&a.$$typeof!==Zg.ForwardRef||typeof t=="function"&&!((r=t.prototype)!==null&&r!==void 0&&r.render)&&t.$$typeof!==Zg.ForwardRef)};function q0(e){return i.isValidElement(e)&&!R_(e)}var Kk=function(t){return q0(t)&&Io(t)},fl=function(t){if(t&&q0(t)){var n=t;return n.props.propertyIsEnumerable("ref")?n.props.ref:n.ref}return null},gy=i.createContext(null);function Uk(e){var t=e.children,n=e.onBatchResize,r=i.useRef(0),a=i.useRef([]),o=i.useContext(gy),l=i.useCallback(function(c,d,f){r.current+=1;var m=r.current;a.current.push({size:c,element:d,data:f}),Promise.resolve().then(function(){m===r.current&&(n==null||n(a.current),a.current=[])}),o==null||o(c,d,f)},[n,o]);return i.createElement(gy.Provider,{value:l},t)}var j_=function(){if(typeof Map<"u")return Map;function e(t,n){var r=-1;return t.some(function(a,o){return a[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),a=this.__entries__[r];return a&&a[1]},t.prototype.set=function(n,r){var a=e(this.__entries__,n);~a?this.__entries__[a][1]=r:this.__entries__.push([n,r])},t.prototype.delete=function(n){var r=this.__entries__,a=e(r,n);~a&&r.splice(a,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 a=0,o=this.__entries__;a0},e.prototype.connect_=function(){!hy||this.connected_||(document.addEventListener("transitionend",this.onTransitionEnd_),window.addEventListener("resize",this.refresh),Jk?(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(){!hy||!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,a=Qk.some(function(o){return!!~r.indexOf(o)});a&&this.refresh()},e.getInstance=function(){return this.instance_||(this.instance_=new e),this.instance_},e.instance_=null,e}(),k_=function(e,t){for(var n=0,r=Object.keys(t);n"u"||!(Element instanceof Object))){if(!(t instanceof ec(t).Element))throw new TypeError('parameter 1 is not of type "Element".');var n=this.observations_;n.has(t)||(n.set(t,new lM(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 ec(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 sM(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}(),T_=typeof WeakMap<"u"?new WeakMap:new j_,D_=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=Zk.getInstance(),r=new cM(t,n,this);T_.set(this,r)}return e}();["observe","unobserve","disconnect"].forEach(function(e){D_.prototype[e]=function(){var t;return(t=T_.get(this))[e].apply(t,arguments)}});var uM=function(){return typeof Lm.ResizeObserver<"u"?Lm.ResizeObserver:D_}(),Ji=new Map;function dM(e){e.forEach(function(t){var n,r=t.target;(n=Ji.get(r))===null||n===void 0||n.forEach(function(a){return a(r)})})}var F_=new uM(dM);function fM(e,t){Ji.has(e)||(Ji.set(e,new Set),F_.observe(e)),Ji.get(e).add(t)}function mM(e,t){Ji.has(e)&&(Ji.get(e).delete(t),Ji.get(e).size||(F_.unobserve(e),Ji.delete(e)))}function ur(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function $w(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;Ew+=1;var r=Ew;function a(o){if(o===0)B_(r),t();else{var l=A_(function(){a(o-1)});X0.set(r,l)}}return a(n),r};mn.cancel=function(e){var t=X0.get(e);return B_(e),z_(t)};function H_(e){if(Array.isArray(e))return e}function CM(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r,a,o,l,c=[],d=!0,f=!1;try{if(o=(n=n.call(e)).next,t===0){if(Object(n)!==n)return;d=!1}else for(;!(d=(r=o.call(n)).done)&&(c.push(r.value),c.length!==t);d=!0);}catch(m){f=!0,a=m}finally{try{if(!d&&n.return!=null&&(l=n.return(),Object(l)!==l))return}finally{if(f)throw a}}return c}}function V_(){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 se(e,t){return H_(e)||CM(e,t)||G0(e,t)||V_()}function Hu(e){for(var t=0,n,r=0,a=e.length;a>=4;++r,a-=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(a){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 aa(){return!!(typeof window<"u"&&window.document&&window.document.createElement)}function wM(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 _w="data-rc-order",Iw="data-rc-priority",$M="rc-util-key",by=new Map;function W_(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},t=e.mark;return t?t.startsWith("data-")?t:"data-".concat(t):$M}function fp(e){if(e.attachTo)return e.attachTo;var t=document.querySelector("head");return t||document.body}function EM(e){return e==="queue"?"prependQueue":e?"prepend":"append"}function Q0(e){return Array.from((by.get(e)||e).children).filter(function(t){return t.tagName==="STYLE"})}function K_(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(!aa())return null;var n=t.csp,r=t.prepend,a=t.priority,o=a===void 0?0:a,l=EM(r),c=l==="prependQueue",d=document.createElement("style");d.setAttribute(_w,l),c&&o&&d.setAttribute(Iw,"".concat(o)),n!=null&&n.nonce&&(d.nonce=n==null?void 0:n.nonce),d.innerHTML=e;var f=fp(t),m=f.firstChild;if(r){if(c){var p=(t.styles||Q0(f)).filter(function(v){if(!["prepend","prependQueue"].includes(v.getAttribute(_w)))return!1;var h=Number(v.getAttribute(Iw)||0);return o>=h});if(p.length)return f.insertBefore(d,p[p.length-1].nextSibling),d}f.insertBefore(d,m)}else f.appendChild(d);return d}function U_(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=fp(t);return(t.styles||Q0(n)).find(function(r){return r.getAttribute(W_(t))===e})}function Vu(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=U_(e,t);if(n){var r=fp(t);r.removeChild(n)}}function _M(e,t){var n=by.get(e);if(!n||!wM(document,n)){var r=K_("",t),a=r.parentNode;by.set(e,a),e.removeChild(r)}}function gi(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},r=fp(n),a=Q0(r),o=Z(Z({},n),{},{styles:a});_M(r,o);var l=U_(t,o);if(l){var c,d;if((c=o.csp)!==null&&c!==void 0&&c.nonce&&l.nonce!==((d=o.csp)===null||d===void 0?void 0:d.nonce)){var f;l.nonce=(f=o.csp)===null||f===void 0?void 0:f.nonce}return l.innerHTML!==e&&(l.innerHTML=e),l}var m=K_(e,o);return m.setAttribute(W_(o),t),m}function IM(e,t){if(e==null)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.indexOf(r)!==-1)continue;n[r]=e[r]}return n}function Kt(e,t){if(e==null)return{};var n,r,a=IM(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 a(o,l){var c=arguments.length>2&&arguments[2]!==void 0?arguments[2]:1,d=r.has(o);if(or(!d,"Warning: There may be circular references"),d)return!1;if(o===l)return!0;if(n&&c>1)return!1;r.add(o);var f=c+1;if(Array.isArray(o)){if(!Array.isArray(l)||o.length!==l.length)return!1;for(var m=0;m1&&arguments[1]!==void 0?arguments[1]:!1,l={map:this.cache};return n.forEach(function(c){if(!l)l=void 0;else{var d;l=(d=l)===null||d===void 0||(d=d.map)===null||d===void 0?void 0:d.get(c)}}),(r=l)!==null&&r!==void 0&&r.value&&o&&(l.value[1]=this.cacheCallTimes++),(a=l)===null||a===void 0?void 0:a.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 a=this;if(!this.has(n)){if(this.size()+1>e.MAX_CACHE_SIZE+e.MAX_CACHE_OFFSET){var o=this.keys.reduce(function(f,m){var p=se(f,2),v=p[1];return a.internalGet(m)[1]0,void 0),Ow+=1}return dr(e,[{key:"getDerivativeToken",value:function(n){return this.derivatives.reduce(function(r,a){return a(n,r)},void 0)}}]),e}(),eh=new J0;function Sy(e){var t=Array.isArray(e)?e:[e];return eh.has(t)||eh.set(t,new q_(t)),eh.get(t)}var jM=new WeakMap,th={};function kM(e,t){for(var n=jM,r=0;r3&&arguments[3]!==void 0?arguments[3]:{},o=arguments.length>4&&arguments[4]!==void 0?arguments[4]:!1;if(o)return e;var l=Z(Z({},a),{},(r={},G(r,tc,t),G(r,wo,n),r)),c=Object.keys(l).map(function(d){var f=l[d];return f?"".concat(d,'="').concat(f,'"'):null}).filter(function(d){return d}).join(" ");return"")}var pm=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()},MM=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(a){var o=se(a,2),l=o[0],c=o[1];return"".concat(l,":").concat(c,";")}).join(""),"}"):""},Y_=function(t,n,r){var a={},o={};return Object.entries(t).forEach(function(l){var c,d,f=se(l,2),m=f[0],p=f[1];if(r!=null&&(c=r.preserve)!==null&&c!==void 0&&c[m])o[m]=p;else if((typeof p=="string"||typeof p=="number")&&!(r!=null&&(d=r.ignore)!==null&&d!==void 0&&d[m])){var v,h=pm(m,r==null?void 0:r.prefix);a[h]=typeof p=="number"&&!(r!=null&&(v=r.unitless)!==null&&v!==void 0&&v[m])?"".concat(p,"px"):String(p),o[m]="var(".concat(h,")")}}),[o,MM(a,n,{scope:r==null?void 0:r.scope})]},Nw=aa()?i.useLayoutEffect:i.useEffect,hn=function(t,n){var r=i.useRef(!0);Nw(function(){return t(r.current)},n),Nw(function(){return r.current=!1,function(){r.current=!0}},[])},zl=function(t,n){hn(function(r){if(!r)return t()},n)},TM=Z({},dd),jw=TM.useInsertionEffect,DM=function(t,n,r){i.useMemo(t,r),hn(function(){return n(!0)},r)},FM=jw?function(e,t,n){return jw(function(){return e(),t()},n)}:DM,LM=Z({},dd),AM=LM.useInsertionEffect,zM=function(t){var n=[],r=!1;function a(o){r||n.push(o)}return i.useEffect(function(){return r=!1,function(){r=!0,n.length&&n.forEach(function(o){return o()})}},t),a},BM=function(){return function(t){t()}},HM=typeof AM<"u"?zM:BM;function Z0(e,t,n,r,a){var o=i.useContext(md),l=o.cache,c=[e].concat(Te(t)),d=xy(c),f=HM([d]),m=function(b){l.opUpdate(d,function(x){var y=x||[void 0,void 0],C=se(y,2),w=C[0],E=w===void 0?0:w,I=C[1],_=I,O=_||n(),P=[E,O];return b?b(P):P})};i.useMemo(function(){m()},[d]);var p=l.opGet(d),v=p[1];return FM(function(){a==null||a(v)},function(h){return m(function(b){var x=se(b,2),y=x[0],C=x[1];return h&&y===0&&(a==null||a(v)),[y+1,C]}),function(){l.opUpdate(d,function(b){var x=b||[],y=se(x,2),C=y[0],w=C===void 0?0:C,E=y[1],I=w-1;return I===0?(f(function(){(h||!l.opGet(d))&&(r==null||r(E,!1))}),null):[w-1,E]})}},[d]),v}var VM={},WM="css",Tl=new Map;function KM(e){Tl.set(e,(Tl.get(e)||0)+1)}function UM(e,t){if(typeof document<"u"){var n=document.querySelectorAll("style[".concat(tc,'="').concat(e,'"]'));n.forEach(function(r){if(r[Zi]===t){var a;(a=r.parentNode)===null||a===void 0||a.removeChild(r)}})}}var qM=0;function YM(e,t){Tl.set(e,(Tl.get(e)||0)-1);var n=Array.from(Tl.keys()),r=n.filter(function(a){var o=Tl.get(a)||0;return o<=0});n.length-r.length>qM&&r.forEach(function(a){UM(a,t),Tl.delete(a)})}var GM=function(t,n,r,a){var o=r.getDerivativeToken(t),l=Z(Z({},o),n);return a&&(l=a(l)),l},G_="token";function XM(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},r=i.useContext(md),a=r.cache.instanceId,o=r.container,l=n.salt,c=l===void 0?"":l,d=n.override,f=d===void 0?VM:d,m=n.formatToken,p=n.getComputedToken,v=n.cssVar,h=kM(function(){return Object.assign.apply(Object,[{}].concat(Te(t)))},t),b=_u(h),x=_u(f),y=v?_u(v):"",C=Z0(G_,[c,e.id,b,x,y],function(){var w,E=p?p(h,f,e):GM(h,f,e,m),I=Z({},E),_="";if(v){var O=Y_(E,v.key,{prefix:v.prefix,ignore:v.ignore,unitless:v.unitless,preserve:v.preserve}),P=se(O,2);E=P[0],_=P[1]}var j=Pw(E,c);E._tokenKey=j,I._tokenKey=Pw(I,c);var R=(w=v==null?void 0:v.key)!==null&&w!==void 0?w:j;E._themeKey=R,KM(R);var k="".concat(WM,"-").concat(Hu(j));return E._hashId=k,[E,k,I,_,(v==null?void 0:v.key)||""]},function(w){YM(w[0]._themeKey,a)},function(w){var E=se(w,4),I=E[0],_=E[3];if(v&&_){var O=gi(_,Hu("css-variables-".concat(I._themeKey)),{mark:wo,prepend:"queue",attachTo:o,priority:-999});O[Zi]=a,O.setAttribute(tc,I._themeKey)}});return C}var QM=function(t,n,r){var a=se(t,5),o=a[2],l=a[3],c=a[4],d=r||{},f=d.plain;if(!l)return null;var m=o._tokenKey,p=-999,v={"data-rc-order":"prependQueue","data-rc-priority":"".concat(p)},h=zm(l,c,m,v,f);return[p,m,h]},JM={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},X_="comm",Q_="rule",J_="decl",ZM="@import",eT="@namespace",tT="@keyframes",nT="@layer",Z_=Math.abs,eb=String.fromCharCode;function eI(e){return e.trim()}function vm(e,t,n){return e.replace(t,n)}function rT(e,t,n){return e.indexOf(t,n)}function Ks(e,t){return e.charCodeAt(t)|0}function nc(e,t,n){return e.slice(t,n)}function Vo(e){return e.length}function aT(e){return e.length}function Af(e,t){return t.push(e),e}var mp=1,rc=1,tI=0,oo=0,Ar=0,sc="";function tb(e,t,n,r,a,o,l,c){return{value:e,root:t,parent:n,type:r,props:a,children:o,line:mp,column:rc,length:l,return:"",siblings:c}}function oT(){return Ar}function iT(){return Ar=oo>0?Ks(sc,--oo):0,rc--,Ar===10&&(rc=1,mp--),Ar}function $o(){return Ar=oo2||Wu(Ar)>3?"":" "}function uT(e,t){for(;--t&&$o()&&!(Ar<48||Ar>102||Ar>57&&Ar<65||Ar>70&&Ar<97););return pp(e,gm()+(t<6&&el()==32&&$o()==32))}function wy(e){for(;$o();)switch(Ar){case e:return oo;case 34:case 39:e!==34&&e!==39&&wy(Ar);break;case 40:e===41&&wy(e);break;case 92:$o();break}return oo}function dT(e,t){for(;$o()&&e+Ar!==57;)if(e+Ar===84&&el()===47)break;return"/*"+pp(t,oo-1)+"*"+eb(e===47?e:$o())}function fT(e){for(;!Wu(el());)$o();return pp(e,oo)}function mT(e){return sT(hm("",null,null,null,[""],e=lT(e),0,[0],e))}function hm(e,t,n,r,a,o,l,c,d){for(var f=0,m=0,p=l,v=0,h=0,b=0,x=1,y=1,C=1,w=0,E="",I=a,_=o,O=r,P=E;y;)switch(b=w,w=$o()){case 40:if(b!=108&&Ks(P,p-1)==58){rT(P+=vm(nh(w),"&","&\f"),"&\f",Z_(f?c[f-1]:0))!=-1&&(C=-1);break}case 34:case 39:case 91:P+=nh(w);break;case 9:case 10:case 13:case 32:P+=cT(b);break;case 92:P+=uT(gm()-1,7);continue;case 47:switch(el()){case 42:case 47:Af(pT(dT($o(),gm()),t,n,d),d),(Wu(b||1)==5||Wu(el()||1)==5)&&Vo(P)&&nc(P,-1,void 0)!==" "&&(P+=" ");break;default:P+="/"}break;case 123*x:c[f++]=Vo(P)*C;case 125*x:case 59:case 0:switch(w){case 0:case 125:y=0;case 59+m:C==-1&&(P=vm(P,/\f/g,"")),h>0&&(Vo(P)-p||x===0&&b===47)&&Af(h>32?Mw(P+";",r,n,p-1,d):Mw(vm(P," ","")+";",r,n,p-2,d),d);break;case 59:P+=";";default:if(Af(O=kw(P,t,n,f,m,a,c,E,I=[],_=[],p,o),o),w===123)if(m===0)hm(P,t,O,O,I,o,p,c,_);else{switch(v){case 99:if(Ks(P,3)===110)break;case 108:if(Ks(P,2)===97)break;default:m=0;case 100:case 109:case 115:}m?hm(e,O,O,r&&Af(kw(e,O,O,0,0,a,c,E,a,I=[],p,_),_),a,_,p,c,r?I:_):hm(P,O,O,O,[""],_,0,c,_)}}f=m=h=0,x=C=1,E=P="",p=l;break;case 58:p=1+Vo(P),h=b;default:if(x<1){if(w==123)--x;else if(w==125&&x++==0&&iT()==125)continue}switch(P+=eb(w),w*x){case 38:C=m>0?1:(P+="\f",-1);break;case 44:c[f++]=(Vo(P)-1)*C,C=1;break;case 64:el()===45&&(P+=nh($o())),v=el(),m=p=Vo(E=P+=fT(gm())),w++;break;case 45:b===45&&Vo(P)==2&&(x=0)}}return o}function kw(e,t,n,r,a,o,l,c,d,f,m,p){for(var v=a-1,h=a===0?o:[""],b=aT(h),x=0,y=0,C=0;x0?h[w]+" "+E:vm(E,/&\f/g,h[w])))&&(d[C++]=I);return tb(e,t,n,a===0?Q_:c,d,f,m,p)}function pT(e,t,n,r){return tb(e,t,n,X_,eb(oT()),nc(e,2,-2),0,r)}function Mw(e,t,n,r,a){return tb(e,t,n,J_,nc(e,0,r),nc(e,r+1,-1),r,a)}function $y(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:[]},a=r.root,o=r.injectHash,l=r.parentSelectors,c=n.hashId,d=n.layer;n.path;var f=n.hashPriority,m=n.transformers,p=m===void 0?[]:m;n.linters;var v="",h={};function b(C){var w=C.getName(c);if(!h[w]){var E=e(C.style,n,{root:!1,parentSelectors:l}),I=se(E,1),_=I[0];h[w]="@keyframes ".concat(C.getName(c)).concat(_)}}function x(C){var w=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[];return C.forEach(function(E){Array.isArray(E)?x(E,w):E&&w.push(E)}),w}var y=x(Array.isArray(t)?t:[t]);return y.forEach(function(C){var w=typeof C=="string"&&!a?{}:C;if(typeof w=="string")v+="".concat(w,` +`);else if(w._keyframe)b(w);else{var E=p.reduce(function(I,_){var O;return(_==null||(O=_.visit)===null||O===void 0?void 0:O.call(_,I))||I},w);Object.keys(E).forEach(function(I){var _=E[I];if(wt(_)==="object"&&_&&(I!=="animationName"||!_._keyframe)&&!xT(_)){var O=!1,P=I.trim(),j=!1;(a||o)&&c?P.startsWith("@")?O=!0:P==="&"?P=Dw("",c,f):P=Dw(I,c,f):a&&!c&&(P==="&"||P==="")&&(P="",j=!0);var R=e(_,n,{root:j,injectHash:O,parentSelectors:[].concat(Te(l),[P])}),k=se(R,2),L=k[0],W=k[1];h=Z(Z({},h),W),v+="".concat(P).concat(L)}else{let A=function(T,M){var D=T.replace(/[A-Z]/g,function(K){return"-".concat(K.toLowerCase())}),V=M;!JM[T]&&typeof V=="number"&&V!==0&&(V="".concat(V,"px")),T==="animationName"&&M!==null&&M!==void 0&&M._keyframe&&(b(M),V=M.getName(c)),v+="".concat(D,":").concat(V,";")};var B,F=(B=_==null?void 0:_.value)!==null&&B!==void 0?B:_;wt(_)==="object"&&_!==null&&_!==void 0&&_[aI]&&Array.isArray(F)?F.forEach(function(T){A(I,T)}):A(I,F)}})}}),a?d&&(v&&(v="@layer ".concat(d.name," {").concat(v,"}")),d.dependencies&&(h["@layer ".concat(d.name)]=d.dependencies.map(function(C){return"@layer ".concat(C,", ").concat(d.name,";")}).join(` +`))):v="{".concat(v,"}"),[v,h]};function oI(e,t){return Hu("".concat(e.join("%")).concat(t))}function CT(){return null}var iI="style";function Ey(e,t){var n=e.token,r=e.path,a=e.hashId,o=e.layer,l=e.nonce,c=e.clientOnly,d=e.order,f=d===void 0?0:d,m=i.useContext(md),p=m.autoClear;m.mock;var v=m.defaultCache,h=m.hashPriority,b=m.container,x=m.ssrInline,y=m.transformers,C=m.linters,w=m.cache,E=m.layer,I=n._tokenKey,_=[I];E&&_.push("layer"),_.push.apply(_,Te(r));var O=Cy,P=Z0(iI,_,function(){var W=_.join("|");if(hT(W)){var B=yT(W),F=se(B,2),A=F[0],T=F[1];if(A)return[A,I,T,{},c,f]}var M=t(),D=ST(M,{hashId:a,hashPriority:h,layer:E?o:void 0,path:r.join("-"),transformers:y,linters:C}),V=se(D,2),K=V[0],z=V[1],U=ym(K),Y=oI(_,U);return[U,I,Y,z,c,f]},function(W,B){var F=se(W,3),A=F[2];(B||p)&&Cy&&Vu(A,{mark:wo})},function(W){var B=se(W,4),F=B[0];B[1];var A=B[2],T=B[3];if(O&&F!==nI){var M={mark:wo,prepend:E?!1:"queue",attachTo:b,priority:f},D=typeof l=="function"?l():l;D&&(M.csp={nonce:D});var V=[],K=[];Object.keys(T).forEach(function(U){U.startsWith("@layer")?V.push(U):K.push(U)}),V.forEach(function(U){gi(ym(T[U]),"_layer-".concat(U),Z(Z({},M),{},{prepend:!0}))});var z=gi(F,A,M);z[Zi]=w.instanceId,z.setAttribute(tc,I),K.forEach(function(U){gi(ym(T[U]),"_effect-".concat(U),M)})}}),j=se(P,3),R=j[0],k=j[1],L=j[2];return function(W){var B;if(!x||O||!v)B=i.createElement(CT,null);else{var F;B=i.createElement("style",Pe({},(F={},G(F,tc,k),G(F,wo,L),F),{dangerouslySetInnerHTML:{__html:R}}))}return i.createElement(i.Fragment,null,B,W)}}var wT=function(t,n,r){var a=se(t,6),o=a[0],l=a[1],c=a[2],d=a[3],f=a[4],m=a[5],p=r||{},v=p.plain;if(f)return null;var h=o,b={"data-rc-order":"prependQueue","data-rc-priority":"".concat(m)};return h=zm(o,l,c,b,v),d&&Object.keys(d).forEach(function(x){if(!n[x]){n[x]=!0;var y=ym(d[x]),C=zm(y,l,"_effect-".concat(x),b,v);x.startsWith("@layer")?h=C+h:h+=C}}),[m,c,h]},lI="cssVar",$T=function(t,n){var r=t.key,a=t.prefix,o=t.unitless,l=t.ignore,c=t.token,d=t.scope,f=d===void 0?"":d,m=i.useContext(md),p=m.cache.instanceId,v=m.container,h=c._tokenKey,b=[].concat(Te(t.path),[r,f,h]),x=Z0(lI,b,function(){var y=n(),C=Y_(y,r,{prefix:a,unitless:o,ignore:l,scope:f}),w=se(C,2),E=w[0],I=w[1],_=oI(b,I);return[E,I,_,r]},function(y){var C=se(y,3),w=C[2];Cy&&Vu(w,{mark:wo})},function(y){var C=se(y,3),w=C[1],E=C[2];if(w){var I=gi(w,E,{mark:wo,prepend:"queue",attachTo:v,priority:-999});I[Zi]=p,I.setAttribute(tc,r)}});return x},ET=function(t,n,r){var a=se(t,4),o=a[1],l=a[2],c=a[3],d=r||{},f=d.plain;if(!o)return null;var m=-999,p={"data-rc-order":"prependQueue","data-rc-priority":"".concat(m)},v=zm(o,c,l,p,f);return[m,l,v]},au;au={},G(au,iI,wT),G(au,G_,QM),G(au,lI,ET);var jn=function(){function e(t,n){ur(this,e),G(this,"name",void 0),G(this,"style",void 0),G(this,"_keyframe",!0),this.name=t,this.style=n}return dr(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 Rs(e){return e.notSplit=!0,e}Rs(["borderTop","borderBottom"]),Rs(["borderTop"]),Rs(["borderBottom"]),Rs(["borderLeft","borderRight"]),Rs(["borderLeft"]),Rs(["borderRight"]);var nb=i.createContext({});function sI(e){return H_(e)||L_(e)||G0(e)||V_()}function Ca(e,t){for(var n=e,r=0;r3&&arguments[3]!==void 0?arguments[3]:!1;return t.length&&r&&n===void 0&&!Ca(e,t.slice(0,-1))?e:cI(e,t,n,r)}function _T(e){return wt(e)==="object"&&e!==null&&Object.getPrototypeOf(e)===Object.prototype}function Fw(e){return Array.isArray(e)?[]:{}}var IT=typeof Reflect>"u"?Object.keys:Reflect.ownKeys;function Bs(){for(var e=arguments.length,t=new Array(e),n=0;n{const e=()=>{};return e.deprecated=OT,e},uI=i.createContext(void 0);var dI={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"},PT={yearFormat:"YYYY",dayFormat:"D",cellMeridiemFormat:"A",monthBeforeYear:!0},NT=Z(Z({},PT),{},{locale:"en_US",today:"Today",now:"Now",backToToday:"Back to today",ok:"OK",clear:"Clear",week:"Week",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 fI={placeholder:"Select time",rangePlaceholder:["Start time","End time"]},Bm={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"]},NT),timePickerLocale:Object.assign({},fI)},Aa="${label} is not a valid ${type}",bi={locale:"en",Pagination:dI,DatePicker:Bm,TimePicker:fI,Calendar:Bm,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:Aa,method:Aa,array:Aa,object:Aa,number:Aa,date:Aa,boolean:Aa,integer:Aa,float:Aa,regexp:Aa,email:Aa,url:Aa,hex:Aa},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({},bi.Modal);let bm=[];const Lw=()=>bm.reduce((e,t)=>Object.assign(Object.assign({},e),t),bi.Modal);function jT(e){if(e){const t=Object.assign({},e);return bm.push(t),Lw(),()=>{bm=bm.filter(n=>n!==t),Lw()}}Object.assign({},bi.Modal)}const rb=i.createContext(void 0),$i=(e,t)=>{const n=i.useContext(rb),r=i.useMemo(()=>{var o;const l=t||bi[e],c=(o=n==null?void 0:n[e])!==null&&o!==void 0?o:{};return Object.assign(Object.assign({},typeof l=="function"?l():l),c||{})},[e,t,n]),a=i.useMemo(()=>{const o=n==null?void 0:n.locale;return n!=null&&n.exist&&!o?bi.locale:o},[n]);return[r,a]},kT="internalMark",MT=e=>{const{locale:t={},children:n,_ANT_MARK__:r}=e;i.useEffect(()=>jT(t==null?void 0:t.Modal),[t]);const a=i.useMemo(()=>Object.assign(Object.assign({},t),{exist:!0}),[t]);return i.createElement(rb.Provider,{value:a},n)},mI={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"},Ku=Object.assign(Object.assign({},mI),{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}),Xr=Math.round;function rh(e,t){const n=e.replace(/^[^(]*\((.*)/,"$1").replace(/\).*/,"").match(/\d*\.?\d+%?/g)||[],r=n.map(a=>parseFloat(a));for(let a=0;a<3;a+=1)r[a]=t(r[a]||0,n[a]||"",a);return n[3]?r[3]=n[3].includes("%")?r[3]/100:r[3]:r[3]=1,r}const Aw=(e,t,n)=>n===0?e:e/100;function ou(e,t){const n=t||255;return e>n?n:e<0?0:e}class Pn{constructor(t){G(this,"isValid",!0),G(this,"r",0),G(this,"g",0),G(this,"b",0),G(this,"a",1),G(this,"_h",void 0),G(this,"_s",void 0),G(this,"_l",void 0),G(this,"_v",void 0),G(this,"_max",void 0),G(this,"_min",void 0),G(this,"_brightness",void 0);function n(r){return r[0]in t&&r[1]in t&&r[2]in t}if(t)if(typeof t=="string"){let a=function(o){return r.startsWith(o)};const r=t.trim();/^#?[A-F\d]{3,8}$/i.test(r)?this.fromHexString(r):a("rgb")?this.fromRgbString(r):a("hsl")?this.fromHslString(r):(a("hsv")||a("hsb"))&&this.fromHsvString(r)}else if(t instanceof Pn)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=ou(t.r),this.g=ou(t.g),this.b=ou(t.b),this.a=typeof t.a=="number"?ou(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 l=o/255;return l<=.03928?l/12.92:Math.pow((l+.055)/1.055,2.4)}const n=t(this.r),r=t(this.g),a=t(this.b);return .2126*n+.7152*r+.0722*a}getHue(){if(typeof this._h>"u"){const t=this.getMax()-this.getMin();t===0?this._h=0:this._h=Xr(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 a=this.getLightness()-t/100;return a<0&&(a=0),this._c({h:n,s:r,l:a,a:this.a})}lighten(t=10){const n=this.getHue(),r=this.getSaturation();let a=this.getLightness()+t/100;return a>1&&(a=1),this._c({h:n,s:r,l:a,a:this.a})}mix(t,n=50){const r=this._c(t),a=n/100,o=c=>(r[c]-this[c])*a+this[c],l={r:Xr(o("r")),g:Xr(o("g")),b:Xr(o("b")),a:Xr(o("a")*100)/100};return this._c(l)}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),a=o=>Xr((this[o]*this.a+n[o]*n.a*(1-this.a))/r);return this._c({r:a("r"),g:a("g"),b:a("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 a=(this.b||0).toString(16);if(t+=a.length===2?a:"0"+a,typeof this.a=="number"&&this.a>=0&&this.a<1){const o=Xr(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=Xr(this.getSaturation()*100),r=Xr(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 a=this.clone();return a[t]=ou(n,r),a}_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(a,o){return parseInt(n[a]+n[o||a],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}){if(this._h=t%360,this._s=n,this._l=r,this.a=typeof a=="number"?a:1,n<=0){const v=Xr(r*255);this.r=v,this.g=v,this.b=v}let o=0,l=0,c=0;const d=t/60,f=(1-Math.abs(2*r-1))*n,m=f*(1-Math.abs(d%2-1));d>=0&&d<1?(o=f,l=m):d>=1&&d<2?(o=m,l=f):d>=2&&d<3?(l=f,c=m):d>=3&&d<4?(l=m,c=f):d>=4&&d<5?(o=m,c=f):d>=5&&d<6&&(o=f,c=m);const p=r-f/2;this.r=Xr((o+p)*255),this.g=Xr((l+p)*255),this.b=Xr((c+p)*255)}fromHsv({h:t,s:n,v:r,a}){this._h=t%360,this._s=n,this._v=r,this.a=typeof a=="number"?a:1;const o=Xr(r*255);if(this.r=o,this.g=o,this.b=o,n<=0)return;const l=t/60,c=Math.floor(l),d=l-c,f=Xr(r*(1-n)*255),m=Xr(r*(1-n*d)*255),p=Xr(r*(1-n*(1-d))*255);switch(c){case 0:this.g=p,this.b=f;break;case 1:this.r=m,this.b=f;break;case 2:this.r=f,this.b=p;break;case 3:this.r=f,this.g=m;break;case 4:this.r=p,this.g=f;break;case 5:default:this.g=f,this.b=m;break}}fromHsvString(t){const n=rh(t,Aw);this.fromHsv({h:n[0],s:n[1],v:n[2],a:n[3]})}fromHslString(t){const n=rh(t,Aw);this.fromHsl({h:n[0],s:n[1],l:n[2],a:n[3]})}fromRgbString(t){const n=rh(t,(r,a)=>a.includes("%")?Xr(r/100*255):r);this.r=n[0],this.g=n[1],this.b=n[2],this.a=n[3]}}var zf=2,zw=.16,TT=.05,DT=.05,FT=.15,pI=5,vI=4,LT=[{index:7,amount:15},{index:6,amount:25},{index:5,amount:30},{index:5,amount:45},{index:5,amount:65},{index:5,amount:85},{index:4,amount:90},{index:3,amount:95},{index:2,amount:97},{index:1,amount:98}];function Bw(e,t,n){var r;return Math.round(e.h)>=60&&Math.round(e.h)<=240?r=n?Math.round(e.h)-zf*t:Math.round(e.h)+zf*t:r=n?Math.round(e.h)+zf*t:Math.round(e.h)-zf*t,r<0?r+=360:r>=360&&(r-=360),r}function Hw(e,t,n){if(e.h===0&&e.s===0)return e.s;var r;return n?r=e.s-zw*t:t===vI?r=e.s+zw:r=e.s+TT*t,r>1&&(r=1),n&&t===pI&&r>.1&&(r=.1),r<.06&&(r=.06),Math.round(r*100)/100}function Vw(e,t,n){var r;return n?r=e.v+DT*t:r=e.v-FT*t,r=Math.max(0,Math.min(1,r)),Math.round(r*100)/100}function Uu(e){for(var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=[],r=new Pn(e),a=r.toHsv(),o=pI;o>0;o-=1){var l=new Pn({h:Bw(a,o,!0),s:Hw(a,o,!0),v:Vw(a,o,!0)});n.push(l)}n.push(r);for(var c=1;c<=vI;c+=1){var d=new Pn({h:Bw(a,c),s:Hw(a,c),v:Vw(a,c)});n.push(d)}return t.theme==="dark"?LT.map(function(f){var m=f.index,p=f.amount;return new Pn(t.backgroundColor||"#141414").mix(n[m],p).toHexString()}):n.map(function(f){return f.toHexString()})}var Us={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"},_y=["#fff1f0","#ffccc7","#ffa39e","#ff7875","#ff4d4f","#f5222d","#cf1322","#a8071a","#820014","#5c0011"];_y.primary=_y[5];var Iy=["#fff2e8","#ffd8bf","#ffbb96","#ff9c6e","#ff7a45","#fa541c","#d4380d","#ad2102","#871400","#610b00"];Iy.primary=Iy[5];var Oy=["#fff7e6","#ffe7ba","#ffd591","#ffc069","#ffa940","#fa8c16","#d46b08","#ad4e00","#873800","#612500"];Oy.primary=Oy[5];var Hm=["#fffbe6","#fff1b8","#ffe58f","#ffd666","#ffc53d","#faad14","#d48806","#ad6800","#874d00","#613400"];Hm.primary=Hm[5];var Ry=["#feffe6","#ffffb8","#fffb8f","#fff566","#ffec3d","#fadb14","#d4b106","#ad8b00","#876800","#614700"];Ry.primary=Ry[5];var Py=["#fcffe6","#f4ffb8","#eaff8f","#d3f261","#bae637","#a0d911","#7cb305","#5b8c00","#3f6600","#254000"];Py.primary=Py[5];var Ny=["#f6ffed","#d9f7be","#b7eb8f","#95de64","#73d13d","#52c41a","#389e0d","#237804","#135200","#092b00"];Ny.primary=Ny[5];var jy=["#e6fffb","#b5f5ec","#87e8de","#5cdbd3","#36cfc9","#13c2c2","#08979c","#006d75","#00474f","#002329"];jy.primary=jy[5];var ac=["#e6f4ff","#bae0ff","#91caff","#69b1ff","#4096ff","#1677ff","#0958d9","#003eb3","#002c8c","#001d66"];ac.primary=ac[5];var ky=["#f0f5ff","#d6e4ff","#adc6ff","#85a5ff","#597ef7","#2f54eb","#1d39c4","#10239e","#061178","#030852"];ky.primary=ky[5];var My=["#f9f0ff","#efdbff","#d3adf7","#b37feb","#9254de","#722ed1","#531dab","#391085","#22075e","#120338"];My.primary=My[5];var Ty=["#fff0f6","#ffd6e7","#ffadd2","#ff85c0","#f759ab","#eb2f96","#c41d7f","#9e1068","#780650","#520339"];Ty.primary=Ty[5];var Dy=["#a6a6a6","#999999","#8c8c8c","#808080","#737373","#666666","#404040","#1a1a1a","#000000","#000000"];Dy.primary=Dy[5];var ah={red:_y,volcano:Iy,orange:Oy,gold:Hm,yellow:Ry,lime:Py,green:Ny,cyan:jy,blue:ac,geekblue:ky,purple:My,magenta:Ty,grey:Dy};function AT(e,t){let{generateColorPalettes:n,generateNeutralColorPalettes:r}=t;const{colorSuccess:a,colorWarning:o,colorError:l,colorInfo:c,colorPrimary:d,colorBgBase:f,colorTextBase:m}=e,p=n(d),v=n(a),h=n(o),b=n(l),x=n(c),y=r(f,m),C=e.colorLink||e.colorInfo,w=n(C),E=new Pn(b[1]).mix(new Pn(b[3]),50).toHexString();return Object.assign(Object.assign({},y),{colorPrimaryBg:p[1],colorPrimaryBgHover:p[2],colorPrimaryBorder:p[3],colorPrimaryBorderHover:p[4],colorPrimaryHover:p[5],colorPrimary:p[6],colorPrimaryActive:p[7],colorPrimaryTextHover:p[8],colorPrimaryText:p[9],colorPrimaryTextActive:p[10],colorSuccessBg:v[1],colorSuccessBgHover:v[2],colorSuccessBorder:v[3],colorSuccessBorderHover:v[4],colorSuccessHover:v[4],colorSuccess:v[6],colorSuccessActive:v[7],colorSuccessTextHover:v[8],colorSuccessText:v[9],colorSuccessTextActive:v[10],colorErrorBg:b[1],colorErrorBgHover:b[2],colorErrorBgFilledHover:E,colorErrorBgActive:b[3],colorErrorBorder:b[3],colorErrorBorderHover:b[4],colorErrorHover:b[5],colorError:b[6],colorErrorActive:b[7],colorErrorTextHover:b[8],colorErrorText:b[9],colorErrorTextActive:b[10],colorWarningBg:h[1],colorWarningBgHover:h[2],colorWarningBorder:h[3],colorWarningBorderHover:h[4],colorWarningHover:h[4],colorWarning:h[6],colorWarningActive:h[7],colorWarningTextHover:h[8],colorWarningText:h[9],colorWarningTextActive:h[10],colorInfoBg:x[1],colorInfoBgHover:x[2],colorInfoBorder:x[3],colorInfoBorderHover:x[4],colorInfoHover:x[4],colorInfo:x[6],colorInfoActive:x[7],colorInfoTextHover:x[8],colorInfoText:x[9],colorInfoTextActive:x[10],colorLinkHover:w[4],colorLink:w[6],colorLinkActive:w[7],colorBgMask:new Pn("#000").setA(.45).toRgbString(),colorWhite:"#fff"})}const zT=e=>{let t=e,n=e,r=e,a=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?a=4:e>=8&&(a=6),{borderRadius:e,borderRadiusXS:r,borderRadiusSM:n,borderRadiusLG:t,borderRadiusOuter:a}};function BT(e){const{motionUnit:t,motionBase:n,borderRadius:r,lineWidth:a}=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:a+1},zT(r))}const HT=e=>{const{controlHeight:t}=e;return{controlHeightSM:t*.75,controlHeightXS:t*.5,controlHeightLG:t*1.25}};function xm(e){return(e+8)/e}function VT(e){const t=Array.from({length:10}).map((n,r)=>{const a=r-1,o=e*Math.pow(Math.E,a/5),l=r>1?Math.floor(o):Math.ceil(o);return Math.floor(l/2)*2});return t[1]=e,t.map(n=>({size:n,lineHeight:xm(n)}))}const WT=e=>{const t=VT(e),n=t.map(m=>m.size),r=t.map(m=>m.lineHeight),a=n[1],o=n[0],l=n[2],c=r[1],d=r[0],f=r[2];return{fontSizeSM:o,fontSize:a,fontSizeLG:l,fontSizeXL:n[3],fontSizeHeading1:n[6],fontSizeHeading2:n[5],fontSizeHeading3:n[4],fontSizeHeading4:n[3],fontSizeHeading5:n[2],lineHeight:c,lineHeightLG:f,lineHeightSM:d,fontHeight:Math.round(c*a),fontHeightLG:Math.round(f*l),fontHeightSM:Math.round(d*o),lineHeightHeading1:r[6],lineHeightHeading2:r[5],lineHeightHeading3:r[4],lineHeightHeading4:r[3],lineHeightHeading5:r[2]}};function KT(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 Ja=(e,t)=>new Pn(e).setA(t).toRgbString(),iu=(e,t)=>new Pn(e).darken(t).toHexString(),UT=e=>{const t=Uu(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]}},qT=(e,t)=>{const n=e||"#fff",r=t||"#000";return{colorBgBase:n,colorTextBase:r,colorText:Ja(r,.88),colorTextSecondary:Ja(r,.65),colorTextTertiary:Ja(r,.45),colorTextQuaternary:Ja(r,.25),colorFill:Ja(r,.15),colorFillSecondary:Ja(r,.06),colorFillTertiary:Ja(r,.04),colorFillQuaternary:Ja(r,.02),colorBgSolid:Ja(r,1),colorBgSolidHover:Ja(r,.75),colorBgSolidActive:Ja(r,.95),colorBgLayout:iu(n,4),colorBgContainer:iu(n,0),colorBgElevated:iu(n,0),colorBgSpotlight:Ja(r,.85),colorBgBlur:"transparent",colorBorder:iu(n,15),colorBorderSecondary:iu(n,6)}};function YT(e){Us.pink=Us.magenta,ah.pink=ah.magenta;const t=Object.keys(mI).map(n=>{const r=e[n]===Us[n]?ah[n]:Uu(e[n]);return Array.from({length:10},()=>1).reduce((a,o,l)=>(a[`${n}-${l+1}`]=r[l],a[`${n}${l+1}`]=r[l],a),{})}).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),AT(e,{generateColorPalettes:UT,generateNeutralColorPalettes:qT})),WT(e.fontSize)),KT(e)),HT(e)),BT(e))}const gI=Sy(YT),qu={token:Ku,override:{override:Ku},hashed:!0},hI=be.createContext(qu),Yu="ant",vp="anticon",GT=["outlined","borderless","filled","underlined"],XT=(e,t)=>t||(e?`${Yu}-${e}`:Yu),Gt=i.createContext({getPrefixCls:XT,iconPrefixCls:vp}),{Consumer:yae}=Gt,Ww={};function wa(e){const t=i.useContext(Gt),{getPrefixCls:n,direction:r,getPopupContainer:a}=t,o=t[e];return Object.assign(Object.assign({classNames:Ww,styles:Ww},o),{getPrefixCls:n,direction:r,getPopupContainer:a})}const QT=`-ant-${Date.now()}-${Math.random()}`;function JT(e,t){const n={},r=(l,c)=>{let d=l.clone();return d=(c==null?void 0:c(d))||d,d.toRgbString()},a=(l,c)=>{const d=new Pn(l),f=Uu(d.toRgbString());n[`${c}-color`]=r(d),n[`${c}-color-disabled`]=f[1],n[`${c}-color-hover`]=f[4],n[`${c}-color-active`]=f[6],n[`${c}-color-outline`]=d.clone().setA(.2).toRgbString(),n[`${c}-color-deprecated-bg`]=f[0],n[`${c}-color-deprecated-border`]=f[2]};if(t.primaryColor){a(t.primaryColor,"primary");const l=new Pn(t.primaryColor),c=Uu(l.toRgbString());c.forEach((f,m)=>{n[`primary-${m+1}`]=f}),n["primary-color-deprecated-l-35"]=r(l,f=>f.lighten(35)),n["primary-color-deprecated-l-20"]=r(l,f=>f.lighten(20)),n["primary-color-deprecated-t-20"]=r(l,f=>f.tint(20)),n["primary-color-deprecated-t-50"]=r(l,f=>f.tint(50)),n["primary-color-deprecated-f-12"]=r(l,f=>f.setA(f.a*.12));const d=new Pn(c[0]);n["primary-color-active-deprecated-f-30"]=r(d,f=>f.setA(f.a*.3)),n["primary-color-active-deprecated-d-02"]=r(d,f=>f.darken(2))}return t.successColor&&a(t.successColor,"success"),t.warningColor&&a(t.warningColor,"warning"),t.errorColor&&a(t.errorColor,"error"),t.infoColor&&a(t.infoColor,"info"),` + :root { + ${Object.keys(n).map(l=>`--${e}-${l}: ${n[l]};`).join(` +`)} + } + `.trim()}function ZT(e,t){const n=JT(e,t);aa()&&gi(n,`${QT}-dynamic-theme`)}const ha=i.createContext(!1),yI=e=>{let{children:t,disabled:n}=e;const r=i.useContext(ha);return i.createElement(ha.Provider,{value:n??r},t)},Wl=i.createContext(void 0),eD=e=>{let{children:t,size:n}=e;const r=i.useContext(Wl);return i.createElement(Wl.Provider,{value:n||r},t)};function tD(){const e=i.useContext(ha),t=i.useContext(Wl);return{componentDisabled:e,componentSize:t}}var bI=dr(function e(){ur(this,e)}),xI="CALC_UNIT",nD=new RegExp(xI,"g");function oh(e){return typeof e=="number"?"".concat(e).concat(xI):e}var rD=function(e){so(n,e);var t=co(n);function n(r,a){var o;ur(this,n),o=t.call(this),G(pt(o),"result",""),G(pt(o),"unitlessCssVar",void 0),G(pt(o),"lowPriority",void 0);var l=wt(r);return o.unitlessCssVar=a,r instanceof n?o.result="(".concat(r.result,")"):l==="number"?o.result=oh(r):l==="string"&&(o.result=r),o}return dr(n,[{key:"add",value:function(a){return a instanceof n?this.result="".concat(this.result," + ").concat(a.getResult()):(typeof a=="number"||typeof a=="string")&&(this.result="".concat(this.result," + ").concat(oh(a))),this.lowPriority=!0,this}},{key:"sub",value:function(a){return a instanceof n?this.result="".concat(this.result," - ").concat(a.getResult()):(typeof a=="number"||typeof a=="string")&&(this.result="".concat(this.result," - ").concat(oh(a))),this.lowPriority=!0,this}},{key:"mul",value:function(a){return this.lowPriority&&(this.result="(".concat(this.result,")")),a instanceof n?this.result="".concat(this.result," * ").concat(a.getResult(!0)):(typeof a=="number"||typeof a=="string")&&(this.result="".concat(this.result," * ").concat(a)),this.lowPriority=!1,this}},{key:"div",value:function(a){return this.lowPriority&&(this.result="(".concat(this.result,")")),a instanceof n?this.result="".concat(this.result," / ").concat(a.getResult(!0)):(typeof a=="number"||typeof a=="string")&&(this.result="".concat(this.result," / ").concat(a)),this.lowPriority=!1,this}},{key:"getResult",value:function(a){return this.lowPriority||a?"(".concat(this.result,")"):this.result}},{key:"equal",value:function(a){var o=this,l=a||{},c=l.unit,d=!0;return typeof c=="boolean"?d=c:Array.from(this.unitlessCssVar).some(function(f){return o.result.includes(f)})&&(d=!1),this.result=this.result.replace(nD,d?"px":""),typeof this.lowPriority<"u"?"calc(".concat(this.result,")"):this.result}}]),n}(bI),aD=function(e){so(n,e);var t=co(n);function n(r){var a;return ur(this,n),a=t.call(this),G(pt(a),"result",0),r instanceof n?a.result=r.result:typeof r=="number"&&(a.result=r),a}return dr(n,[{key:"add",value:function(a){return a instanceof n?this.result+=a.result:typeof a=="number"&&(this.result+=a),this}},{key:"sub",value:function(a){return a instanceof n?this.result-=a.result:typeof a=="number"&&(this.result-=a),this}},{key:"mul",value:function(a){return a instanceof n?this.result*=a.result:typeof a=="number"&&(this.result*=a),this}},{key:"div",value:function(a){return a instanceof n?this.result/=a.result:typeof a=="number"&&(this.result/=a),this}},{key:"equal",value:function(){return this.result}}]),n}(bI),oD=function(t,n){var r=t==="css"?rD:aD;return function(a){return new r(a,n)}},Kw=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 wn(e){var t=i.useRef();t.current=e;var n=i.useCallback(function(){for(var r,a=arguments.length,o=new Array(a),l=0;l1e4){var r=Date.now();this.lastAccessBeat.forEach(function(a,o){r-a>cD&&(n.map.delete(o),n.lastAccessBeat.delete(o))}),this.accessBeat=0}}}]),e}(),Gw=new uD;function dD(e,t){return be.useMemo(function(){var n=Gw.get(t);if(n)return n;var r=e();return Gw.set(t,r),r},t)}var fD=function(){return{}};function mD(e){var t=e.useCSP,n=t===void 0?fD:t,r=e.useToken,a=e.usePrefix,o=e.getResetStyles,l=e.getCommonStyle,c=e.getCompUnitless;function d(v,h,b,x){var y=Array.isArray(v)?v[0]:v;function C(j){return"".concat(String(y)).concat(j.slice(0,1).toUpperCase()).concat(j.slice(1))}var w=(x==null?void 0:x.unitless)||{},E=typeof c=="function"?c(v):{},I=Z(Z({},E),{},G({},C("zIndexPopup"),!0));Object.keys(w).forEach(function(j){I[C(j)]=w[j]});var _=Z(Z({},x),{},{unitless:I,prefixToken:C}),O=m(v,h,b,_),P=f(y,b,_);return function(j){var R=arguments.length>1&&arguments[1]!==void 0?arguments[1]:j,k=O(j,R),L=se(k,2),W=L[1],B=P(R),F=se(B,2),A=F[0],T=F[1];return[A,W,T]}}function f(v,h,b){var x=b.unitless,y=b.injectStyle,C=y===void 0?!0:y,w=b.prefixToken,E=b.ignore,I=function(P){var j=P.rootCls,R=P.cssVar,k=R===void 0?{}:R,L=r(),W=L.realToken;return $T({path:[v],prefix:k.prefix,key:k.key,unitless:x,ignore:E,token:W,scope:j},function(){var B=Yw(v,W,h),F=Uw(v,W,B,{deprecatedTokens:b==null?void 0:b.deprecatedTokens});return Object.keys(B).forEach(function(A){F[w(A)]=F[A],delete F[A]}),F}),null},_=function(P){var j=r(),R=j.cssVar;return[function(k){return C&&R?be.createElement(be.Fragment,null,be.createElement(I,{rootCls:P,cssVar:R,component:v}),k):k},R==null?void 0:R.key]};return _}function m(v,h,b){var x=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{},y=Array.isArray(v)?v:[v,v],C=se(y,1),w=C[0],E=y.join("-"),I=e.layer||{name:"antd"};return function(_){var O=arguments.length>1&&arguments[1]!==void 0?arguments[1]:_,P=r(),j=P.theme,R=P.realToken,k=P.hashId,L=P.token,W=P.cssVar,B=a(),F=B.rootPrefixCls,A=B.iconPrefixCls,T=n(),M=W?"css":"js",D=dD(function(){var q=new Set;return W&&Object.keys(x.unitless||{}).forEach(function(X){q.add(pm(X,W.prefix)),q.add(pm(X,Kw(w,W.prefix)))}),oD(M,q)},[M,w,W==null?void 0:W.prefix]),V=sD(M),K=V.max,z=V.min,U={theme:j,token:L,hashId:k,nonce:function(){return T.nonce},clientOnly:x.clientOnly,layer:I,order:x.order||-999};typeof o=="function"&&Ey(Z(Z({},U),{},{clientOnly:!1,path:["Shared",F]}),function(){return o(L,{prefix:{rootPrefixCls:F,iconPrefixCls:A},csp:T})});var Y=Ey(Z(Z({},U),{},{path:[E,_,A]}),function(){if(x.injectStyle===!1)return[];var q=lD(L),X=q.token,te=q.flush,ee=Yw(w,R,b),J=".".concat(_),ie=Uw(w,R,ee,{deprecatedTokens:x.deprecatedTokens});W&&ee&&wt(ee)==="object"&&Object.keys(ee).forEach(function(ae){ee[ae]="var(".concat(pm(ae,Kw(w,W.prefix)),")")});var de=$n(X,{componentCls:J,prefixCls:_,iconCls:".".concat(A),antCls:".".concat(F),calc:D,max:K,min:z},W?ee:ie),oe=h(de,{hashId:k,prefixCls:_,rootPrefixCls:F,iconPrefixCls:A});te(w,ie);var le=typeof l=="function"?l(de,_,O,x.resetFont):null;return[x.resetStyle===!1?null:le,oe]});return[Y,k]}}function p(v,h,b){var x=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{},y=m(v,h,b,Z({resetStyle:!1,order:-998},x)),C=function(E){var I=E.prefixCls,_=E.rootCls,O=_===void 0?I:_;return y(I,O),null};return C}return{genStyleHooks:d,genSubStyleComponent:p,genComponentStyleHook:m}}const Kl=["blue","purple","cyan","green","magenta","pink","red","orange","yellow","volcano","geekblue","lime","gold"],pD="5.24.6";function lh(e){return e>=0&&e<=255}function yu(e,t){const{r:n,g:r,b:a,a:o}=new Pn(e).toRgb();if(o<1)return e;const{r:l,g:c,b:d}=new Pn(t).toRgb();for(let f=.01;f<=1;f+=.01){const m=Math.round((n-l*(1-f))/f),p=Math.round((r-c*(1-f))/f),v=Math.round((a-d*(1-f))/f);if(lh(m)&&lh(p)&&lh(v))return new Pn({r:m,g:p,b:v,a:Math.round(f*100)/100}).toRgbString()}return new Pn({r:n,g:r,b:a,a:1}).toRgbString()}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 a=0,r=Object.getOwnPropertySymbols(e);a{delete r[v]});const a=Object.assign(Object.assign({},n),r),o=480,l=576,c=768,d=992,f=1200,m=1600;if(a.motion===!1){const v="0s";a.motionDurationFast=v,a.motionDurationMid=v,a.motionDurationSlow=v}return Object.assign(Object.assign(Object.assign({},a),{colorFillContent:a.colorFillSecondary,colorFillContentHover:a.colorFill,colorFillAlter:a.colorFillQuaternary,colorBgContainerDisabled:a.colorFillTertiary,colorBorderBg:a.colorBgContainer,colorSplit:yu(a.colorBorderSecondary,a.colorBgContainer),colorTextPlaceholder:a.colorTextQuaternary,colorTextDisabled:a.colorTextQuaternary,colorTextHeading:a.colorText,colorTextLabel:a.colorTextSecondary,colorTextDescription:a.colorTextTertiary,colorTextLightSolid:a.colorWhite,colorHighlight:a.colorError,colorBgTextHover:a.colorFillSecondary,colorBgTextActive:a.colorFill,colorIcon:a.colorTextTertiary,colorIconHover:a.colorText,colorErrorOutline:yu(a.colorErrorBg,a.colorBgContainer),colorWarningOutline:yu(a.colorWarningBg,a.colorBgContainer),fontSizeIcon:a.fontSizeSM,lineWidthFocus:a.lineWidth*3,lineWidth:a.lineWidth,controlOutlineWidth:a.lineWidth*2,controlInteractiveSize:a.controlHeight/2,controlItemBgHover:a.colorFillTertiary,controlItemBgActive:a.colorPrimaryBg,controlItemBgActiveHover:a.colorPrimaryBgHover,controlItemBgActiveDisabled:a.colorFill,controlTmpOutline:a.colorFillQuaternary,controlOutline:yu(a.colorPrimaryBg,a.colorBgContainer),lineType:a.lineType,borderRadius:a.borderRadius,borderRadiusXS:a.borderRadiusXS,borderRadiusSM:a.borderRadiusSM,borderRadiusLG:a.borderRadiusLG,fontWeightStrong:600,opacityLoading:.65,linkDecoration:"none",linkHoverDecoration:"none",linkFocusDecoration:"none",controlPaddingHorizontal:12,controlPaddingHorizontalSM:8,paddingXXS:a.sizeXXS,paddingXS:a.sizeXS,paddingSM:a.sizeSM,padding:a.size,paddingMD:a.sizeMD,paddingLG:a.sizeLG,paddingXL:a.sizeXL,paddingContentHorizontalLG:a.sizeLG,paddingContentVerticalLG:a.sizeMS,paddingContentHorizontal:a.sizeMS,paddingContentVertical:a.sizeSM,paddingContentHorizontalSM:a.size,paddingContentVerticalSM:a.sizeXS,marginXXS:a.sizeXXS,marginXS:a.sizeXS,marginSM:a.sizeSM,margin:a.size,marginMD:a.sizeMD,marginLG:a.sizeLG,marginXL:a.sizeXL,marginXXL:a.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) + `,boxShadowSecondary:` + 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) + `,boxShadowTertiary:` + 0 1px 2px 0 rgba(0, 0, 0, 0.03), + 0 1px 6px -1px rgba(0, 0, 0, 0.02), + 0 2px 4px 0 rgba(0, 0, 0, 0.02) + `,screenXS:o,screenXSMin:o,screenXSMax:l-1,screenSM:l,screenSMMin:l,screenSMMax:c-1,screenMD:c,screenMDMin:c,screenMDMax:d-1,screenLG:d,screenLGMin:d,screenLGMax:f-1,screenXL:f,screenXLMin:f,screenXLMax:m-1,screenXXL:m,screenXXLMin:m,boxShadowPopoverArrow:"2px 2px 5px rgba(0, 0, 0, 0.05)",boxShadowCard:` + 0 1px 2px -2px ${new Pn("rgba(0, 0, 0, 0.16)").toRgbString()}, + 0 3px 6px 0 ${new Pn("rgba(0, 0, 0, 0.12)").toRgbString()}, + 0 5px 12px 4px ${new Pn("rgba(0, 0, 0, 0.09)").toRgbString()} + `,boxShadowDrawerRight:` + -6px 0 16px 0 rgba(0, 0, 0, 0.08), + -3px 0 6px -4px rgba(0, 0, 0, 0.12), + -9px 0 28px 8px rgba(0, 0, 0, 0.05) + `,boxShadowDrawerLeft:` + 6px 0 16px 0 rgba(0, 0, 0, 0.08), + 3px 0 6px -4px rgba(0, 0, 0, 0.12), + 9px 0 28px 8px rgba(0, 0, 0, 0.05) + `,boxShadowDrawerUp:` + 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) + `,boxShadowDrawerDown:` + 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 Xw=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 a=0,r=Object.getOwnPropertySymbols(e);a{const r=n.getDerivativeToken(e),{override:a}=t,o=Xw(t,["override"]);let l=Object.assign(Object.assign({},r),{override:a});return l=CI(l),o&&Object.entries(o).forEach(c=>{let[d,f]=c;const{theme:m}=f,p=Xw(f,["theme"]);let v=p;m&&(v=$I(Object.assign(Object.assign({},l),p),{override:p},m)),l[d]=v}),l};function ba(){const{token:e,hashed:t,theme:n,override:r,cssVar:a}=be.useContext(hI),o=`${pD}-${t||""}`,l=n||gI,[c,d,f]=XM(l,[Ku,e],{salt:o,override:r,getComputedToken:$I,formatToken:CI,cssVar:a&&{prefix:a.prefix,key:a.key,unitless:wI,ignore:gD,preserve:hD}});return[l,f,t?d:"",c,a]}const Oo={overflow:"hidden",whiteSpace:"nowrap",textOverflow:"ellipsis"},Ln=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}},cc=()=>({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"}}),Uo=()=>({"&::before":{display:"table",content:'""'},"&::after":{display:"table",clear:"both",content:'""'}}),yD=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"}}}),bD=(e,t,n,r)=>{const a=`[class^="${t}"], [class*=" ${t}"]`,o=n?`.${n}`:a,l={boxSizing:"border-box","&::before, &::after":{boxSizing:"border-box"}};let c={};return r!==!1&&(c={fontFamily:e.fontFamily,fontSize:e.fontSize}),{[o]:Object.assign(Object.assign(Object.assign({},c),l),{[a]:l})}},qo=(e,t)=>({outline:`${ne(e.lineWidthFocus)} solid ${e.colorPrimaryBorder}`,outlineOffset:t??1,transition:"outline-offset 0s, outline 0s"}),xi=(e,t)=>({"&:focus-visible":Object.assign({},qo(e,t))}),EI=e=>({[`.${e}`]:Object.assign(Object.assign({},cc()),{[`.${e} .${e}-icon`]:{display:"block"}})}),ab=e=>Object.assign(Object.assign({color:e.colorLink,textDecoration:e.linkDecoration,outline:"none",cursor:"pointer",transition:`all ${e.motionDurationSlow}`,border:0,padding:0,background:"none",userSelect:"none"},xi(e)),{"&:focus, &:hover":{color:e.colorLinkHover},"&:active":{color:e.colorLinkActive}}),{genStyleHooks:zn,genComponentStyleHook:xD,genSubStyleComponent:pd}=mD({usePrefix:()=>{const{getPrefixCls:e,iconPrefixCls:t}=i.useContext(Gt);return{rootPrefixCls:e(),iconPrefixCls:t}},useToken:()=>{const[e,t,n,r,a]=ba();return{theme:e,realToken:t,hashId:n,token:r,cssVar:a}},useCSP:()=>{const{csp:e}=i.useContext(Gt);return e??{}},getResetStyles:(e,t)=>{var n;const r=yD(e);return[r,{"&":r},EI((n=t==null?void 0:t.prefix.iconPrefixCls)!==null&&n!==void 0?n:vp)]},getCommonStyle:bD,getCompUnitless:()=>wI});function _I(e,t){return Kl.reduce((n,r)=>{const a=e[`${r}1`],o=e[`${r}3`],l=e[`${r}6`],c=e[`${r}7`];return Object.assign(Object.assign({},n),t(r,{lightColor:a,lightBorderColor:o,darkColor:l,textColor:c}))},{})}const SD=(e,t)=>{const[n,r]=ba();return Ey({token:r,hashId:"",path:["ant-design-icons",e],nonce:()=>t==null?void 0:t.nonce,layer:{name:"antd"}},()=>[EI(e)])},CD=Object.assign({},dd),{useId:Qw}=CD,wD=()=>"",$D=typeof Qw>"u"?wD:Qw;function ED(e,t,n){var r;ml();const a=e||{},o=a.inherit===!1||!t?Object.assign(Object.assign({},qu),{hashed:(r=t==null?void 0:t.hashed)!==null&&r!==void 0?r:qu.hashed,cssVar:t==null?void 0:t.cssVar}):t,l=$D();return Xl(()=>{var c,d;if(!e)return t;const f=Object.assign({},o.components);Object.keys(e.components||{}).forEach(v=>{f[v]=Object.assign(Object.assign({},f[v]),e.components[v])});const m=`css-var-${l.replace(/:/g,"")}`,p=((c=a.cssVar)!==null&&c!==void 0?c:o.cssVar)&&Object.assign(Object.assign(Object.assign({prefix:n==null?void 0:n.prefixCls},typeof o.cssVar=="object"?o.cssVar:{}),typeof a.cssVar=="object"?a.cssVar:{}),{key:typeof a.cssVar=="object"&&((d=a.cssVar)===null||d===void 0?void 0:d.key)||m});return Object.assign(Object.assign(Object.assign({},o),a),{token:Object.assign(Object.assign({},o.token),a.token),components:f,cssVar:p})},[a,o],(c,d)=>c.some((f,m)=>{const p=d[m];return!Ko(f,p,!0)}))}var _D=["children"],II=i.createContext({});function ID(e){var t=e.children,n=Kt(e,_D);return i.createElement(II.Provider,{value:n},t)}var OD=function(e){so(n,e);var t=co(n);function n(){return ur(this,n),t.apply(this,arguments)}return dr(n,[{key:"render",value:function(){return this.props.children}}]),n}(i.Component);function RD(e){var t=i.useReducer(function(c){return c+1},0),n=se(t,2),r=n[1],a=i.useRef(e),o=wn(function(){return a.current}),l=wn(function(c){a.current=typeof c=="function"?c(a.current):c,r()});return[o,l]}var Gi="none",Bf="appear",Hf="enter",Vf="leave",Jw="none",xo="prepare",Hs="start",Vs="active",ob="end",OI="prepared";function Zw(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 PD(e,t){var n={animationend:Zw("Animation","AnimationEnd"),transitionend:Zw("Transition","TransitionEnd")};return e&&("AnimationEvent"in t||delete n.animationend.animation,"TransitionEvent"in t||delete n.transitionend.transition),n}var ND=PD(aa(),typeof window<"u"?window:{}),RI={};if(aa()){var jD=document.createElement("div");RI=jD.style}var Wf={};function PI(e){if(Wf[e])return Wf[e];var t=ND[e];if(t)for(var n=Object.keys(t),r=n.length,a=0;a1&&arguments[1]!==void 0?arguments[1]:2;t();var o=mn(function(){a<=1?r({isCanceled:function(){return o!==e.current}}):n(r,a-1)});e.current=o}return i.useEffect(function(){return function(){t()}},[]),[n,t]};var TD=[xo,Hs,Vs,ob],DD=[xo,OI],TI=!1,FD=!0;function DI(e){return e===Vs||e===ob}const LD=function(e,t,n){var r=oc(Jw),a=se(r,2),o=a[0],l=a[1],c=MD(),d=se(c,2),f=d[0],m=d[1];function p(){l(xo,!0)}var v=t?DD:TD;return MI(function(){if(o!==Jw&&o!==ob){var h=v.indexOf(o),b=v[h+1],x=n(o);x===TI?l(b,!0):b&&f(function(y){function C(){y.isCanceled()||l(b,!0)}x===!0?C():Promise.resolve(x).then(C)})}},[e,o]),i.useEffect(function(){return function(){m()}},[]),[p,o]};function AD(e,t,n,r){var a=r.motionEnter,o=a===void 0?!0:a,l=r.motionAppear,c=l===void 0?!0:l,d=r.motionLeave,f=d===void 0?!0:d,m=r.motionDeadline,p=r.motionLeaveImmediately,v=r.onAppearPrepare,h=r.onEnterPrepare,b=r.onLeavePrepare,x=r.onAppearStart,y=r.onEnterStart,C=r.onLeaveStart,w=r.onAppearActive,E=r.onEnterActive,I=r.onLeaveActive,_=r.onAppearEnd,O=r.onEnterEnd,P=r.onLeaveEnd,j=r.onVisibleChanged,R=oc(),k=se(R,2),L=k[0],W=k[1],B=RD(Gi),F=se(B,2),A=F[0],T=F[1],M=oc(null),D=se(M,2),V=D[0],K=D[1],z=A(),U=i.useRef(!1),Y=i.useRef(null);function q(){return n()}var X=i.useRef(!1);function te(){T(Gi),K(null,!0)}var ee=wn(function(ge){var we=A();if(we!==Gi){var Se=q();if(!(ge&&!ge.deadline&&ge.target!==Se)){var Re=X.current,De;we===Bf&&Re?De=_==null?void 0:_(Se,ge):we===Hf&&Re?De=O==null?void 0:O(Se,ge):we===Vf&&Re&&(De=P==null?void 0:P(Se,ge)),Re&&De!==!1&&te()}}}),J=kD(ee),ie=se(J,1),de=ie[0],oe=function(we){switch(we){case Bf:return G(G(G({},xo,v),Hs,x),Vs,w);case Hf:return G(G(G({},xo,h),Hs,y),Vs,E);case Vf:return G(G(G({},xo,b),Hs,C),Vs,I);default:return{}}},le=i.useMemo(function(){return oe(z)},[z]),ae=LD(z,!e,function(ge){if(ge===xo){var we=le[xo];return we?we(q()):TI}if(fe in le){var Se;K(((Se=le[fe])===null||Se===void 0?void 0:Se.call(le,q(),null))||null)}return fe===Vs&&z!==Gi&&(de(q()),m>0&&(clearTimeout(Y.current),Y.current=setTimeout(function(){ee({deadline:!0})},m))),fe===OI&&te(),FD}),ue=se(ae,2),pe=ue[0],fe=ue[1],xe=DI(fe);X.current=xe;var Ee=i.useRef(null);MI(function(){if(!(U.current&&Ee.current===t)){W(t);var ge=U.current;U.current=!0;var we;!ge&&t&&c&&(we=Bf),ge&&t&&o&&(we=Hf),(ge&&!t&&f||!ge&&p&&!t&&f)&&(we=Vf);var Se=oe(we);we&&(e||Se[xo])?(T(we),pe()):T(Gi),Ee.current=t}},[t]),i.useEffect(function(){(z===Bf&&!c||z===Hf&&!o||z===Vf&&!f)&&T(Gi)},[c,o,f]),i.useEffect(function(){return function(){U.current=!1,clearTimeout(Y.current)}},[]);var Le=i.useRef(!1);i.useEffect(function(){L&&(Le.current=!0),L!==void 0&&z===Gi&&((Le.current||L)&&(j==null||j(L)),Le.current=!0)},[L,z]);var Ne=V;return le[xo]&&fe===Hs&&(Ne=Z({transition:"none"},Ne)),[z,fe,Ne,L??t]}function zD(e){var t=e;wt(e)==="object"&&(t=e.transitionSupport);function n(a,o){return!!(a.motionName&&t&&o!==!1)}var r=i.forwardRef(function(a,o){var l=a.visible,c=l===void 0?!0:l,d=a.removeOnLeave,f=d===void 0?!0:d,m=a.forceRender,p=a.children,v=a.motionName,h=a.leavedClassName,b=a.eventProps,x=i.useContext(II),y=x.motion,C=n(a,y),w=i.useRef(),E=i.useRef();function I(){try{return w.current instanceof HTMLElement?w.current:mm(E.current)}catch{return null}}var _=AD(C,c,I,a),O=se(_,4),P=O[0],j=O[1],R=O[2],k=O[3],L=i.useRef(k);k&&(L.current=!0);var W=i.useCallback(function(D){w.current=D,Au(o,D)},[o]),B,F=Z(Z({},b),{},{visible:c});if(!p)B=null;else if(P===Gi)k?B=p(Z({},F),W):!f&&L.current&&h?B=p(Z(Z({},F),{},{className:h}),W):m||!f&&!h?B=p(Z(Z({},F),{},{style:{display:"none"}}),W):B=null;else{var A;j===xo?A="prepare":DI(j)?A="active":j===Hs&&(A="start");var T=n1(v,"".concat(P,"-").concat(A));B=p(Z(Z({},F),{},{className:ce(n1(v,P),G(G({},T,T&&A),v,typeof v=="string")),style:R}),W)}if(i.isValidElement(B)&&Io(B)){var M=fl(B);M||(B=i.cloneElement(B,{ref:W}))}return i.createElement(OD,{ref:E},B)});return r.displayName="CSSMotion",r}const ko=zD(kI);var Ly="add",Ay="keep",zy="remove",sh="removed";function BD(e){var t;return e&&wt(e)==="object"&&"key"in e?t=e:t={key:e},Z(Z({},t),{},{key:String(t.key)})}function By(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];return e.map(BD)}function HD(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],n=[],r=0,a=t.length,o=By(e),l=By(t);o.forEach(function(f){for(var m=!1,p=r;p1});return d.forEach(function(f){n=n.filter(function(m){var p=m.key,v=m.status;return p!==f||v!==zy}),n.forEach(function(m){m.key===f&&(m.status=Ay)})}),n}var VD=["component","children","onVisibleChanged","onAllRemoved"],WD=["status"],KD=["eventProps","visible","children","motionName","motionAppear","motionEnter","motionLeave","motionLeaveImmediately","motionDeadline","removeOnLeave","leavedClassName","onAppearPrepare","onAppearStart","onAppearActive","onAppearEnd","onEnterStart","onEnterActive","onEnterEnd","onLeaveStart","onLeaveActive","onLeaveEnd"];function UD(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:ko,n=function(r){so(o,r);var a=co(o);function o(){var l;ur(this,o);for(var c=arguments.length,d=new Array(c),f=0;fnull;var GD=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 a=0,r=Object.getOwnPropertySymbols(e);at.endsWith("Color"))}const ZD=e=>{const{prefixCls:t,iconPrefixCls:n,theme:r,holderRender:a}=e;t!==void 0&&(Vm=t),n!==void 0&&(FI=n),"holderRender"in e&&(AI=a),r&&(JD(r)?ZT(Sm(),r):LI=r)},e4=()=>({getPrefixCls:(e,t)=>t||(e?`${Sm()}-${e}`:Sm()),getIconPrefixCls:QD,getRootPrefixCls:()=>Vm||Sm(),getTheme:()=>LI,holderRender:AI}),t4=e=>{const{children:t,csp:n,autoInsertSpaceInButton:r,alert:a,anchor:o,form:l,locale:c,componentSize:d,direction:f,space:m,splitter:p,virtual:v,dropdownMatchSelectWidth:h,popupMatchSelectWidth:b,popupOverflow:x,legacyLocale:y,parentContext:C,iconPrefixCls:w,theme:E,componentDisabled:I,segmented:_,statistic:O,spin:P,calendar:j,carousel:R,cascader:k,collapse:L,typography:W,checkbox:B,descriptions:F,divider:A,drawer:T,skeleton:M,steps:D,image:V,layout:K,list:z,mentions:U,modal:Y,progress:q,result:X,slider:te,breadcrumb:ee,menu:J,pagination:ie,input:de,textArea:oe,empty:le,badge:ae,radio:ue,rate:pe,switch:fe,transfer:xe,avatar:Ee,message:Le,tag:Ne,table:ge,card:we,tabs:Se,timeline:Re,timePicker:De,upload:Me,notification:Ye,tree:qe,colorPicker:He,datePicker:ze,rangePicker:Ae,flex:Ie,wave:Ve,dropdown:ye,warning:Ce,tour:_e,tooltip:he,popover:ke,popconfirm:tt,floatButtonGroup:Nt,variant:Ht,inputNumber:Ge,treeSelect:rt}=e,gt=i.useCallback((xt,Lt)=>{const{prefixCls:Ct}=e;if(Lt)return Lt;const ht=Ct||C.getPrefixCls("");return xt?`${ht}-${xt}`:ht},[C.getPrefixCls,e.prefixCls]),at=w||C.iconPrefixCls||vp,dt=n||C.csp;SD(at,dt);const st=ED(E,C.theme,{prefixCls:gt("")}),et={csp:dt,autoInsertSpaceInButton:r,alert:a,anchor:o,locale:c||y,direction:f,space:m,splitter:p,virtual:v,popupMatchSelectWidth:b??h,popupOverflow:x,getPrefixCls:gt,iconPrefixCls:at,theme:st,segmented:_,statistic:O,spin:P,calendar:j,carousel:R,cascader:k,collapse:L,typography:W,checkbox:B,descriptions:F,divider:A,drawer:T,skeleton:M,steps:D,image:V,input:de,textArea:oe,layout:K,list:z,mentions:U,modal:Y,progress:q,result:X,slider:te,breadcrumb:ee,menu:J,pagination:ie,empty:le,badge:ae,radio:ue,rate:pe,switch:fe,transfer:xe,avatar:Ee,message:Le,tag:Ne,table:ge,card:we,tabs:Se,timeline:Re,timePicker:De,upload:Me,notification:Ye,tree:qe,colorPicker:He,datePicker:ze,rangePicker:Ae,flex:Ie,wave:Ve,dropdown:ye,warning:Ce,tour:_e,tooltip:he,popover:ke,popconfirm:tt,floatButtonGroup:Nt,variant:Ht,inputNumber:Ge,treeSelect:rt},Qe=Object.assign({},C);Object.keys(et).forEach(xt=>{et[xt]!==void 0&&(Qe[xt]=et[xt])}),XD.forEach(xt=>{const Lt=e[xt];Lt&&(Qe[xt]=Lt)}),typeof r<"u"&&(Qe.button=Object.assign({autoInsertSpace:r},Qe.button));const Tt=Xl(()=>Qe,Qe,(xt,Lt)=>{const Ct=Object.keys(xt),ht=Object.keys(Lt);return Ct.length!==ht.length||Ct.some(Ft=>xt[Ft]!==Lt[Ft])}),{layer:kt}=i.useContext(md),Xe=i.useMemo(()=>({prefixCls:at,csp:dt,layer:kt?"antd":void 0}),[at,dt,kt]);let Ze=i.createElement(i.Fragment,null,i.createElement(YD,{dropdownMatchSelectWidth:h}),t);const Et=i.useMemo(()=>{var xt,Lt,Ct,ht;return Bs(((xt=bi.Form)===null||xt===void 0?void 0:xt.defaultValidateMessages)||{},((Ct=(Lt=Tt.locale)===null||Lt===void 0?void 0:Lt.Form)===null||Ct===void 0?void 0:Ct.defaultValidateMessages)||{},((ht=Tt.form)===null||ht===void 0?void 0:ht.validateMessages)||{},(l==null?void 0:l.validateMessages)||{})},[Tt,l==null?void 0:l.validateMessages]);Object.keys(Et).length>0&&(Ze=i.createElement(uI.Provider,{value:Et},Ze)),c&&(Ze=i.createElement(MT,{locale:c,_ANT_MARK__:kT},Ze)),Ze=i.createElement(nb.Provider,{value:Xe},Ze),d&&(Ze=i.createElement(eD,{size:d},Ze)),Ze=i.createElement(qD,null,Ze);const Ot=i.useMemo(()=>{const xt=st||{},{algorithm:Lt,token:Ct,components:ht,cssVar:Ft}=xt,At=GD(xt,["algorithm","token","components","cssVar"]),en=Lt&&(!Array.isArray(Lt)||Lt.length>0)?Sy(Lt):gI,vn={};Object.entries(ht||{}).forEach(yn=>{let[On,kn]=yn;const nt=Object.assign({},kn);"algorithm"in nt&&(nt.algorithm===!0?nt.theme=en:(Array.isArray(nt.algorithm)||typeof nt.algorithm=="function")&&(nt.theme=Sy(nt.algorithm)),delete nt.algorithm),vn[On]=nt});const sn=Object.assign(Object.assign({},Ku),Ct);return Object.assign(Object.assign({},At),{theme:en,token:sn,components:vn,override:Object.assign({override:sn},vn),cssVar:Ft})},[st]);return E&&(Ze=i.createElement(hI.Provider,{value:Ot},Ze)),Tt.warning&&(Ze=i.createElement(RT.Provider,{value:Tt.warning},Ze)),I!==void 0&&(Ze=i.createElement(yI,{disabled:I},Ze)),i.createElement(Gt.Provider,{value:Tt},Ze)},Ei=e=>{const t=i.useContext(Gt),n=i.useContext(rb);return i.createElement(t4,Object.assign({parentContext:t,legacyLocale:n},e))};Ei.ConfigContext=Gt;Ei.SizeContext=Wl;Ei.config=ZD;Ei.useConfig=tD;Object.defineProperty(Ei,"SizeContext",{get:()=>Wl});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 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 zI(e){var t;return e==null||(t=e.getRootNode)===null||t===void 0?void 0:t.call(e)}function r4(e){return zI(e)instanceof ShadowRoot}function Wm(e){return r4(e)?zI(e):null}function a4(e){return e.replace(/-(.)/g,function(t,n){return n.toUpperCase()})}function o4(e,t){or(e,"[@ant-design/icons] ".concat(t))}function r1(e){return wt(e)==="object"&&typeof e.name=="string"&&typeof e.theme=="string"&&(wt(e.icon)==="object"||typeof e.icon=="function")}function a1(){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[a4(n)]=r}return t},{})}function Hy(e,t,n){return n?be.createElement(e.tag,Z(Z({key:t},a1(e.attrs)),n),(e.children||[]).map(function(r,a){return Hy(r,"".concat(t,"-").concat(e.tag,"-").concat(a))})):be.createElement(e.tag,Z({key:t},a1(e.attrs)),(e.children||[]).map(function(r,a){return Hy(r,"".concat(t,"-").concat(e.tag,"-").concat(a))}))}function BI(e){return Uu(e)[0]}function HI(e){return e?Array.isArray(e)?e:[e]:[]}var i4=` +.anticon { + display: inline-flex; + align-items: center; + color: inherit; + font-style: normal; + line-height: 0; + text-align: center; + text-transform: none; + vertical-align: -0.125em; + text-rendering: optimizeLegibility; + -webkit-font-smoothing: antialiased; + -moz-osx-font-smoothing: grayscale; +} + +.anticon > * { + line-height: 1; +} + +.anticon svg { + display: inline-block; +} + +.anticon::before { + display: none; +} + +.anticon .anticon-icon { + display: block; +} + +.anticon[tabindex] { + cursor: pointer; +} + +.anticon-spin::before, +.anticon-spin { + display: inline-block; + -webkit-animation: loadingCircle 1s infinite linear; + animation: loadingCircle 1s infinite linear; +} + +@-webkit-keyframes loadingCircle { + 100% { + -webkit-transform: rotate(360deg); + transform: rotate(360deg); + } +} + +@keyframes loadingCircle { + 100% { + -webkit-transform: rotate(360deg); + transform: rotate(360deg); + } +} +`,l4=function(t){var n=i.useContext(nb),r=n.csp,a=n.prefixCls,o=n.layer,l=i4;a&&(l=l.replace(/anticon/g,a)),o&&(l="@layer ".concat(o,` { +`).concat(l,` +}`)),i.useEffect(function(){var c=t.current,d=Wm(c);gi(l,"@ant-design-icons",{prepend:!o,csp:r,attachTo:d})},[])},s4=["icon","className","onClick","style","primaryColor","secondaryColor"],Iu={primaryColor:"#333",secondaryColor:"#E6E6E6",calculated:!1};function c4(e){var t=e.primaryColor,n=e.secondaryColor;Iu.primaryColor=t,Iu.secondaryColor=n||BI(t),Iu.calculated=!!n}function u4(){return Z({},Iu)}var uc=function(t){var n=t.icon,r=t.className,a=t.onClick,o=t.style,l=t.primaryColor,c=t.secondaryColor,d=Kt(t,s4),f=i.useRef(),m=Iu;if(l&&(m={primaryColor:l,secondaryColor:c||BI(l)}),l4(f),o4(r1(n),"icon should be icon definiton, but got ".concat(n)),!r1(n))return null;var p=n;return p&&typeof p.icon=="function"&&(p=Z(Z({},p),{},{icon:p.icon(m.primaryColor,m.secondaryColor)})),Hy(p.icon,"svg-".concat(p.name),Z(Z({className:r,onClick:a,style:o,"data-icon":p.name,width:"1em",height:"1em",fill:"currentColor","aria-hidden":"true"},d),{},{ref:f}))};uc.displayName="IconReact";uc.getTwoToneColors=u4;uc.setTwoToneColors=c4;function VI(e){var t=HI(e),n=se(t,2),r=n[0],a=n[1];return uc.setTwoToneColors({primaryColor:r,secondaryColor:a})}function d4(){var e=uc.getTwoToneColors();return e.calculated?[e.primaryColor,e.secondaryColor]:e.primaryColor}var f4=["className","icon","spin","rotate","tabIndex","onClick","twoToneColor"];VI(ac.primary);var pn=i.forwardRef(function(e,t){var n=e.className,r=e.icon,a=e.spin,o=e.rotate,l=e.tabIndex,c=e.onClick,d=e.twoToneColor,f=Kt(e,f4),m=i.useContext(nb),p=m.prefixCls,v=p===void 0?"anticon":p,h=m.rootClassName,b=ce(h,v,G(G({},"".concat(v,"-").concat(r.name),!!r.name),"".concat(v,"-spin"),!!a||r.name==="loading"),n),x=l;x===void 0&&c&&(x=-1);var y=o?{msTransform:"rotate(".concat(o,"deg)"),transform:"rotate(".concat(o,"deg)")}:void 0,C=HI(d),w=se(C,2),E=w[0],I=w[1];return i.createElement("span",Pe({role:"img","aria-label":r.name},f,{ref:t,tabIndex:x,onClick:c,className:b}),i.createElement(uc,{icon:r,primaryColor:E,secondaryColor:I,style:y}))});pn.displayName="AntdIcon";pn.getTwoToneColor=d4;pn.setTwoToneColor=VI;var m4=function(t,n){return i.createElement(pn,Pe({},t,{ref:n,icon:n4}))},lb=i.forwardRef(m4),p4={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"},v4=function(t,n){return i.createElement(pn,Pe({},t,{ref:n,icon:p4}))},vd=i.forwardRef(v4),g4={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"},h4=function(t,n){return i.createElement(pn,Pe({},t,{ref:n,icon:g4}))},gd=i.forwardRef(h4),y4={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"},b4=function(t,n){return i.createElement(pn,Pe({},t,{ref:n,icon:y4}))},WI=i.forwardRef(b4),x4={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 64zm32 664c0 4.4-3.6 8-8 8h-48c-4.4 0-8-3.6-8-8V456c0-4.4 3.6-8 8-8h48c4.4 0 8 3.6 8 8v272zm-32-344a48.01 48.01 0 010-96 48.01 48.01 0 010 96z"}}]},name:"info-circle",theme:"filled"},S4=function(t,n){return i.createElement(pn,Pe({},t,{ref:n,icon:x4}))},C4=i.forwardRef(S4),w4=`accept acceptCharset accessKey action allowFullScreen allowTransparency + alt async autoComplete autoFocus autoPlay capture cellPadding cellSpacing challenge + charSet checked classID className colSpan cols content contentEditable contextMenu + controls coords crossOrigin data dateTime default defer dir disabled download draggable + encType form formAction formEncType formMethod formNoValidate formTarget frameBorder + headers height hidden high href hrefLang htmlFor httpEquiv icon id inputMode integrity + is keyParams keyType kind label lang list loop low manifest marginHeight marginWidth max maxLength media + mediaGroup method min minLength multiple muted name noValidate nonce open + optimum pattern placeholder poster preload radioGroup readOnly rel required + reversed role rowSpan rows sandbox scope scoped scrolling seamless selected + shape size sizes span spellCheck src srcDoc srcLang srcSet start step style + summary tabIndex target title type useMap value width wmode wrap`,$4=`onCopy onCut onPaste onCompositionEnd onCompositionStart onCompositionUpdate onKeyDown + onKeyPress onKeyUp onFocus onBlur onChange onInput onSubmit onClick onContextMenu onDoubleClick + onDrag onDragEnd onDragEnter onDragExit onDragLeave onDragOver onDragStart onDrop onMouseDown + onMouseEnter onMouseLeave onMouseMove onMouseOut onMouseOver onMouseUp onSelect onTouchCancel + onTouchEnd onTouchMove onTouchStart onScroll onWheel onAbort onCanPlay onCanPlayThrough + onDurationChange onEmptied onEncrypted onEnded onError onLoadedData onLoadedMetadata + onLoadStart onPause onPlay onPlaying onProgress onRateChange onSeeked onSeeking onStalled onSuspend onTimeUpdate onVolumeChange onWaiting onLoad onError`,E4="".concat(w4," ").concat($4).split(/[\s\n]+/),_4="aria-",I4="data-";function o1(e,t){return e.indexOf(t)===0}function oa(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,n;t===!1?n={aria:!0,data:!0,attr:!0}:t===!0?n={aria:!0}:n=Z({},t);var r={};return Object.keys(e).forEach(function(a){(n.aria&&(a==="role"||o1(a,_4))||n.data&&o1(a,I4)||n.attr&&E4.includes(a))&&(r[a]=e[a])}),r}function KI(e){return e&&be.isValidElement(e)&&e.type===be.Fragment}const UI=(e,t,n)=>be.isValidElement(e)?be.cloneElement(e,typeof n=="function"?n(e.props||{}):n):t;function ia(e,t){return UI(e,e,t)}const i1=e=>typeof e=="object"&&e!=null&&e.nodeType===1,l1=(e,t)=>(!t||e!=="hidden")&&e!=="visible"&&e!=="clip",Kf=(e,t)=>{if(e.clientHeight{const a=(o=>{if(!o.ownerDocument||!o.ownerDocument.defaultView)return null;try{return o.ownerDocument.defaultView.frameElement}catch{return null}})(r);return!!a&&(a.clientHeightot||o>e&&l=t&&c>=n?o-e-r:l>t&&cn?l-t+a:0,O4=e=>{const t=e.parentElement;return t??(e.getRootNode().host||null)},s1=(e,t)=>{var n,r,a,o;if(typeof document>"u")return[];const{scrollMode:l,block:c,inline:d,boundary:f,skipOverflowHiddenElements:m}=t,p=typeof f=="function"?f:T=>T!==f;if(!i1(e))throw new TypeError("Invalid target");const v=document.scrollingElement||document.documentElement,h=[];let b=e;for(;i1(b)&&p(b);){if(b=O4(b),b===v){h.push(b);break}b!=null&&b===document.body&&Kf(b)&&!Kf(document.documentElement)||b!=null&&Kf(b,m)&&h.push(b)}const x=(r=(n=window.visualViewport)==null?void 0:n.width)!=null?r:innerWidth,y=(o=(a=window.visualViewport)==null?void 0:a.height)!=null?o:innerHeight,{scrollX:C,scrollY:w}=window,{height:E,width:I,top:_,right:O,bottom:P,left:j}=e.getBoundingClientRect(),{top:R,right:k,bottom:L,left:W}=(T=>{const M=window.getComputedStyle(T);return{top:parseFloat(M.scrollMarginTop)||0,right:parseFloat(M.scrollMarginRight)||0,bottom:parseFloat(M.scrollMarginBottom)||0,left:parseFloat(M.scrollMarginLeft)||0}})(e);let B=c==="start"||c==="nearest"?_-R:c==="end"?P+L:_+E/2-R+L,F=d==="center"?j+I/2-W+k:d==="end"?O+k:j-W;const A=[];for(let T=0;T=0&&j>=0&&P<=y&&O<=x&&(M===v&&!Kf(M)||_>=K&&P<=U&&j>=Y&&O<=z))return A;const q=getComputedStyle(M),X=parseInt(q.borderLeftWidth,10),te=parseInt(q.borderTopWidth,10),ee=parseInt(q.borderRightWidth,10),J=parseInt(q.borderBottomWidth,10);let ie=0,de=0;const oe="offsetWidth"in M?M.offsetWidth-M.clientWidth-X-ee:0,le="offsetHeight"in M?M.offsetHeight-M.clientHeight-te-J:0,ae="offsetWidth"in M?M.offsetWidth===0?0:V/M.offsetWidth:0,ue="offsetHeight"in M?M.offsetHeight===0?0:D/M.offsetHeight:0;if(v===M)ie=c==="start"?B:c==="end"?B-y:c==="nearest"?Uf(w,w+y,y,te,J,w+B,w+B+E,E):B-y/2,de=d==="start"?F:d==="center"?F-x/2:d==="end"?F-x:Uf(C,C+x,x,X,ee,C+F,C+F+I,I),ie=Math.max(0,ie+w),de=Math.max(0,de+C);else{ie=c==="start"?B-K-te:c==="end"?B-U+J+le:c==="nearest"?Uf(K,U,D,te,J+le,B,B+E,E):B-(K+D/2)+le/2,de=d==="start"?F-Y-X:d==="center"?F-(Y+V/2)+oe/2:d==="end"?F-z+ee+oe:Uf(Y,z,V,X,ee+oe,F,F+I,I);const{scrollLeft:pe,scrollTop:fe}=M;ie=ue===0?0:Math.max(0,Math.min(fe+ie/ue,M.scrollHeight-D/ue+le)),de=ae===0?0:Math.max(0,Math.min(pe+de/ae,M.scrollWidth-V/ae+oe)),B+=fe-ie,F+=pe-de}A.push({el:M,top:ie,left:de})}return A},R4=e=>e===!1?{block:"end",inline:"nearest"}:(t=>t===Object(t)&&Object.keys(t).length!==0)(e)?e:{block:"start",inline:"nearest"};function P4(e,t){if(!e.isConnected||!(a=>{let o=a;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=(a=>{const o=window.getComputedStyle(a);return{top:parseFloat(o.scrollMarginTop)||0,right:parseFloat(o.scrollMarginRight)||0,bottom:parseFloat(o.scrollMarginBottom)||0,left:parseFloat(o.scrollMarginLeft)||0}})(e);if((a=>typeof a=="object"&&typeof a.behavior=="function")(t))return t.behavior(s1(e,t));const r=typeof t=="boolean"||t==null?void 0:t.behavior;for(const{el:a,top:o,left:l}of s1(e,R4(t))){const c=o-n.top+n.bottom,d=l-n.left+n.right;a.scroll({top:c,left:d,behavior:r})}}function Vy(e){return e!=null&&e===e.window}const N4=e=>{var t,n;if(typeof window>"u")return 0;let r=0;return Vy(e)?r=e.pageYOffset:e instanceof Document?r=e.documentElement.scrollTop:(e instanceof HTMLElement||e)&&(r=e.scrollTop),e&&!Vy(e)&&typeof r!="number"&&(r=(n=((t=e.ownerDocument)!==null&&t!==void 0?t:e).documentElement)===null||n===void 0?void 0:n.scrollTop),r};function j4(e,t,n,r){const a=n-t;return e/=r/2,e<1?a/2*e*e*e+t:a/2*((e-=2)*e*e+2)+t}function k4(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};const{getContainer:n=()=>window,callback:r,duration:a=450}=t,o=n(),l=N4(o),c=Date.now(),d=()=>{const m=Date.now()-c,p=j4(m>a?a:m,l,e,a);Vy(o)?o.scrollTo(window.pageXOffset,p):o instanceof Document||o.constructor.name==="HTMLDocument"?o.documentElement.scrollTop=p:o.scrollTop=p,m{const[,,,,t]=ba();return t?`${e}-css-var`:""};var $t={BACKSPACE:8,TAB:9,ENTER:13,SHIFT:16,CTRL:17,ALT:18,CAPS_LOCK:20,ESC:27,SPACE:32,END:35,HOME:36,LEFT:37,UP:38,RIGHT:39,DOWN:40,N:78,P:80,META:91,WIN_KEY_RIGHT:92,CONTEXT_MENU:93,F1:112,F2:113,F3:114,F4:115,F5:116,F6:117,F7:118,F8:119,F9:120,F10:121,F11:122,F12:123,SEMICOLON:186,EQUALS:187,WIN_KEY:224},qI=i.forwardRef(function(e,t){var n=e.prefixCls,r=e.style,a=e.className,o=e.duration,l=o===void 0?4.5:o,c=e.showProgress,d=e.pauseOnHover,f=d===void 0?!0:d,m=e.eventKey,p=e.content,v=e.closable,h=e.closeIcon,b=h===void 0?"x":h,x=e.props,y=e.onClick,C=e.onNoticeClose,w=e.times,E=e.hovering,I=i.useState(!1),_=se(I,2),O=_[0],P=_[1],j=i.useState(0),R=se(j,2),k=R[0],L=R[1],W=i.useState(0),B=se(W,2),F=B[0],A=B[1],T=E||O,M=l>0&&c,D=function(){C(m)},V=function(X){(X.key==="Enter"||X.code==="Enter"||X.keyCode===$t.ENTER)&&D()};i.useEffect(function(){if(!T&&l>0){var q=Date.now()-F,X=setTimeout(function(){D()},l*1e3-F);return function(){f&&clearTimeout(X),A(Date.now()-q)}}},[l,T,w]),i.useEffect(function(){if(!T&&M&&(f||F===0)){var q=performance.now(),X,te=function ee(){cancelAnimationFrame(X),X=requestAnimationFrame(function(J){var ie=J+F-q,de=Math.min(ie/(l*1e3),1);L(de*100),de<1&&ee()})};return te(),function(){f&&cancelAnimationFrame(X)}}},[l,F,T,M,w]);var K=i.useMemo(function(){return wt(v)==="object"&&v!==null?v:v?{closeIcon:b}:{}},[v,b]),z=oa(K,!0),U=100-(!k||k<0?0:k>100?100:k),Y="".concat(n,"-notice");return i.createElement("div",Pe({},x,{ref:t,className:ce(Y,a,G({},"".concat(Y,"-closable"),v)),style:r,onMouseEnter:function(X){var te;P(!0),x==null||(te=x.onMouseEnter)===null||te===void 0||te.call(x,X)},onMouseLeave:function(X){var te;P(!1),x==null||(te=x.onMouseLeave)===null||te===void 0||te.call(x,X)},onClick:y}),i.createElement("div",{className:"".concat(Y,"-content")},p),v&&i.createElement("a",Pe({tabIndex:0,className:"".concat(Y,"-close"),onKeyDown:V,"aria-label":"Close"},z,{onClick:function(X){X.preventDefault(),X.stopPropagation(),D()}}),K.closeIcon),M&&i.createElement("progress",{className:"".concat(Y,"-progress"),max:"100",value:U},U+"%"))}),YI=be.createContext({}),M4=function(t){var n=t.children,r=t.classNames;return be.createElement(YI.Provider,{value:{classNames:r}},n)},c1=8,u1=3,d1=16,T4=function(t){var n={offset:c1,threshold:u1,gap:d1};if(t&&wt(t)==="object"){var r,a,o;n.offset=(r=t.offset)!==null&&r!==void 0?r:c1,n.threshold=(a=t.threshold)!==null&&a!==void 0?a:u1,n.gap=(o=t.gap)!==null&&o!==void 0?o:d1}return[!!t,n]},D4=["className","style","classNames","styles"],F4=function(t){var n=t.configList,r=t.placement,a=t.prefixCls,o=t.className,l=t.style,c=t.motion,d=t.onAllNoticeRemoved,f=t.onNoticeClose,m=t.stack,p=i.useContext(YI),v=p.classNames,h=i.useRef({}),b=i.useState(null),x=se(b,2),y=x[0],C=x[1],w=i.useState([]),E=se(w,2),I=E[0],_=E[1],O=n.map(function(T){return{config:T,key:String(T.key)}}),P=T4(m),j=se(P,2),R=j[0],k=j[1],L=k.offset,W=k.threshold,B=k.gap,F=R&&(I.length>0||O.length<=W),A=typeof c=="function"?c(r):c;return i.useEffect(function(){R&&I.length>1&&_(function(T){return T.filter(function(M){return O.some(function(D){var V=D.key;return M===V})})})},[I,O,R]),i.useEffect(function(){var T;if(R&&h.current[(T=O[O.length-1])===null||T===void 0?void 0:T.key]){var M;C(h.current[(M=O[O.length-1])===null||M===void 0?void 0:M.key])}},[O,R]),be.createElement(ib,Pe({key:r,className:ce(a,"".concat(a,"-").concat(r),v==null?void 0:v.list,o,G(G({},"".concat(a,"-stack"),!!R),"".concat(a,"-stack-expanded"),F)),style:l,keys:O,motionAppear:!0},A,{onAllRemoved:function(){d(r)}}),function(T,M){var D=T.config,V=T.className,K=T.style,z=T.index,U=D,Y=U.key,q=U.times,X=String(Y),te=D,ee=te.className,J=te.style,ie=te.classNames,de=te.styles,oe=Kt(te,D4),le=O.findIndex(function(Re){return Re.key===X}),ae={};if(R){var ue=O.length-1-(le>-1?le:z-1),pe=r==="top"||r==="bottom"?"-50%":"0";if(ue>0){var fe,xe,Ee;ae.height=F?(fe=h.current[X])===null||fe===void 0?void 0:fe.offsetHeight:y==null?void 0:y.offsetHeight;for(var Le=0,Ne=0;Ne-1?h.current[X]=De:delete h.current[X]},prefixCls:a,classNames:ie,styles:de,className:ce(ee,v==null?void 0:v.notice),style:J,times:q,key:Y,eventKey:Y,onNoticeClose:f,hovering:R&&I.length>0})))})},L4=i.forwardRef(function(e,t){var n=e.prefixCls,r=n===void 0?"rc-notification":n,a=e.container,o=e.motion,l=e.maxCount,c=e.className,d=e.style,f=e.onAllRemoved,m=e.stack,p=e.renderNotifications,v=i.useState([]),h=se(v,2),b=h[0],x=h[1],y=function(R){var k,L=b.find(function(W){return W.key===R});L==null||(k=L.onClose)===null||k===void 0||k.call(L),x(function(W){return W.filter(function(B){return B.key!==R})})};i.useImperativeHandle(t,function(){return{open:function(R){x(function(k){var L=Te(k),W=L.findIndex(function(A){return A.key===R.key}),B=Z({},R);if(W>=0){var F;B.times=(((F=k[W])===null||F===void 0?void 0:F.times)||0)+1,L[W]=B}else B.times=0,L.push(B);return l>0&&L.length>l&&(L=L.slice(-l)),L})},close:function(R){y(R)},destroy:function(){x([])}}});var C=i.useState({}),w=se(C,2),E=w[0],I=w[1];i.useEffect(function(){var j={};b.forEach(function(R){var k=R.placement,L=k===void 0?"topRight":k;L&&(j[L]=j[L]||[],j[L].push(R))}),Object.keys(E).forEach(function(R){j[R]=j[R]||[]}),I(j)},[b]);var _=function(R){I(function(k){var L=Z({},k),W=L[R]||[];return W.length||delete L[R],L})},O=i.useRef(!1);if(i.useEffect(function(){Object.keys(E).length>0?O.current=!0:O.current&&(f==null||f(),O.current=!1)},[E]),!a)return null;var P=Object.keys(E);return _o.createPortal(i.createElement(i.Fragment,null,P.map(function(j){var R=E[j],k=i.createElement(F4,{key:j,configList:R,placement:j,prefixCls:r,className:c==null?void 0:c(j),style:d==null?void 0:d(j),motion:o,onNoticeClose:y,onAllNoticeRemoved:_,stack:m});return p?p(k,{prefixCls:r,key:j}):k})),a)}),A4=["getContainer","motion","prefixCls","maxCount","className","style","onAllRemoved","stack","renderNotifications"],z4=function(){return document.body},f1=0;function B4(){for(var e={},t=arguments.length,n=new Array(t),r=0;r0&&arguments[0]!==void 0?arguments[0]:{},t=e.getContainer,n=t===void 0?z4:t,r=e.motion,a=e.prefixCls,o=e.maxCount,l=e.className,c=e.style,d=e.onAllRemoved,f=e.stack,m=e.renderNotifications,p=Kt(e,A4),v=i.useState(),h=se(v,2),b=h[0],x=h[1],y=i.useRef(),C=i.createElement(L4,{container:b,ref:y,prefixCls:a,motion:r,maxCount:o,className:l,style:c,onAllRemoved:d,stack:f,renderNotifications:m}),w=i.useState([]),E=se(w,2),I=E[0],_=E[1],O=i.useMemo(function(){return{open:function(j){var R=B4(p,j);(R.key===null||R.key===void 0)&&(R.key="rc-notification-".concat(f1),f1+=1),_(function(k){return[].concat(Te(k),[{type:"open",config:R}])})},close:function(j){_(function(R){return[].concat(Te(R),[{type:"close",key:j}])})},destroy:function(){_(function(j){return[].concat(Te(j),[{type:"destroy"}])})}}},[]);return i.useEffect(function(){x(n())}),i.useEffect(function(){if(y.current&&I.length){I.forEach(function(R){switch(R.type){case"open":y.current.open(R.config);break;case"close":y.current.close(R.key);break;case"destroy":y.current.destroy();break}});var P,j;_(function(R){return(P!==R||!j)&&(P=R,j=R.filter(function(k){return!I.includes(k)})),j})}},[I]),[O,C]}var V4={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"},W4=function(t,n){return i.createElement(pn,Pe({},t,{ref:n,icon:V4}))},Si=i.forwardRef(W4);const sb=be.createContext(void 0),Xi=100,K4=10,U4=Xi*K4,GI={Modal:Xi,Drawer:Xi,Popover:Xi,Popconfirm:Xi,Tooltip:Xi,Tour:Xi,FloatButton:Xi},q4={SelectLike:50,Dropdown:50,DatePicker:50,Menu:50,ImagePreview:1};function Y4(e){return e in GI}const dc=(e,t)=>{const[,n]=ba(),r=be.useContext(sb),a=Y4(e);let o;if(t!==void 0)o=[t,t];else{let l=r??0;a?l+=(r?0:n.zIndexPopupBase)+GI[e]:l+=q4[e],o=[r===void 0?t:l,l]}return o},G4=e=>{const{componentCls:t,iconCls:n,boxShadow:r,colorText:a,colorSuccess:o,colorError:l,colorWarning:c,colorInfo:d,fontSizeLG:f,motionEaseInOutCirc:m,motionDurationSlow:p,marginXS:v,paddingXS:h,borderRadiusLG:b,zIndexPopup:x,contentPadding:y,contentBg:C}=e,w=`${t}-notice`,E=new jn("MessageMoveIn",{"0%":{padding:0,transform:"translateY(-100%)",opacity:0},"100%":{padding:h,transform:"translateY(0)",opacity:1}}),I=new jn("MessageMoveOut",{"0%":{maxHeight:e.height,padding:h,opacity:1},"100%":{maxHeight:0,padding:0,opacity:0}}),_={padding:h,textAlign:"center",[`${t}-custom-content`]:{display:"flex",alignItems:"center"},[`${t}-custom-content > ${n}`]:{marginInlineEnd:v,fontSize:f},[`${w}-content`]:{display:"inline-block",padding:y,background:C,borderRadius:b,boxShadow:r,pointerEvents:"all"},[`${t}-success > ${n}`]:{color:o},[`${t}-error > ${n}`]:{color:l},[`${t}-warning > ${n}`]:{color:c},[`${t}-info > ${n}, + ${t}-loading > ${n}`]:{color:d}};return[{[t]:Object.assign(Object.assign({},Ln(e)),{color:a,position:"fixed",top:v,width:"100%",pointerEvents:"none",zIndex:x,[`${t}-move-up`]:{animationFillMode:"forwards"},[` + ${t}-move-up-appear, + ${t}-move-up-enter + `]:{animationName:E,animationDuration:p,animationPlayState:"paused",animationTimingFunction:m},[` + ${t}-move-up-appear${t}-move-up-appear-active, + ${t}-move-up-enter${t}-move-up-enter-active + `]:{animationPlayState:"running"},[`${t}-move-up-leave`]:{animationName:I,animationDuration:p,animationPlayState:"paused",animationTimingFunction:m},[`${t}-move-up-leave${t}-move-up-leave-active`]:{animationPlayState:"running"},"&-rtl":{direction:"rtl",span:{direction:"rtl"}}})},{[t]:{[`${w}-wrapper`]:Object.assign({},_)}},{[`${t}-notice-pure-panel`]:Object.assign(Object.assign({},_),{padding:0,textAlign:"start"})}]},X4=e=>({zIndexPopup:e.zIndexPopupBase+U4+10,contentBg:e.colorBgElevated,contentPadding:`${(e.controlHeightLG-e.fontSize*e.lineHeight)/2}px ${e.paddingSM}px`}),XI=zn("Message",e=>{const t=$n(e,{height:150});return[G4(t)]},X4);var Q4=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 a=0,r=Object.getOwnPropertySymbols(e);a{let{prefixCls:t,type:n,icon:r,children:a}=e;return i.createElement("div",{className:ce(`${t}-custom-content`,`${t}-${n}`)},r||J4[n],i.createElement("span",null,a))},Z4=e=>{const{prefixCls:t,className:n,type:r,icon:a,content:o}=e,l=Q4(e,["prefixCls","className","type","icon","content"]),{getPrefixCls:c}=i.useContext(Gt),d=t||c("message"),f=Kr(d),[m,p,v]=XI(d,f);return m(i.createElement(qI,Object.assign({},l,{prefixCls:d,className:ce(n,p,`${d}-notice-pure-panel`,v,f),eventKey:"pure",duration:null,content:i.createElement(QI,{prefixCls:d,type:r,icon:a},o)})))};function e3(e,t){return{motionName:t??`${e}-move-up`}}function cb(e){let t;const n=new Promise(a=>{t=e(()=>{a(!0)})}),r=()=>{t==null||t()};return r.then=(a,o)=>n.then(a,o),r.promise=n,r}var t3=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 a=0,r=Object.getOwnPropertySymbols(e);a{let{children:t,prefixCls:n}=e;const r=Kr(n),[a,o,l]=XI(n,r);return a(i.createElement(M4,{classNames:{list:ce(o,l,r)}},t))},o3=(e,t)=>{let{prefixCls:n,key:r}=t;return i.createElement(a3,{prefixCls:n,key:r},e)},i3=i.forwardRef((e,t)=>{const{top:n,prefixCls:r,getContainer:a,maxCount:o,duration:l=r3,rtl:c,transitionName:d,onAllRemoved:f}=e,{getPrefixCls:m,getPopupContainer:p,message:v,direction:h}=i.useContext(Gt),b=r||m("message"),x=()=>({left:"50%",transform:"translateX(-50%)",top:n??n3}),y=()=>ce({[`${b}-rtl`]:c??h==="rtl"}),C=()=>e3(b,d),w=i.createElement("span",{className:`${b}-close-x`},i.createElement(gd,{className:`${b}-close-icon`})),[E,I]=H4({prefixCls:b,style:x,className:y,motion:C,closable:!1,closeIcon:w,duration:l,getContainer:()=>(a==null?void 0:a())||(p==null?void 0:p())||document.body,maxCount:o,onAllRemoved:f,renderNotifications:o3});return i.useImperativeHandle(t,()=>Object.assign(Object.assign({},E),{prefixCls:b,message:v})),I});let m1=0;function JI(e){const t=i.useRef(null);return ml(),[i.useMemo(()=>{const r=d=>{var f;(f=t.current)===null||f===void 0||f.close(d)},a=d=>{if(!t.current){const O=()=>{};return O.then=()=>{},O}const{open:f,prefixCls:m,message:p}=t.current,v=`${m}-notice`,{content:h,icon:b,type:x,key:y,className:C,style:w,onClose:E}=d,I=t3(d,["content","icon","type","key","className","style","onClose"]);let _=y;return _==null&&(m1+=1,_=`antd-message-${m1}`),cb(O=>(f(Object.assign(Object.assign({},I),{key:_,content:i.createElement(QI,{prefixCls:m,type:x,icon:b},h),placement:"top",className:ce(x&&`${v}-${x}`,C,p==null?void 0:p.className),style:Object.assign(Object.assign({},p==null?void 0:p.style),w),onClose:()=>{E==null||E(),O()}})),()=>{r(_)}))},l={open:a,destroy:d=>{var f;d!==void 0?r(d):(f=t.current)===null||f===void 0||f.destroy()}};return["info","success","warning","error","loading"].forEach(d=>{const f=(m,p,v)=>{let h;m&&typeof m=="object"&&"content"in m?h=m:h={content:m};let b,x;typeof p=="function"?x=p:(b=p,x=v);const y=Object.assign(Object.assign({onClose:x,duration:b},h),{type:d});return a(y)};l[d]=f}),l},[]),i.createElement(i3,Object.assign({key:"message-holder"},e,{ref:t}))]}function l3(e){return JI(e)}function ar(){ar=function(){return t};var e,t={},n=Object.prototype,r=n.hasOwnProperty,a=Object.defineProperty||function(T,M,D){T[M]=D.value},o=typeof Symbol=="function"?Symbol:{},l=o.iterator||"@@iterator",c=o.asyncIterator||"@@asyncIterator",d=o.toStringTag||"@@toStringTag";function f(T,M,D){return Object.defineProperty(T,M,{value:D,enumerable:!0,configurable:!0,writable:!0}),T[M]}try{f({},"")}catch{f=function(D,V,K){return D[V]=K}}function m(T,M,D,V){var K=M&&M.prototype instanceof C?M:C,z=Object.create(K.prototype),U=new F(V||[]);return a(z,"_invoke",{value:k(T,D,U)}),z}function p(T,M,D){try{return{type:"normal",arg:T.call(M,D)}}catch(V){return{type:"throw",arg:V}}}t.wrap=m;var v="suspendedStart",h="suspendedYield",b="executing",x="completed",y={};function C(){}function w(){}function E(){}var I={};f(I,l,function(){return this});var _=Object.getPrototypeOf,O=_&&_(_(A([])));O&&O!==n&&r.call(O,l)&&(I=O);var P=E.prototype=C.prototype=Object.create(I);function j(T){["next","throw","return"].forEach(function(M){f(T,M,function(D){return this._invoke(M,D)})})}function R(T,M){function D(K,z,U,Y){var q=p(T[K],T,z);if(q.type!=="throw"){var X=q.arg,te=X.value;return te&&wt(te)=="object"&&r.call(te,"__await")?M.resolve(te.__await).then(function(ee){D("next",ee,U,Y)},function(ee){D("throw",ee,U,Y)}):M.resolve(te).then(function(ee){X.value=ee,U(X)},function(ee){return D("throw",ee,U,Y)})}Y(q.arg)}var V;a(this,"_invoke",{value:function(z,U){function Y(){return new M(function(q,X){D(z,U,q,X)})}return V=V?V.then(Y,Y):Y()}})}function k(T,M,D){var V=v;return function(K,z){if(V===b)throw Error("Generator is already running");if(V===x){if(K==="throw")throw z;return{value:e,done:!0}}for(D.method=K,D.arg=z;;){var U=D.delegate;if(U){var Y=L(U,D);if(Y){if(Y===y)continue;return Y}}if(D.method==="next")D.sent=D._sent=D.arg;else if(D.method==="throw"){if(V===v)throw V=x,D.arg;D.dispatchException(D.arg)}else D.method==="return"&&D.abrupt("return",D.arg);V=b;var q=p(T,M,D);if(q.type==="normal"){if(V=D.done?x:h,q.arg===y)continue;return{value:q.arg,done:D.done}}q.type==="throw"&&(V=x,D.method="throw",D.arg=q.arg)}}}function L(T,M){var D=M.method,V=T.iterator[D];if(V===e)return M.delegate=null,D==="throw"&&T.iterator.return&&(M.method="return",M.arg=e,L(T,M),M.method==="throw")||D!=="return"&&(M.method="throw",M.arg=new TypeError("The iterator does not provide a '"+D+"' method")),y;var K=p(V,T.iterator,M.arg);if(K.type==="throw")return M.method="throw",M.arg=K.arg,M.delegate=null,y;var z=K.arg;return z?z.done?(M[T.resultName]=z.value,M.next=T.nextLoc,M.method!=="return"&&(M.method="next",M.arg=e),M.delegate=null,y):z:(M.method="throw",M.arg=new TypeError("iterator result is not an object"),M.delegate=null,y)}function W(T){var M={tryLoc:T[0]};1 in T&&(M.catchLoc=T[1]),2 in T&&(M.finallyLoc=T[2],M.afterLoc=T[3]),this.tryEntries.push(M)}function B(T){var M=T.completion||{};M.type="normal",delete M.arg,T.completion=M}function F(T){this.tryEntries=[{tryLoc:"root"}],T.forEach(W,this),this.reset(!0)}function A(T){if(T||T===""){var M=T[l];if(M)return M.call(T);if(typeof T.next=="function")return T;if(!isNaN(T.length)){var D=-1,V=function K(){for(;++D=0;--K){var z=this.tryEntries[K],U=z.completion;if(z.tryLoc==="root")return V("end");if(z.tryLoc<=this.prev){var Y=r.call(z,"catchLoc"),q=r.call(z,"finallyLoc");if(Y&&q){if(this.prev=0;--V){var K=this.tryEntries[V];if(K.tryLoc<=this.prev&&r.call(K,"finallyLoc")&&this.prev=0;--D){var V=this.tryEntries[D];if(V.finallyLoc===M)return this.complete(V.completion,V.afterLoc),B(V),y}},catch:function(M){for(var D=this.tryEntries.length-1;D>=0;--D){var V=this.tryEntries[D];if(V.tryLoc===M){var K=V.completion;if(K.type==="throw"){var z=K.arg;B(V)}return z}}throw Error("illegal catch attempt")},delegateYield:function(M,D,V){return this.delegate={iterator:A(M),resultName:D,nextLoc:V},this.method==="next"&&(this.arg=e),y}},t}function p1(e,t,n,r,a,o,l){try{var c=e[o](l),d=c.value}catch(f){return void n(f)}c.done?t(d):Promise.resolve(d).then(r,a)}function Ha(e){return function(){var t=this,n=arguments;return new Promise(function(r,a){var o=e.apply(t,n);function l(d){p1(o,r,a,l,c,"next",d)}function c(d){p1(o,r,a,l,c,"throw",d)}l(void 0)})}}var hd=Z({},Bk),s3=hd.version,ch=hd.render,c3=hd.unmountComponentAtNode,gp;try{var u3=Number((s3||"").split(".")[0]);u3>=18&&(gp=hd.createRoot)}catch{}function v1(e){var t=hd.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;t&&wt(t)==="object"&&(t.usingClientEntryPoint=e)}var Km="__rc_react_root__";function d3(e,t){v1(!0);var n=t[Km]||gp(t);v1(!1),n.render(e),t[Km]=n}function f3(e,t){ch==null||ch(e,t)}function m3(e,t){if(gp){d3(e,t);return}f3(e,t)}function p3(e){return Wy.apply(this,arguments)}function Wy(){return Wy=Ha(ar().mark(function e(t){return ar().wrap(function(r){for(;;)switch(r.prev=r.next){case 0:return r.abrupt("return",Promise.resolve().then(function(){var a;(a=t[Km])===null||a===void 0||a.unmount(),delete t[Km]}));case 1:case"end":return r.stop()}},e)})),Wy.apply(this,arguments)}function v3(e){c3(e)}function g3(e){return Ky.apply(this,arguments)}function Ky(){return Ky=Ha(ar().mark(function e(t){return ar().wrap(function(r){for(;;)switch(r.prev=r.next){case 0:if(gp===void 0){r.next=2;break}return r.abrupt("return",p3(t));case 2:v3(t);case 3:case"end":return r.stop()}},e)})),Ky.apply(this,arguments)}const h3=(e,t)=>(m3(e,t),()=>g3(t));let y3=h3;function ZI(){return y3}const uh=()=>({height:0,opacity:0}),g1=e=>{const{scrollHeight:t}=e;return{height:t,opacity:1}},b3=e=>({height:e?e.offsetHeight:0}),dh=(e,t)=>(t==null?void 0:t.deadline)===!0||t.propertyName==="height",Gu=function(){return{motionName:`${arguments.length>0&&arguments[0]!==void 0?arguments[0]:Yu}-motion-collapse`,onAppearStart:uh,onEnterStart:uh,onAppearActive:g1,onEnterActive:g1,onLeaveStart:b3,onLeaveActive:uh,onAppearEnd:dh,onEnterEnd:dh,onLeaveEnd:dh,motionDeadline:500}},ub=(e,t,n)=>n!==void 0?n:`${e}-${t}`;function Qn(e,t){var n=Object.assign({},e);return Array.isArray(t)&&t.forEach(function(r){delete n[r]}),n}const fc=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 a=e.getBoundingClientRect(),o=a.width,l=a.height;if(o||l)return!0}}return!1},x3=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(",")}}}}},S3=xD("Wave",e=>[x3(e)]),hp=`${Yu}-wave-target`;function fh(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 C3(e){const{borderTopColor:t,borderColor:n,backgroundColor:r}=getComputedStyle(e);return fh(t)?t:fh(n)?n:fh(r)?r:null}function mh(e){return Number.isNaN(e)?0:e}const w3=e=>{const{className:t,target:n,component:r,registerUnmount:a}=e,o=i.useRef(null),l=i.useRef(null);i.useEffect(()=>{l.current=a()},[]);const[c,d]=i.useState(null),[f,m]=i.useState([]),[p,v]=i.useState(0),[h,b]=i.useState(0),[x,y]=i.useState(0),[C,w]=i.useState(0),[E,I]=i.useState(!1),_={left:p,top:h,width:x,height:C,borderRadius:f.map(j=>`${j}px`).join(" ")};c&&(_["--wave-color"]=c);function O(){const j=getComputedStyle(n);d(C3(n));const R=j.position==="static",{borderLeftWidth:k,borderTopWidth:L}=j;v(R?n.offsetLeft:mh(-parseFloat(k))),b(R?n.offsetTop:mh(-parseFloat(L))),y(n.offsetWidth),w(n.offsetHeight);const{borderTopLeftRadius:W,borderTopRightRadius:B,borderBottomLeftRadius:F,borderBottomRightRadius:A}=j;m([W,B,A,F].map(T=>mh(parseFloat(T))))}if(i.useEffect(()=>{if(n){const j=mn(()=>{O(),I(!0)});let R;return typeof ResizeObserver<"u"&&(R=new ResizeObserver(O),R.observe(n)),()=>{mn.cancel(j),R==null||R.disconnect()}}},[]),!E)return null;const P=(r==="Checkbox"||r==="Radio")&&(n==null?void 0:n.classList.contains(hp));return i.createElement(ko,{visible:!0,motionAppear:!0,motionName:"wave-motion",motionDeadline:5e3,onAppearEnd:(j,R)=>{var k,L;if(R.deadline||R.propertyName==="opacity"){const W=(k=o.current)===null||k===void 0?void 0:k.parentElement;(L=l.current)===null||L===void 0||L.call(l).then(()=>{W==null||W.remove()})}return!1}},(j,R)=>{let{className:k}=j;return i.createElement("div",{ref:ya(o,R),className:ce(t,k,{"wave-quick":P}),style:_})})},$3=(e,t)=>{var n;const{component:r}=t;if(r==="Checkbox"&&!(!((n=e.querySelector("input"))===null||n===void 0)&&n.checked))return;const a=document.createElement("div");a.style.position="absolute",a.style.left="0px",a.style.top="0px",e==null||e.insertBefore(a,e==null?void 0:e.firstChild);const o=ZI();let l=null;function c(){return l}l=o(i.createElement(w3,Object.assign({},t,{target:e,registerUnmount:c})),a)},E3=(e,t,n)=>{const{wave:r}=i.useContext(Gt),[,a,o]=ba(),l=wn(f=>{const m=e.current;if(r!=null&&r.disabled||!m)return;const p=m.querySelector(`.${hp}`)||m,{showEffect:v}=r||{};(v||$3)(p,{className:t,token:a,component:n,event:f,hashId:o})}),c=i.useRef(null);return f=>{mn.cancel(c.current),c.current=mn(()=>{l(f)})}},yd=e=>{const{children:t,disabled:n,component:r}=e,{getPrefixCls:a}=i.useContext(Gt),o=i.useRef(null),l=a("wave"),[,c]=S3(l),d=E3(o,ce(l,c),r);if(be.useEffect(()=>{const m=o.current;if(!m||m.nodeType!==1||n)return;const p=v=>{!fc(v.target)||!m.getAttribute||m.getAttribute("disabled")||m.disabled||m.className.includes("disabled")||m.className.includes("-leave")||d(v)};return m.addEventListener("click",p,!0),()=>{m.removeEventListener("click",p,!0)}},[n]),!be.isValidElement(t))return t??null;const f=Io(t)?ya(fl(t),o):o;return ia(t,{ref:f})},Zr=e=>{const t=be.useContext(Wl);return be.useMemo(()=>e?typeof e=="string"?e??t:typeof e=="function"?e(t):t:t,[e,t])},_3=e=>{const{componentCls:t}=e;return{[t]:{"&-block":{display:"flex",width:"100%"},"&-vertical":{flexDirection:"column"}}}},I3=e=>{const{componentCls:t,antCls:n}=e;return{[t]:{display:"inline-flex","&-rtl":{direction:"rtl"},"&-vertical":{flexDirection:"column"},"&-align":{flexDirection:"column","&-center":{alignItems:"center"},"&-start":{alignItems:"flex-start"},"&-end":{alignItems:"flex-end"},"&-baseline":{alignItems:"baseline"}},[`${t}-item:empty`]:{display:"none"},[`${t}-item > ${n}-badge-not-a-wrapper:only-child`]:{display:"block"}}}},O3=e=>{const{componentCls:t}=e;return{[t]:{"&-gap-row-small":{rowGap:e.spaceGapSmallSize},"&-gap-row-middle":{rowGap:e.spaceGapMiddleSize},"&-gap-row-large":{rowGap:e.spaceGapLargeSize},"&-gap-col-small":{columnGap:e.spaceGapSmallSize},"&-gap-col-middle":{columnGap:e.spaceGapMiddleSize},"&-gap-col-large":{columnGap:e.spaceGapLargeSize}}}},e2=zn("Space",e=>{const t=$n(e,{spaceGapSmallSize:e.paddingXS,spaceGapMiddleSize:e.padding,spaceGapLargeSize:e.paddingLG});return[I3(t),O3(t),_3(t)]},()=>({}),{resetStyle:!1});var t2=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 a=0,r=Object.getOwnPropertySymbols(e);a{const n=i.useContext(yp),r=i.useMemo(()=>{if(!n)return"";const{compactDirection:a,isFirstItem:o,isLastItem:l}=n,c=a==="vertical"?"-vertical-":"-";return ce(`${e}-compact${c}item`,{[`${e}-compact${c}first-item`]:o,[`${e}-compact${c}last-item`]:l,[`${e}-compact${c}item-rtl`]:t==="rtl"})},[e,t,n]);return{compactSize:n==null?void 0:n.compactSize,compactDirection:n==null?void 0:n.compactDirection,compactItemClassnames:r}},R3=e=>{const{children:t}=e;return i.createElement(yp.Provider,{value:null},t)},P3=e=>{const{children:t}=e,n=t2(e,["children"]);return i.createElement(yp.Provider,{value:i.useMemo(()=>n,[n])},t)},N3=e=>{const{getPrefixCls:t,direction:n}=i.useContext(Gt),{size:r,direction:a,block:o,prefixCls:l,className:c,rootClassName:d,children:f}=e,m=t2(e,["size","direction","block","prefixCls","className","rootClassName","children"]),p=Zr(E=>r??E),v=t("space-compact",l),[h,b]=e2(v),x=ce(v,b,{[`${v}-rtl`]:n==="rtl",[`${v}-block`]:o,[`${v}-vertical`]:a==="vertical"},c,d),y=i.useContext(yp),C=ga(f),w=i.useMemo(()=>C.map((E,I)=>{const _=(E==null?void 0:E.key)||`${v}-item-${I}`;return i.createElement(P3,{key:_,compactSize:p,compactDirection:a,isFirstItem:I===0&&(!y||(y==null?void 0:y.isFirstItem)),isLastItem:I===C.length-1&&(!y||(y==null?void 0:y.isLastItem))},E)}),[r,C,y]);return C.length===0?null:h(i.createElement("div",Object.assign({className:x},m),w))};var j3=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 a=0,r=Object.getOwnPropertySymbols(e);a{const{getPrefixCls:t,direction:n}=i.useContext(Gt),{prefixCls:r,size:a,className:o}=e,l=j3(e,["prefixCls","size","className"]),c=t("btn-group",r),[,,d]=ba(),f=i.useMemo(()=>{switch(a){case"large":return"lg";case"small":return"sm";default:return""}},[a]),m=ce(c,{[`${c}-${f}`]:f,[`${c}-rtl`]:n==="rtl"},o,d);return i.createElement(n2.Provider,{value:a},i.createElement("div",Object.assign({},l,{className:m})))},h1=/^[\u4E00-\u9FA5]{2}$/,Uy=h1.test.bind(h1);function y1(e){return typeof e=="string"}function ph(e){return e==="text"||e==="link"}function M3(e,t){if(e==null)return;const n=t?" ":"";return typeof e!="string"&&typeof e!="number"&&y1(e.type)&&Uy(e.props.children)?ia(e,{children:e.props.children.split("").join(n)}):y1(e)?Uy(e)?be.createElement("span",null,e.split("").join(n)):be.createElement("span",null,e):KI(e)?be.createElement("span",null,e):e}function T3(e,t){let n=!1;const r=[];return be.Children.forEach(e,a=>{const o=typeof a,l=o==="string"||o==="number";if(n&&l){const c=r.length-1,d=r[c];r[c]=`${d}${a}`}else r.push(a);n=l}),be.Children.map(r,a=>M3(a,t))}["default","primary","danger"].concat(Te(Kl));const qy=i.forwardRef((e,t)=>{const{className:n,style:r,children:a,prefixCls:o}=e,l=ce(`${o}-icon`,n);return be.createElement("span",{ref:t,className:l,style:r},a)}),b1=i.forwardRef((e,t)=>{const{prefixCls:n,className:r,style:a,iconClassName:o}=e,l=ce(`${n}-loading-icon`,r);return be.createElement(qy,{prefixCls:n,className:l,style:a,ref:t},be.createElement(Si,{className:o}))}),vh=()=>({width:0,opacity:0,transform:"scale(0)"}),gh=e=>({width:e.scrollWidth,opacity:1,transform:"scale(1)"}),D3=e=>{const{prefixCls:t,loading:n,existIcon:r,className:a,style:o,mount:l}=e,c=!!n;return r?be.createElement(b1,{prefixCls:t,className:a,style:o}):be.createElement(ko,{visible:c,motionName:`${t}-loading-icon-motion`,motionAppear:!l,motionEnter:!l,motionLeave:!l,removeOnLeave:!0,onAppearStart:vh,onAppearActive:gh,onEnterStart:vh,onEnterActive:gh,onLeaveStart:gh,onLeaveActive:vh},(d,f)=>{let{className:m,style:p}=d;const v=Object.assign(Object.assign({},o),p);return be.createElement(b1,{prefixCls:t,className:ce(a,m),style:v,ref:f})})},x1=(e,t)=>({[`> span, > ${e}`]:{"&:not(:last-child)":{[`&, & > ${e}`]:{"&:not(:disabled)":{borderInlineEndColor:t}}},"&:not(:first-child)":{[`&, & > ${e}`]:{"&:not(:disabled)":{borderInlineStartColor:t}}}}}),F3=e=>{const{componentCls:t,fontSize:n,lineWidth:r,groupBorderColor:a,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}},x1(`${t}-primary`,a),x1(`${t}-danger`,o)]}};var L3=["b"],A3=["v"],hh=function(t){return Math.round(Number(t||0))},z3=function(t){if(t instanceof Pn)return t;if(t&&wt(t)==="object"&&"h"in t&&"b"in t){var n=t,r=n.b,a=Kt(n,L3);return Z(Z({},a),{},{v:r})}return typeof t=="string"&&/hsb/.test(t)?t.replace(/hsb/,"hsv"):t},Xu=function(e){so(n,e);var t=co(n);function n(r){return ur(this,n),t.call(this,z3(r))}return dr(n,[{key:"toHsbString",value:function(){var a=this.toHsb(),o=hh(a.s*100),l=hh(a.b*100),c=hh(a.h),d=a.a,f="hsb(".concat(c,", ").concat(o,"%, ").concat(l,"%)"),m="hsba(".concat(c,", ").concat(o,"%, ").concat(l,"%, ").concat(d.toFixed(d===0?0:2),")");return d===1?f:m}},{key:"toHsb",value:function(){var a=this.toHsv(),o=a.v,l=Kt(a,A3);return Z(Z({},l),{},{b:o,a:this.a})}}]),n}(Pn),B3=function(t){return t instanceof Xu?t:new Xu(t)};B3("#1677ff");const H3=(e,t)=>(e==null?void 0:e.replace(/[^\w/]/g,"").slice(0,t?8:6))||"",V3=(e,t)=>e?H3(e,t):"";let W3=function(){function e(t){ur(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(a=>({color:new e(a.color),percent:a.percent})),this.cleared=t.cleared;return}const r=Array.isArray(t);r&&t.length?(this.colors=t.map(a=>{let{color:o,percent:l}=a;return{color:new e(o),percent:l}}),this.metaColor=new Xu(this.colors[0].color.metaColor)):this.metaColor=new Xu(r?"":t),(!t||r&&!this.colors)&&(this.metaColor=this.metaColor.setA(0),this.cleared=!0)}return dr(e,[{key:"toHsb",value:function(){return this.metaColor.toHsb()}},{key:"toHsbString",value:function(){return this.metaColor.toHsbString()}},{key:"toHex",value:function(){return V3(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(a=>`${a.color.toRgbString()} ${a.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,a)=>{const o=n.colors[a];return r.percent===o.percent&&r.color.equals(o.color)}):this.toHexString()===n.toHexString()}}])}();var K3={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"},U3=function(t,n){return i.createElement(pn,Pe({},t,{ref:n,icon:K3}))},Qu=i.forwardRef(U3);const bp=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`}}}),q3=e=>({animationDuration:e,animationFillMode:"both"}),Y3=e=>({animationDuration:e,animationFillMode:"both"}),xp=function(e,t,n,r){const o=(arguments.length>4&&arguments[4]!==void 0?arguments[4]:!1)?"&":"";return{[` + ${o}${e}-enter, + ${o}${e}-appear + `]:Object.assign(Object.assign({},q3(r)),{animationPlayState:"paused"}),[`${o}${e}-leave`]:Object.assign(Object.assign({},Y3(r)),{animationPlayState:"paused"}),[` + ${o}${e}-enter${e}-enter-active, + ${o}${e}-appear${e}-appear-active + `]:{animationName:t,animationPlayState:"running"},[`${o}${e}-leave${e}-leave-active`]:{animationName:n,animationPlayState:"running",pointerEvents:"none"}}},G3=new jn("antFadeIn",{"0%":{opacity:0},"100%":{opacity:1}}),X3=new jn("antFadeOut",{"0%":{opacity:1},"100%":{opacity:0}}),Q3=function(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;const{antCls:n}=e,r=`${n}-fade`,a=t?"&":"";return[xp(r,G3,X3,e.motionDurationMid,t),{[` + ${a}${r}-enter, + ${a}${r}-appear + `]:{opacity:0,animationTimingFunction:"linear"},[`${a}${r}-leave`]:{animationTimingFunction:"linear"}}]},J3=new jn("antMoveDownIn",{"0%":{transform:"translate3d(0, 100%, 0)",transformOrigin:"0 0",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1}}),Z3=new jn("antMoveDownOut",{"0%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1},"100%":{transform:"translate3d(0, 100%, 0)",transformOrigin:"0 0",opacity:0}}),e6=new jn("antMoveLeftIn",{"0%":{transform:"translate3d(-100%, 0, 0)",transformOrigin:"0 0",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1}}),t6=new jn("antMoveLeftOut",{"0%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1},"100%":{transform:"translate3d(-100%, 0, 0)",transformOrigin:"0 0",opacity:0}}),n6=new jn("antMoveRightIn",{"0%":{transform:"translate3d(100%, 0, 0)",transformOrigin:"0 0",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1}}),r6=new jn("antMoveRightOut",{"0%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1},"100%":{transform:"translate3d(100%, 0, 0)",transformOrigin:"0 0",opacity:0}}),a6=new jn("antMoveUpIn",{"0%":{transform:"translate3d(0, -100%, 0)",transformOrigin:"0 0",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1}}),o6=new jn("antMoveUpOut",{"0%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1},"100%":{transform:"translate3d(0, -100%, 0)",transformOrigin:"0 0",opacity:0}}),i6={"move-up":{inKeyframes:a6,outKeyframes:o6},"move-down":{inKeyframes:J3,outKeyframes:Z3},"move-left":{inKeyframes:e6,outKeyframes:t6},"move-right":{inKeyframes:n6,outKeyframes:r6}},ic=(e,t)=>{const{antCls:n}=e,r=`${n}-${t}`,{inKeyframes:a,outKeyframes:o}=i6[t];return[xp(r,a,o,e.motionDurationMid),{[` + ${r}-enter, + ${r}-appear + `]:{opacity:0,animationTimingFunction:e.motionEaseOutCirc},[`${r}-leave`]:{animationTimingFunction:e.motionEaseInOutCirc}}]},Sp=new jn("antSlideUpIn",{"0%":{transform:"scaleY(0.8)",transformOrigin:"0% 0%",opacity:0},"100%":{transform:"scaleY(1)",transformOrigin:"0% 0%",opacity:1}}),Cp=new jn("antSlideUpOut",{"0%":{transform:"scaleY(1)",transformOrigin:"0% 0%",opacity:1},"100%":{transform:"scaleY(0.8)",transformOrigin:"0% 0%",opacity:0}}),wp=new jn("antSlideDownIn",{"0%":{transform:"scaleY(0.8)",transformOrigin:"100% 100%",opacity:0},"100%":{transform:"scaleY(1)",transformOrigin:"100% 100%",opacity:1}}),$p=new jn("antSlideDownOut",{"0%":{transform:"scaleY(1)",transformOrigin:"100% 100%",opacity:1},"100%":{transform:"scaleY(0.8)",transformOrigin:"100% 100%",opacity:0}}),l6=new jn("antSlideLeftIn",{"0%":{transform:"scaleX(0.8)",transformOrigin:"0% 0%",opacity:0},"100%":{transform:"scaleX(1)",transformOrigin:"0% 0%",opacity:1}}),s6=new jn("antSlideLeftOut",{"0%":{transform:"scaleX(1)",transformOrigin:"0% 0%",opacity:1},"100%":{transform:"scaleX(0.8)",transformOrigin:"0% 0%",opacity:0}}),c6=new jn("antSlideRightIn",{"0%":{transform:"scaleX(0.8)",transformOrigin:"100% 0%",opacity:0},"100%":{transform:"scaleX(1)",transformOrigin:"100% 0%",opacity:1}}),u6=new jn("antSlideRightOut",{"0%":{transform:"scaleX(1)",transformOrigin:"100% 0%",opacity:1},"100%":{transform:"scaleX(0.8)",transformOrigin:"100% 0%",opacity:0}}),d6={"slide-up":{inKeyframes:Sp,outKeyframes:Cp},"slide-down":{inKeyframes:wp,outKeyframes:$p},"slide-left":{inKeyframes:l6,outKeyframes:s6},"slide-right":{inKeyframes:c6,outKeyframes:u6}},Yo=(e,t)=>{const{antCls:n}=e,r=`${n}-${t}`,{inKeyframes:a,outKeyframes:o}=d6[t];return[xp(r,a,o,e.motionDurationMid),{[` + ${r}-enter, + ${r}-appear + `]:{transform:"scale(0)",transformOrigin:"0% 0%",opacity:0,animationTimingFunction:e.motionEaseOutQuint,"&-prepare":{transform:"scale(1)"}},[`${r}-leave`]:{animationTimingFunction:e.motionEaseInQuint}}]},db=new jn("antZoomIn",{"0%":{transform:"scale(0.2)",opacity:0},"100%":{transform:"scale(1)",opacity:1}}),f6=new jn("antZoomOut",{"0%":{transform:"scale(1)"},"100%":{transform:"scale(0.2)",opacity:0}}),S1=new jn("antZoomBigIn",{"0%":{transform:"scale(0.8)",opacity:0},"100%":{transform:"scale(1)",opacity:1}}),C1=new jn("antZoomBigOut",{"0%":{transform:"scale(1)"},"100%":{transform:"scale(0.8)",opacity:0}}),m6=new jn("antZoomUpIn",{"0%":{transform:"scale(0.8)",transformOrigin:"50% 0%",opacity:0},"100%":{transform:"scale(1)",transformOrigin:"50% 0%"}}),p6=new jn("antZoomUpOut",{"0%":{transform:"scale(1)",transformOrigin:"50% 0%"},"100%":{transform:"scale(0.8)",transformOrigin:"50% 0%",opacity:0}}),v6=new jn("antZoomLeftIn",{"0%":{transform:"scale(0.8)",transformOrigin:"0% 50%",opacity:0},"100%":{transform:"scale(1)",transformOrigin:"0% 50%"}}),g6=new jn("antZoomLeftOut",{"0%":{transform:"scale(1)",transformOrigin:"0% 50%"},"100%":{transform:"scale(0.8)",transformOrigin:"0% 50%",opacity:0}}),h6=new jn("antZoomRightIn",{"0%":{transform:"scale(0.8)",transformOrigin:"100% 50%",opacity:0},"100%":{transform:"scale(1)",transformOrigin:"100% 50%"}}),y6=new jn("antZoomRightOut",{"0%":{transform:"scale(1)",transformOrigin:"100% 50%"},"100%":{transform:"scale(0.8)",transformOrigin:"100% 50%",opacity:0}}),b6=new jn("antZoomDownIn",{"0%":{transform:"scale(0.8)",transformOrigin:"50% 100%",opacity:0},"100%":{transform:"scale(1)",transformOrigin:"50% 100%"}}),x6=new jn("antZoomDownOut",{"0%":{transform:"scale(1)",transformOrigin:"50% 100%"},"100%":{transform:"scale(0.8)",transformOrigin:"50% 100%",opacity:0}}),S6={zoom:{inKeyframes:db,outKeyframes:f6},"zoom-big":{inKeyframes:S1,outKeyframes:C1},"zoom-big-fast":{inKeyframes:S1,outKeyframes:C1},"zoom-left":{inKeyframes:v6,outKeyframes:g6},"zoom-right":{inKeyframes:h6,outKeyframes:y6},"zoom-up":{inKeyframes:m6,outKeyframes:p6},"zoom-down":{inKeyframes:b6,outKeyframes:x6}},fb=(e,t)=>{const{antCls:n}=e,r=`${n}-${t}`,{inKeyframes:a,outKeyframes:o}=S6[t];return[xp(r,a,o,t==="zoom-big-fast"?e.motionDurationFast:e.motionDurationMid),{[` + ${r}-enter, + ${r}-appear + `]:{transform:"scale(0)",opacity:0,animationTimingFunction:e.motionEaseOutCirc,"&-prepare":{transform:"none"}},[`${r}-leave`]:{animationTimingFunction:e.motionEaseInOutCirc}}]},C6=(e,t)=>{const{r:n,g:r,b:a,a:o}=e.toRgb(),l=new Xu(e.toRgbString()).onBackground(t).toHsv();return o<=.5?l.v>.5:n*.299+r*.587+a*.114>192},r2=e=>{const{paddingInline:t,onlyIconSize:n}=e;return $n(e,{buttonPaddingHorizontal:t,buttonPaddingVertical:0,buttonIconOnlyFontSize:n})},a2=e=>{var t,n,r,a,o,l;const c=(t=e.contentFontSize)!==null&&t!==void 0?t:e.fontSize,d=(n=e.contentFontSizeSM)!==null&&n!==void 0?n:e.fontSize,f=(r=e.contentFontSizeLG)!==null&&r!==void 0?r:e.fontSizeLG,m=(a=e.contentLineHeight)!==null&&a!==void 0?a:xm(c),p=(o=e.contentLineHeightSM)!==null&&o!==void 0?o:xm(d),v=(l=e.contentLineHeightLG)!==null&&l!==void 0?l:xm(f),h=C6(new W3(e.colorBgSolid),"#fff")?"#000":"#fff",b=Kl.reduce((x,y)=>Object.assign(Object.assign({},x),{[`${y}ShadowColor`]:`0 ${ne(e.controlOutlineWidth)} 0 ${yu(e[`${y}1`],e.colorBgContainer)}`}),{});return Object.assign(Object.assign({},b),{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:"inherit",onlyIconSizeSM:"inherit",onlyIconSizeLG:"inherit",groupBorderColor:e.colorPrimaryHover,linkHoverBg:"transparent",textTextColor:e.colorText,textTextHoverColor:e.colorText,textTextActiveColor:e.colorText,textHoverBg:e.colorFillTertiary,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:h,contentFontSize:c,contentFontSizeSM:d,contentFontSizeLG:f,contentLineHeight:m,contentLineHeightSM:p,contentLineHeightLG:v,paddingBlock:Math.max((e.controlHeight-c*m)/2-e.lineWidth,0),paddingBlockSM:Math.max((e.controlHeightSM-d*p)/2-e.lineWidth,0),paddingBlockLG:Math.max((e.controlHeightLG-f*v)/2-e.lineWidth,0)})},w6=e=>{const{componentCls:t,iconCls:n,fontWeight:r,opacityLoading:a,motionDurationSlow:o,motionEaseInOut:l,marginXS:c,calc:d}=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:`${ne(e.lineWidth)} ${e.lineType} transparent`,cursor:"pointer",transition:`all ${e.motionDurationMid} ${e.motionEaseInOut}`,userSelect:"none",touchAction:"manipulation",color:e.colorText,"&:disabled > *":{pointerEvents:"none"},[`${t}-icon > svg`]:cc(),"> a":{color:"currentColor"},"&:not(:disabled)":xi(e),[`&${t}-two-chinese-chars::first-letter`]:{letterSpacing:"0.34em"},[`&${t}-two-chinese-chars > *:not(${n})`]:{marginInlineEnd:"-0.34em",letterSpacing:"0.34em"},[`&${t}-icon-only`]:{paddingInline:0,[`&${t}-compact-item`]:{flex:"none"},[`&${t}-round`]:{width:"auto"}},[`&${t}-loading`]:{opacity:a,cursor:"default"},[`${t}-loading-icon`]:{transition:["width","opacity","margin"].map(f=>`${f} ${o} ${l}`).join(",")},[`&:not(${t}-icon-end)`]:{[`${t}-loading-icon-motion`]:{"&-appear-start, &-enter-start":{marginInlineEnd:d(c).mul(-1).equal()},"&-appear-active, &-enter-active":{marginInlineEnd:0},"&-leave-start":{marginInlineEnd:0},"&-leave-active":{marginInlineEnd:d(c).mul(-1).equal()}}},"&-icon-end":{flexDirection:"row-reverse",[`${t}-loading-icon-motion`]:{"&-appear-start, &-enter-start":{marginInlineStart:d(c).mul(-1).equal()},"&-appear-active, &-enter-active":{marginInlineStart:0},"&-leave-start":{marginInlineStart:0},"&-leave-active":{marginInlineStart:d(c).mul(-1).equal()}}}}}},o2=(e,t,n)=>({[`&:not(:disabled):not(${e}-disabled)`]:{"&:hover":t,"&:active":n}}),$6=e=>({minWidth:e.controlHeight,paddingInlineStart:0,paddingInlineEnd:0,borderRadius:"50%"}),E6=e=>({borderRadius:e.controlHeight,paddingInlineStart:e.calc(e.controlHeight).div(2).equal(),paddingInlineEnd:e.calc(e.controlHeight).div(2).equal()}),_6=e=>({cursor:"not-allowed",borderColor:e.borderColorDisabled,color:e.colorTextDisabled,background:e.colorBgContainerDisabled,boxShadow:"none"}),Ep=(e,t,n,r,a,o,l,c)=>({[`&${e}-background-ghost`]:Object.assign(Object.assign({color:n||void 0,background:t,borderColor:r||void 0,boxShadow:"none"},o2(e,Object.assign({background:t},l),Object.assign({background:t},c))),{"&:disabled":{cursor:"not-allowed",color:a||void 0,borderColor:o||void 0}})}),I6=e=>({[`&:disabled, &${e.componentCls}-disabled`]:Object.assign({},_6(e))}),O6=e=>({[`&:disabled, &${e.componentCls}-disabled`]:{cursor:"not-allowed",color:e.colorTextDisabled}}),_p=(e,t,n,r)=>{const o=r&&["link","text"].includes(r)?O6:I6;return Object.assign(Object.assign({},o(e)),o2(e.componentCls,t,n))},Ip=(e,t,n,r,a)=>({[`&${e.componentCls}-variant-solid`]:Object.assign({color:t,background:n},_p(e,r,a))}),Op=(e,t,n,r,a)=>({[`&${e.componentCls}-variant-outlined, &${e.componentCls}-variant-dashed`]:Object.assign({borderColor:t,background:n},_p(e,r,a))}),Rp=e=>({[`&${e.componentCls}-variant-dashed`]:{borderStyle:"dashed"}}),Pp=(e,t,n,r)=>({[`&${e.componentCls}-variant-filled`]:Object.assign({boxShadow:"none",background:t},_p(e,n,r))}),Go=(e,t,n,r,a)=>({[`&${e.componentCls}-variant-${n}`]:Object.assign({color:t,boxShadow:"none"},_p(e,r,a,n))}),R6=e=>{const{componentCls:t}=e;return Kl.reduce((n,r)=>{const a=e[`${r}6`],o=e[`${r}1`],l=e[`${r}5`],c=e[`${r}2`],d=e[`${r}3`],f=e[`${r}7`];return Object.assign(Object.assign({},n),{[`&${t}-color-${r}`]:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({color:a,boxShadow:e[`${r}ShadowColor`]},Ip(e,e.colorTextLightSolid,a,{background:l},{background:f})),Op(e,a,e.colorBgContainer,{color:l,borderColor:l,background:e.colorBgContainer},{color:f,borderColor:f,background:e.colorBgContainer})),Rp(e)),Pp(e,o,{background:c},{background:d})),Go(e,a,"link",{color:l},{color:f})),Go(e,a,"text",{color:l,background:o},{color:f,background:d}))})},{})},P6=e=>Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({color:e.defaultColor,boxShadow:e.defaultShadow},Ip(e,e.solidTextColor,e.colorBgSolid,{color:e.solidTextColor,background:e.colorBgSolidHover},{color:e.solidTextColor,background:e.colorBgSolidActive})),Rp(e)),Pp(e,e.colorFillTertiary,{background:e.colorFillSecondary},{background:e.colorFill})),Ep(e.componentCls,e.ghostBg,e.defaultGhostColor,e.defaultGhostBorderColor,e.colorTextDisabled,e.colorBorder)),Go(e,e.textTextColor,"link",{color:e.colorLinkHover,background:e.linkHoverBg},{color:e.colorLinkActive})),N6=e=>Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({color:e.colorPrimary,boxShadow:e.primaryShadow},Op(e,e.colorPrimary,e.colorBgContainer,{color:e.colorPrimaryTextHover,borderColor:e.colorPrimaryHover,background:e.colorBgContainer},{color:e.colorPrimaryTextActive,borderColor:e.colorPrimaryActive,background:e.colorBgContainer})),Rp(e)),Pp(e,e.colorPrimaryBg,{background:e.colorPrimaryBgHover},{background:e.colorPrimaryBorder})),Go(e,e.colorPrimaryText,"text",{color:e.colorPrimaryTextHover,background:e.colorPrimaryBg},{color:e.colorPrimaryTextActive,background:e.colorPrimaryBorder})),Go(e,e.colorPrimaryText,"link",{color:e.colorPrimaryTextHover,background:e.linkHoverBg},{color:e.colorPrimaryTextActive})),Ep(e.componentCls,e.ghostBg,e.colorPrimary,e.colorPrimary,e.colorTextDisabled,e.colorBorder,{color:e.colorPrimaryHover,borderColor:e.colorPrimaryHover},{color:e.colorPrimaryActive,borderColor:e.colorPrimaryActive})),j6=e=>Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({color:e.colorError,boxShadow:e.dangerShadow},Ip(e,e.dangerColor,e.colorError,{background:e.colorErrorHover},{background:e.colorErrorActive})),Op(e,e.colorError,e.colorBgContainer,{color:e.colorErrorHover,borderColor:e.colorErrorBorderHover},{color:e.colorErrorActive,borderColor:e.colorErrorActive})),Rp(e)),Pp(e,e.colorErrorBg,{background:e.colorErrorBgFilledHover},{background:e.colorErrorBgActive})),Go(e,e.colorError,"text",{color:e.colorErrorHover,background:e.colorErrorBg},{color:e.colorErrorHover,background:e.colorErrorBgActive})),Go(e,e.colorError,"link",{color:e.colorErrorHover},{color:e.colorErrorActive})),Ep(e.componentCls,e.ghostBg,e.colorError,e.colorError,e.colorTextDisabled,e.colorBorder,{color:e.colorErrorHover,borderColor:e.colorErrorHover},{color:e.colorErrorActive,borderColor:e.colorErrorActive})),k6=e=>Object.assign(Object.assign({},Go(e,e.colorLink,"link",{color:e.colorLinkHover},{color:e.colorLinkActive})),Ep(e.componentCls,e.ghostBg,e.colorInfo,e.colorInfo,e.colorTextDisabled,e.colorBorder,{color:e.colorInfoHover,borderColor:e.colorInfoHover},{color:e.colorInfoActive,borderColor:e.colorInfoActive})),M6=e=>{const{componentCls:t}=e;return Object.assign({[`${t}-color-default`]:P6(e),[`${t}-color-primary`]:N6(e),[`${t}-color-dangerous`]:j6(e),[`${t}-color-link`]:k6(e)},R6(e))},T6=e=>Object.assign(Object.assign(Object.assign(Object.assign({},Op(e,e.defaultBorderColor,e.defaultBg,{color:e.defaultHoverColor,borderColor:e.defaultHoverBorderColor,background:e.defaultHoverBg},{color:e.defaultActiveColor,borderColor:e.defaultActiveBorderColor,background:e.defaultActiveBg})),Go(e,e.textTextColor,"text",{color:e.textTextHoverColor,background:e.textHoverBg},{color:e.textTextActiveColor,background:e.colorBgTextActive})),Ip(e,e.primaryColor,e.colorPrimary,{background:e.colorPrimaryHover,color:e.primaryColor},{background:e.colorPrimaryActive,color:e.primaryColor})),Go(e,e.colorLink,"link",{color:e.colorLinkHover,background:e.linkHoverBg},{color:e.colorLinkActive})),mb=function(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"";const{componentCls:n,controlHeight:r,fontSize:a,borderRadius:o,buttonPaddingHorizontal:l,iconCls:c,buttonPaddingVertical:d,buttonIconOnlyFontSize:f}=e;return[{[t]:{fontSize:a,height:r,padding:`${ne(d)} ${ne(l)}`,borderRadius:o,[`&${n}-icon-only`]:{width:r,[c]:{fontSize:f}}}},{[`${n}${n}-circle${t}`]:$6(e)},{[`${n}${n}-round${t}`]:E6(e)}]},D6=e=>{const t=$n(e,{fontSize:e.contentFontSize});return mb(t,e.componentCls)},F6=e=>{const t=$n(e,{controlHeight:e.controlHeightSM,fontSize:e.contentFontSizeSM,padding:e.paddingXS,buttonPaddingHorizontal:e.paddingInlineSM,buttonPaddingVertical:0,borderRadius:e.borderRadiusSM,buttonIconOnlyFontSize:e.onlyIconSizeSM});return mb(t,`${e.componentCls}-sm`)},L6=e=>{const t=$n(e,{controlHeight:e.controlHeightLG,fontSize:e.contentFontSizeLG,buttonPaddingHorizontal:e.paddingInlineLG,buttonPaddingVertical:0,borderRadius:e.borderRadiusLG,buttonIconOnlyFontSize:e.onlyIconSizeLG});return mb(t,`${e.componentCls}-lg`)},A6=e=>{const{componentCls:t}=e;return{[t]:{[`&${t}-block`]:{width:"100%"}}}},z6=zn("Button",e=>{const t=r2(e);return[w6(t),D6(t),F6(t),L6(t),A6(t),M6(t),T6(t),F3(t)]},a2,{unitless:{fontWeight:!0,contentLineHeight:!0,contentLineHeightSM:!0,contentLineHeightLG:!0}});function B6(e,t,n){const{focusElCls:r,focus:a,borderElCls:o}=n,l=o?"> *":"",c=["hover",a?"focus":null,"active"].filter(Boolean).map(d=>`&:${d} ${l}`).join(",");return{[`&-item:not(${t}-last-item)`]:{marginInlineEnd:e.calc(e.lineWidth).mul(-1).equal()},"&-item":Object.assign(Object.assign({[c]:{zIndex:2}},r?{[`&${r}`]:{zIndex:2}}:{}),{[`&[disabled] ${l}`]:{zIndex:0}})}}function H6(e,t,n){const{borderElCls:r}=n,a=r?`> ${r}`:"";return{[`&-item:not(${t}-first-item):not(${t}-last-item) ${a}`]:{borderRadius:0},[`&-item:not(${t}-last-item)${t}-first-item`]:{[`& ${a}, &${e}-sm ${a}, &${e}-lg ${a}`]:{borderStartEndRadius:0,borderEndEndRadius:0}},[`&-item:not(${t}-first-item)${t}-last-item`]:{[`& ${a}, &${e}-sm ${a}, &${e}-lg ${a}`]:{borderStartStartRadius:0,borderEndStartRadius:0}}}}function bd(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({},B6(e,r,t)),H6(n,r,t))}}function V6(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 W6(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 K6(e){const t=`${e.componentCls}-compact-vertical`;return{[t]:Object.assign(Object.assign({},V6(e,t)),W6(e.componentCls,t))}}const U6=e=>{const{componentCls:t,colorPrimaryHover:n,lineWidth:r,calc:a}=e,o=a(r).mul(-1).equal(),l=c=>{const d=`${t}-compact${c?"-vertical":""}-item${t}-primary:not([disabled])`;return{[`${d} + ${d}::before`]:{position:"absolute",top:c?o:0,insetInlineStart:c?0:o,backgroundColor:n,content:'""',width:c?"100%":r,height:c?r:"100%"}}};return Object.assign(Object.assign({},l()),l(!0))},q6=pd(["Button","compact"],e=>{const t=r2(e);return[bd(t),K6(t),U6(t)]},a2);var Y6=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 a=0,r=Object.getOwnPropertySymbols(e);a{var n,r;const{loading:a=!1,prefixCls:o,color:l,variant:c,type:d,danger:f=!1,shape:m="default",size:p,styles:v,disabled:h,className:b,rootClassName:x,children:y,icon:C,iconPosition:w="start",ghost:E=!1,block:I=!1,htmlType:_="button",classNames:O,style:P={},autoInsertSpace:j,autoFocus:R}=e,k=Y6(e,["loading","prefixCls","color","variant","type","danger","shape","size","styles","disabled","className","rootClassName","children","icon","iconPosition","ghost","block","htmlType","classNames","style","autoInsertSpace","autoFocus"]),L=d||"default",[W,B]=i.useMemo(()=>{if(l&&c)return[l,c];const Ce=X6[L]||[];return f?["danger",Ce[1]]:Ce},[d,l,c,f]),A=W==="danger"?"dangerous":W,{getPrefixCls:T,direction:M,autoInsertSpace:D,className:V,style:K,classNames:z,styles:U}=wa("button"),Y=(n=j??D)!==null&&n!==void 0?n:!0,q=T("btn",o),[X,te,ee]=z6(q),J=i.useContext(ha),ie=h??J,de=i.useContext(n2),oe=i.useMemo(()=>G6(a),[a]),[le,ae]=i.useState(oe.loading),[ue,pe]=i.useState(!1),fe=i.useRef(null),xe=dl(t,fe),Ee=i.Children.count(y)===1&&!C&&!ph(B),Le=i.useRef(!0);be.useEffect(()=>(Le.current=!1,()=>{Le.current=!0}),[]),i.useEffect(()=>{let Ce=null;oe.delay>0?Ce=setTimeout(()=>{Ce=null,ae(!0)},oe.delay):ae(oe.loading);function _e(){Ce&&(clearTimeout(Ce),Ce=null)}return _e},[oe]),i.useEffect(()=>{if(!fe.current||!Y)return;const Ce=fe.current.textContent||"";Ee&&Uy(Ce)?ue||pe(!0):ue&&pe(!1)}),i.useEffect(()=>{R&&fe.current&&fe.current.focus()},[]);const Ne=be.useCallback(Ce=>{var _e;if(le||ie){Ce.preventDefault();return}(_e=e.onClick)===null||_e===void 0||_e.call(e,("href"in e,Ce))},[e.onClick,le,ie]),{compactSize:ge,compactItemClassnames:we}=_i(q,M),Se={large:"lg",small:"sm",middle:void 0},Re=Zr(Ce=>{var _e,he;return(he=(_e=p??ge)!==null&&_e!==void 0?_e:de)!==null&&he!==void 0?he:Ce}),De=Re&&(r=Se[Re])!==null&&r!==void 0?r:"",Me=le?"loading":C,Ye=Qn(k,["navigate"]),qe=ce(q,te,ee,{[`${q}-${m}`]:m!=="default"&&m,[`${q}-${L}`]:L,[`${q}-dangerous`]:f,[`${q}-color-${A}`]:A,[`${q}-variant-${B}`]:B,[`${q}-${De}`]:De,[`${q}-icon-only`]:!y&&y!==0&&!!Me,[`${q}-background-ghost`]:E&&!ph(B),[`${q}-loading`]:le,[`${q}-two-chinese-chars`]:ue&&Y&&!le,[`${q}-block`]:I,[`${q}-rtl`]:M==="rtl",[`${q}-icon-end`]:w==="end"},we,b,x,V),He=Object.assign(Object.assign({},K),P),ze=ce(O==null?void 0:O.icon,z.icon),Ae=Object.assign(Object.assign({},(v==null?void 0:v.icon)||{}),U.icon||{}),Ie=C&&!le?be.createElement(qy,{prefixCls:q,className:ze,style:Ae},C):a&&typeof a=="object"&&a.icon?be.createElement(qy,{prefixCls:q,className:ze,style:Ae},a.icon):be.createElement(D3,{existIcon:!!C,prefixCls:q,loading:le,mount:Le.current}),Ve=y||y===0?T3(y,Ee&&Y):null;if(Ye.href!==void 0)return X(be.createElement("a",Object.assign({},Ye,{className:ce(qe,{[`${q}-disabled`]:ie}),href:ie?void 0:Ye.href,style:He,onClick:Ne,ref:xe,tabIndex:ie?-1:0}),Ie,Ve));let ye=be.createElement("button",Object.assign({},k,{type:_,className:qe,style:He,onClick:Ne,disabled:ie,ref:xe}),Ie,Ve,we&&be.createElement(q6,{prefixCls:q}));return ph(B)||(ye=be.createElement(yd,{component:"Button",disabled:le},ye)),X(ye)}),bn=Q6;bn.Group=k3;bn.__ANT_BUTTON=!0;var i2=i.createContext(null),w1=[];function J6(e,t){var n=i.useState(function(){if(!aa())return null;var b=document.createElement("div");return b}),r=se(n,1),a=r[0],o=i.useRef(!1),l=i.useContext(i2),c=i.useState(w1),d=se(c,2),f=d[0],m=d[1],p=l||(o.current?void 0:function(b){m(function(x){var y=[b].concat(Te(x));return y})});function v(){a.parentElement||document.body.appendChild(a),o.current=!0}function h(){var b;(b=a.parentElement)===null||b===void 0||b.removeChild(a),o.current=!1}return hn(function(){return e?l?l(v):v():h(),h},[e]),hn(function(){f.length&&(f.forEach(function(b){return b()}),m(w1))},[f]),[a,p]}var yh;function l2(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 a,o;if(e){var l=getComputedStyle(e);r.scrollbarColor=l.scrollbarColor,r.scrollbarWidth=l.scrollbarWidth;var c=getComputedStyle(e,"::-webkit-scrollbar"),d=parseInt(c.width,10),f=parseInt(c.height,10);try{var m=d?"width: ".concat(c.width,";"):"",p=f?"height: ".concat(c.height,";"):"";gi(` +#`.concat(t,`::-webkit-scrollbar { +`).concat(m,` +`).concat(p,` +}`),t)}catch(b){console.error(b),a=d,o=f}}document.body.appendChild(n);var v=e&&a&&!isNaN(a)?a:n.offsetWidth-n.clientWidth,h=e&&o&&!isNaN(o)?o:n.offsetHeight-n.clientHeight;return document.body.removeChild(n),Vu(t),{width:v,height:h}}function $1(e){return typeof document>"u"?0:(yh===void 0&&(yh=l2()),yh.width)}function Yy(e){return typeof document>"u"||!e||!(e instanceof Element)?{width:0,height:0}:l2(e)}function Z6(){return document.body.scrollHeight>(window.innerHeight||document.documentElement.clientHeight)&&window.innerWidth>document.body.offsetWidth}var eF="rc-util-locker-".concat(Date.now()),E1=0;function tF(e){var t=!!e,n=i.useState(function(){return E1+=1,"".concat(eF,"_").concat(E1)}),r=se(n,1),a=r[0];hn(function(){if(t){var o=Yy(document.body).width,l=Z6();gi(` +html body { + overflow-y: hidden; + `.concat(l?"width: calc(100% - ".concat(o,"px);"):"",` +}`),a)}else Vu(a);return function(){Vu(a)}},[t,a])}var nF=!1;function rF(e){return nF}var _1=function(t){return t===!1?!1:!aa()||!t?null:typeof t=="string"?document.querySelector(t):typeof t=="function"?t():t},s2=i.forwardRef(function(e,t){var n=e.open,r=e.autoLock,a=e.getContainer;e.debug;var o=e.autoDestroy,l=o===void 0?!0:o,c=e.children,d=i.useState(n),f=se(d,2),m=f[0],p=f[1],v=m||n;i.useEffect(function(){(l||n)&&p(n)},[n,l]);var h=i.useState(function(){return _1(a)}),b=se(h,2),x=b[0],y=b[1];i.useEffect(function(){var L=_1(a);y(L??null)});var C=J6(v&&!x),w=se(C,2),E=w[0],I=w[1],_=x??E;tF(r&&n&&aa()&&(_===E||_===document.body));var O=null;if(c&&Io(c)&&t){var P=c;O=P.ref}var j=dl(O,t);if(!v||!aa()||x===void 0)return null;var R=_===!1||rF(),k=c;return t&&(k=i.cloneElement(c,{ref:j})),i.createElement(i2.Provider,{value:I},R?k:_o.createPortal(k,_))});function aF(){var e=Z({},dd);return e.useId}var I1=0,O1=aF();const pb=O1?function(t){var n=O1();return t||n}:function(t){var n=i.useState("ssr-id"),r=se(n,2),a=r[0],o=r[1];return i.useEffect(function(){var l=I1;I1+=1,o("rc_unique_".concat(l))},[]),t||a};var Dl="RC_FORM_INTERNAL_HOOKS",tr=function(){or(!1,"Can not find FormContext. Please make sure you wrap Field under Form.")},Ul=i.createContext({getFieldValue:tr,getFieldsValue:tr,getFieldError:tr,getFieldWarning:tr,getFieldsError:tr,isFieldsTouched:tr,isFieldTouched:tr,isFieldValidating:tr,isFieldsValidating:tr,resetFields:tr,setFields:tr,setFieldValue:tr,setFieldsValue:tr,validateFields:tr,submit:tr,getInternalHooks:function(){return tr(),{dispatch:tr,initEntityValue:tr,registerField:tr,useSubscribe:tr,setInitialValues:tr,destroyForm:tr,setCallbacks:tr,registerWatch:tr,getFields:tr,setValidateMessages:tr,setPreserve:tr,getInitialValue:tr}}}),Ju=i.createContext(null);function Gy(e){return e==null?[]:Array.isArray(e)?e:[e]}function oF(e){return e&&!!e._init}function Xy(){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 Qy=Xy();function iF(e){try{return Function.toString.call(e).indexOf("[native code]")!==-1}catch{return typeof e=="function"}}function lF(e,t,n){if(Y0())return Reflect.construct.apply(null,arguments);var r=[null];r.push.apply(r,t);var a=new(e.bind.apply(e,r));return n&&zu(a,n.prototype),a}function Jy(e){var t=typeof Map=="function"?new Map:void 0;return Jy=function(r){if(r===null||!iF(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,a)}function a(){return lF(r,arguments,Bu(this).constructor)}return a.prototype=Object.create(r.prototype,{constructor:{value:a,enumerable:!1,writable:!0,configurable:!0}}),zu(a,r)},Jy(e)}var sF=/%[sdj%]/g,cF=function(){};function Zy(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 Va(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r=o)return c;switch(c){case"%s":return String(n[a++]);case"%d":return Number(n[a++]);case"%j":try{return JSON.stringify(n[a++])}catch{return"[Circular]"}break;default:return c}});return l}return e}function uF(e){return e==="string"||e==="url"||e==="hex"||e==="email"||e==="date"||e==="pattern"}function Wr(e,t){return!!(e==null||t==="array"&&Array.isArray(e)&&!e.length||uF(t)&&typeof e=="string"&&!e)}function dF(e,t,n){var r=[],a=0,o=e.length;function l(c){r.push.apply(r,Te(c||[])),a++,a===o&&n(r)}e.forEach(function(c){t(c,l)})}function R1(e,t,n){var r=0,a=e.length;function o(l){if(l&&l.length){n(l);return}var c=r;r=r+1,ct.max?a.push(Va(o.messages[p].max,t.fullField,t.max)):c&&d&&(mt.max)&&a.push(Va(o.messages[p].range,t.fullField,t.min,t.max))},c2=function(t,n,r,a,o,l){t.required&&(!r.hasOwnProperty(t.field)||Wr(n,l||t.type))&&a.push(Va(o.messages.required,t.fullField))},qf;const bF=function(){if(qf)return qf;var e="[a-fA-F\\d:]",t=function(O){return O&&O.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}",a=["(?:".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,})?",l="(?:".concat(a.join("|"),")").concat(o),c=new RegExp("(?:^".concat(n,"$)|(?:^").concat(l,"$)")),d=new RegExp("^".concat(n,"$")),f=new RegExp("^".concat(l,"$")),m=function(O){return O&&O.exact?c:new RegExp("(?:".concat(t(O)).concat(n).concat(t(O),")|(?:").concat(t(O)).concat(l).concat(t(O),")"),"g")};m.v4=function(_){return _&&_.exact?d:new RegExp("".concat(t(_)).concat(n).concat(t(_)),"g")},m.v6=function(_){return _&&_.exact?f:new RegExp("".concat(t(_)).concat(l).concat(t(_)),"g")};var p="(?:(?:[a-z]+:)?//)",v="(?:\\S+(?::\\S*)?@)?",h=m.v4().source,b=m.v6().source,x="(?:(?:[a-z\\u00a1-\\uffff0-9][-_]*)*[a-z\\u00a1-\\uffff0-9]+)",y="(?:\\.(?:[a-z\\u00a1-\\uffff0-9]-*)*[a-z\\u00a1-\\uffff0-9]+)*",C="(?:\\.(?:[a-z\\u00a1-\\uffff]{2,}))",w="(?::\\d{2,5})?",E='(?:[/?#][^\\s"]*)?',I="(?:".concat(p,"|www\\.)").concat(v,"(?:localhost|").concat(h,"|").concat(b,"|").concat(x).concat(y).concat(C,")").concat(w).concat(E);return qf=new RegExp("(?:^".concat(I,"$)"),"i"),qf};var k1={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},bu={integer:function(t){return bu.number(t)&&parseInt(t,10)===t},float:function(t){return bu.number(t)&&!bu.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 wt(t)==="object"&&!bu.array(t)},method:function(t){return typeof t=="function"},email:function(t){return typeof t=="string"&&t.length<=320&&!!t.match(k1.email)},url:function(t){return typeof t=="string"&&t.length<=2048&&!!t.match(bF())},hex:function(t){return typeof t=="string"&&!!t.match(k1.hex)}},xF=function(t,n,r,a,o){if(t.required&&n===void 0){c2(t,n,r,a,o);return}var l=["integer","float","array","regexp","object","method","email","number","date","url","hex"],c=t.type;l.indexOf(c)>-1?bu[c](n)||a.push(Va(o.messages.types[c],t.fullField,t.type)):c&&wt(n)!==t.type&&a.push(Va(o.messages.types[c],t.fullField,t.type))},SF=function(t,n,r,a,o){(/^\s+$/.test(n)||n==="")&&a.push(Va(o.messages.whitespace,t.fullField))};const Dn={required:c2,whitespace:SF,type:xF,range:yF,enum:gF,pattern:hF};var CF=function(t,n,r,a,o){var l=[],c=t.required||!t.required&&a.hasOwnProperty(t.field);if(c){if(Wr(n)&&!t.required)return r();Dn.required(t,n,a,l,o)}r(l)},wF=function(t,n,r,a,o){var l=[],c=t.required||!t.required&&a.hasOwnProperty(t.field);if(c){if(n==null&&!t.required)return r();Dn.required(t,n,a,l,o,"array"),n!=null&&(Dn.type(t,n,a,l,o),Dn.range(t,n,a,l,o))}r(l)},$F=function(t,n,r,a,o){var l=[],c=t.required||!t.required&&a.hasOwnProperty(t.field);if(c){if(Wr(n)&&!t.required)return r();Dn.required(t,n,a,l,o),n!==void 0&&Dn.type(t,n,a,l,o)}r(l)},EF=function(t,n,r,a,o){var l=[],c=t.required||!t.required&&a.hasOwnProperty(t.field);if(c){if(Wr(n,"date")&&!t.required)return r();if(Dn.required(t,n,a,l,o),!Wr(n,"date")){var d;n instanceof Date?d=n:d=new Date(n),Dn.type(t,d,a,l,o),d&&Dn.range(t,d.getTime(),a,l,o)}}r(l)},_F="enum",IF=function(t,n,r,a,o){var l=[],c=t.required||!t.required&&a.hasOwnProperty(t.field);if(c){if(Wr(n)&&!t.required)return r();Dn.required(t,n,a,l,o),n!==void 0&&Dn[_F](t,n,a,l,o)}r(l)},OF=function(t,n,r,a,o){var l=[],c=t.required||!t.required&&a.hasOwnProperty(t.field);if(c){if(Wr(n)&&!t.required)return r();Dn.required(t,n,a,l,o),n!==void 0&&(Dn.type(t,n,a,l,o),Dn.range(t,n,a,l,o))}r(l)},RF=function(t,n,r,a,o){var l=[],c=t.required||!t.required&&a.hasOwnProperty(t.field);if(c){if(Wr(n)&&!t.required)return r();Dn.required(t,n,a,l,o),n!==void 0&&(Dn.type(t,n,a,l,o),Dn.range(t,n,a,l,o))}r(l)},PF=function(t,n,r,a,o){var l=[],c=t.required||!t.required&&a.hasOwnProperty(t.field);if(c){if(Wr(n)&&!t.required)return r();Dn.required(t,n,a,l,o),n!==void 0&&Dn.type(t,n,a,l,o)}r(l)},NF=function(t,n,r,a,o){var l=[],c=t.required||!t.required&&a.hasOwnProperty(t.field);if(c){if(n===""&&(n=void 0),Wr(n)&&!t.required)return r();Dn.required(t,n,a,l,o),n!==void 0&&(Dn.type(t,n,a,l,o),Dn.range(t,n,a,l,o))}r(l)},jF=function(t,n,r,a,o){var l=[],c=t.required||!t.required&&a.hasOwnProperty(t.field);if(c){if(Wr(n)&&!t.required)return r();Dn.required(t,n,a,l,o),n!==void 0&&Dn.type(t,n,a,l,o)}r(l)},kF=function(t,n,r,a,o){var l=[],c=t.required||!t.required&&a.hasOwnProperty(t.field);if(c){if(Wr(n,"string")&&!t.required)return r();Dn.required(t,n,a,l,o),Wr(n,"string")||Dn.pattern(t,n,a,l,o)}r(l)},MF=function(t,n,r,a,o){var l=[],c=t.required||!t.required&&a.hasOwnProperty(t.field);if(c){if(Wr(n)&&!t.required)return r();Dn.required(t,n,a,l,o),Wr(n)||Dn.type(t,n,a,l,o)}r(l)},TF=function(t,n,r,a,o){var l=[],c=Array.isArray(n)?"array":wt(n);Dn.required(t,n,a,l,o,c),r(l)},DF=function(t,n,r,a,o){var l=[],c=t.required||!t.required&&a.hasOwnProperty(t.field);if(c){if(Wr(n,"string")&&!t.required)return r();Dn.required(t,n,a,l,o,"string"),Wr(n,"string")||(Dn.type(t,n,a,l,o),Dn.range(t,n,a,l,o),Dn.pattern(t,n,a,l,o),t.whitespace===!0&&Dn.whitespace(t,n,a,l,o))}r(l)},bh=function(t,n,r,a,o){var l=t.type,c=[],d=t.required||!t.required&&a.hasOwnProperty(t.field);if(d){if(Wr(n,l)&&!t.required)return r();Dn.required(t,n,a,c,o,l),Wr(n,l)||Dn.type(t,n,a,c,o)}r(c)};const Ou={string:DF,method:PF,number:NF,boolean:$F,regexp:MF,integer:RF,float:OF,array:wF,object:jF,enum:IF,pattern:kF,date:EF,url:bh,hex:bh,email:bh,required:TF,any:CF};var xd=function(){function e(t){ur(this,e),G(this,"rules",null),G(this,"_messages",Qy),this.define(t)}return dr(e,[{key:"define",value:function(n){var r=this;if(!n)throw new Error("Cannot configure a schema with no rules");if(wt(n)!=="object"||Array.isArray(n))throw new Error("Rules must be an object");this.rules={},Object.keys(n).forEach(function(a){var o=n[a];r.rules[a]=Array.isArray(o)?o:[o]})}},{key:"messages",value:function(n){return n&&(this._messages=j1(Xy(),n)),this._messages}},{key:"validate",value:function(n){var r=this,a=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},o=arguments.length>2&&arguments[2]!==void 0?arguments[2]:function(){},l=n,c=a,d=o;if(typeof c=="function"&&(d=c,c={}),!this.rules||Object.keys(this.rules).length===0)return d&&d(null,l),Promise.resolve(l);function f(b){var x=[],y={};function C(E){if(Array.isArray(E)){var I;x=(I=x).concat.apply(I,Te(E))}else x.push(E)}for(var w=0;w0&&arguments[0]!==void 0?arguments[0]:[],j=Array.isArray(P)?P:[P];!c.suppressWarning&&j.length&&e.warning("async-validator:",j),j.length&&y.message!==void 0&&(j=[].concat(y.message));var R=j.map(N1(y,l));if(c.first&&R.length)return h[y.field]=1,x(R);if(!C)x(R);else{if(y.required&&!b.value)return y.message!==void 0?R=[].concat(y.message).map(N1(y,l)):c.error&&(R=[c.error(y,Va(c.messages.required,y.field))]),x(R);var k={};y.defaultField&&Object.keys(b.value).map(function(B){k[B]=y.defaultField}),k=Z(Z({},k),b.rule.fields);var L={};Object.keys(k).forEach(function(B){var F=k[B],A=Array.isArray(F)?F:[F];L[B]=A.map(w.bind(null,B))});var W=new e(L);W.messages(c.messages),b.rule.options&&(b.rule.options.messages=c.messages,b.rule.options.error=c.error),W.validate(b.value,b.rule.options||c,function(B){var F=[];R&&R.length&&F.push.apply(F,Te(R)),B&&B.length&&F.push.apply(F,Te(B)),x(F.length?F:null)})}}var I;if(y.asyncValidator)I=y.asyncValidator(y,b.value,E,b.source,c);else if(y.validator){try{I=y.validator(y,b.value,E,b.source,c)}catch(P){var _,O;(_=(O=console).error)===null||_===void 0||_.call(O,P),c.suppressValidatorError||setTimeout(function(){throw P},0),E(P.message)}I===!0?E():I===!1?E(typeof y.message=="function"?y.message(y.fullField||y.field):y.message||"".concat(y.fullField||y.field," fails")):I instanceof Array?E(I):I instanceof Error&&E(I.message)}I&&I.then&&I.then(function(){return E()},function(P){return E(P)})},function(b){f(b)},l)}},{key:"getType",value:function(n){if(n.type===void 0&&n.pattern instanceof RegExp&&(n.type="pattern"),typeof n.validator!="function"&&n.type&&!Ou.hasOwnProperty(n.type))throw new Error(Va("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),a=r.indexOf("message");return a!==-1&&r.splice(a,1),r.length===1&&r[0]==="required"?Ou.required:Ou[this.getType(n)]||void 0}}]),e}();G(xd,"register",function(t,n){if(typeof n!="function")throw new Error("Cannot register a validator by type, validator is not a function");Ou[t]=n});G(xd,"warning",cF);G(xd,"messages",Qy);G(xd,"validators",Ou);var za="'${name}' is not a valid ${type}",u2={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:za,method:za,array:za,object:za,number:za,date:za,boolean:za,integer:za,float:za,regexp:za,email:za,url:za,hex:za},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}"}},M1=xd;function FF(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 T1="CODE_LOGIC_ERROR";function e0(e,t,n,r,a){return t0.apply(this,arguments)}function t0(){return t0=Ha(ar().mark(function e(t,n,r,a,o){var l,c,d,f,m,p,v,h,b;return ar().wrap(function(y){for(;;)switch(y.prev=y.next){case 0:return l=Z({},r),delete l.ruleIndex,M1.warning=function(){},l.validator&&(c=l.validator,l.validator=function(){try{return c.apply(void 0,arguments)}catch(C){return console.error(C),Promise.reject(T1)}}),d=null,l&&l.type==="array"&&l.defaultField&&(d=l.defaultField,delete l.defaultField),f=new M1(G({},t,[l])),m=Bs(u2,a.validateMessages),f.messages(m),p=[],y.prev=10,y.next=13,Promise.resolve(f.validate(G({},t,n),Z({},a)));case 13:y.next=18;break;case 15:y.prev=15,y.t0=y.catch(10),y.t0.errors&&(p=y.t0.errors.map(function(C,w){var E=C.message,I=E===T1?m.default:E;return i.isValidElement(I)?i.cloneElement(I,{key:"error_".concat(w)}):I}));case 18:if(!(!p.length&&d)){y.next=23;break}return y.next=21,Promise.all(n.map(function(C,w){return e0("".concat(t,".").concat(w),C,d,a,o)}));case 21:return v=y.sent,y.abrupt("return",v.reduce(function(C,w){return[].concat(Te(C),Te(w))},[]));case 23:return h=Z(Z({},r),{},{name:t,enum:(r.enum||[]).join(", ")},o),b=p.map(function(C){return typeof C=="string"?FF(C,h):C}),y.abrupt("return",b);case 26:case"end":return y.stop()}},e,null,[[10,15]])})),t0.apply(this,arguments)}function LF(e,t,n,r,a,o){var l=e.join("."),c=n.map(function(m,p){var v=m.validator,h=Z(Z({},m),{},{ruleIndex:p});return v&&(h.validator=function(b,x,y){var C=!1,w=function(){for(var _=arguments.length,O=new Array(_),P=0;P<_;P++)O[P]=arguments[P];Promise.resolve().then(function(){or(!C,"Your validator function has already return a promise. `callback` will be ignored."),C||y.apply(void 0,O)})},E=v(b,x,w);C=E&&typeof E.then=="function"&&typeof E.catch=="function",or(C,"`callback` is deprecated. Please return a promise instead."),C&&E.then(function(){y()}).catch(function(I){y(I||" ")})}),h}).sort(function(m,p){var v=m.warningOnly,h=m.ruleIndex,b=p.warningOnly,x=p.ruleIndex;return!!v==!!b?h-x:v?1:-1}),d;if(a===!0)d=new Promise(function(){var m=Ha(ar().mark(function p(v,h){var b,x,y;return ar().wrap(function(w){for(;;)switch(w.prev=w.next){case 0:b=0;case 1:if(!(b2&&arguments[2]!==void 0?arguments[2]:!1;return e&&e.some(function(r){return d2(t,r,n)})}function d2(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,a){return e[a]===r})}function BF(e,t){if(e===t)return!0;if(!e&&t||e&&!t||!e||!t||wt(e)!=="object"||wt(t)!=="object")return!1;var n=Object.keys(e),r=Object.keys(t),a=new Set([].concat(n,r));return Te(a).every(function(o){var l=e[o],c=t[o];return typeof l=="function"&&typeof c=="function"?!0:l===c})}function HF(e){var t=arguments.length<=1?void 0:arguments[1];return t&&t.target&&wt(t.target)==="object"&&e in t.target?t.target[e]:t}function F1(e,t,n){var r=e.length;if(t<0||t>=r||n<0||n>=r)return e;var a=e[t],o=t-n;return o>0?[].concat(Te(e.slice(0,n)),[a],Te(e.slice(n,t)),Te(e.slice(t+1,r))):o<0?[].concat(Te(e.slice(0,t)),Te(e.slice(t+1,n+1)),[a],Te(e.slice(n+1,r))):e}var VF=["name"],Za=[];function xh(e,t,n,r,a,o){return typeof e=="function"?e(t,n,"source"in o?{source:o.source}:{}):r!==a}var vb=function(e){so(n,e);var t=co(n);function n(r){var a;if(ur(this,n),a=t.call(this,r),G(pt(a),"state",{resetCount:0}),G(pt(a),"cancelRegisterFunc",null),G(pt(a),"mounted",!1),G(pt(a),"touched",!1),G(pt(a),"dirty",!1),G(pt(a),"validatePromise",void 0),G(pt(a),"prevValidating",void 0),G(pt(a),"errors",Za),G(pt(a),"warnings",Za),G(pt(a),"cancelRegister",function(){var d=a.props,f=d.preserve,m=d.isListField,p=d.name;a.cancelRegisterFunc&&a.cancelRegisterFunc(m,f,Nr(p)),a.cancelRegisterFunc=null}),G(pt(a),"getNamePath",function(){var d=a.props,f=d.name,m=d.fieldContext,p=m.prefixName,v=p===void 0?[]:p;return f!==void 0?[].concat(Te(v),Te(f)):[]}),G(pt(a),"getRules",function(){var d=a.props,f=d.rules,m=f===void 0?[]:f,p=d.fieldContext;return m.map(function(v){return typeof v=="function"?v(p):v})}),G(pt(a),"refresh",function(){a.mounted&&a.setState(function(d){var f=d.resetCount;return{resetCount:f+1}})}),G(pt(a),"metaCache",null),G(pt(a),"triggerMetaEvent",function(d){var f=a.props.onMetaChange;if(f){var m=Z(Z({},a.getMeta()),{},{destroy:d});Ko(a.metaCache,m)||f(m),a.metaCache=m}else a.metaCache=null}),G(pt(a),"onStoreChange",function(d,f,m){var p=a.props,v=p.shouldUpdate,h=p.dependencies,b=h===void 0?[]:h,x=p.onReset,y=m.store,C=a.getNamePath(),w=a.getValue(d),E=a.getValue(y),I=f&&qs(f,C);switch(m.type==="valueUpdate"&&m.source==="external"&&!Ko(w,E)&&(a.touched=!0,a.dirty=!0,a.validatePromise=null,a.errors=Za,a.warnings=Za,a.triggerMetaEvent()),m.type){case"reset":if(!f||I){a.touched=!1,a.dirty=!1,a.validatePromise=void 0,a.errors=Za,a.warnings=Za,a.triggerMetaEvent(),x==null||x(),a.refresh();return}break;case"remove":{if(v&&xh(v,d,y,w,E,m)){a.reRender();return}break}case"setField":{var _=m.data;if(I){"touched"in _&&(a.touched=_.touched),"validating"in _&&!("originRCField"in _)&&(a.validatePromise=_.validating?Promise.resolve([]):null),"errors"in _&&(a.errors=_.errors||Za),"warnings"in _&&(a.warnings=_.warnings||Za),a.dirty=!0,a.triggerMetaEvent(),a.reRender();return}else if("value"in _&&qs(f,C,!0)){a.reRender();return}if(v&&!C.length&&xh(v,d,y,w,E,m)){a.reRender();return}break}case"dependenciesUpdate":{var O=b.map(Nr);if(O.some(function(P){return qs(m.relatedFields,P)})){a.reRender();return}break}default:if(I||(!b.length||C.length||v)&&xh(v,d,y,w,E,m)){a.reRender();return}break}v===!0&&a.reRender()}),G(pt(a),"validateRules",function(d){var f=a.getNamePath(),m=a.getValue(),p=d||{},v=p.triggerName,h=p.validateOnly,b=h===void 0?!1:h,x=Promise.resolve().then(Ha(ar().mark(function y(){var C,w,E,I,_,O,P;return ar().wrap(function(R){for(;;)switch(R.prev=R.next){case 0:if(a.mounted){R.next=2;break}return R.abrupt("return",[]);case 2:if(C=a.props,w=C.validateFirst,E=w===void 0?!1:w,I=C.messageVariables,_=C.validateDebounce,O=a.getRules(),v&&(O=O.filter(function(k){return k}).filter(function(k){var L=k.validateTrigger;if(!L)return!0;var W=Gy(L);return W.includes(v)})),!(_&&v)){R.next=10;break}return R.next=8,new Promise(function(k){setTimeout(k,_)});case 8:if(a.validatePromise===x){R.next=10;break}return R.abrupt("return",[]);case 10:return P=LF(f,m,O,d,E,I),P.catch(function(k){return k}).then(function(){var k=arguments.length>0&&arguments[0]!==void 0?arguments[0]:Za;if(a.validatePromise===x){var L;a.validatePromise=null;var W=[],B=[];(L=k.forEach)===null||L===void 0||L.call(k,function(F){var A=F.rule.warningOnly,T=F.errors,M=T===void 0?Za:T;A?B.push.apply(B,Te(M)):W.push.apply(W,Te(M))}),a.errors=W,a.warnings=B,a.triggerMetaEvent(),a.reRender()}}),R.abrupt("return",P);case 13:case"end":return R.stop()}},y)})));return b||(a.validatePromise=x,a.dirty=!0,a.errors=Za,a.warnings=Za,a.triggerMetaEvent(),a.reRender()),x}),G(pt(a),"isFieldValidating",function(){return!!a.validatePromise}),G(pt(a),"isFieldTouched",function(){return a.touched}),G(pt(a),"isFieldDirty",function(){if(a.dirty||a.props.initialValue!==void 0)return!0;var d=a.props.fieldContext,f=d.getInternalHooks(Dl),m=f.getInitialValue;return m(a.getNamePath())!==void 0}),G(pt(a),"getErrors",function(){return a.errors}),G(pt(a),"getWarnings",function(){return a.warnings}),G(pt(a),"isListField",function(){return a.props.isListField}),G(pt(a),"isList",function(){return a.props.isList}),G(pt(a),"isPreserve",function(){return a.props.preserve}),G(pt(a),"getMeta",function(){a.prevValidating=a.isFieldValidating();var d={touched:a.isFieldTouched(),validating:a.prevValidating,errors:a.errors,warnings:a.warnings,name:a.getNamePath(),validated:a.validatePromise===null};return d}),G(pt(a),"getOnlyChild",function(d){if(typeof d=="function"){var f=a.getMeta();return Z(Z({},a.getOnlyChild(d(a.getControlled(),f,a.props.fieldContext))),{},{isFunction:!0})}var m=ga(d);return m.length!==1||!i.isValidElement(m[0])?{child:m,isFunction:!1}:{child:m[0],isFunction:!1}}),G(pt(a),"getValue",function(d){var f=a.props.fieldContext.getFieldsValue,m=a.getNamePath();return Ca(d||f(!0),m)}),G(pt(a),"getControlled",function(){var d=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},f=a.props,m=f.name,p=f.trigger,v=f.validateTrigger,h=f.getValueFromEvent,b=f.normalize,x=f.valuePropName,y=f.getValueProps,C=f.fieldContext,w=v!==void 0?v:C.validateTrigger,E=a.getNamePath(),I=C.getInternalHooks,_=C.getFieldsValue,O=I(Dl),P=O.dispatch,j=a.getValue(),R=y||function(F){return G({},x,F)},k=d[p],L=m!==void 0?R(j):{},W=Z(Z({},d),L);W[p]=function(){a.touched=!0,a.dirty=!0,a.triggerMetaEvent();for(var F,A=arguments.length,T=new Array(A),M=0;M=0&&k<=L.length?(m.keys=[].concat(Te(m.keys.slice(0,k)),[m.id],Te(m.keys.slice(k))),E([].concat(Te(L.slice(0,k)),[R],Te(L.slice(k))))):(m.keys=[].concat(Te(m.keys),[m.id]),E([].concat(Te(L),[R]))),m.id+=1},remove:function(R){var k=_(),L=new Set(Array.isArray(R)?R:[R]);L.size<=0||(m.keys=m.keys.filter(function(W,B){return!L.has(B)}),E(k.filter(function(W,B){return!L.has(B)})))},move:function(R,k){if(R!==k){var L=_();R<0||R>=L.length||k<0||k>=L.length||(m.keys=F1(m.keys,R,k),E(F1(L,R,k)))}}},P=w||[];return Array.isArray(P)||(P=[]),r(P.map(function(j,R){var k=m.keys[R];return k===void 0&&(m.keys[R]=m.id,k=m.keys[R],m.id+=1),{name:R,key:k,isListField:!0}}),O,y)})))}function WF(e){var t=!1,n=e.length,r=[];return e.length?new Promise(function(a,o){e.forEach(function(l,c){l.catch(function(d){return t=!0,d}).then(function(d){n-=1,r[c]=d,!(n>0)&&(t&&o(r),a(r))})})}):Promise.resolve([])}var m2="__@field_split__";function Sh(e){return e.map(function(t){return"".concat(wt(t),":").concat(t)}).join(m2)}var Ns=function(){function e(){ur(this,e),G(this,"kvs",new Map)}return dr(e,[{key:"set",value:function(n,r){this.kvs.set(Sh(n),r)}},{key:"get",value:function(n){return this.kvs.get(Sh(n))}},{key:"update",value:function(n,r){var a=this.get(n),o=r(a);o?this.set(n,o):this.delete(n)}},{key:"delete",value:function(n){this.kvs.delete(Sh(n))}},{key:"map",value:function(n){return Te(this.kvs.entries()).map(function(r){var a=se(r,2),o=a[0],l=a[1],c=o.split(m2);return n({key:c.map(function(d){var f=d.match(/^([^:]*):(.*)$/),m=se(f,3),p=m[1],v=m[2];return p==="number"?Number(v):v}),value:l})})}},{key:"toJSON",value:function(){var n={};return this.map(function(r){var a=r.key,o=r.value;return n[a.join(".")]=o,null}),n}}]),e}(),KF=["name"],UF=dr(function e(t){var n=this;ur(this,e),G(this,"formHooked",!1),G(this,"forceRootUpdate",void 0),G(this,"subscribable",!0),G(this,"store",{}),G(this,"fieldEntities",[]),G(this,"initialValues",{}),G(this,"callbacks",{}),G(this,"validateMessages",null),G(this,"preserve",null),G(this,"lastValidatePromise",null),G(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}}),G(this,"getInternalHooks",function(r){return r===Dl?(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}):(or(!1,"`getInternalHooks` is internal usage. Should not call directly."),null)}),G(this,"useSubscribe",function(r){n.subscribable=r}),G(this,"prevWithoutPreserves",null),G(this,"setInitialValues",function(r,a){if(n.initialValues=r||{},a){var o,l=Bs(r,n.store);(o=n.prevWithoutPreserves)===null||o===void 0||o.map(function(c){var d=c.key;l=no(l,d,Ca(r,d))}),n.prevWithoutPreserves=null,n.updateStore(l)}}),G(this,"destroyForm",function(r){if(r)n.updateStore({});else{var a=new Ns;n.getFieldEntities(!0).forEach(function(o){n.isMergedPreserve(o.isPreserve())||a.set(o.getNamePath(),!0)}),n.prevWithoutPreserves=a}}),G(this,"getInitialValue",function(r){var a=Ca(n.initialValues,r);return r.length?Bs(a):a}),G(this,"setCallbacks",function(r){n.callbacks=r}),G(this,"setValidateMessages",function(r){n.validateMessages=r}),G(this,"setPreserve",function(r){n.preserve=r}),G(this,"watchList",[]),G(this,"registerWatch",function(r){return n.watchList.push(r),function(){n.watchList=n.watchList.filter(function(a){return a!==r})}}),G(this,"notifyWatch",function(){var r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];if(n.watchList.length){var a=n.getFieldsValue(),o=n.getFieldsValue(!0);n.watchList.forEach(function(l){l(a,o,r)})}}),G(this,"timeoutId",null),G(this,"warningUnhooked",function(){}),G(this,"updateStore",function(r){n.store=r}),G(this,"getFieldEntities",function(){var r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1;return r?n.fieldEntities.filter(function(a){return a.getNamePath().length}):n.fieldEntities}),G(this,"getFieldsMap",function(){var r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1,a=new Ns;return n.getFieldEntities(r).forEach(function(o){var l=o.getNamePath();a.set(l,o)}),a}),G(this,"getFieldEntitiesForNamePathList",function(r){if(!r)return n.getFieldEntities(!0);var a=n.getFieldsMap(!0);return r.map(function(o){var l=Nr(o);return a.get(l)||{INVALIDATE_NAME_PATH:Nr(o)}})}),G(this,"getFieldsValue",function(r,a){n.warningUnhooked();var o,l,c;if(r===!0||Array.isArray(r)?(o=r,l=a):r&&wt(r)==="object"&&(c=r.strict,l=r.filter),o===!0&&!l)return n.store;var d=n.getFieldEntitiesForNamePathList(Array.isArray(o)?o:null),f=[];return d.forEach(function(m){var p,v,h="INVALIDATE_NAME_PATH"in m?m.INVALIDATE_NAME_PATH:m.getNamePath();if(c){var b,x;if((b=(x=m).isList)!==null&&b!==void 0&&b.call(x))return}else if(!o&&(p=(v=m).isListField)!==null&&p!==void 0&&p.call(v))return;if(!l)f.push(h);else{var y="getMeta"in m?m.getMeta():null;l(y)&&f.push(h)}}),D1(n.store,f.map(Nr))}),G(this,"getFieldValue",function(r){n.warningUnhooked();var a=Nr(r);return Ca(n.store,a)}),G(this,"getFieldsError",function(r){n.warningUnhooked();var a=n.getFieldEntitiesForNamePathList(r);return a.map(function(o,l){return o&&!("INVALIDATE_NAME_PATH"in o)?{name:o.getNamePath(),errors:o.getErrors(),warnings:o.getWarnings()}:{name:Nr(r[l]),errors:[],warnings:[]}})}),G(this,"getFieldError",function(r){n.warningUnhooked();var a=Nr(r),o=n.getFieldsError([a])[0];return o.errors}),G(this,"getFieldWarning",function(r){n.warningUnhooked();var a=Nr(r),o=n.getFieldsError([a])[0];return o.warnings}),G(this,"isFieldsTouched",function(){n.warningUnhooked();for(var r=arguments.length,a=new Array(r),o=0;o0&&arguments[0]!==void 0?arguments[0]:{},a=new Ns,o=n.getFieldEntities(!0);o.forEach(function(d){var f=d.props.initialValue,m=d.getNamePath();if(f!==void 0){var p=a.get(m)||new Set;p.add({entity:d,value:f}),a.set(m,p)}});var l=function(f){f.forEach(function(m){var p=m.props.initialValue;if(p!==void 0){var v=m.getNamePath(),h=n.getInitialValue(v);if(h!==void 0)or(!1,"Form already set 'initialValues' with path '".concat(v.join("."),"'. Field can not overwrite it."));else{var b=a.get(v);if(b&&b.size>1)or(!1,"Multiple Field with path '".concat(v.join("."),"' set 'initialValue'. Can not decide which one to pick."));else if(b){var x=n.getFieldValue(v),y=m.isListField();!y&&(!r.skipExist||x===void 0)&&n.updateStore(no(n.store,v,Te(b)[0].value))}}}})},c;r.entities?c=r.entities:r.namePathList?(c=[],r.namePathList.forEach(function(d){var f=a.get(d);if(f){var m;(m=c).push.apply(m,Te(Te(f).map(function(p){return p.entity})))}})):c=o,l(c)}),G(this,"resetFields",function(r){n.warningUnhooked();var a=n.store;if(!r){n.updateStore(Bs(n.initialValues)),n.resetWithFieldInitialValue(),n.notifyObservers(a,null,{type:"reset"}),n.notifyWatch();return}var o=r.map(Nr);o.forEach(function(l){var c=n.getInitialValue(l);n.updateStore(no(n.store,l,c))}),n.resetWithFieldInitialValue({namePathList:o}),n.notifyObservers(a,o,{type:"reset"}),n.notifyWatch(o)}),G(this,"setFields",function(r){n.warningUnhooked();var a=n.store,o=[];r.forEach(function(l){var c=l.name,d=Kt(l,KF),f=Nr(c);o.push(f),"value"in d&&n.updateStore(no(n.store,f,d.value)),n.notifyObservers(a,[f],{type:"setField",data:l})}),n.notifyWatch(o)}),G(this,"getFields",function(){var r=n.getFieldEntities(!0),a=r.map(function(o){var l=o.getNamePath(),c=o.getMeta(),d=Z(Z({},c),{},{name:l,value:n.getFieldValue(l)});return Object.defineProperty(d,"originRCField",{value:!0}),d});return a}),G(this,"initEntityValue",function(r){var a=r.props.initialValue;if(a!==void 0){var o=r.getNamePath(),l=Ca(n.store,o);l===void 0&&n.updateStore(no(n.store,o,a))}}),G(this,"isMergedPreserve",function(r){var a=r!==void 0?r:n.preserve;return a??!0}),G(this,"registerField",function(r){n.fieldEntities.push(r);var a=r.getNamePath();if(n.notifyWatch([a]),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(l,c){var d=arguments.length>2&&arguments[2]!==void 0?arguments[2]:[];if(n.fieldEntities=n.fieldEntities.filter(function(p){return p!==r}),!n.isMergedPreserve(c)&&(!l||d.length>1)){var f=l?void 0:n.getInitialValue(a);if(a.length&&n.getFieldValue(a)!==f&&n.fieldEntities.every(function(p){return!d2(p.getNamePath(),a)})){var m=n.store;n.updateStore(no(m,a,f,!0)),n.notifyObservers(m,[a],{type:"remove"}),n.triggerDependenciesUpdate(m,a)}}n.notifyWatch([a])}}),G(this,"dispatch",function(r){switch(r.type){case"updateValue":{var a=r.namePath,o=r.value;n.updateValue(a,o);break}case"validateField":{var l=r.namePath,c=r.triggerName;n.validateFields([l],{triggerName:c});break}}}),G(this,"notifyObservers",function(r,a,o){if(n.subscribable){var l=Z(Z({},o),{},{store:n.getFieldsValue(!0)});n.getFieldEntities().forEach(function(c){var d=c.onStoreChange;d(r,a,l)})}else n.forceRootUpdate()}),G(this,"triggerDependenciesUpdate",function(r,a){var o=n.getDependencyChildrenFields(a);return o.length&&n.validateFields(o),n.notifyObservers(r,o,{type:"dependenciesUpdate",relatedFields:[a].concat(Te(o))}),o}),G(this,"updateValue",function(r,a){var o=Nr(r),l=n.store;n.updateStore(no(n.store,o,a)),n.notifyObservers(l,[o],{type:"valueUpdate",source:"internal"}),n.notifyWatch([o]);var c=n.triggerDependenciesUpdate(l,o),d=n.callbacks.onValuesChange;if(d){var f=D1(n.store,[o]);d(f,n.getFieldsValue())}n.triggerOnFieldsChange([o].concat(Te(c)))}),G(this,"setFieldsValue",function(r){n.warningUnhooked();var a=n.store;if(r){var o=Bs(n.store,r);n.updateStore(o)}n.notifyObservers(a,null,{type:"valueUpdate",source:"external"}),n.notifyWatch()}),G(this,"setFieldValue",function(r,a){n.setFields([{name:r,value:a,errors:[],warnings:[]}])}),G(this,"getDependencyChildrenFields",function(r){var a=new Set,o=[],l=new Ns;n.getFieldEntities().forEach(function(d){var f=d.props.dependencies;(f||[]).forEach(function(m){var p=Nr(m);l.update(p,function(){var v=arguments.length>0&&arguments[0]!==void 0?arguments[0]:new Set;return v.add(d),v})})});var c=function d(f){var m=l.get(f)||new Set;m.forEach(function(p){if(!a.has(p)){a.add(p);var v=p.getNamePath();p.isFieldDirty()&&v.length&&(o.push(v),d(v))}})};return c(r),o}),G(this,"triggerOnFieldsChange",function(r,a){var o=n.callbacks.onFieldsChange;if(o){var l=n.getFields();if(a){var c=new Ns;a.forEach(function(f){var m=f.name,p=f.errors;c.set(m,p)}),l.forEach(function(f){f.errors=c.get(f.name)||f.errors})}var d=l.filter(function(f){var m=f.name;return qs(r,m)});d.length&&o(d,l)}}),G(this,"validateFields",function(r,a){n.warningUnhooked();var o,l;Array.isArray(r)||typeof r=="string"||typeof a=="string"?(o=r,l=a):l=r;var c=!!o,d=c?o.map(Nr):[],f=[],m=String(Date.now()),p=new Set,v=l||{},h=v.recursive,b=v.dirty;n.getFieldEntities(!0).forEach(function(w){if(c||d.push(w.getNamePath()),!(!w.props.rules||!w.props.rules.length)&&!(b&&!w.isFieldDirty())){var E=w.getNamePath();if(p.add(E.join(m)),!c||qs(d,E,h)){var I=w.validateRules(Z({validateMessages:Z(Z({},u2),n.validateMessages)},l));f.push(I.then(function(){return{name:E,errors:[],warnings:[]}}).catch(function(_){var O,P=[],j=[];return(O=_.forEach)===null||O===void 0||O.call(_,function(R){var k=R.rule.warningOnly,L=R.errors;k?j.push.apply(j,Te(L)):P.push.apply(P,Te(L))}),P.length?Promise.reject({name:E,errors:P,warnings:j}):{name:E,errors:P,warnings:j}}))}}});var x=WF(f);n.lastValidatePromise=x,x.catch(function(w){return w}).then(function(w){var E=w.map(function(I){var _=I.name;return _});n.notifyObservers(n.store,E,{type:"validateFinish"}),n.triggerOnFieldsChange(E,w)});var y=x.then(function(){return n.lastValidatePromise===x?Promise.resolve(n.getFieldsValue(d)):Promise.reject([])}).catch(function(w){var E=w.filter(function(I){return I&&I.errors.length});return Promise.reject({values:n.getFieldsValue(d),errorFields:E,outOfDate:n.lastValidatePromise!==x})});y.catch(function(w){return w});var C=d.filter(function(w){return p.has(w.join(m))});return n.triggerOnFieldsChange(C),y}),G(this,"submit",function(){n.warningUnhooked(),n.validateFields().then(function(r){var a=n.callbacks.onFinish;if(a)try{a(r)}catch(o){console.error(o)}}).catch(function(r){var a=n.callbacks.onFinishFailed;a&&a(r)})}),this.forceRootUpdate=t});function hb(e){var t=i.useRef(),n=i.useState({}),r=se(n,2),a=r[1];if(!t.current)if(e)t.current=e;else{var o=function(){a({})},l=new UF(o);t.current=l.getForm()}return[t.current]}var a0=i.createContext({triggerFormChange:function(){},triggerFormFinish:function(){},registerForm:function(){},unregisterForm:function(){}}),p2=function(t){var n=t.validateMessages,r=t.onFormChange,a=t.onFormFinish,o=t.children,l=i.useContext(a0),c=i.useRef({});return i.createElement(a0.Provider,{value:Z(Z({},l),{},{validateMessages:Z(Z({},l.validateMessages),n),triggerFormChange:function(f,m){r&&r(f,{changedFields:m,forms:c.current}),l.triggerFormChange(f,m)},triggerFormFinish:function(f,m){a&&a(f,{values:m,forms:c.current}),l.triggerFormFinish(f,m)},registerForm:function(f,m){f&&(c.current=Z(Z({},c.current),{},G({},f,m))),l.registerForm(f,m)},unregisterForm:function(f){var m=Z({},c.current);delete m[f],c.current=m,l.unregisterForm(f)}})},o)},qF=["name","initialValues","fields","form","preserve","children","component","validateMessages","validateTrigger","onValuesChange","onFieldsChange","onFinish","onFinishFailed","clearOnDestroy"],YF=function(t,n){var r=t.name,a=t.initialValues,o=t.fields,l=t.form,c=t.preserve,d=t.children,f=t.component,m=f===void 0?"form":f,p=t.validateMessages,v=t.validateTrigger,h=v===void 0?"onChange":v,b=t.onValuesChange,x=t.onFieldsChange,y=t.onFinish,C=t.onFinishFailed,w=t.clearOnDestroy,E=Kt(t,qF),I=i.useRef(null),_=i.useContext(a0),O=hb(l),P=se(O,1),j=P[0],R=j.getInternalHooks(Dl),k=R.useSubscribe,L=R.setInitialValues,W=R.setCallbacks,B=R.setValidateMessages,F=R.setPreserve,A=R.destroyForm;i.useImperativeHandle(n,function(){return Z(Z({},j),{},{nativeElement:I.current})}),i.useEffect(function(){return _.registerForm(r,j),function(){_.unregisterForm(r)}},[_,j,r]),B(Z(Z({},_.validateMessages),p)),W({onValuesChange:b,onFieldsChange:function(q){if(_.triggerFormChange(r,q),x){for(var X=arguments.length,te=new Array(X>1?X-1:0),ee=1;ee{}}),g2=i.createContext(null),h2=e=>{const t=Qn(e,["prefixCls"]);return i.createElement(p2,Object.assign({},t))},yb=i.createContext({prefixCls:""}),Qr=i.createContext({}),XF=e=>{let{children:t,status:n,override:r}=e;const a=i.useContext(Qr),o=i.useMemo(()=>{const l=Object.assign({},a);return r&&delete l.isFormItemInput,n&&(delete l.status,delete l.hasFeedback,delete l.feedbackIcon),l},[n,r,a]);return i.createElement(Qr.Provider,{value:o},t)},y2=i.createContext(void 0),sl=e=>{const{space:t,form:n,children:r}=e;if(r==null)return null;let a=r;return n&&(a=be.createElement(XF,{override:!0,status:!0},a)),t&&(a=be.createElement(R3,null,a)),a};function A1(e){if(e)return{closable:e.closable,closeIcon:e.closeIcon}}function z1(e){const{closable:t,closeIcon:n}=e||{};return be.useMemo(()=>{if(!t&&(t===!1||n===!1||n===null))return!1;if(t===void 0&&n===void 0)return null;let r={closeIcon:typeof n!="boolean"&&n!==null?n:void 0};return t&&typeof t=="object"&&(r=Object.assign(Object.assign({},r),t)),r},[t,n])}function B1(){const e={};for(var t=arguments.length,n=new Array(t),r=0;r{a&&Object.keys(a).forEach(o=>{a[o]!==void 0&&(e[o]=a[o])})}),e}const QF={};function JF(e,t){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:QF;const r=z1(e),a=z1(t),o=typeof r!="boolean"?!!(r!=null&&r.disabled):!1,l=be.useMemo(()=>Object.assign({closeIcon:be.createElement(gd,null)},n),[n]),c=be.useMemo(()=>r===!1?!1:r?B1(l,a,r):a===!1?!1:a?B1(l,a):l.closable?l:!1,[r,a,l]);return be.useMemo(()=>{if(c===!1)return[!1,null,o];const{closeIconRender:d}=l,{closeIcon:f}=c;let m=f;if(m!=null){d&&(m=d(f));const p=oa(c,!0);Object.keys(p).length&&(m=be.isValidElement(m)?be.cloneElement(m,p):be.createElement("span",Object.assign({},p),m))}return[!0,m,o]},[c,l])}var b2=function(t){if(aa()&&window.document.documentElement){var n=Array.isArray(t)?t:[t],r=window.document.documentElement;return n.some(function(a){return a in r.style})}return!1},ZF=function(t,n){if(!b2(t))return!1;var r=document.createElement("div"),a=r.style[t];return r.style[t]=n,r.style[t]!==a};function o0(e,t){return!Array.isArray(e)&&t!==void 0?ZF(e,t):b2(e)}const Np=e=>{const{prefixCls:t,className:n,style:r,size:a,shape:o}=e,l=ce({[`${t}-lg`]:a==="large",[`${t}-sm`]:a==="small"}),c=ce({[`${t}-circle`]:o==="circle",[`${t}-square`]:o==="square",[`${t}-round`]:o==="round"}),d=i.useMemo(()=>typeof a=="number"?{width:a,height:a,lineHeight:`${a}px`}:{},[a]);return i.createElement("span",{className:ce(t,l,c,n),style:Object.assign(Object.assign({},d),r)})},eL=new jn("ant-skeleton-loading",{"0%":{backgroundPosition:"100% 50%"},"100%":{backgroundPosition:"0 50%"}}),jp=e=>({height:e,lineHeight:ne(e)}),Ys=e=>Object.assign({width:e},jp(e)),tL=e=>({background:e.skeletonLoadingBackground,backgroundSize:"400% 100%",animationName:eL,animationDuration:e.skeletonLoadingMotionDuration,animationTimingFunction:"ease",animationIterationCount:"infinite"}),Ch=(e,t)=>Object.assign({width:t(e).mul(5).equal(),minWidth:t(e).mul(5).equal()},jp(e)),nL=e=>{const{skeletonAvatarCls:t,gradientFromColor:n,controlHeight:r,controlHeightLG:a,controlHeightSM:o}=e;return{[t]:Object.assign({display:"inline-block",verticalAlign:"top",background:n},Ys(r)),[`${t}${t}-circle`]:{borderRadius:"50%"},[`${t}${t}-lg`]:Object.assign({},Ys(a)),[`${t}${t}-sm`]:Object.assign({},Ys(o))}},rL=e=>{const{controlHeight:t,borderRadiusSM:n,skeletonInputCls:r,controlHeightLG:a,controlHeightSM:o,gradientFromColor:l,calc:c}=e;return{[r]:Object.assign({display:"inline-block",verticalAlign:"top",background:l,borderRadius:n},Ch(t,c)),[`${r}-lg`]:Object.assign({},Ch(a,c)),[`${r}-sm`]:Object.assign({},Ch(o,c))}},H1=e=>Object.assign({width:e},jp(e)),aL=e=>{const{skeletonImageCls:t,imageSizeBase:n,gradientFromColor:r,borderRadiusSM:a,calc:o}=e;return{[t]:Object.assign(Object.assign({display:"inline-flex",alignItems:"center",justifyContent:"center",verticalAlign:"middle",background:r,borderRadius:a},H1(o(n).mul(2).equal())),{[`${t}-path`]:{fill:"#bfbfbf"},[`${t}-svg`]:Object.assign(Object.assign({},H1(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%"}}},wh=(e,t,n)=>{const{skeletonButtonCls:r}=e;return{[`${n}${r}-circle`]:{width:t,minWidth:t,borderRadius:"50%"},[`${n}${r}-round`]:{borderRadius:t}}},$h=(e,t)=>Object.assign({width:t(e).mul(2).equal(),minWidth:t(e).mul(2).equal()},jp(e)),oL=e=>{const{borderRadiusSM:t,skeletonButtonCls:n,controlHeight:r,controlHeightLG:a,controlHeightSM:o,gradientFromColor:l,calc:c}=e;return Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({[n]:Object.assign({display:"inline-block",verticalAlign:"top",background:l,borderRadius:t,width:c(r).mul(2).equal(),minWidth:c(r).mul(2).equal()},$h(r,c))},wh(e,r,n)),{[`${n}-lg`]:Object.assign({},$h(a,c))}),wh(e,a,`${n}-lg`)),{[`${n}-sm`]:Object.assign({},$h(o,c))}),wh(e,o,`${n}-sm`))},iL=e=>{const{componentCls:t,skeletonAvatarCls:n,skeletonTitleCls:r,skeletonParagraphCls:a,skeletonButtonCls:o,skeletonInputCls:l,skeletonImageCls:c,controlHeight:d,controlHeightLG:f,controlHeightSM:m,gradientFromColor:p,padding:v,marginSM:h,borderRadius:b,titleHeight:x,blockRadius:y,paragraphLiHeight:C,controlHeightXS:w,paragraphMarginTop:E}=e;return{[t]:{display:"table",width:"100%",[`${t}-header`]:{display:"table-cell",paddingInlineEnd:v,verticalAlign:"top",[n]:Object.assign({display:"inline-block",verticalAlign:"top",background:p},Ys(d)),[`${n}-circle`]:{borderRadius:"50%"},[`${n}-lg`]:Object.assign({},Ys(f)),[`${n}-sm`]:Object.assign({},Ys(m))},[`${t}-content`]:{display:"table-cell",width:"100%",verticalAlign:"top",[r]:{width:"100%",height:x,background:p,borderRadius:y,[`+ ${a}`]:{marginBlockStart:m}},[a]:{padding:0,"> li":{width:"100%",height:C,listStyle:"none",background:p,borderRadius:y,"+ li":{marginBlockStart:w}}},[`${a}> li:last-child:not(:first-child):not(:nth-child(2))`]:{width:"61%"}},[`&-round ${t}-content`]:{[`${r}, ${a} > li`]:{borderRadius:b}}},[`${t}-with-avatar ${t}-content`]:{[r]:{marginBlockStart:h,[`+ ${a}`]:{marginBlockStart:E}}},[`${t}${t}-element`]:Object.assign(Object.assign(Object.assign(Object.assign({display:"inline-block",width:"auto"},oL(e)),nL(e)),rL(e)),aL(e)),[`${t}${t}-block`]:{width:"100%",[o]:{width:"100%"},[l]:{width:"100%"}},[`${t}${t}-active`]:{[` + ${r}, + ${a} > li, + ${n}, + ${o}, + ${l}, + ${c} + `]:Object.assign({},tL(e))}}},lL=e=>{const{colorFillContent:t,colorFill:n}=e,r=t,a=n;return{color:r,colorGradientEnd:a,gradientFromColor:r,gradientToColor:a,titleHeight:e.controlHeight/2,blockRadius:e.borderRadiusSM,paragraphMarginTop:e.marginLG+e.marginXXS,paragraphLiHeight:e.controlHeight/2}},pc=zn("Skeleton",e=>{const{componentCls:t,calc:n}=e,r=$n(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[iL(r)]},lL,{deprecatedTokens:[["color","gradientFromColor"],["colorGradientEnd","gradientToColor"]]}),sL=e=>{const{prefixCls:t,className:n,rootClassName:r,active:a,shape:o="circle",size:l="default"}=e,{getPrefixCls:c}=i.useContext(Gt),d=c("skeleton",t),[f,m,p]=pc(d),v=Qn(e,["prefixCls","className"]),h=ce(d,`${d}-element`,{[`${d}-active`]:a},n,r,m,p);return f(i.createElement("div",{className:h},i.createElement(Np,Object.assign({prefixCls:`${d}-avatar`,shape:o,size:l},v))))},cL=e=>{const{prefixCls:t,className:n,rootClassName:r,active:a,block:o=!1,size:l="default"}=e,{getPrefixCls:c}=i.useContext(Gt),d=c("skeleton",t),[f,m,p]=pc(d),v=Qn(e,["prefixCls"]),h=ce(d,`${d}-element`,{[`${d}-active`]:a,[`${d}-block`]:o},n,r,m,p);return f(i.createElement("div",{className:h},i.createElement(Np,Object.assign({prefixCls:`${d}-button`,size:l},v))))},uL="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",dL=e=>{const{prefixCls:t,className:n,rootClassName:r,style:a,active:o}=e,{getPrefixCls:l}=i.useContext(Gt),c=l("skeleton",t),[d,f,m]=pc(c),p=ce(c,`${c}-element`,{[`${c}-active`]:o},n,r,f,m);return d(i.createElement("div",{className:p},i.createElement("div",{className:ce(`${c}-image`,n),style:a},i.createElement("svg",{viewBox:"0 0 1098 1024",xmlns:"http://www.w3.org/2000/svg",className:`${c}-image-svg`},i.createElement("title",null,"Image placeholder"),i.createElement("path",{d:uL,className:`${c}-image-path`})))))},fL=e=>{const{prefixCls:t,className:n,rootClassName:r,active:a,block:o,size:l="default"}=e,{getPrefixCls:c}=i.useContext(Gt),d=c("skeleton",t),[f,m,p]=pc(d),v=Qn(e,["prefixCls"]),h=ce(d,`${d}-element`,{[`${d}-active`]:a,[`${d}-block`]:o},n,r,m,p);return f(i.createElement("div",{className:h},i.createElement(Np,Object.assign({prefixCls:`${d}-input`,size:l},v))))},mL=e=>{const{prefixCls:t,className:n,rootClassName:r,style:a,active:o,children:l}=e,{getPrefixCls:c}=i.useContext(Gt),d=c("skeleton",t),[f,m,p]=pc(d),v=ce(d,`${d}-element`,{[`${d}-active`]:o},m,n,r,p);return f(i.createElement("div",{className:v},i.createElement("div",{className:ce(`${d}-image`,n),style:a},l)))},pL=(e,t)=>{const{width:n,rows:r=2}=t;if(Array.isArray(n))return n[e];if(r-1===e)return n},vL=e=>{const{prefixCls:t,className:n,style:r,rows:a=0}=e,o=Array.from({length:a}).map((l,c)=>i.createElement("li",{key:c,style:{width:pL(c,e)}}));return i.createElement("ul",{className:ce(t,n),style:r},o)},gL=e=>{let{prefixCls:t,className:n,width:r,style:a}=e;return i.createElement("h3",{className:ce(t,n),style:Object.assign({width:r},a)})};function Eh(e){return e&&typeof e=="object"?e:{}}function hL(e,t){return e&&!t?{size:"large",shape:"square"}:{size:"large",shape:"circle"}}function yL(e,t){return!e&&t?{width:"38%"}:e&&t?{width:"50%"}:{}}function bL(e,t){const n={};return(!e||!t)&&(n.width="61%"),!e&&t?n.rows=3:n.rows=2,n}const vc=e=>{const{prefixCls:t,loading:n,className:r,rootClassName:a,style:o,children:l,avatar:c=!1,title:d=!0,paragraph:f=!0,active:m,round:p}=e,{getPrefixCls:v,direction:h,className:b,style:x}=wa("skeleton"),y=v("skeleton",t),[C,w,E]=pc(y);if(n||!("loading"in e)){const I=!!c,_=!!d,O=!!f;let P;if(I){const k=Object.assign(Object.assign({prefixCls:`${y}-avatar`},hL(_,O)),Eh(c));P=i.createElement("div",{className:`${y}-header`},i.createElement(Np,Object.assign({},k)))}let j;if(_||O){let k;if(_){const W=Object.assign(Object.assign({prefixCls:`${y}-title`},yL(I,O)),Eh(d));k=i.createElement(gL,Object.assign({},W))}let L;if(O){const W=Object.assign(Object.assign({prefixCls:`${y}-paragraph`},bL(I,_)),Eh(f));L=i.createElement(vL,Object.assign({},W))}j=i.createElement("div",{className:`${y}-content`},k,L)}const R=ce(y,{[`${y}-with-avatar`]:I,[`${y}-active`]:m,[`${y}-rtl`]:h==="rtl",[`${y}-round`]:p},b,r,a,w,E);return C(i.createElement("div",{className:R,style:Object.assign(Object.assign({},x),o)},P,j))}return l??null};vc.Button=cL;vc.Avatar=sL;vc.Input=fL;vc.Image=dL;vc.Node=mL;const xL=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"}}}},SL=e=>{const{componentCls:t}=e;return{[t]:{position:"relative",maxWidth:"100%",minHeight:1}}},CL=(e,t)=>{const{prefixCls:n,componentCls:r,gridColumns:a}=e,o={};for(let l=a;l>=0;l--)l===0?(o[`${r}${t}-${l}`]={display:"none"},o[`${r}-push-${l}`]={insetInlineStart:"auto"},o[`${r}-pull-${l}`]={insetInlineEnd:"auto"},o[`${r}${t}-push-${l}`]={insetInlineStart:"auto"},o[`${r}${t}-pull-${l}`]={insetInlineEnd:"auto"},o[`${r}${t}-offset-${l}`]={marginInlineStart:0},o[`${r}${t}-order-${l}`]={order:0}):(o[`${r}${t}-${l}`]=[{"--ant-display":"block",display:"block"},{display:"var(--ant-display)",flex:`0 0 ${l/a*100}%`,maxWidth:`${l/a*100}%`}],o[`${r}${t}-push-${l}`]={insetInlineStart:`${l/a*100}%`},o[`${r}${t}-pull-${l}`]={insetInlineEnd:`${l/a*100}%`},o[`${r}${t}-offset-${l}`]={marginInlineStart:`${l/a*100}%`},o[`${r}${t}-order-${l}`]={order:l});return o[`${r}${t}-flex`]={flex:`var(--${n}${t}-flex)`},o},i0=(e,t)=>CL(e,t),wL=(e,t,n)=>({[`@media (min-width: ${ne(t)})`]:Object.assign({},i0(e,n))}),$L=()=>({}),EL=()=>({}),_L=zn("Grid",xL,$L),IL=e=>({xs:e.screenXSMin,sm:e.screenSMMin,md:e.screenMDMin,lg:e.screenLGMin,xl:e.screenXLMin,xxl:e.screenXXLMin}),OL=zn("Grid",e=>{const t=$n(e,{gridColumns:24}),n=IL(t);return delete n.xs,[SL(t),i0(t,""),i0(t,"-xs"),Object.keys(n).map(r=>wL(t,n[r],`-${r}`)).reduce((r,a)=>Object.assign(Object.assign({},r),a),{})]},EL),RL=be.createContext({});function PL(e){return t=>i.createElement(Ei,{theme:{token:{motion:!1,zIndexPopupBase:0}}},i.createElement(e,Object.assign({},t)))}const kp=(e,t,n,r,a)=>PL(l=>{const{prefixCls:c,style:d}=l,f=i.useRef(null),[m,p]=i.useState(0),[v,h]=i.useState(0),[b,x]=Hn(!1,{value:l.open}),{getPrefixCls:y}=i.useContext(Gt),C=y(r||"select",c);i.useEffect(()=>{if(x(!0),typeof ResizeObserver<"u"){const I=new ResizeObserver(O=>{const P=O[0].target;p(P.offsetHeight+8),h(P.offsetWidth)}),_=setInterval(()=>{var O;const P=a?`.${a(C)}`:`.${C}-dropdown`,j=(O=f.current)===null||O===void 0?void 0:O.querySelector(P);j&&(clearInterval(_),I.observe(j))},10);return()=>{clearInterval(_),I.disconnect()}}},[]);let w=Object.assign(Object.assign({},l),{style:Object.assign(Object.assign({},d),{margin:0}),open:b,visible:b,getPopupContainer:()=>f.current});t&&Object.assign(w,{[t]:{overflow:{adjustX:!1,adjustY:!1}}});const E={paddingBottom:m,position:"relative",minWidth:v};return i.createElement("div",{ref:f,style:E},i.createElement(e,Object.assign({},w)))}),Mp=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 Tp=function(t){var n=t.className,r=t.customizeIcon,a=t.customizeIconProps,o=t.children,l=t.onMouseDown,c=t.onClick,d=typeof r=="function"?r(a):r;return i.createElement("span",{className:n,onMouseDown:function(m){m.preventDefault(),l==null||l(m)},style:{userSelect:"none",WebkitUserSelect:"none"},unselectable:"on",onClick:c,"aria-hidden":!0},d!==void 0?d:i.createElement("span",{className:ce(n.split(/\s+/).map(function(f){return"".concat(f,"-icon")}))},o))},NL=function(t,n,r,a,o){var l=arguments.length>5&&arguments[5]!==void 0?arguments[5]:!1,c=arguments.length>6?arguments[6]:void 0,d=arguments.length>7?arguments[7]:void 0,f=be.useMemo(function(){if(wt(a)==="object")return a.clearIcon;if(o)return o},[a,o]),m=be.useMemo(function(){return!!(!l&&a&&(r.length||c)&&!(d==="combobox"&&c===""))},[a,l,r.length,c,d]);return{allowClear:m,clearIcon:be.createElement(Tp,{className:"".concat(t,"-clear"),onMouseDown:n,customizeIcon:f},"×")}},x2=i.createContext(null);function jL(){return i.useContext(x2)}function kL(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:10,t=i.useState(!1),n=se(t,2),r=n[0],a=n[1],o=i.useRef(null),l=function(){window.clearTimeout(o.current)};i.useEffect(function(){return l},[]);var c=function(f,m){l(),o.current=window.setTimeout(function(){a(f),m&&m()},e)};return[r,c,l]}function S2(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:250,t=i.useRef(null),n=i.useRef(null);i.useEffect(function(){return function(){window.clearTimeout(n.current)}},[]);function r(a){(a||t.current===null)&&(t.current=a),window.clearTimeout(n.current),n.current=window.setTimeout(function(){t.current=null},e)}return[function(){return t.current},r]}function ML(e,t,n,r){var a=i.useRef(null);a.current={open:t,triggerOpen:n,customizedTrigger:r},i.useEffect(function(){function o(l){var c;if(!((c=a.current)!==null&&c!==void 0&&c.customizedTrigger)){var d=l.target;d.shadowRoot&&l.composed&&(d=l.composedPath()[0]||d),a.current.open&&e().filter(function(f){return f}).every(function(f){return!f.contains(d)&&f!==d})&&a.current.triggerOpen(!1)}}return window.addEventListener("mousedown",o),function(){return window.removeEventListener("mousedown",o)}},[])}function TL(e){return e&&![$t.ESC,$t.SHIFT,$t.BACKSPACE,$t.TAB,$t.WIN_KEY,$t.ALT,$t.META,$t.WIN_KEY_RIGHT,$t.CTRL,$t.SEMICOLON,$t.EQUALS,$t.CAPS_LOCK,$t.CONTEXT_MENU,$t.F1,$t.F2,$t.F3,$t.F4,$t.F5,$t.F6,$t.F7,$t.F8,$t.F9,$t.F10,$t.F11,$t.F12].includes(e)}var DL=["prefixCls","invalidate","item","renderItem","responsive","responsiveDisabled","registerSize","itemKey","className","style","children","display","order","component"],js=void 0;function FL(e,t){var n=e.prefixCls,r=e.invalidate,a=e.item,o=e.renderItem,l=e.responsive,c=e.responsiveDisabled,d=e.registerSize,f=e.itemKey,m=e.className,p=e.style,v=e.children,h=e.display,b=e.order,x=e.component,y=x===void 0?"div":x,C=Kt(e,DL),w=l&&!h;function E(j){d(f,j)}i.useEffect(function(){return function(){E(null)}},[]);var I=o&&a!==js?o(a,{index:b}):v,_;r||(_={opacity:w?0:1,height:w?0:js,overflowY:w?"hidden":js,order:l?b:js,pointerEvents:w?"none":js,position:w?"absolute":js});var O={};w&&(O["aria-hidden"]=!0);var P=i.createElement(y,Pe({className:ce(!r&&n,m),style:Z(Z({},_),p)},O,C,{ref:t}),I);return l&&(P=i.createElement(ra,{onResize:function(R){var k=R.offsetWidth;E(k)},disabled:c},P)),P}var Ru=i.forwardRef(FL);Ru.displayName="Item";function LL(e){if(typeof MessageChannel>"u")mn(e);else{var t=new MessageChannel;t.port1.onmessage=function(){return e()},t.port2.postMessage(void 0)}}function AL(){var e=i.useRef(null),t=function(r){e.current||(e.current=[],LL(function(){_o.unstable_batchedUpdates(function(){e.current.forEach(function(a){a()}),e.current=null})})),e.current.push(r)};return t}function lu(e,t){var n=i.useState(t),r=se(n,2),a=r[0],o=r[1],l=wn(function(c){e(function(){o(c)})});return[a,l]}var Um=be.createContext(null),zL=["component"],BL=["className"],HL=["className"],VL=function(t,n){var r=i.useContext(Um);if(!r){var a=t.component,o=a===void 0?"div":a,l=Kt(t,zL);return i.createElement(o,Pe({},l,{ref:n}))}var c=r.className,d=Kt(r,BL),f=t.className,m=Kt(t,HL);return i.createElement(Um.Provider,{value:null},i.createElement(Ru,Pe({ref:n,className:ce(c,f)},d,m)))},C2=i.forwardRef(VL);C2.displayName="RawItem";var WL=["prefixCls","data","renderItem","renderRawItem","itemKey","itemWidth","ssr","style","className","maxCount","renderRest","renderRawRest","suffix","component","itemComponent","onVisibleChange"],w2="responsive",$2="invalidate";function KL(e){return"+ ".concat(e.length," ...")}function UL(e,t){var n=e.prefixCls,r=n===void 0?"rc-overflow":n,a=e.data,o=a===void 0?[]:a,l=e.renderItem,c=e.renderRawItem,d=e.itemKey,f=e.itemWidth,m=f===void 0?10:f,p=e.ssr,v=e.style,h=e.className,b=e.maxCount,x=e.renderRest,y=e.renderRawRest,C=e.suffix,w=e.component,E=w===void 0?"div":w,I=e.itemComponent,_=e.onVisibleChange,O=Kt(e,WL),P=p==="full",j=AL(),R=lu(j,null),k=se(R,2),L=k[0],W=k[1],B=L||0,F=lu(j,new Map),A=se(F,2),T=A[0],M=A[1],D=lu(j,0),V=se(D,2),K=V[0],z=V[1],U=lu(j,0),Y=se(U,2),q=Y[0],X=Y[1],te=lu(j,0),ee=se(te,2),J=ee[0],ie=ee[1],de=i.useState(null),oe=se(de,2),le=oe[0],ae=oe[1],ue=i.useState(null),pe=se(ue,2),fe=pe[0],xe=pe[1],Ee=i.useMemo(function(){return fe===null&&P?Number.MAX_SAFE_INTEGER:fe||0},[fe,L]),Le=i.useState(!1),Ne=se(Le,2),ge=Ne[0],we=Ne[1],Se="".concat(r,"-item"),Re=Math.max(K,q),De=b===w2,Me=o.length&&De,Ye=b===$2,qe=Me||typeof b=="number"&&o.length>b,He=i.useMemo(function(){var st=o;return Me?L===null&&P?st=o:st=o.slice(0,Math.min(o.length,B/m)):typeof b=="number"&&(st=o.slice(0,b)),st},[o,m,L,b,Me]),ze=i.useMemo(function(){return Me?o.slice(Ee+1):o.slice(He.length)},[o,He,Me,Ee]),Ae=i.useCallback(function(st,et){var Qe;return typeof d=="function"?d(st):(Qe=d&&(st==null?void 0:st[d]))!==null&&Qe!==void 0?Qe:et},[d]),Ie=i.useCallback(l||function(st){return st},[l]);function Ve(st,et,Qe){fe===st&&(et===void 0||et===le)||(xe(st),Qe||(we(stB){Ve(Tt-1,st-kt-J+q);break}}C&&ke(0)+J>B&&ae(null)}},[B,T,q,J,Ae,He]);var tt=ge&&!!ze.length,Nt={};le!==null&&Me&&(Nt={position:"absolute",left:le,top:0});var Ht={prefixCls:Se,responsive:Me,component:I,invalidate:Ye},Ge=c?function(st,et){var Qe=Ae(st,et);return i.createElement(Um.Provider,{key:Qe,value:Z(Z({},Ht),{},{order:et,item:st,itemKey:Qe,registerSize:Ce,display:et<=Ee})},c(st,et))}:function(st,et){var Qe=Ae(st,et);return i.createElement(Ru,Pe({},Ht,{order:et,key:Qe,item:st,renderItem:Ie,itemKey:Qe,registerSize:Ce,display:et<=Ee}))},rt={order:tt?Ee:Number.MAX_SAFE_INTEGER,className:"".concat(Se,"-rest"),registerSize:_e,display:tt},gt=x||KL,at=y?i.createElement(Um.Provider,{value:Z(Z({},Ht),rt)},y(ze)):i.createElement(Ru,Pe({},Ht,rt),typeof gt=="function"?gt(ze):gt),dt=i.createElement(E,Pe({className:ce(!Ye&&r,h),style:v,ref:t},O),He.map(Ge),qe?at:null,C&&i.createElement(Ru,Pe({},Ht,{responsive:De,responsiveDisabled:!Me,order:Ee,className:"".concat(Se,"-suffix"),registerSize:he,display:!0,style:Nt}),C));return De?i.createElement(ra,{onResize:ye,disabled:!Me},dt):dt}var Eo=i.forwardRef(UL);Eo.displayName="Overflow";Eo.Item=C2;Eo.RESPONSIVE=w2;Eo.INVALIDATE=$2;var qL=function(t,n){var r,a=t.prefixCls,o=t.id,l=t.inputElement,c=t.disabled,d=t.tabIndex,f=t.autoFocus,m=t.autoComplete,p=t.editable,v=t.activeDescendantId,h=t.value,b=t.maxLength,x=t.onKeyDown,y=t.onMouseDown,C=t.onChange,w=t.onPaste,E=t.onCompositionStart,I=t.onCompositionEnd,_=t.onBlur,O=t.open,P=t.attrs,j=l||i.createElement("input",null),R=j,k=R.ref,L=R.props,W=L.onKeyDown,B=L.onChange,F=L.onMouseDown,A=L.onCompositionStart,T=L.onCompositionEnd,M=L.onBlur,D=L.style;return"maxLength"in j.props,j=i.cloneElement(j,Z(Z(Z({type:"search"},L),{},{id:o,ref:ya(n,k),disabled:c,tabIndex:d,autoComplete:m||"off",autoFocus:f,className:ce("".concat(a,"-selection-search-input"),(r=j)===null||r===void 0||(r=r.props)===null||r===void 0?void 0:r.className),role:"combobox","aria-expanded":O||!1,"aria-haspopup":"listbox","aria-owns":"".concat(o,"_list"),"aria-autocomplete":"list","aria-controls":"".concat(o,"_list"),"aria-activedescendant":O?v:void 0},P),{},{value:p?h:"",maxLength:b,readOnly:!p,unselectable:p?null:"on",style:Z(Z({},D),{},{opacity:p?null:0}),onKeyDown:function(K){x(K),W&&W(K)},onMouseDown:function(K){y(K),F&&F(K)},onChange:function(K){C(K),B&&B(K)},onCompositionStart:function(K){E(K),A&&A(K)},onCompositionEnd:function(K){I(K),T&&T(K)},onPaste:w,onBlur:function(K){_(K),M&&M(K)}})),j},E2=i.forwardRef(qL);function _2(e){return Array.isArray(e)?e:e!==void 0?[e]:[]}var YL=typeof window<"u"&&window.document&&window.document.documentElement,GL=YL;function XL(e){return e!=null}function QL(e){return!e&&e!==0}function V1(e){return["string","number"].includes(wt(e))}function I2(e){var t=void 0;return e&&(V1(e.title)?t=e.title.toString():V1(e.label)&&(t=e.label.toString())),t}function JL(e,t){GL?i.useLayoutEffect(e,t):i.useEffect(e,t)}function ZL(e){var t;return(t=e.key)!==null&&t!==void 0?t:e.value}var W1=function(t){t.preventDefault(),t.stopPropagation()},eA=function(t){var n=t.id,r=t.prefixCls,a=t.values,o=t.open,l=t.searchValue,c=t.autoClearSearchValue,d=t.inputRef,f=t.placeholder,m=t.disabled,p=t.mode,v=t.showSearch,h=t.autoFocus,b=t.autoComplete,x=t.activeDescendantId,y=t.tabIndex,C=t.removeIcon,w=t.maxTagCount,E=t.maxTagTextLength,I=t.maxTagPlaceholder,_=I===void 0?function(ue){return"+ ".concat(ue.length," ...")}:I,O=t.tagRender,P=t.onToggleOpen,j=t.onRemove,R=t.onInputChange,k=t.onInputPaste,L=t.onInputKeyDown,W=t.onInputMouseDown,B=t.onInputCompositionStart,F=t.onInputCompositionEnd,A=t.onInputBlur,T=i.useRef(null),M=i.useState(0),D=se(M,2),V=D[0],K=D[1],z=i.useState(!1),U=se(z,2),Y=U[0],q=U[1],X="".concat(r,"-selection"),te=o||p==="multiple"&&c===!1||p==="tags"?l:"",ee=p==="tags"||p==="multiple"&&c===!1||v&&(o||Y);JL(function(){K(T.current.scrollWidth)},[te]);var J=function(pe,fe,xe,Ee,Le){return i.createElement("span",{title:I2(pe),className:ce("".concat(X,"-item"),G({},"".concat(X,"-item-disabled"),xe))},i.createElement("span",{className:"".concat(X,"-item-content")},fe),Ee&&i.createElement(Tp,{className:"".concat(X,"-item-remove"),onMouseDown:W1,onClick:Le,customizeIcon:C},"×"))},ie=function(pe,fe,xe,Ee,Le,Ne){var ge=function(Se){W1(Se),P(!o)};return i.createElement("span",{onMouseDown:ge},O({label:fe,value:pe,disabled:xe,closable:Ee,onClose:Le,isMaxTag:!!Ne}))},de=function(pe){var fe=pe.disabled,xe=pe.label,Ee=pe.value,Le=!m&&!fe,Ne=xe;if(typeof E=="number"&&(typeof xe=="string"||typeof xe=="number")){var ge=String(Ne);ge.length>E&&(Ne="".concat(ge.slice(0,E),"..."))}var we=function(Re){Re&&Re.stopPropagation(),j(pe)};return typeof O=="function"?ie(Ee,Ne,fe,Le,we):J(pe,Ne,fe,Le,we)},oe=function(pe){if(!a.length)return null;var fe=typeof _=="function"?_(pe):_;return typeof O=="function"?ie(void 0,fe,!1,!1,void 0,!0):J({title:fe},fe,!1)},le=i.createElement("div",{className:"".concat(X,"-search"),style:{width:V},onFocus:function(){q(!0)},onBlur:function(){q(!1)}},i.createElement(E2,{ref:d,open:o,prefixCls:r,id:n,inputElement:null,disabled:m,autoFocus:h,autoComplete:b,editable:ee,activeDescendantId:x,value:te,onKeyDown:L,onMouseDown:W,onChange:R,onPaste:k,onCompositionStart:B,onCompositionEnd:F,onBlur:A,tabIndex:y,attrs:oa(t,!0)}),i.createElement("span",{ref:T,className:"".concat(X,"-search-mirror"),"aria-hidden":!0},te," ")),ae=i.createElement(Eo,{prefixCls:"".concat(X,"-overflow"),data:a,renderItem:de,renderRest:oe,suffix:le,itemKey:ZL,maxCount:w});return i.createElement("span",{className:"".concat(X,"-wrap")},ae,!a.length&&!te&&i.createElement("span",{className:"".concat(X,"-placeholder")},f))},tA=function(t){var n=t.inputElement,r=t.prefixCls,a=t.id,o=t.inputRef,l=t.disabled,c=t.autoFocus,d=t.autoComplete,f=t.activeDescendantId,m=t.mode,p=t.open,v=t.values,h=t.placeholder,b=t.tabIndex,x=t.showSearch,y=t.searchValue,C=t.activeValue,w=t.maxLength,E=t.onInputKeyDown,I=t.onInputMouseDown,_=t.onInputChange,O=t.onInputPaste,P=t.onInputCompositionStart,j=t.onInputCompositionEnd,R=t.onInputBlur,k=t.title,L=i.useState(!1),W=se(L,2),B=W[0],F=W[1],A=m==="combobox",T=A||x,M=v[0],D=y||"";A&&C&&!B&&(D=C),i.useEffect(function(){A&&F(!1)},[A,C]);var V=m!=="combobox"&&!p&&!x?!1:!!D,K=k===void 0?I2(M):k,z=i.useMemo(function(){return M?null:i.createElement("span",{className:"".concat(r,"-selection-placeholder"),style:V?{visibility:"hidden"}:void 0},h)},[M,V,h,r]);return i.createElement("span",{className:"".concat(r,"-selection-wrap")},i.createElement("span",{className:"".concat(r,"-selection-search")},i.createElement(E2,{ref:o,prefixCls:r,id:a,open:p,inputElement:n,disabled:l,autoFocus:c,autoComplete:d,editable:T,activeDescendantId:f,value:D,onKeyDown:E,onMouseDown:I,onChange:function(Y){F(!0),_(Y)},onPaste:O,onCompositionStart:P,onCompositionEnd:j,onBlur:R,tabIndex:b,attrs:oa(t,!0),maxLength:A?w:void 0})),!A&&M?i.createElement("span",{className:"".concat(r,"-selection-item"),title:K,style:V?{visibility:"hidden"}:void 0},M.label):null,z)},nA=function(t,n){var r=i.useRef(null),a=i.useRef(!1),o=t.prefixCls,l=t.open,c=t.mode,d=t.showSearch,f=t.tokenWithEnter,m=t.disabled,p=t.prefix,v=t.autoClearSearchValue,h=t.onSearch,b=t.onSearchSubmit,x=t.onToggleOpen,y=t.onInputKeyDown,C=t.onInputBlur,w=t.domRef;i.useImperativeHandle(n,function(){return{focus:function(K){r.current.focus(K)},blur:function(){r.current.blur()}}});var E=S2(0),I=se(E,2),_=I[0],O=I[1],P=function(K){var z=K.which,U=r.current instanceof HTMLTextAreaElement;!U&&l&&(z===$t.UP||z===$t.DOWN)&&K.preventDefault(),y&&y(K),z===$t.ENTER&&c==="tags"&&!a.current&&!l&&(b==null||b(K.target.value)),!(U&&!l&&~[$t.UP,$t.DOWN,$t.LEFT,$t.RIGHT].indexOf(z))&&TL(z)&&x(!0)},j=function(){O(!0)},R=i.useRef(null),k=function(K){h(K,!0,a.current)!==!1&&x(!0)},L=function(){a.current=!0},W=function(K){a.current=!1,c!=="combobox"&&k(K.target.value)},B=function(K){var z=K.target.value;if(f&&R.current&&/[\r\n]/.test(R.current)){var U=R.current.replace(/[\r\n]+$/,"").replace(/\r\n/g," ").replace(/[\r\n]/g," ");z=z.replace(U,R.current)}R.current=null,k(z)},F=function(K){var z=K.clipboardData,U=z==null?void 0:z.getData("text");R.current=U||""},A=function(K){var z=K.target;if(z!==r.current){var U=document.body.style.msTouchAction!==void 0;U?setTimeout(function(){r.current.focus()}):r.current.focus()}},T=function(K){var z=_();K.target!==r.current&&!z&&!(c==="combobox"&&m)&&K.preventDefault(),(c!=="combobox"&&(!d||!z)||!l)&&(l&&v!==!1&&h("",!0,!1),x())},M={inputRef:r,onInputKeyDown:P,onInputMouseDown:j,onInputChange:B,onInputPaste:F,onInputCompositionStart:L,onInputCompositionEnd:W,onInputBlur:C},D=c==="multiple"||c==="tags"?i.createElement(eA,Pe({},t,M)):i.createElement(tA,Pe({},t,M));return i.createElement("div",{ref:w,className:"".concat(o,"-selector"),onClick:A,onMouseDown:T},p&&i.createElement("div",{className:"".concat(o,"-prefix")},p),D)},rA=i.forwardRef(nA);function aA(e){var t=e.prefixCls,n=e.align,r=e.arrow,a=e.arrowPos,o=r||{},l=o.className,c=o.content,d=a.x,f=d===void 0?0:d,m=a.y,p=m===void 0?0:m,v=i.useRef();if(!n||!n.points)return null;var h={position:"absolute"};if(n.autoArrow!==!1){var b=n.points[0],x=n.points[1],y=b[0],C=b[1],w=x[0],E=x[1];y===w||!["t","b"].includes(y)?h.top=p:y==="t"?h.top=0:h.bottom=0,C===E||!["l","r"].includes(C)?h.left=f:C==="l"?h.left=0:h.right=0}return i.createElement("div",{ref:v,className:ce("".concat(t,"-arrow"),l),style:h},c)}function oA(e){var t=e.prefixCls,n=e.open,r=e.zIndex,a=e.mask,o=e.motion;return a?i.createElement(ko,Pe({},o,{motionAppear:!0,visible:n,removeOnLeave:!0}),function(l){var c=l.className;return i.createElement("div",{style:{zIndex:r},className:ce("".concat(t,"-mask"),c)})}):null}var iA=i.memo(function(e){var t=e.children;return t},function(e,t){return t.cache}),lA=i.forwardRef(function(e,t){var n=e.popup,r=e.className,a=e.prefixCls,o=e.style,l=e.target,c=e.onVisibleChanged,d=e.open,f=e.keepDom,m=e.fresh,p=e.onClick,v=e.mask,h=e.arrow,b=e.arrowPos,x=e.align,y=e.motion,C=e.maskMotion,w=e.forceRender,E=e.getPopupContainer,I=e.autoDestroy,_=e.portal,O=e.zIndex,P=e.onMouseEnter,j=e.onMouseLeave,R=e.onPointerEnter,k=e.onPointerDownCapture,L=e.ready,W=e.offsetX,B=e.offsetY,F=e.offsetR,A=e.offsetB,T=e.onAlign,M=e.onPrepare,D=e.stretch,V=e.targetWidth,K=e.targetHeight,z=typeof n=="function"?n():n,U=d||f,Y=(E==null?void 0:E.length)>0,q=i.useState(!E||!Y),X=se(q,2),te=X[0],ee=X[1];if(hn(function(){!te&&Y&&l&&ee(!0)},[te,Y,l]),!te)return null;var J="auto",ie={left:"-1000vw",top:"-1000vh",right:J,bottom:J};if(L||!d){var de,oe=x.points,le=x.dynamicInset||((de=x._experimental)===null||de===void 0?void 0:de.dynamicInset),ae=le&&oe[0][1]==="r",ue=le&&oe[0][0]==="b";ae?(ie.right=F,ie.left=J):(ie.left=W,ie.right=J),ue?(ie.bottom=A,ie.top=J):(ie.top=B,ie.bottom=J)}var pe={};return D&&(D.includes("height")&&K?pe.height=K:D.includes("minHeight")&&K&&(pe.minHeight=K),D.includes("width")&&V?pe.width=V:D.includes("minWidth")&&V&&(pe.minWidth=V)),d||(pe.pointerEvents="none"),i.createElement(_,{open:w||U,getContainer:E&&function(){return E(l)},autoDestroy:I},i.createElement(oA,{prefixCls:a,open:d,zIndex:O,mask:v,motion:C}),i.createElement(ra,{onResize:T,disabled:!d},function(fe){return i.createElement(ko,Pe({motionAppear:!0,motionEnter:!0,motionLeave:!0,removeOnLeave:!1,forceRender:w,leavedClassName:"".concat(a,"-hidden")},y,{onAppearPrepare:M,onEnterPrepare:M,visible:d,onVisibleChanged:function(Ee){var Le;y==null||(Le=y.onVisibleChanged)===null||Le===void 0||Le.call(y,Ee),c(Ee)}}),function(xe,Ee){var Le=xe.className,Ne=xe.style,ge=ce(a,Le,r);return i.createElement("div",{ref:ya(fe,t,Ee),className:ge,style:Z(Z(Z(Z({"--arrow-x":"".concat(b.x||0,"px"),"--arrow-y":"".concat(b.y||0,"px")},ie),pe),Ne),{},{boxSizing:"border-box",zIndex:O},o),onMouseEnter:P,onMouseLeave:j,onPointerEnter:R,onClick:p,onPointerDownCapture:k},h&&i.createElement(aA,{prefixCls:a,arrow:h,arrowPos:b,align:x}),i.createElement(iA,{cache:!d&&!m},z))})}))}),sA=i.forwardRef(function(e,t){var n=e.children,r=e.getTriggerDOMNode,a=Io(n),o=i.useCallback(function(c){Au(t,r?r(c):c)},[r]),l=dl(o,fl(n));return a?i.cloneElement(n,{ref:l}):n}),K1=i.createContext(null);function U1(e){return e?Array.isArray(e)?e:[e]:[]}function cA(e,t,n,r){return i.useMemo(function(){var a=U1(n??t),o=U1(r??t),l=new Set(a),c=new Set(o);return e&&(l.has("hover")&&(l.delete("hover"),l.add("click")),c.has("hover")&&(c.delete("hover"),c.add("click"))),[l,c]},[e,t,n,r])}function uA(){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 dA(e,t,n,r){for(var a=n.points,o=Object.keys(e),l=0;l1&&arguments[1]!==void 0?arguments[1]:1;return Number.isNaN(e)?t:e}function su(e){return Zu(parseFloat(e),0)}function Y1(e,t){var n=Z({},e);return(t||[]).forEach(function(r){if(!(r instanceof HTMLBodyElement||r instanceof HTMLHtmlElement)){var a=Sd(r).getComputedStyle(r),o=a.overflow,l=a.overflowClipMargin,c=a.borderTopWidth,d=a.borderBottomWidth,f=a.borderLeftWidth,m=a.borderRightWidth,p=r.getBoundingClientRect(),v=r.offsetHeight,h=r.clientHeight,b=r.offsetWidth,x=r.clientWidth,y=su(c),C=su(d),w=su(f),E=su(m),I=Zu(Math.round(p.width/b*1e3)/1e3),_=Zu(Math.round(p.height/v*1e3)/1e3),O=(b-x-w-E)*I,P=(v-h-y-C)*_,j=y*_,R=C*_,k=w*I,L=E*I,W=0,B=0;if(o==="clip"){var F=su(l);W=F*I,B=F*_}var A=p.x+k-W,T=p.y+j-B,M=A+p.width+2*W-k-L-O,D=T+p.height+2*B-j-R-P;n.left=Math.max(n.left,A),n.top=Math.max(n.top,T),n.right=Math.min(n.right,M),n.bottom=Math.min(n.bottom,D)}}),n}function G1(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 X1(e,t){var n=t||[],r=se(n,2),a=r[0],o=r[1];return[G1(e.width,a),G1(e.height,o)]}function Q1(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"";return[e[0],e[1]]}function ks(e,t){var n=t[0],r=t[1],a,o;return n==="t"?o=e.y:n==="b"?o=e.y+e.height:o=e.y+e.height/2,r==="l"?a=e.x:r==="r"?a=e.x+e.width:a=e.x+e.width/2,{x:a,y:o}}function Ui(e,t){var n={t:"b",b:"t",l:"r",r:"l"};return e.map(function(r,a){return a===t?n[r]||"c":r}).join("")}function fA(e,t,n,r,a,o,l){var c=i.useState({ready:!1,offsetX:0,offsetY:0,offsetR:0,offsetB:0,arrowX:0,arrowY:0,scaleX:1,scaleY:1,align:a[r]||{}}),d=se(c,2),f=d[0],m=d[1],p=i.useRef(0),v=i.useMemo(function(){return t?l0(t):[]},[t]),h=i.useRef({}),b=function(){h.current={}};e||b();var x=wn(function(){if(t&&n&&e){let cn=function(Tr,pr){var vr=arguments.length>2&&arguments[2]!==void 0?arguments[2]:Re,Dr=q.x+Tr,Ea=q.y+pr,Zo=Dr+ae,Ka=Ea+le,Rc=Math.max(Dr,vr.left),Ut=Math.max(Ea,vr.top),ln=Math.min(Zo,vr.right),sr=Math.min(Ka,vr.bottom);return Math.max(0,(ln-Rc)*(sr-Ut))},In=function(){en=q.y+Qe,vn=en+le,sn=q.x+et,yn=sn+ae};var w,E,I,_,O=t,P=O.ownerDocument,j=Sd(O),R=j.getComputedStyle(O),k=R.width,L=R.height,W=R.position,B=O.style.left,F=O.style.top,A=O.style.right,T=O.style.bottom,M=O.style.overflow,D=Z(Z({},a[r]),o),V=P.createElement("div");(w=O.parentElement)===null||w===void 0||w.appendChild(V),V.style.left="".concat(O.offsetLeft,"px"),V.style.top="".concat(O.offsetTop,"px"),V.style.position=W,V.style.height="".concat(O.offsetHeight,"px"),V.style.width="".concat(O.offsetWidth,"px"),O.style.left="0",O.style.top="0",O.style.right="auto",O.style.bottom="auto",O.style.overflow="hidden";var K;if(Array.isArray(n))K={x:n[0],y:n[1],width:0,height:0};else{var z,U,Y=n.getBoundingClientRect();Y.x=(z=Y.x)!==null&&z!==void 0?z:Y.left,Y.y=(U=Y.y)!==null&&U!==void 0?U:Y.top,K={x:Y.x,y:Y.y,width:Y.width,height:Y.height}}var q=O.getBoundingClientRect();q.x=(E=q.x)!==null&&E!==void 0?E:q.left,q.y=(I=q.y)!==null&&I!==void 0?I:q.top;var X=P.documentElement,te=X.clientWidth,ee=X.clientHeight,J=X.scrollWidth,ie=X.scrollHeight,de=X.scrollTop,oe=X.scrollLeft,le=q.height,ae=q.width,ue=K.height,pe=K.width,fe={left:0,top:0,right:te,bottom:ee},xe={left:-oe,top:-de,right:J-oe,bottom:ie-de},Ee=D.htmlRegion,Le="visible",Ne="visibleFirst";Ee!=="scroll"&&Ee!==Ne&&(Ee=Le);var ge=Ee===Ne,we=Y1(xe,v),Se=Y1(fe,v),Re=Ee===Le?Se:we,De=ge?Se:Re;O.style.left="auto",O.style.top="auto",O.style.right="0",O.style.bottom="0";var Me=O.getBoundingClientRect();O.style.left=B,O.style.top=F,O.style.right=A,O.style.bottom=T,O.style.overflow=M,(_=O.parentElement)===null||_===void 0||_.removeChild(V);var Ye=Zu(Math.round(ae/parseFloat(k)*1e3)/1e3),qe=Zu(Math.round(le/parseFloat(L)*1e3)/1e3);if(Ye===0||qe===0||Lu(n)&&!fc(n))return;var He=D.offset,ze=D.targetOffset,Ae=X1(q,He),Ie=se(Ae,2),Ve=Ie[0],ye=Ie[1],Ce=X1(K,ze),_e=se(Ce,2),he=_e[0],ke=_e[1];K.x-=he,K.y-=ke;var tt=D.points||[],Nt=se(tt,2),Ht=Nt[0],Ge=Nt[1],rt=Q1(Ge),gt=Q1(Ht),at=ks(K,rt),dt=ks(q,gt),st=Z({},D),et=at.x-dt.x+Ve,Qe=at.y-dt.y+ye,Tt=cn(et,Qe),kt=cn(et,Qe,Se),Xe=ks(K,["t","l"]),Ze=ks(q,["t","l"]),Et=ks(K,["b","r"]),Ot=ks(q,["b","r"]),xt=D.overflow||{},Lt=xt.adjustX,Ct=xt.adjustY,ht=xt.shiftX,Ft=xt.shiftY,At=function(pr){return typeof pr=="boolean"?pr:pr>=0},en,vn,sn,yn;In();var On=At(Ct),kn=gt[0]===rt[0];if(On&>[0]==="t"&&(vn>De.bottom||h.current.bt)){var nt=Qe;kn?nt-=le-ue:nt=Xe.y-Ot.y-ye;var _t=cn(et,nt),ut=cn(et,nt,Se);_t>Tt||_t===Tt&&(!ge||ut>=kt)?(h.current.bt=!0,Qe=nt,ye=-ye,st.points=[Ui(gt,0),Ui(rt,0)]):h.current.bt=!1}if(On&>[0]==="b"&&(enTt||zt===Tt&&(!ge||nn>=kt)?(h.current.tb=!0,Qe=Ke,ye=-ye,st.points=[Ui(gt,0),Ui(rt,0)]):h.current.tb=!1}var En=At(Lt),Tn=gt[1]===rt[1];if(En&>[1]==="l"&&(yn>De.right||h.current.rl)){var Mt=et;Tn?Mt-=ae-pe:Mt=Xe.x-Ot.x-Ve;var Bt=cn(Mt,Qe),rn=cn(Mt,Qe,Se);Bt>Tt||Bt===Tt&&(!ge||rn>=kt)?(h.current.rl=!0,et=Mt,Ve=-Ve,st.points=[Ui(gt,1),Ui(rt,1)]):h.current.rl=!1}if(En&>[1]==="r"&&(snTt||fr===Tt&&(!ge||Jn>=kt)?(h.current.lr=!0,et=xn,Ve=-Ve,st.points=[Ui(gt,1),Ui(rt,1)]):h.current.lr=!1}In();var lr=ht===!0?0:ht;typeof lr=="number"&&(snSe.right&&(et-=yn-Se.right-Ve,K.x>Se.right-lr&&(et+=K.x-Se.right+lr)));var mr=Ft===!0?0:Ft;typeof mr=="number"&&(enSe.bottom&&(Qe-=vn-Se.bottom-ye,K.y>Se.bottom-mr&&(Qe+=K.y-Se.bottom+mr)));var Ur=q.x+et,Er=Ur+ae,er=q.y+Qe,_r=er+le,_n=K.x,Dt=_n+pe,Rt=K.y,Rn=Rt+ue,Pt=Math.max(Ur,_n),It=Math.min(Er,Dt),gn=(Pt+It)/2,Kn=gn-Ur,Zn=Math.max(er,Rt),fn=Math.min(_r,Rn),xr=(Zn+fn)/2,Ir=xr-er;l==null||l(t,st);var mt=Me.right-q.x-(et+q.width),it=Me.bottom-q.y-(Qe+q.height);Ye===1&&(et=Math.round(et),mt=Math.round(mt)),qe===1&&(Qe=Math.round(Qe),it=Math.round(it));var Qt={ready:!0,offsetX:et/Ye,offsetY:Qe/qe,offsetR:mt/Ye,offsetB:it/qe,arrowX:Kn/Ye,arrowY:Ir/qe,scaleX:Ye,scaleY:qe,align:st};m(Qt)}}),y=function(){p.current+=1;var E=p.current;Promise.resolve().then(function(){p.current===E&&x()})},C=function(){m(function(E){return Z(Z({},E),{},{ready:!1})})};return hn(C,[r]),hn(function(){e||C()},[e]),[f.ready,f.offsetX,f.offsetY,f.offsetR,f.offsetB,f.arrowX,f.arrowY,f.scaleX,f.scaleY,f.align,y]}function mA(e,t,n,r,a){hn(function(){if(e&&t&&n){let p=function(){r(),a()};var o=t,l=n,c=l0(o),d=l0(l),f=Sd(l),m=new Set([f].concat(Te(c),Te(d)));return m.forEach(function(v){v.addEventListener("scroll",p,{passive:!0})}),f.addEventListener("resize",p,{passive:!0}),r(),function(){m.forEach(function(v){v.removeEventListener("scroll",p),f.removeEventListener("resize",p)})}}},[e,t,n])}function pA(e,t,n,r,a,o,l,c){var d=i.useRef(e);d.current=e;var f=i.useRef(!1);i.useEffect(function(){if(t&&r&&(!a||o)){var p=function(){f.current=!1},v=function(y){var C;d.current&&!l(((C=y.composedPath)===null||C===void 0||(C=C.call(y))===null||C===void 0?void 0:C[0])||y.target)&&!f.current&&c(!1)},h=Sd(r);h.addEventListener("pointerdown",p,!0),h.addEventListener("mousedown",v,!0),h.addEventListener("contextmenu",v,!0);var b=Wm(n);return b&&(b.addEventListener("mousedown",v,!0),b.addEventListener("contextmenu",v,!0)),function(){h.removeEventListener("pointerdown",p,!0),h.removeEventListener("mousedown",v,!0),h.removeEventListener("contextmenu",v,!0),b&&(b.removeEventListener("mousedown",v,!0),b.removeEventListener("contextmenu",v,!0))}}},[t,n,r,a,o]);function m(){f.current=!0}return m}var vA=["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 gA(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:s2,t=i.forwardRef(function(n,r){var a=n.prefixCls,o=a===void 0?"rc-trigger-popup":a,l=n.children,c=n.action,d=c===void 0?"hover":c,f=n.showAction,m=n.hideAction,p=n.popupVisible,v=n.defaultPopupVisible,h=n.onPopupVisibleChange,b=n.afterPopupVisibleChange,x=n.mouseEnterDelay,y=n.mouseLeaveDelay,C=y===void 0?.1:y,w=n.focusDelay,E=n.blurDelay,I=n.mask,_=n.maskClosable,O=_===void 0?!0:_,P=n.getPopupContainer,j=n.forceRender,R=n.autoDestroy,k=n.destroyPopupOnHide,L=n.popup,W=n.popupClassName,B=n.popupStyle,F=n.popupPlacement,A=n.builtinPlacements,T=A===void 0?{}:A,M=n.popupAlign,D=n.zIndex,V=n.stretch,K=n.getPopupClassNameFromAlign,z=n.fresh,U=n.alignPoint,Y=n.onPopupClick,q=n.onPopupAlign,X=n.arrow,te=n.popupMotion,ee=n.maskMotion,J=n.popupTransitionName,ie=n.popupAnimation,de=n.maskTransitionName,oe=n.maskAnimation,le=n.className,ae=n.getTriggerDOMNode,ue=Kt(n,vA),pe=R||k||!1,fe=i.useState(!1),xe=se(fe,2),Ee=xe[0],Le=xe[1];hn(function(){Le(Mp())},[]);var Ne=i.useRef({}),ge=i.useContext(K1),we=i.useMemo(function(){return{registerSubPopup:function(ln,sr){Ne.current[ln]=sr,ge==null||ge.registerSubPopup(ln,sr)}}},[ge]),Se=pb(),Re=i.useState(null),De=se(Re,2),Me=De[0],Ye=De[1],qe=i.useRef(null),He=wn(function(Ut){qe.current=Ut,Lu(Ut)&&Me!==Ut&&Ye(Ut),ge==null||ge.registerSubPopup(Se,Ut)}),ze=i.useState(null),Ae=se(ze,2),Ie=Ae[0],Ve=Ae[1],ye=i.useRef(null),Ce=wn(function(Ut){Lu(Ut)&&Ie!==Ut&&(Ve(Ut),ye.current=Ut)}),_e=i.Children.only(l),he=(_e==null?void 0:_e.props)||{},ke={},tt=wn(function(Ut){var ln,sr,Or=Ie;return(Or==null?void 0:Or.contains(Ut))||((ln=Wm(Or))===null||ln===void 0?void 0:ln.host)===Ut||Ut===Or||(Me==null?void 0:Me.contains(Ut))||((sr=Wm(Me))===null||sr===void 0?void 0:sr.host)===Ut||Ut===Me||Object.values(Ne.current).some(function(rr){return(rr==null?void 0:rr.contains(Ut))||Ut===rr})}),Nt=q1(o,te,ie,J),Ht=q1(o,ee,oe,de),Ge=i.useState(v||!1),rt=se(Ge,2),gt=rt[0],at=rt[1],dt=p??gt,st=wn(function(Ut){p===void 0&&at(Ut)});hn(function(){at(p||!1)},[p]);var et=i.useRef(dt);et.current=dt;var Qe=i.useRef([]);Qe.current=[];var Tt=wn(function(Ut){var ln;st(Ut),((ln=Qe.current[Qe.current.length-1])!==null&&ln!==void 0?ln:dt)!==Ut&&(Qe.current.push(Ut),h==null||h(Ut))}),kt=i.useRef(),Xe=function(){clearTimeout(kt.current)},Ze=function(ln){var sr=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0;Xe(),sr===0?Tt(ln):kt.current=setTimeout(function(){Tt(ln)},sr*1e3)};i.useEffect(function(){return Xe},[]);var Et=i.useState(!1),Ot=se(Et,2),xt=Ot[0],Lt=Ot[1];hn(function(Ut){(!Ut||dt)&&Lt(!0)},[dt]);var Ct=i.useState(null),ht=se(Ct,2),Ft=ht[0],At=ht[1],en=i.useState(null),vn=se(en,2),sn=vn[0],yn=vn[1],On=function(ln){yn([ln.clientX,ln.clientY])},kn=fA(dt,Me,U&&sn!==null?sn:Ie,F,T,M,q),nt=se(kn,11),_t=nt[0],ut=nt[1],Ke=nt[2],zt=nt[3],nn=nt[4],En=nt[5],Tn=nt[6],Mt=nt[7],Bt=nt[8],rn=nt[9],xn=nt[10],fr=cA(Ee,d,f,m),Jn=se(fr,2),lr=Jn[0],mr=Jn[1],Ur=lr.has("click"),Er=mr.has("click")||mr.has("contextMenu"),er=wn(function(){xt||xn()}),_r=function(){et.current&&U&&Er&&Ze(!1)};mA(dt,Ie,Me,er,_r),hn(function(){er()},[sn,F]),hn(function(){dt&&!(T!=null&&T[F])&&er()},[JSON.stringify(M)]);var _n=i.useMemo(function(){var Ut=dA(T,o,rn,U);return ce(Ut,K==null?void 0:K(rn))},[rn,K,T,o,U]);i.useImperativeHandle(r,function(){return{nativeElement:ye.current,popupElement:qe.current,forceAlign:er}});var Dt=i.useState(0),Rt=se(Dt,2),Rn=Rt[0],Pt=Rt[1],It=i.useState(0),gn=se(It,2),Kn=gn[0],Zn=gn[1],fn=function(){if(V&&Ie){var ln=Ie.getBoundingClientRect();Pt(ln.width),Zn(ln.height)}},xr=function(){fn(),er()},Ir=function(ln){Lt(!1),xn(),b==null||b(ln)},mt=function(){return new Promise(function(ln){fn(),At(function(){return ln})})};hn(function(){Ft&&(xn(),Ft(),At(null))},[Ft]);function it(Ut,ln,sr,Or){ke[Ut]=function(rr){var hl;Or==null||Or(rr),Ze(ln,sr);for(var Pc=arguments.length,Pi=new Array(Pc>1?Pc-1:0),Fo=1;Fo1?sr-1:0),rr=1;rr1?sr-1:0),rr=1;rr1&&arguments[1]!==void 0?arguments[1]:{},n=t.fieldNames,r=t.childrenAsData,a=[],o=O2(n,!1),l=o.label,c=o.value,d=o.options,f=o.groupLabel;function m(p,v){Array.isArray(p)&&p.forEach(function(h){if(v||!(d in h)){var b=h[c];a.push({key:J1(h,a.length),groupOption:v,data:h,label:h[l],value:b})}else{var x=h[f];x===void 0&&r&&(x=h.label),a.push({key:J1(h,a.length),group:!0,data:h,label:x}),m(h[d],!0)}})}return m(e,!1),a}function c0(e){var t=Z({},e);return"props"in t||Object.defineProperty(t,"props",{get:function(){return or(!1,"Return type is option instead of Option instance. Please read value directly instead of reading from `props`."),t}}),t}var CA=function(t,n,r){if(!n||!n.length)return null;var a=!1,o=function c(d,f){var m=sI(f),p=m[0],v=m.slice(1);if(!p)return[d];var h=d.split(p);return a=a||h.length>1,h.reduce(function(b,x){return[].concat(Te(b),Te(c(x,v)))},[]).filter(Boolean)},l=o(t,n);return a?typeof r<"u"?l.slice(0,r):l:null},bb=i.createContext(null);function wA(e){var t=e.visible,n=e.values;if(!t)return null;var r=50;return i.createElement("span",{"aria-live":"polite",style:{width:0,height:0,position:"absolute",overflow:"hidden",opacity:0}},"".concat(n.slice(0,r).map(function(a){var o=a.label,l=a.value;return["number","string"].includes(wt(o))?o:l}).join(", ")),n.length>r?", ...":null)}var $A=["id","prefixCls","className","showSearch","tagRender","direction","omitDomProps","displayValues","onDisplayValuesChange","emptyOptions","notFoundContent","onClear","mode","disabled","loading","getInputElement","getRawInputElement","open","defaultOpen","onDropdownVisibleChange","activeValue","onActiveValueChange","activeDescendantId","searchValue","autoClearSearchValue","onSearch","onSearchSplit","tokenSeparators","allowClear","prefix","suffixIcon","clearIcon","OptionList","animation","transitionName","dropdownStyle","dropdownClassName","dropdownMatchSelectWidth","dropdownRender","dropdownAlign","placement","builtinPlacements","getPopupContainer","showAction","onFocus","onBlur","onKeyUp","onKeyDown","onMouseDown"],EA=["value","onChange","removeIcon","placeholder","autoFocus","maxTagCount","maxTagTextLength","maxTagPlaceholder","choiceTransitionName","onInputKeyDown","onPopupScroll","tabIndex"],u0=function(t){return t==="tags"||t==="multiple"},_A=i.forwardRef(function(e,t){var n,r=e.id,a=e.prefixCls,o=e.className,l=e.showSearch,c=e.tagRender,d=e.direction,f=e.omitDomProps,m=e.displayValues,p=e.onDisplayValuesChange,v=e.emptyOptions,h=e.notFoundContent,b=h===void 0?"Not Found":h,x=e.onClear,y=e.mode,C=e.disabled,w=e.loading,E=e.getInputElement,I=e.getRawInputElement,_=e.open,O=e.defaultOpen,P=e.onDropdownVisibleChange,j=e.activeValue,R=e.onActiveValueChange,k=e.activeDescendantId,L=e.searchValue,W=e.autoClearSearchValue,B=e.onSearch,F=e.onSearchSplit,A=e.tokenSeparators,T=e.allowClear,M=e.prefix,D=e.suffixIcon,V=e.clearIcon,K=e.OptionList,z=e.animation,U=e.transitionName,Y=e.dropdownStyle,q=e.dropdownClassName,X=e.dropdownMatchSelectWidth,te=e.dropdownRender,ee=e.dropdownAlign,J=e.placement,ie=e.builtinPlacements,de=e.getPopupContainer,oe=e.showAction,le=oe===void 0?[]:oe,ae=e.onFocus,ue=e.onBlur,pe=e.onKeyUp,fe=e.onKeyDown,xe=e.onMouseDown,Ee=Kt(e,$A),Le=u0(y),Ne=(l!==void 0?l:Le)||y==="combobox",ge=Z({},Ee);EA.forEach(function(Dt){delete ge[Dt]}),f==null||f.forEach(function(Dt){delete ge[Dt]});var we=i.useState(!1),Se=se(we,2),Re=Se[0],De=Se[1];i.useEffect(function(){De(Mp())},[]);var Me=i.useRef(null),Ye=i.useRef(null),qe=i.useRef(null),He=i.useRef(null),ze=i.useRef(null),Ae=i.useRef(!1),Ie=kL(),Ve=se(Ie,3),ye=Ve[0],Ce=Ve[1],_e=Ve[2];i.useImperativeHandle(t,function(){var Dt,Rt;return{focus:(Dt=He.current)===null||Dt===void 0?void 0:Dt.focus,blur:(Rt=He.current)===null||Rt===void 0?void 0:Rt.blur,scrollTo:function(Pt){var It;return(It=ze.current)===null||It===void 0?void 0:It.scrollTo(Pt)},nativeElement:Me.current||Ye.current}});var he=i.useMemo(function(){var Dt;if(y!=="combobox")return L;var Rt=(Dt=m[0])===null||Dt===void 0?void 0:Dt.value;return typeof Rt=="string"||typeof Rt=="number"?String(Rt):""},[L,y,m]),ke=y==="combobox"&&typeof E=="function"&&E()||null,tt=typeof I=="function"&&I(),Nt=dl(Ye,tt==null||(n=tt.props)===null||n===void 0?void 0:n.ref),Ht=i.useState(!1),Ge=se(Ht,2),rt=Ge[0],gt=Ge[1];hn(function(){gt(!0)},[]);var at=Hn(!1,{defaultValue:O,value:_}),dt=se(at,2),st=dt[0],et=dt[1],Qe=rt?st:!1,Tt=!b&&v;(C||Tt&&Qe&&y==="combobox")&&(Qe=!1);var kt=Tt?!1:Qe,Xe=i.useCallback(function(Dt){var Rt=Dt!==void 0?Dt:!Qe;C||(et(Rt),Qe!==Rt&&(P==null||P(Rt)))},[C,Qe,et,P]),Ze=i.useMemo(function(){return(A||[]).some(function(Dt){return[` +`,`\r +`].includes(Dt)})},[A]),Et=i.useContext(bb)||{},Ot=Et.maxCount,xt=Et.rawValues,Lt=function(Rt,Rn,Pt){if(!(Le&&s0(Ot)&&(xt==null?void 0:xt.size)>=Ot)){var It=!0,gn=Rt;R==null||R(null);var Kn=CA(Rt,A,s0(Ot)?Ot-xt.size:void 0),Zn=Pt?null:Kn;return y!=="combobox"&&Zn&&(gn="",F==null||F(Zn),Xe(!1),It=!1),B&&he!==gn&&B(gn,{source:Rn?"typing":"effect"}),It}},Ct=function(Rt){!Rt||!Rt.trim()||B(Rt,{source:"submit"})};i.useEffect(function(){!Qe&&!Le&&y!=="combobox"&&Lt("",!1,!1)},[Qe]),i.useEffect(function(){st&&C&&et(!1),C&&!Ae.current&&Ce(!1)},[C]);var ht=S2(),Ft=se(ht,2),At=Ft[0],en=Ft[1],vn=i.useRef(!1),sn=function(Rt){var Rn=At(),Pt=Rt.key,It=Pt==="Enter";if(It&&(y!=="combobox"&&Rt.preventDefault(),Qe||Xe(!0)),en(!!he),Pt==="Backspace"&&!Rn&&Le&&!he&&m.length){for(var gn=Te(m),Kn=null,Zn=gn.length-1;Zn>=0;Zn-=1){var fn=gn[Zn];if(!fn.disabled){gn.splice(Zn,1),Kn=fn;break}}Kn&&p(gn,{type:"remove",values:[Kn]})}for(var xr=arguments.length,Ir=new Array(xr>1?xr-1:0),mt=1;mt1?Rn-1:0),It=1;It1?Kn-1:0),fn=1;fn"u"?"undefined":wt(navigator))==="object"&&/Firefox/i.test(navigator.userAgent);const P2=function(e,t,n,r){var a=i.useRef(!1),o=i.useRef(null);function l(){clearTimeout(o.current),a.current=!0,o.current=setTimeout(function(){a.current=!1},50)}var c=i.useRef({top:e,bottom:t,left:n,right:r});return c.current.top=e,c.current.bottom=t,c.current.left=n,c.current.right=r,function(d,f){var m=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1,p=d?f<0&&c.current.left||f>0&&c.current.right:f<0&&c.current.top||f>0&&c.current.bottom;return m&&p?(clearTimeout(o.current),a.current=!1):(!p||a.current)&&l(),!a.current&&p}};function NA(e,t,n,r,a,o,l){var c=i.useRef(0),d=i.useRef(null),f=i.useRef(null),m=i.useRef(!1),p=P2(t,n,r,a);function v(w,E){if(mn.cancel(d.current),!p(!1,E)){var I=w;if(!I._virtualHandled)I._virtualHandled=!0;else return;c.current+=E,f.current=E,Z1||I.preventDefault(),d.current=mn(function(){var _=m.current?10:1;l(c.current*_,!1),c.current=0})}}function h(w,E){l(E,!0),Z1||w.preventDefault()}var b=i.useRef(null),x=i.useRef(null);function y(w){if(e){mn.cancel(x.current),x.current=mn(function(){b.current=null},2);var E=w.deltaX,I=w.deltaY,_=w.shiftKey,O=E,P=I;(b.current==="sx"||!b.current&&_&&I&&!E)&&(O=I,P=0,b.current="sx");var j=Math.abs(O),R=Math.abs(P);b.current===null&&(b.current=o&&j>R?"x":"y"),b.current==="y"?v(w,P):h(w,O)}}function C(w){e&&(m.current=w.detail===f.current)}return[y,C]}function jA(e,t,n,r){var a=i.useMemo(function(){return[new Map,[]]},[e,n.id,r]),o=se(a,2),l=o[0],c=o[1],d=function(m){var p=arguments.length>1&&arguments[1]!==void 0?arguments[1]:m,v=l.get(m),h=l.get(p);if(v===void 0||h===void 0)for(var b=e.length,x=c.length;x0&&arguments[0]!==void 0?arguments[0]:!1;m();var b=function(){var C=!1;c.current.forEach(function(w,E){if(w&&w.offsetParent){var I=w.offsetHeight,_=getComputedStyle(w),O=_.marginTop,P=_.marginBottom,j=e$(O),R=e$(P),k=I+j+R;d.current.get(E)!==k&&(d.current.set(E,k),C=!0)}}),C&&l(function(w){return w+1})};if(h)b();else{f.current+=1;var x=f.current;Promise.resolve().then(function(){x===f.current&&b()})}}function v(h,b){var x=e(h);c.current.get(x),b?(c.current.set(x,b),p()):c.current.delete(x)}return i.useEffect(function(){return m},[]),[v,p,d.current,o]}var t$=14/15;function TA(e,t,n){var r=i.useRef(!1),a=i.useRef(0),o=i.useRef(0),l=i.useRef(null),c=i.useRef(null),d,f=function(h){if(r.current){var b=Math.ceil(h.touches[0].pageX),x=Math.ceil(h.touches[0].pageY),y=a.current-b,C=o.current-x,w=Math.abs(y)>Math.abs(C);w?a.current=b:o.current=x;var E=n(w,w?y:C,!1,h);E&&h.preventDefault(),clearInterval(c.current),E&&(c.current=setInterval(function(){w?y*=t$:C*=t$;var I=Math.floor(w?y:C);(!n(w,I,!0)||Math.abs(I)<=.1)&&clearInterval(c.current)},16))}},m=function(){r.current=!1,d()},p=function(h){d(),h.touches.length===1&&!r.current&&(r.current=!0,a.current=Math.ceil(h.touches[0].pageX),o.current=Math.ceil(h.touches[0].pageY),l.current=h.target,l.current.addEventListener("touchmove",f,{passive:!1}),l.current.addEventListener("touchend",m,{passive:!0}))};d=function(){l.current&&(l.current.removeEventListener("touchmove",f),l.current.removeEventListener("touchend",m))},hn(function(){return e&&t.current.addEventListener("touchstart",p,{passive:!0}),function(){var v;(v=t.current)===null||v===void 0||v.removeEventListener("touchstart",p),d(),clearInterval(c.current)}},[e])}function n$(e){return Math.floor(Math.pow(e,.5))}function d0(e,t){var n="touches"in e?e.touches[0]:e;return n[t?"pageX":"pageY"]-window[t?"scrollX":"scrollY"]}function DA(e,t,n){i.useEffect(function(){var r=t.current;if(e&&r){var a=!1,o,l,c=function(){mn.cancel(o)},d=function v(){c(),o=mn(function(){n(l),v()})},f=function(h){if(!(h.target.draggable||h.button!==0)){var b=h;b._virtualHandled||(b._virtualHandled=!0,a=!0)}},m=function(){a=!1,c()},p=function(h){if(a){var b=d0(h,!1),x=r.getBoundingClientRect(),y=x.top,C=x.bottom;if(b<=y){var w=y-b;l=-n$(w),d()}else if(b>=C){var E=b-C;l=n$(E),d()}else c()}};return r.addEventListener("mousedown",f),r.ownerDocument.addEventListener("mouseup",m),r.ownerDocument.addEventListener("mousemove",p),function(){r.removeEventListener("mousedown",f),r.ownerDocument.removeEventListener("mouseup",m),r.ownerDocument.removeEventListener("mousemove",p),c()}}},[e])}var FA=10;function LA(e,t,n,r,a,o,l,c){var d=i.useRef(),f=i.useState(null),m=se(f,2),p=m[0],v=m[1];return hn(function(){if(p&&p.times=0;F-=1){var A=a(t[F]),T=n.get(A);if(T===void 0){w=!0;break}if(B-=T,B<=0)break}switch(_){case"top":I=P-y;break;case"bottom":I=j-C+y;break;default:{var M=e.current.scrollTop,D=M+C;PD&&(E="bottom")}}I!==null&&l(I),I!==p.lastTop&&(w=!0)}w&&v(Z(Z({},p),{},{times:p.times+1,targetAlign:E,lastTop:I}))}},[p,e.current]),function(h){if(h==null){c();return}if(mn.cancel(d.current),typeof h=="number")l(h);else if(h&&wt(h)==="object"){var b,x=h.align;"index"in h?b=h.index:b=t.findIndex(function(w){return a(w)===h.key});var y=h.offset,C=y===void 0?0:y;v({times:0,index:b,offset:C,originAlign:x})}}}var r$=i.forwardRef(function(e,t){var n=e.prefixCls,r=e.rtl,a=e.scrollOffset,o=e.scrollRange,l=e.onStartMove,c=e.onStopMove,d=e.onScroll,f=e.horizontal,m=e.spinSize,p=e.containerSize,v=e.style,h=e.thumbStyle,b=e.showScrollBar,x=i.useState(!1),y=se(x,2),C=y[0],w=y[1],E=i.useState(null),I=se(E,2),_=I[0],O=I[1],P=i.useState(null),j=se(P,2),R=j[0],k=j[1],L=!r,W=i.useRef(),B=i.useRef(),F=i.useState(b),A=se(F,2),T=A[0],M=A[1],D=i.useRef(),V=function(){b===!0||b===!1||(clearTimeout(D.current),M(!0),D.current=setTimeout(function(){M(!1)},3e3))},K=o-p||0,z=p-m||0,U=i.useMemo(function(){if(a===0||K===0)return 0;var oe=a/K;return oe*z},[a,K,z]),Y=function(le){le.stopPropagation(),le.preventDefault()},q=i.useRef({top:U,dragging:C,pageY:_,startTop:R});q.current={top:U,dragging:C,pageY:_,startTop:R};var X=function(le){w(!0),O(d0(le,f)),k(q.current.top),l(),le.stopPropagation(),le.preventDefault()};i.useEffect(function(){var oe=function(pe){pe.preventDefault()},le=W.current,ae=B.current;return le.addEventListener("touchstart",oe,{passive:!1}),ae.addEventListener("touchstart",X,{passive:!1}),function(){le.removeEventListener("touchstart",oe),ae.removeEventListener("touchstart",X)}},[]);var te=i.useRef();te.current=K;var ee=i.useRef();ee.current=z,i.useEffect(function(){if(C){var oe,le=function(pe){var fe=q.current,xe=fe.dragging,Ee=fe.pageY,Le=fe.startTop;mn.cancel(oe);var Ne=W.current.getBoundingClientRect(),ge=p/(f?Ne.width:Ne.height);if(xe){var we=(d0(pe,f)-Ee)*ge,Se=Le;!L&&f?Se-=we:Se+=we;var Re=te.current,De=ee.current,Me=De?Se/De:0,Ye=Math.ceil(Me*Re);Ye=Math.max(Ye,0),Ye=Math.min(Ye,Re),oe=mn(function(){d(Ye,f)})}},ae=function(){w(!1),c()};return window.addEventListener("mousemove",le,{passive:!0}),window.addEventListener("touchmove",le,{passive:!0}),window.addEventListener("mouseup",ae,{passive:!0}),window.addEventListener("touchend",ae,{passive:!0}),function(){window.removeEventListener("mousemove",le),window.removeEventListener("touchmove",le),window.removeEventListener("mouseup",ae),window.removeEventListener("touchend",ae),mn.cancel(oe)}}},[C]),i.useEffect(function(){return V(),function(){clearTimeout(D.current)}},[a]),i.useImperativeHandle(t,function(){return{delayHidden:V}});var J="".concat(n,"-scrollbar"),ie={position:"absolute",visibility:T?null:"hidden"},de={position:"absolute",background:"rgba(0, 0, 0, 0.5)",borderRadius:99,cursor:"pointer",userSelect:"none"};return f?(ie.height=8,ie.left=0,ie.right=0,ie.bottom=0,de.height="100%",de.width=m,L?de.left=U:de.right=U):(ie.width=8,ie.top=0,ie.bottom=0,L?ie.right=0:ie.left=0,de.width="100%",de.height=m,de.top=U),i.createElement("div",{ref:W,className:ce(J,G(G(G({},"".concat(J,"-horizontal"),f),"".concat(J,"-vertical"),!f),"".concat(J,"-visible"),T)),style:Z(Z({},ie),v),onMouseDown:Y,onMouseMove:V},i.createElement("div",{ref:B,className:ce("".concat(J,"-thumb"),G({},"".concat(J,"-thumb-moving"),C)),style:Z(Z({},de),h),onMouseDown:X}))}),AA=20;function a$(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:0,t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,n=e/t*e;return isNaN(n)&&(n=0),n=Math.max(n,AA),Math.floor(n)}var zA=["prefixCls","className","height","itemHeight","fullHeight","style","data","children","itemKey","virtual","direction","scrollWidth","component","onScroll","onVirtualScroll","onVisibleChange","innerProps","extraRender","styles","showScrollBar"],BA=[],HA={overflowY:"auto",overflowAnchor:"none"};function VA(e,t){var n=e.prefixCls,r=n===void 0?"rc-virtual-list":n,a=e.className,o=e.height,l=e.itemHeight,c=e.fullHeight,d=c===void 0?!0:c,f=e.style,m=e.data,p=e.children,v=e.itemKey,h=e.virtual,b=e.direction,x=e.scrollWidth,y=e.component,C=y===void 0?"div":y,w=e.onScroll,E=e.onVirtualScroll,I=e.onVisibleChange,_=e.innerProps,O=e.extraRender,P=e.styles,j=e.showScrollBar,R=j===void 0?"optional":j,k=Kt(e,zA),L=i.useCallback(function(nt){return typeof v=="function"?v(nt):nt==null?void 0:nt[v]},[v]),W=MA(L),B=se(W,4),F=B[0],A=B[1],T=B[2],M=B[3],D=!!(h!==!1&&o&&l),V=i.useMemo(function(){return Object.values(T.maps).reduce(function(nt,_t){return nt+_t},0)},[T.id,T.maps]),K=D&&m&&(Math.max(l*m.length,V)>o||!!x),z=b==="rtl",U=ce(r,G({},"".concat(r,"-rtl"),z),a),Y=m||BA,q=i.useRef(),X=i.useRef(),te=i.useRef(),ee=i.useState(0),J=se(ee,2),ie=J[0],de=J[1],oe=i.useState(0),le=se(oe,2),ae=le[0],ue=le[1],pe=i.useState(!1),fe=se(pe,2),xe=fe[0],Ee=fe[1],Le=function(){Ee(!0)},Ne=function(){Ee(!1)},ge={getKey:L};function we(nt){de(function(_t){var ut;typeof nt=="function"?ut=nt(_t):ut=nt;var Ke=gt(ut);return q.current.scrollTop=Ke,Ke})}var Se=i.useRef({start:0,end:Y.length}),Re=i.useRef(),De=PA(Y,L),Me=se(De,1),Ye=Me[0];Re.current=Ye;var qe=i.useMemo(function(){if(!D)return{scrollHeight:void 0,start:0,end:Y.length-1,offset:void 0};if(!K){var nt;return{scrollHeight:((nt=X.current)===null||nt===void 0?void 0:nt.offsetHeight)||0,start:0,end:Y.length-1,offset:void 0}}for(var _t=0,ut,Ke,zt,nn=Y.length,En=0;En=ie&&ut===void 0&&(ut=En,Ke=_t),rn>ie+o&&zt===void 0&&(zt=En),_t=rn}return ut===void 0&&(ut=0,Ke=0,zt=Math.ceil(o/l)),zt===void 0&&(zt=Y.length-1),zt=Math.min(zt+1,Y.length-1),{scrollHeight:_t,start:ut,end:zt,offset:Ke}},[K,D,ie,Y,M,o]),He=qe.scrollHeight,ze=qe.start,Ae=qe.end,Ie=qe.offset;Se.current.start=ze,Se.current.end=Ae,i.useLayoutEffect(function(){var nt=T.getRecord();if(nt.size===1){var _t=Array.from(nt)[0],ut=Y[ze];if(ut){var Ke=L(ut);if(Ke===_t){var zt=T.get(_t),nn=zt-l;we(function(En){return En+nn})}}}T.resetRecord()},[He]);var Ve=i.useState({width:0,height:o}),ye=se(Ve,2),Ce=ye[0],_e=ye[1],he=function(_t){_e({width:_t.offsetWidth,height:_t.offsetHeight})},ke=i.useRef(),tt=i.useRef(),Nt=i.useMemo(function(){return a$(Ce.width,x)},[Ce.width,x]),Ht=i.useMemo(function(){return a$(Ce.height,He)},[Ce.height,He]),Ge=He-o,rt=i.useRef(Ge);rt.current=Ge;function gt(nt){var _t=nt;return Number.isNaN(rt.current)||(_t=Math.min(_t,rt.current)),_t=Math.max(_t,0),_t}var at=ie<=0,dt=ie>=Ge,st=ae<=0,et=ae>=x,Qe=P2(at,dt,st,et),Tt=function(){return{x:z?-ae:ae,y:ie}},kt=i.useRef(Tt()),Xe=wn(function(nt){if(E){var _t=Z(Z({},Tt()),nt);(kt.current.x!==_t.x||kt.current.y!==_t.y)&&(E(_t),kt.current=_t)}});function Ze(nt,_t){var ut=nt;_t?(_o.flushSync(function(){ue(ut)}),Xe()):we(ut)}function Et(nt){var _t=nt.currentTarget.scrollTop;_t!==ie&&we(_t),w==null||w(nt),Xe()}var Ot=function(_t){var ut=_t,Ke=x?x-Ce.width:0;return ut=Math.max(ut,0),ut=Math.min(ut,Ke),ut},xt=wn(function(nt,_t){_t?(_o.flushSync(function(){ue(function(ut){var Ke=ut+(z?-nt:nt);return Ot(Ke)})}),Xe()):we(function(ut){var Ke=ut+nt;return Ke})}),Lt=NA(D,at,dt,st,et,!!x,xt),Ct=se(Lt,2),ht=Ct[0],Ft=Ct[1];TA(D,q,function(nt,_t,ut,Ke){var zt=Ke;return Qe(nt,_t,ut)?!1:!zt||!zt._virtualHandled?(zt&&(zt._virtualHandled=!0),ht({preventDefault:function(){},deltaX:nt?_t:0,deltaY:nt?0:_t}),!0):!1}),DA(K,q,function(nt){we(function(_t){return _t+nt})}),hn(function(){function nt(ut){var Ke=at&&ut.detail<0,zt=dt&&ut.detail>0;D&&!Ke&&!zt&&ut.preventDefault()}var _t=q.current;return _t.addEventListener("wheel",ht,{passive:!1}),_t.addEventListener("DOMMouseScroll",Ft,{passive:!0}),_t.addEventListener("MozMousePixelScroll",nt,{passive:!1}),function(){_t.removeEventListener("wheel",ht),_t.removeEventListener("DOMMouseScroll",Ft),_t.removeEventListener("MozMousePixelScroll",nt)}},[D,at,dt]),hn(function(){if(x){var nt=Ot(ae);ue(nt),Xe({x:nt})}},[Ce.width,x]);var At=function(){var _t,ut;(_t=ke.current)===null||_t===void 0||_t.delayHidden(),(ut=tt.current)===null||ut===void 0||ut.delayHidden()},en=LA(q,Y,T,l,L,function(){return A(!0)},we,At);i.useImperativeHandle(t,function(){return{nativeElement:te.current,getScrollInfo:Tt,scrollTo:function(_t){function ut(Ke){return Ke&&wt(Ke)==="object"&&("left"in Ke||"top"in Ke)}ut(_t)?(_t.left!==void 0&&ue(Ot(_t.left)),en(_t.top)):en(_t)}}}),hn(function(){if(I){var nt=Y.slice(ze,Ae+1);I(nt,Y)}},[ze,Ae,Y]);var vn=jA(Y,L,T,l),sn=O==null?void 0:O({start:ze,end:Ae,virtual:K,offsetX:ae,offsetY:Ie,rtl:z,getSize:vn}),yn=OA(Y,ze,Ae,x,ae,F,p,ge),On=null;o&&(On=Z(G({},d?"height":"maxHeight",o),HA),D&&(On.overflowY="hidden",x&&(On.overflowX="hidden"),xe&&(On.pointerEvents="none")));var kn={};return z&&(kn.dir="rtl"),i.createElement("div",Pe({ref:te,style:Z(Z({},f),{},{position:"relative"}),className:U},kn,k),i.createElement(ra,{onResize:he},i.createElement(C,{className:"".concat(r,"-holder"),style:On,ref:q,onScroll:Et,onMouseEnter:At},i.createElement(R2,{prefixCls:r,height:He,offsetX:ae,offsetY:Ie,scrollWidth:x,onInnerResize:A,ref:X,innerProps:_,rtl:z,extra:sn},yn))),K&&He>o&&i.createElement(r$,{ref:ke,prefixCls:r,scrollOffset:ie,scrollRange:He,rtl:z,onScroll:Ze,onStartMove:Le,onStopMove:Ne,spinSize:Ht,containerSize:Ce.height,style:P==null?void 0:P.verticalScrollBar,thumbStyle:P==null?void 0:P.verticalScrollBarThumb,showScrollBar:R}),K&&x>Ce.width&&i.createElement(r$,{ref:tt,prefixCls:r,scrollOffset:ae,scrollRange:x,rtl:z,onScroll:Ze,onStartMove:Le,onStopMove:Ne,spinSize:Nt,containerSize:Ce.width,horizontal:!0,style:P==null?void 0:P.horizontalScrollBar,thumbStyle:P==null?void 0:P.horizontalScrollBarThumb,showScrollBar:R}))}var Dp=i.forwardRef(VA);Dp.displayName="List";function WA(){return/(mac\sos|macintosh)/i.test(navigator.appVersion)}var KA=["disabled","title","children","style","className"];function o$(e){return typeof e=="string"||typeof e=="number"}var UA=function(t,n){var r=jL(),a=r.prefixCls,o=r.id,l=r.open,c=r.multiple,d=r.mode,f=r.searchValue,m=r.toggleOpen,p=r.notFoundContent,v=r.onPopupScroll,h=i.useContext(bb),b=h.maxCount,x=h.flattenOptions,y=h.onActiveValue,C=h.defaultActiveFirstOption,w=h.onSelect,E=h.menuItemSelectedIcon,I=h.rawValues,_=h.fieldNames,O=h.virtual,P=h.direction,j=h.listHeight,R=h.listItemHeight,k=h.optionRender,L="".concat(a,"-item"),W=Xl(function(){return x},[l,x],function(oe,le){return le[0]&&oe[1]!==le[1]}),B=i.useRef(null),F=i.useMemo(function(){return c&&s0(b)&&(I==null?void 0:I.size)>=b},[c,b,I==null?void 0:I.size]),A=function(le){le.preventDefault()},T=function(le){var ae;(ae=B.current)===null||ae===void 0||ae.scrollTo(typeof le=="number"?{index:le}:le)},M=i.useCallback(function(oe){return d==="combobox"?!1:I.has(oe)},[d,Te(I).toString(),I.size]),D=function(le){for(var ae=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1,ue=W.length,pe=0;pe1&&arguments[1]!==void 0?arguments[1]:!1;U(le);var ue={source:ae?"keyboard":"mouse"},pe=W[le];if(!pe){y(null,-1,ue);return}y(pe.value,le,ue)};i.useEffect(function(){Y(C!==!1?D(0):-1)},[W.length,f]);var q=i.useCallback(function(oe){return d==="combobox"?String(oe).toLowerCase()===f.toLowerCase():I.has(oe)},[d,f,Te(I).toString(),I.size]);i.useEffect(function(){var oe=setTimeout(function(){if(!c&&l&&I.size===1){var ae=Array.from(I)[0],ue=W.findIndex(function(pe){var fe=pe.data;return fe.value===ae});ue!==-1&&(Y(ue),T(ue))}});if(l){var le;(le=B.current)===null||le===void 0||le.scrollTo(void 0)}return function(){return clearTimeout(oe)}},[l,f]);var X=function(le){le!==void 0&&w(le,{selected:!I.has(le)}),c||m(!1)};if(i.useImperativeHandle(n,function(){return{onKeyDown:function(le){var ae=le.which,ue=le.ctrlKey;switch(ae){case $t.N:case $t.P:case $t.UP:case $t.DOWN:{var pe=0;if(ae===$t.UP?pe=-1:ae===$t.DOWN?pe=1:WA()&&ue&&(ae===$t.N?pe=1:ae===$t.P&&(pe=-1)),pe!==0){var fe=D(z+pe,pe);T(fe),Y(fe,!0)}break}case $t.TAB:case $t.ENTER:{var xe,Ee=W[z];Ee&&!(Ee!=null&&(xe=Ee.data)!==null&&xe!==void 0&&xe.disabled)&&!F?X(Ee.value):X(void 0),l&&le.preventDefault();break}case $t.ESC:m(!1),l&&le.stopPropagation()}},onKeyUp:function(){},scrollTo:function(le){T(le)}}}),W.length===0)return i.createElement("div",{role:"listbox",id:"".concat(o,"_list"),className:"".concat(L,"-empty"),onMouseDown:A},p);var te=Object.keys(_).map(function(oe){return _[oe]}),ee=function(le){return le.label};function J(oe,le){var ae=oe.group;return{role:ae?"presentation":"option",id:"".concat(o,"_list_").concat(le)}}var ie=function(le){var ae=W[le];if(!ae)return null;var ue=ae.data||{},pe=ue.value,fe=ae.group,xe=oa(ue,!0),Ee=ee(ae);return ae?i.createElement("div",Pe({"aria-label":typeof Ee=="string"&&!fe?Ee:null},xe,{key:le},J(ae,le),{"aria-selected":q(pe)}),pe):null},de={role:"listbox",id:"".concat(o,"_list")};return i.createElement(i.Fragment,null,O&&i.createElement("div",Pe({},de,{style:{height:0,width:0,overflow:"hidden"}}),ie(z-1),ie(z),ie(z+1)),i.createElement(Dp,{itemKey:"key",ref:B,data:W,height:j,itemHeight:R,fullHeight:!1,onMouseDown:A,onScroll:v,virtual:O,direction:P,innerProps:O?null:de},function(oe,le){var ae=oe.group,ue=oe.groupOption,pe=oe.data,fe=oe.label,xe=oe.value,Ee=pe.key;if(ae){var Le,Ne=(Le=pe.title)!==null&&Le!==void 0?Le:o$(fe)?fe.toString():void 0;return i.createElement("div",{className:ce(L,"".concat(L,"-group"),pe.className),title:Ne},fe!==void 0?fe:Ee)}var ge=pe.disabled,we=pe.title;pe.children;var Se=pe.style,Re=pe.className,De=Kt(pe,KA),Me=Qn(De,te),Ye=M(xe),qe=ge||!Ye&&F,He="".concat(L,"-option"),ze=ce(L,He,Re,G(G(G(G({},"".concat(He,"-grouped"),ue),"".concat(He,"-active"),z===le&&!qe),"".concat(He,"-disabled"),qe),"".concat(He,"-selected"),Ye)),Ae=ee(oe),Ie=!E||typeof E=="function"||Ye,Ve=typeof Ae=="number"?Ae:Ae||xe,ye=o$(Ve)?Ve.toString():void 0;return we!==void 0&&(ye=we),i.createElement("div",Pe({},oa(Me),O?{}:J(oe,le),{"aria-selected":q(xe),className:ze,title:ye,onMouseMove:function(){z===le||qe||Y(le)},onClick:function(){qe||X(xe)},style:Se}),i.createElement("div",{className:"".concat(He,"-content")},typeof k=="function"?k(oe,{index:le}):Ve),i.isValidElement(E)||Ye,Ie&&i.createElement(Tp,{className:"".concat(L,"-option-state"),customizeIcon:E,customizeIconProps:{value:xe,disabled:qe,isSelected:Ye}},Ye?"✓":null))}))},qA=i.forwardRef(UA);const YA=function(e,t){var n=i.useRef({values:new Map,options:new Map}),r=i.useMemo(function(){var o=n.current,l=o.values,c=o.options,d=e.map(function(p){if(p.label===void 0){var v;return Z(Z({},p),{},{label:(v=l.get(p.value))===null||v===void 0?void 0:v.label})}return p}),f=new Map,m=new Map;return d.forEach(function(p){f.set(p.value,p),m.set(p.value,t.get(p.value)||c.get(p.value))}),n.current.values=f,n.current.options=m,d},[e,t]),a=i.useCallback(function(o){return t.get(o)||n.current.options.get(o)},[t]);return[r,a]};function _h(e,t){return _2(e).join("").toUpperCase().includes(t)}const GA=function(e,t,n,r,a){return i.useMemo(function(){if(!n||r===!1)return e;var o=t.options,l=t.label,c=t.value,d=[],f=typeof r=="function",m=n.toUpperCase(),p=f?r:function(h,b){return a?_h(b[a],m):b[o]?_h(b[l!=="children"?l:"label"],m):_h(b[c],m)},v=f?function(h){return c0(h)}:function(h){return h};return e.forEach(function(h){if(h[o]){var b=p(n,v(h));if(b)d.push(h);else{var x=h[o].filter(function(y){return p(n,v(y))});x.length&&d.push(Z(Z({},h),{},G({},o,x)))}return}p(n,v(h))&&d.push(h)}),d},[e,r,a,n,t])};var i$=0,XA=aa();function QA(){var e;return XA?(e=i$,i$+=1):e="TEST_OR_SSR",e}function JA(e){var t=i.useState(),n=se(t,2),r=n[0],a=n[1];return i.useEffect(function(){a("rc_select_".concat(QA()))},[]),e||r}var ZA=["children","value"],ez=["children"];function tz(e){var t=e,n=t.key,r=t.props,a=r.children,o=r.value,l=Kt(r,ZA);return Z({key:n,value:o!==void 0?o:n,children:a},l)}function N2(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;return ga(e).map(function(n,r){if(!i.isValidElement(n)||!n.type)return null;var a=n,o=a.type.isSelectOptGroup,l=a.key,c=a.props,d=c.children,f=Kt(c,ez);return t||!o?tz(n):Z(Z({key:"__RC_SELECT_GRP__".concat(l===null?r:l,"__"),label:l},f),{},{options:N2(d)})}).filter(function(n){return n})}var nz=function(t,n,r,a,o){return i.useMemo(function(){var l=t,c=!t;c&&(l=N2(n));var d=new Map,f=new Map,m=function(h,b,x){x&&typeof x=="string"&&h.set(b[x],b)},p=function v(h){for(var b=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,x=0;x0?Xe(Ot.options):Ot.options}):Ot})},Ve=i.useMemo(function(){return w?Ie(Ae):Ae},[Ae,w,de]),ye=i.useMemo(function(){return SA(Ve,{fieldNames:ee,childrenAsData:X})},[Ve,ee,X]),Ce=function(Ze){var Et=fe(Ze);if(Ne(Et),K&&(Et.length!==Re.length||Et.some(function(Lt,Ct){var ht;return((ht=Re[Ct])===null||ht===void 0?void 0:ht.value)!==(Lt==null?void 0:Lt.value)}))){var Ot=V?Et:Et.map(function(Lt){return Lt.value}),xt=Et.map(function(Lt){return c0(De(Lt.value))});K(q?Ot:Ot[0],q?xt:xt[0])}},_e=i.useState(null),he=se(_e,2),ke=he[0],tt=he[1],Nt=i.useState(0),Ht=se(Nt,2),Ge=Ht[0],rt=Ht[1],gt=j!==void 0?j:r!=="combobox",at=i.useCallback(function(Xe,Ze){var Et=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},Ot=Et.source,xt=Ot===void 0?"keyboard":Ot;rt(Ze),l&&r==="combobox"&&Xe!==null&&xt==="keyboard"&&tt(String(Xe))},[l,r]),dt=function(Ze,Et,Ot){var xt=function(){var On,kn=De(Ze);return[V?{label:kn==null?void 0:kn[ee.label],value:Ze,key:(On=kn==null?void 0:kn.key)!==null&&On!==void 0?On:Ze}:Ze,c0(kn)]};if(Et&&h){var Lt=xt(),Ct=se(Lt,2),ht=Ct[0],Ft=Ct[1];h(ht,Ft)}else if(!Et&&b&&Ot!=="clear"){var At=xt(),en=se(At,2),vn=en[0],sn=en[1];b(vn,sn)}},st=l$(function(Xe,Ze){var Et,Ot=q?Ze.selected:!0;Ot?Et=q?[].concat(Te(Re),[Xe]):[Xe]:Et=Re.filter(function(xt){return xt.value!==Xe}),Ce(Et),dt(Xe,Ot),r==="combobox"?tt(""):(!u0||v)&&(oe(""),tt(""))}),et=function(Ze,Et){Ce(Ze);var Ot=Et.type,xt=Et.values;(Ot==="remove"||Ot==="clear")&&xt.forEach(function(Lt){dt(Lt.value,!1,Ot)})},Qe=function(Ze,Et){if(oe(Ze),tt(null),Et.source==="submit"){var Ot=(Ze||"").trim();if(Ot){var xt=Array.from(new Set([].concat(Te(Ye),[Ot])));Ce(xt),dt(Ot,!0),oe("")}return}Et.source!=="blur"&&(r==="combobox"&&Ce(Ze),m==null||m(Ze))},Tt=function(Ze){var Et=Ze;r!=="tags"&&(Et=Ze.map(function(xt){var Lt=ue.get(xt);return Lt==null?void 0:Lt.value}).filter(function(xt){return xt!==void 0}));var Ot=Array.from(new Set([].concat(Te(Ye),Te(Et))));Ce(Ot),Ot.forEach(function(xt){dt(xt,!0)})},kt=i.useMemo(function(){var Xe=k!==!1&&y!==!1;return Z(Z({},le),{},{flattenOptions:ye,onActiveValue:at,defaultActiveFirstOption:gt,onSelect:st,menuItemSelectedIcon:R,rawValues:Ye,fieldNames:ee,virtual:Xe,direction:L,listHeight:B,listItemHeight:A,childrenAsData:X,maxCount:z,optionRender:O})},[z,le,ye,at,gt,st,R,Ye,ee,k,y,L,B,A,X,O]);return i.createElement(bb.Provider,{value:kt},i.createElement(_A,Pe({},U,{id:Y,prefixCls:o,ref:t,omitDomProps:az,mode:r,displayValues:Me,onDisplayValuesChange:et,direction:L,searchValue:de,onSearch:Qe,autoClearSearchValue:v,onSearchSplit:Tt,dropdownMatchSelectWidth:y,OptionList:qA,emptyOptions:!ye.length,activeValue:ke,activeDescendantId:"".concat(Y,"_list_").concat(Ge)})))}),Cb=iz;Cb.Option=Sb;Cb.OptGroup=xb;function cl(e,t,n){return ce({[`${e}-status-success`]:t==="success",[`${e}-status-warning`]:t==="warning",[`${e}-status-error`]:t==="error",[`${e}-status-validating`]:t==="validating",[`${e}-has-feedback`]:n})}const Ql=(e,t)=>t||e,lz=()=>{const[,e]=ba(),[t]=$i("Empty"),r=new Pn(e.colorBgBase).toHsl().l<.5?{opacity:.65}:{};return i.createElement("svg",{style:r,width:"184",height:"152",viewBox:"0 0 184 152",xmlns:"http://www.w3.org/2000/svg"},i.createElement("title",null,(t==null?void 0:t.description)||"Empty"),i.createElement("g",{fill:"none",fillRule:"evenodd"},i.createElement("g",{transform:"translate(24 31.67)"},i.createElement("ellipse",{fillOpacity:".8",fill:"#F5F5F7",cx:"67.797",cy:"106.89",rx:"67.797",ry:"12.668"}),i.createElement("path",{d:"M122.034 69.674L98.109 40.229c-1.148-1.386-2.826-2.225-4.593-2.225h-51.44c-1.766 0-3.444.839-4.592 2.225L13.56 69.674v15.383h108.475V69.674z",fill:"#AEB8C2"}),i.createElement("path",{d:"M101.537 86.214L80.63 61.102c-1.001-1.207-2.507-1.867-4.048-1.867H31.724c-1.54 0-3.047.66-4.048 1.867L6.769 86.214v13.792h94.768V86.214z",fill:"url(#linearGradient-1)",transform:"translate(13.56)"}),i.createElement("path",{d:"M33.83 0h67.933a4 4 0 0 1 4 4v93.344a4 4 0 0 1-4 4H33.83a4 4 0 0 1-4-4V4a4 4 0 0 1 4-4z",fill:"#F5F5F7"}),i.createElement("path",{d:"M42.678 9.953h50.237a2 2 0 0 1 2 2V36.91a2 2 0 0 1-2 2H42.678a2 2 0 0 1-2-2V11.953a2 2 0 0 1 2-2zM42.94 49.767h49.713a2.262 2.262 0 1 1 0 4.524H42.94a2.262 2.262 0 0 1 0-4.524zM42.94 61.53h49.713a2.262 2.262 0 1 1 0 4.525H42.94a2.262 2.262 0 0 1 0-4.525zM121.813 105.032c-.775 3.071-3.497 5.36-6.735 5.36H20.515c-3.238 0-5.96-2.29-6.734-5.36a7.309 7.309 0 0 1-.222-1.79V69.675h26.318c2.907 0 5.25 2.448 5.25 5.42v.04c0 2.971 2.37 5.37 5.277 5.37h34.785c2.907 0 5.277-2.421 5.277-5.393V75.1c0-2.972 2.343-5.426 5.25-5.426h26.318v33.569c0 .617-.077 1.216-.221 1.789z",fill:"#DCE0E6"})),i.createElement("path",{d:"M149.121 33.292l-6.83 2.65a1 1 0 0 1-1.317-1.23l1.937-6.207c-2.589-2.944-4.109-6.534-4.109-10.408C138.802 8.102 148.92 0 161.402 0 173.881 0 184 8.102 184 18.097c0 9.995-10.118 18.097-22.599 18.097-4.528 0-8.744-1.066-12.28-2.902z",fill:"#DCE0E6"}),i.createElement("g",{transform:"translate(149.65 15.383)",fill:"#FFF"},i.createElement("ellipse",{cx:"20.654",cy:"3.167",rx:"2.849",ry:"2.815"}),i.createElement("path",{d:"M5.698 5.63H0L2.898.704zM9.259.704h4.985V5.63H9.259z"}))))},sz=()=>{const[,e]=ba(),[t]=$i("Empty"),{colorFill:n,colorFillTertiary:r,colorFillQuaternary:a,colorBgContainer:o}=e,{borderColor:l,shadowColor:c,contentColor:d}=i.useMemo(()=>({borderColor:new Pn(n).onBackground(o).toHexString(),shadowColor:new Pn(r).onBackground(o).toHexString(),contentColor:new Pn(a).onBackground(o).toHexString()}),[n,r,a,o]);return i.createElement("svg",{width:"64",height:"41",viewBox:"0 0 64 41",xmlns:"http://www.w3.org/2000/svg"},i.createElement("title",null,(t==null?void 0:t.description)||"Empty"),i.createElement("g",{transform:"translate(0 1)",fill:"none",fillRule:"evenodd"},i.createElement("ellipse",{fill:c,cx:"32",cy:"33",rx:"32",ry:"7"}),i.createElement("g",{fillRule:"nonzero",stroke:l},i.createElement("path",{d:"M55 12.76L44.854 1.258C44.367.474 43.656 0 42.907 0H21.093c-.749 0-1.46.474-1.947 1.257L9 12.761V22h46v-9.24z"}),i.createElement("path",{d:"M41.613 15.931c0-1.605.994-2.93 2.227-2.931H55v18.137C55 33.26 53.68 35 52.05 35h-40.1C10.32 35 9 33.259 9 31.137V13h11.16c1.233 0 2.227 1.323 2.227 2.928v.022c0 1.605 1.005 2.901 2.237 2.901h14.752c1.232 0 2.237-1.308 2.237-2.913v-.007z",fill:d}))))},cz=e=>{const{componentCls:t,margin:n,marginXS:r,marginXL:a,fontSize:o,lineHeight:l}=e;return{[t]:{marginInline:r,fontSize:o,lineHeight:l,textAlign:"center",[`${t}-image`]:{height:e.emptyImgHeight,marginBottom:r,opacity:e.opacityImage,img:{height:"100%"},svg:{maxWidth:"100%",height:"100%",margin:"auto"}},[`${t}-description`]:{color:e.colorTextDescription},[`${t}-footer`]:{marginTop:n},"&-normal":{marginBlock:a,color:e.colorTextDescription,[`${t}-description`]:{color:e.colorTextDescription},[`${t}-image`]:{height:e.emptyImgHeightMD}},"&-small":{marginBlock:r,color:e.colorTextDescription,[`${t}-image`]:{height:e.emptyImgHeightSM}}}}},uz=zn("Empty",e=>{const{componentCls:t,controlHeightLG:n,calc:r}=e,a=$n(e,{emptyImgCls:`${t}-img`,emptyImgHeight:r(n).mul(2.5).equal(),emptyImgHeightMD:n,emptyImgHeightSM:r(n).mul(.875).equal()});return[cz(a)]});var dz=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 a=0,r=Object.getOwnPropertySymbols(e);a{const{className:t,rootClassName:n,prefixCls:r,image:a=j2,description:o,children:l,imageStyle:c,style:d,classNames:f,styles:m}=e,p=dz(e,["className","rootClassName","prefixCls","image","description","children","imageStyle","style","classNames","styles"]),{getPrefixCls:v,direction:h,className:b,style:x,classNames:y,styles:C}=wa("empty"),w=v("empty",r),[E,I,_]=uz(w),[O]=$i("Empty"),P=typeof o<"u"?o:O==null?void 0:O.description,j=typeof P=="string"?P:"empty";let R=null;return typeof a=="string"?R=i.createElement("img",{alt:j,src:a}):R=a,E(i.createElement("div",Object.assign({className:ce(I,_,w,b,{[`${w}-normal`]:a===k2,[`${w}-rtl`]:h==="rtl"},t,n,y.root,f==null?void 0:f.root),style:Object.assign(Object.assign(Object.assign(Object.assign({},C.root),x),m==null?void 0:m.root),d)},p),i.createElement("div",{className:ce(`${w}-image`,y.image,f==null?void 0:f.image),style:Object.assign(Object.assign(Object.assign({},c),C.image),m==null?void 0:m.image)},R),P&&i.createElement("div",{className:ce(`${w}-description`,y.description,f==null?void 0:f.description),style:Object.assign(Object.assign({},C.description),m==null?void 0:m.description)},P),l&&i.createElement("div",{className:ce(`${w}-footer`,y.footer,f==null?void 0:f.footer),style:Object.assign(Object.assign({},C.footer),m==null?void 0:m.footer)},l)))};fi.PRESENTED_IMAGE_DEFAULT=j2;fi.PRESENTED_IMAGE_SIMPLE=k2;const wb=e=>{const{componentName:t}=e,{getPrefixCls:n}=i.useContext(Gt),r=n("empty");switch(t){case"Table":case"List":return be.createElement(fi,{image:fi.PRESENTED_IMAGE_SIMPLE});case"Select":case"TreeSelect":case"Cascader":case"Transfer":case"Mentions":return be.createElement(fi,{image:fi.PRESENTED_IMAGE_SIMPLE,className:`${r}-small`});case"Table.filter":return null;default:return be.createElement(fi,null)}},Jl=function(e,t){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:void 0;var r,a;const{variant:o,[e]:l}=i.useContext(Gt),c=i.useContext(y2),d=l==null?void 0:l.variant;let f;typeof t<"u"?f=t:n===!1?f="borderless":f=(a=(r=c??d)!==null&&r!==void 0?r:o)!==null&&a!==void 0?a:"outlined";const m=GT.includes(f);return[f,m]},fz=e=>{const n={overflow:{adjustX:!0,adjustY:!0,shiftY:!0},htmlRegion:e==="scroll"?"scroll":"visible",dynamicInset:!0};return{bottomLeft:Object.assign(Object.assign({},n),{points:["tl","bl"],offset:[0,4]}),bottomRight:Object.assign(Object.assign({},n),{points:["tr","br"],offset:[0,4]}),topLeft:Object.assign(Object.assign({},n),{points:["bl","tl"],offset:[0,-4]}),topRight:Object.assign(Object.assign({},n),{points:["br","tr"],offset:[0,-4]})}};function mz(e,t){return e||fz(t)}const s$=e=>{const{optionHeight:t,optionFontSize:n,optionLineHeight:r,optionPadding:a}=e;return{position:"relative",display:"block",minHeight:t,padding:a,color:e.colorText,fontWeight:"normal",fontSize:n,lineHeight:r,boxSizing:"border-box"}},pz=e=>{const{antCls:t,componentCls:n}=e,r=`${n}-item`,a=`&${t}-slide-up-enter${t}-slide-up-enter-active`,o=`&${t}-slide-up-appear${t}-slide-up-appear-active`,l=`&${t}-slide-up-leave${t}-slide-up-leave-active`,c=`${n}-dropdown-placement-`,d=`${r}-option-selected`;return[{[`${n}-dropdown`]:Object.assign(Object.assign({},Ln(e)),{position:"absolute",top:-9999,zIndex:e.zIndexPopup,boxSizing:"border-box",padding:e.paddingXXS,overflow:"hidden",fontSize:e.fontSize,fontVariant:"initial",backgroundColor:e.colorBgElevated,borderRadius:e.borderRadiusLG,outline:"none",boxShadow:e.boxShadowSecondary,[` + ${a}${c}bottomLeft, + ${o}${c}bottomLeft + `]:{animationName:Sp},[` + ${a}${c}topLeft, + ${o}${c}topLeft, + ${a}${c}topRight, + ${o}${c}topRight + `]:{animationName:wp},[`${l}${c}bottomLeft`]:{animationName:Cp},[` + ${l}${c}topLeft, + ${l}${c}topRight + `]:{animationName:$p},"&-hidden":{display:"none"},[r]:Object.assign(Object.assign({},s$(e)),{cursor:"pointer",transition:`background ${e.motionDurationSlow} ease`,borderRadius:e.borderRadiusSM,"&-group":{color:e.colorTextDescription,fontSize:e.fontSizeSM,cursor:"default"},"&-option":{display:"flex","&-content":Object.assign({flex:"auto"},Oo),"&-state":{flex:"none",display:"flex",alignItems:"center"},[`&-active:not(${r}-option-disabled)`]:{backgroundColor:e.optionActiveBg},[`&-selected:not(${r}-option-disabled)`]:{color:e.optionSelectedColor,fontWeight:e.optionSelectedFontWeight,backgroundColor:e.optionSelectedBg,[`${r}-option-state`]:{color:e.colorPrimary}},"&-disabled":{[`&${r}-option-selected`]:{backgroundColor:e.colorBgContainerDisabled},color:e.colorTextDisabled,cursor:"not-allowed"},"&-grouped":{paddingInlineStart:e.calc(e.controlPaddingHorizontal).mul(2).equal()}},"&-empty":Object.assign(Object.assign({},s$(e)),{color:e.colorTextDisabled})}),[`${d}:has(+ ${d})`]:{borderEndStartRadius:0,borderEndEndRadius:0,[`& + ${d}`]:{borderStartStartRadius:0,borderStartEndRadius:0}},"&-rtl":{direction:"rtl"}})},Yo(e,"slide-up"),Yo(e,"slide-down"),ic(e,"move-up"),ic(e,"move-down")]},M2=e=>{const{multipleSelectItemHeight:t,paddingXXS:n,lineWidth:r,INTERNAL_FIXED_ITEM_MARGIN:a}=e,o=e.max(e.calc(n).sub(r).equal(),0),l=e.max(e.calc(o).sub(a).equal(),0);return{basePadding:o,containerPadding:l,itemHeight:ne(t),itemLineHeight:ne(e.calc(t).sub(e.calc(e.lineWidth).mul(2)).equal())}},vz=e=>{const{multipleSelectItemHeight:t,selectHeight:n,lineWidth:r}=e;return e.calc(n).sub(t).div(2).sub(r).equal()},T2=e=>{const{componentCls:t,iconCls:n,borderRadiusSM:r,motionDurationSlow:a,paddingXS:o,multipleItemColorDisabled:l,multipleItemBorderColorDisabled:c,colorIcon:d,colorIconHover:f,INTERNAL_FIXED_ITEM_MARGIN:m}=e;return{[`${t}-selection-overflow`]:{position:"relative",display:"flex",flex:"auto",flexWrap:"wrap",maxWidth:"100%","&-item":{flex:"none",alignSelf:"center",maxWidth:"100%",display:"inline-flex"},[`${t}-selection-item`]:{display:"flex",alignSelf:"center",flex:"none",boxSizing:"border-box",maxWidth:"100%",marginBlock:m,borderRadius:r,cursor:"default",transition:`font-size ${a}, line-height ${a}, height ${a}`,marginInlineEnd:e.calc(m).mul(2).equal(),paddingInlineStart:o,paddingInlineEnd:e.calc(o).div(2).equal(),[`${t}-disabled&`]:{color:l,borderColor:c,cursor:"not-allowed"},"&-content":{display:"inline-block",marginInlineEnd:e.calc(o).div(2).equal(),overflow:"hidden",whiteSpace:"pre",textOverflow:"ellipsis"},"&-remove":Object.assign(Object.assign({},cc()),{display:"inline-flex",alignItems:"center",color:d,fontWeight:"bold",fontSize:10,lineHeight:"inherit",cursor:"pointer",[`> ${n}`]:{verticalAlign:"-0.2em"},"&:hover":{color:f}})}}}},gz=(e,t)=>{const{componentCls:n,INTERNAL_FIXED_ITEM_MARGIN:r}=e,a=`${n}-selection-overflow`,o=e.multipleSelectItemHeight,l=vz(e),c=t?`${n}-${t}`:"",d=M2(e);return{[`${n}-multiple${c}`]:Object.assign(Object.assign({},T2(e)),{[`${n}-selector`]:{display:"flex",alignItems:"center",width:"100%",height:"100%",paddingInline:d.basePadding,paddingBlock:d.containerPadding,borderRadius:e.borderRadius,[`${n}-disabled&`]:{background:e.multipleSelectorBgDisabled,cursor:"not-allowed"},"&:after":{display:"inline-block",width:0,margin:`${ne(r)} 0`,lineHeight:ne(o),visibility:"hidden",content:'"\\a0"'}},[`${n}-selection-item`]:{height:d.itemHeight,lineHeight:ne(d.itemLineHeight)},[`${n}-selection-wrap`]:{alignSelf:"flex-start","&:after":{lineHeight:ne(o),marginBlock:r}},[`${n}-prefix`]:{marginInlineStart:e.calc(e.inputPaddingHorizontalBase).sub(d.basePadding).equal()},[`${a}-item + ${a}-item, + ${n}-prefix + ${n}-selection-wrap + `]:{[`${n}-selection-search`]:{marginInlineStart:0},[`${n}-selection-placeholder`]:{insetInlineStart:0}},[`${a}-item-suffix`]:{minHeight:d.itemHeight,marginBlock:r},[`${n}-selection-search`]:{display:"inline-flex",position:"relative",maxWidth:"100%",marginInlineStart:e.calc(e.inputPaddingHorizontalBase).sub(l).equal(),"\n &-input,\n &-mirror\n ":{height:o,fontFamily:e.fontFamily,lineHeight:ne(o),transition:`all ${e.motionDurationSlow}`},"&-input":{width:"100%",minWidth:4.1},"&-mirror":{position:"absolute",top:0,insetInlineStart:0,insetInlineEnd:"auto",zIndex:999,whiteSpace:"pre",visibility:"hidden"}},[`${n}-selection-placeholder`]:{position:"absolute",top:"50%",insetInlineStart:e.calc(e.inputPaddingHorizontalBase).sub(d.basePadding).equal(),insetInlineEnd:e.inputPaddingHorizontalBase,transform:"translateY(-50%)",transition:`all ${e.motionDurationSlow}`}})}};function Ih(e,t){const{componentCls:n}=e,r=t?`${n}-${t}`:"",a={[`${n}-multiple${r}`]:{fontSize:e.fontSize,[`${n}-selector`]:{[`${n}-show-search&`]:{cursor:"text"}},[` + &${n}-show-arrow ${n}-selector, + &${n}-allow-clear ${n}-selector + `]:{paddingInlineEnd:e.calc(e.fontSizeIcon).add(e.controlPaddingHorizontal).equal()}}};return[gz(e,t),a]}const hz=e=>{const{componentCls:t}=e,n=$n(e,{selectHeight:e.controlHeightSM,multipleSelectItemHeight:e.multipleItemHeightSM,borderRadius:e.borderRadiusSM,borderRadiusSM:e.borderRadiusXS}),r=$n(e,{fontSize:e.fontSizeLG,selectHeight:e.controlHeightLG,multipleSelectItemHeight:e.multipleItemHeightLG,borderRadius:e.borderRadiusLG,borderRadiusSM:e.borderRadius});return[Ih(e),Ih(n,"sm"),{[`${t}-multiple${t}-sm`]:{[`${t}-selection-placeholder`]:{insetInline:e.calc(e.controlPaddingHorizontalSM).sub(e.lineWidth).equal()},[`${t}-selection-search`]:{marginInlineStart:2}}},Ih(r,"lg")]};function Oh(e,t){const{componentCls:n,inputPaddingHorizontalBase:r,borderRadius:a}=e,o=e.calc(e.controlHeight).sub(e.calc(e.lineWidth).mul(2)).equal(),l=t?`${n}-${t}`:"";return{[`${n}-single${l}`]:{fontSize:e.fontSize,height:e.controlHeight,[`${n}-selector`]:Object.assign(Object.assign({},Ln(e,!0)),{display:"flex",borderRadius:a,flex:"1 1 auto",[`${n}-selection-wrap:after`]:{lineHeight:ne(o)},[`${n}-selection-search`]:{position:"absolute",inset:0,width:"100%","&-input":{width:"100%",WebkitAppearance:"textfield"}},[` + ${n}-selection-item, + ${n}-selection-placeholder + `]:{display:"block",padding:0,lineHeight:ne(o),transition:`all ${e.motionDurationSlow}, visibility 0s`,alignSelf:"center"},[`${n}-selection-placeholder`]:{transition:"none",pointerEvents:"none"},[["&:after",`${n}-selection-item:empty:after`,`${n}-selection-placeholder:empty:after`].join(",")]:{display:"inline-block",width:0,visibility:"hidden",content:'"\\a0"'}}),[` + &${n}-show-arrow ${n}-selection-item, + &${n}-show-arrow ${n}-selection-search, + &${n}-show-arrow ${n}-selection-placeholder + `]:{paddingInlineEnd:e.showArrowPaddingInlineEnd},[`&${n}-open ${n}-selection-item`]:{color:e.colorTextPlaceholder},[`&:not(${n}-customize-input)`]:{[`${n}-selector`]:{width:"100%",height:"100%",alignItems:"center",padding:`0 ${ne(r)}`,[`${n}-selection-search-input`]:{height:o,fontSize:e.fontSize},"&:after":{lineHeight:ne(o)}}},[`&${n}-customize-input`]:{[`${n}-selector`]:{"&:after":{display:"none"},[`${n}-selection-search`]:{position:"static",width:"100%"},[`${n}-selection-placeholder`]:{position:"absolute",insetInlineStart:0,insetInlineEnd:0,padding:`0 ${ne(r)}`,"&:after":{display:"none"}}}}}}}function yz(e){const{componentCls:t}=e,n=e.calc(e.controlPaddingHorizontalSM).sub(e.lineWidth).equal();return[Oh(e),Oh($n(e,{controlHeight:e.controlHeightSM,borderRadius:e.borderRadiusSM}),"sm"),{[`${t}-single${t}-sm`]:{[`&:not(${t}-customize-input)`]:{[`${t}-selector`]:{padding:`0 ${ne(n)}`},[`&${t}-show-arrow ${t}-selection-search`]:{insetInlineEnd:e.calc(n).add(e.calc(e.fontSize).mul(1.5)).equal()},[` + &${t}-show-arrow ${t}-selection-item, + &${t}-show-arrow ${t}-selection-placeholder + `]:{paddingInlineEnd:e.calc(e.fontSize).mul(1.5).equal()}}}},Oh($n(e,{controlHeight:e.singleItemHeightLG,fontSize:e.fontSizeLG,borderRadius:e.borderRadiusLG}),"lg")]}const bz=e=>{const{fontSize:t,lineHeight:n,lineWidth:r,controlHeight:a,controlHeightSM:o,controlHeightLG:l,paddingXXS:c,controlPaddingHorizontal:d,zIndexPopupBase:f,colorText:m,fontWeightStrong:p,controlItemBgActive:v,controlItemBgHover:h,colorBgContainer:b,colorFillSecondary:x,colorBgContainerDisabled:y,colorTextDisabled:C,colorPrimaryHover:w,colorPrimary:E,controlOutline:I}=e,_=c*2,O=r*2,P=Math.min(a-_,a-O),j=Math.min(o-_,o-O),R=Math.min(l-_,l-O);return{INTERNAL_FIXED_ITEM_MARGIN:Math.floor(c/2),zIndexPopup:f+50,optionSelectedColor:m,optionSelectedFontWeight:p,optionSelectedBg:v,optionActiveBg:h,optionPadding:`${(a-t*n)/2}px ${d}px`,optionFontSize:t,optionLineHeight:n,optionHeight:a,selectorBg:b,clearBg:b,singleItemHeightLG:l,multipleItemBg:x,multipleItemBorderColor:"transparent",multipleItemHeight:P,multipleItemHeightSM:j,multipleItemHeightLG:R,multipleSelectorBgDisabled:y,multipleItemColorDisabled:C,multipleItemBorderColorDisabled:"transparent",showArrowPaddingInlineEnd:Math.ceil(e.fontSize*1.25),hoverBorderColor:w,activeBorderColor:E,activeOutlineColor:I,selectAffixPadding:c}},D2=(e,t)=>{const{componentCls:n,antCls:r,controlOutlineWidth:a}=e;return{[`&:not(${n}-customize-input) ${n}-selector`]:{border:`${ne(e.lineWidth)} ${e.lineType} ${t.borderColor}`,background:e.selectorBg},[`&:not(${n}-disabled):not(${n}-customize-input):not(${r}-pagination-size-changer)`]:{[`&:hover ${n}-selector`]:{borderColor:t.hoverBorderHover},[`${n}-focused& ${n}-selector`]:{borderColor:t.activeBorderColor,boxShadow:`0 0 0 ${ne(a)} ${t.activeOutlineColor}`,outline:0},[`${n}-prefix`]:{color:t.color}}}},c$=(e,t)=>({[`&${e.componentCls}-status-${t.status}`]:Object.assign({},D2(e,t))}),xz=e=>({"&-outlined":Object.assign(Object.assign(Object.assign(Object.assign({},D2(e,{borderColor:e.colorBorder,hoverBorderHover:e.hoverBorderColor,activeBorderColor:e.activeBorderColor,activeOutlineColor:e.activeOutlineColor,color:e.colorText})),c$(e,{status:"error",borderColor:e.colorError,hoverBorderHover:e.colorErrorHover,activeBorderColor:e.colorError,activeOutlineColor:e.colorErrorOutline,color:e.colorError})),c$(e,{status:"warning",borderColor:e.colorWarning,hoverBorderHover:e.colorWarningHover,activeBorderColor:e.colorWarning,activeOutlineColor:e.colorWarningOutline,color:e.colorWarning})),{[`&${e.componentCls}-disabled`]:{[`&:not(${e.componentCls}-customize-input) ${e.componentCls}-selector`]:{background:e.colorBgContainerDisabled,color:e.colorTextDisabled}},[`&${e.componentCls}-multiple ${e.componentCls}-selection-item`]:{background:e.multipleItemBg,border:`${ne(e.lineWidth)} ${e.lineType} ${e.multipleItemBorderColor}`}})}),F2=(e,t)=>{const{componentCls:n,antCls:r}=e;return{[`&:not(${n}-customize-input) ${n}-selector`]:{background:t.bg,border:`${ne(e.lineWidth)} ${e.lineType} transparent`,color:t.color},[`&:not(${n}-disabled):not(${n}-customize-input):not(${r}-pagination-size-changer)`]:{[`&:hover ${n}-selector`]:{background:t.hoverBg},[`${n}-focused& ${n}-selector`]:{background:e.selectorBg,borderColor:t.activeBorderColor,outline:0}}}},u$=(e,t)=>({[`&${e.componentCls}-status-${t.status}`]:Object.assign({},F2(e,t))}),Sz=e=>({"&-filled":Object.assign(Object.assign(Object.assign(Object.assign({},F2(e,{bg:e.colorFillTertiary,hoverBg:e.colorFillSecondary,activeBorderColor:e.activeBorderColor,color:e.colorText})),u$(e,{status:"error",bg:e.colorErrorBg,hoverBg:e.colorErrorBgHover,activeBorderColor:e.colorError,color:e.colorError})),u$(e,{status:"warning",bg:e.colorWarningBg,hoverBg:e.colorWarningBgHover,activeBorderColor:e.colorWarning,color:e.colorWarning})),{[`&${e.componentCls}-disabled`]:{[`&:not(${e.componentCls}-customize-input) ${e.componentCls}-selector`]:{borderColor:e.colorBorder,background:e.colorBgContainerDisabled,color:e.colorTextDisabled}},[`&${e.componentCls}-multiple ${e.componentCls}-selection-item`]:{background:e.colorBgContainer,border:`${ne(e.lineWidth)} ${e.lineType} ${e.colorSplit}`}})}),Cz=e=>({"&-borderless":{[`${e.componentCls}-selector`]:{background:"transparent",border:`${ne(e.lineWidth)} ${e.lineType} transparent`},[`&${e.componentCls}-disabled`]:{[`&:not(${e.componentCls}-customize-input) ${e.componentCls}-selector`]:{color:e.colorTextDisabled}},[`&${e.componentCls}-multiple ${e.componentCls}-selection-item`]:{background:e.multipleItemBg,border:`${ne(e.lineWidth)} ${e.lineType} ${e.multipleItemBorderColor}`},[`&${e.componentCls}-status-error`]:{[`${e.componentCls}-prefix, ${e.componentCls}-selection-item`]:{color:e.colorError}},[`&${e.componentCls}-status-warning`]:{[`${e.componentCls}-prefix, ${e.componentCls}-selection-item`]:{color:e.colorWarning}}}}),L2=(e,t)=>{const{componentCls:n,antCls:r}=e;return{[`&:not(${n}-customize-input) ${n}-selector`]:{borderWidth:`0 0 ${ne(e.lineWidth)} 0`,borderStyle:`none none ${e.lineType} none`,borderColor:t.borderColor,background:e.selectorBg,borderRadius:0},[`&:not(${n}-disabled):not(${n}-customize-input):not(${r}-pagination-size-changer)`]:{[`&:hover ${n}-selector`]:{borderColor:t.hoverBorderHover},[`${n}-focused& ${n}-selector`]:{borderColor:t.activeBorderColor,outline:0},[`${n}-prefix`]:{color:t.color}}}},d$=(e,t)=>({[`&${e.componentCls}-status-${t.status}`]:Object.assign({},L2(e,t))}),wz=e=>({"&-underlined":Object.assign(Object.assign(Object.assign(Object.assign({},L2(e,{borderColor:e.colorBorder,hoverBorderHover:e.hoverBorderColor,activeBorderColor:e.activeBorderColor,activeOutlineColor:e.activeOutlineColor,color:e.colorText})),d$(e,{status:"error",borderColor:e.colorError,hoverBorderHover:e.colorErrorHover,activeBorderColor:e.colorError,activeOutlineColor:e.colorErrorOutline,color:e.colorError})),d$(e,{status:"warning",borderColor:e.colorWarning,hoverBorderHover:e.colorWarningHover,activeBorderColor:e.colorWarning,activeOutlineColor:e.colorWarningOutline,color:e.colorWarning})),{[`&${e.componentCls}-disabled`]:{[`&:not(${e.componentCls}-customize-input) ${e.componentCls}-selector`]:{color:e.colorTextDisabled}},[`&${e.componentCls}-multiple ${e.componentCls}-selection-item`]:{background:e.multipleItemBg,border:`${ne(e.lineWidth)} ${e.lineType} ${e.multipleItemBorderColor}`}})}),$z=e=>({[e.componentCls]:Object.assign(Object.assign(Object.assign(Object.assign({},xz(e)),Sz(e)),Cz(e)),wz(e))}),Ez=e=>{const{componentCls:t}=e;return{position:"relative",transition:`all ${e.motionDurationMid} ${e.motionEaseInOut}`,input:{cursor:"pointer"},[`${t}-show-search&`]:{cursor:"text",input:{cursor:"auto",color:"inherit",height:"100%"}},[`${t}-disabled&`]:{cursor:"not-allowed",input:{cursor:"not-allowed"}}}},_z=e=>{const{componentCls:t}=e;return{[`${t}-selection-search-input`]:{margin:0,padding:0,background:"transparent",border:"none",outline:"none",appearance:"none",fontFamily:"inherit","&::-webkit-search-cancel-button":{display:"none",appearance:"none"}}}},Iz=e=>{const{antCls:t,componentCls:n,inputPaddingHorizontalBase:r,iconCls:a}=e;return{[n]:Object.assign(Object.assign({},Ln(e)),{position:"relative",display:"inline-flex",cursor:"pointer",[`&:not(${n}-customize-input) ${n}-selector`]:Object.assign(Object.assign({},Ez(e)),_z(e)),[`${n}-selection-item`]:Object.assign(Object.assign({flex:1,fontWeight:"normal",position:"relative",userSelect:"none"},Oo),{[`> ${t}-typography`]:{display:"inline"}}),[`${n}-selection-placeholder`]:Object.assign(Object.assign({},Oo),{flex:1,color:e.colorTextPlaceholder,pointerEvents:"none"}),[`${n}-arrow`]:Object.assign(Object.assign({},cc()),{position:"absolute",top:"50%",insetInlineStart:"auto",insetInlineEnd:r,height:e.fontSizeIcon,marginTop:e.calc(e.fontSizeIcon).mul(-1).div(2).equal(),color:e.colorTextQuaternary,fontSize:e.fontSizeIcon,lineHeight:1,textAlign:"center",pointerEvents:"none",display:"flex",alignItems:"center",transition:`opacity ${e.motionDurationSlow} ease`,[a]:{verticalAlign:"top",transition:`transform ${e.motionDurationSlow}`,"> svg":{verticalAlign:"top"},[`&:not(${n}-suffix)`]:{pointerEvents:"auto"}},[`${n}-disabled &`]:{cursor:"not-allowed"},"> *:not(:last-child)":{marginInlineEnd:8}}),[`${n}-selection-wrap`]:{display:"flex",width:"100%",position:"relative",minWidth:0,"&:after":{content:'"\\a0"',width:0,overflow:"hidden"}},[`${n}-prefix`]:{flex:"none",marginInlineEnd:e.selectAffixPadding},[`${n}-clear`]:{position:"absolute",top:"50%",insetInlineStart:"auto",insetInlineEnd:r,zIndex:1,display:"inline-block",width:e.fontSizeIcon,height:e.fontSizeIcon,marginTop:e.calc(e.fontSizeIcon).mul(-1).div(2).equal(),color:e.colorTextQuaternary,fontSize:e.fontSizeIcon,fontStyle:"normal",lineHeight:1,textAlign:"center",textTransform:"none",cursor:"pointer",opacity:0,transition:`color ${e.motionDurationMid} ease, opacity ${e.motionDurationSlow} ease`,textRendering:"auto","&:before":{display:"block"},"&:hover":{color:e.colorTextTertiary}},[`&:hover ${n}-clear`]:{opacity:1,background:e.colorBgBase,borderRadius:"50%"}}),[`${n}-status`]:{"&-error, &-warning, &-success, &-validating":{[`&${n}-has-feedback`]:{[`${n}-clear`]:{insetInlineEnd:e.calc(r).add(e.fontSize).add(e.paddingXS).equal()}}}}}},Oz=e=>{const{componentCls:t}=e;return[{[t]:{[`&${t}-in-form-item`]:{width:"100%"}}},Iz(e),yz(e),hz(e),pz(e),{[`${t}-rtl`]:{direction:"rtl"}},bd(e,{borderElCls:`${t}-selector`,focusElCls:`${t}-focused`})]},Rz=zn("Select",(e,t)=>{let{rootPrefixCls:n}=t;const r=$n(e,{rootPrefixCls:n,inputPaddingHorizontalBase:e.calc(e.paddingSM).sub(1).equal(),multipleSelectItemHeight:e.multipleItemHeight,selectHeight:e.controlHeight});return[Oz(r),$z(r)]},bz,{unitless:{optionLineHeight:!0,optionSelectedFontWeight:!0}});var Pz={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M912 190h-69.9c-9.8 0-19.1 4.5-25.1 12.2L404.7 724.5 207 474a32 32 0 00-25.1-12.2H112c-6.7 0-10.4 7.7-6.3 12.9l273.9 347c12.8 16.2 37.4 16.2 50.3 0l488.4-618.9c4.1-5.1.4-12.8-6.3-12.8z"}}]},name:"check",theme:"outlined"},Nz=function(t,n){return i.createElement(pn,Pe({},t,{ref:n,icon:Pz}))},$b=i.forwardRef(Nz),jz={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"},kz=function(t,n){return i.createElement(pn,Pe({},t,{ref:n,icon:jz}))},Eb=i.forwardRef(kz),Mz={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M909.6 854.5L649.9 594.8C690.2 542.7 712 479 712 412c0-80.2-31.3-155.4-87.9-212.1-56.6-56.7-132-87.9-212.1-87.9s-155.5 31.3-212.1 87.9C143.2 256.5 112 331.8 112 412c0 80.1 31.3 155.5 87.9 212.1C256.5 680.8 331.8 712 412 712c67 0 130.6-21.8 182.7-62l259.7 259.6a8.2 8.2 0 0011.6 0l43.6-43.5a8.2 8.2 0 000-11.6zM570.4 570.4C528 612.7 471.8 636 412 636s-116-23.3-158.4-65.6C211.3 528 188 471.8 188 412s23.3-116.1 65.6-158.4C296 211.3 352.2 188 412 188s116.1 23.2 158.4 65.6S636 352.2 636 412s-23.3 116.1-65.6 158.4z"}}]},name:"search",theme:"outlined"},Tz=function(t,n){return i.createElement(pn,Pe({},t,{ref:n,icon:Mz}))},Fp=i.forwardRef(Tz);function A2(e){let{suffixIcon:t,clearIcon:n,menuItemSelectedIcon:r,removeIcon:a,loading:o,multiple:l,hasFeedback:c,prefixCls:d,showSuffixIcon:f,feedbackIcon:m,showArrow:p,componentName:v}=e;const h=n??i.createElement(vd,null),b=w=>t===null&&!c&&!p?null:i.createElement(i.Fragment,null,f!==!1&&w,c&&m);let x=null;if(t!==void 0)x=b(t);else if(o)x=b(i.createElement(Si,{spin:!0}));else{const w=`${d}-suffix`;x=E=>{let{open:I,showSearch:_}=E;return b(I&&_?i.createElement(Fp,{className:w}):i.createElement(Eb,{className:w}))}}let y=null;r!==void 0?y=r:l?y=i.createElement($b,null):y=null;let C=null;return a!==void 0?C=a:C=i.createElement(gd,null),{clearIcon:h,suffixIcon:x,itemIcon:y,removeIcon:C}}function Dz(e,t){return t!==void 0?t:e!==null}var Fz=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 a=0,r=Object.getOwnPropertySymbols(e);a{var n;const{prefixCls:r,bordered:a,className:o,rootClassName:l,getPopupContainer:c,popupClassName:d,dropdownClassName:f,listHeight:m=256,placement:p,listItemHeight:v,size:h,disabled:b,notFoundContent:x,status:y,builtinPlacements:C,dropdownMatchSelectWidth:w,popupMatchSelectWidth:E,direction:I,style:_,allowClear:O,variant:P,dropdownStyle:j,transitionName:R,tagRender:k,maxCount:L,prefix:W}=e,B=Fz(e,["prefixCls","bordered","className","rootClassName","getPopupContainer","popupClassName","dropdownClassName","listHeight","placement","listItemHeight","size","disabled","notFoundContent","status","builtinPlacements","dropdownMatchSelectWidth","popupMatchSelectWidth","direction","style","allowClear","variant","dropdownStyle","transitionName","tagRender","maxCount","prefix"]),{getPopupContainer:F,getPrefixCls:A,renderEmpty:T,direction:M,virtual:D,popupMatchSelectWidth:V,popupOverflow:K}=i.useContext(Gt),z=wa("select"),[,U]=ba(),Y=v??(U==null?void 0:U.controlHeight),q=A("select",r),X=A(),te=I??M,{compactSize:ee,compactItemClassnames:J}=_i(q,te),[ie,de]=Jl("select",P,a),oe=Kr(q),[le,ae,ue]=Rz(q,oe),pe=i.useMemo(()=>{const{mode:ke}=e;if(ke!=="combobox")return ke===z2?"combobox":ke},[e.mode]),fe=pe==="multiple"||pe==="tags",xe=Dz(e.suffixIcon,e.showArrow),Ee=(n=E??w)!==null&&n!==void 0?n:V,{status:Le,hasFeedback:Ne,isFormItemInput:ge,feedbackIcon:we}=i.useContext(Qr),Se=Ql(Le,y);let Re;x!==void 0?Re=x:pe==="combobox"?Re=null:Re=(T==null?void 0:T("Select"))||i.createElement(wb,{componentName:"Select"});const{suffixIcon:De,itemIcon:Me,removeIcon:Ye,clearIcon:qe}=A2(Object.assign(Object.assign({},B),{multiple:fe,hasFeedback:Ne,feedbackIcon:we,showSuffixIcon:xe,prefixCls:q,componentName:"Select"})),He=O===!0?{clearIcon:qe}:O,ze=Qn(B,["suffixIcon","itemIcon"]),Ae=ce(d||f,{[`${q}-dropdown-${te}`]:te==="rtl"},l,ue,oe,ae),Ie=Zr(ke=>{var tt;return(tt=h??ee)!==null&&tt!==void 0?tt:ke}),Ve=i.useContext(ha),ye=b??Ve,Ce=ce({[`${q}-lg`]:Ie==="large",[`${q}-sm`]:Ie==="small",[`${q}-rtl`]:te==="rtl",[`${q}-${ie}`]:de,[`${q}-in-form-item`]:ge},cl(q,Se,Ne),J,z.className,o,l,ue,oe,ae),_e=i.useMemo(()=>p!==void 0?p:te==="rtl"?"bottomRight":"bottomLeft",[p,te]),[he]=dc("SelectLike",j==null?void 0:j.zIndex);return le(i.createElement(Cb,Object.assign({ref:t,virtual:D,showSearch:z.showSearch},ze,{style:Object.assign(Object.assign({},z.style),_),dropdownMatchSelectWidth:Ee,transitionName:ub(X,"slide-up",R),builtinPlacements:mz(C,K),listHeight:m,listItemHeight:Y,mode:pe,prefixCls:q,placement:_e,direction:te,prefix:W,suffixIcon:De,menuItemSelectedIcon:Me,removeIcon:Ye,allowClear:He,notFoundContent:Re,className:Ce,getPopupContainer:c||F,dropdownClassName:Ae,disabled:ye,dropdownStyle:Object.assign(Object.assign({},j),{zIndex:he}),maxCount:fe?L:void 0,tagRender:fe?k:void 0})))},jt=i.forwardRef(Lz),Az=kp(jt,"dropdownAlign");jt.SECRET_COMBOBOX_MODE_DO_NOT_USE=z2;jt.Option=Sb;jt.OptGroup=xb;jt._InternalPanelDoNotUseOrYouWillBeFired=Az;const ql=["xxl","xl","lg","md","sm","xs"],zz=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)`}),Bz=e=>{const t=e,n=[].concat(ql).reverse();return n.forEach((r,a)=>{const o=r.toUpperCase(),l=`screen${o}Min`,c=`screen${o}`;if(!(t[l]<=t[c]))throw new Error(`${l}<=${c} fails : !(${t[l]}<=${t[c]})`);if(a{const[,e]=ba(),t=zz(Bz(e));return be.useMemo(()=>{const n=new Map;let r=-1,a={};return{responsiveMap:t,matchHandlers:{},dispatch(o){return a=o,n.forEach(l=>l(a)),n.size>=1},subscribe(o){return n.size||this.register(),r+=1,n.set(r,o),o(a),r},unsubscribe(o){n.delete(o),n.size||this.unregister()},register(){Object.keys(t).forEach(o=>{const l=t[o],c=f=>{let{matches:m}=f;this.dispatch(Object.assign(Object.assign({},a),{[o]:m}))},d=window.matchMedia(l);d.addListener(c),this.matchHandlers[l]={mql:d,listener:c},c(d)})},unregister(){Object.keys(t).forEach(o=>{const l=t[o],c=this.matchHandlers[l];c==null||c.mql.removeListener(c==null?void 0:c.listener)}),n.clear()}}},[e])};function _b(){const[,e]=i.useReducer(t=>t+1,0);return e}function Lp(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!0,t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};const n=i.useRef(t),r=_b(),a=Hz();return hn(()=>{const o=a.subscribe(l=>{n.current=l,e&&r()});return()=>a.unsubscribe(o)},[]),n.current}function B2(e){var t=e.children,n=e.prefixCls,r=e.id,a=e.overlayInnerStyle,o=e.bodyClassName,l=e.className,c=e.style;return i.createElement("div",{className:ce("".concat(n,"-content"),l),style:c},i.createElement("div",{className:ce("".concat(n,"-inner"),o),id:r,role:"tooltip",style:a},typeof t=="function"?t():t))}var Ms={shiftX:64,adjustY:1},Ts={adjustX:1,shiftY:!0},eo=[0,0],Vz={left:{points:["cr","cl"],overflow:Ts,offset:[-4,0],targetOffset:eo},right:{points:["cl","cr"],overflow:Ts,offset:[4,0],targetOffset:eo},top:{points:["bc","tc"],overflow:Ms,offset:[0,-4],targetOffset:eo},bottom:{points:["tc","bc"],overflow:Ms,offset:[0,4],targetOffset:eo},topLeft:{points:["bl","tl"],overflow:Ms,offset:[0,-4],targetOffset:eo},leftTop:{points:["tr","tl"],overflow:Ts,offset:[-4,0],targetOffset:eo},topRight:{points:["br","tr"],overflow:Ms,offset:[0,-4],targetOffset:eo},rightTop:{points:["tl","tr"],overflow:Ts,offset:[4,0],targetOffset:eo},bottomRight:{points:["tr","br"],overflow:Ms,offset:[0,4],targetOffset:eo},rightBottom:{points:["bl","br"],overflow:Ts,offset:[4,0],targetOffset:eo},bottomLeft:{points:["tl","bl"],overflow:Ms,offset:[0,4],targetOffset:eo},leftBottom:{points:["br","bl"],overflow:Ts,offset:[-4,0],targetOffset:eo}},Wz=["overlayClassName","trigger","mouseEnterDelay","mouseLeaveDelay","overlayStyle","prefixCls","children","onVisibleChange","afterVisibleChange","transitionName","animation","motion","placement","align","destroyTooltipOnHide","defaultVisible","getTooltipContainer","overlayInnerStyle","arrowContent","overlay","id","showArrow","classNames","styles"],Kz=function(t,n){var r=t.overlayClassName,a=t.trigger,o=a===void 0?["hover"]:a,l=t.mouseEnterDelay,c=l===void 0?0:l,d=t.mouseLeaveDelay,f=d===void 0?.1:d,m=t.overlayStyle,p=t.prefixCls,v=p===void 0?"rc-tooltip":p,h=t.children,b=t.onVisibleChange,x=t.afterVisibleChange,y=t.transitionName,C=t.animation,w=t.motion,E=t.placement,I=E===void 0?"right":E,_=t.align,O=_===void 0?{}:_,P=t.destroyTooltipOnHide,j=P===void 0?!1:P,R=t.defaultVisible,k=t.getTooltipContainer,L=t.overlayInnerStyle;t.arrowContent;var W=t.overlay,B=t.id,F=t.showArrow,A=F===void 0?!0:F,T=t.classNames,M=t.styles,D=Kt(t,Wz),V=pb(B),K=i.useRef(null);i.useImperativeHandle(n,function(){return K.current});var z=Z({},D);"visible"in t&&(z.popupVisible=t.visible);var U=function(){return i.createElement(B2,{key:"content",prefixCls:v,id:V,bodyClassName:T==null?void 0:T.body,overlayInnerStyle:Z(Z({},L),M==null?void 0:M.body)},W)},Y=function(){var X=i.Children.only(h),te=(X==null?void 0:X.props)||{},ee=Z(Z({},te),{},{"aria-describedby":W?V:null});return i.cloneElement(h,ee)};return i.createElement(Cd,Pe({popupClassName:ce(r,T==null?void 0:T.root),prefixCls:v,popup:U,action:o,builtinPlacements:Vz,popupPlacement:I,ref:K,popupAlign:O,getPopupContainer:k,onPopupVisibleChange:b,afterPopupVisibleChange:x,popupTransitionName:y,popupAnimation:C,popupMotion:w,defaultPopupVisible:R,autoDestroy:j,mouseLeaveDelay:f,popupStyle:Z(Z({},m),M==null?void 0:M.root),mouseEnterDelay:c,arrow:A},z),Y())};const Uz=i.forwardRef(Kz);function Ib(e){const{sizePopupArrow:t,borderRadiusXS:n,borderRadiusOuter:r}=e,a=t/2,o=0,l=a,c=r*1/Math.sqrt(2),d=a-r*(1-1/Math.sqrt(2)),f=a-n*(1/Math.sqrt(2)),m=r*(Math.sqrt(2)-1)+n*(1/Math.sqrt(2)),p=2*a-f,v=m,h=2*a-c,b=d,x=2*a-o,y=l,C=a*Math.sqrt(2)+r*(Math.sqrt(2)-2),w=r*(Math.sqrt(2)-1),E=`polygon(${w}px 100%, 50% ${w}px, ${2*a-w}px 100%, ${w}px 100%)`,I=`path('M ${o} ${l} A ${r} ${r} 0 0 0 ${c} ${d} L ${f} ${m} A ${n} ${n} 0 0 1 ${p} ${v} L ${h} ${b} A ${r} ${r} 0 0 0 ${x} ${y} Z')`;return{arrowShadowWidth:C,arrowPath:I,arrowPolygon:E}}const H2=(e,t,n)=>{const{sizePopupArrow:r,arrowPolygon:a,arrowPath:o,arrowShadowWidth:l,borderRadiusXS:c,calc:d}=e;return{pointerEvents:"none",width:r,height:r,overflow:"hidden","&::before":{position:"absolute",bottom:0,insetInlineStart:0,width:r,height:d(r).div(2).equal(),background:t,clipPath:{_multi_value_:!0,value:[a,o]},content:'""'},"&::after":{content:'""',position:"absolute",width:l,height:l,bottom:0,insetInline:0,margin:"auto",borderRadius:{_skip_check_:!0,value:`0 0 ${ne(c)} 0`},transform:"translateY(50%) rotate(-135deg)",boxShadow:n,zIndex:0,background:"transparent"}}},V2=8;function Ob(e){const{contentRadius:t,limitVerticalRadius:n}=e,r=t>12?t+2:12;return{arrowOffsetHorizontal:r,arrowOffsetVertical:n?V2:r}}function Yf(e,t){return e?t:{}}function W2(e,t,n){const{componentCls:r,boxShadowPopoverArrow:a,arrowOffsetVertical:o,arrowOffsetHorizontal:l}=e,{arrowDistance:c=0,arrowPlacement:d={left:!0,right:!0,top:!0,bottom:!0}}=n||{};return{[r]:Object.assign(Object.assign(Object.assign(Object.assign({[`${r}-arrow`]:[Object.assign(Object.assign({position:"absolute",zIndex:1,display:"block"},H2(e,t,a)),{"&:before":{background:t}})]},Yf(!!d.top,{[[`&-placement-top > ${r}-arrow`,`&-placement-topLeft > ${r}-arrow`,`&-placement-topRight > ${r}-arrow`].join(",")]:{bottom:c,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":l,[`> ${r}-arrow`]:{left:{_skip_check_:!0,value:l}}},"&-placement-topRight":{"--arrow-offset-horizontal":`calc(100% - ${ne(l)})`,[`> ${r}-arrow`]:{right:{_skip_check_:!0,value:l}}}})),Yf(!!d.bottom,{[[`&-placement-bottom > ${r}-arrow`,`&-placement-bottomLeft > ${r}-arrow`,`&-placement-bottomRight > ${r}-arrow`].join(",")]:{top:c,transform:"translateY(-100%)"},[`&-placement-bottom > ${r}-arrow`]:{left:{_skip_check_:!0,value:"50%"},transform:"translateX(-50%) translateY(-100%)"},"&-placement-bottomLeft":{"--arrow-offset-horizontal":l,[`> ${r}-arrow`]:{left:{_skip_check_:!0,value:l}}},"&-placement-bottomRight":{"--arrow-offset-horizontal":`calc(100% - ${ne(l)})`,[`> ${r}-arrow`]:{right:{_skip_check_:!0,value:l}}}})),Yf(!!d.left,{[[`&-placement-left > ${r}-arrow`,`&-placement-leftTop > ${r}-arrow`,`&-placement-leftBottom > ${r}-arrow`].join(",")]:{right:{_skip_check_:!0,value:c},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}})),Yf(!!d.right,{[[`&-placement-right > ${r}-arrow`,`&-placement-rightTop > ${r}-arrow`,`&-placement-rightBottom > ${r}-arrow`].join(",")]:{left:{_skip_check_:!0,value:c},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 qz(e,t,n,r){if(r===!1)return{adjustX:!1,adjustY:!1};const a=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 l=Object.assign(Object.assign({},o),a);return l.shiftX||(l.adjustX=!0),l.shiftY||(l.adjustY=!0),l}const f$={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"]}},Yz={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"]}},Gz=new Set(["topLeft","topRight","bottomLeft","bottomRight","leftTop","leftBottom","rightTop","rightBottom"]);function K2(e){const{arrowWidth:t,autoAdjustOverflow:n,arrowPointAtCenter:r,offset:a,borderRadius:o,visibleFirst:l}=e,c=t/2,d={};return Object.keys(f$).forEach(f=>{const m=r&&Yz[f]||f$[f],p=Object.assign(Object.assign({},m),{offset:[0,0],dynamicInset:!0});switch(d[f]=p,Gz.has(f)&&(p.autoArrow=!1),f){case"top":case"topLeft":case"topRight":p.offset[1]=-c-a;break;case"bottom":case"bottomLeft":case"bottomRight":p.offset[1]=c+a;break;case"left":case"leftTop":case"leftBottom":p.offset[0]=-c-a;break;case"right":case"rightTop":case"rightBottom":p.offset[0]=c+a;break}const v=Ob({contentRadius:o,limitVerticalRadius:!0});if(r)switch(f){case"topLeft":case"bottomLeft":p.offset[0]=-v.arrowOffsetHorizontal-c;break;case"topRight":case"bottomRight":p.offset[0]=v.arrowOffsetHorizontal+c;break;case"leftTop":case"rightTop":p.offset[1]=-v.arrowOffsetHorizontal*2+c;break;case"leftBottom":case"rightBottom":p.offset[1]=v.arrowOffsetHorizontal*2-c;break}p.overflow=qz(f,v,t,n),l&&(p.htmlRegion="visibleFirst")}),d}const Xz=e=>{const{calc:t,componentCls:n,tooltipMaxWidth:r,tooltipColor:a,tooltipBg:o,tooltipBorderRadius:l,zIndexPopup:c,controlHeight:d,boxShadowSecondary:f,paddingSM:m,paddingXS:p,arrowOffsetHorizontal:v,sizePopupArrow:h}=e,b=t(l).add(h).add(v).equal(),x=t(l).mul(2).add(h).equal();return[{[n]:Object.assign(Object.assign(Object.assign(Object.assign({},Ln(e)),{position:"absolute",zIndex:c,display:"block",width:"max-content",maxWidth:r,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":o,[`${n}-inner`]:{minWidth:x,minHeight:d,padding:`${ne(e.calc(m).div(2).equal())} ${ne(p)}`,color:a,textAlign:"start",textDecoration:"none",wordWrap:"break-word",backgroundColor:o,borderRadius:l,boxShadow:f,boxSizing:"border-box"},[["&-placement-topLeft","&-placement-topRight","&-placement-bottomLeft","&-placement-bottomRight"].join(",")]:{minWidth:b},[["&-placement-left","&-placement-leftTop","&-placement-leftBottom","&-placement-right","&-placement-rightTop","&-placement-rightBottom"].join(",")]:{[`${n}-inner`]:{borderRadius:e.min(l,V2)}},[`${n}-content`]:{position:"relative"}}),_I(e,(y,C)=>{let{darkColor:w}=C;return{[`&${n}-${y}`]:{[`${n}-inner`]:{backgroundColor:w},[`${n}-arrow`]:{"--antd-arrow-background-color":w}}}})),{"&-rtl":{direction:"rtl"}})},W2(e,"var(--antd-arrow-background-color)"),{[`${n}-pure`]:{position:"relative",maxWidth:"none",margin:e.sizePopupArrow}}]},Qz=e=>Object.assign(Object.assign({zIndexPopup:e.zIndexPopupBase+70},Ob({contentRadius:e.borderRadius,limitVerticalRadius:!0})),Ib($n(e,{borderRadiusOuter:Math.min(e.borderRadiusOuter,4)}))),U2=function(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0;return zn("Tooltip",r=>{const{borderRadius:a,colorTextLightSolid:o,colorBgSpotlight:l}=r,c=$n(r,{tooltipMaxWidth:250,tooltipColor:o,tooltipBorderRadius:a,tooltipBg:l});return[Xz(c),fb(r,"zoom-big-fast")]},Qz,{resetStyle:!1,injectStyle:t})(e)},Jz=Kl.map(e=>`${e}-inverse`),Zz=["success","processing","error","default","warning"];function q2(e){return(arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0)?[].concat(Te(Jz),Te(Kl)).includes(e):Kl.includes(e)}function e8(e){return Zz.includes(e)}function Y2(e,t){const n=q2(t),r=ce({[`${e}-${t}`]:t&&n}),a={},o={};return t&&!n&&(a.background=t,o["--antd-arrow-background-color"]=t),{className:r,overlayStyle:a,arrowStyle:o}}const t8=e=>{const{prefixCls:t,className:n,placement:r="top",title:a,color:o,overlayInnerStyle:l}=e,{getPrefixCls:c}=i.useContext(Gt),d=c("tooltip",t),[f,m,p]=U2(d),v=Y2(d,o),h=v.arrowStyle,b=Object.assign(Object.assign({},l),v.overlayStyle),x=ce(m,p,d,`${d}-pure`,`${d}-placement-${r}`,n,v.className);return f(i.createElement("div",{className:x,style:h},i.createElement("div",{className:`${d}-arrow`}),i.createElement(B2,Object.assign({},e,{className:m,prefixCls:d,overlayInnerStyle:b}),a)))};var n8=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 a=0,r=Object.getOwnPropertySymbols(e);a{var n,r;const{prefixCls:a,openClassName:o,getTooltipContainer:l,color:c,overlayInnerStyle:d,children:f,afterOpenChange:m,afterVisibleChange:p,destroyTooltipOnHide:v,arrow:h=!0,title:b,overlay:x,builtinPlacements:y,arrowPointAtCenter:C=!1,autoAdjustOverflow:w=!0,motion:E,getPopupContainer:I,placement:_="top",mouseEnterDelay:O=.1,mouseLeaveDelay:P=.1,overlayStyle:j,rootClassName:R,overlayClassName:k,styles:L,classNames:W}=e,B=n8(e,["prefixCls","openClassName","getTooltipContainer","color","overlayInnerStyle","children","afterOpenChange","afterVisibleChange","destroyTooltipOnHide","arrow","title","overlay","builtinPlacements","arrowPointAtCenter","autoAdjustOverflow","motion","getPopupContainer","placement","mouseEnterDelay","mouseLeaveDelay","overlayStyle","rootClassName","overlayClassName","styles","classNames"]),F=!!h,[,A]=ba(),{getPopupContainer:T,getPrefixCls:M,direction:D,className:V,style:K,classNames:z,styles:U}=wa("tooltip"),Y=ml(),q=i.useRef(null),X=()=>{var ze;(ze=q.current)===null||ze===void 0||ze.forceAlign()};i.useImperativeHandle(t,()=>{var ze,Ae;return{forceAlign:X,forcePopupAlign:()=>{Y.deprecated(!1,"forcePopupAlign","forceAlign"),X()},nativeElement:(ze=q.current)===null||ze===void 0?void 0:ze.nativeElement,popupElement:(Ae=q.current)===null||Ae===void 0?void 0:Ae.popupElement}});const[te,ee]=Hn(!1,{value:(n=e.open)!==null&&n!==void 0?n:e.visible,defaultValue:(r=e.defaultOpen)!==null&&r!==void 0?r:e.defaultVisible}),J=!b&&!x&&b!==0,ie=ze=>{var Ae,Ie;ee(J?!1:ze),J||((Ae=e.onOpenChange)===null||Ae===void 0||Ae.call(e,ze),(Ie=e.onVisibleChange)===null||Ie===void 0||Ie.call(e,ze))},de=i.useMemo(()=>{var ze,Ae;let Ie=C;return typeof h=="object"&&(Ie=(Ae=(ze=h.pointAtCenter)!==null&&ze!==void 0?ze:h.arrowPointAtCenter)!==null&&Ae!==void 0?Ae:C),y||K2({arrowPointAtCenter:Ie,autoAdjustOverflow:w,arrowWidth:F?A.sizePopupArrow:0,borderRadius:A.borderRadius,offset:A.marginXXS,visibleFirst:!0})},[C,h,y,A]),oe=i.useMemo(()=>b===0?b:x||b||"",[x,b]),le=i.createElement(sl,{space:!0},typeof oe=="function"?oe():oe),ae=M("tooltip",a),ue=M(),pe=e["data-popover-inject"];let fe=te;!("open"in e)&&!("visible"in e)&&J&&(fe=!1);const xe=i.isValidElement(f)&&!KI(f)?f:i.createElement("span",null,f),Ee=xe.props,Le=!Ee.className||typeof Ee.className=="string"?ce(Ee.className,o||`${ae}-open`):Ee.className,[Ne,ge,we]=U2(ae,!pe),Se=Y2(ae,c),Re=Se.arrowStyle,De=ce(k,{[`${ae}-rtl`]:D==="rtl"},Se.className,R,ge,we,V,z.root,W==null?void 0:W.root),Me=ce(z.body,W==null?void 0:W.body),[Ye,qe]=dc("Tooltip",B.zIndex),He=i.createElement(Uz,Object.assign({},B,{zIndex:Ye,showArrow:F,placement:_,mouseEnterDelay:O,mouseLeaveDelay:P,prefixCls:ae,classNames:{root:De,body:Me},styles:{root:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},Re),U.root),K),j),L==null?void 0:L.root),body:Object.assign(Object.assign(Object.assign(Object.assign({},U.body),d),L==null?void 0:L.body),Se.overlayStyle)},getTooltipContainer:I||l||T,ref:q,builtinPlacements:de,overlay:le,visible:fe,onVisibleChange:ie,afterVisibleChange:m??p,arrowContent:i.createElement("span",{className:`${ae}-arrow-content`}),motion:{motionName:ub(ue,"zoom-big-fast",e.transitionName),motionDeadline:1e3},destroyTooltipOnHide:!!v}),fe?ia(xe,{className:Le}):xe);return Ne(i.createElement(sb.Provider,{value:qe},He))}),io=r8;io._InternalPanelDoNotUseOrYouWillBeFired=t8;var a8={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"},o8=function(t,n){return i.createElement(pn,Pe({},t,{ref:n,icon:a8}))},ed=i.forwardRef(o8),i8=$t.ESC,l8=$t.TAB;function s8(e){var t=e.visible,n=e.triggerRef,r=e.onVisibleChange,a=e.autoFocus,o=e.overlayRef,l=i.useRef(!1),c=function(){if(t){var p,v;(p=n.current)===null||p===void 0||(v=p.focus)===null||v===void 0||v.call(p),r==null||r(!1)}},d=function(){var p;return(p=o.current)!==null&&p!==void 0&&p.focus?(o.current.focus(),l.current=!0,!0):!1},f=function(p){switch(p.keyCode){case i8:c();break;case l8:{var v=!1;l.current||(v=d()),v?p.preventDefault():c();break}}};i.useEffect(function(){return t?(window.addEventListener("keydown",f),a&&mn(d,3),function(){window.removeEventListener("keydown",f),l.current=!1}):function(){l.current=!1}},[t])}var c8=i.forwardRef(function(e,t){var n=e.overlay,r=e.arrow,a=e.prefixCls,o=i.useMemo(function(){var c;return typeof n=="function"?c=n():c=n,c},[n]),l=ya(t,fl(o));return be.createElement(be.Fragment,null,r&&be.createElement("div",{className:"".concat(a,"-arrow")}),be.cloneElement(o,{ref:Io(o)?l:void 0}))}),Ds={adjustX:1,adjustY:1},Fs=[0,0],u8={topLeft:{points:["bl","tl"],overflow:Ds,offset:[0,-4],targetOffset:Fs},top:{points:["bc","tc"],overflow:Ds,offset:[0,-4],targetOffset:Fs},topRight:{points:["br","tr"],overflow:Ds,offset:[0,-4],targetOffset:Fs},bottomLeft:{points:["tl","bl"],overflow:Ds,offset:[0,4],targetOffset:Fs},bottom:{points:["tc","bc"],overflow:Ds,offset:[0,4],targetOffset:Fs},bottomRight:{points:["tr","br"],overflow:Ds,offset:[0,4],targetOffset:Fs}},d8=["arrow","prefixCls","transitionName","animation","align","placement","placements","getPopupContainer","showAction","hideAction","overlayClassName","overlayStyle","visible","trigger","autoFocus","overlay","children","onVisibleChange"];function f8(e,t){var n,r=e.arrow,a=r===void 0?!1:r,o=e.prefixCls,l=o===void 0?"rc-dropdown":o,c=e.transitionName,d=e.animation,f=e.align,m=e.placement,p=m===void 0?"bottomLeft":m,v=e.placements,h=v===void 0?u8:v,b=e.getPopupContainer,x=e.showAction,y=e.hideAction,C=e.overlayClassName,w=e.overlayStyle,E=e.visible,I=e.trigger,_=I===void 0?["hover"]:I,O=e.autoFocus,P=e.overlay,j=e.children,R=e.onVisibleChange,k=Kt(e,d8),L=be.useState(),W=se(L,2),B=W[0],F=W[1],A="visible"in e?E:B,T=be.useRef(null),M=be.useRef(null),D=be.useRef(null);be.useImperativeHandle(t,function(){return T.current});var V=function(J){F(J),R==null||R(J)};s8({visible:A,triggerRef:D,onVisibleChange:V,autoFocus:O,overlayRef:M});var K=function(J){var ie=e.onOverlayClick;F(!1),ie&&ie(J)},z=function(){return be.createElement(c8,{ref:M,overlay:P,prefixCls:l,arrow:a})},U=function(){return typeof P=="function"?z:z()},Y=function(){var J=e.minOverlayWidthMatchTrigger,ie=e.alignPoint;return"minOverlayWidthMatchTrigger"in e?J:!ie},q=function(){var J=e.openClassName;return J!==void 0?J:"".concat(l,"-open")},X=be.cloneElement(j,{className:ce((n=j.props)===null||n===void 0?void 0:n.className,A&&q()),ref:Io(j)?ya(D,fl(j)):void 0}),te=y;return!te&&_.indexOf("contextMenu")!==-1&&(te=["click"]),be.createElement(Cd,Pe({builtinPlacements:h},k,{prefixCls:l,ref:T,popupClassName:ce(C,G({},"".concat(l,"-show-arrow"),a)),popupStyle:w,action:_,showAction:x,hideAction:te,popupPlacement:p,popupAlign:f,popupTransitionName:c,popupAnimation:d,popupVisible:A,stretch:Y()?"minWidth":"",popup:U(),onPopupVisibleChange:V,onPopupClick:K,getPopupContainer:b}),X)}const G2=be.forwardRef(f8),m8=e=>typeof e!="object"&&typeof e!="function"||e===null;var X2=i.createContext(null);function Q2(e,t){return e===void 0?null:"".concat(e,"-").concat(t)}function J2(e){var t=i.useContext(X2);return Q2(t,e)}var p8=["children","locked"],Ro=i.createContext(null);function v8(e,t){var n=Z({},e);return Object.keys(t).forEach(function(r){var a=t[r];a!==void 0&&(n[r]=a)}),n}function td(e){var t=e.children,n=e.locked,r=Kt(e,p8),a=i.useContext(Ro),o=Xl(function(){return v8(a,r)},[a,r],function(l,c){return!n&&(l[0]!==c[0]||!Ko(l[1],c[1],!0))});return i.createElement(Ro.Provider,{value:o},t)}var g8=[],Z2=i.createContext(null);function Ap(){return i.useContext(Z2)}var eO=i.createContext(g8);function gc(e){var t=i.useContext(eO);return i.useMemo(function(){return e!==void 0?[].concat(Te(t),[e]):t},[t,e])}var tO=i.createContext(null),Rb=i.createContext({});function m$(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;if(fc(e)){var n=e.nodeName.toLowerCase(),r=["input","select","textarea","button"].includes(n)||e.isContentEditable||n==="a"&&!!e.getAttribute("href"),a=e.getAttribute("tabindex"),o=Number(a),l=null;return a&&!Number.isNaN(o)?l=o:r&&l===null&&(l=0),r&&e.disabled&&(l=null),l!==null&&(l>=0||t&&l<0)}return!1}function h8(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,n=Te(e.querySelectorAll("*")).filter(function(r){return m$(r,t)});return m$(e,t)&&n.unshift(e),n}var f0=$t.LEFT,m0=$t.RIGHT,p0=$t.UP,Cm=$t.DOWN,wm=$t.ENTER,nO=$t.ESC,cu=$t.HOME,uu=$t.END,p$=[p0,Cm,f0,m0];function y8(e,t,n,r){var a,o="prev",l="next",c="children",d="parent";if(e==="inline"&&r===wm)return{inlineTrigger:!0};var f=G(G({},p0,o),Cm,l),m=G(G(G(G({},f0,n?l:o),m0,n?o:l),Cm,c),wm,c),p=G(G(G(G(G(G({},p0,o),Cm,l),wm,c),nO,d),f0,n?c:d),m0,n?d:c),v={inline:f,horizontal:m,vertical:p,inlineSub:f,horizontalSub:p,verticalSub:p},h=(a=v["".concat(e).concat(t?"":"Sub")])===null||a===void 0?void 0:a[r];switch(h){case o:return{offset:-1,sibling:!0};case l:return{offset:1,sibling:!0};case d:return{offset:-1,sibling:!1};case c:return{offset:1,sibling:!1};default:return null}}function b8(e){for(var t=e;t;){if(t.getAttribute("data-menu-list"))return t;t=t.parentElement}return null}function x8(e,t){for(var n=e||document.activeElement;n;){if(t.has(n))return n;n=n.parentElement}return null}function Pb(e,t){var n=h8(e,!0);return n.filter(function(r){return t.has(r)})}function v$(e,t,n){var r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:1;if(!e)return null;var a=Pb(e,t),o=a.length,l=a.findIndex(function(c){return n===c});return r<0?l===-1?l=o-1:l-=1:r>0&&(l+=1),l=(l+o)%o,a[l]}var v0=function(t,n){var r=new Set,a=new Map,o=new Map;return t.forEach(function(l){var c=document.querySelector("[data-menu-id='".concat(Q2(n,l),"']"));c&&(r.add(c),o.set(c,l),a.set(l,c))}),{elements:r,key2element:a,element2key:o}};function S8(e,t,n,r,a,o,l,c,d,f){var m=i.useRef(),p=i.useRef();p.current=t;var v=function(){mn.cancel(m.current)};return i.useEffect(function(){return function(){v()}},[]),function(h){var b=h.which;if([].concat(p$,[wm,nO,cu,uu]).includes(b)){var x=o(),y=v0(x,r),C=y,w=C.elements,E=C.key2element,I=C.element2key,_=E.get(t),O=x8(_,w),P=I.get(O),j=y8(e,l(P,!0).length===1,n,b);if(!j&&b!==cu&&b!==uu)return;(p$.includes(b)||[cu,uu].includes(b))&&h.preventDefault();var R=function(M){if(M){var D=M,V=M.querySelector("a");V!=null&&V.getAttribute("href")&&(D=V);var K=I.get(M);c(K),v(),m.current=mn(function(){p.current===K&&D.focus()})}};if([cu,uu].includes(b)||j.sibling||!O){var k;!O||e==="inline"?k=a.current:k=b8(O);var L,W=Pb(k,w);b===cu?L=W[0]:b===uu?L=W[W.length-1]:L=v$(k,w,O,j.offset),R(L)}else if(j.inlineTrigger)d(P);else if(j.offset>0)d(P,!0),v(),m.current=mn(function(){y=v0(x,r);var T=O.getAttribute("aria-controls"),M=document.getElementById(T),D=v$(M,y.elements);R(D)},5);else if(j.offset<0){var B=l(P,!0),F=B[B.length-2],A=E.get(F);d(F,!1),R(A)}}f==null||f(h)}}function C8(e){Promise.resolve().then(e)}var Nb="__RC_UTIL_PATH_SPLIT__",g$=function(t){return t.join(Nb)},w8=function(t){return t.split(Nb)},g0="rc-menu-more";function $8(){var e=i.useState({}),t=se(e,2),n=t[1],r=i.useRef(new Map),a=i.useRef(new Map),o=i.useState([]),l=se(o,2),c=l[0],d=l[1],f=i.useRef(0),m=i.useRef(!1),p=function(){m.current||n({})},v=i.useCallback(function(E,I){var _=g$(I);a.current.set(_,E),r.current.set(E,_),f.current+=1;var O=f.current;C8(function(){O===f.current&&p()})},[]),h=i.useCallback(function(E,I){var _=g$(I);a.current.delete(_),r.current.delete(E)},[]),b=i.useCallback(function(E){d(E)},[]),x=i.useCallback(function(E,I){var _=r.current.get(E)||"",O=w8(_);return I&&c.includes(O[0])&&O.unshift(g0),O},[c]),y=i.useCallback(function(E,I){return E.filter(function(_){return _!==void 0}).some(function(_){var O=x(_,!0);return O.includes(I)})},[x]),C=function(){var I=Te(r.current.keys());return c.length&&I.push(g0),I},w=i.useCallback(function(E){var I="".concat(r.current.get(E)).concat(Nb),_=new Set;return Te(a.current.keys()).forEach(function(O){O.startsWith(I)&&_.add(a.current.get(O))}),_},[]);return i.useEffect(function(){return function(){m.current=!0}},[]),{registerPath:v,unregisterPath:h,refreshOverflowKeys:b,isSubPathKey:y,getKeyPath:x,getKeys:C,getSubPathKeys:w}}function xu(e){var t=i.useRef(e);t.current=e;var n=i.useCallback(function(){for(var r,a=arguments.length,o=new Array(a),l=0;l1&&(w.motionAppear=!1);var E=w.onVisibleChanged;return w.onVisibleChanged=function(I){return!v.current&&!I&&y(!0),E==null?void 0:E(I)},x?null:i.createElement(td,{mode:o,locked:!v.current},i.createElement(ko,Pe({visible:C},w,{forceRender:d,removeOnLeave:!1,leavedClassName:"".concat(c,"-hidden")}),function(I){var _=I.className,O=I.style;return i.createElement(jb,{id:t,className:_,style:O},a)}))}var B8=["style","className","title","eventKey","warnKey","disabled","internalPopupClose","children","itemIcon","expandIcon","popupClassName","popupOffset","popupStyle","onClick","onMouseEnter","onMouseLeave","onTitleClick","onTitleMouseEnter","onTitleMouseLeave"],H8=["active"],V8=i.forwardRef(function(e,t){var n=e.style,r=e.className,a=e.title,o=e.eventKey;e.warnKey;var l=e.disabled,c=e.internalPopupClose,d=e.children,f=e.itemIcon,m=e.expandIcon,p=e.popupClassName,v=e.popupOffset,h=e.popupStyle,b=e.onClick,x=e.onMouseEnter,y=e.onMouseLeave,C=e.onTitleClick,w=e.onTitleMouseEnter,E=e.onTitleMouseLeave,I=Kt(e,B8),_=J2(o),O=i.useContext(Ro),P=O.prefixCls,j=O.mode,R=O.openKeys,k=O.disabled,L=O.overflowDisabled,W=O.activeKey,B=O.selectedKeys,F=O.itemIcon,A=O.expandIcon,T=O.onItemClick,M=O.onOpenChange,D=O.onActive,V=i.useContext(Rb),K=V._internalRenderSubMenuItem,z=i.useContext(tO),U=z.isSubPathKey,Y=gc(),q="".concat(P,"-submenu"),X=k||l,te=i.useRef(),ee=i.useRef(),J=f??F,ie=m??A,de=R.includes(o),oe=!L&&de,le=U(B,o),ae=rO(o,X,w,E),ue=ae.active,pe=Kt(ae,H8),fe=i.useState(!1),xe=se(fe,2),Ee=xe[0],Le=xe[1],Ne=function(_e){X||Le(_e)},ge=function(_e){Ne(!0),x==null||x({key:o,domEvent:_e})},we=function(_e){Ne(!1),y==null||y({key:o,domEvent:_e})},Se=i.useMemo(function(){return ue||(j!=="inline"?Ee||U([W],o):!1)},[j,ue,W,Ee,o,U]),Re=aO(Y.length),De=function(_e){X||(C==null||C({key:o,domEvent:_e}),j==="inline"&&M(o,!de))},Me=xu(function(Ce){b==null||b(qm(Ce)),T(Ce)}),Ye=function(_e){j!=="inline"&&M(o,_e)},qe=function(){D(o)},He=_&&"".concat(_,"-popup"),ze=i.useMemo(function(){return i.createElement(oO,{icon:j!=="horizontal"?ie:void 0,props:Z(Z({},e),{},{isOpen:oe,isSubMenu:!0})},i.createElement("i",{className:"".concat(q,"-arrow")}))},[j,ie,e,oe,q]),Ae=i.createElement("div",Pe({role:"menuitem",style:Re,className:"".concat(q,"-title"),tabIndex:X?null:-1,ref:te,title:typeof a=="string"?a:null,"data-menu-id":L&&_?null:_,"aria-expanded":oe,"aria-haspopup":!0,"aria-controls":He,"aria-disabled":X,onClick:De,onFocus:qe},pe),a,ze),Ie=i.useRef(j);if(j!=="inline"&&Y.length>1?Ie.current="vertical":Ie.current=j,!L){var Ve=Ie.current;Ae=i.createElement(A8,{mode:Ve,prefixCls:q,visible:!c&&oe&&j!=="inline",popupClassName:p,popupOffset:v,popupStyle:h,popup:i.createElement(td,{mode:Ve==="horizontal"?"vertical":Ve},i.createElement(jb,{id:He,ref:ee},d)),disabled:X,onVisibleChange:Ye},Ae)}var ye=i.createElement(Eo.Item,Pe({ref:t,role:"none"},I,{component:"li",style:n,className:ce(q,"".concat(q,"-").concat(j),r,G(G(G(G({},"".concat(q,"-open"),oe),"".concat(q,"-active"),Se),"".concat(q,"-selected"),le),"".concat(q,"-disabled"),X)),onMouseEnter:ge,onMouseLeave:we}),Ae,!L&&i.createElement(z8,{id:He,open:oe,keyPath:Y},d));return K&&(ye=K(ye,e,{selected:le,active:Se,open:oe,disabled:X})),i.createElement(td,{onItemClick:Me,mode:j==="horizontal"?"vertical":j,itemIcon:J,expandIcon:ie},ye)}),zp=i.forwardRef(function(e,t){var n=e.eventKey,r=e.children,a=gc(n),o=kb(r,a),l=Ap();i.useEffect(function(){if(l)return l.registerPath(n,a),function(){l.unregisterPath(n,a)}},[a]);var c;return l?c=o:c=i.createElement(V8,Pe({ref:t},e),o),i.createElement(eO.Provider,{value:a},c)});function Mb(e){var t=e.className,n=e.style,r=i.useContext(Ro),a=r.prefixCls,o=Ap();return o?null:i.createElement("li",{role:"separator",className:ce("".concat(a,"-item-divider"),t),style:n})}var W8=["className","title","eventKey","children"],K8=i.forwardRef(function(e,t){var n=e.className,r=e.title;e.eventKey;var a=e.children,o=Kt(e,W8),l=i.useContext(Ro),c=l.prefixCls,d="".concat(c,"-item-group");return i.createElement("li",Pe({ref:t,role:"presentation"},o,{onClick:function(m){return m.stopPropagation()},className:ce(d,n)}),i.createElement("div",{role:"presentation",className:"".concat(d,"-title"),title:typeof r=="string"?r:void 0},r),i.createElement("ul",{role:"group",className:"".concat(d,"-list")},a))}),Tb=i.forwardRef(function(e,t){var n=e.eventKey,r=e.children,a=gc(n),o=kb(r,a),l=Ap();return l?o:i.createElement(K8,Pe({ref:t},Qn(e,["warnKey"])),o)}),U8=["label","children","key","type","extra"];function h0(e,t,n){var r=t.item,a=t.group,o=t.submenu,l=t.divider;return(e||[]).map(function(c,d){if(c&&wt(c)==="object"){var f=c,m=f.label,p=f.children,v=f.key,h=f.type,b=f.extra,x=Kt(f,U8),y=v??"tmp-".concat(d);return p||h==="group"?h==="group"?i.createElement(a,Pe({key:y},x,{title:m}),h0(p,t,n)):i.createElement(o,Pe({key:y},x,{title:m}),h0(p,t,n)):h==="divider"?i.createElement(l,Pe({key:y},x)):i.createElement(r,Pe({key:y},x,{extra:b}),m,(!!b||b===0)&&i.createElement("span",{className:"".concat(n,"-item-extra")},b))}return null}).filter(function(c){return c})}function y$(e,t,n,r,a){var o=e,l=Z({divider:Mb,item:wd,group:Tb,submenu:zp},r);return t&&(o=h0(t,l,a)),kb(o,n)}var q8=["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"],Pl=[],Y8=i.forwardRef(function(e,t){var n,r=e,a=r.prefixCls,o=a===void 0?"rc-menu":a,l=r.rootClassName,c=r.style,d=r.className,f=r.tabIndex,m=f===void 0?0:f,p=r.items,v=r.children,h=r.direction,b=r.id,x=r.mode,y=x===void 0?"vertical":x,C=r.inlineCollapsed,w=r.disabled,E=r.disabledOverflow,I=r.subMenuOpenDelay,_=I===void 0?.1:I,O=r.subMenuCloseDelay,P=O===void 0?.1:O,j=r.forceSubMenuRender,R=r.defaultOpenKeys,k=r.openKeys,L=r.activeKey,W=r.defaultActiveFirst,B=r.selectable,F=B===void 0?!0:B,A=r.multiple,T=A===void 0?!1:A,M=r.defaultSelectedKeys,D=r.selectedKeys,V=r.onSelect,K=r.onDeselect,z=r.inlineIndent,U=z===void 0?24:z,Y=r.motion,q=r.defaultMotions,X=r.triggerSubMenuAction,te=X===void 0?"hover":X,ee=r.builtinPlacements,J=r.itemIcon,ie=r.expandIcon,de=r.overflowedIndicator,oe=de===void 0?"...":de,le=r.overflowedIndicatorPopupClassName,ae=r.getPopupContainer,ue=r.onClick,pe=r.onOpenChange,fe=r.onKeyDown;r.openAnimation,r.openTransitionName;var xe=r._internalRenderMenuItem,Ee=r._internalRenderSubMenuItem,Le=r._internalComponents,Ne=Kt(r,q8),ge=i.useMemo(function(){return[y$(v,p,Pl,Le,o),y$(v,p,Pl,{},o)]},[v,p,Le]),we=se(ge,2),Se=we[0],Re=we[1],De=i.useState(!1),Me=se(De,2),Ye=Me[0],qe=Me[1],He=i.useRef(),ze=_8(b),Ae=h==="rtl",Ie=Hn(R,{value:k,postState:function(Dt){return Dt||Pl}}),Ve=se(Ie,2),ye=Ve[0],Ce=Ve[1],_e=function(Dt){var Rt=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;function Rn(){Ce(Dt),pe==null||pe(Dt)}Rt?_o.flushSync(Rn):Rn()},he=i.useState(ye),ke=se(he,2),tt=ke[0],Nt=ke[1],Ht=i.useRef(!1),Ge=i.useMemo(function(){return(y==="inline"||y==="vertical")&&C?["vertical",C]:[y,!1]},[y,C]),rt=se(Ge,2),gt=rt[0],at=rt[1],dt=gt==="inline",st=i.useState(gt),et=se(st,2),Qe=et[0],Tt=et[1],kt=i.useState(at),Xe=se(kt,2),Ze=Xe[0],Et=Xe[1];i.useEffect(function(){Tt(gt),Et(at),Ht.current&&(dt?Ce(tt):_e(Pl))},[gt,at]);var Ot=i.useState(0),xt=se(Ot,2),Lt=xt[0],Ct=xt[1],ht=Lt>=Se.length-1||Qe!=="horizontal"||E;i.useEffect(function(){dt&&Nt(ye)},[ye]),i.useEffect(function(){return Ht.current=!0,function(){Ht.current=!1}},[]);var Ft=$8(),At=Ft.registerPath,en=Ft.unregisterPath,vn=Ft.refreshOverflowKeys,sn=Ft.isSubPathKey,yn=Ft.getKeyPath,On=Ft.getKeys,kn=Ft.getSubPathKeys,nt=i.useMemo(function(){return{registerPath:At,unregisterPath:en}},[At,en]),_t=i.useMemo(function(){return{isSubPathKey:sn}},[sn]);i.useEffect(function(){vn(ht?Pl:Se.slice(Lt+1).map(function(_n){return _n.key}))},[Lt,ht]);var ut=Hn(L||W&&((n=Se[0])===null||n===void 0?void 0:n.key),{value:L}),Ke=se(ut,2),zt=Ke[0],nn=Ke[1],En=xu(function(_n){nn(_n)}),Tn=xu(function(){nn(void 0)});i.useImperativeHandle(t,function(){return{list:He.current,focus:function(Dt){var Rt,Rn=On(),Pt=v0(Rn,ze),It=Pt.elements,gn=Pt.key2element,Kn=Pt.element2key,Zn=Pb(He.current,It),fn=zt??(Zn[0]?Kn.get(Zn[0]):(Rt=Se.find(function(mt){return!mt.props.disabled}))===null||Rt===void 0?void 0:Rt.key),xr=gn.get(fn);if(fn&&xr){var Ir;xr==null||(Ir=xr.focus)===null||Ir===void 0||Ir.call(xr,Dt)}}}});var Mt=Hn(M||[],{value:D,postState:function(Dt){return Array.isArray(Dt)?Dt:Dt==null?Pl:[Dt]}}),Bt=se(Mt,2),rn=Bt[0],xn=Bt[1],fr=function(Dt){if(F){var Rt=Dt.key,Rn=rn.includes(Rt),Pt;T?Rn?Pt=rn.filter(function(gn){return gn!==Rt}):Pt=[].concat(Te(rn),[Rt]):Pt=[Rt],xn(Pt);var It=Z(Z({},Dt),{},{selectedKeys:Pt});Rn?K==null||K(It):V==null||V(It)}!T&&ye.length&&Qe!=="inline"&&_e(Pl)},Jn=xu(function(_n){ue==null||ue(qm(_n)),fr(_n)}),lr=xu(function(_n,Dt){var Rt=ye.filter(function(Pt){return Pt!==_n});if(Dt)Rt.push(_n);else if(Qe!=="inline"){var Rn=kn(_n);Rt=Rt.filter(function(Pt){return!Rn.has(Pt)})}Ko(ye,Rt,!0)||_e(Rt,!0)}),mr=function(Dt,Rt){var Rn=Rt??!ye.includes(Dt);lr(Dt,Rn)},Ur=S8(Qe,zt,Ae,ze,He,On,yn,nn,mr,fe);i.useEffect(function(){qe(!0)},[]);var Er=i.useMemo(function(){return{_internalRenderMenuItem:xe,_internalRenderSubMenuItem:Ee}},[xe,Ee]),er=Qe!=="horizontal"||E?Se:Se.map(function(_n,Dt){return i.createElement(td,{key:_n.key,overflowDisabled:Dt>Lt},_n)}),_r=i.createElement(Eo,Pe({id:b,ref:He,prefixCls:"".concat(o,"-overflow"),component:"ul",itemComponent:wd,className:ce(o,"".concat(o,"-root"),"".concat(o,"-").concat(Qe),d,G(G({},"".concat(o,"-inline-collapsed"),Ze),"".concat(o,"-rtl"),Ae),l),dir:h,style:c,role:"menu",tabIndex:m,data:er,renderRawItem:function(Dt){return Dt},renderRawRest:function(Dt){var Rt=Dt.length,Rn=Rt?Se.slice(-Rt):null;return i.createElement(zp,{eventKey:g0,title:oe,disabled:ht,internalPopupClose:Rt===0,popupClassName:le},Rn)},maxCount:Qe!=="horizontal"||E?Eo.INVALIDATE:Eo.RESPONSIVE,ssr:"full","data-menu-list":!0,onVisibleChange:function(Dt){Ct(Dt)},onKeyDown:Ur},Ne));return i.createElement(Rb.Provider,{value:Er},i.createElement(X2.Provider,{value:ze},i.createElement(td,{prefixCls:o,rootClassName:l,mode:Qe,openKeys:ye,rtl:Ae,disabled:w,motion:Ye?Y:null,defaultMotions:Ye?q:null,activeKey:zt,onActive:En,onInactive:Tn,selectedKeys:rn,inlineIndent:U,subMenuOpenDelay:_,subMenuCloseDelay:P,forceSubMenuRender:j,builtinPlacements:ee,triggerSubMenuAction:te,getPopupContainer:ae,itemIcon:J,expandIcon:ie,onItemClick:Jn,onOpenChange:lr},i.createElement(tO.Provider,{value:_t},_r),i.createElement("div",{style:{display:"none"},"aria-hidden":!0},i.createElement(Z2.Provider,{value:nt},Re)))))}),hc=Y8;hc.Item=wd;hc.SubMenu=zp;hc.ItemGroup=Tb;hc.Divider=Mb;var G8={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"},X8=function(t,n){return i.createElement(pn,Pe({},t,{ref:n,icon:G8}))},Q8=i.forwardRef(X8);const lO=i.createContext({siderHook:{addSider:()=>null,removeSider:()=>null}}),J8=e=>{const{antCls:t,componentCls:n,colorText:r,footerBg:a,headerHeight:o,headerPadding:l,headerColor:c,footerPadding:d,fontSize:f,bodyBg:m,headerBg:p}=e;return{[n]:{display:"flex",flex:"auto",flexDirection:"column",minHeight:0,background:m,"&, *":{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:l,color:c,lineHeight:ne(o),background:p,[`${t}-menu`]:{lineHeight:"inherit"}},[`${n}-footer`]:{padding:d,color:r,fontSize:f,background:a},[`${n}-content`]:{flex:"auto",color:r,minHeight:0}}},sO=e=>{const{colorBgLayout:t,controlHeight:n,controlHeightLG:r,colorText:a,controlHeightSM:o,marginXXS:l,colorTextLightSolid:c,colorBgContainer:d}=e,f=r*1.25;return{colorBgHeader:"#001529",colorBgBody:t,colorBgTrigger:"#002140",bodyBg:t,headerBg:"#001529",headerHeight:n*2,headerPadding:`0 ${f}px`,headerColor:a,footerPadding:`${o}px ${f}px`,footerBg:t,siderBg:"#001529",triggerHeight:r+l*2,triggerBg:"#002140",triggerColor:c,zeroTriggerWidth:r,zeroTriggerHeight:r,lightSiderBg:d,lightTriggerBg:d,lightTriggerColor:a}},cO=[["colorBgBody","bodyBg"],["colorBgHeader","headerBg"],["colorBgTrigger","triggerBg"]],uO=zn("Layout",e=>[J8(e)],sO,{deprecatedTokens:cO}),Z8=e=>{const{componentCls:t,siderBg:n,motionDurationMid:r,motionDurationSlow:a,antCls:o,triggerHeight:l,triggerColor:c,triggerBg:d,headerHeight:f,zeroTriggerWidth:m,zeroTriggerHeight:p,borderRadiusLG:v,lightSiderBg:h,lightTriggerColor:b,lightTriggerBg:x,bodyBg:y}=e;return{[t]:{position:"relative",minWidth:0,background:n,transition:`all ${r}, background 0s`,"&-has-trigger":{paddingBottom:l},"&-right":{order:1},[`${t}-children`]:{height:"100%",marginTop:-.1,paddingTop:.1,[`${o}-menu${o}-menu-inline-collapsed`]:{width:"auto"}},[`&-zero-width ${t}-children`]:{overflow:"hidden"},[`${t}-trigger`]:{position:"fixed",bottom:0,zIndex:1,height:l,color:c,lineHeight:ne(l),textAlign:"center",background:d,cursor:"pointer",transition:`all ${r}`},[`${t}-zero-width-trigger`]:{position:"absolute",top:f,insetInlineEnd:e.calc(m).mul(-1).equal(),zIndex:1,width:m,height:p,color:c,fontSize:e.fontSizeXL,display:"flex",alignItems:"center",justifyContent:"center",background:n,borderRadius:`0 ${ne(v)} ${ne(v)} 0`,cursor:"pointer",transition:`background ${a} ease`,"&::after":{position:"absolute",inset:0,background:"transparent",transition:`all ${a}`,content:'""'},"&:hover::after":{background:"rgba(255, 255, 255, 0.2)"},"&-right":{insetInlineStart:e.calc(m).mul(-1).equal(),borderRadius:`${ne(v)} 0 0 ${ne(v)}`}},"&-light":{background:h,[`${t}-trigger`]:{color:b,background:x},[`${t}-zero-width-trigger`]:{color:b,background:x,border:`1px solid ${y}`,borderInlineStart:0}}}}},eB=zn(["Layout","Sider"],e=>[Z8(e)],sO,{deprecatedTokens:cO});var tB=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 a=0,r=Object.getOwnPropertySymbols(e);a!Number.isNaN(Number.parseFloat(e))&&isFinite(e),Bp=i.createContext({}),rB=(()=>{let e=0;return function(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"";return e+=1,`${t}${e}`}})(),dO=i.forwardRef((e,t)=>{const{prefixCls:n,className:r,trigger:a,children:o,defaultCollapsed:l=!1,theme:c="dark",style:d={},collapsible:f=!1,reverseArrow:m=!1,width:p=200,collapsedWidth:v=80,zeroWidthTriggerStyle:h,breakpoint:b,onCollapse:x,onBreakpoint:y}=e,C=tB(e,["prefixCls","className","trigger","children","defaultCollapsed","theme","style","collapsible","reverseArrow","width","collapsedWidth","zeroWidthTriggerStyle","breakpoint","onCollapse","onBreakpoint"]),{siderHook:w}=i.useContext(lO),[E,I]=i.useState("collapsed"in e?e.collapsed:l),[_,O]=i.useState(!1);i.useEffect(()=>{"collapsed"in e&&I(e.collapsed)},[e.collapsed]);const P=(J,ie)=>{"collapsed"in e||I(J),x==null||x(J,ie)},{getPrefixCls:j,direction:R}=i.useContext(Gt),k=j("layout-sider",n),[L,W,B]=eB(k),F=i.useRef(null);F.current=J=>{O(J.matches),y==null||y(J.matches),E!==J.matches&&P(J.matches,"responsive")},i.useEffect(()=>{function J(de){return F.current(de)}let ie;if(typeof window<"u"){const{matchMedia:de}=window;if(de&&b&&b in b$){ie=de(`screen and (max-width: ${b$[b]})`);try{ie.addEventListener("change",J)}catch{ie.addListener(J)}J(ie)}}return()=>{try{ie==null||ie.removeEventListener("change",J)}catch{ie==null||ie.removeListener(J)}}},[b]),i.useEffect(()=>{const J=rB("ant-sider-");return w.addSider(J),()=>w.removeSider(J)},[]);const A=()=>{P(!E,"clickTrigger")},T=Qn(C,["collapsed"]),M=E?v:p,D=nB(M)?`${M}px`:String(M),V=parseFloat(String(v||0))===0?i.createElement("span",{onClick:A,className:ce(`${k}-zero-width-trigger`,`${k}-zero-width-trigger-${m?"right":"left"}`),style:h},a||i.createElement(Q8,null)):null,K=R==="rtl"==!m,Y={expanded:K?i.createElement(Qu,null):i.createElement(ed,null),collapsed:K?i.createElement(ed,null):i.createElement(Qu,null)}[E?"collapsed":"expanded"],q=a!==null?V||i.createElement("div",{className:`${k}-trigger`,onClick:A,style:{width:D}},a||Y):null,X=Object.assign(Object.assign({},d),{flex:`0 0 ${D}`,maxWidth:D,minWidth:D,width:D}),te=ce(k,`${k}-${c}`,{[`${k}-collapsed`]:!!E,[`${k}-has-trigger`]:f&&a!==null&&!V,[`${k}-below`]:!!_,[`${k}-zero-width`]:parseFloat(D)===0},r,W,B),ee=i.useMemo(()=>({siderCollapsed:E}),[E]);return L(i.createElement(Bp.Provider,{value:ee},i.createElement("aside",Object.assign({className:te},T,{style:X,ref:t}),i.createElement("div",{className:`${k}-children`},o),f||_&&V?q:null)))});var aB={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"},oB=function(t,n){return i.createElement(pn,Pe({},t,{ref:n,icon:aB}))},Db=i.forwardRef(oB);const Ym=i.createContext({prefixCls:"",firstLevel:!0,inlineCollapsed:!1});var iB=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 a=0,r=Object.getOwnPropertySymbols(e);a{const{prefixCls:t,className:n,dashed:r}=e,a=iB(e,["prefixCls","className","dashed"]),{getPrefixCls:o}=i.useContext(Gt),l=o("menu",t),c=ce({[`${l}-item-divider-dashed`]:!!r},n);return i.createElement(Mb,Object.assign({className:c},a))},mO=e=>{var t;const{className:n,children:r,icon:a,title:o,danger:l,extra:c}=e,{prefixCls:d,firstLevel:f,direction:m,disableMenuItemTitleTooltip:p,inlineCollapsed:v}=i.useContext(Ym),h=E=>{const I=r==null?void 0:r[0],_=i.createElement("span",{className:ce(`${d}-title-content`,{[`${d}-title-content-with-extra`]:!!c||c===0})},r);return(!a||i.isValidElement(r)&&r.type==="span")&&r&&E&&f&&typeof I=="string"?i.createElement("div",{className:`${d}-inline-collapsed-noicon`},I.charAt(0)):_},{siderCollapsed:b}=i.useContext(Bp);let x=o;typeof o>"u"?x=f?r:"":o===!1&&(x="");const y={title:x};!b&&!v&&(y.title=null,y.open=!1);const C=ga(r).length;let w=i.createElement(wd,Object.assign({},Qn(e,["title","icon","danger"]),{className:ce({[`${d}-item-danger`]:l,[`${d}-item-only-child`]:(a?C+1:C)===1},n),title:typeof o=="string"?o:void 0}),ia(a,{className:ce(i.isValidElement(a)?(t=a.props)===null||t===void 0?void 0:t.className:"",`${d}-item-icon`)}),h(v));return p||(w=i.createElement(io,Object.assign({},y,{placement:m==="rtl"?"left":"right",classNames:{root:`${d}-inline-collapsed-tooltip`}}),w)),w};var lB=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 a=0,r=Object.getOwnPropertySymbols(e);a{const{children:n}=e,r=lB(e,["children"]),a=i.useContext(Gm),o=i.useMemo(()=>Object.assign(Object.assign({},a),r),[a,r.prefixCls,r.mode,r.selectable,r.rootClassName]),l=Kk(n),c=dl(t,l?fl(n):null);return i.createElement(Gm.Provider,{value:o},i.createElement(sl,{space:!0},l?i.cloneElement(n,{ref:c}):n))}),sB=e=>{const{componentCls:t,motionDurationSlow:n,horizontalLineHeight:r,colorSplit:a,lineWidth:o,lineType:l,itemPaddingInline:c}=e;return{[`${t}-horizontal`]:{lineHeight:r,border:0,borderBottom:`${ne(o)} ${l} ${a}`,boxShadow:"none","&::after":{display:"block",clear:"both",height:0,content:'"\\20"'},[`${t}-item, ${t}-submenu`]:{position:"relative",display:"inline-block",verticalAlign:"bottom",paddingInline:c},[`> ${t}-item:hover, + > ${t}-item-active, + > ${t}-submenu ${t}-submenu-title:hover`]:{backgroundColor:"transparent"},[`${t}-item, ${t}-submenu-title`]:{transition:[`border-color ${n}`,`background ${n}`].join(",")},[`${t}-submenu-arrow`]:{display:"none"}}}},cB=e=>{let{componentCls:t,menuArrowOffset:n,calc:r}=e;return{[`${t}-rtl`]:{direction:"rtl"},[`${t}-submenu-rtl`]:{transformOrigin:"100% 0"},[`${t}-rtl${t}-vertical, + ${t}-submenu-rtl ${t}-vertical`]:{[`${t}-submenu-arrow`]:{"&::before":{transform:`rotate(-45deg) translateY(${ne(r(n).mul(-1).equal())})`},"&::after":{transform:`rotate(45deg) translateY(${ne(n)})`}}}}},x$=e=>Object.assign({},qo(e)),S$=(e,t)=>{const{componentCls:n,itemColor:r,itemSelectedColor:a,subMenuItemSelectedColor:o,groupTitleColor:l,itemBg:c,subMenuItemBg:d,itemSelectedBg:f,activeBarHeight:m,activeBarWidth:p,activeBarBorderWidth:v,motionDurationSlow:h,motionEaseInOut:b,motionEaseOut:x,itemPaddingInline:y,motionDurationMid:C,itemHoverColor:w,lineType:E,colorSplit:I,itemDisabledColor:_,dangerItemColor:O,dangerItemHoverColor:P,dangerItemSelectedColor:j,dangerItemActiveBg:R,dangerItemSelectedBg:k,popupBg:L,itemHoverBg:W,itemActiveBg:B,menuSubMenuBg:F,horizontalItemSelectedColor:A,horizontalItemSelectedBg:T,horizontalItemBorderRadius:M,horizontalItemHoverBg:D}=e;return{[`${n}-${t}, ${n}-${t} > ${n}`]:{color:r,background:c,[`&${n}-root:focus-visible`]:Object.assign({},x$(e)),[`${n}-item`]:{"&-group-title, &-extra":{color:l}},[`${n}-submenu-selected > ${n}-submenu-title`]:{color:o},[`${n}-item, ${n}-submenu-title`]:{color:r,[`&:not(${n}-item-disabled):focus-visible`]:Object.assign({},x$(e))},[`${n}-item-disabled, ${n}-submenu-disabled`]:{color:`${_} !important`},[`${n}-item:not(${n}-item-selected):not(${n}-submenu-selected)`]:{[`&:hover, > ${n}-submenu-title:hover`]:{color:w}},[`&:not(${n}-horizontal)`]:{[`${n}-item:not(${n}-item-selected)`]:{"&:hover":{backgroundColor:W},"&:active":{backgroundColor:B}},[`${n}-submenu-title`]:{"&:hover":{backgroundColor:W},"&:active":{backgroundColor:B}}},[`${n}-item-danger`]:{color:O,[`&${n}-item:hover`]:{[`&:not(${n}-item-selected):not(${n}-submenu-selected)`]:{color:P}},[`&${n}-item:active`]:{background:R}},[`${n}-item a`]:{"&, &:hover":{color:"inherit"}},[`${n}-item-selected`]:{color:a,[`&${n}-item-danger`]:{color:j},"a, a:hover":{color:"inherit"}},[`& ${n}-item-selected`]:{backgroundColor:f,[`&${n}-item-danger`]:{backgroundColor:k}},[`&${n}-submenu > ${n}`]:{backgroundColor:F},[`&${n}-popup > ${n}`]:{backgroundColor:L},[`&${n}-submenu-popup > ${n}`]:{backgroundColor:L},[`&${n}-horizontal`]:Object.assign(Object.assign({},t==="dark"?{borderBottom:0}:{}),{[`> ${n}-item, > ${n}-submenu`]:{top:v,marginTop:e.calc(v).mul(-1).equal(),marginBottom:0,borderRadius:M,"&::after":{position:"absolute",insetInline:y,bottom:0,borderBottom:`${ne(m)} solid transparent`,transition:`border-color ${h} ${b}`,content:'""'},"&:hover, &-active, &-open":{background:D,"&::after":{borderBottomWidth:m,borderBottomColor:A}},"&-selected":{color:A,backgroundColor:T,"&:hover":{backgroundColor:T},"&::after":{borderBottomWidth:m,borderBottomColor:A}}}}),[`&${n}-root`]:{[`&${n}-inline, &${n}-vertical`]:{borderInlineEnd:`${ne(v)} ${E} ${I}`}},[`&${n}-inline`]:{[`${n}-sub${n}-inline`]:{background:d},[`${n}-item`]:{position:"relative","&::after":{position:"absolute",insetBlock:0,insetInlineEnd:0,borderInlineEnd:`${ne(p)} solid ${a}`,transform:"scaleY(0.0001)",opacity:0,transition:[`transform ${C} ${x}`,`opacity ${C} ${x}`].join(","),content:'""'},[`&${n}-item-danger`]:{"&::after":{borderInlineEndColor:j}}},[`${n}-selected, ${n}-item-selected`]:{"&::after":{transform:"scaleY(1)",opacity:1,transition:[`transform ${C} ${b}`,`opacity ${C} ${b}`].join(",")}}}}}},C$=e=>{const{componentCls:t,itemHeight:n,itemMarginInline:r,padding:a,menuArrowSize:o,marginXS:l,itemMarginBlock:c,itemWidth:d,itemPaddingInline:f}=e,m=e.calc(o).add(a).add(l).equal();return{[`${t}-item`]:{position:"relative",overflow:"hidden"},[`${t}-item, ${t}-submenu-title`]:{height:n,lineHeight:ne(n),paddingInline:f,overflow:"hidden",textOverflow:"ellipsis",marginInline:r,marginBlock:c,width:d},[`> ${t}-item, + > ${t}-submenu > ${t}-submenu-title`]:{height:n,lineHeight:ne(n)},[`${t}-item-group-list ${t}-submenu-title, + ${t}-submenu-title`]:{paddingInlineEnd:m}}},uB=e=>{const{componentCls:t,iconCls:n,itemHeight:r,colorTextLightSolid:a,dropdownWidth:o,controlHeightLG:l,motionEaseOut:c,paddingXL:d,itemMarginInline:f,fontSizeLG:m,motionDurationFast:p,motionDurationSlow:v,paddingXS:h,boxShadowSecondary:b,collapsedWidth:x,collapsedIconSize:y}=e,C={height:r,lineHeight:ne(r),listStylePosition:"inside",listStyleType:"disc"};return[{[t]:{"&-inline, &-vertical":Object.assign({[`&${t}-root`]:{boxShadow:"none"}},C$(e))},[`${t}-submenu-popup`]:{[`${t}-vertical`]:Object.assign(Object.assign({},C$(e)),{boxShadow:b})}},{[`${t}-submenu-popup ${t}-vertical${t}-sub`]:{minWidth:o,maxHeight:`calc(100vh - ${ne(e.calc(l).mul(2.5).equal())})`,padding:"0",overflow:"hidden",borderInlineEnd:0,"&:not([class*='-active'])":{overflowX:"hidden",overflowY:"auto"}}},{[`${t}-inline`]:{width:"100%",[`&${t}-root`]:{[`${t}-item, ${t}-submenu-title`]:{display:"flex",alignItems:"center",transition:[`border-color ${v}`,`background ${v}`,`padding ${p} ${c}`].join(","),[`> ${t}-title-content`]:{flex:"auto",minWidth:0,overflow:"hidden",textOverflow:"ellipsis"},"> *":{flex:"none"}}},[`${t}-sub${t}-inline`]:{padding:0,border:0,borderRadius:0,boxShadow:"none",[`& > ${t}-submenu > ${t}-submenu-title`]:C,[`& ${t}-item-group-title`]:{paddingInlineStart:d}},[`${t}-item`]:C}},{[`${t}-inline-collapsed`]:{width:x,[`&${t}-root`]:{[`${t}-item, ${t}-submenu ${t}-submenu-title`]:{[`> ${t}-inline-collapsed-noicon`]:{fontSize:m,textAlign:"center"}}},[`> ${t}-item, + > ${t}-item-group > ${t}-item-group-list > ${t}-item, + > ${t}-item-group > ${t}-item-group-list > ${t}-submenu > ${t}-submenu-title, + > ${t}-submenu > ${t}-submenu-title`]:{insetInlineStart:0,paddingInline:`calc(50% - ${ne(e.calc(y).div(2).equal())} - ${ne(f)})`,textOverflow:"clip",[` + ${t}-submenu-arrow, + ${t}-submenu-expand-icon + `]:{opacity:0},[`${t}-item-icon, ${n}`]:{margin:0,fontSize:y,lineHeight:ne(r),"+ span":{display:"inline-block",opacity:0}}},[`${t}-item-icon, ${n}`]:{display:"inline-block"},"&-tooltip":{pointerEvents:"none",[`${t}-item-icon, ${n}`]:{display:"none"},"a, a:hover":{color:a}},[`${t}-item-group-title`]:Object.assign(Object.assign({},Oo),{paddingInline:h})}}]},w$=e=>{const{componentCls:t,motionDurationSlow:n,motionDurationMid:r,motionEaseInOut:a,motionEaseOut:o,iconCls:l,iconSize:c,iconMarginInlineEnd:d}=e;return{[`${t}-item, ${t}-submenu-title`]:{position:"relative",display:"block",margin:0,whiteSpace:"nowrap",cursor:"pointer",transition:[`border-color ${n}`,`background ${n}`,`padding calc(${n} + 0.1s) ${a}`].join(","),[`${t}-item-icon, ${l}`]:{minWidth:c,fontSize:c,transition:[`font-size ${r} ${o}`,`margin ${n} ${a}`,`color ${n}`].join(","),"+ span":{marginInlineStart:d,opacity:1,transition:[`opacity ${n} ${a}`,`margin ${n}`,`color ${n}`].join(",")}},[`${t}-item-icon`]:Object.assign({},cc()),[`&${t}-item-only-child`]:{[`> ${l}, > ${t}-item-icon`]:{marginInlineEnd:0}}},[`${t}-item-disabled, ${t}-submenu-disabled`]:{background:"none !important",cursor:"not-allowed","&::after":{borderColor:"transparent !important"},a:{color:"inherit !important",cursor:"not-allowed",pointerEvents:"none"},[`> ${t}-submenu-title`]:{color:"inherit !important",cursor:"not-allowed"}}}},$$=e=>{const{componentCls:t,motionDurationSlow:n,motionEaseInOut:r,borderRadius:a,menuArrowSize:o,menuArrowOffset:l}=e;return{[`${t}-submenu`]:{"&-expand-icon, &-arrow":{position:"absolute",top:"50%",insetInlineEnd:e.margin,width:o,color:"currentcolor",transform:"translateY(-50%)",transition:`transform ${n} ${r}, opacity ${n}`},"&-arrow":{"&::before, &::after":{position:"absolute",width:e.calc(o).mul(.6).equal(),height:e.calc(o).mul(.15).equal(),backgroundColor:"currentcolor",borderRadius:a,transition:[`background ${n} ${r}`,`transform ${n} ${r}`,`top ${n} ${r}`,`color ${n} ${r}`].join(","),content:'""'},"&::before":{transform:`rotate(45deg) translateY(${ne(e.calc(l).mul(-1).equal())})`},"&::after":{transform:`rotate(-45deg) translateY(${ne(l)})`}}}}},dB=e=>{const{antCls:t,componentCls:n,fontSize:r,motionDurationSlow:a,motionDurationMid:o,motionEaseInOut:l,paddingXS:c,padding:d,colorSplit:f,lineWidth:m,zIndexPopup:p,borderRadiusLG:v,subMenuItemBorderRadius:h,menuArrowSize:b,menuArrowOffset:x,lineType:y,groupTitleLineHeight:C,groupTitleFontSize:w}=e;return[{"":{[n]:Object.assign(Object.assign({},Uo()),{"&-hidden":{display:"none"}})},[`${n}-submenu-hidden`]:{display:"none"}},{[n]:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},Ln(e)),Uo()),{marginBottom:0,paddingInlineStart:0,fontSize:r,lineHeight:0,listStyle:"none",outline:"none",transition:`width ${a} cubic-bezier(0.2, 0, 0, 1) 0s`,"ul, ol":{margin:0,padding:0,listStyle:"none"},"&-overflow":{display:"flex",[`${n}-item`]:{flex:"none"}},[`${n}-item, ${n}-submenu, ${n}-submenu-title`]:{borderRadius:e.itemBorderRadius},[`${n}-item-group-title`]:{padding:`${ne(c)} ${ne(d)}`,fontSize:w,lineHeight:C,transition:`all ${a}`},[`&-horizontal ${n}-submenu`]:{transition:[`border-color ${a} ${l}`,`background ${a} ${l}`].join(",")},[`${n}-submenu, ${n}-submenu-inline`]:{transition:[`border-color ${a} ${l}`,`background ${a} ${l}`,`padding ${o} ${l}`].join(",")},[`${n}-submenu ${n}-sub`]:{cursor:"initial",transition:[`background ${a} ${l}`,`padding ${a} ${l}`].join(",")},[`${n}-title-content`]:{transition:`color ${a}`,"&-with-extra":{display:"inline-flex",alignItems:"center",width:"100%"},[`> ${t}-typography-ellipsis-single-line`]:{display:"inline",verticalAlign:"unset"},[`${n}-item-extra`]:{marginInlineStart:"auto",paddingInlineStart:e.padding}},[`${n}-item a`]:{"&::before":{position:"absolute",inset:0,backgroundColor:"transparent",content:'""'}},[`${n}-item-divider`]:{overflow:"hidden",lineHeight:0,borderColor:f,borderStyle:y,borderWidth:0,borderTopWidth:m,marginBlock:m,padding:0,"&-dashed":{borderStyle:"dashed"}}}),w$(e)),{[`${n}-item-group`]:{[`${n}-item-group-list`]:{margin:0,padding:0,[`${n}-item, ${n}-submenu-title`]:{paddingInline:`${ne(e.calc(r).mul(2).equal())} ${ne(d)}`}}},"&-submenu":{"&-popup":{position:"absolute",zIndex:p,borderRadius:v,boxShadow:"none",transformOrigin:"0 0",[`&${n}-submenu`]:{background:"transparent"},"&::before":{position:"absolute",inset:0,zIndex:-1,width:"100%",height:"100%",opacity:0,content:'""'},[`> ${n}`]:Object.assign(Object.assign(Object.assign({borderRadius:v},w$(e)),$$(e)),{[`${n}-item, ${n}-submenu > ${n}-submenu-title`]:{borderRadius:h},[`${n}-submenu-title::after`]:{transition:`transform ${a} ${l}`}})},"\n &-placement-leftTop,\n &-placement-bottomRight,\n ":{transformOrigin:"100% 0"},"\n &-placement-leftBottom,\n &-placement-topRight,\n ":{transformOrigin:"100% 100%"},"\n &-placement-rightBottom,\n &-placement-topLeft,\n ":{transformOrigin:"0 100%"},"\n &-placement-bottomLeft,\n &-placement-rightTop,\n ":{transformOrigin:"0 0"},"\n &-placement-leftTop,\n &-placement-leftBottom\n ":{paddingInlineEnd:e.paddingXS},"\n &-placement-rightTop,\n &-placement-rightBottom\n ":{paddingInlineStart:e.paddingXS},"\n &-placement-topRight,\n &-placement-topLeft\n ":{paddingBottom:e.paddingXS},"\n &-placement-bottomRight,\n &-placement-bottomLeft\n ":{paddingTop:e.paddingXS}}}),$$(e)),{[`&-inline-collapsed ${n}-submenu-arrow, + &-inline ${n}-submenu-arrow`]:{"&::before":{transform:`rotate(-45deg) translateX(${ne(x)})`},"&::after":{transform:`rotate(45deg) translateX(${ne(e.calc(x).mul(-1).equal())})`}},[`${n}-submenu-open${n}-submenu-inline > ${n}-submenu-title > ${n}-submenu-arrow`]:{transform:`translateY(${ne(e.calc(b).mul(.2).mul(-1).equal())})`,"&::after":{transform:`rotate(-45deg) translateX(${ne(e.calc(x).mul(-1).equal())})`},"&::before":{transform:`rotate(45deg) translateX(${ne(x)})`}}})},{[`${t}-layout-header`]:{[n]:{lineHeight:"inherit"}}}]},fB=e=>{var t,n,r;const{colorPrimary:a,colorError:o,colorTextDisabled:l,colorErrorBg:c,colorText:d,colorTextDescription:f,colorBgContainer:m,colorFillAlter:p,colorFillContent:v,lineWidth:h,lineWidthBold:b,controlItemBgActive:x,colorBgTextHover:y,controlHeightLG:C,lineHeight:w,colorBgElevated:E,marginXXS:I,padding:_,fontSize:O,controlHeightSM:P,fontSizeLG:j,colorTextLightSolid:R,colorErrorHover:k}=e,L=(t=e.activeBarWidth)!==null&&t!==void 0?t:0,W=(n=e.activeBarBorderWidth)!==null&&n!==void 0?n:h,B=(r=e.itemMarginInline)!==null&&r!==void 0?r:e.marginXXS,F=new Pn(R).setA(.65).toRgbString();return{dropdownWidth:160,zIndexPopup:e.zIndexPopupBase+50,radiusItem:e.borderRadiusLG,itemBorderRadius:e.borderRadiusLG,radiusSubMenuItem:e.borderRadiusSM,subMenuItemBorderRadius:e.borderRadiusSM,colorItemText:d,itemColor:d,colorItemTextHover:d,itemHoverColor:d,colorItemTextHoverHorizontal:a,horizontalItemHoverColor:a,colorGroupTitle:f,groupTitleColor:f,colorItemTextSelected:a,itemSelectedColor:a,subMenuItemSelectedColor:a,colorItemTextSelectedHorizontal:a,horizontalItemSelectedColor:a,colorItemBg:m,itemBg:m,colorItemBgHover:y,itemHoverBg:y,colorItemBgActive:v,itemActiveBg:x,colorSubItemBg:p,subMenuItemBg:p,colorItemBgSelected:x,itemSelectedBg:x,colorItemBgSelectedHorizontal:"transparent",horizontalItemSelectedBg:"transparent",colorActiveBarWidth:0,activeBarWidth:L,colorActiveBarHeight:b,activeBarHeight:b,colorActiveBarBorderSize:h,activeBarBorderWidth:W,colorItemTextDisabled:l,itemDisabledColor:l,colorDangerItemText:o,dangerItemColor:o,colorDangerItemTextHover:o,dangerItemHoverColor:o,colorDangerItemTextSelected:o,dangerItemSelectedColor:o,colorDangerItemBgActive:c,dangerItemActiveBg:c,colorDangerItemBgSelected:c,dangerItemSelectedBg:c,itemMarginInline:B,horizontalItemBorderRadius:0,horizontalItemHoverBg:"transparent",itemHeight:C,groupTitleLineHeight:w,collapsedWidth:C*2,popupBg:E,itemMarginBlock:I,itemPaddingInline:_,horizontalLineHeight:`${C*1.15}px`,iconSize:O,iconMarginInlineEnd:P-O,collapsedIconSize:j,groupTitleFontSize:O,darkItemDisabledColor:new Pn(R).setA(.25).toRgbString(),darkItemColor:F,darkDangerItemColor:o,darkItemBg:"#001529",darkPopupBg:"#001529",darkSubMenuItemBg:"#000c17",darkItemSelectedColor:R,darkItemSelectedBg:a,darkDangerItemSelectedBg:o,darkItemHoverBg:"transparent",darkGroupTitleColor:F,darkItemHoverColor:R,darkDangerItemHoverColor:k,darkDangerItemSelectedColor:R,darkDangerItemActiveBg:o,itemWidth:L?`calc(100% + ${W}px)`:`calc(100% - ${B*2}px)`}},mB=function(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:e,n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0;return zn("Menu",a=>{const{colorBgElevated:o,controlHeightLG:l,fontSize:c,darkItemColor:d,darkDangerItemColor:f,darkItemBg:m,darkSubMenuItemBg:p,darkItemSelectedColor:v,darkItemSelectedBg:h,darkDangerItemSelectedBg:b,darkItemHoverBg:x,darkGroupTitleColor:y,darkItemHoverColor:C,darkItemDisabledColor:w,darkDangerItemHoverColor:E,darkDangerItemSelectedColor:I,darkDangerItemActiveBg:_,popupBg:O,darkPopupBg:P}=a,j=a.calc(c).div(7).mul(5).equal(),R=$n(a,{menuArrowSize:j,menuHorizontalHeight:a.calc(l).mul(1.15).equal(),menuArrowOffset:a.calc(j).mul(.25).equal(),menuSubMenuBg:o,calc:a.calc,popupBg:O}),k=$n(R,{itemColor:d,itemHoverColor:C,groupTitleColor:y,itemSelectedColor:v,subMenuItemSelectedColor:v,itemBg:m,popupBg:P,subMenuItemBg:p,itemActiveBg:"transparent",itemSelectedBg:h,activeBarHeight:0,activeBarBorderWidth:0,itemHoverBg:x,itemDisabledColor:w,dangerItemColor:f,dangerItemHoverColor:E,dangerItemSelectedColor:I,dangerItemActiveBg:_,dangerItemSelectedBg:b,menuSubMenuBg:p,horizontalItemSelectedColor:v,horizontalItemSelectedBg:h});return[dB(R),sB(R),uB(R),S$(R,"light"),S$(k,"dark"),cB(R),bp(R),Yo(R,"slide-up"),Yo(R,"slide-down"),fb(R,"zoom-big")]},fB,{deprecatedTokens:[["colorGroupTitle","groupTitleColor"],["radiusItem","itemBorderRadius"],["radiusSubMenuItem","subMenuItemBorderRadius"],["colorItemText","itemColor"],["colorItemTextHover","itemHoverColor"],["colorItemTextHoverHorizontal","horizontalItemHoverColor"],["colorItemTextSelected","itemSelectedColor"],["colorItemTextSelectedHorizontal","horizontalItemSelectedColor"],["colorItemTextDisabled","itemDisabledColor"],["colorDangerItemText","dangerItemColor"],["colorDangerItemTextHover","dangerItemHoverColor"],["colorDangerItemTextSelected","dangerItemSelectedColor"],["colorDangerItemBgActive","dangerItemActiveBg"],["colorDangerItemBgSelected","dangerItemSelectedBg"],["colorItemBg","itemBg"],["colorItemBgHover","itemHoverBg"],["colorSubItemBg","subMenuItemBg"],["colorItemBgActive","itemActiveBg"],["colorItemBgSelectedHorizontal","horizontalItemSelectedBg"],["colorActiveBarWidth","activeBarWidth"],["colorActiveBarHeight","activeBarHeight"],["colorActiveBarBorderSize","activeBarBorderWidth"],["colorItemBgSelected","itemSelectedBg"]],injectStyle:n,unitless:{groupTitleLineHeight:!0}})(e,t)},vO=e=>{var t;const{popupClassName:n,icon:r,title:a,theme:o}=e,l=i.useContext(Ym),{prefixCls:c,inlineCollapsed:d,theme:f}=l,m=gc();let p;if(!r)p=d&&!m.length&&a&&typeof a=="string"?i.createElement("div",{className:`${c}-inline-collapsed-noicon`},a.charAt(0)):i.createElement("span",{className:`${c}-title-content`},a);else{const b=i.isValidElement(a)&&a.type==="span";p=i.createElement(i.Fragment,null,ia(r,{className:ce(i.isValidElement(r)?(t=r.props)===null||t===void 0?void 0:t.className:"",`${c}-item-icon`)}),b?a:i.createElement("span",{className:`${c}-title-content`},a))}const v=i.useMemo(()=>Object.assign(Object.assign({},l),{firstLevel:!1}),[l]),[h]=dc("Menu");return i.createElement(Ym.Provider,{value:v},i.createElement(zp,Object.assign({},Qn(e,["icon"]),{title:p,popupClassName:ce(c,n,`${c}-${o||f}`),popupStyle:Object.assign({zIndex:h},e.popupStyle)})))};var pB=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 a=0,r=Object.getOwnPropertySymbols(e);a{var n;const r=i.useContext(Gm),a=r||{},{getPrefixCls:o,getPopupContainer:l,direction:c,menu:d}=i.useContext(Gt),f=o(),{prefixCls:m,className:p,style:v,theme:h="light",expandIcon:b,_internalDisableMenuItemTitleTooltip:x,inlineCollapsed:y,siderCollapsed:C,rootClassName:w,mode:E,selectable:I,onClick:_,overflowedIndicatorPopupClassName:O}=e,P=pB(e,["prefixCls","className","style","theme","expandIcon","_internalDisableMenuItemTitleTooltip","inlineCollapsed","siderCollapsed","rootClassName","mode","selectable","onClick","overflowedIndicatorPopupClassName"]),j=Qn(P,["collapsedWidth"]);(n=a.validator)===null||n===void 0||n.call(a,{mode:E});const R=wn(function(){var U;_==null||_.apply(void 0,arguments),(U=a.onClick)===null||U===void 0||U.call(a)}),k=a.mode||E,L=I??a.selectable,W=y??C,B={horizontal:{motionName:`${f}-slide-up`},inline:Gu(f),other:{motionName:`${f}-zoom-big`}},F=o("menu",m||a.prefixCls),A=Kr(F),[T,M,D]=mB(F,A,!r),V=ce(`${F}-${h}`,d==null?void 0:d.className,p),K=i.useMemo(()=>{var U,Y;if(typeof b=="function"||Rh(b))return b||null;if(typeof a.expandIcon=="function"||Rh(a.expandIcon))return a.expandIcon||null;if(typeof(d==null?void 0:d.expandIcon)=="function"||Rh(d==null?void 0:d.expandIcon))return(d==null?void 0:d.expandIcon)||null;const q=(U=b??(a==null?void 0:a.expandIcon))!==null&&U!==void 0?U:d==null?void 0:d.expandIcon;return ia(q,{className:ce(`${F}-submenu-expand-icon`,i.isValidElement(q)?(Y=q.props)===null||Y===void 0?void 0:Y.className:void 0)})},[b,a==null?void 0:a.expandIcon,d==null?void 0:d.expandIcon,F]),z=i.useMemo(()=>({prefixCls:F,inlineCollapsed:W||!1,direction:c,firstLevel:!0,theme:h,mode:k,disableMenuItemTitleTooltip:x}),[F,W,c,x,h]);return T(i.createElement(Gm.Provider,{value:null},i.createElement(Ym.Provider,{value:z},i.createElement(hc,Object.assign({getPopupContainer:l,overflowedIndicator:i.createElement(Db,null),overflowedIndicatorPopupClassName:ce(F,`${F}-${h}`,O),mode:k,selectable:L,onClick:R},j,{inlineCollapsed:W,style:Object.assign(Object.assign({},d==null?void 0:d.style),v),className:V,prefixCls:F,direction:c,defaultMotions:B,expandIcon:K,ref:t,rootClassName:ce(w,M,a.rootClassName,D,A),_internalComponents:vB})))))}),Zl=i.forwardRef((e,t)=>{const n=i.useRef(null),r=i.useContext(Bp);return i.useImperativeHandle(t,()=>({menu:n.current,focus:a=>{var o;(o=n.current)===null||o===void 0||o.focus(a)}})),i.createElement(gB,Object.assign({ref:n},e,r))});Zl.Item=mO;Zl.SubMenu=vO;Zl.Divider=fO;Zl.ItemGroup=Tb;const hB=e=>{const{componentCls:t,menuCls:n,colorError:r,colorTextLightSolid:a}=e,o=`${n}-item`;return{[`${t}, ${t}-menu-submenu`]:{[`${n} ${o}`]:{[`&${o}-danger:not(${o}-disabled)`]:{color:r,"&:hover":{color:a,backgroundColor:r}}}}}},yB=e=>{const{componentCls:t,menuCls:n,zIndexPopup:r,dropdownArrowDistance:a,sizePopupArrow:o,antCls:l,iconCls:c,motionDurationMid:d,paddingBlock:f,fontSize:m,dropdownEdgeChildPadding:p,colorTextDisabled:v,fontSizeIcon:h,controlPaddingHorizontal:b,colorBgElevated:x}=e;return[{[t]:{position:"absolute",top:-9999,left:{_skip_check_:!0,value:-9999},zIndex:r,display:"block","&::before":{position:"absolute",insetBlock:e.calc(o).div(2).sub(a).equal(),zIndex:-9999,opacity:1e-4,content:'""'},"&-menu-vertical":{maxHeight:"100vh",overflowY:"auto"},[`&-trigger${l}-btn`]:{[`& > ${c}-down, & > ${l}-btn-icon > ${c}-down`]:{fontSize:h}},[`${t}-wrap`]:{position:"relative",[`${l}-btn > ${c}-down`]:{fontSize:h},[`${c}-down::before`]:{transition:`transform ${d}`}},[`${t}-wrap-open`]:{[`${c}-down::before`]:{transform:"rotate(180deg)"}},"\n &-hidden,\n &-menu-hidden,\n &-menu-submenu-hidden\n ":{display:"none"},[`&${l}-slide-down-enter${l}-slide-down-enter-active${t}-placement-bottomLeft, + &${l}-slide-down-appear${l}-slide-down-appear-active${t}-placement-bottomLeft, + &${l}-slide-down-enter${l}-slide-down-enter-active${t}-placement-bottom, + &${l}-slide-down-appear${l}-slide-down-appear-active${t}-placement-bottom, + &${l}-slide-down-enter${l}-slide-down-enter-active${t}-placement-bottomRight, + &${l}-slide-down-appear${l}-slide-down-appear-active${t}-placement-bottomRight`]:{animationName:Sp},[`&${l}-slide-up-enter${l}-slide-up-enter-active${t}-placement-topLeft, + &${l}-slide-up-appear${l}-slide-up-appear-active${t}-placement-topLeft, + &${l}-slide-up-enter${l}-slide-up-enter-active${t}-placement-top, + &${l}-slide-up-appear${l}-slide-up-appear-active${t}-placement-top, + &${l}-slide-up-enter${l}-slide-up-enter-active${t}-placement-topRight, + &${l}-slide-up-appear${l}-slide-up-appear-active${t}-placement-topRight`]:{animationName:wp},[`&${l}-slide-down-leave${l}-slide-down-leave-active${t}-placement-bottomLeft, + &${l}-slide-down-leave${l}-slide-down-leave-active${t}-placement-bottom, + &${l}-slide-down-leave${l}-slide-down-leave-active${t}-placement-bottomRight`]:{animationName:Cp},[`&${l}-slide-up-leave${l}-slide-up-leave-active${t}-placement-topLeft, + &${l}-slide-up-leave${l}-slide-up-leave-active${t}-placement-top, + &${l}-slide-up-leave${l}-slide-up-leave-active${t}-placement-topRight`]:{animationName:$p}}},W2(e,x,{arrowPlacement:{top:!0,bottom:!0}}),{[`${t} ${n}`]:{position:"relative",margin:0},[`${n}-submenu-popup`]:{position:"absolute",zIndex:r,background:"transparent",boxShadow:"none",transformOrigin:"0 0","ul, li":{listStyle:"none",margin:0}},[`${t}, ${t}-menu-submenu`]:Object.assign(Object.assign({},Ln(e)),{[n]:Object.assign(Object.assign({padding:p,listStyleType:"none",backgroundColor:x,backgroundClip:"padding-box",borderRadius:e.borderRadiusLG,outline:"none",boxShadow:e.boxShadowSecondary},xi(e)),{"&:empty":{padding:0,boxShadow:"none"},[`${n}-item-group-title`]:{padding:`${ne(f)} ${ne(b)}`,color:e.colorTextDescription,transition:`all ${d}`},[`${n}-item`]:{position:"relative",display:"flex",alignItems:"center"},[`${n}-item-icon`]:{minWidth:m,marginInlineEnd:e.marginXS,fontSize:e.fontSizeSM},[`${n}-title-content`]:{flex:"auto","&-with-extra":{display:"inline-flex",alignItems:"center",width:"100%"},"> a":{color:"inherit",transition:`all ${d}`,"&:hover":{color:"inherit"},"&::after":{position:"absolute",inset:0,content:'""'}},[`${n}-item-extra`]:{paddingInlineStart:e.padding,marginInlineStart:"auto",fontSize:e.fontSizeSM,color:e.colorTextDescription}},[`${n}-item, ${n}-submenu-title`]:Object.assign(Object.assign({display:"flex",margin:0,padding:`${ne(f)} ${ne(b)}`,color:e.colorText,fontWeight:"normal",fontSize:m,lineHeight:e.lineHeight,cursor:"pointer",transition:`all ${d}`,borderRadius:e.borderRadiusSM,"&:hover, &-active":{backgroundColor:e.controlItemBgHover}},xi(e)),{"&-selected":{color:e.colorPrimary,backgroundColor:e.controlItemBgActive,"&:hover, &-active":{backgroundColor:e.controlItemBgActiveHover}},"&-disabled":{color:v,cursor:"not-allowed","&:hover":{color:v,backgroundColor:x,cursor:"not-allowed"},a:{pointerEvents:"none"}},"&-divider":{height:1,margin:`${ne(e.marginXXS)} 0`,overflow:"hidden",lineHeight:0,backgroundColor:e.colorSplit},[`${t}-menu-submenu-expand-icon`]:{position:"absolute",insetInlineEnd:e.paddingXS,[`${t}-menu-submenu-arrow-icon`]:{marginInlineEnd:"0 !important",color:e.colorTextDescription,fontSize:h,fontStyle:"normal"}}}),[`${n}-item-group-list`]:{margin:`0 ${ne(e.marginXS)}`,padding:0,listStyle:"none"},[`${n}-submenu-title`]:{paddingInlineEnd:e.calc(b).add(e.fontSizeSM).equal()},[`${n}-submenu-vertical`]:{position:"relative"},[`${n}-submenu${n}-submenu-disabled ${t}-menu-submenu-title`]:{[`&, ${t}-menu-submenu-arrow-icon`]:{color:v,backgroundColor:x,cursor:"not-allowed"}},[`${n}-submenu-selected ${t}-menu-submenu-title`]:{color:e.colorPrimary}})})},[Yo(e,"slide-up"),Yo(e,"slide-down"),ic(e,"move-up"),ic(e,"move-down"),fb(e,"zoom-big")]]},bB=e=>Object.assign(Object.assign({zIndexPopup:e.zIndexPopupBase+50,paddingBlock:(e.controlHeight-e.fontSize*e.lineHeight)/2},Ob({contentRadius:e.borderRadiusLG,limitVerticalRadius:!0})),Ib(e)),xB=zn("Dropdown",e=>{const{marginXXS:t,sizePopupArrow:n,paddingXXS:r,componentCls:a}=e,o=$n(e,{menuCls:`${a}-menu`,dropdownArrowDistance:e.calc(n).div(2).add(t).equal(),dropdownEdgeChildPadding:r});return[yB(o),hB(o)]},bB,{resetStyle:!1}),Hp=e=>{var t;const{menu:n,arrow:r,prefixCls:a,children:o,trigger:l,disabled:c,dropdownRender:d,getPopupContainer:f,overlayClassName:m,rootClassName:p,overlayStyle:v,open:h,onOpenChange:b,visible:x,onVisibleChange:y,mouseEnterDelay:C=.15,mouseLeaveDelay:w=.1,autoAdjustOverflow:E=!0,placement:I="",overlay:_,transitionName:O}=e,{getPopupContainer:P,getPrefixCls:j,direction:R,dropdown:k}=i.useContext(Gt);ml();const L=i.useMemo(()=>{const ae=j();return O!==void 0?O:I.includes("top")?`${ae}-slide-down`:`${ae}-slide-up`},[j,I,O]),W=i.useMemo(()=>I?I.includes("Center")?I.slice(0,I.indexOf("Center")):I:R==="rtl"?"bottomRight":"bottomLeft",[I,R]),B=j("dropdown",a),F=Kr(B),[A,T,M]=xB(B,F),[,D]=ba(),V=i.Children.only(m8(o)?i.createElement("span",null,o):o),K=ia(V,{className:ce(`${B}-trigger`,{[`${B}-rtl`]:R==="rtl"},V.props.className),disabled:(t=V.props.disabled)!==null&&t!==void 0?t:c}),z=c?[]:l,U=!!(z!=null&&z.includes("contextMenu")),[Y,q]=Hn(!1,{value:h??x}),X=wn(ae=>{b==null||b(ae,{source:"trigger"}),y==null||y(ae),q(ae)}),te=ce(m,p,T,M,F,k==null?void 0:k.className,{[`${B}-rtl`]:R==="rtl"}),ee=K2({arrowPointAtCenter:typeof r=="object"&&r.pointAtCenter,autoAdjustOverflow:E,offset:D.marginXXS,arrowWidth:r?D.sizePopupArrow:0,borderRadius:D.borderRadius}),J=i.useCallback(()=>{n!=null&&n.selectable&&(n!=null&&n.multiple)||(b==null||b(!1,{source:"menu"}),q(!1))},[n==null?void 0:n.selectable,n==null?void 0:n.multiple]),ie=()=>{let ae;return n!=null&&n.items?ae=i.createElement(Zl,Object.assign({},n)):typeof _=="function"?ae=_():ae=_,d&&(ae=d(ae)),ae=i.Children.only(typeof ae=="string"?i.createElement("span",null,ae):ae),i.createElement(pO,{prefixCls:`${B}-menu`,rootClassName:ce(M,F),expandIcon:i.createElement("span",{className:`${B}-menu-submenu-arrow`},R==="rtl"?i.createElement(ed,{className:`${B}-menu-submenu-arrow-icon`}):i.createElement(Qu,{className:`${B}-menu-submenu-arrow-icon`})),mode:"vertical",selectable:!1,onClick:J,validator:ue=>{let{mode:pe}=ue}},ae)},[de,oe]=dc("Dropdown",v==null?void 0:v.zIndex);let le=i.createElement(G2,Object.assign({alignPoint:U},Qn(e,["rootClassName"]),{mouseEnterDelay:C,mouseLeaveDelay:w,visible:Y,builtinPlacements:ee,arrow:!!r,overlayClassName:te,prefixCls:B,getPopupContainer:f||P,transitionName:L,trigger:z,overlay:ie,placement:W,onVisibleChange:X,overlayStyle:Object.assign(Object.assign(Object.assign({},k==null?void 0:k.style),v),{zIndex:de})}),K);return de&&(le=i.createElement(sb.Provider,{value:oe},le)),A(le)},SB=kp(Hp,"align",void 0,"dropdown",e=>e),CB=e=>i.createElement(SB,Object.assign({},e),i.createElement("span",null));Hp._InternalPanelDoNotUseOrYouWillBeFired=CB;var $m={exports:{}},wB=$m.exports,E$;function $B(){return E$||(E$=1,function(e,t){(function(n,r){e.exports=r()})(wB,function(){var n=1e3,r=6e4,a=36e5,o="millisecond",l="second",c="minute",d="hour",f="day",m="week",p="month",v="quarter",h="year",b="date",x="Invalid Date",y=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,C=/\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,w={name:"en",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),ordinal:function(F){var A=["th","st","nd","rd"],T=F%100;return"["+F+(A[(T-20)%10]||A[T]||A[0])+"]"}},E=function(F,A,T){var M=String(F);return!M||M.length>=A?F:""+Array(A+1-M.length).join(T)+F},I={s:E,z:function(F){var A=-F.utcOffset(),T=Math.abs(A),M=Math.floor(T/60),D=T%60;return(A<=0?"+":"-")+E(M,2,"0")+":"+E(D,2,"0")},m:function F(A,T){if(A.date()1)return F(K[0])}else{var z=A.name;O[z]=A,D=z}return!M&&D&&(_=D),D||!M&&_},k=function(F,A){if(j(F))return F.clone();var T=typeof A=="object"?A:{};return T.date=F,T.args=arguments,new W(T)},L=I;L.l=R,L.i=j,L.w=function(F,A){return k(F,{locale:A.$L,utc:A.$u,x:A.$x,$offset:A.$offset})};var W=function(){function F(T){this.$L=R(T.locale,null,!0),this.parse(T),this.$x=this.$x||T.x||{},this[P]=!0}var A=F.prototype;return A.parse=function(T){this.$d=function(M){var D=M.date,V=M.utc;if(D===null)return new Date(NaN);if(L.u(D))return new Date;if(D instanceof Date)return new Date(D);if(typeof D=="string"&&!/Z$/i.test(D)){var K=D.match(y);if(K){var z=K[2]-1||0,U=(K[7]||"0").substring(0,3);return V?new Date(Date.UTC(K[1],z,K[3]||1,K[4]||0,K[5]||0,K[6]||0,U)):new Date(K[1],z,K[3]||1,K[4]||0,K[5]||0,K[6]||0,U)}}return new Date(D)}(T),this.init()},A.init=function(){var T=this.$d;this.$y=T.getFullYear(),this.$M=T.getMonth(),this.$D=T.getDate(),this.$W=T.getDay(),this.$H=T.getHours(),this.$m=T.getMinutes(),this.$s=T.getSeconds(),this.$ms=T.getMilliseconds()},A.$utils=function(){return L},A.isValid=function(){return this.$d.toString()!==x},A.isSame=function(T,M){var D=k(T);return this.startOf(M)<=D&&D<=this.endOf(M)},A.isAfter=function(T,M){return k(T)25){var m=l(this).startOf(r).add(1,r).date(f),p=l(this).endOf(n);if(m.isBefore(p))return 1}var v=l(this).startOf(r).date(f).startOf(n).subtract(1,"millisecond"),h=this.diff(v,n,!0);return h<0?l(this).startOf("week").week():Math.ceil(h)},c.weeks=function(d){return d===void 0&&(d=null),this.week(d)}}})}(Im)),Im.exports}var DB=TB();const FB=jo(DB);var Om={exports:{}},LB=Om.exports,R$;function AB(){return R$||(R$=1,function(e,t){(function(n,r){e.exports=r()})(LB,function(){return function(n,r){r.prototype.weekYear=function(){var a=this.month(),o=this.week(),l=this.year();return o===1&&a===11?l+1:a===0&&o>=52?l-1:l}}})}(Om)),Om.exports}var zB=AB();const BB=jo(zB);var Rm={exports:{}},HB=Rm.exports,P$;function VB(){return P$||(P$=1,function(e,t){(function(n,r){e.exports=r()})(HB,function(){return function(n,r){var a=r.prototype,o=a.format;a.format=function(l){var c=this,d=this.$locale();if(!this.isValid())return o.bind(this)(l);var f=this.$utils(),m=(l||"YYYY-MM-DDTHH:mm:ssZ").replace(/\[([^\]]+)]|Q|wo|ww|w|WW|W|zzz|z|gggg|GGGG|Do|X|x|k{1,2}|S/g,function(p){switch(p){case"Q":return Math.ceil((c.$M+1)/3);case"Do":return d.ordinal(c.$D);case"gggg":return c.weekYear();case"GGGG":return c.isoWeekYear();case"wo":return d.ordinal(c.week(),"W");case"w":case"ww":return f.s(c.week(),p==="w"?1:2,"0");case"W":case"WW":return f.s(c.isoWeek(),p==="W"?1:2,"0");case"k":case"kk":return f.s(String(c.$H===0?24:c.$H),p==="k"?1:2,"0");case"X":return Math.floor(c.$d.getTime()/1e3);case"x":return c.$d.getTime();case"z":return"["+c.offsetName()+"]";case"zzz":return"["+c.offsetName("long")+"]";default:return p}});return o.bind(this)(m)}}})}(Rm)),Rm.exports}var WB=VB();const KB=jo(WB);var Pm={exports:{}},UB=Pm.exports,N$;function qB(){return N$||(N$=1,function(e,t){(function(n,r){e.exports=r()})(UB,function(){var n={LTS:"h:mm:ss A",LT:"h:mm A",L:"MM/DD/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"},r=/(\[[^[]*\])|([-_:/.,()\s]+)|(A|a|Q|YYYY|YY?|ww?|MM?M?M?|Do|DD?|hh?|HH?|mm?|ss?|S{1,3}|z|ZZ?)/g,a=/\d/,o=/\d\d/,l=/\d\d?/,c=/\d*[^-_:/,()\s\d]+/,d={},f=function(y){return(y=+y)+(y>68?1900:2e3)},m=function(y){return function(C){this[y]=+C}},p=[/[+-]\d\d:?(\d\d)?|Z/,function(y){(this.zone||(this.zone={})).offset=function(C){if(!C||C==="Z")return 0;var w=C.match(/([+-]|\d\d)/g),E=60*w[1]+(+w[2]||0);return E===0?0:w[0]==="+"?-E:E}(y)}],v=function(y){var C=d[y];return C&&(C.indexOf?C:C.s.concat(C.f))},h=function(y,C){var w,E=d.meridiem;if(E){for(var I=1;I<=24;I+=1)if(y.indexOf(E(I,0,C))>-1){w=I>12;break}}else w=y===(C?"pm":"PM");return w},b={A:[c,function(y){this.afternoon=h(y,!1)}],a:[c,function(y){this.afternoon=h(y,!0)}],Q:[a,function(y){this.month=3*(y-1)+1}],S:[a,function(y){this.milliseconds=100*+y}],SS:[o,function(y){this.milliseconds=10*+y}],SSS:[/\d{3}/,function(y){this.milliseconds=+y}],s:[l,m("seconds")],ss:[l,m("seconds")],m:[l,m("minutes")],mm:[l,m("minutes")],H:[l,m("hours")],h:[l,m("hours")],HH:[l,m("hours")],hh:[l,m("hours")],D:[l,m("day")],DD:[o,m("day")],Do:[c,function(y){var C=d.ordinal,w=y.match(/\d+/);if(this.day=w[0],C)for(var E=1;E<=31;E+=1)C(E).replace(/\[|\]/g,"")===y&&(this.day=E)}],w:[l,m("week")],ww:[o,m("week")],M:[l,m("month")],MM:[o,m("month")],MMM:[c,function(y){var C=v("months"),w=(v("monthsShort")||C.map(function(E){return E.slice(0,3)})).indexOf(y)+1;if(w<1)throw new Error;this.month=w%12||w}],MMMM:[c,function(y){var C=v("months").indexOf(y)+1;if(C<1)throw new Error;this.month=C%12||C}],Y:[/[+-]?\d+/,m("year")],YY:[o,function(y){this.year=f(y)}],YYYY:[/\d{4}/,m("year")],Z:p,ZZ:p};function x(y){var C,w;C=y,w=d&&d.formats;for(var E=(y=C.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g,function(k,L,W){var B=W&&W.toUpperCase();return L||w[W]||n[W]||w[B].replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,function(F,A,T){return A||T.slice(1)})})).match(r),I=E.length,_=0;_-1)return new Date((D==="X"?1e3:1)*M);var z=x(D)(M),U=z.year,Y=z.month,q=z.day,X=z.hours,te=z.minutes,ee=z.seconds,J=z.milliseconds,ie=z.zone,de=z.week,oe=new Date,le=q||(U||Y?1:oe.getDate()),ae=U||oe.getFullYear(),ue=0;U&&!Y||(ue=Y>0?Y-1:oe.getMonth());var pe,fe=X||0,xe=te||0,Ee=ee||0,Le=J||0;return ie?new Date(Date.UTC(ae,ue,le,fe,xe,Ee,Le+60*ie.offset*1e3)):V?new Date(Date.UTC(ae,ue,le,fe,xe,Ee,Le)):(pe=new Date(ae,ue,le,fe,xe,Ee,Le),de&&(pe=K(pe).week(de).toDate()),pe)}catch{return new Date("")}}(O,R,P,w),this.init(),B&&B!==!0&&(this.$L=this.locale(B).$L),W&&O!=this.format(R)&&(this.$d=new Date("")),d={}}else if(R instanceof Array)for(var F=R.length,A=1;A<=F;A+=1){j[1]=R[A-1];var T=w.apply(this,j);if(T.isValid()){this.$d=T.$d,this.$L=T.$L,this.init();break}A===F&&(this.$d=new Date(""))}else I.call(this,_)}}})}(Pm)),Pm.exports}var YB=qB();const GB=jo(YB);ka.extend(GB);ka.extend(KB);ka.extend(RB);ka.extend(kB);ka.extend(FB);ka.extend(BB);ka.extend(function(e,t){var n=t.prototype,r=n.format;n.format=function(o){var l=(o||"").replace("Wo","wo");return r.bind(this)(l)}});var XB={bn_BD:"bn-bd",by_BY:"be",en_GB:"en-gb",en_US:"en",fr_BE:"fr",fr_CA:"fr-ca",hy_AM:"hy-am",kmr_IQ:"ku",nl_BE:"nl-be",pt_BR:"pt-br",zh_CN:"zh-cn",zh_HK:"zh-hk",zh_TW:"zh-tw"},Nl=function(t){var n=XB[t];return n||t.split("_")[0]},QB={getNow:function(){var t=ka();return typeof t.tz=="function"?t.tz():t},getFixedDate:function(t){return ka(t,["YYYY-M-DD","YYYY-MM-DD"])},getEndDate:function(t){return t.endOf("month")},getWeekDay:function(t){var n=t.locale("en");return n.weekday()+n.localeData().firstDayOfWeek()},getYear:function(t){return t.year()},getMonth:function(t){return t.month()},getDate:function(t){return t.date()},getHour:function(t){return t.hour()},getMinute:function(t){return t.minute()},getSecond:function(t){return t.second()},getMillisecond:function(t){return t.millisecond()},addYear:function(t,n){return t.add(n,"year")},addMonth:function(t,n){return t.add(n,"month")},addDate:function(t,n){return t.add(n,"day")},setYear:function(t,n){return t.year(n)},setMonth:function(t,n){return t.month(n)},setDate:function(t,n){return t.date(n)},setHour:function(t,n){return t.hour(n)},setMinute:function(t,n){return t.minute(n)},setSecond:function(t,n){return t.second(n)},setMillisecond:function(t,n){return t.millisecond(n)},isAfter:function(t,n){return t.isAfter(n)},isValidate:function(t){return t.isValid()},locale:{getWeekFirstDay:function(t){return ka().locale(Nl(t)).localeData().firstDayOfWeek()},getWeekFirstDate:function(t,n){return n.locale(Nl(t)).weekday(0)},getWeek:function(t,n){return n.locale(Nl(t)).week()},getShortWeekDays:function(t){return ka().locale(Nl(t)).localeData().weekdaysMin()},getShortMonths:function(t){return ka().locale(Nl(t)).localeData().monthsShort()},format:function(t,n,r){return n.locale(Nl(t)).format(r)},parse:function(t,n,r){for(var a=Nl(t),o=0;o2&&arguments[2]!==void 0?arguments[2]:"0",r=String(e);r.length2&&arguments[2]!==void 0?arguments[2]:[],r=i.useState([!1,!1]),a=se(r,2),o=a[0],l=a[1],c=function(m,p){l(function(v){return Pu(v,p,m)})},d=i.useMemo(function(){return o.map(function(f,m){if(f)return!0;var p=e[m];return p?!!(!n[m]&&!p||p&&t(p,{activeIndex:m})):!1})},[e,o,t,n]);return[d,c]}function SO(e,t,n,r,a){var o="",l=[];return e&&l.push(a?"hh":"HH"),t&&l.push("mm"),n&&l.push("ss"),o=l.join(":"),r&&(o+=".SSS"),a&&(o+=" A"),o}function e5(e,t,n,r,a,o){var l=e.fieldDateTimeFormat,c=e.fieldDateFormat,d=e.fieldTimeFormat,f=e.fieldMonthFormat,m=e.fieldYearFormat,p=e.fieldWeekFormat,v=e.fieldQuarterFormat,h=e.yearFormat,b=e.cellYearFormat,x=e.cellQuarterFormat,y=e.dayFormat,C=e.cellDateFormat,w=SO(t,n,r,a,o);return Z(Z({},e),{},{fieldDateTimeFormat:l||"YYYY-MM-DD ".concat(w),fieldDateFormat:c||"YYYY-MM-DD",fieldTimeFormat:d||w,fieldMonthFormat:f||"YYYY-MM",fieldYearFormat:m||"YYYY",fieldWeekFormat:p||"gggg-wo",fieldQuarterFormat:v||"YYYY-[Q]Q",yearFormat:h||"YYYY",cellYearFormat:b||"YYYY",cellQuarterFormat:x||"[Q]Q",cellDateFormat:C||y||"D"})}function CO(e,t){var n=t.showHour,r=t.showMinute,a=t.showSecond,o=t.showMillisecond,l=t.use12Hours;return be.useMemo(function(){return e5(e,n,r,a,o,l)},[e,n,r,a,o,l])}function du(e,t,n){return n??t.some(function(r){return e.includes(r)})}var t5=["showNow","showHour","showMinute","showSecond","showMillisecond","use12Hours","hourStep","minuteStep","secondStep","millisecondStep","hideDisabledOptions","defaultValue","disabledHours","disabledMinutes","disabledSeconds","disabledMilliseconds","disabledTime","changeOnScroll","defaultOpenValue"];function n5(e){var t=Vp(e,t5),n=e.format,r=e.picker,a=null;return n&&(a=n,Array.isArray(a)&&(a=a[0]),a=wt(a)==="object"?a.format:a),r==="time"&&(t.format=a),[t,a]}function r5(e){return e&&typeof e=="string"}function wO(e,t,n,r){return[e,t,n,r].some(function(a){return a!==void 0})}function $O(e,t,n,r,a){var o=t,l=n,c=r;if(!e&&!o&&!l&&!c&&!a)o=!0,l=!0,c=!0;else if(e){var d,f,m,p=[o,l,c].some(function(b){return b===!1}),v=[o,l,c].some(function(b){return b===!0}),h=p?!0:!v;o=(d=o)!==null&&d!==void 0?d:h,l=(f=l)!==null&&f!==void 0?f:h,c=(m=c)!==null&&m!==void 0?m:h}return[o,l,c,a]}function EO(e){var t=e.showTime,n=n5(e),r=se(n,2),a=r[0],o=r[1],l=t&&wt(t)==="object"?t:{},c=Z(Z({defaultOpenValue:l.defaultOpenValue||l.defaultValue},a),l),d=c.showMillisecond,f=c.showHour,m=c.showMinute,p=c.showSecond,v=wO(f,m,p,d),h=$O(v,f,m,p,d),b=se(h,3);return f=b[0],m=b[1],p=b[2],[c,Z(Z({},c),{},{showHour:f,showMinute:m,showSecond:p,showMillisecond:d}),c.format,o]}function _O(e,t,n,r,a){var o=e==="time";if(e==="datetime"||o){for(var l=r,c=hO(e,a,null),d=c,f=[t,n],m=0;m1&&(l=t.addDate(l,-7)),l}function Hr(e,t){var n=t.generateConfig,r=t.locale,a=t.format;return e?typeof a=="function"?a(e):n.locale.format(r.locale,e,a):""}function Xm(e,t,n){var r=t,a=["getHour","getMinute","getSecond","getMillisecond"],o=["setHour","setMinute","setSecond","setMillisecond"];return o.forEach(function(l,c){n?r=e[l](r,e[a[c]](n)):r=e[l](r,0)}),r}function l5(e,t,n,r,a){var o=wn(function(l,c){return!!(n&&n(l,c)||r&&e.isAfter(r,l)&&!pa(e,t,r,l,c.type)||a&&e.isAfter(l,a)&&!pa(e,t,a,l,c.type))});return o}function s5(e,t,n){return i.useMemo(function(){var r=hO(e,t,n),a=es(r),o=a[0],l=wt(o)==="object"&&o.type==="mask"?o.format:null;return[a.map(function(c){return typeof c=="string"||typeof c=="function"?c:c.format}),l]},[e,t,n])}function c5(e,t,n){return typeof e[0]=="function"||n?!0:t}function u5(e,t,n,r){var a=wn(function(o,l){var c=Z({type:t},l);if(delete c.activeIndex,!e.isValidate(o)||n&&n(o,c))return!0;if((t==="date"||t==="time")&&r){var d,f=l&&l.activeIndex===1?"end":"start",m=((d=r.disabledTime)===null||d===void 0?void 0:d.call(r,o,f,{from:c.from}))||{},p=m.disabledHours,v=m.disabledMinutes,h=m.disabledSeconds,b=m.disabledMilliseconds,x=r.disabledHours,y=r.disabledMinutes,C=r.disabledSeconds,w=p||x,E=v||y,I=h||C,_=e.getHour(o),O=e.getMinute(o),P=e.getSecond(o),j=e.getMillisecond(o);if(w&&w().includes(_)||E&&E(_).includes(O)||I&&I(_,O).includes(P)||b&&b(_,O,P).includes(j))return!0}return!1});return a}function Xf(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,n=i.useMemo(function(){var r=e&&es(e);return t&&r&&(r[1]=r[1]||r[0]),r},[e,t]);return n}function RO(e,t){var n=e.generateConfig,r=e.locale,a=e.picker,o=a===void 0?"date":a,l=e.prefixCls,c=l===void 0?"rc-picker":l,d=e.styles,f=d===void 0?{}:d,m=e.classNames,p=m===void 0?{}:m,v=e.order,h=v===void 0?!0:v,b=e.components,x=b===void 0?{}:b,y=e.inputRender,C=e.allowClear,w=e.clearIcon,E=e.needConfirm,I=e.multiple,_=e.format,O=e.inputReadOnly,P=e.disabledDate,j=e.minDate,R=e.maxDate,k=e.showTime,L=e.value,W=e.defaultValue,B=e.pickerValue,F=e.defaultPickerValue,A=Xf(L),T=Xf(W),M=Xf(B),D=Xf(F),V=o==="date"&&k?"datetime":o,K=V==="time"||V==="datetime",z=K||I,U=E??K,Y=EO(e),q=se(Y,4),X=q[0],te=q[1],ee=q[2],J=q[3],ie=CO(r,te),de=i.useMemo(function(){return _O(V,ee,J,X,ie)},[V,ee,J,X,ie]),oe=i.useMemo(function(){return Z(Z({},e),{},{prefixCls:c,locale:ie,picker:o,styles:f,classNames:p,order:h,components:Z({input:y},x),clearIcon:a5(c,C,w),showTime:de,value:A,defaultValue:T,pickerValue:M,defaultPickerValue:D},t==null?void 0:t())},[e]),le=s5(V,ie,_),ae=se(le,2),ue=ae[0],pe=ae[1],fe=c5(ue,O,I),xe=l5(n,r,P,j,R),Ee=u5(n,o,xe,de),Le=i.useMemo(function(){return Z(Z({},oe),{},{needConfirm:U,inputReadOnly:fe,disabledDate:xe})},[oe,U,fe,xe]);return[Le,V,z,ue,pe,Ee]}function d5(e,t,n){var r=Hn(t,{value:e}),a=se(r,2),o=a[0],l=a[1],c=be.useRef(e),d=be.useRef(),f=function(){mn.cancel(d.current)},m=wn(function(){l(c.current),n&&o!==c.current&&n(c.current)}),p=wn(function(v,h){f(),c.current=v,v||h?m():d.current=mn(m)});return be.useEffect(function(){return f},[]),[o,p]}function PO(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:[],r=arguments.length>3?arguments[3]:void 0,a=n.every(function(m){return m})?!1:e,o=d5(a,t||!1,r),l=se(o,2),c=l[0],d=l[1];function f(m){var p=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};(!p.inherit||c)&&d(m,p.force)}return[c,f]}function NO(e){var t=i.useRef();return i.useImperativeHandle(e,function(){var n;return{nativeElement:(n=t.current)===null||n===void 0?void 0:n.nativeElement,focus:function(a){var o;(o=t.current)===null||o===void 0||o.focus(a)},blur:function(){var a;(a=t.current)===null||a===void 0||a.blur()}}}),t}function jO(e,t){return i.useMemo(function(){return e||(t?(or(!1,"`ranges` is deprecated. Please use `presets` instead."),Object.entries(t).map(function(n){var r=se(n,2),a=r[0],o=r[1];return{label:a,value:o}})):[])},[e,t])}function Bb(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:1,r=i.useRef(t);r.current=t,zl(function(){if(e)r.current(e);else{var a=mn(function(){r.current(e)},n);return function(){mn.cancel(a)}}},[e])}function kO(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1,r=i.useState(0),a=se(r,2),o=a[0],l=a[1],c=i.useState(!1),d=se(c,2),f=d[0],m=d[1],p=i.useRef([]),v=i.useRef(null),h=i.useRef(null),b=function(I){v.current=I},x=function(I){return v.current===I},y=function(I){m(I)},C=function(I){return I&&(h.current=I),h.current},w=function(I){var _=p.current,O=new Set(_.filter(function(j){return I[j]||t[j]})),P=_[_.length-1]===0?1:0;return O.size>=2||e[P]?null:P};return Bb(f||n,function(){f||(p.current=[],b(null))}),i.useEffect(function(){f&&p.current.push(o)},[f,o]),[f,y,C,o,l,w,p.current,b,x]}function f5(e,t,n,r,a,o){var l=n[n.length-1],c=function(f,m){var p=se(e,2),v=p[0],h=p[1],b=Z(Z({},m),{},{from:yO(e,n)});return l===1&&t[0]&&v&&!pa(r,a,v,f,b.type)&&r.isAfter(v,f)||l===0&&t[1]&&h&&!pa(r,a,h,f,b.type)&&r.isAfter(f,h)?!0:o==null?void 0:o(f,b)};return c}function Cu(e,t,n,r){switch(t){case"date":case"week":return e.addMonth(n,r);case"month":case"quarter":return e.addYear(n,r);case"year":return e.addYear(n,r*10);case"decade":return e.addYear(n,r*100);default:return n}}var Nh=[];function MO(e,t,n,r,a,o,l,c){var d=arguments.length>8&&arguments[8]!==void 0?arguments[8]:Nh,f=arguments.length>9&&arguments[9]!==void 0?arguments[9]:Nh,m=arguments.length>10&&arguments[10]!==void 0?arguments[10]:Nh,p=arguments.length>11?arguments[11]:void 0,v=arguments.length>12?arguments[12]:void 0,h=arguments.length>13?arguments[13]:void 0,b=l==="time",x=o||0,y=function(M){var D=e.getNow();return b&&(D=Xm(e,D)),d[M]||n[M]||D},C=se(f,2),w=C[0],E=C[1],I=Hn(function(){return y(0)},{value:w}),_=se(I,2),O=_[0],P=_[1],j=Hn(function(){return y(1)},{value:E}),R=se(j,2),k=R[0],L=R[1],W=i.useMemo(function(){var T=[O,k][x];return b?T:Xm(e,T,m[x])},[b,O,k,x,e,m]),B=function(M){var D=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"panel",V=[P,L][x];V(M);var K=[O,k];K[x]=M,p&&(!pa(e,t,O,K[0],l)||!pa(e,t,k,K[1],l))&&p(K,{source:D,range:x===1?"end":"start",mode:r})},F=function(M,D){if(c){var V={date:"month",week:"month",month:"year",quarter:"year"},K=V[l];if(K&&!pa(e,t,M,D,K))return Cu(e,l,D,-1);if(l==="year"&&M){var z=Math.floor(e.getYear(M)/10),U=Math.floor(e.getYear(D)/10);if(z!==U)return Cu(e,l,D,-1)}}return D},A=i.useRef(null);return hn(function(){if(a&&!d[x]){var T=b?null:e.getNow();if(A.current!==null&&A.current!==x?T=[O,k][x^1]:n[x]?T=x===0?n[0]:F(n[0],n[1]):n[x^1]&&(T=n[x^1]),T){v&&e.isAfter(v,T)&&(T=v);var M=c?Cu(e,l,T,1):T;h&&e.isAfter(M,h)&&(T=c?Cu(e,l,h,-1):h),B(T,"reset")}}},[a,x,n[x]]),i.useEffect(function(){a?A.current=x:A.current=null},[a,x]),hn(function(){a&&d&&d[x]&&B(d[x],"reset")},[a,x]),[W,B]}function TO(e,t){var n=i.useRef(e),r=i.useState({}),a=se(r,2),o=a[1],l=function(f){return f&&t!==void 0?t:n.current},c=function(f){n.current=f,o({})};return[l,c,l(!0)]}var m5=[];function DO(e,t,n){var r=function(l){return l.map(function(c){return Hr(c,{generateConfig:e,locale:t,format:n[0]})})},a=function(l,c){for(var d=Math.max(l.length,c.length),f=-1,m=0;m2&&arguments[2]!==void 0?arguments[2]:1,r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1,a=arguments.length>4&&arguments[4]!==void 0?arguments[4]:[],o=arguments.length>5&&arguments[5]!==void 0?arguments[5]:2,l=[],c=n>=1?n|0:1,d=e;d<=t;d+=c){var f=a.includes(d);(!f||!r)&&l.push({label:Fb(d,o),value:d,disabled:f})}return l}function Hb(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=arguments.length>2?arguments[2]:void 0,r=t||{},a=r.use12Hours,o=r.hourStep,l=o===void 0?1:o,c=r.minuteStep,d=c===void 0?1:c,f=r.secondStep,m=f===void 0?1:f,p=r.millisecondStep,v=p===void 0?100:p,h=r.hideDisabledOptions,b=r.disabledTime,x=r.disabledHours,y=r.disabledMinutes,C=r.disabledSeconds,w=i.useMemo(function(){return n||e.getNow()},[n,e]),E=i.useCallback(function(D){var V=(b==null?void 0:b(D))||{};return[V.disabledHours||x||Qf,V.disabledMinutes||y||Qf,V.disabledSeconds||C||Qf,V.disabledMilliseconds||Qf]},[b,x,y,C]),I=i.useMemo(function(){return E(w)},[w,E]),_=se(I,4),O=_[0],P=_[1],j=_[2],R=_[3],k=i.useCallback(function(D,V,K,z){var U=Jf(0,23,l,h,D()),Y=a?U.map(function(ee){return Z(Z({},ee),{},{label:Fb(ee.value%12||12,2)})}):U,q=function(J){return Jf(0,59,d,h,V(J))},X=function(J,ie){return Jf(0,59,m,h,K(J,ie))},te=function(J,ie,de){return Jf(0,999,v,h,z(J,ie,de),3)};return[Y,q,X,te]},[h,l,a,v,d,m]),L=i.useMemo(function(){return k(O,P,j,R)},[k,O,P,j,R]),W=se(L,4),B=W[0],F=W[1],A=W[2],T=W[3],M=function(V,K){var z=function(){return B},U=F,Y=A,q=T;if(K){var X=E(K),te=se(X,4),ee=te[0],J=te[1],ie=te[2],de=te[3],oe=k(ee,J,ie,de),le=se(oe,4),ae=le[0],ue=le[1],pe=le[2],fe=le[3];z=function(){return ae},U=ue,Y=pe,q=fe}var xe=v5(V,z,U,Y,q,e);return xe};return[M,B,F,A,T]}function g5(e){var t=e.mode,n=e.internalMode,r=e.renderExtraFooter,a=e.showNow,o=e.showTime,l=e.onSubmit,c=e.onNow,d=e.invalid,f=e.needConfirm,m=e.generateConfig,p=e.disabledDate,v=i.useContext(Mo),h=v.prefixCls,b=v.locale,x=v.button,y=x===void 0?"button":x,C=m.getNow(),w=Hb(m,o,C),E=se(w,1),I=E[0],_=r==null?void 0:r(t),O=p(C,{type:t}),P=function(){if(!O){var F=I(C);c(F)}},j="".concat(h,"-now"),R="".concat(j,"-btn"),k=a&&i.createElement("li",{className:j},i.createElement("a",{className:ce(R,O&&"".concat(R,"-disabled")),"aria-disabled":O,onClick:P},n==="date"?b.today:b.now)),L=f&&i.createElement("li",{className:"".concat(h,"-ok")},i.createElement(y,{disabled:d,onClick:l},b.ok)),W=(k||L)&&i.createElement("ul",{className:"".concat(h,"-ranges")},k,L);return!_&&!W?null:i.createElement("div",{className:"".concat(h,"-footer")},_&&i.createElement("div",{className:"".concat(h,"-footer-extra")},_),W)}function BO(e,t,n){function r(a,o){var l=a.findIndex(function(d){return pa(e,t,d,o,n)});if(l===-1)return[].concat(Te(a),[o]);var c=Te(a);return c.splice(l,1),c}return r}var ts=i.createContext(null);function Kp(){return i.useContext(ts)}function yc(e,t){var n=e.prefixCls,r=e.generateConfig,a=e.locale,o=e.disabledDate,l=e.minDate,c=e.maxDate,d=e.cellRender,f=e.hoverValue,m=e.hoverRangeValue,p=e.onHover,v=e.values,h=e.pickerValue,b=e.onSelect,x=e.prevIcon,y=e.nextIcon,C=e.superPrevIcon,w=e.superNextIcon,E=r.getNow(),I={now:E,values:v,pickerValue:h,prefixCls:n,disabledDate:o,minDate:l,maxDate:c,cellRender:d,hoverValue:f,hoverRangeValue:m,onHover:p,locale:a,generateConfig:r,onSelect:b,panelType:t,prevIcon:x,nextIcon:y,superPrevIcon:C,superNextIcon:w};return[I,E]}var al=i.createContext({});function $d(e){for(var t=e.rowNum,n=e.colNum,r=e.baseDate,a=e.getCellDate,o=e.prefixColumn,l=e.rowClassName,c=e.titleFormat,d=e.getCellText,f=e.getCellClassName,m=e.headerCells,p=e.cellSelection,v=p===void 0?!0:p,h=e.disabledDate,b=Kp(),x=b.prefixCls,y=b.panelType,C=b.now,w=b.disabledDate,E=b.cellRender,I=b.onHover,_=b.hoverValue,O=b.hoverRangeValue,P=b.generateConfig,j=b.values,R=b.locale,k=b.onSelect,L=h||w,W="".concat(x,"-cell"),B=i.useContext(al),F=B.onCellDblClick,A=function(Y){return j.some(function(q){return q&&pa(P,R,Y,q,y)})},T=[],M=0;M1&&arguments[1]!==void 0?arguments[1]:!1;we(Ce),y==null||y(Ce),_e&&Se(Ce)},De=function(Ce,_e){ie(Ce),_e&&Re(_e),Se(_e,Ce)},Me=function(Ce){if(Ee(Ce),Re(Ce),J!==I){var _e=["decade","year"],he=[].concat(_e,["month"]),ke={quarter:[].concat(_e,["quarter"]),week:[].concat(Te(he),["week"]),date:[].concat(Te(he),["date"])},tt=ke[I]||he,Nt=tt.indexOf(J),Ht=tt[Nt+1];Ht&&De(Ht,Ce)}},Ye=i.useMemo(function(){var ye,Ce;if(Array.isArray(P)){var _e=se(P,2);ye=_e[0],Ce=_e[1]}else ye=P;return!ye&&!Ce?null:(ye=ye||Ce,Ce=Ce||ye,a.isAfter(ye,Ce)?[Ce,ye]:[ye,Ce])},[P,a]),qe=Lb(j,R,k),He=W[de]||O5[de]||Up,ze=i.useContext(al),Ae=i.useMemo(function(){return Z(Z({},ze),{},{hideHeader:B})},[ze,B]),Ie="".concat(F,"-panel"),Ve=Vp(e,["showWeek","prevIcon","nextIcon","superPrevIcon","superNextIcon","disabledDate","minDate","maxDate","onHover"]);return i.createElement(al.Provider,{value:Ae},i.createElement("div",{ref:A,tabIndex:d,className:ce(Ie,G({},"".concat(Ie,"-rtl"),o==="rtl"))},i.createElement(He,Pe({},Ve,{showTime:q,prefixCls:F,locale:U,generateConfig:a,onModeChange:De,pickerValue:ge,onPickerValueChange:function(Ce){Re(Ce,!0)},value:fe[0],onSelect:Me,values:fe,cellRender:qe,hoverRangeValue:Ye,hoverValue:O}))))}var jh=i.memo(i.forwardRef(R5));function P5(e){var t=e.picker,n=e.multiplePanel,r=e.pickerValue,a=e.onPickerValueChange,o=e.needConfirm,l=e.onSubmit,c=e.range,d=e.hoverValue,f=i.useContext(Mo),m=f.prefixCls,p=f.generateConfig,v=i.useCallback(function(w,E){return Cu(p,t,w,E)},[p,t]),h=i.useMemo(function(){return v(r,1)},[r,v]),b=function(E){a(v(E,-1))},x={onCellDblClick:function(){o&&l()}},y=t==="time",C=Z(Z({},e),{},{hoverValue:null,hoverRangeValue:null,hideHeader:y});return c?C.hoverRangeValue=d:C.hoverValue=d,n?i.createElement("div",{className:"".concat(m,"-panels")},i.createElement(al.Provider,{value:Z(Z({},x),{},{hideNext:!0})},i.createElement(jh,C)),i.createElement(al.Provider,{value:Z(Z({},x),{},{hidePrev:!0})},i.createElement(jh,Pe({},C,{pickerValue:h,onPickerValueChange:b})))):i.createElement(al.Provider,{value:Z({},x)},i.createElement(jh,C))}function k$(e){return typeof e=="function"?e():e}function N5(e){var t=e.prefixCls,n=e.presets,r=e.onClick,a=e.onHover;return n.length?i.createElement("div",{className:"".concat(t,"-presets")},i.createElement("ul",null,n.map(function(o,l){var c=o.label,d=o.value;return i.createElement("li",{key:l,onClick:function(){r(k$(d))},onMouseEnter:function(){a(k$(d))},onMouseLeave:function(){a(null)}},c)}))):null}function VO(e){var t=e.panelRender,n=e.internalMode,r=e.picker,a=e.showNow,o=e.range,l=e.multiple,c=e.activeInfo,d=c===void 0?[0,0,0]:c,f=e.presets,m=e.onPresetHover,p=e.onPresetSubmit,v=e.onFocus,h=e.onBlur,b=e.onPanelMouseDown,x=e.direction,y=e.value,C=e.onSelect,w=e.isInvalid,E=e.defaultOpenValue,I=e.onOk,_=e.onSubmit,O=i.useContext(Mo),P=O.prefixCls,j="".concat(P,"-panel"),R=x==="rtl",k=i.useRef(null),L=i.useRef(null),W=i.useState(0),B=se(W,2),F=B[0],A=B[1],T=i.useState(0),M=se(T,2),D=M[0],V=M[1],K=i.useState(0),z=se(K,2),U=z[0],Y=z[1],q=function(Me){Me.width&&A(Me.width)},X=se(d,3),te=X[0],ee=X[1],J=X[2],ie=i.useState(0),de=se(ie,2),oe=de[0],le=de[1];i.useEffect(function(){le(10)},[te]),i.useEffect(function(){if(o&&L.current){var De,Me=((De=k.current)===null||De===void 0?void 0:De.offsetWidth)||0,Ye=L.current.getBoundingClientRect();if(!Ye.height||Ye.right<0){le(function(Ae){return Math.max(0,Ae-1)});return}var qe=(R?ee-Me:te)-Ye.left;if(Y(qe),F&&F=c&&n<=d)return o;var f=Math.min(Math.abs(n-c),Math.abs(n-d));f0?st:et));var Xe=kt+gt,Ze=et-st+1;return String(st+(Ze+Xe-st)%Ze)};switch(Ce){case"Backspace":case"Delete":_e="",he=tt;break;case"ArrowLeft":_e="",Nt(-1);break;case"ArrowRight":_e="",Nt(1);break;case"ArrowUp":_e="",he=Ht(1);break;case"ArrowDown":_e="",he=Ht(-1);break;default:isNaN(Number(Ce))||(_e=z+Ce,he=_e);break}if(_e!==null&&(U(_e),_e.length>=ke&&(Nt(1),U(""))),he!==null){var Ge=oe.slice(0,xe)+Fb(he,ke)+oe.slice(Ee);Ne(Ge.slice(0,l.length))}de({})},Ae=i.useRef();hn(function(){if(!(!B||!l||Se.current)){if(!ue.match(oe)){Ne(l);return}return ae.current.setSelectionRange(xe,Ee),Ae.current=mn(function(){ae.current.setSelectionRange(xe,Ee)}),function(){mn.cancel(Ae.current)}}},[ue,l,B,oe,X,xe,Ee,ie,Ne]);var Ie=l?{onFocus:Me,onBlur:qe,onKeyDown:ze,onMouseDown:Re,onMouseUp:De,onPaste:we}:{};return i.createElement("div",{ref:le,className:ce(k,G(G({},"".concat(k,"-active"),n&&a),"".concat(k,"-placeholder"),f))},i.createElement(R,Pe({ref:ae,"aria-invalid":x,autoComplete:"off"},C,{onKeyDown:He,onBlur:Ye},Ie,{value:oe,onChange:ge})),i.createElement(qp,{type:"suffix",icon:o}),y)}),L5=["id","prefix","clearIcon","suffixIcon","separator","activeIndex","activeHelp","allHelp","focused","onFocus","onBlur","onKeyDown","locale","generateConfig","placeholder","className","style","onClick","onClear","value","onChange","onSubmit","onInputChange","format","maskFormat","preserveInvalidOnBlur","onInvalid","disabled","invalid","inputReadOnly","direction","onOpenChange","onActiveInfo","placement","onMouseDown","required","aria-required","autoFocus","tabIndex"],A5=["index"];function z5(e,t){var n=e.id,r=e.prefix,a=e.clearIcon,o=e.suffixIcon,l=e.separator,c=l===void 0?"~":l,d=e.activeIndex;e.activeHelp,e.allHelp;var f=e.focused;e.onFocus,e.onBlur,e.onKeyDown,e.locale,e.generateConfig;var m=e.placeholder,p=e.className,v=e.style,h=e.onClick,b=e.onClear,x=e.value;e.onChange,e.onSubmit,e.onInputChange,e.format,e.maskFormat,e.preserveInvalidOnBlur,e.onInvalid;var y=e.disabled,C=e.invalid;e.inputReadOnly;var w=e.direction;e.onOpenChange;var E=e.onActiveInfo;e.placement;var I=e.onMouseDown;e.required,e["aria-required"];var _=e.autoFocus,O=e.tabIndex,P=Kt(e,L5),j=w==="rtl",R=i.useContext(Mo),k=R.prefixCls,L=i.useMemo(function(){if(typeof n=="string")return[n];var ie=n||{};return[ie.start,ie.end]},[n]),W=i.useRef(),B=i.useRef(),F=i.useRef(),A=function(de){var oe;return(oe=[B,F][de])===null||oe===void 0?void 0:oe.current};i.useImperativeHandle(t,function(){return{nativeElement:W.current,focus:function(de){if(wt(de)==="object"){var oe,le=de||{},ae=le.index,ue=ae===void 0?0:ae,pe=Kt(le,A5);(oe=A(ue))===null||oe===void 0||oe.focus(pe)}else{var fe;(fe=A(de??0))===null||fe===void 0||fe.focus()}},blur:function(){var de,oe;(de=A(0))===null||de===void 0||de.blur(),(oe=A(1))===null||oe===void 0||oe.blur()}}});var T=KO(P),M=i.useMemo(function(){return Array.isArray(m)?m:[m,m]},[m]),D=WO(Z(Z({},e),{},{id:L,placeholder:M})),V=se(D,1),K=V[0],z=i.useState({position:"absolute",width:0}),U=se(z,2),Y=U[0],q=U[1],X=wn(function(){var ie=A(d);if(ie){var de=ie.nativeElement.getBoundingClientRect(),oe=W.current.getBoundingClientRect(),le=de.left-oe.left;q(function(ae){return Z(Z({},ae),{},{width:de.width,left:le})}),E([de.left,de.right,oe.width])}});i.useEffect(function(){X()},[d]);var te=a&&(x[0]&&!y[0]||x[1]&&!y[1]),ee=_&&!y[0],J=_&&!ee&&!y[1];return i.createElement(ra,{onResize:X},i.createElement("div",Pe({},T,{className:ce(k,"".concat(k,"-range"),G(G(G(G({},"".concat(k,"-focused"),f),"".concat(k,"-disabled"),y.every(function(ie){return ie})),"".concat(k,"-invalid"),C.some(function(ie){return ie})),"".concat(k,"-rtl"),j),p),style:v,ref:W,onClick:h,onMouseDown:function(de){var oe=de.target;oe!==B.current.inputElement&&oe!==F.current.inputElement&&de.preventDefault(),I==null||I(de)}}),r&&i.createElement("div",{className:"".concat(k,"-prefix")},r),i.createElement(x0,Pe({ref:B},K(0),{autoFocus:ee,tabIndex:O,"date-range":"start"})),i.createElement("div",{className:"".concat(k,"-range-separator")},c),i.createElement(x0,Pe({ref:F},K(1),{autoFocus:J,tabIndex:O,"date-range":"end"})),i.createElement("div",{className:"".concat(k,"-active-bar"),style:Y}),i.createElement(qp,{type:"suffix",icon:o}),te&&i.createElement(b0,{icon:a,onClear:b})))}var B5=i.forwardRef(z5);function T$(e,t){var n=e??t;return Array.isArray(n)?n:[n,n]}function em(e){return e===1?"end":"start"}function H5(e,t){var n=RO(e,function(){var mt=e.disabled,it=e.allowEmpty,Qt=T$(mt,!1),cn=T$(it,!1);return{disabled:Qt,allowEmpty:cn}}),r=se(n,6),a=r[0],o=r[1],l=r[2],c=r[3],d=r[4],f=r[5],m=a.prefixCls,p=a.styles,v=a.classNames,h=a.defaultValue,b=a.value,x=a.needConfirm,y=a.onKeyDown,C=a.disabled,w=a.allowEmpty,E=a.disabledDate,I=a.minDate,_=a.maxDate,O=a.defaultOpen,P=a.open,j=a.onOpenChange,R=a.locale,k=a.generateConfig,L=a.picker,W=a.showNow,B=a.showToday,F=a.showTime,A=a.mode,T=a.onPanelChange,M=a.onCalendarChange,D=a.onOk,V=a.defaultPickerValue,K=a.pickerValue,z=a.onPickerValueChange,U=a.inputReadOnly,Y=a.suffixIcon,q=a.onFocus,X=a.onBlur,te=a.presets,ee=a.ranges,J=a.components,ie=a.cellRender,de=a.dateRender,oe=a.monthCellRender,le=a.onClick,ae=NO(t),ue=PO(P,O,C,j),pe=se(ue,2),fe=pe[0],xe=pe[1],Ee=function(it,Qt){(C.some(function(cn){return!cn})||!it)&&xe(it,Qt)},Le=LO(k,R,c,!0,!1,h,b,M,D),Ne=se(Le,5),ge=Ne[0],we=Ne[1],Se=Ne[2],Re=Ne[3],De=Ne[4],Me=Se(),Ye=kO(C,w,fe),qe=se(Ye,9),He=qe[0],ze=qe[1],Ae=qe[2],Ie=qe[3],Ve=qe[4],ye=qe[5],Ce=qe[6],_e=qe[7],he=qe[8],ke=function(it,Qt){ze(!0),q==null||q(it,{range:em(Qt??Ie)})},tt=function(it,Qt){ze(!1),X==null||X(it,{range:em(Qt??Ie)})},Nt=i.useMemo(function(){if(!F)return null;var mt=F.disabledTime,it=mt?function(Qt){var cn=em(Ie),In=yO(Me,Ce,Ie);return mt(Qt,cn,{from:In})}:void 0;return Z(Z({},F),{},{disabledTime:it})},[F,Ie,Me,Ce]),Ht=Hn([L,L],{value:A}),Ge=se(Ht,2),rt=Ge[0],gt=Ge[1],at=rt[Ie]||L,dt=at==="date"&&Nt?"datetime":at,st=dt===L&&dt!=="time",et=zO(L,at,W,B,!0),Qe=AO(a,ge,we,Se,Re,C,c,He,fe,f),Tt=se(Qe,2),kt=Tt[0],Xe=Tt[1],Ze=f5(Me,C,Ce,k,R,E),Et=xO(Me,f,w),Ot=se(Et,2),xt=Ot[0],Lt=Ot[1],Ct=MO(k,R,Me,rt,fe,Ie,o,st,V,K,Nt==null?void 0:Nt.defaultOpenValue,z,I,_),ht=se(Ct,2),Ft=ht[0],At=ht[1],en=wn(function(mt,it,Qt){var cn=Pu(rt,Ie,it);if((cn[0]!==rt[0]||cn[1]!==rt[1])&>(cn),T&&Qt!==!1){var In=Te(Me);mt&&(In[Ie]=mt),T(In,cn)}}),vn=function(it,Qt){return Pu(Me,Qt,it)},sn=function(it,Qt){var cn=Me;it&&(cn=vn(it,Ie)),_e(Ie);var In=ye(cn);Re(cn),kt(Ie,In===null),In===null?Ee(!1,{force:!0}):Qt||ae.current.focus({index:In})},yn=function(it){var Qt,cn=it.target.getRootNode();if(!ae.current.nativeElement.contains((Qt=cn.activeElement)!==null&&Qt!==void 0?Qt:document.activeElement)){var In=C.findIndex(function(Tr){return!Tr});In>=0&&ae.current.focus({index:In})}Ee(!0),le==null||le(it)},On=function(){Xe(null),Ee(!1,{force:!0})},kn=i.useState(null),nt=se(kn,2),_t=nt[0],ut=nt[1],Ke=i.useState(null),zt=se(Ke,2),nn=zt[0],En=zt[1],Tn=i.useMemo(function(){return nn||Me},[Me,nn]);i.useEffect(function(){fe||En(null)},[fe]);var Mt=i.useState([0,0,0]),Bt=se(Mt,2),rn=Bt[0],xn=Bt[1],fr=jO(te,ee),Jn=function(it){En(it),ut("preset")},lr=function(it){var Qt=Xe(it);Qt&&Ee(!1,{force:!0})},mr=function(it){sn(it)},Ur=function(it){En(it?vn(it,Ie):null),ut("cell")},Er=function(it){Ee(!0),ke(it)},er=function(){Ae("panel")},_r=function(it){var Qt=Pu(Me,Ie,it);Re(Qt),!x&&!l&&o===dt&&sn(it)},_n=function(){Ee(!1)},Dt=Lb(ie,de,oe,em(Ie)),Rt=Me[Ie]||null,Rn=wn(function(mt){return f(mt,{activeIndex:Ie})}),Pt=i.useMemo(function(){var mt=oa(a,!1),it=Qn(a,[].concat(Te(Object.keys(mt)),["onChange","onCalendarChange","style","className","onPanelChange","disabledTime"]));return it},[a]),It=i.createElement(VO,Pe({},Pt,{showNow:et,showTime:Nt,range:!0,multiplePanel:st,activeInfo:rn,disabledDate:Ze,onFocus:Er,onBlur:tt,onPanelMouseDown:er,picker:L,mode:at,internalMode:dt,onPanelChange:en,format:d,value:Rt,isInvalid:Rn,onChange:null,onSelect:_r,pickerValue:Ft,defaultOpenValue:es(F==null?void 0:F.defaultOpenValue)[Ie],onPickerValueChange:At,hoverValue:Tn,onHover:Ur,needConfirm:x,onSubmit:sn,onOk:De,presets:fr,onPresetHover:Jn,onPresetSubmit:lr,onNow:mr,cellRender:Dt})),gn=function(it,Qt){var cn=vn(it,Qt);Re(cn)},Kn=function(){Ae("input")},Zn=function(it,Qt){var cn=Ce.length,In=Ce[cn-1];if(cn&&In!==Qt&&x&&!w[In]&&!he(In)&&Me[In]){ae.current.focus({index:In});return}Ae("input"),Ee(!0,{inherit:!0}),Ie!==Qt&&fe&&!x&&l&&sn(null,!0),Ve(Qt),ke(it,Qt)},fn=function(it,Qt){if(Ee(!1),!x&&Ae()==="input"){var cn=ye(Me);kt(Ie,cn===null)}tt(it,Qt)},xr=function(it,Qt){it.key==="Tab"&&sn(null,!0),y==null||y(it,Qt)},Ir=i.useMemo(function(){return{prefixCls:m,locale:R,generateConfig:k,button:J.button,input:J.input}},[m,R,k,J.button,J.input]);return hn(function(){fe&&Ie!==void 0&&en(null,L,!1)},[fe,Ie,L]),hn(function(){var mt=Ae();!fe&&mt==="input"&&(Ee(!1),sn(null,!0)),!fe&&l&&!x&&mt==="panel"&&(Ee(!0),sn())},[fe]),i.createElement(Mo.Provider,{value:Ir},i.createElement(gO,Pe({},bO(a),{popupElement:It,popupStyle:p.popup,popupClassName:v.popup,visible:fe,onClose:_n,range:!0}),i.createElement(B5,Pe({},a,{ref:ae,suffixIcon:Y,activeIndex:He||fe?Ie:null,activeHelp:!!nn,allHelp:!!nn&&_t==="preset",focused:He,onFocus:Zn,onBlur:fn,onKeyDown:xr,onSubmit:sn,value:Tn,maskFormat:d,onChange:gn,onInputChange:Kn,format:c,inputReadOnly:U,disabled:C,open:fe,onOpenChange:Ee,onClick:yn,onClear:On,invalid:xt,onInvalid:Lt,onActiveInfo:xn}))))}var V5=i.forwardRef(H5);function W5(e){var t=e.prefixCls,n=e.value,r=e.onRemove,a=e.removeIcon,o=a===void 0?"×":a,l=e.formatDate,c=e.disabled,d=e.maxTagCount,f=e.placeholder,m="".concat(t,"-selector"),p="".concat(t,"-selection"),v="".concat(p,"-overflow");function h(y,C){return i.createElement("span",{className:ce("".concat(p,"-item")),title:typeof y=="string"?y:null},i.createElement("span",{className:"".concat(p,"-item-content")},y),!c&&C&&i.createElement("span",{onMouseDown:function(E){E.preventDefault()},onClick:C,className:"".concat(p,"-item-remove")},o))}function b(y){var C=l(y),w=function(I){I&&I.stopPropagation(),r(y)};return h(C,w)}function x(y){var C="+ ".concat(y.length," ...");return h(C)}return i.createElement("div",{className:m},i.createElement(Eo,{prefixCls:v,data:n,renderItem:b,renderRest:x,itemKey:function(C){return l(C)},maxCount:d}),!n.length&&i.createElement("span",{className:"".concat(t,"-selection-placeholder")},f))}var K5=["id","open","prefix","clearIcon","suffixIcon","activeHelp","allHelp","focused","onFocus","onBlur","onKeyDown","locale","generateConfig","placeholder","className","style","onClick","onClear","internalPicker","value","onChange","onSubmit","onInputChange","multiple","maxTagCount","format","maskFormat","preserveInvalidOnBlur","onInvalid","disabled","invalid","inputReadOnly","direction","onOpenChange","onMouseDown","required","aria-required","autoFocus","tabIndex","removeIcon"];function U5(e,t){e.id;var n=e.open,r=e.prefix,a=e.clearIcon,o=e.suffixIcon;e.activeHelp,e.allHelp;var l=e.focused;e.onFocus,e.onBlur,e.onKeyDown;var c=e.locale,d=e.generateConfig,f=e.placeholder,m=e.className,p=e.style,v=e.onClick,h=e.onClear,b=e.internalPicker,x=e.value,y=e.onChange,C=e.onSubmit;e.onInputChange;var w=e.multiple,E=e.maxTagCount;e.format,e.maskFormat,e.preserveInvalidOnBlur,e.onInvalid;var I=e.disabled,_=e.invalid;e.inputReadOnly;var O=e.direction;e.onOpenChange;var P=e.onMouseDown;e.required,e["aria-required"];var j=e.autoFocus,R=e.tabIndex,k=e.removeIcon,L=Kt(e,K5),W=O==="rtl",B=i.useContext(Mo),F=B.prefixCls,A=i.useRef(),T=i.useRef();i.useImperativeHandle(t,function(){return{nativeElement:A.current,focus:function(ee){var J;(J=T.current)===null||J===void 0||J.focus(ee)},blur:function(){var ee;(ee=T.current)===null||ee===void 0||ee.blur()}}});var M=KO(L),D=function(ee){y([ee])},V=function(ee){var J=x.filter(function(ie){return ie&&!pa(d,c,ie,ee,b)});y(J),n||C()},K=WO(Z(Z({},e),{},{onChange:D}),function(te){var ee=te.valueTexts;return{value:ee[0]||"",active:l}}),z=se(K,2),U=z[0],Y=z[1],q=!!(a&&x.length&&!I),X=w?i.createElement(i.Fragment,null,i.createElement(W5,{prefixCls:F,value:x,onRemove:V,formatDate:Y,maxTagCount:E,disabled:I,removeIcon:k,placeholder:f}),i.createElement("input",{className:"".concat(F,"-multiple-input"),value:x.map(Y).join(","),ref:T,readOnly:!0,autoFocus:j,tabIndex:R}),i.createElement(qp,{type:"suffix",icon:o}),q&&i.createElement(b0,{icon:a,onClear:h})):i.createElement(x0,Pe({ref:T},U(),{autoFocus:j,tabIndex:R,suffixIcon:o,clearIcon:q&&i.createElement(b0,{icon:a,onClear:h}),showActiveCls:!1}));return i.createElement("div",Pe({},M,{className:ce(F,G(G(G(G(G({},"".concat(F,"-multiple"),w),"".concat(F,"-focused"),l),"".concat(F,"-disabled"),I),"".concat(F,"-invalid"),_),"".concat(F,"-rtl"),W),m),style:p,ref:A,onClick:v,onMouseDown:function(ee){var J,ie=ee.target;ie!==((J=T.current)===null||J===void 0?void 0:J.inputElement)&&ee.preventDefault(),P==null||P(ee)}}),r&&i.createElement("div",{className:"".concat(F,"-prefix")},r),X)}var q5=i.forwardRef(U5);function Y5(e,t){var n=RO(e),r=se(n,6),a=r[0],o=r[1],l=r[2],c=r[3],d=r[4],f=r[5],m=a,p=m.prefixCls,v=m.styles,h=m.classNames,b=m.order,x=m.defaultValue,y=m.value,C=m.needConfirm,w=m.onChange,E=m.onKeyDown,I=m.disabled,_=m.disabledDate,O=m.minDate,P=m.maxDate,j=m.defaultOpen,R=m.open,k=m.onOpenChange,L=m.locale,W=m.generateConfig,B=m.picker,F=m.showNow,A=m.showToday,T=m.showTime,M=m.mode,D=m.onPanelChange,V=m.onCalendarChange,K=m.onOk,z=m.multiple,U=m.defaultPickerValue,Y=m.pickerValue,q=m.onPickerValueChange,X=m.inputReadOnly,te=m.suffixIcon,ee=m.removeIcon,J=m.onFocus,ie=m.onBlur,de=m.presets,oe=m.components,le=m.cellRender,ae=m.dateRender,ue=m.monthCellRender,pe=m.onClick,fe=NO(t);function xe(Pt){return Pt===null?null:z?Pt:Pt[0]}var Ee=BO(W,L,o),Le=PO(R,j,[I],k),Ne=se(Le,2),ge=Ne[0],we=Ne[1],Se=function(It,gn,Kn){if(V){var Zn=Z({},Kn);delete Zn.range,V(xe(It),xe(gn),Zn)}},Re=function(It){K==null||K(xe(It))},De=LO(W,L,c,!1,b,x,y,Se,Re),Me=se(De,5),Ye=Me[0],qe=Me[1],He=Me[2],ze=Me[3],Ae=Me[4],Ie=He(),Ve=kO([I]),ye=se(Ve,4),Ce=ye[0],_e=ye[1],he=ye[2],ke=ye[3],tt=function(It){_e(!0),J==null||J(It,{})},Nt=function(It){_e(!1),ie==null||ie(It,{})},Ht=Hn(B,{value:M}),Ge=se(Ht,2),rt=Ge[0],gt=Ge[1],at=rt==="date"&&T?"datetime":rt,dt=zO(B,rt,F,A),st=w&&function(Pt,It){w(xe(Pt),xe(It))},et=AO(Z(Z({},a),{},{onChange:st}),Ye,qe,He,ze,[],c,Ce,ge,f),Qe=se(et,2),Tt=Qe[1],kt=xO(Ie,f),Xe=se(kt,2),Ze=Xe[0],Et=Xe[1],Ot=i.useMemo(function(){return Ze.some(function(Pt){return Pt})},[Ze]),xt=function(It,gn){if(q){var Kn=Z(Z({},gn),{},{mode:gn.mode[0]});delete Kn.range,q(It[0],Kn)}},Lt=MO(W,L,Ie,[rt],ge,ke,o,!1,U,Y,es(T==null?void 0:T.defaultOpenValue),xt,O,P),Ct=se(Lt,2),ht=Ct[0],Ft=Ct[1],At=wn(function(Pt,It,gn){if(gt(It),D&&gn!==!1){var Kn=Pt||Ie[Ie.length-1];D(Kn,It)}}),en=function(){Tt(He()),we(!1,{force:!0})},vn=function(It){!I&&!fe.current.nativeElement.contains(document.activeElement)&&fe.current.focus(),we(!0),pe==null||pe(It)},sn=function(){Tt(null),we(!1,{force:!0})},yn=i.useState(null),On=se(yn,2),kn=On[0],nt=On[1],_t=i.useState(null),ut=se(_t,2),Ke=ut[0],zt=ut[1],nn=i.useMemo(function(){var Pt=[Ke].concat(Te(Ie)).filter(function(It){return It});return z?Pt:Pt.slice(0,1)},[Ie,Ke,z]),En=i.useMemo(function(){return!z&&Ke?[Ke]:Ie.filter(function(Pt){return Pt})},[Ie,Ke,z]);i.useEffect(function(){ge||zt(null)},[ge]);var Tn=jO(de),Mt=function(It){zt(It),nt("preset")},Bt=function(It){var gn=z?Ee(He(),It):[It],Kn=Tt(gn);Kn&&!z&&we(!1,{force:!0})},rn=function(It){Bt(It)},xn=function(It){zt(It),nt("cell")},fr=function(It){we(!0),tt(It)},Jn=function(It){if(he("panel"),!(z&&at!==B)){var gn=z?Ee(He(),It):[It];ze(gn),!C&&!l&&o===at&&en()}},lr=function(){we(!1)},mr=Lb(le,ae,ue),Ur=i.useMemo(function(){var Pt=oa(a,!1),It=Qn(a,[].concat(Te(Object.keys(Pt)),["onChange","onCalendarChange","style","className","onPanelChange"]));return Z(Z({},It),{},{multiple:a.multiple})},[a]),Er=i.createElement(VO,Pe({},Ur,{showNow:dt,showTime:T,disabledDate:_,onFocus:fr,onBlur:Nt,picker:B,mode:rt,internalMode:at,onPanelChange:At,format:d,value:Ie,isInvalid:f,onChange:null,onSelect:Jn,pickerValue:ht,defaultOpenValue:T==null?void 0:T.defaultOpenValue,onPickerValueChange:Ft,hoverValue:nn,onHover:xn,needConfirm:C,onSubmit:en,onOk:Ae,presets:Tn,onPresetHover:Mt,onPresetSubmit:Bt,onNow:rn,cellRender:mr})),er=function(It){ze(It)},_r=function(){he("input")},_n=function(It){he("input"),we(!0,{inherit:!0}),tt(It)},Dt=function(It){we(!1),Nt(It)},Rt=function(It,gn){It.key==="Tab"&&en(),E==null||E(It,gn)},Rn=i.useMemo(function(){return{prefixCls:p,locale:L,generateConfig:W,button:oe.button,input:oe.input}},[p,L,W,oe.button,oe.input]);return hn(function(){ge&&ke!==void 0&&At(null,B,!1)},[ge,ke,B]),hn(function(){var Pt=he();!ge&&Pt==="input"&&(we(!1),en()),!ge&&l&&!C&&Pt==="panel"&&en()},[ge]),i.createElement(Mo.Provider,{value:Rn},i.createElement(gO,Pe({},bO(a),{popupElement:Er,popupStyle:v.popup,popupClassName:h.popup,visible:ge,onClose:lr}),i.createElement(q5,Pe({},a,{ref:fe,suffixIcon:te,removeIcon:ee,activeHelp:!!Ke,allHelp:!!Ke&&kn==="preset",focused:Ce,onFocus:_n,onBlur:Dt,onKeyDown:Rt,onSubmit:en,value:En,maskFormat:d,onChange:er,onInputChange:_r,internalPicker:o,format:c,inputReadOnly:X,disabled:I,open:ge,onOpenChange:we,onClick:vn,onClear:sn,invalid:Ot,onInvalid:function(It){Et(It,0)}}))))}var G5=i.forwardRef(Y5);const UO=i.createContext(null),X5=UO.Provider,qO=i.createContext(null),Q5=qO.Provider;var J5=["prefixCls","className","style","checked","disabled","defaultChecked","type","title","onChange"],YO=i.forwardRef(function(e,t){var n=e.prefixCls,r=n===void 0?"rc-checkbox":n,a=e.className,o=e.style,l=e.checked,c=e.disabled,d=e.defaultChecked,f=d===void 0?!1:d,m=e.type,p=m===void 0?"checkbox":m,v=e.title,h=e.onChange,b=Kt(e,J5),x=i.useRef(null),y=i.useRef(null),C=Hn(f,{value:l}),w=se(C,2),E=w[0],I=w[1];i.useImperativeHandle(t,function(){return{focus:function(j){var R;(R=x.current)===null||R===void 0||R.focus(j)},blur:function(){var j;(j=x.current)===null||j===void 0||j.blur()},input:x.current,nativeElement:y.current}});var _=ce(r,a,G(G({},"".concat(r,"-checked"),E),"".concat(r,"-disabled"),c)),O=function(j){c||("checked"in e||I(j.target.checked),h==null||h({target:Z(Z({},e),{},{type:p,checked:j.target.checked}),stopPropagation:function(){j.stopPropagation()},preventDefault:function(){j.preventDefault()},nativeEvent:j.nativeEvent}))};return i.createElement("span",{className:_,title:v,style:o,ref:y},i.createElement("input",Pe({},b,{className:"".concat(r,"-input"),ref:x,onChange:O,disabled:c,checked:!!E,type:p})),i.createElement("span",{className:"".concat(r,"-inner")}))});function GO(e){const t=be.useRef(null),n=()=>{mn.cancel(t.current),t.current=null};return[()=>{n(),t.current=mn(()=>{t.current=null})},o=>{t.current&&(o.stopPropagation(),n()),e==null||e(o)}]}const Z5=e=>{const{componentCls:t,antCls:n}=e,r=`${t}-group`;return{[r]:Object.assign(Object.assign({},Ln(e)),{display:"inline-block",fontSize:0,[`&${r}-rtl`]:{direction:"rtl"},[`&${r}-block`]:{display:"flex"},[`${n}-badge ${n}-badge-count`]:{zIndex:1},[`> ${n}-badge:not(:first-child) > ${n}-button-wrapper`]:{borderInlineStart:"none"}})}},eH=e=>{const{componentCls:t,wrapperMarginInlineEnd:n,colorPrimary:r,radioSize:a,motionDurationSlow:o,motionDurationMid:l,motionEaseInOutCirc:c,colorBgContainer:d,colorBorder:f,lineWidth:m,colorBgContainerDisabled:p,colorTextDisabled:v,paddingXS:h,dotColorDisabled:b,lineType:x,radioColor:y,radioBgColor:C,calc:w}=e,E=`${t}-inner`,_=w(a).sub(w(4).mul(2)),O=w(1).mul(a).equal({unit:!0});return{[`${t}-wrapper`]:Object.assign(Object.assign({},Ln(e)),{display:"inline-flex",alignItems:"baseline",marginInlineStart:0,marginInlineEnd:n,cursor:"pointer","&:last-child":{marginInlineEnd:0},[`&${t}-wrapper-rtl`]:{direction:"rtl"},"&-disabled":{cursor:"not-allowed",color:e.colorTextDisabled},"&::after":{display:"inline-block",width:0,overflow:"hidden",content:'"\\a0"'},"&-block":{flex:1,justifyContent:"center"},[`${t}-checked::after`]:{position:"absolute",insetBlockStart:0,insetInlineStart:0,width:"100%",height:"100%",border:`${ne(m)} ${x} ${r}`,borderRadius:"50%",visibility:"hidden",opacity:0,content:'""'},[t]:Object.assign(Object.assign({},Ln(e)),{position:"relative",display:"inline-block",outline:"none",cursor:"pointer",alignSelf:"center",borderRadius:"50%"}),[`${t}-wrapper:hover &, + &:hover ${E}`]:{borderColor:r},[`${t}-input:focus-visible + ${E}`]:Object.assign({},qo(e)),[`${t}:hover::after, ${t}-wrapper:hover &::after`]:{visibility:"visible"},[`${t}-inner`]:{"&::after":{boxSizing:"border-box",position:"absolute",insetBlockStart:"50%",insetInlineStart:"50%",display:"block",width:O,height:O,marginBlockStart:w(1).mul(a).div(-2).equal({unit:!0}),marginInlineStart:w(1).mul(a).div(-2).equal({unit:!0}),backgroundColor:y,borderBlockStart:0,borderInlineStart:0,borderRadius:O,transform:"scale(0)",opacity:0,transition:`all ${o} ${c}`,content:'""'},boxSizing:"border-box",position:"relative",insetBlockStart:0,insetInlineStart:0,display:"block",width:O,height:O,backgroundColor:d,borderColor:f,borderStyle:"solid",borderWidth:m,borderRadius:"50%",transition:`all ${l}`},[`${t}-input`]:{position:"absolute",inset:0,zIndex:1,cursor:"pointer",opacity:0},[`${t}-checked`]:{[E]:{borderColor:r,backgroundColor:C,"&::after":{transform:`scale(${e.calc(e.dotSize).div(a).equal()})`,opacity:1,transition:`all ${o} ${c}`}}},[`${t}-disabled`]:{cursor:"not-allowed",[E]:{backgroundColor:p,borderColor:f,cursor:"not-allowed","&::after":{backgroundColor:b}},[`${t}-input`]:{cursor:"not-allowed"},[`${t}-disabled + span`]:{color:v,cursor:"not-allowed"},[`&${t}-checked`]:{[E]:{"&::after":{transform:`scale(${w(_).div(a).equal()})`}}}},[`span${t} + *`]:{paddingInlineStart:h,paddingInlineEnd:h}})}},tH=e=>{const{buttonColor:t,controlHeight:n,componentCls:r,lineWidth:a,lineType:o,colorBorder:l,motionDurationSlow:c,motionDurationMid:d,buttonPaddingInline:f,fontSize:m,buttonBg:p,fontSizeLG:v,controlHeightLG:h,controlHeightSM:b,paddingXS:x,borderRadius:y,borderRadiusSM:C,borderRadiusLG:w,buttonCheckedBg:E,buttonSolidCheckedColor:I,colorTextDisabled:_,colorBgContainerDisabled:O,buttonCheckedBgDisabled:P,buttonCheckedColorDisabled:j,colorPrimary:R,colorPrimaryHover:k,colorPrimaryActive:L,buttonSolidCheckedBg:W,buttonSolidCheckedHoverBg:B,buttonSolidCheckedActiveBg:F,calc:A}=e;return{[`${r}-button-wrapper`]:{position:"relative",display:"inline-block",height:n,margin:0,paddingInline:f,paddingBlock:0,color:t,fontSize:m,lineHeight:ne(A(n).sub(A(a).mul(2)).equal()),background:p,border:`${ne(a)} ${o} ${l}`,borderBlockStartWidth:A(a).add(.02).equal(),borderInlineStartWidth:0,borderInlineEndWidth:a,cursor:"pointer",transition:[`color ${d}`,`background ${d}`,`box-shadow ${d}`].join(","),a:{color:t},[`> ${r}-button`]:{position:"absolute",insetBlockStart:0,insetInlineStart:0,zIndex:-1,width:"100%",height:"100%"},"&:not(:first-child)":{"&::before":{position:"absolute",insetBlockStart:A(a).mul(-1).equal(),insetInlineStart:A(a).mul(-1).equal(),display:"block",boxSizing:"content-box",width:1,height:"100%",paddingBlock:a,paddingInline:0,backgroundColor:l,transition:`background-color ${c}`,content:'""'}},"&:first-child":{borderInlineStart:`${ne(a)} ${o} ${l}`,borderStartStartRadius:y,borderEndStartRadius:y},"&:last-child":{borderStartEndRadius:y,borderEndEndRadius:y},"&:first-child:last-child":{borderRadius:y},[`${r}-group-large &`]:{height:h,fontSize:v,lineHeight:ne(A(h).sub(A(a).mul(2)).equal()),"&:first-child":{borderStartStartRadius:w,borderEndStartRadius:w},"&:last-child":{borderStartEndRadius:w,borderEndEndRadius:w}},[`${r}-group-small &`]:{height:b,paddingInline:A(x).sub(a).equal(),paddingBlock:0,lineHeight:ne(A(b).sub(A(a).mul(2)).equal()),"&:first-child":{borderStartStartRadius:C,borderEndStartRadius:C},"&:last-child":{borderStartEndRadius:C,borderEndEndRadius:C}},"&:hover":{position:"relative",color:R},"&:has(:focus-visible)":Object.assign({},qo(e)),[`${r}-inner, input[type='checkbox'], input[type='radio']`]:{width:0,height:0,opacity:0,pointerEvents:"none"},[`&-checked:not(${r}-button-wrapper-disabled)`]:{zIndex:1,color:R,background:E,borderColor:R,"&::before":{backgroundColor:R},"&:first-child":{borderColor:R},"&:hover":{color:k,borderColor:k,"&::before":{backgroundColor:k}},"&:active":{color:L,borderColor:L,"&::before":{backgroundColor:L}}},[`${r}-group-solid &-checked:not(${r}-button-wrapper-disabled)`]:{color:I,background:W,borderColor:W,"&:hover":{color:I,background:B,borderColor:B},"&:active":{color:I,background:F,borderColor:F}},"&-disabled":{color:_,backgroundColor:O,borderColor:l,cursor:"not-allowed","&:first-child, &:hover":{color:_,backgroundColor:O,borderColor:l}},[`&-disabled${r}-button-wrapper-checked`]:{color:j,backgroundColor:P,borderColor:l,boxShadow:"none"},"&-block":{flex:1,textAlign:"center"}}}},nH=e=>{const{wireframe:t,padding:n,marginXS:r,lineWidth:a,fontSizeLG:o,colorText:l,colorBgContainer:c,colorTextDisabled:d,controlItemBgActiveDisabled:f,colorTextLightSolid:m,colorPrimary:p,colorPrimaryHover:v,colorPrimaryActive:h,colorWhite:b}=e,x=4,y=o,C=t?y-x*2:y-(x+a)*2;return{radioSize:y,dotSize:C,dotColorDisabled:d,buttonSolidCheckedColor:m,buttonSolidCheckedBg:p,buttonSolidCheckedHoverBg:v,buttonSolidCheckedActiveBg:h,buttonBg:c,buttonCheckedBg:c,buttonColor:l,buttonCheckedBgDisabled:f,buttonCheckedColorDisabled:d,buttonPaddingInline:n-a,wrapperMarginInlineEnd:r,radioColor:t?p:b,radioBgColor:t?c:p}},XO=zn("Radio",e=>{const{controlOutline:t,controlOutlineWidth:n}=e,r=`0 0 0 ${ne(n)} ${t}`,o=$n(e,{radioFocusShadow:r,radioButtonFocusShadow:r});return[Z5(o),eH(o),tH(o)]},nH,{unitless:{radioSize:!0,dotSize:!0}});var rH=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 a=0,r=Object.getOwnPropertySymbols(e);a{var n,r;const a=i.useContext(UO),o=i.useContext(qO),{getPrefixCls:l,direction:c,radio:d}=i.useContext(Gt),f=i.useRef(null),m=ya(t,f),{isFormItemInput:p}=i.useContext(Qr),v=T=>{var M,D;(M=e.onChange)===null||M===void 0||M.call(e,T),(D=a==null?void 0:a.onChange)===null||D===void 0||D.call(a,T)},{prefixCls:h,className:b,rootClassName:x,children:y,style:C,title:w}=e,E=rH(e,["prefixCls","className","rootClassName","children","style","title"]),I=l("radio",h),_=((a==null?void 0:a.optionType)||o)==="button",O=_?`${I}-button`:I,P=Kr(I),[j,R,k]=XO(I,P),L=Object.assign({},E),W=i.useContext(ha);a&&(L.name=a.name,L.onChange=v,L.checked=e.value===a.value,L.disabled=(n=L.disabled)!==null&&n!==void 0?n:a.disabled),L.disabled=(r=L.disabled)!==null&&r!==void 0?r:W;const B=ce(`${O}-wrapper`,{[`${O}-wrapper-checked`]:L.checked,[`${O}-wrapper-disabled`]:L.disabled,[`${O}-wrapper-rtl`]:c==="rtl",[`${O}-wrapper-in-form-item`]:p,[`${O}-wrapper-block`]:!!(a!=null&&a.block)},d==null?void 0:d.className,b,x,R,k,P),[F,A]=GO(L.onClick);return j(i.createElement(yd,{component:"Radio",disabled:L.disabled},i.createElement("label",{className:B,style:Object.assign(Object.assign({},d==null?void 0:d.style),C),onMouseEnter:e.onMouseEnter,onMouseLeave:e.onMouseLeave,title:w,onClick:F},i.createElement(YO,Object.assign({},L,{className:ce(L.className,{[hp]:!_}),type:"radio",prefixCls:O,ref:m,onClick:A})),y!==void 0?i.createElement("span",{className:`${O}-label`},y):null)))},Qm=i.forwardRef(aH),oH=i.forwardRef((e,t)=>{const{getPrefixCls:n,direction:r}=i.useContext(Gt),a=pb(),{prefixCls:o,className:l,rootClassName:c,options:d,buttonStyle:f="outline",disabled:m,children:p,size:v,style:h,id:b,optionType:x,name:y=a,defaultValue:C,value:w,block:E=!1,onChange:I,onMouseEnter:_,onMouseLeave:O,onFocus:P,onBlur:j}=e,[R,k]=Hn(C,{value:w}),L=i.useCallback(U=>{const Y=R,q=U.target.value;"value"in e||k(q),q!==Y&&(I==null||I(U))},[R,k,I]),W=n("radio",o),B=`${W}-group`,F=Kr(W),[A,T,M]=XO(W,F);let D=p;d&&d.length>0&&(D=d.map(U=>typeof U=="string"||typeof U=="number"?i.createElement(Qm,{key:U.toString(),prefixCls:W,disabled:m,value:U,checked:R===U},U):i.createElement(Qm,{key:`radio-group-value-options-${U.value}`,prefixCls:W,disabled:U.disabled||m,value:U.value,checked:R===U.value,title:U.title,style:U.style,id:U.id,required:U.required},U.label)));const V=Zr(v),K=ce(B,`${B}-${f}`,{[`${B}-${V}`]:V,[`${B}-rtl`]:r==="rtl",[`${B}-block`]:E},l,c,T,M,F),z=i.useMemo(()=>({onChange:L,value:R,disabled:m,name:y,optionType:x,block:E}),[L,R,m,y,x,E]);return A(i.createElement("div",Object.assign({},oa(e,{aria:!0,data:!0}),{className:K,style:h,onMouseEnter:_,onMouseLeave:O,onFocus:P,onBlur:j,id:b,ref:t}),i.createElement(X5,{value:z},D)))}),iH=i.memo(oH);var lH=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 a=0,r=Object.getOwnPropertySymbols(e);a{const{getPrefixCls:n}=i.useContext(Gt),{prefixCls:r}=e,a=lH(e,["prefixCls"]),o=n("radio",r);return i.createElement(Q5,{value:"button"},i.createElement(Qm,Object.assign({prefixCls:o},a,{type:"radio",ref:t})))},cH=i.forwardRef(sH),na=Qm;na.Button=cH;na.Group=iH;na.__ANT_RADIO=!0;function ns(e){return $n(e,{inputAffixPadding:e.paddingXXS})}const rs=e=>{const{controlHeight:t,fontSize:n,lineHeight:r,lineWidth:a,controlHeightSM:o,controlHeightLG:l,fontSizeLG:c,lineHeightLG:d,paddingSM:f,controlPaddingHorizontalSM:m,controlPaddingHorizontal:p,colorFillAlter:v,colorPrimaryHover:h,colorPrimary:b,controlOutlineWidth:x,controlOutline:y,colorErrorOutline:C,colorWarningOutline:w,colorBgContainer:E,inputFontSize:I,inputFontSizeLG:_,inputFontSizeSM:O}=e,P=I||n,j=O||P,R=_||c,k=Math.round((t-P*r)/2*10)/10-a,L=Math.round((o-j*r)/2*10)/10-a,W=Math.ceil((l-R*d)/2*10)/10-a;return{paddingBlock:Math.max(k,0),paddingBlockSM:Math.max(L,0),paddingBlockLG:Math.max(W,0),paddingInline:f-a,paddingInlineSM:m-a,paddingInlineLG:p-a,addonBg:v,activeBorderColor:b,hoverBorderColor:h,activeShadow:`0 0 0 ${x}px ${y}`,errorActiveShadow:`0 0 0 ${x}px ${C}`,warningActiveShadow:`0 0 0 ${x}px ${w}`,hoverBg:E,activeBg:E,inputFontSize:P,inputFontSizeLG:R,inputFontSizeSM:j}},uH=e=>({borderColor:e.hoverBorderColor,backgroundColor:e.hoverBg}),Yp=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({},uH($n(e,{hoverBorderColor:e.colorBorder,hoverBg:e.colorBgContainerDisabled})))}),Vb=(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}}),D$=(e,t)=>({[`&${e.componentCls}-status-${t.status}:not(${e.componentCls}-disabled)`]:Object.assign(Object.assign({},Vb(e,t)),{[`${e.componentCls}-prefix, ${e.componentCls}-suffix`]:{color:t.affixColor}}),[`&${e.componentCls}-status-${t.status}${e.componentCls}-disabled`]:{borderColor:t.borderColor}}),Wb=(e,t)=>({"&-outlined":Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},Vb(e,{borderColor:e.colorBorder,hoverBorderColor:e.hoverBorderColor,activeBorderColor:e.activeBorderColor,activeShadow:e.activeShadow})),{[`&${e.componentCls}-disabled, &[disabled]`]:Object.assign({},Yp(e))}),D$(e,{status:"error",borderColor:e.colorError,hoverBorderColor:e.colorErrorBorderHover,activeBorderColor:e.colorError,activeShadow:e.errorActiveShadow,affixColor:e.colorError})),D$(e,{status:"warning",borderColor:e.colorWarning,hoverBorderColor:e.colorWarningBorderHover,activeBorderColor:e.colorWarning,activeShadow:e.warningActiveShadow,affixColor:e.colorWarning})),t)}),F$=(e,t)=>({[`&${e.componentCls}-group-wrapper-status-${t.status}`]:{[`${e.componentCls}-group-addon`]:{borderColor:t.addonBorderColor,color:t.addonColor}}}),QO=e=>({"&-outlined":Object.assign(Object.assign(Object.assign({[`${e.componentCls}-group`]:{"&-addon":{background:e.addonBg,border:`${ne(e.lineWidth)} ${e.lineType} ${e.colorBorder}`},"&-addon:first-child":{borderInlineEnd:0},"&-addon:last-child":{borderInlineStart:0}}},F$(e,{status:"error",addonBorderColor:e.colorError,addonColor:e.colorErrorText})),F$(e,{status:"warning",addonBorderColor:e.colorWarning,addonColor:e.colorWarningText})),{[`&${e.componentCls}-group-wrapper-disabled`]:{[`${e.componentCls}-group-addon`]:Object.assign({},Yp(e))}})}),Kb=(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,cursor:"not-allowed"},[`&${n}-status-error`]:{"&, & input, & textarea":{color:e.colorError}},[`&${n}-status-warning`]:{"&, & input, & textarea":{color:e.colorWarning}}},t)}},JO=(e,t)=>{var n;return{background:t.bg,borderWidth:e.lineWidth,borderStyle:e.lineType,borderColor:"transparent","input&, & input, textarea&, & textarea":{color:(n=t==null?void 0:t.inputColor)!==null&&n!==void 0?n:"unset"},"&:hover":{background:t.hoverBg},"&:focus, &:focus-within":{outline:0,borderColor:t.activeBorderColor,backgroundColor:e.activeBg}}},L$=(e,t)=>({[`&${e.componentCls}-status-${t.status}:not(${e.componentCls}-disabled)`]:Object.assign(Object.assign({},JO(e,t)),{[`${e.componentCls}-prefix, ${e.componentCls}-suffix`]:{color:t.affixColor}})}),Ub=(e,t)=>({"&-filled":Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},JO(e,{bg:e.colorFillTertiary,hoverBg:e.colorFillSecondary,activeBorderColor:e.activeBorderColor})),{[`&${e.componentCls}-disabled, &[disabled]`]:Object.assign({},Yp(e))}),L$(e,{status:"error",bg:e.colorErrorBg,hoverBg:e.colorErrorBgHover,activeBorderColor:e.colorError,inputColor:e.colorErrorText,affixColor:e.colorError})),L$(e,{status:"warning",bg:e.colorWarningBg,hoverBg:e.colorWarningBgHover,activeBorderColor:e.colorWarning,inputColor:e.colorWarningText,affixColor:e.colorWarning})),t)}),A$=(e,t)=>({[`&${e.componentCls}-group-wrapper-status-${t.status}`]:{[`${e.componentCls}-group-addon`]:{background:t.addonBg,color:t.addonColor}}}),ZO=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:`${ne(e.lineWidth)} ${e.lineType} ${e.colorSplit}`},"&:not(:last-child)":{borderInlineEnd:`${ne(e.lineWidth)} ${e.lineType} ${e.colorSplit}`}}}},A$(e,{status:"error",addonBg:e.colorErrorBg,addonColor:e.colorErrorText})),A$(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:`${ne(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,borderTop:`${ne(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,borderBottom:`${ne(e.lineWidth)} ${e.lineType} ${e.colorBorder}`},"&-addon:last-child":{borderInlineEnd:`${ne(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,borderTop:`${ne(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,borderBottom:`${ne(e.lineWidth)} ${e.lineType} ${e.colorBorder}`}}}})}),eR=(e,t)=>({background:e.colorBgContainer,borderWidth:`${ne(e.lineWidth)} 0`,borderStyle:`${e.lineType} none`,borderColor:`transparent transparent ${t.borderColor} transparent`,borderRadius:0,"&:hover":{borderColor:`transparent transparent ${t.borderColor} transparent`,backgroundColor:e.hoverBg},"&:focus, &:focus-within":{borderColor:`transparent transparent ${t.borderColor} transparent`,outline:0,backgroundColor:e.activeBg}}),z$=(e,t)=>({[`&${e.componentCls}-status-${t.status}:not(${e.componentCls}-disabled)`]:Object.assign(Object.assign({},eR(e,t)),{[`${e.componentCls}-prefix, ${e.componentCls}-suffix`]:{color:t.affixColor}}),[`&${e.componentCls}-status-${t.status}${e.componentCls}-disabled`]:{borderColor:`transparent transparent ${t.borderColor} transparent`}}),qb=(e,t)=>({"&-underlined":Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},eR(e,{borderColor:e.colorBorder,hoverBorderColor:e.hoverBorderColor,activeBorderColor:e.activeBorderColor,activeShadow:e.activeShadow})),{[`&${e.componentCls}-disabled, &[disabled]`]:{color:e.colorTextDisabled,boxShadow:"none",cursor:"not-allowed","&:hover":{borderColor:`transparent transparent ${e.colorBorder} transparent`}},"input[disabled], textarea[disabled]":{cursor:"not-allowed"}}),z$(e,{status:"error",borderColor:e.colorError,hoverBorderColor:e.colorErrorBorderHover,activeBorderColor:e.colorError,activeShadow:e.errorActiveShadow,affixColor:e.colorError})),z$(e,{status:"warning",borderColor:e.colorWarning,hoverBorderColor:e.colorWarningBorderHover,activeBorderColor:e.colorWarning,activeShadow:e.warningActiveShadow,affixColor:e.colorWarning})),t)}),Yb=e=>({"&::-moz-placeholder":{opacity:1},"&::placeholder":{color:e,userSelect:"none"},"&:placeholder-shown":{textOverflow:"ellipsis"}}),tR=e=>{const{paddingBlockLG:t,lineHeightLG:n,borderRadiusLG:r,paddingInlineLG:a}=e;return{padding:`${ne(t)} ${ne(a)}`,fontSize:e.inputFontSizeLG,lineHeight:n,borderRadius:r}},Gb=e=>({padding:`${ne(e.paddingBlockSM)} ${ne(e.paddingInlineSM)}`,fontSize:e.inputFontSizeSM,borderRadius:e.borderRadiusSM}),Ed=e=>Object.assign(Object.assign({position:"relative",display:"inline-block",width:"100%",minWidth:0,padding:`${ne(e.paddingBlock)} ${ne(e.paddingInline)}`,color:e.colorText,fontSize:e.inputFontSize,lineHeight:e.lineHeight,borderRadius:e.borderRadius,transition:`all ${e.motionDurationMid}`},Yb(e.colorTextPlaceholder)),{"&-lg":Object.assign({},tR(e)),"&-sm":Object.assign({},Gb(e)),"&-rtl, &-textarea-rtl":{direction:"rtl"}}),nR=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({},tR(e)),[`&-sm ${t}, &-sm > ${t}-group-addon`]:Object.assign({},Gb(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 ${ne(e.paddingInline)}`,color:e.colorText,fontWeight:"normal",fontSize:e.inputFontSize,textAlign:"center",borderRadius:e.borderRadius,transition:`all ${e.motionDurationSlow}`,lineHeight:1,[`${n}-select`]:{margin:`${ne(e.calc(e.paddingBlock).add(1).mul(-1).equal())} ${ne(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:`${ne(e.lineWidth)} ${e.lineType} transparent`,boxShadow:"none"}}},[`${n}-cascader-picker`]:{margin:`-9px ${ne(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"},Uo()),{[`${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 + `]:{display:"inline-flex"},"& > *:not(:last-child)":{marginInlineEnd:e.calc(e.lineWidth).mul(-1).equal(),borderInlineEndWidth:e.lineWidth},[t]:{float:"none"},[`& > ${n}-select > ${n}-select-selector, + & > ${n}-select-auto-complete ${t}, + & > ${n}-cascader-picker ${t}, + & > ${t}-group-wrapper ${t}`]:{borderInlineEndWidth:e.lineWidth,borderRadius:0,"&:hover, &:focus":{zIndex:1}},[`& > ${n}-select-focused`]:{zIndex:1},[`& > ${n}-select > ${n}-select-arrow`]:{zIndex:1},[`& > *:first-child, + & > ${n}-select:first-child > ${n}-select-selector, + & > ${n}-select-auto-complete:first-child ${t}, + & > ${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}}}})}},dH=e=>{const{componentCls:t,controlHeightSM:n,lineWidth:r,calc:a}=e,l=a(n).sub(a(r).mul(2)).sub(16).div(2).equal();return{[t]:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},Ln(e)),Ed(e)),Wb(e)),Ub(e)),Kb(e)),qb(e)),{'&[type="color"]':{height:e.controlHeight,[`&${t}-lg`]:{height:e.controlHeightLG},[`&${t}-sm`]:{height:n,paddingTop:l,paddingBottom:l}},'&[type="search"]::-webkit-search-cancel-button, &[type="search"]::-webkit-search-decoration':{appearance:"none"}})}},fH=e=>{const{componentCls:t}=e;return{[`${t}-clear-icon`]:{margin:0,padding:0,lineHeight:0,color:e.colorTextQuaternary,fontSize:e.fontSizeIcon,verticalAlign:-1,cursor:"pointer",transition:`color ${e.motionDurationSlow}`,border:"none",outline:"none",backgroundColor:"transparent","&:hover":{color:e.colorTextTertiary},"&:active":{color:e.colorText},"&-hidden":{visibility:"hidden"},"&-has-suffix":{margin:`0 ${ne(e.inputAffixPadding)}`}}}},mH=e=>{const{componentCls:t,inputAffixPadding:n,colorTextDescription:r,motionDurationSlow:a,colorIcon:o,colorIconHover:l,iconCls:c}=e,d=`${t}-affix-wrapper`,f=`${t}-affix-wrapper-disabled`;return{[d]:Object.assign(Object.assign(Object.assign(Object.assign({},Ed(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}}}),fH(e)),{[`${c}${t}-password-icon`]:{color:o,cursor:"pointer",transition:`all ${a}`,"&:hover":{color:l}}}),[`${t}-underlined`]:{borderRadius:0},[f]:{[`${c}${t}-password-icon`]:{color:o,cursor:"not-allowed","&:hover":{color:o}}}}},pH=e=>{const{componentCls:t,borderRadiusLG:n,borderRadiusSM:r}=e;return{[`${t}-group`]:Object.assign(Object.assign(Object.assign({},Ln(e)),nR(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}}},QO(e)),ZO(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}},[`&:not(${t}-compact-first-item)${t}-compact-item`]:{[`${t}-affix-wrapper`]:{borderStartStartRadius:0,borderEndStartRadius:0}}})})}},vH=e=>{const{componentCls:t,antCls:n}=e,r=`${t}-search`;return{[r]:{[t]:{"&:hover, &:focus":{[`+ ${t}-group-addon ${r}-button:not(${n}-btn-primary)`]:{borderInlineStartColor:e.colorPrimaryHover}}},[`${t}-affix-wrapper`]:{height:e.controlHeight,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,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":{[`${t}-affix-wrapper, ${r}-button`]:{height:e.controlHeightLG}},"&-small":{[`${t}-affix-wrapper, ${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}}}}},gH=e=>{const{componentCls:t}=e;return{[`${t}-out-of-range`]:{[`&, & input, & textarea, ${t}-show-count-suffix, ${t}-data-count`]:{color:e.colorError}}}},rR=zn(["Input","Shared"],e=>{const t=$n(e,ns(e));return[dH(t),mH(t)]},rs,{resetFont:!1}),aR=zn(["Input","Component"],e=>{const t=$n(e,ns(e));return[pH(t),vH(t),gH(t),bd(t)]},rs,{resetFont:!1}),Mh=(e,t)=>{const{componentCls:n,controlHeight:r}=e,a=t?`${n}-${t}`:"",o=M2(e);return[{[`${n}-multiple${a}`]:{paddingBlock:o.containerPadding,paddingInlineStart:o.basePadding,minHeight:r,[`${n}-selection-item`]:{height:o.itemHeight,lineHeight:ne(o.itemLineHeight)}}}]},hH=e=>{const{componentCls:t,calc:n,lineWidth:r}=e,a=$n(e,{fontHeight:e.fontSize,selectHeight:e.controlHeightSM,multipleSelectItemHeight:e.multipleItemHeightSM,borderRadius:e.borderRadiusSM,borderRadiusSM:e.borderRadiusXS,controlHeight:e.controlHeightSM}),o=$n(e,{fontHeight:n(e.multipleItemHeightLG).sub(n(r).mul(2).equal()).equal(),fontSize:e.fontSizeLG,selectHeight:e.controlHeightLG,multipleSelectItemHeight:e.multipleItemHeightLG,borderRadius:e.borderRadiusLG,borderRadiusSM:e.borderRadius,controlHeight:e.controlHeightLG});return[Mh(a,"small"),Mh(e),Mh(o,"large"),{[`${t}${t}-multiple`]:Object.assign(Object.assign({width:"100%",cursor:"text",[`${t}-selector`]:{flex:"auto",padding:0,position:"relative","&:after":{margin:0},[`${t}-selection-placeholder`]:{position:"absolute",top:"50%",insetInlineStart:e.inputPaddingHorizontalBase,insetInlineEnd:0,transform:"translateY(-50%)",transition:`all ${e.motionDurationSlow}`,overflow:"hidden",whiteSpace:"nowrap",textOverflow:"ellipsis",flex:1,color:e.colorTextPlaceholder,pointerEvents:"none"}}},T2(e)),{[`${t}-multiple-input`]:{width:0,height:0,border:0,visibility:"hidden",position:"absolute",zIndex:-1}})}]},yH=e=>{const{pickerCellCls:t,pickerCellInnerCls:n,cellHeight:r,borderRadiusSM:a,motionDurationMid:o,cellHoverBg:l,lineWidth:c,lineType:d,colorPrimary:f,cellActiveWithRangeBg:m,colorTextLightSolid:p,colorTextDisabled:v,cellBgDisabled:h,colorFillSecondary:b}=e;return{"&::before":{position:"absolute",top:"50%",insetInlineStart:0,insetInlineEnd:0,zIndex:1,height:r,transform:"translateY(-50%)",content:'""',pointerEvents:"none"},[n]:{position:"relative",zIndex:2,display:"inline-block",minWidth:r,height:r,lineHeight:ne(r),borderRadius:a,transition:`background ${o}`},[`&:hover:not(${t}-in-view):not(${t}-disabled), + &:hover:not(${t}-selected):not(${t}-range-start):not(${t}-range-end):not(${t}-disabled)`]:{[n]:{background:l}},[`&-in-view${t}-today ${n}`]:{"&::before":{position:"absolute",top:0,insetInlineEnd:0,bottom:0,insetInlineStart:0,zIndex:1,border:`${ne(c)} ${d} ${f}`,borderRadius:a,content:'""'}},[`&-in-view${t}-in-range, + &-in-view${t}-range-start, + &-in-view${t}-range-end`]:{position:"relative",[`&:not(${t}-disabled):before`]:{background:m}},[`&-in-view${t}-selected, + &-in-view${t}-range-start, + &-in-view${t}-range-end`]:{[`&:not(${t}-disabled) ${n}`]:{color:p,background:f},[`&${t}-disabled ${n}`]:{background:b}},[`&-in-view${t}-range-start:not(${t}-disabled):before`]:{insetInlineStart:"50%"},[`&-in-view${t}-range-end:not(${t}-disabled):before`]:{insetInlineEnd:"50%"},[`&-in-view${t}-range-start:not(${t}-range-end) ${n}`]:{borderStartStartRadius:a,borderEndStartRadius:a,borderStartEndRadius:0,borderEndEndRadius:0},[`&-in-view${t}-range-end:not(${t}-range-start) ${n}`]:{borderStartStartRadius:0,borderEndStartRadius:0,borderStartEndRadius:a,borderEndEndRadius:a},"&-disabled":{color:v,cursor:"not-allowed",[n]:{background:"transparent"},"&::before":{background:h}},[`&-disabled${t}-today ${n}::before`]:{borderColor:v}}},bH=e=>{const{componentCls:t,pickerCellCls:n,pickerCellInnerCls:r,pickerYearMonthCellWidth:a,pickerControlIconSize:o,cellWidth:l,paddingSM:c,paddingXS:d,paddingXXS:f,colorBgContainer:m,lineWidth:p,lineType:v,borderRadiusLG:h,colorPrimary:b,colorTextHeading:x,colorSplit:y,pickerControlIconBorderWidth:C,colorIcon:w,textHeight:E,motionDurationMid:I,colorIconHover:_,fontWeightStrong:O,cellHeight:P,pickerCellPaddingVertical:j,colorTextDisabled:R,colorText:k,fontSize:L,motionDurationSlow:W,withoutTimeCellHeight:B,pickerQuarterPanelContentHeight:F,borderRadiusSM:A,colorTextLightSolid:T,cellHoverBg:M,timeColumnHeight:D,timeColumnWidth:V,timeCellHeight:K,controlItemBgActive:z,marginXXS:U,pickerDatePanelPaddingHorizontal:Y,pickerControlIconMargin:q}=e,X=e.calc(l).mul(7).add(e.calc(Y).mul(2)).equal();return{[t]:{"&-panel":{display:"inline-flex",flexDirection:"column",textAlign:"center",background:m,borderRadius:h,outline:"none","&-focused":{borderColor:b},"&-rtl":{[`${t}-prev-icon, + ${t}-super-prev-icon`]:{transform:"rotate(45deg)"},[`${t}-next-icon, + ${t}-super-next-icon`]:{transform:"rotate(-135deg)"},[`${t}-time-panel`]:{[`${t}-content`]:{direction:"ltr","> *":{direction:"rtl"}}}}},"&-decade-panel,\n &-year-panel,\n &-quarter-panel,\n &-month-panel,\n &-week-panel,\n &-date-panel,\n &-time-panel":{display:"flex",flexDirection:"column",width:X},"&-header":{display:"flex",padding:`0 ${ne(d)}`,color:x,borderBottom:`${ne(p)} ${v} ${y}`,"> *":{flex:"none"},button:{padding:0,color:w,lineHeight:ne(E),background:"transparent",border:0,cursor:"pointer",transition:`color ${I}`,fontSize:"inherit",display:"inline-flex",alignItems:"center",justifyContent:"center","&:empty":{display:"none"}},"> button":{minWidth:"1.6em",fontSize:L,"&:hover":{color:_},"&:disabled":{opacity:.25,pointerEvents:"none"}},"&-view":{flex:"auto",fontWeight:O,lineHeight:ne(E),"> button":{color:"inherit",fontWeight:"inherit",verticalAlign:"top","&:not(:first-child)":{marginInlineStart:d},"&:hover":{color:b}}}},"&-prev-icon,\n &-next-icon,\n &-super-prev-icon,\n &-super-next-icon":{position:"relative",width:o,height:o,"&::before":{position:"absolute",top:0,insetInlineStart:0,width:o,height:o,border:"0 solid currentcolor",borderBlockStartWidth:C,borderInlineStartWidth:C,content:'""'}},"&-super-prev-icon,\n &-super-next-icon":{"&::after":{position:"absolute",top:q,insetInlineStart:q,display:"inline-block",width:o,height:o,border:"0 solid currentcolor",borderBlockStartWidth:C,borderInlineStartWidth:C,content:'""'}},"&-prev-icon, &-super-prev-icon":{transform:"rotate(-45deg)"},"&-next-icon, &-super-next-icon":{transform:"rotate(135deg)"},"&-content":{width:"100%",tableLayout:"fixed",borderCollapse:"collapse","th, td":{position:"relative",minWidth:P,fontWeight:"normal"},th:{height:e.calc(P).add(e.calc(j).mul(2)).equal(),color:k,verticalAlign:"middle"}},"&-cell":Object.assign({padding:`${ne(j)} 0`,color:R,cursor:"pointer","&-in-view":{color:k}},yH(e)),"&-decade-panel,\n &-year-panel,\n &-quarter-panel,\n &-month-panel":{[`${t}-content`]:{height:e.calc(B).mul(4).equal()},[r]:{padding:`0 ${ne(d)}`}},"&-quarter-panel":{[`${t}-content`]:{height:F}},"&-decade-panel":{[r]:{padding:`0 ${ne(e.calc(d).div(2).equal())}`},[`${t}-cell::before`]:{display:"none"}},"&-year-panel,\n &-quarter-panel,\n &-month-panel":{[`${t}-body`]:{padding:`0 ${ne(d)}`},[r]:{width:a}},"&-date-panel":{[`${t}-body`]:{padding:`${ne(d)} ${ne(Y)}`},[`${t}-content th`]:{boxSizing:"border-box",padding:0}},"&-week-panel":{[`${t}-cell`]:{[`&:hover ${r}, + &-selected ${r}, + ${r}`]:{background:"transparent !important"}},"&-row":{td:{"&:before":{transition:`background ${I}`},"&:first-child:before":{borderStartStartRadius:A,borderEndStartRadius:A},"&:last-child:before":{borderStartEndRadius:A,borderEndEndRadius:A}},"&:hover td:before":{background:M},"&-range-start td, &-range-end td, &-selected td, &-hover td":{[`&${n}`]:{"&:before":{background:b},[`&${t}-cell-week`]:{color:new Pn(T).setA(.5).toHexString()},[r]:{color:T}}},"&-range-hover td:before":{background:z}}},"&-week-panel, &-date-panel-show-week":{[`${t}-body`]:{padding:`${ne(d)} ${ne(c)}`},[`${t}-content th`]:{width:"auto"}},"&-datetime-panel":{display:"flex",[`${t}-time-panel`]:{borderInlineStart:`${ne(p)} ${v} ${y}`},[`${t}-date-panel, + ${t}-time-panel`]:{transition:`opacity ${W}`},"&-active":{[`${t}-date-panel, + ${t}-time-panel`]:{opacity:.3,"&-active":{opacity:1}}}},"&-time-panel":{width:"auto",minWidth:"auto",[`${t}-content`]:{display:"flex",flex:"auto",height:D},"&-column":{flex:"1 0 auto",width:V,margin:`${ne(f)} 0`,padding:0,overflowY:"hidden",textAlign:"start",listStyle:"none",transition:`background ${I}`,overflowX:"hidden","&::-webkit-scrollbar":{width:8,backgroundColor:"transparent"},"&::-webkit-scrollbar-thumb":{backgroundColor:e.colorTextTertiary,borderRadius:e.borderRadiusSM},"&":{scrollbarWidth:"thin",scrollbarColor:`${e.colorTextTertiary} transparent`},"&::after":{display:"block",height:`calc(100% - ${ne(K)})`,content:'""'},"&:not(:first-child)":{borderInlineStart:`${ne(p)} ${v} ${y}`},"&-active":{background:new Pn(z).setA(.2).toHexString()},"&:hover":{overflowY:"auto"},"> li":{margin:0,padding:0,[`&${t}-time-panel-cell`]:{marginInline:U,[`${t}-time-panel-cell-inner`]:{display:"block",width:e.calc(V).sub(e.calc(U).mul(2)).equal(),height:K,margin:0,paddingBlock:0,paddingInlineEnd:0,paddingInlineStart:e.calc(V).sub(K).div(2).equal(),color:k,lineHeight:ne(K),borderRadius:A,cursor:"pointer",transition:`background ${I}`,"&:hover":{background:M}},"&-selected":{[`${t}-time-panel-cell-inner`]:{background:z}},"&-disabled":{[`${t}-time-panel-cell-inner`]:{color:R,background:"transparent",cursor:"not-allowed"}}}}}}}}},xH=e=>{const{componentCls:t,textHeight:n,lineWidth:r,paddingSM:a,antCls:o,colorPrimary:l,cellActiveWithRangeBg:c,colorPrimaryBorder:d,lineType:f,colorSplit:m}=e;return{[`${t}-dropdown`]:{[`${t}-footer`]:{borderTop:`${ne(r)} ${f} ${m}`,"&-extra":{padding:`0 ${ne(a)}`,lineHeight:ne(e.calc(n).sub(e.calc(r).mul(2)).equal()),textAlign:"start","&:not(:last-child)":{borderBottom:`${ne(r)} ${f} ${m}`}}},[`${t}-panels + ${t}-footer ${t}-ranges`]:{justifyContent:"space-between"},[`${t}-ranges`]:{marginBlock:0,paddingInline:ne(a),overflow:"hidden",textAlign:"start",listStyle:"none",display:"flex",justifyContent:"center",alignItems:"center","> li":{lineHeight:ne(e.calc(n).sub(e.calc(r).mul(2)).equal()),display:"inline-block"},[`${t}-now-btn-disabled`]:{pointerEvents:"none",color:e.colorTextDisabled},[`${t}-preset > ${o}-tag-blue`]:{color:l,background:c,borderColor:d,cursor:"pointer"},[`${t}-ok`]:{paddingBlock:e.calc(r).mul(2).equal(),marginInlineStart:"auto"}}}}},SH=e=>{const{componentCls:t,controlHeightLG:n,paddingXXS:r,padding:a}=e;return{pickerCellCls:`${t}-cell`,pickerCellInnerCls:`${t}-cell-inner`,pickerYearMonthCellWidth:e.calc(n).mul(1.5).equal(),pickerQuarterPanelContentHeight:e.calc(n).mul(1.4).equal(),pickerCellPaddingVertical:e.calc(r).add(e.calc(r).div(2)).equal(),pickerCellBorderGap:2,pickerControlIconSize:7,pickerControlIconMargin:4,pickerControlIconBorderWidth:1.5,pickerDatePanelPaddingHorizontal:e.calc(a).add(e.calc(r).div(2)).equal()}},CH=e=>{const{colorBgContainerDisabled:t,controlHeight:n,controlHeightSM:r,controlHeightLG:a,paddingXXS:o,lineWidth:l}=e,c=o*2,d=l*2,f=Math.min(n-c,n-d),m=Math.min(r-c,r-d),p=Math.min(a-c,a-d);return{INTERNAL_FIXED_ITEM_MARGIN:Math.floor(o/2),cellHoverBg:e.controlItemBgHover,cellActiveWithRangeBg:e.controlItemBgActive,cellHoverWithRangeBg:new Pn(e.colorPrimary).lighten(35).toHexString(),cellRangeBorderColor:new Pn(e.colorPrimary).lighten(20).toHexString(),cellBgDisabled:t,timeColumnWidth:a*1.4,timeColumnHeight:28*8,timeCellHeight:28,cellWidth:r*1.5,cellHeight:r,textHeight:a,withoutTimeCellHeight:a*1.65,multipleItemBg:e.colorFillSecondary,multipleItemBorderColor:"transparent",multipleItemHeight:f,multipleItemHeightSM:m,multipleItemHeightLG:p,multipleSelectorBgDisabled:t,multipleItemColorDisabled:e.colorTextDisabled,multipleItemBorderColorDisabled:"transparent"}},wH=e=>Object.assign(Object.assign(Object.assign(Object.assign({},rs(e)),CH(e)),Ib(e)),{presetsWidth:120,presetsMaxWidth:200,zIndexPopup:e.zIndexPopupBase+50}),$H=e=>{const{componentCls:t}=e;return{[t]:[Object.assign(Object.assign(Object.assign(Object.assign({},Wb(e)),qb(e)),Ub(e)),Kb(e)),{"&-outlined":{[`&${t}-multiple ${t}-selection-item`]:{background:e.multipleItemBg,border:`${ne(e.lineWidth)} ${e.lineType} ${e.multipleItemBorderColor}`}},"&-filled":{[`&${t}-multiple ${t}-selection-item`]:{background:e.colorBgContainer,border:`${ne(e.lineWidth)} ${e.lineType} ${e.colorSplit}`}},"&-borderless":{[`&${t}-multiple ${t}-selection-item`]:{background:e.multipleItemBg,border:`${ne(e.lineWidth)} ${e.lineType} ${e.multipleItemBorderColor}`}},"&-underlined":{[`&${t}-multiple ${t}-selection-item`]:{background:e.multipleItemBg,border:`${ne(e.lineWidth)} ${e.lineType} ${e.multipleItemBorderColor}`}}}]}},Th=(e,t,n,r)=>{const a=e.calc(n).add(2).equal(),o=e.max(e.calc(t).sub(a).div(2).equal(),0),l=e.max(e.calc(t).sub(a).sub(o).equal(),0);return{padding:`${ne(o)} ${ne(r)} ${ne(l)}`}},EH=e=>{const{componentCls:t,colorError:n,colorWarning:r}=e;return{[`${t}:not(${t}-disabled):not([disabled])`]:{[`&${t}-status-error`]:{[`${t}-active-bar`]:{background:n}},[`&${t}-status-warning`]:{[`${t}-active-bar`]:{background:r}}}}},_H=e=>{const{componentCls:t,antCls:n,controlHeight:r,paddingInline:a,lineWidth:o,lineType:l,colorBorder:c,borderRadius:d,motionDurationMid:f,colorTextDisabled:m,colorTextPlaceholder:p,controlHeightLG:v,fontSizeLG:h,controlHeightSM:b,paddingInlineSM:x,paddingXS:y,marginXS:C,colorTextDescription:w,lineWidthBold:E,colorPrimary:I,motionDurationSlow:_,zIndexPopup:O,paddingXXS:P,sizePopupArrow:j,colorBgElevated:R,borderRadiusLG:k,boxShadowSecondary:L,borderRadiusSM:W,colorSplit:B,cellHoverBg:F,presetsWidth:A,presetsMaxWidth:T,boxShadowPopoverArrow:M,fontHeight:D,fontHeightLG:V,lineHeightLG:K}=e;return[{[t]:Object.assign(Object.assign(Object.assign({},Ln(e)),Th(e,r,D,a)),{position:"relative",display:"inline-flex",alignItems:"center",lineHeight:1,borderRadius:d,transition:`border ${f}, box-shadow ${f}, background ${f}`,[`${t}-prefix`]:{flex:"0 0 auto",marginInlineEnd:e.inputAffixPadding},[`${t}-input`]:{position:"relative",display:"inline-flex",alignItems:"center",width:"100%","> input":Object.assign(Object.assign({position:"relative",display:"inline-block",width:"100%",color:"inherit",fontSize:e.fontSize,lineHeight:e.lineHeight,transition:`all ${f}`},Yb(p)),{flex:"auto",minWidth:1,height:"auto",padding:0,background:"transparent",border:0,fontFamily:"inherit","&:focus":{boxShadow:"none",outline:0},"&[disabled]":{background:"transparent",color:m,cursor:"not-allowed"}}),"&-placeholder":{"> input":{color:p}}},"&-large":Object.assign(Object.assign({},Th(e,v,V,a)),{[`${t}-input > input`]:{fontSize:h,lineHeight:K}}),"&-small":Object.assign({},Th(e,b,D,x)),[`${t}-suffix`]:{display:"flex",flex:"none",alignSelf:"center",marginInlineStart:e.calc(y).div(2).equal(),color:m,lineHeight:1,pointerEvents:"none",transition:`opacity ${f}, color ${f}`,"> *":{verticalAlign:"top","&:not(:last-child)":{marginInlineEnd:C}}},[`${t}-clear`]:{position:"absolute",top:"50%",insetInlineEnd:0,color:m,lineHeight:1,transform:"translateY(-50%)",cursor:"pointer",opacity:0,transition:`opacity ${f}, color ${f}`,"> *":{verticalAlign:"top"},"&:hover":{color:w}},"&:hover":{[`${t}-clear`]:{opacity:1},[`${t}-suffix:not(:last-child)`]:{opacity:0}},[`${t}-separator`]:{position:"relative",display:"inline-block",width:"1em",height:h,color:m,fontSize:h,verticalAlign:"top",cursor:"default",[`${t}-focused &`]:{color:w},[`${t}-range-separator &`]:{[`${t}-disabled &`]:{cursor:"not-allowed"}}},"&-range":{position:"relative",display:"inline-flex",[`${t}-active-bar`]:{bottom:e.calc(o).mul(-1).equal(),height:E,background:I,opacity:0,transition:`all ${_} ease-out`,pointerEvents:"none"},[`&${t}-focused`]:{[`${t}-active-bar`]:{opacity:1}},[`${t}-range-separator`]:{alignItems:"center",padding:`0 ${ne(y)}`,lineHeight:1}},"&-range, &-multiple":{[`${t}-clear`]:{insetInlineEnd:a},[`&${t}-small`]:{[`${t}-clear`]:{insetInlineEnd:x}}},"&-dropdown":Object.assign(Object.assign(Object.assign({},Ln(e)),bH(e)),{pointerEvents:"none",position:"absolute",top:-9999,left:{_skip_check_:!0,value:-9999},zIndex:O,[`&${t}-dropdown-hidden`]:{display:"none"},"&-rtl":{direction:"rtl"},[`&${t}-dropdown-placement-bottomLeft, + &${t}-dropdown-placement-bottomRight`]:{[`${t}-range-arrow`]:{top:0,display:"block",transform:"translateY(-100%)"}},[`&${t}-dropdown-placement-topLeft, + &${t}-dropdown-placement-topRight`]:{[`${t}-range-arrow`]:{bottom:0,display:"block",transform:"translateY(100%) rotate(180deg)"}},[`&${n}-slide-up-appear, &${n}-slide-up-enter`]:{[`${t}-range-arrow${t}-range-arrow`]:{transition:"none"}},[`&${n}-slide-up-enter${n}-slide-up-enter-active${t}-dropdown-placement-topLeft, + &${n}-slide-up-enter${n}-slide-up-enter-active${t}-dropdown-placement-topRight, + &${n}-slide-up-appear${n}-slide-up-appear-active${t}-dropdown-placement-topLeft, + &${n}-slide-up-appear${n}-slide-up-appear-active${t}-dropdown-placement-topRight`]:{animationName:wp},[`&${n}-slide-up-enter${n}-slide-up-enter-active${t}-dropdown-placement-bottomLeft, + &${n}-slide-up-enter${n}-slide-up-enter-active${t}-dropdown-placement-bottomRight, + &${n}-slide-up-appear${n}-slide-up-appear-active${t}-dropdown-placement-bottomLeft, + &${n}-slide-up-appear${n}-slide-up-appear-active${t}-dropdown-placement-bottomRight`]:{animationName:Sp},[`&${n}-slide-up-leave ${t}-panel-container`]:{pointerEvents:"none"},[`&${n}-slide-up-leave${n}-slide-up-leave-active${t}-dropdown-placement-topLeft, + &${n}-slide-up-leave${n}-slide-up-leave-active${t}-dropdown-placement-topRight`]:{animationName:$p},[`&${n}-slide-up-leave${n}-slide-up-leave-active${t}-dropdown-placement-bottomLeft, + &${n}-slide-up-leave${n}-slide-up-leave-active${t}-dropdown-placement-bottomRight`]:{animationName:Cp},[`${t}-panel > ${t}-time-panel`]:{paddingTop:P},[`${t}-range-wrapper`]:{display:"flex",position:"relative"},[`${t}-range-arrow`]:Object.assign(Object.assign({position:"absolute",zIndex:1,display:"none",paddingInline:e.calc(a).mul(1.5).equal(),boxSizing:"content-box",transition:`all ${_} ease-out`},H2(e,R,M)),{"&:before":{insetInlineStart:e.calc(a).mul(1.5).equal()}}),[`${t}-panel-container`]:{overflow:"hidden",verticalAlign:"top",background:R,borderRadius:k,boxShadow:L,transition:`margin ${_}`,display:"inline-block",pointerEvents:"auto",[`${t}-panel-layout`]:{display:"flex",flexWrap:"nowrap",alignItems:"stretch"},[`${t}-presets`]:{display:"flex",flexDirection:"column",minWidth:A,maxWidth:T,ul:{height:0,flex:"auto",listStyle:"none",overflow:"auto",margin:0,padding:y,borderInlineEnd:`${ne(o)} ${l} ${B}`,li:Object.assign(Object.assign({},Oo),{borderRadius:W,paddingInline:y,paddingBlock:e.calc(b).sub(D).div(2).equal(),cursor:"pointer",transition:`all ${_}`,"+ li":{marginTop:C},"&:hover":{background:F}})}},[`${t}-panels`]:{display:"inline-flex",flexWrap:"nowrap","&:last-child":{[`${t}-panel`]:{borderWidth:0}}},[`${t}-panel`]:{verticalAlign:"top",background:"transparent",borderRadius:0,borderWidth:0,[`${t}-content, table`]:{textAlign:"center"},"&-focused":{borderColor:c}}}}),"&-dropdown-range":{padding:`${ne(e.calc(j).mul(2).div(3).equal())} 0`,"&-hidden":{display:"none"}},"&-rtl":{direction:"rtl",[`${t}-separator`]:{transform:"scale(-1, 1)"},[`${t}-footer`]:{"&-extra":{direction:"rtl"}}}})},Yo(e,"slide-up"),Yo(e,"slide-down"),ic(e,"move-up"),ic(e,"move-down")]},oR=zn("DatePicker",e=>{const t=$n(ns(e),SH(e),{inputPaddingHorizontalBase:e.calc(e.paddingSM).sub(1).equal(),multipleSelectItemHeight:e.multipleItemHeight,selectHeight:e.controlHeight});return[xH(t),_H(t),$H(t),EH(t),hH(t),bd(e,{focusElCls:`${e.componentCls}-focused`})]},wH);var IH={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"},OH=function(t,n){return i.createElement(pn,Pe({},t,{ref:n,icon:IH}))},RH=i.forwardRef(OH);const Gp=i.createContext(null);var PH=function(t){var n=t.activeTabOffset,r=t.horizontal,a=t.rtl,o=t.indicator,l=o===void 0?{}:o,c=l.size,d=l.align,f=d===void 0?"center":d,m=i.useState(),p=se(m,2),v=p[0],h=p[1],b=i.useRef(),x=be.useCallback(function(C){return typeof c=="function"?c(C):typeof c=="number"?c:C},[c]);function y(){mn.cancel(b.current)}return i.useEffect(function(){var C={};if(n)if(r){C.width=x(n.width);var w=a?"right":"left";f==="start"&&(C[w]=n[w]),f==="center"&&(C[w]=n[w]+n.width/2,C.transform=a?"translateX(50%)":"translateX(-50%)"),f==="end"&&(C[w]=n[w]+n.width,C.transform="translateX(-100%)")}else C.height=x(n.height),f==="start"&&(C.top=n.top),f==="center"&&(C.top=n.top+n.height/2,C.transform="translateY(-50%)"),f==="end"&&(C.top=n.top+n.height,C.transform="translateY(-100%)");return y(),b.current=mn(function(){h(C)}),y},[n,r,a,f,x]),{style:v}},B$={width:0,height:0,left:0,top:0};function NH(e,t,n){return i.useMemo(function(){for(var r,a=new Map,o=t.get((r=e[0])===null||r===void 0?void 0:r.key)||B$,l=o.left+o.width,c=0;cF?(W=k,O.current="x"):(W=L,O.current="y"),t(-W,-W)&&R.preventDefault()}var j=i.useRef(null);j.current={onTouchStart:E,onTouchMove:I,onTouchEnd:_,onWheel:P},i.useEffect(function(){function R(B){j.current.onTouchStart(B)}function k(B){j.current.onTouchMove(B)}function L(B){j.current.onTouchEnd(B)}function W(B){j.current.onWheel(B)}return document.addEventListener("touchmove",k,{passive:!1}),document.addEventListener("touchend",L,{passive:!0}),e.current.addEventListener("touchstart",R,{passive:!0}),e.current.addEventListener("wheel",W,{passive:!1}),function(){document.removeEventListener("touchmove",k),document.removeEventListener("touchend",L)}},[])}function iR(e){var t=i.useState(0),n=se(t,2),r=n[0],a=n[1],o=i.useRef(0),l=i.useRef();return l.current=e,zl(function(){var c;(c=l.current)===null||c===void 0||c.call(l)},[r]),function(){o.current===r&&(o.current+=1,a(o.current))}}function MH(e){var t=i.useRef([]),n=i.useState({}),r=se(n,2),a=r[1],o=i.useRef(typeof e=="function"?e():e),l=iR(function(){var d=o.current;t.current.forEach(function(f){d=f(d)}),t.current=[],o.current=d,a({})});function c(d){t.current.push(d),l()}return[o.current,c]}var K$={width:0,height:0,left:0,top:0,right:0};function TH(e,t,n,r,a,o,l){var c=l.tabs,d=l.tabPosition,f=l.rtl,m,p,v;return["top","bottom"].includes(d)?(m="width",p=f?"right":"left",v=Math.abs(n)):(m="height",p="top",v=-n),i.useMemo(function(){if(!c.length)return[0,0];for(var h=c.length,b=h,x=0;xMath.floor(v+t)){b=x-1;break}}for(var C=0,w=h-1;w>=0;w-=1){var E=e.get(c[w].key)||K$;if(E[p]=b?[0,0]:[C,b]},[e,t,r,a,o,v,d,c.map(function(h){return h.key}).join("_"),f])}function U$(e){var t;return e instanceof Map?(t={},e.forEach(function(n,r){t[r]=n})):t=e,JSON.stringify(t)}var DH="TABS_DQ";function lR(e){return String(e).replace(/"/g,DH)}function Xb(e,t,n,r){return!(!n||r||e===!1||e===void 0&&(t===!1||t===null))}var sR=i.forwardRef(function(e,t){var n=e.prefixCls,r=e.editable,a=e.locale,o=e.style;return!r||r.showAdd===!1?null:i.createElement("button",{ref:t,type:"button",className:"".concat(n,"-nav-add"),style:o,"aria-label":(a==null?void 0:a.addAriaLabel)||"Add tab",onClick:function(c){r.onEdit("add",{event:c})}},r.addIcon||"+")}),q$=i.forwardRef(function(e,t){var n=e.position,r=e.prefixCls,a=e.extra;if(!a)return null;var o,l={};return wt(a)==="object"&&!i.isValidElement(a)?l=a:l.right=a,n==="right"&&(o=l.right),n==="left"&&(o=l.left),o?i.createElement("div",{className:"".concat(r,"-extra-content"),ref:t},o):null}),FH=i.forwardRef(function(e,t){var n=e.prefixCls,r=e.id,a=e.tabs,o=e.locale,l=e.mobile,c=e.more,d=c===void 0?{}:c,f=e.style,m=e.className,p=e.editable,v=e.tabBarGutter,h=e.rtl,b=e.removeAriaLabel,x=e.onTabClick,y=e.getPopupContainer,C=e.popupClassName,w=i.useState(!1),E=se(w,2),I=E[0],_=E[1],O=i.useState(null),P=se(O,2),j=P[0],R=P[1],k=d.icon,L=k===void 0?"More":k,W="".concat(r,"-more-popup"),B="".concat(n,"-dropdown"),F=j!==null?"".concat(W,"-").concat(j):null,A=o==null?void 0:o.dropdownAriaLabel;function T(Y,q){Y.preventDefault(),Y.stopPropagation(),p.onEdit("remove",{key:q,event:Y})}var M=i.createElement(hc,{onClick:function(q){var X=q.key,te=q.domEvent;x(X,te),_(!1)},prefixCls:"".concat(B,"-menu"),id:W,tabIndex:-1,role:"listbox","aria-activedescendant":F,selectedKeys:[j],"aria-label":A!==void 0?A:"expanded dropdown"},a.map(function(Y){var q=Y.closable,X=Y.disabled,te=Y.closeIcon,ee=Y.key,J=Y.label,ie=Xb(q,te,p,X);return i.createElement(wd,{key:ee,id:"".concat(W,"-").concat(ee),role:"option","aria-controls":r&&"".concat(r,"-panel-").concat(ee),disabled:X},i.createElement("span",null,J),ie&&i.createElement("button",{type:"button","aria-label":b||"remove",tabIndex:0,className:"".concat(B,"-menu-item-remove"),onClick:function(oe){oe.stopPropagation(),T(oe,ee)}},te||p.removeIcon||"×"))}));function D(Y){for(var q=a.filter(function(ie){return!ie.disabled}),X=q.findIndex(function(ie){return ie.key===j})||0,te=q.length,ee=0;eeKe?"left":"right"})}),B=se(W,2),F=B[0],A=B[1],T=H$(0,function(ut,Ke){!L&&x&&x({direction:ut>Ke?"top":"bottom"})}),M=se(T,2),D=M[0],V=M[1],K=i.useState([0,0]),z=se(K,2),U=z[0],Y=z[1],q=i.useState([0,0]),X=se(q,2),te=X[0],ee=X[1],J=i.useState([0,0]),ie=se(J,2),de=ie[0],oe=ie[1],le=i.useState([0,0]),ae=se(le,2),ue=ae[0],pe=ae[1],fe=MH(new Map),xe=se(fe,2),Ee=xe[0],Le=xe[1],Ne=NH(E,Ee,te[0]),ge=tm(U,L),we=tm(te,L),Se=tm(de,L),Re=tm(ue,L),De=Math.floor(ge)He?He:ut}var Ae=i.useRef(null),Ie=i.useState(),Ve=se(Ie,2),ye=Ve[0],Ce=Ve[1];function _e(){Ce(Date.now())}function he(){Ae.current&&clearTimeout(Ae.current)}kH(P,function(ut,Ke){function zt(nn,En){nn(function(Tn){var Mt=ze(Tn+En);return Mt})}return De?(L?zt(A,ut):zt(V,Ke),he(),_e(),!0):!1}),i.useEffect(function(){return he(),ye&&(Ae.current=setTimeout(function(){Ce(0)},100)),he},[ye]);var ke=TH(Ne,Me,L?F:D,we,Se,Re,Z(Z({},e),{},{tabs:E})),tt=se(ke,2),Nt=tt[0],Ht=tt[1],Ge=wn(function(){var ut=arguments.length>0&&arguments[0]!==void 0?arguments[0]:l,Ke=Ne.get(ut)||{width:0,height:0,left:0,right:0,top:0};if(L){var zt=F;c?Ke.rightF+Me&&(zt=Ke.right+Ke.width-Me):Ke.left<-F?zt=-Ke.left:Ke.left+Ke.width>-F+Me&&(zt=-(Ke.left+Ke.width-Me)),V(0),A(ze(zt))}else{var nn=D;Ke.top<-D?nn=-Ke.top:Ke.top+Ke.height>-D+Me&&(nn=-(Ke.top+Ke.height-Me)),A(0),V(ze(nn))}}),rt=i.useState(),gt=se(rt,2),at=gt[0],dt=gt[1],st=i.useState(!1),et=se(st,2),Qe=et[0],Tt=et[1],kt=E.filter(function(ut){return!ut.disabled}).map(function(ut){return ut.key}),Xe=function(Ke){var zt=kt.indexOf(at||l),nn=kt.length,En=(zt+Ke+nn)%nn,Tn=kt[En];dt(Tn)},Ze=function(Ke){var zt=Ke.code,nn=c&&L,En=kt[0],Tn=kt[kt.length-1];switch(zt){case"ArrowLeft":{L&&Xe(nn?1:-1);break}case"ArrowRight":{L&&Xe(nn?-1:1);break}case"ArrowUp":{Ke.preventDefault(),L||Xe(-1);break}case"ArrowDown":{Ke.preventDefault(),L||Xe(1);break}case"Home":{Ke.preventDefault(),dt(En);break}case"End":{Ke.preventDefault(),dt(Tn);break}case"Enter":case"Space":{Ke.preventDefault(),b(l,Ke);break}case"Backspace":case"Delete":{var Mt=kt.indexOf(at),Bt=E.find(function(xn){return xn.key===at}),rn=Xb(Bt==null?void 0:Bt.closable,Bt==null?void 0:Bt.closeIcon,f,Bt==null?void 0:Bt.disabled);rn&&(Ke.preventDefault(),Ke.stopPropagation(),f.onEdit("remove",{key:at,event:Ke}),Mt===kt.length-1?Xe(-1):Xe(1));break}}},Et={};L?Et[c?"marginRight":"marginLeft"]=v:Et.marginTop=v;var Ot=E.map(function(ut,Ke){var zt=ut.key;return i.createElement(AH,{id:a,prefixCls:w,key:zt,tab:ut,style:Ke===0?void 0:Et,closable:ut.closable,editable:f,active:zt===l,focus:zt===at,renderWrapper:h,removeAriaLabel:m==null?void 0:m.removeAriaLabel,tabCount:kt.length,currentPosition:Ke+1,onClick:function(En){b(zt,En)},onKeyDown:Ze,onFocus:function(){Qe||dt(zt),Ge(zt),_e(),P.current&&(c||(P.current.scrollLeft=0),P.current.scrollTop=0)},onBlur:function(){dt(void 0)},onMouseDown:function(){Tt(!0)},onMouseUp:function(){Tt(!1)}})}),xt=function(){return Le(function(){var Ke,zt=new Map,nn=(Ke=j.current)===null||Ke===void 0?void 0:Ke.getBoundingClientRect();return E.forEach(function(En){var Tn,Mt=En.key,Bt=(Tn=j.current)===null||Tn===void 0?void 0:Tn.querySelector('[data-node-key="'.concat(lR(Mt),'"]'));if(Bt){var rn=zH(Bt,nn),xn=se(rn,4),fr=xn[0],Jn=xn[1],lr=xn[2],mr=xn[3];zt.set(Mt,{width:fr,height:Jn,left:lr,top:mr})}}),zt})};i.useEffect(function(){xt()},[E.map(function(ut){return ut.key}).join("_")]);var Lt=iR(function(){var ut=Ls(I),Ke=Ls(_),zt=Ls(O);Y([ut[0]-Ke[0]-zt[0],ut[1]-Ke[1]-zt[1]]);var nn=Ls(k);oe(nn);var En=Ls(R);pe(En);var Tn=Ls(j);ee([Tn[0]-nn[0],Tn[1]-nn[1]]),xt()}),Ct=E.slice(0,Nt),ht=E.slice(Ht+1),Ft=[].concat(Te(Ct),Te(ht)),At=Ne.get(l),en=PH({activeTabOffset:At,horizontal:L,indicator:y,rtl:c}),vn=en.style;i.useEffect(function(){Ge()},[l,qe,He,U$(At),U$(Ne),L]),i.useEffect(function(){Lt()},[c]);var sn=!!Ft.length,yn="".concat(w,"-nav-wrap"),On,kn,nt,_t;return L?c?(kn=F>0,On=F!==He):(On=F<0,kn=F!==qe):(nt=D<0,_t=D!==qe),i.createElement(ra,{onResize:Lt},i.createElement("div",{ref:dl(t,I),role:"tablist","aria-orientation":L?"horizontal":"vertical",className:ce("".concat(w,"-nav"),n),style:r,onKeyDown:function(){_e()}},i.createElement(q$,{ref:_,position:"left",extra:d,prefixCls:w}),i.createElement(ra,{onResize:Lt},i.createElement("div",{className:ce(yn,G(G(G(G({},"".concat(yn,"-ping-left"),On),"".concat(yn,"-ping-right"),kn),"".concat(yn,"-ping-top"),nt),"".concat(yn,"-ping-bottom"),_t)),ref:P},i.createElement(ra,{onResize:Lt},i.createElement("div",{ref:j,className:"".concat(w,"-nav-list"),style:{transform:"translate(".concat(F,"px, ").concat(D,"px)"),transition:ye?"none":void 0}},Ot,i.createElement(sR,{ref:k,prefixCls:w,locale:m,editable:f,style:Z(Z({},Ot.length===0?void 0:Et),{},{visibility:sn?"hidden":null})}),i.createElement("div",{className:ce("".concat(w,"-ink-bar"),G({},"".concat(w,"-ink-bar-animated"),o.inkBar)),style:vn}))))),i.createElement(LH,Pe({},e,{removeAriaLabel:m==null?void 0:m.removeAriaLabel,ref:R,prefixCls:w,tabs:Ft,className:!sn&&Ye,tabMoving:!!ye})),i.createElement(q$,{ref:O,position:"right",extra:d,prefixCls:w})))}),cR=i.forwardRef(function(e,t){var n=e.prefixCls,r=e.className,a=e.style,o=e.id,l=e.active,c=e.tabKey,d=e.children;return i.createElement("div",{id:o&&"".concat(o,"-panel-").concat(c),role:"tabpanel",tabIndex:l?0:-1,"aria-labelledby":o&&"".concat(o,"-tab-").concat(c),"aria-hidden":!l,style:a,className:ce(n,l&&"".concat(n,"-active"),r),ref:t},d)}),BH=["renderTabBar"],HH=["label","key"],VH=function(t){var n=t.renderTabBar,r=Kt(t,BH),a=i.useContext(Gp),o=a.tabs;if(n){var l=Z(Z({},r),{},{panes:o.map(function(c){var d=c.label,f=c.key,m=Kt(c,HH);return i.createElement(cR,Pe({tab:d,key:f,tabKey:f},m))})});return n(l,Y$)}return i.createElement(Y$,r)},WH=["key","forceRender","style","className","destroyInactiveTabPane"],KH=function(t){var n=t.id,r=t.activeKey,a=t.animated,o=t.tabPosition,l=t.destroyInactiveTabPane,c=i.useContext(Gp),d=c.prefixCls,f=c.tabs,m=a.tabPane,p="".concat(d,"-tabpane");return i.createElement("div",{className:ce("".concat(d,"-content-holder"))},i.createElement("div",{className:ce("".concat(d,"-content"),"".concat(d,"-content-").concat(o),G({},"".concat(d,"-content-animated"),m))},f.map(function(v){var h=v.key,b=v.forceRender,x=v.style,y=v.className,C=v.destroyInactiveTabPane,w=Kt(v,WH),E=h===r;return i.createElement(ko,Pe({key:h,visible:E,forceRender:b,removeOnLeave:!!(l||C),leavedClassName:"".concat(p,"-hidden")},a.tabPaneMotion),function(I,_){var O=I.style,P=I.className;return i.createElement(cR,Pe({},w,{prefixCls:p,id:n,tabKey:h,animated:m,active:E,style:Z(Z({},x),O),className:ce(y,P),ref:_}))})})))};function UH(){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=Z({inkBar:!0},wt(e)==="object"?e:{}),t.tabPaneMotion&&t.tabPane===void 0&&(t.tabPane=!0),!t.tabPaneMotion&&t.tabPane&&(t.tabPane=!1),t}var qH=["id","prefixCls","className","items","direction","activeKey","defaultActiveKey","editable","animated","tabPosition","tabBarGutter","tabBarStyle","tabBarExtraContent","locale","more","destroyInactiveTabPane","renderTabBar","onChange","onTabClick","onTabScroll","getPopupContainer","popupClassName","indicator"],G$=0,YH=i.forwardRef(function(e,t){var n=e.id,r=e.prefixCls,a=r===void 0?"rc-tabs":r,o=e.className,l=e.items,c=e.direction,d=e.activeKey,f=e.defaultActiveKey,m=e.editable,p=e.animated,v=e.tabPosition,h=v===void 0?"top":v,b=e.tabBarGutter,x=e.tabBarStyle,y=e.tabBarExtraContent,C=e.locale,w=e.more,E=e.destroyInactiveTabPane,I=e.renderTabBar,_=e.onChange,O=e.onTabClick,P=e.onTabScroll,j=e.getPopupContainer,R=e.popupClassName,k=e.indicator,L=Kt(e,qH),W=i.useMemo(function(){return(l||[]).filter(function(ue){return ue&&wt(ue)==="object"&&"key"in ue})},[l]),B=c==="rtl",F=UH(p),A=i.useState(!1),T=se(A,2),M=T[0],D=T[1];i.useEffect(function(){D(Mp())},[]);var V=Hn(function(){var ue;return(ue=W[0])===null||ue===void 0?void 0:ue.key},{value:d,defaultValue:f}),K=se(V,2),z=K[0],U=K[1],Y=i.useState(function(){return W.findIndex(function(ue){return ue.key===z})}),q=se(Y,2),X=q[0],te=q[1];i.useEffect(function(){var ue=W.findIndex(function(fe){return fe.key===z});if(ue===-1){var pe;ue=Math.max(0,Math.min(X,W.length-1)),U((pe=W[ue])===null||pe===void 0?void 0:pe.key)}te(ue)},[W.map(function(ue){return ue.key}).join("_"),z,X]);var ee=Hn(null,{value:n}),J=se(ee,2),ie=J[0],de=J[1];i.useEffect(function(){n||(de("rc-tabs-".concat(G$)),G$+=1)},[]);function oe(ue,pe){O==null||O(ue,pe);var fe=ue!==z;U(ue),fe&&(_==null||_(ue))}var le={id:ie,activeKey:z,animated:F,tabPosition:h,rtl:B,mobile:M},ae=Z(Z({},le),{},{editable:m,locale:C,more:w,tabBarGutter:b,onTabClick:oe,onTabScroll:P,extra:y,style:x,panes:null,getPopupContainer:j,popupClassName:R,indicator:k});return i.createElement(Gp.Provider,{value:{tabs:W,prefixCls:a}},i.createElement("div",Pe({ref:t,id:n,className:ce(a,"".concat(a,"-").concat(h),G(G(G({},"".concat(a,"-mobile"),M),"".concat(a,"-editable"),m),"".concat(a,"-rtl"),B),o)},L),i.createElement(VH,Pe({},ae,{renderTabBar:I})),i.createElement(KH,Pe({destroyInactiveTabPane:E},le,{animated:F}))))});const GH={motionAppear:!1,motionEnter:!0,motionLeave:!0};function XH(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({},GH),{motionName:ub(e,"switch")})),n}var QH=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 a=0,r=Object.getOwnPropertySymbols(e);at)}function ZH(e,t){if(e)return e;const n=ga(t).map(r=>{if(i.isValidElement(r)){const{key:a,props:o}=r,l=o||{},{tab:c}=l,d=QH(l,["tab"]);return Object.assign(Object.assign({key:String(a)},d),{label:c})}return null});return JH(n)}const eV=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}`}}}}},[Yo(e,"slide-up"),Yo(e,"slide-down")]]},tV=e=>{const{componentCls:t,tabsCardPadding:n,cardBg:r,cardGutter:a,colorBorderSecondary:o,itemSelectedColor:l}=e;return{[`${t}-card`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab`]:{margin:0,padding:n,background:r,border:`${ne(e.lineWidth)} ${e.lineType} ${o}`,transition:`all ${e.motionDurationSlow} ${e.motionEaseInOut}`},[`${t}-tab-active`]:{color:l,background:e.colorBgContainer},[`${t}-tab-focus`]:Object.assign({},qo(e,-3)),[`${t}-ink-bar`]:{visibility:"hidden"},[`& ${t}-tab${t}-tab-focus ${t}-tab-btn`]:{outline:"none"}},[`&${t}-top, &${t}-bottom`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab + ${t}-tab`]:{marginLeft:{_skip_check_:!0,value:ne(a)}}}},[`&${t}-top`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab`]:{borderRadius:`${ne(e.borderRadiusLG)} ${ne(e.borderRadiusLG)} 0 0`},[`${t}-tab-active`]:{borderBottomColor:e.colorBgContainer}}},[`&${t}-bottom`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab`]:{borderRadius:`0 0 ${ne(e.borderRadiusLG)} ${ne(e.borderRadiusLG)}`},[`${t}-tab-active`]:{borderTopColor:e.colorBgContainer}}},[`&${t}-left, &${t}-right`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab + ${t}-tab`]:{marginTop:ne(a)}}},[`&${t}-left`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab`]:{borderRadius:{_skip_check_:!0,value:`${ne(e.borderRadiusLG)} 0 0 ${ne(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 ${ne(e.borderRadiusLG)} ${ne(e.borderRadiusLG)} 0`}},[`${t}-tab-active`]:{borderLeftColor:{_skip_check_:!0,value:e.colorBgContainer}}}}}}},nV=e=>{const{componentCls:t,itemHoverColor:n,dropdownEdgeChildVerticalPadding:r}=e;return{[`${t}-dropdown`]:Object.assign(Object.assign({},Ln(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:`${ne(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({},Oo),{display:"flex",alignItems:"center",minWidth:e.tabsDropdownWidth,margin:0,padding:`${ne(e.paddingXXS)} ${ne(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"}}})}})}},rV=e=>{const{componentCls:t,margin:n,colorBorderSecondary:r,horizontalMargin:a,verticalItemPadding:o,verticalItemMargin:l,calc:c}=e;return{[`${t}-top, ${t}-bottom`]:{flexDirection:"column",[`> ${t}-nav, > div > ${t}-nav`]:{margin:a,"&::before":{position:"absolute",right:{_skip_check_:!0,value:0},left:{_skip_check_:!0,value:0},borderBottom:`${ne(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:c(e.controlHeight).mul(1.25).equal(),[`${t}-tab`]:{padding:o,textAlign:"center"},[`${t}-tab + ${t}-tab`]:{margin:l},[`${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:ne(c(e.lineWidth).mul(-1).equal())},borderLeft:{_skip_check_:!0,value:`${ne(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:c(e.lineWidth).mul(-1).equal()},borderRight:{_skip_check_:!0,value:`${ne(e.lineWidth)} ${e.lineType} ${e.colorBorder}`},[`> ${t}-content > ${t}-tabpane`]:{paddingRight:{_skip_check_:!0,value:e.paddingLG}}}}}},aV=e=>{const{componentCls:t,cardPaddingSM:n,cardPaddingLG:r,horizontalItemPaddingSM:a,horizontalItemPaddingLG:o}=e;return{[t]:{"&-small":{[`> ${t}-nav`]:{[`${t}-tab`]:{padding:a,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 ${ne(e.borderRadius)} ${ne(e.borderRadius)}`}},[`&${t}-top`]:{[`> ${t}-nav ${t}-tab`]:{borderRadius:`${ne(e.borderRadius)} ${ne(e.borderRadius)} 0 0`}},[`&${t}-right`]:{[`> ${t}-nav ${t}-tab`]:{borderRadius:{_skip_check_:!0,value:`0 ${ne(e.borderRadius)} ${ne(e.borderRadius)} 0`}}},[`&${t}-left`]:{[`> ${t}-nav ${t}-tab`]:{borderRadius:{_skip_check_:!0,value:`${ne(e.borderRadius)} 0 0 ${ne(e.borderRadius)}`}}}},[`&${t}-large`]:{[`> ${t}-nav`]:{[`${t}-tab`]:{padding:r}}}}}},oV=e=>{const{componentCls:t,itemActiveColor:n,itemHoverColor:r,iconCls:a,tabsHorizontalItemMargin:o,horizontalItemPadding:l,itemSelectedColor:c,itemColor:d}=e,f=`${t}-tab`;return{[f]:{position:"relative",WebkitTouchCallout:"none",WebkitTapHighlightColor:"transparent",display:"inline-flex",alignItems:"center",padding:l,fontSize:e.titleFontSize,background:"transparent",border:0,outline:"none",cursor:"pointer",color:d,"&-btn, &-remove":{"&:focus:not(:focus-visible), &:active":{color:n}},"&-btn":{outline:"none",transition:`all ${e.motionDurationSlow}`,[`${f}-icon:not(:last-child)`]:{marginInlineEnd:e.marginSM}},"&-remove":Object.assign({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}},xi(e)),"&:hover":{color:r},[`&${f}-active ${f}-btn`]:{color:c,textShadow:e.tabsActiveTextShadow},[`&${f}-focus ${f}-btn`]:Object.assign({},qo(e)),[`&${f}-disabled`]:{color:e.colorTextDisabled,cursor:"not-allowed"},[`&${f}-disabled ${f}-btn, &${f}-disabled ${t}-remove`]:{"&:focus, &:active":{color:e.colorTextDisabled}},[`& ${f}-remove ${a}`]:{margin:0},[`${a}:not(:last-child)`]:{marginRight:{_skip_check_:!0,value:e.marginSM}}},[`${f} + ${f}`]:{margin:{_skip_check_:!0,value:o}}}},iV=e=>{const{componentCls:t,tabsHorizontalItemMarginRTL:n,iconCls:r,cardGutter:a,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:ne(e.marginSM)}},[`${t}-tab-remove`]:{marginRight:{_skip_check_:!0,value:ne(e.marginXS)},marginLeft:{_skip_check_:!0,value:ne(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:a},marginLeft:{_skip_check_:!0,value:0}}}}},[`${t}-dropdown-rtl`]:{direction:"rtl"},[`${t}-menu-item`]:{[`${t}-dropdown-rtl`]:{textAlign:{_skip_check_:!0,value:"right"}}}}},lV=e=>{const{componentCls:t,tabsCardPadding:n,cardHeight:r,cardGutter:a,itemHoverColor:o,itemActiveColor:l,colorBorderSecondary:c}=e;return{[t]:Object.assign(Object.assign(Object.assign(Object.assign({},Ln(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,marginLeft:{_skip_check_:!0,value:a},padding:ne(e.paddingXS),background:"transparent",border:`${ne(e.lineWidth)} ${e.lineType} ${c}`,borderRadius:`${ne(e.borderRadiusLG)} ${ne(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:l}},xi(e,-3))},[`${t}-extra-content`]:{flex:"none"},[`${t}-ink-bar`]:{position:"absolute",background:e.inkBarColor,pointerEvents:"none"}}),oV(e)),{[`${t}-content`]:{position:"relative",width:"100%"},[`${t}-content-holder`]:{flex:"auto",minWidth:0,minHeight:0},[`${t}-tabpane`]:Object.assign(Object.assign({},xi(e)),{"&-hidden":{display:"none"}})}),[`${t}-centered`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-nav-wrap`]:{[`&:not([class*='${t}-nav-wrap-ping']) > ${t}-nav-list`]:{margin:"auto"}}}}}},sV=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}},cV=zn("Tabs",e=>{const t=$n(e,{tabsCardPadding:e.cardPadding,dropdownEdgeChildVerticalPadding:e.paddingXXS,tabsActiveTextShadow:"0 0 0.25px currentcolor",tabsDropdownHeight:200,tabsDropdownWidth:120,tabsHorizontalItemMargin:`0 0 0 ${ne(e.horizontalItemGutter)}`,tabsHorizontalItemMarginRTL:`0 0 0 ${ne(e.horizontalItemGutter)}`});return[aV(t),iV(t),rV(t),nV(t),tV(t),lV(t),eV(t)]},sV),uV=()=>null;var dV=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 a=0,r=Object.getOwnPropertySymbols(e);a{var t,n,r,a,o,l,c,d,f,m,p;const{type:v,className:h,rootClassName:b,size:x,onEdit:y,hideAdd:C,centered:w,addIcon:E,removeIcon:I,moreIcon:_,more:O,popupClassName:P,children:j,items:R,animated:k,style:L,indicatorSize:W,indicator:B}=e,F=dV(e,["type","className","rootClassName","size","onEdit","hideAdd","centered","addIcon","removeIcon","moreIcon","more","popupClassName","children","items","animated","style","indicatorSize","indicator"]),{prefixCls:A}=F,{direction:T,tabs:M,getPrefixCls:D,getPopupContainer:V}=i.useContext(Gt),K=D("tabs",A),z=Kr(K),[U,Y,q]=cV(K,z);let X;v==="editable-card"&&(X={onEdit:(le,ae)=>{let{key:ue,event:pe}=ae;y==null||y(le==="add"?pe:ue,le)},removeIcon:(t=I??(M==null?void 0:M.removeIcon))!==null&&t!==void 0?t:i.createElement(gd,null),addIcon:(E??(M==null?void 0:M.addIcon))||i.createElement(RH,null),showAdd:C!==!0});const te=D(),ee=Zr(x),J=ZH(R,j),ie=XH(K,k),de=Object.assign(Object.assign({},M==null?void 0:M.style),L),oe={align:(n=B==null?void 0:B.align)!==null&&n!==void 0?n:(r=M==null?void 0:M.indicator)===null||r===void 0?void 0:r.align,size:(c=(o=(a=B==null?void 0:B.size)!==null&&a!==void 0?a:W)!==null&&o!==void 0?o:(l=M==null?void 0:M.indicator)===null||l===void 0?void 0:l.size)!==null&&c!==void 0?c:M==null?void 0:M.indicatorSize};return U(i.createElement(YH,Object.assign({direction:T,getPopupContainer:V},F,{items:J,className:ce({[`${K}-${ee}`]:ee,[`${K}-card`]:["card","editable-card"].includes(v),[`${K}-editable-card`]:v==="editable-card",[`${K}-centered`]:w},M==null?void 0:M.className,h,b,Y,q,z),popupClassName:ce(P,Y,q,z),style:de,editable:X,more:Object.assign({icon:(p=(m=(f=(d=M==null?void 0:M.more)===null||d===void 0?void 0:d.icon)!==null&&f!==void 0?f:M==null?void 0:M.moreIcon)!==null&&m!==void 0?m:_)!==null&&p!==void 0?p:i.createElement(Db,null),transitionName:`${te}-slide-up`},O),prefixCls:K,animated:ie,indicator:oe})))};uR.TabPane=uV;var fV=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 a=0,r=Object.getOwnPropertySymbols(e);a{var{prefixCls:t,className:n,hoverable:r=!0}=e,a=fV(e,["prefixCls","className","hoverable"]);const{getPrefixCls:o}=i.useContext(Gt),l=o("card",t),c=ce(`${l}-grid`,n,{[`${l}-grid-hoverable`]:r});return i.createElement("div",Object.assign({},a,{className:c}))},mV=e=>{const{antCls:t,componentCls:n,headerHeight:r,headerPadding:a,tabsMarginBottom:o}=e;return Object.assign(Object.assign({display:"flex",justifyContent:"center",flexDirection:"column",minHeight:r,marginBottom:-1,padding:`0 ${ne(a)}`,color:e.colorTextHeading,fontWeight:e.fontWeightStrong,fontSize:e.headerFontSize,background:e.headerBg,borderBottom:`${ne(e.lineWidth)} ${e.lineType} ${e.colorBorderSecondary}`,borderRadius:`${ne(e.borderRadiusLG)} ${ne(e.borderRadiusLG)} 0 0`},Uo()),{"&-wrapper":{width:"100%",display:"flex",alignItems:"center"},"&-title":Object.assign(Object.assign({display:"inline-block",flex:1},Oo),{[` + > ${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:`${ne(e.lineWidth)} ${e.lineType} ${e.colorBorderSecondary}`}}})},pV=e=>{const{cardPaddingBase:t,colorBorderSecondary:n,cardShadow:r,lineWidth:a}=e;return{width:"33.33%",padding:t,border:0,borderRadius:0,boxShadow:` + ${ne(a)} 0 0 0 ${n}, + 0 ${ne(a)} 0 0 ${n}, + ${ne(a)} ${ne(a)} 0 0 ${n}, + ${ne(a)} 0 0 0 ${n} inset, + 0 ${ne(a)} 0 0 ${n} inset; + `,transition:`all ${e.motionDurationMid}`,"&-hoverable:hover":{position:"relative",zIndex:1,boxShadow:r}}},vV=e=>{const{componentCls:t,iconCls:n,actionsLiMargin:r,cardActionsIconSize:a,colorBorderSecondary:o,actionsBg:l}=e;return Object.assign(Object.assign({margin:0,padding:0,listStyle:"none",background:l,borderTop:`${ne(e.lineWidth)} ${e.lineType} ${o}`,display:"flex",borderRadius:`0 0 ${ne(e.borderRadiusLG)} ${ne(e.borderRadiusLG)}`},Uo()),{"& > 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:ne(e.fontHeight),transition:`color ${e.motionDurationMid}`,"&:hover":{color:e.colorPrimary}},[`> ${n}`]:{fontSize:a,lineHeight:ne(e.calc(a).mul(e.lineHeight).equal())}},"&:not(:last-child)":{borderInlineEnd:`${ne(e.lineWidth)} ${e.lineType} ${o}`}}})},gV=e=>Object.assign(Object.assign({margin:`${ne(e.calc(e.marginXXS).mul(-1).equal())} 0`,display:"flex"},Uo()),{"&-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},Oo),"&-description":{color:e.colorTextDescription}}),hV=e=>{const{componentCls:t,colorFillAlter:n,headerPadding:r,bodyPadding:a}=e;return{[`${t}-head`]:{padding:`0 ${ne(r)}`,background:n,"&-title":{fontSize:e.fontSize}},[`${t}-body`]:{padding:`${ne(e.padding)} ${ne(a)}`}}},yV=e=>{const{componentCls:t}=e;return{overflow:"hidden",[`${t}-body`]:{userSelect:"none"}}},bV=e=>{const{componentCls:t,cardShadow:n,cardHeadPadding:r,colorBorderSecondary:a,boxShadowTertiary:o,bodyPadding:l,extraColor:c}=e;return{[t]:Object.assign(Object.assign({},Ln(e)),{position:"relative",background:e.colorBgContainer,borderRadius:e.borderRadiusLG,[`&:not(${t}-bordered)`]:{boxShadow:o},[`${t}-head`]:mV(e),[`${t}-extra`]:{marginInlineStart:"auto",color:c,fontWeight:"normal",fontSize:e.fontSize},[`${t}-body`]:Object.assign({padding:l,borderRadius:`0 0 ${ne(e.borderRadiusLG)} ${ne(e.borderRadiusLG)}`},Uo()),[`${t}-grid`]:pV(e),[`${t}-cover`]:{"> *":{display:"block",width:"100%",borderRadius:`${ne(e.borderRadiusLG)} ${ne(e.borderRadiusLG)} 0 0`}},[`${t}-actions`]:vV(e),[`${t}-meta`]:gV(e)}),[`${t}-bordered`]:{border:`${ne(e.lineWidth)} ${e.lineType} ${a}`,[`${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:`${ne(e.borderRadiusLG)} ${ne(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`]:hV(e),[`${t}-loading`]:yV(e),[`${t}-rtl`]:{direction:"rtl"}}},xV=e=>{const{componentCls:t,bodyPaddingSM:n,headerPaddingSM:r,headerHeightSM:a,headerFontSizeSM:o}=e;return{[`${t}-small`]:{[`> ${t}-head`]:{minHeight:a,padding:`0 ${ne(r)}`,fontSize:o,[`> ${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"}}}}},SV=e=>{var t,n;return{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,bodyPaddingSM:12,headerPaddingSM:12,bodyPadding:(t=e.bodyPadding)!==null&&t!==void 0?t:e.paddingLG,headerPadding:(n=e.headerPadding)!==null&&n!==void 0?n:e.paddingLG}},CV=zn("Card",e=>{const t=$n(e,{cardShadow:e.boxShadowCard,cardHeadPadding:e.padding,cardPaddingBase:e.paddingLG,cardActionsIconSize:e.fontSize});return[bV(t),xV(t)]},SV);var X$=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 a=0,r=Object.getOwnPropertySymbols(e);a{const{actionClasses:t,actions:n=[],actionStyle:r}=e;return i.createElement("ul",{className:t,style:r},n.map((a,o)=>{const l=`action-${o}`;return i.createElement("li",{style:{width:`${100/n.length}%`},key:l},i.createElement("span",null,a))}))},$V=i.forwardRef((e,t)=>{const{prefixCls:n,className:r,rootClassName:a,style:o,extra:l,headStyle:c={},bodyStyle:d={},title:f,loading:m,bordered:p,variant:v,size:h,type:b,cover:x,actions:y,tabList:C,children:w,activeTabKey:E,defaultActiveTabKey:I,tabBarExtraContent:_,hoverable:O,tabProps:P={},classNames:j,styles:R}=e,k=X$(e,["prefixCls","className","rootClassName","style","extra","headStyle","bodyStyle","title","loading","bordered","variant","size","type","cover","actions","tabList","children","activeTabKey","defaultActiveTabKey","tabBarExtraContent","hoverable","tabProps","classNames","styles"]),{getPrefixCls:L,direction:W,card:B}=i.useContext(Gt),[F]=Jl("card",v,p),A=Ne=>{var ge;(ge=e.onTabChange)===null||ge===void 0||ge.call(e,Ne)},T=Ne=>{var ge;return ce((ge=B==null?void 0:B.classNames)===null||ge===void 0?void 0:ge[Ne],j==null?void 0:j[Ne])},M=Ne=>{var ge;return Object.assign(Object.assign({},(ge=B==null?void 0:B.styles)===null||ge===void 0?void 0:ge[Ne]),R==null?void 0:R[Ne])},D=i.useMemo(()=>{let Ne=!1;return i.Children.forEach(w,ge=>{(ge==null?void 0:ge.type)===dR&&(Ne=!0)}),Ne},[w]),V=L("card",n),[K,z,U]=CV(V),Y=i.createElement(vc,{loading:!0,active:!0,paragraph:{rows:4},title:!1},w),q=E!==void 0,X=Object.assign(Object.assign({},P),{[q?"activeKey":"defaultActiveKey"]:q?E:I,tabBarExtraContent:_});let te;const ee=Zr(h),J=!ee||ee==="default"?"large":ee,ie=C?i.createElement(uR,Object.assign({size:J},X,{className:`${V}-head-tabs`,onChange:A,items:C.map(Ne=>{var{tab:ge}=Ne,we=X$(Ne,["tab"]);return Object.assign({label:ge},we)})})):null;if(f||l||ie){const Ne=ce(`${V}-head`,T("header")),ge=ce(`${V}-head-title`,T("title")),we=ce(`${V}-extra`,T("extra")),Se=Object.assign(Object.assign({},c),M("header"));te=i.createElement("div",{className:Ne,style:Se},i.createElement("div",{className:`${V}-head-wrapper`},f&&i.createElement("div",{className:ge,style:M("title")},f),l&&i.createElement("div",{className:we,style:M("extra")},l)),ie)}const de=ce(`${V}-cover`,T("cover")),oe=x?i.createElement("div",{className:de,style:M("cover")},x):null,le=ce(`${V}-body`,T("body")),ae=Object.assign(Object.assign({},d),M("body")),ue=i.createElement("div",{className:le,style:ae},m?Y:w),pe=ce(`${V}-actions`,T("actions")),fe=y!=null&&y.length?i.createElement(wV,{actionClasses:pe,actionStyle:M("actions"),actions:y}):null,xe=Qn(k,["onTabChange"]),Ee=ce(V,B==null?void 0:B.className,{[`${V}-loading`]:m,[`${V}-bordered`]:F!=="borderless",[`${V}-hoverable`]:O,[`${V}-contain-grid`]:D,[`${V}-contain-tabs`]:C==null?void 0:C.length,[`${V}-${ee}`]:ee,[`${V}-type-${b}`]:!!b,[`${V}-rtl`]:W==="rtl"},r,a,z,U),Le=Object.assign(Object.assign({},B==null?void 0:B.style),o);return K(i.createElement("div",Object.assign({ref:t},xe,{className:Ee,style:Le}),te,oe,ue,fe))});var EV=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 a=0,r=Object.getOwnPropertySymbols(e);a{const{prefixCls:t,className:n,avatar:r,title:a,description:o}=e,l=EV(e,["prefixCls","className","avatar","title","description"]),{getPrefixCls:c}=i.useContext(Gt),d=c("card",t),f=ce(`${d}-meta`,n),m=r?i.createElement("div",{className:`${d}-meta-avatar`},r):null,p=a?i.createElement("div",{className:`${d}-meta-title`},a):null,v=o?i.createElement("div",{className:`${d}-meta-description`},o):null,h=p||v?i.createElement("div",{className:`${d}-meta-detail`},p,v):null;return i.createElement("div",Object.assign({},l,{className:f}),m,h)},Je=$V;Je.Grid=dR;Je.Meta=_V;function IV(e,t,n){var r=n||{},a=r.noTrailing,o=a===void 0?!1:a,l=r.noLeading,c=l===void 0?!1:l,d=r.debounceMode,f=d===void 0?void 0:d,m,p=!1,v=0;function h(){m&&clearTimeout(m)}function b(y){var C=y||{},w=C.upcomingOnly,E=w===void 0?!1:w;h(),p=!E}function x(){for(var y=arguments.length,C=new Array(y),w=0;we?c?(v=Date.now(),o||(m=setTimeout(f?O:_,e))):_():o!==!0&&(m=setTimeout(f?O:_,f===void 0?e-I:e))}return x.cancel=b,x}function OV(e,t,n){var r={},a=r.atBegin,o=a===void 0?!1:a;return IV(e,t,{debounceMode:o!==!1})}function Ma(e,t){return e[t]}var RV=["children"];function fR(e,t){return"".concat(e,"-").concat(t)}function PV(e){return e&&e.type&&e.type.isTreeNode}function _d(e,t){return e??t}function lc(e){var t=e||{},n=t.title,r=t._title,a=t.key,o=t.children,l=n||"title";return{title:l,_title:r||[l],key:a||"key",children:o||"children"}}function mR(e){function t(n){var r=ga(n);return r.map(function(a){if(!PV(a))return or(!a,"Tree/TreeNode can only accept TreeNode as children."),null;var o=a.key,l=a.props,c=l.children,d=Kt(l,RV),f=Z({key:o},d),m=t(c);return m.length&&(f.children=m),f}).filter(function(a){return a})}return t(e)}function Dh(e,t,n){var r=lc(n),a=r._title,o=r.key,l=r.children,c=new Set(t===!0?[]:t),d=[];function f(m){var p=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null;return m.map(function(v,h){for(var b=fR(p?p.pos:"0",h),x=_d(v[o],b),y,C=0;C1&&arguments[1]!==void 0?arguments[1]:{},n=t.initWrapper,r=t.processEntity,a=t.onProcessFinished,o=t.externalGetKey,l=t.childrenPropName,c=t.fieldNames,d=arguments.length>2?arguments[2]:void 0,f=o||d,m={},p={},v={posEntities:m,keyEntities:p};return n&&(v=n(v)||v),NV(e,function(h){var b=h.node,x=h.index,y=h.pos,C=h.key,w=h.parentPos,E=h.level,I=h.nodes,_={node:b,nodes:I,index:x,key:C,pos:y,level:E},O=_d(C,y);m[y]=_,p[O]=_,_.parent=m[w],_.parent&&(_.parent.children=_.parent.children||[],_.parent.children.push(_)),r&&r(_,v)},{externalGetKey:f,childrenPropName:l,fieldNames:c}),a&&a(v),v}function Nu(e,t){var n=t.expandedKeys,r=t.selectedKeys,a=t.loadedKeys,o=t.loadingKeys,l=t.checkedKeys,c=t.halfCheckedKeys,d=t.dragOverNodeKey,f=t.dropPosition,m=t.keyEntities,p=Ma(m,e),v={eventKey:e,expanded:n.indexOf(e)!==-1,selected:r.indexOf(e)!==-1,loaded:a.indexOf(e)!==-1,loading:o.indexOf(e)!==-1,checked:l.indexOf(e)!==-1,halfChecked:c.indexOf(e)!==-1,pos:String(p?p.pos:""),dragOver:d===e&&f===0,dragOverGapTop:d===e&&f===-1,dragOverGapBottom:d===e&&f===1};return v}function Lr(e){var t=e.data,n=e.expanded,r=e.selected,a=e.checked,o=e.loaded,l=e.loading,c=e.halfChecked,d=e.dragOver,f=e.dragOverGapTop,m=e.dragOverGapBottom,p=e.pos,v=e.active,h=e.eventKey,b=Z(Z({},t),{},{expanded:n,selected:r,checked:a,loaded:o,loading:l,halfChecked:c,dragOver:d,dragOverGapTop:f,dragOverGapBottom:m,pos:p,active:v,key:h});return"props"in b||Object.defineProperty(b,"props",{get:function(){return or(!1,"Second param return from event is node data instead of TreeNode instance. Please read value directly instead of reading from `props`."),e}}),b}function pR(e,t){var n=new Set;return e.forEach(function(r){t.has(r)||n.add(r)}),n}function jV(e){var t=e||{},n=t.disabled,r=t.disableCheckbox,a=t.checkable;return!!(n||r)||a===!1}function kV(e,t,n,r){for(var a=new Set(e),o=new Set,l=0;l<=n;l+=1){var c=t.get(l)||new Set;c.forEach(function(p){var v=p.key,h=p.node,b=p.children,x=b===void 0?[]:b;a.has(v)&&!r(h)&&x.filter(function(y){return!r(y.node)}).forEach(function(y){a.add(y.key)})})}for(var d=new Set,f=n;f>=0;f-=1){var m=t.get(f)||new Set;m.forEach(function(p){var v=p.parent,h=p.node;if(!(r(h)||!p.parent||d.has(p.parent.key))){if(r(p.parent.node)){d.add(v.key);return}var b=!0,x=!1;(v.children||[]).filter(function(y){return!r(y.node)}).forEach(function(y){var C=y.key,w=a.has(C);b&&!w&&(b=!1),!x&&(w||o.has(C))&&(x=!0)}),b&&a.add(v.key),x&&o.add(v.key),d.add(v.key)}})}return{checkedKeys:Array.from(a),halfCheckedKeys:Array.from(pR(o,a))}}function MV(e,t,n,r,a){for(var o=new Set(e),l=new Set(t),c=0;c<=r;c+=1){var d=n.get(c)||new Set;d.forEach(function(v){var h=v.key,b=v.node,x=v.children,y=x===void 0?[]:x;!o.has(h)&&!l.has(h)&&!a(b)&&y.filter(function(C){return!a(C.node)}).forEach(function(C){o.delete(C.key)})})}l=new Set;for(var f=new Set,m=r;m>=0;m-=1){var p=n.get(m)||new Set;p.forEach(function(v){var h=v.parent,b=v.node;if(!(a(b)||!v.parent||f.has(v.parent.key))){if(a(v.parent.node)){f.add(h.key);return}var x=!0,y=!1;(h.children||[]).filter(function(C){return!a(C.node)}).forEach(function(C){var w=C.key,E=o.has(w);x&&!E&&(x=!1),!y&&(E||l.has(w))&&(y=!0)}),x||o.delete(h.key),y&&l.add(h.key),f.add(h.key)}})}return{checkedKeys:Array.from(o),halfCheckedKeys:Array.from(pR(l,o))}}function Gs(e,t,n,r){var a=[],o;r?o=r:o=jV;var l=new Set(e.filter(function(m){var p=!!Ma(n,m);return p||a.push(m),p})),c=new Map,d=0;Object.keys(n).forEach(function(m){var p=n[m],v=p.level,h=c.get(v);h||(h=new Set,c.set(v,h)),h.add(p),d=Math.max(d,v)}),or(!a.length,"Tree missing follow keys: ".concat(a.slice(0,100).map(function(m){return"'".concat(m,"'")}).join(", ")));var f;return t===!0?f=kV(l,c,d,o):f=MV(l,t.halfCheckedKeys,c,d,o),f}const TV=e=>{const{checkboxCls:t}=e,n=`${t}-wrapper`;return[{[`${t}-group`]:Object.assign(Object.assign({},Ln(e)),{display:"inline-flex",flexWrap:"wrap",columnGap:e.marginXS,[`> ${e.antCls}-row`]:{flex:1}}),[n]:Object.assign(Object.assign({},Ln(e)),{display:"inline-flex",alignItems:"baseline",cursor:"pointer","&:after":{display:"inline-block",width:0,overflow:"hidden",content:"'\\a0'"},[`& + ${n}`]:{marginInlineStart:0},[`&${n}-in-form-item`]:{'input[type="checkbox"]':{width:14,height:14}}}),[t]:Object.assign(Object.assign({},Ln(e)),{position:"relative",whiteSpace:"nowrap",lineHeight:1,cursor:"pointer",borderRadius:e.borderRadiusSM,alignSelf:"center",[`${t}-input`]:{position:"absolute",inset:0,zIndex:1,cursor:"pointer",opacity:0,margin:0,[`&:focus-visible + ${t}-inner`]:Object.assign({},qo(e))},[`${t}-inner`]:{boxSizing:"border-box",display:"block",width:e.checkboxSize,height:e.checkboxSize,direction:"ltr",backgroundColor:e.colorBgContainer,border:`${ne(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,borderRadius:e.borderRadiusSM,borderCollapse:"separate",transition:`all ${e.motionDurationSlow}`,"&:after":{boxSizing:"border-box",position:"absolute",top:"50%",insetInlineStart:"25%",display:"table",width:e.calc(e.checkboxSize).div(14).mul(5).equal(),height:e.calc(e.checkboxSize).div(14).mul(8).equal(),border:`${ne(e.lineWidthBold)} solid ${e.colorWhite}`,borderTop:0,borderInlineStart:0,transform:"rotate(45deg) scale(0) translate(-50%,-50%)",opacity:0,content:'""',transition:`all ${e.motionDurationFast} ${e.motionEaseInBack}, opacity ${e.motionDurationFast}`}},"& + span":{paddingInlineStart:e.paddingXS,paddingInlineEnd:e.paddingXS}})},{[` + ${n}:not(${n}-disabled), + ${t}:not(${t}-disabled) + `]:{[`&:hover ${t}-inner`]:{borderColor:e.colorPrimary}},[`${n}:not(${n}-disabled)`]:{[`&:hover ${t}-checked:not(${t}-disabled) ${t}-inner`]:{backgroundColor:e.colorPrimaryHover,borderColor:"transparent"},[`&:hover ${t}-checked:not(${t}-disabled):after`]:{borderColor:e.colorPrimaryHover}}},{[`${t}-checked`]:{[`${t}-inner`]:{backgroundColor:e.colorPrimary,borderColor:e.colorPrimary,"&:after":{opacity:1,transform:"rotate(45deg) scale(1) translate(-50%,-50%)",transition:`all ${e.motionDurationMid} ${e.motionEaseOutBack} ${e.motionDurationFast}`}}},[` + ${n}-checked:not(${n}-disabled), + ${t}-checked:not(${t}-disabled) + `]:{[`&:hover ${t}-inner`]:{backgroundColor:e.colorPrimaryHover,borderColor:"transparent"}}},{[t]:{"&-indeterminate":{[`${t}-inner`]:{backgroundColor:`${e.colorBgContainer} !important`,borderColor:`${e.colorBorder} !important`,"&:after":{top:"50%",insetInlineStart:"50%",width:e.calc(e.fontSizeLG).div(2).equal(),height:e.calc(e.fontSizeLG).div(2).equal(),backgroundColor:e.colorPrimary,border:0,transform:"translate(-50%, -50%) scale(1)",opacity:1,content:'""'}},[`&:hover ${t}-inner`]:{backgroundColor:`${e.colorBgContainer} !important`,borderColor:`${e.colorPrimary} !important`}}}},{[`${n}-disabled`]:{cursor:"not-allowed"},[`${t}-disabled`]:{[`&, ${t}-input`]:{cursor:"not-allowed",pointerEvents:"none"},[`${t}-inner`]:{background:e.colorBgContainerDisabled,borderColor:e.colorBorder,"&:after":{borderColor:e.colorTextDisabled}},"&:after":{display:"none"},"& + span":{color:e.colorTextDisabled},[`&${t}-indeterminate ${t}-inner::after`]:{background:e.colorTextDisabled}}}]};function vR(e,t){const n=$n(t,{checkboxCls:`.${e}`,checkboxSize:t.controlInteractiveSize});return[TV(n)]}const gR=zn("Checkbox",(e,t)=>{let{prefixCls:n}=t;return[vR(n,e)]}),hR=be.createContext(null);var DV=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 a=0,r=Object.getOwnPropertySymbols(e);a{var n;const{prefixCls:r,className:a,rootClassName:o,children:l,indeterminate:c=!1,style:d,onMouseEnter:f,onMouseLeave:m,skipGroup:p=!1,disabled:v}=e,h=DV(e,["prefixCls","className","rootClassName","children","indeterminate","style","onMouseEnter","onMouseLeave","skipGroup","disabled"]),{getPrefixCls:b,direction:x,checkbox:y}=i.useContext(Gt),C=i.useContext(hR),{isFormItemInput:w}=i.useContext(Qr),E=i.useContext(ha),I=(n=(C==null?void 0:C.disabled)||v)!==null&&n!==void 0?n:E,_=i.useRef(h.value),O=i.useRef(null),P=ya(t,O);i.useEffect(()=>{C==null||C.registerValue(h.value)},[]),i.useEffect(()=>{if(!p)return h.value!==_.current&&(C==null||C.cancelValue(_.current),C==null||C.registerValue(h.value),_.current=h.value),()=>C==null?void 0:C.cancelValue(h.value)},[h.value]),i.useEffect(()=>{var D;!((D=O.current)===null||D===void 0)&&D.input&&(O.current.input.indeterminate=c)},[c]);const j=b("checkbox",r),R=Kr(j),[k,L,W]=gR(j,R),B=Object.assign({},h);C&&!p&&(B.onChange=function(){h.onChange&&h.onChange.apply(h,arguments),C.toggleOption&&C.toggleOption({label:l,value:h.value})},B.name=C.name,B.checked=C.value.includes(h.value));const F=ce(`${j}-wrapper`,{[`${j}-rtl`]:x==="rtl",[`${j}-wrapper-checked`]:B.checked,[`${j}-wrapper-disabled`]:I,[`${j}-wrapper-in-form-item`]:w},y==null?void 0:y.className,a,o,W,R,L),A=ce({[`${j}-indeterminate`]:c},hp,L),[T,M]=GO(B.onClick);return k(i.createElement(yd,{component:"Checkbox",disabled:I},i.createElement("label",{className:F,style:Object.assign(Object.assign({},y==null?void 0:y.style),d),onMouseEnter:f,onMouseLeave:m,onClick:T},i.createElement(YO,Object.assign({},B,{onClick:M,prefixCls:j,className:A,disabled:I,ref:P})),l!==void 0&&i.createElement("span",{className:`${j}-label`},l))))},yR=i.forwardRef(FV);var LV=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 a=0,r=Object.getOwnPropertySymbols(e);a{const{defaultValue:n,children:r,options:a=[],prefixCls:o,className:l,rootClassName:c,style:d,onChange:f}=e,m=LV(e,["defaultValue","children","options","prefixCls","className","rootClassName","style","onChange"]),{getPrefixCls:p,direction:v}=i.useContext(Gt),[h,b]=i.useState(m.value||n||[]),[x,y]=i.useState([]);i.useEffect(()=>{"value"in m&&b(m.value||[])},[m.value]);const C=i.useMemo(()=>a.map(A=>typeof A=="string"||typeof A=="number"?{label:A,value:A}:A),[a]),w=A=>{y(T=>T.filter(M=>M!==A))},E=A=>{y(T=>[].concat(Te(T),[A]))},I=A=>{const T=h.indexOf(A.value),M=Te(h);T===-1?M.push(A.value):M.splice(T,1),"value"in m||b(M),f==null||f(M.filter(D=>x.includes(D)).sort((D,V)=>{const K=C.findIndex(U=>U.value===D),z=C.findIndex(U=>U.value===V);return K-z}))},_=p("checkbox",o),O=`${_}-group`,P=Kr(_),[j,R,k]=gR(_,P),L=Qn(m,["value","disabled"]),W=a.length?C.map(A=>i.createElement(yR,{prefixCls:_,key:A.value.toString(),disabled:"disabled"in A?A.disabled:m.disabled,value:A.value,checked:h.includes(A.value),onChange:A.onChange,className:`${O}-item`,style:A.style,title:A.title,id:A.id,required:A.required},A.label)):r,B={toggleOption:I,value:h,disabled:m.disabled,name:m.name,registerValue:E,cancelValue:w},F=ce(O,{[`${O}-rtl`]:v==="rtl"},l,c,k,P,R);return j(i.createElement("div",Object.assign({className:F,style:d},L,{ref:t}),i.createElement(hR.Provider,{value:B},W)))}),Jr=yR;Jr.Group=AV;Jr.__ANT_CHECKBOX=!0;const bR=i.createContext({});var zV=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 a=0,r=Object.getOwnPropertySymbols(e);a{const{getPrefixCls:n,direction:r}=i.useContext(Gt),{gutter:a,wrap:o}=i.useContext(bR),{prefixCls:l,span:c,order:d,offset:f,push:m,pull:p,className:v,children:h,flex:b,style:x}=e,y=zV(e,["prefixCls","span","order","offset","push","pull","className","children","flex","style"]),C=n("col",l),[w,E,I]=OL(C),_={};let O={};BV.forEach(R=>{let k={};const L=e[R];typeof L=="number"?k.span=L:typeof L=="object"&&(k=L||{}),delete y[R],O=Object.assign(Object.assign({},O),{[`${C}-${R}-${k.span}`]:k.span!==void 0,[`${C}-${R}-order-${k.order}`]:k.order||k.order===0,[`${C}-${R}-offset-${k.offset}`]:k.offset||k.offset===0,[`${C}-${R}-push-${k.push}`]:k.push||k.push===0,[`${C}-${R}-pull-${k.pull}`]:k.pull||k.pull===0,[`${C}-rtl`]:r==="rtl"}),k.flex&&(O[`${C}-${R}-flex`]=!0,_[`--${C}-${R}-flex`]=Q$(k.flex))});const P=ce(C,{[`${C}-${c}`]:c!==void 0,[`${C}-order-${d}`]:d,[`${C}-offset-${f}`]:f,[`${C}-push-${m}`]:m,[`${C}-pull-${p}`]:p},v,O,E,I),j={};if(a&&a[0]>0){const R=a[0]/2;j.paddingLeft=R,j.paddingRight=R}return b&&(j.flex=Q$(b),o===!1&&!j.minWidth&&(j.minWidth=0)),w(i.createElement("div",Object.assign({},y,{style:Object.assign(Object.assign(Object.assign({},j),x),_),className:P,ref:t}),h))});function HV(e,t){const n=[void 0,void 0],r=Array.isArray(e)?e:[e,void 0],a=t||{xs:!0,sm:!0,md:!0,lg:!0,xl:!0,xxl:!0};return r.forEach((o,l)=>{if(typeof o=="object"&&o!==null)for(let c=0;c{if(typeof e=="string"&&r(e),typeof e=="object")for(let o=0;o{a()},[JSON.stringify(e),t]),n}const xR=i.forwardRef((e,t)=>{const{prefixCls:n,justify:r,align:a,className:o,style:l,children:c,gutter:d=0,wrap:f}=e,m=VV(e,["prefixCls","justify","align","className","style","children","gutter","wrap"]),{getPrefixCls:p,direction:v}=i.useContext(Gt),h=Lp(!0,null),b=J$(a,h),x=J$(r,h),y=p("row",n),[C,w,E]=_L(y),I=HV(d,h),_=ce(y,{[`${y}-no-wrap`]:f===!1,[`${y}-${x}`]:x,[`${y}-${b}`]:b,[`${y}-rtl`]:v==="rtl"},o,w,E),O={},P=I[0]!=null&&I[0]>0?I[0]/-2:void 0;P&&(O.marginLeft=P,O.marginRight=P);const[j,R]=I;O.rowGap=R;const k=i.useMemo(()=>({gutter:[j,R],wrap:f}),[j,R,f]);return C(i.createElement(bR.Provider,{value:k},i.createElement("div",Object.assign({},m,{className:_,style:Object.assign(Object.assign({},O),l),ref:t}),c)))}),WV=e=>{const{componentCls:t,sizePaddingEdgeHorizontal:n,colorSplit:r,lineWidth:a,textPaddingInline:o,orientationMargin:l,verticalMarginInline:c}=e;return{[t]:Object.assign(Object.assign({},Ln(e)),{borderBlockStart:`${ne(a)} solid ${r}`,"&-vertical":{position:"relative",top:"-0.06em",display:"inline-block",height:"0.9em",marginInline:c,marginBlock:0,verticalAlign:"middle",borderTop:0,borderInlineStart:`${ne(a)} solid ${r}`},"&-horizontal":{display:"flex",clear:"both",width:"100%",minWidth:"100%",margin:`${ne(e.dividerHorizontalGutterMargin)} 0`},[`&-horizontal${t}-with-text`]:{display:"flex",alignItems:"center",margin:`${ne(e.dividerHorizontalWithTextGutterMargin)} 0`,color:e.colorTextHeading,fontWeight:500,fontSize:e.fontSizeLG,whiteSpace:"nowrap",textAlign:"center",borderBlockStart:`0 ${r}`,"&::before, &::after":{position:"relative",width:"50%",borderBlockStart:`${ne(a)} solid transparent`,borderBlockStartColor:"inherit",borderBlockEnd:0,transform:"translateY(50%)",content:"''"}},[`&-horizontal${t}-with-text-start`]:{"&::before":{width:`calc(${l} * 100%)`},"&::after":{width:`calc(100% - ${l} * 100%)`}},[`&-horizontal${t}-with-text-end`]:{"&::before":{width:`calc(100% - ${l} * 100%)`},"&::after":{width:`calc(${l} * 100%)`}},[`${t}-inner-text`]:{display:"inline-block",paddingBlock:0,paddingInline:o},"&-dashed":{background:"none",borderColor:r,borderStyle:"dashed",borderWidth:`${ne(a)} 0 0`},[`&-horizontal${t}-with-text${t}-dashed`]:{"&::before, &::after":{borderStyle:"dashed none none"}},[`&-vertical${t}-dashed`]:{borderInlineStartWidth:a,borderInlineEnd:0,borderBlockStart:0,borderBlockEnd:0},"&-dotted":{background:"none",borderColor:r,borderStyle:"dotted",borderWidth:`${ne(a)} 0 0`},[`&-horizontal${t}-with-text${t}-dotted`]:{"&::before, &::after":{borderStyle:"dotted none none"}},[`&-vertical${t}-dotted`]:{borderInlineStartWidth:a,borderInlineEnd:0,borderBlockStart:0,borderBlockEnd:0},[`&-plain${t}-with-text`]:{color:e.colorText,fontWeight:"normal",fontSize:e.fontSize},[`&-horizontal${t}-with-text-start${t}-no-default-orientation-margin-start`]:{"&::before":{width:0},"&::after":{width:"100%"},[`${t}-inner-text`]:{paddingInlineStart:n}},[`&-horizontal${t}-with-text-end${t}-no-default-orientation-margin-end`]:{"&::before":{width:"100%"},"&::after":{width:0},[`${t}-inner-text`]:{paddingInlineEnd:n}}})}},KV=e=>({textPaddingInline:"1em",orientationMargin:.05,verticalMarginInline:e.marginXS}),UV=zn("Divider",e=>{const t=$n(e,{dividerHorizontalWithTextGutterMargin:e.margin,dividerHorizontalGutterMargin:e.marginLG,sizePaddingEdgeHorizontal:0});return[WV(t)]},KV,{unitless:{orientationMargin:!0}});var qV=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 a=0,r=Object.getOwnPropertySymbols(e);a{const{getPrefixCls:t,direction:n,className:r,style:a}=wa("divider"),{prefixCls:o,type:l="horizontal",orientation:c="center",orientationMargin:d,className:f,rootClassName:m,children:p,dashed:v,variant:h="solid",plain:b,style:x}=e,y=qV(e,["prefixCls","type","orientation","orientationMargin","className","rootClassName","children","dashed","variant","plain","style"]),C=t("divider",o),[w,E,I]=UV(C),_=!!p,O=i.useMemo(()=>c==="left"?n==="rtl"?"end":"start":c==="right"?n==="rtl"?"start":"end":c,[n,c]),P=O==="start"&&d!=null,j=O==="end"&&d!=null,R=ce(C,r,E,I,`${C}-${l}`,{[`${C}-with-text`]:_,[`${C}-with-text-${O}`]:_,[`${C}-dashed`]:!!v,[`${C}-${h}`]:h!=="solid",[`${C}-plain`]:!!b,[`${C}-rtl`]:n==="rtl",[`${C}-no-default-orientation-margin-start`]:P,[`${C}-no-default-orientation-margin-end`]:j},f,m),k=i.useMemo(()=>typeof d=="number"?d:/^\d+$/.test(d)?Number(d):d,[d]),L={marginInlineStart:P?k:void 0,marginInlineEnd:j?k:void 0};return w(i.createElement("div",Object.assign({className:R,style:Object.assign(Object.assign({},a),x)},y,{role:"separator"}),p&&l!=="vertical"&&i.createElement("span",{className:`${C}-inner-text`,style:L},p)))};var GV={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"},XV=function(t,n){return i.createElement(pn,Pe({},t,{ref:n,icon:GV}))},QV=i.forwardRef(XV);function S0(){return typeof BigInt=="function"}function SR(e){return!e&&e!==0&&!Number.isNaN(e)||!String(e).trim()}function Hl(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",a=r.split("."),o=a[0]||"0",l=a[1]||"0";o==="0"&&l==="0"&&(n=!1);var c=n?"-":"";return{negative:n,negativeStr:c,trimStr:r,integerStr:o,decimalStr:l,fullStr:"".concat(c).concat(r)}}function Zb(e){var t=String(e);return!Number.isNaN(Number(t))&&t.includes("e")}function Fl(e){var t=String(e);if(Zb(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(".")&&ex(t)?t.length-t.indexOf(".")-1:0}function Xp(e){var t=String(e);if(Zb(e)){if(e>Number.MAX_SAFE_INTEGER)return String(S0()?BigInt(e).toString():Number.MAX_SAFE_INTEGER);if(e0&&arguments[0]!==void 0?arguments[0]:!0;return n?this.isInvalidate()?"":Hl("".concat(this.getMark()).concat(this.getIntegerStr(),".").concat(this.getDecimalStr())).fullStr:this.origin}}]),e}(),ZV=function(){function e(t){if(ur(this,e),G(this,"origin",""),G(this,"number",void 0),G(this,"empty",void 0),SR(t)){this.empty=!0;return}this.origin=String(t),this.number=Number(t)}return dr(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 a=this.number+r;if(a>Number.MAX_SAFE_INTEGER)return new e(Number.MAX_SAFE_INTEGER);if(aNumber.MAX_SAFE_INTEGER)return new e(Number.MAX_SAFE_INTEGER);if(a0&&arguments[0]!==void 0?arguments[0]:!0;return n?this.isInvalidate()?"":Xp(this.number):this.origin}}]),e}();function bo(e){return S0()?new JV(e):new ZV(e)}function jm(e,t,n){var r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1;if(e==="")return"";var a=Hl(e),o=a.negativeStr,l=a.integerStr,c=a.decimalStr,d="".concat(t).concat(c),f="".concat(o).concat(l);if(n>=0){var m=Number(c[n]);if(m>=5&&!r){var p=bo(e).add("".concat(o,"0.").concat("0".repeat(n)).concat(10-m));return jm(p.toString(),t,n,r)}return n===0?f:"".concat(f).concat(t).concat(c.padEnd(n,"0").slice(0,n))}return d===".0"?f:"".concat(f).concat(d)}function e7(e){return!!(e.addonBefore||e.addonAfter)}function t7(e){return!!(e.prefix||e.suffix||e.allowClear)}function Z$(e,t,n){var r=t.cloneNode(!0),a=Object.create(e,{target:{value:r},currentTarget:{value:r}});return r.value=n,typeof t.selectionStart=="number"&&typeof t.selectionEnd=="number"&&(r.selectionStart=t.selectionStart,r.selectionEnd=t.selectionEnd),r.setSelectionRange=function(){t.setSelectionRange.apply(t,arguments)},a}function Jm(e,t,n,r){if(n){var a=t;if(t.type==="click"){a=Z$(t,e,""),n(a);return}if(e.type!=="file"&&r!==void 0){a=Z$(t,e,r),n(a);return}n(a)}}function tx(e,t){if(e){e.focus(t);var n=t||{},r=n.cursor;if(r){var a=e.value.length;switch(r){case"start":e.setSelectionRange(0,0);break;case"end":e.setSelectionRange(a,a);break;default:e.setSelectionRange(0,a)}}}}var nx=be.forwardRef(function(e,t){var n,r,a,o=e.inputElement,l=e.children,c=e.prefixCls,d=e.prefix,f=e.suffix,m=e.addonBefore,p=e.addonAfter,v=e.className,h=e.style,b=e.disabled,x=e.readOnly,y=e.focused,C=e.triggerFocus,w=e.allowClear,E=e.value,I=e.handleReset,_=e.hidden,O=e.classes,P=e.classNames,j=e.dataAttrs,R=e.styles,k=e.components,L=e.onClear,W=l??o,B=(k==null?void 0:k.affixWrapper)||"span",F=(k==null?void 0:k.groupWrapper)||"span",A=(k==null?void 0:k.wrapper)||"span",T=(k==null?void 0:k.groupAddon)||"span",M=i.useRef(null),D=function(pe){var fe;(fe=M.current)!==null&&fe!==void 0&&fe.contains(pe.target)&&(C==null||C())},V=t7(e),K=i.cloneElement(W,{value:E,className:ce((n=W.props)===null||n===void 0?void 0:n.className,!V&&(P==null?void 0:P.variant))||null}),z=i.useRef(null);if(be.useImperativeHandle(t,function(){return{nativeElement:z.current||M.current}}),V){var U=null;if(w){var Y=!b&&!x&&E,q="".concat(c,"-clear-icon"),X=wt(w)==="object"&&w!==null&&w!==void 0&&w.clearIcon?w.clearIcon:"✖";U=be.createElement("button",{type:"button",tabIndex:-1,onClick:function(pe){I==null||I(pe),L==null||L()},onMouseDown:function(pe){return pe.preventDefault()},className:ce(q,G(G({},"".concat(q,"-hidden"),!Y),"".concat(q,"-has-suffix"),!!f))},X)}var te="".concat(c,"-affix-wrapper"),ee=ce(te,G(G(G(G(G({},"".concat(c,"-disabled"),b),"".concat(te,"-disabled"),b),"".concat(te,"-focused"),y),"".concat(te,"-readonly"),x),"".concat(te,"-input-with-clear-btn"),f&&w&&E),O==null?void 0:O.affixWrapper,P==null?void 0:P.affixWrapper,P==null?void 0:P.variant),J=(f||w)&&be.createElement("span",{className:ce("".concat(c,"-suffix"),P==null?void 0:P.suffix),style:R==null?void 0:R.suffix},U,f);K=be.createElement(B,Pe({className:ee,style:R==null?void 0:R.affixWrapper,onClick:D},j==null?void 0:j.affixWrapper,{ref:M}),d&&be.createElement("span",{className:ce("".concat(c,"-prefix"),P==null?void 0:P.prefix),style:R==null?void 0:R.prefix},d),K,J)}if(e7(e)){var ie="".concat(c,"-group"),de="".concat(ie,"-addon"),oe="".concat(ie,"-wrapper"),le=ce("".concat(c,"-wrapper"),ie,O==null?void 0:O.wrapper,P==null?void 0:P.wrapper),ae=ce(oe,G({},"".concat(oe,"-disabled"),b),O==null?void 0:O.group,P==null?void 0:P.groupWrapper);K=be.createElement(F,{className:ae,ref:z},be.createElement(A,{className:le},m&&be.createElement(T,{className:de},m),K,p&&be.createElement(T,{className:de},p)))}return be.cloneElement(K,{className:ce((r=K.props)===null||r===void 0?void 0:r.className,v)||null,style:Z(Z({},(a=K.props)===null||a===void 0?void 0:a.style),h),hidden:_})}),n7=["show"];function CR(e,t){return i.useMemo(function(){var n={};t&&(n.show=wt(t)==="object"&&t.formatter?t.formatter:!!t),n=Z(Z({},n),e);var r=n,a=r.show,o=Kt(r,n7);return Z(Z({},o),{},{show:!!a,showFormatter:typeof a=="function"?a:void 0,strategy:o.strategy||function(l){return l.length}})},[e,t])}var r7=["autoComplete","onChange","onFocus","onBlur","onPressEnter","onKeyDown","onKeyUp","prefixCls","disabled","htmlSize","className","maxLength","suffix","showCount","count","type","classes","classNames","styles","onCompositionStart","onCompositionEnd"],a7=i.forwardRef(function(e,t){var n=e.autoComplete,r=e.onChange,a=e.onFocus,o=e.onBlur,l=e.onPressEnter,c=e.onKeyDown,d=e.onKeyUp,f=e.prefixCls,m=f===void 0?"rc-input":f,p=e.disabled,v=e.htmlSize,h=e.className,b=e.maxLength,x=e.suffix,y=e.showCount,C=e.count,w=e.type,E=w===void 0?"text":w,I=e.classes,_=e.classNames,O=e.styles,P=e.onCompositionStart,j=e.onCompositionEnd,R=Kt(e,r7),k=i.useState(!1),L=se(k,2),W=L[0],B=L[1],F=i.useRef(!1),A=i.useRef(!1),T=i.useRef(null),M=i.useRef(null),D=function(Re){T.current&&tx(T.current,Re)},V=Hn(e.defaultValue,{value:e.value}),K=se(V,2),z=K[0],U=K[1],Y=z==null?"":String(z),q=i.useState(null),X=se(q,2),te=X[0],ee=X[1],J=CR(C,y),ie=J.max||b,de=J.strategy(Y),oe=!!ie&&de>ie;i.useImperativeHandle(t,function(){var Se;return{focus:D,blur:function(){var De;(De=T.current)===null||De===void 0||De.blur()},setSelectionRange:function(De,Me,Ye){var qe;(qe=T.current)===null||qe===void 0||qe.setSelectionRange(De,Me,Ye)},select:function(){var De;(De=T.current)===null||De===void 0||De.select()},input:T.current,nativeElement:((Se=M.current)===null||Se===void 0?void 0:Se.nativeElement)||T.current}}),i.useEffect(function(){A.current&&(A.current=!1),B(function(Se){return Se&&p?!1:Se})},[p]);var le=function(Re,De,Me){var Ye=De;if(!F.current&&J.exceedFormatter&&J.max&&J.strategy(De)>J.max){if(Ye=J.exceedFormatter(De,{max:J.max}),De!==Ye){var qe,He;ee([((qe=T.current)===null||qe===void 0?void 0:qe.selectionStart)||0,((He=T.current)===null||He===void 0?void 0:He.selectionEnd)||0])}}else if(Me.source==="compositionEnd")return;U(Ye),T.current&&Jm(T.current,Re,r,Ye)};i.useEffect(function(){if(te){var Se;(Se=T.current)===null||Se===void 0||Se.setSelectionRange.apply(Se,Te(te))}},[te]);var ae=function(Re){le(Re,Re.target.value,{source:"change"})},ue=function(Re){F.current=!1,le(Re,Re.currentTarget.value,{source:"compositionEnd"}),j==null||j(Re)},pe=function(Re){l&&Re.key==="Enter"&&!A.current&&(A.current=!0,l(Re)),c==null||c(Re)},fe=function(Re){Re.key==="Enter"&&(A.current=!1),d==null||d(Re)},xe=function(Re){B(!0),a==null||a(Re)},Ee=function(Re){A.current&&(A.current=!1),B(!1),o==null||o(Re)},Le=function(Re){U(""),D(),T.current&&Jm(T.current,Re,r)},Ne=oe&&"".concat(m,"-out-of-range"),ge=function(){var Re=Qn(e,["prefixCls","onPressEnter","addonBefore","addonAfter","prefix","suffix","allowClear","defaultValue","showCount","count","classes","htmlSize","styles","classNames","onClear"]);return be.createElement("input",Pe({autoComplete:n},Re,{onChange:ae,onFocus:xe,onBlur:Ee,onKeyDown:pe,onKeyUp:fe,className:ce(m,G({},"".concat(m,"-disabled"),p),_==null?void 0:_.input),style:O==null?void 0:O.input,ref:T,size:v,type:E,onCompositionStart:function(Me){F.current=!0,P==null||P(Me)},onCompositionEnd:ue}))},we=function(){var Re=Number(ie)>0;if(x||J.show){var De=J.showFormatter?J.showFormatter({value:Y,count:de,maxLength:ie}):"".concat(de).concat(Re?" / ".concat(ie):"");return be.createElement(be.Fragment,null,J.show&&be.createElement("span",{className:ce("".concat(m,"-show-count-suffix"),G({},"".concat(m,"-show-count-has-suffix"),!!x),_==null?void 0:_.count),style:Z({},O==null?void 0:O.count)},De),x)}return null};return be.createElement(nx,Pe({},R,{prefixCls:m,className:ce(h,Ne),handleReset:Le,value:Y,focused:W,triggerFocus:D,suffix:we(),disabled:p,classes:I,classNames:_,styles:O}),ge())});function o7(e,t){return typeof Proxy<"u"&&e?new Proxy(e,{get:function(r,a){if(t[a])return t[a];var o=r[a];return typeof o=="function"?o.bind(r):o}}):e}function i7(e,t){var n=i.useRef(null);function r(){try{var o=e.selectionStart,l=e.selectionEnd,c=e.value,d=c.substring(0,o),f=c.substring(l);n.current={start:o,end:l,value:c,beforeTxt:d,afterTxt:f}}catch{}}function a(){if(e&&n.current&&t)try{var o=e.value,l=n.current,c=l.beforeTxt,d=l.afterTxt,f=l.start,m=o.length;if(o.startsWith(c))m=c.length;else if(o.endsWith(d))m=o.length-n.current.afterTxt.length;else{var p=c[f-1],v=o.indexOf(p,f-1);v!==-1&&(m=v+1)}e.setSelectionRange(m,m)}catch(h){or(!1,"Something warning of cursor restore. Please fire issue about this: ".concat(h.message))}}return[r,a]}var l7=function(){var t=i.useState(!1),n=se(t,2),r=n[0],a=n[1];return hn(function(){a(Mp())},[]),r},s7=200,c7=600;function u7(e){var t=e.prefixCls,n=e.upNode,r=e.downNode,a=e.upDisabled,o=e.downDisabled,l=e.onStep,c=i.useRef(),d=i.useRef([]),f=i.useRef();f.current=l;var m=function(){clearTimeout(c.current)},p=function(E,I){E.preventDefault(),m(),f.current(I);function _(){f.current(I),c.current=setTimeout(_,s7)}c.current=setTimeout(_,c7)};i.useEffect(function(){return function(){m(),d.current.forEach(function(w){return mn.cancel(w)})}},[]);var v=l7();if(v)return null;var h="".concat(t,"-handler"),b=ce(h,"".concat(h,"-up"),G({},"".concat(h,"-up-disabled"),a)),x=ce(h,"".concat(h,"-down"),G({},"".concat(h,"-down-disabled"),o)),y=function(){return d.current.push(mn(m))},C={unselectable:"on",role:"button",onMouseUp:y,onMouseLeave:y};return i.createElement("div",{className:"".concat(h,"-wrap")},i.createElement("span",Pe({},C,{onMouseDown:function(E){p(E,!0)},"aria-label":"Increase Value","aria-disabled":a,className:b}),n||i.createElement("span",{unselectable:"on",className:"".concat(t,"-handler-up-inner")})),i.createElement("span",Pe({},C,{onMouseDown:function(E){p(E,!1)},"aria-label":"Decrease Value","aria-disabled":o,className:x}),r||i.createElement("span",{unselectable:"on",className:"".concat(t,"-handler-down-inner")})))}function eE(e){var t=typeof e=="number"?Xp(e):Hl(e).fullStr,n=t.includes(".");return n?Hl(t.replace(/(\d)\.(\d)/g,"$1$2.")).fullStr:e+"0"}const d7=function(){var e=i.useRef(0),t=function(){mn.cancel(e.current)};return i.useEffect(function(){return t},[]),function(n){t(),e.current=mn(function(){n()})}};var f7=["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"],m7=["disabled","style","prefixCls","value","prefix","suffix","addonBefore","addonAfter","className","classNames"],tE=function(t,n){return t||n.isEmpty()?n.toString():n.toNumber()},nE=function(t){var n=bo(t);return n.isInvalidate()?null:n},p7=i.forwardRef(function(e,t){var n=e.prefixCls,r=e.className,a=e.style,o=e.min,l=e.max,c=e.step,d=c===void 0?1:c,f=e.defaultValue,m=e.value,p=e.disabled,v=e.readOnly,h=e.upHandler,b=e.downHandler,x=e.keyboard,y=e.changeOnWheel,C=y===void 0?!1:y,w=e.controls,E=w===void 0?!0:w;e.classNames;var I=e.stringMode,_=e.parser,O=e.formatter,P=e.precision,j=e.decimalSeparator,R=e.onChange,k=e.onInput,L=e.onPressEnter,W=e.onStep,B=e.changeOnBlur,F=B===void 0?!0:B,A=e.domRef,T=Kt(e,f7),M="".concat(n,"-input"),D=i.useRef(null),V=i.useState(!1),K=se(V,2),z=K[0],U=K[1],Y=i.useRef(!1),q=i.useRef(!1),X=i.useRef(!1),te=i.useState(function(){return bo(m??f)}),ee=se(te,2),J=ee[0],ie=ee[1];function de(Ge){m===void 0&&ie(Ge)}var oe=i.useCallback(function(Ge,rt){if(!rt)return P>=0?P:Math.max(Fl(Ge),Fl(d))},[P,d]),le=i.useCallback(function(Ge){var rt=String(Ge);if(_)return _(rt);var gt=rt;return j&&(gt=gt.replace(j,".")),gt.replace(/[^\w.-]+/g,"")},[_,j]),ae=i.useRef(""),ue=i.useCallback(function(Ge,rt){if(O)return O(Ge,{userTyping:rt,input:String(ae.current)});var gt=typeof Ge=="number"?Xp(Ge):Ge;if(!rt){var at=oe(gt,rt);if(ex(gt)&&(j||at>=0)){var dt=j||".";gt=jm(gt,dt,at)}}return gt},[O,oe,j]),pe=i.useState(function(){var Ge=f??m;return J.isInvalidate()&&["string","number"].includes(wt(Ge))?Number.isNaN(Ge)?"":Ge:ue(J.toString(),!1)}),fe=se(pe,2),xe=fe[0],Ee=fe[1];ae.current=xe;function Le(Ge,rt){Ee(ue(Ge.isInvalidate()?Ge.toString(!1):Ge.toString(!rt),rt))}var Ne=i.useMemo(function(){return nE(l)},[l,P]),ge=i.useMemo(function(){return nE(o)},[o,P]),we=i.useMemo(function(){return!Ne||!J||J.isInvalidate()?!1:Ne.lessEquals(J)},[Ne,J]),Se=i.useMemo(function(){return!ge||!J||J.isInvalidate()?!1:J.lessEquals(ge)},[ge,J]),Re=i7(D.current,z),De=se(Re,2),Me=De[0],Ye=De[1],qe=function(rt){return Ne&&!rt.lessEquals(Ne)?Ne:ge&&!ge.lessEquals(rt)?ge:null},He=function(rt){return!qe(rt)},ze=function(rt,gt){var at=rt,dt=He(at)||at.isEmpty();if(!at.isEmpty()&&!gt&&(at=qe(at)||at,dt=!0),!v&&!p&&dt){var st=at.toString(),et=oe(st,gt);return et>=0&&(at=bo(jm(st,".",et)),He(at)||(at=bo(jm(st,".",et,!0)))),at.equals(J)||(de(at),R==null||R(at.isEmpty()?null:tE(I,at)),m===void 0&&Le(at,gt)),at}return J},Ae=d7(),Ie=function Ge(rt){if(Me(),ae.current=rt,Ee(rt),!q.current){var gt=le(rt),at=bo(gt);at.isNaN()||ze(at,!0)}k==null||k(rt),Ae(function(){var dt=rt;_||(dt=rt.replace(/。/g,".")),dt!==rt&&Ge(dt)})},Ve=function(){q.current=!0},ye=function(){q.current=!1,Ie(D.current.value)},Ce=function(rt){Ie(rt.target.value)},_e=function(rt){var gt;if(!(rt&&we||!rt&&Se)){Y.current=!1;var at=bo(X.current?eE(d):d);rt||(at=at.negate());var dt=(J||bo(0)).add(at.toString()),st=ze(dt,!1);W==null||W(tE(I,st),{offset:X.current?eE(d):d,type:rt?"up":"down"}),(gt=D.current)===null||gt===void 0||gt.focus()}},he=function(rt){var gt=bo(le(xe)),at;gt.isNaN()?at=ze(J,rt):at=ze(gt,rt),m!==void 0?Le(J,!1):at.isNaN()||Le(at,!1)},ke=function(){Y.current=!0},tt=function(rt){var gt=rt.key,at=rt.shiftKey;Y.current=!0,X.current=at,gt==="Enter"&&(q.current||(Y.current=!1),he(!1),L==null||L(rt)),x!==!1&&!q.current&&["Up","ArrowUp","Down","ArrowDown"].includes(gt)&&(_e(gt==="Up"||gt==="ArrowUp"),rt.preventDefault())},Nt=function(){Y.current=!1,X.current=!1};i.useEffect(function(){if(C&&z){var Ge=function(at){_e(at.deltaY<0),at.preventDefault()},rt=D.current;if(rt)return rt.addEventListener("wheel",Ge,{passive:!1}),function(){return rt.removeEventListener("wheel",Ge)}}});var Ht=function(){F&&he(!1),U(!1),Y.current=!1};return zl(function(){J.isInvalidate()||Le(J,!1)},[P,O]),zl(function(){var Ge=bo(m);ie(Ge);var rt=bo(le(xe));(!Ge.equals(rt)||!Y.current||O)&&Le(Ge,Y.current)},[m]),zl(function(){O&&Ye()},[xe]),i.createElement("div",{ref:A,className:ce(n,r,G(G(G(G(G({},"".concat(n,"-focused"),z),"".concat(n,"-disabled"),p),"".concat(n,"-readonly"),v),"".concat(n,"-not-a-number"),J.isNaN()),"".concat(n,"-out-of-range"),!J.isInvalidate()&&!He(J))),style:a,onFocus:function(){U(!0)},onBlur:Ht,onKeyDown:tt,onKeyUp:Nt,onCompositionStart:Ve,onCompositionEnd:ye,onBeforeInput:ke},E&&i.createElement(u7,{prefixCls:n,upNode:h,downNode:b,upDisabled:we,downDisabled:Se,onStep:_e}),i.createElement("div",{className:"".concat(M,"-wrap")},i.createElement("input",Pe({autoComplete:"off",role:"spinbutton","aria-valuemin":o,"aria-valuemax":l,"aria-valuenow":J.isInvalidate()?null:J.toString(),step:d},T,{ref:ya(D,t),className:M,value:xe,onChange:Ce,disabled:p,readOnly:v}))))}),v7=i.forwardRef(function(e,t){var n=e.disabled,r=e.style,a=e.prefixCls,o=a===void 0?"rc-input-number":a,l=e.value,c=e.prefix,d=e.suffix,f=e.addonBefore,m=e.addonAfter,p=e.className,v=e.classNames,h=Kt(e,m7),b=i.useRef(null),x=i.useRef(null),y=i.useRef(null),C=function(E){y.current&&tx(y.current,E)};return i.useImperativeHandle(t,function(){return o7(y.current,{focus:C,nativeElement:b.current.nativeElement||x.current})}),i.createElement(nx,{className:p,triggerFocus:C,prefixCls:o,value:l,disabled:n,style:r,prefix:c,suffix:d,addonAfter:m,addonBefore:f,classNames:v,components:{affixWrapper:"div",groupWrapper:"div",wrapper:"div",groupAddon:"div"},ref:b},i.createElement(p7,Pe({prefixCls:o,disabled:n,ref:y,domRef:x,className:v==null?void 0:v.input},h)))});const g7=e=>{var t;const n=(t=e.handleVisible)!==null&&t!==void 0?t:"auto",r=e.controlHeightSM-e.lineWidth*2;return Object.assign(Object.assign({},rs(e)),{controlWidth:90,handleWidth:r,handleFontSize:e.fontSize/2,handleVisible:n,handleActiveBg:e.colorFillAlter,handleBg:e.colorBgContainer,filledHandleBg:new Pn(e.colorFillSecondary).onBackground(e.colorBgContainer).toHexString(),handleHoverColor:e.colorPrimary,handleBorderColor:e.colorBorder,handleOpacity:n===!0?1:0,handleVisibleWidth:n===!0?r:0})},rE=(e,t)=>{let{componentCls:n,borderRadiusSM:r,borderRadiusLG:a}=e;const o=t==="lg"?a:r;return{[`&-${t}`]:{[`${n}-handler-wrap`]:{borderStartEndRadius:o,borderEndEndRadius:o},[`${n}-handler-up`]:{borderStartEndRadius:o},[`${n}-handler-down`]:{borderEndEndRadius:o}}}},h7=e=>{const{componentCls:t,lineWidth:n,lineType:r,borderRadius:a,inputFontSizeSM:o,inputFontSizeLG:l,controlHeightLG:c,controlHeightSM:d,colorError:f,paddingInlineSM:m,paddingBlockSM:p,paddingBlockLG:v,paddingInlineLG:h,colorTextDescription:b,motionDurationMid:x,handleHoverColor:y,handleOpacity:C,paddingInline:w,paddingBlock:E,handleBg:I,handleActiveBg:_,colorTextDisabled:O,borderRadiusSM:P,borderRadiusLG:j,controlWidth:R,handleBorderColor:k,filledHandleBg:L,lineHeightLG:W,calc:B}=e;return[{[t]:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},Ln(e)),Ed(e)),{display:"inline-block",width:R,margin:0,padding:0,borderRadius:a}),Wb(e,{[`${t}-handler-wrap`]:{background:I,[`${t}-handler-down`]:{borderBlockStart:`${ne(n)} ${r} ${k}`}}})),Ub(e,{[`${t}-handler-wrap`]:{background:L,[`${t}-handler-down`]:{borderBlockStart:`${ne(n)} ${r} ${k}`}},"&:focus-within":{[`${t}-handler-wrap`]:{background:I}}})),qb(e,{[`${t}-handler-wrap`]:{background:I,[`${t}-handler-down`]:{borderBlockStart:`${ne(n)} ${r} ${k}`}}})),Kb(e)),{"&-rtl":{direction:"rtl",[`${t}-input`]:{direction:"rtl"}},"&-lg":{padding:0,fontSize:l,lineHeight:W,borderRadius:j,[`input${t}-input`]:{height:B(c).sub(B(n).mul(2)).equal(),padding:`${ne(v)} ${ne(h)}`}},"&-sm":{padding:0,fontSize:o,borderRadius:P,[`input${t}-input`]:{height:B(d).sub(B(n).mul(2)).equal(),padding:`${ne(p)} ${ne(m)}`}},"&-out-of-range":{[`${t}-input-wrap`]:{input:{color:f}}},"&-group":Object.assign(Object.assign(Object.assign({},Ln(e)),nR(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:j,fontSize:e.fontSizeLG}},"&-sm":{[`${t}-group-addon`]:{borderRadius:P}}},QO(e)),ZO(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({},Ln(e)),{width:"100%",padding:`${ne(E)} ${ne(w)}`,textAlign:"start",backgroundColor:"transparent",border:0,borderRadius:a,outline:0,transition:`all ${x} linear`,appearance:"textfield",fontSize:"inherit"}),Yb(e.colorTextPlaceholder)),{'&[type="number"]::-webkit-inner-spin-button, &[type="number"]::-webkit-outer-spin-button':{margin:0,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:e.handleVisibleWidth,opacity:C,height:"100%",borderStartStartRadius:0,borderStartEndRadius:a,borderEndEndRadius:a,borderEndStartRadius:0,display:"flex",flexDirection:"column",alignItems:"stretch",transition:`all ${x}`,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:b,fontWeight:"bold",lineHeight:0,textAlign:"center",cursor:"pointer",borderInlineStart:`${ne(n)} ${r} ${k}`,transition:`all ${x} linear`,"&:active":{background:_},"&:hover":{height:"60%",[` + ${t}-handler-up-inner, + ${t}-handler-down-inner + `]:{color:y}},"&-up-inner, &-down-inner":Object.assign(Object.assign({},cc()),{color:b,transition:`all ${x} linear`,userSelect:"none"})},[`${t}-handler-up`]:{borderStartEndRadius:a},[`${t}-handler-down`]:{borderEndEndRadius:a}},rE(e,"lg")),rE(e,"sm")),{"&-disabled, &-readonly":{[`${t}-handler-wrap`]:{display:"none"},[`${t}-input`]:{color:"inherit"}},[` + ${t}-handler-up-disabled, + ${t}-handler-down-disabled + `]:{cursor:"not-allowed"},[` + ${t}-handler-up-disabled:hover &-handler-up-inner, + ${t}-handler-down-disabled:hover &-handler-down-inner + `]:{color:O}})}]},y7=e=>{const{componentCls:t,paddingBlock:n,paddingInline:r,inputAffixPadding:a,controlWidth:o,borderRadiusLG:l,borderRadiusSM:c,paddingInlineLG:d,paddingInlineSM:f,paddingBlockLG:m,paddingBlockSM:p,motionDurationMid:v}=e;return{[`${t}-affix-wrapper`]:Object.assign(Object.assign({[`input${t}-input`]:{padding:`${ne(n)} 0`}},Ed(e)),{position:"relative",display:"inline-flex",alignItems:"center",width:o,padding:0,paddingInlineStart:r,"&-lg":{borderRadius:l,paddingInlineStart:d,[`input${t}-input`]:{padding:`${ne(m)} 0`}},"&-sm":{borderRadius:c,paddingInlineStart:f,[`input${t}-input`]:{padding:`${ne(p)} 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:a},"&-suffix":{insetBlockStart:0,insetInlineEnd:0,height:"100%",marginInlineEnd:r,marginInlineStart:a,transition:`margin ${v}`}},[`&: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()}})}},b7=zn("InputNumber",e=>{const t=$n(e,ns(e));return[h7(t),y7(t),bd(t)]},g7,{unitless:{handleOpacity:!0}});var x7=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 a=0,r=Object.getOwnPropertySymbols(e);a{const{getPrefixCls:n,direction:r}=i.useContext(Gt),a=i.useRef(null);i.useImperativeHandle(t,()=>a.current);const{className:o,rootClassName:l,size:c,disabled:d,prefixCls:f,addonBefore:m,addonAfter:p,prefix:v,suffix:h,bordered:b,readOnly:x,status:y,controls:C,variant:w}=e,E=x7(e,["className","rootClassName","size","disabled","prefixCls","addonBefore","addonAfter","prefix","suffix","bordered","readOnly","status","controls","variant"]),I=n("input-number",f),_=Kr(I),[O,P,j]=b7(I,_),{compactSize:R,compactItemClassnames:k}=_i(I,r);let L=i.createElement(QV,{className:`${I}-handler-up-inner`}),W=i.createElement(Eb,{className:`${I}-handler-down-inner`});const B=typeof C=="boolean"?C:void 0;typeof C=="object"&&(L=typeof C.upIcon>"u"?L:i.createElement("span",{className:`${I}-handler-up-inner`},C.upIcon),W=typeof C.downIcon>"u"?W:i.createElement("span",{className:`${I}-handler-down-inner`},C.downIcon));const{hasFeedback:F,status:A,isFormItemInput:T,feedbackIcon:M}=i.useContext(Qr),D=Ql(A,y),V=Zr(J=>{var ie;return(ie=c??R)!==null&&ie!==void 0?ie:J}),K=i.useContext(ha),z=d??K,[U,Y]=Jl("inputNumber",w,b),q=F&&i.createElement(i.Fragment,null,M),X=ce({[`${I}-lg`]:V==="large",[`${I}-sm`]:V==="small",[`${I}-rtl`]:r==="rtl",[`${I}-in-form-item`]:T},P),te=`${I}-group`,ee=i.createElement(v7,Object.assign({ref:a,disabled:z,className:ce(j,_,o,l,k),upHandler:L,downHandler:W,prefixCls:I,readOnly:x,controls:B,prefix:v,suffix:q||h,addonBefore:m&&i.createElement(sl,{form:!0,space:!0},m),addonAfter:p&&i.createElement(sl,{form:!0,space:!0},p),classNames:{input:X,variant:ce({[`${I}-${U}`]:Y},cl(I,D,F)),affixWrapper:ce({[`${I}-affix-wrapper-sm`]:V==="small",[`${I}-affix-wrapper-lg`]:V==="large",[`${I}-affix-wrapper-rtl`]:r==="rtl",[`${I}-affix-wrapper-without-controls`]:C===!1||z},P),wrapper:ce({[`${te}-rtl`]:r==="rtl"},P),groupWrapper:ce({[`${I}-group-wrapper-sm`]:V==="small",[`${I}-group-wrapper-lg`]:V==="large",[`${I}-group-wrapper-rtl`]:r==="rtl",[`${I}-group-wrapper-${U}`]:Y},cl(`${I}-group-wrapper`,D,F),P)}},E));return O(ee)}),rx=wR,S7=e=>i.createElement(Ei,{theme:{components:{InputNumber:{handleVisible:!0}}}},i.createElement(wR,Object.assign({},e)));rx._InternalPanelDoNotUseOrYouWillBeFired=S7;const $R=e=>{let t;return typeof e=="object"&&(e!=null&&e.clearIcon)?t=e:e&&(t={clearIcon:be.createElement(vd,null)}),t};function ER(e,t){const n=i.useRef([]),r=()=>{n.current.push(setTimeout(()=>{var a,o,l,c;!((a=e.current)===null||a===void 0)&&a.input&&((o=e.current)===null||o===void 0?void 0:o.input.getAttribute("type"))==="password"&&(!((l=e.current)===null||l===void 0)&&l.input.hasAttribute("value"))&&((c=e.current)===null||c===void 0||c.input.removeAttribute("value"))}))};return i.useEffect(()=>(t&&r(),()=>n.current.forEach(a=>{a&&clearTimeout(a)})),[]),r}function C7(e){return!!(e.prefix||e.suffix||e.allowClear||e.showCount)}var w7=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 a=0,r=Object.getOwnPropertySymbols(e);a{const{prefixCls:n,bordered:r=!0,status:a,size:o,disabled:l,onBlur:c,onFocus:d,suffix:f,allowClear:m,addonAfter:p,addonBefore:v,className:h,style:b,styles:x,rootClassName:y,onChange:C,classNames:w,variant:E}=e,I=w7(e,["prefixCls","bordered","status","size","disabled","onBlur","onFocus","suffix","allowClear","addonAfter","addonBefore","className","style","styles","rootClassName","onChange","classNames","variant"]),{getPrefixCls:_,direction:O,allowClear:P,autoComplete:j,className:R,style:k,classNames:L,styles:W}=wa("input"),B=_("input",n),F=i.useRef(null),A=Kr(B),[T,M,D]=rR(B,y),[V]=aR(B,A),{compactSize:K,compactItemClassnames:z}=_i(B,O),U=Zr(Ee=>{var Le;return(Le=o??K)!==null&&Le!==void 0?Le:Ee}),Y=be.useContext(ha),q=l??Y,{status:X,hasFeedback:te,feedbackIcon:ee}=i.useContext(Qr),J=Ql(X,a),ie=C7(e)||!!te;i.useRef(ie);const de=ER(F,!0),oe=Ee=>{de(),c==null||c(Ee)},le=Ee=>{de(),d==null||d(Ee)},ae=Ee=>{de(),C==null||C(Ee)},ue=(te||f)&&be.createElement(be.Fragment,null,f,te&&ee),pe=$R(m??P),[fe,xe]=Jl("input",E,r);return T(V(be.createElement(a7,Object.assign({ref:ya(t,F),prefixCls:B,autoComplete:j},I,{disabled:q,onBlur:oe,onFocus:le,style:Object.assign(Object.assign({},k),b),styles:Object.assign(Object.assign({},W),x),suffix:ue,allowClear:pe,className:ce(h,y,D,A,z,R),onChange:ae,addonBefore:v&&be.createElement(sl,{form:!0,space:!0},v),addonAfter:p&&be.createElement(sl,{form:!0,space:!0},p),classNames:Object.assign(Object.assign(Object.assign({},w),L),{input:ce({[`${B}-sm`]:U==="small",[`${B}-lg`]:U==="large",[`${B}-rtl`]:O==="rtl"},w==null?void 0:w.input,L.input,M),variant:ce({[`${B}-${fe}`]:xe},cl(B,J)),affixWrapper:ce({[`${B}-affix-wrapper-sm`]:U==="small",[`${B}-affix-wrapper-lg`]:U==="large",[`${B}-affix-wrapper-rtl`]:O==="rtl"},M),wrapper:ce({[`${B}-group-rtl`]:O==="rtl"},M),groupWrapper:ce({[`${B}-group-wrapper-sm`]:U==="small",[`${B}-group-wrapper-lg`]:U==="large",[`${B}-group-wrapper-rtl`]:O==="rtl",[`${B}-group-wrapper-${fe}`]:xe},cl(`${B}-group-wrapper`,J,te),M)})}))))});var $7={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M880 184H712v-64c0-4.4-3.6-8-8-8h-56c-4.4 0-8 3.6-8 8v64H384v-64c0-4.4-3.6-8-8-8h-56c-4.4 0-8 3.6-8 8v64H144c-17.7 0-32 14.3-32 32v664c0 17.7 14.3 32 32 32h736c17.7 0 32-14.3 32-32V216c0-17.7-14.3-32-32-32zm-40 656H184V460h656v380zM184 392V256h128v48c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-48h256v48c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-48h128v136H184z"}}]},name:"calendar",theme:"outlined"},E7=function(t,n){return i.createElement(pn,Pe({},t,{ref:n,icon:$7}))},_R=i.forwardRef(E7),_7={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:"M686.7 638.6L544.1 535.5V288c0-4.4-3.6-8-8-8H488c-4.4 0-8 3.6-8 8v275.4c0 2.6 1.2 5 3.3 6.5l165.4 120.6c3.6 2.6 8.6 1.8 11.2-1.7l28.6-39c2.6-3.7 1.8-8.7-1.8-11.2z"}}]},name:"clock-circle",theme:"outlined"},I7=function(t,n){return i.createElement(pn,Pe({},t,{ref:n,icon:_7}))},IR=i.forwardRef(I7),O7={icon:{tag:"svg",attrs:{viewBox:"0 0 1024 1024",focusable:"false"},children:[{tag:"path",attrs:{d:"M873.1 596.2l-164-208A32 32 0 00684 376h-64.8c-6.7 0-10.4 7.7-6.3 13l144.3 183H152c-4.4 0-8 3.6-8 8v60c0 4.4 3.6 8 8 8h695.9c26.8 0 41.7-30.8 25.2-51.8z"}}]},name:"swap-right",theme:"outlined"},R7=function(t,n){return i.createElement(pn,Pe({},t,{ref:n,icon:O7}))},P7=i.forwardRef(R7);function N7(e,t,n){return n!==void 0?n:t==="year"&&e.lang.yearPlaceholder?e.lang.yearPlaceholder:t==="quarter"&&e.lang.quarterPlaceholder?e.lang.quarterPlaceholder:t==="month"&&e.lang.monthPlaceholder?e.lang.monthPlaceholder:t==="week"&&e.lang.weekPlaceholder?e.lang.weekPlaceholder:t==="time"&&e.timePickerLocale.placeholder?e.timePickerLocale.placeholder:e.lang.placeholder}function j7(e,t,n){return n!==void 0?n:t==="year"&&e.lang.yearPlaceholder?e.lang.rangeYearPlaceholder:t==="quarter"&&e.lang.quarterPlaceholder?e.lang.rangeQuarterPlaceholder:t==="month"&&e.lang.monthPlaceholder?e.lang.rangeMonthPlaceholder:t==="week"&&e.lang.weekPlaceholder?e.lang.rangeWeekPlaceholder:t==="time"&&e.timePickerLocale.placeholder?e.timePickerLocale.rangePlaceholder:e.lang.rangePlaceholder}function OR(e,t){const{allowClear:n=!0}=e,{clearIcon:r,removeIcon:a}=A2(Object.assign(Object.assign({},e),{prefixCls:t,componentName:"DatePicker"}));return[i.useMemo(()=>n===!1?!1:Object.assign({clearIcon:r},n===!0?{}:n),[n,r]),a]}const[k7,M7]=["week","WeekPicker"],[T7,D7]=["month","MonthPicker"],[F7,L7]=["year","YearPicker"],[A7,z7]=["quarter","QuarterPicker"],[RR,aE]=["time","TimePicker"],B7=e=>i.createElement(bn,Object.assign({size:"small",type:"primary"},e));function PR(e){return i.useMemo(()=>Object.assign({button:B7},e),[e])}var H7=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 a=0,r=Object.getOwnPropertySymbols(e);ai.forwardRef((n,r)=>{var a;const{prefixCls:o,getPopupContainer:l,components:c,className:d,style:f,placement:m,size:p,disabled:v,bordered:h=!0,placeholder:b,popupClassName:x,dropdownClassName:y,status:C,rootClassName:w,variant:E,picker:I}=n,_=H7(n,["prefixCls","getPopupContainer","components","className","style","placement","size","disabled","bordered","placeholder","popupClassName","dropdownClassName","status","rootClassName","variant","picker"]),O=i.useRef(null),{getPrefixCls:P,direction:j,getPopupContainer:R,rangePicker:k}=i.useContext(Gt),L=P("picker",o),{compactSize:W,compactItemClassnames:B}=_i(L,j),F=P(),[A,T]=Jl("rangePicker",E,h),M=Kr(L),[D,V,K]=oR(L,M),[z]=OR(n,L),U=PR(c),Y=Zr(ue=>{var pe;return(pe=p??W)!==null&&pe!==void 0?pe:ue}),q=i.useContext(ha),X=v??q,te=i.useContext(Qr),{hasFeedback:ee,status:J,feedbackIcon:ie}=te,de=i.createElement(i.Fragment,null,I===RR?i.createElement(IR,null):i.createElement(_R,null),ee&&ie);i.useImperativeHandle(r,()=>O.current);const[oe]=$i("Calendar",Bm),le=Object.assign(Object.assign({},oe),n.locale),[ae]=dc("DatePicker",(a=n.popupStyle)===null||a===void 0?void 0:a.zIndex);return D(i.createElement(sl,{space:!0},i.createElement(V5,Object.assign({separator:i.createElement("span",{"aria-label":"to",className:`${L}-separator`},i.createElement(P7,null)),disabled:X,ref:O,placement:m,placeholder:j7(le,I,b),suffixIcon:de,prevIcon:i.createElement("span",{className:`${L}-prev-icon`}),nextIcon:i.createElement("span",{className:`${L}-next-icon`}),superPrevIcon:i.createElement("span",{className:`${L}-super-prev-icon`}),superNextIcon:i.createElement("span",{className:`${L}-super-next-icon`}),transitionName:`${F}-slide-up`,picker:I},_,{className:ce({[`${L}-${Y}`]:Y,[`${L}-${A}`]:T},cl(L,Ql(J,C),ee),V,B,d,k==null?void 0:k.className,K,M,w),style:Object.assign(Object.assign({},k==null?void 0:k.style),f),locale:le.lang,prefixCls:L,getPopupContainer:l||R,generateConfig:e,components:U,direction:j,classNames:{popup:ce(V,x||y,K,M,w)},styles:{popup:Object.assign(Object.assign({},n.popupStyle),{zIndex:ae})},allowClear:z}))))});var W7=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 a=0,r=Object.getOwnPropertySymbols(e);a{const t=(d,f)=>{const m=f===aE?"timePicker":"datePicker";return i.forwardRef((v,h)=>{var b;const{prefixCls:x,getPopupContainer:y,components:C,style:w,className:E,rootClassName:I,size:_,bordered:O,placement:P,placeholder:j,popupClassName:R,dropdownClassName:k,disabled:L,status:W,variant:B,onCalendarChange:F}=v,A=W7(v,["prefixCls","getPopupContainer","components","style","className","rootClassName","size","bordered","placement","placeholder","popupClassName","dropdownClassName","disabled","status","variant","onCalendarChange"]),{getPrefixCls:T,direction:M,getPopupContainer:D,[m]:V}=i.useContext(Gt),K=T("picker",x),{compactSize:z,compactItemClassnames:U}=_i(K,M),Y=i.useRef(null),[q,X]=Jl("datePicker",B,O),te=Kr(K),[ee,J,ie]=oR(K,te);i.useImperativeHandle(h,()=>Y.current);const de={showToday:!0},oe=d||v.picker,le=T(),{onSelect:ae,multiple:ue}=A,pe=ae&&d==="time"&&!ue,fe=(Ae,Ie,Ve)=>{F==null||F(Ae,Ie,Ve),pe&&ae(Ae)},[xe,Ee]=OR(v,K),Le=PR(C),Ne=Zr(Ae=>{var Ie;return(Ie=_??z)!==null&&Ie!==void 0?Ie:Ae}),ge=i.useContext(ha),we=L??ge,Se=i.useContext(Qr),{hasFeedback:Re,status:De,feedbackIcon:Me}=Se,Ye=i.createElement(i.Fragment,null,oe==="time"?i.createElement(IR,null):i.createElement(_R,null),Re&&Me),[qe]=$i("DatePicker",Bm),He=Object.assign(Object.assign({},qe),v.locale),[ze]=dc("DatePicker",(b=v.popupStyle)===null||b===void 0?void 0:b.zIndex);return ee(i.createElement(sl,{space:!0},i.createElement(G5,Object.assign({ref:Y,placeholder:N7(He,oe,j),suffixIcon:Ye,placement:P,prevIcon:i.createElement("span",{className:`${K}-prev-icon`}),nextIcon:i.createElement("span",{className:`${K}-next-icon`}),superPrevIcon:i.createElement("span",{className:`${K}-super-prev-icon`}),superNextIcon:i.createElement("span",{className:`${K}-super-next-icon`}),transitionName:`${le}-slide-up`,picker:d,onCalendarChange:fe},de,A,{locale:He.lang,className:ce({[`${K}-${Ne}`]:Ne,[`${K}-${q}`]:X},cl(K,Ql(De,W),Re),J,U,V==null?void 0:V.className,E,ie,te,I),style:Object.assign(Object.assign({},V==null?void 0:V.style),w),prefixCls:K,getPopupContainer:y||D,generateConfig:e,components:Le,direction:M,disabled:we,classNames:{popup:ce(J,ie,te,I,R||k)},styles:{popup:Object.assign(Object.assign({},v.popupStyle),{zIndex:ze})},allowClear:xe,removeIcon:Ee}))))})},n=t(),r=t(k7,M7),a=t(T7,D7),o=t(F7,L7),l=t(A7,z7),c=t(RR,aE);return{DatePicker:n,WeekPicker:r,MonthPicker:a,YearPicker:o,TimePicker:c,QuarterPicker:l}},NR=e=>{const{DatePicker:t,WeekPicker:n,MonthPicker:r,YearPicker:a,TimePicker:o,QuarterPicker:l}=K7(e),c=V7(e),d=t;return d.WeekPicker=n,d.MonthPicker=r,d.YearPicker=a,d.RangePicker=c,d.TimePicker=o,d.QuarterPicker=l,d},as=NR(QB),U7=kp(as,"popupAlign",void 0,"picker");as._InternalPanelDoNotUseOrYouWillBeFired=U7;const q7=kp(as.RangePicker,"popupAlign",void 0,"picker");as._InternalRangePanelDoNotUseOrYouWillBeFired=q7;as.generatePicker=NR;function oE(e){return["small","middle","large"].includes(e)}function iE(e){return e?typeof e=="number"&&!Number.isNaN(e):!1}const jR=be.createContext({latestIndex:0}),Y7=jR.Provider,G7=e=>{let{className:t,index:n,children:r,split:a,style:o}=e;const{latestIndex:l}=i.useContext(jR);return r==null?null:i.createElement(i.Fragment,null,i.createElement("div",{className:t,style:o},r),n{var n;const{getPrefixCls:r,direction:a,size:o,className:l,style:c,classNames:d,styles:f}=wa("space"),{size:m=o??"small",align:p,className:v,rootClassName:h,children:b,direction:x="horizontal",prefixCls:y,split:C,style:w,wrap:E=!1,classNames:I,styles:_}=e,O=X7(e,["size","align","className","rootClassName","children","direction","prefixCls","split","style","wrap","classNames","styles"]),[P,j]=Array.isArray(m)?m:[m,m],R=oE(j),k=oE(P),L=iE(j),W=iE(P),B=ga(b,{keepEmpty:!0}),F=p===void 0&&x==="horizontal"?"center":p,A=r("space",y),[T,M,D]=e2(A),V=ce(A,l,M,`${A}-${x}`,{[`${A}-rtl`]:a==="rtl",[`${A}-align-${F}`]:F,[`${A}-gap-row-${j}`]:R,[`${A}-gap-col-${P}`]:k},v,h,D),K=ce(`${A}-item`,(n=I==null?void 0:I.item)!==null&&n!==void 0?n:d.item);let z=0;const U=B.map((X,te)=>{var ee;X!=null&&(z=te);const J=(X==null?void 0:X.key)||`${K}-${te}`;return i.createElement(G7,{className:K,key:J,index:te,split:C,style:(ee=_==null?void 0:_.item)!==null&&ee!==void 0?ee:f.item},X)}),Y=i.useMemo(()=>({latestIndex:z}),[z]);if(B.length===0)return null;const q={};return E&&(q.flexWrap="wrap"),!k&&W&&(q.columnGap=P),!R&&L&&(q.rowGap=j),T(i.createElement("div",Object.assign({ref:t,className:V,style:Object.assign(Object.assign(Object.assign({},q),c),w)},O),i.createElement(Y7,{value:Y},U)))}),An=Q7;An.Compact=N3;var J7=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 a=0,r=Object.getOwnPropertySymbols(e);a{const{getPopupContainer:t,getPrefixCls:n,direction:r}=i.useContext(Gt),{prefixCls:a,type:o="default",danger:l,disabled:c,loading:d,onClick:f,htmlType:m,children:p,className:v,menu:h,arrow:b,autoFocus:x,overlay:y,trigger:C,align:w,open:E,onOpenChange:I,placement:_,getPopupContainer:O,href:P,icon:j=i.createElement(Db,null),title:R,buttonsRender:k=J=>J,mouseEnterDelay:L,mouseLeaveDelay:W,overlayClassName:B,overlayStyle:F,destroyPopupOnHide:A,dropdownRender:T}=e,M=J7(e,["prefixCls","type","danger","disabled","loading","onClick","htmlType","children","className","menu","arrow","autoFocus","overlay","trigger","align","open","onOpenChange","placement","getPopupContainer","href","icon","title","buttonsRender","mouseEnterDelay","mouseLeaveDelay","overlayClassName","overlayStyle","destroyPopupOnHide","dropdownRender"]),D=n("dropdown",a),V=`${D}-button`,K={menu:h,arrow:b,autoFocus:x,align:w,disabled:c,trigger:c?[]:C,onOpenChange:I,getPopupContainer:O||t,mouseEnterDelay:L,mouseLeaveDelay:W,overlayClassName:B,overlayStyle:F,destroyPopupOnHide:A,dropdownRender:T},{compactSize:z,compactItemClassnames:U}=_i(D,r),Y=ce(V,U,v);"overlay"in e&&(K.overlay=y),"open"in e&&(K.open=E),"placement"in e?K.placement=_:K.placement=r==="rtl"?"bottomLeft":"bottomRight";const q=i.createElement(bn,{type:o,danger:l,disabled:c,loading:d,onClick:f,htmlType:m,href:P,title:R},p),X=i.createElement(bn,{type:o,danger:l,icon:j}),[te,ee]=k([q,X]);return i.createElement(An.Compact,Object.assign({className:Y,size:z,block:!0},M),te,i.createElement(Hp,Object.assign({},K),ee))};kR.__ANT_BUTTON=!0;const ax=Hp;ax.Button=kR;function Zm(e){const[t,n]=i.useState(e);return i.useEffect(()=>{const r=setTimeout(()=>{n(e)},e.length?0:10);return()=>{clearTimeout(r)}},[e]),t}const Z7=e=>{const{componentCls:t}=e,n=`${t}-show-help`,r=`${t}-show-help-item`;return{[n]:{transition:`opacity ${e.motionDurationFast} ${e.motionEaseInOut}`,"&-appear, &-enter":{opacity:0,"&-active":{opacity:1}},"&-leave":{opacity:1,"&-active":{opacity:0}},[r]:{overflow:"hidden",transition:`height ${e.motionDurationFast} ${e.motionEaseInOut}, + opacity ${e.motionDurationFast} ${e.motionEaseInOut}, + transform ${e.motionDurationFast} ${e.motionEaseInOut} !important`,[`&${r}-appear, &${r}-enter`]:{transform:"translateY(-5px)",opacity:0,"&-active":{transform:"translateY(0)",opacity:1}},[`&${r}-leave-active`]:{transform:"translateY(-5px)"}}}}},eW=e=>({legend:{display:"block",width:"100%",marginBottom:e.marginLG,padding:0,color:e.colorTextDescription,fontSize:e.fontSizeLG,lineHeight:"inherit",border:0,borderBottom:`${ne(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 ${ne(e.controlOutlineWidth)} ${e.controlOutline}`},output:{display:"block",paddingTop:15,color:e.colorText,fontSize:e.fontSize,lineHeight:e.lineHeight}}),lE=(e,t)=>{const{formItemCls:n}=e;return{[n]:{[`${n}-label > label`]:{height:t},[`${n}-control-input`]:{minHeight:t}}}},tW=e=>{const{componentCls:t}=e;return{[e.componentCls]:Object.assign(Object.assign(Object.assign({},Ln(e)),eW(e)),{[`${t}-text`]:{display:"inline-block",paddingInlineEnd:e.paddingSM},"&-small":Object.assign({},lE(e,e.controlHeightSM)),"&-large":Object.assign({},lE(e,e.controlHeightLG))})}},nW=e=>{const{formItemCls:t,iconCls:n,rootPrefixCls:r,antCls:a,labelRequiredMarkColor:o,labelColor:l,labelFontSize:c,labelHeight:d,labelColonMarginInlineStart:f,labelColonMarginInlineEnd:m,itemMarginBottom:p}=e;return{[t]:Object.assign(Object.assign({},Ln(e)),{marginBottom:p,verticalAlign:"top","&-with-help":{transition:"none"},[`&-hidden, + &-hidden${a}-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:d,color:l,fontSize:c,[`> ${n}`]:{fontSize:e.fontSize,verticalAlign:"top"},[`&${t}-required`]:{"&::before":{display:"inline-block",marginInlineEnd:e.marginXXS,color:o,fontSize:e.fontSize,fontFamily:"SimSun, sans-serif",lineHeight:1,content:'"*"'},[`&${t}-required-mark-hidden, &${t}-required-mark-optional`]:{"&::before":{display:"none"}}},[`${t}-optional`]:{display:"inline-block",marginInlineStart:e.marginXXS,color:e.colorTextDescription,[`&${t}-required-mark-hidden`]:{display:"none"}},[`${t}-tooltip`]:{color:e.colorTextDescription,cursor:"help",writingMode:"horizontal-tb",marginInlineStart:e.marginXXS},"&::after":{content:'":"',position:"relative",marginBlock:0,marginInlineStart:f,marginInlineEnd:m},[`&${t}-no-colon::after`]:{content:'"\\a0"'}}},[`${t}-control`]:{"--ant-display":"flex",flexDirection:"column",flexGrow:1,[`&:first-child:not([class^="'${r}-col-'"]):not([class*="' ${r}-col-'"])`]:{width:"100%"},"&-input":{position:"relative",display:"flex",alignItems:"center",minHeight:e.controlHeight,"&-content":{flex:"auto",maxWidth:"100%"}}},[t]:{"&-additional":{display:"flex",flexDirection:"column"},"&-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:db,animationDuration:e.motionDurationMid,animationTimingFunction:e.motionEaseOutBack,pointerEvents:"none","&-success":{color:e.colorSuccess},"&-error":{color:e.colorError},"&-warning":{color:e.colorWarning},"&-validating":{color:e.colorPrimary}}})}},sE=(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"}}}}},rW=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, + > ${n}-control`]:{display:"inline-block",verticalAlign:"top"},[`> ${n}-label`]:{flex:"none"},[`${t}-text`]:{display:"inline-block"},[`${n}-has-feedback`]:{display:"inline-block"}}}}},So=e=>({padding:e.verticalLabelPadding,margin:e.verticalLabelMargin,whiteSpace:"initial",textAlign:"start","> label":{margin:0,"&::after":{visibility:"hidden"}}}),MR=e=>{const{componentCls:t,formItemCls:n,rootPrefixCls:r}=e;return{[`${n} ${n}-label`]:So(e),[`${t}:not(${t}-inline)`]:{[n]:{flexWrap:"wrap",[`${n}-label, ${n}-control`]:{[`&:not([class*=" ${r}-col-xs"])`]:{flex:"0 0 100%",maxWidth:"100%"}}}}}},aW=e=>{const{componentCls:t,formItemCls:n,antCls:r}=e;return{[`${t}-vertical`]:{[`${n}:not(${n}-horizontal)`]:{[`${n}-row`]:{flexDirection:"column"},[`${n}-label > label`]:{height:"auto"},[`${n}-control`]:{width:"100%"},[`${n}-label, + ${r}-col-24${n}-label, + ${r}-col-xl-24${n}-label`]:So(e)}},[`@media (max-width: ${ne(e.screenXSMax)})`]:[MR(e),{[t]:{[`${n}:not(${n}-horizontal)`]:{[`${r}-col-xs-24${n}-label`]:So(e)}}}],[`@media (max-width: ${ne(e.screenSMMax)})`]:{[t]:{[`${n}:not(${n}-horizontal)`]:{[`${r}-col-sm-24${n}-label`]:So(e)}}},[`@media (max-width: ${ne(e.screenMDMax)})`]:{[t]:{[`${n}:not(${n}-horizontal)`]:{[`${r}-col-md-24${n}-label`]:So(e)}}},[`@media (max-width: ${ne(e.screenLGMax)})`]:{[t]:{[`${n}:not(${n}-horizontal)`]:{[`${r}-col-lg-24${n}-label`]:So(e)}}}}},oW=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`]:So(e),[`@media (max-width: ${ne(e.screenXSMax)})`]:[MR(e),{[t]:{[`${n}-col-xs-24${t}-label`]:So(e)}}],[`@media (max-width: ${ne(e.screenSMMax)})`]:{[t]:{[`${n}-col-sm-24${t}-label`]:So(e)}},[`@media (max-width: ${ne(e.screenMDMax)})`]:{[t]:{[`${n}-col-md-24${t}-label`]:So(e)}},[`@media (max-width: ${ne(e.screenLGMax)})`]:{[t]:{[`${n}-col-lg-24${t}-label`]:So(e)}}}},iW=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}),TR=(e,t)=>$n(e,{formItemCls:`${e.componentCls}-item`,rootPrefixCls:t}),ox=zn("Form",(e,t)=>{let{rootPrefixCls:n}=t;const r=TR(e,n);return[tW(r),nW(r),Z7(r),sE(r,r.componentCls),sE(r,r.formItemCls),rW(r),aW(r),oW(r),bp(r),db]},iW,{order:-1e3}),cE=[];function Fh(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 DR=e=>{let{help:t,helpStatus:n,errors:r=cE,warnings:a=cE,className:o,fieldId:l,onVisibleChanged:c}=e;const{prefixCls:d}=i.useContext(yb),f=`${d}-item-explain`,m=Kr(d),[p,v,h]=ox(d,m),b=i.useMemo(()=>Gu(d),[d]),x=Zm(r),y=Zm(a),C=i.useMemo(()=>t!=null?[Fh(t,"help",n)]:[].concat(Te(x.map((I,_)=>Fh(I,"error","error",_))),Te(y.map((I,_)=>Fh(I,"warning","warning",_)))),[t,n,x,y]),w=i.useMemo(()=>{const I={};return C.forEach(_=>{let{key:O}=_;I[O]=(I[O]||0)+1}),C.map((_,O)=>Object.assign(Object.assign({},_),{key:I[_.key]>1?`${_.key}-fallback-${O}`:_.key}))},[C]),E={};return l&&(E.id=`${l}_help`),p(i.createElement(ko,{motionDeadline:b.motionDeadline,motionName:`${d}-show-help`,visible:!!w.length,onVisibleChanged:c},I=>{const{className:_,style:O}=I;return i.createElement("div",Object.assign({},E,{className:ce(f,_,h,m,o,v),style:O}),i.createElement(ib,Object.assign({keys:w},Gu(d),{motionName:`${d}-show-help-item`,component:!1}),P=>{const{key:j,error:R,errorStatus:k,className:L,style:W}=P;return i.createElement("div",{key:j,className:ce(L,{[`${f}-${k}`]:k}),style:W},R)}))}))},lW=["parentNode"],sW="form_item";function ju(e){return e===void 0||e===!1?[]:Array.isArray(e)?e:[e]}function FR(e,t){if(!e.length)return;const n=e.join("_");return t?`${t}_${n}`:lW.includes(n)?`${sW}_${n}`:n}function LR(e,t,n,r,a,o){let l=r;return o!==void 0?l=o:n.validating?l="validating":e.length?l="error":t.length?l="warning":(n.touched||a&&n.validated)&&(l="success"),l}var cW=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 a=0,r=Object.getOwnPropertySymbols(e);ae??Object.assign(Object.assign({},t),{__INTERNAL__:{itemRef:a=>o=>{const l=uE(a);o?n.current[l]=o:delete n.current[l]}},scrollToField:function(a){let o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};const{focus:l}=o,c=cW(o,["focus"]),d=dE(a,r);d&&(P4(d,Object.assign({scrollMode:"if-needed",block:"nearest"},c)),l&&r.focusField(a))},focusField:a=>{var o,l;const c=r.getFieldInstance(a);typeof(c==null?void 0:c.focus)=="function"?c.focus():(l=(o=dE(a,r))===null||o===void 0?void 0:o.focus)===null||l===void 0||l.call(o)},getFieldInstance:a=>{const o=uE(a);return n.current[o]}}),[e,t]);return[r]}var uW=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 a=0,r=Object.getOwnPropertySymbols(e);a{const n=i.useContext(ha),{getPrefixCls:r,direction:a,requiredMark:o,colon:l,scrollToFirstError:c,className:d,style:f}=wa("form"),{prefixCls:m,className:p,rootClassName:v,size:h,disabled:b=n,form:x,colon:y,labelAlign:C,labelWrap:w,labelCol:E,wrapperCol:I,hideRequiredMark:_,layout:O="horizontal",scrollToFirstError:P,requiredMark:j,onFinishFailed:R,name:k,style:L,feedbackIcons:W,variant:B}=e,F=uW(e,["prefixCls","className","rootClassName","size","disabled","form","colon","labelAlign","labelWrap","labelCol","wrapperCol","hideRequiredMark","layout","scrollToFirstError","requiredMark","onFinishFailed","name","style","feedbackIcons","variant"]),A=Zr(h),T=i.useContext(uI),M=i.useMemo(()=>j!==void 0?j:_?!1:o!==void 0?o:!0,[_,j,o]),D=y??l,V=r("form",m),K=Kr(V),[z,U,Y]=ox(V,K),q=ce(V,`${V}-${O}`,{[`${V}-hide-required-mark`]:M===!1,[`${V}-rtl`]:a==="rtl",[`${V}-${A}`]:A},Y,K,U,d,p,v),[X]=AR(x),{__INTERNAL__:te}=X;te.name=k;const ee=i.useMemo(()=>({name:k,labelAlign:C,labelCol:E,labelWrap:w,wrapperCol:I,vertical:O==="vertical",colon:D,requiredMark:M,itemRef:te.itemRef,form:X,feedbackIcons:W}),[k,C,E,I,O,D,M,X,W]),J=i.useRef(null);i.useImperativeHandle(t,()=>{var oe;return Object.assign(Object.assign({},X),{nativeElement:(oe=J.current)===null||oe===void 0?void 0:oe.nativeElement})});const ie=(oe,le)=>{if(oe){let ae={block:"nearest"};typeof oe=="object"&&(ae=Object.assign(Object.assign({},ae),oe)),X.scrollToField(le,ae)}},de=oe=>{if(R==null||R(oe),oe.errorFields.length){const le=oe.errorFields[0].name;if(P!==void 0){ie(P,le);return}c!==void 0&&ie(c,le)}};return z(i.createElement(y2.Provider,{value:B},i.createElement(yI,{disabled:b},i.createElement(Wl.Provider,{value:A},i.createElement(h2,{validateMessages:T},i.createElement(Ci.Provider,{value:ee},i.createElement(mc,Object.assign({id:k},F,{name:k,onFinishFailed:de,form:X,ref:J,style:Object.assign(Object.assign({},f),L),className:q}))))))))},fW=i.forwardRef(dW);function mW(e){if(typeof e=="function")return e;const t=ga(e);return t.length<=1?t[0]:t}const zR=()=>{const{status:e,errors:t=[],warnings:n=[]}=i.useContext(Qr);return{status:e,errors:t,warnings:n}};zR.Context=Qr;function pW(e){const[t,n]=i.useState(e),r=i.useRef(null),a=i.useRef([]),o=i.useRef(!1);i.useEffect(()=>(o.current=!1,()=>{o.current=!0,mn.cancel(r.current),r.current=null}),[]);function l(c){o.current||(r.current===null&&(a.current=[],r.current=mn(()=>{r.current=null,n(d=>{let f=d;return a.current.forEach(m=>{f=m(f)}),f})})),a.current.push(c))}return[t,l]}function vW(){const{itemRef:e}=i.useContext(Ci),t=i.useRef({});function n(r,a){const o=a&&typeof a=="object"&&fl(a),l=r.join("_");return(t.current.name!==l||t.current.originRef!==o)&&(t.current.name=l,t.current.originRef=o,t.current.ref=ya(e(r),o)),t.current.ref}return n}const gW=e=>{const{formItemCls:t}=e;return{"@media screen and (-ms-high-contrast: active), (-ms-high-contrast: none)":{[`${t}-control`]:{display:"flex"}}}},hW=pd(["Form","item-item"],(e,t)=>{let{rootPrefixCls:n}=t;const r=TR(e,n);return[gW(r)]});var yW=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 a=0,r=Object.getOwnPropertySymbols(e);a{const{prefixCls:t,status:n,labelCol:r,wrapperCol:a,children:o,errors:l,warnings:c,_internalItemRender:d,extra:f,help:m,fieldId:p,marginBottom:v,onErrorVisibleChanged:h,label:b}=e,x=`${t}-item`,y=i.useContext(Ci),C=i.useMemo(()=>{let F=Object.assign({},a||y.wrapperCol||{});return b===null&&!r&&!a&&y.labelCol&&[void 0,"xs","sm","md","lg","xl","xxl"].forEach(T=>{const M=T?[T]:[],D=Ca(y.labelCol,M),V=typeof D=="object"?D:{},K=Ca(F,M),z=typeof K=="object"?K:{};"span"in V&&!("offset"in z)&&V.span{const{labelCol:F,wrapperCol:A}=y;return yW(y,["labelCol","wrapperCol"])},[y]),I=i.useRef(null),[_,O]=i.useState(0);hn(()=>{f&&I.current?O(I.current.clientHeight):O(0)},[f]);const P=i.createElement("div",{className:`${x}-control-input`},i.createElement("div",{className:`${x}-control-input-content`},o)),j=i.useMemo(()=>({prefixCls:t,status:n}),[t,n]),R=v!==null||l.length||c.length?i.createElement(yb.Provider,{value:j},i.createElement(DR,{fieldId:p,errors:l,warnings:c,help:m,helpStatus:n,className:`${x}-explain-connected`,onVisibleChanged:h})):null,k={};p&&(k.id=`${p}_extra`);const L=f?i.createElement("div",Object.assign({},k,{className:`${x}-extra`,ref:I}),f):null,W=R||L?i.createElement("div",{className:`${x}-additional`,style:v?{minHeight:v+_}:{}},R,L):null,B=d&&d.mark==="pro_table_render"&&d.render?d.render(e,{input:P,errorList:R,extra:L}):i.createElement(i.Fragment,null,P,W);return i.createElement(Ci.Provider,{value:E},i.createElement(Jb,Object.assign({},C,{className:w}),B),i.createElement(hW,{prefixCls:t}))};var SW={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"},CW=function(t,n){return i.createElement(pn,Pe({},t,{ref:n,icon:SW}))},wW=i.forwardRef(CW),$W=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 a=0,r=Object.getOwnPropertySymbols(e);a{let{prefixCls:t,label:n,htmlFor:r,labelCol:a,labelAlign:o,colon:l,required:c,requiredMark:d,tooltip:f,vertical:m}=e;var p;const[v]=$i("Form"),{labelAlign:h,labelCol:b,labelWrap:x,colon:y}=i.useContext(Ci);if(!n)return null;const C=a||b||{},w=o||h,E=`${t}-item-label`,I=ce(E,w==="left"&&`${E}-left`,C.className,{[`${E}-wrap`]:!!x});let _=n;const O=l===!0||y!==!1&&l!==!1;O&&!m&&typeof n=="string"&&n.trim()&&(_=n.replace(/[:|:]\s*$/,""));const j=EW(f);if(j){const{icon:F=i.createElement(wW,null)}=j,A=$W(j,["icon"]),T=i.createElement(io,Object.assign({},A),i.cloneElement(F,{className:`${t}-item-tooltip`,title:"",onClick:M=>{M.preventDefault()},tabIndex:null}));_=i.createElement(i.Fragment,null,_,T)}const R=d==="optional",k=typeof d=="function",L=d===!1;k?_=d(_,{required:!!c}):R&&!c&&(_=i.createElement(i.Fragment,null,_,i.createElement("span",{className:`${t}-item-optional`,title:""},(v==null?void 0:v.optional)||((p=bi.Form)===null||p===void 0?void 0:p.optional))));let W;L?W="hidden":(R||k)&&(W="optional");const B=ce({[`${t}-item-required`]:c,[`${t}-item-required-mark-${W}`]:W,[`${t}-item-no-colon`]:!O});return i.createElement(Jb,Object.assign({},C,{className:I}),i.createElement("label",{htmlFor:r,className:B,title:typeof n=="string"?n:""},_))},IW={success:lb,warning:WI,error:vd,validating:Si};function BR(e){let{children:t,errors:n,warnings:r,hasFeedback:a,validateStatus:o,prefixCls:l,meta:c,noStyle:d}=e;const f=`${l}-item`,{feedbackIcons:m}=i.useContext(Ci),p=LR(n,r,c,null,!!a,o),{isFormItemInput:v,status:h,hasFeedback:b,feedbackIcon:x}=i.useContext(Qr),y=i.useMemo(()=>{var C;let w;if(a){const I=a!==!0&&a.icons||m,_=p&&((C=I==null?void 0:I({status:p,errors:n,warnings:r}))===null||C===void 0?void 0:C[p]),O=p&&IW[p];w=_!==!1&&O?i.createElement("span",{className:ce(`${f}-feedback-icon`,`${f}-feedback-icon-${p}`)},_||i.createElement(O,null)):null}const E={status:p||"",errors:n,warnings:r,hasFeedback:!!a,feedbackIcon:w,isFormItemInput:!0};return d&&(E.status=(p??h)||"",E.isFormItemInput=v,E.hasFeedback=!!(a??b),E.feedbackIcon=a!==void 0?E.feedbackIcon:x),E},[p,a,d,v,h]);return i.createElement(Qr.Provider,{value:y},t)}var OW=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 a=0,r=Object.getOwnPropertySymbols(e);a{if(L&&P.current){const V=getComputedStyle(P.current);F(parseInt(V.marginBottom,10))}},[L,W]);const A=V=>{V||F(null)},M=function(){let V=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1;const K=V?j:f.errors,z=V?R:f.warnings;return LR(K,z,f,"",!!m,d)}(),D=ce(E,n,r,{[`${E}-with-help`]:k||j.length||R.length,[`${E}-has-feedback`]:M&&m,[`${E}-has-success`]:M==="success",[`${E}-has-warning`]:M==="warning",[`${E}-has-error`]:M==="error",[`${E}-is-validating`]:M==="validating",[`${E}-hidden`]:p,[`${E}-${C}`]:C});return i.createElement("div",{className:D,style:a,ref:P},i.createElement(xR,Object.assign({className:`${E}-row`},Qn(w,["_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"])),i.createElement(_W,Object.assign({htmlFor:h},e,{requiredMark:I,required:b??x,prefixCls:t,vertical:O})),i.createElement(xW,Object.assign({},e,f,{errors:j,warnings:R,prefixCls:t,status:M,help:o,marginBottom:B,onErrorVisibleChanged:A}),i.createElement(g2.Provider,{value:y},i.createElement(BR,{prefixCls:t,meta:f,errors:f.errors,warnings:f.warnings,hasFeedback:m,validateStatus:M},v)))),!!B&&i.createElement("div",{className:`${E}-margin-offset`,style:{marginBottom:-B}}))}const PW="__SPLIT__";function NW(e,t){const n=Object.keys(e),r=Object.keys(t);return n.length===r.length&&n.every(a=>{const o=e[a],l=t[a];return o===l||typeof o=="function"||typeof l=="function"})}const jW=i.memo(e=>{let{children:t}=e;return t},(e,t)=>NW(e.control,t.control)&&e.update===t.update&&e.childProps.length===t.childProps.length&&e.childProps.every((n,r)=>n===t.childProps[r]));function fE(){return{errors:[],warnings:[],touched:!1,validating:!1,name:[],validated:!1}}function kW(e){const{name:t,noStyle:n,className:r,dependencies:a,prefixCls:o,shouldUpdate:l,rules:c,children:d,required:f,label:m,messageVariables:p,trigger:v="onChange",validateTrigger:h,hidden:b,help:x,layout:y}=e,{getPrefixCls:C}=i.useContext(Gt),{name:w}=i.useContext(Ci),E=mW(d),I=typeof E=="function",_=i.useContext(g2),{validateTrigger:O}=i.useContext(Ul),P=h!==void 0?h:O,j=t!=null,R=C("form",o),k=Kr(R),[L,W,B]=ox(R,k);ml();const F=i.useContext(Ju),A=i.useRef(null),[T,M]=pW({}),[D,V]=oc(()=>fE()),K=ee=>{const J=F==null?void 0:F.getKey(ee.name);if(V(ee.destroy?fE():ee,!0),n&&x!==!1&&_){let ie=ee.name;if(ee.destroy)ie=A.current||ie;else if(J!==void 0){const[de,oe]=J;ie=[de].concat(Te(oe)),A.current=ie}_(ee,ie)}},z=(ee,J)=>{M(ie=>{const de=Object.assign({},ie),le=[].concat(Te(ee.name.slice(0,-1)),Te(J)).join(PW);return ee.destroy?delete de[le]:de[le]=ee,de})},[U,Y]=i.useMemo(()=>{const ee=Te(D.errors),J=Te(D.warnings);return Object.values(T).forEach(ie=>{ee.push.apply(ee,Te(ie.errors||[])),J.push.apply(J,Te(ie.warnings||[]))}),[ee,J]},[T,D.errors,D.warnings]),q=vW();function X(ee,J,ie){return n&&!b?i.createElement(BR,{prefixCls:R,hasFeedback:e.hasFeedback,validateStatus:e.validateStatus,meta:D,errors:U,warnings:Y,noStyle:!0},ee):i.createElement(RW,Object.assign({key:"row"},e,{className:ce(r,B,k,W),prefixCls:R,fieldId:J,isRequired:ie,errors:U,warnings:Y,meta:D,onSubItemMetaChange:z,layout:y}),ee)}if(!j&&!I&&!a)return L(X(E));let te={};return typeof m=="string"?te.label=m:t&&(te.label=String(t)),p&&(te=Object.assign(Object.assign({},te),p)),L(i.createElement(gb,Object.assign({},e,{messageVariables:te,trigger:v,validateTrigger:P,onMetaChange:K}),(ee,J,ie)=>{const de=ju(t).length&&J?J.name:[],oe=FR(de,w),le=f!==void 0?f:!!(c!=null&&c.some(pe=>{if(pe&&typeof pe=="object"&&pe.required&&!pe.warningOnly)return!0;if(typeof pe=="function"){const fe=pe(ie);return(fe==null?void 0:fe.required)&&!(fe!=null&&fe.warningOnly)}return!1})),ae=Object.assign({},ee);let ue=null;if(Array.isArray(E)&&j)ue=E;else if(!(I&&(!(l||a)||j))){if(!(a&&!I&&!j))if(i.isValidElement(E)){const pe=Object.assign(Object.assign({},E.props),ae);if(pe.id||(pe.id=oe),x||U.length>0||Y.length>0||e.extra){const Ee=[];(x||U.length>0)&&Ee.push(`${oe}_help`),e.extra&&Ee.push(`${oe}_extra`),pe["aria-describedby"]=Ee.join(" ")}U.length>0&&(pe["aria-invalid"]="true"),le&&(pe["aria-required"]="true"),Io(E)&&(pe.ref=q(de,E)),new Set([].concat(Te(ju(v)),Te(ju(P)))).forEach(Ee=>{pe[Ee]=function(){for(var Le,Ne,ge,we,Se,Re=arguments.length,De=new Array(Re),Me=0;Me{var{prefixCls:t,children:n}=e,r=MW(e,["prefixCls","children"]);const{getPrefixCls:a}=i.useContext(Gt),o=a("form",t),l=i.useMemo(()=>({prefixCls:o,status:"error"}),[o]);return i.createElement(f2,Object.assign({},r),(c,d,f)=>i.createElement(yb.Provider,{value:l},n(c.map(m=>Object.assign(Object.assign({},m),{fieldKey:m.key})),d,{errors:f.errors,warnings:f.warnings})))};function DW(){const{form:e}=i.useContext(Ci);return e}const me=fW;me.Item=HR;me.List=TW;me.ErrorList=DR;me.useForm=AR;me.useFormInstance=DW;me.useWatch=v2;me.Provider=h2;me.create=()=>{};var FW={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M942.2 486.2C847.4 286.5 704.1 186 512 186c-192.2 0-335.4 100.5-430.2 300.3a60.3 60.3 0 000 51.5C176.6 737.5 319.9 838 512 838c192.2 0 335.4-100.5 430.2-300.3 7.7-16.2 7.7-35 0-51.5zM512 766c-161.3 0-279.4-81.8-362.7-254C232.6 339.8 350.7 258 512 258c161.3 0 279.4 81.8 362.7 254C791.5 684.2 673.4 766 512 766zm-4-430c-97.2 0-176 78.8-176 176s78.8 176 176 176 176-78.8 176-176-78.8-176-176-176zm0 288c-61.9 0-112-50.1-112-112s50.1-112 112-112 112 50.1 112 112-50.1 112-112 112z"}}]},name:"eye",theme:"outlined"},LW=function(t,n){return i.createElement(pn,Pe({},t,{ref:n,icon:FW}))},VR=i.forwardRef(LW);function mE(e,t,n,r){var a=Fu.unstable_batchedUpdates?function(l){Fu.unstable_batchedUpdates(n,l)}:n;return e!=null&&e.addEventListener&&e.addEventListener(t,a,r),{remove:function(){e!=null&&e.removeEventListener&&e.removeEventListener(t,a,r)}}}const AW=e=>{const{getPrefixCls:t,direction:n}=i.useContext(Gt),{prefixCls:r,className:a}=e,o=t("input-group",r),l=t("input"),[c,d,f]=aR(l),m=ce(o,f,{[`${o}-lg`]:e.size==="large",[`${o}-sm`]:e.size==="small",[`${o}-compact`]:e.compact,[`${o}-rtl`]:n==="rtl"},d,a),p=i.useContext(Qr),v=i.useMemo(()=>Object.assign(Object.assign({},p),{isFormItemInput:!1}),[p]);return c(i.createElement("span",{className:m,style:e.style,onMouseEnter:e.onMouseEnter,onMouseLeave:e.onMouseLeave,onFocus:e.onFocus,onBlur:e.onBlur},i.createElement(Qr.Provider,{value:v},e.children)))},zW=e=>{const{componentCls:t,paddingXS:n}=e;return{[t]:{display:"inline-flex",alignItems:"center",flexWrap:"nowrap",columnGap:n,"&-rtl":{direction:"rtl"},[`${t}-input`]:{textAlign:"center",paddingInline:e.paddingXXS},[`&${t}-sm ${t}-input`]:{paddingInline:e.calc(e.paddingXXS).div(2).equal()},[`&${t}-lg ${t}-input`]:{paddingInline:e.paddingXS}}}},BW=zn(["Input","OTP"],e=>{const t=$n(e,ns(e));return[zW(t)]},rs);var HW=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 a=0,r=Object.getOwnPropertySymbols(e);a{const{value:n,onChange:r,onActiveChange:a,index:o,mask:l}=e,c=HW(e,["value","onChange","onActiveChange","index","mask"]),d=n&&typeof l=="string"?l:n,f=b=>{r(o,b.target.value)},m=i.useRef(null);i.useImperativeHandle(t,()=>m.current);const p=()=>{mn(()=>{var b;const x=(b=m.current)===null||b===void 0?void 0:b.input;document.activeElement===x&&x&&x.select()})},v=b=>{const{key:x,ctrlKey:y,metaKey:C}=b;x==="ArrowLeft"?a(o-1):x==="ArrowRight"?a(o+1):x==="z"&&(y||C)&&b.preventDefault(),p()},h=b=>{b.key==="Backspace"&&!n&&a(o-1),p()};return i.createElement(Id,Object.assign({type:l===!0?"password":"text"},c,{ref:m,value:d,onInput:f,onFocus:p,onKeyDown:v,onKeyUp:h,onMouseDown:p,onMouseUp:p}))});var WW=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 a=0,r=Object.getOwnPropertySymbols(e);a{const{index:t,prefixCls:n,separator:r}=e,a=typeof r=="function"?r(t):r;return a?i.createElement("span",{className:`${n}-separator`},a):null},UW=i.forwardRef((e,t)=>{const{prefixCls:n,length:r=6,size:a,defaultValue:o,value:l,onChange:c,formatter:d,separator:f,variant:m,disabled:p,status:v,autoFocus:h,mask:b,type:x,onInput:y,inputMode:C}=e,w=WW(e,["prefixCls","length","size","defaultValue","value","onChange","formatter","separator","variant","disabled","status","autoFocus","mask","type","onInput","inputMode"]),{getPrefixCls:E,direction:I}=i.useContext(Gt),_=E("otp",n),O=oa(w,{aria:!0,data:!0,attr:!0}),[P,j,R]=BW(_),k=Zr(q=>a??q),L=i.useContext(Qr),W=Ql(L.status,v),B=i.useMemo(()=>Object.assign(Object.assign({},L),{status:W,hasFeedback:!1,feedbackIcon:null}),[L,W]),F=i.useRef(null),A=i.useRef({});i.useImperativeHandle(t,()=>({focus:()=>{var q;(q=A.current[0])===null||q===void 0||q.focus()},blur:()=>{var q;for(let X=0;Xd?d(q):q,[M,D]=i.useState(()=>nm(T(o||"")));i.useEffect(()=>{l!==void 0&&D(nm(l))},[l]);const V=wn(q=>{D(q),y&&y(q),c&&q.length===r&&q.every(X=>X)&&q.some((X,te)=>M[te]!==X)&&c(q.join(""))}),K=wn((q,X)=>{let te=Te(M);for(let J=0;J=0&&!te[J];J-=1)te.pop();const ee=T(te.map(J=>J||" ").join(""));return te=nm(ee).map((J,ie)=>J===" "&&!te[ie]?te[ie]:J),te}),z=(q,X)=>{var te;const ee=K(q,X),J=Math.min(q+X.length,r-1);J!==q&&ee[q]!==void 0&&((te=A.current[J])===null||te===void 0||te.focus()),V(ee)},U=q=>{var X;(X=A.current[q])===null||X===void 0||X.focus()},Y={variant:m,disabled:p,status:W,mask:b,type:x,inputMode:C};return P(i.createElement("div",Object.assign({},O,{ref:F,className:ce(_,{[`${_}-sm`]:k==="small",[`${_}-lg`]:k==="large",[`${_}-rtl`]:I==="rtl"},R,j)}),i.createElement(Qr.Provider,{value:B},Array.from({length:r}).map((q,X)=>{const te=`otp-${X}`,ee=M[X]||"";return i.createElement(i.Fragment,{key:te},i.createElement(VW,Object.assign({ref:J=>{A.current[X]=J},index:X,size:k,htmlSize:1,className:`${_}-input`,onChange:z,value:ee,onActiveChange:U,autoFocus:X===0&&h},Y)),Xe?i.createElement(VR,null):i.createElement(GW,null),JW={click:"onClick",hover:"onMouseOver"},ZW=i.forwardRef((e,t)=>{const{disabled:n,action:r="click",visibilityToggle:a=!0,iconRender:o=QW}=e,l=i.useContext(ha),c=n??l,d=typeof a=="object"&&a.visible!==void 0,[f,m]=i.useState(()=>d?a.visible:!1),p=i.useRef(null);i.useEffect(()=>{d&&m(a.visible)},[d,a]);const v=ER(p),h=()=>{var k;if(c)return;f&&v();const L=!f;m(L),typeof a=="object"&&((k=a.onVisibleChange)===null||k===void 0||k.call(a,L))},b=k=>{const L=JW[r]||"",W=o(f),B={[L]:h,className:`${k}-icon`,key:"passwordIcon",onMouseDown:F=>{F.preventDefault()},onMouseUp:F=>{F.preventDefault()}};return i.cloneElement(i.isValidElement(W)?W:i.createElement("span",null,W),B)},{className:x,prefixCls:y,inputPrefixCls:C,size:w}=e,E=XW(e,["className","prefixCls","inputPrefixCls","size"]),{getPrefixCls:I}=i.useContext(Gt),_=I("input",C),O=I("input-password",y),P=a&&b(O),j=ce(O,x,{[`${O}-${w}`]:!!w}),R=Object.assign(Object.assign({},Qn(E,["suffix","iconRender","visibilityToggle"])),{type:f?"text":"password",className:j,prefixCls:_,suffix:P});return w&&(R.size=w),i.createElement(Id,Object.assign({ref:ya(t,p)},R))});var e9=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 a=0,r=Object.getOwnPropertySymbols(e);a{const{prefixCls:n,inputPrefixCls:r,className:a,size:o,suffix:l,enterButton:c=!1,addonAfter:d,loading:f,disabled:m,onSearch:p,onChange:v,onCompositionStart:h,onCompositionEnd:b}=e,x=e9(e,["prefixCls","inputPrefixCls","className","size","suffix","enterButton","addonAfter","loading","disabled","onSearch","onChange","onCompositionStart","onCompositionEnd"]),{getPrefixCls:y,direction:C}=i.useContext(Gt),w=i.useRef(!1),E=y("input-search",n),I=y("input",r),{compactSize:_}=_i(E,C),O=Zr(z=>{var U;return(U=o??_)!==null&&U!==void 0?U:z}),P=i.useRef(null),j=z=>{z!=null&&z.target&&z.type==="click"&&p&&p(z.target.value,z,{source:"clear"}),v==null||v(z)},R=z=>{var U;document.activeElement===((U=P.current)===null||U===void 0?void 0:U.input)&&z.preventDefault()},k=z=>{var U,Y;p&&p((Y=(U=P.current)===null||U===void 0?void 0:U.input)===null||Y===void 0?void 0:Y.value,z,{source:"input"})},L=z=>{w.current||f||k(z)},W=typeof c=="boolean"?i.createElement(Fp,null):null,B=`${E}-button`;let F;const A=c||{},T=A.type&&A.type.__ANT_BUTTON===!0;T||A.type==="button"?F=ia(A,Object.assign({onMouseDown:R,onClick:z=>{var U,Y;(Y=(U=A==null?void 0:A.props)===null||U===void 0?void 0:U.onClick)===null||Y===void 0||Y.call(U,z),k(z)},key:"enterButton"},T?{className:B,size:O}:{})):F=i.createElement(bn,{className:B,type:c?"primary":void 0,size:O,disabled:m,key:"enterButton",onMouseDown:R,onClick:k,loading:f,icon:W},c),d&&(F=[F,ia(d,{key:"addonAfter"})]);const M=ce(E,{[`${E}-rtl`]:C==="rtl",[`${E}-${O}`]:!!O,[`${E}-with-button`]:!!c},a),D=Object.assign(Object.assign({},x),{className:M,prefixCls:I,type:"search"}),V=z=>{w.current=!0,h==null||h(z)},K=z=>{w.current=!1,b==null||b(z)};return i.createElement(Id,Object.assign({ref:ya(P,t),onPressEnter:L},D,{size:O,onCompositionStart:V,onCompositionEnd:K,addonAfter:F,suffix:l,onChange:j,disabled:m}))});var n9=` + min-height:0 !important; + max-height:none !important; + height:0 !important; + visibility:hidden !important; + overflow:hidden !important; + position:absolute !important; + z-index:-1000 !important; + top:0 !important; + right:0 !important; + pointer-events: none !important; +`,r9=["letter-spacing","line-height","padding-top","padding-bottom","font-family","font-weight","font-size","font-variant","text-rendering","text-transform","width","text-indent","padding-left","padding-right","border-width","box-sizing","word-break","white-space"],Lh={},Ba;function a9(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,n=e.getAttribute("id")||e.getAttribute("data-reactid")||e.getAttribute("name");if(t&&Lh[n])return Lh[n];var r=window.getComputedStyle(e),a=r.getPropertyValue("box-sizing")||r.getPropertyValue("-moz-box-sizing")||r.getPropertyValue("-webkit-box-sizing"),o=parseFloat(r.getPropertyValue("padding-bottom"))+parseFloat(r.getPropertyValue("padding-top")),l=parseFloat(r.getPropertyValue("border-bottom-width"))+parseFloat(r.getPropertyValue("border-top-width")),c=r9.map(function(f){return"".concat(f,":").concat(r.getPropertyValue(f))}).join(";"),d={sizingStyle:c,paddingSize:o,borderSize:l,boxSizing:a};return t&&n&&(Lh[n]=d),d}function o9(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:null,r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:null;Ba||(Ba=document.createElement("textarea"),Ba.setAttribute("tab-index","-1"),Ba.setAttribute("aria-hidden","true"),Ba.setAttribute("name","hiddenTextarea"),document.body.appendChild(Ba)),e.getAttribute("wrap")?Ba.setAttribute("wrap",e.getAttribute("wrap")):Ba.removeAttribute("wrap");var a=a9(e,t),o=a.paddingSize,l=a.borderSize,c=a.boxSizing,d=a.sizingStyle;Ba.setAttribute("style","".concat(d,";").concat(n9)),Ba.value=e.value||e.placeholder||"";var f=void 0,m=void 0,p,v=Ba.scrollHeight;if(c==="border-box"?v+=l:c==="content-box"&&(v-=o),n!==null||r!==null){Ba.value=" ";var h=Ba.scrollHeight-o;n!==null&&(f=h*n,c==="border-box"&&(f=f+o+l),v=Math.max(f,v)),r!==null&&(m=h*r,c==="border-box"&&(m=m+o+l),p=v>m?"":"hidden",v=Math.min(m,v))}var b={height:v,overflowY:p,resize:"none"};return f&&(b.minHeight=f),m&&(b.maxHeight=m),b}var i9=["prefixCls","defaultValue","value","autoSize","onResize","className","style","disabled","onChange","onInternalAutoSize"],Ah=0,zh=1,Bh=2,l9=i.forwardRef(function(e,t){var n=e,r=n.prefixCls,a=n.defaultValue,o=n.value,l=n.autoSize,c=n.onResize,d=n.className,f=n.style,m=n.disabled,p=n.onChange;n.onInternalAutoSize;var v=Kt(n,i9),h=Hn(a,{value:o,postState:function(q){return q??""}}),b=se(h,2),x=b[0],y=b[1],C=function(q){y(q.target.value),p==null||p(q)},w=i.useRef();i.useImperativeHandle(t,function(){return{textArea:w.current}});var E=i.useMemo(function(){return l&&wt(l)==="object"?[l.minRows,l.maxRows]:[]},[l]),I=se(E,2),_=I[0],O=I[1],P=!!l,j=function(){try{if(document.activeElement===w.current){var q=w.current,X=q.selectionStart,te=q.selectionEnd,ee=q.scrollTop;w.current.setSelectionRange(X,te),w.current.scrollTop=ee}}catch{}},R=i.useState(Bh),k=se(R,2),L=k[0],W=k[1],B=i.useState(),F=se(B,2),A=F[0],T=F[1],M=function(){W(Ah)};hn(function(){P&&M()},[o,_,O,P]),hn(function(){if(L===Ah)W(zh);else if(L===zh){var Y=o9(w.current,!1,_,O);W(Bh),T(Y)}else j()},[L]);var D=i.useRef(),V=function(){mn.cancel(D.current)},K=function(q){L===Bh&&(c==null||c(q),l&&(V(),D.current=mn(function(){M()})))};i.useEffect(function(){return V},[]);var z=P?A:null,U=Z(Z({},f),z);return(L===Ah||L===zh)&&(U.overflowY="hidden",U.overflowX="hidden"),i.createElement(ra,{onResize:K,disabled:!(l||c)},i.createElement("textarea",Pe({},v,{ref:w,style:U,className:ce(r,d,G({},"".concat(r,"-disabled"),m)),disabled:m,value:x,onChange:C})))}),s9=["defaultValue","value","onFocus","onBlur","onChange","allowClear","maxLength","onCompositionStart","onCompositionEnd","suffix","prefixCls","showCount","count","className","style","disabled","hidden","classNames","styles","onResize","onClear","onPressEnter","readOnly","autoSize","onKeyDown"],c9=be.forwardRef(function(e,t){var n,r=e.defaultValue,a=e.value,o=e.onFocus,l=e.onBlur,c=e.onChange,d=e.allowClear,f=e.maxLength,m=e.onCompositionStart,p=e.onCompositionEnd,v=e.suffix,h=e.prefixCls,b=h===void 0?"rc-textarea":h,x=e.showCount,y=e.count,C=e.className,w=e.style,E=e.disabled,I=e.hidden,_=e.classNames,O=e.styles,P=e.onResize,j=e.onClear,R=e.onPressEnter,k=e.readOnly,L=e.autoSize,W=e.onKeyDown,B=Kt(e,s9),F=Hn(r,{value:a,defaultValue:r}),A=se(F,2),T=A[0],M=A[1],D=T==null?"":String(T),V=be.useState(!1),K=se(V,2),z=K[0],U=K[1],Y=be.useRef(!1),q=be.useState(null),X=se(q,2),te=X[0],ee=X[1],J=i.useRef(null),ie=i.useRef(null),de=function(){var ye;return(ye=ie.current)===null||ye===void 0?void 0:ye.textArea},oe=function(){de().focus()};i.useImperativeHandle(t,function(){var Ve;return{resizableTextArea:ie.current,focus:oe,blur:function(){de().blur()},nativeElement:((Ve=J.current)===null||Ve===void 0?void 0:Ve.nativeElement)||de()}}),i.useEffect(function(){U(function(Ve){return!E&&Ve})},[E]);var le=be.useState(null),ae=se(le,2),ue=ae[0],pe=ae[1];be.useEffect(function(){if(ue){var Ve;(Ve=de()).setSelectionRange.apply(Ve,Te(ue))}},[ue]);var fe=CR(y,x),xe=(n=fe.max)!==null&&n!==void 0?n:f,Ee=Number(xe)>0,Le=fe.strategy(D),Ne=!!xe&&Le>xe,ge=function(ye,Ce){var _e=Ce;!Y.current&&fe.exceedFormatter&&fe.max&&fe.strategy(Ce)>fe.max&&(_e=fe.exceedFormatter(Ce,{max:fe.max}),Ce!==_e&&pe([de().selectionStart||0,de().selectionEnd||0])),M(_e),Jm(ye.currentTarget,ye,c,_e)},we=function(ye){Y.current=!0,m==null||m(ye)},Se=function(ye){Y.current=!1,ge(ye,ye.currentTarget.value),p==null||p(ye)},Re=function(ye){ge(ye,ye.target.value)},De=function(ye){ye.key==="Enter"&&R&&R(ye),W==null||W(ye)},Me=function(ye){U(!0),o==null||o(ye)},Ye=function(ye){U(!1),l==null||l(ye)},qe=function(ye){M(""),oe(),Jm(de(),ye,c)},He=v,ze;fe.show&&(fe.showFormatter?ze=fe.showFormatter({value:D,count:Le,maxLength:xe}):ze="".concat(Le).concat(Ee?" / ".concat(xe):""),He=be.createElement(be.Fragment,null,He,be.createElement("span",{className:ce("".concat(b,"-data-count"),_==null?void 0:_.count),style:O==null?void 0:O.count},ze)));var Ae=function(ye){var Ce;P==null||P(ye),(Ce=de())!==null&&Ce!==void 0&&Ce.style.height&&ee(!0)},Ie=!L&&!x&&!d;return be.createElement(nx,{ref:J,value:D,allowClear:d,handleReset:qe,suffix:He,prefixCls:b,classNames:Z(Z({},_),{},{affixWrapper:ce(_==null?void 0:_.affixWrapper,G(G({},"".concat(b,"-show-count"),x),"".concat(b,"-textarea-allow-clear"),d))}),disabled:E,focused:z,className:ce(C,Ne&&"".concat(b,"-out-of-range")),style:Z(Z({},w),te&&!Ie?{height:"auto"}:{}),dataAttrs:{affixWrapper:{"data-count":typeof ze=="string"?ze:void 0}},hidden:I,readOnly:k,onClear:j},be.createElement(l9,Pe({},B,{autoSize:L,maxLength:f,onKeyDown:De,onChange:Re,onFocus:Me,onBlur:Ye,onCompositionStart:we,onCompositionEnd:Se,className:ce(_==null?void 0:_.textarea),style:Z(Z({},O==null?void 0:O.textarea),{},{resize:w==null?void 0:w.resize}),disabled:E,prefixCls:b,onResize:Ae,ref:ie,readOnly:k})))});const u9=e=>{const{componentCls:t,paddingLG:n}=e,r=`${t}-textarea`;return{[`textarea${t}`]:{maxWidth:"100%",height:"auto",minHeight:e.controlHeight,lineHeight:e.lineHeight,verticalAlign:"bottom",transition:`all ${e.motionDurationSlow}`,resize:"vertical",[`&${t}-mouse-active`]:{transition:`all ${e.motionDurationSlow}, height 0s, width 0s`}},[`${t}-textarea-affix-wrapper-resize-dirty`]:{width:"auto"},[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",minHeight:e.calc(e.controlHeight).sub(e.calc(e.lineWidth).mul(2)).equal(),"&: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}}}}}},d9=zn(["Input","TextArea"],e=>{const t=$n(e,ns(e));return[u9(t)]},rs,{resetFont:!1});var f9=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 a=0,r=Object.getOwnPropertySymbols(e);a{var n;const{prefixCls:r,bordered:a=!0,size:o,disabled:l,status:c,allowClear:d,classNames:f,rootClassName:m,className:p,style:v,styles:h,variant:b,showCount:x,onMouseDown:y,onResize:C}=e,w=f9(e,["prefixCls","bordered","size","disabled","status","allowClear","classNames","rootClassName","className","style","styles","variant","showCount","onMouseDown","onResize"]),{getPrefixCls:E,direction:I,allowClear:_,autoComplete:O,className:P,style:j,classNames:R,styles:k}=wa("textArea"),L=i.useContext(ha),W=l??L,{status:B,hasFeedback:F,feedbackIcon:A}=i.useContext(Qr),T=Ql(B,c),M=i.useRef(null);i.useImperativeHandle(t,()=>{var fe;return{resizableTextArea:(fe=M.current)===null||fe===void 0?void 0:fe.resizableTextArea,focus:xe=>{var Ee,Le;tx((Le=(Ee=M.current)===null||Ee===void 0?void 0:Ee.resizableTextArea)===null||Le===void 0?void 0:Le.textArea,xe)},blur:()=>{var xe;return(xe=M.current)===null||xe===void 0?void 0:xe.blur()}}});const D=E("input",r),V=Kr(D),[K,z,U]=rR(D,m),[Y]=d9(D,V),{compactSize:q,compactItemClassnames:X}=_i(D,I),te=Zr(fe=>{var xe;return(xe=o??q)!==null&&xe!==void 0?xe:fe}),[ee,J]=Jl("textArea",b,a),ie=$R(d??_),[de,oe]=i.useState(!1),[le,ae]=i.useState(!1),ue=fe=>{oe(!0),y==null||y(fe);const xe=()=>{oe(!1),document.removeEventListener("mouseup",xe)};document.addEventListener("mouseup",xe)},pe=fe=>{var xe,Ee;if(C==null||C(fe),de&&typeof getComputedStyle=="function"){const Le=(Ee=(xe=M.current)===null||xe===void 0?void 0:xe.nativeElement)===null||Ee===void 0?void 0:Ee.querySelector("textarea");Le&&getComputedStyle(Le).resize==="both"&&ae(!0)}};return K(Y(i.createElement(c9,Object.assign({autoComplete:O},w,{style:Object.assign(Object.assign({},j),v),styles:Object.assign(Object.assign({},k),h),disabled:W,allowClear:ie,className:ce(U,V,p,m,X,P,le&&`${D}-textarea-affix-wrapper-resize-dirty`),classNames:Object.assign(Object.assign(Object.assign({},f),R),{textarea:ce({[`${D}-sm`]:te==="small",[`${D}-lg`]:te==="large"},z,f==null?void 0:f.textarea,R.textarea,de&&`${D}-mouse-active`),variant:ce({[`${D}-${ee}`]:J},cl(D,T)),affixWrapper:ce(`${D}-textarea-affix-wrapper`,{[`${D}-affix-wrapper-rtl`]:I==="rtl",[`${D}-affix-wrapper-sm`]:te==="small",[`${D}-affix-wrapper-lg`]:te==="large",[`${D}-textarea-show-count`]:x||((n=e.count)===null||n===void 0?void 0:n.show)},z)}),prefixCls:D,suffix:F&&i.createElement("span",{className:`${D}-textarea-suffix`},A),showCount:x,ref:M,onResize:pe,onMouseDown:ue}))))}),St=Id;St.Group=AW;St.Search=t9;St.TextArea=WR;St.Password=ZW;St.OTP=UW;function m9(e,t,n){return typeof n=="boolean"?n:e.length?!0:ga(t).some(a=>a.type===dO)}var KR=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 a=0,r=Object.getOwnPropertySymbols(e);ai.forwardRef((l,c)=>i.createElement(a,Object.assign({ref:c,suffixCls:t,tagName:n},l)))}const ix=i.forwardRef((e,t)=>{const{prefixCls:n,suffixCls:r,className:a,tagName:o}=e,l=KR(e,["prefixCls","suffixCls","className","tagName"]),{getPrefixCls:c}=i.useContext(Gt),d=c("layout",n),[f,m,p]=uO(d),v=r?`${d}-${r}`:d;return f(i.createElement(o,Object.assign({className:ce(n||v,a,m,p),ref:t},l)))}),p9=i.forwardRef((e,t)=>{const{direction:n}=i.useContext(Gt),[r,a]=i.useState([]),{prefixCls:o,className:l,rootClassName:c,children:d,hasSider:f,tagName:m,style:p}=e,v=KR(e,["prefixCls","className","rootClassName","children","hasSider","tagName","style"]),h=Qn(v,["suffixCls"]),{getPrefixCls:b,className:x,style:y}=wa("layout"),C=b("layout",o),w=m9(r,d,f),[E,I,_]=uO(C),O=ce(C,{[`${C}-has-sider`]:w,[`${C}-rtl`]:n==="rtl"},x,l,c,I,_),P=i.useMemo(()=>({siderHook:{addSider:j=>{a(R=>[].concat(Te(R),[j]))},removeSider:j=>{a(R=>R.filter(k=>k!==j))}}}),[]);return E(i.createElement(lO.Provider,{value:P},i.createElement(m,Object.assign({ref:t,className:O,style:Object.assign(Object.assign({},y),p)},h),d)))}),v9=Qp({tagName:"div",displayName:"Layout"})(p9),g9=Qp({suffixCls:"header",tagName:"header",displayName:"Header"})(ix),h9=Qp({suffixCls:"footer",tagName:"footer",displayName:"Footer"})(ix),y9=Qp({suffixCls:"content",tagName:"main",displayName:"Content"})(ix),ao=v9;ao.Header=g9;ao.Footer=h9;ao.Content=y9;ao.Sider=dO;ao._InternalSiderContext=Bp;const lx=function(){const e=Object.assign({},arguments.length<=0?void 0:arguments[0]);for(let t=1;t{const a=n[r];a!==void 0&&(e[r]=a)})}return e};var b9={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M272.9 512l265.4-339.1c4.1-5.2.4-12.9-6.3-12.9h-77.3c-4.9 0-9.6 2.3-12.6 6.1L186.8 492.3a31.99 31.99 0 000 39.5l255.3 326.1c3 3.9 7.7 6.1 12.6 6.1H532c6.7 0 10.4-7.7 6.3-12.9L272.9 512zm304 0l265.4-339.1c4.1-5.2.4-12.9-6.3-12.9h-77.3c-4.9 0-9.6 2.3-12.6 6.1L490.8 492.3a31.99 31.99 0 000 39.5l255.3 326.1c3 3.9 7.7 6.1 12.6 6.1H836c6.7 0 10.4-7.7 6.3-12.9L576.9 512z"}}]},name:"double-left",theme:"outlined"},x9=function(t,n){return i.createElement(pn,Pe({},t,{ref:n,icon:b9}))},pE=i.forwardRef(x9),S9={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M533.2 492.3L277.9 166.1c-3-3.9-7.7-6.1-12.6-6.1H188c-6.7 0-10.4 7.7-6.3 12.9L447.1 512 181.7 851.1A7.98 7.98 0 00188 864h77.3c4.9 0 9.6-2.3 12.6-6.1l255.3-326.1c9.1-11.7 9.1-27.9 0-39.5zm304 0L581.9 166.1c-3-3.9-7.7-6.1-12.6-6.1H492c-6.7 0-10.4 7.7-6.3 12.9L751.1 512 485.7 851.1A7.98 7.98 0 00492 864h77.3c4.9 0 9.6-2.3 12.6-6.1l255.3-326.1c9.1-11.7 9.1-27.9 0-39.5z"}}]},name:"double-right",theme:"outlined"},C9=function(t,n){return i.createElement(pn,Pe({},t,{ref:n,icon:S9}))},vE=i.forwardRef(C9),w9={items_per_page:"条/页",jump_to:"跳至",jump_to_confirm:"确定",page:"页",prev_page:"上一页",next_page:"下一页",prev_5:"向前 5 页",next_5:"向后 5 页",prev_3:"向前 3 页",next_3:"向后 3 页",page_size:"页码"},$9=[10,20,50,100],E9=function(t){var n=t.pageSizeOptions,r=n===void 0?$9:n,a=t.locale,o=t.changeSize,l=t.pageSize,c=t.goButton,d=t.quickGo,f=t.rootPrefixCls,m=t.disabled,p=t.buildOptionText,v=t.showSizeChanger,h=t.sizeChangerRender,b=be.useState(""),x=se(b,2),y=x[0],C=x[1],w=function(){return!y||Number.isNaN(y)?void 0:Number(y)},E=typeof p=="function"?p:function(W){return"".concat(W," ").concat(a.items_per_page)},I=function(B){C(B.target.value)},_=function(B){c||y===""||(C(""),!(B.relatedTarget&&(B.relatedTarget.className.indexOf("".concat(f,"-item-link"))>=0||B.relatedTarget.className.indexOf("".concat(f,"-item"))>=0))&&(d==null||d(w())))},O=function(B){y!==""&&(B.keyCode===$t.ENTER||B.type==="click")&&(C(""),d==null||d(w()))},P=function(){return r.some(function(B){return B.toString()===l.toString()})?r:r.concat([l]).sort(function(B,F){var A=Number.isNaN(Number(B))?0:Number(B),T=Number.isNaN(Number(F))?0:Number(F);return A-T})},j="".concat(f,"-options");if(!v&&!d)return null;var R=null,k=null,L=null;return v&&h&&(R=h({disabled:m,size:l,onSizeChange:function(B){o==null||o(Number(B))},"aria-label":a.page_size,className:"".concat(j,"-size-changer"),options:P().map(function(W){return{label:E(W),value:W}})})),d&&(c&&(L=typeof c=="boolean"?be.createElement("button",{type:"button",onClick:O,onKeyUp:O,disabled:m,className:"".concat(j,"-quick-jumper-button")},a.jump_to_confirm):be.createElement("span",{onClick:O,onKeyUp:O},c)),k=be.createElement("div",{className:"".concat(j,"-quick-jumper")},a.jump_to,be.createElement("input",{disabled:m,type:"text",value:y,onChange:I,onKeyUp:O,onBlur:_,"aria-label":a.page}),a.page,L)),be.createElement("li",{className:j},R,k)},mu=function(t){var n=t.rootPrefixCls,r=t.page,a=t.active,o=t.className,l=t.showTitle,c=t.onClick,d=t.onKeyPress,f=t.itemRender,m="".concat(n,"-item"),p=ce(m,"".concat(m,"-").concat(r),G(G({},"".concat(m,"-active"),a),"".concat(m,"-disabled"),!r),o),v=function(){c(r)},h=function(y){d(y,c,r)},b=f(r,"page",be.createElement("a",{rel:"nofollow"},r));return b?be.createElement("li",{title:l?String(r):null,className:p,onClick:v,onKeyDown:h,tabIndex:0},b):null},_9=function(t,n,r){return r};function gE(){}function hE(e){var t=Number(e);return typeof t=="number"&&!Number.isNaN(t)&&isFinite(t)&&Math.floor(t)===t}function jl(e,t,n){var r=typeof e>"u"?t:e;return Math.floor((n-1)/r)+1}var I9=function(t){var n=t.prefixCls,r=n===void 0?"rc-pagination":n,a=t.selectPrefixCls,o=a===void 0?"rc-select":a,l=t.className,c=t.current,d=t.defaultCurrent,f=d===void 0?1:d,m=t.total,p=m===void 0?0:m,v=t.pageSize,h=t.defaultPageSize,b=h===void 0?10:h,x=t.onChange,y=x===void 0?gE:x,C=t.hideOnSinglePage,w=t.align,E=t.showPrevNextJumpers,I=E===void 0?!0:E,_=t.showQuickJumper,O=t.showLessItems,P=t.showTitle,j=P===void 0?!0:P,R=t.onShowSizeChange,k=R===void 0?gE:R,L=t.locale,W=L===void 0?w9:L,B=t.style,F=t.totalBoundaryShowSizeChanger,A=F===void 0?50:F,T=t.disabled,M=t.simple,D=t.showTotal,V=t.showSizeChanger,K=V===void 0?p>A:V,z=t.sizeChangerRender,U=t.pageSizeOptions,Y=t.itemRender,q=Y===void 0?_9:Y,X=t.jumpPrevIcon,te=t.jumpNextIcon,ee=t.prevIcon,J=t.nextIcon,ie=be.useRef(null),de=Hn(10,{value:v,defaultValue:b}),oe=se(de,2),le=oe[0],ae=oe[1],ue=Hn(1,{value:c,defaultValue:f,postState:function(Bt){return Math.max(1,Math.min(Bt,jl(void 0,le,p)))}}),pe=se(ue,2),fe=pe[0],xe=pe[1],Ee=be.useState(fe),Le=se(Ee,2),Ne=Le[0],ge=Le[1];i.useEffect(function(){ge(fe)},[fe]);var we=Math.max(1,fe-(O?3:5)),Se=Math.min(jl(void 0,le,p),fe+(O?3:5));function Re(Mt,Bt){var rn=Mt||be.createElement("button",{type:"button","aria-label":Bt,className:"".concat(r,"-item-link")});return typeof Mt=="function"&&(rn=be.createElement(Mt,Z({},t))),rn}function De(Mt){var Bt=Mt.target.value,rn=jl(void 0,le,p),xn;return Bt===""?xn=Bt:Number.isNaN(Number(Bt))?xn=Ne:Bt>=rn?xn=rn:xn=Number(Bt),xn}function Me(Mt){return hE(Mt)&&Mt!==fe&&hE(p)&&p>0}var Ye=p>le?_:!1;function qe(Mt){(Mt.keyCode===$t.UP||Mt.keyCode===$t.DOWN)&&Mt.preventDefault()}function He(Mt){var Bt=De(Mt);switch(Bt!==Ne&&ge(Bt),Mt.keyCode){case $t.ENTER:Ie(Bt);break;case $t.UP:Ie(Bt-1);break;case $t.DOWN:Ie(Bt+1);break}}function ze(Mt){Ie(De(Mt))}function Ae(Mt){var Bt=jl(Mt,le,p),rn=fe>Bt&&Bt!==0?Bt:fe;ae(Mt),ge(rn),k==null||k(fe,Mt),xe(rn),y==null||y(rn,Mt)}function Ie(Mt){if(Me(Mt)&&!T){var Bt=jl(void 0,le,p),rn=Mt;return Mt>Bt?rn=Bt:Mt<1&&(rn=1),rn!==Ne&&ge(rn),xe(rn),y==null||y(rn,le),rn}return fe}var Ve=fe>1,ye=fe2?rn-2:0),fr=2;frp?p:fe*le])),Tt=null,kt=jl(void 0,le,p);if(C&&p<=le)return null;var Xe=[],Ze={rootPrefixCls:r,onClick:Ie,onKeyPress:tt,showTitle:j,itemRender:q,page:-1},Et=fe-1>0?fe-1:0,Ot=fe+1=Ft*2&&fe!==3&&(Xe[0]=be.cloneElement(Xe[0],{className:ce("".concat(r,"-item-after-jump-prev"),Xe[0].props.className)}),Xe.unshift(st)),kt-fe>=Ft*2&&fe!==kt-2){var _t=Xe[Xe.length-1];Xe[Xe.length-1]=be.cloneElement(_t,{className:ce("".concat(r,"-item-before-jump-next"),_t.props.className)}),Xe.push(Tt)}On!==1&&Xe.unshift(be.createElement(mu,Pe({},Ze,{key:1,page:1}))),kn!==kt&&Xe.push(be.createElement(mu,Pe({},Ze,{key:kt,page:kt})))}var ut=gt(Et);if(ut){var Ke=!Ve||!kt;ut=be.createElement("li",{title:j?W.prev_page:null,onClick:Ce,tabIndex:Ke?null:0,onKeyDown:Nt,className:ce("".concat(r,"-prev"),G({},"".concat(r,"-disabled"),Ke)),"aria-disabled":Ke},ut)}var zt=at(Ot);if(zt){var nn,En;M?(nn=!ye,En=Ve?0:null):(nn=!ye||!kt,En=nn?null:0),zt=be.createElement("li",{title:j?W.next_page:null,onClick:_e,tabIndex:En,onKeyDown:Ht,className:ce("".concat(r,"-next"),G({},"".concat(r,"-disabled"),nn)),"aria-disabled":nn},zt)}var Tn=ce(r,l,G(G(G(G(G({},"".concat(r,"-start"),w==="start"),"".concat(r,"-center"),w==="center"),"".concat(r,"-end"),w==="end"),"".concat(r,"-simple"),M),"".concat(r,"-disabled"),T));return be.createElement("ul",Pe({className:Tn,style:B,ref:ie},et),Qe,ut,M?ht:Xe,zt,be.createElement(E9,{locale:W,rootPrefixCls:r,disabled:T,selectPrefixCls:o,changeSize:Ae,pageSize:le,pageSizeOptions:U,quickGo:Ye?Ie:null,goButton:Ct,showSizeChanger:K,sizeChangerRender:z}))};const O9=e=>{const{componentCls:t}=e;return{[`${t}-disabled`]:{"&, &:hover":{cursor:"not-allowed",[`${t}-item-link`]:{color:e.colorTextDisabled,cursor:"not-allowed"}},"&:focus-visible":{cursor:"not-allowed",[`${t}-item-link`]:{color:e.colorTextDisabled,cursor:"not-allowed"}}},[`&${t}-disabled`]:{cursor:"not-allowed",[`${t}-item`]:{cursor:"not-allowed",backgroundColor:"transparent","&:hover, &:active":{backgroundColor:"transparent"},a:{color:e.colorTextDisabled,backgroundColor:"transparent",border:"none",cursor:"not-allowed"},"&-active":{borderColor:e.colorBorder,backgroundColor:e.itemActiveBgDisabled,"&:hover, &:active":{backgroundColor:e.itemActiveBgDisabled},a:{color:e.itemActiveColorDisabled}}},[`${t}-item-link`]:{color:e.colorTextDisabled,cursor:"not-allowed","&:hover, &:active":{backgroundColor:"transparent"},[`${t}-simple&`]:{backgroundColor:"transparent","&:hover, &:active":{backgroundColor:"transparent"}}},[`${t}-simple-pager`]:{color:e.colorTextDisabled},[`${t}-jump-prev, ${t}-jump-next`]:{[`${t}-item-link-icon`]:{opacity:0},[`${t}-item-ellipsis`]:{opacity:1}}},[`&${t}-simple`]:{[`${t}-prev, ${t}-next`]:{[`&${t}-disabled ${t}-item-link`]:{"&:hover, &:active":{backgroundColor:"transparent"}}}}}},R9=e=>{const{componentCls:t}=e;return{[`&${t}-mini ${t}-total-text, &${t}-mini ${t}-simple-pager`]:{height:e.itemSizeSM,lineHeight:ne(e.itemSizeSM)},[`&${t}-mini ${t}-item`]:{minWidth:e.itemSizeSM,height:e.itemSizeSM,margin:0,lineHeight:ne(e.calc(e.itemSizeSM).sub(2).equal())},[`&${t}-mini ${t}-prev, &${t}-mini ${t}-next`]:{minWidth:e.itemSizeSM,height:e.itemSizeSM,margin:0,lineHeight:ne(e.itemSizeSM)},[`&${t}-mini:not(${t}-disabled)`]:{[`${t}-prev, ${t}-next`]:{[`&:hover ${t}-item-link`]:{backgroundColor:e.colorBgTextHover},[`&:active ${t}-item-link`]:{backgroundColor:e.colorBgTextActive},[`&${t}-disabled:hover ${t}-item-link`]:{backgroundColor:"transparent"}}},[` + &${t}-mini ${t}-prev ${t}-item-link, + &${t}-mini ${t}-next ${t}-item-link + `]:{backgroundColor:"transparent",borderColor:"transparent","&::after":{height:e.itemSizeSM,lineHeight:ne(e.itemSizeSM)}},[`&${t}-mini ${t}-jump-prev, &${t}-mini ${t}-jump-next`]:{height:e.itemSizeSM,marginInlineEnd:0,lineHeight:ne(e.itemSizeSM)},[`&${t}-mini ${t}-options`]:{marginInlineStart:e.paginationMiniOptionsMarginInlineStart,"&-size-changer":{top:e.miniOptionsSizeChangerTop},"&-quick-jumper":{height:e.itemSizeSM,lineHeight:ne(e.itemSizeSM),input:Object.assign(Object.assign({},Gb(e)),{width:e.paginationMiniQuickJumperInputWidth,height:e.controlHeightSM})}}}},P9=e=>{const{componentCls:t}=e;return{[` + &${t}-simple ${t}-prev, + &${t}-simple ${t}-next + `]:{height:e.itemSizeSM,lineHeight:ne(e.itemSizeSM),verticalAlign:"top",[`${t}-item-link`]:{height:e.itemSizeSM,backgroundColor:"transparent",border:0,"&:hover":{backgroundColor:e.colorBgTextHover},"&:active":{backgroundColor:e.colorBgTextActive},"&::after":{height:e.itemSizeSM,lineHeight:ne(e.itemSizeSM)}}},[`&${t}-simple ${t}-simple-pager`]:{display:"inline-block",height:e.itemSizeSM,marginInlineEnd:e.marginXS,input:{boxSizing:"border-box",height:"100%",padding:`0 ${ne(e.paginationItemPaddingInline)}`,textAlign:"center",backgroundColor:e.itemInputBg,border:`${ne(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,borderRadius:e.borderRadius,outline:"none",transition:`border-color ${e.motionDurationMid}`,color:"inherit","&:hover":{borderColor:e.colorPrimary},"&:focus":{borderColor:e.colorPrimaryHover,boxShadow:`${ne(e.inputOutlineOffset)} 0 ${ne(e.controlOutlineWidth)} ${e.controlOutline}`},"&[disabled]":{color:e.colorTextDisabled,backgroundColor:e.colorBgContainerDisabled,borderColor:e.colorBorder,cursor:"not-allowed"}}}}},N9=e=>{const{componentCls:t}=e;return{[`${t}-jump-prev, ${t}-jump-next`]:{outline:0,[`${t}-item-container`]:{position:"relative",[`${t}-item-link-icon`]:{color:e.colorPrimary,fontSize:e.fontSizeSM,opacity:0,transition:`all ${e.motionDurationMid}`,"&-svg":{top:0,insetInlineEnd:0,bottom:0,insetInlineStart:0,margin:"auto"}},[`${t}-item-ellipsis`]:{position:"absolute",top:0,insetInlineEnd:0,bottom:0,insetInlineStart:0,display:"block",margin:"auto",color:e.colorTextDisabled,letterSpacing:e.paginationEllipsisLetterSpacing,textAlign:"center",textIndent:e.paginationEllipsisTextIndent,opacity:1,transition:`all ${e.motionDurationMid}`}},"&:hover":{[`${t}-item-link-icon`]:{opacity:1},[`${t}-item-ellipsis`]:{opacity:0}}},[` + ${t}-prev, + ${t}-jump-prev, + ${t}-jump-next + `]:{marginInlineEnd:e.marginXS},[` + ${t}-prev, + ${t}-next, + ${t}-jump-prev, + ${t}-jump-next + `]:{display:"inline-block",minWidth:e.itemSize,height:e.itemSize,color:e.colorText,fontFamily:e.fontFamily,lineHeight:ne(e.itemSize),textAlign:"center",verticalAlign:"middle",listStyle:"none",borderRadius:e.borderRadius,cursor:"pointer",transition:`all ${e.motionDurationMid}`},[`${t}-prev, ${t}-next`]:{outline:0,button:{color:e.colorText,cursor:"pointer",userSelect:"none"},[`${t}-item-link`]:{display:"block",width:"100%",height:"100%",padding:0,fontSize:e.fontSizeSM,textAlign:"center",backgroundColor:"transparent",border:`${ne(e.lineWidth)} ${e.lineType} transparent`,borderRadius:e.borderRadius,outline:"none",transition:`all ${e.motionDurationMid}`},[`&:hover ${t}-item-link`]:{backgroundColor:e.colorBgTextHover},[`&:active ${t}-item-link`]:{backgroundColor:e.colorBgTextActive},[`&${t}-disabled:hover`]:{[`${t}-item-link`]:{backgroundColor:"transparent"}}},[`${t}-slash`]:{marginInlineEnd:e.paginationSlashMarginInlineEnd,marginInlineStart:e.paginationSlashMarginInlineStart},[`${t}-options`]:{display:"inline-block",marginInlineStart:e.margin,verticalAlign:"middle","&-size-changer":{display:"inline-block",width:"auto"},"&-quick-jumper":{display:"inline-block",height:e.controlHeight,marginInlineStart:e.marginXS,lineHeight:ne(e.controlHeight),verticalAlign:"top",input:Object.assign(Object.assign(Object.assign({},Ed(e)),Vb(e,{borderColor:e.colorBorder,hoverBorderColor:e.colorPrimaryHover,activeBorderColor:e.colorPrimary,activeShadow:e.activeShadow})),{"&[disabled]":Object.assign({},Yp(e)),width:e.calc(e.controlHeightLG).mul(1.25).equal(),height:e.controlHeight,boxSizing:"border-box",margin:0,marginInlineStart:e.marginXS,marginInlineEnd:e.marginXS})}}}},j9=e=>{const{componentCls:t}=e;return{[`${t}-item`]:{display:"inline-block",minWidth:e.itemSize,height:e.itemSize,marginInlineEnd:e.marginXS,fontFamily:e.fontFamily,lineHeight:ne(e.calc(e.itemSize).sub(2).equal()),textAlign:"center",verticalAlign:"middle",listStyle:"none",backgroundColor:e.itemBg,border:`${ne(e.lineWidth)} ${e.lineType} transparent`,borderRadius:e.borderRadius,outline:0,cursor:"pointer",userSelect:"none",a:{display:"block",padding:`0 ${ne(e.paginationItemPaddingInline)}`,color:e.colorText,"&:hover":{textDecoration:"none"}},[`&:not(${t}-item-active)`]:{"&:hover":{transition:`all ${e.motionDurationMid}`,backgroundColor:e.colorBgTextHover},"&:active":{backgroundColor:e.colorBgTextActive}},"&-active":{fontWeight:e.fontWeightStrong,backgroundColor:e.itemActiveBg,borderColor:e.colorPrimary,a:{color:e.colorPrimary},"&:hover":{borderColor:e.colorPrimaryHover},"&:hover a":{color:e.colorPrimaryHover}}}}},k9=e=>{const{componentCls:t}=e;return{[t]:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},Ln(e)),{display:"flex","&-start":{justifyContent:"start"},"&-center":{justifyContent:"center"},"&-end":{justifyContent:"end"},"ul, ol":{margin:0,padding:0,listStyle:"none"},"&::after":{display:"block",clear:"both",height:0,overflow:"hidden",visibility:"hidden",content:'""'},[`${t}-total-text`]:{display:"inline-block",height:e.itemSize,marginInlineEnd:e.marginXS,lineHeight:ne(e.calc(e.itemSize).sub(2).equal()),verticalAlign:"middle"}}),j9(e)),N9(e)),P9(e)),R9(e)),O9(e)),{[`@media only screen and (max-width: ${e.screenLG}px)`]:{[`${t}-item`]:{"&-after-jump-prev, &-before-jump-next":{display:"none"}}},[`@media only screen and (max-width: ${e.screenSM}px)`]:{[`${t}-options`]:{display:"none"}}}),[`&${e.componentCls}-rtl`]:{direction:"rtl"}}},M9=e=>{const{componentCls:t}=e;return{[`${t}:not(${t}-disabled)`]:{[`${t}-item`]:Object.assign({},xi(e)),[`${t}-jump-prev, ${t}-jump-next`]:{"&:focus-visible":Object.assign({[`${t}-item-link-icon`]:{opacity:1},[`${t}-item-ellipsis`]:{opacity:0}},qo(e))},[`${t}-prev, ${t}-next`]:{[`&:focus-visible ${t}-item-link`]:Object.assign({},qo(e))}}}},UR=e=>Object.assign({itemBg:e.colorBgContainer,itemSize:e.controlHeight,itemSizeSM:e.controlHeightSM,itemActiveBg:e.colorBgContainer,itemLinkBg:e.colorBgContainer,itemActiveColorDisabled:e.colorTextDisabled,itemActiveBgDisabled:e.controlItemBgActiveDisabled,itemInputBg:e.colorBgContainer,miniOptionsSizeChangerTop:0},rs(e)),qR=e=>$n(e,{inputOutlineOffset:0,paginationMiniOptionsMarginInlineStart:e.calc(e.marginXXS).div(2).equal(),paginationMiniQuickJumperInputWidth:e.calc(e.controlHeightLG).mul(1.1).equal(),paginationItemPaddingInline:e.calc(e.marginXXS).mul(1.5).equal(),paginationEllipsisLetterSpacing:e.calc(e.marginXXS).div(2).equal(),paginationSlashMarginInlineStart:e.marginSM,paginationSlashMarginInlineEnd:e.marginSM,paginationEllipsisTextIndent:"0.13em"},ns(e)),T9=zn("Pagination",e=>{const t=qR(e);return[k9(t),M9(t)]},UR),D9=e=>{const{componentCls:t}=e;return{[`${t}${t}-bordered${t}-disabled:not(${t}-mini)`]:{"&, &:hover":{[`${t}-item-link`]:{borderColor:e.colorBorder}},"&:focus-visible":{[`${t}-item-link`]:{borderColor:e.colorBorder}},[`${t}-item, ${t}-item-link`]:{backgroundColor:e.colorBgContainerDisabled,borderColor:e.colorBorder,[`&:hover:not(${t}-item-active)`]:{backgroundColor:e.colorBgContainerDisabled,borderColor:e.colorBorder,a:{color:e.colorTextDisabled}},[`&${t}-item-active`]:{backgroundColor:e.itemActiveBgDisabled}},[`${t}-prev, ${t}-next`]:{"&:hover button":{backgroundColor:e.colorBgContainerDisabled,borderColor:e.colorBorder,color:e.colorTextDisabled},[`${t}-item-link`]:{backgroundColor:e.colorBgContainerDisabled,borderColor:e.colorBorder}}},[`${t}${t}-bordered:not(${t}-mini)`]:{[`${t}-prev, ${t}-next`]:{"&:hover button":{borderColor:e.colorPrimaryHover,backgroundColor:e.itemBg},[`${t}-item-link`]:{backgroundColor:e.itemLinkBg,borderColor:e.colorBorder},[`&:hover ${t}-item-link`]:{borderColor:e.colorPrimary,backgroundColor:e.itemBg,color:e.colorPrimary},[`&${t}-disabled`]:{[`${t}-item-link`]:{borderColor:e.colorBorder,color:e.colorTextDisabled}}},[`${t}-item`]:{backgroundColor:e.itemBg,border:`${ne(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,[`&:hover:not(${t}-item-active)`]:{borderColor:e.colorPrimary,backgroundColor:e.itemBg,a:{color:e.colorPrimary}},"&-active":{borderColor:e.colorPrimary}}}}},F9=pd(["Pagination","bordered"],e=>{const t=qR(e);return[D9(t)]},UR);function yE(e){return i.useMemo(()=>typeof e=="boolean"?[e,{}]:e&&typeof e=="object"?[!0,e]:[void 0,void 0],[e])}var L9=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 a=0,r=Object.getOwnPropertySymbols(e);a{const{align:t,prefixCls:n,selectPrefixCls:r,className:a,rootClassName:o,style:l,size:c,locale:d,responsive:f,showSizeChanger:m,selectComponentClass:p,pageSizeOptions:v}=e,h=L9(e,["align","prefixCls","selectPrefixCls","className","rootClassName","style","size","locale","responsive","showSizeChanger","selectComponentClass","pageSizeOptions"]),{xs:b}=Lp(f),[,x]=ba(),{getPrefixCls:y,direction:C,showSizeChanger:w,className:E,style:I}=wa("pagination"),_=y("pagination",n),[O,P,j]=T9(_),R=Zr(c),k=R==="small"||!!(b&&!R&&f),[L]=$i("Pagination",dI),W=Object.assign(Object.assign({},L),d),[B,F]=yE(m),[A,T]=yE(w),M=B??A,D=F??T,V=p||jt,K=i.useMemo(()=>v?v.map(te=>Number(te)):void 0,[v]),z=te=>{var ee;const{disabled:J,size:ie,onSizeChange:de,"aria-label":oe,className:le,options:ae}=te,{className:ue,onChange:pe}=D||{},fe=(ee=ae.find(xe=>String(xe.value)===String(ie)))===null||ee===void 0?void 0:ee.value;return i.createElement(V,Object.assign({disabled:J,showSearch:!0,popupMatchSelectWidth:!1,getPopupContainer:xe=>xe.parentNode,"aria-label":oe,options:ae},D,{value:fe,onChange:(xe,Ee)=>{de==null||de(xe),pe==null||pe(xe,Ee)},size:k?"small":"middle",className:ce(le,ue)}))},U=i.useMemo(()=>{const te=i.createElement("span",{className:`${_}-item-ellipsis`},"•••"),ee=i.createElement("button",{className:`${_}-item-link`,type:"button",tabIndex:-1},C==="rtl"?i.createElement(Qu,null):i.createElement(ed,null)),J=i.createElement("button",{className:`${_}-item-link`,type:"button",tabIndex:-1},C==="rtl"?i.createElement(ed,null):i.createElement(Qu,null)),ie=i.createElement("a",{className:`${_}-item-link`},i.createElement("div",{className:`${_}-item-container`},C==="rtl"?i.createElement(vE,{className:`${_}-item-link-icon`}):i.createElement(pE,{className:`${_}-item-link-icon`}),te)),de=i.createElement("a",{className:`${_}-item-link`},i.createElement("div",{className:`${_}-item-container`},C==="rtl"?i.createElement(pE,{className:`${_}-item-link-icon`}):i.createElement(vE,{className:`${_}-item-link-icon`}),te));return{prevIcon:ee,nextIcon:J,jumpPrevIcon:ie,jumpNextIcon:de}},[C,_]),Y=y("select",r),q=ce({[`${_}-${t}`]:!!t,[`${_}-mini`]:k,[`${_}-rtl`]:C==="rtl",[`${_}-bordered`]:x.wireframe},E,a,o,P,j),X=Object.assign(Object.assign({},I),l);return O(i.createElement(i.Fragment,null,x.wireframe&&i.createElement(F9,{prefixCls:_}),i.createElement(I9,Object.assign({},U,h,{style:X,prefixCls:_,selectPrefixCls:Y,className:q,locale:W,pageSizeOptions:K,showSizeChanger:M,sizeChangerRender:z}))))},ep=100,GR=ep/5,XR=ep/2-GR/2,Hh=XR*2*Math.PI,bE=50,xE=e=>{const{dotClassName:t,style:n,hasCircleCls:r}=e;return i.createElement("circle",{className:ce(`${t}-circle`,{[`${t}-circle-bg`]:r}),r:XR,cx:bE,cy:bE,strokeWidth:GR,style:n})},A9=e=>{let{percent:t,prefixCls:n}=e;const r=`${n}-dot`,a=`${r}-holder`,o=`${a}-hidden`,[l,c]=i.useState(!1);hn(()=>{t!==0&&c(!0)},[t!==0]);const d=Math.max(Math.min(t,100),0);if(!l)return null;const f={strokeDashoffset:`${Hh/4}`,strokeDasharray:`${Hh*d/100} ${Hh*(100-d)/100}`};return i.createElement("span",{className:ce(a,`${r}-progress`,d<=0&&o)},i.createElement("svg",{viewBox:`0 0 ${ep} ${ep}`,role:"progressbar","aria-valuemin":0,"aria-valuemax":100,"aria-valuenow":d},i.createElement(xE,{dotClassName:r,hasCircleCls:!0}),i.createElement(xE,{dotClassName:r,style:f})))};function z9(e){const{prefixCls:t,percent:n=0}=e,r=`${t}-dot`,a=`${r}-holder`,o=`${a}-hidden`;return i.createElement(i.Fragment,null,i.createElement("span",{className:ce(a,n>0&&o)},i.createElement("span",{className:ce(r,`${t}-dot-spin`)},[1,2,3,4].map(l=>i.createElement("i",{className:`${t}-dot-item`,key:l})))),i.createElement(A9,{prefixCls:t,percent:n}))}function B9(e){const{prefixCls:t,indicator:n,percent:r}=e,a=`${t}-dot`;return n&&i.isValidElement(n)?ia(n,{className:ce(n.props.className,a),percent:r}):i.createElement(z9,{prefixCls:t,percent:r})}const H9=new jn("antSpinMove",{to:{opacity:1}}),V9=new jn("antRotate",{to:{transform:"rotate(405deg)"}}),W9=e=>{const{componentCls:t,calc:n}=e;return{[t]:Object.assign(Object.assign({},Ln(e)),{position:"absolute",display:"none",color:e.colorPrimary,fontSize:0,textAlign:"center",verticalAlign:"middle",opacity:0,transition:`transform ${e.motionDurationSlow} ${e.motionEaseInOutCirc}`,"&-spinning":{position:"relative",display:"inline-block",opacity:1},[`${t}-text`]:{fontSize:e.fontSize,paddingTop:n(n(e.dotSize).sub(e.fontSize)).div(2).add(2).equal()},"&-fullscreen":{position:"fixed",width:"100vw",height:"100vh",backgroundColor:e.colorBgMask,zIndex:e.zIndexPopupBase,inset:0,display:"flex",alignItems:"center",flexDirection:"column",justifyContent:"center",opacity:0,visibility:"hidden",transition:`all ${e.motionDurationMid}`,"&-show":{opacity:1,visibility:"visible"},[t]:{[`${t}-dot-holder`]:{color:e.colorWhite},[`${t}-text`]:{color:e.colorTextLightSolid}}},"&-nested-loading":{position:"relative",[`> div > ${t}`]:{position:"absolute",top:0,insetInlineStart:0,zIndex:4,display:"block",width:"100%",height:"100%",maxHeight:e.contentHeight,[`${t}-dot`]:{position:"absolute",top:"50%",insetInlineStart:"50%",margin:n(e.dotSize).mul(-1).div(2).equal()},[`${t}-text`]:{position:"absolute",top:"50%",width:"100%",textShadow:`0 1px 2px ${e.colorBgContainer}`},[`&${t}-show-text ${t}-dot`]:{marginTop:n(e.dotSize).div(2).mul(-1).sub(10).equal()},"&-sm":{[`${t}-dot`]:{margin:n(e.dotSizeSM).mul(-1).div(2).equal()},[`${t}-text`]:{paddingTop:n(n(e.dotSizeSM).sub(e.fontSize)).div(2).add(2).equal()},[`&${t}-show-text ${t}-dot`]:{marginTop:n(e.dotSizeSM).div(2).mul(-1).sub(10).equal()}},"&-lg":{[`${t}-dot`]:{margin:n(e.dotSizeLG).mul(-1).div(2).equal()},[`${t}-text`]:{paddingTop:n(n(e.dotSizeLG).sub(e.fontSize)).div(2).add(2).equal()},[`&${t}-show-text ${t}-dot`]:{marginTop:n(e.dotSizeLG).div(2).mul(-1).sub(10).equal()}}},[`${t}-container`]:{position:"relative",transition:`opacity ${e.motionDurationSlow}`,"&::after":{position:"absolute",top:0,insetInlineEnd:0,bottom:0,insetInlineStart:0,zIndex:10,width:"100%",height:"100%",background:e.colorBgContainer,opacity:0,transition:`all ${e.motionDurationSlow}`,content:'""',pointerEvents:"none"}},[`${t}-blur`]:{clear:"both",opacity:.5,userSelect:"none",pointerEvents:"none","&::after":{opacity:.4,pointerEvents:"auto"}}},"&-tip":{color:e.spinDotDefault},[`${t}-dot-holder`]:{width:"1em",height:"1em",fontSize:e.dotSize,display:"inline-block",transition:`transform ${e.motionDurationSlow} ease, opacity ${e.motionDurationSlow} ease`,transformOrigin:"50% 50%",lineHeight:1,color:e.colorPrimary,"&-hidden":{transform:"scale(0.3)",opacity:0}},[`${t}-dot-progress`]:{position:"absolute",inset:0},[`${t}-dot`]:{position:"relative",display:"inline-block",fontSize:e.dotSize,width:"1em",height:"1em","&-item":{position:"absolute",display:"block",width:n(e.dotSize).sub(n(e.marginXXS).div(2)).div(2).equal(),height:n(e.dotSize).sub(n(e.marginXXS).div(2)).div(2).equal(),background:"currentColor",borderRadius:"100%",transform:"scale(0.75)",transformOrigin:"50% 50%",opacity:.3,animationName:H9,animationDuration:"1s",animationIterationCount:"infinite",animationTimingFunction:"linear",animationDirection:"alternate","&:nth-child(1)":{top:0,insetInlineStart:0,animationDelay:"0s"},"&:nth-child(2)":{top:0,insetInlineEnd:0,animationDelay:"0.4s"},"&:nth-child(3)":{insetInlineEnd:0,bottom:0,animationDelay:"0.8s"},"&:nth-child(4)":{bottom:0,insetInlineStart:0,animationDelay:"1.2s"}},"&-spin":{transform:"rotate(45deg)",animationName:V9,animationDuration:"1.2s",animationIterationCount:"infinite",animationTimingFunction:"linear"},"&-circle":{strokeLinecap:"round",transition:["stroke-dashoffset","stroke-dasharray","stroke","stroke-width","opacity"].map(r=>`${r} ${e.motionDurationSlow} ease`).join(","),fillOpacity:0,stroke:"currentcolor"},"&-circle-bg":{stroke:e.colorFillSecondary}},[`&-sm ${t}-dot`]:{"&, &-holder":{fontSize:e.dotSizeSM}},[`&-sm ${t}-dot-holder`]:{i:{width:n(n(e.dotSizeSM).sub(n(e.marginXXS).div(2))).div(2).equal(),height:n(n(e.dotSizeSM).sub(n(e.marginXXS).div(2))).div(2).equal()}},[`&-lg ${t}-dot`]:{"&, &-holder":{fontSize:e.dotSizeLG}},[`&-lg ${t}-dot-holder`]:{i:{width:n(n(e.dotSizeLG).sub(e.marginXXS)).div(2).equal(),height:n(n(e.dotSizeLG).sub(e.marginXXS)).div(2).equal()}},[`&${t}-show-text ${t}-text`]:{display:"block"}})}},K9=e=>{const{controlHeightLG:t,controlHeight:n}=e;return{contentHeight:400,dotSize:t/2,dotSizeSM:t*.35,dotSizeLG:n}},U9=zn("Spin",e=>{const t=$n(e,{spinDotDefault:e.colorTextDescription});return[W9(t)]},K9),q9=200,SE=[[30,.05],[70,.03],[96,.01]];function Y9(e,t){const[n,r]=i.useState(0),a=i.useRef(null),o=t==="auto";return i.useEffect(()=>(o&&e&&(r(0),a.current=setInterval(()=>{r(l=>{const c=100-l;for(let d=0;d{clearInterval(a.current)}),[o,e]),o?n:t}var G9=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 a=0,r=Object.getOwnPropertySymbols(e);a{var t;const{prefixCls:n,spinning:r=!0,delay:a=0,className:o,rootClassName:l,size:c="default",tip:d,wrapperClassName:f,style:m,children:p,fullscreen:v=!1,indicator:h,percent:b}=e,x=G9(e,["prefixCls","spinning","delay","className","rootClassName","size","tip","wrapperClassName","style","children","fullscreen","indicator","percent"]),{getPrefixCls:y,direction:C,className:w,style:E,indicator:I}=wa("spin"),_=y("spin",n),[O,P,j]=U9(_),[R,k]=i.useState(()=>r&&!X9(r,a)),L=Y9(R,b);i.useEffect(()=>{if(r){const D=OV(a,()=>{k(!0)});return D(),()=>{var V;(V=D==null?void 0:D.cancel)===null||V===void 0||V.call(D)}}k(!1)},[a,r]);const W=i.useMemo(()=>typeof p<"u"&&!v,[p,v]),B=ce(_,w,{[`${_}-sm`]:c==="small",[`${_}-lg`]:c==="large",[`${_}-spinning`]:R,[`${_}-show-text`]:!!d,[`${_}-rtl`]:C==="rtl"},o,!v&&l,P,j),F=ce(`${_}-container`,{[`${_}-blur`]:R}),A=(t=h??I)!==null&&t!==void 0?t:QR,T=Object.assign(Object.assign({},E),m),M=i.createElement("div",Object.assign({},x,{style:T,className:B,"aria-live":"polite","aria-busy":R}),i.createElement(B9,{prefixCls:_,indicator:A,percent:L}),d&&(W||v)?i.createElement("div",{className:`${_}-text`},d):null);return O(W?i.createElement("div",Object.assign({},x,{className:ce(`${_}-nested-loading`,f,P,j)}),R&&i.createElement("div",{key:"loading"},M),i.createElement("div",{className:F,key:"container"},p)):v?i.createElement("div",{className:ce(`${_}-fullscreen`,{[`${_}-fullscreen-show`]:R},l,P,j)},M):M)};Od.setDefaultIndicator=e=>{QR=e};const sx=be.createContext({});sx.Consumer;var JR=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 a=0,r=Object.getOwnPropertySymbols(e);a{var{prefixCls:t,className:n,avatar:r,title:a,description:o}=e,l=JR(e,["prefixCls","className","avatar","title","description"]);const{getPrefixCls:c}=i.useContext(Gt),d=c("list",t),f=ce(`${d}-item-meta`,n),m=be.createElement("div",{className:`${d}-item-meta-content`},a&&be.createElement("h4",{className:`${d}-item-meta-title`},a),o&&be.createElement("div",{className:`${d}-item-meta-description`},o));return be.createElement("div",Object.assign({},l,{className:f}),r&&be.createElement("div",{className:`${d}-item-meta-avatar`},r),(a||o)&&m)},J9=be.forwardRef((e,t)=>{const{prefixCls:n,children:r,actions:a,extra:o,styles:l,className:c,classNames:d,colStyle:f}=e,m=JR(e,["prefixCls","children","actions","extra","styles","className","classNames","colStyle"]),{grid:p,itemLayout:v}=i.useContext(sx),{getPrefixCls:h,list:b}=i.useContext(Gt),x=P=>{var j,R;return ce((R=(j=b==null?void 0:b.item)===null||j===void 0?void 0:j.classNames)===null||R===void 0?void 0:R[P],d==null?void 0:d[P])},y=P=>{var j,R;return Object.assign(Object.assign({},(R=(j=b==null?void 0:b.item)===null||j===void 0?void 0:j.styles)===null||R===void 0?void 0:R[P]),l==null?void 0:l[P])},C=()=>{let P=!1;return i.Children.forEach(r,j=>{typeof j=="string"&&(P=!0)}),P&&i.Children.count(r)>1},w=()=>v==="vertical"?!!o:!C(),E=h("list",n),I=a&&a.length>0&&be.createElement("ul",{className:ce(`${E}-item-action`,x("actions")),key:"actions",style:y("actions")},a.map((P,j)=>be.createElement("li",{key:`${E}-item-action-${j}`},P,j!==a.length-1&&be.createElement("em",{className:`${E}-item-action-split`})))),_=p?"div":"li",O=be.createElement(_,Object.assign({},m,p?{}:{ref:t},{className:ce(`${E}-item`,{[`${E}-item-no-flex`]:!w()},c)}),v==="vertical"&&o?[be.createElement("div",{className:`${E}-item-main`,key:"content"},r,I),be.createElement("div",{className:ce(`${E}-item-extra`,x("extra")),key:"extra",style:y("extra")},o)]:[r,I,ia(o,{key:"extra"})]);return p?be.createElement(Jb,{ref:t,flex:1,style:f},O):O}),ZR=J9;ZR.Meta=Q9;const Z9=e=>{const{listBorderedCls:t,componentCls:n,paddingLG:r,margin:a,itemPaddingSM:o,itemPaddingLG:l,marginLG:c,borderRadiusLG:d}=e;return{[t]:{border:`${ne(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,borderRadius:d,[`${n}-header,${n}-footer,${n}-item`]:{paddingInline:r},[`${n}-pagination`]:{margin:`${ne(a)} ${ne(c)}`}},[`${t}${n}-sm`]:{[`${n}-item,${n}-header,${n}-footer`]:{padding:o}},[`${t}${n}-lg`]:{[`${n}-item,${n}-header,${n}-footer`]:{padding:l}}}},eK=e=>{const{componentCls:t,screenSM:n,screenMD:r,marginLG:a,marginSM:o,margin:l}=e;return{[`@media screen and (max-width:${r}px)`]:{[t]:{[`${t}-item`]:{[`${t}-item-action`]:{marginInlineStart:a}}},[`${t}-vertical`]:{[`${t}-item`]:{[`${t}-item-extra`]:{marginInlineStart:a}}}},[`@media screen and (max-width: ${n}px)`]:{[t]:{[`${t}-item`]:{flexWrap:"wrap",[`${t}-action`]:{marginInlineStart:o}}},[`${t}-vertical`]:{[`${t}-item`]:{flexWrap:"wrap-reverse",[`${t}-item-main`]:{minWidth:e.contentWidth},[`${t}-item-extra`]:{margin:`auto auto ${ne(l)}`}}}}}},tK=e=>{const{componentCls:t,antCls:n,controlHeight:r,minHeight:a,paddingSM:o,marginLG:l,padding:c,itemPadding:d,colorPrimary:f,itemPaddingSM:m,itemPaddingLG:p,paddingXS:v,margin:h,colorText:b,colorTextDescription:x,motionDurationSlow:y,lineWidth:C,headerBg:w,footerBg:E,emptyTextPadding:I,metaMarginBottom:_,avatarMarginRight:O,titleMarginBottom:P,descriptionFontSize:j}=e;return{[t]:Object.assign(Object.assign({},Ln(e)),{position:"relative","*":{outline:"none"},[`${t}-header`]:{background:w},[`${t}-footer`]:{background:E},[`${t}-header, ${t}-footer`]:{paddingBlock:o},[`${t}-pagination`]:{marginBlockStart:l,[`${n}-pagination-options`]:{textAlign:"start"}},[`${t}-spin`]:{minHeight:a,textAlign:"center"},[`${t}-items`]:{margin:0,padding:0,listStyle:"none"},[`${t}-item`]:{display:"flex",alignItems:"center",justifyContent:"space-between",padding:d,color:b,[`${t}-item-meta`]:{display:"flex",flex:1,alignItems:"flex-start",maxWidth:"100%",[`${t}-item-meta-avatar`]:{marginInlineEnd:O},[`${t}-item-meta-content`]:{flex:"1 0",width:0,color:b},[`${t}-item-meta-title`]:{margin:`0 0 ${ne(e.marginXXS)} 0`,color:b,fontSize:e.fontSize,lineHeight:e.lineHeight,"> a":{color:b,transition:`all ${y}`,"&:hover":{color:f}}},[`${t}-item-meta-description`]:{color:x,fontSize:j,lineHeight:e.lineHeight}},[`${t}-item-action`]:{flex:"0 0 auto",marginInlineStart:e.marginXXL,padding:0,fontSize:0,listStyle:"none","& > li":{position:"relative",display:"inline-block",padding:`0 ${ne(v)}`,color:x,fontSize:e.fontSize,lineHeight:e.lineHeight,textAlign:"center","&:first-child":{paddingInlineStart:0}},[`${t}-item-action-split`]:{position:"absolute",insetBlockStart:"50%",insetInlineEnd:0,width:C,height:e.calc(e.fontHeight).sub(e.calc(e.marginXXS).mul(2)).equal(),transform:"translateY(-50%)",backgroundColor:e.colorSplit}}},[`${t}-empty`]:{padding:`${ne(c)} 0`,color:x,fontSize:e.fontSizeSM,textAlign:"center"},[`${t}-empty-text`]:{padding:I,color:e.colorTextDisabled,fontSize:e.fontSize,textAlign:"center"},[`${t}-item-no-flex`]:{display:"block"}}),[`${t}-grid ${n}-col > ${t}-item`]:{display:"block",maxWidth:"100%",marginBlockEnd:h,paddingBlock:0,borderBlockEnd:"none"},[`${t}-vertical ${t}-item`]:{alignItems:"initial",[`${t}-item-main`]:{display:"block",flex:1},[`${t}-item-extra`]:{marginInlineStart:l},[`${t}-item-meta`]:{marginBlockEnd:_,[`${t}-item-meta-title`]:{marginBlockStart:0,marginBlockEnd:P,color:b,fontSize:e.fontSizeLG,lineHeight:e.lineHeightLG}},[`${t}-item-action`]:{marginBlockStart:c,marginInlineStart:"auto","> li":{padding:`0 ${ne(c)}`,"&:first-child":{paddingInlineStart:0}}}},[`${t}-split ${t}-item`]:{borderBlockEnd:`${ne(e.lineWidth)} ${e.lineType} ${e.colorSplit}`,"&:last-child":{borderBlockEnd:"none"}},[`${t}-split ${t}-header`]:{borderBlockEnd:`${ne(e.lineWidth)} ${e.lineType} ${e.colorSplit}`},[`${t}-split${t}-empty ${t}-footer`]:{borderTop:`${ne(e.lineWidth)} ${e.lineType} ${e.colorSplit}`},[`${t}-loading ${t}-spin-nested-loading`]:{minHeight:r},[`${t}-split${t}-something-after-last-item ${n}-spin-container > ${t}-items > ${t}-item:last-child`]:{borderBlockEnd:`${ne(e.lineWidth)} ${e.lineType} ${e.colorSplit}`},[`${t}-lg ${t}-item`]:{padding:p},[`${t}-sm ${t}-item`]:{padding:m},[`${t}:not(${t}-vertical)`]:{[`${t}-item-no-flex`]:{[`${t}-item-action`]:{float:"right"}}}}},nK=e=>({contentWidth:220,itemPadding:`${ne(e.paddingContentVertical)} 0`,itemPaddingSM:`${ne(e.paddingContentVerticalSM)} ${ne(e.paddingContentHorizontal)}`,itemPaddingLG:`${ne(e.paddingContentVerticalLG)} ${ne(e.paddingContentHorizontalLG)}`,headerBg:"transparent",footerBg:"transparent",emptyTextPadding:e.padding,metaMarginBottom:e.padding,avatarMarginRight:e.padding,titleMarginBottom:e.paddingSM,descriptionFontSize:e.fontSize}),rK=zn("List",e=>{const t=$n(e,{listBorderedCls:`${e.componentCls}-bordered`,minHeight:e.controlHeightLG});return[tK(t),Z9(t),eK(t)]},nK);var aK=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 a=0,r=Object.getOwnPropertySymbols(e);a(Se,Re)=>{var De;j(Se),k(Re),n&&((De=n==null?void 0:n[we])===null||De===void 0||De.call(n,Se,Re))},D=M("onChange"),V=M("onShowSizeChange"),K=(we,Se)=>{if(!E)return null;let Re;return typeof w=="function"?Re=w(we):w?Re=we[w]:Re=we.key,Re||(Re=`list-item-${Se}`),i.createElement(i.Fragment,{key:Re},E(we,Se))},z=()=>!!(p||n||y),U=L("list",r),[Y,q,X]=rK(U);let te=C;typeof te=="boolean"&&(te={spinning:te});const ee=!!(te!=null&&te.spinning),J=Zr(b);let ie="";switch(J){case"large":ie="lg";break;case"small":ie="sm";break}const de=ce(U,{[`${U}-vertical`]:m==="vertical",[`${U}-${ie}`]:ie,[`${U}-split`]:o,[`${U}-bordered`]:a,[`${U}-loading`]:ee,[`${U}-grid`]:!!v,[`${U}-something-after-last-item`]:z(),[`${U}-rtl`]:W==="rtl"},B,l,c,q,X),oe=lx(T,{total:h.length,current:P,pageSize:R},n||{}),le=Math.ceil(oe.total/oe.pageSize);oe.current>le&&(oe.current=le);const ae=n&&i.createElement("div",{className:ce(`${U}-pagination`)},i.createElement(YR,Object.assign({align:"end"},oe,{onChange:D,onShowSizeChange:V})));let ue=Te(h);n&&h.length>(oe.current-1)*oe.pageSize&&(ue=Te(h).splice((oe.current-1)*oe.pageSize,oe.pageSize));const pe=Object.keys(v||{}).some(we=>["xs","sm","md","lg","xl","xxl"].includes(we)),fe=Lp(pe),xe=i.useMemo(()=>{for(let we=0;we{if(!v)return;const we=xe&&v[xe]?v[xe]:v.column;if(we)return{width:`${100/we}%`,maxWidth:`${100/we}%`}},[JSON.stringify(v),xe]);let Le=ee&&i.createElement("div",{style:{minHeight:53}});if(ue.length>0){const we=ue.map((Se,Re)=>K(Se,Re));Le=v?i.createElement(xR,{gutter:v.gutter},i.Children.map(we,Se=>i.createElement("div",{key:Se==null?void 0:Se.key,style:Ee},Se))):i.createElement("ul",{className:`${U}-items`},we)}else!f&&!ee&&(Le=i.createElement("div",{className:`${U}-empty-text`},(I==null?void 0:I.emptyText)||(A==null?void 0:A("List"))||i.createElement(wb,{componentName:"List"})));const Ne=oe.position||"bottom",ge=i.useMemo(()=>({grid:v,itemLayout:m}),[JSON.stringify(v),m]);return Y(i.createElement(sx.Provider,{value:ge},i.createElement("div",Object.assign({ref:t,style:Object.assign(Object.assign({},F),d),className:de},_),(Ne==="top"||Ne==="both")&&ae,x&&i.createElement("div",{className:`${U}-header`},x),i.createElement(Od,Object.assign({},te),Le,f),y&&i.createElement("div",{className:`${U}-footer`},y),p||(Ne==="bottom"||Ne==="both")&&ae)))}const iK=i.forwardRef(oK),C0=iK;C0.Item=ZR;const lK=function(e){return(arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1)&&e==null?[]:Array.isArray(e)?e:[e]};let to=null,Ll=e=>e(),nd=[],rd={};function CE(){const{getContainer:e,duration:t,rtl:n,maxCount:r,top:a}=rd,o=(e==null?void 0:e())||document.body;return{getContainer:()=>o,duration:t,rtl:n,maxCount:r,top:a}}const sK=be.forwardRef((e,t)=>{const{messageConfig:n,sync:r}=e,{getPrefixCls:a}=i.useContext(Gt),o=rd.prefixCls||a("message"),l=i.useContext(RL),[c,d]=JI(Object.assign(Object.assign(Object.assign({},n),{prefixCls:o}),l.message));return be.useImperativeHandle(t,()=>{const f=Object.assign({},c);return Object.keys(f).forEach(m=>{f[m]=function(){return r(),c[m].apply(c,arguments)}}),{instance:f,sync:r}}),d}),cK=be.forwardRef((e,t)=>{const[n,r]=be.useState(CE),a=()=>{r(CE)};be.useEffect(a,[]);const o=e4(),l=o.getRootPrefixCls(),c=o.getIconPrefixCls(),d=o.getTheme(),f=be.createElement(sK,{ref:t,sync:a,messageConfig:n});return be.createElement(Ei,{prefixCls:l,iconPrefixCls:c,theme:d},o.holderRender?o.holderRender(f):f)});function Jp(){if(!to){const e=document.createDocumentFragment(),t={fragment:e};to=t,Ll(()=>{ZI()(be.createElement(cK,{ref:r=>{const{instance:a,sync:o}=r||{};Promise.resolve().then(()=>{!t.instance&&a&&(t.instance=a,t.sync=o,Jp())})}}),e)});return}to.instance&&(nd.forEach(e=>{const{type:t,skipped:n}=e;if(!n)switch(t){case"open":{Ll(()=>{const r=to.instance.open(Object.assign(Object.assign({},rd),e.config));r==null||r.then(e.resolve),e.setCloseFn(r)});break}case"destroy":Ll(()=>{to==null||to.instance.destroy(e.key)});break;default:Ll(()=>{var r;const a=(r=to.instance)[t].apply(r,Te(e.args));a==null||a.then(e.resolve),e.setCloseFn(a)})}}),nd=[])}function uK(e){rd=Object.assign(Object.assign({},rd),e),Ll(()=>{var t;(t=to==null?void 0:to.sync)===null||t===void 0||t.call(to)})}function dK(e){const t=cb(n=>{let r;const a={type:"open",config:e,resolve:n,setCloseFn:o=>{r=o}};return nd.push(a),()=>{r?Ll(()=>{r()}):a.skipped=!0}});return Jp(),t}function fK(e,t){const n=cb(r=>{let a;const o={type:e,args:t,resolve:r,setCloseFn:l=>{a=l}};return nd.push(o),()=>{a?Ll(()=>{a()}):o.skipped=!0}});return Jp(),n}const mK=e=>{nd.push({type:"destroy",key:e}),Jp()},pK=["success","info","warning","error","loading"],vK={open:dK,destroy:mK,config:uK,useMessage:l3,_InternalPanelDoNotUseOrYouWillBeFired:Z4},cx=vK;pK.forEach(e=>{cx[e]=function(){for(var t=arguments.length,n=new Array(t),r=0;r10&&arguments[10]!==void 0?arguments[10]:0,v=r/100*360*((360-l)/360),h=l===0?0:{bottom:0,top:180,left:90,right:-90}[c],b=(100-a)/100*n;f==="round"&&a!==100&&(b+=m/2,b>=n&&(b=n-.01));var x=wu/2;return{stroke:typeof d=="string"?d:void 0,strokeDasharray:"".concat(n,"px ").concat(t),strokeDashoffset:b+p,transform:"rotate(".concat(o+v+h,"deg)"),transformOrigin:"".concat(x,"px ").concat(x,"px"),transition:"stroke-dashoffset .3s ease 0s, stroke-dasharray .3s ease 0s, stroke .3s, stroke-width .06s ease .3s, opacity .3s ease 0s",fillOpacity:0}},CK=["id","prefixCls","steps","strokeWidth","trailWidth","gapDegree","gapPosition","trailColor","strokeLinecap","style","className","strokeColor","percent"];function _E(e){var t=e??[];return Array.isArray(t)?t:[t]}var wK=function(t){var n=Z(Z({},gK),t),r=n.id,a=n.prefixCls,o=n.steps,l=n.strokeWidth,c=n.trailWidth,d=n.gapDegree,f=d===void 0?0:d,m=n.gapPosition,p=n.trailColor,v=n.strokeLinecap,h=n.style,b=n.className,x=n.strokeColor,y=n.percent,C=Kt(n,CK),w=wu/2,E=xK(r),I="".concat(E,"-gradient"),_=w-l/2,O=Math.PI*2*_,P=f>0?90+f/2:-90,j=O*((360-f)/360),R=wt(o)==="object"?o:{count:o,gap:2},k=R.count,L=R.gap,W=_E(y),B=_E(x),F=B.find(function(z){return z&&wt(z)==="object"}),A=F&&wt(F)==="object",T=A?"butt":v,M=Vh(O,j,0,100,P,f,m,p,T,l),D=hK(),V=function(){var U=0;return W.map(function(Y,q){var X=B[q]||B[B.length-1],te=Vh(O,j,U,Y,P,f,m,X,T,l);return U+=Y,i.createElement(SK,{key:q,color:X,ptg:Y,radius:_,prefixCls:a,gradientId:I,style:te,strokeLinecap:T,strokeWidth:l,gapDegree:f,ref:function(J){D[q]=J},size:wu})}).reverse()},K=function(){var U=Math.round(k*(W[0]/100)),Y=100/k,q=0;return new Array(k).fill(null).map(function(X,te){var ee=te<=U-1?B[0]:p,J=ee&&wt(ee)==="object"?"url(#".concat(I,")"):void 0,ie=Vh(O,j,q,Y,P,f,m,ee,"butt",l,L);return q+=(j-ie.strokeDashoffset+L)*100/j,i.createElement("circle",{key:te,className:"".concat(a,"-circle-path"),r:_,cx:w,cy:w,stroke:J,strokeWidth:l,opacity:1,style:ie,ref:function(oe){D[te]=oe}})})};return i.createElement("svg",Pe({className:ce("".concat(a,"-circle"),b),viewBox:"0 0 ".concat(wu," ").concat(wu),style:h,id:r,role:"presentation"},C),!k&&i.createElement("circle",{className:"".concat(a,"-circle-trail"),r:_,cx:w,cy:w,stroke:p,strokeLinecap:T,strokeWidth:c||l,style:M}),k?K():V())};function ol(e){return!e||e<0?0:e>100?100:e}function tp(e){let{success:t,successPercent:n}=e,r=n;return t&&"progress"in t&&(r=t.progress),t&&"percent"in t&&(r=t.percent),r}const $K=e=>{let{percent:t,success:n,successPercent:r}=e;const a=ol(tp({success:n,successPercent:r}));return[a,ol(ol(t)-a)]},EK=e=>{let{success:t={},strokeColor:n}=e;const{strokeColor:r}=t;return[r||Us.green,n||null]},Zp=(e,t,n)=>{var r,a,o,l;let c=-1,d=-1;if(t==="step"){const f=n.steps,m=n.strokeWidth;typeof e=="string"||typeof e>"u"?(c=e==="small"?2:14,d=m??8):typeof e=="number"?[c,d]=[e,e]:[c=14,d=8]=Array.isArray(e)?e:[e.width,e.height],c*=f}else if(t==="line"){const f=n==null?void 0:n.strokeWidth;typeof e=="string"||typeof e>"u"?d=f||(e==="small"?6:8):typeof e=="number"?[c,d]=[e,e]:[c=-1,d=8]=Array.isArray(e)?e:[e.width,e.height]}else(t==="circle"||t==="dashboard")&&(typeof e=="string"||typeof e>"u"?[c,d]=e==="small"?[60,60]:[120,120]:typeof e=="number"?[c,d]=[e,e]:Array.isArray(e)&&(c=(a=(r=e[0])!==null&&r!==void 0?r:e[1])!==null&&a!==void 0?a:120,d=(l=(o=e[0])!==null&&o!==void 0?o:e[1])!==null&&l!==void 0?l:120));return[c,d]},_K=3,IK=e=>_K/e*100,OK=e=>{const{prefixCls:t,trailColor:n=null,strokeLinecap:r="round",gapPosition:a,gapDegree:o,width:l=120,type:c,children:d,success:f,size:m=l,steps:p}=e,[v,h]=Zp(m,"circle");let{strokeWidth:b}=e;b===void 0&&(b=Math.max(IK(v),6));const x={width:v,height:h,fontSize:v*.15+6},y=i.useMemo(()=>{if(o||o===0)return o;if(c==="dashboard")return 75},[o,c]),C=$K(e),w=a||c==="dashboard"&&"bottom"||void 0,E=Object.prototype.toString.call(e.strokeColor)==="[object Object]",I=EK({success:f,strokeColor:e.strokeColor}),_=ce(`${t}-inner`,{[`${t}-circle-gradient`]:E}),O=i.createElement(wK,{steps:p,percent:p?C[1]:C,strokeWidth:b,trailWidth:b,strokeColor:p?I[1]:I,strokeLinecap:r,trailColor:n,prefixCls:t,gapDegree:y,gapPosition:w}),P=v<=20,j=i.createElement("div",{className:_,style:x},O,!P&&d);return P?i.createElement(io,{title:d},j):j},np="--progress-line-stroke-color",eP="--progress-percent",IE=e=>{const t=e?"100%":"-100%";return new jn(`antProgress${e?"RTL":"LTR"}Active`,{"0%":{transform:`translateX(${t}) scaleX(0)`,opacity:.1},"20%":{transform:`translateX(${t}) scaleX(0)`,opacity:.5},to:{transform:"translateX(0) scaleX(1)",opacity:0}})},RK=e=>{const{componentCls:t,iconCls:n}=e;return{[t]:Object.assign(Object.assign({},Ln(e)),{display:"inline-block","&-rtl":{direction:"rtl"},"&-line":{position:"relative",width:"100%",fontSize:e.fontSize},[`${t}-outer`]:{display:"inline-flex",alignItems:"center",width:"100%"},[`${t}-inner`]:{position:"relative",display:"inline-block",width:"100%",flex:1,overflow:"hidden",verticalAlign:"middle",backgroundColor:e.remainingColor,borderRadius:e.lineBorderRadius},[`${t}-inner:not(${t}-circle-gradient)`]:{[`${t}-circle-path`]:{stroke:e.defaultColor}},[`${t}-success-bg, ${t}-bg`]:{position:"relative",background:e.defaultColor,borderRadius:e.lineBorderRadius,transition:`all ${e.motionDurationSlow} ${e.motionEaseInOutCirc}`},[`${t}-layout-bottom`]:{display:"flex",flexDirection:"column",alignItems:"center",justifyContent:"center",[`${t}-text`]:{width:"max-content",marginInlineStart:0,marginTop:e.marginXXS}},[`${t}-bg`]:{overflow:"hidden","&::after":{content:'""',background:{_multi_value_:!0,value:["inherit",`var(${np})`]},height:"100%",width:`calc(1 / var(${eP}) * 100%)`,display:"block"},[`&${t}-bg-inner`]:{minWidth:"max-content","&::after":{content:"none"},[`${t}-text-inner`]:{color:e.colorWhite,[`&${t}-text-bright`]:{color:"rgba(0, 0, 0, 0.45)"}}}},[`${t}-success-bg`]:{position:"absolute",insetBlockStart:0,insetInlineStart:0,backgroundColor:e.colorSuccess},[`${t}-text`]:{display:"inline-block",marginInlineStart:e.marginXS,color:e.colorText,lineHeight:1,width:"2em",whiteSpace:"nowrap",textAlign:"start",verticalAlign:"middle",wordBreak:"normal",[n]:{fontSize:e.fontSize},[`&${t}-text-outer`]:{width:"max-content"},[`&${t}-text-outer${t}-text-start`]:{width:"max-content",marginInlineStart:0,marginInlineEnd:e.marginXS}},[`${t}-text-inner`]:{display:"flex",justifyContent:"center",alignItems:"center",width:"100%",height:"100%",marginInlineStart:0,padding:`0 ${ne(e.paddingXXS)}`,[`&${t}-text-start`]:{justifyContent:"start"},[`&${t}-text-end`]:{justifyContent:"end"}},[`&${t}-status-active`]:{[`${t}-bg::before`]:{position:"absolute",inset:0,backgroundColor:e.colorBgContainer,borderRadius:e.lineBorderRadius,opacity:0,animationName:IE(),animationDuration:e.progressActiveMotionDuration,animationTimingFunction:e.motionEaseOutQuint,animationIterationCount:"infinite",content:'""'}},[`&${t}-rtl${t}-status-active`]:{[`${t}-bg::before`]:{animationName:IE(!0)}},[`&${t}-status-exception`]:{[`${t}-bg`]:{backgroundColor:e.colorError},[`${t}-text`]:{color:e.colorError}},[`&${t}-status-exception ${t}-inner:not(${t}-circle-gradient)`]:{[`${t}-circle-path`]:{stroke:e.colorError}},[`&${t}-status-success`]:{[`${t}-bg`]:{backgroundColor:e.colorSuccess},[`${t}-text`]:{color:e.colorSuccess}},[`&${t}-status-success ${t}-inner:not(${t}-circle-gradient)`]:{[`${t}-circle-path`]:{stroke:e.colorSuccess}}})}},PK=e=>{const{componentCls:t,iconCls:n}=e;return{[t]:{[`${t}-circle-trail`]:{stroke:e.remainingColor},[`&${t}-circle ${t}-inner`]:{position:"relative",lineHeight:1,backgroundColor:"transparent"},[`&${t}-circle ${t}-text`]:{position:"absolute",insetBlockStart:"50%",insetInlineStart:0,width:"100%",margin:0,padding:0,color:e.circleTextColor,fontSize:e.circleTextFontSize,lineHeight:1,whiteSpace:"normal",textAlign:"center",transform:"translateY(-50%)",[n]:{fontSize:e.circleIconFontSize}},[`${t}-circle&-status-exception`]:{[`${t}-text`]:{color:e.colorError}},[`${t}-circle&-status-success`]:{[`${t}-text`]:{color:e.colorSuccess}}},[`${t}-inline-circle`]:{lineHeight:1,[`${t}-inner`]:{verticalAlign:"bottom"}}}},NK=e=>{const{componentCls:t}=e;return{[t]:{[`${t}-steps`]:{display:"inline-block","&-outer":{display:"flex",flexDirection:"row",alignItems:"center"},"&-item":{flexShrink:0,minWidth:e.progressStepMinWidth,marginInlineEnd:e.progressStepMarginInlineEnd,backgroundColor:e.remainingColor,transition:`all ${e.motionDurationSlow}`,"&-active":{backgroundColor:e.defaultColor}}}}}},jK=e=>{const{componentCls:t,iconCls:n}=e;return{[t]:{[`${t}-small&-line, ${t}-small&-line ${t}-text ${n}`]:{fontSize:e.fontSizeSM}}}},kK=e=>({circleTextColor:e.colorText,defaultColor:e.colorInfo,remainingColor:e.colorFillSecondary,lineBorderRadius:100,circleTextFontSize:"1em",circleIconFontSize:`${e.fontSize/e.fontSizeSM}em`}),MK=zn("Progress",e=>{const t=e.calc(e.marginXXS).div(2).equal(),n=$n(e,{progressStepMarginInlineEnd:t,progressStepMinWidth:t,progressActiveMotionDuration:"2.4s"});return[RK(n),PK(n),NK(n),jK(n)]},kK);var TK=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 a=0,r=Object.getOwnPropertySymbols(e);a{let t=[];return Object.keys(e).forEach(n=>{const r=parseFloat(n.replace(/%/g,""));Number.isNaN(r)||t.push({key:r,value:e[n]})}),t=t.sort((n,r)=>n.key-r.key),t.map(n=>{let{key:r,value:a}=n;return`${a} ${r}%`}).join(", ")},FK=(e,t)=>{const{from:n=Us.blue,to:r=Us.blue,direction:a=t==="rtl"?"to left":"to right"}=e,o=TK(e,["from","to","direction"]);if(Object.keys(o).length!==0){const c=DK(o),d=`linear-gradient(${a}, ${c})`;return{background:d,[np]:d}}const l=`linear-gradient(${a}, ${n}, ${r})`;return{background:l,[np]:l}},LK=e=>{const{prefixCls:t,direction:n,percent:r,size:a,strokeWidth:o,strokeColor:l,strokeLinecap:c="round",children:d,trailColor:f=null,percentPosition:m,success:p}=e,{align:v,type:h}=m,b=l&&typeof l!="string"?FK(l,n):{[np]:l,background:l},x=c==="square"||c==="butt"?0:void 0,y=a??[-1,o||(a==="small"?6:8)],[C,w]=Zp(y,"line",{strokeWidth:o}),E={backgroundColor:f||void 0,borderRadius:x},I=Object.assign(Object.assign({width:`${ol(r)}%`,height:w,borderRadius:x},b),{[eP]:ol(r)/100}),_=tp(e),O={width:`${ol(_)}%`,height:w,borderRadius:x,backgroundColor:p==null?void 0:p.strokeColor},P={width:C<0?"100%":C},j=i.createElement("div",{className:`${t}-inner`,style:E},i.createElement("div",{className:ce(`${t}-bg`,`${t}-bg-${h}`),style:I},h==="inner"&&d),_!==void 0&&i.createElement("div",{className:`${t}-success-bg`,style:O})),R=h==="outer"&&v==="start",k=h==="outer"&&v==="end";return h==="outer"&&v==="center"?i.createElement("div",{className:`${t}-layout-bottom`},j,d):i.createElement("div",{className:`${t}-outer`,style:P},R&&d,j,k&&d)},AK=e=>{const{size:t,steps:n,rounding:r=Math.round,percent:a=0,strokeWidth:o=8,strokeColor:l,trailColor:c=null,prefixCls:d,children:f}=e,m=r(n*(a/100)),v=t??[t==="small"?2:14,o],[h,b]=Zp(v,"step",{steps:n,strokeWidth:o}),x=h/n,y=Array.from({length:n});for(let C=0;C{const{prefixCls:n,className:r,rootClassName:a,steps:o,strokeColor:l,percent:c=0,size:d="default",showInfo:f=!0,type:m="line",status:p,format:v,style:h,percentPosition:b={}}=e,x=zK(e,["prefixCls","className","rootClassName","steps","strokeColor","percent","size","showInfo","type","status","format","style","percentPosition"]),{align:y="end",type:C="outer"}=b,w=Array.isArray(l)?l[0]:l,E=typeof l=="string"||Array.isArray(l)?l:void 0,I=i.useMemo(()=>{if(w){const V=typeof w=="string"?w:Object.values(w)[0];return new Pn(V).isLight()}return!1},[l]),_=i.useMemo(()=>{var V,K;const z=tp(e);return parseInt(z!==void 0?(V=z??0)===null||V===void 0?void 0:V.toString():(K=c??0)===null||K===void 0?void 0:K.toString(),10)},[c,e.success,e.successPercent]),O=i.useMemo(()=>!BK.includes(p)&&_>=100?"success":p||"normal",[p,_]),{getPrefixCls:P,direction:j,progress:R}=i.useContext(Gt),k=P("progress",n),[L,W,B]=MK(k),F=m==="line",A=F&&!o,T=i.useMemo(()=>{if(!f)return null;const V=tp(e);let K;const z=v||(Y=>`${Y}%`),U=F&&I&&C==="inner";return C==="inner"||v||O!=="exception"&&O!=="success"?K=z(ol(c),ol(V)):O==="exception"?K=F?i.createElement(vd,null):i.createElement(gd,null):O==="success"&&(K=F?i.createElement(lb,null):i.createElement($b,null)),i.createElement("span",{className:ce(`${k}-text`,{[`${k}-text-bright`]:U,[`${k}-text-${y}`]:A,[`${k}-text-${C}`]:A}),title:typeof K=="string"?K:void 0},K)},[f,c,_,O,m,k,v]);let M;m==="line"?M=o?i.createElement(AK,Object.assign({},e,{strokeColor:E,prefixCls:k,steps:typeof o=="object"?o.count:o}),T):i.createElement(LK,Object.assign({},e,{strokeColor:w,prefixCls:k,direction:j,percentPosition:{align:y,type:C}}),T):(m==="circle"||m==="dashboard")&&(M=i.createElement(OK,Object.assign({},e,{strokeColor:w,prefixCls:k,progressStatus:O}),T));const D=ce(k,`${k}-status-${O}`,{[`${k}-${m==="dashboard"&&"circle"||m}`]:m!=="line",[`${k}-inline-circle`]:m==="circle"&&Zp(d,"circle")[0]<=20,[`${k}-line`]:A,[`${k}-line-align-${y}`]:A,[`${k}-line-position-${C}`]:A,[`${k}-steps`]:o,[`${k}-show-info`]:f,[`${k}-${d}`]:typeof d=="string",[`${k}-rtl`]:j==="rtl"},R==null?void 0:R.className,r,a,W,B);return L(i.createElement("div",Object.assign({ref:t,style:Object.assign(Object.assign({},R==null?void 0:R.style),h),className:D,role:"progressbar","aria-valuenow":_,"aria-valuemin":0,"aria-valuemax":100},Qn(x,["trailColor","strokeWidth","width","gapDegree","gapPosition","strokeLinecap","success","successPercent"])),M))});var VK={icon:{tag:"svg",attrs:{viewBox:"0 0 1024 1024",focusable:"false"},children:[{tag:"path",attrs:{d:"M840.4 300H183.6c-19.7 0-30.7 20.8-18.5 35l328.4 380.8c9.4 10.9 27.5 10.9 37 0L858.9 335c12.2-14.2 1.2-35-18.5-35z"}}]},name:"caret-down",theme:"filled"},WK=function(t,n){return i.createElement(pn,Pe({},t,{ref:n,icon:VK}))},KK=i.forwardRef(WK),UK={icon:{tag:"svg",attrs:{viewBox:"0 0 1024 1024",focusable:"false"},children:[{tag:"path",attrs:{d:"M840.4 300H183.6c-19.7 0-30.7 20.8-18.5 35l328.4 380.8c9.4 10.9 27.5 10.9 37 0L858.9 335c12.2-14.2 1.2-35-18.5-35z"}}]},name:"caret-down",theme:"outlined"},qK=function(t,n){return i.createElement(pn,Pe({},t,{ref:n,icon:UK}))},YK=i.forwardRef(qK),GK={icon:{tag:"svg",attrs:{viewBox:"0 0 1024 1024",focusable:"false"},children:[{tag:"path",attrs:{d:"M858.9 689L530.5 308.2c-9.4-10.9-27.5-10.9-37 0L165.1 689c-12.2 14.2-1.2 35 18.5 35h656.8c19.7 0 30.7-20.8 18.5-35z"}}]},name:"caret-up",theme:"outlined"},XK=function(t,n){return i.createElement(pn,Pe({},t,{ref:n,icon:GK}))},QK=i.forwardRef(XK),JK={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M832 64H296c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h496v688c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8V96c0-17.7-14.3-32-32-32zM704 192H192c-17.7 0-32 14.3-32 32v530.7c0 8.5 3.4 16.6 9.4 22.6l173.3 173.3c2.2 2.2 4.7 4 7.4 5.5v1.9h4.2c3.5 1.3 7.2 2 11 2H704c17.7 0 32-14.3 32-32V224c0-17.7-14.3-32-32-32zM350 856.2L263.9 770H350v86.2zM664 888H414V746c0-22.1-17.9-40-40-40H232V264h432v624z"}}]},name:"copy",theme:"outlined"},ZK=function(t,n){return i.createElement(pn,Pe({},t,{ref:n,icon:JK}))},tP=i.forwardRef(ZK),eU={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M360 184h-8c4.4 0 8-3.6 8-8v8h304v-8c0 4.4 3.6 8 8 8h-8v72h72v-80c0-35.3-28.7-64-64-64H352c-35.3 0-64 28.7-64 64v80h72v-72zm504 72H160c-17.7 0-32 14.3-32 32v32c0 4.4 3.6 8 8 8h60.4l24.7 523c1.6 34.1 29.8 61 63.9 61h454c34.2 0 62.3-26.8 63.9-61l24.7-523H888c4.4 0 8-3.6 8-8v-32c0-17.7-14.3-32-32-32zM731.3 840H292.7l-24.2-512h487l-24.2 512z"}}]},name:"delete",theme:"outlined"},tU=function(t,n){return i.createElement(pn,Pe({},t,{ref:n,icon:eU}))},nU=i.forwardRef(tU),rU={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M505.7 661a8 8 0 0012.6 0l112-141.7c4.1-5.2.4-12.9-6.3-12.9h-74.1V168c0-4.4-3.6-8-8-8h-60c-4.4 0-8 3.6-8 8v338.3H400c-6.7 0-10.4 7.7-6.3 12.9l112 141.8zM878 626h-60c-4.4 0-8 3.6-8 8v154H214V634c0-4.4-3.6-8-8-8h-60c-4.4 0-8 3.6-8 8v198c0 17.7 14.3 32 32 32h684c17.7 0 32-14.3 32-32V634c0-4.4-3.6-8-8-8z"}}]},name:"download",theme:"outlined"},aU=function(t,n){return i.createElement(pn,Pe({},t,{ref:n,icon:rU}))},oU=i.forwardRef(aU),iU={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M257.7 752c2 0 4-.2 6-.5L431.9 722c2-.4 3.9-1.3 5.3-2.8l423.9-423.9a9.96 9.96 0 000-14.1L694.9 114.9c-1.9-1.9-4.4-2.9-7.1-2.9s-5.2 1-7.1 2.9L256.8 538.8c-1.5 1.5-2.4 3.3-2.8 5.3l-29.5 168.2a33.5 33.5 0 009.4 29.8c6.6 6.4 14.9 9.9 23.8 9.9zm67.4-174.4L687.8 215l73.3 73.3-362.7 362.6-88.9 15.7 15.6-89zM880 836H144c-17.7 0-32 14.3-32 32v36c0 4.4 3.6 8 8 8h784c4.4 0 8-3.6 8-8v-36c0-17.7-14.3-32-32-32z"}}]},name:"edit",theme:"outlined"},lU=function(t,n){return i.createElement(pn,Pe({},t,{ref:n,icon:iU}))},sU=i.forwardRef(lU),cU={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M864 170h-60c-4.4 0-8 3.6-8 8v518H310v-73c0-6.7-7.8-10.5-13-6.3l-141.9 112a8 8 0 000 12.6l141.9 112c5.3 4.2 13 .4 13-6.3v-75h498c35.3 0 64-28.7 64-64V178c0-4.4-3.6-8-8-8z"}}]},name:"enter",theme:"outlined"},uU=function(t,n){return i.createElement(pn,Pe({},t,{ref:n,icon:cU}))},dU=i.forwardRef(uU),fU={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M854.6 288.6L639.4 73.4c-6-6-14.1-9.4-22.6-9.4H192c-17.7 0-32 14.3-32 32v832c0 17.7 14.3 32 32 32h640c17.7 0 32-14.3 32-32V311.3c0-8.5-3.4-16.7-9.4-22.7zM790.2 326H602V137.8L790.2 326zm1.8 562H232V136h302v216a42 42 0 0042 42h216v494z"}}]},name:"file",theme:"outlined"},mU=function(t,n){return i.createElement(pn,Pe({},t,{ref:n,icon:fU}))},nP=i.forwardRef(mU),pU={icon:function(t,n){return{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M534 352V136H232v752h560V394H576a42 42 0 01-42-42z",fill:n}},{tag:"path",attrs:{d:"M854.6 288.6L639.4 73.4c-6-6-14.1-9.4-22.6-9.4H192c-17.7 0-32 14.3-32 32v832c0 17.7 14.3 32 32 32h640c17.7 0 32-14.3 32-32V311.3c0-8.5-3.4-16.7-9.4-22.7zM602 137.8L790.2 326H602V137.8zM792 888H232V136h302v216a42 42 0 0042 42h216v494z",fill:t}}]}},name:"file",theme:"twotone"},vU=function(t,n){return i.createElement(pn,Pe({},t,{ref:n,icon:pU}))},gU=i.forwardRef(vU),hU={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M349 838c0 17.7 14.2 32 31.8 32h262.4c17.6 0 31.8-14.3 31.8-32V642H349v196zm531.1-684H143.9c-24.5 0-39.8 26.7-27.5 48l221.3 376h348.8l221.3-376c12.1-21.3-3.2-48-27.7-48z"}}]},name:"filter",theme:"filled"},yU=function(t,n){return i.createElement(pn,Pe({},t,{ref:n,icon:hU}))},bU=i.forwardRef(yU),xU={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M928 444H820V330.4c0-17.7-14.3-32-32-32H473L355.7 186.2a8.15 8.15 0 00-5.5-2.2H96c-17.7 0-32 14.3-32 32v592c0 17.7 14.3 32 32 32h698c13 0 24.8-7.9 29.7-20l134-332c1.5-3.8 2.3-7.9 2.3-12 0-17.7-14.3-32-32-32zM136 256h188.5l119.6 114.4H748V444H238c-13 0-24.8 7.9-29.7 20L136 643.2V256zm635.3 512H159l103.3-256h612.4L771.3 768z"}}]},name:"folder-open",theme:"outlined"},SU=function(t,n){return i.createElement(pn,Pe({},t,{ref:n,icon:xU}))},CU=i.forwardRef(SU),wU={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M880 298.4H521L403.7 186.2a8.15 8.15 0 00-5.5-2.2H144c-17.7 0-32 14.3-32 32v592c0 17.7 14.3 32 32 32h736c17.7 0 32-14.3 32-32V330.4c0-17.7-14.3-32-32-32zM840 768H184V256h188.5l119.6 114.4H840V768z"}}]},name:"folder",theme:"outlined"},$U=function(t,n){return i.createElement(pn,Pe({},t,{ref:n,icon:wU}))},EU=i.forwardRef($U),_U={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M300 276.5a56 56 0 1056-97 56 56 0 00-56 97zm0 284a56 56 0 1056-97 56 56 0 00-56 97zM640 228a56 56 0 10112 0 56 56 0 00-112 0zm0 284a56 56 0 10112 0 56 56 0 00-112 0zM300 844.5a56 56 0 1056-97 56 56 0 00-56 97zM640 796a56 56 0 10112 0 56 56 0 00-112 0z"}}]},name:"holder",theme:"outlined"},IU=function(t,n){return i.createElement(pn,Pe({},t,{ref:n,icon:_U}))},OU=i.forwardRef(IU),RU={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M328 544h368c4.4 0 8-3.6 8-8v-48c0-4.4-3.6-8-8-8H328c-4.4 0-8 3.6-8 8v48c0 4.4 3.6 8 8 8z"}},{tag:"path",attrs:{d:"M880 112H144c-17.7 0-32 14.3-32 32v736c0 17.7 14.3 32 32 32h736c17.7 0 32-14.3 32-32V144c0-17.7-14.3-32-32-32zm-40 728H184V184h656v656z"}}]},name:"minus-square",theme:"outlined"},PU=function(t,n){return i.createElement(pn,Pe({},t,{ref:n,icon:RU}))},NU=i.forwardRef(PU),jU={icon:{tag:"svg",attrs:{"fill-rule":"evenodd",viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M489.5 111.66c30.65-1.8 45.98 36.44 22.58 56.33A243.35 243.35 0 00426 354c0 134.76 109.24 244 244 244 72.58 0 139.9-31.83 186.01-86.08 19.87-23.38 58.07-8.1 56.34 22.53C900.4 745.82 725.15 912 512.5 912 291.31 912 112 732.69 112 511.5c0-211.39 164.29-386.02 374.2-399.65l.2-.01zm-81.15 79.75l-4.11 1.36C271.1 237.94 176 364.09 176 511.5 176 697.34 326.66 848 512.5 848c148.28 0 274.94-96.2 319.45-230.41l.63-1.93-.11.07a307.06 307.06 0 01-159.73 46.26L670 662c-170.1 0-308-137.9-308-308 0-58.6 16.48-114.54 46.27-162.47z"}}]},name:"moon",theme:"outlined"},kU=function(t,n){return i.createElement(pn,Pe({},t,{ref:n,icon:jU}))},MU=i.forwardRef(kU),TU={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M779.3 196.6c-94.2-94.2-247.6-94.2-341.7 0l-261 260.8c-1.7 1.7-2.6 4-2.6 6.4s.9 4.7 2.6 6.4l36.9 36.9a9 9 0 0012.7 0l261-260.8c32.4-32.4 75.5-50.2 121.3-50.2s88.9 17.8 121.2 50.2c32.4 32.4 50.2 75.5 50.2 121.2 0 45.8-17.8 88.8-50.2 121.2l-266 265.9-43.1 43.1c-40.3 40.3-105.8 40.3-146.1 0-19.5-19.5-30.2-45.4-30.2-73s10.7-53.5 30.2-73l263.9-263.8c6.7-6.6 15.5-10.3 24.9-10.3h.1c9.4 0 18.1 3.7 24.7 10.3 6.7 6.7 10.3 15.5 10.3 24.9 0 9.3-3.7 18.1-10.3 24.7L372.4 653c-1.7 1.7-2.6 4-2.6 6.4s.9 4.7 2.6 6.4l36.9 36.9a9 9 0 0012.7 0l215.6-215.6c19.9-19.9 30.8-46.3 30.8-74.4s-11-54.6-30.8-74.4c-41.1-41.1-107.9-41-149 0L463 364 224.8 602.1A172.22 172.22 0 00174 724.8c0 46.3 18.1 89.8 50.8 122.5 33.9 33.8 78.3 50.7 122.7 50.7 44.4 0 88.8-16.9 122.6-50.7l309.2-309C824.8 492.7 850 432 850 367.5c.1-64.6-25.1-125.3-70.7-170.9z"}}]},name:"paper-clip",theme:"outlined"},DU=function(t,n){return i.createElement(pn,Pe({},t,{ref:n,icon:TU}))},FU=i.forwardRef(DU),LU={icon:function(t,n){return{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M928 160H96c-17.7 0-32 14.3-32 32v640c0 17.7 14.3 32 32 32h832c17.7 0 32-14.3 32-32V192c0-17.7-14.3-32-32-32zm-40 632H136v-39.9l138.5-164.3 150.1 178L658.1 489 888 761.6V792zm0-129.8L664.2 396.8c-3.2-3.8-9-3.8-12.2 0L424.6 666.4l-144-170.7c-3.2-3.8-9-3.8-12.2 0L136 652.7V232h752v430.2z",fill:t}},{tag:"path",attrs:{d:"M424.6 765.8l-150.1-178L136 752.1V792h752v-30.4L658.1 489z",fill:n}},{tag:"path",attrs:{d:"M136 652.7l132.4-157c3.2-3.8 9-3.8 12.2 0l144 170.7L652 396.8c3.2-3.8 9-3.8 12.2 0L888 662.2V232H136v420.7zM304 280a88 88 0 110 176 88 88 0 010-176z",fill:n}},{tag:"path",attrs:{d:"M276 368a28 28 0 1056 0 28 28 0 10-56 0z",fill:n}},{tag:"path",attrs:{d:"M304 456a88 88 0 100-176 88 88 0 000 176zm0-116c15.5 0 28 12.5 28 28s-12.5 28-28 28-28-12.5-28-28 12.5-28 28-28z",fill:t}}]}},name:"picture",theme:"twotone"},AU=function(t,n){return i.createElement(pn,Pe({},t,{ref:n,icon:LU}))},zU=i.forwardRef(AU),BU={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M328 544h152v152c0 4.4 3.6 8 8 8h48c4.4 0 8-3.6 8-8V544h152c4.4 0 8-3.6 8-8v-48c0-4.4-3.6-8-8-8H544V328c0-4.4-3.6-8-8-8h-48c-4.4 0-8 3.6-8 8v152H328c-4.4 0-8 3.6-8 8v48c0 4.4 3.6 8 8 8z"}},{tag:"path",attrs:{d:"M880 112H144c-17.7 0-32 14.3-32 32v736c0 17.7 14.3 32 32 32h736c17.7 0 32-14.3 32-32V144c0-17.7-14.3-32-32-32zm-40 728H184V184h656v656z"}}]},name:"plus-square",theme:"outlined"},HU=function(t,n){return i.createElement(pn,Pe({},t,{ref:n,icon:BU}))},VU=i.forwardRef(HU),WU={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M866.9 169.9L527.1 54.1C523 52.7 517.5 52 512 52s-11 .7-15.1 2.1L157.1 169.9c-8.3 2.8-15.1 12.4-15.1 21.2v482.4c0 8.8 5.7 20.4 12.6 25.9L499.3 968c3.5 2.7 8 4.1 12.6 4.1s9.2-1.4 12.6-4.1l344.7-268.6c6.9-5.4 12.6-17 12.6-25.9V191.1c.2-8.8-6.6-18.3-14.9-21.2zM810 654.3L512 886.5 214 654.3V226.7l298-101.6 298 101.6v427.6zm-405.8-201c-3-4.1-7.8-6.6-13-6.6H336c-6.5 0-10.3 7.4-6.5 12.7l126.4 174a16.1 16.1 0 0026 0l212.6-292.7c3.8-5.3 0-12.7-6.5-12.7h-55.2c-5.1 0-10 2.5-13 6.6L468.9 542.4l-64.7-89.1z"}}]},name:"safety-certificate",theme:"outlined"},KU=function(t,n){return i.createElement(pn,Pe({},t,{ref:n,icon:WU}))},UU=i.forwardRef(KU),qU={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M688 264c0-4.4-3.6-8-8-8H296c-4.4 0-8 3.6-8 8v48c0 4.4 3.6 8 8 8h384c4.4 0 8-3.6 8-8v-48zm-8 136H296c-4.4 0-8 3.6-8 8v48c0 4.4 3.6 8 8 8h384c4.4 0 8-3.6 8-8v-48c0-4.4-3.6-8-8-8zM480 544H296c-4.4 0-8 3.6-8 8v48c0 4.4 3.6 8 8 8h184c4.4 0 8-3.6 8-8v-48c0-4.4-3.6-8-8-8zm-48 308H208V148h560v344c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8V108c0-17.7-14.3-32-32-32H168c-17.7 0-32 14.3-32 32v784c0 17.7 14.3 32 32 32h264c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm356.8-74.4c29-26.3 47.2-64.3 47.2-106.6 0-79.5-64.5-144-144-144s-144 64.5-144 144c0 42.3 18.2 80.3 47.2 106.6-57 32.5-96.2 92.7-99.2 162.1-.2 4.5 3.5 8.3 8 8.3h48.1c4.2 0 7.7-3.3 8-7.6C564 871.2 621.7 816 692 816s128 55.2 131.9 124.4c.2 4.2 3.7 7.6 8 7.6H880c4.6 0 8.2-3.8 8-8.3-2.9-69.5-42.2-129.6-99.2-162.1zM692 591c44.2 0 80 35.8 80 80s-35.8 80-80 80-80-35.8-80-80 35.8-80 80-80z"}}]},name:"solution",theme:"outlined"},YU=function(t,n){return i.createElement(pn,Pe({},t,{ref:n,icon:qU}))},GU=i.forwardRef(YU),XU={icon:{tag:"svg",attrs:{"fill-rule":"evenodd",viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M548 818v126a16 16 0 01-16 16h-40a16 16 0 01-16-16V818c15.85 1.64 27.84 2.46 36 2.46 8.15 0 20.16-.82 36-2.46m205.25-115.66l89.1 89.1a16 16 0 010 22.62l-28.29 28.29a16 16 0 01-22.62 0l-89.1-89.1c12.37-10.04 21.43-17.95 27.2-23.71 5.76-5.77 13.67-14.84 23.71-27.2m-482.5 0c10.04 12.36 17.95 21.43 23.71 27.2 5.77 5.76 14.84 13.67 27.2 23.71l-89.1 89.1a16 16 0 01-22.62 0l-28.29-28.29a16 16 0 010-22.63zM512 278c129.24 0 234 104.77 234 234S641.24 746 512 746 278 641.24 278 512s104.77-234 234-234m0 72c-89.47 0-162 72.53-162 162s72.53 162 162 162 162-72.53 162-162-72.53-162-162-162M206 476c-1.64 15.85-2.46 27.84-2.46 36 0 8.15.82 20.16 2.46 36H80a16 16 0 01-16-16v-40a16 16 0 0116-16zm738 0a16 16 0 0116 16v40a16 16 0 01-16 16H818c1.64-15.85 2.46-27.84 2.46-36 0-8.15-.82-20.16-2.46-36zM814.06 180.65l28.29 28.29a16 16 0 010 22.63l-89.1 89.09c-10.04-12.37-17.95-21.43-23.71-27.2-5.77-5.76-14.84-13.67-27.2-23.71l89.1-89.1a16 16 0 0122.62 0m-581.5 0l89.1 89.1c-12.37 10.04-21.43 17.95-27.2 23.71-5.76 5.77-13.67 14.84-23.71 27.2l-89.1-89.1a16 16 0 010-22.62l28.29-28.29a16 16 0 0122.62 0M532 64a16 16 0 0116 16v126c-15.85-1.64-27.84-2.46-36-2.46-8.15 0-20.16.82-36 2.46V80a16 16 0 0116-16z"}}]},name:"sun",theme:"outlined"},QU=function(t,n){return i.createElement(pn,Pe({},t,{ref:n,icon:XU}))},JU=i.forwardRef(QU),ZU={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M876.6 239.5c-.5-.9-1.2-1.8-2-2.5-5-5-13.1-5-18.1 0L684.2 409.3l-67.9-67.9L788.7 169c.8-.8 1.4-1.6 2-2.5 3.6-6.1 1.6-13.9-4.5-17.5-98.2-58-226.8-44.7-311.3 39.7-67 67-89.2 162-66.5 247.4l-293 293c-3 3-2.8 7.9.3 11l169.7 169.7c3.1 3.1 8.1 3.3 11 .3l292.9-292.9c85.5 22.8 180.5.7 247.6-66.4 84.4-84.5 97.7-213.1 39.7-311.3zM786 499.8c-58.1 58.1-145.3 69.3-214.6 33.6l-8.8 8.8-.1-.1-274 274.1-79.2-79.2 230.1-230.1s0 .1.1.1l52.8-52.8c-35.7-69.3-24.5-156.5 33.6-214.6a184.2 184.2 0 01144-53.5L537 318.9a32.05 32.05 0 000 45.3l124.5 124.5a32.05 32.05 0 0045.3 0l132.8-132.8c3.7 51.8-14.4 104.8-53.6 143.9z"}}]},name:"tool",theme:"outlined"},eq=function(t,n){return i.createElement(pn,Pe({},t,{ref:n,icon:ZU}))},tq=i.forwardRef(eq),nq={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M400 317.7h73.9V656c0 4.4 3.6 8 8 8h60c4.4 0 8-3.6 8-8V317.7H624c6.7 0 10.4-7.7 6.3-12.9L518.3 163a8 8 0 00-12.6 0l-112 141.7c-4.1 5.3-.4 13 6.3 13zM878 626h-60c-4.4 0-8 3.6-8 8v154H214V634c0-4.4-3.6-8-8-8h-60c-4.4 0-8 3.6-8 8v198c0 17.7 14.3 32 32 32h684c17.7 0 32-14.3 32-32V634c0-4.4-3.6-8-8-8z"}}]},name:"upload",theme:"outlined"},rq=function(t,n){return i.createElement(pn,Pe({},t,{ref:n,icon:nq}))},rP=i.forwardRef(rq),aq={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M955.7 856l-416-720c-6.2-10.7-16.9-16-27.7-16s-21.6 5.3-27.7 16l-416 720C56 877.4 71.4 904 96 904h832c24.6 0 40-26.6 27.7-48zM480 416c0-4.4 3.6-8 8-8h48c4.4 0 8 3.6 8 8v184c0 4.4-3.6 8-8 8h-48c-4.4 0-8-3.6-8-8V416zm32 352a48.01 48.01 0 010-96 48.01 48.01 0 010 96z"}}]},name:"warning",theme:"filled"},oq=function(t,n){return i.createElement(pn,Pe({},t,{ref:n,icon:aq}))},aP=i.forwardRef(oq),iq=["prefixCls","className","checked","defaultChecked","disabled","loadingIcon","checkedChildren","unCheckedChildren","onClick","onChange","onKeyDown"],oP=i.forwardRef(function(e,t){var n,r=e.prefixCls,a=r===void 0?"rc-switch":r,o=e.className,l=e.checked,c=e.defaultChecked,d=e.disabled,f=e.loadingIcon,m=e.checkedChildren,p=e.unCheckedChildren,v=e.onClick,h=e.onChange,b=e.onKeyDown,x=Kt(e,iq),y=Hn(!1,{value:l,defaultValue:c}),C=se(y,2),w=C[0],E=C[1];function I(j,R){var k=w;return d||(k=j,E(k),h==null||h(k,R)),k}function _(j){j.which===$t.LEFT?I(!1,j):j.which===$t.RIGHT&&I(!0,j),b==null||b(j)}function O(j){var R=I(!w,j);v==null||v(R,j)}var P=ce(a,o,(n={},G(n,"".concat(a,"-checked"),w),G(n,"".concat(a,"-disabled"),d),n));return i.createElement("button",Pe({},x,{type:"button",role:"switch","aria-checked":w,disabled:d,className:P,ref:t,onKeyDown:_,onClick:O}),f,i.createElement("span",{className:"".concat(a,"-inner")},i.createElement("span",{className:"".concat(a,"-inner-checked")},m),i.createElement("span",{className:"".concat(a,"-inner-unchecked")},p)))});oP.displayName="Switch";const lq=e=>{const{componentCls:t,trackHeightSM:n,trackPadding:r,trackMinWidthSM:a,innerMinMarginSM:o,innerMaxMarginSM:l,handleSizeSM:c,calc:d}=e,f=`${t}-inner`,m=ne(d(c).add(d(r).mul(2)).equal()),p=ne(d(l).mul(2).equal());return{[t]:{[`&${t}-small`]:{minWidth:a,height:n,lineHeight:ne(n),[`${t}-inner`]:{paddingInlineStart:l,paddingInlineEnd:o,[`${f}-checked, ${f}-unchecked`]:{minHeight:n},[`${f}-checked`]:{marginInlineStart:`calc(-100% + ${m} - ${p})`,marginInlineEnd:`calc(100% - ${m} + ${p})`},[`${f}-unchecked`]:{marginTop:d(n).mul(-1).equal(),marginInlineStart:0,marginInlineEnd:0}},[`${t}-handle`]:{width:c,height:c},[`${t}-loading-icon`]:{top:d(d(c).sub(e.switchLoadingIconSize)).div(2).equal(),fontSize:e.switchLoadingIconSize},[`&${t}-checked`]:{[`${t}-inner`]:{paddingInlineStart:o,paddingInlineEnd:l,[`${f}-checked`]:{marginInlineStart:0,marginInlineEnd:0},[`${f}-unchecked`]:{marginInlineStart:`calc(100% - ${m} + ${p})`,marginInlineEnd:`calc(-100% + ${m} - ${p})`}},[`${t}-handle`]:{insetInlineStart:`calc(100% - ${ne(d(c).add(r).equal())})`}},[`&:not(${t}-disabled):active`]:{[`&:not(${t}-checked) ${f}`]:{[`${f}-unchecked`]:{marginInlineStart:d(e.marginXXS).div(2).equal(),marginInlineEnd:d(e.marginXXS).mul(-1).div(2).equal()}},[`&${t}-checked ${f}`]:{[`${f}-checked`]:{marginInlineStart:d(e.marginXXS).mul(-1).div(2).equal(),marginInlineEnd:d(e.marginXXS).div(2).equal()}}}}}}},sq=e=>{const{componentCls:t,handleSize:n,calc:r}=e;return{[t]:{[`${t}-loading-icon${e.iconCls}`]:{position:"relative",top:r(r(n).sub(e.fontSize)).div(2).equal(),color:e.switchLoadingIconColor,verticalAlign:"top"},[`&${t}-checked ${t}-loading-icon`]:{color:e.switchColor}}}},cq=e=>{const{componentCls:t,trackPadding:n,handleBg:r,handleShadow:a,handleSize:o,calc:l}=e,c=`${t}-handle`;return{[t]:{[c]:{position:"absolute",top:n,insetInlineStart:n,width:o,height:o,transition:`all ${e.switchDuration} ease-in-out`,"&::before":{position:"absolute",top:0,insetInlineEnd:0,bottom:0,insetInlineStart:0,backgroundColor:r,borderRadius:l(o).div(2).equal(),boxShadow:a,transition:`all ${e.switchDuration} ease-in-out`,content:'""'}},[`&${t}-checked ${c}`]:{insetInlineStart:`calc(100% - ${ne(l(o).add(n).equal())})`},[`&:not(${t}-disabled):active`]:{[`${c}::before`]:{insetInlineEnd:e.switchHandleActiveInset,insetInlineStart:0},[`&${t}-checked ${c}::before`]:{insetInlineEnd:0,insetInlineStart:e.switchHandleActiveInset}}}}},uq=e=>{const{componentCls:t,trackHeight:n,trackPadding:r,innerMinMargin:a,innerMaxMargin:o,handleSize:l,calc:c}=e,d=`${t}-inner`,f=ne(c(l).add(c(r).mul(2)).equal()),m=ne(c(o).mul(2).equal());return{[t]:{[d]:{display:"block",overflow:"hidden",borderRadius:100,height:"100%",paddingInlineStart:o,paddingInlineEnd:a,transition:`padding-inline-start ${e.switchDuration} ease-in-out, padding-inline-end ${e.switchDuration} ease-in-out`,[`${d}-checked, ${d}-unchecked`]:{display:"block",color:e.colorTextLightSolid,fontSize:e.fontSizeSM,transition:`margin-inline-start ${e.switchDuration} ease-in-out, margin-inline-end ${e.switchDuration} ease-in-out`,pointerEvents:"none",minHeight:n},[`${d}-checked`]:{marginInlineStart:`calc(-100% + ${f} - ${m})`,marginInlineEnd:`calc(100% - ${f} + ${m})`},[`${d}-unchecked`]:{marginTop:c(n).mul(-1).equal(),marginInlineStart:0,marginInlineEnd:0}},[`&${t}-checked ${d}`]:{paddingInlineStart:a,paddingInlineEnd:o,[`${d}-checked`]:{marginInlineStart:0,marginInlineEnd:0},[`${d}-unchecked`]:{marginInlineStart:`calc(100% - ${f} + ${m})`,marginInlineEnd:`calc(-100% + ${f} - ${m})`}},[`&:not(${t}-disabled):active`]:{[`&:not(${t}-checked) ${d}`]:{[`${d}-unchecked`]:{marginInlineStart:c(r).mul(2).equal(),marginInlineEnd:c(r).mul(-1).mul(2).equal()}},[`&${t}-checked ${d}`]:{[`${d}-checked`]:{marginInlineStart:c(r).mul(-1).mul(2).equal(),marginInlineEnd:c(r).mul(2).equal()}}}}}},dq=e=>{const{componentCls:t,trackHeight:n,trackMinWidth:r}=e;return{[t]:Object.assign(Object.assign(Object.assign(Object.assign({},Ln(e)),{position:"relative",display:"inline-block",boxSizing:"border-box",minWidth:r,height:n,lineHeight:ne(n),verticalAlign:"middle",background:e.colorTextQuaternary,border:"0",borderRadius:100,cursor:"pointer",transition:`all ${e.motionDurationMid}`,userSelect:"none",[`&:hover:not(${t}-disabled)`]:{background:e.colorTextTertiary}}),xi(e)),{[`&${t}-checked`]:{background:e.switchColor,[`&:hover:not(${t}-disabled)`]:{background:e.colorPrimaryHover}},[`&${t}-loading, &${t}-disabled`]:{cursor:"not-allowed",opacity:e.switchDisabledOpacity,"*":{boxShadow:"none",cursor:"not-allowed"}},[`&${t}-rtl`]:{direction:"rtl"}})}},fq=e=>{const{fontSize:t,lineHeight:n,controlHeight:r,colorWhite:a}=e,o=t*n,l=r/2,c=2,d=o-c*2,f=l-c*2;return{trackHeight:o,trackHeightSM:l,trackMinWidth:d*2+c*4,trackMinWidthSM:f*2+c*2,trackPadding:c,handleBg:a,handleSize:d,handleSizeSM:f,handleShadow:`0 2px 4px 0 ${new Pn("#00230b").setA(.2).toRgbString()}`,innerMinMargin:d/2,innerMaxMargin:d+c+c*2,innerMinMarginSM:f/2,innerMaxMarginSM:f+c+c*2}},mq=zn("Switch",e=>{const t=$n(e,{switchDuration:e.motionDurationMid,switchColor:e.colorPrimary,switchDisabledOpacity:e.opacityLoading,switchLoadingIconSize:e.calc(e.fontSizeIcon).mul(.75).equal(),switchLoadingIconColor:`rgba(0, 0, 0, ${e.opacityLoading})`,switchHandleActiveInset:"-30%"});return[dq(t),uq(t),cq(t),sq(t),lq(t)]},fq);var pq=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 a=0,r=Object.getOwnPropertySymbols(e);a{const{prefixCls:n,size:r,disabled:a,loading:o,className:l,rootClassName:c,style:d,checked:f,value:m,defaultChecked:p,defaultValue:v,onChange:h}=e,b=pq(e,["prefixCls","size","disabled","loading","className","rootClassName","style","checked","value","defaultChecked","defaultValue","onChange"]),[x,y]=Hn(!1,{value:f??m,defaultValue:p??v}),{getPrefixCls:C,direction:w,switch:E}=i.useContext(Gt),I=i.useContext(ha),_=(a??I)||o,O=C("switch",n),P=i.createElement("div",{className:`${O}-handle`},o&&i.createElement(Si,{className:`${O}-loading-icon`})),[j,R,k]=mq(O),L=Zr(r),W=ce(E==null?void 0:E.className,{[`${O}-small`]:L==="small",[`${O}-loading`]:o,[`${O}-rtl`]:w==="rtl"},l,c,R,k),B=Object.assign(Object.assign({},E==null?void 0:E.style),d),F=function(){y(arguments.length<=0?void 0:arguments[0]),h==null||h.apply(void 0,arguments)};return j(i.createElement(yd,{component:"Switch"},i.createElement(oP,Object.assign({},b,{checked:x,onChange:F,prefixCls:O,className:W,style:B,disabled:_,ref:t,loadingIcon:P}))))}),iP=vq;iP.__ANT_SWITCH=!0;var ui={},Rd="rc-table-internal-hook";function ux(e){var t=i.createContext(void 0),n=function(a){var o=a.value,l=a.children,c=i.useRef(o);c.current=o;var d=i.useState(function(){return{getValue:function(){return c.current},listeners:new Set}}),f=se(d,1),m=f[0];return hn(function(){_o.unstable_batchedUpdates(function(){m.listeners.forEach(function(p){p(o)})})},[o]),i.createElement(t.Provider,{value:m},l)};return{Context:t,Provider:n,defaultValue:e}}function la(e,t){var n=wn(typeof t=="function"?t:function(p){if(t===void 0)return p;if(!Array.isArray(t))return p[t];var v={};return t.forEach(function(h){v[h]=p[h]}),v}),r=i.useContext(e==null?void 0:e.Context),a=r||{},o=a.listeners,l=a.getValue,c=i.useRef();c.current=n(r?l():e==null?void 0:e.defaultValue);var d=i.useState({}),f=se(d,2),m=f[1];return hn(function(){if(!r)return;function p(v){var h=n(v);Ko(c.current,h,!0)||m({})}return o.add(p),function(){o.delete(p)}},[r]),c.current}function gq(){var e=i.createContext(null);function t(){return i.useContext(e)}function n(a,o){var l=Io(a),c=function(f,m){var p=l?{ref:m}:{},v=i.useRef(0),h=i.useRef(f),b=t();return b!==null?i.createElement(a,Pe({},f,p)):((!o||o(h.current,f))&&(v.current+=1),h.current=f,i.createElement(e.Provider,{value:v.current},i.createElement(a,Pe({},f,p))))};return l?i.forwardRef(c):c}function r(a,o){var l=Io(a),c=function(f,m){var p=l?{ref:m}:{};return t(),i.createElement(a,Pe({},f,p))};return l?i.memo(i.forwardRef(c),o):i.memo(c,o)}return{makeImmutable:n,responseImmutable:r,useImmutableMark:t}}var dx=gq(),lP=dx.makeImmutable,xc=dx.responseImmutable,hq=dx.useImmutableMark,$a=ux(),sP=i.createContext({renderWithProps:!1}),yq="RC_TABLE_KEY";function bq(e){return e==null?[]:Array.isArray(e)?e:[e]}function ev(e){var t=[],n={};return e.forEach(function(r){for(var a=r||{},o=a.key,l=a.dataIndex,c=o||bq(l).join("-")||yq;n[c];)c="".concat(c,"_next");n[c]=!0,t.push(c)}),t}function w0(e){return e!=null}function xq(e){return typeof e=="number"&&!Number.isNaN(e)}function Sq(e){return e&&wt(e)==="object"&&!Array.isArray(e)&&!i.isValidElement(e)}function Cq(e,t,n,r,a,o){var l=i.useContext(sP),c=hq(),d=Xl(function(){if(w0(r))return[r];var f=t==null||t===""?[]:Array.isArray(t)?t:[t],m=Ca(e,f),p=m,v=void 0;if(a){var h=a(m,e,n);Sq(h)?(p=h.children,v=h.props,l.renderWithProps=!0):p=h}return[p,v]},[c,e,r,t,a,n],function(f,m){if(o){var p=se(f,2),v=p[1],h=se(m,2),b=h[1];return o(b,v)}return l.renderWithProps?!0:!Ko(f,m,!0)});return d}function wq(e,t,n,r){var a=e+t-1;return e<=r&&a>=n}function $q(e,t){return la($a,function(n){var r=wq(e,t||1,n.hoverStartRow,n.hoverEndRow);return[r,n.onHover]})}var Eq=function(t){var n=t.ellipsis,r=t.rowType,a=t.children,o,l=n===!0?{showTitle:!0}:n;return l&&(l.showTitle||r==="header")&&(typeof a=="string"||typeof a=="number"?o=a.toString():i.isValidElement(a)&&typeof a.props.children=="string"&&(o=a.props.children)),o};function _q(e){var t,n,r,a,o,l,c,d,f=e.component,m=e.children,p=e.ellipsis,v=e.scope,h=e.prefixCls,b=e.className,x=e.align,y=e.record,C=e.render,w=e.dataIndex,E=e.renderIndex,I=e.shouldCellUpdate,_=e.index,O=e.rowType,P=e.colSpan,j=e.rowSpan,R=e.fixLeft,k=e.fixRight,L=e.firstFixLeft,W=e.lastFixLeft,B=e.firstFixRight,F=e.lastFixRight,A=e.appendNode,T=e.additionalProps,M=T===void 0?{}:T,D=e.isSticky,V="".concat(h,"-cell"),K=la($a,["supportSticky","allColumnsFixedLeft","rowHoverable"]),z=K.supportSticky,U=K.allColumnsFixedLeft,Y=K.rowHoverable,q=Cq(y,w,E,m,C,I),X=se(q,2),te=X[0],ee=X[1],J={},ie=typeof R=="number"&&z,de=typeof k=="number"&&z;ie&&(J.position="sticky",J.left=R),de&&(J.position="sticky",J.right=k);var oe=(t=(n=(r=ee==null?void 0:ee.colSpan)!==null&&r!==void 0?r:M.colSpan)!==null&&n!==void 0?n:P)!==null&&t!==void 0?t:1,le=(a=(o=(l=ee==null?void 0:ee.rowSpan)!==null&&l!==void 0?l:M.rowSpan)!==null&&o!==void 0?o:j)!==null&&a!==void 0?a:1,ae=$q(_,le),ue=se(ae,2),pe=ue[0],fe=ue[1],xe=wn(function(Re){var De;y&&fe(_,_+le-1),M==null||(De=M.onMouseEnter)===null||De===void 0||De.call(M,Re)}),Ee=wn(function(Re){var De;y&&fe(-1,-1),M==null||(De=M.onMouseLeave)===null||De===void 0||De.call(M,Re)});if(oe===0||le===0)return null;var Le=(c=M.title)!==null&&c!==void 0?c:Eq({rowType:O,ellipsis:p,children:te}),Ne=ce(V,b,(d={},G(G(G(G(G(G(G(G(G(G(d,"".concat(V,"-fix-left"),ie&&z),"".concat(V,"-fix-left-first"),L&&z),"".concat(V,"-fix-left-last"),W&&z),"".concat(V,"-fix-left-all"),W&&U&&z),"".concat(V,"-fix-right"),de&&z),"".concat(V,"-fix-right-first"),B&&z),"".concat(V,"-fix-right-last"),F&&z),"".concat(V,"-ellipsis"),p),"".concat(V,"-with-append"),A),"".concat(V,"-fix-sticky"),(ie||de)&&D&&z),G(d,"".concat(V,"-row-hover"),!ee&&pe)),M.className,ee==null?void 0:ee.className),ge={};x&&(ge.textAlign=x);var we=Z(Z(Z(Z({},ee==null?void 0:ee.style),J),ge),M.style),Se=te;return wt(Se)==="object"&&!Array.isArray(Se)&&!i.isValidElement(Se)&&(Se=null),p&&(W||B)&&(Se=i.createElement("span",{className:"".concat(V,"-content")},Se)),i.createElement(f,Pe({},ee,M,{className:Ne,style:we,title:Le,scope:v,onMouseEnter:Y?xe:void 0,onMouseLeave:Y?Ee:void 0,colSpan:oe!==1?oe:null,rowSpan:le!==1?le:null}),A,Se)}const Sc=i.memo(_q);function fx(e,t,n,r,a){var o=n[e]||{},l=n[t]||{},c,d;o.fixed==="left"?c=r.left[a==="rtl"?t:e]:l.fixed==="right"&&(d=r.right[a==="rtl"?e:t]);var f=!1,m=!1,p=!1,v=!1,h=n[t+1],b=n[e-1],x=h&&!h.fixed||b&&!b.fixed||n.every(function(I){return I.fixed==="left"});if(a==="rtl"){if(c!==void 0){var y=b&&b.fixed==="left";v=!y&&x}else if(d!==void 0){var C=h&&h.fixed==="right";p=!C&&x}}else if(c!==void 0){var w=h&&h.fixed==="left";f=!w&&x}else if(d!==void 0){var E=b&&b.fixed==="right";m=!E&&x}return{fixLeft:c,fixRight:d,lastFixLeft:f,firstFixRight:m,lastFixRight:p,firstFixLeft:v,isSticky:r.isSticky}}var cP=i.createContext({});function Iq(e){var t=e.className,n=e.index,r=e.children,a=e.colSpan,o=a===void 0?1:a,l=e.rowSpan,c=e.align,d=la($a,["prefixCls","direction"]),f=d.prefixCls,m=d.direction,p=i.useContext(cP),v=p.scrollColumnIndex,h=p.stickyOffsets,b=p.flattenColumns,x=n+o-1,y=x+1===v?o+1:o,C=fx(n,n+y-1,b,h,m);return i.createElement(Sc,Pe({className:t,index:n,component:"td",prefixCls:f,record:null,dataIndex:null,align:c,colSpan:y,rowSpan:l,render:function(){return r}},C))}var Oq=["children"];function Rq(e){var t=e.children,n=Kt(e,Oq);return i.createElement("tr",n,t)}function tv(e){var t=e.children;return t}tv.Row=Rq;tv.Cell=Iq;function Pq(e){var t=e.children,n=e.stickyOffsets,r=e.flattenColumns,a=la($a,"prefixCls"),o=r.length-1,l=r[o],c=i.useMemo(function(){return{stickyOffsets:n,flattenColumns:r,scrollColumnIndex:l!=null&&l.scrollbar?o:null}},[l,r,o,n]);return i.createElement(cP.Provider,{value:c},i.createElement("tfoot",{className:"".concat(a,"-summary")},t))}const rm=xc(Pq);var uP=tv;function Nq(e){return null}function jq(e){return null}function dP(e,t,n,r,a,o,l){e.push({record:t,indent:n,index:l});var c=o(t),d=a==null?void 0:a.has(c);if(t&&Array.isArray(t[r])&&d)for(var f=0;f1?L-1:0),B=1;B=1)),style:Z(Z({},n),C==null?void 0:C.style)}),b.map(function(R,k){var L=R.render,W=R.dataIndex,B=R.className,F=gP(v,R,k,d,a),A=F.key,T=F.fixedInfo,M=F.appendCellNode,D=F.additionalCellProps;return i.createElement(Sc,Pe({className:B,ellipsis:R.ellipsis,align:R.align,scope:R.rowScope,component:R.rowScope?p:m,prefixCls:h,key:A,record:r,index:a,renderIndex:o,dataIndex:W,render:L,shouldCellUpdate:R.shouldCellUpdate},T,{appendNode:M,additionalProps:D}))})),P;if(E&&(I.current||w)){var j=y(r,a,d+1,w);P=i.createElement(pP,{expanded:w,className:ce("".concat(h,"-expanded-row"),"".concat(h,"-expanded-row-level-").concat(d+1),_),prefixCls:h,component:f,cellComponent:m,colSpan:b.length,isEmpty:!1},j)}return i.createElement(i.Fragment,null,O,P)}const Dq=xc(Tq);function Fq(e){var t=e.columnKey,n=e.onColumnResize,r=i.useRef();return i.useEffect(function(){r.current&&n(t,r.current.offsetWidth)},[]),i.createElement(ra,{data:t},i.createElement("td",{ref:r,style:{padding:0,border:0,height:0}},i.createElement("div",{style:{height:0,overflow:"hidden"}}," ")))}function Lq(e){var t=e.prefixCls,n=e.columnsKey,r=e.onColumnResize;return i.createElement("tr",{"aria-hidden":"true",className:"".concat(t,"-measure-row"),style:{height:0,fontSize:0}},i.createElement(ra.Collection,{onBatchResize:function(o){o.forEach(function(l){var c=l.data,d=l.size;r(c,d.offsetWidth)})}},n.map(function(a){return i.createElement(Fq,{key:a,columnKey:a,onColumnResize:r})})))}function Aq(e){var t=e.data,n=e.measureColumnWidth,r=la($a,["prefixCls","getComponent","onColumnResize","flattenColumns","getRowKey","expandedKeys","childrenColumnName","emptyNode"]),a=r.prefixCls,o=r.getComponent,l=r.onColumnResize,c=r.flattenColumns,d=r.getRowKey,f=r.expandedKeys,m=r.childrenColumnName,p=r.emptyNode,v=fP(t,m,f,d),h=i.useRef({renderWithProps:!1}),b=o(["body","wrapper"],"tbody"),x=o(["body","row"],"tr"),y=o(["body","cell"],"td"),C=o(["body","cell"],"th"),w;t.length?w=v.map(function(I,_){var O=I.record,P=I.indent,j=I.index,R=d(O,_);return i.createElement(Dq,{key:R,rowKey:R,record:O,index:_,renderIndex:j,rowComponent:x,cellComponent:y,scopeCellComponent:C,indent:P})}):w=i.createElement(pP,{expanded:!0,className:"".concat(a,"-placeholder"),prefixCls:a,component:x,cellComponent:y,colSpan:c.length,isEmpty:!0},p);var E=ev(c);return i.createElement(sP.Provider,{value:h.current},i.createElement(b,{className:"".concat(a,"-tbody")},n&&i.createElement(Lq,{prefixCls:a,columnsKey:E,onColumnResize:l}),w))}const zq=xc(Aq);var Bq=["expandable"],ku="RC_TABLE_INTERNAL_COL_DEFINE";function Hq(e){var t=e.expandable,n=Kt(e,Bq),r;return"expandable"in e?r=Z(Z({},n),t):r=n,r.showExpandColumn===!1&&(r.expandIconColumnIndex=-1),r}var Vq=["columnType"];function hP(e){for(var t=e.colWidths,n=e.columns,r=e.columCount,a=la($a,["tableLayout"]),o=a.tableLayout,l=[],c=r||n.length,d=!1,f=c-1;f>=0;f-=1){var m=t[f],p=n&&n[f],v=void 0,h=void 0;if(p&&(v=p[ku],o==="auto"&&(h=p.minWidth)),m||h||v||d){var b=v||{};b.columnType;var x=Kt(b,Vq);l.unshift(i.createElement("col",Pe({key:f,style:{width:m,minWidth:h}},x))),d=!0}}return i.createElement("colgroup",null,l)}var Wq=["className","noData","columns","flattenColumns","colWidths","columCount","stickyOffsets","direction","fixHeader","stickyTopOffset","stickyBottomOffset","stickyClassName","onScroll","maxContentScroll","children"];function Kq(e,t){return i.useMemo(function(){for(var n=[],r=0;r1?"colgroup":"col":null,ellipsis:y.ellipsis,align:y.align,component:l,prefixCls:m,key:h[x]},C,{additionalProps:w,rowType:"header"}))}))};function Yq(e){var t=[];function n(l,c){var d=arguments.length>2&&arguments[2]!==void 0?arguments[2]:0;t[d]=t[d]||[];var f=c,m=l.filter(Boolean).map(function(p){var v={key:p.key,className:p.className||"",children:p.title,column:p,colStart:f},h=1,b=p.children;return b&&b.length>0&&(h=n(b,f,d+1).reduce(function(x,y){return x+y},0),v.hasSubColumns=!0),"colSpan"in p&&(h=p.colSpan),"rowSpan"in p&&(v.rowSpan=p.rowSpan),v.colSpan=h,v.colEnd=v.colStart+h-1,t[d].push(v),f+=h,h});return m}n(e,0);for(var r=t.length,a=function(c){t[c].forEach(function(d){!("rowSpan"in d)&&!d.hasSubColumns&&(d.rowSpan=r-c)})},o=0;o1&&arguments[1]!==void 0?arguments[1]:"";return typeof t=="number"?t:t.endsWith("%")?e*parseFloat(t)/100:null}function Xq(e,t,n){return i.useMemo(function(){if(t&&t>0){var r=0,a=0;e.forEach(function(v){var h=PE(t,v.width);h?r+=h:a+=1});var o=Math.max(t,n),l=Math.max(o-r,a),c=a,d=l/a,f=0,m=e.map(function(v){var h=Z({},v),b=PE(t,h.width);if(b)h.width=b;else{var x=Math.floor(d);h.width=c===1?l:x,l-=x,c-=1}return f+=h.width,h});if(f0?Z(Z({},t),{},{children:yP(n)}):t})}function $0(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"key";return e.filter(function(n){return n&&wt(n)==="object"}).reduce(function(n,r,a){var o=r.fixed,l=o===!0?"left":o,c="".concat(t,"-").concat(a),d=r.children;return d&&d.length>0?[].concat(Te(n),Te($0(d,c).map(function(f){return Z({fixed:l},f)}))):[].concat(Te(n),[Z(Z({key:c},r),{},{fixed:l})])},[])}function Zq(e){return e.map(function(t){var n=t.fixed,r=Kt(t,Jq),a=n;return n==="left"?a="right":n==="right"&&(a="left"),Z({fixed:a},r)})}function eY(e,t){var n=e.prefixCls,r=e.columns,a=e.children,o=e.expandable,l=e.expandedKeys,c=e.columnTitle,d=e.getRowKey,f=e.onTriggerExpand,m=e.expandIcon,p=e.rowExpandable,v=e.expandIconColumnIndex,h=e.direction,b=e.expandRowByClick,x=e.columnWidth,y=e.fixed,C=e.scrollWidth,w=e.clientWidth,E=i.useMemo(function(){var W=r||mx(a)||[];return yP(W.slice())},[r,a]),I=i.useMemo(function(){if(o){var W=E.slice();if(!W.includes(ui)){var B=v||0;B>=0&&(B||y==="left"||!y)&&W.splice(B,0,ui),y==="right"&&W.splice(E.length,0,ui)}var F=W.indexOf(ui);W=W.filter(function(D,V){return D!==ui||V===F});var A=E[F],T;y?T=y:T=A?A.fixed:null;var M=G(G(G(G(G(G({},ku,{className:"".concat(n,"-expand-icon-col"),columnType:"EXPAND_COLUMN"}),"title",c),"fixed",T),"className","".concat(n,"-row-expand-icon-cell")),"width",x),"render",function(V,K,z){var U=d(K,z),Y=l.has(U),q=p?p(K):!0,X=m({prefixCls:n,expanded:Y,expandable:q,record:K,onExpand:f});return b?i.createElement("span",{onClick:function(ee){return ee.stopPropagation()}},X):X});return W.map(function(D){return D===ui?M:D})}return E.filter(function(D){return D!==ui})},[o,E,d,l,m,h]),_=i.useMemo(function(){var W=I;return t&&(W=t(W)),W.length||(W=[{render:function(){return null}}]),W},[t,I,h]),O=i.useMemo(function(){return h==="rtl"?Zq($0(_)):$0(_)},[_,h,C]),P=i.useMemo(function(){for(var W=-1,B=O.length-1;B>=0;B-=1){var F=O[B].fixed;if(F==="left"||F===!0){W=B;break}}if(W>=0)for(var A=0;A<=W;A+=1){var T=O[A].fixed;if(T!=="left"&&T!==!0)return!0}var M=O.findIndex(function(K){var z=K.fixed;return z==="right"});if(M>=0)for(var D=M;D=M-c?w(function(D){return Z(Z({},D),{},{isHiddenScrollBar:!0})}):w(function(D){return Z(Z({},D),{},{isHiddenScrollBar:!1})})}})},B=function(A){w(function(T){return Z(Z({},T),{},{scrollLeft:A/p*v||0})})};return i.useImperativeHandle(n,function(){return{setScrollLeft:B,checkScrollBarVisible:W}}),i.useEffect(function(){var F=mE(document.body,"mouseup",R,!1),A=mE(document.body,"mousemove",L,!1);return W(),function(){F.remove(),A.remove()}},[h,O]),i.useEffect(function(){if(o.current){for(var F=[],A=fd(o.current);A;)F.push(A),A=A.parentElement;return F.forEach(function(T){return T.addEventListener("scroll",W,!1)}),window.addEventListener("resize",W,!1),window.addEventListener("scroll",W,!1),d.addEventListener("scroll",W,!1),function(){F.forEach(function(T){return T.removeEventListener("scroll",W)}),window.removeEventListener("resize",W),window.removeEventListener("scroll",W),d.removeEventListener("scroll",W)}}},[d]),i.useEffect(function(){C.isHiddenScrollBar||w(function(F){var A=o.current;return A?Z(Z({},F),{},{scrollLeft:A.scrollLeft/A.scrollWidth*A.clientWidth}):F})},[C.isHiddenScrollBar]),p<=v||!h||C.isHiddenScrollBar?null:i.createElement("div",{style:{height:$1(),width:v,bottom:c},className:"".concat(m,"-sticky-scroll")},i.createElement("div",{onMouseDown:k,ref:b,className:ce("".concat(m,"-sticky-scroll-bar"),G({},"".concat(m,"-sticky-scroll-bar-active"),O)),style:{width:"".concat(h,"px"),transform:"translate3d(".concat(C.scrollLeft,"px, 0, 0)")}}))};const sY=i.forwardRef(lY);var xP="rc-table",cY=[],uY={};function dY(){return"No Data"}function fY(e,t){var n=Z({rowKey:"key",prefixCls:xP,emptyText:dY},e),r=n.prefixCls,a=n.className,o=n.rowClassName,l=n.style,c=n.data,d=n.rowKey,f=n.scroll,m=n.tableLayout,p=n.direction,v=n.title,h=n.footer,b=n.summary,x=n.caption,y=n.id,C=n.showHeader,w=n.components,E=n.emptyText,I=n.onRow,_=n.onHeaderRow,O=n.onScroll,P=n.internalHooks,j=n.transformColumns,R=n.internalRefs,k=n.tailor,L=n.getContainerWidth,W=n.sticky,B=n.rowHoverable,F=B===void 0?!0:B,A=c||cY,T=!!A.length,M=P===Rd,D=i.useCallback(function(mt,it){return Ca(w,mt)||it},[w]),V=i.useMemo(function(){return typeof d=="function"?d:function(mt){var it=mt&&mt[d];return it}},[d]),K=D(["body"]),z=aY(),U=se(z,3),Y=U[0],q=U[1],X=U[2],te=tY(n,A,V),ee=se(te,6),J=ee[0],ie=ee[1],de=ee[2],oe=ee[3],le=ee[4],ae=ee[5],ue=f==null?void 0:f.x,pe=i.useState(0),fe=se(pe,2),xe=fe[0],Ee=fe[1],Le=eY(Z(Z(Z({},n),J),{},{expandable:!!J.expandedRowRender,columnTitle:J.columnTitle,expandedKeys:de,getRowKey:V,onTriggerExpand:ae,expandIcon:oe,expandIconColumnIndex:J.expandIconColumnIndex,direction:p,scrollWidth:M&&k&&typeof ue=="number"?ue:null,clientWidth:xe}),M?j:null),Ne=se(Le,4),ge=Ne[0],we=Ne[1],Se=Ne[2],Re=Ne[3],De=Se??ue,Me=i.useMemo(function(){return{columns:ge,flattenColumns:we}},[ge,we]),Ye=i.useRef(),qe=i.useRef(),He=i.useRef(),ze=i.useRef();i.useImperativeHandle(t,function(){return{nativeElement:Ye.current,scrollTo:function(it){var Qt;if(He.current instanceof HTMLElement){var cn=it.index,In=it.top,Tr=it.key;if(xq(In)){var pr;(pr=He.current)===null||pr===void 0||pr.scrollTo({top:In})}else{var vr,Dr=Tr??V(A[cn]);(vr=He.current.querySelector('[data-row-key="'.concat(Dr,'"]')))===null||vr===void 0||vr.scrollIntoView()}}else(Qt=He.current)!==null&&Qt!==void 0&&Qt.scrollTo&&He.current.scrollTo(it)}}});var Ae=i.useRef(),Ie=i.useState(!1),Ve=se(Ie,2),ye=Ve[0],Ce=Ve[1],_e=i.useState(!1),he=se(_e,2),ke=he[0],tt=he[1],Nt=bP(new Map),Ht=se(Nt,2),Ge=Ht[0],rt=Ht[1],gt=ev(we),at=gt.map(function(mt){return Ge.get(mt)}),dt=i.useMemo(function(){return at},[at.join("_")]),st=iY(dt,we,p),et=f&&w0(f.y),Qe=f&&w0(De)||!!J.fixed,Tt=Qe&&we.some(function(mt){var it=mt.fixed;return it}),kt=i.useRef(),Xe=oY(W,r),Ze=Xe.isSticky,Et=Xe.offsetHeader,Ot=Xe.offsetSummary,xt=Xe.offsetScroll,Lt=Xe.stickyClassName,Ct=Xe.container,ht=i.useMemo(function(){return b==null?void 0:b(A)},[b,A]),Ft=(et||Ze)&&i.isValidElement(ht)&&ht.type===tv&&ht.props.fixed,At,en,vn;et&&(en={overflowY:T?"scroll":"auto",maxHeight:f.y}),Qe&&(At={overflowX:"auto"},et||(en={overflowY:"hidden"}),vn={width:De===!0?"auto":De,minWidth:"100%"});var sn=i.useCallback(function(mt,it){fc(Ye.current)&&rt(function(Qt){if(Qt.get(mt)!==it){var cn=new Map(Qt);return cn.set(mt,it),cn}return Qt})},[]),yn=rY(),On=se(yn,2),kn=On[0],nt=On[1];function _t(mt,it){it&&(typeof it=="function"?it(mt):it.scrollLeft!==mt&&(it.scrollLeft=mt,it.scrollLeft!==mt&&setTimeout(function(){it.scrollLeft=mt},0)))}var ut=wn(function(mt){var it=mt.currentTarget,Qt=mt.scrollLeft,cn=p==="rtl",In=typeof Qt=="number"?Qt:it.scrollLeft,Tr=it||uY;if(!nt()||nt()===Tr){var pr;kn(Tr),_t(In,qe.current),_t(In,He.current),_t(In,Ae.current),_t(In,(pr=kt.current)===null||pr===void 0?void 0:pr.setScrollLeft)}var vr=it||qe.current;if(vr){var Dr=M&&k&&typeof De=="number"?De:vr.scrollWidth,Ea=vr.clientWidth;if(Dr===Ea){Ce(!1),tt(!1);return}cn?(Ce(-In0)):(Ce(In>0),tt(In1?y-F:0,T=Z(Z(Z({},j),f),{},{flex:"0 0 ".concat(F,"px"),width:"".concat(F,"px"),marginRight:A,pointerEvents:"auto"}),M=i.useMemo(function(){return p?W<=1:k===0||W===0||W>1},[W,k,p]);M?T.visibility="hidden":p&&(T.height=v==null?void 0:v(W));var D=M?function(){return null}:h,V={};return(W===0||k===0)&&(V.rowSpan=1,V.colSpan=1),i.createElement(Sc,Pe({className:ce(x,m),ellipsis:n.ellipsis,align:n.align,scope:n.rowScope,component:l,prefixCls:t.prefixCls,key:I,record:d,index:o,renderIndex:c,dataIndex:b,render:D,shouldCellUpdate:n.shouldCellUpdate},_,{appendNode:O,additionalProps:Z(Z({},P),{},{style:T},V)}))}var gY=["data","index","className","rowKey","style","extra","getHeight"],hY=i.forwardRef(function(e,t){var n=e.data,r=e.index,a=e.className,o=e.rowKey,l=e.style,c=e.extra,d=e.getHeight,f=Kt(e,gY),m=n.record,p=n.indent,v=n.index,h=la($a,["prefixCls","flattenColumns","fixColumn","componentWidth","scrollX"]),b=h.scrollX,x=h.flattenColumns,y=h.prefixCls,C=h.fixColumn,w=h.componentWidth,E=la(px,["getComponent"]),I=E.getComponent,_=mP(m,o,r,p),O=I(["body","row"],"div"),P=I(["body","cell"],"div"),j=_.rowSupportExpand,R=_.expanded,k=_.rowProps,L=_.expandedRowRender,W=_.expandedRowClassName,B;if(j&&R){var F=L(m,r,p+1,R),A=vP(W,m,r,p),T={};C&&(T={style:G({},"--virtual-width","".concat(w,"px"))});var M="".concat(y,"-expanded-row-cell");B=i.createElement(O,{className:ce("".concat(y,"-expanded-row"),"".concat(y,"-expanded-row-level-").concat(p+1),A)},i.createElement(Sc,{component:P,prefixCls:y,className:ce(M,G({},"".concat(M,"-fixed"),C)),additionalProps:T},F))}var D=Z(Z({},l),{},{width:b});c&&(D.position="absolute",D.pointerEvents="none");var V=i.createElement(O,Pe({},k,f,{"data-row-key":o,ref:j?null:t,className:ce(a,"".concat(y,"-row"),k==null?void 0:k.className,G({},"".concat(y,"-row-extra"),c)),style:Z(Z({},D),k==null?void 0:k.style)}),x.map(function(K,z){return i.createElement(vY,{key:z,component:P,rowInfo:_,column:K,colIndex:z,indent:p,index:r,renderIndex:v,record:m,inverse:c,getHeight:d})}));return j?i.createElement("div",{ref:t},V,B):V}),ME=xc(hY),yY=i.forwardRef(function(e,t){var n=e.data,r=e.onScroll,a=la($a,["flattenColumns","onColumnResize","getRowKey","prefixCls","expandedKeys","childrenColumnName","scrollX","direction"]),o=a.flattenColumns,l=a.onColumnResize,c=a.getRowKey,d=a.expandedKeys,f=a.prefixCls,m=a.childrenColumnName,p=a.scrollX,v=a.direction,h=la(px),b=h.sticky,x=h.scrollY,y=h.listItemHeight,C=h.getComponent,w=h.onScroll,E=i.useRef(),I=fP(n,m,d,c),_=i.useMemo(function(){var B=0;return o.map(function(F){var A=F.width,T=F.key;return B+=A,[T,A,B]})},[o]),O=i.useMemo(function(){return _.map(function(B){return B[2]})},[_]);i.useEffect(function(){_.forEach(function(B){var F=se(B,2),A=F[0],T=F[1];l(A,T)})},[_]),i.useImperativeHandle(t,function(){var B,F={scrollTo:function(T){var M;(M=E.current)===null||M===void 0||M.scrollTo(T)},nativeElement:(B=E.current)===null||B===void 0?void 0:B.nativeElement};return Object.defineProperty(F,"scrollLeft",{get:function(){var T;return((T=E.current)===null||T===void 0?void 0:T.getScrollInfo().x)||0},set:function(T){var M;(M=E.current)===null||M===void 0||M.scrollTo({left:T})}}),F});var P=function(F,A){var T,M=(T=I[A])===null||T===void 0?void 0:T.record,D=F.onCell;if(D){var V,K=D(M,A);return(V=K==null?void 0:K.rowSpan)!==null&&V!==void 0?V:1}return 1},j=function(F){var A=F.start,T=F.end,M=F.getSize,D=F.offsetY;if(T<0)return null;for(var V=o.filter(function(oe){return P(oe,A)===0}),K=A,z=function(le){if(V=V.filter(function(ae){return P(ae,le)===0}),!V.length)return K=le,1},U=A;U>=0&&!z(U);U-=1);for(var Y=o.filter(function(oe){return P(oe,T)!==1}),q=T,X=function(le){if(Y=Y.filter(function(ae){return P(ae,le)!==1}),!Y.length)return q=Math.max(le-1,T),1},te=T;te1})&&ee.push(le)},ie=K;ie<=q;ie+=1)J(ie);var de=ee.map(function(oe){var le=I[oe],ae=c(le.record,oe),ue=function(xe){var Ee=oe+xe-1,Le=c(I[Ee].record,Ee),Ne=M(ae,Le);return Ne.bottom-Ne.top},pe=M(ae);return i.createElement(ME,{key:oe,data:le,rowKey:ae,index:oe,style:{top:-D+pe.top},extra:!0,getHeight:ue})});return de},R=i.useMemo(function(){return{columnsOffset:O}},[O]),k="".concat(f,"-tbody"),L=C(["body","wrapper"]),W={};return b&&(W.position="sticky",W.bottom=0,wt(b)==="object"&&b.offsetScroll&&(W.bottom=b.offsetScroll)),i.createElement(CP.Provider,{value:R},i.createElement(Dp,{fullHeight:!1,ref:E,prefixCls:"".concat(k,"-virtual"),styles:{horizontalScrollBar:W},className:k,height:x,itemHeight:y||24,data:I,itemKey:function(F){return c(F.record)},component:L,scrollWidth:p,direction:v,onVirtualScroll:function(F){var A,T=F.x;r({currentTarget:(A=E.current)===null||A===void 0?void 0:A.nativeElement,scrollLeft:T})},onScroll:w,extraRender:j},function(B,F,A){var T=c(B.record,F);return i.createElement(ME,{data:B,rowKey:T,index:F,style:A.style})}))}),bY=xc(yY),xY=function(t,n){var r=n.ref,a=n.onScroll;return i.createElement(bY,{ref:r,data:t,onScroll:a})};function SY(e,t){var n=e.data,r=e.columns,a=e.scroll,o=e.sticky,l=e.prefixCls,c=l===void 0?xP:l,d=e.className,f=e.listItemHeight,m=e.components,p=e.onScroll,v=a||{},h=v.x,b=v.y;typeof h!="number"&&(h=1),typeof b!="number"&&(b=500);var x=wn(function(w,E){return Ca(m,w)||E}),y=wn(p),C=i.useMemo(function(){return{sticky:o,scrollY:b,listItemHeight:f,getComponent:x,onScroll:y}},[o,b,f,x,y]);return i.createElement(px.Provider,{value:C},i.createElement(Cc,Pe({},e,{className:ce(d,"".concat(c,"-virtual")),scroll:Z(Z({},a),{},{x:h}),components:Z(Z({},m),{},{body:n!=null&&n.length?xY:void 0}),columns:r,internalHooks:Rd,tailor:!0,ref:t})))}var CY=i.forwardRef(SY);function wP(e){return lP(CY,e)}wP();const wY=e=>null,$Y=e=>null;var vx=i.createContext(null),EY=i.createContext({}),_Y=function(t){for(var n=t.prefixCls,r=t.level,a=t.isStart,o=t.isEnd,l="".concat(n,"-indent-unit"),c=[],d=0;d=0&&n.splice(r,1),n}function ci(e,t){var n=(e||[]).slice();return n.indexOf(t)===-1&&n.push(t),n}function gx(e){return e.split("-")}function PY(e,t){var n=[],r=Ma(t,e);function a(){var o=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];o.forEach(function(l){var c=l.key,d=l.children;n.push(c),a(d)})}return a(r.children),n}function NY(e){if(e.parent){var t=gx(e.pos);return Number(t[t.length-1])===e.parent.children.length-1}return!1}function jY(e){var t=gx(e.pos);return Number(t[t.length-1])===0}function FE(e,t,n,r,a,o,l,c,d,f){var m,p=e.clientX,v=e.clientY,h=e.target.getBoundingClientRect(),b=h.top,x=h.height,y=(f==="rtl"?-1:1)*(((a==null?void 0:a.x)||0)-p),C=(y-12)/r,w=d.filter(function(T){var M;return(M=c[T])===null||M===void 0||(M=M.children)===null||M===void 0?void 0:M.length}),E=Ma(c,n.eventKey);if(v-1.5?o({dragNode:B,dropNode:F,dropPosition:1})?k=1:A=!1:o({dragNode:B,dropNode:F,dropPosition:0})?k=0:o({dragNode:B,dropNode:F,dropPosition:1})?k=1:A=!1:o({dragNode:B,dropNode:F,dropPosition:1})?k=1:A=!1,{dropPosition:k,dropLevelOffset:L,dropTargetKey:E.key,dropTargetPos:E.pos,dragOverNodeKey:R,dropContainerKey:k===0?null:((m=E.parent)===null||m===void 0?void 0:m.key)||null,dropAllowed:A}}function LE(e,t){if(e){var n=t.multiple;return n?e.slice():e.length?[e[0]]:e}}function Wh(e){if(!e)return null;var t;if(Array.isArray(e))t={checkedKeys:e,halfCheckedKeys:void 0};else if(wt(e)==="object")t={checkedKeys:e.checked||void 0,halfCheckedKeys:e.halfChecked||void 0};else return or(!1,"`checkedKeys` is not an array or an object"),null;return t}function E0(e,t){var n=new Set;function r(a){if(!n.has(a)){var o=Ma(t,a);if(o){n.add(a);var l=o.parent,c=o.node;c.disabled||l&&r(l.key)}}}return(e||[]).forEach(function(a){r(a)}),Te(n)}function kY(e){const[t,n]=i.useState(null);return[i.useCallback((o,l,c)=>{const d=t??o,f=Math.min(d||0,o),m=Math.max(d||0,o),p=l.slice(f,m+1).map(b=>e(b)),v=p.some(b=>!c.has(b)),h=[];return p.forEach(b=>{v?(c.has(b)||h.push(b),c.add(b)):(c.delete(b),h.push(b))}),n(v?m:null),h},[t]),o=>{n(o)}]}const Qi={},_0="SELECT_ALL",I0="SELECT_INVERT",O0="SELECT_NONE",AE=[],$P=(e,t)=>{let n=[];return(t||[]).forEach(r=>{n.push(r),r&&typeof r=="object"&&e in r&&(n=[].concat(Te(n),Te($P(e,r[e]))))}),n},MY=(e,t)=>{const{preserveSelectedRowKeys:n,selectedRowKeys:r,defaultSelectedRowKeys:a,getCheckboxProps:o,onChange:l,onSelect:c,onSelectAll:d,onSelectInvert:f,onSelectNone:m,onSelectMultiple:p,columnWidth:v,type:h,selections:b,fixed:x,renderCell:y,hideSelectAll:C,checkStrictly:w=!0}=t||{},{prefixCls:E,data:I,pageData:_,getRecordByKey:O,getRowKey:P,expandType:j,childrenColumnName:R,locale:k,getPopupContainer:L}=e,W=ml(),[B,F]=kY(oe=>oe),[A,T]=Hn(r||a||AE,{value:r}),M=i.useRef(new Map),D=i.useCallback(oe=>{if(n){const le=new Map;oe.forEach(ae=>{let ue=O(ae);!ue&&M.current.has(ae)&&(ue=M.current.get(ae)),le.set(ae,ue)}),M.current=le}},[O,n]);i.useEffect(()=>{D(A)},[A]);const V=i.useMemo(()=>$P(R,_),[R,_]),{keyEntities:K}=i.useMemo(()=>{if(w)return{keyEntities:null};let oe=I;if(n){const le=new Set(V.map((ue,pe)=>P(ue,pe))),ae=Array.from(M.current).reduce((ue,pe)=>{let[fe,xe]=pe;return le.has(fe)?ue:ue.concat(xe)},[]);oe=[].concat(Te(oe),Te(ae))}return Qb(oe,{externalGetKey:P,childrenPropName:R})},[I,P,w,R,n,V]),z=i.useMemo(()=>{const oe=new Map;return V.forEach((le,ae)=>{const ue=P(le,ae),pe=(o?o(le):null)||{};oe.set(ue,pe)}),oe},[V,P,o]),U=i.useCallback(oe=>{const le=P(oe);let ae;return z.has(le)?ae=z.get(P(oe)):ae=o?o(oe):void 0,!!(ae!=null&&ae.disabled)},[z,P]),[Y,q]=i.useMemo(()=>{if(w)return[A||[],[]];const{checkedKeys:oe,halfCheckedKeys:le}=Gs(A,!0,K,U);return[oe||[],le]},[A,w,K,U]),X=i.useMemo(()=>{const oe=h==="radio"?Y.slice(0,1):Y;return new Set(oe)},[Y,h]),te=i.useMemo(()=>h==="radio"?new Set:new Set(q),[q,h]);i.useEffect(()=>{t||T(AE)},[!!t]);const ee=i.useCallback((oe,le)=>{let ae,ue;D(oe),n?(ae=oe,ue=oe.map(pe=>M.current.get(pe))):(ae=[],ue=[],oe.forEach(pe=>{const fe=O(pe);fe!==void 0&&(ae.push(pe),ue.push(fe))})),T(ae),l==null||l(ae,ue,{type:le})},[T,O,l,n]),J=i.useCallback((oe,le,ae,ue)=>{if(c){const pe=ae.map(fe=>O(fe));c(O(oe),le,pe,ue)}ee(ae,"single")},[c,O,ee]),ie=i.useMemo(()=>!b||C?null:(b===!0?[_0,I0,O0]:b).map(le=>le===_0?{key:"all",text:k.selectionAll,onSelect(){ee(I.map((ae,ue)=>P(ae,ue)).filter(ae=>{const ue=z.get(ae);return!(ue!=null&&ue.disabled)||X.has(ae)}),"all")}}:le===I0?{key:"invert",text:k.selectInvert,onSelect(){const ae=new Set(X);_.forEach((pe,fe)=>{const xe=P(pe,fe),Ee=z.get(xe);Ee!=null&&Ee.disabled||(ae.has(xe)?ae.delete(xe):ae.add(xe))});const ue=Array.from(ae);f&&(W.deprecated(!1,"onSelectInvert","onChange"),f(ue)),ee(ue,"invert")}}:le===O0?{key:"none",text:k.selectNone,onSelect(){m==null||m(),ee(Array.from(X).filter(ae=>{const ue=z.get(ae);return ue==null?void 0:ue.disabled}),"none")}}:le).map(le=>Object.assign(Object.assign({},le),{onSelect:function(){for(var ae,ue,pe=arguments.length,fe=new Array(pe),xe=0;xe{var le;if(!t)return oe.filter(ze=>ze!==Qi);let ae=Te(oe);const ue=new Set(X),pe=V.map(P).filter(ze=>!z.get(ze).disabled),fe=pe.every(ze=>ue.has(ze)),xe=pe.some(ze=>ue.has(ze)),Ee=()=>{const ze=[];fe?pe.forEach(Ie=>{ue.delete(Ie),ze.push(Ie)}):pe.forEach(Ie=>{ue.has(Ie)||(ue.add(Ie),ze.push(Ie))});const Ae=Array.from(ue);d==null||d(!fe,Ae.map(Ie=>O(Ie)),ze.map(Ie=>O(Ie))),ee(Ae,"all"),F(null)};let Le,Ne;if(h!=="radio"){let ze;if(ie){const Ce={getPopupContainer:L,items:ie.map((_e,he)=>{const{key:ke,text:tt,onSelect:Nt}=_e;return{key:ke??he,onClick:()=>{Nt==null||Nt(pe)},label:tt}})};ze=i.createElement("div",{className:`${E}-selection-extra`},i.createElement(ax,{menu:Ce,getPopupContainer:L},i.createElement("span",null,i.createElement(Eb,null))))}const Ae=V.map((Ce,_e)=>{const he=P(Ce,_e),ke=z.get(he)||{};return Object.assign({checked:ue.has(he)},ke)}).filter(Ce=>{let{disabled:_e}=Ce;return _e}),Ie=!!Ae.length&&Ae.length===V.length,Ve=Ie&&Ae.every(Ce=>{let{checked:_e}=Ce;return _e}),ye=Ie&&Ae.some(Ce=>{let{checked:_e}=Ce;return _e});Ne=i.createElement(Jr,{checked:Ie?Ve:!!V.length&&fe,indeterminate:Ie?!Ve&&ye:!fe&&xe,onChange:Ee,disabled:V.length===0||Ie,"aria-label":ze?"Custom selection":"Select all",skipGroup:!0}),Le=!C&&i.createElement("div",{className:`${E}-selection`},Ne,ze)}let ge;h==="radio"?ge=(ze,Ae,Ie)=>{const Ve=P(Ae,Ie),ye=ue.has(Ve),Ce=z.get(Ve);return{node:i.createElement(na,Object.assign({},Ce,{checked:ye,onClick:_e=>{var he;_e.stopPropagation(),(he=Ce==null?void 0:Ce.onClick)===null||he===void 0||he.call(Ce,_e)},onChange:_e=>{var he;ue.has(Ve)||J(Ve,!0,[Ve],_e.nativeEvent),(he=Ce==null?void 0:Ce.onChange)===null||he===void 0||he.call(Ce,_e)}})),checked:ye}}:ge=(ze,Ae,Ie)=>{var Ve;const ye=P(Ae,Ie),Ce=ue.has(ye),_e=te.has(ye),he=z.get(ye);let ke;return j==="nest"?ke=_e:ke=(Ve=he==null?void 0:he.indeterminate)!==null&&Ve!==void 0?Ve:_e,{node:i.createElement(Jr,Object.assign({},he,{indeterminate:ke,checked:Ce,skipGroup:!0,onClick:tt=>{var Nt;tt.stopPropagation(),(Nt=he==null?void 0:he.onClick)===null||Nt===void 0||Nt.call(he,tt)},onChange:tt=>{var Nt;const{nativeEvent:Ht}=tt,{shiftKey:Ge}=Ht,rt=pe.findIndex(at=>at===ye),gt=Y.some(at=>pe.includes(at));if(Ge&&w&>){const at=B(rt,pe,ue),dt=Array.from(ue);p==null||p(!Ce,dt.map(st=>O(st)),at.map(st=>O(st))),ee(dt,"multiple")}else{const at=Y;if(w){const dt=Ce?Ho(at,ye):ci(at,ye);J(ye,!Ce,dt,Ht)}else{const dt=Gs([].concat(Te(at),[ye]),!0,K,U),{checkedKeys:st,halfCheckedKeys:et}=dt;let Qe=st;if(Ce){const Tt=new Set(st);Tt.delete(ye),Qe=Gs(Array.from(Tt),{halfCheckedKeys:et},K,U).checkedKeys}J(ye,!Ce,Qe,Ht)}}F(Ce?null:rt),(Nt=he==null?void 0:he.onChange)===null||Nt===void 0||Nt.call(he,tt)}})),checked:Ce}};const we=(ze,Ae,Ie)=>{const{node:Ve,checked:ye}=ge(ze,Ae,Ie);return y?y(ye,Ae,Ie,Ve):Ve};if(!ae.includes(Qi))if(ae.findIndex(ze=>{var Ae;return((Ae=ze[ku])===null||Ae===void 0?void 0:Ae.columnType)==="EXPAND_COLUMN"})===0){const[ze,...Ae]=ae;ae=[ze,Qi].concat(Te(Ae))}else ae=[Qi].concat(Te(ae));const Se=ae.indexOf(Qi);ae=ae.filter((ze,Ae)=>ze!==Qi||Ae===Se);const Re=ae[Se-1],De=ae[Se+1];let Me=x;Me===void 0&&((De==null?void 0:De.fixed)!==void 0?Me=De.fixed:(Re==null?void 0:Re.fixed)!==void 0&&(Me=Re.fixed)),Me&&Re&&((le=Re[ku])===null||le===void 0?void 0:le.columnType)==="EXPAND_COLUMN"&&Re.fixed===void 0&&(Re.fixed=Me);const Ye=ce(`${E}-selection-col`,{[`${E}-selection-col-with-dropdown`]:b&&h==="checkbox"}),qe=()=>t!=null&&t.columnTitle?typeof t.columnTitle=="function"?t.columnTitle(Ne):t.columnTitle:Le,He={fixed:Me,width:v,className:`${E}-selection-column`,title:qe(),render:we,onCell:t.onCell,[ku]:{className:Ye}};return ae.map(ze=>ze===Qi?He:ze)},[P,V,t,Y,X,te,v,ie,j,z,p,J,U]),X]};function TY(e,t){return e._antProxy=e._antProxy||{},Object.keys(t).forEach(n=>{if(!(n in e._antProxy)){const r=e[n];e._antProxy[n]=r,e[n]=t[n]}}),e}function DY(e,t){return i.useImperativeHandle(e,()=>{const n=t(),{nativeElement:r}=n;return typeof Proxy<"u"?new Proxy(r,{get(a,o){return n[o]?n[o]:Reflect.get(a,o)}}):TY(r,n)})}function FY(e){return t=>{const{prefixCls:n,onExpand:r,record:a,expanded:o,expandable:l}=t,c=`${n}-row-expand-icon`;return i.createElement("button",{type:"button",onClick:d=>{r(a,d),d.stopPropagation()},className:ce(c,{[`${c}-spaced`]:!l,[`${c}-expanded`]:l&&o,[`${c}-collapsed`]:l&&!o}),"aria-label":o?e.collapse:e.expand,"aria-expanded":o})}}function LY(e){return(n,r)=>{const a=n.querySelector(`.${e}-container`);let o=r;if(a){const l=getComputedStyle(a),c=parseInt(l.borderLeftWidth,10),d=parseInt(l.borderRightWidth,10);o=r-c-d}return o}}const ul=(e,t)=>"key"in e&&e.key!==void 0&&e.key!==null?e.key:e.dataIndex?Array.isArray(e.dataIndex)?e.dataIndex.join("."):e.dataIndex:t;function wc(e,t){return t?`${t}-${e}`:`${e}`}const nv=(e,t)=>typeof e=="function"?e(t):e,AY=(e,t)=>{const n=nv(e,t);return Object.prototype.toString.call(n)==="[object Object]"?"":n};function zY(e){const t=i.useRef(e),n=_b();return[()=>t.current,r=>{t.current=r,n()}]}var BY=function(t){var n=t.dropPosition,r=t.dropLevelOffset,a=t.indent,o={pointerEvents:"none",position:"absolute",right:0,backgroundColor:"red",height:2};switch(n){case-1:o.top=0,o.left=-r*a;break;case 1:o.bottom=0,o.left=-r*a;break;case 0:o.bottom=0,o.left=a;break}return be.createElement("div",{style:o})};function EP(e){if(e==null)throw new TypeError("Cannot destructure "+e)}function HY(e,t){var n=i.useState(!1),r=se(n,2),a=r[0],o=r[1];hn(function(){if(a)return e(),function(){t()}},[a]),hn(function(){return o(!0),function(){o(!1)}},[])}var VY=["className","style","motion","motionNodes","motionType","onMotionStart","onMotionEnd","active","treeNodeRequiredProps"],WY=i.forwardRef(function(e,t){var n=e.className,r=e.style,a=e.motion,o=e.motionNodes,l=e.motionType,c=e.onMotionStart,d=e.onMotionEnd,f=e.active,m=e.treeNodeRequiredProps,p=Kt(e,VY),v=i.useState(!0),h=se(v,2),b=h[0],x=h[1],y=i.useContext(vx),C=y.prefixCls,w=o&&l!=="hide";hn(function(){o&&w!==b&&x(w)},[o]);var E=function(){o&&c()},I=i.useRef(!1),_=function(){o&&!I.current&&(I.current=!0,d())};HY(E,_);var O=function(j){w===j&&_()};return o?i.createElement(ko,Pe({ref:t,visible:b},a,{motionAppear:l==="show",onVisibleChanged:O}),function(P,j){var R=P.className,k=P.style;return i.createElement("div",{ref:j,className:ce("".concat(C,"-treenode-motion"),R),style:k},o.map(function(L){var W=Object.assign({},(EP(L.data),L.data)),B=L.title,F=L.key,A=L.isStart,T=L.isEnd;delete W.children;var M=Nu(F,m);return i.createElement(ad,Pe({},W,M,{title:B,active:f,data:L.data,key:F,isStart:A,isEnd:T}))}))}):i.createElement(ad,Pe({domRef:t,className:n,style:r},p,{active:f}))});function KY(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],n=e.length,r=t.length;if(Math.abs(n-r)!==1)return{add:!1,key:null};function a(o,l){var c=new Map;o.forEach(function(f){c.set(f,!0)});var d=l.filter(function(f){return!c.has(f)});return d.length===1?d[0]:null}return n ").concat(t);return t}var GY=i.forwardRef(function(e,t){var n=e.prefixCls,r=e.data;e.selectable,e.checkable;var a=e.expandedKeys,o=e.selectedKeys,l=e.checkedKeys,c=e.loadedKeys,d=e.loadingKeys,f=e.halfCheckedKeys,m=e.keyEntities,p=e.disabled,v=e.dragging,h=e.dragOverNodeKey,b=e.dropPosition,x=e.motion,y=e.height,C=e.itemHeight,w=e.virtual,E=e.scrollWidth,I=e.focusable,_=e.activeItem,O=e.focused,P=e.tabIndex,j=e.onKeyDown,R=e.onFocus,k=e.onBlur,L=e.onActiveChange,W=e.onListChangeStart,B=e.onListChangeEnd,F=Kt(e,UY),A=i.useRef(null),T=i.useRef(null);i.useImperativeHandle(t,function(){return{scrollTo:function(we){A.current.scrollTo(we)},getIndentWidth:function(){return T.current.offsetWidth}}});var M=i.useState(a),D=se(M,2),V=D[0],K=D[1],z=i.useState(r),U=se(z,2),Y=U[0],q=U[1],X=i.useState(r),te=se(X,2),ee=te[0],J=te[1],ie=i.useState([]),de=se(ie,2),oe=de[0],le=de[1],ae=i.useState(null),ue=se(ae,2),pe=ue[0],fe=ue[1],xe=i.useRef(r);xe.current=r;function Ee(){var ge=xe.current;q(ge),J(ge),le([]),fe(null),B()}hn(function(){K(a);var ge=KY(V,a);if(ge.key!==null)if(ge.add){var we=Y.findIndex(function(qe){var He=qe.key;return He===ge.key}),Se=VE(zE(Y,r,ge.key),w,y,C),Re=Y.slice();Re.splice(we+1,0,HE),J(Re),le(Se),fe("show")}else{var De=r.findIndex(function(qe){var He=qe.key;return He===ge.key}),Me=VE(zE(r,Y,ge.key),w,y,C),Ye=r.slice();Ye.splice(De+1,0,HE),J(Ye),le(Me),fe("hide")}else Y!==r&&(q(r),J(r))},[a,r]),i.useEffect(function(){v||Ee()},[v]);var Le=x?ee:r,Ne={expandedKeys:a,selectedKeys:o,loadedKeys:c,loadingKeys:d,checkedKeys:l,halfCheckedKeys:f,dragOverNodeKey:h,dropPosition:b,keyEntities:m};return i.createElement(i.Fragment,null,O&&_&&i.createElement("span",{style:BE,"aria-live":"assertive"},YY(_)),i.createElement("div",null,i.createElement("input",{style:BE,disabled:I===!1||p,tabIndex:I!==!1?P:null,onKeyDown:j,onFocus:R,onBlur:k,value:"",onChange:qY,"aria-label":"for screen reader"})),i.createElement("div",{className:"".concat(n,"-treenode"),"aria-hidden":!0,style:{position:"absolute",pointerEvents:"none",visibility:"hidden",height:0,overflow:"hidden",border:0,padding:0}},i.createElement("div",{className:"".concat(n,"-indent")},i.createElement("div",{ref:T,className:"".concat(n,"-indent-unit")}))),i.createElement(Dp,Pe({},F,{data:Le,itemKey:WE,height:y,fullHeight:!1,virtual:w,itemHeight:C,scrollWidth:E,prefixCls:"".concat(n,"-list"),ref:A,role:"tree",onVisibleChange:function(we){we.every(function(Se){return WE(Se)!==Gl})&&Ee()}}),function(ge){var we=ge.pos,Se=Object.assign({},(EP(ge.data),ge.data)),Re=ge.title,De=ge.key,Me=ge.isStart,Ye=ge.isEnd,qe=_d(De,we);delete Se.key,delete Se.children;var He=Nu(qe,Ne);return i.createElement(WY,Pe({},Se,He,{title:Re,active:!!_&&De===_.key,pos:we,data:ge.data,isStart:Me,isEnd:Ye,motion:x,motionNodes:De===Gl?oe:null,motionType:pe,onMotionStart:W,onMotionEnd:Ee,treeNodeRequiredProps:Ne,onMouseMove:function(){L(null)}}))}))}),XY=10,hx=function(e){so(n,e);var t=co(n);function n(){var r;ur(this,n);for(var a=arguments.length,o=new Array(a),l=0;l2&&arguments[2]!==void 0?arguments[2]:!1,p=r.state,v=p.dragChildrenKeys,h=p.dropPosition,b=p.dropTargetKey,x=p.dropTargetPos,y=p.dropAllowed;if(y){var C=r.props.onDrop;if(r.setState({dragOverNodeKey:null}),r.cleanDragState(),b!==null){var w=Z(Z({},Nu(b,r.getTreeNodeRequiredProps())),{},{active:((f=r.getActiveItem())===null||f===void 0?void 0:f.key)===b,data:Ma(r.state.keyEntities,b).node}),E=v.includes(b);or(!E,"Can not drop to dragNode's children node. This is a bug of rc-tree. Please report an issue.");var I=gx(x),_={event:c,node:Lr(w),dragNode:r.dragNodeProps?Lr(r.dragNodeProps):null,dragNodesKeys:[r.dragNodeProps.eventKey].concat(v),dropToGap:h!==0,dropPosition:h+Number(I[I.length-1])};m||C==null||C(_),r.dragNodeProps=null}}}),G(pt(r),"cleanDragState",function(){var c=r.state.draggingNodeKey;c!==null&&r.setState({draggingNodeKey:null,dropPosition:null,dropContainerKey:null,dropTargetKey:null,dropLevelOffset:null,dropAllowed:!0,dragOverNodeKey:null}),r.dragStartMousePosition=null,r.currentMouseOverDroppableNodeKey=null}),G(pt(r),"triggerExpandActionExpand",function(c,d){var f=r.state,m=f.expandedKeys,p=f.flattenNodes,v=d.expanded,h=d.key,b=d.isLeaf;if(!(b||c.shiftKey||c.metaKey||c.ctrlKey)){var x=p.filter(function(C){return C.key===h})[0],y=Lr(Z(Z({},Nu(h,r.getTreeNodeRequiredProps())),{},{data:x.data}));r.setExpandedKeys(v?Ho(m,h):ci(m,h)),r.onNodeExpand(c,y)}}),G(pt(r),"onNodeClick",function(c,d){var f=r.props,m=f.onClick,p=f.expandAction;p==="click"&&r.triggerExpandActionExpand(c,d),m==null||m(c,d)}),G(pt(r),"onNodeDoubleClick",function(c,d){var f=r.props,m=f.onDoubleClick,p=f.expandAction;p==="doubleClick"&&r.triggerExpandActionExpand(c,d),m==null||m(c,d)}),G(pt(r),"onNodeSelect",function(c,d){var f=r.state.selectedKeys,m=r.state,p=m.keyEntities,v=m.fieldNames,h=r.props,b=h.onSelect,x=h.multiple,y=d.selected,C=d[v.key],w=!y;w?x?f=ci(f,C):f=[C]:f=Ho(f,C);var E=f.map(function(I){var _=Ma(p,I);return _?_.node:null}).filter(Boolean);r.setUncontrolledState({selectedKeys:f}),b==null||b(f,{event:"select",selected:w,node:d,selectedNodes:E,nativeEvent:c.nativeEvent})}),G(pt(r),"onNodeCheck",function(c,d,f){var m=r.state,p=m.keyEntities,v=m.checkedKeys,h=m.halfCheckedKeys,b=r.props,x=b.checkStrictly,y=b.onCheck,C=d.key,w,E={event:"check",node:d,checked:f,nativeEvent:c.nativeEvent};if(x){var I=f?ci(v,C):Ho(v,C),_=Ho(h,C);w={checked:I,halfChecked:_},E.checkedNodes=I.map(function(L){return Ma(p,L)}).filter(Boolean).map(function(L){return L.node}),r.setUncontrolledState({checkedKeys:I})}else{var O=Gs([].concat(Te(v),[C]),!0,p),P=O.checkedKeys,j=O.halfCheckedKeys;if(!f){var R=new Set(P);R.delete(C);var k=Gs(Array.from(R),{halfCheckedKeys:j},p);P=k.checkedKeys,j=k.halfCheckedKeys}w=P,E.checkedNodes=[],E.checkedNodesPositions=[],E.halfCheckedKeys=j,P.forEach(function(L){var W=Ma(p,L);if(W){var B=W.node,F=W.pos;E.checkedNodes.push(B),E.checkedNodesPositions.push({node:B,pos:F})}}),r.setUncontrolledState({checkedKeys:P},!1,{halfCheckedKeys:j})}y==null||y(w,E)}),G(pt(r),"onNodeLoad",function(c){var d,f=c.key,m=r.state.keyEntities,p=Ma(m,f);if(!(p!=null&&(d=p.children)!==null&&d!==void 0&&d.length)){var v=new Promise(function(h,b){r.setState(function(x){var y=x.loadedKeys,C=y===void 0?[]:y,w=x.loadingKeys,E=w===void 0?[]:w,I=r.props,_=I.loadData,O=I.onLoad;if(!_||C.includes(f)||E.includes(f))return null;var P=_(c);return P.then(function(){var j=r.state.loadedKeys,R=ci(j,f);O==null||O(R,{event:"load",node:c}),r.setUncontrolledState({loadedKeys:R}),r.setState(function(k){return{loadingKeys:Ho(k.loadingKeys,f)}}),h()}).catch(function(j){if(r.setState(function(k){return{loadingKeys:Ho(k.loadingKeys,f)}}),r.loadingRetryTimes[f]=(r.loadingRetryTimes[f]||0)+1,r.loadingRetryTimes[f]>=XY){var R=r.state.loadedKeys;or(!1,"Retry for `loadData` many times but still failed. No more retry."),r.setUncontrolledState({loadedKeys:ci(R,f)}),h()}b(j)}),{loadingKeys:ci(E,f)}})});return v.catch(function(){}),v}}),G(pt(r),"onNodeMouseEnter",function(c,d){var f=r.props.onMouseEnter;f==null||f({event:c,node:d})}),G(pt(r),"onNodeMouseLeave",function(c,d){var f=r.props.onMouseLeave;f==null||f({event:c,node:d})}),G(pt(r),"onNodeContextMenu",function(c,d){var f=r.props.onRightClick;f&&(c.preventDefault(),f({event:c,node:d}))}),G(pt(r),"onFocus",function(){var c=r.props.onFocus;r.setState({focused:!0});for(var d=arguments.length,f=new Array(d),m=0;m1&&arguments[1]!==void 0?arguments[1]:!1,f=arguments.length>2&&arguments[2]!==void 0?arguments[2]:null;if(!r.destroyed){var m=!1,p=!0,v={};Object.keys(c).forEach(function(h){if(r.props.hasOwnProperty(h)){p=!1;return}m=!0,v[h]=c[h]}),m&&(!d||p)&&r.setState(Z(Z({},v),f))}}),G(pt(r),"scrollTo",function(c){r.listRef.current.scrollTo(c)}),r}return dr(n,[{key:"componentDidMount",value:function(){this.destroyed=!1,this.onUpdated()}},{key:"componentDidUpdate",value:function(){this.onUpdated()}},{key:"onUpdated",value:function(){var a=this.props,o=a.activeKey,l=a.itemScrollOffset,c=l===void 0?0:l;o!==void 0&&o!==this.state.activeKey&&(this.setState({activeKey:o}),o!==null&&this.scrollTo({key:o,offset:c}))}},{key:"componentWillUnmount",value:function(){window.removeEventListener("dragend",this.onWindowDragEnd),this.destroyed=!0}},{key:"resetDragState",value:function(){this.setState({dragOverNodeKey:null,dropPosition:null,dropLevelOffset:null,dropTargetKey:null,dropContainerKey:null,dropTargetPos:null,dropAllowed:!1})}},{key:"render",value:function(){var a=this.state,o=a.focused,l=a.flattenNodes,c=a.keyEntities,d=a.draggingNodeKey,f=a.activeKey,m=a.dropLevelOffset,p=a.dropContainerKey,v=a.dropTargetKey,h=a.dropPosition,b=a.dragOverNodeKey,x=a.indent,y=this.props,C=y.prefixCls,w=y.className,E=y.style,I=y.showLine,_=y.focusable,O=y.tabIndex,P=O===void 0?0:O,j=y.selectable,R=y.showIcon,k=y.icon,L=y.switcherIcon,W=y.draggable,B=y.checkable,F=y.checkStrictly,A=y.disabled,T=y.motion,M=y.loadData,D=y.filterTreeNode,V=y.height,K=y.itemHeight,z=y.scrollWidth,U=y.virtual,Y=y.titleRender,q=y.dropIndicatorRender,X=y.onContextMenu,te=y.onScroll,ee=y.direction,J=y.rootClassName,ie=y.rootStyle,de=oa(this.props,{aria:!0,data:!0}),oe;W&&(wt(W)==="object"?oe=W:typeof W=="function"?oe={nodeDraggable:W}:oe={});var le={prefixCls:C,selectable:j,showIcon:R,icon:k,switcherIcon:L,draggable:oe,draggingNodeKey:d,checkable:B,checkStrictly:F,disabled:A,keyEntities:c,dropLevelOffset:m,dropContainerKey:p,dropTargetKey:v,dropPosition:h,dragOverNodeKey:b,indent:x,direction:ee,dropIndicatorRender:q,loadData:M,filterTreeNode:D,titleRender:Y,onNodeClick:this.onNodeClick,onNodeDoubleClick:this.onNodeDoubleClick,onNodeExpand:this.onNodeExpand,onNodeSelect:this.onNodeSelect,onNodeCheck:this.onNodeCheck,onNodeLoad:this.onNodeLoad,onNodeMouseEnter:this.onNodeMouseEnter,onNodeMouseLeave:this.onNodeMouseLeave,onNodeContextMenu:this.onNodeContextMenu,onNodeDragStart:this.onNodeDragStart,onNodeDragEnter:this.onNodeDragEnter,onNodeDragOver:this.onNodeDragOver,onNodeDragLeave:this.onNodeDragLeave,onNodeDragEnd:this.onNodeDragEnd,onNodeDrop:this.onNodeDrop};return i.createElement(vx.Provider,{value:le},i.createElement("div",{className:ce(C,w,J,G(G(G({},"".concat(C,"-show-line"),I),"".concat(C,"-focused"),o),"".concat(C,"-active-focused"),f!==null)),style:ie},i.createElement(GY,Pe({ref:this.listRef,prefixCls:C,style:E,data:l,disabled:A,selectable:j,checkable:!!B,motion:T,dragging:d!==null,height:V,itemHeight:K,virtual:U,focusable:_,focused:o,tabIndex:P,activeItem:this.getActiveItem(),onFocus:this.onFocus,onBlur:this.onBlur,onKeyDown:this.onKeyDown,onActiveChange:this.onActiveChange,onListChangeStart:this.onListChangeStart,onListChangeEnd:this.onListChangeEnd,onContextMenu:X,onScroll:te,scrollWidth:z},this.getTreeNodeRequiredProps(),de))))}}],[{key:"getDerivedStateFromProps",value:function(a,o){var l=o.prevProps,c={prevProps:a};function d(P){return!l&&a.hasOwnProperty(P)||l&&l[P]!==a[P]}var f,m=o.fieldNames;if(d("fieldNames")&&(m=lc(a.fieldNames),c.fieldNames=m),d("treeData")?f=a.treeData:d("children")&&(or(!1,"`children` of Tree is deprecated. Please use `treeData` instead."),f=mR(a.children)),f){c.treeData=f;var p=Qb(f,{fieldNames:m});c.keyEntities=Z(G({},Gl,_P),p.keyEntities)}var v=c.keyEntities||o.keyEntities;if(d("expandedKeys")||l&&d("autoExpandParent"))c.expandedKeys=a.autoExpandParent||!l&&a.defaultExpandParent?E0(a.expandedKeys,v):a.expandedKeys;else if(!l&&a.defaultExpandAll){var h=Z({},v);delete h[Gl];var b=[];Object.keys(h).forEach(function(P){var j=h[P];j.children&&j.children.length&&b.push(j.key)}),c.expandedKeys=b}else!l&&a.defaultExpandedKeys&&(c.expandedKeys=a.autoExpandParent||a.defaultExpandParent?E0(a.defaultExpandedKeys,v):a.defaultExpandedKeys);if(c.expandedKeys||delete c.expandedKeys,f||c.expandedKeys){var x=Dh(f||o.treeData,c.expandedKeys||o.expandedKeys,m);c.flattenNodes=x}if(a.selectable&&(d("selectedKeys")?c.selectedKeys=LE(a.selectedKeys,a):!l&&a.defaultSelectedKeys&&(c.selectedKeys=LE(a.defaultSelectedKeys,a))),a.checkable){var y;if(d("checkedKeys")?y=Wh(a.checkedKeys)||{}:!l&&a.defaultCheckedKeys?y=Wh(a.defaultCheckedKeys)||{}:f&&(y=Wh(a.checkedKeys)||{checkedKeys:o.checkedKeys,halfCheckedKeys:o.halfCheckedKeys}),y){var C=y,w=C.checkedKeys,E=w===void 0?[]:w,I=C.halfCheckedKeys,_=I===void 0?[]:I;if(!a.checkStrictly){var O=Gs(E,!0,v);E=O.checkedKeys,_=O.halfCheckedKeys}c.checkedKeys=E,c.halfCheckedKeys=_}}return d("loadedKeys")&&(c.loadedKeys=a.loadedKeys),c}}]),n}(i.Component);G(hx,"defaultProps",{prefixCls:"rc-tree",showLine:!1,showIcon:!0,selectable:!0,multiple:!1,checkable:!1,disabled:!1,checkStrictly:!1,draggable:!1,defaultExpandParent:!0,autoExpandParent:!1,defaultExpandAll:!1,defaultExpandedKeys:[],defaultCheckedKeys:[],defaultSelectedKeys:[],dropIndicatorRender:BY,allowDrop:function(){return!0},expandAction:!1});G(hx,"TreeNode",ad);const QY=e=>{let{treeCls:t,treeNodeCls:n,directoryNodeSelectedBg:r,directoryNodeSelectedColor:a,motionDurationMid:o,borderRadius:l,controlItemBgHover:c}=e;return{[`${t}${t}-directory ${n}`]:{[`${t}-node-content-wrapper`]:{position:"static",[`> *:not(${t}-drop-indicator)`]:{position:"relative"},"&:hover":{background:"transparent"},"&:before":{position:"absolute",inset:0,transition:`background-color ${o}`,content:'""',borderRadius:l},"&:hover:before":{background:c}},[`${t}-switcher, ${t}-checkbox, ${t}-draggable-icon`]:{zIndex:1},"&-selected":{[`${t}-switcher, ${t}-draggable-icon`]:{color:a},[`${t}-node-content-wrapper`]:{color:a,background:"transparent","&:before, &:hover:before":{background:r}}}}}},JY=new jn("ant-tree-node-fx-do-not-use",{"0%":{opacity:0},"100%":{opacity:1}}),ZY=(e,t)=>({[`.${e}-switcher-icon`]:{display:"inline-block",fontSize:10,verticalAlign:"baseline",svg:{transition:`transform ${t.motionDurationSlow}`}}}),eG=(e,t)=>({[`.${e}-drop-indicator`]:{position:"absolute",zIndex:1,height:2,backgroundColor:t.colorPrimary,borderRadius:1,pointerEvents:"none","&:after":{position:"absolute",top:-3,insetInlineStart:-6,width:8,height:8,backgroundColor:"transparent",border:`${ne(t.lineWidthBold)} solid ${t.colorPrimary}`,borderRadius:"50%",content:'""'}}}),tG=(e,t)=>{const{treeCls:n,treeNodeCls:r,treeNodePadding:a,titleHeight:o,indentSize:l,nodeSelectedBg:c,nodeHoverBg:d,colorTextQuaternary:f,controlItemBgActiveDisabled:m}=t;return{[n]:Object.assign(Object.assign({},Ln(t)),{background:t.colorBgContainer,borderRadius:t.borderRadius,transition:`background-color ${t.motionDurationSlow}`,"&-rtl":{direction:"rtl"},[`&${n}-rtl ${n}-switcher_close ${n}-switcher-icon svg`]:{transform:"rotate(90deg)"},[`&-focused:not(:hover):not(${n}-active-focused)`]:Object.assign({},qo(t)),[`${n}-list-holder-inner`]:{alignItems:"flex-start"},[`&${n}-block-node`]:{[`${n}-list-holder-inner`]:{alignItems:"stretch",[`${n}-node-content-wrapper`]:{flex:"auto"},[`${r}.dragging:after`]:{position:"absolute",inset:0,border:`1px solid ${t.colorPrimary}`,opacity:0,animationName:JY,animationDuration:t.motionDurationSlow,animationPlayState:"running",animationFillMode:"forwards",content:'""',pointerEvents:"none",borderRadius:t.borderRadius}}},[r]:{display:"flex",alignItems:"flex-start",marginBottom:a,lineHeight:ne(o),position:"relative","&:before":{content:'""',position:"absolute",zIndex:1,insetInlineStart:0,width:"100%",top:"100%",height:a},[`&-disabled ${n}-node-content-wrapper`]:{color:t.colorTextDisabled,cursor:"not-allowed","&:hover":{background:"transparent"}},[`${n}-checkbox-disabled + ${n}-node-selected,&${r}-disabled${r}-selected ${n}-node-content-wrapper`]:{backgroundColor:m},[`${n}-checkbox-disabled`]:{pointerEvents:"unset"},[`&:not(${r}-disabled)`]:{[`${n}-node-content-wrapper`]:{"&:hover":{color:t.nodeHoverColor}}},[`&-active ${n}-node-content-wrapper`]:{background:t.controlItemBgHover},[`&:not(${r}-disabled).filter-node ${n}-title`]:{color:t.colorPrimary,fontWeight:500},"&-draggable":{cursor:"grab",[`${n}-draggable-icon`]:{flexShrink:0,width:o,textAlign:"center",visibility:"visible",color:f},[`&${r}-disabled ${n}-draggable-icon`]:{visibility:"hidden"}}},[`${n}-indent`]:{alignSelf:"stretch",whiteSpace:"nowrap",userSelect:"none","&-unit":{display:"inline-block",width:l}},[`${n}-draggable-icon`]:{visibility:"hidden"},[`${n}-switcher, ${n}-checkbox`]:{marginInlineEnd:t.calc(t.calc(o).sub(t.controlInteractiveSize)).div(2).equal()},[`${n}-switcher`]:Object.assign(Object.assign({},ZY(e,t)),{position:"relative",flex:"none",alignSelf:"stretch",width:o,textAlign:"center",cursor:"pointer",userSelect:"none",transition:`all ${t.motionDurationSlow}`,"&-noop":{cursor:"unset"},"&:before":{pointerEvents:"none",content:'""',width:o,height:o,position:"absolute",left:{_skip_check_:!0,value:0},top:0,borderRadius:t.borderRadius,transition:`all ${t.motionDurationSlow}`},[`&:not(${n}-switcher-noop):hover:before`]:{backgroundColor:t.colorBgTextHover},[`&_close ${n}-switcher-icon svg`]:{transform:"rotate(-90deg)"},"&-loading-icon":{color:t.colorPrimary},"&-leaf-line":{position:"relative",zIndex:1,display:"inline-block",width:"100%",height:"100%","&:before":{position:"absolute",top:0,insetInlineEnd:t.calc(o).div(2).equal(),bottom:t.calc(a).mul(-1).equal(),marginInlineStart:-1,borderInlineEnd:`1px solid ${t.colorBorder}`,content:'""'},"&:after":{position:"absolute",width:t.calc(t.calc(o).div(2).equal()).mul(.8).equal(),height:t.calc(o).div(2).equal(),borderBottom:`1px solid ${t.colorBorder}`,content:'""'}}}),[`${n}-node-content-wrapper`]:Object.assign(Object.assign({position:"relative",minHeight:o,paddingBlock:0,paddingInline:t.paddingXS,background:"transparent",borderRadius:t.borderRadius,cursor:"pointer",transition:`all ${t.motionDurationMid}, border 0s, line-height 0s, box-shadow 0s`},eG(e,t)),{"&:hover":{backgroundColor:d},[`&${n}-node-selected`]:{color:t.nodeSelectedColor,backgroundColor:c},[`${n}-iconEle`]:{display:"inline-block",width:o,height:o,textAlign:"center",verticalAlign:"top","&:empty":{display:"none"}}}),[`${n}-unselectable ${n}-node-content-wrapper:hover`]:{backgroundColor:"transparent"},[`${r}.drop-container > [draggable]`]:{boxShadow:`0 0 0 2px ${t.colorPrimary}`},"&-show-line":{[`${n}-indent-unit`]:{position:"relative",height:"100%","&:before":{position:"absolute",top:0,insetInlineEnd:t.calc(o).div(2).equal(),bottom:t.calc(a).mul(-1).equal(),borderInlineEnd:`1px solid ${t.colorBorder}`,content:'""'},"&-end:before":{display:"none"}},[`${n}-switcher`]:{background:"transparent","&-line-icon":{verticalAlign:"-0.15em"}}},[`${r}-leaf-last ${n}-switcher-leaf-line:before`]:{top:"auto !important",bottom:"auto !important",height:`${ne(t.calc(o).div(2).equal())} !important`}})}},nG=function(e,t){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0;const r=`.${e}`,a=`${r}-treenode`,o=t.calc(t.paddingXS).div(2).equal(),l=$n(t,{treeCls:r,treeNodeCls:a,treeNodePadding:o});return[tG(e,l),n&&QY(l)].filter(Boolean)},rG=e=>{const{controlHeightSM:t,controlItemBgHover:n,controlItemBgActive:r}=e,a=t;return{titleHeight:a,indentSize:a,nodeHoverBg:n,nodeHoverColor:e.colorText,nodeSelectedBg:r,nodeSelectedColor:e.colorText}},aG=e=>{const{colorTextLightSolid:t,colorPrimary:n}=e;return Object.assign(Object.assign({},rG(e)),{directoryNodeSelectedColor:t,directoryNodeSelectedBg:n})},oG=zn("Tree",(e,t)=>{let{prefixCls:n}=t;return[{[e.componentCls]:vR(`${n}-checkbox`,e)},nG(n,e),bp(e)]},aG),KE=4;function iG(e){const{dropPosition:t,dropLevelOffset:n,prefixCls:r,indent:a,direction:o="ltr"}=e,l=o==="ltr"?"left":"right",c=o==="ltr"?"right":"left",d={[l]:-n*a+KE,[c]:0};switch(t){case-1:d.top=-3;break;case 1:d.bottom=-3;break;default:d.bottom=-3,d[l]=a+KE;break}return be.createElement("div",{style:d,className:`${r}-drop-indicator`})}const lG=e=>{const{prefixCls:t,switcherIcon:n,treeNodeProps:r,showLine:a,switcherLoadingIcon:o}=e,{isLeaf:l,expanded:c,loading:d}=r;if(d)return i.isValidElement(o)?o:i.createElement(Si,{className:`${t}-switcher-loading-icon`});let f;if(a&&typeof a=="object"&&(f=a.showLeafIcon),l){if(!a)return null;if(typeof f!="boolean"&&f){const v=typeof f=="function"?f(r):f,h=`${t}-switcher-line-custom-icon`;return i.isValidElement(v)?ia(v,{className:ce(v.props.className||"",h)}):v}return f?i.createElement(nP,{className:`${t}-switcher-line-icon`}):i.createElement("span",{className:`${t}-switcher-leaf-line`})}const m=`${t}-switcher-icon`,p=typeof n=="function"?n(r):n;return i.isValidElement(p)?ia(p,{className:ce(p.props.className||"",m)}):p!==void 0?p:a?c?i.createElement(NU,{className:`${t}-switcher-line-icon`}):i.createElement(VU,{className:`${t}-switcher-line-icon`}):i.createElement(KK,{className:m})},IP=be.forwardRef((e,t)=>{var n;const{getPrefixCls:r,direction:a,virtual:o,tree:l}=be.useContext(Gt),{prefixCls:c,className:d,showIcon:f=!1,showLine:m,switcherIcon:p,switcherLoadingIcon:v,blockNode:h=!1,children:b,checkable:x=!1,selectable:y=!0,draggable:C,motion:w,style:E}=e,I=r("tree",c),_=r(),O=w??Object.assign(Object.assign({},Gu(_)),{motionAppear:!1}),P=Object.assign(Object.assign({},e),{checkable:x,selectable:y,showIcon:f,motion:O,blockNode:h,showLine:!!m,dropIndicatorRender:iG}),[j,R,k]=oG(I),[,L]=ba(),W=L.paddingXS/2+(((n=L.Tree)===null||n===void 0?void 0:n.titleHeight)||L.controlHeightSM),B=be.useMemo(()=>{if(!C)return!1;let A={};switch(typeof C){case"function":A.nodeDraggable=C;break;case"object":A=Object.assign({},C);break}return A.icon!==!1&&(A.icon=A.icon||be.createElement(OU,null)),A},[C]),F=A=>be.createElement(lG,{prefixCls:I,switcherIcon:p,switcherLoadingIcon:v,treeNodeProps:A,showLine:m});return j(be.createElement(hx,Object.assign({itemHeight:W,ref:t,virtual:o},P,{style:Object.assign(Object.assign({},l==null?void 0:l.style),E),prefixCls:I,className:ce({[`${I}-icon-hide`]:!f,[`${I}-block-node`]:h,[`${I}-unselectable`]:!y,[`${I}-rtl`]:a==="rtl"},l==null?void 0:l.className,d,R,k),direction:a,checkable:x&&be.createElement("span",{className:`${I}-checkbox-inner`}),selectable:y,switcherIcon:F,draggable:B}),b))}),UE=0,Kh=1,qE=2;function yx(e,t,n){const{key:r,children:a}=n;function o(l){const c=l[r],d=l[a];t(c,l)!==!1&&yx(d||[],t,n)}e.forEach(o)}function sG(e){let{treeData:t,expandedKeys:n,startKey:r,endKey:a,fieldNames:o}=e;const l=[];let c=UE;if(r&&r===a)return[r];if(!r||!a)return[];function d(f){return f===r||f===a}return yx(t,f=>{if(c===qE)return!1;if(d(f)){if(l.push(f),c===UE)c=Kh;else if(c===Kh)return c=qE,!1}else c===Kh&&l.push(f);return n.includes(f)},lc(o)),l}function Uh(e,t,n){const r=Te(t),a=[];return yx(e,(o,l)=>{const c=r.indexOf(o);return c!==-1&&(a.push(l),r.splice(c,1)),!!r.length},lc(n)),a}var YE=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 a=0,r=Object.getOwnPropertySymbols(e);a{var{defaultExpandAll:n,defaultExpandParent:r,defaultExpandedKeys:a}=e,o=YE(e,["defaultExpandAll","defaultExpandParent","defaultExpandedKeys"]);const l=i.useRef(null),c=i.useRef(null),d=()=>{const{keyEntities:j}=Qb(GE(o));let R;return n?R=Object.keys(j):r?R=E0(o.expandedKeys||a||[],j):R=o.expandedKeys||a||[],R},[f,m]=i.useState(o.selectedKeys||o.defaultSelectedKeys||[]),[p,v]=i.useState(()=>d());i.useEffect(()=>{"selectedKeys"in o&&m(o.selectedKeys)},[o.selectedKeys]),i.useEffect(()=>{"expandedKeys"in o&&v(o.expandedKeys)},[o.expandedKeys]);const h=(j,R)=>{var k;return"expandedKeys"in o||v(j),(k=o.onExpand)===null||k===void 0?void 0:k.call(o,j,R)},b=(j,R)=>{var k;const{multiple:L,fieldNames:W}=o,{node:B,nativeEvent:F}=R,{key:A=""}=B,T=GE(o),M=Object.assign(Object.assign({},R),{selected:!0}),D=(F==null?void 0:F.ctrlKey)||(F==null?void 0:F.metaKey),V=F==null?void 0:F.shiftKey;let K;L&&D?(K=j,l.current=A,c.current=K,M.selectedNodes=Uh(T,K,W)):L&&V?(K=Array.from(new Set([].concat(Te(c.current||[]),Te(sG({treeData:T,expandedKeys:p,startKey:A,endKey:l.current,fieldNames:W}))))),M.selectedNodes=Uh(T,K,W)):(K=[A],l.current=A,c.current=K,M.selectedNodes=Uh(T,K,W)),(k=o.onSelect)===null||k===void 0||k.call(o,K,M),"selectedKeys"in o||m(K)},{getPrefixCls:x,direction:y}=i.useContext(Gt),{prefixCls:C,className:w,showIcon:E=!0,expandAction:I="click"}=o,_=YE(o,["prefixCls","className","showIcon","expandAction"]),O=x("tree",C),P=ce(`${O}-directory`,{[`${O}-directory-rtl`]:y==="rtl"},w);return i.createElement(IP,Object.assign({icon:cG,ref:t,blockNode:!0},_,{showIcon:E,expandAction:I,prefixCls:O,className:P,expandedKeys:p,selectedKeys:f,onSelect:b,onExpand:h}))},dG=i.forwardRef(uG),bx=IP;bx.DirectoryTree=dG;bx.TreeNode=ad;const XE=e=>{const{value:t,filterSearch:n,tablePrefixCls:r,locale:a,onChange:o}=e;return n?i.createElement("div",{className:`${r}-filter-dropdown-search`},i.createElement(Id,{prefix:i.createElement(Fp,null),placeholder:a.filterSearchPlaceholder,onChange:o,value:t,htmlSize:1,className:`${r}-filter-dropdown-search-input`})):null},fG=e=>{const{keyCode:t}=e;t===$t.ENTER&&e.stopPropagation()},mG=i.forwardRef((e,t)=>i.createElement("div",{className:e.className,onClick:n=>n.stopPropagation(),onKeyDown:fG,ref:t},e.children));function Xs(e){let t=[];return(e||[]).forEach(n=>{let{value:r,children:a}=n;t.push(r),a&&(t=[].concat(Te(t),Te(Xs(a))))}),t}function pG(e){return e.some(t=>{let{children:n}=t;return n})}function OP(e,t){return typeof t=="string"||typeof t=="number"?t==null?void 0:t.toString().toLowerCase().includes(e.trim().toLowerCase()):!1}function RP(e){let{filters:t,prefixCls:n,filteredKeys:r,filterMultiple:a,searchValue:o,filterSearch:l}=e;return t.map((c,d)=>{const f=String(c.value);if(c.children)return{key:f||d,label:c.text,popupClassName:`${n}-dropdown-submenu`,children:RP({filters:c.children,prefixCls:n,filteredKeys:r,filterMultiple:a,searchValue:o,filterSearch:l})};const m=a?Jr:na,p={key:c.value!==void 0?f:d,label:i.createElement(i.Fragment,null,i.createElement(m,{checked:r.includes(f)}),i.createElement("span",null,c.text))};return o.trim()?typeof l=="function"?l(o,c)?p:null:OP(o,c.text)?p:null:p})}function qh(e){return e||[]}const vG=e=>{var t,n,r,a;const{tablePrefixCls:o,prefixCls:l,column:c,dropdownPrefixCls:d,columnKey:f,filterOnClose:m,filterMultiple:p,filterMode:v="menu",filterSearch:h=!1,filterState:b,triggerFilter:x,locale:y,children:C,getPopupContainer:w,rootClassName:E}=e,{filterResetToDefaultFilteredValue:I,defaultFilteredValue:_,filterDropdownProps:O={},filterDropdownOpen:P,filterDropdownVisible:j,onFilterDropdownVisibleChange:R,onFilterDropdownOpenChange:k}=c,[L,W]=i.useState(!1),B=!!(b&&(!((t=b.filteredKeys)===null||t===void 0)&&t.length||b.forceFiltered)),F=ge=>{var we;W(ge),(we=O.onOpenChange)===null||we===void 0||we.call(O,ge),k==null||k(ge),R==null||R(ge)},A=(a=(r=(n=O.open)!==null&&n!==void 0?n:P)!==null&&r!==void 0?r:j)!==null&&a!==void 0?a:L,T=b==null?void 0:b.filteredKeys,[M,D]=zY(qh(T)),V=ge=>{let{selectedKeys:we}=ge;D(we)},K=(ge,we)=>{let{node:Se,checked:Re}=we;V(p?{selectedKeys:ge}:{selectedKeys:Re&&Se.key?[Se.key]:[]})};i.useEffect(()=>{L&&V({selectedKeys:qh(T)})},[T]);const[z,U]=i.useState([]),Y=ge=>{U(ge)},[q,X]=i.useState(""),te=ge=>{const{value:we}=ge.target;X(we)};i.useEffect(()=>{L||X("")},[L]);const ee=ge=>{const we=ge!=null&&ge.length?ge:null;if(we===null&&(!b||!b.filteredKeys)||Ko(we,b==null?void 0:b.filteredKeys,!0))return null;x({column:c,key:f,filteredKeys:we})},J=()=>{F(!1),ee(M())},ie=function(){let{confirm:ge,closeDropdown:we}=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{confirm:!1,closeDropdown:!1};ge&&ee([]),we&&F(!1),X(""),D(I?(_||[]).map(Se=>String(Se)):[])},de=function(){let{closeDropdown:ge}=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{closeDropdown:!0};ge&&F(!1),ee(M())},oe=(ge,we)=>{we.source==="trigger"&&(ge&&T!==void 0&&D(qh(T)),F(ge),!ge&&!c.filterDropdown&&m&&J())},le=ce({[`${d}-menu-without-submenu`]:!pG(c.filters||[])}),ae=ge=>{if(ge.target.checked){const we=Xs(c==null?void 0:c.filters).map(Se=>String(Se));D(we)}else D([])},ue=ge=>{let{filters:we}=ge;return(we||[]).map((Se,Re)=>{const De=String(Se.value),Me={title:Se.text,key:Se.value!==void 0?De:String(Re)};return Se.children&&(Me.children=ue({filters:Se.children})),Me})},pe=ge=>{var we;return Object.assign(Object.assign({},ge),{text:ge.title,value:ge.key,children:((we=ge.children)===null||we===void 0?void 0:we.map(Se=>pe(Se)))||[]})};let fe;const{direction:xe,renderEmpty:Ee}=i.useContext(Gt);if(typeof c.filterDropdown=="function")fe=c.filterDropdown({prefixCls:`${d}-custom`,setSelectedKeys:ge=>V({selectedKeys:ge}),selectedKeys:M(),confirm:de,clearFilters:ie,filters:c.filters,visible:A,close:()=>{F(!1)}});else if(c.filterDropdown)fe=c.filterDropdown;else{const ge=M()||[],we=()=>{var Re,De;const Me=(Re=Ee==null?void 0:Ee("Table.filter"))!==null&&Re!==void 0?Re:i.createElement(fi,{image:fi.PRESENTED_IMAGE_SIMPLE,description:y.filterEmptyText,styles:{image:{height:24}},style:{margin:0,padding:"16px 0"}});if((c.filters||[]).length===0)return Me;if(v==="tree")return i.createElement(i.Fragment,null,i.createElement(XE,{filterSearch:h,value:q,onChange:te,tablePrefixCls:o,locale:y}),i.createElement("div",{className:`${o}-filter-dropdown-tree`},p?i.createElement(Jr,{checked:ge.length===Xs(c.filters).length,indeterminate:ge.length>0&&ge.lengthtypeof h=="function"?h(q,pe(He)):OP(q,He.title):void 0})));const Ye=RP({filters:c.filters||[],filterSearch:h,prefixCls:l,filteredKeys:M(),filterMultiple:p,searchValue:q}),qe=Ye.every(He=>He===null);return i.createElement(i.Fragment,null,i.createElement(XE,{filterSearch:h,value:q,onChange:te,tablePrefixCls:o,locale:y}),qe?Me:i.createElement(Zl,{selectable:!0,multiple:p,prefixCls:`${d}-menu`,className:le,onSelect:V,onDeselect:V,selectedKeys:ge,getPopupContainer:w,openKeys:z,onOpenChange:Y,items:Ye}))},Se=()=>I?Ko((_||[]).map(Re=>String(Re)),ge,!0):ge.length===0;fe=i.createElement(i.Fragment,null,we(),i.createElement("div",{className:`${l}-dropdown-btns`},i.createElement(bn,{type:"link",size:"small",disabled:Se(),onClick:()=>ie()},y.filterReset),i.createElement(bn,{type:"primary",size:"small",onClick:J},y.filterConfirm)))}c.filterDropdown&&(fe=i.createElement(pO,{selectable:void 0},fe)),fe=i.createElement(mG,{className:`${l}-dropdown`},fe);const Ne=lx({trigger:["click"],placement:xe==="rtl"?"bottomLeft":"bottomRight",children:(()=>{let ge;return typeof c.filterIcon=="function"?ge=c.filterIcon(B):c.filterIcon?ge=c.filterIcon:ge=i.createElement(bU,null),i.createElement("span",{role:"button",tabIndex:-1,className:ce(`${l}-trigger`,{active:B}),onClick:we=>{we.stopPropagation()}},ge)})(),getPopupContainer:w},Object.assign(Object.assign({},O),{rootClassName:ce(E,O.rootClassName),open:A,onOpenChange:oe,dropdownRender:()=>typeof(O==null?void 0:O.dropdownRender)=="function"?O.dropdownRender(fe):fe}));return i.createElement("div",{className:`${l}-column`},i.createElement("span",{className:`${o}-column-title`},C),i.createElement(ax,Object.assign({},Ne)))},P0=(e,t,n)=>{let r=[];return(e||[]).forEach((a,o)=>{var l;const c=wc(o,n);if(a.filters||"filterDropdown"in a||"onFilter"in a)if("filteredValue"in a){let d=a.filteredValue;"filterDropdown"in a||(d=(l=d==null?void 0:d.map(String))!==null&&l!==void 0?l:d),r.push({column:a,key:ul(a,c),filteredKeys:d,forceFiltered:a.filtered})}else r.push({column:a,key:ul(a,c),filteredKeys:t&&a.defaultFilteredValue?a.defaultFilteredValue:void 0,forceFiltered:a.filtered});"children"in a&&(r=[].concat(Te(r),Te(P0(a.children,t,c))))}),r};function PP(e,t,n,r,a,o,l,c,d){return n.map((f,m)=>{const p=wc(m,c),{filterOnClose:v=!0,filterMultiple:h=!0,filterMode:b,filterSearch:x}=f;let y=f;if(y.filters||y.filterDropdown){const C=ul(y,p),w=r.find(E=>{let{key:I}=E;return C===I});y=Object.assign(Object.assign({},y),{title:E=>i.createElement(vG,{tablePrefixCls:e,prefixCls:`${e}-filter`,dropdownPrefixCls:t,column:y,columnKey:C,filterState:w,filterOnClose:v,filterMultiple:h,filterMode:b,filterSearch:x,triggerFilter:o,locale:a,getPopupContainer:l,rootClassName:d},nv(f.title,E))})}return"children"in y&&(y=Object.assign(Object.assign({},y),{children:PP(e,t,y.children,r,a,o,l,p,d)})),y})}const QE=e=>{const t={};return e.forEach(n=>{let{key:r,filteredKeys:a,column:o}=n;const l=r,{filters:c,filterDropdown:d}=o;if(d)t[l]=a||null;else if(Array.isArray(a)){const f=Xs(c);t[l]=f.filter(m=>a.includes(String(m)))}else t[l]=null}),t},N0=(e,t,n)=>t.reduce((a,o)=>{const{column:{onFilter:l,filters:c},filteredKeys:d}=o;return l&&d&&d.length?a.map(f=>Object.assign({},f)).filter(f=>d.some(m=>{const p=Xs(c),v=p.findIndex(b=>String(b)===String(m)),h=v!==-1?p[v]:m;return f[n]&&(f[n]=N0(f[n],t,n)),l(h,f)})):a},e),NP=e=>e.flatMap(t=>"children"in t?[t].concat(Te(NP(t.children||[]))):[t]),gG=e=>{const{prefixCls:t,dropdownPrefixCls:n,mergedColumns:r,onFilterChange:a,getPopupContainer:o,locale:l,rootClassName:c}=e;ml();const d=i.useMemo(()=>NP(r||[]),[r]),[f,m]=i.useState(()=>P0(d,!0)),p=i.useMemo(()=>{const x=P0(d,!1);if(x.length===0)return x;let y=!0;if(x.forEach(C=>{let{filteredKeys:w}=C;w!==void 0&&(y=!1)}),y){const C=(d||[]).map((w,E)=>ul(w,wc(E)));return f.filter(w=>{let{key:E}=w;return C.includes(E)}).map(w=>{const E=d[C.findIndex(I=>I===w.key)];return Object.assign(Object.assign({},w),{column:Object.assign(Object.assign({},w.column),E),forceFiltered:E.filtered})})}return x},[d,f]),v=i.useMemo(()=>QE(p),[p]),h=x=>{const y=p.filter(C=>{let{key:w}=C;return w!==x.key});y.push(x),m(y),a(QE(y),y)};return[x=>PP(t,n,x,p,l,h,o,void 0,c),p,v]},hG=(e,t,n)=>{const r=i.useRef({});function a(o){var l;if(!r.current||r.current.data!==e||r.current.childrenColumnName!==t||r.current.getRowKey!==n){let d=function(f){f.forEach((m,p)=>{const v=n(m,p);c.set(v,m),m&&typeof m=="object"&&t in m&&d(m[t]||[])})};const c=new Map;d(e),r.current={data:e,childrenColumnName:t,kvMap:c,getRowKey:n}}return(l=r.current.kvMap)===null||l===void 0?void 0:l.get(o)}return[a]};var yG=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 a=0,r=Object.getOwnPropertySymbols(e);a{const o=e[a];typeof o!="function"&&(n[a]=o)}),n}function xG(e,t,n){const r=n&&typeof n=="object"?n:{},{total:a=0}=r,o=yG(r,["total"]),[l,c]=i.useState(()=>({current:"defaultCurrent"in o?o.defaultCurrent:1,pageSize:"defaultPageSize"in o?o.defaultPageSize:jP})),d=lx(l,o,{total:a>0?a:e}),f=Math.ceil((a||e)/d.pageSize);d.current>f&&(d.current=f||1);const m=(v,h)=>{c({current:v??1,pageSize:h||d.pageSize})},p=(v,h)=>{var b;n&&((b=n.onChange)===null||b===void 0||b.call(n,v,h)),m(v,h),t(v,h||(d==null?void 0:d.pageSize))};return n===!1?[{},()=>{}]:[Object.assign(Object.assign({},d),{onChange:p}),m]}const km="ascend",Yh="descend",rp=e=>typeof e.sorter=="object"&&typeof e.sorter.multiple=="number"?e.sorter.multiple:!1,JE=e=>typeof e=="function"?e:e&&typeof e=="object"&&e.compare?e.compare:!1,SG=(e,t)=>t?e[e.indexOf(t)+1]:e[0],j0=(e,t,n)=>{let r=[];const a=(o,l)=>{r.push({column:o,key:ul(o,l),multiplePriority:rp(o),sortOrder:o.sortOrder})};return(e||[]).forEach((o,l)=>{const c=wc(l,n);o.children?("sortOrder"in o&&a(o,c),r=[].concat(Te(r),Te(j0(o.children,t,c)))):o.sorter&&("sortOrder"in o?a(o,c):t&&o.defaultSortOrder&&r.push({column:o,key:ul(o,c),multiplePriority:rp(o),sortOrder:o.defaultSortOrder}))}),r},kP=(e,t,n,r,a,o,l,c)=>(t||[]).map((f,m)=>{const p=wc(m,c);let v=f;if(v.sorter){const h=v.sortDirections||a,b=v.showSorterTooltip===void 0?l:v.showSorterTooltip,x=ul(v,p),y=n.find(R=>{let{key:k}=R;return k===x}),C=y?y.sortOrder:null,w=SG(h,C);let E;if(f.sortIcon)E=f.sortIcon({sortOrder:C});else{const R=h.includes(km)&&i.createElement(QK,{className:ce(`${e}-column-sorter-up`,{active:C===km})}),k=h.includes(Yh)&&i.createElement(YK,{className:ce(`${e}-column-sorter-down`,{active:C===Yh})});E=i.createElement("span",{className:ce(`${e}-column-sorter`,{[`${e}-column-sorter-full`]:!!(R&&k)})},i.createElement("span",{className:`${e}-column-sorter-inner`,"aria-hidden":"true"},R,k))}const{cancelSort:I,triggerAsc:_,triggerDesc:O}=o||{};let P=I;w===Yh?P=O:w===km&&(P=_);const j=typeof b=="object"?Object.assign({title:P},b):{title:P};v=Object.assign(Object.assign({},v),{className:ce(v.className,{[`${e}-column-sort`]:C}),title:R=>{const k=`${e}-column-sorters`,L=i.createElement("span",{className:`${e}-column-title`},nv(f.title,R)),W=i.createElement("div",{className:k},L,E);return b?typeof b!="boolean"&&(b==null?void 0:b.target)==="sorter-icon"?i.createElement("div",{className:`${k} ${e}-column-sorters-tooltip-target-sorter`},L,i.createElement(io,Object.assign({},j),E)):i.createElement(io,Object.assign({},j),W):W},onHeaderCell:R=>{var k;const L=((k=f.onHeaderCell)===null||k===void 0?void 0:k.call(f,R))||{},W=L.onClick,B=L.onKeyDown;L.onClick=T=>{r({column:f,key:x,sortOrder:w,multiplePriority:rp(f)}),W==null||W(T)},L.onKeyDown=T=>{T.keyCode===$t.ENTER&&(r({column:f,key:x,sortOrder:w,multiplePriority:rp(f)}),B==null||B(T))};const F=AY(f.title,{}),A=F==null?void 0:F.toString();return C&&(L["aria-sort"]=C==="ascend"?"ascending":"descending"),L["aria-label"]=A||"",L.className=ce(L.className,`${e}-column-has-sorters`),L.tabIndex=0,f.ellipsis&&(L.title=(F??"").toString()),L}})}return"children"in v&&(v=Object.assign(Object.assign({},v),{children:kP(e,v.children,n,r,a,o,l,p)})),v}),ZE=e=>{const{column:t,sortOrder:n}=e;return{column:t,order:n,field:t.dataIndex,columnKey:t.key}},e_=e=>{const t=e.filter(n=>{let{sortOrder:r}=n;return r}).map(ZE);if(t.length===0&&e.length){const n=e.length-1;return Object.assign(Object.assign({},ZE(e[n])),{column:void 0,order:void 0,field:void 0,columnKey:void 0})}return t.length<=1?t[0]||{}:t},k0=(e,t,n)=>{const r=t.slice().sort((l,c)=>c.multiplePriority-l.multiplePriority),a=e.slice(),o=r.filter(l=>{let{column:{sorter:c},sortOrder:d}=l;return JE(c)&&d});return o.length?a.sort((l,c)=>{for(let d=0;d{const c=l[n];return c?Object.assign(Object.assign({},l),{[n]:k0(c,t,n)}):l}):a},CG=e=>{const{prefixCls:t,mergedColumns:n,sortDirections:r,tableLocale:a,showSorterTooltip:o,onSorterChange:l}=e,[c,d]=i.useState(j0(n,!0)),f=(x,y)=>{const C=[];return x.forEach((w,E)=>{const I=wc(E,y);if(C.push(ul(w,I)),Array.isArray(w.children)){const _=f(w.children,I);C.push.apply(C,Te(_))}}),C},m=i.useMemo(()=>{let x=!0;const y=j0(n,!1);if(!y.length){const I=f(n);return c.filter(_=>{let{key:O}=_;return I.includes(O)})}const C=[];function w(I){x?C.push(I):C.push(Object.assign(Object.assign({},I),{sortOrder:null}))}let E=null;return y.forEach(I=>{E===null?(w(I),I.sortOrder&&(I.multiplePriority===!1?x=!1:E=!0)):(E&&I.multiplePriority!==!1||(x=!1),w(I))}),C},[n,c]),p=i.useMemo(()=>{var x,y;const C=m.map(w=>{let{column:E,sortOrder:I}=w;return{column:E,order:I}});return{sortColumns:C,sortColumn:(x=C[0])===null||x===void 0?void 0:x.column,sortOrder:(y=C[0])===null||y===void 0?void 0:y.order}},[m]),v=x=>{let y;x.multiplePriority===!1||!m.length||m[0].multiplePriority===!1?y=[x]:y=[].concat(Te(m.filter(C=>{let{key:w}=C;return w!==x.key})),[x]),d(y),l(e_(y),y)};return[x=>kP(t,x,m,v,r,a,o),m,p,()=>e_(m)]},MP=(e,t)=>e.map(r=>{const a=Object.assign({},r);return a.title=nv(r.title,t),"children"in a&&(a.children=MP(a.children,t)),a}),wG=e=>[i.useCallback(n=>MP(n,e),[e])],$G=SP((e,t)=>{const{_renderTimes:n}=e,{_renderTimes:r}=t;return n!==r}),EG=wP((e,t)=>{const{_renderTimes:n}=e,{_renderTimes:r}=t;return n!==r}),_G=e=>{const{componentCls:t,lineWidth:n,lineType:r,tableBorderColor:a,tableHeaderBg:o,tablePaddingVertical:l,tablePaddingHorizontal:c,calc:d}=e,f=`${ne(n)} ${r} ${a}`,m=(p,v,h)=>({[`&${t}-${p}`]:{[`> ${t}-container`]:{[`> ${t}-content, > ${t}-body`]:{"\n > table > tbody > tr > th,\n > table > tbody > tr > td\n ":{[`> ${t}-expanded-row-fixed`]:{margin:`${ne(d(v).mul(-1).equal())} + ${ne(d(d(h).add(n)).mul(-1).equal())}`}}}}}});return{[`${t}-wrapper`]:{[`${t}${t}-bordered`]:Object.assign(Object.assign(Object.assign({[`> ${t}-title`]:{border:f,borderBottom:0},[`> ${t}-container`]:{borderInlineStart:f,borderTop:f,[` + > ${t}-content, + > ${t}-header, + > ${t}-body, + > ${t}-summary + `]:{"> table":{"\n > thead > tr > th,\n > thead > tr > td,\n > tbody > tr > th,\n > tbody > tr > td,\n > tfoot > tr > th,\n > tfoot > tr > td\n ":{borderInlineEnd:f},"> thead":{"> tr:not(:last-child) > th":{borderBottom:f},"> tr > th::before":{backgroundColor:"transparent !important"}},"\n > thead > tr,\n > tbody > tr,\n > tfoot > tr\n ":{[`> ${t}-cell-fix-right-first::after`]:{borderInlineEnd:f}},"\n > tbody > tr > th,\n > tbody > tr > td\n ":{[`> ${t}-expanded-row-fixed`]:{margin:`${ne(d(l).mul(-1).equal())} ${ne(d(d(c).add(n)).mul(-1).equal())}`,"&::after":{position:"absolute",top:0,insetInlineEnd:n,bottom:0,borderInlineEnd:f,content:'""'}}}}}},[`&${t}-scroll-horizontal`]:{[`> ${t}-container > ${t}-body`]:{"> table > tbody":{[` + > tr${t}-expanded-row, + > tr${t}-placeholder + `]:{"> th, > td":{borderInlineEnd:0}}}}}},m("middle",e.tablePaddingVerticalMiddle,e.tablePaddingHorizontalMiddle)),m("small",e.tablePaddingVerticalSmall,e.tablePaddingHorizontalSmall)),{[`> ${t}-footer`]:{border:f,borderTop:0}}),[`${t}-cell`]:{[`${t}-container:first-child`]:{borderTop:0},"&-scrollbar:not([rowspan])":{boxShadow:`0 ${ne(n)} 0 ${ne(n)} ${o}`}},[`${t}-bordered ${t}-cell-scrollbar`]:{borderInlineEnd:f}}}},IG=e=>{const{componentCls:t}=e;return{[`${t}-wrapper`]:{[`${t}-cell-ellipsis`]:Object.assign(Object.assign({},Oo),{wordBreak:"keep-all",[` + &${t}-cell-fix-left-last, + &${t}-cell-fix-right-first + `]:{overflow:"visible",[`${t}-cell-content`]:{display:"block",overflow:"hidden",textOverflow:"ellipsis"}},[`${t}-column-title`]:{overflow:"hidden",textOverflow:"ellipsis",wordBreak:"keep-all"}})}}},OG=e=>{const{componentCls:t}=e;return{[`${t}-wrapper`]:{[`${t}-tbody > tr${t}-placeholder`]:{textAlign:"center",color:e.colorTextDisabled,"\n &:hover > th,\n &:hover > td,\n ":{background:e.colorBgContainer}}}}},RG=e=>{const{componentCls:t,antCls:n,motionDurationSlow:r,lineWidth:a,paddingXS:o,lineType:l,tableBorderColor:c,tableExpandIconBg:d,tableExpandColumnWidth:f,borderRadius:m,tablePaddingVertical:p,tablePaddingHorizontal:v,tableExpandedRowBg:h,paddingXXS:b,expandIconMarginTop:x,expandIconSize:y,expandIconHalfInner:C,expandIconScale:w,calc:E}=e,I=`${ne(a)} ${l} ${c}`,_=E(b).sub(a).equal();return{[`${t}-wrapper`]:{[`${t}-expand-icon-col`]:{width:f},[`${t}-row-expand-icon-cell`]:{textAlign:"center",[`${t}-row-expand-icon`]:{display:"inline-flex",float:"none",verticalAlign:"sub"}},[`${t}-row-indent`]:{height:1,float:"left"},[`${t}-row-expand-icon`]:Object.assign(Object.assign({},ab(e)),{position:"relative",float:"left",width:y,height:y,color:"inherit",lineHeight:ne(y),background:d,border:I,borderRadius:m,transform:`scale(${w})`,"&:focus, &:hover, &:active":{borderColor:"currentcolor"},"&::before, &::after":{position:"absolute",background:"currentcolor",transition:`transform ${r} ease-out`,content:'""'},"&::before":{top:C,insetInlineEnd:_,insetInlineStart:_,height:a},"&::after":{top:_,bottom:_,insetInlineStart:C,width:a,transform:"rotate(90deg)"},"&-collapsed::before":{transform:"rotate(-180deg)"},"&-collapsed::after":{transform:"rotate(0deg)"},"&-spaced":{"&::before, &::after":{display:"none",content:"none"},background:"transparent",border:0,visibility:"hidden"}}),[`${t}-row-indent + ${t}-row-expand-icon`]:{marginTop:x,marginInlineEnd:o},[`tr${t}-expanded-row`]:{"&, &:hover":{"> th, > td":{background:h}},[`${n}-descriptions-view`]:{display:"flex",table:{flex:"auto",width:"100%"}}},[`${t}-expanded-row-fixed`]:{position:"relative",margin:`${ne(E(p).mul(-1).equal())} ${ne(E(v).mul(-1).equal())}`,padding:`${ne(p)} ${ne(v)}`}}}},PG=e=>{const{componentCls:t,antCls:n,iconCls:r,tableFilterDropdownWidth:a,tableFilterDropdownSearchWidth:o,paddingXXS:l,paddingXS:c,colorText:d,lineWidth:f,lineType:m,tableBorderColor:p,headerIconColor:v,fontSizeSM:h,tablePaddingHorizontal:b,borderRadius:x,motionDurationSlow:y,colorTextDescription:C,colorPrimary:w,tableHeaderFilterActiveBg:E,colorTextDisabled:I,tableFilterDropdownBg:_,tableFilterDropdownHeight:O,controlItemBgHover:P,controlItemBgActive:j,boxShadowSecondary:R,filterDropdownMenuBg:k,calc:L}=e,W=`${n}-dropdown`,B=`${t}-filter-dropdown`,F=`${n}-tree`,A=`${ne(f)} ${m} ${p}`;return[{[`${t}-wrapper`]:{[`${t}-filter-column`]:{display:"flex",justifyContent:"space-between"},[`${t}-filter-trigger`]:{position:"relative",display:"flex",alignItems:"center",marginBlock:L(l).mul(-1).equal(),marginInline:`${ne(l)} ${ne(L(b).div(2).mul(-1).equal())}`,padding:`0 ${ne(l)}`,color:v,fontSize:h,borderRadius:x,cursor:"pointer",transition:`all ${y}`,"&:hover":{color:C,background:E},"&.active":{color:w}}}},{[`${n}-dropdown`]:{[B]:Object.assign(Object.assign({},Ln(e)),{minWidth:a,backgroundColor:_,borderRadius:x,boxShadow:R,overflow:"hidden",[`${W}-menu`]:{maxHeight:O,overflowX:"hidden",border:0,boxShadow:"none",borderRadius:"unset",backgroundColor:k,"&:empty::after":{display:"block",padding:`${ne(c)} 0`,color:I,fontSize:h,textAlign:"center",content:'"Not Found"'}},[`${B}-tree`]:{paddingBlock:`${ne(c)} 0`,paddingInline:c,[F]:{padding:0},[`${F}-treenode ${F}-node-content-wrapper:hover`]:{backgroundColor:P},[`${F}-treenode-checkbox-checked ${F}-node-content-wrapper`]:{"&, &:hover":{backgroundColor:j}}},[`${B}-search`]:{padding:c,borderBottom:A,"&-input":{input:{minWidth:o},[r]:{color:I}}},[`${B}-checkall`]:{width:"100%",marginBottom:l,marginInlineStart:l},[`${B}-btns`]:{display:"flex",justifyContent:"space-between",padding:`${ne(L(c).sub(f).equal())} ${ne(c)}`,overflow:"hidden",borderTop:A}})}},{[`${n}-dropdown ${B}, ${B}-submenu`]:{[`${n}-checkbox-wrapper + span`]:{paddingInlineStart:c,color:d},"> ul":{maxHeight:"calc(100vh - 130px)",overflowX:"hidden",overflowY:"auto"}}}]},NG=e=>{const{componentCls:t,lineWidth:n,colorSplit:r,motionDurationSlow:a,zIndexTableFixed:o,tableBg:l,zIndexTableSticky:c,calc:d}=e,f=r;return{[`${t}-wrapper`]:{[` + ${t}-cell-fix-left, + ${t}-cell-fix-right + `]:{position:"sticky !important",zIndex:o,background:l},[` + ${t}-cell-fix-left-first::after, + ${t}-cell-fix-left-last::after + `]:{position:"absolute",top:0,right:{_skip_check_:!0,value:0},bottom:d(n).mul(-1).equal(),width:30,transform:"translateX(100%)",transition:`box-shadow ${a}`,content:'""',pointerEvents:"none"},[`${t}-cell-fix-left-all::after`]:{display:"none"},[` + ${t}-cell-fix-right-first::after, + ${t}-cell-fix-right-last::after + `]:{position:"absolute",top:0,bottom:d(n).mul(-1).equal(),left:{_skip_check_:!0,value:0},width:30,transform:"translateX(-100%)",transition:`box-shadow ${a}`,content:'""',pointerEvents:"none"},[`${t}-container`]:{position:"relative","&::before, &::after":{position:"absolute",top:0,bottom:0,zIndex:d(c).add(1).equal({unit:!1}),width:30,transition:`box-shadow ${a}`,content:'""',pointerEvents:"none"},"&::before":{insetInlineStart:0},"&::after":{insetInlineEnd:0}},[`${t}-ping-left`]:{[`&:not(${t}-has-fix-left) ${t}-container::before`]:{boxShadow:`inset 10px 0 8px -8px ${f}`},[` + ${t}-cell-fix-left-first::after, + ${t}-cell-fix-left-last::after + `]:{boxShadow:`inset 10px 0 8px -8px ${f}`},[`${t}-cell-fix-left-last::before`]:{backgroundColor:"transparent !important"}},[`${t}-ping-right`]:{[`&:not(${t}-has-fix-right) ${t}-container::after`]:{boxShadow:`inset -10px 0 8px -8px ${f}`},[` + ${t}-cell-fix-right-first::after, + ${t}-cell-fix-right-last::after + `]:{boxShadow:`inset -10px 0 8px -8px ${f}`}},[`${t}-fixed-column-gapped`]:{[` + ${t}-cell-fix-left-first::after, + ${t}-cell-fix-left-last::after, + ${t}-cell-fix-right-first::after, + ${t}-cell-fix-right-last::after + `]:{boxShadow:"none"}}}}},jG=e=>{const{componentCls:t,antCls:n,margin:r}=e;return{[`${t}-wrapper`]:{[`${t}-pagination${n}-pagination`]:{margin:`${ne(r)} 0`},[`${t}-pagination`]:{display:"flex",flexWrap:"wrap",rowGap:e.paddingXS,"> *":{flex:"none"},"&-left":{justifyContent:"flex-start"},"&-center":{justifyContent:"center"},"&-right":{justifyContent:"flex-end"}}}}},kG=e=>{const{componentCls:t,tableRadius:n}=e;return{[`${t}-wrapper`]:{[t]:{[`${t}-title, ${t}-header`]:{borderRadius:`${ne(n)} ${ne(n)} 0 0`},[`${t}-title + ${t}-container`]:{borderStartStartRadius:0,borderStartEndRadius:0,[`${t}-header, table`]:{borderRadius:0},"table > thead > tr:first-child":{"th:first-child, th:last-child, td:first-child, td:last-child":{borderRadius:0}}},"&-container":{borderStartStartRadius:n,borderStartEndRadius:n,"table > thead > tr:first-child":{"> *:first-child":{borderStartStartRadius:n},"> *:last-child":{borderStartEndRadius:n}}},"&-footer":{borderRadius:`0 0 ${ne(n)} ${ne(n)}`}}}}},MG=e=>{const{componentCls:t}=e;return{[`${t}-wrapper-rtl`]:{direction:"rtl",table:{direction:"rtl"},[`${t}-pagination-left`]:{justifyContent:"flex-end"},[`${t}-pagination-right`]:{justifyContent:"flex-start"},[`${t}-row-expand-icon`]:{float:"right","&::after":{transform:"rotate(-90deg)"},"&-collapsed::before":{transform:"rotate(180deg)"},"&-collapsed::after":{transform:"rotate(0deg)"}},[`${t}-container`]:{"&::before":{insetInlineStart:"unset",insetInlineEnd:0},"&::after":{insetInlineStart:0,insetInlineEnd:"unset"},[`${t}-row-indent`]:{float:"right"}}}}},TG=e=>{const{componentCls:t,antCls:n,iconCls:r,fontSizeIcon:a,padding:o,paddingXS:l,headerIconColor:c,headerIconHoverColor:d,tableSelectionColumnWidth:f,tableSelectedRowBg:m,tableSelectedRowHoverBg:p,tableRowHoverBg:v,tablePaddingHorizontal:h,calc:b}=e;return{[`${t}-wrapper`]:{[`${t}-selection-col`]:{width:f,[`&${t}-selection-col-with-dropdown`]:{width:b(f).add(a).add(b(o).div(4)).equal()}},[`${t}-bordered ${t}-selection-col`]:{width:b(f).add(b(l).mul(2)).equal(),[`&${t}-selection-col-with-dropdown`]:{width:b(f).add(a).add(b(o).div(4)).add(b(l).mul(2)).equal()}},[` + table tr th${t}-selection-column, + table tr td${t}-selection-column, + ${t}-selection-column + `]:{paddingInlineEnd:e.paddingXS,paddingInlineStart:e.paddingXS,textAlign:"center",[`${n}-radio-wrapper`]:{marginInlineEnd:0}},[`table tr th${t}-selection-column${t}-cell-fix-left`]:{zIndex:b(e.zIndexTableFixed).add(1).equal({unit:!1})},[`table tr th${t}-selection-column::after`]:{backgroundColor:"transparent !important"},[`${t}-selection`]:{position:"relative",display:"inline-flex",flexDirection:"column"},[`${t}-selection-extra`]:{position:"absolute",top:0,zIndex:1,cursor:"pointer",transition:`all ${e.motionDurationSlow}`,marginInlineStart:"100%",paddingInlineStart:ne(b(h).div(4).equal()),[r]:{color:c,fontSize:a,verticalAlign:"baseline","&:hover":{color:d}}},[`${t}-tbody`]:{[`${t}-row`]:{[`&${t}-row-selected`]:{[`> ${t}-cell`]:{background:m,"&-row-hover":{background:p}}},[`> ${t}-cell-row-hover`]:{background:v}}}}}},DG=e=>{const{componentCls:t,tableExpandColumnWidth:n,calc:r}=e,a=(o,l,c,d)=>({[`${t}${t}-${o}`]:{fontSize:d,[` + ${t}-title, + ${t}-footer, + ${t}-cell, + ${t}-thead > tr > th, + ${t}-tbody > tr > th, + ${t}-tbody > tr > td, + tfoot > tr > th, + tfoot > tr > td + `]:{padding:`${ne(l)} ${ne(c)}`},[`${t}-filter-trigger`]:{marginInlineEnd:ne(r(c).div(2).mul(-1).equal())},[`${t}-expanded-row-fixed`]:{margin:`${ne(r(l).mul(-1).equal())} ${ne(r(c).mul(-1).equal())}`},[`${t}-tbody`]:{[`${t}-wrapper:only-child ${t}`]:{marginBlock:ne(r(l).mul(-1).equal()),marginInline:`${ne(r(n).sub(c).equal())} ${ne(r(c).mul(-1).equal())}`}},[`${t}-selection-extra`]:{paddingInlineStart:ne(r(c).div(4).equal())}}});return{[`${t}-wrapper`]:Object.assign(Object.assign({},a("middle",e.tablePaddingVerticalMiddle,e.tablePaddingHorizontalMiddle,e.tableFontSizeMiddle)),a("small",e.tablePaddingVerticalSmall,e.tablePaddingHorizontalSmall,e.tableFontSizeSmall))}},FG=e=>{const{componentCls:t,marginXXS:n,fontSizeIcon:r,headerIconColor:a,headerIconHoverColor:o}=e;return{[`${t}-wrapper`]:{[`${t}-thead th${t}-column-has-sorters`]:{outline:"none",cursor:"pointer",transition:`all ${e.motionDurationSlow}, left 0s`,"&:hover":{background:e.tableHeaderSortHoverBg,"&::before":{backgroundColor:"transparent !important"}},"&:focus-visible":{color:e.colorPrimary},[` + &${t}-cell-fix-left:hover, + &${t}-cell-fix-right:hover + `]:{background:e.tableFixedHeaderSortActiveBg}},[`${t}-thead th${t}-column-sort`]:{background:e.tableHeaderSortBg,"&::before":{backgroundColor:"transparent !important"}},[`td${t}-column-sort`]:{background:e.tableBodySortBg},[`${t}-column-title`]:{position:"relative",zIndex:1,flex:1,minWidth:0},[`${t}-column-sorters`]:{display:"flex",flex:"auto",alignItems:"center",justifyContent:"space-between","&::after":{position:"absolute",inset:0,width:"100%",height:"100%",content:'""'}},[`${t}-column-sorters-tooltip-target-sorter`]:{"&::after":{content:"none"}},[`${t}-column-sorter`]:{marginInlineStart:n,color:a,fontSize:0,transition:`color ${e.motionDurationSlow}`,"&-inner":{display:"inline-flex",flexDirection:"column",alignItems:"center"},"&-up, &-down":{fontSize:r,"&.active":{color:e.colorPrimary}},[`${t}-column-sorter-up + ${t}-column-sorter-down`]:{marginTop:"-0.3em"}},[`${t}-column-sorters:hover ${t}-column-sorter`]:{color:o}}}},LG=e=>{const{componentCls:t,opacityLoading:n,tableScrollThumbBg:r,tableScrollThumbBgHover:a,tableScrollThumbSize:o,tableScrollBg:l,zIndexTableSticky:c,stickyScrollBarBorderRadius:d,lineWidth:f,lineType:m,tableBorderColor:p}=e,v=`${ne(f)} ${m} ${p}`;return{[`${t}-wrapper`]:{[`${t}-sticky`]:{"&-holder":{position:"sticky",zIndex:c,background:e.colorBgContainer},"&-scroll":{position:"sticky",bottom:0,height:`${ne(o)} !important`,zIndex:c,display:"flex",alignItems:"center",background:l,borderTop:v,opacity:n,"&:hover":{transformOrigin:"center bottom"},"&-bar":{height:o,backgroundColor:r,borderRadius:d,transition:`all ${e.motionDurationSlow}, transform 0s`,position:"absolute",bottom:0,"&:hover, &-active":{backgroundColor:a}}}}}}},t_=e=>{const{componentCls:t,lineWidth:n,tableBorderColor:r,calc:a}=e,o=`${ne(n)} ${e.lineType} ${r}`;return{[`${t}-wrapper`]:{[`${t}-summary`]:{position:"relative",zIndex:e.zIndexTableFixed,background:e.tableBg,"> tr":{"> th, > td":{borderBottom:o}}},[`div${t}-summary`]:{boxShadow:`0 ${ne(a(n).mul(-1).equal())} 0 ${r}`}}}},AG=e=>{const{componentCls:t,motionDurationMid:n,lineWidth:r,lineType:a,tableBorderColor:o,calc:l}=e,c=`${ne(r)} ${a} ${o}`,d=`${t}-expanded-row-cell`;return{[`${t}-wrapper`]:{[`${t}-tbody-virtual`]:{[`${t}-tbody-virtual-holder-inner`]:{[` + & > ${t}-row, + & > div:not(${t}-row) > ${t}-row + `]:{display:"flex",boxSizing:"border-box",width:"100%"}},[`${t}-cell`]:{borderBottom:c,transition:`background ${n}`},[`${t}-expanded-row`]:{[`${d}${d}-fixed`]:{position:"sticky",insetInlineStart:0,overflow:"hidden",width:`calc(var(--virtual-width) - ${ne(r)})`,borderInlineEnd:"none"}}},[`${t}-bordered`]:{[`${t}-tbody-virtual`]:{"&:after":{content:'""',insetInline:0,bottom:0,borderBottom:c,position:"absolute"},[`${t}-cell`]:{borderInlineEnd:c,[`&${t}-cell-fix-right-first:before`]:{content:'""',position:"absolute",insetBlock:0,insetInlineStart:l(r).mul(-1).equal(),borderInlineStart:c}}},[`&${t}-virtual`]:{[`${t}-placeholder ${t}-cell`]:{borderInlineEnd:c,borderBottom:c}}}}}},zG=e=>{const{componentCls:t,fontWeightStrong:n,tablePaddingVertical:r,tablePaddingHorizontal:a,tableExpandColumnWidth:o,lineWidth:l,lineType:c,tableBorderColor:d,tableFontSize:f,tableBg:m,tableRadius:p,tableHeaderTextColor:v,motionDurationMid:h,tableHeaderBg:b,tableHeaderCellSplitColor:x,tableFooterTextColor:y,tableFooterBg:C,calc:w}=e,E=`${ne(l)} ${c} ${d}`;return{[`${t}-wrapper`]:Object.assign(Object.assign({clear:"both",maxWidth:"100%"},Uo()),{[t]:Object.assign(Object.assign({},Ln(e)),{fontSize:f,background:m,borderRadius:`${ne(p)} ${ne(p)} 0 0`,scrollbarColor:`${e.tableScrollThumbBg} ${e.tableScrollBg}`}),table:{width:"100%",textAlign:"start",borderRadius:`${ne(p)} ${ne(p)} 0 0`,borderCollapse:"separate",borderSpacing:0},[` + ${t}-cell, + ${t}-thead > tr > th, + ${t}-tbody > tr > th, + ${t}-tbody > tr > td, + tfoot > tr > th, + tfoot > tr > td + `]:{position:"relative",padding:`${ne(r)} ${ne(a)}`,overflowWrap:"break-word"},[`${t}-title`]:{padding:`${ne(r)} ${ne(a)}`},[`${t}-thead`]:{"\n > tr > th,\n > tr > td\n ":{position:"relative",color:v,fontWeight:n,textAlign:"start",background:b,borderBottom:E,transition:`background ${h} ease`,"&[colspan]:not([colspan='1'])":{textAlign:"center"},[`&:not(:last-child):not(${t}-selection-column):not(${t}-row-expand-icon-cell):not([colspan])::before`]:{position:"absolute",top:"50%",insetInlineEnd:0,width:1,height:"1.6em",backgroundColor:x,transform:"translateY(-50%)",transition:`background-color ${h}`,content:'""'}},"> tr:not(:last-child) > th[colspan]":{borderBottom:0}},[`${t}-tbody`]:{"> tr":{"> th, > td":{transition:`background ${h}, border-color ${h}`,borderBottom:E,[` + > ${t}-wrapper:only-child, + > ${t}-expanded-row-fixed > ${t}-wrapper:only-child + `]:{[t]:{marginBlock:ne(w(r).mul(-1).equal()),marginInline:`${ne(w(o).sub(a).equal())} + ${ne(w(a).mul(-1).equal())}`,[`${t}-tbody > tr:last-child > td`]:{borderBottomWidth:0,"&:first-child, &:last-child":{borderRadius:0}}}}},"> th":{position:"relative",color:v,fontWeight:n,textAlign:"start",background:b,borderBottom:E,transition:`background ${h} ease`}}},[`${t}-footer`]:{padding:`${ne(r)} ${ne(a)}`,color:y,background:C}})}},BG=e=>{const{colorFillAlter:t,colorBgContainer:n,colorTextHeading:r,colorFillSecondary:a,colorFillContent:o,controlItemBgActive:l,controlItemBgActiveHover:c,padding:d,paddingSM:f,paddingXS:m,colorBorderSecondary:p,borderRadiusLG:v,controlHeight:h,colorTextPlaceholder:b,fontSize:x,fontSizeSM:y,lineHeight:C,lineWidth:w,colorIcon:E,colorIconHover:I,opacityLoading:_,controlInteractiveSize:O}=e,P=new Pn(a).onBackground(n).toHexString(),j=new Pn(o).onBackground(n).toHexString(),R=new Pn(t).onBackground(n).toHexString(),k=new Pn(E),L=new Pn(I),W=O/2-w,B=W*2+w*3;return{headerBg:R,headerColor:r,headerSortActiveBg:P,headerSortHoverBg:j,bodySortBg:R,rowHoverBg:R,rowSelectedBg:l,rowSelectedHoverBg:c,rowExpandedBg:t,cellPaddingBlock:d,cellPaddingInline:d,cellPaddingBlockMD:f,cellPaddingInlineMD:m,cellPaddingBlockSM:m,cellPaddingInlineSM:m,borderColor:p,headerBorderRadius:v,footerBg:R,footerColor:r,cellFontSize:x,cellFontSizeMD:x,cellFontSizeSM:x,headerSplitColor:p,fixedHeaderSortActiveBg:P,headerFilterHoverBg:o,filterDropdownMenuBg:n,filterDropdownBg:n,expandIconBg:n,selectionColumnWidth:h,stickyScrollBarBg:b,stickyScrollBarBorderRadius:100,expandIconMarginTop:(x*C-w*3)/2-Math.ceil((y*1.4-w*3)/2),headerIconColor:k.clone().setA(k.a*_).toRgbString(),headerIconHoverColor:L.clone().setA(L.a*_).toRgbString(),expandIconHalfInner:W,expandIconSize:B,expandIconScale:O/B}},n_=2,HG=zn("Table",e=>{const{colorTextHeading:t,colorSplit:n,colorBgContainer:r,controlInteractiveSize:a,headerBg:o,headerColor:l,headerSortActiveBg:c,headerSortHoverBg:d,bodySortBg:f,rowHoverBg:m,rowSelectedBg:p,rowSelectedHoverBg:v,rowExpandedBg:h,cellPaddingBlock:b,cellPaddingInline:x,cellPaddingBlockMD:y,cellPaddingInlineMD:C,cellPaddingBlockSM:w,cellPaddingInlineSM:E,borderColor:I,footerBg:_,footerColor:O,headerBorderRadius:P,cellFontSize:j,cellFontSizeMD:R,cellFontSizeSM:k,headerSplitColor:L,fixedHeaderSortActiveBg:W,headerFilterHoverBg:B,filterDropdownBg:F,expandIconBg:A,selectionColumnWidth:T,stickyScrollBarBg:M,calc:D}=e,V=$n(e,{tableFontSize:j,tableBg:r,tableRadius:P,tablePaddingVertical:b,tablePaddingHorizontal:x,tablePaddingVerticalMiddle:y,tablePaddingHorizontalMiddle:C,tablePaddingVerticalSmall:w,tablePaddingHorizontalSmall:E,tableBorderColor:I,tableHeaderTextColor:l,tableHeaderBg:o,tableFooterTextColor:O,tableFooterBg:_,tableHeaderCellSplitColor:L,tableHeaderSortBg:c,tableHeaderSortHoverBg:d,tableBodySortBg:f,tableFixedHeaderSortActiveBg:W,tableHeaderFilterActiveBg:B,tableFilterDropdownBg:F,tableRowHoverBg:m,tableSelectedRowBg:p,tableSelectedRowHoverBg:v,zIndexTableFixed:n_,zIndexTableSticky:D(n_).add(1).equal({unit:!1}),tableFontSizeMiddle:R,tableFontSizeSmall:k,tableSelectionColumnWidth:T,tableExpandIconBg:A,tableExpandColumnWidth:D(a).add(D(e.padding).mul(2)).equal(),tableExpandedRowBg:h,tableFilterDropdownWidth:120,tableFilterDropdownHeight:264,tableFilterDropdownSearchWidth:140,tableScrollThumbSize:8,tableScrollThumbBg:M,tableScrollThumbBgHover:t,tableScrollBg:n});return[zG(V),jG(V),t_(V),FG(V),PG(V),_G(V),kG(V),RG(V),t_(V),OG(V),TG(V),NG(V),LG(V),IG(V),DG(V),MG(V),AG(V)]},BG,{unitless:{expandIconScale:!0}}),VG=[],WG=(e,t)=>{var n,r;const{prefixCls:a,className:o,rootClassName:l,style:c,size:d,bordered:f,dropdownPrefixCls:m,dataSource:p,pagination:v,rowSelection:h,rowKey:b="key",rowClassName:x,columns:y,children:C,childrenColumnName:w,onChange:E,getPopupContainer:I,loading:_,expandIcon:O,expandable:P,expandedRowRender:j,expandIconColumnIndex:R,indentSize:k,scroll:L,sortDirections:W,locale:B,showSorterTooltip:F={target:"full-header"},virtual:A}=e;ml();const T=i.useMemo(()=>y||mx(C),[y,C]),M=i.useMemo(()=>T.some(Ct=>Ct.responsive),[T]),D=Lp(M),V=i.useMemo(()=>{const Ct=new Set(Object.keys(D).filter(ht=>D[ht]));return T.filter(ht=>!ht.responsive||ht.responsive.some(Ft=>Ct.has(Ft)))},[T,D]),K=Qn(e,["className","style","columns"]),{locale:z=bi,direction:U,table:Y,renderEmpty:q,getPrefixCls:X,getPopupContainer:te}=i.useContext(Gt),ee=Zr(d),J=Object.assign(Object.assign({},z.Table),B),ie=p||VG,de=X("table",a),oe=X("dropdown",m),[,le]=ba(),ae=Kr(de),[ue,pe,fe]=HG(de,ae),xe=Object.assign(Object.assign({childrenColumnName:w,expandIconColumnIndex:R},P),{expandIcon:(n=P==null?void 0:P.expandIcon)!==null&&n!==void 0?n:(r=Y==null?void 0:Y.expandable)===null||r===void 0?void 0:r.expandIcon}),{childrenColumnName:Ee="children"}=xe,Le=i.useMemo(()=>ie.some(Ct=>Ct==null?void 0:Ct[Ee])?"nest":j||P!=null&&P.expandedRowRender?"row":null,[ie]),Ne={body:i.useRef(null)},ge=LY(de),we=i.useRef(null),Se=i.useRef(null);DY(t,()=>Object.assign(Object.assign({},Se.current),{nativeElement:we.current}));const Re=i.useMemo(()=>typeof b=="function"?b:Ct=>Ct==null?void 0:Ct[b],[b]),[De]=hG(ie,Ee,Re),Me={},Ye=function(Ct,ht){let Ft=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;var At,en,vn,sn;const yn=Object.assign(Object.assign({},Me),Ct);Ft&&((At=Me.resetPagination)===null||At===void 0||At.call(Me),!((en=yn.pagination)===null||en===void 0)&&en.current&&(yn.pagination.current=1),v&&((vn=v.onChange)===null||vn===void 0||vn.call(v,1,(sn=yn.pagination)===null||sn===void 0?void 0:sn.pageSize))),L&&L.scrollToFirstRowOnChange!==!1&&Ne.body.current&&k4(0,{getContainer:()=>Ne.body.current}),E==null||E(yn.pagination,yn.filters,yn.sorter,{currentDataSource:N0(k0(ie,yn.sorterStates,Ee),yn.filterStates,Ee),action:ht})},qe=(Ct,ht)=>{Ye({sorter:Ct,sorterStates:ht},"sort",!1)},[He,ze,Ae,Ie]=CG({prefixCls:de,mergedColumns:V,onSorterChange:qe,sortDirections:W||["ascend","descend"],tableLocale:J,showSorterTooltip:F}),Ve=i.useMemo(()=>k0(ie,ze,Ee),[ie,ze]);Me.sorter=Ie(),Me.sorterStates=ze;const ye=(Ct,ht)=>{Ye({filters:Ct,filterStates:ht},"filter",!0)},[Ce,_e,he]=gG({prefixCls:de,locale:J,dropdownPrefixCls:oe,mergedColumns:V,onFilterChange:ye,getPopupContainer:I||te,rootClassName:ce(l,ae)}),ke=N0(Ve,_e,Ee);Me.filters=he,Me.filterStates=_e;const tt=i.useMemo(()=>{const Ct={};return Object.keys(he).forEach(ht=>{he[ht]!==null&&(Ct[ht]=he[ht])}),Object.assign(Object.assign({},Ae),{filters:Ct})},[Ae,he]),[Nt]=wG(tt),Ht=(Ct,ht)=>{Ye({pagination:Object.assign(Object.assign({},Me.pagination),{current:Ct,pageSize:ht})},"paginate")},[Ge,rt]=xG(ke.length,Ht,v);Me.pagination=v===!1?{}:bG(Ge,v),Me.resetPagination=rt;const gt=i.useMemo(()=>{if(v===!1||!Ge.pageSize)return ke;const{current:Ct=1,total:ht,pageSize:Ft=jP}=Ge;return ke.lengthFt?ke.slice((Ct-1)*Ft,Ct*Ft):ke:ke.slice((Ct-1)*Ft,Ct*Ft)},[!!v,ke,Ge==null?void 0:Ge.current,Ge==null?void 0:Ge.pageSize,Ge==null?void 0:Ge.total]),[at,dt]=MY({prefixCls:de,data:ke,pageData:gt,getRowKey:Re,getRecordByKey:De,expandType:Le,childrenColumnName:Ee,locale:J,getPopupContainer:I||te},h),st=(Ct,ht,Ft)=>{let At;return typeof x=="function"?At=ce(x(Ct,ht,Ft)):At=ce(x),ce({[`${de}-row-selected`]:dt.has(Re(Ct,ht))},At)};xe.__PARENT_RENDER_ICON__=xe.expandIcon,xe.expandIcon=xe.expandIcon||O||FY(J),Le==="nest"&&xe.expandIconColumnIndex===void 0?xe.expandIconColumnIndex=h?1:0:xe.expandIconColumnIndex>0&&h&&(xe.expandIconColumnIndex-=1),typeof xe.indentSize!="number"&&(xe.indentSize=typeof k=="number"?k:15);const et=i.useCallback(Ct=>Nt(at(Ce(He(Ct)))),[He,Ce,at]);let Qe,Tt;if(v!==!1&&(Ge!=null&&Ge.total)){let Ct;Ge.size?Ct=Ge.size:Ct=ee==="small"||ee==="middle"?"small":void 0;const ht=en=>i.createElement(YR,Object.assign({},Ge,{className:ce(`${de}-pagination ${de}-pagination-${en}`,Ge.className),size:Ct})),Ft=U==="rtl"?"left":"right",{position:At}=Ge;if(At!==null&&Array.isArray(At)){const en=At.find(yn=>yn.includes("top")),vn=At.find(yn=>yn.includes("bottom")),sn=At.every(yn=>`${yn}`=="none");!en&&!vn&&!sn&&(Tt=ht(Ft)),en&&(Qe=ht(en.toLowerCase().replace("top",""))),vn&&(Tt=ht(vn.toLowerCase().replace("bottom","")))}else Tt=ht(Ft)}let kt;typeof _=="boolean"?kt={spinning:_}:typeof _=="object"&&(kt=Object.assign({spinning:!0},_));const Xe=ce(fe,ae,`${de}-wrapper`,Y==null?void 0:Y.className,{[`${de}-wrapper-rtl`]:U==="rtl"},o,l,pe),Ze=Object.assign(Object.assign({},Y==null?void 0:Y.style),c),Et=typeof(B==null?void 0:B.emptyText)<"u"?B.emptyText:(q==null?void 0:q("Table"))||i.createElement(wb,{componentName:"Table"}),Ot=A?EG:$G,xt={},Lt=i.useMemo(()=>{const{fontSize:Ct,lineHeight:ht,lineWidth:Ft,padding:At,paddingXS:en,paddingSM:vn}=le,sn=Math.floor(Ct*ht);switch(ee){case"middle":return vn*2+sn+Ft;case"small":return en*2+sn+Ft;default:return At*2+sn+Ft}},[le,ee]);return A&&(xt.listItemHeight=Lt),ue(i.createElement("div",{ref:we,className:Xe,style:Ze},i.createElement(Od,Object.assign({spinning:!1},kt),Qe,i.createElement(Ot,Object.assign({},xt,K,{ref:Se,columns:V,direction:U,expandable:xe,prefixCls:de,className:ce({[`${de}-middle`]:ee==="middle",[`${de}-small`]:ee==="small",[`${de}-bordered`]:f,[`${de}-empty`]:ie.length===0},fe,ae,pe),data:gt,rowKey:Re,rowClassName:st,emptyText:Et,internalHooks:Rd,internalRefs:Ne,transformColumns:et,getContainerWidth:ge})),Tt)))},KG=i.forwardRef(WG),UG=(e,t)=>{const n=i.useRef(0);return n.current+=1,i.createElement(KG,Object.assign({},e,{ref:t,_renderTimes:n.current}))},To=i.forwardRef(UG);To.SELECTION_COLUMN=Qi;To.EXPAND_COLUMN=ui;To.SELECTION_ALL=_0;To.SELECTION_INVERT=I0;To.SELECTION_NONE=O0;To.Column=wY;To.ColumnGroup=$Y;To.Summary=uP;const qG=e=>{const{paddingXXS:t,lineWidth:n,tagPaddingHorizontal:r,componentCls:a,calc:o}=e,l=o(r).sub(n).equal(),c=o(t).sub(n).equal();return{[a]:Object.assign(Object.assign({},Ln(e)),{display:"inline-block",height:"auto",marginInlineEnd:e.marginXS,paddingInline:l,fontSize:e.tagFontSize,lineHeight:e.tagLineHeight,whiteSpace:"nowrap",background:e.defaultBg,border:`${ne(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,borderRadius:e.borderRadiusSM,opacity:1,transition:`all ${e.motionDurationMid}`,textAlign:"start",position:"relative",[`&${a}-rtl`]:{direction:"rtl"},"&, a, a:hover":{color:e.defaultColor},[`${a}-close-icon`]:{marginInlineStart:c,fontSize:e.tagIconSize,color:e.colorTextDescription,cursor:"pointer",transition:`all ${e.motionDurationMid}`,"&:hover":{color:e.colorTextHeading}},[`&${a}-has-color`]:{borderColor:"transparent",[`&, a, a:hover, ${e.iconCls}-close, ${e.iconCls}-close:hover`]:{color:e.colorTextLightSolid}},"&-checkable":{backgroundColor:"transparent",borderColor:"transparent",cursor:"pointer",[`&:not(${a}-checkable-checked):hover`]:{color:e.colorPrimary,backgroundColor:e.colorFillSecondary},"&:active, &-checked":{color:e.colorTextLightSolid},"&-checked":{backgroundColor:e.colorPrimary,"&:hover":{backgroundColor:e.colorPrimaryHover}},"&:active":{backgroundColor:e.colorPrimaryActive}},"&-hidden":{display:"none"},[`> ${e.iconCls} + span, > span + ${e.iconCls}`]:{marginInlineStart:l}}),[`${a}-borderless`]:{borderColor:"transparent",background:e.tagBorderlessBg}}},xx=e=>{const{lineWidth:t,fontSizeIcon:n,calc:r}=e,a=e.fontSizeSM;return $n(e,{tagFontSize:a,tagLineHeight:ne(r(e.lineHeightSM).mul(a).equal()),tagIconSize:r(n).sub(r(t).mul(2)).equal(),tagPaddingHorizontal:8,tagBorderlessBg:e.defaultBg})},Sx=e=>({defaultBg:new Pn(e.colorFillQuaternary).onBackground(e.colorBgContainer).toHexString(),defaultColor:e.colorText}),TP=zn("Tag",e=>{const t=xx(e);return qG(t)},Sx);var YG=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 a=0,r=Object.getOwnPropertySymbols(e);a{const{prefixCls:n,style:r,className:a,checked:o,onChange:l,onClick:c}=e,d=YG(e,["prefixCls","style","className","checked","onChange","onClick"]),{getPrefixCls:f,tag:m}=i.useContext(Gt),p=C=>{l==null||l(!o),c==null||c(C)},v=f("tag",n),[h,b,x]=TP(v),y=ce(v,`${v}-checkable`,{[`${v}-checkable-checked`]:o},m==null?void 0:m.className,a,b,x);return h(i.createElement("span",Object.assign({},d,{ref:t,style:Object.assign(Object.assign({},r),m==null?void 0:m.style),className:y,onClick:p})))}),XG=e=>_I(e,(t,n)=>{let{textColor:r,lightBorderColor:a,lightColor:o,darkColor:l}=n;return{[`${e.componentCls}${e.componentCls}-${t}`]:{color:r,background:o,borderColor:a,"&-inverse":{color:e.colorTextLightSolid,background:l,borderColor:l},[`&${e.componentCls}-borderless`]:{borderColor:"transparent"}}}}),QG=pd(["Tag","preset"],e=>{const t=xx(e);return XG(t)},Sx);function JG(e){return typeof e!="string"?e:e.charAt(0).toUpperCase()+e.slice(1)}const am=(e,t,n)=>{const r=JG(n);return{[`${e.componentCls}${e.componentCls}-${t}`]:{color:e[`color${n}`],background:e[`color${r}Bg`],borderColor:e[`color${r}Border`],[`&${e.componentCls}-borderless`]:{borderColor:"transparent"}}}},ZG=pd(["Tag","status"],e=>{const t=xx(e);return[am(t,"success","Success"),am(t,"processing","Info"),am(t,"error","Error"),am(t,"warning","Warning")]},Sx);var eX=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 a=0,r=Object.getOwnPropertySymbols(e);a{const{prefixCls:n,className:r,rootClassName:a,style:o,children:l,icon:c,color:d,onClose:f,bordered:m=!0,visible:p}=e,v=eX(e,["prefixCls","className","rootClassName","style","children","icon","color","onClose","bordered","visible"]),{getPrefixCls:h,direction:b,tag:x}=i.useContext(Gt),[y,C]=i.useState(!0),w=Qn(v,["closeIcon","closable"]);i.useEffect(()=>{p!==void 0&&C(p)},[p]);const E=q2(d),I=e8(d),_=E||I,O=Object.assign(Object.assign({backgroundColor:d&&!_?d:void 0},x==null?void 0:x.style),o),P=h("tag",n),[j,R,k]=TP(P),L=ce(P,x==null?void 0:x.className,{[`${P}-${d}`]:_,[`${P}-has-color`]:d&&!_,[`${P}-hidden`]:!y,[`${P}-rtl`]:b==="rtl",[`${P}-borderless`]:!m},r,a,R,k),W=D=>{D.stopPropagation(),f==null||f(D),!D.defaultPrevented&&C(!1)},[,B]=JF(A1(e),A1(x),{closable:!1,closeIconRender:D=>{const V=i.createElement("span",{className:`${P}-close-icon`,onClick:W},D);return UI(D,V,K=>({onClick:z=>{var U;(U=K==null?void 0:K.onClick)===null||U===void 0||U.call(K,z),W(z)},className:ce(K==null?void 0:K.className,`${P}-close-icon`)}))}}),F=typeof v.onClick=="function"||l&&l.type==="a",A=c||null,T=A?i.createElement(i.Fragment,null,A,l&&i.createElement("span",null,l)):l,M=i.createElement("span",Object.assign({},w,{ref:t,className:L,style:O}),T,B,E&&i.createElement(QG,{key:"preset",prefixCls:P}),I&&i.createElement(ZG,{key:"status",prefixCls:P}));return j(F?i.createElement(yd,{component:"Tag"},M):M)}),ap=tX;ap.CheckableTag=GG;const nX={defaultSeed:qu.token,defaultConfig:qu},rX=(e,t,n,r)=>{const{titleMarginBottom:a,fontWeightStrong:o}=r;return{marginBottom:a,color:n,fontWeight:o,fontSize:e,lineHeight:t}},aX=e=>{const t=[1,2,3,4,5],n={};return t.forEach(r=>{n[` + h${r}&, + div&-h${r}, + div&-h${r} > textarea, + h${r} + `]=rX(e[`fontSizeHeading${r}`],e[`lineHeightHeading${r}`],e.colorTextHeading,e)}),n},oX=e=>{const{componentCls:t}=e;return{"a&, a":Object.assign(Object.assign({},ab(e)),{userSelect:"text",[`&[disabled], &${t}-disabled`]:{color:e.colorTextDisabled,cursor:"not-allowed","&:active, &:hover":{color:e.colorTextDisabled},"&:active":{pointerEvents:"none"}}})}},iX=e=>({code:{margin:"0 0.2em",paddingInline:"0.4em",paddingBlock:"0.2em 0.1em",fontSize:"85%",fontFamily:e.fontFamilyCode,background:"rgba(150, 150, 150, 0.1)",border:"1px solid rgba(100, 100, 100, 0.2)",borderRadius:3},kbd:{margin:"0 0.2em",paddingInline:"0.4em",paddingBlock:"0.15em 0.1em",fontSize:"90%",fontFamily:e.fontFamilyCode,background:"rgba(150, 150, 150, 0.06)",border:"1px solid rgba(100, 100, 100, 0.2)",borderBottomWidth:2,borderRadius:3},mark:{padding:0,backgroundColor:Hm[2]},"u, ins":{textDecoration:"underline",textDecorationSkipInk:"auto"},"s, del":{textDecoration:"line-through"},strong:{fontWeight:600},"ul, ol":{marginInline:0,marginBlock:"0 1em",padding:0,li:{marginInline:"20px 0",marginBlock:0,paddingInline:"4px 0",paddingBlock:0}},ul:{listStyleType:"circle",ul:{listStyleType:"disc"}},ol:{listStyleType:"decimal"},"pre, blockquote":{margin:"1em 0"},pre:{padding:"0.4em 0.6em",whiteSpace:"pre-wrap",wordWrap:"break-word",background:"rgba(150, 150, 150, 0.1)",border:"1px solid rgba(100, 100, 100, 0.2)",borderRadius:3,fontFamily:e.fontFamilyCode,code:{display:"inline",margin:0,padding:0,fontSize:"inherit",fontFamily:"inherit",background:"transparent",border:0}},blockquote:{paddingInline:"0.6em 0",paddingBlock:0,borderInlineStart:"4px solid rgba(100, 100, 100, 0.2)",opacity:.85}}),lX=e=>{const{componentCls:t,paddingSM:n}=e,r=n;return{"&-edit-content":{position:"relative","div&":{insetInlineStart:e.calc(e.paddingSM).mul(-1).equal(),marginTop:e.calc(r).mul(-1).equal(),marginBottom:`calc(1em - ${ne(r)})`},[`${t}-edit-content-confirm`]:{position:"absolute",insetInlineEnd:e.calc(e.marginXS).add(2).equal(),insetBlockEnd:e.marginXS,color:e.colorTextDescription,fontWeight:"normal",fontSize:e.fontSize,fontStyle:"normal",pointerEvents:"none"},textarea:{margin:"0!important",MozTransition:"none",height:"1em"}}}},sX=e=>({[`${e.componentCls}-copy-success`]:{"\n &,\n &:hover,\n &:focus":{color:e.colorSuccess}},[`${e.componentCls}-copy-icon-only`]:{marginInlineStart:0}}),cX=()=>({"\n a&-ellipsis,\n span&-ellipsis\n ":{display:"inline-block",maxWidth:"100%"},"&-ellipsis-single-line":{whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis","a&, span&":{verticalAlign:"bottom"},"> code":{paddingBlock:0,maxWidth:"calc(100% - 1.2em)",display:"inline-block",overflow:"hidden",textOverflow:"ellipsis",verticalAlign:"bottom",boxSizing:"content-box"}},"&-ellipsis-multiple-line":{display:"-webkit-box",overflow:"hidden",WebkitLineClamp:3,WebkitBoxOrient:"vertical"}}),uX=e=>{const{componentCls:t,titleMarginTop:n}=e;return{[t]:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({color:e.colorText,wordBreak:"break-word",lineHeight:e.lineHeight,[`&${t}-secondary`]:{color:e.colorTextDescription},[`&${t}-success`]:{color:e.colorSuccessText},[`&${t}-warning`]:{color:e.colorWarningText},[`&${t}-danger`]:{color:e.colorErrorText,"a&:active, a&:focus":{color:e.colorErrorTextActive},"a&:hover":{color:e.colorErrorTextHover}},[`&${t}-disabled`]:{color:e.colorTextDisabled,cursor:"not-allowed",userSelect:"none"},"\n div&,\n p\n ":{marginBottom:"1em"}},aX(e)),{[` + & + h1${t}, + & + h2${t}, + & + h3${t}, + & + h4${t}, + & + h5${t} + `]:{marginTop:n},"\n div,\n ul,\n li,\n p,\n h1,\n h2,\n h3,\n h4,\n h5":{"\n + h1,\n + h2,\n + h3,\n + h4,\n + h5\n ":{marginTop:n}}}),iX(e)),oX(e)),{[` + ${t}-expand, + ${t}-collapse, + ${t}-edit, + ${t}-copy + `]:Object.assign(Object.assign({},ab(e)),{marginInlineStart:e.marginXXS})}),lX(e)),sX(e)),cX()),{"&-rtl":{direction:"rtl"}})}},dX=()=>({titleMarginTop:"1.2em",titleMarginBottom:"0.5em"}),DP=zn("Typography",e=>[uX(e)],dX),fX=e=>{const{prefixCls:t,"aria-label":n,className:r,style:a,direction:o,maxLength:l,autoSize:c=!0,value:d,onSave:f,onCancel:m,onEnd:p,component:v,enterIcon:h=i.createElement(dU,null)}=e,b=i.useRef(null),x=i.useRef(!1),y=i.useRef(null),[C,w]=i.useState(d);i.useEffect(()=>{w(d)},[d]),i.useEffect(()=>{var F;if(!((F=b.current)===null||F===void 0)&&F.resizableTextArea){const{textArea:A}=b.current.resizableTextArea;A.focus();const{length:T}=A.value;A.setSelectionRange(T,T)}},[]);const E=F=>{let{target:A}=F;w(A.value.replace(/[\n\r]/g,""))},I=()=>{x.current=!0},_=()=>{x.current=!1},O=F=>{let{keyCode:A}=F;x.current||(y.current=A)},P=()=>{f(C.trim())},j=F=>{let{keyCode:A,ctrlKey:T,altKey:M,metaKey:D,shiftKey:V}=F;y.current!==A||x.current||T||M||D||V||(A===$t.ENTER?(P(),p==null||p()):A===$t.ESC&&m())},R=()=>{P()},[k,L,W]=DP(t),B=ce(t,`${t}-edit-content`,{[`${t}-rtl`]:o==="rtl",[`${t}-${v}`]:!!v},r,L,W);return k(i.createElement("div",{className:B,style:a},i.createElement(WR,{ref:b,maxLength:l,value:C,onChange:E,onKeyDown:O,onKeyUp:j,onCompositionStart:I,onCompositionEnd:_,onBlur:R,"aria-label":n,rows:1,autoSize:c}),h!==null?ia(h,{className:`${t}-edit-content-confirm`}):null))};var Gh,r_;function mX(){return r_||(r_=1,Gh=function(){var e=document.getSelection();if(!e.rangeCount)return function(){};for(var t=document.activeElement,n=[],r=0;r"u"){c&&console.warn("unable to use e.clipboardData"),c&&console.warn("trying IE specific stuff"),window.clipboardData.clearData();var y=t[l.format]||t.default;window.clipboardData.setData(y,o)}else x.clipboardData.clearData(),x.clipboardData.setData(l.format,o);l.onCopy&&(x.preventDefault(),l.onCopy(x.clipboardData))}),document.body.appendChild(v),m.selectNodeContents(v),p.addRange(m);var b=document.execCommand("copy");if(!b)throw new Error("copy command was unsuccessful");h=!0}catch(x){c&&console.error("unable to copy using execCommand: ",x),c&&console.warn("trying IE specific stuff");try{window.clipboardData.setData(l.format||"text",o),l.onCopy&&l.onCopy(window.clipboardData),h=!0}catch(y){c&&console.error("unable to copy using clipboardData: ",y),c&&console.error("falling back to prompt"),d=r("message"in l?l.message:n),window.prompt(d,o)}}finally{p&&(typeof p.removeRange=="function"?p.removeRange(m):p.removeAllRanges()),v&&document.body.removeChild(v),f()}return h}return Xh=a,Xh}var vX=pX();const gX=jo(vX);var hX=function(e,t,n,r){function a(o){return o instanceof n?o:new n(function(l){l(o)})}return new(n||(n=Promise))(function(o,l){function c(m){try{f(r.next(m))}catch(p){l(p)}}function d(m){try{f(r.throw(m))}catch(p){l(p)}}function f(m){m.done?o(m.value):a(m.value).then(c,d)}f((r=r.apply(e,t||[])).next())})};const yX=e=>{let{copyConfig:t,children:n}=e;const[r,a]=i.useState(!1),[o,l]=i.useState(!1),c=i.useRef(null),d=()=>{c.current&&clearTimeout(c.current)},f={};t.format&&(f.format=t.format),i.useEffect(()=>d,[]);const m=wn(p=>hX(void 0,void 0,void 0,function*(){var v;p==null||p.preventDefault(),p==null||p.stopPropagation(),l(!0);try{const h=typeof t.text=="function"?yield t.text():t.text;gX(h||lK(n,!0).join("")||"",f),l(!1),a(!0),d(),c.current=setTimeout(()=>{a(!1)},3e3),(v=t.onCopy)===null||v===void 0||v.call(t,p)}catch(h){throw l(!1),h}}));return{copied:r,copyLoading:o,onClick:m}};function Qh(e,t){return i.useMemo(()=>{const n=!!e;return[n,Object.assign(Object.assign({},t),n&&typeof e=="object"?e:null)]},[e])}const bX=e=>{const t=i.useRef(void 0);return i.useEffect(()=>{t.current=e}),t.current},xX=(e,t,n)=>i.useMemo(()=>e===!0?{title:t??n}:i.isValidElement(e)?{title:e}:typeof e=="object"?Object.assign({title:t??n},e):{title:e},[e,t,n]);var SX=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 a=0,r=Object.getOwnPropertySymbols(e);a{const{prefixCls:n,component:r="article",className:a,rootClassName:o,setContentRef:l,children:c,direction:d,style:f}=e,m=SX(e,["prefixCls","component","className","rootClassName","setContentRef","children","direction","style"]),{getPrefixCls:p,direction:v,className:h,style:b}=wa("typography"),x=d??v,y=l?ya(t,l):t,C=p("typography",n),[w,E,I]=DP(C),_=ce(C,h,{[`${C}-rtl`]:x==="rtl"},a,o,E,I),O=Object.assign(Object.assign({},b),f);return w(i.createElement(r,Object.assign({className:_,style:O,ref:y},m),c))});function o_(e){return e===!1?[!1,!1]:Array.isArray(e)?e:[e]}function Jh(e,t,n){return e===!0||e===void 0?t:e||n&&t}function CX(e){const t=document.createElement("em");e.appendChild(t);const n=e.getBoundingClientRect(),r=t.getBoundingClientRect();return e.removeChild(t),n.left>r.left||r.right>n.right||n.top>r.top||r.bottom>n.bottom}const Cx=e=>["string","number"].includes(typeof e),wX=e=>{let{prefixCls:t,copied:n,locale:r,iconOnly:a,tooltips:o,icon:l,tabIndex:c,onCopy:d,loading:f}=e;const m=o_(o),p=o_(l),{copied:v,copy:h}=r??{},b=n?v:h,x=Jh(m[n?1:0],b),y=typeof x=="string"?x:b;return i.createElement(io,{title:x},i.createElement("button",{type:"button",className:ce(`${t}-copy`,{[`${t}-copy-success`]:n,[`${t}-copy-icon-only`]:a}),onClick:d,"aria-label":y,tabIndex:c},n?Jh(p[1],i.createElement($b,null),!0):Jh(p[0],f?i.createElement(Si,null):i.createElement(tP,null),!0)))},om=i.forwardRef((e,t)=>{let{style:n,children:r}=e;const a=i.useRef(null);return i.useImperativeHandle(t,()=>({isExceed:()=>{const o=a.current;return o.scrollHeight>o.clientHeight},getHeight:()=>a.current.clientHeight})),i.createElement("span",{"aria-hidden":!0,ref:a,style:Object.assign({position:"fixed",display:"block",left:0,top:0,pointerEvents:"none",backgroundColor:"rgba(255, 0, 0, 0.65)"},n)},r)}),$X=e=>e.reduce((t,n)=>t+(Cx(n)?String(n).length:1),0);function i_(e,t){let n=0;const r=[];for(let a=0;at){const f=t-n;return r.push(String(o).slice(0,f)),r}r.push(o),n=d}return e}const Zh=0,ey=1,ty=2,ny=3,l_=4,im={display:"-webkit-box",overflow:"hidden",WebkitBoxOrient:"vertical"};function EX(e){const{enableMeasure:t,width:n,text:r,children:a,rows:o,expanded:l,miscDeps:c,onEllipsis:d}=e,f=i.useMemo(()=>ga(r),[r]),m=i.useMemo(()=>$X(f),[r]),p=i.useMemo(()=>a(f,!1),[r]),[v,h]=i.useState(null),b=i.useRef(null),x=i.useRef(null),y=i.useRef(null),C=i.useRef(null),w=i.useRef(null),[E,I]=i.useState(!1),[_,O]=i.useState(Zh),[P,j]=i.useState(0),[R,k]=i.useState(null);hn(()=>{O(t&&n&&m?ey:Zh)},[n,r,o,t,f]),hn(()=>{var F,A,T,M;if(_===ey){O(ty);const D=x.current&&getComputedStyle(x.current).whiteSpace;k(D)}else if(_===ty){const D=!!(!((F=y.current)===null||F===void 0)&&F.isExceed());O(D?ny:l_),h(D?[0,m]:null),I(D);const V=((A=y.current)===null||A===void 0?void 0:A.getHeight())||0,K=o===1?0:((T=C.current)===null||T===void 0?void 0:T.getHeight())||0,z=((M=w.current)===null||M===void 0?void 0:M.getHeight())||0,U=Math.max(V,K+z);j(U+1),d(D)}},[_]);const L=v?Math.ceil((v[0]+v[1])/2):0;hn(()=>{var F;const[A,T]=v||[0,0];if(A!==T){const D=(((F=b.current)===null||F===void 0?void 0:F.getHeight())||0)>P;let V=L;T-A===1&&(V=D?A:T),h(D?[A,V]:[V,T])}},[v,L]);const W=i.useMemo(()=>{if(!t)return a(f,!1);if(_!==ny||!v||v[0]!==v[1]){const F=a(f,!1);return[l_,Zh].includes(_)?F:i.createElement("span",{style:Object.assign(Object.assign({},im),{WebkitLineClamp:o})},F)}return a(l?f:i_(f,v[0]),E)},[l,_,v,f].concat(Te(c))),B={width:n,margin:0,padding:0,whiteSpace:R==="nowrap"?"normal":"inherit"};return i.createElement(i.Fragment,null,W,_===ty&&i.createElement(i.Fragment,null,i.createElement(om,{style:Object.assign(Object.assign(Object.assign({},B),im),{WebkitLineClamp:o}),ref:y},p),i.createElement(om,{style:Object.assign(Object.assign(Object.assign({},B),im),{WebkitLineClamp:o-1}),ref:C},p),i.createElement(om,{style:Object.assign(Object.assign(Object.assign({},B),im),{WebkitLineClamp:1}),ref:w},a([],!0))),_===ny&&v&&v[0]!==v[1]&&i.createElement(om,{style:Object.assign(Object.assign({},B),{top:400}),ref:b},a(i_(f,L),!0)),_===ey&&i.createElement("span",{style:{whiteSpace:"inherit"},ref:x}))}const _X=e=>{let{enableEllipsis:t,isEllipsis:n,children:r,tooltipProps:a}=e;return!(a!=null&&a.title)||!t?r:i.createElement(io,Object.assign({open:n?void 0:!1},a),r)};var IX=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 a=0,r=Object.getOwnPropertySymbols(e);a{var n;const{prefixCls:r,className:a,style:o,type:l,disabled:c,children:d,ellipsis:f,editable:m,copyable:p,component:v,title:h}=e,b=IX(e,["prefixCls","className","style","type","disabled","children","ellipsis","editable","copyable","component","title"]),{getPrefixCls:x,direction:y}=i.useContext(Gt),[C]=$i("Text"),w=i.useRef(null),E=i.useRef(null),I=x("typography",r),_=Qn(b,["mark","code","delete","underline","strong","keyboard","italic"]),[O,P]=Qh(m),[j,R]=Hn(!1,{value:P.editing}),{triggerType:k=["icon"]}=P,L=_e=>{var he;_e&&((he=P.onStart)===null||he===void 0||he.call(P)),R(_e)},W=bX(j);hn(()=>{var _e;!j&&W&&((_e=E.current)===null||_e===void 0||_e.focus())},[j]);const B=_e=>{_e==null||_e.preventDefault(),L(!0)},F=_e=>{var he;(he=P.onChange)===null||he===void 0||he.call(P,_e),L(!1)},A=()=>{var _e;(_e=P.onCancel)===null||_e===void 0||_e.call(P),L(!1)},[T,M]=Qh(p),{copied:D,copyLoading:V,onClick:K}=yX({copyConfig:M,children:d}),[z,U]=i.useState(!1),[Y,q]=i.useState(!1),[X,te]=i.useState(!1),[ee,J]=i.useState(!1),[ie,de]=i.useState(!0),[oe,le]=Qh(f,{expandable:!1,symbol:_e=>_e?C==null?void 0:C.collapse:C==null?void 0:C.expand}),[ae,ue]=Hn(le.defaultExpanded||!1,{value:le.expanded}),pe=oe&&(!ae||le.expandable==="collapsible"),{rows:fe=1}=le,xe=i.useMemo(()=>pe&&(le.suffix!==void 0||le.onEllipsis||le.expandable||O||T),[pe,le,O,T]);hn(()=>{oe&&!xe&&(U(o0("webkitLineClamp")),q(o0("textOverflow")))},[xe,oe]);const[Ee,Le]=i.useState(pe),Ne=i.useMemo(()=>xe?!1:fe===1?Y:z,[xe,Y,z]);hn(()=>{Le(Ne&&pe)},[Ne,pe]);const ge=pe&&(Ee?ee:X),we=pe&&fe===1&&Ee,Se=pe&&fe>1&&Ee,Re=(_e,he)=>{var ke;ue(he.expanded),(ke=le.onExpand)===null||ke===void 0||ke.call(le,_e,he)},[De,Me]=i.useState(0),Ye=_e=>{let{offsetWidth:he}=_e;Me(he)},qe=_e=>{var he;te(_e),X!==_e&&((he=le.onEllipsis)===null||he===void 0||he.call(le,_e))};i.useEffect(()=>{const _e=w.current;if(oe&&Ee&&_e){const he=CX(_e);ee!==he&&J(he)}},[oe,Ee,d,Se,ie,De]),i.useEffect(()=>{const _e=w.current;if(typeof IntersectionObserver>"u"||!_e||!Ee||!pe)return;const he=new IntersectionObserver(()=>{de(!!_e.offsetParent)});return he.observe(_e),()=>{he.disconnect()}},[Ee,pe]);const He=xX(le.tooltip,P.text,d),ze=i.useMemo(()=>{if(!(!oe||Ee))return[P.text,d,h,He.title].find(Cx)},[oe,Ee,h,He.title,ge]);if(j)return i.createElement(fX,{value:(n=P.text)!==null&&n!==void 0?n:typeof d=="string"?d:"",onSave:F,onCancel:A,onEnd:P.onEnd,prefixCls:I,className:a,style:o,direction:y,component:v,maxLength:P.maxLength,autoSize:P.autoSize,enterIcon:P.enterIcon});const Ae=()=>{const{expandable:_e,symbol:he}=le;return _e?i.createElement("button",{type:"button",key:"expand",className:`${I}-${ae?"collapse":"expand"}`,onClick:ke=>Re(ke,{expanded:!ae}),"aria-label":ae?C.collapse:C==null?void 0:C.expand},typeof he=="function"?he(ae):he):null},Ie=()=>{if(!O)return;const{icon:_e,tooltip:he,tabIndex:ke}=P,tt=ga(he)[0]||(C==null?void 0:C.edit),Nt=typeof tt=="string"?tt:"";return k.includes("icon")?i.createElement(io,{key:"edit",title:he===!1?"":tt},i.createElement("button",{type:"button",ref:E,className:`${I}-edit`,onClick:B,"aria-label":Nt,tabIndex:ke},_e||i.createElement(sU,{role:"button"}))):null},Ve=()=>T?i.createElement(wX,Object.assign({key:"copy"},M,{prefixCls:I,copied:D,locale:C,onCopy:K,loading:V,iconOnly:d==null})):null,ye=_e=>[_e&&Ae(),Ie(),Ve()],Ce=_e=>[_e&&!ae&&i.createElement("span",{"aria-hidden":!0,key:"ellipsis"},RX),le.suffix,ye(_e)];return i.createElement(ra,{onResize:Ye,disabled:!pe},_e=>i.createElement(_X,{tooltipProps:He,enableEllipsis:pe,isEllipsis:ge},i.createElement(FP,Object.assign({className:ce({[`${I}-${l}`]:l,[`${I}-disabled`]:c,[`${I}-ellipsis`]:oe,[`${I}-ellipsis-single-line`]:we,[`${I}-ellipsis-multiple-line`]:Se},a),prefixCls:r,style:Object.assign(Object.assign({},o),{WebkitLineClamp:Se?fe:void 0}),component:v,ref:ya(_e,w,t),direction:y,onClick:k.includes("text")?B:void 0,"aria-label":ze==null?void 0:ze.toString(),title:h},_),i.createElement(EX,{enableMeasure:pe&&!Ee,text:d,rows:fe,width:De,onEllipsis:qe,expanded:ae,miscDeps:[D,ae,V,O,T,C]},(he,ke)=>OX(e,i.createElement(i.Fragment,null,he.length>0&&ke&&!ae&&ze?i.createElement("span",{key:"show-content","aria-hidden":!0},he):he,Ce(ke)))))))});var PX=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 a=0,r=Object.getOwnPropertySymbols(e);a{var{ellipsis:n,rel:r}=e,a=PX(e,["ellipsis","rel"]);const o=Object.assign(Object.assign({},a),{rel:r===void 0&&a.target==="_blank"?"noopener noreferrer":r});return delete o.navigate,i.createElement(rv,Object.assign({},o,{ref:t,ellipsis:!!n,component:"a"}))}),jX=i.forwardRef((e,t)=>i.createElement(rv,Object.assign({ref:t},e,{component:"div"})));var kX=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 a=0,r=Object.getOwnPropertySymbols(e);a{var{ellipsis:n}=e,r=kX(e,["ellipsis"]);const a=i.useMemo(()=>n&&typeof n=="object"?Qn(n,["expandable","rows"]):n,[n]);return i.createElement(rv,Object.assign({ref:t},r,{ellipsis:a,component:"span"}))},TX=i.forwardRef(MX);var DX=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 a=0,r=Object.getOwnPropertySymbols(e);a{const{level:n=1}=e,r=DX(e,["level"]),a=FX.includes(n)?`h${n}`:"h1";return i.createElement(rv,Object.assign({ref:t},r,{component:a}))}),vl=FP;vl.Text=TX;vl.Link=NX;vl.Title=LX;vl.Paragraph=jX;const ry=function(e,t){if(e&&t){var n=Array.isArray(t)?t:t.split(","),r=e.name||"",a=e.type||"",o=a.replace(/\/.*$/,"");return n.some(function(l){var c=l.trim();if(/^\*(\/\*)?$/.test(l))return!0;if(c.charAt(0)==="."){var d=r.toLowerCase(),f=c.toLowerCase(),m=[f];return(f===".jpg"||f===".jpeg")&&(m=[".jpg",".jpeg"]),m.some(function(p){return d.endsWith(p)})}return/\/\*$/.test(c)?o===c.replace(/\/.*$/,""):a===c?!0:/^\w+$/.test(c)?(or(!1,"Upload takes an invalidate 'accept' type '".concat(c,"'.Skip for check.")),!0):!1})}return!0};function AX(e,t){var n="cannot ".concat(e.method," ").concat(e.action," ").concat(t.status,"'"),r=new Error(n);return r.status=t.status,r.method=e.method,r.url=e.action,r}function s_(e){var t=e.responseText||e.response;if(!t)return t;try{return JSON.parse(t)}catch{return t}}function zX(e){var t=new XMLHttpRequest;e.onProgress&&t.upload&&(t.upload.onprogress=function(o){o.total>0&&(o.percent=o.loaded/o.total*100),e.onProgress(o)});var n=new FormData;e.data&&Object.keys(e.data).forEach(function(a){var o=e.data[a];if(Array.isArray(o)){o.forEach(function(l){n.append("".concat(a,"[]"),l)});return}n.append(a,o)}),e.file instanceof Blob?n.append(e.filename,e.file,e.file.name):n.append(e.filename,e.file),t.onerror=function(o){e.onError(o)},t.onload=function(){return t.status<200||t.status>=300?e.onError(AX(e,t),s_(t)):e.onSuccess(s_(t),t)},t.open(e.method,e.action,!0),e.withCredentials&&"withCredentials"in t&&(t.withCredentials=!0);var r=e.headers||{};return r["X-Requested-With"]!==null&&t.setRequestHeader("X-Requested-With","XMLHttpRequest"),Object.keys(r).forEach(function(a){r[a]!==null&&t.setRequestHeader(a,r[a])}),t.send(n),{abort:function(){t.abort()}}}var BX=function(){var e=Ha(ar().mark(function t(n,r){var a,o,l,c,d,f,m,p;return ar().wrap(function(h){for(;;)switch(h.prev=h.next){case 0:f=function(){return f=Ha(ar().mark(function x(y){return ar().wrap(function(w){for(;;)switch(w.prev=w.next){case 0:return w.abrupt("return",new Promise(function(E){y.file(function(I){r(I)?(y.fullPath&&!I.webkitRelativePath&&(Object.defineProperties(I,{webkitRelativePath:{writable:!0}}),I.webkitRelativePath=y.fullPath.replace(/^\//,""),Object.defineProperties(I,{webkitRelativePath:{writable:!1}})),E(I)):E(null)})}));case 1:case"end":return w.stop()}},x)})),f.apply(this,arguments)},d=function(x){return f.apply(this,arguments)},c=function(){return c=Ha(ar().mark(function x(y){var C,w,E,I,_;return ar().wrap(function(P){for(;;)switch(P.prev=P.next){case 0:C=y.createReader(),w=[];case 2:return P.next=5,new Promise(function(j){C.readEntries(j,function(){return j([])})});case 5:if(E=P.sent,I=E.length,I){P.next=9;break}return P.abrupt("break",12);case 9:for(_=0;_{const{componentCls:t,iconCls:n}=e;return{[`${t}-wrapper`]:{[`${t}-drag`]:{position:"relative",width:"100%",height:"100%",textAlign:"center",background:e.colorFillAlter,border:`${ne(e.lineWidth)} dashed ${e.colorBorder}`,borderRadius:e.borderRadiusLG,cursor:"pointer",transition:`border-color ${e.motionDurationSlow}`,[t]:{padding:e.padding},[`${t}-btn`]:{display:"table",width:"100%",height:"100%",outline:"none",borderRadius:e.borderRadiusLG,"&:focus-visible":{outline:`${ne(e.lineWidthFocus)} solid ${e.colorPrimaryBorder}`}},[`${t}-drag-container`]:{display:"table-cell",verticalAlign:"middle"},[` + &:not(${t}-disabled):hover, + &-hover:not(${t}-disabled) + `]:{borderColor:e.colorPrimaryHover},[`p${t}-drag-icon`]:{marginBottom:e.margin,[n]:{color:e.colorPrimary,fontSize:e.uploadThumbnailSize}},[`p${t}-text`]:{margin:`0 0 ${ne(e.marginXXS)}`,color:e.colorTextHeading,fontSize:e.fontSizeLG},[`p${t}-hint`]:{color:e.colorTextDescription,fontSize:e.fontSize},[`&${t}-disabled`]:{[`p${t}-drag-icon ${n}, + p${t}-text, + p${t}-hint + `]:{color:e.colorTextDisabled}}}}}},qX=e=>{const{componentCls:t,iconCls:n,fontSize:r,lineHeight:a,calc:o}=e,l=`${t}-list-item`,c=`${l}-actions`,d=`${l}-action`;return{[`${t}-wrapper`]:{[`${t}-list`]:Object.assign(Object.assign({},Uo()),{lineHeight:e.lineHeight,[l]:{position:"relative",height:o(e.lineHeight).mul(r).equal(),marginTop:e.marginXS,fontSize:r,display:"flex",alignItems:"center",transition:`background-color ${e.motionDurationSlow}`,borderRadius:e.borderRadiusSM,"&:hover":{backgroundColor:e.controlItemBgHover},[`${l}-name`]:Object.assign(Object.assign({},Oo),{padding:`0 ${ne(e.paddingXS)}`,lineHeight:a,flex:"auto",transition:`all ${e.motionDurationSlow}`}),[c]:{whiteSpace:"nowrap",[d]:{opacity:0},[n]:{color:e.actionsColor,transition:`all ${e.motionDurationSlow}`},[` + ${d}:focus-visible, + &.picture ${d} + `]:{opacity:1}},[`${t}-icon ${n}`]:{color:e.colorTextDescription,fontSize:r},[`${l}-progress`]:{position:"absolute",bottom:e.calc(e.uploadProgressOffset).mul(-1).equal(),width:"100%",paddingInlineStart:o(r).add(e.paddingXS).equal(),fontSize:r,lineHeight:0,pointerEvents:"none","> div":{margin:0}}},[`${l}:hover ${d}`]:{opacity:1},[`${l}-error`]:{color:e.colorError,[`${l}-name, ${t}-icon ${n}`]:{color:e.colorError},[c]:{[`${n}, ${n}:hover`]:{color:e.colorError},[d]:{opacity:1}}},[`${t}-list-item-container`]:{transition:`opacity ${e.motionDurationSlow}, height ${e.motionDurationSlow}`,"&::before":{display:"table",width:0,height:0,content:'""'}}})}}},YX=e=>{const{componentCls:t}=e,n=new jn("uploadAnimateInlineIn",{from:{width:0,height:0,padding:0,opacity:0,margin:e.calc(e.marginXS).div(-2).equal()}}),r=new jn("uploadAnimateInlineOut",{to:{width:0,height:0,padding:0,opacity:0,margin:e.calc(e.marginXS).div(-2).equal()}}),a=`${t}-animate-inline`;return[{[`${t}-wrapper`]:{[`${a}-appear, ${a}-enter, ${a}-leave`]:{animationDuration:e.motionDurationSlow,animationTimingFunction:e.motionEaseInOutCirc,animationFillMode:"forwards"},[`${a}-appear, ${a}-enter`]:{animationName:n},[`${a}-leave`]:{animationName:r}}},{[`${t}-wrapper`]:Q3(e)},n,r]},GX=e=>{const{componentCls:t,iconCls:n,uploadThumbnailSize:r,uploadProgressOffset:a,calc:o}=e,l=`${t}-list`,c=`${l}-item`;return{[`${t}-wrapper`]:{[` + ${l}${l}-picture, + ${l}${l}-picture-card, + ${l}${l}-picture-circle + `]:{[c]:{position:"relative",height:o(r).add(o(e.lineWidth).mul(2)).add(o(e.paddingXS).mul(2)).equal(),padding:e.paddingXS,border:`${ne(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,borderRadius:e.borderRadiusLG,"&:hover":{background:"transparent"},[`${c}-thumbnail`]:Object.assign(Object.assign({},Oo),{width:r,height:r,lineHeight:ne(o(r).add(e.paddingSM).equal()),textAlign:"center",flex:"none",[n]:{fontSize:e.fontSizeHeading2,color:e.colorPrimary},img:{display:"block",width:"100%",height:"100%",overflow:"hidden"}}),[`${c}-progress`]:{bottom:a,width:`calc(100% - ${ne(o(e.paddingSM).mul(2).equal())})`,marginTop:0,paddingInlineStart:o(r).add(e.paddingXS).equal()}},[`${c}-error`]:{borderColor:e.colorError,[`${c}-thumbnail ${n}`]:{[`svg path[fill='${ac[0]}']`]:{fill:e.colorErrorBg},[`svg path[fill='${ac.primary}']`]:{fill:e.colorError}}},[`${c}-uploading`]:{borderStyle:"dashed",[`${c}-name`]:{marginBottom:a}}},[`${l}${l}-picture-circle ${c}`]:{[`&, &::before, ${c}-thumbnail`]:{borderRadius:"50%"}}}}},XX=e=>{const{componentCls:t,iconCls:n,fontSizeLG:r,colorTextLightSolid:a,calc:o}=e,l=`${t}-list`,c=`${l}-item`,d=e.uploadPicCardSize;return{[` + ${t}-wrapper${t}-picture-card-wrapper, + ${t}-wrapper${t}-picture-circle-wrapper + `]:Object.assign(Object.assign({},Uo()),{display:"block",[`${t}${t}-select`]:{width:d,height:d,textAlign:"center",verticalAlign:"top",backgroundColor:e.colorFillAlter,border:`${ne(e.lineWidth)} dashed ${e.colorBorder}`,borderRadius:e.borderRadiusLG,cursor:"pointer",transition:`border-color ${e.motionDurationSlow}`,[`> ${t}`]:{display:"flex",alignItems:"center",justifyContent:"center",height:"100%",textAlign:"center"},[`&:not(${t}-disabled):hover`]:{borderColor:e.colorPrimary}},[`${l}${l}-picture-card, ${l}${l}-picture-circle`]:{display:"flex",flexWrap:"wrap","@supports not (gap: 1px)":{"& > *":{marginBlockEnd:e.marginXS,marginInlineEnd:e.marginXS}},"@supports (gap: 1px)":{gap:e.marginXS},[`${l}-item-container`]:{display:"inline-block",width:d,height:d,verticalAlign:"top"},"&::after":{display:"none"},"&::before":{display:"none"},[c]:{height:"100%",margin:0,"&::before":{position:"absolute",zIndex:1,width:`calc(100% - ${ne(o(e.paddingXS).mul(2).equal())})`,height:`calc(100% - ${ne(o(e.paddingXS).mul(2).equal())})`,backgroundColor:e.colorBgMask,opacity:0,transition:`all ${e.motionDurationSlow}`,content:'" "'}},[`${c}:hover`]:{[`&::before, ${c}-actions`]:{opacity:1}},[`${c}-actions`]:{position:"absolute",insetInlineStart:0,zIndex:10,width:"100%",whiteSpace:"nowrap",textAlign:"center",opacity:0,transition:`all ${e.motionDurationSlow}`,[` + ${n}-eye, + ${n}-download, + ${n}-delete + `]:{zIndex:10,width:r,margin:`0 ${ne(e.marginXXS)}`,fontSize:r,cursor:"pointer",transition:`all ${e.motionDurationSlow}`,color:a,"&:hover":{color:a},svg:{verticalAlign:"baseline"}}},[`${c}-thumbnail, ${c}-thumbnail img`]:{position:"static",display:"block",width:"100%",height:"100%",objectFit:"contain"},[`${c}-name`]:{display:"none",textAlign:"center"},[`${c}-file + ${c}-name`]:{position:"absolute",bottom:e.margin,display:"block",width:`calc(100% - ${ne(o(e.paddingXS).mul(2).equal())})`},[`${c}-uploading`]:{[`&${c}`]:{backgroundColor:e.colorFillAlter},[`&::before, ${n}-eye, ${n}-download, ${n}-delete`]:{display:"none"}},[`${c}-progress`]:{bottom:e.marginXL,width:`calc(100% - ${ne(o(e.paddingXS).mul(2).equal())})`,paddingInlineStart:0}}}),[`${t}-wrapper${t}-picture-circle-wrapper`]:{[`${t}${t}-select`]:{borderRadius:"50%"}}}},QX=e=>{const{componentCls:t}=e;return{[`${t}-rtl`]:{direction:"rtl"}}},JX=e=>{const{componentCls:t,colorTextDisabled:n}=e;return{[`${t}-wrapper`]:Object.assign(Object.assign({},Ln(e)),{[t]:{outline:0,"input[type='file']":{cursor:"pointer"}},[`${t}-select`]:{display:"inline-block"},[`${t}-hidden`]:{display:"none"},[`${t}-disabled`]:{color:n,cursor:"not-allowed"}})}},ZX=e=>({actionsColor:e.colorTextDescription}),eQ=zn("Upload",e=>{const{fontSizeHeading3:t,fontHeight:n,lineWidth:r,controlHeightLG:a,calc:o}=e,l=$n(e,{uploadThumbnailSize:o(t).mul(2).equal(),uploadProgressOffset:o(o(n).div(2)).add(r).equal(),uploadPicCardSize:o(a).mul(2.55).equal()});return[JX(l),UX(l),GX(l),XX(l),qX(l),YX(l),QX(l),bp(l)]},ZX);function lm(e){return Object.assign(Object.assign({},e),{lastModified:e.lastModified,lastModifiedDate:e.lastModifiedDate,name:e.name,size:e.size,type:e.type,uid:e.uid,percent:0,originFileObj:e})}function sm(e,t){const n=Te(t),r=n.findIndex(a=>{let{uid:o}=a;return o===e.uid});return r===-1?n.push(e):n[r]=e,n}function iy(e,t){const n=e.uid!==void 0?"uid":"name";return t.filter(r=>r[n]===e[n])[0]}function tQ(e,t){const n=e.uid!==void 0?"uid":"name",r=t.filter(a=>a[n]!==e[n]);return r.length===t.length?null:r}const nQ=function(){const t=(arguments.length>0&&arguments[0]!==void 0?arguments[0]:"").split("/"),r=t[t.length-1].split(/#|\?/)[0];return(/\.[^./\\]*$/.exec(r)||[""])[0]},LP=e=>e.indexOf("image/")===0,rQ=e=>{if(e.type&&!e.thumbUrl)return LP(e.type);const t=e.thumbUrl||e.url||"",n=nQ(t);return/^data:image\//.test(t)||/(webp|svg|png|gif|jpg|jpeg|jfif|bmp|dpg|ico|heic|heif)$/i.test(n)?!0:!(/^data:/.test(t)||n)},Yi=200;function aQ(e){return new Promise(t=>{if(!e.type||!LP(e.type)){t("");return}const n=document.createElement("canvas");n.width=Yi,n.height=Yi,n.style.cssText=`position: fixed; left: 0; top: 0; width: ${Yi}px; height: ${Yi}px; z-index: 9999; display: none;`,document.body.appendChild(n);const r=n.getContext("2d"),a=new Image;if(a.onload=()=>{const{width:o,height:l}=a;let c=Yi,d=Yi,f=0,m=0;o>l?(d=l*(Yi/o),m=-(d-c)/2):(c=o*(Yi/l),f=-(c-d)/2),r.drawImage(a,f,m,c,d);const p=n.toDataURL();document.body.removeChild(n),window.URL.revokeObjectURL(a.src),t(p)},a.crossOrigin="anonymous",e.type.startsWith("image/svg+xml")){const o=new FileReader;o.onload=()=>{o.result&&typeof o.result=="string"&&(a.src=o.result)},o.readAsDataURL(e)}else if(e.type.startsWith("image/gif")){const o=new FileReader;o.onload=()=>{o.result&&t(o.result)},o.readAsDataURL(e)}else a.src=window.URL.createObjectURL(e)})}const oQ=i.forwardRef((e,t)=>{let{prefixCls:n,className:r,style:a,locale:o,listType:l,file:c,items:d,progress:f,iconRender:m,actionIconRender:p,itemRender:v,isImgUrl:h,showPreviewIcon:b,showRemoveIcon:x,showDownloadIcon:y,previewIcon:C,removeIcon:w,downloadIcon:E,extra:I,onPreview:_,onDownload:O,onClose:P}=e;var j,R;const{status:k}=c,[L,W]=i.useState(k);i.useEffect(()=>{k!=="removed"&&W(k)},[k]);const[B,F]=i.useState(!1);i.useEffect(()=>{const ae=setTimeout(()=>{F(!0)},300);return()=>{clearTimeout(ae)}},[]);const A=m(c);let T=i.createElement("div",{className:`${n}-icon`},A);if(l==="picture"||l==="picture-card"||l==="picture-circle")if(L==="uploading"||!c.thumbUrl&&!c.url){const ae=ce(`${n}-list-item-thumbnail`,{[`${n}-list-item-file`]:L!=="uploading"});T=i.createElement("div",{className:ae},A)}else{const ae=h!=null&&h(c)?i.createElement("img",{src:c.thumbUrl||c.url,alt:c.name,className:`${n}-list-item-image`,crossOrigin:c.crossOrigin}):A,ue=ce(`${n}-list-item-thumbnail`,{[`${n}-list-item-file`]:h&&!h(c)});T=i.createElement("a",{className:ue,onClick:pe=>_(c,pe),href:c.url||c.thumbUrl,target:"_blank",rel:"noopener noreferrer"},ae)}const M=ce(`${n}-list-item`,`${n}-list-item-${L}`),D=typeof c.linkProps=="string"?JSON.parse(c.linkProps):c.linkProps,V=(typeof x=="function"?x(c):x)?p((typeof w=="function"?w(c):w)||i.createElement(nU,null),()=>P(c),n,o.removeFile,!0):null,K=(typeof y=="function"?y(c):y)&&L==="done"?p((typeof E=="function"?E(c):E)||i.createElement(oU,null),()=>O(c),n,o.downloadFile):null,z=l!=="picture-card"&&l!=="picture-circle"&&i.createElement("span",{key:"download-delete",className:ce(`${n}-list-item-actions`,{picture:l==="picture"})},K,V),U=typeof I=="function"?I(c):I,Y=U&&i.createElement("span",{className:`${n}-list-item-extra`},U),q=ce(`${n}-list-item-name`),X=c.url?i.createElement("a",Object.assign({key:"view",target:"_blank",rel:"noopener noreferrer",className:q,title:c.name},D,{href:c.url,onClick:ae=>_(c,ae)}),c.name,Y):i.createElement("span",{key:"view",className:q,onClick:ae=>_(c,ae),title:c.name},c.name,Y),te=(typeof b=="function"?b(c):b)&&(c.url||c.thumbUrl)?i.createElement("a",{href:c.url||c.thumbUrl,target:"_blank",rel:"noopener noreferrer",onClick:ae=>_(c,ae),title:o.previewFile},typeof C=="function"?C(c):C||i.createElement(VR,null)):null,ee=(l==="picture-card"||l==="picture-circle")&&L!=="uploading"&&i.createElement("span",{className:`${n}-list-item-actions`},te,L==="done"&&K,V),{getPrefixCls:J}=i.useContext(Gt),ie=J(),de=i.createElement("div",{className:M},T,X,z,ee,B&&i.createElement(ko,{motionName:`${ie}-fade`,visible:L==="uploading",motionDeadline:2e3},ae=>{let{className:ue}=ae;const pe="percent"in c?i.createElement(HK,Object.assign({},f,{type:"line",percent:c.percent,"aria-label":c["aria-label"],"aria-labelledby":c["aria-labelledby"]})):null;return i.createElement("div",{className:ce(`${n}-list-item-progress`,ue)},pe)})),oe=c.response&&typeof c.response=="string"?c.response:((j=c.error)===null||j===void 0?void 0:j.statusText)||((R=c.error)===null||R===void 0?void 0:R.message)||o.uploadError,le=L==="error"?i.createElement(io,{title:oe,getPopupContainer:ae=>ae.parentNode},de):de;return i.createElement("div",{className:ce(`${n}-list-item-container`,r),style:a,ref:t},v?v(le,c,d,{download:O.bind(null,c),preview:_.bind(null,c),remove:P.bind(null,c)}):le)}),iQ=(e,t)=>{const{listType:n="text",previewFile:r=aQ,onPreview:a,onDownload:o,onRemove:l,locale:c,iconRender:d,isImageUrl:f=rQ,prefixCls:m,items:p=[],showPreviewIcon:v=!0,showRemoveIcon:h=!0,showDownloadIcon:b=!1,removeIcon:x,previewIcon:y,downloadIcon:C,extra:w,progress:E={size:[-1,2],showInfo:!1},appendAction:I,appendActionVisible:_=!0,itemRender:O,disabled:P}=e,j=_b(),[R,k]=i.useState(!1),L=["picture-card","picture-circle"].includes(n);i.useEffect(()=>{n.startsWith("picture")&&(p||[]).forEach(Y=>{!(Y.originFileObj instanceof File||Y.originFileObj instanceof Blob)||Y.thumbUrl!==void 0||(Y.thumbUrl="",r==null||r(Y.originFileObj).then(q=>{Y.thumbUrl=q||"",j()}))})},[n,p,r]),i.useEffect(()=>{k(!0)},[]);const W=(Y,q)=>{if(a)return q==null||q.preventDefault(),a(Y)},B=Y=>{typeof o=="function"?o(Y):Y.url&&window.open(Y.url)},F=Y=>{l==null||l(Y)},A=Y=>{if(d)return d(Y,n);const q=Y.status==="uploading";if(n.startsWith("picture")){const X=n==="picture"?i.createElement(Si,null):c.uploading,te=f!=null&&f(Y)?i.createElement(zU,null):i.createElement(gU,null);return q?X:te}return q?i.createElement(Si,null):i.createElement(FU,null)},T=(Y,q,X,te,ee)=>{const J={type:"text",size:"small",title:te,onClick:ie=>{var de,oe;q(),i.isValidElement(Y)&&((oe=(de=Y.props).onClick)===null||oe===void 0||oe.call(de,ie))},className:`${X}-list-item-action`};return ee&&(J.disabled=P),i.isValidElement(Y)?i.createElement(bn,Object.assign({},J,{icon:ia(Y,Object.assign(Object.assign({},Y.props),{onClick:()=>{}}))})):i.createElement(bn,Object.assign({},J),i.createElement("span",null,Y))};i.useImperativeHandle(t,()=>({handlePreview:W,handleDownload:B}));const{getPrefixCls:M}=i.useContext(Gt),D=M("upload",m),V=M(),K=ce(`${D}-list`,`${D}-list-${n}`),z=i.useMemo(()=>Qn(Gu(V),["onAppearEnd","onEnterEnd","onLeaveEnd"]),[V]),U=Object.assign(Object.assign({},L?{}:z),{motionDeadline:2e3,motionName:`${D}-${L?"animate-inline":"animate"}`,keys:Te(p.map(Y=>({key:Y.uid,file:Y}))),motionAppear:R});return i.createElement("div",{className:K},i.createElement(ib,Object.assign({},U,{component:!1}),Y=>{let{key:q,file:X,className:te,style:ee}=Y;return i.createElement(oQ,{key:q,locale:c,prefixCls:D,className:te,style:ee,file:X,items:p,progress:E,listType:n,isImgUrl:f,showPreviewIcon:v,showRemoveIcon:h,showDownloadIcon:b,removeIcon:x,previewIcon:y,downloadIcon:C,extra:w,iconRender:A,actionIconRender:T,itemRender:O,onPreview:W,onDownload:B,onClose:F})}),I&&i.createElement(ko,Object.assign({},U,{visible:_,forceRender:!0}),Y=>{let{className:q,style:X}=Y;return ia(I,te=>({className:ce(te.className,q),style:Object.assign(Object.assign(Object.assign({},X),{pointerEvents:q?"none":void 0}),te.style)}))}))},lQ=i.forwardRef(iQ);var sQ=function(e,t,n,r){function a(o){return o instanceof n?o:new n(function(l){l(o)})}return new(n||(n=Promise))(function(o,l){function c(m){try{f(r.next(m))}catch(p){l(p)}}function d(m){try{f(r.throw(m))}catch(p){l(p)}}function f(m){m.done?o(m.value):a(m.value).then(c,d)}f((r=r.apply(e,[])).next())})};const $u=`__LIST_IGNORE_${Date.now()}__`,cQ=(e,t)=>{const{fileList:n,defaultFileList:r,onRemove:a,showUploadList:o=!0,listType:l="text",onPreview:c,onDownload:d,onChange:f,onDrop:m,previewFile:p,disabled:v,locale:h,iconRender:b,isImageUrl:x,progress:y,prefixCls:C,className:w,type:E="select",children:I,style:_,itemRender:O,maxCount:P,data:j={},multiple:R=!1,hasControlInside:k=!0,action:L="",accept:W="",supportServerRender:B=!0,rootClassName:F}=e,A=i.useContext(ha),T=v??A,[M,D]=Hn(r||[],{value:n,postState:ye=>ye??[]}),[V,K]=i.useState("drop"),z=i.useRef(null),U=i.useRef(null);i.useMemo(()=>{const ye=Date.now();(n||[]).forEach((Ce,_e)=>{!Ce.uid&&!Object.isFrozen(Ce)&&(Ce.uid=`__AUTO__${ye}_${_e}__`)})},[n]);const Y=(ye,Ce,_e)=>{let he=Te(Ce),ke=!1;P===1?he=he.slice(-1):P&&(ke=he.length>P,he=he.slice(0,P)),_o.flushSync(()=>{D(he)});const tt={file:ye,fileList:he};_e&&(tt.event=_e),(!ke||ye.status==="removed"||he.some(Nt=>Nt.uid===ye.uid))&&_o.flushSync(()=>{f==null||f(tt)})},q=(ye,Ce)=>sQ(void 0,void 0,void 0,function*(){const{beforeUpload:_e,transformFile:he}=e;let ke=ye;if(_e){const tt=yield _e(ye,Ce);if(tt===!1)return!1;if(delete ye[$u],tt===$u)return Object.defineProperty(ye,$u,{value:!0,configurable:!0}),!1;typeof tt=="object"&&tt&&(ke=tt)}return he&&(ke=yield he(ke)),ke}),X=ye=>{const Ce=ye.filter(ke=>!ke.file[$u]);if(!Ce.length)return;const _e=Ce.map(ke=>lm(ke.file));let he=Te(M);_e.forEach(ke=>{he=sm(ke,he)}),_e.forEach((ke,tt)=>{let Nt=ke;if(Ce[tt].parsedFile)ke.status="uploading";else{const{originFileObj:Ht}=ke;let Ge;try{Ge=new File([Ht],Ht.name,{type:Ht.type})}catch{Ge=new Blob([Ht],{type:Ht.type}),Ge.name=Ht.name,Ge.lastModifiedDate=new Date,Ge.lastModified=new Date().getTime()}Ge.uid=ke.uid,Nt=Ge}Y(Nt,he)})},te=(ye,Ce,_e)=>{try{typeof ye=="string"&&(ye=JSON.parse(ye))}catch{}if(!iy(Ce,M))return;const he=lm(Ce);he.status="done",he.percent=100,he.response=ye,he.xhr=_e;const ke=sm(he,M);Y(he,ke)},ee=(ye,Ce)=>{if(!iy(Ce,M))return;const _e=lm(Ce);_e.status="uploading",_e.percent=ye.percent;const he=sm(_e,M);Y(_e,he,ye)},J=(ye,Ce,_e)=>{if(!iy(_e,M))return;const he=lm(_e);he.error=ye,he.response=Ce,he.status="error";const ke=sm(he,M);Y(he,ke)},ie=ye=>{let Ce;Promise.resolve(typeof a=="function"?a(ye):a).then(_e=>{var he;if(_e===!1)return;const ke=tQ(ye,M);ke&&(Ce=Object.assign(Object.assign({},ye),{status:"removed"}),M==null||M.forEach(tt=>{const Nt=Ce.uid!==void 0?"uid":"name";tt[Nt]===Ce[Nt]&&!Object.isFrozen(tt)&&(tt.status="removed")}),(he=z.current)===null||he===void 0||he.abort(Ce),Y(Ce,ke))})},de=ye=>{K(ye.type),ye.type==="drop"&&(m==null||m(ye))};i.useImperativeHandle(t,()=>({onBatchStart:X,onSuccess:te,onProgress:ee,onError:J,fileList:M,upload:z.current,nativeElement:U.current}));const{getPrefixCls:oe,direction:le,upload:ae}=i.useContext(Gt),ue=oe("upload",C),pe=Object.assign(Object.assign({onBatchStart:X,onError:J,onProgress:ee,onSuccess:te},e),{data:j,multiple:R,action:L,accept:W,supportServerRender:B,prefixCls:ue,disabled:T,beforeUpload:q,onChange:void 0,hasControlInside:k});delete pe.className,delete pe.style,(!I||T)&&delete pe.id;const fe=`${ue}-wrapper`,[xe,Ee,Le]=eQ(ue,fe),[Ne]=$i("Upload",bi.Upload),{showRemoveIcon:ge,showPreviewIcon:we,showDownloadIcon:Se,removeIcon:Re,previewIcon:De,downloadIcon:Me,extra:Ye}=typeof o=="boolean"?{}:o,qe=typeof ge>"u"?!T:ge,He=(ye,Ce)=>o?i.createElement(lQ,{prefixCls:ue,listType:l,items:M,previewFile:p,onPreview:c,onDownload:d,onRemove:ie,showRemoveIcon:qe,showPreviewIcon:we,showDownloadIcon:Se,removeIcon:Re,previewIcon:De,downloadIcon:Me,iconRender:b,extra:Ye,locale:Object.assign(Object.assign({},Ne),h),isImageUrl:x,progress:y,appendAction:ye,appendActionVisible:Ce,itemRender:O,disabled:T}):ye,ze=ce(fe,w,F,Ee,Le,ae==null?void 0:ae.className,{[`${ue}-rtl`]:le==="rtl",[`${ue}-picture-card-wrapper`]:l==="picture-card",[`${ue}-picture-circle-wrapper`]:l==="picture-circle"}),Ae=Object.assign(Object.assign({},ae==null?void 0:ae.style),_);if(E==="drag"){const ye=ce(Ee,ue,`${ue}-drag`,{[`${ue}-drag-uploading`]:M.some(Ce=>Ce.status==="uploading"),[`${ue}-drag-hover`]:V==="dragover",[`${ue}-disabled`]:T,[`${ue}-rtl`]:le==="rtl"});return xe(i.createElement("span",{className:ze,ref:U},i.createElement("div",{className:ye,style:Ae,onDrop:de,onDragOver:de,onDragLeave:de},i.createElement(M0,Object.assign({},pe,{ref:z,className:`${ue}-btn`}),i.createElement("div",{className:`${ue}-drag-container`},I))),He()))}const Ie=ce(ue,`${ue}-select`,{[`${ue}-disabled`]:T,[`${ue}-hidden`]:!I}),Ve=i.createElement("div",{className:Ie},i.createElement(M0,Object.assign({},pe,{ref:z})));return xe(l==="picture-card"||l==="picture-circle"?i.createElement("span",{className:ze,ref:U},He(Ve,!!I)):i.createElement("span",{className:ze,ref:U},Ve,He()))},AP=i.forwardRef(cQ);var uQ=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 a=0,r=Object.getOwnPropertySymbols(e);a{var{style:n,height:r,hasControlInside:a=!1}=e,o=uQ(e,["style","height","hasControlInside"]);return i.createElement(AP,Object.assign({ref:t,hasControlInside:a},o,{type:"drag",style:Object.assign(Object.assign({},n),{height:r})}))}),sa=AP;sa.Dragger=dQ;sa.LIST_IGNORE=$u;/** + * @remix-run/router v1.23.0 + * + * Copyright (c) Remix Software Inc. + * + * This source code is licensed under the MIT license found in the + * LICENSE.md file in the root directory of this source tree. + * + * @license MIT + */function od(){return od=Object.assign?Object.assign.bind():function(e){for(var t=1;t"u")throw new Error(t)}function zP(e,t){if(!e){typeof console<"u"&&console.warn(t);try{throw new Error(t)}catch{}}}function mQ(){return Math.random().toString(36).substr(2,8)}function u_(e,t){return{usr:e.state,key:e.key,idx:t}}function T0(e,t,n,r){return n===void 0&&(n=null),od({pathname:typeof e=="string"?e:e.pathname,search:"",hash:""},typeof t=="string"?$c(t):t,{state:n,key:t&&t.key||r||mQ()})}function op(e){let{pathname:t="/",search:n="",hash:r=""}=e;return n&&n!=="?"&&(t+=n.charAt(0)==="?"?n:"?"+n),r&&r!=="#"&&(t+=r.charAt(0)==="#"?r:"#"+r),t}function $c(e){let t={};if(e){let n=e.indexOf("#");n>=0&&(t.hash=e.substr(n),e=e.substr(0,n));let r=e.indexOf("?");r>=0&&(t.search=e.substr(r),e=e.substr(0,r)),e&&(t.pathname=e)}return t}function pQ(e,t,n,r){r===void 0&&(r={});let{window:a=document.defaultView,v5Compat:o=!1}=r,l=a.history,c=tl.Pop,d=null,f=m();f==null&&(f=0,l.replaceState(od({},l.state,{idx:f}),""));function m(){return(l.state||{idx:null}).idx}function p(){c=tl.Pop;let y=m(),C=y==null?null:y-f;f=y,d&&d({action:c,location:x.location,delta:C})}function v(y,C){c=tl.Push;let w=T0(x.location,y,C);f=m()+1;let E=u_(w,f),I=x.createHref(w);try{l.pushState(E,"",I)}catch(_){if(_ instanceof DOMException&&_.name==="DataCloneError")throw _;a.location.assign(I)}o&&d&&d({action:c,location:x.location,delta:1})}function h(y,C){c=tl.Replace;let w=T0(x.location,y,C);f=m();let E=u_(w,f),I=x.createHref(w);l.replaceState(E,"",I),o&&d&&d({action:c,location:x.location,delta:0})}function b(y){let C=a.location.origin!=="null"?a.location.origin:a.location.href,w=typeof y=="string"?y:op(y);return w=w.replace(/ $/,"%20"),kr(C,"No window.location.(origin|href) available to create URL for href: "+w),new URL(w,C)}let x={get action(){return c},get location(){return e(a,l)},listen(y){if(d)throw new Error("A history only accepts one active listener");return a.addEventListener(c_,p),d=y,()=>{a.removeEventListener(c_,p),d=null}},createHref(y){return t(a,y)},createURL:b,encodeLocation(y){let C=b(y);return{pathname:C.pathname,search:C.search,hash:C.hash}},push:v,replace:h,go(y){return l.go(y)}};return x}var d_;(function(e){e.data="data",e.deferred="deferred",e.redirect="redirect",e.error="error"})(d_||(d_={}));function vQ(e,t,n){return n===void 0&&(n="/"),gQ(e,t,n)}function gQ(e,t,n,r){let a=typeof t=="string"?$c(t):t,o=wx(a.pathname||"/",n);if(o==null)return null;let l=BP(e);hQ(l);let c=null;for(let d=0;c==null&&d{let d={relativePath:c===void 0?o.path||"":c,caseSensitive:o.caseSensitive===!0,childrenIndex:l,route:o};d.relativePath.startsWith("/")&&(kr(d.relativePath.startsWith(r),'Absolute route path "'+d.relativePath+'" nested under path '+('"'+r+'" is not valid. An absolute child route path ')+"must start with the combined path of all its parent routes."),d.relativePath=d.relativePath.slice(r.length));let f=il([r,d.relativePath]),m=n.concat(d);o.children&&o.children.length>0&&(kr(o.index!==!0,"Index routes must not have child routes. Please remove "+('all child routes from route path "'+f+'".')),BP(o.children,t,m,f)),!(o.path==null&&!o.index)&&t.push({path:f,score:$Q(f,o.index),routesMeta:m})};return e.forEach((o,l)=>{var c;if(o.path===""||!((c=o.path)!=null&&c.includes("?")))a(o,l);else for(let d of HP(o.path))a(o,l,d)}),t}function HP(e){let t=e.split("/");if(t.length===0)return[];let[n,...r]=t,a=n.endsWith("?"),o=n.replace(/\?$/,"");if(r.length===0)return a?[o,""]:[o];let l=HP(r.join("/")),c=[];return c.push(...l.map(d=>d===""?o:[o,d].join("/"))),a&&c.push(...l),c.map(d=>e.startsWith("/")&&d===""?"/":d)}function hQ(e){e.sort((t,n)=>t.score!==n.score?n.score-t.score:EQ(t.routesMeta.map(r=>r.childrenIndex),n.routesMeta.map(r=>r.childrenIndex)))}const yQ=/^:[\w-]+$/,bQ=3,xQ=2,SQ=1,CQ=10,wQ=-2,f_=e=>e==="*";function $Q(e,t){let n=e.split("/"),r=n.length;return n.some(f_)&&(r+=wQ),t&&(r+=xQ),n.filter(a=>!f_(a)).reduce((a,o)=>a+(yQ.test(o)?bQ:o===""?SQ:CQ),r)}function EQ(e,t){return e.length===t.length&&e.slice(0,-1).every((r,a)=>r===t[a])?e[e.length-1]-t[t.length-1]:0}function _Q(e,t,n){let{routesMeta:r}=e,a={},o="/",l=[];for(let c=0;c{let{paramName:v,isOptional:h}=m;if(v==="*"){let x=c[p]||"";l=o.slice(0,o.length-x.length).replace(/(.)\/+$/,"$1")}const b=c[p];return h&&!b?f[v]=void 0:f[v]=(b||"").replace(/%2F/g,"/"),f},{}),pathname:o,pathnameBase:l,pattern:e}}function OQ(e,t,n){t===void 0&&(t=!1),n===void 0&&(n=!0),zP(e==="*"||!e.endsWith("*")||e.endsWith("/*"),'Route path "'+e+'" will be treated as if it were '+('"'+e.replace(/\*$/,"/*")+'" because the `*` character must ')+"always follow a `/` in the pattern. To get rid of this warning, "+('please change the route path to "'+e.replace(/\*$/,"/*")+'".'));let r=[],a="^"+e.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^${}|()[\]]/g,"\\$&").replace(/\/:([\w-]+)(\?)?/g,(l,c,d)=>(r.push({paramName:c,isOptional:d!=null}),d?"/?([^\\/]+)?":"/([^\\/]+)"));return e.endsWith("*")?(r.push({paramName:"*"}),a+=e==="*"||e==="/*"?"(.*)$":"(?:\\/(.+)|\\/*)$"):n?a+="\\/*$":e!==""&&e!=="/"&&(a+="(?:(?=\\/|$))"),[new RegExp(a,t?void 0:"i"),r]}function RQ(e){try{return e.split("/").map(t=>decodeURIComponent(t).replace(/\//g,"%2F")).join("/")}catch(t){return zP(!1,'The URL path "'+e+'" could not be decoded because it is is a malformed URL segment. This is probably due to a bad percent '+("encoding ("+t+").")),e}}function wx(e,t){if(t==="/")return e;if(!e.toLowerCase().startsWith(t.toLowerCase()))return null;let n=t.endsWith("/")?t.length-1:t.length,r=e.charAt(n);return r&&r!=="/"?null:e.slice(n)||"/"}function PQ(e,t){t===void 0&&(t="/");let{pathname:n,search:r="",hash:a=""}=typeof e=="string"?$c(e):e;return{pathname:n?n.startsWith("/")?n:NQ(n,t):t,search:MQ(r),hash:TQ(a)}}function NQ(e,t){let n=t.replace(/\/+$/,"").split("/");return e.split("/").forEach(a=>{a===".."?n.length>1&&n.pop():a!=="."&&n.push(a)}),n.length>1?n.join("/"):"/"}function ly(e,t,n,r){return"Cannot include a '"+e+"' character in a manually specified "+("`to."+t+"` field ["+JSON.stringify(r)+"]. Please separate it out to the ")+("`to."+n+"` field. Alternatively you may provide the full path as ")+'a string in and the router will parse it for you.'}function jQ(e){return e.filter((t,n)=>n===0||t.route.path&&t.route.path.length>0)}function $x(e,t){let n=jQ(e);return t?n.map((r,a)=>a===n.length-1?r.pathname:r.pathnameBase):n.map(r=>r.pathnameBase)}function Ex(e,t,n,r){r===void 0&&(r=!1);let a;typeof e=="string"?a=$c(e):(a=od({},e),kr(!a.pathname||!a.pathname.includes("?"),ly("?","pathname","search",a)),kr(!a.pathname||!a.pathname.includes("#"),ly("#","pathname","hash",a)),kr(!a.search||!a.search.includes("#"),ly("#","search","hash",a)));let o=e===""||a.pathname==="",l=o?"/":a.pathname,c;if(l==null)c=n;else{let p=t.length-1;if(!r&&l.startsWith("..")){let v=l.split("/");for(;v[0]==="..";)v.shift(),p-=1;a.pathname=v.join("/")}c=p>=0?t[p]:"/"}let d=PQ(a,c),f=l&&l!=="/"&&l.endsWith("/"),m=(o||l===".")&&n.endsWith("/");return!d.pathname.endsWith("/")&&(f||m)&&(d.pathname+="/"),d}const il=e=>e.join("/").replace(/\/\/+/g,"/"),kQ=e=>e.replace(/\/+$/,"").replace(/^\/*/,"/"),MQ=e=>!e||e==="?"?"":e.startsWith("?")?e:"?"+e,TQ=e=>!e||e==="#"?"":e.startsWith("#")?e:"#"+e;function DQ(e){return e!=null&&typeof e.status=="number"&&typeof e.statusText=="string"&&typeof e.internal=="boolean"&&"data"in e}const VP=["post","put","patch","delete"];new Set(VP);const FQ=["get",...VP];new Set(FQ);/** + * React Router v6.30.0 + * + * Copyright (c) Remix Software Inc. + * + * This source code is licensed under the MIT license found in the + * LICENSE.md file in the root directory of this source tree. + * + * @license MIT + */function id(){return id=Object.assign?Object.assign.bind():function(e){for(var t=1;t{c.current=!0}),i.useCallback(function(f,m){if(m===void 0&&(m={}),!c.current)return;if(typeof f=="number"){r.go(f);return}let p=Ex(f,JSON.parse(l),o,m.relative==="path");e==null&&t!=="/"&&(p.pathname=p.pathname==="/"?t:il([t,p.pathname])),(m.replace?r.replace:r.push)(p,m.state,m)},[t,r,l,o,e])}const BQ=i.createContext(null);function HQ(e){let t=i.useContext(Ii).outlet;return t&&i.createElement(BQ.Provider,{value:e},t)}function UP(e,t){let{relative:n}=t===void 0?{}:t,{future:r}=i.useContext(gl),{matches:a}=i.useContext(Ii),{pathname:o}=Pd(),l=JSON.stringify($x(a,r.v7_relativeSplatPath));return i.useMemo(()=>Ex(e,JSON.parse(l),o,n==="path"),[e,l,o,n])}function VQ(e,t){return WQ(e,t)}function WQ(e,t,n,r){Ec()||kr(!1);let{navigator:a,static:o}=i.useContext(gl),{matches:l}=i.useContext(Ii),c=l[l.length-1],d=c?c.params:{};c&&c.pathname;let f=c?c.pathnameBase:"/";c&&c.route;let m=Pd(),p;if(t){var v;let C=typeof t=="string"?$c(t):t;f==="/"||(v=C.pathname)!=null&&v.startsWith(f)||kr(!1),p=C}else p=m;let h=p.pathname||"/",b=h;if(f!=="/"){let C=f.replace(/^\//,"").split("/");b="/"+h.replace(/^\//,"").split("/").slice(C.length).join("/")}let x=vQ(e,{pathname:b}),y=GQ(x&&x.map(C=>Object.assign({},C,{params:Object.assign({},d,C.params),pathname:il([f,a.encodeLocation?a.encodeLocation(C.pathname).pathname:C.pathname]),pathnameBase:C.pathnameBase==="/"?f:il([f,a.encodeLocation?a.encodeLocation(C.pathnameBase).pathname:C.pathnameBase])})),l,n,r);return t&&y?i.createElement(av.Provider,{value:{location:id({pathname:"/",search:"",hash:"",state:null,key:"default"},p),navigationType:tl.Pop}},y):y}function KQ(){let e=ZQ(),t=DQ(e)?e.status+" "+e.statusText:e instanceof Error?e.message:JSON.stringify(e),n=e instanceof Error?e.stack:null,a={padding:"0.5rem",backgroundColor:"rgba(200,200,200, 0.5)"};return i.createElement(i.Fragment,null,i.createElement("h2",null,"Unexpected Application Error!"),i.createElement("h3",{style:{fontStyle:"italic"}},t),n?i.createElement("pre",{style:a},n):null,null)}const UQ=i.createElement(KQ,null);class qQ extends i.Component{constructor(t){super(t),this.state={location:t.location,revalidation:t.revalidation,error:t.error}}static getDerivedStateFromError(t){return{error:t}}static getDerivedStateFromProps(t,n){return n.location!==t.location||n.revalidation!=="idle"&&t.revalidation==="idle"?{error:t.error,location:t.location,revalidation:t.revalidation}:{error:t.error!==void 0?t.error:n.error,location:n.location,revalidation:t.revalidation||n.revalidation}}componentDidCatch(t,n){console.error("React Router caught the following error during render",t,n)}render(){return this.state.error!==void 0?i.createElement(Ii.Provider,{value:this.props.routeContext},i.createElement(WP.Provider,{value:this.state.error,children:this.props.component})):this.props.children}}function YQ(e){let{routeContext:t,match:n,children:r}=e,a=i.useContext(_x);return a&&a.static&&a.staticContext&&(n.route.errorElement||n.route.ErrorBoundary)&&(a.staticContext._deepestRenderedBoundaryId=n.route.id),i.createElement(Ii.Provider,{value:t},r)}function GQ(e,t,n,r){var a;if(t===void 0&&(t=[]),n===void 0&&(n=null),r===void 0&&(r=null),e==null){var o;if(!n)return null;if(n.errors)e=n.matches;else if((o=r)!=null&&o.v7_partialHydration&&t.length===0&&!n.initialized&&n.matches.length>0)e=n.matches;else return null}let l=e,c=(a=n)==null?void 0:a.errors;if(c!=null){let m=l.findIndex(p=>p.route.id&&(c==null?void 0:c[p.route.id])!==void 0);m>=0||kr(!1),l=l.slice(0,Math.min(l.length,m+1))}let d=!1,f=-1;if(n&&r&&r.v7_partialHydration)for(let m=0;m=0?l=l.slice(0,f+1):l=[l[0]];break}}}return l.reduceRight((m,p,v)=>{let h,b=!1,x=null,y=null;n&&(h=c&&p.route.id?c[p.route.id]:void 0,x=p.route.errorElement||UQ,d&&(f<0&&v===0?(tJ("route-fallback"),b=!0,y=null):f===v&&(b=!0,y=p.route.hydrateFallbackElement||null)));let C=t.concat(l.slice(0,v+1)),w=()=>{let E;return h?E=x:b?E=y:p.route.Component?E=i.createElement(p.route.Component,null):p.route.element?E=p.route.element:E=m,i.createElement(YQ,{match:p,routeContext:{outlet:m,matches:C,isDataRoute:n!=null},children:E})};return n&&(p.route.ErrorBoundary||p.route.errorElement||v===0)?i.createElement(qQ,{location:n.location,revalidation:n.revalidation,component:x,error:h,children:w(),routeContext:{outlet:null,matches:C,isDataRoute:!0}}):w()},null)}var qP=function(e){return e.UseBlocker="useBlocker",e.UseRevalidator="useRevalidator",e.UseNavigateStable="useNavigate",e}(qP||{}),YP=function(e){return e.UseBlocker="useBlocker",e.UseLoaderData="useLoaderData",e.UseActionData="useActionData",e.UseRouteError="useRouteError",e.UseNavigation="useNavigation",e.UseRouteLoaderData="useRouteLoaderData",e.UseMatches="useMatches",e.UseRevalidator="useRevalidator",e.UseNavigateStable="useNavigate",e.UseRouteId="useRouteId",e}(YP||{});function XQ(e){let t=i.useContext(_x);return t||kr(!1),t}function QQ(e){let t=i.useContext(LQ);return t||kr(!1),t}function JQ(e){let t=i.useContext(Ii);return t||kr(!1),t}function GP(e){let t=JQ(),n=t.matches[t.matches.length-1];return n.route.id||kr(!1),n.route.id}function ZQ(){var e;let t=i.useContext(WP),n=QQ(),r=GP();return t!==void 0?t:(e=n.errors)==null?void 0:e[r]}function eJ(){let{router:e}=XQ(qP.UseNavigateStable),t=GP(YP.UseNavigateStable),n=i.useRef(!1);return KP(()=>{n.current=!0}),i.useCallback(function(a,o){o===void 0&&(o={}),n.current&&(typeof a=="number"?e.navigate(a):e.navigate(a,id({fromRouteId:t},o)))},[e,t])}const m_={};function tJ(e,t,n){m_[e]||(m_[e]=!0)}function nJ(e,t){e==null||e.v7_startTransition,e==null||e.v7_relativeSplatPath}function rJ(e){let{to:t,replace:n,state:r,relative:a}=e;Ec()||kr(!1);let{future:o,static:l}=i.useContext(gl),{matches:c}=i.useContext(Ii),{pathname:d}=Pd(),f=ov(),m=Ex(t,$x(c,o.v7_relativeSplatPath),d,a==="path"),p=JSON.stringify(m);return i.useEffect(()=>f(JSON.parse(p),{replace:n,state:r,relative:a}),[f,p,a,n,r]),null}function aJ(e){return HQ(e.context)}function tn(e){kr(!1)}function oJ(e){let{basename:t="/",children:n=null,location:r,navigationType:a=tl.Pop,navigator:o,static:l=!1,future:c}=e;Ec()&&kr(!1);let d=t.replace(/^\/*/,"/"),f=i.useMemo(()=>({basename:d,navigator:o,static:l,future:id({v7_relativeSplatPath:!1},c)}),[d,c,o,l]);typeof r=="string"&&(r=$c(r));let{pathname:m="/",search:p="",hash:v="",state:h=null,key:b="default"}=r,x=i.useMemo(()=>{let y=wx(m,d);return y==null?null:{location:{pathname:y,search:p,hash:v,state:h,key:b},navigationType:a}},[d,m,p,v,h,b,a]);return x==null?null:i.createElement(gl.Provider,{value:f},i.createElement(av.Provider,{children:n,value:x}))}function iJ(e){let{children:t,location:n}=e;return VQ(D0(t),n)}new Promise(()=>{});function D0(e,t){t===void 0&&(t=[]);let n=[];return i.Children.forEach(e,(r,a)=>{if(!i.isValidElement(r))return;let o=[...t,a];if(r.type===i.Fragment){n.push.apply(n,D0(r.props.children,o));return}r.type!==tn&&kr(!1),!r.props.index||!r.props.children||kr(!1);let l={id:r.props.id||o.join("-"),caseSensitive:r.props.caseSensitive,element:r.props.element,Component:r.props.Component,index:r.props.index,path:r.props.path,loader:r.props.loader,action:r.props.action,errorElement:r.props.errorElement,ErrorBoundary:r.props.ErrorBoundary,hasErrorBoundary:r.props.ErrorBoundary!=null||r.props.errorElement!=null,shouldRevalidate:r.props.shouldRevalidate,handle:r.props.handle,lazy:r.props.lazy};r.props.children&&(l.children=D0(r.props.children,o)),n.push(l)}),n}/** + * React Router DOM v6.30.0 + * + * Copyright (c) Remix Software Inc. + * + * This source code is licensed under the MIT license found in the + * LICENSE.md file in the root directory of this source tree. + * + * @license MIT + */function F0(){return F0=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0)&&(n[a]=e[a]);return n}function sJ(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}function cJ(e,t){return e.button===0&&(!t||t==="_self")&&!sJ(e)}const uJ=["onClick","relative","reloadDocument","replace","state","target","to","preventScrollReset","viewTransition"],dJ="6";try{window.__reactRouterVersion=dJ}catch{}const fJ="startTransition",p_=dd[fJ];function mJ(e){let{basename:t,children:n,future:r,window:a}=e,o=i.useRef();o.current==null&&(o.current=fQ({window:a,v5Compat:!0}));let l=o.current,[c,d]=i.useState({action:l.action,location:l.location}),{v7_startTransition:f}=r||{},m=i.useCallback(p=>{f&&p_?p_(()=>d(p)):d(p)},[d,f]);return i.useLayoutEffect(()=>l.listen(m),[l,m]),i.useEffect(()=>nJ(r),[r]),i.createElement(oJ,{basename:t,children:n,location:c.location,navigationType:c.action,navigator:l,future:r})}const pJ=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u",vJ=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,gJ=i.forwardRef(function(t,n){let{onClick:r,relative:a,reloadDocument:o,replace:l,state:c,target:d,to:f,preventScrollReset:m,viewTransition:p}=t,v=lJ(t,uJ),{basename:h}=i.useContext(gl),b,x=!1;if(typeof f=="string"&&vJ.test(f)&&(b=f,pJ))try{let E=new URL(window.location.href),I=f.startsWith("//")?new URL(E.protocol+f):new URL(f),_=wx(I.pathname,h);I.origin===E.origin&&_!=null?f=_+I.search+I.hash:x=!0}catch{}let y=AQ(f,{relative:a}),C=hJ(f,{replace:l,state:c,target:d,preventScrollReset:m,relative:a,viewTransition:p});function w(E){r&&r(E),E.defaultPrevented||C(E)}return i.createElement("a",F0({},v,{href:b||y,onClick:x||o?r:w,ref:n,target:d}))});var v_;(function(e){e.UseScrollRestoration="useScrollRestoration",e.UseSubmit="useSubmit",e.UseSubmitFetcher="useSubmitFetcher",e.UseFetcher="useFetcher",e.useViewTransitionState="useViewTransitionState"})(v_||(v_={}));var g_;(function(e){e.UseFetcher="useFetcher",e.UseFetchers="useFetchers",e.UseScrollRestoration="useScrollRestoration"})(g_||(g_={}));function hJ(e,t){let{target:n,replace:r,state:a,preventScrollReset:o,relative:l,viewTransition:c}=t===void 0?{}:t,d=ov(),f=Pd(),m=UP(e,{relative:l});return i.useCallback(p=>{if(cJ(p,n)){p.preventDefault();let v=r!==void 0?r:op(f)===op(m);d(e,{replace:v,state:a,preventScrollReset:o,relative:l,viewTransition:c})}},[f,d,m,r,a,n,e,o,l,c])}const XP=i.createContext(void 0),yJ=({children:e})=>{const[t,n]=i.useState(null),[r,a]=i.useState(""),o=async()=>{try{const c=r+"/ui/login_flow";window.location.href=c}catch(c){console.error("Login error:",c)}},l=()=>{n(null);const c=r+"/ui/logout";window.location.href=c};return S.jsx(XP.Provider,{value:{serverUrl:r,setServerUrl:a,idToken:t,setIdToken:n,login:o,logout:l},children:e})},Bn=()=>{const e=i.useContext(XP);if(!e)throw new Error("useAuth must be used within an AuthProvider");return e},bJ=async e=>{try{const t=e+"/ui/token",n=await fetch(t,{method:"GET",credentials:"include"});if(!n.ok)throw new Error("Failed to fetch token");return(await n.json()).id_token}catch(t){return console.error(t),null}},xJ=async e=>{try{const t=e+"/ui/auth_method",n=await fetch(t,{method:"GET",credentials:"include"});if(!n.ok)throw new Error("Failed to fetch auth method");return(await n.json()).auth_method}catch(t){return console.error(t),"None"}},ir=async(e,t,n)=>{const r=n+"/kmip/2_1",a=await fetch(r,{method:"POST",credentials:"include",headers:{"Content-Type":"application/json",...t&&{Authorization:`Bearer ${t}`}},body:JSON.stringify(e)});if(!a.ok){const o=await a.text();throw new Error(`${a.status}: ${o}`)}return JSON.stringify(await a.json())},QP=async(e,t,n,r)=>{const a=r+e,o=await fetch(a,{method:"POST",credentials:"include",headers:{"Content-Type":"application/json",...n&&{Authorization:`Bearer ${n}`}},body:JSON.stringify(t)});if(!o.ok){const l=await o.text();throw new Error(`${o.status}: ${l}`)}return await o.json()},iv=async(e,t,n)=>{const r=n+e,a=await fetch(r,{method:"GET",credentials:"include",headers:{...t&&{Authorization:`Bearer ${t}`}}});if(!a.ok){const o=await a.text();throw new Error(`${a.status}: ${o}`)}return await a.json()},os=(e,t,n)=>{const r=new Blob([e],{type:n}),a=URL.createObjectURL(r),o=document.createElement("a");o.href=a,o.download=t,document.body.appendChild(o),o.click(),document.body.removeChild(o),URL.revokeObjectURL(a)},Nd=(e,t,n)=>{let r;if(n==="application/pdf"){let o="";const l=new Uint8Array(e),c=l.byteLength;for(let f=0;f{a.click(),document.body.removeChild(a)},66),setTimeout(()=>URL.revokeObjectURL(r),1e3)},jd=e=>{var r;const t=((r=e.split(".").pop())==null?void 0:r.toLowerCase())||"";return{pdf:"application/pdf",txt:"text/plain",csv:"text/csv",json:"application/json",xml:"application/xml",png:"image/png",jpg:"image/jpeg",jpeg:"image/jpeg",gif:"image/gif",mp4:"video/mp4",mp3:"audio/mpeg",zip:"application/zip",tar:"application/x-tar",rar:"application/vnd.rar"}[t]||"application/octet-stream"},SJ=[{label:"Create",value:"create"},{label:"Get",value:"get"},{label:"Encrypt",value:"encrypt"},{label:"Decrypt",value:"decrypt"},{label:"Import",value:"import"},{label:"Revoke",value:"revoke"},{label:"Locate",value:"locate"},{label:"Rekey",value:"rekey"},{label:"Destroy",value:"destroy"}],CJ=()=>{const[e]=me.useForm(),[t,n]=i.useState(void 0),[r,a]=i.useState(!1),{idToken:o,serverUrl:l}=Bn(),c=i.useRef(null);i.useEffect(()=>{t&&c.current&&c.current.scrollIntoView({behavior:"smooth"})},[t]);const d=async f=>{a(!0),n(void 0);try{const m=await QP("/access/grant",f,o,l);n(m.success)}catch(m){n(`Error granting access: ${m}`),console.error("Error granting access:",m)}finally{a(!1)}};return S.jsxs("div",{className:"p-6",children:[S.jsx("h1",{className:"text-2xl font-bold mb-6",children:"Grant access rights"}),S.jsxs("div",{className:"mb-8 space-y-2",children:[S.jsx("p",{children:"Grant access rights to another user for specific KMIP operations on an object."}),S.jsx("p",{children:"This action can only be performed by the owner of the object."})]}),S.jsx(me,{form:e,onFinish:d,layout:"vertical",children:S.jsxs(An,{direction:"vertical",size:"middle",style:{display:"flex"},children:[S.jsxs(Je,{children:[S.jsx(me.Item,{name:"user_id",label:"User Identifier",rules:[{required:!0,message:"Please enter the user identifier"}],help:"The user to grant access to",children:S.jsx(St,{placeholder:"Enter user identifier"})}),S.jsx(me.Item,{name:"unique_identifier",label:"Object UID",rules:[{required:!0,message:"Please enter the object UID"}],help:"The unique identifier of the object stored in the KMS",children:S.jsx(St,{placeholder:"Enter object UID"})}),S.jsx(me.Item,{name:"operation_types",label:"KMIP Operations",rules:[{required:!0,message:"Please select at least one operation"}],help:"Select one or more operations to grant access to",children:S.jsx(jt,{mode:"multiple",options:SJ,placeholder:"Select operations"})})]}),S.jsx(me.Item,{children:S.jsx(bn,{type:"primary",htmlType:"submit",loading:r,className:"w-full text-white font-medium",children:"Grant Access"})})]})}),t&&S.jsx("div",{ref:c,children:S.jsx(Je,{title:"Grant access response",children:t})})]})},wJ=()=>{const[e]=me.useForm(),[t,n]=i.useState([]),[r,a]=i.useState(!1),[o,l]=i.useState(void 0),{idToken:c,serverUrl:d}=Bn(),f=i.useRef(null);i.useEffect(()=>{o&&f.current&&f.current.scrollIntoView({behavior:"smooth"})},[o]);const m=async v=>{a(!0),l(void 0),n([]);try{const h=await iv(`/access/list/${v.unique_identifier}`,c,d);h.length?n(h):l("Empty result - no access granted.")}catch(h){l(`Error listing access right: ${h}`),console.error("Error listing access right:",h)}finally{a(!1)}},p=[{title:"User",dataIndex:"user_id",key:"user_id"},{title:"Granted Operations",dataIndex:"operations",key:"operations",render:v=>v.join(", ")}];return S.jsxs("div",{className:"p-6",children:[S.jsx("h1",{className:"text-2xl font-bold mb-6",children:"List an object access rights"}),S.jsxs("div",{className:"mb-8 space-y-2",children:[S.jsx("p",{children:"View all access rights granted on an object."}),S.jsx("p",{children:"This action can only be performed by the owner of the object."})]}),S.jsx(me,{form:e,onFinish:m,layout:"vertical",children:S.jsxs(An,{direction:"vertical",size:"middle",style:{display:"flex"},children:[S.jsx(Je,{children:S.jsx(me.Item,{name:"unique_identifier",label:"Object UID",rules:[{required:!0,message:"Please enter the object UID"}],help:"The unique identifier of the object stored in the KMS",children:S.jsx(St,{placeholder:"Enter object UID"})})}),S.jsx(me.Item,{children:S.jsx(bn,{type:"primary",htmlType:"submit",loading:r,className:"w-full text-white font-medium",children:"List Access Rights"})})]})}),o&&S.jsx("div",{ref:f,children:S.jsx(Je,{title:"List access response",children:o})}),t.length>0&&S.jsx("div",{className:"mt-8",ref:f,children:S.jsx(Je,{title:"Access Rights",children:S.jsx(To,{dataSource:t,columns:p,rowKey:"user_id",pagination:!1})})})]})},$J=()=>{const[e,t]=i.useState(!1),[n,r]=i.useState([]),[a,o]=i.useState(void 0),{idToken:l,serverUrl:c}=Bn(),d=i.useRef(null);i.useEffect(()=>{a&&d.current&&d.current.scrollIntoView({behavior:"smooth"})},[a]);const f=[{title:"Object UID",dataIndex:"object_id",key:"object_id"},{title:"State",dataIndex:"state",key:"state",render:p=>S.jsx(ap,{color:p==="Active"?"green":"orange",children:p})},{title:"Owner",dataIndex:"owner_id",key:"owner_id"},{title:"Granted Operations",dataIndex:"operations",key:"operations",render:p=>S.jsx("span",{children:p.map(v=>S.jsx(ap,{color:"blue",children:v},v))})}],m=async()=>{t(!0),o(void 0),r([]);try{const p=await iv("/access/obtained",l,c);p.length?r(p):o("Empty result - no access obtained.")}catch(p){o(`Error listing objects: ${p}`),console.error("Error listing objects:",p)}finally{t(!1)}};return i.useEffect(()=>{m()},[]),S.jsxs("div",{className:"p-6",children:[S.jsxs("div",{className:"flex justify-between items-center mb-6",children:[S.jsx("h1",{className:"text-2xl font-bold ",children:"Access rights obtained"}),S.jsx(bn,{type:"primary",onClick:m,loading:e,className:"bg-primary",children:"Refresh"})]}),S.jsx("div",{className:"mb-8 space-y-2",children:S.jsx("p",{children:"List of objects you have been granted access to, along with their current state, owner, and the operations you can perform."})}),S.jsx(An,{direction:"vertical",size:"middle",style:{display:"flex"},children:S.jsx(Je,{children:S.jsx(To,{dataSource:n,columns:f,rowKey:"objectUid",loading:e,pagination:{pageSize:10},className:"border rounded"})})}),a&&S.jsx("div",{ref:d,children:S.jsx(Je,{title:"Obtained access response",children:a})})]})},EJ=[{label:"Create",value:"create"},{label:"Get",value:"get"},{label:"Encrypt",value:"encrypt"},{label:"Decrypt",value:"decrypt"},{label:"Import",value:"import"},{label:"Revoke",value:"revoke"},{label:"Locate",value:"locate"},{label:"Rekey",value:"rekey"},{label:"Destroy",value:"destroy"}],_J=()=>{const[e]=me.useForm(),[t,n]=i.useState(void 0),[r,a]=i.useState(!1),{idToken:o,serverUrl:l}=Bn(),c=i.useRef(null);i.useEffect(()=>{t&&c.current&&c.current.scrollIntoView({behavior:"smooth"})},[t]);const d=async f=>{a(!0),n(void 0);try{const m=await QP("/access/revoke",f,o,l);n(m.success)}catch(m){n(`Error revoking access: ${m}`),console.error("Error revoking access:",m)}finally{a(!1)}};return S.jsxs("div",{className:"p-6",children:[S.jsx("h1",{className:"text-2xl font-bold mb-6",children:"Revoke access rights"}),S.jsxs("div",{className:"mb-8 space-y-2",children:[S.jsx("p",{children:"Revoke access rights from a user for specific KMIP operations on an object."}),S.jsx("p",{children:"This action can only be performed by the owner of the object."})]}),S.jsx(me,{form:e,onFinish:d,layout:"vertical",children:S.jsxs(An,{direction:"vertical",size:"middle",style:{display:"flex"},children:[S.jsxs(Je,{children:[S.jsx(me.Item,{name:"user_id",label:"User Identifier",rules:[{required:!0,message:"Please enter the user identifier"}],help:"The user to revoke access from",children:S.jsx(St,{placeholder:"Enter user identifier"})}),S.jsx(me.Item,{name:"unique_identifier",label:"Object UID",rules:[{required:!0,message:"Please enter the object UID"}],help:"The unique identifier of the object stored in the KMS",children:S.jsx(St,{placeholder:"Enter object UID"})}),S.jsx(me.Item,{name:"operation_types",label:"KMIP Operations",rules:[{required:!0,message:"Please select at least one operation"}],help:"Select one or more operations to revoke access from",children:S.jsx(jt,{mode:"multiple",options:EJ,placeholder:"Select operations"})})]}),S.jsx(me.Item,{children:S.jsx(bn,{type:"primary",danger:!0,htmlType:"submit",loading:r,className:"w-full text-white font-medium",children:"Revoke Access"})})]})}),t&&S.jsx("div",{ref:c,children:S.jsx(Je,{title:"Revoke access response",children:t})})]})};let re;const mi=new Array(128).fill(void 0);mi.push(void 0,null,!0,!1);function Cn(e){return mi[e]}let Ue=0,Eu=null;function Mu(){return(Eu===null||Eu.byteLength===0)&&(Eu=new Uint8Array(re.memory.buffer)),Eu}const Mm=typeof TextEncoder<"u"?new TextEncoder("utf-8"):{encode:()=>{throw Error("TextEncoder not available")}},IJ=typeof Mm.encodeInto=="function"?function(e,t){return Mm.encodeInto(e,t)}:function(e,t){const n=Mm.encode(e);return t.set(n),{read:e.length,written:n.length}};function yt(e,t,n){if(n===void 0){const c=Mm.encode(e),d=t(c.length,1)>>>0;return Mu().subarray(d,d+c.length).set(c),Ue=c.length,d}let r=e.length,a=t(r,1)>>>0;const o=Mu();let l=0;for(;l127)break;o[a+l]=c}if(l!==r){l!==0&&(e=e.slice(l)),a=n(a,r,r=l+e.length*3,1)>>>0;const c=Mu().subarray(a+l,a+r),d=IJ(e,c);l+=d.written,a=n(a,r,l,1)>>>0}return Ue=l,a}let Ml=null;function We(){return(Ml===null||Ml.buffer.detached===!0||Ml.buffer.detached===void 0&&Ml.buffer!==re.memory.buffer)&&(Ml=new DataView(re.memory.buffer)),Ml}let Tu=mi.length;function Gn(e){Tu===mi.length&&mi.push(mi.length+1);const t=Tu;return Tu=mi[t],mi[t]=e,t}function sy(e,t){try{return e.apply(this,t)}catch(n){re.__wbindgen_export_2(Gn(n))}}function OJ(e){e<132||(mi[e]=Tu,Tu=e)}function bt(e){const t=Cn(e);return OJ(e),t}function an(e){return e==null}function L0(e){const t=typeof e;if(t=="number"||t=="boolean"||e==null)return`${e}`;if(t=="string")return`"${e}"`;if(t=="symbol"){const a=e.description;return a==null?"Symbol":`Symbol(${a})`}if(t=="function"){const a=e.name;return typeof a=="string"&&a.length>0?`Function(${a})`:"Function"}if(Array.isArray(e)){const a=e.length;let o="[";a>0&&(o+=L0(e[0]));for(let l=1;l1)r=n[1];else return toString.call(e);if(r=="Object")try{return"Object("+JSON.stringify(e)+")"}catch{return"Object"}return e instanceof Error?`${e.name}: ${e.message} +${e.stack}`:r}const JP=typeof TextDecoder<"u"?new TextDecoder("utf-8",{ignoreBOM:!0,fatal:!0}):{decode:()=>{throw Error("TextDecoder not available")}};typeof TextDecoder<"u"&&JP.decode();function cy(e,t){return e=e>>>0,JP.decode(Mu().subarray(e,e+t))}function lo(e,t){const n=t(e.length*4,4)>>>0,r=We();for(let a=0;a>>0,v,h,b,x,y,C,w,E,I,_);var O=We().getInt32(R+4*0,!0),P=We().getInt32(R+4*1,!0),j=We().getInt32(R+4*2,!0);if(j)throw bt(P);return bt(O)}finally{re.__wbindgen_add_to_stack_pointer(16)}}function PJ(e){try{const a=re.__wbindgen_add_to_stack_pointer(-16),o=yt(e,re.__wbindgen_export_0,re.__wbindgen_export_1),l=Ue;re.parse_locate_ttlv_response(a,o,l);var t=We().getInt32(a+4*0,!0),n=We().getInt32(a+4*1,!0),r=We().getInt32(a+4*2,!0);if(r)throw bt(n);return bt(t)}finally{re.__wbindgen_add_to_stack_pointer(16)}}function NJ(e,t,n,r){try{const f=re.__wbindgen_add_to_stack_pointer(-16);var a=an(e)?0:yt(e,re.__wbindgen_export_0,re.__wbindgen_export_1),o=Ue;const m=lo(t,re.__wbindgen_export_0),p=Ue;re.create_rsa_key_pair_ttlv_request(f,a,o,m,p,n,r);var l=We().getInt32(f+4*0,!0),c=We().getInt32(f+4*1,!0),d=We().getInt32(f+4*2,!0);if(d)throw bt(c);return bt(l)}finally{re.__wbindgen_add_to_stack_pointer(16)}}function jJ(e,t,n,r){try{const f=re.__wbindgen_add_to_stack_pointer(-16);var a=an(e)?0:yt(e,re.__wbindgen_export_0,re.__wbindgen_export_1),o=Ue;const m=lo(t,re.__wbindgen_export_0),p=Ue,v=yt(n,re.__wbindgen_export_0,re.__wbindgen_export_1),h=Ue;re.create_ec_key_pair_ttlv_request(f,a,o,m,p,v,h,r);var l=We().getInt32(f+4*0,!0),c=We().getInt32(f+4*1,!0),d=We().getInt32(f+4*2,!0);if(d)throw bt(c);return bt(l)}finally{re.__wbindgen_add_to_stack_pointer(16)}}function Ix(e){try{const a=re.__wbindgen_add_to_stack_pointer(-16),o=yt(e,re.__wbindgen_export_0,re.__wbindgen_export_1),l=Ue;re.parse_create_keypair_ttlv_response(a,o,l);var t=We().getInt32(a+4*0,!0),n=We().getInt32(a+4*1,!0),r=We().getInt32(a+4*2,!0);if(r)throw bt(n);return bt(t)}finally{re.__wbindgen_add_to_stack_pointer(16)}}function kJ(e,t,n,r,a,o,l){try{const y=re.__wbindgen_add_to_stack_pointer(-16);var c=an(e)?0:yt(e,re.__wbindgen_export_0,re.__wbindgen_export_1),d=Ue;const C=lo(t,re.__wbindgen_export_0),w=Ue,E=yt(r,re.__wbindgen_export_0,re.__wbindgen_export_1),I=Ue;var f=an(o)?0:yt(o,re.__wbindgen_export_0,re.__wbindgen_export_1),m=Ue,p=an(l)?0:yt(l,re.__wbindgen_export_0,re.__wbindgen_export_1),v=Ue;re.create_sym_key_ttlv_request(y,c,d,C,w,an(n)?4294967297:n>>>0,E,I,a,f,m,p,v);var h=We().getInt32(y+4*0,!0),b=We().getInt32(y+4*1,!0),x=We().getInt32(y+4*2,!0);if(x)throw bt(b);return bt(h)}finally{re.__wbindgen_add_to_stack_pointer(16)}}function ZP(e){try{const a=re.__wbindgen_add_to_stack_pointer(-16),o=yt(e,re.__wbindgen_export_0,re.__wbindgen_export_1),l=Ue;re.parse_create_ttlv_response(a,o,l);var t=We().getInt32(a+4*0,!0),n=We().getInt32(a+4*1,!0),r=We().getInt32(a+4*2,!0);if(r)throw bt(n);return bt(t)}finally{re.__wbindgen_add_to_stack_pointer(16)}}function Mr(e,t){const n=t(e.length*1,1)>>>0;return Mu().set(e,n/1),Ue=e.length,n}function MJ(e,t,n,r){try{const f=re.__wbindgen_add_to_stack_pointer(-16),m=yt(e,re.__wbindgen_export_0,re.__wbindgen_export_1),p=Ue,v=Mr(t,re.__wbindgen_export_0),h=Ue;var a=an(n)?0:Mr(n,re.__wbindgen_export_0),o=Ue;re.decrypt_sym_ttlv_request(f,m,p,v,h,a,o,Gn(r));var l=We().getInt32(f+4*0,!0),c=We().getInt32(f+4*1,!0),d=We().getInt32(f+4*2,!0);if(d)throw bt(c);return bt(l)}finally{re.__wbindgen_add_to_stack_pointer(16)}}function TJ(e,t,n,r){try{const c=re.__wbindgen_add_to_stack_pointer(-16),d=yt(e,re.__wbindgen_export_0,re.__wbindgen_export_1),f=Ue,m=Mr(t,re.__wbindgen_export_0),p=Ue;re.decrypt_rsa_ttlv_request(c,d,f,m,p,Gn(n),Gn(r));var a=We().getInt32(c+4*0,!0),o=We().getInt32(c+4*1,!0),l=We().getInt32(c+4*2,!0);if(l)throw bt(o);return bt(a)}finally{re.__wbindgen_add_to_stack_pointer(16)}}function DJ(e,t){try{const o=re.__wbindgen_add_to_stack_pointer(-16),l=yt(e,re.__wbindgen_export_0,re.__wbindgen_export_1),c=Ue,d=Mr(t,re.__wbindgen_export_0),f=Ue;re.decrypt_ec_ttlv_request(o,l,c,d,f);var n=We().getInt32(o+4*0,!0),r=We().getInt32(o+4*1,!0),a=We().getInt32(o+4*2,!0);if(a)throw bt(r);return bt(n)}finally{re.__wbindgen_add_to_stack_pointer(16)}}function kd(e){try{const a=re.__wbindgen_add_to_stack_pointer(-16),o=yt(e,re.__wbindgen_export_0,re.__wbindgen_export_1),l=Ue;re.parse_decrypt_ttlv_response(a,o,l);var t=We().getInt32(a+4*0,!0),n=We().getInt32(a+4*1,!0),r=We().getInt32(a+4*2,!0);if(r)throw bt(n);return bt(t)}finally{re.__wbindgen_add_to_stack_pointer(16)}}function FJ(e,t){try{const o=re.__wbindgen_add_to_stack_pointer(-16),l=yt(e,re.__wbindgen_export_0,re.__wbindgen_export_1),c=Ue;re.destroy_ttlv_request(o,l,c,t);var n=We().getInt32(o+4*0,!0),r=We().getInt32(o+4*1,!0),a=We().getInt32(o+4*2,!0);if(a)throw bt(r);return bt(n)}finally{re.__wbindgen_add_to_stack_pointer(16)}}function LJ(e){try{const a=re.__wbindgen_add_to_stack_pointer(-16),o=yt(e,re.__wbindgen_export_0,re.__wbindgen_export_1),l=Ue;re.parse_destroy_ttlv_response(a,o,l);var t=We().getInt32(a+4*0,!0),n=We().getInt32(a+4*1,!0),r=We().getInt32(a+4*2,!0);if(r)throw bt(n);return bt(t)}finally{re.__wbindgen_add_to_stack_pointer(16)}}function AJ(e,t,n,r,a,o){try{const x=re.__wbindgen_add_to_stack_pointer(-16),y=yt(e,re.__wbindgen_export_0,re.__wbindgen_export_1),C=Ue;var l=an(t)?0:yt(t,re.__wbindgen_export_0,re.__wbindgen_export_1),c=Ue;const w=Mr(n,re.__wbindgen_export_0),E=Ue;var d=an(r)?0:Mr(r,re.__wbindgen_export_0),f=Ue,m=an(a)?0:Mr(a,re.__wbindgen_export_0),p=Ue;re.encrypt_sym_ttlv_request(x,y,C,l,c,w,E,d,f,m,p,Gn(o));var v=We().getInt32(x+4*0,!0),h=We().getInt32(x+4*1,!0),b=We().getInt32(x+4*2,!0);if(b)throw bt(h);return bt(v)}finally{re.__wbindgen_add_to_stack_pointer(16)}}function zJ(e,t,n,r){try{const c=re.__wbindgen_add_to_stack_pointer(-16),d=yt(e,re.__wbindgen_export_0,re.__wbindgen_export_1),f=Ue,m=Mr(t,re.__wbindgen_export_0),p=Ue;re.encrypt_rsa_ttlv_request(c,d,f,m,p,Gn(n),Gn(r));var a=We().getInt32(c+4*0,!0),o=We().getInt32(c+4*1,!0),l=We().getInt32(c+4*2,!0);if(l)throw bt(o);return bt(a)}finally{re.__wbindgen_add_to_stack_pointer(16)}}function BJ(e,t){try{const o=re.__wbindgen_add_to_stack_pointer(-16),l=yt(e,re.__wbindgen_export_0,re.__wbindgen_export_1),c=Ue,d=Mr(t,re.__wbindgen_export_0),f=Ue;re.encrypt_ec_ttlv_request(o,l,c,d,f);var n=We().getInt32(o+4*0,!0),r=We().getInt32(o+4*1,!0),a=We().getInt32(o+4*2,!0);if(a)throw bt(r);return bt(n)}finally{re.__wbindgen_add_to_stack_pointer(16)}}function Md(e){try{const a=re.__wbindgen_add_to_stack_pointer(-16),o=yt(e,re.__wbindgen_export_0,re.__wbindgen_export_1),l=Ue;re.parse_encrypt_ttlv_response(a,o,l);var t=We().getInt32(a+4*0,!0),n=We().getInt32(a+4*1,!0),r=We().getInt32(a+4*2,!0);if(r)throw bt(n);return bt(t)}finally{re.__wbindgen_add_to_stack_pointer(16)}}function HJ(e,t,n,r,a,o){try{const x=re.__wbindgen_add_to_stack_pointer(-16),y=yt(e,re.__wbindgen_export_0,re.__wbindgen_export_1),C=Ue,w=yt(n,re.__wbindgen_export_0,re.__wbindgen_export_1),E=Ue;var l=an(r)?0:yt(r,re.__wbindgen_export_0,re.__wbindgen_export_1),c=Ue,d=an(a)?0:yt(a,re.__wbindgen_export_0,re.__wbindgen_export_1),f=Ue,m=an(o)?0:yt(o,re.__wbindgen_export_0,re.__wbindgen_export_1),p=Ue;re.export_ttlv_request(x,y,C,t,w,E,l,c,d,f,m,p);var v=We().getInt32(x+4*0,!0),h=We().getInt32(x+4*1,!0),b=We().getInt32(x+4*2,!0);if(b)throw bt(h);return bt(v)}finally{re.__wbindgen_add_to_stack_pointer(16)}}function VJ(e,t){try{const o=re.__wbindgen_add_to_stack_pointer(-16),l=yt(e,re.__wbindgen_export_0,re.__wbindgen_export_1),c=Ue,d=yt(t,re.__wbindgen_export_0,re.__wbindgen_export_1),f=Ue;re.parse_export_ttlv_response(o,l,c,d,f);var n=We().getInt32(o+4*0,!0),r=We().getInt32(o+4*1,!0),a=We().getInt32(o+4*2,!0);if(a)throw bt(r);return bt(n)}finally{re.__wbindgen_add_to_stack_pointer(16)}}function WJ(e,t,n,r,a,o,l,c,d,f,m){try{const k=re.__wbindgen_add_to_stack_pointer(-16);var p=an(e)?0:yt(e,re.__wbindgen_export_0,re.__wbindgen_export_1),v=Ue;const L=Mr(t,re.__wbindgen_export_0),W=Ue,B=yt(n,re.__wbindgen_export_0,re.__wbindgen_export_1),F=Ue;var h=an(r)?0:yt(r,re.__wbindgen_export_0,re.__wbindgen_export_1),b=Ue,x=an(a)?0:yt(a,re.__wbindgen_export_0,re.__wbindgen_export_1),y=Ue,C=an(o)?0:yt(o,re.__wbindgen_export_0,re.__wbindgen_export_1),w=Ue;const A=lo(d,re.__wbindgen_export_0),T=Ue;var E=an(f)?0:lo(f,re.__wbindgen_export_0),I=Ue,_=an(m)?0:yt(m,re.__wbindgen_export_0,re.__wbindgen_export_1),O=Ue;re.import_ttlv_request(k,p,v,L,W,B,F,h,b,x,y,C,w,l,c,A,T,E,I,_,O);var P=We().getInt32(k+4*0,!0),j=We().getInt32(k+4*1,!0),R=We().getInt32(k+4*2,!0);if(R)throw bt(j);return bt(P)}finally{re.__wbindgen_add_to_stack_pointer(16)}}function eN(e){try{const a=re.__wbindgen_add_to_stack_pointer(-16),o=yt(e,re.__wbindgen_export_0,re.__wbindgen_export_1),l=Ue;re.parse_import_ttlv_response(a,o,l);var t=We().getInt32(a+4*0,!0),n=We().getInt32(a+4*1,!0),r=We().getInt32(a+4*2,!0);if(r)throw bt(n);return bt(t)}finally{re.__wbindgen_add_to_stack_pointer(16)}}function KJ(e,t){try{const o=re.__wbindgen_add_to_stack_pointer(-16),l=yt(e,re.__wbindgen_export_0,re.__wbindgen_export_1),c=Ue;re.revoke_ttlv_request(o,l,c,Gn(t));var n=We().getInt32(o+4*0,!0),r=We().getInt32(o+4*1,!0),a=We().getInt32(o+4*2,!0);if(a)throw bt(r);return bt(n)}finally{re.__wbindgen_add_to_stack_pointer(16)}}function UJ(e){try{const a=re.__wbindgen_add_to_stack_pointer(-16),o=yt(e,re.__wbindgen_export_0,re.__wbindgen_export_1),l=Ue;re.parse_revoke_ttlv_response(a,o,l);var t=We().getInt32(a+4*0,!0),n=We().getInt32(a+4*1,!0),r=We().getInt32(a+4*2,!0);if(r)throw bt(n);return bt(t)}finally{re.__wbindgen_add_to_stack_pointer(16)}}function qJ(e,t,n){try{const l=re.__wbindgen_add_to_stack_pointer(-16),c=yt(e,re.__wbindgen_export_0,re.__wbindgen_export_1),d=Ue,f=lo(t,re.__wbindgen_export_0),m=Ue;re.create_cc_master_keypair_ttlv_request(l,c,d,f,m,n);var r=We().getInt32(l+4*0,!0),a=We().getInt32(l+4*1,!0),o=We().getInt32(l+4*2,!0);if(o)throw bt(a);return bt(r)}finally{re.__wbindgen_add_to_stack_pointer(16)}}function YJ(e,t,n,r){try{const c=re.__wbindgen_add_to_stack_pointer(-16),d=yt(e,re.__wbindgen_export_0,re.__wbindgen_export_1),f=Ue,m=yt(t,re.__wbindgen_export_0,re.__wbindgen_export_1),p=Ue,v=lo(n,re.__wbindgen_export_0),h=Ue;re.create_cc_user_key_ttlv_request(c,d,f,m,p,v,h,r);var a=We().getInt32(c+4*0,!0),o=We().getInt32(c+4*1,!0),l=We().getInt32(c+4*2,!0);if(l)throw bt(o);return bt(a)}finally{re.__wbindgen_add_to_stack_pointer(16)}}function GJ(e,t,n,r){try{const f=re.__wbindgen_add_to_stack_pointer(-16),m=yt(e,re.__wbindgen_export_0,re.__wbindgen_export_1),p=Ue,v=yt(t,re.__wbindgen_export_0,re.__wbindgen_export_1),h=Ue,b=Mr(n,re.__wbindgen_export_0),x=Ue;var a=an(r)?0:Mr(r,re.__wbindgen_export_0),o=Ue;re.encrypt_cc_ttlv_request(f,m,p,v,h,b,x,a,o);var l=We().getInt32(f+4*0,!0),c=We().getInt32(f+4*1,!0),d=We().getInt32(f+4*2,!0);if(d)throw bt(c);return bt(l)}finally{re.__wbindgen_add_to_stack_pointer(16)}}function XJ(e,t,n){try{const d=re.__wbindgen_add_to_stack_pointer(-16),f=yt(e,re.__wbindgen_export_0,re.__wbindgen_export_1),m=Ue,p=Mr(t,re.__wbindgen_export_0),v=Ue;var r=an(n)?0:Mr(n,re.__wbindgen_export_0),a=Ue;re.decrypt_cc_ttlv_request(d,f,m,p,v,r,a);var o=We().getInt32(d+4*0,!0),l=We().getInt32(d+4*1,!0),c=We().getInt32(d+4*2,!0);if(c)throw bt(l);return bt(o)}finally{re.__wbindgen_add_to_stack_pointer(16)}}function QJ(e,t,n,r,a,o,l,c,d,f){try{const R=re.__wbindgen_add_to_stack_pointer(-16);var m=an(e)?0:yt(e,re.__wbindgen_export_0,re.__wbindgen_export_1),p=Ue;const k=Mr(t,re.__wbindgen_export_0),L=Ue,W=yt(n,re.__wbindgen_export_0,re.__wbindgen_export_1),B=Ue;var v=an(r)?0:yt(r,re.__wbindgen_export_0,re.__wbindgen_export_1),h=Ue,b=an(a)?0:yt(a,re.__wbindgen_export_0,re.__wbindgen_export_1),x=Ue,y=an(o)?0:yt(o,re.__wbindgen_export_0,re.__wbindgen_export_1),C=Ue,w=an(l)?0:yt(l,re.__wbindgen_export_0,re.__wbindgen_export_1),E=Ue;const F=lo(d,re.__wbindgen_export_0),A=Ue;var I=an(f)?0:lo(f,re.__wbindgen_export_0),_=Ue;re.import_certificate_ttlv_request(R,m,p,k,L,W,B,v,h,b,x,y,C,w,E,c,F,A,I,_);var O=We().getInt32(R+4*0,!0),P=We().getInt32(R+4*1,!0),j=We().getInt32(R+4*2,!0);if(j)throw bt(P);return bt(O)}finally{re.__wbindgen_add_to_stack_pointer(16)}}function JJ(e,t,n){try{const d=re.__wbindgen_add_to_stack_pointer(-16),f=yt(e,re.__wbindgen_export_0,re.__wbindgen_export_1),m=Ue,p=yt(t,re.__wbindgen_export_0,re.__wbindgen_export_1),v=Ue;var r=an(n)?0:yt(n,re.__wbindgen_export_0,re.__wbindgen_export_1),a=Ue;re.export_certificate_ttlv_request(d,f,m,p,v,r,a);var o=We().getInt32(d+4*0,!0),l=We().getInt32(d+4*1,!0),c=We().getInt32(d+4*2,!0);if(c)throw bt(l);return bt(o)}finally{re.__wbindgen_add_to_stack_pointer(16)}}function ZJ(e,t){try{const o=re.__wbindgen_add_to_stack_pointer(-16),l=yt(e,re.__wbindgen_export_0,re.__wbindgen_export_1),c=Ue,d=yt(t,re.__wbindgen_export_0,re.__wbindgen_export_1),f=Ue;re.parse_export_certificate_ttlv_response(o,l,c,d,f);var n=We().getInt32(o+4*0,!0),r=We().getInt32(o+4*1,!0),a=We().getInt32(o+4*2,!0);if(a)throw bt(r);return bt(n)}finally{re.__wbindgen_add_to_stack_pointer(16)}}function eZ(e,t){try{const f=re.__wbindgen_add_to_stack_pointer(-16);var n=an(e)?0:yt(e,re.__wbindgen_export_0,re.__wbindgen_export_1),r=Ue,a=an(t)?0:yt(t,re.__wbindgen_export_0,re.__wbindgen_export_1),o=Ue;re.validate_certificate_ttlv_request(f,n,r,a,o);var l=We().getInt32(f+4*0,!0),c=We().getInt32(f+4*1,!0),d=We().getInt32(f+4*2,!0);if(d)throw bt(c);return bt(l)}finally{re.__wbindgen_add_to_stack_pointer(16)}}function tZ(e){try{const a=re.__wbindgen_add_to_stack_pointer(-16),o=yt(e,re.__wbindgen_export_0,re.__wbindgen_export_1),l=Ue;re.parse_validate_ttlv_response(a,o,l);var t=We().getInt32(a+4*0,!0),n=We().getInt32(a+4*1,!0),r=We().getInt32(a+4*2,!0);if(r)throw bt(n);return bt(t)}finally{re.__wbindgen_add_to_stack_pointer(16)}}function nZ(e,t,n,r){try{const f=re.__wbindgen_add_to_stack_pointer(-16),m=yt(e,re.__wbindgen_export_0,re.__wbindgen_export_1),p=Ue,v=Mr(t,re.__wbindgen_export_0),h=Ue;var a=an(n)?0:Mr(n,re.__wbindgen_export_0),o=Ue;const b=yt(r,re.__wbindgen_export_0,re.__wbindgen_export_1),x=Ue;re.encrypt_certificate_ttlv_request(f,m,p,v,h,a,o,b,x);var l=We().getInt32(f+4*0,!0),c=We().getInt32(f+4*1,!0),d=We().getInt32(f+4*2,!0);if(d)throw bt(c);return bt(l)}finally{re.__wbindgen_add_to_stack_pointer(16)}}function rZ(e,t,n,r){try{const f=re.__wbindgen_add_to_stack_pointer(-16),m=yt(e,re.__wbindgen_export_0,re.__wbindgen_export_1),p=Ue,v=Mr(t,re.__wbindgen_export_0),h=Ue;var a=an(n)?0:Mr(n,re.__wbindgen_export_0),o=Ue;const b=yt(r,re.__wbindgen_export_0,re.__wbindgen_export_1),x=Ue;re.decrypt_certificate_ttlv_request(f,m,p,v,h,a,o,b,x);var l=We().getInt32(f+4*0,!0),c=We().getInt32(f+4*1,!0),d=We().getInt32(f+4*2,!0);if(d)throw bt(c);return bt(l)}finally{re.__wbindgen_add_to_stack_pointer(16)}}function aZ(e,t,n,r,a,o,l,c,d,f,m,p,v){try{const K=re.__wbindgen_add_to_stack_pointer(-16);var h=an(e)?0:yt(e,re.__wbindgen_export_0,re.__wbindgen_export_1),b=Ue,x=an(t)?0:yt(t,re.__wbindgen_export_0,re.__wbindgen_export_1),y=Ue,C=an(n)?0:Mr(n,re.__wbindgen_export_0),w=Ue,E=an(r)?0:yt(r,re.__wbindgen_export_0,re.__wbindgen_export_1),I=Ue,_=an(a)?0:yt(a,re.__wbindgen_export_0,re.__wbindgen_export_1),O=Ue,P=an(l)?0:yt(l,re.__wbindgen_export_0,re.__wbindgen_export_1),j=Ue,R=an(c)?0:yt(c,re.__wbindgen_export_0,re.__wbindgen_export_1),k=Ue,L=an(d)?0:yt(d,re.__wbindgen_export_0,re.__wbindgen_export_1),W=Ue,B=an(f)?0:yt(f,re.__wbindgen_export_0,re.__wbindgen_export_1),F=Ue,A=an(p)?0:Mr(p,re.__wbindgen_export_0),T=Ue;const z=lo(v,re.__wbindgen_export_0),U=Ue;re.certify_ttlv_request(K,h,b,x,y,C,w,E,I,_,O,o,P,j,R,k,L,W,B,F,m,A,T,z,U);var M=We().getInt32(K+4*0,!0),D=We().getInt32(K+4*1,!0),V=We().getInt32(K+4*2,!0);if(V)throw bt(D);return bt(M)}finally{re.__wbindgen_add_to_stack_pointer(16)}}function oZ(e){try{const a=re.__wbindgen_add_to_stack_pointer(-16),o=yt(e,re.__wbindgen_export_0,re.__wbindgen_export_1),l=Ue;re.parse_certify_ttlv_response(a,o,l);var t=We().getInt32(a+4*0,!0),n=We().getInt32(a+4*1,!0),r=We().getInt32(a+4*2,!0);if(r)throw bt(n);return bt(t)}finally{re.__wbindgen_add_to_stack_pointer(16)}}function iZ(e){try{const a=re.__wbindgen_add_to_stack_pointer(-16),o=yt(e,re.__wbindgen_export_0,re.__wbindgen_export_1),l=Ue;re.get_attributes_ttlv_request(a,o,l);var t=We().getInt32(a+4*0,!0),n=We().getInt32(a+4*1,!0),r=We().getInt32(a+4*2,!0);if(r)throw bt(n);return bt(t)}finally{re.__wbindgen_add_to_stack_pointer(16)}}function lZ(e,t){try{const o=re.__wbindgen_add_to_stack_pointer(-16),l=yt(e,re.__wbindgen_export_0,re.__wbindgen_export_1),c=Ue,d=lo(t,re.__wbindgen_export_0),f=Ue;re.parse_get_attributes_ttlv_response(o,l,c,d,f);var n=We().getInt32(o+4*0,!0),r=We().getInt32(o+4*1,!0),a=We().getInt32(o+4*2,!0);if(a)throw bt(r);return bt(n)}finally{re.__wbindgen_add_to_stack_pointer(16)}}function sZ(e,t,n){try{const l=re.__wbindgen_add_to_stack_pointer(-16),c=yt(e,re.__wbindgen_export_0,re.__wbindgen_export_1),d=Ue,f=yt(t,re.__wbindgen_export_0,re.__wbindgen_export_1),m=Ue,p=yt(n,re.__wbindgen_export_0,re.__wbindgen_export_1),v=Ue;re.set_attribute_ttlv_request(l,c,d,f,m,p,v);var r=We().getInt32(l+4*0,!0),a=We().getInt32(l+4*1,!0),o=We().getInt32(l+4*2,!0);if(o)throw bt(a);return bt(r)}finally{re.__wbindgen_add_to_stack_pointer(16)}}function cZ(e){try{const a=re.__wbindgen_add_to_stack_pointer(-16),o=yt(e,re.__wbindgen_export_0,re.__wbindgen_export_1),l=Ue;re.parse_set_attribute_ttlv_response(a,o,l);var t=We().getInt32(a+4*0,!0),n=We().getInt32(a+4*1,!0),r=We().getInt32(a+4*2,!0);if(r)throw bt(n);return bt(t)}finally{re.__wbindgen_add_to_stack_pointer(16)}}function uZ(e,t){try{const o=re.__wbindgen_add_to_stack_pointer(-16),l=yt(e,re.__wbindgen_export_0,re.__wbindgen_export_1),c=Ue,d=yt(t,re.__wbindgen_export_0,re.__wbindgen_export_1),f=Ue;re.delete_attribute_ttlv_request(o,l,c,d,f);var n=We().getInt32(o+4*0,!0),r=We().getInt32(o+4*1,!0),a=We().getInt32(o+4*2,!0);if(a)throw bt(r);return bt(n)}finally{re.__wbindgen_add_to_stack_pointer(16)}}function dZ(e){try{const a=re.__wbindgen_add_to_stack_pointer(-16),o=yt(e,re.__wbindgen_export_0,re.__wbindgen_export_1),l=Ue;re.parse_delete_attribute_ttlv_response(a,o,l);var t=We().getInt32(a+4*0,!0),n=We().getInt32(a+4*1,!0),r=We().getInt32(a+4*2,!0);if(r)throw bt(n);return bt(t)}finally{re.__wbindgen_add_to_stack_pointer(16)}}async function fZ(e,t){if(typeof Response=="function"&&e instanceof Response){if(typeof WebAssembly.instantiateStreaming=="function")try{return await WebAssembly.instantiateStreaming(e,t)}catch(r){if(e.headers.get("Content-Type")!="application/wasm")console.warn("`WebAssembly.instantiateStreaming` failed because your server does not serve Wasm with `application/wasm` MIME type. Falling back to `WebAssembly.instantiate` which is slower. Original error:\n",r);else throw r}const n=await e.arrayBuffer();return await WebAssembly.instantiate(n,t)}else{const n=await WebAssembly.instantiate(e,t);return n instanceof WebAssembly.Instance?{instance:n,module:e}:n}}function mZ(){const e={};return e.wbg={},e.wbg.__wbg_String_8f0eb39a4a4c2f66=function(t,n){const r=String(Cn(n)),a=yt(r,re.__wbindgen_export_0,re.__wbindgen_export_1),o=Ue;We().setInt32(t+4*1,o,!0),We().setInt32(t+4*0,a,!0)},e.wbg.__wbg_buffer_609cc3eee51ed158=function(t){const n=Cn(t).buffer;return Gn(n)},e.wbg.__wbg_call_672a4d21634d4a24=function(){return sy(function(t,n){const r=Cn(t).call(Cn(n));return Gn(r)},arguments)},e.wbg.__wbg_done_769e5ede4b31c67b=function(t){return Cn(t).done},e.wbg.__wbg_entries_3265d4158b33e5dc=function(t){const n=Object.entries(Cn(t));return Gn(n)},e.wbg.__wbg_get_67b2ba62fc30de12=function(){return sy(function(t,n){const r=Reflect.get(Cn(t),Cn(n));return Gn(r)},arguments)},e.wbg.__wbg_get_b9b93047fe3cf45b=function(t,n){const r=Cn(t)[n>>>0];return Gn(r)},e.wbg.__wbg_instanceof_ArrayBuffer_e14585432e3737fc=function(t){let n;try{n=Cn(t)instanceof ArrayBuffer}catch{n=!1}return n},e.wbg.__wbg_instanceof_Map_f3469ce2244d2430=function(t){let n;try{n=Cn(t)instanceof Map}catch{n=!1}return n},e.wbg.__wbg_instanceof_Uint8Array_17156bcf118086a9=function(t){let n;try{n=Cn(t)instanceof Uint8Array}catch{n=!1}return n},e.wbg.__wbg_isArray_a1eab7e0d067391b=function(t){return Array.isArray(Cn(t))},e.wbg.__wbg_isSafeInteger_343e2beeeece1bb0=function(t){return Number.isSafeInteger(Cn(t))},e.wbg.__wbg_iterator_9a24c88df860dc65=function(){return Gn(Symbol.iterator)},e.wbg.__wbg_length_a446193dc22c12f8=function(t){return Cn(t).length},e.wbg.__wbg_length_e2d2a49132c1b256=function(t){return Cn(t).length},e.wbg.__wbg_new_405e22f390576ce2=function(){const t=new Object;return Gn(t)},e.wbg.__wbg_new_5e0be73521bc8c17=function(){return Gn(new Map)},e.wbg.__wbg_new_78feb108b6472713=function(){const t=new Array;return Gn(t)},e.wbg.__wbg_new_a12002a7f91c75be=function(t){const n=new Uint8Array(Cn(t));return Gn(n)},e.wbg.__wbg_newwithbyteoffsetandlength_d97e637ebe145a9a=function(t,n,r){const a=new Uint8Array(Cn(t),n>>>0,r>>>0);return Gn(a)},e.wbg.__wbg_next_25feadfc0913fea9=function(t){const n=Cn(t).next;return Gn(n)},e.wbg.__wbg_next_6574e1a8a62d1055=function(){return sy(function(t){const n=Cn(t).next();return Gn(n)},arguments)},e.wbg.__wbg_set_37837023f3d740e8=function(t,n,r){Cn(t)[n>>>0]=bt(r)},e.wbg.__wbg_set_3f1d0b984ed272ed=function(t,n,r){Cn(t)[bt(n)]=bt(r)},e.wbg.__wbg_set_65595bdd868b3009=function(t,n,r){Cn(t).set(Cn(n),r>>>0)},e.wbg.__wbg_set_8fc6bf8a5b1071d1=function(t,n,r){const a=Cn(t).set(Cn(n),Cn(r));return Gn(a)},e.wbg.__wbg_value_cd1ffa7b1ab794f1=function(t){const n=Cn(t).value;return Gn(n)},e.wbg.__wbindgen_bigint_from_i64=function(t){return Gn(t)},e.wbg.__wbindgen_bigint_from_u64=function(t){const n=BigInt.asUintN(64,t);return Gn(n)},e.wbg.__wbindgen_bigint_get_as_i64=function(t,n){const r=Cn(n),a=typeof r=="bigint"?r:void 0;We().setBigInt64(t+8*1,an(a)?BigInt(0):a,!0),We().setInt32(t+4*0,!an(a),!0)},e.wbg.__wbindgen_boolean_get=function(t){const n=Cn(t);return typeof n=="boolean"?n?1:0:2},e.wbg.__wbindgen_debug_string=function(t,n){const r=L0(Cn(n)),a=yt(r,re.__wbindgen_export_0,re.__wbindgen_export_1),o=Ue;We().setInt32(t+4*1,o,!0),We().setInt32(t+4*0,a,!0)},e.wbg.__wbindgen_error_new=function(t,n){const r=new Error(cy(t,n));return Gn(r)},e.wbg.__wbindgen_in=function(t,n){return Cn(t)in Cn(n)},e.wbg.__wbindgen_is_bigint=function(t){return typeof Cn(t)=="bigint"},e.wbg.__wbindgen_is_function=function(t){return typeof Cn(t)=="function"},e.wbg.__wbindgen_is_null=function(t){return Cn(t)===null},e.wbg.__wbindgen_is_object=function(t){const n=Cn(t);return typeof n=="object"&&n!==null},e.wbg.__wbindgen_is_string=function(t){return typeof Cn(t)=="string"},e.wbg.__wbindgen_is_undefined=function(t){return Cn(t)===void 0},e.wbg.__wbindgen_jsval_eq=function(t,n){return Cn(t)===Cn(n)},e.wbg.__wbindgen_jsval_loose_eq=function(t,n){return Cn(t)==Cn(n)},e.wbg.__wbindgen_memory=function(){const t=re.memory;return Gn(t)},e.wbg.__wbindgen_number_get=function(t,n){const r=Cn(n),a=typeof r=="number"?r:void 0;We().setFloat64(t+8*1,an(a)?0:a,!0),We().setInt32(t+4*0,!an(a),!0)},e.wbg.__wbindgen_number_new=function(t){return Gn(t)},e.wbg.__wbindgen_object_clone_ref=function(t){const n=Cn(t);return Gn(n)},e.wbg.__wbindgen_object_drop_ref=function(t){bt(t)},e.wbg.__wbindgen_string_get=function(t,n){const r=Cn(n),a=typeof r=="string"?r:void 0;var o=an(a)?0:yt(a,re.__wbindgen_export_0,re.__wbindgen_export_1),l=Ue;We().setInt32(t+4*1,l,!0),We().setInt32(t+4*0,o,!0)},e.wbg.__wbindgen_string_new=function(t,n){const r=cy(t,n);return Gn(r)},e.wbg.__wbindgen_throw=function(t,n){throw new Error(cy(t,n))},e}function pZ(e,t){return re=e.exports,tN.__wbindgen_wasm_module=t,Ml=null,Eu=null,re}async function tN(e){if(re!==void 0)return re;typeof e<"u"&&(Object.getPrototypeOf(e)===Object.prototype?{module_or_path:e}=e:console.warn("using deprecated parameters for the initialization function; pass a single object instead")),typeof e>"u"&&(e=new URL("/ui/assets/cosmian_kms_client_wasm_bg--QQPfGN1.wasm",import.meta.url));const t=mZ();(typeof e=="string"||typeof Request=="function"&&e instanceof Request||typeof URL=="function"&&e instanceof URL)&&(e=fetch(e));const{instance:n,module:r}=await fZ(await e,t);return pZ(n,r)}const{Title:vZ}=vl,{Option:gZ}=jt,hZ=[{value:"ActivationDate",label:"Activation Date"},{value:"CryptographicAlgorithm",label:"Cryptographic Algorithm"},{value:"CryptographicLength",label:"Cryptographic Length"},{value:"CryptographicUsageMask",label:"Key Usage"},{value:"public_key_id",label:"Public Key ID link"},{value:"private_key_id",label:"Private Key ID link"},{value:"certificate_id",label:"Certificate ID link"},{value:"pkcs12_certificate_id",label:"PKCS12 Certificate ID link"},{value:"pkcs12_password_certificate",label:"PKCS12 Password Certificate link"},{value:"parent_id",label:"Parent ID link"},{value:"child_id",label:"Child ID link"}],yZ=()=>{const[e]=me.useForm(),[t,n]=i.useState(void 0),[r,a]=i.useState(!1),{serverUrl:o,idToken:l}=Bn(),c=i.useRef(null);i.useEffect(()=>{t&&c.current&&c.current.scrollIntoView({behavior:"smooth"})},[t]);const d=async f=>{a(!0);const m=f.id?f.id:f.tags?JSON.stringify(f.tags):void 0;try{if(m==null)throw n("Missing object identifier."),Error("Missing object identifier");if(!f.attribute_name)throw n("Missing attribute name."),Error("Missing attribute name");const p=uZ(m,f.attribute_name),v=await ir(p,l,o);if(v){const h=dZ(v);n(`Attribute '${f.attribute_name}' has been deleted for ${h.UniqueIdentifier}`)}}catch(p){n(`Error deleting attribute: ${p}`),console.error("Error deleting attribute:",p)}finally{a(!1)}};return S.jsxs("div",{className:"p-6",children:[S.jsx(vZ,{level:2,children:"Delete KMIP Object Attribute"}),S.jsxs("div",{className:"mb-8 space-y-2",children:[S.jsx("div",{children:"Delete a single attribute from a KMIP object by specifying the object ID or tags."}),S.jsx("div",{className:"text-sm text-yellow-600",children:"When using tags to identify the object, rather than the object ID, an error is returned if multiple objects matching the tags are found."})]}),S.jsx(me,{form:e,onFinish:d,layout:"vertical",initialValues:{},children:S.jsxs(An,{direction:"vertical",size:"middle",style:{display:"flex"},children:[S.jsxs(Je,{title:"Object Identification",children:[S.jsx("div",{className:"mb-5",children:"Specify either the Object ID or one or more tags to identify the object."}),S.jsx(me.Item,{name:"id",label:"Object ID",help:"The unique identifier of the cryptographic object",children:S.jsx(St,{placeholder:"Enter object ID"})}),S.jsx(me.Item,{name:"tags",label:"Tags",help:"Tags to use to retrieve the object when no object ID is specified",children:S.jsx(jt,{mode:"tags",style:{width:"100%"},placeholder:"Enter tags",tokenSeparators:[","]})})]}),S.jsxs(Je,{title:"Attribute Deletion",children:[S.jsx("div",{className:"mb-5",children:"Select the attribute to delete from the selected KMIP object."}),S.jsx(me.Item,{name:"attribute_name",label:"Attribute Name",rules:[{required:!0,message:"Please select an attribute name to delete"}],help:"Select the KMIP attribute you want to delete",children:S.jsx(jt,{placeholder:"Select attribute name",children:hZ.map(f=>S.jsx(gZ,{value:f.value,children:f.label},f.value))})})]}),S.jsx(me.Item,{children:S.jsx(bn,{type:"primary",danger:!0,htmlType:"submit",loading:r,className:"w-full font-medium",children:"Delete Attribute"})})]})}),t&&S.jsx(Je,{children:S.jsx("div",{ref:c,children:t})})]})},{Title:h_}=vl,bZ=({data:e})=>{const t=()=>{if(e){const o=Object.fromEntries(e);navigator.clipboard.writeText(JSON.stringify(o,null,2)),cx.success("Copied to clipboard")}},n=o=>typeof o=="string"?S.jsxs("span",{className:"text-yellow-600",children:['"',o,'"']}):typeof o=="number"?S.jsx("span",{className:"text-orange-600",children:o}):S.jsx("span",{className:"text-gray-800",children:String(o)}),r=o=>o===null?S.jsx("span",{className:"text-gray-600",children:"null"}):o===void 0?S.jsx("span",{className:"text-gray-600",children:"undefined"}):typeof o=="string"?S.jsxs("span",{className:"text-green-600",children:['"',o,'"']}):typeof o=="number"?S.jsx("span",{className:"text-orange-600",children:o}):typeof o=="boolean"?S.jsx("span",{className:"text-blue-600",children:String(o)}):Array.isArray(o)?S.jsxs("span",{className:"text-yellow-600",children:["["," ",o.map((l,c)=>S.jsxs("span",{children:[r(l),cS.jsx("div",{className:"p-2 rounded-md overflow-auto text-sm font-mono border border-gray-300 bg-gray-100",children:S.jsx("div",{className:"space-y-2",children:Array.from(o.entries()).map(([l,c],d)=>S.jsxs("div",{className:"flex",children:[S.jsx("span",{className:"text-blue-600",children:"{"}),S.jsxs("div",{className:"ml-2",children:[n(l),S.jsx("span",{className:"text-blue-600 mx-2",children:" => "}),r(c)]}),S.jsx("span",{className:"text-blue-600",children:"}"})]},d))})});return S.jsx(S.Fragment,{children:e&&S.jsx(Je,{title:S.jsxs("div",{className:"flex justify-between items-center",children:[S.jsx(h_,{level:4,className:"m-0",children:"HashMap Display"}),S.jsx(io,{title:"Copy JSON",children:S.jsx(bn,{type:"text",icon:S.jsx(tP,{}),onClick:t})})]}),className:"shadow-md",children:S.jsxs("div",{children:[S.jsx(h_,{level:5,children:"HashMap Preview"}),a(e)]})})})},{Title:xZ}=vl,{Option:SZ}=jt,CZ=[{value:"activation_date",label:"Activation Date"},{value:"cryptographic_algorithm",label:"Cryptographic Algorithm"},{value:"cryptographic_length",label:"Cryptographic Length"},{value:"key_usage",label:"Key Usage"},{value:"key_format_type",label:"Key Format Type"},{value:"object_type",label:"Object Type"},{value:"vendor_attributes",label:"Vendor Attributes"},{value:"public_key_id",label:"Public key ID"},{value:"private_key_id",label:"Private key ID"},{value:"certificate_id",label:"Certificate ID"},{value:"pkcs12_certificate_id",label:"Pkcs12 Certificate ID"},{value:"pkcs12_password_certificate",label:"Pkcs12 Password Certificate"},{value:"parent_id",label:"Parent ID"},{value:"child_id",label:"Child ID"}],wZ=()=>{const[e]=me.useForm(),[t,n]=i.useState(new Map),[r,a]=i.useState(!1),{idToken:o,serverUrl:l}=Bn(),c=i.useRef(null);i.useEffect(()=>{t&&c.current&&c.current.scrollIntoView({behavior:"smooth"})},[t]);const d=async f=>{a(!0);const m=f.id?f.id:f.tags?JSON.stringify(f.tags):void 0;try{if(m==null)throw n("Missing object identifier."),Error("Missing object identifier");const p=iZ(m),v=await ir(p,o,l);if(v){const h=lZ(v,f.selected_attributes);h.size?n(h):n("Empty result")}}catch(p){n(`Error getting attributes: ${p}`),console.error("Error getting attributes:",p)}finally{a(!1)}};return S.jsxs("div",{className:"p-6",children:[S.jsx(xZ,{level:2,children:"Get KMIP Object Attributes"}),S.jsxs("div",{className:"mb-8 space-y-2",children:[S.jsx("div",{children:"Retrieve attributes for a KMIP object by specifying either the object ID or tags."}),S.jsx("div",{className:"text-sm text-yellow-600",children:"When using tags to retrieve the object, rather than the object id, an error is returned if multiple objects matching the tags are found."})]}),S.jsx(me,{form:e,onFinish:d,layout:"vertical",initialValues:{selected_attributes:[]},children:S.jsxs(An,{direction:"vertical",size:"middle",style:{display:"flex"},children:[S.jsxs(Je,{title:"Object Identification",children:[S.jsx("div",{className:"mb-5",children:"Specify either the Object ID or one or more tags to identify the object."}),S.jsx(me.Item,{name:"id",label:"Object ID",help:"The unique identifier of the cryptographic object",children:S.jsx(St,{placeholder:"Enter object ID"})}),S.jsx(me.Item,{name:"tags",label:"Tags",help:"Tags to use to retrieve the key when no key ID is specified",children:S.jsx(jt,{mode:"tags",style:{width:"100%"},placeholder:"Enter tags",tokenSeparators:[","]})})]}),S.jsx(Je,{title:"Attribute Selection",children:S.jsx(me.Item,{name:"selected_attributes",label:"Attribute Names",help:"The attributes or KMIP-tags to retrieve (all attributes will be returned if none specified)",children:S.jsx(jt,{mode:"multiple",style:{width:"100%"},placeholder:"Select attribute",children:CZ.map(f=>S.jsx(SZ,{value:f.value,children:f.label},f.value))})})}),S.jsx(me.Item,{children:S.jsx(bn,{type:"primary",htmlType:"submit",loading:r,className:"w-full text-white font-medium",children:"Get Attributes"})})]})}),t&&typeof t!="string"&&t.size?S.jsx("div",{ref:c,children:S.jsx(bZ,{data:t})}):S.jsx(Je,{children:S.jsx("div",{ref:c,children:t})})]})};//! moment.js +//! version : 2.30.1 +//! authors : Tim Wood, Iskren Chernev, Moment.js contributors +//! license : MIT +//! momentjs.com +var nN;function Vt(){return nN.apply(null,arguments)}function $Z(e){nN=e}function Po(e){return e instanceof Array||Object.prototype.toString.call(e)==="[object Array]"}function Vl(e){return e!=null&&Object.prototype.toString.call(e)==="[object Object]"}function qn(e,t){return Object.prototype.hasOwnProperty.call(e,t)}function Ox(e){if(Object.getOwnPropertyNames)return Object.getOwnPropertyNames(e).length===0;var t;for(t in e)if(qn(e,t))return!1;return!0}function ja(e){return e===void 0}function wi(e){return typeof e=="number"||Object.prototype.toString.call(e)==="[object Number]"}function Td(e){return e instanceof Date||Object.prototype.toString.call(e)==="[object Date]"}function rN(e,t){var n=[],r,a=e.length;for(r=0;r>>0,r;for(r=0;r0)for(n=0;n=0;return(o?n?"+":"":"-")+Math.pow(10,Math.max(0,a)).toString().substr(1)+r}var jx=/(\[[^\[]*\])|(\\)?([Hh]mm(ss)?|Mo|MM?M?M?|Do|DDDo|DD?D?D?|ddd?d?|do?|w[o|w]?|W[o|W]?|Qo?|N{1,5}|YYYYYY|YYYYY|YYYY|YY|y{2,4}|yo?|gg(ggg?)?|GG(GGG?)?|e|E|a|A|hh?|HH?|kk?|mm?|ss?|S{1,9}|x|X|zz?|ZZ?|.)/g,cm=/(\[[^\[]*\])|(\\)?(LTS|LT|LL?L?L?|l{1,4})/g,dy={},Qs={};function on(e,t,n,r){var a=r;typeof r=="string"&&(a=function(){return this[r]()}),e&&(Qs[e]=a),t&&(Qs[t[0]]=function(){return Xo(a.apply(this,arguments),t[1],t[2])}),n&&(Qs[n]=function(){return this.localeData().ordinal(a.apply(this,arguments),e)})}function RZ(e){return e.match(/\[[\s\S]/)?e.replace(/^\[|\]$/g,""):e.replace(/\\/g,"")}function PZ(e){var t=e.match(jx),n,r;for(n=0,r=t.length;n=0&&cm.test(e);)e=e.replace(cm,r),cm.lastIndex=0,n-=1;return e}var NZ={LTS:"h:mm:ss A",LT:"h:mm A",L:"MM/DD/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"};function jZ(e){var t=this._longDateFormat[e],n=this._longDateFormat[e.toUpperCase()];return t||!n?t:(this._longDateFormat[e]=n.match(jx).map(function(r){return r==="MMMM"||r==="MM"||r==="DD"||r==="dddd"?r.slice(1):r}).join(""),this._longDateFormat[e])}var kZ="Invalid date";function MZ(){return this._invalidDate}var TZ="%d",DZ=/\d{1,2}/;function FZ(e){return this._ordinal.replace("%d",e)}var LZ={future:"in %s",past:"%s ago",s:"a few seconds",ss:"%d seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",w:"a week",ww:"%d weeks",M:"a month",MM:"%d months",y:"a year",yy:"%d years"};function AZ(e,t,n,r){var a=this._relativeTime[n];return Jo(a)?a(e,t,n,r):a.replace(/%d/i,e)}function zZ(e,t){var n=this._relativeTime[e>0?"future":"past"];return Jo(n)?n(t):n.replace(/%s/i,t)}var x_={D:"date",dates:"date",date:"date",d:"day",days:"day",day:"day",e:"weekday",weekdays:"weekday",weekday:"weekday",E:"isoWeekday",isoweekdays:"isoWeekday",isoweekday:"isoWeekday",DDD:"dayOfYear",dayofyears:"dayOfYear",dayofyear:"dayOfYear",h:"hour",hours:"hour",hour:"hour",ms:"millisecond",milliseconds:"millisecond",millisecond:"millisecond",m:"minute",minutes:"minute",minute:"minute",M:"month",months:"month",month:"month",Q:"quarter",quarters:"quarter",quarter:"quarter",s:"second",seconds:"second",second:"second",gg:"weekYear",weekyears:"weekYear",weekyear:"weekYear",GG:"isoWeekYear",isoweekyears:"isoWeekYear",isoweekyear:"isoWeekYear",w:"week",weeks:"week",week:"week",W:"isoWeek",isoweeks:"isoWeek",isoweek:"isoWeek",y:"year",years:"year",year:"year"};function fo(e){return typeof e=="string"?x_[e]||x_[e.toLowerCase()]:void 0}function kx(e){var t={},n,r;for(r in e)qn(e,r)&&(n=fo(r),n&&(t[n]=e[r]));return t}var BZ={date:9,day:11,weekday:11,isoWeekday:11,dayOfYear:4,hour:13,millisecond:16,minute:14,month:8,quarter:7,second:15,weekYear:1,isoWeekYear:1,week:5,isoWeek:5,year:1};function HZ(e){var t=[],n;for(n in e)qn(e,n)&&t.push({unit:n,priority:BZ[n]});return t.sort(function(r,a){return r.priority-a.priority}),t}var lN=/\d/,Wa=/\d\d/,sN=/\d{3}/,Mx=/\d{4}/,sv=/[+-]?\d{6}/,br=/\d\d?/,cN=/\d\d\d\d?/,uN=/\d\d\d\d\d\d?/,cv=/\d{1,3}/,Tx=/\d{1,4}/,uv=/[+-]?\d{1,6}/,_c=/\d+/,dv=/[+-]?\d+/,VZ=/Z|[+-]\d\d:?\d\d/gi,fv=/Z|[+-]\d\d(?::?\d\d)?/gi,WZ=/[+-]?\d+(\.\d{1,3})?/,Fd=/[0-9]{0,256}['a-z\u00A0-\u05FF\u0700-\uD7FF\uF900-\uFDCF\uFDF0-\uFF07\uFF10-\uFFEF]{1,256}|[\u0600-\u06FF\/]{1,256}(\s*?[\u0600-\u06FF]{1,256}){1,2}/i,Ic=/^[1-9]\d?/,Dx=/^([1-9]\d|\d)/,ip;ip={};function qt(e,t,n){ip[e]=Jo(t)?t:function(r,a){return r&&n?n:t}}function KZ(e,t){return qn(ip,e)?ip[e](t._strict,t._locale):new RegExp(UZ(e))}function UZ(e){return hi(e.replace("\\","").replace(/\\(\[)|\\(\])|\[([^\]\[]*)\]|\\(.)/g,function(t,n,r,a,o){return n||r||a||o}))}function hi(e){return e.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&")}function ro(e){return e<0?Math.ceil(e)||0:Math.floor(e)}function Fn(e){var t=+e,n=0;return t!==0&&isFinite(t)&&(n=ro(t)),n}var H0={};function nr(e,t){var n,r=t,a;for(typeof e=="string"&&(e=[e]),wi(t)&&(r=function(o,l){l[t]=Fn(o)}),a=e.length,n=0;n68?1900:2e3)};var dN=Oc("FullYear",!0);function XZ(){return mv(this.year())}function Oc(e,t){return function(n){return n!=null?(fN(this,e,n),Vt.updateOffset(this,t),this):ld(this,e)}}function ld(e,t){if(!e.isValid())return NaN;var n=e._d,r=e._isUTC;switch(t){case"Milliseconds":return r?n.getUTCMilliseconds():n.getMilliseconds();case"Seconds":return r?n.getUTCSeconds():n.getSeconds();case"Minutes":return r?n.getUTCMinutes():n.getMinutes();case"Hours":return r?n.getUTCHours():n.getHours();case"Date":return r?n.getUTCDate():n.getDate();case"Day":return r?n.getUTCDay():n.getDay();case"Month":return r?n.getUTCMonth():n.getMonth();case"FullYear":return r?n.getUTCFullYear():n.getFullYear();default:return NaN}}function fN(e,t,n){var r,a,o,l,c;if(!(!e.isValid()||isNaN(n))){switch(r=e._d,a=e._isUTC,t){case"Milliseconds":return void(a?r.setUTCMilliseconds(n):r.setMilliseconds(n));case"Seconds":return void(a?r.setUTCSeconds(n):r.setSeconds(n));case"Minutes":return void(a?r.setUTCMinutes(n):r.setMinutes(n));case"Hours":return void(a?r.setUTCHours(n):r.setHours(n));case"Date":return void(a?r.setUTCDate(n):r.setDate(n));case"FullYear":break;default:return}o=n,l=e.month(),c=e.date(),c=c===29&&l===1&&!mv(o)?28:c,a?r.setUTCFullYear(o,l,c):r.setFullYear(o,l,c)}}function QZ(e){return e=fo(e),Jo(this[e])?this[e]():this}function JZ(e,t){if(typeof e=="object"){e=kx(e);var n=HZ(e),r,a=n.length;for(r=0;r=0?(c=new Date(e+400,t,n,r,a,o,l),isFinite(c.getFullYear())&&c.setFullYear(e)):c=new Date(e,t,n,r,a,o,l),c}function sd(e){var t,n;return e<100&&e>=0?(n=Array.prototype.slice.call(arguments),n[0]=e+400,t=new Date(Date.UTC.apply(null,n)),isFinite(t.getUTCFullYear())&&t.setUTCFullYear(e)):t=new Date(Date.UTC.apply(null,arguments)),t}function lp(e,t,n){var r=7+t-n,a=(7+sd(e,0,r).getUTCDay()-t)%7;return-a+r-1}function yN(e,t,n,r,a){var o=(7+n-r)%7,l=lp(e,r,a),c=1+7*(t-1)+o+l,d,f;return c<=0?(d=e-1,f=Du(d)+c):c>Du(e)?(d=e+1,f=c-Du(e)):(d=e,f=c),{year:d,dayOfYear:f}}function cd(e,t,n){var r=lp(e.year(),t,n),a=Math.floor((e.dayOfYear()-r-1)/7)+1,o,l;return a<1?(l=e.year()-1,o=a+yi(l,t,n)):a>yi(e.year(),t,n)?(o=a-yi(e.year(),t,n),l=e.year()+1):(l=e.year(),o=a),{week:o,year:l}}function yi(e,t,n){var r=lp(e,t,n),a=lp(e+1,t,n);return(Du(e)-r+a)/7}on("w",["ww",2],"wo","week");on("W",["WW",2],"Wo","isoWeek");qt("w",br,Ic);qt("ww",br,Wa);qt("W",br,Ic);qt("WW",br,Wa);Ld(["w","ww","W","WW"],function(e,t,n,r){t[r.substr(0,1)]=Fn(e)});function dee(e){return cd(e,this._week.dow,this._week.doy).week}var fee={dow:0,doy:6};function mee(){return this._week.dow}function pee(){return this._week.doy}function vee(e){var t=this.localeData().week(this);return e==null?t:this.add((e-t)*7,"d")}function gee(e){var t=cd(this,1,4).week;return e==null?t:this.add((e-t)*7,"d")}on("d",0,"do","day");on("dd",0,0,function(e){return this.localeData().weekdaysMin(this,e)});on("ddd",0,0,function(e){return this.localeData().weekdaysShort(this,e)});on("dddd",0,0,function(e){return this.localeData().weekdays(this,e)});on("e",0,0,"weekday");on("E",0,0,"isoWeekday");qt("d",br);qt("e",br);qt("E",br);qt("dd",function(e,t){return t.weekdaysMinRegex(e)});qt("ddd",function(e,t){return t.weekdaysShortRegex(e)});qt("dddd",function(e,t){return t.weekdaysRegex(e)});Ld(["dd","ddd","dddd"],function(e,t,n,r){var a=n._locale.weekdaysParse(e,r,n._strict);a!=null?t.d=a:Nn(n).invalidWeekday=e});Ld(["d","e","E"],function(e,t,n,r){t[r]=Fn(e)});function hee(e,t){return typeof e!="string"?e:isNaN(e)?(e=t.weekdaysParse(e),typeof e=="number"?e:null):parseInt(e,10)}function yee(e,t){return typeof e=="string"?t.weekdaysParse(e)%7||7:isNaN(e)?null:e}function Lx(e,t){return e.slice(t,7).concat(e.slice(0,t))}var bee="Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),bN="Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),xee="Su_Mo_Tu_We_Th_Fr_Sa".split("_"),See=Fd,Cee=Fd,wee=Fd;function $ee(e,t){var n=Po(this._weekdays)?this._weekdays:this._weekdays[e&&e!==!0&&this._weekdays.isFormat.test(t)?"format":"standalone"];return e===!0?Lx(n,this._week.dow):e?n[e.day()]:n}function Eee(e){return e===!0?Lx(this._weekdaysShort,this._week.dow):e?this._weekdaysShort[e.day()]:this._weekdaysShort}function _ee(e){return e===!0?Lx(this._weekdaysMin,this._week.dow):e?this._weekdaysMin[e.day()]:this._weekdaysMin}function Iee(e,t,n){var r,a,o,l=e.toLocaleLowerCase();if(!this._weekdaysParse)for(this._weekdaysParse=[],this._shortWeekdaysParse=[],this._minWeekdaysParse=[],r=0;r<7;++r)o=Qo([2e3,1]).day(r),this._minWeekdaysParse[r]=this.weekdaysMin(o,"").toLocaleLowerCase(),this._shortWeekdaysParse[r]=this.weekdaysShort(o,"").toLocaleLowerCase(),this._weekdaysParse[r]=this.weekdays(o,"").toLocaleLowerCase();return n?t==="dddd"?(a=jr.call(this._weekdaysParse,l),a!==-1?a:null):t==="ddd"?(a=jr.call(this._shortWeekdaysParse,l),a!==-1?a:null):(a=jr.call(this._minWeekdaysParse,l),a!==-1?a:null):t==="dddd"?(a=jr.call(this._weekdaysParse,l),a!==-1||(a=jr.call(this._shortWeekdaysParse,l),a!==-1)?a:(a=jr.call(this._minWeekdaysParse,l),a!==-1?a:null)):t==="ddd"?(a=jr.call(this._shortWeekdaysParse,l),a!==-1||(a=jr.call(this._weekdaysParse,l),a!==-1)?a:(a=jr.call(this._minWeekdaysParse,l),a!==-1?a:null)):(a=jr.call(this._minWeekdaysParse,l),a!==-1||(a=jr.call(this._weekdaysParse,l),a!==-1)?a:(a=jr.call(this._shortWeekdaysParse,l),a!==-1?a:null))}function Oee(e,t,n){var r,a,o;if(this._weekdaysParseExact)return Iee.call(this,e,t,n);for(this._weekdaysParse||(this._weekdaysParse=[],this._minWeekdaysParse=[],this._shortWeekdaysParse=[],this._fullWeekdaysParse=[]),r=0;r<7;r++){if(a=Qo([2e3,1]).day(r),n&&!this._fullWeekdaysParse[r]&&(this._fullWeekdaysParse[r]=new RegExp("^"+this.weekdays(a,"").replace(".","\\.?")+"$","i"),this._shortWeekdaysParse[r]=new RegExp("^"+this.weekdaysShort(a,"").replace(".","\\.?")+"$","i"),this._minWeekdaysParse[r]=new RegExp("^"+this.weekdaysMin(a,"").replace(".","\\.?")+"$","i")),this._weekdaysParse[r]||(o="^"+this.weekdays(a,"")+"|^"+this.weekdaysShort(a,"")+"|^"+this.weekdaysMin(a,""),this._weekdaysParse[r]=new RegExp(o.replace(".",""),"i")),n&&t==="dddd"&&this._fullWeekdaysParse[r].test(e))return r;if(n&&t==="ddd"&&this._shortWeekdaysParse[r].test(e))return r;if(n&&t==="dd"&&this._minWeekdaysParse[r].test(e))return r;if(!n&&this._weekdaysParse[r].test(e))return r}}function Ree(e){if(!this.isValid())return e!=null?this:NaN;var t=ld(this,"Day");return e!=null?(e=hee(e,this.localeData()),this.add(e-t,"d")):t}function Pee(e){if(!this.isValid())return e!=null?this:NaN;var t=(this.day()+7-this.localeData()._week.dow)%7;return e==null?t:this.add(e-t,"d")}function Nee(e){if(!this.isValid())return e!=null?this:NaN;if(e!=null){var t=yee(e,this.localeData());return this.day(this.day()%7?t:t-7)}else return this.day()||7}function jee(e){return this._weekdaysParseExact?(qn(this,"_weekdaysRegex")||Ax.call(this),e?this._weekdaysStrictRegex:this._weekdaysRegex):(qn(this,"_weekdaysRegex")||(this._weekdaysRegex=See),this._weekdaysStrictRegex&&e?this._weekdaysStrictRegex:this._weekdaysRegex)}function kee(e){return this._weekdaysParseExact?(qn(this,"_weekdaysRegex")||Ax.call(this),e?this._weekdaysShortStrictRegex:this._weekdaysShortRegex):(qn(this,"_weekdaysShortRegex")||(this._weekdaysShortRegex=Cee),this._weekdaysShortStrictRegex&&e?this._weekdaysShortStrictRegex:this._weekdaysShortRegex)}function Mee(e){return this._weekdaysParseExact?(qn(this,"_weekdaysRegex")||Ax.call(this),e?this._weekdaysMinStrictRegex:this._weekdaysMinRegex):(qn(this,"_weekdaysMinRegex")||(this._weekdaysMinRegex=wee),this._weekdaysMinStrictRegex&&e?this._weekdaysMinStrictRegex:this._weekdaysMinRegex)}function Ax(){function e(m,p){return p.length-m.length}var t=[],n=[],r=[],a=[],o,l,c,d,f;for(o=0;o<7;o++)l=Qo([2e3,1]).day(o),c=hi(this.weekdaysMin(l,"")),d=hi(this.weekdaysShort(l,"")),f=hi(this.weekdays(l,"")),t.push(c),n.push(d),r.push(f),a.push(c),a.push(d),a.push(f);t.sort(e),n.sort(e),r.sort(e),a.sort(e),this._weekdaysRegex=new RegExp("^("+a.join("|")+")","i"),this._weekdaysShortRegex=this._weekdaysRegex,this._weekdaysMinRegex=this._weekdaysRegex,this._weekdaysStrictRegex=new RegExp("^("+r.join("|")+")","i"),this._weekdaysShortStrictRegex=new RegExp("^("+n.join("|")+")","i"),this._weekdaysMinStrictRegex=new RegExp("^("+t.join("|")+")","i")}function zx(){return this.hours()%12||12}function Tee(){return this.hours()||24}on("H",["HH",2],0,"hour");on("h",["hh",2],0,zx);on("k",["kk",2],0,Tee);on("hmm",0,0,function(){return""+zx.apply(this)+Xo(this.minutes(),2)});on("hmmss",0,0,function(){return""+zx.apply(this)+Xo(this.minutes(),2)+Xo(this.seconds(),2)});on("Hmm",0,0,function(){return""+this.hours()+Xo(this.minutes(),2)});on("Hmmss",0,0,function(){return""+this.hours()+Xo(this.minutes(),2)+Xo(this.seconds(),2)});function xN(e,t){on(e,0,0,function(){return this.localeData().meridiem(this.hours(),this.minutes(),t)})}xN("a",!0);xN("A",!1);function SN(e,t){return t._meridiemParse}qt("a",SN);qt("A",SN);qt("H",br,Dx);qt("h",br,Ic);qt("k",br,Ic);qt("HH",br,Wa);qt("hh",br,Wa);qt("kk",br,Wa);qt("hmm",cN);qt("hmmss",uN);qt("Hmm",cN);qt("Hmmss",uN);nr(["H","HH"],Vr);nr(["k","kk"],function(e,t,n){var r=Fn(e);t[Vr]=r===24?0:r});nr(["a","A"],function(e,t,n){n._isPm=n._locale.isPM(e),n._meridiem=e});nr(["h","hh"],function(e,t,n){t[Vr]=Fn(e),Nn(n).bigHour=!0});nr("hmm",function(e,t,n){var r=e.length-2;t[Vr]=Fn(e.substr(0,r)),t[Co]=Fn(e.substr(r)),Nn(n).bigHour=!0});nr("hmmss",function(e,t,n){var r=e.length-4,a=e.length-2;t[Vr]=Fn(e.substr(0,r)),t[Co]=Fn(e.substr(r,2)),t[vi]=Fn(e.substr(a)),Nn(n).bigHour=!0});nr("Hmm",function(e,t,n){var r=e.length-2;t[Vr]=Fn(e.substr(0,r)),t[Co]=Fn(e.substr(r))});nr("Hmmss",function(e,t,n){var r=e.length-4,a=e.length-2;t[Vr]=Fn(e.substr(0,r)),t[Co]=Fn(e.substr(r,2)),t[vi]=Fn(e.substr(a))});function Dee(e){return(e+"").toLowerCase().charAt(0)==="p"}var Fee=/[ap]\.?m?\.?/i,Lee=Oc("Hours",!0);function Aee(e,t,n){return e>11?n?"pm":"PM":n?"am":"AM"}var CN={calendar:IZ,longDateFormat:NZ,invalidDate:kZ,ordinal:TZ,dayOfMonthOrdinalParse:DZ,relativeTime:LZ,months:eee,monthsShort:mN,week:fee,weekdays:bee,weekdaysMin:xee,weekdaysShort:bN,meridiemParse:Fee},Cr={},pu={},ud;function zee(e,t){var n,r=Math.min(e.length,t.length);for(n=0;n0;){if(a=pv(o.slice(0,n).join("-")),a)return a;if(r&&r.length>=n&&zee(o,r)>=n-1)break;n--}t++}return ud}function Hee(e){return!!(e&&e.match("^[^/\\\\]*$"))}function pv(e){var t=null,n;if(Cr[e]===void 0&&typeof module<"u"&&module&&module.exports&&Hee(e))try{t=ud._abbr,n=require,n("./locale/"+e),ll(t)}catch{Cr[e]=null}return Cr[e]}function ll(e,t){var n;return e&&(ja(t)?n=Oi(e):n=Bx(e,t),n?ud=n:typeof console<"u"&&console.warn&&console.warn("Locale "+e+" not found. Did you forget to load it?")),ud._abbr}function Bx(e,t){if(t!==null){var n,r=CN;if(t.abbr=e,Cr[e]!=null)oN("defineLocaleOverride","use moment.updateLocale(localeName, config) to change an existing locale. moment.defineLocale(localeName, config) should only be used for creating a new locale See http://momentjs.com/guides/#/warnings/define-locale/ for more info."),r=Cr[e]._config;else if(t.parentLocale!=null)if(Cr[t.parentLocale]!=null)r=Cr[t.parentLocale]._config;else if(n=pv(t.parentLocale),n!=null)r=n._config;else return pu[t.parentLocale]||(pu[t.parentLocale]=[]),pu[t.parentLocale].push({name:e,config:t}),null;return Cr[e]=new Nx(z0(r,t)),pu[e]&&pu[e].forEach(function(a){Bx(a.name,a.config)}),ll(e),Cr[e]}else return delete Cr[e],null}function Vee(e,t){if(t!=null){var n,r,a=CN;Cr[e]!=null&&Cr[e].parentLocale!=null?Cr[e].set(z0(Cr[e]._config,t)):(r=pv(e),r!=null&&(a=r._config),t=z0(a,t),r==null&&(t.abbr=e),n=new Nx(t),n.parentLocale=Cr[e],Cr[e]=n),ll(e)}else Cr[e]!=null&&(Cr[e].parentLocale!=null?(Cr[e]=Cr[e].parentLocale,e===ll()&&ll(e)):Cr[e]!=null&&delete Cr[e]);return Cr[e]}function Oi(e){var t;if(e&&e._locale&&e._locale._abbr&&(e=e._locale._abbr),!e)return ud;if(!Po(e)){if(t=pv(e),t)return t;e=[e]}return Bee(e)}function Wee(){return B0(Cr)}function Hx(e){var t,n=e._a;return n&&Nn(e).overflow===-2&&(t=n[pi]<0||n[pi]>11?pi:n[Wo]<1||n[Wo]>Fx(n[va],n[pi])?Wo:n[Vr]<0||n[Vr]>24||n[Vr]===24&&(n[Co]!==0||n[vi]!==0||n[Al]!==0)?Vr:n[Co]<0||n[Co]>59?Co:n[vi]<0||n[vi]>59?vi:n[Al]<0||n[Al]>999?Al:-1,Nn(e)._overflowDayOfYear&&(tWo)&&(t=Wo),Nn(e)._overflowWeeks&&t===-1&&(t=YZ),Nn(e)._overflowWeekday&&t===-1&&(t=GZ),Nn(e).overflow=t),e}var Kee=/^\s*((?:[+-]\d{6}|\d{4})-(?:\d\d-\d\d|W\d\d-\d|W\d\d|\d\d\d|\d\d))(?:(T| )(\d\d(?::\d\d(?::\d\d(?:[.,]\d+)?)?)?)([+-]\d\d(?::?\d\d)?|\s*Z)?)?$/,Uee=/^\s*((?:[+-]\d{6}|\d{4})(?:\d\d\d\d|W\d\d\d|W\d\d|\d\d\d|\d\d|))(?:(T| )(\d\d(?:\d\d(?:\d\d(?:[.,]\d+)?)?)?)([+-]\d\d(?::?\d\d)?|\s*Z)?)?$/,qee=/Z|[+-]\d\d(?::?\d\d)?/,um=[["YYYYYY-MM-DD",/[+-]\d{6}-\d\d-\d\d/],["YYYY-MM-DD",/\d{4}-\d\d-\d\d/],["GGGG-[W]WW-E",/\d{4}-W\d\d-\d/],["GGGG-[W]WW",/\d{4}-W\d\d/,!1],["YYYY-DDD",/\d{4}-\d{3}/],["YYYY-MM",/\d{4}-\d\d/,!1],["YYYYYYMMDD",/[+-]\d{10}/],["YYYYMMDD",/\d{8}/],["GGGG[W]WWE",/\d{4}W\d{3}/],["GGGG[W]WW",/\d{4}W\d{2}/,!1],["YYYYDDD",/\d{7}/],["YYYYMM",/\d{6}/,!1],["YYYY",/\d{4}/,!1]],fy=[["HH:mm:ss.SSSS",/\d\d:\d\d:\d\d\.\d+/],["HH:mm:ss,SSSS",/\d\d:\d\d:\d\d,\d+/],["HH:mm:ss",/\d\d:\d\d:\d\d/],["HH:mm",/\d\d:\d\d/],["HHmmss.SSSS",/\d\d\d\d\d\d\.\d+/],["HHmmss,SSSS",/\d\d\d\d\d\d,\d+/],["HHmmss",/\d\d\d\d\d\d/],["HHmm",/\d\d\d\d/],["HH",/\d\d/]],Yee=/^\/?Date\((-?\d+)/i,Gee=/^(?:(Mon|Tue|Wed|Thu|Fri|Sat|Sun),?\s)?(\d{1,2})\s(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)\s(\d{2,4})\s(\d\d):(\d\d)(?::(\d\d))?\s(?:(UT|GMT|[ECMP][SD]T)|([Zz])|([+-]\d{4}))$/,Xee={UT:0,GMT:0,EDT:-4*60,EST:-5*60,CDT:-5*60,CST:-6*60,MDT:-6*60,MST:-7*60,PDT:-7*60,PST:-8*60};function wN(e){var t,n,r=e._i,a=Kee.exec(r)||Uee.exec(r),o,l,c,d,f=um.length,m=fy.length;if(a){for(Nn(e).iso=!0,t=0,n=f;tDu(l)||e._dayOfYear===0)&&(Nn(e)._overflowDayOfYear=!0),n=sd(l,0,e._dayOfYear),e._a[pi]=n.getUTCMonth(),e._a[Wo]=n.getUTCDate()),t=0;t<3&&e._a[t]==null;++t)e._a[t]=r[t]=a[t];for(;t<7;t++)e._a[t]=r[t]=e._a[t]==null?t===2?1:0:e._a[t];e._a[Vr]===24&&e._a[Co]===0&&e._a[vi]===0&&e._a[Al]===0&&(e._nextDay=!0,e._a[Vr]=0),e._d=(e._useUTC?sd:uee).apply(null,r),o=e._useUTC?e._d.getUTCDay():e._d.getDay(),e._tzm!=null&&e._d.setUTCMinutes(e._d.getUTCMinutes()-e._tzm),e._nextDay&&(e._a[Vr]=24),e._w&&typeof e._w.d<"u"&&e._w.d!==o&&(Nn(e).weekdayMismatch=!0)}}function ate(e){var t,n,r,a,o,l,c,d,f;t=e._w,t.GG!=null||t.W!=null||t.E!=null?(o=1,l=4,n=zs(t.GG,e._a[va],cd(yr(),1,4).year),r=zs(t.W,1),a=zs(t.E,1),(a<1||a>7)&&(d=!0)):(o=e._locale._week.dow,l=e._locale._week.doy,f=cd(yr(),o,l),n=zs(t.gg,e._a[va],f.year),r=zs(t.w,f.week),t.d!=null?(a=t.d,(a<0||a>6)&&(d=!0)):t.e!=null?(a=t.e+o,(t.e<0||t.e>6)&&(d=!0)):a=o),r<1||r>yi(n,o,l)?Nn(e)._overflowWeeks=!0:d!=null?Nn(e)._overflowWeekday=!0:(c=yN(n,r,a,o,l),e._a[va]=c.year,e._dayOfYear=c.dayOfYear)}Vt.ISO_8601=function(){};Vt.RFC_2822=function(){};function Wx(e){if(e._f===Vt.ISO_8601){wN(e);return}if(e._f===Vt.RFC_2822){$N(e);return}e._a=[],Nn(e).empty=!0;var t=""+e._i,n,r,a,o,l,c=t.length,d=0,f,m;for(a=iN(e._f,e._locale).match(jx)||[],m=a.length,n=0;n0&&Nn(e).unusedInput.push(l),t=t.slice(t.indexOf(r)+r.length),d+=r.length),Qs[o]?(r?Nn(e).empty=!1:Nn(e).unusedTokens.push(o),qZ(o,r,e)):e._strict&&!r&&Nn(e).unusedTokens.push(o);Nn(e).charsLeftOver=c-d,t.length>0&&Nn(e).unusedInput.push(t),e._a[Vr]<=12&&Nn(e).bigHour===!0&&e._a[Vr]>0&&(Nn(e).bigHour=void 0),Nn(e).parsedDateParts=e._a.slice(0),Nn(e).meridiem=e._meridiem,e._a[Vr]=ote(e._locale,e._a[Vr],e._meridiem),f=Nn(e).era,f!==null&&(e._a[va]=e._locale.erasConvertYear(f,e._a[va])),Vx(e),Hx(e)}function ote(e,t,n){var r;return n==null?t:e.meridiemHour!=null?e.meridiemHour(t,n):(e.isPM!=null&&(r=e.isPM(n),r&&t<12&&(t+=12),!r&&t===12&&(t=0)),t)}function ite(e){var t,n,r,a,o,l,c=!1,d=e._f.length;if(d===0){Nn(e).invalidFormat=!0,e._d=new Date(NaN);return}for(a=0;athis?this:e:lv()});function IN(e,t){var n,r;if(t.length===1&&Po(t[0])&&(t=t[0]),!t.length)return yr();for(n=t[0],r=1;rthis.clone().month(0).utcOffset()||this.utcOffset()>this.clone().month(5).utcOffset()}function Ite(){if(!ja(this._isDSTShifted))return this._isDSTShifted;var e={},t;return Px(e,this),e=EN(e),e._a?(t=e._isUTC?Qo(e._a):yr(e._a),this._isDSTShifted=this.isValid()&&yte(e._a,t.toArray())>0):this._isDSTShifted=!1,this._isDSTShifted}function Ote(){return this.isValid()?!this._isUTC:!1}function Rte(){return this.isValid()?this._isUTC:!1}function RN(){return this.isValid()?this._isUTC&&this._offset===0:!1}var Pte=/^(-|\+)?(?:(\d*)[. ])?(\d+):(\d+)(?::(\d+)(\.\d*)?)?$/,Nte=/^(-|\+)?P(?:([-+]?[0-9,.]*)Y)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)W)?(?:([-+]?[0-9,.]*)D)?(?:T(?:([-+]?[0-9,.]*)H)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)S)?)?$/;function Do(e,t){var n=e,r=null,a,o,l;return Dm(e)?n={ms:e._milliseconds,d:e._days,M:e._months}:wi(e)||!isNaN(+e)?(n={},t?n[t]=+e:n.milliseconds=+e):(r=Pte.exec(e))?(a=r[1]==="-"?-1:1,n={y:0,d:Fn(r[Wo])*a,h:Fn(r[Vr])*a,m:Fn(r[Co])*a,s:Fn(r[vi])*a,ms:Fn(V0(r[Al]*1e3))*a}):(r=Nte.exec(e))?(a=r[1]==="-"?-1:1,n={y:kl(r[2],a),M:kl(r[3],a),w:kl(r[4],a),d:kl(r[5],a),h:kl(r[6],a),m:kl(r[7],a),s:kl(r[8],a)}):n==null?n={}:typeof n=="object"&&("from"in n||"to"in n)&&(l=jte(yr(n.from),yr(n.to)),n={},n.ms=l.milliseconds,n.M=l.months),o=new vv(n),Dm(e)&&qn(e,"_locale")&&(o._locale=e._locale),Dm(e)&&qn(e,"_isValid")&&(o._isValid=e._isValid),o}Do.fn=vv.prototype;Do.invalid=hte;function kl(e,t){var n=e&&parseFloat(e.replace(",","."));return(isNaN(n)?0:n)*t}function C_(e,t){var n={};return n.months=t.month()-e.month()+(t.year()-e.year())*12,e.clone().add(n.months,"M").isAfter(t)&&--n.months,n.milliseconds=+t-+e.clone().add(n.months,"M"),n}function jte(e,t){var n;return e.isValid()&&t.isValid()?(t=Ux(t,e),e.isBefore(t)?n=C_(e,t):(n=C_(t,e),n.milliseconds=-n.milliseconds,n.months=-n.months),n):{milliseconds:0,months:0}}function PN(e,t){return function(n,r){var a,o;return r!==null&&!isNaN(+r)&&(oN(t,"moment()."+t+"(period, number) is deprecated. Please use moment()."+t+"(number, period). See http://momentjs.com/guides/#/warnings/add-inverted-param/ for more info."),o=n,n=r,r=o),a=Do(n,r),NN(this,a,e),this}}function NN(e,t,n,r){var a=t._milliseconds,o=V0(t._days),l=V0(t._months);e.isValid()&&(r=r??!0,l&&vN(e,ld(e,"Month")+l*n),o&&fN(e,"Date",ld(e,"Date")+o*n),a&&e._d.setTime(e._d.valueOf()+a*n),r&&Vt.updateOffset(e,o||l))}var kte=PN(1,"add"),Mte=PN(-1,"subtract");function jN(e){return typeof e=="string"||e instanceof String}function Tte(e){return No(e)||Td(e)||jN(e)||wi(e)||Fte(e)||Dte(e)||e===null||e===void 0}function Dte(e){var t=Vl(e)&&!Ox(e),n=!1,r=["years","year","y","months","month","M","days","day","d","dates","date","D","hours","hour","h","minutes","minute","m","seconds","second","s","milliseconds","millisecond","ms"],a,o,l=r.length;for(a=0;an.valueOf():n.valueOf()9999?Tm(n,t?"YYYYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYYYY-MM-DD[T]HH:mm:ss.SSSZ"):Jo(Date.prototype.toISOString)?t?this.toDate().toISOString():new Date(this.valueOf()+this.utcOffset()*60*1e3).toISOString().replace("Z",Tm(n,"Z")):Tm(n,t?"YYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYY-MM-DD[T]HH:mm:ss.SSSZ")}function Qte(){if(!this.isValid())return"moment.invalid(/* "+this._i+" */)";var e="moment",t="",n,r,a,o;return this.isLocal()||(e=this.utcOffset()===0?"moment.utc":"moment.parseZone",t="Z"),n="["+e+'("]',r=0<=this.year()&&this.year()<=9999?"YYYY":"YYYYYY",a="-MM-DD[T]HH:mm:ss.SSS",o=t+'[")]',this.format(n+r+a+o)}function Jte(e){e||(e=this.isUtc()?Vt.defaultFormatUtc:Vt.defaultFormat);var t=Tm(this,e);return this.localeData().postformat(t)}function Zte(e,t){return this.isValid()&&(No(e)&&e.isValid()||yr(e).isValid())?Do({to:this,from:e}).locale(this.locale()).humanize(!t):this.localeData().invalidDate()}function ene(e){return this.from(yr(),e)}function tne(e,t){return this.isValid()&&(No(e)&&e.isValid()||yr(e).isValid())?Do({from:this,to:e}).locale(this.locale()).humanize(!t):this.localeData().invalidDate()}function nne(e){return this.to(yr(),e)}function kN(e){var t;return e===void 0?this._locale._abbr:(t=Oi(e),t!=null&&(this._locale=t),this)}var MN=uo("moment().lang() is deprecated. Instead, use moment().localeData() to get the language configuration. Use moment().locale() to change languages.",function(e){return e===void 0?this.localeData():this.locale(e)});function TN(){return this._locale}var sp=1e3,Js=60*sp,cp=60*Js,DN=(365*400+97)*24*cp;function Zs(e,t){return(e%t+t)%t}function FN(e,t,n){return e<100&&e>=0?new Date(e+400,t,n)-DN:new Date(e,t,n).valueOf()}function LN(e,t,n){return e<100&&e>=0?Date.UTC(e+400,t,n)-DN:Date.UTC(e,t,n)}function rne(e){var t,n;if(e=fo(e),e===void 0||e==="millisecond"||!this.isValid())return this;switch(n=this._isUTC?LN:FN,e){case"year":t=n(this.year(),0,1);break;case"quarter":t=n(this.year(),this.month()-this.month()%3,1);break;case"month":t=n(this.year(),this.month(),1);break;case"week":t=n(this.year(),this.month(),this.date()-this.weekday());break;case"isoWeek":t=n(this.year(),this.month(),this.date()-(this.isoWeekday()-1));break;case"day":case"date":t=n(this.year(),this.month(),this.date());break;case"hour":t=this._d.valueOf(),t-=Zs(t+(this._isUTC?0:this.utcOffset()*Js),cp);break;case"minute":t=this._d.valueOf(),t-=Zs(t,Js);break;case"second":t=this._d.valueOf(),t-=Zs(t,sp);break}return this._d.setTime(t),Vt.updateOffset(this,!0),this}function ane(e){var t,n;if(e=fo(e),e===void 0||e==="millisecond"||!this.isValid())return this;switch(n=this._isUTC?LN:FN,e){case"year":t=n(this.year()+1,0,1)-1;break;case"quarter":t=n(this.year(),this.month()-this.month()%3+3,1)-1;break;case"month":t=n(this.year(),this.month()+1,1)-1;break;case"week":t=n(this.year(),this.month(),this.date()-this.weekday()+7)-1;break;case"isoWeek":t=n(this.year(),this.month(),this.date()-(this.isoWeekday()-1)+7)-1;break;case"day":case"date":t=n(this.year(),this.month(),this.date()+1)-1;break;case"hour":t=this._d.valueOf(),t+=cp-Zs(t+(this._isUTC?0:this.utcOffset()*Js),cp)-1;break;case"minute":t=this._d.valueOf(),t+=Js-Zs(t,Js)-1;break;case"second":t=this._d.valueOf(),t+=sp-Zs(t,sp)-1;break}return this._d.setTime(t),Vt.updateOffset(this,!0),this}function one(){return this._d.valueOf()-(this._offset||0)*6e4}function ine(){return Math.floor(this.valueOf()/1e3)}function lne(){return new Date(this.valueOf())}function sne(){var e=this;return[e.year(),e.month(),e.date(),e.hour(),e.minute(),e.second(),e.millisecond()]}function cne(){var e=this;return{years:e.year(),months:e.month(),date:e.date(),hours:e.hours(),minutes:e.minutes(),seconds:e.seconds(),milliseconds:e.milliseconds()}}function une(){return this.isValid()?this.toISOString():null}function dne(){return Rx(this)}function fne(){return nl({},Nn(this))}function mne(){return Nn(this).overflow}function pne(){return{input:this._i,format:this._f,locale:this._locale,isUTC:this._isUTC,strict:this._strict}}on("N",0,0,"eraAbbr");on("NN",0,0,"eraAbbr");on("NNN",0,0,"eraAbbr");on("NNNN",0,0,"eraName");on("NNNNN",0,0,"eraNarrow");on("y",["y",1],"yo","eraYear");on("y",["yy",2],0,"eraYear");on("y",["yyy",3],0,"eraYear");on("y",["yyyy",4],0,"eraYear");qt("N",qx);qt("NN",qx);qt("NNN",qx);qt("NNNN",Ene);qt("NNNNN",_ne);nr(["N","NN","NNN","NNNN","NNNNN"],function(e,t,n,r){var a=n._locale.erasParse(e,r,n._strict);a?Nn(n).era=a:Nn(n).invalidEra=e});qt("y",_c);qt("yy",_c);qt("yyy",_c);qt("yyyy",_c);qt("yo",Ine);nr(["y","yy","yyy","yyyy"],va);nr(["yo"],function(e,t,n,r){var a;n._locale._eraYearOrdinalRegex&&(a=e.match(n._locale._eraYearOrdinalRegex)),n._locale.eraYearOrdinalParse?t[va]=n._locale.eraYearOrdinalParse(e,a):t[va]=parseInt(e,10)});function vne(e,t){var n,r,a,o=this._eras||Oi("en")._eras;for(n=0,r=o.length;n=0)return o[r]}function hne(e,t){var n=e.since<=e.until?1:-1;return t===void 0?Vt(e.since).year():Vt(e.since).year()+(t-e.offset)*n}function yne(){var e,t,n,r=this.localeData().eras();for(e=0,t=r.length;eo&&(t=o),Mne.call(this,e,t,n,r,a))}function Mne(e,t,n,r,a){var o=yN(e,t,n,r,a),l=sd(o.year,0,o.dayOfYear);return this.year(l.getUTCFullYear()),this.month(l.getUTCMonth()),this.date(l.getUTCDate()),this}on("Q",0,"Qo","quarter");qt("Q",lN);nr("Q",function(e,t){t[pi]=(Fn(e)-1)*3});function Tne(e){return e==null?Math.ceil((this.month()+1)/3):this.month((e-1)*3+this.month()%3)}on("D",["DD",2],"Do","date");qt("D",br,Ic);qt("DD",br,Wa);qt("Do",function(e,t){return e?t._dayOfMonthOrdinalParse||t._ordinalParse:t._dayOfMonthOrdinalParseLenient});nr(["D","DD"],Wo);nr("Do",function(e,t){t[Wo]=Fn(e.match(br)[0])});var zN=Oc("Date",!0);on("DDD",["DDDD",3],"DDDo","dayOfYear");qt("DDD",cv);qt("DDDD",sN);nr(["DDD","DDDD"],function(e,t,n){n._dayOfYear=Fn(e)});function Dne(e){var t=Math.round((this.clone().startOf("day")-this.clone().startOf("year"))/864e5)+1;return e==null?t:this.add(e-t,"d")}on("m",["mm",2],0,"minute");qt("m",br,Dx);qt("mm",br,Wa);nr(["m","mm"],Co);var Fne=Oc("Minutes",!1);on("s",["ss",2],0,"second");qt("s",br,Dx);qt("ss",br,Wa);nr(["s","ss"],vi);var Lne=Oc("Seconds",!1);on("S",0,0,function(){return~~(this.millisecond()/100)});on(0,["SS",2],0,function(){return~~(this.millisecond()/10)});on(0,["SSS",3],0,"millisecond");on(0,["SSSS",4],0,function(){return this.millisecond()*10});on(0,["SSSSS",5],0,function(){return this.millisecond()*100});on(0,["SSSSSS",6],0,function(){return this.millisecond()*1e3});on(0,["SSSSSSS",7],0,function(){return this.millisecond()*1e4});on(0,["SSSSSSSS",8],0,function(){return this.millisecond()*1e5});on(0,["SSSSSSSSS",9],0,function(){return this.millisecond()*1e6});qt("S",cv,lN);qt("SS",cv,Wa);qt("SSS",cv,sN);var rl,BN;for(rl="SSSS";rl.length<=9;rl+="S")qt(rl,_c);function Ane(e,t){t[Al]=Fn(("0."+e)*1e3)}for(rl="S";rl.length<=9;rl+="S")nr(rl,Ane);BN=Oc("Milliseconds",!1);on("z",0,0,"zoneAbbr");on("zz",0,0,"zoneName");function zne(){return this._isUTC?"UTC":""}function Bne(){return this._isUTC?"Coordinated Universal Time":""}var ft=Dd.prototype;ft.add=kte;ft.calendar=zte;ft.clone=Bte;ft.diff=Yte;ft.endOf=ane;ft.format=Jte;ft.from=Zte;ft.fromNow=ene;ft.to=tne;ft.toNow=nne;ft.get=QZ;ft.invalidAt=mne;ft.isAfter=Hte;ft.isBefore=Vte;ft.isBetween=Wte;ft.isSame=Kte;ft.isSameOrAfter=Ute;ft.isSameOrBefore=qte;ft.isValid=dne;ft.lang=MN;ft.locale=kN;ft.localeData=TN;ft.max=dte;ft.min=ute;ft.parsingFlags=fne;ft.set=JZ;ft.startOf=rne;ft.subtract=Mte;ft.toArray=sne;ft.toObject=cne;ft.toDate=lne;ft.toISOString=Xte;ft.inspect=Qte;typeof Symbol<"u"&&Symbol.for!=null&&(ft[Symbol.for("nodejs.util.inspect.custom")]=function(){return"Moment<"+this.format()+">"});ft.toJSON=une;ft.toString=Gte;ft.unix=ine;ft.valueOf=one;ft.creationData=pne;ft.eraName=yne;ft.eraNarrow=bne;ft.eraAbbr=xne;ft.eraYear=Sne;ft.year=dN;ft.isLeapYear=XZ;ft.weekYear=One;ft.isoWeekYear=Rne;ft.quarter=ft.quarters=Tne;ft.month=gN;ft.daysInMonth=lee;ft.week=ft.weeks=vee;ft.isoWeek=ft.isoWeeks=gee;ft.weeksInYear=jne;ft.weeksInWeekYear=kne;ft.isoWeeksInYear=Pne;ft.isoWeeksInISOWeekYear=Nne;ft.date=zN;ft.day=ft.days=Ree;ft.weekday=Pee;ft.isoWeekday=Nee;ft.dayOfYear=Dne;ft.hour=ft.hours=Lee;ft.minute=ft.minutes=Fne;ft.second=ft.seconds=Lne;ft.millisecond=ft.milliseconds=BN;ft.utcOffset=xte;ft.utc=Cte;ft.local=wte;ft.parseZone=$te;ft.hasAlignedHourOffset=Ete;ft.isDST=_te;ft.isLocal=Ote;ft.isUtcOffset=Rte;ft.isUtc=RN;ft.isUTC=RN;ft.zoneAbbr=zne;ft.zoneName=Bne;ft.dates=uo("dates accessor is deprecated. Use date instead.",zN);ft.months=uo("months accessor is deprecated. Use month instead",gN);ft.years=uo("years accessor is deprecated. Use year instead",dN);ft.zone=uo("moment().zone is deprecated, use moment().utcOffset instead. http://momentjs.com/guides/#/warnings/zone/",Ste);ft.isDSTShifted=uo("isDSTShifted is deprecated. See http://momentjs.com/guides/#/warnings/dst-shifted/ for more information",Ite);function Hne(e){return yr(e*1e3)}function Vne(){return yr.apply(null,arguments).parseZone()}function HN(e){return e}var Yn=Nx.prototype;Yn.calendar=OZ;Yn.longDateFormat=jZ;Yn.invalidDate=MZ;Yn.ordinal=FZ;Yn.preparse=HN;Yn.postformat=HN;Yn.relativeTime=AZ;Yn.pastFuture=zZ;Yn.set=_Z;Yn.eras=vne;Yn.erasParse=gne;Yn.erasConvertYear=hne;Yn.erasAbbrRegex=wne;Yn.erasNameRegex=Cne;Yn.erasNarrowRegex=$ne;Yn.months=ree;Yn.monthsShort=aee;Yn.monthsParse=iee;Yn.monthsRegex=cee;Yn.monthsShortRegex=see;Yn.week=dee;Yn.firstDayOfYear=pee;Yn.firstDayOfWeek=mee;Yn.weekdays=$ee;Yn.weekdaysMin=_ee;Yn.weekdaysShort=Eee;Yn.weekdaysParse=Oee;Yn.weekdaysRegex=jee;Yn.weekdaysShortRegex=kee;Yn.weekdaysMinRegex=Mee;Yn.isPM=Dee;Yn.meridiem=Aee;function up(e,t,n,r){var a=Oi(),o=Qo().set(r,t);return a[n](o,e)}function VN(e,t,n){if(wi(e)&&(t=e,e=void 0),e=e||"",t!=null)return up(e,t,n,"month");var r,a=[];for(r=0;r<12;r++)a[r]=up(e,r,n,"month");return a}function Gx(e,t,n,r){typeof e=="boolean"?(wi(t)&&(n=t,t=void 0),t=t||""):(t=e,n=t,e=!1,wi(t)&&(n=t,t=void 0),t=t||"");var a=Oi(),o=e?a._week.dow:0,l,c=[];if(n!=null)return up(t,(n+o)%7,r,"day");for(l=0;l<7;l++)c[l]=up(t,(l+o)%7,r,"day");return c}function Wne(e,t){return VN(e,t,"months")}function Kne(e,t){return VN(e,t,"monthsShort")}function Une(e,t,n){return Gx(e,t,n,"weekdays")}function qne(e,t,n){return Gx(e,t,n,"weekdaysShort")}function Yne(e,t,n){return Gx(e,t,n,"weekdaysMin")}ll("en",{eras:[{since:"0001-01-01",until:1/0,offset:1,name:"Anno Domini",narrow:"AD",abbr:"AD"},{since:"0000-12-31",until:-1/0,offset:1,name:"Before Christ",narrow:"BC",abbr:"BC"}],dayOfMonthOrdinalParse:/\d{1,2}(th|st|nd|rd)/,ordinal:function(e){var t=e%10,n=Fn(e%100/10)===1?"th":t===1?"st":t===2?"nd":t===3?"rd":"th";return e+n}});Vt.lang=uo("moment.lang is deprecated. Use moment.locale instead.",ll);Vt.langData=uo("moment.langData is deprecated. Use moment.localeData instead.",Oi);var si=Math.abs;function Gne(){var e=this._data;return this._milliseconds=si(this._milliseconds),this._days=si(this._days),this._months=si(this._months),e.milliseconds=si(e.milliseconds),e.seconds=si(e.seconds),e.minutes=si(e.minutes),e.hours=si(e.hours),e.months=si(e.months),e.years=si(e.years),this}function WN(e,t,n,r){var a=Do(t,n);return e._milliseconds+=r*a._milliseconds,e._days+=r*a._days,e._months+=r*a._months,e._bubble()}function Xne(e,t){return WN(this,e,t,1)}function Qne(e,t){return WN(this,e,t,-1)}function w_(e){return e<0?Math.floor(e):Math.ceil(e)}function Jne(){var e=this._milliseconds,t=this._days,n=this._months,r=this._data,a,o,l,c,d;return e>=0&&t>=0&&n>=0||e<=0&&t<=0&&n<=0||(e+=w_(K0(n)+t)*864e5,t=0,n=0),r.milliseconds=e%1e3,a=ro(e/1e3),r.seconds=a%60,o=ro(a/60),r.minutes=o%60,l=ro(o/60),r.hours=l%24,t+=ro(l/24),d=ro(KN(t)),n+=d,t-=w_(K0(d)),c=ro(n/12),n%=12,r.days=t,r.months=n,r.years=c,this}function KN(e){return e*4800/146097}function K0(e){return e*146097/4800}function Zne(e){if(!this.isValid())return NaN;var t,n,r=this._milliseconds;if(e=fo(e),e==="month"||e==="quarter"||e==="year")switch(t=this._days+r/864e5,n=this._months+KN(t),e){case"month":return n;case"quarter":return n/3;case"year":return n/12}else switch(t=this._days+Math.round(K0(this._months)),e){case"week":return t/7+r/6048e5;case"day":return t+r/864e5;case"hour":return t*24+r/36e5;case"minute":return t*1440+r/6e4;case"second":return t*86400+r/1e3;case"millisecond":return Math.floor(t*864e5)+r;default:throw new Error("Unknown unit "+e)}}function Ri(e){return function(){return this.as(e)}}var UN=Ri("ms"),ere=Ri("s"),tre=Ri("m"),nre=Ri("h"),rre=Ri("d"),are=Ri("w"),ore=Ri("M"),ire=Ri("Q"),lre=Ri("y"),sre=UN;function cre(){return Do(this)}function ure(e){return e=fo(e),this.isValid()?this[e+"s"]():NaN}function is(e){return function(){return this.isValid()?this._data[e]:NaN}}var dre=is("milliseconds"),fre=is("seconds"),mre=is("minutes"),pre=is("hours"),vre=is("days"),gre=is("months"),hre=is("years");function yre(){return ro(this.days()/7)}var di=Math.round,Ws={ss:44,s:45,m:45,h:22,d:26,w:null,M:11};function bre(e,t,n,r,a){return a.relativeTime(t||1,!!n,e,r)}function xre(e,t,n,r){var a=Do(e).abs(),o=di(a.as("s")),l=di(a.as("m")),c=di(a.as("h")),d=di(a.as("d")),f=di(a.as("M")),m=di(a.as("w")),p=di(a.as("y")),v=o<=n.ss&&["s",o]||o0,v[4]=r,bre.apply(null,v)}function Sre(e){return e===void 0?di:typeof e=="function"?(di=e,!0):!1}function Cre(e,t){return Ws[e]===void 0?!1:t===void 0?Ws[e]:(Ws[e]=t,e==="s"&&(Ws.ss=t-1),!0)}function wre(e,t){if(!this.isValid())return this.localeData().invalidDate();var n=!1,r=Ws,a,o;return typeof e=="object"&&(t=e,e=!1),typeof e=="boolean"&&(n=e),typeof t=="object"&&(r=Object.assign({},Ws,t),t.s!=null&&t.ss==null&&(r.ss=t.s-1)),a=this.localeData(),o=xre(this,!n,r,a),n&&(o=a.pastFuture(+this,o)),a.postformat(o)}var my=Math.abs;function As(e){return(e>0)-(e<0)||+e}function hv(){if(!this.isValid())return this.localeData().invalidDate();var e=my(this._milliseconds)/1e3,t=my(this._days),n=my(this._months),r,a,o,l,c=this.asSeconds(),d,f,m,p;return c?(r=ro(e/60),a=ro(r/60),e%=60,r%=60,o=ro(n/12),n%=12,l=e?e.toFixed(3).replace(/\.?0+$/,""):"",d=c<0?"-":"",f=As(this._months)!==As(c)?"-":"",m=As(this._days)!==As(c)?"-":"",p=As(this._milliseconds)!==As(c)?"-":"",d+"P"+(o?f+o+"Y":"")+(n?f+n+"M":"")+(t?m+t+"D":"")+(a||r||e?"T":"")+(a?p+a+"H":"")+(r?p+r+"M":"")+(e?p+l+"S":"")):"P0D"}var Vn=vv.prototype;Vn.isValid=gte;Vn.abs=Gne;Vn.add=Xne;Vn.subtract=Qne;Vn.as=Zne;Vn.asMilliseconds=UN;Vn.asSeconds=ere;Vn.asMinutes=tre;Vn.asHours=nre;Vn.asDays=rre;Vn.asWeeks=are;Vn.asMonths=ore;Vn.asQuarters=ire;Vn.asYears=lre;Vn.valueOf=sre;Vn._bubble=Jne;Vn.clone=cre;Vn.get=ure;Vn.milliseconds=dre;Vn.seconds=fre;Vn.minutes=mre;Vn.hours=pre;Vn.days=vre;Vn.weeks=yre;Vn.months=gre;Vn.years=hre;Vn.humanize=wre;Vn.toISOString=hv;Vn.toString=hv;Vn.toJSON=hv;Vn.locale=kN;Vn.localeData=TN;Vn.toIsoString=uo("toIsoString() is deprecated. Please use toISOString() instead (notice the capitals)",hv);Vn.lang=MN;on("X",0,0,"unix");on("x",0,0,"valueOf");qt("x",dv);qt("X",WZ);nr("X",function(e,t,n){n._d=new Date(parseFloat(e)*1e3)});nr("x",function(e,t,n){n._d=new Date(Fn(e))});//! moment.js +Vt.version="2.30.1";$Z(yr);Vt.fn=ft;Vt.min=fte;Vt.max=mte;Vt.now=pte;Vt.utc=Qo;Vt.unix=Hne;Vt.months=Wne;Vt.isDate=Td;Vt.locale=ll;Vt.invalid=lv;Vt.duration=Do;Vt.isMoment=No;Vt.weekdays=Une;Vt.parseZone=Vne;Vt.localeData=Oi;Vt.isDuration=Dm;Vt.monthsShort=Kne;Vt.weekdaysMin=Yne;Vt.defineLocale=Bx;Vt.updateLocale=Vee;Vt.locales=Wee;Vt.weekdaysShort=qne;Vt.normalizeUnits=fo;Vt.relativeTimeRounding=Sre;Vt.relativeTimeThreshold=Cre;Vt.calendarFormat=Ate;Vt.prototype=ft;Vt.HTML5_FMT={DATETIME_LOCAL:"YYYY-MM-DDTHH:mm",DATETIME_LOCAL_SECONDS:"YYYY-MM-DDTHH:mm:ss",DATETIME_LOCAL_MS:"YYYY-MM-DDTHH:mm:ss.SSS",DATE:"YYYY-MM-DD",TIME:"HH:mm",TIME_SECONDS:"HH:mm:ss",TIME_MS:"HH:mm:ss.SSS",WEEK:"GGGG-[W]WW",MONTH:"YYYY-MM"};const{Title:$re}=vl,{Option:py}=jt,$_=[{value:"activation_date",label:"Activation Date"},{value:"cryptographic_algorithm",label:"Cryptographic Algorithm"},{value:"cryptographic_length",label:"Cryptographic Length"},{value:"key_usage",label:"Key Usage"},{value:"public_key_id",label:"Public Key ID link"},{value:"private_key_id",label:"Private Key ID link"},{value:"certificate_id",label:"Certificate ID link"},{value:"pkcs12_certificate_id",label:"PKCS12 Certificate ID link"},{value:"pkcs12_password_certificate",label:"PKCS12 Password Certificate link"},{value:"parent_id",label:"Parent ID link"},{value:"child_id",label:"Child ID link"}],Ere=[{value:"AES",label:"AES"},{value:"RSA",label:"RSA"},{value:"ECDSA",label:"ECDSA"},{value:"ECDH",label:"ECDH"},{value:"EC",label:"EC"},{value:"ChaCha20",label:"ChaCha20"},{value:"ChaCha20Poly1305",label:"ChaCha20-Poly1305"},{value:"SHA3224",label:"SHA3-224"},{value:"SHA3256",label:"SHA3-256"},{value:"SHA3384",label:"SHA3-384"},{value:"SHA3512",label:"SHA3-512"},{value:"Ed25519",label:"Ed25519"},{value:"Ed448",label:"Ed448"},{value:"CoverCrypt",label:"CoverCrypt"},{value:"CoverCryptBulk",label:"CoverCryptBulk"}],_re=[{value:"Sign",label:"Sign"},{value:"Verify",label:"Verify"},{value:"Encrypt",label:"Encrypt"},{value:"Decrypt",label:"Decrypt"},{value:"WrapKey",label:"Wrap Key"},{value:"UnwrapKey",label:"Unwrap Key"}],Ire=()=>{const[e]=me.useForm(),[t,n]=i.useState(void 0),[r,a]=i.useState(!1),[o,l]=i.useState(void 0),{idToken:c,serverUrl:d}=Bn(),f=i.useRef(null);i.useEffect(()=>{t&&f.current&&f.current.scrollIntoView({behavior:"smooth"})},[t]);const m=h=>{l(h),e.setFieldsValue({attribute_value:void 0})},p=async h=>{a(!0);const b=h.id?h.id:h.tags?JSON.stringify(h.tags):void 0;try{if(b==null)throw n("Missing object identifier."),Error("Missing object identifier");if(!h.attribute_name||!h.attribute_value)throw n("Missing attribute."),Error("Missing attribute");let x=h.attribute_value;if(h.attribute_name==="activation_date"&&x){const w=Vt(x);x=Math.floor(w.valueOf()/1e3).toString()}const y=sZ(b,h.attribute_name,x),C=await ir(y,c,d);if(C){const w=cZ(C);n(`Attribute has been set for ${w.UniqueIdentifier}`)}}catch(x){n(`Error setting attribute: ${x}`),console.error("Error setting attribute:",x)}finally{a(!1)}},v=()=>{var h;if(!o)return S.jsx(St,{placeholder:"First select an attribute name",disabled:!0});switch(o){case"activation_date":return S.jsx(me.Item,{name:"attribute_value",label:"Activation Date",rules:[{required:!0,message:"Please select activation date"}],children:S.jsx(as,{showTime:!0,style:{width:"100%"}})});case"cryptographic_algorithm":return S.jsx(me.Item,{name:"attribute_value",label:"Cryptographic Algorithm",rules:[{required:!0,message:"Please select an algorithm"}],children:S.jsx(jt,{placeholder:"Select algorithm",children:Ere.map(b=>S.jsx(py,{value:b.value,children:b.label},b.value))})});case"cryptographic_length":return S.jsx(me.Item,{name:"attribute_value",label:"Cryptographic Length",rules:[{required:!0,message:"Please enter length"}],children:S.jsx(St,{type:"number",placeholder:"Enter length in bits"})});case"key_usage":return S.jsx(me.Item,{name:"attribute_value",label:"Key Usage",rules:[{required:!0,message:"Please select key usage"}],children:S.jsx(jt,{placeholder:"Select key usage",children:_re.map(b=>S.jsx(py,{value:b.value,children:b.label},b.value))})});case"public_key_id":case"private_key_id":case"certificate_id":case"pkcs12_certificate_id":case"pkcs12_password_certificate":case"parent_id":case"child_id":return S.jsx(me.Item,{name:"attribute_value",label:`${(h=$_.find(b=>b.value===o))==null?void 0:h.label} Value`,rules:[{required:!0,message:"Please enter ID value"}],children:S.jsx(St,{placeholder:"Enter ID value"})});default:return S.jsx(me.Item,{name:"attribute_value",label:"Attribute Value",rules:[{required:!0,message:"Please enter attribute value"}],children:S.jsx(St,{placeholder:"Enter attribute value"})})}};return S.jsxs("div",{className:"p-6",children:[S.jsx($re,{level:2,children:"Set KMIP Object Attribute"}),S.jsxs("div",{className:"mb-8 space-y-2",children:[S.jsx("div",{children:"Set a single attribute for a KMIP object by specifying the object ID or tags."}),S.jsx("div",{className:"text-sm text-yellow-600",children:"When using tags to identify the object, rather than the object ID, an error is returned if multiple objects matching the tags are found."})]}),S.jsx(me,{form:e,onFinish:p,layout:"vertical",initialValues:{},children:S.jsxs(An,{direction:"vertical",size:"middle",style:{display:"flex"},children:[S.jsxs(Je,{title:"Object Identification",children:[S.jsx("div",{className:"mb-5",children:"Specify either the Object ID or one or more tags to identify the object."}),S.jsx(me.Item,{name:"id",label:"Object ID",help:"The unique identifier of the cryptographic object",children:S.jsx(St,{placeholder:"Enter object ID"})}),S.jsx(me.Item,{name:"tags",label:"Tags",help:"Tags to use to retrieve the object when no object ID is specified",children:S.jsx(jt,{mode:"tags",style:{width:"100%"},placeholder:"Enter tags",tokenSeparators:[","]})})]}),S.jsxs(Je,{title:"Attribute Setting",children:[S.jsx("div",{className:"mb-5",children:"Select one attribute to set for the selected KMIP object."}),S.jsx(me.Item,{name:"attribute_name",label:"Attribute Name",rules:[{required:!0,message:"Please select an attribute name"}],help:"Select the KMIP attribute you want to set",children:S.jsx(jt,{placeholder:"Select attribute name",onChange:m,children:$_.map(h=>S.jsx(py,{value:h.value,children:h.label},h.value))})}),v()]}),S.jsx(me.Item,{children:S.jsx(bn,{type:"primary",htmlType:"submit",loading:r,className:"w-full text-white font-medium",children:"Set Attribute"})})]})}),t&&S.jsx(Je,{children:S.jsx("div",{ref:f,children:t})})]})},Ore=[{label:"RSA 1024",value:"rsa1024"},{label:"RSA 2048",value:"rsa2048"},{label:"RSA 3072",value:"rsa3072"},{label:"RSA 4096",value:"rsa4096"},{label:"NIST P-192",value:"nist-p192"},{label:"NIST P-224",value:"nist-p224"},{label:"NIST P-256",value:"nist-p256"},{label:"NIST P-384",value:"nist-p384"},{label:"NIST P-521",value:"nist-p521"},{label:"Ed25519",value:"ed25519"},{label:"Ed448",value:"ed448"}],Rre=()=>{const[e]=me.useForm(),[t,n]=i.useState(void 0),[r,a]=i.useState(!1),[o,l]=i.useState("csr"),{idToken:c,serverUrl:d}=Bn(),f=i.useRef(null);i.useEffect(()=>{t&&f.current&&f.current.scrollIntoView({behavior:"smooth"})},[t]);const m=v=>{l(v.target.value),e.resetFields(["certificateSigningRequest","publicKeyIdToCertify","certificateIdToReCertify","generateKeyPair","subjectName","algorithm","issuerPrivateKeyId","issuerCertificateId","certificateExtensions"]),v.target.value==="generate"&&e.setFieldValue("generateKeyPair",!0)},p=async v=>{a(!0),n(void 0);try{const h=aZ(v.certificateId,v.csrFormat,v.certificateSigningRequest,v.publicKeyIdToCertify,v.certificateIdToReCertify,v.generateKeyPair,v.subjectName,v.algorithm,v.issuerPrivateKeyId,v.issuerCertificateId,v.numberOfDays,v.certificateExtensions,v.tags),b=await ir(h,c,d);if(b){const x=await oZ(b);n(`Certificate successfully created with ID: ${x.UniqueIdentifier}`)}}catch(h){n(`Error certifying certificate: ${h}`),console.error("Error certifying certificate:",h)}finally{a(!1)}};return S.jsxs("div",{className:"p-6",children:[S.jsx("h1",{className:"text-2xl font-bold mb-6",children:"Certificate Issuance and Renewal"}),S.jsxs("div",{className:"mb-8 space-y-2",children:[S.jsx("p",{children:"Issue or renew an X509 certificate using one of four methods:"}),S.jsxs("ol",{className:"list-decimal ml-5",children:[S.jsx("li",{children:"Provide a Certificate Signing Request (CSR)"}),S.jsx("li",{children:"Provide a public key ID to certify"}),S.jsx("li",{children:"Provide the ID of an existing certificate to re-certify"}),S.jsx("li",{children:"Generate a new keypair and create a certificate"})]})]}),S.jsx(me,{form:e,onFinish:p,layout:"vertical",initialValues:{csrFormat:"pem",algorithm:"rsa4096",numberOfDays:365,generateKeyPair:!1,tags:[]},children:S.jsxs(An,{direction:"vertical",size:"middle",style:{display:"flex"},children:[S.jsxs(Je,{children:[S.jsx("h3",{className:"text-m font-bold mb-4",children:"Certificate ID (Optional)"}),S.jsx(me.Item,{name:"certificateId",help:"If not provided, a random one will be generated when issuing a certificate, or the original one will be used when renewing",children:S.jsx(St,{placeholder:"Enter certificate ID"})})]}),S.jsxs(Je,{children:[S.jsx("h3",{className:"text-m font-bold mb-4",children:"Certification Method"}),S.jsx(na.Group,{onChange:m,value:o,children:S.jsxs(An,{direction:"vertical",children:[S.jsx(na,{value:"csr",children:"1. Certificate Signing Request (CSR)"}),S.jsx(na,{value:"publicKey",children:"2. Public Key ID to Certify"}),S.jsx(na,{value:"reCertify",children:"3. Certificate ID to Re-certify"}),S.jsx(na,{value:"generate",children:"4. Generate New Keypair"})]})}),o==="csr"&&S.jsxs("div",{className:"mt-4",children:[S.jsx(me.Item,{name:"certificateSigningRequest",label:"Certificate Signing Request",rules:[{required:!0,message:"Please upload a CSR file"}],children:S.jsx(sa.Dragger,{beforeUpload:v=>{const h=new FileReader;return h.onload=b=>{var y;const x=(y=b.target)==null?void 0:y.result;if(x&&x instanceof ArrayBuffer){const C=new Uint8Array(x);e.setFieldsValue({certificateSigningRequest:C})}},h.readAsArrayBuffer(v),!1},maxCount:1,children:S.jsx("p",{className:"ant-upload-text",children:"Click or drag CSR file to this area"})})}),S.jsx(me.Item,{name:"csrFormat",label:"CSR Format",rules:[{required:!0}],children:S.jsxs(na.Group,{children:[S.jsx(na,{value:"pem",children:"PEM"}),S.jsx(na,{value:"der",children:"DER"})]})})]}),o==="publicKey"&&S.jsxs("div",{className:"mt-4",children:[S.jsx(me.Item,{name:"publicKeyIdToCertify",label:"Public Key ID to Certify",rules:[{required:!0,message:"Please enter a public key ID"}],children:S.jsx(St,{placeholder:"Enter public key ID"})}),S.jsx(me.Item,{name:"subjectName",label:"Subject Name",rules:[{required:!0,message:"Subject name is required"}],help:'For instance: "CN=John Doe,OU=Org Unit,O=Org Name,L=City,ST=State,C=US"',children:S.jsx(St,{placeholder:"CN=John Doe,OU=Org Unit,O=Org Name,L=City,ST=State,C=US"})})]}),o==="reCertify"&&S.jsx("div",{className:"mt-4",children:S.jsx(me.Item,{name:"certificateIdToReCertify",label:"Certificate ID to Re-certify",rules:[{required:!0,message:"Please enter a certificate ID"}],children:S.jsx(St,{placeholder:"Enter certificate ID to re-certify"})})}),o==="generate"&&S.jsxs("div",{className:"mt-4",children:[S.jsx(me.Item,{name:"generateKeyPair",valuePropName:"checked",hidden:!0,children:S.jsx(Jr,{children:"Generate Key Pair"})}),S.jsx(me.Item,{name:"subjectName",label:"Subject Name",rules:[{required:!0,message:"Subject name is required"}],help:'For instance: "CN=John Doe,OU=Org Unit,O=Org Name,L=City,ST=State,C=US"',children:S.jsx(St,{placeholder:"CN=John Doe,OU=Org Unit,O=Org Name,L=City,ST=State,C=US"})}),S.jsx(me.Item,{name:"algorithm",label:"Key Algorithm",rules:[{required:!0,message:"Please select an algorithm"}],children:S.jsx(jt,{options:Ore})})]})]}),S.jsxs(Je,{children:[S.jsx("h3",{className:"text-m font-bold mb-4",children:"Issuer Information"}),S.jsx("p",{className:"text-sm mb-4",children:"If no issuer is provided, the certificate will be self-signed (not valid for CSR)."}),S.jsx(me.Item,{name:"issuerPrivateKeyId",label:"Issuer Private Key ID",help:"The unique identifier of the private key of the issuer",children:S.jsx(St,{placeholder:"Enter issuer private key ID"})}),S.jsx(me.Item,{name:"issuerCertificateId",label:"Issuer Certificate ID",help:"The unique identifier of the certificate of the issuer",children:S.jsx(St,{placeholder:"Enter issuer certificate ID"})})]}),S.jsxs(Je,{children:[S.jsx("h3",{className:"text-m font-bold mb-4",children:"Certificate Options"}),S.jsx(me.Item,{name:"numberOfDays",label:"Validity Period (days)",rules:[{required:!0,message:"Please enter number of days"}],help:"The requested number of validity days (server may grant a different value)",children:S.jsx(St,{type:"number",min:1})}),S.jsx(me.Item,{name:"certificateExtensions",label:"X509 Extensions File",help:"File containing a 'v3_ca' paragraph with X509 extensions",children:S.jsx(sa.Dragger,{beforeUpload:v=>{const h=new FileReader;return h.onload=b=>{var y;const x=(y=b.target)==null?void 0:y.result;if(x&&x instanceof ArrayBuffer){const C=new Uint8Array(x);e.setFieldsValue({certificateExtensions:C})}},h.readAsArrayBuffer(v),!1},maxCount:1,children:S.jsx("p",{className:"ant-upload-text",children:"Click or drag extensions file to this area"})})}),S.jsx(me.Item,{name:"tags",label:"Tags",help:"Tags to associate with the certificate (optional)",children:S.jsx(jt,{mode:"tags",placeholder:"Enter tags",open:!1})})]}),S.jsx(me.Item,{children:S.jsx(bn,{type:"primary",htmlType:"submit",loading:r,className:"w-full text-white font-medium",children:"Issue/Renew Certificate"})})]})}),t&&S.jsx("div",{ref:f,children:S.jsx(Je,{title:"Certificate Response",children:t})})]})},Pre=[{label:"RSA PKCS #1 v1.5 (Legacy)",value:"CkmRsaPkcs"},{label:"RSA OAEP (Recommended)",value:"CkmRsaPkcsOaep"},{label:"RSA AES Key Wrap",value:"CkmRsaAesKeyWrap"}],Nre=()=>{const[e]=me.useForm(),[t,n]=i.useState(void 0),[r,a]=i.useState(!1),{idToken:o,serverUrl:l}=Bn(),c=i.useRef(null);i.useEffect(()=>{t&&c.current&&c.current.scrollIntoView({behavior:"smooth"})},[t]);const d=async f=>{a(!0),n(void 0);const m=f.privateKeyId?f.privateKeyId:f.tags?JSON.stringify(f.tags):void 0;try{if(m==null)throw n("Missing key identifier."),Error("Missing key identifier");const p=rZ(m,f.inputFile,f.authenticationData,f.encryptionAlgorithm),v=await ir(p,o,l);if(v){const h=await kd(v),b=f.fileName.slice(0,-4),y=b.lastIndexOf(".")!==-1?b:`${b}.plain`,C=jd(y);Nd(h.Data,y,C),n("File has been decrypted")}}catch(p){n(`Error decrypting: ${p}`),console.error("Error decrypting:",p)}finally{a(!1)}};return S.jsxs("div",{className:"p-6",children:[S.jsx("h1",{className:"text-2xl font-bold mb-6",children:"Certificate Decryption"}),S.jsxs("div",{className:"mb-8 space-y-2",children:[S.jsx("p",{children:"Decrypt a file using the private key of a certificate."}),S.jsx("p",{children:"The private key can be identified using either its ID or associated tags."}),S.jsx("p",{className:"text-sm text-yellow-600",children:"Note: This operation loads the entire file in memory."})]}),S.jsx(me,{form:e,onFinish:d,layout:"vertical",initialValues:{encryptionAlgorithm:"CkmRsaPkcsOaep"},children:S.jsxs(An,{direction:"vertical",size:"middle",style:{display:"flex"},children:[S.jsxs(Je,{children:[S.jsx("h3",{className:"text-m font-bold mb-4",children:"Input File"}),S.jsx(me.Item,{name:"fileName",style:{display:"none"},children:S.jsx(St,{})}),S.jsx(me.Item,{name:"inputFile",rules:[{required:!0,message:"Please select a file to decrypt"}],children:S.jsx(sa.Dragger,{beforeUpload:f=>{e.setFieldValue("fileName",f.name);const m=new FileReader;return m.onload=p=>{var h;const v=(h=p.target)==null?void 0:h.result;if(v&&v instanceof ArrayBuffer){const b=new Uint8Array(v);e.setFieldsValue({inputFile:b})}},m.readAsArrayBuffer(f),!1},maxCount:1,children:S.jsx("p",{className:"ant-upload-text",children:"Click or drag file to this area to decrypt"})})})]}),S.jsxs(Je,{children:[S.jsx("h3",{className:"text-m font-bold mb-4",children:"Private Key Identification (required)"}),S.jsx(me.Item,{name:"privateKeyId",label:"Private Key ID",help:"The unique identifier of the private key related to certificate",children:S.jsx(St,{placeholder:"Enter private key ID"})}),S.jsx(me.Item,{name:"tags",label:"Tags",help:"Alternative to Key ID: specify tags to identify the key",children:S.jsx(jt,{mode:"tags",placeholder:"Enter tags",open:!1})})]}),S.jsxs(Je,{children:[S.jsx(me.Item,{name:"encryptionAlgorithm",label:"Encryption Algorithm",help:"Optional: This is only available for RSA keys (default is PKCS_OAEP)",children:S.jsx(jt,{options:Pre})}),S.jsx(me.Item,{name:"authenticationData",label:"Authentication Data",help:"Optional: Authentication data that was supplied during encryption",children:S.jsx(St,{placeholder:"Enter authentication data"})}),S.jsx(me.Item,{name:"outputFile",label:"Output File Path",help:"Optional: Specify a custom output file path",children:S.jsx(St,{placeholder:"Enter output file path"})})]}),S.jsx(me.Item,{children:S.jsx(bn,{type:"primary",htmlType:"submit",loading:r,className:"w-full text-white font-medium",children:"Decrypt File"})})]})}),t&&S.jsx("div",{ref:c,children:S.jsx(Je,{title:"Certificate decrypt response",children:t})})]})},jre=()=>{const[e]=me.useForm(),[t,n]=i.useState(void 0),[r,a]=i.useState(!1),{idToken:o,serverUrl:l}=Bn(),c=i.useRef(null);i.useEffect(()=>{t&&c.current&&c.current.scrollIntoView({behavior:"smooth"})},[t]);const d=async f=>{a(!0),n(void 0);const m=f.certificateId?f.certificateId:f.tags?JSON.stringify(f.tags):void 0;try{if(m==null)throw n("Missing certificate identifier."),Error("Missing certificate identifier");const p=nZ(m,f.inputFile,f.authenticationData,f.encryptionAlgorithm),v=await ir(p,o,l);if(v){const h=await Md(v),b=new Uint8Array(h.Data),x="application/octet-stream";let y;f.outputFile?y=f.outputFile:y=`${f.fileName}.enc`,os(b,y,x),n("File has been encrypted")}}catch(p){n(`Error encrypting: ${p}`),console.error("Error encrypting with certificate:",p)}finally{a(!1)}};return S.jsxs("div",{className:"p-6",children:[S.jsx("h1",{className:"text-2xl font-bold mb-6",children:"Certificate Encryption"}),S.jsxs("div",{className:"mb-8 space-y-2",children:[S.jsx("p",{children:"Encrypt a file using the certificate public key."}),S.jsx("p",{children:"The certificate can be identified using either its ID or associated tags."}),S.jsx("p",{className:"text-sm text-yellow-600",children:"Note: This operation loads the entire file in memory."})]}),S.jsx(me,{form:e,onFinish:d,layout:"vertical",className:"space-y-6",initialValues:{encryptionAlgorithm:"CkmRsaPkcsOaep"},children:S.jsxs(An,{direction:"vertical",size:"middle",style:{display:"flex"},children:[S.jsxs(Je,{children:[S.jsx("h3",{className:"text-m font-bold mb-4",children:"Input File"}),S.jsx(me.Item,{name:"fileName",style:{display:"none"},children:S.jsx(St,{})}),S.jsx(me.Item,{name:"inputFile",rules:[{required:!0,message:"Please select a file to encrypt"}],children:S.jsx(sa.Dragger,{beforeUpload:f=>{e.setFieldValue("fileName",f.name);const m=new FileReader;return m.onload=p=>{var h;const v=(h=p.target)==null?void 0:h.result;if(v&&v instanceof ArrayBuffer){const b=new Uint8Array(v);e.setFieldsValue({inputFile:b})}},m.readAsArrayBuffer(f),!1},maxCount:1,children:S.jsx("p",{className:"ant-upload-text",children:"Click or drag file to this area to encrypt"})})})]}),S.jsxs(Je,{children:[S.jsx("h3",{className:"text-m font-bold mb-4",children:"Certificate Identification (required)"}),S.jsx(me.Item,{name:"certificateId",label:"Certificate ID",help:"The unique identifier of the certificate",children:S.jsx(St,{placeholder:"Enter certificate ID"})}),S.jsx(me.Item,{name:"tags",label:"Tags",help:"Alternative to Certificate ID: specify tags to identify the certificate",children:S.jsx(jt,{mode:"tags",placeholder:"Enter tags",open:!1})})]}),S.jsxs(Je,{children:[S.jsx("h3",{className:"text-m font-bold mb-4",children:"Encryption Options"}),S.jsx(me.Item,{name:"authenticationData",label:"Authentication Data",help:"Optional: this data needs to be provided back for decryption",children:S.jsx(St.TextArea,{placeholder:"Enter authentication data",rows:2})}),S.jsx(me.Item,{name:"encryptionAlgorithm",label:"Encryption Algorithm",help:"Optional: only available for RSA keys. Default is PKCS#1 RSA OAEP",children:S.jsxs(na.Group,{children:[S.jsx(na,{value:"CkmRsaPkcsOaep",children:"PKCS#1 RSA OAEP"}),S.jsx(na,{value:"CkmRsaPkcs",children:"PKCS#1 v1.5 RSA"}),S.jsx(na,{value:"CkmRsaAesKeyWrap",children:"RSA AES Key Wrap"})]})}),S.jsx(me.Item,{name:"outputFile",label:"Output File Path",help:"Optional: specify a custom output file path",children:S.jsx(St,{placeholder:"Enter output file path"})})]}),S.jsx(me.Item,{children:S.jsx(bn,{type:"primary",htmlType:"submit",loading:r,className:"w-full text-white font-medium",children:"Encrypt File with Certificate"})})]})}),t&&S.jsx("div",{ref:c,children:S.jsx(Je,{title:"Certificate encrypt response",children:t})})]})},kre={JsonTtlv:"json",Pem:"pem",Pkcs12:"p12",Pkcs12Legacy:"p12",Pkcs7:"p7b"},Mre=()=>{const[e]=me.useForm(),[t,n]=i.useState(void 0),[r,a]=i.useState(!1),[o,l]=i.useState("JsonTtlv"),{idToken:c,serverUrl:d}=Bn(),f=i.useRef(null);i.useEffect(()=>{t&&f.current&&f.current.scrollIntoView({behavior:"smooth"})},[t]);const m=h=>{l(h)},p=async h=>{a(!0),n(void 0);const b=h.certificateId?h.certificateId:h.tags?JSON.stringify(h.tags):void 0;try{if(b==null)throw n("Missing certificate identifier."),Error("Missing certificate identifier");const x=JJ(b,h.outputFormat,h.pkcs12Password),y=await ir(x,c,d);if(y){const C=await ZJ(y,h.outputFormat),w=`certificate_${b}.${kre[h.outputFormat]}`;let E;switch(h.outputFormat){case"JsonTtlv":E="application/json";break;case"Pem":E="application/x-pem-file";break;case"Pkcs12":case"Pkcs12Legacy":E="application/x-pkcs12";break;case"Pkcs7":E="application/x-pkcs7-certificates";break;default:E="application/octet-stream"}os(C,w,E),n("Certificate has been exported")}}catch(x){n(`Error exporting certificate: ${x}`),console.error("Error exporting certificate:",x)}finally{a(!1)}},v=[{label:"JSON TTLV (default)",value:"JsonTtlv"},{label:"X509 PEM",value:"Pem"},{label:"PKCS12 (with private key)",value:"Pkcs12"},{label:"PKCS12 Legacy (compatible with openssl 1.x)",value:"Pkcs12Legacy"},{label:"PKCS7 (certificate chain)",value:"Pkcs7"}];return S.jsxs("div",{className:"p-6",children:[S.jsx("h1",{className:"text-2xl font-bold mb-6",children:"Export Certificate"}),S.jsxs("div",{className:"mb-8 space-y-2",children:[S.jsx("p",{children:"Export a certificate from the KMS. The certificate can be identified using either its ID or associated tags."}),S.jsx("p",{children:"For PKCS#12 formats, provide the private key ID instead of certificate ID."}),S.jsx("p",{className:"text-sm text-yellow-600",children:"Note: PKCS12-legacy format is not available in FIPS mode."})]}),S.jsx(me,{form:e,onFinish:p,layout:"vertical",initialValues:{outputFormat:"JsonTtlv"},children:S.jsxs(An,{direction:"vertical",size:"middle",style:{display:"flex"},children:[S.jsxs(Je,{children:[S.jsx("h3",{className:"text-m font-bold mb-4",children:"Certificate Identification (required)"}),S.jsx(me.Item,{name:"certificateId",label:"Certificate ID",help:"The unique identifier of the certificate stored in the KMS. For PKCS#12, provide the private key ID.",children:S.jsx(St,{placeholder:"Enter certificate ID"})}),S.jsx(me.Item,{name:"tags",label:"Tags",help:"Alternative to Certificate ID: specify tags to identify the certificate",children:S.jsx(jt,{mode:"tags",placeholder:"Enter tags",open:!1})})]}),S.jsx(Je,{children:S.jsx(me.Item,{name:"outputFormat",label:"Certificate Format",help:"Format for the exported certificate. JSON TTLV is recommended for later re-import.",rules:[{required:!0}],children:S.jsx(jt,{options:v,onChange:m})})}),(o==="Pkcs12"||o==="Pkcs12Legacy")&&S.jsx(Je,{children:S.jsx(me.Item,{name:"pkcs12Password",label:"PKCS#12 Password",help:"Password to protect the PKCS#12 file",rules:[{required:!0}],children:S.jsx(St.Password,{placeholder:"Enter password for PKCS#12"})})}),S.jsx(me.Item,{children:S.jsx(bn,{type:"primary",htmlType:"submit",loading:r,className:"w-full text-white font-medium",children:"Export Certificate"})})]})}),t&&S.jsx("div",{ref:f,children:S.jsx(Je,{title:"Certificate export response",children:t})})]})},Tre=()=>{const[e]=me.useForm(),[t,n]=i.useState(void 0),[r,a]=i.useState(!1),[o,l]=i.useState("JsonTtlv"),{idToken:c,serverUrl:d}=Bn(),f=i.useRef(null);i.useEffect(()=>{t&&f.current&&f.current.scrollIntoView({behavior:"smooth"})},[t]);const m=async y=>{a(!0),n(void 0);try{if(y.certificateFile){const C=QJ(y.certificateId,y.certificateFile,y.inputFormat,y.privateKeyId,y.publicKeyId,y.issuerCertificateId,y.pkcs12Password,y.replaceExisting,y.tags,y.keyUsage),w=await ir(C,c,d);if(w){const E=await eN(w);n(`Certificate has been imported - imported object id: ${E.UniqueIdentifier}`)}}else throw n("Certificate file is required for the selected format"),Error("Certificate file is required")}catch(C){n(`Error importing certificate: ${C}`),console.error("Error importing certificate:",C)}finally{a(!1)}},p=[{label:"JSON TTLV (default)",value:"JsonTtlv"},{label:"X509 PEM",value:"Pem"},{label:"X509 DER",value:"Der"},{label:"PKCS#12",value:"Pkcs12"}],v=[{label:"Sign",value:"sign"},{label:"Verify",value:"verify"},{label:"Encrypt",value:"encrypt"},{label:"Decrypt",value:"decrypt"},{label:"Wrap",value:"wrap"},{label:"Unwrap",value:"unwrap"}],h=y=>{l(y)},b=o==="Pkcs12",x=!["Pkcs12"].includes(o);return S.jsxs("div",{className:"p-6",children:[S.jsx("h1",{className:"text-2xl font-bold mb-6",children:"Import Certificate"}),S.jsxs("div",{className:"mb-8 space-y-2",children:[S.jsx("p",{children:"Import a certificate or PKCS#12 file, into the KMS."}),S.jsx("p",{children:"When no unique ID is specified, a unique ID based on the key material will be generated."})]}),S.jsx(me,{form:e,onFinish:m,layout:"vertical",initialValues:{inputFormat:"JsonTtlv",replaceExisting:!1,tags:[]},children:S.jsxs(An,{direction:"vertical",size:"middle",style:{display:"flex"},children:[S.jsxs(Je,{children:[S.jsx(me.Item,{name:"inputFormat",label:"Certificate Format",help:"Format of the certificate to import",rules:[{required:!0}],children:S.jsx(jt,{options:p,onChange:y=>h(y)})}),S.jsx(me.Item,{name:"certificateFile",label:"Certificate File",rules:[{required:!0,message:"Please upload a certificate file"}],help:`Upload the certificate file in ${o} format`,children:S.jsx(sa,{beforeUpload:y=>{const C=new FileReader;return C.onload=w=>{var I;const E=(I=w.target)==null?void 0:I.result;if(E&&E instanceof ArrayBuffer){const _=new Uint8Array(E);e.setFieldsValue({certificateFile:_})}},C.readAsArrayBuffer(y),!1},maxCount:1,children:S.jsx(bn,{icon:S.jsx(rP,{}),children:"Upload Certificate File"})})}),S.jsx(me.Item,{name:"certificateId",label:"Certificate ID",help:"Optional: A unique ID based on the key material will be generated if not specified",children:S.jsx(St,{placeholder:"Enter certificate ID"})}),b&&S.jsx(me.Item,{name:"pkcs12Password",label:"PKCS#12 Password",rules:[{required:!0}],help:"Password for the PKCS#12 file",children:S.jsx(St.Password,{placeholder:"Enter PKCS#12 password"})})]}),x&&S.jsxs(Je,{children:[S.jsx("h3",{className:"text-m font-bold mb-4",children:"Certificate Relationships"}),S.jsx(me.Item,{name:"privateKeyId",label:"Private Key ID",help:"Link to corresponding private key in KMS",children:S.jsx(St,{placeholder:"Enter private key ID"})}),S.jsx(me.Item,{name:"publicKeyId",label:"Public Key ID",help:"Link to corresponding public key in KMS",children:S.jsx(St,{placeholder:"Enter public key ID"})}),S.jsx(me.Item,{name:"issuerCertificateId",label:"Issuer Certificate ID",help:"Link to issuer certificate in KMS",children:S.jsx(St,{placeholder:"Enter issuer certificate ID"})})]}),S.jsxs(Je,{children:[S.jsx(me.Item,{name:"keyUsage",label:"Key Usage",help:"Specify allowed operations for this certificate",children:S.jsx(jt,{mode:"multiple",options:v,placeholder:"Select key usage"})}),S.jsx(me.Item,{name:"tags",label:"Tags",help:"Optional: Add tags to help retrieve the certificate later",children:S.jsx(jt,{mode:"tags",placeholder:"Enter tags",open:!1})}),S.jsx(me.Item,{name:"replaceExisting",valuePropName:"checked",help:"Replace an existing certificate with the same ID",children:S.jsx(Jr,{children:"Replace existing certificate"})})]}),S.jsx(me.Item,{children:S.jsx(bn,{type:"primary",htmlType:"submit",loading:r,className:"w-full text-white font-medium",children:"Import Certificate"})})]})}),t&&S.jsx("div",{ref:f,children:S.jsx(Je,{title:"Certificate import response",children:t})})]})},Dre=()=>{const[e]=me.useForm(),[t,n]=i.useState(!1),[r,a]=i.useState(void 0),{idToken:o,serverUrl:l}=Bn(),c=i.useRef(null);i.useEffect(()=>{r&&c.current&&c.current.scrollIntoView({behavior:"smooth"})},[r]);const d=async f=>{n(!0),a(void 0);try{const m=f.validityTime?f.validityTime.toISOString():void 0,p=eZ(f.uniqueIdentifier,m),v=await ir(p,o,l);if(v){const h=await tZ(v);a(`Validation Status: ${h.ValidityIndicator}`)}}catch(m){a(`Error validating certificate: ${m}`),console.error("Error validating certificate:",m)}finally{n(!1)}};return S.jsxs("div",{className:"p-6",children:[S.jsx("h1",{className:"text-2xl font-bold mb-6",children:"Validate Certificates"}),S.jsxs("div",{className:"mb-8 space-y-2",children:[S.jsx("p",{children:"Validate certificate chains to ensure they are properly signed, complete, and valid."}),S.jsx("p",{children:"You can specify certificate IDs stored in the KMS."})]}),S.jsx(me,{form:e,onFinish:d,layout:"vertical",children:S.jsxs(An,{direction:"vertical",size:"middle",style:{display:"flex"},children:[S.jsxs(Je,{children:[S.jsx("h3",{className:"text-m font-bold mb-4",children:"Certificate Input"}),S.jsx(me.Item,{name:"uniqueIdentifier",label:"Certificate Unique Identifier",help:"Unique identifier of certificate stored in the KMS",rules:[{required:!0}],children:S.jsx(St,{placeholder:"Enter certificate ID"})})]}),S.jsxs(Je,{children:[S.jsx("h3",{className:"text-m font-bold mb-4",children:"Validation Parameters"}),S.jsx(me.Item,{name:"validityTime",label:"Validity Time",help:"The time at which the certificate chain needs to be valid (defaults to current time if omitted)",children:S.jsx(as,{showTime:!0,format:"YYYY-MM-DD HH:mm:ss"})})]}),S.jsx(me.Item,{children:S.jsx(bn,{type:"primary",htmlType:"submit",loading:t,className:"w-full text-white font-medium",children:"Validate Certificate"})})]})}),r&&S.jsx("div",{ref:c,children:S.jsx(Je,{title:"Validation Results",children:r})})]})},Fre=()=>{const[e]=me.useForm(),[t,n]=i.useState(void 0),[r,a]=i.useState(!1),{idToken:o,serverUrl:l}=Bn(),c=i.useRef(null);i.useEffect(()=>{t&&c.current&&c.current.scrollIntoView({behavior:"smooth"})},[t]);const d=async f=>{a(!0),n(void 0);const m=f.keyId?f.keyId:f.tags?JSON.stringify(f.tags):void 0;try{if(m==null)throw n("Missing key identifier."),Error("Missing key identifier");const p=XJ(m,f.inputFile,f.authenticationData),v=await ir(p,o,l);if(v){const h=await kd(v),b=new Uint8Array(h.Data),x=f.fileName.slice(0,-4),C=x.lastIndexOf(".")!==-1?x:`${x}.plain`,w=jd(C);Nd(b,C,w),n("File has been decrypted")}}catch(p){n(`Error decrypting: ${p}`),console.error("Error decrypting:",p)}finally{a(!1)}};return S.jsxs("div",{className:"p-6",children:[S.jsx("h1",{className:"text-2xl font-bold mb-6",children:"Covercrypt Decryption"}),S.jsxs("div",{className:"mb-8 space-y-2",children:[S.jsx("p",{children:"Decrypt a file using Covercrypt."}),S.jsx("p",{children:"The key can be identified using either its ID or associated tags."}),S.jsx("p",{className:"text-sm text-yellow-600",children:"Note: This operation loads the entire file in memory."})]}),S.jsx(me,{form:e,onFinish:d,layout:"vertical",children:S.jsxs(An,{direction:"vertical",size:"middle",style:{display:"flex"},children:[S.jsxs(Je,{children:[S.jsx("h3",{className:"text-m font-bold mb-4",children:"Input File"}),S.jsx(me.Item,{name:"fileName",style:{display:"none"},children:S.jsx(St,{})}),S.jsx(me.Item,{name:"inputFile",rules:[{required:!0,message:"Please select a file to decrypt"}],children:S.jsx(sa.Dragger,{beforeUpload:f=>{e.setFieldValue("fileName",f.name);const m=new FileReader;return m.onload=p=>{var h;const v=(h=p.target)==null?void 0:h.result;if(v&&v instanceof ArrayBuffer){const b=new Uint8Array(v);e.setFieldsValue({inputFile:b})}},m.readAsArrayBuffer(f),!1},maxCount:1,children:S.jsx("p",{className:"ant-upload-text",children:"Click or drag file to this area to decrypt"})})})]}),S.jsxs(Je,{children:[S.jsx("h3",{className:"text-m font-bold mb-4",children:"Key Identification (required)"}),S.jsx(me.Item,{name:"keyId",label:"Key ID",help:"The unique identifier of the user decryption key",children:S.jsx(St,{placeholder:"Enter key ID"})}),S.jsx(me.Item,{name:"tags",label:"Tags",help:"Alternative to Key ID: specify tags to identify the key",children:S.jsx(jt,{mode:"tags",placeholder:"Enter tags",open:!1})})]}),S.jsxs(Je,{children:[S.jsx("h3",{className:"text-m font-bold mb-4",children:"Additional Options"}),S.jsx(me.Item,{name:"authenticationData",label:"Authentication Data",help:"Optional: authentication data that was supplied during encryption",children:S.jsx(St.TextArea,{placeholder:"Enter authentication data",rows:2})})]}),S.jsx(me.Item,{children:S.jsx(bn,{type:"primary",htmlType:"submit",loading:r,className:"w-full text-white font-medium",children:"Decrypt File"})})]})}),t&&S.jsx("div",{ref:c,children:S.jsx(Je,{title:"Covercrypt decrypt response",children:t})})]})},Lre=()=>{const[e]=me.useForm(),[t,n]=i.useState(void 0),[r,a]=i.useState(!1),{idToken:o,serverUrl:l}=Bn(),c=i.useRef(null);i.useEffect(()=>{t&&c.current&&c.current.scrollIntoView({behavior:"smooth"})},[t]);const d=async f=>{a(!0),n(void 0);const m=f.keyId?f.keyId:f.tags?JSON.stringify(f.tags):void 0;try{if(m==null)throw n("Missing key identifier."),Error("Missing key identifier");const p=GJ(m,f.encryptionPolicy,f.inputFile,f.authenticationData),v=await ir(p,o,l);if(v){const h=await Md(v),b=new Uint8Array(h.Data),x="application/octet-stream",y=`${f.fileName}.enc`;os(b,y,x),n("File has been encrypted")}}catch(p){n(`Error encrypting: ${p}`),console.error("Error encrypting:",p)}finally{a(!1)}};return S.jsxs("div",{className:"p-6",children:[S.jsx("h1",{className:"text-2xl font-bold mb-6",children:"Covercrypt Encryption"}),S.jsxs("div",{className:"mb-8 space-y-2",children:[S.jsx("p",{children:"Encrypt a file using Covercrypt."}),S.jsx("p",{children:"The key can be identified using either its ID or associated tags."}),S.jsx("p",{className:"text-sm text-yellow-600",children:"Note: This operation loads the entire file in memory."})]}),S.jsx(me,{form:e,onFinish:d,layout:"vertical",children:S.jsxs(An,{direction:"vertical",size:"middle",style:{display:"flex"},children:[S.jsxs(Je,{children:[S.jsx("h3",{className:"text-m font-bold mb-4",children:"Input File"}),S.jsx(me.Item,{name:"fileName",style:{display:"none"},children:S.jsx(St,{})}),S.jsx(me.Item,{name:"inputFile",rules:[{required:!0,message:"Please select a file to encrypt"}],children:S.jsx(sa.Dragger,{beforeUpload:f=>{e.setFieldValue("fileName",f.name);const m=new FileReader;return m.onload=p=>{var h;const v=(h=p.target)==null?void 0:h.result;if(v&&v instanceof ArrayBuffer){const b=new Uint8Array(v);e.setFieldsValue({inputFile:b})}},m.readAsArrayBuffer(f),!1},maxCount:1,children:S.jsx("p",{className:"ant-upload-text",children:"Click or drag file to this area to encrypt"})})})]}),S.jsxs(Je,{children:[S.jsx("h3",{className:"text-m font-bold mb-4",children:"Encryption Policy (required)"}),S.jsx(me.Item,{name:"encryptionPolicy",rules:[{required:!0,message:"Please enter an encryption policy"}],help:"Example: Department::HR && Security Level::Confidential",children:S.jsx(St.TextArea,{placeholder:"Enter encryption policy",rows:2})})]}),S.jsxs(Je,{children:[S.jsx("h3",{className:"text-m font-bold mb-4",children:"Key Identification (required)"}),S.jsx(me.Item,{name:"keyId",label:"Key ID",help:"The unique identifier of the master public key",children:S.jsx(St,{placeholder:"Enter key ID"})}),S.jsx(me.Item,{name:"tags",label:"Tags",help:"Alternative to Key ID: specify tags to identify the key",children:S.jsx(jt,{mode:"tags",placeholder:"Enter tags",open:!1})})]}),S.jsxs(Je,{children:[S.jsx("h3",{className:"text-m font-bold mb-4",children:"Additional Options"}),S.jsx(me.Item,{name:"authenticationData",label:"Authentication Data",help:"Optional: this data needs to be provided back for decryption",children:S.jsx(St.TextArea,{placeholder:"Enter authentication data",rows:2})})]}),S.jsx(me.Item,{children:S.jsx(bn,{type:"primary",htmlType:"submit",loading:r,className:"w-full text-white font-medium",children:"Encrypt File"})})]})}),t&&S.jsx("div",{ref:c,children:S.jsx(Je,{title:"Covercrypt encrypt response",children:t})})]})},Are=`{ + "Security Level::<": [ + "Protected", + "Confidential", + "Top Secret::+" + ], + "Department": [ + "R&D", + "HR", + "MKG", + "FIN" + ] +}`,zre=()=>{const[e]=me.useForm(),[t,n]=be.useState("json-file"),[r,a]=i.useState(void 0),[o,l]=i.useState(!1),{idToken:c,serverUrl:d}=Bn(),f=i.useRef(null);i.useEffect(()=>{r&&f.current&&f.current.scrollIntoView({behavior:"smooth"})},[r]);const m=async v=>{l(!0),a(void 0);try{const h=qJ(v.specification,v.tags,v.sensitive),b=await ir(h,c,d);if(b){const x=await Ix(b);a(`Key pair has been created. Private key Id: ${x.PrivateKeyUniqueIdentifier} - Public key Id: ${x.PublicKeyUniqueIdentifier}`)}}catch(h){a(`${h}`),console.error(h)}finally{l(!1)}},p=()=>S.jsxs("div",{className:"mt-2 space-y-1",children:[S.jsx("p",{className:"font-medium",children:"This example creates a specification with:"}),S.jsxs("ul",{className:"list-disc pl-5 space-y-1",children:[S.jsxs("li",{children:["Two specification axes: ",S.jsx("code",{children:"Security Level"})," and ",S.jsx("code",{children:"Department"})]}),S.jsxs("li",{children:["Hierarchical ",S.jsx("code",{children:"Security Level"})," axis (indicated by ",S.jsx("code",{children:"::<"})," suffix)"]}),S.jsx("li",{children:"Three security levels: Protected, Confidential, and Top Secret"}),S.jsx("li",{children:"Four departments: R&D, HR, MKG, and FIN"}),S.jsxs("li",{children:["Post-quantum encryption for Top Secret level (indicated by ",S.jsx("code",{children:"::+"})," suffix)"]}),S.jsx("li",{children:"Classic cryptography for other levels"})]})]});return S.jsxs("div",{className:"p-6",children:[S.jsx("h1",{className:"text-2xl font-bold mb-6",children:"Create a Covercrypt master key pair"}),S.jsxs("div",{className:"mb-8 space-y-2",children:[S.jsx("p",{children:"Create a new master key pair for a given specification."}),S.jsxs("ul",{className:"list-disc pl-5 space-y-1",children:[S.jsx("li",{children:"The master public key is used to encrypt files and can be safely shared"}),S.jsx("li",{children:"The master secret key is used to generate user decryption keys and must be kept confidential"})]})]}),S.jsx(me,{form:e,onFinish:m,layout:"vertical",initialValues:{sensitive:!1,tags:[]},children:S.jsxs(An,{direction:"vertical",size:"middle",style:{display:"flex"},children:[S.jsxs(Je,{children:[S.jsxs("div",{className:"p-4 rounded-lg space-y-4",children:[S.jsx("h3",{className:"text-m font-bold mb-4",children:"Specification Configuration (required)"}),S.jsx(me.Item,{name:"specification",style:{display:"none"},children:S.jsx(St,{})}),S.jsx(me.Item,{children:S.jsx(jt,{value:t,onChange:v=>n(v),options:[{label:"Upload JSON Specification File",value:"json-file"},{label:"Enter JSON Specification",value:"json-text"}]})}),t==="json-file"&&S.jsx(me.Item,{name:"specificationFile",rules:[{required:!0,message:"Please provide specifications"}],children:S.jsx(sa.Dragger,{accept:".json",beforeUpload:v=>{const h=new FileReader;return h.onload=b=>{var y;const x=(y=b.target)==null?void 0:y.result;x&&e.setFieldsValue({specification:x})},h.readAsText(v),!1},maxCount:1,children:S.jsx("p",{className:"ant-upload-text",children:"Click or drag JSON specification file"})})}),t==="json-text"&&S.jsx(me.Item,{name:"specificationText",rules:[{required:!0,message:"Please enter specification JSON"},{validator:async(v,h)=>{if(h)try{JSON.parse(h),e.setFieldValue("specification",h)}catch(b){throw new Error(`Invalid JSON format: ${b}`)}}}],children:S.jsx(St.TextArea,{placeholder:"Paste your JSON Specification here",rows:10,className:"font-mono text-sm"})})]}),S.jsxs("div",{className:"p-4 rounded mb-4",children:[S.jsx("p",{className:"text-sm mb-2",children:"Example Specification Format:"}),S.jsx("pre",{className:"p-2 rounded text-xs overflow-auto",children:Are}),S.jsx(p,{})]}),S.jsx(me.Item,{name:"tags",label:"Tags",help:"Optional tags to help retrieve the keys later",children:S.jsx(jt,{mode:"tags",placeholder:"Enter tags",open:!1})}),S.jsx(me.Item,{name:"sensitive",valuePropName:"checked",help:"If enabled, the private key will not be exportable",children:S.jsx(Jr,{children:S.jsx("span",{children:"Sensitive Key"})})})]}),S.jsx(me.Item,{children:S.jsx(bn,{type:"primary",htmlType:"submit",loading:o,className:"w-full text-white font-medium",children:"Create Master Key pair"})})]})}),r&&S.jsx("div",{ref:f,children:S.jsx(Je,{title:"Covercrypt Master keys creation response",children:r})})]})},Bre=`Department::HR && Security Level::Confidential + +More examples: +(Department::MKG && Security Level::Confidential) || (Department::HR && Security Level::Protected)`,Hre=()=>{const[e]=me.useForm(),[t,n]=i.useState(void 0),[r,a]=i.useState(!1),{idToken:o,serverUrl:l}=Bn(),c=i.useRef(null);i.useEffect(()=>{t&&c.current&&c.current.scrollIntoView({behavior:"smooth"})},[t]);const d=async f=>{a(!0),n(void 0);try{const m=YJ(f.masterPrivateKeyId,f.accessPolicy,f.tags,f.sensitive),p=await ir(m,o,l);if(p){const v=await ZP(p);n(`${v.UniqueIdentifier} has been created.`)}}catch(m){n(`${m}`),console.error(m)}finally{a(!1)}};return S.jsxs("div",{className:"p-6",children:[S.jsx("h1",{className:"text-2xl font-bold mb-6",children:"Create a Covercrypt user key"}),S.jsxs("div",{className:"mb-8 space-y-2",children:[S.jsx("p",{children:"Create a new user decryption key with specific access rights."}),S.jsx("p",{children:"The access policy is a boolean expression combining policy attributes."})]}),S.jsx(me,{form:e,onFinish:d,layout:"vertical",initialValues:{sensitive:!1,tags:[]},children:S.jsxs(An,{direction:"vertical",size:"middle",style:{display:"flex"},children:[S.jsx(Je,{children:S.jsxs("div",{className:"p-4 rounded-lg space-y-4",children:[S.jsx("h3",{className:"text-m font-bold mb-4",children:"Key Configuration"}),S.jsx(me.Item,{name:"masterPrivateKeyId",label:"Master Private Key ID",help:"The unique identifier of the master private key",rules:[{required:!0,message:"Please enter master private key ID"}],children:S.jsx(St,{placeholder:"Enter master private key ID"})}),S.jsx(me.Item,{name:"accessPolicy",label:"Access Policy",help:S.jsxs("div",{className:"text-sm space-y-2",children:[S.jsx("p",{children:"Boolean expression combining policy attributes"}),S.jsxs("div",{className:"p-3 rounded",children:[S.jsx("p",{className:"font-medium mb-2",children:"Example formats:"}),S.jsx("pre",{className:"text-xs whitespace-pre-wrap",children:Bre}),S.jsx("p",{className:"mt-2 text-xs",children:'Note: A user with "Confidential" access will also have access to "Protected" data due to hierarchy.'})]}),S.jsxs("ul",{className:"list-disc pl-5 mt-2 space-y-1",children:[S.jsxs("li",{children:["Use ",S.jsx("code",{children:"&&"})," for AND, ",S.jsx("code",{children:"||"})," for OR"]}),S.jsx("li",{children:"Group expressions with parentheses"}),S.jsx("li",{children:"Use exact attribute names from the policy"})]})]}),rules:[{required:!0,message:"Please enter access policy"}],children:S.jsx(St.TextArea,{placeholder:"Enter access policy expression",rows:4,className:"font-mono text-sm"})})]})}),S.jsxs(Je,{children:[S.jsx(me.Item,{name:"tags",label:"Tags",help:"Optional tags to help retrieve the key later",children:S.jsx(jt,{mode:"tags",placeholder:"Enter tags",open:!1})}),S.jsx(me.Item,{name:"sensitive",valuePropName:"checked",help:"If enabled, the key will not be exportable",children:S.jsx(Jr,{children:S.jsx("span",{children:"Sensitive Key"})})})]}),S.jsx(me.Item,{children:S.jsx(bn,{type:"primary",htmlType:"submit",loading:r,className:"w-full text-white font-medium",children:"Create User Key"})})]})}),t&&S.jsx("div",{ref:c,children:S.jsx(Je,{title:"Covercrypt User key creation response",children:t})})]})},Vre=()=>{const[e]=me.useForm(),[t,n]=i.useState(void 0),[r,a]=i.useState(!1),{idToken:o,serverUrl:l}=Bn(),c=i.useRef(null);i.useEffect(()=>{t&&c.current&&c.current.scrollIntoView({behavior:"smooth"})},[t]);const d=async f=>{a(!0),n(void 0);const m=f.keyId?f.keyId:f.tags?JSON.stringify(f.tags):void 0;try{if(m==null)throw n("Missing key identifier."),Error("Missing key identifier");const p=DJ(m,f.inputFile),v=await ir(p,o,l);if(v){const h=await kd(v),b=f.fileName.slice(0,-4),y=b.lastIndexOf(".")!==-1?b:`${b}.plain`,C=jd(y);Nd(h.Data,y,C),n("File has been decrypted")}}catch(p){n(`Error decrypting: ${p}`),console.error("Error decrypting:",p)}finally{a(!1)}};return S.jsxs("div",{className:"p-6",children:[S.jsx("h1",{className:"text-2xl font-bold mb-6",children:"EC Decryption"}),S.jsxs("div",{className:"mb-8 space-y-2",children:[S.jsx("p",{children:"Decrypt a file using ECIES (Elliptic Curve Integrated Encryption Scheme)."}),S.jsx("p",{children:"The key can be identified using either its ID or associated tags."}),S.jsx("p",{className:"text-sm text-yellow-600",children:"Note: This operation loads the entire file in memory."})]}),S.jsx(me,{form:e,onFinish:d,layout:"vertical",children:S.jsxs(An,{direction:"vertical",size:"middle",style:{display:"flex"},children:[S.jsxs(Je,{children:[S.jsx("h3",{className:"text-m font-bold mb-4",children:"Input File"}),S.jsx(me.Item,{name:"fileName",style:{display:"none"},children:S.jsx(St,{})}),S.jsx(me.Item,{name:"inputFile",rules:[{required:!0,message:"Please select a file to decrypt"}],children:S.jsx(sa.Dragger,{beforeUpload:f=>{e.setFieldValue("fileName",f.name);const m=new FileReader;return m.onload=p=>{var h;const v=(h=p.target)==null?void 0:h.result;if(v&&v instanceof ArrayBuffer){const b=new Uint8Array(v);e.setFieldsValue({inputFile:b})}},m.readAsArrayBuffer(f),!1},maxCount:1,children:S.jsx("p",{className:"ant-upload-text",children:"Click or drag file to this area to decrypt"})})})]}),S.jsxs(Je,{children:[S.jsx("h3",{className:"text-m font-bold mb-4",children:"Key Identification (required)"}),S.jsx(me.Item,{name:"keyId",label:"Key ID",help:"The unique identifier of the private key",children:S.jsx(St,{placeholder:"Enter key ID"})}),S.jsx(me.Item,{name:"tags",label:"Tags",help:"Alternative to Key ID: specify tags to identify the key",children:S.jsx(jt,{mode:"tags",placeholder:"Enter tags",open:!1})})]}),S.jsx(me.Item,{children:S.jsx(bn,{type:"primary",htmlType:"submit",loading:r,className:"w-full text-white font-medium",children:"Decrypt File"})})]})}),t&&S.jsx("div",{ref:c,children:S.jsx(Je,{title:"EC decrypt response",children:t})})]})},Wre=()=>{const[e]=me.useForm(),[t,n]=i.useState(void 0),[r,a]=i.useState(!1),{idToken:o,serverUrl:l}=Bn(),c=i.useRef(null);i.useEffect(()=>{t&&c.current&&c.current.scrollIntoView({behavior:"smooth"})},[t]);const d=async f=>{a(!0),n(void 0);const m=f.keyId?f.keyId:f.tags?JSON.stringify(f.tags):void 0;try{if(m==null)throw n("Missing key identifier."),Error("Missing key identifier");const p=BJ(m,f.inputFile),v=await ir(p,o,l);if(v){const h=await Md(v),b=new Uint8Array(h.Data),x="application/octet-stream",y=`${f.fileName}.enc`;os(b,y,x),n("File has been encrypted")}}catch(p){n(`Error encrypting: ${p}`),console.error("Error encrypting:",p)}finally{a(!1)}};return S.jsxs("div",{className:"p-6",children:[S.jsx("h1",{className:"text-2xl font-bold mb-6",children:"EC Encryption"}),S.jsxs("div",{className:"mb-8 space-y-2",children:[S.jsx("p",{children:"Encrypt a file using ECIES (Elliptic Curve Integrated Encryption Scheme)."}),S.jsx("p",{children:"The key can be identified using either its ID or associated tags."}),S.jsx("p",{className:"text-sm text-yellow-600",children:"Note: This operation loads the entire file in memory."})]}),S.jsx(me,{form:e,onFinish:d,layout:"vertical",className:"space-y-6",children:S.jsxs(An,{direction:"vertical",size:"middle",style:{display:"flex"},children:[S.jsxs(Je,{children:[S.jsx("h3",{className:"text-m font-bold mb-4",children:"Input File"}),S.jsx(me.Item,{name:"fileName",style:{display:"none"},children:S.jsx(St,{})}),S.jsx(me.Item,{name:"inputFile",rules:[{required:!0,message:"Please select a file to encrypt"}],children:S.jsx(sa.Dragger,{beforeUpload:f=>{e.setFieldValue("fileName",f.name);const m=new FileReader;return m.onload=p=>{var h;const v=(h=p.target)==null?void 0:h.result;if(v&&v instanceof ArrayBuffer){const b=new Uint8Array(v);e.setFieldsValue({inputFile:b})}},m.readAsArrayBuffer(f),!1},maxCount:1,children:S.jsx("p",{className:"ant-upload-text",children:"Click or drag file to this area to encrypt"})})})]}),S.jsxs(Je,{children:[S.jsx("h3",{className:"text-m font-bold mb-4",children:"Key Identification (required)"}),S.jsx(me.Item,{name:"keyId",label:"Key ID",help:"The unique identifier of the public key",children:S.jsx(St,{placeholder:"Enter key ID"})}),S.jsx(me.Item,{name:"tags",label:"Tags",help:"Alternative to Key ID: specify tags to identify the key",children:S.jsx(jt,{mode:"tags",placeholder:"Enter tags",open:!1})})]}),S.jsx(me.Item,{children:S.jsx(bn,{type:"primary",htmlType:"submit",loading:r,className:"w-full text-white font-medium",children:"Encrypt File"})})]})}),t&&S.jsx("div",{ref:c,children:S.jsx(Je,{title:"EC encrypt response",children:t})})]})},Kre=()=>{const[e]=me.useForm(),[t,n]=i.useState(void 0),[r,a]=i.useState(!1),{idToken:o,serverUrl:l}=Bn(),c=i.useRef(null);i.useEffect(()=>{t&&c.current&&c.current.scrollIntoView({behavior:"smooth"})},[t]);const d=async f=>{a(!0),n(void 0);try{const m=jJ(f.privateKeyId,f.tags,f.curve,f.sensitive),p=await ir(m,o,l);if(p){const v=await Ix(p);n(`Key pair has been created. Private key Id: ${v.PrivateKeyUniqueIdentifier} - Public key Id: ${v.PublicKeyUniqueIdentifier}`)}}catch(m){n(`Error creating EC keypair: ${m}`),console.error("Error creating EC keypair:",m)}finally{a(!1)}};return S.jsxs("div",{className:"p-6",children:[S.jsx("h1",{className:"text-2xl font-bold mb-6",children:"Create an EC key pair"}),S.jsxs("div",{className:"mb-8 space-y-2",children:[S.jsx("p",{children:"Create a new Elliptic Curve key pair:"}),S.jsxs("ul",{className:"list-disc pl-5 space-y-1",children:[S.jsx("li",{children:"The public key is used to encrypt or verify a signature and can be safely shared."}),S.jsx("li",{children:"The private key is used to decrypt or sign and must be kept secret."})]})]}),S.jsx(me,{form:e,onFinish:d,layout:"vertical",initialValues:{curve:"nist-p256",tags:[],sensitive:!1},children:S.jsxs(An,{direction:"vertical",size:"middle",style:{display:"flex"},children:[S.jsxs(Je,{children:[S.jsx(me.Item,{name:"curve",label:"Curve",help:"Select the elliptic curve to use",rules:[{required:!0,message:"Please select a curve"}],children:S.jsxs(jt,{children:[S.jsx(jt.Option,{value:"nist-p192",children:"NIST P-192"}),S.jsx(jt.Option,{value:"nist-p224",children:"NIST P-224"}),S.jsx(jt.Option,{value:"nist-p256",children:"NIST P-256"}),S.jsx(jt.Option,{value:"nist-p384",children:"NIST P-384"}),S.jsx(jt.Option,{value:"nist-p521",children:"NIST P-521"}),S.jsx(jt.Option,{value:"ed25519",children:"Ed25519"}),S.jsx(jt.Option,{value:"ed448",children:"Ed448"})]})}),S.jsx(me.Item,{name:"privateKeyId",label:"Private Key ID",help:"Optional: a random UUID will be generated if not specified",children:S.jsx(St,{placeholder:"Enter private key ID"})}),S.jsx(me.Item,{name:"tags",label:"Tags",help:"Optional: Add tags to help retrieve the keys later",children:S.jsx(jt,{mode:"tags",placeholder:"Enter tags",open:!1})}),S.jsx(me.Item,{name:"sensitive",valuePropName:"checked",help:"If set, the private key will not be exportable",children:S.jsx(Jr,{children:"Sensitive"})})]}),S.jsx(me.Item,{children:S.jsx(bn,{type:"primary",htmlType:"submit",loading:r,className:"w-full text-white font-medium",children:"Create EC Keypair"})})]})}),t&&S.jsx("div",{ref:c,children:S.jsx(Je,{title:"EC key pair creation response",children:t})})]})},Ure=[{label:"NIST Key Wrap (RFC 5649)",value:"nist-key-wrap"},{label:"AES GCM",value:"aes-gcm"},{label:"RSA PKCS v1.5",value:"rsa-pkcs-v15"},{label:"RSA OAEP",value:"rsa-oaep"},{label:"RSA AES Key Wrap",value:"rsa-aes-key-wrap"}],qre={"json-ttlv":"json","sec1-pem":"pem","pkcs1-pem":"pem","pkcs8-pem":"pem","sec1-der":"der","pkcs1-der":"der","pkcs8-der":"der",base64:"b64",raw:""},dm=e=>{const[t]=me.useForm(),[n,r]=i.useState(void 0),[a,o]=i.useState(!1),{idToken:l,serverUrl:c}=Bn(),d=i.useRef(null),f=me.useWatch("wrapKeyId",t),m=me.useWatch("wrappingAlgorithm",t),p=me.useWatch("keyFormat",t);i.useEffect(()=>{n&&d.current&&d.current.scrollIntoView({behavior:"smooth"})},[n]),i.useEffect(()=>{f||t.setFieldsValue({wrappingAlgorithm:void 0,authenticatedAdditionalData:void 0})},[f,t]),i.useEffect(()=>{m!=="aes-gcm"&&t.setFieldsValue({authenticatedAdditionalData:void 0})},[m,t]);const v=async x=>{o(!0),r(void 0);const y=x.keyId?x.keyId:x.tags?JSON.stringify(x.tags):void 0;try{if(y==null)throw r("Missing key identifier."),Error("Missing key identifier");const C=HJ(y,x.unwrap,x.keyFormat,x.wrapKeyId,x.wrappingAlgorithm),w=await ir(C,l,c);if(w){const E=await VJ(w,x.keyFormat),I=`${y}.${qre[x.keyFormat]}`;let _;switch(x.keyFormat){case"json-ttlv":_="application/json";break;case"base64":_="text/plain";break;default:_="application/octet-stream"}os(E,I,_),r("File has been exported")}}catch(C){r(`Error exporting key: ${C}`),console.error("Error exporting key:",C)}finally{o(!1)}};let h="",b=[];return e.key_type==="rsa"?(h="an RSA",b=[{label:"JSON TTLV (default)",value:"json-ttlv"},{label:"PKCS1 PEM",value:"pkcs1-pem"},{label:"PKCS1 DER",value:"pkcs1-der"},{label:"PKCS8 PEM",value:"pkcs8-pem"},{label:"PKCS8 DER",value:"pkcs8-der"},{label:"Base64",value:"base64"},{label:"Raw",value:"raw"}]):e.key_type==="ec"?(h="an EC",b=[{label:"JSON TTLV (default)",value:"json-ttlv"},{label:"SEC1 PEM",value:"sec1-pem"},{label:"SEC1 DER",value:"sec1-der"},{label:"PKCS8 PEM",value:"pkcs8-pem"},{label:"PKCS8 DER",value:"pkcs8-der"},{label:"Base64",value:"base64"},{label:"Raw",value:"raw"}]):e.key_type==="symmetric"?(h="a symmetric",b=[{label:"JSON TTLV (default)",value:"json-ttlv"},{label:"Base64",value:"base64"},{label:"Raw",value:"raw"}]):(h="a Covercrypt",b=[{label:"JSON TTLV (default)",value:"json-ttlv"},{label:"Raw",value:"raw"}]),S.jsxs("div",{className:"p-6",children:[S.jsxs("h1",{className:"text-2xl font-bold mb-6",children:["Export ",h," key"]}),S.jsxs("div",{className:"mb-8 space-y-2",children:[S.jsxs("p",{children:["Export ",h," key from the KMS. The key can be identified using either its ID or associated tags."]}),S.jsx("p",{children:"The key can optionally be unwrapped and/or wrapped when exported."}),S.jsx("p",{className:"text-sm text-yellow-600",children:"Note: Wrapping a key that is already wrapped is an error."})]}),S.jsx(me,{form:t,onFinish:v,layout:"vertical",initialValues:{keyFormat:"json-ttlv",unwrap:!1,allowRevoked:!1},children:S.jsxs(An,{direction:"vertical",size:"middle",style:{display:"flex"},children:[S.jsxs(Je,{children:[S.jsx("h3",{className:"text-m font-bold mb-4",children:"Key Identification (required)"}),S.jsx(me.Item,{name:"keyId",label:"Key ID",help:"The unique identifier of the key stored in the KMS",children:S.jsx(St,{placeholder:"Enter key ID"})}),S.jsx(me.Item,{name:"tags",label:"Tags",help:"Alternative to Key ID: specify tags to identify the key",children:S.jsx(jt,{mode:"tags",placeholder:"Enter tags",open:!1})})]}),S.jsx(Je,{children:S.jsx(me.Item,{name:"keyFormat",label:"Key Format",help:"Format for the exported key. JSON TTLV is recommended for later re-import.",rules:[{required:!0}],children:S.jsx(jt,{options:b})})}),S.jsxs(Je,{children:[S.jsx("h3",{className:"text-m font-bold mb-4",children:"Unwrapping Options"}),S.jsx(me.Item,{name:"unwrap",valuePropName:"checked",label:"Unwrap",help:"Unwrap if it is wrapped before export",children:S.jsx(Jr,{children:"Unwrap key before export"})}),p!=="raw"&&p!=="base64"&&S.jsxs(S.Fragment,{children:[S.jsx(YV,{}),S.jsx("h3",{className:"text-m font-bold mb-4",children:"Wrapping Options"}),S.jsx(me.Item,{name:"wrapKeyId",label:"Wrap Key ID",help:"ID of the key/certificate to use for wrapping",children:S.jsx(St,{placeholder:"Enter wrap key ID"})}),S.jsx(me.Item,{name:"wrappingAlgorithm",label:"Wrapping Algorithm",help:"Algorithm to use when wrapping the key",children:S.jsx(jt,{options:Ure,placeholder:"Select wrapping algorithm",disabled:!f})}),m==="aes-gcm"&&S.jsx(me.Item,{name:"authenticatedAdditionalData",label:"Authenticated Additional Data",help:"Only available for AES GCM wrapping",children:S.jsx(St,{placeholder:"Enter authenticated data",disabled:!f})})]})]}),S.jsx(Je,{children:S.jsx(me.Item,{name:"allowRevoked",valuePropName:"checked",help:"Allow exporting revoked and destroyed keys (user must be the owner)",children:S.jsx(Jr,{children:"Allow revoked keys"})})}),S.jsx(me.Item,{children:S.jsx(bn,{type:"primary",htmlType:"submit",loading:a,className:"w-full text-white font-medium",children:"Export Key"})})]})}),n&&S.jsx("div",{ref:d,children:S.jsx(Je,{title:"Key export response",children:n})})]})},fm=e=>{const[t]=me.useForm(),[n,r]=i.useState(void 0),[a,o]=i.useState(!1),{idToken:l,serverUrl:c}=Bn(),d=i.useRef(null);i.useEffect(()=>{n&&d.current&&d.current.scrollIntoView({behavior:"smooth"})},[n]);const f=async h=>{o(!0),r(void 0);try{const b=WJ(h.keyId,h.keyFile,h.keyFormat,h.publicKeyId,h.privateKeyId,h.certificateId,h.unwrap,h.replaceExisting,h.tags,h.keyUsage,h.authenticatedAdditionalData),x=await ir(b,l,c);if(x){const y=await eN(x);r(`File has been imported - imported object id: ${y.UniqueIdentifier}`)}}catch(b){r(`Error importing key: ${b}`),console.error("Error importing key:",b)}finally{o(!1)}};let m="",p=[],v=[];return e.key_type==="rsa"?(m="an RSA",p=[{label:"JSON TTLV (default)",value:"json-ttlv"},{label:"PEM (auto-detect format)",value:"pem"},{label:"PKCS#1 DER (RSA private)",value:"pkcs1-priv"},{label:"PKCS#1 DER (RSA public)",value:"pkcs1-pub"},{label:"PKCS#8 DER (RSA private)",value:"pkcs8-priv"},{label:"PKCS#8 DER (RSA public)",value:"pkcs8-pub"}],v=[{label:"Sign",value:"sign"},{label:"Verify",value:"verify"},{label:"Encrypt",value:"encrypt"},{label:"Decrypt",value:"decrypt"},{label:"Wrap",value:"wrap"},{label:"Unwrap",value:"unwrap"}]):e.key_type==="ec"?(m="an EC",p=[{label:"JSON TTLV (default)",value:"json-ttlv"},{label:"PEM (auto-detect format)",value:"pem"},{label:"SEC1 DER (EC private)",value:"sec1"},{label:"PKCS#8 DER (RSA public)",value:"pkcs8-pub"},{label:"PKCS#8 DER (RSA private)",value:"pkcs8-priv"}],v=[{label:"Sign",value:"sign"},{label:"Verify",value:"verify"},{label:"Encrypt",value:"encrypt"},{label:"Decrypt",value:"decrypt"},{label:"Wrap",value:"wrap"},{label:"Unwrap",value:"unwrap"}]):e.key_type==="symmetric"?(m="a symmetric",p=[{label:"JSON TTLV (default)",value:"json-ttlv"},{label:"AES",value:"aes"},{label:"ChaCha20",value:"chacha20"}],v=[{label:"Encrypt",value:"encrypt"},{label:"Decrypt",value:"decrypt"},{label:"Wrap",value:"wrap"},{label:"Unwrap",value:"unwrap"}]):(m="a Covercrypt",p=[{label:"JSON TTLV (default)",value:"json-ttlv"}],v=[{label:"Encrypt",value:"encrypt"},{label:"Decrypt",value:"decrypt"}]),S.jsxs("div",{className:"p-6",children:[S.jsxs("h1",{className:"text-2xl font-bold mb-6",children:["Import ",m," key"]}),S.jsxs("div",{className:"mb-8 space-y-2",children:[S.jsxs("p",{children:["Import ",m," key in the KMS."]}),S.jsx("p",{children:"When no unique ID is specified, a random UUID will be generated."})]}),S.jsx(me,{form:t,onFinish:f,layout:"vertical",initialValues:{keyFormat:"json-ttlv",unwrap:!1,replaceExisting:!1,tags:[]},children:S.jsxs(An,{direction:"vertical",size:"middle",style:{display:"flex"},children:[S.jsxs(Je,{children:[S.jsx(me.Item,{name:"keyFile",label:"Key File",rules:[{required:!0,message:"Please upload a key file"}],help:"Upload the key file to import",children:S.jsx(sa,{beforeUpload:h=>{const b=new FileReader;return b.onload=x=>{var C;const y=(C=x.target)==null?void 0:C.result;if(typeof y=="string")try{if(/^[A-Za-z0-9+/=]+$/.test(y.trim())){const w=atob(y.trim()),E=new Uint8Array([...w].map(I=>I.charCodeAt(0)));t.setFieldsValue({keyFile:E})}else throw new Error("Invalid Base64 format")}catch{const w=new FileReader;w.onload=E=>{var _;const I=(_=E.target)==null?void 0:_.result;if(I instanceof ArrayBuffer){const O=new Uint8Array(I);t.setFieldsValue({keyFile:O})}},w.readAsArrayBuffer(h)}},b.readAsText(h),!1},maxCount:1,children:S.jsx(bn,{icon:S.jsx(rP,{}),children:"Upload Key File"})})}),S.jsx(me.Item,{name:"keyId",label:"Key ID",help:"Optional: A random UUID will be generated if not specified",children:S.jsx(St,{placeholder:"Enter key ID"})}),S.jsx(me.Item,{name:"keyFormat",label:"Key Format",help:"Format of the key file to import",rules:[{required:!0}],children:S.jsx(jt,{options:p})})]}),S.jsxs(Je,{children:[S.jsx("h3",{className:"text-m font-bold mb-4",children:"Key Relationships"}),S.jsx(me.Item,{name:"publicKeyId",label:"Public Key ID",help:"For private keys: link to corresponding public key in KMS",children:S.jsx(St,{placeholder:"Enter public key ID"})}),S.jsx(me.Item,{name:"privateKeyId",label:"Private Key ID",help:"For public keys: link to corresponding private key in KMS",children:S.jsx(St,{placeholder:"Enter private key ID"})}),S.jsx(me.Item,{name:"certificateId",label:"Certificate ID",help:"Link to corresponding certificate in KMS",children:S.jsx(St,{placeholder:"Enter certificate ID"})})]}),S.jsxs(Je,{children:[S.jsx(me.Item,{name:"keyUsage",label:"Key Usage",help:"Specify allowed operations for this key",children:S.jsx(jt,{mode:"multiple",options:v,placeholder:"Select key usage"})}),S.jsx(me.Item,{name:"tags",label:"Tags",help:"Optional: Add tags to help retrieve the key later",children:S.jsx(jt,{mode:"tags",placeholder:"Enter tags",open:!1})})]}),S.jsxs(Je,{children:[S.jsx(me.Item,{name:"unwrap",valuePropName:"checked",help:"For JSON TTLV keys: unwrap the key if wrapped before storing",children:S.jsx(Jr,{children:"Unwrap key before import"})}),S.jsx(me.Item,{name:"replaceExisting",valuePropName:"checked",help:"Replace an existing key with the same ID",children:S.jsx(Jr,{children:"Replace existing key"})})]}),S.jsx(Je,{children:S.jsx(me.Item,{name:"authenticatedAdditionalData",label:"Authenticated Additional Data",help:"Optional: For AES256GCM authenticated encryption unwrapping",children:S.jsx(St,{placeholder:"Enter authenticated data"})})}),S.jsx(me.Item,{children:S.jsx(bn,{type:"primary",htmlType:"submit",loading:a,className:"w-full text-white font-medium",children:"Import Key"})})]})}),n&&S.jsx("div",{ref:d,children:S.jsx(Je,{title:"Key import response",children:n})})]})},Yre=[{label:"Covercrypt",value:"CoverCrypt"},{label:"ECDH",value:"ECDH"},{label:"ChaCha20-Poly1305",value:"ChaCha20Poly1305"},{label:"AES",value:"AES"},{label:"Ed25519",value:"Ed25519"}],Gre=[{label:"CoverCrypt Secret Key",value:"CoverCryptSecretKey"},{label:"CoverCrypt Public Key",value:"CoverCryptPublicKey"},{label:"Raw",value:"Raw"},{label:"PKCS8",value:"PKCS8"}],Xre=[{label:"Certificate",value:"Certificate"},{label:"Symmetric Key",value:"SymmetricKey"},{label:"Public Key",value:"PublicKey"},{label:"Private Key",value:"PrivateKey"},{label:"Split Key",value:"SplitKey"},{label:"Secret Data",value:"SecretData"},{label:"Opaque Object",value:"OpaqueObject"},{label:"PGP Key",value:"PGPKey"},{label:"Certificate Request",value:"CertificateRequest"}],Qre=()=>{const[e]=me.useForm(),[t,n]=i.useState(!1),[r,a]=i.useState(void 0),[o,l]=i.useState(void 0),{idToken:c,serverUrl:d}=Bn(),f=i.useRef(null);i.useEffect(()=>{r&&f.current&&f.current.scrollIntoView({behavior:"smooth"})},[r]);const m=async p=>{n(!0),a(void 0),l(void 0);try{const v=RJ(p.tags,p.cryptographicAlgorithm,p.cryptographicLength,p.keyFormatType,p.objectType,p.publicKeyId,p.privateKeyId,p.certificateId),h=await ir(v,c,d);if(h){const b=await PJ(h);b.UniqueIdentifier&&b.UniqueIdentifier.length&&l(b.UniqueIdentifier),a(`${b.LocatedItems} Object(s) located.`)}}catch(v){a(`Error locating object: ${v}`),console.error("Error locating object:",v)}finally{n(!1)}};return S.jsxs("div",{className:"p-6",children:[S.jsx("h1",{className:"text-2xl font-bold mb-6",children:"Locate Cryptographic Objects"}),S.jsx("div",{className:"mb-8 space-y-2",children:S.jsx("p",{children:"Search for cryptographic objects in the KMS using various criteria."})}),S.jsx(me,{form:e,onFinish:m,layout:"vertical",children:S.jsxs(An,{direction:"vertical",size:"middle",style:{display:"flex"},children:[S.jsxs(Je,{children:[S.jsx("h3",{className:"text-m font-bold mb-4",children:"Basic Search Criteria"}),S.jsx(me.Item,{name:"tags",label:"Tags",help:"User tags or system tags to locate the object",children:S.jsx(jt,{mode:"tags",placeholder:"Enter tags",open:!1})}),S.jsx(me.Item,{name:"cryptographicAlgorithm",label:"Cryptographic Algorithm",help:"Algorithm used by the cryptographic object",children:S.jsx(jt,{options:Yre,allowClear:!0,placeholder:"Select algorithm"})}),S.jsx(me.Item,{name:"cryptographicLength",label:"Cryptographic Length",help:"Key size in bits",children:S.jsx(St,{type:"number",placeholder:"Enter length in bits",min:0})})]}),S.jsxs(Je,{children:[S.jsx("h3",{className:"text-m font-bold mb-4",children:"Object Type and Format"}),S.jsx(me.Item,{name:"keyFormatType",label:"Key Format Type",help:"Format used to store the key",children:S.jsx(jt,{options:Gre,allowClear:!0,placeholder:"Select key format"})}),S.jsx(me.Item,{name:"objectType",label:"Object Type",help:"Type of cryptographic object",children:S.jsx(jt,{options:Xre,allowClear:!0,placeholder:"Select object type"})})]}),S.jsxs(Je,{children:[S.jsx("h3",{className:"text-m font-bold mb-4",children:"Linked Objects"}),S.jsx(me.Item,{name:"publicKeyId",label:"Public Key ID",help:"Find objects linked to this public key",children:S.jsx(St,{placeholder:"Enter public key ID"})}),S.jsx(me.Item,{name:"privateKeyId",label:"Private Key ID",help:"Find objects linked to this private key",children:S.jsx(St,{placeholder:"Enter private key ID"})}),S.jsx(me.Item,{name:"certificateId",label:"Certificate ID",help:"Find objects linked to this certificate",children:S.jsx(St,{placeholder:"Enter certificate ID"})})]}),S.jsx(me.Item,{children:S.jsx(bn,{type:"primary",htmlType:"submit",loading:t,className:"w-full text-white font-medium",children:"Search Objects"})})]})}),r&&S.jsx("div",{ref:f,children:S.jsx(Je,{title:"Locate response",children:S.jsx(C0,{header:S.jsx("div",{className:"font-bold",children:r}),size:"small",bordered:!0,dataSource:o,renderItem:p=>S.jsx(C0.Item,{children:p})})})})]})},E_=({auth:e})=>{const[t,n]=i.useState(!1),{login:r}=Bn(),a=ov(),o=async()=>{try{n(!0),await r()}catch(l){console.error("Login error:",l),cx.error("Authentication failed. Please try again.")}finally{n(!1)}};return S.jsxs("div",{className:"relative min-h-screen flex items-center justify-center bg-gray-900 flex-col",children:[S.jsx("div",{className:"absolute inset-0 bg-cover bg-center flex",style:{backgroundImage:"url('/ui/login_page_background_image.png')"}}),S.jsxs("div",{className:"relative w-2/3 shadow-2xl rounded-lg p-20 flex flex-col items-center bg-purple-700/30",children:[S.jsx("img",{src:"/ui/Cosmian-Logo-Dark.svg",alt:"Cosmian Logo",className:"z-10 w-40 mb-20"}),S.jsx("div",{className:"text-center text-7xl font-bold text-white mb-20 z-10",children:"Cosmian KMS user interface"}),S.jsxs("div",{className:"space-y-6 text-center w-1/2",children:[e&&S.jsx("p",{className:"text-white",children:"Authenticate using your organization's identity provider."}),t?S.jsx(Od,{size:"large"}):e?S.jsx(bn,{ghost:!0,block:!0,className:"hover:decoration-purple-700",onClick:o,loading:t,children:"LOGIN"}):S.jsx(bn,{ghost:!0,block:!0,className:"hover:decoration-purple-700",onClick:()=>a("locate"),loading:t,children:"GO"}),S.jsx("div",{id:"error-message",role:"alert","aria-live":"polite",className:"text-red-500 text-sm mt-2"})]})]})]})},Jre=({version:e})=>S.jsx(ao.Footer,{className:"text-center",children:S.jsxs("p",{children:["KMS Server Version: ",e]})}),Zre=({isDarkMode:e})=>S.jsxs("div",{className:"flex items-center h-full w-full",children:[S.jsx("img",{src:e?"/ui/Cosmian-Logo-Dark.svg":"/ui/Cosmian-Logo.svg",alt:"Cosmian Logo",className:"h-7 mr-4 transition-opacity duration-300"}),S.jsx("h1",{className:"text-xl font-bold pl-10",children:"Key Management System"})]}),__=[{key:"locate",label:"Locate",icon:S.jsx(Fp,{})},{key:"sym",label:"Symmetric",collapsedlabel:"SYM",children:[{key:"sym/keys",label:"Keys",children:[{key:"sym/keys/create",label:"Create"},{key:"sym/keys/export",label:"Export"},{key:"sym/keys/import",label:"Import"},{key:"sym/keys/revoke",label:"Revoke"},{key:"sym/keys/destroy",label:"Destroy"}]},{key:"sym/encrypt",label:"Encrypt"},{key:"sym/decrypt",label:"Decrypt"}]},{key:"rsa",label:"RSA",collapsedlabel:"RSA",children:[{key:"rsa/keys",label:"Keys",children:[{key:"rsa/keys/create",label:"Create"},{key:"rsa/keys/export",label:"Export"},{key:"rsa/keys/import",label:"Import"},{key:"rsa/keys/revoke",label:"Revoke"},{key:"rsa/keys/destroy",label:"Destroy"}]},{key:"rsa/encrypt",label:"Encrypt"},{key:"rsa/decrypt",label:"Decrypt"}]},{key:"ec",label:"Elliptic Curve",collapsedlabel:"EC",children:[{key:"ec/keys",label:"Keys",children:[{key:"ec/keys/create",label:"Create"},{key:"ec/keys/export",label:"Export"},{key:"ec/keys/import",label:"Import"},{key:"ec/keys/revoke",label:"Revoke"},{key:"ec/keys/destroy",label:"Destroy"}]},{key:"ec/encrypt",label:"Encrypt"},{key:"ec/decrypt",label:"Decrypt"}]},{key:"cc",label:"Covercrypt",collapsedlabel:"CC",children:[{key:"cc/keys",label:"Keys",children:[{key:"cc/keys/create-master-key-pair",label:"Create Master Key Pair"},{key:"cc/keys/create-user-key",label:"Create User Key"},{key:"cc/keys/export",label:"Export"},{key:"cc/keys/import",label:"Import"},{key:"cc/keys/revoke",label:"Revoke"},{key:"cc/keys/destroy",label:"Destroy"}]},{key:"cc/encrypt",label:"Encrypt"},{key:"cc/decrypt",label:"Decrypt"}]},{key:"certificates",label:"Certificates",icon:S.jsx(UU,{}),children:[{key:"certificates/certs",label:"Certs",children:[{key:"certificates/certs/certify",label:"Certify"},{key:"certificates/certs/export",label:"Export"},{key:"certificates/certs/import",label:"Import"},{key:"certificates/certs/revoke",label:"Revoke"},{key:"certificates/certs/destroy",label:"Destroy"},{key:"certificates/certs/validate",label:"Validate"}]},{key:"certificates/encrypt",label:"Encrypt"},{key:"certificates/decrypt",label:"Decrypt"}]},{key:"attributes",label:"Attributes",icon:S.jsx(tq,{}),children:[{key:"attributes/get",label:"Get"},{key:"attributes/set",label:"Set"},{key:"attributes/delete",label:"Delete"}]},{key:"access-rights",label:"Access Rights",icon:S.jsx(GU,{}),children:[{key:"access-rights/grant",label:"Grant"},{key:"access-rights/revoke",label:"Revoke"},{key:"access-rights/list",label:"List"},{key:"access-rights/owned",label:"Owned"},{key:"access-rights/obtained",label:"Obtained"}]}],{Sider:eae}=ao,tae=()=>{const[e,t]=i.useState(!1),n=ov(),[r,a]=i.useState([]),l=(f=>{const m={},p=(v,h=1)=>{v.forEach(b=>{b.key&&(m[b.key]=h),b.children&&p(b.children,h+1)})};return p(f),m})(__),c=f=>{const m=f.find(p=>r.indexOf(p)===-1);if(m!==void 0){const p=f.filter(v=>v!==m).findIndex(v=>l[v]===l[m]);a(f.filter((v,h)=>h!==p).filter(v=>l[v]<=l[m]))}else a(f)},d=__.map(f=>({...f,label:e?S.jsx(io,{title:f.label,children:f.icon?f.icon:f.collapsedlabel}):f.label}));return S.jsx(eae,{collapsible:!0,collapsed:e,onCollapse:t,className:"h-full",theme:"light",style:{position:"sticky",top:0,overflow:"auto"},children:S.jsx(Zl,{mode:"inline",defaultSelectedKeys:["1"],defaultOpenKeys:["access-rights"],openKeys:r,onOpenChange:c,items:d,onClick:({key:f})=>n(f),className:"h-full border-r-0",style:{fontWeight:"500",overflow:"auto"}})})},nae=({isDarkMode:e,setIsDarkMode:t,authMethod:n})=>{const[r,a]=i.useState(""),[o,l]=i.useState(!0),{logout:c,idToken:d,serverUrl:f}=Bn();i.useEffect(()=>{async function p(){if(d||n!="JWT")try{const v=await iv("/version",d,f);a(v)}catch(v){console.error("Error fetching server version:",v),a("Unavailable")}finally{l(!1)}else l(!1)}p()},[]);const m=async()=>{await c()};return S.jsxs(ao,{children:[S.jsx(ao.Header,{className:"fixed w-full z-10 p-0 h-16 border-b flex items-center justify-between border-gray-300",children:S.jsxs("div",{className:"flex items-center w-full",children:[S.jsx(Zre,{isDarkMode:e}),S.jsxs("div",{className:"flex items-center",children:[S.jsx(iP,{className:"w-20 h-[25px]",checked:e,onChange:()=>t(!e),checkedChildren:S.jsx(MU,{}),unCheckedChildren:S.jsx(JU,{})}),n=="JWT"&&S.jsx(bn,{onClick:m,className:"ml-4 w-18",children:"Logout"})]})]})}),S.jsxs(ao,{id:"main-page",className:"overflow-hidden",style:{marginTop:64,height:"calc(100vh - 64px)"},children:[S.jsx(tae,{}),S.jsxs(ao,{id:"main-center",className:"flex flex-col overflow-hidden",children:[S.jsx(ao.Content,{id:"main-content",className:"flex-grow overflow-auto p-4",children:o?S.jsx(Od,{size:"large"}):S.jsx(aJ,{})}),S.jsx(Jre,{version:r})]})]})]})},rae=()=>S.jsxs("div",{style:{textAlign:"center",marginTop:"50px"},children:[S.jsx("h1",{children:"404 - Page Not Found"}),S.jsx("p",{children:"Oops! The page you're looking for doesn't exist."}),S.jsx(gJ,{to:"/",children:"Go Home"})]}),gu=e=>{const[t]=me.useForm(),[n,r]=i.useState(void 0),[a,o]=i.useState(!1),{idToken:l,serverUrl:c}=Bn(),d=i.useRef(null);i.useEffect(()=>{n&&d.current&&d.current.scrollIntoView({behavior:"smooth"})},[n]);const f=e.objectType!=="certificate",m=f?"key":"certificate",p=async h=>{o(!0),r(void 0);const b=h.objectId?h.objectId:h.tags?JSON.stringify(h.tags):void 0;if(b==null)throw r(`Missing ${m} identifier.`),Error(`Missing ${m} identifier`);try{const x=FJ(b,h.remove),y=await ir(x,l,c);if(y){const C=await LJ(y);r(`${C.UniqueIdentifier} has been destroyed.`)}}catch(x){r(`Error destroying ${m}: ${x}`),console.error(`Error destroying ${m}:`,x)}finally{o(!1)}};let v="";return e.objectType==="rsa"?v="an RSA":e.objectType==="ec"?v="an EC":e.objectType==="covercrypt"?v="a Covercrypt":e.objectType==="symmetric"?v="a symmetric":v="a",S.jsxs("div",{className:"p-6",children:[S.jsxs("div",{className:"flex items-center gap-3 mb-6",children:[S.jsx(aP,{className:"text-2xl text-red-600"}),S.jsxs("h1",{className:"text-2xl font-bold",children:["Destroy ",v," ",m]})]}),S.jsx("div",{className:"mb-8 space-y-2",children:S.jsx("div",{className:"bg-red-200 border-l-4 border-red-600 rounded-md p-4",children:S.jsxs("div",{className:"text-red-800 text-sm space-y-2",children:[S.jsx("p",{className:"font-bold",children:"Warning: This is a destructive action."}),S.jsxs("ul",{className:"list-disc pl-5 space-y-1",children:[S.jsxs("li",{children:["The ",m," must be revoked first"]}),f&&(e.objectType==="rsa"||e.objectType==="ec"||e.objectType==="covercrypt")&&S.jsx("li",{children:"Destroying either public or private key will destroy the whole key pair"}),f&&S.jsx("li",{children:"Keys in external stores (HSMs) are automatically removed"}),e.objectType==="certificate"&&S.jsx("li",{children:"Destroying a certificate does not destroy its associated private key"}),S.jsxs("li",{children:["Destroyed ",m,"s can only be exported by the owner, without key material"]})]})]})})}),S.jsx(me,{form:t,onFinish:p,layout:"vertical",initialValues:{remove:!1},children:S.jsxs(An,{direction:"vertical",size:"middle",style:{display:"flex"},children:[S.jsxs(Je,{children:[S.jsxs("h3",{className:"text-m font-bold mb-4",children:[f?"Key":"Certificate"," Identification (required)"]}),S.jsx(me.Item,{name:"objectId",label:`${f?"Key":"Certificate"} ID`,help:`The unique identifier of the ${m} to destroy`,children:S.jsx(St,{placeholder:`Enter ${m} ID`})}),S.jsx(me.Item,{name:"tags",label:"Tags",help:`Alternative to ${f?"Key":"Certificate"} ID: specify tags to identify the ${m}`,children:S.jsx(jt,{mode:"tags",placeholder:"Enter tags",open:!1})})]}),S.jsx(Je,{children:S.jsx(me.Item,{name:"remove",valuePropName:"checked",help:`If enabled, the ${m} will be completely removed from the database. Otherwise, metadata will be retained.`,children:S.jsx(Jr,{children:"Remove completely from database"})})}),S.jsx(me.Item,{children:S.jsxs(bn,{type:"primary",htmlType:"submit",loading:a,danger:!0,disabled:a,className:"w-full text-white font-medium",children:["Destroy ",f?"Key":"Certificate"]})})]})}),n&&S.jsx("div",{ref:d,children:S.jsx(Je,{title:`${f?"Key":"Certificate"} destroy response`,children:n})})]})},aae=()=>{const[e,t]=i.useState(!1),[n,r]=i.useState([]),[a,o]=i.useState(void 0),{idToken:l,serverUrl:c}=Bn(),d=[{title:"Object UID",dataIndex:"object_id",key:"object_id"},{title:"Type",key:"attributes.ObjectType",render:m=>{var p;return((p=m.attributes)==null?void 0:p.ObjectType)||"N/A"}},{title:"State",dataIndex:"state",key:"state",render:m=>S.jsx(ap,{color:m==="Active"?"green":"orange",children:m})}],f=async()=>{t(!0),o(void 0),r([]);try{const m=await iv("/access/owned",l,c);m.length?r(m):o("Empty result - no object owned.")}catch(m){o(`Error listing objects: ${m}`),console.error("Error listing objects:",m)}finally{t(!1)}};return i.useEffect(()=>{f()},[]),S.jsxs("div",{className:"p-6",children:[S.jsxs("div",{className:"flex justify-between items-center mb-6",children:[S.jsx("h1",{className:"text-2xl font-bold",children:"Objects owned"}),S.jsx(bn,{type:"primary",onClick:f,loading:e,className:"bg-black-500 hover:bg-blue-700 border-0",children:"Refresh"})]}),S.jsxs("div",{className:"mb-8 space-y-2",children:[S.jsx("p",{children:"List of objects you own. "}),S.jsx("p",{children:"As an owner, you can perform any operation on these objects and grant access rights to other users."})]}),S.jsx(An,{direction:"vertical",size:"middle",style:{display:"flex"},children:S.jsx(Je,{children:S.jsx(To,{dataSource:n,columns:d,rowKey:"object_id",loading:e,pagination:{pageSize:10},className:"border rounded"})})}),a&&S.jsx(Je,{title:"Owned objects response",children:a})]})},hu=e=>{const[t]=me.useForm(),[n,r]=i.useState(void 0),[a,o]=i.useState(!1),{idToken:l,serverUrl:c}=Bn(),d=i.useRef(null);i.useEffect(()=>{n&&d.current&&d.current.scrollIntoView({behavior:"smooth"})},[n]);const f=async h=>{o(!0),r(void 0);const b=h.objectId?h.objectId:h.tags?JSON.stringify(h.tags):void 0;if(b==null)throw r(`Missing ${m?"key":"certificate"} identifier.`),Error(`Missing ${m?"key":"certificate"} identifier`);try{const x=KJ(b,h.revocationReason),y=await ir(x,l,c);if(y){const C=await UJ(y);r(`${C.UniqueIdentifier} has been revoked.`)}}catch(x){r(`Error revoking ${m?"key":"certificate"}: ${x}`),console.error(`Error revoking ${m?"key":"certificate"}:`,x)}finally{o(!1)}},m=e.objectType!=="certificate",p=m?"key":"certificate";let v="";return e.objectType==="rsa"?v="an RSA":e.objectType==="ec"?v="an EC":e.objectType==="covercrypt"?v="a CoverCrypt":e.objectType==="symmetric"?v="a symmetric":v="a",S.jsxs("div",{className:"p-6",children:[S.jsxs("div",{className:"flex items-center gap-3 mb-6",children:[S.jsx(aP,{className:"text-2xl text-red-500"}),S.jsxs("h1",{className:"text-2xl font-bold",children:["Revoke ",v," ",p]})]}),S.jsx("div",{className:"mb-8 space-y-2",children:S.jsx("div",{className:"bg-red-200 border-l-4 border-red-600 rounded-md p-4",children:S.jsxs("div",{className:"text-red-800 text-sm space-y-2",children:[S.jsxs("p",{children:[S.jsx("strong",{children:"Warning:"})," This action cannot be undone."]}),S.jsxs("p",{children:["Once a ",p," is revoked, it can only be exported by the owner by checking the ",S.jsx("i",{children:"allow-revoked"})," ","flag."]}),(e.objectType==="rsa"||e.objectType==="ec")&&S.jsx("p",{children:"Revoking either the public or private key will revoke the whole key pair."}),e.objectType==="certificate"&&S.jsx("p",{children:"Revoking a certificate does not revoke its associated private key."})]})})}),S.jsx(me,{form:t,onFinish:f,layout:"vertical",children:S.jsxs(An,{direction:"vertical",size:"middle",style:{display:"flex"},children:[S.jsx(Je,{children:S.jsx(me.Item,{name:"revocationReason",label:"Revocation Reason",rules:[{required:!0,message:`Please specify the reason for ${p} revocation`}],help:`Provide a clear reason for revoking this ${p}`,children:S.jsx(St.TextArea,{placeholder:`Enter the reason for ${p} revocation`,rows:3})})}),S.jsxs(Je,{children:[S.jsxs("h3",{className:"text-m font-bold mb-4",children:[m?"Key":"Certificate"," Identification (required)"]}),S.jsx(me.Item,{name:"objectId",label:`${m?"Key":"Certificate"} ID`,help:`The unique identifier of the ${p} to revoke`,children:S.jsx(St,{placeholder:`Enter ${p} ID`})}),S.jsx(me.Item,{name:"tags",label:"Tags",help:`Alternative to ${m?"Key":"Certificate"} ID: specify tags to identify the ${p}`,children:S.jsx(jt,{mode:"tags",placeholder:"Enter tags",open:!1})})]}),S.jsx(me.Item,{children:S.jsxs(bn,{type:"primary",htmlType:"submit",loading:a,danger:!0,className:"w-full text-white font-medium",children:["Revoke ",m?"Key":"Certificate"]})})]})}),n&&S.jsx("div",{ref:d,children:S.jsx(Je,{title:`${m?"Key":"Certificate"} revoke response`,children:n})})]})},oae=[{label:"RSA PKCS #1 v1.5 (Legacy)",value:"CkmRsaPkcs"},{label:"RSA OAEP (Recommended)",value:"CkmRsaPkcsOaep"},{label:"RSA AES Key Wrap",value:"CkmRsaAesKeyWrap"}],iae=[{label:"SHA-1",value:"Sha1"},{label:"SHA-224",value:"Sha224"},{label:"SHA-256",value:"Sha256"},{label:"SHA-384",value:"Sha384"},{label:"SHA-512",value:"Sha512"}],lae=()=>{const[e]=me.useForm(),[t,n]=i.useState(void 0),[r,a]=i.useState(!1),{idToken:o,serverUrl:l}=Bn(),c=i.useRef(null);i.useEffect(()=>{t&&c.current&&c.current.scrollIntoView({behavior:"smooth"})},[t]);const d=async f=>{a(!0),n(void 0);const m=f.keyId?f.keyId:f.tags?JSON.stringify(f.tags):void 0;try{if(m==null)throw n("Missing key identifier."),Error("Missing key identifier");const p=TJ(m,f.inputFile,f.encryptionAlgorithm,f.hashingAlgorithm),v=await ir(p,o,l);if(v){const h=await kd(v),b=f.fileName.slice(0,-4),y=b.lastIndexOf(".")!==-1?b:`${b}.plain`,C=jd(y);Nd(h.Data,y,C),n("File has been decrypted")}}catch(p){n(`Error decrypting: ${p}`),console.error("Error decrypting:",p)}finally{a(!1)}};return S.jsxs("div",{className:"p-6",children:[S.jsx("h1",{className:"text-2xl font-bold mb-6",children:"RSA Decryption"}),S.jsxs("div",{className:"mb-8 space-y-2",children:[S.jsx("p",{children:"Decrypt a file using RSA private key."}),S.jsx("p",{children:"The key can be identified using either its ID or associated tags."}),S.jsx("p",{className:"text-sm text-yellow-600",children:"Note: This operation loads the entire file in memory."})]}),S.jsx(me,{form:e,onFinish:d,layout:"vertical",initialValues:{encryptionAlgorithm:"CkmRsaPkcsOaep",hashingAlgorithm:"Sha256"},children:S.jsxs(An,{direction:"vertical",size:"middle",style:{display:"flex"},children:[S.jsxs(Je,{children:[S.jsx("h3",{className:"text-m font-bold mb-4",children:"Input File"}),S.jsx(me.Item,{name:"fileName",style:{display:"none"},children:S.jsx(St,{})}),S.jsx(me.Item,{name:"inputFile",rules:[{required:!0,message:"Please select a file to decrypt"}],children:S.jsx(sa.Dragger,{beforeUpload:f=>{e.setFieldValue("fileName",f.name);const m=new FileReader;return m.onload=p=>{var h;const v=(h=p.target)==null?void 0:h.result;if(v&&v instanceof ArrayBuffer){const b=new Uint8Array(v);e.setFieldsValue({inputFile:b})}},m.readAsArrayBuffer(f),!1},maxCount:1,children:S.jsx("p",{className:"ant-upload-text",children:"Click or drag file to this area to decrypt"})})})]}),S.jsxs(Je,{children:[S.jsx("h3",{className:"text-m font-bold mb-4",children:"Key Identification (required)"}),S.jsx(me.Item,{name:"keyId",label:"Key ID",help:"The unique identifier of the private key",children:S.jsx(St,{placeholder:"Enter key ID"})}),S.jsx(me.Item,{name:"tags",label:"Tags",help:"Alternative to Key ID: specify tags to identify the key",children:S.jsx(jt,{mode:"tags",placeholder:"Enter tags",open:!1})})]}),S.jsxs(Je,{children:[S.jsx(me.Item,{name:"encryptionAlgorithm",label:"Encryption Algorithm",rules:[{required:!0}],help:"Must match the algorithm used for encryption",children:S.jsx(jt,{options:oae})}),S.jsx(me.Item,{name:"hashingAlgorithm",label:"Hashing Algorithm",rules:[{required:!0}],help:"For OAEP and AES key wrap (must match encryption)",children:S.jsx(jt,{options:iae})})]}),S.jsx(me.Item,{children:S.jsx(bn,{type:"primary",htmlType:"submit",loading:r,className:"w-full text-white font-medium",children:"Decrypt File"})})]})}),t&&S.jsx("div",{ref:c,children:S.jsx(Je,{title:"RSA decrypt response",children:t})})]})},sae=[{label:"RSA PKCS #1 v1.5 (Legacy)",value:"CkmRsaPkcs"},{label:"RSA OAEP (Recommended)",value:"CkmRsaPkcsOaep"},{label:"RSA AES Key Wrap",value:"CkmRsaAesKeyWrap"}],cae=[{label:"SHA-1",value:"Sha1"},{label:"SHA-224",value:"Sha224"},{label:"SHA-256",value:"Sha256"},{label:"SHA-384",value:"Sha384"},{label:"SHA-512",value:"Sha512"}],uae=()=>{const[e]=me.useForm(),[t,n]=i.useState(void 0),[r,a]=i.useState(!1),{idToken:o,serverUrl:l}=Bn(),c=i.useRef(null);i.useEffect(()=>{t&&c.current&&c.current.scrollIntoView({behavior:"smooth"})},[t]);const d=async f=>{a(!0),n(void 0);const m=f.keyId?f.keyId:f.tags?JSON.stringify(f.tags):void 0;try{if(m==null)throw n("Missing key identifier."),Error("Missing key identifier");const p=zJ(m,f.inputFile,f.encryptionAlgorithm,f.hashingAlgorithm),v=await ir(p,o,l);if(v){const h=await Md(v),b=new Uint8Array(h.Data),x="application/octet-stream",y=`${f.fileName}.enc`;os(b,y,x),n("File has been encrypted")}}catch(p){n(`Error encrypting: ${p}`),console.error("Error encrypting:",p)}finally{a(!1)}};return S.jsxs("div",{className:"p-6",children:[S.jsx("h1",{className:"text-2xl font-bold mb-6",children:"RSA Encryption"}),S.jsxs("div",{className:"mb-8 space-y-2",children:[S.jsx("p",{children:"Encrypt a file using RSA public key."}),S.jsx("p",{children:"The key can be identified using either its ID or associated tags."}),S.jsx("p",{className:"text-sm text-yellow-600",children:"Note: RSA PKCS #1 v1.5 is deprecated in FIPS 140-3."})]}),S.jsx(me,{form:e,onFinish:d,layout:"vertical",initialValues:{encryptionAlgorithm:"CkmRsaPkcsOaep",hashingAlgorithm:"Sha256"},children:S.jsxs(An,{direction:"vertical",size:"middle",style:{display:"flex"},children:[S.jsxs(Je,{children:[S.jsx("h3",{className:"text-m font-bold mb-4",children:"Input File"}),S.jsx(me.Item,{name:"fileName",style:{display:"none"},children:S.jsx(St,{})}),S.jsx(me.Item,{name:"inputFile",rules:[{required:!0,message:"Please select a file to encrypt"}],children:S.jsx(sa.Dragger,{beforeUpload:f=>{e.setFieldValue("fileName",f.name);const m=new FileReader;return m.onload=p=>{var h;const v=(h=p.target)==null?void 0:h.result;if(v&&v instanceof ArrayBuffer){const b=new Uint8Array(v);e.setFieldsValue({inputFile:b})}},m.readAsArrayBuffer(f),!1},maxCount:1,children:S.jsx("p",{className:"ant-upload-text",children:"Click or drag file to this area to encrypt"})})})]}),S.jsxs(Je,{children:[S.jsx("h3",{className:"text-m font-bold mb-4",children:"Key Identification (required)"}),S.jsx(me.Item,{name:"keyId",label:"Key ID",help:"The unique identifier of the public key",children:S.jsx(St,{placeholder:"Enter key ID"})}),S.jsx(me.Item,{name:"tags",label:"Tags",help:"Alternative to Key ID: specify tags to identify the key",children:S.jsx(jt,{mode:"tags",placeholder:"Enter tags",open:!1})})]}),S.jsxs(Je,{children:[S.jsx(me.Item,{name:"encryptionAlgorithm",label:"Encryption Algorithm",rules:[{required:!0}],help:"RSA OAEP is recommended for security",children:S.jsx(jt,{options:sae})}),S.jsx(me.Item,{name:"hashingAlgorithm",label:"Hashing Algorithm",rules:[{required:!0}],help:"SHA-256 or stronger is recommended",children:S.jsx(jt,{options:cae})})]}),S.jsx(me.Item,{children:S.jsx(bn,{type:"primary",htmlType:"submit",loading:r,className:"w-full text-white font-medium",children:"Encrypt File"})})]})}),t&&S.jsx("div",{ref:c,children:S.jsx(Je,{title:"RSA encrypt response",children:t})})]})},dae=()=>{const[e]=me.useForm(),[t,n]=i.useState(void 0),[r,a]=i.useState(!1),{idToken:o,serverUrl:l}=Bn(),c=i.useRef(null);i.useEffect(()=>{t&&c.current&&c.current.scrollIntoView({behavior:"smooth"})},[t]);const d=async f=>{a(!0),n(void 0);try{const m=NJ(f.privateKeyId,f.tags,f.sizeInBits,f.sensitive),p=await ir(m,o,l);if(p){const v=await Ix(p);n(`Key pair has been created. Private key Id: ${v.PrivateKeyUniqueIdentifier} - Public key Id: ${v.PublicKeyUniqueIdentifier}`)}}catch(m){n(`Error creating keypair: ${m}`),console.error("Error creating keypair:",m)}finally{a(!1)}};return S.jsxs("div",{className:"p-6",children:[S.jsx("h1",{className:"text-2xl font-bold mb-6",children:"Create an RSA key pair"}),S.jsxs("div",{className:"mb-8 space-y-2",children:[S.jsx("p",{children:"Create a new RSA key pair:"}),S.jsxs("ul",{className:"list-disc pl-5 space-y-1",children:[S.jsx("li",{children:"The public key is used to encrypt or verify signatures and can be safely shared."}),S.jsx("li",{children:"The private key is used to decrypt or sign and must be kept secret."})]})]}),S.jsx(me,{form:e,onFinish:d,layout:"vertical",initialValues:{sizeInBits:4096,tags:[],sensitive:!1},children:S.jsxs(An,{direction:"vertical",size:"middle",style:{display:"flex"},children:[S.jsxs(Je,{children:[S.jsx(me.Item,{name:"privateKeyId",label:"Private Key ID",help:"Optional: a random UUID will be generated if not specified",children:S.jsx(St,{placeholder:"Enter private key ID"})}),S.jsx(me.Item,{name:"sizeInBits",label:"Size in Bits",help:"The expected size in bits for the RSA key",rules:[{required:!0,message:"Please specify the key size"}],children:S.jsx(rx,{className:"w-[200px]",min:1024,step:1024,max:8192})}),S.jsx(me.Item,{name:"tags",label:"Tags",help:"Optional: Add tags to help retrieve the keys later",children:S.jsx(jt,{mode:"tags",placeholder:"Enter tags",open:!1})}),S.jsx(me.Item,{name:"sensitive",valuePropName:"checked",help:"If set, the private key will not be exportable",children:S.jsx(Jr,{children:"Sensitive"})})]}),S.jsx(me.Item,{children:S.jsx(bn,{type:"primary",htmlType:"submit",loading:r,className:"w-full text-white font-medium",children:"Create RSA Keypair"})})]})}),t&&S.jsx("div",{ref:c,children:S.jsx(Je,{title:"RSA keys creation response",children:t})})]})},fae=()=>{const[e]=me.useForm(),[t,n]=i.useState(void 0),[r,a]=i.useState(!1),{idToken:o,serverUrl:l}=Bn(),c=i.useRef(null);i.useEffect(()=>{t&&c.current&&c.current.scrollIntoView({behavior:"smooth"})},[t]);const d=async f=>{a(!0),n(void 0);try{const m=kJ(f.keyId,f.tags,f.numberOfBits,f.algorithm,f.sensitive,f.wrappingKeyId),p=await ir(m,o,l);if(p){const v=await ZP(p);n(`${v.UniqueIdentifier} has been created.`)}}catch(m){n(`Error creating key: ${m}`),console.error("Error creating key:",m)}finally{a(!1)}};return S.jsxs("div",{className:"p-6",children:[S.jsx("h1",{className:"text-2xl font-bold mb-6",children:"Create a symmetric key"}),S.jsxs("div",{className:"mb-8 space-y-2",children:[S.jsx("p",{children:"Create a new symmetric key:"}),S.jsxs("ul",{className:"list-disc pl-5 space-y-1",children:[S.jsx("li",{children:"When bytes are specified, the key will be created from the provided bytes."}),S.jsx("li",{children:"Otherwise, the key will be randomly generated with the specified number of bits."}),S.jsx("li",{children:"If no options are specified, a fresh 256-bit AES key will be created."})]})]}),S.jsxs(me,{form:e,onFinish:d,layout:"vertical",initialValues:{algorithm:"Aes",numberOfBits:256,tags:[],sensitive:!1},children:[S.jsxs(An,{direction:"vertical",size:"middle",style:{display:"flex"},children:[S.jsxs(Je,{children:[S.jsx(me.Item,{name:"algorithm",label:"Algorithm",rules:[{required:!0,message:"Please select an algorithm"}],children:S.jsxs(jt,{children:[S.jsx(jt.Option,{value:"Aes",children:"Aes"}),S.jsx(jt.Option,{value:"Chacha20",children:"ChaCha20"}),S.jsx(jt.Option,{value:"Sha3",children:"SHA3"}),S.jsx(jt.Option,{value:"Shake",children:"SHAKE"})]})}),S.jsx(me.Item,{name:"numberOfBits",label:"Number of Bits",help:"The length of the generated random key in bits",children:S.jsx(rx,{className:"w-[200px]",min:128,step:128,max:512})}),S.jsx(me.Item,{name:"bytesB64",label:"Key Bytes (Base64)",help:"Optional: specify the key bytes directly instead of generating random ones",children:S.jsx(St.TextArea,{placeholder:"Enter base64 encoded key bytes",rows:4})}),S.jsx(me.Item,{name:"keyId",label:"Key ID",help:"Optional: a random UUID will be generated if not specified",children:S.jsx(St,{placeholder:"Enter key ID"})}),S.jsx(me.Item,{name:"tags",label:"Tags",help:"Optional: Add tags to help retrieve the key later",children:S.jsx(jt,{mode:"tags",placeholder:"Enter tags",open:!1})}),S.jsx(me.Item,{name:"wrappingKeyId",label:"Wrapping Key ID",help:"Optional: ID of the key to wrap this new key with",children:S.jsx(St,{placeholder:"Enter wrapping key ID"})}),S.jsx(me.Item,{name:"sensitive",valuePropName:"checked",help:"If set, the key will not be exportable",children:S.jsx(Jr,{children:"Sensitive"})})]}),S.jsx(me.Item,{children:S.jsx(bn,{type:"primary",htmlType:"submit",loading:r,className:"w-full text-white font-medium",children:"Create Symmetric Key"})})]}),t&&S.jsx("div",{ref:c,children:S.jsx(Je,{title:"Symmetric keys creation response",children:t})})]})]})},mae=[{label:"AES-GCM (default)",value:"AesGcm"},{label:"AES-CBC",value:"AesCbc"},{label:"AES-XTS",value:"AesXts"},{label:"AES-GCM-SIV",value:"AesGcmSiv"},{label:"ChaCha20-Poly1305",value:"Chacha20Poly1305"}],pae=()=>{const[e]=me.useForm(),[t,n]=i.useState(void 0),[r,a]=i.useState(!1),{idToken:o,serverUrl:l}=Bn(),c=i.useRef(null),d=me.useWatch("dataEncryptionAlgorithm",e);i.useEffect(()=>{t&&c.current&&c.current.scrollIntoView({behavior:"smooth"})},[t]);const f=async m=>{const p=m.keyId?m.keyId:m.tags?JSON.stringify(m.tags):void 0;try{if(p==null)throw n("Missing key identifier."),Error("Missing key identifier");const v=MJ(p,m.inputFile,m.authenticationData,m.dataEncryptionAlgorithm),h=await ir(v,o,l);if(h){const b=await kd(h),x=m.fileName.slice(0,-4),C=x.lastIndexOf(".")!==-1?x:`${x}.plain`,w=jd(C);Nd(b.Data,C,w),n("File has been decrypted")}}catch(v){n(`Error decrypting: ${v}`),console.error("Error decrypting:",v)}finally{a(!1)}};return S.jsxs("div",{className:"p-6",children:[S.jsx("h1",{className:"text-2xl font-bold mb-6",children:"Symmetric Decryption"}),S.jsxs("div",{className:"mb-8 space-y-2",children:[S.jsx("p",{children:"Decrypt a file using a symmetric key."}),S.jsx("p",{children:"Decryption can happen in two ways:"}),S.jsxs("ul",{className:"list-disc pl-5 space-y-1",children:[S.jsx("li",{children:"Server side: the data is sent to the server and decrypted there."}),S.jsx("li",{children:"Client side: The data encryption key (DEK) is decrypted server-side, then data is decrypted locally."})]}),S.jsx("p",{className:"text-sm text-yellow-600",children:"Note: Server-side decryption loads the entire file in memory."})]}),S.jsx(me,{form:e,onFinish:f,layout:"vertical",initialValues:{dataEncryptionAlgorithm:"AesGcm"},children:S.jsxs(An,{direction:"vertical",size:"middle",style:{display:"flex"},children:[S.jsxs(Je,{children:[S.jsx("h3",{className:"text-m font-bold mb-4",children:"Input File"}),S.jsx(me.Item,{name:"fileName",style:{display:"none"},children:S.jsx(St,{})}),S.jsx(me.Item,{name:"inputFile",rules:[{required:!0,message:"Please select a file to decrypt"}],children:S.jsx(sa.Dragger,{beforeUpload:m=>{e.setFieldValue("fileName",m.name);const p=new FileReader;return p.onload=v=>{var b;const h=(b=v.target)==null?void 0:b.result;if(h&&h instanceof ArrayBuffer){const x=new Uint8Array(h);e.setFieldsValue({inputFile:x})}},p.readAsArrayBuffer(m),!1},maxCount:1,children:S.jsx("p",{className:"ant-upload-text",children:"Click or drag file to this area to decrypt"})})})]}),S.jsxs(Je,{children:[S.jsx("h3",{className:"text-m font-bold mb-4",children:"Key Identification (required)"}),S.jsx(me.Item,{name:"keyId",label:"Key ID",help:"The unique identifier of the symmetric key",children:S.jsx(St,{placeholder:"Enter key ID"})}),S.jsx(me.Item,{name:"tags",label:"Tags",help:"Alternative to Key ID: specify tags to identify the key",children:S.jsx(jt,{mode:"tags",placeholder:"Enter tags",open:!1})})]}),S.jsxs(Je,{children:[S.jsx(me.Item,{name:"dataEncryptionAlgorithm",label:"Data Encryption Algorithm",rules:[{required:!0}],help:"Algorithm used to encrypt the data",children:S.jsx(jt,{options:mae})}),d!=="AesXts"&&d!=="AesCbc"&&S.jsx(me.Item,{name:"authenticationData",label:"Authentication Data",help:"Optional hex-encoded authentication data used during encryption",children:S.jsx(St,{placeholder:"Enter authentication data (hex)"})})]}),S.jsx(me.Item,{children:S.jsx(bn,{type:"primary",htmlType:"submit",loading:r,className:"w-full text-white font-medium",children:"Decrypt File"})})]})}),t&&S.jsx("div",{ref:c,children:S.jsx(Je,{title:"Symmetric keys decrypt response",children:t})})]})},vae=()=>{const[e]=me.useForm(),[t,n]=i.useState(void 0),[r,a]=i.useState(!1),{idToken:o,serverUrl:l}=Bn(),c=i.useRef(null),d=me.useWatch("dataEncryptionAlgorithm",e);i.useEffect(()=>{t&&c.current&&c.current.scrollIntoView({behavior:"smooth"})},[t]);const f=async m=>{a(!0),n(void 0);const p=m.keyId?m.keyId:m.tags?JSON.stringify(m.tags):void 0;try{if(p==null)throw n("Missing key identifier."),Error("Missing key identifier");const v=AJ(p,void 0,m.inputFile,m.nonce,m.authenticationData,m.dataEncryptionAlgorithm),h=await ir(v,o,l);if(h){const{IvCounterNonce:b,Data:x,AuthenticatedEncryptionTag:y}=await Md(h),C=new Uint8Array(b.length+x.length+y.length);C.set(b,0),C.set(x,b.length),C.set(y,b.length+x.length);const w="application/octet-stream",E=`${m.fileName}.enc`;os(C,E,w),n("File has been encrypted")}}catch(v){n(`Error encrypting: ${v}`),console.error("Error encrypting:",v)}finally{a(!1)}};return S.jsxs("div",{className:"rounded-lg p-6 m-4",children:[S.jsx("h1",{className:"text-2xl font-bold mb-6",children:"Symmetric Encryption"}),S.jsxs("div",{className:"mb-8 space-y-2",children:[S.jsx("p",{children:"Encrypt a file using a symmetric key."}),S.jsx("p",{children:"Encryption can happen in two ways:"}),S.jsxs("ul",{className:"list-disc pl-5 space-y-1",children:[S.jsx("li",{children:"Server side: the data is sent to the server and encrypted there."}),S.jsx("li",{children:"Client side: The data encryption key (DEK) is encrypted server-side, then data is encrypted locally."})]}),S.jsx("p",{className:"text-sm text-yellow-600",children:"Note: Server-side encryption loads the entire file in memory."})]}),S.jsx(me,{form:e,onFinish:f,layout:"vertical",initialValues:{dataEncryptionAlgorithm:"AesGcm"},children:S.jsxs(An,{direction:"vertical",size:"middle",style:{display:"flex"},children:[S.jsxs(Je,{children:[S.jsx("h3",{className:"text-m font-bold mb-4",children:"Input File"}),S.jsx(me.Item,{name:"fileName",style:{display:"none"},children:S.jsx(St,{})}),S.jsx(me.Item,{name:"inputFile",rules:[{required:!0,message:"Please select a file to encrypt"}],children:S.jsx(sa.Dragger,{beforeUpload:m=>{e.setFieldValue("fileName",m.name);const p=new FileReader;return p.onload=v=>{var b;const h=(b=v.target)==null?void 0:b.result;if(h&&h instanceof ArrayBuffer){const x=new Uint8Array(h);e.setFieldsValue({inputFile:x})}},p.readAsArrayBuffer(m),!1},maxCount:1,children:S.jsx("p",{className:"ant-upload-text",children:"Click or drag file to this area to encrypt"})})})]}),S.jsxs(Je,{children:[S.jsx("h3",{className:"text-m font-bold mb-4",children:"Key Identification (required)"}),S.jsx(me.Item,{name:"keyId",label:"Key ID",help:"The unique identifier of the symmetric key",children:S.jsx(St,{placeholder:"Enter key ID"})}),S.jsx(me.Item,{name:"tags",label:"Tags",help:"Alternative to Key ID: specify tags to identify the key",children:S.jsx(jt,{mode:"tags",placeholder:"Enter tags",open:!1})})]}),S.jsxs(Je,{children:[S.jsx(me.Item,{name:"dataEncryptionAlgorithm",label:"Data Encryption Algorithm",rules:[{required:!0}],help:"Algorithm used to encrypt the data",children:S.jsxs(jt,{children:[S.jsx(jt.Option,{value:"AesGcm",children:"AES-GCM"}),S.jsx(jt.Option,{value:"AesGcmSiv",children:"AES-GCM-SIV"}),S.jsx(jt.Option,{value:"AesCbc",children:"AES-CBC"}),S.jsx(jt.Option,{value:"Chacha20Poly1305",children:"ChaCha20-Poly1305"}),S.jsx(jt.Option,{value:"AesXts",children:"AES-XTS"})]})}),d!=="AesXts"&&d!=="AesCbc"&&S.jsxs(S.Fragment,{children:[S.jsx(me.Item,{name:"nonce",label:"Nonce/IV",help:"Optional: random value will be generated if not provided (hex string)",children:S.jsx(St,{placeholder:"Enter nonce in hex format"})}),S.jsx(me.Item,{name:"authenticationData",label:"Authentication Data",help:"Optional: additional authentication data (hex string)",children:S.jsx(St,{placeholder:"Enter authentication data in hex format"})})]})]}),S.jsx(me.Item,{children:S.jsx(bn,{type:"primary",htmlType:"submit",loading:r,className:"w-full text-white font-medium",children:"Encrypt File (Server-side)"})})]})}),t&&S.jsx("div",{ref:c,children:S.jsx(Je,{title:"Symmetric keys encrypt response",children:t})})]})},gae=({isDarkMode:e,setIsDarkMode:t})=>{const{setServerUrl:n,setIdToken:r}=Bn(),[a,o]=i.useState(!1),[l,c]=i.useState(!1),[d,f]=i.useState("None");return i.useEffect(()=>{const m=window.location.origin;n(m);const p=async()=>{const v=await xJ(m);if(f(v),v=="JWT"){const h=await bJ(m);h&&(r(h),o(!0))}c(!1)};c(!0),p()},[]),l?S.jsx(S.Fragment,{}):S.jsx(iJ,{children:!a&&d==="JWT"?S.jsxs(S.Fragment,{children:[S.jsx(tn,{path:"/login",element:S.jsx(E_,{auth:!0})}),S.jsx(tn,{path:"*",element:S.jsx(rJ,{to:"/login",replace:!0})})]}):S.jsxs(S.Fragment,{children:[S.jsx(tn,{index:!0,element:S.jsx(E_,{auth:!1})}),S.jsxs(tn,{path:"/",element:S.jsx(nae,{isDarkMode:e,setIsDarkMode:t,authMethod:d}),children:[S.jsx(tn,{path:"locate",element:S.jsx(Qre,{})}),S.jsxs(tn,{path:"sym",children:[S.jsx(tn,{path:"keys/create",element:S.jsx(fae,{})}),S.jsx(tn,{path:"keys/export",element:S.jsx(dm,{key_type:"symmetric"})}),S.jsx(tn,{path:"keys/import",element:S.jsx(fm,{key_type:"symmetric"})}),S.jsx(tn,{path:"keys/revoke",element:S.jsx(hu,{objectType:"symmetric"})}),S.jsx(tn,{path:"keys/destroy",element:S.jsx(gu,{objectType:"symmetric"})}),S.jsx(tn,{path:"encrypt",element:S.jsx(vae,{})}),S.jsx(tn,{path:"decrypt",element:S.jsx(pae,{})})]}),S.jsxs(tn,{path:"rsa",children:[S.jsx(tn,{path:"keys/create",element:S.jsx(dae,{})}),S.jsx(tn,{path:"keys/export",element:S.jsx(dm,{key_type:"rsa"})}),S.jsx(tn,{path:"keys/import",element:S.jsx(fm,{key_type:"rsa"})}),S.jsx(tn,{path:"keys/revoke",element:S.jsx(hu,{objectType:"rsa"})}),S.jsx(tn,{path:"keys/destroy",element:S.jsx(gu,{objectType:"rsa"})}),S.jsx(tn,{path:"encrypt",element:S.jsx(uae,{})}),S.jsx(tn,{path:"decrypt",element:S.jsx(lae,{})})]}),S.jsxs(tn,{path:"ec",children:[S.jsx(tn,{path:"keys/create",element:S.jsx(Kre,{})}),S.jsx(tn,{path:"keys/export",element:S.jsx(dm,{key_type:"ec"})}),S.jsx(tn,{path:"keys/import",element:S.jsx(fm,{key_type:"ec"})}),S.jsx(tn,{path:"keys/revoke",element:S.jsx(hu,{objectType:"ec"})}),S.jsx(tn,{path:"keys/destroy",element:S.jsx(gu,{objectType:"ec"})}),S.jsx(tn,{path:"encrypt",element:S.jsx(Wre,{})}),S.jsx(tn,{path:"decrypt",element:S.jsx(Vre,{})})]}),S.jsxs(tn,{path:"cc",children:[S.jsx(tn,{path:"keys/create-master-key-pair",element:S.jsx(zre,{})}),S.jsx(tn,{path:"keys/create-user-key",element:S.jsx(Hre,{})}),S.jsx(tn,{path:"keys/export",element:S.jsx(dm,{key_type:"covercrypt"})}),S.jsx(tn,{path:"keys/import",element:S.jsx(fm,{key_type:"covercrypt"})}),S.jsx(tn,{path:"keys/revoke",element:S.jsx(hu,{objectType:"covercrypt"})}),S.jsx(tn,{path:"keys/destroy",element:S.jsx(gu,{objectType:"covercrypt"})}),S.jsx(tn,{path:"encrypt",element:S.jsx(Lre,{})}),S.jsx(tn,{path:"decrypt",element:S.jsx(Fre,{})})]}),S.jsxs(tn,{path:"access-rights",children:[S.jsx(tn,{path:"grant",element:S.jsx(CJ,{})}),S.jsx(tn,{path:"revoke",element:S.jsx(_J,{})}),S.jsx(tn,{path:"list",element:S.jsx(wJ,{})}),S.jsx(tn,{path:"owned",element:S.jsx(aae,{})}),S.jsx(tn,{path:"obtained",element:S.jsx($J,{})})]}),S.jsxs(tn,{path:"certificates",children:[S.jsx(tn,{path:"certs/import",element:S.jsx(Tre,{})}),S.jsx(tn,{path:"certs/export",element:S.jsx(Mre,{})}),S.jsx(tn,{path:"certs/revoke",element:S.jsx(hu,{objectType:"certificate"})}),S.jsx(tn,{path:"certs/destroy",element:S.jsx(gu,{objectType:"certificate"})}),S.jsx(tn,{path:"certs/validate",element:S.jsx(Dre,{})}),S.jsx(tn,{path:"encrypt",element:S.jsx(jre,{})}),S.jsx(tn,{path:"decrypt",element:S.jsx(Nre,{})}),S.jsx(tn,{path:"certs/certify",element:S.jsx(Rre,{})})]}),S.jsxs(tn,{path:"attributes",children:[S.jsx(tn,{path:"get",element:S.jsx(wZ,{})}),S.jsx(tn,{path:"set",element:S.jsx(Ire,{})}),S.jsx(tn,{path:"delete",element:S.jsx(yZ,{})})]})]}),S.jsx(tn,{path:"*",element:S.jsx(rae,{})})]})})};function hae(){const[e,t]=i.useState(!1);i.useEffect(()=>{async function a(){await tN()}a()},[]);const n={token:{colorPrimary:"#e34319",colorText:"#292f52"},components:{Layout:{headerBg:"#ffffff",footerPadding:"5px 50px"},Card:{colorBgContainer:"#ffffff",borderRadiusLG:8},Form:{itemMarginBottom:40},Switch:{trackHeight:32,handleSize:28},Button:{defaultHoverBorderColor:"#6e31e8",defaultHoverColor:"#6e31e8"}}},r={token:{colorPrimary:"#9e6eff",colorText:"#e4dddd",colorBgBase:"#2a2d30",colorTextPlaceholder:"#b9b9b9",colorError:"#e23030",colorBorder:"#4d4b4b",colorSplit:"#4d4b4b",colorBorderSecondary:"#4d4b4b"},components:{Layout:{headerBg:"#272d33",footerPadding:"5px 50px"},Menu:{itemSelectedBg:"#393E46",itemSelectedColor:"#9e6eff",itemHoverBg:"#2e3238",itemActiveBg:"#393E46",itemActiveColor:"#9e6eff"},Form:{colorError:"#FD7014",colorTextDescription:"#b9b9b9",itemMarginBottom:40},Button:{primaryShadow:"None",dangerShadow:"None,",defaultBorderColor:"#e4dddd"},Select:{selectorBg:"#2f3239",colorBorder:"#34383f",optionActiveBg:"#9e6eff",optionActiveColor:"#2a2d30",optionSelectedBg:"#9e6eff",optionSelectedColor:"#2a2d30",colorIcon:"#9e6eff"},Input:{selectorBg:"#2f3239",colorBorder:"#34383f"},InputNumber:{colorIcon:"#9e6eff",colorBorder:"#9e6eff"},Card:{colorBgContainer:"#393E46",borderRadiusLG:8},Switch:{trackHeight:32,handleSize:28}}};return S.jsx(mJ,{basename:"/ui",children:S.jsx(Ei,{theme:{...nX.defaultConfig,...e?r:n},children:S.jsx(yJ,{children:S.jsx(gae,{isDarkMode:e,setIsDarkMode:t})})})})}Rk.createRoot(document.getElementById("root")).render(S.jsx(i.StrictMode,{children:S.jsx(hae,{})})); diff --git a/crate/server/ui/dist/index.html b/crate/server/ui/dist/index.html new file mode 100644 index 00000000..abe8169c --- /dev/null +++ b/crate/server/ui/dist/index.html @@ -0,0 +1,14 @@ + + + + + + + Cosmian KMS + + + + +
+ + diff --git a/crate/server/ui/dist/login_page_background_image.png b/crate/server/ui/dist/login_page_background_image.png new file mode 100644 index 00000000..a0555be6 Binary files /dev/null and b/crate/server/ui/dist/login_page_background_image.png differ diff --git a/crate/server/ui/dist/login_page_background_image_2.png b/crate/server/ui/dist/login_page_background_image_2.png new file mode 100644 index 00000000..065593ac Binary files /dev/null and b/crate/server/ui/dist/login_page_background_image_2.png differ