File: /var/www/html/wp-content/plugins/wp-graphql/build/graphiqlQueryComposer.js
(()=>{var e={8605(e){"use strict";var t="%[a-f0-9]{2}",n=new RegExp("("+t+")|([^%]+?)","gi"),r=new RegExp("("+t+")+","gi");function o(e,t){try{return[decodeURIComponent(e.join(""))]}catch(e){}if(1===e.length)return e;t=t||1;var n=e.slice(0,t),r=e.slice(t);return Array.prototype.concat.call([],o(n),o(r))}function i(e){try{return decodeURIComponent(e)}catch(i){for(var t=e.match(n)||[],r=1;r<t.length;r++)t=(e=o(t,r).join("")).match(n)||[];return e}}e.exports=function(e){if("string"!=typeof e)throw new TypeError("Expected `encodedURI` to be of type `string`, got `"+typeof e+"`");try{return e=e.replace(/\+/g," "),decodeURIComponent(e)}catch(t){return function(e){for(var t={"%FE%FF":"��","%FF%FE":"��"},n=r.exec(e);n;){try{t[n[0]]=decodeURIComponent(n[0])}catch(e){var o=i(n[0]);o!==n[0]&&(t[n[0]]=o)}n=r.exec(e)}t["%C2"]="�";for(var a=Object.keys(t),l=0;l<a.length;l++){var s=a[l];e=e.replace(new RegExp(s,"g"),t[s])}return e}(e)}}},28(e){"use strict";e.exports=function(e,t){for(var n={},r=Object.keys(e),o=Array.isArray(t),i=0;i<r.length;i++){var a=r[i],l=e[a];(o?-1!==t.indexOf(a):t(a,l,e))&&(n[a]=l)}return n}},8032(e,t,n){"use strict";const r=n(7269),o=n(8605),i=n(2851),a=n(28),l=Symbol("encodeFragmentIdentifier");function s(e){if("string"!=typeof e||1!==e.length)throw new TypeError("arrayFormatSeparator must be single character string")}function c(e,t){return t.encode?t.strict?r(e):encodeURIComponent(e):e}function u(e,t){return t.decode?o(e):e}function d(e){return Array.isArray(e)?e.sort():"object"==typeof e?d(Object.keys(e)).sort((e,t)=>Number(e)-Number(t)).map(t=>e[t]):e}function f(e){const t=e.indexOf("#");return-1!==t&&(e=e.slice(0,t)),e}function p(e){const t=(e=f(e)).indexOf("?");return-1===t?"":e.slice(t+1)}function m(e,t){return t.parseNumbers&&!Number.isNaN(Number(e))&&"string"==typeof e&&""!==e.trim()?e=Number(e):!t.parseBooleans||null===e||"true"!==e.toLowerCase()&&"false"!==e.toLowerCase()||(e="true"===e.toLowerCase()),e}function g(e,t){s((t=Object.assign({decode:!0,sort:!0,arrayFormat:"none",arrayFormatSeparator:",",parseNumbers:!1,parseBooleans:!1},t)).arrayFormatSeparator);const n=function(e){let t;switch(e.arrayFormat){case"index":return(e,n,r)=>{t=/\[(\d*)\]$/.exec(e),e=e.replace(/\[\d*\]$/,""),t?(void 0===r[e]&&(r[e]={}),r[e][t[1]]=n):r[e]=n};case"bracket":return(e,n,r)=>{t=/(\[\])$/.exec(e),e=e.replace(/\[\]$/,""),t?void 0!==r[e]?r[e]=[].concat(r[e],n):r[e]=[n]:r[e]=n};case"colon-list-separator":return(e,n,r)=>{t=/(:list)$/.exec(e),e=e.replace(/:list$/,""),t?void 0!==r[e]?r[e]=[].concat(r[e],n):r[e]=[n]:r[e]=n};case"comma":case"separator":return(t,n,r)=>{const o="string"==typeof n&&n.includes(e.arrayFormatSeparator),i="string"==typeof n&&!o&&u(n,e).includes(e.arrayFormatSeparator);n=i?u(n,e):n;const a=o||i?n.split(e.arrayFormatSeparator).map(t=>u(t,e)):null===n?n:u(n,e);r[t]=a};case"bracket-separator":return(t,n,r)=>{const o=/(\[\])$/.test(t);if(t=t.replace(/\[\]$/,""),!o)return void(r[t]=n?u(n,e):n);const i=null===n?[]:n.split(e.arrayFormatSeparator).map(t=>u(t,e));void 0!==r[t]?r[t]=[].concat(r[t],i):r[t]=i};default:return(e,t,n)=>{void 0!==n[e]?n[e]=[].concat(n[e],t):n[e]=t}}}(t),r=Object.create(null);if("string"!=typeof e)return r;if(!(e=e.trim().replace(/^[?#&]/,"")))return r;for(const o of e.split("&")){if(""===o)continue;let[e,a]=i(t.decode?o.replace(/\+/g," "):o,"=");a=void 0===a?null:["comma","separator","bracket-separator"].includes(t.arrayFormat)?a:u(a,t),n(u(e,t),a,r)}for(const e of Object.keys(r)){const n=r[e];if("object"==typeof n&&null!==n)for(const e of Object.keys(n))n[e]=m(n[e],t);else r[e]=m(n,t)}return!1===t.sort?r:(!0===t.sort?Object.keys(r).sort():Object.keys(r).sort(t.sort)).reduce((e,t)=>{const n=r[t];return Boolean(n)&&"object"==typeof n&&!Array.isArray(n)?e[t]=d(n):e[t]=n,e},Object.create(null))}t.extract=p,t.parse=g,t.stringify=(e,t)=>{if(!e)return"";s((t=Object.assign({encode:!0,strict:!0,arrayFormat:"none",arrayFormatSeparator:","},t)).arrayFormatSeparator);const n=n=>t.skipNull&&null==e[n]||t.skipEmptyString&&""===e[n],r=function(e){switch(e.arrayFormat){case"index":return t=>(n,r)=>{const o=n.length;return void 0===r||e.skipNull&&null===r||e.skipEmptyString&&""===r?n:null===r?[...n,[c(t,e),"[",o,"]"].join("")]:[...n,[c(t,e),"[",c(o,e),"]=",c(r,e)].join("")]};case"bracket":return t=>(n,r)=>void 0===r||e.skipNull&&null===r||e.skipEmptyString&&""===r?n:null===r?[...n,[c(t,e),"[]"].join("")]:[...n,[c(t,e),"[]=",c(r,e)].join("")];case"colon-list-separator":return t=>(n,r)=>void 0===r||e.skipNull&&null===r||e.skipEmptyString&&""===r?n:null===r?[...n,[c(t,e),":list="].join("")]:[...n,[c(t,e),":list=",c(r,e)].join("")];case"comma":case"separator":case"bracket-separator":{const t="bracket-separator"===e.arrayFormat?"[]=":"=";return n=>(r,o)=>void 0===o||e.skipNull&&null===o||e.skipEmptyString&&""===o?r:(o=null===o?"":o,0===r.length?[[c(n,e),t,c(o,e)].join("")]:[[r,c(o,e)].join(e.arrayFormatSeparator)])}default:return t=>(n,r)=>void 0===r||e.skipNull&&null===r||e.skipEmptyString&&""===r?n:null===r?[...n,c(t,e)]:[...n,[c(t,e),"=",c(r,e)].join("")]}}(t),o={};for(const t of Object.keys(e))n(t)||(o[t]=e[t]);const i=Object.keys(o);return!1!==t.sort&&i.sort(t.sort),i.map(n=>{const o=e[n];return void 0===o?"":null===o?c(n,t):Array.isArray(o)?0===o.length&&"bracket-separator"===t.arrayFormat?c(n,t)+"[]":o.reduce(r(n),[]).join("&"):c(n,t)+"="+c(o,t)}).filter(e=>e.length>0).join("&")},t.parseUrl=(e,t)=>{t=Object.assign({decode:!0},t);const[n,r]=i(e,"#");return Object.assign({url:n.split("?")[0]||"",query:g(p(e),t)},t&&t.parseFragmentIdentifier&&r?{fragmentIdentifier:u(r,t)}:{})},t.stringifyUrl=(e,n)=>{n=Object.assign({encode:!0,strict:!0,[l]:!0},n);const r=f(e.url).split("?")[0]||"",o=t.extract(e.url),i=t.parse(o,{sort:!1}),a=Object.assign(i,e.query);let s=t.stringify(a,n);s&&(s=`?${s}`);let u=function(e){let t="";const n=e.indexOf("#");return-1!==n&&(t=e.slice(n)),t}(e.url);return e.fragmentIdentifier&&(u=`#${n[l]?c(e.fragmentIdentifier,n):e.fragmentIdentifier}`),`${r}${s}${u}`},t.pick=(e,n,r)=>{r=Object.assign({parseFragmentIdentifier:!0,[l]:!1},r);const{url:o,query:i,fragmentIdentifier:s}=t.parseUrl(e,r);return t.stringifyUrl({url:o,query:a(i,n),fragmentIdentifier:s},r)},t.exclude=(e,n,r)=>{const o=Array.isArray(n)?e=>!n.includes(e):(e,t)=>!n(e,t);return t.pick(e,o,r)}},320(e,t){"use strict";var n=Symbol.for("react.element"),r=Symbol.for("react.portal"),o=Symbol.for("react.fragment"),i=Symbol.for("react.strict_mode"),a=Symbol.for("react.profiler"),l=Symbol.for("react.provider"),s=Symbol.for("react.context"),c=Symbol.for("react.server_context"),u=Symbol.for("react.forward_ref"),d=Symbol.for("react.suspense"),f=Symbol.for("react.suspense_list"),p=Symbol.for("react.memo"),m=Symbol.for("react.lazy");Symbol.for("react.offscreen");Symbol.for("react.module.reference"),t.ForwardRef=u,t.isMemo=function(e){return function(e){if("object"==typeof e&&null!==e){var t=e.$$typeof;switch(t){case n:switch(e=e.type){case o:case a:case i:case d:case f:return e;default:switch(e=e&&e.$$typeof){case c:case s:case u:case m:case p:case l:return e;default:return t}}case r:return t}}}(e)===p}},524(e,t,n){"use strict";e.exports=n(320)},2146(e){e.exports=function(e,t,n,r){var o=n?n.call(r,e,t):void 0;if(void 0!==o)return!!o;if(e===t)return!0;if("object"!=typeof e||!e||"object"!=typeof t||!t)return!1;var i=Object.keys(e),a=Object.keys(t);if(i.length!==a.length)return!1;for(var l=Object.prototype.hasOwnProperty.bind(t),s=0;s<i.length;s++){var c=i[s];if(!l(c))return!1;var u=e[c],d=t[c];if(!1===(o=n?n.call(r,u,d,c):void 0)||void 0===o&&u!==d)return!1}return!0}},2851(e){"use strict";e.exports=(e,t)=>{if("string"!=typeof e||"string"!=typeof t)throw new TypeError("Expected the arguments to be of type `string`");if(""===t)return[e];const n=e.indexOf(t);return-1===n?[e]:[e.slice(0,n),e.slice(n+t.length)]}},7269(e){"use strict";e.exports=e=>encodeURIComponent(e).replace(/[!'()*]/g,e=>`%${e.charCodeAt(0).toString(16).toUpperCase()}`)},3373(e,t){var n;!function(){"use strict";var r={}.hasOwnProperty;function o(){for(var e="",t=0;t<arguments.length;t++){var n=arguments[t];n&&(e=a(e,i(n)))}return e}function i(e){if("string"==typeof e||"number"==typeof e)return e;if("object"!=typeof e)return"";if(Array.isArray(e))return o.apply(null,e);if(e.toString!==Object.prototype.toString&&!e.toString.toString().includes("[native code]"))return e.toString();var t="";for(var n in e)r.call(e,n)&&e[n]&&(t=a(t,n));return t}function a(e,t){return t?e?e+" "+t:e+t:e}e.exports?(o.default=o,e.exports=o):void 0===(n=function(){return o}.apply(t,[]))||(e.exports=n)}()}},t={};function n(r){var o=t[r];if(void 0!==o)return o.exports;var i=t[r]={exports:{}};return e[r](i,i.exports,n),i.exports}n.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return n.d(t,{a:t}),t},n.d=(e,t)=>{for(var r in t)n.o(t,r)&&!n.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:t[r]})},n.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),n.nc=void 0,(()=>{"use strict";const e=window.React;var t=n.n(e);const{useContext:r,useState:o,createContext:i,useEffect:a}=wp.element,{hooks:l,useAppContext:s}=window.wpGraphiQL,c=i(),u=()=>r(c),d=({children:t})=>{const n=s(),{queryParams:r,setQueryParams:i}=n,[a,u]=o((()=>{var e,t;const n=null!==(e=window?.localStorage.getItem("graphiql:isQueryComposerOpen"))&&void 0!==e?e:null,o="true"===r?.explorerIsOpen,i=null!==(t=r?.isQueryComposerOpen)&&void 0!==t?t:o;return null!==i?i:null!==n&&n})()),d=l.applyFilters("graphiql_explorer_context_default_value",{isQueryComposerOpen:a,toggleExplorer:()=>{(e=>{a!==e&&u(e);const t={...r,isQueryComposerOpen:e,explorerIsOpen:void 0};JSON.stringify(t)!==JSON.stringify(r)&&i(t),window?.localStorage.setItem("graphiql:isQueryComposerOpen",`${e}`)})(!a)}});return(0,e.createElement)(c.Provider,{value:d},t)},{useEffect:f}=wp.element,p=t=>{const{isQueryComposerOpen:n,toggleExplorer:r}=u(),{children:o}=t,i="400px";return n?(0,e.createElement)("div",{className:"docExplorerWrap doc-explorer-app query-composer-wrap",style:{height:"100%",width:i,minWidth:i,zIndex:8,display:n?"flex":"none",flexDirection:"column",overflow:"hidden"}},(0,e.createElement)("div",{className:"doc-explorer"},(0,e.createElement)("div",{className:"doc-explorer-title-bar"},(0,e.createElement)("div",{className:"doc-explorer-title"},"Query Composer"),(0,e.createElement)("div",{className:"doc-explorer-rhs"},(0,e.createElement)("div",{className:"docExplorerHide",style:{cursor:"pointer",fontSize:"18px",margin:"-7px -8px -6px 0",padding:"18px 16px 15px 12px",background:0,border:0,lineHeight:"14px"},onClick:r},"✕"))),(0,e.createElement)("div",{className:"doc-explorer-contents",style:{backgroundColor:"#ffffff",borderTop:"1px solid #d6d6d6",bottom:0,left:0,overflowY:"hidden",padding:"0",right:0,top:"47px",position:"absolute"}},o))):null},m=wpGraphiQL.GraphQL;let g=null;const h=e=>{const t=e.getFields();if(t.id){const e=["id"];return t.email?e.push("email"):t.name&&e.push("name"),e}if(t.edges)return["edges"];if(t.node)return["node"];if(t.nodes)return["nodes"];const n=[];return Object.keys(t).forEach(e=>{(0,m.isLeafType)(t[e].type)&&n.push(e)}),n.length?n.slice(0,2):["__typename"]},v={keyword:"#B11A04",def:"#D2054E",property:"#1F61A0",qualifier:"#1C92A9",attribute:"#8B2BB9",number:"#2882F9",string:"#D64292",builtin:"#D47509",string2:"#0B7FC7",variable:"#397D13",atom:"#CA9800"},b=(0,e.createElement)("svg",{width:"12",height:"9"},(0,e.createElement)("path",{fill:"#666",d:"M 0 2 L 9 2 L 4.5 7.5 z"})),y=(0,e.createElement)("svg",{width:"12",height:"9"},(0,e.createElement)("path",{fill:"#666",d:"M 0 0 L 0 9 L 5.5 4.5 z"})),x=(0,e.createElement)("svg",{style:{marginRight:"3px",marginLeft:"-3px"},width:"12",height:"12",viewBox:"0 0 18 18",fill:"none",xmlns:"http://www.w3.org/2000/svg"},(0,e.createElement)("path",{d:"M16 0H2C0.9 0 0 0.9 0 2V16C0 17.1 0.9 18 2 18H16C17.1 18 18 17.1 18 16V2C18 0.9 17.1 0 16 0ZM16 16H2V2H16V16ZM14.99 6L13.58 4.58L6.99 11.17L4.41 8.6L2.99 10.01L6.99 14L14.99 6Z",fill:"#666"})),C=(0,e.createElement)("svg",{style:{marginRight:"3px",marginLeft:"-3px"},width:"12",height:"12",viewBox:"0 0 18 18",fill:"none",xmlns:"http://www.w3.org/2000/svg"},(0,e.createElement)("path",{d:"M16 2V16H2V2H16ZM16 0H2C0.9 0 0 0.9 0 2V16C0 17.1 0.9 18 2 18H16C17.1 18 18 17.1 18 16V2C18 0.9 17.1 0 16 0Z",fill:"#CCC"})),w={buttonStyle:{fontSize:"1.2em",padding:"0px",backgroundColor:"white",border:"none",margin:"5px 0px",height:"40px",width:"100%",display:"block",maxWidth:"none"},actionButtonStyle:{padding:"0px",backgroundColor:"white",border:"none",margin:"0px",maxWidth:"none",height:"15px",width:"15px",display:"inline-block",fontSize:"smaller"},explorerActionsStyle:{margin:"4px -8px -8px",paddingLeft:"8px",bottom:"0px",width:"100%",textAlign:"center",background:"none",borderTop:"none",borderBottom:"none"}},S={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"query",variableDefinitions:[],name:{kind:"Name",value:"NewQuery"},directives:[],selectionSet:{kind:"SelectionSet",selections:[]}}]},$=e=>{if(g&&g[0]===e)return g[1];const t=(e=>{try{return e.trim()?(0,m.parse)(e,{noLocation:!0}):null}catch(e){return new Error(e)}})(e);return t?t instanceof Error?g?null!==(n=g[1])&&void 0!==n?n:"":S:(g=[e,t],t):S;var n},E=e=>e.charAt(0).toUpperCase()+e.slice(1),O=e=>(0,m.isNonNullType)(e.type)&&void 0===e.defaultValue,k=e=>{let t=e;for(;(0,m.isWrappingType)(t);)t=t.ofType;return t},I=e=>{let t=e;for(;(0,m.isWrappingType)(t);)t=t.ofType;return t},j=(e,t)=>{if("string"!=typeof t&&"VariableDefinition"===t.kind)return t.variable;if((0,m.isScalarType)(e))try{switch(e.name){case"String":return{kind:"StringValue",value:String(e.parseValue(t))};case"Float":return{kind:"FloatValue",value:String(e.parseValue(parseFloat(t)))};case"Int":return{kind:"IntValue",value:String(e.parseValue(parseInt(t,10)))};case"Boolean":try{const e=JSON.parse(t);return"boolean"==typeof e?{kind:"BooleanValue",value:e}:{kind:"BooleanValue",value:!1}}catch(e){return{kind:"BooleanValue",value:!1}}default:return{kind:"StringValue",value:String(e.parseValue(t))}}}catch(e){return console.error("error coercing arg value",e,t),{kind:"StringValue",value:t}}else try{const n=e.parseValue(t);return n?{kind:"EnumValue",value:String(n)}:{kind:"EnumValue",value:e.getValues()[0].name}}catch(t){return{kind:"EnumValue",value:e.getValues()[0].name}}},P=(e,t,n,r)=>{const o=[];for(const i of r)if((0,m.isRequiredInputField)(i)||t&&t(n,i)){const r=I(i.type);if((0,m.isInputObjectType)(r)){const a=r.getFields();o.push({kind:"ObjectField",name:{kind:"Name",value:i.name},value:{kind:"ObjectValue",fields:P(e,t,n,Object.keys(a).map(e=>a[e]))}})}else(0,m.isLeafType)(r)&&o.push({kind:"ObjectField",name:{kind:"Name",value:i.name},value:e(n,i,r)})}return o},M=(e,t,n)=>{const r=[];for(const o of n.args)if(O(o)||t&&t(n,o)){const i=I(o.type);if((0,m.isInputObjectType)(i)){const a=i.getFields();r.push({kind:"Argument",name:{kind:"Name",value:o.name},value:{kind:"ObjectValue",fields:P(e,t,n,Object.keys(a).map(e=>a[e]))}})}else(0,m.isLeafType)(i)&&r.push({kind:"Argument",name:{kind:"Name",value:o.name},value:e(n,o,i)})}return r},N=(e,t,n)=>(e=>{if((0,m.isEnumType)(e))return{kind:"EnumValue",value:e.getValues()[0].name};switch(e.name){case"String":default:return{kind:"StringValue",value:""};case"Float":return{kind:"FloatValue",value:"1.5"};case"Int":return{kind:"IntValue",value:"10"};case"Boolean":return{kind:"BooleanValue",value:!1}}})(n);var R=n(3373),A=n.n(R);function z(t){var n=t.children,r=t.prefixCls,o=t.id,i=t.overlayInnerStyle,a=t.bodyClassName,l=t.className,s=t.style;return e.createElement("div",{className:A()("".concat(r,"-content"),l),style:s},e.createElement("div",{className:A()("".concat(r,"-inner"),a),id:o,role:"tooltip",style:i},"function"==typeof n?n():n))}function T(){return T=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},T.apply(null,arguments)}function F(e){return F="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},F(e)}function B(e){var t=function(e){if("object"!=F(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=F(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==F(t)?t:t+""}function H(e,t,n){return(t=B(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function _(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function L(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?_(Object(n),!0).forEach(function(t){H(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):_(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function D(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(-1!==t.indexOf(r))continue;n[r]=e[r]}return n}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],-1===t.indexOf(n)&&{}.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}function V(e){if(Array.isArray(e))return e}function W(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function q(e,t){if(e){if("string"==typeof e)return W(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?W(e,t):void 0}}function G(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function X(e,t){return V(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,i,a,l=[],s=!0,c=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;s=!1}else for(;!(s=(r=i.call(n)).done)&&(l.push(r.value),l.length!==t);s=!0);}catch(e){c=!0,o=e}finally{try{if(!s&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(c)throw o}}return l}}(e,t)||q(e,t)||G()}const K=window.ReactDOM;var U=n.n(K);function Y(){return!("undefined"==typeof window||!window.document||!window.document.createElement)}var Q={},Z=[];function J(e,t){}function ee(e,t){}function te(e,t,n){t||Q[n]||(e(!1,n),Q[n]=!0)}function ne(e,t){te(J,e,t)}ne.preMessage=function(e){Z.push(e)},ne.resetWarned=function(){Q={}},ne.noteOnce=function(e,t){te(ee,e,t)};const re=ne;var oe=n(524);function ie(t,n,r){var o=e.useRef({});return"value"in o.current&&!r(o.current.condition,n)||(o.current.value=t(),o.current.condition=n),o.current.value}var ae=Symbol.for("react.element"),le=Symbol.for("react.transitional.element"),se=Symbol.for("react.fragment");function ce(e){return e&&"object"===F(e)&&(e.$$typeof===ae||e.$$typeof===le)&&e.type===se}var ue=Number(e.version.split(".")[0]),de=function(e,t){"function"==typeof e?e(t):"object"===F(e)&&e&&"current"in e&&(e.current=t)},fe=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];var r=t.filter(Boolean);return r.length<=1?r[0]:function(e){t.forEach(function(t){de(t,e)})}},pe=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return ie(function(){return fe.apply(void 0,t)},t,function(e,t){return e.length!==t.length||e.every(function(e,n){return e!==t[n]})})},me=function(e){var t,n;if(!e)return!1;if(ge(e)&&ue>=19)return!0;var r=(0,oe.isMemo)(e)?e.type.type:e.type;return!!("function"!=typeof r||null!==(t=r.prototype)&&void 0!==t&&t.render||r.$$typeof===oe.ForwardRef)&&!!("function"!=typeof e||null!==(n=e.prototype)&&void 0!==n&&n.render||e.$$typeof===oe.ForwardRef)};function ge(t){return(0,e.isValidElement)(t)&&!ce(t)}var he=function(e){if(e&&ge(e)){var t=e;return t.props.propertyIsEnumerable("ref")?t.props.ref:t.ref}return null};const ve=e.createContext(null);function be(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}function ye(e){return function(e){if(Array.isArray(e))return W(e)}(e)||be(e)||q(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}var xe=Y()?e.useLayoutEffect:e.useEffect,Ce=function(t,n){var r=e.useRef(!0);xe(function(){return t(r.current)},n),xe(function(){return r.current=!1,function(){r.current=!0}},[])},we=function(e,t){Ce(function(t){if(!t)return e()},t)};const Se=Ce;var $e=[],Ee="data-rc-order",Oe="data-rc-priority",ke=new Map;function Ie(){var e=(arguments.length>0&&void 0!==arguments[0]?arguments[0]:{}).mark;return e?e.startsWith("data-")?e:"data-".concat(e):"rc-util-key"}function je(e){return e.attachTo?e.attachTo:document.querySelector("head")||document.body}function Pe(e){return Array.from((ke.get(e)||e).children).filter(function(e){return"STYLE"===e.tagName})}function Me(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(!Y())return null;var n=t.csp,r=t.prepend,o=t.priority,i=void 0===o?0:o,a=function(e){return"queue"===e?"prependQueue":e?"prepend":"append"}(r),l="prependQueue"===a,s=document.createElement("style");s.setAttribute(Ee,a),l&&i&&s.setAttribute(Oe,"".concat(i)),null!=n&&n.nonce&&(s.nonce=null==n?void 0:n.nonce),s.innerHTML=e;var c=je(t),u=c.firstChild;if(r){if(l){var d=(t.styles||Pe(c)).filter(function(e){if(!["prepend","prependQueue"].includes(e.getAttribute(Ee)))return!1;var t=Number(e.getAttribute(Oe)||0);return i>=t});if(d.length)return c.insertBefore(s,d[d.length-1].nextSibling),s}c.insertBefore(s,u)}else c.appendChild(s);return s}function Ne(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=je(t);return(t.styles||Pe(n)).find(function(n){return n.getAttribute(Ie(t))===e})}function Re(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=Ne(e,t);n&&je(t).removeChild(n)}function Ae(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=je(n),o=Pe(r),i=L(L({},n),{},{styles:o});!function(e,t){var n=ke.get(e);if(!n||!function(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}(document,n)){var r=Me("",t),o=r.parentNode;ke.set(e,o),e.removeChild(r)}}(r,i);var a,l,s,c=Ne(t,i);if(c)return null!==(a=i.csp)&&void 0!==a&&a.nonce&&c.nonce!==(null===(l=i.csp)||void 0===l?void 0:l.nonce)&&(c.nonce=null===(s=i.csp)||void 0===s?void 0:s.nonce),c.innerHTML!==e&&(c.innerHTML=e),c;var u=Me(e,i);return u.setAttribute(Ie(i),t),u}var ze="rc-util-locker-".concat(Date.now()),Te=0;function Fe(t){var n=!!t,r=X(e.useState(function(){return Te+=1,"".concat(ze,"_").concat(Te)}),1)[0];Se(function(){if(n){var e=(o=document.body,"undefined"!=typeof document&&o&&o instanceof Element?function(e){var t="rc-scrollbar-measure-".concat(Math.random().toString(36).substring(7)),n=document.createElement("div");n.id=t;var r,o,i=n.style;if(i.position="absolute",i.left="0",i.top="0",i.width="100px",i.height="100px",i.overflow="scroll",e){var a=getComputedStyle(e);i.scrollbarColor=a.scrollbarColor,i.scrollbarWidth=a.scrollbarWidth;var l=getComputedStyle(e,"::-webkit-scrollbar"),s=parseInt(l.width,10),c=parseInt(l.height,10);try{var u=s?"width: ".concat(l.width,";"):"",d=c?"height: ".concat(l.height,";"):"";Ae("\n#".concat(t,"::-webkit-scrollbar {\n").concat(u,"\n").concat(d,"\n}"),t)}catch(e){console.error(e),r=s,o=c}}document.body.appendChild(n);var f=e&&r&&!isNaN(r)?r:n.offsetWidth-n.clientWidth,p=e&&o&&!isNaN(o)?o:n.offsetHeight-n.clientHeight;return document.body.removeChild(n),Re(t),{width:f,height:p}}(o):{width:0,height:0}).width,t=document.body.scrollHeight>(window.innerHeight||document.documentElement.clientHeight)&&window.innerWidth>document.body.offsetWidth;Ae("\nhtml body {\n overflow-y: hidden;\n ".concat(t?"width: calc(100% - ".concat(e,"px);"):"","\n}"),r)}else Re(r);var o;return function(){Re(r)}},[n,r])}var Be=!1,He=function(e){return!1!==e&&(Y()&&e?"string"==typeof e?document.querySelector(e):"function"==typeof e?e():e:null)},_e=e.forwardRef(function(t,n){var r=t.open,o=t.autoLock,i=t.getContainer,a=(t.debug,t.autoDestroy),l=void 0===a||a,s=t.children,c=X(e.useState(r),2),u=c[0],d=c[1],f=u||r;e.useEffect(function(){(l||r)&&d(r)},[r,l]);var p=X(e.useState(function(){return He(i)}),2),m=p[0],g=p[1];e.useEffect(function(){var e=He(i);g(null!=e?e:null)});var h=function(t){var n=X(e.useState(function(){return Y()?document.createElement("div"):null}),1)[0],r=e.useRef(!1),o=e.useContext(ve),i=X(e.useState($e),2),a=i[0],l=i[1],s=o||(r.current?void 0:function(e){l(function(t){return[e].concat(ye(t))})});function c(){n.parentElement||document.body.appendChild(n),r.current=!0}function u(){var e;null===(e=n.parentElement)||void 0===e||e.removeChild(n),r.current=!1}return Se(function(){return t?o?o(c):c():u(),u},[t]),Se(function(){a.length&&(a.forEach(function(e){return e()}),l($e))},[a]),[n,s]}(f&&!m),v=X(h,2),b=v[0],y=v[1],x=null!=m?m:b;Fe(o&&r&&Y()&&(x===b||x===document.body));var C=null;s&&me(s)&&n&&(C=s.ref);var w=pe(C,n);if(!f||!Y()||void 0===m)return null;var S=!1===x||Be,$=s;return n&&($=e.cloneElement(s,{ref:w})),e.createElement(ve.Provider,{value:y},S?$:(0,K.createPortal)($,x))});const Le=_e;function De(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=[];return t().Children.forEach(e,function(e){(null!=e||n.keepEmpty)&&(Array.isArray(e)?r=r.concat(De(e)):ce(e)&&e.props?r=r.concat(De(e.props.children,n)):r.push(e))}),r}function Ve(e){return e instanceof HTMLElement||e instanceof SVGElement}function We(e){return e&&"object"===F(e)&&Ve(e.nativeElement)?e.nativeElement:Ve(e)?e:null}function qe(e){var n;return We(e)||(e instanceof t().Component?null===(n=U().findDOMNode)||void 0===n?void 0:n.call(U(),e):null)}var Ge=e.createContext(null),Xe=function(){if("undefined"!=typeof Map)return Map;function e(e,t){var n=-1;return e.some(function(e,r){return e[0]===t&&(n=r,!0)}),n}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(t){var n=e(this.__entries__,t),r=this.__entries__[n];return r&&r[1]},t.prototype.set=function(t,n){var r=e(this.__entries__,t);~r?this.__entries__[r][1]=n:this.__entries__.push([t,n])},t.prototype.delete=function(t){var n=this.__entries__,r=e(n,t);~r&&n.splice(r,1)},t.prototype.has=function(t){return!!~e(this.__entries__,t)},t.prototype.clear=function(){this.__entries__.splice(0)},t.prototype.forEach=function(e,t){void 0===t&&(t=null);for(var n=0,r=this.__entries__;n<r.length;n++){var o=r[n];e.call(t,o[1],o[0])}},t}()}(),Ke="undefined"!=typeof window&&"undefined"!=typeof document&&window.document===document,Ue="undefined"!=typeof globalThis&&globalThis.Math===Math?globalThis:"undefined"!=typeof self&&self.Math===Math?self:"undefined"!=typeof window&&window.Math===Math?window:Function("return this")(),Ye="function"==typeof requestAnimationFrame?requestAnimationFrame.bind(Ue):function(e){return setTimeout(function(){return e(Date.now())},1e3/60)},Qe=["top","right","bottom","left","width","height","size","weight"],Ze="undefined"!=typeof MutationObserver,Je=function(){function e(){this.connected_=!1,this.mutationEventsAdded_=!1,this.mutationsObserver_=null,this.observers_=[],this.onTransitionEnd_=this.onTransitionEnd_.bind(this),this.refresh=function(e){var t=!1,n=!1,r=0;function o(){t&&(t=!1,e()),n&&a()}function i(){Ye(o)}function a(){var e=Date.now();if(t){if(e-r<2)return;n=!0}else t=!0,n=!1,setTimeout(i,20);r=e}return a}(this.refresh.bind(this))}return e.prototype.addObserver=function(e){~this.observers_.indexOf(e)||this.observers_.push(e),this.connected_||this.connect_()},e.prototype.removeObserver=function(e){var t=this.observers_,n=t.indexOf(e);~n&&t.splice(n,1),!t.length&&this.connected_&&this.disconnect_()},e.prototype.refresh=function(){this.updateObservers_()&&this.refresh()},e.prototype.updateObservers_=function(){var e=this.observers_.filter(function(e){return e.gatherActive(),e.hasActive()});return e.forEach(function(e){return e.broadcastActive()}),e.length>0},e.prototype.connect_=function(){Ke&&!this.connected_&&(document.addEventListener("transitionend",this.onTransitionEnd_),window.addEventListener("resize",this.refresh),Ze?(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(){Ke&&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(e){var t=e.propertyName,n=void 0===t?"":t;Qe.some(function(e){return!!~n.indexOf(e)})&&this.refresh()},e.getInstance=function(){return this.instance_||(this.instance_=new e),this.instance_},e.instance_=null,e}(),et=function(e,t){for(var n=0,r=Object.keys(t);n<r.length;n++){var o=r[n];Object.defineProperty(e,o,{value:t[o],enumerable:!1,writable:!1,configurable:!0})}return e},tt=function(e){return e&&e.ownerDocument&&e.ownerDocument.defaultView||Ue},nt=lt(0,0,0,0);function rt(e){return parseFloat(e)||0}function ot(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];return t.reduce(function(t,n){return t+rt(e["border-"+n+"-width"])},0)}var it="undefined"!=typeof SVGGraphicsElement?function(e){return e instanceof tt(e).SVGGraphicsElement}:function(e){return e instanceof tt(e).SVGElement&&"function"==typeof e.getBBox};function at(e){return Ke?it(e)?function(e){var t=e.getBBox();return lt(0,0,t.width,t.height)}(e):function(e){var t=e.clientWidth,n=e.clientHeight;if(!t&&!n)return nt;var r=tt(e).getComputedStyle(e),o=function(e){for(var t={},n=0,r=["top","right","bottom","left"];n<r.length;n++){var o=r[n],i=e["padding-"+o];t[o]=rt(i)}return t}(r),i=o.left+o.right,a=o.top+o.bottom,l=rt(r.width),s=rt(r.height);if("border-box"===r.boxSizing&&(Math.round(l+i)!==t&&(l-=ot(r,"left","right")+i),Math.round(s+a)!==n&&(s-=ot(r,"top","bottom")+a)),!function(e){return e===tt(e).document.documentElement}(e)){var c=Math.round(l+i)-t,u=Math.round(s+a)-n;1!==Math.abs(c)&&(l-=c),1!==Math.abs(u)&&(s-=u)}return lt(o.left,o.top,l,s)}(e):nt}function lt(e,t,n,r){return{x:e,y:t,width:n,height:r}}var st=function(){function e(e){this.broadcastWidth=0,this.broadcastHeight=0,this.contentRect_=lt(0,0,0,0),this.target=e}return e.prototype.isActive=function(){var e=at(this.target);return this.contentRect_=e,e.width!==this.broadcastWidth||e.height!==this.broadcastHeight},e.prototype.broadcastRect=function(){var e=this.contentRect_;return this.broadcastWidth=e.width,this.broadcastHeight=e.height,e},e}(),ct=function(e,t){var n=function(e){var t=e.x,n=e.y,r=e.width,o=e.height,i="undefined"!=typeof DOMRectReadOnly?DOMRectReadOnly:Object,a=Object.create(i.prototype);return et(a,{x:t,y:n,width:r,height:o,top:n,right:t+r,bottom:o+n,left:t}),a}(t);et(this,{target:e,contentRect:n})},ut=function(){function e(e,t,n){if(this.activeObservations_=[],this.observations_=new Xe,"function"!=typeof e)throw new TypeError("The callback provided as parameter 1 is not a function.");this.callback_=e,this.controller_=t,this.callbackCtx_=n}return e.prototype.observe=function(e){if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");if("undefined"!=typeof Element&&Element instanceof Object){if(!(e instanceof tt(e).Element))throw new TypeError('parameter 1 is not of type "Element".');var t=this.observations_;t.has(e)||(t.set(e,new st(e)),this.controller_.addObserver(this),this.controller_.refresh())}},e.prototype.unobserve=function(e){if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");if("undefined"!=typeof Element&&Element instanceof Object){if(!(e instanceof tt(e).Element))throw new TypeError('parameter 1 is not of type "Element".');var t=this.observations_;t.has(e)&&(t.delete(e),t.size||this.controller_.removeObserver(this))}},e.prototype.disconnect=function(){this.clearActive(),this.observations_.clear(),this.controller_.removeObserver(this)},e.prototype.gatherActive=function(){var e=this;this.clearActive(),this.observations_.forEach(function(t){t.isActive()&&e.activeObservations_.push(t)})},e.prototype.broadcastActive=function(){if(this.hasActive()){var e=this.callbackCtx_,t=this.activeObservations_.map(function(e){return new ct(e.target,e.broadcastRect())});this.callback_.call(e,t,e),this.clearActive()}},e.prototype.clearActive=function(){this.activeObservations_.splice(0)},e.prototype.hasActive=function(){return this.activeObservations_.length>0},e}(),dt="undefined"!=typeof WeakMap?new WeakMap:new Xe,ft=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=Je.getInstance(),r=new ut(t,n,this);dt.set(this,r)};["observe","unobserve","disconnect"].forEach(function(e){ft.prototype[e]=function(){var t;return(t=dt.get(this))[e].apply(t,arguments)}});const pt=void 0!==Ue.ResizeObserver?Ue.ResizeObserver:ft;var mt=new Map,gt=new pt(function(e){e.forEach(function(e){var t,n=e.target;null===(t=mt.get(n))||void 0===t||t.forEach(function(e){return e(n)})})});function ht(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function vt(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,B(r.key),r)}}function bt(e,t,n){return t&&vt(e.prototype,t),n&&vt(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function yt(e,t){return yt=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},yt(e,t)}function xt(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&yt(e,t)}function Ct(e){return Ct=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},Ct(e)}function wt(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(wt=function(){return!!e})()}function St(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function $t(e,t){if(t&&("object"==F(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return St(e)}function Et(e){var t=wt();return function(){var n,r=Ct(e);if(t){var o=Ct(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return $t(this,n)}}var Ot=function(e){xt(n,e);var t=Et(n);function n(){return ht(this,n),t.apply(this,arguments)}return bt(n,[{key:"render",value:function(){return this.props.children}}]),n}(e.Component);function kt(t,n){var r=t.children,o=t.disabled,i=e.useRef(null),a=e.useRef(null),l=e.useContext(Ge),s="function"==typeof r,c=s?r(i):r,u=e.useRef({width:-1,height:-1,offsetWidth:-1,offsetHeight:-1}),d=!s&&e.isValidElement(c)&&me(c),f=d?he(c):null,p=pe(f,i),m=function(){var e;return qe(i.current)||(i.current&&"object"===F(i.current)?qe(null===(e=i.current)||void 0===e?void 0:e.nativeElement):null)||qe(a.current)};e.useImperativeHandle(n,function(){return m()});var g=e.useRef(t);g.current=t;var h=e.useCallback(function(e){var t=g.current,n=t.onResize,r=t.data,o=e.getBoundingClientRect(),i=o.width,a=o.height,s=e.offsetWidth,c=e.offsetHeight,d=Math.floor(i),f=Math.floor(a);if(u.current.width!==d||u.current.height!==f||u.current.offsetWidth!==s||u.current.offsetHeight!==c){var p={width:d,height:f,offsetWidth:s,offsetHeight:c};u.current=p;var m=s===Math.round(i)?i:s,h=c===Math.round(a)?a:c,v=L(L({},p),{},{offsetWidth:m,offsetHeight:h});null==l||l(v,e,r),n&&Promise.resolve().then(function(){n(v,e)})}},[]);return e.useEffect(function(){var e,t,n=m();return n&&!o&&(e=n,t=h,mt.has(e)||(mt.set(e,new Set),gt.observe(e)),mt.get(e).add(t)),function(){return function(e,t){mt.has(e)&&(mt.get(e).delete(t),mt.get(e).size||(gt.unobserve(e),mt.delete(e)))}(n,h)}},[i.current,o]),e.createElement(Ot,{ref:a},d?e.cloneElement(c,{ref:p}):c)}const It=e.forwardRef(kt);function jt(t,n){var r=t.children;return("function"==typeof r?[r]:De(r)).map(function(r,o){var i=(null==r?void 0:r.key)||"".concat("rc-observer-key","-").concat(o);return e.createElement(It,T({},t,{key:i,ref:0===o?n:void 0}),r)})}var Pt=e.forwardRef(jt);Pt.Collection=function(t){var n=t.children,r=t.onBatchResize,o=e.useRef(0),i=e.useRef([]),a=e.useContext(Ge),l=e.useCallback(function(e,t,n){o.current+=1;var l=o.current;i.current.push({size:e,element:t,data:n}),Promise.resolve().then(function(){l===o.current&&(null==r||r(i.current),i.current=[])}),null==a||a(e,t,n)},[r,a]);return e.createElement(Ge.Provider,{value:l},n)};const Mt=Pt;function Nt(e){var t;return null==e||null===(t=e.getRootNode)||void 0===t?void 0:t.call(e)}function Rt(e){return function(e){return Nt(e)instanceof ShadowRoot}(e)?Nt(e):null}function At(t){var n=e.useRef();n.current=t;var r=e.useCallback(function(){for(var e,t=arguments.length,r=new Array(t),o=0;o<t;o++)r[o]=arguments[o];return null===(e=n.current)||void 0===e?void 0:e.call.apply(e,[n].concat(r))},[]);return r}var zt=0,Tt=L({},e).useId;const Ft=Tt?function(e){var t=Tt();return e||t}:function(t){var n=X(e.useState("ssr-id"),2),r=n[0],o=n[1];return e.useEffect(function(){var e=zt;zt+=1,o("rc_unique_".concat(e))},[]),t||r},Bt=function(){if("undefined"==typeof navigator||"undefined"==typeof window)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(null==e?void 0:e.substr(0,4))};var Ht=["children"],_t=e.createContext({});function Lt(t){var n=t.children,r=D(t,Ht);return e.createElement(_t.Provider,{value:r},n)}var Dt=function(e){xt(n,e);var t=Et(n);function n(){return ht(this,n),t.apply(this,arguments)}return bt(n,[{key:"render",value:function(){return this.props.children}}]),n}(e.Component);const Vt=Dt;function Wt(t){var n=e.useRef(!1),r=X(e.useState(t),2),o=r[0],i=r[1];return e.useEffect(function(){return n.current=!1,function(){n.current=!0}},[]),[o,function(e,t){t&&n.current||i(e)}]}function qt(e){return void 0!==e}function Gt(e,t){var n=t||{},r=n.defaultValue,o=n.value,i=n.onChange,a=n.postState,l=X(Wt(function(){return qt(o)?o:qt(r)?"function"==typeof r?r():r:"function"==typeof e?e():e}),2),s=l[0],c=l[1],u=void 0!==o?o:s,d=a?a(u):u,f=At(i),p=X(Wt([u]),2),m=p[0],g=p[1];return we(function(){var e=m[0];s!==e&&f(s,e)},[m]),we(function(){qt(o)||c(o)},[o]),[d,At(function(e,t){c(e,t),g([u],t)})]}function Xt(e,t){for(var n=e,r=0;r<t.length;r+=1){if(null==n)return;n=n[t[r]]}return n}function Kt(e){return V(e)||be(e)||q(e)||G()}function Ut(e,t,n,r){if(!t.length)return n;var o,i=Kt(t),a=i[0],l=i.slice(1);return o=e||"number"!=typeof a?Array.isArray(e)?ye(e):L({},e):[],r&&void 0===n&&1===l.length?delete o[a][l[0]]:o[a]=Ut(o[a],l,n,r),o}function Yt(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]&&arguments[3];return t.length&&r&&void 0===n&&!Xt(e,t.slice(0,-1))?e:Ut(e,t,n,r)}function Qt(e){return Array.isArray(e)?[]:{}}var Zt="undefined"==typeof Reflect?Object.keys:Reflect.ownKeys;function Jt(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];var r=Qt(t[0]);return t.forEach(function(e){!function t(n,o){var i,a=new Set(o),l=Xt(e,n),s=Array.isArray(l);if(s||"object"===F(i=l)&&null!==i&&Object.getPrototypeOf(i)===Object.prototype){if(!a.has(l)){a.add(l);var c=Xt(r,n);s?r=Yt(r,n,[]):c&&"object"===F(c)||(r=Yt(r,n,Qt(l))),Zt(l).forEach(function(e){t([].concat(ye(n),[e]),a)})}}else r=Yt(r,n,l)}([])}),r}var en="none",tn="appear",nn="enter",rn="leave",on="none",an="prepare",ln="start",sn="active",cn="end",un="prepared";function dn(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}var fn,pn,mn,gn=(fn=Y(),pn="undefined"!=typeof window?window:{},mn={animationend:dn("Animation","AnimationEnd"),transitionend:dn("Transition","TransitionEnd")},fn&&("AnimationEvent"in pn||delete mn.animationend.animation,"TransitionEvent"in pn||delete mn.transitionend.transition),mn),hn={};if(Y()){var vn=document.createElement("div");hn=vn.style}var bn={};function yn(e){if(bn[e])return bn[e];var t=gn[e];if(t)for(var n=Object.keys(t),r=n.length,o=0;o<r;o+=1){var i=n[o];if(Object.prototype.hasOwnProperty.call(t,i)&&i in hn)return bn[e]=t[i],bn[e]}return""}var xn=yn("animationend"),Cn=yn("transitionend"),wn=!(!xn||!Cn),Sn=xn||"animationend",$n=Cn||"transitionend";function En(e,t){return e?"object"===F(e)?e[t.replace(/-\w/g,function(e){return e[1].toUpperCase()})]:"".concat(e,"-").concat(t):null}const On=Y()?e.useLayoutEffect:e.useEffect;var kn=function(e){return+setTimeout(e,16)},In=function(e){return clearTimeout(e)};"undefined"!=typeof window&&"requestAnimationFrame"in window&&(kn=function(e){return window.requestAnimationFrame(e)},In=function(e){return window.cancelAnimationFrame(e)});var jn=0,Pn=new Map;function Mn(e){Pn.delete(e)}var Nn=function(e){var t=jn+=1;return function n(r){if(0===r)Mn(t),e();else{var o=kn(function(){n(r-1)});Pn.set(t,o)}}(arguments.length>1&&void 0!==arguments[1]?arguments[1]:1),t};Nn.cancel=function(e){var t=Pn.get(e);return Mn(e),In(t)};const Rn=Nn;var An=[an,ln,sn,cn],zn=[an,un],Tn=!1;function Fn(e){return e===sn||e===cn}function Bn(t,n,r,o){var i,a,l,s,c=o.motionEnter,u=void 0===c||c,d=o.motionAppear,f=void 0===d||d,p=o.motionLeave,m=void 0===p||p,g=o.motionDeadline,h=o.motionLeaveImmediately,v=o.onAppearPrepare,b=o.onEnterPrepare,y=o.onLeavePrepare,x=o.onAppearStart,C=o.onEnterStart,w=o.onLeaveStart,S=o.onAppearActive,$=o.onEnterActive,E=o.onLeaveActive,O=o.onAppearEnd,k=o.onEnterEnd,I=o.onLeaveEnd,j=o.onVisibleChanged,P=X(Wt(),2),M=P[0],N=P[1],R=(i=en,a=e.useReducer(function(e){return e+1},0),l=X(a,2)[1],s=e.useRef(i),[At(function(){return s.current}),At(function(e){s.current="function"==typeof e?e(s.current):e,l()})]),A=X(R,2),z=A[0],T=A[1],F=X(Wt(null),2),B=F[0],_=F[1],D=z(),V=(0,e.useRef)(!1),W=(0,e.useRef)(null);function q(){return r()}var G=(0,e.useRef)(!1);function K(){T(en),_(null,!0)}var U=At(function(e){var t=z();if(t!==en){var n=q();if(!e||e.deadline||e.target===n){var r,o=G.current;t===tn&&o?r=null==O?void 0:O(n,e):t===nn&&o?r=null==k?void 0:k(n,e):t===rn&&o&&(r=null==I?void 0:I(n,e)),o&&!1!==r&&K()}}}),Y=function(t){var n=(0,e.useRef)();function r(e){e&&(e.removeEventListener($n,t),e.removeEventListener(Sn,t))}return e.useEffect(function(){return function(){r(n.current)}},[]),[function(e){n.current&&n.current!==e&&r(n.current),e&&e!==n.current&&(e.addEventListener($n,t),e.addEventListener(Sn,t),n.current=e)},r]}(U),Q=X(Y,1)[0],Z=function(e){switch(e){case tn:return H(H(H({},an,v),ln,x),sn,S);case nn:return H(H(H({},an,b),ln,C),sn,$);case rn:return H(H(H({},an,y),ln,w),sn,E);default:return{}}},J=e.useMemo(function(){return Z(D)},[D]),ee=X(function(t,n,r){var o=X(Wt(on),2),i=o[0],a=o[1],l=function(){var t=e.useRef(null);function n(){Rn.cancel(t.current)}return e.useEffect(function(){return function(){n()}},[]),[function e(r){var o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:2;n();var i=Rn(function(){o<=1?r({isCanceled:function(){return i!==t.current}}):e(r,o-1)});t.current=i},n]}(),s=X(l,2),c=s[0],u=s[1],d=n?zn:An;return On(function(){if(i!==on&&i!==cn){var e=d.indexOf(i),t=d[e+1],n=r(i);n===Tn?a(t,!0):t&&c(function(e){function r(){e.isCanceled()||a(t,!0)}!0===n?r():Promise.resolve(n).then(r)})}},[t,i]),e.useEffect(function(){return function(){u()}},[]),[function(){a(an,!0)},i]}(D,!t,function(e){if(e===an){var t=J[an];return t?t(q()):Tn}var n;return ne in J&&_((null===(n=J[ne])||void 0===n?void 0:n.call(J,q(),null))||null),ne===sn&&D!==en&&(Q(q()),g>0&&(clearTimeout(W.current),W.current=setTimeout(function(){U({deadline:!0})},g))),ne===un&&K(),!0}),2),te=ee[0],ne=ee[1],re=Fn(ne);G.current=re;var oe=(0,e.useRef)(null);On(function(){if(!V.current||oe.current!==n){N(n);var e,r=V.current;V.current=!0,!r&&n&&f&&(e=tn),r&&n&&u&&(e=nn),(r&&!n&&m||!r&&h&&!n&&m)&&(e=rn);var o=Z(e);e&&(t||o[an])?(T(e),te()):T(en),oe.current=n}},[n]),(0,e.useEffect)(function(){(D===tn&&!f||D===nn&&!u||D===rn&&!m)&&T(en)},[f,u,m]),(0,e.useEffect)(function(){return function(){V.current=!1,clearTimeout(W.current)}},[]);var ie=e.useRef(!1);(0,e.useEffect)(function(){M&&(ie.current=!0),void 0!==M&&D===en&&((ie.current||M)&&(null==j||j(M)),ie.current=!0)},[M,D]);var ae=B;return J[an]&&ne===ln&&(ae=L({transition:"none"},ae)),[D,ne,ae,null!=M?M:n]}const Hn=function(t){var n=t;"object"===F(t)&&(n=t.transitionSupport);var r=e.forwardRef(function(t,r){var o=t.visible,i=void 0===o||o,a=t.removeOnLeave,l=void 0===a||a,s=t.forceRender,c=t.children,u=t.motionName,d=t.leavedClassName,f=t.eventProps,p=function(e,t){return!(!e.motionName||!n||!1===t)}(t,e.useContext(_t).motion),m=(0,e.useRef)(),g=(0,e.useRef)(),h=X(Bn(p,i,function(){try{return m.current instanceof HTMLElement?m.current:qe(g.current)}catch(e){return null}},t),4),v=h[0],b=h[1],y=h[2],x=h[3],C=e.useRef(x);x&&(C.current=!0);var w,S=e.useCallback(function(e){m.current=e,de(r,e)},[r]),$=L(L({},f),{},{visible:i});if(c)if(v===en)w=x?c(L({},$),S):!l&&C.current&&d?c(L(L({},$),{},{className:d}),S):s||!l&&!d?c(L(L({},$),{},{style:{display:"none"}}),S):null;else{var E;b===an?E="prepare":Fn(b)?E="active":b===ln&&(E="start");var O=En(u,"".concat(v,"-").concat(E));w=c(L(L({},$),{},{className:A()(En(u,v),H(H({},O,O&&E),u,"string"==typeof u)),style:y}),S)}else w=null;return e.isValidElement(w)&&me(w)&&(he(w)||(w=e.cloneElement(w,{ref:S}))),e.createElement(Vt,{ref:g},w)});return r.displayName="CSSMotion",r}(wn);var Ln="add",Dn="keep",Vn="remove",Wn="removed";function qn(e){var t;return L(L({},t=e&&"object"===F(e)&&"key"in e?e:{key:e}),{},{key:String(t.key)})}function Gn(){return(arguments.length>0&&void 0!==arguments[0]?arguments[0]:[]).map(qn)}var Xn=["component","children","onVisibleChanged","onAllRemoved"],Kn=["status"],Un=["eventProps","visible","children","motionName","motionAppear","motionEnter","motionLeave","motionLeaveImmediately","motionDeadline","removeOnLeave","leavedClassName","onAppearPrepare","onAppearStart","onAppearActive","onAppearEnd","onEnterStart","onEnterActive","onEnterEnd","onLeaveStart","onLeaveActive","onLeaveEnd"];const Yn=function(){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Hn,n=function(n){xt(o,n);var r=Et(o);function o(){var e;ht(this,o);for(var t=arguments.length,n=new Array(t),i=0;i<t;i++)n[i]=arguments[i];return H(St(e=r.call.apply(r,[this].concat(n))),"state",{keyEntities:[]}),H(St(e),"removeKey",function(t){e.setState(function(e){return{keyEntities:e.keyEntities.map(function(e){return e.key!==t?e:L(L({},e),{},{status:Wn})})}},function(){0===e.state.keyEntities.filter(function(e){return e.status!==Wn}).length&&e.props.onAllRemoved&&e.props.onAllRemoved()})}),e}return bt(o,[{key:"render",value:function(){var n=this,r=this.state.keyEntities,o=this.props,i=o.component,a=o.children,l=o.onVisibleChanged,s=(o.onAllRemoved,D(o,Xn)),c=i||e.Fragment,u={};return Un.forEach(function(e){u[e]=s[e],delete s[e]}),delete s.keys,e.createElement(c,s,r.map(function(r,o){var i=r.status,s=D(r,Kn),c=i===Ln||i===Dn;return e.createElement(t,T({},u,{key:s.key,visible:c,eventProps:s,onVisibleChanged:function(e){null==l||l(e,{key:s.key}),e||n.removeKey(s.key)}}),function(e,t){return a(L(L({},e),{},{index:o}),t)})}))}}],[{key:"getDerivedStateFromProps",value:function(e,t){var n=e.keys,r=t.keyEntities,o=Gn(n),i=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],n=[],r=0,o=t.length,i=Gn(e),a=Gn(t);i.forEach(function(e){for(var t=!1,i=r;i<o;i+=1){var l=a[i];if(l.key===e.key){r<i&&(n=n.concat(a.slice(r,i).map(function(e){return L(L({},e),{},{status:Ln})})),r=i),n.push(L(L({},l),{},{status:Dn})),r+=1,t=!0;break}}t||n.push(L(L({},e),{},{status:Vn}))}),r<o&&(n=n.concat(a.slice(r).map(function(e){return L(L({},e),{},{status:Ln})})));var l={};return n.forEach(function(e){var t=e.key;l[t]=(l[t]||0)+1}),Object.keys(l).filter(function(e){return l[e]>1}).forEach(function(e){(n=n.filter(function(t){var n=t.key,r=t.status;return n!==e||r!==Vn})).forEach(function(t){t.key===e&&(t.status=Dn)})}),n}(r,o);return{keyEntities:i.filter(function(e){var t=r.find(function(t){var n=t.key;return e.key===n});return!t||t.status!==Wn||e.status!==Vn})}}}]),o}(e.Component);return H(n,"defaultProps",{component:"div"}),n}(wn),Qn=Hn;function Zn(t){var n=t.prefixCls,r=t.align,o=t.arrow,i=t.arrowPos,a=o||{},l=a.className,s=a.content,c=i.x,u=void 0===c?0:c,d=i.y,f=void 0===d?0:d,p=e.useRef();if(!r||!r.points)return null;var m={position:"absolute"};if(!1!==r.autoArrow){var g=r.points[0],h=r.points[1],v=g[0],b=g[1],y=h[0],x=h[1];v!==y&&["t","b"].includes(v)?"t"===v?m.top=0:m.bottom=0:m.top=f,b!==x&&["l","r"].includes(b)?"l"===b?m.left=0:m.right=0:m.left=u}return e.createElement("div",{ref:p,className:A()("".concat(n,"-arrow"),l),style:m},s)}function Jn(t){var n=t.prefixCls,r=t.open,o=t.zIndex,i=t.mask,a=t.motion;return i?e.createElement(Qn,T({},a,{motionAppear:!0,visible:r,removeOnLeave:!0}),function(t){var r=t.className;return e.createElement("div",{style:{zIndex:o},className:A()("".concat(n,"-mask"),r)})}):null}var er=e.memo(function(e){return e.children},function(e,t){return t.cache});const tr=er;var nr=e.forwardRef(function(t,n){var r=t.popup,o=t.className,i=t.prefixCls,a=t.style,l=t.target,s=t.onVisibleChanged,c=t.open,u=t.keepDom,d=t.fresh,f=t.onClick,p=t.mask,m=t.arrow,g=t.arrowPos,h=t.align,v=t.motion,b=t.maskMotion,y=t.forceRender,x=t.getPopupContainer,C=t.autoDestroy,w=t.portal,S=t.zIndex,$=t.onMouseEnter,E=t.onMouseLeave,O=t.onPointerEnter,k=t.onPointerDownCapture,I=t.ready,j=t.offsetX,P=t.offsetY,M=t.offsetR,N=t.offsetB,R=t.onAlign,z=t.onPrepare,F=t.stretch,B=t.targetWidth,H=t.targetHeight,_="function"==typeof r?r():r,D=c||u,V=(null==x?void 0:x.length)>0,W=X(e.useState(!x||!V),2),q=W[0],G=W[1];if(Se(function(){!q&&V&&l&&G(!0)},[q,V,l]),!q)return null;var K="auto",U={left:"-1000vw",top:"-1000vh",right:K,bottom:K};if(I||!c){var Y,Q=h.points,Z=h.dynamicInset||(null===(Y=h._experimental)||void 0===Y?void 0:Y.dynamicInset),J=Z&&"r"===Q[0][1],ee=Z&&"b"===Q[0][0];J?(U.right=M,U.left=K):(U.left=j,U.right=K),ee?(U.bottom=N,U.top=K):(U.top=P,U.bottom=K)}var te={};return F&&(F.includes("height")&&H?te.height=H:F.includes("minHeight")&&H&&(te.minHeight=H),F.includes("width")&&B?te.width=B:F.includes("minWidth")&&B&&(te.minWidth=B)),c||(te.pointerEvents="none"),e.createElement(w,{open:y||D,getContainer:x&&function(){return x(l)},autoDestroy:C},e.createElement(Jn,{prefixCls:i,open:c,zIndex:S,mask:p,motion:b}),e.createElement(Mt,{onResize:R,disabled:!c},function(t){return e.createElement(Qn,T({motionAppear:!0,motionEnter:!0,motionLeave:!0,removeOnLeave:!1,forceRender:y,leavedClassName:"".concat(i,"-hidden")},v,{onAppearPrepare:z,onEnterPrepare:z,visible:c,onVisibleChanged:function(e){var t;null==v||null===(t=v.onVisibleChanged)||void 0===t||t.call(v,e),s(e)}}),function(r,l){var s=r.className,u=r.style,p=A()(i,s,o);return e.createElement("div",{ref:fe(t,n,l),className:p,style:L(L(L(L({"--arrow-x":"".concat(g.x||0,"px"),"--arrow-y":"".concat(g.y||0,"px")},U),te),u),{},{boxSizing:"border-box",zIndex:S},a),onMouseEnter:$,onMouseLeave:E,onPointerEnter:O,onClick:f,onPointerDownCapture:k},m&&e.createElement(Zn,{prefixCls:i,arrow:m,arrowPos:g,align:h}),e.createElement(tr,{cache:!c&&!d},_))})}))});const rr=nr;var or=e.forwardRef(function(t,n){var r=t.children,o=t.getTriggerDOMNode,i=me(r),a=e.useCallback(function(e){de(n,o?o(e):e)},[o]),l=pe(a,he(r));return i?e.cloneElement(r,{ref:l}):r});const ir=or,ar=e.createContext(null);function lr(e){return e?Array.isArray(e)?e:[e]:[]}const sr=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 o=e.getBoundingClientRect(),i=o.width,a=o.height;if(i||a)return!0}}return!1};function cr(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];return(arguments.length>2?arguments[2]:void 0)?e[0]===t[0]:e[0]===t[0]&&e[1]===t[1]}function ur(e,t,n,r){return t||(n?{motionName:"".concat(e,"-").concat(n)}:r?{motionName:r}:null)}function dr(e){return e.ownerDocument.defaultView}function fr(e){for(var t=[],n=null==e?void 0:e.parentElement,r=["hidden","scroll","clip","auto"];n;){var o=dr(n).getComputedStyle(n);[o.overflowX,o.overflowY,o.overflow].some(function(e){return r.includes(e)})&&t.push(n),n=n.parentElement}return t}function pr(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1;return Number.isNaN(e)?t:e}function mr(e){return pr(parseFloat(e),0)}function gr(e,t){var n=L({},e);return(t||[]).forEach(function(e){if(!(e instanceof HTMLBodyElement||e instanceof HTMLHtmlElement)){var t=dr(e).getComputedStyle(e),r=t.overflow,o=t.overflowClipMargin,i=t.borderTopWidth,a=t.borderBottomWidth,l=t.borderLeftWidth,s=t.borderRightWidth,c=e.getBoundingClientRect(),u=e.offsetHeight,d=e.clientHeight,f=e.offsetWidth,p=e.clientWidth,m=mr(i),g=mr(a),h=mr(l),v=mr(s),b=pr(Math.round(c.width/f*1e3)/1e3),y=pr(Math.round(c.height/u*1e3)/1e3),x=(f-p-h-v)*b,C=(u-d-m-g)*y,w=m*y,S=g*y,$=h*b,E=v*b,O=0,k=0;if("clip"===r){var I=mr(o);O=I*b,k=I*y}var j=c.x+$-O,P=c.y+w-k,M=j+c.width+2*O-$-E-x,N=P+c.height+2*k-w-S-C;n.left=Math.max(n.left,j),n.top=Math.max(n.top,P),n.right=Math.min(n.right,M),n.bottom=Math.min(n.bottom,N)}}),n}function hr(e){var t="".concat(arguments.length>1&&void 0!==arguments[1]?arguments[1]:0),n=t.match(/^(.*)\%$/);return n?e*(parseFloat(n[1])/100):parseFloat(t)}function vr(e,t){var n=X(t||[],2),r=n[0],o=n[1];return[hr(e.width,r),hr(e.height,o)]}function br(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return[e[0],e[1]]}function yr(e,t){var n,r=t[0],o=t[1];return n="t"===r?e.y:"b"===r?e.y+e.height:e.y+e.height/2,{x:"l"===o?e.x:"r"===o?e.x+e.width:e.x+e.width/2,y:n}}function xr(e,t){var n={t:"b",b:"t",l:"r",r:"l"};return e.map(function(e,r){return r===t?n[e]||"c":e}).join("")}var Cr=["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"];const wr=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:Le,n=e.forwardRef(function(n,r){var o=n.prefixCls,i=void 0===o?"rc-trigger-popup":o,a=n.children,l=n.action,s=void 0===l?"hover":l,c=n.showAction,u=n.hideAction,d=n.popupVisible,f=n.defaultPopupVisible,p=n.onPopupVisibleChange,m=n.afterPopupVisibleChange,g=n.mouseEnterDelay,h=n.mouseLeaveDelay,v=void 0===h?.1:h,b=n.focusDelay,y=n.blurDelay,x=n.mask,C=n.maskClosable,w=void 0===C||C,S=n.getPopupContainer,$=n.forceRender,E=n.autoDestroy,O=n.destroyPopupOnHide,k=n.popup,I=n.popupClassName,j=n.popupStyle,P=n.popupPlacement,M=n.builtinPlacements,N=void 0===M?{}:M,R=n.popupAlign,z=n.zIndex,T=n.stretch,F=n.getPopupClassNameFromAlign,B=n.fresh,H=n.alignPoint,_=n.onPopupClick,V=n.onPopupAlign,W=n.arrow,q=n.popupMotion,G=n.maskMotion,K=n.popupTransitionName,U=n.popupAnimation,Y=n.maskTransitionName,Q=n.maskAnimation,Z=n.className,J=n.getTriggerDOMNode,ee=D(n,Cr),te=E||O||!1,ne=X(e.useState(!1),2),re=ne[0],oe=ne[1];Se(function(){oe(Bt())},[]);var ie=e.useRef({}),ae=e.useContext(ar),le=e.useMemo(function(){return{registerSubPopup:function(e,t){ie.current[e]=t,null==ae||ae.registerSubPopup(e,t)}}},[ae]),se=Ft(),ce=X(e.useState(null),2),ue=ce[0],de=ce[1],fe=e.useRef(null),pe=At(function(e){fe.current=e,Ve(e)&&ue!==e&&de(e),null==ae||ae.registerSubPopup(se,e)}),me=X(e.useState(null),2),ge=me[0],he=me[1],ve=e.useRef(null),be=At(function(e){Ve(e)&&ge!==e&&(he(e),ve.current=e)}),xe=e.Children.only(a),Ce=(null==xe?void 0:xe.props)||{},we={},$e=At(function(e){var t,n,r=ge;return(null==r?void 0:r.contains(e))||(null===(t=Rt(r))||void 0===t?void 0:t.host)===e||e===r||(null==ue?void 0:ue.contains(e))||(null===(n=Rt(ue))||void 0===n?void 0:n.host)===e||e===ue||Object.values(ie.current).some(function(t){return(null==t?void 0:t.contains(e))||e===t})}),Ee=ur(i,q,U,K),Oe=ur(i,G,Q,Y),ke=X(e.useState(f||!1),2),Ie=ke[0],je=ke[1],Pe=null!=d?d:Ie,Me=At(function(e){void 0===d&&je(e)});Se(function(){je(d||!1)},[d]);var Ne=e.useRef(Pe);Ne.current=Pe;var Re=e.useRef([]);Re.current=[];var Ae=At(function(e){var t;Me(e),(null!==(t=Re.current[Re.current.length-1])&&void 0!==t?t:Pe)!==e&&(Re.current.push(e),null==p||p(e))}),ze=e.useRef(),Te=function(){clearTimeout(ze.current)},Fe=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;Te(),0===t?Ae(e):ze.current=setTimeout(function(){Ae(e)},1e3*t)};e.useEffect(function(){return Te},[]);var Be=X(e.useState(!1),2),He=Be[0],_e=Be[1];Se(function(e){e&&!Pe||_e(!0)},[Pe]);var Le=X(e.useState(null),2),De=Le[0],We=Le[1],qe=X(e.useState(null),2),Ge=qe[0],Xe=qe[1],Ke=function(e){Xe([e.clientX,e.clientY])},Ue=function(t,n,r,o,i,a,l){var s=X(e.useState({ready:!1,offsetX:0,offsetY:0,offsetR:0,offsetB:0,arrowX:0,arrowY:0,scaleX:1,scaleY:1,align:i[o]||{}}),2),c=s[0],u=s[1],d=e.useRef(0),f=e.useMemo(function(){return n?fr(n):[]},[n]),p=e.useRef({});t||(p.current={});var m=At(function(){if(n&&r&&t){var e,s,c,d,m,g=n,h=g.ownerDocument,v=dr(g),b=v.getComputedStyle(g).position,y=g.style.left,x=g.style.top,C=g.style.right,w=g.style.bottom,S=g.style.overflow,$=L(L({},i[o]),a),E=h.createElement("div");if(null===(e=g.parentElement)||void 0===e||e.appendChild(E),E.style.left="".concat(g.offsetLeft,"px"),E.style.top="".concat(g.offsetTop,"px"),E.style.position=b,E.style.height="".concat(g.offsetHeight,"px"),E.style.width="".concat(g.offsetWidth,"px"),g.style.left="0",g.style.top="0",g.style.right="auto",g.style.bottom="auto",g.style.overflow="hidden",Array.isArray(r))m={x:r[0],y:r[1],width:0,height:0};else{var O,k,I=r.getBoundingClientRect();I.x=null!==(O=I.x)&&void 0!==O?O:I.left,I.y=null!==(k=I.y)&&void 0!==k?k:I.top,m={x:I.x,y:I.y,width:I.width,height:I.height}}var j=g.getBoundingClientRect(),P=v.getComputedStyle(g),M=P.height,N=P.width;j.x=null!==(s=j.x)&&void 0!==s?s:j.left,j.y=null!==(c=j.y)&&void 0!==c?c:j.top;var R=h.documentElement,A=R.clientWidth,z=R.clientHeight,T=R.scrollWidth,F=R.scrollHeight,B=R.scrollTop,H=R.scrollLeft,_=j.height,D=j.width,V=m.height,W=m.width,q={left:0,top:0,right:A,bottom:z},G={left:-H,top:-B,right:T-H,bottom:F-B},K=$.htmlRegion,U="visible",Y="visibleFirst";"scroll"!==K&&K!==Y&&(K=U);var Q=K===Y,Z=gr(G,f),J=gr(q,f),ee=K===U?J:Z,te=Q?J:ee;g.style.left="auto",g.style.top="auto",g.style.right="0",g.style.bottom="0";var ne=g.getBoundingClientRect();g.style.left=y,g.style.top=x,g.style.right=C,g.style.bottom=w,g.style.overflow=S,null===(d=g.parentElement)||void 0===d||d.removeChild(E);var re=pr(Math.round(D/parseFloat(N)*1e3)/1e3),oe=pr(Math.round(_/parseFloat(M)*1e3)/1e3);if(0===re||0===oe||Ve(r)&&!sr(r))return;var ie=$.offset,ae=$.targetOffset,le=X(vr(j,ie),2),se=le[0],ce=le[1],ue=X(vr(m,ae),2),de=ue[0],fe=ue[1];m.x-=de,m.y-=fe;var pe=X($.points||[],2),me=pe[0],ge=br(pe[1]),he=br(me),ve=yr(m,ge),be=yr(j,he),ye=L({},$),xe=ve.x-be.x+se,Ce=ve.y-be.y+ce;function gt(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:ee,r=j.x+e,o=j.y+t,i=r+D,a=o+_,l=Math.max(r,n.left),s=Math.max(o,n.top),c=Math.min(i,n.right),u=Math.min(a,n.bottom);return Math.max(0,(c-l)*(u-s))}var we,Se,$e,Ee,Oe=gt(xe,Ce),ke=gt(xe,Ce,J),Ie=yr(m,["t","l"]),je=yr(j,["t","l"]),Pe=yr(m,["b","r"]),Me=yr(j,["b","r"]),Ne=$.overflow||{},Re=Ne.adjustX,Ae=Ne.adjustY,ze=Ne.shiftX,Te=Ne.shiftY,Fe=function(e){return"boolean"==typeof e?e:e>=0};function ht(){we=j.y+Ce,Se=we+_,$e=j.x+xe,Ee=$e+D}ht();var Be=Fe(Ae),He=he[0]===ge[0];if(Be&&"t"===he[0]&&(Se>te.bottom||p.current.bt)){var _e=Ce;He?_e-=_-V:_e=Ie.y-Me.y-ce;var Le=gt(xe,_e),De=gt(xe,_e,J);Le>Oe||Le===Oe&&(!Q||De>=ke)?(p.current.bt=!0,Ce=_e,ce=-ce,ye.points=[xr(he,0),xr(ge,0)]):p.current.bt=!1}if(Be&&"b"===he[0]&&(we<te.top||p.current.tb)){var We=Ce;He?We+=_-V:We=Pe.y-je.y-ce;var qe=gt(xe,We),Ge=gt(xe,We,J);qe>Oe||qe===Oe&&(!Q||Ge>=ke)?(p.current.tb=!0,Ce=We,ce=-ce,ye.points=[xr(he,0),xr(ge,0)]):p.current.tb=!1}var Xe=Fe(Re),Ke=he[1]===ge[1];if(Xe&&"l"===he[1]&&(Ee>te.right||p.current.rl)){var Ue=xe;Ke?Ue-=D-W:Ue=Ie.x-Me.x-se;var Ye=gt(Ue,Ce),Qe=gt(Ue,Ce,J);Ye>Oe||Ye===Oe&&(!Q||Qe>=ke)?(p.current.rl=!0,xe=Ue,se=-se,ye.points=[xr(he,1),xr(ge,1)]):p.current.rl=!1}if(Xe&&"r"===he[1]&&($e<te.left||p.current.lr)){var Ze=xe;Ke?Ze+=D-W:Ze=Pe.x-je.x-se;var Je=gt(Ze,Ce),et=gt(Ze,Ce,J);Je>Oe||Je===Oe&&(!Q||et>=ke)?(p.current.lr=!0,xe=Ze,se=-se,ye.points=[xr(he,1),xr(ge,1)]):p.current.lr=!1}ht();var tt=!0===ze?0:ze;"number"==typeof tt&&($e<J.left&&(xe-=$e-J.left-se,m.x+W<J.left+tt&&(xe+=m.x-J.left+W-tt)),Ee>J.right&&(xe-=Ee-J.right-se,m.x>J.right-tt&&(xe+=m.x-J.right+tt)));var nt=!0===Te?0:Te;"number"==typeof nt&&(we<J.top&&(Ce-=we-J.top-ce,m.y+V<J.top+nt&&(Ce+=m.y-J.top+V-nt)),Se>J.bottom&&(Ce-=Se-J.bottom-ce,m.y>J.bottom-nt&&(Ce+=m.y-J.bottom+nt)));var rt=j.x+xe,ot=rt+D,it=j.y+Ce,at=it+_,lt=m.x,st=lt+W,ct=m.y,ut=ct+V,dt=(Math.max(rt,lt)+Math.min(ot,st))/2-rt,ft=(Math.max(it,ct)+Math.min(at,ut))/2-it;null==l||l(n,ye);var pt=ne.right-j.x-(xe+j.width),mt=ne.bottom-j.y-(Ce+j.height);1===re&&(xe=Math.floor(xe),pt=Math.floor(pt)),1===oe&&(Ce=Math.floor(Ce),mt=Math.floor(mt)),u({ready:!0,offsetX:xe/re,offsetY:Ce/oe,offsetR:pt/re,offsetB:mt/oe,arrowX:dt/re,arrowY:ft/oe,scaleX:re,scaleY:oe,align:ye})}}),g=function(){u(function(e){return L(L({},e),{},{ready:!1})})};return Se(g,[o]),Se(function(){t||g()},[t]),[c.ready,c.offsetX,c.offsetY,c.offsetR,c.offsetB,c.arrowX,c.arrowY,c.scaleX,c.scaleY,c.align,function(){d.current+=1;var e=d.current;Promise.resolve().then(function(){d.current===e&&m()})}]}(Pe,ue,H&&null!==Ge?Ge:ge,P,N,R,V),Ye=X(Ue,11),Qe=Ye[0],Ze=Ye[1],Je=Ye[2],et=Ye[3],tt=Ye[4],nt=Ye[5],rt=Ye[6],ot=Ye[7],it=Ye[8],at=Ye[9],lt=Ye[10],st=function(t,n,r,o){return e.useMemo(function(){var e=lr(null!=r?r:n),i=lr(null!=o?o:n),a=new Set(e),l=new Set(i);return t&&(a.has("hover")&&(a.delete("hover"),a.add("click")),l.has("hover")&&(l.delete("hover"),l.add("click"))),[a,l]},[t,n,r,o])}(re,s,c,u),ct=X(st,2),ut=ct[0],dt=ct[1],ft=ut.has("click"),pt=dt.has("click")||dt.has("contextMenu"),mt=At(function(){He||lt()});!function(e,t,n,r){Se(function(){if(e&&t&&n){var o=n,i=fr(t),a=fr(o),l=dr(o),s=new Set([l].concat(ye(i),ye(a)));function c(){r(),Ne.current&&H&&pt&&Fe(!1)}return s.forEach(function(e){e.addEventListener("scroll",c,{passive:!0})}),l.addEventListener("resize",c,{passive:!0}),r(),function(){s.forEach(function(e){e.removeEventListener("scroll",c),l.removeEventListener("resize",c)})}}},[e,t,n])}(Pe,ge,ue,mt),Se(function(){mt()},[Ge,P]),Se(function(){!Pe||null!=N&&N[P]||mt()},[JSON.stringify(R)]);var gt=e.useMemo(function(){var e=function(e,t,n,r){for(var o=n.points,i=Object.keys(e),a=0;a<i.length;a+=1){var l,s=i[a];if(cr(null===(l=e[s])||void 0===l?void 0:l.points,o,r))return"".concat(t,"-placement-").concat(s)}return""}(N,i,at,H);return A()(e,null==F?void 0:F(at))},[at,F,N,i,H]);e.useImperativeHandle(r,function(){return{nativeElement:ve.current,popupElement:fe.current,forceAlign:mt}});var ht=X(e.useState(0),2),vt=ht[0],bt=ht[1],yt=X(e.useState(0),2),xt=yt[0],Ct=yt[1],wt=function(){if(T&&ge){var e=ge.getBoundingClientRect();bt(e.width),Ct(e.height)}};function St(e,t,n,r){we[e]=function(o){var i;null==r||r(o),Fe(t,n);for(var a=arguments.length,l=new Array(a>1?a-1:0),s=1;s<a;s++)l[s-1]=arguments[s];null===(i=Ce[e])||void 0===i||i.call.apply(i,[Ce,o].concat(l))}}Se(function(){De&&(lt(),De(),We(null))},[De]),(ft||pt)&&(we.onClick=function(e){var t;Ne.current&&pt?Fe(!1):!Ne.current&&ft&&(Ke(e),Fe(!0));for(var n=arguments.length,r=new Array(n>1?n-1:0),o=1;o<n;o++)r[o-1]=arguments[o];null===(t=Ce.onClick)||void 0===t||t.call.apply(t,[Ce,e].concat(r))});var $t,Et,Ot=function(t,n,r,o,i,a,l,s){var c=e.useRef(t);c.current=t;var u=e.useRef(!1);return e.useEffect(function(){if(n&&o&&(!i||a)){var e=function(){u.current=!1},t=function(e){var t;!c.current||l((null===(t=e.composedPath)||void 0===t||null===(t=t.call(e))||void 0===t?void 0:t[0])||e.target)||u.current||s(!1)},d=dr(o);d.addEventListener("pointerdown",e,!0),d.addEventListener("mousedown",t,!0),d.addEventListener("contextmenu",t,!0);var f=Rt(r);return f&&(f.addEventListener("mousedown",t,!0),f.addEventListener("contextmenu",t,!0)),function(){d.removeEventListener("pointerdown",e,!0),d.removeEventListener("mousedown",t,!0),d.removeEventListener("contextmenu",t,!0),f&&(f.removeEventListener("mousedown",t,!0),f.removeEventListener("contextmenu",t,!0))}}},[n,r,o,i,a]),function(){u.current=!0}}(Pe,pt,ge,ue,x,w,$e,Fe),kt=ut.has("hover"),It=dt.has("hover");kt&&(St("onMouseEnter",!0,g,function(e){Ke(e)}),St("onPointerEnter",!0,g,function(e){Ke(e)}),$t=function(e){(Pe||He)&&null!=ue&&ue.contains(e.target)&&Fe(!0,g)},H&&(we.onMouseMove=function(e){var t;null===(t=Ce.onMouseMove)||void 0===t||t.call(Ce,e)})),It&&(St("onMouseLeave",!1,v),St("onPointerLeave",!1,v),Et=function(){Fe(!1,v)}),ut.has("focus")&&St("onFocus",!0,b),dt.has("focus")&&St("onBlur",!1,y),ut.has("contextMenu")&&(we.onContextMenu=function(e){var t;Ne.current&&dt.has("contextMenu")?Fe(!1):(Ke(e),Fe(!0)),e.preventDefault();for(var n=arguments.length,r=new Array(n>1?n-1:0),o=1;o<n;o++)r[o-1]=arguments[o];null===(t=Ce.onContextMenu)||void 0===t||t.call.apply(t,[Ce,e].concat(r))}),Z&&(we.className=A()(Ce.className,Z));var jt=e.useRef(!1);jt.current||(jt.current=$||Pe||He);var Pt=L(L({},Ce),we),Nt={};["onContextMenu","onClick","onMouseDown","onTouchStart","onMouseEnter","onMouseLeave","onFocus","onBlur"].forEach(function(e){ee[e]&&(Nt[e]=function(){for(var t,n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];null===(t=Pt[e])||void 0===t||t.call.apply(t,[Pt].concat(r)),ee[e].apply(ee,r)})});var zt=e.cloneElement(xe,L(L({},Pt),Nt)),Tt={x:nt,y:rt},Ht=W?L({},!0!==W?W:{}):null;return e.createElement(e.Fragment,null,e.createElement(Mt,{disabled:!Pe,ref:be,onResize:function(){wt(),mt()}},e.createElement(ir,{getTriggerDOMNode:J},zt)),jt.current&&e.createElement(ar.Provider,{value:le},e.createElement(rr,{portal:t,ref:pe,prefixCls:i,popup:k,className:A()(I,gt),style:j,target:ge,onMouseEnter:$t,onMouseLeave:Et,onPointerEnter:$t,zIndex:z,open:Pe,keepDom:He,fresh:B,onClick:_,onPointerDownCapture:Ot,mask:x,motion:Ee,maskMotion:Oe,onVisibleChanged:function(e){_e(!1),lt(),null==m||m(e)},onPrepare:function(){return new Promise(function(e){wt(),We(function(){return e})})},forceRender:$,autoDestroy:te,getPopupContainer:S,align:at,arrow:Ht,arrowPos:Tt,ready:Qe,offsetX:Ze,offsetY:Je,offsetR:et,offsetB:tt,onAlign:mt,stretch:T,targetWidth:vt/ot,targetHeight:xt/it})))});return n}(Le);var Sr={shiftX:64,adjustY:1},$r={adjustX:1,shiftY:!0},Er=[0,0],Or={left:{points:["cr","cl"],overflow:$r,offset:[-4,0],targetOffset:Er},right:{points:["cl","cr"],overflow:$r,offset:[4,0],targetOffset:Er},top:{points:["bc","tc"],overflow:Sr,offset:[0,-4],targetOffset:Er},bottom:{points:["tc","bc"],overflow:Sr,offset:[0,4],targetOffset:Er},topLeft:{points:["bl","tl"],overflow:Sr,offset:[0,-4],targetOffset:Er},leftTop:{points:["tr","tl"],overflow:$r,offset:[-4,0],targetOffset:Er},topRight:{points:["br","tr"],overflow:Sr,offset:[0,-4],targetOffset:Er},rightTop:{points:["tl","tr"],overflow:$r,offset:[4,0],targetOffset:Er},bottomRight:{points:["tr","br"],overflow:Sr,offset:[0,4],targetOffset:Er},rightBottom:{points:["bl","br"],overflow:$r,offset:[4,0],targetOffset:Er},bottomLeft:{points:["tl","bl"],overflow:Sr,offset:[0,4],targetOffset:Er},leftBottom:{points:["br","bl"],overflow:$r,offset:[-4,0],targetOffset:Er}},kr=["overlayClassName","trigger","mouseEnterDelay","mouseLeaveDelay","overlayStyle","prefixCls","children","onVisibleChange","afterVisibleChange","transitionName","animation","motion","placement","align","destroyTooltipOnHide","defaultVisible","getTooltipContainer","overlayInnerStyle","arrowContent","overlay","id","showArrow","classNames","styles"],Ir=function(t,n){var r=t.overlayClassName,o=t.trigger,i=void 0===o?["hover"]:o,a=t.mouseEnterDelay,l=void 0===a?0:a,s=t.mouseLeaveDelay,c=void 0===s?.1:s,u=t.overlayStyle,d=t.prefixCls,f=void 0===d?"rc-tooltip":d,p=t.children,m=t.onVisibleChange,g=t.afterVisibleChange,h=t.transitionName,v=t.animation,b=t.motion,y=t.placement,x=void 0===y?"right":y,C=t.align,w=void 0===C?{}:C,S=t.destroyTooltipOnHide,$=void 0!==S&&S,E=t.defaultVisible,O=t.getTooltipContainer,k=t.overlayInnerStyle,I=(t.arrowContent,t.overlay),j=t.id,P=t.showArrow,M=void 0===P||P,N=t.classNames,R=t.styles,F=D(t,kr),B=Ft(j),H=(0,e.useRef)(null);(0,e.useImperativeHandle)(n,function(){return H.current});var _,V,W=L({},F);return"visible"in t&&(W.popupVisible=t.visible),e.createElement(wr,T({popupClassName:A()(r,null==N?void 0:N.root),prefixCls:f,popup:function(){return e.createElement(z,{key:"content",prefixCls:f,id:B,bodyClassName:null==N?void 0:N.body,overlayInnerStyle:L(L({},k),null==R?void 0:R.body)},I)},action:i,builtinPlacements:Or,popupPlacement:x,ref:H,popupAlign:w,getPopupContainer:O,onPopupVisibleChange:m,afterPopupVisibleChange:g,popupTransitionName:h,popupAnimation:v,popupMotion:b,defaultPopupVisible:E,autoDestroy:$,mouseLeaveDelay:c,popupStyle:L(L({},u),null==R?void 0:R.root),mouseEnterDelay:l,arrow:M},W),(V=L(L({},(null==(_=e.Children.only(p))?void 0:_.props)||{}),{},{"aria-describedby":I?B:null}),e.cloneElement(p,V)))};const jr=(0,e.forwardRef)(Ir);function Pr(e,t){this.v=e,this.k=t}function Mr(e,t,n,r){var o=Object.defineProperty;try{o({},"",{})}catch(e){o=0}Mr=function(e,t,n,r){function i(t,n){Mr(e,t,function(e){return this._invoke(t,n,e)})}t?o?o(e,t,{value:n,enumerable:!r,configurable:!r,writable:!r}):e[t]=n:(i("next",0),i("throw",1),i("return",2))},Mr(e,t,n,r)}function Nr(){var e,t,n="function"==typeof Symbol?Symbol:{},r=n.iterator||"@@iterator",o=n.toStringTag||"@@toStringTag";function i(n,r,o,i){var s=r&&r.prototype instanceof l?r:l,c=Object.create(s.prototype);return Mr(c,"_invoke",function(n,r,o){var i,l,s,c=0,u=o||[],d=!1,f={p:0,n:0,v:e,a:p,f:p.bind(e,4),d:function(t,n){return i=t,l=0,s=e,f.n=n,a}};function p(n,r){for(l=n,s=r,t=0;!d&&c&&!o&&t<u.length;t++){var o,i=u[t],p=f.p,m=i[2];n>3?(o=m===r)&&(s=i[(l=i[4])?5:(l=3,3)],i[4]=i[5]=e):i[0]<=p&&((o=n<2&&p<i[1])?(l=0,f.v=r,f.n=i[1]):p<m&&(o=n<3||i[0]>r||r>m)&&(i[4]=n,i[5]=r,f.n=m,l=0))}if(o||n>1)return a;throw d=!0,r}return function(o,u,m){if(c>1)throw TypeError("Generator is already running");for(d&&1===u&&p(u,m),l=u,s=m;(t=l<2?e:s)||!d;){i||(l?l<3?(l>1&&(f.n=-1),p(l,s)):f.n=s:f.v=s);try{if(c=2,i){if(l||(o="next"),t=i[o]){if(!(t=t.call(i,s)))throw TypeError("iterator result is not an object");if(!t.done)return t;s=t.value,l<2&&(l=0)}else 1===l&&(t=i.return)&&t.call(i),l<2&&(s=TypeError("The iterator does not provide a '"+o+"' method"),l=1);i=e}else if((t=(d=f.n<0)?s:n.call(r,f))!==a)break}catch(t){i=e,l=1,s=t}finally{c=1}}return{value:t,done:d}}}(n,o,i),!0),c}var a={};function l(){}function s(){}function c(){}t=Object.getPrototypeOf;var u=[][r]?t(t([][r]())):(Mr(t={},r,function(){return this}),t),d=c.prototype=l.prototype=Object.create(u);function f(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,c):(e.__proto__=c,Mr(e,o,"GeneratorFunction")),e.prototype=Object.create(d),e}return s.prototype=c,Mr(d,"constructor",c),Mr(c,"constructor",s),s.displayName="GeneratorFunction",Mr(c,o,"GeneratorFunction"),Mr(d),Mr(d,o,"Generator"),Mr(d,r,function(){return this}),Mr(d,"toString",function(){return"[object Generator]"}),(Nr=function(){return{w:i,m:f}})()}function Rr(e,t){function n(r,o,i,a){try{var l=e[r](o),s=l.value;return s instanceof Pr?t.resolve(s.v).then(function(e){n("next",e,i,a)},function(e){n("throw",e,i,a)}):t.resolve(s).then(function(e){l.value=e,i(l)},function(e){return n("throw",e,i,a)})}catch(e){a(e)}}var r;this.next||(Mr(Rr.prototype),Mr(Rr.prototype,"function"==typeof Symbol&&Symbol.asyncIterator||"@asyncIterator",function(){return this})),Mr(this,"_invoke",function(e,o,i){function a(){return new t(function(t,r){n(e,i,t,r)})}return r=r?r.then(a,a):a()},!0)}function Ar(e,t,n,r,o){return new Rr(Nr().w(e,t,n,r),o||Promise)}function zr(e,t,n,r,o){var i=Ar(e,t,n,r,o);return i.next().then(function(e){return e.done?e.value:i.next()})}function Tr(e){var t=Object(e),n=[];for(var r in t)n.unshift(r);return function e(){for(;n.length;)if((r=n.pop())in t)return e.value=r,e.done=!1,e;return e.done=!0,e}}function Fr(e){if(null!=e){var t=e["function"==typeof Symbol&&Symbol.iterator||"@@iterator"],n=0;if(t)return t.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length))return{next:function(){return e&&n>=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}}}throw new TypeError(F(e)+" is not iterable")}function Br(){var e=Nr(),t=e.m(Br),n=(Object.getPrototypeOf?Object.getPrototypeOf(t):t.__proto__).constructor;function r(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===n||"GeneratorFunction"===(t.displayName||t.name))}var o={throw:1,return:2,break:3,continue:3};function i(e){var t,n;return function(r){t||(t={stop:function(){return n(r.a,2)},catch:function(){return r.v},abrupt:function(e,t){return n(r.a,o[e],t)},delegateYield:function(e,o,i){return t.resultName=o,n(r.d,Fr(e),i)},finish:function(e){return n(r.f,e)}},n=function(e,n,o){r.p=t.prev,r.n=t.next;try{return e(n,o)}finally{t.next=r.n}}),t.resultName&&(t[t.resultName]=r.v,t.resultName=void 0),t.sent=r.v,t.next=r.n;try{return e.call(this,t)}finally{r.p=t.prev,r.n=t.next}}}return(Br=function(){return{wrap:function(t,n,r,o){return e.w(i(t),n,r,o&&o.reverse())},isGeneratorFunction:r,mark:e.m,awrap:function(e,t){return new Pr(e,t)},AsyncIterator:Rr,async:function(e,t,n,o,a){return(r(t)?Ar:zr)(i(e),t,n,o,a)},keys:Tr,values:Fr}})()}function Hr(e,t,n,r,o,i,a){try{var l=e[i](a),s=l.value}catch(e){return void n(e)}l.done?t(s):Promise.resolve(s).then(r,o)}function _r(e){return function(){var t=this,n=arguments;return new Promise(function(r,o){var i=e.apply(t,n);function a(e){Hr(i,r,o,a,l,"next",e)}function l(e){Hr(i,r,o,a,l,"throw",e)}a(void 0)})}}const Lr=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],r=new Set;return function e(t,o){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1,a=r.has(t);if(re(!a,"Warning: There may be circular references"),a)return!1;if(t===o)return!0;if(n&&i>1)return!1;r.add(t);var l=i+1;if(Array.isArray(t)){if(!Array.isArray(o)||t.length!==o.length)return!1;for(var s=0;s<t.length;s++)if(!e(t[s],o[s],l))return!1;return!0}if(t&&o&&"object"===F(t)&&"object"===F(o)){var c=Object.keys(t);return c.length===Object.keys(o).length&&c.every(function(n){return e(t[n],o[n],l)})}return!1}(e,t)};var Dr="RC_FORM_INTERNAL_HOOKS",Vr=function(){re(!1,"Can not find FormContext. Please make sure you wrap Field under Form.")};const Wr=e.createContext({getFieldValue:Vr,getFieldsValue:Vr,getFieldError:Vr,getFieldWarning:Vr,getFieldsError:Vr,isFieldsTouched:Vr,isFieldTouched:Vr,isFieldValidating:Vr,isFieldsValidating:Vr,resetFields:Vr,setFields:Vr,setFieldValue:Vr,setFieldsValue:Vr,validateFields:Vr,submit:Vr,getInternalHooks:function(){return Vr(),{dispatch:Vr,initEntityValue:Vr,registerField:Vr,useSubscribe:Vr,setInitialValues:Vr,destroyForm:Vr,setCallbacks:Vr,registerWatch:Vr,getFields:Vr,setValidateMessages:Vr,setPreserve:Vr,getInitialValue:Vr}}}),qr=e.createContext(null);function Gr(e){return null==e?[]:Array.isArray(e)?e:[e]}function Xr(){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",tel:"%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 e=JSON.parse(JSON.stringify(this));return e.clone=this.clone,e}}}var Kr=Xr();function Ur(e){var t="function"==typeof Map?new Map:void 0;return Ur=function(e){if(null===e||!function(e){try{return-1!==Function.toString.call(e).indexOf("[native code]")}catch(t){return"function"==typeof e}}(e))return e;if("function"!=typeof e)throw new TypeError("Super expression must either be null or a function");if(void 0!==t){if(t.has(e))return t.get(e);t.set(e,n)}function n(){return function(e,t,n){if(wt())return Reflect.construct.apply(null,arguments);var r=[null];r.push.apply(r,t);var o=new(e.bind.apply(e,r));return n&&yt(o,n.prototype),o}(e,arguments,Ct(this).constructor)}return n.prototype=Object.create(e.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}}),yt(n,e)},Ur(e)}var Yr=/%[sdj%]/g;function Qr(e){if(!e||!e.length)return null;var t={};return e.forEach(function(e){var n=e.field;t[n]=t[n]||[],t[n].push(e)}),t}function Zr(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];var o=0,i=n.length;if("function"==typeof e)return e.apply(null,n);if("string"==typeof e){var a=e.replace(Yr,function(e){if("%%"===e)return"%";if(o>=i)return e;switch(e){case"%s":return String(n[o++]);case"%d":return Number(n[o++]);case"%j":try{return JSON.stringify(n[o++])}catch(e){return"[Circular]"}default:return e}});return a}return e}function Jr(e,t){return null==e||!("array"!==t||!Array.isArray(e)||e.length)||!(!function(e){return"string"===e||"url"===e||"hex"===e||"email"===e||"date"===e||"pattern"===e||"tel"===e}(t)||"string"!=typeof e||e)}function eo(e,t,n){var r=0,o=e.length;!function i(a){if(a&&a.length)n(a);else{var l=r;r+=1,l<o?t(e[l],i):n([])}}([])}"undefined"!=typeof process&&process.env;var to=function(e){xt(n,e);var t=Et(n);function n(e,r){var o;return ht(this,n),H(St(o=t.call(this,"Async Validation Error")),"errors",void 0),H(St(o),"fields",void 0),o.errors=e,o.fields=r,o}return bt(n)}(Ur(Error));function no(e,t){return function(n){var r,o;return r=e.fullFields?function(e,t){for(var n=e,r=0;r<t.length;r++){if(null==n)return n;n=n[t[r]]}return n}(t,e.fullFields):t[n.field||e.fullField],(o=n)&&void 0!==o.message?(n.field=n.field||e.fullField,n.fieldValue=r,n):{message:"function"==typeof n?n():n,fieldValue:r,field:n.field||e.fullField}}}function ro(e,t){if(t)for(var n in t)if(t.hasOwnProperty(n)){var r=t[n];"object"===F(r)&&"object"===F(e[n])?e[n]=L(L({},e[n]),r):e[n]=r}return e}var oo="enum";const io=function(e,t,n,r,o,i){!e.required||n.hasOwnProperty(e.field)&&!Jr(t,i||e.type)||r.push(Zr(o.messages.required,e.fullField))};var ao,lo=/^(([^<>()\[\]\\.,;:\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,}))$/,so=/^(\+[0-9]{1,3}[-\s\u2011]?)?(\([0-9]{1,4}\)[-\s\u2011]?)?([0-9]+[-\s\u2011]?)*[0-9]+$/,co=/^#?([a-f0-9]{6}|[a-f0-9]{3})$/i,uo={integer:function(e){return uo.number(e)&&parseInt(e,10)===e},float:function(e){return uo.number(e)&&!uo.integer(e)},array:function(e){return Array.isArray(e)},regexp:function(e){if(e instanceof RegExp)return!0;try{return!!new RegExp(e)}catch(e){return!1}},date:function(e){return"function"==typeof e.getTime&&"function"==typeof e.getMonth&&"function"==typeof e.getYear&&!isNaN(e.getTime())},number:function(e){return!isNaN(e)&&"number"==typeof e},object:function(e){return"object"===F(e)&&!uo.array(e)},method:function(e){return"function"==typeof e},email:function(e){return"string"==typeof e&&e.length<=320&&!!e.match(lo)},tel:function(e){return"string"==typeof e&&e.length<=32&&!!e.match(so)},url:function(e){return"string"==typeof e&&e.length<=2048&&!!e.match(function(){if(ao)return ao;var e="[a-fA-F\\d:]",t=function(t){return t&&t.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}",o=["(?:".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}|:))")],i="(?:".concat(o.join("|"),")").concat("(?:%[0-9a-zA-Z]{1,})?"),a=new RegExp("(?:^".concat(n,"$)|(?:^").concat(i,"$)")),l=new RegExp("^".concat(n,"$")),s=new RegExp("^".concat(i,"$")),c=function(e){return e&&e.exact?a:new RegExp("(?:".concat(t(e)).concat(n).concat(t(e),")|(?:").concat(t(e)).concat(i).concat(t(e),")"),"g")};c.v4=function(e){return e&&e.exact?l:new RegExp("".concat(t(e)).concat(n).concat(t(e)),"g")},c.v6=function(e){return e&&e.exact?s:new RegExp("".concat(t(e)).concat(i).concat(t(e)),"g")};var u=c.v4().source,d=c.v6().source,f="(?:".concat("(?:(?:[a-z]+:)?//)","|www\\.)").concat("(?:\\S+(?::\\S*)?@)?","(?:localhost|").concat(u,"|").concat(d,"|").concat("(?:(?:[a-z\\u00a1-\\uffff0-9][-_]*)*[a-z\\u00a1-\\uffff0-9]+)").concat("(?:\\.(?:[a-z\\u00a1-\\uffff0-9]-*)*[a-z\\u00a1-\\uffff0-9]+)*").concat("(?:\\.(?:[a-z\\u00a1-\\uffff]{2,}))",")").concat("(?::\\d{2,5})?").concat('(?:[/?#][^\\s"]*)?');return ao=new RegExp("(?:^".concat(f,"$)"),"i")}())},hex:function(e){return"string"==typeof e&&!!e.match(co)}};const fo=io,po=function(e,t,n,r,o){(/^\s+$/.test(t)||""===t)&&r.push(Zr(o.messages.whitespace,e.fullField))},mo=function(e,t,n,r,o){if(e.required&&void 0===t)io(e,t,n,r,o);else{var i=e.type;["integer","float","array","regexp","object","method","email","tel","number","date","url","hex"].indexOf(i)>-1?uo[i](t)||r.push(Zr(o.messages.types[i],e.fullField,e.type)):i&&F(t)!==e.type&&r.push(Zr(o.messages.types[i],e.fullField,e.type))}},go=function(e,t,n,r,o){var i="number"==typeof e.len,a="number"==typeof e.min,l="number"==typeof e.max,s=t,c=null,u="number"==typeof t,d="string"==typeof t,f=Array.isArray(t);if(u?c="number":d?c="string":f&&(c="array"),!c)return!1;f&&(s=t.length),d&&(s=t.replace(/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,"_").length),i?s!==e.len&&r.push(Zr(o.messages[c].len,e.fullField,e.len)):a&&!l&&s<e.min?r.push(Zr(o.messages[c].min,e.fullField,e.min)):l&&!a&&s>e.max?r.push(Zr(o.messages[c].max,e.fullField,e.max)):a&&l&&(s<e.min||s>e.max)&&r.push(Zr(o.messages[c].range,e.fullField,e.min,e.max))},ho=function(e,t,n,r,o){e[oo]=Array.isArray(e[oo])?e[oo]:[],-1===e[oo].indexOf(t)&&r.push(Zr(o.messages[oo],e.fullField,e[oo].join(", ")))},vo=function(e,t,n,r,o){e.pattern&&(e.pattern instanceof RegExp?(e.pattern.lastIndex=0,e.pattern.test(t)||r.push(Zr(o.messages.pattern.mismatch,e.fullField,t,e.pattern))):"string"==typeof e.pattern&&(new RegExp(e.pattern).test(t)||r.push(Zr(o.messages.pattern.mismatch,e.fullField,t,e.pattern))))},bo=function(e,t,n,r,o){var i=e.type,a=[];if(e.required||!e.required&&r.hasOwnProperty(e.field)){if(Jr(t,i)&&!e.required)return n();fo(e,t,r,a,o,i),Jr(t,i)||mo(e,t,r,a,o)}n(a)},yo={string:function(e,t,n,r,o){var i=[];if(e.required||!e.required&&r.hasOwnProperty(e.field)){if(Jr(t,"string")&&!e.required)return n();fo(e,t,r,i,o,"string"),Jr(t,"string")||(mo(e,t,r,i,o),go(e,t,r,i,o),vo(e,t,r,i,o),!0===e.whitespace&&po(e,t,r,i,o))}n(i)},method:function(e,t,n,r,o){var i=[];if(e.required||!e.required&&r.hasOwnProperty(e.field)){if(Jr(t)&&!e.required)return n();fo(e,t,r,i,o),void 0!==t&&mo(e,t,r,i,o)}n(i)},number:function(e,t,n,r,o){var i=[];if(e.required||!e.required&&r.hasOwnProperty(e.field)){if(""===t&&(t=void 0),Jr(t)&&!e.required)return n();fo(e,t,r,i,o),void 0!==t&&(mo(e,t,r,i,o),go(e,t,r,i,o))}n(i)},boolean:function(e,t,n,r,o){var i=[];if(e.required||!e.required&&r.hasOwnProperty(e.field)){if(Jr(t)&&!e.required)return n();fo(e,t,r,i,o),void 0!==t&&mo(e,t,r,i,o)}n(i)},regexp:function(e,t,n,r,o){var i=[];if(e.required||!e.required&&r.hasOwnProperty(e.field)){if(Jr(t)&&!e.required)return n();fo(e,t,r,i,o),Jr(t)||mo(e,t,r,i,o)}n(i)},integer:function(e,t,n,r,o){var i=[];if(e.required||!e.required&&r.hasOwnProperty(e.field)){if(Jr(t)&&!e.required)return n();fo(e,t,r,i,o),void 0!==t&&(mo(e,t,r,i,o),go(e,t,r,i,o))}n(i)},float:function(e,t,n,r,o){var i=[];if(e.required||!e.required&&r.hasOwnProperty(e.field)){if(Jr(t)&&!e.required)return n();fo(e,t,r,i,o),void 0!==t&&(mo(e,t,r,i,o),go(e,t,r,i,o))}n(i)},array:function(e,t,n,r,o){var i=[];if(e.required||!e.required&&r.hasOwnProperty(e.field)){if(null==t&&!e.required)return n();fo(e,t,r,i,o,"array"),null!=t&&(mo(e,t,r,i,o),go(e,t,r,i,o))}n(i)},object:function(e,t,n,r,o){var i=[];if(e.required||!e.required&&r.hasOwnProperty(e.field)){if(Jr(t)&&!e.required)return n();fo(e,t,r,i,o),void 0!==t&&mo(e,t,r,i,o)}n(i)},enum:function(e,t,n,r,o){var i=[];if(e.required||!e.required&&r.hasOwnProperty(e.field)){if(Jr(t)&&!e.required)return n();fo(e,t,r,i,o),void 0!==t&&ho(e,t,r,i,o)}n(i)},pattern:function(e,t,n,r,o){var i=[];if(e.required||!e.required&&r.hasOwnProperty(e.field)){if(Jr(t,"string")&&!e.required)return n();fo(e,t,r,i,o),Jr(t,"string")||vo(e,t,r,i,o)}n(i)},date:function(e,t,n,r,o){var i=[];if(e.required||!e.required&&r.hasOwnProperty(e.field)){if(Jr(t,"date")&&!e.required)return n();var a;fo(e,t,r,i,o),Jr(t,"date")||(a=t instanceof Date?t:new Date(t),mo(e,a,r,i,o),a&&go(e,a.getTime(),r,i,o))}n(i)},url:bo,hex:bo,email:bo,tel:bo,required:function(e,t,n,r,o){var i=[],a=Array.isArray(t)?"array":F(t);fo(e,t,r,i,o,a),n(i)},any:function(e,t,n,r,o){var i=[];if(e.required||!e.required&&r.hasOwnProperty(e.field)){if(Jr(t)&&!e.required)return n();fo(e,t,r,i,o)}n(i)}};var xo=function(){function e(t){ht(this,e),H(this,"rules",null),H(this,"_messages",Kr),this.define(t)}return bt(e,[{key:"define",value:function(e){var t=this;if(!e)throw new Error("Cannot configure a schema with no rules");if("object"!==F(e)||Array.isArray(e))throw new Error("Rules must be an object");this.rules={},Object.keys(e).forEach(function(n){var r=e[n];t.rules[n]=Array.isArray(r)?r:[r]})}},{key:"messages",value:function(e){return e&&(this._messages=ro(Xr(),e)),this._messages}},{key:"validate",value:function(t){var n=this,r=t,o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:function(){};if("function"==typeof o&&(i=o,o={}),!this.rules||0===Object.keys(this.rules).length)return i&&i(null,r),Promise.resolve(r);if(o.messages){var a=this.messages();a===Kr&&(a=Xr()),ro(a,o.messages),o.messages=a}else o.messages=this.messages();var l={};(o.keys||Object.keys(this.rules)).forEach(function(e){var o=n.rules[e],i=r[e];o.forEach(function(o){var a=o;"function"==typeof a.transform&&(r===t&&(r=L({},r)),null!=(i=r[e]=a.transform(i))&&(a.type=a.type||(Array.isArray(i)?"array":F(i)))),(a="function"==typeof a?{validator:a}:L({},a)).validator=n.getValidationMethod(a),a.validator&&(a.field=e,a.fullField=a.fullField||e,a.type=n.getType(a),l[e]=l[e]||[],l[e].push({rule:a,value:i,source:r,field:e}))})});var s={};return function(e,t,n,r,o){if(t.first){var i=new Promise(function(t,i){var a=function(e){var t=[];return Object.keys(e).forEach(function(n){t.push.apply(t,ye(e[n]||[]))}),t}(e);eo(a,n,function(e){return r(e),e.length?i(new to(e,Qr(e))):t(o)})});return i.catch(function(e){return e}),i}var a=!0===t.firstFields?Object.keys(e):t.firstFields||[],l=Object.keys(e),s=l.length,c=0,u=[],d=new Promise(function(t,i){var d=function(e){if(u.push.apply(u,e),++c===s)return r(u),u.length?i(new to(u,Qr(u))):t(o)};l.length||(r(u),t(o)),l.forEach(function(t){var r=e[t];-1!==a.indexOf(t)?eo(r,n,d):function(e,t,n){var r=[],o=0,i=e.length;function a(e){r.push.apply(r,ye(e||[])),++o===i&&n(r)}e.forEach(function(e){t(e,a)})}(r,n,d)})});return d.catch(function(e){return e}),d}(l,o,function(t,n){var i,a=t.rule,l=!("object"!==a.type&&"array"!==a.type||"object"!==F(a.fields)&&"object"!==F(a.defaultField));function c(e,t){return L(L({},t),{},{fullField:"".concat(a.fullField,".").concat(e),fullFields:a.fullFields?[].concat(ye(a.fullFields),[e]):[e]})}function u(){var i=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],u=Array.isArray(i)?i:[i];!o.suppressWarning&&u.length&&e.warning("async-validator:",u),u.length&&void 0!==a.message&&null!==a.message&&(u=[].concat(a.message));var d=u.map(no(a,r));if(o.first&&d.length)return s[a.field]=1,n(d);if(l){if(a.required&&!t.value)return void 0!==a.message?d=[].concat(a.message).map(no(a,r)):o.error&&(d=[o.error(a,Zr(o.messages.required,a.field))]),n(d);var f={};a.defaultField&&Object.keys(t.value).map(function(e){f[e]=a.defaultField}),f=L(L({},f),t.rule.fields);var p={};Object.keys(f).forEach(function(e){var t=f[e],n=Array.isArray(t)?t:[t];p[e]=n.map(c.bind(null,e))});var m=new e(p);m.messages(o.messages),t.rule.options&&(t.rule.options.messages=o.messages,t.rule.options.error=o.error),m.validate(t.value,t.rule.options||o,function(e){var t=[];d&&d.length&&t.push.apply(t,ye(d)),e&&e.length&&t.push.apply(t,ye(e)),n(t.length?t:null)})}else n(d)}if(l=l&&(a.required||!a.required&&t.value),a.field=t.field,a.asyncValidator)i=a.asyncValidator(a,t.value,u,t.source,o);else if(a.validator){try{i=a.validator(a,t.value,u,t.source,o)}catch(e){var d,f;null===(d=(f=console).error)||void 0===d||d.call(f,e),o.suppressValidatorError||setTimeout(function(){throw e},0),u(e.message)}!0===i?u():!1===i?u("function"==typeof a.message?a.message(a.fullField||a.field):a.message||"".concat(a.fullField||a.field," fails")):i instanceof Array?u(i):i instanceof Error&&u(i.message)}i&&i.then&&i.then(function(){return u()},function(e){return u(e)})},function(e){!function(e){var t=[],n={};function o(e){var n;Array.isArray(e)?t=(n=t).concat.apply(n,ye(e)):t.push(e)}for(var a=0;a<e.length;a++)o(e[a]);t.length?(n=Qr(t),i(t,n)):i(null,r)}(e)},r)}},{key:"getType",value:function(e){if(void 0===e.type&&e.pattern instanceof RegExp&&(e.type="pattern"),"function"!=typeof e.validator&&e.type&&!yo.hasOwnProperty(e.type))throw new Error(Zr("Unknown rule type %s",e.type));return e.type||"string"}},{key:"getValidationMethod",value:function(e){if("function"==typeof e.validator)return e.validator;var t=Object.keys(e),n=t.indexOf("message");return-1!==n&&t.splice(n,1),1===t.length&&"required"===t[0]?yo.required:yo[this.getType(e)]||void 0}}]),e}();H(xo,"register",function(e,t){if("function"!=typeof t)throw new Error("Cannot register a validator by type, validator is not a function");yo[e]=t}),H(xo,"warning",function(){}),H(xo,"messages",Kr),H(xo,"validators",yo);var Co="'${name}' is not a valid ${type}",wo={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:Co,method:Co,array:Co,object:Co,number:Co,date:Co,boolean:Co,integer:Co,float:Co,regexp:Co,email:Co,url:Co,hex:Co},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}"}},So=xo;function $o(e,t){return e.replace(/\\?\$\{\w+\}/g,function(e){if(e.startsWith("\\"))return e.slice(1);var n=e.slice(2,-1);return t[n]})}var Eo="CODE_LOGIC_ERROR";function Oo(_x,e,t,n,r){return ko.apply(this,arguments)}function ko(){return ko=_r(Br().mark(function t(n,r,o,i,a){var l,s,c,u,d,f,p,m,g;return Br().wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return delete(l=L({},o)).ruleIndex,So.warning=function(){},l.validator&&(s=l.validator,l.validator=function(){try{return s.apply(void 0,arguments)}catch(e){return console.error(e),Promise.reject(Eo)}}),c=null,l&&"array"===l.type&&l.defaultField&&(c=l.defaultField,delete l.defaultField),u=new So(H({},n,[l])),d=Jt(wo,i.validateMessages),u.messages(d),f=[],t.prev=10,t.next=13,Promise.resolve(u.validate(H({},n,r),L({},i)));case 13:t.next=18;break;case 15:t.prev=15,t.t0=t.catch(10),t.t0.errors&&(f=t.t0.errors.map(function(t,n){var r=t.message,o=r===Eo?d.default:r;return e.isValidElement(o)?e.cloneElement(o,{key:"error_".concat(n)}):o}));case 18:if(!(!f.length&&c&&Array.isArray(r)&&r.length>0)){t.next=23;break}return t.next=21,Promise.all(r.map(function(e,t){return Oo("".concat(n,".").concat(t),e,c,i,a)}));case 21:return p=t.sent,t.abrupt("return",p.reduce(function(e,t){return[].concat(ye(e),ye(t))},[]));case 23:return m=L(L({},o),{},{name:n,enum:(o.enum||[]).join(", ")},a),g=f.map(function(e){return"string"==typeof e?$o(e,m):e}),t.abrupt("return",g);case 26:case"end":return t.stop()}},t,null,[[10,15]])})),ko.apply(this,arguments)}function Io(e,t,n,r,o,i){var a,l=e.join("."),s=n.map(function(e,t){var n=e.validator,r=L(L({},e),{},{ruleIndex:t});return n&&(r.validator=function(e,t,r){var o=!1,i=n(e,t,function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];Promise.resolve().then(function(){re(!o,"Your validator function has already return a promise. `callback` will be ignored."),o||r.apply(void 0,t)})});o=i&&"function"==typeof i.then&&"function"==typeof i.catch,re(o,"`callback` is deprecated. Please return a promise instead."),o&&i.then(function(){r()}).catch(function(e){r(e||" ")})}),r}).sort(function(e,t){var n=e.warningOnly,r=e.ruleIndex,o=t.warningOnly,i=t.ruleIndex;return!!n==!!o?r-i:n?1:-1});if(!0===o)a=new Promise(function(){var e=_r(Br().mark(function e(n,o){var a,c,u;return Br().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:a=0;case 1:if(!(a<s.length)){e.next=12;break}return c=s[a],e.next=5,Oo(l,t,c,r,i);case 5:if(!(u=e.sent).length){e.next=9;break}return o([{errors:u,rule:c}]),e.abrupt("return");case 9:a+=1,e.next=1;break;case 12:n([]);case 13:case"end":return e.stop()}},e)}));return function(t,n){return e.apply(this,arguments)}}());else{var c=s.map(function(e){return Oo(l,t,e,r,i).then(function(t){return{errors:t,rule:e}})});a=(o?function(e){return Po.apply(this,arguments)}(c):function(e){return jo.apply(this,arguments)}(c)).then(function(e){return Promise.reject(e)})}return a.catch(function(e){return e}),a}function jo(){return(jo=_r(Br().mark(function e(t){return Br().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",Promise.all(t).then(function(e){var t;return(t=[]).concat.apply(t,ye(e))}));case 1:case"end":return e.stop()}},e)}))).apply(this,arguments)}function Po(){return(Po=_r(Br().mark(function e(t){var n;return Br().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return n=0,e.abrupt("return",new Promise(function(e){t.forEach(function(r){r.then(function(r){r.errors.length&&e([r]),(n+=1)===t.length&&e([])})})}));case 2:case"end":return e.stop()}},e)}))).apply(this,arguments)}function Mo(e){return Gr(e)}function No(e,t){var n={};return t.forEach(function(t){var r=Xt(e,t);n=Yt(n,t,r)}),n}function Ro(e,t){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];return e&&e.some(function(e){return Ao(t,e,n)})}function Ao(e,t){return!(!e||!t)&&!(!(arguments.length>2&&void 0!==arguments[2]&&arguments[2])&&e.length!==t.length)&&t.every(function(t,n){return e[n]===t})}function zo(e){var t=arguments.length<=1?void 0:arguments[1];return t&&t.target&&"object"===F(t.target)&&e in t.target?t.target[e]:t}function To(e,t,n){var r=e.length;if(t<0||t>=r||n<0||n>=r)return e;var o=e[t],i=t-n;return i>0?[].concat(ye(e.slice(0,n)),[o],ye(e.slice(n,t)),ye(e.slice(t+1,r))):i<0?[].concat(ye(e.slice(0,t)),ye(e.slice(t+1,n+1)),[o],ye(e.slice(n+1,r))):e}var Fo=["name"],Bo=[];function Ho(e,t,n,r,o,i){return"function"==typeof e?e(t,n,"source"in i?{source:i.source}:{}):r!==o}var _o=function(t){xt(r,t);var n=Et(r);function r(t){var o;return ht(this,r),H(St(o=n.call(this,t)),"state",{resetCount:0}),H(St(o),"cancelRegisterFunc",null),H(St(o),"mounted",!1),H(St(o),"touched",!1),H(St(o),"dirty",!1),H(St(o),"validatePromise",void 0),H(St(o),"prevValidating",void 0),H(St(o),"errors",Bo),H(St(o),"warnings",Bo),H(St(o),"cancelRegister",function(){var e=o.props,t=e.preserve,n=e.isListField,r=e.name;o.cancelRegisterFunc&&o.cancelRegisterFunc(n,t,Mo(r)),o.cancelRegisterFunc=null}),H(St(o),"getNamePath",function(){var e=o.props,t=e.name,n=e.fieldContext.prefixName;return void 0!==t?[].concat(ye(void 0===n?[]:n),ye(t)):[]}),H(St(o),"getRules",function(){var e=o.props,t=e.rules,n=void 0===t?[]:t,r=e.fieldContext;return n.map(function(e){return"function"==typeof e?e(r):e})}),H(St(o),"refresh",function(){o.mounted&&o.setState(function(e){return{resetCount:e.resetCount+1}})}),H(St(o),"metaCache",null),H(St(o),"triggerMetaEvent",function(e){var t=o.props.onMetaChange;if(t){var n=L(L({},o.getMeta()),{},{destroy:e});Lr(o.metaCache,n)||t(n),o.metaCache=n}else o.metaCache=null}),H(St(o),"onStoreChange",function(e,t,n){var r=o.props,i=r.shouldUpdate,a=r.dependencies,l=void 0===a?[]:a,s=r.onReset,c=n.store,u=o.getNamePath(),d=o.getValue(e),f=o.getValue(c),p=t&&Ro(t,u);switch("valueUpdate"!==n.type||"external"!==n.source||Lr(d,f)||(o.touched=!0,o.dirty=!0,o.validatePromise=null,o.errors=Bo,o.warnings=Bo,o.triggerMetaEvent()),n.type){case"reset":if(!t||p)return o.touched=!1,o.dirty=!1,o.validatePromise=void 0,o.errors=Bo,o.warnings=Bo,o.triggerMetaEvent(),null==s||s(),void o.refresh();break;case"remove":if(i&&Ho(i,e,c,d,f,n))return void o.reRender();break;case"setField":var m=n.data;if(p)return"touched"in m&&(o.touched=m.touched),"validating"in m&&!("originRCField"in m)&&(o.validatePromise=m.validating?Promise.resolve([]):null),"errors"in m&&(o.errors=m.errors||Bo),"warnings"in m&&(o.warnings=m.warnings||Bo),o.dirty=!0,o.triggerMetaEvent(),void o.reRender();if("value"in m&&Ro(t,u,!0))return void o.reRender();if(i&&!u.length&&Ho(i,e,c,d,f,n))return void o.reRender();break;case"dependenciesUpdate":if(l.map(Mo).some(function(e){return Ro(n.relatedFields,e)}))return void o.reRender();break;default:if(p||(!l.length||u.length||i)&&Ho(i,e,c,d,f,n))return void o.reRender()}!0===i&&o.reRender()}),H(St(o),"validateRules",function(e){var t=o.getNamePath(),n=o.getValue(),r=e||{},i=r.triggerName,a=r.validateOnly,l=void 0!==a&&a,s=Promise.resolve().then(_r(Br().mark(function r(){var a,l,c,u,d,f,p;return Br().wrap(function(r){for(;;)switch(r.prev=r.next){case 0:if(o.mounted){r.next=2;break}return r.abrupt("return",[]);case 2:if(a=o.props,l=a.validateFirst,c=void 0!==l&&l,u=a.messageVariables,d=a.validateDebounce,f=o.getRules(),i&&(f=f.filter(function(e){return e}).filter(function(e){var t=e.validateTrigger;return!t||Gr(t).includes(i)})),!d||!i){r.next=10;break}return r.next=8,new Promise(function(e){setTimeout(e,d)});case 8:if(o.validatePromise===s){r.next=10;break}return r.abrupt("return",[]);case 10:return(p=Io(t,n,f,e,c,u)).catch(function(e){return e}).then(function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:Bo;if(o.validatePromise===s){var t;o.validatePromise=null;var n=[],r=[];null===(t=e.forEach)||void 0===t||t.call(e,function(e){var t=e.rule.warningOnly,o=e.errors,i=void 0===o?Bo:o;t?r.push.apply(r,ye(i)):n.push.apply(n,ye(i))}),o.errors=n,o.warnings=r,o.triggerMetaEvent(),o.reRender()}}),r.abrupt("return",p);case 13:case"end":return r.stop()}},r)})));return l||(o.validatePromise=s,o.dirty=!0,o.errors=Bo,o.warnings=Bo,o.triggerMetaEvent(),o.reRender()),s}),H(St(o),"isFieldValidating",function(){return!!o.validatePromise}),H(St(o),"isFieldTouched",function(){return o.touched}),H(St(o),"isFieldDirty",function(){return!(!o.dirty&&void 0===o.props.initialValue)||void 0!==(0,o.props.fieldContext.getInternalHooks(Dr).getInitialValue)(o.getNamePath())}),H(St(o),"getErrors",function(){return o.errors}),H(St(o),"getWarnings",function(){return o.warnings}),H(St(o),"isListField",function(){return o.props.isListField}),H(St(o),"isList",function(){return o.props.isList}),H(St(o),"isPreserve",function(){return o.props.preserve}),H(St(o),"getMeta",function(){return o.prevValidating=o.isFieldValidating(),{touched:o.isFieldTouched(),validating:o.prevValidating,errors:o.errors,warnings:o.warnings,name:o.getNamePath(),validated:null===o.validatePromise}}),H(St(o),"getOnlyChild",function(t){if("function"==typeof t){var n=o.getMeta();return L(L({},o.getOnlyChild(t(o.getControlled(),n,o.props.fieldContext))),{},{isFunction:!0})}var r=De(t);return 1===r.length&&e.isValidElement(r[0])?{child:r[0],isFunction:!1}:{child:r,isFunction:!1}}),H(St(o),"getValue",function(e){var t=o.props.fieldContext.getFieldsValue,n=o.getNamePath();return Xt(e||t(!0),n)}),H(St(o),"getControlled",function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=o.props,n=t.name,r=t.trigger,i=t.validateTrigger,a=t.getValueFromEvent,l=t.normalize,s=t.valuePropName,c=t.getValueProps,u=t.fieldContext,d=void 0!==i?i:u.validateTrigger,f=o.getNamePath(),p=u.getInternalHooks,m=u.getFieldsValue,g=p(Dr).dispatch,h=o.getValue(),v=c||function(e){return H({},s,e)},b=e[r],y=void 0!==n?v(h):{},x=L(L({},e),y);return x[r]=function(){var e;o.touched=!0,o.dirty=!0,o.triggerMetaEvent();for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];e=a?a.apply(void 0,n):zo.apply(void 0,[s].concat(n)),l&&(e=l(e,h,m(!0))),e!==h&&g({type:"updateValue",namePath:f,value:e}),b&&b.apply(void 0,n)},Gr(d||[]).forEach(function(e){var t=x[e];x[e]=function(){t&&t.apply(void 0,arguments);var n=o.props.rules;n&&n.length&&g({type:"validateField",namePath:f,triggerName:e})}}),x}),t.fieldContext&&(0,(0,t.fieldContext.getInternalHooks)(Dr).initEntityValue)(St(o)),o}return bt(r,[{key:"componentDidMount",value:function(){var e=this.props,t=e.shouldUpdate,n=e.fieldContext;if(this.mounted=!0,n){var r=(0,n.getInternalHooks)(Dr).registerField;this.cancelRegisterFunc=r(this)}!0===t&&this.reRender()}},{key:"componentWillUnmount",value:function(){this.cancelRegister(),this.triggerMetaEvent(!0),this.mounted=!1}},{key:"reRender",value:function(){this.mounted&&this.forceUpdate()}},{key:"render",value:function(){var t,n=this.state.resetCount,r=this.props.children,o=this.getOnlyChild(r),i=o.child;return o.isFunction?t=i:e.isValidElement(i)?t=e.cloneElement(i,this.getControlled(i.props)):(re(!i,"`children` of Field is not validate ReactElement."),t=i),e.createElement(e.Fragment,{key:n},t)}}]),r}(e.Component);H(_o,"contextType",Wr),H(_o,"defaultProps",{trigger:"onChange",valuePropName:"value"});const Lo=function(t){var n,r=t.name,o=D(t,Fo),i=e.useContext(Wr),a=e.useContext(qr),l=void 0!==r?Mo(r):void 0,s=null!==(n=o.isListField)&&void 0!==n?n:!!a,c="keep";return s||(c="_".concat((l||[]).join("_"))),e.createElement(_o,T({key:c,name:l,isListField:s},o,{fieldContext:i}))},Do=function(t){var n=t.name,r=t.initialValue,o=t.children,i=t.rules,a=t.validateTrigger,l=t.isListField,s=e.useContext(Wr),c=e.useContext(qr),u=e.useRef({keys:[],id:0}).current,d=e.useMemo(function(){var e=Mo(s.prefixName)||[];return[].concat(ye(e),ye(Mo(n)))},[s.prefixName,n]),f=e.useMemo(function(){return L(L({},s),{},{prefixName:d})},[s,d]),p=e.useMemo(function(){return{getKey:function(e){var t=d.length,n=e[t];return[u.keys[n],e.slice(t+1)]}}},[d]);return"function"!=typeof o?(re(!1,"Form.List only accepts function as children."),null):e.createElement(qr.Provider,{value:p},e.createElement(Wr.Provider,{value:f},e.createElement(Lo,{name:[],shouldUpdate:function(e,t,n){return"internal"!==n.source&&e!==t},rules:i,validateTrigger:a,initialValue:r,isList:!0,isListField:null!=l?l:!!c},function(e,t){var n=e.value,r=void 0===n?[]:n,i=e.onChange,a=s.getFieldValue,l=function(){return a(d||[])||[]},c={add:function(e,t){var n=l();t>=0&&t<=n.length?(u.keys=[].concat(ye(u.keys.slice(0,t)),[u.id],ye(u.keys.slice(t))),i([].concat(ye(n.slice(0,t)),[e],ye(n.slice(t))))):(u.keys=[].concat(ye(u.keys),[u.id]),i([].concat(ye(n),[e]))),u.id+=1},remove:function(e){var t=l(),n=new Set(Array.isArray(e)?e:[e]);n.size<=0||(u.keys=u.keys.filter(function(e,t){return!n.has(t)}),i(t.filter(function(e,t){return!n.has(t)})))},move:function(e,t){if(e!==t){var n=l();e<0||e>=n.length||t<0||t>=n.length||(u.keys=To(u.keys,e,t),i(To(n,e,t)))}}},f=r||[];return Array.isArray(f)||(f=[]),o(f.map(function(__,e){var t=u.keys[e];return void 0===t&&(u.keys[e]=u.id,t=u.keys[e],u.id+=1),{name:e,key:t,isListField:!0}}),c,t)})))};var Vo="__@field_split__";function Wo(e){return e.map(function(e){return"".concat(F(e),":").concat(e)}).join(Vo)}var qo=function(){function e(){ht(this,e),H(this,"kvs",new Map)}return bt(e,[{key:"set",value:function(e,t){this.kvs.set(Wo(e),t)}},{key:"get",value:function(e){return this.kvs.get(Wo(e))}},{key:"update",value:function(e,t){var n=t(this.get(e));n?this.set(e,n):this.delete(e)}},{key:"delete",value:function(e){this.kvs.delete(Wo(e))}},{key:"map",value:function(e){return ye(this.kvs.entries()).map(function(t){var n=X(t,2),r=n[0],o=n[1],i=r.split(Vo);return e({key:i.map(function(e){var t=X(e.match(/^([^:]*):(.*)$/),3),n=t[1],r=t[2];return"number"===n?Number(r):r}),value:o})})}},{key:"toJSON",value:function(){var e={};return this.map(function(t){var n=t.key,r=t.value;return e[n.join(".")]=r,null}),e}}]),e}();const Go=qo;var Xo=["name"],Ko=bt(function e(t){var n=this;ht(this,e),H(this,"formHooked",!1),H(this,"forceRootUpdate",void 0),H(this,"subscribable",!0),H(this,"store",{}),H(this,"fieldEntities",[]),H(this,"initialValues",{}),H(this,"callbacks",{}),H(this,"validateMessages",null),H(this,"preserve",null),H(this,"lastValidatePromise",null),H(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}}),H(this,"getInternalHooks",function(e){return e===Dr?(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}):(re(!1,"`getInternalHooks` is internal usage. Should not call directly."),null)}),H(this,"useSubscribe",function(e){n.subscribable=e}),H(this,"prevWithoutPreserves",null),H(this,"setInitialValues",function(e,t){if(n.initialValues=e||{},t){var r,o=Jt(e,n.store);null===(r=n.prevWithoutPreserves)||void 0===r||r.map(function(t){var n=t.key;o=Yt(o,n,Xt(e,n))}),n.prevWithoutPreserves=null,n.updateStore(o)}}),H(this,"destroyForm",function(e){if(e)n.updateStore({});else{var t=new Go;n.getFieldEntities(!0).forEach(function(e){n.isMergedPreserve(e.isPreserve())||t.set(e.getNamePath(),!0)}),n.prevWithoutPreserves=t}}),H(this,"getInitialValue",function(e){var t=Xt(n.initialValues,e);return e.length?Jt(t):t}),H(this,"setCallbacks",function(e){n.callbacks=e}),H(this,"setValidateMessages",function(e){n.validateMessages=e}),H(this,"setPreserve",function(e){n.preserve=e}),H(this,"watchList",[]),H(this,"registerWatch",function(e){return n.watchList.push(e),function(){n.watchList=n.watchList.filter(function(t){return t!==e})}}),H(this,"notifyWatch",function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];if(n.watchList.length){var t=n.getFieldsValue(),r=n.getFieldsValue(!0);n.watchList.forEach(function(n){n(t,r,e)})}}),H(this,"timeoutId",null),H(this,"warningUnhooked",function(){}),H(this,"updateStore",function(e){n.store=e}),H(this,"getFieldEntities",function(){return arguments.length>0&&void 0!==arguments[0]&&arguments[0]?n.fieldEntities.filter(function(e){return e.getNamePath().length}):n.fieldEntities}),H(this,"getFieldsMap",function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=new Go;return n.getFieldEntities(e).forEach(function(e){var n=e.getNamePath();t.set(n,e)}),t}),H(this,"getFieldEntitiesForNamePathList",function(e){if(!e)return n.getFieldEntities(!0);var t=n.getFieldsMap(!0);return e.map(function(e){var n=Mo(e);return t.get(n)||{INVALIDATE_NAME_PATH:Mo(e)}})}),H(this,"getFieldsValue",function(e,t){var r,o,i;if(n.warningUnhooked(),!0===e||Array.isArray(e)?(r=e,o=t):e&&"object"===F(e)&&(i=e.strict,o=e.filter),!0===r&&!o)return n.store;var a=n.getFieldEntitiesForNamePathList(Array.isArray(r)?r:null),l=[];return a.forEach(function(e){var t,n,a,s,c="INVALIDATE_NAME_PATH"in e?e.INVALIDATE_NAME_PATH:e.getNamePath();if(i){if(null!==(a=(s=e).isList)&&void 0!==a&&a.call(s))return}else if(!r&&null!==(t=(n=e).isListField)&&void 0!==t&&t.call(n))return;if(o){var u="getMeta"in e?e.getMeta():null;o(u)&&l.push(c)}else l.push(c)}),No(n.store,l.map(Mo))}),H(this,"getFieldValue",function(e){n.warningUnhooked();var t=Mo(e);return Xt(n.store,t)}),H(this,"getFieldsError",function(e){return n.warningUnhooked(),n.getFieldEntitiesForNamePathList(e).map(function(t,n){return t&&!("INVALIDATE_NAME_PATH"in t)?{name:t.getNamePath(),errors:t.getErrors(),warnings:t.getWarnings()}:{name:Mo(e[n]),errors:[],warnings:[]}})}),H(this,"getFieldError",function(e){n.warningUnhooked();var t=Mo(e);return n.getFieldsError([t])[0].errors}),H(this,"getFieldWarning",function(e){n.warningUnhooked();var t=Mo(e);return n.getFieldsError([t])[0].warnings}),H(this,"isFieldsTouched",function(){n.warningUnhooked();for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];var o,i=t[0],a=t[1],l=!1;0===t.length?o=null:1===t.length?Array.isArray(i)?(o=i.map(Mo),l=!1):(o=null,l=i):(o=i.map(Mo),l=a);var s=n.getFieldEntities(!0),c=function(e){return e.isFieldTouched()};if(!o)return l?s.every(function(e){return c(e)||e.isList()}):s.some(c);var u=new Go;o.forEach(function(e){u.set(e,[])}),s.forEach(function(e){var t=e.getNamePath();o.forEach(function(n){n.every(function(e,n){return t[n]===e})&&u.update(n,function(t){return[].concat(ye(t),[e])})})});var d=function(e){return e.some(c)},f=u.map(function(e){return e.value});return l?f.every(d):f.some(d)}),H(this,"isFieldTouched",function(e){return n.warningUnhooked(),n.isFieldsTouched([e])}),H(this,"isFieldsValidating",function(e){n.warningUnhooked();var t=n.getFieldEntities();if(!e)return t.some(function(e){return e.isFieldValidating()});var r=e.map(Mo);return t.some(function(e){var t=e.getNamePath();return Ro(r,t)&&e.isFieldValidating()})}),H(this,"isFieldValidating",function(e){return n.warningUnhooked(),n.isFieldsValidating([e])}),H(this,"resetWithFieldInitialValue",function(){var e,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},r=new Go,o=n.getFieldEntities(!0);o.forEach(function(e){var t=e.props.initialValue,n=e.getNamePath();if(void 0!==t){var o=r.get(n)||new Set;o.add({entity:e,value:t}),r.set(n,o)}}),t.entities?e=t.entities:t.namePathList?(e=[],t.namePathList.forEach(function(t){var n,o=r.get(t);o&&(n=e).push.apply(n,ye(ye(o).map(function(e){return e.entity})))})):e=o,e.forEach(function(e){if(void 0!==e.props.initialValue){var o=e.getNamePath();if(void 0!==n.getInitialValue(o))re(!1,"Form already set 'initialValues' with path '".concat(o.join("."),"'. Field can not overwrite it."));else{var i=r.get(o);if(i&&i.size>1)re(!1,"Multiple Field with path '".concat(o.join("."),"' set 'initialValue'. Can not decide which one to pick."));else if(i){var a=n.getFieldValue(o);e.isListField()||t.skipExist&&void 0!==a||n.updateStore(Yt(n.store,o,ye(i)[0].value))}}}})}),H(this,"resetFields",function(e){n.warningUnhooked();var t=n.store;if(!e)return n.updateStore(Jt(n.initialValues)),n.resetWithFieldInitialValue(),n.notifyObservers(t,null,{type:"reset"}),void n.notifyWatch();var r=e.map(Mo);r.forEach(function(e){var t=n.getInitialValue(e);n.updateStore(Yt(n.store,e,t))}),n.resetWithFieldInitialValue({namePathList:r}),n.notifyObservers(t,r,{type:"reset"}),n.notifyWatch(r)}),H(this,"setFields",function(e){n.warningUnhooked();var t=n.store,r=[];e.forEach(function(e){var o=e.name,i=D(e,Xo),a=Mo(o);r.push(a),"value"in i&&n.updateStore(Yt(n.store,a,i.value)),n.notifyObservers(t,[a],{type:"setField",data:e})}),n.notifyWatch(r)}),H(this,"getFields",function(){return n.getFieldEntities(!0).map(function(e){var t=e.getNamePath(),r=L(L({},e.getMeta()),{},{name:t,value:n.getFieldValue(t)});return Object.defineProperty(r,"originRCField",{value:!0}),r})}),H(this,"initEntityValue",function(e){var t=e.props.initialValue;if(void 0!==t){var r=e.getNamePath();void 0===Xt(n.store,r)&&n.updateStore(Yt(n.store,r,t))}}),H(this,"isMergedPreserve",function(e){var t=void 0!==e?e:n.preserve;return null==t||t}),H(this,"registerField",function(e){n.fieldEntities.push(e);var t=e.getNamePath();if(n.notifyWatch([t]),void 0!==e.props.initialValue){var r=n.store;n.resetWithFieldInitialValue({entities:[e],skipExist:!0}),n.notifyObservers(r,[e.getNamePath()],{type:"valueUpdate",source:"internal"})}return function(r,o){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[];if(n.fieldEntities=n.fieldEntities.filter(function(t){return t!==e}),!n.isMergedPreserve(o)&&(!r||i.length>1)){var a=r?void 0:n.getInitialValue(t);if(t.length&&n.getFieldValue(t)!==a&&n.fieldEntities.every(function(e){return!Ao(e.getNamePath(),t)})){var l=n.store;n.updateStore(Yt(l,t,a,!0)),n.notifyObservers(l,[t],{type:"remove"}),n.triggerDependenciesUpdate(l,t)}}n.notifyWatch([t])}}),H(this,"dispatch",function(e){switch(e.type){case"updateValue":var t=e.namePath,r=e.value;n.updateValue(t,r);break;case"validateField":var o=e.namePath,i=e.triggerName;n.validateFields([o],{triggerName:i})}}),H(this,"notifyObservers",function(e,t,r){if(n.subscribable){var o=L(L({},r),{},{store:n.getFieldsValue(!0)});n.getFieldEntities().forEach(function(n){(0,n.onStoreChange)(e,t,o)})}else n.forceRootUpdate()}),H(this,"triggerDependenciesUpdate",function(e,t){var r=n.getDependencyChildrenFields(t);return r.length&&n.validateFields(r),n.notifyObservers(e,r,{type:"dependenciesUpdate",relatedFields:[t].concat(ye(r))}),r}),H(this,"updateValue",function(e,t){var r=Mo(e),o=n.store;n.updateStore(Yt(n.store,r,t)),n.notifyObservers(o,[r],{type:"valueUpdate",source:"internal"}),n.notifyWatch([r]);var i=n.triggerDependenciesUpdate(o,r),a=n.callbacks.onValuesChange;a&&a(No(n.store,[r]),n.getFieldsValue()),n.triggerOnFieldsChange([r].concat(ye(i)))}),H(this,"setFieldsValue",function(e){n.warningUnhooked();var t=n.store;if(e){var r=Jt(n.store,e);n.updateStore(r)}n.notifyObservers(t,null,{type:"valueUpdate",source:"external"}),n.notifyWatch()}),H(this,"setFieldValue",function(e,t){n.setFields([{name:e,value:t,errors:[],warnings:[]}])}),H(this,"getDependencyChildrenFields",function(e){var t=new Set,r=[],o=new Go;return n.getFieldEntities().forEach(function(e){(e.props.dependencies||[]).forEach(function(t){var n=Mo(t);o.update(n,function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:new Set;return t.add(e),t})})}),function e(n){(o.get(n)||new Set).forEach(function(n){if(!t.has(n)){t.add(n);var o=n.getNamePath();n.isFieldDirty()&&o.length&&(r.push(o),e(o))}})}(e),r}),H(this,"triggerOnFieldsChange",function(e,t){var r=n.callbacks.onFieldsChange;if(r){var o=n.getFields();if(t){var i=new Go;t.forEach(function(e){var t=e.name,n=e.errors;i.set(t,n)}),o.forEach(function(e){e.errors=i.get(e.name)||e.errors})}var a=o.filter(function(t){var n=t.name;return Ro(e,n)});a.length&&r(a,o)}}),H(this,"validateFields",function(e,t){var r,o;n.warningUnhooked(),Array.isArray(e)||"string"==typeof e||"string"==typeof t?(r=e,o=t):o=e;var i=!!r,a=i?r.map(Mo):[],l=[],s=String(Date.now()),c=new Set,u=o||{},d=u.recursive,f=u.dirty;n.getFieldEntities(!0).forEach(function(e){if(i||a.push(e.getNamePath()),e.props.rules&&e.props.rules.length&&(!f||e.isFieldDirty())){var t=e.getNamePath();if(c.add(t.join(s)),!i||Ro(a,t,d)){var r=e.validateRules(L({validateMessages:L(L({},wo),n.validateMessages)},o));l.push(r.then(function(){return{name:t,errors:[],warnings:[]}}).catch(function(e){var n,r=[],o=[];return null===(n=e.forEach)||void 0===n||n.call(e,function(e){var t=e.rule.warningOnly,n=e.errors;t?o.push.apply(o,ye(n)):r.push.apply(r,ye(n))}),r.length?Promise.reject({name:t,errors:r,warnings:o}):{name:t,errors:r,warnings:o}}))}}});var p=function(e){var t=!1,n=e.length,r=[];return e.length?new Promise(function(o,i){e.forEach(function(e,a){e.catch(function(e){return t=!0,e}).then(function(e){n-=1,r[a]=e,n>0||(t&&i(r),o(r))})})}):Promise.resolve([])}(l);n.lastValidatePromise=p,p.catch(function(e){return e}).then(function(e){var t=e.map(function(e){return e.name});n.notifyObservers(n.store,t,{type:"validateFinish"}),n.triggerOnFieldsChange(t,e)});var m=p.then(function(){return n.lastValidatePromise===p?Promise.resolve(n.getFieldsValue(a)):Promise.reject([])}).catch(function(e){var t=e.filter(function(e){return e&&e.errors.length});return Promise.reject({values:n.getFieldsValue(a),errorFields:t,outOfDate:n.lastValidatePromise!==p})});m.catch(function(e){return e});var g=a.filter(function(e){return c.has(e.join(s))});return n.triggerOnFieldsChange(g),m}),H(this,"submit",function(){n.warningUnhooked(),n.validateFields().then(function(e){var t=n.callbacks.onFinish;if(t)try{t(e)}catch(e){console.error(e)}}).catch(function(e){var t=n.callbacks.onFinishFailed;t&&t(e)})}),this.forceRootUpdate=t});const Uo=function(t){var n=e.useRef(),r=X(e.useState({}),2)[1];if(!n.current)if(t)n.current=t;else{var o=new Ko(function(){r({})});n.current=o.getForm()}return[n.current]};var Yo=e.createContext({triggerFormChange:function(){},triggerFormFinish:function(){},registerForm:function(){},unregisterForm:function(){}}),Qo=function(t){var n=t.validateMessages,r=t.onFormChange,o=t.onFormFinish,i=t.children,a=e.useContext(Yo),l=e.useRef({});return e.createElement(Yo.Provider,{value:L(L({},a),{},{validateMessages:L(L({},a.validateMessages),n),triggerFormChange:function(e,t){r&&r(e,{changedFields:t,forms:l.current}),a.triggerFormChange(e,t)},triggerFormFinish:function(e,t){o&&o(e,{values:t,forms:l.current}),a.triggerFormFinish(e,t)},registerForm:function(e,t){e&&(l.current=L(L({},l.current),{},H({},e,t))),a.registerForm(e,t)},unregisterForm:function(e){var t=L({},l.current);delete t[e],l.current=t,a.unregisterForm(e)}})},i)};const Zo=Yo;var Jo=["name","initialValues","fields","form","preserve","children","component","validateMessages","validateTrigger","onValuesChange","onFieldsChange","onFinish","onFinishFailed","clearOnDestroy"];const ei=function(t,n){var r=t.name,o=t.initialValues,i=t.fields,a=t.form,l=t.preserve,s=t.children,c=t.component,u=void 0===c?"form":c,d=t.validateMessages,f=t.validateTrigger,p=void 0===f?"onChange":f,m=t.onValuesChange,g=t.onFieldsChange,h=t.onFinish,v=t.onFinishFailed,b=t.clearOnDestroy,y=D(t,Jo),x=e.useRef(null),C=e.useContext(Zo),w=X(Uo(a),1)[0],S=w.getInternalHooks(Dr),$=S.useSubscribe,E=S.setInitialValues,O=S.setCallbacks,k=S.setValidateMessages,I=S.setPreserve,j=S.destroyForm;e.useImperativeHandle(n,function(){return L(L({},w),{},{nativeElement:x.current})}),e.useEffect(function(){return C.registerForm(r,w),function(){C.unregisterForm(r)}},[C,w,r]),k(L(L({},C.validateMessages),d)),O({onValuesChange:m,onFieldsChange:function(e){if(C.triggerFormChange(r,e),g){for(var t=arguments.length,n=new Array(t>1?t-1:0),o=1;o<t;o++)n[o-1]=arguments[o];g.apply(void 0,[e].concat(n))}},onFinish:function(e){C.triggerFormFinish(r,e),h&&h(e)},onFinishFailed:v}),I(l);var P,M=e.useRef(null);E(o,!M.current),M.current||(M.current=!0),e.useEffect(function(){return function(){return j(b)}},[]);var N="function"==typeof s;P=N?s(w.getFieldsValue(!0),w):s,$(!N);var R=e.useRef();e.useEffect(function(){(function(e,t){if(e===t)return!0;if(!e&&t||e&&!t)return!1;if(!e||!t||"object"!==F(e)||"object"!==F(t))return!1;var n=Object.keys(e),r=Object.keys(t);return ye(new Set([].concat(n,r))).every(function(n){var r=e[n],o=t[n];return"function"==typeof r&&"function"==typeof o||r===o})})(R.current||[],i||[])||w.setFields(i||[]),R.current=i},[i,w]);var A=e.useMemo(function(){return L(L({},w),{},{validateTrigger:p})},[w,p]),z=e.createElement(qr.Provider,{value:null},e.createElement(Wr.Provider,{value:A},P));return!1===u?z:e.createElement(u,T({},y,{ref:x,onSubmit:function(e){e.preventDefault(),e.stopPropagation(),w.submit()},onReset:function(e){var t;e.preventDefault(),w.resetFields(),null===(t=y.onReset)||void 0===t||t.call(y,e)}}),z)};function ti(e){try{return JSON.stringify(e)}catch(e){return Math.random()}}const ni=function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];var o=n[0],i=n[1],a=void 0===i?{}:i,l=function(e){return e&&!!e._init}(a)?{form:a}:a,s=l.form,c=X((0,e.useState)(),2),u=c[0],d=c[1],f=(0,e.useMemo)(function(){return ti(u)},[u]),p=(0,e.useRef)(f);p.current=f;var m=(0,e.useContext)(Wr),g=s||m,h=g&&g._init,v=Mo(o),b=(0,e.useRef)(v);return b.current=v,(0,e.useEffect)(function(){if(h){var e=g.getFieldsValue,t=(0,g.getInternalHooks)(Dr).registerWatch,n=function(e,t){var n=l.preserve?t:e;return"function"==typeof o?o(n):Xt(n,b.current)},r=t(function(e,t){var r=n(e,t),o=ti(r);p.current!==o&&(p.current=o,d(r))}),i=n(e(),e(!0));return u!==i&&d(i),r}},[h]),u};var ri=e.forwardRef(ei);ri.FormProvider=Qo,ri.Field=Lo,ri.List=Do,ri.useForm=Uo,ri.useWatch=ni;const oi=ri;function ii(e,t){var n=Object.assign({},e);return Array.isArray(t)&&t.forEach(function(e){delete n[e]}),n}const ai=e.createContext({labelAlign:"right",layout:"horizontal",itemRef:()=>{}}),li=e.createContext(null),si=t=>{const n=ii(t,["prefixCls"]);return e.createElement(Qo,Object.assign({},n))},ci=e.createContext({prefixCls:""}),ui=e.createContext({}),di=({children:t,status:n,override:r})=>{const o=e.useContext(ui),i=e.useMemo(()=>{const e=Object.assign({},o);return r&&delete e.isFormItemInput,n&&(delete e.status,delete e.hasFeedback,delete e.feedbackIcon),e},[n,r,o]);return e.createElement(ui.Provider,{value:i},t)},fi=e.createContext(void 0),pi="ant",mi="anticon",gi=["outlined","borderless","filled","underlined"],hi=e.createContext({getPrefixCls:(e,t)=>t||(e?`${pi}-${e}`:pi),iconPrefixCls:mi}),{Consumer:vi}=hi,bi={};function yi(t){const n=e.useContext(hi),{getPrefixCls:r,direction:o,getPopupContainer:i}=n,a=n[t];return Object.assign(Object.assign({classNames:bi,styles:bi},a),{getPrefixCls:r,direction:o,getPopupContainer:i})}const xi=e.createContext(void 0),Ci=({children:t,size:n})=>{const r=e.useContext(xi);return e.createElement(xi.Provider,{value:n||r},t)},wi=xi,Si=e=>{const n=t().useContext(wi);return t().useMemo(()=>e?"string"==typeof e?null!=e?e:n:"function"==typeof e?e(n):n:n,[e,n])},$i=function(e){for(var t,n=0,r=0,o=e.length;o>=4;++r,o-=4)t=1540483477*(65535&(t=255&e.charCodeAt(r)|(255&e.charCodeAt(++r))<<8|(255&e.charCodeAt(++r))<<16|(255&e.charCodeAt(++r))<<24))+(59797*(t>>>16)<<16),n=1540483477*(65535&(t^=t>>>24))+(59797*(t>>>16)<<16)^1540483477*(65535&n)+(59797*(n>>>16)<<16);switch(o){case 3:n^=(255&e.charCodeAt(r+2))<<16;case 2:n^=(255&e.charCodeAt(r+1))<<8;case 1:n=1540483477*(65535&(n^=255&e.charCodeAt(r)))+(59797*(n>>>16)<<16)}return(((n=1540483477*(65535&(n^=n>>>13))+(59797*(n>>>16)<<16))^n>>>15)>>>0).toString(36)};function Ei(e){return e.join("%")}var Oi=function(){function e(t){ht(this,e),H(this,"instanceId",void 0),H(this,"cache",new Map),H(this,"extracted",new Set),this.instanceId=t}return bt(e,[{key:"get",value:function(e){return this.opGet(Ei(e))}},{key:"opGet",value:function(e){return this.cache.get(e)||null}},{key:"update",value:function(e,t){return this.opUpdate(Ei(e),t)}},{key:"opUpdate",value:function(e,t){var n=t(this.cache.get(e));null===n?this.cache.delete(e):this.cache.set(e,n)}}]),e}();const ki=Oi;var Ii="data-token-hash",ji="data-css-hash",Pi="__cssinjs_instance__";var Mi=e.createContext({hashPriority:"low",cache:function(){var e=Math.random().toString(12).slice(2);if("undefined"!=typeof document&&document.head&&document.body){var t=document.body.querySelectorAll("style[".concat(ji,"]"))||[],n=document.head.firstChild;Array.from(t).forEach(function(t){t[Pi]=t[Pi]||e,t[Pi]===e&&document.head.insertBefore(t,n)});var r={};Array.from(document.querySelectorAll("style[".concat(ji,"]"))).forEach(function(t){var n,o=t.getAttribute(ji);r[o]?t[Pi]===e&&(null===(n=t.parentNode)||void 0===n||n.removeChild(t)):r[o]=!0})}return new ki(e)}(),defaultCache:!0});const Ni=Mi;new RegExp("CALC_UNIT","g");var Ri=function(){function e(){ht(this,e),H(this,"cache",void 0),H(this,"keys",void 0),H(this,"cacheCallTimes",void 0),this.cache=new Map,this.keys=[],this.cacheCallTimes=0}return bt(e,[{key:"size",value:function(){return this.keys.length}},{key:"internalGet",value:function(e){var t,n,r=arguments.length>1&&void 0!==arguments[1]&&arguments[1],o={map:this.cache};return e.forEach(function(e){var t;o=o?null===(t=o)||void 0===t||null===(t=t.map)||void 0===t?void 0:t.get(e):void 0}),null!==(t=o)&&void 0!==t&&t.value&&r&&(o.value[1]=this.cacheCallTimes++),null===(n=o)||void 0===n?void 0:n.value}},{key:"get",value:function(e){var t;return null===(t=this.internalGet(e,!0))||void 0===t?void 0:t[0]}},{key:"has",value:function(e){return!!this.internalGet(e)}},{key:"set",value:function(t,n){var r=this;if(!this.has(t)){if(this.size()+1>e.MAX_CACHE_SIZE+e.MAX_CACHE_OFFSET){var o=this.keys.reduce(function(e,t){var n=X(e,2)[1];return r.internalGet(t)[1]<n?[t,r.internalGet(t)[1]]:e},[this.keys[0],this.cacheCallTimes]),i=X(o,1)[0];this.delete(i)}this.keys.push(t)}var a=this.cache;t.forEach(function(e,o){if(o===t.length-1)a.set(e,{value:[n,r.cacheCallTimes++]});else{var i=a.get(e);i?i.map||(i.map=new Map):a.set(e,{map:new Map}),a=a.get(e).map}})}},{key:"deleteByPath",value:function(e,t){var n,r=e.get(t[0]);if(1===t.length)return r.map?e.set(t[0],{map:r.map}):e.delete(t[0]),null===(n=r.value)||void 0===n?void 0:n[0];var o=this.deleteByPath(r.map,t.slice(1));return r.map&&0!==r.map.size||r.value||e.delete(t[0]),o}},{key:"delete",value:function(e){if(this.has(e))return this.keys=this.keys.filter(function(t){return!function(e,t){if(e.length!==t.length)return!1;for(var n=0;n<e.length;n++)if(e[n]!==t[n])return!1;return!0}(t,e)}),this.deleteByPath(this.cache,e)}}]),e}();H(Ri,"MAX_CACHE_SIZE",20),H(Ri,"MAX_CACHE_OFFSET",5);var Ai=0,zi=function(){function e(t){ht(this,e),H(this,"derivatives",void 0),H(this,"id",void 0),this.derivatives=Array.isArray(t)?t:[t],this.id=Ai,0===t.length&&t.length,Ai+=1}return bt(e,[{key:"getDerivativeToken",value:function(e){return this.derivatives.reduce(function(t,n){return n(e,t)},void 0)}}]),e}(),Ti=new Ri;function Fi(e){var t=Array.isArray(e)?e:[e];return Ti.has(t)||Ti.set(t,new zi(t)),Ti.get(t)}var Bi=new WeakMap,Hi={},_i=new WeakMap;function Li(e){var t=_i.get(e)||"";return t||(Object.keys(e).forEach(function(n){var r=e[n];t+=n,r instanceof zi?t+=r.id:r&&"object"===F(r)?t+=Li(r):t+=r}),t=$i(t),_i.set(e,t)),t}function Di(e,t){return $i("".concat(t,"_").concat(Li(e)))}"random-".concat(Date.now(),"-").concat(Math.random()).replace(/\./g,"");var Vi=Y();function Wi(e){return"number"==typeof e?"".concat(e,"px"):e}function qi(e,t,n){if(arguments.length>4&&void 0!==arguments[4]&&arguments[4])return e;var r=L(L({},arguments.length>3&&void 0!==arguments[3]?arguments[3]:{}),{},H(H({},Ii,t),ji,n)),o=Object.keys(r).map(function(e){var t=r[e];return t?"".concat(e,'="').concat(t,'"'):null}).filter(function(e){return e}).join(" ");return"<style ".concat(o,">").concat(e,"</style>")}var Gi=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";return"--".concat(t?"".concat(t,"-"):"").concat(e).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()},Xi=function(e,t,n){return Object.keys(e).length?".".concat(t).concat(null!=n&&n.scope?".".concat(n.scope):"","{").concat(Object.entries(e).map(function(e){var t=X(e,2),n=t[0],r=t[1];return"".concat(n,":").concat(r,";")}).join(""),"}"):""},Ki=function(e,t,n){var r={},o={};return Object.entries(e).forEach(function(e){var t,i,a=X(e,2),l=a[0],s=a[1];if(null!=n&&null!==(t=n.preserve)&&void 0!==t&&t[l])o[l]=s;else if(!("string"!=typeof s&&"number"!=typeof s||null!=n&&null!==(i=n.ignore)&&void 0!==i&&i[l])){var c,u=Gi(l,null==n?void 0:n.prefix);r[u]="number"!=typeof s||null!=n&&null!==(c=n.unitless)&&void 0!==c&&c[l]?String(s):"".concat(s,"px"),o[l]="var(".concat(u,")")}}),[o,Xi(r,t,{scope:null==n?void 0:n.scope})]},Ui=L({},e).useInsertionEffect;const Yi=Ui?function(e,t,n){return Ui(function(){return e(),t()},n)}:function(t,n,r){e.useMemo(t,r),Se(function(){return n(!0)},r)},Qi=void 0!==L({},e).useInsertionEffect?function(t){var n=[],r=!1;return e.useEffect(function(){return r=!1,function(){r=!0,n.length&&n.forEach(function(e){return e()})}},t),function(e){r||n.push(e)}}:function(){return function(e){e()}};function Zi(t,n,r,o,i){var a=e.useContext(Ni).cache,l=Ei([t].concat(ye(n))),s=Qi([l]),c=function(e){a.opUpdate(l,function(t){var n=X(t||[void 0,void 0],2),o=n[0],i=[void 0===o?0:o,n[1]||r()];return e?e(i):i})};e.useMemo(function(){c()},[l]);var u=a.opGet(l)[1];return Yi(function(){null==i||i(u)},function(e){return c(function(t){var n=X(t,2),r=n[0],o=n[1];return e&&0===r&&(null==i||i(u)),[r+1,o]}),function(){a.opUpdate(l,function(t){var n=X(t||[],2),r=n[0],i=void 0===r?0:r,c=n[1];return 0==i-1?(s(function(){!e&&a.opGet(l)||null==o||o(c,!1)}),null):[i-1,c]})}},[l]),u}var Ji={},ea=new Map;var ta="token";function na(t,n){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},o=(0,e.useContext)(Ni),i=o.cache.instanceId,a=o.container,l=r.salt,s=void 0===l?"":l,c=r.override,u=void 0===c?Ji:c,d=r.formatToken,f=r.getComputedToken,p=r.cssVar,m=function(e,t){for(var r=Bi,o=0;o<t.length;o+=1){var i=t[o];r.has(i)||r.set(i,new WeakMap),r=r.get(i)}return r.has(Hi)||r.set(Hi,Object.assign.apply(Object,[{}].concat(ye(n)))),r.get(Hi)}(0,n),g=Li(m),h=Li(u),v=p?Li(p):"",b=Zi(ta,[s,t.id,g,h,v],function(){var e,n=f?f(m,u,t):function(e,t,n,r){var o=L(L({},n.getDerivativeToken(e)),t);return r&&(o=r(o)),o}(m,u,t,d),r=L({},n),o="";if(p){var i=X(Ki(n,p.key,{prefix:p.prefix,ignore:p.ignore,unitless:p.unitless,preserve:p.preserve}),2);n=i[0],o=i[1]}var a=Di(n,s);n._tokenKey=a,r._tokenKey=Di(r,s);var l=null!==(e=null==p?void 0:p.key)&&void 0!==e?e:a;n._themeKey=l,function(e){ea.set(e,(ea.get(e)||0)+1)}(l);var c="".concat("css","-").concat($i(a));return n._hashId=c,[n,c,r,o,(null==p?void 0:p.key)||""]},function(e){!function(e,t){ea.set(e,(ea.get(e)||0)-1);var n=new Set;ea.forEach(function(e,t){e<=0&&n.add(t)}),ea.size-n.size>0&&n.forEach(function(e){!function(e,t){"undefined"!=typeof document&&document.querySelectorAll("style[".concat(Ii,'="').concat(e,'"]')).forEach(function(e){var n;e[Pi]===t&&(null===(n=e.parentNode)||void 0===n||n.removeChild(e))})}(e,t),ea.delete(e)})}(e[0]._themeKey,i)},function(e){var t=X(e,4),n=t[0],r=t[3];if(p&&r){var o=Ae(r,$i("css-variables-".concat(n._themeKey)),{mark:ji,prepend:"queue",attachTo:a,priority:-999});o[Pi]=i,o.setAttribute(Ii,n._themeKey)}});return b}const ra={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};var oa="comm",ia="rule",aa="decl",la=Math.abs,sa=String.fromCharCode;function ca(e){return e.trim()}function ua(e,t,n){return e.replace(t,n)}function da(e,t,n){return e.indexOf(t,n)}function fa(e,t){return 0|e.charCodeAt(t)}function pa(e,t,n){return e.slice(t,n)}function ma(e){return e.length}function ga(e,t){return t.push(e),e}function ha(e,t){for(var n="",r=0;r<e.length;r++)n+=t(e[r],r,e,t)||"";return n}function va(e,t,n,r){switch(e.type){case"@layer":if(e.children.length)break;case"@import":case"@namespace":case aa:return e.return=e.return||e.value;case oa:return"";case"@keyframes":return e.return=e.value+"{"+ha(e.children,r)+"}";case ia:if(!ma(e.value=e.props.join(",")))return""}return ma(n=ha(e.children,r))?e.return=e.value+"{"+n+"}":""}Object.assign;var ba=1,ya=1,xa=0,Ca=0,wa=0,Sa="";function $a(e,t,n,r,o,i,a,l){return{value:e,root:t,parent:n,type:r,props:o,children:i,line:ba,column:ya,length:a,return:"",siblings:l}}function Ea(){return wa=Ca>0?fa(Sa,--Ca):0,ya--,10===wa&&(ya=1,ba--),wa}function Oa(){return wa=Ca<xa?fa(Sa,Ca++):0,ya++,10===wa&&(ya=1,ba++),wa}function ka(){return fa(Sa,Ca)}function Ia(){return Ca}function ja(e,t){return pa(Sa,e,t)}function Pa(e){switch(e){case 0:case 9:case 10:case 13:case 32:return 5;case 33:case 43:case 44:case 47:case 62:case 64:case 126:case 59:case 123:case 125:return 4;case 58:return 3;case 34:case 39:case 40:case 91:return 2;case 41:case 93:return 1}return 0}function Ma(e){return ca(ja(Ca-1,Aa(91===e?e+2:40===e?e+1:e)))}function Na(e){for(;(wa=ka())&&wa<33;)Oa();return Pa(e)>2||Pa(wa)>3?"":" "}function Ra(e,t){for(;--t&&Oa()&&!(wa<48||wa>102||wa>57&&wa<65||wa>70&&wa<97););return ja(e,Ia()+(t<6&&32==ka()&&32==Oa()))}function Aa(e){for(;Oa();)switch(wa){case e:return Ca;case 34:case 39:34!==e&&39!==e&&Aa(wa);break;case 40:41===e&&Aa(e);break;case 92:Oa()}return Ca}function za(e,t){for(;Oa()&&e+wa!==57&&(e+wa!==84||47!==ka()););return"/*"+ja(t,Ca-1)+"*"+sa(47===e?e:Oa())}function Ta(e){for(;!Pa(ka());)Oa();return ja(e,Ca)}function Fa(e){return function(e){return Sa="",e}(Ba("",null,null,null,[""],e=function(e){return ba=ya=1,xa=ma(Sa=e),Ca=0,[]}(e),0,[0],e))}function Ba(e,t,n,r,o,i,a,l,s){for(var c=0,u=0,d=a,f=0,p=0,m=0,g=1,h=1,v=1,b=0,y="",x=o,C=i,w=r,S=y;h;)switch(m=b,b=Oa()){case 40:if(108!=m&&58==fa(S,d-1)){-1!=da(S+=ua(Ma(b),"&","&\f"),"&\f",la(c?l[c-1]:0))&&(v=-1);break}case 34:case 39:case 91:S+=Ma(b);break;case 9:case 10:case 13:case 32:S+=Na(m);break;case 92:S+=Ra(Ia()-1,7);continue;case 47:switch(ka()){case 42:case 47:ga(_a(za(Oa(),Ia()),t,n,s),s),5!=Pa(m||1)&&5!=Pa(ka()||1)||!ma(S)||" "===pa(S,-1,void 0)||(S+=" ");break;default:S+="/"}break;case 123*g:l[c++]=ma(S)*v;case 125*g:case 59:case 0:switch(b){case 0:case 125:h=0;case 59+u:-1==v&&(S=ua(S,/\f/g,"")),p>0&&(ma(S)-d||0===g&&47===m)&&ga(p>32?La(S+";",r,n,d-1,s):La(ua(S," ","")+";",r,n,d-2,s),s);break;case 59:S+=";";default:if(ga(w=Ha(S,t,n,c,u,o,l,y,x=[],C=[],d,i),i),123===b)if(0===u)Ba(S,t,w,w,x,i,d,l,C);else{switch(f){case 99:if(110===fa(S,3))break;case 108:if(97===fa(S,2))break;default:u=0;case 100:case 109:case 115:}u?Ba(e,w,w,r&&ga(Ha(e,w,w,0,0,o,l,y,o,x=[],d,C),C),o,C,d,l,r?x:C):Ba(S,w,w,w,[""],C,0,l,C)}}c=u=p=0,g=v=1,y=S="",d=a;break;case 58:d=1+ma(S),p=m;default:if(g<1)if(123==b)--g;else if(125==b&&0==g++&&125==Ea())continue;switch(S+=sa(b),b*g){case 38:v=u>0?1:(S+="\f",-1);break;case 44:l[c++]=(ma(S)-1)*v,v=1;break;case 64:45===ka()&&(S+=Ma(Oa())),f=ka(),u=d=ma(y=S+=Ta(Ia())),b++;break;case 45:45===m&&2==ma(S)&&(g=0)}}return i}function Ha(e,t,n,r,o,i,a,l,s,c,u,d){for(var f=o-1,p=0===o?i:[""],m=function(e){return e.length}(p),g=0,h=0,v=0;g<r;++g)for(var b=0,y=pa(e,f+1,f=la(h=a[g])),x=e;b<m;++b)(x=ca(h>0?p[b]+" "+y:ua(y,/&\f/g,p[b])))&&(s[v++]=x);return $a(e,t,n,0===o?ia:l,s,c,u,d)}function _a(e,t,n,r){return $a(e,t,n,oa,sa(wa),pa(e,2,-2),0,r)}function La(e,t,n,r,o){return $a(e,t,n,aa,pa(e,0,r),pa(e,r+1,-1),r,o)}var Da,Va="data-ant-cssinjs-cache-path",Wa="_FILE_STYLE__",qa=!0;var Ga="_multi_value_";function Xa(e){return ha(Fa(e),va).replace(/\{%%%\:[^;];}/g,";")}var Ka=function e(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{root:!0,parentSelectors:[]},o=r.root,i=r.injectHash,a=r.parentSelectors,l=n.hashId,s=n.layer,c=(n.path,n.hashPriority),u=n.transformers,d=void 0===u?[]:u,f=(n.linters,""),p={};function m(t){var r=t.getName(l);if(!p[r]){var o=X(e(t.style,n,{root:!1,parentSelectors:a}),1)[0];p[r]="@keyframes ".concat(t.getName(l)).concat(o)}}var g=function e(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];return t.forEach(function(t){Array.isArray(t)?e(t,n):t&&n.push(t)}),n}(Array.isArray(t)?t:[t]);return g.forEach(function(t){var r="string"!=typeof t||o?t:{};if("string"==typeof r)f+="".concat(r,"\n");else if(r._keyframe)m(r);else{var s=d.reduce(function(e,t){var n;return(null==t||null===(n=t.visit)||void 0===n?void 0:n.call(t,e))||e},r);Object.keys(s).forEach(function(t){var r=s[t];if("object"!==F(r)||!r||"animationName"===t&&r._keyframe||function(e){return"object"===F(e)&&e&&("_skip_check_"in e||Ga in e)}(r)){var u;function C(e,t){var n=e.replace(/[A-Z]/g,function(e){return"-".concat(e.toLowerCase())}),r=t;ra[e]||"number"!=typeof r||0===r||(r="".concat(r,"px")),"animationName"===e&&null!=t&&t._keyframe&&(m(t),r=t.getName(l)),f+="".concat(n,":").concat(r,";")}var d=null!==(u=null==r?void 0:r.value)&&void 0!==u?u:r;"object"===F(r)&&null!=r&&r[Ga]&&Array.isArray(d)?d.forEach(function(e){C(t,e)}):C(t,d)}else{var g=!1,h=t.trim(),v=!1;(o||i)&&l?h.startsWith("@")?g=!0:h=function(e,t,n){if(!t)return e;var r=".".concat(t),o="low"===n?":where(".concat(r,")"):r;return e.split(",").map(function(e){var t,n=e.trim().split(/\s+/),r=n[0]||"",i=(null===(t=r.match(/^\w+/))||void 0===t?void 0:t[0])||"";return[r="".concat(i).concat(o).concat(r.slice(i.length))].concat(ye(n.slice(1))).join(" ")}).join(",")}("&"===h?"":t,l,c):!o||l||"&"!==h&&""!==h||(h="",v=!0);var b=X(e(r,n,{root:v,injectHash:g,parentSelectors:[].concat(ye(a),[h])}),2),y=b[0],x=b[1];p=L(L({},p),x),f+="".concat(h).concat(y)}})}}),o?s&&(f&&(f="@layer ".concat(s.name," {").concat(f,"}")),s.dependencies&&(p["@layer ".concat(s.name)]=s.dependencies.map(function(e){return"@layer ".concat(e,", ").concat(s.name,";")}).join("\n"))):f="{".concat(f,"}"),[f,p]};function Ua(e,t){return $i("".concat(e.join("%")).concat(t))}function Ya(){return null}var Qa="style";function Za(t,n){var r=t.token,o=t.path,i=t.hashId,a=t.layer,l=t.nonce,s=t.clientOnly,c=t.order,u=void 0===c?0:c,d=e.useContext(Ni),f=d.autoClear,p=(d.mock,d.defaultCache),m=d.hashPriority,g=d.container,h=d.ssrInline,v=d.transformers,b=d.linters,y=d.cache,x=d.layer,C=r._tokenKey,w=[C];x&&w.push("layer"),w.push.apply(w,ye(o));var S=Vi,$=Zi(Qa,w,function(){var e=w.join("|");if(function(e){return function(){if(!Da&&(Da={},Y())){var e=document.createElement("div");e.className=Va,e.style.position="fixed",e.style.visibility="hidden",e.style.top="-9999px",document.body.appendChild(e);var t=getComputedStyle(e).content||"";(t=t.replace(/^"/,"").replace(/"$/,"")).split(";").forEach(function(e){var t=X(e.split(":"),2),n=t[0],r=t[1];Da[n]=r});var n,r=document.querySelector("style[".concat(Va,"]"));r&&(qa=!1,null===(n=r.parentNode)||void 0===n||n.removeChild(r)),document.body.removeChild(e)}}(),!!Da[e]}(e)){var t=function(e){var t=Da[e],n=null;if(t&&Y())if(qa)n=Wa;else{var r=document.querySelector("style[".concat(ji,'="').concat(Da[e],'"]'));r?n=r.innerHTML:delete Da[e]}return[n,t]}(e),r=X(t,2),l=r[0],c=r[1];if(l)return[l,C,c,{},s,u]}var d=n(),f=X(Ka(d,{hashId:i,hashPriority:m,layer:x?a:void 0,path:o.join("-"),transformers:v,linters:b}),2),p=f[0],g=f[1],h=Xa(p),y=Ua(w,h);return[h,C,y,g,s,u]},function(e,t){var n=X(e,3)[2];(t||f)&&Vi&&Re(n,{mark:ji,attachTo:g})},function(e){var t=X(e,4),n=t[0],r=(t[1],t[2]),o=t[3];if(S&&n!==Wa){var i={mark:ji,prepend:!x&&"queue",attachTo:g,priority:u},a="function"==typeof l?l():l;a&&(i.csp={nonce:a});var s=[],c=[];Object.keys(o).forEach(function(e){e.startsWith("@layer")?s.push(e):c.push(e)}),s.forEach(function(e){Ae(Xa(o[e]),"_layer-".concat(e),L(L({},i),{},{prepend:!0}))});var d=Ae(n,r,i);d[Pi]=y.instanceId,d.setAttribute(Ii,C),c.forEach(function(e){Ae(Xa(o[e]),"_effect-".concat(e),i)})}}),E=X($,3),O=E[0],k=E[1],I=E[2];return function(t){var n;return n=h&&!S&&p?e.createElement("style",T({},H(H({},Ii,k),ji,I),{dangerouslySetInnerHTML:{__html:O}})):e.createElement(Ya,null),e.createElement(e.Fragment,null,n,t)}}var Ja="cssVar";H(H(H({},Qa,function(e,t,n){var r=X(e,6),o=r[0],i=r[1],a=r[2],l=r[3],s=r[4],c=r[5],u=(n||{}).plain;if(s)return null;var d=o,f={"data-rc-order":"prependQueue","data-rc-priority":"".concat(c)};return d=qi(o,i,a,f,u),l&&Object.keys(l).forEach(function(e){if(!t[e]){t[e]=!0;var n=qi(Xa(l[e]),i,"_effect-".concat(e),f,u);e.startsWith("@layer")?d=n+d:d+=n}}),[c,a,d]}),ta,function(e,t,n){var r=X(e,5),o=r[2],i=r[3],a=r[4],l=(n||{}).plain;if(!i)return null;var s=o._tokenKey;return[-999,s,qi(i,a,s,{"data-rc-order":"prependQueue","data-rc-priority":"".concat(-999)},l)]}),Ja,function(e,t,n){var r=X(e,4),o=r[1],i=r[2],a=r[3],l=(n||{}).plain;return o?[-999,i,qi(o,a,i,{"data-rc-order":"prependQueue","data-rc-priority":"".concat(-999)},l)]:null});var el=function(){function e(t,n){ht(this,e),H(this,"name",void 0),H(this,"style",void 0),H(this,"_keyframe",!0),this.name=t,this.style=n}return bt(e,[{key:"getName",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return e?"".concat(e,"-").concat(this.name):this.name}}]),e}();const tl=el;function nl(e){return e.notSplit=!0,e}nl(["borderTop","borderBottom"]),nl(["borderTop"]),nl(["borderBottom"]),nl(["borderLeft","borderRight"]),nl(["borderLeft"]),nl(["borderRight"]);const rl=bt(function e(){ht(this,e)});var ol="CALC_UNIT",il=new RegExp(ol,"g");function al(e){return"number"==typeof e?"".concat(e).concat(ol):e}var ll=function(e){xt(n,e);var t=Et(n);function n(e,r){var o;ht(this,n),H(St(o=t.call(this)),"result",""),H(St(o),"unitlessCssVar",void 0),H(St(o),"lowPriority",void 0);var i=F(e);return o.unitlessCssVar=r,e instanceof n?o.result="(".concat(e.result,")"):"number"===i?o.result=al(e):"string"===i&&(o.result=e),o}return bt(n,[{key:"add",value:function(e){return e instanceof n?this.result="".concat(this.result," + ").concat(e.getResult()):"number"!=typeof e&&"string"!=typeof e||(this.result="".concat(this.result," + ").concat(al(e))),this.lowPriority=!0,this}},{key:"sub",value:function(e){return e instanceof n?this.result="".concat(this.result," - ").concat(e.getResult()):"number"!=typeof e&&"string"!=typeof e||(this.result="".concat(this.result," - ").concat(al(e))),this.lowPriority=!0,this}},{key:"mul",value:function(e){return this.lowPriority&&(this.result="(".concat(this.result,")")),e instanceof n?this.result="".concat(this.result," * ").concat(e.getResult(!0)):"number"!=typeof e&&"string"!=typeof e||(this.result="".concat(this.result," * ").concat(e)),this.lowPriority=!1,this}},{key:"div",value:function(e){return this.lowPriority&&(this.result="(".concat(this.result,")")),e instanceof n?this.result="".concat(this.result," / ").concat(e.getResult(!0)):"number"!=typeof e&&"string"!=typeof e||(this.result="".concat(this.result," / ").concat(e)),this.lowPriority=!1,this}},{key:"getResult",value:function(e){return this.lowPriority||e?"(".concat(this.result,")"):this.result}},{key:"equal",value:function(e){var t=this,n=(e||{}).unit,r=!0;return"boolean"==typeof n?r=n:Array.from(this.unitlessCssVar).some(function(e){return t.result.includes(e)})&&(r=!1),this.result=this.result.replace(il,r?"px":""),void 0!==this.lowPriority?"calc(".concat(this.result,")"):this.result}}]),n}(rl);const sl=function(e){xt(n,e);var t=Et(n);function n(e){var r;return ht(this,n),H(St(r=t.call(this)),"result",0),e instanceof n?r.result=e.result:"number"==typeof e&&(r.result=e),r}return bt(n,[{key:"add",value:function(e){return e instanceof n?this.result+=e.result:"number"==typeof e&&(this.result+=e),this}},{key:"sub",value:function(e){return e instanceof n?this.result-=e.result:"number"==typeof e&&(this.result-=e),this}},{key:"mul",value:function(e){return e instanceof n?this.result*=e.result:"number"==typeof e&&(this.result*=e),this}},{key:"div",value:function(e){return e instanceof n?this.result/=e.result:"number"==typeof e&&(this.result/=e),this}},{key:"equal",value:function(){return this.result}}]),n}(rl),cl=function(e,t){return"".concat([t,e.replace(/([A-Z]+)([A-Z][a-z]+)/g,"$1-$2").replace(/([a-z])([A-Z])/g,"$1-$2")].filter(Boolean).join("-"))},ul=function(e,t,n,r){var o=L({},t[e]);null!=r&&r.deprecatedTokens&&r.deprecatedTokens.forEach(function(e){var t,n=X(e,2),r=n[0],i=n[1];(null!=o&&o[r]||null!=o&&o[i])&&(null!==(t=o[i])&&void 0!==t||(o[i]=null==o?void 0:o[r]))});var i=L(L({},n),o);return Object.keys(i).forEach(function(e){i[e]===t[e]&&delete i[e]}),i};var dl="undefined"!=typeof CSSINJS_STATISTIC,fl=!0;function pl(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];if(!dl)return Object.assign.apply(Object,[{}].concat(t));fl=!1;var r={};return t.forEach(function(e){"object"===F(e)&&Object.keys(e).forEach(function(t){Object.defineProperty(r,t,{configurable:!0,enumerable:!0,get:function(){return e[t]}})})}),fl=!0,r}var ml={};function gl(){}const hl=function(e,t,n){var r;return"function"==typeof n?n(pl(t,null!==(r=t[e])&&void 0!==r?r:{})):null!=n?n:{}};var vl=function(){function e(){ht(this,e),H(this,"map",new Map),H(this,"objectIDMap",new WeakMap),H(this,"nextID",0),H(this,"lastAccessBeat",new Map),H(this,"accessBeat",0)}return bt(e,[{key:"set",value:function(e,t){this.clear();var n=this.getCompositeKey(e);this.map.set(n,t),this.lastAccessBeat.set(n,Date.now())}},{key:"get",value:function(e){var t=this.getCompositeKey(e),n=this.map.get(t);return this.lastAccessBeat.set(t,Date.now()),this.accessBeat+=1,n}},{key:"getCompositeKey",value:function(e){var t=this;return e.map(function(e){return e&&"object"===F(e)?"obj_".concat(t.getObjectID(e)):"".concat(F(e),"_").concat(e)}).join("|")}},{key:"getObjectID",value:function(e){if(this.objectIDMap.has(e))return this.objectIDMap.get(e);var t=this.nextID;return this.objectIDMap.set(e,t),this.nextID+=1,t}},{key:"clear",value:function(){var e=this;if(this.accessBeat>1e4){var t=Date.now();this.lastAccessBeat.forEach(function(n,r){t-n>6e5&&(e.map.delete(r),e.lastAccessBeat.delete(r))}),this.accessBeat=0}}}]),e}(),bl=new vl;const yl=function(){return{}},xl={overflow:"hidden",whiteSpace:"nowrap",textOverflow:"ellipsis"},Cl=(e,t=!1)=>({boxSizing:"border-box",margin:0,padding:0,color:e.colorText,fontSize:e.fontSize,lineHeight:e.lineHeight,listStyle:"none",fontFamily:t?"inherit":e.fontFamily}),wl=(e,t)=>({outline:`${Wi(e.lineWidthFocus)} solid ${e.colorPrimaryBorder}`,outlineOffset:null!=t?t:1,transition:"outline-offset 0s, outline 0s"}),Sl=(e,t)=>({"&:focus-visible":wl(e,t)}),$l=e=>({[`.${e}`]:Object.assign(Object.assign({},{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"}}),{[`.${e} .${e}-icon`]:{display:"block"}})}),El={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"},Ol=Object.assign(Object.assign({},El),{colorPrimary:"#1677ff",colorSuccess:"#52c41a",colorWarning:"#faad14",colorError:"#ff4d4f",colorInfo:"#1677ff",colorLink:"",colorTextBase:"",colorBgBase:"",fontFamily:"-apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial,\n'Noto Sans', sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol',\n'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}),kl={token:Ol,override:{override:Ol},hashed:!0},Il=t().createContext(kl),jl=Math.round;function Pl(e,t){const n=e.replace(/^[^(]*\((.*)/,"$1").replace(/\).*/,"").match(/\d*\.?\d+%?/g)||[],r=n.map(e=>parseFloat(e));for(let e=0;e<3;e+=1)r[e]=t(r[e]||0,n[e]||"",e);return n[3]?r[3]=n[3].includes("%")?r[3]/100:r[3]:r[3]=1,r}const Ml=(e,t,n)=>0===n?e:e/100;function Nl(e,t){const n=t||255;return e>n?n:e<0?0:e}class Rl{constructor(e){function t(t){return t[0]in e&&t[1]in e&&t[2]in e}if(H(this,"isValid",!0),H(this,"r",0),H(this,"g",0),H(this,"b",0),H(this,"a",1),H(this,"_h",void 0),H(this,"_s",void 0),H(this,"_l",void 0),H(this,"_v",void 0),H(this,"_max",void 0),H(this,"_min",void 0),H(this,"_brightness",void 0),e)if("string"==typeof e){const n=e.trim();function r(e){return n.startsWith(e)}/^#?[A-F\d]{3,8}$/i.test(n)?this.fromHexString(n):r("rgb")?this.fromRgbString(n):r("hsl")?this.fromHslString(n):(r("hsv")||r("hsb"))&&this.fromHsvString(n)}else if(e instanceof Rl)this.r=e.r,this.g=e.g,this.b=e.b,this.a=e.a,this._h=e._h,this._s=e._s,this._l=e._l,this._v=e._v;else if(t("rgb"))this.r=Nl(e.r),this.g=Nl(e.g),this.b=Nl(e.b),this.a="number"==typeof e.a?Nl(e.a,1):1;else if(t("hsl"))this.fromHsl(e);else{if(!t("hsv"))throw new Error("@ant-design/fast-color: unsupported input "+JSON.stringify(e));this.fromHsv(e)}}setR(e){return this._sc("r",e)}setG(e){return this._sc("g",e)}setB(e){return this._sc("b",e)}setA(e){return this._sc("a",e,1)}setHue(e){const t=this.toHsv();return t.h=e,this._c(t)}getLuminance(){function e(e){const t=e/255;return t<=.03928?t/12.92:Math.pow((t+.055)/1.055,2.4)}return.2126*e(this.r)+.7152*e(this.g)+.0722*e(this.b)}getHue(){if(void 0===this._h){const e=this.getMax()-this.getMin();this._h=0===e?0:jl(60*(this.r===this.getMax()?(this.g-this.b)/e+(this.g<this.b?6:0):this.g===this.getMax()?(this.b-this.r)/e+2:(this.r-this.g)/e+4))}return this._h}getSaturation(){if(void 0===this._s){const e=this.getMax()-this.getMin();this._s=0===e?0:e/this.getMax()}return this._s}getLightness(){return void 0===this._l&&(this._l=(this.getMax()+this.getMin())/510),this._l}getValue(){return void 0===this._v&&(this._v=this.getMax()/255),this._v}getBrightness(){return void 0===this._brightness&&(this._brightness=(299*this.r+587*this.g+114*this.b)/1e3),this._brightness}darken(e=10){const t=this.getHue(),n=this.getSaturation();let r=this.getLightness()-e/100;return r<0&&(r=0),this._c({h:t,s:n,l:r,a:this.a})}lighten(e=10){const t=this.getHue(),n=this.getSaturation();let r=this.getLightness()+e/100;return r>1&&(r=1),this._c({h:t,s:n,l:r,a:this.a})}mix(e,t=50){const n=this._c(e),r=t/100,o=e=>(n[e]-this[e])*r+this[e],i={r:jl(o("r")),g:jl(o("g")),b:jl(o("b")),a:jl(100*o("a"))/100};return this._c(i)}tint(e=10){return this.mix({r:255,g:255,b:255,a:1},e)}shade(e=10){return this.mix({r:0,g:0,b:0,a:1},e)}onBackground(e){const t=this._c(e),n=this.a+t.a*(1-this.a),r=e=>jl((this[e]*this.a+t[e]*t.a*(1-this.a))/n);return this._c({r:r("r"),g:r("g"),b:r("b"),a:n})}isDark(){return this.getBrightness()<128}isLight(){return this.getBrightness()>=128}equals(e){return this.r===e.r&&this.g===e.g&&this.b===e.b&&this.a===e.a}clone(){return this._c(this)}toHexString(){let e="#";const t=(this.r||0).toString(16);e+=2===t.length?t:"0"+t;const n=(this.g||0).toString(16);e+=2===n.length?n:"0"+n;const r=(this.b||0).toString(16);if(e+=2===r.length?r:"0"+r,"number"==typeof this.a&&this.a>=0&&this.a<1){const t=jl(255*this.a).toString(16);e+=2===t.length?t:"0"+t}return e}toHsl(){return{h:this.getHue(),s:this.getSaturation(),l:this.getLightness(),a:this.a}}toHslString(){const e=this.getHue(),t=jl(100*this.getSaturation()),n=jl(100*this.getLightness());return 1!==this.a?`hsla(${e},${t}%,${n}%,${this.a})`:`hsl(${e},${t}%,${n}%)`}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 1!==this.a?`rgba(${this.r},${this.g},${this.b},${this.a})`:`rgb(${this.r},${this.g},${this.b})`}toString(){return this.toRgbString()}_sc(e,t,n){const r=this.clone();return r[e]=Nl(t,n),r}_c(e){return new this.constructor(e)}getMax(){return void 0===this._max&&(this._max=Math.max(this.r,this.g,this.b)),this._max}getMin(){return void 0===this._min&&(this._min=Math.min(this.r,this.g,this.b)),this._min}fromHexString(e){const t=e.replace("#","");function n(e,n){return parseInt(t[e]+t[n||e],16)}t.length<6?(this.r=n(0),this.g=n(1),this.b=n(2),this.a=t[3]?n(3)/255:1):(this.r=n(0,1),this.g=n(2,3),this.b=n(4,5),this.a=t[6]?n(6,7)/255:1)}fromHsl({h:e,s:t,l:n,a:r}){if(this._h=e%360,this._s=t,this._l=n,this.a="number"==typeof r?r:1,t<=0){const e=jl(255*n);this.r=e,this.g=e,this.b=e}let o=0,i=0,a=0;const l=e/60,s=(1-Math.abs(2*n-1))*t,c=s*(1-Math.abs(l%2-1));l>=0&&l<1?(o=s,i=c):l>=1&&l<2?(o=c,i=s):l>=2&&l<3?(i=s,a=c):l>=3&&l<4?(i=c,a=s):l>=4&&l<5?(o=c,a=s):l>=5&&l<6&&(o=s,a=c);const u=n-s/2;this.r=jl(255*(o+u)),this.g=jl(255*(i+u)),this.b=jl(255*(a+u))}fromHsv({h:e,s:t,v:n,a:r}){this._h=e%360,this._s=t,this._v=n,this.a="number"==typeof r?r:1;const o=jl(255*n);if(this.r=o,this.g=o,this.b=o,t<=0)return;const i=e/60,a=Math.floor(i),l=i-a,s=jl(n*(1-t)*255),c=jl(n*(1-t*l)*255),u=jl(n*(1-t*(1-l))*255);switch(a){case 0:this.g=u,this.b=s;break;case 1:this.r=c,this.b=s;break;case 2:this.r=s,this.b=u;break;case 3:this.r=s,this.g=c;break;case 4:this.r=u,this.g=s;break;default:this.g=s,this.b=c}}fromHsvString(e){const t=Pl(e,Ml);this.fromHsv({h:t[0],s:t[1],v:t[2],a:t[3]})}fromHslString(e){const t=Pl(e,Ml);this.fromHsl({h:t[0],s:t[1],l:t[2],a:t[3]})}fromRgbString(e){const t=Pl(e,(e,t)=>t.includes("%")?jl(e/100*255):e);this.r=t[0],this.g=t[1],this.b=t[2],this.a=t[3]}}var Al=[{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 zl(e,t,n){var r;return(r=Math.round(e.h)>=60&&Math.round(e.h)<=240?n?Math.round(e.h)-2*t:Math.round(e.h)+2*t:n?Math.round(e.h)+2*t:Math.round(e.h)-2*t)<0?r+=360:r>=360&&(r-=360),r}function Tl(e,t,n){return 0===e.h&&0===e.s?e.s:((r=n?e.s-.16*t:4===t?e.s+.16:e.s+.05*t)>1&&(r=1),n&&5===t&&r>.1&&(r=.1),r<.06&&(r=.06),Math.round(100*r)/100);var r}function Fl(e,t,n){var r;return r=n?e.v+.05*t:e.v-.15*t,r=Math.max(0,Math.min(1,r)),Math.round(100*r)/100}function Bl(e){for(var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=[],r=new Rl(e),o=r.toHsv(),i=5;i>0;i-=1){var a=new Rl({h:zl(o,i,!0),s:Tl(o,i,!0),v:Fl(o,i,!0)});n.push(a)}n.push(r);for(var l=1;l<=4;l+=1){var s=new Rl({h:zl(o,l),s:Tl(o,l),v:Fl(o,l)});n.push(s)}return"dark"===t.theme?Al.map(function(e){var r=e.index,o=e.amount;return new Rl(t.backgroundColor||"#141414").mix(n[r],o).toHexString()}):n.map(function(e){return e.toHexString()})}var Hl={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"},_l=["#fff1f0","#ffccc7","#ffa39e","#ff7875","#ff4d4f","#f5222d","#cf1322","#a8071a","#820014","#5c0011"];_l.primary=_l[5];var Ll=["#fff2e8","#ffd8bf","#ffbb96","#ff9c6e","#ff7a45","#fa541c","#d4380d","#ad2102","#871400","#610b00"];Ll.primary=Ll[5];var Dl=["#fff7e6","#ffe7ba","#ffd591","#ffc069","#ffa940","#fa8c16","#d46b08","#ad4e00","#873800","#612500"];Dl.primary=Dl[5];var Vl=["#fffbe6","#fff1b8","#ffe58f","#ffd666","#ffc53d","#faad14","#d48806","#ad6800","#874d00","#613400"];Vl.primary=Vl[5];var Wl=["#feffe6","#ffffb8","#fffb8f","#fff566","#ffec3d","#fadb14","#d4b106","#ad8b00","#876800","#614700"];Wl.primary=Wl[5];var ql=["#fcffe6","#f4ffb8","#eaff8f","#d3f261","#bae637","#a0d911","#7cb305","#5b8c00","#3f6600","#254000"];ql.primary=ql[5];var Gl=["#f6ffed","#d9f7be","#b7eb8f","#95de64","#73d13d","#52c41a","#389e0d","#237804","#135200","#092b00"];Gl.primary=Gl[5];var Xl=["#e6fffb","#b5f5ec","#87e8de","#5cdbd3","#36cfc9","#13c2c2","#08979c","#006d75","#00474f","#002329"];Xl.primary=Xl[5];var Kl=["#e6f4ff","#bae0ff","#91caff","#69b1ff","#4096ff","#1677ff","#0958d9","#003eb3","#002c8c","#001d66"];Kl.primary=Kl[5];var Ul=["#f0f5ff","#d6e4ff","#adc6ff","#85a5ff","#597ef7","#2f54eb","#1d39c4","#10239e","#061178","#030852"];Ul.primary=Ul[5];var Yl=["#f9f0ff","#efdbff","#d3adf7","#b37feb","#9254de","#722ed1","#531dab","#391085","#22075e","#120338"];Yl.primary=Yl[5];var Ql=["#fff0f6","#ffd6e7","#ffadd2","#ff85c0","#f759ab","#eb2f96","#c41d7f","#9e1068","#780650","#520339"];Ql.primary=Ql[5];var Zl=["#a6a6a6","#999999","#8c8c8c","#808080","#737373","#666666","#404040","#1a1a1a","#000000","#000000"];Zl.primary=Zl[5];var Jl={red:_l,volcano:Ll,orange:Dl,gold:Vl,yellow:Wl,lime:ql,green:Gl,cyan:Xl,blue:Kl,geekblue:Ul,purple:Yl,magenta:Ql,grey:Zl},es=["#2a1215","#431418","#58181c","#791a1f","#a61d24","#d32029","#e84749","#f37370","#f89f9a","#fac8c3"];es.primary=es[5];var ts=["#2b1611","#441d12","#592716","#7c3118","#aa3e19","#d84a1b","#e87040","#f3956a","#f8b692","#fad4bc"];ts.primary=ts[5];var ns=["#2b1d11","#442a11","#593815","#7c4a15","#aa6215","#d87a16","#e89a3c","#f3b765","#f8cf8d","#fae3b7"];ns.primary=ns[5];var rs=["#2b2111","#443111","#594214","#7c5914","#aa7714","#d89614","#e8b339","#f3cc62","#f8df8b","#faedb5"];rs.primary=rs[5];var os=["#2b2611","#443b11","#595014","#7c6e14","#aa9514","#d8bd14","#e8d639","#f3ea62","#f8f48b","#fafab5"];os.primary=os[5];var is=["#1f2611","#2e3c10","#3e4f13","#536d13","#6f9412","#8bbb11","#a9d134","#c9e75d","#e4f88b","#f0fab5"];is.primary=is[5];var as=["#162312","#1d3712","#274916","#306317","#3c8618","#49aa19","#6abe39","#8fd460","#b2e58b","#d5f2bb"];as.primary=as[5];var ls=["#112123","#113536","#144848","#146262","#138585","#13a8a8","#33bcb7","#58d1c9","#84e2d8","#b2f1e8"];ls.primary=ls[5];var ss=["#111a2c","#112545","#15325b","#15417e","#1554ad","#1668dc","#3c89e8","#65a9f3","#8dc5f8","#b7dcfa"];ss.primary=ss[5];var cs=["#131629","#161d40","#1c2755","#203175","#263ea0","#2b4acb","#5273e0","#7f9ef3","#a8c1f8","#d2e0fa"];cs.primary=cs[5];var us=["#1a1325","#24163a","#301c4d","#3e2069","#51258f","#642ab5","#854eca","#ab7ae0","#cda8f0","#ebd7fa"];us.primary=us[5];var ds=["#291321","#40162f","#551c3b","#75204f","#a02669","#cb2b83","#e0529c","#f37fb7","#f8a8cc","#fad2e3"];ds.primary=ds[5];var fs=["#151515","#1f1f1f","#2d2d2d","#393939","#494949","#5a5a5a","#6a6a6a","#7b7b7b","#888888","#969696"];fs.primary=fs[5];function ps(e){return(e+8)/e}const ms=(e,t)=>new Rl(e).setA(t).toRgbString(),gs=(e,t)=>new Rl(e).darken(t).toHexString(),hs=e=>{const t=Bl(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]}},vs=(e,t)=>{const n=e||"#fff",r=t||"#000";return{colorBgBase:n,colorTextBase:r,colorText:ms(r,.88),colorTextSecondary:ms(r,.65),colorTextTertiary:ms(r,.45),colorTextQuaternary:ms(r,.25),colorFill:ms(r,.15),colorFillSecondary:ms(r,.06),colorFillTertiary:ms(r,.04),colorFillQuaternary:ms(r,.02),colorBgSolid:ms(r,1),colorBgSolidHover:ms(r,.75),colorBgSolidActive:ms(r,.95),colorBgLayout:gs(n,4),colorBgContainer:gs(n,0),colorBgElevated:gs(n,0),colorBgSpotlight:ms(r,.85),colorBgBlur:"transparent",colorBorder:gs(n,15),colorBorderSecondary:gs(n,6)}},bs=Fi(function(e){Hl.pink=Hl.magenta,Jl.pink=Jl.magenta;const t=Object.keys(El).map(t=>{const n=e[t]===Hl[t]?Jl[t]:Bl(e[t]);return Array.from({length:10},()=>1).reduce((e,r,o)=>(e[`${t}-${o+1}`]=n[o],e[`${t}${o+1}`]=n[o],e),{})}).reduce((e,t)=>Object.assign(Object.assign({},e),t),{});return Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},e),t),function(e,{generateColorPalettes:t,generateNeutralColorPalettes:n}){const{colorSuccess:r,colorWarning:o,colorError:i,colorInfo:a,colorPrimary:l,colorBgBase:s,colorTextBase:c}=e,u=t(l),d=t(r),f=t(o),p=t(i),m=t(a),g=n(s,c),h=t(e.colorLink||e.colorInfo),v=new Rl(p[1]).mix(new Rl(p[3]),50).toHexString();return Object.assign(Object.assign({},g),{colorPrimaryBg:u[1],colorPrimaryBgHover:u[2],colorPrimaryBorder:u[3],colorPrimaryBorderHover:u[4],colorPrimaryHover:u[5],colorPrimary:u[6],colorPrimaryActive:u[7],colorPrimaryTextHover:u[8],colorPrimaryText:u[9],colorPrimaryTextActive:u[10],colorSuccessBg:d[1],colorSuccessBgHover:d[2],colorSuccessBorder:d[3],colorSuccessBorderHover:d[4],colorSuccessHover:d[4],colorSuccess:d[6],colorSuccessActive:d[7],colorSuccessTextHover:d[8],colorSuccessText:d[9],colorSuccessTextActive:d[10],colorErrorBg:p[1],colorErrorBgHover:p[2],colorErrorBgFilledHover:v,colorErrorBgActive:p[3],colorErrorBorder:p[3],colorErrorBorderHover:p[4],colorErrorHover:p[5],colorError:p[6],colorErrorActive:p[7],colorErrorTextHover:p[8],colorErrorText:p[9],colorErrorTextActive:p[10],colorWarningBg:f[1],colorWarningBgHover:f[2],colorWarningBorder:f[3],colorWarningBorderHover:f[4],colorWarningHover:f[4],colorWarning:f[6],colorWarningActive:f[7],colorWarningTextHover:f[8],colorWarningText:f[9],colorWarningTextActive:f[10],colorInfoBg:m[1],colorInfoBgHover:m[2],colorInfoBorder:m[3],colorInfoBorderHover:m[4],colorInfoHover:m[4],colorInfo:m[6],colorInfoActive:m[7],colorInfoTextHover:m[8],colorInfoText:m[9],colorInfoTextActive:m[10],colorLinkHover:h[4],colorLink:h[6],colorLinkActive:h[7],colorBgMask:new Rl("#000").setA(.45).toRgbString(),colorWhite:"#fff"})}(e,{generateColorPalettes:hs,generateNeutralColorPalettes:vs})),(e=>{const t=function(e){const t=Array.from({length:10}).map((t,n)=>{const r=n-1,o=e*Math.pow(Math.E,r/5),i=n>1?Math.floor(o):Math.ceil(o);return 2*Math.floor(i/2)});return t[1]=e,t.map(e=>({size:e,lineHeight:ps(e)}))}(e),n=t.map(e=>e.size),r=t.map(e=>e.lineHeight),o=n[1],i=n[0],a=n[2],l=r[1],s=r[0],c=r[2];return{fontSizeSM:i,fontSize:o,fontSizeLG:a,fontSizeXL:n[3],fontSizeHeading1:n[6],fontSizeHeading2:n[5],fontSizeHeading3:n[4],fontSizeHeading4:n[3],fontSizeHeading5:n[2],lineHeight:l,lineHeightLG:c,lineHeightSM:s,fontHeight:Math.round(l*o),fontHeightLG:Math.round(c*a),fontHeightSM:Math.round(s*i),lineHeightHeading1:r[6],lineHeightHeading2:r[5],lineHeightHeading3:r[4],lineHeightHeading4:r[3],lineHeightHeading5:r[2]}})(e.fontSize)),function(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)}}(e)),(e=>{const{controlHeight:t}=e;return{controlHeightSM:.75*t,controlHeightXS:.5*t,controlHeightLG:1.25*t}})(e)),function(e){const{motionUnit:t,motionBase:n,borderRadius:r,lineWidth:o}=e;return Object.assign({motionDurationFast:`${(n+t).toFixed(1)}s`,motionDurationMid:`${(n+2*t).toFixed(1)}s`,motionDurationSlow:`${(n+3*t).toFixed(1)}s`,lineWidthBold:o+1},(e=>{let t=e,n=e,r=e,o=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?o=4:e>=8&&(o=6),{borderRadius:e,borderRadiusXS:r,borderRadiusSM:n,borderRadiusLG:t,borderRadiusOuter:o}})(r))}(e))}),ys=bs;function xs(e){return e>=0&&e<=255}const Cs=function(e,t){const{r:n,g:r,b:o,a:i}=new Rl(e).toRgb();if(i<1)return e;const{r:a,g:l,b:s}=new Rl(t).toRgb();for(let e=.01;e<=1;e+=.01){const t=Math.round((n-a*(1-e))/e),i=Math.round((r-l*(1-e))/e),c=Math.round((o-s*(1-e))/e);if(xs(t)&&xs(i)&&xs(c))return new Rl({r:t,g:i,b:c,a:Math.round(100*e)/100}).toRgbString()}return new Rl({r:n,g:r,b:o,a:1}).toRgbString()};function ws(e){const{override:t}=e,n=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(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n}(e,["override"]),r=Object.assign({},t);Object.keys(Ol).forEach(e=>{delete r[e]});const o=Object.assign(Object.assign({},n),r);if(!1===o.motion){const e="0s";o.motionDurationFast=e,o.motionDurationMid=e,o.motionDurationSlow=e}return Object.assign(Object.assign(Object.assign({},o),{colorFillContent:o.colorFillSecondary,colorFillContentHover:o.colorFill,colorFillAlter:o.colorFillQuaternary,colorBgContainerDisabled:o.colorFillTertiary,colorBorderBg:o.colorBgContainer,colorSplit:Cs(o.colorBorderSecondary,o.colorBgContainer),colorTextPlaceholder:o.colorTextQuaternary,colorTextDisabled:o.colorTextQuaternary,colorTextHeading:o.colorText,colorTextLabel:o.colorTextSecondary,colorTextDescription:o.colorTextTertiary,colorTextLightSolid:o.colorWhite,colorHighlight:o.colorError,colorBgTextHover:o.colorFillSecondary,colorBgTextActive:o.colorFill,colorIcon:o.colorTextTertiary,colorIconHover:o.colorText,colorErrorOutline:Cs(o.colorErrorBg,o.colorBgContainer),colorWarningOutline:Cs(o.colorWarningBg,o.colorBgContainer),fontSizeIcon:o.fontSizeSM,lineWidthFocus:3*o.lineWidth,lineWidth:o.lineWidth,controlOutlineWidth:2*o.lineWidth,controlInteractiveSize:o.controlHeight/2,controlItemBgHover:o.colorFillTertiary,controlItemBgActive:o.colorPrimaryBg,controlItemBgActiveHover:o.colorPrimaryBgHover,controlItemBgActiveDisabled:o.colorFill,controlTmpOutline:o.colorFillQuaternary,controlOutline:Cs(o.colorPrimaryBg,o.colorBgContainer),lineType:o.lineType,borderRadius:o.borderRadius,borderRadiusXS:o.borderRadiusXS,borderRadiusSM:o.borderRadiusSM,borderRadiusLG:o.borderRadiusLG,fontWeightStrong:600,opacityLoading:.65,linkDecoration:"none",linkHoverDecoration:"none",linkFocusDecoration:"none",controlPaddingHorizontal:12,controlPaddingHorizontalSM:8,paddingXXS:o.sizeXXS,paddingXS:o.sizeXS,paddingSM:o.sizeSM,padding:o.size,paddingMD:o.sizeMD,paddingLG:o.sizeLG,paddingXL:o.sizeXL,paddingContentHorizontalLG:o.sizeLG,paddingContentVerticalLG:o.sizeMS,paddingContentHorizontal:o.sizeMS,paddingContentVertical:o.sizeSM,paddingContentHorizontalSM:o.size,paddingContentVerticalSM:o.sizeXS,marginXXS:o.sizeXXS,marginXS:o.sizeXS,marginSM:o.sizeSM,margin:o.size,marginMD:o.sizeMD,marginLG:o.sizeLG,marginXL:o.sizeXL,marginXXL:o.sizeXXL,boxShadow:"\n 0 6px 16px 0 rgba(0, 0, 0, 0.08),\n 0 3px 6px -4px rgba(0, 0, 0, 0.12),\n 0 9px 28px 8px rgba(0, 0, 0, 0.05)\n ",boxShadowSecondary:"\n 0 6px 16px 0 rgba(0, 0, 0, 0.08),\n 0 3px 6px -4px rgba(0, 0, 0, 0.12),\n 0 9px 28px 8px rgba(0, 0, 0, 0.05)\n ",boxShadowTertiary:"\n 0 1px 2px 0 rgba(0, 0, 0, 0.03),\n 0 1px 6px -1px rgba(0, 0, 0, 0.02),\n 0 2px 4px 0 rgba(0, 0, 0, 0.02)\n ",screenXS:480,screenXSMin:480,screenXSMax:575,screenSM:576,screenSMMin:576,screenSMMax:767,screenMD:768,screenMDMin:768,screenMDMax:991,screenLG:992,screenLGMin:992,screenLGMax:1199,screenXL:1200,screenXLMin:1200,screenXLMax:1599,screenXXL:1600,screenXXLMin:1600,boxShadowPopoverArrow:"2px 2px 5px rgba(0, 0, 0, 0.05)",boxShadowCard:`\n 0 1px 2px -2px ${new Rl("rgba(0, 0, 0, 0.16)").toRgbString()},\n 0 3px 6px 0 ${new Rl("rgba(0, 0, 0, 0.12)").toRgbString()},\n 0 5px 12px 4px ${new Rl("rgba(0, 0, 0, 0.09)").toRgbString()}\n `,boxShadowDrawerRight:"\n -6px 0 16px 0 rgba(0, 0, 0, 0.08),\n -3px 0 6px -4px rgba(0, 0, 0, 0.12),\n -9px 0 28px 8px rgba(0, 0, 0, 0.05)\n ",boxShadowDrawerLeft:"\n 6px 0 16px 0 rgba(0, 0, 0, 0.08),\n 3px 0 6px -4px rgba(0, 0, 0, 0.12),\n 9px 0 28px 8px rgba(0, 0, 0, 0.05)\n ",boxShadowDrawerUp:"\n 0 6px 16px 0 rgba(0, 0, 0, 0.08),\n 0 3px 6px -4px rgba(0, 0, 0, 0.12),\n 0 9px 28px 8px rgba(0, 0, 0, 0.05)\n ",boxShadowDrawerDown:"\n 0 -6px 16px 0 rgba(0, 0, 0, 0.08),\n 0 -3px 6px -4px rgba(0, 0, 0, 0.12),\n 0 -9px 28px 8px rgba(0, 0, 0, 0.05)\n ",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 Ss=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(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n};const $s={lineHeight:!0,lineHeightSM:!0,lineHeightLG:!0,lineHeightHeading1:!0,lineHeightHeading2:!0,lineHeightHeading3:!0,lineHeightHeading4:!0,lineHeightHeading5:!0,opacityLoading:!0,fontWeightStrong:!0,zIndexPopupBase:!0,zIndexBase:!0,opacityImage:!0},Es={motionBase:!0,motionUnit:!0},Os={screenXS:!0,screenXSMin:!0,screenXSMax:!0,screenSM:!0,screenSMMin:!0,screenSMMax:!0,screenMD:!0,screenMDMin:!0,screenMDMax:!0,screenLG:!0,screenLGMin:!0,screenLGMax:!0,screenXL:!0,screenXLMin:!0,screenXLMax:!0,screenXXL:!0,screenXXLMin:!0},ks=(e,t,n)=>{const r=n.getDerivativeToken(e),{override:o}=t,i=Ss(t,["override"]);let a=Object.assign(Object.assign({},r),{override:o});return a=ws(a),i&&Object.entries(i).forEach(([e,t])=>{const{theme:n}=t,r=Ss(t,["theme"]);let o=r;n&&(o=ks(Object.assign(Object.assign({},a),r),{override:r},n)),a[e]=o}),a};function Is(){const{token:e,hashed:n,theme:r,override:o,cssVar:i}=t().useContext(Il),a=`5.29.3-${n||""}`,l=r||ys,[s,c,u]=na(l,[Ol,e],{salt:a,override:o,getComputedToken:ks,formatToken:ws,cssVar:i&&{prefix:i.prefix,key:i.key,unitless:$s,ignore:Es,preserve:Os}});return[l,u,n?c:"",s,i]}const{genStyleHooks:js,genComponentStyleHook:Ps,genSubStyleComponent:Ms}=function(n){var r=n.useCSP,o=void 0===r?yl:r,i=n.useToken,a=n.usePrefix,l=n.getResetStyles,s=n.getCommonStyle,c=n.getCompUnitless;function u(e,r,c){var u=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},d=Array.isArray(e)?e:[e,e],f=X(d,1)[0],p=d.join("-"),m=n.layer||{name:"antd"};return function(e){var n,d,g=arguments.length>1&&void 0!==arguments[1]?arguments[1]:e,h=i(),v=h.theme,b=h.realToken,y=h.hashId,x=h.token,C=h.cssVar,w=a(),S=w.rootPrefixCls,$=w.iconPrefixCls,E=o(),O=C?"css":"js",k=(n=function(){var e=new Set;return C&&Object.keys(u.unitless||{}).forEach(function(t){e.add(Gi(t,C.prefix)),e.add(Gi(t,cl(f,C.prefix)))}),function(e,t){var n="css"===e?ll:sl;return function(e){return new n(e,t)}}(O,e)},d=[O,f,null==C?void 0:C.prefix],t().useMemo(function(){var e=bl.get(d);if(e)return e;var t=n();return bl.set(d,t),t},d)),I=function(e){return"js"===e?{max:Math.max,min:Math.min}:{max:function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return"max(".concat(t.map(function(e){return Wi(e)}).join(","),")")},min:function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return"min(".concat(t.map(function(e){return Wi(e)}).join(","),")")}}}(O),j=I.max,P=I.min,M={theme:v,token:x,hashId:y,nonce:function(){return E.nonce},clientOnly:u.clientOnly,layer:m,order:u.order||-999};return"function"==typeof l&&Za(L(L({},M),{},{clientOnly:!1,path:["Shared",S]}),function(){return l(x,{prefix:{rootPrefixCls:S,iconPrefixCls:$},csp:E})}),[Za(L(L({},M),{},{path:[p,e,$]}),function(){if(!1===u.injectStyle)return[];var t=function(e){var t,n=e,r=gl;return dl&&"undefined"!=typeof Proxy&&(t=new Set,n=new Proxy(e,{get:function(e,n){var r;return fl&&(null===(r=t)||void 0===r||r.add(n)),e[n]}}),r=function(e,n){var r;ml[e]={global:Array.from(t),component:L(L({},null===(r=ml[e])||void 0===r?void 0:r.component),n)}}),{token:n,keys:t,flush:r}}(x),n=t.token,o=t.flush,i=hl(f,b,c),a=".".concat(e),l=ul(f,b,i,{deprecatedTokens:u.deprecatedTokens});C&&i&&"object"===F(i)&&Object.keys(i).forEach(function(e){i[e]="var(".concat(Gi(e,cl(f,C.prefix)),")")});var d=pl(n,{componentCls:a,prefixCls:e,iconCls:".".concat($),antCls:".".concat(S),calc:k,max:j,min:P},C?i:l),p=r(d,{hashId:y,prefixCls:e,rootPrefixCls:S,iconPrefixCls:$});o(f,l);var m="function"==typeof s?s(d,e,g,u.resetFont):null;return[!1===u.resetStyle?null:m,p]}),y]}}return{genStyleHooks:function(n,r,o,a){var l=Array.isArray(n)?n[0]:n;function s(e){return"".concat(String(l)).concat(e.slice(0,1).toUpperCase()).concat(e.slice(1))}var d=(null==a?void 0:a.unitless)||{},f=L(L({},"function"==typeof c?c(n):{}),{},H({},s("zIndexPopup"),!0));Object.keys(d).forEach(function(e){f[s(e)]=d[e]});var p=L(L({},a),{},{unitless:f,prefixToken:s}),m=u(n,r,o,p),g=function(n,r,o){var a=o.unitless,l=o.injectStyle,s=void 0===l||l,c=o.prefixToken,u=o.ignore,d=function(t){var l=t.rootCls,s=t.cssVar,d=void 0===s?{}:s,f=i().realToken;return function(t,n){var r=t.key,o=t.prefix,i=t.unitless,a=t.ignore,l=t.token,s=t.scope,c=void 0===s?"":s,u=(0,e.useContext)(Ni),d=u.cache.instanceId,f=u.container,p=l._tokenKey,m=[].concat(ye(t.path),[r,c,p]),g=Zi(Ja,m,function(){var e=n(),t=X(Ki(e,r,{prefix:o,unitless:i,ignore:a,scope:c}),2),l=t[0],s=t[1];return[l,s,Ua(m,s),r]},function(e){var t=X(e,3)[2];Vi&&Re(t,{mark:ji,attachTo:f})},function(e){var t=X(e,3),n=t[1],o=t[2];if(n){var i=Ae(n,o,{mark:ji,prepend:"queue",attachTo:f,priority:-999});i[Pi]=d,i.setAttribute(Ii,r)}})}({path:[n],prefix:d.prefix,key:d.key,unitless:a,ignore:u,token:f,scope:l},function(){var e=hl(n,f,r),t=ul(n,f,e,{deprecatedTokens:null==o?void 0:o.deprecatedTokens});return Object.keys(e).forEach(function(e){t[c(e)]=t[e],delete t[e]}),t}),null};return function(e){var r=i().cssVar;return[function(o){return s&&r?t().createElement(t().Fragment,null,t().createElement(d,{rootCls:e,cssVar:r,component:n}),o):o},null==r?void 0:r.key]}}(l,o,p);return function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:e,n=X(m(e,t),2)[1],r=X(g(t),2);return[r[0],n,r[1]]}},genSubStyleComponent:function(e,t,n){var r=u(e,t,n,L({resetStyle:!1,order:-998},arguments.length>3&&void 0!==arguments[3]?arguments[3]:{}));return function(e){var t=e.prefixCls,n=e.rootCls;return r(t,void 0===n?t:n),null}},genComponentStyleHook:u}}({usePrefix:()=>{const{getPrefixCls:t,iconPrefixCls:n}=(0,e.useContext)(hi);return{rootPrefixCls:t(),iconPrefixCls:n}},useToken:()=>{const[e,t,n,r,o]=Is();return{theme:e,realToken:t,hashId:n,token:r,cssVar:o}},useCSP:()=>{const{csp:t}=(0,e.useContext)(hi);return null!=t?t:{}},getResetStyles:(e,t)=>{var n;const r=(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"}}}))(e);return[r,{"&":r},$l(null!==(n=null==t?void 0:t.prefix.iconPrefixCls)&&void 0!==n?n:mi)]},getCommonStyle:(e,t,n,r)=>{const o=`[class^="${t}"], [class*=" ${t}"]`,i=n?`.${n}`:o,a={boxSizing:"border-box","&::before, &::after":{boxSizing:"border-box"}};let l={};return!1!==r&&(l={fontFamily:e.fontFamily,fontSize:e.fontSize}),{[i]:Object.assign(Object.assign(Object.assign({},l),a),{[o]:a})}},getCompUnitless:()=>$s}),Ns=e=>{const{componentCls:t}=e;return{[t]:{display:"inline-flex","&-block":{display:"flex",width:"100%"},"&-vertical":{flexDirection:"column"},"&-rtl":{direction:"rtl"}}}},Rs=js(["Space","Compact"],e=>[Ns(e)],()=>({}),{resetStyle:!1});var As=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(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n};const zs=e.createContext(null),Ts=(t,n)=>{const r=e.useContext(zs),o=e.useMemo(()=>{if(!r)return"";const{compactDirection:e,isFirstItem:o,isLastItem:i}=r,a="vertical"===e?"-vertical-":"-";return A()(`${t}-compact${a}item`,{[`${t}-compact${a}first-item`]:o,[`${t}-compact${a}last-item`]:i,[`${t}-compact${a}item-rtl`]:"rtl"===n})},[t,n,r]);return{compactSize:null==r?void 0:r.compactSize,compactDirection:null==r?void 0:r.compactDirection,compactItemClassnames:o}},Fs=t=>{const{children:n}=t;return e.createElement(zs.Provider,{value:null},n)},Bs=t=>{const{children:n}=t,r=As(t,["children"]);return e.createElement(zs.Provider,{value:e.useMemo(()=>r,[r])},n)},Hs=e=>{const{space:n,form:r,children:o}=e;if(null==o)return null;let i=o;return r&&(i=t().createElement(di,{override:!0,status:!0},i)),n&&(i=t().createElement(Fs,null,i)),i},_s=t().createContext(void 0),Ls=100,Ds={Modal:Ls,Drawer:Ls,Popover:Ls,Popconfirm:Ls,Tooltip:Ls,Tour:Ls,FloatButton:Ls},Vs={SelectLike:50,Dropdown:50,DatePicker:50,Menu:50,ImagePreview:1},Ws=(e,n)=>{const[,r]=Is(),o=t().useContext(_s),i=e in Ds;let a;if(void 0!==n)a=[n,n];else{let t=null!=o?o:0;t+=i?(o?0:r.zIndexPopupBase)+Ds[e]:Vs[e],a=[void 0===o?n:t,t]}return a},qs=()=>({height:0,opacity:0}),Gs=e=>{const{scrollHeight:t}=e;return{height:t,opacity:1}},Xs=e=>({height:e?e.offsetHeight:0}),Ks=(e,t)=>!0===(null==t?void 0:t.deadline)||"height"===t.propertyName,Us=(e,t,n)=>void 0!==n?n:`${e}-${t}`,Ys=(e=pi)=>({motionName:`${e}-motion-collapse`,onAppearStart:qs,onEnterStart:qs,onAppearActive:Gs,onEnterActive:Gs,onLeaveStart:Xs,onLeaveActive:qs,onAppearEnd:Ks,onEnterEnd:Ks,onLeaveEnd:Ks,motionDeadline:500});function Qs(e){const{sizePopupArrow:t,borderRadiusXS:n,borderRadiusOuter:r}=e,o=t/2,i=o,a=1*r/Math.sqrt(2),l=o-r*(1-1/Math.sqrt(2)),s=o-n*(1/Math.sqrt(2)),c=r*(Math.sqrt(2)-1)+n*(1/Math.sqrt(2)),u=2*o-s,d=c,f=2*o-a,p=l,m=2*o-0,g=i,h=o*Math.sqrt(2)+r*(Math.sqrt(2)-2),v=r*(Math.sqrt(2)-1);return{arrowShadowWidth:h,arrowPath:`path('M 0 ${i} A ${r} ${r} 0 0 0 ${a} ${l} L ${s} ${c} A ${n} ${n} 0 0 1 ${u} ${d} L ${f} ${p} A ${r} ${r} 0 0 0 ${m} ${g} Z')`,arrowPolygon:`polygon(${v}px 100%, 50% ${v}px, ${2*o-v}px 100%, ${v}px 100%)`}}const Zs=(e,t,n)=>{const{sizePopupArrow:r,arrowPolygon:o,arrowPath:i,arrowShadowWidth:a,borderRadiusXS:l,calc:s}=e;return{pointerEvents:"none",width:r,height:r,overflow:"hidden","&::before":{position:"absolute",bottom:0,insetInlineStart:0,width:r,height:s(r).div(2).equal(),background:t,clipPath:{_multi_value_:!0,value:[o,i]},content:'""'},"&::after":{content:'""',position:"absolute",width:a,height:a,bottom:0,insetInline:0,margin:"auto",borderRadius:{_skip_check_:!0,value:`0 0 ${Wi(l)} 0`},transform:"translateY(50%) rotate(-135deg)",boxShadow:n,zIndex:0,background:"transparent"}}};function Js(e){const{contentRadius:t,limitVerticalRadius:n}=e,r=t>12?t+2:12;return{arrowOffsetHorizontal:r,arrowOffsetVertical:n?8:r}}function ec(e,t){return e?t:{}}function tc(e,t,n){const{componentCls:r,boxShadowPopoverArrow:o,arrowOffsetVertical:i,arrowOffsetHorizontal:a}=e,{arrowDistance:l=0,arrowPlacement:s={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"},Zs(e,t,o)),{"&:before":{background:t}})]},ec(!!s.top,{[[`&-placement-top > ${r}-arrow`,`&-placement-topLeft > ${r}-arrow`,`&-placement-topRight > ${r}-arrow`].join(",")]:{bottom:l,transform:"translateY(100%) rotate(180deg)"},[`&-placement-top > ${r}-arrow`]:{left:{_skip_check_:!0,value:"50%"},transform:"translateX(-50%) translateY(100%) rotate(180deg)"},"&-placement-topLeft":{"--arrow-offset-horizontal":a,[`> ${r}-arrow`]:{left:{_skip_check_:!0,value:a}}},"&-placement-topRight":{"--arrow-offset-horizontal":`calc(100% - ${Wi(a)})`,[`> ${r}-arrow`]:{right:{_skip_check_:!0,value:a}}}})),ec(!!s.bottom,{[[`&-placement-bottom > ${r}-arrow`,`&-placement-bottomLeft > ${r}-arrow`,`&-placement-bottomRight > ${r}-arrow`].join(",")]:{top:l,transform:"translateY(-100%)"},[`&-placement-bottom > ${r}-arrow`]:{left:{_skip_check_:!0,value:"50%"},transform:"translateX(-50%) translateY(-100%)"},"&-placement-bottomLeft":{"--arrow-offset-horizontal":a,[`> ${r}-arrow`]:{left:{_skip_check_:!0,value:a}}},"&-placement-bottomRight":{"--arrow-offset-horizontal":`calc(100% - ${Wi(a)})`,[`> ${r}-arrow`]:{right:{_skip_check_:!0,value:a}}}})),ec(!!s.left,{[[`&-placement-left > ${r}-arrow`,`&-placement-leftTop > ${r}-arrow`,`&-placement-leftBottom > ${r}-arrow`].join(",")]:{right:{_skip_check_:!0,value:l},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:i},[`&-placement-leftBottom > ${r}-arrow`]:{bottom:i}})),ec(!!s.right,{[[`&-placement-right > ${r}-arrow`,`&-placement-rightTop > ${r}-arrow`,`&-placement-rightBottom > ${r}-arrow`].join(",")]:{left:{_skip_check_:!0,value:l},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:i},[`&-placement-rightBottom > ${r}-arrow`]:{bottom:i}}))}}const nc={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"]}},rc={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"]}},oc=new Set(["topLeft","topRight","bottomLeft","bottomRight","leftTop","leftBottom","rightTop","rightBottom"]);function ic(e){const{arrowWidth:t,autoAdjustOverflow:n,arrowPointAtCenter:r,offset:o,borderRadius:i,visibleFirst:a}=e,l=t/2,s={},c=Js({contentRadius:i,limitVerticalRadius:!0});return Object.keys(nc).forEach(e=>{const i=r&&rc[e]||nc[e],u=Object.assign(Object.assign({},i),{offset:[0,0],dynamicInset:!0});switch(s[e]=u,oc.has(e)&&(u.autoArrow=!1),e){case"top":case"topLeft":case"topRight":u.offset[1]=-l-o;break;case"bottom":case"bottomLeft":case"bottomRight":u.offset[1]=l+o;break;case"left":case"leftTop":case"leftBottom":u.offset[0]=-l-o;break;case"right":case"rightTop":case"rightBottom":u.offset[0]=l+o}if(r)switch(e){case"topLeft":case"bottomLeft":u.offset[0]=-c.arrowOffsetHorizontal-l;break;case"topRight":case"bottomRight":u.offset[0]=c.arrowOffsetHorizontal+l;break;case"leftTop":case"rightTop":u.offset[1]=2*-c.arrowOffsetHorizontal+l;break;case"leftBottom":case"rightBottom":u.offset[1]=2*c.arrowOffsetHorizontal-l}u.overflow=function(e,t,n,r){if(!1===r)return{adjustX:!1,adjustY:!1};const o=r&&"object"==typeof r?r:{},i={};switch(e){case"top":case"bottom":i.shiftX=2*t.arrowOffsetHorizontal+n,i.shiftY=!0,i.adjustY=!0;break;case"left":case"right":i.shiftY=2*t.arrowOffsetVertical+n,i.shiftX=!0,i.adjustX=!0}const a=Object.assign(Object.assign({},i),o);return a.shiftX||(a.adjustX=!0),a.shiftY||(a.adjustY=!0),a}(e,c,t,n),a&&(u.htmlRegion="visibleFirst")}),s}function ac(e){return e&&t().isValidElement(e)&&e.type===t().Fragment}const lc=(e,n,r)=>t().isValidElement(e)?t().cloneElement(e,"function"==typeof r?r(e.props||{}):r):n;function sc(e,t){return lc(e,e,t)}function cc(){}const uc=e.createContext({}),dc=()=>{const e=()=>{};return e.deprecated=cc,e},fc=e=>({animationDuration:e,animationFillMode:"both"}),pc=e=>({animationDuration:e,animationFillMode:"both"}),mc=(e,t,n,r,o=!1)=>{const i=o?"&":"";return{[`\n ${i}${e}-enter,\n ${i}${e}-appear\n `]:Object.assign(Object.assign({},fc(r)),{animationPlayState:"paused"}),[`${i}${e}-leave`]:Object.assign(Object.assign({},pc(r)),{animationPlayState:"paused"}),[`\n ${i}${e}-enter${e}-enter-active,\n ${i}${e}-appear${e}-appear-active\n `]:{animationName:t,animationPlayState:"running"},[`${i}${e}-leave${e}-leave-active`]:{animationName:n,animationPlayState:"running",pointerEvents:"none"}}},gc=new tl("antZoomIn",{"0%":{transform:"scale(0.2)",opacity:0},"100%":{transform:"scale(1)",opacity:1}}),hc=new tl("antZoomOut",{"0%":{transform:"scale(1)"},"100%":{transform:"scale(0.2)",opacity:0}}),vc=new tl("antZoomBigIn",{"0%":{transform:"scale(0.8)",opacity:0},"100%":{transform:"scale(1)",opacity:1}}),bc=new tl("antZoomBigOut",{"0%":{transform:"scale(1)"},"100%":{transform:"scale(0.8)",opacity:0}}),yc=new tl("antZoomUpIn",{"0%":{transform:"scale(0.8)",transformOrigin:"50% 0%",opacity:0},"100%":{transform:"scale(1)",transformOrigin:"50% 0%"}}),xc=new tl("antZoomUpOut",{"0%":{transform:"scale(1)",transformOrigin:"50% 0%"},"100%":{transform:"scale(0.8)",transformOrigin:"50% 0%",opacity:0}}),Cc=new tl("antZoomLeftIn",{"0%":{transform:"scale(0.8)",transformOrigin:"0% 50%",opacity:0},"100%":{transform:"scale(1)",transformOrigin:"0% 50%"}}),wc=new tl("antZoomLeftOut",{"0%":{transform:"scale(1)",transformOrigin:"0% 50%"},"100%":{transform:"scale(0.8)",transformOrigin:"0% 50%",opacity:0}}),Sc=new tl("antZoomRightIn",{"0%":{transform:"scale(0.8)",transformOrigin:"100% 50%",opacity:0},"100%":{transform:"scale(1)",transformOrigin:"100% 50%"}}),$c=new tl("antZoomRightOut",{"0%":{transform:"scale(1)",transformOrigin:"100% 50%"},"100%":{transform:"scale(0.8)",transformOrigin:"100% 50%",opacity:0}}),Ec=new tl("antZoomDownIn",{"0%":{transform:"scale(0.8)",transformOrigin:"50% 100%",opacity:0},"100%":{transform:"scale(1)",transformOrigin:"50% 100%"}}),Oc=new tl("antZoomDownOut",{"0%":{transform:"scale(1)",transformOrigin:"50% 100%"},"100%":{transform:"scale(0.8)",transformOrigin:"50% 100%",opacity:0}}),kc={zoom:{inKeyframes:gc,outKeyframes:hc},"zoom-big":{inKeyframes:vc,outKeyframes:bc},"zoom-big-fast":{inKeyframes:vc,outKeyframes:bc},"zoom-left":{inKeyframes:Cc,outKeyframes:wc},"zoom-right":{inKeyframes:Sc,outKeyframes:$c},"zoom-up":{inKeyframes:yc,outKeyframes:xc},"zoom-down":{inKeyframes:Ec,outKeyframes:Oc}},Ic=(e,t)=>{const{antCls:n}=e,r=`${n}-${t}`,{inKeyframes:o,outKeyframes:i}=kc[t];return[mc(r,o,i,"zoom-big-fast"===t?e.motionDurationFast:e.motionDurationMid),{[`\n ${r}-enter,\n ${r}-appear\n `]:{transform:"scale(0)",opacity:0,animationTimingFunction:e.motionEaseOutCirc,"&-prepare":{transform:"none"}},[`${r}-leave`]:{animationTimingFunction:e.motionEaseInOutCirc}}]},jc=["blue","purple","cyan","green","magenta","pink","red","orange","yellow","volcano","geekblue","lime","gold"];function Pc(e,t){return jc.reduce((n,r)=>{const o=e[`${r}1`],i=e[`${r}3`],a=e[`${r}6`],l=e[`${r}7`];return Object.assign(Object.assign({},n),t(r,{lightColor:o,lightBorderColor:i,darkColor:a,textColor:l}))},{})}const Mc=e=>{const{calc:t,componentCls:n,tooltipMaxWidth:r,tooltipColor:o,tooltipBg:i,tooltipBorderRadius:a,zIndexPopup:l,controlHeight:s,boxShadowSecondary:c,paddingSM:u,paddingXS:d,arrowOffsetHorizontal:f,sizePopupArrow:p}=e,m=t(a).add(p).add(f).equal(),g=t(a).mul(2).add(p).equal();return[{[n]:Object.assign(Object.assign(Object.assign(Object.assign({},Cl(e)),{position:"absolute",zIndex:l,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":i,[`${n}-inner`]:{minWidth:g,minHeight:s,padding:`${Wi(e.calc(u).div(2).equal())} ${Wi(d)}`,color:`var(--ant-tooltip-color, ${o})`,textAlign:"start",textDecoration:"none",wordWrap:"break-word",backgroundColor:i,borderRadius:a,boxShadow:c,boxSizing:"border-box"},[["&-placement-topLeft","&-placement-topRight","&-placement-bottomLeft","&-placement-bottomRight"].join(",")]:{minWidth:m},[["&-placement-left","&-placement-leftTop","&-placement-leftBottom","&-placement-right","&-placement-rightTop","&-placement-rightBottom"].join(",")]:{[`${n}-inner`]:{borderRadius:e.min(a,8)}},[`${n}-content`]:{position:"relative"}}),Pc(e,(e,{darkColor:t})=>({[`&${n}-${e}`]:{[`${n}-inner`]:{backgroundColor:t},[`${n}-arrow`]:{"--antd-arrow-background-color":t}}}))),{"&-rtl":{direction:"rtl"}})},tc(e,"var(--antd-arrow-background-color)"),{[`${n}-pure`]:{position:"relative",maxWidth:"none",margin:e.sizePopupArrow}}]},Nc=e=>Object.assign(Object.assign({zIndexPopup:e.zIndexPopupBase+70},Js({contentRadius:e.borderRadius,limitVerticalRadius:!0})),Qs(pl(e,{borderRadiusOuter:Math.min(e.borderRadiusOuter,4)}))),Rc=(e,t=!0)=>{const n=js("Tooltip",e=>{const{borderRadius:t,colorTextLightSolid:n,colorBgSpotlight:r}=e,o=pl(e,{tooltipMaxWidth:250,tooltipColor:n,tooltipBorderRadius:t,tooltipBg:r});return[Mc(o),Ic(e,"zoom-big-fast")]},Nc,{resetStyle:!1,injectStyle:t});return n(e)},Ac=jc.map(e=>`${e}-inverse`),zc=Math.round;function Tc(e,t){const n=e.replace(/^[^(]*\((.*)/,"$1").replace(/\).*/,"").match(/\d*\.?\d+%?/g)||[],r=n.map(e=>parseFloat(e));for(let e=0;e<3;e+=1)r[e]=t(r[e]||0,n[e]||"",e);return n[3]?r[3]=n[3].includes("%")?r[3]/100:r[3]:r[3]=1,r}const Fc=(e,t,n)=>0===n?e:e/100;function Bc(e,t){const n=t||255;return e>n?n:e<0?0:e}class Hc{constructor(e){function t(t){return t[0]in e&&t[1]in e&&t[2]in e}if(H(this,"isValid",!0),H(this,"r",0),H(this,"g",0),H(this,"b",0),H(this,"a",1),H(this,"_h",void 0),H(this,"_s",void 0),H(this,"_l",void 0),H(this,"_v",void 0),H(this,"_max",void 0),H(this,"_min",void 0),H(this,"_brightness",void 0),e)if("string"==typeof e){const n=e.trim();function r(e){return n.startsWith(e)}/^#?[A-F\d]{3,8}$/i.test(n)?this.fromHexString(n):r("rgb")?this.fromRgbString(n):r("hsl")?this.fromHslString(n):(r("hsv")||r("hsb"))&&this.fromHsvString(n)}else if(e instanceof Hc)this.r=e.r,this.g=e.g,this.b=e.b,this.a=e.a,this._h=e._h,this._s=e._s,this._l=e._l,this._v=e._v;else if(t("rgb"))this.r=Bc(e.r),this.g=Bc(e.g),this.b=Bc(e.b),this.a="number"==typeof e.a?Bc(e.a,1):1;else if(t("hsl"))this.fromHsl(e);else{if(!t("hsv"))throw new Error("@ant-design/fast-color: unsupported input "+JSON.stringify(e));this.fromHsv(e)}}setR(e){return this._sc("r",e)}setG(e){return this._sc("g",e)}setB(e){return this._sc("b",e)}setA(e){return this._sc("a",e,1)}setHue(e){const t=this.toHsv();return t.h=e,this._c(t)}getLuminance(){function e(e){const t=e/255;return t<=.03928?t/12.92:Math.pow((t+.055)/1.055,2.4)}return.2126*e(this.r)+.7152*e(this.g)+.0722*e(this.b)}getHue(){if(void 0===this._h){const e=this.getMax()-this.getMin();this._h=0===e?0:zc(60*(this.r===this.getMax()?(this.g-this.b)/e+(this.g<this.b?6:0):this.g===this.getMax()?(this.b-this.r)/e+2:(this.r-this.g)/e+4))}return this._h}getSaturation(){if(void 0===this._s){const e=this.getMax()-this.getMin();this._s=0===e?0:e/this.getMax()}return this._s}getLightness(){return void 0===this._l&&(this._l=(this.getMax()+this.getMin())/510),this._l}getValue(){return void 0===this._v&&(this._v=this.getMax()/255),this._v}getBrightness(){return void 0===this._brightness&&(this._brightness=(299*this.r+587*this.g+114*this.b)/1e3),this._brightness}darken(e=10){const t=this.getHue(),n=this.getSaturation();let r=this.getLightness()-e/100;return r<0&&(r=0),this._c({h:t,s:n,l:r,a:this.a})}lighten(e=10){const t=this.getHue(),n=this.getSaturation();let r=this.getLightness()+e/100;return r>1&&(r=1),this._c({h:t,s:n,l:r,a:this.a})}mix(e,t=50){const n=this._c(e),r=t/100,o=e=>(n[e]-this[e])*r+this[e],i={r:zc(o("r")),g:zc(o("g")),b:zc(o("b")),a:zc(100*o("a"))/100};return this._c(i)}tint(e=10){return this.mix({r:255,g:255,b:255,a:1},e)}shade(e=10){return this.mix({r:0,g:0,b:0,a:1},e)}onBackground(e){const t=this._c(e),n=this.a+t.a*(1-this.a),r=e=>zc((this[e]*this.a+t[e]*t.a*(1-this.a))/n);return this._c({r:r("r"),g:r("g"),b:r("b"),a:n})}isDark(){return this.getBrightness()<128}isLight(){return this.getBrightness()>=128}equals(e){return this.r===e.r&&this.g===e.g&&this.b===e.b&&this.a===e.a}clone(){return this._c(this)}toHexString(){let e="#";const t=(this.r||0).toString(16);e+=2===t.length?t:"0"+t;const n=(this.g||0).toString(16);e+=2===n.length?n:"0"+n;const r=(this.b||0).toString(16);if(e+=2===r.length?r:"0"+r,"number"==typeof this.a&&this.a>=0&&this.a<1){const t=zc(255*this.a).toString(16);e+=2===t.length?t:"0"+t}return e}toHsl(){return{h:this.getHue(),s:this.getSaturation(),l:this.getLightness(),a:this.a}}toHslString(){const e=this.getHue(),t=zc(100*this.getSaturation()),n=zc(100*this.getLightness());return 1!==this.a?`hsla(${e},${t}%,${n}%,${this.a})`:`hsl(${e},${t}%,${n}%)`}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 1!==this.a?`rgba(${this.r},${this.g},${this.b},${this.a})`:`rgb(${this.r},${this.g},${this.b})`}toString(){return this.toRgbString()}_sc(e,t,n){const r=this.clone();return r[e]=Bc(t,n),r}_c(e){return new this.constructor(e)}getMax(){return void 0===this._max&&(this._max=Math.max(this.r,this.g,this.b)),this._max}getMin(){return void 0===this._min&&(this._min=Math.min(this.r,this.g,this.b)),this._min}fromHexString(e){const t=e.replace("#","");function n(e,n){return parseInt(t[e]+t[n||e],16)}t.length<6?(this.r=n(0),this.g=n(1),this.b=n(2),this.a=t[3]?n(3)/255:1):(this.r=n(0,1),this.g=n(2,3),this.b=n(4,5),this.a=t[6]?n(6,7)/255:1)}fromHsl({h:e,s:t,l:n,a:r}){if(this._h=e%360,this._s=t,this._l=n,this.a="number"==typeof r?r:1,t<=0){const e=zc(255*n);this.r=e,this.g=e,this.b=e}let o=0,i=0,a=0;const l=e/60,s=(1-Math.abs(2*n-1))*t,c=s*(1-Math.abs(l%2-1));l>=0&&l<1?(o=s,i=c):l>=1&&l<2?(o=c,i=s):l>=2&&l<3?(i=s,a=c):l>=3&&l<4?(i=c,a=s):l>=4&&l<5?(o=c,a=s):l>=5&&l<6&&(o=s,a=c);const u=n-s/2;this.r=zc(255*(o+u)),this.g=zc(255*(i+u)),this.b=zc(255*(a+u))}fromHsv({h:e,s:t,v:n,a:r}){this._h=e%360,this._s=t,this._v=n,this.a="number"==typeof r?r:1;const o=zc(255*n);if(this.r=o,this.g=o,this.b=o,t<=0)return;const i=e/60,a=Math.floor(i),l=i-a,s=zc(n*(1-t)*255),c=zc(n*(1-t*l)*255),u=zc(n*(1-t*(1-l))*255);switch(a){case 0:this.g=u,this.b=s;break;case 1:this.r=c,this.b=s;break;case 2:this.r=s,this.b=u;break;case 3:this.r=s,this.g=c;break;case 4:this.r=u,this.g=s;break;default:this.g=s,this.b=c}}fromHsvString(e){const t=Tc(e,Fc);this.fromHsv({h:t[0],s:t[1],v:t[2],a:t[3]})}fromHslString(e){const t=Tc(e,Fc);this.fromHsl({h:t[0],s:t[1],l:t[2],a:t[3]})}fromRgbString(e){const t=Tc(e,(e,t)=>t.includes("%")?zc(e/100*255):e);this.r=t[0],this.g=t[1],this.b=t[2],this.a=t[3]}}var _c,Lc=["b"],Dc=["v"],Vc=function(e){return Math.round(Number(e||0))},Wc=function(e){xt(n,e);var t=Et(n);function n(e){return ht(this,n),t.call(this,function(e){if(e instanceof Hc)return e;if(e&&"object"===F(e)&&"h"in e&&"b"in e){var t=e,n=t.b;return L(L({},D(t,Lc)),{},{v:n})}return"string"==typeof e&&/hsb/.test(e)?e.replace(/hsb/,"hsv"):e}(e))}return bt(n,[{key:"toHsbString",value:function(){var e=this.toHsb(),t=Vc(100*e.s),n=Vc(100*e.b),r=Vc(e.h),o=e.a,i="hsb(".concat(r,", ").concat(t,"%, ").concat(n,"%)"),a="hsba(".concat(r,", ").concat(t,"%, ").concat(n,"%, ").concat(o.toFixed(0===o?0:2),")");return 1===o?i:a}},{key:"toHsb",value:function(){var e=this.toHsv(),t=e.v;return L(L({},D(e,Dc)),{},{b:t,a:this.a})}}]),n}(Hc);(_c="#1677ff")instanceof Wc||new Wc(_c);let qc=function(){return bt(function e(t){var n;if(ht(this,e),this.cleared=!1,t instanceof e)return this.metaColor=t.metaColor.clone(),this.colors=null===(n=t.colors)||void 0===n?void 0:n.map(t=>({color:new e(t.color),percent:t.percent})),void(this.cleared=t.cleared);const r=Array.isArray(t);r&&t.length?(this.colors=t.map(({color:t,percent:n})=>({color:new e(t),percent:n})),this.metaColor=new Wc(this.colors[0].color.metaColor)):this.metaColor=new Wc(r?"":t),(!t||r&&!this.colors)&&(this.metaColor=this.metaColor.setA(0),this.cleared=!0)},[{key:"toHsb",value:function(){return this.metaColor.toHsb()}},{key:"toHsbString",value:function(){return this.metaColor.toHsbString()}},{key:"toHex",value:function(){return e=this.toHexString(),t=this.metaColor.a<1,e?((e,t)=>(null==e?void 0:e.replace(/[^\w/]/g,"").slice(0,t?8:6))||"")(e,t):"";var e,t}},{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:e}=this;if(e){return`linear-gradient(90deg, ${e.map(e=>`${e.color.toRgbString()} ${e.percent}%`).join(", ")})`}return this.metaColor.toRgbString()}},{key:"equals",value:function(e){return!(!e||this.isGradient()!==e.isGradient())&&(this.isGradient()?this.colors.length===e.colors.length&&this.colors.every((t,n)=>{const r=e.colors[n];return t.percent===r.percent&&t.color.equals(r.color)}):this.toHexString()===e.toHexString())}}])}();function Gc(e,t){const n=function(e,t=!0){return t?[].concat(ye(Ac),ye(jc)).includes(e):jc.includes(e)}(t),r=A()({[`${e}-${t}`]:t&&n}),o={},i={},a=(e=>e instanceof qc?e:new qc(e))(t).toRgb(),l=(.299*a.r+.587*a.g+.114*a.b)/255<.5?"#FFF":"#000";return t&&!n&&(o.background=t,o["--ant-tooltip-color"]=l,i["--antd-arrow-background-color"]=t),{className:r,overlayStyle:o,arrowStyle:i}}const Xc=e.forwardRef((t,n)=>{var r,o;const{prefixCls:i,openClassName:a,getTooltipContainer:l,color:s,overlayInnerStyle:c,children:u,afterOpenChange:d,afterVisibleChange:f,destroyTooltipOnHide:p,destroyOnHidden:m,arrow:g=!0,title:h,overlay:v,builtinPlacements:b,arrowPointAtCenter:y=!1,autoAdjustOverflow:x=!0,motion:C,getPopupContainer:w,placement:S="top",mouseEnterDelay:$=.1,mouseLeaveDelay:E=.1,overlayStyle:O,rootClassName:k,overlayClassName:I,styles:j,classNames:P}=t,M=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(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n}(t,["prefixCls","openClassName","getTooltipContainer","color","overlayInnerStyle","children","afterOpenChange","afterVisibleChange","destroyTooltipOnHide","destroyOnHidden","arrow","title","overlay","builtinPlacements","arrowPointAtCenter","autoAdjustOverflow","motion","getPopupContainer","placement","mouseEnterDelay","mouseLeaveDelay","overlayStyle","rootClassName","overlayClassName","styles","classNames"]),N=!!g,[,R]=Is(),{getPopupContainer:z,getPrefixCls:T,direction:F,className:B,style:H,classNames:_,styles:L}=yi("tooltip"),D=dc(),V=e.useRef(null),W=()=>{var e;null===(e=V.current)||void 0===e||e.forceAlign()};e.useImperativeHandle(n,()=>{var e,t;return{forceAlign:W,forcePopupAlign:()=>{D.deprecated(!1,"forcePopupAlign","forceAlign"),W()},nativeElement:null===(e=V.current)||void 0===e?void 0:e.nativeElement,popupElement:null===(t=V.current)||void 0===t?void 0:t.popupElement}});const[q,G]=Gt(!1,{value:null!==(r=t.open)&&void 0!==r?r:t.visible,defaultValue:null!==(o=t.defaultOpen)&&void 0!==o?o:t.defaultVisible}),X=!h&&!v&&0!==h,K=e.useMemo(()=>{var e,t;let n=y;return"object"==typeof g&&(n=null!==(t=null!==(e=g.pointAtCenter)&&void 0!==e?e:g.arrowPointAtCenter)&&void 0!==t?t:y),b||ic({arrowPointAtCenter:n,autoAdjustOverflow:x,arrowWidth:N?R.sizePopupArrow:0,borderRadius:R.borderRadius,offset:R.marginXXS,visibleFirst:!0})},[y,g,b,R]),U=e.useMemo(()=>0===h?h:v||h||"",[v,h]),Y=e.createElement(Hs,{space:!0},"function"==typeof U?U():U),Q=T("tooltip",i),Z=T(),J=t["data-popover-inject"];let ee=q;"open"in t||"visible"in t||!X||(ee=!1);const te=e.isValidElement(u)&&!ac(u)?u:e.createElement("span",null,u),ne=te.props,re=ne.className&&"string"!=typeof ne.className?ne.className:A()(ne.className,a||`${Q}-open`),[oe,ie,ae]=Rc(Q,!J),le=Gc(Q,s),se=le.arrowStyle,ce=A()(I,{[`${Q}-rtl`]:"rtl"===F},le.className,k,ie,ae,B,_.root,null==P?void 0:P.root),ue=A()(_.body,null==P?void 0:P.body),[de,fe]=Ws("Tooltip",M.zIndex),pe=e.createElement(jr,Object.assign({},M,{zIndex:de,showArrow:N,placement:S,mouseEnterDelay:$,mouseLeaveDelay:E,prefixCls:Q,classNames:{root:ce,body:ue},styles:{root:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},se),L.root),H),O),null==j?void 0:j.root),body:Object.assign(Object.assign(Object.assign(Object.assign({},L.body),c),null==j?void 0:j.body),le.overlayStyle)},getTooltipContainer:w||l||z,ref:V,builtinPlacements:K,overlay:Y,visible:ee,onVisibleChange:e=>{var n,r;G(!X&&e),X||(null===(n=t.onOpenChange)||void 0===n||n.call(t,e),null===(r=t.onVisibleChange)||void 0===r||r.call(t,e))},afterVisibleChange:null!=d?d:f,arrowContent:e.createElement("span",{className:`${Q}-arrow-content`}),motion:{motionName:Us(Z,"zoom-big-fast",t.transitionName),motionDeadline:1e3},destroyTooltipOnHide:null!=m?m:!!p}),ee?sc(te,{className:re}):te);return oe(e.createElement(_s.Provider,{value:fe},pe))}),Kc=Xc;Kc._InternalPanelDoNotUseOrYouWillBeFired=t=>{const{prefixCls:n,className:r,placement:o="top",title:i,color:a,overlayInnerStyle:l}=t,{getPrefixCls:s}=e.useContext(hi),c=s("tooltip",n),[u,d,f]=Rc(c),p=Gc(c,a),m=p.arrowStyle,g=Object.assign(Object.assign({},l),p.overlayStyle),h=A()(d,f,c,`${c}-pure`,`${c}-placement-${o}`,r,p.className);return u(e.createElement("div",{className:h,style:m},e.createElement("div",{className:`${c}-arrow`}),e.createElement(z,Object.assign({},t,{className:d,prefixCls:c,overlayInnerStyle:g}),i)))};const Uc=Kc,Yc=Ps("Wave",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(",")}}}}}),Qc=`${pi}-wave-target`;var Zc,Jc=L({},K),eu=Jc.version,tu=Jc.render,nu=Jc.unmountComponentAtNode;try{Number((eu||"").split(".")[0])>=18&&(Zc=Jc.createRoot)}catch(e){}function ru(e){var t=Jc.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;t&&"object"===F(t)&&(t.usingClientEntryPoint=e)}var ou="__rc_react_root__";function iu(_x){return au.apply(this,arguments)}function au(){return(au=_r(Br().mark(function e(t){return Br().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",Promise.resolve().then(function(){var e;null===(e=t[ou])||void 0===e||e.unmount(),delete t[ou]}));case 1:case"end":return e.stop()}},e)}))).apply(this,arguments)}function lu(e){nu(e)}function su(){return(su=_r(Br().mark(function e(t){return Br().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(void 0===Zc){e.next=2;break}return e.abrupt("return",iu(t));case 2:lu(t);case 3:case"end":return e.stop()}},e)}))).apply(this,arguments)}let cu=(e,t)=>(function(e,t){Zc?function(e,t){ru(!0);var n=t[ou]||Zc(t);ru(!1),n.render(e),t[ou]=n}(e,t):function(e,t){null==tu||tu(e,t)}(e,t)}(e,t),()=>function(e){return su.apply(this,arguments)}(t));function uu(e){return e&&(cu=e),cu}function du(e){return e&&"#fff"!==e&&"#ffffff"!==e&&"rgb(255, 255, 255)"!==e&&"rgba(255, 255, 255, 1)"!==e&&!/rgba\((?:\d*, ){3}0\)/.test(e)&&"transparent"!==e&&"canvastext"!==e}function fu(e){return Number.isNaN(e)?0:e}const pu=t=>{const{className:n,target:r,component:o,registerUnmount:i}=t,a=e.useRef(null),l=e.useRef(null);e.useEffect(()=>{l.current=i()},[]);const[s,c]=e.useState(null),[u,d]=e.useState([]),[f,p]=e.useState(0),[m,g]=e.useState(0),[h,v]=e.useState(0),[b,y]=e.useState(0),[x,C]=e.useState(!1),w={left:f,top:m,width:h,height:b,borderRadius:u.map(e=>`${e}px`).join(" ")};function S(){const e=getComputedStyle(r);c(function(e){var t;const{borderTopColor:n,borderColor:r,backgroundColor:o}=getComputedStyle(e);return null!==(t=[n,r,o].find(du))&&void 0!==t?t:null}(r));const t="static"===e.position,{borderLeftWidth:n,borderTopWidth:o}=e;p(t?r.offsetLeft:fu(-Number.parseFloat(n))),g(t?r.offsetTop:fu(-Number.parseFloat(o))),v(r.offsetWidth),y(r.offsetHeight);const{borderTopLeftRadius:i,borderTopRightRadius:a,borderBottomLeftRadius:l,borderBottomRightRadius:s}=e;d([i,a,s,l].map(e=>fu(Number.parseFloat(e))))}if(s&&(w["--wave-color"]=s),e.useEffect(()=>{if(r){const e=Rn(()=>{S(),C(!0)});let t;return"undefined"!=typeof ResizeObserver&&(t=new ResizeObserver(S),t.observe(r)),()=>{Rn.cancel(e),null==t||t.disconnect()}}},[r]),!x)return null;const $=("Checkbox"===o||"Radio"===o)&&(null==r?void 0:r.classList.contains(Qc));return e.createElement(Qn,{visible:!0,motionAppear:!0,motionName:"wave-motion",motionDeadline:5e3,onAppearEnd:(e,t)=>{var n,r;if(t.deadline||"opacity"===t.propertyName){const e=null===(n=a.current)||void 0===n?void 0:n.parentElement;null===(r=l.current)||void 0===r||r.call(l).then(()=>{null==e||e.remove()})}return!1}},({className:t},r)=>e.createElement("div",{ref:fe(a,r),className:A()(n,t,{"wave-quick":$}),style:w}))},mu=(t,n)=>{var r;const{component:o}=n;if("Checkbox"===o&&!(null===(r=t.querySelector("input"))||void 0===r?void 0:r.checked))return;const i=document.createElement("div");i.style.position="absolute",i.style.left="0px",i.style.top="0px",null==t||t.insertBefore(i,null==t?void 0:t.firstChild);const a=uu();let l=null;l=a(e.createElement(pu,Object.assign({},n,{target:t,registerUnmount:function(){return l}})),i)},gu=(t,n,r)=>{const{wave:o}=e.useContext(hi),[,i,a]=Is(),l=At(e=>{const l=t.current;if((null==o?void 0:o.disabled)||!l)return;const s=l.querySelector(`.${Qc}`)||l,{showEffect:c}=o||{};(c||mu)(s,{className:n,token:i,component:r,event:e,hashId:a})}),s=e.useRef(null);return e=>{Rn.cancel(s.current),s.current=Rn(()=>{l(e)})}},hu=n=>{const{children:r,disabled:o,component:i}=n,{getPrefixCls:a}=(0,e.useContext)(hi),l=(0,e.useRef)(null),s=a("wave"),[,c]=Yc(s),u=gu(l,A()(s,c),i);return t().useEffect(()=>{const e=l.current;if(!e||e.nodeType!==window.Node.ELEMENT_NODE||o)return;const t=t=>{!sr(t.target)||!e.getAttribute||e.getAttribute("disabled")||e.disabled||e.className.includes("disabled")&&!e.className.includes("disabled:")||"true"===e.getAttribute("aria-disabled")||e.className.includes("-leave")||u(t)};return e.addEventListener("click",t,!0),()=>{e.removeEventListener("click",t,!0)}},[o]),t().isValidElement(r)?sc(r,{ref:me(r)?fe(he(r),l):l}):null!=r?r:null},vu=e.createContext(!1),bu=({children:t,disabled:n})=>{const r=e.useContext(vu);return e.createElement(vu.Provider,{value:null!=n?n:r},t)},yu=vu;const xu=e.createContext(void 0),Cu=/^[\u4E00-\u9FA5]{2}$/,wu=Cu.test.bind(Cu);function Su(e){return"danger"===e?{danger:!0}:{type:e}}function $u(e){return"string"==typeof e}function Eu(e){return"text"===e||"link"===e}["default","primary","danger"].concat(ye(jc));const Ou={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"},ku=(0,e.createContext)({});function Iu(e){return"object"===F(e)&&"string"==typeof e.name&&"string"==typeof e.theme&&("object"===F(e.icon)||"function"==typeof e.icon)}function ju(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return Object.keys(e).reduce(function(t,n){var r,o=e[n];return"class"===n?(t.className=o,delete t.class):(delete t[n],t[(r=n,r.replace(/-(.)/g,function(e,t){return t.toUpperCase()}))]=o),t},{})}function Pu(e,n,r){return r?t().createElement(e.tag,L(L({key:n},ju(e.attrs)),r),(e.children||[]).map(function(t,r){return Pu(t,"".concat(n,"-").concat(e.tag,"-").concat(r))})):t().createElement(e.tag,L({key:n},ju(e.attrs)),(e.children||[]).map(function(t,r){return Pu(t,"".concat(n,"-").concat(e.tag,"-").concat(r))}))}function Mu(e){return Bl(e)[0]}function Nu(e){return e?Array.isArray(e)?e:[e]:[]}var Ru=["icon","className","onClick","style","primaryColor","secondaryColor"],Au={primaryColor:"#333",secondaryColor:"#E6E6E6",calculated:!1},zu=function(t){var n,r,o,i,a,l,s,c,u=t.icon,d=t.className,f=t.onClick,p=t.style,m=t.primaryColor,g=t.secondaryColor,h=D(t,Ru),v=e.useRef(),b=Au;if(m&&(b={primaryColor:m,secondaryColor:g||Mu(m)}),n=v,r=(0,e.useContext)(ku),o=r.csp,i=r.prefixCls,a=r.layer,l="\n.anticon {\n display: inline-flex;\n align-items: center;\n color: inherit;\n font-style: normal;\n line-height: 0;\n text-align: center;\n text-transform: none;\n vertical-align: -0.125em;\n text-rendering: optimizeLegibility;\n -webkit-font-smoothing: antialiased;\n -moz-osx-font-smoothing: grayscale;\n}\n\n.anticon > * {\n line-height: 1;\n}\n\n.anticon svg {\n display: inline-block;\n}\n\n.anticon::before {\n display: none;\n}\n\n.anticon .anticon-icon {\n display: block;\n}\n\n.anticon[tabindex] {\n cursor: pointer;\n}\n\n.anticon-spin::before,\n.anticon-spin {\n display: inline-block;\n -webkit-animation: loadingCircle 1s infinite linear;\n animation: loadingCircle 1s infinite linear;\n}\n\n@-webkit-keyframes loadingCircle {\n 100% {\n -webkit-transform: rotate(360deg);\n transform: rotate(360deg);\n }\n}\n\n@keyframes loadingCircle {\n 100% {\n -webkit-transform: rotate(360deg);\n transform: rotate(360deg);\n }\n}\n",i&&(l=l.replace(/anticon/g,i)),a&&(l="@layer ".concat(a," {\n").concat(l,"\n}")),(0,e.useEffect)(function(){var e=Rt(n.current);Ae(l,"@ant-design-icons",{prepend:!a,csp:o,attachTo:e})},[]),s=Iu(u),c="icon should be icon definiton, but got ".concat(u),re(s,"[@ant-design/icons] ".concat(c)),!Iu(u))return null;var y=u;return y&&"function"==typeof y.icon&&(y=L(L({},y),{},{icon:y.icon(b.primaryColor,b.secondaryColor)})),Pu(y.icon,"svg-".concat(y.name),L(L({className:d,onClick:f,style:p,"data-icon":y.name,width:"1em",height:"1em",fill:"currentColor","aria-hidden":"true"},h),{},{ref:v}))};zu.displayName="IconReact",zu.getTwoToneColors=function(){return L({},Au)},zu.setTwoToneColors=function(e){var t=e.primaryColor,n=e.secondaryColor;Au.primaryColor=t,Au.secondaryColor=n||Mu(t),Au.calculated=!!n};const Tu=zu;function Fu(e){var t=X(Nu(e),2),n=t[0],r=t[1];return Tu.setTwoToneColors({primaryColor:n,secondaryColor:r})}var Bu=["className","icon","spin","rotate","tabIndex","onClick","twoToneColor"];Fu(Kl.primary);var Hu=e.forwardRef(function(t,n){var r=t.className,o=t.icon,i=t.spin,a=t.rotate,l=t.tabIndex,s=t.onClick,c=t.twoToneColor,u=D(t,Bu),d=e.useContext(ku),f=d.prefixCls,p=void 0===f?"anticon":f,m=d.rootClassName,g=A()(m,p,H(H({},"".concat(p,"-").concat(o.name),!!o.name),"".concat(p,"-spin"),!!i||"loading"===o.name),r),h=l;void 0===h&&s&&(h=-1);var v=a?{msTransform:"rotate(".concat(a,"deg)"),transform:"rotate(".concat(a,"deg)")}:void 0,b=X(Nu(c),2),y=b[0],x=b[1];return e.createElement("span",T({role:"img","aria-label":o.name},u,{ref:n,tabIndex:h,onClick:s,className:g}),e.createElement(Tu,{icon:o,primaryColor:y,secondaryColor:x,style:v}))});Hu.displayName="AntdIcon",Hu.getTwoToneColor=function(){var e=Tu.getTwoToneColors();return e.calculated?[e.primaryColor,e.secondaryColor]:e.primaryColor},Hu.setTwoToneColor=Fu;const _u=Hu;var Lu=function(t,n){return e.createElement(_u,T({},t,{ref:n,icon:Ou}))};const Du=e.forwardRef(Lu),Vu=(0,e.forwardRef)((e,n)=>{const{className:r,style:o,children:i,prefixCls:a}=e,l=A()(`${a}-icon`,r);return t().createElement("span",{ref:n,className:l,style:o},i)}),Wu=Vu,qu=(0,e.forwardRef)((e,n)=>{const{prefixCls:r,className:o,style:i,iconClassName:a}=e,l=A()(`${r}-loading-icon`,o);return t().createElement(Wu,{prefixCls:r,className:l,style:i,ref:n},t().createElement(Du,{className:a}))}),Gu=()=>({width:0,opacity:0,transform:"scale(0)"}),Xu=e=>({width:e.scrollWidth,opacity:1,transform:"scale(1)"}),Ku=e=>{const{prefixCls:n,loading:r,existIcon:o,className:i,style:a,mount:l}=e,s=!!r;return o?t().createElement(qu,{prefixCls:n,className:i,style:a}):t().createElement(Qn,{visible:s,motionName:`${n}-loading-icon-motion`,motionAppear:!l,motionEnter:!l,motionLeave:!l,removeOnLeave:!0,onAppearStart:Gu,onAppearActive:Xu,onEnterStart:Gu,onEnterActive:Xu,onLeaveStart:Xu,onLeaveActive:Gu},({className:e,style:r},o)=>{const l=Object.assign(Object.assign({},a),r);return t().createElement(qu,{prefixCls:n,className:A()(i,e),style:l,ref:o})})},Uu=(e,t)=>({[`> span, > ${e}`]:{"&:not(:last-child)":{[`&, & > ${e}`]:{"&:not(:disabled)":{borderInlineEndColor:t}}},"&:not(:first-child)":{[`&, & > ${e}`]:{"&:not(:disabled)":{borderInlineStartColor:t}}}}}),Yu=e=>{const{componentCls:t,fontSize:n,lineWidth:r,groupBorderColor:o,colorErrorHover:i}=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}},Uu(`${t}-primary`,o),Uu(`${t}-danger`,i)]}},Qu=e=>{const{paddingInline:t,onlyIconSize:n}=e;return pl(e,{buttonPaddingHorizontal:t,buttonPaddingVertical:0,buttonIconOnlyFontSize:n})},Zu=e=>{var t,n,r,o,i,a;const l=null!==(t=e.contentFontSize)&&void 0!==t?t:e.fontSize,s=null!==(n=e.contentFontSizeSM)&&void 0!==n?n:e.fontSize,c=null!==(r=e.contentFontSizeLG)&&void 0!==r?r:e.fontSizeLG,u=null!==(o=e.contentLineHeight)&&void 0!==o?o:ps(l),d=null!==(i=e.contentLineHeightSM)&&void 0!==i?i:ps(s),f=null!==(a=e.contentLineHeightLG)&&void 0!==a?a:ps(c),p=((e,t)=>{const{r:n,g:r,b:o,a:i}=e.toRgb(),a=new Wc(e.toRgbString()).onBackground(t).toHsv();return i<=.5?a.v>.5:.299*n+.587*r+.114*o>192})(new qc(e.colorBgSolid),"#fff")?"#000":"#fff",m=jc.reduce((t,n)=>Object.assign(Object.assign({},t),{[`${n}ShadowColor`]:`0 ${Wi(e.controlOutlineWidth)} 0 ${Cs(e[`${n}1`],e.colorBgContainer)}`}),{});return Object.assign(Object.assign({},m),{fontWeight:400,iconGap:e.marginXS,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:p,contentFontSize:l,contentFontSizeSM:s,contentFontSizeLG:c,contentLineHeight:u,contentLineHeightSM:d,contentLineHeightLG:f,paddingBlock:Math.max((e.controlHeight-l*u)/2-e.lineWidth,0),paddingBlockSM:Math.max((e.controlHeightSM-s*d)/2-e.lineWidth,0),paddingBlockLG:Math.max((e.controlHeightLG-c*f)/2-e.lineWidth,0)})},Ju=e=>{const{componentCls:t,iconCls:n,fontWeight:r,opacityLoading:o,motionDurationSlow:i,motionEaseInOut:a,iconGap:l,calc:s}=e;return{[t]:{outline:"none",position:"relative",display:"inline-flex",gap:l,alignItems:"center",justifyContent:"center",fontWeight:r,whiteSpace:"nowrap",textAlign:"center",backgroundImage:"none",background:"transparent",border:`${Wi(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`]:{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"}},"> a":{color:"currentColor"},"&:not(:disabled)":Sl(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}-loading`]:{opacity:o,cursor:"default"},[`${t}-loading-icon`]:{transition:["width","opacity","margin"].map(e=>`${e} ${i} ${a}`).join(",")},[`&:not(${t}-icon-end)`]:{[`${t}-loading-icon-motion`]:{"&-appear-start, &-enter-start":{marginInlineEnd:s(l).mul(-1).equal()},"&-appear-active, &-enter-active":{marginInlineEnd:0},"&-leave-start":{marginInlineEnd:0},"&-leave-active":{marginInlineEnd:s(l).mul(-1).equal()}}},"&-icon-end":{flexDirection:"row-reverse",[`${t}-loading-icon-motion`]:{"&-appear-start, &-enter-start":{marginInlineStart:s(l).mul(-1).equal()},"&-appear-active, &-enter-active":{marginInlineStart:0},"&-leave-start":{marginInlineStart:0},"&-leave-active":{marginInlineStart:s(l).mul(-1).equal()}}}}}},ed=(e,t,n)=>({[`&:not(:disabled):not(${e}-disabled)`]:{"&:hover":t,"&:active":n}}),td=e=>({minWidth:e.controlHeight,paddingInline:0,borderRadius:"50%"}),nd=e=>({cursor:"not-allowed",borderColor:e.borderColorDisabled,color:e.colorTextDisabled,background:e.colorBgContainerDisabled,boxShadow:"none"}),rd=(e,t,n,r,o,i,a,l)=>({[`&${e}-background-ghost`]:Object.assign(Object.assign({color:n||void 0,background:t,borderColor:r||void 0,boxShadow:"none"},ed(e,Object.assign({background:t},a),Object.assign({background:t},l))),{"&:disabled":{cursor:"not-allowed",color:o||void 0,borderColor:i||void 0}})}),od=e=>({[`&:disabled, &${e.componentCls}-disabled`]:Object.assign({},nd(e))}),id=e=>({[`&:disabled, &${e.componentCls}-disabled`]:{cursor:"not-allowed",color:e.colorTextDisabled}}),ad=(e,t,n,r)=>{const o=r&&["link","text"].includes(r)?id:od;return Object.assign(Object.assign({},o(e)),ed(e.componentCls,t,n))},ld=(e,t,n,r,o)=>({[`&${e.componentCls}-variant-solid`]:Object.assign({color:t,background:n},ad(e,r,o))}),sd=(e,t,n,r,o)=>({[`&${e.componentCls}-variant-outlined, &${e.componentCls}-variant-dashed`]:Object.assign({borderColor:t,background:n},ad(e,r,o))}),cd=e=>({[`&${e.componentCls}-variant-dashed`]:{borderStyle:"dashed"}}),ud=(e,t,n,r)=>({[`&${e.componentCls}-variant-filled`]:Object.assign({boxShadow:"none",background:t},ad(e,n,r))}),dd=(e,t,n,r,o)=>({[`&${e.componentCls}-variant-${n}`]:Object.assign({color:t,boxShadow:"none"},ad(e,r,o,n))}),fd=e=>Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({color:e.defaultColor,boxShadow:e.defaultShadow},ld(e,e.solidTextColor,e.colorBgSolid,{color:e.solidTextColor,background:e.colorBgSolidHover},{color:e.solidTextColor,background:e.colorBgSolidActive})),cd(e)),ud(e,e.colorFillTertiary,{color:e.defaultColor,background:e.colorFillSecondary},{color:e.defaultColor,background:e.colorFill})),rd(e.componentCls,e.ghostBg,e.defaultGhostColor,e.defaultGhostBorderColor,e.colorTextDisabled,e.colorBorder)),dd(e,e.textTextColor,"link",{color:e.colorLinkHover,background:e.linkHoverBg},{color:e.colorLinkActive})),pd=e=>Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({color:e.colorPrimary,boxShadow:e.primaryShadow},sd(e,e.colorPrimary,e.colorBgContainer,{color:e.colorPrimaryTextHover,borderColor:e.colorPrimaryHover,background:e.colorBgContainer},{color:e.colorPrimaryTextActive,borderColor:e.colorPrimaryActive,background:e.colorBgContainer})),cd(e)),ud(e,e.colorPrimaryBg,{color:e.colorPrimary,background:e.colorPrimaryBgHover},{color:e.colorPrimary,background:e.colorPrimaryBorder})),dd(e,e.colorPrimaryText,"text",{color:e.colorPrimaryTextHover,background:e.colorPrimaryBg},{color:e.colorPrimaryTextActive,background:e.colorPrimaryBorder})),dd(e,e.colorPrimaryText,"link",{color:e.colorPrimaryTextHover,background:e.linkHoverBg},{color:e.colorPrimaryTextActive})),rd(e.componentCls,e.ghostBg,e.colorPrimary,e.colorPrimary,e.colorTextDisabled,e.colorBorder,{color:e.colorPrimaryHover,borderColor:e.colorPrimaryHover},{color:e.colorPrimaryActive,borderColor:e.colorPrimaryActive})),md=e=>Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({color:e.colorError,boxShadow:e.dangerShadow},ld(e,e.dangerColor,e.colorError,{background:e.colorErrorHover},{background:e.colorErrorActive})),sd(e,e.colorError,e.colorBgContainer,{color:e.colorErrorHover,borderColor:e.colorErrorBorderHover},{color:e.colorErrorActive,borderColor:e.colorErrorActive})),cd(e)),ud(e,e.colorErrorBg,{color:e.colorError,background:e.colorErrorBgFilledHover},{color:e.colorError,background:e.colorErrorBgActive})),dd(e,e.colorError,"text",{color:e.colorErrorHover,background:e.colorErrorBg},{color:e.colorErrorHover,background:e.colorErrorBgActive})),dd(e,e.colorError,"link",{color:e.colorErrorHover},{color:e.colorErrorActive})),rd(e.componentCls,e.ghostBg,e.colorError,e.colorError,e.colorTextDisabled,e.colorBorder,{color:e.colorErrorHover,borderColor:e.colorErrorHover},{color:e.colorErrorActive,borderColor:e.colorErrorActive})),gd=e=>Object.assign(Object.assign({},dd(e,e.colorLink,"link",{color:e.colorLinkHover},{color:e.colorLinkActive})),rd(e.componentCls,e.ghostBg,e.colorInfo,e.colorInfo,e.colorTextDisabled,e.colorBorder,{color:e.colorInfoHover,borderColor:e.colorInfoHover},{color:e.colorInfoActive,borderColor:e.colorInfoActive})),hd=e=>{const{componentCls:t}=e;return Object.assign({[`${t}-color-default`]:fd(e),[`${t}-color-primary`]:pd(e),[`${t}-color-dangerous`]:md(e),[`${t}-color-link`]:gd(e)},(e=>{const{componentCls:t}=e;return jc.reduce((n,r)=>{const o=e[`${r}6`],i=e[`${r}1`],a=e[`${r}5`],l=e[`${r}2`],s=e[`${r}3`],c=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:o,boxShadow:e[`${r}ShadowColor`]},ld(e,e.colorTextLightSolid,o,{background:a},{background:c})),sd(e,o,e.colorBgContainer,{color:a,borderColor:a,background:e.colorBgContainer},{color:c,borderColor:c,background:e.colorBgContainer})),cd(e)),ud(e,i,{color:o,background:l},{color:o,background:s})),dd(e,o,"link",{color:a},{color:c})),dd(e,o,"text",{color:a,background:i},{color:c,background:s}))})},{})})(e))},vd=e=>Object.assign(Object.assign(Object.assign(Object.assign({},sd(e,e.defaultBorderColor,e.defaultBg,{color:e.defaultHoverColor,borderColor:e.defaultHoverBorderColor,background:e.defaultHoverBg},{color:e.defaultActiveColor,borderColor:e.defaultActiveBorderColor,background:e.defaultActiveBg})),dd(e,e.textTextColor,"text",{color:e.textTextHoverColor,background:e.textHoverBg},{color:e.textTextActiveColor,background:e.colorBgTextActive})),ld(e,e.primaryColor,e.colorPrimary,{background:e.colorPrimaryHover,color:e.primaryColor},{background:e.colorPrimaryActive,color:e.primaryColor})),dd(e,e.colorLink,"link",{color:e.colorLinkHover,background:e.linkHoverBg},{color:e.colorLinkActive})),bd=(e,t="")=>{const{componentCls:n,controlHeight:r,fontSize:o,borderRadius:i,buttonPaddingHorizontal:a,iconCls:l,buttonPaddingVertical:s,buttonIconOnlyFontSize:c}=e;return[{[t]:{fontSize:o,height:r,padding:`${Wi(s)} ${Wi(a)}`,borderRadius:i,[`&${n}-icon-only`]:{width:r,[l]:{fontSize:c}}}},{[`${n}${n}-circle${t}`]:td(e)},{[`${n}${n}-round${t}`]:{borderRadius:e.controlHeight,[`&:not(${n}-icon-only)`]:{paddingInline:e.buttonPaddingHorizontal}}}]},yd=e=>{const t=pl(e,{fontSize:e.contentFontSize});return bd(t,e.componentCls)},xd=e=>{const t=pl(e,{controlHeight:e.controlHeightSM,fontSize:e.contentFontSizeSM,padding:e.paddingXS,buttonPaddingHorizontal:e.paddingInlineSM,buttonPaddingVertical:0,borderRadius:e.borderRadiusSM,buttonIconOnlyFontSize:e.onlyIconSizeSM});return bd(t,`${e.componentCls}-sm`)},Cd=e=>{const t=pl(e,{controlHeight:e.controlHeightLG,fontSize:e.contentFontSizeLG,buttonPaddingHorizontal:e.paddingInlineLG,buttonPaddingVertical:0,borderRadius:e.borderRadiusLG,buttonIconOnlyFontSize:e.onlyIconSizeLG});return bd(t,`${e.componentCls}-lg`)},wd=e=>{const{componentCls:t}=e;return{[t]:{[`&${t}-block`]:{width:"100%"}}}},Sd=js("Button",e=>{const t=Qu(e);return[Ju(t),yd(t),xd(t),Cd(t),wd(t),hd(t),vd(t),Yu(t)]},Zu,{unitless:{fontWeight:!0,contentLineHeight:!0,contentLineHeightSM:!0,contentLineHeightLG:!0}});function $d(e,t,n,r){const{focusElCls:o,focus:i,borderElCls:a}=n,l=a?"> *":"",s=["hover",i?"focus":null,"active"].filter(Boolean).map(e=>`&:${e} ${l}`).join(",");return{[`&-item:not(${t}-last-item)`]:{marginInlineEnd:e.calc(e.lineWidth).mul(-1).equal()},[`&-item:not(${r}-status-success)`]:{zIndex:2},"&-item":Object.assign(Object.assign({[s]:{zIndex:3}},o?{[`&${o}`]:{zIndex:3}}:{}),{[`&[disabled] ${l}`]:{zIndex:0}})}}function Ed(e,t,n){const{borderElCls:r}=n,o=r?`> ${r}`:"";return{[`&-item:not(${t}-first-item):not(${t}-last-item) ${o}`]:{borderRadius:0},[`&-item:not(${t}-last-item)${t}-first-item`]:{[`& ${o}, &${e}-sm ${o}, &${e}-lg ${o}`]:{borderStartEndRadius:0,borderEndEndRadius:0}},[`&-item:not(${t}-first-item)${t}-last-item`]:{[`& ${o}, &${e}-sm ${o}, &${e}-lg ${o}`]:{borderStartStartRadius:0,borderEndStartRadius:0}}}}function Od(e,t={focus:!0}){const{componentCls:n}=e,{componentCls:r}=t,o=r||n,i=`${o}-compact`;return{[i]:Object.assign(Object.assign({},$d(e,i,t,o)),Ed(o,i,t))}}function kd(e,t,n){return{[`&-item:not(${t}-last-item)`]:{marginBottom:e.calc(e.lineWidth).mul(-1).equal()},[`&-item:not(${n}-status-success)`]:{zIndex:2},"&-item":{"&:hover,&:focus,&:active":{zIndex:3},"&[disabled]":{zIndex:0}}}}function Id(e){const t=`${e.componentCls}-compact-vertical`;return{[t]:Object.assign(Object.assign({},kd(e,t,e.componentCls)),(n=e.componentCls,r=t,{[`&-item:not(${r}-first-item):not(${r}-last-item)`]:{borderRadius:0},[`&-item${r}-first-item:not(${r}-last-item)`]:{[`&, &${n}-sm, &${n}-lg`]:{borderEndEndRadius:0,borderEndStartRadius:0}},[`&-item${r}-last-item:not(${r}-first-item)`]:{[`&, &${n}-sm, &${n}-lg`]:{borderStartStartRadius:0,borderStartEndRadius:0}}}))};var n,r}const jd=e=>{const{componentCls:t,colorPrimaryHover:n,lineWidth:r,calc:o}=e,i=o(r).mul(-1).equal(),a=e=>{const o=`${t}-compact${e?"-vertical":""}-item${t}-primary:not([disabled])`;return{[`${o} + ${o}::before`]:{position:"absolute",top:e?i:0,insetInlineStart:e?0:i,backgroundColor:n,content:'""',width:e?"100%":r,height:e?r:"100%"}}};return Object.assign(Object.assign({},a()),a(!0))},Pd=Ms(["Button","compact"],e=>{const t=Qu(e);return[Od(t),Id(t),jd(t)]},Zu);const Md={default:["default","outlined"],primary:["primary","solid"],dashed:["default","dashed"],link:["link","link"],text:["default","text"]},Nd=t().forwardRef((n,r)=>{var o,i;const{loading:a=!1,prefixCls:l,color:s,variant:c,type:u,danger:d=!1,shape:f,size:p,styles:m,disabled:g,className:h,rootClassName:v,children:b,icon:y,iconPosition:x="start",ghost:C=!1,block:w=!1,htmlType:S="button",classNames:$,style:E={},autoInsertSpace:O,autoFocus:k}=n,I=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(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n}(n,["loading","prefixCls","color","variant","type","danger","shape","size","styles","disabled","className","rootClassName","children","icon","iconPosition","ghost","block","htmlType","classNames","style","autoInsertSpace","autoFocus"]),j=u||"default",{button:P}=t().useContext(hi),M=f||(null==P?void 0:P.shape)||"default",[N,R]=(0,e.useMemo)(()=>{if(s&&c)return[s,c];if(u||d){const e=Md[j]||[];return d?["danger",e[1]]:e}return(null==P?void 0:P.color)&&(null==P?void 0:P.variant)?[P.color,P.variant]:["default","outlined"]},[s,c,u,d,null==P?void 0:P.color,null==P?void 0:P.variant,j]),z="danger"===N?"dangerous":N,{getPrefixCls:T,direction:F,autoInsertSpace:B,className:H,style:_,classNames:L,styles:D}=yi("button"),V=null===(o=null!=O?O:B)||void 0===o||o,W=T("btn",l),[q,G,X]=Sd(W),K=(0,e.useContext)(yu),U=null!=g?g:K,Y=(0,e.useContext)(xu),Q=(0,e.useMemo)(()=>function(e){if("object"==typeof e&&e){let t=null==e?void 0:e.delay;return t=Number.isNaN(t)||"number"!=typeof t?0:t,{loading:t<=0,delay:t}}return{loading:!!e,delay:0}}(a),[a]),[Z,J]=(0,e.useState)(Q.loading),[ee,te]=(0,e.useState)(!1),ne=(0,e.useRef)(null),re=pe(r,ne),oe=1===e.Children.count(b)&&!y&&!Eu(R),ie=(0,e.useRef)(!0);t().useEffect(()=>(ie.current=!1,()=>{ie.current=!0}),[]),Se(()=>{let e=null;return Q.delay>0?e=setTimeout(()=>{e=null,J(!0)},Q.delay):J(Q.loading),function(){e&&(clearTimeout(e),e=null)}},[Q.delay,Q.loading]),(0,e.useEffect)(()=>{if(!ne.current||!V)return;const e=ne.current.textContent||"";oe&&wu(e)?ee||te(!0):ee&&te(!1)}),(0,e.useEffect)(()=>{k&&ne.current&&ne.current.focus()},[]);const ae=t().useCallback(e=>{var t;Z||U?e.preventDefault():null===(t=n.onClick)||void 0===t||t.call(n,e)},[n.onClick,Z,U]),{compactSize:le,compactItemClassnames:se}=Ts(W,F),ce=Si(e=>{var t,n;return null!==(n=null!==(t=null!=p?p:le)&&void 0!==t?t:Y)&&void 0!==n?n:e}),ue=ce&&null!==(i={large:"lg",small:"sm",middle:void 0}[ce])&&void 0!==i?i:"",de=Z?"loading":y,fe=ii(I,["navigate"]),me=A()(W,G,X,{[`${W}-${M}`]:"default"!==M&&M,[`${W}-${j}`]:j,[`${W}-dangerous`]:d,[`${W}-color-${z}`]:z,[`${W}-variant-${R}`]:R,[`${W}-${ue}`]:ue,[`${W}-icon-only`]:!b&&0!==b&&!!de,[`${W}-background-ghost`]:C&&!Eu(R),[`${W}-loading`]:Z,[`${W}-two-chinese-chars`]:ee&&V&&!Z,[`${W}-block`]:w,[`${W}-rtl`]:"rtl"===F,[`${W}-icon-end`]:"end"===x},se,h,v,H),ge=Object.assign(Object.assign({},_),E),he=A()(null==$?void 0:$.icon,L.icon),ve=Object.assign(Object.assign({},(null==m?void 0:m.icon)||{}),D.icon||{}),be=e=>t().createElement(Wu,{prefixCls:W,className:he,style:ve},e);let ye;ye=y&&!Z?be(y):a&&"object"==typeof a&&a.icon?be(a.icon):t().createElement(Ku,{existIcon:!!y,prefixCls:W,loading:Z,mount:ie.current});const xe=b||0===b?function(e,n){let r=!1;const o=[];return t().Children.forEach(e,e=>{const t=typeof e,n="string"===t||"number"===t;if(r&&n){const t=o.length-1,n=o[t];o[t]=`${n}${e}`}else o.push(e);r=n}),t().Children.map(o,e=>function(e,n){if(null==e)return;const r=n?" ":"";return"string"!=typeof e&&"number"!=typeof e&&$u(e.type)&&wu(e.props.children)?sc(e,{children:e.props.children.split("").join(r)}):$u(e)?wu(e)?t().createElement("span",null,e.split("").join(r)):t().createElement("span",null,e):ac(e)?t().createElement("span",null,e):e}(e,n))}(b,oe&&V):null;if(void 0!==fe.href)return q(t().createElement("a",Object.assign({},fe,{className:A()(me,{[`${W}-disabled`]:U}),href:U?void 0:fe.href,style:ge,onClick:ae,ref:re,tabIndex:U?-1:0,"aria-disabled":U}),ye,xe));let Ce=t().createElement("button",Object.assign({},I,{type:S,className:me,style:ge,onClick:ae,disabled:U,ref:re}),ye,xe,se&&t().createElement(Pd,{prefixCls:W}));return Eu(R)||(Ce=t().createElement(hu,{component:"Button",disabled:Z},Ce)),q(Ce)}),Rd=Nd;Rd.Group=t=>{const{getPrefixCls:n,direction:r}=e.useContext(hi),{prefixCls:o,size:i,className:a}=t,l=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(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n}(t,["prefixCls","size","className"]),s=n("btn-group",o),[,,c]=Is(),u=e.useMemo(()=>{switch(i){case"large":return"lg";case"small":return"sm";default:return""}},[i]),d=A()(s,{[`${s}-${u}`]:u,[`${s}-rtl`]:"rtl"===r},a,c);return e.createElement(xu.Provider,{value:i},e.createElement("div",Object.assign({},l,{className:d})))},Rd.__ANT_BUTTON=!0;const Ad=Rd,zd=e=>e.checked?e.styleConfig.checkboxChecked:e.styleConfig.checkboxUnchecked;function Td(e){return pl(e,{inputAffixPadding:e.paddingXXS})}const Fd=e=>{const{controlHeight:t,fontSize:n,lineHeight:r,lineWidth:o,controlHeightSM:i,controlHeightLG:a,fontSizeLG:l,lineHeightLG:s,paddingSM:c,controlPaddingHorizontalSM:u,controlPaddingHorizontal:d,colorFillAlter:f,colorPrimaryHover:p,colorPrimary:m,controlOutlineWidth:g,controlOutline:h,colorErrorOutline:v,colorWarningOutline:b,colorBgContainer:y,inputFontSize:x,inputFontSizeLG:C,inputFontSizeSM:w}=e,S=x||n,$=w||S,E=C||l,O=Math.round((t-S*r)/2*10)/10-o,k=Math.round((i-$*r)/2*10)/10-o,I=Math.ceil((a-E*s)/2*10)/10-o;return{paddingBlock:Math.max(O,0),paddingBlockSM:Math.max(k,0),paddingBlockLG:Math.max(I,0),paddingInline:c-o,paddingInlineSM:u-o,paddingInlineLG:d-o,addonBg:f,activeBorderColor:m,hoverBorderColor:p,activeShadow:`0 0 0 ${g}px ${h}`,errorActiveShadow:`0 0 0 ${g}px ${v}`,warningActiveShadow:`0 0 0 ${g}px ${b}`,hoverBg:y,activeBg:y,inputFontSize:S,inputFontSizeLG:E,inputFontSizeSM:$}},Bd=e=>({borderColor:e.hoverBorderColor,backgroundColor:e.hoverBg}),Hd=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({},Bd(pl(e,{hoverBorderColor:e.colorBorder,hoverBg:e.colorBgContainerDisabled})))}),_d=(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}}),Ld=(e,t)=>({[`&${e.componentCls}-status-${t.status}:not(${e.componentCls}-disabled)`]:Object.assign(Object.assign({},_d(e,t)),{[`${e.componentCls}-prefix, ${e.componentCls}-suffix`]:{color:t.affixColor}}),[`&${e.componentCls}-status-${t.status}${e.componentCls}-disabled`]:{borderColor:t.borderColor}}),Dd=(e,t)=>({"&-outlined":Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},_d(e,{borderColor:e.colorBorder,hoverBorderColor:e.hoverBorderColor,activeBorderColor:e.activeBorderColor,activeShadow:e.activeShadow})),{[`&${e.componentCls}-disabled, &[disabled]`]:Object.assign({},Hd(e))}),Ld(e,{status:"error",borderColor:e.colorError,hoverBorderColor:e.colorErrorBorderHover,activeBorderColor:e.colorError,activeShadow:e.errorActiveShadow,affixColor:e.colorError})),Ld(e,{status:"warning",borderColor:e.colorWarning,hoverBorderColor:e.colorWarningBorderHover,activeBorderColor:e.colorWarning,activeShadow:e.warningActiveShadow,affixColor:e.colorWarning})),t)}),Vd=(e,t)=>({[`&${e.componentCls}-group-wrapper-status-${t.status}`]:{[`${e.componentCls}-group-addon`]:{borderColor:t.addonBorderColor,color:t.addonColor}}}),Wd=e=>({"&-outlined":Object.assign(Object.assign(Object.assign({[`${e.componentCls}-group`]:{"&-addon":{background:e.addonBg,border:`${Wi(e.lineWidth)} ${e.lineType} ${e.colorBorder}`},"&-addon:first-child":{borderInlineEnd:0},"&-addon:last-child":{borderInlineStart:0}}},Vd(e,{status:"error",addonBorderColor:e.colorError,addonColor:e.colorErrorText})),Vd(e,{status:"warning",addonBorderColor:e.colorWarning,addonColor:e.colorWarningText})),{[`&${e.componentCls}-group-wrapper-disabled`]:{[`${e.componentCls}-group-addon`]:Object.assign({},Hd(e))}})}),qd=(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)}},Gd=(e,t)=>{var n;return{background:t.bg,borderWidth:e.lineWidth,borderStyle:e.lineType,borderColor:"transparent","input&, & input, textarea&, & textarea":{color:null!==(n=null==t?void 0:t.inputColor)&&void 0!==n?n:"unset"},"&:hover":{background:t.hoverBg},"&:focus, &:focus-within":{outline:0,borderColor:t.activeBorderColor,backgroundColor:e.activeBg}}},Xd=(e,t)=>({[`&${e.componentCls}-status-${t.status}:not(${e.componentCls}-disabled)`]:Object.assign(Object.assign({},Gd(e,t)),{[`${e.componentCls}-prefix, ${e.componentCls}-suffix`]:{color:t.affixColor}})}),Kd=(e,t)=>({"&-filled":Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},Gd(e,{bg:e.colorFillTertiary,hoverBg:e.colorFillSecondary,activeBorderColor:e.activeBorderColor})),{[`&${e.componentCls}-disabled, &[disabled]`]:Object.assign({},Hd(e))}),Xd(e,{status:"error",bg:e.colorErrorBg,hoverBg:e.colorErrorBgHover,activeBorderColor:e.colorError,inputColor:e.colorErrorText,affixColor:e.colorError})),Xd(e,{status:"warning",bg:e.colorWarningBg,hoverBg:e.colorWarningBgHover,activeBorderColor:e.colorWarning,inputColor:e.colorWarningText,affixColor:e.colorWarning})),t)}),Ud=(e,t)=>({[`&${e.componentCls}-group-wrapper-status-${t.status}`]:{[`${e.componentCls}-group-addon`]:{background:t.addonBg,color:t.addonColor}}}),Yd=e=>({"&-filled":Object.assign(Object.assign(Object.assign({[`${e.componentCls}-group-addon`]:{background:e.colorFillTertiary,"&:last-child":{position:"static"}}},Ud(e,{status:"error",addonBg:e.colorErrorBg,addonColor:e.colorErrorText})),Ud(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:`${Wi(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,borderTop:`${Wi(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,borderBottom:`${Wi(e.lineWidth)} ${e.lineType} ${e.colorBorder}`},"&-addon:last-child":{borderInlineEnd:`${Wi(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,borderTop:`${Wi(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,borderBottom:`${Wi(e.lineWidth)} ${e.lineType} ${e.colorBorder}`}}}})}),Qd=(e,t)=>({background:e.colorBgContainer,borderWidth:`${Wi(e.lineWidth)} 0`,borderStyle:`${e.lineType} none`,borderColor:`transparent transparent ${t.borderColor} transparent`,borderRadius:0,"&:hover":{borderColor:`transparent transparent ${t.hoverBorderColor} transparent`,backgroundColor:e.hoverBg},"&:focus, &:focus-within":{borderColor:`transparent transparent ${t.activeBorderColor} transparent`,outline:0,backgroundColor:e.activeBg}}),Zd=(e,t)=>({[`&${e.componentCls}-status-${t.status}:not(${e.componentCls}-disabled)`]:Object.assign(Object.assign({},Qd(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`}}),Jd=(e,t)=>({"&-underlined":Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},Qd(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"}}),Zd(e,{status:"error",borderColor:e.colorError,hoverBorderColor:e.colorErrorBorderHover,activeBorderColor:e.colorError,activeShadow:e.errorActiveShadow,affixColor:e.colorError})),Zd(e,{status:"warning",borderColor:e.colorWarning,hoverBorderColor:e.colorWarningBorderHover,activeBorderColor:e.colorWarning,activeShadow:e.warningActiveShadow,affixColor:e.colorWarning})),t)}),ef=e=>{const{paddingBlockLG:t,lineHeightLG:n,borderRadiusLG:r,paddingInlineLG:o}=e;return{padding:`${Wi(t)} ${Wi(o)}`,fontSize:e.inputFontSizeLG,lineHeight:n,borderRadius:r}},tf=e=>({padding:`${Wi(e.paddingBlockSM)} ${Wi(e.paddingInlineSM)}`,fontSize:e.inputFontSizeSM,borderRadius:e.borderRadiusSM}),nf=e=>Object.assign(Object.assign({position:"relative",display:"inline-block",width:"100%",minWidth:0,padding:`${Wi(e.paddingBlock)} ${Wi(e.paddingInline)}`,color:e.colorText,fontSize:e.inputFontSize,lineHeight:e.lineHeight,borderRadius:e.borderRadius,transition:`all ${e.motionDurationMid}`},{"&::-moz-placeholder":{opacity:1},"&::placeholder":{color:e.colorTextPlaceholder,userSelect:"none"},"&:placeholder-shown":{textOverflow:"ellipsis"}}),{"&-lg":Object.assign({},ef(e)),"&-sm":Object.assign({},tf(e)),"&-rtl, &-textarea-rtl":{direction:"rtl"}}),rf=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({},ef(e)),[`&-sm ${t}, &-sm > ${t}-group-addon`]:Object.assign({},tf(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 ${Wi(e.paddingInline)}`,color:e.colorText,fontWeight:"normal",fontSize:e.inputFontSize,textAlign:"center",borderRadius:e.borderRadius,transition:`all ${e.motionDurationSlow}`,lineHeight:1,[`${n}-select`]:{margin:`${Wi(e.calc(e.paddingBlock).add(1).mul(-1).equal())} ${Wi(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:`${Wi(e.lineWidth)} ${e.lineType} transparent`,boxShadow:"none"}}},[`${n}-cascader-picker`]:{margin:`-9px ${Wi(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"},{"&::before":{display:"table",content:'""'},"&::after":{display:"table",clear:"both",content:'""'}}),{[`${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},[`\n & > ${t}-affix-wrapper,\n & > ${t}-number-affix-wrapper,\n & > ${n}-picker-range\n `]:{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 & > ${n}-select-auto-complete ${t},\n & > ${n}-cascader-picker ${t},\n & > ${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 & > ${n}-select:first-child > ${n}-select-selector,\n & > ${n}-select-auto-complete:first-child ${t},\n & > ${n}-cascader-picker:first-child ${t}`]:{borderStartStartRadius:e.borderRadius,borderEndStartRadius:e.borderRadius},[`& > *:last-child,\n & > ${n}-select:last-child > ${n}-select-selector,\n & > ${n}-cascader-picker:last-child ${t},\n & > ${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}}}})}},of=e=>{const{componentCls:t,controlHeightSM:n,lineWidth:r,calc:o}=e,i=o(n).sub(o(r).mul(2)).sub(16).div(2).equal();return{[t]:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},Cl(e)),nf(e)),Dd(e)),Kd(e)),qd(e)),Jd(e)),{'&[type="color"]':{height:e.controlHeight,[`&${t}-lg`]:{height:e.controlHeightLG},[`&${t}-sm`]:{height:n,paddingTop:i,paddingBottom:i}},'&[type="search"]::-webkit-search-cancel-button, &[type="search"]::-webkit-search-decoration':{appearance:"none"}})}},af=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.colorIcon},"&:active":{color:e.colorText},"&-hidden":{visibility:"hidden"},"&-has-suffix":{margin:`0 ${Wi(e.inputAffixPadding)}`}}}},lf=e=>{const{componentCls:t,inputAffixPadding:n,colorTextDescription:r,motionDurationSlow:o,colorIcon:i,colorIconHover:a,iconCls:l}=e,s=`${t}-affix-wrapper`,c=`${t}-affix-wrapper-disabled`;return{[s]:Object.assign(Object.assign(Object.assign(Object.assign({},nf(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,direction:"ltr"},"&-show-count-has-suffix":{marginInlineEnd:e.paddingXXS},"&-prefix":{marginInlineEnd:n},"&-suffix":{marginInlineStart:n}}}),af(e)),{[`${l}${t}-password-icon`]:{color:i,cursor:"pointer",transition:`all ${o}`,"&:hover":{color:a}}}),[`${t}-underlined`]:{borderRadius:0},[c]:{[`${l}${t}-password-icon`]:{color:i,cursor:"not-allowed","&:hover":{color:i}}}}},sf=e=>{const{componentCls:t,borderRadiusLG:n,borderRadiusSM:r}=e;return{[`${t}-group`]:Object.assign(Object.assign(Object.assign({},Cl(e)),rf(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}}},Wd(e)),Yd(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}}})})}},cf=e=>{const{componentCls:t,antCls:n}=e,r=`${t}-search`;return{[r]:{[t]:{"&:not([disabled]):hover, &:not([disabled]):focus":{[`+ ${t}-group-addon ${r}-button:not(${n}-btn-color-primary):not(${n}-btn-variant-text)`]:{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-color-primary)`]:{color:e.colorTextDescription,"&:not([disabled]):hover":{color:e.colorPrimaryHover},"&:active":{color:e.colorPrimaryActive},[`&${n}-btn-loading::before`]:{inset: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,\n > ${t},\n ${t}-affix-wrapper`]:{"&:hover, &:focus, &:active":{zIndex:2}},[`> ${t}-affix-wrapper-focused`]:{zIndex:2}}}}},uf=e=>{const{componentCls:t}=e;return{[`${t}-out-of-range`]:{[`&, & input, & textarea, ${t}-show-count-suffix, ${t}-data-count`]:{color:e.colorError}}}},df=js(["Input","Shared"],e=>{const t=pl(e,Td(e));return[of(t),lf(t)]},Fd,{resetFont:!1}),ff=js(["Input","Component"],e=>{const t=pl(e,Td(e));return[sf(t),cf(t),uf(t),Od(t)]},Fd,{resetFont:!1});function pf(e,t,n){var r=t.cloneNode(!0),o=Object.create(e,{target:{value:r},currentTarget:{value:r}});return r.value=n,"number"==typeof t.selectionStart&&"number"==typeof t.selectionEnd&&(r.selectionStart=t.selectionStart,r.selectionEnd=t.selectionEnd),r.setSelectionRange=function(){t.setSelectionRange.apply(t,arguments)},o}function mf(e,t,n,r){if(n){var o=t;"click"!==t.type?"file"===e.type||void 0===r?n(o):n(o=pf(t,e,r)):n(o=pf(t,e,""))}}function gf(e,t){if(e){e.focus(t);var n=(t||{}).cursor;if(n){var r=e.value.length;switch(n){case"start":e.setSelectionRange(0,0);break;case"end":e.setSelectionRange(r,r);break;default:e.setSelectionRange(0,r)}}}}var hf=t().forwardRef(function(n,r){var o,i,a,l=n.inputElement,s=n.children,c=n.prefixCls,u=n.prefix,d=n.suffix,f=n.addonBefore,p=n.addonAfter,m=n.className,g=n.style,h=n.disabled,v=n.readOnly,b=n.focused,y=n.triggerFocus,x=n.allowClear,C=n.value,w=n.handleReset,S=n.hidden,$=n.classes,E=n.classNames,O=n.dataAttrs,k=n.styles,I=n.components,j=n.onClear,P=null!=s?s:l,M=(null==I?void 0:I.affixWrapper)||"span",N=(null==I?void 0:I.groupWrapper)||"span",R=(null==I?void 0:I.wrapper)||"span",z=(null==I?void 0:I.groupAddon)||"span",B=(0,e.useRef)(null),_=function(e){return!!(e.prefix||e.suffix||e.allowClear)}(n),D=(0,e.cloneElement)(P,{value:C,className:A()(null===(o=P.props)||void 0===o?void 0:o.className,!_&&(null==E?void 0:E.variant))||null}),V=(0,e.useRef)(null);if(t().useImperativeHandle(r,function(){return{nativeElement:V.current||B.current}}),_){var W=null;if(x){var q=!h&&!v&&C,G="".concat(c,"-clear-icon"),X="object"===F(x)&&null!=x&&x.clearIcon?x.clearIcon:"✖";W=t().createElement("button",{type:"button",tabIndex:-1,onClick:function(e){null==w||w(e),null==j||j()},onMouseDown:function(e){return e.preventDefault()},className:A()(G,H(H({},"".concat(G,"-hidden"),!q),"".concat(G,"-has-suffix"),!!d))},X)}var K="".concat(c,"-affix-wrapper"),U=A()(K,H(H(H(H(H({},"".concat(c,"-disabled"),h),"".concat(K,"-disabled"),h),"".concat(K,"-focused"),b),"".concat(K,"-readonly"),v),"".concat(K,"-input-with-clear-btn"),d&&x&&C),null==$?void 0:$.affixWrapper,null==E?void 0:E.affixWrapper,null==E?void 0:E.variant),Y=(d||x)&&t().createElement("span",{className:A()("".concat(c,"-suffix"),null==E?void 0:E.suffix),style:null==k?void 0:k.suffix},W,d);D=t().createElement(M,T({className:U,style:null==k?void 0:k.affixWrapper,onClick:function(e){var t;null!==(t=B.current)&&void 0!==t&&t.contains(e.target)&&(null==y||y())}},null==O?void 0:O.affixWrapper,{ref:B}),u&&t().createElement("span",{className:A()("".concat(c,"-prefix"),null==E?void 0:E.prefix),style:null==k?void 0:k.prefix},u),D,Y)}if(function(e){return!(!e.addonBefore&&!e.addonAfter)}(n)){var Q="".concat(c,"-group"),Z="".concat(Q,"-addon"),J="".concat(Q,"-wrapper"),ee=A()("".concat(c,"-wrapper"),Q,null==$?void 0:$.wrapper,null==E?void 0:E.wrapper),te=A()(J,H({},"".concat(J,"-disabled"),h),null==$?void 0:$.group,null==E?void 0:E.groupWrapper);D=t().createElement(N,{className:te,ref:V},t().createElement(R,{className:ee},f&&t().createElement(z,{className:Z},f),D,p&&t().createElement(z,{className:Z},p)))}return t().cloneElement(D,{className:A()(null===(i=D.props)||void 0===i?void 0:i.className,m)||null,style:L(L({},null===(a=D.props)||void 0===a?void 0:a.style),g),hidden:S})});const vf=hf;var bf=["show"];function yf(t,n){return e.useMemo(function(){var e={};n&&(e.show="object"===F(n)&&n.formatter?n.formatter:!!n);var r=e=L(L({},e),t),o=r.show,i=D(r,bf);return L(L({},i),{},{show:!!o,showFormatter:"function"==typeof o?o:void 0,strategy:i.strategy||function(e){return e.length}})},[t,n])}var xf=["autoComplete","onChange","onFocus","onBlur","onPressEnter","onKeyDown","onKeyUp","prefixCls","disabled","htmlSize","className","maxLength","suffix","showCount","count","type","classes","classNames","styles","onCompositionStart","onCompositionEnd"],Cf=(0,e.forwardRef)(function(n,r){var o=n.autoComplete,i=n.onChange,a=n.onFocus,l=n.onBlur,s=n.onPressEnter,c=n.onKeyDown,u=n.onKeyUp,d=n.prefixCls,f=void 0===d?"rc-input":d,p=n.disabled,m=n.htmlSize,g=n.className,h=n.maxLength,v=n.suffix,b=n.showCount,y=n.count,x=n.type,C=void 0===x?"text":x,w=n.classes,S=n.classNames,$=n.styles,E=n.onCompositionStart,O=n.onCompositionEnd,k=D(n,xf),I=X((0,e.useState)(!1),2),j=I[0],P=I[1],M=(0,e.useRef)(!1),N=(0,e.useRef)(!1),R=(0,e.useRef)(null),z=(0,e.useRef)(null),F=function(e){R.current&&gf(R.current,e)},B=X(Gt(n.defaultValue,{value:n.value}),2),_=B[0],V=B[1],W=null==_?"":String(_),q=X((0,e.useState)(null),2),G=q[0],K=q[1],U=yf(y,b),Y=U.max||h,Q=U.strategy(W),Z=!!Y&&Q>Y;(0,e.useImperativeHandle)(r,function(){var e;return{focus:F,blur:function(){var e;null===(e=R.current)||void 0===e||e.blur()},setSelectionRange:function(e,t,n){var r;null===(r=R.current)||void 0===r||r.setSelectionRange(e,t,n)},select:function(){var e;null===(e=R.current)||void 0===e||e.select()},input:R.current,nativeElement:(null===(e=z.current)||void 0===e?void 0:e.nativeElement)||R.current}}),(0,e.useEffect)(function(){N.current&&(N.current=!1),P(function(e){return(!e||!p)&&e})},[p]);var J=function(e,t,n){var r,o,a=t;if(!M.current&&U.exceedFormatter&&U.max&&U.strategy(t)>U.max)t!==(a=U.exceedFormatter(t,{max:U.max}))&&K([(null===(r=R.current)||void 0===r?void 0:r.selectionStart)||0,(null===(o=R.current)||void 0===o?void 0:o.selectionEnd)||0]);else if("compositionEnd"===n.source)return;V(a),R.current&&mf(R.current,e,i,a)};(0,e.useEffect)(function(){var e;G&&(null===(e=R.current)||void 0===e||e.setSelectionRange.apply(e,ye(G)))},[G]);var ee,te=Z&&"".concat(f,"-out-of-range");return t().createElement(vf,T({},k,{prefixCls:f,className:A()(g,te),handleReset:function(e){V(""),F(),R.current&&mf(R.current,e,i)},value:W,focused:j,triggerFocus:F,suffix:function(){var e=Number(Y)>0;if(v||U.show){var n=U.showFormatter?U.showFormatter({value:W,count:Q,maxLength:Y}):"".concat(Q).concat(e?" / ".concat(Y):"");return t().createElement(t().Fragment,null,U.show&&t().createElement("span",{className:A()("".concat(f,"-show-count-suffix"),H({},"".concat(f,"-show-count-has-suffix"),!!v),null==S?void 0:S.count),style:L({},null==$?void 0:$.count)},n),v)}return null}(),disabled:p,classes:w,classNames:S,styles:$,ref:z}),(ee=ii(n,["prefixCls","onPressEnter","addonBefore","addonAfter","prefix","suffix","allowClear","defaultValue","showCount","count","classes","htmlSize","styles","classNames","onClear"]),t().createElement("input",T({autoComplete:o},ee,{onChange:function(e){J(e,e.target.value,{source:"change"})},onFocus:function(e){P(!0),null==a||a(e)},onBlur:function(e){N.current&&(N.current=!1),P(!1),null==l||l(e)},onKeyDown:function(e){s&&"Enter"===e.key&&!N.current&&(N.current=!0,s(e)),null==c||c(e)},onKeyUp:function(e){"Enter"===e.key&&(N.current=!1),null==u||u(e)},className:A()(f,H({},"".concat(f,"-disabled"),p),null==S?void 0:S.input),style:null==$?void 0:$.input,ref:R,size:m,type:C,onCompositionStart:function(e){M.current=!0,null==E||E(e)},onCompositionEnd:function(e){M.current=!1,J(e,e.currentTarget.value,{source:"compositionEnd"}),null==O||O(e)}}))))});const wf=Cf,Sf={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"};var $f=function(t,n){return e.createElement(_u,T({},t,{ref:n,icon:Sf}))};const Ef=e.forwardRef($f),Of=e=>{let n;return"object"==typeof e&&(null==e?void 0:e.clearIcon)?n=e:e&&(n={clearIcon:t().createElement(Ef,null)}),n};function kf(e,t,n){return A()({[`${e}-status-success`]:"success"===t,[`${e}-status-warning`]:"warning"===t,[`${e}-status-error`]:"error"===t,[`${e}-status-validating`]:"validating"===t,[`${e}-has-feedback`]:n})}const If=(e,t)=>t||e,jf=e=>{const[,,,,t]=Is();return t?`${e}-css-var`:""},Pf=(t,n,r)=>{var o,i;const{variant:a,[t]:l}=e.useContext(hi),s=e.useContext(fi),c=null==l?void 0:l.variant;let u;return u=void 0!==n?n:!1===r?"borderless":null!==(i=null!==(o=null!=s?s:c)&&void 0!==o?o:a)&&void 0!==i?i:"outlined",[u,gi.includes(u)]};function Mf(t,n){const r=(0,e.useRef)([]),o=()=>{r.current.push(setTimeout(()=>{var e,n,r,o;(null===(e=t.current)||void 0===e?void 0:e.input)&&"password"===(null===(n=t.current)||void 0===n?void 0:n.input.getAttribute("type"))&&(null===(r=t.current)||void 0===r?void 0:r.input.hasAttribute("value"))&&(null===(o=t.current)||void 0===o||o.input.removeAttribute("value"))}))};return(0,e.useEffect)(()=>(n&&o(),()=>r.current.forEach(e=>{e&&clearTimeout(e)})),[]),o}const Nf=(0,e.forwardRef)((n,r)=>{const{prefixCls:o,bordered:i=!0,status:a,size:l,disabled:s,onBlur:c,onFocus:u,suffix:d,allowClear:f,addonAfter:p,addonBefore:m,className:g,style:h,styles:v,rootClassName:b,onChange:y,classNames:x,variant:C,_skipAddonWarning:w}=n,S=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(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n}(n,["prefixCls","bordered","status","size","disabled","onBlur","onFocus","suffix","allowClear","addonAfter","addonBefore","className","style","styles","rootClassName","onChange","classNames","variant","_skipAddonWarning"]),{getPrefixCls:$,direction:E,allowClear:O,autoComplete:k,className:I,style:j,classNames:P,styles:M}=yi("input"),N=$("input",o),R=(0,e.useRef)(null),z=jf(N),[T,F,B]=df(N,b),[H]=ff(N,z),{compactSize:_,compactItemClassnames:L}=Ts(N,E),D=Si(e=>{var t;return null!==(t=null!=l?l:_)&&void 0!==t?t:e}),V=t().useContext(yu),W=null!=s?s:V,{status:q,hasFeedback:G,feedbackIcon:X}=(0,e.useContext)(ui),K=If(q,a),U=function(e){return!!(e.prefix||e.suffix||e.allowClear||e.showCount)}(n)||!!G;(0,e.useRef)(U);const Y=Mf(R,!0),Q=(G||d)&&t().createElement(t().Fragment,null,d,G&&X),Z=Of(null!=f?f:O),[J,ee]=Pf("input",C,i);return T(H(t().createElement(wf,Object.assign({ref:fe(r,R),prefixCls:N,autoComplete:k},S,{disabled:W,onBlur:e=>{Y(),null==c||c(e)},onFocus:e=>{Y(),null==u||u(e)},style:Object.assign(Object.assign({},j),h),styles:Object.assign(Object.assign({},M),v),suffix:Q,allowClear:Z,className:A()(g,b,B,z,L,I),onChange:e=>{Y(),null==y||y(e)},addonBefore:m&&t().createElement(Hs,{form:!0,space:!0},m),addonAfter:p&&t().createElement(Hs,{form:!0,space:!0},p),classNames:Object.assign(Object.assign(Object.assign({},x),P),{input:A()({[`${N}-sm`]:"small"===D,[`${N}-lg`]:"large"===D,[`${N}-rtl`]:"rtl"===E},null==x?void 0:x.input,P.input,F),variant:A()({[`${N}-${J}`]:ee},kf(N,K)),affixWrapper:A()({[`${N}-affix-wrapper-sm`]:"small"===D,[`${N}-affix-wrapper-lg`]:"large"===D,[`${N}-affix-wrapper-rtl`]:"rtl"===E},F),wrapper:A()({[`${N}-group-rtl`]:"rtl"===E},F),groupWrapper:A()({[`${N}-group-wrapper-sm`]:"small"===D,[`${N}-group-wrapper-lg`]:"large"===D,[`${N}-group-wrapper-rtl`]:"rtl"===E,[`${N}-group-wrapper-${J}`]:ee},kf(`${N}-group-wrapper`,K,G),F)})}))))}),Rf=Nf;var Af="".concat("accept acceptCharset accessKey action allowFullScreen allowTransparency\n alt async autoComplete autoFocus autoPlay capture cellPadding cellSpacing challenge\n charSet checked classID className colSpan cols content contentEditable contextMenu\n controls coords crossOrigin data dateTime default defer dir disabled download draggable\n encType form formAction formEncType formMethod formNoValidate formTarget frameBorder\n headers height hidden high href hrefLang htmlFor httpEquiv icon id inputMode integrity\n is keyParams keyType kind label lang list loop low manifest marginHeight marginWidth max maxLength media\n mediaGroup method min minLength multiple muted name noValidate nonce open\n optimum pattern placeholder poster preload radioGroup readOnly rel required\n reversed role rowSpan rows sandbox scope scoped scrolling seamless selected\n shape size sizes span spellCheck src srcDoc srcLang srcSet start step style\n summary tabIndex target title type useMap value width wmode wrap"," ").concat("onCopy onCut onPaste onCompositionEnd onCompositionStart onCompositionUpdate onKeyDown\n onKeyPress onKeyUp onFocus onBlur onChange onInput onSubmit onClick onContextMenu onDoubleClick\n onDrag onDragEnd onDragEnter onDragExit onDragLeave onDragOver onDragStart onDrop onMouseDown\n onMouseEnter onMouseLeave onMouseMove onMouseOut onMouseOver onMouseUp onSelect onTouchCancel\n onTouchEnd onTouchMove onTouchStart onScroll onWheel onAbort onCanPlay onCanPlayThrough\n onDurationChange onEmptied onEncrypted onEnded onError onLoadedData onLoadedMetadata\n onLoadStart onPause onPlay onPlaying onProgress onRateChange onSeeked onSeeking onStalled onSuspend onTimeUpdate onVolumeChange onWaiting onLoad onError").split(/[\s\n]+/);function zf(e,t){return 0===e.indexOf(t)}function Tf(e){var t,n=arguments.length>1&&void 0!==arguments[1]&&arguments[1];t=!1===n?{aria:!0,data:!0,attr:!0}:!0===n?{aria:!0}:L({},n);var r={};return Object.keys(e).forEach(function(n){(t.aria&&("role"===n||zf(n,"aria-"))||t.data&&zf(n,"data-")||t.attr&&Af.includes(n))&&(r[n]=e[n])}),r}const Ff=js(["Input","OTP"],e=>(e=>{const{componentCls:t,paddingXS:n}=e;return{[t]:{display:"inline-flex",alignItems:"center",flexWrap:"nowrap",columnGap:n,[`${t}-input-wrapper`]:{position:"relative",[`${t}-mask-icon`]:{position:"absolute",zIndex:"1",top:"50%",right:"50%",transform:"translate(50%, -50%)",pointerEvents:"none"},[`${t}-mask-input`]:{color:"transparent",caretColor:e.colorText},[`${t}-mask-input[type=number]::-webkit-inner-spin-button`]:{"-webkit-appearance":"none",margin:0},[`${t}-mask-input[type=number]`]:{"-moz-appearance":"textfield"}},"&-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}}}})(pl(e,Td(e))),Fd);const Bf=e.forwardRef((t,n)=>{const{className:r,value:o,onChange:i,onActiveChange:a,index:l,mask:s}=t,c=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(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n}(t,["className","value","onChange","onActiveChange","index","mask"]),{getPrefixCls:u}=e.useContext(hi),d=u("otp"),f="string"==typeof s?s:o,p=e.useRef(null);e.useImperativeHandle(n,()=>p.current);const m=()=>{Rn(()=>{var e;const t=null===(e=p.current)||void 0===e?void 0:e.input;document.activeElement===t&&t&&t.select()})};return e.createElement("span",{className:`${d}-input-wrapper`,role:"presentation"},s&&""!==o&&void 0!==o&&e.createElement("span",{className:`${d}-mask-icon`,"aria-hidden":"true"},f),e.createElement(Rf,Object.assign({"aria-label":`OTP Input ${l+1}`,type:!0===s?"password":"text"},c,{ref:p,value:o,onInput:e=>{i(l,e.target.value)},onFocus:m,onKeyDown:e=>{const{key:t,ctrlKey:n,metaKey:r}=e;"ArrowLeft"===t?a(l-1):"ArrowRight"===t?a(l+1):"z"===t&&(n||r)?e.preventDefault():"Backspace"!==t||o||a(l-1),m()},onMouseDown:m,onMouseUp:m,className:A()(r,{[`${d}-mask-input`]:s})})))});function Hf(e){return(e||"").split("")}const _f=t=>{const{index:n,prefixCls:r,separator:o}=t,i="function"==typeof o?o(n):o;return i?e.createElement("span",{className:`${r}-separator`},i):null},Lf=e.forwardRef((t,n)=>{const{prefixCls:r,length:o=6,size:i,defaultValue:a,value:l,onChange:s,formatter:c,separator:u,variant:d,disabled:f,status:p,autoFocus:m,mask:g,type:h,onInput:v,inputMode:b}=t,y=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(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n}(t,["prefixCls","length","size","defaultValue","value","onChange","formatter","separator","variant","disabled","status","autoFocus","mask","type","onInput","inputMode"]),{getPrefixCls:x,direction:C}=e.useContext(hi),w=x("otp",r),S=Tf(y,{aria:!0,data:!0,attr:!0}),[$,E,O]=Ff(w),k=Si(e=>null!=i?i:e),I=e.useContext(ui),j=If(I.status,p),P=e.useMemo(()=>Object.assign(Object.assign({},I),{status:j,hasFeedback:!1,feedbackIcon:null}),[I,j]),M=e.useRef(null),N=e.useRef({});e.useImperativeHandle(n,()=>({focus:()=>{var e;null===(e=N.current[0])||void 0===e||e.focus()},blur:()=>{var e;for(let t=0;t<o;t+=1)null===(e=N.current[t])||void 0===e||e.blur()},nativeElement:M.current}));const R=e=>c?c(e):e,[z,T]=e.useState(()=>Hf(R(a||"")));e.useEffect(()=>{void 0!==l&&T(Hf(l))},[l]);const F=At(e=>{T(e),v&&v(e),s&&e.length===o&&e.every(e=>e)&&e.some((e,t)=>z[t]!==e)&&s(e.join(""))}),B=At((e,t)=>{let n=ye(z);for(let t=0;t<e;t+=1)n[t]||(n[t]="");t.length<=1?n[e]=t:n=n.slice(0,e).concat(Hf(t)),n=n.slice(0,o);for(let e=n.length-1;e>=0&&!n[e];e-=1)n.pop();const r=R(n.map(e=>e||" ").join(""));return n=Hf(r).map((e,t)=>" "!==e||n[t]?e:n[t]),n}),H=(e,t)=>{var n;const r=B(e,t),i=Math.min(e+t.length,o-1);i!==e&&void 0!==r[e]&&(null===(n=N.current[i])||void 0===n||n.focus()),F(r)},_=e=>{var t;null===(t=N.current[e])||void 0===t||t.focus()},L={variant:d,disabled:f,status:j,mask:g,type:h,inputMode:b};return $(e.createElement("div",Object.assign({},S,{ref:M,className:A()(w,{[`${w}-sm`]:"small"===k,[`${w}-lg`]:"large"===k,[`${w}-rtl`]:"rtl"===C},O,E),role:"group"}),e.createElement(ui.Provider,{value:P},Array.from({length:o}).map((t,n)=>{const r=`otp-${n}`,i=z[n]||"";return e.createElement(e.Fragment,{key:r},e.createElement(Bf,Object.assign({ref:e=>{N.current[n]=e},index:n,size:k,htmlSize:1,className:`${w}-input`,onChange:H,value:i,onActiveChange:_,autoFocus:0===n&&m},L)),n<o-1&&e.createElement(_f,{separator:u,index:n,prefixCls:w}))}))))}),Df={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M942.2 486.2Q889.47 375.11 816.7 305l-50.88 50.88C807.31 395.53 843.45 447.4 874.7 512 791.5 684.2 673.4 766 512 766q-72.67 0-133.87-22.38L323 798.75Q408 838 512 838q288.3 0 430.2-300.3a60.29 60.29 0 000-51.5zm-63.57-320.64L836 122.88a8 8 0 00-11.32 0L715.31 232.2Q624.86 186 512 186q-288.3 0-430.2 300.3a60.3 60.3 0 000 51.5q56.69 119.4 136.5 191.41L112.48 835a8 8 0 000 11.31L155.17 889a8 8 0 0011.31 0l712.15-712.12a8 8 0 000-11.32zM149.3 512C232.6 339.8 350.7 258 512 258c54.54 0 104.13 9.36 149.12 28.39l-70.3 70.3a176 176 0 00-238.13 238.13l-83.42 83.42C223.1 637.49 183.3 582.28 149.3 512zm246.7 0a112.11 112.11 0 01146.2-106.69L401.31 546.2A112 112 0 01396 512z"}},{tag:"path",attrs:{d:"M508 624c-3.46 0-6.87-.16-10.25-.47l-52.82 52.82a176.09 176.09 0 00227.42-227.42l-52.82 52.82c.31 3.38.47 6.79.47 10.25a111.94 111.94 0 01-112 112z"}}]},name:"eye-invisible",theme:"outlined"};var Vf=function(t,n){return e.createElement(_u,T({},t,{ref:n,icon:Df}))};const Wf=e.forwardRef(Vf),qf={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"};var Gf=function(t,n){return e.createElement(_u,T({},t,{ref:n,icon:qf}))};const Xf=e.forwardRef(Gf);const Kf=t=>t?e.createElement(Xf,null):e.createElement(Wf,null),Uf={click:"onClick",hover:"onMouseOver"},Yf=e.forwardRef((t,n)=>{const{disabled:r,action:o="click",visibilityToggle:i=!0,iconRender:a=Kf,suffix:l}=t,s=e.useContext(yu),c=null!=r?r:s,u="object"==typeof i&&void 0!==i.visible,[d,f]=(0,e.useState)(()=>!!u&&i.visible),p=(0,e.useRef)(null);e.useEffect(()=>{u&&f(i.visible)},[u,i]);const m=Mf(p),g=()=>{var e;if(c)return;d&&m();const t=!d;f(t),"object"==typeof i&&(null===(e=i.onVisibleChange)||void 0===e||e.call(i,t))},{className:h,prefixCls:v,inputPrefixCls:b,size:y}=t,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(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n}(t,["className","prefixCls","inputPrefixCls","size"]),{getPrefixCls:C}=e.useContext(hi),w=C("input",b),S=C("input-password",v),$=i&&(t=>{const n=Uf[o]||"",r=a(d),i={[n]:g,className:`${t}-icon`,key:"passwordIcon",onMouseDown:e=>{e.preventDefault()},onMouseUp:e=>{e.preventDefault()}};return e.cloneElement(e.isValidElement(r)?r:e.createElement("span",null,r),i)})(S),E=A()(S,h,{[`${S}-${y}`]:!!y}),O=Object.assign(Object.assign({},ii(x,["suffix","iconRender","visibilityToggle"])),{type:d?"text":"password",className:E,prefixCls:w,suffix:e.createElement(e.Fragment,null,$,l)});return y&&(O.size=y),e.createElement(Rf,Object.assign({ref:fe(n,p)},O))}),Qf={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"};var Zf=function(t,n){return e.createElement(_u,T({},t,{ref:n,icon:Qf}))};const Jf=e.forwardRef(Zf);const ep=e.forwardRef((t,n)=>{const{prefixCls:r,inputPrefixCls:o,className:i,size:a,suffix:l,enterButton:s=!1,addonAfter:c,loading:u,disabled:d,onSearch:f,onChange:p,onCompositionStart:m,onCompositionEnd:g,variant:h,onPressEnter:v}=t,b=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n}(t,["prefixCls","inputPrefixCls","className","size","suffix","enterButton","addonAfter","loading","disabled","onSearch","onChange","onCompositionStart","onCompositionEnd","variant","onPressEnter"]),{getPrefixCls:y,direction:x}=e.useContext(hi),C=e.useRef(!1),w=y("input-search",r),S=y("input",o),{compactSize:$}=Ts(w,x),E=Si(e=>{var t;return null!==(t=null!=a?a:$)&&void 0!==t?t:e}),O=e.useRef(null),k=e=>{var t;document.activeElement===(null===(t=O.current)||void 0===t?void 0:t.input)&&e.preventDefault()},I=e=>{var t,n;f&&f(null===(n=null===(t=O.current)||void 0===t?void 0:t.input)||void 0===n?void 0:n.value,e,{source:"input"})},j="boolean"==typeof s?e.createElement(Jf,null):null,P=`${w}-button`;let M;const N=s||{},R=N.type&&!0===N.type.__ANT_BUTTON;M=R||"button"===N.type?sc(N,Object.assign({onMouseDown:k,onClick:e=>{var t,n;null===(n=null===(t=null==N?void 0:N.props)||void 0===t?void 0:t.onClick)||void 0===n||n.call(t,e),I(e)},key:"enterButton"},R?{className:P,size:E}:{})):e.createElement(Ad,{className:P,color:s?"primary":"default",size:E,disabled:d,key:"enterButton",onMouseDown:k,onClick:I,loading:u,icon:j,variant:"borderless"===h||"filled"===h||"underlined"===h?"text":s?"solid":void 0},s),c&&(M=[M,sc(c,{key:"addonAfter"})]);const z=A()(w,{[`${w}-rtl`]:"rtl"===x,[`${w}-${E}`]:!!E,[`${w}-with-button`]:!!s},i),T=Object.assign(Object.assign({},b),{className:z,prefixCls:S,type:"search",size:E,variant:h,onPressEnter:e=>{C.current||u||(null==v||v(e),I(e))},onCompositionStart:e=>{C.current=!0,null==m||m(e)},onCompositionEnd:e=>{C.current=!1,null==g||g(e)},addonAfter:M,suffix:l,onChange:e=>{(null==e?void 0:e.target)&&"click"===e.type&&f&&f(e.target.value,e,{source:"clear"}),null==p||p(e)},disabled:d,_skipAddonWarning:!0});return e.createElement(Rf,Object.assign({ref:fe(O,n)},T))});var tp,np=["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"],rp={};var op=["prefixCls","defaultValue","value","autoSize","onResize","className","style","disabled","onChange","onInternalAutoSize"],ip=e.forwardRef(function(t,n){var r=t,o=r.prefixCls,i=r.defaultValue,a=r.value,l=r.autoSize,s=r.onResize,c=r.className,u=r.style,d=r.disabled,f=r.onChange,p=(r.onInternalAutoSize,D(r,op)),m=X(Gt(i,{value:a,postState:function(e){return null!=e?e:""}}),2),g=m[0],h=m[1],v=e.useRef();e.useImperativeHandle(n,function(){return{textArea:v.current}});var b=X(e.useMemo(function(){return l&&"object"===F(l)?[l.minRows,l.maxRows]:[]},[l]),2),y=b[0],x=b[1],C=!!l,w=X(e.useState(2),2),S=w[0],$=w[1],E=X(e.useState(),2),O=E[0],k=E[1],I=function(){$(0)};Se(function(){C&&I()},[a,y,x,C]),Se(function(){if(0===S)$(1);else if(1===S){var e=function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null;tp||((tp=document.createElement("textarea")).setAttribute("tab-index","-1"),tp.setAttribute("aria-hidden","true"),tp.setAttribute("name","hiddenTextarea"),document.body.appendChild(tp)),e.getAttribute("wrap")?tp.setAttribute("wrap",e.getAttribute("wrap")):tp.removeAttribute("wrap");var o=function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=e.getAttribute("id")||e.getAttribute("data-reactid")||e.getAttribute("name");if(t&&rp[n])return rp[n];var r=window.getComputedStyle(e),o=r.getPropertyValue("box-sizing")||r.getPropertyValue("-moz-box-sizing")||r.getPropertyValue("-webkit-box-sizing"),i=parseFloat(r.getPropertyValue("padding-bottom"))+parseFloat(r.getPropertyValue("padding-top")),a=parseFloat(r.getPropertyValue("border-bottom-width"))+parseFloat(r.getPropertyValue("border-top-width")),l={sizingStyle:np.map(function(e){return"".concat(e,":").concat(r.getPropertyValue(e))}).join(";"),paddingSize:i,borderSize:a,boxSizing:o};return t&&n&&(rp[n]=l),l}(e,t),i=o.paddingSize,a=o.borderSize,l=o.boxSizing,s=o.sizingStyle;tp.setAttribute("style","".concat(s,";").concat("\n min-height:0 !important;\n max-height:none !important;\n height:0 !important;\n visibility:hidden !important;\n overflow:hidden !important;\n position:absolute !important;\n z-index:-1000 !important;\n top:0 !important;\n right:0 !important;\n pointer-events: none !important;\n")),tp.value=e.value||e.placeholder||"";var c,u=void 0,d=void 0,f=tp.scrollHeight;if("border-box"===l?f+=a:"content-box"===l&&(f-=i),null!==n||null!==r){tp.value=" ";var p=tp.scrollHeight-i;null!==n&&(u=p*n,"border-box"===l&&(u=u+i+a),f=Math.max(u,f)),null!==r&&(d=p*r,"border-box"===l&&(d=d+i+a),c=f>d?"":"hidden",f=Math.min(d,f))}var m={height:f,overflowY:c,resize:"none"};return u&&(m.minHeight=u),d&&(m.maxHeight=d),m}(v.current,!1,y,x);$(2),k(e)}},[S]);var j=e.useRef(),P=function(){Rn.cancel(j.current)};e.useEffect(function(){return P},[]);var M=C?O:null,N=L(L({},u),M);return 0!==S&&1!==S||(N.overflowY="hidden",N.overflowX="hidden"),e.createElement(Mt,{onResize:function(e){2===S&&(null==s||s(e),l&&(P(),j.current=Rn(function(){I()})))},disabled:!(l||s)},e.createElement("textarea",T({},p,{ref:v,style:N,className:A()(o,c,H({},"".concat(o,"-disabled"),d)),disabled:d,value:g,onChange:function(e){h(e.target.value),null==f||f(e)}})))});const ap=ip;var lp=["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"],sp=t().forwardRef(function(n,r){var o,i=n.defaultValue,a=n.value,l=n.onFocus,s=n.onBlur,c=n.onChange,u=n.allowClear,d=n.maxLength,f=n.onCompositionStart,p=n.onCompositionEnd,m=n.suffix,g=n.prefixCls,h=void 0===g?"rc-textarea":g,v=n.showCount,b=n.count,y=n.className,x=n.style,C=n.disabled,w=n.hidden,S=n.classNames,$=n.styles,E=n.onResize,O=n.onClear,k=n.onPressEnter,I=n.readOnly,j=n.autoSize,P=n.onKeyDown,M=D(n,lp),N=X(Gt(i,{value:a,defaultValue:i}),2),R=N[0],z=N[1],F=null==R?"":String(R),B=X(t().useState(!1),2),_=B[0],V=B[1],W=t().useRef(!1),q=X(t().useState(null),2),G=q[0],K=q[1],U=(0,e.useRef)(null),Y=(0,e.useRef)(null),Q=function(){var e;return null===(e=Y.current)||void 0===e?void 0:e.textArea},Z=function(){Q().focus()};(0,e.useImperativeHandle)(r,function(){var e;return{resizableTextArea:Y.current,focus:Z,blur:function(){Q().blur()},nativeElement:(null===(e=U.current)||void 0===e?void 0:e.nativeElement)||Q()}}),(0,e.useEffect)(function(){V(function(e){return!C&&e})},[C]);var J=X(t().useState(null),2),ee=J[0],te=J[1];t().useEffect(function(){var e;ee&&(e=Q()).setSelectionRange.apply(e,ye(ee))},[ee]);var ne,re=yf(b,v),oe=null!==(o=re.max)&&void 0!==o?o:d,ie=Number(oe)>0,ae=re.strategy(F),le=!!oe&&ae>oe,se=function(e,t){var n=t;!W.current&&re.exceedFormatter&&re.max&&re.strategy(t)>re.max&&t!==(n=re.exceedFormatter(t,{max:re.max}))&&te([Q().selectionStart||0,Q().selectionEnd||0]),z(n),mf(e.currentTarget,e,c,n)},ce=m;re.show&&(ne=re.showFormatter?re.showFormatter({value:F,count:ae,maxLength:oe}):"".concat(ae).concat(ie?" / ".concat(oe):""),ce=t().createElement(t().Fragment,null,ce,t().createElement("span",{className:A()("".concat(h,"-data-count"),null==S?void 0:S.count),style:null==$?void 0:$.count},ne)));var ue=!j&&!v&&!u;return t().createElement(vf,{ref:U,value:F,allowClear:u,handleReset:function(e){z(""),Z(),mf(Q(),e,c)},suffix:ce,prefixCls:h,classNames:L(L({},S),{},{affixWrapper:A()(null==S?void 0:S.affixWrapper,H(H({},"".concat(h,"-show-count"),v),"".concat(h,"-textarea-allow-clear"),u))}),disabled:C,focused:_,className:A()(y,le&&"".concat(h,"-out-of-range")),style:L(L({},x),G&&!ue?{height:"auto"}:{}),dataAttrs:{affixWrapper:{"data-count":"string"==typeof ne?ne:void 0}},hidden:w,readOnly:I,onClear:O},t().createElement(ap,T({},M,{autoSize:j,maxLength:d,onKeyDown:function(e){"Enter"===e.key&&k&&k(e),null==P||P(e)},onChange:function(e){se(e,e.target.value)},onFocus:function(e){V(!0),null==l||l(e)},onBlur:function(e){V(!1),null==s||s(e)},onCompositionStart:function(e){W.current=!0,null==f||f(e)},onCompositionEnd:function(e){W.current=!1,se(e,e.currentTarget.value),null==p||p(e)},className:A()(null==S?void 0:S.textarea),style:L(L({},null==$?void 0:$.textarea),{},{resize:null==x?void 0:x.resize}),disabled:C,prefixCls:h,onResize:function(e){var t;null==E||E(e),null!==(t=Q())&&void 0!==t&&t.style.height&&K(!0)},ref:Y,readOnly:I})))});const cp=sp,up=js(["Input","TextArea"],e=>(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}-data-count`]:{position:"absolute",bottom:e.calc(e.fontSize).mul(e.lineHeight).mul(-1).equal(),insetInlineEnd:0,color:e.colorTextDescription,whiteSpace:"nowrap",pointerEvents:"none"}},[`\n &-allow-clear > ${t},\n &-affix-wrapper${r}-has-feedback ${t}\n `]:{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-rtl`]:{[`${t}-suffix`]:{[`${t}-data-count`]:{direction:"ltr",insetInlineStart:0}}},[`&-affix-wrapper${t}-affix-wrapper-sm`]:{[`${t}-suffix`]:{[`${t}-clear-icon`]:{insetInlineEnd:e.paddingInlineSM}}}}}})(pl(e,Td(e))),Fd,{resetFont:!1});const dp=(0,e.forwardRef)((t,n)=>{var r;const{prefixCls:o,bordered:i=!0,size:a,disabled:l,status:s,allowClear:c,classNames:u,rootClassName:d,className:f,style:p,styles:m,variant:g,showCount:h,onMouseDown:v,onResize:b}=t,y=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(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n}(t,["prefixCls","bordered","size","disabled","status","allowClear","classNames","rootClassName","className","style","styles","variant","showCount","onMouseDown","onResize"]),{getPrefixCls:x,direction:C,allowClear:w,autoComplete:S,className:$,style:E,classNames:O,styles:k}=yi("textArea"),I=e.useContext(yu),j=null!=l?l:I,{status:P,hasFeedback:M,feedbackIcon:N}=e.useContext(ui),R=If(P,s),z=e.useRef(null);e.useImperativeHandle(n,()=>{var e;return{resizableTextArea:null===(e=z.current)||void 0===e?void 0:e.resizableTextArea,focus:e=>{var t,n;gf(null===(n=null===(t=z.current)||void 0===t?void 0:t.resizableTextArea)||void 0===n?void 0:n.textArea,e)},blur:()=>{var e;return null===(e=z.current)||void 0===e?void 0:e.blur()}}});const T=x("input",o),F=jf(T),[B,H,_]=df(T,d),[L]=up(T,F),{compactSize:D,compactItemClassnames:V}=Ts(T,C),W=Si(e=>{var t;return null!==(t=null!=a?a:D)&&void 0!==t?t:e}),[q,G]=Pf("textArea",g,i),X=Of(null!=c?c:w),[K,U]=e.useState(!1),[Y,Q]=e.useState(!1);return B(L(e.createElement(cp,Object.assign({autoComplete:S},y,{style:Object.assign(Object.assign({},E),p),styles:Object.assign(Object.assign({},k),m),disabled:j,allowClear:X,className:A()(_,F,f,d,V,$,Y&&`${T}-textarea-affix-wrapper-resize-dirty`),classNames:Object.assign(Object.assign(Object.assign({},u),O),{textarea:A()({[`${T}-sm`]:"small"===W,[`${T}-lg`]:"large"===W},H,null==u?void 0:u.textarea,O.textarea,K&&`${T}-mouse-active`),variant:A()({[`${T}-${q}`]:G},kf(T,R)),affixWrapper:A()(`${T}-textarea-affix-wrapper`,{[`${T}-affix-wrapper-rtl`]:"rtl"===C,[`${T}-affix-wrapper-sm`]:"small"===W,[`${T}-affix-wrapper-lg`]:"large"===W,[`${T}-textarea-show-count`]:h||(null===(r=t.count)||void 0===r?void 0:r.show)},H)}),prefixCls:T,suffix:M&&e.createElement("span",{className:`${T}-textarea-suffix`},N),showCount:h,ref:z,onResize:e=>{var t,n;if(null==b||b(e),K&&"function"==typeof getComputedStyle){const e=null===(n=null===(t=z.current)||void 0===t?void 0:t.nativeElement)||void 0===n?void 0:n.querySelector("textarea");e&&"both"===getComputedStyle(e).resize&&Q(!0)}},onMouseDown:e=>{U(!0),null==v||v(e);const t=()=>{U(!1),document.removeEventListener("mouseup",t)};document.addEventListener("mouseup",t)}}))))}),fp=dp,pp=Rf;pp.Group=t=>{const{getPrefixCls:n,direction:r}=(0,e.useContext)(hi),{prefixCls:o,className:i}=t,a=n("input-group",o),l=n("input"),[s,c,u]=ff(l),d=A()(a,u,{[`${a}-lg`]:"large"===t.size,[`${a}-sm`]:"small"===t.size,[`${a}-compact`]:t.compact,[`${a}-rtl`]:"rtl"===r},c,i),f=(0,e.useContext)(ui),p=(0,e.useMemo)(()=>Object.assign(Object.assign({},f),{isFormItemInput:!1}),[f]);return s(e.createElement("span",{className:d,style:t.style,onMouseEnter:t.onMouseEnter,onMouseLeave:t.onMouseLeave,onFocus:t.onFocus,onBlur:t.onBlur},e.createElement(ui.Provider,{value:p},t.children)))},pp.Search=ep,pp.TextArea=fp,pp.Password=Yf,pp.OTP=Lf;const mp=pp,{useRef:gp,useEffect:hp}=wp.element,vp=t=>{let n=gp(null);const{arg:r,argValue:o,styleConfig:i}=t,a=I(r.type),l="string"==typeof o.value?o.value:"",s="StringValue"===t.argValue.kind?i.colors.string:i.colors.number;return(0,e.createElement)("span",{style:{color:s}},"String"===a.name?'"':"",(0,e.createElement)(mp,{name:r.name,style:{width:"15ch",color:s,minHeight:"16px"},size:"small",ref:e=>{n=e},type:"text",onChange:e=>{var n;n=e,t.setArgValue(n,!0)},value:l}),"String"===a.name?'"':"")},{isInputObjectType:bp,isLeafType:yp}=wpGraphiQL.GraphQL,{useState:xp}=wp.element,Cp=t=>{let n;const r=()=>t.selection.fields.find(e=>e.name.value===t.arg.name),{arg:o,parentField:i}=t,a=r();return(0,e.createElement)(tv,{argValue:a?a.value:null,arg:o,parentField:i,addArg:()=>{const{selection:e,arg:r,getDefaultScalarArgValue:o,parentField:i,makeDefaultArg:a}=t,l=I(r.type);let s=null;if(n)s=n;else if(bp(l)){const e=l.getFields();s={kind:"ObjectField",name:{kind:"Name",value:r.name},value:{kind:"ObjectValue",fields:P(o,a,i,Object.keys(e).map(t=>e[t]))}}}else yp(l)&&(s={kind:"ObjectField",name:{kind:"Name",value:r.name},value:o(i,r,l)});if(s)return t.modifyFields([...e.fields||[],s],!0);console.error("Unable to add arg for argType",l)},removeArg:()=>{const{selection:e}=t,o=r();n=o,t.modifyFields(e.fields.filter(e=>e!==o),!0)},setArgFields:e=>t.modifyFields(t.selection.fields.map(n=>n.name.value===t.arg.name?{...n,value:{kind:"ObjectValue",fields:e}}:n),!0),setArgValue:(e,n)=>{let o=!1,i=!1,a=!1;try{"VariableDefinition"===e.kind?i=!0:null==e?o=!0:"string"==typeof e.kind&&(a=!0)}catch(e){}const{selection:l}=t,s=r();if(!s)return void console.error("missing arg selection when setting arg value");const c=I(t.arg.type);if(!(yp(c)||i||o||a))return void console.warn("Unable to handle non leaf types in InputArgView.setArgValue",e);let u,d;return null==e?d=null:!e.target&&e.kind&&"VariableDefinition"===e.kind?(u=e,d=u.variable):"string"==typeof e.kind?d=e:e.target&&"string"==typeof e.target.value&&(u=e.target.value,d=j(c,u)),t.modifyFields((l.fields||[]).map(e=>e===s?{...e,value:d}:e),n)},getDefaultScalarArgValue:t.getDefaultScalarArgValue,makeDefaultArg:t.makeDefaultArg,onRunOperation:t.onRunOperation,styleConfig:t.styleConfig,onCommit:t.onCommit,definition:t.definition})},Sp=function(t){var n=t.className,r=t.customizeIcon,o=t.customizeIconProps,i=t.children,a=t.onMouseDown,l=t.onClick,s="function"==typeof r?r(o):r;return e.createElement("span",{className:n,onMouseDown:function(e){e.preventDefault(),null==a||a(e)},style:{userSelect:"none",WebkitUserSelect:"none"},unselectable:"on",onClick:l,"aria-hidden":!0},void 0!==s?s:e.createElement("span",{className:A()(n.split(/\s+/).map(function(e){return"".concat(e,"-icon")}))},i))};var $p=e.createContext(null);function Ep(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:250,n=e.useRef(null),r=e.useRef(null);return e.useEffect(function(){return function(){window.clearTimeout(r.current)}},[]),[function(){return n.current},function(e){(e||null===n.current)&&(n.current=e),window.clearTimeout(r.current),r.current=window.setTimeout(function(){n.current=null},t)}]}var Op={MAC_ENTER:3,BACKSPACE:8,TAB:9,NUM_CENTER:12,ENTER:13,SHIFT:16,CTRL:17,ALT:18,PAUSE:19,CAPS_LOCK:20,ESC:27,SPACE:32,PAGE_UP:33,PAGE_DOWN:34,END:35,HOME:36,LEFT:37,UP:38,RIGHT:39,DOWN:40,PRINT_SCREEN:44,INSERT:45,DELETE:46,ZERO:48,ONE:49,TWO:50,THREE:51,FOUR:52,FIVE:53,SIX:54,SEVEN:55,EIGHT:56,NINE:57,QUESTION_MARK:63,A:65,B:66,C:67,D:68,E:69,F:70,G:71,H:72,I:73,J:74,K:75,L:76,M:77,N:78,O:79,P:80,Q:81,R:82,S:83,T:84,U:85,V:86,W:87,X:88,Y:89,Z:90,META:91,WIN_KEY_RIGHT:92,CONTEXT_MENU:93,NUM_ZERO:96,NUM_ONE:97,NUM_TWO:98,NUM_THREE:99,NUM_FOUR:100,NUM_FIVE:101,NUM_SIX:102,NUM_SEVEN:103,NUM_EIGHT:104,NUM_NINE:105,NUM_MULTIPLY:106,NUM_PLUS:107,NUM_MINUS:109,NUM_PERIOD:110,NUM_DIVISION:111,F1:112,F2:113,F3:114,F4:115,F5:116,F6:117,F7:118,F8:119,F9:120,F10:121,F11:122,F12:123,NUMLOCK:144,SEMICOLON:186,DASH:189,EQUALS:187,COMMA:188,PERIOD:190,SLASH:191,APOSTROPHE:192,SINGLE_QUOTE:222,OPEN_SQUARE_BRACKET:219,BACKSLASH:220,CLOSE_SQUARE_BRACKET:221,WIN_KEY:224,MAC_FF_META:224,WIN_IME:229,isTextModifyingKeyEvent:function(e){var t=e.keyCode;if(e.altKey&&!e.ctrlKey||e.metaKey||t>=Op.F1&&t<=Op.F12)return!1;switch(t){case Op.ALT:case Op.CAPS_LOCK:case Op.CONTEXT_MENU:case Op.CTRL:case Op.DOWN:case Op.END:case Op.ESC:case Op.HOME:case Op.INSERT:case Op.LEFT:case Op.MAC_FF_META:case Op.META:case Op.NUMLOCK:case Op.NUM_CENTER:case Op.PAGE_DOWN:case Op.PAGE_UP:case Op.PAUSE:case Op.PRINT_SCREEN:case Op.RIGHT:case Op.SHIFT:case Op.UP:case Op.WIN_KEY:case Op.WIN_KEY_RIGHT:return!1;default:return!0}},isCharacterKey:function(e){if(e>=Op.ZERO&&e<=Op.NINE)return!0;if(e>=Op.NUM_ZERO&&e<=Op.NUM_MULTIPLY)return!0;if(e>=Op.A&&e<=Op.Z)return!0;if(-1!==window.navigator.userAgent.indexOf("WebKit")&&0===e)return!0;switch(e){case Op.SPACE:case Op.QUESTION_MARK:case Op.NUM_PLUS:case Op.NUM_MINUS:case Op.NUM_PERIOD:case Op.NUM_DIVISION:case Op.SEMICOLON:case Op.DASH:case Op.EQUALS:case Op.COMMA:case Op.PERIOD:case Op.SLASH:case Op.APOSTROPHE:case Op.SINGLE_QUOTE:case Op.OPEN_SQUARE_BRACKET:case Op.BACKSLASH:case Op.CLOSE_SQUARE_BRACKET:return!0;default:return!1}}};const kp=Op;var Ip=["prefixCls","invalidate","item","renderItem","responsive","responsiveDisabled","registerSize","itemKey","className","style","children","display","order","component"],jp=void 0;function Pp(t,n){var r=t.prefixCls,o=t.invalidate,i=t.item,a=t.renderItem,l=t.responsive,s=t.responsiveDisabled,c=t.registerSize,u=t.itemKey,d=t.className,f=t.style,p=t.children,m=t.display,g=t.order,h=t.component,v=void 0===h?"div":h,b=D(t,Ip),y=l&&!m;function x(e){c(u,e)}e.useEffect(function(){return function(){x(null)}},[]);var C,w=a&&i!==jp?a(i,{index:g}):p;o||(C={opacity:y?0:1,height:y?0:jp,overflowY:y?"hidden":jp,order:l?g:jp,pointerEvents:y?"none":jp,position:y?"absolute":jp});var S={};y&&(S["aria-hidden"]=!0);var $=e.createElement(v,T({className:A()(!o&&r,d),style:L(L({},C),f)},S,b,{ref:n}),w);return l&&($=e.createElement(Mt,{onResize:function(e){x(e.offsetWidth)},disabled:s},$)),$}var Mp=e.forwardRef(Pp);Mp.displayName="Item";const Np=Mp;function Rp(t,n){var r=X(e.useState(n),2),o=r[0],i=r[1];return[o,At(function(e){t(function(){i(e)})})]}var Ap=t().createContext(null),zp=["component"],Tp=["className"],Fp=["className"],Bp=function(t,n){var r=e.useContext(Ap);if(!r){var o=t.component,i=void 0===o?"div":o,a=D(t,zp);return e.createElement(i,T({},a,{ref:n}))}var l=r.className,s=D(r,Tp),c=t.className,u=D(t,Fp);return e.createElement(Ap.Provider,{value:null},e.createElement(Np,T({ref:n,className:A()(l,c)},s,u)))},Hp=e.forwardRef(Bp);Hp.displayName="RawItem";const _p=Hp;var Lp=["prefixCls","data","renderItem","renderRawItem","itemKey","itemWidth","ssr","style","className","maxCount","renderRest","renderRawRest","prefix","suffix","component","itemComponent","onVisibleChange"],Dp="responsive",Vp="invalidate";function Wp(e){return"+ ".concat(e.length," ...")}function qp(t,n){var r,o=t.prefixCls,i=void 0===o?"rc-overflow":o,a=t.data,l=void 0===a?[]:a,s=t.renderItem,c=t.renderRawItem,u=t.itemKey,d=t.itemWidth,f=void 0===d?10:d,p=t.ssr,m=t.style,g=t.className,h=t.maxCount,v=t.renderRest,b=t.renderRawRest,y=t.prefix,x=t.suffix,C=t.component,w=void 0===C?"div":C,S=t.itemComponent,$=t.onVisibleChange,E=D(t,Lp),O="full"===p,k=(r=e.useRef(null),function(e){r.current||(r.current=[],function(e){if("undefined"==typeof MessageChannel)Rn(e);else{var t=new MessageChannel;t.port1.onmessage=function(){return e()},t.port2.postMessage(void 0)}}(function(){(0,K.unstable_batchedUpdates)(function(){r.current.forEach(function(e){e()}),r.current=null})})),r.current.push(e)}),I=X(Rp(k,null),2),j=I[0],P=I[1],M=j||0,N=X(Rp(k,new Map),2),R=N[0],z=N[1],F=X(Rp(k,0),2),B=F[0],H=F[1],_=X(Rp(k,0),2),V=_[0],W=_[1],q=X(Rp(k,0),2),G=q[0],U=q[1],Y=X(Rp(k,0),2),Q=Y[0],Z=Y[1],J=X((0,e.useState)(null),2),ee=J[0],te=J[1],ne=X((0,e.useState)(null),2),re=ne[0],oe=ne[1],ie=e.useMemo(function(){return null===re&&O?Number.MAX_SAFE_INTEGER:re||0},[re,j]),ae=X((0,e.useState)(!1),2),le=ae[0],se=ae[1],ce="".concat(i,"-item"),ue=Math.max(B,V),de=h===Dp,fe=l.length&&de,pe=h===Vp,me=fe||"number"==typeof h&&l.length>h,ge=(0,e.useMemo)(function(){var e=l;return fe?e=null===j&&O?l:l.slice(0,Math.min(l.length,M/f)):"number"==typeof h&&(e=l.slice(0,h)),e},[l,f,j,h,fe]),he=(0,e.useMemo)(function(){return fe?l.slice(ie+1):l.slice(ge.length)},[l,ge,fe,ie]),ve=(0,e.useCallback)(function(e,t){var n;return"function"==typeof u?u(e):null!==(n=u&&(null==e?void 0:e[u]))&&void 0!==n?n:t},[u]),be=(0,e.useCallback)(s||function(e){return e},[s]);function ye(e,t,n){(re!==e||void 0!==t&&t!==ee)&&(oe(e),n||(se(e<l.length-1),null==$||$(e)),void 0!==t&&te(t))}function xe(e,t){z(function(n){var r=new Map(n);return null===t?r.delete(e):r.set(e,t),r})}function Ce(e){return R.get(ve(ge[e],e))}Se(function(){if(M&&"number"==typeof ue&&ge){var e=G+Q,t=ge.length,n=t-1;if(!t)return void ye(0,null);for(var r=0;r<t;r+=1){var o=Ce(r);if(O&&(o=o||0),void 0===o){ye(r-1,void 0,!0);break}if(e+=o,0===n&&e<=M||r===n-1&&e+Ce(n)<=M){ye(n,null);break}if(e+ue>M){ye(r-1,e-o-Q+V);break}}x&&Ce(0)+Q>M&&te(null)}},[M,R,V,G,Q,ve,ge]);var we=le&&!!he.length,$e={};null!==ee&&fe&&($e={position:"absolute",left:ee,top:0});var Ee={prefixCls:ce,responsive:fe,component:S,invalidate:pe},Oe=c?function(t,n){var r=ve(t,n);return e.createElement(Ap.Provider,{key:r,value:L(L({},Ee),{},{order:n,item:t,itemKey:r,registerSize:xe,display:n<=ie})},c(t,n))}:function(t,n){var r=ve(t,n);return e.createElement(Np,T({},Ee,{order:n,key:r,item:t,renderItem:be,itemKey:r,registerSize:xe,display:n<=ie}))},ke={order:we?ie:Number.MAX_SAFE_INTEGER,className:"".concat(ce,"-rest"),registerSize:function(e,t){W(t),H(V)},display:we},Ie=v||Wp,je=b?e.createElement(Ap.Provider,{value:L(L({},Ee),ke)},b(he)):e.createElement(Np,T({},Ee,ke),"function"==typeof Ie?Ie(he):Ie),Pe=e.createElement(w,T({className:A()(!pe&&i,g),style:m,ref:n},E),y&&e.createElement(Np,T({},Ee,{responsive:de,responsiveDisabled:!fe,order:-1,className:"".concat(ce,"-prefix"),registerSize:function(e,t){U(t)},display:!0}),y),ge.map(Oe),me?je:null,x&&e.createElement(Np,T({},Ee,{responsive:de,responsiveDisabled:!fe,order:ie,className:"".concat(ce,"-suffix"),registerSize:function(e,t){Z(t)},display:!0,style:$e}),x));return de?e.createElement(Mt,{onResize:function(e,t){P(t.clientWidth)},disabled:!fe},Pe):Pe}var Gp=e.forwardRef(qp);Gp.displayName="Overflow",Gp.Item=_p,Gp.RESPONSIVE=Dp,Gp.INVALIDATE=Vp;const Xp=Gp;var Kp=["prefixCls","id","inputElement","autoFocus","autoComplete","editable","activeDescendantId","value","open","attrs"],Up=function(t,n){var r=t.prefixCls,o=t.id,i=t.inputElement,a=t.autoFocus,l=t.autoComplete,s=t.editable,c=t.activeDescendantId,u=t.value,d=t.open,f=t.attrs,p=D(t,Kp),m=i||e.createElement("input",null),g=m,h=g.ref,v=g.props;return m.props,e.cloneElement(m,L(L(L({type:"search"},function(e,t,n){var r=L(L({},e),n?t:{});return Object.keys(t).forEach(function(n){var o=t[n];"function"==typeof o&&(r[n]=function(){for(var t,r=arguments.length,i=new Array(r),a=0;a<r;a++)i[a]=arguments[a];return o.apply(void 0,i),null===(t=e[n])||void 0===t?void 0:t.call.apply(t,[e].concat(i))})}),r}(p,v,!0)),{},{id:o,ref:fe(n,h),autoComplete:l||"off",autoFocus:a,className:A()("".concat(r,"-selection-search-input"),null==v?void 0:v.className),role:"combobox","aria-expanded":d||!1,"aria-haspopup":"listbox","aria-owns":"".concat(o,"_list"),"aria-autocomplete":"list","aria-controls":"".concat(o,"_list"),"aria-activedescendant":d?c:void 0},f),{},{value:s?u:"",readOnly:!s,unselectable:s?null:"on",style:L(L({},v.style),{},{opacity:s?null:0})}))};const Yp=e.forwardRef(Up);function Qp(e){return Array.isArray(e)?e:void 0!==e?[e]:[]}var Zp="undefined"!=typeof window&&window.document&&window.document.documentElement;function Jp(e){return["string","number"].includes(F(e))}function em(e){var t=void 0;return e&&(Jp(e.title)?t=e.title.toString():Jp(e.label)&&(t=e.label.toString())),t}function tm(e){var t;return null!==(t=e.key)&&void 0!==t?t:e.value}var nm=function(e){e.preventDefault(),e.stopPropagation()};const rm=function(t){var n,r,o=t.id,i=t.prefixCls,a=t.values,l=t.open,s=t.searchValue,c=t.autoClearSearchValue,u=t.inputRef,d=t.placeholder,f=t.disabled,p=t.mode,m=t.showSearch,g=t.autoFocus,h=t.autoComplete,v=t.activeDescendantId,b=t.tabIndex,y=t.removeIcon,x=t.maxTagCount,C=t.maxTagTextLength,w=t.maxTagPlaceholder,S=void 0===w?function(e){return"+ ".concat(e.length," ...")}:w,$=t.tagRender,E=t.onToggleOpen,O=t.onRemove,k=t.onInputChange,I=t.onInputPaste,j=t.onInputKeyDown,P=t.onInputMouseDown,M=t.onInputCompositionStart,N=t.onInputCompositionEnd,R=t.onInputBlur,z=e.useRef(null),T=X((0,e.useState)(0),2),F=T[0],B=T[1],_=X((0,e.useState)(!1),2),L=_[0],D=_[1],V="".concat(i,"-selection"),W=l||"multiple"===p&&!1===c||"tags"===p?s:"",q="tags"===p||"multiple"===p&&!1===c||m&&(l||L);n=function(){B(z.current.scrollWidth)},r=[W],Zp?e.useLayoutEffect(n,r):e.useEffect(n,r);var G=function(t,n,r,o,i){return e.createElement("span",{title:em(t),className:A()("".concat(V,"-item"),H({},"".concat(V,"-item-disabled"),r))},e.createElement("span",{className:"".concat(V,"-item-content")},n),o&&e.createElement(Sp,{className:"".concat(V,"-item-remove"),onMouseDown:nm,onClick:i,customizeIcon:y},"×"))},K=function(t,n,r,o,i,a){return e.createElement("span",{onMouseDown:function(e){nm(e),E(!l)}},$({label:n,value:t,disabled:r,closable:o,onClose:i,isMaxTag:!!a}))},U=e.createElement("div",{className:"".concat(V,"-search"),style:{width:F},onFocus:function(){D(!0)},onBlur:function(){D(!1)}},e.createElement(Yp,{ref:u,open:l,prefixCls:i,id:o,inputElement:null,disabled:f,autoFocus:g,autoComplete:h,editable:q,activeDescendantId:v,value:W,onKeyDown:j,onMouseDown:P,onChange:k,onPaste:I,onCompositionStart:M,onCompositionEnd:N,onBlur:R,tabIndex:b,attrs:Tf(t,!0)}),e.createElement("span",{ref:z,className:"".concat(V,"-search-mirror"),"aria-hidden":!0},W," ")),Y=e.createElement(Xp,{prefixCls:"".concat(V,"-overflow"),data:a,renderItem:function(e){var t=e.disabled,n=e.label,r=e.value,o=!f&&!t,i=n;if("number"==typeof C&&("string"==typeof n||"number"==typeof n)){var a=String(i);a.length>C&&(i="".concat(a.slice(0,C),"..."))}var l=function(t){t&&t.stopPropagation(),O(e)};return"function"==typeof $?K(r,i,t,o,l):G(e,i,t,o,l)},renderRest:function(e){if(!a.length)return null;var t="function"==typeof S?S(e):S;return"function"==typeof $?K(void 0,t,!1,!1,void 0,!0):G({title:t},t,!1)},suffix:U,itemKey:tm,maxCount:x});return e.createElement("span",{className:"".concat(V,"-wrap")},Y,!a.length&&!W&&e.createElement("span",{className:"".concat(V,"-placeholder")},d))},om=function(t){var n=t.inputElement,r=t.prefixCls,o=t.id,i=t.inputRef,a=t.disabled,l=t.autoFocus,s=t.autoComplete,c=t.activeDescendantId,u=t.mode,d=t.open,f=t.values,p=t.placeholder,m=t.tabIndex,g=t.showSearch,h=t.searchValue,v=t.activeValue,b=t.maxLength,y=t.onInputKeyDown,x=t.onInputMouseDown,C=t.onInputChange,w=t.onInputPaste,S=t.onInputCompositionStart,$=t.onInputCompositionEnd,E=t.onInputBlur,O=t.title,k=X(e.useState(!1),2),I=k[0],j=k[1],P="combobox"===u,M=P||g,N=f[0],R=h||"";P&&v&&!I&&(R=v),e.useEffect(function(){P&&j(!1)},[P,v]);var A=!("combobox"!==u&&!d&&!g||!R),z=void 0===O?em(N):O,T=e.useMemo(function(){return N?null:e.createElement("span",{className:"".concat(r,"-selection-placeholder"),style:A?{visibility:"hidden"}:void 0},p)},[N,A,p,r]);return e.createElement("span",{className:"".concat(r,"-selection-wrap")},e.createElement("span",{className:"".concat(r,"-selection-search")},e.createElement(Yp,{ref:i,prefixCls:r,id:o,open:d,inputElement:n,disabled:a,autoFocus:l,autoComplete:s,editable:M,activeDescendantId:c,value:R,onKeyDown:y,onMouseDown:x,onChange:function(e){j(!0),C(e)},onPaste:w,onCompositionStart:S,onCompositionEnd:$,onBlur:E,tabIndex:m,attrs:Tf(t,!0),maxLength:P?b:void 0})),!P&&N?e.createElement("span",{className:"".concat(r,"-selection-item"),title:z,style:A?{visibility:"hidden"}:void 0},N.label):null,T)};var im=function(t,n){var r=(0,e.useRef)(null),o=(0,e.useRef)(!1),i=t.prefixCls,a=t.open,l=t.mode,s=t.showSearch,c=t.tokenWithEnter,u=t.disabled,d=t.prefix,f=t.autoClearSearchValue,p=t.onSearch,m=t.onSearchSubmit,g=t.onToggleOpen,h=t.onInputKeyDown,v=t.onInputBlur,b=t.domRef;e.useImperativeHandle(n,function(){return{focus:function(e){r.current.focus(e)},blur:function(){r.current.blur()}}});var y=X(Ep(0),2),x=y[0],C=y[1],w=(0,e.useRef)(null),S=function(e){!1!==p(e,!0,o.current)&&g(!0)},$={inputRef:r,onInputKeyDown:function(e){var t,n=e.which,i=r.current instanceof HTMLTextAreaElement;i||!a||n!==kp.UP&&n!==kp.DOWN||e.preventDefault(),h&&h(e),n!==kp.ENTER||"tags"!==l||o.current||a||null==m||m(e.target.value),i&&!a&&~[kp.UP,kp.DOWN,kp.LEFT,kp.RIGHT].indexOf(n)||(t=n)&&![kp.ESC,kp.SHIFT,kp.BACKSPACE,kp.TAB,kp.WIN_KEY,kp.ALT,kp.META,kp.WIN_KEY_RIGHT,kp.CTRL,kp.SEMICOLON,kp.EQUALS,kp.CAPS_LOCK,kp.CONTEXT_MENU,kp.F1,kp.F2,kp.F3,kp.F4,kp.F5,kp.F6,kp.F7,kp.F8,kp.F9,kp.F10,kp.F11,kp.F12].includes(t)&&g(!0)},onInputMouseDown:function(){C(!0)},onInputChange:function(e){var t=e.target.value;if(c&&w.current&&/[\r\n]/.test(w.current)){var n=w.current.replace(/[\r\n]+$/,"").replace(/\r\n/g," ").replace(/[\r\n]/g," ");t=t.replace(n,w.current)}w.current=null,S(t)},onInputPaste:function(e){var t=e.clipboardData,n=null==t?void 0:t.getData("text");w.current=n||""},onInputCompositionStart:function(){o.current=!0},onInputCompositionEnd:function(e){o.current=!1,"combobox"!==l&&S(e.target.value)},onInputBlur:v},E="multiple"===l||"tags"===l?e.createElement(rm,T({},t,$)):e.createElement(om,T({},t,$));return e.createElement("div",{ref:b,className:"".concat(i,"-selector"),onClick:function(e){e.target!==r.current&&(void 0!==document.body.style.msTouchAction?setTimeout(function(){r.current.focus()}):r.current.focus())},onMouseDown:function(e){var t=x();e.target===r.current||t||"combobox"===l&&u||e.preventDefault(),("combobox"===l||s&&t)&&a||(a&&!1!==f&&p("",!0,!1),g())}},d&&e.createElement("div",{className:"".concat(i,"-prefix")},d),E)};const am=e.forwardRef(im);var lm=["prefixCls","disabled","visible","children","popupElement","animation","transitionName","dropdownStyle","dropdownClassName","direction","placement","builtinPlacements","dropdownMatchSelectWidth","dropdownRender","dropdownAlign","getPopupContainer","empty","getTriggerDOMNode","onPopupVisibleChange","onPopupMouseEnter"],sm=function(t,n){var r=t.prefixCls,o=(t.disabled,t.visible),i=t.children,a=t.popupElement,l=t.animation,s=t.transitionName,c=t.dropdownStyle,u=t.dropdownClassName,d=t.direction,f=void 0===d?"ltr":d,p=t.placement,m=t.builtinPlacements,g=t.dropdownMatchSelectWidth,h=t.dropdownRender,v=t.dropdownAlign,b=t.getPopupContainer,y=t.empty,x=t.getTriggerDOMNode,C=t.onPopupVisibleChange,w=t.onPopupMouseEnter,S=D(t,lm),$="".concat(r,"-dropdown"),E=a;h&&(E=h(a));var O=e.useMemo(function(){return m||function(e){var t=!0===e?0:1;return{bottomLeft:{points:["tl","bl"],offset:[0,4],overflow:{adjustX:t,adjustY:1},htmlRegion:"scroll"},bottomRight:{points:["tr","br"],offset:[0,4],overflow:{adjustX:t,adjustY:1},htmlRegion:"scroll"},topLeft:{points:["bl","tl"],offset:[0,-4],overflow:{adjustX:t,adjustY:1},htmlRegion:"scroll"},topRight:{points:["br","tr"],offset:[0,-4],overflow:{adjustX:t,adjustY:1},htmlRegion:"scroll"}}}(g)},[m,g]),k=l?"".concat($,"-").concat(l):s,I="number"==typeof g,j=e.useMemo(function(){return I?null:!1===g?"minWidth":"width"},[g,I]),P=c;I&&(P=L(L({},P),{},{width:g}));var M=e.useRef(null);return e.useImperativeHandle(n,function(){return{getPopupElement:function(){var e;return null===(e=M.current)||void 0===e?void 0:e.popupElement}}}),e.createElement(wr,T({},S,{showAction:C?["click"]:[],hideAction:C?["click"]:[],popupPlacement:p||("rtl"===f?"bottomRight":"bottomLeft"),builtinPlacements:O,prefixCls:$,popupTransitionName:k,popup:e.createElement("div",{onMouseEnter:w},E),ref:M,stretch:j,popupAlign:v,popupVisible:o,getPopupContainer:b,popupClassName:A()(u,H({},"".concat($,"-empty"),y)),popupStyle:P,getTriggerDOMNode:x,onPopupVisibleChange:C}),i)};const cm=e.forwardRef(sm);function um(e,t){var n,r=e.key;return"value"in e&&(n=e.value),null!=r?r:void 0!==n?n:"rc-index-key-".concat(t)}function dm(e){return void 0!==e&&!Number.isNaN(e)}function fm(e,t){var n=e||{},r=n.label||(t?"children":"label");return{label:r,value:n.value||"value",options:n.options||"options",groupLabel:n.groupLabel||r}}function pm(e){var t=L({},e);return"props"in t||Object.defineProperty(t,"props",{get:function(){return re(!1,"Return type is option instead of Option instance. Please read value directly instead of reading from `props`."),t}}),t}const mm=e.createContext(null);function gm(t){var n=t.visible,r=t.values;return n?e.createElement("span",{"aria-live":"polite",style:{width:0,height:0,position:"absolute",overflow:"hidden",opacity:0}},"".concat(r.slice(0,50).map(function(e){var t=e.label,n=e.value;return["number","string"].includes(F(t))?t:n}).join(", ")),r.length>50?", ...":null):null}var hm=["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"],vm=["value","onChange","removeIcon","placeholder","autoFocus","maxTagCount","maxTagTextLength","maxTagPlaceholder","choiceTransitionName","onInputKeyDown","onPopupScroll","tabIndex"],bm=function(e){return"tags"===e||"multiple"===e},ym=e.forwardRef(function(n,r){var o,i=n.id,a=n.prefixCls,l=n.className,s=n.showSearch,c=n.tagRender,u=n.direction,d=n.omitDomProps,f=n.displayValues,p=n.onDisplayValuesChange,m=n.emptyOptions,g=n.notFoundContent,h=void 0===g?"Not Found":g,v=n.onClear,b=n.mode,y=n.disabled,x=n.loading,C=n.getInputElement,w=n.getRawInputElement,S=n.open,$=n.defaultOpen,E=n.onDropdownVisibleChange,O=n.activeValue,k=n.onActiveValueChange,I=n.activeDescendantId,j=n.searchValue,P=n.autoClearSearchValue,M=n.onSearch,N=n.onSearchSplit,R=n.tokenSeparators,z=n.allowClear,B=n.prefix,_=n.suffixIcon,V=n.clearIcon,W=n.OptionList,q=n.animation,G=n.transitionName,K=n.dropdownStyle,U=n.dropdownClassName,Y=n.dropdownMatchSelectWidth,Q=n.dropdownRender,Z=n.dropdownAlign,J=n.placement,ee=n.builtinPlacements,te=n.getPopupContainer,ne=n.showAction,re=void 0===ne?[]:ne,oe=n.onFocus,ie=n.onBlur,ae=n.onKeyUp,le=n.onKeyDown,se=n.onMouseDown,ce=D(n,hm),ue=bm(b),de=(void 0!==s?s:ue)||"combobox"===b,fe=L({},ce);vm.forEach(function(e){delete fe[e]}),null==d||d.forEach(function(e){delete fe[e]});var me=X(e.useState(!1),2),ge=me[0],he=me[1];e.useEffect(function(){he(Bt())},[]);var ve=e.useRef(null),be=e.useRef(null),xe=e.useRef(null),Ce=e.useRef(null),we=e.useRef(null),$e=e.useRef(!1),Ee=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:10,n=X(e.useState(!1),2),r=n[0],o=n[1],i=e.useRef(null),a=function(){window.clearTimeout(i.current)};return e.useEffect(function(){return a},[]),[r,function(e,n){a(),i.current=window.setTimeout(function(){o(e),n&&n()},t)},a]}(),Oe=X(Ee,3),ke=Oe[0],Ie=Oe[1],je=Oe[2];e.useImperativeHandle(r,function(){var e,t;return{focus:null===(e=Ce.current)||void 0===e?void 0:e.focus,blur:null===(t=Ce.current)||void 0===t?void 0:t.blur,scrollTo:function(e){var t;return null===(t=we.current)||void 0===t?void 0:t.scrollTo(e)},nativeElement:ve.current||be.current}});var Pe=e.useMemo(function(){var e;if("combobox"!==b)return j;var t=null===(e=f[0])||void 0===e?void 0:e.value;return"string"==typeof t||"number"==typeof t?String(t):""},[j,b,f]),Me="combobox"===b&&"function"==typeof C&&C()||null,Ne="function"==typeof w&&w(),Re=pe(be,null==Ne||null===(o=Ne.props)||void 0===o?void 0:o.ref),Ae=X(e.useState(!1),2),ze=Ae[0],Te=Ae[1];Se(function(){Te(!0)},[]);var Fe=X(Gt(!1,{defaultValue:$,value:S}),2),Be=Fe[0],He=Fe[1],_e=!!ze&&Be,Le=!h&&m;(y||Le&&_e&&"combobox"===b)&&(_e=!1);var De=!Le&&_e,Ve=e.useCallback(function(e){var t=void 0!==e?e:!_e;y||(He(t),_e!==t&&(null==E||E(t)))},[y,_e,He,E]),We=e.useMemo(function(){return(R||[]).some(function(e){return["\n","\r\n"].includes(e)})},[R]),qe=e.useContext(mm)||{},Ge=qe.maxCount,Xe=qe.rawValues,Ke=function(e,t,n){if(!(ue&&dm(Ge)&&(null==Xe?void 0:Xe.size)>=Ge)){var r=!0,o=e;null==k||k(null);var i=function(e,t,n){if(!t||!t.length)return null;var r=!1,o=function e(t,n){var o=Kt(n),i=o[0],a=o.slice(1);if(!i)return[t];var l=t.split(i);return r=r||l.length>1,l.reduce(function(t,n){return[].concat(ye(t),ye(e(n,a)))},[]).filter(Boolean)}(e,t);return r?void 0!==n?o.slice(0,n):o:null}(e,R,dm(Ge)?Ge-Xe.size:void 0),a=n?null:i;return"combobox"!==b&&a&&(o="",null==N||N(a),Ve(!1),r=!1),M&&Pe!==o&&M(o,{source:t?"typing":"effect"}),r}};e.useEffect(function(){_e||ue||"combobox"===b||Ke("",!1,!1)},[_e]),e.useEffect(function(){Be&&y&&He(!1),y&&!$e.current&&Ie(!1)},[y]);var Ue=X(Ep(),2),Ye=Ue[0],Qe=Ue[1],Ze=e.useRef(!1),Je=e.useRef(!1),et=[];e.useEffect(function(){return function(){et.forEach(function(e){return clearTimeout(e)}),et.splice(0,et.length)}},[]);var tt,nt=X(e.useState({}),2)[1];Ne&&(tt=function(e){Ve(e)}),function(t,n,r,o){var i=e.useRef(null);i.current={open:n,triggerOpen:r,customizedTrigger:o},e.useEffect(function(){function e(e){var t,n;if(null===(t=i.current)||void 0===t||!t.customizedTrigger){var r=e.target;r.shadowRoot&&e.composed&&(r=e.composedPath()[0]||r),i.current.open&&[ve.current,null===(n=xe.current)||void 0===n?void 0:n.getPopupElement()].filter(function(e){return e}).every(function(e){return!e.contains(r)&&e!==r})&&i.current.triggerOpen(!1)}}return window.addEventListener("mousedown",e),function(){return window.removeEventListener("mousedown",e)}},[])}(0,De,Ve,!!Ne);var rt,ot=e.useMemo(function(){return L(L({},n),{},{notFoundContent:h,open:_e,triggerOpen:De,id:i,showSearch:de,multiple:ue,toggleOpen:Ve})},[n,h,De,_e,i,de,ue,Ve]),it=!!_||x;it&&(rt=e.createElement(Sp,{className:A()("".concat(a,"-arrow"),H({},"".concat(a,"-arrow-loading"),x)),customizeIcon:_,customizeIconProps:{loading:x,searchValue:Pe,open:_e,focused:ke,showSearch:de}}));var at,lt=function(e,n,r,o,i){var a=arguments.length>5&&void 0!==arguments[5]&&arguments[5],l=arguments.length>6?arguments[6]:void 0,s=arguments.length>7?arguments[7]:void 0,c=t().useMemo(function(){return"object"===F(o)?o.clearIcon:i||void 0},[o,i]);return{allowClear:t().useMemo(function(){return!(a||!o||!r.length&&!l||"combobox"===s&&""===l)},[o,a,r.length,l,s]),clearIcon:t().createElement(Sp,{className:"".concat(e,"-clear"),onMouseDown:n,customizeIcon:c},"×")}}(a,function(){var e;null==v||v(),null===(e=Ce.current)||void 0===e||e.focus(),p([],{type:"clear",values:f}),Ke("",!1,!1)},f,z,V,y,Pe,b),st=lt.allowClear,ct=lt.clearIcon,ut=e.createElement(W,{ref:we}),dt=A()(a,l,H(H(H(H(H(H(H(H(H(H({},"".concat(a,"-focused"),ke),"".concat(a,"-multiple"),ue),"".concat(a,"-single"),!ue),"".concat(a,"-allow-clear"),z),"".concat(a,"-show-arrow"),it),"".concat(a,"-disabled"),y),"".concat(a,"-loading"),x),"".concat(a,"-open"),_e),"".concat(a,"-customize-input"),Me),"".concat(a,"-show-search"),de)),ft=e.createElement(cm,{ref:xe,disabled:y,prefixCls:a,visible:De,popupElement:ut,animation:q,transitionName:G,dropdownStyle:K,dropdownClassName:U,direction:u,dropdownMatchSelectWidth:Y,dropdownRender:Q,dropdownAlign:Z,placement:J,builtinPlacements:ee,getPopupContainer:te,empty:m,getTriggerDOMNode:function(e){return be.current||e},onPopupVisibleChange:tt,onPopupMouseEnter:function(){nt({})}},Ne?e.cloneElement(Ne,{ref:Re}):e.createElement(am,T({},n,{domRef:be,prefixCls:a,inputElement:Me,ref:Ce,id:i,prefix:B,showSearch:de,autoClearSearchValue:P,mode:b,activeDescendantId:I,tagRender:c,values:f,open:_e,onToggleOpen:Ve,activeValue:O,searchValue:Pe,onSearch:Ke,onSearchSubmit:function(e){e&&e.trim()&&M(e,{source:"submit"})},onRemove:function(e){var t=f.filter(function(t){return t!==e});p(t,{type:"remove",values:[e]})},tokenWithEnter:We,onInputBlur:function(){Ze.current=!1}})));return at=Ne?ft:e.createElement("div",T({className:dt},fe,{ref:ve,onMouseDown:function(e){var t,n=e.target,r=null===(t=xe.current)||void 0===t?void 0:t.getPopupElement();if(r&&r.contains(n)){var o=setTimeout(function(){var e,t=et.indexOf(o);-1!==t&&et.splice(t,1),je(),ge||r.contains(document.activeElement)||null===(e=Ce.current)||void 0===e||e.focus()});et.push(o)}for(var i=arguments.length,a=new Array(i>1?i-1:0),l=1;l<i;l++)a[l-1]=arguments[l];null==se||se.apply(void 0,[e].concat(a))},onKeyDown:function(e){var t,n=Ye(),r=e.key,o="Enter"===r;if(o&&("combobox"!==b&&e.preventDefault(),_e||Ve(!0)),Qe(!!Pe),"Backspace"===r&&!n&&ue&&!Pe&&f.length){for(var i=ye(f),a=null,l=i.length-1;l>=0;l-=1){var s=i[l];if(!s.disabled){i.splice(l,1),a=s;break}}a&&p(i,{type:"remove",values:[a]})}for(var c=arguments.length,u=new Array(c>1?c-1:0),d=1;d<c;d++)u[d-1]=arguments[d];!_e||o&&Ze.current||(o&&(Ze.current=!0),null===(t=we.current)||void 0===t||t.onKeyDown.apply(t,[e].concat(u))),null==le||le.apply(void 0,[e].concat(u))},onKeyUp:function(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];var o;_e&&(null===(o=we.current)||void 0===o||o.onKeyUp.apply(o,[e].concat(n))),"Enter"===e.key&&(Ze.current=!1),null==ae||ae.apply(void 0,[e].concat(n))},onFocus:function(){Ie(!0),y||(oe&&!Je.current&&oe.apply(void 0,arguments),re.includes("focus")&&Ve(!0)),Je.current=!0},onBlur:function(){$e.current=!0,Ie(!1,function(){Je.current=!1,$e.current=!1,Ve(!1)}),y||(Pe&&("tags"===b?M(Pe,{source:"submit"}):"multiple"===b&&M("",{source:"blur"})),ie&&ie.apply(void 0,arguments))}}),e.createElement(gm,{visible:ke&&!_e,values:f}),ft,rt,st&&ct),e.createElement($p.Provider,{value:ot},at)});const xm=ym;var Cm=function(){return null};Cm.isSelectOptGroup=!0;const wm=Cm;var Sm=function(){return null};Sm.isSelectOption=!0;const $m=Sm;var Em=e.forwardRef(function(t,n){var r=t.height,o=t.offsetY,i=t.offsetX,a=t.children,l=t.prefixCls,s=t.onInnerResize,c=t.innerProps,u=t.rtl,d=t.extra,f={},p={display:"flex",flexDirection:"column"};return void 0!==o&&(f={height:r,position:"relative",overflow:"hidden"},p=L(L({},p),{},H(H(H(H(H({transform:"translateY(".concat(o,"px)")},u?"marginRight":"marginLeft",-i),"position","absolute"),"left",0),"right",0),"top",0))),e.createElement("div",{style:f},e.createElement(Mt,{onResize:function(e){e.offsetHeight&&s&&s()}},e.createElement("div",T({style:p,className:A()(H({},"".concat(l,"-holder-inner"),l)),ref:n},c),a,d)))});Em.displayName="Filler";const Om=Em;function km(t){var n=t.children,r=t.setRef,o=e.useCallback(function(e){r(e)},[]);return e.cloneElement(n,{ref:o})}const Im="object"===("undefined"==typeof navigator?"undefined":F(navigator))&&/Firefox/i.test(navigator.userAgent),jm=function(t,n,r,o){var i=(0,e.useRef)(!1),a=(0,e.useRef)(null),l=(0,e.useRef)({top:t,bottom:n,left:r,right:o});return l.current.top=t,l.current.bottom=n,l.current.left=r,l.current.right=o,function(e,t){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],r=e?t<0&&l.current.left||t>0&&l.current.right:t<0&&l.current.top||t>0&&l.current.bottom;return n&&r?(clearTimeout(a.current),i.current=!1):r&&!i.current||(clearTimeout(a.current),i.current=!0,a.current=setTimeout(function(){i.current=!1},50)),!i.current&&r}};const Pm=function(){function e(){ht(this,e),H(this,"maps",void 0),H(this,"id",0),H(this,"diffRecords",new Map),this.maps=Object.create(null)}return bt(e,[{key:"set",value:function(e,t){this.diffRecords.set(e,this.maps[e]),this.maps[e]=t,this.id+=1}},{key:"get",value:function(e){return this.maps[e]}},{key:"resetRecord",value:function(){this.diffRecords.clear()}},{key:"getRecord",value:function(){return this.diffRecords}}]),e}();function Mm(e){var t=parseFloat(e);return isNaN(t)?0:t}var Nm=14/15;function Rm(e){return Math.floor(Math.pow(e,.5))}function Am(e,t){return("touches"in e?e.touches[0]:e)[t?"pageX":"pageY"]-window[t?"scrollX":"scrollY"]}var zm=e.forwardRef(function(t,n){var r=t.prefixCls,o=t.rtl,i=t.scrollOffset,a=t.scrollRange,l=t.onStartMove,s=t.onStopMove,c=t.onScroll,u=t.horizontal,d=t.spinSize,f=t.containerSize,p=t.style,m=t.thumbStyle,g=t.showScrollBar,h=X(e.useState(!1),2),v=h[0],b=h[1],y=X(e.useState(null),2),x=y[0],C=y[1],w=X(e.useState(null),2),S=w[0],$=w[1],E=!o,O=e.useRef(),k=e.useRef(),I=X(e.useState(g),2),j=I[0],P=I[1],M=e.useRef(),N=function(){!0!==g&&!1!==g&&(clearTimeout(M.current),P(!0),M.current=setTimeout(function(){P(!1)},3e3))},R=a-f||0,z=f-d||0,T=e.useMemo(function(){return 0===i||0===R?0:i/R*z},[i,R,z]),F=e.useRef({top:T,dragging:v,pageY:x,startTop:S});F.current={top:T,dragging:v,pageY:x,startTop:S};var B=function(e){b(!0),C(Am(e,u)),$(F.current.top),l(),e.stopPropagation(),e.preventDefault()};e.useEffect(function(){var e=function(e){e.preventDefault()},t=O.current,n=k.current;return t.addEventListener("touchstart",e,{passive:!1}),n.addEventListener("touchstart",B,{passive:!1}),function(){t.removeEventListener("touchstart",e),n.removeEventListener("touchstart",B)}},[]);var _=e.useRef();_.current=R;var D=e.useRef();D.current=z,e.useEffect(function(){if(v){var e,t=function(t){var n=F.current,r=n.dragging,o=n.pageY,i=n.startTop;Rn.cancel(e);var a=O.current.getBoundingClientRect(),l=f/(u?a.width:a.height);if(r){var s=(Am(t,u)-o)*l,d=i;!E&&u?d-=s:d+=s;var p=_.current,m=D.current,g=m?d/m:0,h=Math.ceil(g*p);h=Math.max(h,0),h=Math.min(h,p),e=Rn(function(){c(h,u)})}},n=function(){b(!1),s()};return window.addEventListener("mousemove",t,{passive:!0}),window.addEventListener("touchmove",t,{passive:!0}),window.addEventListener("mouseup",n,{passive:!0}),window.addEventListener("touchend",n,{passive:!0}),function(){window.removeEventListener("mousemove",t),window.removeEventListener("touchmove",t),window.removeEventListener("mouseup",n),window.removeEventListener("touchend",n),Rn.cancel(e)}}},[v]),e.useEffect(function(){return N(),function(){clearTimeout(M.current)}},[i]),e.useImperativeHandle(n,function(){return{delayHidden:N}});var V="".concat(r,"-scrollbar"),W={position:"absolute",visibility:j?null:"hidden"},q={position:"absolute",borderRadius:99,background:"var(--rc-virtual-list-scrollbar-bg, rgba(0, 0, 0, 0.5))",cursor:"pointer",userSelect:"none"};return u?(Object.assign(W,{height:8,left:0,right:0,bottom:0}),Object.assign(q,H({height:"100%",width:d},E?"left":"right",T))):(Object.assign(W,H({width:8,top:0,bottom:0},E?"right":"left",0)),Object.assign(q,{width:"100%",height:d,top:T})),e.createElement("div",{ref:O,className:A()(V,H(H(H({},"".concat(V,"-horizontal"),u),"".concat(V,"-vertical"),!u),"".concat(V,"-visible"),j)),style:L(L({},W),p),onMouseDown:function(e){e.stopPropagation(),e.preventDefault()},onMouseMove:N},e.createElement("div",{ref:k,className:A()("".concat(V,"-thumb"),H({},"".concat(V,"-thumb-moving"),v)),style:L(L({},q),m),onMouseDown:B}))});const Tm=zm;function Fm(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,t=e/(arguments.length>1&&void 0!==arguments[1]?arguments[1]:0)*e;return isNaN(t)&&(t=0),t=Math.max(t,20),Math.floor(t)}var Bm=["prefixCls","className","height","itemHeight","fullHeight","style","data","children","itemKey","virtual","direction","scrollWidth","component","onScroll","onVirtualScroll","onVisibleChange","innerProps","extraRender","styles","showScrollBar"],Hm=[],_m={overflowY:"auto",overflowAnchor:"none"};function Lm(t,n){var r=t.prefixCls,o=void 0===r?"rc-virtual-list":r,i=t.className,a=t.height,l=t.itemHeight,s=t.fullHeight,c=void 0===s||s,u=t.style,d=t.data,f=t.children,p=t.itemKey,m=t.virtual,g=t.direction,h=t.scrollWidth,v=t.component,b=void 0===v?"div":v,y=t.onScroll,x=t.onVirtualScroll,C=t.onVisibleChange,w=t.innerProps,S=t.extraRender,$=t.styles,E=t.showScrollBar,O=void 0===E?"optional":E,k=D(t,Bm),I=e.useCallback(function(e){return"function"==typeof p?p(e):null==e?void 0:e[p]},[p]),j=function(t){var n=X(e.useState(0),2),r=n[0],o=n[1],i=(0,e.useRef)(new Map),a=(0,e.useRef)(new Pm),l=(0,e.useRef)(0);function s(){l.current+=1}function c(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];s();var t=function(){var e=!1;i.current.forEach(function(t,n){if(t&&t.offsetParent){var r=t.offsetHeight,o=getComputedStyle(t),i=o.marginTop,l=o.marginBottom,s=r+Mm(i)+Mm(l);a.current.get(n)!==s&&(a.current.set(n,s),e=!0)}}),e&&o(function(e){return e+1})};if(e)t();else{l.current+=1;var n=l.current;Promise.resolve().then(function(){n===l.current&&t()})}}return(0,e.useEffect)(function(){return s},[]),[function(e,n){var r=t(e);i.current.get(r);n?(i.current.set(r,n),c()):i.current.delete(r)},c,a.current,r]}(I),P=X(j,4),M=P[0],N=P[1],R=P[2],z=P[3],B=!(!1===m||!a||!l),_=e.useMemo(function(){return Object.values(R.maps).reduce(function(e,t){return e+t},0)},[R.id,R.maps]),V=B&&d&&(Math.max(l*d.length,_)>a||!!h),W="rtl"===g,q=A()(o,H({},"".concat(o,"-rtl"),W),i),G=d||Hm,U=(0,e.useRef)(),Y=(0,e.useRef)(),Q=(0,e.useRef)(),Z=X((0,e.useState)(0),2),J=Z[0],ee=Z[1],te=X((0,e.useState)(0),2),ne=te[0],re=te[1],oe=X((0,e.useState)(!1),2),ie=oe[0],ae=oe[1],le=function(){ae(!0)},se=function(){ae(!1)},ce={getKey:I};function ue(e){ee(function(t){var n=function(e){var t=e;return Number.isNaN(Ie.current)||(t=Math.min(t,Ie.current)),t=Math.max(t,0)}("function"==typeof e?e(t):e);return U.current.scrollTop=n,n})}var de=(0,e.useRef)({start:0,end:G.length}),fe=(0,e.useRef)(),pe=X(function(t,n,r){var o=X(e.useState(t),2),i=o[0],a=o[1],l=X(e.useState(null),2),s=l[0],c=l[1];return e.useEffect(function(){var e=function(e,t,n){var r,o,i=e.length,a=t.length;if(0===i&&0===a)return null;i<a?(r=e,o=t):(r=t,o=e);var l={__EMPTY_ITEM__:!0};function s(e){return void 0!==e?n(e):l}for(var c=null,u=1!==Math.abs(i-a),d=0;d<o.length;d+=1){var f=s(r[d]);if(f!==s(o[d])){c=d,u=u||f!==s(o[d+1]);break}}return null===c?null:{index:c,multiple:u}}(i||[],t||[],n);void 0!==(null==e?void 0:e.index)&&(null==r||r(e.index),c(t[e.index])),a(t)},[t]),[s]}(G,I),1)[0];fe.current=pe;var me=e.useMemo(function(){if(!B)return{scrollHeight:void 0,start:0,end:G.length-1,offset:void 0};var e;if(!V)return{scrollHeight:(null===(e=Y.current)||void 0===e?void 0:e.offsetHeight)||0,start:0,end:G.length-1,offset:void 0};for(var t,n,r,o=0,i=G.length,s=0;s<i;s+=1){var c=G[s],u=I(c),d=R.get(u),f=o+(void 0===d?l:d);f>=J&&void 0===t&&(t=s,n=o),f>J+a&&void 0===r&&(r=s),o=f}return void 0===t&&(t=0,n=0,r=Math.ceil(a/l)),void 0===r&&(r=G.length-1),{scrollHeight:o,start:t,end:r=Math.min(r+1,G.length-1),offset:n}},[V,B,J,G,z,a]),ge=me.scrollHeight,he=me.start,ve=me.end,be=me.offset;de.current.start=he,de.current.end=ve,e.useLayoutEffect(function(){var e=R.getRecord();if(1===e.size){var t=Array.from(e.keys())[0],n=e.get(t),r=G[he];if(r&&void 0===n&&I(r)===t){var o=R.get(t)-l;ue(function(e){return e+o})}}R.resetRecord()},[ge]);var ye=X(e.useState({width:0,height:a}),2),xe=ye[0],Ce=ye[1],we=(0,e.useRef)(),$e=(0,e.useRef)(),Ee=e.useMemo(function(){return Fm(xe.width,h)},[xe.width,h]),Oe=e.useMemo(function(){return Fm(xe.height,ge)},[xe.height,ge]),ke=ge-a,Ie=(0,e.useRef)(ke);Ie.current=ke;var je=J<=0,Pe=J>=ke,Me=ne<=0,Ne=ne>=h,Re=jm(je,Pe,Me,Ne),Ae=function(){return{x:W?-ne:ne,y:J}},ze=(0,e.useRef)(Ae()),Te=At(function(e){if(x){var t=L(L({},Ae()),e);ze.current.x===t.x&&ze.current.y===t.y||(x(t),ze.current=t)}});function Fe(e,t){var n=e;t?((0,K.flushSync)(function(){re(n)}),Te()):ue(n)}var Be=function(e){var t=e,n=h?h-xe.width:0;return t=Math.max(t,0),Math.min(t,n)},He=At(function(e,t){t?((0,K.flushSync)(function(){re(function(t){return Be(t+(W?-e:e))})}),Te()):ue(function(t){return t+e})}),_e=X(function(t,n,r,o,i,a,l){var s=(0,e.useRef)(0),c=(0,e.useRef)(null),u=(0,e.useRef)(null),d=(0,e.useRef)(!1),f=jm(n,r,o,i),p=(0,e.useRef)(null),m=(0,e.useRef)(null);return[function(e){if(t){Rn.cancel(m.current),m.current=Rn(function(){p.current=null},2);var n=e.deltaX,r=e.deltaY,o=e.shiftKey,i=n,g=r;("sx"===p.current||!p.current&&o&&r&&!n)&&(i=r,g=0,p.current="sx");var h=Math.abs(i),v=Math.abs(g);null===p.current&&(p.current=a&&h>v?"x":"y"),"y"===p.current?function(e,t){if(Rn.cancel(c.current),!f(!1,t)){var n=e;n._virtualHandled||(n._virtualHandled=!0,s.current+=t,u.current=t,Im||n.preventDefault(),c.current=Rn(function(){var e=d.current?10:1;l(s.current*e,!1),s.current=0}))}}(e,g):function(e,t){l(t,!0),Im||e.preventDefault()}(e,i)}},function(e){t&&(d.current=e.detail===u.current)}]}(B,je,Pe,Me,Ne,!!h,He),2),Le=_e[0],De=_e[1];!function(t,n,r){var o,i=(0,e.useRef)(!1),a=(0,e.useRef)(0),l=(0,e.useRef)(0),s=(0,e.useRef)(null),c=(0,e.useRef)(null),u=function(e){if(i.current){var t=Math.ceil(e.touches[0].pageX),n=Math.ceil(e.touches[0].pageY),o=a.current-t,s=l.current-n,u=Math.abs(o)>Math.abs(s);u?a.current=t:l.current=n;var d=r(u,u?o:s,!1,e);d&&e.preventDefault(),clearInterval(c.current),d&&(c.current=setInterval(function(){u?o*=Nm:s*=Nm;var e=Math.floor(u?o:s);(!r(u,e,!0)||Math.abs(e)<=.1)&&clearInterval(c.current)},16))}},d=function(){i.current=!1,o()},f=function(e){o(),1!==e.touches.length||i.current||(i.current=!0,a.current=Math.ceil(e.touches[0].pageX),l.current=Math.ceil(e.touches[0].pageY),s.current=e.target,s.current.addEventListener("touchmove",u,{passive:!1}),s.current.addEventListener("touchend",d,{passive:!0}))};o=function(){s.current&&(s.current.removeEventListener("touchmove",u),s.current.removeEventListener("touchend",d))},Se(function(){return t&&n.current.addEventListener("touchstart",f,{passive:!0}),function(){var e;null===(e=n.current)||void 0===e||e.removeEventListener("touchstart",f),o(),clearInterval(c.current)}},[t])}(B,U,function(e,t,n,r){var o=r;return!(Re(e,t,n)||o&&o._virtualHandled||(o&&(o._virtualHandled=!0),Le({preventDefault:function(){},deltaX:e?t:0,deltaY:e?0:t}),0))}),function(t,n){e.useEffect(function(){var e=n.current;if(t&&e){var r,o,i=!1,a=function(){Rn.cancel(r)},l=function e(){a(),r=Rn(function(){var t;t=o,ue(function(e){return e+t}),e()})},s=function(){i=!1,a()},c=function(e){if(!e.target.draggable&&0===e.button){var t=e;t._virtualHandled||(t._virtualHandled=!0,i=!0)}},u=function(t){if(i){var n=Am(t,!1),r=e.getBoundingClientRect(),s=r.top,c=r.bottom;n<=s?(o=-Rm(s-n),l()):n>=c?(o=Rm(n-c),l()):a()}};return e.addEventListener("mousedown",c),e.ownerDocument.addEventListener("mouseup",s),e.ownerDocument.addEventListener("mousemove",u),e.ownerDocument.addEventListener("dragend",s),function(){e.removeEventListener("mousedown",c),e.ownerDocument.removeEventListener("mouseup",s),e.ownerDocument.removeEventListener("mousemove",u),e.ownerDocument.removeEventListener("dragend",s),a()}}},[t])}(V,U),Se(function(){function e(e){var t=je&&e.detail<0,n=Pe&&e.detail>0;!B||t||n||e.preventDefault()}var t=U.current;return t.addEventListener("wheel",Le,{passive:!1}),t.addEventListener("DOMMouseScroll",De,{passive:!0}),t.addEventListener("MozMousePixelScroll",e,{passive:!1}),function(){t.removeEventListener("wheel",Le),t.removeEventListener("DOMMouseScroll",De),t.removeEventListener("MozMousePixelScroll",e)}},[B,je,Pe]),Se(function(){if(h){var e=Be(ne);re(e),Te({x:e})}},[xe.width,h]);var Ve=function(){var e,t;null===(e=we.current)||void 0===e||e.delayHidden(),null===(t=$e.current)||void 0===t||t.delayHidden()},We=function(t,n,r,o,i,a,l,s){var c=e.useRef(),u=X(e.useState(null),2),d=u[0],f=u[1];return Se(function(){if(d&&d.times<10){if(!t.current)return void f(function(e){return L({},e)});a();var e=d.targetAlign,s=d.originAlign,c=d.index,u=d.offset,p=t.current.clientHeight,m=!1,g=e,h=null;if(p){for(var v=e||s,b=0,y=0,x=0,C=Math.min(n.length-1,c),w=0;w<=C;w+=1){var S=i(n[w]);y=b;var $=r.get(S);b=x=y+(void 0===$?o:$)}for(var E="top"===v?u:p-u,O=C;O>=0;O-=1){var k=i(n[O]),I=r.get(k);if(void 0===I){m=!0;break}if((E-=I)<=0)break}switch(v){case"top":h=y-u;break;case"bottom":h=x-p+u;break;default:var j=t.current.scrollTop;y<j?g="top":x>j+p&&(g="bottom")}null!==h&&l(h),h!==d.lastTop&&(m=!0)}m&&f(L(L({},d),{},{times:d.times+1,targetAlign:g,lastTop:h}))}},[d,t.current]),function(e){if(null!=e){if(Rn.cancel(c.current),"number"==typeof e)l(e);else if(e&&"object"===F(e)){var t,r=e.align;t="index"in e?e.index:n.findIndex(function(t){return i(t)===e.key});var o=e.offset;f({times:0,index:t,offset:void 0===o?0:o,originAlign:r})}}else s()}}(U,G,R,l,I,function(){return N(!0)},ue,Ve);e.useImperativeHandle(n,function(){return{nativeElement:Q.current,getScrollInfo:Ae,scrollTo:function(e){var t;(t=e)&&"object"===F(t)&&("left"in t||"top"in t)?(void 0!==e.left&&re(Be(e.left)),We(e.top)):We(e)}}}),Se(function(){if(C){var e=G.slice(he,ve+1);C(e,G)}},[he,ve,G]);var qe=function(t,n,r,o){var i=X(e.useMemo(function(){return[new Map,[]]},[t,r.id,o]),2),a=i[0],l=i[1];return function(e){var i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:e,s=a.get(e),c=a.get(i);if(void 0===s||void 0===c)for(var u=t.length,d=l.length;d<u;d+=1){var f,p=t[d],m=n(p);a.set(m,d);var g=null!==(f=r.get(m))&&void 0!==f?f:o;if(l[d]=(l[d-1]||0)+g,m===e&&(s=d),m===i&&(c=d),void 0!==s&&void 0!==c)break}return{top:l[s-1]||0,bottom:l[c]}}}(G,I,R,l),Ge=null==S?void 0:S({start:he,end:ve,virtual:V,offsetX:ne,offsetY:be,rtl:W,getSize:qe}),Xe=function(t,n,r,o,i,a,l,s){var c=s.getKey;return t.slice(n,r+1).map(function(t,r){var s=l(t,n+r,{style:{width:o},offsetX:i}),u=c(t);return e.createElement(km,{key:u,setRef:function(e){return a(t,e)}},s)})}(G,he,ve,h,ne,M,f,ce),Ke=null;a&&(Ke=L(H({},c?"height":"maxHeight",a),_m),B&&(Ke.overflowY="hidden",h&&(Ke.overflowX="hidden"),ie&&(Ke.pointerEvents="none")));var Ue={};return W&&(Ue.dir="rtl"),e.createElement("div",T({ref:Q,style:L(L({},u),{},{position:"relative"}),className:q},Ue,k),e.createElement(Mt,{onResize:function(e){Ce({width:e.offsetWidth,height:e.offsetHeight})}},e.createElement(b,{className:"".concat(o,"-holder"),style:Ke,ref:U,onScroll:function(e){var t=e.currentTarget.scrollTop;t!==J&&ue(t),null==y||y(e),Te()},onMouseEnter:Ve},e.createElement(Om,{prefixCls:o,height:ge,offsetX:ne,offsetY:be,scrollWidth:h,onInnerResize:N,ref:Y,innerProps:w,rtl:W,extra:Ge},Xe))),V&&ge>a&&e.createElement(Tm,{ref:we,prefixCls:o,scrollOffset:J,scrollRange:ge,rtl:W,onScroll:Fe,onStartMove:le,onStopMove:se,spinSize:Oe,containerSize:xe.height,style:null==$?void 0:$.verticalScrollBar,thumbStyle:null==$?void 0:$.verticalScrollBarThumb,showScrollBar:O}),V&&h>xe.width&&e.createElement(Tm,{ref:$e,prefixCls:o,scrollOffset:ne,scrollRange:h,rtl:W,onScroll:Fe,onStartMove:le,onStopMove:se,spinSize:Ee,containerSize:xe.width,horizontal:!0,style:null==$?void 0:$.horizontalScrollBar,thumbStyle:null==$?void 0:$.horizontalScrollBarThumb,showScrollBar:O}))}var Dm=e.forwardRef(Lm);Dm.displayName="List";const Vm=Dm;var Wm=["disabled","title","children","style","className"];function qm(e){return"string"==typeof e||"number"==typeof e}var Gm=function(t,n){var r=e.useContext($p),o=r.prefixCls,i=r.id,a=r.open,l=r.multiple,s=r.mode,c=r.searchValue,u=r.toggleOpen,d=r.notFoundContent,f=r.onPopupScroll,p=e.useContext(mm),m=p.maxCount,g=p.flattenOptions,h=p.onActiveValue,v=p.defaultActiveFirstOption,b=p.onSelect,y=p.menuItemSelectedIcon,x=p.rawValues,C=p.fieldNames,w=p.virtual,S=p.direction,$=p.listHeight,E=p.listItemHeight,O=p.optionRender,k="".concat(o,"-item"),I=ie(function(){return g},[a,g],function(e,t){return t[0]&&e[1]!==t[1]}),j=e.useRef(null),P=e.useMemo(function(){return l&&dm(m)&&(null==x?void 0:x.size)>=m},[l,m,null==x?void 0:x.size]),M=function(e){e.preventDefault()},N=function(e){var t;null===(t=j.current)||void 0===t||t.scrollTo("number"==typeof e?{index:e}:e)},R=e.useCallback(function(e){return"combobox"!==s&&x.has(e)},[s,ye(x).toString(),x.size]),z=function(e){for(var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1,n=I.length,r=0;r<n;r+=1){var o=(e+r*t+n)%n,i=I[o]||{},a=i.group,l=i.data;if(!a&&(null==l||!l.disabled)&&(R(l.value)||!P))return o}return-1},F=X(e.useState(function(){return z(0)}),2),B=F[0],_=F[1],L=function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];_(e);var n={source:t?"keyboard":"mouse"},r=I[e];r?h(r.value,e,n):h(null,-1,n)};(0,e.useEffect)(function(){L(!1!==v?z(0):-1)},[I.length,c]);var V=e.useCallback(function(e){return"combobox"===s?String(e).toLowerCase()===c.toLowerCase():x.has(e)},[s,c,ye(x).toString(),x.size]);(0,e.useEffect)(function(){var e,t=setTimeout(function(){if(!l&&a&&1===x.size){var e=Array.from(x)[0],t=I.findIndex(function(t){var n=t.data;return c?String(n.value).startsWith(c):n.value===e});-1!==t&&(L(t),N(t))}});return a&&(null===(e=j.current)||void 0===e||e.scrollTo(void 0)),function(){return clearTimeout(t)}},[a,c]);var W=function(e){void 0!==e&&b(e,{selected:!x.has(e)}),l||u(!1)};if(e.useImperativeHandle(n,function(){return{onKeyDown:function(e){var t=e.which,n=e.ctrlKey;switch(t){case kp.N:case kp.P:case kp.UP:case kp.DOWN:var r=0;if(t===kp.UP?r=-1:t===kp.DOWN?r=1:/(mac\sos|macintosh)/i.test(navigator.appVersion)&&n&&(t===kp.N?r=1:t===kp.P&&(r=-1)),0!==r){var o=z(B+r,r);N(o),L(o,!0)}break;case kp.TAB:case kp.ENTER:var i,l=I[B];!l||null!=l&&null!==(i=l.data)&&void 0!==i&&i.disabled||P?W(void 0):W(l.value),a&&e.preventDefault();break;case kp.ESC:u(!1),a&&e.stopPropagation()}},onKeyUp:function(){},scrollTo:function(e){N(e)}}}),0===I.length)return e.createElement("div",{role:"listbox",id:"".concat(i,"_list"),className:"".concat(k,"-empty"),onMouseDown:M},d);var q=Object.keys(C).map(function(e){return C[e]}),G=function(e){return e.label};function K(e,t){return{role:e.group?"presentation":"option",id:"".concat(i,"_list_").concat(t)}}var U=function(t){var n=I[t];if(!n)return null;var r=n.data||{},o=r.value,i=n.group,a=Tf(r,!0),l=G(n);return n?e.createElement("div",T({"aria-label":"string"!=typeof l||i?null:l},a,{key:t},K(n,t),{"aria-selected":V(o)}),o):null},Y={role:"listbox",id:"".concat(i,"_list")};return e.createElement(e.Fragment,null,w&&e.createElement("div",T({},Y,{style:{height:0,width:0,overflow:"hidden"}}),U(B-1),U(B),U(B+1)),e.createElement(Vm,{itemKey:"key",ref:j,data:I,height:$,itemHeight:E,fullHeight:!1,onMouseDown:M,onScroll:f,virtual:w,direction:S,innerProps:w?null:Y},function(t,n){var r=t.group,o=t.groupOption,i=t.data,a=t.label,l=t.value,s=i.key;if(r){var c,u=null!==(c=i.title)&&void 0!==c?c:qm(a)?a.toString():void 0;return e.createElement("div",{className:A()(k,"".concat(k,"-group"),i.className),title:u},void 0!==a?a:s)}var d=i.disabled,f=i.title,p=(i.children,i.style),m=i.className,g=ii(D(i,Wm),q),h=R(l),v=d||!h&&P,b="".concat(k,"-option"),x=A()(k,b,m,H(H(H(H({},"".concat(b,"-grouped"),o),"".concat(b,"-active"),B===n&&!v),"".concat(b,"-disabled"),v),"".concat(b,"-selected"),h)),C=G(t),S=!y||"function"==typeof y||h,$="number"==typeof C?C:C||l,E=qm($)?$.toString():void 0;return void 0!==f&&(E=f),e.createElement("div",T({},Tf(g),w?{}:K(t,n),{"aria-selected":V(l),className:x,title:E,onMouseMove:function(){B===n||v||L(n)},onClick:function(){v||W(l)},style:p}),e.createElement("div",{className:"".concat(b,"-content")},"function"==typeof O?O(t,{index:n}):$),e.isValidElement(y)||h,S&&e.createElement(Sp,{className:"".concat(k,"-option-state"),customizeIcon:y,customizeIconProps:{value:l,disabled:v,isSelected:h}},h?"✓":null))}))};const Xm=e.forwardRef(Gm);function Km(e,t){return Qp(e).join("").toUpperCase().includes(t)}var Um=0,Ym=Y();var Qm=["children","value"],Zm=["children"];function Jm(t){var n=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return De(t).map(function(t,r){if(!e.isValidElement(t)||!t.type)return null;var o=t,i=o.type.isSelectOptGroup,a=o.key,l=o.props,s=l.children,c=D(l,Zm);return n||!i?function(e){var t=e,n=t.key,r=t.props,o=r.children,i=r.value;return L({key:n,value:void 0!==i?i:n,children:o},D(r,Qm))}(t):L(L({key:"__RC_SELECT_GRP__".concat(null===a?r:a,"__"),label:a},c),{},{options:Jm(s)})}).filter(function(e){return e})}const eg=function(t,n,r,o,i){return e.useMemo(function(){var e=t;!t&&(e=Jm(n));var a=new Map,l=new Map,s=function(e,t,n){n&&"string"==typeof n&&e.set(t[n],t)};return function e(t){for(var n=arguments.length>1&&void 0!==arguments[1]&&arguments[1],c=0;c<t.length;c+=1){var u=t[c];!u[r.options]||n?(a.set(u[r.value],u),s(l,u,r.label),s(l,u,o),s(l,u,i)):e(u[r.options],!0)}}(e),{options:e,valueOptions:a,labelOptions:l}},[t,n,r,o,i])};function tg(t){var n=e.useRef();n.current=t;var r=e.useCallback(function(){return n.current.apply(n,arguments)},[]);return r}var ng=["id","mode","prefixCls","backfill","fieldNames","inputValue","searchValue","onSearch","autoClearSearchValue","onSelect","onDeselect","dropdownMatchSelectWidth","filterOption","filterSort","optionFilterProp","optionLabelProp","options","optionRender","children","defaultActiveFirstOption","menuItemSelectedIcon","virtual","direction","listHeight","listItemHeight","labelRender","value","defaultValue","labelInValue","onChange","maxCount"],rg=["inputValue"],og=e.forwardRef(function(t,n){var r=t.id,o=t.mode,i=t.prefixCls,a=void 0===i?"rc-select":i,l=t.backfill,s=t.fieldNames,c=t.inputValue,u=t.searchValue,d=t.onSearch,f=t.autoClearSearchValue,p=void 0===f||f,m=t.onSelect,g=t.onDeselect,h=t.dropdownMatchSelectWidth,v=void 0===h||h,b=t.filterOption,y=t.filterSort,x=t.optionFilterProp,C=t.optionLabelProp,w=t.options,S=t.optionRender,$=t.children,E=t.defaultActiveFirstOption,O=t.menuItemSelectedIcon,k=t.virtual,I=t.direction,j=t.listHeight,P=void 0===j?200:j,M=t.listItemHeight,N=void 0===M?20:M,R=t.labelRender,A=t.value,z=t.defaultValue,B=t.labelInValue,_=t.onChange,V=t.maxCount,W=D(t,ng),q=function(t){var n=X(e.useState(),2),r=n[0],o=n[1];return e.useEffect(function(){var e;o("rc_select_".concat((Ym?(e=Um,Um+=1):e="TEST_OR_SSR",e)))},[]),t||r}(r),G=bm(o),K=!(w||!$),U=e.useMemo(function(){return(void 0!==b||"combobox"!==o)&&b},[b,o]),Y=e.useMemo(function(){return fm(s,K)},[JSON.stringify(s),K]),Q=X(Gt("",{value:void 0!==u?u:c,postState:function(e){return e||""}}),2),Z=Q[0],J=Q[1],ee=eg(w,$,Y,x,C),te=ee.valueOptions,ne=ee.labelOptions,re=ee.options,oe=e.useCallback(function(e){return Qp(e).map(function(e){var t,n,r,o,i,a;!function(e){return!e||"object"!==F(e)}(e)?(r=e.key,n=e.label,t=null!==(a=e.value)&&void 0!==a?a:r):t=e;var l,s=te.get(t);return s&&(void 0===n&&(n=null==s?void 0:s[C||Y.label]),void 0===r&&(r=null!==(l=null==s?void 0:s.key)&&void 0!==l?l:t),o=null==s?void 0:s.disabled,i=null==s?void 0:s.title),{label:n,value:t,key:r,disabled:o,title:i}})},[Y,C,te]),ie=X(Gt(z,{value:A}),2),ae=ie[0],le=ie[1],se=e.useMemo(function(){var e,t=oe(G&&null===ae?[]:ae);return"combobox"===o&&function(e){return!e&&0!==e}(null===(e=t[0])||void 0===e?void 0:e.value)?[]:t},[ae,oe,o,G]),ce=function(t,n){var r=e.useRef({values:new Map,options:new Map});return[e.useMemo(function(){var e=r.current,o=e.values,i=e.options,a=t.map(function(e){var t;return void 0===e.label?L(L({},e),{},{label:null===(t=o.get(e.value))||void 0===t?void 0:t.label}):e}),l=new Map,s=new Map;return a.forEach(function(e){l.set(e.value,e),s.set(e.value,n.get(e.value)||i.get(e.value))}),r.current.values=l,r.current.options=s,a},[t,n]),e.useCallback(function(e){return n.get(e)||r.current.options.get(e)},[n])]}(se,te),ue=X(ce,2),de=ue[0],fe=ue[1],pe=e.useMemo(function(){if(!o&&1===de.length){var e=de[0];if(null===e.value&&(null===e.label||void 0===e.label))return[]}return de.map(function(e){var t;return L(L({},e),{},{label:null!==(t="function"==typeof R?R(e):e.label)&&void 0!==t?t:e.value})})},[o,de,R]),me=e.useMemo(function(){return new Set(de.map(function(e){return e.value}))},[de]);e.useEffect(function(){if("combobox"===o){var e,t=null===(e=de[0])||void 0===e?void 0:e.value;J(function(e){return null!=e}(t)?String(t):"")}},[de]);var ge=tg(function(e,t){var n=null!=t?t:e;return H(H({},Y.value,e),Y.label,n)}),he=function(t,n,r,o,i){return e.useMemo(function(){if(!r||!1===o)return t;var e=n.options,a=n.label,l=n.value,s=[],c="function"==typeof o,u=r.toUpperCase(),d=c?o:function(t,n){return i?Km(n[i],u):n[e]?Km(n["children"!==a?a:"label"],u):Km(n[l],u)},f=c?function(e){return pm(e)}:function(e){return e};return t.forEach(function(t){if(t[e])if(d(r,f(t)))s.push(t);else{var n=t[e].filter(function(e){return d(r,f(e))});n.length&&s.push(L(L({},t),{},H({},e,n)))}else d(r,f(t))&&s.push(t)}),s},[t,o,i,r,n])}(e.useMemo(function(){if("tags"!==o)return re;var e=ye(re);return ye(de).sort(function(e,t){return e.value<t.value?-1:1}).forEach(function(t){var n=t.value;(function(e){return te.has(e)})(n)||e.push(ge(n,t.label))}),e},[ge,re,te,de,o]),Y,Z,U,x),ve=e.useMemo(function(){return"tags"!==o||!Z||he.some(function(e){return e[x||"value"]===Z})||he.some(function(e){return e[Y.value]===Z})?he:[ge(Z)].concat(ye(he))},[ge,x,o,he,Z,Y]),be=function e(t){return ye(t).sort(function(e,t){return y(e,t,{searchValue:Z})}).map(function(t){return Array.isArray(t.options)?L(L({},t),{},{options:t.options.length>0?e(t.options):t.options}):t})},xe=e.useMemo(function(){return y?be(ve):ve},[ve,y,Z]),Ce=e.useMemo(function(){return function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.fieldNames,r=t.childrenAsData,o=[],i=fm(n,!1),a=i.label,l=i.value,s=i.options,c=i.groupLabel;return function e(t,n){Array.isArray(t)&&t.forEach(function(t){if(n||!(s in t)){var i=t[l];o.push({key:um(t,o.length),groupOption:n,data:t,label:t[a],value:i})}else{var u=t[c];void 0===u&&r&&(u=t.label),o.push({key:um(t,o.length),group:!0,data:t,label:u}),e(t[s],!0)}})}(e,!1),o}(xe,{fieldNames:Y,childrenAsData:K})},[xe,Y,K]),we=function(e){var t=oe(e);if(le(t),_&&(t.length!==de.length||t.some(function(e,t){var n;return(null===(n=de[t])||void 0===n?void 0:n.value)!==(null==e?void 0:e.value)}))){var n=B?t:t.map(function(e){return e.value}),r=t.map(function(e){return pm(fe(e.value))});_(G?n:n[0],G?r:r[0])}},Se=X(e.useState(null),2),$e=Se[0],Ee=Se[1],Oe=X(e.useState(0),2),ke=Oe[0],Ie=Oe[1],je=void 0!==E?E:"combobox"!==o,Pe=e.useCallback(function(e,t){var n=(arguments.length>2&&void 0!==arguments[2]?arguments[2]:{}).source,r=void 0===n?"keyboard":n;Ie(t),l&&"combobox"===o&&null!==e&&"keyboard"===r&&Ee(String(e))},[l,o]),Me=function(e,t,n){var r=function(){var t,n=fe(e);return[B?{label:null==n?void 0:n[Y.label],value:e,key:null!==(t=null==n?void 0:n.key)&&void 0!==t?t:e}:e,pm(n)]};if(t&&m){var o=X(r(),2),i=o[0],a=o[1];m(i,a)}else if(!t&&g&&"clear"!==n){var l=X(r(),2),s=l[0],c=l[1];g(s,c)}},Ne=tg(function(e,t){var n,r=!G||t.selected;n=r?G?[].concat(ye(de),[e]):[e]:de.filter(function(t){return t.value!==e}),we(n),Me(e,r),"combobox"===o?Ee(""):bm&&!p||(J(""),Ee(""))}),Re=e.useMemo(function(){var e=!1!==k&&!1!==v;return L(L({},ee),{},{flattenOptions:Ce,onActiveValue:Pe,defaultActiveFirstOption:je,onSelect:Ne,menuItemSelectedIcon:O,rawValues:me,fieldNames:Y,virtual:e,direction:I,listHeight:P,listItemHeight:N,childrenAsData:K,maxCount:V,optionRender:S})},[V,ee,Ce,Pe,je,Ne,O,me,Y,k,v,I,P,N,K,S]);return e.createElement(mm.Provider,{value:Re},e.createElement(xm,T({},W,{id:q,prefixCls:a,ref:n,omitDomProps:rg,mode:o,displayValues:pe,onDisplayValuesChange:function(e,t){we(e);var n=t.type,r=t.values;"remove"!==n&&"clear"!==n||r.forEach(function(e){Me(e.value,!1,n)})},direction:I,searchValue:Z,onSearch:function(e,t){if(J(e),Ee(null),"submit"!==t.source)"blur"!==t.source&&("combobox"===o&&we(e),null==d||d(e));else{var n=(e||"").trim();if(n){var r=Array.from(new Set([].concat(ye(me),[n])));we(r),Me(n,!0),J("")}}},autoClearSearchValue:p,onSearchSplit:function(e){var t=e;"tags"!==o&&(t=e.map(function(e){var t=ne.get(e);return null==t?void 0:t.value}).filter(function(e){return void 0!==e}));var n=Array.from(new Set([].concat(ye(me),ye(t))));we(n),n.forEach(function(e){Me(e,!0)})},dropdownMatchSelectWidth:v,OptionList:Xm,emptyOptions:!Ce.length,activeValue:$e,activeDescendantId:"".concat(q,"_list_").concat(ke)})))}),ig=og;ig.Option=$m,ig.OptGroup=wm;const ag=ig,lg=(0,e.createContext)(void 0),sg=L(L({},{yearFormat:"YYYY",dayFormat:"D",cellMeridiemFormat:"A",monthBeforeYear:!0}),{},{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"}),cg={placeholder:"Select time",rangePlaceholder:["Start time","End time"]},ug={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"]},sg),timePickerLocale:Object.assign({},cg)},dg="${label} is not a valid ${type}",fg={locale:"en",Pagination:{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"},DatePicker:ug,TimePicker:cg,Calendar:ug,global:{placeholder:"Please select",close:"Close"},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:dg,method:dg,array:dg,object:dg,number:dg,date:dg,boolean:dg,integer:dg,float:dg,regexp:dg,email:dg,url:dg,hex:dg},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"}};let pg=Object.assign({},fg.Modal),mg=[];const gg=()=>mg.reduce((e,t)=>Object.assign(Object.assign({},e),t),fg.Modal),hg=(0,e.createContext)(void 0),vg=t=>{const{locale:n={},children:r,_ANT_MARK__:o}=t;e.useEffect(()=>{const e=function(e){if(e){const t=Object.assign({},e);return mg.push(t),pg=gg(),()=>{mg=mg.filter(e=>e!==t),pg=gg()}}pg=Object.assign({},fg.Modal)}(null==n?void 0:n.Modal);return e},[n]);const i=e.useMemo(()=>Object.assign(Object.assign({},n),{exist:!0}),[n]);return e.createElement(hg.Provider,{value:i},r)},bg=`-ant-${Date.now()}-${Math.random()}`;const yg=Object.assign({},e),{useId:xg}=yg,Cg=void 0===xg?()=>"":xg,wg=e.createContext(!0);function Sg(t){const n=e.useContext(wg),{children:r}=t,[,o]=Is(),{motion:i}=o,a=e.useRef(!1);return a.current||(a.current=n!==i),a.current?e.createElement(wg.Provider,{value:i},e.createElement(Lt,{motion:i},r)):r}const $g=()=>null;const Eg=["getTargetContainer","getPopupContainer","renderEmpty","input","pagination","form","select","button"];let Og,kg,Ig,jg;function Pg(){return Og||pi}function Mg(){return kg||mi}const Ng=()=>({getPrefixCls:(e,t)=>t||(e?`${Pg()}-${e}`:Pg()),getIconPrefixCls:Mg,getRootPrefixCls:()=>Og||Pg(),getTheme:()=>Ig,holderRender:jg}),Rg=t=>{const{children:n,csp:r,autoInsertSpaceInButton:o,alert:i,anchor:a,form:l,locale:s,componentSize:c,direction:u,space:d,splitter:f,virtual:p,dropdownMatchSelectWidth:m,popupMatchSelectWidth:g,popupOverflow:h,legacyLocale:v,parentContext:b,iconPrefixCls:y,theme:x,componentDisabled:C,segmented:w,statistic:S,spin:$,calendar:E,carousel:O,cascader:k,collapse:I,typography:j,checkbox:P,descriptions:M,divider:N,drawer:R,skeleton:A,steps:z,image:T,layout:F,list:B,mentions:H,modal:_,progress:L,result:D,slider:V,breadcrumb:W,menu:q,pagination:G,input:X,textArea:K,empty:U,badge:Y,radio:Q,rate:Z,switch:J,transfer:ee,avatar:te,message:ne,tag:re,table:oe,card:ae,tabs:le,timeline:se,timePicker:ce,upload:ue,notification:de,tree:fe,colorPicker:pe,datePicker:me,rangePicker:ge,flex:he,wave:ve,dropdown:be,warning:ye,tour:xe,tooltip:Ce,popover:we,popconfirm:Se,floatButton:$e,floatButtonGroup:Ee,variant:Oe,inputNumber:ke,treeSelect:Ie}=t,je=e.useCallback((e,n)=>{const{prefixCls:r}=t;if(n)return n;const o=r||b.getPrefixCls("");return e?`${o}-${e}`:o},[b.getPrefixCls,t.prefixCls]),Pe=y||b.iconPrefixCls||mi,Me=r||b.csp;((e,t)=>{const[n,r]=Is();Za({theme:n,token:r,hashId:"",path:["ant-design-icons",e],nonce:()=>null==t?void 0:t.nonce,layer:{name:"antd"}},()=>$l(e))})(Pe,Me);const Ne=function(e,t,n){var r;dc();const o=e||{},i=!1!==o.inherit&&t?t:Object.assign(Object.assign({},kl),{hashed:null!==(r=null==t?void 0:t.hashed)&&void 0!==r?r:kl.hashed,cssVar:null==t?void 0:t.cssVar}),a=Cg();return ie(()=>{var r,l;if(!e)return t;const s=Object.assign({},i.components);Object.keys(e.components||{}).forEach(t=>{s[t]=Object.assign(Object.assign({},s[t]),e.components[t])});const c=`css-var-${a.replace(/:/g,"")}`,u=(null!==(r=o.cssVar)&&void 0!==r?r:i.cssVar)&&Object.assign(Object.assign(Object.assign({prefix:null==n?void 0:n.prefixCls},"object"==typeof i.cssVar?i.cssVar:{}),"object"==typeof o.cssVar?o.cssVar:{}),{key:"object"==typeof o.cssVar&&(null===(l=o.cssVar)||void 0===l?void 0:l.key)||c});return Object.assign(Object.assign(Object.assign({},i),o),{token:Object.assign(Object.assign({},i.token),o.token),components:s,cssVar:u})},[o,i],(e,t)=>e.some((e,n)=>{const r=t[n];return!Lr(e,r,!0)}))}(x,b.theme,{prefixCls:je("")}),Re={csp:Me,autoInsertSpaceInButton:o,alert:i,anchor:a,locale:s||v,direction:u,space:d,splitter:f,virtual:p,popupMatchSelectWidth:null!=g?g:m,popupOverflow:h,getPrefixCls:je,iconPrefixCls:Pe,theme:Ne,segmented:w,statistic:S,spin:$,calendar:E,carousel:O,cascader:k,collapse:I,typography:j,checkbox:P,descriptions:M,divider:N,drawer:R,skeleton:A,steps:z,image:T,input:X,textArea:K,layout:F,list:B,mentions:H,modal:_,progress:L,result:D,slider:V,breadcrumb:W,menu:q,pagination:G,empty:U,badge:Y,radio:Q,rate:Z,switch:J,transfer:ee,avatar:te,message:ne,tag:re,table:oe,card:ae,tabs:le,timeline:se,timePicker:ce,upload:ue,notification:de,tree:fe,colorPicker:pe,datePicker:me,rangePicker:ge,flex:he,wave:ve,dropdown:be,warning:ye,tour:xe,tooltip:Ce,popover:we,popconfirm:Se,floatButton:$e,floatButtonGroup:Ee,variant:Oe,inputNumber:ke,treeSelect:Ie},Ae=Object.assign({},b);Object.keys(Re).forEach(e=>{void 0!==Re[e]&&(Ae[e]=Re[e])}),Eg.forEach(e=>{const n=t[e];n&&(Ae[e]=n)}),void 0!==o&&(Ae.button=Object.assign({autoInsertSpace:o},Ae.button));const ze=ie(()=>Ae,Ae,(e,t)=>{const n=Object.keys(e),r=Object.keys(t);return n.length!==r.length||n.some(n=>e[n]!==t[n])}),{layer:Te}=e.useContext(Ni),Fe=e.useMemo(()=>({prefixCls:Pe,csp:Me,layer:Te?"antd":void 0}),[Pe,Me,Te]);let Be=e.createElement(e.Fragment,null,e.createElement($g,{dropdownMatchSelectWidth:m}),n);const He=e.useMemo(()=>{var e,t,n,r;return Jt((null===(e=fg.Form)||void 0===e?void 0:e.defaultValidateMessages)||{},(null===(n=null===(t=ze.locale)||void 0===t?void 0:t.Form)||void 0===n?void 0:n.defaultValidateMessages)||{},(null===(r=ze.form)||void 0===r?void 0:r.validateMessages)||{},(null==l?void 0:l.validateMessages)||{})},[ze,null==l?void 0:l.validateMessages]);Object.keys(He).length>0&&(Be=e.createElement(lg.Provider,{value:He},Be)),s&&(Be=e.createElement(vg,{locale:s,_ANT_MARK__:"internalMark"},Be)),(Pe||Me)&&(Be=e.createElement(ku.Provider,{value:Fe},Be)),c&&(Be=e.createElement(Ci,{size:c},Be)),Be=e.createElement(Sg,null,Be);const _e=e.useMemo(()=>{const e=Ne||{},{algorithm:t,token:n,components:r,cssVar:o}=e,i=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(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n}(e,["algorithm","token","components","cssVar"]),a=t&&(!Array.isArray(t)||t.length>0)?Fi(t):ys,l={};Object.entries(r||{}).forEach(([e,t])=>{const n=Object.assign({},t);"algorithm"in n&&(!0===n.algorithm?n.theme=a:(Array.isArray(n.algorithm)||"function"==typeof n.algorithm)&&(n.theme=Fi(n.algorithm)),delete n.algorithm),l[e]=n});const s=Object.assign(Object.assign({},Ol),n);return Object.assign(Object.assign({},i),{theme:a,token:s,components:l,override:Object.assign({override:s},l),cssVar:o})},[Ne]);return x&&(Be=e.createElement(Il.Provider,{value:_e},Be)),ze.warning&&(Be=e.createElement(uc.Provider,{value:ze.warning},Be)),void 0!==C&&(Be=e.createElement(bu,{disabled:C},Be)),e.createElement(hi.Provider,{value:ze},Be)},Ag=t=>{const n=e.useContext(hi),r=e.useContext(hg);return e.createElement(Rg,Object.assign({parentContext:n,legacyLocale:r},t))};Ag.ConfigContext=hi,Ag.SizeContext=wi,Ag.config=e=>{const{prefixCls:t,iconPrefixCls:n,theme:r,holderRender:o}=e;void 0!==t&&(Og=t),void 0!==n&&(kg=n),"holderRender"in e&&(jg=o),r&&(function(e){return Object.keys(e).some(e=>e.endsWith("Color"))}(r)?function(e,t){const n=function(e,t){const n={},r=(e,t)=>{let n=e.clone();return n=(null==t?void 0:t(n))||n,n.toRgbString()},o=(e,t)=>{const o=new Rl(e),i=Bl(o.toRgbString());n[`${t}-color`]=r(o),n[`${t}-color-disabled`]=i[1],n[`${t}-color-hover`]=i[4],n[`${t}-color-active`]=i[6],n[`${t}-color-outline`]=o.clone().setA(.2).toRgbString(),n[`${t}-color-deprecated-bg`]=i[0],n[`${t}-color-deprecated-border`]=i[2]};if(t.primaryColor){o(t.primaryColor,"primary");const e=new Rl(t.primaryColor),i=Bl(e.toRgbString());i.forEach((e,t)=>{n[`primary-${t+1}`]=e}),n["primary-color-deprecated-l-35"]=r(e,e=>e.lighten(35)),n["primary-color-deprecated-l-20"]=r(e,e=>e.lighten(20)),n["primary-color-deprecated-t-20"]=r(e,e=>e.tint(20)),n["primary-color-deprecated-t-50"]=r(e,e=>e.tint(50)),n["primary-color-deprecated-f-12"]=r(e,e=>e.setA(.12*e.a));const a=new Rl(i[0]);n["primary-color-active-deprecated-f-30"]=r(a,e=>e.setA(.3*e.a)),n["primary-color-active-deprecated-d-02"]=r(a,e=>e.darken(2))}return t.successColor&&o(t.successColor,"success"),t.warningColor&&o(t.warningColor,"warning"),t.errorColor&&o(t.errorColor,"error"),t.infoColor&&o(t.infoColor,"info"),`\n :root {\n ${Object.keys(n).map(t=>`--${e}-${t}: ${n[t]};`).join("\n")}\n }\n `.trim()}(e,t);Y()&&Ae(n,`${bg}-dynamic-theme`)}(Pg(),r):Ig=r)},Ag.useConfig=function(){return{componentDisabled:(0,e.useContext)(yu),componentSize:(0,e.useContext)(wi)}},Object.defineProperty(Ag,"SizeContext",{get:()=>wi});const zg=Ag,Tg=(t,n,r,o,i)=>function(t){return n=>e.createElement(zg,{theme:{token:{motion:!1,zIndexPopupBase:0}}},e.createElement(t,Object.assign({},n)))}(a=>{const{prefixCls:l,style:s}=a,c=e.useRef(null),[u,d]=e.useState(0),[f,p]=e.useState(0),[m,g]=Gt(!1,{value:a.open}),{getPrefixCls:h}=e.useContext(hi),v=h(o||"select",l);e.useEffect(()=>{if(g(!0),"undefined"!=typeof ResizeObserver){const e=new ResizeObserver(e=>{const t=e[0].target;d(t.offsetHeight+8),p(t.offsetWidth)}),t=setInterval(()=>{var n;const r=i?`.${i(v)}`:`.${v}-dropdown`,o=null===(n=c.current)||void 0===n?void 0:n.querySelector(r);o&&(clearInterval(t),e.observe(o))},10);return()=>{clearInterval(t),e.disconnect()}}},[v]);let b=Object.assign(Object.assign({},a),{style:Object.assign(Object.assign({},s),{margin:0}),open:m,visible:m,getPopupContainer:()=>c.current});r&&(b=r(b)),n&&Object.assign(b,{[n]:{overflow:{adjustX:!1,adjustY:!1}}});const y={paddingBottom:u,position:"relative",minWidth:f};return e.createElement("div",{ref:c,style:y},e.createElement(t,Object.assign({},b)))}),Fg=(t,n)=>{const r=e.useContext(hg);return[e.useMemo(()=>{var e;const o=n||fg[t],i=null!==(e=null==r?void 0:r[t])&&void 0!==e?e:{};return Object.assign(Object.assign({},"function"==typeof o?o():o),i||{})},[t,n,r]),e.useMemo(()=>{const e=null==r?void 0:r.locale;return(null==r?void 0:r.exist)&&!e?fg.locale:e},[r])]},Bg=()=>{const[,t]=Is(),[n]=Fg("Empty"),r=new Rl(t.colorBgBase).toHsl().l<.5?{opacity:.65}:{};return e.createElement("svg",{style:r,width:"184",height:"152",viewBox:"0 0 184 152",xmlns:"http://www.w3.org/2000/svg"},e.createElement("title",null,(null==n?void 0:n.description)||"Empty"),e.createElement("g",{fill:"none",fillRule:"evenodd"},e.createElement("g",{transform:"translate(24 31.67)"},e.createElement("ellipse",{fillOpacity:".8",fill:"#F5F5F7",cx:"67.797",cy:"106.89",rx:"67.797",ry:"12.668"}),e.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"}),e.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)"}),e.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"}),e.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"})),e.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"}),e.createElement("g",{transform:"translate(149.65 15.383)",fill:"#FFF"},e.createElement("ellipse",{cx:"20.654",cy:"3.167",rx:"2.849",ry:"2.815"}),e.createElement("path",{d:"M5.698 5.63H0L2.898.704zM9.259.704h4.985V5.63H9.259z"}))))},Hg=()=>{const[,t]=Is(),[n]=Fg("Empty"),{colorFill:r,colorFillTertiary:o,colorFillQuaternary:i,colorBgContainer:a}=t,{borderColor:l,shadowColor:s,contentColor:c}=(0,e.useMemo)(()=>({borderColor:new Rl(r).onBackground(a).toHexString(),shadowColor:new Rl(o).onBackground(a).toHexString(),contentColor:new Rl(i).onBackground(a).toHexString()}),[r,o,i,a]);return e.createElement("svg",{width:"64",height:"41",viewBox:"0 0 64 41",xmlns:"http://www.w3.org/2000/svg"},e.createElement("title",null,(null==n?void 0:n.description)||"Empty"),e.createElement("g",{transform:"translate(0 1)",fill:"none",fillRule:"evenodd"},e.createElement("ellipse",{fill:s,cx:"32",cy:"33",rx:"32",ry:"7"}),e.createElement("g",{fillRule:"nonzero",stroke:l},e.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"}),e.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:c}))))},_g=js("Empty",e=>{const{componentCls:t,controlHeightLG:n,calc:r}=e;return(e=>{const{componentCls:t,margin:n,marginXS:r,marginXL:o,fontSize:i,lineHeight:a}=e;return{[t]:{marginInline:r,fontSize:i,lineHeight:a,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:o,color:e.colorTextDescription,[`${t}-description`]:{color:e.colorTextDescription},[`${t}-image`]:{height:e.emptyImgHeightMD}},"&-small":{marginBlock:r,color:e.colorTextDescription,[`${t}-image`]:{height:e.emptyImgHeightSM}}}}})(pl(e,{emptyImgCls:`${t}-img`,emptyImgHeight:r(n).mul(2.5).equal(),emptyImgHeightMD:n,emptyImgHeightSM:r(n).mul(.875).equal()}))});const Lg=e.createElement(Bg,null),Dg=e.createElement(Hg,null),Vg=t=>{var n;const{className:r,rootClassName:o,prefixCls:i,image:a,description:l,children:s,imageStyle:c,style:u,classNames:d,styles:f}=t,p=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(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n}(t,["className","rootClassName","prefixCls","image","description","children","imageStyle","style","classNames","styles"]),{getPrefixCls:m,direction:g,className:h,style:v,classNames:b,styles:y,image:x}=yi("empty"),C=m("empty",i),[w,S,$]=_g(C),[E]=Fg("Empty"),O=void 0!==l?l:null==E?void 0:E.description,k="string"==typeof O?O:"empty",I=null!==(n=null!=a?a:x)&&void 0!==n?n:Lg;let j=null;return j="string"==typeof I?e.createElement("img",{draggable:!1,alt:k,src:I}):I,w(e.createElement("div",Object.assign({className:A()(S,$,C,h,{[`${C}-normal`]:I===Dg,[`${C}-rtl`]:"rtl"===g},r,o,b.root,null==d?void 0:d.root),style:Object.assign(Object.assign(Object.assign(Object.assign({},y.root),v),null==f?void 0:f.root),u)},p),e.createElement("div",{className:A()(`${C}-image`,b.image,null==d?void 0:d.image),style:Object.assign(Object.assign(Object.assign({},c),y.image),null==f?void 0:f.image)},j),O&&e.createElement("div",{className:A()(`${C}-description`,b.description,null==d?void 0:d.description),style:Object.assign(Object.assign({},y.description),null==f?void 0:f.description)},O),s&&e.createElement("div",{className:A()(`${C}-footer`,b.footer,null==d?void 0:d.footer),style:Object.assign(Object.assign({},y.footer),null==f?void 0:f.footer)},s)))};Vg.PRESENTED_IMAGE_DEFAULT=Lg,Vg.PRESENTED_IMAGE_SIMPLE=Dg;const Wg=Vg,qg=n=>{const{componentName:r}=n,{getPrefixCls:o}=(0,e.useContext)(hi),i=o("empty");switch(r){case"Table":case"List":return t().createElement(Wg,{image:Wg.PRESENTED_IMAGE_SIMPLE});case"Select":case"TreeSelect":case"Cascader":case"Transfer":case"Mentions":return t().createElement(Wg,{image:Wg.PRESENTED_IMAGE_SIMPLE,className:`${i}-small`});case"Table.filter":return null;default:return t().createElement(Wg,null)}},Gg=function(e,t){return e||(e=>{const t={overflow:{adjustX:!0,adjustY:!0,shiftY:!0},htmlRegion:"scroll"===e?"scroll":"visible",dynamicInset:!0};return{bottomLeft:Object.assign(Object.assign({},t),{points:["tl","bl"],offset:[0,4]}),bottomRight:Object.assign(Object.assign({},t),{points:["tr","br"],offset:[0,4]}),topLeft:Object.assign(Object.assign({},t),{points:["bl","tl"],offset:[0,-4]}),topRight:Object.assign(Object.assign({},t),{points:["br","tr"],offset:[0,-4]})}})(t)},Xg=new tl("antSlideUpIn",{"0%":{transform:"scaleY(0.8)",transformOrigin:"0% 0%",opacity:0},"100%":{transform:"scaleY(1)",transformOrigin:"0% 0%",opacity:1}}),Kg=new tl("antSlideUpOut",{"0%":{transform:"scaleY(1)",transformOrigin:"0% 0%",opacity:1},"100%":{transform:"scaleY(0.8)",transformOrigin:"0% 0%",opacity:0}}),Ug=new tl("antSlideDownIn",{"0%":{transform:"scaleY(0.8)",transformOrigin:"100% 100%",opacity:0},"100%":{transform:"scaleY(1)",transformOrigin:"100% 100%",opacity:1}}),Yg=new tl("antSlideDownOut",{"0%":{transform:"scaleY(1)",transformOrigin:"100% 100%",opacity:1},"100%":{transform:"scaleY(0.8)",transformOrigin:"100% 100%",opacity:0}}),Qg=new tl("antSlideLeftIn",{"0%":{transform:"scaleX(0.8)",transformOrigin:"0% 0%",opacity:0},"100%":{transform:"scaleX(1)",transformOrigin:"0% 0%",opacity:1}}),Zg=new tl("antSlideLeftOut",{"0%":{transform:"scaleX(1)",transformOrigin:"0% 0%",opacity:1},"100%":{transform:"scaleX(0.8)",transformOrigin:"0% 0%",opacity:0}}),Jg=new tl("antSlideRightIn",{"0%":{transform:"scaleX(0.8)",transformOrigin:"100% 0%",opacity:0},"100%":{transform:"scaleX(1)",transformOrigin:"100% 0%",opacity:1}}),eh=new tl("antSlideRightOut",{"0%":{transform:"scaleX(1)",transformOrigin:"100% 0%",opacity:1},"100%":{transform:"scaleX(0.8)",transformOrigin:"100% 0%",opacity:0}}),th={"slide-up":{inKeyframes:Xg,outKeyframes:Kg},"slide-down":{inKeyframes:Ug,outKeyframes:Yg},"slide-left":{inKeyframes:Qg,outKeyframes:Zg},"slide-right":{inKeyframes:Jg,outKeyframes:eh}},nh=(e,t)=>{const{antCls:n}=e,r=`${n}-${t}`,{inKeyframes:o,outKeyframes:i}=th[t];return[mc(r,o,i,e.motionDurationMid),{[`\n ${r}-enter,\n ${r}-appear\n `]:{transform:"scale(0)",transformOrigin:"0% 0%",opacity:0,animationTimingFunction:e.motionEaseOutQuint,"&-prepare":{transform:"scale(1)"}},[`${r}-leave`]:{animationTimingFunction:e.motionEaseInQuint}}]},rh=new tl("antMoveDownIn",{"0%":{transform:"translate3d(0, 100%, 0)",transformOrigin:"0 0",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1}}),oh=new tl("antMoveDownOut",{"0%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1},"100%":{transform:"translate3d(0, 100%, 0)",transformOrigin:"0 0",opacity:0}}),ih=new tl("antMoveLeftIn",{"0%":{transform:"translate3d(-100%, 0, 0)",transformOrigin:"0 0",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1}}),ah=new tl("antMoveLeftOut",{"0%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1},"100%":{transform:"translate3d(-100%, 0, 0)",transformOrigin:"0 0",opacity:0}}),lh=new tl("antMoveRightIn",{"0%":{transform:"translate3d(100%, 0, 0)",transformOrigin:"0 0",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1}}),sh=new tl("antMoveRightOut",{"0%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1},"100%":{transform:"translate3d(100%, 0, 0)",transformOrigin:"0 0",opacity:0}}),ch={"move-up":{inKeyframes:new tl("antMoveUpIn",{"0%":{transform:"translate3d(0, -100%, 0)",transformOrigin:"0 0",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1}}),outKeyframes:new tl("antMoveUpOut",{"0%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1},"100%":{transform:"translate3d(0, -100%, 0)",transformOrigin:"0 0",opacity:0}})},"move-down":{inKeyframes:rh,outKeyframes:oh},"move-left":{inKeyframes:ih,outKeyframes:ah},"move-right":{inKeyframes:lh,outKeyframes:sh}},uh=(e,t)=>{const{antCls:n}=e,r=`${n}-${t}`,{inKeyframes:o,outKeyframes:i}=ch[t];return[mc(r,o,i,e.motionDurationMid),{[`\n ${r}-enter,\n ${r}-appear\n `]:{opacity:0,animationTimingFunction:e.motionEaseOutCirc},[`${r}-leave`]:{animationTimingFunction:e.motionEaseInOutCirc}}]},dh=e=>{const{optionHeight:t,optionFontSize:n,optionLineHeight:r,optionPadding:o}=e;return{position:"relative",display:"block",minHeight:t,padding:o,color:e.colorText,fontWeight:"normal",fontSize:n,lineHeight:r,boxSizing:"border-box"}},fh=e=>{const{antCls:t,componentCls:n}=e,r=`${n}-item`,o=`&${t}-slide-up-enter${t}-slide-up-enter-active`,i=`&${t}-slide-up-appear${t}-slide-up-appear-active`,a=`&${t}-slide-up-leave${t}-slide-up-leave-active`,l=`${n}-dropdown-placement-`,s=`${r}-option-selected`;return[{[`${n}-dropdown`]:Object.assign(Object.assign({},Cl(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,[`\n ${o}${l}bottomLeft,\n ${i}${l}bottomLeft\n `]:{animationName:Xg},[`\n ${o}${l}topLeft,\n ${i}${l}topLeft,\n ${o}${l}topRight,\n ${i}${l}topRight\n `]:{animationName:Ug},[`${a}${l}bottomLeft`]:{animationName:Kg},[`\n ${a}${l}topLeft,\n ${a}${l}topRight\n `]:{animationName:Yg},"&-hidden":{display:"none"},[r]:Object.assign(Object.assign({},dh(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"},xl),"&-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({},dh(e)),{color:e.colorTextDisabled})}),[`${s}:has(+ ${s})`]:{borderEndStartRadius:0,borderEndEndRadius:0,[`& + ${s}`]:{borderStartStartRadius:0,borderStartEndRadius:0}},"&-rtl":{direction:"rtl"}})},nh(e,"slide-up"),nh(e,"slide-down"),uh(e,"move-up"),uh(e,"move-down")]},ph=e=>{const{componentCls:t,iconCls:n,borderRadiusSM:r,motionDurationSlow:o,paddingXS:i,multipleItemColorDisabled:a,multipleItemBorderColorDisabled:l,colorIcon:s,colorIconHover:c,INTERNAL_FIXED_ITEM_MARGIN:u}=e,d=`${t}-selection-overflow`;return{[d]:{position:"relative",display:"flex",flex:"auto",flexWrap:"wrap",maxWidth:"100%","&-item":{flex:"none",alignSelf:"center",maxWidth:"calc(100% - 4px)",display:"inline-flex"},[`${t}-selection-item`]:{display:"flex",alignSelf:"center",flex:"none",boxSizing:"border-box",maxWidth:"100%",marginBlock:u,borderRadius:r,cursor:"default",transition:`font-size ${o}, line-height ${o}, height ${o}`,marginInlineEnd:e.calc(u).mul(2).equal(),paddingInlineStart:i,paddingInlineEnd:e.calc(i).div(2).equal(),[`${t}-disabled&`]:{color:a,borderColor:l,cursor:"not-allowed"},"&-content":{display:"inline-block",marginInlineEnd:e.calc(i).div(2).equal(),overflow:"hidden",whiteSpace:"pre",textOverflow:"ellipsis"},"&-remove":Object.assign(Object.assign({},{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"}}),{display:"inline-flex",alignItems:"center",color:s,fontWeight:"bold",fontSize:10,lineHeight:"inherit",cursor:"pointer",[`> ${n}`]:{verticalAlign:"-0.2em"},"&:hover":{color:c}})}}}},mh=(e,t)=>{const{componentCls:n,INTERNAL_FIXED_ITEM_MARGIN:r}=e,o=`${n}-selection-overflow`,i=e.multipleSelectItemHeight,a=(e=>{const{multipleSelectItemHeight:t,selectHeight:n,lineWidth:r}=e;return e.calc(n).sub(t).div(2).sub(r).equal()})(e),l=t?`${n}-${t}`:"",s=(e=>{const{multipleSelectItemHeight:t,paddingXXS:n,lineWidth:r,INTERNAL_FIXED_ITEM_MARGIN:o}=e,i=e.max(e.calc(n).sub(r).equal(),0);return{basePadding:i,containerPadding:e.max(e.calc(i).sub(o).equal(),0),itemHeight:Wi(t),itemLineHeight:Wi(e.calc(t).sub(e.calc(e.lineWidth).mul(2)).equal())}})(e);return{[`${n}-multiple${l}`]:Object.assign(Object.assign({},ph(e)),{[`${n}-selector`]:{display:"flex",alignItems:"center",width:"100%",height:"100%",paddingInline:s.basePadding,paddingBlock:s.containerPadding,borderRadius:e.borderRadius,[`${n}-disabled&`]:{background:e.multipleSelectorBgDisabled,cursor:"not-allowed"},"&:after":{display:"inline-block",width:0,margin:`${Wi(r)} 0`,lineHeight:Wi(i),visibility:"hidden",content:'"\\a0"'}},[`${n}-selection-item`]:{height:s.itemHeight,lineHeight:Wi(s.itemLineHeight)},[`${n}-selection-wrap`]:{alignSelf:"flex-start","&:after":{lineHeight:Wi(i),marginBlock:r}},[`${n}-prefix`]:{marginInlineStart:e.calc(e.inputPaddingHorizontalBase).sub(s.basePadding).equal()},[`${o}-item + ${o}-item,\n ${n}-prefix + ${n}-selection-wrap\n `]:{[`${n}-selection-search`]:{marginInlineStart:0},[`${n}-selection-placeholder`]:{insetInlineStart:0}},[`${o}-item-suffix`]:{minHeight:s.itemHeight,marginBlock:r},[`${n}-selection-search`]:{display:"inline-flex",position:"relative",maxWidth:"100%",marginInlineStart:e.calc(e.inputPaddingHorizontalBase).sub(a).equal(),"\n &-input,\n &-mirror\n ":{height:i,fontFamily:e.fontFamily,lineHeight:Wi(i),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(s.basePadding).equal(),insetInlineEnd:e.inputPaddingHorizontalBase,transform:"translateY(-50%)",transition:`all ${e.motionDurationSlow}`}})}};function gh(e,t){const{componentCls:n}=e,r=t?`${n}-${t}`:"",o={[`${n}-multiple${r}`]:{fontSize:e.fontSize,[`${n}-selector`]:{[`${n}-show-search&`]:{cursor:"text"}},[`\n &${n}-show-arrow ${n}-selector,\n &${n}-allow-clear ${n}-selector\n `]:{paddingInlineEnd:e.calc(e.fontSizeIcon).add(e.controlPaddingHorizontal).equal()}}};return[mh(e,t),o]}const hh=e=>{const{componentCls:t}=e,n=pl(e,{selectHeight:e.controlHeightSM,multipleSelectItemHeight:e.multipleItemHeightSM,borderRadius:e.borderRadiusSM,borderRadiusSM:e.borderRadiusXS}),r=pl(e,{fontSize:e.fontSizeLG,selectHeight:e.controlHeightLG,multipleSelectItemHeight:e.multipleItemHeightLG,borderRadius:e.borderRadiusLG,borderRadiusSM:e.borderRadius});return[gh(e),gh(n,"sm"),{[`${t}-multiple${t}-sm`]:{[`${t}-selection-placeholder`]:{insetInline:e.calc(e.controlPaddingHorizontalSM).sub(e.lineWidth).equal()},[`${t}-selection-search`]:{marginInlineStart:2}}},gh(r,"lg")]};function vh(e,t){const{componentCls:n,inputPaddingHorizontalBase:r,borderRadius:o}=e,i=e.calc(e.controlHeight).sub(e.calc(e.lineWidth).mul(2)).equal(),a=t?`${n}-${t}`:"";return{[`${n}-single${a}`]:{fontSize:e.fontSize,height:e.controlHeight,[`${n}-selector`]:Object.assign(Object.assign({},Cl(e,!0)),{display:"flex",borderRadius:o,flex:"1 1 auto",[`${n}-selection-wrap:after`]:{lineHeight:Wi(i)},[`${n}-selection-search`]:{position:"absolute",inset:0,width:"100%","&-input":{width:"100%",WebkitAppearance:"textfield"}},[`\n ${n}-selection-item,\n ${n}-selection-placeholder\n `]:{display:"block",padding:0,lineHeight:Wi(i),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 &${n}-show-arrow ${n}-selection-item,\n &${n}-show-arrow ${n}-selection-search,\n &${n}-show-arrow ${n}-selection-placeholder\n `]:{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 ${Wi(r)}`,[`${n}-selection-search-input`]:{height:i,fontSize:e.fontSize},"&:after":{lineHeight:Wi(i)}}},[`&${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 ${Wi(r)}`,"&:after":{display:"none"}}}}}}}function bh(e){const{componentCls:t}=e,n=e.calc(e.controlPaddingHorizontalSM).sub(e.lineWidth).equal();return[vh(e),vh(pl(e,{controlHeight:e.controlHeightSM,borderRadius:e.borderRadiusSM}),"sm"),{[`${t}-single${t}-sm`]:{[`&:not(${t}-customize-input)`]:{[`${t}-selector`]:{padding:`0 ${Wi(n)}`},[`&${t}-show-arrow ${t}-selection-search`]:{insetInlineEnd:e.calc(n).add(e.calc(e.fontSize).mul(1.5)).equal()},[`\n &${t}-show-arrow ${t}-selection-item,\n &${t}-show-arrow ${t}-selection-placeholder\n `]:{paddingInlineEnd:e.calc(e.fontSize).mul(1.5).equal()}}}},vh(pl(e,{controlHeight:e.singleItemHeightLG,fontSize:e.fontSizeLG,borderRadius:e.borderRadiusLG}),"lg")]}const yh=(e,t)=>{const{componentCls:n,antCls:r,controlOutlineWidth:o}=e;return{[`&:not(${n}-customize-input) ${n}-selector`]:{border:`${Wi(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 ${Wi(o)} ${t.activeOutlineColor}`,outline:0},[`${n}-prefix`]:{color:t.color}}}},xh=(e,t)=>({[`&${e.componentCls}-status-${t.status}`]:Object.assign({},yh(e,t))}),Ch=e=>({"&-outlined":Object.assign(Object.assign(Object.assign(Object.assign({},yh(e,{borderColor:e.colorBorder,hoverBorderHover:e.hoverBorderColor,activeBorderColor:e.activeBorderColor,activeOutlineColor:e.activeOutlineColor,color:e.colorText})),xh(e,{status:"error",borderColor:e.colorError,hoverBorderHover:e.colorErrorHover,activeBorderColor:e.colorError,activeOutlineColor:e.colorErrorOutline,color:e.colorError})),xh(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:`${Wi(e.lineWidth)} ${e.lineType} ${e.multipleItemBorderColor}`}})}),wh=(e,t)=>{const{componentCls:n,antCls:r}=e;return{[`&:not(${n}-customize-input) ${n}-selector`]:{background:t.bg,border:`${Wi(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}}}},Sh=(e,t)=>({[`&${e.componentCls}-status-${t.status}`]:Object.assign({},wh(e,t))}),$h=e=>({"&-filled":Object.assign(Object.assign(Object.assign(Object.assign({},wh(e,{bg:e.colorFillTertiary,hoverBg:e.colorFillSecondary,activeBorderColor:e.activeBorderColor,color:e.colorText})),Sh(e,{status:"error",bg:e.colorErrorBg,hoverBg:e.colorErrorBgHover,activeBorderColor:e.colorError,color:e.colorError})),Sh(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:`${Wi(e.lineWidth)} ${e.lineType} ${e.colorSplit}`}})}),Eh=e=>({"&-borderless":{[`${e.componentCls}-selector`]:{background:"transparent",border:`${Wi(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:`${Wi(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}}}}),Oh=(e,t)=>{const{componentCls:n,antCls:r}=e;return{[`&:not(${n}-customize-input) ${n}-selector`]:{borderWidth:`${Wi(e.lineWidth)} 0`,borderStyle:`${e.lineType} none`,borderColor:`transparent transparent ${t.borderColor} transparent`,background:e.selectorBg,borderRadius:0},[`&:not(${n}-disabled):not(${n}-customize-input):not(${r}-pagination-size-changer)`]:{[`&:hover ${n}-selector`]:{borderColor:`transparent transparent ${t.hoverBorderHover} transparent`},[`${n}-focused& ${n}-selector`]:{borderColor:`transparent transparent ${t.activeBorderColor} transparent`,outline:0},[`${n}-prefix`]:{color:t.color}}}},kh=(e,t)=>({[`&${e.componentCls}-status-${t.status}`]:Object.assign({},Oh(e,t))}),Ih=e=>({"&-underlined":Object.assign(Object.assign(Object.assign(Object.assign({},Oh(e,{borderColor:e.colorBorder,hoverBorderHover:e.hoverBorderColor,activeBorderColor:e.activeBorderColor,activeOutlineColor:e.activeOutlineColor,color:e.colorText})),kh(e,{status:"error",borderColor:e.colorError,hoverBorderHover:e.colorErrorHover,activeBorderColor:e.colorError,activeOutlineColor:e.colorErrorOutline,color:e.colorError})),kh(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:`${Wi(e.lineWidth)} ${e.lineType} ${e.multipleItemBorderColor}`}})}),jh=e=>({[e.componentCls]:Object.assign(Object.assign(Object.assign(Object.assign({},Ch(e)),$h(e)),Eh(e)),Ih(e))}),Ph=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"}}}},Mh=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"}}}},Nh=e=>{const{antCls:t,componentCls:n,inputPaddingHorizontalBase:r,iconCls:o}=e,i={[`${n}-clear`]:{opacity:1,background:e.colorBgBase,borderRadius:"50%"}};return{[n]:Object.assign(Object.assign({},Cl(e)),{position:"relative",display:"inline-flex",cursor:"pointer",[`&:not(${n}-customize-input) ${n}-selector`]:Object.assign(Object.assign({},Ph(e)),Mh(e)),[`${n}-selection-item`]:Object.assign(Object.assign({flex:1,fontWeight:"normal",position:"relative",userSelect:"none"},xl),{[`> ${t}-typography`]:{display:"inline"}}),[`${n}-selection-placeholder`]:Object.assign(Object.assign({},xl),{flex:1,color:e.colorTextPlaceholder,pointerEvents:"none"}),[`${n}-arrow`]:Object.assign(Object.assign({},{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"}}),{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`,[o]:{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",transform:"translateZ(0)","&:before":{display:"block"},"&:hover":{color:e.colorIcon}},"@media(hover:none)":i,"&:hover":i}),[`${n}-status`]:{"&-error, &-warning, &-success, &-validating":{[`&${n}-has-feedback`]:{[`${n}-clear`]:{insetInlineEnd:e.calc(r).add(e.fontSize).add(e.paddingXS).equal()}}}}}},Rh=e=>{const{componentCls:t}=e;return[{[t]:{[`&${t}-in-form-item`]:{width:"100%"}}},Nh(e),bh(e),hh(e),fh(e),{[`${t}-rtl`]:{direction:"rtl"}},Od(e,{borderElCls:`${t}-selector`,focusElCls:`${t}-focused`})]},Ah=js("Select",(e,{rootPrefixCls:t})=>{const n=pl(e,{rootPrefixCls:t,inputPaddingHorizontalBase:e.calc(e.paddingSM).sub(1).equal(),multipleSelectItemHeight:e.multipleItemHeight,selectHeight:e.controlHeight});return[Rh(n),jh(n)]},e=>{const{fontSize:t,lineHeight:n,lineWidth:r,controlHeight:o,controlHeightSM:i,controlHeightLG:a,paddingXXS:l,controlPaddingHorizontal:s,zIndexPopupBase:c,colorText:u,fontWeightStrong:d,controlItemBgActive:f,controlItemBgHover:p,colorBgContainer:m,colorFillSecondary:g,colorBgContainerDisabled:h,colorTextDisabled:v,colorPrimaryHover:b,colorPrimary:y,controlOutline:x}=e,C=2*l,w=2*r,S=Math.min(o-C,o-w),$=Math.min(i-C,i-w),E=Math.min(a-C,a-w);return{INTERNAL_FIXED_ITEM_MARGIN:Math.floor(l/2),zIndexPopup:c+50,optionSelectedColor:u,optionSelectedFontWeight:d,optionSelectedBg:f,optionActiveBg:p,optionPadding:`${(o-t*n)/2}px ${s}px`,optionFontSize:t,optionLineHeight:n,optionHeight:o,selectorBg:m,clearBg:m,singleItemHeightLG:a,multipleItemBg:g,multipleItemBorderColor:"transparent",multipleItemHeight:S,multipleItemHeightSM:$,multipleItemHeightLG:E,multipleSelectorBgDisabled:h,multipleItemColorDisabled:v,multipleItemBorderColorDisabled:"transparent",showArrowPaddingInlineEnd:Math.ceil(1.25*e.fontSize),hoverBorderColor:b,activeBorderColor:y,activeOutlineColor:x,selectAffixPadding:l}},{unitless:{optionLineHeight:!0,optionSelectedFontWeight:!0}}),zh={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"};var Th=function(t,n){return e.createElement(_u,T({},t,{ref:n,icon:zh}))};const Fh=e.forwardRef(Th),Bh={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"};var Hh=function(t,n){return e.createElement(_u,T({},t,{ref:n,icon:Bh}))};const _h=e.forwardRef(Hh),Lh={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"};var Dh=function(t,n){return e.createElement(_u,T({},t,{ref:n,icon:Lh}))};const Vh=e.forwardRef(Dh);const Wh="SECRET_COMBOBOX_MODE_DO_NOT_USE",qh=(n,r)=>{var o,i,a,l,s;const{prefixCls:c,bordered:u,className:d,rootClassName:f,getPopupContainer:p,popupClassName:m,dropdownClassName:g,listHeight:h=256,placement:v,listItemHeight:b,size:y,disabled:x,notFoundContent:C,status:w,builtinPlacements:S,dropdownMatchSelectWidth:$,popupMatchSelectWidth:E,direction:O,style:k,allowClear:I,variant:j,dropdownStyle:P,transitionName:M,tagRender:N,maxCount:R,prefix:z,dropdownRender:T,popupRender:F,onDropdownVisibleChange:B,onOpenChange:H,styles:_,classNames:L}=n,D=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(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n}(n,["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","dropdownRender","popupRender","onDropdownVisibleChange","onOpenChange","styles","classNames"]),{getPopupContainer:V,getPrefixCls:W,renderEmpty:q,direction:G,virtual:X,popupMatchSelectWidth:K,popupOverflow:U}=e.useContext(hi),{showSearch:Y,style:Q,styles:Z,className:J,classNames:ee}=yi("select"),[,te]=Is(),ne=null!=b?b:null==te?void 0:te.controlHeight,re=W("select",c),oe=W(),ie=null!=O?O:G,{compactSize:ae,compactItemClassnames:le}=Ts(re,ie),[se,ce]=Pf("select",j,u),ue=jf(re),[de,fe,pe]=Ah(re,ue),me=e.useMemo(()=>{const{mode:e}=n;if("combobox"!==e)return e===Wh?"combobox":e},[n.mode]),ge="multiple"===me||"tags"===me,he=function(e,t){return void 0!==t?t:null!==e}(n.suffixIcon,n.showArrow),ve=null!==(o=null!=E?E:$)&&void 0!==o?o:K,be=(null===(i=null==_?void 0:_.popup)||void 0===i?void 0:i.root)||(null===(a=Z.popup)||void 0===a?void 0:a.root)||P,ye=(Oe=F||T,t().useMemo(()=>{if(Oe)return(...e)=>t().createElement(Hs,{space:!0},Oe.apply(void 0,e))},[Oe])),xe=H||B,{status:Ce,hasFeedback:we,isFormItemInput:Se,feedbackIcon:$e}=e.useContext(ui),Ee=If(Ce,w);var Oe;let ke;ke=void 0!==C?C:"combobox"===me?null:(null==q?void 0:q("Select"))||e.createElement(qg,{componentName:"Select"});const{suffixIcon:Ie,itemIcon:je,removeIcon:Pe,clearIcon:Me}=function({suffixIcon:t,clearIcon:n,menuItemSelectedIcon:r,removeIcon:o,loading:i,multiple:a,hasFeedback:l,prefixCls:s,showSuffixIcon:c,feedbackIcon:u,showArrow:d,componentName:f}){const p=null!=n?n:e.createElement(Ef,null),m=n=>null!==t||l||d?e.createElement(e.Fragment,null,!1!==c&&n,l&&u):null;let g=null;if(void 0!==t)g=m(t);else if(i)g=m(e.createElement(Du,{spin:!0}));else{const t=`${s}-suffix`;g=({open:n,showSearch:r})=>m(n&&r?e.createElement(Jf,{className:t}):e.createElement(Vh,{className:t}))}let h=null;h=void 0!==r?r:a?e.createElement(Fh,null):null;let v=null;return v=void 0!==o?o:e.createElement(_h,null),{clearIcon:p,suffixIcon:g,itemIcon:h,removeIcon:v}}(Object.assign(Object.assign({},D),{multiple:ge,hasFeedback:we,feedbackIcon:$e,showSuffixIcon:he,prefixCls:re,componentName:"Select"})),Ne=!0===I?{clearIcon:Me}:I,Re=ii(D,["suffixIcon","itemIcon"]),Ae=A()((null===(l=null==L?void 0:L.popup)||void 0===l?void 0:l.root)||(null===(s=null==ee?void 0:ee.popup)||void 0===s?void 0:s.root)||m||g,{[`${re}-dropdown-${ie}`]:"rtl"===ie},f,ee.root,null==L?void 0:L.root,pe,ue,fe),ze=Si(e=>{var t;return null!==(t=null!=y?y:ae)&&void 0!==t?t:e}),Te=e.useContext(yu),Fe=null!=x?x:Te,Be=A()({[`${re}-lg`]:"large"===ze,[`${re}-sm`]:"small"===ze,[`${re}-rtl`]:"rtl"===ie,[`${re}-${se}`]:ce,[`${re}-in-form-item`]:Se},kf(re,Ee,we),le,J,d,ee.root,null==L?void 0:L.root,f,pe,ue,fe),He=e.useMemo(()=>void 0!==v?v:"rtl"===ie?"bottomRight":"bottomLeft",[v,ie]),[_e]=Ws("SelectLike",null==be?void 0:be.zIndex);return de(e.createElement(ag,Object.assign({ref:r,virtual:X,showSearch:Y},Re,{style:Object.assign(Object.assign(Object.assign(Object.assign({},Z.root),null==_?void 0:_.root),Q),k),dropdownMatchSelectWidth:ve,transitionName:Us(oe,"slide-up",M),builtinPlacements:Gg(S,U),listHeight:h,listItemHeight:ne,mode:me,prefixCls:re,placement:He,direction:ie,prefix:z,suffixIcon:Ie,menuItemSelectedIcon:je,removeIcon:Pe,allowClear:Ne,notFoundContent:ke,className:Be,getPopupContainer:p||V,dropdownClassName:Ae,disabled:Fe,dropdownStyle:Object.assign(Object.assign({},be),{zIndex:_e}),maxCount:ge?R:void 0,tagRender:ge?N:void 0,dropdownRender:ye,onDropdownVisibleChange:xe})))},Gh=e.forwardRef(qh),Xh=Tg(Gh,"dropdownAlign");Gh.SECRET_COMBOBOX_MODE_DO_NOT_USE=Wh,Gh.Option=$m,Gh.OptGroup=wm,Gh._InternalPanelDoNotUseOrYouWillBeFired=Xh;const Kh=Gh,{isEnumType:Uh,isInputObjectType:Yh,isScalarType:Qh,parseType:Zh,visit:Jh}=wpGraphiQL.GraphQL,{useState:ev}=wp.element,tv=t=>{const[n,r]=ev(!0),{definition:o}=t,{argValue:i,arg:a,styleConfig:l}=t,s=I(a.type);let c=null;if(i)if("Variable"===i.kind)c=(0,e.createElement)("span",{style:{color:l.colors.variable}},"$",i.name.value);else if(Qh(s))c="Boolean"===s.name?(0,e.createElement)(Kh,{getPopupContainer:()=>window.document.getElementsByClassName("doc-explorer-app")[0],size:"small",style:{color:l.colors.builtin,minHeight:"16px",minWidth:"16ch"},onChange:e=>{const n={target:{value:e}};t.setArgValue(n)},value:"BooleanValue"===i.kind?i.value:void 0},(0,e.createElement)(Kh.Option,{key:"true",value:"true"},"true"),(0,e.createElement)(Kh.Option,{key:"false",value:"false"},"false")):(0,e.createElement)(vp,{setArgValue:t.setArgValue,arg:a,argValue:i,onRunOperation:t.onRunOperation,styleConfig:t.styleConfig});else if(Uh(s))"EnumValue"===i.kind?c=(0,e.createElement)(Kh,{size:"small",getPopupContainer:()=>window.document.getElementsByClassName("doc-explorer-app")[0],style:{backgroundColor:"white",minHeight:"16px",minWidth:"20ch",color:l.colors.string2},onChange:e=>{const n={target:{value:e}};t.setArgValue(n)},value:i.value},s.getValues().map((t,n)=>(0,e.createElement)(Kh.Option,{key:n,value:t.name},t.name))):console.error("arg mismatch between arg and selection",s,i);else if(Yh(s))if("ObjectValue"===i.kind){const n=s.getFields();c=(0,e.createElement)("div",{style:{marginLeft:16}},Object.keys(n).sort().map(r=>(0,e.createElement)(Cp,{key:r,arg:n[r],parentField:t.parentField,selection:i,modifyFields:t.setArgFields,getDefaultScalarArgValue:t.getDefaultScalarArgValue,makeDefaultArg:t.makeDefaultArg,onRunOperation:t.onRunOperation,styleConfig:t.styleConfig,onCommit:t.onCommit,definition:t.definition})))}else console.error("arg mismatch between arg and selection",s,i);const u=i&&"Variable"===i.kind,d=void 0!==o.name&&i?(0,e.createElement)(Uc,{getPopupContainer:()=>window.document.getElementsByClassName("doc-explorer-app")[0],title:u?"Remove the variable":"Extract the current value into a GraphQL variable"},(0,e.createElement)(Ad,{type:u?"danger":"default",size:"small",className:"toolbar-button",title:u?"Remove the variable":"Extract the current value into a GraphQL variable",onClick:e=>{e.preventDefault(),e.stopPropagation(),u?(()=>{if(!i||!i.name||!i.name.value)return;const e=i.name.value,n=(t.definition.variableDefinitions||[]).find(t=>t.variable.name.value===e);if(!n)return;const r=n.defaultValue,o=t.setArgValue(r,{commit:!1});if(o){const n=o.definitions.find(e=>e.name.value===t.definition.name.value);if(!n)return;let r=0;Jh(n,{Variable(t){t.name.value===e&&(r+=1)}});let i=n.variableDefinitions||[];r<2&&(i=i.filter(t=>t.variable.name.value!==e));const a={...n,variableDefinitions:i},l=o.definitions.map(e=>n===e?a:e),s={...o,definitions:l};t.onCommit(s)}})():(()=>{const e=a.name,n=(t.definition.variableDefinitions||[]).filter(t=>t.variable.name.value.startsWith(e)).length;let r;r=n>0?`${e}${n}`:e;const o=a.type.toString(),l={kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:r}},type:Zh(o),directives:[]};let s;const c={};if(null!=i){const e=Jh(i,{Variable(e){const n=e.name.value,r=(o=n,(t.definition.variableDefinitions||[]).find(e=>e.variable.name.value===o));var o;if(c[n]=c[n]+1||1,r)return r.defaultValue}});s={..."NonNullType"===l.type.kind?{...l,type:l.type.type}:l,defaultValue:e}}else s=l;const u=Object.entries(c).filter(([e,t])=>t<2).map(([e,t])=>e);if(s){const e=t.setArgValue(s,!1);if(e){const n=e.definitions.find(e=>!!(e.operation&&e.name&&e.name.value&&t.definition.name&&t.definition.name.value)&&e.name.value===t.definition.name.value),r=[...n?.variableDefinitions||[],s].filter(e=>-1===u.indexOf(e.variable.name.value)),o={...n,variableDefinitions:r},i=e.definitions.map(e=>n===e?o:e),a={...e,definitions:i};t.onCommit(a)}}})()}},(0,e.createElement)("span",{style:{color:u?"inherit":l.colors.variable}},"$"))):null;return(0,e.createElement)("div",{style:{cursor:"pointer",minHeight:"20px",WebkitUserSelect:"none",userSelect:"none"},"data-arg-name":a.name,"data-arg-type":s.name,className:`graphiql-explorer-${a.name}`},(0,e.createElement)("span",{style:{cursor:"pointer"},onClick:e=>{const n=!i;n?t.addArg(!0):t.removeArg(!0),r(n)}},Yh(s)?(0,e.createElement)("span",null,i?t.styleConfig.arrowOpen:t.styleConfig.arrowClosed):(0,e.createElement)(zd,{checked:!!i,styleConfig:t.styleConfig}),(0,e.createElement)("span",{style:{color:l.colors.attribute},title:a.description,onMouseEnter:()=>{null!=i&&r(!0)},onMouseLeave:()=>r(!0)},a.name,O(a)?"*":"",":"," ",d," ")," "),c||(0,e.createElement)("span",null)," ")},{isInputObjectType:nv,isLeafType:rv}=wpGraphiQL.GraphQL,ov=t=>{let n;const r=()=>{const{selection:e}=t;return(e.arguments||[]).find(e=>e.name.value===t.arg.name)},{arg:o,parentField:i}=t,a=r();return(0,e.createElement)(tv,{argValue:a?a.value:null,arg:o,parentField:i,addArg:e=>{const{selection:r,getDefaultScalarArgValue:o,makeDefaultArg:i,parentField:a,arg:l}=t,s=I(l.type);let c=null;if(n)c=n;else if(nv(s)){const e=s.getFields();c={kind:"Argument",name:{kind:"Name",value:l.name},value:{kind:"ObjectValue",fields:P(o,i,a,Object.keys(e).map(t=>e[t]))}}}else rv(s)&&(c={kind:"Argument",name:{kind:"Name",value:l.name},value:o(a,l,s)});return c?t.modifyArguments([...r.arguments||[],c],e):(console.error("Unable to add arg for argType",s),null)},removeArg:e=>{const{selection:o}=t,i=r();return n=r(),t.modifyArguments((o.arguments||[]).filter(e=>e!==i),e)},setArgFields:(e,n)=>{const{selection:o}=t,i=r();if(i)return t.modifyArguments((o.arguments||[]).map(t=>t===i?{...t,value:{kind:"ObjectValue",fields:e}}:t),n);console.error("missing arg selection when setting arg value")},setArgValue:(e,n)=>{let o=!1,i=!1,a=!1;try{"VariableDefinition"===e.kind?i=!0:null==e?o=!0:"string"==typeof e.kind&&(a=!0)}catch(e){}const{selection:l}=t,s=r();if(!s&&!i)return void console.error("missing arg selection when setting arg value");const c=I(t.arg.type);if(!(rv(c)||i||o||a))return void console.warn("Unable to handle non leaf types in ArgView._setArgValue");let u,d;return null==e?d=null:e.target&&"string"==typeof e.target.value?(u=e.target.value,d=j(c,u)):e.target||"VariableDefinition"!==e.kind?"string"==typeof e.kind&&(d=e):(u=e,d=u.variable),t.modifyArguments((l.arguments||[]).map(e=>e===s?{...e,value:d}:e),n)},getDefaultScalarArgValue:t.getDefaultScalarArgValue,makeDefaultArg:t.makeDefaultArg,onRunOperation:t.onRunOperation,styleConfig:t.styleConfig,onCommit:t.onCommit,definition:t.definition})},iv={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M574 665.4a8.03 8.03 0 00-11.3 0L446.5 781.6c-53.8 53.8-144.6 59.5-204 0-59.5-59.5-53.8-150.2 0-204l116.2-116.2c3.1-3.1 3.1-8.2 0-11.3l-39.8-39.8a8.03 8.03 0 00-11.3 0L191.4 526.5c-84.6 84.6-84.6 221.5 0 306s221.5 84.6 306 0l116.2-116.2c3.1-3.1 3.1-8.2 0-11.3L574 665.4zm258.6-474c-84.6-84.6-221.5-84.6-306 0L410.3 307.6a8.03 8.03 0 000 11.3l39.7 39.7c3.1 3.1 8.2 3.1 11.3 0l116.2-116.2c53.8-53.8 144.6-59.5 204 0 59.5 59.5 53.8 150.2 0 204L665.3 562.6a8.03 8.03 0 000 11.3l39.8 39.8c3.1 3.1 8.2 3.1 11.3 0l116.2-116.2c84.5-84.6 84.5-221.5 0-306.1zM610.1 372.3a8.03 8.03 0 00-11.3 0L372.3 598.7a8.03 8.03 0 000 11.3l39.6 39.6c3.1 3.1 8.2 3.1 11.3 0l226.4-226.4c3.1-3.1 3.1-8.2 0-11.3l-39.5-39.6z"}}]},name:"link",theme:"outlined"};function av(e){var t,n,r="";if("string"==typeof e||"number"==typeof e)r+=e;else if("object"==typeof e)if(Array.isArray(e)){var o=e.length;for(t=0;t<o;t++)e[t]&&(n=av(e[t]))&&(r&&(r+=" "),r+=n)}else for(n in e)e[n]&&(r&&(r+=" "),r+=n);return r}const lv={aliceblue:"9ehhb",antiquewhite:"9sgk7",aqua:"1ekf",aquamarine:"4zsno",azure:"9eiv3",beige:"9lhp8",bisque:"9zg04",black:"0",blanchedalmond:"9zhe5",blue:"73",blueviolet:"5e31e",brown:"6g016",burlywood:"8ouiv",cadetblue:"3qba8",chartreuse:"4zshs",chocolate:"87k0u",coral:"9yvyo",cornflowerblue:"3xael",cornsilk:"9zjz0",crimson:"8l4xo",cyan:"1ekf",darkblue:"3v",darkcyan:"rkb",darkgoldenrod:"776yz",darkgray:"6mbhl",darkgreen:"jr4",darkgrey:"6mbhl",darkkhaki:"7ehkb",darkmagenta:"5f91n",darkolivegreen:"3bzfz",darkorange:"9yygw",darkorchid:"5z6x8",darkred:"5f8xs",darksalmon:"9441m",darkseagreen:"5lwgf",darkslateblue:"2th1n",darkslategray:"1ugcv",darkslategrey:"1ugcv",darkturquoise:"14up",darkviolet:"5rw7n",deeppink:"9yavn",deepskyblue:"11xb",dimgray:"442g9",dimgrey:"442g9",dodgerblue:"16xof",firebrick:"6y7tu",floralwhite:"9zkds",forestgreen:"1cisi",fuchsia:"9y70f",gainsboro:"8m8kc",ghostwhite:"9pq0v",goldenrod:"8j4f4",gold:"9zda8",gray:"50i2o",green:"pa8",greenyellow:"6senj",grey:"50i2o",honeydew:"9eiuo",hotpink:"9yrp0",indianred:"80gnw",indigo:"2xcoy",ivory:"9zldc",khaki:"9edu4",lavenderblush:"9ziet",lavender:"90c8q",lawngreen:"4vk74",lemonchiffon:"9zkct",lightblue:"6s73a",lightcoral:"9dtog",lightcyan:"8s1rz",lightgoldenrodyellow:"9sjiq",lightgray:"89jo3",lightgreen:"5nkwg",lightgrey:"89jo3",lightpink:"9z6wx",lightsalmon:"9z2ii",lightseagreen:"19xgq",lightskyblue:"5arju",lightslategray:"4nwk9",lightslategrey:"4nwk9",lightsteelblue:"6wau6",lightyellow:"9zlcw",lime:"1edc",limegreen:"1zcxe",linen:"9shk6",magenta:"9y70f",maroon:"4zsow",mediumaquamarine:"40eju",mediumblue:"5p",mediumorchid:"79qkz",mediumpurple:"5r3rv",mediumseagreen:"2d9ip",mediumslateblue:"4tcku",mediumspringgreen:"1di2",mediumturquoise:"2uabw",mediumvioletred:"7rn9h",midnightblue:"z980",mintcream:"9ljp6",mistyrose:"9zg0x",moccasin:"9zfzp",navajowhite:"9zest",navy:"3k",oldlace:"9wq92",olive:"50hz4",olivedrab:"472ub",orange:"9z3eo",orangered:"9ykg0",orchid:"8iu3a",palegoldenrod:"9bl4a",palegreen:"5yw0o",paleturquoise:"6v4ku",palevioletred:"8k8lv",papayawhip:"9zi6t",peachpuff:"9ze0p",peru:"80oqn",pink:"9z8wb",plum:"8nba5",powderblue:"6wgdi",purple:"4zssg",rebeccapurple:"3zk49",red:"9y6tc",rosybrown:"7cv4f",royalblue:"2jvtt",saddlebrown:"5fmkz",salmon:"9rvci",sandybrown:"9jn1c",seagreen:"1tdnb",seashell:"9zje6",sienna:"6973h",silver:"7ir40",skyblue:"5arjf",slateblue:"45e4t",slategray:"4e100",slategrey:"4e100",snow:"9zke2",springgreen:"1egv",steelblue:"2r1kk",tan:"87yx8",teal:"pds",thistle:"8ggk8",tomato:"9yqfb",turquoise:"2j4r4",violet:"9b10u",wheat:"9ld4j",white:"9zldr",whitesmoke:"9lhpx",yellow:"9zl6o",yellowgreen:"61fzm"},sv=Math.round;function cv(e,t){const n=e.replace(/^[^(]*\((.*)/,"$1").replace(/\).*/,"").match(/\d*\.?\d+%?/g)||[],r=n.map(e=>parseFloat(e));for(let e=0;e<3;e+=1)r[e]=t(r[e]||0,n[e]||"",e);return n[3]?r[3]=n[3].includes("%")?r[3]/100:r[3]:r[3]=1,r}const uv=(e,t,n)=>0===n?e:e/100;function dv(e,t){const n=t||255;return e>n?n:e<0?0:e}class fv{isValid=!0;r=0;g=0;b=0;a=1;_h;_hsl_s;_hsv_s;_l;_v;_max;_min;_brightness;constructor(e){function t(t){return t[0]in e&&t[1]in e&&t[2]in e}if(e)if("string"==typeof e){const n=e.trim();function r(e){return n.startsWith(e)}if(/^#?[A-F\d]{3,8}$/i.test(n))this.fromHexString(n);else if(r("rgb"))this.fromRgbString(n);else if(r("hsl"))this.fromHslString(n);else if(r("hsv")||r("hsb"))this.fromHsvString(n);else{const o=lv[n.toLowerCase()];o&&this.fromHexString(parseInt(o,36).toString(16).padStart(6,"0"))}}else if(e instanceof fv)this.r=e.r,this.g=e.g,this.b=e.b,this.a=e.a,this._h=e._h,this._hsl_s=e._hsl_s,this._hsv_s=e._hsv_s,this._l=e._l,this._v=e._v;else if(t("rgb"))this.r=dv(e.r),this.g=dv(e.g),this.b=dv(e.b),this.a="number"==typeof e.a?dv(e.a,1):1;else if(t("hsl"))this.fromHsl(e);else{if(!t("hsv"))throw new Error("@ant-design/fast-color: unsupported input "+JSON.stringify(e));this.fromHsv(e)}}setR(e){return this._sc("r",e)}setG(e){return this._sc("g",e)}setB(e){return this._sc("b",e)}setA(e){return this._sc("a",e,1)}setHue(e){const t=this.toHsv();return t.h=e,this._c(t)}getLuminance(){function e(e){const t=e/255;return t<=.03928?t/12.92:Math.pow((t+.055)/1.055,2.4)}return.2126*e(this.r)+.7152*e(this.g)+.0722*e(this.b)}getHue(){if(void 0===this._h){const e=this.getMax()-this.getMin();this._h=0===e?0:sv(60*(this.r===this.getMax()?(this.g-this.b)/e+(this.g<this.b?6:0):this.g===this.getMax()?(this.b-this.r)/e+2:(this.r-this.g)/e+4))}return this._h}getSaturation(){return this.getHSVSaturation()}getHSVSaturation(){if(void 0===this._hsv_s){const e=this.getMax()-this.getMin();this._hsv_s=0===e?0:e/this.getMax()}return this._hsv_s}getHSLSaturation(){if(void 0===this._hsl_s){const e=this.getMax()-this.getMin();if(0===e)this._hsl_s=0;else{const t=this.getLightness();this._hsl_s=e/255/(1-Math.abs(2*t-1))}}return this._hsl_s}getLightness(){return void 0===this._l&&(this._l=(this.getMax()+this.getMin())/510),this._l}getValue(){return void 0===this._v&&(this._v=this.getMax()/255),this._v}getBrightness(){return void 0===this._brightness&&(this._brightness=(299*this.r+587*this.g+114*this.b)/1e3),this._brightness}darken(e=10){const t=this.getHue(),n=this.getSaturation();let r=this.getLightness()-e/100;return r<0&&(r=0),this._c({h:t,s:n,l:r,a:this.a})}lighten(e=10){const t=this.getHue(),n=this.getSaturation();let r=this.getLightness()+e/100;return r>1&&(r=1),this._c({h:t,s:n,l:r,a:this.a})}mix(e,t=50){const n=this._c(e),r=t/100,o=e=>(n[e]-this[e])*r+this[e],i={r:sv(o("r")),g:sv(o("g")),b:sv(o("b")),a:sv(100*o("a"))/100};return this._c(i)}tint(e=10){return this.mix({r:255,g:255,b:255,a:1},e)}shade(e=10){return this.mix({r:0,g:0,b:0,a:1},e)}onBackground(e){const t=this._c(e),n=this.a+t.a*(1-this.a),r=e=>sv((this[e]*this.a+t[e]*t.a*(1-this.a))/n);return this._c({r:r("r"),g:r("g"),b:r("b"),a:n})}isDark(){return this.getBrightness()<128}isLight(){return this.getBrightness()>=128}equals(e){return this.r===e.r&&this.g===e.g&&this.b===e.b&&this.a===e.a}clone(){return this._c(this)}toHexString(){let e="#";const t=(this.r||0).toString(16);e+=2===t.length?t:"0"+t;const n=(this.g||0).toString(16);e+=2===n.length?n:"0"+n;const r=(this.b||0).toString(16);if(e+=2===r.length?r:"0"+r,"number"==typeof this.a&&this.a>=0&&this.a<1){const t=sv(255*this.a).toString(16);e+=2===t.length?t:"0"+t}return e}toHsl(){return{h:this.getHue(),s:this.getHSLSaturation(),l:this.getLightness(),a:this.a}}toHslString(){const e=this.getHue(),t=sv(100*this.getHSLSaturation()),n=sv(100*this.getLightness());return 1!==this.a?`hsla(${e},${t}%,${n}%,${this.a})`:`hsl(${e},${t}%,${n}%)`}toHsv(){return{h:this.getHue(),s:this.getHSVSaturation(),v:this.getValue(),a:this.a}}toRgb(){return{r:this.r,g:this.g,b:this.b,a:this.a}}toRgbString(){return 1!==this.a?`rgba(${this.r},${this.g},${this.b},${this.a})`:`rgb(${this.r},${this.g},${this.b})`}toString(){return this.toRgbString()}_sc(e,t,n){const r=this.clone();return r[e]=dv(t,n),r}_c(e){return new this.constructor(e)}getMax(){return void 0===this._max&&(this._max=Math.max(this.r,this.g,this.b)),this._max}getMin(){return void 0===this._min&&(this._min=Math.min(this.r,this.g,this.b)),this._min}fromHexString(e){const t=e.replace("#","");function n(e,n){return parseInt(t[e]+t[n||e],16)}t.length<6?(this.r=n(0),this.g=n(1),this.b=n(2),this.a=t[3]?n(3)/255:1):(this.r=n(0,1),this.g=n(2,3),this.b=n(4,5),this.a=t[6]?n(6,7)/255:1)}fromHsl({h:e,s:t,l:n,a:r}){const o=(e%360+360)%360;if(this._h=o,this._hsl_s=t,this._l=n,this.a="number"==typeof r?r:1,t<=0){const e=sv(255*n);return this.r=e,this.g=e,void(this.b=e)}let i=0,a=0,l=0;const s=o/60,c=(1-Math.abs(2*n-1))*t,u=c*(1-Math.abs(s%2-1));s>=0&&s<1?(i=c,a=u):s>=1&&s<2?(i=u,a=c):s>=2&&s<3?(a=c,l=u):s>=3&&s<4?(a=u,l=c):s>=4&&s<5?(i=u,l=c):s>=5&&s<6&&(i=c,l=u);const d=n-c/2;this.r=sv(255*(i+d)),this.g=sv(255*(a+d)),this.b=sv(255*(l+d))}fromHsv({h:e,s:t,v:n,a:r}){const o=(e%360+360)%360;this._h=o,this._hsv_s=t,this._v=n,this.a="number"==typeof r?r:1;const i=sv(255*n);if(this.r=i,this.g=i,this.b=i,t<=0)return;const a=o/60,l=Math.floor(a),s=a-l,c=sv(n*(1-t)*255),u=sv(n*(1-t*s)*255),d=sv(n*(1-t*(1-s))*255);switch(l){case 0:this.g=d,this.b=c;break;case 1:this.r=u,this.b=c;break;case 2:this.r=c,this.b=d;break;case 3:this.r=c,this.g=u;break;case 4:this.r=d,this.g=c;break;default:this.g=c,this.b=u}}fromHsvString(e){const t=cv(e,uv);this.fromHsv({h:t[0],s:t[1],v:t[2],a:t[3]})}fromHslString(e){const t=cv(e,uv);this.fromHsl({h:t[0],s:t[1],l:t[2],a:t[3]})}fromRgbString(e){const t=cv(e,(e,t)=>t.includes("%")?sv(e/100*255):e);this.r=t[0],this.g=t[1],this.b=t[2],this.a=t[3]}}const pv=[{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 mv(e,t,n){let r;return r=Math.round(e.h)>=60&&Math.round(e.h)<=240?n?Math.round(e.h)-2*t:Math.round(e.h)+2*t:n?Math.round(e.h)+2*t:Math.round(e.h)-2*t,r<0?r+=360:r>=360&&(r-=360),r}function gv(e,t,n){if(0===e.h&&0===e.s)return e.s;let r;return r=n?e.s-.16*t:4===t?e.s+.16:e.s+.05*t,r>1&&(r=1),n&&5===t&&r>.1&&(r=.1),r<.06&&(r=.06),Math.round(100*r)/100}function hv(e,t,n){let r;return r=n?e.v+.05*t:e.v-.15*t,r=Math.max(0,Math.min(1,r)),Math.round(100*r)/100}const vv=["#fff1f0","#ffccc7","#ffa39e","#ff7875","#ff4d4f","#f5222d","#cf1322","#a8071a","#820014","#5c0011"];vv.primary=vv[5];const bv=["#fff2e8","#ffd8bf","#ffbb96","#ff9c6e","#ff7a45","#fa541c","#d4380d","#ad2102","#871400","#610b00"];bv.primary=bv[5];const yv=["#fff7e6","#ffe7ba","#ffd591","#ffc069","#ffa940","#fa8c16","#d46b08","#ad4e00","#873800","#612500"];yv.primary=yv[5];const xv=["#fffbe6","#fff1b8","#ffe58f","#ffd666","#ffc53d","#faad14","#d48806","#ad6800","#874d00","#613400"];xv.primary=xv[5];const Cv=["#feffe6","#ffffb8","#fffb8f","#fff566","#ffec3d","#fadb14","#d4b106","#ad8b00","#876800","#614700"];Cv.primary=Cv[5];const wv=["#fcffe6","#f4ffb8","#eaff8f","#d3f261","#bae637","#a0d911","#7cb305","#5b8c00","#3f6600","#254000"];wv.primary=wv[5];const Sv=["#f6ffed","#d9f7be","#b7eb8f","#95de64","#73d13d","#52c41a","#389e0d","#237804","#135200","#092b00"];Sv.primary=Sv[5];const $v=["#e6fffb","#b5f5ec","#87e8de","#5cdbd3","#36cfc9","#13c2c2","#08979c","#006d75","#00474f","#002329"];$v.primary=$v[5];const Ev=["#e6f4ff","#bae0ff","#91caff","#69b1ff","#4096ff","#1677ff","#0958d9","#003eb3","#002c8c","#001d66"];Ev.primary=Ev[5];const Ov=["#f0f5ff","#d6e4ff","#adc6ff","#85a5ff","#597ef7","#2f54eb","#1d39c4","#10239e","#061178","#030852"];Ov.primary=Ov[5];const kv=["#f9f0ff","#efdbff","#d3adf7","#b37feb","#9254de","#722ed1","#531dab","#391085","#22075e","#120338"];kv.primary=kv[5];const Iv=["#fff0f6","#ffd6e7","#ffadd2","#ff85c0","#f759ab","#eb2f96","#c41d7f","#9e1068","#780650","#520339"];Iv.primary=Iv[5];const jv=["#a6a6a6","#999999","#8c8c8c","#808080","#737373","#666666","#404040","#1a1a1a","#000000","#000000"];jv.primary=jv[5];const Pv=["#2a1215","#431418","#58181c","#791a1f","#a61d24","#d32029","#e84749","#f37370","#f89f9a","#fac8c3"];Pv.primary=Pv[5];const Mv=["#2b1611","#441d12","#592716","#7c3118","#aa3e19","#d84a1b","#e87040","#f3956a","#f8b692","#fad4bc"];Mv.primary=Mv[5];const Nv=["#2b1d11","#442a11","#593815","#7c4a15","#aa6215","#d87a16","#e89a3c","#f3b765","#f8cf8d","#fae3b7"];Nv.primary=Nv[5];const Rv=["#2b2111","#443111","#594214","#7c5914","#aa7714","#d89614","#e8b339","#f3cc62","#f8df8b","#faedb5"];Rv.primary=Rv[5];const Av=["#2b2611","#443b11","#595014","#7c6e14","#aa9514","#d8bd14","#e8d639","#f3ea62","#f8f48b","#fafab5"];Av.primary=Av[5];const zv=["#1f2611","#2e3c10","#3e4f13","#536d13","#6f9412","#8bbb11","#a9d134","#c9e75d","#e4f88b","#f0fab5"];zv.primary=zv[5];const Tv=["#162312","#1d3712","#274916","#306317","#3c8618","#49aa19","#6abe39","#8fd460","#b2e58b","#d5f2bb"];Tv.primary=Tv[5];const Fv=["#112123","#113536","#144848","#146262","#138585","#13a8a8","#33bcb7","#58d1c9","#84e2d8","#b2f1e8"];Fv.primary=Fv[5];const Bv=["#111a2c","#112545","#15325b","#15417e","#1554ad","#1668dc","#3c89e8","#65a9f3","#8dc5f8","#b7dcfa"];Bv.primary=Bv[5];const Hv=["#131629","#161d40","#1c2755","#203175","#263ea0","#2b4acb","#5273e0","#7f9ef3","#a8c1f8","#d2e0fa"];Hv.primary=Hv[5];const _v=["#1a1325","#24163a","#301c4d","#3e2069","#51258f","#642ab5","#854eca","#ab7ae0","#cda8f0","#ebd7fa"];_v.primary=_v[5];const Lv=["#291321","#40162f","#551c3b","#75204f","#a02669","#cb2b83","#e0529c","#f37fb7","#f8a8cc","#fad2e3"];Lv.primary=Lv[5];const Dv=["#151515","#1f1f1f","#2d2d2d","#393939","#494949","#5a5a5a","#6a6a6a","#7b7b7b","#888888","#969696"];Dv.primary=Dv[5];const Vv=(0,e.createContext)({}),Wv="data-rc-order",qv="data-rc-priority",Gv=new Map;function Xv({mark:e}={}){return e?e.startsWith("data-")?e:`data-${e}`:"rc-util-key"}function Kv(e){return e.attachTo?e.attachTo:document.querySelector("head")||document.body}function Uv(e){return Array.from((Gv.get(e)||e).children).filter(e=>"STYLE"===e.tagName)}function Yv(e,t={}){if("undefined"==typeof window||!window.document||!window.document.createElement)return null;const{csp:n,prepend:r,priority:o=0}=t,i=function(e){return"queue"===e?"prependQueue":e?"prepend":"append"}(r),a="prependQueue"===i,l=document.createElement("style");l.setAttribute(Wv,i),a&&o&&l.setAttribute(qv,`${o}`),n?.nonce&&(l.nonce=n?.nonce),l.innerHTML=e;const s=Kv(t),{firstChild:c}=s;if(r){if(a){const e=(t.styles||Uv(s)).filter(e=>{if(!["prepend","prependQueue"].includes(e.getAttribute(Wv)))return!1;const t=Number(e.getAttribute(qv)||0);return o>=t});if(e.length)return s.insertBefore(l,e[e.length-1].nextSibling),l}s.insertBefore(l,c)}else s.appendChild(l);return l}function Qv(e,t,n={}){const r=Kv(n),o=Uv(r),i={...n,styles:o};!function(e,t){const n=Gv.get(e);if(!n||!function(e,t){if(!e)return!1;if(e.contains)return e.contains(t);let n=t;for(;n;){if(n===e)return!0;n=n.parentNode}return!1}(document,n)){const n=Yv("",t),{parentNode:r}=n;Gv.set(e,r),e.removeChild(n)}}(r,i);const a=function(e,t={}){let{styles:n}=t;return n||=Uv(Kv(t)),n.find(n=>n.getAttribute(Xv(t))===e)}(t,i);if(a)return i.csp?.nonce&&a.nonce!==i.csp?.nonce&&(a.nonce=i.csp?.nonce),a.innerHTML!==e&&(a.innerHTML=e),a;const l=Yv(e,i);return l.setAttribute(Xv(i),t),l}function Zv(e){return e?.getRootNode?.()}let Jv={};const eb=[];function tb(e,t){}function nb(e,t){}function rb(e,t,n){t||Jv[n]||(e(!1,n),Jv[n]=!0)}function ob(e,t){rb(tb,e,t)}function ib(e){return"object"==typeof e&&"string"==typeof e.name&&"string"==typeof e.theme&&("object"==typeof e.icon||"function"==typeof e.icon)}function ab(e={}){return Object.keys(e).reduce((t,n)=>{const r=e[n];var o;return"class"===n?(t.className=r,delete t.class):(delete t[n],t[(o=n,o.replace(/-(.)/g,(e,t)=>t.toUpperCase()))]=r),t},{})}function lb(e,n,r){return r?t().createElement(e.tag,{key:n,...ab(e.attrs),...r},(e.children||[]).map((t,r)=>lb(t,`${n}-${e.tag}-${r}`))):t().createElement(e.tag,{key:n,...ab(e.attrs)},(e.children||[]).map((t,r)=>lb(t,`${n}-${e.tag}-${r}`)))}function sb(e){return function(e,t={}){const n=[],r=new fv(e),o=r.toHsv();for(let e=5;e>0;e-=1){const t=new fv({h:mv(o,e,!0),s:gv(o,e,!0),v:hv(o,e,!0)});n.push(t)}n.push(r);for(let e=1;e<=4;e+=1){const t=new fv({h:mv(o,e),s:gv(o,e),v:hv(o,e)});n.push(t)}return"dark"===t.theme?pv.map(({index:e,amount:r})=>new fv(t.backgroundColor||"#141414").mix(n[e],r).toHexString()):n.map(e=>e.toHexString())}(e)[0]}function cb(e){return e?Array.isArray(e)?e:[e]:[]}ob.preMessage=e=>{eb.push(e)},ob.resetWarned=function(){Jv={}},ob.noteOnce=function(e,t){rb(nb,e,t)};const ub={primaryColor:"#333",secondaryColor:"#E6E6E6",calculated:!1},db=t=>{const{icon:n,className:r,onClick:o,style:i,primaryColor:a,secondaryColor:l,...s}=t,c=e.useRef(null);let u=ub;if(a&&(u={primaryColor:a,secondaryColor:l||sb(a)}),(t=>{const{csp:n,prefixCls:r,layer:o}=(0,e.useContext)(Vv);let i="\n.anticon {\n display: inline-flex;\n align-items: center;\n color: inherit;\n font-style: normal;\n line-height: 0;\n text-align: center;\n text-transform: none;\n vertical-align: -0.125em;\n text-rendering: optimizeLegibility;\n -webkit-font-smoothing: antialiased;\n -moz-osx-font-smoothing: grayscale;\n}\n\n.anticon > * {\n line-height: 1;\n}\n\n.anticon svg {\n display: inline-block;\n vertical-align: inherit;\n}\n\n.anticon::before {\n display: none;\n}\n\n.anticon .anticon-icon {\n display: block;\n}\n\n.anticon[tabindex] {\n cursor: pointer;\n}\n\n.anticon-spin::before,\n.anticon-spin {\n display: inline-block;\n -webkit-animation: loadingCircle 1s infinite linear;\n animation: loadingCircle 1s infinite linear;\n}\n\n@-webkit-keyframes loadingCircle {\n 100% {\n -webkit-transform: rotate(360deg);\n transform: rotate(360deg);\n }\n}\n\n@keyframes loadingCircle {\n 100% {\n -webkit-transform: rotate(360deg);\n transform: rotate(360deg);\n }\n}\n";r&&(i=i.replace(/anticon/g,r)),o&&(i=`@layer ${o} {\n${i}\n}`),(0,e.useEffect)(()=>{const e=function(e){return Zv(e)instanceof ShadowRoot}(r=t.current)?Zv(r):null;var r;Qv(i,"@ant-design-icons",{prepend:!o,csp:n,attachTo:e})},[])})(c),ob(ib(n),`[@ant-design/icons] icon should be icon definiton, but got ${n}`),!ib(n))return null;let d=n;return d&&"function"==typeof d.icon&&(d={...d,icon:d.icon(u.primaryColor,u.secondaryColor)}),lb(d.icon,`svg-${d.name}`,{className:r,onClick:o,style:i,"data-icon":d.name,width:"1em",height:"1em",fill:"currentColor","aria-hidden":"true",...s,ref:c})};db.displayName="IconReact",db.getTwoToneColors=function(){return{...ub}},db.setTwoToneColors=function({primaryColor:e,secondaryColor:t}){ub.primaryColor=e,ub.secondaryColor=t||sb(e),ub.calculated=!!t};const fb=db;function pb(e){const[t,n]=cb(e);return fb.setTwoToneColors({primaryColor:t,secondaryColor:n})}function mb(){return mb=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},mb.apply(this,arguments)}pb(Ev.primary);const gb=e.forwardRef((t,n)=>{const{className:r,icon:o,spin:i,rotate:a,tabIndex:l,onClick:s,twoToneColor:c,...u}=t,{prefixCls:d="anticon",rootClassName:f}=e.useContext(Vv),p=function(){for(var e,t,n=0,r="",o=arguments.length;n<o;n++)(e=arguments[n])&&(t=av(e))&&(r&&(r+=" "),r+=t);return r}(f,d,{[`${d}-${o.name}`]:!!o.name,[`${d}-spin`]:!!i||"loading"===o.name},r);let m=l;void 0===m&&s&&(m=-1);const g=a?{msTransform:`rotate(${a}deg)`,transform:`rotate(${a}deg)`}:void 0,[h,v]=cb(c);return e.createElement("span",mb({role:"img","aria-label":o.name},u,{ref:n,tabIndex:m,onClick:s,className:p}),e.createElement(fb,{icon:o,primaryColor:h,secondaryColor:v,style:g}))});gb.getTwoToneColor=function(){const e=fb.getTwoToneColors();return e.calculated?[e.primaryColor,e.secondaryColor]:e.primaryColor},gb.setTwoToneColor=pb;const hb=gb;function vb(){return vb=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},vb.apply(this,arguments)}const bb=(t,n)=>e.createElement(hb,vb({},t,{ref:n,icon:iv})),yb=e.forwardRef(bb),xb=t=>{let n;const r=()=>t.selections.find(e=>"FragmentSpread"===e.kind&&e.name.value===t.fragment.name.value),{styleConfig:o}=t,i=r();return(0,e.createElement)("div",{className:`graphiql-explorer-${t.fragment.name.value}`},(0,e.createElement)("span",{style:{cursor:"pointer"},onClick:i?()=>{const e=r();n=e,t.modifySelections(t.selections.filter(e=>!("FragmentSpread"===e.kind&&e.name.value===t.fragment.name.value)))}:()=>{t.modifySelections([...t.selections,n||{kind:"FragmentSpread",name:t.fragment.name}])}},(0,e.createElement)(zd,{checked:!!i,styleConfig:t.styleConfig}),(0,e.createElement)("span",{style:{color:o.colors.def},className:`graphiql-explorer-${t.fragment.name.value}`},t.fragment.name.value),(0,e.createElement)(Uc,{getPopupContainer:()=>window.document.getElementsByClassName("doc-explorer-app")[0],title:`Edit the ${t.fragment.name.value} Fragment`},(0,e.createElement)(Ad,{style:{height:"18px",margin:"0px 5px"},title:`Edit the ${t.fragment.name.value} Fragment`,type:"primary",size:"small",onClick:e=>{e.preventDefault(),e.stopPropagation();const n=window.document.getElementById(`collapse-wrap-fragment-${t.fragment.name.value}`);n&&n.scrollIntoView({behavior:"smooth",block:"start",inline:"nearest"})},icon:(0,e.createElement)(yb,null)}))))},Cb=t=>{let n;const r=()=>{const e=t.selections.find(e=>"InlineFragment"===e.kind&&e.typeCondition&&t.implementingType.name===e.typeCondition.name.value);return e?"InlineFragment"===e.kind?e:void 0:null},o=(e,n)=>{const o=r();return t.modifySelections(t.selections.map(n=>n===o?{directives:n.directives,kind:"InlineFragment",typeCondition:{kind:"NamedType",name:{kind:"Name",value:t.implementingType.name}},selectionSet:{kind:"SelectionSet",selections:e}}:n),n)},{implementingType:i,schema:a,getDefaultFieldNames:l,styleConfig:s}=t,c=r(),u=i.getFields(),d=c&&c.selectionSet?c.selectionSet.selections:[];return(0,e.createElement)("div",{className:`graphiql-explorer-${i.name}`},(0,e.createElement)("span",{style:{cursor:"pointer"},onClick:c?()=>{const e=r();n=e,t.modifySelections(t.selections.filter(t=>t!==e))}:()=>{t.modifySelections([...t.selections,n||{kind:"InlineFragment",typeCondition:{kind:"NamedType",name:{kind:"Name",value:t.implementingType.name}},selectionSet:{kind:"SelectionSet",selections:t.getDefaultFieldNames(t.implementingType).map(e=>({kind:"Field",name:{kind:"Name",value:e}}))}}])}},(0,e.createElement)(zd,{checked:!!c,styleConfig:t.styleConfig}),(0,e.createElement)("span",{style:{color:s.colors.atom}},t.implementingType.name)),c?(0,e.createElement)("div",{style:{marginLeft:16}},Object.keys(u).sort().map(n=>(0,e.createElement)(Nb,{key:n,field:u[n],selections:d,modifySelections:o,schema:a,getDefaultFieldNames:l,getDefaultScalarArgValue:t.getDefaultScalarArgValue,makeDefaultArg:t.makeDefaultArg,onRunOperation:t.onRunOperation,onCommit:t.onCommit,styleConfig:t.styleConfig,definition:t.definition,availableFragments:t.availableFragments}))):null)},wb={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"};function Sb(){return Sb=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Sb.apply(this,arguments)}const $b=(t,n)=>e.createElement(hb,Sb({},t,{ref:n,icon:wb})),Eb=e.forwardRef($b),{getNamedType:Ob,isInterfaceType:kb,isObjectType:Ib,isUnionType:jb}=wpGraphiQL.GraphQL,{useState:Pb}=wp.element,Mb=t=>{const[n,r]=Pb(!1);let o;const i=()=>{const e=t.selections.find(e=>"Field"===e.kind&&t.field.name===e.name.value);return e?"Field"===e.kind?e:void 0:null},a=(e,n)=>{const r=i();if(r)return t.modifySelections(t.selections.map(t=>t===r?{alias:r.alias,arguments:e,directives:r.directives,kind:"Field",name:r.name,selectionSet:r.selectionSet}:t),n);console.error("Missing selection when setting arguments",e)},l=(e,n)=>t.modifySelections(t.selections.map(n=>{if("Field"===n.kind&&t.field.name===n.name.value){if("Field"!==n.kind)throw new Error("invalid selection");return{alias:n.alias,arguments:n.arguments,directives:n.directives,kind:"Field",name:n.name,selectionSet:{kind:"SelectionSet",selections:e}}}return n}),n),{field:s,schema:c,getDefaultFieldNames:u,styleConfig:d}=t,f=i(),p=k(s.type),m=s.args.sort((e,t)=>e.name.localeCompare(t.name));let g=`graphiql-explorer-node graphiql-explorer-${s.name}`;s.isDeprecated&&(g+=" graphiql-explorer-deprecated");const h=Ib(p)||kb(p)||jb(p)?t.availableFragments&&t.availableFragments[p.name]:null,v=f&&f.selectionSet?f.selectionSet.selections:[],b=(0,e.createElement)("div",{className:g},(0,e.createElement)("span",{title:s.description,style:{cursor:"pointer",display:"inline-flex",alignItems:"center",minHeight:"16px",WebkitUserSelect:"none",userSelect:"none"},"data-field-name":s.name,"data-field-type":p.name,onClick:e=>{if(i()&&!e.altKey)(()=>{const e=i();o=e,t.modifySelections(t.selections.filter(t=>t!==e))})();else{const n=Ob(t.field.type),r=Ib(n)&&n.getFields();r&&e.altKey?(e=>{const n={kind:"SelectionSet",selections:e?Object.keys(e).map(e=>({kind:"Field",name:{kind:"Name",value:e},arguments:[]})):[]},r=[...t.selections.filter(e=>"InlineFragment"===e.kind||e.name.value!==t.field.name),{kind:"Field",name:{kind:"Name",value:t.field.name},arguments:M(t.getDefaultScalarArgValue,t.makeDefaultArg,t.field),selectionSet:n}];t.modifySelections(r)})(r):(()=>{const e=[...t.selections,o||{kind:"Field",name:{kind:"Name",value:t.field.name},arguments:M(t.getDefaultScalarArgValue,t.makeDefaultArg,t.field)}];t.modifySelections(e)})()}},onMouseEnter:()=>{Ib(p)&&f&&f.selectionSet&&f.selectionSet.selections.filter(e=>"FragmentSpread"!==e.kind).length>0&&r(!0)},onMouseLeave:()=>r(!1)},Ib(p)?(0,e.createElement)("span",null,f?t.styleConfig.arrowOpen:t.styleConfig.arrowClosed):null,Ib(p)?null:(0,e.createElement)(zd,{checked:!!f,styleConfig:t.styleConfig}),(0,e.createElement)("span",{style:{color:d.colors.property},className:"graphiql-explorer-field-view"},s.name),n?(0,e.createElement)(Uc,{getPopupContainer:()=>window.document.getElementsByClassName("doc-explorer-app")[0],title:"Extract selections into a new reusable fragment"},(0,e.createElement)(Ad,{size:"small",type:"primary",title:"Extract selections into a new reusable fragment",onClick:e=>{e.preventDefault(),e.stopPropagation();let n=`${p.name}Fragment`;const o=(h||[]).filter(e=>e.name.value.startsWith(n)).length;o>0&&(n=`${n}${o}`);const i=[{kind:"FragmentSpread",name:{kind:"Name",value:n},directives:[]}],a={kind:"FragmentDefinition",name:{kind:"Name",value:n},typeCondition:{kind:"NamedType",name:{kind:"Name",value:p.name}},directives:[],selectionSet:{kind:"SelectionSet",selections:v}},s=l(i,!1);if(s){const e={...s,definitions:[...s.definitions,a]};t.onCommit(e)}else console.warn("Unable to complete extractFragment operation");r(!1)},icon:(0,e.createElement)(Eb,null),style:{height:"18px",margin:"0px 5px"}})):null),f&&m.length?(0,e.createElement)("div",{style:{marginLeft:16},className:"graphiql-explorer-graphql-arguments"},m.map(n=>(0,e.createElement)(ov,{key:n.name,parentField:s,arg:n,selection:f,modifyArguments:a,getDefaultScalarArgValue:t.getDefaultScalarArgValue,makeDefaultArg:t.makeDefaultArg,onRunOperation:t.onRunOperation,styleConfig:t.styleConfig,onCommit:t.onCommit,definition:t.definition}))):null);if(f){const n=k(p),r=n&&"getFields"in n?n.getFields():null;if(r)return(0,e.createElement)("div",{className:`graphiql-explorer-${s.name}`},b,(0,e.createElement)("div",{style:{marginLeft:16}},h?h.map(n=>{const r=c.getType(n.typeCondition.name.value),o=n.name.value;return r?(0,e.createElement)(xb,{key:o,fragment:n,selections:v,modifySelections:l,schema:c,styleConfig:t.styleConfig,onCommit:t.onCommit}):null}):null,Object.keys(r).sort().map(n=>(0,e.createElement)(Mb,{key:n,field:r[n],selections:v,modifySelections:l,schema:c,getDefaultFieldNames:u,getDefaultScalarArgValue:t.getDefaultScalarArgValue,makeDefaultArg:t.makeDefaultArg,onRunOperation:t.onRunOperation,styleConfig:t.styleConfig,onCommit:t.onCommit,definition:t.definition,availableFragments:t.availableFragments})),kb(p)||jb(p)?c.getPossibleTypes(p).map(n=>(0,e.createElement)(Cb,{key:n.name,implementingType:n,selections:v,modifySelections:l,schema:c,getDefaultFieldNames:u,getDefaultScalarArgValue:t.getDefaultScalarArgValue,makeDefaultArg:t.makeDefaultArg,onRunOperation:t.onRunOperation,styleConfig:t.styleConfig,onCommit:t.onCommit,definition:t.definition})):null));if(jb(p))return(0,e.createElement)("div",{className:`graphiql-explorer-${s.name}`},b,(0,e.createElement)("div",{style:{marginLeft:16}},c.getPossibleTypes(p).map(n=>(0,e.createElement)(Cb,{key:n.name,implementingType:n,selections:v,modifySelections:l,schema:c,getDefaultFieldNames:u,getDefaultScalarArgValue:t.getDefaultScalarArgValue,makeDefaultArg:t.makeDefaultArg,onRunOperation:t.onRunOperation,styleConfig:t.styleConfig,onCommit:t.onCommit,definition:t.definition}))))}return b},Nb=Mb;var Rb=function(){return Rb=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},Rb.apply(this,arguments)};function Ab(e,t,n){if(n||2===arguments.length)for(var r,o=0,i=t.length;o<i;o++)!r&&o in t||(r||(r=Array.prototype.slice.call(t,0,o)),r[o]=t[o]);return e.concat(r||Array.prototype.slice.call(t))}Object.create,Object.create,"function"==typeof SuppressedError&&SuppressedError;var zb=n(2146),Tb=n.n(zb),Fb="-ms-",Bb="-moz-",Hb="-webkit-",_b="comm",Lb="rule",Db="decl",Vb="@keyframes",Wb=Math.abs,qb=String.fromCharCode,Gb=Object.assign;function Xb(e){return e.trim()}function Kb(e,t){return(e=t.exec(e))?e[0]:e}function Ub(e,t,n){return e.replace(t,n)}function Yb(e,t,n){return e.indexOf(t,n)}function Qb(e,t){return 0|e.charCodeAt(t)}function Zb(e,t,n){return e.slice(t,n)}function Jb(e){return e.length}function ey(e){return e.length}function ty(e,t){return t.push(e),e}function ny(e,t){return e.filter(function(e){return!Kb(e,t)})}var ry=1,oy=1,iy=0,ay=0,ly=0,sy="";function cy(e,t,n,r,o,i,a,l){return{value:e,root:t,parent:n,type:r,props:o,children:i,line:ry,column:oy,length:a,return:"",siblings:l}}function uy(e,t){return Gb(cy("",null,null,"",null,null,0,e.siblings),e,{length:-e.length},t)}function dy(e){for(;e.root;)e=uy(e.root,{children:[e]});ty(e,e.siblings)}function fy(){return ly=ay>0?Qb(sy,--ay):0,oy--,10===ly&&(oy=1,ry--),ly}function py(){return ly=ay<iy?Qb(sy,ay++):0,oy++,10===ly&&(oy=1,ry++),ly}function my(){return Qb(sy,ay)}function gy(){return ay}function hy(e,t){return Zb(sy,e,t)}function vy(e){switch(e){case 0:case 9:case 10:case 13:case 32:return 5;case 33:case 43:case 44:case 47:case 62:case 64:case 126:case 59:case 123:case 125:return 4;case 58:return 3;case 34:case 39:case 40:case 91:return 2;case 41:case 93:return 1}return 0}function by(e){return Xb(hy(ay-1,Cy(91===e?e+2:40===e?e+1:e)))}function yy(e){for(;(ly=my())&&ly<33;)py();return vy(e)>2||vy(ly)>3?"":" "}function xy(e,t){for(;--t&&py()&&!(ly<48||ly>102||ly>57&&ly<65||ly>70&&ly<97););return hy(e,gy()+(t<6&&32==my()&&32==py()))}function Cy(e){for(;py();)switch(ly){case e:return ay;case 34:case 39:34!==e&&39!==e&&Cy(ly);break;case 40:41===e&&Cy(e);break;case 92:py()}return ay}function wy(e,t){for(;py()&&e+ly!==57&&(e+ly!==84||47!==my()););return"/*"+hy(t,ay-1)+"*"+qb(47===e?e:py())}function Sy(e){for(;!vy(my());)py();return hy(e,ay)}function $y(e,t){for(var n="",r=0;r<e.length;r++)n+=t(e[r],r,e,t)||"";return n}function Ey(e,t,n,r){switch(e.type){case"@layer":if(e.children.length)break;case"@import":case"@namespace":case Db:return e.return=e.return||e.value;case _b:return"";case Vb:return e.return=e.value+"{"+$y(e.children,r)+"}";case Lb:if(!Jb(e.value=e.props.join(",")))return""}return Jb(n=$y(e.children,r))?e.return=e.value+"{"+n+"}":""}function Oy(e,t,n){switch(function(e,t){return 45^Qb(e,0)?(((t<<2^Qb(e,0))<<2^Qb(e,1))<<2^Qb(e,2))<<2^Qb(e,3):0}(e,t)){case 5103:return Hb+"print-"+e+e;case 5737:case 4201:case 3177:case 3433:case 1641:case 4457:case 2921:case 5572:case 6356:case 5844:case 3191:case 6645:case 3005:case 4215:case 6389:case 5109:case 5365:case 5621:case 3829:case 6391:case 5879:case 5623:case 6135:case 4599:return Hb+e+e;case 4855:return Hb+e.replace("add","source-over").replace("substract","source-out").replace("intersect","source-in").replace("exclude","xor")+e;case 4789:return Bb+e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return Hb+e+Bb+e+Fb+e+e;case 5936:switch(Qb(e,t+11)){case 114:return Hb+e+Fb+Ub(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return Hb+e+Fb+Ub(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return Hb+e+Fb+Ub(e,/[svh]\w+-[tblr]{2}/,"lr")+e}case 6828:case 4268:case 2903:return Hb+e+Fb+e+e;case 6165:return Hb+e+Fb+"flex-"+e+e;case 5187:return Hb+e+Ub(e,/(\w+).+(:[^]+)/,Hb+"box-$1$2"+Fb+"flex-$1$2")+e;case 5443:return Hb+e+Fb+"flex-item-"+Ub(e,/flex-|-self/g,"")+(Kb(e,/flex-|baseline/)?"":Fb+"grid-row-"+Ub(e,/flex-|-self/g,""))+e;case 4675:return Hb+e+Fb+"flex-line-pack"+Ub(e,/align-content|flex-|-self/g,"")+e;case 5548:return Hb+e+Fb+Ub(e,"shrink","negative")+e;case 5292:return Hb+e+Fb+Ub(e,"basis","preferred-size")+e;case 6060:return Hb+"box-"+Ub(e,"-grow","")+Hb+e+Fb+Ub(e,"grow","positive")+e;case 4554:return Hb+Ub(e,/([^-])(transform)/g,"$1"+Hb+"$2")+e;case 6187:return Ub(Ub(Ub(e,/(zoom-|grab)/,Hb+"$1"),/(image-set)/,Hb+"$1"),e,"")+e;case 5495:case 3959:return Ub(e,/(image-set\([^]*)/,Hb+"$1$`$1");case 4968:return Ub(Ub(e,/(.+:)(flex-)?(.*)/,Hb+"box-pack:$3"+Fb+"flex-pack:$3"),/space-between/,"justify")+Hb+e+e;case 4200:if(!Kb(e,/flex-|baseline/))return Fb+"grid-column-align"+Zb(e,t)+e;break;case 2592:case 3360:return Fb+Ub(e,"template-","")+e;case 4384:case 3616:return n&&n.some(function(e,n){return t=n,Kb(e.props,/grid-\w+-end/)})?~Yb(e+(n=n[t].value),"span",0)?e:Fb+Ub(e,"-start","")+e+Fb+"grid-row-span:"+(~Yb(n,"span",0)?Kb(n,/\d+/):+Kb(n,/\d+/)-+Kb(e,/\d+/))+";":Fb+Ub(e,"-start","")+e;case 4896:case 4128:return n&&n.some(function(e){return Kb(e.props,/grid-\w+-start/)})?e:Fb+Ub(Ub(e,"-end","-span"),"span ","")+e;case 4095:case 3583:case 4068:case 2532:return Ub(e,/(.+)-inline(.+)/,Hb+"$1$2")+e;case 8116:case 7059:case 5753:case 5535:case 5445:case 5701:case 4933:case 4677:case 5533:case 5789:case 5021:case 4765:if(Jb(e)-1-t>6)switch(Qb(e,t+1)){case 109:if(45!==Qb(e,t+4))break;case 102:return Ub(e,/(.+:)(.+)-([^]+)/,"$1"+Hb+"$2-$3$1"+Bb+(108==Qb(e,t+3)?"$3":"$2-$3"))+e;case 115:return~Yb(e,"stretch",0)?Oy(Ub(e,"stretch","fill-available"),t,n)+e:e}break;case 5152:case 5920:return Ub(e,/(.+?):(\d+)(\s*\/\s*(span)?\s*(\d+))?(.*)/,function(t,n,r,o,i,a,l){return Fb+n+":"+r+l+(o?Fb+n+"-span:"+(i?a:+a-+r)+l:"")+e});case 4949:if(121===Qb(e,t+6))return Ub(e,":",":"+Hb)+e;break;case 6444:switch(Qb(e,45===Qb(e,14)?18:11)){case 120:return Ub(e,/(.+:)([^;\s!]+)(;|(\s+)?!.+)?/,"$1"+Hb+(45===Qb(e,14)?"inline-":"")+"box$3$1"+Hb+"$2$3$1"+Fb+"$2box$3")+e;case 100:return Ub(e,":",":"+Fb)+e}break;case 5719:case 2647:case 2135:case 3927:case 2391:return Ub(e,"scroll-","scroll-snap-")+e}return e}function ky(e,t,n,r){if(e.length>-1&&!e.return)switch(e.type){case Db:return void(e.return=Oy(e.value,e.length,n));case Vb:return $y([uy(e,{value:Ub(e.value,"@","@"+Hb)})],r);case Lb:if(e.length)return function(e,t){return e.map(t).join("")}(n=e.props,function(t){switch(Kb(t,r=/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":dy(uy(e,{props:[Ub(t,/:(read-\w+)/,":-moz-$1")]})),dy(uy(e,{props:[t]})),Gb(e,{props:ny(n,r)});break;case"::placeholder":dy(uy(e,{props:[Ub(t,/:(plac\w+)/,":"+Hb+"input-$1")]})),dy(uy(e,{props:[Ub(t,/:(plac\w+)/,":-moz-$1")]})),dy(uy(e,{props:[Ub(t,/:(plac\w+)/,Fb+"input-$1")]})),dy(uy(e,{props:[t]})),Gb(e,{props:ny(n,r)})}return""})}}function Iy(e){return function(e){return sy="",e}(jy("",null,null,null,[""],e=function(e){return ry=oy=1,iy=Jb(sy=e),ay=0,[]}(e),0,[0],e))}function jy(e,t,n,r,o,i,a,l,s){for(var c=0,u=0,d=a,f=0,p=0,m=0,g=1,h=1,v=1,b=0,y="",x=o,C=i,w=r,S=y;h;)switch(m=b,b=py()){case 40:if(108!=m&&58==Qb(S,d-1)){-1!=Yb(S+=Ub(by(b),"&","&\f"),"&\f",Wb(c?l[c-1]:0))&&(v=-1);break}case 34:case 39:case 91:S+=by(b);break;case 9:case 10:case 13:case 32:S+=yy(m);break;case 92:S+=xy(gy()-1,7);continue;case 47:switch(my()){case 42:case 47:ty(My(wy(py(),gy()),t,n,s),s),5!=vy(m||1)&&5!=vy(my()||1)||!Jb(S)||" "===Zb(S,-1,void 0)||(S+=" ");break;default:S+="/"}break;case 123*g:l[c++]=Jb(S)*v;case 125*g:case 59:case 0:switch(b){case 0:case 125:h=0;case 59+u:-1==v&&(S=Ub(S,/\f/g,"")),p>0&&(Jb(S)-d||0===g&&47===m)&&ty(p>32?Ny(S+";",r,n,d-1,s):Ny(Ub(S," ","")+";",r,n,d-2,s),s);break;case 59:S+=";";default:if(ty(w=Py(S,t,n,c,u,o,l,y,x=[],C=[],d,i),i),123===b)if(0===u)jy(S,t,w,w,x,i,d,l,C);else{switch(f){case 99:if(110===Qb(S,3))break;case 108:if(97===Qb(S,2))break;default:u=0;case 100:case 109:case 115:}u?jy(e,w,w,r&&ty(Py(e,w,w,0,0,o,l,y,o,x=[],d,C),C),o,C,d,l,r?x:C):jy(S,w,w,w,[""],C,0,l,C)}}c=u=p=0,g=v=1,y=S="",d=a;break;case 58:d=1+Jb(S),p=m;default:if(g<1)if(123==b)--g;else if(125==b&&0==g++&&125==fy())continue;switch(S+=qb(b),b*g){case 38:v=u>0?1:(S+="\f",-1);break;case 44:l[c++]=(Jb(S)-1)*v,v=1;break;case 64:45===my()&&(S+=by(py())),f=my(),u=d=Jb(y=S+=Sy(gy())),b++;break;case 45:45===m&&2==Jb(S)&&(g=0)}}return i}function Py(e,t,n,r,o,i,a,l,s,c,u,d){for(var f=o-1,p=0===o?i:[""],m=ey(p),g=0,h=0,v=0;g<r;++g)for(var b=0,y=Zb(e,f+1,f=Wb(h=a[g])),x=e;b<m;++b)(x=Xb(h>0?p[b]+" "+y:Ub(y,/&\f/g,p[b])))&&(s[v++]=x);return cy(e,t,n,0===o?Lb:l,s,c,u,d)}function My(e,t,n,r){return cy(e,t,n,_b,qb(ly),Zb(e,2,-2),0,r)}function Ny(e,t,n,r,o){return cy(e,t,n,Db,Zb(e,0,r),Zb(e,r+1,-1),r,o)}var Ry={animationIterationCount:1,aspectRatio: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},Ay="undefined"!=typeof process&&void 0!==process.env&&(process.env.REACT_APP_SC_ATTR||process.env.SC_ATTR)||"data-styled",zy="active",Ty="data-styled-version",Fy="6.2.0",By="/*!sc*/\n",Hy="undefined"!=typeof window&&"undefined"!=typeof document,_y=Boolean("boolean"==typeof SC_DISABLE_SPEEDY?SC_DISABLE_SPEEDY:"undefined"!=typeof process&&void 0!==process.env&&void 0!==process.env.REACT_APP_SC_DISABLE_SPEEDY&&""!==process.env.REACT_APP_SC_DISABLE_SPEEDY?"false"!==process.env.REACT_APP_SC_DISABLE_SPEEDY&&process.env.REACT_APP_SC_DISABLE_SPEEDY:"undefined"!=typeof process&&void 0!==process.env&&void 0!==process.env.SC_DISABLE_SPEEDY&&""!==process.env.SC_DISABLE_SPEEDY&&"false"!==process.env.SC_DISABLE_SPEEDY&&process.env.SC_DISABLE_SPEEDY),Ly=(new Set,Object.freeze([])),Dy=Object.freeze({});var Vy=new Set(["a","abbr","address","area","article","aside","audio","b","base","bdi","bdo","big","blockquote","body","br","button","canvas","caption","cite","code","col","colgroup","data","datalist","dd","del","details","dfn","dialog","div","dl","dt","em","embed","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","header","hgroup","hr","html","i","iframe","img","input","ins","kbd","keygen","label","legend","li","link","main","map","mark","menu","menuitem","meta","meter","nav","noscript","object","ol","optgroup","option","output","p","param","picture","pre","progress","q","rp","rt","ruby","s","samp","script","section","select","small","source","span","strong","style","sub","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","tr","track","u","ul","use","var","video","wbr","circle","clipPath","defs","ellipse","foreignObject","g","image","line","linearGradient","marker","mask","path","pattern","polygon","polyline","radialGradient","rect","stop","svg","text","tspan"]),Wy=/[!"#$%&'()*+,./:;<=>?@[\\\]^`{|}~-]+/g,qy=/(^-|-$)/g;function Gy(e){return e.replace(Wy,"-").replace(qy,"")}var Xy=/(a)(d)/gi,Ky=function(e){return String.fromCharCode(e+(e>25?39:97))};function Uy(e){var t,n="";for(t=Math.abs(e);t>52;t=t/52|0)n=Ky(t%52)+n;return(Ky(t%52)+n).replace(Xy,"$1-$2")}var Yy,Qy=function(e,t){for(var n=t.length;n;)e=33*e^t.charCodeAt(--n);return e},Zy=function(e){return Qy(5381,e)};function Jy(e){return"string"==typeof e&&!0}var ex="function"==typeof Symbol&&Symbol.for,tx=ex?Symbol.for("react.memo"):60115,nx=ex?Symbol.for("react.forward_ref"):60112,rx={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},ox={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},ix={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},ax=((Yy={})[nx]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},Yy[tx]=ix,Yy);function lx(e){return("type"in(t=e)&&t.type.$$typeof)===tx?ix:"$$typeof"in e?ax[e.$$typeof]:rx;var t}var sx=Object.defineProperty,cx=Object.getOwnPropertyNames,ux=Object.getOwnPropertySymbols,dx=Object.getOwnPropertyDescriptor,fx=Object.getPrototypeOf,px=Object.prototype;function mx(e,t,n){if("string"!=typeof t){if(px){var r=fx(t);r&&r!==px&&mx(e,r,n)}var o=cx(t);ux&&(o=o.concat(ux(t)));for(var i=lx(e),a=lx(t),l=0;l<o.length;++l){var s=o[l];if(!(s in ox||n&&n[s]||a&&s in a||i&&s in i)){var c=dx(t,s);try{sx(e,s,c)}catch(e){}}}}return e}function gx(e){return"function"==typeof e}function hx(e){return"object"==typeof e&&"styledComponentId"in e}function vx(e,t){return e&&t?"".concat(e," ").concat(t):e||t||""}function bx(e,t){if(0===e.length)return"";for(var n=e[0],r=1;r<e.length;r++)n+=t?t+e[r]:e[r];return n}function yx(e){return null!==e&&"object"==typeof e&&e.constructor.name===Object.name&&!("props"in e&&e.$$typeof)}function xx(e,t,n){if(void 0===n&&(n=!1),!n&&!yx(e)&&!Array.isArray(e))return t;if(Array.isArray(t))for(var r=0;r<t.length;r++)e[r]=xx(e[r],t[r]);else if(yx(t))for(var r in t)e[r]=xx(e[r],t[r]);return e}function Cx(e,t){Object.defineProperty(e,"toString",{value:t})}function wx(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];return new Error("An error occurred. See https://github.com/styled-components/styled-components/blob/main/packages/styled-components/src/utils/errors.md#".concat(e," for more information.").concat(t.length>0?" Args: ".concat(t.join(", ")):""))}var Sx=function(){function e(e){this.groupSizes=new Uint32Array(512),this.length=512,this.tag=e}return e.prototype.indexOfGroup=function(e){for(var t=0,n=0;n<e;n++)t+=this.groupSizes[n];return t},e.prototype.insertRules=function(e,t){if(e>=this.groupSizes.length){for(var n=this.groupSizes,r=n.length,o=r;e>=o;)if((o<<=1)<0)throw wx(16,"".concat(e));this.groupSizes=new Uint32Array(o),this.groupSizes.set(n),this.length=o;for(var i=r;i<o;i++)this.groupSizes[i]=0}for(var a=this.indexOfGroup(e+1),l=(i=0,t.length);i<l;i++)this.tag.insertRule(a,t[i])&&(this.groupSizes[e]++,a++)},e.prototype.clearGroup=function(e){if(e<this.length){var t=this.groupSizes[e],n=this.indexOfGroup(e),r=n+t;this.groupSizes[e]=0;for(var o=n;o<r;o++)this.tag.deleteRule(n)}},e.prototype.getGroup=function(e){var t="";if(e>=this.length||0===this.groupSizes[e])return t;for(var n=this.groupSizes[e],r=this.indexOfGroup(e),o=r+n,i=r;i<o;i++)t+="".concat(this.tag.getRule(i)).concat(By);return t},e}(),$x=new Map,Ex=new Map,Ox=1,kx=function(e){if($x.has(e))return $x.get(e);for(;Ex.has(Ox);)Ox++;var t=Ox++;return $x.set(e,t),Ex.set(t,e),t},Ix=function(e,t){Ox=t+1,$x.set(e,t),Ex.set(t,e)},jx="style[".concat(Ay,"][").concat(Ty,'="').concat(Fy,'"]'),Px=new RegExp("^".concat(Ay,'\\.g(\\d+)\\[id="([\\w\\d-]+)"\\].*?"([^"]*)')),Mx=function(e,t,n){for(var r,o=n.split(","),i=0,a=o.length;i<a;i++)(r=o[i])&&e.registerName(t,r)},Nx=function(e,t){for(var n,r=(null!==(n=t.textContent)&&void 0!==n?n:"").split(By),o=[],i=0,a=r.length;i<a;i++){var l=r[i].trim();if(l){var s=l.match(Px);if(s){var c=0|parseInt(s[1],10),u=s[2];0!==c&&(Ix(u,c),Mx(e,u,s[3]),e.getTag().insertRules(c,o)),o.length=0}else o.push(l)}}},Rx=function(e){for(var t=document.querySelectorAll(jx),n=0,r=t.length;n<r;n++){var o=t[n];o&&o.getAttribute(Ay)!==zy&&(Nx(e,o),o.parentNode&&o.parentNode.removeChild(o))}};function Ax(){return n.nc}var zx=function(e){var t=document.head,n=e||t,r=document.createElement("style"),o=function(e){var t=Array.from(e.querySelectorAll("style[".concat(Ay,"]")));return t[t.length-1]}(n),i=void 0!==o?o.nextSibling:null;r.setAttribute(Ay,zy),r.setAttribute(Ty,Fy);var a=Ax();return a&&r.setAttribute("nonce",a),n.insertBefore(r,i),r},Tx=function(){function e(e){this.element=zx(e),this.element.appendChild(document.createTextNode("")),this.sheet=function(e){if(e.sheet)return e.sheet;for(var t=document.styleSheets,n=0,r=t.length;n<r;n++){var o=t[n];if(o.ownerNode===e)return o}throw wx(17)}(this.element),this.length=0}return e.prototype.insertRule=function(e,t){try{return this.sheet.insertRule(t,e),this.length++,!0}catch(e){return!1}},e.prototype.deleteRule=function(e){this.sheet.deleteRule(e),this.length--},e.prototype.getRule=function(e){var t=this.sheet.cssRules[e];return t&&t.cssText?t.cssText:""},e}(),Fx=function(){function e(e){this.element=zx(e),this.nodes=this.element.childNodes,this.length=0}return e.prototype.insertRule=function(e,t){if(e<=this.length&&e>=0){var n=document.createTextNode(t);return this.element.insertBefore(n,this.nodes[e]||null),this.length++,!0}return!1},e.prototype.deleteRule=function(e){this.element.removeChild(this.nodes[e]),this.length--},e.prototype.getRule=function(e){return e<this.length?this.nodes[e].textContent:""},e}(),Bx=function(){function e(e){this.rules=[],this.length=0}return e.prototype.insertRule=function(e,t){return e<=this.length&&(this.rules.splice(e,0,t),this.length++,!0)},e.prototype.deleteRule=function(e){this.rules.splice(e,1),this.length--},e.prototype.getRule=function(e){return e<this.length?this.rules[e]:""},e}(),Hx=Hy,Lx={isServer:!Hy,useCSSOMInjection:!_y},Dx=function(){function e(e,t,n){void 0===e&&(e=Dy),void 0===t&&(t={});var r=this;this.options=Rb(Rb({},Lx),e),this.gs=t,this.names=new Map(n),this.server=!!e.isServer,!this.server&&Hy&&Hx&&(Hx=!1,Rx(this)),Cx(this,function(){return function(e){for(var t=e.getTag(),n=t.length,r="",o=function(n){var o=function(e){return Ex.get(e)}(n);if(void 0===o)return"continue";var i=e.names.get(o),a=t.getGroup(n);if(void 0===i||!i.size||0===a.length)return"continue";var l="".concat(Ay,".g").concat(n,'[id="').concat(o,'"]'),s="";void 0!==i&&i.forEach(function(e){e.length>0&&(s+="".concat(e,","))}),r+="".concat(a).concat(l,'{content:"').concat(s,'"}').concat(By)},i=0;i<n;i++)o(i);return r}(r)})}return e.registerId=function(e){return kx(e)},e.prototype.rehydrate=function(){!this.server&&Hy&&Rx(this)},e.prototype.reconstructWithOptions=function(t,n){return void 0===n&&(n=!0),new e(Rb(Rb({},this.options),t),this.gs,n&&this.names||void 0)},e.prototype.allocateGSInstance=function(e){return this.gs[e]=(this.gs[e]||0)+1},e.prototype.getTag=function(){return this.tag||(this.tag=(e=function(e){var t=e.useCSSOMInjection,n=e.target;return e.isServer?new Bx(n):t?new Tx(n):new Fx(n)}(this.options),new Sx(e)));var e},e.prototype.hasNameForId=function(e,t){return this.names.has(e)&&this.names.get(e).has(t)},e.prototype.registerName=function(e,t){if(kx(e),this.names.has(e))this.names.get(e).add(t);else{var n=new Set;n.add(t),this.names.set(e,n)}},e.prototype.insertRules=function(e,t,n){this.registerName(e,t),this.getTag().insertRules(kx(e),n)},e.prototype.clearNames=function(e){this.names.has(e)&&this.names.get(e).clear()},e.prototype.clearRules=function(e){this.getTag().clearGroup(kx(e)),this.clearNames(e)},e.prototype.clearTag=function(){this.tag=void 0},e}(),Vx=/&/g,Wx=/^\s*\/\/.*$/gm;function qx(e,t){return e.map(function(e){return"rule"===e.type&&(e.value="".concat(t," ").concat(e.value),e.value=e.value.replaceAll(",",",".concat(t," ")),e.props=e.props.map(function(e){return"".concat(t," ").concat(e)})),Array.isArray(e.children)&&"@keyframes"!==e.type&&(e.children=qx(e.children,t)),e})}function Gx(e){var t,n,r,o=void 0===e?Dy:e,i=o.options,a=void 0===i?Dy:i,l=o.plugins,s=void 0===l?Ly:l,c=function(e,r,o){return o.startsWith(n)&&o.endsWith(n)&&o.replaceAll(n,"").length>0?".".concat(t):e},u=s.slice();u.push(function(e){e.type===Lb&&e.value.includes("&")&&(e.props[0]=e.props[0].replace(Vx,n).replace(r,c))}),a.prefix&&u.push(ky),u.push(Ey);var d=function(e,o,i,l){void 0===o&&(o=""),void 0===i&&(i=""),void 0===l&&(l="&"),t=l,n=o,r=new RegExp("\\".concat(n,"\\b"),"g");var s=e.replace(Wx,""),c=Iy(i||o?"".concat(i," ").concat(o," { ").concat(s," }"):s);a.namespace&&(c=qx(c,a.namespace));var d,f,p,m=[];return $y(c,(d=u.concat((p=function(e){return m.push(e)},function(e){e.root||(e=e.return)&&p(e)})),f=ey(d),function(e,t,n,r){for(var o="",i=0;i<f;i++)o+=d[i](e,t,n,r)||"";return o})),m};return d.hash=s.length?s.reduce(function(e,t){return t.name||wx(15),Qy(e,t.name)},5381).toString():"",d}var Xx=new Dx,Kx=Gx(),Ux=t().createContext({shouldForwardProp:void 0,styleSheet:Xx,stylis:Kx}),Yx=(Ux.Consumer,t().createContext(void 0));function Qx(){return(0,e.useContext)(Ux)}function Zx(n){var r=(0,e.useState)(n.stylisPlugins),o=r[0],i=r[1],a=Qx().styleSheet,l=(0,e.useMemo)(function(){var e=a;return n.sheet?e=n.sheet:n.target&&(e=e.reconstructWithOptions({target:n.target},!1)),n.disableCSSOMInjection&&(e=e.reconstructWithOptions({useCSSOMInjection:!1})),e},[n.disableCSSOMInjection,n.sheet,n.target,a]),s=(0,e.useMemo)(function(){return Gx({options:{namespace:n.namespace,prefix:n.enableVendorPrefixes},plugins:o})},[n.enableVendorPrefixes,n.namespace,o]);(0,e.useEffect)(function(){Tb()(o,n.stylisPlugins)||i(n.stylisPlugins)},[n.stylisPlugins]);var c=(0,e.useMemo)(function(){return{shouldForwardProp:n.shouldForwardProp,styleSheet:l,stylis:s}},[n.shouldForwardProp,l,s]);return t().createElement(Ux.Provider,{value:c},t().createElement(Yx.Provider,{value:s},n.children))}var Jx=function(){function e(e,t){var n=this;this.inject=function(e,t){void 0===t&&(t=Kx);var r=n.name+t.hash;e.hasNameForId(n.id,r)||e.insertRules(n.id,r,t(n.rules,r,"@keyframes"))},this.name=e,this.id="sc-keyframes-".concat(e),this.rules=t,Cx(this,function(){throw wx(12,String(n.name))})}return e.prototype.getName=function(e){return void 0===e&&(e=Kx),this.name+e.hash},e}(),eC=function(e){return e>="A"&&e<="Z"};function tC(e){for(var t="",n=0;n<e.length;n++){var r=e[n];if(1===n&&"-"===r&&"-"===e[0])return e;eC(r)?t+="-"+r.toLowerCase():t+=r}return t.startsWith("ms-")?"-"+t:t}var nC=function(e){return null==e||!1===e||""===e},rC=function(e){var t,n,r=[];for(var o in e){var i=e[o];e.hasOwnProperty(o)&&!nC(i)&&(Array.isArray(i)&&i.isCss||gx(i)?r.push("".concat(tC(o),":"),i,";"):yx(i)?r.push.apply(r,Ab(Ab(["".concat(o," {")],rC(i),!1),["}"],!1)):r.push("".concat(tC(o),": ").concat((t=o,null==(n=i)||"boolean"==typeof n||""===n?"":"number"!=typeof n||0===n||t in Ry||t.startsWith("--")?String(n).trim():"".concat(n,"px")),";")))}return r};function oC(e,t,n,r){return nC(e)?[]:hx(e)?[".".concat(e.styledComponentId)]:gx(e)?!gx(o=e)||o.prototype&&o.prototype.isReactComponent||!t?[e]:oC(e(t),t,n,r):e instanceof Jx?n?(e.inject(n,r),[e.getName(r)]):[e]:yx(e)?rC(e):Array.isArray(e)?Array.prototype.concat.apply(Ly,e.map(function(e){return oC(e,t,n,r)})):[e.toString()];var o}function iC(e){for(var t=0;t<e.length;t+=1){var n=e[t];if(gx(n)&&!hx(n))return!1}return!0}var aC=Zy(Fy),lC=function(){function e(e,t,n){this.rules=e,this.staticRulesId="",this.isStatic=(void 0===n||n.isStatic)&&iC(e),this.componentId=t,this.baseHash=Qy(aC,t),this.baseStyle=n,Dx.registerId(t)}return e.prototype.generateAndInjectStyles=function(e,t,n){var r=this.baseStyle?this.baseStyle.generateAndInjectStyles(e,t,n):"";if(this.isStatic&&!n.hash)if(this.staticRulesId&&t.hasNameForId(this.componentId,this.staticRulesId))r=vx(r,this.staticRulesId);else{var o=bx(oC(this.rules,e,t,n)),i=Uy(Qy(this.baseHash,o)>>>0);if(!t.hasNameForId(this.componentId,i)){var a=n(o,".".concat(i),void 0,this.componentId);t.insertRules(this.componentId,i,a)}r=vx(r,i),this.staticRulesId=i}else{for(var l=Qy(this.baseHash,n.hash),s="",c=0;c<this.rules.length;c++){var u=this.rules[c];if("string"==typeof u)s+=u;else if(u){var d=bx(oC(u,e,t,n));l=Qy(l,d+c),s+=d}}if(s){var f=Uy(l>>>0);t.hasNameForId(this.componentId,f)||t.insertRules(this.componentId,f,n(s,".".concat(f),void 0,this.componentId)),r=vx(r,f)}}return r},e}(),sC=t().createContext(void 0);sC.Consumer;var cC={};function uC(n,r,o){var i=hx(n),a=n,l=!Jy(n),s=r.attrs,c=void 0===s?Ly:s,u=r.componentId,d=void 0===u?function(e,t){var n="string"!=typeof e?"sc":Gy(e);cC[n]=(cC[n]||0)+1;var r="".concat(n,"-").concat(function(e){return Uy(Zy(e)>>>0)}(Fy+n+cC[n]));return t?"".concat(t,"-").concat(r):r}(r.displayName,r.parentComponentId):u,f=r.displayName,p=void 0===f?function(e){return Jy(e)?"styled.".concat(e):"Styled(".concat(function(e){return e.displayName||e.name||"Component"}(e),")")}(n):f,m=r.displayName&&r.componentId?"".concat(Gy(r.displayName),"-").concat(r.componentId):r.componentId||d,g=i&&a.attrs?a.attrs.concat(c).filter(Boolean):c,h=r.shouldForwardProp;if(i&&a.shouldForwardProp){var v=a.shouldForwardProp;if(r.shouldForwardProp){var b=r.shouldForwardProp;h=function(e,t){return v(e,t)&&b(e,t)}}else h=v}var y=new lC(o,m,i?a.componentStyle:void 0);function x(n,r){return function(n,r,o){var i=n.attrs,a=n.componentStyle,l=n.defaultProps,s=n.foldedComponentIds,c=n.styledComponentId,u=n.target,d=t().useContext(sC),f=Qx(),p=n.shouldForwardProp||f.shouldForwardProp,m=function(e,t,n){return void 0===n&&(n=Dy),e.theme!==n.theme&&e.theme||t||n.theme}(r,d,l)||Dy,g=function(e,t,n){for(var r,o=Rb(Rb({},t),{className:void 0,theme:n}),i=0;i<e.length;i+=1){var a=gx(r=e[i])?r(o):r;for(var l in a)"className"===l?o.className=vx(o.className,a[l]):"style"===l?o.style=Rb(Rb({},o.style),a[l]):o[l]=a[l]}return"className"in t&&"string"==typeof t.className&&(o.className=vx(o.className,t.className)),o}(i,r,m),h=g.as||u,v={};for(var b in g)void 0===g[b]||"$"===b[0]||"as"===b||"theme"===b&&g.theme===m||("forwardedAs"===b?v.as=g.forwardedAs:p&&!p(b,h)||(v[b]=g[b]));var y=function(e,t){var n=Qx();return e.generateAndInjectStyles(t,n.styleSheet,n.stylis)}(a,g),x=vx(s,c);return y&&(x+=" "+y),g.className&&(x+=" "+g.className),v[Jy(h)&&!Vy.has(h)?"class":"className"]=x,o&&(v.ref=o),(0,e.createElement)(h,v)}(C,n,r)}x.displayName=p;var C=t().forwardRef(x);return C.attrs=g,C.componentStyle=y,C.displayName=p,C.shouldForwardProp=h,C.foldedComponentIds=i?vx(a.foldedComponentIds,a.styledComponentId):"",C.styledComponentId=m,C.target=i?a.target:n,Object.defineProperty(C,"defaultProps",{get:function(){return this._foldedDefaultProps},set:function(e){this._foldedDefaultProps=i?function(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];for(var r=0,o=t;r<o.length;r++)xx(e,o[r],!0);return e}({},a.defaultProps,e):e}}),Cx(C,function(){return".".concat(C.styledComponentId)}),l&&mx(C,n,{attrs:!0,componentStyle:!0,displayName:!0,foldedComponentIds:!0,shouldForwardProp:!0,styledComponentId:!0,target:!0}),C}function dC(e,t){for(var n=[e[0]],r=0,o=t.length;r<o;r+=1)n.push(t[r],e[r+1]);return n}new Set;var fC=function(e){return Object.assign(e,{isCss:!0})};function pC(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];if(gx(e)||yx(e))return fC(oC(dC(Ly,Ab([e],t,!0))));var r=e;return 0===t.length&&1===r.length&&"string"==typeof r[0]?oC(r):fC(oC(dC(r,t)))}function mC(e,t,n){if(void 0===n&&(n=Dy),!t)throw wx(1,t);var r=function(r){for(var o=[],i=1;i<arguments.length;i++)o[i-1]=arguments[i];return e(t,n,pC.apply(void 0,Ab([r],o,!1)))};return r.attrs=function(r){return mC(e,t,Rb(Rb({},n),{attrs:Array.prototype.concat(n.attrs,r).filter(Boolean)}))},r.withConfig=function(r){return mC(e,t,Rb(Rb({},n),r))},r}var gC=function(e){return mC(uC,e)},hC=gC;Vy.forEach(function(e){hC[e]=gC(e)}),function(){function e(e,t){this.rules=e,this.componentId=t,this.isStatic=iC(e),Dx.registerId(this.componentId+1)}e.prototype.createStyles=function(e,t,n,r){var o=r(bx(oC(this.rules,t,n,r)),""),i=this.componentId+e;n.insertRules(i,i,o)},e.prototype.removeStyles=function(e,t){t.clearRules(this.componentId+e)},e.prototype.renderStyles=function(e,t,n,r){e>2&&Dx.registerId(this.componentId+e),this.removeStyles(e,n),this.createStyles(e,t,n,r)}}(),function(){function e(){var e=this;this._emitSheetCSS=function(){var t=e.instance.toString();if(!t)return"";var n=Ax(),r=bx([n&&'nonce="'.concat(n,'"'),"".concat(Ay,'="true"'),"".concat(Ty,'="').concat(Fy,'"')].filter(Boolean)," ");return"<style ".concat(r,">").concat(t,"</style>")},this.getStyleTags=function(){if(e.sealed)throw wx(2);return e._emitSheetCSS()},this.getStyleElement=function(){var n;if(e.sealed)throw wx(2);var r=e.instance.toString();if(!r)return[];var o=((n={})[Ay]="",n[Ty]=Fy,n.dangerouslySetInnerHTML={__html:r},n),i=Ax();return i&&(o.nonce=i),[t().createElement("style",Rb({},o,{key:"sc-0-0"}))]},this.seal=function(){e.sealed=!0},this.instance=new Dx({isServer:!0}),this.sealed=!1}e.prototype.collectStyles=function(e){if(this.sealed)throw wx(2);return t().createElement(Zx,{sheet:this.instance},e)},e.prototype.interleaveWithNodeStream=function(e){throw wx(3)}}(),"__sc-".concat(Ay,"__");const vC=t().createContext({}),bC={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"};var yC=function(t,n){return e.createElement(_u,T({},t,{ref:n,icon:bC}))};const xC=e.forwardRef(yC),CC={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"};var wC=function(t,n){return e.createElement(_u,T({},t,{ref:n,icon:CC}))};const SC=e.forwardRef(wC),$C={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"};var EC=function(t,n){return e.createElement(_u,T({},t,{ref:n,icon:$C}))};const OC=e.forwardRef(EC);var kC=e.forwardRef(function(t,n){var r=t.prefixCls,o=t.style,i=t.className,a=t.duration,l=void 0===a?4.5:a,s=t.showProgress,c=t.pauseOnHover,u=void 0===c||c,d=t.eventKey,f=t.content,p=t.closable,m=t.closeIcon,g=void 0===m?"x":m,h=t.props,v=t.onClick,b=t.onNoticeClose,y=t.times,x=t.hovering,C=X(e.useState(!1),2),w=C[0],S=C[1],$=X(e.useState(0),2),E=$[0],O=$[1],k=X(e.useState(0),2),I=k[0],j=k[1],P=x||w,M=l>0&&s,N=function(){b(d)};e.useEffect(function(){if(!P&&l>0){var e=Date.now()-I,t=setTimeout(function(){N()},1e3*l-I);return function(){u&&clearTimeout(t),j(Date.now()-e)}}},[l,P,y]),e.useEffect(function(){if(!P&&M&&(u||0===I)){var e,t=performance.now();return function n(){cancelAnimationFrame(e),e=requestAnimationFrame(function(e){var r=e+I-t,o=Math.min(r/(1e3*l),1);O(100*o),o<1&&n()})}(),function(){u&&cancelAnimationFrame(e)}}},[l,I,P,M,y]);var R=e.useMemo(function(){return"object"===F(p)&&null!==p?p:p?{closeIcon:g}:{}},[p,g]),z=Tf(R,!0),B=100-(!E||E<0?0:E>100?100:E),_="".concat(r,"-notice");return e.createElement("div",T({},h,{ref:n,className:A()(_,i,H({},"".concat(_,"-closable"),p)),style:o,onMouseEnter:function(e){var t;S(!0),null==h||null===(t=h.onMouseEnter)||void 0===t||t.call(h,e)},onMouseLeave:function(e){var t;S(!1),null==h||null===(t=h.onMouseLeave)||void 0===t||t.call(h,e)},onClick:v}),e.createElement("div",{className:"".concat(_,"-content")},f),p&&e.createElement("a",T({tabIndex:0,className:"".concat(_,"-close"),onKeyDown:function(e){"Enter"!==e.key&&"Enter"!==e.code&&e.keyCode!==kp.ENTER||N()},"aria-label":"Close"},z,{onClick:function(e){e.preventDefault(),e.stopPropagation(),N()}}),R.closeIcon),M&&e.createElement("progress",{className:"".concat(_,"-progress"),max:"100",value:B},B+"%"))});const IC=kC;var jC=t().createContext({});const PC=function(e){var n=e.children,r=e.classNames;return t().createElement(jC.Provider,{value:{classNames:r}},n)};var MC=["className","style","classNames","styles"];const NC=function(n){var r,o,i,a,l,s=n.configList,c=n.placement,u=n.prefixCls,d=n.className,f=n.style,p=n.motion,m=n.onAllNoticeRemoved,g=n.onNoticeClose,h=n.stack,v=(0,e.useContext)(jC).classNames,b=(0,e.useRef)({}),y=X((0,e.useState)(null),2),x=y[0],C=y[1],w=X((0,e.useState)([]),2),S=w[0],$=w[1],E=s.map(function(e){return{config:e,key:String(e.key)}}),O=X((l={offset:8,threshold:3,gap:16},(r=h)&&"object"===F(r)&&(l.offset=null!==(o=r.offset)&&void 0!==o?o:8,l.threshold=null!==(i=r.threshold)&&void 0!==i?i:3,l.gap=null!==(a=r.gap)&&void 0!==a?a:16),[!!r,l]),2),k=O[0],I=O[1],j=I.offset,P=I.threshold,M=I.gap,N=k&&(S.length>0||E.length<=P),R="function"==typeof p?p(c):p;return(0,e.useEffect)(function(){k&&S.length>1&&$(function(e){return e.filter(function(e){return E.some(function(t){var n=t.key;return e===n})})})},[S,E,k]),(0,e.useEffect)(function(){var e,t;k&&b.current[null===(e=E[E.length-1])||void 0===e?void 0:e.key]&&C(b.current[null===(t=E[E.length-1])||void 0===t?void 0:t.key])},[E,k]),t().createElement(Yn,T({key:c,className:A()(u,"".concat(u,"-").concat(c),null==v?void 0:v.list,d,H(H({},"".concat(u,"-stack"),!!k),"".concat(u,"-stack-expanded"),N)),style:f,keys:E,motionAppear:!0},R,{onAllRemoved:function(){m(c)}}),function(e,n){var r=e.config,o=e.className,i=e.style,a=e.index,l=r,s=l.key,d=l.times,f=String(s),p=r,m=p.className,h=p.style,y=p.classNames,C=p.styles,w=D(p,MC),O=E.findIndex(function(e){return e.key===f}),I={};if(k){var P=E.length-1-(O>-1?O:a-1),R="top"===c||"bottom"===c?"-50%":"0";if(P>0){var z,F,B;I.height=N?null===(z=b.current[f])||void 0===z?void 0:z.offsetHeight:null==x?void 0:x.offsetHeight;for(var H=0,_=0;_<P;_++){var V;H+=(null===(V=b.current[E[E.length-1-_].key])||void 0===V?void 0:V.offsetHeight)+M}var W=(N?H:P*j)*(c.startsWith("top")?1:-1),q=!N&&null!=x&&x.offsetWidth&&null!==(F=b.current[f])&&void 0!==F&&F.offsetWidth?((null==x?void 0:x.offsetWidth)-2*j*(P<3?P:3))/(null===(B=b.current[f])||void 0===B?void 0:B.offsetWidth):1;I.transform="translate3d(".concat(R,", ").concat(W,"px, 0) scaleX(").concat(q,")")}else I.transform="translate3d(".concat(R,", 0, 0)")}return t().createElement("div",{ref:n,className:A()("".concat(u,"-notice-wrapper"),o,null==y?void 0:y.wrapper),style:L(L(L({},i),I),null==C?void 0:C.wrapper),onMouseEnter:function(){return $(function(e){return e.includes(f)?e:[].concat(ye(e),[f])})},onMouseLeave:function(){return $(function(e){return e.filter(function(e){return e!==f})})}},t().createElement(IC,T({},w,{ref:function(e){O>-1?b.current[f]=e:delete b.current[f]},prefixCls:u,classNames:y,styles:C,className:A()(m,null==v?void 0:v.notice),style:h,times:d,key:s,eventKey:s,onNoticeClose:g,hovering:k&&S.length>0})))})};var RC=e.forwardRef(function(t,n){var r=t.prefixCls,o=void 0===r?"rc-notification":r,i=t.container,a=t.motion,l=t.maxCount,s=t.className,c=t.style,u=t.onAllRemoved,d=t.stack,f=t.renderNotifications,p=X(e.useState([]),2),m=p[0],g=p[1],h=function(e){var t,n=m.find(function(t){return t.key===e});null==n||null===(t=n.onClose)||void 0===t||t.call(n),g(function(t){return t.filter(function(t){return t.key!==e})})};e.useImperativeHandle(n,function(){return{open:function(e){g(function(t){var n,r=ye(t),o=r.findIndex(function(t){return t.key===e.key}),i=L({},e);return o>=0?(i.times=((null===(n=t[o])||void 0===n?void 0:n.times)||0)+1,r[o]=i):(i.times=0,r.push(i)),l>0&&r.length>l&&(r=r.slice(-l)),r})},close:function(e){h(e)},destroy:function(){g([])}}});var v=X(e.useState({}),2),b=v[0],y=v[1];e.useEffect(function(){var e={};m.forEach(function(t){var n=t.placement,r=void 0===n?"topRight":n;r&&(e[r]=e[r]||[],e[r].push(t))}),Object.keys(b).forEach(function(t){e[t]=e[t]||[]}),y(e)},[m]);var x=function(e){y(function(t){var n=L({},t);return(n[e]||[]).length||delete n[e],n})},C=e.useRef(!1);if(e.useEffect(function(){Object.keys(b).length>0?C.current=!0:C.current&&(null==u||u(),C.current=!1)},[b]),!i)return null;var w=Object.keys(b);return(0,K.createPortal)(e.createElement(e.Fragment,null,w.map(function(t){var n=b[t],r=e.createElement(NC,{key:t,configList:n,placement:t,prefixCls:o,className:null==s?void 0:s(t),style:null==c?void 0:c(t),motion:a,onNoticeClose:h,onAllNoticeRemoved:x,stack:d});return f?f(r,{prefixCls:o,key:t}):r})),i)});const AC=RC;var zC=["getContainer","motion","prefixCls","maxCount","className","style","onAllRemoved","stack","renderNotifications"],TC=function(){return document.body},FC=0;const BC=e=>{const{componentCls:t,notificationMarginEdge:n,animationMaxHeight:r}=e,o=`${t}-notice`,i=new tl("antNotificationFadeIn",{"0%":{transform:"translate3d(100%, 0, 0)",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",opacity:1}}),a=new tl("antNotificationTopFadeIn",{"0%":{top:-r,opacity:0},"100%":{top:0,opacity:1}}),l=new tl("antNotificationBottomFadeIn",{"0%":{bottom:e.calc(r).mul(-1).equal(),opacity:0},"100%":{bottom:0,opacity:1}}),s=new tl("antNotificationLeftFadeIn",{"0%":{transform:"translate3d(-100%, 0, 0)",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",opacity:1}});return{[t]:{[`&${t}-top, &${t}-bottom`]:{marginInline:0,[o]:{marginInline:"auto auto"}},[`&${t}-top`]:{[`${t}-fade-enter${t}-fade-enter-active, ${t}-fade-appear${t}-fade-appear-active`]:{animationName:a}},[`&${t}-bottom`]:{[`${t}-fade-enter${t}-fade-enter-active, ${t}-fade-appear${t}-fade-appear-active`]:{animationName:l}},[`&${t}-topRight, &${t}-bottomRight`]:{[`${t}-fade-enter${t}-fade-enter-active, ${t}-fade-appear${t}-fade-appear-active`]:{animationName:i}},[`&${t}-topLeft, &${t}-bottomLeft`]:{marginRight:{value:0,_skip_check_:!0},marginLeft:{value:n,_skip_check_:!0},[o]:{marginInlineEnd:"auto",marginInlineStart:0},[`${t}-fade-enter${t}-fade-enter-active, ${t}-fade-appear${t}-fade-appear-active`]:{animationName:s}}}}},HC=["top","topLeft","topRight","bottom","bottomLeft","bottomRight"],_C={topLeft:"left",topRight:"right",bottomLeft:"left",bottomRight:"right",top:"left",bottom:"left"},LC=e=>{const t={};for(let n=1;n<e.notificationStackLayer;n++)t[`&:nth-last-child(${n+1})`]={overflow:"hidden",[`& > ${e.componentCls}-notice`]:{opacity:0,transition:`opacity ${e.motionDurationMid}`}};return Object.assign({[`&:not(:nth-last-child(-n+${e.notificationStackLayer}))`]:{opacity:0,overflow:"hidden",color:"transparent",pointerEvents:"none"}},t)},DC=e=>{const t={};for(let n=1;n<e.notificationStackLayer;n++)t[`&:nth-last-child(${n+1})`]={background:e.colorBgBlur,backdropFilter:"blur(10px)","-webkit-backdrop-filter":"blur(10px)"};return Object.assign({},t)},VC=e=>{const{componentCls:t}=e;return Object.assign({[`${t}-stack`]:{[`& > ${t}-notice-wrapper`]:Object.assign({transition:`transform ${e.motionDurationSlow}, backdrop-filter 0s`,willChange:"transform, opacity",position:"absolute"},LC(e))},[`${t}-stack:not(${t}-stack-expanded)`]:{[`& > ${t}-notice-wrapper`]:Object.assign({},DC(e))},[`${t}-stack${t}-stack-expanded`]:{[`& > ${t}-notice-wrapper`]:{"&:not(:nth-last-child(-n + 1))":{opacity:1,overflow:"unset",color:"inherit",pointerEvents:"auto",[`& > ${e.componentCls}-notice`]:{opacity:1}},"&:after":{content:'""',position:"absolute",height:e.margin,width:"100%",insetInline:0,bottom:e.calc(e.margin).mul(-1).equal(),background:"transparent",pointerEvents:"auto"}}}},HC.map(t=>((e,t)=>{const{componentCls:n}=e;return{[`${n}-${t}`]:{[`&${n}-stack > ${n}-notice-wrapper`]:{[t.startsWith("top")?"top":"bottom"]:0,[_C[t]]:{value:0,_skip_check_:!0}}}}})(e,t)).reduce((e,t)=>Object.assign(Object.assign({},e),t),{}))},WC=e=>{const{iconCls:t,componentCls:n,boxShadow:r,fontSizeLG:o,notificationMarginBottom:i,borderRadiusLG:a,colorSuccess:l,colorInfo:s,colorWarning:c,colorError:u,colorTextHeading:d,notificationBg:f,notificationPadding:p,notificationMarginEdge:m,notificationProgressBg:g,notificationProgressHeight:h,fontSize:v,lineHeight:b,width:y,notificationIconSize:x,colorText:C,colorSuccessBg:w,colorErrorBg:S,colorInfoBg:$,colorWarningBg:E}=e,O=`${n}-notice`;return{position:"relative",marginBottom:i,marginInlineStart:"auto",background:f,borderRadius:a,boxShadow:r,[O]:{padding:p,width:y,maxWidth:`calc(100vw - ${Wi(e.calc(m).mul(2).equal())})`,lineHeight:b,wordWrap:"break-word",borderRadius:a,overflow:"hidden","&-success":w?{background:w}:{},"&-error":S?{background:S}:{},"&-info":$?{background:$}:{},"&-warning":E?{background:E}:{}},[`${O}-message`]:{color:d,fontSize:o,lineHeight:e.lineHeightLG},[`${O}-description`]:{fontSize:v,color:C,marginTop:e.marginXS},[`${O}-closable ${O}-message`]:{paddingInlineEnd:e.paddingLG},[`${O}-with-icon ${O}-message`]:{marginInlineStart:e.calc(e.marginSM).add(x).equal(),fontSize:o},[`${O}-with-icon ${O}-description`]:{marginInlineStart:e.calc(e.marginSM).add(x).equal(),fontSize:v},[`${O}-icon`]:{position:"absolute",fontSize:x,lineHeight:1,[`&-success${t}`]:{color:l},[`&-info${t}`]:{color:s},[`&-warning${t}`]:{color:c},[`&-error${t}`]:{color:u}},[`${O}-close`]:Object.assign({position:"absolute",top:e.notificationPaddingVertical,insetInlineEnd:e.notificationPaddingHorizontal,color:e.colorIcon,outline:"none",width:e.notificationCloseButtonSize,height:e.notificationCloseButtonSize,borderRadius:e.borderRadiusSM,transition:`background-color ${e.motionDurationMid}, color ${e.motionDurationMid}`,display:"flex",alignItems:"center",justifyContent:"center",background:"none",border:"none","&:hover":{color:e.colorIconHover,backgroundColor:e.colorBgTextHover},"&:active":{backgroundColor:e.colorBgTextActive}},Sl(e)),[`${O}-progress`]:{position:"absolute",display:"block",appearance:"none",inlineSize:`calc(100% - ${Wi(a)} * 2)`,left:{_skip_check_:!0,value:a},right:{_skip_check_:!0,value:a},bottom:0,blockSize:h,border:0,"&, &::-webkit-progress-bar":{borderRadius:a,backgroundColor:"rgba(0, 0, 0, 0.04)"},"&::-moz-progress-bar":{background:g},"&::-webkit-progress-value":{borderRadius:a,background:g}},[`${O}-actions`]:{float:"right",marginTop:e.marginSM}}},qC=e=>{const{componentCls:t,notificationMarginBottom:n,notificationMarginEdge:r,motionDurationMid:o,motionEaseInOut:i}=e,a=`${t}-notice`,l=new tl("antNotificationFadeOut",{"0%":{maxHeight:e.animationMaxHeight,marginBottom:n},"100%":{maxHeight:0,marginBottom:0,paddingTop:0,paddingBottom:0,opacity:0}});return[{[t]:Object.assign(Object.assign({},Cl(e)),{position:"fixed",zIndex:e.zIndexPopup,marginRight:{value:r,_skip_check_:!0},[`${t}-hook-holder`]:{position:"relative"},[`${t}-fade-appear-prepare`]:{opacity:"0 !important"},[`${t}-fade-enter, ${t}-fade-appear`]:{animationDuration:e.motionDurationMid,animationTimingFunction:i,animationFillMode:"both",opacity:0,animationPlayState:"paused"},[`${t}-fade-leave`]:{animationTimingFunction:i,animationFillMode:"both",animationDuration:o,animationPlayState:"paused"},[`${t}-fade-enter${t}-fade-enter-active, ${t}-fade-appear${t}-fade-appear-active`]:{animationPlayState:"running"},[`${t}-fade-leave${t}-fade-leave-active`]:{animationName:l,animationPlayState:"running"},"&-rtl":{direction:"rtl",[`${a}-actions`]:{float:"left"}}})},{[t]:{[`${a}-wrapper`]:WC(e)}}]},GC=e=>({zIndexPopup:e.zIndexPopupBase+1e3+50,width:384,colorSuccessBg:void 0,colorErrorBg:void 0,colorInfoBg:void 0,colorWarningBg:void 0}),XC=e=>{const t=e.paddingMD,n=e.paddingLG;return pl(e,{notificationBg:e.colorBgElevated,notificationPaddingVertical:t,notificationPaddingHorizontal:n,notificationIconSize:e.calc(e.fontSizeLG).mul(e.lineHeightLG).equal(),notificationCloseButtonSize:e.calc(e.controlHeightLG).mul(.55).equal(),notificationMarginBottom:e.margin,notificationPadding:`${Wi(e.paddingMD)} ${Wi(e.paddingContentHorizontalLG)}`,notificationMarginEdge:e.marginLG,animationMaxHeight:150,notificationStackLayer:3,notificationProgressHeight:2,notificationProgressBg:`linear-gradient(90deg, ${e.colorPrimaryBorderHover}, ${e.colorPrimary})`})},KC=js("Notification",e=>{const t=XC(e);return[qC(t),BC(t),VC(t)]},GC),UC=Ms(["Notification","PurePanel"],e=>{const t=`${e.componentCls}-notice`,n=XC(e);return{[`${t}-pure-panel`]:Object.assign(Object.assign({},WC(n)),{width:n.width,maxWidth:`calc(100vw - ${Wi(e.calc(n.notificationMarginEdge).mul(2).equal())})`,margin:0})}},GC);function YC(t,n){return null===n||!1===n?null:n||e.createElement(_h,{className:`${t}-close-icon`})}const QC={success:xC,info:OC,error:Ef,warning:SC},ZC=t=>{const{prefixCls:n,icon:r,type:o,message:i,description:a,actions:l,role:s="alert"}=t;let c=null;return r?c=e.createElement("span",{className:`${n}-icon`},r):o&&(c=e.createElement(QC[o]||null,{className:A()(`${n}-icon`,`${n}-icon-${o}`)})),e.createElement("div",{className:A()({[`${n}-with-icon`]:c}),role:s},c,e.createElement("div",{className:`${n}-message`},i),a&&e.createElement("div",{className:`${n}-description`},a),l&&e.createElement("div",{className:`${n}-actions`},l))};const JC=({children:e,prefixCls:n})=>{const r=jf(n),[o,i,a]=KC(n,r);return o(t().createElement(PC,{classNames:{list:A()(i,a,r)}},e))},ew=(e,{prefixCls:n,key:r})=>t().createElement(JC,{prefixCls:n,key:r},e),tw=t().forwardRef((n,r)=>{const{top:o,bottom:i,prefixCls:a,getContainer:l,maxCount:s,rtl:c,onAllRemoved:u,stack:d,duration:f,pauseOnHover:p=!0,showProgress:m}=n,{getPrefixCls:g,getPopupContainer:h,notification:v,direction:b}=(0,e.useContext)(hi),[,y]=Is(),x=a||g("notification"),[C,w]=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=t.getContainer,r=void 0===n?TC:n,o=t.motion,i=t.prefixCls,a=t.maxCount,l=t.className,s=t.style,c=t.onAllRemoved,u=t.stack,d=t.renderNotifications,f=D(t,zC),p=X(e.useState(),2),m=p[0],g=p[1],h=e.useRef(),v=e.createElement(AC,{container:m,ref:h,prefixCls:i,motion:o,maxCount:a,className:l,style:s,onAllRemoved:c,stack:u,renderNotifications:d}),b=X(e.useState([]),2),y=b[0],x=b[1],C=At(function(e){var t=function(){for(var e={},t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return n.forEach(function(t){t&&Object.keys(t).forEach(function(n){var r=t[n];void 0!==r&&(e[n]=r)})}),e}(f,e);null!==t.key&&void 0!==t.key||(t.key="rc-notification-".concat(FC),FC+=1),x(function(e){return[].concat(ye(e),[{type:"open",config:t}])})}),w=e.useMemo(function(){return{open:C,close:function(e){x(function(t){return[].concat(ye(t),[{type:"close",key:e}])})},destroy:function(){x(function(e){return[].concat(ye(e),[{type:"destroy"}])})}}},[]);return e.useEffect(function(){g(r())}),e.useEffect(function(){var e,t;h.current&&y.length&&(y.forEach(function(e){switch(e.type){case"open":h.current.open(e.config);break;case"close":h.current.close(e.key);break;case"destroy":h.current.destroy()}}),x(function(n){return e===n&&t||(e=n,t=n.filter(function(e){return!y.includes(e)})),t}))},[y]),[w,v]}({prefixCls:x,style:e=>function(e,t,n){let r;switch(e){case"top":r={left:"50%",transform:"translateX(-50%)",right:"auto",top:t,bottom:"auto"};break;case"topLeft":r={left:0,top:t,bottom:"auto"};break;case"topRight":r={right:0,top:t,bottom:"auto"};break;case"bottom":r={left:"50%",transform:"translateX(-50%)",right:"auto",top:"auto",bottom:n};break;case"bottomLeft":r={left:0,top:"auto",bottom:n};break;default:r={right:0,top:"auto",bottom:n}}return r}(e,null!=o?o:24,null!=i?i:24),className:()=>A()({[`${x}-rtl`]:null!=c?c:"rtl"===b}),motion:()=>function(e){return{motionName:`${e}-fade`}}(x),closable:!0,closeIcon:YC(x),duration:null!=f?f:4.5,getContainer:()=>(null==l?void 0:l())||(null==h?void 0:h())||document.body,maxCount:s,pauseOnHover:p,showProgress:m,onAllRemoved:u,renderNotifications:ew,stack:!1!==d&&{threshold:"object"==typeof d?null==d?void 0:d.threshold:void 0,offset:8,gap:y.margin}});return t().useImperativeHandle(r,()=>Object.assign(Object.assign({},C),{prefixCls:x,notification:v})),w});function nw(e){const n=t().useRef(null),r=(dc(),t().useMemo(()=>{const r=r=>{var o;if(!n.current)return;const{open:i,prefixCls:a,notification:l}=n.current,s=`${a}-notice`,{message:c,description:u,icon:d,type:f,btn:p,actions:m,className:g,style:h,role:v="alert",closeIcon:b,closable:y}=r,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(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n}(r,["message","description","icon","type","btn","actions","className","style","role","closeIcon","closable"]),C=null!=m?m:p,w=YC(s,function(e,t,n){return void 0!==e?e:void 0!==(null==t?void 0:t.closeIcon)?t.closeIcon:null==n?void 0:n.closeIcon}(b,e,l));return i(Object.assign(Object.assign({placement:null!==(o=null==e?void 0:e.placement)&&void 0!==o?o:"topRight"},x),{content:t().createElement(ZC,{prefixCls:s,icon:d,type:f,message:c,description:u,actions:C,role:v}),className:A()(f&&`${s}-${f}`,g,null==l?void 0:l.className),style:Object.assign(Object.assign({},null==l?void 0:l.style),h),closeIcon:w,closable:null!=y?y:!!w}))},o={open:r,destroy:e=>{var t,r;void 0!==e?null===(t=n.current)||void 0===t||t.close(e):null===(r=n.current)||void 0===r||r.destroy()}};return["success","info","warning","error"].forEach(e=>{o[e]=t=>r(Object.assign(Object.assign({},t),{type:e}))}),o},[]));return[r,t().createElement(tw,Object.assign({key:"notification-holder"},e,{ref:n}))]}let rw=null,ow=e=>e(),iw=[],aw={};function lw(){const{getContainer:e,rtl:t,maxCount:n,top:r,bottom:o,showProgress:i,pauseOnHover:a}=aw,l=(null==e?void 0:e())||document.body;return{getContainer:()=>l,rtl:t,maxCount:n,top:r,bottom:o,showProgress:i,pauseOnHover:a}}const sw=t().forwardRef((n,r)=>{const{notificationConfig:o,sync:i}=n,{getPrefixCls:a}=(0,e.useContext)(hi),l=aw.prefixCls||a("notification"),s=(0,e.useContext)(vC),[c,u]=nw(Object.assign(Object.assign(Object.assign({},o),{prefixCls:l}),s.notification));return t().useEffect(i,[]),t().useImperativeHandle(r,()=>{const e=Object.assign({},c);return Object.keys(e).forEach(t=>{e[t]=(...e)=>(i(),c[t].apply(c,e))}),{instance:e,sync:i}}),u}),cw=t().forwardRef((e,n)=>{const[r,o]=t().useState(lw),i=()=>{o(lw)};t().useEffect(i,[]);const a=Ng(),l=a.getRootPrefixCls(),s=a.getIconPrefixCls(),c=a.getTheme(),u=t().createElement(sw,{ref:n,sync:i,notificationConfig:r});return t().createElement(zg,{prefixCls:l,iconPrefixCls:s,theme:c},a.holderRender?a.holderRender(u):u)}),uw=()=>{if(!rw){const e=document.createDocumentFragment(),n={fragment:e};return rw=n,void ow(()=>{uu()(t().createElement(cw,{ref:e=>{const{instance:t,sync:r}=e||{};Promise.resolve().then(()=>{!n.instance&&t&&(n.instance=t,n.sync=r,uw())})}}),e)})}rw.instance&&(iw.forEach(e=>{switch(e.type){case"open":ow(()=>{rw.instance.open(Object.assign(Object.assign({},aw),e.config))});break;case"destroy":ow(()=>{var t;null===(t=null==rw?void 0:rw.instance)||void 0===t||t.destroy(e.key)})}}),iw=[])};function dw(e){Ng(),iw.push({type:"open",config:e}),uw()}const fw={open:dw,destroy:e=>{iw.push({type:"destroy",key:e}),uw()},config:function(e){aw=Object.assign(Object.assign({},aw),e),ow(()=>{var e;null===(e=null==rw?void 0:rw.sync)||void 0===e||e.call(rw)})},useNotification:function(e){return nw(e)},_InternalPanelDoNotUseOrYouWillBeFired:t=>{const{prefixCls:n,className:r,icon:o,type:i,message:a,description:l,btn:s,actions:c,closable:u=!0,closeIcon:d,className:f}=t,p=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(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n}(t,["prefixCls","className","icon","type","message","description","btn","actions","closable","closeIcon","className"]),{getPrefixCls:m}=e.useContext(hi),g=null!=c?c:s,h=n||m("notification"),v=`${h}-notice`,b=jf(h),[y,x,C]=KC(h,b);return y(e.createElement("div",{className:A()(`${v}-pure-panel`,x,r,C,b)},e.createElement(UC,{prefixCls:h}),e.createElement(IC,Object.assign({},p,{prefixCls:h,eventKey:"pure",duration:null,closable:u,className:A()({notificationClassName:f}),closeIcon:YC(h,d),content:e.createElement(ZC,{prefixCls:v,icon:o,type:i,message:a,description:l,actions:g})}))))}};["success","info","warning","error"].forEach(e=>{fw[e]=t=>dw(Object.assign(Object.assign({},t),{type:e}))});const pw=fw;var mw=e.createContext(null);function gw(e,t){return void 0===e?null:"".concat(e,"-").concat(t)}function hw(t){return gw(e.useContext(mw),t)}var vw=["children","locked"],bw=e.createContext(null);function yw(t){var n=t.children,r=t.locked,o=D(t,vw),i=e.useContext(bw),a=ie(function(){return e=o,t=L({},i),Object.keys(e).forEach(function(n){var r=e[n];void 0!==r&&(t[n]=r)}),t;var e,t},[i,o],function(e,t){return!(r||e[0]===t[0]&&Lr(e[1],t[1],!0))});return e.createElement(bw.Provider,{value:a},n)}var xw=[],Cw=e.createContext(null);function ww(){return e.useContext(Cw)}var Sw=e.createContext(xw);function $w(t){var n=e.useContext(Sw);return e.useMemo(function(){return void 0!==t?[].concat(ye(n),[t]):n},[n,t])}var Ew=e.createContext(null);const Ow=e.createContext({});function kw(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if(sr(e)){var n=e.nodeName.toLowerCase(),r=["input","select","textarea","button"].includes(n)||e.isContentEditable||"a"===n&&!!e.getAttribute("href"),o=e.getAttribute("tabindex"),i=Number(o),a=null;return o&&!Number.isNaN(i)?a=i:r&&null===a&&(a=0),r&&e.disabled&&(a=null),null!==a&&(a>=0||t&&a<0)}return!1}var Iw=kp.LEFT,jw=kp.RIGHT,Pw=kp.UP,Mw=kp.DOWN,Nw=kp.ENTER,Rw=kp.ESC,Aw=kp.HOME,zw=kp.END,Tw=[Pw,Mw,Iw,jw];function Fw(e,t){return function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=ye(e.querySelectorAll("*")).filter(function(e){return kw(e,t)});return kw(e,t)&&n.unshift(e),n}(e,!0).filter(function(e){return t.has(e)})}function Bw(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:1;if(!e)return null;var o=Fw(e,t),i=o.length,a=o.findIndex(function(e){return n===e});return r<0?-1===a?a=i-1:a-=1:r>0&&(a+=1),o[a=(a+i)%i]}var Hw=function(e,t){var n=new Set,r=new Map,o=new Map;return e.forEach(function(e){var i=document.querySelector("[data-menu-id='".concat(gw(t,e),"']"));i&&(n.add(i),o.set(i,e),r.set(e,i))}),{elements:n,key2element:r,element2key:o}};var _w="__RC_UTIL_PATH_SPLIT__",Lw=function(e){return e.join(_w)},Dw="rc-menu-more";function Vw(t){var n=e.useRef(t);n.current=t;var r=e.useCallback(function(){for(var e,t=arguments.length,r=new Array(t),o=0;o<t;o++)r[o]=arguments[o];return null===(e=n.current)||void 0===e?void 0:e.call.apply(e,[n].concat(r))},[]);return t?r:void 0}var Ww=Math.random().toFixed(5).toString().slice(2),qw=0;function Gw(t,n,r,o){var i=e.useContext(bw),a=i.activeKey,l=i.onActive,s=i.onInactive,c={active:a===t};return n||(c.onMouseEnter=function(e){null==r||r({key:t,domEvent:e}),l(t)},c.onMouseLeave=function(e){null==o||o({key:t,domEvent:e}),s(t)}),c}function Xw(t){var n=e.useContext(bw),r=n.mode,o=n.rtl,i=n.inlineIndent;return"inline"!==r?null:o?{paddingRight:t*i}:{paddingLeft:t*i}}function Kw(t){var n,r=t.icon,o=t.props,i=t.children;return null===r||!1===r?null:("function"==typeof r?n=e.createElement(r,L({},o)):"boolean"!=typeof r&&(n=r),n||i||null)}var Uw=["item"];function Yw(e){var t=e.item,n=D(e,Uw);return Object.defineProperty(n,"item",{get:function(){return re(!1,"`info.item` is deprecated since we will move to function component that not provides React Node instance in future."),t}}),n}var Qw=["title","attribute","elementRef"],Zw=["style","className","eventKey","warnKey","disabled","itemIcon","children","role","onMouseEnter","onMouseLeave","onClick","onKeyDown","onFocus"],Jw=["active"],eS=function(t){xt(r,t);var n=Et(r);function r(){return ht(this,r),n.apply(this,arguments)}return bt(r,[{key:"render",value:function(){var t=this.props,n=t.title,r=t.attribute,o=t.elementRef,i=ii(D(t,Qw),["eventKey","popupClassName","popupOffset","onTitleClick"]);return re(!r,"`attribute` of Menu.Item is deprecated. Please pass attribute directly."),e.createElement(Xp.Item,T({},r,{title:"string"==typeof n?n:void 0},i,{ref:o}))}}]),r}(e.Component),tS=e.forwardRef(function(t,n){var r=t.style,o=t.className,i=t.eventKey,a=(t.warnKey,t.disabled),l=t.itemIcon,s=t.children,c=t.role,u=t.onMouseEnter,d=t.onMouseLeave,f=t.onClick,p=t.onKeyDown,m=t.onFocus,g=D(t,Zw),h=hw(i),v=e.useContext(bw),b=v.prefixCls,y=v.onItemClick,x=v.disabled,C=v.overflowDisabled,w=v.itemIcon,S=v.selectedKeys,$=v.onActive,E=e.useContext(Ow)._internalRenderMenuItem,O="".concat(b,"-item"),k=e.useRef(),I=e.useRef(),j=x||a,P=pe(n,I),M=$w(i),N=function(e){return{key:i,keyPath:ye(M).reverse(),item:k.current,domEvent:e}},R=l||w,z=Gw(i,j,u,d),F=z.active,B=D(z,Jw),_=S.includes(i),V=Xw(M.length),W={};"option"===t.role&&(W["aria-selected"]=_);var q=e.createElement(eS,T({ref:k,elementRef:P,role:null===c?"none":c||"menuitem",tabIndex:a?null:-1,"data-menu-id":C&&h?null:h},ii(g,["extra"]),B,W,{component:"li","aria-disabled":a,style:L(L({},V),r),className:A()(O,H(H(H({},"".concat(O,"-active"),F),"".concat(O,"-selected"),_),"".concat(O,"-disabled"),j),o),onClick:function(e){if(!j){var t=N(e);null==f||f(Yw(t)),y(t)}},onKeyDown:function(e){if(null==p||p(e),e.which===kp.ENTER){var t=N(e);null==f||f(Yw(t)),y(t)}},onFocus:function(e){$(i),null==m||m(e)}}),s,e.createElement(Kw,{props:L(L({},t),{},{isSelected:_}),icon:R}));return E&&(q=E(q,t,{selected:_})),q});function nS(t,n){var r=t.eventKey,o=ww(),i=$w(r);return e.useEffect(function(){if(o)return o.registerPath(r,i),function(){o.unregisterPath(r,i)}},[i]),o?null:e.createElement(tS,T({},t,{ref:n}))}const rS=e.forwardRef(nS);var oS=["className","children"],iS=function(t,n){var r=t.className,o=t.children,i=D(t,oS),a=e.useContext(bw),l=a.prefixCls,s=a.mode,c=a.rtl;return e.createElement("ul",T({className:A()(l,c&&"".concat(l,"-rtl"),"".concat(l,"-sub"),"".concat(l,"-").concat("inline"===s?"inline":"vertical"),r),role:"menu"},i,{"data-menu-list":!0,ref:n}),o)},aS=e.forwardRef(iS);aS.displayName="SubMenuList";const lS=aS;function sS(t,n){return De(t).map(function(t,r){if(e.isValidElement(t)){var o,i,a=t.key,l=null!==(o=null===(i=t.props)||void 0===i?void 0:i.eventKey)&&void 0!==o?o:a;null==l&&(l="tmp_key-".concat([].concat(ye(n),[r]).join("-")));var s={key:l,eventKey:l};return e.cloneElement(t,s)}return t})}var cS={adjustX:1,adjustY:1},uS={topLeft:{points:["bl","tl"],overflow:cS},topRight:{points:["br","tr"],overflow:cS},bottomLeft:{points:["tl","bl"],overflow:cS},bottomRight:{points:["tr","br"],overflow:cS},leftTop:{points:["tr","tl"],overflow:cS},leftBottom:{points:["br","bl"],overflow:cS},rightTop:{points:["tl","tr"],overflow:cS},rightBottom:{points:["bl","br"],overflow:cS}},dS={topLeft:{points:["bl","tl"],overflow:cS},topRight:{points:["br","tr"],overflow:cS},bottomLeft:{points:["tl","bl"],overflow:cS},bottomRight:{points:["tr","br"],overflow:cS},rightTop:{points:["tr","tl"],overflow:cS},rightBottom:{points:["br","bl"],overflow:cS},leftTop:{points:["tl","tr"],overflow:cS},leftBottom:{points:["bl","br"],overflow:cS}};function fS(e,t,n){return t||(n?n[e]||n.other:void 0)}var pS={horizontal:"bottomLeft",vertical:"rightTop","vertical-left":"rightTop","vertical-right":"leftTop"};function mS(t){var n=t.prefixCls,r=t.visible,o=t.children,i=t.popup,a=t.popupStyle,l=t.popupClassName,s=t.popupOffset,c=t.disabled,u=t.mode,d=t.onVisibleChange,f=e.useContext(bw),p=f.getPopupContainer,m=f.rtl,g=f.subMenuOpenDelay,h=f.subMenuCloseDelay,v=f.builtinPlacements,b=f.triggerSubMenuAction,y=f.forceSubMenuRender,x=f.rootClassName,C=f.motion,w=f.defaultMotions,S=X(e.useState(!1),2),$=S[0],E=S[1],O=L(L({},m?dS:uS),v),k=pS[u],I=fS(u,C,w),j=e.useRef(I);"inline"!==u&&(j.current=I);var P=L(L({},j.current),{},{leavedClassName:"".concat(n,"-hidden"),removeOnLeave:!1,motionAppear:!0}),M=e.useRef();return e.useEffect(function(){return M.current=Rn(function(){E(r)}),function(){Rn.cancel(M.current)}},[r]),e.createElement(wr,{prefixCls:n,popupClassName:A()("".concat(n,"-popup"),H({},"".concat(n,"-rtl"),m),l,x),stretch:"horizontal"===u?"minWidth":null,getPopupContainer:p,builtinPlacements:O,popupPlacement:k,popupVisible:$,popup:i,popupStyle:a,popupAlign:s&&{offset:s},action:c?[]:[b],mouseEnterDelay:g,mouseLeaveDelay:h,onPopupVisibleChange:d,forceRender:y,popupMotion:P,fresh:!0},o)}function gS(t){var n=t.id,r=t.open,o=t.keyPath,i=t.children,a="inline",l=e.useContext(bw),s=l.prefixCls,c=l.forceSubMenuRender,u=l.motion,d=l.defaultMotions,f=l.mode,p=e.useRef(!1);p.current=f===a;var m=X(e.useState(!p.current),2),g=m[0],h=m[1],v=!!p.current&&r;e.useEffect(function(){p.current&&h(!1)},[f]);var b=L({},fS(a,u,d));o.length>1&&(b.motionAppear=!1);var y=b.onVisibleChanged;return b.onVisibleChanged=function(e){return p.current||e||h(!0),null==y?void 0:y(e)},g?null:e.createElement(yw,{mode:a,locked:!p.current},e.createElement(Qn,T({visible:v},b,{forceRender:c,removeOnLeave:!1,leavedClassName:"".concat(s,"-hidden")}),function(t){var r=t.className,o=t.style;return e.createElement(lS,{id:n,className:r,style:o},i)}))}var hS=["style","className","title","eventKey","warnKey","disabled","internalPopupClose","children","itemIcon","expandIcon","popupClassName","popupOffset","popupStyle","onClick","onMouseEnter","onMouseLeave","onTitleClick","onTitleMouseEnter","onTitleMouseLeave"],vS=["active"],bS=e.forwardRef(function(t,n){var r=t.style,o=t.className,i=t.title,a=t.eventKey,l=(t.warnKey,t.disabled),s=t.internalPopupClose,c=t.children,u=t.itemIcon,d=t.expandIcon,f=t.popupClassName,p=t.popupOffset,m=t.popupStyle,g=t.onClick,h=t.onMouseEnter,v=t.onMouseLeave,b=t.onTitleClick,y=t.onTitleMouseEnter,x=t.onTitleMouseLeave,C=D(t,hS),w=hw(a),S=e.useContext(bw),$=S.prefixCls,E=S.mode,O=S.openKeys,k=S.disabled,I=S.overflowDisabled,j=S.activeKey,P=S.selectedKeys,M=S.itemIcon,N=S.expandIcon,R=S.onItemClick,z=S.onOpenChange,F=S.onActive,B=e.useContext(Ow)._internalRenderSubMenuItem,_=e.useContext(Ew).isSubPathKey,V=$w(),W="".concat($,"-submenu"),q=k||l,G=e.useRef(),K=e.useRef(),U=null!=u?u:M,Y=null!=d?d:N,Q=O.includes(a),Z=!I&&Q,J=_(P,a),ee=Gw(a,q,y,x),te=ee.active,ne=D(ee,vS),re=X(e.useState(!1),2),oe=re[0],ie=re[1],ae=function(e){q||ie(e)},le=e.useMemo(function(){return te||"inline"!==E&&(oe||_([j],a))},[E,te,j,oe,a,_]),se=Xw(V.length),ce=Vw(function(e){null==g||g(Yw(e)),R(e)}),ue=w&&"".concat(w,"-popup"),de=e.useMemo(function(){return e.createElement(Kw,{icon:"horizontal"!==E?Y:void 0,props:L(L({},t),{},{isOpen:Z,isSubMenu:!0})},e.createElement("i",{className:"".concat(W,"-arrow")}))},[E,Y,t,Z,W]),fe=e.createElement("div",T({role:"menuitem",style:se,className:"".concat(W,"-title"),tabIndex:q?null:-1,ref:G,title:"string"==typeof i?i:null,"data-menu-id":I&&w?null:w,"aria-expanded":Z,"aria-haspopup":!0,"aria-controls":ue,"aria-disabled":q,onClick:function(e){q||(null==b||b({key:a,domEvent:e}),"inline"===E&&z(a,!Q))},onFocus:function(){F(a)}},ne),i,de),pe=e.useRef(E);if("inline"!==E&&V.length>1?pe.current="vertical":pe.current=E,!I){var me=pe.current;fe=e.createElement(mS,{mode:me,prefixCls:W,visible:!s&&Z&&"inline"!==E,popupClassName:f,popupOffset:p,popupStyle:m,popup:e.createElement(yw,{mode:"horizontal"===me?"vertical":me},e.createElement(lS,{id:ue,ref:K},c)),disabled:q,onVisibleChange:function(e){"inline"!==E&&z(a,e)}},fe)}var ge=e.createElement(Xp.Item,T({ref:n,role:"none"},C,{component:"li",style:r,className:A()(W,"".concat(W,"-").concat(E),o,H(H(H(H({},"".concat(W,"-open"),Z),"".concat(W,"-active"),le),"".concat(W,"-selected"),J),"".concat(W,"-disabled"),q)),onMouseEnter:function(e){ae(!0),null==h||h({key:a,domEvent:e})},onMouseLeave:function(e){ae(!1),null==v||v({key:a,domEvent:e})}}),fe,!I&&e.createElement(gS,{id:ue,open:Z,keyPath:V},c));return B&&(ge=B(ge,t,{selected:J,active:le,open:Z,disabled:q})),e.createElement(yw,{onItemClick:ce,mode:"horizontal"===E?"vertical":E,itemIcon:U,expandIcon:Y},ge)});const yS=e.forwardRef(function(t,n){var r,o=t.eventKey,i=t.children,a=$w(o),l=sS(i,a),s=ww();return e.useEffect(function(){if(s)return s.registerPath(o,a),function(){s.unregisterPath(o,a)}},[a]),r=s?l:e.createElement(bS,T({ref:n},t),l),e.createElement(Sw.Provider,{value:a},r)});function xS(t){var n=t.className,r=t.style,o=e.useContext(bw).prefixCls;return ww()?null:e.createElement("li",{role:"separator",className:A()("".concat(o,"-item-divider"),n),style:r})}var CS=["className","title","eventKey","children"],wS=e.forwardRef(function(t,n){var r=t.className,o=t.title,i=(t.eventKey,t.children),a=D(t,CS),l=e.useContext(bw).prefixCls,s="".concat(l,"-item-group");return e.createElement("li",T({ref:n,role:"presentation"},a,{onClick:function(e){return e.stopPropagation()},className:A()(s,r)}),e.createElement("div",{role:"presentation",className:"".concat(s,"-title"),title:"string"==typeof o?o:void 0},o),e.createElement("ul",{role:"group",className:"".concat(s,"-list")},i))});const SS=e.forwardRef(function(t,n){var r=t.eventKey,o=sS(t.children,$w(r));return ww()?o:e.createElement(wS,T({ref:n},ii(t,["warnKey"])),o)});var $S=["label","children","key","type","extra"];function ES(t,n,r){var o=n.item,i=n.group,a=n.submenu,l=n.divider;return(t||[]).map(function(t,s){if(t&&"object"===F(t)){var c=t,u=c.label,d=c.children,f=c.key,p=c.type,m=c.extra,g=D(c,$S),h=null!=f?f:"tmp-".concat(s);return d||"group"===p?"group"===p?e.createElement(i,T({key:h},g,{title:u}),ES(d,n,r)):e.createElement(a,T({key:h},g,{title:u}),ES(d,n,r)):"divider"===p?e.createElement(l,T({key:h},g)):e.createElement(o,T({key:h},g,{extra:m}),u,(!!m||0===m)&&e.createElement("span",{className:"".concat(r,"-item-extra")},m))}return null}).filter(function(e){return e})}function OS(e,t,n,r,o){var i=e,a=L({divider:xS,item:rS,group:SS,submenu:yS},r);return t&&(i=ES(t,a,o)),sS(i,n)}var kS=["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"],IS=[],jS=e.forwardRef(function(t,n){var r,o=t,i=o.prefixCls,a=void 0===i?"rc-menu":i,l=o.rootClassName,s=o.style,c=o.className,u=o.tabIndex,d=void 0===u?0:u,f=o.items,p=o.children,m=o.direction,g=o.id,h=o.mode,v=void 0===h?"vertical":h,b=o.inlineCollapsed,y=o.disabled,x=o.disabledOverflow,C=o.subMenuOpenDelay,w=void 0===C?.1:C,S=o.subMenuCloseDelay,$=void 0===S?.1:S,E=o.forceSubMenuRender,O=o.defaultOpenKeys,k=o.openKeys,I=o.activeKey,j=o.defaultActiveFirst,P=o.selectable,M=void 0===P||P,N=o.multiple,R=void 0!==N&&N,z=o.defaultSelectedKeys,F=o.selectedKeys,B=o.onSelect,_=o.onDeselect,V=o.inlineIndent,W=void 0===V?24:V,q=o.motion,G=o.defaultMotions,U=o.triggerSubMenuAction,Y=void 0===U?"hover":U,Q=o.builtinPlacements,Z=o.itemIcon,J=o.expandIcon,ee=o.overflowedIndicator,te=void 0===ee?"...":ee,ne=o.overflowedIndicatorPopupClassName,re=o.getPopupContainer,oe=o.onClick,ie=o.onOpenChange,ae=o.onKeyDown,le=(o.openAnimation,o.openTransitionName,o._internalRenderMenuItem),se=o._internalRenderSubMenuItem,ce=o._internalComponents,ue=D(o,kS),de=X(e.useMemo(function(){return[OS(p,f,IS,ce,a),OS(p,f,IS,{},a)]},[p,f,ce]),2),fe=de[0],pe=de[1],me=X(e.useState(!1),2),ge=me[0],he=me[1],ve=e.useRef(),be=function(t){var n=X(Gt(t,{value:t}),2),r=n[0],o=n[1];return e.useEffect(function(){qw+=1;var e="".concat(Ww,"-").concat(qw);o("rc-menu-uuid-".concat(e))},[]),r}(g),xe="rtl"===m,Ce=Gt(O,{value:k,postState:function(e){return e||IS}}),we=X(Ce,2),Se=we[0],$e=we[1],Ee=function(e){function t(){$e(e),null==ie||ie(e)}arguments.length>1&&void 0!==arguments[1]&&arguments[1]?(0,K.flushSync)(t):t()},Oe=X(e.useState(Se),2),ke=Oe[0],Ie=Oe[1],je=e.useRef(!1),Pe=X(e.useMemo(function(){return"inline"!==v&&"vertical"!==v||!b?[v,!1]:["vertical",b]},[v,b]),2),Me=Pe[0],Ne=Pe[1],Re="inline"===Me,Ae=X(e.useState(Me),2),ze=Ae[0],Te=Ae[1],Fe=X(e.useState(Ne),2),Be=Fe[0],He=Fe[1];e.useEffect(function(){Te(Me),He(Ne),je.current&&(Re?$e(ke):Ee(IS))},[Me,Ne]);var _e=X(e.useState(0),2),Le=_e[0],De=_e[1],Ve=Le>=fe.length-1||"horizontal"!==ze||x;e.useEffect(function(){Re&&Ie(Se)},[Se]),e.useEffect(function(){return je.current=!0,function(){je.current=!1}},[]);var We=function(){var t=X(e.useState({}),2)[1],n=(0,e.useRef)(new Map),r=(0,e.useRef)(new Map),o=X(e.useState([]),2),i=o[0],a=o[1],l=(0,e.useRef)(0),s=(0,e.useRef)(!1),c=(0,e.useCallback)(function(e,o){var i=Lw(o);r.current.set(i,e),n.current.set(e,i),l.current+=1;var a,c=l.current;a=function(){c===l.current&&(s.current||t({}))},Promise.resolve().then(a)},[]),u=(0,e.useCallback)(function(e,t){var o=Lw(t);r.current.delete(o),n.current.delete(e)},[]),d=(0,e.useCallback)(function(e){a(e)},[]),f=(0,e.useCallback)(function(e,t){var r=(n.current.get(e)||"").split(_w);return t&&i.includes(r[0])&&r.unshift(Dw),r},[i]),p=(0,e.useCallback)(function(e,t){return e.filter(function(e){return void 0!==e}).some(function(e){return f(e,!0).includes(t)})},[f]),m=(0,e.useCallback)(function(e){var t="".concat(n.current.get(e)).concat(_w),o=new Set;return ye(r.current.keys()).forEach(function(e){e.startsWith(t)&&o.add(r.current.get(e))}),o},[]);return e.useEffect(function(){return function(){s.current=!0}},[]),{registerPath:c,unregisterPath:u,refreshOverflowKeys:d,isSubPathKey:p,getKeyPath:f,getKeys:function(){var e=ye(n.current.keys());return i.length&&e.push(Dw),e},getSubPathKeys:m}}(),qe=We.registerPath,Ge=We.unregisterPath,Xe=We.refreshOverflowKeys,Ke=We.isSubPathKey,Ue=We.getKeyPath,Ye=We.getKeys,Qe=We.getSubPathKeys,Ze=e.useMemo(function(){return{registerPath:qe,unregisterPath:Ge}},[qe,Ge]),Je=e.useMemo(function(){return{isSubPathKey:Ke}},[Ke]);e.useEffect(function(){Xe(Ve?IS:fe.slice(Le+1).map(function(e){return e.key}))},[Le,Ve]);var et=X(Gt(I||j&&(null===(r=fe[0])||void 0===r?void 0:r.key),{value:I}),2),tt=et[0],nt=et[1],rt=Vw(function(e){nt(e)}),ot=Vw(function(){nt(void 0)});(0,e.useImperativeHandle)(n,function(){return{list:ve.current,focus:function(e){var t,n,r=Ye(),o=Hw(r,be),i=o.elements,a=o.key2element,l=o.element2key,s=Fw(ve.current,i),c=null!=tt?tt:s[0]?l.get(s[0]):null===(t=fe.find(function(e){return!e.props.disabled}))||void 0===t?void 0:t.key,u=a.get(c);c&&u&&(null==u||null===(n=u.focus)||void 0===n||n.call(u,e))}}});var it=Gt(z||[],{value:F,postState:function(e){return Array.isArray(e)?e:null==e?IS:[e]}}),at=X(it,2),lt=at[0],st=at[1],ct=Vw(function(e){null==oe||oe(Yw(e)),function(e){if(M){var t,n=e.key,r=lt.includes(n);t=R?r?lt.filter(function(e){return e!==n}):[].concat(ye(lt),[n]):[n],st(t);var o=L(L({},e),{},{selectedKeys:t});r?null==_||_(o):null==B||B(o)}!R&&Se.length&&"inline"!==ze&&Ee(IS)}(e)}),ut=Vw(function(e,t){var n=Se.filter(function(t){return t!==e});if(t)n.push(e);else if("inline"!==ze){var r=Qe(e);n=n.filter(function(e){return!r.has(e)})}Lr(Se,n,!0)||Ee(n,!0)}),dt=function(t,n,r,o,i,a,l,s,c,u){var d=e.useRef(),f=e.useRef();f.current=n;var p=function(){Rn.cancel(d.current)};return e.useEffect(function(){return function(){p()}},[]),function(e){var m=e.which;if([].concat(Tw,[Nw,Rw,Aw,zw]).includes(m)){var g=a(),h=Hw(g,o),v=h,b=v.elements,y=v.key2element,x=v.element2key,C=function(e,t){for(var n=e||document.activeElement;n;){if(t.has(n))return n;n=n.parentElement}return null}(y.get(n),b),w=x.get(C),S=function(e,t,n,r){var o,i="prev",a="next",l="children",s="parent";if("inline"===e&&r===Nw)return{inlineTrigger:!0};var c=H(H({},Pw,i),Mw,a),u=H(H(H(H({},Iw,n?a:i),jw,n?i:a),Mw,l),Nw,l),d=H(H(H(H(H(H({},Pw,i),Mw,a),Nw,l),Rw,s),Iw,n?l:s),jw,n?s:l);switch(null===(o={inline:c,horizontal:u,vertical:d,inlineSub:c,horizontalSub:d,verticalSub:d}["".concat(e).concat(t?"":"Sub")])||void 0===o?void 0:o[r]){case i:return{offset:-1,sibling:!0};case a:return{offset:1,sibling:!0};case s:return{offset:-1,sibling:!1};case l:return{offset:1,sibling:!1};default:return null}}(t,1===l(w,!0).length,r,m);if(!S&&m!==Aw&&m!==zw)return;(Tw.includes(m)||[Aw,zw].includes(m))&&e.preventDefault();var $=function(e){if(e){var t=e,n=e.querySelector("a");null!=n&&n.getAttribute("href")&&(t=n);var r=x.get(e);s(r),p(),d.current=Rn(function(){f.current===r&&t.focus()})}};if([Aw,zw].includes(m)||S.sibling||!C){var E,O,k=Fw(E=C&&"inline"!==t?function(e){for(var t=e;t;){if(t.getAttribute("data-menu-list"))return t;t=t.parentElement}return null}(C):i.current,b);O=m===Aw?k[0]:m===zw?k[k.length-1]:Bw(E,b,C,S.offset),$(O)}else if(S.inlineTrigger)c(w);else if(S.offset>0)c(w,!0),p(),d.current=Rn(function(){h=Hw(g,o);var e=C.getAttribute("aria-controls"),t=Bw(document.getElementById(e),h.elements);$(t)},5);else if(S.offset<0){var I=l(w,!0),j=I[I.length-2],P=y.get(j);c(j,!1),$(P)}}null==u||u(e)}}(ze,tt,xe,be,ve,Ye,Ue,nt,function(e,t){var n=null!=t?t:!Se.includes(e);ut(e,n)},ae);e.useEffect(function(){he(!0)},[]);var ft=e.useMemo(function(){return{_internalRenderMenuItem:le,_internalRenderSubMenuItem:se}},[le,se]),pt="horizontal"!==ze||x?fe:fe.map(function(t,n){return e.createElement(yw,{key:t.key,overflowDisabled:n>Le},t)}),mt=e.createElement(Xp,T({id:g,ref:ve,prefixCls:"".concat(a,"-overflow"),component:"ul",itemComponent:rS,className:A()(a,"".concat(a,"-root"),"".concat(a,"-").concat(ze),c,H(H({},"".concat(a,"-inline-collapsed"),Be),"".concat(a,"-rtl"),xe),l),dir:m,style:s,role:"menu",tabIndex:d,data:pt,renderRawItem:function(e){return e},renderRawRest:function(t){var n=t.length,r=n?fe.slice(-n):null;return e.createElement(yS,{eventKey:Dw,title:te,disabled:Ve,internalPopupClose:0===n,popupClassName:ne},r)},maxCount:"horizontal"!==ze||x?Xp.INVALIDATE:Xp.RESPONSIVE,ssr:"full","data-menu-list":!0,onVisibleChange:function(e){De(e)},onKeyDown:dt},ue));return e.createElement(Ow.Provider,{value:ft},e.createElement(mw.Provider,{value:be},e.createElement(yw,{prefixCls:a,rootClassName:l,mode:ze,openKeys:Se,rtl:xe,disabled:y,motion:ge?q:null,defaultMotions:ge?G:null,activeKey:tt,onActive:rt,onInactive:ot,selectedKeys:lt,inlineIndent:W,subMenuOpenDelay:w,subMenuCloseDelay:$,forceSubMenuRender:E,builtinPlacements:Q,triggerSubMenuAction:Y,getPopupContainer:re,itemIcon:Z,expandIcon:J,onItemClick:ct,onOpenChange:ut},e.createElement(Ew.Provider,{value:Je},mt),e.createElement("div",{style:{display:"none"},"aria-hidden":!0},e.createElement(Cw.Provider,{value:Ze},pe)))))}),PS=jS;PS.Item=rS,PS.SubMenu=yS,PS.ItemGroup=SS,PS.Divider=xS;const MS=PS,NS=e.createContext({});var RS=function(t,n){return e.createElement(_u,T({},t,{ref:n,icon:wb}))};const AS=e.forwardRef(RS),zS=(0,e.createContext)({prefixCls:"",firstLevel:!0,inlineCollapsed:!1});const TS=t=>{const{prefixCls:n,className:r,dashed:o}=t,i=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(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n}(t,["prefixCls","className","dashed"]),{getPrefixCls:a}=e.useContext(hi),l=a("menu",n),s=A()({[`${l}-item-divider-dashed`]:!!o},r);return e.createElement(xS,Object.assign({className:s},i))},FS=t=>{var n;const{className:r,children:o,icon:i,title:a,danger:l,extra:s}=t,{prefixCls:c,firstLevel:u,direction:d,disableMenuItemTitleTooltip:f,inlineCollapsed:p}=e.useContext(zS),{siderCollapsed:m}=e.useContext(NS);let g=a;void 0===a?g=u?o:"":!1===a&&(g="");const h={title:g};m||p||(h.title=null,h.open=!1);const v=De(o).length;let b=e.createElement(rS,Object.assign({},ii(t,["title","icon","danger"]),{className:A()({[`${c}-item-danger`]:l,[`${c}-item-only-child`]:1===(i?v+1:v)},r),title:"string"==typeof a?a:void 0}),sc(i,{className:A()(e.isValidElement(i)?null===(n=i.props)||void 0===n?void 0:n.className:void 0,`${c}-item-icon`)}),(t=>{const n=null==o?void 0:o[0],r=e.createElement("span",{className:A()(`${c}-title-content`,{[`${c}-title-content-with-extra`]:!!s||0===s})},o);return(!i||e.isValidElement(o)&&"span"===o.type)&&o&&t&&u&&"string"==typeof n?e.createElement("div",{className:`${c}-inline-collapsed-noicon`},n.charAt(0)):r})(p));return f||(b=e.createElement(Uc,Object.assign({},h,{placement:"rtl"===d?"left":"right",classNames:{root:`${c}-inline-collapsed-tooltip`}}),b)),b};const BS=e.createContext(null),HS=e.forwardRef((t,n)=>{const{children:r}=t,o=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(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n}(t,["children"]),i=e.useContext(BS),a=e.useMemo(()=>Object.assign(Object.assign({},i),o),[i,o.prefixCls,o.mode,o.selectable,o.rootClassName]),l=function(e){return ge(e)&&me(e)}(r),s=pe(n,l?he(r):null);return e.createElement(BS.Provider,{value:a},e.createElement(Hs,{space:!0},l?e.cloneElement(r,{ref:s}):r))}),_S=BS,LS=e=>({[e.componentCls]:{[`${e.antCls}-motion-collapse-legacy`]:{overflow:"hidden","&-active":{transition:`height ${e.motionDurationMid} ${e.motionEaseInOut},\n opacity ${e.motionDurationMid} ${e.motionEaseInOut} !important`}},[`${e.antCls}-motion-collapse`]:{overflow:"hidden",transition:`height ${e.motionDurationMid} ${e.motionEaseInOut},\n opacity ${e.motionDurationMid} ${e.motionEaseInOut} !important`}}}),DS=e=>{const{componentCls:t,motionDurationSlow:n,horizontalLineHeight:r,colorSplit:o,lineWidth:i,lineType:a,itemPaddingInline:l}=e;return{[`${t}-horizontal`]:{lineHeight:r,border:0,borderBottom:`${Wi(i)} ${a} ${o}`,boxShadow:"none","&::after":{display:"block",clear:"both",height:0,content:'"\\20"'},[`${t}-item, ${t}-submenu`]:{position:"relative",display:"inline-block",verticalAlign:"bottom",paddingInline:l},[`> ${t}-item:hover,\n > ${t}-item-active,\n > ${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"}}}},VS=({componentCls:e,menuArrowOffset:t,calc:n})=>({[`${e}-rtl`]:{direction:"rtl"},[`${e}-submenu-rtl`]:{transformOrigin:"100% 0"},[`${e}-rtl${e}-vertical,\n ${e}-submenu-rtl ${e}-vertical`]:{[`${e}-submenu-arrow`]:{"&::before":{transform:`rotate(-45deg) translateY(${Wi(n(t).mul(-1).equal())})`},"&::after":{transform:`rotate(45deg) translateY(${Wi(t)})`}}}}),WS=e=>wl(e),qS=(e,t)=>{const{componentCls:n,itemColor:r,itemSelectedColor:o,subMenuItemSelectedColor:i,groupTitleColor:a,itemBg:l,subMenuItemBg:s,itemSelectedBg:c,activeBarHeight:u,activeBarWidth:d,activeBarBorderWidth:f,motionDurationSlow:p,motionEaseInOut:m,motionEaseOut:g,itemPaddingInline:h,motionDurationMid:v,itemHoverColor:b,lineType:y,colorSplit:x,itemDisabledColor:C,dangerItemColor:w,dangerItemHoverColor:S,dangerItemSelectedColor:$,dangerItemActiveBg:E,dangerItemSelectedBg:O,popupBg:k,itemHoverBg:I,itemActiveBg:j,menuSubMenuBg:P,horizontalItemSelectedColor:M,horizontalItemSelectedBg:N,horizontalItemBorderRadius:R,horizontalItemHoverBg:A}=e;return{[`${n}-${t}, ${n}-${t} > ${n}`]:{color:r,background:l,[`&${n}-root:focus-visible`]:Object.assign({},WS(e)),[`${n}-item`]:{"&-group-title, &-extra":{color:a}},[`${n}-submenu-selected > ${n}-submenu-title`]:{color:i},[`${n}-item, ${n}-submenu-title`]:{color:r,[`&:not(${n}-item-disabled):focus-visible`]:Object.assign({},WS(e))},[`${n}-item-disabled, ${n}-submenu-disabled`]:{color:`${C} !important`},[`${n}-item:not(${n}-item-selected):not(${n}-submenu-selected)`]:{[`&:hover, > ${n}-submenu-title:hover`]:{color:b}},[`&:not(${n}-horizontal)`]:{[`${n}-item:not(${n}-item-selected)`]:{"&:hover":{backgroundColor:I},"&:active":{backgroundColor:j}},[`${n}-submenu-title`]:{"&:hover":{backgroundColor:I},"&:active":{backgroundColor:j}}},[`${n}-item-danger`]:{color:w,[`&${n}-item:hover`]:{[`&:not(${n}-item-selected):not(${n}-submenu-selected)`]:{color:S}},[`&${n}-item:active`]:{background:E}},[`${n}-item a`]:{"&, &:hover":{color:"inherit"}},[`${n}-item-selected`]:{color:o,[`&${n}-item-danger`]:{color:$},"a, a:hover":{color:"inherit"}},[`& ${n}-item-selected`]:{backgroundColor:c,[`&${n}-item-danger`]:{backgroundColor:O}},[`&${n}-submenu > ${n}`]:{backgroundColor:P},[`&${n}-popup > ${n}`]:{backgroundColor:k},[`&${n}-submenu-popup > ${n}`]:{backgroundColor:k},[`&${n}-horizontal`]:Object.assign(Object.assign({},"dark"===t?{borderBottom:0}:{}),{[`> ${n}-item, > ${n}-submenu`]:{top:f,marginTop:e.calc(f).mul(-1).equal(),marginBottom:0,borderRadius:R,"&::after":{position:"absolute",insetInline:h,bottom:0,borderBottom:`${Wi(u)} solid transparent`,transition:`border-color ${p} ${m}`,content:'""'},"&:hover, &-active, &-open":{background:A,"&::after":{borderBottomWidth:u,borderBottomColor:M}},"&-selected":{color:M,backgroundColor:N,"&:hover":{backgroundColor:N},"&::after":{borderBottomWidth:u,borderBottomColor:M}}}}),[`&${n}-root`]:{[`&${n}-inline, &${n}-vertical`]:{borderInlineEnd:`${Wi(f)} ${y} ${x}`}},[`&${n}-inline`]:{[`${n}-sub${n}-inline`]:{background:s},[`${n}-item`]:{position:"relative","&::after":{position:"absolute",insetBlock:0,insetInlineEnd:0,borderInlineEnd:`${Wi(d)} solid ${o}`,transform:"scaleY(0.0001)",opacity:0,transition:[`transform ${v} ${g}`,`opacity ${v} ${g}`].join(","),content:'""'},[`&${n}-item-danger`]:{"&::after":{borderInlineEndColor:$}}},[`${n}-selected, ${n}-item-selected`]:{"&::after":{transform:"scaleY(1)",opacity:1,transition:[`transform ${v} ${m}`,`opacity ${v} ${m}`].join(",")}}}}}},GS=e=>{const{componentCls:t,itemHeight:n,itemMarginInline:r,padding:o,menuArrowSize:i,marginXS:a,itemMarginBlock:l,itemWidth:s,itemPaddingInline:c}=e,u=e.calc(i).add(o).add(a).equal();return{[`${t}-item`]:{position:"relative",overflow:"hidden"},[`${t}-item, ${t}-submenu-title`]:{height:n,lineHeight:Wi(n),paddingInline:c,overflow:"hidden",textOverflow:"ellipsis",marginInline:r,marginBlock:l,width:s},[`> ${t}-item,\n > ${t}-submenu > ${t}-submenu-title`]:{height:n,lineHeight:Wi(n)},[`${t}-item-group-list ${t}-submenu-title,\n ${t}-submenu-title`]:{paddingInlineEnd:u}}},XS=e=>{const{componentCls:t,iconCls:n,itemHeight:r,colorTextLightSolid:o,dropdownWidth:i,controlHeightLG:a,motionEaseOut:l,paddingXL:s,itemMarginInline:c,fontSizeLG:u,motionDurationFast:d,motionDurationSlow:f,paddingXS:p,boxShadowSecondary:m,collapsedWidth:g,collapsedIconSize:h}=e,v={height:r,lineHeight:Wi(r),listStylePosition:"inside",listStyleType:"disc"};return[{[t]:{"&-inline, &-vertical":Object.assign({[`&${t}-root`]:{boxShadow:"none"}},GS(e))},[`${t}-submenu-popup`]:{[`${t}-vertical`]:Object.assign(Object.assign({},GS(e)),{boxShadow:m})}},{[`${t}-submenu-popup ${t}-vertical${t}-sub`]:{minWidth:i,maxHeight:`calc(100vh - ${Wi(e.calc(a).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 ${f}`,`background ${f}`,`padding ${d} ${l}`].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`]:v,[`& ${t}-item-group-title`]:{paddingInlineStart:s}},[`${t}-item`]:v}},{[`${t}-inline-collapsed`]:{width:g,[`&${t}-root`]:{[`${t}-item, ${t}-submenu ${t}-submenu-title`]:{[`> ${t}-inline-collapsed-noicon`]:{fontSize:u,textAlign:"center"}}},[`> ${t}-item,\n > ${t}-item-group > ${t}-item-group-list > ${t}-item,\n > ${t}-item-group > ${t}-item-group-list > ${t}-submenu > ${t}-submenu-title,\n > ${t}-submenu > ${t}-submenu-title`]:{insetInlineStart:0,paddingInline:`calc(50% - ${Wi(e.calc(h).div(2).equal())} - ${Wi(c)})`,textOverflow:"clip",[`\n ${t}-submenu-arrow,\n ${t}-submenu-expand-icon\n `]:{opacity:0},[`${t}-item-icon, ${n}`]:{margin:0,fontSize:h,lineHeight:Wi(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:o}},[`${t}-item-group-title`]:Object.assign(Object.assign({},xl),{paddingInline:p})}}]},KS=e=>{const{componentCls:t,motionDurationSlow:n,motionDurationMid:r,motionEaseInOut:o,motionEaseOut:i,iconCls:a,iconSize:l,iconMarginInlineEnd:s}=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) ${o}`].join(","),[`${t}-item-icon, ${a}`]:{minWidth:l,fontSize:l,transition:[`font-size ${r} ${i}`,`margin ${n} ${o}`,`color ${n}`].join(","),"+ span":{marginInlineStart:s,opacity:1,transition:[`opacity ${n} ${o}`,`margin ${n}`,`color ${n}`].join(",")}},[`${t}-item-icon`]:Object.assign({},{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"}}),[`&${t}-item-only-child`]:{[`> ${a}, > ${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"}}}},US=e=>{const{componentCls:t,motionDurationSlow:n,motionEaseInOut:r,borderRadius:o,menuArrowSize:i,menuArrowOffset:a}=e;return{[`${t}-submenu`]:{"&-expand-icon, &-arrow":{position:"absolute",top:"50%",insetInlineEnd:e.margin,width:i,color:"currentcolor",transform:"translateY(-50%)",transition:`transform ${n} ${r}, opacity ${n}`},"&-arrow":{"&::before, &::after":{position:"absolute",width:e.calc(i).mul(.6).equal(),height:e.calc(i).mul(.15).equal(),backgroundColor:"currentcolor",borderRadius:o,transition:[`background ${n} ${r}`,`transform ${n} ${r}`,`top ${n} ${r}`,`color ${n} ${r}`].join(","),content:'""'},"&::before":{transform:`rotate(45deg) translateY(${Wi(e.calc(a).mul(-1).equal())})`},"&::after":{transform:`rotate(-45deg) translateY(${Wi(a)})`}}}}},YS=e=>{const{antCls:t,componentCls:n,fontSize:r,motionDurationSlow:o,motionDurationMid:i,motionEaseInOut:a,paddingXS:l,padding:s,colorSplit:c,lineWidth:u,zIndexPopup:d,borderRadiusLG:f,subMenuItemBorderRadius:p,menuArrowSize:m,menuArrowOffset:g,lineType:h,groupTitleLineHeight:v,groupTitleFontSize:b}=e;return[{"":{[n]:Object.assign(Object.assign({},{"&::before":{display:"table",content:'""'},"&::after":{display:"table",clear:"both",content:'""'}}),{"&-hidden":{display:"none"}})},[`${n}-submenu-hidden`]:{display:"none"}},{[n]:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},Cl(e)),{"&::before":{display:"table",content:'""'},"&::after":{display:"table",clear:"both",content:'""'}}),{marginBottom:0,paddingInlineStart:0,fontSize:r,lineHeight:0,listStyle:"none",outline:"none",transition:`width ${o} 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:`${Wi(l)} ${Wi(s)}`,fontSize:b,lineHeight:v,transition:`all ${o}`},[`&-horizontal ${n}-submenu`]:{transition:[`border-color ${o} ${a}`,`background ${o} ${a}`].join(",")},[`${n}-submenu, ${n}-submenu-inline`]:{transition:[`border-color ${o} ${a}`,`background ${o} ${a}`,`padding ${i} ${a}`].join(",")},[`${n}-submenu ${n}-sub`]:{cursor:"initial",transition:[`background ${o} ${a}`,`padding ${o} ${a}`].join(",")},[`${n}-title-content`]:{transition:`color ${o}`,"&-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:c,borderStyle:h,borderWidth:0,borderTopWidth:u,marginBlock:u,padding:0,"&-dashed":{borderStyle:"dashed"}}}),KS(e)),{[`${n}-item-group`]:{[`${n}-item-group-list`]:{margin:0,padding:0,[`${n}-item, ${n}-submenu-title`]:{paddingInline:`${Wi(e.calc(r).mul(2).equal())} ${Wi(s)}`}}},"&-submenu":{"&-popup":{position:"absolute",zIndex:d,borderRadius:f,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:f},KS(e)),US(e)),{[`${n}-item, ${n}-submenu > ${n}-submenu-title`]:{borderRadius:p},[`${n}-submenu-title::after`]:{transition:`transform ${o} ${a}`}})},"\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}}}),US(e)),{[`&-inline-collapsed ${n}-submenu-arrow,\n &-inline ${n}-submenu-arrow`]:{"&::before":{transform:`rotate(-45deg) translateX(${Wi(g)})`},"&::after":{transform:`rotate(45deg) translateX(${Wi(e.calc(g).mul(-1).equal())})`}},[`${n}-submenu-open${n}-submenu-inline > ${n}-submenu-title > ${n}-submenu-arrow`]:{transform:`translateY(${Wi(e.calc(m).mul(.2).mul(-1).equal())})`,"&::after":{transform:`rotate(-45deg) translateX(${Wi(e.calc(g).mul(-1).equal())})`},"&::before":{transform:`rotate(45deg) translateX(${Wi(g)})`}}})},{[`${t}-layout-header`]:{[n]:{lineHeight:"inherit"}}}]},QS=e=>{var t,n,r;const{colorPrimary:o,colorError:i,colorTextDisabled:a,colorErrorBg:l,colorText:s,colorTextDescription:c,colorBgContainer:u,colorFillAlter:d,colorFillContent:f,lineWidth:p,lineWidthBold:m,controlItemBgActive:g,colorBgTextHover:h,controlHeightLG:v,lineHeight:b,colorBgElevated:y,marginXXS:x,padding:C,fontSize:w,controlHeightSM:S,fontSizeLG:$,colorTextLightSolid:E,colorErrorHover:O}=e,k=null!==(t=e.activeBarWidth)&&void 0!==t?t:0,I=null!==(n=e.activeBarBorderWidth)&&void 0!==n?n:p,j=null!==(r=e.itemMarginInline)&&void 0!==r?r:e.marginXXS,P=new Rl(E).setA(.65).toRgbString();return{dropdownWidth:160,zIndexPopup:e.zIndexPopupBase+50,radiusItem:e.borderRadiusLG,itemBorderRadius:e.borderRadiusLG,radiusSubMenuItem:e.borderRadiusSM,subMenuItemBorderRadius:e.borderRadiusSM,colorItemText:s,itemColor:s,colorItemTextHover:s,itemHoverColor:s,colorItemTextHoverHorizontal:o,horizontalItemHoverColor:o,colorGroupTitle:c,groupTitleColor:c,colorItemTextSelected:o,itemSelectedColor:o,subMenuItemSelectedColor:o,colorItemTextSelectedHorizontal:o,horizontalItemSelectedColor:o,colorItemBg:u,itemBg:u,colorItemBgHover:h,itemHoverBg:h,colorItemBgActive:f,itemActiveBg:g,colorSubItemBg:d,subMenuItemBg:d,colorItemBgSelected:g,itemSelectedBg:g,colorItemBgSelectedHorizontal:"transparent",horizontalItemSelectedBg:"transparent",colorActiveBarWidth:0,activeBarWidth:k,colorActiveBarHeight:m,activeBarHeight:m,colorActiveBarBorderSize:p,activeBarBorderWidth:I,colorItemTextDisabled:a,itemDisabledColor:a,colorDangerItemText:i,dangerItemColor:i,colorDangerItemTextHover:i,dangerItemHoverColor:i,colorDangerItemTextSelected:i,dangerItemSelectedColor:i,colorDangerItemBgActive:l,dangerItemActiveBg:l,colorDangerItemBgSelected:l,dangerItemSelectedBg:l,itemMarginInline:j,horizontalItemBorderRadius:0,horizontalItemHoverBg:"transparent",itemHeight:v,groupTitleLineHeight:b,collapsedWidth:2*v,popupBg:y,itemMarginBlock:x,itemPaddingInline:C,horizontalLineHeight:1.15*v+"px",iconSize:w,iconMarginInlineEnd:S-w,collapsedIconSize:$,groupTitleFontSize:w,darkItemDisabledColor:new Rl(E).setA(.25).toRgbString(),darkItemColor:P,darkDangerItemColor:i,darkItemBg:"#001529",darkPopupBg:"#001529",darkSubMenuItemBg:"#000c17",darkItemSelectedColor:E,darkItemSelectedBg:o,darkDangerItemSelectedBg:i,darkItemHoverBg:"transparent",darkGroupTitleColor:P,darkItemHoverColor:E,darkDangerItemHoverColor:O,darkDangerItemSelectedColor:E,darkDangerItemActiveBg:i,itemWidth:k?`calc(100% + ${I}px)`:`calc(100% - ${2*j}px)`}},ZS=(e,t=e,n=!0)=>{const r=js("Menu",e=>{const{colorBgElevated:t,controlHeightLG:n,fontSize:r,darkItemColor:o,darkDangerItemColor:i,darkItemBg:a,darkSubMenuItemBg:l,darkItemSelectedColor:s,darkItemSelectedBg:c,darkDangerItemSelectedBg:u,darkItemHoverBg:d,darkGroupTitleColor:f,darkItemHoverColor:p,darkItemDisabledColor:m,darkDangerItemHoverColor:g,darkDangerItemSelectedColor:h,darkDangerItemActiveBg:v,popupBg:b,darkPopupBg:y}=e,x=e.calc(r).div(7).mul(5).equal(),C=pl(e,{menuArrowSize:x,menuHorizontalHeight:e.calc(n).mul(1.15).equal(),menuArrowOffset:e.calc(x).mul(.25).equal(),menuSubMenuBg:t,calc:e.calc,popupBg:b}),w=pl(C,{itemColor:o,itemHoverColor:p,groupTitleColor:f,itemSelectedColor:s,subMenuItemSelectedColor:s,itemBg:a,popupBg:y,subMenuItemBg:l,itemActiveBg:"transparent",itemSelectedBg:c,activeBarHeight:0,activeBarBorderWidth:0,itemHoverBg:d,itemDisabledColor:m,dangerItemColor:i,dangerItemHoverColor:g,dangerItemSelectedColor:h,dangerItemActiveBg:v,dangerItemSelectedBg:u,menuSubMenuBg:l,horizontalItemSelectedColor:s,horizontalItemSelectedBg:c});return[YS(C),DS(C),XS(C),qS(C,"light"),qS(w,"dark"),VS(C),LS(C),nh(C,"slide-up"),nh(C,"slide-down"),Ic(C,"zoom-big")]},QS,{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}});return r(e,t)},JS=t=>{var n;const{popupClassName:r,icon:o,title:i,theme:a}=t,l=e.useContext(zS),{prefixCls:s,inlineCollapsed:c,theme:u}=l,d=$w();let f;if(o){const t=e.isValidElement(i)&&"span"===i.type;f=e.createElement(e.Fragment,null,sc(o,{className:A()(e.isValidElement(o)?null===(n=o.props)||void 0===n?void 0:n.className:void 0,`${s}-item-icon`)}),t?i:e.createElement("span",{className:`${s}-title-content`},i))}else f=c&&!d.length&&i&&"string"==typeof i?e.createElement("div",{className:`${s}-inline-collapsed-noicon`},i.charAt(0)):e.createElement("span",{className:`${s}-title-content`},i);const p=e.useMemo(()=>Object.assign(Object.assign({},l),{firstLevel:!1}),[l]),[m]=Ws("Menu");return e.createElement(zS.Provider,{value:p},e.createElement(yS,Object.assign({},ii(t,["icon"]),{title:f,popupClassName:A()(s,r,`${s}-${a||u}`),popupStyle:Object.assign({zIndex:m},t.popupStyle)})))};function e$(e){return null===e||!1===e}const t$={item:FS,submenu:JS,divider:TS},n$=(0,e.forwardRef)((t,n)=>{var r;const o=e.useContext(_S),i=o||{},{getPrefixCls:a,getPopupContainer:l,direction:s,menu:c}=e.useContext(hi),u=a(),{prefixCls:d,className:f,style:p,theme:m="light",expandIcon:g,_internalDisableMenuItemTitleTooltip:h,inlineCollapsed:v,siderCollapsed:b,rootClassName:y,mode:x,selectable:C,onClick:w,overflowedIndicatorPopupClassName:S}=t,$=ii(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(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n}(t,["prefixCls","className","style","theme","expandIcon","_internalDisableMenuItemTitleTooltip","inlineCollapsed","siderCollapsed","rootClassName","mode","selectable","onClick","overflowedIndicatorPopupClassName"]),["collapsedWidth"]);null===(r=i.validator)||void 0===r||r.call(i,{mode:x});const E=At((...e)=>{var t;null==w||w.apply(void 0,e),null===(t=i.onClick)||void 0===t||t.call(i)}),O=i.mode||x,k=null!=C?C:i.selectable,I=null!=v?v:b,j={horizontal:{motionName:`${u}-slide-up`},inline:Ys(u),other:{motionName:`${u}-zoom-big`}},P=a("menu",d||i.prefixCls),M=jf(P),[N,R,z]=ZS(P,M,!o),T=A()(`${P}-${m}`,null==c?void 0:c.className,f),F=e.useMemo(()=>{var t,n;if("function"==typeof g||e$(g))return g||null;if("function"==typeof i.expandIcon||e$(i.expandIcon))return i.expandIcon||null;if("function"==typeof(null==c?void 0:c.expandIcon)||e$(null==c?void 0:c.expandIcon))return(null==c?void 0:c.expandIcon)||null;const r=null!==(t=null!=g?g:null==i?void 0:i.expandIcon)&&void 0!==t?t:null==c?void 0:c.expandIcon;return sc(r,{className:A()(`${P}-submenu-expand-icon`,e.isValidElement(r)?null===(n=r.props)||void 0===n?void 0:n.className:void 0)})},[g,null==i?void 0:i.expandIcon,null==c?void 0:c.expandIcon,P]),B=e.useMemo(()=>({prefixCls:P,inlineCollapsed:I||!1,direction:s,firstLevel:!0,theme:m,mode:O,disableMenuItemTitleTooltip:h}),[P,I,s,h,m]);return N(e.createElement(_S.Provider,{value:null},e.createElement(zS.Provider,{value:B},e.createElement(MS,Object.assign({getPopupContainer:l,overflowedIndicator:e.createElement(AS,null),overflowedIndicatorPopupClassName:A()(P,`${P}-${m}`,S),mode:O,selectable:k,onClick:E},$,{inlineCollapsed:I,style:Object.assign(Object.assign({},null==c?void 0:c.style),p),className:T,prefixCls:P,direction:s,defaultMotions:j,expandIcon:F,ref:n,rootClassName:A()(y,R,i.rootClassName,z,M),_internalComponents:t$})))))}),r$=n$,o$=(0,e.forwardRef)((t,n)=>{const r=(0,e.useRef)(null),o=e.useContext(NS);return(0,e.useImperativeHandle)(n,()=>({menu:r.current,focus:e=>{var t;null===(t=r.current)||void 0===t||t.focus(e)}})),e.createElement(r$,Object.assign({ref:r},t,o))});o$.Item=FS,o$.SubMenu=JS,o$.Divider=TS,o$.ItemGroup=SS;const i$=o$,a$=e=>e?"function"==typeof e?e():e:null,l$=e=>{const{componentCls:t,popoverColor:n,titleMinWidth:r,fontWeightStrong:o,innerPadding:i,boxShadowSecondary:a,colorTextHeading:l,borderRadiusLG:s,zIndexPopup:c,titleMarginBottom:u,colorBgElevated:d,popoverBg:f,titleBorderBottom:p,innerContentPadding:m,titlePadding:g}=e;return[{[t]:Object.assign(Object.assign({},Cl(e)),{position:"absolute",top:0,left:{_skip_check_:!0,value:0},zIndex:c,fontWeight:"normal",whiteSpace:"normal",textAlign:"start",cursor:"auto",userSelect:"text","--valid-offset-x":"var(--arrow-offset-horizontal, var(--arrow-x))",transformOrigin:["var(--valid-offset-x, 50%)","var(--arrow-y, 50%)"].join(" "),"--antd-arrow-background-color":d,width:"max-content",maxWidth:"100vw","&-rtl":{direction:"rtl"},"&-hidden":{display:"none"},[`${t}-content`]:{position:"relative"},[`${t}-inner`]:{backgroundColor:f,backgroundClip:"padding-box",borderRadius:s,boxShadow:a,padding:i},[`${t}-title`]:{minWidth:r,marginBottom:u,color:l,fontWeight:o,borderBottom:p,padding:g},[`${t}-inner-content`]:{color:n,padding:m}})},tc(e,"var(--antd-arrow-background-color)"),{[`${t}-pure`]:{position:"relative",maxWidth:"none",margin:e.sizePopupArrow,display:"inline-block",[`${t}-content`]:{display:"inline-block"}}}]},s$=e=>{const{componentCls:t}=e;return{[t]:jc.map(n=>{const r=e[`${n}6`];return{[`&${t}-${n}`]:{"--antd-arrow-background-color":r,[`${t}-inner`]:{backgroundColor:r},[`${t}-arrow`]:{background:"transparent"}}}})}},c$=js("Popover",e=>{const{colorBgElevated:t,colorText:n}=e,r=pl(e,{popoverBg:t,popoverColor:n});return[l$(r),s$(r),Ic(r,"zoom-big")]},e=>{const{lineWidth:t,controlHeight:n,fontHeight:r,padding:o,wireframe:i,zIndexPopupBase:a,borderRadiusLG:l,marginXS:s,lineType:c,colorSplit:u,paddingSM:d}=e,f=n-r,p=f/2,m=f/2-t,g=o;return Object.assign(Object.assign(Object.assign({titleMinWidth:177,zIndexPopup:a+30},Qs(e)),Js({contentRadius:l,limitVerticalRadius:!0})),{innerPadding:i?0:12,titleMarginBottom:i?0:s,titlePadding:i?`${p}px ${g}px ${m}px`:0,titleBorderBottom:i?`${t}px ${c} ${u}`:"none",innerContentPadding:i?`${d}px ${g}px`:0})},{resetStyle:!1,deprecatedTokens:[["width","titleMinWidth"],["minWidth","titleMinWidth"]]});const u$=({title:t,content:n,prefixCls:r})=>t||n?e.createElement(e.Fragment,null,t&&e.createElement("div",{className:`${r}-title`},t),n&&e.createElement("div",{className:`${r}-inner-content`},n)):null,d$=t=>{const{hashId:n,prefixCls:r,className:o,style:i,placement:a="top",title:l,content:s,children:c}=t,u=a$(l),d=a$(s),f=A()(n,r,`${r}-pure`,`${r}-placement-${a}`,o);return e.createElement("div",{className:f,style:i},e.createElement("div",{className:`${r}-arrow`}),e.createElement(z,Object.assign({},t,{className:n,prefixCls:r}),c||e.createElement(u$,{prefixCls:r,title:u,content:d})))},f$=t=>{const{prefixCls:n,className:r}=t,o=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(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n}(t,["prefixCls","className"]),{getPrefixCls:i}=e.useContext(hi),a=i("popover",n),[l,s,c]=c$(a);return l(e.createElement(d$,Object.assign({},o,{prefixCls:a,hashId:s,className:A()(r,c)})))};const p$=e.forwardRef((t,n)=>{var r,o;const{prefixCls:i,title:a,content:l,overlayClassName:s,placement:c="top",trigger:u="hover",children:d,mouseEnterDelay:f=.1,mouseLeaveDelay:p=.1,onOpenChange:m,overlayStyle:g={},styles:h,classNames:v}=t,b=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n}(t,["prefixCls","title","content","overlayClassName","placement","trigger","children","mouseEnterDelay","mouseLeaveDelay","onOpenChange","overlayStyle","styles","classNames"]),{getPrefixCls:y,className:x,style:C,classNames:w,styles:S}=yi("popover"),$=y("popover",i),[E,O,k]=c$($),I=y(),j=A()(s,O,k,x,w.root,null==v?void 0:v.root),P=A()(w.body,null==v?void 0:v.body),[M,N]=Gt(!1,{value:null!==(r=t.open)&&void 0!==r?r:t.visible,defaultValue:null!==(o=t.defaultOpen)&&void 0!==o?o:t.defaultVisible}),R=(e,t)=>{N(e,!0),null==m||m(e,t)},z=a$(a),T=a$(l);return E(e.createElement(Uc,Object.assign({placement:c,trigger:u,mouseEnterDelay:f,mouseLeaveDelay:p},b,{prefixCls:$,classNames:{root:j,body:P},styles:{root:Object.assign(Object.assign(Object.assign(Object.assign({},S.root),C),g),null==h?void 0:h.root),body:Object.assign(Object.assign({},S.body),null==h?void 0:h.body)},ref:n,open:M,onOpenChange:e=>{R(e)},overlay:z||T?e.createElement(u$,{prefixCls:$,title:z,content:T}):null,transitionName:Us(I,"zoom-big",b.transitionName),"data-popover-inject":!0}),sc(d,{onKeyDown:t=>{var n,r;(0,e.isValidElement)(d)&&(null===(r=null==d?void 0:(n=d.props).onKeyDown)||void 0===r||r.call(n,t)),(e=>{e.keyCode===kp.ESC&&R(!1,e)})(t)}})))}),m$=p$;m$._InternalPanelDoNotUseOrYouWillBeFired=f$;const g$=m$,h$=e=>"function"==typeof(null==e?void 0:e.then),v$=t=>{const{type:n,children:r,prefixCls:o,buttonProps:i,close:a,autoFocus:l,emitEvent:s,isSilent:c,quitOnNullishReturnValue:u,actionFn:d}=t,f=e.useRef(!1),p=e.useRef(null),[m,g]=Wt(!1),h=(...e)=>{null==a||a.apply(void 0,e)};return e.useEffect(()=>{let e=null;return l&&(e=setTimeout(()=>{var e;null===(e=p.current)||void 0===e||e.focus({preventScroll:!0})})),()=>{e&&clearTimeout(e)}},[l]),e.createElement(Ad,Object.assign({},Su(n),{onClick:e=>{if(f.current)return;if(f.current=!0,!d)return void h();let t;if(s){if(t=d(e),u&&!h$(t))return f.current=!1,void h(e)}else if(d.length)t=d(a),f.current=!1;else if(t=d(),!h$(t))return void h();(e=>{h$(e)&&(g(!0),e.then((...e)=>{g(!1,!0),h.apply(void 0,e),f.current=!1},e=>{if(g(!1,!0),f.current=!1,!(null==c?void 0:c()))return Promise.reject(e)}))})(t)},loading:m,prefixCls:o},i,{ref:p}),r)},b$=js("Popconfirm",e=>(e=>{const{componentCls:t,iconCls:n,antCls:r,zIndexPopup:o,colorText:i,colorWarning:a,marginXXS:l,marginXS:s,fontSize:c,fontWeightStrong:u,colorTextHeading:d}=e;return{[t]:{zIndex:o,[`&${r}-popover`]:{fontSize:c},[`${t}-message`]:{marginBottom:s,display:"flex",flexWrap:"nowrap",alignItems:"start",[`> ${t}-message-icon ${n}`]:{color:a,fontSize:c,lineHeight:1,marginInlineEnd:s},[`${t}-title`]:{fontWeight:u,color:d,"&:only-child":{fontWeight:"normal"}},[`${t}-description`]:{marginTop:l,color:i}},[`${t}-buttons`]:{textAlign:"end",whiteSpace:"nowrap",button:{marginInlineStart:s}}}}})(e),e=>{const{zIndexPopupBase:t}=e;return{zIndexPopup:t+60}},{resetStyle:!1});const y$=t=>{const{prefixCls:n,okButtonProps:r,cancelButtonProps:o,title:i,description:a,cancelText:l,okText:s,okType:c="primary",icon:u=e.createElement(SC,null),showCancel:d=!0,close:f,onConfirm:p,onCancel:m,onPopupClick:g}=t,{getPrefixCls:h}=e.useContext(hi),[v]=Fg("Popconfirm",fg.Popconfirm),b=a$(i),y=a$(a);return e.createElement("div",{className:`${n}-inner-content`,onClick:g},e.createElement("div",{className:`${n}-message`},u&&e.createElement("span",{className:`${n}-message-icon`},u),e.createElement("div",{className:`${n}-message-text`},b&&e.createElement("div",{className:`${n}-title`},b),y&&e.createElement("div",{className:`${n}-description`},y))),e.createElement("div",{className:`${n}-buttons`},d&&e.createElement(Ad,Object.assign({onClick:m,size:"small"},o),l||(null==v?void 0:v.cancelText)),e.createElement(v$,{buttonProps:Object.assign(Object.assign({size:"small"},Su(c)),r),actionFn:p,close:f,prefixCls:h("btn"),quitOnNullishReturnValue:!0,emitEvent:!0},s||(null==v?void 0:v.okText))))};const x$=e.forwardRef((t,n)=>{var r,o;const{prefixCls:i,placement:a="top",trigger:l="click",okType:s="primary",icon:c=e.createElement(SC,null),children:u,overlayClassName:d,onOpenChange:f,onVisibleChange:p,overlayStyle:m,styles:g,classNames:h}=t,v=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(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n}(t,["prefixCls","placement","trigger","okType","icon","children","overlayClassName","onOpenChange","onVisibleChange","overlayStyle","styles","classNames"]),{getPrefixCls:b,className:y,style:x,classNames:C,styles:w}=yi("popconfirm"),[S,$]=Gt(!1,{value:null!==(r=t.open)&&void 0!==r?r:t.visible,defaultValue:null!==(o=t.defaultOpen)&&void 0!==o?o:t.defaultVisible}),E=(e,t)=>{$(e,!0),null==p||p(e),null==f||f(e,t)},O=b("popconfirm",i),k=A()(O,y,d,C.root,null==h?void 0:h.root),I=A()(C.body,null==h?void 0:h.body),[j]=b$(O);return j(e.createElement(g$,Object.assign({},ii(v,["title"]),{trigger:l,placement:a,onOpenChange:(e,n)=>{const{disabled:r=!1}=t;r||E(e,n)},open:S,ref:n,classNames:{root:k,body:I},styles:{root:Object.assign(Object.assign(Object.assign(Object.assign({},w.root),x),m),null==g?void 0:g.root),body:Object.assign(Object.assign({},w.body),null==g?void 0:g.body)},content:e.createElement(y$,Object.assign({okType:s,icon:c},t,{prefixCls:O,close:e=>{E(!1,e)},onConfirm:e=>{var n;return null===(n=t.onConfirm)||void 0===n?void 0:n.call(void 0,e)},onCancel:e=>{var n;E(!1,e),null===(n=t.onCancel)||void 0===n||n.call(void 0,e)}})),"data-popover-inject":!0}),u))}),C$=x$;C$._InternalPanelDoNotUseOrYouWillBeFired=t=>{const{prefixCls:n,placement:r,className:o,style:i}=t,a=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(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n}(t,["prefixCls","placement","className","style"]),{getPrefixCls:l}=e.useContext(hi),s=l("popconfirm",n),[c]=b$(s);return c(e.createElement(f$,{placement:r,className:A()(s,o),style:i,content:e.createElement(y$,Object.assign({prefixCls:s},a))}))};const w$=C$,S$={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"};var $$=function(t,n){return e.createElement(_u,T({},t,{ref:n,icon:S$}))};const E$=e.forwardRef($$),O$={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"};var k$=function(t,n){return e.createElement(_u,T({},t,{ref:n,icon:O$}))};const I$=e.forwardRef(k$);var j$=kp.ESC,P$=kp.TAB;const M$=(0,e.forwardRef)(function(n,r){var o=n.overlay,i=n.arrow,a=n.prefixCls,l=(0,e.useMemo)(function(){return"function"==typeof o?o():o},[o]),s=fe(r,he(l));return t().createElement(t().Fragment,null,i&&t().createElement("div",{className:"".concat(a,"-arrow")}),t().cloneElement(l,{ref:me(l)?s:void 0}))});var N$={adjustX:1,adjustY:1},R$=[0,0];const A$={topLeft:{points:["bl","tl"],overflow:N$,offset:[0,-4],targetOffset:R$},top:{points:["bc","tc"],overflow:N$,offset:[0,-4],targetOffset:R$},topRight:{points:["br","tr"],overflow:N$,offset:[0,-4],targetOffset:R$},bottomLeft:{points:["tl","bl"],overflow:N$,offset:[0,4],targetOffset:R$},bottom:{points:["tc","bc"],overflow:N$,offset:[0,4],targetOffset:R$},bottomRight:{points:["tr","br"],overflow:N$,offset:[0,4],targetOffset:R$}};var z$=["arrow","prefixCls","transitionName","animation","align","placement","placements","getPopupContainer","showAction","hideAction","overlayClassName","overlayStyle","visible","trigger","autoFocus","overlay","children","onVisibleChange"];function T$(n,r){var o,i=n.arrow,a=void 0!==i&&i,l=n.prefixCls,s=void 0===l?"rc-dropdown":l,c=n.transitionName,u=n.animation,d=n.align,f=n.placement,p=void 0===f?"bottomLeft":f,m=n.placements,g=void 0===m?A$:m,h=n.getPopupContainer,v=n.showAction,b=n.hideAction,y=n.overlayClassName,x=n.overlayStyle,C=n.visible,w=n.trigger,S=void 0===w?["hover"]:w,$=n.autoFocus,E=n.overlay,O=n.children,k=n.onVisibleChange,I=D(n,z$),j=X(t().useState(),2),P=j[0],M=j[1],N="visible"in n?C:P,R=t().useRef(null),z=t().useRef(null),F=t().useRef(null);t().useImperativeHandle(r,function(){return R.current});var B=function(e){M(e),null==k||k(e)};!function(t){var n=t.visible,r=t.triggerRef,o=t.onVisibleChange,i=t.autoFocus,a=t.overlayRef,l=e.useRef(!1),s=function(){var e,t;n&&(null===(e=r.current)||void 0===e||null===(t=e.focus)||void 0===t||t.call(e),null==o||o(!1))},c=function(){var e;return!(null===(e=a.current)||void 0===e||!e.focus||(a.current.focus(),l.current=!0,0))},u=function(e){switch(e.keyCode){case j$:s();break;case P$:var t=!1;l.current||(t=c()),t?e.preventDefault():s()}};e.useEffect(function(){return n?(window.addEventListener("keydown",u),i&&Rn(c,3),function(){window.removeEventListener("keydown",u),l.current=!1}):function(){l.current=!1}},[n])}({visible:N,triggerRef:F,onVisibleChange:B,autoFocus:$,overlayRef:z});var _,L,V,W=function(){return t().createElement(M$,{ref:z,overlay:E,prefixCls:s,arrow:a})},q=t().cloneElement(O,{className:A()(null===(o=O.props)||void 0===o?void 0:o.className,N&&(_=n.openClassName,void 0!==_?_:"".concat(s,"-open"))),ref:me(O)?fe(F,he(O)):void 0}),G=b;return G||-1===S.indexOf("contextMenu")||(G=["click"]),t().createElement(wr,T({builtinPlacements:g},I,{prefixCls:s,ref:R,popupClassName:A()(y,H({},"".concat(s,"-show-arrow"),a)),popupStyle:x,action:S,showAction:v,hideAction:G,popupPlacement:p,popupAlign:d,popupTransitionName:c,popupAnimation:u,popupVisible:N,stretch:(L=n.minOverlayWidthMatchTrigger,V=n.alignPoint,("minOverlayWidthMatchTrigger"in n?L:!V)?"minWidth":""),popup:"function"==typeof E?W:W(),onPopupVisibleChange:B,onPopupClick:function(e){var t=n.onOverlayClick;M(!1),t&&t(e)},getPopupContainer:h}),q)}const F$=t().forwardRef(T$),B$=e=>{const{componentCls:t,menuCls:n,colorError:r,colorTextLightSolid:o}=e,i=`${n}-item`;return{[`${t}, ${t}-menu-submenu`]:{[`${n} ${i}`]:{[`&${i}-danger:not(${i}-disabled)`]:{color:r,"&:hover":{color:o,backgroundColor:r}}}}}},H$=e=>{const{componentCls:t,menuCls:n,zIndexPopup:r,dropdownArrowDistance:o,sizePopupArrow:i,antCls:a,iconCls:l,motionDurationMid:s,paddingBlock:c,fontSize:u,dropdownEdgeChildPadding:d,colorTextDisabled:f,fontSizeIcon:p,controlPaddingHorizontal:m,colorBgElevated:g}=e;return[{[t]:{position:"absolute",top:-9999,left:{_skip_check_:!0,value:-9999},zIndex:r,display:"block","&::before":{position:"absolute",insetBlock:e.calc(i).div(2).sub(o).equal(),zIndex:-9999,opacity:1e-4,content:'""'},"&-menu-vertical":{maxHeight:"100vh",overflowY:"auto"},[`&-trigger${a}-btn`]:{[`& > ${l}-down, & > ${a}-btn-icon > ${l}-down`]:{fontSize:p}},[`${t}-wrap`]:{position:"relative",[`${a}-btn > ${l}-down`]:{fontSize:p},[`${l}-down::before`]:{transition:`transform ${s}`}},[`${t}-wrap-open`]:{[`${l}-down::before`]:{transform:"rotate(180deg)"}},"\n &-hidden,\n &-menu-hidden,\n &-menu-submenu-hidden\n ":{display:"none"},[`&${a}-slide-down-enter${a}-slide-down-enter-active${t}-placement-bottomLeft,\n &${a}-slide-down-appear${a}-slide-down-appear-active${t}-placement-bottomLeft,\n &${a}-slide-down-enter${a}-slide-down-enter-active${t}-placement-bottom,\n &${a}-slide-down-appear${a}-slide-down-appear-active${t}-placement-bottom,\n &${a}-slide-down-enter${a}-slide-down-enter-active${t}-placement-bottomRight,\n &${a}-slide-down-appear${a}-slide-down-appear-active${t}-placement-bottomRight`]:{animationName:Xg},[`&${a}-slide-up-enter${a}-slide-up-enter-active${t}-placement-topLeft,\n &${a}-slide-up-appear${a}-slide-up-appear-active${t}-placement-topLeft,\n &${a}-slide-up-enter${a}-slide-up-enter-active${t}-placement-top,\n &${a}-slide-up-appear${a}-slide-up-appear-active${t}-placement-top,\n &${a}-slide-up-enter${a}-slide-up-enter-active${t}-placement-topRight,\n &${a}-slide-up-appear${a}-slide-up-appear-active${t}-placement-topRight`]:{animationName:Ug},[`&${a}-slide-down-leave${a}-slide-down-leave-active${t}-placement-bottomLeft,\n &${a}-slide-down-leave${a}-slide-down-leave-active${t}-placement-bottom,\n &${a}-slide-down-leave${a}-slide-down-leave-active${t}-placement-bottomRight`]:{animationName:Kg},[`&${a}-slide-up-leave${a}-slide-up-leave-active${t}-placement-topLeft,\n &${a}-slide-up-leave${a}-slide-up-leave-active${t}-placement-top,\n &${a}-slide-up-leave${a}-slide-up-leave-active${t}-placement-topRight`]:{animationName:Yg}}},tc(e,g,{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({},Cl(e)),{[n]:Object.assign(Object.assign({padding:d,listStyleType:"none",backgroundColor:g,backgroundClip:"padding-box",borderRadius:e.borderRadiusLG,outline:"none",boxShadow:e.boxShadowSecondary},Sl(e)),{"&:empty":{padding:0,boxShadow:"none"},[`${n}-item-group-title`]:{padding:`${Wi(c)} ${Wi(m)}`,color:e.colorTextDescription,transition:`all ${s}`},[`${n}-item`]:{position:"relative",display:"flex",alignItems:"center"},[`${n}-item-icon`]:{minWidth:u,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 ${s}`,"&: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:`${Wi(c)} ${Wi(m)}`,color:e.colorText,fontWeight:"normal",fontSize:u,lineHeight:e.lineHeight,cursor:"pointer",transition:`all ${s}`,borderRadius:e.borderRadiusSM,"&:hover, &-active":{backgroundColor:e.controlItemBgHover}},Sl(e)),{"&-selected":{color:e.colorPrimary,backgroundColor:e.controlItemBgActive,"&:hover, &-active":{backgroundColor:e.controlItemBgActiveHover}},"&-disabled":{color:f,cursor:"not-allowed","&:hover":{color:f,backgroundColor:g,cursor:"not-allowed"},a:{pointerEvents:"none"}},"&-divider":{height:1,margin:`${Wi(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.colorIcon,fontSize:p,fontStyle:"normal"}}}),[`${n}-item-group-list`]:{margin:`0 ${Wi(e.marginXS)}`,padding:0,listStyle:"none"},[`${n}-submenu-title`]:{paddingInlineEnd:e.calc(m).add(e.fontSizeSM).equal()},[`${n}-submenu-vertical`]:{position:"relative"},[`${n}-submenu${n}-submenu-disabled ${t}-menu-submenu-title`]:{[`&, ${t}-menu-submenu-arrow-icon`]:{color:f,backgroundColor:g,cursor:"not-allowed"}},[`${n}-submenu-selected ${t}-menu-submenu-title`]:{color:e.colorPrimary}})})},[nh(e,"slide-up"),nh(e,"slide-down"),uh(e,"move-up"),uh(e,"move-down"),Ic(e,"zoom-big")]]},_$=js("Dropdown",e=>{const{marginXXS:t,sizePopupArrow:n,paddingXXS:r,componentCls:o}=e,i=pl(e,{menuCls:`${o}-menu`,dropdownArrowDistance:e.calc(n).div(2).add(t).equal(),dropdownEdgeChildPadding:r});return[H$(i),B$(i)]},e=>Object.assign(Object.assign({zIndexPopup:e.zIndexPopupBase+50,paddingBlock:(e.controlHeight-e.fontSize*e.lineHeight)/2},Js({contentRadius:e.borderRadiusLG,limitVerticalRadius:!0})),Qs(e)),{resetStyle:!1}),L$=t=>{var n;const{menu:r,arrow:o,prefixCls:i,children:a,trigger:l,disabled:s,dropdownRender:c,popupRender:u,getPopupContainer:d,overlayClassName:f,rootClassName:p,overlayStyle:m,open:g,onOpenChange:h,visible:v,onVisibleChange:b,mouseEnterDelay:y=.15,mouseLeaveDelay:x=.1,autoAdjustOverflow:C=!0,placement:w="",overlay:S,transitionName:$,destroyOnHidden:E,destroyPopupOnHide:O}=t,{getPopupContainer:k,getPrefixCls:I,direction:j,dropdown:P}=e.useContext(hi),M=u||c;dc();const N=e.useMemo(()=>{const e=I();return void 0!==$?$:w.includes("top")?`${e}-slide-down`:`${e}-slide-up`},[I,w,$]),R=e.useMemo(()=>w?w.includes("Center")?w.slice(0,w.indexOf("Center")):w:"rtl"===j?"bottomRight":"bottomLeft",[w,j]),z=I("dropdown",i),T=jf(z),[F,B,H]=_$(z,T),[,_]=Is(),L=e.Children.only("object"!=typeof(J=a)&&"function"!=typeof J||null===J?e.createElement("span",null,a):a),D=sc(L,{className:A()(`${z}-trigger`,{[`${z}-rtl`]:"rtl"===j},L.props.className),disabled:null!==(n=L.props.disabled)&&void 0!==n?n:s}),V=s?[]:l,W=!!(null==V?void 0:V.includes("contextMenu")),[q,G]=Gt(!1,{value:null!=g?g:v}),X=At(e=>{null==h||h(e,{source:"trigger"}),null==b||b(e),G(e)}),K=A()(f,p,B,H,T,null==P?void 0:P.className,{[`${z}-rtl`]:"rtl"===j}),U=ic({arrowPointAtCenter:"object"==typeof o&&o.pointAtCenter,autoAdjustOverflow:C,offset:_.marginXXS,arrowWidth:o?_.sizePopupArrow:0,borderRadius:_.borderRadius}),Y=At(()=>{(null==r?void 0:r.selectable)&&(null==r?void 0:r.multiple)||(null==h||h(!1,{source:"menu"}),G(!1))}),[Q,Z]=Ws("Dropdown",null==m?void 0:m.zIndex);var J;let ee=e.createElement(F$,Object.assign({alignPoint:W},ii(t,["rootClassName"]),{mouseEnterDelay:y,mouseLeaveDelay:x,visible:q,builtinPlacements:U,arrow:!!o,overlayClassName:K,prefixCls:z,getPopupContainer:d||k,transitionName:N,trigger:V,overlay:()=>{let t;return t=(null==r?void 0:r.items)?e.createElement(i$,Object.assign({},r)):"function"==typeof S?S():S,M&&(t=M(t)),t=e.Children.only("string"==typeof t?e.createElement("span",null,t):t),e.createElement(HS,{prefixCls:`${z}-menu`,rootClassName:A()(H,T),expandIcon:e.createElement("span",{className:`${z}-menu-submenu-arrow`},"rtl"===j?e.createElement(E$,{className:`${z}-menu-submenu-arrow-icon`}):e.createElement(I$,{className:`${z}-menu-submenu-arrow-icon`})),mode:"vertical",selectable:!1,onClick:Y,validator:({mode:e})=>{}},t)},placement:R,onVisibleChange:X,overlayStyle:Object.assign(Object.assign(Object.assign({},null==P?void 0:P.style),m),{zIndex:Q}),autoDestroy:null!=E?E:O}),D);return Q&&(ee=e.createElement(_s.Provider,{value:Z},ee)),F(ee)},D$=Tg(L$,"align",void 0,"dropdown",e=>e);L$._InternalPanelDoNotUseOrYouWillBeFired=t=>e.createElement(D$,Object.assign({},t),e.createElement("span",null));const V$=L$;function W$(e){return["small","middle","large"].includes(e)}function q$(e){return!!e&&"number"==typeof e&&!Number.isNaN(e)}const G$=e=>{const{componentCls:t,borderRadius:n,paddingSM:r,colorBorder:o,paddingXS:i,fontSizeLG:a,fontSizeSM:l,borderRadiusLG:s,borderRadiusSM:c,colorBgContainerDisabled:u,lineWidth:d}=e;return{[t]:[{display:"inline-flex",alignItems:"center",gap:0,paddingInline:r,margin:0,background:u,borderWidth:d,borderStyle:"solid",borderColor:o,borderRadius:n,"&-large":{fontSize:a,borderRadius:s},"&-small":{paddingInline:i,borderRadius:c,fontSize:l},"&-compact-last-item":{borderEndStartRadius:0,borderStartStartRadius:0},"&-compact-first-item":{borderEndEndRadius:0,borderStartEndRadius:0},"&-compact-item:not(:first-child):not(:last-child)":{borderRadius:0},"&-compact-item:not(:last-child)":{borderInlineEndWidth:0}},Od(e,{focus:!1})]}},X$=js(["Space","Addon"],e=>[G$(e)]);const K$=t().forwardRef((e,n)=>{const{className:r,children:o,style:i,prefixCls:a}=e,l=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(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n}(e,["className","children","style","prefixCls"]),{getPrefixCls:s,direction:c}=t().useContext(hi),u=s("space-addon",a),[d,f,p]=X$(u),{compactItemClassnames:m,compactSize:g}=Ts(u,c),h=A()(u,f,m,p,{[`${u}-${g}`]:g},r);return d(t().createElement("div",Object.assign({ref:n,className:h,style:i},l),o))}),U$=K$,Y$=t().createContext({latestIndex:0}),Q$=Y$.Provider,Z$=({className:t,index:n,children:r,split:o,style:i})=>{const{latestIndex:a}=e.useContext(Y$);return null==r?null:e.createElement(e.Fragment,null,e.createElement("div",{className:t,style:i},r),n<a&&o&&e.createElement("span",{className:`${t}-split`},o))},J$=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"}}}},eE=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}}}},tE=js("Space",e=>{const t=pl(e,{spaceGapSmallSize:e.paddingXS,spaceGapMiddleSize:e.padding,spaceGapLargeSize:e.paddingLG});return[J$(t),eE(t)]},()=>({}),{resetStyle:!1});const nE=e.forwardRef((t,n)=>{var r;const{getPrefixCls:o,direction:i,size:a,className:l,style:s,classNames:c,styles:u}=yi("space"),{size:d=(null!=a?a:"small"),align:f,className:p,rootClassName:m,children:g,direction:h="horizontal",prefixCls:v,split:b,style:y,wrap:x=!1,classNames:C,styles:w}=t,S=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(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n}(t,["size","align","className","rootClassName","children","direction","prefixCls","split","style","wrap","classNames","styles"]),[$,E]=Array.isArray(d)?d:[d,d],O=W$(E),k=W$($),I=q$(E),j=q$($),P=De(g,{keepEmpty:!0}),M=void 0===f&&"horizontal"===h?"center":f,N=o("space",v),[R,z,T]=tE(N),F=A()(N,l,z,`${N}-${h}`,{[`${N}-rtl`]:"rtl"===i,[`${N}-align-${M}`]:M,[`${N}-gap-row-${E}`]:O,[`${N}-gap-col-${$}`]:k},p,m,T),B=A()(`${N}-item`,null!==(r=null==C?void 0:C.item)&&void 0!==r?r:c.item),H=Object.assign(Object.assign({},u.item),null==w?void 0:w.item),_=P.map((t,n)=>{const r=(null==t?void 0:t.key)||`${B}-${n}`;return e.createElement(Z$,{className:B,key:r,index:n,split:b,style:H},t)}),L=e.useMemo(()=>({latestIndex:P.reduce((e,t,n)=>null!=t?n:e,0)}),[P]);if(0===P.length)return null;const D={};return x&&(D.flexWrap="wrap"),!k&&j&&(D.columnGap=$),!O&&I&&(D.rowGap=E),R(e.createElement("div",Object.assign({ref:n,className:F,style:Object.assign(Object.assign(Object.assign({},D),s),y)},S),e.createElement(Q$,{value:L},_)))}),rE=nE;rE.Compact=t=>{const{getPrefixCls:n,direction:r}=e.useContext(hi),{size:o,direction:i,block:a,prefixCls:l,className:s,rootClassName:c,children:u}=t,d=As(t,["size","direction","block","prefixCls","className","rootClassName","children"]),f=Si(e=>null!=o?o:e),p=n("space-compact",l),[m,g]=Rs(p),h=A()(p,g,{[`${p}-rtl`]:"rtl"===r,[`${p}-block`]:a,[`${p}-vertical`]:"vertical"===i},s,c),v=e.useContext(zs),b=De(u),y=e.useMemo(()=>b.map((t,n)=>{const r=(null==t?void 0:t.key)||`${p}-item-${n}`;return e.createElement(Bs,{key:r,compactSize:f,compactDirection:i,isFirstItem:0===n&&(!v||(null==v?void 0:v.isFirstItem)),isLastItem:n===b.length-1&&(!v||(null==v?void 0:v.isLastItem))},t)}),[b,v,i,f,p]);return 0===b.length?null:m(e.createElement("div",Object.assign({className:h},d),y))},rE.Addon=U$;const oE=rE;const iE=t=>{const{getPopupContainer:n,getPrefixCls:r,direction:o}=e.useContext(hi),{prefixCls:i,type:a="default",danger:l,disabled:s,loading:c,onClick:u,htmlType:d,children:f,className:p,menu:m,arrow:g,autoFocus:h,overlay:v,trigger:b,align:y,open:x,onOpenChange:C,placement:w,getPopupContainer:S,href:$,icon:E=e.createElement(AS,null),title:O,buttonsRender:k=e=>e,mouseEnterDelay:I,mouseLeaveDelay:j,overlayClassName:P,overlayStyle:M,destroyOnHidden:N,destroyPopupOnHide:R,dropdownRender:z,popupRender:T}=t,F=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(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n}(t,["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","destroyOnHidden","destroyPopupOnHide","dropdownRender","popupRender"]),B=r("dropdown",i),H=`${B}-button`,_={menu:m,arrow:g,autoFocus:h,align:y,disabled:s,trigger:s?[]:b,onOpenChange:C,getPopupContainer:S||n,mouseEnterDelay:I,mouseLeaveDelay:j,overlayClassName:P,overlayStyle:M,destroyOnHidden:N,popupRender:T||z},{compactSize:L,compactItemClassnames:D}=Ts(B,o),V=A()(H,D,p);"destroyPopupOnHide"in t&&(_.destroyPopupOnHide=R),"overlay"in t&&(_.overlay=v),"open"in t&&(_.open=x),_.placement="placement"in t?w:"rtl"===o?"bottomLeft":"bottomRight";const W=e.createElement(Ad,{type:a,danger:l,disabled:s,loading:c,onClick:u,htmlType:d,href:$,title:O},f),q=e.createElement(Ad,{type:a,danger:l,icon:E}),[G,X]=k([W,q]);return e.createElement(oE.Compact,Object.assign({className:V,size:L,block:!0},F),G,e.createElement(V$,Object.assign({},_),X))};iE.__ANT_BUTTON=!0;const aE=iE,lE=V$;lE.Button=aE;const sE=lE;var cE=t().forwardRef(function(e,n){var r=e.prefixCls,o=e.forceRender,i=e.className,a=e.style,l=e.children,s=e.isActive,c=e.role,u=e.classNames,d=e.styles,f=X(t().useState(s||o),2),p=f[0],m=f[1];return t().useEffect(function(){(o||s)&&m(!0)},[o,s]),p?t().createElement("div",{ref:n,className:A()("".concat(r,"-content"),H(H({},"".concat(r,"-content-active"),s),"".concat(r,"-content-inactive"),!s),i),style:a,role:c},t().createElement("div",{className:A()("".concat(r,"-content-box"),null==u?void 0:u.body),style:null==d?void 0:d.body},l)):null});cE.displayName="PanelContent";const uE=cE;var dE=["showArrow","headerClass","isActive","onItemClick","forceRender","className","classNames","styles","prefixCls","collapsible","accordion","panelKey","extra","header","expandIcon","openMotion","destroyInactivePanel","children"],fE=t().forwardRef(function(e,n){var r=e.showArrow,o=void 0===r||r,i=e.headerClass,a=e.isActive,l=e.onItemClick,s=e.forceRender,c=e.className,u=e.classNames,d=void 0===u?{}:u,f=e.styles,p=void 0===f?{}:f,m=e.prefixCls,g=e.collapsible,h=e.accordion,v=e.panelKey,b=e.extra,y=e.header,x=e.expandIcon,C=e.openMotion,w=e.destroyInactivePanel,S=e.children,$=D(e,dE),E="disabled"===g,O=null!=b&&"boolean"!=typeof b,k=H(H(H({onClick:function(){null==l||l(v)},onKeyDown:function(e){"Enter"!==e.key&&e.keyCode!==kp.ENTER&&e.which!==kp.ENTER||null==l||l(v)},role:h?"tab":"button"},"aria-expanded",a),"aria-disabled",E),"tabIndex",E?-1:0),I="function"==typeof x?x(e):t().createElement("i",{className:"arrow"}),j=I&&t().createElement("div",T({className:"".concat(m,"-expand-icon")},["header","icon"].includes(g)?k:{}),I),P=A()("".concat(m,"-item"),H(H({},"".concat(m,"-item-active"),a),"".concat(m,"-item-disabled"),E),c),M=L({className:A()(i,"".concat(m,"-header"),H({},"".concat(m,"-collapsible-").concat(g),!!g),d.header),style:p.header},["header","icon"].includes(g)?{}:k);return t().createElement("div",T({},$,{ref:n,className:P}),t().createElement("div",M,o&&j,t().createElement("span",T({className:"".concat(m,"-header-text")},"header"===g?k:{}),y),O&&t().createElement("div",{className:"".concat(m,"-extra")},b)),t().createElement(Qn,T({visible:a,leavedClassName:"".concat(m,"-content-hidden")},C,{forceRender:s,removeOnLeave:w}),function(e,n){var r=e.className,o=e.style;return t().createElement(uE,{ref:n,prefixCls:m,className:r,classNames:d,style:o,styles:p,isActive:a,forceRender:s,role:h?"tabpanel":void 0},S)}))});const pE=fE;var mE=["children","label","key","collapsible","onItemClick","destroyInactivePanel"];function gE(e){var t=e;if(!Array.isArray(t)){var n=F(t);t="number"===n||"string"===n?[t]:[]}return t.map(function(e){return String(e)})}var hE=t().forwardRef(function(e,n){var r=e.prefixCls,o=void 0===r?"rc-collapse":r,i=e.destroyInactivePanel,a=void 0!==i&&i,l=e.style,s=e.accordion,c=e.className,u=e.children,d=e.collapsible,f=e.openMotion,p=e.expandIcon,m=e.activeKey,g=e.defaultActiveKey,h=e.onChange,v=e.items,b=A()(o,c),y=Gt([],{value:m,onChange:function(e){return null==h?void 0:h(e)},defaultValue:g,postState:gE}),x=X(y,2),C=x[0],w=x[1];re(!u,"[rc-collapse] `children` will be removed in next major version. Please use `items` instead.");var S=function(e,n,r){return Array.isArray(e)?function(e,n){var r=n.prefixCls,o=n.accordion,i=n.collapsible,a=n.destroyInactivePanel,l=n.onItemClick,s=n.activeKey,c=n.openMotion,u=n.expandIcon;return e.map(function(e,n){var d,f=e.children,p=e.label,m=e.key,g=e.collapsible,h=e.onItemClick,v=e.destroyInactivePanel,b=D(e,mE),y=String(null!=m?m:n),x=null!=g?g:i,C=null!=v?v:a;return d=o?s[0]===y:s.indexOf(y)>-1,t().createElement(pE,T({},b,{prefixCls:r,key:y,panelKey:y,isActive:d,accordion:o,openMotion:c,expandIcon:u,header:p,collapsible:x,onItemClick:function(e){"disabled"!==x&&(l(e),null==h||h(e))},destroyInactivePanel:C}),f)})}(e,r):De(n).map(function(e,n){return function(e,n,r){if(!e)return null;var o,i=r.prefixCls,a=r.accordion,l=r.collapsible,s=r.destroyInactivePanel,c=r.onItemClick,u=r.activeKey,d=r.openMotion,f=r.expandIcon,p=e.key||String(n),m=e.props,g=m.header,h=m.headerClass,v=m.destroyInactivePanel,b=m.collapsible,y=m.onItemClick;o=a?u[0]===p:u.indexOf(p)>-1;var x=null!=b?b:l,C={key:p,panelKey:p,header:g,headerClass:h,isActive:o,prefixCls:i,destroyInactivePanel:null!=v?v:s,openMotion:d,accordion:a,children:e.props.children,onItemClick:function(e){"disabled"!==x&&(c(e),null==y||y(e))},expandIcon:f,collapsible:x};return"string"==typeof e.type?e:(Object.keys(C).forEach(function(e){void 0===C[e]&&delete C[e]}),t().cloneElement(e,C))}(e,n,r)})}(v,u,{prefixCls:o,accordion:s,openMotion:f,expandIcon:p,collapsible:d,destroyInactivePanel:a,onItemClick:function(e){return w(function(){return s?C[0]===e?[]:[e]:C.indexOf(e)>-1?C.filter(function(t){return t!==e}):[].concat(ye(C),[e])})},activeKey:C});return t().createElement("div",T({ref:n,className:b,style:l,role:s?"tablist":void 0},Tf(e,{aria:!0,data:!0})),S)});const vE=Object.assign(hE,{Panel:pE}),bE=vE;vE.Panel;const yE=e.forwardRef((t,n)=>{const{getPrefixCls:r}=e.useContext(hi),{prefixCls:o,className:i,showArrow:a=!0}=t,l=r("collapse",o),s=A()({[`${l}-no-arrow`]:!a},i);return e.createElement(bE.Panel,Object.assign({ref:n},t,{prefixCls:l,className:s}))}),xE=e=>{const{componentCls:t,contentBg:n,padding:r,headerBg:o,headerPadding:i,collapseHeaderPaddingSM:a,collapseHeaderPaddingLG:l,collapsePanelBorderRadius:s,lineWidth:c,lineType:u,colorBorder:d,colorText:f,colorTextHeading:p,colorTextDisabled:m,fontSizeLG:g,lineHeight:h,lineHeightLG:v,marginSM:b,paddingSM:y,paddingLG:x,paddingXS:C,motionDurationSlow:w,fontSizeIcon:S,contentPadding:$,fontHeight:E,fontHeightLG:O}=e,k=`${Wi(c)} ${u} ${d}`;return{[t]:Object.assign(Object.assign({},Cl(e)),{backgroundColor:o,border:k,borderRadius:s,"&-rtl":{direction:"rtl"},[`& > ${t}-item`]:{borderBottom:k,"&:first-child":{[`\n &,\n & > ${t}-header`]:{borderRadius:`${Wi(s)} ${Wi(s)} 0 0`}},"&:last-child":{[`\n &,\n & > ${t}-header`]:{borderRadius:`0 0 ${Wi(s)} ${Wi(s)}`}},[`> ${t}-header`]:Object.assign(Object.assign({position:"relative",display:"flex",flexWrap:"nowrap",alignItems:"flex-start",padding:i,color:p,lineHeight:h,cursor:"pointer",transition:`all ${w}, visibility 0s`},Sl(e)),{[`> ${t}-header-text`]:{flex:"auto"},[`${t}-expand-icon`]:{height:E,display:"flex",alignItems:"center",paddingInlineEnd:b},[`${t}-arrow`]:Object.assign(Object.assign({},{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"}}),{fontSize:S,transition:`transform ${w}`,svg:{transition:`transform ${w}`}}),[`${t}-header-text`]:{marginInlineEnd:"auto"}}),[`${t}-collapsible-header`]:{cursor:"default",[`${t}-header-text`]:{flex:"none",cursor:"pointer"},[`${t}-expand-icon`]:{cursor:"pointer"}},[`${t}-collapsible-icon`]:{cursor:"unset",[`${t}-expand-icon`]:{cursor:"pointer"}}},[`${t}-content`]:{color:f,backgroundColor:n,borderTop:k,[`& > ${t}-content-box`]:{padding:$},"&-hidden":{display:"none"}},"&-small":{[`> ${t}-item`]:{[`> ${t}-header`]:{padding:a,paddingInlineStart:C,[`> ${t}-expand-icon`]:{marginInlineStart:e.calc(y).sub(C).equal()}},[`> ${t}-content > ${t}-content-box`]:{padding:y}}},"&-large":{[`> ${t}-item`]:{fontSize:g,lineHeight:v,[`> ${t}-header`]:{padding:l,paddingInlineStart:r,[`> ${t}-expand-icon`]:{height:O,marginInlineStart:e.calc(x).sub(r).equal()}},[`> ${t}-content > ${t}-content-box`]:{padding:x}}},[`${t}-item:last-child`]:{borderBottom:0,[`> ${t}-content`]:{borderRadius:`0 0 ${Wi(s)} ${Wi(s)}`}},[`& ${t}-item-disabled > ${t}-header`]:{"\n &,\n & > .arrow\n ":{color:m,cursor:"not-allowed"}},[`&${t}-icon-position-end`]:{[`& > ${t}-item`]:{[`> ${t}-header`]:{[`${t}-expand-icon`]:{order:1,paddingInlineEnd:0,paddingInlineStart:b}}}}})}},CE=e=>{const{componentCls:t}=e,n=`> ${t}-item > ${t}-header ${t}-arrow`;return{[`${t}-rtl`]:{[n]:{transform:"rotate(180deg)"}}}},wE=e=>{const{componentCls:t,headerBg:n,borderlessContentPadding:r,borderlessContentBg:o,colorBorder:i}=e;return{[`${t}-borderless`]:{backgroundColor:n,border:0,[`> ${t}-item`]:{borderBottom:`1px solid ${i}`},[`\n > ${t}-item:last-child,\n > ${t}-item:last-child ${t}-header\n `]:{borderRadius:0},[`> ${t}-item:last-child`]:{borderBottom:0},[`> ${t}-item > ${t}-content`]:{backgroundColor:o,borderTop:0},[`> ${t}-item > ${t}-content > ${t}-content-box`]:{padding:r}}}},SE=e=>{const{componentCls:t,paddingSM:n}=e;return{[`${t}-ghost`]:{backgroundColor:"transparent",border:0,[`> ${t}-item`]:{borderBottom:0,[`> ${t}-content`]:{backgroundColor:"transparent",border:0,[`> ${t}-content-box`]:{paddingBlock:n}}}}}},$E=js("Collapse",e=>{const t=pl(e,{collapseHeaderPaddingSM:`${Wi(e.paddingXS)} ${Wi(e.paddingSM)}`,collapseHeaderPaddingLG:`${Wi(e.padding)} ${Wi(e.paddingLG)}`,collapsePanelBorderRadius:e.borderRadiusLG});return[xE(t),wE(t),SE(t),CE(t),LS(t)]},e=>({headerPadding:`${e.paddingSM}px ${e.padding}px`,headerBg:e.colorFillAlter,contentPadding:`${e.padding}px 16px`,contentBg:e.colorBgContainer,borderlessContentPadding:`${e.paddingXXS}px 16px ${e.padding}px`,borderlessContentBg:"transparent"})),EE=e.forwardRef((t,n)=>{const{getPrefixCls:r,direction:o,expandIcon:i,className:a,style:l}=yi("collapse"),{prefixCls:s,className:c,rootClassName:u,style:d,bordered:f=!0,ghost:p,size:m,expandIconPosition:g="start",children:h,destroyInactivePanel:v,destroyOnHidden:b,expandIcon:y}=t,x=Si(e=>{var t;return null!==(t=null!=m?m:e)&&void 0!==t?t:"middle"}),C=r("collapse",s),w=r(),[S,$,E]=$E(C),O=e.useMemo(()=>"left"===g?"start":"right"===g?"end":g,[g]),k=null!=y?y:i,I=e.useCallback((t={})=>{const n="function"==typeof k?k(t):e.createElement(I$,{rotate:t.isActive?"rtl"===o?-90:90:void 0,"aria-label":t.isActive?"expanded":"collapsed"});return sc(n,()=>{var e;return{className:A()(null===(e=n.props)||void 0===e?void 0:e.className,`${C}-arrow`)}})},[k,C,o]),j=A()(`${C}-icon-position-${O}`,{[`${C}-borderless`]:!f,[`${C}-rtl`]:"rtl"===o,[`${C}-ghost`]:!!p,[`${C}-${x}`]:"middle"!==x},a,c,u,$,E),P=e.useMemo(()=>Object.assign(Object.assign({},Ys(w)),{motionAppear:!1,leavedClassName:`${C}-content-hidden`}),[w,C]),M=e.useMemo(()=>h?De(h).map((e,t)=>{var n,r;const o=e.props;if(null==o?void 0:o.disabled){const i=null!==(n=e.key)&&void 0!==n?n:String(t);return sc(e,Object.assign(Object.assign({},ii(e.props,["disabled"])),{key:i,collapsible:null!==(r=o.collapsible)&&void 0!==r?r:"disabled"}))}return e}):null,[h]);return S(e.createElement(bE,Object.assign({ref:n,openMotion:P},ii(t,["rootClassName"]),{expandIcon:I,prefixCls:C,className:j,style:Object.assign(Object.assign({},l),d),destroyInactivePanel:null!=b?b:v}),M))}),OE=Object.assign(EE,{Panel:yE}),kE={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"};function IE(){return IE=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},IE.apply(this,arguments)}const jE=(t,n)=>e.createElement(hb,IE({},t,{ref:n,icon:kE})),PE=e.forwardRef(jE),ME={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 64zm0 76c-205.4 0-372 166.6-372 372s166.6 372 372 372 372-166.6 372-372-166.6-372-372-372zm128.01 198.83c.03 0 .05.01.09.06l45.02 45.01a.2.2 0 01.05.09.12.12 0 010 .07c0 .02-.01.04-.05.08L557.25 512l127.87 127.86a.27.27 0 01.05.06v.02a.12.12 0 010 .07c0 .03-.01.05-.05.09l-45.02 45.02a.2.2 0 01-.09.05.12.12 0 01-.07 0c-.02 0-.04-.01-.08-.05L512 557.25 384.14 685.12c-.04.04-.06.05-.08.05a.12.12 0 01-.07 0c-.03 0-.05-.01-.09-.05l-45.02-45.02a.2.2 0 01-.05-.09.12.12 0 010-.07c0-.02.01-.04.06-.08L466.75 512 338.88 384.14a.27.27 0 01-.05-.06l-.01-.02a.12.12 0 010-.07c0-.03.01-.05.05-.09l45.02-45.02a.2.2 0 01.09-.05.12.12 0 01.07 0c.02 0 .04.01.08.06L512 466.75l127.86-127.86c.04-.05.06-.06.08-.06a.12.12 0 01.07 0z"}}]},name:"close-circle",theme:"outlined"};function NE(){return NE=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},NE.apply(this,arguments)}const RE=(t,n)=>e.createElement(hb,NE({},t,{ref:n,icon:ME})),AE=e.forwardRef(RE),zE={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M456 231a56 56 0 10112 0 56 56 0 10-112 0zm0 280a56 56 0 10112 0 56 56 0 10-112 0zm0 280a56 56 0 10112 0 56 56 0 10-112 0z"}}]},name:"more",theme:"outlined"};function TE(){return TE=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},TE.apply(this,arguments)}const FE=(t,n)=>e.createElement(hb,TE({},t,{ref:n,icon:zE})),BE=e.forwardRef(FE),{hooks:HE}=wpGraphiQL,{useEffect:_E}=wp.element,LE=hC.div`
.ant-collapse {
margin-bottom: 10px;
}
.ant-collapse-content {
padding-left: 15px;
padding-top: 0px;
max-height: 450px;
overflow-y: scroll;
}
.ant-collapse-content-box {
padding: 0;
}
`,DE=t=>{var n,r;let o;const{index:i}=t,a=(e,n)=>{let r,i=t.definition;if(0===i.selectionSet.selections.length&&o&&(i=o),"FragmentDefinition"===i.kind)r={...i,selectionSet:{...i.selectionSet,selections:e}};else if("OperationDefinition"===i.kind){let t=e.filter(e=>!("Field"===e.kind&&"__typename"===e.name.value));0===t.length&&(t=[{kind:"Field",name:{kind:"Name",value:"__typename ## Placeholder value"}}]),r={...i,selectionSet:{...i.selectionSet,selections:t}}}return o=r,t.onEdit(r,n)};_E(()=>{pw.config({top:50,placement:"topRight",getContainer:()=>window.document.getElementsByClassName("doc-explorer-app")[0]})});const{operationType:l,definition:s,schema:c,getDefaultFieldNames:u,styleConfig:d}=t,f=(()=>{const{operationType:e,name:n}=t;return`${e}-${n||"unknown"}`})(),p=t.fields||{},m=s.selectionSet.selections,g=t.name||`${E(l)} Name`,h={clone:(0,e.createElement)(i$.Item,{key:"clone"},(0,e.createElement)(Ad,{type:"link",style:{marginRight:5},onClick:e=>{e.preventDefault(),e.stopPropagation(),t.onOperationClone(),pw.success({message:`${E(l)} "${g}" was cloned`})},icon:(0,e.createElement)(PE,null)},`Clone ${E(l)}`)),destroy:(0,e.createElement)(i$.Item,{key:"destroy"},(0,e.createElement)(w$,{zIndex:1e4,getPopupContainer:()=>window.document.getElementsByClassName("doc-explorer-app")[0],title:`Are you sure you want to delete ${E(l)} "${g}"`,onCancel:e=>{e.preventDefault(),e.stopPropagation()},onConfirm:e=>{e.preventDefault(),e.stopPropagation(),t.onOperationDestroy(),pw.success({message:`${E(l)} "${g}" was deleted`})}},(0,e.createElement)(Ad,{type:"link",onClick:e=>{e.preventDefault(),e.stopPropagation()},icon:(0,e.createElement)(AE,null)},`Delete ${E(l)}`)))},v=HE.applyFilters("graphiql_explorer_operation_action_menu_items",h,{Menu:i$,props:t});if(Object.keys(v).length<1)return null;const b=v&&Object.keys(v).length?Object.keys(v).map(e=>{var t;return null!==(t=v[e])&&void 0!==t?t:null}):null,y=(0,e.createElement)(i$,null,b),x=(0,e.createElement)(sE,{overlay:y,arrow:!0,getPopupContainer:()=>window.document.getElementsByClassName("doc-explorer-app")[0]},(0,e.createElement)(Ad,{type:"text",onClick:e=>e.stopPropagation()},(0,e.createElement)(BE,null)));return(0,e.createElement)(LE,{id:`collapse-wrap-${i}`},(0,e.createElement)("span",{id:`collapse-wrap-${f}`}),(0,e.createElement)(OE,{key:`collapse-${i}`,id:`collapse-${i}`,tabIndex:"0",defaultActiveKey:0},(0,e.createElement)(OE.Panel,{key:0,header:(0,e.createElement)("span",{style:{textOverflow:"ellipsis",display:"inline-block",maxWidth:"100%",whiteSpace:"nowrap",overflow:"hidden",verticalAlign:"middle",fontSize:"smaller",color:d.colors.keyword,paddingBottom:0},className:"graphiql-operation-title-bar"},l," ",(0,e.createElement)("span",{style:{color:d.colors.def}},(0,e.createElement)(mp,{id:`operationName-${i}`,name:"operation-name","data-lpignore":"true",defaultValue:null!==(n=t.name)&&void 0!==n?n:"",placeholder:null!==(r=t.name)&&void 0!==r?r:"name",onChange:e=>{var n;t.name!==e.target.value&&(n=e,t.onOperationRename(n.target.value))},value:t.name,onClick:e=>{e.stopPropagation(),e.preventDefault()},style:{color:d.colors.def,width:`${Math.max(15,g.length)}ch`,fontSize:"smaller"}}))),extra:x},(0,e.createElement)("div",{style:{padding:"10px 0 0 0"}},Object.keys(p).sort().map(n=>(0,e.createElement)(Nb,{key:n,field:p[n],selections:m,modifySelections:a,schema:c,getDefaultFieldNames:u,getDefaultScalarArgValue:t.getDefaultScalarArgValue,makeDefaultArg:t.makeDefaultArg,onRunOperation:t.onRunOperation,styleConfig:t.styleConfig,onCommit:t.onCommit,definition:t.definition,availableFragments:t.availableFragments}))))))};function VE(t){const[n,r]=e.useState(t);return e.useEffect(()=>{const e=setTimeout(()=>{r(t)},t.length?0:10);return()=>{clearTimeout(e)}},[t]),n}const WE=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},\n opacity ${e.motionDurationFast} ${e.motionEaseInOut},\n 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)"}}}}},qE=e=>({legend:{display:"block",width:"100%",marginBottom:e.marginLG,padding:0,color:e.colorTextDescription,fontSize:e.fontSizeLG,lineHeight:"inherit",border:0,borderBottom:`${Wi(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 ${Wi(e.controlOutlineWidth)} ${e.controlOutline}`},output:{display:"block",paddingTop:15,color:e.colorText,fontSize:e.fontSize,lineHeight:e.lineHeight}}),GE=(e,t)=>{const{formItemCls:n}=e;return{[n]:{[`${n}-label > label`]:{height:t},[`${n}-control-input`]:{minHeight:t}}}},XE=e=>{const{componentCls:t}=e;return{[e.componentCls]:Object.assign(Object.assign(Object.assign({},Cl(e)),qE(e)),{[`${t}-text`]:{display:"inline-block",paddingInlineEnd:e.paddingSM},"&-small":Object.assign({},GE(e,e.controlHeightSM)),"&-large":Object.assign({},GE(e,e.controlHeightLG))})}},KE=e=>{const{formItemCls:t,iconCls:n,rootPrefixCls:r,antCls:o,labelRequiredMarkColor:i,labelColor:a,labelFontSize:l,labelHeight:s,labelColonMarginInlineStart:c,labelColonMarginInlineEnd:u,itemMarginBottom:d}=e;return{[t]:Object.assign(Object.assign({},Cl(e)),{marginBottom:d,verticalAlign:"top","&-with-help":{transition:"none"},[`&-hidden,\n &-hidden${o}-row`]:{display:"none"},"&-has-warning":{[`${t}-split`]:{color:e.colorError}},"&-has-error":{[`${t}-split`]:{color:e.colorWarning}},[`${t}-label`]:{flexGrow:0,overflow:"hidden",whiteSpace:"nowrap",textAlign:"end",verticalAlign:"middle","&-left":{textAlign:"start"},"&-wrap":{overflow:"unset",lineHeight:e.lineHeight,whiteSpace:"unset","> label":{verticalAlign:"middle",textWrap:"balance"}},"> label":{position:"relative",display:"inline-flex",alignItems:"center",maxWidth:"100%",height:s,color:a,fontSize:l,[`> ${n}`]:{fontSize:e.fontSize,verticalAlign:"top"},[`&${t}-required`]:{"&::before":{display:"inline-block",marginInlineEnd:e.marginXXS,color:i,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:c,marginInlineEnd:u},[`&${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%",[`&:has(> ${o}-switch:only-child, > ${o}-rate:only-child)`]:{display:"flex",alignItems:"center"}}}},[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:gc,animationDuration:e.motionDurationMid,animationTimingFunction:e.motionEaseOutBack,pointerEvents:"none","&-success":{color:e.colorSuccess},"&-error":{color:e.colorError},"&-warning":{color:e.colorWarning},"&-validating":{color:e.colorPrimary}}})}},UE=e=>({padding:e.verticalLabelPadding,margin:e.verticalLabelMargin,whiteSpace:"initial",textAlign:"start","> label":{margin:0,"&::after":{visibility:"hidden"}}}),YE=e=>{const{antCls:t,formItemCls:n}=e;return{[`${n}-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"}},[`${t}-col-24${n}-label,\n ${t}-col-xl-24${n}-label`]:UE(e)}}},QE=e=>{const{componentCls:t,formItemCls:n,inlineItemMarginBottom:r}=e;return{[`${t}-inline`]:{display:"flex",flexWrap:"wrap",[`${n}-inline`]:{flex:"none",marginInlineEnd:e.margin,marginBottom:r,"&-row":{flexWrap:"nowrap"},[`> ${n}-label,\n > ${n}-control`]:{display:"inline-block",verticalAlign:"top"},[`> ${n}-label`]:{flex:"none"},[`${t}-text`]:{display:"inline-block"},[`${n}-has-feedback`]:{display:"inline-block"}}}}},ZE=e=>{const{componentCls:t,formItemCls:n,rootPrefixCls:r}=e;return{[`${n} ${n}-label`]:UE(e),[`${t}:not(${t}-inline)`]:{[n]:{flexWrap:"wrap",[`${n}-label, ${n}-control`]:{[`&:not([class*=" ${r}-col-xs"])`]:{flex:"0 0 100%",maxWidth:"100%"}}}}}},JE=e=>{const{componentCls:t,formItemCls:n,antCls:r}=e;return{[`${n}-vertical`]:{[`${n}-row`]:{flexDirection:"column"},[`${n}-label > label`]:{height:"auto"},[`${n}-control`]:{width:"100%"},[`${n}-label,\n ${r}-col-24${n}-label,\n ${r}-col-xl-24${n}-label`]:UE(e)},[`@media (max-width: ${Wi(e.screenXSMax)})`]:[ZE(e),{[t]:{[`${n}:not(${n}-horizontal)`]:{[`${r}-col-xs-24${n}-label`]:UE(e)}}}],[`@media (max-width: ${Wi(e.screenSMMax)})`]:{[t]:{[`${n}:not(${n}-horizontal)`]:{[`${r}-col-sm-24${n}-label`]:UE(e)}}},[`@media (max-width: ${Wi(e.screenMDMax)})`]:{[t]:{[`${n}:not(${n}-horizontal)`]:{[`${r}-col-md-24${n}-label`]:UE(e)}}},[`@media (max-width: ${Wi(e.screenLGMax)})`]:{[t]:{[`${n}:not(${n}-horizontal)`]:{[`${r}-col-lg-24${n}-label`]:UE(e)}}}}},eO=(e,t)=>pl(e,{formItemCls:`${e.componentCls}-item`,rootPrefixCls:t}),tO=js("Form",(e,{rootPrefixCls:t})=>{const n=eO(e,t);return[XE(n),KE(n),WE(n),YE(n),QE(n),JE(n),LS(n),gc]},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}),{order:-1e3}),nO=[];function rO(e,t,n,r=0){return{key:"string"==typeof e?e:`${t}-${r}`,error:e,errorStatus:n}}const oO=({help:t,helpStatus:n,errors:r=nO,warnings:o=nO,className:i,fieldId:a,onVisibleChanged:l})=>{const{prefixCls:s}=e.useContext(ci),c=`${s}-item-explain`,u=jf(s),[d,f,p]=tO(s,u),m=e.useMemo(()=>Ys(s),[s]),g=VE(r),h=VE(o),v=e.useMemo(()=>null!=t?[rO(t,"help",n)]:[].concat(ye(g.map((e,t)=>rO(e,"error","error",t))),ye(h.map((e,t)=>rO(e,"warning","warning",t)))),[t,n,g,h]),b=e.useMemo(()=>{const e={};return v.forEach(({key:t})=>{e[t]=(e[t]||0)+1}),v.map((t,n)=>Object.assign(Object.assign({},t),{key:e[t.key]>1?`${t.key}-fallback-${n}`:t.key}))},[v]),y={};return a&&(y.id=`${a}_help`),d(e.createElement(Qn,{motionDeadline:m.motionDeadline,motionName:`${s}-show-help`,visible:!!b.length,onVisibleChanged:l},t=>{const{className:n,style:r}=t;return e.createElement("div",Object.assign({},y,{className:A()(c,n,p,u,i,f),style:r}),e.createElement(Yn,Object.assign({keys:b},Ys(s),{motionName:`${s}-show-help-item`,component:!1}),t=>{const{key:n,error:r,errorStatus:o,className:i,style:a}=t;return e.createElement("div",{key:n,className:A()(i,{[`${c}-${o}`]:o}),style:a},r)}))}))},iO=e=>"object"==typeof e&&null!=e&&1===e.nodeType,aO=(e,t)=>(!t||"hidden"!==e)&&"visible"!==e&&"clip"!==e,lO=(e,t)=>{if(e.clientHeight<e.scrollHeight||e.clientWidth<e.scrollWidth){const n=getComputedStyle(e,null);return aO(n.overflowY,t)||aO(n.overflowX,t)||(e=>{const t=(e=>{if(!e.ownerDocument||!e.ownerDocument.defaultView)return null;try{return e.ownerDocument.defaultView.frameElement}catch(e){return null}})(e);return!!t&&(t.clientHeight<e.scrollHeight||t.clientWidth<e.scrollWidth)})(e)}return!1},sO=(e,t,n,r,o,i,a,l)=>i<e&&a>t||i>e&&a<t?0:i<=e&&l<=n||a>=t&&l>=n?i-e-r:a>t&&l<n||i<e&&l>n?a-t+o:0,cO=e=>{const t=e.parentElement;return null==t?e.getRootNode().host||null:t},uO=(e,t)=>{var n,r,o,i;if("undefined"==typeof document)return[];const{scrollMode:a,block:l,inline:s,boundary:c,skipOverflowHiddenElements:u}=t,d="function"==typeof c?c:e=>e!==c;if(!iO(e))throw new TypeError("Invalid target");const f=document.scrollingElement||document.documentElement,p=[];let m=e;for(;iO(m)&&d(m);){if(m=cO(m),m===f){p.push(m);break}null!=m&&m===document.body&&lO(m)&&!lO(document.documentElement)||null!=m&&lO(m,u)&&p.push(m)}const g=null!=(r=null==(n=window.visualViewport)?void 0:n.width)?r:innerWidth,h=null!=(i=null==(o=window.visualViewport)?void 0:o.height)?i:innerHeight,{scrollX:v,scrollY:b}=window,{height:y,width:x,top:C,right:w,bottom:S,left:$}=e.getBoundingClientRect(),{top:E,right:O,bottom:k,left:I}=(e=>{const t=window.getComputedStyle(e);return{top:parseFloat(t.scrollMarginTop)||0,right:parseFloat(t.scrollMarginRight)||0,bottom:parseFloat(t.scrollMarginBottom)||0,left:parseFloat(t.scrollMarginLeft)||0}})(e);let j="start"===l||"nearest"===l?C-E:"end"===l?S+k:C+y/2-E+k,P="center"===s?$+x/2-I+O:"end"===s?w+O:$-I;const M=[];for(let e=0;e<p.length;e++){const t=p[e],{height:n,width:r,top:o,right:i,bottom:c,left:u}=t.getBoundingClientRect();if("if-needed"===a&&C>=0&&$>=0&&S<=h&&w<=g&&(t===f&&!lO(t)||C>=o&&S<=c&&$>=u&&w<=i))return M;const d=getComputedStyle(t),m=parseInt(d.borderLeftWidth,10),E=parseInt(d.borderTopWidth,10),O=parseInt(d.borderRightWidth,10),k=parseInt(d.borderBottomWidth,10);let I=0,N=0;const R="offsetWidth"in t?t.offsetWidth-t.clientWidth-m-O:0,A="offsetHeight"in t?t.offsetHeight-t.clientHeight-E-k:0,z="offsetWidth"in t?0===t.offsetWidth?0:r/t.offsetWidth:0,T="offsetHeight"in t?0===t.offsetHeight?0:n/t.offsetHeight:0;if(f===t)I="start"===l?j:"end"===l?j-h:"nearest"===l?sO(b,b+h,h,E,k,b+j,b+j+y,y):j-h/2,N="start"===s?P:"center"===s?P-g/2:"end"===s?P-g:sO(v,v+g,g,m,O,v+P,v+P+x,x),I=Math.max(0,I+b),N=Math.max(0,N+v);else{I="start"===l?j-o-E:"end"===l?j-c+k+A:"nearest"===l?sO(o,c,n,E,k+A,j,j+y,y):j-(o+n/2)+A/2,N="start"===s?P-u-m:"center"===s?P-(u+r/2)+R/2:"end"===s?P-i+O+R:sO(u,i,r,m,O+R,P,P+x,x);const{scrollLeft:e,scrollTop:a}=t;I=0===T?0:Math.max(0,Math.min(a+I/T,t.scrollHeight-n/T+A)),N=0===z?0:Math.max(0,Math.min(e+N/z,t.scrollWidth-r/z+R)),j+=a-I,P+=e-N}M.push({el:t,top:I,left:N})}return M};const dO=["parentNode"];function fO(e){return void 0===e||!1===e?[]:Array.isArray(e)?e:[e]}function pO(e,t){if(!e.length)return;const n=e.join("_");return t?`${t}_${n}`:dO.includes(n)?`form_item_${n}`:n}function mO(e,t,n,r,o,i){let a=r;return void 0!==i?a=i:n.validating?a="validating":e.length?a="error":t.length?a="warning":(n.touched||o&&n.validated)&&(a="success"),a}function gO(e){return fO(e).join("_")}function hO(e,t){const n=We(t.getFieldInstance(e));if(n)return n;const r=pO(fO(e),t.__INTERNAL__.name);return r?document.getElementById(r):void 0}function vO(t){const[n]=Uo(),r=e.useRef({}),o=e.useMemo(()=>null!=t?t:Object.assign(Object.assign({},n),{__INTERNAL__:{itemRef:e=>t=>{const n=gO(e);t?r.current[n]=t:delete r.current[n]}},scrollToField:(e,t={})=>{const{focus:n}=t,r=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(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n}(t,["focus"]),i=hO(e,o);i&&(function(e,t){if(!e.isConnected||!(e=>{let t=e;for(;t&&t.parentNode;){if(t.parentNode===document)return!0;t=t.parentNode instanceof ShadowRoot?t.parentNode.host:t.parentNode}return!1})(e))return;const n=(e=>{const t=window.getComputedStyle(e);return{top:parseFloat(t.scrollMarginTop)||0,right:parseFloat(t.scrollMarginRight)||0,bottom:parseFloat(t.scrollMarginBottom)||0,left:parseFloat(t.scrollMarginLeft)||0}})(e);if("object"==typeof(r=t)&&"function"==typeof r.behavior)return t.behavior(uO(e,t));var r;const o="boolean"==typeof t||null==t?void 0:t.behavior;for(const{el:r,top:i,left:a}of uO(e,(e=>!1===e?{block:"end",inline:"nearest"}:(e=>e===Object(e)&&0!==Object.keys(e).length)(e)?e:{block:"start",inline:"nearest"})(t))){const e=i-n.top+n.bottom,t=a-n.left+n.right;r.scroll({top:e,left:t,behavior:o})}}(i,Object.assign({scrollMode:"if-needed",block:"nearest"},r)),n&&o.focusField(e))},focusField:e=>{var t,n;const r=o.getFieldInstance(e);"function"==typeof(null==r?void 0:r.focus)?r.focus():null===(n=null===(t=hO(e,o))||void 0===t?void 0:t.focus)||void 0===n||n.call(t)},getFieldInstance:e=>{const t=gO(e);return r.current[t]}}),[t,n]);return[o]}const bO=(t,n)=>{const r=e.useContext(yu),{getPrefixCls:o,direction:i,requiredMark:a,colon:l,scrollToFirstError:s,className:c,style:u}=yi("form"),{prefixCls:d,className:f,rootClassName:p,size:m,disabled:g=r,form:h,colon:v,labelAlign:b,labelWrap:y,labelCol:x,wrapperCol:C,hideRequiredMark:w,layout:S="horizontal",scrollToFirstError:$,requiredMark:E,onFinishFailed:O,name:k,style:I,feedbackIcons:j,variant:P}=t,M=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(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n}(t,["prefixCls","className","rootClassName","size","disabled","form","colon","labelAlign","labelWrap","labelCol","wrapperCol","hideRequiredMark","layout","scrollToFirstError","requiredMark","onFinishFailed","name","style","feedbackIcons","variant"]),N=Si(m),R=e.useContext(lg),z=e.useMemo(()=>void 0!==E?E:!w&&(void 0===a||a),[w,E,a]),T=null!=v?v:l,F=o("form",d),B=jf(F),[H,_,L]=tO(F,B),D=A()(F,`${F}-${S}`,{[`${F}-hide-required-mark`]:!1===z,[`${F}-rtl`]:"rtl"===i,[`${F}-${N}`]:N},L,B,_,c,f,p),[V]=vO(h),{__INTERNAL__:W}=V;W.name=k;const q=e.useMemo(()=>({name:k,labelAlign:b,labelCol:x,labelWrap:y,wrapperCol:C,layout:S,colon:T,requiredMark:z,itemRef:W.itemRef,form:V,feedbackIcons:j}),[k,b,x,C,S,T,z,V,j]),G=e.useRef(null);e.useImperativeHandle(n,()=>{var e;return Object.assign(Object.assign({},V),{nativeElement:null===(e=G.current)||void 0===e?void 0:e.nativeElement})});const X=(e,t)=>{if(e){let n={block:"nearest"};"object"==typeof e&&(n=Object.assign(Object.assign({},n),e)),V.scrollToField(t,n)}};return H(e.createElement(fi.Provider,{value:P},e.createElement(bu,{disabled:g},e.createElement(wi.Provider,{value:N},e.createElement(si,{validateMessages:R},e.createElement(ai.Provider,{value:q},e.createElement(di,{status:!0},e.createElement(oi,Object.assign({id:k},M,{name:k,onFinishFailed:e=>{if(null==O||O(e),e.errorFields.length){const t=e.errorFields[0].name;if(void 0!==$)return void X($,t);void 0!==s&&X(s,t)}},form:V,ref:G,style:Object.assign(Object.assign({},u),I),className:D})))))))))},yO=e.forwardRef(bO),xO=()=>{const{status:t,errors:n=[],warnings:r=[]}=e.useContext(ui);return{status:t,errors:n,warnings:r}};xO.Context=ui;const CO=xO,wO=["xxl","xl","lg","md","sm","xs"],SO=()=>{const[,e]=Is(),n=(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)`}))((e=>{const t=e,n=[].concat(wO).reverse();return n.forEach((e,r)=>{const o=e.toUpperCase(),i=`screen${o}Min`,a=`screen${o}`;if(!(t[i]<=t[a]))throw new Error(`${i}<=${a} fails : !(${t[i]}<=${t[a]})`);if(r<n.length-1){const e=`screen${o}Max`;if(!(t[a]<=t[e]))throw new Error(`${a}<=${e} fails : !(${t[a]}<=${t[e]})`);const i=`screen${n[r+1].toUpperCase()}Min`;if(!(t[e]<=t[i]))throw new Error(`${e}<=${i} fails : !(${t[e]}<=${t[i]})`)}}),e})(e));return t().useMemo(()=>{const e=new Map;let t=-1,r={};return{responsiveMap:n,matchHandlers:{},dispatch:t=>(r=t,e.forEach(e=>e(r)),e.size>=1),subscribe(n){return e.size||this.register(),t+=1,e.set(t,n),n(r),t},unsubscribe(t){e.delete(t),e.size||this.unregister()},register(){Object.entries(n).forEach(([e,t])=>{const n=({matches:t})=>{this.dispatch(Object.assign(Object.assign({},r),{[e]:t}))},o=window.matchMedia(t);((e,t)=>{void 0!==(null==e?void 0:e.addEventListener)?e.addEventListener("change",t):void 0!==(null==e?void 0:e.addListener)&&e.addListener(t)})(o,n),this.matchHandlers[t]={mql:o,listener:n},n(o)})},unregister(){Object.values(n).forEach(e=>{const t=this.matchHandlers[e];((e,t)=>{void 0!==(null==e?void 0:e.removeEventListener)?e.removeEventListener("change",t):void 0!==(null==e?void 0:e.removeListener)&&e.removeListener(t)})(null==t?void 0:t.mql,null==t?void 0:t.listener)}),e.clear()}}},[n])},$O=(0,e.createContext)({}),EO=e=>{const{componentCls:t}=e;return{[t]:{position:"relative",maxWidth:"100%",minHeight:1}}},OO=(e,t)=>((e,t)=>{const{prefixCls:n,componentCls:r,gridColumns:o}=e,i={};for(let e=o;e>=0;e--)0===e?(i[`${r}${t}-${e}`]={display:"none"},i[`${r}-push-${e}`]={insetInlineStart:"auto"},i[`${r}-pull-${e}`]={insetInlineEnd:"auto"},i[`${r}${t}-push-${e}`]={insetInlineStart:"auto"},i[`${r}${t}-pull-${e}`]={insetInlineEnd:"auto"},i[`${r}${t}-offset-${e}`]={marginInlineStart:0},i[`${r}${t}-order-${e}`]={order:0}):(i[`${r}${t}-${e}`]=[{"--ant-display":"block",display:"block"},{display:"var(--ant-display)",flex:`0 0 ${e/o*100}%`,maxWidth:e/o*100+"%"}],i[`${r}${t}-push-${e}`]={insetInlineStart:e/o*100+"%"},i[`${r}${t}-pull-${e}`]={insetInlineEnd:e/o*100+"%"},i[`${r}${t}-offset-${e}`]={marginInlineStart:e/o*100+"%"},i[`${r}${t}-order-${e}`]={order:e});return i[`${r}${t}-flex`]={flex:`var(--${n}${t}-flex)`},i})(e,t),kO=js("Grid",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"}}}},()=>({})),IO=js("Grid",e=>{const t=pl(e,{gridColumns:24}),n=(e=>({xs:e.screenXSMin,sm:e.screenSMMin,md:e.screenMDMin,lg:e.screenLGMin,xl:e.screenXLMin,xxl:e.screenXXLMin}))(t);return delete n.xs,[EO(t),OO(t,""),OO(t,"-xs"),Object.keys(n).map(e=>((e,t,n)=>({[`@media (min-width: ${Wi(t)})`]:Object.assign({},OO(e,n))}))(t,n[e],`-${e}`)).reduce((e,t)=>Object.assign(Object.assign({},e),t),{})]},()=>({}));function jO(t,n){const[r,o]=e.useState("string"==typeof t?t:"");return e.useEffect(()=>{(()=>{if("string"==typeof t&&o(t),"object"==typeof t)for(let e=0;e<wO.length;e++){const r=wO[e];if(!n||!n[r])continue;const i=t[r];if(void 0!==i)return void o(i)}})()},[JSON.stringify(t),n]),r}const PO=e.forwardRef((n,r)=>{const{prefixCls:o,justify:i,align:a,className:l,style:s,children:c,gutter:u=0,wrap:d}=n,f=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(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n}(n,["prefixCls","justify","align","className","style","children","gutter","wrap"]),{getPrefixCls:p,direction:m}=e.useContext(hi),g=function(n=!0,r={}){const o=(0,e.useRef)(r),[,i]=t().useReducer(e=>e+1,0),a=SO();return Se(()=>{const e=a.subscribe(e=>{o.current=e,n&&i()});return()=>a.unsubscribe(e)},[]),o.current}(!0,null),h=jO(a,g),v=jO(i,g),b=p("row",o),[y,x,C]=kO(b),w=function(e,t){const n=[void 0,void 0],r=Array.isArray(e)?e:[e,void 0],o=t||{xs:!0,sm:!0,md:!0,lg:!0,xl:!0,xxl:!0};return r.forEach((e,t)=>{if("object"==typeof e&&null!==e)for(let r=0;r<wO.length;r++){const i=wO[r];if(o[i]&&void 0!==e[i]){n[t]=e[i];break}}else n[t]=e}),n}(u,g),S=A()(b,{[`${b}-no-wrap`]:!1===d,[`${b}-${v}`]:v,[`${b}-${h}`]:h,[`${b}-rtl`]:"rtl"===m},l,x,C),$={};if(null==w?void 0:w[0]){const e="number"==typeof w[0]?w[0]/-2+"px":`calc(${w[0]} / -2)`;$.marginLeft=e,$.marginRight=e}const[E,O]=w;$.rowGap=O;const k=e.useMemo(()=>({gutter:[E,O],wrap:d}),[E,O,d]);return y(e.createElement($O.Provider,{value:k},e.createElement("div",Object.assign({},f,{className:S,style:Object.assign(Object.assign({},$),s),ref:r}),c)))}),MO=PO;function NO(e){return"auto"===e?"1 1 auto":"number"==typeof e?`${e} ${e} auto`:/^\d+(\.\d+)?(px|em|rem|%)$/.test(e)?`0 0 ${e}`:e}const RO=["xs","sm","md","lg","xl","xxl"],AO=e.forwardRef((t,n)=>{const{getPrefixCls:r,direction:o}=e.useContext(hi),{gutter:i,wrap:a}=e.useContext($O),{prefixCls:l,span:s,order:c,offset:u,push:d,pull:f,className:p,children:m,flex:g,style:h}=t,v=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(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n}(t,["prefixCls","span","order","offset","push","pull","className","children","flex","style"]),b=r("col",l),[y,x,C]=IO(b),w={};let S={};RO.forEach(e=>{let n={};const r=t[e];"number"==typeof r?n.span=r:"object"==typeof r&&(n=r||{}),delete v[e],S=Object.assign(Object.assign({},S),{[`${b}-${e}-${n.span}`]:void 0!==n.span,[`${b}-${e}-order-${n.order}`]:n.order||0===n.order,[`${b}-${e}-offset-${n.offset}`]:n.offset||0===n.offset,[`${b}-${e}-push-${n.push}`]:n.push||0===n.push,[`${b}-${e}-pull-${n.pull}`]:n.pull||0===n.pull,[`${b}-rtl`]:"rtl"===o}),n.flex&&(S[`${b}-${e}-flex`]=!0,w[`--${b}-${e}-flex`]=NO(n.flex))});const $=A()(b,{[`${b}-${s}`]:void 0!==s,[`${b}-order-${c}`]:c,[`${b}-offset-${u}`]:u,[`${b}-push-${d}`]:d,[`${b}-pull-${f}`]:f},p,S,x,C),E={};if(null==i?void 0:i[0]){const e="number"==typeof i[0]?i[0]/2+"px":`calc(${i[0]} / 2)`;E.paddingLeft=e,E.paddingRight=e}return g&&(E.flex=NO(g),!1!==a||E.minWidth||(E.minWidth=0)),y(e.createElement("div",Object.assign({},v,{style:Object.assign(Object.assign(Object.assign({},E),h),w),className:$,ref:n}),m))}),zO=AO,TO=Ms(["Form","item-item"],(e,{rootPrefixCls:t})=>(e=>{const{formItemCls:t}=e;return{"@media screen and (-ms-high-contrast: active), (-ms-high-contrast: none)":{[`${t}-control`]:{display:"flex"}}}})(eO(e,t)));const FO=t=>{const{prefixCls:n,status:r,labelCol:o,wrapperCol:i,children:a,errors:l,warnings:s,_internalItemRender:c,extra:u,help:d,fieldId:f,marginBottom:p,onErrorVisibleChanged:m,label:g}=t,h=`${n}-item`,v=e.useContext(ai),b=e.useMemo(()=>{let e=Object.assign({},i||v.wrapperCol||{});return null!==g||o||i||!v.labelCol||[void 0,"xs","sm","md","lg","xl","xxl"].forEach(t=>{const n=t?[t]:[],r=Xt(v.labelCol,n),o="object"==typeof r?r:{},i=Xt(e,n);"span"in o&&!("offset"in("object"==typeof i?i:{}))&&o.span<24&&(e=Yt(e,[].concat(n,["offset"]),o.span))}),e},[i,v.wrapperCol,v.labelCol,g,o]),y=A()(`${h}-control`,b.className),x=e.useMemo(()=>{const{labelCol:e,wrapperCol:t}=v;return 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(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n}(v,["labelCol","wrapperCol"])},[v]),C=e.useRef(null),[w,S]=e.useState(0);Se(()=>{u&&C.current?S(C.current.clientHeight):S(0)},[u]);const $=e.createElement("div",{className:`${h}-control-input`},e.createElement("div",{className:`${h}-control-input-content`},a)),E=e.useMemo(()=>({prefixCls:n,status:r}),[n,r]),O=null!==p||l.length||s.length?e.createElement(ci.Provider,{value:E},e.createElement(oO,{fieldId:f,errors:l,warnings:s,help:d,helpStatus:r,className:`${h}-explain-connected`,onVisibleChanged:m})):null,k={};f&&(k.id=`${f}_extra`);const I=u?e.createElement("div",Object.assign({},k,{className:`${h}-extra`,ref:C}),u):null,j=O||I?e.createElement("div",{className:`${h}-additional`,style:p?{minHeight:p+w}:{}},O,I):null,P=c&&"pro_table_render"===c.mark&&c.render?c.render(t,{input:$,errorList:O,extra:I}):e.createElement(e.Fragment,null,$,j);return e.createElement(ai.Provider,{value:x},e.createElement(zO,Object.assign({},b,{className:y}),P),e.createElement(TO,{prefixCls:n}))},BO={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"};var HO=function(t,n){return e.createElement(_u,T({},t,{ref:n,icon:BO}))};const _O=e.forwardRef(HO);const LO=({prefixCls:t,label:n,htmlFor:r,labelCol:o,labelAlign:i,colon:a,required:l,requiredMark:s,tooltip:c,vertical:u})=>{var d;const[f]=Fg("Form"),{labelAlign:p,labelCol:m,labelWrap:g,colon:h}=e.useContext(ai);if(!n)return null;const v=o||m||{},b=i||p,y=`${t}-item-label`,x=A()(y,"left"===b&&`${y}-left`,v.className,{[`${y}-wrap`]:!!g});let C=n;const w=!0===a||!1!==h&&!1!==a;w&&!u&&"string"==typeof n&&n.trim()&&(C=n.replace(/[:|:]\s*$/,""));const S=function(t){return null==t?null:"object"!=typeof t||(0,e.isValidElement)(t)?{title:t}:t}(c);if(S){const{icon:n=e.createElement(_O,null)}=S,r=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(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n}(S,["icon"]),o=e.createElement(Uc,Object.assign({},r),e.cloneElement(n,{className:`${t}-item-tooltip`,title:"",onClick:e=>{e.preventDefault()},tabIndex:null}));C=e.createElement(e.Fragment,null,C,o)}const $="optional"===s,E="function"==typeof s,O=!1===s;let k;E?C=s(C,{required:!!l}):$&&!l&&(C=e.createElement(e.Fragment,null,C,e.createElement("span",{className:`${t}-item-optional`,title:""},(null==f?void 0:f.optional)||(null===(d=fg.Form)||void 0===d?void 0:d.optional)))),O?k="hidden":($||E)&&(k="optional");const I=A()({[`${t}-item-required`]:l,[`${t}-item-required-mark-${k}`]:k,[`${t}-item-no-colon`]:!w});return e.createElement(zO,Object.assign({},v,{className:x}),e.createElement("label",{htmlFor:r,className:I,title:"string"==typeof n?n:""},C))},DO={success:xC,warning:SC,error:Ef,validating:Du};function VO({children:t,errors:n,warnings:r,hasFeedback:o,validateStatus:i,prefixCls:a,meta:l,noStyle:s,name:c}){const u=`${a}-item`,{feedbackIcons:d}=e.useContext(ai),f=mO(n,r,l,null,!!o,i),{isFormItemInput:p,status:m,hasFeedback:g,feedbackIcon:h,name:v}=e.useContext(ui),b=e.useMemo(()=>{var t;let i;if(o){const a=!0!==o&&o.icons||d,l=f&&(null===(t=null==a?void 0:a({status:f,errors:n,warnings:r}))||void 0===t?void 0:t[f]),s=f?DO[f]:null;i=!1!==l&&s?e.createElement("span",{className:A()(`${u}-feedback-icon`,`${u}-feedback-icon-${f}`)},l||e.createElement(s,null)):null}const a={status:f||"",errors:n,warnings:r,hasFeedback:!!o,feedbackIcon:i,isFormItemInput:!0,name:c};return s&&(a.status=(null!=f?f:m)||"",a.isFormItemInput=p,a.hasFeedback=!!(null!=o?o:g),a.feedbackIcon=void 0!==o?a.feedbackIcon:h,a.name=null!=c?c:v),a},[f,o,s,p,m]);return e.createElement(ui.Provider,{value:b},t)}function WO(t){const{prefixCls:n,className:r,rootClassName:o,style:i,help:a,errors:l,warnings:s,validateStatus:c,meta:u,hasFeedback:d,hidden:f,children:p,fieldId:m,required:g,isRequired:h,onSubItemMetaChange:v,layout:b,name:y}=t,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(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n}(t,["prefixCls","className","rootClassName","style","help","errors","warnings","validateStatus","meta","hasFeedback","hidden","children","fieldId","required","isRequired","onSubItemMetaChange","layout","name"]),C=`${n}-item`,{requiredMark:w,layout:S}=e.useContext(ai),$=b||S,E="vertical"===$,O=e.useRef(null),k=VE(l),I=VE(s),j=null!=a,P=!!(j||l.length||s.length),M=!!O.current&&sr(O.current),[N,R]=e.useState(null);Se(()=>{if(P&&O.current){const e=getComputedStyle(O.current);R(Number.parseInt(e.marginBottom,10))}},[P,M]);const z=((e=!1)=>mO(e?k:u.errors,e?I:u.warnings,u,"",!!d,c))(),T=A()(C,r,o,{[`${C}-with-help`]:j||k.length||I.length,[`${C}-has-feedback`]:z&&d,[`${C}-has-success`]:"success"===z,[`${C}-has-warning`]:"warning"===z,[`${C}-has-error`]:"error"===z,[`${C}-is-validating`]:"validating"===z,[`${C}-hidden`]:f,[`${C}-${$}`]:$});return e.createElement("div",{className:T,style:i,ref:O},e.createElement(MO,Object.assign({className:`${C}-row`},ii(x,["_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"])),e.createElement(LO,Object.assign({htmlFor:m},t,{requiredMark:w,required:null!=g?g:h,prefixCls:n,vertical:E})),e.createElement(FO,Object.assign({},t,u,{errors:k,warnings:I,prefixCls:n,status:z,help:a,marginBottom:N,onErrorVisibleChanged:e=>{e||R(null)}}),e.createElement(li.Provider,{value:v},e.createElement(VO,{prefixCls:n,meta:u,errors:u.errors,warnings:u.warnings,hasFeedback:d,validateStatus:z,name:y},p)))),!!N&&e.createElement("div",{className:`${C}-margin-offset`,style:{marginBottom:-N}}))}const qO=e.memo(({children:e})=>e,(e,t)=>function(e,t){const n=Object.keys(e),r=Object.keys(t);return n.length===r.length&&n.every(n=>{const r=e[n],o=t[n];return r===o||"function"==typeof r||"function"==typeof o})}(e.control,t.control)&&e.update===t.update&&e.childProps.length===t.childProps.length&&e.childProps.every((e,n)=>e===t.childProps[n])),GO=function(t){const{name:n,noStyle:r,className:o,dependencies:i,prefixCls:a,shouldUpdate:l,rules:s,children:c,required:u,label:d,messageVariables:f,trigger:p="onChange",validateTrigger:m,hidden:g,help:h,layout:v}=t,{getPrefixCls:b}=e.useContext(hi),{name:y}=e.useContext(ai),x=function(e){if("function"==typeof e)return e;const t=De(e);return t.length<=1?t[0]:t}(c),C="function"==typeof x,w=e.useContext(li),{validateTrigger:S}=e.useContext(Wr),$=void 0!==m?m:S,E=!(null==n),O=b("form",a),k=jf(O),[I,j,P]=tO(O,k);dc();const M=e.useContext(qr),N=e.useRef(null),[R,z]=function(){const[t,n]=e.useState({}),r=e.useRef(null),o=e.useRef([]),i=e.useRef(!1);return e.useEffect(()=>(i.current=!1,()=>{i.current=!0,Rn.cancel(r.current),r.current=null}),[]),[t,function(e){i.current||(null===r.current&&(o.current=[],r.current=Rn(()=>{r.current=null,n(e=>{let t=e;return o.current.forEach(e=>{t=e(t)}),t})})),o.current.push(e))}]}(),[T,F]=Wt(()=>({errors:[],warnings:[],touched:!1,validating:!1,name:[],validated:!1})),B=(e,t)=>{z(n=>{const r=Object.assign({},n),o=[].concat(ye(e.name.slice(0,-1)),ye(t)).join("__SPLIT__");return e.destroy?delete r[o]:r[o]=e,r})},[H,_]=e.useMemo(()=>{const e=ye(T.errors),t=ye(T.warnings);return Object.values(R).forEach(n=>{e.push.apply(e,ye(n.errors||[])),t.push.apply(t,ye(n.warnings||[]))}),[e,t]},[R,T.errors,T.warnings]),L=function(){const{itemRef:t}=e.useContext(ai),n=e.useRef({});return function(e,r){const o=r&&"object"==typeof r&&he(r),i=e.join("_");return n.current.name===i&&n.current.originRef===o||(n.current.name=i,n.current.originRef=o,n.current.ref=fe(t(e),o)),n.current.ref}}();function D(i,a,l){return r&&!g?e.createElement(VO,{prefixCls:O,hasFeedback:t.hasFeedback,validateStatus:t.validateStatus,meta:T,errors:H,warnings:_,noStyle:!0,name:n},i):e.createElement(WO,Object.assign({key:"row"},t,{className:A()(o,P,k,j),prefixCls:O,fieldId:a,isRequired:l,errors:H,warnings:_,meta:T,onSubItemMetaChange:B,layout:v,name:n}),i)}if(!E&&!C&&!i)return I(D(x));let V={};return"string"==typeof d?V.label=d:n&&(V.label=String(n)),f&&(V=Object.assign(Object.assign({},V),f)),I(e.createElement(Lo,Object.assign({},t,{messageVariables:V,trigger:p,validateTrigger:$,onMetaChange:e=>{const t=null==M?void 0:M.getKey(e.name);if(F(e.destroy?{errors:[],warnings:[],touched:!1,validating:!1,name:[],validated:!1}:e,!0),r&&!1!==h&&w){let n=e.name;if(e.destroy)n=N.current||n;else if(void 0!==t){const[e,r]=t;n=[e].concat(ye(r)),N.current=n}w(e,n)}}}),(r,o,a)=>{const c=fO(n).length&&o?o.name:[],d=pO(c,y),f=void 0!==u?u:!!(null==s?void 0:s.some(e=>{if(e&&"object"==typeof e&&e.required&&!e.warningOnly)return!0;if("function"==typeof e){const t=e(a);return(null==t?void 0:t.required)&&!(null==t?void 0:t.warningOnly)}return!1})),m=Object.assign({},r);let g=null;if(Array.isArray(x)&&E)g=x;else if(C&&(!l&&!i||E));else if(!i||C||E)if(e.isValidElement(x)){const n=Object.assign(Object.assign({},x.props),m);if(n.id||(n.id=d),h||H.length>0||_.length>0||t.extra){const e=[];(h||H.length>0)&&e.push(`${d}_help`),t.extra&&e.push(`${d}_extra`),n["aria-describedby"]=e.join(" ")}H.length>0&&(n["aria-invalid"]="true"),f&&(n["aria-required"]="true"),me(x)&&(n.ref=L(c,x)),new Set([].concat(ye(fO(p)),ye(fO($)))).forEach(e=>{n[e]=(...t)=>{var n,r,o,i,a;null===(o=m[e])||void 0===o||(n=o).call.apply(n,[m].concat(t)),null===(a=(i=x.props)[e])||void 0===a||(r=a).call.apply(r,[i].concat(t))}});const r=[n["aria-required"],n["aria-invalid"],n["aria-describedby"]];g=e.createElement(qO,{control:m,update:x,childProps:r},sc(x,n))}else g=C&&(l||i)&&!E?x(a):x;return D(g,d,f)}))};GO.useStatus=CO;const XO=GO;const KO=yO;KO.Item=XO,KO.List=t=>{var{prefixCls:n,children:r}=t,o=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(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n}(t,["prefixCls","children"]);const{getPrefixCls:i}=e.useContext(hi),a=i("form",n),l=e.useMemo(()=>({prefixCls:a,status:"error"}),[a]);return e.createElement(Do,Object.assign({},o),(t,n,o)=>e.createElement(ci.Provider,{value:l},r(t.map(e=>Object.assign(Object.assign({},e),{fieldKey:e.key})),n,{errors:o.errors,warnings:o.warnings})))},KO.ErrorList=oO,KO.useForm=vO,KO.useFormInstance=function(){const{form:t}=e.useContext(ai);return t},KO.useWatch=ni,KO.Provider=si,KO.create=()=>{};const UO=KO,YO=t=>{const{actionOptions:n,addOperation:r}=t,o=45*n.length;return(0,e.createElement)(e.Fragment,null,(0,e.createElement)("div",{style:{padding:"10px 10px 0 10px",borderTop:"1px solid #ccc",overflowY:"hidden",minHeight:`${o}px`}},(0,e.createElement)(UO,{name:"add-graphql-operation",className:"variable-editor-title graphiql-explorer-actions",layout:"inline",onSubmit:e=>e.preventDefault()},n.map((t,n)=>{const{type:o}=t;return(0,e.createElement)(Ad,{key:n,style:{marginBottom:"5px",textTransform:"capitalize"},block:!0,type:"primary",onClick:()=>r(o)},"Add New ",o)}))))},{useAppContext:QO}=wpGraphiQL,{GraphQLObjectType:ZO,print:JO}=wpGraphiQL.GraphQL,{useState:ek,useEffect:tk,useRef:nk}=wp.element,rk=t=>{const[n,r]=ek("query"),[o,i]=ek(null),[a,l]=ek(null);let s=nk(null);tk(()=>{});const c=e=>{},{schema:u,query:d}=QO(),{makeDefaultArg:f}=t;if(!u)return(0,e.createElement)("div",{style:{fontFamily:"sans-serif"},className:"error-container"},"No Schema Available");const p={colors:t.colors||v,checkboxChecked:t.checkboxChecked||x,checkboxUnchecked:t.checkboxUnchecked||C,arrowClosed:t.arrowClosed||y,arrowOpen:t.arrowOpen||b,styles:t.styles?{...w,...t.styles}:w},m=u.getQueryType(),g=u.getMutationType(),O=u.getSubscriptionType();if(!m&&!g&&!O)return(0,e.createElement)("div",null,"Missing query type");const k=m&&m.getFields(),I=g&&g.getFields(),j=O&&O.getFields(),P=$(d),M=t.getDefaultFieldNames||h,R=t.getDefaultScalarArgValue||N,A=P.definitions.map(e=>"FragmentDefinition"===e.kind||"OperationDefinition"===e.kind?e:null).filter(Boolean),z=0===A.length?S.definitions:A,T=[];k&&T.push({type:"query",label:"Queries",fields:()=>k}),j&&T.push({type:"subscription",label:"Subscriptions",fields:()=>j}),I&&T.push({type:"mutation",label:"Mutations",fields:()=>I});const F=(0,e.createElement)(YO,{query:d,actionOptions:T,addOperation:e=>{const n=P.definitions,r=1===P.definitions.length&&P.definitions[0]===S.definitions[0],o=r?[]:n.filter(t=>"OperationDefinition"===t.kind&&t.operation===e),i=`My${E(e)}${0===o.length?"":o.length+1}`,a={kind:"OperationDefinition",operation:e,name:{kind:"Name",value:i},variableDefinitions:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"__typename # Placeholder value",loc:null},arguments:[],directives:[],selectionSet:null,loc:null}],loc:null},loc:null},l=r?[a]:[...P.definitions,a],s={...P,definitions:l};t.onEdit(JO(s))}}),B=z.reduce((e,t)=>{if("FragmentDefinition"===t.kind){const n=t.typeCondition.name.value,r=[...e[n]||[],t].sort((e,t)=>e.name.value.localeCompare(t.name.value));return{...e,[n]:r}}return e},{});return(0,e.createElement)("div",{ref:e=>{s=e},style:{fontSize:12,textOverflow:"ellipsis",whiteSpace:"nowrap",margin:0,padding:0,fontFamily:'Consolas, Inconsolata, "Droid Sans Mono", Monaco, monospace',display:"flex",flexDirection:"column",height:"100%"},className:"graphiql-explorer-root antd-app"},(0,e.createElement)("div",{style:{flexGrow:1,overflowY:"scroll",width:"100%",padding:"8px"}},z.map((n,r)=>{const o=n&&n.name&&n.name.value,i="FragmentDefinition"===n.kind?"fragment":n&&n.operation||"query",a="FragmentDefinition"===n.kind&&"NamedType"===n.typeCondition.kind&&u.getType(n.typeCondition.name.value),l=a instanceof ZO?a.getFields():null,s="query"===i?k:"mutation"===i?I:"subscription"===i?j:"FragmentDefinition"===n.kind?l:null,d="FragmentDefinition"===n.kind?n.typeCondition.name.value:null,m=e=>{const n=JO(e);t.onEdit(n)};return(0,e.createElement)(DE,{key:r,index:r,isLast:r===z.length-1,fields:s,operationType:i,name:o,definition:n,onOperationRename:e=>{const r=((e,t)=>{const n=null==t||""===t?null:{kind:"Name",value:t,loc:void 0},r={...e,name:n},o=P.definitions.map(t=>e===t?r:t);return{...P,definitions:o}})(n,e);t.onEdit(JO(r))},onOperationDestroy:()=>{const e=(e=>{const t=P.definitions.filter(t=>e!==t);return{...P,definitions:t}})(n);t.onEdit(JO(e))},onOperationClone:()=>{const e=(e=>{let t;t="FragmentDefinition"===e.kind?"fragment":e.operation;const n={kind:"Name",value:(e.name&&e.name.value||"")+"Copy",loc:void 0},r={...e,name:n},o=[...P.definitions,r];return{...P,definitions:o}})(n);t.onEdit(JO(e))},onTypeName:d,onMount:c,onCommit:m,onEdit:(e,t)=>{let r;if(r="object"!=typeof t||void 0===t.commit||t.commit,e){const t={...P,definitions:P.definitions.map(t=>t===n?e:t)};return r?(m(t),t):t}return P},schema:u,getDefaultFieldNames:M,getDefaultScalarArgValue:R,makeDefaultArg:f,onRunOperation:()=>{t.onRunOperation&&t.onRunOperation(o)},styleConfig:p,availableFragments:B})})),F)};var ok=function(e){var t,n;function r(t){var n;return(n=e.call(this,t)||this).state={hasError:!1,error:null},n}n=e,(t=r).prototype=Object.create(n.prototype),t.prototype.constructor=t,t.__proto__=n,r.getDerivedStateFromError=function(e){return{hasError:!0,error:e}};var o=r.prototype;return o.componentDidCatch=function(e,t){return this.props.onDidCatch(e,t)},o.render=function(){var e=this.state,t=this.props,n=t.render,r=t.children,o=t.renderError;return e.hasError?o?o({error:e.error}):null:n?n():r||null},r}(e.PureComponent),ik=function(e,t){switch(t.type){case"catch":return{didCatch:!0,error:t.error};case"reset":return{didCatch:!1,error:null};default:return e}};const ak=({children:n})=>{const{ErrorBoundary:r,didCatch:o,error:i}=function(n){var r=(0,e.useReducer)(ik,{didCatch:!1,error:null}),o=r[0],i=r[1],a=(0,e.useRef)(null);function l(){return e=function(e,t){i({type:"catch",error:e}),n&&n.onDidCatch&&n.onDidCatch(e,t)},function(n){return t().createElement(ok,{onDidCatch:e,children:n.children,render:n.render,renderError:n.renderError})};var e}var s,c=(0,e.useCallback)(function(){a.current=l(),i({type:"reset"})},[]);return{ErrorBoundary:(s=a.current,null!==s?s:(a.current=l(),a.current)),didCatch:o.didCatch,error:o.error,reset:c}}();return o&&console.warn({error:i}),o?(0,e.createElement)("div",{style:{padding:18,fontFamily:"sans-serif"}},(0,e.createElement)("div",null,"Something went wrong"),(0,e.createElement)("details",{style:{whiteSpace:"pre-wrap"}},i?i.message:null,(0,e.createElement)("br",null),i.stack?i.stack:null)):(0,e.createElement)(r,null,n)},lk=(e,t,n,r,o)=>({background:e,border:`${Wi(r.lineWidth)} ${r.lineType} ${t}`,[`${o}-icon`]:{color:n}}),sk=e=>{const{componentCls:t,motionDurationSlow:n,marginXS:r,marginSM:o,fontSize:i,fontSizeLG:a,lineHeight:l,borderRadiusLG:s,motionEaseInOutCirc:c,withDescriptionIconSize:u,colorText:d,colorTextHeading:f,withDescriptionPadding:p,defaultPadding:m}=e;return{[t]:Object.assign(Object.assign({},Cl(e)),{position:"relative",display:"flex",alignItems:"center",padding:m,wordWrap:"break-word",borderRadius:s,[`&${t}-rtl`]:{direction:"rtl"},[`${t}-content`]:{flex:1,minWidth:0},[`${t}-icon`]:{marginInlineEnd:r,lineHeight:0},"&-description":{display:"none",fontSize:i,lineHeight:l},"&-message":{color:f},[`&${t}-motion-leave`]:{overflow:"hidden",opacity:1,transition:`max-height ${n} ${c}, opacity ${n} ${c},\n padding-top ${n} ${c}, padding-bottom ${n} ${c},\n margin-bottom ${n} ${c}`},[`&${t}-motion-leave-active`]:{maxHeight:0,marginBottom:"0 !important",paddingTop:0,paddingBottom:0,opacity:0}}),[`${t}-with-description`]:{alignItems:"flex-start",padding:p,[`${t}-icon`]:{marginInlineEnd:o,fontSize:u,lineHeight:0},[`${t}-message`]:{display:"block",marginBottom:r,color:f,fontSize:a},[`${t}-description`]:{display:"block",color:d}},[`${t}-banner`]:{marginBottom:0,border:"0 !important",borderRadius:0}}},ck=e=>{const{componentCls:t,colorSuccess:n,colorSuccessBorder:r,colorSuccessBg:o,colorWarning:i,colorWarningBorder:a,colorWarningBg:l,colorError:s,colorErrorBorder:c,colorErrorBg:u,colorInfo:d,colorInfoBorder:f,colorInfoBg:p}=e;return{[t]:{"&-success":lk(o,r,n,e,t),"&-info":lk(p,f,d,e,t),"&-warning":lk(l,a,i,e,t),"&-error":Object.assign(Object.assign({},lk(u,c,s,e,t)),{[`${t}-description > pre`]:{margin:0,padding:0}})}}},uk=e=>{const{componentCls:t,iconCls:n,motionDurationMid:r,marginXS:o,fontSizeIcon:i,colorIcon:a,colorIconHover:l}=e;return{[t]:{"&-action":{marginInlineStart:o},[`${t}-close-icon`]:{marginInlineStart:o,padding:0,overflow:"hidden",fontSize:i,lineHeight:Wi(i),backgroundColor:"transparent",border:"none",outline:"none",cursor:"pointer",[`${n}-close`]:{color:a,transition:`color ${r}`,"&:hover":{color:l}}},"&-close-text":{color:a,transition:`color ${r}`,"&:hover":{color:l}}}}},dk=js("Alert",e=>[sk(e),ck(e),uk(e)],e=>({withDescriptionIconSize:e.fontSizeHeading3,defaultPadding:`${e.paddingContentVerticalSM}px 12px`,withDescriptionPadding:`${e.paddingMD}px ${e.paddingContentHorizontalLG}px`}));var fk=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(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n};const pk={success:xC,info:OC,error:Ef,warning:SC},mk=t=>{const{icon:n,prefixCls:r,type:o}=t,i=pk[o]||null;return n?lc(n,e.createElement("span",{className:`${r}-icon`},n),()=>({className:A()(`${r}-icon`,n.props.className)})):e.createElement(i,{className:`${r}-icon`})},gk=t=>{const{isClosable:n,prefixCls:r,closeIcon:o,handleClose:i,ariaProps:a}=t,l=!0===o||void 0===o?e.createElement(_h,null):o;return n?e.createElement("button",Object.assign({type:"button",onClick:i,className:`${r}-close-icon`,tabIndex:0},a),l):null},hk=e.forwardRef((t,n)=>{const{description:r,prefixCls:o,message:i,banner:a,className:l,rootClassName:s,style:c,onMouseEnter:u,onMouseLeave:d,onClick:f,afterClose:p,showIcon:m,closable:g,closeText:h,closeIcon:v,action:b,id:y}=t,x=fk(t,["description","prefixCls","message","banner","className","rootClassName","style","onMouseEnter","onMouseLeave","onClick","afterClose","showIcon","closable","closeText","closeIcon","action","id"]),[C,w]=e.useState(!1),S=e.useRef(null);e.useImperativeHandle(n,()=>({nativeElement:S.current}));const{getPrefixCls:$,direction:E,closable:O,closeIcon:k,className:I,style:j}=yi("alert"),P=$("alert",o),[M,N,R]=dk(P),z=e=>{var n;w(!0),null===(n=t.onClose)||void 0===n||n.call(t,e)},T=e.useMemo(()=>void 0!==t.type?t.type:a?"warning":"info",[t.type,a]),F=e.useMemo(()=>!("object"!=typeof g||!g.closeIcon)||!!h||("boolean"==typeof g?g:!1!==v&&null!=v||!!O),[h,v,g,O]),B=!(!a||void 0!==m)||m,H=A()(P,`${P}-${T}`,{[`${P}-with-description`]:!!r,[`${P}-no-icon`]:!B,[`${P}-banner`]:!!a,[`${P}-rtl`]:"rtl"===E},I,l,s,R,N),_=Tf(x,{aria:!0,data:!0}),L=e.useMemo(()=>"object"==typeof g&&g.closeIcon?g.closeIcon:h||(void 0!==v?v:"object"==typeof O&&O.closeIcon?O.closeIcon:k),[v,g,O,h,k]),D=e.useMemo(()=>{const e=null!=g?g:O;if("object"==typeof e){const{closeIcon:t}=e;return fk(e,["closeIcon"])}return{}},[g,O]);return M(e.createElement(Qn,{visible:!C,motionName:`${P}-motion`,motionAppear:!1,motionEnter:!1,onLeaveStart:e=>({maxHeight:e.offsetHeight}),onLeaveEnd:p},({className:n,style:o},a)=>e.createElement("div",Object.assign({id:y,ref:fe(S,a),"data-show":!C,className:A()(H,n),style:Object.assign(Object.assign(Object.assign({},j),c),o),onMouseEnter:u,onMouseLeave:d,onClick:f,role:"alert"},_),B?e.createElement(mk,{description:r,icon:t.icon,prefixCls:P,type:T}):null,e.createElement("div",{className:`${P}-content`},i?e.createElement("div",{className:`${P}-message`},i):null,r?e.createElement("div",{className:`${P}-description`},r):null),b?e.createElement("div",{className:`${P}-action`},b):null,e.createElement(gk,{isClosable:F,prefixCls:P,closeIcon:L,handleClose:z,ariaProps:D}))))}),vk=hk;const bk=function(t){function n(){var e,t,r,o;return ht(this,n),t=this,o=arguments,r=Ct(r=n),(e=$t(t,wt()?Reflect.construct(r,o||[],Ct(t).constructor):r.apply(t,o))).state={error:void 0,info:{componentStack:""}},e}return xt(n,t),bt(n,[{key:"componentDidCatch",value:function(e,t){this.setState({error:e,info:t})}},{key:"render",value:function(){const{message:t,description:n,id:r,children:o}=this.props,{error:i,info:a}=this.state,l=(null==a?void 0:a.componentStack)||null,s=void 0===t?(i||"").toString():t,c=void 0===n?l:n;return i?e.createElement(vk,{id:r,type:"error",message:s,description:e.createElement("pre",{style:{fontSize:"0.9em",overflowX:"auto"}},c)}):o}}])}(e.Component),yk=vk;yk.ErrorBoundary=bk;const xk=yk;const Ck=80*Math.PI,wk=t=>{const{dotClassName:n,style:r,hasCircleCls:o}=t;return e.createElement("circle",{className:A()(`${n}-circle`,{[`${n}-circle-bg`]:o}),r:40,cx:50,cy:50,strokeWidth:20,style:r})},Sk=({percent:t,prefixCls:n})=>{const r=`${n}-dot`,o=`${r}-holder`,i=`${o}-hidden`,[a,l]=e.useState(!1);Se(()=>{0!==t&&l(!0)},[0!==t]);const s=Math.max(Math.min(t,100),0);if(!a)return null;const c={strokeDashoffset:""+Ck/4,strokeDasharray:`${Ck*s/100} ${Ck*(100-s)/100}`};return e.createElement("span",{className:A()(o,`${r}-progress`,s<=0&&i)},e.createElement("svg",{viewBox:"0 0 100 100",role:"progressbar","aria-valuemin":0,"aria-valuemax":100,"aria-valuenow":s},e.createElement(wk,{dotClassName:r,hasCircleCls:!0}),e.createElement(wk,{dotClassName:r,style:c})))};function $k(t){const{prefixCls:n,percent:r=0}=t,o=`${n}-dot`,i=`${o}-holder`,a=`${i}-hidden`;return e.createElement(e.Fragment,null,e.createElement("span",{className:A()(i,r>0&&a)},e.createElement("span",{className:A()(o,`${n}-dot-spin`)},[1,2,3,4].map(t=>e.createElement("i",{className:`${n}-dot-item`,key:t})))),e.createElement(Sk,{prefixCls:n,percent:r}))}function Ek(t){var n;const{prefixCls:r,indicator:o,percent:i}=t,a=`${r}-dot`;return o&&e.isValidElement(o)?sc(o,{className:A()(null===(n=o.props)||void 0===n?void 0:n.className,a),percent:i}):e.createElement($k,{prefixCls:r,percent:i})}const Ok=new tl("antSpinMove",{to:{opacity:1}}),kk=new tl("antRotate",{to:{transform:"rotate(405deg)"}}),Ik=js("Spin",e=>(e=>{const{componentCls:t,calc:n}=e;return{[t]:Object.assign(Object.assign({},Cl(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:Ok,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:kk,animationDuration:"1.2s",animationIterationCount:"infinite",animationTimingFunction:"linear"},"&-circle":{strokeLinecap:"round",transition:["stroke-dashoffset","stroke-dasharray","stroke","stroke-width","opacity"].map(t=>`${t} ${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"}})}})(pl(e,{spinDotDefault:e.colorTextDescription})),e=>{const{controlHeightLG:t,controlHeight:n}=e;return{contentHeight:400,dotSize:t/2,dotSizeSM:.35*t,dotSizeLG:n}}),jk=[[30,.05],[70,.03],[96,.01]];let Pk;const Mk=t=>{var n;const{prefixCls:r,spinning:o=!0,delay:i=0,className:a,rootClassName:l,size:s="default",tip:c,wrapperClassName:u,style:d,children:f,fullscreen:p=!1,indicator:m,percent:g}=t,h=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(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n}(t,["prefixCls","spinning","delay","className","rootClassName","size","tip","wrapperClassName","style","children","fullscreen","indicator","percent"]),{getPrefixCls:v,direction:b,className:y,style:x,indicator:C}=yi("spin"),w=v("spin",r),[S,$,E]=Ik(w),[O,k]=e.useState(()=>o&&!function(e,t){return!!e&&!!t&&!Number.isNaN(Number(t))}(o,i)),I=function(t,n){const[r,o]=e.useState(0),i=e.useRef(null),a="auto"===n;return e.useEffect(()=>(a&&t&&(o(0),i.current=setInterval(()=>{o(e=>{const t=100-e;for(let n=0;n<jk.length;n+=1){const[r,o]=jk[n];if(e<=r)return e+t*o}return e})},200)),()=>{i.current&&(clearInterval(i.current),i.current=null)}),[a,t]),a?r:n}(O,g);e.useEffect(()=>{if(o){const e=function(e,t,n){var r=(n||{}).atBegin;return function(e,t,n){var r,o=n||{},i=o.noTrailing,a=void 0!==i&&i,l=o.noLeading,s=void 0!==l&&l,c=o.debounceMode,u=void 0===c?void 0:c,d=!1,f=0;function p(){r&&clearTimeout(r)}function m(){for(var n=arguments.length,o=new Array(n),i=0;i<n;i++)o[i]=arguments[i];var l=this,c=Date.now()-f;function m(){f=Date.now(),t.apply(l,o)}function g(){r=void 0}d||(s||!u||r||m(),p(),void 0===u&&c>e?s?(f=Date.now(),a||(r=setTimeout(u?g:m,e))):m():!0!==a&&(r=setTimeout(u?g:m,void 0===u?e-c:e)))}return m.cancel=function(e){var t=(e||{}).upcomingOnly,n=void 0!==t&&t;p(),d=!n},m}(e,t,{debounceMode:!1!==(void 0!==r&&r)})}(i,()=>{k(!0)});return e(),()=>{var t;null===(t=null==e?void 0:e.cancel)||void 0===t||t.call(e)}}k(!1)},[i,o]);const j=e.useMemo(()=>void 0!==f&&!p,[f,p]),P=A()(w,y,{[`${w}-sm`]:"small"===s,[`${w}-lg`]:"large"===s,[`${w}-spinning`]:O,[`${w}-show-text`]:!!c,[`${w}-rtl`]:"rtl"===b},a,!p&&l,$,E),M=A()(`${w}-container`,{[`${w}-blur`]:O}),N=null!==(n=null!=m?m:C)&&void 0!==n?n:Pk,R=Object.assign(Object.assign({},x),d),z=e.createElement("div",Object.assign({},h,{style:R,className:P,"aria-live":"polite","aria-busy":O}),e.createElement(Ek,{prefixCls:w,indicator:N,percent:I}),c&&(j||p)?e.createElement("div",{className:`${w}-text`},c):null);return S(j?e.createElement("div",Object.assign({},h,{className:A()(`${w}-nested-loading`,u,$,E)}),O&&e.createElement("div",{key:"loading"},z),e.createElement("div",{className:M,key:"container"},f)):p?e.createElement("div",{className:A()(`${w}-fullscreen`,{[`${w}-fullscreen-show`]:O},l,$,E)},z):z)};Mk.setDefaultIndicator=e=>{Pk=e};const Nk=Mk,{useAppContext:Rk}=wpGraphiQL,{useState:Ak,useEffect:zk}=wp.element,Tk=({error:t})=>{const n=t?.urlMismatch,r="auth"===t?.type;return(0,e.createElement)("div",{className:"graphiql-container",style:{padding:"20px",overflow:"auto"}},(0,e.createElement)(xk,{type:"error",message:"Schema Unavailable",description:(0,e.createElement)("div",null,(0,e.createElement)("p",{style:{margin:"0 0 12px 0"}},t?.message),n&&(0,e.createElement)("div",{style:{background:"#fff7e6",border:"1px solid #ffd591",borderRadius:"4px",padding:"12px",marginBottom:"12px"}},(0,e.createElement)("strong",{style:{color:"#d46b08"}},"URL Mismatch Detected"),(0,e.createElement)("p",{style:{margin:"8px 0 0 0",fontSize:"12px"}},"You are accessing the admin at"," ",(0,e.createElement)("code",null,t.urlMismatch.currentOrigin)," ","but the GraphQL endpoint is configured for"," ",(0,e.createElement)("code",null,t.urlMismatch.endpointOrigin),"."),(0,e.createElement)("p",{style:{margin:"8px 0 0 0",fontSize:"12px"}},"This commonly occurs with local development tools (like LocalWP) when WordPress is configured for a custom domain but accessed via localhost.")),r&&(0,e.createElement)("div",{style:{fontSize:"12px",marginTop:"8px"}},(0,e.createElement)("p",{style:{margin:"0 0 8px 0"}},(0,e.createElement)("strong",null,"Possible causes:")),(0,e.createElement)("ul",{style:{margin:"0",paddingLeft:"20px"}},(0,e.createElement)("li",null,"Session expired - try refreshing the page"),(0,e.createElement)("li",null,"Cookie authentication failed - ensure you're logged in"),n&&(0,e.createElement)("li",null,"URL mismatch preventing cookie/nonce validation (see above)")))),showIcon:!0}))},Fk=({schema:t,schemaError:n,schemaLoading:r,children:o})=>r?(0,e.createElement)("div",{className:"graphiql-container",style:{display:"flex",alignItems:"center",justifyContent:"center",height:"100%"}},(0,e.createElement)(Nk,{tip:"Loading schema..."})):n?(0,e.createElement)(Tk,{error:n}):t?(0,e.createElement)("div",{style:{fontSize:12,textOverflow:"ellipsis",whiteSpace:"nowrap",margin:0,padding:0,fontFamily:'Consolas, Inconsolata, "Droid Sans Mono", Monaco, monospace',display:"flex",flexDirection:"column",height:"100%"},className:"graphiql-explorer-root"},o):(0,e.createElement)("div",{className:"graphiql-container"},(0,e.createElement)("div",{className:"error-container"},"No Schema Available")),Bk=t=>{const{query:n,setQuery:r}=t,{schema:o,schemaError:i,schemaLoading:a}=Rk(),[l,s]=Ak(null);return zk(()=>{const e=$(n);l!==e&&s(e)},[n,l]),(0,e.createElement)(e.Fragment,null,(0,e.createElement)(p,null,(0,e.createElement)(ak,null,(0,e.createElement)(Fk,{schema:o,schemaError:i,schemaLoading:a},(0,e.createElement)(rk,{schema:o,query:n,onEdit:e=>{r(e)}})))))};function Hk(e,t){if(null==e)return e;if(0===e.length&&(!t||t&&""!==e))return null;var n=e instanceof Array?e[0]:e;return null==n||t||""!==n?n:null}var _k={encode:function(e){return null==e?e:String(e)},decode:function(e){var t=Hk(e,!0);return null==t?t:String(t)}},Lk={encode:function(e){return null==e?e:e?"1":"0"},decode:function(e){var t=Hk(e);return null==t?t:"1"===t||"0"!==t&&null}},Dk=n(8032);'{}[],":'.split("").map(function(e){return[e,encodeURIComponent(e)]}),Object.prototype.hasOwnProperty,e.createContext({location:{},getLocation:function(){return{}},setLocation:function(){}}),(0,Dk.parse)("");const{hooks:Vk}=window.wpGraphiQL;Vk.addFilter("graphiql_toolbar_after_buttons","graphiql-extension",(t,n)=>{const{GraphiQL:r}=n,{toggleExplorer:o}=u();return t.push((0,e.createElement)(c.Consumer,{key:"graphiql-query-composer-button"},t=>(0,e.createElement)(r.Button,{onClick:()=>{o()},label:"Query Composer",title:"Query Composer"}))),t}),Vk.addFilter("graphiql_before_graphiql","graphiql-explorer",(t,n)=>(t.push((0,e.createElement)(Bk,{...n,key:"graphiql-explorer"})),t)),Vk.addFilter("graphiql_app","graphiql-explorer",(t,{appContext:n})=>(0,e.createElement)(d,{appContext:n},t),99),Vk.addFilter("graphiql_query_params_provider_config","graphiql-explorer",e=>({...e,isQueryComposerOpen:Lk,explorerIsOpen:_k}))})()})();