From 2d33e854bd3056309540c3ae3fa1b37671f81dc6 Mon Sep 17 00:00:00 2001 From: canisminor1990 Date: Fri, 17 May 2024 10:43:05 +0800 Subject: [PATCH] =?UTF-8?q?=E2=99=BB=EF=B8=8F=20refactor:=20Update=20forma?= =?UTF-8?q?tInfo.ts=20#569?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- javascript/main.js | 22 +++++++++++----------- package.json | 3 ++- 2 files changed, 13 insertions(+), 12 deletions(-) diff --git a/javascript/main.js b/javascript/main.js index 37ae33e..9ee442c 100644 --- a/javascript/main.js +++ b/javascript/main.js @@ -57,7 +57,7 @@ var $=J,z=Symbol.for("react.element"),W=Symbol.for("react.fragment"),_=Object.pr Licensed under the MIT License (MIT), see http://jedwatson.github.io/classnames */ -ld=cd,function(){var A={}.hasOwnProperty;function e(){for(var A="",e=0;e1&&void 0!==arguments[1]?arguments[1]:{},t=[];return j.Children.forEach(A,(function(A){(null!=A||e.keepEmpty)&&(Array.isArray(A)?t=t.concat(Fd(A)):Sd.isFragment(A)&&A.props?t=t.concat(Fd(A.props.children,e)):t.push(A))})),t}function Nd(A){return A instanceof HTMLElement||A instanceof SVGElement}function Rd(A){return Nd(A)?A:A instanceof j.Component?fc.findDOMNode(A):null}var Ld=function(A,e){"function"==typeof A?A(e):"object"===mc(A)&&A&&"current"in A&&(A.current=e)},Pd=function(){for(var A=arguments.length,e=new Array(A),t=0;t0},A.prototype.connect_=function(){Kd&&!this.connected_&&(document.addEventListener("transitionend",this.onTransitionEnd_),window.addEventListener("resize",this.refresh),jd?(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)},A.prototype.disconnect_=function(){Kd&&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)},A.prototype.onTransitionEnd_=function(A){var e=A.propertyName,t=void 0===e?"":e;Jd.some((function(A){return!!~t.indexOf(A)}))&&this.refresh()},A.getInstance=function(){return this.instance_||(this.instance_=new A),this.instance_},A.instance_=null,A}(),$d=function(A,e){for(var t=0,n=Object.keys(e);t0},A}(),rI="undefined"!=typeof WeakMap?new WeakMap:new Ud,iI=function(){return function A(e){if(!(this instanceof A))throw new TypeError("Cannot call a class as a function.");if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");var t=qd.getInstance(),n=new oI(e,t,this);rI.set(this,n)}}();["observe","unobserve","disconnect"].forEach((function(A){iI.prototype[A]=function(){var e;return(e=rI.get(this))[A].apply(e,arguments)}}));var aI=void 0!==Yd.ResizeObserver?Yd.ResizeObserver:iI,sI=new Map;var lI=new aI((function(A){A.forEach((function(A){var e,t=A.target;null===(e=sI.get(t))||void 0===e||e.forEach((function(A){return A(t)}))}))}));function gI(A,e){return(gI=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(A,e){return A.__proto__=e,A})(A,e)}function cI(A,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");A.prototype=Object.create(e&&e.prototype,{constructor:{value:A,writable:!0,configurable:!0}}),Object.defineProperty(A,"prototype",{writable:!1}),e&&gI(A,e)}function uI(A){return(uI=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(A){return A.__proto__||Object.getPrototypeOf(A)})(A)}function BI(){try{var A=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(BI=function(){return!!A})()}function QI(A){if(void 0===A)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return A}function EI(A,e){if(e&&("object"===mc(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return QI(A)}function CI(A){var e=BI();return function(){var t,n=uI(A);if(e){var o=uI(this).constructor;t=Reflect.construct(n,arguments,o)}else t=n.apply(this,arguments);return EI(this,t)}}var dI=function(A){cI(t,J.Component);var e=CI(t);function t(){return eQ(this,t),e.apply(this,arguments)}return nQ(t,[{key:"render",value:function(){return this.props.children}}]),t}();function II(A,e){var t=A.children,n=A.disabled,o=J.useRef(null),r=J.useRef(null),i=J.useContext(Od),a="function"==typeof t,s=a?t(o):t,l=J.useRef({width:-1,height:-1,offsetWidth:-1,offsetHeight:-1}),g=!a&&J.isValidElement(s)&&Gd(s),c=g?s.ref:null,u=Hd(c,o),B=function(){var A;return Rd(o.current)||(o.current&&"object"===mc(o.current)?Rd(null===(A=o.current)||void 0===A?void 0:A.nativeElement):null)||Rd(r.current)};J.useImperativeHandle(e,(function(){return B()}));var Q=J.useRef(A);Q.current=A;var E=J.useCallback((function(A){var e=Q.current,t=e.onResize,n=e.data,o=A.getBoundingClientRect(),r=o.width,a=o.height,s=A.offsetWidth,g=A.offsetHeight,c=Math.floor(r),u=Math.floor(a);if(l.current.width!==c||l.current.height!==u||l.current.offsetWidth!==s||l.current.offsetHeight!==g){var B={width:c,height:u,offsetWidth:s,offsetHeight:g};l.current=B;var E=s===Math.round(r)?r:s,C=g===Math.round(a)?a:g,d=kc(kc({},B),{},{offsetWidth:E,offsetHeight:C});null==i||i(d,A,n),t&&Promise.resolve().then((function(){t(d,A)}))}}),[]);return J.useEffect((function(){var A,e,t=B();return t&&!n&&(A=t,e=E,sI.has(A)||(sI.set(A,new Set),lI.observe(A)),sI.get(A).add(e)),function(){return function(A,e){sI.has(A)&&(sI.get(A).delete(e),sI.get(A).size||(lI.unobserve(A),sI.delete(A)))}(t,E)}}),[o.current,n]),J.createElement(dI,{ref:r},g?J.cloneElement(s,{ref:u}):s)}var pI=J.forwardRef(II);function fI(A,e){var t=A.children;return("function"==typeof t?[t]:Fd(t)).map((function(t,n){var o=(null==t?void 0:t.key)||"".concat("rc-observer-key","-").concat(n);return J.createElement(pI,BQ({},A,{key:o,ref:0===n?e:void 0}),t)}))}var hI=J.forwardRef(fI);function wI(A,e){var t=kc({},A);return Array.isArray(e)&&e.forEach((function(A){delete t[A]})),t}hI.Collection=function(A){var e=A.children,t=A.onBatchResize,n=J.useRef(0),o=J.useRef([]),r=J.useContext(Od),i=J.useCallback((function(A,e,i){n.current+=1;var a=n.current;o.current.push({size:A,element:e,data:i}),Promise.resolve().then((function(){a===n.current&&(null==t||t(o.current),o.current=[])})),null==r||r(A,e,i)}),[t,r]);return J.createElement(Od.Provider,{value:i},e)};var DI=function(A){return+setTimeout(A,16)},mI=function(A){return clearTimeout(A)};"undefined"!=typeof window&&"requestAnimationFrame"in window&&(DI=function(A){return window.requestAnimationFrame(A)},mI=function(A){return window.cancelAnimationFrame(A)});var yI=0,bI=new Map;function vI(A){bI.delete(A)}var kI=function(A){var e=yI+=1;return function t(n){if(0===n)vI(e),A();else{var o=DI((function(){t(n-1)}));bI.set(e,o)}}(arguments.length>1&&void 0!==arguments[1]?arguments[1]:1),e};kI.cancel=function(A){var e=bI.get(A);return vI(A),mI(e)};var MI=J.createContext({});function xI(A){return jQ(A)||_Q(A)||$Q(A)||zQ()}function SI(A,e){for(var t=A,n=0;n3&&void 0!==arguments[3]&&arguments[3];return e.length&&n&&void 0===t&&!SI(A,e.slice(0,-1))?A:FI(A,e,t,n)}function RI(A){return Array.isArray(A)?[]:{}}var LI="undefined"==typeof Reflect?Object.keys:Reflect.ownKeys;function PI(){for(var A=arguments.length,e=new Array(A),t=0;t{const A=()=>{};return A.deprecated=HI,A},UI=J.createContext(void 0);const KI={placeholder:"Select time",rangePlaceholder:["Start time","End time"]},YI={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"]},{locale:"en_US",today:"Today",now:"Now",backToToday:"Back to today",ok:"OK",clear:"Clear",month:"Month",year:"Year",timeSelect:"select time",dateSelect:"select date",weekSelect:"Choose a week",monthSelect:"Choose a month",yearSelect:"Choose a year",decadeSelect:"Choose a decade",yearFormat:"YYYY",dateFormat:"M/D/YYYY",dayFormat:"D",dateTimeFormat:"M/D/YYYY HH:mm:ss",monthBeforeYear:!0,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"}),timePickerLocale:Object.assign({},KI)},TI="${label} is not a valid ${type}",JI={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:YI,TimePicker:KI,Calendar:YI,global:{placeholder:"Please select"},Table:{filterTitle:"Filter menu",filterConfirm:"OK",filterReset:"Reset",filterEmptyText:"No filters",filterCheckall:"Select all items",filterSearchPlaceholder:"Search in filters",emptyText:"No data",selectAll:"Select current page",selectInvert:"Invert current page",selectNone:"Clear all data",selectionAll:"Select all data",sortTitle:"Sort",expand:"Expand row",collapse:"Collapse row",triggerDesc:"Click to sort descending",triggerAsc:"Click to sort ascending",cancelSort:"Click to cancel sorting"},Tour:{Next:"Next",Previous:"Previous",Finish:"Finish"},Modal:{okText:"OK",cancelText:"Cancel",justOkText:"OK"},Popconfirm:{okText:"OK",cancelText:"Cancel"},Transfer:{titles:["",""],searchPlaceholder:"Search here",itemUnit:"item",itemsUnit:"items",remove:"Remove",selectCurrent:"Select current page",removeCurrent:"Remove current page",selectAll:"Select all data",deselectAll:"Deselect all data",removeAll:"Remove all data",selectInvert:"Invert current page"},Upload:{uploading:"Uploading...",removeFile:"Remove file",uploadError:"Upload error",previewFile:"Preview file",downloadFile:"Download file"},Empty:{description:"No data"},Icon:{icon:"icon"},Text:{edit:"Edit",copy:"Copy",copied:"Copied",expand:"Expand",collapse:"Collapse"},Form:{optional:"(optional)",defaultValidateMessages:{default:"Field validation error for ${label}",required:"Please enter ${label}",enum:"${label} must be one of [${enum}]",whitespace:"${label} cannot be a blank character",date:{format:"${label} date format is invalid",parse:"${label} cannot be converted to a date",invalid:"${label} is an invalid date"},types:{string:TI,method:TI,array:TI,object:TI,number:TI,date:TI,boolean:TI,integer:TI,float:TI,regexp:TI,email:TI,url:TI,hex:TI},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"}};let jI=Object.assign({},JI.Modal),qI=[];const $I=()=>qI.reduce(((A,e)=>Object.assign(Object.assign({},A),e)),JI.Modal);function zI(){return jI}const WI=J.createContext(void 0),_I=(A,e)=>{const t=J.useContext(WI);return[J.useMemo((()=>{var n;const o=e||JI[A],r=null!==(n=null==t?void 0:t[A])&&void 0!==n?n:{};return Object.assign(Object.assign({},"function"==typeof o?o():o),r||{})}),[A,e,t]),J.useMemo((()=>{const A=null==t?void 0:t.locale;return(null==t?void 0:t.exist)&&!A?JI.locale:A}),[t])]},XI=A=>{const{locale:e={},children:t,_ANT_MARK__:n}=A;J.useEffect((()=>{const A=function(A){if(A){const e=Object.assign({},A);return qI.push(e),jI=$I(),()=>{qI=qI.filter((A=>A!==e)),jI=$I()}}jI=Object.assign({},JI.Modal)}(e&&e.Modal);return A}),[e]);const o=J.useMemo((()=>Object.assign(Object.assign({},e),{exist:!0})),[e]);return J.createElement(WI.Provider,{value:o},t)};function VI(A,e){(function(A){return"string"==typeof A&&-1!==A.indexOf(".")&&1===parseFloat(A)})(A)&&(A="100%");var t=function(A){return"string"==typeof A&&-1!==A.indexOf("%")}(A);return A=360===e?A:Math.min(e,Math.max(0,parseFloat(A))),t&&(A=parseInt(String(A*e),10)/100),Math.abs(A-e)<1e-6?1:A=360===e?(A<0?A%e+e:A%e)/parseFloat(String(e)):A%e/parseFloat(String(e))}function ZI(A){return Math.min(1,Math.max(0,A))}function Ap(A){return A=parseFloat(A),(isNaN(A)||A<0||A>1)&&(A=1),A}function ep(A){return A<=1?"".concat(100*Number(A),"%"):A}function tp(A){return 1===A.length?"0"+A:String(A)}function np(A,e,t){A=VI(A,255),e=VI(e,255),t=VI(t,255);var n=Math.max(A,e,t),o=Math.min(A,e,t),r=0,i=0,a=(n+o)/2;if(n===o)i=0,r=0;else{var s=n-o;switch(i=a>.5?s/(2-n-o):s/(n+o),n){case A:r=(e-t)/s+(e1&&(t-=1),t<1/6?A+6*t*(e-A):t<.5?e:t<2/3?A+(e-A)*(2/3-t)*6:A}function rp(A,e,t){A=VI(A,255),e=VI(e,255),t=VI(t,255);var n=Math.max(A,e,t),o=Math.min(A,e,t),r=0,i=n,a=n-o,s=0===n?0:a/n;if(n===o)r=0;else{switch(n){case A:r=(e-t)/a+(e>16,g:(65280&A)>>8,b:255&A}}(e)),this.originalInput=e;var o=gp(e);this.originalInput=e,this.r=o.r,this.g=o.g,this.b=o.b,this.a=o.a,this.roundA=Math.round(100*this.a)/100,this.format=null!==(n=t.format)&&void 0!==n?n:o.format,this.gradientType=t.gradientType,this.r<1&&(this.r=Math.round(this.r)),this.g<1&&(this.g=Math.round(this.g)),this.b<1&&(this.b=Math.round(this.b)),this.isValid=o.ok}return A.prototype.isDark=function(){return this.getBrightness()<128},A.prototype.isLight=function(){return!this.isDark()},A.prototype.getBrightness=function(){var A=this.toRgb();return(299*A.r+587*A.g+114*A.b)/1e3},A.prototype.getLuminance=function(){var A=this.toRgb(),e=A.r/255,t=A.g/255,n=A.b/255;return.2126*(e<=.03928?e/12.92:Math.pow((e+.055)/1.055,2.4))+.7152*(t<=.03928?t/12.92:Math.pow((t+.055)/1.055,2.4))+.0722*(n<=.03928?n/12.92:Math.pow((n+.055)/1.055,2.4))},A.prototype.getAlpha=function(){return this.a},A.prototype.setAlpha=function(A){return this.a=Ap(A),this.roundA=Math.round(100*this.a)/100,this},A.prototype.isMonochrome=function(){return 0===this.toHsl().s},A.prototype.toHsv=function(){var A=rp(this.r,this.g,this.b);return{h:360*A.h,s:A.s,v:A.v,a:this.a}},A.prototype.toHsvString=function(){var A=rp(this.r,this.g,this.b),e=Math.round(360*A.h),t=Math.round(100*A.s),n=Math.round(100*A.v);return 1===this.a?"hsv(".concat(e,", ").concat(t,"%, ").concat(n,"%)"):"hsva(".concat(e,", ").concat(t,"%, ").concat(n,"%, ").concat(this.roundA,")")},A.prototype.toHsl=function(){var A=np(this.r,this.g,this.b);return{h:360*A.h,s:A.s,l:A.l,a:this.a}},A.prototype.toHslString=function(){var A=np(this.r,this.g,this.b),e=Math.round(360*A.h),t=Math.round(100*A.s),n=Math.round(100*A.l);return 1===this.a?"hsl(".concat(e,", ").concat(t,"%, ").concat(n,"%)"):"hsla(".concat(e,", ").concat(t,"%, ").concat(n,"%, ").concat(this.roundA,")")},A.prototype.toHex=function(A){return void 0===A&&(A=!1),ip(this.r,this.g,this.b,A)},A.prototype.toHexString=function(A){return void 0===A&&(A=!1),"#"+this.toHex(A)},A.prototype.toHex8=function(A){return void 0===A&&(A=!1),function(A,e,t,n,o){var r,i=[tp(Math.round(A).toString(16)),tp(Math.round(e).toString(16)),tp(Math.round(t).toString(16)),tp((r=n,Math.round(255*parseFloat(r)).toString(16)))];return o&&i[0].startsWith(i[0].charAt(1))&&i[1].startsWith(i[1].charAt(1))&&i[2].startsWith(i[2].charAt(1))&&i[3].startsWith(i[3].charAt(1))?i[0].charAt(0)+i[1].charAt(0)+i[2].charAt(0)+i[3].charAt(0):i.join("")}(this.r,this.g,this.b,this.a,A)},A.prototype.toHex8String=function(A){return void 0===A&&(A=!1),"#"+this.toHex8(A)},A.prototype.toHexShortString=function(A){return void 0===A&&(A=!1),1===this.a?this.toHexString(A):this.toHex8String(A)},A.prototype.toRgb=function(){return{r:Math.round(this.r),g:Math.round(this.g),b:Math.round(this.b),a:this.a}},A.prototype.toRgbString=function(){var A=Math.round(this.r),e=Math.round(this.g),t=Math.round(this.b);return 1===this.a?"rgb(".concat(A,", ").concat(e,", ").concat(t,")"):"rgba(".concat(A,", ").concat(e,", ").concat(t,", ").concat(this.roundA,")")},A.prototype.toPercentageRgb=function(){var A=function(A){return"".concat(Math.round(100*VI(A,255)),"%")};return{r:A(this.r),g:A(this.g),b:A(this.b),a:this.a}},A.prototype.toPercentageRgbString=function(){var A=function(A){return Math.round(100*VI(A,255))};return 1===this.a?"rgb(".concat(A(this.r),"%, ").concat(A(this.g),"%, ").concat(A(this.b),"%)"):"rgba(".concat(A(this.r),"%, ").concat(A(this.g),"%, ").concat(A(this.b),"%, ").concat(this.roundA,")")},A.prototype.toName=function(){if(0===this.a)return"transparent";if(this.a<1)return!1;for(var A="#"+ip(this.r,this.g,this.b,!1),e=0,t=Object.entries(lp);e=0;return e||!n||!A.startsWith("hex")&&"name"!==A?("rgb"===A&&(t=this.toRgbString()),"prgb"===A&&(t=this.toPercentageRgbString()),"hex"!==A&&"hex6"!==A||(t=this.toHexString()),"hex3"===A&&(t=this.toHexString(!0)),"hex4"===A&&(t=this.toHex8String(!0)),"hex8"===A&&(t=this.toHex8String()),"name"===A&&(t=this.toName()),"hsl"===A&&(t=this.toHslString()),"hsv"===A&&(t=this.toHsvString()),t||this.toHexString()):"name"===A&&0===this.a?this.toName():this.toRgbString()},A.prototype.toNumber=function(){return(Math.round(this.r)<<16)+(Math.round(this.g)<<8)+Math.round(this.b)},A.prototype.clone=function(){return new A(this.toString())},A.prototype.lighten=function(e){void 0===e&&(e=10);var t=this.toHsl();return t.l+=e/100,t.l=ZI(t.l),new A(t)},A.prototype.brighten=function(e){void 0===e&&(e=10);var t=this.toRgb();return t.r=Math.max(0,Math.min(255,t.r-Math.round(-e/100*255))),t.g=Math.max(0,Math.min(255,t.g-Math.round(-e/100*255))),t.b=Math.max(0,Math.min(255,t.b-Math.round(-e/100*255))),new A(t)},A.prototype.darken=function(e){void 0===e&&(e=10);var t=this.toHsl();return t.l-=e/100,t.l=ZI(t.l),new A(t)},A.prototype.tint=function(A){return void 0===A&&(A=10),this.mix("white",A)},A.prototype.shade=function(A){return void 0===A&&(A=10),this.mix("black",A)},A.prototype.desaturate=function(e){void 0===e&&(e=10);var t=this.toHsl();return t.s-=e/100,t.s=ZI(t.s),new A(t)},A.prototype.saturate=function(e){void 0===e&&(e=10);var t=this.toHsl();return t.s+=e/100,t.s=ZI(t.s),new A(t)},A.prototype.greyscale=function(){return this.desaturate(100)},A.prototype.spin=function(e){var t=this.toHsl(),n=(t.h+e)%360;return t.h=n<0?360+n:n,new A(t)},A.prototype.mix=function(e,t){void 0===t&&(t=50);var n=this.toRgb(),o=new A(e).toRgb(),r=t/100;return new A({r:(o.r-n.r)*r+n.r,g:(o.g-n.g)*r+n.g,b:(o.b-n.b)*r+n.b,a:(o.a-n.a)*r+n.a})},A.prototype.analogous=function(e,t){void 0===e&&(e=6),void 0===t&&(t=30);var n=this.toHsl(),o=360/t,r=[this];for(n.h=(n.h-(o*e>>1)+720)%360;--e;)n.h=(n.h+o)%360,r.push(new A(n));return r},A.prototype.complement=function(){var e=this.toHsl();return e.h=(e.h+180)%360,new A(e)},A.prototype.monochromatic=function(e){void 0===e&&(e=6);for(var t=this.toHsv(),n=t.h,o=t.s,r=t.v,i=[],a=1/e;e--;)i.push(new A({h:n,s:o,v:r})),r=(r+a)%1;return i},A.prototype.splitcomplement=function(){var e=this.toHsl(),t=e.h;return[this,new A({h:(t+72)%360,s:e.s,l:e.l}),new A({h:(t+216)%360,s:e.s,l:e.l})]},A.prototype.onBackground=function(e){var t=this.toRgb(),n=new A(e).toRgb(),o=t.a+n.a*(1-t.a);return new A({r:(t.r*t.a+n.r*n.a*(1-t.a))/o,g:(t.g*t.a+n.g*n.a*(1-t.a))/o,b:(t.b*t.a+n.b*n.a*(1-t.a))/o,a:o})},A.prototype.triad=function(){return this.polyad(3)},A.prototype.tetrad=function(){return this.polyad(4)},A.prototype.polyad=function(e){for(var t=this.toHsl(),n=t.h,o=[this],r=360/e,i=1;i=60&&Math.round(A.h)<=240?t?Math.round(A.h)-dp*e:Math.round(A.h)+dp*e:t?Math.round(A.h)+dp*e:Math.round(A.h)-dp*e)<0?n+=360:n>=360&&(n-=360),n}function kp(A,e,t){return 0===A.h&&0===A.s?A.s:((n=t?A.s-Ip*e:e===Dp?A.s+Ip:A.s+pp*e)>1&&(n=1),t&&e===wp&&n>.1&&(n=.1),n<.06&&(n=.06),Number(n.toFixed(2)));var n}function Mp(A,e,t){var n;return(n=t?A.v+fp*e:A.v-hp*e)>1&&(n=1),Number(n.toFixed(2))}function xp(A){for(var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},t=[],n=gp(A),o=wp;o>0;o-=1){var r=yp(n),i=bp(gp({h:vp(r,o,!0),s:kp(r,o,!0),v:Mp(r,o,!0)}));t.push(i)}t.push(bp(n));for(var a=1;a<=Dp;a+=1){var s=yp(n),l=bp(gp({h:vp(s,a),s:kp(s,a),v:Mp(s,a)}));t.push(l)}return"dark"===e.theme?mp.map((function(A){var n,o,r,i=A.index,a=A.opacity;return bp((n=gp(e.backgroundColor||"#141414"),o=gp(t[i]),r=100*a/100,{r:(o.r-n.r)*r+n.r,g:(o.g-n.g)*r+n.g,b:(o.b-n.b)*r+n.b}))})):t}var Sp={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"},Fp={},Np={};Object.keys(Sp).forEach((function(A){Fp[A]=xp(Sp[A]),Fp[A].primary=Fp[A][5],Np[A]=xp(Sp[A],{theme:"dark",backgroundColor:"#141414"}),Np[A].primary=Np[A][5]}));var Rp=Fp.blue;const Lp={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"},Pp=Object.assign(Object.assign({},Lp),{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});function Hp(A,e){let{generateColorPalettes:t,generateNeutralColorPalettes:n}=e;const{colorSuccess:o,colorWarning:r,colorError:i,colorInfo:a,colorPrimary:s,colorBgBase:l,colorTextBase:g}=A,c=t(s),u=t(o),B=t(r),Q=t(i),E=t(a),C=n(l,g),d=t(A.colorLink||A.colorInfo);return Object.assign(Object.assign({},C),{colorPrimaryBg:c[1],colorPrimaryBgHover:c[2],colorPrimaryBorder:c[3],colorPrimaryBorderHover:c[4],colorPrimaryHover:c[5],colorPrimary:c[6],colorPrimaryActive:c[7],colorPrimaryTextHover:c[8],colorPrimaryText:c[9],colorPrimaryTextActive:c[10],colorSuccessBg:u[1],colorSuccessBgHover:u[2],colorSuccessBorder:u[3],colorSuccessBorderHover:u[4],colorSuccessHover:u[4],colorSuccess:u[6],colorSuccessActive:u[7],colorSuccessTextHover:u[8],colorSuccessText:u[9],colorSuccessTextActive:u[10],colorErrorBg:Q[1],colorErrorBgHover:Q[2],colorErrorBorder:Q[3],colorErrorBorderHover:Q[4],colorErrorHover:Q[5],colorError:Q[6],colorErrorActive:Q[7],colorErrorTextHover:Q[8],colorErrorText:Q[9],colorErrorTextActive:Q[10],colorWarningBg:B[1],colorWarningBgHover:B[2],colorWarningBorder:B[3],colorWarningBorderHover:B[4],colorWarningHover:B[4],colorWarning:B[6],colorWarningActive:B[7],colorWarningTextHover:B[8],colorWarningText:B[9],colorWarningTextActive:B[10],colorInfoBg:E[1],colorInfoBgHover:E[2],colorInfoBorder:E[3],colorInfoBorderHover:E[4],colorInfoHover:E[4],colorInfo:E[6],colorInfoActive:E[7],colorInfoTextHover:E[8],colorInfoText:E[9],colorInfoTextActive:E[10],colorLinkHover:d[4],colorLink:d[6],colorLinkActive:d[7],colorBgMask:new Cp("#000").setAlpha(.45).toRgbString(),colorWhite:"#fff"})}const Gp=A=>{let e=A,t=A,n=A,o=A;return A<6&&A>=5?e=A+1:A<16&&A>=6?e=A+2:A>=16&&(e=16),A<7&&A>=5?t=4:A<8&&A>=7?t=5:A<14&&A>=8?t=6:A<16&&A>=14?t=7:A>=16&&(t=8),A<6&&A>=2?n=1:A>=6&&(n=2),A>4&&A<8?o=4:A>=8&&(o=6),{borderRadius:A,borderRadiusXS:n,borderRadiusSM:t,borderRadiusLG:e,borderRadiusOuter:o}};const Op=A=>{const{controlHeight:e}=A;return{controlHeightSM:.75*e,controlHeightXS:.5*e,controlHeightLG:1.25*e}};function Up(A){return(A+8)/A}const Kp=A=>{const e=function(A){const e=new Array(10).fill(null).map(((e,t)=>{const n=t-1,o=A*Math.pow(2.71828,n/5),r=t>1?Math.floor(o):Math.ceil(o);return 2*Math.floor(r/2)}));return e[1]=A,e.map((A=>({size:A,lineHeight:Up(A)})))}(A),t=e.map((A=>A.size)),n=e.map((A=>A.lineHeight)),o=t[1],r=t[0],i=t[2],a=n[1],s=n[0],l=n[2];return{fontSizeSM:r,fontSize:o,fontSizeLG:i,fontSizeXL:t[3],fontSizeHeading1:t[6],fontSizeHeading2:t[5],fontSizeHeading3:t[4],fontSizeHeading4:t[3],fontSizeHeading5:t[2],lineHeight:a,lineHeightLG:l,lineHeightSM:s,fontHeight:Math.round(a*o),fontHeightLG:Math.round(l*i),fontHeightSM:Math.round(s*r),lineHeightHeading1:n[6],lineHeightHeading2:n[5],lineHeightHeading3:n[4],lineHeightHeading4:n[3],lineHeightHeading5:n[2]}};const Yp=(A,e)=>new Cp(A).setAlpha(e).toRgbString(),Tp=(A,e)=>new Cp(A).darken(e).toHexString(),Jp=A=>{const e=xp(A);return{1:e[0],2:e[1],3:e[2],4:e[3],5:e[4],6:e[5],7:e[6],8:e[4],9:e[5],10:e[6]}},jp=(A,e)=>{const t=A||"#fff",n=e||"#000";return{colorBgBase:t,colorTextBase:n,colorText:Yp(n,.88),colorTextSecondary:Yp(n,.65),colorTextTertiary:Yp(n,.45),colorTextQuaternary:Yp(n,.25),colorFill:Yp(n,.15),colorFillSecondary:Yp(n,.06),colorFillTertiary:Yp(n,.04),colorFillQuaternary:Yp(n,.02),colorBgLayout:Tp(t,4),colorBgContainer:Tp(t,0),colorBgElevated:Tp(t,0),colorBgSpotlight:Yp(n,.85),colorBgBlur:"transparent",colorBorder:Tp(t,15),colorBorderSecondary:Tp(t,6)}};function qp(A){const e=Object.keys(Lp).map((e=>{const t=xp(A[e]);return new Array(10).fill(1).reduce(((A,n,o)=>(A[`${e}-${o+1}`]=t[o],A[`${e}${o+1}`]=t[o],A)),{})})).reduce(((A,e)=>A=Object.assign(Object.assign({},A),e)),{});return Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},A),e),Hp(A,{generateColorPalettes:Jp,generateNeutralColorPalettes:jp})),Kp(A.fontSize)),function(A){const{sizeUnit:e,sizeStep:t}=A;return{sizeXXL:e*(t+8),sizeXL:e*(t+4),sizeLG:e*(t+2),sizeMD:e*(t+1),sizeMS:e*t,size:e*t,sizeSM:e*(t-1),sizeXS:e*(t-2),sizeXXS:e*(t-3)}}(A)),Op(A)),function(A){const{motionUnit:e,motionBase:t,borderRadius:n,lineWidth:o}=A;return Object.assign({motionDurationFast:`${(t+e).toFixed(1)}s`,motionDurationMid:`${(t+2*e).toFixed(1)}s`,motionDurationSlow:`${(t+3*e).toFixed(1)}s`,lineWidthBold:o+1},Gp(n))}(A))}const $p=NE(qp),zp={token:Pp,override:{override:Pp},hashed:!0},Wp=j.createContext(zp),_p="anticon",Xp=J.createContext({getPrefixCls:(A,e)=>e||(A?`ant-${A}`:"ant"),iconPrefixCls:_p}),Vp=`-ant-${Date.now()}-${Math.random()}`;function Zp(A,e){const t=function(A,e){const t={},n=(A,e)=>{let t=A.clone();return t=(null==e?void 0:e(t))||t,t.toRgbString()},o=(A,e)=>{const o=new Cp(A),r=xp(o.toRgbString());t[`${e}-color`]=n(o),t[`${e}-color-disabled`]=r[1],t[`${e}-color-hover`]=r[4],t[`${e}-color-active`]=r[6],t[`${e}-color-outline`]=o.clone().setAlpha(.2).toRgbString(),t[`${e}-color-deprecated-bg`]=r[0],t[`${e}-color-deprecated-border`]=r[2]};if(e.primaryColor){o(e.primaryColor,"primary");const A=new Cp(e.primaryColor),r=xp(A.toRgbString());r.forEach(((A,e)=>{t[`primary-${e+1}`]=A})),t["primary-color-deprecated-l-35"]=n(A,(A=>A.lighten(35))),t["primary-color-deprecated-l-20"]=n(A,(A=>A.lighten(20))),t["primary-color-deprecated-t-20"]=n(A,(A=>A.tint(20))),t["primary-color-deprecated-t-50"]=n(A,(A=>A.tint(50))),t["primary-color-deprecated-f-12"]=n(A,(A=>A.setAlpha(.12*A.getAlpha())));const i=new Cp(r[0]);t["primary-color-active-deprecated-f-30"]=n(i,(A=>A.setAlpha(.3*A.getAlpha()))),t["primary-color-active-deprecated-d-02"]=n(i,(A=>A.darken(2)))}return e.successColor&&o(e.successColor,"success"),e.warningColor&&o(e.warningColor,"warning"),e.errorColor&&o(e.errorColor,"error"),e.infoColor&&o(e.infoColor,"info"),`\n :root {\n ${Object.keys(t).map((e=>`--${A}-${e}: ${t[e]};`)).join("\n")}\n }\n `.trim()}(A,e);ZQ()&&cE(t,`${Vp}-dynamic-theme`)}const Af=J.createContext(!1),ef=A=>{let{children:e,disabled:t}=A;const n=J.useContext(Af);return J.createElement(Af.Provider,{value:null!=t?t:n},e)},tf=J.createContext(void 0),nf=A=>{let{children:e,size:t}=A;const n=J.useContext(tf);return J.createElement(tf.Provider,{value:t||n},e)};const of=["blue","purple","cyan","green","magenta","pink","red","orange","yellow","volcano","geekblue","lime","gold"],rf="5.17.0";function af(A){return A>=0&&A<=255}function sf(A,e){const{r:t,g:n,b:o,a:r}=new Cp(A).toRgb();if(r<1)return A;const{r:i,g:a,b:s}=new Cp(e).toRgb();for(let l=.01;l<=1;l+=.01){const A=Math.round((t-i*(1-l))/l),e=Math.round((n-a*(1-l))/l),r=Math.round((o-s*(1-l))/l);if(af(A)&&af(e)&&af(r))return new Cp({r:A,g:e,b:r,a:Math.round(100*l)/100}).toRgbString()}return new Cp({r:t,g:n,b:o,a:1}).toRgbString()}var lf=function(A,e){var t={};for(var n in A)Object.prototype.hasOwnProperty.call(A,n)&&e.indexOf(n)<0&&(t[n]=A[n]);if(null!=A&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(n=Object.getOwnPropertySymbols(A);o{delete n[A]}));const o=Object.assign(Object.assign({},t),n),r=1200,i=1600;if(!1===o.motion){const A="0s";o.motionDurationFast=A,o.motionDurationMid=A,o.motionDurationSlow=A}return Object.assign(Object.assign(Object.assign({},o),{colorFillContent:o.colorFillSecondary,colorFillContentHover:o.colorFill,colorFillAlter:o.colorFillQuaternary,colorBgContainerDisabled:o.colorFillTertiary,colorBorderBg:o.colorBgContainer,colorSplit:sf(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:sf(o.colorErrorBg,o.colorBgContainer),colorWarningOutline:sf(o.colorWarningBg,o.colorBgContainer),fontSizeIcon:o.fontSizeSM,lineWidthFocus:4*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:sf(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:r,screenXLMin:r,screenXLMax:1599,screenXXL:i,screenXXLMin:i,boxShadowPopoverArrow:"2px 2px 5px rgba(0, 0, 0, 0.05)",boxShadowCard:`\n 0 1px 2px -2px ${new Cp("rgba(0, 0, 0, 0.16)").toRgbString()},\n 0 3px 6px 0 ${new Cp("rgba(0, 0, 0, 0.12)").toRgbString()},\n 0 5px 12px 4px ${new Cp("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)"}),n)}var cf=function(A,e){var t={};for(var n in A)Object.prototype.hasOwnProperty.call(A,n)&&e.indexOf(n)<0&&(t[n]=A[n]);if(null!=A&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(n=Object.getOwnPropertySymbols(A);o{const n=t.getDerivativeToken(A),{override:o}=e,r=cf(e,["override"]);let i=Object.assign(Object.assign({},n),{override:o});return i=gf(i),r&&Object.entries(r).forEach((A=>{let[e,t]=A;const{theme:n}=t,o=cf(t,["theme"]);let r=o;n&&(r=Ef(Object.assign(Object.assign({},i),o),{override:o},n)),i[e]=r})),i};function Cf(){const{token:A,hashed:e,theme:t,override:n,cssVar:o}=j.useContext(Wp),r=`${rf}-${e||""}`,i=t||$p,[a,s,l]=rC(i,[Pp,A],{salt:r,override:n,getComputedToken:Ef,formatToken:gf,cssVar:o&&{prefix:o.prefix,key:o.key,unitless:uf,ignore:Bf,preserve:Qf}});return[i,l,e?s:"",a,o]}function df(A,e,t){return e=uI(e),EI(A,BI()?Reflect.construct(e,t||[],uI(A).constructor):e.apply(A,t))}let If=nQ((function A(){eQ(this,A)}));const pf="CALC_UNIT",ff=new RegExp(pf,"g");function hf(A){return"number"==typeof A?`${A}${pf}`:A}let wf=function(A){function e(A){var t;return eQ(this,e),(t=df(this,e)).result="",A instanceof e?t.result=`(${A.result})`:"number"==typeof A?t.result=hf(A):"string"==typeof A&&(t.result=A),t}return cI(e,If),nQ(e,[{key:"add",value:function(A){return A instanceof e?this.result=`${this.result} + ${A.getResult()}`:"number"!=typeof A&&"string"!=typeof A||(this.result=`${this.result} + ${hf(A)}`),this.lowPriority=!0,this}},{key:"sub",value:function(A){return A instanceof e?this.result=`${this.result} - ${A.getResult()}`:"number"!=typeof A&&"string"!=typeof A||(this.result=`${this.result} - ${hf(A)}`),this.lowPriority=!0,this}},{key:"mul",value:function(A){return this.lowPriority&&(this.result=`(${this.result})`),A instanceof e?this.result=`${this.result} * ${A.getResult(!0)}`:"number"!=typeof A&&"string"!=typeof A||(this.result=`${this.result} * ${A}`),this.lowPriority=!1,this}},{key:"div",value:function(A){return this.lowPriority&&(this.result=`(${this.result})`),A instanceof e?this.result=`${this.result} / ${A.getResult(!0)}`:"number"!=typeof A&&"string"!=typeof A||(this.result=`${this.result} / ${A}`),this.lowPriority=!1,this}},{key:"getResult",value:function(A){return this.lowPriority||A?`(${this.result})`:this.result}},{key:"equal",value:function(A){const{unit:e=!0}=A||{};return this.result=this.result.replace(ff,e?"px":""),void 0!==this.lowPriority?`calc(${this.result})`:this.result}}])}(),Df=function(A){function e(A){var t;return eQ(this,e),(t=df(this,e)).result=0,A instanceof e?t.result=A.result:"number"==typeof A&&(t.result=A),t}return cI(e,If),nQ(e,[{key:"add",value:function(A){return A instanceof e?this.result+=A.result:"number"==typeof A&&(this.result+=A),this}},{key:"sub",value:function(A){return A instanceof e?this.result-=A.result:"number"==typeof A&&(this.result-=A),this}},{key:"mul",value:function(A){return A instanceof e?this.result*=A.result:"number"==typeof A&&(this.result*=A),this}},{key:"div",value:function(A){return A instanceof e?this.result/=A.result:"number"==typeof A&&(this.result/=A),this}},{key:"equal",value:function(){return this.result}}])}();function mf(A){var e=J.useRef();e.current=A;var t=J.useCallback((function(){for(var A,t=arguments.length,n=new Array(t),o=0;o1&&void 0!==arguments[1]&&arguments[1];return{boxSizing:"border-box",margin:0,padding:0,color:A.colorText,fontSize:A.fontSize,lineHeight:A.lineHeight,listStyle:"none",fontFamily:e?"inherit":A.fontFamily}},xf=A=>({a:{color:A.colorLink,textDecoration:A.linkDecoration,backgroundColor:"transparent",outline:"none",cursor:"pointer",transition:`color ${A.motionDurationSlow}`,"-webkit-text-decoration-skip":"objects","&:hover":{color:A.colorLinkHover},"&:active":{color:A.colorLinkActive},"&:active,\n &:hover":{textDecoration:A.linkHoverDecoration,outline:0},"&:focus":{textDecoration:A.linkFocusDecoration,outline:0},"&[disabled]":{color:A.colorTextDisabled,cursor:"not-allowed"}}}),Sf=(A,e,t,n)=>{const o=`[class^="${e}"], [class*=" ${e}"]`,r=t?`.${t}`:o,i={boxSizing:"border-box","&::before, &::after":{boxSizing:"border-box"}};let a={};return!1!==n&&(a={fontFamily:A.fontFamily,fontSize:A.fontSize}),{[r]:Object.assign(Object.assign(Object.assign({},a),i),{[o]:i})}},Ff=A=>({outline:`${UE(A.lineWidthFocus)} solid ${A.colorPrimaryBorder}`,outlineOffset:1,transition:"outline-offset 0s, outline 0s"}),Nf=A=>({"&:focus-visible":Object.assign({},Ff(A))});const Rf="undefined"!=typeof CSSINJS_STATISTIC;let Lf=!0;function Pf(){for(var A=arguments.length,e=new Array(A),t=0;t{Object.keys(A).forEach((e=>{Object.defineProperty(n,e,{configurable:!0,enumerable:!0,get:()=>A[e]})}))})),Lf=!0,n}const Hf={};function Gf(){}const Of=(A,e)=>{const[t,n]=Cf();return od({theme:t,token:n,hashId:"",path:["ant-design-icons",A],nonce:()=>null==e?void 0:e.nonce,layer:{name:"antd"}},(()=>[{[`.${A}`]: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"}}),{[`.${A} .${A}-icon`]:{display:"block"}})}]))},Uf=(A,e,t)=>{var n;return"function"==typeof t?t(Pf(e,null!==(n=e[A])&&void 0!==n?n:{})):null!=t?t:{}},Kf=(A,e,t,n)=>{const o=Object.assign({},e[A]);if(null==n?void 0:n.deprecatedTokens){const{deprecatedTokens:A}=n;A.forEach((A=>{let[e,t]=A;var n;((null==o?void 0:o[e])||(null==o?void 0:o[t]))&&(null!==(n=o[t])&&void 0!==n||(o[t]=null==o?void 0:o[e]))}))}const r=Object.assign(Object.assign({},t),o);return Object.keys(r).forEach((A=>{r[A]===e[A]&&delete r[A]})),r};function Yf(A,e,t){let n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};const o=Array.isArray(A)?A:[A,A],[r]=o,i=o.join("-");return function(A){let o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:A;const[a,s,l,g,c]=Cf(),{getPrefixCls:u,iconPrefixCls:B,csp:Q}=J.useContext(Xp),E=u(),C=c?"css":"js",d=(A=>{const e="css"===A?wf:Df;return A=>new e(A)})(C),{max:I,min:p}=function(A){return"js"===A?{max:Math.max,min:Math.min}:{max:function(){for(var A=arguments.length,e=new Array(A),t=0;tUE(A))).join(",")})`},min:function(){for(var A=arguments.length,e=new Array(A),t=0;tUE(A))).join(",")})`}}}(C),f={theme:a,token:g,hashId:l,nonce:()=>null==Q?void 0:Q.nonce,clientOnly:n.clientOnly,layer:{name:"antd"},order:n.order||-999};od(Object.assign(Object.assign({},f),{clientOnly:!1,path:["Shared",E]}),(()=>[{"&":xf(g)}])),Of(B,Q);const h=od(Object.assign(Object.assign({},f),{path:[i,A,B]}),(()=>{if(!1===n.injectStyle)return[];const{token:i,flush:a}=(A=>{let e,t=A,n=Gf;return Rf&&"undefined"!=typeof Proxy&&(e=new Set,t=new Proxy(A,{get:(A,t)=>(Lf&&e.add(t),A[t])}),n=(A,t)=>{var n;Hf[A]={global:Array.from(e),component:Object.assign(Object.assign({},null===(n=Hf[A])||void 0===n?void 0:n.component),t)}}),{token:t,keys:e,flush:n}})(g),u=Uf(r,s,t),Q=`.${A}`,C=Kf(r,s,u,{deprecatedTokens:n.deprecatedTokens});c&&Object.keys(u).forEach((A=>{u[A]=`var(${YE(A,((A,e)=>`${[e,A.replace(/([A-Z]+)([A-Z][a-z]+)/g,"$1-$2").replace(/([a-z])([A-Z])/g,"$1-$2")].filter(Boolean).join("-")}`)(r,c.prefix))})`}));const f=Pf(i,{componentCls:Q,prefixCls:A,iconCls:`.${B}`,antCls:`.${E}`,calc:d,max:I,min:p},c?u:C),h=e(f,{hashId:l,prefixCls:A,rootPrefixCls:E,iconPrefixCls:B});return a(r,C),[!1===n.resetStyle?null:Sf(f,A,o,n.resetFont),h]}));return[h,l]}}const Tf=(A,e,t,n)=>{const o=Yf(A,e,t,Object.assign({resetStyle:!1,order:-998},n));return A=>{let{prefixCls:e,rootCls:t=e}=A;return o(e,t),null}},Jf=(A,e,t)=>{function n(e){return`${A}${e.slice(0,1).toUpperCase()}${e.slice(1)}`}const{unitless:o={},injectStyle:r=!0}=null!=t?t:{},i={[n("zIndexPopup")]:!0};Object.keys(o).forEach((A=>{i[n(A)]=o[A]}));const a=o=>{let{rootCls:r,cssVar:a}=o;const[,s]=Cf();var l,g,c,u,B,Q,E,C,d,I,p,f,h,w;return l={path:[A],prefix:a.prefix,key:null==a?void 0:a.key,unitless:Object.assign(Object.assign({},uf),i),ignore:Bf,token:s,scope:r},g=()=>{const o=Uf(A,s,e),r=Kf(A,s,o,{deprecatedTokens:null==t?void 0:t.deprecatedTokens});return Object.keys(o).forEach((A=>{r[n(A)]=r[A],delete r[A]})),r},c=l.key,u=l.prefix,B=l.unitless,Q=l.ignore,E=l.token,C=l.scope,d=void 0===C?"":C,I=J.useContext(vE),p=I.cache.instanceId,f=I.container,h=E._tokenKey,w=[].concat(XQ(l.path),[c,d,h]),XE(id,w,(function(){var A=g(),e=WQ(JE(A,c,{prefix:u,unitless:B,ignore:Q,scope:d}),2),t=e[0],n=e[1];return[t,n,ed(w,n),c]}),(function(A){var e=WQ(A,3)[2];OE&&gE(e,{mark:mE})}),(function(A){var e=WQ(A,3),t=e[1],n=e[2];if(t){var o=cE(t,n,{mark:mE,prepend:"queue",attachTo:f,priority:-999});o[yE]=p,o.setAttribute(DE,c)}})),null};return e=>{const[,,,,t]=Cf();return[n=>r&&t?j.createElement(j.Fragment,null,j.createElement(a,{rootCls:e,cssVar:t,component:A}),n):n,null==t?void 0:t.key]}},jf=(A,e,t,n)=>{const o=Yf(A,e,t,n),r=Jf(Array.isArray(A)?A[0]:A,t,n);return function(A){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:A;const[,t]=o(A,e),[n,i]=r(e);return[n,t,i]}};function qf(A,e){return of.reduce(((t,n)=>{const o=A[`${n}1`],r=A[`${n}3`],i=A[`${n}6`],a=A[`${n}7`];return Object.assign(Object.assign({},t),e(n,{lightColor:o,lightBorderColor:r,darkColor:i,textColor:a}))}),{})}const $f=Object.assign({},q),{useId:zf}=$f,Wf=void 0===zf?()=>"":zf;var _f=["children"],Xf=J.createContext({});function Vf(A){var e=A.children,t=Mc(A,_f);return J.createElement(Xf.Provider,{value:t},e)}var Zf=function(A){cI(t,J.Component);var e=CI(t);function t(){return eQ(this,t),e.apply(this,arguments)}return nQ(t,[{key:"render",value:function(){return this.props.children}}]),t}(),Ah="none",eh="appear",th="enter",nh="leave",oh="none",rh="prepare",ih="start",ah="active",sh="end",lh="prepared";function gh(A,e){var t={};return t[A.toLowerCase()]=e.toLowerCase(),t["Webkit".concat(A)]="webkit".concat(e),t["Moz".concat(A)]="moz".concat(e),t["ms".concat(A)]="MS".concat(e),t["O".concat(A)]="o".concat(e.toLowerCase()),t}var ch,uh,Bh,Qh=(ch=ZQ(),uh="undefined"!=typeof window?window:{},Bh={animationend:gh("Animation","AnimationEnd"),transitionend:gh("Transition","TransitionEnd")},ch&&("AnimationEvent"in uh||delete Bh.animationend.animation,"TransitionEvent"in uh||delete Bh.transitionend.transition),Bh),Eh={};if(ZQ()){var Ch=document.createElement("div");Eh=Ch.style}var dh={};function Ih(A){if(dh[A])return dh[A];var e=Qh[A];if(e)for(var t=Object.keys(e),n=t.length,o=0;o1&&void 0!==arguments[1]?arguments[1]:2;e();var r=kI((function(){o<=1?n({isCanceled:function(){return r!==A.current}}):t(n,o-1)}));A.current=r},e]}(),a=WQ(i,2),s=a[0],l=a[1];var g=e?kh:vh;return bh((function(){if(o!==oh&&o!==sh){var A=g.indexOf(o),e=g[A+1],n=t(o);n===Mh?r(e,!0):e&&s((function(A){function t(){A.isCanceled()||r(e,!0)}!0===n?t():Promise.resolve(n).then(t)}))}}),[A,o]),J.useEffect((function(){return function(){l()}}),[]),[function(){r(rh,!0)},o]};const Nh=function(A){var e=A;"object"===mc(A)&&(e=A.transitionSupport);var t=J.forwardRef((function(A,t){var n=A.visible,o=void 0===n||n,r=A.removeOnLeave,i=void 0===r||r,a=A.forceRender,s=A.children,l=A.motionName,g=A.leavedClassName,c=A.eventProps,u=function(A,t){return!(!A.motionName||!e||!1===t)}(A,J.useContext(Xf).motion),B=J.useRef(),Q=J.useRef();var E=function(A,e,t,n){var o=n.motionEnter,r=void 0===o||o,i=n.motionAppear,a=void 0===i||i,s=n.motionLeave,l=void 0===s||s,g=n.motionDeadline,c=n.motionLeaveImmediately,u=n.onAppearPrepare,B=n.onEnterPrepare,Q=n.onLeavePrepare,E=n.onAppearStart,C=n.onEnterStart,d=n.onLeaveStart,I=n.onAppearActive,p=n.onEnterActive,f=n.onLeaveActive,h=n.onAppearEnd,w=n.onEnterEnd,D=n.onLeaveEnd,m=n.onVisibleChanged,y=WQ(yf(),2),b=y[0],v=y[1],k=WQ(yf(Ah),2),M=k[0],x=k[1],S=WQ(yf(null),2),F=S[0],N=S[1],R=J.useRef(!1),L=J.useRef(null);function P(){return t()}var H=J.useRef(!1);function G(){x(Ah,!0),N(null,!0)}function O(A){var e=P();if(!A||A.deadline||A.target===e){var t,n=H.current;M===eh&&n?t=null==h?void 0:h(e,A):M===th&&n?t=null==w?void 0:w(e,A):M===nh&&n&&(t=null==D?void 0:D(e,A)),M!==Ah&&n&&!1!==t&&G()}}var U=WQ(yh(O),1)[0],K=function(A){var e,t,n;switch(A){case eh:return bc(e={},rh,u),bc(e,ih,E),bc(e,ah,I),e;case th:return bc(t={},rh,B),bc(t,ih,C),bc(t,ah,p),t;case nh:return bc(n={},rh,Q),bc(n,ih,d),bc(n,ah,f),n;default:return{}}},Y=J.useMemo((function(){return K(M)}),[M]),T=WQ(Fh(M,!A,(function(A){if(A===rh){var e=Y[rh];return e?e(P()):Mh}var t;return q in Y&&N((null===(t=Y[q])||void 0===t?void 0:t.call(Y,P(),null))||null),q===ah&&(U(P()),g>0&&(clearTimeout(L.current),L.current=setTimeout((function(){O({deadline:!0})}),g))),q===lh&&G(),xh})),2),j=T[0],q=T[1],$=Sh(q);H.current=$,bh((function(){v(e);var t,n=R.current;R.current=!0,!n&&e&&a&&(t=eh),n&&e&&r&&(t=th),(n&&!e&&l||!n&&c&&!e&&l)&&(t=nh);var o=K(t);t&&(A||o[rh])?(x(t),j()):x(Ah)}),[e]),J.useEffect((function(){(M===eh&&!a||M===th&&!r||M===nh&&!l)&&x(Ah)}),[a,r,l]),J.useEffect((function(){return function(){R.current=!1,clearTimeout(L.current)}}),[]);var z=J.useRef(!1);J.useEffect((function(){b&&(z.current=!0),void 0!==b&&M===Ah&&((z.current||b)&&(null==m||m(b)),z.current=!0)}),[b,M]);var W=F;return Y[rh]&&q===ih&&(W=kc({transition:"none"},W)),[M,q,W,null!=b?b:e]}(u,o,(function(){try{return B.current instanceof HTMLElement?B.current:Rd(Q.current)}catch(R3){return null}}),A),C=WQ(E,4),d=C[0],I=C[1],p=C[2],f=C[3],h=J.useRef(f);f&&(h.current=!0);var w,D=J.useCallback((function(A){B.current=A,Ld(t,A)}),[t]),m=kc(kc({},c),{},{visible:o});if(s)if(d===Ah)w=f?s(kc({},m),D):!i&&h.current&&g?s(kc(kc({},m),{},{className:g}),D):a||!i&&!g?s(kc(kc({},m),{},{style:{display:"none"}}),D):null;else{var y,b;I===rh?b="prepare":Sh(I)?b="active":I===ih&&(b="start");var v=mh(l,"".concat(d,"-").concat(b));w=s(kc(kc({},m),{},{className:ud(mh(l,d),(y={},bc(y,v,v&&b),bc(y,l,"string"==typeof l),y)),style:p}),D)}else w=null;J.isValidElement(w)&&Gd(w)&&(w.ref||(w=J.cloneElement(w,{ref:D})));return J.createElement(Zf,{ref:Q},w)}));return t.displayName="CSSMotion",t}(hh);var Rh="add",Lh="keep",Ph="remove",Hh="removed";function Gh(A){var e;return kc(kc({},e=A&&"object"===mc(A)&&"key"in A?A:{key:A}),{},{key:String(e.key)})}function Oh(){return(arguments.length>0&&void 0!==arguments[0]?arguments[0]:[]).map(Gh)}var Uh=["component","children","onVisibleChanged","onAllRemoved"],Kh=["status"],Yh=["eventProps","visible","children","motionName","motionAppear","motionEnter","motionLeave","motionLeaveImmediately","motionDeadline","removeOnLeave","leavedClassName","onAppearPrepare","onAppearStart","onAppearActive","onAppearEnd","onEnterStart","onEnterActive","onEnterEnd","onLeaveStart","onLeaveActive","onLeaveEnd"];const Th=function(A){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Nh,t=function(A){cI(n,J.Component);var t=CI(n);function n(){var A;eQ(this,n);for(var e=arguments.length,o=new Array(e),r=0;r0&&void 0!==arguments[0]?arguments[0]:[],e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],t=[],n=0,o=e.length,r=Oh(A),i=Oh(e);r.forEach((function(A){for(var e=!1,r=n;r1})).forEach((function(A){(t=t.filter((function(e){var t=e.key,n=e.status;return t!==A||n!==Ph}))).forEach((function(e){e.key===A&&(e.status=Lh)}))})),t}(n,o);return{keyEntities:r.filter((function(A){var e=n.find((function(e){var t=e.key;return A.key===t}));return!e||e.status!==Hh||A.status!==Ph}))}}}]),n}();return bc(t,"defaultProps",{component:"div"}),t}(hh);function Jh(A){const{children:e}=A,[,t]=Cf(),{motion:n}=t,o=J.useRef(!1);return o.current=o.current||!1===n,o.current?J.createElement(Vf,{motion:n},e):e}const jh=()=>null;const qh=["getTargetContainer","getPopupContainer","renderEmpty","input","pagination","form","select","button"];let $h,zh,Wh,_h;function Xh(){return $h||"ant"}function Vh(){return zh||_p}const Zh=()=>({getPrefixCls:(A,e)=>e||(A?`${Xh()}-${A}`:Xh()),getIconPrefixCls:Vh,getRootPrefixCls:()=>$h||Xh(),getTheme:()=>Wh,holderRender:_h}),Aw=A=>{const{children:e,csp:t,autoInsertSpaceInButton:n,alert:o,anchor:r,form:i,locale:a,componentSize:s,direction:l,space:g,virtual:c,dropdownMatchSelectWidth:u,popupMatchSelectWidth:B,popupOverflow:Q,legacyLocale:E,parentContext:C,iconPrefixCls:d,theme:I,componentDisabled:p,segmented:f,statistic:h,spin:w,calendar:D,carousel:m,cascader:y,collapse:b,typography:v,checkbox:k,descriptions:M,divider:x,drawer:S,skeleton:F,steps:N,image:R,layout:L,list:P,mentions:H,modal:G,progress:O,result:U,slider:K,breadcrumb:Y,menu:T,pagination:j,input:q,textArea:$,empty:z,badge:W,radio:_,rate:X,switch:V,transfer:Z,avatar:AA,message:eA,tag:tA,table:nA,card:oA,tabs:rA,timeline:iA,timePicker:aA,upload:sA,notification:lA,tree:gA,colorPicker:cA,datePicker:uA,rangePicker:BA,flex:QA,wave:EA,dropdown:CA,warning:dA,tour:IA,floatButtonGroup:pA}=A,fA=J.useCallback(((e,t)=>{const{prefixCls:n}=A;if(t)return t;const o=n||C.getPrefixCls("");return e?`${o}-${e}`:o}),[C.getPrefixCls,A.prefixCls]),hA=d||C.iconPrefixCls||_p,wA=t||C.csp;Of(hA,wA);const DA=function(A,e,t){var n;OI();const o=A||{},r=!1!==o.inherit&&e?e:Object.assign(Object.assign({},zp),{hashed:null!==(n=null==e?void 0:e.hashed)&&void 0!==n?n:zp.hashed,cssVar:null==e?void 0:e.cssVar}),i=Wf();return uE((()=>{var n,a;if(!A)return e;const s=Object.assign({},r.components);Object.keys(A.components||{}).forEach((e=>{s[e]=Object.assign(Object.assign({},s[e]),A.components[e])}));const l=`css-var-${i.replace(/:/g,"")}`,g=(null!==(n=o.cssVar)&&void 0!==n?n:r.cssVar)&&Object.assign(Object.assign(Object.assign({prefix:null==t?void 0:t.prefixCls},"object"==typeof r.cssVar?r.cssVar:{}),"object"==typeof o.cssVar?o.cssVar:{}),{key:"object"==typeof o.cssVar&&(null===(a=o.cssVar)||void 0===a?void 0:a.key)||l});return Object.assign(Object.assign(Object.assign({},r),o),{token:Object.assign(Object.assign({},r.token),o.token),components:s,cssVar:g})}),[o,r],((A,e)=>A.some(((A,t)=>!IE(A,e[t],!0)))))}(I,C.theme,{prefixCls:fA("")}),mA={csp:wA,autoInsertSpaceInButton:n,alert:o,anchor:r,locale:a||E,direction:l,space:g,virtual:c,popupMatchSelectWidth:null!=B?B:u,popupOverflow:Q,getPrefixCls:fA,iconPrefixCls:hA,theme:DA,segmented:f,statistic:h,spin:w,calendar:D,carousel:m,cascader:y,collapse:b,typography:v,checkbox:k,descriptions:M,divider:x,drawer:S,skeleton:F,steps:N,image:R,input:q,textArea:$,layout:L,list:P,mentions:H,modal:G,progress:O,result:U,slider:K,breadcrumb:Y,menu:T,pagination:j,empty:z,badge:W,radio:_,rate:X,switch:V,transfer:Z,avatar:AA,message:eA,tag:tA,table:nA,card:oA,tabs:rA,timeline:iA,timePicker:aA,upload:sA,notification:lA,tree:gA,colorPicker:cA,datePicker:uA,rangePicker:BA,flex:QA,wave:EA,dropdown:CA,warning:dA,tour:IA,floatButtonGroup:pA},yA=Object.assign({},C);Object.keys(mA).forEach((A=>{void 0!==mA[A]&&(yA[A]=mA[A])})),qh.forEach((e=>{const t=A[e];t&&(yA[e]=t)})),void 0!==n&&(yA.button=Object.assign({autoInsertSpace:n},yA.button));const bA=uE((()=>yA),yA,((A,e)=>{const t=Object.keys(A),n=Object.keys(e);return t.length!==n.length||t.some((t=>A[t]!==e[t]))})),vA=J.useMemo((()=>({prefixCls:hA,csp:wA})),[hA,wA]);let kA=J.createElement(J.Fragment,null,J.createElement(jh,{dropdownMatchSelectWidth:u}),e);const MA=J.useMemo((()=>{var A,e,t,n;return PI((null===(A=JI.Form)||void 0===A?void 0:A.defaultValidateMessages)||{},(null===(t=null===(e=bA.locale)||void 0===e?void 0:e.Form)||void 0===t?void 0:t.defaultValidateMessages)||{},(null===(n=bA.form)||void 0===n?void 0:n.validateMessages)||{},(null==i?void 0:i.validateMessages)||{})}),[bA,null==i?void 0:i.validateMessages]);Object.keys(MA).length>0&&(kA=J.createElement(UI.Provider,{value:MA},kA)),a&&(kA=J.createElement(XI,{locale:a,_ANT_MARK__:"internalMark"},kA)),(hA||wA)&&(kA=J.createElement(MI.Provider,{value:vA},kA)),s&&(kA=J.createElement(nf,{size:s},kA)),kA=J.createElement(Jh,null,kA);const xA=J.useMemo((()=>{const A=DA||{},{algorithm:e,token:t,components:n,cssVar:o}=A,r=function(A,e){var t={};for(var n in A)Object.prototype.hasOwnProperty.call(A,n)&&e.indexOf(n)<0&&(t[n]=A[n]);if(null!=A&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(n=Object.getOwnPropertySymbols(A);o0)?NE(e):$p,a={};Object.entries(n||{}).forEach((A=>{let[e,t]=A;const n=Object.assign({},t);"algorithm"in n&&(!0===n.algorithm?n.theme=i:(Array.isArray(n.algorithm)||"function"==typeof n.algorithm)&&(n.theme=NE(n.algorithm)),delete n.algorithm),a[e]=n}));const s=Object.assign(Object.assign({},Pp),t);return Object.assign(Object.assign({},r),{theme:i,token:s,components:a,override:Object.assign({override:s},a),cssVar:o})}),[DA]);return I&&(kA=J.createElement(Wp.Provider,{value:xA},kA)),bA.warning&&(kA=J.createElement(GI.Provider,{value:bA.warning},kA)),void 0!==p&&(kA=J.createElement(ef,{disabled:p},kA)),J.createElement(Xp.Provider,{value:bA},kA)},ew=A=>{const e=J.useContext(Xp),t=J.useContext(WI);return J.createElement(Aw,Object.assign({parentContext:e,legacyLocale:t},A))};ew.ConfigContext=Xp,ew.SizeContext=tf,ew.config=A=>{const{prefixCls:e,iconPrefixCls:t,theme:n,holderRender:o}=A;void 0!==e&&($h=e),void 0!==t&&(zh=t),"holderRender"in A&&(_h=o),n&&(!function(A){return Object.keys(A).some((A=>A.endsWith("Color")))}(n)?Wh=n:Zp(Xh(),n))},ew.useConfig=function(){return{componentDisabled:J.useContext(Af),componentSize:J.useContext(tf)}},Object.defineProperty(ew,"SizeContext",{get:()=>tf});const tw=ew;var nw={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm193.5 301.7l-210.6 292a31.8 31.8 0 01-51.7 0L318.5 484.9c-3.8-5.3 0-12.7 6.5-12.7h46.9c10.2 0 19.9 4.9 25.9 13.3l71.2 98.8 157.2-218c6-8.3 15.6-13.3 25.9-13.3H699c6.5 0 10.3 7.4 6.5 12.7z"}}]},name:"check-circle",theme:"filled"};function ow(A){var e;return null==A||null===(e=A.getRootNode)||void 0===e?void 0:e.call(A)}function rw(A){return function(A){return ow(A)instanceof ShadowRoot}(A)?ow(A):null}function iw(A){return"object"===mc(A)&&"string"==typeof A.name&&"string"==typeof A.theme&&("object"===mc(A.icon)||"function"==typeof A.icon)}function aw(){var A=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return Object.keys(A).reduce((function(e,t){var n,o=A[t];if("class"===t)e.className=o,delete e.class;else delete e[t],e[(n=t,n.replace(/-(.)/g,(function(A,e){return e.toUpperCase()})))]=o;return e}),{})}function sw(A,e,t){return t?j.createElement(A.tag,kc(kc({key:e},aw(A.attrs)),t),(A.children||[]).map((function(t,n){return sw(t,"".concat(e,"-").concat(A.tag,"-").concat(n))}))):j.createElement(A.tag,kc({key:e},aw(A.attrs)),(A.children||[]).map((function(t,n){return sw(t,"".concat(e,"-").concat(A.tag,"-").concat(n))})))}function lw(A){return xp(A)[0]}function gw(A){return A?Array.isArray(A)?A:[A]:[]}var cw=["icon","className","onClick","style","primaryColor","secondaryColor"],uw={primaryColor:"#333",secondaryColor:"#E6E6E6",calculated:!1};var Bw=function(A){var e,t,n,o,r,i,a,s=A.icon,l=A.className,g=A.onClick,c=A.style,u=A.primaryColor,B=A.secondaryColor,Q=Mc(A,cw),E=J.useRef(),C=uw;if(u&&(C={primaryColor:u,secondaryColor:B||lw(u)}),e=E,t=J.useContext(MI),n=t.csp,o=t.prefixCls,r="\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",o&&(r=r.replace(/anticon/g,o)),J.useEffect((function(){var A=rw(e.current);cE(r,"@ant-design-icons",{prepend:!0,csp:n,attachTo:A})}),[]),i=iw(s),a="icon should be icon definiton, but got ".concat(s),dE(i,"[@ant-design/icons] ".concat(a)),!iw(s))return null;var d=s;return d&&"function"==typeof d.icon&&(d=kc(kc({},d),{},{icon:d.icon(C.primaryColor,C.secondaryColor)})),sw(d.icon,"svg-".concat(d.name),kc(kc({className:l,onClick:g,style:c,"data-icon":d.name,width:"1em",height:"1em",fill:"currentColor","aria-hidden":"true"},Q),{},{ref:E}))};function Qw(A){var e=WQ(gw(A),2),t=e[0],n=e[1];return Bw.setTwoToneColors({primaryColor:t,secondaryColor:n})}Bw.displayName="IconReact",Bw.getTwoToneColors=function(){return kc({},uw)},Bw.setTwoToneColors=function(A){var e=A.primaryColor,t=A.secondaryColor;uw.primaryColor=e,uw.secondaryColor=t||lw(e),uw.calculated=!!t};var Ew=["className","icon","spin","rotate","tabIndex","onClick","twoToneColor"];Qw(Rp.primary);var Cw=J.forwardRef((function(A,e){var t=A.className,n=A.icon,o=A.spin,r=A.rotate,i=A.tabIndex,a=A.onClick,s=A.twoToneColor,l=Mc(A,Ew),g=J.useContext(MI),c=g.prefixCls,u=void 0===c?"anticon":c,B=g.rootClassName,Q=ud(B,u,bc(bc({},"".concat(u,"-").concat(n.name),!!n.name),"".concat(u,"-spin"),!!o||"loading"===n.name),t),E=i;void 0===E&&a&&(E=-1);var C=r?{msTransform:"rotate(".concat(r,"deg)"),transform:"rotate(".concat(r,"deg)")}:void 0,d=WQ(gw(s),2),I=d[0],p=d[1];return J.createElement("span",BQ({role:"img","aria-label":n.name},l,{ref:e,tabIndex:E,onClick:a,className:Q}),J.createElement(Bw,{icon:n,primaryColor:I,secondaryColor:p,style:C}))}));Cw.displayName="AntdIcon",Cw.getTwoToneColor=function(){var A=Bw.getTwoToneColors();return A.calculated?[A.primaryColor,A.secondaryColor]:A.primaryColor},Cw.setTwoToneColor=Qw;var dw=function(A,e){return J.createElement(Cw,BQ({},A,{ref:e,icon:nw}))},Iw=J.forwardRef(dw),pw={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"},fw=function(A,e){return J.createElement(Cw,BQ({},A,{ref:e,icon:pw}))},hw=J.forwardRef(fw),ww={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"},Dw=function(A,e){return J.createElement(Cw,BQ({},A,{ref:e,icon:ww}))},mw=J.forwardRef(Dw),yw={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"},bw=function(A,e){return J.createElement(Cw,BQ({},A,{ref:e,icon:yw}))},vw=J.forwardRef(bw),kw={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"},Mw=function(A,e){return J.createElement(Cw,BQ({},A,{ref:e,icon:kw}))},xw=J.forwardRef(Mw),Sw="".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]+/),Fw="aria-",Nw="data-";function Rw(A,e){return 0===A.indexOf(e)}function Lw(A){var e,t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];e=!1===t?{aria:!0,data:!0,attr:!0}:!0===t?{aria:!0}:kc({},t);var n={};return Object.keys(A).forEach((function(t){(e.aria&&("role"===t||Rw(t,Fw))||e.data&&Rw(t,Nw)||e.attr&&Sw.includes(t))&&(n[t]=A[t])})),n}function Pw(A){return A&&j.isValidElement(A)&&A.type===j.Fragment}const Hw=(A,e,t)=>j.isValidElement(A)?j.cloneElement(A,"function"==typeof t?t(A.props||{}):t):e;function Gw(A,e){return Hw(A,A,e)}const Ow=(A,e,t,n,o)=>({background:A,border:`${UE(n.lineWidth)} ${n.lineType} ${e}`,[`${o}-icon`]:{color:t}}),Uw=A=>{const{componentCls:e,motionDurationSlow:t,marginXS:n,marginSM:o,fontSize:r,fontSizeLG:i,lineHeight:a,borderRadiusLG:s,motionEaseInOutCirc:l,withDescriptionIconSize:g,colorText:c,colorTextHeading:u,withDescriptionPadding:B,defaultPadding:Q}=A;return{[e]:Object.assign(Object.assign({},Mf(A)),{position:"relative",display:"flex",alignItems:"center",padding:Q,wordWrap:"break-word",borderRadius:s,[`&${e}-rtl`]:{direction:"rtl"},[`${e}-content`]:{flex:1,minWidth:0},[`${e}-icon`]:{marginInlineEnd:n,lineHeight:0},"&-description":{display:"none",fontSize:r,lineHeight:a},"&-message":{color:u},[`&${e}-motion-leave`]:{overflow:"hidden",opacity:1,transition:`max-height ${t} ${l}, opacity ${t} ${l},\n padding-top ${t} ${l}, padding-bottom ${t} ${l},\n margin-bottom ${t} ${l}`},[`&${e}-motion-leave-active`]:{maxHeight:0,marginBottom:"0 !important",paddingTop:0,paddingBottom:0,opacity:0}}),[`${e}-with-description`]:{alignItems:"flex-start",padding:B,[`${e}-icon`]:{marginInlineEnd:o,fontSize:g,lineHeight:0},[`${e}-message`]:{display:"block",marginBottom:n,color:u,fontSize:i},[`${e}-description`]:{display:"block",color:c}},[`${e}-banner`]:{marginBottom:0,border:"0 !important",borderRadius:0}}},Kw=A=>{const{componentCls:e,colorSuccess:t,colorSuccessBorder:n,colorSuccessBg:o,colorWarning:r,colorWarningBorder:i,colorWarningBg:a,colorError:s,colorErrorBorder:l,colorErrorBg:g,colorInfo:c,colorInfoBorder:u,colorInfoBg:B}=A;return{[e]:{"&-success":Ow(o,n,t,A,e),"&-info":Ow(B,u,c,A,e),"&-warning":Ow(a,i,r,A,e),"&-error":Object.assign(Object.assign({},Ow(g,l,s,A,e)),{[`${e}-description > pre`]:{margin:0,padding:0}})}}},Yw=A=>{const{componentCls:e,iconCls:t,motionDurationMid:n,marginXS:o,fontSizeIcon:r,colorIcon:i,colorIconHover:a}=A;return{[e]:{"&-action":{marginInlineStart:o},[`${e}-close-icon`]:{marginInlineStart:o,padding:0,overflow:"hidden",fontSize:r,lineHeight:UE(r),backgroundColor:"transparent",border:"none",outline:"none",cursor:"pointer",[`${t}-close`]:{color:i,transition:`color ${n}`,"&:hover":{color:a}}},"&-close-text":{color:i,transition:`color ${n}`,"&:hover":{color:a}}}}},Tw=jf("Alert",(A=>[Uw(A),Kw(A),Yw(A)]),(A=>({withDescriptionIconSize:A.fontSizeHeading3,defaultPadding:`${A.paddingContentVerticalSM}px 12px`,withDescriptionPadding:`${A.paddingMD}px ${A.paddingContentHorizontalLG}px`})));var Jw=function(A,e){var t={};for(var n in A)Object.prototype.hasOwnProperty.call(A,n)&&e.indexOf(n)<0&&(t[n]=A[n]);if(null!=A&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(n=Object.getOwnPropertySymbols(A);o{const{icon:e,prefixCls:t,type:n}=A,o=jw[n]||null;return e?Hw(e,J.createElement("span",{className:`${t}-icon`},e),(()=>({className:ud(`${t}-icon`,{[e.props.className]:e.props.className})}))):J.createElement(o,{className:`${t}-icon`})},$w=A=>{const{isClosable:e,prefixCls:t,closeIcon:n,handleClose:o,ariaProps:r}=A,i=!0===n||void 0===n?J.createElement(mw,null):n;return e?J.createElement("button",Object.assign({type:"button",onClick:o,className:`${t}-close-icon`,tabIndex:0},r),i):null},zw=J.forwardRef(((A,e)=>{const{description:t,prefixCls:n,message:o,banner:r,className:i,rootClassName:a,style:s,onMouseEnter:l,onMouseLeave:g,onClick:c,afterClose:u,showIcon:B,closable:Q,closeText:E,closeIcon:C,action:d,id:I}=A,p=Jw(A,["description","prefixCls","message","banner","className","rootClassName","style","onMouseEnter","onMouseLeave","onClick","afterClose","showIcon","closable","closeText","closeIcon","action","id"]),[f,h]=J.useState(!1),w=J.useRef(null);J.useImperativeHandle(e,(()=>({nativeElement:w.current})));const{getPrefixCls:D,direction:m,alert:y}=J.useContext(Xp),b=D("alert",n),[v,k,M]=Tw(b),x=e=>{var t;h(!0),null===(t=A.onClose)||void 0===t||t.call(A,e)},S=J.useMemo((()=>void 0!==A.type?A.type:r?"warning":"info"),[A.type,r]),F=J.useMemo((()=>!("object"!=typeof Q||!Q.closeIcon)||(!!E||("boolean"==typeof Q?Q:!1!==C&&null!=C||!!(null==y?void 0:y.closable)))),[E,C,Q,null==y?void 0:y.closable]),N=!(!r||void 0!==B)||B,R=ud(b,`${b}-${S}`,{[`${b}-with-description`]:!!t,[`${b}-no-icon`]:!N,[`${b}-banner`]:!!r,[`${b}-rtl`]:"rtl"===m},null==y?void 0:y.className,i,a,M,k),L=Lw(p,{aria:!0,data:!0}),P=J.useMemo((()=>{var A,e;return"object"==typeof Q&&Q.closeIcon?Q.closeIcon:E||(void 0!==C?C:"object"==typeof(null==y?void 0:y.closable)&&(null===(A=null==y?void 0:y.closable)||void 0===A?void 0:A.closeIcon)?null===(e=null==y?void 0:y.closable)||void 0===e?void 0:e.closeIcon:null==y?void 0:y.closeIcon)}),[C,Q,E,null==y?void 0:y.closeIcon]),H=J.useMemo((()=>{const A=null!=Q?Q:null==y?void 0:y.closable;if("object"==typeof A){return Jw(A,["closeIcon"])}return{}}),[Q,null==y?void 0:y.closable]);return v(J.createElement(Nh,{visible:!f,motionName:`${b}-motion`,motionAppear:!1,motionEnter:!1,onLeaveStart:A=>({maxHeight:A.offsetHeight}),onLeaveEnd:u},(e=>{let{className:n,style:r}=e;return J.createElement("div",Object.assign({id:I,ref:w,"data-show":!f,className:ud(R,n),style:Object.assign(Object.assign(Object.assign({},null==y?void 0:y.style),s),r),onMouseEnter:l,onMouseLeave:g,onClick:c,role:"alert"},L),N?J.createElement(qw,{description:t,icon:A.icon,prefixCls:b,type:S}):null,J.createElement("div",{className:`${b}-content`},o?J.createElement("div",{className:`${b}-message`},o):null,t?J.createElement("div",{className:`${b}-description`},t):null),d?J.createElement("div",{className:`${b}-action`},d):null,J.createElement($w,{isClosable:F,prefixCls:b,closeIcon:P,handleClose:x,ariaProps:H}))})))}));let Ww=function(A){function e(){var A;return eQ(this,e),(A=df(this,e,arguments)).state={error:void 0,info:{componentStack:""}},A}return cI(e,J.Component),nQ(e,[{key:"componentDidCatch",value:function(A,e){this.setState({error:A,info:e})}},{key:"render",value:function(){const{message:A,description:e,id:t,children:n}=this.props,{error:o,info:r}=this.state,i=r&&r.componentStack?r.componentStack:null,a=void 0===A?(o||"").toString():A,s=void 0===e?i:e;return o?J.createElement(zw,{id:t,type:"error",message:a,description:J.createElement("pre",{style:{fontSize:"0.9em",overflowX:"auto"}},s)}):n}}])}();const _w=zw;_w.ErrorBoundary=Ww;const Xw=A=>"object"==typeof A&&null!=A&&1===A.nodeType,Vw=(A,e)=>(!e||"hidden"!==A)&&"visible"!==A&&"clip"!==A,Zw=(A,e)=>{if(A.clientHeight{const e=(A=>{if(!A.ownerDocument||!A.ownerDocument.defaultView)return null;try{return A.ownerDocument.defaultView.frameElement}catch(e){return null}})(A);return!!e&&(e.clientHeightre||r>A&&i=e&&a>=t?r-A-n:i>e&&at?i-e+o:0,eD=A=>{const e=A.parentElement;return null==e?A.getRootNode().host||null:e},tD=(A,e)=>{var t,n,o,r;if("undefined"==typeof document)return[];const{scrollMode:i,block:a,inline:s,boundary:l,skipOverflowHiddenElements:g}=e,c="function"==typeof l?l:A=>A!==l;if(!Xw(A))throw new TypeError("Invalid target");const u=document.scrollingElement||document.documentElement,B=[];let Q=A;for(;Xw(Q)&&c(Q);){if(Q=eD(Q),Q===u){B.push(Q);break}null!=Q&&Q===document.body&&Zw(Q)&&!Zw(document.documentElement)||null!=Q&&Zw(Q,g)&&B.push(Q)}const E=null!=(n=null==(t=window.visualViewport)?void 0:t.width)?n:innerWidth,C=null!=(r=null==(o=window.visualViewport)?void 0:o.height)?r:innerHeight,{scrollX:d,scrollY:I}=window,{height:p,width:f,top:h,right:w,bottom:D,left:m}=A.getBoundingClientRect(),{top:y,right:b,bottom:v,left:k}=(A=>{const e=window.getComputedStyle(A);return{top:parseFloat(e.scrollMarginTop)||0,right:parseFloat(e.scrollMarginRight)||0,bottom:parseFloat(e.scrollMarginBottom)||0,left:parseFloat(e.scrollMarginLeft)||0}})(A);let M="start"===a||"nearest"===a?h-y:"end"===a?D+v:h+p/2-y+v,x="center"===s?m+f/2-k+b:"end"===s?w+b:m-k;const S=[];for(let F=0;F=0&&m>=0&&D<=C&&w<=E&&h>=n&&D<=r&&m>=l&&w<=o)return S;const g=getComputedStyle(A),c=parseInt(g.borderLeftWidth,10),Q=parseInt(g.borderTopWidth,10),y=parseInt(g.borderRightWidth,10),b=parseInt(g.borderBottomWidth,10);let v=0,k=0;const N="offsetWidth"in A?A.offsetWidth-A.clientWidth-c-y:0,R="offsetHeight"in A?A.offsetHeight-A.clientHeight-Q-b:0,L="offsetWidth"in A?0===A.offsetWidth?0:t/A.offsetWidth:0,P="offsetHeight"in A?0===A.offsetHeight?0:e/A.offsetHeight:0;if(u===A)v="start"===a?M:"end"===a?M-C:"nearest"===a?AD(I,I+C,C,Q,b,I+M,I+M+p,p):M-C/2,k="start"===s?x:"center"===s?x-E/2:"end"===s?x-E:AD(d,d+E,E,c,y,d+x,d+x+f,f),v=Math.max(0,v+I),k=Math.max(0,k+d);else{v="start"===a?M-n-Q:"end"===a?M-r+b+R:"nearest"===a?AD(n,r,e,Q,b+R,M,M+p,p):M-(n+e/2)+R/2,k="start"===s?x-l-c:"center"===s?x-(l+t/2)+N/2:"end"===s?x-o+y+N:AD(l,o,t,c,y+N,x,x+f,f);const{scrollLeft:i,scrollTop:g}=A;v=0===P?0:Math.max(0,Math.min(g+v/P,A.scrollHeight-e/P+R)),k=0===L?0:Math.max(0,Math.min(i+k/L,A.scrollWidth-t/L+N)),M+=g-v,x+=i-k}S.push({el:A,top:v,left:k})}return S},nD=A=>{return!1===A?{block:"end",inline:"nearest"}:(e=A)===Object(e)&&0!==Object.keys(e).length?A:{block:"start",inline:"nearest"};var e};const oD=A=>{const[,,,,e]=Cf();return e?`${A}-css-var`:""};var rD={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(A){var e=A.keyCode;if(A.altKey&&!A.ctrlKey||A.metaKey||e>=rD.F1&&e<=rD.F12)return!1;switch(e){case rD.ALT:case rD.CAPS_LOCK:case rD.CONTEXT_MENU:case rD.CTRL:case rD.DOWN:case rD.END:case rD.ESC:case rD.HOME:case rD.INSERT:case rD.LEFT:case rD.MAC_FF_META:case rD.META:case rD.NUMLOCK:case rD.NUM_CENTER:case rD.PAGE_DOWN:case rD.PAGE_UP:case rD.PAUSE:case rD.PRINT_SCREEN:case rD.RIGHT:case rD.SHIFT:case rD.UP:case rD.WIN_KEY:case rD.WIN_KEY_RIGHT:return!1;default:return!0}},isCharacterKey:function(A){if(A>=rD.ZERO&&A<=rD.NINE)return!0;if(A>=rD.NUM_ZERO&&A<=rD.NUM_MULTIPLY)return!0;if(A>=rD.A&&A<=rD.Z)return!0;if(-1!==window.navigator.userAgent.indexOf("WebKit")&&0===A)return!0;switch(A){case rD.SPACE:case rD.QUESTION_MARK:case rD.NUM_PLUS:case rD.NUM_MINUS:case rD.NUM_PERIOD:case rD.NUM_DIVISION:case rD.SEMICOLON:case rD.DASH:case rD.EQUALS:case rD.COMMA:case rD.PERIOD:case rD.SLASH:case rD.APOSTROPHE:case rD.SINGLE_QUOTE:case rD.OPEN_SQUARE_BRACKET:case rD.BACKSLASH:case rD.CLOSE_SQUARE_BRACKET:return!0;default:return!1}}},iD=J.forwardRef((function(A,e){var t=A.prefixCls,n=A.style,o=A.className,r=A.duration,i=void 0===r?4.5:r,a=A.eventKey,s=A.content,l=A.closable,g=A.closeIcon,c=void 0===g?"x":g,u=A.props,B=A.onClick,Q=A.onNoticeClose,E=A.times,C=A.hovering,d=WQ(J.useState(!1),2),I=d[0],p=d[1],f=C||I,h=function(){Q(a)};J.useEffect((function(){if(!f&&i>0){var A=setTimeout((function(){h()}),1e3*i);return function(){clearTimeout(A)}}}),[i,f,E]);var w=J.useMemo((function(){return"object"===mc(l)&&null!==l?l:l?{closeIcon:c}:{}}),[l,c]),D=Lw(w,!0),m="".concat(t,"-notice");return J.createElement("div",BQ({},u,{ref:e,className:ud(m,o,bc({},"".concat(m,"-closable"),l)),style:n,onMouseEnter:function(A){var e;p(!0),null==u||null===(e=u.onMouseEnter)||void 0===e||e.call(u,A)},onMouseLeave:function(A){var e;p(!1),null==u||null===(e=u.onMouseLeave)||void 0===e||e.call(u,A)},onClick:B}),J.createElement("div",{className:"".concat(m,"-content")},s),l&&J.createElement("a",BQ({tabIndex:0,className:"".concat(m,"-close"),onKeyDown:function(A){"Enter"!==A.key&&"Enter"!==A.code&&A.keyCode!==rD.ENTER||h()},"aria-label":"Close"},D,{onClick:function(A){A.preventDefault(),A.stopPropagation(),h()}}),w.closeIcon))})),aD=j.createContext({}),sD=function(A){var e=A.children,t=A.classNames;return j.createElement(aD.Provider,{value:{classNames:t}},e)},lD=["className","style","classNames","styles"],gD=function(A){var e,t,n,o,r,i=A.configList,a=A.placement,s=A.prefixCls,l=A.className,g=A.style,c=A.motion,u=A.onAllNoticeRemoved,B=A.onNoticeClose,Q=A.stack,E=J.useContext(aD).classNames,C=J.useRef({}),d=WQ(J.useState(null),2),I=d[0],p=d[1],f=WQ(J.useState([]),2),h=f[0],w=f[1],D=i.map((function(A){return{config:A,key:String(A.key)}})),m=WQ((r={offset:8,threshold:3,gap:16},(e=Q)&&"object"===mc(e)&&(r.offset=null!==(t=e.offset)&&void 0!==t?t:8,r.threshold=null!==(n=e.threshold)&&void 0!==n?n:3,r.gap=null!==(o=e.gap)&&void 0!==o?o:16),[!!e,r]),2),y=m[0],b=m[1],v=b.offset,k=b.threshold,M=b.gap,x=y&&(h.length>0||D.length<=k),S="function"==typeof c?c(a):c;return J.useEffect((function(){y&&h.length>1&&w((function(A){return A.filter((function(A){return D.some((function(e){var t=e.key;return A===t}))}))}))}),[h,D,y]),J.useEffect((function(){var A,e;y&&C.current[null===(A=D[D.length-1])||void 0===A?void 0:A.key]&&p(C.current[null===(e=D[D.length-1])||void 0===e?void 0:e.key])}),[D,y]),j.createElement(Th,BQ({key:a,className:ud(s,"".concat(s,"-").concat(a),null==E?void 0:E.list,l,bc(bc({},"".concat(s,"-stack"),!!y),"".concat(s,"-stack-expanded"),x)),style:g,keys:D,motionAppear:!0},S,{onAllRemoved:function(){u(a)}}),(function(A,e){var t=A.config,n=A.className,o=A.style,r=A.index,i=t,l=i.key,g=i.times,c=String(l),u=t,Q=u.className,d=u.style,p=u.classNames,f=u.styles,m=Mc(u,lD),b=D.findIndex((function(A){return A.key===c})),k={};if(y){var S=D.length-1-(b>-1?b:r-1),F="top"===a||"bottom"===a?"-50%":"0";if(S>0){var N,R,L;k.height=x?null===(N=C.current[c])||void 0===N?void 0:N.offsetHeight:null==I?void 0:I.offsetHeight;for(var P=0,H=0;H-1?C.current[c]=A:delete C.current[c]},prefixCls:s,classNames:p,styles:f,className:ud(Q,null==E?void 0:E.notice),style:d,times:g,key:l,eventKey:l,onNoticeClose:B,hovering:y&&h.length>0})))}))},cD=J.forwardRef((function(A,e){var t=A.prefixCls,n=void 0===t?"rc-notification":t,o=A.container,r=A.motion,i=A.maxCount,a=A.className,s=A.style,l=A.onAllRemoved,g=A.stack,c=A.renderNotifications,u=WQ(J.useState([]),2),B=u[0],Q=u[1],E=function(A){var e,t=B.find((function(e){return e.key===A}));null==t||null===(e=t.onClose)||void 0===e||e.call(t),Q((function(e){return e.filter((function(e){return e.key!==A}))}))};J.useImperativeHandle(e,(function(){return{open:function(A){Q((function(e){var t,n=XQ(e),o=n.findIndex((function(e){return e.key===A.key})),r=kc({},A);o>=0?(r.times=((null===(t=e[o])||void 0===t?void 0:t.times)||0)+1,n[o]=r):(r.times=0,n.push(r));return i>0&&n.length>i&&(n=n.slice(-i)),n}))},close:function(A){E(A)},destroy:function(){Q([])}}}));var C=WQ(J.useState({}),2),d=C[0],I=C[1];J.useEffect((function(){var A={};B.forEach((function(e){var t=e.placement,n=void 0===t?"topRight":t;n&&(A[n]=A[n]||[],A[n].push(e))})),Object.keys(d).forEach((function(e){A[e]=A[e]||[]})),I(A)}),[B]);var p=function(A){I((function(e){var t=kc({},e);return(t[A]||[]).length||delete t[A],t}))},f=J.useRef(!1);if(J.useEffect((function(){Object.keys(d).length>0?f.current=!0:f.current&&(null==l||l(),f.current=!1)}),[d]),!o)return null;var h=Object.keys(d);return pc.createPortal(J.createElement(J.Fragment,null,h.map((function(A){var e=d[A],t=J.createElement(gD,{key:A,configList:e,placement:A,prefixCls:n,className:null==a?void 0:a(A),style:null==s?void 0:s(A),motion:r,onNoticeClose:E,onAllNoticeRemoved:p,stack:g});return c?c(t,{prefixCls:n,key:A}):t}))),o)})),uD=["getContainer","motion","prefixCls","maxCount","className","style","onAllRemoved","stack","renderNotifications"],BD=function(){return document.body},QD=0;function ED(){var A=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=A.getContainer,t=void 0===e?BD:e,n=A.motion,o=A.prefixCls,r=A.maxCount,i=A.className,a=A.style,s=A.onAllRemoved,l=A.stack,g=A.renderNotifications,c=Mc(A,uD),u=WQ(J.useState(),2),B=u[0],Q=u[1],E=J.useRef(),C=J.createElement(cD,{container:B,ref:E,prefixCls:o,motion:n,maxCount:r,className:i,style:a,onAllRemoved:s,stack:l,renderNotifications:g}),d=WQ(J.useState([]),2),I=d[0],p=d[1],f=J.useMemo((function(){return{open:function(A){var e=function(){for(var A={},e=arguments.length,t=new Array(e),n=0;n{const{componentCls:e,iconCls:t,boxShadow:n,colorText:o,colorSuccess:r,colorError:i,colorWarning:a,colorInfo:s,fontSizeLG:l,motionEaseInOutCirc:g,motionDurationSlow:c,marginXS:u,paddingXS:B,borderRadiusLG:Q,zIndexPopup:E,contentPadding:C,contentBg:d}=A,I=`${e}-notice`,p=new ad("MessageMoveIn",{"0%":{padding:0,transform:"translateY(-100%)",opacity:0},"100%":{padding:B,transform:"translateY(0)",opacity:1}}),f=new ad("MessageMoveOut",{"0%":{maxHeight:A.height,padding:B,opacity:1},"100%":{maxHeight:0,padding:0,opacity:0}}),h={padding:B,textAlign:"center",[`${e}-custom-content > ${t}`]:{verticalAlign:"text-bottom",marginInlineEnd:u,fontSize:l},[`${I}-content`]:{display:"inline-block",padding:C,background:d,borderRadius:Q,boxShadow:n,pointerEvents:"all"},[`${e}-success > ${t}`]:{color:r},[`${e}-error > ${t}`]:{color:i},[`${e}-warning > ${t}`]:{color:a},[`${e}-info > ${t},\n ${e}-loading > ${t}`]:{color:s}};return[{[e]:Object.assign(Object.assign({},Mf(A)),{color:o,position:"fixed",top:u,width:"100%",pointerEvents:"none",zIndex:E,[`${e}-move-up`]:{animationFillMode:"forwards"},[`\n ${e}-move-up-appear,\n ${e}-move-up-enter\n `]:{animationName:p,animationDuration:c,animationPlayState:"paused",animationTimingFunction:g},[`\n ${e}-move-up-appear${e}-move-up-appear-active,\n ${e}-move-up-enter${e}-move-up-enter-active\n `]:{animationPlayState:"running"},[`${e}-move-up-leave`]:{animationName:f,animationDuration:c,animationPlayState:"paused",animationTimingFunction:g},[`${e}-move-up-leave${e}-move-up-leave-active`]:{animationPlayState:"running"},"&-rtl":{direction:"rtl",span:{direction:"rtl"}}})},{[e]:{[`${I}-wrapper`]:Object.assign({},h)}},{[`${e}-notice-pure-panel`]:Object.assign(Object.assign({},h),{padding:0,textAlign:"start"})}]},bD=jf("Message",(A=>{const e=Pf(A,{height:150});return[yD(e)]}),(A=>({zIndexPopup:A.zIndexPopupBase+hD+10,contentBg:A.colorBgElevated,contentPadding:`${(A.controlHeightLG-A.fontSize*A.lineHeight)/2}px ${A.paddingSM}px`})));const vD={info:J.createElement(xw,null),success:J.createElement(Iw,null),error:J.createElement(hw,null),warning:J.createElement(vw,null),loading:J.createElement(ID,null)},kD=A=>{let{prefixCls:e,type:t,icon:n,children:o}=A;return J.createElement("div",{className:ud(`${e}-custom-content`,`${e}-${t}`)},n||vD[t],J.createElement("span",null,o))};function MD(A){let e;const t=new Promise((t=>{e=A((()=>{t(!0)}))})),n=()=>{null==e||e()};return n.then=(A,e)=>t.then(A,e),n.promise=t,n}var xD=function(A,e){var t={};for(var n in A)Object.prototype.hasOwnProperty.call(A,n)&&e.indexOf(n)<0&&(t[n]=A[n]);if(null!=A&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(n=Object.getOwnPropertySymbols(A);o{let{children:e,prefixCls:t}=A;const n=oD(t),[o,r,i]=bD(t,n);return o(J.createElement(sD,{classNames:{list:ud(r,i,n)}},e))},ND=(A,e)=>{let{prefixCls:t,key:n}=e;return J.createElement(FD,{prefixCls:t,key:n},A)},RD=J.forwardRef(((A,e)=>{const{top:t,prefixCls:n,getContainer:o,maxCount:r,duration:i=SD,rtl:a,transitionName:s,onAllRemoved:l}=A,{getPrefixCls:g,getPopupContainer:c,message:u,direction:B}=J.useContext(Xp),Q=n||g("message"),E=J.createElement("span",{className:`${Q}-close-x`},J.createElement(mw,{className:`${Q}-close-icon`})),[C,d]=ED({prefixCls:Q,style:()=>({left:"50%",transform:"translateX(-50%)",top:null!=t?t:8}),className:()=>ud({[`${Q}-rtl`]:null!=a?a:"rtl"===B}),motion:()=>function(A,e){return{motionName:null!=e?e:`${A}-move-up`}}(Q,s),closable:!1,closeIcon:E,duration:i,getContainer:()=>(null==o?void 0:o())||(null==c?void 0:c())||document.body,maxCount:r,onAllRemoved:l,renderNotifications:ND});return J.useImperativeHandle(e,(()=>Object.assign(Object.assign({},C),{prefixCls:Q,message:u}))),d}));let LD=0;function PD(A){const e=J.useRef(null);OI();return[J.useMemo((()=>{const A=A=>{var t;null===(t=e.current)||void 0===t||t.close(A)},t=t=>{if(!e.current){const A=()=>{};return A.then=()=>{},A}const{open:n,prefixCls:o,message:r}=e.current,i=`${o}-notice`,{content:a,icon:s,type:l,key:g,className:c,style:u,onClose:B}=t,Q=xD(t,["content","icon","type","key","className","style","onClose"]);let E=g;return null==E&&(LD+=1,E=`antd-message-${LD}`),MD((e=>(n(Object.assign(Object.assign({},Q),{key:E,content:J.createElement(kD,{prefixCls:o,type:l,icon:s},a),placement:"top",className:ud(l&&`${i}-${l}`,c,null==r?void 0:r.className),style:Object.assign(Object.assign({},null==r?void 0:r.style),u),onClose:()=>{null==B||B(),e()}})),()=>{A(E)})))},n={open:t,destroy:t=>{var n;void 0!==t?A(t):null===(n=e.current)||void 0===n||n.destroy()}};return["info","success","warning","error","loading"].forEach((A=>{n[A]=(e,n,o)=>{let r,i,a;r=e&&"object"==typeof e&&"content"in e?e:{content:e},"function"==typeof n?a=n:(i=n,a=o);const s=Object.assign(Object.assign({onClose:a,duration:i},r),{type:A});return t(s)}})),n}),[]),J.createElement(RD,Object.assign({key:"message-holder"},A,{ref:e}))]}function HD(A){return PD(A)}function GD(){GD=function(){return e};var A,e={},t=Object.prototype,n=t.hasOwnProperty,o=Object.defineProperty||function(A,e,t){A[e]=t.value},r="function"==typeof Symbol?Symbol:{},i=r.iterator||"@@iterator",a=r.asyncIterator||"@@asyncIterator",s=r.toStringTag||"@@toStringTag";function l(A,e,t){return Object.defineProperty(A,e,{value:t,enumerable:!0,configurable:!0,writable:!0}),A[e]}try{l({},"")}catch(F){l=function(A,e,t){return A[e]=t}}function g(A,e,t,n){var r=e&&e.prototype instanceof d?e:d,i=Object.create(r.prototype),a=new x(n||[]);return o(i,"_invoke",{value:b(A,t,a)}),i}function c(A,e,t){try{return{type:"normal",arg:A.call(e,t)}}catch(n){return{type:"throw",arg:n}}}e.wrap=g;var u="suspendedStart",B="suspendedYield",Q="executing",E="completed",C={};function d(){}function I(){}function p(){}var f={};l(f,i,(function(){return this}));var h=Object.getPrototypeOf,w=h&&h(h(S([])));w&&w!==t&&n.call(w,i)&&(f=w);var D=p.prototype=d.prototype=Object.create(f);function m(A){["next","throw","return"].forEach((function(e){l(A,e,(function(A){return this._invoke(e,A)}))}))}function y(A,e){function t(o,r,i,a){var s=c(A[o],A,r);if("throw"!==s.type){var l=s.arg,g=l.value;return g&&"object"==mc(g)&&n.call(g,"__await")?e.resolve(g.__await).then((function(A){t("next",A,i,a)}),(function(A){t("throw",A,i,a)})):e.resolve(g).then((function(A){l.value=A,i(l)}),(function(A){return t("throw",A,i,a)}))}a(s.arg)}var r;o(this,"_invoke",{value:function(A,n){function o(){return new e((function(e,o){t(A,n,e,o)}))}return r=r?r.then(o,o):o()}})}function b(e,t,n){var o=u;return function(r,i){if(o===Q)throw Error("Generator is already running");if(o===E){if("throw"===r)throw i;return{value:A,done:!0}}for(n.method=r,n.arg=i;;){var a=n.delegate;if(a){var s=v(a,n);if(s){if(s===C)continue;return s}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(o===u)throw o=E,n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);o=Q;var l=c(e,t,n);if("normal"===l.type){if(o=n.done?E:B,l.arg===C)continue;return{value:l.arg,done:n.done}}"throw"===l.type&&(o=E,n.method="throw",n.arg=l.arg)}}}function v(e,t){var n=t.method,o=e.iterator[n];if(o===A)return t.delegate=null,"throw"===n&&e.iterator.return&&(t.method="return",t.arg=A,v(e,t),"throw"===t.method)||"return"!==n&&(t.method="throw",t.arg=new TypeError("The iterator does not provide a '"+n+"' method")),C;var r=c(o,e.iterator,t.arg);if("throw"===r.type)return t.method="throw",t.arg=r.arg,t.delegate=null,C;var i=r.arg;return i?i.done?(t[e.resultName]=i.value,t.next=e.nextLoc,"return"!==t.method&&(t.method="next",t.arg=A),t.delegate=null,C):i:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,C)}function k(A){var e={tryLoc:A[0]};1 in A&&(e.catchLoc=A[1]),2 in A&&(e.finallyLoc=A[2],e.afterLoc=A[3]),this.tryEntries.push(e)}function M(A){var e=A.completion||{};e.type="normal",delete e.arg,A.completion=e}function x(A){this.tryEntries=[{tryLoc:"root"}],A.forEach(k,this),this.reset(!0)}function S(e){if(e||""===e){var t=e[i];if(t)return t.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var o=-1,r=function t(){for(;++o=0;--r){var i=this.tryEntries[r],a=i.completion;if("root"===i.tryLoc)return o("end");if(i.tryLoc<=this.prev){var s=n.call(i,"catchLoc"),l=n.call(i,"finallyLoc");if(s&&l){if(this.prev=0;--t){var o=this.tryEntries[t];if(o.tryLoc<=this.prev&&n.call(o,"finallyLoc")&&this.prev=0;--e){var t=this.tryEntries[e];if(t.finallyLoc===A)return this.complete(t.completion,t.afterLoc),M(t),C}},catch:function(A){for(var e=this.tryEntries.length-1;e>=0;--e){var t=this.tryEntries[e];if(t.tryLoc===A){var n=t.completion;if("throw"===n.type){var o=n.arg;M(t)}return o}}throw Error("illegal catch attempt")},delegateYield:function(e,t,n){return this.delegate={iterator:S(e),resultName:t,nextLoc:n},"next"===this.method&&(this.arg=A),C}},e}function OD(A,e,t,n,o,r,i){try{var a=A[r](i),s=a.value}catch(l){return void t(l)}a.done?e(s):Promise.resolve(s).then(n,o)}function UD(A){return function(){var e=this,t=arguments;return new Promise((function(n,o){var r=A.apply(e,t);function i(A){OD(r,n,o,i,a,"next",A)}function a(A){OD(r,n,o,i,a,"throw",A)}i(void 0)}))}}var KD,YD=kc({},hc),TD=YD.version,JD=YD.render,jD=YD.unmountComponentAtNode;try{Number((TD||"").split(".")[0])>=18&&(KD=YD.createRoot)}catch(R3){}function qD(A){var e=YD.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;e&&"object"===mc(e)&&(e.usingClientEntryPoint=A)}var $D="__rc_react_root__";function zD(A,e){KD?function(A,e){qD(!0);var t=e[$D]||KD(e);qD(!1),t.render(A),e[$D]=t}(A,e):function(A,e){JD(A,e)}(A,e)}function WD(A){return _D.apply(this,arguments)}function _D(){return(_D=UD(GD().mark((function A(e){return GD().wrap((function(A){for(;;)switch(A.prev=A.next){case 0:return A.abrupt("return",Promise.resolve().then((function(){var A;null===(A=e[$D])||void 0===A||A.unmount(),delete e[$D]})));case 1:case"end":return A.stop()}}),A)})))).apply(this,arguments)}function XD(A){jD(A)}function VD(A){return ZD.apply(this,arguments)}function ZD(){return(ZD=UD(GD().mark((function A(e){return GD().wrap((function(A){for(;;)switch(A.prev=A.next){case 0:if(void 0===KD){A.next=2;break}return A.abrupt("return",WD(e));case 2:XD(e);case 3:case"end":return A.stop()}}),A)})))).apply(this,arguments)}const Am=()=>({height:0,opacity:0}),em=A=>{const{scrollHeight:e}=A;return{height:e,opacity:1}},tm=A=>({height:A?A.offsetHeight:0}),nm=(A,e)=>!0===(null==e?void 0:e.deadline)||"height"===e.propertyName,om=function(){return{motionName:`${arguments.length>0&&void 0!==arguments[0]?arguments[0]:"ant"}-motion-collapse`,onAppearStart:Am,onEnterStart:Am,onAppearActive:em,onEnterActive:em,onLeaveStart:tm,onLeaveActive:Am,onAppearEnd:nm,onEnterEnd:nm,onLeaveEnd:nm,motionDeadline:500}},rm=(A,e,t)=>void 0!==t?t:`${A}-${e}`,im=function(A){if(!A)return!1;if(A instanceof Element){if(A.offsetParent)return!0;if(A.getBBox){var e=A.getBBox(),t=e.width,n=e.height;if(t||n)return!0}if(A.getBoundingClientRect){var o=A.getBoundingClientRect(),r=o.width,i=o.height;if(r||i)return!0}}return!1},am=A=>{const{componentCls:e,colorPrimary:t}=A;return{[e]:{position:"absolute",background:"transparent",pointerEvents:"none",boxSizing:"border-box",color:`var(--wave-color, ${t})`,boxShadow:"0 0 0 0 currentcolor",opacity:.2,"&.wave-motion-appear":{transition:[`box-shadow 0.4s ${A.motionEaseOutCirc}`,`opacity 2s ${A.motionEaseOutCirc}`].join(","),"&-active":{boxShadow:"0 0 0 6px currentcolor",opacity:0},"&.wave-quick":{transition:[`box-shadow ${A.motionDurationSlow} ${A.motionEaseInOut}`,`opacity ${A.motionDurationSlow} ${A.motionEaseInOut}`].join(",")}}}}},sm=Yf("Wave",(A=>[am(A)])),lm="ant-wave-target";function gm(A){return A&&"#fff"!==A&&"#ffffff"!==A&&"rgb(255, 255, 255)"!==A&&"rgba(255, 255, 255, 1)"!==A&&function(A){const e=(A||"").match(/rgba?\((\d*), (\d*), (\d*)(, [\d.]*)?\)/);return!(e&&e[1]&&e[2]&&e[3]&&e[1]===e[2]&&e[2]===e[3])}(A)&&!/rgba\((?:\d*, ){3}0\)/.test(A)&&"transparent"!==A}function cm(A){return Number.isNaN(A)?0:A}const um=A=>{const{className:e,target:t,component:n}=A,o=J.useRef(null),[r,i]=J.useState(null),[a,s]=J.useState([]),[l,g]=J.useState(0),[c,u]=J.useState(0),[B,Q]=J.useState(0),[E,C]=J.useState(0),[d,I]=J.useState(!1),p={left:l,top:c,width:B,height:E,borderRadius:a.map((A=>`${A}px`)).join(" ")};function f(){const A=getComputedStyle(t);i(function(A){const{borderTopColor:e,borderColor:t,backgroundColor:n}=getComputedStyle(A);return gm(e)?e:gm(t)?t:gm(n)?n:null}(t));const e="static"===A.position,{borderLeftWidth:n,borderTopWidth:o}=A;g(e?t.offsetLeft:cm(-parseFloat(n))),u(e?t.offsetTop:cm(-parseFloat(o))),Q(t.offsetWidth),C(t.offsetHeight);const{borderTopLeftRadius:r,borderTopRightRadius:a,borderBottomLeftRadius:l,borderBottomRightRadius:c}=A;s([r,a,c,l].map((A=>cm(parseFloat(A)))))}if(r&&(p["--wave-color"]=r),J.useEffect((()=>{if(t){const A=kI((()=>{f(),I(!0)}));let e;return"undefined"!=typeof ResizeObserver&&(e=new ResizeObserver(f),e.observe(t)),()=>{kI.cancel(A),null==e||e.disconnect()}}}),[]),!d)return null;const h=("Checkbox"===n||"Radio"===n)&&(null==t?void 0:t.classList.contains(lm));return J.createElement(Nh,{visible:!0,motionAppear:!0,motionName:"wave-motion",motionDeadline:5e3,onAppearEnd:(A,e)=>{var t;if(e.deadline||"opacity"===e.propertyName){const A=null===(t=o.current)||void 0===t?void 0:t.parentElement;VD(A).then((()=>{null==A||A.remove()}))}return!1}},(A=>{let{className:t}=A;return J.createElement("div",{ref:o,className:ud(e,{"wave-quick":h},t),style:p})}))},Bm=(A,e)=>{var t;const{component:n}=e;if("Checkbox"===n&&!(null===(t=A.querySelector("input"))||void 0===t?void 0:t.checked))return;const o=document.createElement("div");o.style.position="absolute",o.style.left="0px",o.style.top="0px",null==A||A.insertBefore(o,null==A?void 0:A.firstChild),zD(J.createElement(um,Object.assign({},e,{target:A})),o)},Qm=(A,e,t)=>{const{wave:n}=J.useContext(Xp),[,o,r]=Cf(),i=mf((i=>{const a=A.current;if((null==n?void 0:n.disabled)||!a)return;const s=a.querySelector(`.${lm}`)||a,{showEffect:l}=n||{};(l||Bm)(s,{className:e,token:o,component:t,event:i,hashId:r})})),a=J.useRef();return A=>{kI.cancel(a.current),a.current=kI((()=>{i(A)}))}},Em=A=>{const{children:e,disabled:t,component:n}=A,{getPrefixCls:o}=J.useContext(Xp),r=J.useRef(null),i=o("wave"),[,a]=sm(i),s=Qm(r,ud(i,a),n);if(j.useEffect((()=>{const A=r.current;if(!A||1!==A.nodeType||t)return;const e=e=>{!im(e.target)||!A.getAttribute||A.getAttribute("disabled")||A.disabled||A.className.includes("disabled")||A.className.includes("-leave")||s(e)};return A.addEventListener("click",e,!0),()=>{A.removeEventListener("click",e,!0)}}),[t]),!j.isValidElement(e))return null!=e?e:null;return Gw(e,{ref:Gd(e)?Pd(e.ref,r):r})},Cm=A=>{const e=j.useContext(tf);return j.useMemo((()=>A?"string"==typeof A?null!=A?A:e:A instanceof Function?A(e):e:e),[A,e])},dm=A=>{const{componentCls:e}=A;return{[e]:{"&-block":{display:"flex",width:"100%"},"&-vertical":{flexDirection:"column"}}}},Im=A=>{const{componentCls:e,antCls:t}=A;return{[e]:{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"}},[`${e}-item:empty`]:{display:"none"},[`${e}-item > ${t}-badge-not-a-wrapper:only-child`]:{display:"block"}}}},pm=A=>{const{componentCls:e}=A;return{[e]:{"&-gap-row-small":{rowGap:A.spaceGapSmallSize},"&-gap-row-middle":{rowGap:A.spaceGapMiddleSize},"&-gap-row-large":{rowGap:A.spaceGapLargeSize},"&-gap-col-small":{columnGap:A.spaceGapSmallSize},"&-gap-col-middle":{columnGap:A.spaceGapMiddleSize},"&-gap-col-large":{columnGap:A.spaceGapLargeSize}}}},fm=jf("Space",(A=>{const e=Pf(A,{spaceGapSmallSize:A.paddingXS,spaceGapMiddleSize:A.padding,spaceGapLargeSize:A.paddingLG});return[Im(e),pm(e),dm(e)]}),(()=>({})),{resetStyle:!1});var hm=function(A,e){var t={};for(var n in A)Object.prototype.hasOwnProperty.call(A,n)&&e.indexOf(n)<0&&(t[n]=A[n]);if(null!=A&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(n=Object.getOwnPropertySymbols(A);o{const t=J.useContext(wm),n=J.useMemo((()=>{if(!t)return"";const{compactDirection:n,isFirstItem:o,isLastItem:r}=t,i="vertical"===n?"-vertical-":"-";return ud(`${A}-compact${i}item`,{[`${A}-compact${i}first-item`]:o,[`${A}-compact${i}last-item`]:r,[`${A}-compact${i}item-rtl`]:"rtl"===e})}),[A,e,t]);return{compactSize:null==t?void 0:t.compactSize,compactDirection:null==t?void 0:t.compactDirection,compactItemClassnames:n}},mm=A=>{let{children:e}=A;return J.createElement(wm.Provider,{value:null},e)},ym=A=>{var{children:e}=A,t=hm(A,["children"]);return J.createElement(wm.Provider,{value:t},e)};const bm=J.createContext(void 0),vm=/^[\u4e00-\u9fa5]{2}$/,km=vm.test.bind(vm);function Mm(A){return"danger"===A?{danger:!0}:{type:A}}function xm(A){return"string"==typeof A}function Sm(A){return"text"===A||"link"===A}function Fm(A,e){let t=!1;const n=[];return j.Children.forEach(A,(A=>{const e=typeof A,o="string"===e||"number"===e;if(t&&o){const e=n.length-1,t=n[e];n[e]=`${t}${A}`}else n.push(A);t=o})),j.Children.map(n,(A=>function(A,e){if(null==A)return;const t=e?" ":"";return"string"!=typeof A&&"number"!=typeof A&&xm(A.type)&&km(A.props.children)?Gw(A,{children:A.props.children.split("").join(t)}):xm(A)?km(A)?j.createElement("span",null,A.split("").join(t)):j.createElement("span",null,A):Pw(A)?j.createElement("span",null,A):A}(A,e)))}const Nm=J.forwardRef(((A,e)=>{const{className:t,style:n,children:o,prefixCls:r}=A,i=ud(`${r}-icon`,t);return j.createElement("span",{ref:e,className:i,style:n},o)})),Rm=J.forwardRef(((A,e)=>{const{prefixCls:t,className:n,style:o,iconClassName:r,iconPosition:i="start"}=A,a=ud(n,{[`${t}-loading-icon-end`]:"end"===i,[`${t}-loading-icon`]:"start"===i});return j.createElement(Nm,{prefixCls:t,className:a,style:o,ref:e},j.createElement(ID,{className:r}))})),Lm=()=>({width:0,opacity:0,transform:"scale(0)"}),Pm=A=>({width:A.scrollWidth,opacity:1,transform:"scale(1)"}),Hm=A=>{const{prefixCls:e,loading:t,existIcon:n,className:o,style:r,iconPosition:i}=A,a=!!t;return n?j.createElement(Rm,{prefixCls:e,className:o,style:r,iconPosition:i}):j.createElement(Nh,{visible:a,motionName:`${e}-loading-icon-motion`,motionLeave:a,removeOnLeave:!0,onAppearStart:Lm,onAppearActive:Pm,onEnterStart:Lm,onEnterActive:Pm,onLeaveStart:Pm,onLeaveActive:Lm},((A,t)=>{let{className:n,style:a}=A;return j.createElement(Rm,{prefixCls:e,className:o,style:Object.assign(Object.assign({},r),a),ref:t,iconClassName:n,iconPosition:i})}))},Gm=(A,e)=>({[`> span, > ${A}`]:{"&:not(:last-child)":{[`&, & > ${A}`]:{"&:not(:disabled)":{borderInlineEndColor:e}}},"&:not(:first-child)":{[`&, & > ${A}`]:{"&:not(:disabled)":{borderInlineStartColor:e}}}}}),Om=A=>{const{componentCls:e,fontSize:t,lineWidth:n,groupBorderColor:o,colorErrorHover:r}=A;return{[`${e}-group`]:[{position:"relative",display:"inline-flex",[`> span, > ${e}`]:{"&:not(:last-child)":{[`&, & > ${e}`]:{borderStartEndRadius:0,borderEndEndRadius:0}},"&:not(:first-child)":{marginInlineStart:A.calc(n).mul(-1).equal(),[`&, & > ${e}`]:{borderStartStartRadius:0,borderEndStartRadius:0}}},[e]:{position:"relative",zIndex:1,"&:hover,\n &:focus,\n &:active":{zIndex:2},"&[disabled]":{zIndex:0}},[`${e}-icon-only`]:{fontSize:t}},Gm(`${e}-primary`,o),Gm(`${e}-danger`,r)]}},Um=A=>{const{paddingInline:e,onlyIconSize:t,paddingBlock:n}=A;return Pf(A,{buttonPaddingHorizontal:e,buttonPaddingVertical:n,buttonIconOnlyFontSize:t})},Km=A=>{var e,t,n,o,r,i;const a=null!==(e=A.contentFontSize)&&void 0!==e?e:A.fontSize,s=null!==(t=A.contentFontSizeSM)&&void 0!==t?t:A.fontSize,l=null!==(n=A.contentFontSizeLG)&&void 0!==n?n:A.fontSizeLG,g=null!==(o=A.contentLineHeight)&&void 0!==o?o:Up(a),c=null!==(r=A.contentLineHeightSM)&&void 0!==r?r:Up(s),u=null!==(i=A.contentLineHeightLG)&&void 0!==i?i:Up(l);return{fontWeight:400,defaultShadow:`0 ${A.controlOutlineWidth}px 0 ${A.controlTmpOutline}`,primaryShadow:`0 ${A.controlOutlineWidth}px 0 ${A.controlOutline}`,dangerShadow:`0 ${A.controlOutlineWidth}px 0 ${A.colorErrorOutline}`,primaryColor:A.colorTextLightSolid,dangerColor:A.colorTextLightSolid,borderColorDisabled:A.colorBorder,defaultGhostColor:A.colorBgContainer,ghostBg:"transparent",defaultGhostBorderColor:A.colorBgContainer,paddingInline:A.paddingContentHorizontal-A.lineWidth,paddingInlineLG:A.paddingContentHorizontal-A.lineWidth,paddingInlineSM:8-A.lineWidth,onlyIconSize:A.fontSizeLG,onlyIconSizeSM:A.fontSizeLG-2,onlyIconSizeLG:A.fontSizeLG+2,groupBorderColor:A.colorPrimaryHover,linkHoverBg:"transparent",textHoverBg:A.colorBgTextHover,defaultColor:A.colorText,defaultBg:A.colorBgContainer,defaultBorderColor:A.colorBorder,defaultBorderColorDisabled:A.colorBorder,defaultHoverBg:A.colorBgContainer,defaultHoverColor:A.colorPrimaryHover,defaultHoverBorderColor:A.colorPrimaryHover,defaultActiveBg:A.colorBgContainer,defaultActiveColor:A.colorPrimaryActive,defaultActiveBorderColor:A.colorPrimaryActive,contentFontSize:a,contentFontSizeSM:s,contentFontSizeLG:l,contentLineHeight:g,contentLineHeightSM:c,contentLineHeightLG:u,paddingBlock:Math.max((A.controlHeight-a*g)/2-A.lineWidth,0),paddingBlockSM:Math.max((A.controlHeightSM-s*c)/2-A.lineWidth,0),paddingBlockLG:Math.max((A.controlHeightLG-l*u)/2-A.lineWidth,0)}},Ym=A=>{const{componentCls:e,iconCls:t,fontWeight:n}=A;return{[e]:{outline:"none",position:"relative",display:"inline-block",fontWeight:n,whiteSpace:"nowrap",textAlign:"center",backgroundImage:"none",background:"transparent",border:`${UE(A.lineWidth)} ${A.lineType} transparent`,cursor:"pointer",transition:`all ${A.motionDurationMid} ${A.motionEaseInOut}`,userSelect:"none",touchAction:"manipulation",color:A.colorText,"&:disabled > *":{pointerEvents:"none"},"> span":{display:"inline-block"},[`${e}-icon`]:{lineHeight:0,"&-end":{marginInlineStart:A.marginXS}},[`> ${t} + span, > span + ${t}`]:{marginInlineStart:A.marginXS},[`&:not(${e}-icon-only) > ${e}-icon`]:{[`&${e}-loading-icon, &:not(:last-child)`]:{marginInlineEnd:A.marginXS},[`&${e}-loading-icon-end`]:{marginInlineStart:A.marginXS}},"> a":{color:"currentColor"},"&:not(:disabled)":Object.assign({},Nf(A)),[`&${e}-two-chinese-chars::first-letter`]:{letterSpacing:"0.34em"},[`&${e}-two-chinese-chars > *:not(${t})`]:{marginInlineEnd:"-0.34em",letterSpacing:"0.34em"},[`&-icon-only${e}-compact-item`]:{flex:"none"}}}},Tm=(A,e,t)=>({[`&:not(:disabled):not(${A}-disabled)`]:{"&:hover":e,"&:active":t}}),Jm=A=>({minWidth:A.controlHeight,paddingInlineStart:0,paddingInlineEnd:0,borderRadius:"50%"}),jm=A=>({borderRadius:A.controlHeight,paddingInlineStart:A.calc(A.controlHeight).div(2).equal(),paddingInlineEnd:A.calc(A.controlHeight).div(2).equal()}),qm=A=>({cursor:"not-allowed",borderColor:A.borderColorDisabled,color:A.colorTextDisabled,background:A.colorBgContainerDisabled,boxShadow:"none"}),$m=(A,e,t,n,o,r,i,a)=>({[`&${A}-background-ghost`]:Object.assign(Object.assign({color:t||void 0,background:e,borderColor:n||void 0,boxShadow:"none"},Tm(A,Object.assign({background:e},i),Object.assign({background:e},a))),{"&:disabled":{cursor:"not-allowed",color:o||void 0,borderColor:r||void 0}})}),zm=A=>({[`&:disabled, &${A.componentCls}-disabled`]:Object.assign({},qm(A))}),Wm=A=>Object.assign({},zm(A)),_m=A=>({[`&:disabled, &${A.componentCls}-disabled`]:{cursor:"not-allowed",color:A.colorTextDisabled}}),Xm=A=>Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},Wm(A)),{background:A.defaultBg,borderColor:A.defaultBorderColor,color:A.defaultColor,boxShadow:A.defaultShadow}),Tm(A.componentCls,{color:A.defaultHoverColor,borderColor:A.defaultHoverBorderColor,background:A.defaultHoverBg},{color:A.defaultActiveColor,borderColor:A.defaultActiveBorderColor,background:A.defaultActiveBg})),$m(A.componentCls,A.ghostBg,A.defaultGhostColor,A.defaultGhostBorderColor,A.colorTextDisabled,A.colorBorder)),{[`&${A.componentCls}-dangerous`]:Object.assign(Object.assign(Object.assign({color:A.colorError,borderColor:A.colorError},Tm(A.componentCls,{color:A.colorErrorHover,borderColor:A.colorErrorBorderHover},{color:A.colorErrorActive,borderColor:A.colorErrorActive})),$m(A.componentCls,A.ghostBg,A.colorError,A.colorError,A.colorTextDisabled,A.colorBorder)),zm(A))}),Vm=A=>Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},Wm(A)),{color:A.primaryColor,background:A.colorPrimary,boxShadow:A.primaryShadow}),Tm(A.componentCls,{color:A.colorTextLightSolid,background:A.colorPrimaryHover},{color:A.colorTextLightSolid,background:A.colorPrimaryActive})),$m(A.componentCls,A.ghostBg,A.colorPrimary,A.colorPrimary,A.colorTextDisabled,A.colorBorder,{color:A.colorPrimaryHover,borderColor:A.colorPrimaryHover},{color:A.colorPrimaryActive,borderColor:A.colorPrimaryActive})),{[`&${A.componentCls}-dangerous`]:Object.assign(Object.assign(Object.assign({background:A.colorError,boxShadow:A.dangerShadow,color:A.dangerColor},Tm(A.componentCls,{background:A.colorErrorHover},{background:A.colorErrorActive})),$m(A.componentCls,A.ghostBg,A.colorError,A.colorError,A.colorTextDisabled,A.colorBorder,{color:A.colorErrorHover,borderColor:A.colorErrorHover},{color:A.colorErrorActive,borderColor:A.colorErrorActive})),zm(A))}),Zm=A=>Object.assign(Object.assign({},Xm(A)),{borderStyle:"dashed"}),Ay=A=>Object.assign(Object.assign(Object.assign({color:A.colorLink},Tm(A.componentCls,{color:A.colorLinkHover,background:A.linkHoverBg},{color:A.colorLinkActive})),_m(A)),{[`&${A.componentCls}-dangerous`]:Object.assign(Object.assign({color:A.colorError},Tm(A.componentCls,{color:A.colorErrorHover},{color:A.colorErrorActive})),_m(A))}),ey=A=>Object.assign(Object.assign(Object.assign({},Tm(A.componentCls,{color:A.colorText,background:A.textHoverBg},{color:A.colorText,background:A.colorBgTextActive})),_m(A)),{[`&${A.componentCls}-dangerous`]:Object.assign(Object.assign({color:A.colorError},_m(A)),Tm(A.componentCls,{color:A.colorErrorHover,background:A.colorErrorBg},{color:A.colorErrorHover,background:A.colorErrorBg}))}),ty=A=>{const{componentCls:e}=A;return{[`${e}-default`]:Xm(A),[`${e}-primary`]:Vm(A),[`${e}-dashed`]:Zm(A),[`${e}-link`]:Ay(A),[`${e}-text`]:ey(A),[`${e}-ghost`]:$m(A.componentCls,A.ghostBg,A.colorBgContainer,A.colorBgContainer,A.colorTextDisabled,A.colorBorder)}},ny=function(A){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";const{componentCls:t,controlHeight:n,fontSize:o,lineHeight:r,borderRadius:i,buttonPaddingHorizontal:a,iconCls:s,buttonPaddingVertical:l}=A,g=`${t}-icon-only`;return[{[`${e}`]:{fontSize:o,lineHeight:r,height:n,padding:`${UE(l)} ${UE(a)}`,borderRadius:i,[`&${g}`]:{display:"inline-flex",alignItems:"center",justifyContent:"center",width:n,paddingInlineStart:0,paddingInlineEnd:0,[`&${t}-round`]:{width:"auto"},[s]:{fontSize:A.buttonIconOnlyFontSize}},[`&${t}-loading`]:{opacity:A.opacityLoading,cursor:"default"},[`${t}-loading-icon`]:{transition:`width ${A.motionDurationSlow} ${A.motionEaseInOut}, opacity ${A.motionDurationSlow} ${A.motionEaseInOut}`}}},{[`${t}${t}-circle${e}`]:Jm(A)},{[`${t}${t}-round${e}`]:jm(A)}]},oy=A=>{const e=Pf(A,{fontSize:A.contentFontSize,lineHeight:A.contentLineHeight});return ny(e,A.componentCls)},ry=A=>{const e=Pf(A,{controlHeight:A.controlHeightSM,fontSize:A.contentFontSizeSM,lineHeight:A.contentLineHeightSM,padding:A.paddingXS,buttonPaddingHorizontal:A.paddingInlineSM,buttonPaddingVertical:A.paddingBlockSM,borderRadius:A.borderRadiusSM,buttonIconOnlyFontSize:A.onlyIconSizeSM});return ny(e,`${A.componentCls}-sm`)},iy=A=>{const e=Pf(A,{controlHeight:A.controlHeightLG,fontSize:A.contentFontSizeLG,lineHeight:A.contentLineHeightLG,buttonPaddingHorizontal:A.paddingInlineLG,buttonPaddingVertical:A.paddingBlockLG,borderRadius:A.borderRadiusLG,buttonIconOnlyFontSize:A.onlyIconSizeLG});return ny(e,`${A.componentCls}-lg`)},ay=A=>{const{componentCls:e}=A;return{[e]:{[`&${e}-block`]:{width:"100%"}}}},sy=jf("Button",(A=>{const e=Um(A);return[Ym(e),oy(e),ry(e),iy(e),ay(e),ty(e),Om(e)]}),Km,{unitless:{fontWeight:!0,contentLineHeight:!0,contentLineHeightSM:!0,contentLineHeightLG:!0}});function ly(A,e,t){const{focusElCls:n,focus:o,borderElCls:r}=t,i=r?"> *":"",a=["hover",o?"focus":null,"active"].filter(Boolean).map((A=>`&:${A} ${i}`)).join(",");return{[`&-item:not(${e}-last-item)`]:{marginInlineEnd:A.calc(A.lineWidth).mul(-1).equal()},"&-item":Object.assign(Object.assign({[a]:{zIndex:2}},n?{[`&${n}`]:{zIndex:2}}:{}),{[`&[disabled] ${i}`]:{zIndex:0}})}}function gy(A,e,t){const{borderElCls:n}=t,o=n?`> ${n}`:"";return{[`&-item:not(${e}-first-item):not(${e}-last-item) ${o}`]:{borderRadius:0},[`&-item:not(${e}-last-item)${e}-first-item`]:{[`& ${o}, &${A}-sm ${o}, &${A}-lg ${o}`]:{borderStartEndRadius:0,borderEndEndRadius:0}},[`&-item:not(${e}-first-item)${e}-last-item`]:{[`& ${o}, &${A}-sm ${o}, &${A}-lg ${o}`]:{borderStartStartRadius:0,borderEndStartRadius:0}}}}function cy(A){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{focus:!0};const{componentCls:t}=A,n=`${t}-compact`;return{[n]:Object.assign(Object.assign({},ly(A,n,e)),gy(t,n,e))}}function uy(A,e){return{[`&-item:not(${e}-last-item)`]:{marginBottom:A.calc(A.lineWidth).mul(-1).equal()},"&-item":{"&:hover,&:focus,&:active":{zIndex:2},"&[disabled]":{zIndex:0}}}}function By(A){const e=`${A.componentCls}-compact-vertical`;return{[e]:Object.assign(Object.assign({},uy(A,e)),(t=A.componentCls,n=e,{[`&-item:not(${n}-first-item):not(${n}-last-item)`]:{borderRadius:0},[`&-item${n}-first-item:not(${n}-last-item)`]:{[`&, &${t}-sm, &${t}-lg`]:{borderEndEndRadius:0,borderEndStartRadius:0}},[`&-item${n}-last-item:not(${n}-first-item)`]:{[`&, &${t}-sm, &${t}-lg`]:{borderStartStartRadius:0,borderStartEndRadius:0}}}))};var t,n}const Qy=A=>{const{componentCls:e,calc:t}=A;return{[e]:{[`&-compact-item${e}-primary`]:{[`&:not([disabled]) + ${e}-compact-item${e}-primary:not([disabled])`]:{position:"relative","&:before":{position:"absolute",top:t(A.lineWidth).mul(-1).equal(),insetInlineStart:t(A.lineWidth).mul(-1).equal(),display:"inline-block",width:A.lineWidth,height:`calc(100% + ${UE(A.lineWidth)} * 2)`,backgroundColor:A.colorPrimaryHover,content:'""'}}},"&-compact-vertical-item":{[`&${e}-primary`]:{[`&:not([disabled]) + ${e}-compact-vertical-item${e}-primary:not([disabled])`]:{position:"relative","&:before":{position:"absolute",top:t(A.lineWidth).mul(-1).equal(),insetInlineStart:t(A.lineWidth).mul(-1).equal(),display:"inline-block",width:`calc(100% + ${UE(A.lineWidth)} * 2)`,height:A.lineWidth,backgroundColor:A.colorPrimaryHover,content:'""'}}}}}}},Ey=Tf(["Button","compact"],(A=>{const e=Um(A);return[cy(e),By(e),Qy(e)]}),Km);const Cy=j.forwardRef(((A,e)=>{var t,n,o;const{loading:r=!1,prefixCls:i,type:a,danger:s,shape:l="default",size:g,styles:c,disabled:u,className:B,rootClassName:Q,children:E,icon:C,iconPosition:d="start",ghost:I=!1,block:p=!1,htmlType:f="button",classNames:h,style:w={},autoInsertSpace:D}=A,m=function(A,e){var t={};for(var n in A)Object.prototype.hasOwnProperty.call(A,n)&&e.indexOf(n)<0&&(t[n]=A[n]);if(null!=A&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(n=Object.getOwnPropertySymbols(A);ofunction(A){if("object"==typeof A&&A){let e=null==A?void 0:A.delay;return e=Number.isNaN(e)||"number"!=typeof e?0:e,{loading:e<=0,delay:e}}return{loading:!!A,delay:0}}(r)),[r]),[G,O]=J.useState(H.loading),[U,K]=J.useState(!1),Y=Pd(e,J.createRef()),T=1===J.Children.count(E)&&!C&&!Sm(y);J.useEffect((()=>{let A=null;return H.delay>0?A=setTimeout((()=>{A=null,O(!0)}),H.delay):O(H.loading),function(){A&&(clearTimeout(A),A=null)}}),[H]),J.useEffect((()=>{if(!Y||!Y.current||!M)return;const A=Y.current.textContent;T&&km(A)?U||K(!0):U&&K(!1)}),[Y]);const q=e=>{const{onClick:t}=A;G||L?e.preventDefault():null==t||t(e)},{compactSize:$,compactItemClassnames:z}=Dm(x,v),W=Cm((A=>{var e,t;return null!==(t=null!==(e=null!=g?g:$)&&void 0!==e?e:P)&&void 0!==t?t:A})),_=W&&{large:"lg",small:"sm",middle:void 0}[W]||"",X=G?"loading":C,V=wI(m,["navigate"]),Z=ud(x,F,N,{[`${x}-${l}`]:"default"!==l&&l,[`${x}-${y}`]:y,[`${x}-${_}`]:_,[`${x}-icon-only`]:!E&&0!==E&&!!X,[`${x}-background-ghost`]:I&&!Sm(y),[`${x}-loading`]:G,[`${x}-two-chinese-chars`]:U&&M&&!G,[`${x}-block`]:p,[`${x}-dangerous`]:!!s,[`${x}-rtl`]:"rtl"===v},z,B,Q,null==k?void 0:k.className),AA=Object.assign(Object.assign({},null==k?void 0:k.style),w),eA="end"===d&&E&&0!==E&&X,tA=ud(null==h?void 0:h.icon,null===(n=null==k?void 0:k.classNames)||void 0===n?void 0:n.icon,{[`${x}-icon-end`]:eA}),nA=Object.assign(Object.assign({},(null==c?void 0:c.icon)||{}),(null===(o=null==k?void 0:k.styles)||void 0===o?void 0:o.icon)||{}),oA=C&&!G?j.createElement(Nm,{prefixCls:x,className:tA,style:nA},C):j.createElement(Hm,{existIcon:!!C,prefixCls:x,loading:!!G,iconPosition:d}),rA=E||0===E?Fm(E,T&&M):null,iA=(A,e)=>{const t="rtl"===v,n="start"===d&&!t||"end"===d&&t;return j.createElement(j.Fragment,null,n?A:e,n?e:A)};if(void 0!==V.href)return S(j.createElement("a",Object.assign({},V,{className:ud(Z,{[`${x}-disabled`]:L}),href:L?void 0:V.href,style:AA,onClick:q,ref:Y,tabIndex:L?-1:0}),iA(oA,rA)));let aA=j.createElement("button",Object.assign({},m,{type:f,className:Z,style:AA,onClick:q,disabled:L,ref:Y}),iA(oA,rA),!!z&&j.createElement(Ey,{key:"compact",prefixCls:x}));return Sm(y)||(aA=j.createElement(Em,{component:"Button",disabled:!!G},aA)),S(aA)})),dy=Cy;function Iy(A){return!(!A||!A.then)}dy.Group=A=>{const{getPrefixCls:e,direction:t}=J.useContext(Xp),{prefixCls:n,size:o,className:r}=A,i=function(A,e){var t={};for(var n in A)Object.prototype.hasOwnProperty.call(A,n)&&e.indexOf(n)<0&&(t[n]=A[n]);if(null!=A&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(n=Object.getOwnPropertySymbols(A);o{const{type:e,children:t,prefixCls:n,buttonProps:o,close:r,autoFocus:i,emitEvent:a,isSilent:s,quitOnNullishReturnValue:l,actionFn:g}=A,c=J.useRef(!1),u=J.useRef(null),[B,Q]=yf(!1),E=function(){null==r||r.apply(void 0,arguments)};J.useEffect((()=>{let A=null;return i&&(A=setTimeout((()=>{var A;null===(A=u.current)||void 0===A||A.focus()}))),()=>{A&&clearTimeout(A)}}),[]);return J.createElement(dy,Object.assign({},Mm(e),{onClick:A=>{if(c.current)return;if(c.current=!0,!g)return void E();let e;if(a){if(e=g(A),l&&!Iy(e))return c.current=!1,void E(A)}else if(g.length)e=g(r),c.current=!1;else if(e=g(),!e)return void E();(A=>{Iy(A)&&(Q(!0),A.then((function(){Q(!1,!0),E.apply(void 0,arguments),c.current=!1}),(A=>{if(Q(!1,!0),c.current=!1,!(null==s?void 0:s()))return Promise.reject(A)})))})(e)},loading:B,prefixCls:n},o,{ref:u}),t)},fy=j.createContext({}),{Provider:hy}=fy,wy=()=>{const{autoFocusButton:A,cancelButtonProps:e,cancelTextLocale:t,isSilent:n,mergedOkCancel:o,rootPrefixCls:r,close:i,onCancel:a,onConfirm:s}=J.useContext(fy);return o?j.createElement(py,{isSilent:n,actionFn:a,close:function(){null==i||i.apply(void 0,arguments),null==s||s(!1)},autoFocus:"cancel"===A,buttonProps:e,prefixCls:`${r}-btn`},t):null},Dy=()=>{const{autoFocusButton:A,close:e,isSilent:t,okButtonProps:n,rootPrefixCls:o,okTextLocale:r,okType:i,onConfirm:a,onOk:s}=J.useContext(fy);return j.createElement(py,{isSilent:t,type:i||"primary",actionFn:s,close:function(){null==e||e.apply(void 0,arguments),null==a||a(!0)},autoFocus:"ok"===A,buttonProps:n,prefixCls:`${o}-btn`},r)};var my=J.createContext(null),yy=[];function by(A){return"undefined"!=typeof document&&A&&A instanceof Element?function(A){var e="rc-scrollbar-measure-".concat(Math.random().toString(36).substring(7)),t=document.createElement("div");t.id=e;var n,o,r=t.style;if(r.position="absolute",r.left="0",r.top="0",r.width="100px",r.height="100px",r.overflow="scroll",A){var i=getComputedStyle(A);r.scrollbarColor=i.scrollbarColor,r.scrollbarWidth=i.scrollbarWidth;var a=getComputedStyle(A,"::-webkit-scrollbar"),s=parseInt(a.width,10),l=parseInt(a.height,10);try{var g=s?"width: ".concat(a.width,";"):"",c=l?"height: ".concat(a.height,";"):"";cE("\n#".concat(e,"::-webkit-scrollbar {\n").concat(g,"\n").concat(c,"\n}"),e)}catch(R3){console.error(R3),n=s,o=l}}document.body.appendChild(t);var u=A&&n&&!isNaN(n)?n:t.offsetWidth-t.clientWidth,B=A&&o&&!isNaN(o)?o:t.offsetHeight-t.clientHeight;return document.body.removeChild(t),gE(e),{width:u,height:B}}(A):{width:0,height:0}}var vy="rc-util-locker-".concat(Date.now()),ky=0;function My(A){var e=!!A,t=WQ(J.useState((function(){return ky+=1,"".concat(vy,"_").concat(ky)})),1)[0];qE((function(){if(e){var A=by(document.body).width,n=document.body.scrollHeight>(window.innerHeight||document.documentElement.clientHeight)&&window.innerWidth>document.body.offsetWidth;cE("\nhtml body {\n overflow-y: hidden;\n ".concat(n?"width: calc(100% - ".concat(A,"px);"):"","\n}"),t)}else gE(t);return function(){gE(t)}}),[e,t])}var xy=function(A){return!1!==A&&(ZQ()&&A?"string"==typeof A?document.querySelector(A):"function"==typeof A?A():A:null)},Sy=J.forwardRef((function(A,e){var t=A.open,n=A.autoLock,o=A.getContainer;A.debug;var r=A.autoDestroy,i=void 0===r||r,a=A.children,s=WQ(J.useState(t),2),l=s[0],g=s[1],c=l||t;J.useEffect((function(){(i||t)&&g(t)}),[t,i]);var u=WQ(J.useState((function(){return xy(o)})),2),B=u[0],Q=u[1];J.useEffect((function(){var A=xy(o);Q(null!=A?A:null)}));var E=function(A,e){var t=WQ(J.useState((function(){return ZQ()?document.createElement("div"):null})),1)[0],n=J.useRef(!1),o=J.useContext(my),r=WQ(J.useState(yy),2),i=r[0],a=r[1],s=o||(n.current?void 0:function(A){a((function(e){return[A].concat(XQ(e))}))});function l(){t.parentElement||document.body.appendChild(t),n.current=!0}function g(){var A;null===(A=t.parentElement)||void 0===A||A.removeChild(t),n.current=!1}return qE((function(){return A?o?o(l):l():g(),g}),[A]),qE((function(){i.length&&(i.forEach((function(A){return A()})),a(yy))}),[i]),[t,s]}(c&&!B),C=WQ(E,2),d=C[0],I=C[1],p=null!=B?B:d;My(n&&t&&ZQ()&&(p===d||p===document.body));var f=null;a&&Gd(a)&&e&&(f=a.ref);var h=Hd(f,e);if(!c||!ZQ()||void 0===B)return null;var w=!1===p||!1,D=a;return e&&(D=J.cloneElement(a,{ref:h})),J.createElement(my.Provider,{value:I},w?D:pc.createPortal(D,p))})),Fy=J.createContext({});var Ny=0,Ry=kc({},q).useId;const Ly=Ry?function(A){var e=Ry();return A||e}:function(A){var e=WQ(J.useState("ssr-id"),2),t=e[0],n=e[1];return J.useEffect((function(){var A=Ny;Ny+=1,n("rc_unique_".concat(A))}),[]),A||t};function Py(A,e,t){var n=e;return!n&&t&&(n="".concat(A,"-").concat(t)),n}function Hy(A,e){var t=A["page".concat(e?"Y":"X","Offset")],n="scroll".concat(e?"Top":"Left");if("number"!=typeof t){var o=A.document;"number"!=typeof(t=o.documentElement[n])&&(t=o.body[n])}return t}const Gy=J.memo((function(A){return A.children}),(function(A,e){return!e.shouldUpdate}));var Oy={width:0,height:0,overflow:"hidden",outline:"none"},Uy={outline:"none"},Ky=j.forwardRef((function(A,e){var t=A.prefixCls,n=A.className,o=A.style,r=A.title,i=A.ariaId,a=A.footer,s=A.closable,l=A.closeIcon,g=A.onClose,c=A.children,u=A.bodyStyle,B=A.bodyProps,Q=A.modalRender,E=A.onMouseDown,C=A.onMouseUp,d=A.holderRef,I=A.visible,p=A.forceRender,f=A.width,h=A.height,w=A.classNames,D=A.styles,m=j.useContext(Fy).panel,y=Hd(d,m),b=J.useRef(),v=J.useRef(),k=J.useRef();j.useImperativeHandle(e,(function(){return{focus:function(){var A;null===(A=k.current)||void 0===A||A.focus()},changeActive:function(A){var e=document.activeElement;A&&e===v.current?b.current.focus():A||e!==b.current||v.current.focus()}}}));var M,x,S={};void 0!==f&&(S.width=f),void 0!==h&&(S.height=h),a&&(M=j.createElement("div",{className:ud("".concat(t,"-footer"),null==w?void 0:w.footer),style:kc({},null==D?void 0:D.footer)},a)),r&&(x=j.createElement("div",{className:ud("".concat(t,"-header"),null==w?void 0:w.header),style:kc({},null==D?void 0:D.header)},j.createElement("div",{className:"".concat(t,"-title"),id:i},r)));var F,N=J.useMemo((function(){return"object"===mc(s)&&null!==s?s:s?{closeIcon:null!=l?l:j.createElement("span",{className:"".concat(t,"-close-x")})}:{}}),[s,l]),R=Lw(N,!0);s&&(F=j.createElement("button",BQ({type:"button",onClick:g,"aria-label":"Close"},R,{className:"".concat(t,"-close")}),N.closeIcon));var L=j.createElement("div",{className:ud("".concat(t,"-content"),null==w?void 0:w.content),style:null==D?void 0:D.content},F,x,j.createElement("div",BQ({className:ud("".concat(t,"-body"),null==w?void 0:w.body),style:kc(kc({},u),null==D?void 0:D.body)},B),c),M);return j.createElement("div",{key:"dialog-element",role:"dialog","aria-labelledby":r?i:null,"aria-modal":"true",ref:y,style:kc(kc({},o),S),className:ud(t,n),onMouseDown:E,onMouseUp:C},j.createElement("div",{tabIndex:0,ref:b,style:Oy,"aria-hidden":"true"}),j.createElement("div",{ref:k,tabIndex:-1,style:Uy},j.createElement(Gy,{shouldUpdate:I||p},Q?Q(L):L)),j.createElement("div",{tabIndex:0,ref:v,style:Oy,"aria-hidden":"true"}))})),Yy=J.forwardRef((function(A,e){var t=A.prefixCls,n=A.title,o=A.style,r=A.className,i=A.visible,a=A.forceRender,s=A.destroyOnClose,l=A.motionName,g=A.ariaId,c=A.onVisibleChanged,u=A.mousePosition,B=J.useRef(),Q=WQ(J.useState(),2),E=Q[0],C=Q[1],d={};function I(){var A,e,t,n,o,r=(A=B.current,e=A.getBoundingClientRect(),t={left:e.left,top:e.top},n=A.ownerDocument,o=n.defaultView||n.parentWindow,t.left+=Hy(o),t.top+=Hy(o,!0),t);C(u?"".concat(u.x-r.left,"px ").concat(u.y-r.top,"px"):"")}return E&&(d.transformOrigin=E),J.createElement(Nh,{visible:i,onVisibleChanged:c,onAppearPrepare:I,onEnterPrepare:I,forceRender:a,motionName:l,removeOnLeave:s,ref:B},(function(i,a){var s=i.className,l=i.style;return J.createElement(Ky,BQ({},A,{ref:e,title:n,ariaId:g,prefixCls:t,holderRef:a,style:kc(kc(kc({},l),o),d),className:ud(r,s)}))}))}));function Ty(A){var e=A.prefixCls,t=A.style,n=A.visible,o=A.maskProps,r=A.motionName,i=A.className;return J.createElement(Nh,{key:"mask",visible:n,motionName:r,leavedClassName:"".concat(e,"-mask-hidden")},(function(A,n){var r=A.className,a=A.style;return J.createElement("div",BQ({ref:n,style:kc(kc({},a),t),className:ud("".concat(e,"-mask"),r,i)},o))}))}function Jy(A){var e=A.prefixCls,t=void 0===e?"rc-dialog":e,n=A.zIndex,o=A.visible,r=void 0!==o&&o,i=A.keyboard,a=void 0===i||i,s=A.focusTriggerAfterClose,l=void 0===s||s,g=A.wrapStyle,c=A.wrapClassName,u=A.wrapProps,B=A.onClose,Q=A.afterOpenChange,E=A.afterClose,C=A.transitionName,d=A.animation,I=A.closable,p=void 0===I||I,f=A.mask,h=void 0===f||f,w=A.maskTransitionName,D=A.maskAnimation,m=A.maskClosable,y=void 0===m||m,b=A.maskStyle,v=A.maskProps,k=A.rootClassName,M=A.classNames,x=A.styles,S=J.useRef(),F=J.useRef(),N=J.useRef(),R=WQ(J.useState(r),2),L=R[0],P=R[1],H=Ly();function G(A){null==B||B(A)}var O=J.useRef(!1),U=J.useRef(),K=null;return y&&(K=function(A){O.current?O.current=!1:F.current===A.target&&G(A)}),J.useEffect((function(){r&&(P(!0),AE(F.current,document.activeElement)||(S.current=document.activeElement))}),[r]),J.useEffect((function(){return function(){clearTimeout(U.current)}}),[]),J.createElement("div",BQ({className:ud("".concat(t,"-root"),k)},Lw(A,{data:!0})),J.createElement(Ty,{prefixCls:t,visible:h&&r,motionName:Py(t,w,D),style:kc(kc({zIndex:n},b),null==x?void 0:x.mask),maskProps:v,className:null==M?void 0:M.mask}),J.createElement("div",BQ({tabIndex:-1,onKeyDown:function(A){if(a&&A.keyCode===rD.ESC)return A.stopPropagation(),void G(A);r&&A.keyCode===rD.TAB&&N.current.changeActive(!A.shiftKey)},className:ud("".concat(t,"-wrap"),c,null==M?void 0:M.wrapper),ref:F,onClick:K,style:kc(kc(kc({zIndex:n},g),null==x?void 0:x.wrapper),{},{display:L?null:"none"})},u),J.createElement(Yy,BQ({},A,{onMouseDown:function(){clearTimeout(U.current),O.current=!0},onMouseUp:function(){U.current=setTimeout((function(){O.current=!1}))},ref:N,closable:p,ariaId:H,prefixCls:t,visible:r&&L,onClose:G,onVisibleChanged:function(A){if(A)AE(F.current,document.activeElement)||null===(e=N.current)||void 0===e||e.focus();else{if(P(!1),h&&S.current&&l){try{S.current.focus({preventScroll:!0})}catch(R3){}S.current=null}L&&(null==E||E())}var e;null==Q||Q(A)},motionName:Py(t,C,d)}))))}Yy.displayName="Content";var jy=function(A){var e=A.visible,t=A.getContainer,n=A.forceRender,o=A.destroyOnClose,r=void 0!==o&&o,i=A.afterClose,a=A.panelRef,s=WQ(J.useState(e),2),l=s[0],g=s[1],c=J.useMemo((function(){return{panel:a}}),[a]);return J.useEffect((function(){e&&g(!0)}),[e]),n||!r||l?J.createElement(Fy.Provider,{value:c},J.createElement(Sy,{open:e||n||l,autoDestroy:!1,getContainer:t,autoLock:e||l},J.createElement(Jy,BQ({},A,{destroyOnClose:r,afterClose:function(){null==i||i(),g(!1)}})))):null};function qy(A){if(A)return{closable:A.closable,closeIcon:A.closeIcon}}function $y(A){const{closable:e,closeIcon:t}=A||{};return j.useMemo((()=>{if(!e&&(!1===e||!1===t||null===t))return!1;if(void 0===e&&void 0===t)return null;let A={closeIcon:"boolean"!=typeof t&&null!==t?t:void 0};return e&&"object"==typeof e&&(A=Object.assign(Object.assign({},A),e)),A}),[e,t])}function zy(){const A={};for(var e=arguments.length,t=new Array(e),n=0;n{e&&Object.keys(e).forEach((t=>{void 0!==e[t]&&(A[t]=e[t])}))})),A}jy.displayName="Dialog";const Wy={};function _y(A,e){let t=arguments.length>2&&void 0!==arguments[2]?arguments[2]:Wy;const n=$y(A),o=$y(e),r=j.useMemo((()=>Object.assign({closeIcon:j.createElement(mw,null)},t)),[t]),i=j.useMemo((()=>!1!==n&&(n?zy(r,o,n):!1!==o&&(o?zy(r,o):!!r.closable&&r))),[n,o,r]);return j.useMemo((()=>{if(!1===i)return[!1,null];const{closeIconRender:A}=r,{closeIcon:e}=i;let t=e;if(null!=t){A&&(t=A(e));const n=Lw(i,!0);Object.keys(n).length&&(t=j.isValidElement(t)?j.cloneElement(t,n):j.createElement("span",Object.assign({},n),t))}return[!0,t]}),[i,r])}var Xy="RC_FORM_INTERNAL_HOOKS",Vy=function(){dE(!1,"Can not find FormContext. Please make sure you wrap Field under Form.")},Zy=J.createContext({getFieldValue:Vy,getFieldsValue:Vy,getFieldError:Vy,getFieldWarning:Vy,getFieldsError:Vy,isFieldsTouched:Vy,isFieldTouched:Vy,isFieldValidating:Vy,isFieldsValidating:Vy,resetFields:Vy,setFields:Vy,setFieldValue:Vy,setFieldsValue:Vy,validateFields:Vy,submit:Vy,getInternalHooks:function(){return Vy(),{dispatch:Vy,initEntityValue:Vy,registerField:Vy,useSubscribe:Vy,setInitialValues:Vy,destroyForm:Vy,setCallbacks:Vy,registerWatch:Vy,getFields:Vy,setValidateMessages:Vy,setPreserve:Vy,getInitialValue:Vy}}}),Ab=J.createContext(null);function eb(A){return null==A?[]:Array.isArray(A)?A:[A]}function tb(){return{default:"Validation error on field %s",required:"%s is required",enum:"%s must be one of %s",whitespace:"%s cannot be empty",date:{format:"%s date %s is invalid for format %s",parse:"%s date could not be parsed, %s is invalid ",invalid:"%s date %s is invalid"},types:{string:"%s is not a %s",method:"%s is not a %s (function)",array:"%s is not an %s",object:"%s is not an %s",number:"%s is not a %s",date:"%s is not a %s",boolean:"%s is not a %s",integer:"%s is not an %s",float:"%s is not a %s",regexp:"%s is not a valid %s",email:"%s is not a valid %s",url:"%s is not a valid %s",hex:"%s is not a valid %s"},string:{len:"%s must be exactly %s characters",min:"%s must be at least %s characters",max:"%s cannot be longer than %s characters",range:"%s must be between %s and %s characters"},number:{len:"%s must equal %s",min:"%s cannot be less than %s",max:"%s cannot be greater than %s",range:"%s must be between %s and %s"},array:{len:"%s must be exactly %s in length",min:"%s cannot be less than %s in length",max:"%s cannot be greater than %s in length",range:"%s must be between %s and %s in length"},pattern:{mismatch:"%s value %s does not match pattern %s"},clone:function(){var A=JSON.parse(JSON.stringify(this));return A.clone=this.clone,A}}}var nb=tb();function ob(A){var e="function"==typeof Map?new Map:void 0;return ob=function(A){if(null===A||!function(A){try{return-1!==Function.toString.call(A).indexOf("[native code]")}catch(R3){return"function"==typeof A}}(A))return A;if("function"!=typeof A)throw new TypeError("Super expression must either be null or a function");if(void 0!==e){if(e.has(A))return e.get(A);e.set(A,t)}function t(){return function(A,e,t){if(BI())return Reflect.construct.apply(null,arguments);var n=[null];n.push.apply(n,e);var o=new(A.bind.apply(A,n));return t&&gI(o,t.prototype),o}(A,arguments,uI(this).constructor)}return t.prototype=Object.create(A.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),gI(t,A)},ob(A)}var rb=/%[sdj%]/g,ib=function(){};function ab(A){if(!A||!A.length)return null;var e={};return A.forEach((function(A){var t=A.field;e[t]=e[t]||[],e[t].push(A)})),e}function sb(A){for(var e=arguments.length,t=new Array(e>1?e-1:0),n=1;n=r)return A;switch(A){case"%s":return String(t[o++]);case"%d":return Number(t[o++]);case"%j":try{return JSON.stringify(t[o++])}catch(e){return"[Circular]"}break;default:return A}})):A}function lb(A,e){return null==A||(!("array"!==e||!Array.isArray(A)||A.length)||!(!function(A){return"string"===A||"url"===A||"hex"===A||"email"===A||"date"===A||"pattern"===A}(e)||"string"!=typeof A||A))}function gb(A,e,t){var n=0,o=A.length;!function r(i){if(i&&i.length)t(i);else{var a=n;n+=1,a()\[\]\\.,;:\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,}))$/,pb=/^#?([a-f0-9]{6}|[a-f0-9]{3})$/i,fb={integer:function(A){return fb.number(A)&&parseInt(A,10)===A},float:function(A){return fb.number(A)&&!fb.integer(A)},array:function(A){return Array.isArray(A)},regexp:function(A){if(A instanceof RegExp)return!0;try{return!!new RegExp(A)}catch(R3){return!1}},date:function(A){return"function"==typeof A.getTime&&"function"==typeof A.getMonth&&"function"==typeof A.getYear&&!isNaN(A.getTime())},number:function(A){return!isNaN(A)&&"number"==typeof A},object:function(A){return"object"===mc(A)&&!fb.array(A)},method:function(A){return"function"==typeof A},email:function(A){return"string"==typeof A&&A.length<=320&&!!A.match(Ib)},url:function(A){return"string"==typeof A&&A.length<=2048&&!!A.match(function(){if(Eb)return Eb;var A="[a-fA-F\\d:]",e=function(e){return e&&e.includeBoundaries?"(?:(?<=\\s|^)(?=".concat(A,")|(?<=").concat(A,")(?=\\s|$))"):""},t="(?: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}",n="[a-fA-F\\d]{1,4}",o=["(?:".concat(n,":){7}(?:").concat(n,"|:)"),"(?:".concat(n,":){6}(?:").concat(t,"|:").concat(n,"|:)"),"(?:".concat(n,":){5}(?::").concat(t,"|(?::").concat(n,"){1,2}|:)"),"(?:".concat(n,":){4}(?:(?::").concat(n,"){0,1}:").concat(t,"|(?::").concat(n,"){1,3}|:)"),"(?:".concat(n,":){3}(?:(?::").concat(n,"){0,2}:").concat(t,"|(?::").concat(n,"){1,4}|:)"),"(?:".concat(n,":){2}(?:(?::").concat(n,"){0,3}:").concat(t,"|(?::").concat(n,"){1,5}|:)"),"(?:".concat(n,":){1}(?:(?::").concat(n,"){0,4}:").concat(t,"|(?::").concat(n,"){1,6}|:)"),"(?::(?:(?::".concat(n,"){0,5}:").concat(t,"|(?::").concat(n,"){1,7}|:))")],r="(?:".concat(o.join("|"),")").concat("(?:%[0-9a-zA-Z]{1,})?"),i=new RegExp("(?:^".concat(t,"$)|(?:^").concat(r,"$)")),a=new RegExp("^".concat(t,"$")),s=new RegExp("^".concat(r,"$")),l=function(A){return A&&A.exact?i:new RegExp("(?:".concat(e(A)).concat(t).concat(e(A),")|(?:").concat(e(A)).concat(r).concat(e(A),")"),"g")};l.v4=function(A){return A&&A.exact?a:new RegExp("".concat(e(A)).concat(t).concat(e(A)),"g")},l.v6=function(A){return A&&A.exact?s:new RegExp("".concat(e(A)).concat(r).concat(e(A)),"g")};var g=l.v4().source,c=l.v6().source,u="(?:".concat("(?:(?:[a-z]+:)?//)","|www\\.)").concat("(?:\\S+(?::\\S*)?@)?","(?:localhost|").concat(g,"|").concat(c,"|").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 Eb=new RegExp("(?:^".concat(u,"$)"),"i")}())},hex:function(A){return"string"==typeof A&&!!A.match(pb)}};const hb={required:db,whitespace:function(A,e,t,n,o){(/^\s+$/.test(e)||""===e)&&n.push(sb(o.messages.whitespace,A.fullField))},type:function(A,e,t,n,o){if(A.required&&void 0===e)db(A,e,t,n,o);else{var r=A.type;["integer","float","array","regexp","object","method","email","number","date","url","hex"].indexOf(r)>-1?fb[r](e)||n.push(sb(o.messages.types[r],A.fullField,A.type)):r&&mc(e)!==A.type&&n.push(sb(o.messages.types[r],A.fullField,A.type))}},range:function(A,e,t,n,o){var r="number"==typeof A.len,i="number"==typeof A.min,a="number"==typeof A.max,s=e,l=null,g="number"==typeof e,c="string"==typeof e,u=Array.isArray(e);if(g?l="number":c?l="string":u&&(l="array"),!l)return!1;u&&(s=e.length),c&&(s=e.replace(/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,"_").length),r?s!==A.len&&n.push(sb(o.messages[l].len,A.fullField,A.len)):i&&!a&&sA.max?n.push(sb(o.messages[l].max,A.fullField,A.max)):i&&a&&(sA.max)&&n.push(sb(o.messages[l].range,A.fullField,A.min,A.max))},enum:function(A,e,t,n,o){A[Cb]=Array.isArray(A[Cb])?A[Cb]:[],-1===A[Cb].indexOf(e)&&n.push(sb(o.messages[Cb],A.fullField,A[Cb].join(", ")))},pattern:function(A,e,t,n,o){if(A.pattern)if(A.pattern instanceof RegExp)A.pattern.lastIndex=0,A.pattern.test(e)||n.push(sb(o.messages.pattern.mismatch,A.fullField,e,A.pattern));else if("string"==typeof A.pattern){new RegExp(A.pattern).test(e)||n.push(sb(o.messages.pattern.mismatch,A.fullField,e,A.pattern))}}};var wb=function(A,e,t,n,o){var r=A.type,i=[];if(A.required||!A.required&&n.hasOwnProperty(A.field)){if(lb(e,r)&&!A.required)return t();hb.required(A,e,n,i,o,r),lb(e,r)||hb.type(A,e,n,i,o)}t(i)};const Db={string:function(A,e,t,n,o){var r=[];if(A.required||!A.required&&n.hasOwnProperty(A.field)){if(lb(e,"string")&&!A.required)return t();hb.required(A,e,n,r,o,"string"),lb(e,"string")||(hb.type(A,e,n,r,o),hb.range(A,e,n,r,o),hb.pattern(A,e,n,r,o),!0===A.whitespace&&hb.whitespace(A,e,n,r,o))}t(r)},method:function(A,e,t,n,o){var r=[];if(A.required||!A.required&&n.hasOwnProperty(A.field)){if(lb(e)&&!A.required)return t();hb.required(A,e,n,r,o),void 0!==e&&hb.type(A,e,n,r,o)}t(r)},number:function(A,e,t,n,o){var r=[];if(A.required||!A.required&&n.hasOwnProperty(A.field)){if(""===e&&(e=void 0),lb(e)&&!A.required)return t();hb.required(A,e,n,r,o),void 0!==e&&(hb.type(A,e,n,r,o),hb.range(A,e,n,r,o))}t(r)},boolean:function(A,e,t,n,o){var r=[];if(A.required||!A.required&&n.hasOwnProperty(A.field)){if(lb(e)&&!A.required)return t();hb.required(A,e,n,r,o),void 0!==e&&hb.type(A,e,n,r,o)}t(r)},regexp:function(A,e,t,n,o){var r=[];if(A.required||!A.required&&n.hasOwnProperty(A.field)){if(lb(e)&&!A.required)return t();hb.required(A,e,n,r,o),lb(e)||hb.type(A,e,n,r,o)}t(r)},integer:function(A,e,t,n,o){var r=[];if(A.required||!A.required&&n.hasOwnProperty(A.field)){if(lb(e)&&!A.required)return t();hb.required(A,e,n,r,o),void 0!==e&&(hb.type(A,e,n,r,o),hb.range(A,e,n,r,o))}t(r)},float:function(A,e,t,n,o){var r=[];if(A.required||!A.required&&n.hasOwnProperty(A.field)){if(lb(e)&&!A.required)return t();hb.required(A,e,n,r,o),void 0!==e&&(hb.type(A,e,n,r,o),hb.range(A,e,n,r,o))}t(r)},array:function(A,e,t,n,o){var r=[];if(A.required||!A.required&&n.hasOwnProperty(A.field)){if(null==e&&!A.required)return t();hb.required(A,e,n,r,o,"array"),null!=e&&(hb.type(A,e,n,r,o),hb.range(A,e,n,r,o))}t(r)},object:function(A,e,t,n,o){var r=[];if(A.required||!A.required&&n.hasOwnProperty(A.field)){if(lb(e)&&!A.required)return t();hb.required(A,e,n,r,o),void 0!==e&&hb.type(A,e,n,r,o)}t(r)},enum:function(A,e,t,n,o){var r=[];if(A.required||!A.required&&n.hasOwnProperty(A.field)){if(lb(e)&&!A.required)return t();hb.required(A,e,n,r,o),void 0!==e&&hb.enum(A,e,n,r,o)}t(r)},pattern:function(A,e,t,n,o){var r=[];if(A.required||!A.required&&n.hasOwnProperty(A.field)){if(lb(e,"string")&&!A.required)return t();hb.required(A,e,n,r,o),lb(e,"string")||hb.pattern(A,e,n,r,o)}t(r)},date:function(A,e,t,n,o){var r=[];if(A.required||!A.required&&n.hasOwnProperty(A.field)){if(lb(e,"date")&&!A.required)return t();var i;if(hb.required(A,e,n,r,o),!lb(e,"date"))i=e instanceof Date?e:new Date(e),hb.type(A,i,n,r,o),i&&hb.range(A,i.getTime(),n,r,o)}t(r)},url:wb,hex:wb,email:wb,required:function(A,e,t,n,o){var r=[],i=Array.isArray(e)?"array":mc(e);hb.required(A,e,n,r,o,i),t(r)},any:function(A,e,t,n,o){var r=[];if(A.required||!A.required&&n.hasOwnProperty(A.field)){if(lb(e)&&!A.required)return t();hb.required(A,e,n,r,o)}t(r)}};var mb=function(){function A(e){eQ(this,A),bc(this,"rules",null),bc(this,"_messages",nb),this.define(e)}return nQ(A,[{key:"define",value:function(A){var e=this;if(!A)throw new Error("Cannot configure a schema with no rules");if("object"!==mc(A)||Array.isArray(A))throw new Error("Rules must be an object");this.rules={},Object.keys(A).forEach((function(t){var n=A[t];e.rules[t]=Array.isArray(n)?n:[n]}))}},{key:"messages",value:function(A){return A&&(this._messages=Qb(tb(),A)),this._messages}},{key:"validate",value:function(e){var t=this,n=e,o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:function(){};if("function"==typeof o&&(r=o,o={}),!this.rules||0===Object.keys(this.rules).length)return r&&r(null,n),Promise.resolve(n);if(o.messages){var i=this.messages();i===nb&&(i=tb()),Qb(i,o.messages),o.messages=i}else o.messages=this.messages();var a={};(o.keys||Object.keys(this.rules)).forEach((function(A){var o=t.rules[A],r=n[A];o.forEach((function(o){var i=o;"function"==typeof i.transform&&(n===e&&(n=kc({},n)),null!=(r=n[A]=i.transform(r))&&(i.type=i.type||(Array.isArray(r)?"array":mc(r)))),(i="function"==typeof i?{validator:i}:kc({},i)).validator=t.getValidationMethod(i),i.validator&&(i.field=A,i.fullField=i.fullField||A,i.type=t.getType(i),a[A]=a[A]||[],a[A].push({rule:i,value:r,source:n,field:A}))}))}));var s={};return ub(a,o,(function(e,t){var r,i=e.rule,a=!("object"!==i.type&&"array"!==i.type||"object"!==mc(i.fields)&&"object"!==mc(i.defaultField));function l(A,e){return kc(kc({},e),{},{fullField:"".concat(i.fullField,".").concat(A),fullFields:i.fullFields?[].concat(XQ(i.fullFields),[A]):[A]})}function g(){var r=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],g=Array.isArray(r)?r:[r];!o.suppressWarning&&g.length&&A.warning("async-validator:",g),g.length&&void 0!==i.message&&(g=[].concat(i.message));var c=g.map(Bb(i,n));if(o.first&&c.length)return s[i.field]=1,t(c);if(a){if(i.required&&!e.value)return void 0!==i.message?c=[].concat(i.message).map(Bb(i,n)):o.error&&(c=[o.error(i,sb(o.messages.required,i.field))]),t(c);var u={};i.defaultField&&Object.keys(e.value).map((function(A){u[A]=i.defaultField})),u=kc(kc({},u),e.rule.fields);var B={};Object.keys(u).forEach((function(A){var e=u[A],t=Array.isArray(e)?e:[e];B[A]=t.map(l.bind(null,A))}));var Q=new A(B);Q.messages(o.messages),e.rule.options&&(e.rule.options.messages=o.messages,e.rule.options.error=o.error),Q.validate(e.value,e.rule.options||o,(function(A){var e=[];c&&c.length&&e.push.apply(e,XQ(c)),A&&A.length&&e.push.apply(e,XQ(A)),t(e.length?e:null)}))}else t(c)}if(a=a&&(i.required||!i.required&&e.value),i.field=e.field,i.asyncValidator)r=i.asyncValidator(i,e.value,g,e.source,o);else if(i.validator){try{r=i.validator(i,e.value,g,e.source,o)}catch(B){var c,u;null===(c=(u=console).error)||void 0===c||c.call(u,B),o.suppressValidatorError||setTimeout((function(){throw B}),0),g(B.message)}!0===r?g():!1===r?g("function"==typeof i.message?i.message(i.fullField||i.field):i.message||"".concat(i.fullField||i.field," fails")):r instanceof Array?g(r):r instanceof Error&&g(r.message)}r&&r.then&&r.then((function(){return g()}),(function(A){return g(A)}))}),(function(A){!function(A){for(var e,t,o=[],i={},a=0;a2&&void 0!==arguments[2]&&arguments[2];return A&&A.some((function(A){return Gb(e,A,t)}))}function Gb(A,e){return!(!A||!e)&&(!(!(arguments.length>2&&void 0!==arguments[2]&&arguments[2])&&A.length!==e.length)&&e.every((function(e,t){return A[t]===e})))}function Ob(A){var e=arguments.length<=1?void 0:arguments[1];return e&&e.target&&"object"===mc(e.target)&&A in e.target?e.target[A]:e}function Ub(A,e,t){var n=A.length;if(e<0||e>=n||t<0||t>=n)return A;var o=A[e],r=e-t;return r>0?[].concat(XQ(A.slice(0,t)),[o],XQ(A.slice(t,e)),XQ(A.slice(e+1,n))):r<0?[].concat(XQ(A.slice(0,e)),XQ(A.slice(e+1,t+1)),[o],XQ(A.slice(t+1,n))):A}var Kb=["name"],Yb=[];function Tb(A,e,t,n,o,r){return"function"==typeof A?A(e,t,"source"in r?{source:r.source}:{}):n!==o}var Jb=function(A){cI(t,J.Component);var e=CI(t);function t(A){var n;(eQ(this,t),bc(QI(n=e.call(this,A)),"state",{resetCount:0}),bc(QI(n),"cancelRegisterFunc",null),bc(QI(n),"mounted",!1),bc(QI(n),"touched",!1),bc(QI(n),"dirty",!1),bc(QI(n),"validatePromise",void 0),bc(QI(n),"prevValidating",void 0),bc(QI(n),"errors",Yb),bc(QI(n),"warnings",Yb),bc(QI(n),"cancelRegister",(function(){var A=n.props,e=A.preserve,t=A.isListField,o=A.name;n.cancelRegisterFunc&&n.cancelRegisterFunc(t,e,Lb(o)),n.cancelRegisterFunc=null})),bc(QI(n),"getNamePath",(function(){var A=n.props,e=A.name,t=A.fieldContext.prefixName;return void 0!==e?[].concat(XQ(void 0===t?[]:t),XQ(e)):[]})),bc(QI(n),"getRules",(function(){var A=n.props,e=A.rules,t=void 0===e?[]:e,o=A.fieldContext;return t.map((function(A){return"function"==typeof A?A(o):A}))})),bc(QI(n),"refresh",(function(){n.mounted&&n.setState((function(A){return{resetCount:A.resetCount+1}}))})),bc(QI(n),"metaCache",null),bc(QI(n),"triggerMetaEvent",(function(A){var e=n.props.onMetaChange;if(e){var t=kc(kc({},n.getMeta()),{},{destroy:A});IE(n.metaCache,t)||e(t),n.metaCache=t}else n.metaCache=null})),bc(QI(n),"onStoreChange",(function(A,e,t){var o=n.props,r=o.shouldUpdate,i=o.dependencies,a=void 0===i?[]:i,s=o.onReset,l=t.store,g=n.getNamePath(),c=n.getValue(A),u=n.getValue(l),B=e&&Hb(e,g);switch("valueUpdate"!==t.type||"external"!==t.source||IE(c,u)||(n.touched=!0,n.dirty=!0,n.validatePromise=null,n.errors=Yb,n.warnings=Yb,n.triggerMetaEvent()),t.type){case"reset":if(!e||B)return n.touched=!1,n.dirty=!1,n.validatePromise=void 0,n.errors=Yb,n.warnings=Yb,n.triggerMetaEvent(),null==s||s(),void n.refresh();break;case"remove":if(r)return void n.reRender();break;case"setField":var Q=t.data;if(B)return"touched"in Q&&(n.touched=Q.touched),"validating"in Q&&!("originRCField"in Q)&&(n.validatePromise=Q.validating?Promise.resolve([]):null),"errors"in Q&&(n.errors=Q.errors||Yb),"warnings"in Q&&(n.warnings=Q.warnings||Yb),n.dirty=!0,n.triggerMetaEvent(),void n.reRender();if("value"in Q&&Hb(e,g,!0))return void n.reRender();if(r&&!g.length&&Tb(r,A,l,c,u,t))return void n.reRender();break;case"dependenciesUpdate":if(a.map(Lb).some((function(A){return Hb(t.relatedFields,A)})))return void n.reRender();break;default:if(B||(!a.length||g.length||r)&&Tb(r,A,l,c,u,t))return void n.reRender()}!0===r&&n.reRender()})),bc(QI(n),"validateRules",(function(A){var e=n.getNamePath(),t=n.getValue(),o=A||{},r=o.triggerName,i=o.validateOnly,a=void 0!==i&&i,s=Promise.resolve().then(UD(GD().mark((function o(){var i,a,l,g,c,u,B;return GD().wrap((function(o){for(;;)switch(o.prev=o.next){case 0:if(n.mounted){o.next=2;break}return o.abrupt("return",[]);case 2:if(i=n.props,a=i.validateFirst,l=void 0!==a&&a,g=i.messageVariables,c=i.validateDebounce,u=n.getRules(),r&&(u=u.filter((function(A){return A})).filter((function(A){var e=A.validateTrigger;return!e||eb(e).includes(r)}))),!c||!r){o.next=10;break}return o.next=8,new Promise((function(A){setTimeout(A,c)}));case 8:if(n.validatePromise===s){o.next=10;break}return o.abrupt("return",[]);case 10:return(B=Fb(e,t,u,A,l,g)).catch((function(A){return A})).then((function(){var A=arguments.length>0&&void 0!==arguments[0]?arguments[0]:Yb;if(n.validatePromise===s){var e;n.validatePromise=null;var t=[],o=[];null===(e=A.forEach)||void 0===e||e.call(A,(function(A){var e=A.rule.warningOnly,n=A.errors,r=void 0===n?Yb:n;e?o.push.apply(o,XQ(r)):t.push.apply(t,XQ(r))})),n.errors=t,n.warnings=o,n.triggerMetaEvent(),n.reRender()}})),o.abrupt("return",B);case 13:case"end":return o.stop()}}),o)}))));return a||(n.validatePromise=s,n.dirty=!0,n.errors=Yb,n.warnings=Yb,n.triggerMetaEvent(),n.reRender()),s})),bc(QI(n),"isFieldValidating",(function(){return!!n.validatePromise})),bc(QI(n),"isFieldTouched",(function(){return n.touched})),bc(QI(n),"isFieldDirty",(function(){return!(!n.dirty&&void 0===n.props.initialValue)||void 0!==(0,n.props.fieldContext.getInternalHooks(Xy).getInitialValue)(n.getNamePath())})),bc(QI(n),"getErrors",(function(){return n.errors})),bc(QI(n),"getWarnings",(function(){return n.warnings})),bc(QI(n),"isListField",(function(){return n.props.isListField})),bc(QI(n),"isList",(function(){return n.props.isList})),bc(QI(n),"isPreserve",(function(){return n.props.preserve})),bc(QI(n),"getMeta",(function(){return n.prevValidating=n.isFieldValidating(),{touched:n.isFieldTouched(),validating:n.prevValidating,errors:n.errors,warnings:n.warnings,name:n.getNamePath(),validated:null===n.validatePromise}})),bc(QI(n),"getOnlyChild",(function(A){if("function"==typeof A){var e=n.getMeta();return kc(kc({},n.getOnlyChild(A(n.getControlled(),e,n.props.fieldContext))),{},{isFunction:!0})}var t=Fd(A);return 1===t.length&&J.isValidElement(t[0])?{child:t[0],isFunction:!1}:{child:t,isFunction:!1}})),bc(QI(n),"getValue",(function(A){var e=n.props.fieldContext.getFieldsValue,t=n.getNamePath();return SI(A||e(!0),t)})),bc(QI(n),"getControlled",(function(){var A=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=n.props,t=e.name,o=e.trigger,r=e.validateTrigger,i=e.getValueFromEvent,a=e.normalize,s=e.valuePropName,l=e.getValueProps,g=e.fieldContext,c=void 0!==r?r:g.validateTrigger,u=n.getNamePath(),B=g.getInternalHooks,Q=g.getFieldsValue,E=B(Xy).dispatch,C=n.getValue(),d=l||function(A){return bc({},s,A)},I=A[o],p=void 0!==t?d(C):{},f=kc(kc({},A),p);return f[o]=function(){var A;n.touched=!0,n.dirty=!0,n.triggerMetaEvent();for(var e=arguments.length,t=new Array(e),o=0;o=0&&e<=t.length?(l.keys=[].concat(XQ(l.keys.slice(0,e)),[l.id],XQ(l.keys.slice(e))),r([].concat(XQ(t.slice(0,e)),[A],XQ(t.slice(e))))):(l.keys=[].concat(XQ(l.keys),[l.id]),r([].concat(XQ(t),[A]))),l.id+=1},remove:function(A){var e=s(),t=new Set(Array.isArray(A)?A:[A]);t.size<=0||(l.keys=l.keys.filter((function(A,e){return!t.has(e)})),r(e.filter((function(A,e){return!t.has(e)}))))},move:function(A,e){if(A!==e){var t=s();A<0||A>=t.length||e<0||e>=t.length||(l.keys=Ub(l.keys,A,e),r(Ub(t,A,e)))}}},u=o||[];return Array.isArray(u)||(u=[]),n(u.map((function(A,e){var t=l.keys[e];return void 0===t&&(l.keys[e]=l.id,t=l.keys[e],l.id+=1),{name:e,key:t,isListField:!0}})),c,e)}))))}bc(Jb,"contextType",Zy),bc(Jb,"defaultProps",{trigger:"onChange",valuePropName:"value"});var $b="__@field_split__";function zb(A){return A.map((function(A){return"".concat(mc(A),":").concat(A)})).join($b)}var Wb=function(){function A(){eQ(this,A),bc(this,"kvs",new Map)}return nQ(A,[{key:"set",value:function(A,e){this.kvs.set(zb(A),e)}},{key:"get",value:function(A){return this.kvs.get(zb(A))}},{key:"update",value:function(A,e){var t=e(this.get(A));t?this.set(A,t):this.delete(A)}},{key:"delete",value:function(A){this.kvs.delete(zb(A))}},{key:"map",value:function(A){return XQ(this.kvs.entries()).map((function(e){var t=WQ(e,2),n=t[0],o=t[1],r=n.split($b);return A({key:r.map((function(A){var e=WQ(A.match(/^([^:]*):(.*)$/),3),t=e[1],n=e[2];return"number"===t?Number(n):n})),value:o})}))}},{key:"toJSON",value:function(){var A={};return this.map((function(e){var t=e.key,n=e.value;return A[t.join(".")]=n,null})),A}}]),A}(),_b=["name"],Xb=nQ((function A(e){var t=this;eQ(this,A),bc(this,"formHooked",!1),bc(this,"forceRootUpdate",void 0),bc(this,"subscribable",!0),bc(this,"store",{}),bc(this,"fieldEntities",[]),bc(this,"initialValues",{}),bc(this,"callbacks",{}),bc(this,"validateMessages",null),bc(this,"preserve",null),bc(this,"lastValidatePromise",null),bc(this,"getForm",(function(){return{getFieldValue:t.getFieldValue,getFieldsValue:t.getFieldsValue,getFieldError:t.getFieldError,getFieldWarning:t.getFieldWarning,getFieldsError:t.getFieldsError,isFieldsTouched:t.isFieldsTouched,isFieldTouched:t.isFieldTouched,isFieldValidating:t.isFieldValidating,isFieldsValidating:t.isFieldsValidating,resetFields:t.resetFields,setFields:t.setFields,setFieldValue:t.setFieldValue,setFieldsValue:t.setFieldsValue,validateFields:t.validateFields,submit:t.submit,_init:!0,getInternalHooks:t.getInternalHooks}})),bc(this,"getInternalHooks",(function(A){return A===Xy?(t.formHooked=!0,{dispatch:t.dispatch,initEntityValue:t.initEntityValue,registerField:t.registerField,useSubscribe:t.useSubscribe,setInitialValues:t.setInitialValues,destroyForm:t.destroyForm,setCallbacks:t.setCallbacks,setValidateMessages:t.setValidateMessages,getFields:t.getFields,setPreserve:t.setPreserve,getInitialValue:t.getInitialValue,registerWatch:t.registerWatch}):(dE(!1,"`getInternalHooks` is internal usage. Should not call directly."),null)})),bc(this,"useSubscribe",(function(A){t.subscribable=A})),bc(this,"prevWithoutPreserves",null),bc(this,"setInitialValues",(function(A,e){if(t.initialValues=A||{},e){var n,o=PI(A,t.store);null===(n=t.prevWithoutPreserves)||void 0===n||n.map((function(e){var t=e.key;o=NI(o,t,SI(A,t))})),t.prevWithoutPreserves=null,t.updateStore(o)}})),bc(this,"destroyForm",(function(){var A=new Wb;t.getFieldEntities(!0).forEach((function(e){t.isMergedPreserve(e.isPreserve())||A.set(e.getNamePath(),!0)})),t.prevWithoutPreserves=A})),bc(this,"getInitialValue",(function(A){var e=SI(t.initialValues,A);return A.length?PI(e):e})),bc(this,"setCallbacks",(function(A){t.callbacks=A})),bc(this,"setValidateMessages",(function(A){t.validateMessages=A})),bc(this,"setPreserve",(function(A){t.preserve=A})),bc(this,"watchList",[]),bc(this,"registerWatch",(function(A){return t.watchList.push(A),function(){t.watchList=t.watchList.filter((function(e){return e!==A}))}})),bc(this,"notifyWatch",(function(){var A=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];if(t.watchList.length){var e=t.getFieldsValue(),n=t.getFieldsValue(!0);t.watchList.forEach((function(t){t(e,n,A)}))}})),bc(this,"timeoutId",null),bc(this,"warningUnhooked",(function(){})),bc(this,"updateStore",(function(A){t.store=A})),bc(this,"getFieldEntities",(function(){return arguments.length>0&&void 0!==arguments[0]&&arguments[0]?t.fieldEntities.filter((function(A){return A.getNamePath().length})):t.fieldEntities})),bc(this,"getFieldsMap",(function(){var A=arguments.length>0&&void 0!==arguments[0]&&arguments[0],e=new Wb;return t.getFieldEntities(A).forEach((function(A){var t=A.getNamePath();e.set(t,A)})),e})),bc(this,"getFieldEntitiesForNamePathList",(function(A){if(!A)return t.getFieldEntities(!0);var e=t.getFieldsMap(!0);return A.map((function(A){var t=Lb(A);return e.get(t)||{INVALIDATE_NAME_PATH:Lb(A)}}))})),bc(this,"getFieldsValue",(function(A,e){var n,o,r;if(t.warningUnhooked(),!0===A||Array.isArray(A)?(n=A,o=e):A&&"object"===mc(A)&&(r=A.strict,o=A.filter),!0===n&&!o)return t.store;var i=t.getFieldEntitiesForNamePathList(Array.isArray(n)?n:null),a=[];return i.forEach((function(A){var e,t,i,s,l="INVALIDATE_NAME_PATH"in A?A.INVALIDATE_NAME_PATH:A.getNamePath();if(r){if(null!==(i=(s=A).isList)&&void 0!==i&&i.call(s))return}else if(!n&&null!==(e=(t=A).isListField)&&void 0!==e&&e.call(t))return;if(o){var g="getMeta"in A?A.getMeta():null;o(g)&&a.push(l)}else a.push(l)})),Pb(t.store,a.map(Lb))})),bc(this,"getFieldValue",(function(A){t.warningUnhooked();var e=Lb(A);return SI(t.store,e)})),bc(this,"getFieldsError",(function(A){return t.warningUnhooked(),t.getFieldEntitiesForNamePathList(A).map((function(e,t){return e&&!("INVALIDATE_NAME_PATH"in e)?{name:e.getNamePath(),errors:e.getErrors(),warnings:e.getWarnings()}:{name:Lb(A[t]),errors:[],warnings:[]}}))})),bc(this,"getFieldError",(function(A){t.warningUnhooked();var e=Lb(A);return t.getFieldsError([e])[0].errors})),bc(this,"getFieldWarning",(function(A){t.warningUnhooked();var e=Lb(A);return t.getFieldsError([e])[0].warnings})),bc(this,"isFieldsTouched",(function(){t.warningUnhooked();for(var A=arguments.length,e=new Array(A),n=0;n0&&void 0!==arguments[0]?arguments[0]:{},e=new Wb,n=t.getFieldEntities(!0);n.forEach((function(A){var t=A.props.initialValue,n=A.getNamePath();if(void 0!==t){var o=e.get(n)||new Set;o.add({entity:A,value:t}),e.set(n,o)}}));var o;A.entities?o=A.entities:A.namePathList?(o=[],A.namePathList.forEach((function(A){var t,n=e.get(A);n&&(t=o).push.apply(t,XQ(XQ(n).map((function(A){return A.entity}))))}))):o=n,o.forEach((function(n){if(void 0!==n.props.initialValue){var o=n.getNamePath();if(void 0!==t.getInitialValue(o))dE(!1,"Form already set 'initialValues' with path '".concat(o.join("."),"'. Field can not overwrite it."));else{var r=e.get(o);if(r&&r.size>1)dE(!1,"Multiple Field with path '".concat(o.join("."),"' set 'initialValue'. Can not decide which one to pick."));else if(r){var i=t.getFieldValue(o);n.isListField()||A.skipExist&&void 0!==i||t.updateStore(NI(t.store,o,XQ(r)[0].value))}}}}))})),bc(this,"resetFields",(function(A){t.warningUnhooked();var e=t.store;if(!A)return t.updateStore(PI(t.initialValues)),t.resetWithFieldInitialValue(),t.notifyObservers(e,null,{type:"reset"}),void t.notifyWatch();var n=A.map(Lb);n.forEach((function(A){var e=t.getInitialValue(A);t.updateStore(NI(t.store,A,e))})),t.resetWithFieldInitialValue({namePathList:n}),t.notifyObservers(e,n,{type:"reset"}),t.notifyWatch(n)})),bc(this,"setFields",(function(A){t.warningUnhooked();var e=t.store,n=[];A.forEach((function(A){var o=A.name,r=Mc(A,_b),i=Lb(o);n.push(i),"value"in r&&t.updateStore(NI(t.store,i,r.value)),t.notifyObservers(e,[i],{type:"setField",data:A})})),t.notifyWatch(n)})),bc(this,"getFields",(function(){return t.getFieldEntities(!0).map((function(A){var e=A.getNamePath(),n=kc(kc({},A.getMeta()),{},{name:e,value:t.getFieldValue(e)});return Object.defineProperty(n,"originRCField",{value:!0}),n}))})),bc(this,"initEntityValue",(function(A){var e=A.props.initialValue;if(void 0!==e){var n=A.getNamePath();void 0===SI(t.store,n)&&t.updateStore(NI(t.store,n,e))}})),bc(this,"isMergedPreserve",(function(A){var e=void 0!==A?A:t.preserve;return null==e||e})),bc(this,"registerField",(function(A){t.fieldEntities.push(A);var e=A.getNamePath();if(t.notifyWatch([e]),void 0!==A.props.initialValue){var n=t.store;t.resetWithFieldInitialValue({entities:[A],skipExist:!0}),t.notifyObservers(n,[A.getNamePath()],{type:"valueUpdate",source:"internal"})}return function(n,o){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[];if(t.fieldEntities=t.fieldEntities.filter((function(e){return e!==A})),!t.isMergedPreserve(o)&&(!n||r.length>1)){var i=n?void 0:t.getInitialValue(e);if(e.length&&t.getFieldValue(e)!==i&&t.fieldEntities.every((function(A){return!Gb(A.getNamePath(),e)}))){var a=t.store;t.updateStore(NI(a,e,i,!0)),t.notifyObservers(a,[e],{type:"remove"}),t.triggerDependenciesUpdate(a,e)}}t.notifyWatch([e])}})),bc(this,"dispatch",(function(A){switch(A.type){case"updateValue":var e=A.namePath,n=A.value;t.updateValue(e,n);break;case"validateField":var o=A.namePath,r=A.triggerName;t.validateFields([o],{triggerName:r})}})),bc(this,"notifyObservers",(function(A,e,n){if(t.subscribable){var o=kc(kc({},n),{},{store:t.getFieldsValue(!0)});t.getFieldEntities().forEach((function(t){(0,t.onStoreChange)(A,e,o)}))}else t.forceRootUpdate()})),bc(this,"triggerDependenciesUpdate",(function(A,e){var n=t.getDependencyChildrenFields(e);return n.length&&t.validateFields(n),t.notifyObservers(A,n,{type:"dependenciesUpdate",relatedFields:[e].concat(XQ(n))}),n})),bc(this,"updateValue",(function(A,e){var n=Lb(A),o=t.store;t.updateStore(NI(t.store,n,e)),t.notifyObservers(o,[n],{type:"valueUpdate",source:"internal"}),t.notifyWatch([n]);var r=t.triggerDependenciesUpdate(o,n),i=t.callbacks.onValuesChange;i&&i(Pb(t.store,[n]),t.getFieldsValue());t.triggerOnFieldsChange([n].concat(XQ(r)))})),bc(this,"setFieldsValue",(function(A){t.warningUnhooked();var e=t.store;if(A){var n=PI(t.store,A);t.updateStore(n)}t.notifyObservers(e,null,{type:"valueUpdate",source:"external"}),t.notifyWatch()})),bc(this,"setFieldValue",(function(A,e){t.setFields([{name:A,value:e}])})),bc(this,"getDependencyChildrenFields",(function(A){var e=new Set,n=[],o=new Wb;t.getFieldEntities().forEach((function(A){(A.props.dependencies||[]).forEach((function(e){var t=Lb(e);o.update(t,(function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:new Set;return e.add(A),e}))}))}));return function A(t){(o.get(t)||new Set).forEach((function(t){if(!e.has(t)){e.add(t);var o=t.getNamePath();t.isFieldDirty()&&o.length&&(n.push(o),A(o))}}))}(A),n})),bc(this,"triggerOnFieldsChange",(function(A,e){var n=t.callbacks.onFieldsChange;if(n){var o=t.getFields();if(e){var r=new Wb;e.forEach((function(A){var e=A.name,t=A.errors;r.set(e,t)})),o.forEach((function(A){A.errors=r.get(A.name)||A.errors}))}var i=o.filter((function(e){var t=e.name;return Hb(A,t)}));i.length&&n(i,o)}})),bc(this,"validateFields",(function(A,e){var n,o;t.warningUnhooked(),Array.isArray(A)||"string"==typeof A||"string"==typeof e?(n=A,o=e):o=A;var r=!!n,i=r?n.map(Lb):[],a=[],s=String(Date.now()),l=new Set,g=o||{},c=g.recursive,u=g.dirty;t.getFieldEntities(!0).forEach((function(A){if(r||i.push(A.getNamePath()),A.props.rules&&A.props.rules.length&&(!u||A.isFieldDirty())){var e=A.getNamePath();if(l.add(e.join(s)),!r||Hb(i,e,c)){var n=A.validateRules(kc({validateMessages:kc(kc({},bb),t.validateMessages)},o));a.push(n.then((function(){return{name:e,errors:[],warnings:[]}})).catch((function(A){var t,n=[],o=[];return null===(t=A.forEach)||void 0===t||t.call(A,(function(A){var e=A.rule.warningOnly,t=A.errors;e?o.push.apply(o,XQ(t)):n.push.apply(n,XQ(t))})),n.length?Promise.reject({name:e,errors:n,warnings:o}):{name:e,errors:n,warnings:o}})))}}}));var B=function(A){var e=!1,t=A.length,n=[];return A.length?new Promise((function(o,r){A.forEach((function(A,i){A.catch((function(A){return e=!0,A})).then((function(A){t-=1,n[i]=A,t>0||(e&&r(n),o(n))}))}))})):Promise.resolve([])}(a);t.lastValidatePromise=B,B.catch((function(A){return A})).then((function(A){var e=A.map((function(A){return A.name}));t.notifyObservers(t.store,e,{type:"validateFinish"}),t.triggerOnFieldsChange(e,A)}));var Q=B.then((function(){return t.lastValidatePromise===B?Promise.resolve(t.getFieldsValue(i)):Promise.reject([])})).catch((function(A){var e=A.filter((function(A){return A&&A.errors.length}));return Promise.reject({values:t.getFieldsValue(i),errorFields:e,outOfDate:t.lastValidatePromise!==B})}));Q.catch((function(A){return A}));var E=i.filter((function(A){return l.has(A.join(s))}));return t.triggerOnFieldsChange(E),Q})),bc(this,"submit",(function(){t.warningUnhooked(),t.validateFields().then((function(A){var e=t.callbacks.onFinish;if(e)try{e(A)}catch(n){console.error(n)}})).catch((function(A){var e=t.callbacks.onFinishFailed;e&&e(A)}))})),this.forceRootUpdate=e}));function Vb(A){var e=J.useRef(),t=WQ(J.useState({}),2)[1];if(!e.current)if(A)e.current=A;else{var n=new Xb((function(){t({})}));e.current=n.getForm()}return[e.current]}var Zb=J.createContext({triggerFormChange:function(){},triggerFormFinish:function(){},registerForm:function(){},unregisterForm:function(){}}),Av=function(A){var e=A.validateMessages,t=A.onFormChange,n=A.onFormFinish,o=A.children,r=J.useContext(Zb),i=J.useRef({});return J.createElement(Zb.Provider,{value:kc(kc({},r),{},{validateMessages:kc(kc({},r.validateMessages),e),triggerFormChange:function(A,e){t&&t(A,{changedFields:e,forms:i.current}),r.triggerFormChange(A,e)},triggerFormFinish:function(A,e){n&&n(A,{values:e,forms:i.current}),r.triggerFormFinish(A,e)},registerForm:function(A,e){A&&(i.current=kc(kc({},i.current),{},bc({},A,e))),r.registerForm(A,e)},unregisterForm:function(A){var e=kc({},i.current);delete e[A],i.current=e,r.unregisterForm(A)}})},o)},ev=["name","initialValues","fields","form","preserve","children","component","validateMessages","validateTrigger","onValuesChange","onFieldsChange","onFinish","onFinishFailed"],tv=function(A,e){var t=A.name,n=A.initialValues,o=A.fields,r=A.form,i=A.preserve,a=A.children,s=A.component,l=void 0===s?"form":s,g=A.validateMessages,c=A.validateTrigger,u=void 0===c?"onChange":c,B=A.onValuesChange,Q=A.onFieldsChange,E=A.onFinish,C=A.onFinishFailed,d=Mc(A,ev),I=J.useContext(Zb),p=WQ(Vb(r),1)[0],f=p.getInternalHooks(Xy),h=f.useSubscribe,w=f.setInitialValues,D=f.setCallbacks,m=f.setValidateMessages,y=f.setPreserve,b=f.destroyForm;J.useImperativeHandle(e,(function(){return p})),J.useEffect((function(){return I.registerForm(t,p),function(){I.unregisterForm(t)}}),[I,p,t]),m(kc(kc({},I.validateMessages),g)),D({onValuesChange:B,onFieldsChange:function(A){if(I.triggerFormChange(t,A),Q){for(var e=arguments.length,n=new Array(e>1?e-1:0),o=1;o{}}),av=J.createContext(null),sv=A=>{const e=wI(A,["prefixCls"]);return J.createElement(Av,Object.assign({},e))},lv=J.createContext({prefixCls:""}),gv=J.createContext({}),cv=A=>{let{children:e,status:t,override:n}=A;const o=J.useContext(gv),r=J.useMemo((()=>{const A=Object.assign({},o);return n&&delete A.isFormItemInput,t&&(delete A.status,delete A.hasFeedback,delete A.feedbackIcon),A}),[t,n,o]);return J.createElement(gv.Provider,{value:r},e)},uv=J.createContext(void 0);function Bv(){}const Qv=J.createContext({add:Bv,remove:Bv});function Ev(A){const e=J.useContext(Qv),t=J.useRef();return mf((n=>{if(n){const o=A?n.querySelector(A):n;e.add(o),t.current=o}else e.remove(t.current)}))}const Cv=()=>{const{cancelButtonProps:A,cancelTextLocale:e,onCancel:t}=J.useContext(fy);return j.createElement(dy,Object.assign({onClick:t},A),e)},dv=()=>{const{confirmLoading:A,okButtonProps:e,okType:t,okTextLocale:n,onOk:o}=J.useContext(fy);return j.createElement(dy,Object.assign({},Mm(t),{loading:A,onClick:o},e),n)};function Iv(A,e){return j.createElement("span",{className:`${A}-close-x`},e||j.createElement(mw,{className:`${A}-close-icon`}))}const pv=A=>{const{okText:e,okType:t="primary",cancelText:n,confirmLoading:o,onOk:r,onCancel:i,okButtonProps:a,cancelButtonProps:s,footer:l}=A,[g]=_I("Modal",zI()),c={confirmLoading:o,okButtonProps:a,cancelButtonProps:s,okTextLocale:e||(null==g?void 0:g.okText),cancelTextLocale:n||(null==g?void 0:g.cancelText),okType:t,onOk:r,onCancel:i},u=j.useMemo((()=>c),XQ(Object.values(c)));let B;return"function"==typeof l||void 0===l?(B=j.createElement(j.Fragment,null,j.createElement(Cv,null),j.createElement(dv,null)),"function"==typeof l&&(B=l(B,{OkBtn:dv,CancelBtn:Cv})),B=j.createElement(hy,{value:u},B)):B=l,j.createElement(ef,{disabled:!1},B)},fv=A=>({[A.componentCls]:{[`${A.antCls}-motion-collapse-legacy`]:{overflow:"hidden","&-active":{transition:`height ${A.motionDurationMid} ${A.motionEaseInOut},\n opacity ${A.motionDurationMid} ${A.motionEaseInOut} !important`}},[`${A.antCls}-motion-collapse`]:{overflow:"hidden",transition:`height ${A.motionDurationMid} ${A.motionEaseInOut},\n opacity ${A.motionDurationMid} ${A.motionEaseInOut} !important`}}}),hv=A=>({animationDuration:A,animationFillMode:"both"}),wv=A=>({animationDuration:A,animationFillMode:"both"}),Dv=function(A,e,t,n){const o=arguments.length>4&&void 0!==arguments[4]&&arguments[4]?"&":"";return{[`\n ${o}${A}-enter,\n ${o}${A}-appear\n `]:Object.assign(Object.assign({},hv(n)),{animationPlayState:"paused"}),[`${o}${A}-leave`]:Object.assign(Object.assign({},wv(n)),{animationPlayState:"paused"}),[`\n ${o}${A}-enter${A}-enter-active,\n ${o}${A}-appear${A}-appear-active\n `]:{animationName:e,animationPlayState:"running"},[`${o}${A}-leave${A}-leave-active`]:{animationName:t,animationPlayState:"running",pointerEvents:"none"}}},mv=new ad("antFadeIn",{"0%":{opacity:0},"100%":{opacity:1}}),yv=new ad("antFadeOut",{"0%":{opacity:1},"100%":{opacity:0}}),bv=function(A){let e=arguments.length>1&&void 0!==arguments[1]&&arguments[1];const{antCls:t}=A,n=`${t}-fade`,o=e?"&":"";return[Dv(n,mv,yv,A.motionDurationMid,e),{[`\n ${o}${n}-enter,\n ${o}${n}-appear\n `]:{opacity:0,animationTimingFunction:"linear"},[`${o}${n}-leave`]:{animationTimingFunction:"linear"}}]},vv=new ad("antMoveDownIn",{"0%":{transform:"translate3d(0, 100%, 0)",transformOrigin:"0 0",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1}}),kv=new ad("antMoveDownOut",{"0%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1},"100%":{transform:"translate3d(0, 100%, 0)",transformOrigin:"0 0",opacity:0}}),Mv=new ad("antMoveLeftIn",{"0%":{transform:"translate3d(-100%, 0, 0)",transformOrigin:"0 0",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1}}),xv=new ad("antMoveLeftOut",{"0%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1},"100%":{transform:"translate3d(-100%, 0, 0)",transformOrigin:"0 0",opacity:0}}),Sv=new ad("antMoveRightIn",{"0%":{transform:"translate3d(100%, 0, 0)",transformOrigin:"0 0",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1}}),Fv=new ad("antMoveRightOut",{"0%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1},"100%":{transform:"translate3d(100%, 0, 0)",transformOrigin:"0 0",opacity:0}}),Nv={"move-up":{inKeyframes:new ad("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 ad("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:vv,outKeyframes:kv},"move-left":{inKeyframes:Mv,outKeyframes:xv},"move-right":{inKeyframes:Sv,outKeyframes:Fv}},Rv=(A,e)=>{const{antCls:t}=A,n=`${t}-${e}`,{inKeyframes:o,outKeyframes:r}=Nv[e];return[Dv(n,o,r,A.motionDurationMid),{[`\n ${n}-enter,\n ${n}-appear\n `]:{opacity:0,animationTimingFunction:A.motionEaseOutCirc},[`${n}-leave`]:{animationTimingFunction:A.motionEaseInOutCirc}}]},Lv=new ad("antSlideUpIn",{"0%":{transform:"scaleY(0.8)",transformOrigin:"0% 0%",opacity:0},"100%":{transform:"scaleY(1)",transformOrigin:"0% 0%",opacity:1}}),Pv=new ad("antSlideUpOut",{"0%":{transform:"scaleY(1)",transformOrigin:"0% 0%",opacity:1},"100%":{transform:"scaleY(0.8)",transformOrigin:"0% 0%",opacity:0}}),Hv=new ad("antSlideDownIn",{"0%":{transform:"scaleY(0.8)",transformOrigin:"100% 100%",opacity:0},"100%":{transform:"scaleY(1)",transformOrigin:"100% 100%",opacity:1}}),Gv=new ad("antSlideDownOut",{"0%":{transform:"scaleY(1)",transformOrigin:"100% 100%",opacity:1},"100%":{transform:"scaleY(0.8)",transformOrigin:"100% 100%",opacity:0}}),Ov=new ad("antSlideLeftIn",{"0%":{transform:"scaleX(0.8)",transformOrigin:"0% 0%",opacity:0},"100%":{transform:"scaleX(1)",transformOrigin:"0% 0%",opacity:1}}),Uv=new ad("antSlideLeftOut",{"0%":{transform:"scaleX(1)",transformOrigin:"0% 0%",opacity:1},"100%":{transform:"scaleX(0.8)",transformOrigin:"0% 0%",opacity:0}}),Kv=new ad("antSlideRightIn",{"0%":{transform:"scaleX(0.8)",transformOrigin:"100% 0%",opacity:0},"100%":{transform:"scaleX(1)",transformOrigin:"100% 0%",opacity:1}}),Yv=new ad("antSlideRightOut",{"0%":{transform:"scaleX(1)",transformOrigin:"100% 0%",opacity:1},"100%":{transform:"scaleX(0.8)",transformOrigin:"100% 0%",opacity:0}}),Tv={"slide-up":{inKeyframes:Lv,outKeyframes:Pv},"slide-down":{inKeyframes:Hv,outKeyframes:Gv},"slide-left":{inKeyframes:Ov,outKeyframes:Uv},"slide-right":{inKeyframes:Kv,outKeyframes:Yv}},Jv=(A,e)=>{const{antCls:t}=A,n=`${t}-${e}`,{inKeyframes:o,outKeyframes:r}=Tv[e];return[Dv(n,o,r,A.motionDurationMid),{[`\n ${n}-enter,\n ${n}-appear\n `]:{transform:"scale(0)",transformOrigin:"0% 0%",opacity:0,animationTimingFunction:A.motionEaseOutQuint,"&-prepare":{transform:"scale(1)"}},[`${n}-leave`]:{animationTimingFunction:A.motionEaseInQuint}}]},jv=new ad("antZoomIn",{"0%":{transform:"scale(0.2)",opacity:0},"100%":{transform:"scale(1)",opacity:1}}),qv=new ad("antZoomOut",{"0%":{transform:"scale(1)"},"100%":{transform:"scale(0.2)",opacity:0}}),$v=new ad("antZoomBigIn",{"0%":{transform:"scale(0.8)",opacity:0},"100%":{transform:"scale(1)",opacity:1}}),zv=new ad("antZoomBigOut",{"0%":{transform:"scale(1)"},"100%":{transform:"scale(0.8)",opacity:0}}),Wv=new ad("antZoomUpIn",{"0%":{transform:"scale(0.8)",transformOrigin:"50% 0%",opacity:0},"100%":{transform:"scale(1)",transformOrigin:"50% 0%"}}),_v=new ad("antZoomUpOut",{"0%":{transform:"scale(1)",transformOrigin:"50% 0%"},"100%":{transform:"scale(0.8)",transformOrigin:"50% 0%",opacity:0}}),Xv=new ad("antZoomLeftIn",{"0%":{transform:"scale(0.8)",transformOrigin:"0% 50%",opacity:0},"100%":{transform:"scale(1)",transformOrigin:"0% 50%"}}),Vv=new ad("antZoomLeftOut",{"0%":{transform:"scale(1)",transformOrigin:"0% 50%"},"100%":{transform:"scale(0.8)",transformOrigin:"0% 50%",opacity:0}}),Zv=new ad("antZoomRightIn",{"0%":{transform:"scale(0.8)",transformOrigin:"100% 50%",opacity:0},"100%":{transform:"scale(1)",transformOrigin:"100% 50%"}}),Ak=new ad("antZoomRightOut",{"0%":{transform:"scale(1)",transformOrigin:"100% 50%"},"100%":{transform:"scale(0.8)",transformOrigin:"100% 50%",opacity:0}}),ek=new ad("antZoomDownIn",{"0%":{transform:"scale(0.8)",transformOrigin:"50% 100%",opacity:0},"100%":{transform:"scale(1)",transformOrigin:"50% 100%"}}),tk=new ad("antZoomDownOut",{"0%":{transform:"scale(1)",transformOrigin:"50% 100%"},"100%":{transform:"scale(0.8)",transformOrigin:"50% 100%",opacity:0}}),nk={zoom:{inKeyframes:jv,outKeyframes:qv},"zoom-big":{inKeyframes:$v,outKeyframes:zv},"zoom-big-fast":{inKeyframes:$v,outKeyframes:zv},"zoom-left":{inKeyframes:Xv,outKeyframes:Vv},"zoom-right":{inKeyframes:Zv,outKeyframes:Ak},"zoom-up":{inKeyframes:Wv,outKeyframes:_v},"zoom-down":{inKeyframes:ek,outKeyframes:tk}},ok=(A,e)=>{const{antCls:t}=A,n=`${t}-${e}`,{inKeyframes:o,outKeyframes:r}=nk[e];return[Dv(n,o,r,"zoom-big-fast"===e?A.motionDurationFast:A.motionDurationMid),{[`\n ${n}-enter,\n ${n}-appear\n `]:{transform:"scale(0)",opacity:0,animationTimingFunction:A.motionEaseOutCirc,"&-prepare":{transform:"none"}},[`${n}-leave`]:{animationTimingFunction:A.motionEaseInOutCirc}}]};function rk(A){return{position:A,inset:0}}const ik=A=>{const{componentCls:e,antCls:t}=A;return[{[`${e}-root`]:{[`${e}${t}-zoom-enter, ${e}${t}-zoom-appear`]:{transform:"none",opacity:0,animationDuration:A.motionDurationSlow,userSelect:"none"},[`${e}${t}-zoom-leave ${e}-content`]:{pointerEvents:"none"},[`${e}-mask`]:Object.assign(Object.assign({},rk("fixed")),{zIndex:A.zIndexPopupBase,height:"100%",backgroundColor:A.colorBgMask,pointerEvents:"none",[`${e}-hidden`]:{display:"none"}}),[`${e}-wrap`]:Object.assign(Object.assign({},rk("fixed")),{zIndex:A.zIndexPopupBase,overflow:"auto",outline:0,WebkitOverflowScrolling:"touch"})}},{[`${e}-root`]:bv(A)}]},ak=A=>{const{componentCls:e}=A;return[{[`${e}-root`]:{[`${e}-wrap-rtl`]:{direction:"rtl"},[`${e}-centered`]:{textAlign:"center","&::before":{display:"inline-block",width:0,height:"100%",verticalAlign:"middle",content:'""'},[e]:{top:0,display:"inline-block",paddingBottom:0,textAlign:"start",verticalAlign:"middle"}},[`@media (max-width: ${A.screenSMMax}px)`]:{[e]:{maxWidth:"calc(100vw - 16px)",margin:`${UE(A.marginXS)} auto`},[`${e}-centered`]:{[e]:{flex:1}}}}},{[e]:Object.assign(Object.assign({},Mf(A)),{pointerEvents:"none",position:"relative",top:100,width:"auto",maxWidth:`calc(100vw - ${UE(A.calc(A.margin).mul(2).equal())})`,margin:"0 auto",paddingBottom:A.paddingLG,[`${e}-title`]:{margin:0,color:A.titleColor,fontWeight:A.fontWeightStrong,fontSize:A.titleFontSize,lineHeight:A.titleLineHeight,wordWrap:"break-word"},[`${e}-content`]:{position:"relative",backgroundColor:A.contentBg,backgroundClip:"padding-box",border:0,borderRadius:A.borderRadiusLG,boxShadow:A.boxShadow,pointerEvents:"auto",padding:A.contentPadding},[`${e}-close`]:Object.assign({position:"absolute",top:A.calc(A.modalHeaderHeight).sub(A.modalCloseBtnSize).div(2).equal(),insetInlineEnd:A.calc(A.modalHeaderHeight).sub(A.modalCloseBtnSize).div(2).equal(),zIndex:A.calc(A.zIndexPopupBase).add(10).equal(),padding:0,color:A.modalCloseIconColor,fontWeight:A.fontWeightStrong,lineHeight:1,textDecoration:"none",background:"transparent",borderRadius:A.borderRadiusSM,width:A.modalCloseBtnSize,height:A.modalCloseBtnSize,border:0,outline:0,cursor:"pointer",transition:`color ${A.motionDurationMid}, background-color ${A.motionDurationMid}`,"&-x":{display:"flex",fontSize:A.fontSizeLG,fontStyle:"normal",lineHeight:`${UE(A.modalCloseBtnSize)}`,justifyContent:"center",textTransform:"none",textRendering:"auto"},"&:hover":{color:A.modalCloseIconHoverColor,backgroundColor:A.colorBgTextHover,textDecoration:"none"},"&:active":{backgroundColor:A.colorBgTextActive}},Nf(A)),[`${e}-header`]:{color:A.colorText,background:A.headerBg,borderRadius:`${UE(A.borderRadiusLG)} ${UE(A.borderRadiusLG)} 0 0`,marginBottom:A.headerMarginBottom,padding:A.headerPadding,borderBottom:A.headerBorderBottom},[`${e}-body`]:{fontSize:A.fontSize,lineHeight:A.lineHeight,wordWrap:"break-word",padding:A.bodyPadding},[`${e}-footer`]:{textAlign:"end",background:A.footerBg,marginTop:A.footerMarginTop,padding:A.footerPadding,borderTop:A.footerBorderTop,borderRadius:A.footerBorderRadius,[`> ${A.antCls}-btn + ${A.antCls}-btn`]:{marginInlineStart:A.marginXS}},[`${e}-open`]:{overflow:"hidden"}})},{[`${e}-pure-panel`]:{top:"auto",padding:0,display:"flex",flexDirection:"column",[`${e}-content,\n ${e}-body,\n ${e}-confirm-body-wrapper`]:{display:"flex",flexDirection:"column",flex:"auto"},[`${e}-confirm-body`]:{marginBottom:"auto"}}}]},sk=A=>{const{componentCls:e}=A;return{[`${e}-root`]:{[`${e}-wrap-rtl`]:{direction:"rtl",[`${e}-confirm-body`]:{direction:"rtl"}}}}},lk=A=>{const e=A.padding,t=A.fontSizeHeading5,n=A.lineHeightHeading5;return Pf(A,{modalHeaderHeight:A.calc(A.calc(n).mul(t).equal()).add(A.calc(e).mul(2).equal()).equal(),modalFooterBorderColorSplit:A.colorSplit,modalFooterBorderStyle:A.lineType,modalFooterBorderWidth:A.lineWidth,modalCloseIconColor:A.colorIcon,modalCloseIconHoverColor:A.colorIconHover,modalCloseBtnSize:A.controlHeight,modalConfirmIconSize:A.fontHeight,modalTitleHeight:A.calc(A.titleFontSize).mul(A.titleLineHeight).equal()})},gk=A=>({footerBg:"transparent",headerBg:A.colorBgElevated,titleLineHeight:A.lineHeightHeading5,titleFontSize:A.fontSizeHeading5,contentBg:A.colorBgElevated,titleColor:A.colorTextHeading,contentPadding:A.wireframe?0:`${UE(A.paddingMD)} ${UE(A.paddingContentHorizontalLG)}`,headerPadding:A.wireframe?`${UE(A.padding)} ${UE(A.paddingLG)}`:0,headerBorderBottom:A.wireframe?`${UE(A.lineWidth)} ${A.lineType} ${A.colorSplit}`:"none",headerMarginBottom:A.wireframe?0:A.marginXS,bodyPadding:A.wireframe?A.paddingLG:0,footerPadding:A.wireframe?`${UE(A.paddingXS)} ${UE(A.padding)}`:0,footerBorderTop:A.wireframe?`${UE(A.lineWidth)} ${A.lineType} ${A.colorSplit}`:"none",footerBorderRadius:A.wireframe?`0 0 ${UE(A.borderRadiusLG)} ${UE(A.borderRadiusLG)}`:0,footerMarginTop:A.wireframe?0:A.marginSM,confirmBodyPadding:A.wireframe?`${UE(2*A.padding)} ${UE(2*A.padding)} ${UE(A.paddingLG)}`:0,confirmIconMarginInlineEnd:A.wireframe?A.margin:A.marginSM,confirmBtnsMarginTop:A.wireframe?A.marginLG:A.marginSM}),ck=jf("Modal",(A=>{const e=lk(A);return[ak(e),sk(e),ik(e),ok(e,"zoom")]}),gk,{unitless:{titleLineHeight:!0}});let uk;const Bk=A=>{uk={x:A.pageX,y:A.pageY},setTimeout((()=>{uk=null}),100)};ZQ()&&window.document.documentElement&&document.documentElement.addEventListener("click",Bk,!0);const Qk=A=>{var e;const{getPopupContainer:t,getPrefixCls:n,direction:o,modal:r}=J.useContext(Xp),i=e=>{const{onCancel:t}=A;null==t||t(e)},{prefixCls:a,className:s,rootClassName:l,open:g,wrapClassName:c,centered:u,getContainer:B,focusTriggerAfterClose:Q=!0,style:E,visible:C,width:d=520,footer:I,classNames:p,styles:f}=A,h=function(A,e){var t={};for(var n in A)Object.prototype.hasOwnProperty.call(A,n)&&e.indexOf(n)<0&&(t[n]=A[n]);if(null!=A&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(n=Object.getOwnPropertySymbols(A);o{const{onOk:t}=A;null==t||t(e)},onCancel:i})),[x,S]=_y(qy(A),qy(r),{closable:!0,closeIcon:J.createElement(mw,{className:`${w}-close-icon`}),closeIconRender:A=>Iv(w,A)}),F=Ev(`.${w}-content`),[N,R]=mD("Modal",h.zIndex);return y(J.createElement(mm,null,J.createElement(cv,{status:!0,override:!0},J.createElement(pD.Provider,{value:R},J.createElement(jy,Object.assign({width:d},h,{zIndex:N,getContainer:void 0===B?t:B,prefixCls:w,rootClassName:ud(b,l,v,m),footer:M,visible:null!=g?g:C,mousePosition:null!==(e=h.mousePosition)&&void 0!==e?e:uk,onClose:i,closable:x,closeIcon:S,focusTriggerAfterClose:Q,transitionName:rm(D,"zoom",A.transitionName),maskTransitionName:rm(D,"fade",A.maskTransitionName),className:ud(b,s,null==r?void 0:r.className),style:Object.assign(Object.assign({},null==r?void 0:r.style),E),classNames:Object.assign(Object.assign(Object.assign({},null==r?void 0:r.classNames),p),{wrapper:ud(k,null==p?void 0:p.wrapper)}),styles:Object.assign(Object.assign({},null==r?void 0:r.styles),f),panelRef:F}))))))},Ek=A=>{const{componentCls:e,titleFontSize:t,titleLineHeight:n,modalConfirmIconSize:o,fontSize:r,lineHeight:i,modalTitleHeight:a,fontHeight:s,confirmBodyPadding:l}=A,g=`${e}-confirm`;return{[g]:{"&-rtl":{direction:"rtl"},[`${A.antCls}-modal-header`]:{display:"none"},[`${g}-body-wrapper`]:Object.assign({},{"&::before":{display:"table",content:'""'},"&::after":{display:"table",clear:"both",content:'""'}}),[`&${e} ${e}-body`]:{padding:l},[`${g}-body`]:{display:"flex",flexWrap:"nowrap",alignItems:"start",[`> ${A.iconCls}`]:{flex:"none",fontSize:o,marginInlineEnd:A.confirmIconMarginInlineEnd,marginTop:A.calc(A.calc(s).sub(o).equal()).div(2).equal()},[`&-has-title > ${A.iconCls}`]:{marginTop:A.calc(A.calc(a).sub(o).equal()).div(2).equal()}},[`${g}-paragraph`]:{display:"flex",flexDirection:"column",flex:"auto",rowGap:A.marginXS},[`${A.iconCls} + ${g}-paragraph`]:{maxWidth:`calc(100% - ${UE(A.calc(A.modalConfirmIconSize).add(A.marginSM).equal())})`},[`${g}-title`]:{color:A.colorTextHeading,fontWeight:A.fontWeightStrong,fontSize:t,lineHeight:n},[`${g}-content`]:{color:A.colorText,fontSize:r,lineHeight:i},[`${g}-btns`]:{textAlign:"end",marginTop:A.confirmBtnsMarginTop,[`${A.antCls}-btn + ${A.antCls}-btn`]:{marginBottom:0,marginInlineStart:A.marginXS}}},[`${g}-error ${g}-body > ${A.iconCls}`]:{color:A.colorError},[`${g}-warning ${g}-body > ${A.iconCls},\n ${g}-confirm ${g}-body > ${A.iconCls}`]:{color:A.colorWarning},[`${g}-info ${g}-body > ${A.iconCls}`]:{color:A.colorInfo},[`${g}-success ${g}-body > ${A.iconCls}`]:{color:A.colorSuccess}}},Ck=Tf(["Modal","confirm"],(A=>{const e=lk(A);return[Ek(e)]}),gk,{order:-1e3});function dk(A){const{prefixCls:e,icon:t,okText:n,cancelText:o,confirmPrefixCls:r,type:i,okCancel:a,footer:s,locale:l}=A,g=function(A,e){var t={};for(var n in A)Object.prototype.hasOwnProperty.call(A,n)&&e.indexOf(n)<0&&(t[n]=A[n]);if(null!=A&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(n=Object.getOwnPropertySymbols(A);oI),XQ(Object.values(I))),f=J.createElement(J.Fragment,null,J.createElement(wy,null),J.createElement(Dy,null)),h=void 0!==A.title&&null!==A.title,w=`${r}-body`;return J.createElement("div",{className:`${r}-body-wrapper`},J.createElement("div",{className:ud(w,{[`${w}-has-title`]:h})},c,J.createElement("div",{className:`${r}-paragraph`},h&&J.createElement("span",{className:`${r}-title`},A.title),J.createElement("div",{className:`${r}-content`},A.content))),void 0===s||"function"==typeof s?J.createElement(hy,{value:p},J.createElement("div",{className:`${r}-btns`},"function"==typeof s?s(f,{OkBtn:Dy,CancelBtn:wy}):f)):s,J.createElement(Ck,{prefixCls:e}))}const Ik=A=>{const{close:e,zIndex:t,afterClose:n,open:o,keyboard:r,centered:i,getContainer:a,maskStyle:s,direction:l,prefixCls:g,wrapClassName:c,rootPrefixCls:u,bodyStyle:B,closable:Q=!1,closeIcon:E,modalRender:C,focusTriggerAfterClose:d,onConfirm:I,styles:p}=A,f=`${g}-confirm`,h=A.width||416,w=A.style||{},D=void 0===A.mask||A.mask,m=void 0!==A.maskClosable&&A.maskClosable,y=ud(f,`${f}-${A.type}`,{[`${f}-rtl`]:"rtl"===l},A.className),[,b]=Cf(),v=J.useMemo((()=>void 0!==t?t:b.zIndexPopupBase+hD),[t,b]);return J.createElement(Qk,{prefixCls:g,className:y,wrapClassName:ud({[`${f}-centered`]:!!A.centered},c),onCancel:()=>{null==e||e({triggerCancel:!0}),null==I||I(!1)},open:o,title:"",footer:null,transitionName:rm(u||"","zoom",A.transitionName),maskTransitionName:rm(u||"","fade",A.maskTransitionName),mask:D,maskClosable:m,style:w,styles:Object.assign({body:B,mask:s},p),width:h,zIndex:v,afterClose:n,keyboard:r,centered:i,getContainer:a,closable:Q,closeIcon:E,modalRender:C,focusTriggerAfterClose:d},J.createElement(dk,Object.assign({},A,{confirmPrefixCls:f})))},pk=A=>{const{rootPrefixCls:e,iconPrefixCls:t,direction:n,theme:o}=A;return J.createElement(tw,{prefixCls:e,iconPrefixCls:t,direction:n,theme:o},J.createElement(Ik,Object.assign({},A)))},fk=[];let hk="";function wk(){return hk}const Dk=A=>{var e,t;const{prefixCls:n,getContainer:o,direction:r}=A,i=zI(),a=J.useContext(Xp),s=wk()||a.getPrefixCls(),l=n||`${s}-modal`;let g=o;return!1===g&&(g=void 0),j.createElement(pk,Object.assign({},A,{rootPrefixCls:s,prefixCls:l,iconPrefixCls:a.iconPrefixCls,theme:a.theme,direction:null!=r?r:a.direction,locale:null!==(t=null===(e=a.locale)||void 0===e?void 0:e.Modal)&&void 0!==t?t:i,getContainer:g}))};function mk(A){const e=Zh(),t=document.createDocumentFragment();let n,o=Object.assign(Object.assign({},A),{close:a,open:!0});function r(){for(var e=arguments.length,n=new Array(e),o=0;oA&&A.triggerCancel));A.onCancel&&r&&A.onCancel.apply(A,[()=>{}].concat(XQ(n.slice(1))));for(let A=0;A{const n=e.getPrefixCls(void 0,wk()),o=e.getIconPrefixCls(),r=e.getTheme(),i=j.createElement(Dk,Object.assign({},A));zD(j.createElement(tw,{prefixCls:n,iconPrefixCls:o,theme:r},e.holderRender?e.holderRender(i):i),t)}))}function a(){for(var e=arguments.length,t=new Array(e),n=0;n{"function"==typeof A.afterClose&&A.afterClose(),r.apply(this,t)}}),o.visible&&delete o.visible,i(o)}return i(o),fk.push(a),{destroy:a,update:function(A){o="function"==typeof A?A(o):Object.assign(Object.assign({},o),A),i(o)}}}function yk(A){return Object.assign(Object.assign({},A),{type:"warning"})}function bk(A){return Object.assign(Object.assign({},A),{type:"info"})}function vk(A){return Object.assign(Object.assign({},A),{type:"success"})}function kk(A){return Object.assign(Object.assign({},A),{type:"error"})}function Mk(A){return Object.assign(Object.assign({},A),{type:"confirm"})}const xk=(A,e)=>{var t,{afterClose:n,config:o}=A,r=function(A,e){var t={};for(var n in A)Object.prototype.hasOwnProperty.call(A,n)&&e.indexOf(n)<0&&(t[n]=A[n]);if(null!=A&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(n=Object.getOwnPropertySymbols(A);oA&&A.triggerCancel));s.onCancel&&n&&s.onCancel.apply(s,[()=>{}].concat(XQ(e.slice(1))))};J.useImperativeHandle(e,(()=>({destroy:Q,update:A=>{l((e=>Object.assign(Object.assign({},e),A)))}})));const E=null!==(t=s.okCancel)&&void 0!==t?t:"confirm"===s.type,[C]=_I("Modal",JI.Modal);return J.createElement(pk,Object.assign({prefixCls:u,rootPrefixCls:B},s,{close:Q,open:i,afterClose:()=>{var A;n(),null===(A=s.afterClose)||void 0===A||A.call(s)},okText:s.okText||(E?null==C?void 0:C.okText:null==C?void 0:C.justOkText),direction:s.direction||g,cancelText:s.cancelText||(null==C?void 0:C.cancelText)},r))},Sk=J.forwardRef(xk);let Fk=0;const Nk=J.memo(J.forwardRef(((A,e)=>{const[t,n]=function(){const[A,e]=J.useState([]);return[A,J.useCallback((A=>(e((e=>[].concat(XQ(e),[A]))),()=>{e((e=>e.filter((e=>e!==A))))})),[])]}();return J.useImperativeHandle(e,(()=>({patchElement:n})),[]),J.createElement(J.Fragment,null,t)})));function Rk(){const A=J.useRef(null),[e,t]=J.useState([]);J.useEffect((()=>{if(e.length){XQ(e).forEach((A=>{A()})),t([])}}),[e]);const n=J.useCallback((e=>function(n){var o;Fk+=1;const r=J.createRef();let i;const a=new Promise((A=>{i=A}));let s,l=!1;const g=J.createElement(Sk,{key:`modal-${Fk}`,config:e(n),ref:r,afterClose:()=>{null==s||s()},isSilent:()=>l,onConfirm:A=>{i(A)}});s=null===(o=A.current)||void 0===o?void 0:o.patchElement(g),s&&fk.push(s);return{destroy:()=>{function A(){var A;null===(A=r.current)||void 0===A||A.destroy()}r.current?A():t((e=>[].concat(XQ(e),[A])))},update:A=>{function e(){var e;null===(e=r.current)||void 0===e||e.update(A)}r.current?e():t((A=>[].concat(XQ(A),[e])))},then:A=>(l=!0,a.then(A))}}),[]);return[J.useMemo((()=>({info:n(bk),success:n(vk),error:n(kk),warning:n(yk),confirm:n(Mk)})),[]),J.createElement(Nk,{key:"modal-holder",ref:A})]}const Lk=A=>{const{componentCls:e,notificationMarginEdge:t,animationMaxHeight:n}=A,o=`${e}-notice`,r=new ad("antNotificationFadeIn",{"0%":{transform:"translate3d(100%, 0, 0)",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",opacity:1}}),i=new ad("antNotificationTopFadeIn",{"0%":{top:-n,opacity:0},"100%":{top:0,opacity:1}}),a=new ad("antNotificationBottomFadeIn",{"0%":{bottom:A.calc(n).mul(-1).equal(),opacity:0},"100%":{bottom:0,opacity:1}}),s=new ad("antNotificationLeftFadeIn",{"0%":{transform:"translate3d(-100%, 0, 0)",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",opacity:1}});return{[e]:{[`&${e}-top, &${e}-bottom`]:{marginInline:0,[o]:{marginInline:"auto auto"}},[`&${e}-top`]:{[`${e}-fade-enter${e}-fade-enter-active, ${e}-fade-appear${e}-fade-appear-active`]:{animationName:i}},[`&${e}-bottom`]:{[`${e}-fade-enter${e}-fade-enter-active, ${e}-fade-appear${e}-fade-appear-active`]:{animationName:a}},[`&${e}-topRight, &${e}-bottomRight`]:{[`${e}-fade-enter${e}-fade-enter-active, ${e}-fade-appear${e}-fade-appear-active`]:{animationName:r}},[`&${e}-topLeft, &${e}-bottomLeft`]:{marginRight:{value:0,_skip_check_:!0},marginLeft:{value:t,_skip_check_:!0},[o]:{marginInlineEnd:"auto",marginInlineStart:0},[`${e}-fade-enter${e}-fade-enter-active, ${e}-fade-appear${e}-fade-appear-active`]:{animationName:s}}}}},Pk=["top","topLeft","topRight","bottom","bottomLeft","bottomRight"],Hk={topLeft:"left",topRight:"right",bottomLeft:"left",bottomRight:"right",top:"left",bottom:"left"},Gk=A=>{const e={};for(let t=1;t ${A.componentCls}-notice`]:{opacity:0,transition:`opacity ${A.motionDurationMid}`}};return Object.assign({[`&:not(:nth-last-child(-n+${A.notificationStackLayer}))`]:{opacity:0,overflow:"hidden",color:"transparent",pointerEvents:"none"}},e)},Ok=A=>{const e={};for(let t=1;t{const{componentCls:e}=A;return Object.assign({[`${e}-stack`]:{[`& > ${e}-notice-wrapper`]:Object.assign({transition:`all ${A.motionDurationSlow}, backdrop-filter 0s`,position:"absolute"},Gk(A))},[`${e}-stack:not(${e}-stack-expanded)`]:{[`& > ${e}-notice-wrapper`]:Object.assign({},Ok(A))},[`${e}-stack${e}-stack-expanded`]:{[`& > ${e}-notice-wrapper`]:{"&:not(:nth-last-child(-n + 1))":{opacity:1,overflow:"unset",color:"inherit",pointerEvents:"auto",[`& > ${A.componentCls}-notice`]:{opacity:1}},"&:after":{content:'""',position:"absolute",height:A.margin,width:"100%",insetInline:0,bottom:A.calc(A.margin).mul(-1).equal(),background:"transparent",pointerEvents:"auto"}}}},Pk.map((e=>((A,e)=>{const{componentCls:t}=A;return{[`${t}-${e}`]:{[`&${t}-stack > ${t}-notice-wrapper`]:{[e.startsWith("top")?"top":"bottom"]:0,[Hk[e]]:{value:0,_skip_check_:!0}}}}})(A,e))).reduce(((A,e)=>Object.assign(Object.assign({},A),e)),{}))},Kk=A=>{const{iconCls:e,componentCls:t,boxShadow:n,fontSizeLG:o,notificationMarginBottom:r,borderRadiusLG:i,colorSuccess:a,colorInfo:s,colorWarning:l,colorError:g,colorTextHeading:c,notificationBg:u,notificationPadding:B,notificationMarginEdge:Q,fontSize:E,lineHeight:C,width:d,notificationIconSize:I,colorText:p}=A,f=`${t}-notice`;return{position:"relative",marginBottom:r,marginInlineStart:"auto",background:u,borderRadius:i,boxShadow:n,[f]:{padding:B,width:d,maxWidth:`calc(100vw - ${UE(A.calc(Q).mul(2).equal())})`,overflow:"hidden",lineHeight:C,wordWrap:"break-word"},[`${f}-message`]:{marginBottom:A.marginXS,color:c,fontSize:o,lineHeight:A.lineHeightLG},[`${f}-description`]:{fontSize:E,color:p},[`${f}-closable ${f}-message`]:{paddingInlineEnd:A.paddingLG},[`${f}-with-icon ${f}-message`]:{marginBottom:A.marginXS,marginInlineStart:A.calc(A.marginSM).add(I).equal(),fontSize:o},[`${f}-with-icon ${f}-description`]:{marginInlineStart:A.calc(A.marginSM).add(I).equal(),fontSize:E},[`${f}-icon`]:{position:"absolute",fontSize:I,lineHeight:1,[`&-success${e}`]:{color:a},[`&-info${e}`]:{color:s},[`&-warning${e}`]:{color:l},[`&-error${e}`]:{color:g}},[`${f}-close`]:Object.assign({position:"absolute",top:A.notificationPaddingVertical,insetInlineEnd:A.notificationPaddingHorizontal,color:A.colorIcon,outline:"none",width:A.notificationCloseButtonSize,height:A.notificationCloseButtonSize,borderRadius:A.borderRadiusSM,transition:`background-color ${A.motionDurationMid}, color ${A.motionDurationMid}`,display:"flex",alignItems:"center",justifyContent:"center","&:hover":{color:A.colorIconHover,backgroundColor:A.colorBgTextHover},"&:active":{backgroundColor:A.colorBgTextActive}},Nf(A)),[`${f}-btn`]:{float:"right",marginTop:A.marginSM}}},Yk=A=>{const{componentCls:e,notificationMarginBottom:t,notificationMarginEdge:n,motionDurationMid:o,motionEaseInOut:r}=A,i=`${e}-notice`,a=new ad("antNotificationFadeOut",{"0%":{maxHeight:A.animationMaxHeight,marginBottom:t},"100%":{maxHeight:0,marginBottom:0,paddingTop:0,paddingBottom:0,opacity:0}});return[{[e]:Object.assign(Object.assign({},Mf(A)),{position:"fixed",zIndex:A.zIndexPopup,marginRight:{value:n,_skip_check_:!0},[`${e}-hook-holder`]:{position:"relative"},[`${e}-fade-appear-prepare`]:{opacity:"0 !important"},[`${e}-fade-enter, ${e}-fade-appear`]:{animationDuration:A.motionDurationMid,animationTimingFunction:r,animationFillMode:"both",opacity:0,animationPlayState:"paused"},[`${e}-fade-leave`]:{animationTimingFunction:r,animationFillMode:"both",animationDuration:o,animationPlayState:"paused"},[`${e}-fade-enter${e}-fade-enter-active, ${e}-fade-appear${e}-fade-appear-active`]:{animationPlayState:"running"},[`${e}-fade-leave${e}-fade-leave-active`]:{animationName:a,animationPlayState:"running"},"&-rtl":{direction:"rtl",[`${i}-btn`]:{float:"left"}}})},{[e]:{[`${i}-wrapper`]:Object.assign({},Kk(A))}}]},Tk=A=>({zIndexPopup:A.zIndexPopupBase+hD+50,width:384}),Jk=A=>{const e=A.paddingMD,t=A.paddingLG;return Pf(A,{notificationBg:A.colorBgElevated,notificationPaddingVertical:e,notificationPaddingHorizontal:t,notificationIconSize:A.calc(A.fontSizeLG).mul(A.lineHeightLG).equal(),notificationCloseButtonSize:A.calc(A.controlHeightLG).mul(.55).equal(),notificationMarginBottom:A.margin,notificationPadding:`${UE(A.paddingMD)} ${UE(A.paddingContentHorizontalLG)}`,notificationMarginEdge:A.marginLG,animationMaxHeight:150,notificationStackLayer:3})},jk=jf("Notification",(A=>{const e=Jk(A);return[Yk(e),Lk(e),Uk(e)]}),Tk),qk=Tf(["Notification","PurePanel"],(A=>{const e=`${A.componentCls}-notice`,t=Jk(A);return{[`${e}-pure-panel`]:Object.assign(Object.assign({},Kk(t)),{width:t.width,maxWidth:`calc(100vw - ${UE(A.calc(t.notificationMarginEdge).mul(2).equal())})`,margin:0})}}),Tk);function $k(A,e){return null===e||!1===e?null:e||J.createElement(mw,{className:`${A}-close-icon`})}const zk={success:Iw,info:xw,error:hw,warning:vw},Wk=A=>{const{prefixCls:e,icon:t,type:n,message:o,description:r,btn:i,role:a="alert"}=A;let s=null;return t?s=J.createElement("span",{className:`${e}-icon`},t):n&&(s=J.createElement(zk[n]||null,{className:ud(`${e}-icon`,`${e}-icon-${n}`)})),J.createElement("div",{className:ud({[`${e}-with-icon`]:s}),role:a},s,J.createElement("div",{className:`${e}-message`},o),J.createElement("div",{className:`${e}-description`},r),i&&J.createElement("div",{className:`${e}-btn`},i))};var _k=function(A,e){var t={};for(var n in A)Object.prototype.hasOwnProperty.call(A,n)&&e.indexOf(n)<0&&(t[n]=A[n]);if(null!=A&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(n=Object.getOwnPropertySymbols(A);o{let{children:e,prefixCls:t}=A;const n=oD(t),[o,r,i]=jk(t,n);return o(j.createElement(sD,{classNames:{list:ud(r,i,n)}},e))},Zk=(A,e)=>{let{prefixCls:t,key:n}=e;return j.createElement(Vk,{prefixCls:t,key:n},A)},AM=j.forwardRef(((A,e)=>{const{top:t,bottom:n,prefixCls:o,getContainer:r,maxCount:i,rtl:a,onAllRemoved:s,stack:l,duration:g}=A,{getPrefixCls:c,getPopupContainer:u,notification:B,direction:Q}=J.useContext(Xp),[,E]=Cf(),C=o||c("notification"),[d,I]=ED({prefixCls:C,style:A=>function(A,e,t){let n;switch(A){case"top":n={left:"50%",transform:"translateX(-50%)",right:"auto",top:e,bottom:"auto"};break;case"topLeft":n={left:0,top:e,bottom:"auto"};break;case"topRight":n={right:0,top:e,bottom:"auto"};break;case"bottom":n={left:"50%",transform:"translateX(-50%)",right:"auto",top:"auto",bottom:t};break;case"bottomLeft":n={left:0,top:"auto",bottom:t};break;default:n={right:0,top:"auto",bottom:t}}return n}(A,null!=t?t:24,null!=n?n:24),className:()=>ud({[`${C}-rtl`]:null!=a?a:"rtl"===Q}),motion:()=>function(A){return{motionName:`${A}-fade`}}(C),closable:!0,closeIcon:$k(C),duration:null!=g?g:4.5,getContainer:()=>(null==r?void 0:r())||(null==u?void 0:u())||document.body,maxCount:i,onAllRemoved:s,renderNotifications:Zk,stack:!1!==l&&{threshold:"object"==typeof l?null==l?void 0:l.threshold:void 0,offset:8,gap:E.margin}});return j.useImperativeHandle(e,(()=>Object.assign(Object.assign({},d),{prefixCls:C,notification:B}))),I}));function eM(A){const e=j.useRef(null);OI();return[j.useMemo((()=>{const t=t=>{var n;if(!e.current)return;const{open:o,prefixCls:r,notification:i}=e.current,a=`${r}-notice`,{message:s,description:l,icon:g,type:c,btn:u,className:B,style:Q,role:E="alert",closeIcon:C,closable:d}=t,I=_k(t,["message","description","icon","type","btn","className","style","role","closeIcon","closable"]),p=$k(a,void 0!==C?C:null==i?void 0:i.closeIcon);return o(Object.assign(Object.assign({placement:null!==(n=null==A?void 0:A.placement)&&void 0!==n?n:Xk},I),{content:j.createElement(Wk,{prefixCls:a,icon:g,type:c,message:s,description:l,btn:u,role:E}),className:ud(c&&`${a}-${c}`,B,null==i?void 0:i.className),style:Object.assign(Object.assign({},null==i?void 0:i.style),Q),closeIcon:p,closable:null!=d?d:!!p}))},n={open:t,destroy:A=>{var t,n;void 0!==A?null===(t=e.current)||void 0===t||t.close(A):null===(n=e.current)||void 0===n||n.destroy()}};return["success","info","warning","error"].forEach((A=>{n[A]=e=>t(Object.assign(Object.assign({},e),{type:A}))})),n}),[]),j.createElement(AM,Object.assign({key:"notification-holder"},A,{ref:e}))]}function tM(A){return eM(A)}const nM=j.createContext({}),oM=j.createContext({message:{},notification:{},modal:{}}),rM=jf("App",(A=>{const{componentCls:e,colorText:t,fontSize:n,lineHeight:o,fontFamily:r}=A;return{[e]:{color:t,fontSize:n,lineHeight:o,fontFamily:r}}}),(()=>({}))),iM=A=>{const{prefixCls:e,children:t,className:n,rootClassName:o,message:r,notification:i,style:a,component:s="div"}=A,{getPrefixCls:l}=J.useContext(Xp),g=l("app",e),[c,u,B]=rM(g),Q=ud(u,g,n,o,B),E=J.useContext(nM),C=j.useMemo((()=>({message:Object.assign(Object.assign({},E.message),r),notification:Object.assign(Object.assign({},E.notification),i)})),[r,i,E.message,E.notification]),[d,I]=HD(C.message),[p,f]=tM(C.notification),[h,w]=Rk(),D=j.useMemo((()=>({message:d,notification:p,modal:h})),[d,p,h]),m=!1===s?j.Fragment:s,y={className:Q,style:a};return c(j.createElement(oM.Provider,{value:D},j.createElement(nM.Provider,{value:C},j.createElement(m,Object.assign({},!1===s?void 0:y),w,I,f,t))))};function aM(A){return e=>J.createElement(tw,{theme:{token:{motion:!1,zIndexPopupBase:0}}},J.createElement(A,Object.assign({},e)))}iM.useApp=()=>j.useContext(oM);const sM=function(){if("undefined"==typeof navigator||"undefined"==typeof window)return!1;var A=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(A)||/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==A?void 0:A.substr(0,4))};var lM=function(A){var e=A.className,t=A.customizeIcon,n=A.customizeIconProps,o=A.children,r=A.onMouseDown,i=A.onClick,a="function"==typeof t?t(n):t;return J.createElement("span",{className:e,onMouseDown:function(A){A.preventDefault(),null==r||r(A)},style:{userSelect:"none",WebkitUserSelect:"none"},unselectable:"on",onClick:i,"aria-hidden":!0},void 0!==a?a:J.createElement("span",{className:ud(e.split(/\s+/).map((function(A){return"".concat(A,"-icon")})))},o))},gM=J.createContext(null);function cM(){var A=arguments.length>0&&void 0!==arguments[0]?arguments[0]:250,e=J.useRef(null),t=J.useRef(null);return J.useEffect((function(){return function(){window.clearTimeout(t.current)}}),[]),[function(){return e.current},function(n){(n||null===e.current)&&(e.current=n),window.clearTimeout(t.current),t.current=window.setTimeout((function(){e.current=null}),A)}]}var uM=["prefixCls","invalidate","item","renderItem","responsive","responsiveDisabled","registerSize","itemKey","className","style","children","display","order","component"],BM=void 0;function QM(A,e){var t=A.prefixCls,n=A.invalidate,o=A.item,r=A.renderItem,i=A.responsive,a=A.responsiveDisabled,s=A.registerSize,l=A.itemKey,g=A.className,c=A.style,u=A.children,B=A.display,Q=A.order,E=A.component,C=void 0===E?"div":E,d=Mc(A,uM),I=i&&!B;function p(A){s(l,A)}J.useEffect((function(){return function(){p(null)}}),[]);var f,h=r&&o!==BM?r(o):u;n||(f={opacity:I?0:1,height:I?0:BM,overflowY:I?"hidden":BM,order:i?Q:BM,pointerEvents:I?"none":BM,position:I?"absolute":BM});var w={};I&&(w["aria-hidden"]=!0);var D=J.createElement(C,BQ({className:ud(!n&&t,g),style:kc(kc({},f),c)},w,d,{ref:e}),h);return i&&(D=J.createElement(hI,{onResize:function(A){p(A.offsetWidth)},disabled:a},D)),D}var EM=J.forwardRef(QM);function CM(){var A=J.useRef(null);return function(e){A.current||(A.current=[],function(A){if("undefined"==typeof MessageChannel)kI(A);else{var e=new MessageChannel;e.port1.onmessage=function(){return A()},e.port2.postMessage(void 0)}}((function(){pc.unstable_batchedUpdates((function(){A.current.forEach((function(A){A()})),A.current=null}))}))),A.current.push(e)}}function dM(A,e){var t=WQ(J.useState(e),2),n=t[0],o=t[1];return[n,mf((function(e){A((function(){o(e)}))}))]}EM.displayName="Item";var IM=j.createContext(null),pM=["component"],fM=["className"],hM=["className"],wM=function(A,e){var t=J.useContext(IM);if(!t){var n=A.component,o=void 0===n?"div":n,r=Mc(A,pM);return J.createElement(o,BQ({},r,{ref:e}))}var i=t.className,a=Mc(t,fM),s=A.className,l=Mc(A,hM);return J.createElement(IM.Provider,{value:null},J.createElement(EM,BQ({ref:e,className:ud(i,s)},a,l)))},DM=J.forwardRef(wM);DM.displayName="RawItem";var mM=["prefixCls","data","renderItem","renderRawItem","itemKey","itemWidth","ssr","style","className","maxCount","renderRest","renderRawRest","suffix","component","itemComponent","onVisibleChange"],yM="responsive",bM="invalidate";function vM(A){return"+ ".concat(A.length," ...")}function kM(A,e){var t=A.prefixCls,n=void 0===t?"rc-overflow":t,o=A.data,r=void 0===o?[]:o,i=A.renderItem,a=A.renderRawItem,s=A.itemKey,l=A.itemWidth,g=void 0===l?10:l,c=A.ssr,u=A.style,B=A.className,Q=A.maxCount,E=A.renderRest,C=A.renderRawRest,d=A.suffix,I=A.component,p=void 0===I?"div":I,f=A.itemComponent,h=A.onVisibleChange,w=Mc(A,mM),D="full"===c,m=CM(),y=WQ(dM(m,null),2),b=y[0],v=y[1],k=b||0,M=WQ(dM(m,new Map),2),x=M[0],S=M[1],F=WQ(dM(m,0),2),N=F[0],R=F[1],L=WQ(dM(m,0),2),P=L[0],H=L[1],G=WQ(dM(m,0),2),O=G[0],U=G[1],K=WQ(J.useState(null),2),Y=K[0],T=K[1],j=WQ(J.useState(null),2),q=j[0],$=j[1],z=J.useMemo((function(){return null===q&&D?Number.MAX_SAFE_INTEGER:q||0}),[q,b]),W=WQ(J.useState(!1),2),_=W[0],X=W[1],V="".concat(n,"-item"),Z=Math.max(N,P),AA=Q===yM,eA=r.length&&AA,tA=Q===bM,nA=eA||"number"==typeof Q&&r.length>Q,oA=J.useMemo((function(){var A=r;return eA?A=null===b&&D?r:r.slice(0,Math.min(r.length,k/g)):"number"==typeof Q&&(A=r.slice(0,Q)),A}),[r,g,b,Q,eA]),rA=J.useMemo((function(){return eA?r.slice(z+1):r.slice(oA.length)}),[r,oA,eA,z]),iA=J.useCallback((function(A,e){var t;return"function"==typeof s?s(A):null!==(t=s&&(null==A?void 0:A[s]))&&void 0!==t?t:e}),[s]),aA=J.useCallback(i||function(A){return A},[i]);function sA(A,e,t){(q!==A||void 0!==e&&e!==Y)&&($(A),t||(X(Ak){sA(n-1,A-o-O+P);break}}d&&gA(0)+O>k&&T(null)}}),[k,x,P,O,iA,oA]);var cA=_&&!!rA.length,uA={};null!==Y&&eA&&(uA={position:"absolute",left:Y,top:0});var BA,QA={prefixCls:V,responsive:eA,component:f,invalidate:tA},EA=a?function(A,e){var t=iA(A,e);return J.createElement(IM.Provider,{key:t,value:kc(kc({},QA),{},{order:e,item:A,itemKey:t,registerSize:lA,display:e<=z})},a(A,e))}:function(A,e){var t=iA(A,e);return J.createElement(EM,BQ({},QA,{order:e,key:t,item:A,renderItem:aA,itemKey:t,registerSize:lA,display:e<=z}))},CA={order:cA?z:Number.MAX_SAFE_INTEGER,className:"".concat(V,"-rest"),registerSize:function(A,e){H(e),R(P)},display:cA};if(C)C&&(BA=J.createElement(IM.Provider,{value:kc(kc({},QA),CA)},C(rA)));else{var dA=E||vM;BA=J.createElement(EM,BQ({},QA,CA),"function"==typeof dA?dA(rA):dA)}var IA=J.createElement(p,BQ({className:ud(!tA&&n,B),style:u,ref:e},w),oA.map(EA),nA?BA:null,d&&J.createElement(EM,BQ({},QA,{responsive:AA,responsiveDisabled:!eA,order:z,className:"".concat(V,"-suffix"),registerSize:function(A,e){U(e)},display:!0,style:uA}),d));return AA&&(IA=J.createElement(hI,{onResize:function(A,e){v(e.clientWidth)},disabled:!eA},IA)),IA}var MM=J.forwardRef(kM);MM.displayName="Overflow",MM.Item=DM,MM.RESPONSIVE=yM,MM.INVALIDATE=bM;var xM=function(A,e){var t,n=A.prefixCls,o=A.id,r=A.inputElement,i=A.disabled,a=A.tabIndex,s=A.autoFocus,l=A.autoComplete,g=A.editable,c=A.activeDescendantId,u=A.value,B=A.maxLength,Q=A.onKeyDown,E=A.onMouseDown,C=A.onChange,d=A.onPaste,I=A.onCompositionStart,p=A.onCompositionEnd,f=A.open,h=A.attrs,w=r||J.createElement("input",null),D=w,m=D.ref,y=D.props,b=y.onKeyDown,v=y.onChange,k=y.onMouseDown,M=y.onCompositionStart,x=y.onCompositionEnd,S=y.style;return w.props,w=J.cloneElement(w,kc(kc(kc({type:"search"},y),{},{id:o,ref:Pd(e,m),disabled:i,tabIndex:a,autoComplete:l||"off",autoFocus:s,className:ud("".concat(n,"-selection-search-input"),null===(t=w)||void 0===t||null===(t=t.props)||void 0===t?void 0:t.className),role:"combobox","aria-expanded":f||!1,"aria-haspopup":"listbox","aria-owns":"".concat(o,"_list"),"aria-autocomplete":"list","aria-controls":"".concat(o,"_list"),"aria-activedescendant":f?c:void 0},h),{},{value:g?u:"",maxLength:B,readOnly:!g,unselectable:g?null:"on",style:kc(kc({},S),{},{opacity:g?null:0}),onKeyDown:function(A){Q(A),b&&b(A)},onMouseDown:function(A){E(A),k&&k(A)},onChange:function(A){C(A),v&&v(A)},onCompositionStart:function(A){I(A),M&&M(A)},onCompositionEnd:function(A){p(A),x&&x(A)},onPaste:d}))},SM=J.forwardRef(xM);function FM(A){return Array.isArray(A)?A:void 0!==A?[A]:[]}var NM="undefined"!=typeof window&&window.document&&window.document.documentElement;function RM(A){return["string","number"].includes(mc(A))}function LM(A){var e=void 0;return A&&(RM(A.title)?e=A.title.toString():RM(A.label)&&(e=A.label.toString())),e}function PM(A){var e;return null!==(e=A.key)&&void 0!==e?e:A.value}var HM=function(A){A.preventDefault(),A.stopPropagation()},GM=function(A){var e,t,n=A.id,o=A.prefixCls,r=A.values,i=A.open,a=A.searchValue,s=A.autoClearSearchValue,l=A.inputRef,g=A.placeholder,c=A.disabled,u=A.mode,B=A.showSearch,Q=A.autoFocus,E=A.autoComplete,C=A.activeDescendantId,d=A.tabIndex,I=A.removeIcon,p=A.maxTagCount,f=A.maxTagTextLength,h=A.maxTagPlaceholder,w=void 0===h?function(A){return"+ ".concat(A.length," ...")}:h,D=A.tagRender,m=A.onToggleOpen,y=A.onRemove,b=A.onInputChange,v=A.onInputPaste,k=A.onInputKeyDown,M=A.onInputMouseDown,x=A.onInputCompositionStart,S=A.onInputCompositionEnd,F=J.useRef(null),N=WQ(J.useState(0),2),R=N[0],L=N[1],P=WQ(J.useState(!1),2),H=P[0],G=P[1],O="".concat(o,"-selection"),U=i||"multiple"===u&&!1===s||"tags"===u?a:"",K="tags"===u||"multiple"===u&&!1===s||B&&(i||H);e=function(){L(F.current.scrollWidth)},t=[U],NM?J.useLayoutEffect(e,t):J.useEffect(e,t);var Y=function(A,e,t,n,o){return J.createElement("span",{title:LM(A),className:ud("".concat(O,"-item"),bc({},"".concat(O,"-item-disabled"),t))},J.createElement("span",{className:"".concat(O,"-item-content")},e),n&&J.createElement(lM,{className:"".concat(O,"-item-remove"),onMouseDown:HM,onClick:o,customizeIcon:I},"ร—"))},T=function(A,e,t,n,o,r){return J.createElement("span",{onMouseDown:function(A){HM(A),m(!i)}},D({label:e,value:A,disabled:t,closable:n,onClose:o,isMaxTag:!!r}))},j=J.createElement("div",{className:"".concat(O,"-search"),style:{width:R},onFocus:function(){G(!0)},onBlur:function(){G(!1)}},J.createElement(SM,{ref:l,open:i,prefixCls:o,id:n,inputElement:null,disabled:c,autoFocus:Q,autoComplete:E,editable:K,activeDescendantId:C,value:U,onKeyDown:k,onMouseDown:M,onChange:b,onPaste:v,onCompositionStart:x,onCompositionEnd:S,tabIndex:d,attrs:Lw(A,!0)}),J.createElement("span",{ref:F,className:"".concat(O,"-search-mirror"),"aria-hidden":!0},U,"ย ")),q=J.createElement(MM,{prefixCls:"".concat(O,"-overflow"),data:r,renderItem:function(A){var e=A.disabled,t=A.label,n=A.value,o=!c&&!e,r=t;if("number"==typeof f&&("string"==typeof t||"number"==typeof t)){var i=String(r);i.length>f&&(r="".concat(i.slice(0,f),"..."))}var a=function(e){e&&e.stopPropagation(),y(A)};return"function"==typeof D?T(n,r,e,o,a):Y(A,r,e,o,a)},renderRest:function(A){var e="function"==typeof w?w(A):w;return"function"==typeof D?T(void 0,e,!1,!1,void 0,!0):Y({title:e},e,!1)},suffix:j,itemKey:PM,maxCount:p});return J.createElement(J.Fragment,null,q,!r.length&&!U&&J.createElement("span",{className:"".concat(O,"-placeholder")},g))},OM=function(A){var e=A.inputElement,t=A.prefixCls,n=A.id,o=A.inputRef,r=A.disabled,i=A.autoFocus,a=A.autoComplete,s=A.activeDescendantId,l=A.mode,g=A.open,c=A.values,u=A.placeholder,B=A.tabIndex,Q=A.showSearch,E=A.searchValue,C=A.activeValue,d=A.maxLength,I=A.onInputKeyDown,p=A.onInputMouseDown,f=A.onInputChange,h=A.onInputPaste,w=A.onInputCompositionStart,D=A.onInputCompositionEnd,m=A.title,y=WQ(J.useState(!1),2),b=y[0],v=y[1],k="combobox"===l,M=k||Q,x=c[0],S=E||"";k&&C&&!b&&(S=C),J.useEffect((function(){k&&v(!1)}),[k,C]);var F=!("combobox"!==l&&!g&&!Q)&&!!S,N=void 0===m?LM(x):m,R=J.useMemo((function(){return x?null:J.createElement("span",{className:"".concat(t,"-selection-placeholder"),style:F?{visibility:"hidden"}:void 0},u)}),[x,F,u,t]);return J.createElement(J.Fragment,null,J.createElement("span",{className:"".concat(t,"-selection-search")},J.createElement(SM,{ref:o,prefixCls:t,id:n,open:g,inputElement:e,disabled:r,autoFocus:i,autoComplete:a,editable:M,activeDescendantId:s,value:S,onKeyDown:I,onMouseDown:p,onChange:function(A){v(!0),f(A)},onPaste:h,onCompositionStart:w,onCompositionEnd:D,tabIndex:B,attrs:Lw(A,!0),maxLength:k?d:void 0})),!k&&x?J.createElement("span",{className:"".concat(t,"-selection-item"),title:N,style:F?{visibility:"hidden"}:void 0},x.label):null,R)},UM=function(A,e){var t=J.useRef(null),n=J.useRef(!1),o=A.prefixCls,r=A.open,i=A.mode,a=A.showSearch,s=A.tokenWithEnter,l=A.disabled,g=A.autoClearSearchValue,c=A.onSearch,u=A.onSearchSubmit,B=A.onToggleOpen,Q=A.onInputKeyDown,E=A.domRef;J.useImperativeHandle(e,(function(){return{focus:function(A){t.current.focus(A)},blur:function(){t.current.blur()}}}));var C=WQ(cM(0),2),d=C[0],I=C[1],p=J.useRef(null),f=function(A){!1!==c(A,!0,n.current)&&B(!0)},h={inputRef:t,onInputKeyDown:function(A){var e,t=A.which;t!==rD.UP&&t!==rD.DOWN||A.preventDefault(),Q&&Q(A),t!==rD.ENTER||"tags"!==i||n.current||r||null==u||u(A.target.value),e=t,[rD.ESC,rD.SHIFT,rD.BACKSPACE,rD.TAB,rD.WIN_KEY,rD.ALT,rD.META,rD.WIN_KEY_RIGHT,rD.CTRL,rD.SEMICOLON,rD.EQUALS,rD.CAPS_LOCK,rD.CONTEXT_MENU,rD.F1,rD.F2,rD.F3,rD.F4,rD.F5,rD.F6,rD.F7,rD.F8,rD.F9,rD.F10,rD.F11,rD.F12].includes(e)||B(!0)},onInputMouseDown:function(){I(!0)},onInputChange:function(A){var e=A.target.value;if(s&&p.current&&/[\r\n]/.test(p.current)){var t=p.current.replace(/[\r\n]+$/,"").replace(/\r\n/g," ").replace(/[\r\n]/g," ");e=e.replace(t,p.current)}p.current=null,f(e)},onInputPaste:function(A){var e=A.clipboardData,t=null==e?void 0:e.getData("text");p.current=t||""},onInputCompositionStart:function(){n.current=!0},onInputCompositionEnd:function(A){n.current=!1,"combobox"!==i&&f(A.target.value)}},w="multiple"===i||"tags"===i?J.createElement(GM,BQ({},A,h)):J.createElement(OM,BQ({},A,h));return J.createElement("div",{ref:E,className:"".concat(o,"-selector"),onClick:function(A){A.target!==t.current&&(void 0!==document.body.style.msTouchAction?setTimeout((function(){t.current.focus()})):t.current.focus())},onMouseDown:function(A){var e=d();A.target===t.current||e||"combobox"===i&&l||A.preventDefault(),("combobox"===i||a&&e)&&r||(r&&!1!==g&&c("",!0,!1),B())}},w)},KM=J.forwardRef(UM);function YM(A){var e=A.prefixCls,t=A.align,n=A.arrow,o=A.arrowPos,r=n||{},i=r.className,a=r.content,s=o.x,l=void 0===s?0:s,g=o.y,c=void 0===g?0:g,u=J.useRef();if(!t||!t.points)return null;var B={position:"absolute"};if(!1!==t.autoArrow){var Q=t.points[0],E=t.points[1],C=Q[0],d=Q[1],I=E[0],p=E[1];C!==I&&["t","b"].includes(C)?"t"===C?B.top=0:B.bottom=0:B.top=c,d!==p&&["l","r"].includes(d)?"l"===d?B.left=0:B.right=0:B.left=l}return J.createElement("div",{ref:u,className:ud("".concat(e,"-arrow"),i),style:B},a)}function TM(A){var e=A.prefixCls,t=A.open,n=A.zIndex,o=A.mask,r=A.motion;return o?J.createElement(Nh,BQ({},r,{motionAppear:!0,visible:t,removeOnLeave:!0}),(function(A){var t=A.className;return J.createElement("div",{style:{zIndex:n},className:ud("".concat(e,"-mask"),t)})})):null}var JM=J.memo((function(A){return A.children}),(function(A,e){return e.cache})),jM=J.forwardRef((function(A,e){var t=A.popup,n=A.className,o=A.prefixCls,r=A.style,i=A.target,a=A.onVisibleChanged,s=A.open,l=A.keepDom,g=A.fresh,c=A.onClick,u=A.mask,B=A.arrow,Q=A.arrowPos,E=A.align,C=A.motion,d=A.maskMotion,I=A.forceRender,p=A.getPopupContainer,f=A.autoDestroy,h=A.portal,w=A.zIndex,D=A.onMouseEnter,m=A.onMouseLeave,y=A.onPointerEnter,b=A.ready,v=A.offsetX,k=A.offsetY,M=A.offsetR,x=A.offsetB,S=A.onAlign,F=A.onPrepare,N=A.stretch,R=A.targetWidth,L=A.targetHeight,P="function"==typeof t?t():t,H=s||l,G=(null==p?void 0:p.length)>0,O=WQ(J.useState(!p||!G),2),U=O[0],K=O[1];if(qE((function(){!U&&G&&i&&K(!0)}),[U,G,i]),!U)return null;var Y="auto",T={left:"-1000vw",top:"-1000vh",right:Y,bottom:Y};if(b||!s){var j,q=E.points,$=E.dynamicInset||(null===(j=E._experimental)||void 0===j?void 0:j.dynamicInset),z=$&&"r"===q[0][1],W=$&&"b"===q[0][0];z?(T.right=M,T.left=Y):(T.left=v,T.right=Y),W?(T.bottom=x,T.top=Y):(T.top=k,T.bottom=Y)}var _={};return N&&(N.includes("height")&&L?_.height=L:N.includes("minHeight")&&L&&(_.minHeight=L),N.includes("width")&&R?_.width=R:N.includes("minWidth")&&R&&(_.minWidth=R)),s||(_.pointerEvents="none"),J.createElement(h,{open:I||H,getContainer:p&&function(){return p(i)},autoDestroy:f},J.createElement(TM,{prefixCls:o,open:s,zIndex:w,mask:u,motion:d}),J.createElement(hI,{onResize:S,disabled:!s},(function(A){return J.createElement(Nh,BQ({motionAppear:!0,motionEnter:!0,motionLeave:!0,removeOnLeave:!1,forceRender:I,leavedClassName:"".concat(o,"-hidden")},C,{onAppearPrepare:F,onEnterPrepare:F,visible:s,onVisibleChanged:function(A){var e;null==C||null===(e=C.onVisibleChanged)||void 0===e||e.call(C,A),a(A)}}),(function(t,i){var a=t.className,l=t.style,u=ud(o,a,n);return J.createElement("div",{ref:Pd(A,e,i),className:u,style:kc(kc(kc(kc({"--arrow-x":"".concat(Q.x||0,"px"),"--arrow-y":"".concat(Q.y||0,"px")},T),_),l),{},{boxSizing:"border-box",zIndex:w},r),onMouseEnter:D,onMouseLeave:m,onPointerEnter:y,onClick:c},B&&J.createElement(YM,{prefixCls:o,arrow:B,arrowPos:Q,align:E}),J.createElement(JM,{cache:!s&&!g},P))}))})))})),qM=J.forwardRef((function(A,e){var t=A.children,n=A.getTriggerDOMNode,o=Gd(t),r=J.useCallback((function(A){Ld(e,n?n(A):A)}),[n]),i=Hd(r,t.ref);return o?J.cloneElement(t,{ref:i}):t})),$M=J.createContext(null);function zM(A){return A?Array.isArray(A)?A:[A]:[]}function WM(){var A=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];return(arguments.length>2?arguments[2]:void 0)?A[0]===e[0]:A[0]===e[0]&&A[1]===e[1]}function _M(A,e,t,n){return e||(t?{motionName:"".concat(A,"-").concat(t)}:n?{motionName:n}:null)}function XM(A){return A.ownerDocument.defaultView}function VM(A){for(var e=[],t=null==A?void 0:A.parentElement,n=["hidden","scroll","clip","auto"];t;){var o=XM(t).getComputedStyle(t);[o.overflowX,o.overflowY,o.overflow].some((function(A){return n.includes(A)}))&&e.push(t),t=t.parentElement}return e}function ZM(A){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1;return Number.isNaN(A)?e:A}function Ax(A){return ZM(parseFloat(A),0)}function ex(A,e){var t=kc({},A);return(e||[]).forEach((function(A){if(!(A instanceof HTMLBodyElement||A instanceof HTMLHtmlElement)){var e=XM(A).getComputedStyle(A),n=e.overflow,o=e.overflowClipMargin,r=e.borderTopWidth,i=e.borderBottomWidth,a=e.borderLeftWidth,s=e.borderRightWidth,l=A.getBoundingClientRect(),g=A.offsetHeight,c=A.clientHeight,u=A.offsetWidth,B=A.clientWidth,Q=Ax(r),E=Ax(i),C=Ax(a),d=Ax(s),I=ZM(Math.round(l.width/u*1e3)/1e3),p=ZM(Math.round(l.height/g*1e3)/1e3),f=(u-B-C-d)*I,h=(g-c-Q-E)*p,w=Q*p,D=E*p,m=C*I,y=d*I,b=0,v=0;if("clip"===n){var k=Ax(o);b=k*I,v=k*p}var M=l.x+m-b,x=l.y+w-v,S=M+l.width+2*b-m-y-f,F=x+l.height+2*v-w-D-h;t.left=Math.max(t.left,M),t.top=Math.max(t.top,x),t.right=Math.min(t.right,S),t.bottom=Math.min(t.bottom,F)}})),t}function tx(A){var e="".concat(arguments.length>1&&void 0!==arguments[1]?arguments[1]:0),t=e.match(/^(.*)\%$/);return t?A*(parseFloat(t[1])/100):parseFloat(e)}function nx(A,e){var t=WQ(e||[],2),n=t[0],o=t[1];return[tx(A.width,n),tx(A.height,o)]}function ox(){var A=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return[A[0],A[1]]}function rx(A,e){var t,n=e[0],o=e[1];return t="t"===n?A.y:"b"===n?A.y+A.height:A.y+A.height/2,{x:"l"===o?A.x:"r"===o?A.x+A.width:A.x+A.width/2,y:t}}function ix(A,e){var t={t:"b",b:"t",l:"r",r:"l"};return A.map((function(A,n){return n===e?t[A]||"c":A})).join("")}var ax=["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 sx=function(){var A=arguments.length>0&&void 0!==arguments[0]?arguments[0]:Sy,e=J.forwardRef((function(e,t){var n=e.prefixCls,o=void 0===n?"rc-trigger-popup":n,r=e.children,i=e.action,a=void 0===i?"hover":i,s=e.showAction,l=e.hideAction,g=e.popupVisible,c=e.defaultPopupVisible,u=e.onPopupVisibleChange,B=e.afterPopupVisibleChange,Q=e.mouseEnterDelay,E=e.mouseLeaveDelay,C=void 0===E?.1:E,d=e.focusDelay,I=e.blurDelay,p=e.mask,f=e.maskClosable,h=void 0===f||f,w=e.getPopupContainer,D=e.forceRender,m=e.autoDestroy,y=e.destroyPopupOnHide,b=e.popup,v=e.popupClassName,k=e.popupStyle,M=e.popupPlacement,x=e.builtinPlacements,S=void 0===x?{}:x,F=e.popupAlign,N=e.zIndex,R=e.stretch,L=e.getPopupClassNameFromAlign,P=e.fresh,H=e.alignPoint,G=e.onPopupClick,O=e.onPopupAlign,U=e.arrow,K=e.popupMotion,Y=e.maskMotion,T=e.popupTransitionName,j=e.popupAnimation,q=e.maskTransitionName,$=e.maskAnimation,z=e.className,W=e.getTriggerDOMNode,_=Mc(e,ax),X=m||y||!1,V=WQ(J.useState(!1),2),Z=V[0],AA=V[1];qE((function(){AA(sM())}),[]);var eA=J.useRef({}),tA=J.useContext($M),nA=J.useMemo((function(){return{registerSubPopup:function(A,e){eA.current[A]=e,null==tA||tA.registerSubPopup(A,e)}}}),[tA]),oA=Ly(),rA=WQ(J.useState(null),2),iA=rA[0],aA=rA[1],sA=J.useRef(null),lA=mf((function(A){sA.current=A,Nd(A)&&iA!==A&&aA(A),null==tA||tA.registerSubPopup(oA,A)})),gA=WQ(J.useState(null),2),cA=gA[0],uA=gA[1],BA=J.useRef(null),QA=mf((function(A){Nd(A)&&cA!==A&&(uA(A),BA.current=A)})),EA=J.Children.only(r),CA=(null==EA?void 0:EA.props)||{},dA={},IA=mf((function(A){var e,t,n=cA;return(null==n?void 0:n.contains(A))||(null===(e=rw(n))||void 0===e?void 0:e.host)===A||A===n||(null==iA?void 0:iA.contains(A))||(null===(t=rw(iA))||void 0===t?void 0:t.host)===A||A===iA||Object.values(eA.current).some((function(e){return(null==e?void 0:e.contains(A))||A===e}))})),pA=_M(o,K,j,T),fA=_M(o,Y,$,q),hA=WQ(J.useState(c||!1),2),wA=hA[0],DA=hA[1],mA=null!=g?g:wA,yA=mf((function(A){void 0===g&&DA(A)}));qE((function(){DA(g||!1)}),[g]);var bA=J.useRef(mA);bA.current=mA;var vA=J.useRef([]);vA.current=[];var kA=mf((function(A){var e;yA(A),(null!==(e=vA.current[vA.current.length-1])&&void 0!==e?e:mA)!==A&&(vA.current.push(A),null==u||u(A))})),MA=J.useRef(),xA=function(){clearTimeout(MA.current)},SA=function(A){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;xA(),0===e?kA(A):MA.current=setTimeout((function(){kA(A)}),1e3*e)};J.useEffect((function(){return xA}),[]);var FA=WQ(J.useState(!1),2),NA=FA[0],RA=FA[1];qE((function(A){A&&!mA||RA(!0)}),[mA]);var LA=WQ(J.useState(null),2),PA=LA[0],HA=LA[1],GA=WQ(J.useState([0,0]),2),OA=GA[0],UA=GA[1],KA=function(A){UA([A.clientX,A.clientY])},YA=function(A,e,t,n,o,r,i){var a=WQ(J.useState({ready:!1,offsetX:0,offsetY:0,offsetR:0,offsetB:0,arrowX:0,arrowY:0,scaleX:1,scaleY:1,align:o[n]||{}}),2),s=a[0],l=a[1],g=J.useRef(0),c=J.useMemo((function(){return e?VM(e):[]}),[e]),u=J.useRef({});A||(u.current={});var B=mf((function(){if(e&&t&&A){let A=function(A,e){var t=arguments.length>2&&void 0!==arguments[2]?arguments[2]:$,n=v.x+A,o=v.y+e,r=n+P,i=o+L,a=Math.max(n,t.left),s=Math.max(o,t.top),l=Math.min(r,t.right),g=Math.min(i,t.bottom);return Math.max(0,(l-a)*(g-s))},ae=function(){iA=v.y+IA,aA=iA+L,sA=v.x+dA,lA=sA+P};var a,s,g,B=e,Q=B.ownerDocument,E=XM(B).getComputedStyle(B),C=E.width,d=E.height,I=E.position,p=B.style.left,f=B.style.top,h=B.style.right,w=B.style.bottom,D=B.style.overflow,m=kc(kc({},o[n]),r),y=Q.createElement("div");if(null===(a=B.parentElement)||void 0===a||a.appendChild(y),y.style.left="".concat(B.offsetLeft,"px"),y.style.top="".concat(B.offsetTop,"px"),y.style.position=I,y.style.height="".concat(B.offsetHeight,"px"),y.style.width="".concat(B.offsetWidth,"px"),B.style.left="0",B.style.top="0",B.style.right="auto",B.style.bottom="auto",B.style.overflow="hidden",Array.isArray(t))g={x:t[0],y:t[1],width:0,height:0};else{var b=t.getBoundingClientRect();g={x:b.x,y:b.y,width:b.width,height:b.height}}var v=B.getBoundingClientRect(),k=Q.documentElement,M=k.clientWidth,x=k.clientHeight,S=k.scrollWidth,F=k.scrollHeight,N=k.scrollTop,R=k.scrollLeft,L=v.height,P=v.width,H=g.height,G=g.width,O={left:0,top:0,right:M,bottom:x},U={left:-R,top:-N,right:S-R,bottom:F-N},K=m.htmlRegion,Y="visible",T="visibleFirst";"scroll"!==K&&K!==T&&(K=Y);var J=K===T,j=ex(U,c),q=ex(O,c),$=K===Y?q:j,z=J?q:$;B.style.left="auto",B.style.top="auto",B.style.right="0",B.style.bottom="0";var W=B.getBoundingClientRect();B.style.left=p,B.style.top=f,B.style.right=h,B.style.bottom=w,B.style.overflow=D,null===(s=B.parentElement)||void 0===s||s.removeChild(y);var _=ZM(Math.round(P/parseFloat(C)*1e3)/1e3),X=ZM(Math.round(L/parseFloat(d)*1e3)/1e3);if(0===_||0===X||Nd(t)&&!im(t))return;var V=m.offset,Z=m.targetOffset,AA=WQ(nx(v,V),2),eA=AA[0],tA=AA[1],nA=WQ(nx(g,Z),2),oA=nA[0],rA=nA[1];g.x-=oA,g.y-=rA;var iA,aA,sA,lA,gA=WQ(m.points||[],2),cA=gA[0],uA=ox(gA[1]),BA=ox(cA),QA=rx(g,uA),EA=rx(v,BA),CA=kc({},m),dA=QA.x-EA.x+eA,IA=QA.y-EA.y+tA,pA=A(dA,IA),fA=A(dA,IA,q),hA=rx(g,["t","l"]),wA=rx(v,["t","l"]),DA=rx(g,["b","r"]),mA=rx(v,["b","r"]),yA=m.overflow||{},bA=yA.adjustX,vA=yA.adjustY,kA=yA.shiftX,MA=yA.shiftY,xA=function(A){return"boolean"==typeof A?A:A>=0};ae();var SA=xA(vA),FA=BA[0]===uA[0];if(SA&&"t"===BA[0]&&(aA>z.bottom||u.current.bt)){var NA=IA;FA?NA-=L-H:NA=hA.y-mA.y-tA;var RA=A(dA,NA),LA=A(dA,NA,q);RA>pA||RA===pA&&(!J||LA>=fA)?(u.current.bt=!0,IA=NA,tA=-tA,CA.points=[ix(BA,0),ix(uA,0)]):u.current.bt=!1}if(SA&&"b"===BA[0]&&(iApA||HA===pA&&(!J||GA>=fA)?(u.current.tb=!0,IA=PA,tA=-tA,CA.points=[ix(BA,0),ix(uA,0)]):u.current.tb=!1}var OA=xA(bA),UA=BA[1]===uA[1];if(OA&&"l"===BA[1]&&(lA>z.right||u.current.rl)){var KA=dA;UA?KA-=P-G:KA=hA.x-mA.x-eA;var YA=A(KA,IA),TA=A(KA,IA,q);YA>pA||YA===pA&&(!J||TA>=fA)?(u.current.rl=!0,dA=KA,eA=-eA,CA.points=[ix(BA,1),ix(uA,1)]):u.current.rl=!1}if(OA&&"r"===BA[1]&&(sApA||jA===pA&&(!J||qA>=fA)?(u.current.lr=!0,dA=JA,eA=-eA,CA.points=[ix(BA,1),ix(uA,1)]):u.current.lr=!1}ae();var $A=!0===kA?0:kA;"number"==typeof $A&&(sAq.right&&(dA-=lA-q.right-eA,g.x>q.right-$A&&(dA+=g.x-q.right+$A)));var zA=!0===MA?0:MA;"number"==typeof zA&&(iAq.bottom&&(IA-=aA-q.bottom-tA,g.y>q.bottom-zA&&(IA+=g.y-q.bottom+zA)));var WA=v.x+dA,_A=WA+P,XA=v.y+IA,VA=XA+L,ZA=g.x,Ae=ZA+G,ee=g.y,te=ee+H,ne=(Math.max(WA,ZA)+Math.min(_A,Ae))/2-WA,oe=(Math.max(XA,ee)+Math.min(VA,te))/2-XA;null==i||i(e,CA);var re=W.right-v.x-(dA+v.width),ie=W.bottom-v.y-(IA+v.height);l({ready:!0,offsetX:dA/_,offsetY:IA/X,offsetR:re/_,offsetB:ie/X,arrowX:ne/_,arrowY:oe/X,scaleX:_,scaleY:X,align:CA})}})),Q=function(){l((function(A){return kc(kc({},A),{},{ready:!1})}))};return qE(Q,[n]),qE((function(){A||Q()}),[A]),[s.ready,s.offsetX,s.offsetY,s.offsetR,s.offsetB,s.arrowX,s.arrowY,s.scaleX,s.scaleY,s.align,function(){g.current+=1;var A=g.current;Promise.resolve().then((function(){g.current===A&&B()}))}]}(mA,iA,H?OA:cA,M,S,F,O),TA=WQ(YA,11),JA=TA[0],jA=TA[1],qA=TA[2],$A=TA[3],zA=TA[4],WA=TA[5],_A=TA[6],XA=TA[7],VA=TA[8],ZA=TA[9],Ae=TA[10],ee=function(A,e,t,n){return J.useMemo((function(){var o=zM(null!=t?t:e),r=zM(null!=n?n:e),i=new Set(o),a=new Set(r);return A&&(i.has("hover")&&(i.delete("hover"),i.add("click")),a.has("hover")&&(a.delete("hover"),a.add("click"))),[i,a]}),[A,e,t,n])}(Z,a,s,l),te=WQ(ee,2),ne=te[0],oe=te[1],re=ne.has("click"),ie=oe.has("click")||oe.has("contextMenu"),ae=mf((function(){NA||Ae()}));!function(A,e,t,n,o){qE((function(){if(A&&e&&t){let A=function(){n(),o()};var r=t,i=VM(e),a=VM(r),s=XM(r),l=new Set([s].concat(XQ(i),XQ(a)));return l.forEach((function(e){e.addEventListener("scroll",A,{passive:!0})})),s.addEventListener("resize",A,{passive:!0}),n(),function(){l.forEach((function(e){e.removeEventListener("scroll",A),s.removeEventListener("resize",A)}))}}}),[A,e,t])}(mA,cA,iA,ae,(function(){bA.current&&H&&ie&&SA(!1)})),qE((function(){ae()}),[OA,M]),qE((function(){!mA||null!=S&&S[M]||ae()}),[JSON.stringify(F)]);var se=J.useMemo((function(){var A=function(A,e,t,n){for(var o=t.points,r=Object.keys(A),i=0;i1?i-1:0),s=1;s1?t-1:0),o=1;o1?t-1:0),o=1;o50?", ...":null)}var Ix=["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","suffixIcon","clearIcon","OptionList","animation","transitionName","dropdownStyle","dropdownClassName","dropdownMatchSelectWidth","dropdownRender","dropdownAlign","placement","builtinPlacements","getPopupContainer","showAction","onFocus","onBlur","onKeyUp","onKeyDown","onMouseDown"],px=["value","onChange","removeIcon","placeholder","autoFocus","maxTagCount","maxTagTextLength","maxTagPlaceholder","choiceTransitionName","onInputKeyDown","onPopupScroll","tabIndex"],fx=function(A){return"tags"===A||"multiple"===A},hx=J.forwardRef((function(A,e){var t,n=A.id,o=A.prefixCls,r=A.className,i=A.showSearch,a=A.tagRender,s=A.direction,l=A.omitDomProps,g=A.displayValues,c=A.onDisplayValuesChange,u=A.emptyOptions,B=A.notFoundContent,Q=void 0===B?"Not Found":B,E=A.onClear,C=A.mode,d=A.disabled,I=A.loading,p=A.getInputElement,f=A.getRawInputElement,h=A.open,w=A.defaultOpen,D=A.onDropdownVisibleChange,m=A.activeValue,y=A.onActiveValueChange,b=A.activeDescendantId,v=A.searchValue,k=A.autoClearSearchValue,M=A.onSearch,x=A.onSearchSplit,S=A.tokenSeparators,F=A.allowClear,N=A.suffixIcon,R=A.clearIcon,L=A.OptionList,P=A.animation,H=A.transitionName,G=A.dropdownStyle,O=A.dropdownClassName,U=A.dropdownMatchSelectWidth,K=A.dropdownRender,Y=A.dropdownAlign,T=A.placement,q=A.builtinPlacements,$=A.getPopupContainer,z=A.showAction,W=void 0===z?[]:z,_=A.onFocus,X=A.onBlur,V=A.onKeyUp,Z=A.onKeyDown,AA=A.onMouseDown,eA=Mc(A,Ix),tA=fx(C),nA=(void 0!==i?i:tA)||"combobox"===C,oA=kc({},eA);px.forEach((function(A){delete oA[A]})),null==l||l.forEach((function(A){delete oA[A]}));var rA=WQ(J.useState(!1),2),iA=rA[0],aA=rA[1];J.useEffect((function(){aA(sM())}),[]);var sA=J.useRef(null),lA=J.useRef(null),gA=J.useRef(null),cA=J.useRef(null),uA=J.useRef(null),BA=J.useRef(!1),QA=function(){var A=arguments.length>0&&void 0!==arguments[0]?arguments[0]:10,e=WQ(J.useState(!1),2),t=e[0],n=e[1],o=J.useRef(null),r=function(){window.clearTimeout(o.current)};return J.useEffect((function(){return r}),[]),[t,function(e,t){r(),o.current=window.setTimeout((function(){n(e),t&&t()}),A)},r]}(),EA=WQ(QA,3),CA=EA[0],dA=EA[1],IA=EA[2];J.useImperativeHandle(e,(function(){var A,e;return{focus:null===(A=cA.current)||void 0===A?void 0:A.focus,blur:null===(e=cA.current)||void 0===e?void 0:e.blur,scrollTo:function(A){var e;return null===(e=uA.current)||void 0===e?void 0:e.scrollTo(A)}}}));var pA=J.useMemo((function(){var A;if("combobox"!==C)return v;var e=null===(A=g[0])||void 0===A?void 0:A.value;return"string"==typeof e||"number"==typeof e?String(e):""}),[v,C,g]),fA="combobox"===C&&"function"==typeof p&&p()||null,hA="function"==typeof f&&f(),wA=Hd(lA,null==hA||null===(t=hA.props)||void 0===t?void 0:t.ref),DA=WQ(J.useState(!1),2),mA=DA[0],yA=DA[1];qE((function(){yA(!0)}),[]);var bA=WQ(vf(!1,{defaultValue:w,value:h}),2),vA=bA[0],kA=bA[1],MA=!!mA&&vA,xA=!Q&&u;(d||xA&&MA&&"combobox"===C)&&(MA=!1);var SA=!xA&&MA,FA=J.useCallback((function(A){var e=void 0!==A?A:!MA;d||(kA(e),MA!==e&&(null==D||D(e)))}),[d,MA,kA,D]),NA=J.useMemo((function(){return(S||[]).some((function(A){return["\n","\r\n"].includes(A)}))}),[S]),RA=J.useContext(Cx)||{},LA=RA.maxCount,PA=RA.rawValues,HA=function(A,e,t){if(!(tA&&Bx(LA)&&(null==PA?void 0:PA.size)>=LA)){var n=!0,o=A;null==y||y(null);var r=function(A,e,t){if(!e||!e.length)return null;var n=!1,o=function A(e,t){var o=xI(t),r=o[0],i=o.slice(1);if(!r)return[e];var a=e.split(r);return n=n||a.length>1,a.reduce((function(e,t){return[].concat(XQ(e),XQ(A(t,i)))}),[]).filter(Boolean)}(A,e);return n?void 0!==t?o.slice(0,t):o:null}(A,S,Bx(LA)?LA-PA.size:void 0),i=t?null:r;return"combobox"!==C&&i&&(o="",null==x||x(i),FA(!1),n=!1),M&&pA!==o&&M(o,{source:e?"typing":"effect"}),n}};J.useEffect((function(){MA||tA||"combobox"===C||HA("",!1,!1)}),[MA]),J.useEffect((function(){vA&&d&&kA(!1),d&&!BA.current&&dA(!1)}),[d]);var GA=WQ(cM(),2),OA=GA[0],UA=GA[1],KA=J.useRef(!1),YA=[];J.useEffect((function(){return function(){YA.forEach((function(A){return clearTimeout(A)})),YA.splice(0,YA.length)}}),[]);var TA,JA=WQ(J.useState({}),2)[1];hA&&(TA=function(A){FA(A)}),function(A,e,t,n){var o=J.useRef(null);o.current={open:e,triggerOpen:t,customizedTrigger:n},J.useEffect((function(){function e(e){var t;if(null===(t=o.current)||void 0===t||!t.customizedTrigger){var n=e.target;n.shadowRoot&&e.composed&&(n=e.composedPath()[0]||n),o.current.open&&A().filter((function(A){return A})).every((function(A){return!A.contains(n)&&A!==n}))&&o.current.triggerOpen(!1)}}return window.addEventListener("mousedown",e),function(){return window.removeEventListener("mousedown",e)}}),[])}((function(){var A;return[sA.current,null===(A=gA.current)||void 0===A?void 0:A.getPopupElement()]}),SA,FA,!!hA);var jA,qA=J.useMemo((function(){return kc(kc({},A),{},{notFoundContent:Q,open:MA,triggerOpen:SA,id:n,showSearch:nA,multiple:tA,toggleOpen:FA})}),[A,Q,SA,MA,n,nA,tA,FA]),$A=!!N||I;$A&&(jA=J.createElement(lM,{className:ud("".concat(o,"-arrow"),bc({},"".concat(o,"-arrow-loading"),I)),customizeIcon:N,customizeIconProps:{loading:I,searchValue:pA,open:MA,focused:CA,showSearch:nA}}));var zA,WA=function(A,e,t,n,o){var r=arguments.length>5&&void 0!==arguments[5]&&arguments[5],i=arguments.length>6?arguments[6]:void 0,a=arguments.length>7?arguments[7]:void 0,s=j.useMemo((function(){return"object"===mc(n)?n.clearIcon:o||void 0}),[n,o]);return{allowClear:j.useMemo((function(){return!(r||!n||!t.length&&!i||"combobox"===a&&""===i)}),[n,r,t.length,i,a]),clearIcon:j.createElement(lM,{className:"".concat(A,"-clear"),onMouseDown:e,customizeIcon:s},"ร—")}}(o,(function(){var A;null==E||E(),null===(A=cA.current)||void 0===A||A.focus(),c([],{type:"clear",values:g}),HA("",!1,!1)}),g,F,R,d,pA,C),_A=WA.allowClear,XA=WA.clearIcon,VA=J.createElement(L,{ref:uA}),ZA=ud(o,r,bc(bc(bc(bc(bc(bc(bc(bc(bc(bc({},"".concat(o,"-focused"),CA),"".concat(o,"-multiple"),tA),"".concat(o,"-single"),!tA),"".concat(o,"-allow-clear"),F),"".concat(o,"-show-arrow"),$A),"".concat(o,"-disabled"),d),"".concat(o,"-loading"),I),"".concat(o,"-open"),MA),"".concat(o,"-customize-input"),fA),"".concat(o,"-show-search"),nA)),Ae=J.createElement(cx,{ref:gA,disabled:d,prefixCls:o,visible:SA,popupElement:VA,animation:P,transitionName:H,dropdownStyle:G,dropdownClassName:O,direction:s,dropdownMatchSelectWidth:U,dropdownRender:K,dropdownAlign:Y,placement:T,builtinPlacements:q,getPopupContainer:$,empty:u,getTriggerDOMNode:function(){return lA.current},onPopupVisibleChange:TA,onPopupMouseEnter:function(){JA({})}},hA?J.cloneElement(hA,{ref:wA}):J.createElement(KM,BQ({},A,{domRef:lA,prefixCls:o,inputElement:fA,ref:cA,id:n,showSearch:nA,autoClearSearchValue:k,mode:C,activeDescendantId:b,tagRender:a,values:g,open:MA,onToggleOpen:FA,activeValue:m,searchValue:pA,onSearch:HA,onSearchSubmit:function(A){A&&A.trim()&&M(A,{source:"submit"})},onRemove:function(A){var e=g.filter((function(e){return e!==A}));c(e,{type:"remove",values:[A]})},tokenWithEnter:NA})));return zA=hA?Ae:J.createElement("div",BQ({className:ZA},oA,{ref:sA,onMouseDown:function(A){var e,t=A.target,n=null===(e=gA.current)||void 0===e?void 0:e.getPopupElement();if(n&&n.contains(t)){var o=setTimeout((function(){var A,e=YA.indexOf(o);-1!==e&&YA.splice(e,1),IA(),iA||n.contains(document.activeElement)||null===(A=cA.current)||void 0===A||A.focus()}));YA.push(o)}for(var r=arguments.length,i=new Array(r>1?r-1:0),a=1;a=0;i-=1){var a=o[i];if(!a.disabled){o.splice(i,1),r=a;break}}r&&c(o,{type:"remove",values:[r]})}for(var s=arguments.length,l=new Array(s>1?s-1:0),u=1;u1?e-1:0),n=1;n1&&void 0!==arguments[1]&&arguments[1],r=A<0&&o.current.top||A>0&&o.current.bottom;return e&&r?(clearTimeout(n.current),t.current=!1):r&&!t.current||(clearTimeout(n.current),t.current=!0,n.current=setTimeout((function(){t.current=!1}),50)),!t.current&&r}};function Mx(A,e,t,n,o){var r=J.useRef(0),i=J.useRef(null),a=J.useRef(null),s=J.useRef(!1),l=kx(e,t);var g=J.useRef(null),c=J.useRef(null);return[function(e){if(A){kI.cancel(c.current),c.current=kI((function(){g.current=null}),2);var t=e.deltaX,u=e.deltaY,B=e.shiftKey,Q=t,E=u;("sx"===g.current||!g.current&&B&&u&&!t)&&(Q=u,E=0,g.current="sx");var C=Math.abs(Q),d=Math.abs(E);null===g.current&&(g.current=n&&C>d?"x":"y"),"y"===g.current?function(A,e){kI.cancel(i.current),r.current+=e,a.current=e,l(e)||(vx||A.preventDefault(),i.current=kI((function(){var A=s.current?10:1;o(r.current*A),r.current=0})))}(e,E):function(A,e){o(e,!0),vx||A.preventDefault()}(e,Q)}},function(e){A&&(s.current=e.detail===a.current)}]}var xx=function(){function A(){eQ(this,A),bc(this,"maps",void 0),bc(this,"id",0),this.maps=Object.create(null)}return nQ(A,[{key:"set",value:function(A,e){this.maps[A]=e,this.id+=1}},{key:"get",value:function(A){return this.maps[A]}}]),A}();var Sx=14/15;var Fx=10;function Nx(A,e){return("touches"in A?A.touches[0]:A)[e?"pageX":"pageY"]}var Rx=J.forwardRef((function(A,e){var t=A.prefixCls,n=A.rtl,o=A.scrollOffset,r=A.scrollRange,i=A.onStartMove,a=A.onStopMove,s=A.onScroll,l=A.horizontal,g=A.spinSize,c=A.containerSize,u=A.style,B=A.thumbStyle,Q=WQ(J.useState(!1),2),E=Q[0],C=Q[1],d=WQ(J.useState(null),2),I=d[0],p=d[1],f=WQ(J.useState(null),2),h=f[0],w=f[1],D=!n,m=J.useRef(),y=J.useRef(),b=WQ(J.useState(!1),2),v=b[0],k=b[1],M=J.useRef(),x=function(){clearTimeout(M.current),k(!0),M.current=setTimeout((function(){k(!1)}),3e3)},S=r-c||0,F=c-g||0,N=J.useMemo((function(){return 0===o||0===S?0:o/S*F}),[o,S,F]),R=J.useRef({top:N,dragging:E,pageY:I,startTop:h});R.current={top:N,dragging:E,pageY:I,startTop:h};var L=function(A){C(!0),p(Nx(A,l)),w(R.current.top),i(),A.stopPropagation(),A.preventDefault()};J.useEffect((function(){var A=function(A){A.preventDefault()},e=m.current,t=y.current;return e.addEventListener("touchstart",A),t.addEventListener("touchstart",L),function(){e.removeEventListener("touchstart",A),t.removeEventListener("touchstart",L)}}),[]);var P=J.useRef();P.current=S;var H=J.useRef();H.current=F,J.useEffect((function(){if(E){var A,e=function(e){var t=R.current,n=t.dragging,o=t.pageY,r=t.startTop;if(kI.cancel(A),n){var i=Nx(e,l)-o,a=r;!D&&l?a-=i:a+=i;var g=P.current,c=H.current,u=c?a/c:0,B=Math.ceil(u*g);B=Math.max(B,0),B=Math.min(B,g),A=kI((function(){s(B,l)}))}},t=function(){C(!1),a()};return window.addEventListener("mousemove",e),window.addEventListener("touchmove",e),window.addEventListener("mouseup",t),window.addEventListener("touchend",t),function(){window.removeEventListener("mousemove",e),window.removeEventListener("touchmove",e),window.removeEventListener("mouseup",t),window.removeEventListener("touchend",t),kI.cancel(A)}}}),[E]),J.useEffect((function(){x()}),[o]),J.useImperativeHandle(e,(function(){return{delayHidden:x}}));var G="".concat(t,"-scrollbar"),O={position:"absolute",visibility:v?null:"hidden"},U={position:"absolute",background:"rgba(0, 0, 0, 0.5)",borderRadius:99,cursor:"pointer",userSelect:"none"};return l?(O.height=8,O.left=0,O.right=0,O.bottom=0,U.height="100%",U.width=g,D?U.left=N:U.right=N):(O.width=8,O.top=0,O.bottom=0,D?O.right=0:O.left=0,U.width="100%",U.height=g,U.top=N),J.createElement("div",{ref:m,className:ud(G,bc(bc(bc({},"".concat(G,"-horizontal"),l),"".concat(G,"-vertical"),!l),"".concat(G,"-visible"),v)),style:kc(kc({},O),u),onMouseDown:function(A){A.stopPropagation(),A.preventDefault()},onMouseMove:x},J.createElement("div",{ref:y,className:ud("".concat(G,"-thumb"),bc({},"".concat(G,"-thumb-moving"),E)),style:kc(kc({},U),B),onMouseDown:L}))})),Lx=20;function Px(){var A=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,e=A/(arguments.length>1&&void 0!==arguments[1]?arguments[1]:0)*A;return isNaN(e)&&(e=0),e=Math.max(e,Lx),Math.floor(e)}var Hx=["prefixCls","className","height","itemHeight","fullHeight","style","data","children","itemKey","virtual","direction","scrollWidth","component","onScroll","onVirtualScroll","onVisibleChange","innerProps","extraRender","styles"],Gx=[],Ox={overflowY:"auto",overflowAnchor:"none"};function Ux(A,e){var t=A.prefixCls,n=void 0===t?"rc-virtual-list":t,o=A.className,r=A.height,i=A.itemHeight,a=A.fullHeight,s=void 0===a||a,l=A.style,g=A.data,c=A.children,u=A.itemKey,B=A.virtual,Q=A.direction,E=A.scrollWidth,C=A.component,d=void 0===C?"div":C,I=A.onScroll,p=A.onVirtualScroll,f=A.onVisibleChange,h=A.innerProps,w=A.extraRender,D=A.styles,m=Mc(A,Hx),y=J.useCallback((function(A){return"function"==typeof u?u(A):null==A?void 0:A[u]}),[u]),b=function(A,e,t){var n=WQ(J.useState(0),2),o=n[0],r=n[1],i=J.useRef(new Map),a=J.useRef(new xx),s=J.useRef();function l(){kI.cancel(s.current)}function g(){var A=arguments.length>0&&void 0!==arguments[0]&&arguments[0];l();var e=function(){i.current.forEach((function(A,e){if(A&&A.offsetParent){var t=Rd(A),n=t.offsetHeight;a.current.get(e)!==n&&a.current.set(e,t.offsetHeight)}})),r((function(A){return A+1}))};A?e():s.current=kI(e)}return J.useEffect((function(){return l}),[]),[function(e,t){var n=A(e);i.current.get(n),t?(i.current.set(n,t),g()):i.current.delete(n)},g,a.current,o]}(y),v=WQ(b,4),k=v[0],M=v[1],x=v[2],S=v[3],F=!(!1===B||!r||!i),N=J.useMemo((function(){return Object.values(x.maps).reduce((function(A,e){return A+e}),0)}),[x.id,x.maps]),R=F&&g&&(Math.max(i*g.length,N)>r||!!E),L="rtl"===Q,P=ud(n,bc({},"".concat(n,"-rtl"),L),o),H=g||Gx,G=J.useRef(),O=J.useRef(),U=WQ(J.useState(0),2),K=U[0],Y=U[1],T=WQ(J.useState(0),2),j=T[0],q=T[1],$=WQ(J.useState(!1),2),z=$[0],W=$[1],_=function(){W(!0)},X=function(){W(!1)},V={getKey:y};function Z(A){Y((function(e){var t=function(A){var e=A;Number.isNaN(CA.current)||(e=Math.min(e,CA.current));return e=Math.max(e,0),e}("function"==typeof A?A(e):A);return G.current.scrollTop=t,t}))}var AA=J.useRef({start:0,end:H.length}),eA=J.useRef(),tA=WQ(bx(H,y),1)[0];eA.current=tA;var nA=J.useMemo((function(){if(!F)return{scrollHeight:void 0,start:0,end:H.length-1,offset:void 0};var A;if(!R)return{scrollHeight:(null===(A=O.current)||void 0===A?void 0:A.offsetHeight)||0,start:0,end:H.length-1,offset:void 0};for(var e,t,n,o=0,a=H.length,s=0;s=K&&void 0===e&&(e=s,t=o),u>K+r&&void 0===n&&(n=s),o=u}return void 0===e&&(e=0,t=0,n=Math.ceil(r/i)),void 0===n&&(n=H.length-1),{scrollHeight:o,start:e,end:n=Math.min(n+1,H.length-1),offset:t}}),[R,F,K,H,S,r]),oA=nA.scrollHeight,rA=nA.start,iA=nA.end,aA=nA.offset;AA.current.start=rA,AA.current.end=iA;var sA=WQ(J.useState({width:0,height:r}),2),lA=sA[0],gA=sA[1],cA=J.useRef(),uA=J.useRef(),BA=J.useMemo((function(){return Px(lA.width,E)}),[lA.width,E]),QA=J.useMemo((function(){return Px(lA.height,oA)}),[lA.height,oA]),EA=oA-r,CA=J.useRef(EA);CA.current=EA;var dA=K<=0,IA=K>=EA,pA=kx(dA,IA),fA=function(){return{x:L?-j:j,y:K}},hA=J.useRef(fA()),wA=mf((function(A){if(p){var e=kc(kc({},fA()),A);hA.current.x===e.x&&hA.current.y===e.y||(p(e),hA.current=e)}}));function DA(A,e){var t=A;e?(pc.flushSync((function(){q(t)})),wA()):Z(t)}var mA=function(A){var e=A,t=E?E-lA.width:0;return e=Math.max(e,0),e=Math.min(e,t)},yA=mf((function(A,e){e?(pc.flushSync((function(){q((function(e){return mA(e+(L?-A:A))}))})),wA()):Z((function(e){return e+A}))})),bA=WQ(Mx(F,dA,IA,!!E,yA),2),vA=bA[0],kA=bA[1];!function(A,e,t){var n,o=J.useRef(!1),r=J.useRef(0),i=J.useRef(null),a=J.useRef(null),s=function(A){if(o.current){var e=Math.ceil(A.touches[0].pageY),n=r.current-e;r.current=e,t(n)&&A.preventDefault(),clearInterval(a.current),a.current=setInterval((function(){(!t(n*=Sx,!0)||Math.abs(n)<=.1)&&clearInterval(a.current)}),16)}},l=function(){o.current=!1,n()},g=function(A){n(),1!==A.touches.length||o.current||(o.current=!0,r.current=Math.ceil(A.touches[0].pageY),i.current=A.target,i.current.addEventListener("touchmove",s),i.current.addEventListener("touchend",l))};n=function(){i.current&&(i.current.removeEventListener("touchmove",s),i.current.removeEventListener("touchend",l))},qE((function(){return A&&e.current.addEventListener("touchstart",g),function(){var A;null===(A=e.current)||void 0===A||A.removeEventListener("touchstart",g),n(),clearInterval(a.current)}}),[A])}(F,G,(function(A,e){return!pA(A,e)&&(vA({preventDefault:function(){},deltaY:A}),!0)})),qE((function(){function A(A){F&&A.preventDefault()}var e=G.current;return e.addEventListener("wheel",vA),e.addEventListener("DOMMouseScroll",kA),e.addEventListener("MozMousePixelScroll",A),function(){e.removeEventListener("wheel",vA),e.removeEventListener("DOMMouseScroll",kA),e.removeEventListener("MozMousePixelScroll",A)}}),[F]),qE((function(){if(E){var A=mA(j);q(A),wA({x:A})}}),[lA.width,E]);var MA=function(){var A,e;null===(A=cA.current)||void 0===A||A.delayHidden(),null===(e=uA.current)||void 0===e||e.delayHidden()},xA=function(A,e,t,n,o,r,i,a){var s=J.useRef(),l=WQ(J.useState(null),2),g=l[0],c=l[1];return qE((function(){if(g&&g.times=0;b-=1){var v=o(e[b]),k=t.get(v);if(void 0===k){Q=!0;break}if((y-=k)<=0)break}switch(d){case"top":C=p-u;break;case"bottom":C=f-B+u;break;default:var M=A.current.scrollTop;pM+B&&(E="bottom")}null!==C&&i(C),C!==g.lastTop&&(Q=!0)}Q&&c(kc(kc({},g),{},{times:g.times+1,targetAlign:E,lastTop:C}))}}),[g,A.current]),function(A){if(null!=A){if(kI.cancel(s.current),"number"==typeof A)i(A);else if(A&&"object"===mc(A)){var t,n=A.align;t="index"in A?A.index:e.findIndex((function(e){return o(e)===A.key}));var r=A.offset;c({times:0,index:t,offset:void 0===r?0:r,originAlign:n})}}else a()}}(G,H,x,i,y,(function(){return M(!0)}),Z,MA);J.useImperativeHandle(e,(function(){return{getScrollInfo:fA,scrollTo:function(A){var e;(e=A)&&"object"===mc(e)&&("left"in e||"top"in e)?(void 0!==A.left&&q(mA(A.left)),xA(A.top)):xA(A)}}})),qE((function(){if(f){var A=H.slice(rA,iA+1);f(A,H)}}),[rA,iA,H]);var SA=function(A,e,t,n){var o=WQ(J.useMemo((function(){return[new Map,[]]}),[A,t.id,n]),2),r=o[0],i=o[1];return function(o){var a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:o,s=r.get(o),l=r.get(a);if(void 0===s||void 0===l)for(var g=A.length,c=i.length;cr&&J.createElement(Rx,{ref:cA,prefixCls:n,scrollOffset:K,scrollRange:oA,rtl:L,onScroll:DA,onStartMove:_,onStopMove:X,spinSize:QA,containerSize:lA.height,style:null==D?void 0:D.verticalScrollBar,thumbStyle:null==D?void 0:D.verticalScrollBarThumb}),R&&E>lA.width&&J.createElement(Rx,{ref:uA,prefixCls:n,scrollOffset:j,scrollRange:E,rtl:L,onScroll:DA,onStartMove:_,onStopMove:X,spinSize:BA,containerSize:lA.width,horizontal:!0,style:null==D?void 0:D.horizontalScrollBar,thumbStyle:null==D?void 0:D.horizontalScrollBarThumb}))}var Kx=J.forwardRef(Ux);Kx.displayName="List";var Yx=["disabled","title","children","style","className"];function Tx(A){return"string"==typeof A||"number"==typeof A}var Jx=function(A,e){var t=J.useContext(gM),n=t.prefixCls,o=t.id,r=t.open,i=t.multiple,a=t.mode,s=t.searchValue,l=t.toggleOpen,g=t.notFoundContent,c=t.onPopupScroll,u=J.useContext(Cx),B=u.maxCount,Q=u.flattenOptions,E=u.onActiveValue,C=u.defaultActiveFirstOption,d=u.onSelect,I=u.menuItemSelectedIcon,p=u.rawValues,f=u.fieldNames,h=u.virtual,w=u.direction,D=u.listHeight,m=u.listItemHeight,y=u.optionRender,b="".concat(n,"-item"),v=uE((function(){return Q}),[r,Q],(function(A,e){return e[0]&&A[1]!==e[1]})),k=J.useRef(null),M=J.useMemo((function(){return i&&Bx(B)&&(null==p?void 0:p.size)>=B}),[i,B,null==p?void 0:p.size]),x=function(A){A.preventDefault()},S=function(A){var e;null===(e=k.current)||void 0===e||e.scrollTo("number"==typeof A?{index:A}:A)},F=function(A){for(var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1,t=v.length,n=0;n1&&void 0!==arguments[1]&&arguments[1];L(A);var t={source:e?"keyboard":"mouse"},n=v[A];n?E(n.value,A,t):E(null,-1,t)};J.useEffect((function(){P(!1!==C?F(0):-1)}),[v.length,s]);var H=J.useCallback((function(A){return p.has(A)&&"combobox"!==a}),[a,XQ(p).toString(),p.size]);J.useEffect((function(){var A,e=setTimeout((function(){if(!i&&r&&1===p.size){var A=Array.from(p)[0],e=v.findIndex((function(e){return e.data.value===A}));-1!==e&&(P(e),S(e))}}));r&&(null===(A=k.current)||void 0===A||A.scrollTo(void 0));return function(){return clearTimeout(e)}}),[r,s]);var G=function(A){void 0!==A&&d(A,{selected:!p.has(A)}),i||l(!1)};if(J.useImperativeHandle(e,(function(){return{onKeyDown:function(A){var e=A.which,t=A.ctrlKey;switch(e){case rD.N:case rD.P:case rD.UP:case rD.DOWN:var n=0;if(e===rD.UP?n=-1:e===rD.DOWN?n=1:/(mac\sos|macintosh)/i.test(navigator.appVersion)&&t&&(e===rD.N?n=1:e===rD.P&&(n=-1)),0!==n){var o=F(R+n,n);S(o),P(o,!0)}break;case rD.ENTER:var i,a=v[R];!a||null!=a&&null!==(i=a.data)&&void 0!==i&&i.disabled||M?G(void 0):G(a.value),r&&A.preventDefault();break;case rD.ESC:l(!1),r&&A.stopPropagation()}},onKeyUp:function(){},scrollTo:function(A){S(A)}}})),0===v.length)return J.createElement("div",{role:"listbox",id:"".concat(o,"_list"),className:"".concat(b,"-empty"),onMouseDown:x},g);var O=Object.keys(f).map((function(A){return f[A]})),U=function(A){return A.label};function K(A,e){return{role:A.group?"presentation":"option",id:"".concat(o,"_list_").concat(e)}}var Y=function(A){var e=v[A];if(!e)return null;var t=e.data||{},n=t.value,o=e.group,r=Lw(t,!0),i=U(e);return e?J.createElement("div",BQ({"aria-label":"string"!=typeof i||o?null:i},r,{key:A},K(e,A),{"aria-selected":H(n)}),n):null},T={role:"listbox",id:"".concat(o,"_list")};return J.createElement(J.Fragment,null,h&&J.createElement("div",BQ({},T,{style:{height:0,width:0,overflow:"hidden"}}),Y(R-1),Y(R),Y(R+1)),J.createElement(Kx,{itemKey:"key",ref:k,data:v,height:D,itemHeight:m,fullHeight:!1,onMouseDown:x,onScroll:c,virtual:h,direction:w,innerProps:h?null:T},(function(A,e){var t=A.group,n=A.groupOption,o=A.data,r=A.label,i=A.value,a=o.key;if(t){var s,l=null!==(s=o.title)&&void 0!==s?s:Tx(r)?r.toString():void 0;return J.createElement("div",{className:ud(b,"".concat(b,"-group"),o.className),title:l},void 0!==r?r:a)}var g=o.disabled,c=o.title;o.children;var u=o.style,B=o.className,Q=wI(Mc(o,Yx),O),E=H(i),C=g||!E&&M,d="".concat(b,"-option"),p=ud(b,d,B,bc(bc(bc(bc({},"".concat(d,"-grouped"),n),"".concat(d,"-active"),R===e&&!C),"".concat(d,"-disabled"),C),"".concat(d,"-selected"),E)),f=U(A),w=!I||"function"==typeof I||E,D="number"==typeof f?f:f||i,m=Tx(D)?D.toString():void 0;return void 0!==c&&(m=c),J.createElement("div",BQ({},Lw(Q),h?{}:K(A,e),{"aria-selected":E,className:p,title:m,onMouseMove:function(){R===e||C||P(e)},onClick:function(){C||G(i)},style:u}),J.createElement("div",{className:"".concat(d,"-content")},"function"==typeof y?y(A,{index:e}):D),J.isValidElement(I)||E,w&&J.createElement(lM,{className:"".concat(b,"-option-state"),customizeIcon:I,customizeIconProps:{value:i,disabled:C,isSelected:E}},E?"โœ“":null))})))},jx=J.forwardRef(Jx);function qx(A,e){return FM(A).join("").toUpperCase().includes(e)}var $x=0,zx=ZQ();function Wx(A){var e=WQ(J.useState(),2),t=e[0],n=e[1];return J.useEffect((function(){var A;n("rc_select_".concat((zx?(A=$x,$x+=1):A="TEST_OR_SSR",A)))}),[]),A||t}var _x=["children","value"],Xx=["children"];function Vx(A){var e=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return Fd(A).map((function(A,t){if(!J.isValidElement(A)||!A.type)return null;var n=A,o=n.type.isSelectOptGroup,r=n.key,i=n.props,a=i.children,s=Mc(i,Xx);return e||!o?function(A){var e=A,t=e.key,n=e.props,o=n.children,r=n.value;return kc({key:t,value:void 0!==r?r:t,children:o},Mc(n,_x))}(A):kc(kc({key:"__RC_SELECT_GRP__".concat(null===r?t:r,"__"),label:r},s),{},{options:Vx(a)})})).filter((function(A){return A}))}function Zx(A){var e=J.useRef();e.current=A;var t=J.useCallback((function(){return e.current.apply(e,arguments)}),[]);return t}var AS=["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"],eS=["inputValue"];var tS=J.forwardRef((function(A,e){var t=A.id,n=A.mode,o=A.prefixCls,r=void 0===o?"rc-select":o,i=A.backfill,a=A.fieldNames,s=A.inputValue,l=A.searchValue,g=A.onSearch,c=A.autoClearSearchValue,u=void 0===c||c,B=A.onSelect,Q=A.onDeselect,E=A.dropdownMatchSelectWidth,C=void 0===E||E,d=A.filterOption,I=A.filterSort,p=A.optionFilterProp,f=A.optionLabelProp,h=A.options,w=A.optionRender,D=A.children,m=A.defaultActiveFirstOption,y=A.menuItemSelectedIcon,b=A.virtual,v=A.direction,k=A.listHeight,M=void 0===k?200:k,x=A.listItemHeight,S=void 0===x?20:x,F=A.labelRender,N=A.value,R=A.defaultValue,L=A.labelInValue,P=A.onChange,H=A.maxCount,G=Mc(A,AS),O=Wx(t),U=fx(n),K=!(h||!D),Y=J.useMemo((function(){return(void 0!==d||"combobox"!==n)&&d}),[d,n]),T=J.useMemo((function(){return Qx(a,K)}),[JSON.stringify(a),K]),j=WQ(vf("",{value:void 0!==l?l:s,postState:function(A){return A||""}}),2),q=j[0],$=j[1],z=function(A,e,t,n,o){return J.useMemo((function(){var r=A;!A&&(r=Vx(e));var i=new Map,a=new Map,s=function(A,e,t){t&&"string"==typeof t&&A.set(e[t],e)};return function A(e){for(var r=arguments.length>1&&void 0!==arguments[1]&&arguments[1],l=0;l1&&void 0!==arguments[1]?arguments[1]:{},t=e.fieldNames,n=e.childrenAsData,o=[],r=Qx(t,!1),i=r.label,a=r.value,s=r.options,l=r.groupLabel;return function A(e,t){Array.isArray(e)&&e.forEach((function(e){if(t||!(s in e)){var r=e[a];o.push({key:ux(e,o.length),groupOption:t,data:e,label:e[i],value:r})}else{var g=e[l];void 0===g&&n&&(g=e.label),o.push({key:ux(e,o.length),group:!0,data:e,label:g}),A(e[s],!0)}}))}(A,!1),o}(BA,{fieldNames:T,childrenAsData:K})}),[BA,T,K]),EA=function(A){var e=V(A);if(eA(e),P&&(e.length!==rA.length||e.some((function(A,e){var t;return(null===(t=rA[e])||void 0===t?void 0:t.value)!==(null==A?void 0:A.value)})))){var t=L?e:e.map((function(A){return A.value})),n=e.map((function(A){return Ex(iA(A.value))}));P(U?t:t[0],U?n:n[0])}},CA=WQ(J.useState(null),2),dA=CA[0],IA=CA[1],pA=WQ(J.useState(0),2),fA=pA[0],hA=pA[1],wA=void 0!==m?m:"combobox"!==n,DA=J.useCallback((function(A,e){var t=(arguments.length>2&&void 0!==arguments[2]?arguments[2]:{}).source,o=void 0===t?"keyboard":t;hA(e),i&&"combobox"===n&&null!==A&&"keyboard"===o&&IA(String(A))}),[i,n]),mA=function(A,e,t){var n=function(){var e,t=iA(A);return[L?{label:null==t?void 0:t[T.label],value:A,key:null!==(e=null==t?void 0:t.key)&&void 0!==e?e:A}:A,Ex(t)]};if(e&&B){var o=WQ(n(),2),r=o[0],i=o[1];B(r,i)}else if(!e&&Q&&"clear"!==t){var a=WQ(n(),2),s=a[0],l=a[1];Q(s,l)}},yA=Zx((function(A,e){var t,o=!U||e.selected;t=o?U?[].concat(XQ(rA),[A]):[A]:rA.filter((function(e){return e.value!==A})),EA(t),mA(A,o),"combobox"===n?IA(""):fx&&!u||($(""),IA(""))})),bA=J.useMemo((function(){var A=!1!==b&&!1!==C;return kc(kc({},z),{},{flattenOptions:QA,onActiveValue:DA,defaultActiveFirstOption:wA,onSelect:yA,menuItemSelectedIcon:y,rawValues:sA,fieldNames:T,virtual:A,direction:v,listHeight:M,listItemHeight:S,childrenAsData:K,maxCount:H,optionRender:w})}),[H,z,QA,DA,wA,yA,y,sA,T,b,C,v,M,S,K,w]);return J.createElement(Cx.Provider,{value:bA},J.createElement(hx,BQ({},G,{id:O,prefixCls:r,ref:e,omitDomProps:eS,mode:n,displayValues:aA,onDisplayValuesChange:function(A,e){EA(A);var t=e.type,n=e.values;"remove"!==t&&"clear"!==t||n.forEach((function(A){mA(A.value,!1,t)}))},direction:v,searchValue:q,onSearch:function(A,e){if($(A),IA(null),"submit"!==e.source)"blur"!==e.source&&("combobox"===n&&EA(A),null==g||g(A));else{var t=(A||"").trim();if(t){var o=Array.from(new Set([].concat(XQ(sA),[t])));EA(o),mA(t,!0),$("")}}},autoClearSearchValue:u,onSearchSplit:function(A){var e=A;"tags"!==n&&(e=A.map((function(A){var e=_.get(A);return null==e?void 0:e.value})).filter((function(A){return void 0!==A})));var t=Array.from(new Set([].concat(XQ(sA),XQ(e))));EA(t),t.forEach((function(A){mA(A,!0)}))},dropdownMatchSelectWidth:C,OptionList:jx,emptyOptions:!QA.length,activeValue:dA,activeDescendantId:"".concat(O,"_list_").concat(fA)})))})),nS=tS;function oS(A,e,t){return ud({[`${A}-status-success`]:"success"===e,[`${A}-status-warning`]:"warning"===e,[`${A}-status-error`]:"error"===e,[`${A}-status-validating`]:"validating"===e,[`${A}-has-feedback`]:t})}nS.Option=Dx,nS.OptGroup=wx;const rS=(A,e)=>e||A,iS=()=>{const[,A]=Cf(),e=new Cp(A.colorBgBase).toHsl().l<.5?{opacity:.65}:{};return J.createElement("svg",{style:e,width:"184",height:"152",viewBox:"0 0 184 152",xmlns:"http://www.w3.org/2000/svg"},J.createElement("g",{fill:"none",fillRule:"evenodd"},J.createElement("g",{transform:"translate(24 31.67)"},J.createElement("ellipse",{fillOpacity:".8",fill:"#F5F5F7",cx:"67.797",cy:"106.89",rx:"67.797",ry:"12.668"}),J.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"}),J.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)"}),J.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"}),J.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"})),J.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"}),J.createElement("g",{transform:"translate(149.65 15.383)",fill:"#FFF"},J.createElement("ellipse",{cx:"20.654",cy:"3.167",rx:"2.849",ry:"2.815"}),J.createElement("path",{d:"M5.698 5.63H0L2.898.704zM9.259.704h4.985V5.63H9.259z"}))))},aS=()=>{const[,A]=Cf(),{colorFill:e,colorFillTertiary:t,colorFillQuaternary:n,colorBgContainer:o}=A,{borderColor:r,shadowColor:i,contentColor:a}=J.useMemo((()=>({borderColor:new Cp(e).onBackground(o).toHexShortString(),shadowColor:new Cp(t).onBackground(o).toHexShortString(),contentColor:new Cp(n).onBackground(o).toHexShortString()})),[e,t,n,o]);return J.createElement("svg",{width:"64",height:"41",viewBox:"0 0 64 41",xmlns:"http://www.w3.org/2000/svg"},J.createElement("g",{transform:"translate(0 1)",fill:"none",fillRule:"evenodd"},J.createElement("ellipse",{fill:i,cx:"32",cy:"33",rx:"32",ry:"7"}),J.createElement("g",{fillRule:"nonzero",stroke:r},J.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"}),J.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:a}))))},sS=A=>{const{componentCls:e,margin:t,marginXS:n,marginXL:o,fontSize:r,lineHeight:i}=A;return{[e]:{marginInline:n,fontSize:r,lineHeight:i,textAlign:"center",[`${e}-image`]:{height:A.emptyImgHeight,marginBottom:n,opacity:A.opacityImage,img:{height:"100%"},svg:{maxWidth:"100%",height:"100%",margin:"auto"}},[`${e}-description`]:{color:A.colorText},[`${e}-footer`]:{marginTop:t},"&-normal":{marginBlock:o,color:A.colorTextDescription,[`${e}-description`]:{color:A.colorTextDescription},[`${e}-image`]:{height:A.emptyImgHeightMD}},"&-small":{marginBlock:n,color:A.colorTextDescription,[`${e}-image`]:{height:A.emptyImgHeightSM}}}}},lS=jf("Empty",(A=>{const{componentCls:e,controlHeightLG:t,calc:n}=A,o=Pf(A,{emptyImgCls:`${e}-img`,emptyImgHeight:n(t).mul(2.5).equal(),emptyImgHeightMD:t,emptyImgHeightSM:n(t).mul(.875).equal()});return[sS(o)]}));const gS=J.createElement(iS,null),cS=J.createElement(aS,null),uS=A=>{var{className:e,rootClassName:t,prefixCls:n,image:o=gS,description:r,children:i,imageStyle:a,style:s}=A,l=function(A,e){var t={};for(var n in A)Object.prototype.hasOwnProperty.call(A,n)&&e.indexOf(n)<0&&(t[n]=A[n]);if(null!=A&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(n=Object.getOwnPropertySymbols(A);o{const{componentName:e}=A,{getPrefixCls:t}=J.useContext(Xp),n=t("empty");switch(e){case"Table":case"List":return j.createElement(uS,{image:uS.PRESENTED_IMAGE_SIMPLE});case"Select":case"TreeSelect":case"Cascader":case"Transfer":case"Mentions":return j.createElement(uS,{image:uS.PRESENTED_IMAGE_SIMPLE,className:`${n}-small`});default:return j.createElement(uS,null)}},QS=["outlined","borderless","filled"],ES=function(A){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:void 0;const t=J.useContext(uv);let n;n=void 0!==A?A:!1===e?"borderless":null!=t?t:"outlined";return[n,QS.includes(n)]};function CS(A,e){return A||(A=>{const e={overflow:{adjustX:!0,adjustY:!0,shiftY:!0},htmlRegion:"scroll"===A?"scroll":"visible",dynamicInset:!0};return{bottomLeft:Object.assign(Object.assign({},e),{points:["tl","bl"],offset:[0,4]}),bottomRight:Object.assign(Object.assign({},e),{points:["tr","br"],offset:[0,4]}),topLeft:Object.assign(Object.assign({},e),{points:["bl","tl"],offset:[0,-4]}),topRight:Object.assign(Object.assign({},e),{points:["br","tr"],offset:[0,-4]})}})(e)}const dS=A=>{const{optionHeight:e,optionFontSize:t,optionLineHeight:n,optionPadding:o}=A;return{position:"relative",display:"block",minHeight:e,padding:o,color:A.colorText,fontWeight:"normal",fontSize:t,lineHeight:n,boxSizing:"border-box"}},IS=A=>{const{antCls:e,componentCls:t}=A,n=`${t}-item`,o=`&${e}-slide-up-enter${e}-slide-up-enter-active`,r=`&${e}-slide-up-appear${e}-slide-up-appear-active`,i=`&${e}-slide-up-leave${e}-slide-up-leave-active`,a=`${t}-dropdown-placement-`;return[{[`${t}-dropdown`]:Object.assign(Object.assign({},Mf(A)),{position:"absolute",top:-9999,zIndex:A.zIndexPopup,boxSizing:"border-box",padding:A.paddingXXS,overflow:"hidden",fontSize:A.fontSize,fontVariant:"initial",backgroundColor:A.colorBgElevated,borderRadius:A.borderRadiusLG,outline:"none",boxShadow:A.boxShadowSecondary,[`\n ${o}${a}bottomLeft,\n ${r}${a}bottomLeft\n `]:{animationName:Lv},[`\n ${o}${a}topLeft,\n ${r}${a}topLeft,\n ${o}${a}topRight,\n ${r}${a}topRight\n `]:{animationName:Hv},[`${i}${a}bottomLeft`]:{animationName:Pv},[`\n ${i}${a}topLeft,\n ${i}${a}topRight\n `]:{animationName:Gv},"&-hidden":{display:"none"},[`${n}`]:Object.assign(Object.assign({},dS(A)),{cursor:"pointer",transition:`background ${A.motionDurationSlow} ease`,borderRadius:A.borderRadiusSM,"&-group":{color:A.colorTextDescription,fontSize:A.fontSizeSM,cursor:"default"},"&-option":{display:"flex","&-content":Object.assign({flex:"auto"},kf),"&-state":{flex:"none",display:"flex",alignItems:"center"},[`&-active:not(${n}-option-disabled)`]:{backgroundColor:A.optionActiveBg},[`&-selected:not(${n}-option-disabled)`]:{color:A.optionSelectedColor,fontWeight:A.optionSelectedFontWeight,backgroundColor:A.optionSelectedBg,[`${n}-option-state`]:{color:A.colorPrimary},[`&:has(+ ${n}-option-selected:not(${n}-option-disabled))`]:{borderEndStartRadius:0,borderEndEndRadius:0,[`& + ${n}-option-selected:not(${n}-option-disabled)`]:{borderStartStartRadius:0,borderStartEndRadius:0}}},"&-disabled":{[`&${n}-option-selected`]:{backgroundColor:A.colorBgContainerDisabled},color:A.colorTextDisabled,cursor:"not-allowed"},"&-grouped":{paddingInlineStart:A.calc(A.controlPaddingHorizontal).mul(2).equal()}},"&-empty":Object.assign(Object.assign({},dS(A)),{color:A.colorTextDisabled})}),"&-rtl":{direction:"rtl"}})},Jv(A,"slide-up"),Jv(A,"slide-down"),Rv(A,"move-up"),Rv(A,"move-down")]},pS=A=>{const{componentCls:e,iconCls:t,borderRadiusSM:n,motionDurationSlow:o,paddingXS:r,multipleItemColorDisabled:i,multipleItemBorderColorDisabled:a,colorIcon:s,colorIconHover:l,INTERNAL_FIXED_ITEM_MARGIN:g}=A,c=`${e}-selection-overflow`;return{[c]:{position:"relative",display:"flex",flex:"auto",flexWrap:"wrap",maxWidth:"100%","&-item":{flex:"none",alignSelf:"center",maxWidth:"100%",display:"inline-flex"},[`${e}-selection-item`]:{display:"flex",alignSelf:"center",flex:"none",boxSizing:"border-box",maxWidth:"100%",marginBlock:g,borderRadius:n,cursor:"default",transition:`font-size ${o}, line-height ${o}, height ${o}`,marginInlineEnd:A.calc(g).mul(2).equal(),paddingInlineStart:r,paddingInlineEnd:A.calc(r).div(2).equal(),[`${e}-disabled&`]:{color:i,borderColor:a,cursor:"not-allowed"},"&-content":{display:"inline-block",marginInlineEnd:A.calc(r).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",[`> ${t}`]:{verticalAlign:"-0.2em"},"&:hover":{color:l}})}}}},fS=(A,e)=>{const{componentCls:t,INTERNAL_FIXED_ITEM_MARGIN:n}=A,o=`${t}-selection-overflow`,r=A.multipleSelectItemHeight,i=(A=>{const{multipleSelectItemHeight:e,selectHeight:t,lineWidth:n}=A;return A.calc(t).sub(e).div(2).sub(n).equal()})(A),a=e?`${t}-${e}`:"",s=(A=>{const{multipleSelectItemHeight:e,paddingXXS:t,lineWidth:n,INTERNAL_FIXED_ITEM_MARGIN:o}=A,r=A.max(A.calc(t).sub(n).equal(),0);return{basePadding:r,containerPadding:A.max(A.calc(r).sub(o).equal(),0),itemHeight:UE(e),itemLineHeight:UE(A.calc(e).sub(A.calc(A.lineWidth).mul(2)).equal())}})(A);return{[`${t}-multiple${a}`]:Object.assign(Object.assign({},pS(A)),{[`${t}-selector`]:{display:"flex",flexWrap:"wrap",alignItems:"center",height:"100%",paddingInline:s.basePadding,paddingBlock:s.containerPadding,borderRadius:A.borderRadius,[`${t}-disabled&`]:{background:A.multipleSelectorBgDisabled,cursor:"not-allowed"},"&:after":{display:"inline-block",width:0,margin:`${UE(n)} 0`,lineHeight:UE(r),visibility:"hidden",content:'"\\a0"'}},[`${t}-selection-item`]:{height:s.itemHeight,lineHeight:UE(s.itemLineHeight)},[`${o}-item + ${o}-item`]:{[`${t}-selection-search`]:{marginInlineStart:0}},[`${o}-item-suffix`]:{height:"100%"},[`${t}-selection-search`]:{display:"inline-flex",position:"relative",maxWidth:"100%",marginInlineStart:A.calc(A.inputPaddingHorizontalBase).sub(i).equal(),"\n &-input,\n &-mirror\n ":{height:r,fontFamily:A.fontFamily,lineHeight:UE(r),transition:`all ${A.motionDurationSlow}`},"&-input":{width:"100%",minWidth:4.1},"&-mirror":{position:"absolute",top:0,insetInlineStart:0,insetInlineEnd:"auto",zIndex:999,whiteSpace:"pre",visibility:"hidden"}},[`${t}-selection-placeholder`]:{position:"absolute",top:"50%",insetInlineStart:A.inputPaddingHorizontalBase,insetInlineEnd:A.inputPaddingHorizontalBase,transform:"translateY(-50%)",transition:`all ${A.motionDurationSlow}`}})}};function hS(A,e){const{componentCls:t}=A,n=e?`${t}-${e}`:"",o={[`${t}-multiple${n}`]:{fontSize:A.fontSize,[`${t}-selector`]:{[`${t}-show-search&`]:{cursor:"text"}},[`\n &${t}-show-arrow ${t}-selector,\n &${t}-allow-clear ${t}-selector\n `]:{paddingInlineEnd:A.calc(A.fontSizeIcon).add(A.controlPaddingHorizontal).equal()}}};return[fS(A,e),o]}const wS=A=>{const{componentCls:e}=A,t=Pf(A,{selectHeight:A.controlHeightSM,multipleSelectItemHeight:A.multipleItemHeightSM,borderRadius:A.borderRadiusSM,borderRadiusSM:A.borderRadiusXS}),n=Pf(A,{fontSize:A.fontSizeLG,selectHeight:A.controlHeightLG,multipleSelectItemHeight:A.multipleItemHeightLG,borderRadius:A.borderRadiusLG,borderRadiusSM:A.borderRadius});return[hS(A),hS(t,"sm"),{[`${e}-multiple${e}-sm`]:{[`${e}-selection-placeholder`]:{insetInline:A.calc(A.controlPaddingHorizontalSM).sub(A.lineWidth).equal()},[`${e}-selection-search`]:{marginInlineStart:2}}},hS(n,"lg")]};function DS(A,e){const{componentCls:t,inputPaddingHorizontalBase:n,borderRadius:o}=A,r=A.calc(A.controlHeight).sub(A.calc(A.lineWidth).mul(2)).equal(),i=e?`${t}-${e}`:"";return{[`${t}-single${i}`]:{fontSize:A.fontSize,height:A.controlHeight,[`${t}-selector`]:Object.assign(Object.assign({},Mf(A,!0)),{display:"flex",borderRadius:o,[`${t}-selection-search`]:{position:"absolute",top:0,insetInlineStart:n,insetInlineEnd:n,bottom:0,"&-input":{width:"100%",WebkitAppearance:"textfield"}},[`\n ${t}-selection-item,\n ${t}-selection-placeholder\n `]:{padding:0,lineHeight:UE(r),transition:`all ${A.motionDurationSlow}, visibility 0s`,alignSelf:"center"},[`${t}-selection-placeholder`]:{transition:"none",pointerEvents:"none"},[["&:after",`${t}-selection-item:empty:after`,`${t}-selection-placeholder:empty:after`].join(",")]:{display:"inline-block",width:0,visibility:"hidden",content:'"\\a0"'}}),[`\n &${t}-show-arrow ${t}-selection-item,\n &${t}-show-arrow ${t}-selection-placeholder\n `]:{paddingInlineEnd:A.showArrowPaddingInlineEnd},[`&${t}-open ${t}-selection-item`]:{color:A.colorTextPlaceholder},[`&:not(${t}-customize-input)`]:{[`${t}-selector`]:{width:"100%",height:"100%",padding:`0 ${UE(n)}`,[`${t}-selection-search-input`]:{height:r},"&:after":{lineHeight:UE(r)}}},[`&${t}-customize-input`]:{[`${t}-selector`]:{"&:after":{display:"none"},[`${t}-selection-search`]:{position:"static",width:"100%"},[`${t}-selection-placeholder`]:{position:"absolute",insetInlineStart:0,insetInlineEnd:0,padding:`0 ${UE(n)}`,"&:after":{display:"none"}}}}}}}function mS(A){const{componentCls:e}=A,t=A.calc(A.controlPaddingHorizontalSM).sub(A.lineWidth).equal();return[DS(A),DS(Pf(A,{controlHeight:A.controlHeightSM,borderRadius:A.borderRadiusSM}),"sm"),{[`${e}-single${e}-sm`]:{[`&:not(${e}-customize-input)`]:{[`${e}-selection-search`]:{insetInlineStart:t,insetInlineEnd:t},[`${e}-selector`]:{padding:`0 ${UE(t)}`},[`&${e}-show-arrow ${e}-selection-search`]:{insetInlineEnd:A.calc(t).add(A.calc(A.fontSize).mul(1.5)).equal()},[`\n &${e}-show-arrow ${e}-selection-item,\n &${e}-show-arrow ${e}-selection-placeholder\n `]:{paddingInlineEnd:A.calc(A.fontSize).mul(1.5).equal()}}}},DS(Pf(A,{controlHeight:A.singleItemHeightLG,fontSize:A.fontSizeLG,borderRadius:A.borderRadiusLG}),"lg")]}const yS=(A,e)=>{const{componentCls:t,antCls:n,controlOutlineWidth:o}=A;return{[`&:not(${t}-customize-input) ${t}-selector`]:{border:`${UE(A.lineWidth)} ${A.lineType} ${e.borderColor}`,background:A.selectorBg},[`&:not(${t}-disabled):not(${t}-customize-input):not(${n}-pagination-size-changer)`]:{[`&:hover ${t}-selector`]:{borderColor:e.hoverBorderHover},[`${t}-focused& ${t}-selector`]:{borderColor:e.activeBorderColor,boxShadow:`0 0 0 ${UE(o)} ${e.activeShadowColor}`,outline:0}}}},bS=(A,e)=>({[`&${A.componentCls}-status-${e.status}`]:Object.assign({},yS(A,e))}),vS=A=>({"&-outlined":Object.assign(Object.assign(Object.assign(Object.assign({},yS(A,{borderColor:A.colorBorder,hoverBorderHover:A.colorPrimaryHover,activeBorderColor:A.colorPrimary,activeShadowColor:A.controlOutline})),bS(A,{status:"error",borderColor:A.colorError,hoverBorderHover:A.colorErrorHover,activeBorderColor:A.colorError,activeShadowColor:A.colorErrorOutline})),bS(A,{status:"warning",borderColor:A.colorWarning,hoverBorderHover:A.colorWarningHover,activeBorderColor:A.colorWarning,activeShadowColor:A.colorWarningOutline})),{[`&${A.componentCls}-disabled`]:{[`&:not(${A.componentCls}-customize-input) ${A.componentCls}-selector`]:{background:A.colorBgContainerDisabled,color:A.colorTextDisabled}},[`&${A.componentCls}-multiple ${A.componentCls}-selection-item`]:{background:A.multipleItemBg,border:`${UE(A.lineWidth)} ${A.lineType} ${A.multipleItemBorderColor}`}})}),kS=(A,e)=>{const{componentCls:t,antCls:n}=A;return{[`&:not(${t}-customize-input) ${t}-selector`]:{background:e.bg,border:`${UE(A.lineWidth)} ${A.lineType} transparent`,color:e.color},[`&:not(${t}-disabled):not(${t}-customize-input):not(${n}-pagination-size-changer)`]:{[`&:hover ${t}-selector`]:{background:e.hoverBg},[`${t}-focused& ${t}-selector`]:{background:A.selectorBg,borderColor:e.activeBorderColor,outline:0}}}},MS=(A,e)=>({[`&${A.componentCls}-status-${e.status}`]:Object.assign({},kS(A,e))}),xS=A=>({"&-filled":Object.assign(Object.assign(Object.assign(Object.assign({},kS(A,{bg:A.colorFillTertiary,hoverBg:A.colorFillSecondary,activeBorderColor:A.colorPrimary,color:A.colorText})),MS(A,{status:"error",bg:A.colorErrorBg,hoverBg:A.colorErrorBgHover,activeBorderColor:A.colorError,color:A.colorError})),MS(A,{status:"warning",bg:A.colorWarningBg,hoverBg:A.colorWarningBgHover,activeBorderColor:A.colorWarning,color:A.colorWarning})),{[`&${A.componentCls}-disabled`]:{[`&:not(${A.componentCls}-customize-input) ${A.componentCls}-selector`]:{borderColor:A.colorBorder,background:A.colorBgContainerDisabled,color:A.colorTextDisabled}},[`&${A.componentCls}-multiple ${A.componentCls}-selection-item`]:{background:A.colorBgContainer,border:`${UE(A.lineWidth)} ${A.lineType} ${A.colorSplit}`}})}),SS=A=>({"&-borderless":{[`${A.componentCls}-selector`]:{background:"transparent",borderColor:"transparent"},[`&${A.componentCls}-disabled`]:{[`&:not(${A.componentCls}-customize-input) ${A.componentCls}-selector`]:{color:A.colorTextDisabled}},[`&${A.componentCls}-multiple ${A.componentCls}-selection-item`]:{background:A.multipleItemBg,border:`${UE(A.lineWidth)} ${A.lineType} ${A.multipleItemBorderColor}`}}}),FS=A=>({[A.componentCls]:Object.assign(Object.assign(Object.assign({},vS(A)),xS(A)),SS(A))}),NS=A=>{const{componentCls:e}=A;return{position:"relative",transition:`all ${A.motionDurationMid} ${A.motionEaseInOut}`,input:{cursor:"pointer"},[`${e}-show-search&`]:{cursor:"text",input:{cursor:"auto",color:"inherit",height:"100%"}},[`${e}-disabled&`]:{cursor:"not-allowed",input:{cursor:"not-allowed"}}}},RS=A=>{const{componentCls:e}=A;return{[`${e}-selection-search-input`]:{margin:0,padding:0,background:"transparent",border:"none",outline:"none",appearance:"none",fontFamily:"inherit","&::-webkit-search-cancel-button":{display:"none","-webkit-appearance":"none"}}}},LS=A=>{const{antCls:e,componentCls:t,inputPaddingHorizontalBase:n,iconCls:o}=A;return{[t]:Object.assign(Object.assign({},Mf(A)),{position:"relative",display:"inline-block",cursor:"pointer",[`&:not(${t}-customize-input) ${t}-selector`]:Object.assign(Object.assign({},NS(A)),RS(A)),[`${t}-selection-item`]:Object.assign(Object.assign({flex:1,fontWeight:"normal",position:"relative",userSelect:"none"},kf),{[`> ${e}-typography`]:{display:"inline"}}),[`${t}-selection-placeholder`]:Object.assign(Object.assign({},kf),{flex:1,color:A.colorTextPlaceholder,pointerEvents:"none"}),[`${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"}}),{position:"absolute",top:"50%",insetInlineStart:"auto",insetInlineEnd:n,height:A.fontSizeIcon,marginTop:A.calc(A.fontSizeIcon).mul(-1).div(2).equal(),color:A.colorTextQuaternary,fontSize:A.fontSizeIcon,lineHeight:1,textAlign:"center",pointerEvents:"none",display:"flex",alignItems:"center",transition:`opacity ${A.motionDurationSlow} ease`,[o]:{verticalAlign:"top",transition:`transform ${A.motionDurationSlow}`,"> svg":{verticalAlign:"top"},[`&:not(${t}-suffix)`]:{pointerEvents:"auto"}},[`${t}-disabled &`]:{cursor:"not-allowed"},"> *:not(:last-child)":{marginInlineEnd:8}}),[`${t}-clear`]:{position:"absolute",top:"50%",insetInlineStart:"auto",insetInlineEnd:n,zIndex:1,display:"inline-block",width:A.fontSizeIcon,height:A.fontSizeIcon,marginTop:A.calc(A.fontSizeIcon).mul(-1).div(2).equal(),color:A.colorTextQuaternary,fontSize:A.fontSizeIcon,fontStyle:"normal",lineHeight:1,textAlign:"center",textTransform:"none",cursor:"pointer",opacity:0,transition:`color ${A.motionDurationMid} ease, opacity ${A.motionDurationSlow} ease`,textRendering:"auto","&:before":{display:"block"},"&:hover":{color:A.colorTextTertiary}},"&:hover":{[`${t}-clear`]:{opacity:1},[`${t}-arrow:not(:last-child)`]:{opacity:0}}}),[`${t}-has-feedback`]:{[`${t}-clear`]:{insetInlineEnd:A.calc(n).add(A.fontSize).add(A.paddingXS).equal()}}}},PS=A=>{const{componentCls:e}=A;return[{[e]:{[`&${e}-in-form-item`]:{width:"100%"}}},LS(A),mS(A),wS(A),IS(A),{[`${e}-rtl`]:{direction:"rtl"}},cy(A,{borderElCls:`${e}-selector`,focusElCls:`${e}-focused`})]},HS=jf("Select",((A,e)=>{let{rootPrefixCls:t}=e;const n=Pf(A,{rootPrefixCls:t,inputPaddingHorizontalBase:A.calc(A.paddingSM).sub(1).equal(),multipleSelectItemHeight:A.multipleItemHeight,selectHeight:A.controlHeight});return[PS(n),FS(n)]}),(A=>{const{fontSize:e,lineHeight:t,lineWidth:n,controlHeight:o,controlHeightSM:r,controlHeightLG:i,paddingXXS:a,controlPaddingHorizontal:s,zIndexPopupBase:l,colorText:g,fontWeightStrong:c,controlItemBgActive:u,controlItemBgHover:B,colorBgContainer:Q,colorFillSecondary:E,colorBgContainerDisabled:C,colorTextDisabled:d}=A,I=2*a,p=2*n,f=Math.min(o-I,o-p),h=Math.min(r-I,r-p),w=Math.min(i-I,i-p);return{INTERNAL_FIXED_ITEM_MARGIN:Math.floor(a/2),zIndexPopup:l+50,optionSelectedColor:g,optionSelectedFontWeight:c,optionSelectedBg:u,optionActiveBg:B,optionPadding:`${(o-e*t)/2}px ${s}px`,optionFontSize:e,optionLineHeight:t,optionHeight:o,selectorBg:Q,clearBg:Q,singleItemHeightLG:i,multipleItemBg:E,multipleItemBorderColor:"transparent",multipleItemHeight:f,multipleItemHeightSM:h,multipleItemHeightLG:w,multipleSelectorBgDisabled:C,multipleItemColorDisabled:d,multipleItemBorderColorDisabled:"transparent",showArrowPaddingInlineEnd:Math.ceil(1.25*A.fontSize)}}),{unitless:{optionLineHeight:!0,optionSelectedFontWeight:!0}});var GS={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"},OS=function(A,e){return J.createElement(Cw,BQ({},A,{ref:e,icon:GS}))},US=J.forwardRef(OS),KS={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"},YS=function(A,e){return J.createElement(Cw,BQ({},A,{ref:e,icon:KS}))},TS=J.forwardRef(YS),JS={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"},jS=function(A,e){return J.createElement(Cw,BQ({},A,{ref:e,icon:JS}))},qS=J.forwardRef(jS);const $S="SECRET_COMBOBOX_MODE_DO_NOT_USE",zS=(A,e)=>{var t;const{prefixCls:n,bordered:o,className:r,rootClassName:i,getPopupContainer:a,popupClassName:s,dropdownClassName:l,listHeight:g=256,placement:c,listItemHeight:u,size:B,disabled:Q,notFoundContent:E,status:C,builtinPlacements:d,dropdownMatchSelectWidth:I,popupMatchSelectWidth:p,direction:f,style:h,allowClear:w,variant:D,dropdownStyle:m,transitionName:y,tagRender:b,maxCount:v}=A,k=function(A,e){var t={};for(var n in A)Object.prototype.hasOwnProperty.call(A,n)&&e.indexOf(n)<0&&(t[n]=A[n]);if(null!=A&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(n=Object.getOwnPropertySymbols(A);o{const{mode:e}=A;if("combobox"!==e)return e===$S?"combobox":e}),[A.mode]),V="multiple"===X||"tags"===X,Z=function(A,e){return void 0!==e?e:null!==A}(A.suffixIcon,A.showArrow),AA=null!==(t=null!=p?p:I)&&void 0!==t?t:R,{status:eA,hasFeedback:tA,isFormItemInput:nA,feedbackIcon:oA}=J.useContext(gv),rA=rS(eA,C);let iA;iA=void 0!==E?E:"combobox"===X?null:(null==S?void 0:S("Select"))||J.createElement(BS,{componentName:"Select"});const{suffixIcon:aA,itemIcon:sA,removeIcon:lA,clearIcon:gA}=function(A){let{suffixIcon:e,clearIcon:t,menuItemSelectedIcon:n,removeIcon:o,loading:r,multiple:i,hasFeedback:a,prefixCls:s,showSuffixIcon:l,feedbackIcon:g,showArrow:c,componentName:u}=A;const B=null!=t?t:J.createElement(hw,null),Q=A=>null!==e||a||c?J.createElement(J.Fragment,null,!1!==l&&A,a&&g):null;let E=null;if(void 0!==e)E=Q(e);else if(r)E=Q(J.createElement(ID,{spin:!0}));else{const A=`${s}-suffix`;E=e=>{let{open:t,showSearch:n}=e;return Q(t&&n?J.createElement(qS,{className:A}):J.createElement(TS,{className:A}))}}let C=null;C=void 0!==n?n:i?J.createElement(US,null):null;let d=null;return d=void 0!==o?o:J.createElement(mw,null),{clearIcon:B,suffixIcon:E,itemIcon:C,removeIcon:d}}(Object.assign(Object.assign({},k),{multiple:V,hasFeedback:tA,feedbackIcon:oA,showSuffixIcon:Z,prefixCls:O,componentName:"Select"})),cA=!0===w?{clearIcon:gA}:w,uA=wI(k,["suffixIcon","itemIcon"]),BA=ud(s||l,{[`${O}-dropdown-${K}`]:"rtl"===K},i,_,$,W),QA=Cm((A=>{var e;return null!==(e=null!=B?B:Y)&&void 0!==e?e:A})),EA=J.useContext(Af),CA=null!=Q?Q:EA,dA=ud({[`${O}-lg`]:"large"===QA,[`${O}-sm`]:"small"===QA,[`${O}-rtl`]:"rtl"===K,[`${O}-${j}`]:q,[`${O}-in-form-item`]:nA},oS(O,rA,tA),T,null==P?void 0:P.className,r,i,_,$,W),IA=J.useMemo((()=>void 0!==c?c:"rtl"===K?"bottomRight":"bottomLeft"),[c,K]),[pA]=mD("SelectLike",null==m?void 0:m.zIndex);return z(J.createElement(nS,Object.assign({ref:e,virtual:N,showSearch:null==P?void 0:P.showSearch},uA,{style:Object.assign(Object.assign({},null==P?void 0:P.style),h),dropdownMatchSelectWidth:AA,transitionName:rm(U,"slide-up",y),builtinPlacements:CS(d,L),listHeight:g,listItemHeight:G,mode:X,prefixCls:O,placement:IA,direction:K,suffixIcon:aA,menuItemSelectedIcon:sA,removeIcon:lA,allowClear:cA,notFoundContent:iA,className:dA,getPopupContainer:a||M,dropdownClassName:BA,disabled:CA,dropdownStyle:Object.assign(Object.assign({},m),{zIndex:pA}),maxCount:V?v:void 0,tagRender:V?b:void 0})))},WS=J.forwardRef(zS),_S=(XS=WS,aM((A=>{const{prefixCls:e,style:t}=A,n=J.useRef(null),[o,r]=J.useState(0),[i,a]=J.useState(0),[s,l]=vf(!1,{value:A.open}),{getPrefixCls:g}=J.useContext(Xp),c=g("select",e);J.useEffect((()=>{if(l(!0),"undefined"!=typeof ResizeObserver){const A=new ResizeObserver((A=>{const e=A[0].target;r(e.offsetHeight+8),a(e.offsetWidth)})),e=setInterval((()=>{var t;const o=`.${c}-dropdown`,r=null===(t=n.current)||void 0===t?void 0:t.querySelector(o);r&&(clearInterval(e),A.observe(r))}),10);return()=>{clearInterval(e),A.disconnect()}}}),[]);let u=Object.assign(Object.assign({},A),{style:Object.assign(Object.assign({},t),{margin:0}),open:s,visible:s,getPopupContainer:()=>n.current});const B={paddingBottom:o,position:"relative",minWidth:i};return J.createElement("div",{ref:n,style:B},J.createElement(XS,Object.assign({},u)))})));var XS;WS.SECRET_COMBOBOX_MODE_DO_NOT_USE=$S,WS.Option=Dx,WS.OptGroup=wx,WS._InternalPanelDoNotUseOrYouWillBeFired=_S;const VS=["xxl","xl","lg","md","sm","xs"],ZS=A=>({xs:`(max-width: ${A.screenXSMax}px)`,sm:`(min-width: ${A.screenSM}px)`,md:`(min-width: ${A.screenMD}px)`,lg:`(min-width: ${A.screenLG}px)`,xl:`(min-width: ${A.screenXL}px)`,xxl:`(min-width: ${A.screenXXL}px)`}),AF=A=>{const e=A,t=[].concat(VS).reverse();return t.forEach(((A,n)=>{const o=A.toUpperCase(),r=`screen${o}Min`,i=`screen${o}`;if(!(e[r]<=e[i]))throw new Error(`${r}<=${i} fails : !(${e[r]}<=${e[i]})`);if(n{const A=new Map;let t=-1,n={};return{matchHandlers:{},dispatch:e=>(n=e,A.forEach((A=>A(n))),A.size>=1),subscribe(e){return A.size||this.register(),t+=1,A.set(t,e),e(n),t},unsubscribe(e){A.delete(e),A.size||this.unregister()},unregister(){Object.keys(e).forEach((A=>{const t=e[A],n=this.matchHandlers[t];null==n||n.mql.removeListener(null==n?void 0:n.listener)})),A.clear()},register(){Object.keys(e).forEach((A=>{const t=e[A],o=e=>{let{matches:t}=e;this.dispatch(Object.assign(Object.assign({},n),{[A]:t}))},r=window.matchMedia(t);r.addListener(o),this.matchHandlers[t]={mql:r,listener:o},o(r)}))},responsiveMap:e}}),[A])}function tF(){let A=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];const e=J.useRef({}),t=function(){const[,A]=J.useReducer((A=>A+1),0);return A}(),n=eF();return qE((()=>{const o=n.subscribe((n=>{e.current=n,A&&t()}));return()=>n.unsubscribe(o)}),[]),e.current}const nF=J.createContext({}),oF=A=>{const{antCls:e,componentCls:t,iconCls:n,avatarBg:o,avatarColor:r,containerSize:i,containerSizeLG:a,containerSizeSM:s,textFontSize:l,textFontSizeLG:g,textFontSizeSM:c,borderRadius:u,borderRadiusLG:B,borderRadiusSM:Q,lineWidth:E,lineType:C}=A,d=(A,e,o)=>({width:A,height:A,borderRadius:"50%",[`&${t}-square`]:{borderRadius:o},[`&${t}-icon`]:{fontSize:e,[`> ${n}`]:{margin:0}}});return{[t]:Object.assign(Object.assign(Object.assign(Object.assign({},Mf(A)),{position:"relative",display:"inline-flex",justifyContent:"center",alignItems:"center",overflow:"hidden",color:r,whiteSpace:"nowrap",textAlign:"center",verticalAlign:"middle",background:o,border:`${UE(E)} ${C} transparent`,"&-image":{background:"transparent"},[`${e}-image-img`]:{display:"block"}}),d(i,l,u)),{"&-lg":Object.assign({},d(a,g,B)),"&-sm":Object.assign({},d(s,c,Q)),"> img":{display:"block",width:"100%",height:"100%",objectFit:"cover"}})}},rF=A=>{const{componentCls:e,groupBorderColor:t,groupOverlapping:n,groupSpace:o}=A;return{[`${e}-group`]:{display:"inline-flex",[`${e}`]:{borderColor:t},"> *:not(:first-child)":{marginInlineStart:n}},[`${e}-group-popover`]:{[`${e} + ${e}`]:{marginInlineStart:o}}}},iF=jf("Avatar",(A=>{const{colorTextLightSolid:e,colorTextPlaceholder:t}=A,n=Pf(A,{avatarBg:t,avatarColor:e});return[oF(n),rF(n)]}),(A=>{const{controlHeight:e,controlHeightLG:t,controlHeightSM:n,fontSize:o,fontSizeLG:r,fontSizeXL:i,fontSizeHeading3:a,marginXS:s,marginXXS:l,colorBorderBg:g}=A;return{containerSize:e,containerSizeLG:t,containerSizeSM:n,textFontSize:Math.round((r+i)/2),textFontSizeLG:a,textFontSizeSM:o,groupSpace:l,groupOverlapping:-s,groupBorderColor:g}}));const aF=(A,e)=>{const[t,n]=J.useState(1),[o,r]=J.useState(!1),[i,a]=J.useState(!0),s=J.useRef(null),l=J.useRef(null),g=Pd(e,s),{getPrefixCls:c,avatar:u}=J.useContext(Xp),B=J.useContext(nF),Q=()=>{if(!l.current||!s.current)return;const e=l.current.offsetWidth,t=s.current.offsetWidth;if(0!==e&&0!==t){const{gap:o=4}=A;2*o{r(!0)}),[]),J.useEffect((()=>{a(!0),n(1)}),[A.src]),J.useEffect(Q,[A.gap]);const E=()=>{const{onError:e}=A;!1!==(null==e?void 0:e())&&a(!1)},{prefixCls:C,shape:d,size:I,src:p,srcSet:f,icon:h,className:w,rootClassName:D,alt:m,draggable:y,children:b,crossOrigin:v}=A,k=function(A,e){var t={};for(var n in A)Object.prototype.hasOwnProperty.call(A,n)&&e.indexOf(n)<0&&(t[n]=A[n]);if(null!=A&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(n=Object.getOwnPropertySymbols(A);o{var e,t;return null!==(t=null!==(e=null!=I?I:null==B?void 0:B.size)&&void 0!==e?e:A)&&void 0!==t?t:"default"})),x=tF(Object.keys("object"==typeof M&&M||{}).some((A=>["xs","sm","md","lg","xl","xxl"].includes(A)))),S=J.useMemo((()=>{if("object"!=typeof M)return{};const A=VS.find((A=>x[A])),e=M[A];return e?{width:e,height:e,fontSize:e&&(h||b)?e/2:18}:{}}),[x,M]),F=c("avatar",C),N=oD(F),[R,L,P]=iF(F,N),H=ud({[`${F}-lg`]:"large"===M,[`${F}-sm`]:"small"===M}),G=J.isValidElement(p),O=d||(null==B?void 0:B.shape)||"circle",U=ud(F,H,null==u?void 0:u.className,`${F}-${O}`,{[`${F}-image`]:G||p&&i,[`${F}-icon`]:!!h},P,N,w,D,L),K="number"==typeof M?{width:M,height:M,fontSize:h?M/2:18}:{};let Y;if("string"==typeof p&&i)Y=J.createElement("img",{src:p,draggable:y,srcSet:f,onError:E,alt:m,crossOrigin:v});else if(G)Y=p;else if(h)Y=h;else if(o||1!==t){const A=`scale(${t})`,e={msTransform:A,WebkitTransform:A,transform:A};Y=J.createElement(hI,{onResize:Q},J.createElement("span",{className:`${F}-string`,ref:l,style:Object.assign({},e)},b))}else Y=J.createElement("span",{className:`${F}-string`,style:{opacity:0},ref:l},b);return delete k.onError,delete k.gap,R(J.createElement("span",Object.assign({},k,{style:Object.assign(Object.assign(Object.assign(Object.assign({},K),S),null==u?void 0:u.style),k.style),className:U,ref:g}),Y))},sF=J.forwardRef(aF),lF=A=>A?"function"==typeof A?A():A:null;function gF(A){var e=A.children,t=A.prefixCls,n=A.id,o=A.overlayInnerStyle,r=A.className,i=A.style;return J.createElement("div",{className:ud("".concat(t,"-content"),r),style:i},J.createElement("div",{className:"".concat(t,"-inner"),id:n,role:"tooltip",style:o},"function"==typeof e?e():e))}var cF={shiftX:64,adjustY:1},uF={adjustX:1,shiftY:!0},BF=[0,0],QF={left:{points:["cr","cl"],overflow:uF,offset:[-4,0],targetOffset:BF},right:{points:["cl","cr"],overflow:uF,offset:[4,0],targetOffset:BF},top:{points:["bc","tc"],overflow:cF,offset:[0,-4],targetOffset:BF},bottom:{points:["tc","bc"],overflow:cF,offset:[0,4],targetOffset:BF},topLeft:{points:["bl","tl"],overflow:cF,offset:[0,-4],targetOffset:BF},leftTop:{points:["tr","tl"],overflow:uF,offset:[-4,0],targetOffset:BF},topRight:{points:["br","tr"],overflow:cF,offset:[0,-4],targetOffset:BF},rightTop:{points:["tl","tr"],overflow:uF,offset:[4,0],targetOffset:BF},bottomRight:{points:["tr","br"],overflow:cF,offset:[0,4],targetOffset:BF},rightBottom:{points:["bl","br"],overflow:uF,offset:[4,0],targetOffset:BF},bottomLeft:{points:["tl","bl"],overflow:cF,offset:[0,4],targetOffset:BF},leftBottom:{points:["br","bl"],overflow:uF,offset:[-4,0],targetOffset:BF}},EF=["overlayClassName","trigger","mouseEnterDelay","mouseLeaveDelay","overlayStyle","prefixCls","children","onVisibleChange","afterVisibleChange","transitionName","animation","motion","placement","align","destroyTooltipOnHide","defaultVisible","getTooltipContainer","overlayInnerStyle","arrowContent","overlay","id","showArrow"],CF=function(A,e){var t=A.overlayClassName,n=A.trigger,o=void 0===n?["hover"]:n,r=A.mouseEnterDelay,i=void 0===r?0:r,a=A.mouseLeaveDelay,s=void 0===a?.1:a,l=A.overlayStyle,g=A.prefixCls,c=void 0===g?"rc-tooltip":g,u=A.children,B=A.onVisibleChange,Q=A.afterVisibleChange,E=A.transitionName,C=A.animation,d=A.motion,I=A.placement,p=void 0===I?"right":I,f=A.align,h=void 0===f?{}:f,w=A.destroyTooltipOnHide,D=void 0!==w&&w,m=A.defaultVisible,y=A.getTooltipContainer,b=A.overlayInnerStyle;A.arrowContent;var v=A.overlay,k=A.id,M=A.showArrow,x=void 0===M||M,S=Mc(A,EF),F=J.useRef(null);J.useImperativeHandle(e,(function(){return F.current}));var N=kc({},S);"visible"in A&&(N.popupVisible=A.visible);return J.createElement(sx,BQ({popupClassName:t,prefixCls:c,popup:function(){return J.createElement(gF,{key:"content",prefixCls:c,id:k,overlayInnerStyle:b},v)},action:o,builtinPlacements:QF,popupPlacement:p,ref:F,popupAlign:h,getPopupContainer:y,onPopupVisibleChange:B,afterPopupVisibleChange:Q,popupTransitionName:E,popupAnimation:C,popupMotion:d,defaultPopupVisible:m,autoDestroy:D,mouseLeaveDelay:s,popupStyle:l,mouseEnterDelay:i,arrow:x},N),u)};const dF=J.forwardRef(CF);function IF(A){const{sizePopupArrow:e,borderRadiusXS:t,borderRadiusOuter:n}=A,o=e/2,r=o,i=1*n/Math.sqrt(2),a=o-n*(1-1/Math.sqrt(2)),s=o-t*(1/Math.sqrt(2)),l=n*(Math.sqrt(2)-1)+t*(1/Math.sqrt(2)),g=2*o-s,c=l,u=2*o-i,B=a,Q=2*o-0,E=r,C=o*Math.sqrt(2)+n*(Math.sqrt(2)-2),d=n*(Math.sqrt(2)-1);return{arrowShadowWidth:C,arrowPath:`path('M 0 ${r} A ${n} ${n} 0 0 0 ${i} ${a} L ${s} ${l} A ${t} ${t} 0 0 1 ${g} ${c} L ${u} ${B} A ${n} ${n} 0 0 0 ${Q} ${E} Z')`,arrowPolygon:`polygon(${d}px 100%, 50% ${d}px, ${2*o-d}px 100%, ${d}px 100%)`}}const pF=(A,e,t)=>{const{sizePopupArrow:n,arrowPolygon:o,arrowPath:r,arrowShadowWidth:i,borderRadiusXS:a,calc:s}=A;return{pointerEvents:"none",width:n,height:n,overflow:"hidden","&::before":{position:"absolute",bottom:0,insetInlineStart:0,width:n,height:s(n).div(2).equal(),background:e,clipPath:{_multi_value_:!0,value:[o,r]},content:'""'},"&::after":{content:'""',position:"absolute",width:i,height:i,bottom:0,insetInline:0,margin:"auto",borderRadius:{_skip_check_:!0,value:`0 0 ${UE(a)} 0`},transform:"translateY(50%) rotate(-135deg)",boxShadow:t,zIndex:0,background:"transparent"}}},fF=8;function hF(A){const{contentRadius:e,limitVerticalRadius:t}=A,n=e>12?e+2:12;return{arrowOffsetHorizontal:n,arrowOffsetVertical:t?fF:n}}function wF(A,e){return A?e:{}}function DF(A,e,t){const{componentCls:n,boxShadowPopoverArrow:o,arrowOffsetVertical:r,arrowOffsetHorizontal:i}=A,{arrowDistance:a=0,arrowPlacement:s={left:!0,right:!0,top:!0,bottom:!0}}={};return{[n]:Object.assign(Object.assign(Object.assign(Object.assign({[`${n}-arrow`]:[Object.assign(Object.assign({position:"absolute",zIndex:1,display:"block"},pF(A,e,o)),{"&:before":{background:e}})]},wF(!!s.top,{[[`&-placement-top > ${n}-arrow`,`&-placement-topLeft > ${n}-arrow`,`&-placement-topRight > ${n}-arrow`].join(",")]:{bottom:a,transform:"translateY(100%) rotate(180deg)"},[`&-placement-top > ${n}-arrow`]:{left:{_skip_check_:!0,value:"50%"},transform:"translateX(-50%) translateY(100%) rotate(180deg)"},[`&-placement-topLeft > ${n}-arrow`]:{left:{_skip_check_:!0,value:i}},[`&-placement-topRight > ${n}-arrow`]:{right:{_skip_check_:!0,value:i}}})),wF(!!s.bottom,{[[`&-placement-bottom > ${n}-arrow`,`&-placement-bottomLeft > ${n}-arrow`,`&-placement-bottomRight > ${n}-arrow`].join(",")]:{top:a,transform:"translateY(-100%)"},[`&-placement-bottom > ${n}-arrow`]:{left:{_skip_check_:!0,value:"50%"},transform:"translateX(-50%) translateY(-100%)"},[`&-placement-bottomLeft > ${n}-arrow`]:{left:{_skip_check_:!0,value:i}},[`&-placement-bottomRight > ${n}-arrow`]:{right:{_skip_check_:!0,value:i}}})),wF(!!s.left,{[[`&-placement-left > ${n}-arrow`,`&-placement-leftTop > ${n}-arrow`,`&-placement-leftBottom > ${n}-arrow`].join(",")]:{right:{_skip_check_:!0,value:a},transform:"translateX(100%) rotate(90deg)"},[`&-placement-left > ${n}-arrow`]:{top:{_skip_check_:!0,value:"50%"},transform:"translateY(-50%) translateX(100%) rotate(90deg)"},[`&-placement-leftTop > ${n}-arrow`]:{top:r},[`&-placement-leftBottom > ${n}-arrow`]:{bottom:r}})),wF(!!s.right,{[[`&-placement-right > ${n}-arrow`,`&-placement-rightTop > ${n}-arrow`,`&-placement-rightBottom > ${n}-arrow`].join(",")]:{left:{_skip_check_:!0,value:a},transform:"translateX(-100%) rotate(-90deg)"},[`&-placement-right > ${n}-arrow`]:{top:{_skip_check_:!0,value:"50%"},transform:"translateY(-50%) translateX(-100%) rotate(-90deg)"},[`&-placement-rightTop > ${n}-arrow`]:{top:r},[`&-placement-rightBottom > ${n}-arrow`]:{bottom:r}}))}}const mF={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"]}},yF={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"]}},bF=new Set(["topLeft","topRight","bottomLeft","bottomRight","leftTop","leftBottom","rightTop","rightBottom"]);function vF(A){const{arrowWidth:e,autoAdjustOverflow:t,arrowPointAtCenter:n,offset:o,borderRadius:r,visibleFirst:i}=A,a=e/2,s={};return Object.keys(mF).forEach((A=>{const l=n&&yF[A]||mF[A],g=Object.assign(Object.assign({},l),{offset:[0,0],dynamicInset:!0});switch(s[A]=g,bF.has(A)&&(g.autoArrow=!1),A){case"top":case"topLeft":case"topRight":g.offset[1]=-a-o;break;case"bottom":case"bottomLeft":case"bottomRight":g.offset[1]=a+o;break;case"left":case"leftTop":case"leftBottom":g.offset[0]=-a-o;break;case"right":case"rightTop":case"rightBottom":g.offset[0]=a+o}const c=hF({contentRadius:r,limitVerticalRadius:!0});if(n)switch(A){case"topLeft":case"bottomLeft":g.offset[0]=-c.arrowOffsetHorizontal-a;break;case"topRight":case"bottomRight":g.offset[0]=c.arrowOffsetHorizontal+a;break;case"leftTop":case"rightTop":g.offset[1]=-c.arrowOffsetHorizontal-a;break;case"leftBottom":case"rightBottom":g.offset[1]=c.arrowOffsetHorizontal+a}g.overflow=function(A,e,t,n){if(!1===n)return{adjustX:!1,adjustY:!1};const o=n&&"object"==typeof n?n:{},r={};switch(A){case"top":case"bottom":r.shiftX=2*e.arrowOffsetHorizontal+t,r.shiftY=!0,r.adjustY=!0;break;case"left":case"right":r.shiftY=2*e.arrowOffsetVertical+t,r.shiftX=!0,r.adjustX=!0}const i=Object.assign(Object.assign({},r),o);return i.shiftX||(i.adjustX=!0),i.shiftY||(i.adjustY=!0),i}(A,c,e,t),i&&(g.htmlRegion="visibleFirst")})),s}const kF=A=>{const{componentCls:e,tooltipMaxWidth:t,tooltipColor:n,tooltipBg:o,tooltipBorderRadius:r,zIndexPopup:i,controlHeight:a,boxShadowSecondary:s,paddingSM:l,paddingXS:g}=A;return[{[e]:Object.assign(Object.assign(Object.assign(Object.assign({},Mf(A)),{position:"absolute",zIndex:i,display:"block",width:"max-content",maxWidth:t,visibility:"visible",transformOrigin:"var(--arrow-x, 50%) var(--arrow-y, 50%)","&-hidden":{display:"none"},"--antd-arrow-background-color":o,[`${e}-inner`]:{minWidth:a,minHeight:a,padding:`${UE(A.calc(l).div(2).equal())} ${UE(g)}`,color:n,textAlign:"start",textDecoration:"none",wordWrap:"break-word",backgroundColor:o,borderRadius:r,boxShadow:s,boxSizing:"border-box"},[["&-placement-left","&-placement-leftTop","&-placement-leftBottom","&-placement-right","&-placement-rightTop","&-placement-rightBottom"].join(",")]:{[`${e}-inner`]:{borderRadius:A.min(r,fF)}},[`${e}-content`]:{position:"relative"}}),qf(A,((A,t)=>{let{darkColor:n}=t;return{[`&${e}-${A}`]:{[`${e}-inner`]:{backgroundColor:n},[`${e}-arrow`]:{"--antd-arrow-background-color":n}}}}))),{"&-rtl":{direction:"rtl"}})},DF(A,"var(--antd-arrow-background-color)"),{[`${e}-pure`]:{position:"relative",maxWidth:"none",margin:A.sizePopupArrow}}]},MF=A=>Object.assign(Object.assign({zIndexPopup:A.zIndexPopupBase+70},hF({contentRadius:A.borderRadius,limitVerticalRadius:!0})),IF(Pf(A,{borderRadiusOuter:Math.min(A.borderRadiusOuter,4)}))),xF=function(A){return jf("Tooltip",(A=>{const{borderRadius:e,colorTextLightSolid:t,colorBgSpotlight:n}=A,o=Pf(A,{tooltipMaxWidth:250,tooltipColor:t,tooltipBorderRadius:e,tooltipBg:n});return[kF(o),ok(A,"zoom-big-fast")]}),MF,{resetStyle:!1,injectStyle:!(arguments.length>1&&void 0!==arguments[1])||arguments[1]})(A)},SF=of.map((A=>`${A}-inverse`)),FF=["success","processing","error","default","warning"];function NF(A){return!(arguments.length>1&&void 0!==arguments[1])||arguments[1]?[].concat(XQ(SF),XQ(of)).includes(A):of.includes(A)}function RF(A,e){const t=NF(e),n=ud({[`${A}-${e}`]:e&&t}),o={},r={};return e&&!t&&(o.background=e,r["--antd-arrow-background-color"]=e),{className:n,overlayStyle:o,arrowStyle:r}}const LF=J.forwardRef(((A,e)=>{var t,n;const{prefixCls:o,openClassName:r,getTooltipContainer:i,overlayClassName:a,color:s,overlayInnerStyle:l,children:g,afterOpenChange:c,afterVisibleChange:u,destroyTooltipOnHide:B,arrow:Q=!0,title:E,overlay:C,builtinPlacements:d,arrowPointAtCenter:I=!1,autoAdjustOverflow:p=!0}=A,f=!!Q,[,h]=Cf(),{getPopupContainer:w,getPrefixCls:D,direction:m}=J.useContext(Xp),y=OI(),b=J.useRef(null),v=()=>{var A;null===(A=b.current)||void 0===A||A.forceAlign()};J.useImperativeHandle(e,(()=>({forceAlign:v,forcePopupAlign:()=>{y.deprecated(!1,"forcePopupAlign","forceAlign"),v()}})));const[k,M]=vf(!1,{value:null!==(t=A.open)&&void 0!==t?t:A.visible,defaultValue:null!==(n=A.defaultOpen)&&void 0!==n?n:A.defaultVisible}),x=!E&&!C&&0!==E,S=J.useMemo((()=>{var A,e;let t=I;return"object"==typeof Q&&(t=null!==(e=null!==(A=Q.pointAtCenter)&&void 0!==A?A:Q.arrowPointAtCenter)&&void 0!==e?e:I),d||vF({arrowPointAtCenter:t,autoAdjustOverflow:p,arrowWidth:f?h.sizePopupArrow:0,borderRadius:h.borderRadius,offset:h.marginXXS,visibleFirst:!0})}),[I,Q,d,h]),F=J.useMemo((()=>0===E?E:C||E||""),[C,E]),N=J.createElement(mm,null,"function"==typeof F?F():F),{getPopupContainer:R,placement:L="top",mouseEnterDelay:P=.1,mouseLeaveDelay:H=.1,overlayStyle:G,rootClassName:O}=A,U=function(A,e){var t={};for(var n in A)Object.prototype.hasOwnProperty.call(A,n)&&e.indexOf(n)<0&&(t[n]=A[n]);if(null!=A&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(n=Object.getOwnPropertySymbols(A);o{var t,n;M(!x&&e),x||(null===(t=A.onOpenChange)||void 0===t||t.call(A,e),null===(n=A.onVisibleChange)||void 0===n||n.call(A,e))},afterVisibleChange:null!=c?c:u,overlayInnerStyle:AA,arrowContent:J.createElement("span",{className:`${K}-arrow-content`}),motion:{motionName:rm(Y,"zoom-big-fast",A.transitionName),motionDeadline:1e3},destroyTooltipOnHide:!!B}),j?Gw(q,{className:z}):q);return W(J.createElement(pD.Provider,{value:nA},oA))})),PF=LF;PF._InternalPanelDoNotUseOrYouWillBeFired=A=>{const{prefixCls:e,className:t,placement:n="top",title:o,color:r,overlayInnerStyle:i}=A,{getPrefixCls:a}=J.useContext(Xp),s=a("tooltip",e),[l,g,c]=xF(s),u=RF(s,r),B=u.arrowStyle,Q=Object.assign(Object.assign({},i),u.overlayStyle),E=ud(g,c,s,`${s}-pure`,`${s}-placement-${n}`,t,u.className);return l(J.createElement("div",{className:E,style:B},J.createElement("div",{className:`${s}-arrow`}),J.createElement(gF,Object.assign({},A,{className:g,prefixCls:s,overlayInnerStyle:Q}),o)))};const HF=A=>{const{componentCls:e,popoverColor:t,titleMinWidth:n,fontWeightStrong:o,innerPadding:r,boxShadowSecondary:i,colorTextHeading:a,borderRadiusLG:s,zIndexPopup:l,titleMarginBottom:g,colorBgElevated:c,popoverBg:u,titleBorderBottom:B,innerContentPadding:Q,titlePadding:E}=A;return[{[e]:Object.assign(Object.assign({},Mf(A)),{position:"absolute",top:0,left:{_skip_check_:!0,value:0},zIndex:l,fontWeight:"normal",whiteSpace:"normal",textAlign:"start",cursor:"auto",userSelect:"text",transformOrigin:"var(--arrow-x, 50%) var(--arrow-y, 50%)","--antd-arrow-background-color":c,width:"max-content",maxWidth:"100vw","&-rtl":{direction:"rtl"},"&-hidden":{display:"none"},[`${e}-content`]:{position:"relative"},[`${e}-inner`]:{backgroundColor:u,backgroundClip:"padding-box",borderRadius:s,boxShadow:i,padding:r},[`${e}-title`]:{minWidth:n,marginBottom:g,color:a,fontWeight:o,borderBottom:B,padding:E},[`${e}-inner-content`]:{color:t,padding:Q}})},DF(A,"var(--antd-arrow-background-color)"),{[`${e}-pure`]:{position:"relative",maxWidth:"none",margin:A.sizePopupArrow,display:"inline-block",[`${e}-content`]:{display:"inline-block"}}}]},GF=A=>{const{componentCls:e}=A;return{[e]:of.map((t=>{const n=A[`${t}6`];return{[`&${e}-${t}`]:{"--antd-arrow-background-color":n,[`${e}-inner`]:{backgroundColor:n},[`${e}-arrow`]:{background:"transparent"}}}}))}},OF=jf("Popover",(A=>{const{colorBgElevated:e,colorText:t}=A,n=Pf(A,{popoverBg:e,popoverColor:t});return[HF(n),GF(n),ok(n,"zoom-big")]}),(A=>{const{lineWidth:e,controlHeight:t,fontHeight:n,padding:o,wireframe:r,zIndexPopupBase:i,borderRadiusLG:a,marginXS:s,lineType:l,colorSplit:g,paddingSM:c}=A,u=t-n,B=u/2,Q=u/2-e,E=o;return Object.assign(Object.assign(Object.assign({titleMinWidth:177,zIndexPopup:i+30},IF(A)),hF({contentRadius:a,limitVerticalRadius:!0})),{innerPadding:r?0:12,titleMarginBottom:r?0:s,titlePadding:r?`${B}px ${E}px ${Q}px`:0,titleBorderBottom:r?`${e}px ${l} ${g}`:"none",innerContentPadding:r?`${c}px ${E}px`:0})}),{resetStyle:!1,deprecatedTokens:[["width","titleMinWidth"],["minWidth","titleMinWidth"]]});const UF=A=>{const{hashId:e,prefixCls:t,className:n,style:o,placement:r="top",title:i,content:a,children:s}=A;return J.createElement("div",{className:ud(e,t,`${t}-pure`,`${t}-placement-${r}`,n),style:o},J.createElement("div",{className:`${t}-arrow`}),J.createElement(gF,Object.assign({},A,{className:e,prefixCls:t}),s||((A,e,t)=>e||t?J.createElement(J.Fragment,null,e&&J.createElement("div",{className:`${A}-title`},lF(e)),J.createElement("div",{className:`${A}-inner-content`},lF(t))):null)(t,i,a)))},KF=A=>{const{prefixCls:e,className:t}=A,n=function(A,e){var t={};for(var n in A)Object.prototype.hasOwnProperty.call(A,n)&&e.indexOf(n)<0&&(t[n]=A[n]);if(null!=A&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(n=Object.getOwnPropertySymbols(A);o{let{title:e,content:t,prefixCls:n}=A;return J.createElement(J.Fragment,null,e&&J.createElement("div",{className:`${n}-title`},lF(e)),J.createElement("div",{className:`${n}-inner-content`},lF(t)))},TF=J.forwardRef(((A,e)=>{var t,n;const{prefixCls:o,title:r,content:i,overlayClassName:a,placement:s="top",trigger:l="hover",children:g,mouseEnterDelay:c=.1,mouseLeaveDelay:u=.1,onOpenChange:B,overlayStyle:Q={}}=A,E=function(A,e){var t={};for(var n in A)Object.prototype.hasOwnProperty.call(A,n)&&e.indexOf(n)<0&&(t[n]=A[n]);if(null!=A&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(n=Object.getOwnPropertySymbols(A);o{m(A,!0),null==B||B(A,e)};return I(J.createElement(PF,Object.assign({placement:s,trigger:l,mouseEnterDelay:c,mouseLeaveDelay:u,overlayStyle:Q},E,{prefixCls:d,overlayClassName:w,ref:e,open:D,onOpenChange:A=>{y(A)},overlay:r||i?J.createElement(YF,{prefixCls:d,title:r,content:i}):null,transitionName:rm(h,"zoom-big",E.transitionName),"data-popover-inject":!0}),Gw(g,{onKeyDown:A=>{var e,t;J.isValidElement(g)&&(null===(t=null==g?void 0:(e=g.props).onKeyDown)||void 0===t||t.call(e,A)),(A=>{A.keyCode===rD.ESC&&y(!1,A)})(A)}})))})),JF=TF;JF._InternalPanelDoNotUseOrYouWillBeFired=KF;const jF=A=>{const{size:e,shape:t}=J.useContext(nF),n=J.useMemo((()=>({size:A.size||e,shape:A.shape||t})),[A.size,A.shape,e,t]);return J.createElement(nF.Provider,{value:n},A.children)},qF=sF;qF.Group=A=>{const{getPrefixCls:e,direction:t}=J.useContext(Xp),{prefixCls:n,className:o,rootClassName:r,style:i,maxCount:a,maxStyle:s,size:l,shape:g,maxPopoverPlacement:c="top",maxPopoverTrigger:u="hover",children:B}=A,Q=e("avatar",n),E=`${Q}-group`,C=oD(Q),[d,I,p]=iF(Q,C),f=ud(E,{[`${E}-rtl`]:"rtl"===t},p,C,o,r,I),h=Fd(B).map(((A,e)=>Gw(A,{key:`avatar-key-${e}`}))),w=h.length;if(a&&a1&&void 0!==arguments[1]&&arguments[1];if(im(A)){var t=A.nodeName.toLowerCase(),n=["input","select","textarea","button"].includes(t)||A.isContentEditable||"a"===t&&!!A.getAttribute("href"),o=A.getAttribute("tabindex"),r=Number(o),i=null;return o&&!Number.isNaN(r)?i=r:n&&null===i&&(i=0),n&&A.disabled&&(i=null),null!==i&&(i>=0||e&&i<0)}return!1}var pN=rD.LEFT,fN=rD.RIGHT,hN=rD.UP,wN=rD.DOWN,DN=rD.ENTER,mN=rD.ESC,yN=rD.HOME,bN=rD.END,vN=[hN,wN,pN,fN];function kN(A,e){var t=function(A){var e=arguments.length>1&&void 0!==arguments[1]&&arguments[1],t=XQ(A.querySelectorAll("*")).filter((function(A){return IN(A,e)}));return IN(A,e)&&t.unshift(A),t}(A,!0);return t.filter((function(A){return e.has(A)}))}function MN(A,e,t){var n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:1;if(!A)return null;var o=kN(A,e),r=o.length,i=o.findIndex((function(A){return t===A}));return n<0?-1===i?i=r-1:i-=1:n>0&&(i+=1),o[i=(i+r)%r]}var xN=function(A,e){var t=new Set,n=new Map,o=new Map;return A.forEach((function(A){var r=document.querySelector("[data-menu-id='".concat(iN(e,A),"']"));r&&(t.add(r),o.set(r,A),n.set(A,r))})),{elements:t,key2element:n,element2key:o}};function SN(A,e,t,n,o,r,i,a,s,l){var g=J.useRef(),c=J.useRef();c.current=e;var u=function(){kI.cancel(g.current)};return J.useEffect((function(){return function(){u()}}),[]),function(B){var Q=B.which;if([].concat(vN,[DN,mN,yN,bN]).includes(Q)){var E=r(),C=xN(E,n),d=C,I=d.elements,p=d.key2element,f=d.element2key,h=function(A,e){for(var t=A||document.activeElement;t;){if(e.has(t))return t;t=t.parentElement}return null}(p.get(e),I),w=f.get(h),D=function(A,e,t,n){var o,r="prev",i="next",a="children",s="parent";if("inline"===A&&n===DN)return{inlineTrigger:!0};var l=bc(bc({},hN,r),wN,i),g=bc(bc(bc(bc({},pN,t?i:r),fN,t?r:i),wN,a),DN,a),c=bc(bc(bc(bc(bc(bc({},hN,r),wN,i),DN,a),mN,s),pN,t?a:s),fN,t?s:a);switch(null===(o={inline:l,horizontal:g,vertical:c,inlineSub:l,horizontalSub:c,verticalSub:c}["".concat(A).concat(e?"":"Sub")])||void 0===o?void 0:o[n]){case r:return{offset:-1,sibling:!0};case i:return{offset:1,sibling:!0};case s:return{offset:-1,sibling:!1};case a:return{offset:1,sibling:!1};default:return null}}(A,1===i(w,!0).length,t,Q);if(!D&&Q!==yN&&Q!==bN)return;(vN.includes(Q)||[yN,bN].includes(Q))&&B.preventDefault();var m=function(A){if(A){var e=A,t=A.querySelector("a");null!=t&&t.getAttribute("href")&&(e=t);var n=f.get(A);a(n),u(),g.current=kI((function(){c.current===n&&e.focus()}))}};if([yN,bN].includes(Q)||D.sibling||!h){var y,b,v=kN(y=h&&"inline"!==A?function(A){for(var e=A;e;){if(e.getAttribute("data-menu-list"))return e;e=e.parentElement}return null}(h):o.current,I);b=Q===yN?v[0]:Q===bN?v[v.length-1]:MN(y,I,h,D.offset),m(b)}else if(D.inlineTrigger)s(w);else if(D.offset>0)s(w,!0),u(),g.current=kI((function(){C=xN(E,n);var A=h.getAttribute("aria-controls"),e=MN(document.getElementById(A),C.elements);m(e)}),5);else if(D.offset<0){var k=i(w,!0),M=k[k.length-2],x=p.get(M);s(M,!1),m(x)}}null==l||l(B)}}var FN="__RC_UTIL_PATH_SPLIT__",NN=function(A){return A.join(FN)},RN="rc-menu-more";function LN(){var A=WQ(J.useState({}),2)[1],e=J.useRef(new Map),t=J.useRef(new Map),n=WQ(J.useState([]),2),o=n[0],r=n[1],i=J.useRef(0),a=J.useRef(!1),s=J.useCallback((function(n,o){var r=NN(o);t.current.set(r,n),e.current.set(n,r),i.current+=1;var s,l=i.current;s=function(){l===i.current&&(a.current||A({}))},Promise.resolve().then(s)}),[]),l=J.useCallback((function(A,n){var o=NN(n);t.current.delete(o),e.current.delete(A)}),[]),g=J.useCallback((function(A){r(A)}),[]),c=J.useCallback((function(A,t){var n=e.current.get(A)||"",r=n.split(FN);return t&&o.includes(r[0])&&r.unshift(RN),r}),[o]),u=J.useCallback((function(A,e){return A.some((function(A){return c(A,!0).includes(e)}))}),[c]),B=J.useCallback((function(A){var n="".concat(e.current.get(A)).concat(FN),o=new Set;return XQ(t.current.keys()).forEach((function(A){A.startsWith(n)&&o.add(t.current.get(A))})),o}),[]);return J.useEffect((function(){return function(){a.current=!0}}),[]),{registerPath:s,unregisterPath:l,refreshOverflowKeys:g,isSubPathKey:u,getKeyPath:c,getKeys:function(){var A=XQ(e.current.keys());return o.length&&A.push(RN),A},getSubPathKeys:B}}function PN(A){var e=J.useRef(A);e.current=A;var t=J.useCallback((function(){for(var A,t=arguments.length,n=new Array(t),o=0;o1&&(d.motionAppear=!1);var I=d.onVisibleChanged;return d.onVisibleChanged=function(A){return u.current||A||E(!0),null==I?void 0:I(A)},Q?null:J.createElement(gN,{mode:r,locked:!u.current},J.createElement(Nh,BQ({visible:C},d,{forceRender:s,removeOnLeave:!1,leavedClassName:"".concat(a,"-hidden")}),(function(A){var t=A.className,n=A.style;return J.createElement(ZN,{id:e,className:t,style:n},o)})))}var sR=["style","className","title","eventKey","warnKey","disabled","internalPopupClose","children","itemIcon","expandIcon","popupClassName","popupOffset","popupStyle","onClick","onMouseEnter","onMouseLeave","onTitleClick","onTitleMouseEnter","onTitleMouseLeave"],lR=["active"],gR=function(A){var e=A.style,t=A.className,n=A.title,o=A.eventKey;A.warnKey;var r=A.disabled,i=A.internalPopupClose,a=A.children,s=A.itemIcon,l=A.expandIcon,g=A.popupClassName,c=A.popupOffset,u=A.popupStyle,B=A.onClick,Q=A.onMouseEnter,E=A.onMouseLeave,C=A.onTitleClick,d=A.onTitleMouseEnter,I=A.onTitleMouseLeave,p=Mc(A,sR),f=aN(o),h=J.useContext(lN),w=h.prefixCls,D=h.mode,m=h.openKeys,y=h.disabled,b=h.overflowDisabled,v=h.activeKey,k=h.selectedKeys,M=h.itemIcon,x=h.expandIcon,S=h.onItemClick,F=h.onOpenChange,N=h.onActive,R=J.useContext(dN)._internalRenderSubMenuItem,L=J.useContext(CN).isSubPathKey,P=EN(),H="".concat(w,"-submenu"),G=y||r,O=J.useRef(),U=J.useRef(),K=null!=s?s:M,Y=null!=l?l:x,T=m.includes(o),j=!b&&T,q=L(k,o),$=ON(o,G,d,I),z=$.active,W=Mc($,lR),_=WQ(J.useState(!1),2),X=_[0],V=_[1],Z=function(A){G||V(A)},AA=J.useMemo((function(){return z||"inline"!==D&&(X||L([v],o))}),[D,z,v,X,o,L]),eA=UN(P.length),tA=PN((function(A){null==B||B(TN(A)),S(A)})),nA=f&&"".concat(f,"-popup"),oA=J.createElement("div",BQ({role:"menuitem",style:eA,className:"".concat(H,"-title"),tabIndex:G?null:-1,ref:O,title:"string"==typeof n?n:null,"data-menu-id":b&&f?null:f,"aria-expanded":j,"aria-haspopup":!0,"aria-controls":nA,"aria-disabled":G,onClick:function(A){G||(null==C||C({key:o,domEvent:A}),"inline"===D&&F(o,!T))},onFocus:function(){N(o)}},W),n,J.createElement(KN,{icon:"horizontal"!==D?Y:void 0,props:kc(kc({},A),{},{isOpen:j,isSubMenu:!0})},J.createElement("i",{className:"".concat(H,"-arrow")}))),rA=J.useRef(D);if("inline"!==D&&P.length>1?rA.current="vertical":rA.current=D,!b){var iA=rA.current;oA=J.createElement(iR,{mode:iA,prefixCls:H,visible:!i&&j&&"inline"!==D,popupClassName:g,popupOffset:c,popupStyle:u,popup:J.createElement(gN,{mode:"horizontal"===iA?"vertical":iA},J.createElement(ZN,{id:nA,ref:U},a)),disabled:G,onVisibleChange:function(A){"inline"!==D&&F(o,A)}},oA)}var aA=J.createElement(MM.Item,BQ({role:"none"},p,{component:"li",style:e,className:ud(H,"".concat(H,"-").concat(D),t,bc(bc(bc(bc({},"".concat(H,"-open"),j),"".concat(H,"-active"),AA),"".concat(H,"-selected"),q),"".concat(H,"-disabled"),G)),onMouseEnter:function(A){Z(!0),null==Q||Q({key:o,domEvent:A})},onMouseLeave:function(A){Z(!1),null==E||E({key:o,domEvent:A})}}),oA,!b&&J.createElement(aR,{id:nA,open:j,keyPath:P},a));return R&&(aA=R(aA,A,{selected:q,active:AA,open:j,disabled:G})),J.createElement(gN,{onItemClick:tA,mode:"horizontal"===D?"vertical":D,itemIcon:K,expandIcon:Y},aA)};function cR(A){var e,t=A.eventKey,n=A.children,o=EN(t),r=AR(n,o),i=BN();return J.useEffect((function(){if(i)return i.registerPath(t,o),function(){i.unregisterPath(t,o)}}),[o]),e=i?r:J.createElement(gR,A,r),J.createElement(QN.Provider,{value:o},e)}var uR=["className","title","eventKey","children"],BR=["children"],QR=function(A){var e=A.className,t=A.title;A.eventKey;var n=A.children,o=Mc(A,uR),r=J.useContext(lN).prefixCls,i="".concat(r,"-item-group");return J.createElement("li",BQ({role:"presentation"},o,{onClick:function(A){return A.stopPropagation()},className:ud(i,e)}),J.createElement("div",{role:"presentation",className:"".concat(i,"-title"),title:"string"==typeof t?t:void 0},t),J.createElement("ul",{role:"group",className:"".concat(i,"-list")},n))};function ER(A){var e=A.children,t=Mc(A,BR),n=AR(e,EN(t.eventKey));return BN()?n:J.createElement(QR,wI(t,["warnKey"]),n)}function CR(A){var e=A.className,t=A.style,n=J.useContext(lN).prefixCls;return BN()?null:J.createElement("li",{role:"separator",className:ud("".concat(n,"-item-divider"),e),style:t})}var dR=["label","children","key","type"];function IR(A){return(A||[]).map((function(A,e){if(A&&"object"===mc(A)){var t=A,n=t.label,o=t.children,r=t.key,i=t.type,a=Mc(t,dR),s=null!=r?r:"tmp-".concat(e);return o||"group"===i?"group"===i?J.createElement(ER,BQ({key:s},a,{title:n}),IR(o)):J.createElement(cR,BQ({key:s},a,{title:n}),IR(o)):"divider"===i?J.createElement(CR,BQ({key:s},a)):J.createElement(_N,BQ({key:s},a),n)}return null})).filter((function(A){return A}))}function pR(A,e,t){var n=A;return e&&(n=IR(e)),AR(n,t)}var fR=["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"],hR=[],wR=J.forwardRef((function(A,e){var t,n=A,o=n.prefixCls,r=void 0===o?"rc-menu":o,i=n.rootClassName,a=n.style,s=n.className,l=n.tabIndex,g=void 0===l?0:l,c=n.items,u=n.children,B=n.direction,Q=n.id,E=n.mode,C=void 0===E?"vertical":E,d=n.inlineCollapsed,I=n.disabled,p=n.disabledOverflow,f=n.subMenuOpenDelay,h=void 0===f?.1:f,w=n.subMenuCloseDelay,D=void 0===w?.1:w,m=n.forceSubMenuRender,y=n.defaultOpenKeys,b=n.openKeys,v=n.activeKey,k=n.defaultActiveFirst,M=n.selectable,x=void 0===M||M,S=n.multiple,F=void 0!==S&&S,N=n.defaultSelectedKeys,R=n.selectedKeys,L=n.onSelect,P=n.onDeselect,H=n.inlineIndent,G=void 0===H?24:H,O=n.motion,U=n.defaultMotions,K=n.triggerSubMenuAction,Y=void 0===K?"hover":K,T=n.builtinPlacements,j=n.itemIcon,q=n.expandIcon,$=n.overflowedIndicator,z=void 0===$?"...":$,W=n.overflowedIndicatorPopupClassName,_=n.getPopupContainer,X=n.onClick,V=n.onOpenChange,Z=n.onKeyDown;n.openAnimation,n.openTransitionName;var AA=n._internalRenderMenuItem,eA=n._internalRenderSubMenuItem,tA=Mc(n,fR),nA=J.useMemo((function(){return pR(u,c,hR)}),[u,c]),oA=WQ(J.useState(!1),2),rA=oA[0],iA=oA[1],aA=J.useRef(),sA=function(A){var e=WQ(vf(A,{value:A}),2),t=e[0],n=e[1];return J.useEffect((function(){GN+=1;var A="".concat(HN,"-").concat(GN);n("rc-menu-uuid-".concat(A))}),[]),t}(Q),lA="rtl"===B,gA=WQ(vf(y,{value:b,postState:function(A){return A||hR}}),2),cA=gA[0],uA=gA[1],BA=function(A){function e(){uA(A),null==V||V(A)}arguments.length>1&&void 0!==arguments[1]&&arguments[1]?pc.flushSync(e):e()},QA=WQ(J.useState(cA),2),EA=QA[0],CA=QA[1],dA=J.useRef(!1),IA=WQ(J.useMemo((function(){return"inline"!==C&&"vertical"!==C||!d?[C,!1]:["vertical",d]}),[C,d]),2),pA=IA[0],fA=IA[1],hA="inline"===pA,wA=WQ(J.useState(pA),2),DA=wA[0],mA=wA[1],yA=WQ(J.useState(fA),2),bA=yA[0],vA=yA[1];J.useEffect((function(){mA(pA),vA(fA),dA.current&&(hA?uA(EA):BA(hR))}),[pA,fA]);var kA=WQ(J.useState(0),2),MA=kA[0],xA=kA[1],SA=MA>=nA.length-1||"horizontal"!==DA||p;J.useEffect((function(){hA&&CA(cA)}),[cA]),J.useEffect((function(){return dA.current=!0,function(){dA.current=!1}}),[]);var FA=LN(),NA=FA.registerPath,RA=FA.unregisterPath,LA=FA.refreshOverflowKeys,PA=FA.isSubPathKey,HA=FA.getKeyPath,GA=FA.getKeys,OA=FA.getSubPathKeys,UA=J.useMemo((function(){return{registerPath:NA,unregisterPath:RA}}),[NA,RA]),KA=J.useMemo((function(){return{isSubPathKey:PA}}),[PA]);J.useEffect((function(){LA(SA?hR:nA.slice(MA+1).map((function(A){return A.key})))}),[MA,SA]);var YA=WQ(vf(v||k&&(null===(t=nA[0])||void 0===t?void 0:t.key),{value:v}),2),TA=YA[0],JA=YA[1],jA=PN((function(A){JA(A)})),qA=PN((function(){JA(void 0)}));J.useImperativeHandle(e,(function(){return{list:aA.current,focus:function(A){var e,t,n=GA(),o=xN(n,sA),r=o.elements,i=o.key2element,a=o.element2key,s=kN(aA.current,r),l=null!=TA?TA:s[0]?a.get(s[0]):null===(e=nA.find((function(A){return!A.props.disabled})))||void 0===e?void 0:e.key,g=i.get(l);l&&g&&(null==g||null===(t=g.focus)||void 0===t||t.call(g,A))}}}));var $A=WQ(vf(N||[],{value:R,postState:function(A){return Array.isArray(A)?A:null==A?hR:[A]}}),2),zA=$A[0],WA=$A[1],_A=PN((function(A){null==X||X(TN(A)),function(A){if(x){var e,t=A.key,n=zA.includes(t);e=F?n?zA.filter((function(A){return A!==t})):[].concat(XQ(zA),[t]):[t],WA(e);var o=kc(kc({},A),{},{selectedKeys:e});n?null==P||P(o):null==L||L(o)}!F&&cA.length&&"inline"!==DA&&BA(hR)}(A)})),XA=PN((function(A,e){var t=cA.filter((function(e){return e!==A}));if(e)t.push(A);else if("inline"!==DA){var n=OA(A);t=t.filter((function(A){return!n.has(A)}))}IE(cA,t,!0)||BA(t,!0)})),VA=SN(DA,TA,lA,sA,aA,GA,HA,JA,(function(A,e){var t=null!=e?e:!cA.includes(A);XA(A,t)}),Z);J.useEffect((function(){iA(!0)}),[]);var ZA=J.useMemo((function(){return{_internalRenderMenuItem:AA,_internalRenderSubMenuItem:eA}}),[AA,eA]),Ae="horizontal"!==DA||p?nA:nA.map((function(A,e){return J.createElement(gN,{key:A.key,overflowDisabled:e>MA},A)})),ee=J.createElement(MM,BQ({id:Q,ref:aA,prefixCls:"".concat(r,"-overflow"),component:"ul",itemComponent:_N,className:ud(r,"".concat(r,"-root"),"".concat(r,"-").concat(DA),s,bc(bc({},"".concat(r,"-inline-collapsed"),bA),"".concat(r,"-rtl"),lA),i),dir:B,style:a,role:"menu",tabIndex:g,data:Ae,renderRawItem:function(A){return A},renderRawRest:function(A){var e=A.length,t=e?nA.slice(-e):null;return J.createElement(cR,{eventKey:RN,title:z,disabled:SA,internalPopupClose:0===e,popupClassName:W},t)},maxCount:"horizontal"!==DA||p?MM.INVALIDATE:MM.RESPONSIVE,ssr:"full","data-menu-list":!0,onVisibleChange:function(A){xA(A)},onKeyDown:VA},tA));return J.createElement(dN.Provider,{value:ZA},J.createElement(rN.Provider,{value:sA},J.createElement(gN,{prefixCls:r,rootClassName:i,mode:DA,openKeys:cA,rtl:lA,disabled:I,motion:rA?O:null,defaultMotions:rA?U:null,activeKey:TA,onActive:jA,onInactive:qA,selectedKeys:zA,inlineIndent:G,subMenuOpenDelay:h,subMenuCloseDelay:D,forceSubMenuRender:m,builtinPlacements:T,triggerSubMenuAction:Y,getPopupContainer:_,itemIcon:j,expandIcon:q,onItemClick:_A,onOpenChange:XA},J.createElement(CN.Provider,{value:KA},ee),J.createElement("div",{style:{display:"none"},"aria-hidden":!0},J.createElement(uN.Provider,{value:UA},nA)))))}));wR.Item=_N,wR.SubMenu=cR,wR.ItemGroup=ER,wR.Divider=CR;const DR=J.createContext({});var mR={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"},yR=function(A,e){return J.createElement(Cw,BQ({},A,{ref:e,icon:mR}))},bR=J.forwardRef(yR);const vR=A=>{const{prefixCls:e,className:t,dashed:n}=A,o=function(A,e){var t={};for(var n in A)Object.prototype.hasOwnProperty.call(A,n)&&e.indexOf(n)<0&&(t[n]=A[n]);if(null!=A&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(n=Object.getOwnPropertySymbols(A);o{var e;const{className:t,children:n,icon:o,title:r,danger:i}=A,{prefixCls:a,firstLevel:s,direction:l,disableMenuItemTitleTooltip:g,inlineCollapsed:c}=J.useContext(kR),{siderCollapsed:u}=J.useContext(DR);let B=r;void 0===r?B=s?n:"":!1===r&&(B="");const Q={title:B};u||c||(Q.title=null,Q.open=!1);const E=Fd(n).length;let C=J.createElement(_N,Object.assign({},wI(A,["title","icon","danger"]),{className:ud({[`${a}-item-danger`]:i,[`${a}-item-only-child`]:1===(o?E+1:E)},t),title:"string"==typeof r?r:void 0}),Gw(o,{className:ud(J.isValidElement(o)?null===(e=o.props)||void 0===e?void 0:e.className:"",`${a}-item-icon`)}),(A=>{const e=J.createElement("span",{className:`${a}-title-content`},n);return(!o||J.isValidElement(n)&&"span"===n.type)&&n&&A&&s&&"string"==typeof n?J.createElement("div",{className:`${a}-inline-collapsed-noicon`},n.charAt(0)):e})(c));return g||(C=J.createElement(PF,Object.assign({},Q,{placement:"rtl"===l?"left":"right",overlayClassName:`${a}-inline-collapsed-tooltip`}),C)),C},xR=A=>{var e;const{popupClassName:t,icon:n,title:o,theme:r}=A,i=J.useContext(kR),{prefixCls:a,inlineCollapsed:s,theme:l}=i,g=EN();let c;if(n){const A=J.isValidElement(o)&&"span"===o.type;c=J.createElement(J.Fragment,null,Gw(n,{className:ud(J.isValidElement(n)?null===(e=n.props)||void 0===e?void 0:e.className:"",`${a}-item-icon`)}),A?o:J.createElement("span",{className:`${a}-title-content`},o))}else c=s&&!g.length&&o&&"string"==typeof o?J.createElement("div",{className:`${a}-inline-collapsed-noicon`},o.charAt(0)):J.createElement("span",{className:`${a}-title-content`},o);const u=J.useMemo((()=>Object.assign(Object.assign({},i),{firstLevel:!1})),[i]),[B]=mD("Menu");return J.createElement(kR.Provider,{value:u},J.createElement(cR,Object.assign({},wI(A,["icon"]),{title:c,popupClassName:ud(a,t,`${a}-${r||l}`),popupStyle:{zIndex:B}})))};var SR=function(A,e){var t={};for(var n in A)Object.prototype.hasOwnProperty.call(A,n)&&e.indexOf(n)<0&&(t[n]=A[n]);if(null!=A&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(n=Object.getOwnPropertySymbols(A);o{if(A&&"object"==typeof A){const t=A,{label:n,children:o,key:r,type:i}=t,a=SR(t,["label","children","key","type"]),s=null!=r?r:`tmp-${e}`;return o||"group"===i?"group"===i?J.createElement(ER,Object.assign({key:s},a,{title:n}),FR(o)):J.createElement(xR,Object.assign({key:s},a,{title:n}),FR(o)):"divider"===i?J.createElement(vR,Object.assign({key:s},a)):J.createElement(MR,Object.assign({key:s},a),n)}return null})).filter((A=>A))}function NR(A){return J.useMemo((()=>A?FR(A):A),[A])}const RR=J.createContext(null),LR=A=>{const{componentCls:e,motionDurationSlow:t,horizontalLineHeight:n,colorSplit:o,lineWidth:r,lineType:i,itemPaddingInline:a}=A;return{[`${e}-horizontal`]:{lineHeight:n,border:0,borderBottom:`${UE(r)} ${i} ${o}`,boxShadow:"none","&::after":{display:"block",clear:"both",height:0,content:'"\\20"'},[`${e}-item, ${e}-submenu`]:{position:"relative",display:"inline-block",verticalAlign:"bottom",paddingInline:a},[`> ${e}-item:hover,\n > ${e}-item-active,\n > ${e}-submenu ${e}-submenu-title:hover`]:{backgroundColor:"transparent"},[`${e}-item, ${e}-submenu-title`]:{transition:[`border-color ${t}`,`background ${t}`].join(",")},[`${e}-submenu-arrow`]:{display:"none"}}}},PR=A=>{let{componentCls:e,menuArrowOffset:t,calc:n}=A;return{[`${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(${UE(n(t).mul(-1).equal())})`},"&::after":{transform:`rotate(45deg) translateY(${UE(t)})`}}}}},HR=A=>Object.assign({},Ff(A)),GR=(A,e)=>{const{componentCls:t,itemColor:n,itemSelectedColor:o,groupTitleColor:r,itemBg:i,subMenuItemBg:a,itemSelectedBg:s,activeBarHeight:l,activeBarWidth:g,activeBarBorderWidth:c,motionDurationSlow:u,motionEaseInOut:B,motionEaseOut:Q,itemPaddingInline:E,motionDurationMid:C,itemHoverColor:d,lineType:I,colorSplit:p,itemDisabledColor:f,dangerItemColor:h,dangerItemHoverColor:w,dangerItemSelectedColor:D,dangerItemActiveBg:m,dangerItemSelectedBg:y,popupBg:b,itemHoverBg:v,itemActiveBg:k,menuSubMenuBg:M,horizontalItemSelectedColor:x,horizontalItemSelectedBg:S,horizontalItemBorderRadius:F,horizontalItemHoverBg:N}=A;return{[`${t}-${e}, ${t}-${e} > ${t}`]:{color:n,background:i,[`&${t}-root:focus-visible`]:Object.assign({},HR(A)),[`${t}-item-group-title`]:{color:r},[`${t}-submenu-selected`]:{[`> ${t}-submenu-title`]:{color:o}},[`${t}-item, ${t}-submenu-title`]:{color:n,[`&:not(${t}-item-disabled):focus-visible`]:Object.assign({},HR(A))},[`${t}-item-disabled, ${t}-submenu-disabled`]:{color:`${f} !important`},[`${t}-item:not(${t}-item-selected):not(${t}-submenu-selected)`]:{[`&:hover, > ${t}-submenu-title:hover`]:{color:d}},[`&:not(${t}-horizontal)`]:{[`${t}-item:not(${t}-item-selected)`]:{"&:hover":{backgroundColor:v},"&:active":{backgroundColor:k}},[`${t}-submenu-title`]:{"&:hover":{backgroundColor:v},"&:active":{backgroundColor:k}}},[`${t}-item-danger`]:{color:h,[`&${t}-item:hover`]:{[`&:not(${t}-item-selected):not(${t}-submenu-selected)`]:{color:w}},[`&${t}-item:active`]:{background:m}},[`${t}-item a`]:{"&, &:hover":{color:"inherit"}},[`${t}-item-selected`]:{color:o,[`&${t}-item-danger`]:{color:D},"a, a:hover":{color:"inherit"}},[`& ${t}-item-selected`]:{backgroundColor:s,[`&${t}-item-danger`]:{backgroundColor:y}},[`&${t}-submenu > ${t}`]:{backgroundColor:M},[`&${t}-popup > ${t}`]:{backgroundColor:b},[`&${t}-submenu-popup > ${t}`]:{backgroundColor:b},[`&${t}-horizontal`]:Object.assign(Object.assign({},"dark"===e?{borderBottom:0}:{}),{[`> ${t}-item, > ${t}-submenu`]:{top:c,marginTop:A.calc(c).mul(-1).equal(),marginBottom:0,borderRadius:F,"&::after":{position:"absolute",insetInline:E,bottom:0,borderBottom:`${UE(l)} solid transparent`,transition:`border-color ${u} ${B}`,content:'""'},"&:hover, &-active, &-open":{background:N,"&::after":{borderBottomWidth:l,borderBottomColor:x}},"&-selected":{color:x,backgroundColor:S,"&:hover":{backgroundColor:S},"&::after":{borderBottomWidth:l,borderBottomColor:x}}}}),[`&${t}-root`]:{[`&${t}-inline, &${t}-vertical`]:{borderInlineEnd:`${UE(c)} ${I} ${p}`}},[`&${t}-inline`]:{[`${t}-sub${t}-inline`]:{background:a},[`${t}-item`]:{position:"relative","&::after":{position:"absolute",insetBlock:0,insetInlineEnd:0,borderInlineEnd:`${UE(g)} solid ${o}`,transform:"scaleY(0.0001)",opacity:0,transition:[`transform ${C} ${Q}`,`opacity ${C} ${Q}`].join(","),content:'""'},[`&${t}-item-danger`]:{"&::after":{borderInlineEndColor:D}}},[`${t}-selected, ${t}-item-selected`]:{"&::after":{transform:"scaleY(1)",opacity:1,transition:[`transform ${C} ${B}`,`opacity ${C} ${B}`].join(",")}}}}}},OR=A=>{const{componentCls:e,itemHeight:t,itemMarginInline:n,padding:o,menuArrowSize:r,marginXS:i,itemMarginBlock:a,itemWidth:s}=A,l=A.calc(r).add(o).add(i).equal();return{[`${e}-item`]:{position:"relative",overflow:"hidden"},[`${e}-item, ${e}-submenu-title`]:{height:t,lineHeight:UE(t),paddingInline:o,overflow:"hidden",textOverflow:"ellipsis",marginInline:n,marginBlock:a,width:s},[`> ${e}-item,\n > ${e}-submenu > ${e}-submenu-title`]:{height:t,lineHeight:UE(t)},[`${e}-item-group-list ${e}-submenu-title,\n ${e}-submenu-title`]:{paddingInlineEnd:l}}},UR=A=>{const{componentCls:e,iconCls:t,itemHeight:n,colorTextLightSolid:o,dropdownWidth:r,controlHeightLG:i,motionDurationMid:a,motionEaseOut:s,paddingXL:l,itemMarginInline:g,fontSizeLG:c,motionDurationSlow:u,paddingXS:B,boxShadowSecondary:Q,collapsedWidth:E,collapsedIconSize:C}=A,d={height:n,lineHeight:UE(n),listStylePosition:"inside",listStyleType:"disc"};return[{[e]:{"&-inline, &-vertical":Object.assign({[`&${e}-root`]:{boxShadow:"none"}},OR(A))},[`${e}-submenu-popup`]:{[`${e}-vertical`]:Object.assign(Object.assign({},OR(A)),{boxShadow:Q})}},{[`${e}-submenu-popup ${e}-vertical${e}-sub`]:{minWidth:r,maxHeight:`calc(100vh - ${UE(A.calc(i).mul(2.5).equal())})`,padding:"0",overflow:"hidden",borderInlineEnd:0,"&:not([class*='-active'])":{overflowX:"hidden",overflowY:"auto"}}},{[`${e}-inline`]:{width:"100%",[`&${e}-root`]:{[`${e}-item, ${e}-submenu-title`]:{display:"flex",alignItems:"center",transition:[`border-color ${u}`,`background ${u}`,`padding ${a} ${s}`,`padding-inline calc(50% - ${UE(A.calc(c).div(2).equal())} - ${UE(g)})`].join(","),[`> ${e}-title-content`]:{flex:"auto",minWidth:0,overflow:"hidden",textOverflow:"ellipsis"},"> *":{flex:"none"}}},[`${e}-sub${e}-inline`]:{padding:0,border:0,borderRadius:0,boxShadow:"none",[`& > ${e}-submenu > ${e}-submenu-title`]:d,[`& ${e}-item-group-title`]:{paddingInlineStart:l}},[`${e}-item`]:d}},{[`${e}-inline-collapsed`]:{width:E,[`&${e}-root`]:{[`${e}-item, ${e}-submenu ${e}-submenu-title`]:{[`> ${e}-inline-collapsed-noicon`]:{fontSize:c,textAlign:"center"}}},[`> ${e}-item,\n > ${e}-item-group > ${e}-item-group-list > ${e}-item,\n > ${e}-item-group > ${e}-item-group-list > ${e}-submenu > ${e}-submenu-title,\n > ${e}-submenu > ${e}-submenu-title`]:{insetInlineStart:0,paddingInline:`calc(50% - ${UE(A.calc(c).div(2).equal())} - ${UE(g)})`,textOverflow:"clip",[`\n ${e}-submenu-arrow,\n ${e}-submenu-expand-icon\n `]:{opacity:0},[`${e}-item-icon, ${t}`]:{margin:0,fontSize:C,lineHeight:UE(n),"+ span":{display:"inline-block",opacity:0}}},[`${e}-item-icon, ${t}`]:{display:"inline-block"},"&-tooltip":{pointerEvents:"none",[`${e}-item-icon, ${t}`]:{display:"none"},"a, a:hover":{color:o}},[`${e}-item-group-title`]:Object.assign(Object.assign({},kf),{paddingInline:B})}}]},KR=A=>{const{componentCls:e,motionDurationSlow:t,motionDurationMid:n,motionEaseInOut:o,motionEaseOut:r,iconCls:i,iconSize:a,iconMarginInlineEnd:s}=A;return{[`${e}-item, ${e}-submenu-title`]:{position:"relative",display:"block",margin:0,whiteSpace:"nowrap",cursor:"pointer",transition:[`border-color ${t}`,`background ${t}`,`padding ${t} ${o}`].join(","),[`${e}-item-icon, ${i}`]:{minWidth:a,fontSize:a,transition:[`font-size ${n} ${r}`,`margin ${t} ${o}`,`color ${t}`].join(","),"+ span":{marginInlineStart:s,opacity:1,transition:[`opacity ${t} ${o}`,`margin ${t}`,`color ${t}`].join(",")}},[`${e}-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"}}),[`&${e}-item-only-child`]:{[`> ${i}, > ${e}-item-icon`]:{marginInlineEnd:0}}},[`${e}-item-disabled, ${e}-submenu-disabled`]:{background:"none !important",cursor:"not-allowed","&::after":{borderColor:"transparent !important"},a:{color:"inherit !important"},[`> ${e}-submenu-title`]:{color:"inherit !important",cursor:"not-allowed"}}}},YR=A=>{const{componentCls:e,motionDurationSlow:t,motionEaseInOut:n,borderRadius:o,menuArrowSize:r,menuArrowOffset:i}=A;return{[`${e}-submenu`]:{"&-expand-icon, &-arrow":{position:"absolute",top:"50%",insetInlineEnd:A.margin,width:r,color:"currentcolor",transform:"translateY(-50%)",transition:`transform ${t} ${n}, opacity ${t}`},"&-arrow":{"&::before, &::after":{position:"absolute",width:A.calc(r).mul(.6).equal(),height:A.calc(r).mul(.15).equal(),backgroundColor:"currentcolor",borderRadius:o,transition:[`background ${t} ${n}`,`transform ${t} ${n}`,`top ${t} ${n}`,`color ${t} ${n}`].join(","),content:'""'},"&::before":{transform:`rotate(45deg) translateY(${UE(A.calc(i).mul(-1).equal())})`},"&::after":{transform:`rotate(-45deg) translateY(${UE(i)})`}}}}},TR=A=>{const{antCls:e,componentCls:t,fontSize:n,motionDurationSlow:o,motionDurationMid:r,motionEaseInOut:i,paddingXS:a,padding:s,colorSplit:l,lineWidth:g,zIndexPopup:c,borderRadiusLG:u,subMenuItemBorderRadius:B,menuArrowSize:Q,menuArrowOffset:E,lineType:C,groupTitleLineHeight:d,groupTitleFontSize:I}=A;return[{"":{[`${t}`]:Object.assign(Object.assign({},{"&::before":{display:"table",content:'""'},"&::after":{display:"table",clear:"both",content:'""'}}),{"&-hidden":{display:"none"}})},[`${t}-submenu-hidden`]:{display:"none"}},{[t]:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},Mf(A)),{"&::before":{display:"table",content:'""'},"&::after":{display:"table",clear:"both",content:'""'}}),{marginBottom:0,paddingInlineStart:0,fontSize:n,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",[`${t}-item`]:{flex:"none"}},[`${t}-item, ${t}-submenu, ${t}-submenu-title`]:{borderRadius:A.itemBorderRadius},[`${t}-item-group-title`]:{padding:`${UE(a)} ${UE(s)}`,fontSize:I,lineHeight:d,transition:`all ${o}`},[`&-horizontal ${t}-submenu`]:{transition:[`border-color ${o} ${i}`,`background ${o} ${i}`].join(",")},[`${t}-submenu, ${t}-submenu-inline`]:{transition:[`border-color ${o} ${i}`,`background ${o} ${i}`,`padding ${r} ${i}`].join(",")},[`${t}-submenu ${t}-sub`]:{cursor:"initial",transition:[`background ${o} ${i}`,`padding ${o} ${i}`].join(",")},[`${t}-title-content`]:{transition:`color ${o}`,[`> ${e}-typography-ellipsis-single-line`]:{display:"inline",verticalAlign:"unset"}},[`${t}-item a`]:{"&::before":{position:"absolute",inset:0,backgroundColor:"transparent",content:'""'}},[`${t}-item-divider`]:{overflow:"hidden",lineHeight:0,borderColor:l,borderStyle:C,borderWidth:0,borderTopWidth:g,marginBlock:g,padding:0,"&-dashed":{borderStyle:"dashed"}}}),KR(A)),{[`${t}-item-group`]:{[`${t}-item-group-list`]:{margin:0,padding:0,[`${t}-item, ${t}-submenu-title`]:{paddingInline:`${UE(A.calc(n).mul(2).equal())} ${UE(s)}`}}},"&-submenu":{"&-popup":{position:"absolute",zIndex:c,borderRadius:u,boxShadow:"none",transformOrigin:"0 0",[`&${t}-submenu`]:{background:"transparent"},"&::before":{position:"absolute",inset:0,zIndex:-1,width:"100%",height:"100%",opacity:0,content:'""'},[`> ${t}`]:Object.assign(Object.assign(Object.assign({borderRadius:u},KR(A)),YR(A)),{[`${t}-item, ${t}-submenu > ${t}-submenu-title`]:{borderRadius:B},[`${t}-submenu-title::after`]:{transition:`transform ${o} ${i}`}})},"\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:A.paddingXS},"\n &-placement-rightTop,\n &-placement-rightBottom\n ":{paddingInlineStart:A.paddingXS},"\n &-placement-topRight,\n &-placement-topLeft\n ":{paddingBottom:A.paddingXS},"\n &-placement-bottomRight,\n &-placement-bottomLeft\n ":{paddingTop:A.paddingXS}}}),YR(A)),{[`&-inline-collapsed ${t}-submenu-arrow,\n &-inline ${t}-submenu-arrow`]:{"&::before":{transform:`rotate(-45deg) translateX(${UE(E)})`},"&::after":{transform:`rotate(45deg) translateX(${UE(A.calc(E).mul(-1).equal())})`}},[`${t}-submenu-open${t}-submenu-inline > ${t}-submenu-title > ${t}-submenu-arrow`]:{transform:`translateY(${UE(A.calc(Q).mul(.2).mul(-1).equal())})`,"&::after":{transform:`rotate(-45deg) translateX(${UE(A.calc(E).mul(-1).equal())})`},"&::before":{transform:`rotate(45deg) translateX(${UE(E)})`}}})},{[`${e}-layout-header`]:{[t]:{lineHeight:"inherit"}}}]},JR=A=>{var e,t,n;const{colorPrimary:o,colorError:r,colorTextDisabled:i,colorErrorBg:a,colorText:s,colorTextDescription:l,colorBgContainer:g,colorFillAlter:c,colorFillContent:u,lineWidth:B,lineWidthBold:Q,controlItemBgActive:E,colorBgTextHover:C,controlHeightLG:d,lineHeight:I,colorBgElevated:p,marginXXS:f,padding:h,fontSize:w,controlHeightSM:D,fontSizeLG:m,colorTextLightSolid:y,colorErrorHover:b}=A,v=null!==(e=A.activeBarWidth)&&void 0!==e?e:0,k=null!==(t=A.activeBarBorderWidth)&&void 0!==t?t:B,M=null!==(n=A.itemMarginInline)&&void 0!==n?n:A.marginXXS,x=new Cp(y).setAlpha(.65).toRgbString();return{dropdownWidth:160,zIndexPopup:A.zIndexPopupBase+50,radiusItem:A.borderRadiusLG,itemBorderRadius:A.borderRadiusLG,radiusSubMenuItem:A.borderRadiusSM,subMenuItemBorderRadius:A.borderRadiusSM,colorItemText:s,itemColor:s,colorItemTextHover:s,itemHoverColor:s,colorItemTextHoverHorizontal:o,horizontalItemHoverColor:o,colorGroupTitle:l,groupTitleColor:l,colorItemTextSelected:o,itemSelectedColor:o,colorItemTextSelectedHorizontal:o,horizontalItemSelectedColor:o,colorItemBg:g,itemBg:g,colorItemBgHover:C,itemHoverBg:C,colorItemBgActive:u,itemActiveBg:E,colorSubItemBg:c,subMenuItemBg:c,colorItemBgSelected:E,itemSelectedBg:E,colorItemBgSelectedHorizontal:"transparent",horizontalItemSelectedBg:"transparent",colorActiveBarWidth:0,activeBarWidth:v,colorActiveBarHeight:Q,activeBarHeight:Q,colorActiveBarBorderSize:B,activeBarBorderWidth:k,colorItemTextDisabled:i,itemDisabledColor:i,colorDangerItemText:r,dangerItemColor:r,colorDangerItemTextHover:r,dangerItemHoverColor:r,colorDangerItemTextSelected:r,dangerItemSelectedColor:r,colorDangerItemBgActive:a,dangerItemActiveBg:a,colorDangerItemBgSelected:a,dangerItemSelectedBg:a,itemMarginInline:M,horizontalItemBorderRadius:0,horizontalItemHoverBg:"transparent",itemHeight:d,groupTitleLineHeight:I,collapsedWidth:2*d,popupBg:p,itemMarginBlock:f,itemPaddingInline:h,horizontalLineHeight:1.15*d+"px",iconSize:w,iconMarginInlineEnd:D-w,collapsedIconSize:m,groupTitleFontSize:w,darkItemDisabledColor:new Cp(y).setAlpha(.25).toRgbString(),darkItemColor:x,darkDangerItemColor:r,darkItemBg:"#001529",darkPopupBg:"#001529",darkSubMenuItemBg:"#000c17",darkItemSelectedColor:y,darkItemSelectedBg:o,darkDangerItemSelectedBg:r,darkItemHoverBg:"transparent",darkGroupTitleColor:x,darkItemHoverColor:y,darkDangerItemHoverColor:b,darkDangerItemSelectedColor:y,darkDangerItemActiveBg:r,itemWidth:v?`calc(100% + ${k}px)`:`calc(100% - ${2*M}px)`}};function jR(A){return null===A||!1===A}const qR=J.forwardRef(((A,e)=>{var t;const n=J.useContext(RR),o=n||{},{getPrefixCls:r,getPopupContainer:i,direction:a,menu:s}=J.useContext(Xp),l=r(),{prefixCls:g,className:c,style:u,theme:B="light",expandIcon:Q,_internalDisableMenuItemTitleTooltip:E,inlineCollapsed:C,siderCollapsed:d,items:I,children:p,rootClassName:f,mode:h,selectable:w,onClick:D,overflowedIndicatorPopupClassName:m}=A,y=wI(function(A,e){var t={};for(var n in A)Object.prototype.hasOwnProperty.call(A,n)&&e.indexOf(n)<0&&(t[n]=A[n]);if(null!=A&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(n=Object.getOwnPropertySymbols(A);ovoid 0!==d?d:C),[C,d]),S={horizontal:{motionName:`${l}-slide-up`},inline:om(l),other:{motionName:`${l}-zoom-big`}},F=r("menu",g||o.prefixCls),N=oD(F),[R,L,P]=function(A){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:A;return jf("Menu",(A=>{const{colorBgElevated:e,controlHeightLG:t,fontSize:n,darkItemColor:o,darkDangerItemColor:r,darkItemBg:i,darkSubMenuItemBg:a,darkItemSelectedColor:s,darkItemSelectedBg:l,darkDangerItemSelectedBg:g,darkItemHoverBg:c,darkGroupTitleColor:u,darkItemHoverColor:B,darkItemDisabledColor:Q,darkDangerItemHoverColor:E,darkDangerItemSelectedColor:C,darkDangerItemActiveBg:d,popupBg:I,darkPopupBg:p}=A,f=A.calc(n).div(7).mul(5).equal(),h=Pf(A,{menuArrowSize:f,menuHorizontalHeight:A.calc(t).mul(1.15).equal(),menuArrowOffset:A.calc(f).mul(.25).equal(),menuSubMenuBg:e,calc:A.calc,popupBg:I}),w=Pf(h,{itemColor:o,itemHoverColor:B,groupTitleColor:u,itemSelectedColor:s,itemBg:i,popupBg:p,subMenuItemBg:a,itemActiveBg:"transparent",itemSelectedBg:l,activeBarHeight:0,activeBarBorderWidth:0,itemHoverBg:c,itemDisabledColor:Q,dangerItemColor:r,dangerItemHoverColor:E,dangerItemSelectedColor:C,dangerItemActiveBg:d,dangerItemSelectedBg:g,menuSubMenuBg:a,horizontalItemSelectedColor:s,horizontalItemSelectedBg:l});return[TR(h),LR(h),UR(h),GR(h,"light"),GR(w,"dark"),PR(h),fv(h),Jv(h,"slide-up"),Jv(h,"slide-down"),ok(h,"zoom-big")]}),JR,{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:!(arguments.length>2&&void 0!==arguments[2])||arguments[2],unitless:{groupTitleLineHeight:!0}})(A,e)}(F,N,!n),H=ud(`${F}-${B}`,null==s?void 0:s.className,c),G=J.useMemo((()=>{var A,e;if("function"==typeof Q||jR(Q))return Q||null;if("function"==typeof o.expandIcon||jR(o.expandIcon))return o.expandIcon||null;if("function"==typeof(null==s?void 0:s.expandIcon)||jR(null==s?void 0:s.expandIcon))return(null==s?void 0:s.expandIcon)||null;const t=null!==(A=null!=Q?Q:null==o?void 0:o.expandIcon)&&void 0!==A?A:null==s?void 0:s.expandIcon;return Gw(t,{className:ud(`${F}-submenu-expand-icon`,J.isValidElement(t)?null===(e=t.props)||void 0===e?void 0:e.className:void 0)})}),[Q,null==o?void 0:o.expandIcon,null==s?void 0:s.expandIcon,F]),O=J.useMemo((()=>({prefixCls:F,inlineCollapsed:x||!1,direction:a,firstLevel:!0,theme:B,mode:k,disableMenuItemTitleTooltip:E})),[F,x,a,E,B]);return R(J.createElement(RR.Provider,{value:null},J.createElement(kR.Provider,{value:O},J.createElement(wR,Object.assign({getPopupContainer:i,overflowedIndicator:J.createElement(bR,null),overflowedIndicatorPopupClassName:ud(F,`${F}-${B}`,m),mode:k,selectable:M,onClick:v},y,{inlineCollapsed:x,style:Object.assign(Object.assign({},null==s?void 0:s.style),u),className:H,prefixCls:F,direction:a,defaultMotions:S,expandIcon:G,ref:e,rootClassName:ud(f,L,o.rootClassName,P,N)}),b))))})),$R=J.forwardRef(((A,e)=>{const t=J.useRef(null),n=J.useContext(DR);return J.useImperativeHandle(e,(()=>({menu:t.current,focus:A=>{var e;null===(e=t.current)||void 0===e||e.focus(A)}}))),J.createElement(qR,Object.assign({ref:t},A,n))}));$R.Item=MR,$R.SubMenu=xR,$R.Divider=vR,$R.ItemGroup=ER;var zR={exports:{}};zR.exports=function(){var A=1e3,e=6e4,t=36e5,n="millisecond",o="second",r="minute",i="hour",a="day",s="week",l="month",g="quarter",c="year",u="date",B="Invalid Date",Q=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,E=/\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,C={name:"en",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),ordinal:function(A){var e=["th","st","nd","rd"],t=A%100;return"["+A+(e[(t-20)%10]||e[t]||e[0])+"]"}},d=function(A,e,t){var n=String(A);return!n||n.length>=e?A:""+Array(e+1-n.length).join(t)+A},I={s:d,z:function(A){var e=-A.utcOffset(),t=Math.abs(e),n=Math.floor(t/60),o=t%60;return(e<=0?"+":"-")+d(n,2,"0")+":"+d(o,2,"0")},m:function A(e,t){if(e.date()1)return A(i[0])}else{var a=e.name;f[a]=e,o=a}return!n&&o&&(p=o),o||!n&&p},m=function(A,e){if(w(A))return A.clone();var t="object"==typeof e?e:{};return t.date=A,t.args=arguments,new b(t)},y=I;y.l=D,y.i=w,y.w=function(A,e){return m(A,{locale:e.$L,utc:e.$u,x:e.$x,$offset:e.$offset})};var b=function(){function C(A){this.$L=D(A.locale,null,!0),this.parse(A),this.$x=this.$x||A.x||{},this[h]=!0}var d=C.prototype;return d.parse=function(A){this.$d=function(A){var e=A.date,t=A.utc;if(null===e)return new Date(NaN);if(y.u(e))return new Date;if(e instanceof Date)return new Date(e);if("string"==typeof e&&!/Z$/i.test(e)){var n=e.match(Q);if(n){var o=n[2]-1||0,r=(n[7]||"0").substring(0,3);return t?new Date(Date.UTC(n[1],o,n[3]||1,n[4]||0,n[5]||0,n[6]||0,r)):new Date(n[1],o,n[3]||1,n[4]||0,n[5]||0,n[6]||0,r)}}return new Date(e)}(A),this.init()},d.init=function(){var A=this.$d;this.$y=A.getFullYear(),this.$M=A.getMonth(),this.$D=A.getDate(),this.$W=A.getDay(),this.$H=A.getHours(),this.$m=A.getMinutes(),this.$s=A.getSeconds(),this.$ms=A.getMilliseconds()},d.$utils=function(){return y},d.isValid=function(){return!(this.$d.toString()===B)},d.isSame=function(A,e){var t=m(A);return this.startOf(e)<=t&&t<=this.endOf(e)},d.isAfter=function(A,e){return m(A){const{controlHeight:e,fontSize:t,lineHeight:n,lineWidth:o,controlHeightSM:r,controlHeightLG:i,fontSizeLG:a,lineHeightLG:s,paddingSM:l,controlPaddingHorizontalSM:g,controlPaddingHorizontal:c,colorFillAlter:u,colorPrimaryHover:B,colorPrimary:Q,controlOutlineWidth:E,controlOutline:C,colorErrorOutline:d,colorWarningOutline:I,colorBgContainer:p}=A;return{paddingBlock:Math.max(Math.round((e-t*n)/2*10)/10-o,0),paddingBlockSM:Math.max(Math.round((r-t*n)/2*10)/10-o,0),paddingBlockLG:Math.ceil((i-a*s)/2*10)/10-o,paddingInline:l-o,paddingInlineSM:g-o,paddingInlineLG:c-o,addonBg:u,activeBorderColor:Q,hoverBorderColor:B,activeShadow:`0 0 0 ${E}px ${C}`,errorActiveShadow:`0 0 0 ${E}px ${d}`,warningActiveShadow:`0 0 0 ${E}px ${I}`,hoverBg:p,activeBg:p,inputFontSize:t,inputFontSizeLG:a,inputFontSizeSM:t}},VR=A=>({borderColor:A.hoverBorderColor,backgroundColor:A.hoverBg}),ZR=A=>({color:A.colorTextDisabled,backgroundColor:A.colorBgContainerDisabled,borderColor:A.colorBorder,boxShadow:"none",cursor:"not-allowed",opacity:1,"input[disabled], textarea[disabled]":{cursor:"not-allowed"},"&:hover:not([disabled])":Object.assign({},VR(Pf(A,{hoverBorderColor:A.colorBorder,hoverBg:A.colorBgContainerDisabled})))}),AL=(A,e)=>({background:A.colorBgContainer,borderWidth:A.lineWidth,borderStyle:A.lineType,borderColor:e.borderColor,"&:hover":{borderColor:e.hoverBorderColor,backgroundColor:A.hoverBg},"&:focus, &:focus-within":{borderColor:e.activeBorderColor,boxShadow:e.activeShadow,outline:0,backgroundColor:A.activeBg}}),eL=(A,e)=>({[`&${A.componentCls}-status-${e.status}:not(${A.componentCls}-disabled)`]:Object.assign(Object.assign({},AL(A,e)),{[`${A.componentCls}-prefix, ${A.componentCls}-suffix`]:{color:e.affixColor}}),[`&${A.componentCls}-status-${e.status}${A.componentCls}-disabled`]:{borderColor:e.borderColor}}),tL=(A,e)=>({"&-outlined":Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},AL(A,{borderColor:A.colorBorder,hoverBorderColor:A.hoverBorderColor,activeBorderColor:A.activeBorderColor,activeShadow:A.activeShadow})),{[`&${A.componentCls}-disabled, &[disabled]`]:Object.assign({},ZR(A))}),eL(A,{status:"error",borderColor:A.colorError,hoverBorderColor:A.colorErrorBorderHover,activeBorderColor:A.colorError,activeShadow:A.errorActiveShadow,affixColor:A.colorError})),eL(A,{status:"warning",borderColor:A.colorWarning,hoverBorderColor:A.colorWarningBorderHover,activeBorderColor:A.colorWarning,activeShadow:A.warningActiveShadow,affixColor:A.colorWarning})),e)}),nL=(A,e)=>({[`&${A.componentCls}-group-wrapper-status-${e.status}`]:{[`${A.componentCls}-group-addon`]:{borderColor:e.addonBorderColor,color:e.addonColor}}}),oL=A=>({"&-outlined":Object.assign(Object.assign(Object.assign({[`${A.componentCls}-group`]:{"&-addon":{background:A.addonBg,border:`${UE(A.lineWidth)} ${A.lineType} ${A.colorBorder}`},"&-addon:first-child":{borderInlineEnd:0},"&-addon:last-child":{borderInlineStart:0}}},nL(A,{status:"error",addonBorderColor:A.colorError,addonColor:A.colorErrorText})),nL(A,{status:"warning",addonBorderColor:A.colorWarning,addonColor:A.colorWarningText})),{[`&${A.componentCls}-group-wrapper-disabled`]:{[`${A.componentCls}-group-addon`]:Object.assign({},ZR(A))}})}),rL=(A,e)=>({"&-borderless":Object.assign({background:"transparent",border:"none","&:focus, &:focus-within":{outline:"none"},[`&${A.componentCls}-disabled, &[disabled]`]:{color:A.colorTextDisabled}},e)}),iL=(A,e)=>({background:e.bg,borderWidth:A.lineWidth,borderStyle:A.lineType,borderColor:"transparent","input&, & input, textarea&, & textarea":{color:null==e?void 0:e.inputColor},"&:hover":{background:e.hoverBg},"&:focus, &:focus-within":{outline:0,borderColor:e.activeBorderColor,backgroundColor:A.activeBg}}),aL=(A,e)=>({[`&${A.componentCls}-status-${e.status}:not(${A.componentCls}-disabled)`]:Object.assign(Object.assign({},iL(A,e)),{[`${A.componentCls}-prefix, ${A.componentCls}-suffix`]:{color:e.affixColor}})}),sL=(A,e)=>({"&-filled":Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},iL(A,{bg:A.colorFillTertiary,hoverBg:A.colorFillSecondary,activeBorderColor:A.colorPrimary})),{[`&${A.componentCls}-disabled, &[disabled]`]:Object.assign({},ZR(A))}),aL(A,{status:"error",bg:A.colorErrorBg,hoverBg:A.colorErrorBgHover,activeBorderColor:A.colorError,inputColor:A.colorErrorText,affixColor:A.colorError})),aL(A,{status:"warning",bg:A.colorWarningBg,hoverBg:A.colorWarningBgHover,activeBorderColor:A.colorWarning,inputColor:A.colorWarningText,affixColor:A.colorWarning})),e)}),lL=(A,e)=>({[`&${A.componentCls}-group-wrapper-status-${e.status}`]:{[`${A.componentCls}-group-addon`]:{background:e.addonBg,color:e.addonColor}}}),gL=A=>({"&-filled":Object.assign(Object.assign(Object.assign({[`${A.componentCls}-group`]:{"&-addon":{background:A.colorFillTertiary},[`${A.componentCls}-filled:not(:focus):not(:focus-within)`]:{"&:not(:first-child)":{borderInlineStart:`${UE(A.lineWidth)} ${A.lineType} ${A.colorSplit}`},"&:not(:last-child)":{borderInlineEnd:`${UE(A.lineWidth)} ${A.lineType} ${A.colorSplit}`}}}},lL(A,{status:"error",addonBg:A.colorErrorBg,addonColor:A.colorErrorText})),lL(A,{status:"warning",addonBg:A.colorWarningBg,addonColor:A.colorWarningText})),{[`&${A.componentCls}-group-wrapper-disabled`]:{[`${A.componentCls}-group`]:{"&-addon":{background:A.colorFillTertiary,color:A.colorTextDisabled},"&-addon:first-child":{borderInlineStart:`${UE(A.lineWidth)} ${A.lineType} ${A.colorBorder}`,borderTop:`${UE(A.lineWidth)} ${A.lineType} ${A.colorBorder}`,borderBottom:`${UE(A.lineWidth)} ${A.lineType} ${A.colorBorder}`},"&-addon:last-child":{borderInlineEnd:`${UE(A.lineWidth)} ${A.lineType} ${A.colorBorder}`,borderTop:`${UE(A.lineWidth)} ${A.lineType} ${A.colorBorder}`,borderBottom:`${UE(A.lineWidth)} ${A.lineType} ${A.colorBorder}`}}}})}),cL=A=>({"&::-moz-placeholder":{opacity:1},"&::placeholder":{color:A,userSelect:"none"},"&:placeholder-shown":{textOverflow:"ellipsis"}}),uL=A=>{const{paddingBlockLG:e,lineHeightLG:t,borderRadiusLG:n,paddingInlineLG:o}=A;return{padding:`${UE(e)} ${UE(o)}`,fontSize:A.inputFontSizeLG,lineHeight:t,borderRadius:n}},BL=A=>({padding:`${UE(A.paddingBlockSM)} ${UE(A.paddingInlineSM)}`,fontSize:A.inputFontSizeSM,borderRadius:A.borderRadiusSM}),QL=A=>Object.assign(Object.assign({position:"relative",display:"inline-block",width:"100%",minWidth:0,padding:`${UE(A.paddingBlock)} ${UE(A.paddingInline)}`,color:A.colorText,fontSize:A.inputFontSize,lineHeight:A.lineHeight,borderRadius:A.borderRadius,transition:`all ${A.motionDurationMid}`},cL(A.colorTextPlaceholder)),{"textarea&":{maxWidth:"100%",height:"auto",minHeight:A.controlHeight,lineHeight:A.lineHeight,verticalAlign:"bottom",transition:`all ${A.motionDurationSlow}, height 0s`,resize:"vertical"},"&-lg":Object.assign({},uL(A)),"&-sm":Object.assign({},BL(A)),"&-rtl":{direction:"rtl"},"&-textarea-rtl":{direction:"rtl"}}),EL=A=>{const{componentCls:e,antCls:t}=A;return{position:"relative",display:"table",width:"100%",borderCollapse:"separate",borderSpacing:0,"&[class*='col-']":{paddingInlineEnd:A.paddingXS,"&:last-child":{paddingInlineEnd:0}},[`&-lg ${e}, &-lg > ${e}-group-addon`]:Object.assign({},uL(A)),[`&-sm ${e}, &-sm > ${e}-group-addon`]:Object.assign({},BL(A)),[`&-lg ${t}-select-single ${t}-select-selector`]:{height:A.controlHeightLG},[`&-sm ${t}-select-single ${t}-select-selector`]:{height:A.controlHeightSM},[`> ${e}`]:{display:"table-cell","&:not(:first-child):not(:last-child)":{borderRadius:0}},[`${e}-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 ${UE(A.paddingInline)}`,color:A.colorText,fontWeight:"normal",fontSize:A.inputFontSize,textAlign:"center",borderRadius:A.borderRadius,transition:`all ${A.motionDurationSlow}`,lineHeight:1,[`${t}-select`]:{margin:`${UE(A.calc(A.paddingBlock).add(1).mul(-1).equal())} ${UE(A.calc(A.paddingInline).mul(-1).equal())}`,[`&${t}-select-single:not(${t}-select-customize-input):not(${t}-pagination-size-changer)`]:{[`${t}-select-selector`]:{backgroundColor:"inherit",border:`${UE(A.lineWidth)} ${A.lineType} transparent`,boxShadow:"none"}},"&-open, &-focused":{[`${t}-select-selector`]:{color:A.colorPrimary}}},[`${t}-cascader-picker`]:{margin:`-9px ${UE(A.calc(A.paddingInline).mul(-1).equal())}`,backgroundColor:"transparent",[`${t}-cascader-input`]:{textAlign:"start",border:0,boxShadow:"none"}}}},[`${e}`]:{width:"100%",marginBottom:0,textAlign:"inherit","&:focus":{zIndex:1,borderInlineEndWidth:1},"&:hover":{zIndex:1,borderInlineEndWidth:1,[`${e}-search-with-button &`]:{zIndex:0}}},[`> ${e}:first-child, ${e}-group-addon:first-child`]:{borderStartEndRadius:0,borderEndEndRadius:0,[`${t}-select ${t}-select-selector`]:{borderStartEndRadius:0,borderEndEndRadius:0}},[`> ${e}-affix-wrapper`]:{[`&:not(:first-child) ${e}`]:{borderStartStartRadius:0,borderEndStartRadius:0},[`&:not(:last-child) ${e}`]:{borderStartEndRadius:0,borderEndEndRadius:0}},[`> ${e}:last-child, ${e}-group-addon:last-child`]:{borderStartStartRadius:0,borderEndStartRadius:0,[`${t}-select ${t}-select-selector`]:{borderStartStartRadius:0,borderEndStartRadius:0}},[`${e}-affix-wrapper`]:{"&:not(:last-child)":{borderStartEndRadius:0,borderEndEndRadius:0,[`${e}-search &`]:{borderStartStartRadius:A.borderRadius,borderEndStartRadius:A.borderRadius}},[`&:not(:first-child), ${e}-search &:not(:first-child)`]:{borderStartStartRadius:0,borderEndStartRadius:0}},[`&${e}-group-compact`]:Object.assign(Object.assign({display:"block"},{"&::before":{display:"table",content:'""'},"&::after":{display:"table",clear:"both",content:'""'}}),{[`${e}-group-addon, ${e}-group-wrap, > ${e}`]:{"&:not(:first-child):not(:last-child)":{borderInlineEndWidth:A.lineWidth,"&:hover":{zIndex:1},"&:focus":{zIndex:1}}},"& > *":{display:"inline-block",float:"none",verticalAlign:"top",borderRadius:0},[`\n & > ${e}-affix-wrapper,\n & > ${e}-number-affix-wrapper,\n & > ${t}-picker-range\n `]:{display:"inline-flex"},"& > *:not(:last-child)":{marginInlineEnd:A.calc(A.lineWidth).mul(-1).equal(),borderInlineEndWidth:A.lineWidth},[`${e}`]:{float:"none"},[`& > ${t}-select > ${t}-select-selector,\n & > ${t}-select-auto-complete ${e},\n & > ${t}-cascader-picker ${e},\n & > ${e}-group-wrapper ${e}`]:{borderInlineEndWidth:A.lineWidth,borderRadius:0,"&:hover":{zIndex:1},"&:focus":{zIndex:1}},[`& > ${t}-select-focused`]:{zIndex:1},[`& > ${t}-select > ${t}-select-arrow`]:{zIndex:1},[`& > *:first-child,\n & > ${t}-select:first-child > ${t}-select-selector,\n & > ${t}-select-auto-complete:first-child ${e},\n & > ${t}-cascader-picker:first-child ${e}`]:{borderStartStartRadius:A.borderRadius,borderEndStartRadius:A.borderRadius},[`& > *:last-child,\n & > ${t}-select:last-child > ${t}-select-selector,\n & > ${t}-cascader-picker:last-child ${e},\n & > ${t}-cascader-picker-focused:last-child ${e}`]:{borderInlineEndWidth:A.lineWidth,borderStartEndRadius:A.borderRadius,borderEndEndRadius:A.borderRadius},[`& > ${t}-select-auto-complete ${e}`]:{verticalAlign:"top"},[`${e}-group-wrapper + ${e}-group-wrapper`]:{marginInlineStart:A.calc(A.lineWidth).mul(-1).equal(),[`${e}-affix-wrapper`]:{borderRadius:0}},[`${e}-group-wrapper:not(:last-child)`]:{[`&${e}-search > ${e}-group`]:{[`& > ${e}-group-addon > ${e}-search-button`]:{borderRadius:0},[`& > ${e}`]:{borderStartStartRadius:A.borderRadius,borderStartEndRadius:0,borderEndEndRadius:0,borderEndStartRadius:A.borderRadius}}}})}},CL=A=>{const{componentCls:e,controlHeightSM:t,lineWidth:n,calc:o}=A,r=o(t).sub(o(n).mul(2)).sub(16).div(2).equal();return{[e]:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},Mf(A)),QL(A)),tL(A)),sL(A)),rL(A)),{'&[type="color"]':{height:A.controlHeight,[`&${e}-lg`]:{height:A.controlHeightLG},[`&${e}-sm`]:{height:t,paddingTop:r,paddingBottom:r}},'&[type="search"]::-webkit-search-cancel-button, &[type="search"]::-webkit-search-decoration':{"-webkit-appearance":"none"}})}},dL=A=>{const{componentCls:e}=A;return{[`${e}-clear-icon`]:{margin:0,color:A.colorTextQuaternary,fontSize:A.fontSizeIcon,verticalAlign:-1,cursor:"pointer",transition:`color ${A.motionDurationSlow}`,"&:hover":{color:A.colorTextTertiary},"&:active":{color:A.colorText},"&-hidden":{visibility:"hidden"},"&-has-suffix":{margin:`0 ${UE(A.inputAffixPadding)}`}}}},IL=A=>{const{componentCls:e,inputAffixPadding:t,colorTextDescription:n,motionDurationSlow:o,colorIcon:r,colorIconHover:i,iconCls:a}=A,s=`${e}-affix-wrapper`;return{[s]:Object.assign(Object.assign(Object.assign(Object.assign({},QL(A)),{display:"inline-flex",[`&:not(${e}-disabled):hover`]:{zIndex:1,[`${e}-search-with-button &`]:{zIndex:0}},"&-focused, &:focus":{zIndex:1},[`> input${e}`]:{padding:0},[`> input${e}, > textarea${e}`]:{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"'},[`${e}`]:{"&-prefix, &-suffix":{display:"flex",flex:"none",alignItems:"center","> *:not(:last-child)":{marginInlineEnd:A.paddingXS}},"&-show-count-suffix":{color:n},"&-show-count-has-suffix":{marginInlineEnd:A.paddingXXS},"&-prefix":{marginInlineEnd:t},"&-suffix":{marginInlineStart:t}}}),dL(A)),{[`${a}${e}-password-icon`]:{color:r,cursor:"pointer",transition:`all ${o}`,"&:hover":{color:i}}})}},pL=A=>{const{componentCls:e,borderRadiusLG:t,borderRadiusSM:n}=A;return{[`${e}-group`]:Object.assign(Object.assign(Object.assign({},Mf(A)),EL(A)),{"&-rtl":{direction:"rtl"},"&-wrapper":Object.assign(Object.assign(Object.assign({display:"inline-block",width:"100%",textAlign:"start",verticalAlign:"top","&-rtl":{direction:"rtl"},"&-lg":{[`${e}-group-addon`]:{borderRadius:t,fontSize:A.inputFontSizeLG}},"&-sm":{[`${e}-group-addon`]:{borderRadius:n}}},oL(A)),gL(A)),{[`&:not(${e}-compact-first-item):not(${e}-compact-last-item)${e}-compact-item`]:{[`${e}, ${e}-group-addon`]:{borderRadius:0}},[`&:not(${e}-compact-last-item)${e}-compact-first-item`]:{[`${e}, ${e}-group-addon`]:{borderStartEndRadius:0,borderEndEndRadius:0}},[`&:not(${e}-compact-first-item)${e}-compact-last-item`]:{[`${e}, ${e}-group-addon`]:{borderStartStartRadius:0,borderEndStartRadius:0}},[`&:not(${e}-compact-last-item)${e}-compact-item`]:{[`${e}-affix-wrapper`]:{borderStartEndRadius:0,borderEndEndRadius:0}}})})}},fL=A=>{const{componentCls:e,antCls:t}=A,n=`${e}-search`;return{[n]:{[`${e}`]:{"&:hover, &:focus":{borderColor:A.colorPrimaryHover,[`+ ${e}-group-addon ${n}-button:not(${t}-btn-primary)`]:{borderInlineStartColor:A.colorPrimaryHover}}},[`${e}-affix-wrapper`]:{borderRadius:0},[`${e}-lg`]:{lineHeight:A.calc(A.lineHeightLG).sub(2e-4).equal({unit:!1})},[`> ${e}-group`]:{[`> ${e}-group-addon:last-child`]:{insetInlineStart:-1,padding:0,border:0,[`${n}-button`]:{marginInlineEnd:-1,paddingTop:0,paddingBottom:0,borderStartStartRadius:0,borderStartEndRadius:A.borderRadius,borderEndEndRadius:A.borderRadius,borderEndStartRadius:0,boxShadow:"none"},[`${n}-button:not(${t}-btn-primary)`]:{color:A.colorTextDescription,"&:hover":{color:A.colorPrimaryHover},"&:active":{color:A.colorPrimaryActive},[`&${t}-btn-loading::before`]:{insetInlineStart:0,insetInlineEnd:0,insetBlockStart:0,insetBlockEnd:0}}}},[`${n}-button`]:{height:A.controlHeight,"&:hover, &:focus":{zIndex:1}},[`&-large ${n}-button`]:{height:A.controlHeightLG},[`&-small ${n}-button`]:{height:A.controlHeightSM},"&-rtl":{direction:"rtl"},[`&${e}-compact-item`]:{[`&:not(${e}-compact-last-item)`]:{[`${e}-group-addon`]:{[`${e}-search-button`]:{marginInlineEnd:A.calc(A.lineWidth).mul(-1).equal(),borderRadius:0}}},[`&:not(${e}-compact-first-item)`]:{[`${e},${e}-affix-wrapper`]:{borderRadius:0}},[`> ${e}-group-addon ${e}-search-button,\n > ${e},\n ${e}-affix-wrapper`]:{"&:hover,&:focus,&:active":{zIndex:2}},[`> ${e}-affix-wrapper-focused`]:{zIndex:2}}}}},hL=A=>{const{componentCls:e,paddingLG:t}=A,n=`${e}-textarea`;return{[n]:{position:"relative","&-show-count":{[`> ${e}`]:{height:"100%"},[`${e}-data-count`]:{position:"absolute",bottom:A.calc(A.fontSize).mul(A.lineHeight).mul(-1).equal(),insetInlineEnd:0,color:A.colorTextDescription,whiteSpace:"nowrap",pointerEvents:"none"}},"&-allow-clear":{[`> ${e}`]:{paddingInlineEnd:t}},[`&-affix-wrapper${n}-has-feedback`]:{[`${e}`]:{paddingInlineEnd:t}},[`&-affix-wrapper${e}-affix-wrapper`]:{padding:0,[`> textarea${e}`]:{fontSize:"inherit",border:"none",outline:"none",background:"transparent","&:focus":{boxShadow:"none !important"}},[`${e}-suffix`]:{margin:0,"> *:not(:last-child)":{marginInline:0},[`${e}-clear-icon`]:{position:"absolute",insetInlineEnd:A.paddingXS,insetBlockStart:A.paddingXS},[`${n}-suffix`]:{position:"absolute",top:0,insetInlineEnd:A.paddingInline,bottom:0,zIndex:1,display:"inline-flex",alignItems:"center",margin:"auto",pointerEvents:"none"}}}}}},wL=A=>{const{componentCls:e}=A;return{[`${e}-out-of-range`]:{[`&, & input, & textarea, ${e}-show-count-suffix, ${e}-data-count`]:{color:A.colorError}}}},DL=jf("Input",(A=>{const e=Pf(A,_R(A));return[CL(e),hL(e),IL(e),pL(e),fL(e),wL(e),cy(e)]}),XR,{resetFont:!1}),mL=A=>{const{prefixCls:e,className:t,style:n,size:o,shape:r}=A,i=ud({[`${e}-lg`]:"large"===o,[`${e}-sm`]:"small"===o}),a=ud({[`${e}-circle`]:"circle"===r,[`${e}-square`]:"square"===r,[`${e}-round`]:"round"===r}),s=J.useMemo((()=>"number"==typeof o?{width:o,height:o,lineHeight:`${o}px`}:{}),[o]);return J.createElement("span",{className:ud(e,i,a,t),style:Object.assign(Object.assign({},s),n)})},yL=new ad("ant-skeleton-loading",{"0%":{backgroundPosition:"100% 50%"},"100%":{backgroundPosition:"0 50%"}}),bL=A=>({height:A,lineHeight:UE(A)}),vL=A=>Object.assign({width:A},bL(A)),kL=A=>({background:A.skeletonLoadingBackground,backgroundSize:"400% 100%",animationName:yL,animationDuration:A.skeletonLoadingMotionDuration,animationTimingFunction:"ease",animationIterationCount:"infinite"}),ML=(A,e)=>Object.assign({width:e(A).mul(5).equal(),minWidth:e(A).mul(5).equal()},bL(A)),xL=A=>{const{skeletonAvatarCls:e,gradientFromColor:t,controlHeight:n,controlHeightLG:o,controlHeightSM:r}=A;return{[`${e}`]:Object.assign({display:"inline-block",verticalAlign:"top",background:t},vL(n)),[`${e}${e}-circle`]:{borderRadius:"50%"},[`${e}${e}-lg`]:Object.assign({},vL(o)),[`${e}${e}-sm`]:Object.assign({},vL(r))}},SL=A=>{const{controlHeight:e,borderRadiusSM:t,skeletonInputCls:n,controlHeightLG:o,controlHeightSM:r,gradientFromColor:i,calc:a}=A;return{[`${n}`]:Object.assign({display:"inline-block",verticalAlign:"top",background:i,borderRadius:t},ML(e,a)),[`${n}-lg`]:Object.assign({},ML(o,a)),[`${n}-sm`]:Object.assign({},ML(r,a))}},FL=A=>Object.assign({width:A},bL(A)),NL=A=>{const{skeletonImageCls:e,imageSizeBase:t,gradientFromColor:n,borderRadiusSM:o,calc:r}=A;return{[`${e}`]:Object.assign(Object.assign({display:"flex",alignItems:"center",justifyContent:"center",verticalAlign:"top",background:n,borderRadius:o},FL(r(t).mul(2).equal())),{[`${e}-path`]:{fill:"#bfbfbf"},[`${e}-svg`]:Object.assign(Object.assign({},FL(t)),{maxWidth:r(t).mul(4).equal(),maxHeight:r(t).mul(4).equal()}),[`${e}-svg${e}-svg-circle`]:{borderRadius:"50%"}}),[`${e}${e}-circle`]:{borderRadius:"50%"}}},RL=(A,e,t)=>{const{skeletonButtonCls:n}=A;return{[`${t}${n}-circle`]:{width:e,minWidth:e,borderRadius:"50%"},[`${t}${n}-round`]:{borderRadius:e}}},LL=(A,e)=>Object.assign({width:e(A).mul(2).equal(),minWidth:e(A).mul(2).equal()},bL(A)),PL=A=>{const{borderRadiusSM:e,skeletonButtonCls:t,controlHeight:n,controlHeightLG:o,controlHeightSM:r,gradientFromColor:i,calc:a}=A;return Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({[`${t}`]:Object.assign({display:"inline-block",verticalAlign:"top",background:i,borderRadius:e,width:a(n).mul(2).equal(),minWidth:a(n).mul(2).equal()},LL(n,a))},RL(A,n,t)),{[`${t}-lg`]:Object.assign({},LL(o,a))}),RL(A,o,`${t}-lg`)),{[`${t}-sm`]:Object.assign({},LL(r,a))}),RL(A,r,`${t}-sm`))},HL=A=>{const{componentCls:e,skeletonAvatarCls:t,skeletonTitleCls:n,skeletonParagraphCls:o,skeletonButtonCls:r,skeletonInputCls:i,skeletonImageCls:a,controlHeight:s,controlHeightLG:l,controlHeightSM:g,gradientFromColor:c,padding:u,marginSM:B,borderRadius:Q,titleHeight:E,blockRadius:C,paragraphLiHeight:d,controlHeightXS:I,paragraphMarginTop:p}=A;return{[`${e}`]:{display:"table",width:"100%",[`${e}-header`]:{display:"table-cell",paddingInlineEnd:u,verticalAlign:"top",[`${t}`]:Object.assign({display:"inline-block",verticalAlign:"top",background:c},vL(s)),[`${t}-circle`]:{borderRadius:"50%"},[`${t}-lg`]:Object.assign({},vL(l)),[`${t}-sm`]:Object.assign({},vL(g))},[`${e}-content`]:{display:"table-cell",width:"100%",verticalAlign:"top",[`${n}`]:{width:"100%",height:E,background:c,borderRadius:C,[`+ ${o}`]:{marginBlockStart:g}},[`${o}`]:{padding:0,"> li":{width:"100%",height:d,listStyle:"none",background:c,borderRadius:C,"+ li":{marginBlockStart:I}}},[`${o}> li:last-child:not(:first-child):not(:nth-child(2))`]:{width:"61%"}},[`&-round ${e}-content`]:{[`${n}, ${o} > li`]:{borderRadius:Q}}},[`${e}-with-avatar ${e}-content`]:{[`${n}`]:{marginBlockStart:B,[`+ ${o}`]:{marginBlockStart:p}}},[`${e}${e}-element`]:Object.assign(Object.assign(Object.assign(Object.assign({display:"inline-block",width:"auto"},PL(A)),xL(A)),SL(A)),NL(A)),[`${e}${e}-block`]:{width:"100%",[`${r}`]:{width:"100%"},[`${i}`]:{width:"100%"}},[`${e}${e}-active`]:{[`\n ${n},\n ${o} > li,\n ${t},\n ${r},\n ${i},\n ${a}\n `]:Object.assign({},kL(A))}}},GL=jf("Skeleton",(A=>{const{componentCls:e,calc:t}=A,n=Pf(A,{skeletonAvatarCls:`${e}-avatar`,skeletonTitleCls:`${e}-title`,skeletonParagraphCls:`${e}-paragraph`,skeletonButtonCls:`${e}-button`,skeletonInputCls:`${e}-input`,skeletonImageCls:`${e}-image`,imageSizeBase:t(A.controlHeight).mul(1.5).equal(),borderRadius:100,skeletonLoadingBackground:`linear-gradient(90deg, ${A.gradientFromColor} 25%, ${A.gradientToColor} 37%, ${A.gradientFromColor} 63%)`,skeletonLoadingMotionDuration:"1.4s"});return[HL(n)]}),(A=>{const{colorFillContent:e,colorFill:t}=A;return{color:e,colorGradientEnd:t,gradientFromColor:e,gradientToColor:t,titleHeight:A.controlHeight/2,blockRadius:A.borderRadiusSM,paragraphMarginTop:A.marginLG+A.marginXXS,paragraphLiHeight:A.controlHeight/2}}),{deprecatedTokens:[["color","gradientFromColor"],["colorGradientEnd","gradientToColor"]]});var OL={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M888 792H200V168c0-4.4-3.6-8-8-8h-56c-4.4 0-8 3.6-8 8v688c0 4.4 3.6 8 8 8h752c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zM288 604a64 64 0 10128 0 64 64 0 10-128 0zm118-224a48 48 0 1096 0 48 48 0 10-96 0zm158 228a96 96 0 10192 0 96 96 0 10-192 0zm148-314a56 56 0 10112 0 56 56 0 10-112 0z"}}]},name:"dot-chart",theme:"outlined"},UL=function(A,e){return J.createElement(Cw,BQ({},A,{ref:e,icon:OL}))},KL=J.forwardRef(UL);const YL=(A,e)=>{const{width:t,rows:n=2}=e;return Array.isArray(t)?t[A]:n-1===A?t:void 0},TL=A=>{const{prefixCls:e,className:t,style:n,rows:o}=A,r=XQ(Array(o)).map(((e,t)=>J.createElement("li",{key:t,style:{width:YL(t,A)}})));return J.createElement("ul",{className:ud(e,t),style:n},r)},JL=A=>{let{prefixCls:e,className:t,width:n,style:o}=A;return J.createElement("h3",{className:ud(e,t),style:Object.assign({width:n},o)})};function jL(A){return A&&"object"==typeof A?A:{}}const qL=A=>{const{prefixCls:e,loading:t,className:n,rootClassName:o,style:r,children:i,avatar:a=!1,title:s=!0,paragraph:l=!0,active:g,round:c}=A,{getPrefixCls:u,direction:B,skeleton:Q}=J.useContext(Xp),E=u("skeleton",e),[C,d,I]=GL(E);if(t||!("loading"in A)){const A=!!a,e=!!s,t=!!l;let i,u;if(A){const A=Object.assign(Object.assign({prefixCls:`${E}-avatar`},function(A,e){return A&&!e?{size:"large",shape:"square"}:{size:"large",shape:"circle"}}(e,t)),jL(a));i=J.createElement("div",{className:`${E}-header`},J.createElement(mL,Object.assign({},A)))}if(e||t){let n,o;if(e){const e=Object.assign(Object.assign({prefixCls:`${E}-title`},function(A,e){return!A&&e?{width:"38%"}:A&&e?{width:"50%"}:{}}(A,t)),jL(s));n=J.createElement(JL,Object.assign({},e))}if(t){const t=Object.assign(Object.assign({prefixCls:`${E}-paragraph`},function(A,e){const t={};return A&&e||(t.width="61%"),t.rows=!A&&e?3:2,t}(A,e)),jL(l));o=J.createElement(TL,Object.assign({},t))}u=J.createElement("div",{className:`${E}-content`},n,o)}const p=ud(E,{[`${E}-with-avatar`]:A,[`${E}-active`]:g,[`${E}-rtl`]:"rtl"===B,[`${E}-round`]:c},null==Q?void 0:Q.className,n,o,d,I);return C(J.createElement("div",{className:p,style:Object.assign(Object.assign({},null==Q?void 0:Q.style),r)},i,u))}return null!=i?i:null};qL.Button=A=>{const{prefixCls:e,className:t,rootClassName:n,active:o,block:r=!1,size:i="default"}=A,{getPrefixCls:a}=J.useContext(Xp),s=a("skeleton",e),[l,g,c]=GL(s),u=wI(A,["prefixCls"]),B=ud(s,`${s}-element`,{[`${s}-active`]:o,[`${s}-block`]:r},t,n,g,c);return l(J.createElement("div",{className:B},J.createElement(mL,Object.assign({prefixCls:`${s}-button`,size:i},u))))},qL.Avatar=A=>{const{prefixCls:e,className:t,rootClassName:n,active:o,shape:r="circle",size:i="default"}=A,{getPrefixCls:a}=J.useContext(Xp),s=a("skeleton",e),[l,g,c]=GL(s),u=wI(A,["prefixCls","className"]),B=ud(s,`${s}-element`,{[`${s}-active`]:o},t,n,g,c);return l(J.createElement("div",{className:B},J.createElement(mL,Object.assign({prefixCls:`${s}-avatar`,shape:r,size:i},u))))},qL.Input=A=>{const{prefixCls:e,className:t,rootClassName:n,active:o,block:r,size:i="default"}=A,{getPrefixCls:a}=J.useContext(Xp),s=a("skeleton",e),[l,g,c]=GL(s),u=wI(A,["prefixCls"]),B=ud(s,`${s}-element`,{[`${s}-active`]:o,[`${s}-block`]:r},t,n,g,c);return l(J.createElement("div",{className:B},J.createElement(mL,Object.assign({prefixCls:`${s}-input`,size:i},u))))},qL.Image=A=>{const{prefixCls:e,className:t,rootClassName:n,style:o,active:r}=A,{getPrefixCls:i}=J.useContext(Xp),a=i("skeleton",e),[s,l,g]=GL(a),c=ud(a,`${a}-element`,{[`${a}-active`]:r},t,n,l,g);return s(J.createElement("div",{className:c},J.createElement("div",{className:ud(`${a}-image`,t),style:o},J.createElement("svg",{viewBox:"0 0 1098 1024",xmlns:"http://www.w3.org/2000/svg",className:`${a}-image-svg`},J.createElement("path",{d:"M365.714286 329.142857q0 45.714286-32.036571 77.677714t-77.677714 32.036571-77.677714-32.036571-32.036571-77.677714 32.036571-77.677714 77.677714-32.036571 77.677714 32.036571 32.036571 77.677714zM950.857143 548.571429l0 256-804.571429 0 0-109.714286 182.857143-182.857143 91.428571 91.428571 292.571429-292.571429zM1005.714286 146.285714l-914.285714 0q-7.460571 0-12.873143 5.412571t-5.412571 12.873143l0 694.857143q0 7.460571 5.412571 12.873143t12.873143 5.412571l914.285714 0q7.460571 0 12.873143-5.412571t5.412571-12.873143l0-694.857143q0-7.460571-5.412571-12.873143t-12.873143-5.412571zM1097.142857 164.571429l0 694.857143q0 37.741714-26.843429 64.585143t-64.585143 26.843429l-914.285714 0q-37.741714 0-64.585143-26.843429t-26.843429-64.585143l0-694.857143q0-37.741714 26.843429-64.585143t64.585143-26.843429l914.285714 0q37.741714 0 64.585143 26.843429t26.843429 64.585143z",className:`${a}-image-path`})))))},qL.Node=A=>{const{prefixCls:e,className:t,rootClassName:n,style:o,active:r,children:i}=A,{getPrefixCls:a}=J.useContext(Xp),s=a("skeleton",e),[l,g,c]=GL(s),u=ud(s,`${s}-element`,{[`${s}-active`]:r},g,t,n,c),B=null!=i?i:J.createElement(KL,null);return l(J.createElement("div",{className:u},J.createElement("div",{className:ud(`${s}-image`,t),style:o},B)))};var $L={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M482 152h60q8 0 8 8v704q0 8-8 8h-60q-8 0-8-8V160q0-8 8-8z"}},{tag:"path",attrs:{d:"M192 474h672q8 0 8 8v60q0 8-8 8H160q-8 0-8-8v-60q0-8 8-8z"}}]},name:"plus",theme:"outlined"},zL=function(A,e){return J.createElement(Cw,BQ({},A,{ref:e,icon:$L}))},WL=J.forwardRef(zL);const _L=J.createContext(null);var XL={width:0,height:0,left:0,top:0};function VL(A,e){var t=J.useRef(A),n=WQ(J.useState({}),2)[1];return[t.current,function(A){var o="function"==typeof A?A(t.current):A;o!==t.current&&e(o,t.current),t.current=o,n({})}]}var ZL=Math.pow(.995,20);function AP(A){var e=WQ(J.useState(0),2),t=e[0],n=e[1],o=J.useRef(0),r=J.useRef();return r.current=A,$E((function(){var A;null===(A=r.current)||void 0===A||A.call(r)}),[t]),function(){o.current===t&&(o.current+=1,n(o.current))}}var eP={width:0,height:0,left:0,top:0,right:0};function tP(A){var e;return A instanceof Map?(e={},A.forEach((function(A,t){e[t]=A}))):e=A,JSON.stringify(e)}function nP(A){return String(A).replace(/"/g,"TABS_DQ")}function oP(A,e,t,n){return!(!t||n||!1===A||void 0===A&&(!1===e||null===e))}var rP=J.forwardRef((function(A,e){var t=A.prefixCls,n=A.editable,o=A.locale,r=A.style;return n&&!1!==n.showAdd?J.createElement("button",{ref:e,type:"button",className:"".concat(t,"-nav-add"),style:r,"aria-label":(null==o?void 0:o.addAriaLabel)||"Add tab",onClick:function(A){n.onEdit("add",{event:A})}},n.addIcon||"+"):null})),iP=J.forwardRef((function(A,e){var t,n=A.position,o=A.prefixCls,r=A.extra;if(!r)return null;var i={};return"object"!==mc(r)||J.isValidElement(r)?i.right=r:i=r,"right"===n&&(t=i.right),"left"===n&&(t=i.left),t?J.createElement("div",{className:"".concat(o,"-extra-content"),ref:e},t):null})),aP=J.forwardRef((function(A,e){var t=A.prefixCls,n=A.id,o=A.tabs,r=A.locale,i=A.mobile,a=A.more,s=void 0===a?{}:a,l=A.style,g=A.className,c=A.editable,u=A.tabBarGutter,B=A.rtl,Q=A.removeAriaLabel,E=A.onTabClick,C=A.getPopupContainer,d=A.popupClassName,I=WQ(J.useState(!1),2),p=I[0],f=I[1],h=WQ(J.useState(null),2),w=h[0],D=h[1],m=s.icon,y=void 0===m?"More":m,b="".concat(n,"-more-popup"),v="".concat(t,"-dropdown"),k=null!==w?"".concat(b,"-").concat(w):null,M=null==r?void 0:r.dropdownAriaLabel;var x=J.createElement(wR,{onClick:function(A){var e=A.key,t=A.domEvent;E(e,t),f(!1)},prefixCls:"".concat(v,"-menu"),id:b,tabIndex:-1,role:"listbox","aria-activedescendant":k,selectedKeys:[w],"aria-label":void 0!==M?M:"expanded dropdown"},o.map((function(A){var e=A.closable,t=A.disabled,o=A.closeIcon,r=A.key,i=A.label,a=oP(e,o,c,t);return J.createElement(_N,{key:r,id:"".concat(b,"-").concat(r),role:"option","aria-controls":n&&"".concat(n,"-panel-").concat(r),disabled:t},J.createElement("span",null,i),a&&J.createElement("button",{type:"button","aria-label":Q||"remove",tabIndex:0,className:"".concat(v,"-menu-item-remove"),onClick:function(A){A.stopPropagation(),function(A,e){A.preventDefault(),A.stopPropagation(),c.onEdit("remove",{key:e,event:A})}(A,r)}},o||c.removeIcon||"ร—"))})));function S(A){for(var e=o.filter((function(A){return!A.disabled})),t=e.findIndex((function(A){return A.key===w}))||0,n=e.length,r=0;re?"left":"right"})})),2),R=N[0],L=N[1],P=WQ(VL(0,(function(A,e){!F&&f&&f({direction:A>e?"top":"bottom"})})),2),H=P[0],G=P[1],O=WQ(J.useState([0,0]),2),U=O[0],K=O[1],Y=WQ(J.useState([0,0]),2),T=Y[0],q=Y[1],$=WQ(J.useState([0,0]),2),z=$[0],W=$[1],_=WQ(J.useState([0,0]),2),X=_[0],V=_[1],Z=(t=new Map,n=J.useRef([]),o=WQ(J.useState({}),2)[1],r=J.useRef("function"==typeof t?t():t),i=AP((function(){var A=r.current;n.current.forEach((function(e){A=e(A)})),n.current=[],r.current=A,o({})})),[r.current,function(A){n.current.push(A),i()}]),AA=WQ(Z,2),eA=AA[0],tA=AA[1],nA=function(A,e,t){return J.useMemo((function(){for(var t,n=new Map,o=e.get(null===(t=A[0])||void 0===t?void 0:t.key)||XL,r=o.left+o.width,i=0;iuA?uA:A}F&&u?(cA=0,uA=Math.max(0,rA-lA)):(cA=Math.min(0,lA-rA),uA=0);var QA=J.useRef(null),EA=WQ(J.useState(),2),CA=EA[0],dA=EA[1];function IA(){dA(Date.now())}function pA(){QA.current&&clearTimeout(QA.current)}!function(A,e){var t=WQ(J.useState(),2),n=t[0],o=t[1],r=WQ(J.useState(0),2),i=r[0],a=r[1],s=WQ(J.useState(0),2),l=s[0],g=s[1],c=WQ(J.useState(),2),u=c[0],B=c[1],Q=J.useRef(),E=J.useRef(),C=J.useRef(null);C.current={onTouchStart:function(A){var e=A.touches[0],t=e.screenX,n=e.screenY;o({x:t,y:n}),window.clearInterval(Q.current)},onTouchMove:function(A){if(n){A.preventDefault();var t=A.touches[0],r=t.screenX,s=t.screenY;o({x:r,y:s});var l=r-n.x,c=s-n.y;e(l,c);var u=Date.now();a(u),g(u-i),B({x:l,y:c})}},onTouchEnd:function(){if(n&&(o(null),B(null),u)){var A=u.x/l,t=u.y/l,r=Math.abs(A),i=Math.abs(t);if(Math.max(r,i)<.1)return;var a=A,s=t;Q.current=window.setInterval((function(){Math.abs(a)<.01&&Math.abs(s)<.01?window.clearInterval(Q.current):e(20*(a*=ZL),20*(s*=ZL))}),20)}},onWheel:function(A){var t=A.deltaX,n=A.deltaY,o=0,r=Math.abs(t),i=Math.abs(n);r===i?o="x"===E.current?t:n:r>i?(o=t,E.current="x"):(o=n,E.current="y"),e(-o,-o)&&A.preventDefault()}},J.useEffect((function(){function e(A){C.current.onTouchMove(A)}function t(A){C.current.onTouchEnd(A)}return document.addEventListener("touchmove",e,{passive:!1}),document.addEventListener("touchend",t,{passive:!1}),A.current.addEventListener("touchstart",(function(A){C.current.onTouchStart(A)}),{passive:!1}),A.current.addEventListener("wheel",(function(A){C.current.onWheel(A)})),function(){document.removeEventListener("touchmove",e),document.removeEventListener("touchend",t)}}),[])}(k,(function(A,e){function t(A,e){A((function(A){return BA(A+e)}))}return!!sA&&(F?t(L,A):t(G,e),pA(),IA(),!0)})),J.useEffect((function(){return pA(),CA&&(QA.current=setTimeout((function(){dA(0)}),100)),pA}),[CA]);var fA=function(A,e,t,n,o,r,i){var a,s,l,g=i.tabs,c=i.tabPosition,u=i.rtl;return["top","bottom"].includes(c)?(a="width",s=u?"right":"left",l=Math.abs(t)):(a="height",s="top",l=-t),J.useMemo((function(){if(!g.length)return[0,0];for(var t=g.length,n=t,o=0;ol+e){n=o-1;break}}for(var i=0,c=t-1;c>=0;c-=1)if((A.get(g[c].key)||eP)[s]=n?[0,0]:[i,n]}),[A,e,n,o,r,l,c,g.map((function(A){return A.key})).join("_"),u])}(nA,lA,F?R:H,rA,iA,aA,kc(kc({},A),{},{tabs:m})),hA=WQ(fA,2),wA=hA[0],DA=hA[1],mA=mf((function(){var A=arguments.length>0&&void 0!==arguments[0]?arguments[0]:c,e=nA.get(A)||{width:0,height:0,left:0,right:0,top:0};if(F){var t=R;u?e.rightR+lA&&(t=e.right+e.width-lA):e.left<-R?t=-e.left:e.left+e.width>-R+lA&&(t=-(e.left+e.width-lA)),G(0),L(BA(t))}else{var n=H;e.top<-H?n=-e.top:e.top+e.height>-H+lA&&(n=-(e.top+e.height-lA)),L(0),G(BA(n))}})),yA={};"top"===C||"bottom"===C?yA[u?"marginRight":"marginLeft"]=d:yA.marginTop=d;var bA=m.map((function(A,e){var t=A.key;return J.createElement(lP,{id:l,prefixCls:D,key:t,tab:A,style:0===e?void 0:yA,closable:A.closable,editable:Q,active:t===c,renderWrapper:I,removeAriaLabel:null==E?void 0:E.removeAriaLabel,onClick:function(A){p(t,A)},onFocus:function(){mA(t),IA(),k.current&&(u||(k.current.scrollLeft=0),k.current.scrollTop=0)}})})),vA=function(){return tA((function(){var A,e=new Map,t=null===(A=M.current)||void 0===A?void 0:A.getBoundingClientRect();return m.forEach((function(A){var n,o=A.key,r=null===(n=M.current)||void 0===n?void 0:n.querySelector('[data-node-key="'.concat(nP(o),'"]'));if(r){var i=function(A,e){var t=A.offsetWidth,n=A.offsetHeight,o=A.offsetTop,r=A.offsetLeft,i=A.getBoundingClientRect(),a=i.width,s=i.height,l=i.x,g=i.y;return Math.abs(a-t)<1?[a,s,l-e.x,g-e.y]:[t,n,r,o]}(r,t),a=WQ(i,4),s=a[0],l=a[1],g=a[2],c=a[3];e.set(o,{width:s,height:l,left:g,top:c})}})),e}))};J.useEffect((function(){vA()}),[m.map((function(A){return A.key})).join("_")]);var kA=AP((function(){var A=gP(y),e=gP(b),t=gP(v);K([A[0]-e[0]-t[0],A[1]-e[1]-t[1]]);var n=gP(S);W(n);var o=gP(x);V(o);var r=gP(M);q([r[0]-n[0],r[1]-n[1]]),vA()})),MA=m.slice(0,wA),xA=m.slice(DA+1),SA=[].concat(XQ(MA),XQ(xA)),FA=nA.get(c),NA=function(A){var e=A.activeTabOffset,t=A.horizontal,n=A.rtl,o=A.indicator,r=void 0===o?{}:o,i=r.size,a=r.align,s=void 0===a?"center":a,l=WQ(J.useState(),2),g=l[0],c=l[1],u=J.useRef(),B=j.useCallback((function(A){return"function"==typeof i?i(A):"number"==typeof i?i:A}),[i]);function Q(){kI.cancel(u.current)}return J.useEffect((function(){var A={};if(e)if(t){A.width=B(e.width);var o=n?"right":"left";"start"===s&&(A[o]=e[o]),"center"===s&&(A[o]=e[o]+e.width/2,A.transform=n?"translateX(50%)":"translateX(-50%)"),"end"===s&&(A[o]=e[o]+e.width,A.transform="translateX(-100%)")}else A.height=B(e.height),"start"===s&&(A.top=e.top),"center"===s&&(A.top=e.top+e.height/2,A.transform="translateY(-50%)"),"end"===s&&(A.top=e.top+e.height,A.transform="translateY(-100%)");return Q(),u.current=kI((function(){c(A)})),Q}),[e,t,n,s,B]),{style:g}}({activeTabOffset:FA,horizontal:F,indicator:h,rtl:u}),RA=NA.style;J.useEffect((function(){mA()}),[c,cA,uA,tP(FA),tP(nA),F]),J.useEffect((function(){kA()}),[u]);var LA,PA,HA,GA,OA=!!SA.length,UA="".concat(D,"-nav-wrap");return F?u?(PA=R>0,LA=R!==uA):(LA=R<0,PA=R!==cA):(HA=H<0,GA=H!==cA),J.createElement(hI,{onResize:kA},J.createElement("div",{ref:Hd(e,y),role:"tablist",className:ud("".concat(D,"-nav"),a),style:s,onKeyDown:function(){IA()}},J.createElement(iP,{ref:b,position:"left",extra:B,prefixCls:D}),J.createElement(hI,{onResize:kA},J.createElement("div",{className:ud(UA,bc(bc(bc(bc({},"".concat(UA,"-ping-left"),LA),"".concat(UA,"-ping-right"),PA),"".concat(UA,"-ping-top"),HA),"".concat(UA,"-ping-bottom"),GA)),ref:k},J.createElement(hI,{onResize:kA},J.createElement("div",{ref:M,className:"".concat(D,"-nav-list"),style:{transform:"translate(".concat(R,"px, ").concat(H,"px)"),transition:CA?"none":void 0}},bA,J.createElement(rP,{ref:S,prefixCls:D,locale:E,editable:Q,style:kc(kc({},0===bA.length?void 0:yA),{},{visibility:OA?"hidden":null})}),J.createElement("div",{className:ud("".concat(D,"-ink-bar"),bc({},"".concat(D,"-ink-bar-animated"),g.inkBar)),style:RA}))))),J.createElement(sP,BQ({},A,{removeAriaLabel:null==E?void 0:E.removeAriaLabel,ref:x,prefixCls:D,tabs:SA,className:!OA&&gA,tabMoving:!!CA})),J.createElement(iP,{ref:v,position:"right",extra:B,prefixCls:D})))})),BP=J.forwardRef((function(A,e){var t=A.prefixCls,n=A.className,o=A.style,r=A.id,i=A.active,a=A.tabKey,s=A.children;return J.createElement("div",{id:r&&"".concat(r,"-panel-").concat(a),role:"tabpanel",tabIndex:i?0:-1,"aria-labelledby":r&&"".concat(r,"-tab-").concat(a),"aria-hidden":!i,style:o,className:ud(t,i&&"".concat(t,"-active"),n),ref:e},s)})),QP=["renderTabBar"],EP=["label","key"],CP=function(A){var e=A.renderTabBar,t=Mc(A,QP),n=J.useContext(_L).tabs;return e?e(kc(kc({},t),{},{panes:n.map((function(A){var e=A.label,t=A.key,n=Mc(A,EP);return J.createElement(BP,BQ({tab:e,key:t,tabKey:t},n))}))}),uP):J.createElement(uP,t)},dP=["key","forceRender","style","className","destroyInactiveTabPane"],IP=function(A){var e=A.id,t=A.activeKey,n=A.animated,o=A.tabPosition,r=A.destroyInactiveTabPane,i=J.useContext(_L),a=i.prefixCls,s=i.tabs,l=n.tabPane,g="".concat(a,"-tabpane");return J.createElement("div",{className:ud("".concat(a,"-content-holder"))},J.createElement("div",{className:ud("".concat(a,"-content"),"".concat(a,"-content-").concat(o),bc({},"".concat(a,"-content-animated"),l))},s.map((function(A){var o=A.key,i=A.forceRender,a=A.style,s=A.className,c=A.destroyInactiveTabPane,u=Mc(A,dP),B=o===t;return J.createElement(Nh,BQ({key:o,visible:B,forceRender:i,removeOnLeave:!(!r&&!c),leavedClassName:"".concat(g,"-hidden")},n.tabPaneMotion),(function(A,t){var n=A.style,r=A.className;return J.createElement(BP,BQ({},u,{prefixCls:g,id:e,tabKey:o,animated:l,active:B,style:kc(kc({},a),n),className:ud(s,r),ref:t}))}))}))))};var pP=["id","prefixCls","className","items","direction","activeKey","defaultActiveKey","editable","animated","tabPosition","tabBarGutter","tabBarStyle","tabBarExtraContent","locale","more","destroyInactiveTabPane","renderTabBar","onChange","onTabClick","onTabScroll","getPopupContainer","popupClassName","indicator"],fP=0,hP=J.forwardRef((function(A,e){var t=A.id,n=A.prefixCls,o=void 0===n?"rc-tabs":n,r=A.className,i=A.items,a=A.direction,s=A.activeKey,l=A.defaultActiveKey,g=A.editable,c=A.animated,u=A.tabPosition,B=void 0===u?"top":u,Q=A.tabBarGutter,E=A.tabBarStyle,C=A.tabBarExtraContent,d=A.locale,I=A.more,p=A.destroyInactiveTabPane,f=A.renderTabBar,h=A.onChange,w=A.onTabClick,D=A.onTabScroll,m=A.getPopupContainer,y=A.popupClassName,b=A.indicator,v=Mc(A,pP),k=J.useMemo((function(){return(i||[]).filter((function(A){return A&&"object"===mc(A)&&"key"in A}))}),[i]),M="rtl"===a,x=function(){var A,e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{inkBar:!0,tabPane:!1};return(A=!1===e?{inkBar:!1,tabPane:!1}:!0===e?{inkBar:!0,tabPane:!1}:kc({inkBar:!0},"object"===mc(e)?e:{})).tabPaneMotion&&void 0===A.tabPane&&(A.tabPane=!0),!A.tabPaneMotion&&A.tabPane&&(A.tabPane=!1),A}(c),S=WQ(J.useState(!1),2),F=S[0],N=S[1];J.useEffect((function(){N(sM())}),[]);var R=WQ(vf((function(){var A;return null===(A=k[0])||void 0===A?void 0:A.key}),{value:s,defaultValue:l}),2),L=R[0],P=R[1],H=WQ(J.useState((function(){return k.findIndex((function(A){return A.key===L}))})),2),G=H[0],O=H[1];J.useEffect((function(){var A,e=k.findIndex((function(A){return A.key===L}));-1===e&&(e=Math.max(0,Math.min(G,k.length-1)),P(null===(A=k[e])||void 0===A?void 0:A.key));O(e)}),[k.map((function(A){return A.key})).join("_"),L,G]);var U=WQ(vf(null,{value:t}),2),K=U[0],Y=U[1];J.useEffect((function(){t||(Y("rc-tabs-".concat(fP)),fP+=1)}),[]);var T={id:K,activeKey:L,animated:x,tabPosition:B,rtl:M,mobile:F},j=kc(kc({},T),{},{editable:g,locale:d,more:I,tabBarGutter:Q,onTabClick:function(A,e){null==w||w(A,e);var t=A!==L;P(A),t&&(null==h||h(A))},onTabScroll:D,extra:C,style:E,panes:null,getPopupContainer:m,popupClassName:y,indicator:b});return J.createElement(_L.Provider,{value:{tabs:k,prefixCls:o}},J.createElement("div",BQ({ref:e,id:t,className:ud(o,"".concat(o,"-").concat(B),bc(bc(bc({},"".concat(o,"-mobile"),F),"".concat(o,"-editable"),g),"".concat(o,"-rtl"),M),r)},v),J.createElement(CP,BQ({},j,{renderTabBar:f})),J.createElement(IP,BQ({destroyInactiveTabPane:p},T,{animated:x}))))}));const wP={motionAppear:!1,motionEnter:!0,motionLeave:!0};function DP(A,e){if(A)return A;return function(A){return A.filter((A=>A))}(Fd(e).map((A=>{if(J.isValidElement(A)){const{key:e,props:t}=A,n=t||{},{tab:o}=n,r=function(A,e){var t={};for(var n in A)Object.prototype.hasOwnProperty.call(A,n)&&e.indexOf(n)<0&&(t[n]=A[n]);if(null!=A&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(n=Object.getOwnPropertySymbols(A);o{const{componentCls:e,motionDurationSlow:t}=A;return[{[e]:{[`${e}-switch`]:{"&-appear, &-enter":{transition:"none","&-start":{opacity:0},"&-active":{opacity:1,transition:`opacity ${t}`}},"&-leave":{position:"absolute",transition:"none",inset:0,"&-start":{opacity:1},"&-active":{opacity:0,transition:`opacity ${t}`}}}}},[Jv(A,"slide-up"),Jv(A,"slide-down")]]},yP=A=>{const{componentCls:e,tabsCardPadding:t,cardBg:n,cardGutter:o,colorBorderSecondary:r,itemSelectedColor:i}=A;return{[`${e}-card`]:{[`> ${e}-nav, > div > ${e}-nav`]:{[`${e}-tab`]:{margin:0,padding:t,background:n,border:`${UE(A.lineWidth)} ${A.lineType} ${r}`,transition:`all ${A.motionDurationSlow} ${A.motionEaseInOut}`},[`${e}-tab-active`]:{color:i,background:A.colorBgContainer},[`${e}-ink-bar`]:{visibility:"hidden"}},[`&${e}-top, &${e}-bottom`]:{[`> ${e}-nav, > div > ${e}-nav`]:{[`${e}-tab + ${e}-tab`]:{marginLeft:{_skip_check_:!0,value:UE(o)}}}},[`&${e}-top`]:{[`> ${e}-nav, > div > ${e}-nav`]:{[`${e}-tab`]:{borderRadius:`${UE(A.borderRadiusLG)} ${UE(A.borderRadiusLG)} 0 0`},[`${e}-tab-active`]:{borderBottomColor:A.colorBgContainer}}},[`&${e}-bottom`]:{[`> ${e}-nav, > div > ${e}-nav`]:{[`${e}-tab`]:{borderRadius:`0 0 ${UE(A.borderRadiusLG)} ${UE(A.borderRadiusLG)}`},[`${e}-tab-active`]:{borderTopColor:A.colorBgContainer}}},[`&${e}-left, &${e}-right`]:{[`> ${e}-nav, > div > ${e}-nav`]:{[`${e}-tab + ${e}-tab`]:{marginTop:UE(o)}}},[`&${e}-left`]:{[`> ${e}-nav, > div > ${e}-nav`]:{[`${e}-tab`]:{borderRadius:{_skip_check_:!0,value:`${UE(A.borderRadiusLG)} 0 0 ${UE(A.borderRadiusLG)}`}},[`${e}-tab-active`]:{borderRightColor:{_skip_check_:!0,value:A.colorBgContainer}}}},[`&${e}-right`]:{[`> ${e}-nav, > div > ${e}-nav`]:{[`${e}-tab`]:{borderRadius:{_skip_check_:!0,value:`0 ${UE(A.borderRadiusLG)} ${UE(A.borderRadiusLG)} 0`}},[`${e}-tab-active`]:{borderLeftColor:{_skip_check_:!0,value:A.colorBgContainer}}}}}}},bP=A=>{const{componentCls:e,itemHoverColor:t,dropdownEdgeChildVerticalPadding:n}=A;return{[`${e}-dropdown`]:Object.assign(Object.assign({},Mf(A)),{position:"absolute",top:-9999,left:{_skip_check_:!0,value:-9999},zIndex:A.zIndexPopup,display:"block","&-hidden":{display:"none"},[`${e}-dropdown-menu`]:{maxHeight:A.tabsDropdownHeight,margin:0,padding:`${UE(n)} 0`,overflowX:"hidden",overflowY:"auto",textAlign:{_skip_check_:!0,value:"left"},listStyleType:"none",backgroundColor:A.colorBgContainer,backgroundClip:"padding-box",borderRadius:A.borderRadiusLG,outline:"none",boxShadow:A.boxShadowSecondary,"&-item":Object.assign(Object.assign({},kf),{display:"flex",alignItems:"center",minWidth:A.tabsDropdownWidth,margin:0,padding:`${UE(A.paddingXXS)} ${UE(A.paddingSM)}`,color:A.colorText,fontWeight:"normal",fontSize:A.fontSize,lineHeight:A.lineHeight,cursor:"pointer",transition:`all ${A.motionDurationSlow}`,"> span":{flex:1,whiteSpace:"nowrap"},"&-remove":{flex:"none",marginLeft:{_skip_check_:!0,value:A.marginSM},color:A.colorTextDescription,fontSize:A.fontSizeSM,background:"transparent",border:0,cursor:"pointer","&:hover":{color:t}},"&:hover":{background:A.controlItemBgHover},"&-disabled":{"&, &:hover":{color:A.colorTextDisabled,background:"transparent",cursor:"not-allowed"}}})}})}},vP=A=>{const{componentCls:e,margin:t,colorBorderSecondary:n,horizontalMargin:o,verticalItemPadding:r,verticalItemMargin:i,calc:a}=A;return{[`${e}-top, ${e}-bottom`]:{flexDirection:"column",[`> ${e}-nav, > div > ${e}-nav`]:{margin:o,"&::before":{position:"absolute",right:{_skip_check_:!0,value:0},left:{_skip_check_:!0,value:0},borderBottom:`${UE(A.lineWidth)} ${A.lineType} ${n}`,content:"''"},[`${e}-ink-bar`]:{height:A.lineWidthBold,"&-animated":{transition:`width ${A.motionDurationSlow}, left ${A.motionDurationSlow},\n right ${A.motionDurationSlow}`}},[`${e}-nav-wrap`]:{"&::before, &::after":{top:0,bottom:0,width:A.controlHeight},"&::before":{left:{_skip_check_:!0,value:0},boxShadow:A.boxShadowTabsOverflowLeft},"&::after":{right:{_skip_check_:!0,value:0},boxShadow:A.boxShadowTabsOverflowRight},[`&${e}-nav-wrap-ping-left::before`]:{opacity:1},[`&${e}-nav-wrap-ping-right::after`]:{opacity:1}}}},[`${e}-top`]:{[`> ${e}-nav,\n > div > ${e}-nav`]:{"&::before":{bottom:0},[`${e}-ink-bar`]:{bottom:0}}},[`${e}-bottom`]:{[`> ${e}-nav, > div > ${e}-nav`]:{order:1,marginTop:t,marginBottom:0,"&::before":{top:0},[`${e}-ink-bar`]:{top:0}},[`> ${e}-content-holder, > div > ${e}-content-holder`]:{order:0}},[`${e}-left, ${e}-right`]:{[`> ${e}-nav, > div > ${e}-nav`]:{flexDirection:"column",minWidth:a(A.controlHeight).mul(1.25).equal(),[`${e}-tab`]:{padding:r,textAlign:"center"},[`${e}-tab + ${e}-tab`]:{margin:i},[`${e}-nav-wrap`]:{flexDirection:"column","&::before, &::after":{right:{_skip_check_:!0,value:0},left:{_skip_check_:!0,value:0},height:A.controlHeight},"&::before":{top:0,boxShadow:A.boxShadowTabsOverflowTop},"&::after":{bottom:0,boxShadow:A.boxShadowTabsOverflowBottom},[`&${e}-nav-wrap-ping-top::before`]:{opacity:1},[`&${e}-nav-wrap-ping-bottom::after`]:{opacity:1}},[`${e}-ink-bar`]:{width:A.lineWidthBold,"&-animated":{transition:`height ${A.motionDurationSlow}, top ${A.motionDurationSlow}`}},[`${e}-nav-list, ${e}-nav-operations`]:{flex:"1 0 auto",flexDirection:"column"}}},[`${e}-left`]:{[`> ${e}-nav, > div > ${e}-nav`]:{[`${e}-ink-bar`]:{right:{_skip_check_:!0,value:0}}},[`> ${e}-content-holder, > div > ${e}-content-holder`]:{marginLeft:{_skip_check_:!0,value:UE(a(A.lineWidth).mul(-1).equal())},borderLeft:{_skip_check_:!0,value:`${UE(A.lineWidth)} ${A.lineType} ${A.colorBorder}`},[`> ${e}-content > ${e}-tabpane`]:{paddingLeft:{_skip_check_:!0,value:A.paddingLG}}}},[`${e}-right`]:{[`> ${e}-nav, > div > ${e}-nav`]:{order:1,[`${e}-ink-bar`]:{left:{_skip_check_:!0,value:0}}},[`> ${e}-content-holder, > div > ${e}-content-holder`]:{order:0,marginRight:{_skip_check_:!0,value:a(A.lineWidth).mul(-1).equal()},borderRight:{_skip_check_:!0,value:`${UE(A.lineWidth)} ${A.lineType} ${A.colorBorder}`},[`> ${e}-content > ${e}-tabpane`]:{paddingRight:{_skip_check_:!0,value:A.paddingLG}}}}}},kP=A=>{const{componentCls:e,cardPaddingSM:t,cardPaddingLG:n,horizontalItemPaddingSM:o,horizontalItemPaddingLG:r}=A;return{[e]:{"&-small":{[`> ${e}-nav`]:{[`${e}-tab`]:{padding:o,fontSize:A.titleFontSizeSM}}},"&-large":{[`> ${e}-nav`]:{[`${e}-tab`]:{padding:r,fontSize:A.titleFontSizeLG}}}},[`${e}-card`]:{[`&${e}-small`]:{[`> ${e}-nav`]:{[`${e}-tab`]:{padding:t}},[`&${e}-bottom`]:{[`> ${e}-nav ${e}-tab`]:{borderRadius:`0 0 ${UE(A.borderRadius)} ${UE(A.borderRadius)}`}},[`&${e}-top`]:{[`> ${e}-nav ${e}-tab`]:{borderRadius:`${UE(A.borderRadius)} ${UE(A.borderRadius)} 0 0`}},[`&${e}-right`]:{[`> ${e}-nav ${e}-tab`]:{borderRadius:{_skip_check_:!0,value:`0 ${UE(A.borderRadius)} ${UE(A.borderRadius)} 0`}}},[`&${e}-left`]:{[`> ${e}-nav ${e}-tab`]:{borderRadius:{_skip_check_:!0,value:`${UE(A.borderRadius)} 0 0 ${UE(A.borderRadius)}`}}}},[`&${e}-large`]:{[`> ${e}-nav`]:{[`${e}-tab`]:{padding:n}}}}}},MP=A=>{const{componentCls:e,itemActiveColor:t,itemHoverColor:n,iconCls:o,tabsHorizontalItemMargin:r,horizontalItemPadding:i,itemSelectedColor:a,itemColor:s}=A,l=`${e}-tab`;return{[l]:{position:"relative",WebkitTouchCallout:"none",WebkitTapHighlightColor:"transparent",display:"inline-flex",alignItems:"center",padding:i,fontSize:A.titleFontSize,background:"transparent",border:0,outline:"none",cursor:"pointer",color:s,"&-btn, &-remove":Object.assign({"&:focus:not(:focus-visible), &:active":{color:t}},Nf(A)),"&-btn":{outline:"none",transition:`all ${A.motionDurationSlow}`,[`${l}-icon:not(:last-child)`]:{marginInlineEnd:A.marginSM}},"&-remove":{flex:"none",marginRight:{_skip_check_:!0,value:A.calc(A.marginXXS).mul(-1).equal()},marginLeft:{_skip_check_:!0,value:A.marginXS},color:A.colorTextDescription,fontSize:A.fontSizeSM,background:"transparent",border:"none",outline:"none",cursor:"pointer",transition:`all ${A.motionDurationSlow}`,"&:hover":{color:A.colorTextHeading}},"&:hover":{color:n},[`&${l}-active ${l}-btn`]:{color:a,textShadow:A.tabsActiveTextShadow},[`&${l}-disabled`]:{color:A.colorTextDisabled,cursor:"not-allowed"},[`&${l}-disabled ${l}-btn, &${l}-disabled ${e}-remove`]:{"&:focus, &:active":{color:A.colorTextDisabled}},[`& ${l}-remove ${o}`]:{margin:0},[`${o}:not(:last-child)`]:{marginRight:{_skip_check_:!0,value:A.marginSM}}},[`${l} + ${l}`]:{margin:{_skip_check_:!0,value:r}}}},xP=A=>{const{componentCls:e,tabsHorizontalItemMarginRTL:t,iconCls:n,cardGutter:o,calc:r}=A,i=`${e}-rtl`;return{[i]:{direction:"rtl",[`${e}-nav`]:{[`${e}-tab`]:{margin:{_skip_check_:!0,value:t},[`${e}-tab:last-of-type`]:{marginLeft:{_skip_check_:!0,value:0}},[n]:{marginRight:{_skip_check_:!0,value:0},marginLeft:{_skip_check_:!0,value:UE(A.marginSM)}},[`${e}-tab-remove`]:{marginRight:{_skip_check_:!0,value:UE(A.marginXS)},marginLeft:{_skip_check_:!0,value:UE(r(A.marginXXS).mul(-1).equal())},[n]:{margin:0}}}},[`&${e}-left`]:{[`> ${e}-nav`]:{order:1},[`> ${e}-content-holder`]:{order:0}},[`&${e}-right`]:{[`> ${e}-nav`]:{order:0},[`> ${e}-content-holder`]:{order:1}},[`&${e}-card${e}-top, &${e}-card${e}-bottom`]:{[`> ${e}-nav, > div > ${e}-nav`]:{[`${e}-tab + ${e}-tab`]:{marginRight:{_skip_check_:!0,value:o},marginLeft:{_skip_check_:!0,value:0}}}}},[`${e}-dropdown-rtl`]:{direction:"rtl"},[`${e}-menu-item`]:{[`${e}-dropdown-rtl`]:{textAlign:{_skip_check_:!0,value:"right"}}}}},SP=A=>{const{componentCls:e,tabsCardPadding:t,cardHeight:n,cardGutter:o,itemHoverColor:r,itemActiveColor:i,colorBorderSecondary:a}=A;return{[e]:Object.assign(Object.assign(Object.assign(Object.assign({},Mf(A)),{display:"flex",[`> ${e}-nav, > div > ${e}-nav`]:{position:"relative",display:"flex",flex:"none",alignItems:"center",[`${e}-nav-wrap`]:{position:"relative",display:"flex",flex:"auto",alignSelf:"stretch",overflow:"hidden",whiteSpace:"nowrap",transform:"translate(0)","&::before, &::after":{position:"absolute",zIndex:1,opacity:0,transition:`opacity ${A.motionDurationSlow}`,content:"''",pointerEvents:"none"}},[`${e}-nav-list`]:{position:"relative",display:"flex",transition:`opacity ${A.motionDurationSlow}`},[`${e}-nav-operations`]:{display:"flex",alignSelf:"stretch"},[`${e}-nav-operations-hidden`]:{position:"absolute",visibility:"hidden",pointerEvents:"none"},[`${e}-nav-more`]:{position:"relative",padding:t,background:"transparent",border:0,color:A.colorText,"&::after":{position:"absolute",right:{_skip_check_:!0,value:0},bottom:0,left:{_skip_check_:!0,value:0},height:A.calc(A.controlHeightLG).div(8).equal(),transform:"translateY(100%)",content:"''"}},[`${e}-nav-add`]:Object.assign({minWidth:n,minHeight:n,marginLeft:{_skip_check_:!0,value:o},padding:`0 ${UE(A.paddingXS)}`,background:"transparent",border:`${UE(A.lineWidth)} ${A.lineType} ${a}`,borderRadius:`${UE(A.borderRadiusLG)} ${UE(A.borderRadiusLG)} 0 0`,outline:"none",cursor:"pointer",color:A.colorText,transition:`all ${A.motionDurationSlow} ${A.motionEaseInOut}`,"&:hover":{color:r},"&:active, &:focus:not(:focus-visible)":{color:i}},Nf(A))},[`${e}-extra-content`]:{flex:"none"},[`${e}-ink-bar`]:{position:"absolute",background:A.inkBarColor,pointerEvents:"none"}}),MP(A)),{[`${e}-content`]:{position:"relative",width:"100%"},[`${e}-content-holder`]:{flex:"auto",minWidth:0,minHeight:0},[`${e}-tabpane`]:{outline:"none","&-hidden":{display:"none"}}}),[`${e}-centered`]:{[`> ${e}-nav, > div > ${e}-nav`]:{[`${e}-nav-wrap`]:{[`&:not([class*='${e}-nav-wrap-ping'])`]:{justifyContent:"center"}}}}}},FP=jf("Tabs",(A=>{const e=Pf(A,{tabsCardPadding:A.cardPadding,dropdownEdgeChildVerticalPadding:A.paddingXXS,tabsActiveTextShadow:"0 0 0.25px currentcolor",tabsDropdownHeight:200,tabsDropdownWidth:120,tabsHorizontalItemMargin:`0 0 0 ${UE(A.horizontalItemGutter)}`,tabsHorizontalItemMarginRTL:`0 0 0 ${UE(A.horizontalItemGutter)}`});return[kP(e),xP(e),vP(e),bP(e),yP(e),SP(e),mP(e)]}),(A=>{const e=A.controlHeightLG;return{zIndexPopup:A.zIndexPopupBase+50,cardBg:A.colorFillAlter,cardHeight:e,cardPadding:`${(e-Math.round(A.fontSize*A.lineHeight))/2-A.lineWidth}px ${A.padding}px`,cardPaddingSM:`${1.5*A.paddingXXS}px ${A.padding}px`,cardPaddingLG:`${A.paddingXS}px ${A.padding}px ${1.5*A.paddingXXS}px`,titleFontSize:A.fontSize,titleFontSizeLG:A.fontSizeLG,titleFontSizeSM:A.fontSize,inkBarColor:A.colorPrimary,horizontalMargin:`0 0 ${A.margin}px 0`,horizontalItemGutter:32,horizontalItemMargin:"",horizontalItemMarginRTL:"",horizontalItemPadding:`${A.paddingSM}px 0`,horizontalItemPaddingSM:`${A.paddingXS}px 0`,horizontalItemPaddingLG:`${A.padding}px 0`,verticalItemPadding:`${A.paddingXS}px ${A.paddingLG}px`,verticalItemMargin:`${A.margin}px 0 0 0`,itemColor:A.colorText,itemSelectedColor:A.colorPrimary,itemHoverColor:A.colorPrimaryHover,itemActiveColor:A.colorPrimaryActive,cardGutter:A.marginXXS/2}}));const NP=A=>{var e,t,n,o,r,i,a,s,l,g,c;const{type:u,className:B,rootClassName:Q,size:E,onEdit:C,hideAdd:d,centered:I,addIcon:p,removeIcon:f,moreIcon:h,more:w,popupClassName:D,children:m,items:y,animated:b,style:v,indicatorSize:k,indicator:M}=A,x=function(A,e){var t={};for(var n in A)Object.prototype.hasOwnProperty.call(A,n)&&e.indexOf(n)<0&&(t[n]=A[n]);if(null!=A&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(n=Object.getOwnPropertySymbols(A);o{let{key:t,event:n}=e;null==C||C("add"===A?n:t,A)},removeIcon:null!==(e=null!=f?f:null==N?void 0:N.removeIcon)&&void 0!==e?e:J.createElement(mw,null),addIcon:(null!=p?p:null==N?void 0:N.addIcon)||J.createElement(WL,null),showAdd:!0!==d});const Y=R(),T=Cm(E),j=DP(y,m),q=function(A){let e,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{inkBar:!0,tabPane:!1};return e=!1===t?{inkBar:!1,tabPane:!1}:!0===t?{inkBar:!0,tabPane:!0}:Object.assign({inkBar:!0},"object"==typeof t?t:{}),e.tabPane&&(e.tabPaneMotion=Object.assign(Object.assign({},wP),{motionName:rm(A,"switch")})),e}(P,b),$=Object.assign(Object.assign({},null==N?void 0:N.style),v),z={align:null!==(t=null==M?void 0:M.align)&&void 0!==t?t:null===(n=null==N?void 0:N.indicator)||void 0===n?void 0:n.align,size:null!==(a=null!==(r=null!==(o=null==M?void 0:M.size)&&void 0!==o?o:k)&&void 0!==r?r:null===(i=null==N?void 0:N.indicator)||void 0===i?void 0:i.size)&&void 0!==a?a:null==N?void 0:N.indicatorSize};return G(J.createElement(hP,Object.assign({direction:F,getPopupContainer:L},x,{items:j,className:ud({[`${P}-${T}`]:T,[`${P}-card`]:["card","editable-card"].includes(u),[`${P}-editable-card`]:"editable-card"===u,[`${P}-centered`]:I},null==N?void 0:N.className,B,Q,O,U,H),popupClassName:ud(D,O,U,H),style:$,editable:K,more:Object.assign({icon:null!==(c=null!==(g=null!==(l=null===(s=null==N?void 0:N.more)||void 0===s?void 0:s.icon)&&void 0!==l?l:null==N?void 0:N.moreIcon)&&void 0!==g?g:h)&&void 0!==c?c:J.createElement(bR,null),transitionName:`${Y}-slide-up`},w),prefixCls:P,animated:q,indicator:z})))};function RP(A,e,t){var n={}.atBegin;return function(A,e,t){var n,o=t||{},r=o.noTrailing,i=void 0!==r&&r,a=o.noLeading,s=void 0!==a&&a,l=o.debounceMode,g=void 0===l?void 0:l,c=!1,u=0;function B(){n&&clearTimeout(n)}function Q(){for(var t=arguments.length,o=new Array(t),r=0;rA?s?(u=Date.now(),i||(n=setTimeout(g?E:Q,A))):Q():!0!==i&&(n=setTimeout(g?E:Q,void 0===g?A-l:A)))}return Q.cancel=function(A){var e=(A||{}).upcomingOnly,t=void 0!==e&&e;B(),c=!t},Q}(A,e,{debounceMode:!1!==(void 0!==n&&n)})}NP.TabPane=()=>null;const LP=J.createContext({}),PP=A=>{const{componentCls:e}=A;return{[e]:{position:"relative",maxWidth:"100%",minHeight:1}}},HP=(A,e)=>((A,e)=>{const{prefixCls:t,componentCls:n,gridColumns:o}=A,r={};for(let i=o;i>=0;i--)0===i?(r[`${n}${e}-${i}`]={display:"none"},r[`${n}-push-${i}`]={insetInlineStart:"auto"},r[`${n}-pull-${i}`]={insetInlineEnd:"auto"},r[`${n}${e}-push-${i}`]={insetInlineStart:"auto"},r[`${n}${e}-pull-${i}`]={insetInlineEnd:"auto"},r[`${n}${e}-offset-${i}`]={marginInlineStart:0},r[`${n}${e}-order-${i}`]={order:0}):(r[`${n}${e}-${i}`]=[{"--ant-display":"block",display:"block"},{display:"var(--ant-display)",flex:`0 0 ${i/o*100}%`,maxWidth:i/o*100+"%"}],r[`${n}${e}-push-${i}`]={insetInlineStart:i/o*100+"%"},r[`${n}${e}-pull-${i}`]={insetInlineEnd:i/o*100+"%"},r[`${n}${e}-offset-${i}`]={marginInlineStart:i/o*100+"%"},r[`${n}${e}-order-${i}`]={order:i});return r[`${n}${e}-flex`]={flex:`var(--${t}${e}-flex)`},r})(A,e),GP=jf("Grid",(A=>{const{componentCls:e}=A;return{[e]:{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"}}}}),(()=>({}))),OP=jf("Grid",(A=>{const e=Pf(A,{gridColumns:24}),t={"-sm":e.screenSMMin,"-md":e.screenMDMin,"-lg":e.screenLGMin,"-xl":e.screenXLMin,"-xxl":e.screenXXLMin};return[PP(e),HP(e,""),HP(e,"-xs"),Object.keys(t).map((A=>((A,e,t)=>({[`@media (min-width: ${UE(e)})`]:Object.assign({},HP(A,t))}))(e,t[A],A))).reduce(((A,e)=>Object.assign(Object.assign({},A),e)),{})]}),(()=>({})));function UP(A){return"number"==typeof A?`${A} ${A} auto`:/^\d+(\.\d+)?(px|em|rem|%)$/.test(A)?`0 0 ${A}`:A}const KP=["xs","sm","md","lg","xl","xxl"],YP=J.forwardRef(((A,e)=>{const{getPrefixCls:t,direction:n}=J.useContext(Xp),{gutter:o,wrap:r}=J.useContext(LP),{prefixCls:i,span:a,order:s,offset:l,push:g,pull:c,className:u,children:B,flex:Q,style:E}=A,C=function(A,e){var t={};for(var n in A)Object.prototype.hasOwnProperty.call(A,n)&&e.indexOf(n)<0&&(t[n]=A[n]);if(null!=A&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(n=Object.getOwnPropertySymbols(A);o{let t={};const o=A[e];"number"==typeof o?t.span=o:"object"==typeof o&&(t=o||{}),delete C[e],w=Object.assign(Object.assign({},w),{[`${d}-${e}-${t.span}`]:void 0!==t.span,[`${d}-${e}-order-${t.order}`]:t.order||0===t.order,[`${d}-${e}-offset-${t.offset}`]:t.offset||0===t.offset,[`${d}-${e}-push-${t.push}`]:t.push||0===t.push,[`${d}-${e}-pull-${t.pull}`]:t.pull||0===t.pull,[`${d}-rtl`]:"rtl"===n}),t.flex&&(w[`${d}-${e}-flex`]=!0,h[`--${d}-${e}-flex`]=UP(t.flex))}));const D=ud(d,{[`${d}-${a}`]:void 0!==a,[`${d}-order-${s}`]:s,[`${d}-offset-${l}`]:l,[`${d}-push-${g}`]:g,[`${d}-pull-${c}`]:c},u,w,p,f),m={};if(o&&o[0]>0){const A=o[0]/2;m.paddingLeft=A,m.paddingRight=A}return Q&&(m.flex=UP(Q),!1!==r||m.minWidth||(m.minWidth=0)),I(J.createElement("div",Object.assign({},C,{style:Object.assign(Object.assign(Object.assign({},m),E),h),className:D,ref:e}),B))}));function TP(A,e){const[t,n]=J.useState("string"==typeof A?A:"");return J.useEffect((()=>{(()=>{if("string"==typeof A&&n(A),"object"==typeof A)for(let t=0;t{const{prefixCls:t,justify:n,align:o,className:r,style:i,children:a,gutter:s=0,wrap:l}=A,g=function(A,e){var t={};for(var n in A)Object.prototype.hasOwnProperty.call(A,n)&&e.indexOf(n)<0&&(t[n]=A[n]);if(null!=A&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(n=Object.getOwnPropertySymbols(A);o{const A=f.subscribe((A=>{C(A);const e=p.current||0;(!Array.isArray(e)&&"object"==typeof e||Array.isArray(e)&&("object"==typeof e[0]||"object"==typeof e[1]))&&Q(A)}));return()=>f.unsubscribe(A)}),[]);const h=c("row",t),[w,D,m]=GP(h),y=(()=>{const A=[void 0,void 0];return(Array.isArray(s)?s:[s,void 0]).forEach(((e,t)=>{if("object"==typeof e)for(let n=0;n0?y[0]/-2:void 0;k&&(v.marginLeft=k,v.marginRight=k);const[M,x]=y;v.rowGap=x;const S=J.useMemo((()=>({gutter:[M,x],wrap:l})),[M,x,l]);return w(J.createElement(LP.Provider,{value:S},J.createElement("div",Object.assign({},g,{className:b,style:Object.assign(Object.assign({},v),i),ref:e}),a)))}));const jP={useBreakpoint:function(){return tF()}};var qP=j.forwardRef((function(A,e){var t=A.prefixCls,n=A.forceRender,o=A.className,r=A.style,i=A.children,a=A.isActive,s=A.role,l=WQ(j.useState(a||n),2),g=l[0],c=l[1];return j.useEffect((function(){(n||a)&&c(!0)}),[n,a]),g?j.createElement("div",{ref:e,className:ud("".concat(t,"-content"),bc(bc({},"".concat(t,"-content-active"),a),"".concat(t,"-content-inactive"),!a),o),style:r,role:s},j.createElement("div",{className:"".concat(t,"-content-box")},i)):null}));qP.displayName="PanelContent";var $P=["showArrow","headerClass","isActive","onItemClick","forceRender","className","prefixCls","collapsible","accordion","panelKey","extra","header","expandIcon","openMotion","destroyInactivePanel","children"],zP=j.forwardRef((function(A,e){var t=A.showArrow,n=void 0===t||t,o=A.headerClass,r=A.isActive,i=A.onItemClick,a=A.forceRender,s=A.className,l=A.prefixCls,g=A.collapsible,c=A.accordion,u=A.panelKey,B=A.extra,Q=A.header,E=A.expandIcon,C=A.openMotion,d=A.destroyInactivePanel,I=A.children,p=Mc(A,$P),f="disabled"===g,h="header"===g,w="icon"===g,D=null!=B&&"boolean"!=typeof B,m=function(){null==i||i(u)},y="function"==typeof E?E(A):j.createElement("i",{className:"arrow"});y&&(y=j.createElement("div",{className:"".concat(l,"-expand-icon"),onClick:["header","icon"].includes(g)?m:void 0},y));var b=ud(bc(bc(bc({},"".concat(l,"-item"),!0),"".concat(l,"-item-active"),r),"".concat(l,"-item-disabled"),f),s),v={className:ud(o,bc(bc(bc({},"".concat(l,"-header"),!0),"".concat(l,"-header-collapsible-only"),h),"".concat(l,"-icon-collapsible-only"),w)),"aria-expanded":r,"aria-disabled":f,onKeyDown:function(A){"Enter"!==A.key&&A.keyCode!==rD.ENTER&&A.which!==rD.ENTER||m()}};return h||w||(v.onClick=m,v.role=c?"tab":"button",v.tabIndex=f?-1:0),j.createElement("div",BQ({},p,{ref:e,className:b}),j.createElement("div",v,n&&y,j.createElement("span",{className:"".concat(l,"-header-text"),onClick:"header"===g?m:void 0},Q),D&&j.createElement("div",{className:"".concat(l,"-extra")},B)),j.createElement(Nh,BQ({visible:r,leavedClassName:"".concat(l,"-content-hidden")},C,{forceRender:a,removeOnLeave:d}),(function(A,e){var t=A.className,n=A.style;return j.createElement(qP,{ref:e,prefixCls:l,className:t,style:n,isActive:r,forceRender:a,role:c?"tabpanel":void 0},I)})))})),WP=["children","label","key","collapsible","onItemClick","destroyInactivePanel"];function _P(A,e,t){return Array.isArray(A)?function(A,e){var t=e.prefixCls,n=e.accordion,o=e.collapsible,r=e.destroyInactivePanel,i=e.onItemClick,a=e.activeKey,s=e.openMotion,l=e.expandIcon;return A.map((function(A,e){var g=A.children,c=A.label,u=A.key,B=A.collapsible,Q=A.onItemClick,E=A.destroyInactivePanel,C=Mc(A,WP),d=String(null!=u?u:e),I=null!=B?B:o,p=null!=E?E:r,f=!1;return f=n?a[0]===d:a.indexOf(d)>-1,j.createElement(zP,BQ({},C,{prefixCls:t,key:d,panelKey:d,isActive:f,accordion:n,openMotion:s,expandIcon:l,header:c,collapsible:I,onItemClick:function(A){"disabled"!==I&&(i(A),null==Q||Q(A))},destroyInactivePanel:p}),g)}))}(A,t):Fd(e).map((function(A,e){return function(A,e,t){if(!A)return null;var n=t.prefixCls,o=t.accordion,r=t.collapsible,i=t.destroyInactivePanel,a=t.onItemClick,s=t.activeKey,l=t.openMotion,g=t.expandIcon,c=A.key||String(e),u=A.props,B=u.header,Q=u.headerClass,E=u.destroyInactivePanel,C=u.collapsible,d=u.onItemClick,I=!1;I=o?s[0]===c:s.indexOf(c)>-1;var p=null!=C?C:r,f={key:c,panelKey:c,header:B,headerClass:Q,isActive:I,prefixCls:n,destroyInactivePanel:null!=E?E:i,openMotion:l,accordion:o,children:A.props.children,onItemClick:function(A){"disabled"!==p&&(a(A),null==d||d(A))},expandIcon:g,collapsible:p};return"string"==typeof A.type?A:(Object.keys(f).forEach((function(A){void 0===f[A]&&delete f[A]})),j.cloneElement(A,f))}(A,e,t)}))}function XP(A){var e=A;if(!Array.isArray(e)){var t=mc(e);e="number"===t||"string"===t?[e]:[]}return e.map((function(A){return String(A)}))}var VP=j.forwardRef((function(A,e){var t=A.prefixCls,n=void 0===t?"rc-collapse":t,o=A.destroyInactivePanel,r=void 0!==o&&o,i=A.style,a=A.accordion,s=A.className,l=A.children,g=A.collapsible,c=A.openMotion,u=A.expandIcon,B=A.activeKey,Q=A.defaultActiveKey,E=A.onChange,C=A.items,d=ud(n,s),I=WQ(vf([],{value:B,onChange:function(A){return null==E?void 0:E(A)},defaultValue:Q,postState:XP}),2),p=I[0],f=I[1];dE(!l,"[rc-collapse] `children` will be removed in next major version. Please use `items` instead.");var h=_P(C,l,{prefixCls:n,accordion:a,openMotion:c,expandIcon:u,collapsible:g,destroyInactivePanel:r,onItemClick:function(A){return f((function(){return a?p[0]===A?[]:[A]:p.indexOf(A)>-1?p.filter((function(e){return e!==A})):[].concat(XQ(p),[A])}))},activeKey:p});return j.createElement("div",BQ({ref:e,className:d,style:i,role:a?"tablist":void 0},Lw(A,{aria:!0,data:!0})),h)}));const ZP=Object.assign(VP,{Panel:zP});ZP.Panel;const AH=J.forwardRef(((A,e)=>{const{getPrefixCls:t}=J.useContext(Xp),{prefixCls:n,className:o,showArrow:r=!0}=A,i=t("collapse",n),a=ud({[`${i}-no-arrow`]:!r},o);return J.createElement(ZP.Panel,Object.assign({ref:e},A,{prefixCls:i,className:a}))})),eH=A=>{const{componentCls:e,contentBg:t,padding:n,headerBg:o,headerPadding:r,collapseHeaderPaddingSM:i,collapseHeaderPaddingLG:a,collapsePanelBorderRadius:s,lineWidth:l,lineType:g,colorBorder:c,colorText:u,colorTextHeading:B,colorTextDisabled:Q,fontSizeLG:E,lineHeight:C,lineHeightLG:d,marginSM:I,paddingSM:p,paddingLG:f,paddingXS:h,motionDurationSlow:w,fontSizeIcon:D,contentPadding:m,fontHeight:y,fontHeightLG:b}=A,v=`${UE(l)} ${g} ${c}`;return{[e]:Object.assign(Object.assign({},Mf(A)),{backgroundColor:o,border:v,borderRadius:s,"&-rtl":{direction:"rtl"},[`& > ${e}-item`]:{borderBottom:v,"&:last-child":{[`\n &,\n & > ${e}-header`]:{borderRadius:`0 0 ${UE(s)} ${UE(s)}`}},[`> ${e}-header`]:{position:"relative",display:"flex",flexWrap:"nowrap",alignItems:"flex-start",padding:r,color:B,lineHeight:C,cursor:"pointer",transition:`all ${w}, visibility 0s`,[`> ${e}-header-text`]:{flex:"auto"},"&:focus":{outline:"none"},[`${e}-expand-icon`]:{height:y,display:"flex",alignItems:"center",paddingInlineEnd:I},[`${e}-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:D,transition:`transform ${w}`,svg:{transition:`transform ${w}`}}),[`${e}-header-text`]:{marginInlineEnd:"auto"}},[`${e}-icon-collapsible-only`]:{cursor:"unset",[`${e}-expand-icon`]:{cursor:"pointer"}}},[`${e}-content`]:{color:u,backgroundColor:t,borderTop:v,[`& > ${e}-content-box`]:{padding:m},"&-hidden":{display:"none"}},"&-small":{[`> ${e}-item`]:{[`> ${e}-header`]:{padding:i,paddingInlineStart:h,[`> ${e}-expand-icon`]:{marginInlineStart:A.calc(p).sub(h).equal()}},[`> ${e}-content > ${e}-content-box`]:{padding:p}}},"&-large":{[`> ${e}-item`]:{fontSize:E,lineHeight:d,[`> ${e}-header`]:{padding:a,paddingInlineStart:n,[`> ${e}-expand-icon`]:{height:b,marginInlineStart:A.calc(f).sub(n).equal()}},[`> ${e}-content > ${e}-content-box`]:{padding:f}}},[`${e}-item:last-child`]:{borderBottom:0,[`> ${e}-content`]:{borderRadius:`0 0 ${UE(s)} ${UE(s)}`}},[`& ${e}-item-disabled > ${e}-header`]:{"\n &,\n & > .arrow\n ":{color:Q,cursor:"not-allowed"}},[`&${e}-icon-position-end`]:{[`& > ${e}-item`]:{[`> ${e}-header`]:{[`${e}-expand-icon`]:{order:1,paddingInlineEnd:0,paddingInlineStart:I}}}}})}},tH=A=>{const{componentCls:e}=A,t=`> ${e}-item > ${e}-header ${e}-arrow`;return{[`${e}-rtl`]:{[t]:{transform:"rotate(180deg)"}}}},nH=A=>{const{componentCls:e,headerBg:t,paddingXXS:n,colorBorder:o}=A;return{[`${e}-borderless`]:{backgroundColor:t,border:0,[`> ${e}-item`]:{borderBottom:`1px solid ${o}`},[`\n > ${e}-item:last-child,\n > ${e}-item:last-child ${e}-header\n `]:{borderRadius:0},[`> ${e}-item:last-child`]:{borderBottom:0},[`> ${e}-item > ${e}-content`]:{backgroundColor:"transparent",borderTop:0},[`> ${e}-item > ${e}-content > ${e}-content-box`]:{paddingTop:n}}}},oH=A=>{const{componentCls:e,paddingSM:t}=A;return{[`${e}-ghost`]:{backgroundColor:"transparent",border:0,[`> ${e}-item`]:{borderBottom:0,[`> ${e}-content`]:{backgroundColor:"transparent",border:0,[`> ${e}-content-box`]:{paddingBlock:t}}}}}},rH=jf("Collapse",(A=>{const e=Pf(A,{collapseHeaderPaddingSM:`${UE(A.paddingXS)} ${UE(A.paddingSM)}`,collapseHeaderPaddingLG:`${UE(A.padding)} ${UE(A.paddingLG)}`,collapsePanelBorderRadius:A.borderRadiusLG});return[eH(e),nH(e),oH(e),tH(e),fv(e)]}),(A=>({headerPadding:`${A.paddingSM}px ${A.padding}px`,headerBg:A.colorFillAlter,contentPadding:`${A.padding}px 16px`,contentBg:A.colorBgContainer}))),iH=J.forwardRef(((A,e)=>{const{getPrefixCls:t,direction:n,collapse:o}=J.useContext(Xp),{prefixCls:r,className:i,rootClassName:a,style:s,bordered:l=!0,ghost:g,size:c,expandIconPosition:u="start",children:B,expandIcon:Q}=A,E=Cm((A=>{var e;return null!==(e=null!=c?c:A)&&void 0!==e?e:"middle"})),C=t("collapse",r),d=t(),[I,p,f]=rH(C),h=J.useMemo((()=>"left"===u?"start":"right"===u?"end":u),[u]),w=null!=Q?Q:null==o?void 0:o.expandIcon,D=J.useCallback((function(){let A=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const e="function"==typeof w?w(A):J.createElement(WF,{rotate:A.isActive?90:void 0});return Gw(e,(()=>{var A;return{className:ud(null===(A=null==e?void 0:e.props)||void 0===A?void 0:A.className,`${C}-arrow`)}}))}),[w,C]),m=ud(`${C}-icon-position-${h}`,{[`${C}-borderless`]:!l,[`${C}-rtl`]:"rtl"===n,[`${C}-ghost`]:!!g,[`${C}-${E}`]:"middle"!==E},null==o?void 0:o.className,i,a,p,f),y=Object.assign(Object.assign({},om(d)),{motionAppear:!1,leavedClassName:`${C}-content-hidden`}),b=J.useMemo((()=>B?Fd(B).map(((A,e)=>{var t,n;if(null===(t=A.props)||void 0===t?void 0:t.disabled){const t=null!==(n=A.key)&&void 0!==n?n:String(e),{disabled:o,collapsible:r}=A.props;return Gw(A,Object.assign(Object.assign({},wI(A.props,["disabled"])),{key:t,collapsible:null!=r?r:o?"disabled":void 0}))}return A})):null),[B]);return I(J.createElement(ZP,Object.assign({ref:e,openMotion:y},wI(A,["rootClassName"]),{expandIcon:D,prefixCls:C,className:m,style:Object.assign(Object.assign({},null==o?void 0:o.style),s)}),b))})),aH=Object.assign(iH,{Panel:AH}),sH=A=>{const{componentCls:e,sizePaddingEdgeHorizontal:t,colorSplit:n,lineWidth:o,textPaddingInline:r,orientationMargin:i,verticalMarginInline:a}=A;return{[e]:Object.assign(Object.assign({},Mf(A)),{borderBlockStart:`${UE(o)} solid ${n}`,"&-vertical":{position:"relative",top:"-0.06em",display:"inline-block",height:"0.9em",marginInline:a,marginBlock:0,verticalAlign:"middle",borderTop:0,borderInlineStart:`${UE(o)} solid ${n}`},"&-horizontal":{display:"flex",clear:"both",width:"100%",minWidth:"100%",margin:`${UE(A.dividerHorizontalGutterMargin)} 0`},[`&-horizontal${e}-with-text`]:{display:"flex",alignItems:"center",margin:`${UE(A.dividerHorizontalWithTextGutterMargin)} 0`,color:A.colorTextHeading,fontWeight:500,fontSize:A.fontSizeLG,whiteSpace:"nowrap",textAlign:"center",borderBlockStart:`0 ${n}`,"&::before, &::after":{position:"relative",width:"50%",borderBlockStart:`${UE(o)} solid transparent`,borderBlockStartColor:"inherit",borderBlockEnd:0,transform:"translateY(50%)",content:"''"}},[`&-horizontal${e}-with-text-left`]:{"&::before":{width:`calc(${i} * 100%)`},"&::after":{width:`calc(100% - ${i} * 100%)`}},[`&-horizontal${e}-with-text-right`]:{"&::before":{width:`calc(100% - ${i} * 100%)`},"&::after":{width:`calc(${i} * 100%)`}},[`${e}-inner-text`]:{display:"inline-block",paddingBlock:0,paddingInline:r},"&-dashed":{background:"none",borderColor:n,borderStyle:"dashed",borderWidth:`${UE(o)} 0 0`},[`&-horizontal${e}-with-text${e}-dashed`]:{"&::before, &::after":{borderStyle:"dashed none none"}},[`&-vertical${e}-dashed`]:{borderInlineStartWidth:o,borderInlineEnd:0,borderBlockStart:0,borderBlockEnd:0},[`&-plain${e}-with-text`]:{color:A.colorText,fontWeight:"normal",fontSize:A.fontSize},[`&-horizontal${e}-with-text-left${e}-no-default-orientation-margin-left`]:{"&::before":{width:0},"&::after":{width:"100%"},[`${e}-inner-text`]:{paddingInlineStart:t}},[`&-horizontal${e}-with-text-right${e}-no-default-orientation-margin-right`]:{"&::before":{width:"100%"},"&::after":{width:0},[`${e}-inner-text`]:{paddingInlineEnd:t}}})}},lH=jf("Divider",(A=>{const e=Pf(A,{dividerHorizontalWithTextGutterMargin:A.margin,dividerHorizontalGutterMargin:A.marginLG,sizePaddingEdgeHorizontal:0});return[sH(e)]}),(A=>({textPaddingInline:"1em",orientationMargin:.05,verticalMarginInline:A.marginXS})),{unitless:{orientationMargin:!0}});const gH=A=>{const{getPrefixCls:e,direction:t,divider:n}=J.useContext(Xp),{prefixCls:o,type:r="horizontal",orientation:i="center",orientationMargin:a,className:s,rootClassName:l,children:g,dashed:c,plain:u,style:B}=A,Q=function(A,e){var t={};for(var n in A)Object.prototype.hasOwnProperty.call(A,n)&&e.indexOf(n)<0&&(t[n]=A[n]);if(null!=A&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(n=Object.getOwnPropertySymbols(A);o0?`-${i}`:i,f=!!g,h="left"===i&&null!=a,w="right"===i&&null!=a,D=ud(E,null==n?void 0:n.className,d,I,`${E}-${r}`,{[`${E}-with-text`]:f,[`${E}-with-text${p}`]:f,[`${E}-dashed`]:!!c,[`${E}-plain`]:!!u,[`${E}-rtl`]:"rtl"===t,[`${E}-no-default-orientation-margin-left`]:h,[`${E}-no-default-orientation-margin-right`]:w},s,l),m=J.useMemo((()=>"number"==typeof a?a:/^\d+$/.test(a)?Number(a):a),[a]),y=Object.assign(Object.assign({},h&&{marginLeft:m}),w&&{marginRight:m});return C(J.createElement("div",Object.assign({className:D,style:Object.assign(Object.assign({},null==n?void 0:n.style),B)},Q,{role:"separator"}),g&&"vertical"!==r&&J.createElement("span",{className:`${E}-inner-text`,style:y},g)))};var cH={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M890.5 755.3L537.9 269.2c-12.8-17.6-39-17.6-51.7 0L133.5 755.3A8 8 0 00140 768h75c5.1 0 9.9-2.5 12.9-6.6L512 369.8l284.1 391.6c3 4.1 7.8 6.6 12.9 6.6h75c6.5 0 10.3-7.4 6.5-12.7z"}}]},name:"up",theme:"outlined"},uH=function(A,e){return J.createElement(Cw,BQ({},A,{ref:e,icon:cH}))},BH=J.forwardRef(uH);function QH(){return"function"==typeof BigInt}function EH(A){return!A&&0!==A&&!Number.isNaN(A)||!String(A).trim()}function CH(A){var e=A.trim(),t=e.startsWith("-");t&&(e=e.slice(1)),(e=e.replace(/(\.\d*[^0])0*$/,"$1").replace(/\.0*$/,"").replace(/^0+/,"")).startsWith(".")&&(e="0".concat(e));var n=e||"0",o=n.split("."),r=o[0]||"0",i=o[1]||"0";"0"===r&&"0"===i&&(t=!1);var a=t?"-":"";return{negative:t,negativeStr:a,trimStr:n,integerStr:r,decimalStr:i,fullStr:"".concat(a).concat(n)}}function dH(A){var e=String(A);return!Number.isNaN(Number(e))&&e.includes("e")}function IH(A){var e=String(A);if(dH(A)){var t=Number(e.slice(e.indexOf("e-")+2)),n=e.match(/\.(\d+)/);return null!=n&&n[1]&&(t+=n[1].length),t}return e.includes(".")&&fH(e)?e.length-e.indexOf(".")-1:0}function pH(A){var e=String(A);if(dH(A)){if(A>Number.MAX_SAFE_INTEGER)return String(QH()?BigInt(A).toString():Number.MAX_SAFE_INTEGER);if(A0&&void 0!==arguments[0])||arguments[0]?this.isInvalidate()?"":CH("".concat(this.getMark()).concat(this.getIntegerStr(),".").concat(this.getDecimalStr())).fullStr:this.origin}}]),A}(),wH=function(){function A(e){eQ(this,A),bc(this,"origin",""),bc(this,"number",void 0),bc(this,"empty",void 0),EH(e)?this.empty=!0:(this.origin=String(e),this.number=Number(e))}return nQ(A,[{key:"negate",value:function(){return new A(-this.toNumber())}},{key:"add",value:function(e){if(this.isInvalidate())return new A(e);var t=Number(e);if(Number.isNaN(t))return this;var n=this.number+t;if(n>Number.MAX_SAFE_INTEGER)return new A(Number.MAX_SAFE_INTEGER);if(nNumber.MAX_SAFE_INTEGER)return new A(Number.MAX_SAFE_INTEGER);if(n0&&void 0!==arguments[0])||arguments[0]?this.isInvalidate()?"":pH(this.number):this.origin}}]),A}();function DH(A){return QH()?new hH(A):new wH(A)}function mH(A,e,t){var n=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(""===A)return"";var o=CH(A),r=o.negativeStr,i=o.integerStr,a=o.decimalStr,s="".concat(e).concat(a),l="".concat(r).concat(i);if(t>=0){var g=Number(a[t]);return g>=5&&!n?mH(DH(A).add("".concat(r,"0.").concat("0".repeat(t)).concat(10-g)).toString(),e,t,n):0===t?l:"".concat(l).concat(e).concat(a.padEnd(t,"0").slice(0,t))}return".0"===s?l:"".concat(l).concat(s)}function yH(A,e,t){var n=e.cloneNode(!0),o=Object.create(A,{target:{value:n},currentTarget:{value:n}});return n.value=t,"number"==typeof e.selectionStart&&"number"==typeof e.selectionEnd&&(n.selectionStart=e.selectionStart,n.selectionEnd=e.selectionEnd),o}function bH(A,e,t,n){if(t){var o=e;"click"!==e.type?"file"===A.type||void 0===n?t(o):t(o=yH(e,A,n)):t(o=yH(e,A,""))}}function vH(A,e){if(A){A.focus(e);var t=(e||{}).cursor;if(t){var n=A.value.length;switch(t){case"start":A.setSelectionRange(0,0);break;case"end":A.setSelectionRange(n,n);break;default:A.setSelectionRange(0,n)}}}}var kH=function(A){var e,t,n=A.inputElement,o=A.children,r=A.prefixCls,i=A.prefix,a=A.suffix,s=A.addonBefore,l=A.addonAfter,g=A.className,c=A.style,u=A.disabled,B=A.readOnly,Q=A.focused,E=A.triggerFocus,C=A.allowClear,d=A.value,I=A.handleReset,p=A.hidden,f=A.classes,h=A.classNames,w=A.dataAttrs,D=A.styles,m=A.components,y=null!=o?o:n,b=(null==m?void 0:m.affixWrapper)||"span",v=(null==m?void 0:m.groupWrapper)||"span",k=(null==m?void 0:m.wrapper)||"span",M=(null==m?void 0:m.groupAddon)||"span",x=J.useRef(null),S=function(A){return!!(A.prefix||A.suffix||A.allowClear)}(A),F=J.cloneElement(y,{value:d,className:ud(y.props.className,!S&&(null==h?void 0:h.variant))||null});if(S){var N,R=null;if(C){var L,P=!u&&!B&&d,H="".concat(r,"-clear-icon"),G="object"===mc(C)&&null!=C&&C.clearIcon?C.clearIcon:"โœ–";R=j.createElement("span",{onClick:I,onMouseDown:function(A){return A.preventDefault()},className:ud(H,(L={},bc(L,"".concat(H,"-hidden"),!P),bc(L,"".concat(H,"-has-suffix"),!!a),L)),role:"button",tabIndex:-1},G)}var O="".concat(r,"-affix-wrapper"),U=ud(O,(bc(N={},"".concat(r,"-disabled"),u),bc(N,"".concat(O,"-disabled"),u),bc(N,"".concat(O,"-focused"),Q),bc(N,"".concat(O,"-readonly"),B),bc(N,"".concat(O,"-input-with-clear-btn"),a&&C&&d),N),null==f?void 0:f.affixWrapper,null==h?void 0:h.affixWrapper,null==h?void 0:h.variant),K=(a||C)&&j.createElement("span",{className:ud("".concat(r,"-suffix"),null==h?void 0:h.suffix),style:null==D?void 0:D.suffix},R,a);F=j.createElement(b,BQ({className:U,style:null==D?void 0:D.affixWrapper,onClick:function(A){var e;null!==(e=x.current)&&void 0!==e&&e.contains(A.target)&&(null==E||E())}},null==w?void 0:w.affixWrapper,{ref:x}),i&&j.createElement("span",{className:ud("".concat(r,"-prefix"),null==h?void 0:h.prefix),style:null==D?void 0:D.prefix},i),F,K)}if(function(A){return!(!A.addonBefore&&!A.addonAfter)}(A)){var Y="".concat(r,"-group"),T="".concat(Y,"-addon"),q="".concat(Y,"-wrapper"),$=ud("".concat(r,"-wrapper"),Y,null==f?void 0:f.wrapper,null==h?void 0:h.wrapper),z=ud(q,bc({},"".concat(q,"-disabled"),u),null==f?void 0:f.group,null==h?void 0:h.groupWrapper);F=j.createElement(v,{className:z},j.createElement(k,{className:$},s&&j.createElement(M,{className:T},s),F,l&&j.createElement(M,{className:T},l)))}return j.cloneElement(F,{className:ud(null===(e=F.props)||void 0===e?void 0:e.className,g)||null,style:kc(kc({},null===(t=F.props)||void 0===t?void 0:t.style),c),hidden:p})},MH=["show"];function xH(A,e){return J.useMemo((function(){var t={};e&&(t.show="object"===mc(e)&&e.formatter?e.formatter:!!e);var n=t=kc(kc({},t),A),o=n.show,r=Mc(n,MH);return kc(kc({},r),{},{show:!!o,showFormatter:"function"==typeof o?o:void 0,strategy:r.strategy||function(A){return A.length}})}),[A,e])}var SH=["autoComplete","onChange","onFocus","onBlur","onPressEnter","onKeyDown","prefixCls","disabled","htmlSize","className","maxLength","suffix","showCount","count","type","classes","classNames","styles","onCompositionStart","onCompositionEnd"],FH=J.forwardRef((function(A,e){var t=A.autoComplete,n=A.onChange,o=A.onFocus,r=A.onBlur,i=A.onPressEnter,a=A.onKeyDown,s=A.prefixCls,l=void 0===s?"rc-input":s,g=A.disabled,c=A.htmlSize,u=A.className,B=A.maxLength,Q=A.suffix,E=A.showCount,C=A.count,d=A.type,I=void 0===d?"text":d,p=A.classes,f=A.classNames,h=A.styles,w=A.onCompositionStart,D=A.onCompositionEnd,m=Mc(A,SH),y=WQ(J.useState(!1),2),b=y[0],v=y[1],k=J.useRef(!1),M=J.useRef(null),x=function(A){M.current&&vH(M.current,A)},S=WQ(vf(A.defaultValue,{value:A.value}),2),F=S[0],N=S[1],R=null==F?"":String(F),L=WQ(J.useState(null),2),P=L[0],H=L[1],G=xH(C,E),O=G.max||B,U=G.strategy(R),K=!!O&&U>O;J.useImperativeHandle(e,(function(){return{focus:x,blur:function(){var A;null===(A=M.current)||void 0===A||A.blur()},setSelectionRange:function(A,e,t){var n;null===(n=M.current)||void 0===n||n.setSelectionRange(A,e,t)},select:function(){var A;null===(A=M.current)||void 0===A||A.select()},input:M.current}})),J.useEffect((function(){v((function(A){return(!A||!g)&&A}))}),[g]);var Y=function(A,e,t){var o,r,i=e;if(!k.current&&G.exceedFormatter&&G.max&&G.strategy(e)>G.max)e!==(i=G.exceedFormatter(e,{max:G.max}))&&H([(null===(o=M.current)||void 0===o?void 0:o.selectionStart)||0,(null===(r=M.current)||void 0===r?void 0:r.selectionEnd)||0]);else if("compositionEnd"===t.source)return;N(i),M.current&&bH(M.current,A,n,i)};J.useEffect((function(){var A;P&&(null===(A=M.current)||void 0===A||A.setSelectionRange.apply(A,XQ(P)))}),[P]);var T,q=function(A){Y(A,A.target.value,{source:"change"})},$=function(A){k.current=!1,Y(A,A.currentTarget.value,{source:"compositionEnd"}),null==D||D(A)},z=function(A){i&&"Enter"===A.key&&i(A),null==a||a(A)},W=function(A){v(!0),null==o||o(A)},_=function(A){v(!1),null==r||r(A)},X=K&&"".concat(l,"-out-of-range");return j.createElement(kH,BQ({},m,{prefixCls:l,className:ud(u,X),handleReset:function(A){N(""),x(),M.current&&bH(M.current,A,n)},value:R,focused:b,triggerFocus:x,suffix:function(){var A=Number(O)>0;if(Q||G.show){var e=G.showFormatter?G.showFormatter({value:R,count:U,maxLength:O}):"".concat(U).concat(A?" / ".concat(O):"");return j.createElement(j.Fragment,null,G.show&&j.createElement("span",{className:ud("".concat(l,"-show-count-suffix"),bc({},"".concat(l,"-show-count-has-suffix"),!!Q),null==f?void 0:f.count),style:kc({},null==h?void 0:h.count)},e),Q)}return null}(),disabled:g,classes:p,classNames:f,styles:h}),(T=wI(A,["prefixCls","onPressEnter","addonBefore","addonAfter","prefix","suffix","allowClear","defaultValue","showCount","count","classes","htmlSize","styles","classNames"]),j.createElement("input",BQ({autoComplete:t},T,{onChange:q,onFocus:W,onBlur:_,onKeyDown:z,className:ud(l,bc({},"".concat(l,"-disabled"),g),null==f?void 0:f.input),style:null==h?void 0:h.input,ref:M,size:c,type:I,onCompositionStart:function(A){k.current=!0,null==w||w(A)},onCompositionEnd:$}))))}));function NH(A){var e=A.prefixCls,t=A.upNode,n=A.downNode,o=A.upDisabled,r=A.downDisabled,i=A.onStep,a=J.useRef(),s=J.useRef([]),l=J.useRef();l.current=i;var g,c,u,B=function(){clearTimeout(a.current)},Q=function(A,e){A.preventDefault(),B(),l.current(e),a.current=setTimeout((function A(){l.current(e),a.current=setTimeout(A,200)}),600)};if(J.useEffect((function(){return function(){B(),s.current.forEach((function(A){return kI.cancel(A)}))}}),[]),g=WQ(J.useState(!1),2),c=g[0],u=g[1],qE((function(){u(sM())}),[]),c)return null;var E="".concat(e,"-handler"),C=ud(E,"".concat(E,"-up"),bc({},"".concat(E,"-up-disabled"),o)),d=ud(E,"".concat(E,"-down"),bc({},"".concat(E,"-down-disabled"),r)),I=function(){return s.current.push(kI(B))},p={unselectable:"on",role:"button",onMouseUp:I,onMouseLeave:I};return J.createElement("div",{className:"".concat(E,"-wrap")},J.createElement("span",BQ({},p,{onMouseDown:function(A){Q(A,!0)},"aria-label":"Increase Value","aria-disabled":o,className:C}),t||J.createElement("span",{unselectable:"on",className:"".concat(e,"-handler-up-inner")})),J.createElement("span",BQ({},p,{onMouseDown:function(A){Q(A,!1)},"aria-label":"Decrease Value","aria-disabled":r,className:d}),n||J.createElement("span",{unselectable:"on",className:"".concat(e,"-handler-down-inner")})))}function RH(A){var e="number"==typeof A?pH(A):CH(A).fullStr;return e.includes(".")?CH(e.replace(/(\d)\.(\d)/g,"$1$2.")).fullStr:A+"0"}var LH=["prefixCls","className","style","min","max","step","defaultValue","value","disabled","readOnly","upHandler","downHandler","keyboard","changeOnWheel","controls","classNames","stringMode","parser","formatter","precision","decimalSeparator","onChange","onInput","onPressEnter","onStep","changeOnBlur"],PH=["disabled","style","prefixCls","value","prefix","suffix","addonBefore","addonAfter","className","classNames"],HH=function(A,e){return A||e.isEmpty()?e.toString():e.toNumber()},GH=function(A){var e=DH(A);return e.isInvalidate()?null:e},OH=J.forwardRef((function(A,e){var t,n=A.prefixCls,o=void 0===n?"rc-input-number":n,r=A.className,i=A.style,a=A.min,s=A.max,l=A.step,g=void 0===l?1:l,c=A.defaultValue,u=A.value,B=A.disabled,Q=A.readOnly,E=A.upHandler,C=A.downHandler,d=A.keyboard,I=A.changeOnWheel,p=void 0!==I&&I,f=A.controls,h=void 0===f||f;A.classNames;var w=A.stringMode,D=A.parser,m=A.formatter,y=A.precision,b=A.decimalSeparator,v=A.onChange,k=A.onInput,M=A.onPressEnter,x=A.onStep,S=A.changeOnBlur,F=void 0===S||S,N=Mc(A,LH),R="".concat(o,"-input"),L=J.useRef(null),P=WQ(J.useState(!1),2),H=P[0],G=P[1],O=J.useRef(!1),U=J.useRef(!1),K=J.useRef(!1),Y=WQ(J.useState((function(){return DH(null!=u?u:c)})),2),T=Y[0],j=Y[1];var q=J.useCallback((function(A,e){if(!e)return y>=0?y:Math.max(IH(A),IH(g))}),[y,g]),$=J.useCallback((function(A){var e=String(A);if(D)return D(e);var t=e;return b&&(t=t.replace(b,".")),t.replace(/[^\w.-]+/g,"")}),[D,b]),z=J.useRef(""),W=J.useCallback((function(A,e){if(m)return m(A,{userTyping:e,input:String(z.current)});var t="number"==typeof A?pH(A):A;if(!e){var n=q(t,e);if(fH(t)&&(b||n>=0))t=mH(t,b||".",n)}return t}),[m,q,b]),_=WQ(J.useState((function(){var A=null!=c?c:u;return T.isInvalidate()&&["string","number"].includes(mc(A))?Number.isNaN(A)?"":A:W(T.toString(),!1)})),2),X=_[0],V=_[1];function Z(A,e){V(W(A.isInvalidate()?A.toString(!1):A.toString(!e),e))}z.current=X;var AA,eA,tA,nA,oA,rA=J.useMemo((function(){return GH(s)}),[s,y]),iA=J.useMemo((function(){return GH(a)}),[a,y]),aA=J.useMemo((function(){return!(!rA||!T||T.isInvalidate())&&rA.lessEquals(T)}),[rA,T]),sA=J.useMemo((function(){return!(!iA||!T||T.isInvalidate())&&T.lessEquals(iA)}),[iA,T]),lA=(AA=L.current,eA=H,tA=J.useRef(null),[function(){try{var A=AA.selectionStart,e=AA.selectionEnd,t=AA.value,n=t.substring(0,A),o=t.substring(e);tA.current={start:A,end:e,value:t,beforeTxt:n,afterTxt:o}}catch(R3){}},function(){if(AA&&tA.current&&eA)try{var A=AA.value,e=tA.current,t=e.beforeTxt,n=e.afterTxt,o=e.start,r=A.length;if(A.endsWith(n))r=A.length-tA.current.afterTxt.length;else if(A.startsWith(t))r=t.length;else{var i=t[o-1],a=A.indexOf(i,o-1);-1!==a&&(r=a+1)}AA.setSelectionRange(r,r)}catch(R3){dE(!1,"Something warning of cursor restore. Please fire issue about this: ".concat(R3.message))}}]),gA=WQ(lA,2),cA=gA[0],uA=gA[1],BA=function(A){return rA&&!A.lessEquals(rA)?rA:iA&&!iA.lessEquals(A)?iA:null},QA=function(A){return!BA(A)},EA=function(A,e){var t,n=A,o=QA(n)||n.isEmpty();if(n.isEmpty()||e||(n=BA(n)||n,o=!0),!Q&&!B&&o){var r=n.toString(),i=q(r,e);return i>=0&&(n=DH(mH(r,".",i)),QA(n)||(n=DH(mH(r,".",i,!0)))),n.equals(T)||(t=n,void 0===u&&j(t),null==v||v(n.isEmpty()?null:HH(w,n)),void 0===u&&Z(n,e)),n}return T},CA=(nA=J.useRef(0),oA=function(){kI.cancel(nA.current)},J.useEffect((function(){return oA}),[]),function(A){oA(),nA.current=kI((function(){A()}))}),dA=function A(e){if(cA(),z.current=e,V(e),!U.current){var t=DH($(e));t.isNaN()||EA(t,!0)}null==k||k(e),CA((function(){var t=e;D||(t=e.replace(/ใ€‚/g,".")),t!==e&&A(t)}))},IA=function(A){var e;if(!(A&&aA||!A&&sA)){O.current=!1;var t=DH(K.current?RH(g):g);A||(t=t.negate());var n=(T||DH(0)).add(t.toString()),o=EA(n,!1);null==x||x(HH(w,o),{offset:K.current?RH(g):g,type:A?"up":"down"}),null===(e=L.current)||void 0===e||e.focus()}},pA=function(A){var e=DH($(X)),t=e;t=e.isNaN()?EA(T,A):EA(e,A),void 0!==u?Z(T,!1):t.isNaN()||Z(t,!1)};J.useEffect((function(){if(p&&H){var A=function(A){IA(A.deltaY<0),A.preventDefault()},e=L.current;if(e)return e.addEventListener("wheel",A,{passive:!1}),function(){return e.removeEventListener("wheel",A)}}}));return $E((function(){T.isInvalidate()||Z(T,!1)}),[y,m]),$E((function(){var A=DH(u);j(A);var e=DH($(X));A.equals(e)&&O.current&&!m||Z(A,O.current)}),[u]),$E((function(){m&&uA()}),[X]),J.createElement("div",{className:ud(o,r,(t={},bc(t,"".concat(o,"-focused"),H),bc(t,"".concat(o,"-disabled"),B),bc(t,"".concat(o,"-readonly"),Q),bc(t,"".concat(o,"-not-a-number"),T.isNaN()),bc(t,"".concat(o,"-out-of-range"),!T.isInvalidate()&&!QA(T)),t)),style:i,onFocus:function(){G(!0)},onBlur:function(){F&&pA(!1),G(!1),O.current=!1},onKeyDown:function(A){var e=A.key,t=A.shiftKey;O.current=!0,K.current=t,"Enter"===e&&(U.current||(O.current=!1),pA(!1),null==M||M(A)),!1!==d&&!U.current&&["Up","ArrowUp","Down","ArrowDown"].includes(e)&&(IA("Up"===e||"ArrowUp"===e),A.preventDefault())},onKeyUp:function(){O.current=!1,K.current=!1},onCompositionStart:function(){U.current=!0},onCompositionEnd:function(){U.current=!1,dA(L.current.value)},onBeforeInput:function(){O.current=!0}},h&&J.createElement(NH,{prefixCls:o,upNode:E,downNode:C,upDisabled:aA,downDisabled:sA,onStep:IA}),J.createElement("div",{className:"".concat(R,"-wrap")},J.createElement("input",BQ({autoComplete:"off",role:"spinbutton","aria-valuemin":a,"aria-valuemax":s,"aria-valuenow":T.isInvalidate()?null:T.toString(),step:g},N,{ref:Pd(L,e),className:R,value:X,onChange:function(A){dA(A.target.value)},disabled:B,readOnly:Q}))))})),UH=J.forwardRef((function(A,e){var t=A.disabled,n=A.style,o=A.prefixCls,r=A.value,i=A.prefix,a=A.suffix,s=A.addonBefore,l=A.addonAfter,g=A.className,c=A.classNames,u=Mc(A,PH),B=J.useRef(null);return J.createElement(kH,{className:g,triggerFocus:function(A){B.current&&vH(B.current,A)},prefixCls:o,value:r,disabled:t,style:n,prefix:i,suffix:a,addonAfter:l,addonBefore:s,classNames:c,components:{affixWrapper:"div",groupWrapper:"div",wrapper:"div",groupAddon:"div"}},J.createElement(OH,BQ({prefixCls:o,disabled:t,ref:Pd(B,e),className:null==c?void 0:c.input},u)))}));UH.displayName="InputNumber";const KH=(A,e)=>{let{componentCls:t,borderRadiusSM:n,borderRadiusLG:o}=A;const r="lg"===e?o:n;return{[`&-${e}`]:{[`${t}-handler-wrap`]:{borderStartEndRadius:r,borderEndEndRadius:r},[`${t}-handler-up`]:{borderStartEndRadius:r},[`${t}-handler-down`]:{borderEndEndRadius:r}}}},YH=A=>{const{componentCls:e,lineWidth:t,lineType:n,borderRadius:o,fontSizeLG:r,controlHeightLG:i,controlHeightSM:a,colorError:s,paddingInlineSM:l,paddingBlockSM:g,paddingBlockLG:c,paddingInlineLG:u,colorTextDescription:B,motionDurationMid:Q,handleHoverColor:E,paddingInline:C,paddingBlock:d,handleBg:I,handleActiveBg:p,colorTextDisabled:f,borderRadiusSM:h,borderRadiusLG:w,controlWidth:D,handleOpacity:m,handleBorderColor:y,filledHandleBg:b,lineHeightLG:v,calc:k}=A;return[{[e]:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},Mf(A)),QL(A)),{display:"inline-block",width:D,margin:0,padding:0,borderRadius:o}),tL(A,{[`${e}-handler-wrap`]:{background:I,[`${e}-handler-down`]:{borderBlockStart:`${UE(t)} ${n} ${y}`}}})),sL(A,{[`${e}-handler-wrap`]:{background:b,[`${e}-handler-down`]:{borderBlockStart:`${UE(t)} ${n} ${y}`}},"&:focus-within":{[`${e}-handler-wrap`]:{background:I}}})),rL(A)),{"&-rtl":{direction:"rtl",[`${e}-input`]:{direction:"rtl"}},"&-lg":{padding:0,fontSize:r,lineHeight:v,borderRadius:w,[`input${e}-input`]:{height:k(i).sub(k(t).mul(2)).equal(),padding:`${UE(c)} ${UE(u)}`}},"&-sm":{padding:0,borderRadius:h,[`input${e}-input`]:{height:k(a).sub(k(t).mul(2)).equal(),padding:`${UE(g)} ${UE(l)}`}},"&-out-of-range":{[`${e}-input-wrap`]:{input:{color:s}}},"&-group":Object.assign(Object.assign(Object.assign({},Mf(A)),EL(A)),{"&-wrapper":Object.assign(Object.assign(Object.assign({display:"inline-block",textAlign:"start",verticalAlign:"top",[`${e}-affix-wrapper`]:{width:"100%"},"&-lg":{[`${e}-group-addon`]:{borderRadius:w,fontSize:A.fontSizeLG}},"&-sm":{[`${e}-group-addon`]:{borderRadius:h}}},oL(A)),gL(A)),{[`&:not(${e}-compact-first-item):not(${e}-compact-last-item)${e}-compact-item`]:{[`${e}, ${e}-group-addon`]:{borderRadius:0}},[`&:not(${e}-compact-last-item)${e}-compact-first-item`]:{[`${e}, ${e}-group-addon`]:{borderStartEndRadius:0,borderEndEndRadius:0}},[`&:not(${e}-compact-first-item)${e}-compact-last-item`]:{[`${e}, ${e}-group-addon`]:{borderStartStartRadius:0,borderEndStartRadius:0}}})}),[`&-disabled ${e}-input`]:{cursor:"not-allowed"},[e]:{"&-input":Object.assign(Object.assign(Object.assign(Object.assign({},Mf(A)),{width:"100%",padding:`${UE(d)} ${UE(C)}`,textAlign:"start",backgroundColor:"transparent",border:0,borderRadius:o,outline:0,transition:`all ${Q} linear`,appearance:"textfield",fontSize:"inherit"}),cL(A.colorTextPlaceholder)),{'&[type="number"]::-webkit-inner-spin-button, &[type="number"]::-webkit-outer-spin-button':{margin:0,webkitAppearance:"none",appearance:"none"}})}})},{[e]:Object.assign(Object.assign(Object.assign({[`&:hover ${e}-handler-wrap, &-focused ${e}-handler-wrap`]:{opacity:1},[`${e}-handler-wrap`]:{position:"absolute",insetBlockStart:0,insetInlineEnd:0,width:A.handleWidth,height:"100%",borderStartStartRadius:0,borderStartEndRadius:o,borderEndEndRadius:o,borderEndStartRadius:0,opacity:m,display:"flex",flexDirection:"column",alignItems:"stretch",transition:`opacity ${Q} linear ${Q}`,[`${e}-handler`]:{display:"flex",alignItems:"center",justifyContent:"center",flex:"auto",height:"40%",[`\n ${e}-handler-up-inner,\n ${e}-handler-down-inner\n `]:{marginInlineEnd:0,fontSize:A.handleFontSize}}},[`${e}-handler`]:{height:"50%",overflow:"hidden",color:B,fontWeight:"bold",lineHeight:0,textAlign:"center",cursor:"pointer",borderInlineStart:`${UE(t)} ${n} ${y}`,transition:`all ${Q} linear`,"&:active":{background:p},"&:hover":{height:"60%",[`\n ${e}-handler-up-inner,\n ${e}-handler-down-inner\n `]:{color:E}},"&-up-inner, &-down-inner":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"}}),{color:B,transition:`all ${Q} linear`,userSelect:"none"})},[`${e}-handler-up`]:{borderStartEndRadius:o},[`${e}-handler-down`]:{borderEndEndRadius:o}},KH(A,"lg")),KH(A,"sm")),{"&-disabled, &-readonly":{[`${e}-handler-wrap`]:{display:"none"},[`${e}-input`]:{color:"inherit"}},[`\n ${e}-handler-up-disabled,\n ${e}-handler-down-disabled\n `]:{cursor:"not-allowed"},[`\n ${e}-handler-up-disabled:hover &-handler-up-inner,\n ${e}-handler-down-disabled:hover &-handler-down-inner\n `]:{color:f}})}]},TH=A=>{const{componentCls:e,paddingBlock:t,paddingInline:n,inputAffixPadding:o,controlWidth:r,borderRadiusLG:i,borderRadiusSM:a,paddingInlineLG:s,paddingInlineSM:l,paddingBlockLG:g,paddingBlockSM:c}=A;return{[`${e}-affix-wrapper`]:Object.assign(Object.assign({[`input${e}-input`]:{padding:`${UE(t)} 0`}},QL(A)),{position:"relative",display:"inline-flex",width:r,padding:0,paddingInlineStart:n,"&-lg":{borderRadius:i,paddingInlineStart:s,[`input${e}-input`]:{padding:`${UE(g)} 0`}},"&-sm":{borderRadius:a,paddingInlineStart:l,[`input${e}-input`]:{padding:`${UE(c)} 0`}},[`&:not(${e}-disabled):hover`]:{zIndex:1},"&-focused, &:focus":{zIndex:1},[`&-disabled > ${e}-disabled`]:{background:"transparent"},[`> div${e}`]:{width:"100%",border:"none",outline:"none",[`&${e}-focused`]:{boxShadow:"none !important"}},"&::before":{display:"inline-block",width:0,visibility:"hidden",content:'"\\a0"'},[`${e}-handler-wrap`]:{zIndex:2},[e]:{color:"inherit","&-prefix, &-suffix":{display:"flex",flex:"none",alignItems:"center",pointerEvents:"none"},"&-prefix":{marginInlineEnd:o},"&-suffix":{position:"absolute",insetBlockStart:0,insetInlineEnd:0,zIndex:1,height:"100%",marginInlineEnd:n,marginInlineStart:o}}})}},JH=jf("InputNumber",(A=>{const e=Pf(A,_R(A));return[YH(e),TH(e),cy(e)]}),(A=>{var e;const t=null!==(e=A.handleVisible)&&void 0!==e?e:"auto";return Object.assign(Object.assign({},XR(A)),{controlWidth:90,handleWidth:A.controlHeightSM-2*A.lineWidth,handleFontSize:A.fontSize/2,handleVisible:t,handleActiveBg:A.colorFillAlter,handleBg:A.colorBgContainer,filledHandleBg:new Cp(A.colorFillSecondary).onBackground(A.colorBgContainer).toHexString(),handleHoverColor:A.colorPrimary,handleBorderColor:A.colorBorder,handleOpacity:!0===t?1:0})}),{unitless:{handleOpacity:!0}});const jH=J.forwardRef(((A,e)=>{const{getPrefixCls:t,direction:n}=J.useContext(Xp),o=J.useRef(null);J.useImperativeHandle(e,(()=>o.current));const{className:r,rootClassName:i,size:a,disabled:s,prefixCls:l,addonBefore:g,addonAfter:c,prefix:u,bordered:B,readOnly:Q,status:E,controls:C,variant:d}=A,I=function(A,e){var t={};for(var n in A)Object.prototype.hasOwnProperty.call(A,n)&&e.indexOf(n)<0&&(t[n]=A[n]);if(null!=A&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(n=Object.getOwnPropertySymbols(A);o{var e;return null!==(e=null!=a?a:m)&&void 0!==e?e:A})),L=J.useContext(Af),P=null!=s?s:L,[H,G]=ES(d,B),O=M&&J.createElement(J.Fragment,null,F),U=ud({[`${p}-lg`]:"large"===R,[`${p}-sm`]:"small"===R,[`${p}-rtl`]:"rtl"===n,[`${p}-in-form-item`]:S},w),K=`${p}-group`;return h(J.createElement(UH,Object.assign({ref:o,disabled:P,className:ud(D,f,r,i,y),upHandler:b,downHandler:v,prefixCls:p,readOnly:Q,controls:k,prefix:u,suffix:O,addonAfter:c&&J.createElement(mm,null,J.createElement(cv,{override:!0,status:!0},c)),addonBefore:g&&J.createElement(mm,null,J.createElement(cv,{override:!0,status:!0},g)),classNames:{input:U,variant:ud({[`${p}-${H}`]:G},oS(p,N,M)),affixWrapper:ud({[`${p}-affix-wrapper-sm`]:"small"===R,[`${p}-affix-wrapper-lg`]:"large"===R,[`${p}-affix-wrapper-rtl`]:"rtl"===n},w),wrapper:ud({[`${K}-rtl`]:"rtl"===n},w),groupWrapper:ud({[`${p}-group-wrapper-sm`]:"small"===R,[`${p}-group-wrapper-lg`]:"large"===R,[`${p}-group-wrapper-rtl`]:"rtl"===n,[`${p}-group-wrapper-${H}`]:G},oS(`${p}-group-wrapper`,N,M),w)}},I)))})),qH=jH;qH._InternalPanelDoNotUseOrYouWillBeFired=A=>J.createElement(tw,{theme:{components:{InputNumber:{handleVisible:!0}}}},J.createElement(jH,Object.assign({},A)));const $H=A=>{let e;return"object"==typeof A&&(null==A?void 0:A.clearIcon)?e=A:A&&(e={clearIcon:j.createElement(hw,null)}),e};function zH(A,e){const t=J.useRef([]),n=()=>{t.current.push(setTimeout((()=>{var e,t,n,o;(null===(e=A.current)||void 0===e?void 0:e.input)&&"password"===(null===(t=A.current)||void 0===t?void 0:t.input.getAttribute("type"))&&(null===(n=A.current)||void 0===n?void 0:n.input.hasAttribute("value"))&&(null===(o=A.current)||void 0===o||o.input.removeAttribute("value"))})))};return J.useEffect((()=>(e&&n(),()=>t.current.forEach((A=>{A&&clearTimeout(A)})))),[]),n}const WH=J.forwardRef(((A,e)=>{var t;const{prefixCls:n,bordered:o=!0,status:r,size:i,disabled:a,onBlur:s,onFocus:l,suffix:g,allowClear:c,addonAfter:u,addonBefore:B,className:Q,style:E,styles:C,rootClassName:d,onChange:I,classNames:p,variant:f}=A,h=function(A,e){var t={};for(var n in A)Object.prototype.hasOwnProperty.call(A,n)&&e.indexOf(n)<0&&(t[n]=A[n]);if(null!=A&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(n=Object.getOwnPropertySymbols(A);o{var e;return null!==(e=null!=i?i:S)&&void 0!==e?e:A})),R=j.useContext(Af),L=null!=a?a:R,{status:P,hasFeedback:H,feedbackIcon:G}=J.useContext(gv),O=rS(P,r),U=function(A){return!!(A.prefix||A.suffix||A.allowClear||A.showCount)}(A)||!!H;J.useRef(U);const K=zH(b,!0),Y=(H||g)&&j.createElement(j.Fragment,null,g,H&&G),T=$H(null!=c?c:null==m?void 0:m.allowClear),[q,$]=ES(f,o);return k(j.createElement(FH,Object.assign({ref:Pd(e,b),prefixCls:y,autoComplete:null==m?void 0:m.autoComplete},h,{disabled:L,onBlur:A=>{K(),null==s||s(A)},onFocus:A=>{K(),null==l||l(A)},style:Object.assign(Object.assign({},null==m?void 0:m.style),E),styles:Object.assign(Object.assign({},null==m?void 0:m.styles),C),suffix:Y,allowClear:T,className:ud(Q,d,x,v,F,null==m?void 0:m.className),onChange:A=>{K(),null==I||I(A)},addonAfter:u&&j.createElement(mm,null,j.createElement(cv,{override:!0,status:!0},u)),addonBefore:B&&j.createElement(mm,null,j.createElement(cv,{override:!0,status:!0},B)),classNames:Object.assign(Object.assign(Object.assign({},p),null==m?void 0:m.classNames),{input:ud({[`${y}-sm`]:"small"===N,[`${y}-lg`]:"large"===N,[`${y}-rtl`]:"rtl"===D},null==p?void 0:p.input,null===(t=null==m?void 0:m.classNames)||void 0===t?void 0:t.input,M),variant:ud({[`${y}-${q}`]:$},oS(y,O)),affixWrapper:ud({[`${y}-affix-wrapper-sm`]:"small"===N,[`${y}-affix-wrapper-lg`]:"large"===N,[`${y}-affix-wrapper-rtl`]:"rtl"===D},M),wrapper:ud({[`${y}-group-rtl`]:"rtl"===D},M),groupWrapper:ud({[`${y}-group-wrapper-sm`]:"small"===N,[`${y}-group-wrapper-lg`]:"large"===N,[`${y}-group-wrapper-rtl`]:"rtl"===D,[`${y}-group-wrapper-${q}`]:$},oS(`${y}-group-wrapper`,O,H),M)})})))})),_H=A=>{const{componentCls:e,paddingXS:t}=A;return{[`${e}`]:{display:"inline-flex",alignItems:"center",flexWrap:"nowrap",columnGap:t,"&-rtl":{direction:"rtl"},[`${e}-input`]:{textAlign:"center",paddingInline:A.paddingXXS},[`&${e}-sm ${e}-input`]:{paddingInline:A.calc(A.paddingXXS).div(2).equal()},[`&${e}-lg ${e}-input`]:{paddingInline:A.paddingXS}}}},XH=jf(["Input","OTP"],(A=>{const e=Pf(A,_R(A));return[_H(e)]}),XR);const VH=J.forwardRef(((A,e)=>{const{value:t,onChange:n,onActiveChange:o,index:r,mask:i}=A,a=function(A,e){var t={};for(var n in A)Object.prototype.hasOwnProperty.call(A,n)&&e.indexOf(n)<0&&(t[n]=A[n]);if(null!=A&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(n=Object.getOwnPropertySymbols(A);ol.current));const g=()=>{kI((()=>{var A;const e=null===(A=l.current)||void 0===A?void 0:A.input;document.activeElement===e&&e&&e.select()}))};return J.createElement(WH,Object.assign({},a,{ref:l,value:s,onInput:A=>{n(r,A.target.value)},onFocus:g,onKeyDown:A=>{let{key:e}=A;"ArrowLeft"===e?o(r-1):"ArrowRight"===e&&o(r+1),g()},onKeyUp:A=>{"Backspace"!==A.key||t||o(r-1),g()},onMouseDown:g,onMouseUp:g,type:!0===i?"password":"text"}))}));function ZH(A){return(A||"").split("")}const AG=J.forwardRef(((A,e)=>{const{prefixCls:t,length:n=6,size:o,defaultValue:r,value:i,onChange:a,formatter:s,variant:l,disabled:g,status:c,autoFocus:u,mask:B}=A,Q=function(A,e){var t={};for(var n in A)Object.prototype.hasOwnProperty.call(A,n)&&e.indexOf(n)<0&&(t[n]=A[n]);if(null!=A&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(n=Object.getOwnPropertySymbols(A);onull!=o?o:A)),m=J.useContext(gv),y=rS(m.status,c),b=J.useMemo((()=>Object.assign(Object.assign({},m),{status:y,hasFeedback:!1,feedbackIcon:null})),[m,y]),v=J.useRef(null),k=J.useRef({});J.useImperativeHandle(e,(()=>({focus:()=>{var A;null===(A=k.current[0])||void 0===A||A.focus()},blur:()=>{var A;for(let e=0;es?s(A):A,[x,S]=J.useState(ZH(M(r||"")));J.useEffect((()=>{void 0!==i&&S(ZH(i))}),[i]);const F=mf((A=>{S(A),a&&A.length===n&&A.every((A=>A))&&A.some(((A,e)=>x[e]!==A))&&a(A.join(""))})),N=mf(((A,e)=>{let t=XQ(x);for(let n=0;n=0&&!t[n];n-=1)t.pop();const o=M(t.map((A=>A||" ")).join(""));return t=ZH(o).map(((A,e)=>" "!==A||t[e]?A:t[e])),t})),R=(A,e)=>{var t;const o=N(A,e),r=Math.min(A+e.length,n-1);r!==A&&(null===(t=k.current[r])||void 0===t||t.focus()),F(o)},L=A=>{var e;null===(e=k.current[A])||void 0===e||e.focus()},P={variant:l,disabled:g,status:y,mask:B};return f(J.createElement("div",Object.assign({},I,{ref:v,className:ud(d,{[`${d}-sm`]:"small"===D,[`${d}-lg`]:"large"===D,[`${d}-rtl`]:"rtl"===C},w,h)}),J.createElement(gv.Provider,{value:b},Array.from({length:n}).map(((A,e)=>{const t=`otp-${e}`,n=x[e]||"";return J.createElement(VH,Object.assign({ref:A=>{k.current[e]=A},key:t,index:e,size:D,htmlSize:1,className:`${d}-input`,onChange:R,value:n,onActiveChange:L,autoFocus:0===e&&u},P))})))))}));var eG={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"},tG=function(A,e){return J.createElement(Cw,BQ({},A,{ref:e,icon:eG}))},nG=J.forwardRef(tG),oG={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"},rG=function(A,e){return J.createElement(Cw,BQ({},A,{ref:e,icon:oG}))},iG=J.forwardRef(rG);const aG=A=>A?J.createElement(iG,null):J.createElement(nG,null),sG={click:"onClick",hover:"onMouseOver"},lG=J.forwardRef(((A,e)=>{const{disabled:t,action:n="click",visibilityToggle:o=!0,iconRender:r=aG}=A,i="object"==typeof o&&void 0!==o.visible,[a,s]=J.useState((()=>!!i&&o.visible)),l=J.useRef(null);J.useEffect((()=>{i&&s(o.visible)}),[i,o]);const g=zH(l),c=()=>{t||(a&&g(),s((A=>{var e;const t=!A;return"object"==typeof o&&(null===(e=o.onVisibleChange)||void 0===e||e.call(o,t)),t})))},{className:u,prefixCls:B,inputPrefixCls:Q,size:E}=A,C=function(A,e){var t={};for(var n in A)Object.prototype.hasOwnProperty.call(A,n)&&e.indexOf(n)<0&&(t[n]=A[n]);if(null!=A&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(n=Object.getOwnPropertySymbols(A);o{const e=sG[n]||"",t=r(a),o={[e]:c,className:`${A}-icon`,key:"passwordIcon",onMouseDown:A=>{A.preventDefault()},onMouseUp:A=>{A.preventDefault()}};return J.cloneElement(J.isValidElement(t)?t:J.createElement("span",null,t),o)})(p),h=ud(p,u,{[`${p}-${E}`]:!!E}),w=Object.assign(Object.assign({},wI(C,["suffix","iconRender","visibilityToggle"])),{type:a?"text":"password",className:h,prefixCls:I,suffix:f});return E&&(w.size=E),J.createElement(WH,Object.assign({ref:Pd(e,l)},w))}));const gG=J.forwardRef(((A,e)=>{const{prefixCls:t,inputPrefixCls:n,className:o,size:r,suffix:i,enterButton:a=!1,addonAfter:s,loading:l,disabled:g,onSearch:c,onChange:u,onCompositionStart:B,onCompositionEnd:Q}=A,E=function(A,e){var t={};for(var n in A)Object.prototype.hasOwnProperty.call(A,n)&&e.indexOf(n)<0&&(t[n]=A[n]);if(null!=A&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(n=Object.getOwnPropertySymbols(A);o{var e;return null!==(e=null!=r?r:h)&&void 0!==e?e:A})),D=J.useRef(null),m=A=>{var e;document.activeElement===(null===(e=D.current)||void 0===e?void 0:e.input)&&A.preventDefault()},y=A=>{var e,t;c&&c(null===(t=null===(e=D.current)||void 0===e?void 0:e.input)||void 0===t?void 0:t.value,A,{source:"input"})},b="boolean"==typeof a?J.createElement(qS,null):null,v=`${p}-button`;let k;const M=a||{},x=M.type&&!0===M.type.__ANT_BUTTON;k=x||"button"===M.type?Gw(M,Object.assign({onMouseDown:m,onClick:A=>{var e,t;null===(t=null===(e=null==M?void 0:M.props)||void 0===e?void 0:e.onClick)||void 0===t||t.call(e,A),y(A)},key:"enterButton"},x?{className:v,size:w}:{})):J.createElement(dy,{className:v,type:a?"primary":void 0,size:w,disabled:g,key:"enterButton",onMouseDown:m,onClick:y,loading:l,icon:b},a),s&&(k=[k,Gw(s,{key:"addonAfter"})]);const S=ud(p,{[`${p}-rtl`]:"rtl"===d,[`${p}-${w}`]:!!w,[`${p}-with-button`]:!!a},o);return J.createElement(WH,Object.assign({ref:Pd(D,e),onPressEnter:A=>{I.current||l||y(A)}},E,{size:w,onCompositionStart:A=>{I.current=!0,null==B||B(A)},onCompositionEnd:A=>{I.current=!1,null==Q||Q(A)},prefixCls:f,addonAfter:k,suffix:i,onChange:A=>{A&&A.target&&"click"===A.type&&c&&c(A.target.value,A,{source:"clear"}),u&&u(A)},className:S,disabled:g}))}));var cG,uG=["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"],BG={};function QG(A){var e=arguments.length>1&&void 0!==arguments[1]&&arguments[1],t=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null;cG||((cG=document.createElement("textarea")).setAttribute("tab-index","-1"),cG.setAttribute("aria-hidden","true"),document.body.appendChild(cG)),A.getAttribute("wrap")?cG.setAttribute("wrap",A.getAttribute("wrap")):cG.removeAttribute("wrap");var o=function(A){var e=arguments.length>1&&void 0!==arguments[1]&&arguments[1],t=A.getAttribute("id")||A.getAttribute("data-reactid")||A.getAttribute("name");if(e&&BG[t])return BG[t];var n=window.getComputedStyle(A),o=n.getPropertyValue("box-sizing")||n.getPropertyValue("-moz-box-sizing")||n.getPropertyValue("-webkit-box-sizing"),r=parseFloat(n.getPropertyValue("padding-bottom"))+parseFloat(n.getPropertyValue("padding-top")),i=parseFloat(n.getPropertyValue("border-bottom-width"))+parseFloat(n.getPropertyValue("border-top-width")),a={sizingStyle:uG.map((function(A){return"".concat(A,":").concat(n.getPropertyValue(A))})).join(";"),paddingSize:r,borderSize:i,boxSizing:o};return e&&t&&(BG[t]=a),a}(A,e),r=o.paddingSize,i=o.borderSize,a=o.boxSizing,s=o.sizingStyle;cG.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")),cG.value=A.value||A.placeholder||"";var l,g=void 0,c=void 0,u=cG.scrollHeight;if("border-box"===a?u+=i:"content-box"===a&&(u-=r),null!==t||null!==n){cG.value=" ";var B=cG.scrollHeight-r;null!==t&&(g=B*t,"border-box"===a&&(g=g+r+i),u=Math.max(g,u)),null!==n&&(c=B*n,"border-box"===a&&(c=c+r+i),l=u>c?"":"hidden",u=Math.min(c,u))}var Q={height:u,overflowY:l,resize:"none"};return g&&(Q.minHeight=g),c&&(Q.maxHeight=c),Q}var EG=["prefixCls","onPressEnter","defaultValue","value","autoSize","onResize","className","style","disabled","onChange","onInternalAutoSize"],CG=J.forwardRef((function(A,e){var t=A,n=t.prefixCls;t.onPressEnter;var o=t.defaultValue,r=t.value,i=t.autoSize,a=t.onResize,s=t.className,l=t.style,g=t.disabled,c=t.onChange;t.onInternalAutoSize;var u=Mc(t,EG),B=WQ(vf(o,{value:r,postState:function(A){return null!=A?A:""}}),2),Q=B[0],E=B[1],C=J.useRef();J.useImperativeHandle(e,(function(){return{textArea:C.current}}));var d=WQ(J.useMemo((function(){return i&&"object"===mc(i)?[i.minRows,i.maxRows]:[]}),[i]),2),I=d[0],p=d[1],f=!!i,h=WQ(J.useState(2),2),w=h[0],D=h[1],m=WQ(J.useState(),2),y=m[0],b=m[1],v=function(){D(0)};qE((function(){f&&v()}),[r,I,p,f]),qE((function(){if(0===w)D(1);else if(1===w){var A=QG(C.current,!1,I,p);D(2),b(A)}else!function(){try{if(document.activeElement===C.current){var A=C.current,e=A.selectionStart,t=A.selectionEnd,n=A.scrollTop;C.current.setSelectionRange(e,t),C.current.scrollTop=n}}catch(R3){}}()}),[w]);var k=J.useRef(),M=function(){kI.cancel(k.current)};J.useEffect((function(){return M}),[]);var x=f?y:null,S=kc(kc({},l),x);return 0!==w&&1!==w||(S.overflowY="hidden",S.overflowX="hidden"),J.createElement(hI,{onResize:function(A){2===w&&(null==a||a(A),i&&(M(),k.current=kI((function(){v()}))))},disabled:!(i||a)},J.createElement("textarea",BQ({},u,{ref:C,style:S,className:ud(n,s,bc({},"".concat(n,"-disabled"),g)),disabled:g,value:Q,onChange:function(A){E(A.target.value),null==c||c(A)}})))})),dG=["defaultValue","value","onFocus","onBlur","onChange","allowClear","maxLength","onCompositionStart","onCompositionEnd","suffix","prefixCls","showCount","count","className","style","disabled","hidden","classNames","styles","onResize"],IG=j.forwardRef((function(A,e){var t,n,o=A.defaultValue,r=A.value,i=A.onFocus,a=A.onBlur,s=A.onChange,l=A.allowClear,g=A.maxLength,c=A.onCompositionStart,u=A.onCompositionEnd,B=A.suffix,Q=A.prefixCls,E=void 0===Q?"rc-textarea":Q,C=A.showCount,d=A.count,I=A.className,p=A.style,f=A.disabled,h=A.hidden,w=A.classNames,D=A.styles,m=A.onResize,y=Mc(A,dG),b=WQ(vf(o,{value:r,defaultValue:o}),2),v=b[0],k=b[1],M=null==v?"":String(v),x=WQ(j.useState(!1),2),S=x[0],F=x[1],N=j.useRef(!1),R=WQ(j.useState(null),2),L=R[0],P=R[1],H=J.useRef(null),G=function(){var A;return null===(A=H.current)||void 0===A?void 0:A.textArea},O=function(){G().focus()};J.useImperativeHandle(e,(function(){return{resizableTextArea:H.current,focus:O,blur:function(){G().blur()}}})),J.useEffect((function(){F((function(A){return!f&&A}))}),[f]);var U=WQ(j.useState(null),2),K=U[0],Y=U[1];j.useEffect((function(){var A;K&&(A=G()).setSelectionRange.apply(A,XQ(K))}),[K]);var T,q=xH(d,C),$=null!==(t=q.max)&&void 0!==t?t:g,z=Number($)>0,W=q.strategy(M),_=!!$&&W>$,X=function(A,e){var t=e;!N.current&&q.exceedFormatter&&q.max&&q.strategy(e)>q.max&&e!==(t=q.exceedFormatter(e,{max:q.max}))&&Y([G().selectionStart||0,G().selectionEnd||0]),k(t),bH(A.currentTarget,A,s,t)},V=B;q.show&&(T=q.showFormatter?q.showFormatter({value:M,count:W,maxLength:$}):"".concat(W).concat(z?" / ".concat($):""),V=j.createElement(j.Fragment,null,V,j.createElement("span",{className:ud("".concat(E,"-data-count"),null==w?void 0:w.count),style:null==D?void 0:D.count},T)));var Z=!y.autoSize&&!C&&!l;return j.createElement(kH,{value:M,allowClear:l,handleReset:function(A){k(""),O(),bH(G(),A,s)},suffix:V,prefixCls:E,classNames:kc(kc({},w),{},{affixWrapper:ud(null==w?void 0:w.affixWrapper,(n={},bc(n,"".concat(E,"-show-count"),C),bc(n,"".concat(E,"-textarea-allow-clear"),l),n))}),disabled:f,focused:S,className:ud(I,_&&"".concat(E,"-out-of-range")),style:kc(kc({},p),L&&!Z?{height:"auto"}:{}),dataAttrs:{affixWrapper:{"data-count":"string"==typeof T?T:void 0}},hidden:h},j.createElement(CG,BQ({},y,{maxLength:g,onKeyDown:function(A){var e=y.onPressEnter,t=y.onKeyDown;"Enter"===A.key&&e&&e(A),null==t||t(A)},onChange:function(A){X(A,A.target.value)},onFocus:function(A){F(!0),null==i||i(A)},onBlur:function(A){F(!1),null==a||a(A)},onCompositionStart:function(A){N.current=!0,null==c||c(A)},onCompositionEnd:function(A){N.current=!1,X(A,A.currentTarget.value),null==u||u(A)},className:ud(null==w?void 0:w.textarea),style:kc(kc({},null==D?void 0:D.textarea),{},{resize:null==p?void 0:p.resize}),disabled:f,prefixCls:E,onResize:function(A){var e;null==m||m(A),null!==(e=G())&&void 0!==e&&e.style.height&&P(!0)},ref:H})))}));const pG=J.forwardRef(((A,e)=>{var t,n;const{prefixCls:o,bordered:r=!0,size:i,disabled:a,status:s,allowClear:l,classNames:g,rootClassName:c,className:u,style:B,styles:Q,variant:E}=A,C=function(A,e){var t={};for(var n in A)Object.prototype.hasOwnProperty.call(A,n)&&e.indexOf(n)<0&&(t[n]=A[n]);if(null!=A&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(n=Object.getOwnPropertySymbols(A);o{var A;return{resizableTextArea:null===(A=v.current)||void 0===A?void 0:A.resizableTextArea,focus:A=>{var e,t;!function(A,e){if(!A)return;A.focus(e);const{cursor:t}=e||{};if(t){const e=A.value.length;switch(t){case"start":A.setSelectionRange(0,0);break;case"end":A.setSelectionRange(e,e);break;default:A.setSelectionRange(0,e)}}}(null===(t=null===(e=v.current)||void 0===e?void 0:e.resizableTextArea)||void 0===t?void 0:t.textArea,A)},blur:()=>{var A;return null===(A=v.current)||void 0===A?void 0:A.blur()}}}));const k=d("input",o),M=oD(k),[x,S,F]=DL(k,M),[N,R]=ES(E,r),L=$H(null!=l?l:null==p?void 0:p.allowClear);return x(J.createElement(IG,Object.assign({autoComplete:null==p?void 0:p.autoComplete},C,{style:Object.assign(Object.assign({},null==p?void 0:p.style),B),styles:Object.assign(Object.assign({},null==p?void 0:p.styles),Q),disabled:w,allowClear:L,className:ud(F,M,u,c,null==p?void 0:p.className),classNames:Object.assign(Object.assign(Object.assign({},g),null==p?void 0:p.classNames),{textarea:ud({[`${k}-sm`]:"small"===f,[`${k}-lg`]:"large"===f},S,null==g?void 0:g.textarea,null===(t=null==p?void 0:p.classNames)||void 0===t?void 0:t.textarea),variant:ud({[`${k}-${N}`]:R},oS(k,b)),affixWrapper:ud(`${k}-textarea-affix-wrapper`,{[`${k}-affix-wrapper-rtl`]:"rtl"===I,[`${k}-affix-wrapper-sm`]:"small"===f,[`${k}-affix-wrapper-lg`]:"large"===f,[`${k}-textarea-show-count`]:A.showCount||(null===(n=A.count)||void 0===n?void 0:n.show)},S)}),prefixCls:k,suffix:m&&J.createElement("span",{className:`${k}-textarea-suffix`},y),ref:v})))})),fG=WH;fG.Group=A=>{const{getPrefixCls:e,direction:t}=J.useContext(Xp),{prefixCls:n,className:o}=A,r=e("input-group",n),i=e("input"),[a,s]=DL(i),l=ud(r,{[`${r}-lg`]:"large"===A.size,[`${r}-sm`]:"small"===A.size,[`${r}-compact`]:A.compact,[`${r}-rtl`]:"rtl"===t},s,o),g=J.useContext(gv),c=J.useMemo((()=>Object.assign(Object.assign({},g),{isFormItemInput:!1})),[g]);return a(J.createElement("span",{className:l,style:A.style,onMouseEnter:A.onMouseEnter,onMouseLeave:A.onMouseLeave,onFocus:A.onFocus,onBlur:A.onBlur},J.createElement(gv.Provider,{value:c},A.children)))},fG.Search=gG,fG.TextArea=pG,fG.Password=lG,fG.OTP=AG;var hG=J.createContext(null),wG=J.createContext({}),DG=["prefixCls","className","containerRef"],mG=function(A){var e=A.prefixCls,t=A.className,n=A.containerRef,o=Mc(A,DG),r=J.useContext(wG).panel,i=Hd(r,n);return J.createElement("div",BQ({className:ud("".concat(e,"-content"),t),role:"dialog",ref:i},Lw(A,{aria:!0}),{"aria-modal":"true"},o))};function yG(A){return"string"==typeof A&&String(Number(A))===A?(dE(!1,"Invalid value type of `width` or `height` which should be number type instead."),Number(A)):A}var bG={width:0,height:0,overflow:"hidden",outline:"none",position:"absolute"};function vG(A,e){var t,n,o,r=A.prefixCls,i=A.open,a=A.placement,s=A.inline,l=A.push,g=A.forceRender,c=A.autoFocus,u=A.keyboard,B=A.classNames,Q=A.rootClassName,E=A.rootStyle,C=A.zIndex,d=A.className,I=A.id,p=A.style,f=A.motion,h=A.width,w=A.height,D=A.children,m=A.mask,y=A.maskClosable,b=A.maskMotion,v=A.maskClassName,k=A.maskStyle,M=A.afterOpenChange,x=A.onClose,S=A.onMouseEnter,F=A.onMouseOver,N=A.onMouseLeave,R=A.onClick,L=A.onKeyDown,P=A.onKeyUp,H=A.styles,G=J.useRef(),O=J.useRef(),U=J.useRef();J.useImperativeHandle(e,(function(){return G.current}));J.useEffect((function(){var A;i&&c&&(null===(A=G.current)||void 0===A||A.focus({preventScroll:!0}))}),[i]);var K=WQ(J.useState(!1),2),Y=K[0],T=K[1],j=J.useContext(hG),q=null!==(t=null!==(n=null===(o="boolean"==typeof l?l?{}:{distance:0}:l||{})||void 0===o?void 0:o.distance)&&void 0!==n?n:null==j?void 0:j.pushDistance)&&void 0!==t?t:180,$=J.useMemo((function(){return{pushDistance:q,push:function(){T(!0)},pull:function(){T(!1)}}}),[q]);J.useEffect((function(){var A,e;i?null==j||null===(A=j.push)||void 0===A||A.call(j):null==j||null===(e=j.pull)||void 0===e||e.call(j)}),[i]),J.useEffect((function(){return function(){var A;null==j||null===(A=j.pull)||void 0===A||A.call(j)}}),[]);var z=m&&J.createElement(Nh,BQ({key:"mask"},b,{visible:i}),(function(A,e){var t=A.className,n=A.style;return J.createElement("div",{className:ud("".concat(r,"-mask"),t,null==B?void 0:B.mask,v),style:kc(kc(kc({},n),k),null==H?void 0:H.mask),onClick:y&&i?x:void 0,ref:e})})),W="function"==typeof f?f(a):f,_={};if(Y&&q)switch(a){case"top":_.transform="translateY(".concat(q,"px)");break;case"bottom":_.transform="translateY(".concat(-q,"px)");break;case"left":_.transform="translateX(".concat(q,"px)");break;default:_.transform="translateX(".concat(-q,"px)")}"left"===a||"right"===a?_.width=yG(h):_.height=yG(w);var X={onMouseEnter:S,onMouseOver:F,onMouseLeave:N,onClick:R,onKeyDown:L,onKeyUp:P},V=J.createElement(Nh,BQ({key:"panel"},W,{visible:i,forceRender:g,onVisibleChanged:function(A){null==M||M(A)},removeOnLeave:!1,leavedClassName:"".concat(r,"-content-wrapper-hidden")}),(function(e,t){var n=e.className,o=e.style;return J.createElement("div",BQ({className:ud("".concat(r,"-content-wrapper"),null==B?void 0:B.wrapper,n),style:kc(kc(kc({},_),o),null==H?void 0:H.wrapper)},Lw(A,{data:!0})),J.createElement(mG,BQ({id:I,containerRef:t,prefixCls:r,className:ud(d,null==B?void 0:B.content),style:kc(kc({},p),null==H?void 0:H.content)},Lw(A,{aria:!0}),X),D))})),Z=kc({},E);return C&&(Z.zIndex=C),J.createElement(hG.Provider,{value:$},J.createElement("div",{className:ud(r,"".concat(r,"-").concat(a),Q,bc(bc({},"".concat(r,"-open"),i),"".concat(r,"-inline"),s)),style:Z,tabIndex:-1,ref:G,onKeyDown:function(A){var e=A.keyCode,t=A.shiftKey;switch(e){case rD.TAB:var n;if(e===rD.TAB)if(t||document.activeElement!==U.current){if(t&&document.activeElement===O.current){var o;null===(o=U.current)||void 0===o||o.focus({preventScroll:!0})}}else null===(n=O.current)||void 0===n||n.focus({preventScroll:!0});break;case rD.ESC:x&&u&&(A.stopPropagation(),x(A))}}},z,J.createElement("div",{tabIndex:0,ref:O,style:bG,"aria-hidden":"true","data-sentinel":"start"}),V,J.createElement("div",{tabIndex:0,ref:U,style:bG,"aria-hidden":"true","data-sentinel":"end"})))}var kG=J.forwardRef(vG),MG=function(A){var e=A.open,t=void 0!==e&&e,n=A.prefixCls,o=void 0===n?"rc-drawer":n,r=A.placement,i=void 0===r?"right":r,a=A.autoFocus,s=void 0===a||a,l=A.keyboard,g=void 0===l||l,c=A.width,u=void 0===c?378:c,B=A.mask,Q=void 0===B||B,E=A.maskClosable,C=void 0===E||E,d=A.getContainer,I=A.forceRender,p=A.afterOpenChange,f=A.destroyOnClose,h=A.onMouseEnter,w=A.onMouseOver,D=A.onMouseLeave,m=A.onClick,y=A.onKeyDown,b=A.onKeyUp,v=A.panelRef,k=WQ(J.useState(!1),2),M=k[0],x=k[1],S=WQ(J.useState(!1),2),F=S[0],N=S[1];qE((function(){N(!0)}),[]);var R=!!F&&t,L=J.useRef(),P=J.useRef();qE((function(){R&&(P.current=document.activeElement)}),[R]);var H=J.useMemo((function(){return{panel:v}}),[v]);if(!I&&!M&&!R&&f)return null;var G={onMouseEnter:h,onMouseOver:w,onMouseLeave:D,onClick:m,onKeyDown:y,onKeyUp:b},O=kc(kc({},A),{},{open:R,prefixCls:o,placement:i,autoFocus:s,keyboard:g,width:u,mask:Q,maskClosable:C,inline:!1===d,afterOpenChange:function(A){var e,t;(x(A),null==p||p(A),A||!P.current||null!==(e=L.current)&&void 0!==e&&e.contains(P.current))||(null===(t=P.current)||void 0===t||t.focus({preventScroll:!0}))},ref:L},G);return J.createElement(wG.Provider,{value:H},J.createElement(Sy,{open:R||I||M,autoDestroy:!1,getContainer:d,autoLock:Q&&(R||M)},J.createElement(kG,O)))};const xG=new ad("antSpinMove",{to:{opacity:1}}),SG=new ad("antRotate",{to:{transform:"rotate(405deg)"}}),FG=A=>{const{componentCls:e,calc:t}=A;return{[`${e}`]:Object.assign(Object.assign({},Mf(A)),{position:"absolute",display:"none",color:A.colorPrimary,fontSize:0,textAlign:"center",verticalAlign:"middle",opacity:0,transition:`transform ${A.motionDurationSlow} ${A.motionEaseInOutCirc}`,"&-spinning":{position:"static",display:"inline-block",opacity:1},[`${e}-text`]:{fontSize:A.fontSize,paddingTop:t(t(A.dotSize).sub(A.fontSize)).div(2).add(2).equal()},"&-fullscreen":{position:"fixed",width:"100vw",height:"100vh",backgroundColor:A.colorBgMask,zIndex:A.zIndexPopupBase,inset:0,display:"flex",alignItems:"center",flexDirection:"column",justifyContent:"center",opacity:0,visibility:"hidden",transition:`all ${A.motionDurationMid}`,"&-show":{opacity:1,visibility:"visible"},[`${e}-dot ${e}-dot-item`]:{backgroundColor:A.colorWhite},[`${e}-text`]:{color:A.colorTextLightSolid}},"&-nested-loading":{position:"relative",[`> div > ${e}`]:{position:"absolute",top:0,insetInlineStart:0,zIndex:4,display:"block",width:"100%",height:"100%",maxHeight:A.contentHeight,[`${e}-dot`]:{position:"absolute",top:"50%",insetInlineStart:"50%",margin:t(A.dotSize).mul(-1).div(2).equal()},[`${e}-text`]:{position:"absolute",top:"50%",width:"100%",textShadow:`0 1px 2px ${A.colorBgContainer}`},[`&${e}-show-text ${e}-dot`]:{marginTop:t(A.dotSize).div(2).mul(-1).sub(10).equal()},"&-sm":{[`${e}-dot`]:{margin:t(A.dotSizeSM).mul(-1).div(2).equal()},[`${e}-text`]:{paddingTop:t(t(A.dotSizeSM).sub(A.fontSize)).div(2).add(2).equal()},[`&${e}-show-text ${e}-dot`]:{marginTop:t(A.dotSizeSM).div(2).mul(-1).sub(10).equal()}},"&-lg":{[`${e}-dot`]:{margin:t(A.dotSizeLG).mul(-1).div(2).equal()},[`${e}-text`]:{paddingTop:t(t(A.dotSizeLG).sub(A.fontSize)).div(2).add(2).equal()},[`&${e}-show-text ${e}-dot`]:{marginTop:t(A.dotSizeLG).div(2).mul(-1).sub(10).equal()}}},[`${e}-container`]:{position:"relative",transition:`opacity ${A.motionDurationSlow}`,"&::after":{position:"absolute",top:0,insetInlineEnd:0,bottom:0,insetInlineStart:0,zIndex:10,width:"100%",height:"100%",background:A.colorBgContainer,opacity:0,transition:`all ${A.motionDurationSlow}`,content:'""',pointerEvents:"none"}},[`${e}-blur`]:{clear:"both",opacity:.5,userSelect:"none",pointerEvents:"none","&::after":{opacity:.4,pointerEvents:"auto"}}},"&-tip":{color:A.spinDotDefault},[`${e}-dot`]:{position:"relative",display:"inline-block",fontSize:A.dotSize,width:"1em",height:"1em","&-item":{position:"absolute",display:"block",width:t(A.dotSize).sub(t(A.marginXXS).div(2)).div(2).equal(),height:t(A.dotSize).sub(t(A.marginXXS).div(2)).div(2).equal(),backgroundColor:A.colorPrimary,borderRadius:"100%",transform:"scale(0.75)",transformOrigin:"50% 50%",opacity:.3,animationName:xG,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:SG,animationDuration:"1.2s",animationIterationCount:"infinite",animationTimingFunction:"linear"}},[`&-sm ${e}-dot`]:{fontSize:A.dotSizeSM,i:{width:t(t(A.dotSizeSM).sub(t(A.marginXXS).div(2))).div(2).equal(),height:t(t(A.dotSizeSM).sub(t(A.marginXXS).div(2))).div(2).equal()}},[`&-lg ${e}-dot`]:{fontSize:A.dotSizeLG,i:{width:t(t(A.dotSizeLG).sub(A.marginXXS)).div(2).equal(),height:t(t(A.dotSizeLG).sub(A.marginXXS)).div(2).equal()}},[`&${e}-show-text ${e}-text`]:{display:"block"}})}},NG=jf("Spin",(A=>{const e=Pf(A,{spinDotDefault:A.colorTextDescription});return[FG(e)]}),(A=>{const{controlHeightLG:e,controlHeight:t}=A;return{contentHeight:400,dotSize:e/2,dotSizeSM:.35*e,dotSizeLG:t}}));let RG=null;const LG=A=>{const{prefixCls:e,spinning:t=!0,delay:n=0,className:o,rootClassName:r,size:i="default",tip:a,wrapperClassName:s,style:l,children:g,fullscreen:c=!1}=A,u=function(A,e){var t={};for(var n in A)Object.prototype.hasOwnProperty.call(A,n)&&e.indexOf(n)<0&&(t[n]=A[n]);if(null!=A&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(n=Object.getOwnPropertySymbols(A);ot&&!function(A,e){return!!A&&!!e&&!isNaN(Number(e))}(t,n)));J.useEffect((()=>{if(t){const A=RP(n,(()=>{p(!0)}));return A(),()=>{var e;null===(e=null==A?void 0:A.cancel)||void 0===e||e.call(A)}}p(!1)}),[n,t]);const f=J.useMemo((()=>void 0!==g&&!c),[g,c]),{direction:h,spin:w}=J.useContext(Xp),D=ud(Q,null==w?void 0:w.className,{[`${Q}-sm`]:"small"===i,[`${Q}-lg`]:"large"===i,[`${Q}-spinning`]:I,[`${Q}-show-text`]:!!a,[`${Q}-fullscreen`]:c,[`${Q}-fullscreen-show`]:c&&I,[`${Q}-rtl`]:"rtl"===h},o,r,C,d),m=ud(`${Q}-container`,{[`${Q}-blur`]:I}),y=wI(u,["indicator"]),b=Object.assign(Object.assign({},null==w?void 0:w.style),l),v=J.createElement("div",Object.assign({},y,{style:b,className:D,"aria-live":"polite","aria-busy":I}),function(A,e){const{indicator:t}=e,n=`${A}-dot`;return null===t?null:J.isValidElement(t)?Gw(t,{className:ud(t.props.className,n)}):J.isValidElement(RG)?Gw(RG,{className:ud(RG.props.className,n)}):J.createElement("span",{className:ud(n,`${A}-dot-spin`)},J.createElement("i",{className:`${A}-dot-item`,key:1}),J.createElement("i",{className:`${A}-dot-item`,key:2}),J.createElement("i",{className:`${A}-dot-item`,key:3}),J.createElement("i",{className:`${A}-dot-item`,key:4}))}(Q,A),a&&(f||c)?J.createElement("div",{className:`${Q}-text`},a):null);return E(f?J.createElement("div",Object.assign({},y,{className:ud(`${Q}-nested-loading`,s,C,d)}),I&&J.createElement("div",{key:"loading"},v),J.createElement("div",{className:m,key:"container"},g)):v)};LG.setDefaultIndicator=A=>{RG=A};const PG=A=>{var e,t;const{prefixCls:n,title:o,footer:r,extra:i,loading:a,onClose:s,headerStyle:l,bodyStyle:g,footerStyle:c,children:u,classNames:B,styles:Q}=A,{drawer:E}=J.useContext(Xp),C=J.useCallback((A=>J.createElement("button",{type:"button",onClick:s,"aria-label":"Close",className:`${n}-close`},A)),[s]),[d,I]=_y(qy(A),qy(E),{closable:!0,closeIconRender:C});let p;"boolean"==typeof a?p={spinning:a}:"object"==typeof a&&(p=Object.assign({spinning:!0},a));const f=J.useMemo((()=>{var A,e;return o||d?J.createElement("div",{style:Object.assign(Object.assign(Object.assign({},null===(A=null==E?void 0:E.styles)||void 0===A?void 0:A.header),l),null==Q?void 0:Q.header),className:ud(`${n}-header`,{[`${n}-header-close-only`]:d&&!o&&!i},null===(e=null==E?void 0:E.classNames)||void 0===e?void 0:e.header,null==B?void 0:B.header)},J.createElement("div",{className:`${n}-header-title`},I,o&&J.createElement("div",{className:`${n}-title`},o)),i&&J.createElement("div",{className:`${n}-extra`},i)):null}),[d,I,i,l,n,o]),h=J.useMemo((()=>{var A,e;if(!r)return null;const t=`${n}-footer`;return J.createElement("div",{className:ud(t,null===(A=null==E?void 0:E.classNames)||void 0===A?void 0:A.footer,null==B?void 0:B.footer),style:Object.assign(Object.assign(Object.assign({},null===(e=null==E?void 0:E.styles)||void 0===e?void 0:e.footer),c),null==Q?void 0:Q.footer)},r)}),[r,c,n]);return(null==p?void 0:p.spinning)?J.createElement(LG,Object.assign({spinning:!1,style:{height:"100%",display:"flex",justifyContent:"center",alignItems:"center"}},p)):J.createElement(J.Fragment,null,f,J.createElement("div",{className:ud(`${n}-body`,null==B?void 0:B.body,null===(e=null==E?void 0:E.classNames)||void 0===e?void 0:e.body),style:Object.assign(Object.assign(Object.assign({},null===(t=null==E?void 0:E.styles)||void 0===t?void 0:t.body),g),null==Q?void 0:Q.body)},u),h)},HG=A=>{const e="100%";return{left:`translateX(-${e})`,right:`translateX(${e})`,top:`translateY(-${e})`,bottom:`translateY(${e})`}[A]},GG=(A,e)=>({"&-enter, &-appear":Object.assign(Object.assign({},A),{"&-active":e}),"&-leave":Object.assign(Object.assign({},e),{"&-active":A})}),OG=(A,e)=>Object.assign({"&-enter, &-appear, &-leave":{"&-start":{transition:"none"},"&-active":{transition:`all ${e}`}}},GG({opacity:A},{opacity:1})),UG=(A,e)=>[OG(.7,e),GG({transform:HG(A)},{transform:"none"})],KG=A=>{const{componentCls:e,motionDurationSlow:t}=A;return{[e]:{[`${e}-mask-motion`]:OG(0,t),[`${e}-panel-motion`]:["left","right","top","bottom"].reduce(((A,e)=>Object.assign(Object.assign({},A),{[`&-${e}`]:UG(e,t)})),{})}}},YG=A=>{const{borderRadiusSM:e,componentCls:t,zIndexPopup:n,colorBgMask:o,colorBgElevated:r,motionDurationSlow:i,motionDurationMid:a,paddingXS:s,padding:l,paddingLG:g,fontSizeLG:c,lineHeightLG:u,lineWidth:B,lineType:Q,colorSplit:E,marginXS:C,colorIcon:d,colorIconHover:I,colorBgTextHover:p,colorBgTextActive:f,colorText:h,fontWeightStrong:w,footerPaddingBlock:D,footerPaddingInline:m,calc:y}=A,b=`${t}-content-wrapper`;return{[t]:{position:"fixed",inset:0,zIndex:n,pointerEvents:"none","&-pure":{position:"relative",background:r,display:"flex",flexDirection:"column",[`&${t}-left`]:{boxShadow:A.boxShadowDrawerLeft},[`&${t}-right`]:{boxShadow:A.boxShadowDrawerRight},[`&${t}-top`]:{boxShadow:A.boxShadowDrawerUp},[`&${t}-bottom`]:{boxShadow:A.boxShadowDrawerDown}},"&-inline":{position:"absolute"},[`${t}-mask`]:{position:"absolute",inset:0,zIndex:n,background:o,pointerEvents:"auto"},[b]:{position:"absolute",zIndex:n,maxWidth:"100vw",transition:`all ${i}`,"&-hidden":{display:"none"}},[`&-left > ${b}`]:{top:0,bottom:0,left:{_skip_check_:!0,value:0},boxShadow:A.boxShadowDrawerLeft},[`&-right > ${b}`]:{top:0,right:{_skip_check_:!0,value:0},bottom:0,boxShadow:A.boxShadowDrawerRight},[`&-top > ${b}`]:{top:0,insetInline:0,boxShadow:A.boxShadowDrawerUp},[`&-bottom > ${b}`]:{bottom:0,insetInline:0,boxShadow:A.boxShadowDrawerDown},[`${t}-content`]:{display:"flex",flexDirection:"column",width:"100%",height:"100%",overflow:"auto",background:r,pointerEvents:"auto"},[`${t}-header`]:{display:"flex",flex:0,alignItems:"center",padding:`${UE(l)} ${UE(g)}`,fontSize:c,lineHeight:u,borderBottom:`${UE(B)} ${Q} ${E}`,"&-title":{display:"flex",flex:1,alignItems:"center",minWidth:0,minHeight:0}},[`${t}-extra`]:{flex:"none"},[`${t}-close`]:Object.assign({display:"inline-flex",width:y(c).add(s).equal(),height:y(c).add(s).equal(),borderRadius:e,justifyContent:"center",alignItems:"center",marginInlineEnd:C,color:d,fontWeight:w,fontSize:c,fontStyle:"normal",lineHeight:1,textAlign:"center",textTransform:"none",textDecoration:"none",background:"transparent",border:0,cursor:"pointer",transition:`all ${a}`,textRendering:"auto","&:hover":{color:I,backgroundColor:p,textDecoration:"none"},"&:active":{backgroundColor:f}},Nf(A)),[`${t}-title`]:{flex:1,margin:0,color:h,fontWeight:A.fontWeightStrong,fontSize:c,lineHeight:u},[`${t}-body`]:{flex:1,minWidth:0,minHeight:0,padding:g,overflow:"auto"},[`${t}-footer`]:{flexShrink:0,padding:`${UE(D)} ${UE(m)}`,borderTop:`${UE(B)} ${Q} ${E}`},"&-rtl":{direction:"rtl"}}}},TG=jf("Drawer",(A=>{const e=Pf(A,{});return[YG(e),KG(e)]}),(A=>({zIndexPopup:A.zIndexPopupBase,footerPaddingBlock:A.paddingXS,footerPaddingInline:A.padding})));var JG=function(A,e){var t={};for(var n in A)Object.prototype.hasOwnProperty.call(A,n)&&e.indexOf(n)<0&&(t[n]=A[n]);if(null!=A&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(n=Object.getOwnPropertySymbols(A);o{const{rootClassName:e,width:t,height:n,size:o="default",mask:r=!0,push:i=jG,open:a,afterOpenChange:s,onClose:l,prefixCls:g,getContainer:c,style:u,className:B,visible:Q,afterVisibleChange:E,maskStyle:C,drawerStyle:d,contentWrapperStyle:I}=A,p=JG(A,["rootClassName","width","height","size","mask","push","open","afterOpenChange","onClose","prefixCls","getContainer","style","className","visible","afterVisibleChange","maskStyle","drawerStyle","contentWrapperStyle"]),{getPopupContainer:f,getPrefixCls:h,direction:w,drawer:D}=J.useContext(Xp),m=h("drawer",g),[y,b,v]=TG(m),k=void 0===c&&f?()=>f(document.body):c,M=ud({"no-mask":!r,[`${m}-rtl`]:"rtl"===w},e,b,v),x=J.useMemo((()=>null!=t?t:"large"===o?736:378),[t,o]),S=J.useMemo((()=>null!=n?n:"large"===o?736:378),[n,o]),F={motionName:rm(m,"mask-motion"),motionAppear:!0,motionEnter:!0,motionLeave:!0,motionDeadline:500},N=Ev(),[R,L]=mD("Drawer",p.zIndex),{classNames:P={},styles:H={}}=p,{classNames:G={},styles:O={}}=D||{};return y(J.createElement(mm,null,J.createElement(cv,{status:!0,override:!0},J.createElement(pD.Provider,{value:L},J.createElement(MG,Object.assign({prefixCls:m,onClose:l,maskMotion:F,motion:A=>({motionName:rm(m,`panel-motion-${A}`),motionAppear:!0,motionEnter:!0,motionLeave:!0,motionDeadline:500})},p,{classNames:{mask:ud(P.mask,G.mask),content:ud(P.content,G.content),wrapper:ud(P.wrapper,G.wrapper)},styles:{mask:Object.assign(Object.assign(Object.assign({},H.mask),C),O.mask),content:Object.assign(Object.assign(Object.assign({},H.content),d),O.content),wrapper:Object.assign(Object.assign(Object.assign({},H.wrapper),I),O.wrapper)},open:null!=a?a:Q,mask:r,push:i,width:x,height:S,style:Object.assign(Object.assign({},null==D?void 0:D.style),u),className:ud(null==D?void 0:D.className,B),rootClassName:M,getContainer:k,afterOpenChange:null!=s?s:E,panelRef:N,zIndex:R}),J.createElement(PG,Object.assign({prefixCls:m},p,{onClose:l})))))))};function $G(A){return["small","middle","large"].includes(A)}function zG(A){return!!A&&("number"==typeof A&&!Number.isNaN(A))}qG._InternalPanelDoNotUseOrYouWillBeFired=A=>{const{prefixCls:e,style:t,className:n,placement:o="right"}=A,r=JG(A,["prefixCls","style","className","placement"]),{getPrefixCls:i}=J.useContext(Xp),a=i("drawer",e),[s,l,g]=TG(a),c=ud(a,`${a}-pure`,`${a}-${o}`,l,g,n);return s(J.createElement("div",{className:c,style:t},J.createElement(PG,Object.assign({prefixCls:a},r))))};const WG=j.createContext({latestIndex:0}),_G=WG.Provider,XG=A=>{let{className:e,index:t,children:n,split:o,style:r}=A;const{latestIndex:i}=J.useContext(WG);return null==n?null:J.createElement(J.Fragment,null,J.createElement("div",{className:e,style:r},n),t{var t,n;const{getPrefixCls:o,space:r,direction:i}=J.useContext(Xp),{size:a=(null==r?void 0:r.size)||"small",align:s,className:l,rootClassName:g,children:c,direction:u="horizontal",prefixCls:B,split:Q,style:E,wrap:C=!1,classNames:d,styles:I}=A,p=function(A,e){var t={};for(var n in A)Object.prototype.hasOwnProperty.call(A,n)&&e.indexOf(n)<0&&(t[n]=A[n]);if(null!=A&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(n=Object.getOwnPropertySymbols(A);o{var t,n;null!=A&&(R=e);const o=A&&A.key||`${N}-${e}`;return J.createElement(XG,{className:N,key:o,index:e,split:Q,style:null!==(t=null==I?void 0:I.item)&&void 0!==t?t:null===(n=null==r?void 0:r.styles)||void 0===n?void 0:n.item},A)})),P=J.useMemo((()=>({latestIndex:R})),[R]);if(0===b.length)return null;const H={};return C&&(H.flexWrap="wrap"),!D&&y&&(H.columnGap=f),!w&&m&&(H.rowGap=h),M(J.createElement("div",Object.assign({ref:e,className:F,style:Object.assign(Object.assign(Object.assign({},H),null==r?void 0:r.style),E)},p),J.createElement(_G,{value:P},L)))})),ZG=VG;function AO(A){const[e,t]=J.useState(A);return J.useEffect((()=>{const e=setTimeout((()=>{t(A)}),A.length?0:10);return()=>{clearTimeout(e)}}),[A]),e}ZG.Compact=A=>{const{getPrefixCls:e,direction:t}=J.useContext(Xp),{size:n,direction:o,block:r,prefixCls:i,className:a,rootClassName:s,children:l}=A,g=hm(A,["size","direction","block","prefixCls","className","rootClassName","children"]),c=Cm((A=>null!=n?n:A)),u=e("space-compact",i),[B,Q]=fm(u),E=ud(u,Q,{[`${u}-rtl`]:"rtl"===t,[`${u}-block`]:r,[`${u}-vertical`]:"vertical"===o},a,s),C=J.useContext(wm),d=Fd(l),I=J.useMemo((()=>d.map(((A,e)=>{const t=A&&A.key||`${u}-item-${e}`;return J.createElement(ym,{key:t,compactSize:c,compactDirection:o,isFirstItem:0===e&&(!C||(null==C?void 0:C.isFirstItem)),isLastItem:e===d.length-1&&(!C||(null==C?void 0:C.isLastItem))},A)}))),[n,d,C]);return 0===d.length?null:B(J.createElement("div",Object.assign({className:E},g),I))};const eO=A=>{const{componentCls:e}=A,t=`${e}-show-help`,n=`${e}-show-help-item`;return{[t]:{transition:`opacity ${A.motionDurationSlow} ${A.motionEaseInOut}`,"&-appear, &-enter":{opacity:0,"&-active":{opacity:1}},"&-leave":{opacity:1,"&-active":{opacity:0}},[n]:{overflow:"hidden",transition:`height ${A.motionDurationSlow} ${A.motionEaseInOut},\n opacity ${A.motionDurationSlow} ${A.motionEaseInOut},\n transform ${A.motionDurationSlow} ${A.motionEaseInOut} !important`,[`&${n}-appear, &${n}-enter`]:{transform:"translateY(-5px)",opacity:0,"&-active":{transform:"translateY(0)",opacity:1}},[`&${n}-leave-active`]:{transform:"translateY(-5px)"}}}}},tO=A=>({legend:{display:"block",width:"100%",marginBottom:A.marginLG,padding:0,color:A.colorTextDescription,fontSize:A.fontSizeLG,lineHeight:"inherit",border:0,borderBottom:`${UE(A.lineWidth)} ${A.lineType} ${A.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 ${UE(A.controlOutlineWidth)} ${A.controlOutline}`},output:{display:"block",paddingTop:15,color:A.colorText,fontSize:A.fontSize,lineHeight:A.lineHeight}}),nO=(A,e)=>{const{formItemCls:t}=A;return{[t]:{[`${t}-label > label`]:{height:e},[`${t}-control-input`]:{minHeight:e}}}},oO=A=>{const{componentCls:e}=A;return{[A.componentCls]:Object.assign(Object.assign(Object.assign({},Mf(A)),tO(A)),{[`${e}-text`]:{display:"inline-block",paddingInlineEnd:A.paddingSM},"&-small":Object.assign({},nO(A,A.controlHeightSM)),"&-large":Object.assign({},nO(A,A.controlHeightLG))})}},rO=A=>{const{formItemCls:e,iconCls:t,componentCls:n,rootPrefixCls:o,labelRequiredMarkColor:r,labelColor:i,labelFontSize:a,labelHeight:s,labelColonMarginInlineStart:l,labelColonMarginInlineEnd:g,itemMarginBottom:c}=A;return{[e]:Object.assign(Object.assign({},Mf(A)),{marginBottom:c,verticalAlign:"top","&-with-help":{transition:"none"},[`&-hidden,\n &-hidden.${o}-row`]:{display:"none"},"&-has-warning":{[`${e}-split`]:{color:A.colorError}},"&-has-error":{[`${e}-split`]:{color:A.colorWarning}},[`${e}-label`]:{flexGrow:0,overflow:"hidden",whiteSpace:"nowrap",textAlign:"end",verticalAlign:"middle","&-left":{textAlign:"start"},"&-wrap":{overflow:"unset",lineHeight:A.lineHeight,whiteSpace:"unset"},"> label":{position:"relative",display:"inline-flex",alignItems:"center",maxWidth:"100%",height:s,color:i,fontSize:a,[`> ${t}`]:{fontSize:A.fontSize,verticalAlign:"top"},[`&${e}-required:not(${e}-required-mark-optional)::before`]:{display:"inline-block",marginInlineEnd:A.marginXXS,color:r,fontSize:A.fontSize,fontFamily:"SimSun, sans-serif",lineHeight:1,content:'"*"',[`${n}-hide-required-mark &`]:{display:"none"}},[`${e}-optional`]:{display:"inline-block",marginInlineStart:A.marginXXS,color:A.colorTextDescription,[`${n}-hide-required-mark &`]:{display:"none"}},[`${e}-tooltip`]:{color:A.colorTextDescription,cursor:"help",writingMode:"horizontal-tb",marginInlineStart:A.marginXXS},"&::after":{content:'":"',position:"relative",marginBlock:0,marginInlineStart:l,marginInlineEnd:g},[`&${e}-no-colon::after`]:{content:'"\\a0"'}}},[`${e}-control`]:{"--ant-display":"flex",flexDirection:"column",flexGrow:1,[`&:first-child:not([class^="'${o}-col-'"]):not([class*="' ${o}-col-'"])`]:{width:"100%"},"&-input":{position:"relative",display:"flex",alignItems:"center",minHeight:A.controlHeight,"&-content":{flex:"auto",maxWidth:"100%"}}},[e]:{"&-explain, &-extra":{clear:"both",color:A.colorTextDescription,fontSize:A.fontSize,lineHeight:A.lineHeight},"&-explain-connected":{width:"100%"},"&-extra":{minHeight:A.controlHeightSM,transition:`color ${A.motionDurationMid} ${A.motionEaseOut}`},"&-explain":{"&-error":{color:A.colorError},"&-warning":{color:A.colorWarning}}},[`&-with-help ${e}-explain`]:{height:"auto",opacity:1},[`${e}-feedback-icon`]:{fontSize:A.fontSize,textAlign:"center",visibility:"visible",animationName:jv,animationDuration:A.motionDurationMid,animationTimingFunction:A.motionEaseOutBack,pointerEvents:"none","&-success":{color:A.colorSuccess},"&-error":{color:A.colorError},"&-warning":{color:A.colorWarning},"&-validating":{color:A.colorPrimary}}})}},iO=A=>{const{componentCls:e,formItemCls:t}=A;return{[`${e}-horizontal`]:{[`${t}-label`]:{flexGrow:0},[`${t}-control`]:{flex:"1 1 0",minWidth:0},[`${t}-label[class$='-24'], ${t}-label[class*='-24 ']`]:{[`& + ${t}-control`]:{minWidth:"unset"}}}}},aO=A=>{const{componentCls:e,formItemCls:t,inlineItemMarginBottom:n}=A;return{[`${e}-inline`]:{display:"flex",flexWrap:"wrap",[t]:{flex:"none",marginInlineEnd:A.margin,marginBottom:n,"&-row":{flexWrap:"nowrap"},[`> ${t}-label,\n > ${t}-control`]:{display:"inline-block",verticalAlign:"top"},[`> ${t}-label`]:{flex:"none"},[`${e}-text`]:{display:"inline-block"},[`${t}-has-feedback`]:{display:"inline-block"}}}}},sO=A=>({padding:A.verticalLabelPadding,margin:A.verticalLabelMargin,whiteSpace:"initial",textAlign:"start","> label":{margin:0,"&::after":{visibility:"hidden"}}}),lO=A=>{const{componentCls:e,formItemCls:t,rootPrefixCls:n}=A;return{[`${t} ${t}-label`]:sO(A),[`${e}:not(${e}-inline)`]:{[t]:{flexWrap:"wrap",[`${t}-label, ${t}-control`]:{[`&:not([class*=" ${n}-col-xs"])`]:{flex:"0 0 100%",maxWidth:"100%"}}}}}},gO=A=>{const{componentCls:e,formItemCls:t,rootPrefixCls:n}=A;return{[`${e}-vertical`]:{[t]:{"&-row":{flexDirection:"column"},"&-label > label":{height:"auto"},[`${e}-item-control`]:{width:"100%"}}},[`${e}-vertical ${t}-label,\n .${n}-col-24${t}-label,\n .${n}-col-xl-24${t}-label`]:sO(A),[`@media (max-width: ${UE(A.screenXSMax)})`]:[lO(A),{[e]:{[`.${n}-col-xs-24${t}-label`]:sO(A)}}],[`@media (max-width: ${UE(A.screenSMMax)})`]:{[e]:{[`.${n}-col-sm-24${t}-label`]:sO(A)}},[`@media (max-width: ${UE(A.screenMDMax)})`]:{[e]:{[`.${n}-col-md-24${t}-label`]:sO(A)}},[`@media (max-width: ${UE(A.screenLGMax)})`]:{[e]:{[`.${n}-col-lg-24${t}-label`]:sO(A)}}}},cO=(A,e)=>Pf(A,{formItemCls:`${A.componentCls}-item`,rootPrefixCls:e}),uO=jf("Form",((A,e)=>{let{rootPrefixCls:t}=e;const n=cO(A,t);return[oO(n),rO(n),eO(n),iO(n),aO(n),gO(n),fv(n),jv]}),(A=>({labelRequiredMarkColor:A.colorError,labelColor:A.colorTextHeading,labelFontSize:A.fontSize,labelHeight:A.controlHeight,labelColonMarginInlineStart:A.marginXXS/2,labelColonMarginInlineEnd:A.marginXS,itemMarginBottom:A.marginLG,verticalLabelPadding:`0 0 ${A.paddingXS}px`,verticalLabelMargin:0,inlineItemMarginBottom:0})),{order:-1e3}),BO=[];function QO(A,e,t){return{key:"string"==typeof A?A:`${e}-${arguments.length>3&&void 0!==arguments[3]?arguments[3]:0}`,error:A,errorStatus:t}}const EO=A=>{let{help:e,helpStatus:t,errors:n=BO,warnings:o=BO,className:r,fieldId:i,onVisibleChanged:a}=A;const{prefixCls:s}=J.useContext(lv),l=`${s}-item-explain`,g=oD(s),[c,u,B]=uO(s,g),Q=J.useMemo((()=>om(s)),[s]),E=AO(n),C=AO(o),d=J.useMemo((()=>null!=e?[QO(e,"help",t)]:[].concat(XQ(E.map(((A,e)=>QO(A,"error","error",e)))),XQ(C.map(((A,e)=>QO(A,"warning","warning",e)))))),[e,t,E,C]),I={};return i&&(I.id=`${i}_help`),c(J.createElement(Nh,{motionDeadline:Q.motionDeadline,motionName:`${s}-show-help`,visible:!!d.length,onVisibleChanged:a},(A=>{const{className:e,style:t}=A;return J.createElement("div",Object.assign({},I,{className:ud(l,e,B,g,r,u),style:t,role:"alert"}),J.createElement(Th,Object.assign({keys:d},om(s),{motionName:`${s}-show-help-item`,component:!1}),(A=>{const{key:e,error:t,errorStatus:n,className:o,style:r}=A;return J.createElement("div",{key:e,className:ud(o,{[`${l}-${n}`]:n}),style:r},t)})))})))},CO=["parentNode"],dO="form_item";function IO(A){return void 0===A||!1===A?[]:Array.isArray(A)?A:[A]}function pO(A,e){if(!A.length)return;const t=A.join("_");if(e)return`${e}_${t}`;return CO.includes(t)?`${dO}_${t}`:t}function fO(A,e,t,n,o,r){let i=n;return void 0!==r?i=r:t.validating?i="validating":A.length?i="error":e.length?i="warning":(t.touched||o&&t.validated)&&(i="success"),i}function hO(A){return IO(A).join("_")}function wO(A){const[e]=Vb(),t=J.useRef({}),n=J.useMemo((()=>null!=A?A:Object.assign(Object.assign({},e),{__INTERNAL__:{itemRef:A=>e=>{const n=hO(A);e?t.current[n]=e:delete t.current[n]}},scrollToField:function(A){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const t=function(A,e){const t=e.getFieldInstance(A);if(t instanceof HTMLElement)return t;if((null==t?void 0:t.nativeElement)instanceof HTMLElement)return t.nativeElement;const n=pO(IO(A),e.__INTERNAL__.name);return n?document.getElementById(n):void 0}(A,n);t&&function(A,e){if(!A.isConnected||!(A=>{let e=A;for(;e&&e.parentNode;){if(e.parentNode===document)return!0;e=e.parentNode instanceof ShadowRoot?e.parentNode.host:e.parentNode}return!1})(A))return;const t=(A=>{const e=window.getComputedStyle(A);return{top:parseFloat(e.scrollMarginTop)||0,right:parseFloat(e.scrollMarginRight)||0,bottom:parseFloat(e.scrollMarginBottom)||0,left:parseFloat(e.scrollMarginLeft)||0}})(A);if("object"==typeof(n=e)&&"function"==typeof n.behavior)return e.behavior(tD(A,e));var n;const o="boolean"==typeof e||null==e?void 0:e.behavior;for(const{el:r,top:i,left:a}of tD(A,nD(e))){const A=i-t.top+t.bottom,e=a-t.left+t.right;r.scroll({top:A,left:e,behavior:o})}}(t,Object.assign({scrollMode:"if-needed",block:"nearest"},e))},getFieldInstance:A=>{const e=hO(A);return t.current[e]}})),[A,e]);return[n]}const DO=(A,e)=>{const t=J.useContext(Af),{getPrefixCls:n,direction:o,form:r}=J.useContext(Xp),{prefixCls:i,className:a,rootClassName:s,size:l,disabled:g=t,form:c,colon:u,labelAlign:B,labelWrap:Q,labelCol:E,wrapperCol:C,hideRequiredMark:d,layout:I="horizontal",scrollToFirstError:p,requiredMark:f,onFinishFailed:h,name:w,style:D,feedbackIcons:m,variant:y}=A,b=function(A,e){var t={};for(var n in A)Object.prototype.hasOwnProperty.call(A,n)&&e.indexOf(n)<0&&(t[n]=A[n]);if(null!=A&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(n=Object.getOwnPropertySymbols(A);ovoid 0!==f?f:!d&&(!r||void 0===r.requiredMark||r.requiredMark)),[d,f,r]),x=null!=u?u:null==r?void 0:r.colon,S=n("form",i),F=oD(S),[N,R,L]=uO(S,F),P=ud(S,`${S}-${I}`,{[`${S}-hide-required-mark`]:!1===M,[`${S}-rtl`]:"rtl"===o,[`${S}-${v}`]:v},L,F,R,null==r?void 0:r.className,a,s),[H]=wO(c),{__INTERNAL__:G}=H;G.name=w;const O=J.useMemo((()=>({name:w,labelAlign:B,labelCol:E,labelWrap:Q,wrapperCol:C,vertical:"vertical"===I,colon:x,requiredMark:M,itemRef:G.itemRef,form:H,feedbackIcons:m})),[w,B,E,C,I,x,M,H,m]);J.useImperativeHandle(e,(()=>H));const U=(A,e)=>{if(A){let t={block:"nearest"};"object"==typeof A&&(t=A),H.scrollToField(e,t)}};return N(J.createElement(uv.Provider,{value:y},J.createElement(ef,{disabled:g},J.createElement(tf.Provider,{value:v},J.createElement(sv,{validateMessages:k},J.createElement(iv.Provider,{value:O},J.createElement(rv,Object.assign({id:w},b,{name:w,onFinishFailed:A=>{if(null==h||h(A),A.errorFields.length){const e=A.errorFields[0].name;if(void 0!==p)return void U(p,e);r&&void 0!==r.scrollToFirstError&&U(r.scrollToFirstError,e)}},form:H,style:Object.assign(Object.assign({},null==r?void 0:r.style),D),className:P}))))))))},mO=J.forwardRef(DO);const yO=()=>{const{status:A,errors:e=[],warnings:t=[]}=J.useContext(gv);return{status:A,errors:e,warnings:t}};yO.Context=gv;const bO=A=>{const{formItemCls:e}=A;return{"@media screen and (-ms-high-contrast: active), (-ms-high-contrast: none)":{[`${e}-control`]:{display:"flex"}}}},vO=Tf(["Form","item-item"],((A,e)=>{let{rootPrefixCls:t}=e;const n=cO(A,t);return[bO(n)]})),kO=A=>{const{prefixCls:e,status:t,wrapperCol:n,children:o,errors:r,warnings:i,_internalItemRender:a,extra:s,help:l,fieldId:g,marginBottom:c,onErrorVisibleChanged:u}=A,B=`${e}-item`,Q=J.useContext(iv),E=n||Q.wrapperCol||{},C=ud(`${B}-control`,E.className),d=J.useMemo((()=>Object.assign({},Q)),[Q]);delete d.labelCol,delete d.wrapperCol;const I=J.createElement("div",{className:`${B}-control-input`},J.createElement("div",{className:`${B}-control-input-content`},o)),p=J.useMemo((()=>({prefixCls:e,status:t})),[e,t]),f=null!==c||r.length||i.length?J.createElement("div",{style:{display:"flex",flexWrap:"nowrap"}},J.createElement(lv.Provider,{value:p},J.createElement(EO,{fieldId:g,errors:r,warnings:i,help:l,helpStatus:t,className:`${B}-explain-connected`,onVisibleChanged:u})),!!c&&J.createElement("div",{style:{width:0,height:c}})):null,h={};g&&(h.id=`${g}_extra`);const w=s?J.createElement("div",Object.assign({},h,{className:`${B}-extra`}),s):null,D=a&&"pro_table_render"===a.mark&&a.render?a.render(A,{input:I,errorList:f,extra:w}):J.createElement(J.Fragment,null,I,f,w);return J.createElement(iv.Provider,{value:d},J.createElement(YP,Object.assign({},E,{className:C}),D),J.createElement(vO,{prefixCls:e}))};var MO={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"},xO=function(A,e){return J.createElement(Cw,BQ({},A,{ref:e,icon:MO}))},SO=J.forwardRef(xO);const FO=A=>{let{prefixCls:e,label:t,htmlFor:n,labelCol:o,labelAlign:r,colon:i,required:a,requiredMark:s,tooltip:l}=A;var g;const[c]=_I("Form"),{vertical:u,labelAlign:B,labelCol:Q,labelWrap:E,colon:C}=J.useContext(iv);if(!t)return null;const d=o||Q||{},I=`${e}-item-label`,p=ud(I,"left"===(r||B)&&`${I}-left`,d.className,{[`${I}-wrap`]:!!E});let f=t;const h=!0===i||!1!==C&&!1!==i;h&&!u&&"string"==typeof t&&""!==t.trim()&&(f=t.replace(/[:|๏ผš]\s*$/,""));const w=function(A){return A?"object"!=typeof A||J.isValidElement(A)?{title:A}:A:null}(l);if(w){const{icon:A=J.createElement(SO,null)}=w,t=function(A,e){var t={};for(var n in A)Object.prototype.hasOwnProperty.call(A,n)&&e.indexOf(n)<0&&(t[n]=A[n]);if(null!=A&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(n=Object.getOwnPropertySymbols(A);o{A.preventDefault()},tabIndex:null}));f=J.createElement(J.Fragment,null,f,n)}const D="optional"===s,m="function"==typeof s;m?f=s(f,{required:!!a}):D&&!a&&(f=J.createElement(J.Fragment,null,f,J.createElement("span",{className:`${e}-item-optional`,title:""},(null==c?void 0:c.optional)||(null===(g=JI.Form)||void 0===g?void 0:g.optional))));const y=ud({[`${e}-item-required`]:a,[`${e}-item-required-mark-optional`]:D||m,[`${e}-item-no-colon`]:!h});return J.createElement(YP,Object.assign({},d,{className:p}),J.createElement("label",{htmlFor:n,className:y,title:"string"==typeof t?t:""},f))},NO={success:Iw,warning:vw,error:hw,validating:ID};function RO(A){let{children:e,errors:t,warnings:n,hasFeedback:o,validateStatus:r,prefixCls:i,meta:a,noStyle:s}=A;const l=`${i}-item`,{feedbackIcons:g}=J.useContext(iv),c=fO(t,n,a,null,!!o,r),{isFormItemInput:u,status:B,hasFeedback:Q,feedbackIcon:E}=J.useContext(gv),C=J.useMemo((()=>{var A;let e;if(o){const r=!0!==o&&o.icons||g,i=c&&(null===(A=null==r?void 0:r({status:c,errors:t,warnings:n}))||void 0===A?void 0:A[c]),a=c&&NO[c];e=!1!==i&&a?J.createElement("span",{className:ud(`${l}-feedback-icon`,`${l}-feedback-icon-${c}`)},i||J.createElement(a,null)):null}const r={status:c||"",errors:t,warnings:n,hasFeedback:!!o,feedbackIcon:e,isFormItemInput:!0};return s&&(r.status=(null!=c?c:B)||"",r.isFormItemInput=u,r.hasFeedback=!!(null!=o?o:Q),r.feedbackIcon=void 0!==o?r.feedbackIcon:E),r}),[c,o,s,u,B]);return J.createElement(gv.Provider,{value:C},e)}var LO=function(A,e){var t={};for(var n in A)Object.prototype.hasOwnProperty.call(A,n)&&e.indexOf(n)<0&&(t[n]=A[n]);if(null!=A&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(n=Object.getOwnPropertySymbols(A);o{if(m&&f.current){const A=getComputedStyle(f.current);v(parseInt(A.marginBottom,10))}}),[m,y]);const k=function(){let A=arguments.length>0&&void 0!==arguments[0]&&arguments[0];return fO(A?h:l.errors,A?w:l.warnings,l,"",!!g,s)}(),M=ud(I,t,n,{[`${I}-with-help`]:D||h.length||w.length,[`${I}-has-feedback`]:k&&g,[`${I}-has-success`]:"success"===k,[`${I}-has-warning`]:"warning"===k,[`${I}-has-error`]:"error"===k,[`${I}-is-validating`]:"validating"===k,[`${I}-hidden`]:c});return J.createElement("div",{className:M,style:o,ref:f},J.createElement(JP,Object.assign({className:`${I}-row`},wI(d,["_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"])),J.createElement(FO,Object.assign({htmlFor:B},A,{requiredMark:p,required:null!=Q?Q:E,prefixCls:e})),J.createElement(kO,Object.assign({},A,l,{errors:h,warnings:w,prefixCls:e,status:k,help:r,marginBottom:b,onErrorVisibleChanged:A=>{A||v(null)}}),J.createElement(av.Provider,{value:C},J.createElement(RO,{prefixCls:e,meta:l,errors:l.errors,warnings:l.warnings,hasFeedback:g,validateStatus:k},u)))),!!b&&J.createElement("div",{className:`${I}-margin-offset`,style:{marginBottom:-b}}))}const HO=J.memo((A=>{let{children:e}=A;return e}),((A,e)=>function(A,e){const t=Object.keys(A),n=Object.keys(e);return t.length===n.length&&t.every((t=>{const n=A[t],o=e[t];return n===o||"function"==typeof n||"function"==typeof o}))}(A.control,e.control)&&A.update===e.update&&A.childProps.length===e.childProps.length&&A.childProps.every(((A,t)=>A===e.childProps[t]))));const GO=function(A){const{name:e,noStyle:t,className:n,dependencies:o,prefixCls:r,shouldUpdate:i,rules:a,children:s,required:l,label:g,messageVariables:c,trigger:u="onChange",validateTrigger:B,hidden:Q,help:E}=A,{getPrefixCls:C}=J.useContext(Xp),{name:d}=J.useContext(iv),I=function(A){if("function"==typeof A)return A;const e=Fd(A);return e.length<=1?e[0]:e}(s),p="function"==typeof I,f=J.useContext(av),{validateTrigger:h}=J.useContext(Zy),w=void 0!==B?B:h,D=!(null==e),m=C("form",r),y=oD(m),[b,v,k]=uO(m,y);OI();const M=J.useContext(Ab),x=J.useRef(),[S,F]=function(A){const[e,t]=J.useState(A),n=J.useRef(null),o=J.useRef([]),r=J.useRef(!1);return J.useEffect((()=>(r.current=!1,()=>{r.current=!0,kI.cancel(n.current),n.current=null})),[]),[e,function(A){r.current||(null===n.current&&(o.current=[],n.current=kI((()=>{n.current=null,t((A=>{let e=A;return o.current.forEach((A=>{e=A(e)})),e}))}))),o.current.push(A))}]}({}),[N,R]=yf((()=>({errors:[],warnings:[],touched:!1,validating:!1,name:[],validated:!1}))),L=(A,e)=>{F((t=>{const n=Object.assign({},t),o=[].concat(XQ(A.name.slice(0,-1)),XQ(e)).join("__SPLIT__");return A.destroy?delete n[o]:n[o]=A,n}))},[P,H]=J.useMemo((()=>{const A=XQ(N.errors),e=XQ(N.warnings);return Object.values(S).forEach((t=>{A.push.apply(A,XQ(t.errors||[])),e.push.apply(e,XQ(t.warnings||[]))})),[A,e]}),[S,N.errors,N.warnings]),G=function(){const{itemRef:A}=J.useContext(iv),e=J.useRef({});return function(t,n){const o=n&&"object"==typeof n&&n.ref,r=t.join("_");return e.current.name===r&&e.current.originRef===o||(e.current.name=r,e.current.originRef=o,e.current.ref=Pd(A(t),o)),e.current.ref}}();function O(e,o,r){return t&&!Q?J.createElement(RO,{prefixCls:m,hasFeedback:A.hasFeedback,validateStatus:A.validateStatus,meta:N,errors:P,warnings:H,noStyle:!0},e):J.createElement(PO,Object.assign({key:"row"},A,{className:ud(n,k,y,v),prefixCls:m,fieldId:o,isRequired:r,errors:P,warnings:H,meta:N,onSubItemMetaChange:L}),e)}if(!D&&!p&&!o)return b(O(I));let U={};return"string"==typeof g?U.label=g:e&&(U.label=String(e)),c&&(U=Object.assign(Object.assign({},U),c)),b(J.createElement(jb,Object.assign({},A,{messageVariables:U,trigger:u,validateTrigger:w,onMetaChange:A=>{const e=null==M?void 0:M.getKey(A.name);if(R(A.destroy?{errors:[],warnings:[],touched:!1,validating:!1,name:[],validated:!1}:A,!0),t&&!1!==E&&f){let t=A.name;if(A.destroy)t=x.current||t;else if(void 0!==e){const[A,n]=e;t=[A].concat(XQ(n)),x.current=t}f(A,t)}}}),((t,n,r)=>{const s=IO(e).length&&n?n.name:[],g=pO(s,d),c=void 0!==l?l:!(!a||!a.some((A=>{if(A&&"object"==typeof A&&A.required&&!A.warningOnly)return!0;if("function"==typeof A){const e=A(r);return e&&e.required&&!e.warningOnly}return!1}))),B=Object.assign({},t);let Q=null;if(Array.isArray(I)&&D)Q=I;else if(p&&(!i&&!o||D));else if(!o||p||D)if(J.isValidElement(I)){const e=Object.assign(Object.assign({},I.props),B);if(e.id||(e.id=g),E||P.length>0||H.length>0||A.extra){const t=[];(E||P.length>0)&&t.push(`${g}_help`),A.extra&&t.push(`${g}_extra`),e["aria-describedby"]=t.join(" ")}P.length>0&&(e["aria-invalid"]="true"),c&&(e["aria-required"]="true"),Gd(I)&&(e.ref=G(s,I));new Set([].concat(XQ(IO(u)),XQ(IO(w)))).forEach((A=>{e[A]=function(){for(var e,t,n,o,r,i=arguments.length,a=new Array(i),s=0;s{var{prefixCls:e,children:t}=A,n=function(A,e){var t={};for(var n in A)Object.prototype.hasOwnProperty.call(A,n)&&e.indexOf(n)<0&&(t[n]=A[n]);if(null!=A&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(n=Object.getOwnPropertySymbols(A);o({prefixCls:r,status:"error"})),[r]);return J.createElement(qb,Object.assign({},n),((A,e,n)=>J.createElement(lv.Provider,{value:i},t(A.map((A=>Object.assign(Object.assign({},A),{fieldKey:A.key}))),e,{errors:n.errors,warnings:n.warnings}))))},OO.ErrorList=EO,OO.useForm=wO,OO.useFormInstance=function(){const{form:A}=J.useContext(iv);return A},OO.useWatch=ov,OO.Provider=sv,OO.create=()=>{};let UO=null,KO=A=>A(),YO=[],TO={};function JO(){const{getContainer:A,duration:e,rtl:t,maxCount:n,top:o}=TO,r=(null==A?void 0:A())||document.body;return{getContainer:()=>r,duration:e,rtl:t,maxCount:n,top:o}}const jO=j.forwardRef(((A,e)=>{const{messageConfig:t,sync:n}=A,{getPrefixCls:o}=J.useContext(Xp),r=TO.prefixCls||o("message"),i=J.useContext(nM),[a,s]=PD(Object.assign(Object.assign(Object.assign({},t),{prefixCls:r}),i.message));return j.useImperativeHandle(e,(()=>{const A=Object.assign({},a);return Object.keys(A).forEach((e=>{A[e]=function(){return n(),a[e].apply(a,arguments)}})),{instance:A,sync:n}})),s})),qO=j.forwardRef(((A,e)=>{const[t,n]=j.useState(JO),o=()=>{n(JO)};j.useEffect(o,[]);const r=Zh(),i=r.getRootPrefixCls(),a=r.getIconPrefixCls(),s=r.getTheme(),l=j.createElement(jO,{ref:e,sync:o,messageConfig:t});return j.createElement(tw,{prefixCls:i,iconPrefixCls:a,theme:s},r.holderRender?r.holderRender(l):l)}));function $O(){if(!UO){const A=document.createDocumentFragment(),e={fragment:A};return UO=e,void KO((()=>{zD(j.createElement(qO,{ref:A=>{const{instance:t,sync:n}=A||{};Promise.resolve().then((()=>{!e.instance&&t&&(e.instance=t,e.sync=n,$O())}))}}),A)}))}UO.instance&&(YO.forEach((A=>{const{type:e,skipped:t}=A;if(!t)switch(e){case"open":KO((()=>{const e=UO.instance.open(Object.assign(Object.assign({},TO),A.config));null==e||e.then(A.resolve),A.setCloseFn(e)}));break;case"destroy":KO((()=>{null==UO||UO.instance.destroy(A.key)}));break;default:KO((()=>{var t;const n=(t=UO.instance)[e].apply(t,XQ(A.args));null==n||n.then(A.resolve),A.setCloseFn(n)}))}})),YO=[])}const zO={open:function(A){const e=MD((e=>{let t;const n={type:"open",config:A,resolve:e,setCloseFn:A=>{t=A}};return YO.push(n),()=>{t?KO((()=>{t()})):n.skipped=!0}}));return $O(),e},destroy:A=>{YO.push({type:"destroy",key:A}),$O()},config:function(A){TO=Object.assign(Object.assign({},TO),A),KO((()=>{var A;null===(A=null==UO?void 0:UO.sync)||void 0===A||A.call(UO)}))},useMessage:HD,_InternalPanelDoNotUseOrYouWillBeFired:A=>{const{prefixCls:e,className:t,type:n,icon:o,content:r}=A,i=function(A,e){var t={};for(var n in A)Object.prototype.hasOwnProperty.call(A,n)&&e.indexOf(n)<0&&(t[n]=A[n]);if(null!=A&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(n=Object.getOwnPropertySymbols(A);o{WO[A]=function(){for(var e=arguments.length,t=new Array(e),n=0;n{let n;const o={type:A,args:e,resolve:t,setCloseFn:A=>{n=A}};return YO.push(o),()=>{n?KO((()=>{n()})):o.skipped=!0}}));return $O(),t}(A,t)}}));const _O=aM((A=>{const{prefixCls:e,className:t,closeIcon:n,closable:o,type:r,title:i,children:a,footer:s}=A,l=function(A,e){var t={};for(var n in A)Object.prototype.hasOwnProperty.call(A,n)&&e.indexOf(n)<0&&(t[n]=A[n]);if(null!=A&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(n=Object.getOwnPropertySymbols(A);oA(),eU=[],tU={};function nU(){const{getContainer:A,rtl:e,maxCount:t,top:n,bottom:o}=tU,r=(null==A?void 0:A())||document.body;return{getContainer:()=>r,rtl:e,maxCount:t,top:n,bottom:o}}const oU=j.forwardRef(((A,e)=>{const{notificationConfig:t,sync:n}=A,{getPrefixCls:o}=J.useContext(Xp),r=tU.prefixCls||o("notification"),i=J.useContext(nM),[a,s]=eM(Object.assign(Object.assign(Object.assign({},t),{prefixCls:r}),i.notification));return j.useEffect(n,[]),j.useImperativeHandle(e,(()=>{const A=Object.assign({},a);return Object.keys(A).forEach((e=>{A[e]=function(){return n(),a[e].apply(a,arguments)}})),{instance:A,sync:n}})),s})),rU=j.forwardRef(((A,e)=>{const[t,n]=j.useState(nU),o=()=>{n(nU)};j.useEffect(o,[]);const r=Zh(),i=r.getRootPrefixCls(),a=r.getIconPrefixCls(),s=r.getTheme(),l=j.createElement(oU,{ref:e,sync:o,notificationConfig:t});return j.createElement(tw,{prefixCls:i,iconPrefixCls:a,theme:s},r.holderRender?r.holderRender(l):l)}));function iU(){if(!ZO){const A=document.createDocumentFragment(),e={fragment:A};return ZO=e,void AU((()=>{zD(j.createElement(rU,{ref:A=>{const{instance:t,sync:n}=A||{};Promise.resolve().then((()=>{!e.instance&&t&&(e.instance=t,e.sync=n,iU())}))}}),A)}))}ZO.instance&&(eU.forEach((A=>{switch(A.type){case"open":AU((()=>{ZO.instance.open(Object.assign(Object.assign({},tU),A.config))}));break;case"destroy":AU((()=>{null==ZO||ZO.instance.destroy(A.key)}))}})),eU=[])}function aU(A){eU.push({type:"open",config:A}),iU()}const sU={open:aU,destroy:A=>{eU.push({type:"destroy",key:A}),iU()},config:function(A){tU=Object.assign(Object.assign({},tU),A),AU((()=>{var A;null===(A=null==ZO?void 0:ZO.sync)||void 0===A||A.call(ZO)}))},useNotification:tM,_InternalPanelDoNotUseOrYouWillBeFired:A=>{const{prefixCls:e,className:t,icon:n,type:o,message:r,description:i,btn:a,closable:s=!0,closeIcon:l,className:g}=A,c=function(A,e){var t={};for(var n in A)Object.prototype.hasOwnProperty.call(A,n)&&e.indexOf(n)<0&&(t[n]=A[n]);if(null!=A&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(n=Object.getOwnPropertySymbols(A);o{lU[A]=e=>aU(Object.assign(Object.assign({},e),{type:A}))}));const gU=jf("Popconfirm",(A=>(A=>{const{componentCls:e,iconCls:t,antCls:n,zIndexPopup:o,colorText:r,colorWarning:i,marginXXS:a,marginXS:s,fontSize:l,fontWeightStrong:g,colorTextHeading:c}=A;return{[e]:{zIndex:o,[`&${n}-popover`]:{fontSize:l},[`${e}-message`]:{marginBottom:s,display:"flex",flexWrap:"nowrap",alignItems:"start",[`> ${e}-message-icon ${t}`]:{color:i,fontSize:l,lineHeight:1,marginInlineEnd:s},[`${e}-title`]:{fontWeight:g,color:c,"&:only-child":{fontWeight:"normal"}},[`${e}-description`]:{marginTop:a,color:r}},[`${e}-buttons`]:{textAlign:"end",whiteSpace:"nowrap",button:{marginInlineStart:s}}}}})(A)),(A=>{const{zIndexPopupBase:e}=A;return{zIndexPopup:e+60}}),{resetStyle:!1});const cU=A=>{const{prefixCls:e,okButtonProps:t,cancelButtonProps:n,title:o,description:r,cancelText:i,okText:a,okType:s="primary",icon:l=J.createElement(vw,null),showCancel:g=!0,close:c,onConfirm:u,onCancel:B,onPopupClick:Q}=A,{getPrefixCls:E}=J.useContext(Xp),[C]=_I("Popconfirm",JI.Popconfirm),d=lF(o),I=lF(r);return J.createElement("div",{className:`${e}-inner-content`,onClick:Q},J.createElement("div",{className:`${e}-message`},l&&J.createElement("span",{className:`${e}-message-icon`},l),J.createElement("div",{className:`${e}-message-text`},d&&J.createElement("div",{className:ud(`${e}-title`)},d),I&&J.createElement("div",{className:`${e}-description`},I))),J.createElement("div",{className:`${e}-buttons`},g&&J.createElement(dy,Object.assign({onClick:B,size:"small"},n),i||(null==C?void 0:C.cancelText)),J.createElement(py,{buttonProps:Object.assign(Object.assign({size:"small"},Mm(s)),t),actionFn:u,close:c,prefixCls:E("btn"),quitOnNullishReturnValue:!0,emitEvent:!0},a||(null==C?void 0:C.okText))))};const uU=J.forwardRef(((A,e)=>{var t,n;const{prefixCls:o,placement:r="top",trigger:i="click",okType:a="primary",icon:s=J.createElement(vw,null),children:l,overlayClassName:g,onOpenChange:c,onVisibleChange:u}=A,B=function(A,e){var t={};for(var n in A)Object.prototype.hasOwnProperty.call(A,n)&&e.indexOf(n)<0&&(t[n]=A[n]);if(null!=A&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(n=Object.getOwnPropertySymbols(A);o{C(A,!0),null==u||u(A),null==c||c(A,e)},I=Q("popconfirm",o),p=ud(I,g),[f]=gU(I);return f(J.createElement(JF,Object.assign({},wI(B,["title"]),{trigger:i,placement:r,onOpenChange:(e,t)=>{const{disabled:n=!1}=A;n||d(e,t)},open:E,ref:e,overlayClassName:p,content:J.createElement(cU,Object.assign({okType:a,icon:s},A,{prefixCls:I,close:A=>{d(!1,A)},onConfirm:e=>{var t;return null===(t=A.onConfirm)||void 0===t?void 0:t.call(void 0,e)},onCancel:e=>{var t;d(!1,e),null===(t=A.onCancel)||void 0===t||t.call(void 0,e)}})),"data-popover-inject":!0}),l))})),BU=uU;BU._InternalPanelDoNotUseOrYouWillBeFired=A=>{const{prefixCls:e,placement:t,className:n,style:o}=A,r=function(A,e){var t={};for(var n in A)Object.prototype.hasOwnProperty.call(A,n)&&e.indexOf(n)<0&&(t[n]=A[n]);if(null!=A&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(n=Object.getOwnPropertySymbols(A);o{const{componentCls:e}=A,t=A.calc(A.controlHeight).sub(A.calc(A.trackPadding).mul(2)).equal(),n=A.calc(A.controlHeightLG).sub(A.calc(A.trackPadding).mul(2)).equal(),o=A.calc(A.controlHeightSM).sub(A.calc(A.trackPadding).mul(2)).equal();return{[e]:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},Mf(A)),{display:"inline-block",padding:A.trackPadding,color:A.itemColor,background:A.trackBg,borderRadius:A.borderRadius,transition:`all ${A.motionDurationMid} ${A.motionEaseInOut}`,[`${e}-group`]:{position:"relative",display:"flex",alignItems:"stretch",justifyItems:"flex-start",width:"100%"},[`&${e}-rtl`]:{direction:"rtl"},[`&${e}-block`]:{display:"flex"},[`&${e}-block ${e}-item`]:{flex:1,minWidth:0},[`${e}-item`]:{position:"relative",textAlign:"center",cursor:"pointer",transition:`color ${A.motionDurationMid} ${A.motionEaseInOut}`,borderRadius:A.borderRadiusSM,transform:"translateZ(0)","&-selected":Object.assign(Object.assign({},wU(A)),{color:A.itemSelectedColor}),"&::after":{content:'""',position:"absolute",zIndex:-1,width:"100%",height:"100%",top:0,insetInlineStart:0,borderRadius:"inherit",transition:`background-color ${A.motionDurationMid}`,pointerEvents:"none"},[`&:hover:not(${e}-item-selected):not(${e}-item-disabled)`]:{color:A.itemHoverColor,"&::after":{backgroundColor:A.itemHoverBg}},[`&:active:not(${e}-item-selected):not(${e}-item-disabled)`]:{color:A.itemHoverColor,"&::after":{backgroundColor:A.itemActiveBg}},"&-label":Object.assign({minHeight:t,lineHeight:UE(t),padding:`0 ${UE(A.segmentedPaddingHorizontal)}`},DU),"&-icon + *":{marginInlineStart:A.calc(A.marginSM).div(2).equal()},"&-input":{position:"absolute",insetBlockStart:0,insetInlineStart:0,width:0,height:0,opacity:0,pointerEvents:"none"}},[`${e}-thumb`]:Object.assign(Object.assign({},wU(A)),{position:"absolute",insetBlockStart:0,insetInlineStart:0,width:0,height:"100%",padding:`${UE(A.paddingXXS)} 0`,borderRadius:A.borderRadiusSM,[`& ~ ${e}-item:not(${e}-item-selected):not(${e}-item-disabled)::after`]:{backgroundColor:"transparent"}}),[`&${e}-lg`]:{borderRadius:A.borderRadiusLG,[`${e}-item-label`]:{minHeight:n,lineHeight:UE(n),padding:`0 ${UE(A.segmentedPaddingHorizontal)}`,fontSize:A.fontSizeLG},[`${e}-item, ${e}-thumb`]:{borderRadius:A.borderRadius}},[`&${e}-sm`]:{borderRadius:A.borderRadiusSM,[`${e}-item-label`]:{minHeight:o,lineHeight:UE(o),padding:`0 ${UE(A.segmentedPaddingHorizontalSM)}`},[`${e}-item, ${e}-thumb`]:{borderRadius:A.borderRadiusXS}}}),hU(`&-disabled ${e}-item`,A)),hU(`${e}-item-disabled`,A)),{[`${e}-thumb-motion-appear-active`]:{transition:`transform ${A.motionDurationSlow} ${A.motionEaseInOut}, width ${A.motionDurationSlow} ${A.motionEaseInOut}`,willChange:"transform, width"}})}},yU=jf("Segmented",(A=>{const{lineWidth:e,calc:t}=A,n=Pf(A,{segmentedPaddingHorizontal:t(A.controlPaddingHorizontal).sub(e).equal(),segmentedPaddingHorizontalSM:t(A.controlPaddingHorizontalSM).sub(e).equal()});return[mU(n)]}),(A=>{const{colorTextLabel:e,colorText:t,colorFillSecondary:n,colorBgElevated:o,colorFill:r,lineWidthBold:i,colorBgLayout:a}=A;return{trackPadding:i,trackBg:a,itemColor:e,itemHoverColor:t,itemHoverBg:n,itemSelectedBg:o,itemActiveBg:r,itemSelectedColor:t}}));var bU=function(A,e){var t={};for(var n in A)Object.prototype.hasOwnProperty.call(A,n)&&e.indexOf(n)<0&&(t[n]=A[n]);if(null!=A&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(n=Object.getOwnPropertySymbols(A);o{const{prefixCls:t,className:n,rootClassName:o,block:r,options:i=[],size:a="middle",style:s}=A,l=bU(A,["prefixCls","className","rootClassName","block","options","size","style"]),{getPrefixCls:g,direction:c,segmented:u}=J.useContext(Xp),B=g("segmented",t),[Q,E,C]=yU(B),d=Cm(a),I=J.useMemo((()=>i.map((A=>{if(function(A){return"object"==typeof A&&!!(null==A?void 0:A.icon)}(A)){const{icon:e,label:t}=A,n=bU(A,["icon","label"]);return Object.assign(Object.assign({},n),{label:J.createElement(J.Fragment,null,J.createElement("span",{className:`${B}-item-icon`},e),t&&J.createElement("span",null,t))})}return A}))),[i,B]),p=ud(n,o,null==u?void 0:u.className,{[`${B}-block`]:r,[`${B}-sm`]:"small"===d,[`${B}-lg`]:"large"===d},E,C),f=Object.assign(Object.assign({},null==u?void 0:u.style),s);return Q(J.createElement(fU,Object.assign({},l,{className:p,style:f,options:I,ref:e,prefixCls:B,direction:c})))}));function kU(A,e,t){return(A-e)/(t-e)}function MU(A,e,t,n){var o=kU(e,t,n),r={};switch(A){case"rtl":r.right="".concat(100*o,"%"),r.transform="translateX(50%)";break;case"btt":r.bottom="".concat(100*o,"%"),r.transform="translateY(50%)";break;case"ttb":r.top="".concat(100*o,"%"),r.transform="translateY(-50%)";break;default:r.left="".concat(100*o,"%"),r.transform="translateX(-50%)"}return r}function xU(A,e){return Array.isArray(A)?A[e]:A}var SU=J.createContext({min:0,max:0,direction:"ltr",step:1,includedStart:0,includedEnd:0,tabIndex:0,keyboard:!0,styles:{},classNames:{}}),FU=["prefixCls","value","valueIndex","onStartMove","style","render","dragging","onOffsetChange","onChangeComplete","onFocus","onMouseEnter"],NU=J.forwardRef((function(A,e){var t,n=A.prefixCls,o=A.value,r=A.valueIndex,i=A.onStartMove,a=A.style,s=A.render,l=A.dragging,g=A.onOffsetChange,c=A.onChangeComplete,u=A.onFocus,B=A.onMouseEnter,Q=Mc(A,FU),E=J.useContext(SU),C=E.min,d=E.max,I=E.direction,p=E.disabled,f=E.keyboard,h=E.range,w=E.tabIndex,D=E.ariaLabelForHandle,m=E.ariaLabelledByForHandle,y=E.ariaValueTextFormatterForHandle,b=E.styles,v=E.classNames,k="".concat(n,"-handle"),M=function(A){p||i(A,r)},x=MU(I,o,C,d),S={};null!==r&&(S={tabIndex:p?null:xU(w,r),role:"slider","aria-valuemin":C,"aria-valuemax":d,"aria-valuenow":o,"aria-disabled":p,"aria-label":xU(D,r),"aria-labelledby":xU(m,r),"aria-valuetext":null===(t=xU(y,r))||void 0===t?void 0:t(o),"aria-orientation":"ltr"===I||"rtl"===I?"horizontal":"vertical",onMouseDown:M,onTouchStart:M,onFocus:function(A){null==u||u(A,r)},onMouseEnter:function(A){B(A,r)},onKeyDown:function(A){if(!p&&f){var e=null;switch(A.which||A.keyCode){case rD.LEFT:e="ltr"===I||"btt"===I?-1:1;break;case rD.RIGHT:e="ltr"===I||"btt"===I?1:-1;break;case rD.UP:e="ttb"!==I?1:-1;break;case rD.DOWN:e="ttb"!==I?-1:1;break;case rD.HOME:e="min";break;case rD.END:e="max";break;case rD.PAGE_UP:e=2;break;case rD.PAGE_DOWN:e=-2}null!==e&&(A.preventDefault(),g(e,r))}},onKeyUp:function(A){switch(A.which||A.keyCode){case rD.LEFT:case rD.RIGHT:case rD.UP:case rD.DOWN:case rD.HOME:case rD.END:case rD.PAGE_UP:case rD.PAGE_DOWN:null==c||c()}}});var F=J.createElement("div",BQ({ref:e,className:ud(k,bc(bc({},"".concat(k,"-").concat(r+1),null!==r&&h),"".concat(k,"-dragging"),l),v.handle),style:kc(kc(kc({},x),a),b.handle)},S,Q));return s&&(F=s(F,{index:r,prefixCls:n,value:o,dragging:l})),F})),RU=["prefixCls","style","onStartMove","onOffsetChange","values","handleRender","activeHandleRender","draggingIndex","onFocus"],LU=J.forwardRef((function(A,e){var t=A.prefixCls,n=A.style,o=A.onStartMove,r=A.onOffsetChange,i=A.values,a=A.handleRender,s=A.activeHandleRender,l=A.draggingIndex,g=A.onFocus,c=Mc(A,RU),u=J.useRef({});J.useImperativeHandle(e,(function(){return{focus:function(A){var e;null===(e=u.current[A])||void 0===e||e.focus()}}}));var B=WQ(J.useState(-1),2),Q=B[0],E=B[1],C=kc({prefixCls:t,onStartMove:o,onOffsetChange:r,render:a,onFocus:function(A,e){E(e),null==g||g(A)},onMouseEnter:function(A,e){E(e)}},c);return J.createElement(J.Fragment,null,i.map((function(A,e){return J.createElement(NU,BQ({ref:function(A){A?u.current[e]=A:delete u.current[e]},dragging:l===e,style:xU(n,e),key:e,value:A,valueIndex:e},C))})),s&&J.createElement(NU,BQ({key:"a11y"},C,{value:i[Q],valueIndex:null,dragging:-1!==l,render:s,style:{pointerEvents:"none"},tabIndex:null,"aria-hidden":!0})))})),PU=function(A){var e=A.prefixCls,t=A.style,n=A.children,o=A.value,r=A.onClick,i=J.useContext(SU),a=i.min,s=i.max,l=i.direction,g=i.includedStart,c=i.includedEnd,u=i.included,B="".concat(e,"-text"),Q=MU(l,o,a,s);return J.createElement("span",{className:ud(B,bc({},"".concat(B,"-active"),u&&g<=o&&o<=c)),style:kc(kc({},Q),t),onMouseDown:function(A){A.stopPropagation()},onClick:function(){r(o)}},n)},HU=function(A){var e=A.prefixCls,t=A.marks,n=A.onClick,o="".concat(e,"-mark");return t.length?J.createElement("div",{className:o},t.map((function(A){var e=A.value,t=A.style,r=A.label;return J.createElement(PU,{key:e,prefixCls:o,style:t,value:e,onClick:n},r)}))):null},GU=function(A){var e=A.prefixCls,t=A.value,n=A.style,o=A.activeStyle,r=J.useContext(SU),i=r.min,a=r.max,s=r.direction,l=r.included,g=r.includedStart,c=r.includedEnd,u="".concat(e,"-dot"),B=l&&g<=t&&t<=c,Q=kc(kc({},MU(s,t,i,a)),"function"==typeof n?n(t):n);return B&&(Q=kc(kc({},Q),"function"==typeof o?o(t):o)),J.createElement("span",{className:ud(u,bc({},"".concat(u,"-active"),B)),style:Q})},OU=function(A){var e=A.prefixCls,t=A.marks,n=A.dots,o=A.style,r=A.activeStyle,i=J.useContext(SU),a=i.min,s=i.max,l=i.step,g=J.useMemo((function(){var A=new Set;if(t.forEach((function(e){A.add(e.value)})),n&&null!==l)for(var e=a;e<=s;)A.add(e),e+=l;return Array.from(A)}),[a,s,l,n,t]);return J.createElement("div",{className:"".concat(e,"-step")},g.map((function(A){return J.createElement(GU,{prefixCls:e,key:A,value:A,style:o,activeStyle:r})})))},UU=function(A){var e=A.prefixCls,t=A.style,n=A.start,o=A.end,r=A.index,i=A.onStartMove,a=A.replaceCls,s=J.useContext(SU),l=s.direction,g=s.min,c=s.max,u=s.disabled,B=s.range,Q=s.classNames,E="".concat(e,"-track"),C=kU(n,g,c),d=kU(o,g,c),I=function(A){!u&&i&&i(A,-1)},p={};switch(l){case"rtl":p.right="".concat(100*C,"%"),p.width="".concat(100*d-100*C,"%");break;case"btt":p.bottom="".concat(100*C,"%"),p.height="".concat(100*d-100*C,"%");break;case"ttb":p.top="".concat(100*C,"%"),p.height="".concat(100*d-100*C,"%");break;default:p.left="".concat(100*C,"%"),p.width="".concat(100*d-100*C,"%")}var f=a||ud(E,bc(bc({},"".concat(E,"-").concat(r+1),null!==r&&B),"".concat(e,"-track-draggable"),i),Q.track);return J.createElement("div",{className:f,style:kc(kc({},p),t),onMouseDown:I,onTouchStart:I})},KU=function(A){var e=A.prefixCls,t=A.style,n=A.values,o=A.startPoint,r=A.onStartMove,i=J.useContext(SU),a=i.included,s=i.range,l=i.min,g=i.styles,c=i.classNames,u=J.useMemo((function(){if(!s){if(0===n.length)return[];var A=null!=o?o:l,e=n[0];return[{start:Math.min(A,e),end:Math.max(A,e)}]}for(var t=[],r=0;r=0&&F}),[F,rA]),aA=J.useMemo((function(){return Object.keys(j||{}).map((function(A){var e=j[A],t={value:Number(A)};return e&&"object"===mc(e)&&!J.isValidElement(e)&&("label"in e||"style"in e)?(t.style=e.style,t.label=e.label):t.label=e,t})).filter((function(A){var e=A.label;return e||"number"==typeof e})).sort((function(A,e){return A.value-e.value}))}),[j]),sA=function(A,e,t,n,o,r){var i=J.useCallback((function(t){return Math.max(A,Math.min(e,t))}),[A,e]),a=J.useCallback((function(n){if(null!==t){var o=A+Math.round((i(n)-A)/t)*t,r=function(A){return(String(A).split(".")[1]||"").length},a=Math.max(r(t),r(e),r(A)),s=Number(o.toFixed(a));return A<=s&&s<=e?s:null}return null}),[t,A,e,i]),s=J.useCallback((function(o){var r=i(o),s=n.map((function(A){return A.value}));null!==t&&s.push(a(o)),s.push(A,e);var l=s[0],g=e-A;return s.forEach((function(A){var e=Math.abs(r-A);e<=g&&(l=A,g=e)})),l}),[A,e,n,t,i,a]),l=function o(r,i,s){var l=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"unit";if("number"==typeof i){var g,c=r[s],u=c+i,B=[];n.forEach((function(A){B.push(A.value)})),B.push(A,e),B.push(a(c));var Q=i>0?1:-1;"unit"===l?B.push(a(c+Q*t)):B.push(a(u)),B=B.filter((function(A){return null!==A})).filter((function(A){return i<0?A<=c:A>=c})),"unit"===l&&(B=B.filter((function(A){return A!==c})));var E="unit"===l?c:u;g=B[0];var C=Math.abs(g-E);if(B.forEach((function(A){var e=Math.abs(A-E);e1){var d=XQ(r);return d[s]=g,o(d,i-Q,s,l)}return g}return"min"===i?A:"max"===i?e:void 0},g=function(A,e,t){var n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"unit",o=A[t],r=l(A,e,t,n);return{value:r,changed:r!==o}},c=function(A){return null===r&&0===A||"number"==typeof r&&A3&&void 0!==arguments[3]?arguments[3]:"unit",i=A.map(s),a=i[t],u=l(i,e,t,n);if(i[t]=u,!1===o){var B=r||0;t>0&&i[t-1]!==a&&(i[t]=Math.max(i[t],i[t-1]+B)),t0;d-=1)for(var I=!0;c(i[d]-i[d-1])&&I;){var p=g(i,-1,d-1);i[d-1]=p.value,I=p.changed}for(var f=i.length-1;f>0;f-=1)for(var h=!0;c(i[f]-i[f-1])&&h;){var w=g(i,-1,f-1);i[f-1]=w.value,h=w.changed}for(var D=0;D=0?m+1:2;for(t=t.slice(0,n);t.length=0&&AA.current.focus(A)}MA(null)}),[kA]);var xA=J.useMemo((function(){return(!N||null!==rA)&&N}),[N,rA]),SA=function(A,e){yA(A,e),null==b||b(dA(CA.current))},FA=-1!==wA;J.useEffect((function(){if(!FA){var A=EA.lastIndexOf(DA);AA.current.focus(A)}}),[FA]);var NA=J.useMemo((function(){return XQ(mA).sort((function(A,e){return A-e}))}),[mA]),RA=WQ(J.useMemo((function(){return D?[NA[0],NA[NA.length-1]]:[nA,NA[0]]}),[NA,D,nA]),2),LA=RA[0],PA=RA[1];J.useImperativeHandle(e,(function(){return{focus:function(){AA.current.focus(0)},blur:function(){var A,e=document.activeElement;null!==(A=eA.current)&&void 0!==A&&A.contains(e)&&(null==e||e.blur())}}})),J.useEffect((function(){u&&AA.current.focus(0)}),[]);var HA=J.useMemo((function(){return{min:nA,max:oA,direction:tA,disabled:l,keyboard:c,step:rA,included:H,includedStart:LA,includedEnd:PA,range:D,tabIndex:_,ariaLabelForHandle:X,ariaLabelledByForHandle:V,ariaValueTextFormatterForHandle:Z,styles:a||{},classNames:i||{}}}),[nA,oA,tA,l,c,rA,H,LA,PA,D,_,X,V,Z,a,i]);return J.createElement(SU.Provider,{value:HA},J.createElement("div",{ref:eA,className:ud(n,o,bc(bc(bc(bc({},"".concat(n,"-disabled"),l),"".concat(n,"-vertical"),L),"".concat(n,"-horizontal"),!L),"".concat(n,"-with-marks"),aA.length)),style:r,onMouseDown:function(A){A.preventDefault();var e,t=eA.current.getBoundingClientRect(),n=t.width,o=t.height,r=t.left,i=t.top,a=t.bottom,s=t.right,l=A.clientX,g=A.clientY;switch(tA){case"btt":e=(a-g)/o;break;case"ttb":e=(g-i)/o;break;case"rtl":e=(s-l)/n;break;default:e=(l-r)/n}bA(gA(nA+e*(oA-nA)),A)}},J.createElement("div",{className:ud("".concat(n,"-rail"),null==i?void 0:i.rail),style:kc(kc({},K),null==a?void 0:a.rail)}),J.createElement(KU,{prefixCls:n,style:O,values:NA,startPoint:G,onStartMove:xA?SA:void 0}),J.createElement(OU,{prefixCls:n,marks:aA,dots:q,style:Y,activeStyle:T}),J.createElement(LU,{ref:AA,prefixCls:n,style:U,values:mA,draggingIndex:wA,onStartMove:SA,onOffsetChange:function(A,e){if(!l){var t=cA(EA,A,e);null==b||b(dA(EA)),IA(t.values),MA(t.value)}},onFocus:B,onBlur:Q,handleRender:$,activeHandleRender:z,onChangeComplete:pA}),J.createElement(HU,{prefixCls:n,marks:aA,onClick:bA})))}));const JU=J.forwardRef(((A,e)=>{const{open:t}=A,n=J.useRef(null),o=J.useRef(null);function r(){kI.cancel(o.current),o.current=null}return J.useEffect((()=>(t?o.current=kI((()=>{var A;null===(A=n.current)||void 0===A||A.forceAlign(),o.current=null})):r(),r)),[t,A.title]),J.createElement(PF,Object.assign({ref:Pd(n,e)},A))})),jU=A=>{const{componentCls:e,antCls:t,controlSize:n,dotSize:o,marginFull:r,marginPart:i,colorFillContentHover:a,handleColorDisabled:s,calc:l}=A;return{[e]:Object.assign(Object.assign({},Mf(A)),{position:"relative",height:n,margin:`${UE(i)} ${UE(r)}`,padding:0,cursor:"pointer",touchAction:"none","&-vertical":{margin:`${UE(r)} ${UE(i)}`},[`${e}-rail`]:{position:"absolute",backgroundColor:A.railBg,borderRadius:A.borderRadiusXS,transition:`background-color ${A.motionDurationMid}`},[`${e}-track,${e}-tracks`]:{position:"absolute",transition:`background-color ${A.motionDurationMid}`},[`${e}-track`]:{backgroundColor:A.trackBg,borderRadius:A.borderRadiusXS},[`${e}-track-draggable`]:{boxSizing:"content-box",backgroundClip:"content-box",border:"solid rgba(0,0,0,0)"},"&:hover":{[`${e}-rail`]:{backgroundColor:A.railHoverBg},[`${e}-track`]:{backgroundColor:A.trackHoverBg},[`${e}-dot`]:{borderColor:a},[`${e}-handle::after`]:{boxShadow:`0 0 0 ${UE(A.handleLineWidth)} ${A.colorPrimaryBorderHover}`},[`${e}-dot-active`]:{borderColor:A.dotActiveBorderColor}},[`${e}-handle`]:{position:"absolute",width:A.handleSize,height:A.handleSize,outline:"none","&::before":{content:'""',position:"absolute",insetInlineStart:l(A.handleLineWidth).mul(-1).equal(),insetBlockStart:l(A.handleLineWidth).mul(-1).equal(),width:l(A.handleSize).add(l(A.handleLineWidth).mul(2)).equal(),height:l(A.handleSize).add(l(A.handleLineWidth).mul(2)).equal(),backgroundColor:"transparent"},"&::after":{content:'""',position:"absolute",insetBlockStart:0,insetInlineStart:0,width:A.handleSize,height:A.handleSize,backgroundColor:A.colorBgElevated,boxShadow:`0 0 0 ${UE(A.handleLineWidth)} ${A.handleColor}`,borderRadius:"50%",cursor:"pointer",transition:`\n inset-inline-start ${A.motionDurationMid},\n inset-block-start ${A.motionDurationMid},\n width ${A.motionDurationMid},\n height ${A.motionDurationMid},\n box-shadow ${A.motionDurationMid}\n `},"&:hover, &:active, &:focus":{"&::before":{insetInlineStart:l(A.handleSizeHover).sub(A.handleSize).div(2).add(A.handleLineWidthHover).mul(-1).equal(),insetBlockStart:l(A.handleSizeHover).sub(A.handleSize).div(2).add(A.handleLineWidthHover).mul(-1).equal(),width:l(A.handleSizeHover).add(l(A.handleLineWidthHover).mul(2)).equal(),height:l(A.handleSizeHover).add(l(A.handleLineWidthHover).mul(2)).equal()},"&::after":{boxShadow:`0 0 0 ${UE(A.handleLineWidthHover)} ${A.handleActiveColor}`,width:A.handleSizeHover,height:A.handleSizeHover,insetInlineStart:A.calc(A.handleSize).sub(A.handleSizeHover).div(2).equal(),insetBlockStart:A.calc(A.handleSize).sub(A.handleSizeHover).div(2).equal()}}},[`&-lock ${e}-handle`]:{"&::before, &::after":{transition:"none"}},[`${e}-mark`]:{position:"absolute",fontSize:A.fontSize},[`${e}-mark-text`]:{position:"absolute",display:"inline-block",color:A.colorTextDescription,textAlign:"center",wordBreak:"keep-all",cursor:"pointer",userSelect:"none","&-active":{color:A.colorText}},[`${e}-step`]:{position:"absolute",background:"transparent",pointerEvents:"none"},[`${e}-dot`]:{position:"absolute",width:o,height:o,backgroundColor:A.colorBgElevated,border:`${UE(A.handleLineWidth)} solid ${A.dotBorderColor}`,borderRadius:"50%",cursor:"pointer",transition:`border-color ${A.motionDurationSlow}`,pointerEvents:"auto","&-active":{borderColor:A.dotActiveBorderColor}},[`&${e}-disabled`]:{cursor:"not-allowed",[`${e}-rail`]:{backgroundColor:`${A.railBg} !important`},[`${e}-track`]:{backgroundColor:`${A.trackBgDisabled} !important`},[`\n ${e}-dot\n `]:{backgroundColor:A.colorBgElevated,borderColor:A.trackBgDisabled,boxShadow:"none",cursor:"not-allowed"},[`${e}-handle::after`]:{backgroundColor:A.colorBgElevated,cursor:"not-allowed",width:A.handleSize,height:A.handleSize,boxShadow:`0 0 0 ${UE(A.handleLineWidth)} ${s}`,insetInlineStart:0,insetBlockStart:0},[`\n ${e}-mark-text,\n ${e}-dot\n `]:{cursor:"not-allowed !important"}},[`&-tooltip ${t}-tooltip-inner`]:{minWidth:"unset"}})}},qU=(A,e)=>{const{componentCls:t,railSize:n,handleSize:o,dotSize:r,marginFull:i,calc:a}=A,s=e?"paddingBlock":"paddingInline",l=e?"width":"height",g=e?"height":"width",c=e?"insetBlockStart":"insetInlineStart",u=e?"top":"insetInlineStart",B=a(n).mul(3).sub(o).div(2).equal(),Q=a(o).sub(n).div(2).equal(),E=e?{borderWidth:`${UE(Q)} 0`,transform:`translateY(${UE(a(Q).mul(-1).equal())})`}:{borderWidth:`0 ${UE(Q)}`,transform:`translateX(${UE(A.calc(Q).mul(-1).equal())})`};return{[s]:n,[g]:a(n).mul(3).equal(),[`${t}-rail`]:{[l]:"100%",[g]:n},[`${t}-track,${t}-tracks`]:{[g]:n},[`${t}-track-draggable`]:Object.assign({},E),[`${t}-handle`]:{[c]:B},[`${t}-mark`]:{insetInlineStart:0,top:0,[u]:a(n).mul(3).add(e?0:i).equal(),[l]:"100%"},[`${t}-step`]:{insetInlineStart:0,top:0,[u]:n,[l]:"100%",[g]:n},[`${t}-dot`]:{position:"absolute",[c]:a(n).sub(r).div(2).equal()}}},$U=A=>{const{componentCls:e,marginPartWithMark:t}=A;return{[`${e}-horizontal`]:Object.assign(Object.assign({},qU(A,!0)),{[`&${e}-with-marks`]:{marginBottom:t}})}},zU=A=>{const{componentCls:e}=A;return{[`${e}-vertical`]:Object.assign(Object.assign({},qU(A,!1)),{height:"100%"})}},WU=jf("Slider",(A=>{const e=Pf(A,{marginPart:A.calc(A.controlHeight).sub(A.controlSize).div(2).equal(),marginFull:A.calc(A.controlSize).div(2).equal(),marginPartWithMark:A.calc(A.controlHeightLG).sub(A.controlSize).equal()});return[jU(e),$U(e),zU(e)]}),(A=>{const e=A.controlHeightLG/4;return{controlSize:e,railSize:4,handleSize:e,handleSizeHover:A.controlHeightSM/2,dotSize:8,handleLineWidth:A.lineWidth+1,handleLineWidthHover:A.lineWidth+3,railBg:A.colorFillTertiary,railHoverBg:A.colorFillSecondary,trackBg:A.colorPrimaryBorder,trackHoverBg:A.colorPrimaryBorderHover,handleColor:A.colorPrimaryBorder,handleActiveColor:A.colorPrimary,handleColorDisabled:new Cp(A.colorTextDisabled).onBackground(A.colorBgContainer).toHexShortString(),dotBorderColor:A.colorBorderSecondary,dotActiveBorderColor:A.colorPrimaryBorder,trackBgDisabled:A.colorBgContainerDisabled}}));function _U(){const[A,e]=J.useState(!1),t=J.useRef(),n=()=>{kI.cancel(t.current)};return J.useEffect((()=>n),[]),[A,A=>{n(),A?e(A):t.current=kI((()=>{e(A)}))}]}const XU=j.forwardRef(((A,e)=>{const{prefixCls:t,range:n,className:o,rootClassName:r,style:i,disabled:a,tooltipPrefixCls:s,tipFormatter:l,tooltipVisible:g,getTooltipPopupContainer:c,tooltipPlacement:u,tooltip:B={},onChangeComplete:Q}=A,E=function(A,e){var t={};for(var n in A)Object.prototype.hasOwnProperty.call(A,n)&&e.indexOf(n)<0&&(t[n]=A[n]);if(null!=A&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(n=Object.getOwnPropertySymbols(A);o"number"==typeof A?A.toString():""}(F,l),[P,H]=_U(),G=(A,e)=>A||(e?"rtl"===d?"left":"right":"top"),O=p("slider",t),[U,K,Y]=WU(O),T=ud(o,null==I?void 0:I.className,r,{[`${O}-rtl`]:"rtl"===d,[`${O}-lock`]:P},K,Y);"rtl"!==d||E.vertical||(E.reverse=!E.reverse);const[J,q]=j.useMemo((()=>n?"object"==typeof n?[!0,n.draggableTrack]:[!0,!1]:[!1]),[n]);j.useEffect((()=>{const A=()=>{kI((()=>{b(!1)}),1)};return document.addEventListener("mouseup",A),()=>{document.removeEventListener("mouseup",A)}}),[]);const $=J&&!N,z=$?(A,e)=>{const t=j.cloneElement(A,{style:Object.assign(Object.assign({},A.props.style),{visibility:"hidden"})});return j.createElement(JU,Object.assign({},v,{prefixCls:p("tooltip",null!=S?S:s),title:L?L(e.value):"",open:null!==L&&R,placement:G(null!=M?M:u,C),key:"tooltip",overlayClassName:`${O}-tooltip`,getPopupContainer:x||c||f}),t)}:void 0,W=Object.assign(Object.assign({},null==I?void 0:I.style),i);return U(j.createElement(TU,Object.assign({},E,{step:E.step,range:J,draggableTrack:q,className:T,style:W,disabled:w,ref:e,prefixCls:O,handleRender:(A,e)=>{const{index:t}=e,n=A.props,o=Object.assign(Object.assign({},n),{onMouseEnter:A=>{var e;m(!0),null===(e=n.onMouseEnter)||void 0===e||e.call(n,A)},onMouseLeave:A=>{var e;m(!1),null===(e=n.onMouseLeave)||void 0===e||e.call(n,A)},onMouseDown:A=>{var e;b(!0),H(!0),null===(e=n.onMouseDown)||void 0===e||e.call(n,A)},onFocus:A=>{var e,t;b(!0),null===(e=E.onFocus)||void 0===e||e.call(E,A),null===(t=n.onFocus)||void 0===t||t.call(n,A)},onBlur:A=>{var e,t;b(!1),null===(e=E.onBlur)||void 0===e||e.call(E,A),null===(t=n.onBlur)||void 0===t||t.call(n,A)}}),r=j.cloneElement(A,o),i=(!!N||R)&&null!==L;return $?r:j.createElement(JU,Object.assign({},v,{prefixCls:p("tooltip",null!=S?S:s),title:L?L(e.value):"",open:i,placement:G(null!=M?M:u,C),key:t,overlayClassName:`${O}-tooltip`,getPopupContainer:x||c||f}),r)},activeHandleRender:z,onChangeComplete:A=>{null==Q||Q(A),H(!1)}})))}));var VU=["prefixCls","className","checked","defaultChecked","disabled","loadingIcon","checkedChildren","unCheckedChildren","onClick","onChange","onKeyDown"],ZU=J.forwardRef((function(A,e){var t,n=A.prefixCls,o=void 0===n?"rc-switch":n,r=A.className,i=A.checked,a=A.defaultChecked,s=A.disabled,l=A.loadingIcon,g=A.checkedChildren,c=A.unCheckedChildren,u=A.onClick,B=A.onChange,Q=A.onKeyDown,E=Mc(A,VU),C=WQ(vf(!1,{value:i,defaultValue:a}),2),d=C[0],I=C[1];function p(A,e){var t=d;return s||(I(t=A),null==B||B(t,e)),t}var f=ud(o,r,(bc(t={},"".concat(o,"-checked"),d),bc(t,"".concat(o,"-disabled"),s),t));return J.createElement("button",BQ({},E,{type:"button",role:"switch","aria-checked":d,disabled:s,className:f,ref:e,onKeyDown:function(A){A.which===rD.LEFT?p(!1,A):A.which===rD.RIGHT&&p(!0,A),null==Q||Q(A)},onClick:function(A){var e=p(!d,A);null==u||u(e,A)}}),l,J.createElement("span",{className:"".concat(o,"-inner")},J.createElement("span",{className:"".concat(o,"-inner-checked")},g),J.createElement("span",{className:"".concat(o,"-inner-unchecked")},c)))}));ZU.displayName="Switch";const AK=A=>{const{componentCls:e,trackHeightSM:t,trackPadding:n,trackMinWidthSM:o,innerMinMarginSM:r,innerMaxMarginSM:i,handleSizeSM:a,calc:s}=A,l=`${e}-inner`,g=UE(s(a).add(s(n).mul(2)).equal()),c=UE(s(i).mul(2).equal());return{[e]:{[`&${e}-small`]:{minWidth:o,height:t,lineHeight:UE(t),[`${e}-inner`]:{paddingInlineStart:i,paddingInlineEnd:r,[`${l}-checked, ${l}-unchecked`]:{minHeight:t},[`${l}-checked`]:{marginInlineStart:`calc(-100% + ${g} - ${c})`,marginInlineEnd:`calc(100% - ${g} + ${c})`},[`${l}-unchecked`]:{marginTop:s(t).mul(-1).equal(),marginInlineStart:0,marginInlineEnd:0}},[`${e}-handle`]:{width:a,height:a},[`${e}-loading-icon`]:{top:s(s(a).sub(A.switchLoadingIconSize)).div(2).equal(),fontSize:A.switchLoadingIconSize},[`&${e}-checked`]:{[`${e}-inner`]:{paddingInlineStart:r,paddingInlineEnd:i,[`${l}-checked`]:{marginInlineStart:0,marginInlineEnd:0},[`${l}-unchecked`]:{marginInlineStart:`calc(100% - ${g} + ${c})`,marginInlineEnd:`calc(-100% + ${g} - ${c})`}},[`${e}-handle`]:{insetInlineStart:`calc(100% - ${UE(s(a).add(n).equal())})`}},[`&:not(${e}-disabled):active`]:{[`&:not(${e}-checked) ${l}`]:{[`${l}-unchecked`]:{marginInlineStart:s(A.marginXXS).div(2).equal(),marginInlineEnd:s(A.marginXXS).mul(-1).div(2).equal()}},[`&${e}-checked ${l}`]:{[`${l}-checked`]:{marginInlineStart:s(A.marginXXS).mul(-1).div(2).equal(),marginInlineEnd:s(A.marginXXS).div(2).equal()}}}}}}},eK=A=>{const{componentCls:e,handleSize:t,calc:n}=A;return{[e]:{[`${e}-loading-icon${A.iconCls}`]:{position:"relative",top:n(n(t).sub(A.fontSize)).div(2).equal(),color:A.switchLoadingIconColor,verticalAlign:"top"},[`&${e}-checked ${e}-loading-icon`]:{color:A.switchColor}}}},tK=A=>{const{componentCls:e,trackPadding:t,handleBg:n,handleShadow:o,handleSize:r,calc:i}=A,a=`${e}-handle`;return{[e]:{[a]:{position:"absolute",top:t,insetInlineStart:t,width:r,height:r,transition:`all ${A.switchDuration} ease-in-out`,"&::before":{position:"absolute",top:0,insetInlineEnd:0,bottom:0,insetInlineStart:0,backgroundColor:n,borderRadius:i(r).div(2).equal(),boxShadow:o,transition:`all ${A.switchDuration} ease-in-out`,content:'""'}},[`&${e}-checked ${a}`]:{insetInlineStart:`calc(100% - ${UE(i(r).add(t).equal())})`},[`&:not(${e}-disabled):active`]:{[`${a}::before`]:{insetInlineEnd:A.switchHandleActiveInset,insetInlineStart:0},[`&${e}-checked ${a}::before`]:{insetInlineEnd:0,insetInlineStart:A.switchHandleActiveInset}}}}},nK=A=>{const{componentCls:e,trackHeight:t,trackPadding:n,innerMinMargin:o,innerMaxMargin:r,handleSize:i,calc:a}=A,s=`${e}-inner`,l=UE(a(i).add(a(n).mul(2)).equal()),g=UE(a(r).mul(2).equal());return{[e]:{[s]:{display:"block",overflow:"hidden",borderRadius:100,height:"100%",paddingInlineStart:r,paddingInlineEnd:o,transition:`padding-inline-start ${A.switchDuration} ease-in-out, padding-inline-end ${A.switchDuration} ease-in-out`,[`${s}-checked, ${s}-unchecked`]:{display:"block",color:A.colorTextLightSolid,fontSize:A.fontSizeSM,transition:`margin-inline-start ${A.switchDuration} ease-in-out, margin-inline-end ${A.switchDuration} ease-in-out`,pointerEvents:"none",minHeight:t},[`${s}-checked`]:{marginInlineStart:`calc(-100% + ${l} - ${g})`,marginInlineEnd:`calc(100% - ${l} + ${g})`},[`${s}-unchecked`]:{marginTop:a(t).mul(-1).equal(),marginInlineStart:0,marginInlineEnd:0}},[`&${e}-checked ${s}`]:{paddingInlineStart:o,paddingInlineEnd:r,[`${s}-checked`]:{marginInlineStart:0,marginInlineEnd:0},[`${s}-unchecked`]:{marginInlineStart:`calc(100% - ${l} + ${g})`,marginInlineEnd:`calc(-100% + ${l} - ${g})`}},[`&:not(${e}-disabled):active`]:{[`&:not(${e}-checked) ${s}`]:{[`${s}-unchecked`]:{marginInlineStart:a(n).mul(2).equal(),marginInlineEnd:a(n).mul(-1).mul(2).equal()}},[`&${e}-checked ${s}`]:{[`${s}-checked`]:{marginInlineStart:a(n).mul(-1).mul(2).equal(),marginInlineEnd:a(n).mul(2).equal()}}}}}},oK=A=>{const{componentCls:e,trackHeight:t,trackMinWidth:n}=A;return{[e]:Object.assign(Object.assign(Object.assign(Object.assign({},Mf(A)),{position:"relative",display:"inline-block",boxSizing:"border-box",minWidth:n,height:t,lineHeight:`${UE(t)}`,verticalAlign:"middle",background:A.colorTextQuaternary,border:"0",borderRadius:100,cursor:"pointer",transition:`all ${A.motionDurationMid}`,userSelect:"none",[`&:hover:not(${e}-disabled)`]:{background:A.colorTextTertiary}}),Nf(A)),{[`&${e}-checked`]:{background:A.switchColor,[`&:hover:not(${e}-disabled)`]:{background:A.colorPrimaryHover}},[`&${e}-loading, &${e}-disabled`]:{cursor:"not-allowed",opacity:A.switchDisabledOpacity,"*":{boxShadow:"none",cursor:"not-allowed"}},[`&${e}-rtl`]:{direction:"rtl"}})}},rK=jf("Switch",(A=>{const e=Pf(A,{switchDuration:A.motionDurationMid,switchColor:A.colorPrimary,switchDisabledOpacity:A.opacityLoading,switchLoadingIconSize:A.calc(A.fontSizeIcon).mul(.75).equal(),switchLoadingIconColor:`rgba(0, 0, 0, ${A.opacityLoading})`,switchHandleActiveInset:"-30%"});return[oK(e),nK(e),tK(e),eK(e),AK(e)]}),(A=>{const{fontSize:e,lineHeight:t,controlHeight:n,colorWhite:o}=A,r=e*t,i=n/2,a=r-4,s=i-4;return{trackHeight:r,trackHeightSM:i,trackMinWidth:2*a+8,trackMinWidthSM:2*s+4,trackPadding:2,handleBg:o,handleSize:a,handleSizeSM:s,handleShadow:`0 2px 4px 0 ${new Cp("#00230b").setAlpha(.2).toRgbString()}`,innerMinMargin:a/2,innerMaxMargin:a+2+4,innerMinMarginSM:s/2,innerMaxMarginSM:s+2+4}}));const iK=J.forwardRef(((A,e)=>{const{prefixCls:t,size:n,disabled:o,loading:r,className:i,rootClassName:a,style:s,checked:l,value:g,defaultChecked:c,defaultValue:u,onChange:B}=A,Q=function(A,e){var t={};for(var n in A)Object.prototype.hasOwnProperty.call(A,n)&&e.indexOf(n)<0&&(t[n]=A[n]);if(null!=A&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(n=Object.getOwnPropertySymbols(A);o{const{lineWidth:e,fontSizeIcon:t,calc:n}=A,o=A.fontSizeSM;return Pf(A,{tagFontSize:o,tagLineHeight:UE(n(A.lineHeightSM).mul(o).equal()),tagIconSize:n(t).sub(n(e).mul(2)).equal(),tagPaddingHorizontal:8,tagBorderlessBg:A.defaultBg})},gK=A=>({defaultBg:new Cp(A.colorFillQuaternary).onBackground(A.colorBgContainer).toHexString(),defaultColor:A.colorText}),cK=jf("Tag",(A=>(A=>{const{paddingXXS:e,lineWidth:t,tagPaddingHorizontal:n,componentCls:o,calc:r}=A,i=r(n).sub(t).equal(),a=r(e).sub(t).equal();return{[o]:Object.assign(Object.assign({},Mf(A)),{display:"inline-block",height:"auto",marginInlineEnd:A.marginXS,paddingInline:i,fontSize:A.tagFontSize,lineHeight:A.tagLineHeight,whiteSpace:"nowrap",background:A.defaultBg,border:`${UE(A.lineWidth)} ${A.lineType} ${A.colorBorder}`,borderRadius:A.borderRadiusSM,opacity:1,transition:`all ${A.motionDurationMid}`,textAlign:"start",position:"relative",[`&${o}-rtl`]:{direction:"rtl"},"&, a, a:hover":{color:A.defaultColor},[`${o}-close-icon`]:{marginInlineStart:a,fontSize:A.tagIconSize,color:A.colorTextDescription,cursor:"pointer",transition:`all ${A.motionDurationMid}`,"&:hover":{color:A.colorTextHeading}},[`&${o}-has-color`]:{borderColor:"transparent",[`&, a, a:hover, ${A.iconCls}-close, ${A.iconCls}-close:hover`]:{color:A.colorTextLightSolid}},"&-checkable":{backgroundColor:"transparent",borderColor:"transparent",cursor:"pointer",[`&:not(${o}-checkable-checked):hover`]:{color:A.colorPrimary,backgroundColor:A.colorFillSecondary},"&:active, &-checked":{color:A.colorTextLightSolid},"&-checked":{backgroundColor:A.colorPrimary,"&:hover":{backgroundColor:A.colorPrimaryHover}},"&:active":{backgroundColor:A.colorPrimaryActive}},"&-hidden":{display:"none"},[`> ${A.iconCls} + span, > span + ${A.iconCls}`]:{marginInlineStart:i}}),[`${o}-borderless`]:{borderColor:"transparent",background:A.tagBorderlessBg}}})(lK(A))),gK);const uK=J.forwardRef(((A,e)=>{const{prefixCls:t,style:n,className:o,checked:r,onChange:i,onClick:a}=A,s=function(A,e){var t={};for(var n in A)Object.prototype.hasOwnProperty.call(A,n)&&e.indexOf(n)<0&&(t[n]=A[n]);if(null!=A&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(n=Object.getOwnPropertySymbols(A);o{null==i||i(!r),null==a||a(A)}})))})),BK=Tf(["Tag","preset"],(A=>(A=>qf(A,((e,t)=>{let{textColor:n,lightBorderColor:o,lightColor:r,darkColor:i}=t;return{[`${A.componentCls}${A.componentCls}-${e}`]:{color:n,background:r,borderColor:o,"&-inverse":{color:A.colorTextLightSolid,background:i,borderColor:i},[`&${A.componentCls}-borderless`]:{borderColor:"transparent"}}}})))(lK(A))),gK);const QK=(A,e,t)=>{const n="string"!=typeof(o=t)?o:o.charAt(0).toUpperCase()+o.slice(1);var o;return{[`${A.componentCls}${A.componentCls}-${e}`]:{color:A[`color${t}`],background:A[`color${n}Bg`],borderColor:A[`color${n}Border`],[`&${A.componentCls}-borderless`]:{borderColor:"transparent"}}}},EK=Tf(["Tag","status"],(A=>{const e=lK(A);return[QK(e,"success","Success"),QK(e,"processing","Info"),QK(e,"error","Error"),QK(e,"warning","Warning")]}),gK);const CK=J.forwardRef(((A,e)=>{const{prefixCls:t,className:n,rootClassName:o,style:r,children:i,icon:a,color:s,onClose:l,bordered:g=!0,visible:c}=A,u=function(A,e){var t={};for(var n in A)Object.prototype.hasOwnProperty.call(A,n)&&e.indexOf(n)<0&&(t[n]=A[n]);if(null!=A&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(n=Object.getOwnPropertySymbols(A);o{void 0!==c&&d(c)}),[c]);const p=NF(s),f=function(A){return FF.includes(A)}(s),h=p||f,w=Object.assign(Object.assign({backgroundColor:s&&!h?s:void 0},null==E?void 0:E.style),r),D=B("tag",t),[m,y,b]=cK(D),v=ud(D,null==E?void 0:E.className,{[`${D}-${s}`]:h,[`${D}-has-color`]:s&&!h,[`${D}-hidden`]:!C,[`${D}-rtl`]:"rtl"===Q,[`${D}-borderless`]:!g},n,o,y,b),k=A=>{A.stopPropagation(),null==l||l(A),A.defaultPrevented||d(!1)},[,M]=_y(qy(A),qy(E),{closable:!1,closeIconRender:A=>Hw(A,J.createElement("span",{className:`${D}-close-icon`,onClick:k},A),(A=>({onClick:e=>{var t;null===(t=null==A?void 0:A.onClick)||void 0===t||t.call(A,e),k(e)},className:ud(null==A?void 0:A.className,`${D}-close-icon`)})))}),x="function"==typeof u.onClick||i&&"a"===i.type,S=a||null,F=S?J.createElement(J.Fragment,null,S,i&&J.createElement("span",null,i)):i,N=J.createElement("span",Object.assign({},I,{ref:e,className:v,style:w}),F,M,p&&J.createElement(BK,{key:"preset",prefixCls:D}),f&&J.createElement(EK,{key:"status",prefixCls:D}));return m(x?J.createElement(Em,{component:"Tag"},N):N)})),dK=CK;dK.CheckableTag=uK;const IK=(A,e)=>new Cp(A).setAlpha(e).toRgbString(),pK=(A,e)=>new Cp(A).lighten(e).toHexString(),fK=A=>{const e=xp(A,{theme:"dark"});return{1:e[0],2:e[1],3:e[2],4:e[3],5:e[6],6:e[5],7:e[4],8:e[6],9:e[5],10:e[4]}},hK=(A,e)=>{const t=A||"#000",n=e||"#fff";return{colorBgBase:t,colorTextBase:n,colorText:IK(n,.85),colorTextSecondary:IK(n,.65),colorTextTertiary:IK(n,.45),colorTextQuaternary:IK(n,.25),colorFill:IK(n,.18),colorFillSecondary:IK(n,.12),colorFillTertiary:IK(n,.08),colorFillQuaternary:IK(n,.04),colorBgElevated:pK(t,12),colorBgContainer:pK(t,8),colorBgLayout:pK(t,0),colorBgSpotlight:pK(t,26),colorBgBlur:IK(n,.04),colorBorder:pK(t,26),colorBorderSecondary:pK(t,19)}};const wK={defaultConfig:zp,defaultSeed:zp.token,useToken:function(){const[A,e,t]=Cf();return{theme:A,token:e,hashId:t}},defaultAlgorithm:qp,darkAlgorithm:(A,e)=>{const t=Object.keys(Lp).map((e=>{const t=xp(A[e],{theme:"dark"});return new Array(10).fill(1).reduce(((A,n,o)=>(A[`${e}-${o+1}`]=t[o],A[`${e}${o+1}`]=t[o],A)),{})})).reduce(((A,e)=>A=Object.assign(Object.assign({},A),e)),{}),n=null!=e?e:qp(A);return Object.assign(Object.assign(Object.assign({},n),t),Hp(A,{generateColorPalettes:fK,generateNeutralColorPalettes:hK}))},compactAlgorithm:(A,e)=>{const t=null!=e?e:qp(A),n=t.fontSizeSM,o=t.controlHeight-4;return Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},t),function(A){const{sizeUnit:e,sizeStep:t}=A,n=t-2;return{sizeXXL:e*(n+10),sizeXL:e*(n+6),sizeLG:e*(n+2),sizeMD:e*(n+2),sizeMS:e*(n+1),size:e*n,sizeSM:e*n,sizeXS:e*(n-1),sizeXXS:e*(n-1)}}(null!=e?e:A)),Kp(n)),{controlHeight:o}),Op(Object.assign(Object.assign({},t),{controlHeight:o})))},getDesignToken:A=>{const e=(null==A?void 0:A.algorithm)?NE(A.algorithm):NE(qp),t=Object.assign(Object.assign({},Pp),null==A?void 0:A.token);return nC(t,{override:null==A?void 0:A.token},e,gf)}};var DK,mK=function(){return wK.useToken().token},yK=function(A){return"undefined"!=typeof window?matchMedia&&matchMedia("(prefers-color-scheme: ".concat(A,")")):{matches:!1}},bK=J.createContext({appearance:"light",setAppearance:function(){},isDarkMode:!1,themeMode:"light",setThemeMode:function(){},browserPrefers:null!==(DK=yK("dark"))&&void 0!==DK&&DK.matches?"dark":"light"}),vK=function(){return J.useContext(bK)},kK=function(){var A=mK(),e=vK(),t=e.appearance,n=e.isDarkMode;return J.useMemo((function(){return e=function(A){var e=A.css,t=A.token;return{buttonDefaultHover:e({backgroundColor:t.colorBgContainer,border:"1px solid ".concat(t.colorBorder),cursor:"pointer",":hover":{color:t.colorPrimaryHover,borderColor:t.colorPrimaryHover},":active":{color:t.colorPrimaryActive,borderColor:t.colorPrimaryActive}})}}({token:A,css:uQ,appearance:t,isDarkMode:n}),Object.fromEntries(Object.entries(e).map((function(A){var e=WQ(A,2);return[e[0],e[1].styles]})));var e}),[A,t,n])},MK=function(){var A=mK(),e=kK();return J.useMemo((function(){return kc(kc({},A),{},{stylish:e})}),[A,e])},xK=function(A){return kc(kc({},A),{},{mobile:A.xs,tablet:A.md,laptop:A.lg,desktop:A.xxl})},SK=function(){var A=jP.useBreakpoint();return J.useMemo((function(){return xK(A)}),[A])},FK=["stylish","appearance","isDarkMode","prefixCls","iconPrefixCls"],NK=["prefixCls","iconPrefixCls"],RK=function(A){var e=A.hashPriority,t=A.useTheme,n=A.EmotionContext;return function(A,o){var r=null==o?void 0:o.__BABEL_FILE_NAME__,i=!!r;return function(a){var s,l,g=t(),c=J.useContext(n).cache,u=cQ(c,{hashPriority:(null==o?void 0:o.hashPriority)||e,label:null==o?void 0:o.label}),B=u.cx,Q=u.css,E=(s=mK(),l={xs:"@media (max-width: ".concat(s.screenXSMax,"px)"),sm:"@media (max-width: ".concat(s.screenSMMax,"px)"),md:"@media (max-width: ".concat(s.screenMDMax,"px)"),lg:"@media (max-width: ".concat(s.screenLGMax,"px)"),xl:"@media (max-width: ".concat(s.screenXLMax,"px)"),xxl:"@media (min-width: ".concat(s.screenXXLMin,"px)")},J.useMemo((function(){return xK(l)}),[s])),C=J.useMemo((function(){var e;if(A instanceof Function){var t=g.stylish,n=g.appearance,o=g.isDarkMode,s=g.prefixCls,l=g.iconPrefixCls,c=Mc(g,FK),u=function(A){return e=A,t=E,Object.entries(e).map((function(A){var e=WQ(A,2),n=e[0],o=e[1],r=o;return aQ(o)||(r=uQ(o)),t[n]?"".concat(t[n]," {").concat(r.styles,"}"):""})).join("");var e,t};Object.assign(u,E),e=A({token:c,stylish:t,appearance:n,isDarkMode:o,prefixCls:s,iconPrefixCls:l,cx:B,css:uQ,responsive:u},a)}else e=A;return"object"===mc(e)&&(e=aQ(e)?Q(e):Object.fromEntries(Object.entries(e).map((function(A){var e=WQ(A,2),t=e[0],n=e[1],o=i?"".concat(r,"-").concat(t):void 0;return"object"===mc(n)?i?[t,Q(n,"label:".concat(o))]:[t,Q(n)]:[t,n]})))),e}),[a,g]);return J.useMemo((function(){var A=g.prefixCls,e=g.iconPrefixCls,t=Mc(g,NK);return{styles:C,cx:B,theme:t,prefixCls:A,iconPrefixCls:e}}),[C,g])}}},LK=function(A){if(A.ThemeProvider)return A.ThemeProvider;var e=A.ThemeContext;return function(A){return AA.jsx(e.Provider,{value:A.theme,children:A.children})}},PK=function(A){var e=J.useContext(YQ);return A.theme!==e&&(e=TQ(e)(A.theme)),J.createElement(YQ.Provider,{value:e},A.children)},HK=YQ,GK=J.memo((function(A){var e=A.children,t=A.theme,n=A.prefixCls,o=A.getStaticInstance,r=A.staticInstanceConfig,i=vK(),a=i.appearance,s=i.isDarkMode,l=WQ(WO.useMessage(null==r?void 0:r.message),2),g=l[0],c=l[1],u=WQ(lU.useNotification(null==r?void 0:r.notification),2),B=u[0],Q=u[1],E=WQ(VO.useModal(),2),C=E[0],d=E[1];J.useEffect((function(){null==o||o({message:g,modal:C,notification:B})}),[]);var I=J.useMemo((function(){var A=s?wK.darkAlgorithm:wK.defaultAlgorithm,e=t;if("function"==typeof t&&(e=t(a)),!e)return{algorithm:A};var n=e.algorithm?e.algorithm instanceof Array?e.algorithm:[e.algorithm]:[];return kc(kc({},e),{},{algorithm:e.algorithm?[A].concat(XQ(n)):A})}),[t,s]);return AA.jsxs(tw,{prefixCls:n,theme:I,children:[c,Q,d,e]})}));function OK(A,e){return function(A){if(Array.isArray(A))return A}(A)||function(A,e){var t=null==A?null:"undefined"!=typeof Symbol&&A[Symbol.iterator]||A["@@iterator"];if(null!=t){var n,o,r,i,a=[],s=!0,l=!1;try{if(r=(t=t.call(A)).next,0===e);else for(;!(s=(n=r.call(t)).done)&&(a.push(n.value),a.length!==e);s=!0);}catch(g){l=!0,o=g}finally{try{if(!s&&null!=t.return&&(i=t.return(),Object(i)!==i))return}finally{if(l)throw o}}return a}}(A,e)||function(A,e){if(!A)return;if("string"==typeof A)return UK(A,e);var t=Object.prototype.toString.call(A).slice(8,-1);"Object"===t&&A.constructor&&(t=A.constructor.name);if("Map"===t||"Set"===t)return Array.from(A);if("Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t))return UK(A,e)}(A,e)||function(){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 UK(A,e){(null==e||e>A.length)&&(e=A.length);for(var t=0,n=new Array(e);t=n?A:function(A,e,t){var n=-1,o=A.length;e<0&&(e=-e>o?0:o+e),(t=t>o?o:t)<0&&(t+=o),o=e>t?0:t-e>>>0,e>>>=0;for(var r=Array(o);++n1&&void 0!==arguments[1]?arguments[1]:"info",t=arguments.length,n=new Array(t>2?t-2:0),o=2;o1){var t=A.shift();A[0]=t+A[0]}A[0].match(/^file:\/\/\//)?A[0]=A[0].replace(/^([^/:]+):\/*/,"$1:///"):A[0]=A[0].replace(/^([^/:]+):\/*/,"$1://");for(var n=0;n0&&(o=o.replace(/^[\/]+/,"")),o=n0?"?":"")+i.join("&")}("object"==typeof arguments[0]?arguments[0]:[].slice.call(arguments))}var gJ=function(A){var e=A.pkg,t=A.version,n=void 0===t?"latest":t,o=A.path;return"unpkg"===A.proxy?lJ("https://unpkg.com","".concat(e,"@").concat(n),o):lJ("https://registry.npmmirror.com",e,n,"files",o)},cJ=J.createContext(null),uJ=function(A){var e=A.pkg,t=A.version,n=A.path;return gJ({path:n,pkg:e,proxy:"aliyun",version:t})},BJ=function(){var A=J.useContext(cJ);return A?"custom"!==(null==A?void 0:A.proxy)?function(e){var t=e.pkg,n=e.version,o=e.path;return gJ({path:o,pkg:t,proxy:A.proxy,version:n})}:(null==A?void 0:A.customCdnFn)||uJ:uJ},QJ=["unoptimized"],EJ=J.forwardRef((function(A,e){var t=A.unoptimized,n=Mc(A,QJ),o=J.useContext(cJ),r=(null==o?void 0:o.imgAs)||"img",i=J.useMemo((function(){return A=r,J.forwardRef((function(e,t){return J.createElement(A,kc(kc({},e),{},{ref:t}))}));var A}),[r]);return AA.jsx(i,kc({ref:e,unoptimized:void 0===t?null==o?void 0:o.imgUnoptimized:t},n))}));const CJ={"๐Ÿ˜€":"grinning-face","๐Ÿ˜ƒ":"grinning-face-with-big-eyes","๐Ÿ˜„":"grinning-face-with-smiling-eyes","๐Ÿ˜":"beaming-face-with-smiling-eyes","๐Ÿ˜†":"grinning-squinting-face","๐Ÿ˜…":"grinning-face-with-sweat","๐Ÿคฃ":"rolling-on-the-floor-laughing","๐Ÿ˜‚":"face-with-tears-of-joy","๐Ÿ™‚":"slightly-smiling-face","๐Ÿ™ƒ":"upside-down-face","๐Ÿซ ":"melting-face","๐Ÿ˜‰":"winking-face","๐Ÿ˜Š":"smiling-face-with-smiling-eyes","๐Ÿ˜‡":"smiling-face-with-halo","๐Ÿฅฐ":"smiling-face-with-hearts","๐Ÿ˜":"smiling-face-with-heart-eyes","๐Ÿคฉ":"star-struck","๐Ÿ˜˜":"face-blowing-a-kiss","๐Ÿ˜—":"kissing-face","โ˜บ๏ธ":"smiling-face","๐Ÿ˜š":"kissing-face-with-closed-eyes","๐Ÿ˜™":"kissing-face-with-smiling-eyes","๐Ÿฅฒ":"smiling-face-with-tear","๐Ÿ˜‹":"face-savoring-food","๐Ÿ˜›":"face-with-tongue","๐Ÿ˜œ":"winking-face-with-tongue","๐Ÿคช":"zany-face","๐Ÿ˜":"squinting-face-with-tongue","๐Ÿค‘":"money-mouth-face","๐Ÿค—":"smiling-face-with-open-hands","๐Ÿคญ":"face-with-hand-over-mouth","๐Ÿซข":"face-with-open-eyes-and-hand-over-mouth","๐Ÿซฃ":"face-with-peeking-eye","๐Ÿคซ":"shushing-face","๐Ÿค”":"thinking-face","๐Ÿซก":"saluting-face","๐Ÿค":"zipper-mouth-face","๐Ÿคจ":"face-with-raised-eyebrow","๐Ÿ˜":"neutral-face","๐Ÿ˜‘":"expressionless-face","๐Ÿ˜ถ":"face-without-mouth","๐Ÿซฅ":"dotted-line-face","๐Ÿ˜ถโ€๐ŸŒซ๏ธ":"face-in-clouds","๐Ÿ˜":"smirking-face","๐Ÿ˜’":"unamused-face","๐Ÿ™„":"face-with-rolling-eyes","๐Ÿ˜ฌ":"grimacing-face","๐Ÿ˜ฎโ€๐Ÿ’จ":"face-exhaling","๐Ÿคฅ":"lying-face","๐Ÿซจ":"shaking-face","๐Ÿ˜Œ":"relieved-face","๐Ÿ˜”":"pensive-face","๐Ÿ˜ช":"sleepy-face","๐Ÿคค":"drooling-face","๐Ÿ˜ด":"sleeping-face","๐Ÿ˜ท":"face-with-medical-mask","๐Ÿค’":"face-with-thermometer","๐Ÿค•":"face-with-head-bandage","๐Ÿคข":"nauseated-face","๐Ÿคฎ":"face-vomiting","๐Ÿคง":"sneezing-face","๐Ÿฅต":"hot-face","๐Ÿฅถ":"cold-face","๐Ÿฅด":"woozy-face","๐Ÿ˜ต":"face-with-crossed-out-eyes","๐Ÿ˜ตโ€๐Ÿ’ซ":"face-with-spiral-eyes","๐Ÿคฏ":"exploding-head","๐Ÿค ":"cowboy-hat-face","๐Ÿฅณ":"partying-face","๐Ÿฅธ":"disguised-face","๐Ÿ˜Ž":"smiling-face-with-sunglasses","๐Ÿค“":"nerd-face","๐Ÿง":"face-with-monocle","๐Ÿ˜•":"confused-face","๐Ÿซค":"face-with-diagonal-mouth","๐Ÿ˜Ÿ":"worried-face","๐Ÿ™":"slightly-frowning-face","โ˜น๏ธ":"frowning-face","๐Ÿ˜ฎ":"face-with-open-mouth","๐Ÿ˜ฏ":"hushed-face","๐Ÿ˜ฒ":"astonished-face","๐Ÿ˜ณ":"flushed-face","๐Ÿฅบ":"pleading-face","๐Ÿฅน":"face-holding-back-tears","๐Ÿ˜ฆ":"frowning-face-with-open-mouth","๐Ÿ˜ง":"anguished-face","๐Ÿ˜จ":"fearful-face","๐Ÿ˜ฐ":"anxious-face-with-sweat","๐Ÿ˜ฅ":"sad-but-relieved-face","๐Ÿ˜ข":"crying-face","๐Ÿ˜ญ":"loudly-crying-face","๐Ÿ˜ฑ":"face-screaming-in-fear","๐Ÿ˜–":"confounded-face","๐Ÿ˜ฃ":"persevering-face","๐Ÿ˜ž":"disappointed-face","๐Ÿ˜“":"downcast-face-with-sweat","๐Ÿ˜ฉ":"weary-face","๐Ÿ˜ซ":"tired-face","๐Ÿฅฑ":"yawning-face","๐Ÿ˜ค":"face-with-steam-from-nose","๐Ÿ˜ก":"enraged-face","๐Ÿ˜ ":"angry-face","๐Ÿคฌ":"face-with-symbols-on-mouth","๐Ÿ˜ˆ":"smiling-face-with-horns","๐Ÿ‘ฟ":"angry-face-with-horns","๐Ÿ’€":"skull","โ˜ ๏ธ":"skull-and-crossbones","๐Ÿ’ฉ":"pile-of-poo","๐Ÿคก":"clown-face","๐Ÿ‘น":"ogre","๐Ÿ‘บ":"goblin","๐Ÿ‘ป":"ghost","๐Ÿ‘ฝ":"alien","๐Ÿ‘พ":"alien-monster","๐Ÿค–":"robot","๐Ÿ˜บ":"grinning-cat","๐Ÿ˜ธ":"grinning-cat-with-smiling-eyes","๐Ÿ˜น":"cat-with-tears-of-joy","๐Ÿ˜ป":"smiling-cat-with-heart-eyes","๐Ÿ˜ผ":"cat-with-wry-smile","๐Ÿ˜ฝ":"kissing-cat","๐Ÿ™€":"weary-cat","๐Ÿ˜ฟ":"crying-cat","๐Ÿ˜พ":"pouting-cat","๐Ÿ™ˆ":"see-no-evil-monkey","๐Ÿ™‰":"hear-no-evil-monkey","๐Ÿ™Š":"speak-no-evil-monkey","๐Ÿ’Œ":"love-letter","๐Ÿ’˜":"heart-with-arrow","๐Ÿ’":"heart-with-ribbon","๐Ÿ’–":"sparkling-heart","๐Ÿ’—":"growing-heart","๐Ÿ’“":"beating-heart","๐Ÿ’ž":"revolving-hearts","๐Ÿ’•":"two-hearts","๐Ÿ’Ÿ":"heart-decoration","โฃ๏ธ":"heart-exclamation","๐Ÿ’”":"broken-heart","โค๏ธโ€๐Ÿ”ฅ":"heart-on-fire","โค๏ธโ€๐Ÿฉน":"mending-heart","โค๏ธ":"red-heart","๐Ÿฉท":"pink-heart","๐Ÿงก":"orange-heart","๐Ÿ’›":"yellow-heart","๐Ÿ’š":"green-heart","๐Ÿ’™":"blue-heart","๐Ÿฉต":"light-blue-heart","๐Ÿ’œ":"purple-heart","๐ŸคŽ":"brown-heart","๐Ÿ–ค":"black-heart","๐Ÿฉถ":"grey-heart","๐Ÿค":"white-heart","๐Ÿ’‹":"kiss-mark","๐Ÿ’ฏ":"hundred-points","๐Ÿ’ข":"anger-symbol","๐Ÿ’ฅ":"collision","๐Ÿ’ซ":"dizzy","๐Ÿ’ฆ":"sweat-droplets","๐Ÿ’จ":"dashing-away","๐Ÿ•ณ๏ธ":"hole","๐Ÿ’ฌ":"speech-balloon","๐Ÿ‘๏ธโ€๐Ÿ—จ๏ธ":"eye-in-speech-bubble","๐Ÿ—จ๏ธ":"left-speech-bubble","๐Ÿ—ฏ๏ธ":"right-anger-bubble","๐Ÿ’ญ":"thought-balloon","๐Ÿ’ค":"zzz","๐Ÿ‘‹":"waving-hand","๐Ÿคš":"raised-back-of-hand","๐Ÿ–๏ธ":"hand-with-fingers-splayed","โœ‹":"raised-hand","๐Ÿ––":"vulcan-salute","๐Ÿซฑ":"rightwards-hand","๐Ÿซฒ":"leftwards-hand","๐Ÿซณ":"palm-down-hand","๐Ÿซด":"palm-up-hand","๐Ÿซท":"leftwards-pushing-hand","๐Ÿซธ":"rightwards-pushing-hand","๐Ÿ‘Œ":"ok-hand","๐ŸคŒ":"pinched-fingers","๐Ÿค":"pinching-hand","โœŒ๏ธ":"victory-hand","๐Ÿคž":"crossed-fingers","๐Ÿซฐ":"hand-with-index-finger-and-thumb-crossed","๐ŸคŸ":"love-you-gesture","๐Ÿค˜":"sign-of-the-horns","๐Ÿค™":"call-me-hand","๐Ÿ‘ˆ":"backhand-index-pointing-left","๐Ÿ‘‰":"backhand-index-pointing-right","๐Ÿ‘†":"backhand-index-pointing-up","๐Ÿ–•":"middle-finger","๐Ÿ‘‡":"backhand-index-pointing-down","โ˜๏ธ":"index-pointing-up","๐Ÿซต":"index-pointing-at-the-viewer","๐Ÿ‘":"thumbs-up","๐Ÿ‘Ž":"thumbs-down","โœŠ":"raised-fist","๐Ÿ‘Š":"oncoming-fist","๐Ÿค›":"left-facing-fist","๐Ÿคœ":"right-facing-fist","๐Ÿ‘":"clapping-hands","๐Ÿ™Œ":"raising-hands","๐Ÿซถ":"heart-hands","๐Ÿ‘":"open-hands","๐Ÿคฒ":"palms-up-together","๐Ÿค":"handshake","๐Ÿ™":"folded-hands","โœ๏ธ":"writing-hand","๐Ÿ’…":"nail-polish","๐Ÿคณ":"selfie","๐Ÿ’ช":"flexed-biceps","๐Ÿฆพ":"mechanical-arm","๐Ÿฆฟ":"mechanical-leg","๐Ÿฆต":"leg","๐Ÿฆถ":"foot","๐Ÿ‘‚":"ear","๐Ÿฆป":"ear-with-hearing-aid","๐Ÿ‘ƒ":"nose","๐Ÿง ":"brain","๐Ÿซ€":"anatomical-heart","๐Ÿซ":"lungs","๐Ÿฆท":"tooth","๐Ÿฆด":"bone","๐Ÿ‘€":"eyes","๐Ÿ‘๏ธ":"eye","๐Ÿ‘…":"tongue","๐Ÿ‘„":"mouth","๐Ÿซฆ":"biting-lip","๐Ÿ‘ถ":"baby","๐Ÿง’":"child","๐Ÿ‘ฆ":"boy","๐Ÿ‘ง":"girl","๐Ÿง‘":"person","๐Ÿ‘ฑ":"person-blond-hair","๐Ÿ‘จ":"man","๐Ÿง”":"person-beard","๐Ÿง”โ€โ™‚๏ธ":"man-beard","๐Ÿง”โ€โ™€๏ธ":"woman-beard","๐Ÿ‘จโ€๐Ÿฆฐ":"man-red-hair","๐Ÿ‘จโ€๐Ÿฆฑ":"man-curly-hair","๐Ÿ‘จโ€๐Ÿฆณ":"man-white-hair","๐Ÿ‘จโ€๐Ÿฆฒ":"man-bald","๐Ÿ‘ฉ":"woman","๐Ÿ‘ฉโ€๐Ÿฆฐ":"woman-red-hair","๐Ÿง‘โ€๐Ÿฆฐ":"person-red-hair","๐Ÿ‘ฉโ€๐Ÿฆฑ":"woman-curly-hair","๐Ÿง‘โ€๐Ÿฆฑ":"person-curly-hair","๐Ÿ‘ฉโ€๐Ÿฆณ":"woman-white-hair","๐Ÿง‘โ€๐Ÿฆณ":"person-white-hair","๐Ÿ‘ฉโ€๐Ÿฆฒ":"woman-bald","๐Ÿง‘โ€๐Ÿฆฒ":"person-bald","๐Ÿ‘ฑโ€โ™€๏ธ":"woman-blond-hair","๐Ÿ‘ฑโ€โ™‚๏ธ":"man-blond-hair","๐Ÿง“":"older-person","๐Ÿ‘ด":"old-man","๐Ÿ‘ต":"old-woman","๐Ÿ™":"person-frowning","๐Ÿ™โ€โ™‚๏ธ":"man-frowning","๐Ÿ™โ€โ™€๏ธ":"woman-frowning","๐Ÿ™Ž":"person-pouting","๐Ÿ™Žโ€โ™‚๏ธ":"man-pouting","๐Ÿ™Žโ€โ™€๏ธ":"woman-pouting","๐Ÿ™…":"person-gesturing-no","๐Ÿ™…โ€โ™‚๏ธ":"man-gesturing-no","๐Ÿ™…โ€โ™€๏ธ":"woman-gesturing-no","๐Ÿ™†":"person-gesturing-ok","๐Ÿ™†โ€โ™‚๏ธ":"man-gesturing-ok","๐Ÿ™†โ€โ™€๏ธ":"woman-gesturing-ok","๐Ÿ’":"person-tipping-hand","๐Ÿ’โ€โ™‚๏ธ":"man-tipping-hand","๐Ÿ’โ€โ™€๏ธ":"woman-tipping-hand","๐Ÿ™‹":"person-raising-hand","๐Ÿ™‹โ€โ™‚๏ธ":"man-raising-hand","๐Ÿ™‹โ€โ™€๏ธ":"woman-raising-hand","๐Ÿง":"deaf-person","๐Ÿงโ€โ™‚๏ธ":"deaf-man","๐Ÿงโ€โ™€๏ธ":"deaf-woman","๐Ÿ™‡":"person-bowing","๐Ÿ™‡โ€โ™‚๏ธ":"man-bowing","๐Ÿ™‡โ€โ™€๏ธ":"woman-bowing","๐Ÿคฆ":"person-facepalming","๐Ÿคฆโ€โ™‚๏ธ":"man-facepalming","๐Ÿคฆโ€โ™€๏ธ":"woman-facepalming","๐Ÿคท":"person-shrugging","๐Ÿคทโ€โ™‚๏ธ":"man-shrugging","๐Ÿคทโ€โ™€๏ธ":"woman-shrugging","๐Ÿง‘โ€โš•๏ธ":"health-worker","๐Ÿ‘จโ€โš•๏ธ":"man-health-worker","๐Ÿ‘ฉโ€โš•๏ธ":"woman-health-worker","๐Ÿง‘โ€๐ŸŽ“":"student","๐Ÿ‘จโ€๐ŸŽ“":"man-student","๐Ÿ‘ฉโ€๐ŸŽ“":"woman-student","๐Ÿง‘โ€๐Ÿซ":"teacher","๐Ÿ‘จโ€๐Ÿซ":"man-teacher","๐Ÿ‘ฉโ€๐Ÿซ":"woman-teacher","๐Ÿง‘โ€โš–๏ธ":"judge","๐Ÿ‘จโ€โš–๏ธ":"man-judge","๐Ÿ‘ฉโ€โš–๏ธ":"woman-judge","๐Ÿง‘โ€๐ŸŒพ":"farmer","๐Ÿ‘จโ€๐ŸŒพ":"man-farmer","๐Ÿ‘ฉโ€๐ŸŒพ":"woman-farmer","๐Ÿง‘โ€๐Ÿณ":"cook","๐Ÿ‘จโ€๐Ÿณ":"man-cook","๐Ÿ‘ฉโ€๐Ÿณ":"woman-cook","๐Ÿง‘โ€๐Ÿ”ง":"mechanic","๐Ÿ‘จโ€๐Ÿ”ง":"man-mechanic","๐Ÿ‘ฉโ€๐Ÿ”ง":"woman-mechanic","๐Ÿง‘โ€๐Ÿญ":"factory-worker","๐Ÿ‘จโ€๐Ÿญ":"man-factory-worker","๐Ÿ‘ฉโ€๐Ÿญ":"woman-factory-worker","๐Ÿง‘โ€๐Ÿ’ผ":"office-worker","๐Ÿ‘จโ€๐Ÿ’ผ":"man-office-worker","๐Ÿ‘ฉโ€๐Ÿ’ผ":"woman-office-worker","๐Ÿง‘โ€๐Ÿ”ฌ":"scientist","๐Ÿ‘จโ€๐Ÿ”ฌ":"man-scientist","๐Ÿ‘ฉโ€๐Ÿ”ฌ":"woman-scientist","๐Ÿง‘โ€๐Ÿ’ป":"technologist","๐Ÿ‘จโ€๐Ÿ’ป":"man-technologist","๐Ÿ‘ฉโ€๐Ÿ’ป":"woman-technologist","๐Ÿง‘โ€๐ŸŽค":"singer","๐Ÿ‘จโ€๐ŸŽค":"man-singer","๐Ÿ‘ฉโ€๐ŸŽค":"woman-singer","๐Ÿง‘โ€๐ŸŽจ":"artist","๐Ÿ‘จโ€๐ŸŽจ":"man-artist","๐Ÿ‘ฉโ€๐ŸŽจ":"woman-artist","๐Ÿง‘โ€โœˆ๏ธ":"pilot","๐Ÿ‘จโ€โœˆ๏ธ":"man-pilot","๐Ÿ‘ฉโ€โœˆ๏ธ":"woman-pilot","๐Ÿง‘โ€๐Ÿš€":"astronaut","๐Ÿ‘จโ€๐Ÿš€":"man-astronaut","๐Ÿ‘ฉโ€๐Ÿš€":"woman-astronaut","๐Ÿง‘โ€๐Ÿš’":"firefighter","๐Ÿ‘จโ€๐Ÿš’":"man-firefighter","๐Ÿ‘ฉโ€๐Ÿš’":"woman-firefighter","๐Ÿ‘ฎ":"police-officer","๐Ÿ‘ฎโ€โ™‚๏ธ":"man-police-officer","๐Ÿ‘ฎโ€โ™€๏ธ":"woman-police-officer","๐Ÿ•ต๏ธ":"detective","๐Ÿ•ต๏ธโ€โ™‚๏ธ":"man-detective","๐Ÿ•ต๏ธโ€โ™€๏ธ":"woman-detective","๐Ÿ’‚":"guard","๐Ÿ’‚โ€โ™‚๏ธ":"man-guard","๐Ÿ’‚โ€โ™€๏ธ":"woman-guard","๐Ÿฅท":"ninja","๐Ÿ‘ท":"construction-worker","๐Ÿ‘ทโ€โ™‚๏ธ":"man-construction-worker","๐Ÿ‘ทโ€โ™€๏ธ":"woman-construction-worker","๐Ÿซ…":"person-with-crown","๐Ÿคด":"prince","๐Ÿ‘ธ":"princess","๐Ÿ‘ณ":"person-wearing-turban","๐Ÿ‘ณโ€โ™‚๏ธ":"man-wearing-turban","๐Ÿ‘ณโ€โ™€๏ธ":"woman-wearing-turban","๐Ÿ‘ฒ":"person-with-skullcap","๐Ÿง•":"woman-with-headscarf","๐Ÿคต":"person-in-tuxedo","๐Ÿคตโ€โ™‚๏ธ":"man-in-tuxedo","๐Ÿคตโ€โ™€๏ธ":"woman-in-tuxedo","๐Ÿ‘ฐ":"person-with-veil","๐Ÿ‘ฐโ€โ™‚๏ธ":"man-with-veil","๐Ÿ‘ฐโ€โ™€๏ธ":"woman-with-veil","๐Ÿคฐ":"pregnant-woman","๐Ÿซƒ":"pregnant-man","๐Ÿซ„":"pregnant-person","๐Ÿคฑ":"breast-feeding","๐Ÿ‘ฉโ€๐Ÿผ":"woman-feeding-baby","๐Ÿ‘จโ€๐Ÿผ":"man-feeding-baby","๐Ÿง‘โ€๐Ÿผ":"person-feeding-baby","๐Ÿ‘ผ":"baby-angel","๐ŸŽ…":"santa-claus","๐Ÿคถ":"mrs-claus","๐Ÿง‘โ€๐ŸŽ„":"mx-claus","๐Ÿฆธ":"superhero","๐Ÿฆธโ€โ™‚๏ธ":"man-superhero","๐Ÿฆธโ€โ™€๏ธ":"woman-superhero","๐Ÿฆน":"supervillain","๐Ÿฆนโ€โ™‚๏ธ":"man-supervillain","๐Ÿฆนโ€โ™€๏ธ":"woman-supervillain","๐Ÿง™":"mage","๐Ÿง™โ€โ™‚๏ธ":"man-mage","๐Ÿง™โ€โ™€๏ธ":"woman-mage","๐Ÿงš":"fairy","๐Ÿงšโ€โ™‚๏ธ":"man-fairy","๐Ÿงšโ€โ™€๏ธ":"woman-fairy","๐Ÿง›":"vampire","๐Ÿง›โ€โ™‚๏ธ":"man-vampire","๐Ÿง›โ€โ™€๏ธ":"woman-vampire","๐Ÿงœ":"merperson","๐Ÿงœโ€โ™‚๏ธ":"merman","๐Ÿงœโ€โ™€๏ธ":"mermaid","๐Ÿง":"elf","๐Ÿงโ€โ™‚๏ธ":"man-elf","๐Ÿงโ€โ™€๏ธ":"woman-elf","๐Ÿงž":"genie","๐Ÿงžโ€โ™‚๏ธ":"man-genie","๐Ÿงžโ€โ™€๏ธ":"woman-genie","๐ŸงŸ":"zombie","๐ŸงŸโ€โ™‚๏ธ":"man-zombie","๐ŸงŸโ€โ™€๏ธ":"woman-zombie","๐ŸงŒ":"troll","๐Ÿ’†":"person-getting-massage","๐Ÿ’†โ€โ™‚๏ธ":"man-getting-massage","๐Ÿ’†โ€โ™€๏ธ":"woman-getting-massage","๐Ÿ’‡":"person-getting-haircut","๐Ÿ’‡โ€โ™‚๏ธ":"man-getting-haircut","๐Ÿ’‡โ€โ™€๏ธ":"woman-getting-haircut","๐Ÿšถ":"person-walking","๐Ÿšถโ€โ™‚๏ธ":"man-walking","๐Ÿšถโ€โ™€๏ธ":"woman-walking","๐Ÿง":"person-standing","๐Ÿงโ€โ™‚๏ธ":"man-standing","๐Ÿงโ€โ™€๏ธ":"woman-standing","๐ŸงŽ":"person-kneeling","๐ŸงŽโ€โ™‚๏ธ":"man-kneeling","๐ŸงŽโ€โ™€๏ธ":"woman-kneeling","๐Ÿง‘โ€๐Ÿฆฏ":"person-with-white-cane","๐Ÿ‘จโ€๐Ÿฆฏ":"man-with-white-cane","๐Ÿ‘ฉโ€๐Ÿฆฏ":"woman-with-white-cane","๐Ÿง‘โ€๐Ÿฆผ":"person-in-motorized-wheelchair","๐Ÿ‘จโ€๐Ÿฆผ":"man-in-motorized-wheelchair","๐Ÿ‘ฉโ€๐Ÿฆผ":"woman-in-motorized-wheelchair","๐Ÿง‘โ€๐Ÿฆฝ":"person-in-manual-wheelchair","๐Ÿ‘จโ€๐Ÿฆฝ":"man-in-manual-wheelchair","๐Ÿ‘ฉโ€๐Ÿฆฝ":"woman-in-manual-wheelchair","๐Ÿƒ":"person-running","๐Ÿƒโ€โ™‚๏ธ":"man-running","๐Ÿƒโ€โ™€๏ธ":"woman-running","๐Ÿ’ƒ":"woman-dancing","๐Ÿ•บ":"man-dancing","๐Ÿ•ด๏ธ":"person-in-suit-levitating","๐Ÿ‘ฏ":"people-with-bunny-ears","๐Ÿ‘ฏโ€โ™‚๏ธ":"men-with-bunny-ears","๐Ÿ‘ฏโ€โ™€๏ธ":"women-with-bunny-ears","๐Ÿง–":"person-in-steamy-room","๐Ÿง–โ€โ™‚๏ธ":"man-in-steamy-room","๐Ÿง–โ€โ™€๏ธ":"woman-in-steamy-room","๐Ÿง—":"person-climbing","๐Ÿง—โ€โ™‚๏ธ":"man-climbing","๐Ÿง—โ€โ™€๏ธ":"woman-climbing","๐Ÿคบ":"person-fencing","๐Ÿ‡":"horse-racing","โ›ท๏ธ":"skier","๐Ÿ‚":"snowboarder","๐ŸŒ๏ธ":"person-golfing","๐ŸŒ๏ธโ€โ™‚๏ธ":"man-golfing","๐ŸŒ๏ธโ€โ™€๏ธ":"woman-golfing","๐Ÿ„":"person-surfing","๐Ÿ„โ€โ™‚๏ธ":"man-surfing","๐Ÿ„โ€โ™€๏ธ":"woman-surfing","๐Ÿšฃ":"person-rowing-boat","๐Ÿšฃโ€โ™‚๏ธ":"man-rowing-boat","๐Ÿšฃโ€โ™€๏ธ":"woman-rowing-boat","๐ŸŠ":"person-swimming","๐ŸŠโ€โ™‚๏ธ":"man-swimming","๐ŸŠโ€โ™€๏ธ":"woman-swimming","โ›น๏ธ":"person-bouncing-ball","โ›น๏ธโ€โ™‚๏ธ":"man-bouncing-ball","โ›น๏ธโ€โ™€๏ธ":"woman-bouncing-ball","๐Ÿ‹๏ธ":"person-lifting-weights","๐Ÿ‹๏ธโ€โ™‚๏ธ":"man-lifting-weights","๐Ÿ‹๏ธโ€โ™€๏ธ":"woman-lifting-weights","๐Ÿšด":"person-biking","๐Ÿšดโ€โ™‚๏ธ":"man-biking","๐Ÿšดโ€โ™€๏ธ":"woman-biking","๐Ÿšต":"person-mountain-biking","๐Ÿšตโ€โ™‚๏ธ":"man-mountain-biking","๐Ÿšตโ€โ™€๏ธ":"woman-mountain-biking","๐Ÿคธ":"person-cartwheeling","๐Ÿคธโ€โ™‚๏ธ":"man-cartwheeling","๐Ÿคธโ€โ™€๏ธ":"woman-cartwheeling","๐Ÿคผ":"people-wrestling","๐Ÿคผโ€โ™‚๏ธ":"men-wrestling","๐Ÿคผโ€โ™€๏ธ":"women-wrestling","๐Ÿคฝ":"person-playing-water-polo","๐Ÿคฝโ€โ™‚๏ธ":"man-playing-water-polo","๐Ÿคฝโ€โ™€๏ธ":"woman-playing-water-polo","๐Ÿคพ":"person-playing-handball","๐Ÿคพโ€โ™‚๏ธ":"man-playing-handball","๐Ÿคพโ€โ™€๏ธ":"woman-playing-handball","๐Ÿคน":"person-juggling","๐Ÿคนโ€โ™‚๏ธ":"man-juggling","๐Ÿคนโ€โ™€๏ธ":"woman-juggling","๐Ÿง˜":"person-in-lotus-position","๐Ÿง˜โ€โ™‚๏ธ":"man-in-lotus-position","๐Ÿง˜โ€โ™€๏ธ":"woman-in-lotus-position","๐Ÿ›€":"person-taking-bath","๐Ÿ›Œ":"person-in-bed","๐Ÿง‘โ€๐Ÿคโ€๐Ÿง‘":"people-holding-hands","๐Ÿ‘ญ":"women-holding-hands","๐Ÿ‘ซ":"woman-and-man-holding-hands","๐Ÿ‘ฌ":"men-holding-hands","๐Ÿ’":"kiss","๐Ÿ‘ฉโ€โค๏ธโ€๐Ÿ’‹โ€๐Ÿ‘จ":"kiss-woman-man","๐Ÿ‘จโ€โค๏ธโ€๐Ÿ’‹โ€๐Ÿ‘จ":"kiss-man-man","๐Ÿ‘ฉโ€โค๏ธโ€๐Ÿ’‹โ€๐Ÿ‘ฉ":"kiss-woman-woman","๐Ÿ’‘":"couple-with-heart","๐Ÿ‘ฉโ€โค๏ธโ€๐Ÿ‘จ":"couple-with-heart-woman-man","๐Ÿ‘จโ€โค๏ธโ€๐Ÿ‘จ":"couple-with-heart-man-man","๐Ÿ‘ฉโ€โค๏ธโ€๐Ÿ‘ฉ":"couple-with-heart-woman-woman","๐Ÿ‘ช":"family","๐Ÿ‘จโ€๐Ÿ‘ฉโ€๐Ÿ‘ฆ":"family-man-woman-boy","๐Ÿ‘จโ€๐Ÿ‘ฉโ€๐Ÿ‘ง":"family-man-woman-girl","๐Ÿ‘จโ€๐Ÿ‘ฉโ€๐Ÿ‘งโ€๐Ÿ‘ฆ":"family-man-woman-girl-boy","๐Ÿ‘จโ€๐Ÿ‘ฉโ€๐Ÿ‘ฆโ€๐Ÿ‘ฆ":"family-man-woman-boy-boy","๐Ÿ‘จโ€๐Ÿ‘ฉโ€๐Ÿ‘งโ€๐Ÿ‘ง":"family-man-woman-girl-girl","๐Ÿ‘จโ€๐Ÿ‘จโ€๐Ÿ‘ฆ":"family-man-man-boy","๐Ÿ‘จโ€๐Ÿ‘จโ€๐Ÿ‘ง":"family-man-man-girl","๐Ÿ‘จโ€๐Ÿ‘จโ€๐Ÿ‘งโ€๐Ÿ‘ฆ":"family-man-man-girl-boy","๐Ÿ‘จโ€๐Ÿ‘จโ€๐Ÿ‘ฆโ€๐Ÿ‘ฆ":"family-man-man-boy-boy","๐Ÿ‘จโ€๐Ÿ‘จโ€๐Ÿ‘งโ€๐Ÿ‘ง":"family-man-man-girl-girl","๐Ÿ‘ฉโ€๐Ÿ‘ฉโ€๐Ÿ‘ฆ":"family-woman-woman-boy","๐Ÿ‘ฉโ€๐Ÿ‘ฉโ€๐Ÿ‘ง":"family-woman-woman-girl","๐Ÿ‘ฉโ€๐Ÿ‘ฉโ€๐Ÿ‘งโ€๐Ÿ‘ฆ":"family-woman-woman-girl-boy","๐Ÿ‘ฉโ€๐Ÿ‘ฉโ€๐Ÿ‘ฆโ€๐Ÿ‘ฆ":"family-woman-woman-boy-boy","๐Ÿ‘ฉโ€๐Ÿ‘ฉโ€๐Ÿ‘งโ€๐Ÿ‘ง":"family-woman-woman-girl-girl","๐Ÿ‘จโ€๐Ÿ‘ฆ":"family-man-boy","๐Ÿ‘จโ€๐Ÿ‘ฆโ€๐Ÿ‘ฆ":"family-man-boy-boy","๐Ÿ‘จโ€๐Ÿ‘ง":"family-man-girl","๐Ÿ‘จโ€๐Ÿ‘งโ€๐Ÿ‘ฆ":"family-man-girl-boy","๐Ÿ‘จโ€๐Ÿ‘งโ€๐Ÿ‘ง":"family-man-girl-girl","๐Ÿ‘ฉโ€๐Ÿ‘ฆ":"family-woman-boy","๐Ÿ‘ฉโ€๐Ÿ‘ฆโ€๐Ÿ‘ฆ":"family-woman-boy-boy","๐Ÿ‘ฉโ€๐Ÿ‘ง":"family-woman-girl","๐Ÿ‘ฉโ€๐Ÿ‘งโ€๐Ÿ‘ฆ":"family-woman-girl-boy","๐Ÿ‘ฉโ€๐Ÿ‘งโ€๐Ÿ‘ง":"family-woman-girl-girl","๐Ÿ—ฃ๏ธ":"speaking-head","๐Ÿ‘ค":"bust-in-silhouette","๐Ÿ‘ฅ":"busts-in-silhouette","๐Ÿซ‚":"people-hugging","๐Ÿ‘ฃ":"footprints","๐Ÿต":"monkey-face","๐Ÿ’":"monkey","๐Ÿฆ":"gorilla","๐Ÿฆง":"orangutan","๐Ÿถ":"dog-face","๐Ÿ•":"dog","๐Ÿฆฎ":"guide-dog","๐Ÿ•โ€๐Ÿฆบ":"service-dog","๐Ÿฉ":"poodle","๐Ÿบ":"wolf","๐ŸฆŠ":"fox","๐Ÿฆ":"raccoon","๐Ÿฑ":"cat-face","๐Ÿˆ":"cat","๐Ÿˆโ€โฌ›":"black-cat","๐Ÿฆ":"lion","๐Ÿฏ":"tiger-face","๐Ÿ…":"tiger","๐Ÿ†":"leopard","๐Ÿด":"horse-face","๐ŸซŽ":"moose","๐Ÿซ":"donkey","๐ŸŽ":"horse","๐Ÿฆ„":"unicorn","๐Ÿฆ“":"zebra","๐ŸฆŒ":"deer","๐Ÿฆฌ":"bison","๐Ÿฎ":"cow-face","๐Ÿ‚":"ox","๐Ÿƒ":"water-buffalo","๐Ÿ„":"cow","๐Ÿท":"pig-face","๐Ÿ–":"pig","๐Ÿ—":"boar","๐Ÿฝ":"pig-nose","๐Ÿ":"ram","๐Ÿ‘":"ewe","๐Ÿ":"goat","๐Ÿช":"camel","๐Ÿซ":"two-hump-camel","๐Ÿฆ™":"llama","๐Ÿฆ’":"giraffe","๐Ÿ˜":"elephant","๐Ÿฆฃ":"mammoth","๐Ÿฆ":"rhinoceros","๐Ÿฆ›":"hippopotamus","๐Ÿญ":"mouse-face","๐Ÿ":"mouse","๐Ÿ€":"rat","๐Ÿน":"hamster","๐Ÿฐ":"rabbit-face","๐Ÿ‡":"rabbit","๐Ÿฟ๏ธ":"chipmunk","๐Ÿฆซ":"beaver","๐Ÿฆ”":"hedgehog","๐Ÿฆ‡":"bat","๐Ÿป":"bear","๐Ÿปโ€โ„๏ธ":"polar-bear","๐Ÿจ":"koala","๐Ÿผ":"panda","๐Ÿฆฅ":"sloth","๐Ÿฆฆ":"otter","๐Ÿฆจ":"skunk","๐Ÿฆ˜":"kangaroo","๐Ÿฆก":"badger","๐Ÿพ":"paw-prints","๐Ÿฆƒ":"turkey","๐Ÿ”":"chicken","๐Ÿ“":"rooster","๐Ÿฃ":"hatching-chick","๐Ÿค":"baby-chick","๐Ÿฅ":"front-facing-baby-chick","๐Ÿฆ":"bird","๐Ÿง":"penguin","๐Ÿ•Š๏ธ":"dove","๐Ÿฆ…":"eagle","๐Ÿฆ†":"duck","๐Ÿฆข":"swan","๐Ÿฆ‰":"owl","๐Ÿฆค":"dodo","๐Ÿชถ":"feather","๐Ÿฆฉ":"flamingo","๐Ÿฆš":"peacock","๐Ÿฆœ":"parrot","๐Ÿชฝ":"wing","๐Ÿฆโ€โฌ›":"black-bird","๐Ÿชฟ":"goose","๐Ÿธ":"frog","๐ŸŠ":"crocodile","๐Ÿข":"turtle","๐ŸฆŽ":"lizard","๐Ÿ":"snake","๐Ÿฒ":"dragon-face","๐Ÿ‰":"dragon","๐Ÿฆ•":"sauropod","๐Ÿฆ–":"t-rex","๐Ÿณ":"spouting-whale","๐Ÿ‹":"whale","๐Ÿฌ":"dolphin","๐Ÿฆญ":"seal","๐ŸŸ":"fish","๐Ÿ ":"tropical-fish","๐Ÿก":"blowfish","๐Ÿฆˆ":"shark","๐Ÿ™":"octopus","๐Ÿš":"spiral-shell","๐Ÿชธ":"coral","๐Ÿชผ":"jellyfish","๐ŸŒ":"snail","๐Ÿฆ‹":"butterfly","๐Ÿ›":"bug","๐Ÿœ":"ant","๐Ÿ":"honeybee","๐Ÿชฒ":"beetle","๐Ÿž":"lady-beetle","๐Ÿฆ—":"cricket","๐Ÿชณ":"cockroach","๐Ÿ•ท๏ธ":"spider","๐Ÿ•ธ๏ธ":"spider-web","๐Ÿฆ‚":"scorpion","๐ŸฆŸ":"mosquito","๐Ÿชฐ":"fly","๐Ÿชฑ":"worm","๐Ÿฆ ":"microbe","๐Ÿ’":"bouquet","๐ŸŒธ":"cherry-blossom","๐Ÿ’ฎ":"white-flower","๐Ÿชท":"lotus","๐Ÿต๏ธ":"rosette","๐ŸŒน":"rose","๐Ÿฅ€":"wilted-flower","๐ŸŒบ":"hibiscus","๐ŸŒป":"sunflower","๐ŸŒผ":"blossom","๐ŸŒท":"tulip","๐Ÿชป":"hyacinth","๐ŸŒฑ":"seedling","๐Ÿชด":"potted-plant","๐ŸŒฒ":"evergreen-tree","๐ŸŒณ":"deciduous-tree","๐ŸŒด":"palm-tree","๐ŸŒต":"cactus","๐ŸŒพ":"sheaf-of-rice","๐ŸŒฟ":"herb","โ˜˜๏ธ":"shamrock","๐Ÿ€":"four-leaf-clover","๐Ÿ":"maple-leaf","๐Ÿ‚":"fallen-leaf","๐Ÿƒ":"leaf-fluttering-in-wind","๐Ÿชน":"empty-nest","๐Ÿชบ":"nest-with-eggs","๐Ÿ„":"mushroom","๐Ÿ‡":"grapes","๐Ÿˆ":"melon","๐Ÿ‰":"watermelon","๐ŸŠ":"tangerine","๐Ÿ‹":"lemon","๐ŸŒ":"banana","๐Ÿ":"pineapple","๐Ÿฅญ":"mango","๐ŸŽ":"red-apple","๐Ÿ":"green-apple","๐Ÿ":"pear","๐Ÿ‘":"peach","๐Ÿ’":"cherries","๐Ÿ“":"strawberry","๐Ÿซ":"blueberries","๐Ÿฅ":"kiwi-fruit","๐Ÿ…":"tomato","๐Ÿซ’":"olive","๐Ÿฅฅ":"coconut","๐Ÿฅ‘":"avocado","๐Ÿ†":"eggplant","๐Ÿฅ”":"potato","๐Ÿฅ•":"carrot","๐ŸŒฝ":"ear-of-corn","๐ŸŒถ๏ธ":"hot-pepper","๐Ÿซ‘":"bell-pepper","๐Ÿฅ’":"cucumber","๐Ÿฅฌ":"leafy-green","๐Ÿฅฆ":"broccoli","๐Ÿง„":"garlic","๐Ÿง…":"onion","๐Ÿฅœ":"peanuts","๐Ÿซ˜":"beans","๐ŸŒฐ":"chestnut","๐Ÿซš":"ginger-root","๐Ÿซ›":"pea-pod","๐Ÿž":"bread","๐Ÿฅ":"croissant","๐Ÿฅ–":"baguette-bread","๐Ÿซ“":"flatbread","๐Ÿฅจ":"pretzel","๐Ÿฅฏ":"bagel","๐Ÿฅž":"pancakes","๐Ÿง‡":"waffle","๐Ÿง€":"cheese-wedge","๐Ÿ–":"meat-on-bone","๐Ÿ—":"poultry-leg","๐Ÿฅฉ":"cut-of-meat","๐Ÿฅ“":"bacon","๐Ÿ”":"hamburger","๐ŸŸ":"french-fries","๐Ÿ•":"pizza","๐ŸŒญ":"hot-dog","๐Ÿฅช":"sandwich","๐ŸŒฎ":"taco","๐ŸŒฏ":"burrito","๐Ÿซ”":"tamale","๐Ÿฅ™":"stuffed-flatbread","๐Ÿง†":"falafel","๐Ÿฅš":"egg","๐Ÿณ":"cooking","๐Ÿฅ˜":"shallow-pan-of-food","๐Ÿฒ":"pot-of-food","๐Ÿซ•":"fondue","๐Ÿฅฃ":"bowl-with-spoon","๐Ÿฅ—":"green-salad","๐Ÿฟ":"popcorn","๐Ÿงˆ":"butter","๐Ÿง‚":"salt","๐Ÿฅซ":"canned-food","๐Ÿฑ":"bento-box","๐Ÿ˜":"rice-cracker","๐Ÿ™":"rice-ball","๐Ÿš":"cooked-rice","๐Ÿ›":"curry-rice","๐Ÿœ":"steaming-bowl","๐Ÿ":"spaghetti","๐Ÿ ":"roasted-sweet-potato","๐Ÿข":"oden","๐Ÿฃ":"sushi","๐Ÿค":"fried-shrimp","๐Ÿฅ":"fish-cake-with-swirl","๐Ÿฅฎ":"moon-cake","๐Ÿก":"dango","๐ŸฅŸ":"dumpling","๐Ÿฅ ":"fortune-cookie","๐Ÿฅก":"takeout-box","๐Ÿฆ€":"crab","๐Ÿฆž":"lobster","๐Ÿฆ":"shrimp","๐Ÿฆ‘":"squid","๐Ÿฆช":"oyster","๐Ÿฆ":"soft-ice-cream","๐Ÿง":"shaved-ice","๐Ÿจ":"ice-cream","๐Ÿฉ":"doughnut","๐Ÿช":"cookie","๐ŸŽ‚":"birthday-cake","๐Ÿฐ":"shortcake","๐Ÿง":"cupcake","๐Ÿฅง":"pie","๐Ÿซ":"chocolate-bar","๐Ÿฌ":"candy","๐Ÿญ":"lollipop","๐Ÿฎ":"custard","๐Ÿฏ":"honey-pot","๐Ÿผ":"baby-bottle","๐Ÿฅ›":"glass-of-milk","โ˜•":"hot-beverage","๐Ÿซ–":"teapot","๐Ÿต":"teacup-without-handle","๐Ÿถ":"sake","๐Ÿพ":"bottle-with-popping-cork","๐Ÿท":"wine-glass","๐Ÿธ":"cocktail-glass","๐Ÿน":"tropical-drink","๐Ÿบ":"beer-mug","๐Ÿป":"clinking-beer-mugs","๐Ÿฅ‚":"clinking-glasses","๐Ÿฅƒ":"tumbler-glass","๐Ÿซ—":"pouring-liquid","๐Ÿฅค":"cup-with-straw","๐Ÿง‹":"bubble-tea","๐Ÿงƒ":"beverage-box","๐Ÿง‰":"mate","๐ŸงŠ":"ice","๐Ÿฅข":"chopsticks","๐Ÿฝ๏ธ":"fork-and-knife-with-plate","๐Ÿด":"fork-and-knife","๐Ÿฅ„":"spoon","๐Ÿ”ช":"kitchen-knife","๐Ÿซ™":"jar","๐Ÿบ":"amphora","๐ŸŒ":"globe-showing-europe-africa","๐ŸŒŽ":"globe-showing-americas","๐ŸŒ":"globe-showing-asia-australia","๐ŸŒ":"globe-with-meridians","๐Ÿ—บ๏ธ":"world-map","๐Ÿ—พ":"map-of-japan","๐Ÿงญ":"compass","๐Ÿ”๏ธ":"snow-capped-mountain","โ›ฐ๏ธ":"mountain","๐ŸŒ‹":"volcano","๐Ÿ—ป":"mount-fuji","๐Ÿ•๏ธ":"camping","๐Ÿ–๏ธ":"beach-with-umbrella","๐Ÿœ๏ธ":"desert","๐Ÿ๏ธ":"desert-island","๐Ÿž๏ธ":"national-park","๐ŸŸ๏ธ":"stadium","๐Ÿ›๏ธ":"classical-building","๐Ÿ—๏ธ":"building-construction","๐Ÿงฑ":"brick","๐Ÿชจ":"rock","๐Ÿชต":"wood","๐Ÿ›–":"hut","๐Ÿ˜๏ธ":"houses","๐Ÿš๏ธ":"derelict-house","๐Ÿ ":"house","๐Ÿก":"house-with-garden","๐Ÿข":"office-building","๐Ÿฃ":"japanese-post-office","๐Ÿค":"post-office","๐Ÿฅ":"hospital","๐Ÿฆ":"bank","๐Ÿจ":"hotel","๐Ÿฉ":"love-hotel","๐Ÿช":"convenience-store","๐Ÿซ":"school","๐Ÿฌ":"department-store","๐Ÿญ":"factory","๐Ÿฏ":"japanese-castle","๐Ÿฐ":"castle","๐Ÿ’’":"wedding","๐Ÿ—ผ":"tokyo-tower","๐Ÿ—ฝ":"statue-of-liberty","โ›ช":"church","๐Ÿ•Œ":"mosque","๐Ÿ›•":"hindu-temple","๐Ÿ•":"synagogue","โ›ฉ๏ธ":"shinto-shrine","๐Ÿ•‹":"kaaba","โ›ฒ":"fountain","โ›บ":"tent","๐ŸŒ":"foggy","๐ŸŒƒ":"night-with-stars","๐Ÿ™๏ธ":"cityscape","๐ŸŒ„":"sunrise-over-mountains","๐ŸŒ…":"sunrise","๐ŸŒ†":"cityscape-at-dusk","๐ŸŒ‡":"sunset","๐ŸŒ‰":"bridge-at-night","โ™จ๏ธ":"hot-springs","๐ŸŽ ":"carousel-horse","๐Ÿ›":"playground-slide","๐ŸŽก":"ferris-wheel","๐ŸŽข":"roller-coaster","๐Ÿ’ˆ":"barber-pole","๐ŸŽช":"circus-tent","๐Ÿš‚":"locomotive","๐Ÿšƒ":"railway-car","๐Ÿš„":"high-speed-train","๐Ÿš…":"bullet-train","๐Ÿš†":"train","๐Ÿš‡":"metro","๐Ÿšˆ":"light-rail","๐Ÿš‰":"station","๐ŸšŠ":"tram","๐Ÿš":"monorail","๐Ÿšž":"mountain-railway","๐Ÿš‹":"tram-car","๐ŸšŒ":"bus","๐Ÿš":"oncoming-bus","๐ŸšŽ":"trolleybus","๐Ÿš":"minibus","๐Ÿš‘":"ambulance","๐Ÿš’":"fire-engine","๐Ÿš“":"police-car","๐Ÿš”":"oncoming-police-car","๐Ÿš•":"taxi","๐Ÿš–":"oncoming-taxi","๐Ÿš—":"automobile","๐Ÿš˜":"oncoming-automobile","๐Ÿš™":"sport-utility-vehicle","๐Ÿ›ป":"pickup-truck","๐Ÿšš":"delivery-truck","๐Ÿš›":"articulated-lorry","๐Ÿšœ":"tractor","๐ŸŽ๏ธ":"racing-car","๐Ÿ๏ธ":"motorcycle","๐Ÿ›ต":"motor-scooter","๐Ÿฆฝ":"manual-wheelchair","๐Ÿฆผ":"motorized-wheelchair","๐Ÿ›บ":"auto-rickshaw","๐Ÿšฒ":"bicycle","๐Ÿ›ด":"kick-scooter","๐Ÿ›น":"skateboard","๐Ÿ›ผ":"roller-skate","๐Ÿš":"bus-stop","๐Ÿ›ฃ๏ธ":"motorway","๐Ÿ›ค๏ธ":"railway-track","๐Ÿ›ข๏ธ":"oil-drum","โ›ฝ":"fuel-pump","๐Ÿ›ž":"wheel","๐Ÿšจ":"police-car-light","๐Ÿšฅ":"horizontal-traffic-light","๐Ÿšฆ":"vertical-traffic-light","๐Ÿ›‘":"stop-sign","๐Ÿšง":"construction","โš“":"anchor","๐Ÿ›Ÿ":"ring-buoy","โ›ต":"sailboat","๐Ÿ›ถ":"canoe","๐Ÿšค":"speedboat","๐Ÿ›ณ๏ธ":"passenger-ship","โ›ด๏ธ":"ferry","๐Ÿ›ฅ๏ธ":"motor-boat","๐Ÿšข":"ship","โœˆ๏ธ":"airplane","๐Ÿ›ฉ๏ธ":"small-airplane","๐Ÿ›ซ":"airplane-departure","๐Ÿ›ฌ":"airplane-arrival","๐Ÿช‚":"parachute","๐Ÿ’บ":"seat","๐Ÿš":"helicopter","๐ŸšŸ":"suspension-railway","๐Ÿš ":"mountain-cableway","๐Ÿšก":"aerial-tramway","๐Ÿ›ฐ๏ธ":"satellite","๐Ÿš€":"rocket","๐Ÿ›ธ":"flying-saucer","๐Ÿ›Ž๏ธ":"bellhop-bell","๐Ÿงณ":"luggage","โŒ›":"hourglass-done","โณ":"hourglass-not-done","โŒš":"watch","โฐ":"alarm-clock","โฑ๏ธ":"stopwatch","โฒ๏ธ":"timer-clock","๐Ÿ•ฐ๏ธ":"mantelpiece-clock","๐Ÿ•›":"twelve-o-clock","๐Ÿ•ง":"twelve-thirty","๐Ÿ•":"one-o-clock","๐Ÿ•œ":"one-thirty","๐Ÿ•‘":"two-o-clock","๐Ÿ•":"two-thirty","๐Ÿ•’":"three-o-clock","๐Ÿ•ž":"three-thirty","๐Ÿ•“":"four-o-clock","๐Ÿ•Ÿ":"four-thirty","๐Ÿ•”":"five-o-clock","๐Ÿ• ":"five-thirty","๐Ÿ••":"six-o-clock","๐Ÿ•ก":"six-thirty","๐Ÿ•–":"seven-o-clock","๐Ÿ•ข":"seven-thirty","๐Ÿ•—":"eight-o-clock","๐Ÿ•ฃ":"eight-thirty","๐Ÿ•˜":"nine-o-clock","๐Ÿ•ค":"nine-thirty","๐Ÿ•™":"ten-o-clock","๐Ÿ•ฅ":"ten-thirty","๐Ÿ•š":"eleven-o-clock","๐Ÿ•ฆ":"eleven-thirty","๐ŸŒ‘":"new-moon","๐ŸŒ’":"waxing-crescent-moon","๐ŸŒ“":"first-quarter-moon","๐ŸŒ”":"waxing-gibbous-moon","๐ŸŒ•":"full-moon","๐ŸŒ–":"waning-gibbous-moon","๐ŸŒ—":"last-quarter-moon","๐ŸŒ˜":"waning-crescent-moon","๐ŸŒ™":"crescent-moon","๐ŸŒš":"new-moon-face","๐ŸŒ›":"first-quarter-moon-face","๐ŸŒœ":"last-quarter-moon-face","๐ŸŒก๏ธ":"thermometer","โ˜€๏ธ":"sun","๐ŸŒ":"full-moon-face","๐ŸŒž":"sun-with-face","๐Ÿช":"ringed-planet","โญ":"star","๐ŸŒŸ":"glowing-star","๐ŸŒ ":"shooting-star","๐ŸŒŒ":"milky-way","โ˜๏ธ":"cloud","โ›…":"sun-behind-cloud","โ›ˆ๏ธ":"cloud-with-lightning-and-rain","๐ŸŒค๏ธ":"sun-behind-small-cloud","๐ŸŒฅ๏ธ":"sun-behind-large-cloud","๐ŸŒฆ๏ธ":"sun-behind-rain-cloud","๐ŸŒง๏ธ":"cloud-with-rain","๐ŸŒจ๏ธ":"cloud-with-snow","๐ŸŒฉ๏ธ":"cloud-with-lightning","๐ŸŒช๏ธ":"tornado","๐ŸŒซ๏ธ":"fog","๐ŸŒฌ๏ธ":"wind-face","๐ŸŒ€":"cyclone","๐ŸŒˆ":"rainbow","๐ŸŒ‚":"closed-umbrella","โ˜‚๏ธ":"umbrella","โ˜”":"umbrella-with-rain-drops","โ›ฑ๏ธ":"umbrella-on-ground","โšก":"high-voltage","โ„๏ธ":"snowflake","โ˜ƒ๏ธ":"snowman","โ›„":"snowman-without-snow","โ˜„๏ธ":"comet","๐Ÿ”ฅ":"fire","๐Ÿ’ง":"droplet","๐ŸŒŠ":"water-wave","๐ŸŽƒ":"jack-o-lantern","๐ŸŽ„":"christmas-tree","๐ŸŽ†":"fireworks","๐ŸŽ‡":"sparkler","๐Ÿงจ":"firecracker","โœจ":"sparkles","๐ŸŽˆ":"balloon","๐ŸŽ‰":"party-popper","๐ŸŽŠ":"confetti-ball","๐ŸŽ‹":"tanabata-tree","๐ŸŽ":"pine-decoration","๐ŸŽŽ":"japanese-dolls","๐ŸŽ":"carp-streamer","๐ŸŽ":"wind-chime","๐ŸŽ‘":"moon-viewing-ceremony","๐Ÿงง":"red-envelope","๐ŸŽ€":"ribbon","๐ŸŽ":"wrapped-gift","๐ŸŽ—๏ธ":"reminder-ribbon","๐ŸŽŸ๏ธ":"admission-tickets","๐ŸŽซ":"ticket","๐ŸŽ–๏ธ":"military-medal","๐Ÿ†":"trophy","๐Ÿ…":"sports-medal","๐Ÿฅ‡":"1st-place-medal","๐Ÿฅˆ":"2nd-place-medal","๐Ÿฅ‰":"3rd-place-medal","โšฝ":"soccer-ball","โšพ":"baseball","๐ŸฅŽ":"softball","๐Ÿ€":"basketball","๐Ÿ":"volleyball","๐Ÿˆ":"american-football","๐Ÿ‰":"rugby-football","๐ŸŽพ":"tennis","๐Ÿฅ":"flying-disc","๐ŸŽณ":"bowling","๐Ÿ":"cricket-game","๐Ÿ‘":"field-hockey","๐Ÿ’":"ice-hockey","๐Ÿฅ":"lacrosse","๐Ÿ“":"ping-pong","๐Ÿธ":"badminton","๐ŸฅŠ":"boxing-glove","๐Ÿฅ‹":"martial-arts-uniform","๐Ÿฅ…":"goal-net","โ›ณ":"flag-in-hole","โ›ธ๏ธ":"ice-skate","๐ŸŽฃ":"fishing-pole","๐Ÿคฟ":"diving-mask","๐ŸŽฝ":"running-shirt","๐ŸŽฟ":"skis","๐Ÿ›ท":"sled","๐ŸฅŒ":"curling-stone","๐ŸŽฏ":"bullseye","๐Ÿช€":"yo-yo","๐Ÿช":"kite","๐Ÿ”ซ":"water-pistol","๐ŸŽฑ":"pool-8-ball","๐Ÿ”ฎ":"crystal-ball","๐Ÿช„":"magic-wand","๐ŸŽฎ":"video-game","๐Ÿ•น๏ธ":"joystick","๐ŸŽฐ":"slot-machine","๐ŸŽฒ":"game-die","๐Ÿงฉ":"puzzle-piece","๐Ÿงธ":"teddy-bear","๐Ÿช…":"pinata","๐Ÿชฉ":"mirror-ball","๐Ÿช†":"nesting-dolls","โ™ ๏ธ":"spade-suit","โ™ฅ๏ธ":"heart-suit","โ™ฆ๏ธ":"diamond-suit","โ™ฃ๏ธ":"club-suit","โ™Ÿ๏ธ":"chess-pawn","๐Ÿƒ":"joker","๐Ÿ€„":"mahjong-red-dragon","๐ŸŽด":"flower-playing-cards","๐ŸŽญ":"performing-arts","๐Ÿ–ผ๏ธ":"framed-picture","๐ŸŽจ":"artist-palette","๐Ÿงต":"thread","๐Ÿชก":"sewing-needle","๐Ÿงถ":"yarn","๐Ÿชข":"knot","๐Ÿ‘“":"glasses","๐Ÿ•ถ๏ธ":"sunglasses","๐Ÿฅฝ":"goggles","๐Ÿฅผ":"lab-coat","๐Ÿฆบ":"safety-vest","๐Ÿ‘”":"necktie","๐Ÿ‘•":"t-shirt","๐Ÿ‘–":"jeans","๐Ÿงฃ":"scarf","๐Ÿงค":"gloves","๐Ÿงฅ":"coat","๐Ÿงฆ":"socks","๐Ÿ‘—":"dress","๐Ÿ‘˜":"kimono","๐Ÿฅป":"sari","๐Ÿฉฑ":"one-piece-swimsuit","๐Ÿฉฒ":"briefs","๐Ÿฉณ":"shorts","๐Ÿ‘™":"bikini","๐Ÿ‘š":"woman-s-clothes","๐Ÿชญ":"folding-hand-fan","๐Ÿ‘›":"purse","๐Ÿ‘œ":"handbag","๐Ÿ‘":"clutch-bag","๐Ÿ›๏ธ":"shopping-bags","๐ŸŽ’":"backpack","๐Ÿฉด":"thong-sandal","๐Ÿ‘ž":"man-s-shoe","๐Ÿ‘Ÿ":"running-shoe","๐Ÿฅพ":"hiking-boot","๐Ÿฅฟ":"flat-shoe","๐Ÿ‘ ":"high-heeled-shoe","๐Ÿ‘ก":"woman-s-sandal","๐Ÿฉฐ":"ballet-shoes","๐Ÿ‘ข":"woman-s-boot","๐Ÿชฎ":"hair-pick","๐Ÿ‘‘":"crown","๐Ÿ‘’":"woman-s-hat","๐ŸŽฉ":"top-hat","๐ŸŽ“":"graduation-cap","๐Ÿงข":"billed-cap","๐Ÿช–":"military-helmet","โ›‘๏ธ":"rescue-worker-s-helmet","๐Ÿ“ฟ":"prayer-beads","๐Ÿ’„":"lipstick","๐Ÿ’":"ring","๐Ÿ’Ž":"gem-stone","๐Ÿ”‡":"muted-speaker","๐Ÿ”ˆ":"speaker-low-volume","๐Ÿ”‰":"speaker-medium-volume","๐Ÿ”Š":"speaker-high-volume","๐Ÿ“ข":"loudspeaker","๐Ÿ“ฃ":"megaphone","๐Ÿ“ฏ":"postal-horn","๐Ÿ””":"bell","๐Ÿ”•":"bell-with-slash","๐ŸŽผ":"musical-score","๐ŸŽต":"musical-note","๐ŸŽถ":"musical-notes","๐ŸŽ™๏ธ":"studio-microphone","๐ŸŽš๏ธ":"level-slider","๐ŸŽ›๏ธ":"control-knobs","๐ŸŽค":"microphone","๐ŸŽง":"headphone","๐Ÿ“ป":"radio","๐ŸŽท":"saxophone","๐Ÿช—":"accordion","๐ŸŽธ":"guitar","๐ŸŽน":"musical-keyboard","๐ŸŽบ":"trumpet","๐ŸŽป":"violin","๐Ÿช•":"banjo","๐Ÿฅ":"drum","๐Ÿช˜":"long-drum","๐Ÿช‡":"maracas","๐Ÿชˆ":"flute","๐Ÿ“ฑ":"mobile-phone","๐Ÿ“ฒ":"mobile-phone-with-arrow","โ˜Ž๏ธ":"telephone","๐Ÿ“ž":"telephone-receiver","๐Ÿ“Ÿ":"pager","๐Ÿ“ ":"fax-machine","๐Ÿ”‹":"battery","๐Ÿชซ":"low-battery","๐Ÿ”Œ":"electric-plug","๐Ÿ’ป":"laptop","๐Ÿ–ฅ๏ธ":"desktop-computer","๐Ÿ–จ๏ธ":"printer","โŒจ๏ธ":"keyboard","๐Ÿ–ฑ๏ธ":"computer-mouse","๐Ÿ–ฒ๏ธ":"trackball","๐Ÿ’ฝ":"computer-disk","๐Ÿ’พ":"floppy-disk","๐Ÿ’ฟ":"optical-disk","๐Ÿ“€":"dvd","๐Ÿงฎ":"abacus","๐ŸŽฅ":"movie-camera","๐ŸŽž๏ธ":"film-frames","๐Ÿ“ฝ๏ธ":"film-projector","๐ŸŽฌ":"clapper-board","๐Ÿ“บ":"television","๐Ÿ“ท":"camera","๐Ÿ“ธ":"camera-with-flash","๐Ÿ“น":"video-camera","๐Ÿ“ผ":"videocassette","๐Ÿ”":"magnifying-glass-tilted-left","๐Ÿ”Ž":"magnifying-glass-tilted-right","๐Ÿ•ฏ๏ธ":"candle","๐Ÿ’ก":"light-bulb","๐Ÿ”ฆ":"flashlight","๐Ÿฎ":"red-paper-lantern","๐Ÿช”":"diya-lamp","๐Ÿ“”":"notebook-with-decorative-cover","๐Ÿ“•":"closed-book","๐Ÿ“–":"open-book","๐Ÿ“—":"green-book","๐Ÿ“˜":"blue-book","๐Ÿ“™":"orange-book","๐Ÿ“š":"books","๐Ÿ““":"notebook","๐Ÿ“’":"ledger","๐Ÿ“ƒ":"page-with-curl","๐Ÿ“œ":"scroll","๐Ÿ“„":"page-facing-up","๐Ÿ“ฐ":"newspaper","๐Ÿ—ž๏ธ":"rolled-up-newspaper","๐Ÿ“‘":"bookmark-tabs","๐Ÿ”–":"bookmark","๐Ÿท๏ธ":"label","๐Ÿ’ฐ":"money-bag","๐Ÿช™":"coin","๐Ÿ’ด":"yen-banknote","๐Ÿ’ต":"dollar-banknote","๐Ÿ’ถ":"euro-banknote","๐Ÿ’ท":"pound-banknote","๐Ÿ’ธ":"money-with-wings","๐Ÿ’ณ":"credit-card","๐Ÿงพ":"receipt","๐Ÿ’น":"chart-increasing-with-yen","โœ‰๏ธ":"envelope","๐Ÿ“ง":"e-mail","๐Ÿ“จ":"incoming-envelope","๐Ÿ“ฉ":"envelope-with-arrow","๐Ÿ“ค":"outbox-tray","๐Ÿ“ฅ":"inbox-tray","๐Ÿ“ฆ":"package","๐Ÿ“ซ":"closed-mailbox-with-raised-flag","๐Ÿ“ช":"closed-mailbox-with-lowered-flag","๐Ÿ“ฌ":"open-mailbox-with-raised-flag","๐Ÿ“ญ":"open-mailbox-with-lowered-flag","๐Ÿ“ฎ":"postbox","๐Ÿ—ณ๏ธ":"ballot-box-with-ballot","โœ๏ธ":"pencil","โœ’๏ธ":"black-nib","๐Ÿ–‹๏ธ":"fountain-pen","๐Ÿ–Š๏ธ":"pen","๐Ÿ–Œ๏ธ":"paintbrush","๐Ÿ–๏ธ":"crayon","๐Ÿ“":"memo","๐Ÿ’ผ":"briefcase","๐Ÿ“":"file-folder","๐Ÿ“‚":"open-file-folder","๐Ÿ—‚๏ธ":"card-index-dividers","๐Ÿ“…":"calendar","๐Ÿ“†":"tear-off-calendar","๐Ÿ—’๏ธ":"spiral-notepad","๐Ÿ—“๏ธ":"spiral-calendar","๐Ÿ“‡":"card-index","๐Ÿ“ˆ":"chart-increasing","๐Ÿ“‰":"chart-decreasing","๐Ÿ“Š":"bar-chart","๐Ÿ“‹":"clipboard","๐Ÿ“Œ":"pushpin","๐Ÿ“":"round-pushpin","๐Ÿ“Ž":"paperclip","๐Ÿ–‡๏ธ":"linked-paperclips","๐Ÿ“":"straight-ruler","๐Ÿ“":"triangular-ruler","โœ‚๏ธ":"scissors","๐Ÿ—ƒ๏ธ":"card-file-box","๐Ÿ—„๏ธ":"file-cabinet","๐Ÿ—‘๏ธ":"wastebasket","๐Ÿ”’":"locked","๐Ÿ”“":"unlocked","๐Ÿ”":"locked-with-pen","๐Ÿ”":"locked-with-key","๐Ÿ”‘":"key","๐Ÿ—๏ธ":"old-key","๐Ÿ”จ":"hammer","๐Ÿช“":"axe","โ›๏ธ":"pick","โš’๏ธ":"hammer-and-pick","๐Ÿ› ๏ธ":"hammer-and-wrench","๐Ÿ—ก๏ธ":"dagger","โš”๏ธ":"crossed-swords","๐Ÿ’ฃ":"bomb","๐Ÿชƒ":"boomerang","๐Ÿน":"bow-and-arrow","๐Ÿ›ก๏ธ":"shield","๐Ÿชš":"carpentry-saw","๐Ÿ”ง":"wrench","๐Ÿช›":"screwdriver","๐Ÿ”ฉ":"nut-and-bolt","โš™๏ธ":"gear","๐Ÿ—œ๏ธ":"clamp","โš–๏ธ":"balance-scale","๐Ÿฆฏ":"white-cane","๐Ÿ”—":"link","โ›“๏ธ":"chains","๐Ÿช":"hook","๐Ÿงฐ":"toolbox","๐Ÿงฒ":"magnet","๐Ÿชœ":"ladder","โš—๏ธ":"alembic","๐Ÿงช":"test-tube","๐Ÿงซ":"petri-dish","๐Ÿงฌ":"dna","๐Ÿ”ฌ":"microscope","๐Ÿ”ญ":"telescope","๐Ÿ“ก":"satellite-antenna","๐Ÿ’‰":"syringe","๐Ÿฉธ":"drop-of-blood","๐Ÿ’Š":"pill","๐Ÿฉน":"adhesive-bandage","๐Ÿฉผ":"crutch","๐Ÿฉบ":"stethoscope","๐Ÿฉป":"x-ray","๐Ÿšช":"door","๐Ÿ›—":"elevator","๐Ÿชž":"mirror","๐ŸชŸ":"window","๐Ÿ›๏ธ":"bed","๐Ÿ›‹๏ธ":"couch-and-lamp","๐Ÿช‘":"chair","๐Ÿšฝ":"toilet","๐Ÿช ":"plunger","๐Ÿšฟ":"shower","๐Ÿ›":"bathtub","๐Ÿชค":"mouse-trap","๐Ÿช’":"razor","๐Ÿงด":"lotion-bottle","๐Ÿงท":"safety-pin","๐Ÿงน":"broom","๐Ÿงบ":"basket","๐Ÿงป":"roll-of-paper","๐Ÿชฃ":"bucket","๐Ÿงผ":"soap","๐Ÿซง":"bubbles","๐Ÿชฅ":"toothbrush","๐Ÿงฝ":"sponge","๐Ÿงฏ":"fire-extinguisher","๐Ÿ›’":"shopping-cart","๐Ÿšฌ":"cigarette","โšฐ๏ธ":"coffin","๐Ÿชฆ":"headstone","โšฑ๏ธ":"funeral-urn","๐Ÿงฟ":"nazar-amulet","๐Ÿชฌ":"hamsa","๐Ÿ—ฟ":"moai","๐Ÿชง":"placard","๐Ÿชช":"identification-card","๐Ÿง":"atm-sign","๐Ÿšฎ":"litter-in-bin-sign","๐Ÿšฐ":"potable-water","โ™ฟ":"wheelchair-symbol","๐Ÿšน":"men-s-room","๐Ÿšบ":"women-s-room","๐Ÿšป":"restroom","๐Ÿšผ":"baby-symbol","๐Ÿšพ":"water-closet","๐Ÿ›‚":"passport-control","๐Ÿ›ƒ":"customs","๐Ÿ›„":"baggage-claim","๐Ÿ›…":"left-luggage","โš ๏ธ":"warning","๐Ÿšธ":"children-crossing","โ›”":"no-entry","๐Ÿšซ":"prohibited","๐Ÿšณ":"no-bicycles","๐Ÿšญ":"no-smoking","๐Ÿšฏ":"no-littering","๐Ÿšฑ":"non-potable-water","๐Ÿšท":"no-pedestrians","๐Ÿ“ต":"no-mobile-phones","๐Ÿ”ž":"no-one-under-eighteen","โ˜ข๏ธ":"radioactive","โ˜ฃ๏ธ":"biohazard","โฌ†๏ธ":"up-arrow","โ†—๏ธ":"up-right-arrow","โžก๏ธ":"right-arrow","โ†˜๏ธ":"down-right-arrow","โฌ‡๏ธ":"down-arrow","โ†™๏ธ":"down-left-arrow","โฌ…๏ธ":"left-arrow","โ†–๏ธ":"up-left-arrow","โ†•๏ธ":"up-down-arrow","โ†”๏ธ":"left-right-arrow","โ†ฉ๏ธ":"right-arrow-curving-left","โ†ช๏ธ":"left-arrow-curving-right","โคด๏ธ":"right-arrow-curving-up","โคต๏ธ":"right-arrow-curving-down","๐Ÿ”ƒ":"clockwise-vertical-arrows","๐Ÿ”„":"counterclockwise-arrows-button","๐Ÿ”™":"back-arrow","๐Ÿ”š":"end-arrow","๐Ÿ”›":"on-arrow","๐Ÿ”œ":"soon-arrow","๐Ÿ”":"top-arrow","๐Ÿ›":"place-of-worship","โš›๏ธ":"atom-symbol","๐Ÿ•‰๏ธ":"om","โœก๏ธ":"star-of-david","โ˜ธ๏ธ":"wheel-of-dharma","โ˜ฏ๏ธ":"yin-yang","โœ๏ธ":"latin-cross","โ˜ฆ๏ธ":"orthodox-cross","โ˜ช๏ธ":"star-and-crescent","โ˜ฎ๏ธ":"peace-symbol","๐Ÿ•Ž":"menorah","๐Ÿ”ฏ":"dotted-six-pointed-star","๐Ÿชฏ":"khanda","โ™ˆ":"aries","โ™‰":"taurus","โ™Š":"gemini","โ™‹":"cancer","โ™Œ":"leo","โ™":"virgo","โ™Ž":"libra","โ™":"scorpio","โ™":"sagittarius","โ™‘":"capricorn","โ™’":"aquarius","โ™“":"pisces","โ›Ž":"ophiuchus","๐Ÿ”€":"shuffle-tracks-button","๐Ÿ”":"repeat-button","๐Ÿ”‚":"repeat-single-button","โ–ถ๏ธ":"play-button","โฉ":"fast-forward-button","โญ๏ธ":"next-track-button","โฏ๏ธ":"play-or-pause-button","โ—€๏ธ":"reverse-button","โช":"fast-reverse-button","โฎ๏ธ":"last-track-button","๐Ÿ”ผ":"upwards-button","โซ":"fast-up-button","๐Ÿ”ฝ":"downwards-button","โฌ":"fast-down-button","โธ๏ธ":"pause-button","โน๏ธ":"stop-button","โบ๏ธ":"record-button","โ๏ธ":"eject-button","๐ŸŽฆ":"cinema","๐Ÿ”…":"dim-button","๐Ÿ”†":"bright-button","๐Ÿ“ถ":"antenna-bars","๐Ÿ›œ":"wireless","๐Ÿ“ณ":"vibration-mode","๐Ÿ“ด":"mobile-phone-off","โ™€๏ธ":"female-sign","โ™‚๏ธ":"male-sign","โšง๏ธ":"transgender-symbol","โœ–๏ธ":"multiply","โž•":"plus","โž–":"minus","โž—":"divide","๐ŸŸฐ":"heavy-equals-sign","โ™พ๏ธ":"infinity","โ€ผ๏ธ":"double-exclamation-mark","โ‰๏ธ":"exclamation-question-mark","โ“":"red-question-mark","โ”":"white-question-mark","โ•":"white-exclamation-mark","โ—":"red-exclamation-mark","ใ€ฐ๏ธ":"wavy-dash","๐Ÿ’ฑ":"currency-exchange","๐Ÿ’ฒ":"heavy-dollar-sign","โš•๏ธ":"medical-symbol","โ™ป๏ธ":"recycling-symbol","โšœ๏ธ":"fleur-de-lis","๐Ÿ”ฑ":"trident-emblem","๐Ÿ“›":"name-badge","๐Ÿ”ฐ":"japanese-symbol-for-beginner","โญ•":"hollow-red-circle","โœ…":"check-mark-button","โ˜‘๏ธ":"check-box-with-check","โœ”๏ธ":"check-mark","โŒ":"cross-mark","โŽ":"cross-mark-button","โžฐ":"curly-loop","โžฟ":"double-curly-loop","ใ€ฝ๏ธ":"part-alternation-mark","โœณ๏ธ":"eight-spoked-asterisk","โœด๏ธ":"eight-pointed-star","โ‡๏ธ":"sparkle","ยฉ๏ธ":"copyright","ยฎ๏ธ":"registered","โ„ข๏ธ":"trade-mark","#๏ธโƒฃ":"keycap-number-sign","*๏ธโƒฃ":"keycap-asterisk","0๏ธโƒฃ":"keycap-0","1๏ธโƒฃ":"keycap-1","2๏ธโƒฃ":"keycap-2","3๏ธโƒฃ":"keycap-3","4๏ธโƒฃ":"keycap-4","5๏ธโƒฃ":"keycap-5","6๏ธโƒฃ":"keycap-6","7๏ธโƒฃ":"keycap-7","8๏ธโƒฃ":"keycap-8","9๏ธโƒฃ":"keycap-9","๐Ÿ”Ÿ":"keycap-10","๐Ÿ” ":"input-latin-uppercase","๐Ÿ”ก":"input-latin-lowercase","๐Ÿ”ข":"input-numbers","๐Ÿ”ฃ":"input-symbols","๐Ÿ”ค":"input-latin-letters","๐Ÿ…ฐ๏ธ":"a-button","๐Ÿ†Ž":"ab-button","๐Ÿ…ฑ๏ธ":"b-button","๐Ÿ†‘":"cl-button","๐Ÿ†’":"cool-button","๐Ÿ†“":"free-button","โ„น๏ธ":"information","๐Ÿ†”":"id-button","โ“‚๏ธ":"circled-m","๐Ÿ†•":"new-button","๐Ÿ†–":"ng-button","๐Ÿ…พ๏ธ":"o-button","๐Ÿ†—":"ok-button","๐Ÿ…ฟ๏ธ":"p-button","๐Ÿ†˜":"sos-button","๐Ÿ†™":"up-button","๐Ÿ†š":"vs-button","๐Ÿˆ":"japanese-here-button","๐Ÿˆ‚๏ธ":"japanese-service-charge-button","๐Ÿˆท๏ธ":"japanese-monthly-amount-button","๐Ÿˆถ":"japanese-not-free-of-charge-button","๐Ÿˆฏ":"japanese-reserved-button","๐Ÿ‰":"japanese-bargain-button","๐Ÿˆน":"japanese-discount-button","๐Ÿˆš":"japanese-free-of-charge-button","๐Ÿˆฒ":"japanese-prohibited-button","๐Ÿ‰‘":"japanese-acceptable-button","๐Ÿˆธ":"japanese-application-button","๐Ÿˆด":"japanese-passing-grade-button","๐Ÿˆณ":"japanese-vacancy-button","ใŠ—๏ธ":"japanese-congratulations-button","ใŠ™๏ธ":"japanese-secret-button","๐Ÿˆบ":"japanese-open-for-business-button","๐Ÿˆต":"japanese-no-vacancy-button","๐Ÿ”ด":"red-circle","๐ŸŸ ":"orange-circle","๐ŸŸก":"yellow-circle","๐ŸŸข":"green-circle","๐Ÿ”ต":"blue-circle","๐ŸŸฃ":"purple-circle","๐ŸŸค":"brown-circle","โšซ":"black-circle","โšช":"white-circle","๐ŸŸฅ":"red-square","๐ŸŸง":"orange-square","๐ŸŸจ":"yellow-square","๐ŸŸฉ":"green-square","๐ŸŸฆ":"blue-square","๐ŸŸช":"purple-square","๐ŸŸซ":"brown-square","โฌ›":"black-large-square","โฌœ":"white-large-square","โ—ผ๏ธ":"black-medium-square","โ—ป๏ธ":"white-medium-square","โ—พ":"black-medium-small-square","โ—ฝ":"white-medium-small-square","โ–ช๏ธ":"black-small-square","โ–ซ๏ธ":"white-small-square","๐Ÿ”ถ":"large-orange-diamond","๐Ÿ”ท":"large-blue-diamond","๐Ÿ”ธ":"small-orange-diamond","๐Ÿ”น":"small-blue-diamond","๐Ÿ”บ":"red-triangle-pointed-up","๐Ÿ”ป":"red-triangle-pointed-down","๐Ÿ’ ":"diamond-with-a-dot","๐Ÿ”˜":"radio-button","๐Ÿ”ณ":"white-square-button","๐Ÿ”ฒ":"black-square-button","๐Ÿ":"chequered-flag","๐Ÿšฉ":"triangular-flag","๐ŸŽŒ":"crossed-flags","๐Ÿด":"black-flag","๐Ÿณ๏ธ":"white-flag","๐Ÿณ๏ธโ€๐ŸŒˆ":"rainbow-flag","๐Ÿณ๏ธโ€โšง๏ธ":"transgender-flag","๐Ÿดโ€โ˜ ๏ธ":"pirate-flag","๐Ÿ‡ฆ๐Ÿ‡จ":"flag-ascension-island","๐Ÿ‡ฆ๐Ÿ‡ฉ":"flag-andorra","๐Ÿ‡ฆ๐Ÿ‡ช":"flag-united-arab-emirates","๐Ÿ‡ฆ๐Ÿ‡ซ":"flag-afghanistan","๐Ÿ‡ฆ๐Ÿ‡ฌ":"flag-antigua-barbuda","๐Ÿ‡ฆ๐Ÿ‡ฎ":"flag-anguilla","๐Ÿ‡ฆ๐Ÿ‡ฑ":"flag-albania","๐Ÿ‡ฆ๐Ÿ‡ฒ":"flag-armenia","๐Ÿ‡ฆ๐Ÿ‡ด":"flag-angola","๐Ÿ‡ฆ๐Ÿ‡ถ":"flag-antarctica","๐Ÿ‡ฆ๐Ÿ‡ท":"flag-argentina","๐Ÿ‡ฆ๐Ÿ‡ธ":"flag-american-samoa","๐Ÿ‡ฆ๐Ÿ‡น":"flag-austria","๐Ÿ‡ฆ๐Ÿ‡บ":"flag-australia","๐Ÿ‡ฆ๐Ÿ‡ผ":"flag-aruba","๐Ÿ‡ฆ๐Ÿ‡ฝ":"flag-aland-islands","๐Ÿ‡ฆ๐Ÿ‡ฟ":"flag-azerbaijan","๐Ÿ‡ง๐Ÿ‡ฆ":"flag-bosnia-herzegovina","๐Ÿ‡ง๐Ÿ‡ง":"flag-barbados","๐Ÿ‡ง๐Ÿ‡ฉ":"flag-bangladesh","๐Ÿ‡ง๐Ÿ‡ช":"flag-belgium","๐Ÿ‡ง๐Ÿ‡ซ":"flag-burkina-faso","๐Ÿ‡ง๐Ÿ‡ฌ":"flag-bulgaria","๐Ÿ‡ง๐Ÿ‡ญ":"flag-bahrain","๐Ÿ‡ง๐Ÿ‡ฎ":"flag-burundi","๐Ÿ‡ง๐Ÿ‡ฏ":"flag-benin","๐Ÿ‡ง๐Ÿ‡ฑ":"flag-st-barthelemy","๐Ÿ‡ง๐Ÿ‡ฒ":"flag-bermuda","๐Ÿ‡ง๐Ÿ‡ณ":"flag-brunei","๐Ÿ‡ง๐Ÿ‡ด":"flag-bolivia","๐Ÿ‡ง๐Ÿ‡ถ":"flag-caribbean-netherlands","๐Ÿ‡ง๐Ÿ‡ท":"flag-brazil","๐Ÿ‡ง๐Ÿ‡ธ":"flag-bahamas","๐Ÿ‡ง๐Ÿ‡น":"flag-bhutan","๐Ÿ‡ง๐Ÿ‡ป":"flag-bouvet-island","๐Ÿ‡ง๐Ÿ‡ผ":"flag-botswana","๐Ÿ‡ง๐Ÿ‡พ":"flag-belarus","๐Ÿ‡ง๐Ÿ‡ฟ":"flag-belize","๐Ÿ‡จ๐Ÿ‡ฆ":"flag-canada","๐Ÿ‡จ๐Ÿ‡จ":"flag-cocos-islands","๐Ÿ‡จ๐Ÿ‡ฉ":"flag-congo-kinshasa","๐Ÿ‡จ๐Ÿ‡ซ":"flag-central-african-republic","๐Ÿ‡จ๐Ÿ‡ฌ":"flag-congo-brazzaville","๐Ÿ‡จ๐Ÿ‡ญ":"flag-switzerland","๐Ÿ‡จ๐Ÿ‡ฎ":"flag-cote-d-ivoire","๐Ÿ‡จ๐Ÿ‡ฐ":"flag-cook-islands","๐Ÿ‡จ๐Ÿ‡ฑ":"flag-chile","๐Ÿ‡จ๐Ÿ‡ฒ":"flag-cameroon","๐Ÿ‡จ๐Ÿ‡ณ":"flag-china","๐Ÿ‡จ๐Ÿ‡ด":"flag-colombia","๐Ÿ‡จ๐Ÿ‡ต":"flag-clipperton-island","๐Ÿ‡จ๐Ÿ‡ท":"flag-costa-rica","๐Ÿ‡จ๐Ÿ‡บ":"flag-cuba","๐Ÿ‡จ๐Ÿ‡ป":"flag-cape-verde","๐Ÿ‡จ๐Ÿ‡ผ":"flag-curacao","๐Ÿ‡จ๐Ÿ‡ฝ":"flag-christmas-island","๐Ÿ‡จ๐Ÿ‡พ":"flag-cyprus","๐Ÿ‡จ๐Ÿ‡ฟ":"flag-czechia","๐Ÿ‡ฉ๐Ÿ‡ช":"flag-germany","๐Ÿ‡ฉ๐Ÿ‡ฌ":"flag-diego-garcia","๐Ÿ‡ฉ๐Ÿ‡ฏ":"flag-djibouti","๐Ÿ‡ฉ๐Ÿ‡ฐ":"flag-denmark","๐Ÿ‡ฉ๐Ÿ‡ฒ":"flag-dominica","๐Ÿ‡ฉ๐Ÿ‡ด":"flag-dominican-republic","๐Ÿ‡ฉ๐Ÿ‡ฟ":"flag-algeria","๐Ÿ‡ช๐Ÿ‡ฆ":"flag-ceuta-melilla","๐Ÿ‡ช๐Ÿ‡จ":"flag-ecuador","๐Ÿ‡ช๐Ÿ‡ช":"flag-estonia","๐Ÿ‡ช๐Ÿ‡ฌ":"flag-egypt","๐Ÿ‡ช๐Ÿ‡ญ":"flag-western-sahara","๐Ÿ‡ช๐Ÿ‡ท":"flag-eritrea","๐Ÿ‡ช๐Ÿ‡ธ":"flag-spain","๐Ÿ‡ช๐Ÿ‡น":"flag-ethiopia","๐Ÿ‡ช๐Ÿ‡บ":"flag-european-union","๐Ÿ‡ซ๐Ÿ‡ฎ":"flag-finland","๐Ÿ‡ซ๐Ÿ‡ฏ":"flag-fiji","๐Ÿ‡ซ๐Ÿ‡ฐ":"flag-falkland-islands","๐Ÿ‡ซ๐Ÿ‡ฒ":"flag-micronesia","๐Ÿ‡ซ๐Ÿ‡ด":"flag-faroe-islands","๐Ÿ‡ซ๐Ÿ‡ท":"flag-france","๐Ÿ‡ฌ๐Ÿ‡ฆ":"flag-gabon","๐Ÿ‡ฌ๐Ÿ‡ง":"flag-united-kingdom","๐Ÿ‡ฌ๐Ÿ‡ฉ":"flag-grenada","๐Ÿ‡ฌ๐Ÿ‡ช":"flag-georgia","๐Ÿ‡ฌ๐Ÿ‡ซ":"flag-french-guiana","๐Ÿ‡ฌ๐Ÿ‡ฌ":"flag-guernsey","๐Ÿ‡ฌ๐Ÿ‡ญ":"flag-ghana","๐Ÿ‡ฌ๐Ÿ‡ฎ":"flag-gibraltar","๐Ÿ‡ฌ๐Ÿ‡ฑ":"flag-greenland","๐Ÿ‡ฌ๐Ÿ‡ฒ":"flag-gambia","๐Ÿ‡ฌ๐Ÿ‡ณ":"flag-guinea","๐Ÿ‡ฌ๐Ÿ‡ต":"flag-guadeloupe","๐Ÿ‡ฌ๐Ÿ‡ถ":"flag-equatorial-guinea","๐Ÿ‡ฌ๐Ÿ‡ท":"flag-greece","๐Ÿ‡ฌ๐Ÿ‡ธ":"flag-south-georgia-south-sandwich-islands","๐Ÿ‡ฌ๐Ÿ‡น":"flag-guatemala","๐Ÿ‡ฌ๐Ÿ‡บ":"flag-guam","๐Ÿ‡ฌ๐Ÿ‡ผ":"flag-guinea-bissau","๐Ÿ‡ฌ๐Ÿ‡พ":"flag-guyana","๐Ÿ‡ญ๐Ÿ‡ฐ":"flag-hong-kong-sar-china","๐Ÿ‡ญ๐Ÿ‡ฒ":"flag-heard-mcdonald-islands","๐Ÿ‡ญ๐Ÿ‡ณ":"flag-honduras","๐Ÿ‡ญ๐Ÿ‡ท":"flag-croatia","๐Ÿ‡ญ๐Ÿ‡น":"flag-haiti","๐Ÿ‡ญ๐Ÿ‡บ":"flag-hungary","๐Ÿ‡ฎ๐Ÿ‡จ":"flag-canary-islands","๐Ÿ‡ฎ๐Ÿ‡ฉ":"flag-indonesia","๐Ÿ‡ฎ๐Ÿ‡ช":"flag-ireland","๐Ÿ‡ฎ๐Ÿ‡ฑ":"flag-israel","๐Ÿ‡ฎ๐Ÿ‡ฒ":"flag-isle-of-man","๐Ÿ‡ฎ๐Ÿ‡ณ":"flag-india","๐Ÿ‡ฎ๐Ÿ‡ด":"flag-british-indian-ocean-territory","๐Ÿ‡ฎ๐Ÿ‡ถ":"flag-iraq","๐Ÿ‡ฎ๐Ÿ‡ท":"flag-iran","๐Ÿ‡ฎ๐Ÿ‡ธ":"flag-iceland","๐Ÿ‡ฎ๐Ÿ‡น":"flag-italy","๐Ÿ‡ฏ๐Ÿ‡ช":"flag-jersey","๐Ÿ‡ฏ๐Ÿ‡ฒ":"flag-jamaica","๐Ÿ‡ฏ๐Ÿ‡ด":"flag-jordan","๐Ÿ‡ฏ๐Ÿ‡ต":"flag-japan","๐Ÿ‡ฐ๐Ÿ‡ช":"flag-kenya","๐Ÿ‡ฐ๐Ÿ‡ฌ":"flag-kyrgyzstan","๐Ÿ‡ฐ๐Ÿ‡ญ":"flag-cambodia","๐Ÿ‡ฐ๐Ÿ‡ฎ":"flag-kiribati","๐Ÿ‡ฐ๐Ÿ‡ฒ":"flag-comoros","๐Ÿ‡ฐ๐Ÿ‡ณ":"flag-st-kitts-nevis","๐Ÿ‡ฐ๐Ÿ‡ต":"flag-north-korea","๐Ÿ‡ฐ๐Ÿ‡ท":"flag-south-korea","๐Ÿ‡ฐ๐Ÿ‡ผ":"flag-kuwait","๐Ÿ‡ฐ๐Ÿ‡พ":"flag-cayman-islands","๐Ÿ‡ฐ๐Ÿ‡ฟ":"flag-kazakhstan","๐Ÿ‡ฑ๐Ÿ‡ฆ":"flag-laos","๐Ÿ‡ฑ๐Ÿ‡ง":"flag-lebanon","๐Ÿ‡ฑ๐Ÿ‡จ":"flag-st-lucia","๐Ÿ‡ฑ๐Ÿ‡ฎ":"flag-liechtenstein","๐Ÿ‡ฑ๐Ÿ‡ฐ":"flag-sri-lanka","๐Ÿ‡ฑ๐Ÿ‡ท":"flag-liberia","๐Ÿ‡ฑ๐Ÿ‡ธ":"flag-lesotho","๐Ÿ‡ฑ๐Ÿ‡น":"flag-lithuania","๐Ÿ‡ฑ๐Ÿ‡บ":"flag-luxembourg","๐Ÿ‡ฑ๐Ÿ‡ป":"flag-latvia","๐Ÿ‡ฑ๐Ÿ‡พ":"flag-libya","๐Ÿ‡ฒ๐Ÿ‡ฆ":"flag-morocco","๐Ÿ‡ฒ๐Ÿ‡จ":"flag-monaco","๐Ÿ‡ฒ๐Ÿ‡ฉ":"flag-moldova","๐Ÿ‡ฒ๐Ÿ‡ช":"flag-montenegro","๐Ÿ‡ฒ๐Ÿ‡ซ":"flag-st-martin","๐Ÿ‡ฒ๐Ÿ‡ฌ":"flag-madagascar","๐Ÿ‡ฒ๐Ÿ‡ญ":"flag-marshall-islands","๐Ÿ‡ฒ๐Ÿ‡ฐ":"flag-north-macedonia","๐Ÿ‡ฒ๐Ÿ‡ฑ":"flag-mali","๐Ÿ‡ฒ๐Ÿ‡ฒ":"flag-myanmar","๐Ÿ‡ฒ๐Ÿ‡ณ":"flag-mongolia","๐Ÿ‡ฒ๐Ÿ‡ด":"flag-macao-sar-china","๐Ÿ‡ฒ๐Ÿ‡ต":"flag-northern-mariana-islands","๐Ÿ‡ฒ๐Ÿ‡ถ":"flag-martinique","๐Ÿ‡ฒ๐Ÿ‡ท":"flag-mauritania","๐Ÿ‡ฒ๐Ÿ‡ธ":"flag-montserrat","๐Ÿ‡ฒ๐Ÿ‡น":"flag-malta","๐Ÿ‡ฒ๐Ÿ‡บ":"flag-mauritius","๐Ÿ‡ฒ๐Ÿ‡ป":"flag-maldives","๐Ÿ‡ฒ๐Ÿ‡ผ":"flag-malawi","๐Ÿ‡ฒ๐Ÿ‡ฝ":"flag-mexico","๐Ÿ‡ฒ๐Ÿ‡พ":"flag-malaysia","๐Ÿ‡ฒ๐Ÿ‡ฟ":"flag-mozambique","๐Ÿ‡ณ๐Ÿ‡ฆ":"flag-namibia","๐Ÿ‡ณ๐Ÿ‡จ":"flag-new-caledonia","๐Ÿ‡ณ๐Ÿ‡ช":"flag-niger","๐Ÿ‡ณ๐Ÿ‡ซ":"flag-norfolk-island","๐Ÿ‡ณ๐Ÿ‡ฌ":"flag-nigeria","๐Ÿ‡ณ๐Ÿ‡ฎ":"flag-nicaragua","๐Ÿ‡ณ๐Ÿ‡ฑ":"flag-netherlands","๐Ÿ‡ณ๐Ÿ‡ด":"flag-norway","๐Ÿ‡ณ๐Ÿ‡ต":"flag-nepal","๐Ÿ‡ณ๐Ÿ‡ท":"flag-nauru","๐Ÿ‡ณ๐Ÿ‡บ":"flag-niue","๐Ÿ‡ณ๐Ÿ‡ฟ":"flag-new-zealand","๐Ÿ‡ด๐Ÿ‡ฒ":"flag-oman","๐Ÿ‡ต๐Ÿ‡ฆ":"flag-panama","๐Ÿ‡ต๐Ÿ‡ช":"flag-peru","๐Ÿ‡ต๐Ÿ‡ซ":"flag-french-polynesia","๐Ÿ‡ต๐Ÿ‡ฌ":"flag-papua-new-guinea","๐Ÿ‡ต๐Ÿ‡ญ":"flag-philippines","๐Ÿ‡ต๐Ÿ‡ฐ":"flag-pakistan","๐Ÿ‡ต๐Ÿ‡ฑ":"flag-poland","๐Ÿ‡ต๐Ÿ‡ฒ":"flag-st-pierre-miquelon","๐Ÿ‡ต๐Ÿ‡ณ":"flag-pitcairn-islands","๐Ÿ‡ต๐Ÿ‡ท":"flag-puerto-rico","๐Ÿ‡ต๐Ÿ‡ธ":"flag-palestinian-territories","๐Ÿ‡ต๐Ÿ‡น":"flag-portugal","๐Ÿ‡ต๐Ÿ‡ผ":"flag-palau","๐Ÿ‡ต๐Ÿ‡พ":"flag-paraguay","๐Ÿ‡ถ๐Ÿ‡ฆ":"flag-qatar","๐Ÿ‡ท๐Ÿ‡ช":"flag-reunion","๐Ÿ‡ท๐Ÿ‡ด":"flag-romania","๐Ÿ‡ท๐Ÿ‡ธ":"flag-serbia","๐Ÿ‡ท๐Ÿ‡บ":"flag-russia","๐Ÿ‡ท๐Ÿ‡ผ":"flag-rwanda","๐Ÿ‡ธ๐Ÿ‡ฆ":"flag-saudi-arabia","๐Ÿ‡ธ๐Ÿ‡ง":"flag-solomon-islands","๐Ÿ‡ธ๐Ÿ‡จ":"flag-seychelles","๐Ÿ‡ธ๐Ÿ‡ฉ":"flag-sudan","๐Ÿ‡ธ๐Ÿ‡ช":"flag-sweden","๐Ÿ‡ธ๐Ÿ‡ฌ":"flag-singapore","๐Ÿ‡ธ๐Ÿ‡ญ":"flag-st-helena","๐Ÿ‡ธ๐Ÿ‡ฎ":"flag-slovenia","๐Ÿ‡ธ๐Ÿ‡ฏ":"flag-svalbard-jan-mayen","๐Ÿ‡ธ๐Ÿ‡ฐ":"flag-slovakia","๐Ÿ‡ธ๐Ÿ‡ฑ":"flag-sierra-leone","๐Ÿ‡ธ๐Ÿ‡ฒ":"flag-san-marino","๐Ÿ‡ธ๐Ÿ‡ณ":"flag-senegal","๐Ÿ‡ธ๐Ÿ‡ด":"flag-somalia","๐Ÿ‡ธ๐Ÿ‡ท":"flag-suriname","๐Ÿ‡ธ๐Ÿ‡ธ":"flag-south-sudan","๐Ÿ‡ธ๐Ÿ‡น":"flag-sao-tome-principe","๐Ÿ‡ธ๐Ÿ‡ป":"flag-el-salvador","๐Ÿ‡ธ๐Ÿ‡ฝ":"flag-sint-maarten","๐Ÿ‡ธ๐Ÿ‡พ":"flag-syria","๐Ÿ‡ธ๐Ÿ‡ฟ":"flag-eswatini","๐Ÿ‡น๐Ÿ‡ฆ":"flag-tristan-da-cunha","๐Ÿ‡น๐Ÿ‡จ":"flag-turks-caicos-islands","๐Ÿ‡น๐Ÿ‡ฉ":"flag-chad","๐Ÿ‡น๐Ÿ‡ซ":"flag-french-southern-territories","๐Ÿ‡น๐Ÿ‡ฌ":"flag-togo","๐Ÿ‡น๐Ÿ‡ญ":"flag-thailand","๐Ÿ‡น๐Ÿ‡ฏ":"flag-tajikistan","๐Ÿ‡น๐Ÿ‡ฐ":"flag-tokelau","๐Ÿ‡น๐Ÿ‡ฑ":"flag-timor-leste","๐Ÿ‡น๐Ÿ‡ฒ":"flag-turkmenistan","๐Ÿ‡น๐Ÿ‡ณ":"flag-tunisia","๐Ÿ‡น๐Ÿ‡ด":"flag-tonga","๐Ÿ‡น๐Ÿ‡ท":"flag-turkey","๐Ÿ‡น๐Ÿ‡น":"flag-trinidad-tobago","๐Ÿ‡น๐Ÿ‡ป":"flag-tuvalu","๐Ÿ‡น๐Ÿ‡ผ":"flag-taiwan","๐Ÿ‡น๐Ÿ‡ฟ":"flag-tanzania","๐Ÿ‡บ๐Ÿ‡ฆ":"flag-ukraine","๐Ÿ‡บ๐Ÿ‡ฌ":"flag-uganda","๐Ÿ‡บ๐Ÿ‡ฒ":"flag-u-s-outlying-islands","๐Ÿ‡บ๐Ÿ‡ณ":"flag-united-nations","๐Ÿ‡บ๐Ÿ‡ธ":"flag-united-states","๐Ÿ‡บ๐Ÿ‡พ":"flag-uruguay","๐Ÿ‡บ๐Ÿ‡ฟ":"flag-uzbekistan","๐Ÿ‡ป๐Ÿ‡ฆ":"flag-vatican-city","๐Ÿ‡ป๐Ÿ‡จ":"flag-st-vincent-grenadines","๐Ÿ‡ป๐Ÿ‡ช":"flag-venezuela","๐Ÿ‡ป๐Ÿ‡ฌ":"flag-british-virgin-islands","๐Ÿ‡ป๐Ÿ‡ฎ":"flag-u-s-virgin-islands","๐Ÿ‡ป๐Ÿ‡ณ":"flag-vietnam","๐Ÿ‡ป๐Ÿ‡บ":"flag-vanuatu","๐Ÿ‡ผ๐Ÿ‡ซ":"flag-wallis-futuna","๐Ÿ‡ผ๐Ÿ‡ธ":"flag-samoa","๐Ÿ‡ฝ๐Ÿ‡ฐ":"flag-kosovo","๐Ÿ‡พ๐Ÿ‡ช":"flag-yemen","๐Ÿ‡พ๐Ÿ‡น":"flag-mayotte","๐Ÿ‡ฟ๐Ÿ‡ฆ":"flag-south-africa","๐Ÿ‡ฟ๐Ÿ‡ฒ":"flag-zambia","๐Ÿ‡ฟ๐Ÿ‡ผ":"flag-zimbabwe","๐Ÿด๓ ง๓ ข๓ ฅ๓ ฎ๓ ง๓ ฟ":"flag-england","๐Ÿด๓ ง๓ ข๓ ณ๓ ฃ๓ ด๓ ฟ":"flag-scotland","๐Ÿด๓ ง๓ ข๓ ท๓ ฌ๓ ณ๓ ฟ":"flag-wales"};var dJ,IJ=function(A){var e,t=/[#*0-9]\uFE0F?\u20E3|[\xA9\xAE\u203C\u2049\u2122\u2139\u2194-\u2199\u21A9\u21AA\u231A\u231B\u2328\u23CF\u23ED-\u23EF\u23F1\u23F2\u23F8-\u23FA\u24C2\u25AA\u25AB\u25B6\u25C0\u25FB\u25FC\u25FE\u2600-\u2604\u260E\u2611\u2614\u2615\u2618\u2620\u2622\u2623\u2626\u262A\u262E\u262F\u2638-\u263A\u2640\u2642\u2648-\u2653\u265F\u2660\u2663\u2665\u2666\u2668\u267B\u267E\u267F\u2692\u2694-\u2697\u2699\u269B\u269C\u26A0\u26A7\u26AA\u26B0\u26B1\u26BD\u26BE\u26C4\u26C8\u26CF\u26D1\u26E9\u26F0-\u26F5\u26F7\u26F8\u26FA\u2702\u2708\u2709\u270F\u2712\u2714\u2716\u271D\u2721\u2733\u2734\u2744\u2747\u2757\u2763\u27A1\u2934\u2935\u2B05-\u2B07\u2B1B\u2B1C\u2B55\u3030\u303D\u3297\u3299]\uFE0F?|[\u261D\u270C\u270D](?:\uFE0F|\uD83C[\uDFFB-\uDFFF])?|[\u270A\u270B](?:\uD83C[\uDFFB-\uDFFF])?|[\u23E9-\u23EC\u23F0\u23F3\u25FD\u2693\u26A1\u26AB\u26C5\u26CE\u26D4\u26EA\u26FD\u2705\u2728\u274C\u274E\u2753-\u2755\u2795-\u2797\u27B0\u27BF\u2B50]|\u26D3\uFE0F?(?:\u200D\uD83D\uDCA5)?|\u26F9(?:\uFE0F|\uD83C[\uDFFB-\uDFFF])?(?:\u200D[\u2640\u2642]\uFE0F?)?|\u2764\uFE0F?(?:\u200D(?:\uD83D\uDD25|\uD83E\uDE79))?|\uD83C(?:[\uDC04\uDD70\uDD71\uDD7E\uDD7F\uDE02\uDE37\uDF21\uDF24-\uDF2C\uDF36\uDF7D\uDF96\uDF97\uDF99-\uDF9B\uDF9E\uDF9F\uDFCD\uDFCE\uDFD4-\uDFDF\uDFF5\uDFF7]\uFE0F?|[\uDF85\uDFC2\uDFC7](?:\uD83C[\uDFFB-\uDFFF])?|[\uDFC4\uDFCA](?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D[\u2640\u2642]\uFE0F?)?|[\uDFCB\uDFCC](?:\uFE0F|\uD83C[\uDFFB-\uDFFF])?(?:\u200D[\u2640\u2642]\uFE0F?)?|[\uDCCF\uDD8E\uDD91-\uDD9A\uDE01\uDE1A\uDE2F\uDE32-\uDE36\uDE38-\uDE3A\uDE50\uDE51\uDF00-\uDF20\uDF2D-\uDF35\uDF37-\uDF43\uDF45-\uDF4A\uDF4C-\uDF7C\uDF7E-\uDF84\uDF86-\uDF93\uDFA0-\uDFC1\uDFC5\uDFC6\uDFC8\uDFC9\uDFCF-\uDFD3\uDFE0-\uDFF0\uDFF8-\uDFFF]|\uDDE6\uD83C[\uDDE8-\uDDEC\uDDEE\uDDF1\uDDF2\uDDF4\uDDF6-\uDDFA\uDDFC\uDDFD\uDDFF]|\uDDE7\uD83C[\uDDE6\uDDE7\uDDE9-\uDDEF\uDDF1-\uDDF4\uDDF6-\uDDF9\uDDFB\uDDFC\uDDFE\uDDFF]|\uDDE8\uD83C[\uDDE6\uDDE8\uDDE9\uDDEB-\uDDEE\uDDF0-\uDDF5\uDDF7\uDDFA-\uDDFF]|\uDDE9\uD83C[\uDDEA\uDDEC\uDDEF\uDDF0\uDDF2\uDDF4\uDDFF]|\uDDEA\uD83C[\uDDE6\uDDE8\uDDEA\uDDEC\uDDED\uDDF7-\uDDFA]|\uDDEB\uD83C[\uDDEE-\uDDF0\uDDF2\uDDF4\uDDF7]|\uDDEC\uD83C[\uDDE6\uDDE7\uDDE9-\uDDEE\uDDF1-\uDDF3\uDDF5-\uDDFA\uDDFC\uDDFE]|\uDDED\uD83C[\uDDF0\uDDF2\uDDF3\uDDF7\uDDF9\uDDFA]|\uDDEE\uD83C[\uDDE8-\uDDEA\uDDF1-\uDDF4\uDDF6-\uDDF9]|\uDDEF\uD83C[\uDDEA\uDDF2\uDDF4\uDDF5]|\uDDF0\uD83C[\uDDEA\uDDEC-\uDDEE\uDDF2\uDDF3\uDDF5\uDDF7\uDDFC\uDDFE\uDDFF]|\uDDF1\uD83C[\uDDE6-\uDDE8\uDDEE\uDDF0\uDDF7-\uDDFB\uDDFE]|\uDDF2\uD83C[\uDDE6\uDDE8-\uDDED\uDDF0-\uDDFF]|\uDDF3\uD83C[\uDDE6\uDDE8\uDDEA-\uDDEC\uDDEE\uDDF1\uDDF4\uDDF5\uDDF7\uDDFA\uDDFF]|\uDDF4\uD83C\uDDF2|\uDDF5\uD83C[\uDDE6\uDDEA-\uDDED\uDDF0-\uDDF3\uDDF7-\uDDF9\uDDFC\uDDFE]|\uDDF6\uD83C\uDDE6|\uDDF7\uD83C[\uDDEA\uDDF4\uDDF8\uDDFA\uDDFC]|\uDDF8\uD83C[\uDDE6-\uDDEA\uDDEC-\uDDF4\uDDF7-\uDDF9\uDDFB\uDDFD-\uDDFF]|\uDDF9\uD83C[\uDDE6\uDDE8\uDDE9\uDDEB-\uDDED\uDDEF-\uDDF4\uDDF7\uDDF9\uDDFB\uDDFC\uDDFF]|\uDDFA\uD83C[\uDDE6\uDDEC\uDDF2\uDDF3\uDDF8\uDDFE\uDDFF]|\uDDFB\uD83C[\uDDE6\uDDE8\uDDEA\uDDEC\uDDEE\uDDF3\uDDFA]|\uDDFC\uD83C[\uDDEB\uDDF8]|\uDDFD\uD83C\uDDF0|\uDDFE\uD83C[\uDDEA\uDDF9]|\uDDFF\uD83C[\uDDE6\uDDF2\uDDFC]|\uDF44(?:\u200D\uD83D\uDFEB)?|\uDF4B(?:\u200D\uD83D\uDFE9)?|\uDFC3(?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D(?:[\u2640\u2642]\uFE0F?(?:\u200D\u27A1\uFE0F?)?|\u27A1\uFE0F?))?|\uDFF3\uFE0F?(?:\u200D(?:\u26A7\uFE0F?|\uD83C\uDF08))?|\uDFF4(?:\u200D\u2620\uFE0F?|\uDB40\uDC67\uDB40\uDC62\uDB40(?:\uDC65\uDB40\uDC6E\uDB40\uDC67|\uDC73\uDB40\uDC63\uDB40\uDC74|\uDC77\uDB40\uDC6C\uDB40\uDC73)\uDB40\uDC7F)?)|\uD83D(?:[\uDC3F\uDCFD\uDD49\uDD4A\uDD6F\uDD70\uDD73\uDD76-\uDD79\uDD87\uDD8A-\uDD8D\uDDA5\uDDA8\uDDB1\uDDB2\uDDBC\uDDC2-\uDDC4\uDDD1-\uDDD3\uDDDC-\uDDDE\uDDE1\uDDE3\uDDE8\uDDEF\uDDF3\uDDFA\uDECB\uDECD-\uDECF\uDEE0-\uDEE5\uDEE9\uDEF0\uDEF3]\uFE0F?|[\uDC42\uDC43\uDC46-\uDC50\uDC66\uDC67\uDC6B-\uDC6D\uDC72\uDC74-\uDC76\uDC78\uDC7C\uDC83\uDC85\uDC8F\uDC91\uDCAA\uDD7A\uDD95\uDD96\uDE4C\uDE4F\uDEC0\uDECC](?:\uD83C[\uDFFB-\uDFFF])?|[\uDC6E\uDC70\uDC71\uDC73\uDC77\uDC81\uDC82\uDC86\uDC87\uDE45-\uDE47\uDE4B\uDE4D\uDE4E\uDEA3\uDEB4\uDEB5](?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D[\u2640\u2642]\uFE0F?)?|[\uDD74\uDD90](?:\uFE0F|\uD83C[\uDFFB-\uDFFF])?|[\uDC00-\uDC07\uDC09-\uDC14\uDC16-\uDC25\uDC27-\uDC3A\uDC3C-\uDC3E\uDC40\uDC44\uDC45\uDC51-\uDC65\uDC6A\uDC79-\uDC7B\uDC7D-\uDC80\uDC84\uDC88-\uDC8E\uDC90\uDC92-\uDCA9\uDCAB-\uDCFC\uDCFF-\uDD3D\uDD4B-\uDD4E\uDD50-\uDD67\uDDA4\uDDFB-\uDE2D\uDE2F-\uDE34\uDE37-\uDE41\uDE43\uDE44\uDE48-\uDE4A\uDE80-\uDEA2\uDEA4-\uDEB3\uDEB7-\uDEBF\uDEC1-\uDEC5\uDED0-\uDED2\uDED5-\uDED7\uDEDC-\uDEDF\uDEEB\uDEEC\uDEF4-\uDEFC\uDFE0-\uDFEB\uDFF0]|\uDC08(?:\u200D\u2B1B)?|\uDC15(?:\u200D\uD83E\uDDBA)?|\uDC26(?:\u200D(?:\u2B1B|\uD83D\uDD25))?|\uDC3B(?:\u200D\u2744\uFE0F?)?|\uDC41\uFE0F?(?:\u200D\uD83D\uDDE8\uFE0F?)?|\uDC68(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDC68\uDC69]\u200D\uD83D(?:\uDC66(?:\u200D\uD83D\uDC66)?|\uDC67(?:\u200D\uD83D[\uDC66\uDC67])?)|[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC66(?:\u200D\uD83D\uDC66)?|\uDC67(?:\u200D\uD83D[\uDC66\uDC67])?)|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]))|\uD83C(?:\uDFFB(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D\uDC68\uD83C[\uDFFC-\uDFFF])))?|\uDFFC(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D\uDC68\uD83C[\uDFFB\uDFFD-\uDFFF])))?|\uDFFD(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D\uDC68\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])))?|\uDFFE(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D\uDC68\uD83C[\uDFFB-\uDFFD\uDFFF])))?|\uDFFF(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D\uDC68\uD83C[\uDFFB-\uDFFE])))?))?|\uDC69(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?[\uDC68\uDC69]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC66(?:\u200D\uD83D\uDC66)?|\uDC67(?:\u200D\uD83D[\uDC66\uDC67])?|\uDC69\u200D\uD83D(?:\uDC66(?:\u200D\uD83D\uDC66)?|\uDC67(?:\u200D\uD83D[\uDC66\uDC67])?))|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]))|\uD83C(?:\uDFFB(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:[\uDC68\uDC69]|\uDC8B\u200D\uD83D[\uDC68\uDC69])\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFC-\uDFFF])))?|\uDFFC(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:[\uDC68\uDC69]|\uDC8B\u200D\uD83D[\uDC68\uDC69])\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFB\uDFFD-\uDFFF])))?|\uDFFD(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:[\uDC68\uDC69]|\uDC8B\u200D\uD83D[\uDC68\uDC69])\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])))?|\uDFFE(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:[\uDC68\uDC69]|\uDC8B\u200D\uD83D[\uDC68\uDC69])\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFB-\uDFFD\uDFFF])))?|\uDFFF(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:[\uDC68\uDC69]|\uDC8B\u200D\uD83D[\uDC68\uDC69])\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFB-\uDFFE])))?))?|\uDC6F(?:\u200D[\u2640\u2642]\uFE0F?)?|\uDD75(?:\uFE0F|\uD83C[\uDFFB-\uDFFF])?(?:\u200D[\u2640\u2642]\uFE0F?)?|\uDE2E(?:\u200D\uD83D\uDCA8)?|\uDE35(?:\u200D\uD83D\uDCAB)?|\uDE36(?:\u200D\uD83C\uDF2B\uFE0F?)?|\uDE42(?:\u200D[\u2194\u2195]\uFE0F?)?|\uDEB6(?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D(?:[\u2640\u2642]\uFE0F?(?:\u200D\u27A1\uFE0F?)?|\u27A1\uFE0F?))?)|\uD83E(?:[\uDD0C\uDD0F\uDD18-\uDD1F\uDD30-\uDD34\uDD36\uDD77\uDDB5\uDDB6\uDDBB\uDDD2\uDDD3\uDDD5\uDEC3-\uDEC5\uDEF0\uDEF2-\uDEF8](?:\uD83C[\uDFFB-\uDFFF])?|[\uDD26\uDD35\uDD37-\uDD39\uDD3D\uDD3E\uDDB8\uDDB9\uDDCD\uDDCF\uDDD4\uDDD6-\uDDDD](?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D[\u2640\u2642]\uFE0F?)?|[\uDDDE\uDDDF](?:\u200D[\u2640\u2642]\uFE0F?)?|[\uDD0D\uDD0E\uDD10-\uDD17\uDD20-\uDD25\uDD27-\uDD2F\uDD3A\uDD3F-\uDD45\uDD47-\uDD76\uDD78-\uDDB4\uDDB7\uDDBA\uDDBC-\uDDCC\uDDD0\uDDE0-\uDDFF\uDE70-\uDE7C\uDE80-\uDE88\uDE90-\uDEBD\uDEBF-\uDEC2\uDECE-\uDEDB\uDEE0-\uDEE8]|\uDD3C(?:\u200D[\u2640\u2642]\uFE0F?|\uD83C[\uDFFB-\uDFFF])?|\uDDCE(?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D(?:[\u2640\u2642]\uFE0F?(?:\u200D\u27A1\uFE0F?)?|\u27A1\uFE0F?))?|\uDDD1(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83E\uDDD1|\uDDD1\u200D\uD83E\uDDD2(?:\u200D\uD83E\uDDD2)?|\uDDD2(?:\u200D\uD83E\uDDD2)?))|\uD83C(?:\uDFFB(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1\uD83C[\uDFFC-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF])))?|\uDFFC(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1\uD83C[\uDFFB\uDFFD-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF])))?|\uDFFD(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF])))?|\uDFFE(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1\uD83C[\uDFFB-\uDFFD\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF])))?|\uDFFF(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1\uD83C[\uDFFB-\uDFFE]|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF])))?))?|\uDEF1(?:\uD83C(?:\uDFFB(?:\u200D\uD83E\uDEF2\uD83C[\uDFFC-\uDFFF])?|\uDFFC(?:\u200D\uD83E\uDEF2\uD83C[\uDFFB\uDFFD-\uDFFF])?|\uDFFD(?:\u200D\uD83E\uDEF2\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])?|\uDFFE(?:\u200D\uD83E\uDEF2\uD83C[\uDFFB-\uDFFD\uDFFF])?|\uDFFF(?:\u200D\uD83E\uDEF2\uD83C[\uDFFB-\uDFFE])?))?)/g;return null===(e=A.match(t))||void 0===e?void 0:e[0]},pJ=oY((function(A){return{container:(0,A.css)(dJ||(dJ=Bu(["\n position: relative;\n\n display: flex;\n align-items: center;\n justify-content: center;\n\n line-height: 1;\n text-align: center;\n "])))}})),fJ=J.memo((function(A){var e=A.emoji,t=A.className,n=A.style,o=A.type,r=void 0===o?"3d":o,i=A.size,a=void 0===i?40:i,s=A.unoptimized,l=BJ(),g=WQ(J.useState(!1),2),c=g[0],u=g[1],B=pJ(),Q=B.cx,E=B.styles,C=J.useMemo((function(){if("pure"!==r){var A=function(A){var e=IJ(A);if(e)return null==CJ?void 0:CJ[e]}(e);if(A)switch(r){case"modern":case"flat":case"high-contrast":return l({path:"icons/".concat(r,"/").concat(tJ(A),".svg"),pkg:"fluentui-emoji",version:"0.0.8"});case"anim":return l({path:"assets/".concat(A,".webp"),pkg:"@lobehub/assets-emoji-anim",version:"1.0.0"});case"3d":return l({path:"assets/".concat(A,".webp"),pkg:"@lobehub/assets-emoji",version:"1.3.0"})}}}),[r,e]);return"pure"===r||!C||c?AA.jsx("div",{className:Q(E.container,t),style:kc({fontSize:.9*a,height:a,width:a},n),children:e}):AA.jsx("div",{className:Q(E.container,t),style:kc({height:a,width:a},n),children:AA.jsx(EJ,{alt:e,height:a,loading:"lazy",onError:function(){return u(!0)},src:C,unoptimized:s,width:a})})}));var hJ=function(A){var e,t;function n(e){return QI(A.call(this,"An error occurred. See https://github.com/styled-components/polished/blob/main/src/internalHelpers/errors.md#"+e+" for more information.")||this)}return t=A,(e=n).prototype=Object.create(t.prototype),e.prototype.constructor=e,gI(e,t),n}(ob(Error));function wJ(A){return Math.round(255*A)}function DJ(A,e,t){return wJ(A)+","+wJ(e)+","+wJ(t)}function mJ(A,e,t,n){if(void 0===n&&(n=DJ),0===e)return n(t,t,t);var o=(A%360+360)%360/60,r=(1-Math.abs(2*t-1))*e,i=r*(1-Math.abs(o%2-1)),a=0,s=0,l=0;o>=0&&o<1?(a=r,s=i):o>=1&&o<2?(a=i,s=r):o>=2&&o<3?(s=r,l=i):o>=3&&o<4?(s=i,l=r):o>=4&&o<5?(a=i,l=r):o>=5&&o<6&&(a=r,l=i);var g=t-r/2;return n(a+g,s+g,l+g)}var yJ={aliceblue:"f0f8ff",antiquewhite:"faebd7",aqua:"00ffff",aquamarine:"7fffd4",azure:"f0ffff",beige:"f5f5dc",bisque:"ffe4c4",black:"000",blanchedalmond:"ffebcd",blue:"0000ff",blueviolet:"8a2be2",brown:"a52a2a",burlywood:"deb887",cadetblue:"5f9ea0",chartreuse:"7fff00",chocolate:"d2691e",coral:"ff7f50",cornflowerblue:"6495ed",cornsilk:"fff8dc",crimson:"dc143c",cyan:"00ffff",darkblue:"00008b",darkcyan:"008b8b",darkgoldenrod:"b8860b",darkgray:"a9a9a9",darkgreen:"006400",darkgrey:"a9a9a9",darkkhaki:"bdb76b",darkmagenta:"8b008b",darkolivegreen:"556b2f",darkorange:"ff8c00",darkorchid:"9932cc",darkred:"8b0000",darksalmon:"e9967a",darkseagreen:"8fbc8f",darkslateblue:"483d8b",darkslategray:"2f4f4f",darkslategrey:"2f4f4f",darkturquoise:"00ced1",darkviolet:"9400d3",deeppink:"ff1493",deepskyblue:"00bfff",dimgray:"696969",dimgrey:"696969",dodgerblue:"1e90ff",firebrick:"b22222",floralwhite:"fffaf0",forestgreen:"228b22",fuchsia:"ff00ff",gainsboro:"dcdcdc",ghostwhite:"f8f8ff",gold:"ffd700",goldenrod:"daa520",gray:"808080",green:"008000",greenyellow:"adff2f",grey:"808080",honeydew:"f0fff0",hotpink:"ff69b4",indianred:"cd5c5c",indigo:"4b0082",ivory:"fffff0",khaki:"f0e68c",lavender:"e6e6fa",lavenderblush:"fff0f5",lawngreen:"7cfc00",lemonchiffon:"fffacd",lightblue:"add8e6",lightcoral:"f08080",lightcyan:"e0ffff",lightgoldenrodyellow:"fafad2",lightgray:"d3d3d3",lightgreen:"90ee90",lightgrey:"d3d3d3",lightpink:"ffb6c1",lightsalmon:"ffa07a",lightseagreen:"20b2aa",lightskyblue:"87cefa",lightslategray:"789",lightslategrey:"789",lightsteelblue:"b0c4de",lightyellow:"ffffe0",lime:"0f0",limegreen:"32cd32",linen:"faf0e6",magenta:"f0f",maroon:"800000",mediumaquamarine:"66cdaa",mediumblue:"0000cd",mediumorchid:"ba55d3",mediumpurple:"9370db",mediumseagreen:"3cb371",mediumslateblue:"7b68ee",mediumspringgreen:"00fa9a",mediumturquoise:"48d1cc",mediumvioletred:"c71585",midnightblue:"191970",mintcream:"f5fffa",mistyrose:"ffe4e1",moccasin:"ffe4b5",navajowhite:"ffdead",navy:"000080",oldlace:"fdf5e6",olive:"808000",olivedrab:"6b8e23",orange:"ffa500",orangered:"ff4500",orchid:"da70d6",palegoldenrod:"eee8aa",palegreen:"98fb98",paleturquoise:"afeeee",palevioletred:"db7093",papayawhip:"ffefd5",peachpuff:"ffdab9",peru:"cd853f",pink:"ffc0cb",plum:"dda0dd",powderblue:"b0e0e6",purple:"800080",rebeccapurple:"639",red:"f00",rosybrown:"bc8f8f",royalblue:"4169e1",saddlebrown:"8b4513",salmon:"fa8072",sandybrown:"f4a460",seagreen:"2e8b57",seashell:"fff5ee",sienna:"a0522d",silver:"c0c0c0",skyblue:"87ceeb",slateblue:"6a5acd",slategray:"708090",slategrey:"708090",snow:"fffafa",springgreen:"00ff7f",steelblue:"4682b4",tan:"d2b48c",teal:"008080",thistle:"d8bfd8",tomato:"ff6347",turquoise:"40e0d0",violet:"ee82ee",wheat:"f5deb3",white:"fff",whitesmoke:"f5f5f5",yellow:"ff0",yellowgreen:"9acd32"};var bJ=/^#[a-fA-F0-9]{6}$/,vJ=/^#[a-fA-F0-9]{8}$/,kJ=/^#[a-fA-F0-9]{3}$/,MJ=/^#[a-fA-F0-9]{4}$/,xJ=/^rgb\(\s*(\d{1,3})\s*(?:,)?\s*(\d{1,3})\s*(?:,)?\s*(\d{1,3})\s*\)$/i,SJ=/^rgb(?:a)?\(\s*(\d{1,3})\s*(?:,)?\s*(\d{1,3})\s*(?:,)?\s*(\d{1,3})\s*(?:,|\/)\s*([-+]?\d*[.]?\d+[%]?)\s*\)$/i,FJ=/^hsl\(\s*(\d{0,3}[.]?[0-9]+(?:deg)?)\s*(?:,)?\s*(\d{1,3}[.]?[0-9]?)%\s*(?:,)?\s*(\d{1,3}[.]?[0-9]?)%\s*\)$/i,NJ=/^hsl(?:a)?\(\s*(\d{0,3}[.]?[0-9]+(?:deg)?)\s*(?:,)?\s*(\d{1,3}[.]?[0-9]?)%\s*(?:,)?\s*(\d{1,3}[.]?[0-9]?)%\s*(?:,|\/)\s*([-+]?\d*[.]?\d+[%]?)\s*\)$/i;function RJ(A){if("string"!=typeof A)throw new hJ(3);var e=function(A){if("string"!=typeof A)return A;var e=A.toLowerCase();return yJ[e]?"#"+yJ[e]:A}(A);if(e.match(bJ))return{red:parseInt(""+e[1]+e[2],16),green:parseInt(""+e[3]+e[4],16),blue:parseInt(""+e[5]+e[6],16)};if(e.match(vJ)){var t=parseFloat((parseInt(""+e[7]+e[8],16)/255).toFixed(2));return{red:parseInt(""+e[1]+e[2],16),green:parseInt(""+e[3]+e[4],16),blue:parseInt(""+e[5]+e[6],16),alpha:t}}if(e.match(kJ))return{red:parseInt(""+e[1]+e[1],16),green:parseInt(""+e[2]+e[2],16),blue:parseInt(""+e[3]+e[3],16)};if(e.match(MJ)){var n=parseFloat((parseInt(""+e[4]+e[4],16)/255).toFixed(2));return{red:parseInt(""+e[1]+e[1],16),green:parseInt(""+e[2]+e[2],16),blue:parseInt(""+e[3]+e[3],16),alpha:n}}var o=xJ.exec(e);if(o)return{red:parseInt(""+o[1],10),green:parseInt(""+o[2],10),blue:parseInt(""+o[3],10)};var r=SJ.exec(e.substring(0,50));if(r)return{red:parseInt(""+r[1],10),green:parseInt(""+r[2],10),blue:parseInt(""+r[3],10),alpha:parseFloat(""+r[4])>1?parseFloat(""+r[4])/100:parseFloat(""+r[4])};var i=FJ.exec(e);if(i){var a="rgb("+mJ(parseInt(""+i[1],10),parseInt(""+i[2],10)/100,parseInt(""+i[3],10)/100)+")",s=xJ.exec(a);if(!s)throw new hJ(4,e,a);return{red:parseInt(""+s[1],10),green:parseInt(""+s[2],10),blue:parseInt(""+s[3],10)}}var l=NJ.exec(e.substring(0,50));if(l){var g="rgb("+mJ(parseInt(""+l[1],10),parseInt(""+l[2],10)/100,parseInt(""+l[3],10)/100)+")",c=xJ.exec(g);if(!c)throw new hJ(4,e,g);return{red:parseInt(""+c[1],10),green:parseInt(""+c[2],10),blue:parseInt(""+c[3],10),alpha:parseFloat(""+l[4])>1?parseFloat(""+l[4])/100:parseFloat(""+l[4])}}throw new hJ(5)}function LJ(A){return function(A){var e,t=A.red/255,n=A.green/255,o=A.blue/255,r=Math.max(t,n,o),i=Math.min(t,n,o),a=(r+i)/2;if(r===i)return void 0!==A.alpha?{hue:0,saturation:0,lightness:a,alpha:A.alpha}:{hue:0,saturation:0,lightness:a};var s=r-i,l=a>.5?s/(2-r-i):s/(r+i);switch(r){case t:e=(n-o)/s+(n=1?KJ(A.red,A.green,A.blue):"rgba("+A.red+","+A.green+","+A.blue+","+A.alpha+")";throw new hJ(7)}var TJ=function(A){return"number"==typeof A.red&&"number"==typeof A.green&&"number"==typeof A.blue&&("number"!=typeof A.alpha||void 0===A.alpha)},JJ=function(A){return"number"==typeof A.red&&"number"==typeof A.green&&"number"==typeof A.blue&&"number"==typeof A.alpha},jJ=function(A){return"number"==typeof A.hue&&"number"==typeof A.saturation&&"number"==typeof A.lightness&&("number"!=typeof A.alpha||void 0===A.alpha)},qJ=function(A){return"number"==typeof A.hue&&"number"==typeof A.saturation&&"number"==typeof A.lightness&&"number"==typeof A.alpha};function $J(A){if("object"!=typeof A)throw new hJ(8);if(JJ(A))return YJ(A);if(TJ(A))return KJ(A);if(qJ(A))return function(A,e,t,n){if("number"==typeof A&&"number"==typeof e&&"number"==typeof t&&"number"==typeof n)return n>=1?UJ(A,e,t):"rgba("+mJ(A,e,t)+","+n+")";if("object"==typeof A&&void 0===e&&void 0===t&&void 0===n)return A.alpha>=1?UJ(A.hue,A.saturation,A.lightness):"rgba("+mJ(A.hue,A.saturation,A.lightness)+","+A.alpha+")";throw new hJ(2)}(A);if(jJ(A))return function(A,e,t){if("number"==typeof A&&"number"==typeof e&&"number"==typeof t)return UJ(A,e,t);if("object"==typeof A&&void 0===e&&void 0===t)return UJ(A.hue,A.saturation,A.lightness);throw new hJ(1)}(A);throw new hJ(8)}function zJ(A,e,t){return function(){var n=t.concat(Array.prototype.slice.call(arguments));return n.length>=e?A.apply(this,n):zJ(A,e,n)}}function WJ(A){return zJ(A,A.length,[])}var _J=WJ((function(A,e){if("transparent"===e)return e;var t=LJ(e);return $J(BQ({},t,{hue:t.hue+parseFloat(A)}))}));function XJ(A,e,t){return Math.max(A,Math.min(e,t))}function VJ(A){if("transparent"===A)return 0;var e=RJ(A),t=Object.keys(e).map((function(A){var t=e[A]/255;return t<=.03928?t/12.92:Math.pow((t+.055)/1.055,2.4)})),n=t[0],o=t[1],r=t[2];return parseFloat((.2126*n+.7152*o+.0722*r).toFixed(3))}WJ((function(A,e){if("transparent"===e)return e;var t=LJ(e);return $J(BQ({},t,{lightness:XJ(0,1,t.lightness-parseFloat(A))}))})),WJ((function(A,e){if("transparent"===e)return e;var t=LJ(e);return $J(BQ({},t,{saturation:XJ(0,1,t.saturation-parseFloat(A))}))}));var ZJ=WJ((function(A,e){if("transparent"===e)return e;var t=LJ(e);return $J(BQ({},t,{lightness:XJ(0,1,t.lightness+parseFloat(A))}))}));var Aj=WJ((function(A,e,t){if("transparent"===e)return t;if("transparent"===t)return e;if(0===A)return t;var n=RJ(e),o=BQ({},n,{alpha:"number"==typeof n.alpha?n.alpha:1}),r=RJ(t),i=BQ({},r,{alpha:"number"==typeof r.alpha?r.alpha:1}),a=o.alpha-i.alpha,s=2*parseFloat(A)-1,l=((s*a==-1?s:s+a)/(1+s*a)+1)/2,g=1-l;return YJ({red:Math.floor(o.red*l+i.red*g),green:Math.floor(o.green*l+i.green*g),blue:Math.floor(o.blue*l+i.blue*g),alpha:o.alpha*parseFloat(A)+i.alpha*(1-parseFloat(A))})}));WJ((function(A,e){if("transparent"===e)return e;var t=RJ(e);return YJ(BQ({},t,{alpha:XJ(0,1,(100*("number"==typeof t.alpha?t.alpha:1)+100*parseFloat(A))/100)}))}));var ej,tj="#000",nj="#fff";function oj(A,e,t,n){void 0===e&&(e=tj),void 0===t&&(t=nj),void 0===n&&(n=!0);var o,r,i,a=VJ(A)>.179,s=a?e:t;return!n||(o=s,r=VJ(A),i=VJ(o),parseFloat((r>i?(r+.05)/(i+.05):(i+.05)/(r+.05)).toFixed(2))>=4.5)?s:a?tj:nj}WJ((function(A,e){if("transparent"===e)return e;var t=LJ(e);return $J(BQ({},t,{saturation:XJ(0,1,t.saturation+parseFloat(A))}))})),WJ((function(A,e){return"transparent"===e?e:$J(BQ({},LJ(e),{hue:parseFloat(A)}))})),WJ((function(A,e){return"transparent"===e?e:$J(BQ({},LJ(e),{lightness:parseFloat(A)}))})),WJ((function(A,e){return"transparent"===e?e:$J(BQ({},LJ(e),{saturation:parseFloat(A)}))})),WJ((function(A,e){return"transparent"===e?e:Aj(parseFloat(A),"rgb(0, 0, 0)",e)})),WJ((function(A,e){return"transparent"===e?e:Aj(parseFloat(A),"rgb(255, 255, 255)",e)})),WJ((function(A,e){if("transparent"===e)return e;var t=RJ(e);return YJ(BQ({},t,{alpha:XJ(0,1,+(100*("number"==typeof t.alpha?t.alpha:1)-100*parseFloat(A)).toFixed(2)/100)}))}));var rj=oY((function(A,e){var t=A.css,n=A.token,o=A.prefixCls,r=e.background,i=e.size,a=e.isEmoji,s=null!=r?r:n.colorBgContainer,l=oj(s);return{avatar:t(ej||(ej=Bu(["\n cursor: pointer;\n\n display: flex;\n align-items: center;\n justify-content: center;\n\n background: ",";\n border: 1px solid ",";\n\n > .","-avatar-string {\n font-size: ","px;\n font-weight: 700;\n line-height: 1 !important;\n color: ",";\n }\n\n > * {\n cursor: pointer;\n }\n "])),s,r?"transparent":n.colorSplit,o,i*(a?.7:.5),l)}})),ij=["className","avatar","title","animation","size","shape","background","style","unoptimized"],aj=J.memo((function(A){var e=A.className,t=A.avatar,n=A.title,o=A.animation,r=A.size,i=void 0===r?40:r,a=A.shape,s=void 0===a?"circle":a,l=A.background,g=void 0===l?"rgba(0,0,0,0)":l,c=A.style,u=A.unoptimized,B=Mc(A,ij),Q="string"==typeof t,E=Boolean(t&&(["/","http","data:"].some((function(A){return Q&&t.startsWith(A)}))||J.isValidElement(t))),C=J.useMemo((function(){return t&&!E&&Q&&IJ(t)}),[t]),d=rj({background:g,isEmoji:Boolean(C),size:i}),I=d.styles,p=d.cx,f=String(E?n:t),h=kc({className:p(I.avatar,e),shape:s,size:i,style:null!=B&&B.onClick?c:kc({cursor:"default"},c)},B);return E?AA.jsx(qF,kc({src:"string"==typeof t?AA.jsx(EJ,{alt:h.alt||n,height:i,loading:"lazy",src:t,width:i}):t},h)):AA.jsx(qF,kc(kc({},h),{},{children:C?AA.jsx(fJ,{emoji:C,size:.8*i,type:o?"anim":"3d",unoptimized:u}):null==f?void 0:f.toUpperCase().slice(0,2)}))}));function sj(A,e){var t="function"==typeof Symbol&&A[Symbol.iterator];if(!t)return A;var n,o,r=t.call(A),i=[];try{for(;(void 0===e||e-- >0)&&!(n=r.next()).done;)i.push(n.value)}catch(a){o={error:a}}finally{try{n&&!n.done&&(t=r.return)&&t.call(r)}finally{if(o)throw o.error}}return i}"function"==typeof SuppressedError&&SuppressedError;var lj=function(A){return"function"==typeof A};function gj(A,e){if(A===e)return!0;for(var t=0;t .","-menu-item-only-child, .","-menu-submenu-title {\n width: 100%;\n margin: 0 !important;\n border-block-start: none;\n border-radius: 0;\n\n &:active {\n color: ",";\n background-color: ",";\n }\n }\n\n .","-menu-item-only-child:first-child {\n border-block-start: none;\n }\n\n .","-menu-submenu-title[aria-expanded='true'] {\n a {\n font-weight: 600;\n color: "," !important;\n }\n }\n\n .","-menu-item-group-title {\n padding-block: 8px;\n\n font-size: 12px;\n font-weight: 500;\n line-height: 1;\n text-overflow: ellipsis;\n text-transform: uppercase;\n white-space: nowrap;\n\n background: ",";\n }\n\n .","-menu-item {\n width: calc(100% - 16px) !important;\n margin: 8px !important;\n border-radius: ","px;\n\n &:hover,\n &:active {\n color: "," !important;\n background: "," !important;\n }\n }\n\n .","-menu-item-active {\n width: calc(100% - 16px) !important;\n margin: 8px !important;\n background: ",";\n border-radius: ","px;\n }\n\n .","-menu-item-selected {\n font-weight: 600;\n color: ",";\n background: ",";\n\n &:hover,\n &:active {\n color: "," !important;\n background: "," !important;\n }\n }\n "])),i?a:0,r,r,t.colorText,t.colorFill,r,r,t.colorText,r,t.colorFillSecondary,r,t.borderRadius,t.colorText,t.colorFillSecondary,r,t.colorFillSecondary,t.borderRadius,r,t.colorBgLayout,t.colorText,t.colorBgLayout,t.colorText)}})),Dq=["items","openKeys","selectedKeys","opened","setOpened","className","headerHeight","onClick","iconProps","rootClassName","fullscreen","drawerProps"],mq=J.memo((function(A){var e=A.items,t=A.openKeys,n=A.selectedKeys,o=A.opened,r=A.setOpened,i=A.className,a=A.headerHeight,s=void 0===a?64:a,l=A.onClick,g=A.iconProps,c=A.rootClassName,u=A.fullscreen,B=A.drawerProps,Q=Mc(A,Dq),E=wq({fullscreen:u,headerHeight:s}),C=E.cx,d=E.styles;return AA.jsxs(_B,kc(kc({className:C(d.container,i),onClick:function(){r(!o)}},Q),{},{children:[AA.jsx(mY,kc({icon:o?gu:Zc,size:"site"},g)),AA.jsxs(qG,kc(kc({closeIcon:void 0,open:o,placement:"left",width:"100vw"},B),{},{className:d.drawer,rootClassName:C(d.drawerRoot,c),styles:{body:{padding:0},header:{display:"none"}},children:[AA.jsx($R,{className:d.menu,items:e,mode:"inline",onClick:l,openKeys:t,selectedKeys:n}),AA.jsx("div",{className:d.fillRect})]}))]}))})),yq=function(){var A=function(e,t){return(A=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(A,e){A.__proto__=e}||function(A,e){for(var t in e)Object.prototype.hasOwnProperty.call(e,t)&&(A[t]=e[t])})(e,t)};return function(e,t){function n(){this.constructor=e}A(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}}(),bq=function(){return bq=Object.assign||function(A){for(var e,t=1,n=arguments.length;t div {\n pointer-events: all;\n cursor: pointer;\n\n position: absolute;\n\n color: ",";\n\n background: ",";\n border-color: ",";\n border-style: solid;\n border-width: 1px;\n border-radius: 4px;\n\n transition: all 0.2s ",";\n\n &:hover {\n color: ",";\n background: ",";\n }\n\n &:active {\n color: ",";\n background: ",";\n }\n }\n "])),o?"all":"none",t.motionEaseOut,t.colorTextTertiary,t.colorFillTertiary,t.colorBorderSecondary,t.motionEaseOut,t.colorTextSecondary,t.colorFillSecondary,t.colorText,t.colorFill),a=iY(oq||(oq=Bu(["\n position: absolute;\n z-index: 200;\n "])));return{bottomFloat:aY(a,iY(rq||(rq=Bu(["\n inset-block-end: 0;\n inset-inline: 0 0;\n width: 100%;\n "])))),bottomHandle:aY("".concat(qq,"-bottom-handle"),iY(iq||(iq=Bu(["\n ",";\n\n &::before {\n inset-block-end: 50%;\n width: 100%;\n height: 2px;\n }\n "])),r)),container:aY(qq,iY(aq||(aq=Bu(["\n flex-shrink: 0;\n border: 0 solid ",";\n\n &:hover {\n .","-toggle {\n opacity: 1;\n }\n }\n "])),t.colorBorderSecondary,qq)),fixed:iY(sq||(sq=Bu(["\n position: relative;\n "]))),fullscreen:iY(lq||(lq=Bu(["\n position: absolute;\n inset-block: ","px 0;\n inset-inline: 0;\n\n width: 100%;\n height: calc(100% - ","px);\n\n background: ",";\n "])),n,n,t.colorBgLayout),handlerIcon:iY(gq||(gq=Bu(["\n display: flex;\n align-items: center;\n justify-content: center;\n transition: all 0.2s ",";\n "])),t.motionEaseOut),leftFloat:aY(a,iY(cq||(cq=Bu(["\n inset-block: ","px 0;\n inset-inline-start: 0;\n height: calc(100% - ","px);\n "])),n,n)),leftHandle:aY(iY(uq||(uq=Bu(["\n ",";\n\n &::before {\n inset-inline-start: 50%;\n width: 2px;\n height: 100%;\n }\n "])),r),"".concat(qq,"-left-handle")),panel:aY("".concat(qq,"-fixed"),iY(Bq||(Bq=Bu(["\n overflow: hidden;\n transition: all 0.2s ",";\n "])),t.motionEaseOut)),rightFloat:aY(a,iY(Qq||(Qq=Bu(["\n inset-block: ","px 0;\n inset-inline-end: 0;\n height: calc(100% - ","px);\n "])),n,n)),rightHandle:aY(iY(Eq||(Eq=Bu(["\n ",";\n &::before {\n inset-inline-end: 50%;\n width: 2px;\n height: 100%;\n }\n "])),r),"".concat(qq,"-right-handle")),toggleBottom:aY("".concat(qq,"-toggle"),"".concat(qq,"-toggle-bottom"),i,iY(Cq||(Cq=Bu(["\n inset-block-end: -","px;\n width: 100%;\n height: ","px;\n\n > div {\n inset-inline-start: 50%;\n\n width: ","px;\n height: 16px;\n margin-inline-start: -20px;\n\n border-radius: 0 0 4px 4px;\n }\n "])),16,jq,40)),toggleLeft:aY("".concat(qq,"-toggle"),"".concat(qq,"-toggle-left"),i,iY(dq||(dq=Bu(["\n inset-inline-start: -","px;\n width: ","px;\n height: 100%;\n\n > div {\n inset-block-start: 50%;\n\n width: ","px;\n height: ","px;\n margin-block-start: -20px;\n\n border-radius: 4px 0 0 4px;\n }\n "])),16,jq,jq,40)),toggleRight:aY("".concat(qq,"-toggle"),"".concat(qq,"-toggle-right"),i,iY(Iq||(Iq=Bu(["\n inset-inline-end: -","px;\n width: ","px;\n height: 100%;\n\n > div {\n inset-block-start: 50%;\n\n width: ","px;\n height: ","px;\n margin-block-start: -20px;\n\n border-radius: 0 4px 4px 0;\n }\n "])),16,jq,jq,40)),toggleTop:aY("".concat(qq,"-toggle"),"".concat(qq,"-toggle-top"),i,iY(pq||(pq=Bu(["\n inset-block-start: -","px;\n width: 100%;\n height: ","px;\n\n > div {\n inset-inline-start: 50%;\n\n width: ","px;\n height: ","px;\n margin-inline-start: -20px;\n\n border-radius: 4px 4px 0 0;\n }\n "])),16,jq,40,jq)),topFloat:aY(a,iY(fq||(fq=Bu(["\n inset-block-start: ","px;\n inset-inline: 0 0;\n width: 100%;\n "])),n)),topHandle:aY("".concat(qq,"-top-handle"),iY(hq||(hq=Bu(["\n ",";\n\n &::before {\n inset-block-start: 50%;\n width: 100%;\n height: 2px;\n }\n "])),r))}})),zq=function(A){switch(A){case"bottom":return"top";case"top":return"bottom";case"right":return"left";case"left":return"right"}},Wq=J.memo((function(A){var e,t,n,o,r,i,a,s,l,g,c=A.headerHeight,u=void 0===c?0:c,B=A.fullscreen,Q=A.maxHeight,E=A.pin,C=void 0===E||E,d=A.mode,I=void 0===d?"fixed":d,p=A.children,f=A.placement,h=void 0===f?"right":f,w=A.resize,D=A.style,m=A.showHandlerWideArea,y=void 0===m||m,b=A.size,v=A.defaultSize,k=A.minWidth,M=A.minHeight,x=A.maxWidth,S=A.onSizeChange,F=A.onSizeDragging,N=A.expandable,R=void 0===N||N,L=A.expand,P=A.defaultExpand,H=void 0===P||P,G=A.onExpandChange,O=A.className,U=A.showHandlerWhenUnexpand,K=A.destroyOnClose,Y=A.hanlderStyle,T=A.classNames,j=void 0===T?{}:T,q=A.dir,$=J.useRef(),z=(e=$,n=(t={}).onEnter,o=t.onLeave,r=t.onChange,i=sj(Lj(!1),2),a=i[0],s=i[1],l=s.setTrue,g=s.setFalse,qj("mouseenter",(function(){null==n||n(),l(),null==r||r(!0)}),{target:e}),qj("mouseleave",(function(){null==o||o(),g(),null==r||r(!1)}),{target:e}),a),W="top"===h||"bottom"===h,_=J.useContext(tw.ConfigContext).direction,X=h;"rtl"===(null!=q?q:_)&&["left","right"].includes(h)&&(X="left"===X?"right":"left");var V=$q({headerHeight:u,showHandlerWideArea:y}),Z=V.styles,eA=V.cx,tA=WQ(KK(H,{onChange:G,value:L}),2),nA=tA[0],oA=tA[1];J.useEffect((function(){C||(z&&!nA?oA(!0):!z&&nA&&oA(!1))}),[C,z,nA]);var rA=WQ(J.useState(!0),2),iA=rA[0],aA=rA[1],sA=WQ(J.useState(!1),2),lA=sA[0],gA=sA[1],cA=!1!==w&&nA,uA=J.useMemo((function(){return cA?bc({},zq(X),Z["".concat(zq(X),"Handle")]):{}}),[cA,X]),BA=kc(bc({bottom:!1,bottomLeft:!1,bottomRight:!1,left:!1,right:!1,top:!1,topLeft:!1,topRight:!1},zq(X),!0),w),QA=J.useMemo((function(){return kc(W?{height:180,width:"100%"}:{height:"100%",width:280},v)}),[W]),EA=nA?{defaultSize:QA,maxHeight:"number"==typeof Q?Math.max(Q,0):Q,maxWidth:"number"==typeof x?Math.max(x,0):x,minHeight:"number"==typeof M?Math.max(M,0):M,minWidth:"number"==typeof k?Math.max(k,0):k,size:b}:W?{minHeight:0,size:{height:0}}:{minWidth:0,size:{width:0}},CA=J.useMemo((function(){switch(X){case"top":return{Arrow:Hc,className:"Bottom"};case"bottom":return{Arrow:Uc,className:"Top"};case"right":return{Arrow:Gc,className:"Left"};case"left":return{Arrow:Oc,className:"Right"}}}),[Z,X]),dA=CA.Arrow,IA=CA.className,pA=AA.jsx(_B,{className:eA(Z["toggle".concat(IA)],j.handle),style:{opacity:nA?C?void 0:0:U?1:0},children:AA.jsx(_B,{onClick:function(){oA(!nA)},style:Y,children:AA.jsx("div",{className:Z.handlerIcon,style:{transform:"rotate(".concat(nA?180:0,"deg)")},children:AA.jsx(dA,{size:16,strokeWidth:1.5})})})}),fA=AA.jsx(Jq,kc(kc({},EA),{},{className:eA(Z.panel,j.content),enable:cA?BA:void 0,handleClasses:uA,onResize:function(A,e,t,n){null==F||F(n,{height:t.style.height,width:t.style.width})},onResizeStart:function(){gA(!0),aA(!1)},onResizeStop:function(A,e,t,n){gA(!1),aA(!0),null==S||S(n,{height:t.style.height,width:t.style.width})},style:kc({transition:lA?"unset":void 0},D),children:p}));return B?AA.jsx("div",{className:eA(Z.fullscreen,O),children:p}):AA.jsxs("aside",{className:eA(Z.container,Z["fixed"===I?"fixed":"".concat(X,"Float")],O),dir:q,ref:$,style:nA?bc({},"border".concat(IA,"Width"),1):{},children:[R&&iA&&pA,K?nA&&fA:fA]})})),_q={exports:{}};function Xq(){}function Vq(){}Vq.resetWarningCache=Xq;_q.exports=function(){function A(A,e,t,n,o,r){if("SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"!==r){var i=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw i.name="Invariant Violation",i}}function e(){return A}A.isRequired=A;var t={array:A,bigint:A,bool:A,func:A,number:A,object:A,string:A,symbol:A,any:A,arrayOf:e,element:A,elementType:A,instanceOf:e,node:A,objectOf:e,oneOf:e,oneOfType:e,shape:e,exact:e,checkPropTypes:Vq,resetWarningCache:Xq};return t.PropTypes=t,t}();var Zq=_q.exports;const A$=o(Zq),e$={};var t$,n$,o$,r$;function i$(A,e){const t=[],n=function(A){let e=/([LR]:|[\w\.:][\w\.:\-]*|[\,\|\-\(\)])/g,t=e.exec(A);return{next:()=>{if(!t)return null;const n=t[0];return t=e.exec(A),n}}}(A);let o=n.next();for(;null!==o;){let A=0;if(2===o.length&&":"===o.charAt(1)){switch(o.charAt(0)){case"R":A=1;break;case"L":A=-1;break;default:console.log(`Unknown priority ${o} in scope selector`)}o=n.next()}let e=i();if(t.push({matcher:e,priority:A}),","!==o)break;o=n.next()}return t;function r(){if("-"===o){o=n.next();const A=r();return e=>!!A&&!A(e)}if("("===o){o=n.next();const A=function(){const A=[];let e=i();for(;e&&(A.push(e),"|"===o||","===o);){do{o=n.next()}while("|"===o||","===o);e=i()}return e=>A.some((A=>A(e)))}();return")"===o&&(o=n.next()),A}if(a$(o)){const A=[];do{A.push(o),o=n.next()}while(a$(o));return t=>e(A,t)}return null}function i(){const A=[];let e=r();for(;e;)A.push(e),e=r();return e=>A.every((A=>A(e)))}}function a$(A){return!!A&&!!A.match(/[\w\.:]+/)}function s$(A){"function"==typeof A.dispose&&A.dispose()}function l$(A){return Array.isArray(A)?function(A){let e=[];for(let t=0,n=A.length;t{for(let t in e)A[t]=e[t]})),A}function c$(A){const e=~A.lastIndexOf("/")||~A.lastIndexOf("\\");return 0===e?A:~e==A.length-1?c$(A.substring(0,A.length-1)):A.substr(1+~e)}(n$=t$||(t$={}))[n$.NotSet=-1]="NotSet",n$[n$.None=0]="None",n$[n$.Italic=1]="Italic",n$[n$.Bold=2]="Bold",n$[n$.Underline=4]="Underline",(r$=o$||(o$={})).toBinaryStr=function(A){return A.toString(2).padStart(32,"0")},r$.print=function(A){const e=r$.getLanguageId(A),t=r$.getTokenType(A),n=r$.getFontStyle(A),o=r$.getForeground(A),r=r$.getBackground(A);console.log({languageId:e,tokenType:t,fontStyle:n,foreground:o,background:r})},r$.getLanguageId=function(A){return(255&A)>>>0},r$.getTokenType=function(A){return(768&A)>>>8},r$.containsBalancedBrackets=function(A){return!!(1024&A)},r$.getFontStyle=function(A){return(30720&A)>>>11},r$.getForeground=function(A){return(16744448&A)>>>15},r$.getBackground=function(A){return(4278190080&A)>>>24},r$.set=function(A,e,t,n,o,r,i){let a=r$.getLanguageId(A),s=r$.getTokenType(A),l=r$.containsBalancedBrackets(A)?1:0,g=r$.getFontStyle(A),c=r$.getForeground(A),u=r$.getBackground(A);return 0!==e&&(a=e),8!==t&&(s=t),null!==n&&(l=n?1:0),-1!==o&&(g=o),0!==r&&(c=r),0!==i&&(u=i),(a|s<<8|l<<10|g<<11|c<<15|u<<24)>>>0};let u$=/\$(\d+)|\${(\d+):\/(downcase|upcase)}/g;class B${static hasCaptures(A){return null!==A&&(u$.lastIndex=0,u$.test(A))}static replaceCaptures(A,e,t){return A.replace(u$,((A,n,o,r)=>{let i=t[parseInt(n||o,10)];if(!i)return A;{let A=e.substring(i.start,i.end);for(;"."===A[0];)A=A.substring(1);switch(r){case"downcase":return A.toLowerCase();case"upcase":return A.toUpperCase();default:return A}}}))}}function Q$(A,e){return Ae?1:0}function E$(A,e){if(null===A&&null===e)return 0;if(!A)return-1;if(!e)return 1;let t=A.length,n=e.length;if(t===n){for(let n=0;n`);return}const r=t.lookup(e);A instanceof p$?y$({baseGrammar:r,selfGrammar:o},n):m$(A.ruleName,{baseGrammar:r,selfGrammar:o,repository:o.repository},n);const i=t.injections(A.scopeName);if(i)for(const a of i)n.add(new p$(a))}function m$(A,e,t){if(e.repository&&e.repository[A]){b$([e.repository[A]],e,t)}}function y$(A,e){A.selfGrammar.patterns&&Array.isArray(A.selfGrammar.patterns)&&b$(A.selfGrammar.patterns,{...A,repository:A.selfGrammar.repository},e),A.selfGrammar.injections&&b$(Object.values(A.selfGrammar.injections),{...A,repository:A.selfGrammar.repository},e)}function b$(A,e,t){for(const n of A){if(t.visitedRule.has(n))continue;t.visitedRule.add(n);const A=n.repository?g$({},e.repository,n.repository):e.repository;Array.isArray(n.patterns)&&b$(n.patterns,{...e,repository:A},t);const o=n.include;if(!o)continue;const r=F$(o);switch(r.kind){case 0:y$({...e,selfGrammar:e.baseGrammar},t);break;case 1:y$(e,t);break;case 2:m$(r.ruleName,{...e,repository:A},t);break;case 3:case 4:const n=r.scopeName===e.selfGrammar.scopeName?e.selfGrammar:r.scopeName===e.baseGrammar.scopeName?e.baseGrammar:void 0;if(n){const o={baseGrammar:e.baseGrammar,selfGrammar:n,repository:A};4===r.kind?m$(r.ruleName,o,t):y$(o,t)}else 4===r.kind?t.add(new f$(r.scopeName,r.ruleName)):t.add(new p$(r.scopeName))}}}class v${constructor(){e(this,"kind",0)}}class k${constructor(){e(this,"kind",1)}}class M${constructor(A){e(this,"ruleName"),e(this,"kind",2),this.ruleName=A}}class x${constructor(A){e(this,"scopeName"),e(this,"kind",3),this.scopeName=A}}class S${constructor(A,t){e(this,"scopeName"),e(this,"ruleName"),e(this,"kind",4),this.scopeName=A,this.ruleName=t}}function F$(A){if("$base"===A)return new v$;if("$self"===A)return new k$;const e=A.indexOf("#");if(-1===e)return new x$(A);if(0===e)return new M$(A.substring(1));{const t=A.substring(0,e),n=A.substring(e+1);return new S$(t,n)}}const N$=/\\(\d+)/,R$=/\\(\d+)/g,L$=-1,P$=-2;class H${constructor(A,t,n,o){e(this,"$location"),e(this,"id"),e(this,"_nameIsCapturing"),e(this,"_name"),e(this,"_contentNameIsCapturing"),e(this,"_contentName"),this.$location=A,this.id=t,this._name=n||null,this._nameIsCapturing=B$.hasCaptures(this._name),this._contentName=o||null,this._contentNameIsCapturing=B$.hasCaptures(this._contentName)}get debugName(){const A=this.$location?`${c$(this.$location.filename)}:${this.$location.line}`:"unknown";return`${this.constructor.name}#${this.id} @ ${A}`}getName(A,e){return this._nameIsCapturing&&null!==this._name&&null!==A&&null!==e?B$.replaceCaptures(this._name,A,e):this._name}getContentName(A,e){return this._contentNameIsCapturing&&null!==this._contentName?B$.replaceCaptures(this._contentName,A,e):this._contentName}}class G$ extends H${constructor(A,t,n,o,r){super(A,t,n,o),e(this,"retokenizeCapturedWithRuleId"),this.retokenizeCapturedWithRuleId=r}dispose(){}collectPatterns(A,e){throw new Error("Not supported!")}compile(A,e){throw new Error("Not supported!")}compileAG(A,e,t,n){throw new Error("Not supported!")}}class O$ extends H${constructor(A,t,n,o,r){super(A,t,n,null),e(this,"_match"),e(this,"captures"),e(this,"_cachedCompiledPatterns"),this._match=new J$(o,this.id),this.captures=r,this._cachedCompiledPatterns=null}dispose(){this._cachedCompiledPatterns&&(this._cachedCompiledPatterns.dispose(),this._cachedCompiledPatterns=null)}get debugMatchRegExp(){return`${this._match.source}`}collectPatterns(A,e){e.push(this._match)}compile(A,e){return this._getCachedCompiledPatterns(A).compile(A)}compileAG(A,e,t,n){return this._getCachedCompiledPatterns(A).compileAG(A,t,n)}_getCachedCompiledPatterns(A){return this._cachedCompiledPatterns||(this._cachedCompiledPatterns=new j$,this.collectPatterns(A,this._cachedCompiledPatterns)),this._cachedCompiledPatterns}}class U$ extends H${constructor(A,t,n,o,r){super(A,t,n,o),e(this,"hasMissingPatterns"),e(this,"patterns"),e(this,"_cachedCompiledPatterns"),this.patterns=r.patterns,this.hasMissingPatterns=r.hasMissingPatterns,this._cachedCompiledPatterns=null}dispose(){this._cachedCompiledPatterns&&(this._cachedCompiledPatterns.dispose(),this._cachedCompiledPatterns=null)}collectPatterns(A,e){for(const t of this.patterns){A.getRule(t).collectPatterns(A,e)}}compile(A,e){return this._getCachedCompiledPatterns(A).compile(A)}compileAG(A,e,t,n){return this._getCachedCompiledPatterns(A).compileAG(A,t,n)}_getCachedCompiledPatterns(A){return this._cachedCompiledPatterns||(this._cachedCompiledPatterns=new j$,this.collectPatterns(A,this._cachedCompiledPatterns)),this._cachedCompiledPatterns}}class K$ extends H${constructor(A,t,n,o,r,i,a,s,l,g){super(A,t,n,o),e(this,"_begin"),e(this,"beginCaptures"),e(this,"_end"),e(this,"endHasBackReferences"),e(this,"endCaptures"),e(this,"applyEndPatternLast"),e(this,"hasMissingPatterns"),e(this,"patterns"),e(this,"_cachedCompiledPatterns"),this._begin=new J$(r,this.id),this.beginCaptures=i,this._end=new J$(a||"๏ฟฟ",-1),this.endHasBackReferences=this._end.hasBackReferences,this.endCaptures=s,this.applyEndPatternLast=l||!1,this.patterns=g.patterns,this.hasMissingPatterns=g.hasMissingPatterns,this._cachedCompiledPatterns=null}dispose(){this._cachedCompiledPatterns&&(this._cachedCompiledPatterns.dispose(),this._cachedCompiledPatterns=null)}get debugBeginRegExp(){return`${this._begin.source}`}get debugEndRegExp(){return`${this._end.source}`}getEndWithResolvedBackReferences(A,e){return this._end.resolveBackReferences(A,e)}collectPatterns(A,e){e.push(this._begin)}compile(A,e){return this._getCachedCompiledPatterns(A,e).compile(A)}compileAG(A,e,t,n){return this._getCachedCompiledPatterns(A,e).compileAG(A,t,n)}_getCachedCompiledPatterns(A,e){if(!this._cachedCompiledPatterns){this._cachedCompiledPatterns=new j$;for(const e of this.patterns){A.getRule(e).collectPatterns(A,this._cachedCompiledPatterns)}this.applyEndPatternLast?this._cachedCompiledPatterns.push(this._end.hasBackReferences?this._end.clone():this._end):this._cachedCompiledPatterns.unshift(this._end.hasBackReferences?this._end.clone():this._end)}return this._end.hasBackReferences&&(this.applyEndPatternLast?this._cachedCompiledPatterns.setSource(this._cachedCompiledPatterns.length()-1,e):this._cachedCompiledPatterns.setSource(0,e)),this._cachedCompiledPatterns}}class Y$ extends H${constructor(A,t,n,o,r,i,a,s,l){super(A,t,n,o),e(this,"_begin"),e(this,"beginCaptures"),e(this,"whileCaptures"),e(this,"_while"),e(this,"whileHasBackReferences"),e(this,"hasMissingPatterns"),e(this,"patterns"),e(this,"_cachedCompiledPatterns"),e(this,"_cachedCompiledWhilePatterns"),this._begin=new J$(r,this.id),this.beginCaptures=i,this.whileCaptures=s,this._while=new J$(a,P$),this.whileHasBackReferences=this._while.hasBackReferences,this.patterns=l.patterns,this.hasMissingPatterns=l.hasMissingPatterns,this._cachedCompiledPatterns=null,this._cachedCompiledWhilePatterns=null}dispose(){this._cachedCompiledPatterns&&(this._cachedCompiledPatterns.dispose(),this._cachedCompiledPatterns=null),this._cachedCompiledWhilePatterns&&(this._cachedCompiledWhilePatterns.dispose(),this._cachedCompiledWhilePatterns=null)}get debugBeginRegExp(){return`${this._begin.source}`}get debugWhileRegExp(){return`${this._while.source}`}getWhileWithResolvedBackReferences(A,e){return this._while.resolveBackReferences(A,e)}collectPatterns(A,e){e.push(this._begin)}compile(A,e){return this._getCachedCompiledPatterns(A).compile(A)}compileAG(A,e,t,n){return this._getCachedCompiledPatterns(A).compileAG(A,t,n)}_getCachedCompiledPatterns(A){if(!this._cachedCompiledPatterns){this._cachedCompiledPatterns=new j$;for(const e of this.patterns){A.getRule(e).collectPatterns(A,this._cachedCompiledPatterns)}}return this._cachedCompiledPatterns}compileWhile(A,e){return this._getCachedCompiledWhilePatterns(A,e).compile(A)}compileWhileAG(A,e,t,n){return this._getCachedCompiledWhilePatterns(A,e).compileAG(A,t,n)}_getCachedCompiledWhilePatterns(A,e){return this._cachedCompiledWhilePatterns||(this._cachedCompiledWhilePatterns=new j$,this._cachedCompiledWhilePatterns.push(this._while.hasBackReferences?this._while.clone():this._while)),this._while.hasBackReferences&&this._cachedCompiledWhilePatterns.setSource(0,e||"๏ฟฟ"),this._cachedCompiledWhilePatterns}}class T${static createCaptureRule(A,e,t,n,o){return A.registerRule((A=>new G$(e,A,t,n,o)))}static getCompiledRuleId(A,e,t){return A.id||e.registerRule((n=>{if(A.id=n,A.match)return new O$(A.$vscodeTextmateLocation,A.id,A.name,A.match,T$._compileCaptures(A.captures,e,t));if(void 0===A.begin){A.repository&&(t=g$({},t,A.repository));let n=A.patterns;return void 0===n&&A.include&&(n=[{include:A.include}]),new U$(A.$vscodeTextmateLocation,A.id,A.name,A.contentName,T$._compilePatterns(n,e,t))}return A.while?new Y$(A.$vscodeTextmateLocation,A.id,A.name,A.contentName,A.begin,T$._compileCaptures(A.beginCaptures||A.captures,e,t),A.while,T$._compileCaptures(A.whileCaptures||A.captures,e,t),T$._compilePatterns(A.patterns,e,t)):new K$(A.$vscodeTextmateLocation,A.id,A.name,A.contentName,A.begin,T$._compileCaptures(A.beginCaptures||A.captures,e,t),A.end,T$._compileCaptures(A.endCaptures||A.captures,e,t),A.applyEndPatternLast,T$._compilePatterns(A.patterns,e,t))})),A.id}static _compileCaptures(A,e,t){let n=[];if(A){let o=0;for(const e in A){if("$vscodeTextmateLocation"===e)continue;const A=parseInt(e,10);A>o&&(o=A)}for(let A=0;A<=o;A++)n[A]=null;for(const r in A){if("$vscodeTextmateLocation"===r)continue;const o=parseInt(r,10);let i=0;A[r].patterns&&(i=T$.getCompiledRuleId(A[r],e,t)),n[o]=T$.createCaptureRule(e,A[r].$vscodeTextmateLocation,A[r].name,A[r].contentName,i)}}return n}static _compilePatterns(A,e,t){let n=[];if(A)for(let o=0,r=A.length;oA.substring(e.start,e.end)));return R$.lastIndex=0,this.source.replace(R$,((A,e)=>d$(t[parseInt(e,10)]||"")))}_buildAnchorCache(){let A,e,t,n,o=[],r=[],i=[],a=[];for(A=0,e=this.source.length;AA.source));this._cached=new q$(A,e,this._items.map((A=>A.ruleId)))}return this._cached}compileAG(A,e,t){return this._hasAnchors?e?t?(this._anchorCache.A1_G1||(this._anchorCache.A1_G1=this._resolveAnchors(A,e,t)),this._anchorCache.A1_G1):(this._anchorCache.A1_G0||(this._anchorCache.A1_G0=this._resolveAnchors(A,e,t)),this._anchorCache.A1_G0):t?(this._anchorCache.A0_G1||(this._anchorCache.A0_G1=this._resolveAnchors(A,e,t)),this._anchorCache.A0_G1):(this._anchorCache.A0_G0||(this._anchorCache.A0_G0=this._resolveAnchors(A,e,t)),this._anchorCache.A0_G0):this.compile(A)}_resolveAnchors(A,e,t){let n=this._items.map((A=>A.resolveAnchors(e,t)));return new q$(A,n,this._items.map((A=>A.ruleId)))}}class q${constructor(A,t,n){e(this,"regExps"),e(this,"rules"),e(this,"scanner"),this.regExps=t,this.rules=n,this.scanner=A.createOnigScanner(t)}dispose(){"function"==typeof this.scanner.dispose&&this.scanner.dispose()}toString(){const A=[];for(let e=0,t=this.rules.length;ethis._root.match(A)))),this._colorMap=A,this._defaults=t,this._root=n}static createFromRawTheme(A,e){return this.createFromParsedTheme(function(A){if(!A)return[];if(!A.settings||!Array.isArray(A.settings))return[];let e=A.settings,t=[],n=0;for(let o=0,r=e.length;o1&&(g=r.slice(0,r.length-1),g.reverse()),t[n++]=new X$(l,g,o,i,a,s)}}return t}(A),e)}static createFromParsedTheme(A,e){return function(A,e){A.sort(((A,e)=>{let t=Q$(A.scope,e.scope);return 0!==t?t:(t=E$(A.parentScopes,e.parentScopes),0!==t?t:A.index-e.index)}));let t=0,n="#000000",o="#ffffff";for(;A.length>=1&&""===A[0].scope;){let e=A.shift();-1!==e.fontStyle&&(t=e.fontStyle),null!==e.foreground&&(n=e.foreground),null!==e.background&&(o=e.background)}let r=new V$(e),i=new _$(t,r.getId(n),r.getId(o)),a=new Az(new Z$(0,null,-1,0,0),[]);for(let s=0,l=A.length;sfunction(A,e){if(null===e)return!0;let t=0,n=e[t];for(;A;){if(W$(A.scopeName,n)){if(t++,t===e.length)return!0;n=e[t]}A=A.parent}return!1}(A.parent,e.parentScopes)));return t?new _$(t.fontStyle,t.foreground,t.background):null}}class z${constructor(A,t){e(this,"parent"),e(this,"scopeName"),this.parent=A,this.scopeName=t}static push(A,e){for(const t of e)A=new z$(A,t);return A}static from(...A){let e=null;for(let t=0;tA?console.log("how did this happen?"):this.scopeDepth=A,-1!==e&&(this.fontStyle=e),0!==t&&(this.foreground=t),0!==n&&(this.background=n)}}class Az{constructor(A,t=[],n={}){e(this,"_mainRule"),e(this,"_children"),e(this,"_rulesWithParentScopes"),this._mainRule=A,this._children=n,this._rulesWithParentScopes=t}static _sortBySpecificity(A){return 1===A.length||A.sort(this._cmpBySpecificity),A}static _cmpBySpecificity(A,e){if(A.scopeDepth===e.scopeDepth){const t=A.parentScopes,n=e.parentScopes;let o=null===t?0:t.length,r=null===n?0:n.length;if(o===r)for(let A=0;A{const e=this._scopeToLanguage(A),t=this._toStandardTokenType(A);return new ez(e,t)}))),this._defaultAttributes=new ez(A,8),this._embeddedLanguagesMatcher=new oz(Object.entries(t||{}))}getDefaultAttributes(){return this._defaultAttributes}getBasicScopeAttributes(e){return null===e?A._NULL_SCOPE_METADATA:this._getBasicScopeAttributes.get(e)}_scopeToLanguage(A){return this._embeddedLanguagesMatcher.match(A)||0}_toStandardTokenType(e){const t=e.match(A.STANDARD_TOKEN_TYPE_REGEXP);if(!t)return 8;switch(t[1]){case"comment":return 1;case"string":return 2;case"regex":return 3;case"meta.embedded":return 0}throw new Error("Unexpected match for standard token type!")}};e(tz,"_NULL_SCOPE_METADATA",new ez(0,0)),e(tz,"STANDARD_TOKEN_TYPE_REGEXP",/\b(comment|string|regex|meta\.embedded)\b/);let nz=tz;class oz{constructor(A){if(e(this,"values"),e(this,"scopesRegExp"),0===A.length)this.values=null,this.scopesRegExp=null;else{this.values=new Map(A);const e=A.map((([A,e])=>d$(A)));e.sort(),e.reverse(),this.scopesRegExp=new RegExp(`^((${e.join(")|(")}))($|\\.)`,"")}}match(A){if(!this.scopesRegExp)return;const e=A.match(this.scopesRegExp);return e?this.values.get(e[1]):void 0}}class rz{constructor(A,t){e(this,"stack"),e(this,"stoppedEarly"),this.stack=A,this.stoppedEarly=t}}function iz(A,e,t,n,o,r,i,a){const s=e.content.length;let l=!1,g=-1;if(i){const i=function(A,e,t,n,o,r){let i=o.beginRuleCapturedEOL?0:-1;const a=[];for(let s=o;s;s=s.pop()){const e=s.getRule(A);e instanceof Y$&&a.push({rule:e,stack:s})}for(let s=a.pop();s;s=a.pop()){const{ruleScanner:a,findOptions:l}=sz(s.rule,A,s.stack.endRule,t,n===i),g=a.findNextMatchSync(e,n,l);if(!g){o=s.stack.pop();break}if(g.ruleId!==P$){o=s.stack.pop();break}g.captureIndices&&g.captureIndices.length&&(r.produce(s.stack,g.captureIndices[0].start),lz(A,e,t,s.stack,r,s.rule.whileCaptures,g.captureIndices),r.produce(s.stack,g.captureIndices[0].end),i=g.captureIndices[0].end,g.captureIndices[0].end>n&&(n=g.captureIndices[0].end,t=!1))}return{stack:o,linePos:n,anchorPosition:i,isFirstLine:t}}(A,e,t,n,o,r);o=i.stack,n=i.linePos,t=i.isFirstLine,g=i.anchorPosition}const c=Date.now();for(;!l;){if(0!==a){if(Date.now()-c>a)return new rz(o,!0)}u()}return new rz(o,!1);function u(){const i=function(A,e,t,n,o,r){const i=function(A,e,t,n,o,r){const i=o.getRule(A),{ruleScanner:a,findOptions:s}=az(i,A,o.endRule,t,n===r),l=a.findNextMatchSync(e,n,s);if(l)return{captureIndices:l.captureIndices,matchedRuleId:l.ruleId};return null}(A,e,t,n,o,r),a=A.getInjections();if(0===a.length)return i;const s=function(A,e,t,n,o,r,i){let a,s=Number.MAX_VALUE,l=null,g=0;const c=r.contentNameScopesList.getScopeNames();for(let u=0,B=A.length;u=s)&&(s=d,l=C.captureIndices,a=C.ruleId,g=r.priority,s===o))break}if(l)return{priorityMatch:-1===g,captureIndices:l,matchedRuleId:a};return null}(a,A,e,t,n,o,r);if(!s)return i;if(!i)return s;const l=i.captureIndices[0].start,g=s.captureIndices[0].start;if(g0)&&a[0].end>n;if(c===L$){const i=o.getRule(A);r.produce(o,a[0].start),o=o.withContentNameScopesList(o.nameScopesList),lz(A,e,t,o,r,i.endCaptures,a),r.produce(o,a[0].end);const c=o;if(o=o.parent,g=c.getAnchorPos(),!u&&c.getEnterPos()===n)return o=c,r.produce(o,s),void(l=!0)}else{const i=A.getRule(c);r.produce(o,a[0].start);const B=o,Q=i.getName(e.content,a),E=o.contentNameScopesList.pushAttributed(Q,A);if(o=o.push(c,n,g,a[0].end===s,null,E,E),i instanceof K$){const n=i;lz(A,e,t,o,r,n.beginCaptures,a),r.produce(o,a[0].end),g=a[0].end;const c=n.getContentName(e.content,a),Q=E.pushAttributed(c,A);if(o=o.withContentNameScopesList(Q),n.endHasBackReferences&&(o=o.withEndRule(n.getEndWithResolvedBackReferences(e.content,a))),!u&&B.hasSameRuleAs(o))return o=o.pop(),r.produce(o,s),void(l=!0)}else if(i instanceof Y$){const n=i;lz(A,e,t,o,r,n.beginCaptures,a),r.produce(o,a[0].end),g=a[0].end;const c=n.getContentName(e.content,a),Q=E.pushAttributed(c,A);if(o=o.withContentNameScopesList(Q),n.whileHasBackReferences&&(o=o.withEndRule(n.getWhileWithResolvedBackReferences(e.content,a))),!u&&B.hasSameRuleAs(o))return o=o.pop(),r.produce(o,s),void(l=!0)}else{if(lz(A,e,t,o,r,i.captures,a),r.produce(o,a[0].end),o=o.pop(),!u)return o=o.safePop(),r.produce(o,s),void(l=!0)}}a[0].end>n&&(n=a[0].end,t=!1)}}function az(A,e,t,n,o){return{ruleScanner:A.compileAG(e,t,n,o),findOptions:0}}function sz(A,e,t,n,o){return{ruleScanner:A.compileWhileAG(e,t,n,o),findOptions:0}}function lz(A,e,t,n,o,r,i){if(0===r.length)return;const a=e.content,s=Math.min(r.length,i.length),l=[],g=i[0].end;for(let c=0;cg)break;for(;l.length>0&&l[l.length-1].endPos<=s.start;)o.produceFromScopes(l[l.length-1].scopes,l[l.length-1].endPos),l.pop();if(l.length>0?o.produceFromScopes(l[l.length-1].scopes,s.start):o.produce(n,s.start),e.retokenizeCapturedWithRuleId){const r=e.getName(a,i),l=n.contentNameScopesList.pushAttributed(r,A),g=e.getContentName(a,i),c=l.pushAttributed(g,A),u=n.push(e.retokenizeCapturedWithRuleId,s.start,-1,!1,null,l,c),B=A.createOnigString(a.substring(0,s.end));iz(A,B,t&&0===s.start,s.start,u,o,!1,0),s$(B);continue}const u=e.getName(a,i);if(null!==u){const e=(l.length>0?l[l.length-1].scopes:n.contentNameScopesList).pushAttributed(u,A);l.push(new gz(e,s.end))}}for(;l.length>0;)o.produceFromScopes(l[l.length-1].scopes,l[l.length-1].endPos),l.pop()}class gz{constructor(A,t){e(this,"scopes"),e(this,"endPos"),this.scopes=A,this.endPos=t}}function cz(A,e,t,n,o){const r=i$(e,uz),i=T$.getCompiledRuleId(t,n,o.repository);for(const a of r)A.push({debugSelector:e,matcher:a.matcher,ruleId:i,grammar:o,priority:a.priority})}function uz(A,e){if(e.length{for(let n=t;nt&&A.substr(0,t)===e&&"."===A[t]}class Qz{constructor(A,t,n,o,r,i,a,s){if(e(this,"_rootScopeName"),e(this,"balancedBracketSelectors"),e(this,"_onigLib"),e(this,"_rootId"),e(this,"_lastRuleId"),e(this,"_ruleId2desc"),e(this,"_includedGrammars"),e(this,"_grammarRepository"),e(this,"_grammar"),e(this,"_injections"),e(this,"_basicScopeAttributesProvider"),e(this,"_tokenTypeMatchers"),this._rootScopeName=A,this.balancedBracketSelectors=i,this._onigLib=s,this._basicScopeAttributesProvider=new nz(n,o),this._rootId=-1,this._lastRuleId=0,this._ruleId2desc=[null],this._includedGrammars={},this._grammarRepository=a,this._grammar=Ez(t,null),this._injections=null,this._tokenTypeMatchers=[],r)for(const e of Object.keys(r)){const A=i$(e,uz);for(const t of A)this._tokenTypeMatchers.push({matcher:t.matcher,type:r[e]})}}get themeProvider(){return this._grammarRepository}dispose(){for(const A of this._ruleId2desc)A&&A.dispose()}createOnigScanner(A){return this._onigLib.createOnigScanner(A)}createOnigString(A){return this._onigLib.createOnigString(A)}getMetadataForScope(A){return this._basicScopeAttributesProvider.getBasicScopeAttributes(A)}_collectInjections(){const A=A=>A===this._rootScopeName?this._grammar:this.getExternalGrammar(A),e=[],t=this._rootScopeName,n=A(t);if(n){const A=n.injections;if(A)for(let t in A)cz(e,t,A[t],this,n);const o=this._grammarRepository.injections(t);o&&o.forEach((A=>{const t=this.getExternalGrammar(A);if(t){const A=t.injectionSelector;A&&cz(e,A,t,this,t)}}))}return e.sort(((A,e)=>A.priority-e.priority)),e}getInjections(){return null===this._injections&&(this._injections=this._collectInjections()),this._injections}registerRule(A){const e=++this._lastRuleId,t=A(e);return this._ruleId2desc[e]=t,t}getRule(A){return this._ruleId2desc[A]}getExternalGrammar(A,e){if(this._includedGrammars[A])return this._includedGrammars[A];if(this._grammarRepository){const t=this._grammarRepository.lookup(A);if(t)return this._includedGrammars[A]=Ez(t,e&&e.$base),this._includedGrammars[A]}}tokenizeLine(A,e,t=0){const n=this._tokenize(A,e,!1,t);return{tokens:n.lineTokens.getResult(n.ruleStack,n.lineLength),ruleStack:n.ruleStack,stoppedEarly:n.stoppedEarly}}tokenizeLine2(A,e,t=0){const n=this._tokenize(A,e,!0,t);return{tokens:n.lineTokens.getBinaryResult(n.ruleStack,n.lineLength),ruleStack:n.ruleStack,stoppedEarly:n.stoppedEarly}}_tokenize(A,e,t,n){let o;if(-1===this._rootId&&(this._rootId=T$.getCompiledRuleId(this._grammar.repository.$self,this,this._grammar.repository),this.getInjections()),e&&e!==Iz.NULL)o=!1,e.reset();else{o=!0;const A=this._basicScopeAttributesProvider.getDefaultAttributes(),t=this.themeProvider.getDefaults(),n=o$.set(0,A.languageId,A.tokenType,null,t.fontStyle,t.foregroundId,t.backgroundId),r=this.getRule(this._rootId).getName(null,null);let i;i=r?Cz.createRootAndLookUpScopeName(r,n,this):Cz.createRoot("unknown",n),e=new Iz(null,this._rootId,-1,-1,!1,null,i,i)}A+="\n";const r=this.createOnigString(A),i=r.content.length,a=new fz(t,A,this._tokenTypeMatchers,this.balancedBracketSelectors),s=iz(this,r,o,0,e,a,!0,n);return s$(r),{lineLength:i,lineTokens:a,ruleStack:s.stack,stoppedEarly:s.stoppedEarly}}}function Ez(A,e){return(A=l$(A)).repository=A.repository||{},A.repository.$self={$vscodeTextmateLocation:A.$vscodeTextmateLocation,patterns:A.patterns,name:A.scopeName},A.repository.$base=e||A.repository.$self,A}class Cz{constructor(A,t,n){e(this,"parent"),e(this,"scopePath"),e(this,"tokenAttributes"),this.parent=A,this.scopePath=t,this.tokenAttributes=n}static fromExtension(A,e){let t=A,n=(null==A?void 0:A.scopePath)??null;for(const o of e)n=z$.push(n,o.scopeNames),t=new Cz(t,n,o.encodedTokenAttributes);return t}static createRoot(A,e){return new Cz(null,new z$(null,A),e)}static createRootAndLookUpScopeName(A,e,t){const n=t.getMetadataForScope(A),o=new z$(null,A),r=t.themeProvider.themeMatch(o),i=Cz.mergeAttributes(e,n,r);return new Cz(null,o,i)}get scopeName(){return this.scopePath.scopeName}toString(){return this.getScopeNames().join(" ")}equals(A){return Cz.equals(this,A)}static equals(A,e){for(;;){if(A===e)return!0;if(!A&&!e)return!0;if(!A||!e)return!1;if(A.scopeName!==e.scopeName||A.tokenAttributes!==e.tokenAttributes)return!1;A=A.parent,e=e.parent}}static mergeAttributes(A,e,t){let n=-1,o=0,r=0;return null!==t&&(n=t.fontStyle,o=t.foregroundId,r=t.backgroundId),o$.set(A,e.languageId,e.tokenType,null,n,o,r)}pushAttributed(A,e){if(null===A)return this;if(-1===A.indexOf(" "))return Cz._pushAttributed(this,A,e);const t=A.split(/ /g);let n=this;for(const o of t)n=Cz._pushAttributed(n,o,e);return n}static _pushAttributed(A,e,t){const n=t.getMetadataForScope(e),o=A.scopePath.push(e),r=t.themeProvider.themeMatch(o),i=Cz.mergeAttributes(A.tokenAttributes,n,r);return new Cz(A,o,i)}getScopeNames(){return this.scopePath.getSegments()}getExtensionIfDefined(A){var e;const t=[];let n=this;for(;n&&n!==A;)t.push({encodedTokenAttributes:n.tokenAttributes,scopeNames:n.scopePath.getExtensionIfDefined((null==(e=n.parent)?void 0:e.scopePath)??null)}),n=n.parent;return n===A?t.reverse():void 0}}const dz=class A{constructor(A,t,n,o,r,i,a,s){e(this,"parent"),e(this,"ruleId"),e(this,"beginRuleCapturedEOL"),e(this,"endRule"),e(this,"nameScopesList"),e(this,"contentNameScopesList"),e(this,"_stackElementBrand"),e(this,"_enterPos"),e(this,"_anchorPos"),e(this,"depth"),this.parent=A,this.ruleId=t,this.beginRuleCapturedEOL=r,this.endRule=i,this.nameScopesList=a,this.contentNameScopesList=s,this.depth=this.parent?this.parent.depth+1:1,this._enterPos=n,this._anchorPos=o}equals(e){return null!==e&&A._equals(this,e)}static _equals(A,e){return A===e||!!this._structuralEquals(A,e)&&Cz.equals(A.contentNameScopesList,e.contentNameScopesList)}static _structuralEquals(A,e){for(;;){if(A===e)return!0;if(!A&&!e)return!0;if(!A||!e)return!1;if(A.depth!==e.depth||A.ruleId!==e.ruleId||A.endRule!==e.endRule)return!1;A=A.parent,e=e.parent}}clone(){return this}static _reset(A){for(;A;)A._enterPos=-1,A._anchorPos=-1,A=A.parent}reset(){A._reset(this)}pop(){return this.parent}safePop(){return this.parent?this.parent:this}push(e,t,n,o,r,i,a){return new A(this,e,t,n,o,r,i,a)}getEnterPos(){return this._enterPos}getAnchorPos(){return this._anchorPos}getRule(A){return A.getRule(this.ruleId)}toString(){const A=[];return this._writeString(A,0),"["+A.join(",")+"]"}_writeString(A,e){var t,n;return this.parent&&(e=this.parent._writeString(A,e)),A[e++]=`(${this.ruleId}, ${null==(t=this.nameScopesList)?void 0:t.toString()}, ${null==(n=this.contentNameScopesList)?void 0:n.toString()})`,e}withContentNameScopesList(A){return this.contentNameScopesList===A?this:this.parent.push(this.ruleId,this._enterPos,this._anchorPos,this.beginRuleCapturedEOL,this.endRule,this.nameScopesList,A)}withEndRule(e){return this.endRule===e?this:new A(this.parent,this.ruleId,this._enterPos,this._anchorPos,this.beginRuleCapturedEOL,e,this.nameScopesList,this.contentNameScopesList)}hasSameRuleAs(A){let e=this;for(;e&&e._enterPos===A._enterPos;){if(e.ruleId===A.ruleId)return!0;e=e.parent}return!1}toStateStackFrame(){var A,e,t;return{ruleId:this.ruleId,beginRuleCapturedEOL:this.beginRuleCapturedEOL,endRule:this.endRule,nameScopesList:(null==(e=this.nameScopesList)?void 0:e.getExtensionIfDefined((null==(A=this.parent)?void 0:A.nameScopesList)??null))??[],contentNameScopesList:(null==(t=this.contentNameScopesList)?void 0:t.getExtensionIfDefined(this.nameScopesList))??[]}}static pushFrame(e,t){const n=Cz.fromExtension((null==e?void 0:e.nameScopesList)??null,t.nameScopesList);return new A(e,t.ruleId,t.enterPos??-1,t.anchorPos??-1,t.beginRuleCapturedEOL,t.endRule,n,Cz.fromExtension(n,t.contentNameScopesList))}};e(dz,"NULL",new dz(null,0,0,0,!1,null,null,null));let Iz=dz;class pz{constructor(A,t){e(this,"balancedBracketScopes"),e(this,"unbalancedBracketScopes"),e(this,"allowAny",!1),this.balancedBracketScopes=A.flatMap((A=>"*"===A?(this.allowAny=!0,[]):i$(A,uz).map((A=>A.matcher)))),this.unbalancedBracketScopes=t.flatMap((A=>i$(A,uz).map((A=>A.matcher))))}get matchesAlways(){return this.allowAny&&0===this.unbalancedBracketScopes.length}get matchesNever(){return 0===this.balancedBracketScopes.length&&!this.allowAny}match(A){for(const e of this.unbalancedBracketScopes)if(e(A))return!1;for(const e of this.balancedBracketScopes)if(e(A))return!0;return this.allowAny}}class fz{constructor(A,t,n,o){e(this,"balancedBracketSelectors"),e(this,"_emitBinaryTokens"),e(this,"_lineText"),e(this,"_tokens"),e(this,"_binaryTokens"),e(this,"_lastTokenEndIndex"),e(this,"_tokenTypeOverrides"),this.balancedBracketSelectors=o,this._emitBinaryTokens=A,this._tokenTypeOverrides=n,this._lineText=null,this._tokens=[],this._binaryTokens=[],this._lastTokenEndIndex=0}produce(A,e){this.produceFromScopes(A.contentNameScopesList,e)}produceFromScopes(A,e){var t;if(this._lastTokenEndIndex>=e)return;if(this._emitBinaryTokens){let n=(null==A?void 0:A.tokenAttributes)??0,o=!1;if((null==(t=this.balancedBracketSelectors)?void 0:t.matchesAlways)&&(o=!0),this._tokenTypeOverrides.length>0||this.balancedBracketSelectors&&!this.balancedBracketSelectors.matchesAlways&&!this.balancedBracketSelectors.matchesNever){const e=(null==A?void 0:A.getScopeNames())??[];for(const A of this._tokenTypeOverrides)A.matcher(e)&&(n=o$.set(n,0,A.type,null,-1,0,0));this.balancedBracketSelectors&&(o=this.balancedBracketSelectors.match(e))}return o&&(n=o$.set(n,0,8,o,-1,0,0)),this._binaryTokens.length>0&&this._binaryTokens[this._binaryTokens.length-1]===n?void(this._lastTokenEndIndex=e):(this._binaryTokens.push(this._lastTokenEndIndex),this._binaryTokens.push(n),void(this._lastTokenEndIndex=e))}const n=(null==A?void 0:A.getScopeNames())??[];this._tokens.push({startIndex:this._lastTokenEndIndex,endIndex:e,scopes:n}),this._lastTokenEndIndex=e}getResult(A,e){return this._tokens.length>0&&this._tokens[this._tokens.length-1].startIndex===e-1&&this._tokens.pop(),0===this._tokens.length&&(this._lastTokenEndIndex=-1,this.produce(A,e),this._tokens[this._tokens.length-1].startIndex=0),this._tokens}getBinaryResult(A,e){this._binaryTokens.length>0&&this._binaryTokens[this._binaryTokens.length-2]===e-1&&(this._binaryTokens.pop(),this._binaryTokens.pop()),0===this._binaryTokens.length&&(this._lastTokenEndIndex=-1,this.produce(A,e),this._binaryTokens[this._binaryTokens.length-2]=0);const t=new Uint32Array(this._binaryTokens.length);for(let n=0,o=this._binaryTokens.length;n0;)await Promise.all(r.Q.map((A=>this._loadSingleGrammar(A.scopeName)))),r.processQueue();return this._grammarForScopeName(A,e,t,n,o)}async _loadSingleGrammar(A){return this._ensureGrammarCache.has(A)||this._ensureGrammarCache.set(A,this._doLoadSingleGrammar(A)),this._ensureGrammarCache.get(A)}async _doLoadSingleGrammar(A){const e=await this._options.loadGrammar(A);if(e){const t="function"==typeof this._options.getInjections?this._options.getInjections(A):void 0;this._syncRegistry.addGrammar(e,t)}}async addGrammar(A,e=[],t=0,n=null){return this._syncRegistry.addGrammar(A,e),await this._grammarForScopeName(A.scopeName,t,n)}_grammarForScopeName(A,e=0,t=null,n=null,o=null){return this._syncRegistry.grammarForScopeName(A,e,t,n,o)}};const Dz=Iz.NULL,mz=255,yz=768,bz=1024,vz=14336,kz=8372224,Mz=4286578688,xz=0,Sz=8,Fz=10,Nz=11,Rz=15,Lz=24;class Pz{static toBinaryStr(A){let e=A.toString(2);for(;e.length<32;)e=`0${e}`;return e}static getLanguageId(A){return(A&mz)>>>xz}static getTokenType(A){return(A&yz)>>>Sz}static getFontStyle(A){return(A&vz)>>>Nz}static getForeground(A){return(A&kz)>>>Rz}static getBackground(A){return(A&Mz)>>>Lz}static containsBalancedBrackets(A){return!!(A&bz)}static set(A,e,t,n,o,r){let i=Pz.getLanguageId(A),a=Pz.getTokenType(A),s=Pz.getFontStyle(A),l=Pz.getForeground(A),g=Pz.getBackground(A);const c=Pz.containsBalancedBrackets(A)?1:0;return 0!==e&&(i=e),0!==t&&(a=8===t?0:t),n!==t$.NotSet&&(s=n),0!==o&&(l=o),0!==r&&(g=r),(i<>>0}}function Hz(A,e=!1){var t;const n=A.split(/(\r?\n)/g);let o=0;const r=[];for(let i=0;i`${A}:${e}`)).join(";")}var Jz=["black","red","green","yellow","blue","magenta","cyan","white","brightBlack","brightRed","brightGreen","brightYellow","brightBlue","brightMagenta","brightCyan","brightWhite"],jz={1:"bold",2:"dim",3:"italic",4:"underline",7:"reverse",9:"strikethrough"};function qz(A,e){const t=A.indexOf("[",e);if(-1!==t){const e=A.indexOf("m",t);return{sequence:A.substring(t+2,e).split(";"),startPosition:t,position:e+1}}return{position:A.length}}function $z(A,e){let t=1;const n=A[e+t++];let o;if("2"===n){const n=[A[e+t++],A[e+t++],A[e+t]].map((A=>Number.parseInt(A)));3!==n.length||n.some((A=>Number.isNaN(A)))||(o={type:"rgb",rgb:n})}else if("5"===n){const n=Number.parseInt(A[e+t]);Number.isNaN(n)||(o={type:"table",index:Number(n)})}return[t,o]}function zz(A){const e=[];for(let t=0;t=90&&o<=97?e.push({type:"setForegroundColor",value:{type:"named",name:Jz[o-90+8]}}):o>=100&&o<=107&&e.push({type:"setBackgroundColor",value:{type:"named",name:Jz[o-100+8]}})}return e}var Wz={black:"#000000",red:"#bb0000",green:"#00bb00",yellow:"#bbbb00",blue:"#0000bb",magenta:"#ff00ff",cyan:"#00bbbb",white:"#eeeeee",brightBlack:"#555555",brightRed:"#ff5555",brightGreen:"#00ff00",brightYellow:"#ffff55",brightBlue:"#5555ff",brightMagenta:"#ff55ff",brightCyan:"#55ffff",brightWhite:"#ffffff"};function _z(A=Wz){function e(e){return A[e]}function t(A){return`#${A.map((A=>Math.max(0,Math.min(A,255)).toString(16).padStart(2,"0"))).join("")}`}let n;function o(A){return function(){if(n)return n;n=[];for(let t=0;t{var t;return[e,null==(t=A.colors)?void 0:t[`terminal.ansi${e[0].toUpperCase()}${e.substring(1)}`]]})))),i=function(){let A=null,e=null,t=new Set;return{parse(n){const o=[];let r=0;do{const i=qz(n,r),a=i.sequence?n.substring(r,i.startPosition):n.substring(r);if(a.length>0&&o.push({value:a,foreground:A,background:e,decorations:new Set(t)}),i.sequence){const n=zz(i.sequence);for(const o of n)"resetAll"===o.type?(A=null,e=null,t.clear()):"resetForegroundColor"===o.type?A=null:"resetBackgroundColor"===o.type?e=null:"resetDecoration"===o.type&&t.delete(o.value);for(const o of n)"setForegroundColor"===o.type?A=o.value:"setBackgroundColor"===o.type?e=o.value:"setDecoration"===o.type&&t.add(o.value)}r=i.position}while(ri.parse(e[0]).map((t=>{let o,i;t.decorations.has("reverse")?(o=t.background?r.value(t.background):A.bg,i=t.foreground?r.value(t.foreground):A.fg):(o=t.foreground?r.value(t.foreground):A.fg,i=t.background?r.value(t.background):void 0),o=Kz(o,n),i=Kz(i,n),t.decorations.has("dim")&&(o=function(A){const e=A.match(/#([0-9a-f]{3})([0-9a-f]{3})?([0-9a-f]{2})?/);if(e){if(e[3]){const A=Math.round(Number.parseInt(e[3],16)/2).toString(16).padStart(2,"0");return`#${e[1]}${e[2]}${A}`}return e[2]?`#${e[1]}${e[2]}80`:`#${Array.from(e[1]).map((A=>`${A}${A}`)).join("")}80`}const t=A.match(/var\((--[\w-]+-ansi-[\w-]+)\)/);return t?`var(${t[1]}-dim)`:A}(o));let a=t$.None;return t.decorations.has("bold")&&(a|=t$.Bold),t.decorations.has("italic")&&(a|=t$.Italic),t.decorations.has("underline")&&(a|=t$.Underline),{content:t.value,offset:e[1],color:o,bgColor:i,fontStyle:a}}))))}function Vz(A,e,t={}){const{lang:n="text",theme:o=A.getLoadedThemes()[0]}=t;if(Gz(n)||Oz(o))return Hz(e).map((A=>[{content:A[0],offset:A[1]}]));const{theme:r,colorMap:i}=A.setTheme(o);if("ansi"===n)return Xz(r,e,t);return function(A,e,t,n,o){const r={...t.colorReplacements,...null==o?void 0:o.colorReplacements},{tokenizeMaxLineLength:i=0,tokenizeTimeLimit:a=500}=o,s=Hz(A);let l=Dz,g=[];const c=[];for(let u=0,B=s.length;u0&&A.length>=i){g=[],c.push([{content:A,offset:B,color:"",fontStyle:0}]);continue}let Q,E,C;o.includeExplanation&&(Q=e.tokenizeLine(A,l),E=Q.tokens,C=0);const d=e.tokenizeLine2(A,l,a),I=d.tokens.length/2;for(let e=0;e=0&&r>=0;)AW(e[o],n[r])&&(o-=1),r-=1;return-1===o}function tW(A,e,t){const n=[];let o=0;for(let r=0,i=A.settings.length;rA.trim()));else{if(!Array.isArray(i.scope))continue;a=i.scope}for(let A=0,r=a.length;AA[1])).map((A=>({color:A[0],theme:A[1]}))),o=function(...A){const e=A.map((()=>[])),t=A.length;for(let n=0;nA[n])),r=e.map((()=>[]));e.forEach(((A,e)=>A.push(r[e])));const i=o.map((()=>0)),a=o.map((A=>A[0]));for(;a.every((A=>A));){const A=Math.min(...a.map((A=>A.content.length)));for(let e=0;eVz(A,e,{...t,theme:n.theme}))));return o[0].map(((A,e)=>A.map(((A,t)=>{const r={content:A.content,variants:{},offset:A.offset};return o.forEach(((A,o)=>{const{content:i,explanation:a,offset:s,...l}=A[e][t];r.variants[n[o].color]=l})),r}))))}class oW extends Error{constructor(A){super(A),this.name="ShikiError"}}function rW(A,e,t){let n,o,r,i,a;if("themes"in t){const{defaultColor:s="light",cssVariablePrefix:l="--shiki-",colorReplacements:g}=t,c=Object.entries(t.themes).filter((A=>A[1])).map((A=>({color:A[0],theme:A[1]}))).sort(((A,e)=>A.color===s?-1:e.color===s?1:0));if(0===c.length)throw new oW("`themes` option must not be empty");const u=nW(A,e,t);if(s&&!c.find((A=>A.color===s)))throw new oW(`\`themes\` option must contain the defaultColor key \`${s}\``);const B=c.map((e=>A.getTheme(e.theme))),Q=c.map((A=>A.color));r=u.map((A=>A.map((A=>function(A,e,t,n){const o={content:A.content,explanation:A.explanation,offset:A.offset},r=e.map((e=>Yz(A.variants[e]))),i=new Set(r.flatMap((A=>Object.keys(A)))),a=r.reduce(((A,o,r)=>{for(const a of i){const i=o[a]||"inherit";if(0===r&&n)A[a]=i;else{const n="color"===a?"":"background-color"===a?"-bg":`-${a}`,o=t+e[r]+("color"===a?"":n);A[a]?A[a]+=`;${o}:${i}`:A[a]=`${o}:${i}`}}return A}),{});return o.htmlStyle=n?Tz(a):Object.values(a).join(";"),o}(A,Q,l,s))))),o=c.map(((A,e)=>(0===e&&s?"":`${l+A.color}:`)+(Kz(B[e].fg,g)||"inherit"))).join(";"),n=c.map(((A,e)=>(0===e&&s?"":`${l+A.color}-bg:`)+(Kz(B[e].bg,g)||"inherit"))).join(";"),i=`shiki-themes ${B.map((A=>A.name)).join(" ")}`,a=s?void 0:[o,n].join(";")}else{if(!("theme"in t))throw new oW("Invalid options, either `theme` or `themes` must be provided");{const{colorReplacements:a}=t;r=Vz(A,e,t);const s=A.getTheme(t.theme);n=Kz(s.bg,a),o=Kz(s.fg,a),i=s.name}}return{tokens:r,fg:o,bg:n,themeName:i,rootStyle:a}}function iW(){const A=new WeakMap;function e(e){if(!A.has(e.meta)){let t=function(A){return"number"==typeof A?{...n.indexToPos(A),offset:A}:{...A,offset:n.posToIndex(A.line,A.character)}};const n=function(A){const e=Hz(A,!0).map((([A])=>A));return{lines:e,indexToPos:function(A){let t=A,n=0;for(const o of e){if(t({...A,start:t(A.start),end:t(A.end)})));!function(A){for(let e=0;et.end.offset)throw new oW(`Invalid decoration range: ${JSON.stringify(t.start)} - ${JSON.stringify(t.end)}`);for(let n=e+1;nA-e));return t.length?A.map((A=>A.flatMap((A=>{const e=t.filter((e=>A.offsete-A.offset)).sort(((A,e)=>A-e));return e.length?function(A,e){let t=0;const n=[];for(const o of e)o>t&&n.push({...A,content:A.content.slice(t,o),offset:A.offset+t}),t=o;return t[A.start.offset,A.end.offset])));return n},code(A){var t;if(!(null==(t=this.options.decorations)?void 0:t.length))return;const n=e(this),o=Array.from(A.children).filter((A=>"element"===A.type&&"span"===A.tagName));if(o.length!==n.converter.lines.length)throw new oW(`Number of lines in code element (${o.length}) does not match the number of lines in the source (${n.converter.lines.length}). Failed to apply decorations.`);function r(A,e,t,n){const r=o[A];let i="",s=-1,l=-1;function g(A){return"text"===A.type?A.value:"element"===A.type?A.children.map(g).join(""):""}if(0===e&&(s=0),0===t&&(l=0),t===Number.POSITIVE_INFINITY&&(l=r.children.length),-1===s||-1===l)for(let o=0;oA);return A.tagName=e.tagName||"span",A.properties={...A.properties,...o,class:A.properties.class},(null==(n=e.properties)?void 0:n.class)&&Uz(A,e.properties.class),A=r(A,t)||A}const s=[],l=n.decorations.sort(((A,e)=>e.start.offset-A.start.offset));for(const e of l){const{start:A,end:t}=e;if(A.line===t.line)r(A.line,A.character,t.character,e);else if(A.linei(n,e)));r(t.line,0,t.character,e)}}s.forEach((A=>A()))}}}const aW=[iW()];function sW(A){return[...A.transformers||[],...aW]}function lW(A,e,t,n={meta:{},options:t,codeToHast:(e,t)=>lW(A,e,t),codeToTokens:(e,t)=>rW(A,e,t)}){var o,r;let i=e;for(const Q of sW(t))i=(null==(o=Q.preprocess)?void 0:o.call(n,i,t))||i;let{tokens:a,fg:s,bg:l,themeName:g,rootStyle:c}=rW(A,i,t);const{mergeWhitespaces:u=!0}=t;!0===u?a=function(A){return A.map((A=>{const e=[];let t="",n=0;return A.forEach(((o,r)=>{const i=!(o.fontStyle&&o.fontStyle&t$.Underline);i&&o.content.match(/^\s+$/)&&A[r+1]?(n||(n=o.offset),t+=o.content):t?(i?e.push({...o,offset:n,content:t+o.content}):e.push({content:t,offset:n},o),n=0,t=""):e.push(o)})),e}))}(a):"never"===u&&(a=function(A){return A.map((A=>A.flatMap((A=>{if(A.content.match(/^\s+$/))return A;const e=A.content.match(/^(\s*)(.*?)(\s*)$/);if(!e)return A;const[,t,n,o]=e;if(!t&&!o)return A;const r=[{...A,offset:A.offset+t.length,content:n}];return t&&r.unshift({content:t,offset:A.offset}),o&&r.push({content:o,offset:A.offset+t.length+n.length}),r}))))}(a));const B={...n,get source(){return i}};for(const Q of sW(t))a=(null==(r=Q.tokens)?void 0:r.call(B,a))||a;return function(A,e,t){var n,o,r;const i=sW(e),a=[],s={type:"root",children:[]},{structure:l="classic"}=e;let g={type:"element",tagName:"pre",properties:{class:`shiki ${e.themeName||""}`,style:e.rootStyle||`background-color:${e.bg};color:${e.fg}`,tabindex:"0",...Object.fromEntries(Array.from(Object.entries(e.meta||{})).filter((([A])=>!A.startsWith("_"))))},children:[]},c={type:"element",tagName:"code",properties:{},children:a};const u=[],B={...t,structure:l,addClassToHast:Uz,get source(){return t.source},get tokens(){return A},get options(){return e},get root(){return s},get pre(){return g},get code(){return c},get lines(){return u}};if(A.forEach(((A,e)=>{var t,n;e&&("inline"===l?s.children.push({type:"element",tagName:"br",properties:{},children:[]}):"classic"===l&&a.push({type:"text",value:"\n"}));let o={type:"element",tagName:"span",properties:{class:"line"},children:[]},r=0;for(const a of A){let A={type:"element",tagName:"span",properties:{},children:[{type:"text",value:a.content}]};const n=a.htmlStyle||Tz(Yz(a));n&&(A.properties.style=n);for(const a of i)A=(null==(t=null==a?void 0:a.span)?void 0:t.call(B,A,e+1,r,o))||A;"inline"===l?s.children.push(A):"classic"===l&&o.children.push(A),r+=a.content.length}if("classic"===l){for(const A of i)o=(null==(n=null==A?void 0:A.line)?void 0:n.call(B,o,e+1))||o;u.push(o),a.push(o)}})),"classic"===l){for(const A of i)c=(null==(n=null==A?void 0:A.code)?void 0:n.call(B,c))||c;g.children.push(c);for(const A of i)g=(null==(o=null==A?void 0:A.pre)?void 0:o.call(B,g))||g;s.children.push(g)}let Q=s;for(const E of i)Q=(null==(r=null==E?void 0:E.root)?void 0:r.call(B,Q))||Q;return Q}(a,{...t,fg:s,bg:l,themeName:g,rootStyle:c},B)}const gW=["area","base","basefont","bgsound","br","col","command","embed","frame","hr","image","img","input","keygen","link","meta","param","source","track","wbr"];class cW{constructor(A,e,t){this.property=A,this.normal=e,t&&(this.space=t)}}function uW(A,e){const t={},n={};let o=-1;for(;++o"xlink:"+e.slice(5).toLowerCase(),properties:{xLinkActuate:null,xLinkArcRole:null,xLinkHref:null,xLinkRole:null,xLinkShow:null,xLinkTitle:null,xLinkType:null}}),SW=MW({space:"xml",transform:(A,e)=>"xml:"+e.slice(3).toLowerCase(),properties:{xmlLang:null,xmlBase:null,xmlSpace:null}});function FW(A,e){return e in A?A[e]:e}function NW(A,e){return FW(A,e.toLowerCase())}const RW=MW({space:"xmlns",attributes:{xmlnsxlink:"xmlns:xlink"},transform:NW,properties:{xmlns:null,xmlnsXLink:null}}),LW=MW({transform:(A,e)=>"role"===e?e:"aria-"+e.slice(4).toLowerCase(),properties:{ariaActiveDescendant:null,ariaAtomic:dW,ariaAutoComplete:null,ariaBusy:dW,ariaChecked:dW,ariaColCount:pW,ariaColIndex:pW,ariaColSpan:pW,ariaControls:fW,ariaCurrent:null,ariaDescribedBy:fW,ariaDetails:null,ariaDisabled:dW,ariaDropEffect:fW,ariaErrorMessage:null,ariaExpanded:dW,ariaFlowTo:fW,ariaGrabbed:dW,ariaHasPopup:null,ariaHidden:dW,ariaInvalid:null,ariaKeyShortcuts:null,ariaLabel:null,ariaLabelledBy:fW,ariaLevel:pW,ariaLive:null,ariaModal:dW,ariaMultiLine:dW,ariaMultiSelectable:dW,ariaOrientation:null,ariaOwns:fW,ariaPlaceholder:null,ariaPosInSet:pW,ariaPressed:dW,ariaReadOnly:dW,ariaRelevant:null,ariaRequired:dW,ariaRoleDescription:fW,ariaRowCount:pW,ariaRowIndex:pW,ariaRowSpan:pW,ariaSelected:dW,ariaSetSize:pW,ariaSort:null,ariaValueMax:pW,ariaValueMin:pW,ariaValueNow:pW,ariaValueText:null,role:null}}),PW=MW({space:"html",attributes:{acceptcharset:"accept-charset",classname:"class",htmlfor:"for",httpequiv:"http-equiv"},transform:NW,mustUseProperty:["checked","multiple","muted","selected"],properties:{abbr:null,accept:hW,acceptCharset:fW,accessKey:fW,action:null,allow:null,allowFullScreen:CW,allowPaymentRequest:CW,allowUserMedia:CW,alt:null,as:null,async:CW,autoCapitalize:null,autoComplete:fW,autoFocus:CW,autoPlay:CW,blocking:fW,capture:null,charSet:null,checked:CW,cite:null,className:fW,cols:pW,colSpan:null,content:null,contentEditable:dW,controls:CW,controlsList:fW,coords:pW|hW,crossOrigin:null,data:null,dateTime:null,decoding:null,default:CW,defer:CW,dir:null,dirName:null,disabled:CW,download:IW,draggable:dW,encType:null,enterKeyHint:null,fetchPriority:null,form:null,formAction:null,formEncType:null,formMethod:null,formNoValidate:CW,formTarget:null,headers:fW,height:pW,hidden:CW,high:pW,href:null,hrefLang:null,htmlFor:fW,httpEquiv:fW,id:null,imageSizes:null,imageSrcSet:null,inert:CW,inputMode:null,integrity:null,is:null,isMap:CW,itemId:null,itemProp:fW,itemRef:fW,itemScope:CW,itemType:fW,kind:null,label:null,lang:null,language:null,list:null,loading:null,loop:CW,low:pW,manifest:null,max:null,maxLength:pW,media:null,method:null,min:null,minLength:pW,multiple:CW,muted:CW,name:null,nonce:null,noModule:CW,noValidate:CW,onAbort:null,onAfterPrint:null,onAuxClick:null,onBeforeMatch:null,onBeforePrint:null,onBeforeToggle:null,onBeforeUnload:null,onBlur:null,onCancel:null,onCanPlay:null,onCanPlayThrough:null,onChange:null,onClick:null,onClose:null,onContextLost:null,onContextMenu:null,onContextRestored:null,onCopy:null,onCueChange:null,onCut:null,onDblClick:null,onDrag:null,onDragEnd:null,onDragEnter:null,onDragExit:null,onDragLeave:null,onDragOver:null,onDragStart:null,onDrop:null,onDurationChange:null,onEmptied:null,onEnded:null,onError:null,onFocus:null,onFormData:null,onHashChange:null,onInput:null,onInvalid:null,onKeyDown:null,onKeyPress:null,onKeyUp:null,onLanguageChange:null,onLoad:null,onLoadedData:null,onLoadedMetadata:null,onLoadEnd:null,onLoadStart:null,onMessage:null,onMessageError:null,onMouseDown:null,onMouseEnter:null,onMouseLeave:null,onMouseMove:null,onMouseOut:null,onMouseOver:null,onMouseUp:null,onOffline:null,onOnline:null,onPageHide:null,onPageShow:null,onPaste:null,onPause:null,onPlay:null,onPlaying:null,onPopState:null,onProgress:null,onRateChange:null,onRejectionHandled:null,onReset:null,onResize:null,onScroll:null,onScrollEnd:null,onSecurityPolicyViolation:null,onSeeked:null,onSeeking:null,onSelect:null,onSlotChange:null,onStalled:null,onStorage:null,onSubmit:null,onSuspend:null,onTimeUpdate:null,onToggle:null,onUnhandledRejection:null,onUnload:null,onVolumeChange:null,onWaiting:null,onWheel:null,open:CW,optimum:pW,pattern:null,ping:fW,placeholder:null,playsInline:CW,popover:null,popoverTarget:null,popoverTargetAction:null,poster:null,preload:null,readOnly:CW,referrerPolicy:null,rel:fW,required:CW,reversed:CW,rows:pW,rowSpan:pW,sandbox:fW,scope:null,scoped:CW,seamless:CW,selected:CW,shadowRootDelegatesFocus:CW,shadowRootMode:null,shape:null,size:pW,sizes:null,slot:null,span:pW,spellCheck:dW,src:null,srcDoc:null,srcLang:null,srcSet:null,start:pW,step:null,style:null,tabIndex:pW,target:null,title:null,translate:null,type:null,typeMustMatch:CW,useMap:null,value:dW,width:pW,wrap:null,align:null,aLink:null,archive:fW,axis:null,background:null,bgColor:null,border:pW,borderColor:null,bottomMargin:pW,cellPadding:null,cellSpacing:null,char:null,charOff:null,classId:null,clear:null,code:null,codeBase:null,codeType:null,color:null,compact:CW,declare:CW,event:null,face:null,frame:null,frameBorder:null,hSpace:pW,leftMargin:pW,link:null,longDesc:null,lowSrc:null,marginHeight:pW,marginWidth:pW,noResize:CW,noHref:CW,noShade:CW,noWrap:CW,object:null,profile:null,prompt:null,rev:null,rightMargin:pW,rules:null,scheme:null,scrolling:dW,standby:null,summary:null,text:null,topMargin:pW,valueType:null,version:null,vAlign:null,vLink:null,vSpace:pW,allowTransparency:null,autoCorrect:null,autoSave:null,disablePictureInPicture:CW,disableRemotePlayback:CW,prefix:null,property:null,results:pW,security:null,unselectable:null}}),HW=MW({space:"svg",attributes:{accentHeight:"accent-height",alignmentBaseline:"alignment-baseline",arabicForm:"arabic-form",baselineShift:"baseline-shift",capHeight:"cap-height",className:"class",clipPath:"clip-path",clipRule:"clip-rule",colorInterpolation:"color-interpolation",colorInterpolationFilters:"color-interpolation-filters",colorProfile:"color-profile",colorRendering:"color-rendering",crossOrigin:"crossorigin",dataType:"datatype",dominantBaseline:"dominant-baseline",enableBackground:"enable-background",fillOpacity:"fill-opacity",fillRule:"fill-rule",floodColor:"flood-color",floodOpacity:"flood-opacity",fontFamily:"font-family",fontSize:"font-size",fontSizeAdjust:"font-size-adjust",fontStretch:"font-stretch",fontStyle:"font-style",fontVariant:"font-variant",fontWeight:"font-weight",glyphName:"glyph-name",glyphOrientationHorizontal:"glyph-orientation-horizontal",glyphOrientationVertical:"glyph-orientation-vertical",hrefLang:"hreflang",horizAdvX:"horiz-adv-x",horizOriginX:"horiz-origin-x",horizOriginY:"horiz-origin-y",imageRendering:"image-rendering",letterSpacing:"letter-spacing",lightingColor:"lighting-color",markerEnd:"marker-end",markerMid:"marker-mid",markerStart:"marker-start",navDown:"nav-down",navDownLeft:"nav-down-left",navDownRight:"nav-down-right",navLeft:"nav-left",navNext:"nav-next",navPrev:"nav-prev",navRight:"nav-right",navUp:"nav-up",navUpLeft:"nav-up-left",navUpRight:"nav-up-right",onAbort:"onabort",onActivate:"onactivate",onAfterPrint:"onafterprint",onBeforePrint:"onbeforeprint",onBegin:"onbegin",onCancel:"oncancel",onCanPlay:"oncanplay",onCanPlayThrough:"oncanplaythrough",onChange:"onchange",onClick:"onclick",onClose:"onclose",onCopy:"oncopy",onCueChange:"oncuechange",onCut:"oncut",onDblClick:"ondblclick",onDrag:"ondrag",onDragEnd:"ondragend",onDragEnter:"ondragenter",onDragExit:"ondragexit",onDragLeave:"ondragleave",onDragOver:"ondragover",onDragStart:"ondragstart",onDrop:"ondrop",onDurationChange:"ondurationchange",onEmptied:"onemptied",onEnd:"onend",onEnded:"onended",onError:"onerror",onFocus:"onfocus",onFocusIn:"onfocusin",onFocusOut:"onfocusout",onHashChange:"onhashchange",onInput:"oninput",onInvalid:"oninvalid",onKeyDown:"onkeydown",onKeyPress:"onkeypress",onKeyUp:"onkeyup",onLoad:"onload",onLoadedData:"onloadeddata",onLoadedMetadata:"onloadedmetadata",onLoadStart:"onloadstart",onMessage:"onmessage",onMouseDown:"onmousedown",onMouseEnter:"onmouseenter",onMouseLeave:"onmouseleave",onMouseMove:"onmousemove",onMouseOut:"onmouseout",onMouseOver:"onmouseover",onMouseUp:"onmouseup",onMouseWheel:"onmousewheel",onOffline:"onoffline",onOnline:"ononline",onPageHide:"onpagehide",onPageShow:"onpageshow",onPaste:"onpaste",onPause:"onpause",onPlay:"onplay",onPlaying:"onplaying",onPopState:"onpopstate",onProgress:"onprogress",onRateChange:"onratechange",onRepeat:"onrepeat",onReset:"onreset",onResize:"onresize",onScroll:"onscroll",onSeeked:"onseeked",onSeeking:"onseeking",onSelect:"onselect",onShow:"onshow",onStalled:"onstalled",onStorage:"onstorage",onSubmit:"onsubmit",onSuspend:"onsuspend",onTimeUpdate:"ontimeupdate",onToggle:"ontoggle",onUnload:"onunload",onVolumeChange:"onvolumechange",onWaiting:"onwaiting",onZoom:"onzoom",overlinePosition:"overline-position",overlineThickness:"overline-thickness",paintOrder:"paint-order",panose1:"panose-1",pointerEvents:"pointer-events",referrerPolicy:"referrerpolicy",renderingIntent:"rendering-intent",shapeRendering:"shape-rendering",stopColor:"stop-color",stopOpacity:"stop-opacity",strikethroughPosition:"strikethrough-position",strikethroughThickness:"strikethrough-thickness",strokeDashArray:"stroke-dasharray",strokeDashOffset:"stroke-dashoffset",strokeLineCap:"stroke-linecap",strokeLineJoin:"stroke-linejoin",strokeMiterLimit:"stroke-miterlimit",strokeOpacity:"stroke-opacity",strokeWidth:"stroke-width",tabIndex:"tabindex",textAnchor:"text-anchor",textDecoration:"text-decoration",textRendering:"text-rendering",transformOrigin:"transform-origin",typeOf:"typeof",underlinePosition:"underline-position",underlineThickness:"underline-thickness",unicodeBidi:"unicode-bidi",unicodeRange:"unicode-range",unitsPerEm:"units-per-em",vAlphabetic:"v-alphabetic",vHanging:"v-hanging",vIdeographic:"v-ideographic",vMathematical:"v-mathematical",vectorEffect:"vector-effect",vertAdvY:"vert-adv-y",vertOriginX:"vert-origin-x",vertOriginY:"vert-origin-y",wordSpacing:"word-spacing",writingMode:"writing-mode",xHeight:"x-height",playbackOrder:"playbackorder",timelineBegin:"timelinebegin"},transform:FW,properties:{about:wW,accentHeight:pW,accumulate:null,additive:null,alignmentBaseline:null,alphabetic:pW,amplitude:pW,arabicForm:null,ascent:pW,attributeName:null,attributeType:null,azimuth:pW,bandwidth:null,baselineShift:null,baseFrequency:null,baseProfile:null,bbox:null,begin:null,bias:pW,by:null,calcMode:null,capHeight:pW,className:fW,clip:null,clipPath:null,clipPathUnits:null,clipRule:null,color:null,colorInterpolation:null,colorInterpolationFilters:null,colorProfile:null,colorRendering:null,content:null,contentScriptType:null,contentStyleType:null,crossOrigin:null,cursor:null,cx:null,cy:null,d:null,dataType:null,defaultAction:null,descent:pW,diffuseConstant:pW,direction:null,display:null,dur:null,divisor:pW,dominantBaseline:null,download:CW,dx:null,dy:null,edgeMode:null,editable:null,elevation:pW,enableBackground:null,end:null,event:null,exponent:pW,externalResourcesRequired:null,fill:null,fillOpacity:pW,fillRule:null,filter:null,filterRes:null,filterUnits:null,floodColor:null,floodOpacity:null,focusable:null,focusHighlight:null,fontFamily:null,fontSize:null,fontSizeAdjust:null,fontStretch:null,fontStyle:null,fontVariant:null,fontWeight:null,format:null,fr:null,from:null,fx:null,fy:null,g1:hW,g2:hW,glyphName:hW,glyphOrientationHorizontal:null,glyphOrientationVertical:null,glyphRef:null,gradientTransform:null,gradientUnits:null,handler:null,hanging:pW,hatchContentUnits:null,hatchUnits:null,height:null,href:null,hrefLang:null,horizAdvX:pW,horizOriginX:pW,horizOriginY:pW,id:null,ideographic:pW,imageRendering:null,initialVisibility:null,in:null,in2:null,intercept:pW,k:pW,k1:pW,k2:pW,k3:pW,k4:pW,kernelMatrix:wW,kernelUnitLength:null,keyPoints:null,keySplines:null,keyTimes:null,kerning:null,lang:null,lengthAdjust:null,letterSpacing:null,lightingColor:null,limitingConeAngle:pW,local:null,markerEnd:null,markerMid:null,markerStart:null,markerHeight:null,markerUnits:null,markerWidth:null,mask:null,maskContentUnits:null,maskUnits:null,mathematical:null,max:null,media:null,mediaCharacterEncoding:null,mediaContentEncodings:null,mediaSize:pW,mediaTime:null,method:null,min:null,mode:null,name:null,navDown:null,navDownLeft:null,navDownRight:null,navLeft:null,navNext:null,navPrev:null,navRight:null,navUp:null,navUpLeft:null,navUpRight:null,numOctaves:null,observer:null,offset:null,onAbort:null,onActivate:null,onAfterPrint:null,onBeforePrint:null,onBegin:null,onCancel:null,onCanPlay:null,onCanPlayThrough:null,onChange:null,onClick:null,onClose:null,onCopy:null,onCueChange:null,onCut:null,onDblClick:null,onDrag:null,onDragEnd:null,onDragEnter:null,onDragExit:null,onDragLeave:null,onDragOver:null,onDragStart:null,onDrop:null,onDurationChange:null,onEmptied:null,onEnd:null,onEnded:null,onError:null,onFocus:null,onFocusIn:null,onFocusOut:null,onHashChange:null,onInput:null,onInvalid:null,onKeyDown:null,onKeyPress:null,onKeyUp:null,onLoad:null,onLoadedData:null,onLoadedMetadata:null,onLoadStart:null,onMessage:null,onMouseDown:null,onMouseEnter:null,onMouseLeave:null,onMouseMove:null,onMouseOut:null,onMouseOver:null,onMouseUp:null,onMouseWheel:null,onOffline:null,onOnline:null,onPageHide:null,onPageShow:null,onPaste:null,onPause:null,onPlay:null,onPlaying:null,onPopState:null,onProgress:null,onRateChange:null,onRepeat:null,onReset:null,onResize:null,onScroll:null,onSeeked:null,onSeeking:null,onSelect:null,onShow:null,onStalled:null,onStorage:null,onSubmit:null,onSuspend:null,onTimeUpdate:null,onToggle:null,onUnload:null,onVolumeChange:null,onWaiting:null,onZoom:null,opacity:null,operator:null,order:null,orient:null,orientation:null,origin:null,overflow:null,overlay:null,overlinePosition:pW,overlineThickness:pW,paintOrder:null,panose1:null,path:null,pathLength:pW,patternContentUnits:null,patternTransform:null,patternUnits:null,phase:null,ping:fW,pitch:null,playbackOrder:null,pointerEvents:null,points:null,pointsAtX:pW,pointsAtY:pW,pointsAtZ:pW,preserveAlpha:null,preserveAspectRatio:null,primitiveUnits:null,propagate:null,property:wW,r:null,radius:null,referrerPolicy:null,refX:null,refY:null,rel:wW,rev:wW,renderingIntent:null,repeatCount:null,repeatDur:null,requiredExtensions:wW,requiredFeatures:wW,requiredFonts:wW,requiredFormats:wW,resource:null,restart:null,result:null,rotate:null,rx:null,ry:null,scale:null,seed:null,shapeRendering:null,side:null,slope:null,snapshotTime:null,specularConstant:pW,specularExponent:pW,spreadMethod:null,spacing:null,startOffset:null,stdDeviation:null,stemh:null,stemv:null,stitchTiles:null,stopColor:null,stopOpacity:null,strikethroughPosition:pW,strikethroughThickness:pW,string:null,stroke:null,strokeDashArray:wW,strokeDashOffset:null,strokeLineCap:null,strokeLineJoin:null,strokeMiterLimit:pW,strokeOpacity:pW,strokeWidth:null,style:null,surfaceScale:pW,syncBehavior:null,syncBehaviorDefault:null,syncMaster:null,syncTolerance:null,syncToleranceDefault:null,systemLanguage:wW,tabIndex:pW,tableValues:null,target:null,targetX:pW,targetY:pW,textAnchor:null,textDecoration:null,textRendering:null,textLength:null,timelineBegin:null,title:null,transformBehavior:null,type:null,typeOf:wW,to:null,transform:null,transformOrigin:null,u1:null,u2:null,underlinePosition:pW,underlineThickness:pW,unicode:null,unicodeBidi:null,unicodeRange:null,unitsPerEm:pW,values:null,vAlphabetic:pW,vMathematical:pW,vectorEffect:null,vHanging:pW,vIdeographic:pW,version:null,vertAdvY:pW,vertOriginX:pW,vertOriginY:pW,viewBox:null,viewTarget:null,visibility:null,width:null,widths:null,wordSpacing:null,writingMode:null,x:null,x1:null,x2:null,xChannelSelector:null,xHeight:pW,y:null,y1:null,y2:null,yChannelSelector:null,z:null,zoomAndPan:null}}),GW=/^data[-\w.:]+$/i,OW=/-[a-z]/g,UW=/[A-Z]/g;function KW(A){return"-"+A.toLowerCase()}function YW(A){return A.charAt(1).toUpperCase()}const TW=uW([SW,xW,RW,LW,PW],"html"),JW=uW([SW,xW,RW,LW,HW],"svg"),jW={}.hasOwnProperty;function qW(A,e){return A=A.replace(e.subset?function(A){const e=[];let t=-1;for(;++t`]/g,t),e.subset||e.escapeOnly?A:A.replace(/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,(function(A,t,n){return e.format(1024*(A.charCodeAt(0)-55296)+A.charCodeAt(1)-56320+65536,n.charCodeAt(t+2),e)})).replace(/[\x01-\t\v\f\x0E-\x1F\x7F\x81\x8D\x8F\x90\x9D\xA0-\uFFFF]/g,t);function t(A,t,n){return e.format(A.charCodeAt(0),n.charCodeAt(t+1),e)}}const $W=["AElig","AMP","Aacute","Acirc","Agrave","Aring","Atilde","Auml","COPY","Ccedil","ETH","Eacute","Ecirc","Egrave","Euml","GT","Iacute","Icirc","Igrave","Iuml","LT","Ntilde","Oacute","Ocirc","Ograve","Oslash","Otilde","Ouml","QUOT","REG","THORN","Uacute","Ucirc","Ugrave","Uuml","Yacute","aacute","acirc","acute","aelig","agrave","amp","aring","atilde","auml","brvbar","ccedil","cedil","cent","copy","curren","deg","divide","eacute","ecirc","egrave","eth","euml","frac12","frac14","frac34","gt","iacute","icirc","iexcl","igrave","iquest","iuml","laquo","lt","macr","micro","middot","nbsp","not","ntilde","oacute","ocirc","ograve","ordf","ordm","oslash","otilde","ouml","para","plusmn","pound","quot","raquo","reg","sect","shy","sup1","sup2","sup3","szlig","thorn","times","uacute","ucirc","ugrave","uml","uuml","yacute","yen","yuml"],zW={nbsp:"ย ",iexcl:"ยก",cent:"ยข",pound:"ยฃ",curren:"ยค",yen:"ยฅ",brvbar:"ยฆ",sect:"ยง",uml:"ยจ",copy:"ยฉ",ordf:"ยช",laquo:"ยซ",not:"ยฌ",shy:"ยญ",reg:"ยฎ",macr:"ยฏ",deg:"ยฐ",plusmn:"ยฑ",sup2:"ยฒ",sup3:"ยณ",acute:"ยด",micro:"ยต",para:"ยถ",middot:"ยท",cedil:"ยธ",sup1:"ยน",ordm:"ยบ",raquo:"ยป",frac14:"ยผ",frac12:"ยฝ",frac34:"ยพ",iquest:"ยฟ",Agrave:"ร€",Aacute:"ร",Acirc:"ร‚",Atilde:"รƒ",Auml:"ร„",Aring:"ร…",AElig:"ร†",Ccedil:"ร‡",Egrave:"รˆ",Eacute:"ร‰",Ecirc:"รŠ",Euml:"ร‹",Igrave:"รŒ",Iacute:"ร",Icirc:"รŽ",Iuml:"ร",ETH:"ร",Ntilde:"ร‘",Ograve:"ร’",Oacute:"ร“",Ocirc:"ร”",Otilde:"ร•",Ouml:"ร–",times:"ร—",Oslash:"ร˜",Ugrave:"ร™",Uacute:"รš",Ucirc:"ร›",Uuml:"รœ",Yacute:"ร",THORN:"รž",szlig:"รŸ",agrave:"ร ",aacute:"รก",acirc:"รข",atilde:"รฃ",auml:"รค",aring:"รฅ",aelig:"รฆ",ccedil:"รง",egrave:"รจ",eacute:"รฉ",ecirc:"รช",euml:"รซ",igrave:"รฌ",iacute:"รญ",icirc:"รฎ",iuml:"รฏ",eth:"รฐ",ntilde:"รฑ",ograve:"รฒ",oacute:"รณ",ocirc:"รด",otilde:"รต",ouml:"รถ",divide:"รท",oslash:"รธ",ugrave:"รน",uacute:"รบ",ucirc:"รป",uuml:"รผ",yacute:"รฝ",thorn:"รพ",yuml:"รฟ",fnof:"ฦ’",Alpha:"ฮ‘",Beta:"ฮ’",Gamma:"ฮ“",Delta:"ฮ”",Epsilon:"ฮ•",Zeta:"ฮ–",Eta:"ฮ—",Theta:"ฮ˜",Iota:"ฮ™",Kappa:"ฮš",Lambda:"ฮ›",Mu:"ฮœ",Nu:"ฮ",Xi:"ฮž",Omicron:"ฮŸ",Pi:"ฮ ",Rho:"ฮก",Sigma:"ฮฃ",Tau:"ฮค",Upsilon:"ฮฅ",Phi:"ฮฆ",Chi:"ฮง",Psi:"ฮจ",Omega:"ฮฉ",alpha:"ฮฑ",beta:"ฮฒ",gamma:"ฮณ",delta:"ฮด",epsilon:"ฮต",zeta:"ฮถ",eta:"ฮท",theta:"ฮธ",iota:"ฮน",kappa:"ฮบ",lambda:"ฮป",mu:"ฮผ",nu:"ฮฝ",xi:"ฮพ",omicron:"ฮฟ",pi:"ฯ€",rho:"ฯ",sigmaf:"ฯ‚",sigma:"ฯƒ",tau:"ฯ„",upsilon:"ฯ…",phi:"ฯ†",chi:"ฯ‡",psi:"ฯˆ",omega:"ฯ‰",thetasym:"ฯ‘",upsih:"ฯ’",piv:"ฯ–",bull:"โ€ข",hellip:"โ€ฆ",prime:"โ€ฒ",Prime:"โ€ณ",oline:"โ€พ",frasl:"โ„",weierp:"โ„˜",image:"โ„‘",real:"โ„œ",trade:"โ„ข",alefsym:"โ„ต",larr:"โ†",uarr:"โ†‘",rarr:"โ†’",darr:"โ†“",harr:"โ†”",crarr:"โ†ต",lArr:"โ‡",uArr:"โ‡‘",rArr:"โ‡’",dArr:"โ‡“",hArr:"โ‡”",forall:"โˆ€",part:"โˆ‚",exist:"โˆƒ",empty:"โˆ…",nabla:"โˆ‡",isin:"โˆˆ",notin:"โˆ‰",ni:"โˆ‹",prod:"โˆ",sum:"โˆ‘",minus:"โˆ’",lowast:"โˆ—",radic:"โˆš",prop:"โˆ",infin:"โˆž",ang:"โˆ ",and:"โˆง",or:"โˆจ",cap:"โˆฉ",cup:"โˆช",int:"โˆซ",there4:"โˆด",sim:"โˆผ",cong:"โ‰…",asymp:"โ‰ˆ",ne:"โ‰ ",equiv:"โ‰ก",le:"โ‰ค",ge:"โ‰ฅ",sub:"โŠ‚",sup:"โŠƒ",nsub:"โŠ„",sube:"โŠ†",supe:"โŠ‡",oplus:"โŠ•",otimes:"โŠ—",perp:"โŠฅ",sdot:"โ‹…",lceil:"โŒˆ",rceil:"โŒ‰",lfloor:"โŒŠ",rfloor:"โŒ‹",lang:"โŒฉ",rang:"โŒช",loz:"โ—Š",spades:"โ™ ",clubs:"โ™ฃ",hearts:"โ™ฅ",diams:"โ™ฆ",quot:'"',amp:"&",lt:"<",gt:">",OElig:"ล’",oelig:"ล“",Scaron:"ล ",scaron:"ลก",Yuml:"ลธ",circ:"ห†",tilde:"หœ",ensp:"โ€‚",emsp:"โ€ƒ",thinsp:"โ€‰",zwnj:"โ€Œ",zwj:"โ€",lrm:"โ€Ž",rlm:"โ€",ndash:"โ€“",mdash:"โ€”",lsquo:"โ€˜",rsquo:"โ€™",sbquo:"โ€š",ldquo:"โ€œ",rdquo:"โ€",bdquo:"โ€ž",dagger:"โ€ ",Dagger:"โ€ก",permil:"โ€ฐ",lsaquo:"โ€น",rsaquo:"โ€บ",euro:"โ‚ฌ"},WW=["cent","copy","divide","gt","lt","not","para","times"],_W={}.hasOwnProperty,XW={};let VW;for(VW in zW)_W.call(zW,VW)&&(XW[zW[VW]]=VW);function ZW(A,e,t){let n,o=function(A,e,t){const n="&#x"+A.toString(16).toUpperCase();return t&&e&&!/[\dA-Fa-f]/.test(String.fromCharCode(e))?n:n+";"}(A,e,t.omitOptionalSemicolons);if((t.useNamedReferences||t.useShortestReferences)&&(n=function(A,e,t,n){const o=String.fromCharCode(A);if(_W.call(XW,o)){const A=XW[o],r="&"+A;return t&&$W.includes(A)&&!WW.includes(A)&&(!n||e&&61!==e&&/[^\da-z]/i.test(String.fromCharCode(e)))?r:r+";"}return""}(A,e,t.omitOptionalSemicolons,t.attribute)),(t.useShortestReferences||!n)&&t.useShortestReferences){const n=function(A,e,t){const n="&#"+String(A);return t&&e&&!/\d/.test(String.fromCharCode(e))?n:n+";"}(A,e,t.omitOptionalSemicolons);n.length|^->||--!>|"],n_=["<",">"];function o_(A,e){const t=String(A);if("string"!=typeof e)throw new TypeError("Expected character");let n=0,o=t.indexOf(e);for(;-1!==o;)n++,o=t.indexOf(e,o+e.length);return n}function r_(A,e){const t=e||{};return(""===A[A.length-1]?[...A,""]:A).join((t.padRight?" ":"")+","+(!1===t.padLeft?"":" ")).trim()}function i_(A){return A.join(" ").trim()}const a_=/[ \t\n\f\r]/g;function s_(A){return"object"==typeof A?"text"===A.type&&l_(A.value):l_(A)}function l_(A){return""===A.replace(a_,"")}const g_=B_(1),c_=B_(-1),u_=[];function B_(A){return function(e,t,n){const o=e?e.children:u_;let r=(t||0)+A,i=o[r];if(!n)for(;i&&s_(i);)r+=A,i=o[r];return i}}const Q_={}.hasOwnProperty;function E_(A){return function(e,t,n){return Q_.call(A,e.tagName)&&A[e.tagName](e,t,n)}}const C_=E_({body:function(A,e,t){const n=g_(t,e);return!n||"comment"!==n.type},caption:d_,colgroup:d_,dd:function(A,e,t){const n=g_(t,e);return!n||"element"===n.type&&("dt"===n.tagName||"dd"===n.tagName)},dt:function(A,e,t){const n=g_(t,e);return Boolean(n&&"element"===n.type&&("dt"===n.tagName||"dd"===n.tagName))},head:d_,html:function(A,e,t){const n=g_(t,e);return!n||"comment"!==n.type},li:function(A,e,t){const n=g_(t,e);return!n||"element"===n.type&&"li"===n.tagName},optgroup:function(A,e,t){const n=g_(t,e);return!n||"element"===n.type&&"optgroup"===n.tagName},option:function(A,e,t){const n=g_(t,e);return!n||"element"===n.type&&("option"===n.tagName||"optgroup"===n.tagName)},p:function(A,e,t){const n=g_(t,e);return n?"element"===n.type&&("address"===n.tagName||"article"===n.tagName||"aside"===n.tagName||"blockquote"===n.tagName||"details"===n.tagName||"div"===n.tagName||"dl"===n.tagName||"fieldset"===n.tagName||"figcaption"===n.tagName||"figure"===n.tagName||"footer"===n.tagName||"form"===n.tagName||"h1"===n.tagName||"h2"===n.tagName||"h3"===n.tagName||"h4"===n.tagName||"h5"===n.tagName||"h6"===n.tagName||"header"===n.tagName||"hgroup"===n.tagName||"hr"===n.tagName||"main"===n.tagName||"menu"===n.tagName||"nav"===n.tagName||"ol"===n.tagName||"p"===n.tagName||"pre"===n.tagName||"section"===n.tagName||"table"===n.tagName||"ul"===n.tagName):!t||!("element"===t.type&&("a"===t.tagName||"audio"===t.tagName||"del"===t.tagName||"ins"===t.tagName||"map"===t.tagName||"noscript"===t.tagName||"video"===t.tagName))},rp:I_,rt:I_,tbody:function(A,e,t){const n=g_(t,e);return!n||"element"===n.type&&("tbody"===n.tagName||"tfoot"===n.tagName)},td:p_,tfoot:function(A,e,t){return!g_(t,e)},th:p_,thead:function(A,e,t){const n=g_(t,e);return Boolean(n&&"element"===n.type&&("tbody"===n.tagName||"tfoot"===n.tagName))},tr:function(A,e,t){const n=g_(t,e);return!n||"element"===n.type&&"tr"===n.tagName}});function d_(A,e,t){const n=g_(t,e,!0);return!n||"comment"!==n.type&&!("text"===n.type&&s_(n.value.charAt(0)))}function I_(A,e,t){const n=g_(t,e);return!n||"element"===n.type&&("rp"===n.tagName||"rt"===n.tagName)}function p_(A,e,t){const n=g_(t,e);return!n||"element"===n.type&&("td"===n.tagName||"th"===n.tagName)}const f_=E_({body:function(A){const e=g_(A,-1,!0);return!(e&&("comment"===e.type||"text"===e.type&&s_(e.value.charAt(0))||"element"===e.type&&("meta"===e.tagName||"link"===e.tagName||"script"===e.tagName||"style"===e.tagName||"template"===e.tagName)))},colgroup:function(A,e,t){const n=c_(t,e),o=g_(A,-1,!0);if(t&&n&&"element"===n.type&&"colgroup"===n.tagName&&C_(n,t.children.indexOf(n),t))return!1;return Boolean(o&&"element"===o.type&&"col"===o.tagName)},head:function(A){const e=A.children,t=[];let n=-1;for(;++n0},html:function(A){const e=g_(A,-1);return!e||"comment"!==e.type},tbody:function(A,e,t){const n=c_(t,e),o=g_(A,-1);if(t&&n&&"element"===n.type&&("thead"===n.tagName||"tbody"===n.tagName)&&C_(n,t.children.indexOf(n),t))return!1;return Boolean(o&&"element"===o.type&&"tr"===o.tagName)}});const h_={name:[["\t\n\f\r &/=>".split(""),"\t\n\f\r \"&'/=>`".split("")],["\0\t\n\f\r \"&'/<=>".split(""),"\0\t\n\f\r \"&'/<=>`".split("")]],unquoted:[["\t\n\f\r &>".split(""),"\0\t\n\f\r \"&'<=>`".split("")],["\0\t\n\f\r \"&'<=>`".split(""),"\0\t\n\f\r \"&'<=>`".split("")]],single:[["&'".split(""),"\"&'`".split("")],["\0&'".split(""),"\0\"&'`".split("")]],double:[['"&'.split(""),"\"&'`".split("")],['\0"&'.split(""),"\0\"&'`".split("")]]};function w_(A,e,t){const n=function(A,e){const t=BW(e);let n=e,o=QW;if(t in A.normal)return A.property[A.normal[t]];if(t.length>4&&"data"===t.slice(0,4)&&GW.test(e)){if("-"===e.charAt(4)){const A=e.slice(5).replace(OW,YW);n="data"+A.charAt(0).toUpperCase()+A.slice(1)}else{const A=e.slice(4);if(!OW.test(A)){let t=A.replace(UW,KW);"-"!==t.charAt(0)&&(t="-"+t),e="data"+t}}o=bW}return new o(n,e)}(A.schema,e),o=A.settings.allowParseErrors&&"html"===A.schema.space?0:1,r=A.settings.allowDangerousCharacters?0:1;let i,a=A.quote;if(!n.overloadedBoolean||t!==n.attribute&&""!==t?(n.boolean||n.overloadedBoolean&&"string"!=typeof t)&&(t=Boolean(t)):t=!0,null==t||!1===t||"number"==typeof t&&Number.isNaN(t))return"";const s=A_(n.attribute,Object.assign({},A.settings.characterReferences,{subset:h_.name[o][r]}));return!0===t?s:(t=Array.isArray(t)?(n.commaSeparated?r_:i_)(t,{padLeft:!A.settings.tightCommaSeparatedLists}):String(t),A.settings.collapseEmptyAttributes&&!t?s:(A.settings.preferUnquoted&&(i=A_(t,Object.assign({},A.settings.characterReferences,{attribute:!0,subset:h_.unquoted[o][r]}))),i!==t&&(A.settings.quoteSmart&&o_(t,a)>o_(t,A.alternative)&&(a=A.alternative),i=a+A_(t,Object.assign({},A.settings.characterReferences,{subset:("'"===a?h_.single:h_.double)[o][r],attribute:!0}))+a),s+(i?"="+i:i)))}const D_=["<","&"];function m_(A,e,t,n){return!t||"element"!==t.type||"script"!==t.tagName&&"style"!==t.tagName?A_(A.value,Object.assign({},n.settings.characterReferences,{subset:D_})):A.value}const y_=function(A,e){const t=e||{};function n(e,...t){let o=n.invalid;const r=n.handlers;if(e&&jW.call(e,A)){const t=String(e[A]);o=jW.call(r,t)?r[t]:n.unknown}if(o)return o.call(this,e,...t)}return n.handlers=t.handlers||{},n.invalid=t.invalid,n.unknown=t.unknown,n}("type",{invalid:function(A){throw new Error("Expected node, not `"+A+"`")},unknown:function(A){throw new Error("Cannot compile unknown node `"+A.type+"`")},handlers:{comment:function(A,e,t,n){return n.settings.bogusComments?"":"\x3c!--"+A.value.replace(e_,(function(A){return A_(A,Object.assign({},n.settings.characterReferences,{subset:n_}))}))+"--\x3e"},doctype:function(A,e,t,n){return""},element:function(A,e,t,n){const o=n.schema,r="svg"!==o.space&&n.settings.omitOptionalTags;let i="svg"===o.space?n.settings.closeEmptyElements:n.settings.voids.includes(A.tagName.toLowerCase());const a=[];let s;"html"===o.space&&"svg"===A.tagName&&(n.schema=JW);const l=function(A,e){const t=[];let n,o=-1;if(e)for(n in e)if(null!==e[n]&&void 0!==e[n]){const o=w_(A,n,e[n]);o&&t.push(o)}for(;++o")),a.push(g),i||r&&C_(A,e,t)||a.push(""),a.join("")},raw:function(A,e,t,n){return n.settings.allowDangerousHtml?A.value:m_(A,0,t,n)},root:function(A,e,t,n){return n.all(A)},text:m_}});const b_={},v_={},k_=[];function M_(A,e,t){return y_(A,e,t,this)}function x_(A){const e=[],t=A&&A.children||k_;let n=-1;for(;++nlW(A,e,t),codeToTokens:(e,t)=>rW(A,e,t)};let r=function(A,e){const t=b_,n=t.quote||'"',o='"'===n?"'":'"';if('"'!==n&&"'"!==n)throw new Error("Invalid quote `"+n+"`, expected `'` or `\"`");return{one:M_,all:x_,settings:{omitOptionalTags:t.omitOptionalTags||!1,allowParseErrors:t.allowParseErrors||!1,allowDangerousCharacters:t.allowDangerousCharacters||!1,quoteSmart:t.quoteSmart||!1,preferUnquoted:t.preferUnquoted||!1,tightAttributes:t.tightAttributes||!1,upperDoctype:t.upperDoctype||!1,tightDoctype:t.tightDoctype||!1,bogusComments:t.bogusComments||!1,tightCommaSeparatedLists:t.tightCommaSeparatedLists||!1,tightSelfClosing:t.tightSelfClosing||!1,collapseEmptyAttributes:t.collapseEmptyAttributes||!1,allowDangerousHtml:t.allowDangerousHtml||!1,voids:t.voids||gW,characterReferences:t.characterReferences||v_,closeSelfClosing:t.closeSelfClosing||!1,closeEmptyElements:t.closeEmptyElements||!1},schema:"svg"===t.space?JW:TW,quote:n,alternative:o}.one(Array.isArray(A)?{type:"root",children:A}:A,void 0,void 0)}(lW(A,e,t,o));for(const i of sW(t))r=(null==(n=i.postprocess)?void 0:n.call(o,r,t))||r;return r}let F_=null;class N_{constructor(A){e(this,"utf16Length"),e(this,"utf8Length"),e(this,"utf16Value"),e(this,"utf8Value"),e(this,"utf16OffsetToUtf8"),e(this,"utf8OffsetToUtf16");const t=A.length,n=N_._utf8ByteLength(A),o=n!==t,r=o?new Uint32Array(t+1):null;o&&(r[t]=n);const i=o?new Uint32Array(n+1):null;o&&(i[n]=t);const a=new Uint8Array(n);let s=0;for(let e=0;e=55296&&n<=56319&&e+1=56320&&t<=57343&&(l=65536+(n-55296<<10)|t-56320,g=!0)}o&&(r[e]=s,g&&(r[e+1]=s),l<=127?i[s+0]=e:l<=2047?(i[s+0]=e,i[s+1]=e):l<=65535?(i[s+0]=e,i[s+1]=e,i[s+2]=e):(i[s+0]=e,i[s+1]=e,i[s+2]=e,i[s+3]=e)),l<=127?a[s++]=l:l<=2047?(a[s++]=192|(1984&l)>>>6,a[s++]=128|(63&l)>>>0):l<=65535?(a[s++]=224|(61440&l)>>>12,a[s++]=128|(4032&l)>>>6,a[s++]=128|(63&l)>>>0):(a[s++]=240|(1835008&l)>>>18,a[s++]=128|(258048&l)>>>12,a[s++]=128|(4032&l)>>>6,a[s++]=128|(63&l)>>>0),g&&e++}this.utf16Length=t,this.utf8Length=n,this.utf16Value=A,this.utf8Value=a,this.utf16OffsetToUtf8=r,this.utf8OffsetToUtf16=i}static _utf8ByteLength(A){let e=0;for(let t=0,n=A.length;t=55296&&o<=56319&&t+1=56320&&e<=57343&&(r=65536+(o-55296<<10)|e-56320,i=!0)}e+=r<=127?1:r<=2047?2:r<=65535?3:4,i&&t++}return e}createString(A){const e=A.omalloc(this.utf8Length);return A.HEAPU8.set(this.utf8Value,e),e}}const R_=class A{constructor(t){if(e(this,"id",++A.LAST_ID),e(this,"_onigBinding"),e(this,"content"),e(this,"utf16Length"),e(this,"utf8Length"),e(this,"utf16OffsetToUtf8"),e(this,"utf8OffsetToUtf16"),e(this,"ptr"),!F_)throw new oW("Must invoke loadWasm first.");this._onigBinding=F_,this.content=t;const n=new N_(t);this.utf16Length=n.utf16Length,this.utf8Length=n.utf8Length,this.utf16OffsetToUtf8=n.utf16OffsetToUtf8,this.utf8OffsetToUtf16=n.utf8OffsetToUtf16,this.utf8Length<1e4&&!A._sharedPtrInUse?(A._sharedPtr||(A._sharedPtr=F_.omalloc(1e4)),A._sharedPtrInUse=!0,F_.HEAPU8.set(n.utf8Value,A._sharedPtr),this.ptr=A._sharedPtr):this.ptr=n.createString(F_)}convertUtf8OffsetToUtf16(A){return this.utf8OffsetToUtf16?A<0?0:A>this.utf8Length?this.utf16Length:this.utf8OffsetToUtf16[A]:A}convertUtf16OffsetToUtf8(A){return this.utf16OffsetToUtf8?A<0?0:A>this.utf16Length?this.utf8Length:this.utf16OffsetToUtf8[A]:A}dispose(){this.ptr===A._sharedPtr?A._sharedPtrInUse=!1:this._onigBinding.ofree(this.ptr)}};e(R_,"LAST_ID",0),e(R_,"_sharedPtr",0),e(R_,"_sharedPtrInUse",!1);let L_,P_=R_;class H_{constructor(A){if(e(this,"_onigBinding"),e(this,"_ptr"),!F_)throw new oW("Must invoke loadWasm first.");const t=[],n=[];for(let e=0,a=A.length;e>>16),o(e.buffer),1}catch(R3){}}const i={emscripten_get_now:function(){return"undefined"!=typeof performance?performance.now():Date.now()},emscripten_memcpy_big:function(A,e,t){n.HEAPU8.copyWithin(A,e,e+t)},emscripten_resize_heap:function(A){const e=n.HEAPU8.length,t=2147483648;if((A>>>=0)>t)return!1;for(let n=1;n<=4;n*=2){let a=e*(1+.2/n);if(a=Math.min(a,A+100663296),r(Math.min(t,(o=Math.max(A,a))+((i=65536)-o%i)%i)))return!0}var o,i;return!1},fd_write:()=>0};return await async function(){const t={env:i,wasi_snapshot_preview1:i},r=await A(t);e=r.memory,o(e.buffer),Object.assign(n,r)}(),n}((async e=>{let t=A;var n;return t=await t,"function"==typeof t&&(t=await t(e)),"function"==typeof t&&(t=await t(e)),"function"==typeof t.instantiator?t=await t.instantiator(e):!function(A){return"function"==typeof A.default}(t)?(function(A){return void 0!==A.data}(t)&&(t=t.data),!function(A){return"undefined"!=typeof Response&&A instanceof Response}(t)?!function(A){var e;return"undefined"!=typeof ArrayBuffer&&(A instanceof ArrayBuffer||ArrayBuffer.isView(A))||"undefined"!=typeof Buffer&&(null==(e=Buffer.isBuffer)?void 0:e.call(Buffer,A))||"undefined"!=typeof SharedArrayBuffer&&A instanceof SharedArrayBuffer||"undefined"!=typeof Uint32Array&&A instanceof Uint32Array}(t)?t instanceof WebAssembly.Module?t=await O_(t)(e):"default"in t&&t.default instanceof WebAssembly.Module&&(t=await O_(t.default)(e)):t=await O_(t)(e):t="function"==typeof WebAssembly.instantiateStreaming?await(n=t,A=>WebAssembly.instantiateStreaming(n,A))(e):await function(A){return async e=>{const t=await A.arrayBuffer();return WebAssembly.instantiate(t,e)}}(t)(e)):t=await t.default(e),"instance"in t&&(t=t.instance),"exports"in t&&(t=t.exports),t}))}(),L_}function O_(A){return e=>WebAssembly.instantiate(A,e)}const U_={light:"#333333",dark:"#bbbbbb"},K_={light:"#fffffe",dark:"#1e1e1e"},Y_="__shiki_resolved";function T_(A){var e,t,n,o,r;if(null==A?void 0:A[Y_])return A;const i={...A};i.tokenColors&&!i.settings&&(i.settings=i.tokenColors,delete i.tokenColors),i.type||(i.type="dark"),i.colorReplacements={...i.colorReplacements},i.settings||(i.settings=[]);let{bg:a,fg:s}=i;if(!a||!s){const A=i.settings?i.settings.find((A=>!A.name&&!A.scope)):void 0;(null==(e=null==A?void 0:A.settings)?void 0:e.foreground)&&(s=A.settings.foreground),(null==(t=null==A?void 0:A.settings)?void 0:t.background)&&(a=A.settings.background),!s&&(null==(n=null==i?void 0:i.colors)?void 0:n["editor.foreground"])&&(s=i.colors["editor.foreground"]),!a&&(null==(o=null==i?void 0:i.colors)?void 0:o["editor.background"])&&(a=i.colors["editor.background"]),s||(s="light"===i.type?U_.light:U_.dark),a||(a="light"===i.type?K_.light:K_.dark),i.fg=s,i.bg=a}i.settings[0]&&i.settings[0].settings&&!i.settings[0].scope||i.settings.unshift({settings:{foreground:i.fg,background:i.bg}});let l=0;const g=new Map;function c(A){var e;if(g.has(A))return g.get(A);l+=1;const t=`#${l.toString(16).padStart(8,"0").toLowerCase()}`;return(null==(e=i.colorReplacements)?void 0:e[`#${t}`])?c(A):(g.set(A,t),t)}i.settings=i.settings.map((A=>{var e,t;const n=(null==(e=A.settings)?void 0:e.foreground)&&!A.settings.foreground.startsWith("#"),o=(null==(t=A.settings)?void 0:t.background)&&!A.settings.background.startsWith("#");if(!n&&!o)return A;const r={...A,settings:{...A.settings}};if(n){const e=c(A.settings.foreground);i.colorReplacements[e]=A.settings.foreground,r.settings.foreground=e}if(o){const e=c(A.settings.background);i.colorReplacements[e]=A.settings.background,r.settings.background=e}return r}));for(const u of Object.keys(i.colors||{}))if(("editor.foreground"===u||"editor.background"===u||u.startsWith("terminal.ansi"))&&!(null==(r=i.colors[u])?void 0:r.startsWith("#"))){const A=c(i.colors[u]);i.colorReplacements[A]=i.colors[u],i.colors[u]=A}return Object.defineProperty(i,Y_,{enumerable:!1,writable:!1,value:!0}),i}class J_ extends wz{constructor(A,t,n,o={}){super(A),e(this,"_resolver"),e(this,"_themes"),e(this,"_langs"),e(this,"_alias"),e(this,"_resolvedThemes",{}),e(this,"_resolvedGrammars",{}),e(this,"_langMap",{}),e(this,"_langGraph",new Map),e(this,"_textmateThemeCache",new WeakMap),e(this,"_loadedThemesCache",null),e(this,"_loadedLanguagesCache",null),this._resolver=A,this._themes=t,this._langs=n,this._alias=o,t.forEach((A=>this.loadTheme(A))),n.forEach((A=>this.loadLanguage(A)))}getTheme(A){return"string"==typeof A?this._resolvedThemes[A]:this.loadTheme(A)}loadTheme(A){const e=T_(A);return e.name&&(this._resolvedThemes[e.name]=e,this._loadedThemesCache=null),e}getLoadedThemes(){return this._loadedThemesCache||(this._loadedThemesCache=Object.keys(this._resolvedThemes)),this._loadedThemesCache}setTheme(A){let e=this._textmateThemeCache.get(A);e||(e=$$.createFromRawTheme(A),this._textmateThemeCache.set(A,e)),this._syncRegistry.setTheme(e)}getGrammar(A){if(this._alias[A]){const e=new Set([A]);for(;this._alias[A];){if(A=this._alias[A],e.has(A))throw new oW(`Circular alias \`${Array.from(e).join(" -> ")} -> ${A}\``);e.add(A)}}return this._resolvedGrammars[A]}async loadLanguage(A){var e,t,n,o;if(this.getGrammar(A.name))return;const r=new Set(Object.values(this._langMap).filter((e=>{var t;return null==(t=e.embeddedLangsLazy)?void 0:t.includes(A.name)})));this._resolver.addLanguage(A);const i={balancedBracketSelectors:A.balancedBracketSelectors||["*"],unbalancedBracketSelectors:A.unbalancedBracketSelectors||[]};this._syncRegistry._rawGrammars.set(A.scopeName,A);const a=await this.loadGrammarWithConfiguration(A.scopeName,1,i);if(this._resolvedGrammars[A.name]=a,A.aliases&&A.aliases.forEach((e=>{this._alias[e]=A.name})),this._loadedLanguagesCache=null,r.size)for(const s of r)delete this._resolvedGrammars[s.name],this._loadedLanguagesCache=null,null==(t=null==(e=this._syncRegistry)?void 0:e._injectionGrammars)||t.delete(s.scopeName),null==(o=null==(n=this._syncRegistry)?void 0:n._grammars)||o.delete(s.scopeName),await this.loadLanguage(this._langMap[s.name])}async init(){this._themes.map((A=>this.loadTheme(A))),await this.loadLanguages(this._langs)}async loadLanguages(A){for(const n of A)this.resolveEmbeddedLanguages(n);const e=Array.from(this._langGraph.entries()),t=e.filter((([A,e])=>!e));if(t.length){const A=e.filter((([A,e])=>{var n;return e&&(null==(n=e.embeddedLangs)?void 0:n.some((A=>t.map((([A])=>A)).includes(A))))})).filter((A=>!t.includes(A)));throw new oW(`Missing languages ${t.map((([A])=>`\`${A}\``)).join(", ")}, required by ${A.map((([A])=>`\`${A}\``)).join(", ")}`)}for(const[n,o]of e)this._resolver.addLanguage(o);for(const[n,o]of e)await this.loadLanguage(o)}getLoadedLanguages(){return this._loadedLanguagesCache||(this._loadedLanguagesCache=Object.keys({...this._resolvedGrammars,...this._alias})),this._loadedLanguagesCache}resolveEmbeddedLanguages(A){if(this._langMap[A.name]=A,this._langGraph.set(A.name,A),A.embeddedLangs)for(const e of A.embeddedLangs)this._langGraph.set(e,this._langMap[e])}}class j_{constructor(A,t){e(this,"_langs",new Map),e(this,"_scopeToLang",new Map),e(this,"_injections",new Map),e(this,"_onigLibPromise"),this._onigLibPromise=A,t.forEach((A=>this.addLanguage(A)))}get onigLib(){return this._onigLibPromise}getLangRegistration(A){return this._langs.get(A)}async loadGrammar(A){return this._scopeToLang.get(A)}addLanguage(A){this._langs.set(A.name,A),A.aliases&&A.aliases.forEach((e=>{this._langs.set(e,A)})),this._scopeToLang.set(A.scopeName,A),A.injectTo&&A.injectTo.forEach((e=>{this._injections.get(e)||this._injections.set(e,[]),this._injections.get(e).push(A.scopeName)}))}getInjections(A){const e=A.split(".");let t=[];for(let n=1;n<=e.length;n++){const A=e.slice(0,n).join(".");t=[...t,...this._injections.get(A)||[]]}return t}}let q_;async function $_(A={}){async function e(A){return Promise.resolve("function"==typeof A?A():A).then((A=>A.default||A))}async function t(A){return Array.from(new Set((await Promise.all(A.filter((A=>{return!("ansi"===(e=A)||Gz(e));var e})).map((async A=>await e(A).then((A=>Array.isArray(A)?A:[A])))))).flat()))}const n=A.loadWasm||q_,[o,r]=await Promise.all([Promise.all((A.themes||[]).map(e)).then((A=>A.map(T_))),t(A.langs||[]),n?G_(n):void 0]),i=new j_(Promise.resolve({createOnigScanner:A=>function(A){return new H_(A)}(A),createOnigString:A=>new P_(A)}),r),a=new J_(i,o,r,A.langAlias);let s;function l(A){if("none"===A)return{bg:"",fg:"",name:"none",settings:[],type:"dark"};const e=a.getTheme(A);if(!e)throw new oW(`Theme \`${A}\` not found, you may need to load it first`);return e}return await a.init(),{setTheme:function(A){const e=l(A);return s!==A&&(a.setTheme(e),s=A),{theme:e,colorMap:a.getColorMap()}},getTheme:l,getLanguage:function(A){const e=a.getGrammar("string"==typeof A?A:A.name);if(!e)throw new oW(`Language \`${A}\` not found, you may need to load it first`);return e},getLoadedThemes:function(){return a.getLoadedThemes()},getLoadedLanguages:function(){return a.getLoadedLanguages()},loadLanguage:async function(...A){await a.loadLanguages(await t(A))},loadTheme:async function(...A){await Promise.all(A.map((async A=>function(A){return Oz(A)}(A)?null:a.loadTheme(await e(A)))))}}}var z_={exports:{}},W_={},__=J;var X_="function"==typeof Object.is?Object.is:function(A,e){return A===e&&(0!==A||1/A==1/e)||A!=A&&e!=e},V_=__.useState,Z_=__.useEffect,AX=__.useLayoutEffect,eX=__.useDebugValue;function tX(A){var e=A.getSnapshot;A=A.value;try{var t=e();return!X_(A,t)}catch(n){return!0}}var nX="undefined"==typeof window||void 0===window.document||void 0===window.document.createElement?function(A,e){return e()}:function(A,e){var t=e(),n=V_({inst:{value:t,getSnapshot:e}}),o=n[0].inst,r=n[1];return AX((function(){o.value=t,o.getSnapshot=e,tX(o)&&r({inst:o})}),[A,t,e]),Z_((function(){return tX(o)&&r({inst:o}),A((function(){tX(o)&&r({inst:o})}))}),[A]),eX(t),t};W_.useSyncExternalStore=void 0!==__.useSyncExternalStore?__.useSyncExternalStore:nX,z_.exports=W_;var oX=z_.exports;const rX=()=>{},iX=rX(),aX=Object,sX=A=>A===iX,lX=A=>"function"==typeof A,gX=(A,e)=>({...A,...e}),cX=new WeakMap;let uX=0;const BX=A=>{const e=typeof A,t=A&&A.constructor,n=t==Date;let o,r;if(aX(A)!==A||n||t==RegExp)o=n?A.toJSON():"symbol"==e?A.toString():"string"==e?JSON.stringify(A):""+A;else{if(o=cX.get(A),o)return o;if(o=++uX+"~",cX.set(A,o),t==Array){for(o="@",r=0;r{const t=QX.get(A);return[()=>!sX(e)&&A.get(e)||EX,n=>{if(!sX(e)){const o=A.get(e);e in CX||(CX[e]=o),t[5](e,gX(o,n),o||EX)}},t[6],()=>!sX(e)&&e in CX?CX[e]:!sX(e)&&A.get(e)||EX]};let hX=!0;const[wX,DX]=IX&&window.addEventListener?[window.addEventListener.bind(window),window.removeEventListener.bind(window)]:[rX,rX],mX={isOnline:()=>hX,isVisible:()=>{const A=pX&&document.visibilityState;return sX(A)||"hidden"!==A}},yX={initFocus:A=>(pX&&document.addEventListener("visibilitychange",A),wX("focus",A),()=>{pX&&document.removeEventListener("visibilitychange",A),DX("focus",A)}),initReconnect:A=>{const e=()=>{hX=!0,A()},t=()=>{hX=!1};return wX("online",e),wX("offline",t),()=>{DX("online",e),DX("offline",t)}}},bX=!j.useId,vX=!IX||"Deno"in window,kX=A=>IX&&typeof window.requestAnimationFrame!=dX?window.requestAnimationFrame(A):setTimeout(A,1),MX=vX?J.useEffect:J.useLayoutEffect,xX="undefined"!=typeof navigator&&navigator.connection,SX=!vX&&xX&&(["slow-2g","2g"].includes(xX.effectiveType)||xX.saveData),FX=A=>{if(lX(A))try{A=A()}catch(t){A=""}const e=A;return[A="string"==typeof A?A:(Array.isArray(A)?A.length:A)?BX(A):"",e]};let NX=0;const RX=()=>++NX;var LX=3,PX=0,HX=2,GX=1;async function OX(...A){const[e,t,n,o]=A,r=gX({populateCache:!0,throwOnError:!0},"boolean"==typeof o?{revalidate:o}:o||{});let i=r.populateCache;const a=r.rollbackOnError;let s=r.optimisticData;const l=r.throwOnError;if(lX(t)){const A=t,n=[],o=e.keys();for(const t of o)!/^\$(inf|sub)\$/.test(t)&&A(e.get(t)._k)&&n.push(t);return Promise.all(n.map(g))}return g(t);async function g(t){const[o]=FX(t);if(!o)return;const[g,c]=fX(e,o),[u,B,Q,E]=QX.get(e),C=()=>{const A=u[o];return(lX(r.revalidate)?r.revalidate(g().data,t):!1!==r.revalidate)&&(delete Q[o],delete E[o],A&&A[0])?A[0](2).then((()=>g().data)):g().data};if(A.length<3)return C();let d,I=n;const p=RX();B[o]=[p,0];const f=!sX(s),h=g(),w=h.data,D=h._c,m=sX(D)?w:D;if(f&&(s=lX(s)?s(m,w):s,c({data:s,_c:m})),lX(I))try{I=I(m)}catch(y){d=y}if(I&&lX(I.then)){if(I=await I.catch((A=>{d=A})),p!==B[o][0]){if(d)throw d;return I}d&&f&&(A=>"function"==typeof a?a(A):!1!==a)(d)&&(i=!0,c({data:m,_c:iX}))}if(i&&!d)if(lX(i)){const A=i(I,m);c({data:A,error:iX,_c:iX})}else c({data:I,error:iX,_c:iX});if(B[o][1]=RX(),Promise.resolve(C()).then((()=>{c({_c:iX})})),!d)return I;if(l)throw d}}const UX=(A,e)=>{for(const t in A)A[t][0]&&A[t][0](e)},[KX,YX]=((A,e)=>{if(!QX.has(A)){const t=gX(yX,e),n={},o=OX.bind(iX,A);let r=rX;const i={},a=(A,e)=>{const t=i[A]||[];return i[A]=t,t.push(e),()=>t.splice(t.indexOf(e),1)},s=(e,t,n)=>{A.set(e,t);const o=i[e];if(o)for(const A of o)A(t,n)},l=()=>{if(!QX.has(A)&&(QX.set(A,[n,{},{},{},o,s,a]),!vX)){const e=t.initFocus(setTimeout.bind(iX,UX.bind(iX,n,0))),o=t.initReconnect(setTimeout.bind(iX,UX.bind(iX,n,1)));r=()=>{e&&e(),o&&o(),QX.delete(A)}}};return l(),[A,o,l,r]}return[A,QX.get(A)[4]]})(new Map),TX=gX({onLoadingSlow:rX,onSuccess:rX,onError:rX,onErrorRetry:(A,e,t,n,o)=>{const r=t.errorRetryCount,i=o.retryCount,a=~~((Math.random()+.5)*(1<<(i<8?i:8)))*t.errorRetryInterval;!sX(r)&&i>r||setTimeout(n,a,o)},onDiscarded:rX,revalidateOnFocus:!0,revalidateOnReconnect:!0,revalidateIfStale:!0,shouldRetryOnError:!0,errorRetryInterval:SX?1e4:5e3,focusThrottleInterval:5e3,dedupingInterval:2e3,loadingTimeout:SX?5e3:3e3,compare:(A,e)=>BX(A)==BX(e),isPaused:()=>!1,cache:KX,mutate:YX,fallback:{}},mX),JX=J.createContext({}),jX=IX&&window.__SWR_DEVTOOLS_USE__,qX=jX?window.__SWR_DEVTOOLS_USE__:[],$X=qX.concat((A=>(e,t,n)=>A(e,t&&((...A)=>{const[n]=FX(e),[,,,o]=QX.get(KX);if(n.startsWith("$inf$"))return t(...A);const r=o[n];return sX(r)?t(...A):(delete o[n],r)}),n)));jX&&(window.__SWR_DEVTOOLS_REACT__=j);const zX=j.use||(A=>{if("pending"===A.status)throw A;if("fulfilled"===A.status)return A.value;throw"rejected"===A.status?A.reason:(A.status="pending",A.then((e=>{A.status="fulfilled",A.value=e}),(e=>{A.status="rejected",A.reason=e})),A)}),WX={dedupe:!0},_X=(XX=(A,e,t)=>{const{cache:n,compare:o,suspense:r,fallbackData:i,revalidateOnMount:a,revalidateIfStale:s,refreshInterval:l,refreshWhenHidden:g,refreshWhenOffline:c,keepPreviousData:u}=t,[B,Q,E,C]=QX.get(n),[d,I]=FX(A),p=J.useRef(!1),f=J.useRef(!1),h=J.useRef(d),w=J.useRef(e),D=J.useRef(t),m=()=>D.current,y=()=>m().isVisible()&&m().isOnline(),[b,v,k,M]=fX(n,d),x=J.useRef({}).current,S=sX(i)?t.fallback[d]:i,F=(A,e)=>{for(const t in x){const n=t;if("data"===n){if(!o(A[n],e[n])){if(!sX(A[n]))return!1;if(!o(K,e[n]))return!1}}else if(e[n]!==A[n])return!1}return!0},N=J.useMemo((()=>{const A=!!d&&!!e&&(sX(a)?!m().isPaused()&&!r&&(!!sX(s)||s):a),t=e=>{const t=gX(e);return delete t._k,A?{isValidating:!0,isLoading:!0,...t}:t},n=b(),o=M(),i=t(n),l=n===o?i:t(o);let g=i;return[()=>{const A=t(b());return F(A,g)?(g.data=A.data,g.isLoading=A.isLoading,g.isValidating=A.isValidating,g.error=A.error,g):(g=A,A)},()=>l]}),[n,d]),R=oX.useSyncExternalStore(J.useCallback((A=>k(d,((e,t)=>{F(t,e)||A()}))),[n,d]),N[0],N[1]),L=!p.current,P=B[d]&&B[d].length>0,H=R.data,G=sX(H)?S:H,O=R.error,U=J.useRef(G),K=u?sX(H)?U.current:H:G,Y=!(P&&!sX(O))&&(L&&!sX(a)?a:!m().isPaused()&&(r?!sX(G)&&s:sX(G)||s)),T=!!(d&&e&&L&&Y),j=sX(R.isValidating)?T:R.isValidating,q=sX(R.isLoading)?T:R.isLoading,$=J.useCallback((async A=>{const e=w.current;if(!d||!e||f.current||m().isPaused())return!1;let n,r,i=!0;const a=A||{},s=!E[d]||!a.dedupe,l=()=>bX?!f.current&&d===h.current&&p.current:d===h.current,g={isValidating:!1,isLoading:!1},c=()=>{v(g)},u=()=>{const A=E[d];A&&A[1]===r&&delete E[d]},C={isValidating:!0};sX(b().data)&&(C.isLoading=!0);try{if(s&&(v(C),t.loadingTimeout&&sX(b().data)&&setTimeout((()=>{i&&l()&&m().onLoadingSlow(d,t)}),t.loadingTimeout),E[d]=[e(I),RX()]),[n,r]=E[d],n=await n,s&&setTimeout(u,t.dedupingInterval),!E[d]||E[d][1]!==r)return s&&l()&&m().onDiscarded(d),!1;g.error=iX;const A=Q[d];if(!sX(A)&&(r<=A[0]||r<=A[1]||0===A[1]))return c(),s&&l()&&m().onDiscarded(d),!1;const a=b().data;g.data=o(a,n)?a:n,s&&l()&&m().onSuccess(n,d,t)}catch(D){u();const A=m(),{shouldRetryOnError:e}=A;A.isPaused()||(g.error=D,s&&l()&&(A.onError(D,d,A),(!0===e||lX(e)&&e(D))&&(m().revalidateOnFocus&&m().revalidateOnReconnect&&!y()||A.onErrorRetry(D,d,A,(A=>{const e=B[d];e&&e[0]&&e[0](LX,A)}),{retryCount:(a.retryCount||0)+1,dedupe:!0}))))}return i=!1,c(),!0}),[d,n]),z=J.useCallback(((...A)=>OX(n,h.current,...A)),[]);if(MX((()=>{w.current=e,D.current=t,sX(H)||(U.current=H)})),MX((()=>{if(!d)return;const A=$.bind(iX,WX);let e=0;const t=((A,e,t)=>{const n=e[A]||(e[A]=[]);return n.push(t),()=>{const A=n.indexOf(t);A>=0&&(n[A]=n[n.length-1],n.pop())}})(d,B,((t,n={})=>{if(t==PX){const t=Date.now();m().revalidateOnFocus&&t>e&&y()&&(e=t+m().focusThrottleInterval,A())}else if(t==GX)m().revalidateOnReconnect&&y()&&A();else{if(t==HX)return $();if(t==LX)return $(n)}}));return f.current=!1,h.current=d,p.current=!0,v({_k:I}),Y&&(sX(G)||vX?A():kX(A)),()=>{f.current=!0,t()}}),[d]),MX((()=>{let A;function e(){const e=lX(l)?l(b().data):l;e&&-1!==A&&(A=setTimeout(t,e))}function t(){b().error||!g&&!m().isVisible()||!c&&!m().isOnline()?e():$(WX).then(e)}return e(),()=>{A&&(clearTimeout(A),A=-1)}}),[l,g,c,d]),J.useDebugValue(K),r&&sX(G)&&d){if(!bX&&vX)throw new Error("Fallback data is required when using suspense in SSR.");w.current=e,D.current=t,f.current=!1;const A=C[d];if(!sX(A)){const e=z(A);zX(e)}if(!sX(O))throw O;{const A=$(WX);sX(K)||(A.status="fulfilled",A.value=!0),zX(A)}}return{mutate:z,get data(){return x.data=!0,K},get error(){return x.error=!0,O},get isValidating(){return x.isValidating=!0,j},get isLoading(){return x.isLoading=!0,q}}},function(...A){const e=gX(TX,J.useContext(JX)),[t,n,o]=(A=>lX(A[1])?[A[0],A[1],A[2]||{}]:[A[0],null,(null===A[1]?A[2]:A[1])||{}])(A),r=((A,e)=>{const t=gX(A,e);if(e){const{use:n,fallback:o}=A,{use:r,fallback:i}=e;n&&r&&(t.use=n.concat(r)),o&&i&&(t.fallback=gX(o,i))}return t})(e,o);let i=XX;const{use:a}=r,s=(a||[]).concat($X);for(let l=s.length;l--;)i=s[l](i);return i(t,n||r.fetcher||null,r)});var XX,VX,ZX,AV,eV,tV,nV,oV,rV,iV,aV,sV={blue:{dark:["#000506","#002126","#00363f","#004e59","#006675","#008093","#159ab0","#47b3ca","#6acde4","#8ae8ff","#b8f0ff","#def7ff","#ffffff"],darkA:["rgba(0, 167, 200, 0.03)","rgba(0, 220, 253, 0.15)","rgba(0, 216, 252, 0.25)","rgba(0, 223, 254, 0.35)","rgba(0, 222, 254, 0.46)","rgba(0, 221, 253, 0.58)","rgba(30, 223, 255, 0.69)","rgba(89, 224, 252, 0.8)","rgba(118, 228, 253, 0.9)","#8ae8ff","#b8f0ff","#def7ff","#ffffff"],light:["#ffffff","#fbfeff","#f4fcff","#eafaff","#dff7ff","#d3f5ff","#c4f2ff","#b4efff","#a1ecff","#8ae8ff","#159ab0","#004e59","#000506"],lightA:["rgba(255, 255, 255, 0.01)","rgba(55, 205, 255, 0.02)","rgba(35, 195, 255, 0.05)","rgba(22, 199, 255, 0.09)","rgba(9, 193, 255, 0.13)","rgba(11, 199, 255, 0.18)","rgba(9, 201, 255, 0.24)","rgba(5, 202, 255, 0.3)","rgba(1, 204, 255, 0.37)","rgba(1, 205, 255, 0.46)","rgba(1, 145, 169, 0.92)","#004e59","#000506"]},bnw:{dark:["#000000","#111111","#333333","#555555","#666666","#888888","#aaaaaa","#cccccc","#dddddd","#eeeeee","#ffffff","#ffffff","#ffffff"],darkA:["rgba(255, 255, 255, 0.02)","rgba(255, 255, 255, 0.08)","rgba(255, 255, 255, 0.16)","rgba(255, 255, 255, 0.22)","rgba(255, 255, 255, 0.36)","rgba(255, 255, 255, 0.48)","rgba(255, 255, 255, 0.6)","rgba(255, 255, 255, 0.72)","rgba(255, 255, 255, 0.84)","rgba(255, 255, 255, 0.88)","rgba(255, 255, 255, 0.92)","rgba(255, 255, 255, 0.96)","rgba(255, 255, 255, 0.98)"],light:["#ffffff","#f5f5f5","#eeeeee","#cccccc","#aaaaaa","#888888","#666666","#444444","#333333","#222222","#111111","#111111","#111111"],lightA:["rgba(0, 0, 0, 0.02)","rgba(0, 0, 0, 0.08)","rgba(0, 0, 0, 0.16)","rgba(0, 0, 0, 0.22)","rgba(0, 0, 0, 0.36)","rgba(0, 0, 0, 0.48)","rgba(0, 0, 0, 0.6)","rgba(0, 0, 0, 0.72)","rgba(0, 0, 0, 0.84)","rgba(0, 0, 0, 0.88)","rgba(0, 0, 0, 0.92)","rgba(0, 0, 0, 0.96)","rgba(0, 0, 0, 0.98)"]},cyan:{dark:["#000503","#00221c","#003930","#005245","#006c5b","#008772","#2fa28a","#55bca4","#75d7be","#95f3d9","#bdf7e4","#dffcf0","#ffffff"],darkA:["rgba(0, 250, 150, 0.02)","rgba(0, 243, 200, 0.14)","rgba(0, 248, 209, 0.23)","rgba(0, 248, 209, 0.33)","rgba(0, 251, 212, 0.43)","rgba(0, 255, 215, 0.53)","rgba(73, 253, 216, 0.64)","rgba(115, 254, 222, 0.74)","rgba(138, 253, 224, 0.85)","rgba(155, 253, 226, 0.96)","rgba(195, 255, 235, 0.97)","rgba(225, 255, 242, 0.99)","#ffffff"],light:["#ffffff","#f9fffb","#effff8","#e3fff4","#d8fef0","#ccfcec","#c0fae8","#b3f8e3","#a5f6de","#95f3d9","#2fa28a","#005245","#000503"],lightA:["rgba(255, 255, 255, 0.01)","rgba(55, 255, 122, 0.03)","rgba(26, 255, 155, 0.07)","rgba(0, 255, 155, 0.11)","rgba(11, 249, 161, 0.16)","rgba(0, 240, 160, 0.2)","rgba(3, 235, 163, 0.25)","rgba(2, 232, 162, 0.3)","rgba(5, 230, 163, 0.36)","rgba(3, 226, 165, 0.42)","rgba(1, 142, 112, 0.82)","#005245","#000503"]},geekblue:{dark:["#000216","#001343","#00225c","#003176","#00418f","#0052a8","#0264c1","#1877d5","#288aea","#369eff","#88bffb","#c5dffd","#ffffff"],darkA:["rgba(0, 22, 244, 0.09)","rgba(0, 70, 248, 0.27)","rgba(0, 92, 249, 0.37)","rgba(0, 104, 251, 0.47)","rgba(0, 116, 255, 0.56)","rgba(0, 124, 255, 0.66)","rgba(3, 132, 254, 0.76)","rgba(29, 142, 254, 0.84)","rgba(43, 150, 254, 0.92)","#369eff","rgba(137, 193, 254, 0.99)","#c5dffd","#ffffff"],light:["#ffffff","#f8faff","#eaf3ff","#daeaff","#c7e0ff","#b1d5ff","#9ac9ff","#7fbcff","#60aeff","#369eff","#0264c1","#003176","#000216"],lightA:["rgba(255, 255, 255, 0.01)","rgba(22, 88, 255, 0.03)","rgba(22, 122, 255, 0.09)","rgba(8, 115, 255, 0.15)","rgba(0, 114, 255, 0.22)","rgba(3, 120, 255, 0.31)","rgba(3, 120, 255, 0.4)","rgba(4, 124, 255, 0.51)","rgba(3, 126, 255, 0.63)","rgba(1, 132, 255, 0.79)","#0264c1","#003176","#000216"]},gold:{dark:["#070300","#271a00","#3f2c00","#593f00","#745400","#906a00","#ac8100","#c99811","#e4b12f","#ffcb47","#ffdd90","#ffeecd","#ffffff"],darkA:["rgba(233, 100, 0, 0.03)","rgba(244, 163, 0, 0.16)","rgba(252, 176, 0, 0.25)","rgba(254, 180, 0, 0.35)","rgba(252, 183, 0, 0.46)","rgba(253, 186, 0, 0.57)","rgba(253, 190, 0, 0.68)","rgba(254, 192, 22, 0.79)","rgba(253, 197, 52, 0.9)","#ffcb47","#ffdd90","#ffeecd","#ffffff"],light:["#ffffff","#fffcff","#fff8f2","#fff4e2","#ffefd0","#ffe9bb","#ffe3a4","#ffdb8b","#ffd46d","#ffcb47","#ac8100","#593f00","#070300"],lightA:["rgba(255, 255, 255, 0.01)","rgba(255, 105, 255, 0.02)","rgba(255, 138, 38, 0.06)","rgba(255, 163, 13, 0.12)","rgba(255, 171, 8, 0.19)","rgba(255, 174, 3, 0.27)","rgba(255, 177, 2, 0.36)","rgba(255, 177, 3, 0.46)","rgba(255, 181, 3, 0.58)","rgba(255, 184, 3, 0.73)","#ac8100","#593f00","#070300"]},gray:{dark:["#000000","#111111","#222222","#2d2d2d","#333333","#444444","#555555","#666666","#6f6f6f","#777777","#aaaaaa","#dddddd","#ffffff"],darkA:["rgba(255, 255, 255, 0.02)","rgba(255, 255, 255, 0.06)","rgba(255, 255, 255, 0.10)","rgba(255, 255, 255, 0.16)","rgba(255, 255, 255, 0.24)","rgba(255, 255, 255, 0.28)","rgba(255, 255, 255, 0.32)","rgba(255, 255, 255, 0.38)","rgba(255, 255, 255, 0.44)","rgba(255, 255, 255, 0.5)","rgba(255, 255, 255, 0.66)","rgba(255, 255, 255, 0.84)","#ffffff"],light:["#ffffff","#f8f8f8","#eeeeee","#e3e3e3","#dddddd","#cccccc","#bbbbbb","#aaaaaa","#999999","#888888","#666666","#333333","#080808"],lightA:["rgba(0, 0, 0, 0.015)","rgba(0, 0, 0, 0.03)","rgba(0, 0, 0, 0.06)","rgba(0, 0, 0, 0.12)","rgba(0, 0, 0, 0.18)","rgba(0, 0, 0, 0.24)","rgba(0, 0, 0, 0.32)","rgba(0, 0, 0, 0.38)","rgba(0, 0, 0, 0.44)","rgba(0, 0, 0, 0.5)","rgba(0, 0, 0, 0.68)","rgba(0, 0, 0, 0.84)","rgba(0, 0, 0, 0.98)"]},green:{dark:["#000503","#001d12","#002d1d","#003f28","#005232","#00653c","#007944","#1b8d4d","#3ba05a","#55b467","#96cd92","#cde6c3","#ffffff"],darkA:["rgba(0, 250, 150, 0.02)","rgba(0, 242, 150, 0.12)","rgba(0, 250, 161, 0.18)","rgba(0, 252, 160, 0.25)","rgba(0, 248, 152, 0.33)","rgba(0, 252, 150, 0.4)","rgba(0, 252, 142, 0.48)","rgba(48, 252, 137, 0.56)","rgba(94, 254, 143, 0.63)","rgba(120, 254, 145, 0.71)","rgba(185, 253, 180, 0.81)","rgba(225, 253, 214, 0.91)","#ffffff"],light:["#ffffff","#f4fdeb","#e7f8dd","#d8f2ce","#c7eabd","#b4e1ac","#a0d79b","#89cc8a","#71c179","#55b467","#007944","#003f28","#000503"],lightA:["rgba(255, 255, 255, 0.01)","rgba(117, 230, 5, 0.08)","rgba(84, 205, 12, 0.14)","rgba(60, 190, 10, 0.2)","rgba(40, 174, 1, 0.26)","rgba(28, 164, 3, 0.33)","rgba(18, 155, 5, 0.4)","rgba(4, 146, 6, 0.47)","rgba(1, 144, 16, 0.56)","rgba(1, 143, 28, 0.67)","#007944","#003f28","#000503"]},lime:{dark:["#020400","#142100","#253700","#374f00","#4b6800","#608200","#769d00","#8fb81b","#a9d42f","#c4f042","#daf685","#eefbbe","#ffffff"],darkA:["rgba(100, 200, 0, 0.02)","rgba(154, 254, 0, 0.13)","rgba(168, 250, 0, 0.22)","rgba(177, 255, 0, 0.31)","rgba(183, 254, 0, 0.41)","rgba(188, 255, 0, 0.51)","rgba(190, 253, 0, 0.62)","rgba(196, 252, 37, 0.73)","rgba(204, 255, 57, 0.83)","rgba(209, 255, 70, 0.94)","rgba(225, 254, 137, 0.97)","rgba(240, 254, 192, 0.99)","#ffffff"],light:["#ffffff","#feffeb","#f9ffd8","#f2ffc1","#ebfdaf","#e4fc9b","#ddf987","#d5f773","#cdf35c","#c4f042","#769d00","#374f00","#020400"],lightA:["rgba(255, 255, 255, 0.01)","rgba(242, 255, 5, 0.08)","rgba(218, 255, 11, 0.16)","rgba(203, 255, 7, 0.25)","rgba(193, 249, 5, 0.32)","rgba(187, 247, 5, 0.4)","rgba(183, 242, 0, 0.47)","rgba(179, 240, 0, 0.55)","rgba(177, 236, 0, 0.64)","rgba(175, 235, 0, 0.74)","#769d00","#374f00","#020400"]},magenta:{dark:["#100002","#350011","#4b001e","#63002d","#79093f","#8e1752","#a32466","#b8317b","#ce3e91","#e34ba9","#f38bcb","#fec5e8","#ffffff"],darkA:["rgba(229, 0, 29, 0.07)","rgba(252, 0, 81, 0.21)","rgba(250, 0, 100, 0.3)","rgba(254, 0, 115, 0.39)","rgba(252, 19, 131, 0.48)","rgba(254, 41, 146, 0.56)","rgba(255, 56, 159, 0.64)","rgba(252, 67, 168, 0.73)","rgba(254, 77, 179, 0.81)","rgba(255, 84, 190, 0.89)","rgba(253, 145, 211, 0.96)","#fec5e8","#ffffff"],light:["#ffffff","#fff7f9","#ffeaf4","#ffdaee","#ffc7e7","#ffb2df","#ff99d6","#f980ca","#ef67ba","#e34ba9","#a32466","#63002d","#100002"],lightA:["rgba(255, 255, 255, 0.01)","rgba(255, 55, 105, 0.04)","rgba(255, 22, 133, 0.09)","rgba(255, 8, 142, 0.15)","rgba(255, 0, 146, 0.22)","rgba(255, 7, 152, 0.31)","rgba(255, 0, 153, 0.4)","rgba(243, 1, 149, 0.5)","rgba(228, 2, 140, 0.6)","rgba(216, 1, 134, 0.71)","rgba(148, 0, 77, 0.86)","#63002d","#100002"]},orange:{dark:["#080300","#271400","#3d2000","#552d00","#6f3a00","#8a4700","#a75400","#c66100","#e37013","#ff802b","#ffae87","#ffd7c8","#ffffff"],darkA:["rgba(200, 75, 0, 0.04)","rgba(244, 125, 0, 0.16)","rgba(254, 133, 0, 0.24)","rgba(250, 132, 0, 0.34)","rgba(252, 132, 0, 0.44)","rgba(251, 129, 0, 0.55)","rgba(253, 127, 0, 0.66)","rgba(254, 124, 0, 0.78)","rgba(255, 126, 21, 0.89)","#ff802b","#ffae87","#ffd7c8","#ffffff"],light:["#ffffff","#fff9f8","#fff0ec","#ffe6dd","#ffd9ca","#ffcbb5","#ffbb9c","#ffaa7f","#ff975c","#ff802b","#a75400","#552d00","#080300"],lightA:["rgba(255, 255, 255, 0.01)","rgba(255, 55, 22, 0.03)","rgba(255, 67, 17, 0.08)","rgba(255, 76, 12, 0.14)","rgba(255, 74, 3, 0.21)","rgba(255, 76, 0, 0.29)","rgba(255, 81, 1, 0.39)","rgba(255, 88, 4, 0.51)","rgba(255, 93, 0, 0.64)","rgba(255, 102, 0, 0.83)","#a75400","#552d00","#080300"]},purple:{dark:["#0d000b","#2e002a","#42003e","#560053","#670e66","#781e78","#892b8a","#9a399e","#ab46b2","#bd54c6","#d590da","#edc7ee","#ffffff"],darkA:["rgba(217, 0, 183, 0.06)","rgba(242, 0, 221, 0.19)","rgba(254, 0, 238, 0.26)","rgba(253, 0, 244, 0.34)","rgba(251, 34, 249, 0.41)","rgba(255, 64, 255, 0.47)","rgba(249, 78, 251, 0.55)","rgba(248, 92, 255, 0.62)","rgba(244, 100, 254, 0.7)","rgba(242, 108, 254, 0.78)","rgba(248, 167, 253, 0.86)","rgba(252, 212, 253, 0.94)","#ffffff"],light:["#ffffff","#fff6fb","#ffe7fd","#fdd6fe","#f6c4f8","#eeb1f1","#e49ce8","#d886de","#cb6ed2","#bd54c6","#892b8a","#560053","#0d000b"],lightA:["rgba(255, 255, 255, 0.01)","rgba(255, 30, 155, 0.04)","rgba(255, 15, 235, 0.1)","rgba(243, 14, 249, 0.17)","rgba(218, 9, 226, 0.24)","rgba(200, 3, 210, 0.31)","rgba(186, 1, 196, 0.39)","rgba(174, 3, 186, 0.48)","rgba(164, 1, 176, 0.57)","rgba(156, 0, 170, 0.67)","rgba(113, 0, 114, 0.83)","#560053","#0d000b"]},red:{dark:["#0f0006","#34001d","#4b002b","#640039","#7a0c46","#911b53","#a72860","#bf356e","#d7427b","#f04f88","#ff8eab","#ffc9d3","#ffffff"],darkA:["rgba(250, 0, 100, 0.06)","rgba(248, 0, 138, 0.21)","rgba(250, 0, 143, 0.3)","rgba(250, 0, 142, 0.4)","rgba(254, 25, 146, 0.48)","rgba(254, 47, 146, 0.57)","rgba(253, 61, 145, 0.66)","rgba(255, 71, 147, 0.75)","rgba(253, 78, 145, 0.85)","rgba(255, 84, 145, 0.94)","#ff8eab","#ffc9d3","#ffffff"],light:["#ffffff","#fff7f7","#ffeced","#ffdde2","#ffccd5","#ffb8c7","#ffa2b8","#ff88a8","#fe6998","#f04f88","#a72860","#640039","#0f0006"],lightA:["rgba(255, 255, 255, 0.01)","rgba(255, 55, 55, 0.04)","rgba(255, 17, 30, 0.08)","rgba(255, 12, 48, 0.14)","rgba(255, 0, 45, 0.2)","rgba(255, 1, 55, 0.28)","rgba(255, 4, 63, 0.37)","rgba(255, 2, 70, 0.47)","rgba(253, 1, 80, 0.59)","rgba(233, 0, 83, 0.69)","rgba(151, 2, 68, 0.85)","#640039","#0f0006"]},volcano:{dark:["#0c0100","#2f0a00","#451200","#5d1900","#762000","#8e2a07","#a53716","#bc4424","#d45132","#ec5e41","#ff9480","#ffcbc3","#ffffff"],darkA:["rgba(240, 20, 0, 0.05)","rgba(247, 53, 0, 0.19)","rgba(246, 64, 0, 0.28)","rgba(251, 68, 0, 0.37)","rgba(251, 68, 0, 0.47)","rgba(254, 75, 12, 0.56)","rgba(254, 85, 34, 0.65)","rgba(254, 92, 49, 0.74)","rgba(255, 98, 60, 0.83)","rgba(254, 101, 70, 0.93)","#ff9480","#ffcbc3","#ffffff"],light:["#ffffff","#fff7f6","#ffece9","#ffded9","#ffcec5","#ffbbaf","#ffa695","#ff8e78","#fb745a","#ec5e41","#a53716","#5d1900","#0c0100"],lightA:["rgba(255, 255, 255, 0.01)","rgba(255, 55, 30, 0.04)","rgba(255, 44, 11, 0.09)","rgba(255, 35, 2, 0.15)","rgba(255, 42, 3, 0.23)","rgba(255, 43, 5, 0.32)","rgba(255, 43, 3, 0.42)","rgba(255, 42, 0, 0.53)","rgba(249, 41, 1, 0.65)","rgba(230, 40, 2, 0.75)","rgba(157, 38, 2, 0.92)","#5d1900","#0c0100"]},yellow:{dark:["#050400","#251d00","#3e3300","#584a00","#736300","#8e7d00","#ab9800","#c7b426","#e3d142","#ffef5c","#fff594","#fffad3","#ffffff"],darkA:["rgba(250, 200, 0, 0.02)","rgba(247, 193, 0, 0.15)","rgba(248, 204, 0, 0.25)","rgba(251, 211, 0, 0.35)","rgba(250, 215, 0, 0.46)","rgba(254, 223, 0, 0.56)","rgba(255, 227, 0, 0.67)","rgba(255, 231, 49, 0.78)","rgba(255, 235, 74, 0.89)","#ffef5c","#fff594","#fffad3","#ffffff"],light:["#ffffff","#fffeff","#fffcff","#fffbf1","#fffada","#fff9c2","#fff7aa","#fff592","#fff279","#ffef5c","#ab9800","#584a00","#050400"],lightA:["rgba(255, 255, 255, 0.01)","rgba(255, 155, 255, 0.01)","rgba(255, 105, 255, 0.02)","rgba(255, 188, 22, 0.06)","rgba(255, 222, 8, 0.15)","rgba(255, 230, 1, 0.24)","rgba(255, 231, 5, 0.34)","rgba(255, 232, 2, 0.43)","rgba(255, 230, 2, 0.53)","rgba(255, 230, 0, 0.64)","#ab9800","#584a00","#050400"]}},lV=function(){var A=UD(GD().mark((function A(e){var t;return GD().wrap((function(A){for(;;)switch(A.prev=A.next){case 0:return A.prev=0,A.next=3,navigator.clipboard.writeText(e);case 3:A.next=14;break;case 5:A.prev=5,A.t0=A.catch(0),(t=document.createElement("textarea")).value=e,document.body.append(t),t.focus(),t.select(),document.execCommand("copy"),t.remove();case 14:case"end":return A.stop()}}),A,null,[[0,5]])})));return function(e){return A.apply(this,arguments)}}(),gV=["content","placement","size","icon","glass","onClick"],cV=J.memo((function(A){var e=A.content,t=A.placement,n=void 0===t?"right":t,o=A.size,r=void 0===o?"site":o,i=A.icon,a=A.glass,s=void 0===a||a,l=A.onClick,g=Mc(A,gV),c=function(){var A=WQ(J.useState(!1),2),e=A[0],t=A[1];J.useEffect((function(){if(e){var A=setTimeout((function(){t(!1)}),2e3);return function(){clearTimeout(A)}}}),[e]);var n=J.useCallback((function(){return t(!0)}),[]);return J.useMemo((function(){return{copied:e,setCopied:n}}),[e])}(),u=c.copied,B=c.setCopied,Q=i||Tc;return AA.jsx(mY,kc(kc({glass:s},g),{},{active:u,icon:u?Pc:Q,onClick:function(){var A=UD(GD().mark((function A(t){return GD().wrap((function(A){for(;;)switch(A.prev=A.next){case 0:return A.next=2,lV(e);case 2:B(),null==l||l(t);case 4:case"end":return A.stop()}}),A)})));return function(e){return A.apply(this,arguments)}}(),placement:n,size:r,title:"Copy"}))})),uV=["icon","children","size"],BV=oY((function(A){var e=A.cx,t=A.css,n=A.token;return{small:t(VX||(VX=Bu(["\n padding-block: 2px;\n padding-inline: 6px;\n line-height: 1;\n "]))),tag:e(t(ZX||(ZX=Bu(["\n user-select: none;\n color: "," !important;\n background: ",";\n border: ","px;\n\n &:hover {\n color: ",";\n background: ",";\n }\n "])),n.colorTextSecondary,n.colorFillSecondary,n.borderRadius,n.colorText,n.colorFill))}})),QV=J.memo((function(A){var e=A.icon,t=A.children,n=A.size,o=void 0===n?"default":n,r=Mc(A,uV),i=BV(),a=i.styles,s=i.cx;return AA.jsx(dK,kc(kc({bordered:!1,className:s(a.tag,"small"===o&&a.small)},r),{},{children:AA.jsxs(AQ,{align:"center",gap:4,horizontal:!0,children:[e,t]})}))})),EV=["allowFullscreen","children","title","className","wrapClassName","width","onCancel","open","destroyOnClose","paddings","maxHeight","footer","styles"],CV=["body"],dV=oY((function(A,e){var t=A.cx,n=A.css,o=A.token,r=A.prefixCls,i=e.maxHeight;return{content:t(i&&n(AV||(AV=Bu(["\n .","-modal-body {\n overflow: auto;\n max-height: ",";\n }\n "])),r,i),n(eV||(eV=Bu(["\n .","-modal-footer {\n margin: 0;\n padding: 16px;\n }\n .","-modal-header {\n display: flex;\n gap: 4px;\n align-items: center;\n justify-content: center;\n\n height: 56px;\n margin-block-end: 0;\n padding: 16px;\n }\n .","-modal-content {\n overflow: hidden;\n padding: 0;\n border: 1px solid ",";\n border-radius: ","px;\n }\n "])),r,r,r,o.colorSplit,o.borderRadiusLG)),drawerContent:n(tV||(tV=Bu(["\n .","-drawer-close {\n padding: 0;\n }\n .","-drawer-wrapper-body {\n background: linear-gradient(to bottom, ",", ",");\n }\n .","-drawer-header {\n padding: 8px;\n }\n\n .","-drawer-footer {\n display: flex;\n align-items: center;\n justify-content: flex-end;\n\n padding: 16px;\n\n border: none;\n }\n "])),r,r,o.colorBgContainer,o.colorBgLayout,r,r),wrap:n(nV||(nV=Bu(["\n overflow: hidden auto;\n backdrop-filter: blur(2px);\n "])))}})),IV=J.memo((function(A){var e,t,n=A.allowFullscreen,o=A.children,r=A.title,i=void 0===r?" ":r,a=A.className,s=A.wrapClassName,l=A.width,g=void 0===l?700:l,c=A.onCancel,u=A.open,B=A.destroyOnClose,Q=A.paddings,E=A.maxHeight,C=void 0===E?"75dvh":E,d=A.footer,I=A.styles,p=void 0===I?{}:I,f=Mc(A,EV),h=WQ(J.useState(!1),2),w=h[0],D=h[1],m=SK().mobile,y=dV({maxHeight:C?"calc(".concat(YT(C)?"".concat(C,"px"):C," - ").concat(56+(d?68:0),"px)"):void 0}),b=y.styles,v=y.cx,k=y.theme,M=p.body,x=Mc(p,CV);return m?AA.jsx(qG,{className:v(b.drawerContent,a),closeIcon:AA.jsx(mY,{icon:gu}),destroyOnClose:B,extra:n&&AA.jsx(mY,{icon:w?Au:Vc,onClick:function(){return D(!w)}}),footer:d,height:w?"calc(100% - env(safe-area-inset-top))":C||"75vh",maskClassName:v(b.wrap,s),onClose:c,open:u,placement:"bottom",styles:kc({body:kc({paddingBlock:"16px ".concat(d?0:"16px"),paddingInline:null!==(e=null==Q?void 0:Q.desktop)&&void 0!==e?e:16},M)},x),title:i,children:o}):AA.jsx(tw,{theme:{token:{colorBgElevated:ZJ(.005,k.colorBgContainer)}},children:AA.jsx(VO,kc(kc({className:v(b.content,a),closable:!0,closeIcon:AA.jsx(EY,{icon:gu,size:{fontSize:20}}),destroyOnClose:B,footer:d,maskClosable:!0,onCancel:c,open:u,styles:kc({body:kc({paddingBlock:"0 ".concat(null===d?"16px":0),paddingInline:null!==(t=null==Q?void 0:Q.desktop)&&void 0!==t?t:16},M)},x),title:i,width:g,wrapClassName:v(b.wrap,s)},f),{},{children:o}))})})),pV=oY((function(A){var e=A.css,t=A.token;return{body:e(oV||(oV=Bu(["\n overflow: hidden auto;\n padding: 16px;\n "]))),container:e(rV||(rV=Bu(["\n position: relative;\n overflow: hidden;\n "]))),footer:e(iV||(iV=Bu(["\n padding-block: 8px;\n padding-inline: 16px;\n border-block-start: 1px solid ",";\n "])),t.colorBorderSecondary),header:e(aV||(aV=Bu(["\n padding-block: 8px;\n padding-inline: 16px;\n font-weight: 500;\n border-block-end: 1px solid ",";\n "])),t.colorBorderSecondary)}})),fV=["className"],hV=J.memo((function(A){var e=A.className,t=Mc(A,fV),n=pV(),o=n.cx,r=n.styles;return AA.jsx(AQ,kc({className:o(r.body,e),flex:1},t))})),wV=["className"],DV=J.memo((function(A){var e=A.className,t=Mc(A,wV),n=pV(),o=n.cx,r=n.styles;return AA.jsx(AQ,kc({className:o(r.container,e)},t))})),mV=["className"],yV=J.memo((function(A){var e=A.className,t=Mc(A,mV),n=pV(),o=n.cx,r=n.styles;return AA.jsx(AQ,kc({align:"center",className:o(r.footer,e),flex:"none",gap:8,horizontal:!0,justify:"flex-start"},t))})),bV=["pin","setPin","className","setExpand","title","position"],vV=J.memo((function(A){var e=A.pin,t=A.setPin,n=A.className,o=A.setExpand,r=A.title,i=A.position,a=void 0===i?"left":i,s=Mc(A,bV),l=pV(),g=l.cx,c=l.styles,u=WQ(KK(!1,{onChange:t,value:e}),2),B=u[0],Q=u[1],E=AA.jsx(mY,{icon:tu,onClick:function(){return null==o?void 0:o(!1)},size:{blockSize:24,fontSize:14}}),C=AA.jsx(mY,{active:e,icon:e?iu:ru,onClick:function(){return Q(!B)},size:{blockSize:24,fontSize:14}});return AA.jsxs(AQ,kc(kc({align:"center",className:g(c.header,n),flex:"none",gap:8,horizontal:!0,justify:"space-between"},s),{},{children:["left"===a?E:C,r,"left"===a?C:E]}))})),kV=function A(e,t){if(e===t)return!0;if(e&&t&&"object"==typeof e&&"object"==typeof t){if(e.constructor!==t.constructor)return!1;var n,o,r;if(Array.isArray(e)){if((n=e.length)!=t.length)return!1;for(o=n;0!=o--;)if(!A(e[o],t[o]))return!1;return!0}if(e.constructor===RegExp)return e.source===t.source&&e.flags===t.flags;if(e.valueOf!==Object.prototype.valueOf)return e.valueOf()===t.valueOf();if(e.toString!==Object.prototype.toString)return e.toString()===t.toString();if((n=(r=Object.keys(e)).length)!==Object.keys(t).length)return!1;for(o=n;0!=o--;)if(!Object.prototype.hasOwnProperty.call(t,r[o]))return!1;for(o=n;0!=o--;){var i=r[o];if(!A(e[i],t[i]))return!1}return!0}return e!=e&&t!=t};const MV=o(kV);function xV(A,e){var t="undefined"!=typeof Symbol&&A[Symbol.iterator]||A["@@iterator"];if(!t){if(Array.isArray(A)||(t=$Q(A))||e){t&&(A=t);var n=0,o=function(){};return{s:o,n:function(){return n>=A.length?{done:!0}:{done:!1,value:A[n++]}},e:function(A){throw A},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var r,i=!0,a=!1;return{s:function(){t=t.call(A)},n:function(){var A=t.next();return i=A.done,A},e:function(A){a=!0,r=A},f:function(){try{i||null==t.return||t.return()}finally{if(a)throw r}}}}var SV,FV,NV,RV,LV,PV,HV,GV,OV,UV,KV,YV,TV,JV,jV,qV,$V,zV,WV,_V,XV,VV,ZV=J.memo((function(A){var e=A.url,t=J.useRef(!1);return J.useEffect((function(){if(!t.current){t.current=!0;var A=function(A){var e=document.createElement("link");return e.rel="stylesheet",e.href=A,e}(e);document.head.append(A)}}),[]),null})),AZ=function(A){var e=A.prefixCls,t=A.icon,n=A.title,o=A.items,r=void 0===o?[]:o,i=A.style,a=A.className;return j.createElement("div",{className:ud("".concat(e,"-column"),a),style:i},(n||t)&&j.createElement("h2",null,t&&j.createElement("span",{className:"".concat(e,"-column-icon")},t),n),r.map((function(A,t){var n=A.LinkComponent||"a";return j.createElement("div",{className:ud("".concat(e,"-item"),A.className),style:A.style,key:t},j.createElement(n,{href:A.url,to:"string"!=typeof n?A.url:void 0,target:A.openExternal?"_blank":void 0,rel:A.openExternal?"noopener noreferrer":void 0},A.icon&&j.createElement("span",{className:"".concat(e,"-item-icon")},A.icon),A.title),A.description&&j.createElement(j.Fragment,null,j.createElement("span",{className:"".concat(e,"-item-separator")},"-"),j.createElement("span",{className:"".concat(e,"-item-description")},A.description)))})))},eZ=["prefixCls","className","style","bottom","columns","maxColumnsPerRow","backgroundColor","columnLayout","theme"],tZ=function(A){var e=A.prefixCls,t=void 0===e?"rc-footer":e,n=A.className,o=A.style,r=A.bottom,i=A.columns,a=A.maxColumnsPerRow,s=A.backgroundColor,l=A.columnLayout,g=A.theme,c=void 0===g?"dark":g,u=Mc(A,eZ),B=ud("".concat(t),n,bc({},"".concat(t,"-").concat(c),!!c)),Q="number"==typeof a&&a>0;return j.createElement("footer",kc(kc({},u),{},{className:B,style:kc(kc({},o),{},{backgroundColor:s})}),j.createElement("section",{className:"".concat(t,"-container")},i&&i.length>0&&j.createElement("section",{className:"".concat(t,"-columns"),style:{justifyContent:l,flexWrap:Q?"wrap":void 0}},i.map((function(A,e){var n=A.title,o=A.icon,r=A.style,i=A.className,s=A.items,l=void 0===s?[]:s,g=kc({},r);return Q&&(g.flex="0 0 ".concat(100/(a+1)+.1,"%")),j.createElement(AZ,{key:e,prefixCls:t,title:n,icon:o,items:l,style:g,className:i})})))),r&&j.createElement("section",{className:"".concat(t,"-bottom")},j.createElement("div",{className:"".concat(t,"-bottom-container")},r)))},nZ=oY((function(A,e){var t=A.css,n=A.responsive,o=A.token,r=e.isEmpty,i=e.contentMaxWidth,a="rc-footer";return{container:t(SV||(SV=Bu(["\n grid-area: footer;\n align-self: stretch;\n\n color: ",";\n text-align: center;\n\n border-block-start: 1px solid ",";\n\n "," {\n flex-direction: column;\n border: none;\n }\n "])),o.colorTextDescription,o.colorSplit,n.mobile),footer:t(FV||(FV=Bu(["\n font-size: 14px;\n line-height: 1.5;\n color: ",";\n background-color: ",";\n\n &."," {\n a {\n color: ",";\n text-decoration: none;\n transition: all 0.3s;\n\n &:hover {\n color: ",";\n }\n }\n }\n\n ."," {\n &-container {\n width: 100%;\n max-width: ","px;\n margin: auto;\n padding: ",";\n }\n\n &-columns {\n display: flex;\n justify-content: space-around;\n }\n\n &-column {\n text-align: start;\n\n h2 {\n position: relative;\n\n margin-block: 0;\n margin-inline: auto;\n\n font-size: 16px;\n font-weight: 500;\n color: ",";\n }\n\n &-icon {\n position: relative;\n inset-block-start: -1px;\n\n display: inline-block;\n\n width: 22px;\n margin-inline-end: 0.5em;\n\n text-align: center;\n vertical-align: middle;\n\n > span,\n > svg,\n img {\n display: block;\n width: 100%;\n }\n }\n }\n\n &-item {\n margin-block: 12px;\n margin-inline: 0;\n\n &-icon {\n position: relative;\n inset-block-start: -1px;\n\n display: inline-block;\n\n width: 16px;\n margin-inline-end: 0.4em;\n\n text-align: center;\n vertical-align: middle;\n\n > span,\n > svg,\n img {\n display: block;\n width: 100%;\n }\n }\n\n &-separator {\n margin-block: 0;\n margin-inline: 0.3em;\n }\n }\n\n &-bottom {\n color: ",";\n\n &-container {\n width: 100%;\n max-width: ","px;\n margin-block: 0;\n margin-inline: auto;\n padding-block: 16px;\n padding-inline: 0;\n\n line-height: 32px;\n text-align: center;\n }\n }\n\n &-light {\n color: rgba(0, 0, 0, 85%);\n background-color: transparent;\n\n h2,\n a {\n color: rgba(0, 0, 0, 85%);\n }\n }\n\n &-light &-bottom-container {\n border-block-start-color: #e8e8e8;\n }\n\n &-light &-item-separator,\n &-light &-item-description {\n color: rgba(0, 0, 0, 45%);\n }\n }\n\n "," {\n ."," {\n &-container {\n padding-block: 40px;\n padding-inline: 0;\n }\n\n &-columns {\n display: block;\n }\n\n &-column {\n display: block;\n margin-block-end: 40px;\n text-align: center;\n\n &:last-child {\n margin-block-end: 0;\n }\n }\n }\n }\n "])),o.colorTextSecondary,o.colorBgLayout,a,o.colorTextTertiary,o.colorLinkHover,a,i,r?"0":"60px 0 20px",o.colorText,o.colorTextDescription,i,n.mobile,a)}})),oZ=J.memo((function(A){var e=A.columns,t=A.bottom,n=A.theme,o=A.contentMaxWidth,r=void 0===o?960:o,i=!e||0===(null==e?void 0:e.length),a=nZ({contentMaxWidth:r,isEmpty:i}).styles;return AA.jsx("section",{className:a.container,children:AA.jsx(tZ,{bottom:t,className:a.footer,columns:e,theme:n})})})),rZ=["className","children"],iZ=J.memo((function(A){var e=A.className,t=A.children,n=Mc(A,rZ);return AA.jsx(AQ,kc(kc({className:e,gap:8,justify:"flex-end"},n),{},{horizontal:!0,children:t}))})),aZ=["className","icon","title","children","extra","itemsType","variant","defaultActive"],sZ=oY((function(A){var e=A.css,t=A.cx,n=A.token,o=A.isDarkMode,r=A.responsive,i=A.prefixCls,a=e(NV||(NV=Bu(["\n background: transparent;\n border: none;\n border-radius: 0;\n\n .","-collapse-header {\n padding-block: 0 20px !important;\n padding-inline: 2px !important;\n background: transparent !important;\n border-radius: 0 !important;\n }\n\n .","-collapse-content {\n background: transparent;\n border-color: ",";\n }\n\n .","-collapse-content-box {\n padding-inline: 2px !important;\n background: transparent;\n border-radius: 0;\n }\n "])),i,i,n.colorFillSecondary,i),s=e(RV||(RV=Bu(["\n background: ",";\n border: none;\n border-radius: ","px;\n\n .","-collapse-content {\n border: none !important;\n }\n "])),n.colorFillQuaternary,n.borderRadiusLG,i),l=e(LV||(LV=Bu(["\n background: transparent;\n border: 1px solid ",";\n .","-collapse-header {\n background: transparent !important;\n }\n\n .","-collapse-content-box {\n background: transparent;\n }\n "])),n.colorBorderSecondary,i,i);return{blockStyle:s,defaultStyle:e(PV||(PV=Bu(["\n background: ",";\n border: 1px solid ",";\n border-radius: ","px;\n "])),n.colorFillQuaternary,n.colorBorderSecondary,n.borderRadiusLG),flatGroup:e(HV||(HV=Bu(["\n overflow: hidden;\n padding-inline: 16px;\n "]))),ghostStyle:l,group:t(o&&e(GV||(GV=Bu(["\n .","-collapse-content {\n background: transparent;\n border-color: ",";\n }\n\n .","-collapse-header {\n background: ",";\n }\n "])),i,n.colorBorderSecondary,i,n.colorFillTertiary),e(OV||(OV=Bu(["\n overflow: hidden;\n flex: none;\n\n .","-collapse-item {\n border: none;\n }\n\n .","-collapse-header {\n align-items: center !important;\n border-radius: 0 !important;\n }\n\n .","-collapse-content-box {\n padding-block: 0 !important;\n }\n\n .","-form-item-label {\n display: flex;\n flex-direction: column;\n justify-content: center;\n }\n "])),i,i,i,i)),icon:e(UV||(UV=Bu(["\n transition: all 100ms ",";\n "])),n.motionEaseOut),mobileFlatGroup:e(KV||(KV=Bu(["\n border-radius: ","px;\n "])),n.borderRadiusLG),mobileGroupBody:e(YV||(YV=Bu(["\n padding-block: 0;\n padding-inline: 16px;\n background: ",";\n "])),n.colorBgContainer),mobileGroupHeader:e(TV||(TV=Bu(["\n padding: 16px;\n background: ",";\n "])),n.colorBgLayout),pureStyle:a,pureTitle:e(JV||(JV=Bu(["\n font-size: 18px;\n font-weight: 700;\n line-height: 24px;\n "]))),title:e(jV||(jV=Bu(["\n align-items: center;\n font-size: 16px;\n font-weight: 600;\n\n .anticon {\n color: ",";\n }\n\n "," {\n font-size: 14px;\n font-weight: 400;\n opacity: 0.5;\n }\n "])),n.colorPrimary,r.mobile)}})),lZ=J.memo((function(A){var e=A.className,t=A.icon,n=A.title,o=A.children,r=A.extra,i=A.itemsType,a=A.variant,s=void 0===a?"default":a,l=A.defaultActive,g=void 0===l||l,c=Mc(A,aZ),u=SK().mobile,B=sZ(s),Q=B.cx,E=B.styles,C=Q("default"===s&&E.defaultStyle,"block"===s&&E.blockStyle,"ghost"===s&&E.ghostStyle,"pure"===s&&E.pureStyle),d=AA.jsxs(AQ,{className:Q(E.title,"pure"===s&&E.pureTitle),gap:8,horizontal:!0,children:[t&&AA.jsx(EY,{icon:t}),n]});return"flat"===i?u?AA.jsx(AQ,{className:Q(E.mobileFlatGroup,E.mobileGroupBody,e),children:o}):AA.jsx(AQ,{className:Q(E.flatGroup,C,e),children:o}):u?AA.jsxs(AQ,{className:e,children:[AA.jsxs(AQ,{className:E.mobileGroupHeader,horizontal:!0,justify:"space-between",children:[d,r]}),AA.jsx("div",{className:E.mobileGroupBody,children:o})]}):AA.jsx(aH,kc({className:Q(E.group,C,e),defaultActiveKey:g?[1]:void 0,expandIcon:function(A){var e=A.isActive;return"pure"===s?null:AA.jsx(EY,{className:E.icon,icon:Hc,size:{fontSize:16},style:e?{}:{rotate:"-90deg"}})},items:[{children:o,extra:r,key:1,label:d}]},c),1)})),gZ=["style"],cZ=J.memo((function(A){var e=A.style,t=Mc(A,gZ);return AA.jsx(gH,kc({style:kc({margin:0,opacity:.66},e)},t))})),uZ=oY((function(A){var e=A.css,t=A.token,n=A.prefixCls;return{formTitle:e(qV||(qV=Bu(["\n position: relative;\n text-align: start;\n\n > div {\n font-weight: 500;\n line-height: 1;\n }\n\n > small {\n display: block;\n\n line-height: 1.2;\n color: ",";\n word-wrap: break-word;\n white-space: pre-wrap;\n }\n\n .","-tag {\n font-family: ",";\n }\n "])),t.colorTextDescription,n,t.fontFamilyCode)}})),BZ=J.memo((function(A){var e=A.className,t=A.tag,n=A.title,o=A.desc,r=A.avatar,i=uZ(),a=i.cx,s=i.styles,l=AA.jsxs(AQ,{className:a(s.formTitle,e),gap:6,children:[AA.jsxs(AQ,{align:"center",direction:"horizontal",gap:8,children:[n,t&&AA.jsx(QV,{children:t})]}),o&&AA.jsx("small",{children:o})]});return r?AA.jsxs(AQ,{align:"center",gap:8,horizontal:!0,children:[r,l]}):l})),QZ=["desc","tag","minWidth","avatar","className","label","children","divider"],EZ=OO.Item,CZ=oY((function(A,e){var t=A.css,n=A.responsive,o=A.prefixCls;return{item:t($V||($V=Bu(["\n &.","-form-item {\n padding-block: 16px;\n padding-inline: 0;\n\n .","-row {\n gap: 12px;\n justify-content: space-between;\n\n > div {\n flex: unset;\n flex-grow: unset;\n }\n }\n\n .","-form-item-required::before {\n align-self: flex-start;\n }\n\n "," {\n .","-row {\n flex-direction: column;\n align-items: stretch;\n\n > div {\n width: 100%;\n }\n }\n }\n\n "," {\n padding-block: 16px;\n padding-inline: 0;\n\n .","-row {\n flex-wrap: wrap;\n gap: 4px;\n }\n }\n }\n "])),o,o,o,n.md,o,n.mobile,o),itemMinWidth:t(zV||(zV=Bu(["\n .","-form-item-control {\n width: ",";\n }\n "," {\n .","-row {\n flex-direction: column;\n gap: 4px;\n }\n\n .","-form-item-control {\n flex: 1;\n width: 100%;\n }\n }\n "])),o,YT(e)?"".concat(e,"px"):e,n.mobile,o,o),itemNoDivider:t(WV||(WV=Bu(["\n &:not(:first-child) {\n padding-block-start: 0;\n }\n "])))}})),dZ=J.memo((function(A){var e=A.desc,t=A.tag,n=A.minWidth,o=A.avatar,r=A.className,i=A.label,a=A.children,s=A.divider,l=Mc(A,QZ),g=CZ(n),c=g.cx,u=g.styles;return AA.jsxs(AA.Fragment,{children:[s&&AA.jsx(cZ,{}),AA.jsx(EZ,kc(kc({className:c(u.item,Boolean(n)&&u.itemMinWidth,!s&&u.itemNoDivider,r),label:AA.jsx(BZ,{avatar:o,desc:e,tag:t,title:i})},l),{},{children:a}))]})})),IZ=oY((function(A){var e=A.css,t=A.token,n=A.prefixCls,o=A.responsive;return{form:e(_V||(_V=Bu(["\n position: relative;\n\n display: flex;\n flex-direction: column;\n gap: 16px;\n\n width: 100%;\n\n "," {\n gap: 0;\n }\n\n .","-form-item {\n margin: 0 !important;\n }\n\n .","-form-item .","-form-item-label > label {\n height: unset;\n }\n\n .","-row {\n position: relative;\n flex-wrap: nowrap;\n }\n\n .","-form-item-label {\n position: relative;\n flex: 1;\n max-width: 100%;\n }\n\n .","-form-item-row {\n align-items: center;\n "," {\n align-items: stretch;\n }\n }\n\n .","-form-item-control {\n position: relative;\n flex: 0;\n min-width: unset !important;\n }\n\n .","-collapse-item {\n overflow: hidden !important;\n border-radius: ","px !important;\n }\n "])),o.mobile,n,n,n,n,n,n,o.mobile,n,n,t.borderRadius),pure:e(XV||(XV=Bu(["\n gap: 64px;\n "])))}})),pZ=["className","itemMinWidth","footer","form","items","children","itemsType","variant"],fZ=J.forwardRef((function(A,e){var t=A.className,n=A.itemMinWidth,o=A.footer,r=A.form,i=A.items,a=void 0===i?[]:i,s=A.children,l=A.itemsType,g=void 0===l?"group":l,c=A.variant,u=void 0===c?"default":c,B=Mc(A,pZ),Q=IZ(),E=Q.cx,C=Q.styles,d=function(A,e){return AA.jsx(dZ,kc({divider:0!==e,minWidth:n},A),e)};return AA.jsxs(OO,kc(kc({className:E(C.form,"pure"===u&&C.pure,t),colon:!1,form:r,layout:"horizontal",ref:e},B),{},{children:[(null==a?void 0:a.length)>0?"group"===g?null==a?void 0:a.map((function(A,e){return t=A,n=e,AA.jsx(lZ,{defaultActive:null==t?void 0:t.defaultActive,extra:null==t?void 0:t.extra,icon:null==t?void 0:t.icon,title:t.title,variant:u,children:Array.isArray(t.children)?t.children.filter((function(A){return!A.hidden})).map((function(A,e){return d(A,e)})):t.children},n);var t,n})):AA.jsx(lZ,{itemsType:"flat",variant:u,children:null==a?void 0:a.filter((function(A){return!A.hidden})).map((function(A,e){return d(A,e)}))}):null,s,o&&AA.jsx(iZ,{children:o})]}))}));function hZ({id:A,host:e,repo:t,repoId:n,category:o,categoryId:r,mapping:i,term:a,strict:s,reactionsEnabled:l,emitMetadata:g,inputPosition:c,theme:u,lang:B,loading:Q}){const[E,C]=J.useState(!1);return J.useEffect((()=>{E||(function(A,e,t){let n=Promise.resolve();if(e&&e.length>0){document.getElementsByTagName("link");const A=document.querySelector("meta[property=csp-nonce]"),t=(null==A?void 0:A.nonce)||(null==A?void 0:A.getAttribute("nonce"));n=Promise.all(e.map((A=>{if((A=function(A){return"/dev/"+A}(A))in e$)return;e$[A]=!0;const e=A.endsWith(".css"),n=e?'[rel="stylesheet"]':"";if(document.querySelector(`link[href="${A}"]${n}`))return;const o=document.createElement("link");return o.rel=e?"stylesheet":"modulepreload",e||(o.as="script",o.crossOrigin=""),o.href=A,t&&o.setAttribute("nonce",t),document.head.appendChild(o),e?new Promise(((e,t)=>{o.addEventListener("load",e),o.addEventListener("error",(()=>t(new Error(`Unable to preload CSS for ${A}`))))})):void 0})))}n.then((()=>A())).catch((A=>{const e=new Event("vite:preloadError",{cancelable:!0});if(e.payload=A,window.dispatchEvent(e),!e.defaultPrevented)throw A}))}((()=>import("./giscus-BNK3dBIH.js")),[]),C(!0))}),[]),E?AA.jsx("giscus-widget",{id:A,host:e,repo:t,repoid:n,category:o,categoryid:r,mapping:i,term:a,strict:s,reactionsenabled:l,emitmetadata:g,inputposition:c,theme:u,lang:B,loading:Q}):null}fZ.Item=dZ,fZ.Group=lZ,fZ.useForm=OO.useForm;var wZ,DZ,mZ,yZ,bZ,vZ,kZ,MZ,xZ,SZ,FZ,NZ,RZ,LZ,PZ,HZ,GZ,OZ,UZ,KZ,YZ,TZ,JZ,jZ,qZ,$Z,zZ,WZ,_Z,XZ,VZ=function(A){return["zh_CN","zh_TW"].includes(A)?A.replace("_","-"):"zh_HK"===A?"zh-TW":A.split("_")[0]},ZZ=["style","className","reactionsEnabled","mapping","lang","inputPosition","id","loading","emitMetadata"],A0=J.memo((function(A){var e=A.style,t=A.className,n=A.reactionsEnabled,o=void 0===n?"1":n,r=A.mapping,i=void 0===r?"title":r,a=A.lang,s=void 0===a?"en_US":a,l=A.inputPosition,g=void 0===l?"top":l,c=A.id,u=void 0===c?"giscus":c,B=A.loading,Q=void 0===B?"lazy":B,E=A.emitMetadata,C=void 0===E?"0":E,d=Mc(A,ZZ),I=cY(),p=vK().isDarkMode,f=J.useMemo((function(){return btoa(function(A,e){var t=e?"dark":"light",n=sV.gray[t][11],o=sV.gray[t][10],r=sV.gray[t][7],i=e?sV.red[t][9]:sV.volcano[t][9],a=e?sV.gold[t][9]:sV.orange[t][9],s=e?sV.lime[t][9]:sV.green[t][9],l=e?sV.blue[t][9]:sV.geekblue[t][9],g=e?"https://github.com/images/modules/pulls/progressive-disclosure-line-dark.svg":"https://github.com/images/modules/pulls/progressive-disclosure-line.svg",c=e?"https://github.githubassets.com/images/mona-loading-dark.gif":"https://github.githubassets.com/images/mona-loading-default.gif";return iY(VV||(VV=Bu(["\n main {\n --color-prettylights-syntax-comment: ",";\n --color-prettylights-syntax-constant: ",";\n --color-prettylights-syntax-entity: ",";\n --color-prettylights-syntax-storage-modifier-import: ",";\n --color-prettylights-syntax-entity-tag: ",";\n --color-prettylights-syntax-keyword: ",";\n --color-prettylights-syntax-string: ",";\n --color-prettylights-syntax-variable: ",";\n --color-prettylights-syntax-brackethighlighter-unmatched: ",";\n --color-prettylights-syntax-invalid-illegal-text: ",";\n --color-prettylights-syntax-invalid-illegal-bg: ",";\n --color-prettylights-syntax-carriage-return-text: ",";\n --color-prettylights-syntax-carriage-return-bg: ",";\n --color-prettylights-syntax-string-regexp: ",";\n --color-prettylights-syntax-markup-list: ",";\n --color-prettylights-syntax-markup-heading: ",";\n --color-prettylights-syntax-markup-italic: ",";\n --color-prettylights-syntax-markup-bold: ",";\n --color-prettylights-syntax-markup-deleted-text: ",";\n --color-prettylights-syntax-markup-deleted-bg: ",";\n --color-prettylights-syntax-markup-inserted-text: ",";\n --color-prettylights-syntax-markup-inserted-bg: ",";\n --color-prettylights-syntax-markup-changed-text: ",";\n --color-prettylights-syntax-markup-changed-bg: ",";\n --color-prettylights-syntax-markup-ignored-text: ",";\n --color-prettylights-syntax-markup-ignored-bg: ",";\n --color-prettylights-syntax-meta-diff-range: ",";\n --color-prettylights-syntax-brackethighlighter-angle: ",";\n --color-prettylights-syntax-sublimelinter-gutter-mark: ",";\n --color-prettylights-syntax-constant-other-reference-link: ",";\n --color-btn-text: ",";\n --color-btn-bg: ",";\n --color-btn-border: ",";\n --color-btn-shadow: 0 0 transparent;\n --color-btn-inset-shadow: 0 0 transparent;\n --color-btn-hover-bg: ",";\n --color-btn-hover-border: ",";\n --color-btn-active-bg: ",";\n --color-btn-active-border: ",";\n --color-btn-selected-bg: ",";\n --color-btn-primary-text: ",";\n --color-btn-primary-bg: ",";\n --color-btn-primary-border: ",";\n --color-btn-primary-shadow: 0 0 transparent;\n --color-btn-primary-inset-shadow: 0 0 transparent;\n --color-btn-primary-hover-bg: ",";\n --color-btn-primary-hover-border: ",";\n --color-btn-primary-selected-bg: ",";\n --color-btn-primary-selected-shadow: 0 0 transparent;\n --color-btn-primary-disabled-text: ",";\n --color-btn-primary-disabled-bg: ",";\n --color-btn-primary-disabled-border: ",";\n --color-action-list-item-default-hover-bg: ",";\n --color-segmented-control-bg: ",";\n --color-segmented-control-button-bg: transparent;\n --color-segmented-control-button-selected-border: ",";\n --color-fg-default: ",";\n --color-fg-muted: ",";\n --color-fg-subtle: ",";\n --color-canvas-default: transparent;\n --color-canvas-overlay: ",";\n --color-canvas-inset: transparent;\n --color-canvas-subtle: ",";\n --color-border-default: ",";\n --color-border-muted: ",";\n --color-neutral-muted: ",";\n --color-neutral-subtle: ",";\n --color-accent-fg: ",";\n --color-accent-emphasis: ",";\n --color-accent-muted: ",";\n --color-accent-subtle: ",";\n --color-success-fg: ",";\n --color-attention-fg: ",";\n --color-attention-muted: ",";\n --color-attention-subtle: ",";\n --color-danger-fg: ",";\n --color-danger-muted: ",";\n --color-danger-subtle: ",";\n --color-primer-shadow-inset: 0 0 transparent;\n --color-scale-gray-7: ",";\n --color-scale-blue-8: ",";\n --color-social-reaction-bg-hover: ",";\n --color-social-reaction-bg-reacted-hover: ",";\n\n .markdown pre {\n color: ",";\n }\n\n .pagination-loader-container {\n background-image: url(",");\n }\n\n .gsc-pagination-button {\n background-color: var(--color-btn-bg);\n }\n\n .gsc-reactions-popover {\n width: 170px;\n\n > .m-2 {\n display: flex;\n flex-wrap: wrap;\n gap: 8px;\n }\n }\n\n .gsc-emoji-button.has-reacted {\n border-color: ",";\n border-radius: ","px;\n }\n\n .gsc-loading-image {\n background-image: url(",");\n }\n }\n "])),r,s,a,i,l,l,s,i,i,o,YJ(i,.4),o,YJ(i,.6),s,a,l,o,o,o,YJ(i,.2),s,YJ(s,.2),a,YJ(i,.2),o,YJ(l,.2),a,o,r,l,A.colorText,A.colorFillTertiary,A.colorBorderSecondary,A.colorFillSecondary,A.colorBorder,A.colorFillSecondary,A.colorBorder,A.colorFillSecondary,oj(A.colorPrimary),A.colorPrimary,A.colorPrimaryBorder,A.colorPrimaryHover,A.colorPrimaryBorderHover,A.colorPrimaryActive,YJ(oj(A.colorPrimary),.5),YJ(A.colorPrimary,.5),YJ(A.colorPrimaryBorder,.5),A.colorFillQuaternary,A.colorFillTertiary,A.colorBorder,A.colorText,A.colorTextSecondary,A.colorTextQuaternary,A.colorBgElevated,A.colorFillQuaternary,A.colorBorder,A.colorBorderSecondary,A.colorFillQuaternary,A.colorFillTertiary,A.colorInfo,A.colorInfoBorderHover,A.colorInfoBorder,A.colorInfoBg,A.colorSuccess,A.colorWarning,A.colorWarningBorder,A.colorWarningBg,A.colorError,A.colorErrorBorder,A.colorErrorBg,A.colorBgContainer,A.colorInfoBg,A.colorFillSecondary,A.colorInfoBgHover,n,g,A.colorInfoBorderHover,A.borderRadius,c)}(I,p).styles)}),[p,I]);return AA.jsx("div",{className:t,style:e,children:AA.jsx(hZ,kc({emitMetadata:C,id:u,inputPosition:g,lang:VZ(s),loading:Q,mapping:i,reactionsEnabled:o,theme:"data:text/css;base64,".concat(f)},d))})})),e0=oY((function(A,e){var t,n=A.cx,o=A.css,r=A.token,i=A.isDarkMode,a=A.stylish;switch(e){case"large":t=r.borderRadiusLG;break;case"middle":default:t=r.borderRadius;break;case"small":t=r.borderRadiusSM}return{button:n(a.gradientAnimation,o(wZ||(wZ=Bu(["\n position: relative;\n z-index: 1;\n border: none;\n border-radius: ","px !important;\n\n &::before {\n content: '';\n\n position: absolute;\n z-index: -1;\n inset-block-start: 1px;\n inset-inline-start: 1px;\n\n width: calc(100% - 2px);\n height: calc(100% - 2px);\n\n background: ",";\n border-radius: ","px;\n }\n\n &:hover {\n background: "," !important;\n }\n "])),t,r.colorBgLayout,t-1,r.colorPrimary)),glow:o(DZ||(DZ=Bu(["\n ","\n position: absolute;\n z-index: -2;\n inset-block-start: 0;\n inset-inline-start: 0;\n\n width: 100%;\n height: 100%;\n\n opacity: ",";\n filter: blur(","em);\n border-radius: inherit;\n "])),a.gradientAnimation,i?.5:.3,i?1.5:1)}})),t0=["glow","children","className","size"],n0=J.memo((function(A){var e=A.glow,t=void 0===e||e,n=A.children,o=A.className,r=A.size,i=void 0===r?"large":r,a=Mc(A,t0),s=e0(i),l=s.styles,g=s.cx;return AA.jsxs(dy,kc(kc({className:g(l.button,o),size:i},a),{},{children:[t&&AA.jsx("div",{className:l.glow}),n]}))})),o0=oY((function(A){var e=A.css,t=A.responsive,n=A.token,o=A.cx;return{content:e(mZ||(mZ=Bu(["\n height: 64px;\n padding-block: 0;\n padding-inline: 24px;\n\n background-color: ",";\n border-block-end: 1px solid ",";\n\n "," {\n padding-block: 0;\n padding-inline: 12px;\n }\n "])),YJ(n.colorBgLayout,.4),n.colorSplit,t.mobile),header:o(e(yZ||(yZ=Bu(["\n grid-area: head;\n align-self: stretch;\n width: 100%;\n "])))),left:e(bZ||(bZ=Bu(["\n z-index: 10;\n "]))),right:e(vZ||(vZ=Bu(["\n z-index: 10;\n\n &-aside {\n display: flex;\n align-items: center;\n\n "," {\n justify-content: center;\n\n margin-block: 8px;\n margin-inline: 16px;\n padding-block-start: 24px;\n\n border-block-start: 1px solid ",";\n }\n }\n "])),t.mobile,n.colorBorder)}})),r0=["actionsClassName","navClassName","logoClassName","nav","logo","actions","actionsStyle","logoStyle","navStyle","className"],i0=J.memo((function(A){var e=A.actionsClassName,t=A.navClassName,n=A.logoClassName,o=A.nav,r=A.logo,i=A.actions,a=A.actionsStyle,s=A.logoStyle,l=A.navStyle,g=A.className,c=Mc(A,r0),u=SK().mobile,B=o0(),Q=B.cx,E=B.styles;return AA.jsx("section",kc(kc({className:Q(E.header,g)},c),{},{children:AA.jsx(AQ,{align:"center",className:E.content,distribution:"space-between",horizontal:!0,width:"auto",children:u?AA.jsxs(AA.Fragment,{children:[AA.jsx(AQ,{className:e,style:kc({flex:0},l),children:o}),AA.jsx(AQ,{className:Q(E.left,n),horizontal:!0,style:kc({flex:1,overflow:"hidden"},s),children:r}),AA.jsx(AQ,{className:e,style:kc({flex:0},a),children:i})]}):AA.jsxs(AA.Fragment,{children:[AA.jsx(AQ,{className:Q(E.left,n),horizontal:!0,style:kc({flex:0},s),children:r}),AA.jsx(AQ,{className:t,style:kc({flex:1,marginLeft:48,overflow:"hidden"},l),children:o}),AA.jsxs(AQ,{className:Q(E.right,e),flex:1,horizontal:!0,justify:"space-between",style:a,children:[AA.jsx("div",{}),AA.jsx(AQ,{align:"center",gap:8,horizontal:!0,children:i})]})]})})}))})),a0=Nc("Discord",[["path",{d:"M20.317 4.3698a19.7913 19.7913 0 00-4.8851-1.5152.0741.0741 0 00-.0785.0371c-.211.3753-.4447.8648-.6083 1.2495-1.8447-.2762-3.68-.2762-5.4868 0-.1636-.3933-.4058-.8742-.6177-1.2495a.077.077 0 00-.0785-.037 19.7363 19.7363 0 00-4.8852 1.515.0699.0699 0 00-.0321.0277C.5334 9.0458-.319 13.5799.0992 18.0578a.0824.0824 0 00.0312.0561c2.0528 1.5076 4.0413 2.4228 5.9929 3.0294a.0777.0777 0 00.0842-.0276c.4616-.6304.8731-1.2952 1.226-1.9942a.076.076 0 00-.0416-.1057c-.6528-.2476-1.2743-.5495-1.8722-.8923a.077.077 0 01-.0076-.1277c.1258-.0943.2517-.1923.3718-.2914a.0743.0743 0 01.0776-.0105c3.9278 1.7933 8.18 1.7933 12.0614 0a.0739.0739 0 01.0785.0095c.1202.099.246.1981.3728.2924a.077.077 0 01-.0066.1276 12.2986 12.2986 0 01-1.873.8914.0766.0766 0 00-.0407.1067c.3604.698.7719 1.3628 1.225 1.9932a.076.076 0 00.0842.0286c1.961-.6067 3.9495-1.5219 6.0023-3.0294a.077.077 0 00.0313-.0552c.5004-5.177-.8382-9.6739-3.5485-13.6604a.061.061 0 00-.0312-.0286zM8.02 15.3312c-1.1825 0-2.1569-1.0857-2.1569-2.419 0-1.3332.9555-2.4189 2.157-2.4189 1.2108 0 2.1757 1.0952 2.1568 2.419 0 1.3332-.9555 2.4189-2.1569 2.4189zm7.9748 0c-1.1825 0-2.1569-1.0857-2.1569-2.419 0-1.3332.9554-2.4189 2.1569-2.4189 1.2108 0 2.1757 1.0952 2.1568 2.419 0 1.3332-.946 2.4189-2.1568 2.4189Z",key:"18tl5t"}]]),s0=function(A){return AA.jsx(a0,kc({style:{overflow:"visible"}},A))},l0=oY((function(A,e){var t=A.css,n=A.stylish,o=A.responsive,r=t(kZ||(kZ=Bu(["\n pointer-events: none;\n content: '';\n user-select: none;\n\n position: absolute;\n z-index: -1;\n inset-block: -1px ",";\n inset-inline: 0;\n "])),o.mobile?"-25%":"-50%");return{app:t(MZ||(MZ=Bu(["\n overflow: hidden auto;\n height: 100dvh;\n "]))),aside:t(xZ||(xZ=Bu(["\n position: sticky;\n z-index: 2;\n height: 100%;\n "]))),asideInner:t(SZ||(SZ=Bu(["\n overflow: hidden auto;\n width: 100%;\n height: calc(100dvh - ","px);\n "])),e),content:t(FZ||(FZ=Bu(["\n position: relative;\n flex: 1;\n max-width: 100%;\n "]))),footer:t(NZ||(NZ=Bu(["\n position: relative;\n max-width: 100%;\n "]))),glass:t(RZ||(RZ=Bu(["\n z-index: 0;\n\n &::before {\n ",";\n ",";\n mask-image: linear-gradient(to bottom, black ","px, transparent);\n }\n\n &::after {\n ",";\n }\n "])),n.blur,r,e,r),header:t(LZ||(LZ=Bu(["\n position: sticky;\n z-index: 999;\n inset-block-start: 0;\n max-width: 100%;\n "]))),main:t(PZ||(PZ=Bu(["\n position: relative;\n display: flex;\n align-items: stretch;\n max-width: 100vw;\n "]))),toc:t(HZ||(HZ=Bu([""])))}})),g0=["headerHeight","children","className","style"],c0=["children","className"],u0=["headerHeight","children","className","style"],B0=["headerHeight","children","className"],Q0=J.memo((function(A){var e=A.headerHeight,t=A.children,n=A.className,o=A.style,r=Mc(A,g0),i=l0(e),a=i.cx,s=i.styles;return AA.jsxs("header",kc(kc({className:a(s.header,n),style:kc({height:e},o)},r),{},{children:[AA.jsx("div",{className:s.glass}),t]}))})),E0=J.memo((function(A){var e=A.children,t=A.className,n=Mc(A,c0),o=l0(),r=o.cx,i=o.styles;return AA.jsx("main",kc(kc({className:r(i.main,t)},n),{},{children:e}))})),C0=J.memo((function(A){var e=A.headerHeight,t=A.children,n=A.className,o=A.style,r=Mc(A,u0),i=l0(e),a=i.cx,s=i.styles;return AA.jsx("aside",kc(kc({className:a(s.aside,n),style:kc({top:e},o)},r),{},{children:t}))})),d0=J.memo((function(A){var e=A.headerHeight,t=A.children,n=A.className,o=Mc(A,B0),r=l0(e),i=r.cx,a=r.styles;return AA.jsx("div",kc(kc({className:i(a.asideInner,n)},o),{},{children:t}))})),I0=J.memo((function(A){var e=Object.assign({},(sK(A),A));return AA.jsx("svg",kc(kc({fill:"none",shapeRendering:"geometricPrecision",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",viewBox:"0 0 24 24"},e),{},{children:AA.jsx("path",{d:"M16.88 3.549L7.12 20.451"})}))})),p0=J.memo((function(A){var e=Object.assign({},(sK(A),A));return AA.jsxs("svg",kc(kc({fill:"currentColor",fillRule:"evenodd",viewBox:"0 0 320 320"},e),{},{children:[AA.jsx("path",{d:"M25.401 140.14c3.71-5.453 8.81-9.628 15.313-12.838A23.89 23.89 0 0055 132.015a23.91 23.91 0 0016.053-6.159 48.924 48.924 0 0010.603-.294 56.54 56.54 0 006.809 6.555c-8.655 1.087-18.202 2.821-29.05 5.494-11.996 2.956-17.707 7.005-20.785 11.53-3.227 4.743-4.63 11.518-4.63 22.374 0 70.838 55.45 121.5 126 121.5 70.564 0 125.889-49.642 126-120.286-.751-13.724-2.613-20.518-5.764-24.763-3.023-4.073-8.262-7.153-19.898-10.42-9.615-2.7-20.317-4.252-31.506-5.103a48.977 48.977 0 006.306-6.763c2.995-1.106 6.948-.684 12.998.332l.321.054c2.498.421 5.641.95 8.543.95 5.214 0 10.234-.927 14.879-2.626 8.925 3.124 16.138 7.213 21.205 14.041 6.227 8.389 8.147 19.524 8.905 33.656l.011.214v.214c0 80.552-63.518 136.5-142 136.5-78.567 0-142-57.028-142-137.5 0-11.644 1.368-22.506 7.401-31.375z"}),AA.jsx("path",{d:"M195.5 145.016a50.53 50.53 0 0018.014-3.295C238.551 143.519 255 146.556 255 150c0 4.335-26.066 8.026-62.517 9.413-.201-5.525-.323-10.211-.316-14.505 1.102.071 2.214.108 3.333.108zM125 145.016a58.278 58.278 0 01-19.063-3.182C81.773 143.646 66 146.628 66 150c0 4.295 25.591 7.958 61.52 9.374.238-5.823.186-10.311-.246-14.402a59.24 59.24 0 01-2.274.044zM122.87 228c9.79-4.353 16.63-14.277 16.63-25.823 0-15.562-12.424-28.177-27.75-28.177S84 186.615 84 202.177c0 10.646 5.815 19.913 14.396 24.705 2.902-.349 5.839-.554 8.729-.554 5.259 0 10.673.678 15.745 1.672zM236 202.177c0 10.646-5.815 19.913-14.396 24.705-2.902-.349-5.839-.554-8.729-.554-5.259 0-10.673.678-15.745 1.672-9.79-4.353-16.63-14.277-16.63-25.823 0-15.562 12.424-28.177 27.75-28.177S236 186.615 236 202.177zM127 248.787S133.923 245 160 245c26.077 0 33 3.787 33 3.787S189.769 278 160 278s-33-29.213-33-29.213z"}),AA.jsx("path",{clipRule:"evenodd",d:"M173 19.016c-6.188 0-10.711-2.238-15.68-4.697-6.295-3.114-13.305-6.583-25.32-6.303-20.261 0-30.93 9.751-40.896 18.86-1.54 1.408-3.064 2.8-4.604 4.14-1.958 1.702-11.5 7-16 9-19.683 8.748-34.5 21.5-34.5 40.5 0 3.789.584 7.447 1.672 10.895A23.93 23.93 0 0155 84.016c13.255 0 24 10.745 24 24 0 3.552-.772 6.925-2.157 9.959a40.472 40.472 0 008.042-1.174c8.866 12.225 23.528 20.215 40.115 20.215 3.041 0 6.018-.269 8.906-.783 1.675 7.287 2.007 14.011 1.594 23.782h49c-.359-9.741-.486-17.161-.085-24.451a42.76 42.76 0 0011.085 1.452c14.294 0 26.9-7.006 34.364-17.668 6.059-3.498 13.291-2.284 19.597-1.225 2.746.461 5.317.893 7.539.893 18.778 0 34-14.551 34-32.5 0-8.333-3.281-15.934-8.675-21.686-4.31 5.012-10.697 8.186-17.825 8.186-12.979 0-23.5-10.522-23.5-23.5 0-12.98-30.137-31.5-45-31.5-5.31 0-10.313.325-14.617.604-3.249.21-6.099.396-8.383.396zM234.307 82.5c1.181 3.012-2.694 4.293-4.517 1.62l-.021-.03-.032-.047-.031-.043c-7.483-10.536-20.012-17.444-34.206-17.444a42.498 42.498 0 00-16.163 3.166c-6.41 2.63-14.55 1.24-19.499-3.61-8.882-8.704-21.21-14.096-34.838-14.096-17.152 0-32.245 8.542-41 21.478-1.966 2.365-5.65 1.323-4.535-1.543.06-.155.12-.305.182-.451C86.968 54.2 104.516 42.016 125 42.016c13.628 0 25.956 5.392 34.838 14.097 4.949 4.85 13.089 6.24 19.499 3.609a42.498 42.498 0 0116.163-3.166c17.73 0 32.863 10.778 38.807 25.944z"}),AA.jsx("path",{d:"M83 20.516a9.5 9.5 0 11-19 0 9.5 9.5 0 0119 0zM264.5 65.016c8.56 0 15.5-6.94 15.5-15.5 0-8.56-6.94-15.5-15.5-15.5-8.56 0-15.5 6.94-15.5 15.5 0 8.56 6.94 15.5 15.5 15.5zM55 124.016c8.837 0 16-7.164 16-16 0-8.837-7.163-16-16-16s-16 7.163-16 16c0 8.836 7.163 16 16 16z"})]}))})),f0=J.memo((function(A){var e=Object.assign({},(sK(A),A));return AA.jsx("svg",kc(kc({fill:"currentColor",fillRule:"evenodd",viewBox:"0 0 940 320",xmlns:"http://www.w3.org/2000/svg"},e),{},{children:AA.jsx("path",{d:"M15 240.035V87.172h39.24V205.75h66.192v34.285H15zM183.731 242c-11.759 0-22.196-2.621-31.313-7.862-9.116-5.241-16.317-12.447-21.601-21.619-5.153-9.317-7.729-19.945-7.729-31.883 0-11.937 2.576-22.492 7.729-31.664 5.164-8.963 12.159-15.98 20.982-21.05l.619-.351c9.117-5.241 19.554-7.861 31.313-7.861s22.196 2.62 31.313 7.861c9.248 5.096 16.449 12.229 21.601 21.401 5.153 9.172 7.729 19.727 7.729 31.664 0 11.938-2.576 22.566-7.729 31.883-5.152 9.172-12.353 16.378-21.601 21.619-9.117 5.241-19.554 7.862-31.313 7.862zm0-32.975c4.36 0 8.191-1.092 11.494-3.275 3.436-2.184 6.144-5.387 8.126-9.609 1.982-4.367 2.973-9.536 2.973-15.505 0-5.968-.991-10.991-2.973-15.067-1.906-4.06-4.483-7.177-7.733-9.352l-.393-.257c-3.303-2.184-7.134-3.276-11.494-3.276-4.228 0-8.059 1.092-11.495 3.276-3.303 2.184-6.011 5.387-8.125 9.609-1.982 4.076-2.973 9.099-2.973 15.067 0 5.969.991 11.138 2.973 15.505 2.114 4.222 4.822 7.425 8.125 9.609 3.436 2.183 7.267 3.275 11.495 3.275zM295.508 78l-.001 54.042a34.071 34.071 0 016.541-5.781c6.474-4.367 14.269-6.551 23.385-6.551 9.777 0 18.629 2.475 26.557 7.424 7.872 4.835 14.105 11.684 18.7 20.546l.325.637c4.756 9.026 7.135 19.799 7.135 32.319 0 12.666-2.379 23.585-7.135 32.757-4.624 9.026-10.966 16.087-19.025 21.182-7.928 4.95-16.78 7.425-26.557 7.425-9.644 0-17.704-2.184-24.178-6.551-2.825-1.946-5.336-4.355-7.532-7.226l.001 11.812h-35.87V78h37.654zm21.998 74.684c-4.228 0-8.059 1.092-11.494 3.276-3.303 2.184-6.012 5.387-8.126 9.609-1.982 4.076-2.972 9.099-2.972 15.067 0 5.969.99 11.138 2.972 15.505 2.114 4.222 4.823 7.425 8.126 9.609 3.435 2.183 7.266 3.275 11.494 3.275s7.994-1.092 11.297-3.275c3.435-2.184 6.143-5.387 8.125-9.609 2.114-4.367 3.171-9.536 3.171-15.505 0-5.968-1.057-10.991-3.171-15.067-1.906-4.06-4.483-7.177-7.732-9.352l-.393-.257c-3.303-2.184-7.069-3.276-11.297-3.276zm105.335 38.653l.084.337a27.857 27.857 0 002.057 5.559c2.246 4.222 5.417 7.498 9.513 9.827 4.096 2.184 8.984 3.276 14.665 3.276 5.285 0 9.777-.801 13.477-2.403 3.579-1.632 7.1-4.025 10.564-7.182l.732-.679 19.818 22.711c-5.153 6.26-11.494 11.064-19.025 14.413-7.531 3.203-16.449 4.804-26.755 4.804-12.683 0-23.782-2.621-33.294-7.862-9.381-5.386-16.713-12.665-21.998-21.837-5.153-9.317-7.729-19.872-7.729-31.665 0-11.792 2.51-22.274 7.53-31.446 5.036-9.105 11.902-16.195 20.596-21.268l.61-.351c8.984-5.241 19.091-7.861 30.322-7.861 10.311 0 19.743 2.286 28.294 6.859l.64.347c8.72 4.659 15.656 11.574 20.809 20.746 5.153 9.172 7.729 20.309 7.729 33.411 0 1.294-.052 2.761-.156 4.4l-.042.623-.17 2.353c-.075 1.01-.151 1.973-.227 2.888h-78.044zm21.365-42.147c-4.492 0-8.456 1.092-11.891 3.276-3.303 2.184-5.879 5.314-7.729 9.39a26.04 26.04 0 00-1.117 2.79 30.164 30.164 0 00-1.121 4.499l-.058.354h43.96l-.015-.106c-.401-2.638-1.122-5.055-2.163-7.252l-.246-.503c-1.776-3.774-4.282-6.742-7.519-8.906l-.409-.266c-3.303-2.184-7.2-3.276-11.692-3.276zm111.695-62.018l-.001 57.432h53.51V87.172h39.24v152.863h-39.24v-59.617H555.9l.001 59.617h-39.24V87.172h39.24zM715.766 242c-8.72 0-16.581-1.893-23.583-5.678-6.87-3.785-12.287-9.681-16.251-17.688-3.832-8.153-5.747-18.417-5.747-30.791v-66.168h37.654v59.398c0 9.172 1.519 15.723 4.558 19.654 3.171 3.931 7.597 5.896 13.278 5.896 3.7 0 7.069-.946 10.108-2.839 3.038-1.892 5.483-4.877 7.332-8.953 1.85-4.222 2.775-9.609 2.775-16.16v-56.996h37.654v118.36h-35.871l.004-12.38c-2.642 3.197-5.682 5.868-9.12 8.012-7.002 4.222-14.599 6.333-22.791 6.333zM841.489 78l-.001 54.041a34.1 34.1 0 016.541-5.78c6.474-4.367 14.269-6.551 23.385-6.551 9.777 0 18.629 2.475 26.556 7.424 7.873 4.835 14.106 11.684 18.701 20.546l.325.637c4.756 9.026 7.134 19.799 7.134 32.319 0 12.666-2.378 23.585-7.134 32.757-4.624 9.026-10.966 16.087-19.026 21.182-7.927 4.95-16.779 7.425-26.556 7.425-9.645 0-17.704-2.184-24.178-6.551-2.825-1.946-5.336-4.354-7.531-7.224v11.81h-35.87V78h37.654zm21.998 74.684c-4.228 0-8.059 1.092-11.495 3.276-3.303 2.184-6.011 5.387-8.125 9.609-1.982 4.076-2.973 9.099-2.973 15.067 0 5.969.991 11.138 2.973 15.505 2.114 4.222 4.822 7.425 8.125 9.609 3.436 2.183 7.267 3.275 11.495 3.275 4.228 0 7.993-1.092 11.296-3.275 3.435-2.184 6.144-5.387 8.126-9.609 2.114-4.367 3.171-9.536 3.171-15.505 0-5.968-1.057-10.991-3.171-15.067-1.906-4.06-4.484-7.177-7.733-9.352l-.393-.257c-3.303-2.184-7.068-3.276-11.296-3.276z"})}))})),h0={path:"assets/logo-3d.webp",pkg:"@lobehub/assets-logo",version:"1.2.0"},w0={path:"assets/logo-flat.svg",pkg:"@lobehub/assets-logo",version:"1.2.0"},D0=oY((function(A){return{extraTitle:(0,A.css)(GZ||(GZ=Bu(["\n font-weight: 300;\n white-space: nowrap;\n "])))}})),m0=["type","size","style","extra","className"],y0=J.memo((function(A){var e,t=A.type,n=void 0===t?"3d":t,o=A.size,r=void 0===o?32:o,i=A.style,a=A.extra,s=A.className,l=Mc(A,m0),g=BJ(),c=cY(),u=D0().styles;switch(n){case"3d":e=AA.jsx(EJ,kc({alt:"lobehub",height:r,src:g(h0),style:i,width:r},l));break;case"flat":e=AA.jsx(EJ,{alt:"lobehub",height:r,src:g(w0),style:i,width:r});break;case"high-contrast":e=AA.jsx(p0,kc({height:r,style:i,width:r},l));break;case"text":e=AA.jsx(f0,kc({className:s,height:r,style:i,width:2.9375*r},l));break;case"combine":e=AA.jsxs(AA.Fragment,{children:[AA.jsx(EJ,{alt:"lobehub",height:r,src:g(h0),width:r}),AA.jsx(f0,{style:{height:r,marginLeft:Math.round(r/4),width:"auto"}})]})}if(!a)return e;var B=Math.round(r/3*1.9);return AA.jsxs(AQ,kc(kc({align:"center",className:s,horizontal:!0,style:i},l),{},{children:[e,AA.jsx(I0,{style:{color:c.colorFill,height:B,width:B}}),AA.jsx("div",{className:u.extraTitle,style:{fontSize:B},children:a})]}))})),b0=function(A){var e=A.type,t=A.scale,n=A.appearance,o=lT(e),r="dark"===n;return bc(bc(bc(bc(bc(bc(bc(bc(bc(bc({},"color".concat(o,"Bg"),t[n][1]),"color".concat(o,"BgHover"),t[n][2]),"color".concat(o,"Border"),t[n][4]),"color".concat(o,"BorderHover"),t[n][r?5:3]),"color".concat(o,"Hover"),t[n][r?10:8]),"color".concat(o),t[n][9]),"color".concat(o,"Active"),t[n][r?7:10]),"color".concat(o,"TextHover"),t[n][r?10:8]),"color".concat(o,"Text"),t[n][9]),"color".concat(o,"TextActive"),t[n][r?7:10])},v0=function(A){var e=A.scale,t=A.appearance;return{colorBgContainer:"dark"===t?e[t][1]:e[t][0],colorBgElevated:"dark"===t?e[t][2]:e[t][0],colorBgLayout:"dark"===t?e[t][0]:e[t][1],colorBgMask:e.lightA[8],colorBgSpotlight:e[t][5],colorBorder:e[t][4],colorBorderSecondary:e[t][3],colorFill:e["".concat(t,"A")][3],colorFillQuaternary:e["".concat(t,"A")][0],colorFillSecondary:e["".concat(t,"A")][2],colorFillTertiary:e["".concat(t,"A")][1],colorText:e[t][12],colorTextQuaternary:e[t][6],colorTextSecondary:e[t][10],colorTextTertiary:e[t][8]}},k0={mauve:{dark:["#1c1b1e","#252528","#2f2f32","#3a393d","#454448","#504f53","#5b5a5f","#67666a","#737177","#7f7d83","#bbb9bd","#fcf8fb","#ffffff"],darkA:["rgba(233, 225, 250, 0.12)","rgba(231, 231, 250, 0.16)","rgba(235, 235, 250, 0.2)","rgba(242, 237, 254, 0.24)","rgba(238, 234, 248, 0.29)","rgba(242, 239, 252, 0.33)","rgba(239, 237, 250, 0.38)","rgba(245, 243, 252, 0.42)","rgba(245, 240, 253, 0.47)","rgba(244, 240, 252, 0.52)","rgba(253, 250, 255, 0.74)","rgba(255, 251, 254, 0.99)","#ffffff"],light:["#fcf8fb","#edeaed","#dfdcdf","#d1ced2","#c2c0c4","#b4b2b7","#a7a4a9","#99979c","#8c8a90","#7f7d83","#4a494d","#1c1b1e","#111"],lightA:["rgba(155, 22, 122, 0.03)","rgba(55, 22, 55, 0.09)","rgba(26, 5, 26, 0.14)","rgba(25, 10, 30, 0.2)","rgba(11, 3, 19, 0.25)","rgba(13, 7, 23, 0.31)","rgba(11, 2, 16, 0.36)","rgba(6, 1, 14, 0.41)","rgba(5, 1, 14, 0.46)","rgba(4, 0, 12, 0.51)","rgba(4, 2, 8, 0.72)","rgba(3, 2, 5, 0.9)","#111"]},olive:{dark:["#1a1c1b","#232624","#2d302e","#383a38","#424542","#4d504d","#585c58","#646763","#70736e","#7c7f79","#b9bab5","#faf9f4","#ffffff"],darkA:["rgba(236, 255, 245, 0.11)","rgba(233, 253, 240, 0.15)","rgba(237, 253, 242, 0.19)","rgba(243, 252, 243, 0.23)","rgba(236, 246, 236, 0.28)","rgba(241, 250, 241, 0.32)","rgba(238, 249, 238, 0.37)","rgba(244, 251, 241, 0.41)","rgba(243, 250, 239, 0.46)","rgba(248, 254, 242, 0.5)","rgba(253, 255, 248, 0.73)","rgba(255, 254, 249, 0.98)","#ffffff"],light:["#faf9f4","#ecebe6","#ddddd7","#cfcfc9","#c0c1bb","#b2b4ae","#a4a6a0","#969993","#898c86","#7c7f79","#484b48","#1a1c1b","#111"],lightA:["rgba(155, 135, 35, 0.05)","rgba(65, 55, 5, 0.1)","rgba(43, 43, 5, 0.16)","rgba(37, 37, 10, 0.22)","rgba(22, 25, 3, 0.27)","rgba(14, 21, 2, 0.32)","rgba(16, 21, 5, 0.38)","rgba(11, 18, 4, 0.43)","rgba(9, 15, 3, 0.48)","rgba(8, 13, 2, 0.53)","rgba(1, 5, 1, 0.72)","rgba(1, 3, 2, 0.9)","#111"]},sage:{dark:["#1a1c1b","#232625","#2d302f","#373a39","#424543","#4d504e","#585c59","#636765","#6f7370","#7a7f7c","#b8bab7","#f9f9f7","#ffffff"],darkA:["rgba(236, 255, 245, 0.11)","rgba(233, 253, 247, 0.15)","rgba(237, 253, 247, 0.19)","rgba(239, 252, 248, 0.23)","rgba(236, 246, 239, 0.28)","rgba(241, 250, 244, 0.32)","rgba(238, 249, 241, 0.37)","rgba(241, 251, 246, 0.41)","rgba(241, 250, 243, 0.46)","rgba(244, 254, 248, 0.5)","rgba(252, 255, 251, 0.73)","rgba(254, 254, 252, 0.98)","#ffffff"],light:["#f9f9f7","#eaebe8","#dcddda","#cdcfcc","#bfc1be","#b1b4b0","#a3a6a3","#959996","#888c89","#7a7f7c","#474b49","#1a1c1b","#111"],lightA:["rgba(105, 105, 55, 0.04)","rgba(45, 55, 25, 0.1)","rgba(22, 28, 8, 0.15)","rgba(5, 15, 0, 0.2)","rgba(9, 17, 5, 0.26)","rgba(3, 13, 0, 0.31)","rgba(6, 14, 6, 0.37)","rgba(3, 12, 5, 0.42)","rgba(2, 10, 4, 0.47)","rgba(4, 13, 8, 0.53)","rgba(3, 8, 6, 0.73)","rgba(1, 3, 2, 0.9)","#111"]},sand:{dark:["#1c1c18","#262521","#30302b","#3a3a35","#45453f","#505049","#5c5b54","#67675f","#73726a","#7f7e76","#bcbab2","#fcf9f3","#ffffff"],darkA:["rgba(255, 255, 218, 0.11)","rgba(253, 247, 220, 0.15)","rgba(253, 253, 226, 0.19)","rgba(252, 252, 230, 0.23)","rgba(246, 246, 225, 0.28)","rgba(250, 250, 228, 0.32)","rgba(249, 246, 227, 0.37)","rgba(251, 251, 232, 0.41)","rgba(250, 248, 230, 0.46)","rgba(254, 252, 236, 0.5)","rgba(254, 251, 241, 0.74)","rgba(255, 252, 245, 0.99)","#ffffff"],light:["#fcf9f3","#edebe4","#dfddd5","#d1cfc7","#c3c1b9","#b5b3ab","#a7a69d","#999890","#8c8b83","#7f7e76","#4b4a44","#1c1c18","#111"],lightA:["rgba(195, 135, 15, 0.05)","rgba(91, 73, 10, 0.11)","rgba(67, 55, 8, 0.17)","rgba(46, 37, 0, 0.22)","rgba(41, 34, 5, 0.28)","rgba(31, 25, 0, 0.33)","rgba(29, 27, 4, 0.39)","rgba(23, 21, 3, 0.44)","rgba(20, 18, 2, 0.49)","rgba(18, 16, 1, 0.54)","rgba(12, 10, 2, 0.74)","rgba(6, 6, 1, 0.91)","#111"]},slate:{dark:["#1b1c1d","#242527","#2e2f32","#383a3c","#434547","#4e5052","#595b5e","#64676a","#707276","#7b7e82","#b8babc","#f9f9fa","#ffffff"],darkA:["rgba(225, 233, 242, 0.12)","rgba(225, 231, 244, 0.16)","rgba(230, 235, 250, 0.2)","rgba(233, 242, 250, 0.24)","rgba(239, 246, 254, 0.28)","rgba(236, 242, 248, 0.33)","rgba(241, 246, 254, 0.37)","rgba(238, 245, 252, 0.42)","rgba(238, 243, 251, 0.47)","rgba(241, 247, 255, 0.51)","rgba(249, 251, 254, 0.74)","rgba(254, 254, 255, 0.98)","#ffffff"],light:["#f9f9fa","#ebebec","#dcddde","#cecfd0","#bfc1c3","#b1b3b5","#a4a6a8","#96989b","#898b8e","#7b7e82","#484a4d","#1b1c1d","#111"],lightA:["rgba(55, 55, 88, 0.03)","rgba(5, 5, 17, 0.08)","rgba(5, 12, 19, 0.14)","rgba(10, 15, 20, 0.2)","rgba(9, 17, 24, 0.26)","rgba(3, 10, 16, 0.31)","rgba(2, 8, 13, 0.36)","rgba(5, 10, 17, 0.42)","rgba(4, 8, 15, 0.47)","rgba(1, 7, 15, 0.52)","rgba(1, 4, 8, 0.72)","rgba(2, 3, 4, 0.9)","#111"]}},M0={blue:sV.blue.dark[9],cyan:sV.cyan.dark[9],geekblue:sV.geekblue.dark[9],gold:sV.gold.dark[9],green:sV.green.dark[9],lime:sV.lime.dark[9],magenta:sV.magenta.dark[9],orange:sV.orange.dark[9],purple:sV.purple.dark[9],red:sV.red.dark[9],volcano:sV.volcano.dark[9],yellow:sV.yellow.dark[9]},x0=[M0.red,M0.orange,M0.gold,M0.yellow,M0.lime,M0.green,M0.cyan,M0.blue,M0.geekblue,M0.purple,M0.magenta,M0.volcano],S0={mauve:k0.mauve.dark[9],olive:k0.olive.dark[9],sage:k0.sage.dark[9],sand:k0.sand.dark[9],slate:k0.slate.dark[9]},F0=[S0.mauve,S0.slate,S0.sage,S0.olive,S0.sand],N0=function(A){var e,t=A.name,n=A.scale,o=A.appearance,r={},i=xV(n[o].entries());try{for(i.s();!(e=i.n()).done;){var a=WQ(e.value,2),s=a[0],l=a[1];0!==s&&12!==s&&(r["".concat(t).concat(s)]=l)}}catch(E){i.e(E)}finally{i.f()}var g,c=xV(n["".concat(o,"A")].entries());try{for(c.s();!(g=c.n()).done;){var u=WQ(g.value,2),B=u[0],Q=u[1];0!==B&&12!==B&&(r["".concat(t).concat(B,"A")]=Q)}}catch(E){c.e(E)}finally{c.f()}return kc(kc({},r),function(A){var e,t=A.name,n=A.scale,o=A.appearance;return bc(bc(bc(bc(bc(bc(bc(bc(bc(bc(e={},"".concat(t,"Bg"),n["".concat(o,"A")][1]),"".concat(t,"BgHover"),n["".concat(o,"A")][2]),"".concat(t,"Border"),n[o][4]),"".concat(t,"BorderSecondary"),n[o][3]),"".concat(t,"BorderHover"),n[o][5]),"".concat(t,"Hover"),n[o][10]),"".concat(t),n[o][9]),"".concat(t,"Active"),n[o][7]),"".concat(t,"TextHover"),n["".concat(o,"A")][10]),"".concat(t,"Text"),n["".concat(o,"A")][9]),bc(e,"".concat(t,"TextActive"),n["".concat(o,"A")][7])}({appearance:o,name:t,scale:n}))},R0=oY((function(A,e){var t=A.css,n=A.token;return{active:t($Z||($Z=Bu(["\n box-shadow: 0 0 0 2px ",";\n "])),n.colorTextTertiary),container:t(zZ||(zZ=Bu(["\n cursor: pointer;\n\n width: ","px;\n height: ","px;\n\n background: ",";\n border-radius: 50%;\n box-shadow: inset 0 0 0 2px ",";\n\n transition:\n scale 400ms ",",\n box-shadow 100ms ",";\n\n &:hover {\n box-shadow: 0 0 0 3px ",";\n }\n\n &:active {\n scale: 0.8;\n }\n "])),e,e,n.colorBgContainer,n.colorSplit,n.motionEaseOut,n.motionEaseOut,n.colorText)}})),L0=J.memo((function(A){var e=A.colors,t=A.activeColor,n=A.onSelect,o=A.size,r=void 0===o?24:o,i=cY(),a=R0(r),s=a.cx,l=a.styles;return AA.jsxs(AQ,{gap:8,horizontal:!0,style:{flexWrap:"wrap"},children:[AA.jsx(AQ,{className:s(l.container,!t&&l.active),onClick:function(){null==n||n()},style:{background:i.colorBgContainer}}),e.map((function(A){var e=A===t;return AA.jsx(AQ,{className:s(l.container,e&&l.active),onClick:function(){null==n||n(A)},style:{background:A}},A)}))]})})),P0=oY((function(A){var e=A.css,t=A.token,n=A.prefixCls,o=".".concat(n,"-tabs");return{compact:e(WZ||(WZ=Bu(["\n .","-tabs-tab {\n margin: 4px !important;\n\n + .","-tabs-tab {\n margin: 4px !important;\n }\n }\n "])),n,n),tabs:e(_Z||(_Z=Bu(["\n ","-tab + ","-tab {\n margin-block: ","px !important;\n margin-inline: 4px !important;\n padding-block: 0 !important;\n padding-inline: 12px !important;\n }\n\n ","-tab {\n color: ",";\n transition: background-color 100ms ease-out;\n\n &:first-child {\n margin-block: ","px;\n margin-inline: 0 4px;\n padding-block: ","px !important;\n padding-inline: 12px !important;\n }\n\n &:hover {\n color: "," !important;\n background: ",";\n border-radius: ","px;\n }\n }\n\n ","-nav {\n margin-block-end: 0;\n\n &::before {\n display: none;\n }\n }\n "])),o,o,16,o,t.colorTextSecondary,16,6,t.colorText,t.colorFillTertiary,t.borderRadius,o)}})),H0=["className","variant"],G0=J.memo((function(A){var e=A.className,t=A.variant,n=Mc(A,H0),o=P0(),r=o.styles,i=o.cx;return AA.jsx(NP,kc({className:i(r.tabs,"compact"===t&&r.compact,e)},n))})),O0=b0({appearance:"dark",scale:sV.bnw,type:"Primary"}),U0=v0({appearance:"dark",scale:sV.gray}),K0=b0({appearance:"dark",scale:sV.lime,type:"Success"}),Y0=b0({appearance:"dark",scale:sV.gold,type:"Warning"}),T0=b0({appearance:"dark",scale:sV.red,type:"Error"}),J0=b0({appearance:"dark",scale:sV.blue,type:"Info"}),j0=kc(kc(kc(kc(kc(kc(kc({},O0),U0),K0),Y0),T0),J0),{},{boxShadow:"0 20px 20px -8px rgba(0, 0, 0, 0.24)",boxShadowSecondary:"0 8px 16px -4px rgba(0, 0, 0, 0.2)",boxShadowTertiary:"0 3px 1px -1px rgba(26, 26, 26, 0.06)",colorLink:J0.colorInfoText,colorLinkActive:J0.colorInfoTextActive,colorLinkHover:J0.colorInfoTextHover,colorTextLightSolid:U0.colorBgLayout}),q0=function(A,e){var t=A.primaryColor,n=A.neutralColor,o={},r={},i=sV[t];i&&(o=b0({appearance:"dark",scale:i,type:"Primary"}));var a=k0[n];return a&&(r=v0({appearance:"dark",scale:a})),kc(kc(kc(kc({},e),j0),o),r)},$0=b0({appearance:"light",scale:sV.bnw,type:"Primary"}),z0=v0({appearance:"light",scale:sV.gray}),W0=b0({appearance:"light",scale:sV.green,type:"Success"}),_0=b0({appearance:"light",scale:sV.orange,type:"Warning"}),X0=b0({appearance:"light",scale:sV.volcano,type:"Error"}),V0=b0({appearance:"light",scale:sV.geekblue,type:"Info"}),Z0=kc(kc(kc(kc(kc(kc(kc({},$0),z0),W0),_0),X0),V0),{},{boxShadow:"0 20px 20px -8px rgba(0, 0, 0, 0.24)",boxShadowSecondary:"0 8px 16px -4px rgba(0, 0, 0, 0.2)",boxShadowTertiary:"0 3px 1px -1px rgba(26, 26, 26, 0.06)",colorLink:V0.colorInfoText,colorLinkActive:V0.colorInfoTextActive,colorLinkHover:V0.colorInfoTextHover,colorTextLightSolid:z0.colorBgLayout}),A1=function(A,e){var t=A.primaryColor,n=A.neutralColor,o={},r={},i=sV[t];i&&(o=b0({appearance:"light",scale:i,type:"Primary"}));var a=k0[n];return a&&(r=v0({appearance:"light",scale:a})),kc(kc(kc(kc({},e),Z0),o),r)},e1='"Segoe UI Emoji","Segoe UI Symbol","Apple Color Emoji","Twemoji Mozilla","Noto Color Emoji","Android Emoji"',t1='"HarmonyOS Sans SC","PingFang SC","Hiragino Sans GB","Microsoft Yahei UI","Microsoft Yahei","Source Han Sans CN",sans-serif',n1={borderRadius:5,borderRadiusLG:8,borderRadiusSM:3,borderRadiusXS:3,controlHeight:36,fontFamily:['"HarmonyOS Sans","Segoe UI","SF Pro Display",-apple-system,BlinkMacSystemFont,Roboto,Oxygen,Ubuntu,Cantarell,"Open Sans","Helvetica Neue",sans-serif',t1,e1].join(","),fontFamilyCode:["Hack,ui-monospace,SFMono-Regular,SF Mono,Menlo,Consolas,Liberation Mono,monospace",t1,e1].join(",")};const o1=function(A){return iY(XZ||(XZ=Bu(["\n .","-checkbox-inner:after {\n border-color: "," !important;\n }\n\n .","-btn {\n box-shadow: none;\n }\n\n .","-btn-primary:not(:disabled) {\n color: "," !important;\n\n &:hover {\n color: "," !important;\n }\n\n &:active {\n color: "," !important;\n }\n }\n\n .","-tooltip-inner {\n display: flex;\n align-items: center;\n justify-content: center;\n\n min-height: unset;\n padding-block: 4px;\n padding-inline: 8px;\n\n color: "," !important;\n\n background-color: "," !important;\n border-radius: ","px !important;\n }\n\n .","-tooltip-arrow {\n &::before,\n &::after {\n background: "," !important;\n }\n }\n\n .","-switch-handle::before {\n background: "," !important;\n }\n\n .","-image-preview-close,\n .","-image-preview-switch-right,.","-image-preview-switch-left {\n ",";\n border-radius: ","px;\n background: ",";\n\n width: 32px;\n height: 32px;\n\n display: flex;\n align-items: center;\n justify-content: center;\n\n padding: 0;\n }\n\n .","-popover-inner {\n border: 1px solid ",";\n box-shadow: ",";\n }\n\n ul.","-dropdown-menu {\n border: 1px solid ",";\n border-radius: ","px !important;\n box-shadow: ",";\n }\n\n @media (max-width: 575px) {\n .","-tooltip {\n display: none !important;\n }\n }\n"])),A.prefixCls,oj(A.colorPrimary),A.prefixCls,A.prefixCls,oj(A.colorPrimary),oj(A.colorPrimary),oj(A.colorPrimaryActive),A.prefixCls,A.colorBgLayout,A.colorText,A.borderRadiusSM,A.prefixCls,A.colorText,A.prefixCls,A.colorBgContainer,A.prefixCls,A.prefixCls,A.prefixCls,A.stylish.blur,A.borderRadiusLG,YJ(A.colorBgMask,.1),A.prefixCls,A.colorBorderSecondary,A.boxShadowSecondary,A.prefixCls,A.colorBorderSecondary,A.borderRadius,A.boxShadowSecondary,A.prefixCls)};var r1;var i1=rY((function(A){var e,t=A.theme;return[(e=t,iY(r1||(r1=Bu(["\n :root {\n --font-settings: 'cv01', 'tnum', 'kern';\n --font-variations: 'opsz' auto, tabular-nums;\n }\n\n html {\n overscroll-behavior: none;\n color-scheme: ",";\n }\n\n body {\n overflow: hidden auto;\n\n min-height: 100vh;\n margin: 0;\n padding: 0;\n\n font-family: ",";\n font-size: ","px;\n font-feature-settings: var(--font-settings);\n font-variation-settings: var(--font-variations);\n -webkit-font-smoothing: antialiased;\n -moz-osx-font-smoothing: grayscale;\n line-height: 1;\n color: ",";\n text-size-adjust: none;\n text-rendering: optimizelegibility;\n word-wrap: break-word;\n vertical-align: baseline;\n\n background-color: ",";\n\n -webkit-overflow-scrolling: touch;\n -webkit-tap-highlight-color: transparent;\n }\n\n code {\n font-family: "," !important;\n\n span {\n font-family: "," !important;\n }\n }\n\n ::selection {\n color: #000;\n background: ",";\n\n -webkit-text-fill-color: unset !important;\n }\n\n * {\n scrollbar-color: "," transparent;\n scrollbar-width: thin;\n box-sizing: border-box;\n vertical-align: baseline;\n }\n"])),e.isDarkMode?"dark":"light",e.fontFamily,e.fontSize,e.colorTextBase,e.colorBgLayout,e.fontFamilyCode,e.fontFamilyCode,e.yellow9,e.colorFill)),o1(t)]})),a1=["children","customStylish","customToken","enableWebfonts","enableGlobalStyle","webfonts","customTheme","className","style"],s1=J.memo((function(A){var e=A.children,t=A.customStylish,n=A.customToken,o=A.enableWebfonts,r=void 0===o||o,i=A.enableGlobalStyle,a=void 0===i||i,s=A.webfonts,l=A.customTheme,g=void 0===l?{}:l,c=A.className,u=A.style,B=Mc(A,a1),Q=BJ(),E=s||[Q({path:"css/index.css",pkg:"@lobehub/webfont-mono",version:"1.0.0"}),Q({path:"css/index.css",pkg:"@lobehub/webfont-harmony-sans",version:"1.0.0"}),Q({path:"css/index.css",pkg:"@lobehub/webfont-harmony-sans-sc",version:"1.0.0"}),Q({path:"dist/katex.min.css",pkg:"katex",version:"0.16.8"})],C=J.useCallback((function(A){return kc(kc({},function(A){var e=A.css,t=A.token,n=A.isDarkMode,o=sY(OZ||(OZ=Bu(["\n 0% {\n background-position: 0% 50%;\n }\n 50% {\n background-position: 100% 50%;\n }\n 100% {\n background-position: 0% 50%;\n }\n "])));return{blur:e(UZ||(UZ=Bu(["\n backdrop-filter: saturate(180%) blur(10px);\n "]))),blurStrong:e(KZ||(KZ=Bu(["\n backdrop-filter: blur(36px);\n "]))),bottomScrollbar:e(YZ||(YZ=Bu(["\n ::-webkit-scrollbar {\n width: 0;\n height: 4px;\n background-color: transparent;\n\n &-thumb {\n background-color: ",";\n border-radius: 4px;\n transition: background-color 500ms ",";\n }\n\n &-corner {\n display: none;\n width: 0;\n height: 0;\n }\n }\n "])),t.colorFill,t.motionEaseOut),gradientAnimation:e(TZ||(TZ=Bu(["\n background-image: linear-gradient(\n -45deg,\n ",",\n ",",\n ",",\n ","\n );\n background-size: 400% 400%;\n border-radius: inherit;\n animation: 5s "," 5s ease infinite;\n "])),t.gold,t.magenta,t.geekblue,t.cyan,o),markdown:e(JZ||(JZ=Bu(["\n --lobe-markdown-font-size: 16px;\n --lobe-markdown-header-multiple: 1;\n --lobe-markdown-margin-multiple: 1.5;\n\n position: relative;\n\n width: 100%;\n\n font-size: var(--lobe-markdown-font-size);\n line-height: 1.6;\n word-break: break-word;\n\n p {\n margin-block: calc(var(--lobe-markdown-margin-multiple) * 1em);\n line-height: 1.6;\n letter-spacing: 0.02em;\n }\n\n h1,\n h2,\n h3,\n h4,\n h5 {\n margin-block: max(\n calc(var(--lobe-markdown-header-multiple) * var(--lobe-markdown-margin-multiple) * 0.5em),\n var(--lobe-markdown-font-size)\n );\n font-weight: 600;\n }\n\n h1 {\n font-size: calc(\n var(--lobe-markdown-font-size) * (1 + 1.5 * var(--lobe-markdown-header-multiple))\n );\n }\n\n h2 {\n font-size: calc(\n var(--lobe-markdown-font-size) * (1 + var(--lobe-markdown-header-multiple))\n );\n }\n\n h3 {\n font-size: calc(\n var(--lobe-markdown-font-size) * (1 + 0.5 * var(--lobe-markdown-header-multiple))\n );\n }\n\n h4 {\n font-size: calc(\n var(--lobe-markdown-font-size) * (1 + 0.25 * var(--lobe-markdown-header-multiple))\n );\n }\n\n h5 {\n font-size: calc(var(--lobe-markdown-font-size) * 1);\n }\n\n li {\n margin-block: calc(var(--lobe-markdown-margin-multiple) * 0.5em);\n }\n\n ul,\n ol {\n margin-block: calc(var(--lobe-markdown-margin-multiple) * 1em);\n margin-inline-start: 1em;\n list-style-position: outside;\n\n li {\n margin-inline-start: 1em;\n }\n }\n\n ol {\n li {\n &::marker {\n color: ",";\n }\n }\n }\n\n ul {\n list-style-type: none;\n\n li {\n &::before {\n content: '-';\n display: inline-block;\n margin-inline: -1em 0.5em;\n color: ",";\n }\n }\n }\n\n strong {\n font-weight: 600;\n }\n\n code:not(:has(span)) {\n display: inline-block;\n\n padding-block: 0.2em;\n padding-inline: 0.4em;\n\n font-family: ",";\n font-size: 0.875em;\n line-height: 1;\n word-break: break-word;\n\n background: ",";\n border: 1px solid ",";\n border-radius: ","px;\n }\n\n kbd {\n cursor: default;\n user-select: none;\n\n transform: translateY(-0.2em);\n\n display: inline-block;\n\n min-width: 1em;\n margin-inline: 0.25em;\n padding-block: 0.2em;\n padding-inline: 0.4em;\n\n font-family: ",";\n font-size: 0.875em;\n font-weight: 500;\n line-height: 1;\n color: ",";\n text-align: center;\n\n background: ",";\n border: 1px solid ",";\n border-radius: 0.25em;\n box-shadow: 0 2px 0 1px ",";\n\n &:hover {\n transform: translateY(0);\n box-shadow: none;\n }\n }\n\n blockquote {\n margin-block: calc(var(--lobe-markdown-margin-multiple) * 1em);\n margin-inline: 0;\n padding-block: 0;\n padding-inline: 1em;\n\n color: ",";\n\n border-inline-start: solid 4px ",";\n }\n\n hr {\n margin-block: calc(var(--lobe-markdown-margin-multiple) * 1.5em);\n\n border-color: ",";\n border-style: dashed;\n border-width: 1px;\n border-block-start: none;\n border-inline-start: none;\n border-inline-end: none;\n }\n\n details {\n margin-block: calc(var(--lobe-markdown-margin-multiple) * 1em);\n padding-block: 0.75em;\n padding-inline: 1em;\n\n background: ",";\n border: 1px solid ",";\n border-radius: ","px;\n\n summary {\n cursor: pointer;\n display: flex;\n align-items: center;\n list-style: none;\n\n &::before {\n content: '';\n\n position: absolute;\n inset-inline-end: 1.25em;\n transform: rotateZ(-45deg);\n\n display: block;\n\n width: 0.4em;\n height: 0.4em;\n\n font-family: ",";\n\n border-block-end: 1.5px solid ",";\n border-inline-end: 1.5px solid ",";\n\n transition: transform 200ms ",";\n }\n }\n\n &[open] {\n padding-block-end: 0;\n\n summary {\n padding-block-end: 12px;\n border-block-end: 1px dashed ",";\n\n &::before {\n transform: rotateZ(45deg);\n }\n }\n }\n }\n\n img,\n video {\n max-width: 100%;\n }\n\n table {\n overflow: hidden;\n display: table;\n border-spacing: 0;\n border-collapse: collapse;\n\n box-sizing: border-box;\n width: 100%;\n margin-block: calc(var(--lobe-markdown-margin-multiple) * 1em);\n\n text-align: start;\n overflow-wrap: break-word;\n\n background: ",";\n border-radius: ","px;\n box-shadow: inset 0 0 0 1px ",";\n }\n\n thead {\n background: ",";\n }\n\n tr {\n box-shadow: inset 0 -1px 0 ",";\n }\n\n th,\n td {\n padding-block: 0.75em;\n padding-inline: 1em;\n text-align: start;\n vertical-align: top;\n }\n\n pre,\n [data-code-type='highlighter'] {\n border: none;\n\n > code {\n padding: 0 !important;\n\n font-family: ",";\n font-size: 0.875em;\n line-height: 1.6;\n\n border: none !important;\n }\n }\n "])),t.colorTextSecondary,t.colorTextDescription,t.fontFamilyCode,t.colorFillSecondary,t.colorBorderSecondary,t.borderRadius,t.fontFamily,t.colorBgLayout,n?t.colorText:"#333",n?t.colorTextSecondary:"#000",n?t.colorTextSecondary:"#000",t.colorTextSecondary,t.colorBorder,t.colorBorderSecondary,t.colorFillTertiary,t.colorBorderSecondary,t.borderRadius,t.fontFamily,t.colorTextSecondary,t.colorTextSecondary,t.motionEaseOut,t.colorBorder,t.colorFillTertiary,t.borderRadius,t.colorBorderSecondary,t.colorFillQuaternary,t.colorBorderSecondary,t.fontFamilyCode),noScrollbar:e(jZ||(jZ=Bu(["\n ::-webkit-scrollbar {\n display: none;\n width: 0;\n height: 0;\n background-color: transparent;\n }\n "]))),resetLinkColor:e(qZ||(qZ=Bu(["\n cursor: pointer;\n color: ",";\n\n &:hover {\n color: ",";\n }\n "])),t.colorTextSecondary,t.colorText)}}(A)),null==t?void 0:t(A))}),[t]),d=J.useCallback((function(A){return kc(kc({},function(A){for(var e=A.isDarkMode,t={},n=0,o=Object.entries(sV);n0&&E.map((function(A){return AA.jsx(ZV,{url:A},A)})),AA.jsx(gY,{speedy:!0,children:AA.jsxs(lY,kc(kc({customStylish:C,customToken:d},B),{},{theme:I,children:[a&&AA.jsx(i1,{}),AA.jsx(iM,{className:c,style:kc({minHeight:"inherit",width:"inherit"},u),children:e})]}))})]})}));s1.displayName="LobeThemeProvider";const l1="3.5.2",g1="LobeThem: The Modern Theme for Stable Diffusion WebUI, Exquisite interface design, Highly customizable UI, and Efficiency boosting features.",c1="https://discord.gg/AYFPHvv2jT",u1="https://github.com/lobehub/sd-webui-lobe-theme",B1=u1.replace("https://github.com/",""),Q1="https://lobehub.com/",E1=location.origin,C1="https://x.com/lobehub",d1=(new Date).toISOString(),I1={arvinxx:{avatar:"https://avatars.githubusercontent.com/u/28616219?v=4",desc:"Founder, Design Engineer",name:"Arvin Xu",url:"https://github.com/arvinxx"},canisminor:{avatar:"https://avatars.githubusercontent.com/u/17870709?v=4",desc:"Founder, Design Engineer",name:"CanisMinor",url:"https://github.com/arvinxx"},lobehub:{avatar:"https://avatars.githubusercontent.com/u/131470832?v=4",desc:"Official Account",name:"LobeHub",url:"https://github.com/lobehub"}};const p1=new class{generate({image:A="/og/cover.png",url:e,title:t,description:n,date:o,webpage:r={enable:!0}}){return{"@context":"https://schema.org","@graph":[this.genWebSite(),(null==r?void 0:r.enable)&&this.genWebPage({...r,date:o,description:n,image:A,title:t,url:e}),A&&this.genImageObject({image:A,url:e}),this.genOrganization()].filter(Boolean)}}genOrganization(){return{"@id":this.getId(E1,"#organization"),"@type":"Organization",alternateName:"LobeTheme",contactPoint:{"@type":"ContactPoint",contactType:"customer support",email:"support@lobehub.com"},description:"We are a group of e/acc design-engineers, hoping to provide modern design components and tools for AIGC, and creating a technology-driven forum, fostering knowledge interaction and the exchange of ideas that may culminate in mutual inspiration and collaborative innovation.",email:"hello@lobehub.com",founders:[this.getAuthors(["arvinxx"]),this.getAuthors(["canisminor"])],image:lJ(Q1,"/icon-512x512.png"),logo:{"@type":"ImageObject",height:512,url:lJ(Q1,"/icon-512x512.png"),width:512},name:"LobeHub",sameAs:[C1,"https://github.com/lobehub","https://medium.com/@lobehub","https://www.youtube.com/@lobehub"],url:Q1}}getAuthors(A=[]){const e={"@id":this.getId(E1,"#organization"),"@type":"Organization"};if(!A||0===A.length)return e;if(1===A.length&&"lobehub"===A[0])return e;const t=A.find((A=>"lobehub"!==A));if(!t)return e;const n=null==I1?void 0:I1[t];return n?{"@type":"Person",name:n.name,url:n.url}:e}genWebPage({date:A,image:e,search:t,description:n,title:o,url:r}){const i=this.fixUrl(r),a=A?new Date(A).toISOString():d1,s=A?new Date(A).toISOString():d1,l={"@id":i,"@type":"WebPage",about:{"@id":this.getId(E1,"#organization")},breadcrumbs:{"@id":this.getId(i,"#breadcrumb")},dateModified:s,datePublished:a,description:n,image:{"@id":this.getId(i,"#primaryimage")},inLanguage:"en-US",isPartOf:{"@id":this.getId(E1,"#website")},name:this.fixTitle(o),primaryImageOfPage:{"@id":this.getId(i,"#primaryimage")},thumbnailUrl:e};return t&&(l.potentialAction={"@type":"SearchAction","query-input":"required name=search_term_string",target:`${i}?q={search_term_string}`}),l}genImageObject({image:A,url:e}){const t=this.fixUrl(e);return{"@id":this.getId(t,"#primaryimage"),"@type":"ImageObject",contentUrl:A,inLanguage:"en-US",url:A}}genWebSite(){return{"@id":this.getId(E1,"#website"),"@type":"WebSite",description:g1,inLanguage:"en-US",name:"LobeTheme",publisher:{"@id":this.getId(E1,"#organization")},url:E1}}getId(A,e){return[A,e].join("/")}fixTitle(A){return A.includes("LobeTheme")?A:`${A} ยท LobeTheme`}fixUrl(A){return lJ(E1,A)}},f1=g1,h1=J.memo((()=>{const A=J.useMemo((()=>p1.generate({description:f1,image:"https://repository-images.githubusercontent.com/606329910/7fd79db5-fd91-450c-9e95-8ccce8ffdc0b",title:"Stable Diffusion ยท LobeHub",url:"/"})),[]);return AA.jsx("script",{dangerouslySetInnerHTML:{__html:JSON.stringify(A)},id:"structured-data",type:"application/ld+json"})})),w1=(A,e,{onSuccess:t,onError:n,debug:o,id:r,onStart:i,parent:a,inverse:s}={})=>{const[l,g]=J.useState(!0),[c,u]=J.useState(),B=J.useRef(!1);return J.useEffect((()=>{var l;if(!B.current)try{const n=(a?gradioApp().querySelector(a):gradioApp()).querySelector(e);n?(r&&(n.id=r),null==i||i(n),s&&A.current?n.append(A.current):null==(l=A.current)||l.append(n),u(n),null==t||t(n),B.current=!0,g(!1),o&&uA.success(`๐Ÿคฏ ${o}`)):o&&uA.error(`๐Ÿคฏ ${o}`,`Element not found for selector: ${e}`)}catch(c){console.error(c),null==n||n(c),g(!1),o&&uA.error(`๐Ÿคฏ ${o}`,c)}}),[]),{element:c,isLoaded:!l,isLoading:l}},D1={convert(A){const e=/\{|\[|\}|\]|[^{}[\]]+/gmu;let t=D1.convertStr(A);const n=D1.convertStr2Array(t);t=D1.convertArray2Str(n);let o=[];const r={"[":{multiplier:1/1.05,stack:[]},"{":{multiplier:1.05,stack:[]}};function i(A,e){for(let t=A;t0&&i(e.stack.pop(),e.multiplier)}else o.push([A,1])}for(const l of Object.keys(r))for(const A of r[l].stack)i(A,r[l].multiplier);0===o.length&&(o=[["",1]]);let a=0;for(;a+1A.map((A=>{if(A.includes("<"))return A;const e=A.replaceAll(/\s+/g," ").replaceAll(/๏ผŒ|\.\|ใ€‚/g,",").replaceAll(/โ€œ|โ€˜|โ€|"|\/'/g,"").replaceAll(", ",",").replaceAll(",,",",").replaceAll(",",", ");return D1.convertStr2Array(e).join(", ")})).join(", "),convertStr:A=>A.replaceAll("๏ผš",":").replaceAll("๏ผˆ","(").replaceAll("๏ผ‰",")"),convertStr2Array(A){const e=/([()<>[\]])/g;return(A=>{let t=(A=>{const t=[];let n,o=0,r=0;for(;null!==(n=e.exec(A));)0===r&&n.index>o&&(t.push(A.slice(o,n.index)),o=n.index),"("===n[0]||"<"===n[0]||"["===n[0]?r++:")"!==n[0]&&">"!==n[0]&&"]"!==n[0]||r--,0===r&&(t.push(A.slice(o,n.index+1)),o=n.index+1);return o(A=>{const t=[];let n=0,o=!1;for(let r=0;r""!==A))})(A).filter((A=>!/^[\s,๏ผŒ]+$/.test(A))).filter(Boolean).sort(((A,e)=>A.includes("<")&&!e.includes("<")?1:e.includes("<")&&!A.includes("<")?-1:0))},dispatchInputEvent(A){let e=new Event("input");Object.defineProperty(e,"target",{value:A}),A.dispatchEvent(e)},onClickConvert(A){const e=gradioApp().querySelector(`#${A}2img_prompt > label > textarea`),t=D1.convert(e.value);e.value=null===t.match(/^masterpiece, best quality,/)?""+t:t,D1.dispatchInputEvent(e);const n=gradioApp().querySelector(`#${A}2img_neg_prompt > label > textarea`),o=D1.convert(n.value);n.value=null===o.match(/^lowres,/)?0===o.length?"":""+o:o,D1.dispatchInputEvent(n)},round:A=>Math.round(1e4*A)/1e4},m1=A=>{const e=J.useRef((A=>{const e=document.createElement("button");return e.id=`${A}2img_formatconvert`,e.type="button",e.innerHTML="๐Ÿช„",e.title="Format prompt~๐Ÿช„",e.className="lg secondary gradio-button tool svelte-cmf5ev",e.addEventListener("click",(()=>D1.onClickConvert(A))),e})(A));w1(e,`#${A}2img_tools > div.form`,{inverse:!0})},y1=J.memo((()=>(m1("txt"),m1("img"),null))),b1={type:"logger",log(A){this.output("log",A)},warn(A){this.output("warn",A)},error(A){this.output("error",A)},output(A,e){console&&console[A]&&console[A].apply(console,e)}};class v1{constructor(A){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this.init(A,e)}init(A){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this.prefix=e.prefix||"i18next:",this.logger=A||b1,this.options=e,this.debug=e.debug}log(){for(var A=arguments.length,e=new Array(A),t=0;t{this.observers[A]||(this.observers[A]=new Map);const t=this.observers[A].get(e)||0;this.observers[A].set(e,t+1)})),this}off(A,e){this.observers[A]&&(e?this.observers[A].delete(e):delete this.observers[A])}emit(A){for(var e=arguments.length,t=new Array(e>1?e-1:0),n=1;n{let[e,n]=A;for(let o=0;o{let[n,o]=e;for(let r=0;r{A=t,e=n}));return t.resolve=A,t.reject=e,t}function S1(A){return null==A?"":""+A}const F1=/###/g;function N1(A,e,t){function n(A){return A&&A.indexOf("###")>-1?A.replace(F1,"."):A}function o(){return!A||"string"==typeof A}const r="string"!=typeof e?e:e.split(".");let i=0;for(;i":">",'"':""","'":"'","/":"/"};function O1(A){return"string"==typeof A?A.replace(/[&<>"'\/]/g,(A=>G1[A])):A}const U1=[" ",",","?","!",";"],K1=new class{constructor(A){this.capacity=A,this.regExpMap=new Map,this.regExpQueue=[]}getRegExp(A){const e=this.regExpMap.get(A);if(void 0!==e)return e;const t=new RegExp(A);return this.regExpQueue.length===this.capacity&&this.regExpMap.delete(this.regExpQueue.shift()),this.regExpMap.set(A,t),this.regExpQueue.push(A),t}}(20);function Y1(A,e){let t=arguments.length>2&&void 0!==arguments[2]?arguments[2]:".";if(!A)return;if(A[e])return A[e];const n=e.split(t);let o=A;for(let r=0;r-1&&i0?A.replace("_","-"):A}class J1 extends M1{constructor(A){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{ns:["translation"],defaultNS:"translation"};super(),this.data=A||{},this.options=e,void 0===this.options.keySeparator&&(this.options.keySeparator="."),void 0===this.options.ignoreJSONStructure&&(this.options.ignoreJSONStructure=!0)}addNamespaces(A){this.options.ns.indexOf(A)<0&&this.options.ns.push(A)}removeNamespaces(A){const e=this.options.ns.indexOf(A);e>-1&&this.options.ns.splice(e,1)}getResource(A,e,t){let n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};const o=void 0!==n.keySeparator?n.keySeparator:this.options.keySeparator,r=void 0!==n.ignoreJSONStructure?n.ignoreJSONStructure:this.options.ignoreJSONStructure;let i;A.indexOf(".")>-1?i=A.split("."):(i=[A,e],t&&(Array.isArray(t)?i.push(...t):"string"==typeof t&&o?i.push(...t.split(o)):i.push(t)));const a=L1(this.data,i);return!a&&!e&&!t&&A.indexOf(".")>-1&&(A=i[0],e=i[1],t=i.slice(2).join(".")),a||!r||"string"!=typeof t?a:Y1(this.data&&this.data[A]&&this.data[A][e],t,o)}addResource(A,e,t,n){let o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:{silent:!1};const r=void 0!==o.keySeparator?o.keySeparator:this.options.keySeparator;let i=[A,e];t&&(i=i.concat(r?t.split(r):t)),A.indexOf(".")>-1&&(i=A.split("."),n=e,e=i[1]),this.addNamespaces(e),R1(this.data,i,n),o.silent||this.emit("added",A,e,t,n)}addResources(A,e,t){let n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{silent:!1};for(const o in t)"string"!=typeof t[o]&&"[object Array]"!==Object.prototype.toString.apply(t[o])||this.addResource(A,e,o,t[o],{silent:!0});n.silent||this.emit("added",A,e,t)}addResourceBundle(A,e,t,n,o){let r=arguments.length>5&&void 0!==arguments[5]?arguments[5]:{silent:!1,skipCopy:!1},i=[A,e];A.indexOf(".")>-1&&(i=A.split("."),n=t,t=e,e=i[1]),this.addNamespaces(e);let a=L1(this.data,i)||{};r.skipCopy||(t=JSON.parse(JSON.stringify(t))),n?P1(a,t,o):a={...a,...t},R1(this.data,i,a),r.silent||this.emit("added",A,e,t)}removeResourceBundle(A,e){this.hasResourceBundle(A,e)&&delete this.data[A][e],this.removeNamespaces(e),this.emit("removed",A,e)}hasResourceBundle(A,e){return void 0!==this.getResource(A,e)}getResourceBundle(A,e){return e||(e=this.options.defaultNS),"v1"===this.options.compatibilityAPI?{...this.getResource(A,e)}:this.getResource(A,e)}getDataByLanguage(A){return this.data[A]}hasLanguageSomeTranslations(A){const e=this.getDataByLanguage(A);return!!(e&&Object.keys(e)||[]).find((A=>e[A]&&Object.keys(e[A]).length>0))}toJSON(){return this.data}}var j1={processors:{},addPostProcessor(A){this.processors[A.name]=A},handle(A,e,t,n,o){return A.forEach((A=>{this.processors[A]&&(e=this.processors[A].process(e,t,n,o))})),e}};const q1={};class $1 extends M1{constructor(A){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};super(),function(A,e,t){A.forEach((A=>{e[A]&&(t[A]=e[A])}))}(["resourceStore","languageUtils","pluralResolver","interpolator","backendConnector","i18nFormat","utils"],A,this),this.options=e,void 0===this.options.keySeparator&&(this.options.keySeparator="."),this.logger=k1.create("translator")}changeLanguage(A){A&&(this.language=A)}exists(A){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{interpolation:{}};if(null==A)return!1;const t=this.resolve(A,e);return t&&void 0!==t.res}extractFromKey(A,e){let t=void 0!==e.nsSeparator?e.nsSeparator:this.options.nsSeparator;void 0===t&&(t=":");const n=void 0!==e.keySeparator?e.keySeparator:this.options.keySeparator;let o=e.ns||this.options.defaultNS||[];const r=t&&A.indexOf(t)>-1,i=!(this.options.userDefinedKeySeparator||e.keySeparator||this.options.userDefinedNsSeparator||e.nsSeparator||function(A,e,t){e=e||"",t=t||"";const n=U1.filter((A=>e.indexOf(A)<0&&t.indexOf(A)<0));if(0===n.length)return!0;const o=K1.getRegExp(`(${n.map((A=>"?"===A?"\\?":A)).join("|")})`);let r=!o.test(A);if(!r){const e=A.indexOf(t);e>0&&!o.test(A.substring(0,e))&&(r=!0)}return r}(A,t,n));if(r&&!i){const e=A.match(this.interpolator.nestingRegexp);if(e&&e.length>0)return{key:A,namespaces:o};const r=A.split(t);(t!==n||t===n&&this.options.ns.indexOf(r[0])>-1)&&(o=r.shift()),A=r.join(n)}return"string"==typeof o&&(o=[o]),{key:A,namespaces:o}}translate(A,e,t){if("object"!=typeof e&&this.options.overloadTranslationOptionHandler&&(e=this.options.overloadTranslationOptionHandler(arguments)),"object"==typeof e&&(e={...e}),e||(e={}),null==A)return"";Array.isArray(A)||(A=[String(A)]);const n=void 0!==e.returnDetails?e.returnDetails:this.options.returnDetails,o=void 0!==e.keySeparator?e.keySeparator:this.options.keySeparator,{key:r,namespaces:i}=this.extractFromKey(A[A.length-1],e),a=i[i.length-1],s=e.lng||this.language,l=e.appendNamespaceToCIMode||this.options.appendNamespaceToCIMode;if(s&&"cimode"===s.toLowerCase()){if(l){const A=e.nsSeparator||this.options.nsSeparator;return n?{res:`${a}${A}${r}`,usedKey:r,exactUsedKey:r,usedLng:s,usedNS:a,usedParams:this.getUsedParamsDetails(e)}:`${a}${A}${r}`}return n?{res:r,usedKey:r,exactUsedKey:r,usedLng:s,usedNS:a,usedParams:this.getUsedParamsDetails(e)}:r}const g=this.resolve(A,e);let c=g&&g.res;const u=g&&g.usedKey||r,B=g&&g.exactUsedKey||r,Q=Object.prototype.toString.apply(c),E=void 0!==e.joinArrays?e.joinArrays:this.options.joinArrays,C=!this.i18nFormat||this.i18nFormat.handleAsObject;if(C&&c&&("string"!=typeof c&&"boolean"!=typeof c&&"number"!=typeof c)&&["[object Number]","[object Function]","[object RegExp]"].indexOf(Q)<0&&("string"!=typeof E||"[object Array]"!==Q)){if(!e.returnObjects&&!this.options.returnObjects){this.options.returnedObjectHandler||this.logger.warn("accessing an object - but returnObjects options is not enabled!");const A=this.options.returnedObjectHandler?this.options.returnedObjectHandler(u,c,{...e,ns:i}):`key '${r} (${this.language})' returned an object instead of string.`;return n?(g.res=A,g.usedParams=this.getUsedParamsDetails(e),g):A}if(o){const A="[object Array]"===Q,t=A?[]:{},n=A?B:u;for(const r in c)if(Object.prototype.hasOwnProperty.call(c,r)){const A=`${n}${o}${r}`;t[r]=this.translate(A,{...e,joinArrays:!1,ns:i}),t[r]===A&&(t[r]=c[r])}c=t}}else if(C&&"string"==typeof E&&"[object Array]"===Q)c=c.join(E),c&&(c=this.extendTranslation(c,A,e,t));else{let n=!1,i=!1;const l=void 0!==e.count&&"string"!=typeof e.count,u=$1.hasDefaultValue(e),B=l?this.pluralResolver.getSuffix(s,e.count,e):"",Q=e.ordinal&&l?this.pluralResolver.getSuffix(s,e.count,{ordinal:!1}):"",E=l&&!e.ordinal&&0===e.count&&this.pluralResolver.shouldUseIntlApi(),C=E&&e[`defaultValue${this.options.pluralSeparator}zero`]||e[`defaultValue${B}`]||e[`defaultValue${Q}`]||e.defaultValue;!this.isValidLookup(c)&&u&&(n=!0,c=C),this.isValidLookup(c)||(i=!0,c=r);const d=(e.missingKeyNoValueFallbackToKey||this.options.missingKeyNoValueFallbackToKey)&&i?void 0:c,I=u&&C!==c&&this.options.updateMissing;if(i||n||I){if(this.logger.log(I?"updateKey":"missingKey",s,a,r,I?C:c),o){const A=this.resolve(r,{...e,keySeparator:!1});A&&A.res&&this.logger.warn("Seems the loaded translations were in flat JSON format instead of nested. Either set keySeparator: false on init or make sure your translations are published in nested format.")}let A=[];const t=this.languageUtils.getFallbackCodes(this.options.fallbackLng,e.lng||this.language);if("fallback"===this.options.saveMissingTo&&t&&t[0])for(let e=0;e{const o=u&&n!==c?n:d;this.options.missingKeyHandler?this.options.missingKeyHandler(A,a,t,o,I,e):this.backendConnector&&this.backendConnector.saveMissing&&this.backendConnector.saveMissing(A,a,t,o,I,e),this.emit("missingKey",A,a,t,c)};this.options.saveMissing&&(this.options.saveMissingPlurals&&l?A.forEach((A=>{const t=this.pluralResolver.getSuffixes(A,e);E&&e[`defaultValue${this.options.pluralSeparator}zero`]&&t.indexOf(`${this.options.pluralSeparator}zero`)<0&&t.push(`${this.options.pluralSeparator}zero`),t.forEach((t=>{n([A],r+t,e[`defaultValue${t}`]||C)}))})):n(A,r,C))}c=this.extendTranslation(c,A,e,g,t),i&&c===r&&this.options.appendNamespaceToMissingKey&&(c=`${a}:${r}`),(i||n)&&this.options.parseMissingKeyHandler&&(c="v1"!==this.options.compatibilityAPI?this.options.parseMissingKeyHandler(this.options.appendNamespaceToMissingKey?`${a}:${r}`:r,n?c:void 0):this.options.parseMissingKeyHandler(c))}return n?(g.res=c,g.usedParams=this.getUsedParamsDetails(e),g):c}extendTranslation(A,e,t,n,o){var r=this;if(this.i18nFormat&&this.i18nFormat.parse)A=this.i18nFormat.parse(A,{...this.options.interpolation.defaultVariables,...t},t.lng||this.language||n.usedLng,n.usedNS,n.usedKey,{resolved:n});else if(!t.skipInterpolation){t.interpolation&&this.interpolator.init({...t,interpolation:{...this.options.interpolation,...t.interpolation}});const i="string"==typeof A&&(t&&t.interpolation&&void 0!==t.interpolation.skipOnVariables?t.interpolation.skipOnVariables:this.options.interpolation.skipOnVariables);let a;if(i){const e=A.match(this.interpolator.nestingRegexp);a=e&&e.length}let s=t.replace&&"string"!=typeof t.replace?t.replace:t;if(this.options.interpolation.defaultVariables&&(s={...this.options.interpolation.defaultVariables,...s}),A=this.interpolator.interpolate(A,s,t.lng||this.language,t),i){const e=A.match(this.interpolator.nestingRegexp);a<(e&&e.length)&&(t.nest=!1)}!t.lng&&"v1"!==this.options.compatibilityAPI&&n&&n.res&&(t.lng=n.usedLng),!1!==t.nest&&(A=this.interpolator.nest(A,(function(){for(var A=arguments.length,n=new Array(A),i=0;i1&&void 0!==arguments[1]?arguments[1]:{};return"string"==typeof A&&(A=[A]),A.forEach((A=>{if(this.isValidLookup(e))return;const a=this.extractFromKey(A,i),s=a.key;t=s;let l=a.namespaces;this.options.fallbackNS&&(l=l.concat(this.options.fallbackNS));const g=void 0!==i.count&&"string"!=typeof i.count,c=g&&!i.ordinal&&0===i.count&&this.pluralResolver.shouldUseIntlApi(),u=void 0!==i.context&&("string"==typeof i.context||"number"==typeof i.context)&&""!==i.context,B=i.lngs?i.lngs:this.languageUtils.toResolveHierarchy(i.lng||this.language,i.fallbackLng);l.forEach((A=>{this.isValidLookup(e)||(r=A,!q1[`${B[0]}-${A}`]&&this.utils&&this.utils.hasLoadedNamespace&&!this.utils.hasLoadedNamespace(r)&&(q1[`${B[0]}-${A}`]=!0,this.logger.warn(`key "${t}" for languages "${B.join(", ")}" won't get resolved as namespace "${r}" was not yet loaded`,"This means something IS WRONG in your setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!")),B.forEach((t=>{if(this.isValidLookup(e))return;o=t;const r=[s];if(this.i18nFormat&&this.i18nFormat.addLookupKeys)this.i18nFormat.addLookupKeys(r,s,t,A,i);else{let A;g&&(A=this.pluralResolver.getSuffix(t,i.count,i));const e=`${this.options.pluralSeparator}zero`,n=`${this.options.pluralSeparator}ordinal${this.options.pluralSeparator}`;if(g&&(r.push(s+A),i.ordinal&&0===A.indexOf(n)&&r.push(s+A.replace(n,this.options.pluralSeparator)),c&&r.push(s+e)),u){const t=`${s}${this.options.contextSeparator}${i.context}`;r.push(t),g&&(r.push(t+A),i.ordinal&&0===A.indexOf(n)&&r.push(t+A.replace(n,this.options.pluralSeparator)),c&&r.push(t+e))}}let a;for(;a=r.pop();)this.isValidLookup(e)||(n=a,e=this.getResource(t,A,a,i))})))}))})),{res:e,usedKey:t,exactUsedKey:n,usedLng:o,usedNS:r}}isValidLookup(A){return!(void 0===A||!this.options.returnNull&&null===A||!this.options.returnEmptyString&&""===A)}getResource(A,e,t){let n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};return this.i18nFormat&&this.i18nFormat.getResource?this.i18nFormat.getResource(A,e,t,n):this.resourceStore.getResource(A,e,t,n)}getUsedParamsDetails(){let A=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const e=["defaultValue","ordinal","context","replace","lng","lngs","fallbackLng","ns","keySeparator","nsSeparator","returnObjects","returnDetails","joinArrays","postProcess","interpolation"],t=A.replace&&"string"!=typeof A.replace;let n=t?A.replace:A;if(t&&void 0!==A.count&&(n.count=A.count),this.options.interpolation.defaultVariables&&(n={...this.options.interpolation.defaultVariables,...n}),!t){n={...n};for(const A of e)delete n[A]}return n}static hasDefaultValue(A){const e="defaultValue";for(const t in A)if(Object.prototype.hasOwnProperty.call(A,t)&&e===t.substring(0,12)&&void 0!==A[t])return!0;return!1}}function z1(A){return A.charAt(0).toUpperCase()+A.slice(1)}class W1{constructor(A){this.options=A,this.supportedLngs=this.options.supportedLngs||!1,this.logger=k1.create("languageUtils")}getScriptPartFromCode(A){if(!(A=T1(A))||A.indexOf("-")<0)return null;const e=A.split("-");return 2===e.length?null:(e.pop(),"x"===e[e.length-1].toLowerCase()?null:this.formatLanguageCode(e.join("-")))}getLanguagePartFromCode(A){if(!(A=T1(A))||A.indexOf("-")<0)return A;const e=A.split("-");return this.formatLanguageCode(e[0])}formatLanguageCode(A){if("string"==typeof A&&A.indexOf("-")>-1){const e=["hans","hant","latn","cyrl","cans","mong","arab"];let t=A.split("-");return this.options.lowerCaseLng?t=t.map((A=>A.toLowerCase())):2===t.length?(t[0]=t[0].toLowerCase(),t[1]=t[1].toUpperCase(),e.indexOf(t[1].toLowerCase())>-1&&(t[1]=z1(t[1].toLowerCase()))):3===t.length&&(t[0]=t[0].toLowerCase(),2===t[1].length&&(t[1]=t[1].toUpperCase()),"sgn"!==t[0]&&2===t[2].length&&(t[2]=t[2].toUpperCase()),e.indexOf(t[1].toLowerCase())>-1&&(t[1]=z1(t[1].toLowerCase())),e.indexOf(t[2].toLowerCase())>-1&&(t[2]=z1(t[2].toLowerCase()))),t.join("-")}return this.options.cleanCode||this.options.lowerCaseLng?A.toLowerCase():A}isSupportedCode(A){return("languageOnly"===this.options.load||this.options.nonExplicitSupportedLngs)&&(A=this.getLanguagePartFromCode(A)),!this.supportedLngs||!this.supportedLngs.length||this.supportedLngs.indexOf(A)>-1}getBestMatchFromCodes(A){if(!A)return null;let e;return A.forEach((A=>{if(e)return;const t=this.formatLanguageCode(A);this.options.supportedLngs&&!this.isSupportedCode(t)||(e=t)})),!e&&this.options.supportedLngs&&A.forEach((A=>{if(e)return;const t=this.getLanguagePartFromCode(A);if(this.isSupportedCode(t))return e=t;e=this.options.supportedLngs.find((A=>A===t?A:A.indexOf("-")<0&&t.indexOf("-")<0?void 0:A.indexOf("-")>0&&t.indexOf("-")<0&&A.substring(0,A.indexOf("-"))===t||0===A.indexOf(t)&&t.length>1?A:void 0))})),e||(e=this.getFallbackCodes(this.options.fallbackLng)[0]),e}getFallbackCodes(A,e){if(!A)return[];if("function"==typeof A&&(A=A(e)),"string"==typeof A&&(A=[A]),"[object Array]"===Object.prototype.toString.apply(A))return A;if(!e)return A.default||[];let t=A[e];return t||(t=A[this.getScriptPartFromCode(e)]),t||(t=A[this.formatLanguageCode(e)]),t||(t=A[this.getLanguagePartFromCode(e)]),t||(t=A.default),t||[]}toResolveHierarchy(A,e){const t=this.getFallbackCodes(e||this.options.fallbackLng||[],A),n=[],o=A=>{A&&(this.isSupportedCode(A)?n.push(A):this.logger.warn(`rejecting language code not found in supportedLngs: ${A}`))};return"string"==typeof A&&(A.indexOf("-")>-1||A.indexOf("_")>-1)?("languageOnly"!==this.options.load&&o(this.formatLanguageCode(A)),"languageOnly"!==this.options.load&&"currentOnly"!==this.options.load&&o(this.getScriptPartFromCode(A)),"currentOnly"!==this.options.load&&o(this.getLanguagePartFromCode(A))):"string"==typeof A&&o(this.formatLanguageCode(A)),t.forEach((A=>{n.indexOf(A)<0&&o(this.formatLanguageCode(A))})),n}}let _1=[{lngs:["ach","ak","am","arn","br","fil","gun","ln","mfe","mg","mi","oc","pt","pt-BR","tg","tl","ti","tr","uz","wa"],nr:[1,2],fc:1},{lngs:["af","an","ast","az","bg","bn","ca","da","de","dev","el","en","eo","es","et","eu","fi","fo","fur","fy","gl","gu","ha","hi","hu","hy","ia","it","kk","kn","ku","lb","mai","ml","mn","mr","nah","nap","nb","ne","nl","nn","no","nso","pa","pap","pms","ps","pt-PT","rm","sco","se","si","so","son","sq","sv","sw","ta","te","tk","ur","yo"],nr:[1,2],fc:2},{lngs:["ay","bo","cgg","fa","ht","id","ja","jbo","ka","km","ko","ky","lo","ms","sah","su","th","tt","ug","vi","wo","zh"],nr:[1],fc:3},{lngs:["be","bs","cnr","dz","hr","ru","sr","uk"],nr:[1,2,5],fc:4},{lngs:["ar"],nr:[0,1,2,3,11,100],fc:5},{lngs:["cs","sk"],nr:[1,2,5],fc:6},{lngs:["csb","pl"],nr:[1,2,5],fc:7},{lngs:["cy"],nr:[1,2,3,8],fc:8},{lngs:["fr"],nr:[1,2],fc:9},{lngs:["ga"],nr:[1,2,3,7,11],fc:10},{lngs:["gd"],nr:[1,2,3,20],fc:11},{lngs:["is"],nr:[1,2],fc:12},{lngs:["jv"],nr:[0,1],fc:13},{lngs:["kw"],nr:[1,2,3,4],fc:14},{lngs:["lt"],nr:[1,2,10],fc:15},{lngs:["lv"],nr:[1,2,0],fc:16},{lngs:["mk"],nr:[1,2],fc:17},{lngs:["mnk"],nr:[0,1,2],fc:18},{lngs:["mt"],nr:[1,2,11,20],fc:19},{lngs:["or"],nr:[2,1],fc:2},{lngs:["ro"],nr:[1,2,20],fc:20},{lngs:["sl"],nr:[5,1,2,3],fc:21},{lngs:["he","iw"],nr:[1,2,20,21],fc:22}],X1={1:function(A){return Number(A>1)},2:function(A){return Number(1!=A)},3:function(A){return 0},4:function(A){return Number(A%10==1&&A%100!=11?0:A%10>=2&&A%10<=4&&(A%100<10||A%100>=20)?1:2)},5:function(A){return Number(0==A?0:1==A?1:2==A?2:A%100>=3&&A%100<=10?3:A%100>=11?4:5)},6:function(A){return Number(1==A?0:A>=2&&A<=4?1:2)},7:function(A){return Number(1==A?0:A%10>=2&&A%10<=4&&(A%100<10||A%100>=20)?1:2)},8:function(A){return Number(1==A?0:2==A?1:8!=A&&11!=A?2:3)},9:function(A){return Number(A>=2)},10:function(A){return Number(1==A?0:2==A?1:A<7?2:A<11?3:4)},11:function(A){return Number(1==A||11==A?0:2==A||12==A?1:A>2&&A<20?2:3)},12:function(A){return Number(A%10!=1||A%100==11)},13:function(A){return Number(0!==A)},14:function(A){return Number(1==A?0:2==A?1:3==A?2:3)},15:function(A){return Number(A%10==1&&A%100!=11?0:A%10>=2&&(A%100<10||A%100>=20)?1:2)},16:function(A){return Number(A%10==1&&A%100!=11?0:0!==A?1:2)},17:function(A){return Number(1==A||A%10==1&&A%100!=11?0:1)},18:function(A){return Number(0==A?0:1==A?1:2)},19:function(A){return Number(1==A?0:0==A||A%100>1&&A%100<11?1:A%100>10&&A%100<20?2:3)},20:function(A){return Number(1==A?0:0==A||A%100>0&&A%100<20?1:2)},21:function(A){return Number(A%100==1?1:A%100==2?2:A%100==3||A%100==4?3:0)},22:function(A){return Number(1==A?0:2==A?1:(A<0||A>10)&&A%10==0?2:3)}};const V1=["v1","v2","v3"],Z1=["v4"],A8={zero:0,one:1,two:2,few:3,many:4,other:5};class e8{constructor(A){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this.languageUtils=A,this.options=e,this.logger=k1.create("pluralResolver"),this.options.compatibilityJSON&&!Z1.includes(this.options.compatibilityJSON)||"undefined"!=typeof Intl&&Intl.PluralRules||(this.options.compatibilityJSON="v3",this.logger.error("Your environment seems not to be Intl API compatible, use an Intl.PluralRules polyfill. Will fallback to the compatibilityJSON v3 format handling.")),this.rules=function(){const A={};return _1.forEach((e=>{e.lngs.forEach((t=>{A[t]={numbers:e.nr,plurals:X1[e.fc]}}))})),A}()}addRule(A,e){this.rules[A]=e}getRule(A){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(this.shouldUseIntlApi())try{return new Intl.PluralRules(T1("dev"===A?"en":A),{type:e.ordinal?"ordinal":"cardinal"})}catch(t){return}return this.rules[A]||this.rules[this.languageUtils.getLanguagePartFromCode(A)]}needsPlural(A){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const t=this.getRule(A,e);return this.shouldUseIntlApi()?t&&t.resolvedOptions().pluralCategories.length>1:t&&t.numbers.length>1}getPluralFormsOfKey(A,e){let t=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return this.getSuffixes(A,t).map((A=>`${e}${A}`))}getSuffixes(A){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const t=this.getRule(A,e);return t?this.shouldUseIntlApi()?t.resolvedOptions().pluralCategories.sort(((A,e)=>A8[A]-A8[e])).map((A=>`${this.options.prepend}${e.ordinal?`ordinal${this.options.prepend}`:""}${A}`)):t.numbers.map((t=>this.getSuffix(A,t,e))):[]}getSuffix(A,e){let t=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};const n=this.getRule(A,t);return n?this.shouldUseIntlApi()?`${this.options.prepend}${t.ordinal?`ordinal${this.options.prepend}`:""}${n.select(e)}`:this.getSuffixRetroCompatible(n,e):(this.logger.warn(`no plural rule found for: ${A}`),"")}getSuffixRetroCompatible(A,e){const t=A.noAbs?A.plurals(e):A.plurals(Math.abs(e));let n=A.numbers[t];this.options.simplifyPluralSuffix&&2===A.numbers.length&&1===A.numbers[0]&&(2===n?n="plural":1===n&&(n=""));const o=()=>this.options.prepend&&n.toString()?this.options.prepend+n.toString():n.toString();return"v1"===this.options.compatibilityJSON?1===n?"":"number"==typeof n?`_plural_${n.toString()}`:o():"v2"===this.options.compatibilityJSON||this.options.simplifyPluralSuffix&&2===A.numbers.length&&1===A.numbers[0]?o():this.options.prepend&&t.toString()?this.options.prepend+t.toString():t.toString()}shouldUseIntlApi(){return!V1.includes(this.options.compatibilityJSON)}}function t8(A,e,t){let n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:".",o=!(arguments.length>4&&void 0!==arguments[4])||arguments[4],r=function(A,e,t){const n=L1(A,t);return void 0!==n?n:L1(e,t)}(A,e,t);return!r&&o&&"string"==typeof t&&(r=Y1(A,t,n),void 0===r&&(r=Y1(e,t,n))),r}class n8{constructor(){let A=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.logger=k1.create("interpolator"),this.options=A,this.format=A.interpolation&&A.interpolation.format||(A=>A),this.init(A)}init(){let A=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};A.interpolation||(A.interpolation={escapeValue:!0});const{escape:e,escapeValue:t,useRawValueToEscape:n,prefix:o,prefixEscaped:r,suffix:i,suffixEscaped:a,formatSeparator:s,unescapeSuffix:l,unescapePrefix:g,nestingPrefix:c,nestingPrefixEscaped:u,nestingSuffix:B,nestingSuffixEscaped:Q,nestingOptionsSeparator:E,maxReplaces:C,alwaysFormat:d}=A.interpolation;this.escape=void 0!==e?e:O1,this.escapeValue=void 0===t||t,this.useRawValueToEscape=void 0!==n&&n,this.prefix=o?H1(o):r||"{{",this.suffix=i?H1(i):a||"}}",this.formatSeparator=s||",",this.unescapePrefix=l?"":g||"-",this.unescapeSuffix=this.unescapePrefix?"":l||"",this.nestingPrefix=c?H1(c):u||H1("$t("),this.nestingSuffix=B?H1(B):Q||H1(")"),this.nestingOptionsSeparator=E||",",this.maxReplaces=C||1e3,this.alwaysFormat=void 0!==d&&d,this.resetRegExp()}reset(){this.options&&this.init(this.options)}resetRegExp(){const A=(A,e)=>A&&A.source===e?(A.lastIndex=0,A):new RegExp(e,"g");this.regexp=A(this.regexp,`${this.prefix}(.+?)${this.suffix}`),this.regexpUnescape=A(this.regexpUnescape,`${this.prefix}${this.unescapePrefix}(.+?)${this.unescapeSuffix}${this.suffix}`),this.nestingRegexp=A(this.nestingRegexp,`${this.nestingPrefix}(.+?)${this.nestingSuffix}`)}interpolate(A,e,t,n){let o,r,i;const a=this.options&&this.options.interpolation&&this.options.interpolation.defaultVariables||{};function s(A){return A.replace(/\$/g,"$$$$")}const l=A=>{if(A.indexOf(this.formatSeparator)<0){const o=t8(e,a,A,this.options.keySeparator,this.options.ignoreJSONStructure);return this.alwaysFormat?this.format(o,void 0,t,{...n,...e,interpolationkey:A}):o}const o=A.split(this.formatSeparator),r=o.shift().trim(),i=o.join(this.formatSeparator).trim();return this.format(t8(e,a,r,this.options.keySeparator,this.options.ignoreJSONStructure),i,t,{...n,...e,interpolationkey:r})};this.resetRegExp();const g=n&&n.missingInterpolationHandler||this.options.missingInterpolationHandler,c=n&&n.interpolation&&void 0!==n.interpolation.skipOnVariables?n.interpolation.skipOnVariables:this.options.interpolation.skipOnVariables;return[{regex:this.regexpUnescape,safeValue:A=>s(A)},{regex:this.regexp,safeValue:A=>this.escapeValue?s(this.escape(A)):s(A)}].forEach((e=>{for(i=0;o=e.regex.exec(A);){const t=o[1].trim();if(r=l(t),void 0===r)if("function"==typeof g){const e=g(A,o,n);r="string"==typeof e?e:""}else if(n&&Object.prototype.hasOwnProperty.call(n,t))r="";else{if(c){r=o[0];continue}this.logger.warn(`missed to pass in variable ${t} for interpolating ${A}`),r=""}else"string"==typeof r||this.useRawValueToEscape||(r=S1(r));const a=e.safeValue(r);if(A=A.replace(o[0],a),c?(e.regex.lastIndex+=r.length,e.regex.lastIndex-=o[0].length):e.regex.lastIndex=0,i++,i>=this.maxReplaces)break}})),A}nest(A,e){let t,n,o,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};function i(A,e){const t=this.nestingOptionsSeparator;if(A.indexOf(t)<0)return A;const n=A.split(new RegExp(`${t}[ ]*{`));let r=`{${n[1]}`;A=n[0],r=this.interpolate(r,o);const i=r.match(/'/g),a=r.match(/"/g);(i&&i.length%2==0&&!a||a.length%2!=0)&&(r=r.replace(/'/g,'"'));try{o=JSON.parse(r),e&&(o={...e,...o})}catch(R3){return this.logger.warn(`failed parsing options string in nesting for key ${A}`,R3),`${A}${t}${r}`}return o.defaultValue&&o.defaultValue.indexOf(this.prefix)>-1&&delete o.defaultValue,A}for(;t=this.nestingRegexp.exec(A);){let a=[];o={...r},o=o.replace&&"string"!=typeof o.replace?o.replace:o,o.applyPostProcessor=!1,delete o.defaultValue;let s=!1;if(-1!==t[0].indexOf(this.formatSeparator)&&!/{.*}/.test(t[1])){const A=t[1].split(this.formatSeparator).map((A=>A.trim()));t[1]=A.shift(),a=A,s=!0}if(n=e(i.call(this,t[1].trim(),o),o),n&&t[0]===A&&"string"!=typeof n)return n;"string"!=typeof n&&(n=S1(n)),n||(this.logger.warn(`missed to resolve ${t[1]} for nesting ${A}`),n=""),s&&(n=a.reduce(((A,e)=>this.format(A,e,r.lng,{...r,interpolationkey:t[1].trim()})),n.trim())),A=A.replace(t[0],n),this.regexp.lastIndex=0}return A}}function o8(A){const e={};return function(t,n,o){const r=n+JSON.stringify(o);let i=e[r];return i||(i=A(T1(n),o),e[r]=i),i(t)}}class r8{constructor(){let A=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.logger=k1.create("formatter"),this.options=A,this.formats={number:o8(((A,e)=>{const t=new Intl.NumberFormat(A,{...e});return A=>t.format(A)})),currency:o8(((A,e)=>{const t=new Intl.NumberFormat(A,{...e,style:"currency"});return A=>t.format(A)})),datetime:o8(((A,e)=>{const t=new Intl.DateTimeFormat(A,{...e});return A=>t.format(A)})),relativetime:o8(((A,e)=>{const t=new Intl.RelativeTimeFormat(A,{...e});return A=>t.format(A,e.range||"day")})),list:o8(((A,e)=>{const t=new Intl.ListFormat(A,{...e});return A=>t.format(A)}))},this.init(A)}init(A){const e=(arguments.length>1&&void 0!==arguments[1]?arguments[1]:{interpolation:{}}).interpolation;this.formatSeparator=e.formatSeparator?e.formatSeparator:e.formatSeparator||","}add(A,e){this.formats[A.toLowerCase().trim()]=e}addCached(A,e){this.formats[A.toLowerCase().trim()]=o8(e)}format(A,e,t){let n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};return e.split(this.formatSeparator).reduce(((A,e)=>{const{formatName:o,formatOptions:r}=function(A){let e=A.toLowerCase().trim();const t={};if(A.indexOf("(")>-1){const n=A.split("(");e=n[0].toLowerCase().trim();const o=n[1].substring(0,n[1].length-1);"currency"===e&&o.indexOf(":")<0?t.currency||(t.currency=o.trim()):"relativetime"===e&&o.indexOf(":")<0?t.range||(t.range=o.trim()):o.split(";").forEach((A=>{if(!A)return;const[e,...n]=A.split(":"),o=n.join(":").trim().replace(/^'+|'+$/g,"");t[e.trim()]||(t[e.trim()]=o),"false"===o&&(t[e.trim()]=!1),"true"===o&&(t[e.trim()]=!0),isNaN(o)||(t[e.trim()]=parseInt(o,10))}))}return{formatName:e,formatOptions:t}}(e);if(this.formats[o]){let e=A;try{const i=n&&n.formatParams&&n.formatParams[n.interpolationkey]||{},a=i.locale||i.lng||n.locale||n.lng||t;e=this.formats[o](A,a,{...r,...n,...i})}catch(i){this.logger.warn(i)}return e}return this.logger.warn(`there was no format function for ${o}`),A}),A)}}class i8 extends M1{constructor(A,e,t){let n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};super(),this.backend=A,this.store=e,this.services=t,this.languageUtils=t.languageUtils,this.options=n,this.logger=k1.create("backendConnector"),this.waitingReads=[],this.maxParallelReads=n.maxParallelReads||10,this.readingCalls=0,this.maxRetries=n.maxRetries>=0?n.maxRetries:5,this.retryTimeout=n.retryTimeout>=1?n.retryTimeout:350,this.state={},this.queue=[],this.backend&&this.backend.init&&this.backend.init(t,n.backend,n)}queueLoad(A,e,t,n){const o={},r={},i={},a={};return A.forEach((A=>{let n=!0;e.forEach((e=>{const i=`${A}|${e}`;!t.reload&&this.store.hasResourceBundle(A,e)?this.state[i]=2:this.state[i]<0||(1===this.state[i]?void 0===r[i]&&(r[i]=!0):(this.state[i]=1,n=!1,void 0===r[i]&&(r[i]=!0),void 0===o[i]&&(o[i]=!0),void 0===a[e]&&(a[e]=!0)))})),n||(i[A]=!0)})),(Object.keys(o).length||Object.keys(r).length)&&this.queue.push({pending:r,pendingCount:Object.keys(r).length,loaded:{},errors:[],callback:n}),{toLoad:Object.keys(o),pending:Object.keys(r),toLoadLanguages:Object.keys(i),toLoadNamespaces:Object.keys(a)}}loaded(A,e,t){const n=A.split("|"),o=n[0],r=n[1];e&&this.emit("failedLoading",o,r,e),t&&this.store.addResourceBundle(o,r,t,void 0,void 0,{skipCopy:!0}),this.state[A]=e?-1:2;const i={};this.queue.forEach((t=>{!function(A,e,t,n){const{obj:o,k:r}=N1(A,e,Object);o[r]=o[r]||[],o[r].push(t)}(t.loaded,[o],r),function(A,e){void 0!==A.pending[e]&&(delete A.pending[e],A.pendingCount--)}(t,A),e&&t.errors.push(e),0!==t.pendingCount||t.done||(Object.keys(t.loaded).forEach((A=>{i[A]||(i[A]={});const e=t.loaded[A];e.length&&e.forEach((e=>{void 0===i[A][e]&&(i[A][e]=!0)}))})),t.done=!0,t.errors.length?t.callback(t.errors):t.callback())})),this.emit("loaded",i),this.queue=this.queue.filter((A=>!A.done))}read(A,e,t){let n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:0,o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:this.retryTimeout,r=arguments.length>5?arguments[5]:void 0;if(!A.length)return r(null,{});if(this.readingCalls>=this.maxParallelReads)return void this.waitingReads.push({lng:A,ns:e,fcName:t,tried:n,wait:o,callback:r});this.readingCalls++;const i=(i,a)=>{if(this.readingCalls--,this.waitingReads.length>0){const A=this.waitingReads.shift();this.read(A.lng,A.ns,A.fcName,A.tried,A.wait,A.callback)}i&&a&&n{this.read.call(this,A,e,t,n+1,2*o,r)}),o):r(i,a)},a=this.backend[t].bind(this.backend);if(2!==a.length)return a(A,e,i);try{const t=a(A,e);t&&"function"==typeof t.then?t.then((A=>i(null,A))).catch(i):i(null,t)}catch(s){i(s)}}prepareLoading(A,e){let t=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},n=arguments.length>3?arguments[3]:void 0;if(!this.backend)return this.logger.warn("No backend was added via i18next.use. Will not load resources."),n&&n();"string"==typeof A&&(A=this.languageUtils.toResolveHierarchy(A)),"string"==typeof e&&(e=[e]);const o=this.queueLoad(A,e,t,n);if(!o.toLoad.length)return o.pending.length||n(),null;o.toLoad.forEach((A=>{this.loadOne(A)}))}load(A,e,t){this.prepareLoading(A,e,{},t)}reload(A,e,t){this.prepareLoading(A,e,{reload:!0},t)}loadOne(A){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";const t=A.split("|"),n=t[0],o=t[1];this.read(n,o,"read",void 0,void 0,((t,r)=>{t&&this.logger.warn(`${e}loading namespace ${o} for language ${n} failed`,t),!t&&r&&this.logger.log(`${e}loaded namespace ${o} for language ${n}`,r),this.loaded(A,t,r)}))}saveMissing(A,e,t,n,o){let r=arguments.length>5&&void 0!==arguments[5]?arguments[5]:{},i=arguments.length>6&&void 0!==arguments[6]?arguments[6]:()=>{};if(this.services.utils&&this.services.utils.hasLoadedNamespace&&!this.services.utils.hasLoadedNamespace(e))this.logger.warn(`did not save key "${t}" as the namespace "${e}" was not yet loaded`,"This means something IS WRONG in your setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!");else if(null!=t&&""!==t){if(this.backend&&this.backend.create){const s={...r,isUpdate:o},l=this.backend.create.bind(this.backend);if(l.length<6)try{let o;o=5===l.length?l(A,e,t,n,s):l(A,e,t,n),o&&"function"==typeof o.then?o.then((A=>i(null,A))).catch(i):i(null,o)}catch(a){i(a)}else l(A,e,t,n,i,s)}A&&A[0]&&this.store.addResource(A[0],e,t,n)}}}function a8(){return{debug:!1,initImmediate:!0,ns:["translation"],defaultNS:["translation"],fallbackLng:["dev"],fallbackNS:!1,supportedLngs:!1,nonExplicitSupportedLngs:!1,load:"all",preload:!1,simplifyPluralSuffix:!0,keySeparator:".",nsSeparator:":",pluralSeparator:"_",contextSeparator:"_",partialBundledLanguages:!1,saveMissing:!1,updateMissing:!1,saveMissingTo:"fallback",saveMissingPlurals:!0,missingKeyHandler:!1,missingInterpolationHandler:!1,postProcess:!1,postProcessPassResolved:!1,returnNull:!1,returnEmptyString:!0,returnObjects:!1,joinArrays:!1,returnedObjectHandler:!1,parseMissingKeyHandler:!1,appendNamespaceToMissingKey:!1,appendNamespaceToCIMode:!1,overloadTranslationOptionHandler:function(A){let e={};if("object"==typeof A[1]&&(e=A[1]),"string"==typeof A[1]&&(e.defaultValue=A[1]),"string"==typeof A[2]&&(e.tDescription=A[2]),"object"==typeof A[2]||"object"==typeof A[3]){const t=A[3]||A[2];Object.keys(t).forEach((A=>{e[A]=t[A]}))}return e},interpolation:{escapeValue:!0,format:A=>A,prefix:"{{",suffix:"}}",formatSeparator:",",unescapePrefix:"-",nestingPrefix:"$t(",nestingSuffix:")",nestingOptionsSeparator:",",maxReplaces:1e3,skipOnVariables:!0}}}function s8(A){return"string"==typeof A.ns&&(A.ns=[A.ns]),"string"==typeof A.fallbackLng&&(A.fallbackLng=[A.fallbackLng]),"string"==typeof A.fallbackNS&&(A.fallbackNS=[A.fallbackNS]),A.supportedLngs&&A.supportedLngs.indexOf("cimode")<0&&(A.supportedLngs=A.supportedLngs.concat(["cimode"])),A}function l8(){}class g8 extends M1{constructor(){let A=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=arguments.length>1?arguments[1]:void 0;var t;if(super(),this.options=s8(A),this.services={},this.logger=k1,this.modules={external:[]},t=this,Object.getOwnPropertyNames(Object.getPrototypeOf(t)).forEach((A=>{"function"==typeof t[A]&&(t[A]=t[A].bind(t))})),e&&!this.isInitialized&&!A.isClone){if(!this.options.initImmediate)return this.init(A,e),this;setTimeout((()=>{this.init(A,e)}),0)}}init(){var A=this;let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0;this.isInitializing=!0,"function"==typeof e&&(t=e,e={}),!e.defaultNS&&!1!==e.defaultNS&&e.ns&&("string"==typeof e.ns?e.defaultNS=e.ns:e.ns.indexOf("translation")<0&&(e.defaultNS=e.ns[0]));const n=a8();function o(A){return A?"function"==typeof A?new A:A:null}if(this.options={...n,...this.options,...s8(e)},"v1"!==this.options.compatibilityAPI&&(this.options.interpolation={...n.interpolation,...this.options.interpolation}),void 0!==e.keySeparator&&(this.options.userDefinedKeySeparator=e.keySeparator),void 0!==e.nsSeparator&&(this.options.userDefinedNsSeparator=e.nsSeparator),!this.options.isClone){let e;this.modules.logger?k1.init(o(this.modules.logger),this.options):k1.init(null,this.options),this.modules.formatter?e=this.modules.formatter:"undefined"!=typeof Intl&&(e=r8);const t=new W1(this.options);this.store=new J1(this.options.resources,this.options);const r=this.services;r.logger=k1,r.resourceStore=this.store,r.languageUtils=t,r.pluralResolver=new e8(t,{prepend:this.options.pluralSeparator,compatibilityJSON:this.options.compatibilityJSON,simplifyPluralSuffix:this.options.simplifyPluralSuffix}),!e||this.options.interpolation.format&&this.options.interpolation.format!==n.interpolation.format||(r.formatter=o(e),r.formatter.init(r,this.options),this.options.interpolation.format=r.formatter.format.bind(r.formatter)),r.interpolator=new n8(this.options),r.utils={hasLoadedNamespace:this.hasLoadedNamespace.bind(this)},r.backendConnector=new i8(o(this.modules.backend),r.resourceStore,r,this.options),r.backendConnector.on("*",(function(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),o=1;o1?t-1:0),o=1;o{A.init&&A.init(this)}))}if(this.format=this.options.interpolation.format,t||(t=l8),this.options.fallbackLng&&!this.services.languageDetector&&!this.options.lng){const A=this.services.languageUtils.getFallbackCodes(this.options.fallbackLng);A.length>0&&"dev"!==A[0]&&(this.options.lng=A[0])}this.services.languageDetector||this.options.lng||this.logger.warn("init: no languageDetector is used and no lng is defined");["getResource","hasResourceBundle","getResourceBundle","getDataByLanguage"].forEach((e=>{this[e]=function(){return A.store[e](...arguments)}}));["addResource","addResources","addResourceBundle","removeResourceBundle"].forEach((e=>{this[e]=function(){return A.store[e](...arguments),A}}));const r=x1(),i=()=>{const A=(A,e)=>{this.isInitializing=!1,this.isInitialized&&!this.initializedStoreOnce&&this.logger.warn("init: i18next is already initialized. You should call init just once!"),this.isInitialized=!0,this.options.isClone||this.logger.log("initialized",this.options),this.emit("initialized",this.options),r.resolve(e),t(A,e)};if(this.languages&&"v1"!==this.options.compatibilityAPI&&!this.isInitialized)return A(null,this.t.bind(this));this.changeLanguage(this.options.lng,A)};return this.options.resources||!this.options.initImmediate?i():setTimeout(i,0),r}loadResources(A){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:l8;const t="string"==typeof A?A:this.language;if("function"==typeof A&&(e=A),!this.options.resources||this.options.partialBundledLanguages){if(t&&"cimode"===t.toLowerCase()&&(!this.options.preload||0===this.options.preload.length))return e();const A=[],n=e=>{if(!e)return;if("cimode"===e)return;this.services.languageUtils.toResolveHierarchy(e).forEach((e=>{"cimode"!==e&&A.indexOf(e)<0&&A.push(e)}))};if(t)n(t);else{this.services.languageUtils.getFallbackCodes(this.options.fallbackLng).forEach((A=>n(A)))}this.options.preload&&this.options.preload.forEach((A=>n(A))),this.services.backendConnector.load(A,this.options.ns,(A=>{A||this.resolvedLanguage||!this.language||this.setResolvedLanguage(this.language),e(A)}))}else e(null)}reloadResources(A,e,t){const n=x1();return A||(A=this.languages),e||(e=this.options.ns),t||(t=l8),this.services.backendConnector.reload(A,e,(A=>{n.resolve(),t(A)})),n}use(A){if(!A)throw new Error("You are passing an undefined module! Please check the object you are passing to i18next.use()");if(!A.type)throw new Error("You are passing a wrong module! Please check the object you are passing to i18next.use()");return"backend"===A.type&&(this.modules.backend=A),("logger"===A.type||A.log&&A.warn&&A.error)&&(this.modules.logger=A),"languageDetector"===A.type&&(this.modules.languageDetector=A),"i18nFormat"===A.type&&(this.modules.i18nFormat=A),"postProcessor"===A.type&&j1.addPostProcessor(A),"formatter"===A.type&&(this.modules.formatter=A),"3rdParty"===A.type&&this.modules.external.push(A),this}setResolvedLanguage(A){if(A&&this.languages&&!(["cimode","dev"].indexOf(A)>-1))for(let e=0;e-1)&&this.store.hasLanguageSomeTranslations(A)){this.resolvedLanguage=A;break}}}changeLanguage(A,e){var t=this;this.isLanguageChangingTo=A;const n=x1();this.emit("languageChanging",A);const o=A=>{this.language=A,this.languages=this.services.languageUtils.toResolveHierarchy(A),this.resolvedLanguage=void 0,this.setResolvedLanguage(A)},r=(A,r)=>{r?(o(r),this.translator.changeLanguage(r),this.isLanguageChangingTo=void 0,this.emit("languageChanged",r),this.logger.log("languageChanged",r)):this.isLanguageChangingTo=void 0,n.resolve((function(){return t.t(...arguments)})),e&&e(A,(function(){return t.t(...arguments)}))},i=e=>{A||e||!this.services.languageDetector||(e=[]);const t="string"==typeof e?e:this.services.languageUtils.getBestMatchFromCodes(e);t&&(this.language||o(t),this.translator.language||this.translator.changeLanguage(t),this.services.languageDetector&&this.services.languageDetector.cacheUserLanguage&&this.services.languageDetector.cacheUserLanguage(t)),this.loadResources(t,(A=>{r(A,t)}))};return A||!this.services.languageDetector||this.services.languageDetector.async?!A&&this.services.languageDetector&&this.services.languageDetector.async?0===this.services.languageDetector.detect.length?this.services.languageDetector.detect().then(i):this.services.languageDetector.detect(i):i(A):i(this.services.languageDetector.detect()),n}getFixedT(A,e,t){var n=this;const o=function(A,e){let r;if("object"!=typeof e){for(var i=arguments.length,a=new Array(i>2?i-2:0),s=2;s`${r.keyPrefix}${l}${A}`)):r.keyPrefix?`${r.keyPrefix}${l}${A}`:A,n.t(g,r)};return"string"==typeof A?o.lng=A:o.lngs=A,o.ns=e,o.keyPrefix=t,o}t(){return this.translator&&this.translator.translate(...arguments)}exists(){return this.translator&&this.translator.exists(...arguments)}setDefaultNamespace(A){this.options.defaultNS=A}hasLoadedNamespace(A){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(!this.isInitialized)return this.logger.warn("hasLoadedNamespace: i18next was not initialized",this.languages),!1;if(!this.languages||!this.languages.length)return this.logger.warn("hasLoadedNamespace: i18n.languages were undefined or empty",this.languages),!1;const t=e.lng||this.resolvedLanguage||this.languages[0],n=!!this.options&&this.options.fallbackLng,o=this.languages[this.languages.length-1];if("cimode"===t.toLowerCase())return!0;const r=(A,e)=>{const t=this.services.backendConnector.state[`${A}|${e}`];return-1===t||2===t};if(e.precheck){const A=e.precheck(this,r);if(void 0!==A)return A}return!!this.hasResourceBundle(t,A)||(!(this.services.backendConnector.backend&&(!this.options.resources||this.options.partialBundledLanguages))||!(!r(t,A)||n&&!r(o,A)))}loadNamespaces(A,e){const t=x1();return this.options.ns?("string"==typeof A&&(A=[A]),A.forEach((A=>{this.options.ns.indexOf(A)<0&&this.options.ns.push(A)})),this.loadResources((A=>{t.resolve(),e&&e(A)})),t):(e&&e(),Promise.resolve())}loadLanguages(A,e){const t=x1();"string"==typeof A&&(A=[A]);const n=this.options.preload||[],o=A.filter((A=>n.indexOf(A)<0&&this.services.languageUtils.isSupportedCode(A)));return o.length?(this.options.preload=n.concat(o),this.loadResources((A=>{t.resolve(),e&&e(A)})),t):(e&&e(),Promise.resolve())}dir(A){if(A||(A=this.resolvedLanguage||(this.languages&&this.languages.length>0?this.languages[0]:this.language)),!A)return"rtl";const e=this.services&&this.services.languageUtils||new W1(a8());return["ar","shu","sqr","ssh","xaa","yhd","yud","aao","abh","abv","acm","acq","acw","acx","acy","adf","ads","aeb","aec","afb","ajp","apc","apd","arb","arq","ars","ary","arz","auz","avl","ayh","ayl","ayn","ayp","bbz","pga","he","iw","ps","pbt","pbu","pst","prp","prd","ug","ur","ydd","yds","yih","ji","yi","hbo","men","xmn","fa","jpr","peo","pes","prs","dv","sam","ckb"].indexOf(e.getLanguagePartFromCode(A))>-1||A.toLowerCase().indexOf("-arab")>1?"rtl":"ltr"}static createInstance(){return new g8(arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},arguments.length>1?arguments[1]:void 0)}cloneInstance(){let A=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:l8;const t=A.forkResourceStore;t&&delete A.forkResourceStore;const n={...this.options,...A,isClone:!0},o=new g8(n);void 0===A.debug&&void 0===A.prefix||(o.logger=o.logger.clone(A));return["store","services","language"].forEach((A=>{o[A]=this[A]})),o.services={...this.services},o.services.utils={hasLoadedNamespace:o.hasLoadedNamespace.bind(o)},t&&(o.store=new J1(this.store.data,n),o.services.resourceStore=o.store),o.translator=new $1(o.services,n),o.translator.on("*",(function(A){for(var e=arguments.length,t=new Array(e>1?e-1:0),n=1;n-1};function g(A){if("string"!=typeof A&&(A=String(A)),/[^a-z0-9\-#$%&'*+.^_`|~!]/i.test(A)||""===A)throw new TypeError('Invalid character in header field name: "'+A+'"');return A.toLowerCase()}function c(A){return"string"!=typeof A&&(A=String(A)),A}function u(A){var e={next:function(){var e=A.shift();return{done:void 0===e,value:e}}};return o&&(e[Symbol.iterator]=function(){return e}),e}function B(A){this.map={},A instanceof B?A.forEach((function(A,e){this.append(e,A)}),this):Array.isArray(A)?A.forEach((function(A){this.append(A[0],A[1])}),this):A&&Object.getOwnPropertyNames(A).forEach((function(e){this.append(e,A[e])}),this)}function Q(A){if(A.bodyUsed)return Promise.reject(new TypeError("Already read"));A.bodyUsed=!0}function E(A){return new Promise((function(e,t){A.onload=function(){e(A.result)},A.onerror=function(){t(A.error)}}))}function C(A){var e=new FileReader,t=E(e);return e.readAsArrayBuffer(A),t}function d(A){if(A.slice)return A.slice(0);var e=new Uint8Array(A.byteLength);return e.set(new Uint8Array(A)),e.buffer}function I(){return this.bodyUsed=!1,this._initBody=function(A){var e;this.bodyUsed=this.bodyUsed,this._bodyInit=A,A?"string"==typeof A?this._bodyText=A:r&&Blob.prototype.isPrototypeOf(A)?this._bodyBlob=A:i&&FormData.prototype.isPrototypeOf(A)?this._bodyFormData=A:n&&URLSearchParams.prototype.isPrototypeOf(A)?this._bodyText=A.toString():a&&r&&(e=A)&&DataView.prototype.isPrototypeOf(e)?(this._bodyArrayBuffer=d(A.buffer),this._bodyInit=new Blob([this._bodyArrayBuffer])):a&&(ArrayBuffer.prototype.isPrototypeOf(A)||l(A))?this._bodyArrayBuffer=d(A):this._bodyText=A=Object.prototype.toString.call(A):this._bodyText="",this.headers.get("content-type")||("string"==typeof A?this.headers.set("content-type","text/plain;charset=UTF-8"):this._bodyBlob&&this._bodyBlob.type?this.headers.set("content-type",this._bodyBlob.type):n&&URLSearchParams.prototype.isPrototypeOf(A)&&this.headers.set("content-type","application/x-www-form-urlencoded;charset=UTF-8"))},r&&(this.blob=function(){var A=Q(this);if(A)return A;if(this._bodyBlob)return Promise.resolve(this._bodyBlob);if(this._bodyArrayBuffer)return Promise.resolve(new Blob([this._bodyArrayBuffer]));if(this._bodyFormData)throw new Error("could not read FormData body as blob");return Promise.resolve(new Blob([this._bodyText]))},this.arrayBuffer=function(){if(this._bodyArrayBuffer){var A=Q(this);return A||(ArrayBuffer.isView(this._bodyArrayBuffer)?Promise.resolve(this._bodyArrayBuffer.buffer.slice(this._bodyArrayBuffer.byteOffset,this._bodyArrayBuffer.byteOffset+this._bodyArrayBuffer.byteLength)):Promise.resolve(this._bodyArrayBuffer))}return this.blob().then(C)}),this.text=function(){var A,e,t,n=Q(this);if(n)return n;if(this._bodyBlob)return A=this._bodyBlob,e=new FileReader,t=E(e),e.readAsText(A),t;if(this._bodyArrayBuffer)return Promise.resolve(function(A){for(var e=new Uint8Array(A),t=new Array(e.length),n=0;n-1?n:t),this.mode=e.mode||this.mode||null,this.signal=e.signal||this.signal,this.referrer=null,("GET"===this.method||"HEAD"===this.method)&&o)throw new TypeError("Body not allowed for GET or HEAD requests");if(this._initBody(o),!("GET"!==this.method&&"HEAD"!==this.method||"no-store"!==e.cache&&"no-cache"!==e.cache)){var r=/([?&])_=[^&]*/;r.test(this.url)?this.url=this.url.replace(r,"$1_="+(new Date).getTime()):this.url+=(/\?/.test(this.url)?"&":"?")+"_="+(new Date).getTime()}}function h(A){var e=new FormData;return A.trim().split("&").forEach((function(A){if(A){var t=A.split("="),n=t.shift().replace(/\+/g," "),o=t.join("=").replace(/\+/g," ");e.append(decodeURIComponent(n),decodeURIComponent(o))}})),e}function w(A,e){if(!(this instanceof w))throw new TypeError('Please use the "new" operator, this DOM object constructor cannot be called as a function.');e||(e={}),this.type="default",this.status=void 0===e.status?200:e.status,this.ok=this.status>=200&&this.status<300,this.statusText=void 0===e.statusText?"":""+e.statusText,this.headers=new B(e.headers),this.url=e.url||"",this._initBody(A)}f.prototype.clone=function(){return new f(this,{body:this._bodyInit})},I.call(f.prototype),I.call(w.prototype),w.prototype.clone=function(){return new w(this._bodyInit,{status:this.status,statusText:this.statusText,headers:new B(this.headers),url:this.url})},w.error=function(){var A=new w(null,{status:0,statusText:""});return A.type="error",A};var D=[301,302,303,307,308];w.redirect=function(A,e){if(-1===D.indexOf(e))throw new RangeError("Invalid status code");return new w(null,{status:e,headers:{location:A}})},A.DOMException=e.DOMException;try{new A.DOMException}catch(y){A.DOMException=function(A,e){this.message=A,this.name=e;var t=Error(A);this.stack=t.stack},A.DOMException.prototype=Object.create(Error.prototype),A.DOMException.prototype.constructor=A.DOMException}function m(t,n){return new Promise((function(o,i){var s=new f(t,n);if(s.signal&&s.signal.aborted)return i(new A.DOMException("Aborted","AbortError"));var l=new XMLHttpRequest;function g(){l.abort()}l.onload=function(){var A,e,t={status:l.status,statusText:l.statusText,headers:(A=l.getAllResponseHeaders()||"",e=new B,A.replace(/\r?\n[\t ]+/g," ").split("\r").map((function(A){return 0===A.indexOf("\n")?A.substr(1,A.length):A})).forEach((function(A){var t=A.split(":"),n=t.shift().trim();if(n){var o=t.join(":").trim();e.append(n,o)}})),e)};t.url="responseURL"in l?l.responseURL:t.headers.get("X-Request-URL");var n="response"in l?l.response:l.responseText;setTimeout((function(){o(new w(n,t))}),0)},l.onerror=function(){setTimeout((function(){i(new TypeError("Network request failed"))}),0)},l.ontimeout=function(){setTimeout((function(){i(new TypeError("Network request failed"))}),0)},l.onabort=function(){setTimeout((function(){i(new A.DOMException("Aborted","AbortError"))}),0)},l.open(s.method,function(A){try{return""===A&&e.location.href?e.location.href:A}catch(R3){return A}}(s.url),!0),"include"===s.credentials?l.withCredentials=!0:"omit"===s.credentials&&(l.withCredentials=!1),"responseType"in l&&(r?l.responseType="blob":a&&s.headers.get("Content-Type")&&-1!==s.headers.get("Content-Type").indexOf("application/octet-stream")&&(l.responseType="arraybuffer")),!n||"object"!=typeof n.headers||n.headers instanceof B?s.headers.forEach((function(A,e){l.setRequestHeader(e,A)})):Object.getOwnPropertyNames(n.headers).forEach((function(A){l.setRequestHeader(A,c(n.headers[A]))})),s.signal&&(s.signal.addEventListener("abort",g),l.onreadystatechange=function(){4===l.readyState&&s.signal.removeEventListener("abort",g)}),l.send(void 0===s._bodyInit?null:s._bodyInit)}))}m.polyfill=!0,e.fetch||(e.fetch=m,e.Headers=B,e.Request=f,e.Response=w),A.Headers=B,A.Request=f,A.Response=w,A.fetch=m}({}),r.fetch.ponyfill=!0,delete r.fetch.polyfill;var i=o.fetch?o:r;(e=i.fetch).default=i.fetch,e.fetch=i.fetch,e.Headers=i.Headers,e.Request=i.Request,e.Response=i.Response,A.exports=e}(d8,d8.exports)),d8.exports}!function(A,e){var t;if("function"==typeof fetch&&(t=void 0!==n&&n.fetch?n.fetch:"undefined"!=typeof window&&window.fetch?window.fetch:fetch),void 0!==Q8&&"undefined"==typeof window){var o=t||I8();o.default&&(o=o.default),e.default=o,A.exports=e.default}}(C8,C8.exports);var p8=C8.exports;const f8=o(p8),h8=t({__proto__:null,default:f8},[p8]);function w8(A,e){var t=Object.keys(A);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(A);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(A,e).enumerable}))),t.push.apply(t,n)}return t}function D8(A){for(var e=1;e=1?A.alternateFetch:void 0;try{x8(e,i,n,a)}catch(R3){if(!r||0===Object.keys(r).length||!R3.message||R3.message.indexOf("not implemented")<0)return n(R3);try{Object.keys(r).forEach((function(A){delete i[A]})),x8(e,i,n,a),S8=!0}catch(s){n(s)}}}(A,e,t,n):B8()||"function"==typeof ActiveXObject?function(A,e,t,n){t&&"object"===y8(t)&&(t=M8("",t).slice(1)),A.queryStringParams&&(e=M8(e,A.queryStringParams));try{var o;(o=v8?new v8:new k8("MSXML2.XMLHTTP.3.0")).open(t?"POST":"GET",e,1),A.crossDomain||o.setRequestHeader("X-Requested-With","XMLHttpRequest"),o.withCredentials=!!A.withCredentials,t&&o.setRequestHeader("Content-Type","application/x-www-form-urlencoded"),o.overrideMimeType&&o.overrideMimeType("application/json");var r=A.customHeaders;if(r="function"==typeof r?r():r)for(var i in r)o.setRequestHeader(i,r[i]);o.onreadystatechange=function(){o.readyState>3&&n(o.status>=400?o.statusText:null,{status:o.status,data:o.responseText})},o.send(t)}catch(R3){console&&console.log(R3)}}(A,e,t,n):void n(new Error("No fetch and no xhr implementation found!"))};function N8(A){return(N8="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(A){return typeof A}:function(A){return A&&"function"==typeof Symbol&&A.constructor===Symbol&&A!==Symbol.prototype?"symbol":typeof A})(A)}function R8(A,e){var t=Object.keys(A);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(A);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(A,e).enumerable}))),t.push.apply(t,n)}return t}function L8(A){for(var e=1;e1&&void 0!==arguments[1]?arguments[1]:{},n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};!function(A,e){if(!(A instanceof e))throw new TypeError("Cannot call a class as a function")}(this,A),this.services=e,this.options=t,this.allOptions=n,this.type="backend",this.init(e,t,n)}return P8(A,[{key:"init",value:function(A){var e=this,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};this.services=A,this.options=L8(L8(L8({},{loadPath:"/locales/{{lng}}/{{ns}}.json",addPath:"/locales/add/{{lng}}/{{ns}}",parse:function(A){return JSON.parse(A)},stringify:JSON.stringify,parsePayload:function(A,e,t){return H8({},e,t||"")},parseLoadPayload:function(A,e){},request:F8,reloadInterval:"undefined"==typeof window&&36e5,customHeaders:{},queryStringParams:{},crossDomain:!1,withCredentials:!1,overrideMimeType:!1,requestOptions:{mode:"cors",credentials:"same-origin",cache:"default"}}),this.options||{}),t),this.allOptions=n,this.services&&this.options.reloadInterval&&setInterval((function(){return e.reload()}),this.options.reloadInterval)}},{key:"readMulti",value:function(A,e,t){this._readAny(A,A,e,e,t)}},{key:"read",value:function(A,e,t){this._readAny([A],A,[e],e,t)}},{key:"_readAny",value:function(A,e,t,n,o){var r,i=this,a=this.options.loadPath;"function"==typeof this.options.loadPath&&(a=this.options.loadPath(A,t)),(a=function(A){return!!A&&"function"==typeof A.then}(r=a)?r:Promise.resolve(r)).then((function(r){if(!r)return o(null,{});var a=i.services.interpolator.interpolate(r,{lng:A.join("+"),ns:t.join("+")});i.loadUrl(a,o,e,n)}))}},{key:"loadUrl",value:function(A,e,t,n){var o=this,r="string"==typeof t?[t]:t,i="string"==typeof n?[n]:n,a=this.options.parseLoadPayload(r,i);this.options.request(this.options,A,a,(function(r,i){if(i&&(i.status>=500&&i.status<600||!i.status))return e("failed loading "+A+"; status code: "+i.status,!0);if(i&&i.status>=400&&i.status<500)return e("failed loading "+A+"; status code: "+i.status,!1);if(!i&&r&&r.message&&r.message.indexOf("Failed to fetch")>-1)return e("failed loading "+A+": "+r.message,!0);if(r)return e(r,!1);var a,s;try{a="string"==typeof i.data?o.options.parse(i.data,t,n):i.data}catch(R3){s="failed parsing "+A+" to json"}if(s)return e(s,!1);e(null,a)}))}},{key:"create",value:function(A,e,t,n,o){var r=this;if(this.options.addPath){"string"==typeof A&&(A=[A]);var i=this.options.parsePayload(e,t,n),a=0,s=[],l=[];A.forEach((function(t){var n=r.options.addPath;"function"==typeof r.options.addPath&&(n=r.options.addPath(t,e));var g=r.services.interpolator.interpolate(n,{lng:t,ns:e});r.options.request(r.options,g,i,(function(e,t){a+=1,s.push(e),l.push(t),a===A.length&&"function"==typeof o&&o(s,l)}))}))}}},{key:"reload",value:function(){var A=this,e=this.services,t=e.backendConnector,n=e.languageUtils,o=e.logger,r=t.language;if(!r||"cimode"!==r.toLowerCase()){var i=[],a=function(A){n.toResolveHierarchy(A).forEach((function(A){i.indexOf(A)<0&&i.push(A)}))};a(r),this.allOptions.preload&&this.allOptions.preload.forEach((function(A){return a(A)})),i.forEach((function(e){A.allOptions.ns.forEach((function(A){t.read(e,A,"read",null,null,(function(n,r){n&&o.warn("loading namespace ".concat(A," for language ").concat(e," failed"),n),!n&&r&&o.log("loaded namespace ".concat(A," for language ").concat(e),r),t.loaded("".concat(e,"|").concat(A),n,r)}))}))}))}}}]),A}();O8.type="backend";const U8={};function K8(){for(var A=arguments.length,e=new Array(A),t=0;t()=>{if(A.isInitialized)e();else{const t=()=>{setTimeout((()=>{A.off("initialized",t)}),0),e()};A.on("initialized",t)}};function T8(A,e,t){A.loadNamespaces(e,Y8(A,t))}function J8(A,e,t,n){"string"==typeof t&&(t=[t]),t.forEach((e=>{A.options.ns.indexOf(e)<0&&A.options.ns.push(e)})),A.loadLanguages(e,Y8(A,n))}const j8=/&(?:amp|#38|lt|#60|gt|#62|apos|#39|quot|#34|nbsp|#160|copy|#169|reg|#174|hellip|#8230|#x2F|#47);/g,q8={"&":"&","&":"&","<":"<","<":"<",">":">",">":">","'":"'","'":"'",""":'"',""":'"'," ":" "," ":" ","©":"ยฉ","©":"ยฉ","®":"ยฎ","®":"ยฎ","…":"โ€ฆ","…":"โ€ฆ","/":"/","/":"/"},$8=A=>q8[A];let z8,W8={bindI18n:"languageChanged",bindI18nStore:"",transEmptyNodeValue:"",transSupportBasicHtmlNodes:!0,transWrapTextNodes:"",transKeepBasicHtmlNodesFor:["br","strong","i","p"],useSuspense:!0,unescape:A=>A.replace(j8,$8)};const _8={type:"3rdParty",init(A){!function(){let A=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};W8={...W8,...A}}(A.options.react),function(A){z8=A}(A)}},X8=J.createContext();class V8{constructor(){this.usedNamespaces={}}addUsedNamespaces(A){A.forEach((A=>{this.usedNamespaces[A]||(this.usedNamespaces[A]=!0)}))}getUsedNamespaces(){return Object.keys(this.usedNamespaces)}}function Z8(A,e,t,n){return A.getFixedT(e,t,n)}function A2(A){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const{i18n:t}=e,{i18n:n,defaultNS:o}=J.useContext(X8)||{},r=t||n||z8;if(r&&!r.reportNamespaces&&(r.reportNamespaces=new V8),!r){K8("You will need to pass in an i18next instance by using initReactI18next");const A=(A,e)=>"string"==typeof e?e:e&&"object"==typeof e&&"string"==typeof e.defaultValue?e.defaultValue:Array.isArray(A)?A[A.length-1]:A,e=[A,{},!1];return e.t=A,e.i18n={},e.ready=!1,e}r.options.react&&void 0!==r.options.react.wait&&K8("It seems you are still using the old wait option, you may migrate to the new useSuspense behaviour.");const i={...W8,...r.options.react,...e},{useSuspense:a,keyPrefix:s}=i;let l=o||r.options&&r.options.defaultNS;l="string"==typeof l?[l]:l||["translation"],r.reportNamespaces.addUsedNamespaces&&r.reportNamespaces.addUsedNamespaces(l);const g=(r.isInitialized||r.initializedStoreOnce)&&l.every((A=>function(A,e){let t=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return e.languages&&e.languages.length?void 0!==e.options.ignoreJSONStructure?e.hasLoadedNamespace(A,{lng:t.lng,precheck:(e,n)=>{if(t.bindI18n&&t.bindI18n.indexOf("languageChanging")>-1&&e.services.backendConnector.backend&&e.isLanguageChangingTo&&!n(e.isLanguageChangingTo,A))return!1}}):function(A,e){let t=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};const n=e.languages[0],o=!!e.options&&e.options.fallbackLng,r=e.languages[e.languages.length-1];if("cimode"===n.toLowerCase())return!0;const i=(A,t)=>{const n=e.services.backendConnector.state[`${A}|${t}`];return-1===n||2===n};return!(t.bindI18n&&t.bindI18n.indexOf("languageChanging")>-1&&e.services.backendConnector.backend&&e.isLanguageChangingTo&&!i(e.isLanguageChangingTo,A)||!e.hasResourceBundle(n,A)&&e.services.backendConnector.backend&&(!e.options.resources||e.options.partialBundledLanguages)&&(!i(n,A)||o&&!i(r,A)))}(A,e,t):(K8("i18n.languages were undefined or empty",e.languages),!0)}(A,r,i))),c=function(A,e,t,n){return J.useCallback(Z8(A,e,t,n),[A,e,t,n])}(r,e.lng||null,"fallback"===i.nsMode?l:l[0],s),u=()=>c,B=()=>Z8(r,e.lng||null,"fallback"===i.nsMode?l:l[0],s),[Q,E]=J.useState(u);let C=l.join();e.lng&&(C=`${e.lng}${C}`);const d=((A,e)=>{const t=J.useRef();return J.useEffect((()=>{t.current=A}),[A,e]),t.current})(C),I=J.useRef(!0);J.useEffect((()=>{const{bindI18n:A,bindI18nStore:t}=i;function n(){I.current&&E(B)}return I.current=!0,g||a||(e.lng?J8(r,e.lng,l,(()=>{I.current&&E(B)})):T8(r,l,(()=>{I.current&&E(B)}))),g&&d&&d!==C&&I.current&&E(B),A&&r&&r.on(A,n),t&&r&&r.store.on(t,n),()=>{I.current=!1,A&&r&&A.split(" ").forEach((A=>r.off(A,n))),t&&r&&t.split(" ").forEach((A=>r.store.off(A,n)))}}),[r,C]),J.useEffect((()=>{I.current&&g&&E(u)}),[r,s,g]);const p=[Q,r,g];if(p.t=Q,p.i18n=r,p.ready=g,g)return p;if(!g&&!a)return p;throw new Promise((A=>{e.lng?J8(r,e.lng,l,(()=>A())):T8(r,l,(()=>A()))}))}var e2={BASE_URL:"/dev",MODE:"production",DEV:!1,PROD:!0,SSR:!1};const t2=new Map,n2=A=>{const e=t2.get(A);return e?Object.fromEntries(Object.entries(e.stores).map((([A,e])=>[A,e.getState()]))):{}},o2=(A,e={})=>(t,n,o)=>{const{enabled:r,anonymousActionType:i,store:a,...s}=e;let l;try{l=(null!=r?r:"production"!==(e2?"production":void 0))&&window.__REDUX_DEVTOOLS_EXTENSION__}catch(R3){}if(!l)return"production"!==(e2?"production":void 0)&&r&&console.warn("[zustand devtools middleware] Please install/enable Redux devtools extension"),A(t,n,o);const{connection:g,...c}=((A,e,t)=>{if(void 0===A)return{type:"untracked",connection:e.connect(t)};const n=t2.get(t.name);if(n)return{type:"tracked",store:A,...n};const o={connection:e.connect(t),stores:{}};return t2.set(t.name,o),{type:"tracked",store:A,...o}})(a,l,s);let u=!0;o.setState=(A,e,r)=>{const l=t(A,e);if(!u)return l;const c=void 0===r?{type:i||"anonymous"}:"string"==typeof r?{type:r}:r;return void 0===a?(null==g||g.send(c,n()),l):(null==g||g.send({...c,type:`${a}/${c.type}`},{...n2(s.name),[a]:o.getState()}),l)};const B=(...A)=>{const e=u;u=!1,t(...A),u=e},Q=A(o.setState,n,o);if("untracked"===c.type?null==g||g.init(Q):(c.stores[c.store]=o,null==g||g.init(Object.fromEntries(Object.entries(c.stores).map((([A,e])=>[A,A===c.store?Q:e.getState()]))))),o.dispatchFromDevtools&&"function"==typeof o.dispatch){let A=!1;const e=o.dispatch;o.dispatch=(...t)=>{"production"===(e2?"production":void 0)||"__setState"!==t[0].type||A||(console.warn('[zustand devtools middleware] "__setState" action type is reserved to set state from the devtools. Avoid using it.'),A=!0),e(...t)}}return g.subscribe((A=>{var e;switch(A.type){case"ACTION":return"string"!=typeof A.payload?void console.error("[zustand devtools middleware] Unsupported action format"):r2(A.payload,(A=>{if("__setState"!==A.type)o.dispatchFromDevtools&&"function"==typeof o.dispatch&&o.dispatch(A);else{if(void 0===a)return void B(A.state);1!==Object.keys(A.state).length&&console.error('\n [zustand devtools middleware] Unsupported __setState action format. \n When using \'store\' option in devtools(), the \'state\' should have only one key, which is a value of \'store\' that was passed in devtools(),\n and value of this only key should be a state object. Example: { "type": "__setState", "state": { "abc123Store": { "foo": "bar" } } }\n ');const e=A.state[a];if(null==e)return;JSON.stringify(o.getState())!==JSON.stringify(e)&&B(e)}}));case"DISPATCH":switch(A.payload.type){case"RESET":return B(Q),void 0===a?null==g?void 0:g.init(o.getState()):null==g?void 0:g.init(n2(s.name));case"COMMIT":return void 0===a?void(null==g||g.init(o.getState())):null==g?void 0:g.init(n2(s.name));case"ROLLBACK":return r2(A.state,(A=>{if(void 0===a)return B(A),void(null==g||g.init(o.getState()));B(A[a]),null==g||g.init(n2(s.name))}));case"JUMP_TO_STATE":case"JUMP_TO_ACTION":return r2(A.state,(A=>{void 0!==a?JSON.stringify(o.getState())!==JSON.stringify(A[a])&&B(A[a]):B(A)}));case"IMPORT_STATE":{const{nextLiftedState:t}=A.payload,n=null==(e=t.computedStates.slice(-1)[0])?void 0:e.state;if(!n)return;return B(void 0===a?n:n[a]),void(null==g||g.send(null,t))}case"PAUSE_RECORDING":return u=!u}return}})),Q},r2=(A,e)=>{let t;try{t=JSON.parse(A)}catch(R3){console.error("[zustand devtools middleware] Could not parse the received json",R3)}void 0!==t&&e(t)};var i2={exports:{}},a2={},s2={exports:{}},l2={},g2=J;var c2="function"==typeof Object.is?Object.is:function(A,e){return A===e&&(0!==A||1/A==1/e)||A!=A&&e!=e},u2=g2.useState,B2=g2.useEffect,Q2=g2.useLayoutEffect,E2=g2.useDebugValue;function C2(A){var e=A.getSnapshot;A=A.value;try{var t=e();return!c2(A,t)}catch(n){return!0}}var d2="undefined"==typeof window||void 0===window.document||void 0===window.document.createElement?function(A,e){return e()}:function(A,e){var t=e(),n=u2({inst:{value:t,getSnapshot:e}}),o=n[0].inst,r=n[1];return Q2((function(){o.value=t,o.getSnapshot=e,C2(o)&&r({inst:o})}),[A,t,e]),B2((function(){return C2(o)&&r({inst:o}),A((function(){C2(o)&&r({inst:o})}))}),[A]),E2(t),t};l2.useSyncExternalStore=void 0!==g2.useSyncExternalStore?g2.useSyncExternalStore:d2,s2.exports=l2;var I2=s2.exports,p2=J,f2=I2; +ld=cd,function(){var A={}.hasOwnProperty;function e(){for(var A="",e=0;e1&&void 0!==arguments[1]?arguments[1]:{},t=[];return j.Children.forEach(A,(function(A){(null!=A||e.keepEmpty)&&(Array.isArray(A)?t=t.concat(Fd(A)):Sd.isFragment(A)&&A.props?t=t.concat(Fd(A.props.children,e)):t.push(A))})),t}function Nd(A){return A instanceof HTMLElement||A instanceof SVGElement}function Rd(A){return Nd(A)?A:A instanceof j.Component?fc.findDOMNode(A):null}var Ld=function(A,e){"function"==typeof A?A(e):"object"===mc(A)&&A&&"current"in A&&(A.current=e)},Pd=function(){for(var A=arguments.length,e=new Array(A),t=0;t0},A.prototype.connect_=function(){Kd&&!this.connected_&&(document.addEventListener("transitionend",this.onTransitionEnd_),window.addEventListener("resize",this.refresh),jd?(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)},A.prototype.disconnect_=function(){Kd&&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)},A.prototype.onTransitionEnd_=function(A){var e=A.propertyName,t=void 0===e?"":e;Jd.some((function(A){return!!~t.indexOf(A)}))&&this.refresh()},A.getInstance=function(){return this.instance_||(this.instance_=new A),this.instance_},A.instance_=null,A}(),$d=function(A,e){for(var t=0,n=Object.keys(e);t0},A}(),rI="undefined"!=typeof WeakMap?new WeakMap:new Ud,iI=function(){return function A(e){if(!(this instanceof A))throw new TypeError("Cannot call a class as a function.");if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");var t=qd.getInstance(),n=new oI(e,t,this);rI.set(this,n)}}();["observe","unobserve","disconnect"].forEach((function(A){iI.prototype[A]=function(){var e;return(e=rI.get(this))[A].apply(e,arguments)}}));var aI=void 0!==Yd.ResizeObserver?Yd.ResizeObserver:iI,sI=new Map;var lI=new aI((function(A){A.forEach((function(A){var e,t=A.target;null===(e=sI.get(t))||void 0===e||e.forEach((function(A){return A(t)}))}))}));function gI(A,e){return(gI=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(A,e){return A.__proto__=e,A})(A,e)}function cI(A,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");A.prototype=Object.create(e&&e.prototype,{constructor:{value:A,writable:!0,configurable:!0}}),Object.defineProperty(A,"prototype",{writable:!1}),e&&gI(A,e)}function uI(A){return(uI=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(A){return A.__proto__||Object.getPrototypeOf(A)})(A)}function BI(){try{var A=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(BI=function(){return!!A})()}function QI(A){if(void 0===A)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return A}function EI(A,e){if(e&&("object"===mc(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return QI(A)}function CI(A){var e=BI();return function(){var t,n=uI(A);if(e){var o=uI(this).constructor;t=Reflect.construct(n,arguments,o)}else t=n.apply(this,arguments);return EI(this,t)}}var dI=function(A){cI(t,J.Component);var e=CI(t);function t(){return eQ(this,t),e.apply(this,arguments)}return nQ(t,[{key:"render",value:function(){return this.props.children}}]),t}();function II(A,e){var t=A.children,n=A.disabled,o=J.useRef(null),r=J.useRef(null),i=J.useContext(Od),a="function"==typeof t,s=a?t(o):t,l=J.useRef({width:-1,height:-1,offsetWidth:-1,offsetHeight:-1}),g=!a&&J.isValidElement(s)&&Gd(s),c=g?s.ref:null,u=Hd(c,o),B=function(){var A;return Rd(o.current)||(o.current&&"object"===mc(o.current)?Rd(null===(A=o.current)||void 0===A?void 0:A.nativeElement):null)||Rd(r.current)};J.useImperativeHandle(e,(function(){return B()}));var Q=J.useRef(A);Q.current=A;var E=J.useCallback((function(A){var e=Q.current,t=e.onResize,n=e.data,o=A.getBoundingClientRect(),r=o.width,a=o.height,s=A.offsetWidth,g=A.offsetHeight,c=Math.floor(r),u=Math.floor(a);if(l.current.width!==c||l.current.height!==u||l.current.offsetWidth!==s||l.current.offsetHeight!==g){var B={width:c,height:u,offsetWidth:s,offsetHeight:g};l.current=B;var E=s===Math.round(r)?r:s,C=g===Math.round(a)?a:g,d=kc(kc({},B),{},{offsetWidth:E,offsetHeight:C});null==i||i(d,A,n),t&&Promise.resolve().then((function(){t(d,A)}))}}),[]);return J.useEffect((function(){var A,e,t=B();return t&&!n&&(A=t,e=E,sI.has(A)||(sI.set(A,new Set),lI.observe(A)),sI.get(A).add(e)),function(){return function(A,e){sI.has(A)&&(sI.get(A).delete(e),sI.get(A).size||(lI.unobserve(A),sI.delete(A)))}(t,E)}}),[o.current,n]),J.createElement(dI,{ref:r},g?J.cloneElement(s,{ref:u}):s)}var pI=J.forwardRef(II);function fI(A,e){var t=A.children;return("function"==typeof t?[t]:Fd(t)).map((function(t,n){var o=(null==t?void 0:t.key)||"".concat("rc-observer-key","-").concat(n);return J.createElement(pI,BQ({},A,{key:o,ref:0===n?e:void 0}),t)}))}var hI=J.forwardRef(fI);function wI(A,e){var t=kc({},A);return Array.isArray(e)&&e.forEach((function(A){delete t[A]})),t}hI.Collection=function(A){var e=A.children,t=A.onBatchResize,n=J.useRef(0),o=J.useRef([]),r=J.useContext(Od),i=J.useCallback((function(A,e,i){n.current+=1;var a=n.current;o.current.push({size:A,element:e,data:i}),Promise.resolve().then((function(){a===n.current&&(null==t||t(o.current),o.current=[])})),null==r||r(A,e,i)}),[t,r]);return J.createElement(Od.Provider,{value:i},e)};var DI=function(A){return+setTimeout(A,16)},mI=function(A){return clearTimeout(A)};"undefined"!=typeof window&&"requestAnimationFrame"in window&&(DI=function(A){return window.requestAnimationFrame(A)},mI=function(A){return window.cancelAnimationFrame(A)});var yI=0,bI=new Map;function vI(A){bI.delete(A)}var kI=function(A){var e=yI+=1;return function t(n){if(0===n)vI(e),A();else{var o=DI((function(){t(n-1)}));bI.set(e,o)}}(arguments.length>1&&void 0!==arguments[1]?arguments[1]:1),e};kI.cancel=function(A){var e=bI.get(A);return vI(A),mI(e)};var MI=J.createContext({});function xI(A){return jQ(A)||_Q(A)||$Q(A)||zQ()}function SI(A,e){for(var t=A,n=0;n3&&void 0!==arguments[3]&&arguments[3];return e.length&&n&&void 0===t&&!SI(A,e.slice(0,-1))?A:FI(A,e,t,n)}function RI(A){return Array.isArray(A)?[]:{}}var LI="undefined"==typeof Reflect?Object.keys:Reflect.ownKeys;function PI(){for(var A=arguments.length,e=new Array(A),t=0;t{const A=()=>{};return A.deprecated=HI,A},UI=J.createContext(void 0);const KI={placeholder:"Select time",rangePlaceholder:["Start time","End time"]},YI={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"]},{locale:"en_US",today:"Today",now:"Now",backToToday:"Back to today",ok:"OK",clear:"Clear",month:"Month",year:"Year",timeSelect:"select time",dateSelect:"select date",weekSelect:"Choose a week",monthSelect:"Choose a month",yearSelect:"Choose a year",decadeSelect:"Choose a decade",yearFormat:"YYYY",dateFormat:"M/D/YYYY",dayFormat:"D",dateTimeFormat:"M/D/YYYY HH:mm:ss",monthBeforeYear:!0,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"}),timePickerLocale:Object.assign({},KI)},TI="${label} is not a valid ${type}",JI={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:YI,TimePicker:KI,Calendar:YI,global:{placeholder:"Please select"},Table:{filterTitle:"Filter menu",filterConfirm:"OK",filterReset:"Reset",filterEmptyText:"No filters",filterCheckall:"Select all items",filterSearchPlaceholder:"Search in filters",emptyText:"No data",selectAll:"Select current page",selectInvert:"Invert current page",selectNone:"Clear all data",selectionAll:"Select all data",sortTitle:"Sort",expand:"Expand row",collapse:"Collapse row",triggerDesc:"Click to sort descending",triggerAsc:"Click to sort ascending",cancelSort:"Click to cancel sorting"},Tour:{Next:"Next",Previous:"Previous",Finish:"Finish"},Modal:{okText:"OK",cancelText:"Cancel",justOkText:"OK"},Popconfirm:{okText:"OK",cancelText:"Cancel"},Transfer:{titles:["",""],searchPlaceholder:"Search here",itemUnit:"item",itemsUnit:"items",remove:"Remove",selectCurrent:"Select current page",removeCurrent:"Remove current page",selectAll:"Select all data",deselectAll:"Deselect all data",removeAll:"Remove all data",selectInvert:"Invert current page"},Upload:{uploading:"Uploading...",removeFile:"Remove file",uploadError:"Upload error",previewFile:"Preview file",downloadFile:"Download file"},Empty:{description:"No data"},Icon:{icon:"icon"},Text:{edit:"Edit",copy:"Copy",copied:"Copied",expand:"Expand",collapse:"Collapse"},Form:{optional:"(optional)",defaultValidateMessages:{default:"Field validation error for ${label}",required:"Please enter ${label}",enum:"${label} must be one of [${enum}]",whitespace:"${label} cannot be a blank character",date:{format:"${label} date format is invalid",parse:"${label} cannot be converted to a date",invalid:"${label} is an invalid date"},types:{string:TI,method:TI,array:TI,object:TI,number:TI,date:TI,boolean:TI,integer:TI,float:TI,regexp:TI,email:TI,url:TI,hex:TI},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"}};let jI=Object.assign({},JI.Modal),qI=[];const $I=()=>qI.reduce(((A,e)=>Object.assign(Object.assign({},A),e)),JI.Modal);function zI(){return jI}const WI=J.createContext(void 0),_I=(A,e)=>{const t=J.useContext(WI);return[J.useMemo((()=>{var n;const o=e||JI[A],r=null!==(n=null==t?void 0:t[A])&&void 0!==n?n:{};return Object.assign(Object.assign({},"function"==typeof o?o():o),r||{})}),[A,e,t]),J.useMemo((()=>{const A=null==t?void 0:t.locale;return(null==t?void 0:t.exist)&&!A?JI.locale:A}),[t])]},XI=A=>{const{locale:e={},children:t,_ANT_MARK__:n}=A;J.useEffect((()=>{const A=function(A){if(A){const e=Object.assign({},A);return qI.push(e),jI=$I(),()=>{qI=qI.filter((A=>A!==e)),jI=$I()}}jI=Object.assign({},JI.Modal)}(e&&e.Modal);return A}),[e]);const o=J.useMemo((()=>Object.assign(Object.assign({},e),{exist:!0})),[e]);return J.createElement(WI.Provider,{value:o},t)};function VI(A,e){(function(A){return"string"==typeof A&&-1!==A.indexOf(".")&&1===parseFloat(A)})(A)&&(A="100%");var t=function(A){return"string"==typeof A&&-1!==A.indexOf("%")}(A);return A=360===e?A:Math.min(e,Math.max(0,parseFloat(A))),t&&(A=parseInt(String(A*e),10)/100),Math.abs(A-e)<1e-6?1:A=360===e?(A<0?A%e+e:A%e)/parseFloat(String(e)):A%e/parseFloat(String(e))}function ZI(A){return Math.min(1,Math.max(0,A))}function Ap(A){return A=parseFloat(A),(isNaN(A)||A<0||A>1)&&(A=1),A}function ep(A){return A<=1?"".concat(100*Number(A),"%"):A}function tp(A){return 1===A.length?"0"+A:String(A)}function np(A,e,t){A=VI(A,255),e=VI(e,255),t=VI(t,255);var n=Math.max(A,e,t),o=Math.min(A,e,t),r=0,i=0,a=(n+o)/2;if(n===o)i=0,r=0;else{var s=n-o;switch(i=a>.5?s/(2-n-o):s/(n+o),n){case A:r=(e-t)/s+(e1&&(t-=1),t<1/6?A+6*t*(e-A):t<.5?e:t<2/3?A+(e-A)*(2/3-t)*6:A}function rp(A,e,t){A=VI(A,255),e=VI(e,255),t=VI(t,255);var n=Math.max(A,e,t),o=Math.min(A,e,t),r=0,i=n,a=n-o,s=0===n?0:a/n;if(n===o)r=0;else{switch(n){case A:r=(e-t)/a+(e>16,g:(65280&A)>>8,b:255&A}}(e)),this.originalInput=e;var o=gp(e);this.originalInput=e,this.r=o.r,this.g=o.g,this.b=o.b,this.a=o.a,this.roundA=Math.round(100*this.a)/100,this.format=null!==(n=t.format)&&void 0!==n?n:o.format,this.gradientType=t.gradientType,this.r<1&&(this.r=Math.round(this.r)),this.g<1&&(this.g=Math.round(this.g)),this.b<1&&(this.b=Math.round(this.b)),this.isValid=o.ok}return A.prototype.isDark=function(){return this.getBrightness()<128},A.prototype.isLight=function(){return!this.isDark()},A.prototype.getBrightness=function(){var A=this.toRgb();return(299*A.r+587*A.g+114*A.b)/1e3},A.prototype.getLuminance=function(){var A=this.toRgb(),e=A.r/255,t=A.g/255,n=A.b/255;return.2126*(e<=.03928?e/12.92:Math.pow((e+.055)/1.055,2.4))+.7152*(t<=.03928?t/12.92:Math.pow((t+.055)/1.055,2.4))+.0722*(n<=.03928?n/12.92:Math.pow((n+.055)/1.055,2.4))},A.prototype.getAlpha=function(){return this.a},A.prototype.setAlpha=function(A){return this.a=Ap(A),this.roundA=Math.round(100*this.a)/100,this},A.prototype.isMonochrome=function(){return 0===this.toHsl().s},A.prototype.toHsv=function(){var A=rp(this.r,this.g,this.b);return{h:360*A.h,s:A.s,v:A.v,a:this.a}},A.prototype.toHsvString=function(){var A=rp(this.r,this.g,this.b),e=Math.round(360*A.h),t=Math.round(100*A.s),n=Math.round(100*A.v);return 1===this.a?"hsv(".concat(e,", ").concat(t,"%, ").concat(n,"%)"):"hsva(".concat(e,", ").concat(t,"%, ").concat(n,"%, ").concat(this.roundA,")")},A.prototype.toHsl=function(){var A=np(this.r,this.g,this.b);return{h:360*A.h,s:A.s,l:A.l,a:this.a}},A.prototype.toHslString=function(){var A=np(this.r,this.g,this.b),e=Math.round(360*A.h),t=Math.round(100*A.s),n=Math.round(100*A.l);return 1===this.a?"hsl(".concat(e,", ").concat(t,"%, ").concat(n,"%)"):"hsla(".concat(e,", ").concat(t,"%, ").concat(n,"%, ").concat(this.roundA,")")},A.prototype.toHex=function(A){return void 0===A&&(A=!1),ip(this.r,this.g,this.b,A)},A.prototype.toHexString=function(A){return void 0===A&&(A=!1),"#"+this.toHex(A)},A.prototype.toHex8=function(A){return void 0===A&&(A=!1),function(A,e,t,n,o){var r,i=[tp(Math.round(A).toString(16)),tp(Math.round(e).toString(16)),tp(Math.round(t).toString(16)),tp((r=n,Math.round(255*parseFloat(r)).toString(16)))];return o&&i[0].startsWith(i[0].charAt(1))&&i[1].startsWith(i[1].charAt(1))&&i[2].startsWith(i[2].charAt(1))&&i[3].startsWith(i[3].charAt(1))?i[0].charAt(0)+i[1].charAt(0)+i[2].charAt(0)+i[3].charAt(0):i.join("")}(this.r,this.g,this.b,this.a,A)},A.prototype.toHex8String=function(A){return void 0===A&&(A=!1),"#"+this.toHex8(A)},A.prototype.toHexShortString=function(A){return void 0===A&&(A=!1),1===this.a?this.toHexString(A):this.toHex8String(A)},A.prototype.toRgb=function(){return{r:Math.round(this.r),g:Math.round(this.g),b:Math.round(this.b),a:this.a}},A.prototype.toRgbString=function(){var A=Math.round(this.r),e=Math.round(this.g),t=Math.round(this.b);return 1===this.a?"rgb(".concat(A,", ").concat(e,", ").concat(t,")"):"rgba(".concat(A,", ").concat(e,", ").concat(t,", ").concat(this.roundA,")")},A.prototype.toPercentageRgb=function(){var A=function(A){return"".concat(Math.round(100*VI(A,255)),"%")};return{r:A(this.r),g:A(this.g),b:A(this.b),a:this.a}},A.prototype.toPercentageRgbString=function(){var A=function(A){return Math.round(100*VI(A,255))};return 1===this.a?"rgb(".concat(A(this.r),"%, ").concat(A(this.g),"%, ").concat(A(this.b),"%)"):"rgba(".concat(A(this.r),"%, ").concat(A(this.g),"%, ").concat(A(this.b),"%, ").concat(this.roundA,")")},A.prototype.toName=function(){if(0===this.a)return"transparent";if(this.a<1)return!1;for(var A="#"+ip(this.r,this.g,this.b,!1),e=0,t=Object.entries(lp);e=0;return e||!n||!A.startsWith("hex")&&"name"!==A?("rgb"===A&&(t=this.toRgbString()),"prgb"===A&&(t=this.toPercentageRgbString()),"hex"!==A&&"hex6"!==A||(t=this.toHexString()),"hex3"===A&&(t=this.toHexString(!0)),"hex4"===A&&(t=this.toHex8String(!0)),"hex8"===A&&(t=this.toHex8String()),"name"===A&&(t=this.toName()),"hsl"===A&&(t=this.toHslString()),"hsv"===A&&(t=this.toHsvString()),t||this.toHexString()):"name"===A&&0===this.a?this.toName():this.toRgbString()},A.prototype.toNumber=function(){return(Math.round(this.r)<<16)+(Math.round(this.g)<<8)+Math.round(this.b)},A.prototype.clone=function(){return new A(this.toString())},A.prototype.lighten=function(e){void 0===e&&(e=10);var t=this.toHsl();return t.l+=e/100,t.l=ZI(t.l),new A(t)},A.prototype.brighten=function(e){void 0===e&&(e=10);var t=this.toRgb();return t.r=Math.max(0,Math.min(255,t.r-Math.round(-e/100*255))),t.g=Math.max(0,Math.min(255,t.g-Math.round(-e/100*255))),t.b=Math.max(0,Math.min(255,t.b-Math.round(-e/100*255))),new A(t)},A.prototype.darken=function(e){void 0===e&&(e=10);var t=this.toHsl();return t.l-=e/100,t.l=ZI(t.l),new A(t)},A.prototype.tint=function(A){return void 0===A&&(A=10),this.mix("white",A)},A.prototype.shade=function(A){return void 0===A&&(A=10),this.mix("black",A)},A.prototype.desaturate=function(e){void 0===e&&(e=10);var t=this.toHsl();return t.s-=e/100,t.s=ZI(t.s),new A(t)},A.prototype.saturate=function(e){void 0===e&&(e=10);var t=this.toHsl();return t.s+=e/100,t.s=ZI(t.s),new A(t)},A.prototype.greyscale=function(){return this.desaturate(100)},A.prototype.spin=function(e){var t=this.toHsl(),n=(t.h+e)%360;return t.h=n<0?360+n:n,new A(t)},A.prototype.mix=function(e,t){void 0===t&&(t=50);var n=this.toRgb(),o=new A(e).toRgb(),r=t/100;return new A({r:(o.r-n.r)*r+n.r,g:(o.g-n.g)*r+n.g,b:(o.b-n.b)*r+n.b,a:(o.a-n.a)*r+n.a})},A.prototype.analogous=function(e,t){void 0===e&&(e=6),void 0===t&&(t=30);var n=this.toHsl(),o=360/t,r=[this];for(n.h=(n.h-(o*e>>1)+720)%360;--e;)n.h=(n.h+o)%360,r.push(new A(n));return r},A.prototype.complement=function(){var e=this.toHsl();return e.h=(e.h+180)%360,new A(e)},A.prototype.monochromatic=function(e){void 0===e&&(e=6);for(var t=this.toHsv(),n=t.h,o=t.s,r=t.v,i=[],a=1/e;e--;)i.push(new A({h:n,s:o,v:r})),r=(r+a)%1;return i},A.prototype.splitcomplement=function(){var e=this.toHsl(),t=e.h;return[this,new A({h:(t+72)%360,s:e.s,l:e.l}),new A({h:(t+216)%360,s:e.s,l:e.l})]},A.prototype.onBackground=function(e){var t=this.toRgb(),n=new A(e).toRgb(),o=t.a+n.a*(1-t.a);return new A({r:(t.r*t.a+n.r*n.a*(1-t.a))/o,g:(t.g*t.a+n.g*n.a*(1-t.a))/o,b:(t.b*t.a+n.b*n.a*(1-t.a))/o,a:o})},A.prototype.triad=function(){return this.polyad(3)},A.prototype.tetrad=function(){return this.polyad(4)},A.prototype.polyad=function(e){for(var t=this.toHsl(),n=t.h,o=[this],r=360/e,i=1;i=60&&Math.round(A.h)<=240?t?Math.round(A.h)-dp*e:Math.round(A.h)+dp*e:t?Math.round(A.h)+dp*e:Math.round(A.h)-dp*e)<0?n+=360:n>=360&&(n-=360),n}function kp(A,e,t){return 0===A.h&&0===A.s?A.s:((n=t?A.s-Ip*e:e===Dp?A.s+Ip:A.s+pp*e)>1&&(n=1),t&&e===wp&&n>.1&&(n=.1),n<.06&&(n=.06),Number(n.toFixed(2)));var n}function Mp(A,e,t){var n;return(n=t?A.v+fp*e:A.v-hp*e)>1&&(n=1),Number(n.toFixed(2))}function xp(A){for(var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},t=[],n=gp(A),o=wp;o>0;o-=1){var r=yp(n),i=bp(gp({h:vp(r,o,!0),s:kp(r,o,!0),v:Mp(r,o,!0)}));t.push(i)}t.push(bp(n));for(var a=1;a<=Dp;a+=1){var s=yp(n),l=bp(gp({h:vp(s,a),s:kp(s,a),v:Mp(s,a)}));t.push(l)}return"dark"===e.theme?mp.map((function(A){var n,o,r,i=A.index,a=A.opacity;return bp((n=gp(e.backgroundColor||"#141414"),o=gp(t[i]),r=100*a/100,{r:(o.r-n.r)*r+n.r,g:(o.g-n.g)*r+n.g,b:(o.b-n.b)*r+n.b}))})):t}var Sp={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"},Fp={},Np={};Object.keys(Sp).forEach((function(A){Fp[A]=xp(Sp[A]),Fp[A].primary=Fp[A][5],Np[A]=xp(Sp[A],{theme:"dark",backgroundColor:"#141414"}),Np[A].primary=Np[A][5]}));var Rp=Fp.blue;const Lp={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"},Pp=Object.assign(Object.assign({},Lp),{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});function Hp(A,e){let{generateColorPalettes:t,generateNeutralColorPalettes:n}=e;const{colorSuccess:o,colorWarning:r,colorError:i,colorInfo:a,colorPrimary:s,colorBgBase:l,colorTextBase:g}=A,c=t(s),u=t(o),B=t(r),Q=t(i),E=t(a),C=n(l,g),d=t(A.colorLink||A.colorInfo);return Object.assign(Object.assign({},C),{colorPrimaryBg:c[1],colorPrimaryBgHover:c[2],colorPrimaryBorder:c[3],colorPrimaryBorderHover:c[4],colorPrimaryHover:c[5],colorPrimary:c[6],colorPrimaryActive:c[7],colorPrimaryTextHover:c[8],colorPrimaryText:c[9],colorPrimaryTextActive:c[10],colorSuccessBg:u[1],colorSuccessBgHover:u[2],colorSuccessBorder:u[3],colorSuccessBorderHover:u[4],colorSuccessHover:u[4],colorSuccess:u[6],colorSuccessActive:u[7],colorSuccessTextHover:u[8],colorSuccessText:u[9],colorSuccessTextActive:u[10],colorErrorBg:Q[1],colorErrorBgHover:Q[2],colorErrorBorder:Q[3],colorErrorBorderHover:Q[4],colorErrorHover:Q[5],colorError:Q[6],colorErrorActive:Q[7],colorErrorTextHover:Q[8],colorErrorText:Q[9],colorErrorTextActive:Q[10],colorWarningBg:B[1],colorWarningBgHover:B[2],colorWarningBorder:B[3],colorWarningBorderHover:B[4],colorWarningHover:B[4],colorWarning:B[6],colorWarningActive:B[7],colorWarningTextHover:B[8],colorWarningText:B[9],colorWarningTextActive:B[10],colorInfoBg:E[1],colorInfoBgHover:E[2],colorInfoBorder:E[3],colorInfoBorderHover:E[4],colorInfoHover:E[4],colorInfo:E[6],colorInfoActive:E[7],colorInfoTextHover:E[8],colorInfoText:E[9],colorInfoTextActive:E[10],colorLinkHover:d[4],colorLink:d[6],colorLinkActive:d[7],colorBgMask:new Cp("#000").setAlpha(.45).toRgbString(),colorWhite:"#fff"})}const Gp=A=>{let e=A,t=A,n=A,o=A;return A<6&&A>=5?e=A+1:A<16&&A>=6?e=A+2:A>=16&&(e=16),A<7&&A>=5?t=4:A<8&&A>=7?t=5:A<14&&A>=8?t=6:A<16&&A>=14?t=7:A>=16&&(t=8),A<6&&A>=2?n=1:A>=6&&(n=2),A>4&&A<8?o=4:A>=8&&(o=6),{borderRadius:A,borderRadiusXS:n,borderRadiusSM:t,borderRadiusLG:e,borderRadiusOuter:o}};const Op=A=>{const{controlHeight:e}=A;return{controlHeightSM:.75*e,controlHeightXS:.5*e,controlHeightLG:1.25*e}};function Up(A){return(A+8)/A}const Kp=A=>{const e=function(A){const e=new Array(10).fill(null).map(((e,t)=>{const n=t-1,o=A*Math.pow(2.71828,n/5),r=t>1?Math.floor(o):Math.ceil(o);return 2*Math.floor(r/2)}));return e[1]=A,e.map((A=>({size:A,lineHeight:Up(A)})))}(A),t=e.map((A=>A.size)),n=e.map((A=>A.lineHeight)),o=t[1],r=t[0],i=t[2],a=n[1],s=n[0],l=n[2];return{fontSizeSM:r,fontSize:o,fontSizeLG:i,fontSizeXL:t[3],fontSizeHeading1:t[6],fontSizeHeading2:t[5],fontSizeHeading3:t[4],fontSizeHeading4:t[3],fontSizeHeading5:t[2],lineHeight:a,lineHeightLG:l,lineHeightSM:s,fontHeight:Math.round(a*o),fontHeightLG:Math.round(l*i),fontHeightSM:Math.round(s*r),lineHeightHeading1:n[6],lineHeightHeading2:n[5],lineHeightHeading3:n[4],lineHeightHeading4:n[3],lineHeightHeading5:n[2]}};const Yp=(A,e)=>new Cp(A).setAlpha(e).toRgbString(),Tp=(A,e)=>new Cp(A).darken(e).toHexString(),Jp=A=>{const e=xp(A);return{1:e[0],2:e[1],3:e[2],4:e[3],5:e[4],6:e[5],7:e[6],8:e[4],9:e[5],10:e[6]}},jp=(A,e)=>{const t=A||"#fff",n=e||"#000";return{colorBgBase:t,colorTextBase:n,colorText:Yp(n,.88),colorTextSecondary:Yp(n,.65),colorTextTertiary:Yp(n,.45),colorTextQuaternary:Yp(n,.25),colorFill:Yp(n,.15),colorFillSecondary:Yp(n,.06),colorFillTertiary:Yp(n,.04),colorFillQuaternary:Yp(n,.02),colorBgLayout:Tp(t,4),colorBgContainer:Tp(t,0),colorBgElevated:Tp(t,0),colorBgSpotlight:Yp(n,.85),colorBgBlur:"transparent",colorBorder:Tp(t,15),colorBorderSecondary:Tp(t,6)}};function qp(A){const e=Object.keys(Lp).map((e=>{const t=xp(A[e]);return new Array(10).fill(1).reduce(((A,n,o)=>(A[`${e}-${o+1}`]=t[o],A[`${e}${o+1}`]=t[o],A)),{})})).reduce(((A,e)=>A=Object.assign(Object.assign({},A),e)),{});return Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},A),e),Hp(A,{generateColorPalettes:Jp,generateNeutralColorPalettes:jp})),Kp(A.fontSize)),function(A){const{sizeUnit:e,sizeStep:t}=A;return{sizeXXL:e*(t+8),sizeXL:e*(t+4),sizeLG:e*(t+2),sizeMD:e*(t+1),sizeMS:e*t,size:e*t,sizeSM:e*(t-1),sizeXS:e*(t-2),sizeXXS:e*(t-3)}}(A)),Op(A)),function(A){const{motionUnit:e,motionBase:t,borderRadius:n,lineWidth:o}=A;return Object.assign({motionDurationFast:`${(t+e).toFixed(1)}s`,motionDurationMid:`${(t+2*e).toFixed(1)}s`,motionDurationSlow:`${(t+3*e).toFixed(1)}s`,lineWidthBold:o+1},Gp(n))}(A))}const $p=NE(qp),zp={token:Pp,override:{override:Pp},hashed:!0},Wp=j.createContext(zp),_p="anticon",Xp=J.createContext({getPrefixCls:(A,e)=>e||(A?`ant-${A}`:"ant"),iconPrefixCls:_p}),Vp=`-ant-${Date.now()}-${Math.random()}`;function Zp(A,e){const t=function(A,e){const t={},n=(A,e)=>{let t=A.clone();return t=(null==e?void 0:e(t))||t,t.toRgbString()},o=(A,e)=>{const o=new Cp(A),r=xp(o.toRgbString());t[`${e}-color`]=n(o),t[`${e}-color-disabled`]=r[1],t[`${e}-color-hover`]=r[4],t[`${e}-color-active`]=r[6],t[`${e}-color-outline`]=o.clone().setAlpha(.2).toRgbString(),t[`${e}-color-deprecated-bg`]=r[0],t[`${e}-color-deprecated-border`]=r[2]};if(e.primaryColor){o(e.primaryColor,"primary");const A=new Cp(e.primaryColor),r=xp(A.toRgbString());r.forEach(((A,e)=>{t[`primary-${e+1}`]=A})),t["primary-color-deprecated-l-35"]=n(A,(A=>A.lighten(35))),t["primary-color-deprecated-l-20"]=n(A,(A=>A.lighten(20))),t["primary-color-deprecated-t-20"]=n(A,(A=>A.tint(20))),t["primary-color-deprecated-t-50"]=n(A,(A=>A.tint(50))),t["primary-color-deprecated-f-12"]=n(A,(A=>A.setAlpha(.12*A.getAlpha())));const i=new Cp(r[0]);t["primary-color-active-deprecated-f-30"]=n(i,(A=>A.setAlpha(.3*A.getAlpha()))),t["primary-color-active-deprecated-d-02"]=n(i,(A=>A.darken(2)))}return e.successColor&&o(e.successColor,"success"),e.warningColor&&o(e.warningColor,"warning"),e.errorColor&&o(e.errorColor,"error"),e.infoColor&&o(e.infoColor,"info"),`\n :root {\n ${Object.keys(t).map((e=>`--${A}-${e}: ${t[e]};`)).join("\n")}\n }\n `.trim()}(A,e);ZQ()&&cE(t,`${Vp}-dynamic-theme`)}const Af=J.createContext(!1),ef=A=>{let{children:e,disabled:t}=A;const n=J.useContext(Af);return J.createElement(Af.Provider,{value:null!=t?t:n},e)},tf=J.createContext(void 0),nf=A=>{let{children:e,size:t}=A;const n=J.useContext(tf);return J.createElement(tf.Provider,{value:t||n},e)};const of=["blue","purple","cyan","green","magenta","pink","red","orange","yellow","volcano","geekblue","lime","gold"],rf="5.17.0";function af(A){return A>=0&&A<=255}function sf(A,e){const{r:t,g:n,b:o,a:r}=new Cp(A).toRgb();if(r<1)return A;const{r:i,g:a,b:s}=new Cp(e).toRgb();for(let l=.01;l<=1;l+=.01){const A=Math.round((t-i*(1-l))/l),e=Math.round((n-a*(1-l))/l),r=Math.round((o-s*(1-l))/l);if(af(A)&&af(e)&&af(r))return new Cp({r:A,g:e,b:r,a:Math.round(100*l)/100}).toRgbString()}return new Cp({r:t,g:n,b:o,a:1}).toRgbString()}var lf=function(A,e){var t={};for(var n in A)Object.prototype.hasOwnProperty.call(A,n)&&e.indexOf(n)<0&&(t[n]=A[n]);if(null!=A&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(n=Object.getOwnPropertySymbols(A);o{delete n[A]}));const o=Object.assign(Object.assign({},t),n),r=1200,i=1600;if(!1===o.motion){const A="0s";o.motionDurationFast=A,o.motionDurationMid=A,o.motionDurationSlow=A}return Object.assign(Object.assign(Object.assign({},o),{colorFillContent:o.colorFillSecondary,colorFillContentHover:o.colorFill,colorFillAlter:o.colorFillQuaternary,colorBgContainerDisabled:o.colorFillTertiary,colorBorderBg:o.colorBgContainer,colorSplit:sf(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:sf(o.colorErrorBg,o.colorBgContainer),colorWarningOutline:sf(o.colorWarningBg,o.colorBgContainer),fontSizeIcon:o.fontSizeSM,lineWidthFocus:4*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:sf(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:r,screenXLMin:r,screenXLMax:1599,screenXXL:i,screenXXLMin:i,boxShadowPopoverArrow:"2px 2px 5px rgba(0, 0, 0, 0.05)",boxShadowCard:`\n 0 1px 2px -2px ${new Cp("rgba(0, 0, 0, 0.16)").toRgbString()},\n 0 3px 6px 0 ${new Cp("rgba(0, 0, 0, 0.12)").toRgbString()},\n 0 5px 12px 4px ${new Cp("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)"}),n)}var cf=function(A,e){var t={};for(var n in A)Object.prototype.hasOwnProperty.call(A,n)&&e.indexOf(n)<0&&(t[n]=A[n]);if(null!=A&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(n=Object.getOwnPropertySymbols(A);o{const n=t.getDerivativeToken(A),{override:o}=e,r=cf(e,["override"]);let i=Object.assign(Object.assign({},n),{override:o});return i=gf(i),r&&Object.entries(r).forEach((A=>{let[e,t]=A;const{theme:n}=t,o=cf(t,["theme"]);let r=o;n&&(r=Ef(Object.assign(Object.assign({},i),o),{override:o},n)),i[e]=r})),i};function Cf(){const{token:A,hashed:e,theme:t,override:n,cssVar:o}=j.useContext(Wp),r=`${rf}-${e||""}`,i=t||$p,[a,s,l]=rC(i,[Pp,A],{salt:r,override:n,getComputedToken:Ef,formatToken:gf,cssVar:o&&{prefix:o.prefix,key:o.key,unitless:uf,ignore:Bf,preserve:Qf}});return[i,l,e?s:"",a,o]}function df(A,e,t){return e=uI(e),EI(A,BI()?Reflect.construct(e,t||[],uI(A).constructor):e.apply(A,t))}let If=nQ((function A(){eQ(this,A)}));const pf="CALC_UNIT",ff=new RegExp(pf,"g");function hf(A){return"number"==typeof A?`${A}${pf}`:A}let wf=function(A){function e(A){var t;return eQ(this,e),(t=df(this,e)).result="",A instanceof e?t.result=`(${A.result})`:"number"==typeof A?t.result=hf(A):"string"==typeof A&&(t.result=A),t}return cI(e,If),nQ(e,[{key:"add",value:function(A){return A instanceof e?this.result=`${this.result} + ${A.getResult()}`:"number"!=typeof A&&"string"!=typeof A||(this.result=`${this.result} + ${hf(A)}`),this.lowPriority=!0,this}},{key:"sub",value:function(A){return A instanceof e?this.result=`${this.result} - ${A.getResult()}`:"number"!=typeof A&&"string"!=typeof A||(this.result=`${this.result} - ${hf(A)}`),this.lowPriority=!0,this}},{key:"mul",value:function(A){return this.lowPriority&&(this.result=`(${this.result})`),A instanceof e?this.result=`${this.result} * ${A.getResult(!0)}`:"number"!=typeof A&&"string"!=typeof A||(this.result=`${this.result} * ${A}`),this.lowPriority=!1,this}},{key:"div",value:function(A){return this.lowPriority&&(this.result=`(${this.result})`),A instanceof e?this.result=`${this.result} / ${A.getResult(!0)}`:"number"!=typeof A&&"string"!=typeof A||(this.result=`${this.result} / ${A}`),this.lowPriority=!1,this}},{key:"getResult",value:function(A){return this.lowPriority||A?`(${this.result})`:this.result}},{key:"equal",value:function(A){const{unit:e=!0}=A||{};return this.result=this.result.replace(ff,e?"px":""),void 0!==this.lowPriority?`calc(${this.result})`:this.result}}])}(),Df=function(A){function e(A){var t;return eQ(this,e),(t=df(this,e)).result=0,A instanceof e?t.result=A.result:"number"==typeof A&&(t.result=A),t}return cI(e,If),nQ(e,[{key:"add",value:function(A){return A instanceof e?this.result+=A.result:"number"==typeof A&&(this.result+=A),this}},{key:"sub",value:function(A){return A instanceof e?this.result-=A.result:"number"==typeof A&&(this.result-=A),this}},{key:"mul",value:function(A){return A instanceof e?this.result*=A.result:"number"==typeof A&&(this.result*=A),this}},{key:"div",value:function(A){return A instanceof e?this.result/=A.result:"number"==typeof A&&(this.result/=A),this}},{key:"equal",value:function(){return this.result}}])}();function mf(A){var e=J.useRef();e.current=A;var t=J.useCallback((function(){for(var A,t=arguments.length,n=new Array(t),o=0;o1&&void 0!==arguments[1]&&arguments[1];return{boxSizing:"border-box",margin:0,padding:0,color:A.colorText,fontSize:A.fontSize,lineHeight:A.lineHeight,listStyle:"none",fontFamily:e?"inherit":A.fontFamily}},xf=A=>({a:{color:A.colorLink,textDecoration:A.linkDecoration,backgroundColor:"transparent",outline:"none",cursor:"pointer",transition:`color ${A.motionDurationSlow}`,"-webkit-text-decoration-skip":"objects","&:hover":{color:A.colorLinkHover},"&:active":{color:A.colorLinkActive},"&:active,\n &:hover":{textDecoration:A.linkHoverDecoration,outline:0},"&:focus":{textDecoration:A.linkFocusDecoration,outline:0},"&[disabled]":{color:A.colorTextDisabled,cursor:"not-allowed"}}}),Sf=(A,e,t,n)=>{const o=`[class^="${e}"], [class*=" ${e}"]`,r=t?`.${t}`:o,i={boxSizing:"border-box","&::before, &::after":{boxSizing:"border-box"}};let a={};return!1!==n&&(a={fontFamily:A.fontFamily,fontSize:A.fontSize}),{[r]:Object.assign(Object.assign(Object.assign({},a),i),{[o]:i})}},Ff=A=>({outline:`${UE(A.lineWidthFocus)} solid ${A.colorPrimaryBorder}`,outlineOffset:1,transition:"outline-offset 0s, outline 0s"}),Nf=A=>({"&:focus-visible":Object.assign({},Ff(A))});const Rf="undefined"!=typeof CSSINJS_STATISTIC;let Lf=!0;function Pf(){for(var A=arguments.length,e=new Array(A),t=0;t{Object.keys(A).forEach((e=>{Object.defineProperty(n,e,{configurable:!0,enumerable:!0,get:()=>A[e]})}))})),Lf=!0,n}const Hf={};function Gf(){}const Of=(A,e)=>{const[t,n]=Cf();return od({theme:t,token:n,hashId:"",path:["ant-design-icons",A],nonce:()=>null==e?void 0:e.nonce,layer:{name:"antd"}},(()=>[{[`.${A}`]: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"}}),{[`.${A} .${A}-icon`]:{display:"block"}})}]))},Uf=(A,e,t)=>{var n;return"function"==typeof t?t(Pf(e,null!==(n=e[A])&&void 0!==n?n:{})):null!=t?t:{}},Kf=(A,e,t,n)=>{const o=Object.assign({},e[A]);if(null==n?void 0:n.deprecatedTokens){const{deprecatedTokens:A}=n;A.forEach((A=>{let[e,t]=A;var n;((null==o?void 0:o[e])||(null==o?void 0:o[t]))&&(null!==(n=o[t])&&void 0!==n||(o[t]=null==o?void 0:o[e]))}))}const r=Object.assign(Object.assign({},t),o);return Object.keys(r).forEach((A=>{r[A]===e[A]&&delete r[A]})),r};function Yf(A,e,t){let n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};const o=Array.isArray(A)?A:[A,A],[r]=o,i=o.join("-");return function(A){let o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:A;const[a,s,l,g,c]=Cf(),{getPrefixCls:u,iconPrefixCls:B,csp:Q}=J.useContext(Xp),E=u(),C=c?"css":"js",d=(A=>{const e="css"===A?wf:Df;return A=>new e(A)})(C),{max:I,min:p}=function(A){return"js"===A?{max:Math.max,min:Math.min}:{max:function(){for(var A=arguments.length,e=new Array(A),t=0;tUE(A))).join(",")})`},min:function(){for(var A=arguments.length,e=new Array(A),t=0;tUE(A))).join(",")})`}}}(C),f={theme:a,token:g,hashId:l,nonce:()=>null==Q?void 0:Q.nonce,clientOnly:n.clientOnly,layer:{name:"antd"},order:n.order||-999};od(Object.assign(Object.assign({},f),{clientOnly:!1,path:["Shared",E]}),(()=>[{"&":xf(g)}])),Of(B,Q);const h=od(Object.assign(Object.assign({},f),{path:[i,A,B]}),(()=>{if(!1===n.injectStyle)return[];const{token:i,flush:a}=(A=>{let e,t=A,n=Gf;return Rf&&"undefined"!=typeof Proxy&&(e=new Set,t=new Proxy(A,{get:(A,t)=>(Lf&&e.add(t),A[t])}),n=(A,t)=>{var n;Hf[A]={global:Array.from(e),component:Object.assign(Object.assign({},null===(n=Hf[A])||void 0===n?void 0:n.component),t)}}),{token:t,keys:e,flush:n}})(g),u=Uf(r,s,t),Q=`.${A}`,C=Kf(r,s,u,{deprecatedTokens:n.deprecatedTokens});c&&Object.keys(u).forEach((A=>{u[A]=`var(${YE(A,((A,e)=>`${[e,A.replace(/([A-Z]+)([A-Z][a-z]+)/g,"$1-$2").replace(/([a-z])([A-Z])/g,"$1-$2")].filter(Boolean).join("-")}`)(r,c.prefix))})`}));const f=Pf(i,{componentCls:Q,prefixCls:A,iconCls:`.${B}`,antCls:`.${E}`,calc:d,max:I,min:p},c?u:C),h=e(f,{hashId:l,prefixCls:A,rootPrefixCls:E,iconPrefixCls:B});return a(r,C),[!1===n.resetStyle?null:Sf(f,A,o,n.resetFont),h]}));return[h,l]}}const Tf=(A,e,t,n)=>{const o=Yf(A,e,t,Object.assign({resetStyle:!1,order:-998},n));return A=>{let{prefixCls:e,rootCls:t=e}=A;return o(e,t),null}},Jf=(A,e,t)=>{function n(e){return`${A}${e.slice(0,1).toUpperCase()}${e.slice(1)}`}const{unitless:o={},injectStyle:r=!0}=null!=t?t:{},i={[n("zIndexPopup")]:!0};Object.keys(o).forEach((A=>{i[n(A)]=o[A]}));const a=o=>{let{rootCls:r,cssVar:a}=o;const[,s]=Cf();var l,g,c,u,B,Q,E,C,d,I,p,f,h,w;return l={path:[A],prefix:a.prefix,key:null==a?void 0:a.key,unitless:Object.assign(Object.assign({},uf),i),ignore:Bf,token:s,scope:r},g=()=>{const o=Uf(A,s,e),r=Kf(A,s,o,{deprecatedTokens:null==t?void 0:t.deprecatedTokens});return Object.keys(o).forEach((A=>{r[n(A)]=r[A],delete r[A]})),r},c=l.key,u=l.prefix,B=l.unitless,Q=l.ignore,E=l.token,C=l.scope,d=void 0===C?"":C,I=J.useContext(vE),p=I.cache.instanceId,f=I.container,h=E._tokenKey,w=[].concat(XQ(l.path),[c,d,h]),XE(id,w,(function(){var A=g(),e=WQ(JE(A,c,{prefix:u,unitless:B,ignore:Q,scope:d}),2),t=e[0],n=e[1];return[t,n,ed(w,n),c]}),(function(A){var e=WQ(A,3)[2];OE&&gE(e,{mark:mE})}),(function(A){var e=WQ(A,3),t=e[1],n=e[2];if(t){var o=cE(t,n,{mark:mE,prepend:"queue",attachTo:f,priority:-999});o[yE]=p,o.setAttribute(DE,c)}})),null};return e=>{const[,,,,t]=Cf();return[n=>r&&t?j.createElement(j.Fragment,null,j.createElement(a,{rootCls:e,cssVar:t,component:A}),n):n,null==t?void 0:t.key]}},jf=(A,e,t,n)=>{const o=Yf(A,e,t,n),r=Jf(Array.isArray(A)?A[0]:A,t,n);return function(A){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:A;const[,t]=o(A,e),[n,i]=r(e);return[n,t,i]}};function qf(A,e){return of.reduce(((t,n)=>{const o=A[`${n}1`],r=A[`${n}3`],i=A[`${n}6`],a=A[`${n}7`];return Object.assign(Object.assign({},t),e(n,{lightColor:o,lightBorderColor:r,darkColor:i,textColor:a}))}),{})}const $f=Object.assign({},q),{useId:zf}=$f,Wf=void 0===zf?()=>"":zf;var _f=["children"],Xf=J.createContext({});function Vf(A){var e=A.children,t=Mc(A,_f);return J.createElement(Xf.Provider,{value:t},e)}var Zf=function(A){cI(t,J.Component);var e=CI(t);function t(){return eQ(this,t),e.apply(this,arguments)}return nQ(t,[{key:"render",value:function(){return this.props.children}}]),t}(),Ah="none",eh="appear",th="enter",nh="leave",oh="none",rh="prepare",ih="start",ah="active",sh="end",lh="prepared";function gh(A,e){var t={};return t[A.toLowerCase()]=e.toLowerCase(),t["Webkit".concat(A)]="webkit".concat(e),t["Moz".concat(A)]="moz".concat(e),t["ms".concat(A)]="MS".concat(e),t["O".concat(A)]="o".concat(e.toLowerCase()),t}var ch,uh,Bh,Qh=(ch=ZQ(),uh="undefined"!=typeof window?window:{},Bh={animationend:gh("Animation","AnimationEnd"),transitionend:gh("Transition","TransitionEnd")},ch&&("AnimationEvent"in uh||delete Bh.animationend.animation,"TransitionEvent"in uh||delete Bh.transitionend.transition),Bh),Eh={};if(ZQ()){var Ch=document.createElement("div");Eh=Ch.style}var dh={};function Ih(A){if(dh[A])return dh[A];var e=Qh[A];if(e)for(var t=Object.keys(e),n=t.length,o=0;o1&&void 0!==arguments[1]?arguments[1]:2;e();var r=kI((function(){o<=1?n({isCanceled:function(){return r!==A.current}}):t(n,o-1)}));A.current=r},e]}(),a=WQ(i,2),s=a[0],l=a[1];var g=e?kh:vh;return bh((function(){if(o!==oh&&o!==sh){var A=g.indexOf(o),e=g[A+1],n=t(o);n===Mh?r(e,!0):e&&s((function(A){function t(){A.isCanceled()||r(e,!0)}!0===n?t():Promise.resolve(n).then(t)}))}}),[A,o]),J.useEffect((function(){return function(){l()}}),[]),[function(){r(rh,!0)},o]};const Nh=function(A){var e=A;"object"===mc(A)&&(e=A.transitionSupport);var t=J.forwardRef((function(A,t){var n=A.visible,o=void 0===n||n,r=A.removeOnLeave,i=void 0===r||r,a=A.forceRender,s=A.children,l=A.motionName,g=A.leavedClassName,c=A.eventProps,u=function(A,t){return!(!A.motionName||!e||!1===t)}(A,J.useContext(Xf).motion),B=J.useRef(),Q=J.useRef();var E=function(A,e,t,n){var o=n.motionEnter,r=void 0===o||o,i=n.motionAppear,a=void 0===i||i,s=n.motionLeave,l=void 0===s||s,g=n.motionDeadline,c=n.motionLeaveImmediately,u=n.onAppearPrepare,B=n.onEnterPrepare,Q=n.onLeavePrepare,E=n.onAppearStart,C=n.onEnterStart,d=n.onLeaveStart,I=n.onAppearActive,p=n.onEnterActive,f=n.onLeaveActive,h=n.onAppearEnd,w=n.onEnterEnd,D=n.onLeaveEnd,m=n.onVisibleChanged,y=WQ(yf(),2),b=y[0],v=y[1],k=WQ(yf(Ah),2),M=k[0],x=k[1],S=WQ(yf(null),2),F=S[0],N=S[1],R=J.useRef(!1),L=J.useRef(null);function P(){return t()}var H=J.useRef(!1);function G(){x(Ah,!0),N(null,!0)}var O=mf((function(A){if(M!==Ah){var e=P();if(!A||A.deadline||A.target===e){var t,n=H.current;M===eh&&n?t=null==h?void 0:h(e,A):M===th&&n?t=null==w?void 0:w(e,A):M===nh&&n&&(t=null==D?void 0:D(e,A)),n&&!1!==t&&G()}}})),U=WQ(yh(O),1)[0],K=function(A){switch(A){case eh:return bc(bc(bc({},rh,u),ih,E),ah,I);case th:return bc(bc(bc({},rh,B),ih,C),ah,p);case nh:return bc(bc(bc({},rh,Q),ih,d),ah,f);default:return{}}},Y=J.useMemo((function(){return K(M)}),[M]),T=WQ(Fh(M,!A,(function(A){if(A===rh){var e=Y[rh];return e?e(P()):Mh}var t;return q in Y&&N((null===(t=Y[q])||void 0===t?void 0:t.call(Y,P(),null))||null),q===ah&&M!==Ah&&(U(P()),g>0&&(clearTimeout(L.current),L.current=setTimeout((function(){O({deadline:!0})}),g))),q===lh&&G(),xh})),2),j=T[0],q=T[1],$=Sh(q);H.current=$,bh((function(){v(e);var t,n=R.current;R.current=!0,!n&&e&&a&&(t=eh),n&&e&&r&&(t=th),(n&&!e&&l||!n&&c&&!e&&l)&&(t=nh);var o=K(t);t&&(A||o[rh])?(x(t),j()):x(Ah)}),[e]),J.useEffect((function(){(M===eh&&!a||M===th&&!r||M===nh&&!l)&&x(Ah)}),[a,r,l]),J.useEffect((function(){return function(){R.current=!1,clearTimeout(L.current)}}),[]);var z=J.useRef(!1);J.useEffect((function(){b&&(z.current=!0),void 0!==b&&M===Ah&&((z.current||b)&&(null==m||m(b)),z.current=!0)}),[b,M]);var W=F;return Y[rh]&&q===ih&&(W=kc({transition:"none"},W)),[M,q,W,null!=b?b:e]}(u,o,(function(){try{return B.current instanceof HTMLElement?B.current:Rd(Q.current)}catch(R3){return null}}),A),C=WQ(E,4),d=C[0],I=C[1],p=C[2],f=C[3],h=J.useRef(f);f&&(h.current=!0);var w,D=J.useCallback((function(A){B.current=A,Ld(t,A)}),[t]),m=kc(kc({},c),{},{visible:o});if(s)if(d===Ah)w=f?s(kc({},m),D):!i&&h.current&&g?s(kc(kc({},m),{},{className:g}),D):a||!i&&!g?s(kc(kc({},m),{},{style:{display:"none"}}),D):null;else{var y;I===rh?y="prepare":Sh(I)?y="active":I===ih&&(y="start");var b=mh(l,"".concat(d,"-").concat(y));w=s(kc(kc({},m),{},{className:ud(mh(l,d),bc(bc({},b,b&&y),l,"string"==typeof l)),style:p}),D)}else w=null;J.isValidElement(w)&&Gd(w)&&(w.ref||(w=J.cloneElement(w,{ref:D})));return J.createElement(Zf,{ref:Q},w)}));return t.displayName="CSSMotion",t}(hh);var Rh="add",Lh="keep",Ph="remove",Hh="removed";function Gh(A){var e;return kc(kc({},e=A&&"object"===mc(A)&&"key"in A?A:{key:A}),{},{key:String(e.key)})}function Oh(){return(arguments.length>0&&void 0!==arguments[0]?arguments[0]:[]).map(Gh)}var Uh=["component","children","onVisibleChanged","onAllRemoved"],Kh=["status"],Yh=["eventProps","visible","children","motionName","motionAppear","motionEnter","motionLeave","motionLeaveImmediately","motionDeadline","removeOnLeave","leavedClassName","onAppearPrepare","onAppearStart","onAppearActive","onAppearEnd","onEnterStart","onEnterActive","onEnterEnd","onLeaveStart","onLeaveActive","onLeaveEnd"];const Th=function(A){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Nh,t=function(A){cI(n,J.Component);var t=CI(n);function n(){var A;eQ(this,n);for(var e=arguments.length,o=new Array(e),r=0;r0&&void 0!==arguments[0]?arguments[0]:[],e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],t=[],n=0,o=e.length,r=Oh(A),i=Oh(e);r.forEach((function(A){for(var e=!1,r=n;r1})).forEach((function(A){(t=t.filter((function(e){var t=e.key,n=e.status;return t!==A||n!==Ph}))).forEach((function(e){e.key===A&&(e.status=Lh)}))})),t}(n,o);return{keyEntities:r.filter((function(A){var e=n.find((function(e){var t=e.key;return A.key===t}));return!e||e.status!==Hh||A.status!==Ph}))}}}]),n}();return bc(t,"defaultProps",{component:"div"}),t}(hh);function Jh(A){const{children:e}=A,[,t]=Cf(),{motion:n}=t,o=J.useRef(!1);return o.current=o.current||!1===n,o.current?J.createElement(Vf,{motion:n},e):e}const jh=()=>null;const qh=["getTargetContainer","getPopupContainer","renderEmpty","input","pagination","form","select","button"];let $h,zh,Wh,_h;function Xh(){return $h||"ant"}function Vh(){return zh||_p}const Zh=()=>({getPrefixCls:(A,e)=>e||(A?`${Xh()}-${A}`:Xh()),getIconPrefixCls:Vh,getRootPrefixCls:()=>$h||Xh(),getTheme:()=>Wh,holderRender:_h}),Aw=A=>{const{children:e,csp:t,autoInsertSpaceInButton:n,alert:o,anchor:r,form:i,locale:a,componentSize:s,direction:l,space:g,virtual:c,dropdownMatchSelectWidth:u,popupMatchSelectWidth:B,popupOverflow:Q,legacyLocale:E,parentContext:C,iconPrefixCls:d,theme:I,componentDisabled:p,segmented:f,statistic:h,spin:w,calendar:D,carousel:m,cascader:y,collapse:b,typography:v,checkbox:k,descriptions:M,divider:x,drawer:S,skeleton:F,steps:N,image:R,layout:L,list:P,mentions:H,modal:G,progress:O,result:U,slider:K,breadcrumb:Y,menu:T,pagination:j,input:q,textArea:$,empty:z,badge:W,radio:_,rate:X,switch:V,transfer:Z,avatar:AA,message:eA,tag:tA,table:nA,card:oA,tabs:rA,timeline:iA,timePicker:aA,upload:sA,notification:lA,tree:gA,colorPicker:cA,datePicker:uA,rangePicker:BA,flex:QA,wave:EA,dropdown:CA,warning:dA,tour:IA,floatButtonGroup:pA}=A,fA=J.useCallback(((e,t)=>{const{prefixCls:n}=A;if(t)return t;const o=n||C.getPrefixCls("");return e?`${o}-${e}`:o}),[C.getPrefixCls,A.prefixCls]),hA=d||C.iconPrefixCls||_p,wA=t||C.csp;Of(hA,wA);const DA=function(A,e,t){var n;OI();const o=A||{},r=!1!==o.inherit&&e?e:Object.assign(Object.assign({},zp),{hashed:null!==(n=null==e?void 0:e.hashed)&&void 0!==n?n:zp.hashed,cssVar:null==e?void 0:e.cssVar}),i=Wf();return uE((()=>{var n,a;if(!A)return e;const s=Object.assign({},r.components);Object.keys(A.components||{}).forEach((e=>{s[e]=Object.assign(Object.assign({},s[e]),A.components[e])}));const l=`css-var-${i.replace(/:/g,"")}`,g=(null!==(n=o.cssVar)&&void 0!==n?n:r.cssVar)&&Object.assign(Object.assign(Object.assign({prefix:null==t?void 0:t.prefixCls},"object"==typeof r.cssVar?r.cssVar:{}),"object"==typeof o.cssVar?o.cssVar:{}),{key:"object"==typeof o.cssVar&&(null===(a=o.cssVar)||void 0===a?void 0:a.key)||l});return Object.assign(Object.assign(Object.assign({},r),o),{token:Object.assign(Object.assign({},r.token),o.token),components:s,cssVar:g})}),[o,r],((A,e)=>A.some(((A,t)=>!IE(A,e[t],!0)))))}(I,C.theme,{prefixCls:fA("")}),mA={csp:wA,autoInsertSpaceInButton:n,alert:o,anchor:r,locale:a||E,direction:l,space:g,virtual:c,popupMatchSelectWidth:null!=B?B:u,popupOverflow:Q,getPrefixCls:fA,iconPrefixCls:hA,theme:DA,segmented:f,statistic:h,spin:w,calendar:D,carousel:m,cascader:y,collapse:b,typography:v,checkbox:k,descriptions:M,divider:x,drawer:S,skeleton:F,steps:N,image:R,input:q,textArea:$,layout:L,list:P,mentions:H,modal:G,progress:O,result:U,slider:K,breadcrumb:Y,menu:T,pagination:j,empty:z,badge:W,radio:_,rate:X,switch:V,transfer:Z,avatar:AA,message:eA,tag:tA,table:nA,card:oA,tabs:rA,timeline:iA,timePicker:aA,upload:sA,notification:lA,tree:gA,colorPicker:cA,datePicker:uA,rangePicker:BA,flex:QA,wave:EA,dropdown:CA,warning:dA,tour:IA,floatButtonGroup:pA},yA=Object.assign({},C);Object.keys(mA).forEach((A=>{void 0!==mA[A]&&(yA[A]=mA[A])})),qh.forEach((e=>{const t=A[e];t&&(yA[e]=t)})),void 0!==n&&(yA.button=Object.assign({autoInsertSpace:n},yA.button));const bA=uE((()=>yA),yA,((A,e)=>{const t=Object.keys(A),n=Object.keys(e);return t.length!==n.length||t.some((t=>A[t]!==e[t]))})),vA=J.useMemo((()=>({prefixCls:hA,csp:wA})),[hA,wA]);let kA=J.createElement(J.Fragment,null,J.createElement(jh,{dropdownMatchSelectWidth:u}),e);const MA=J.useMemo((()=>{var A,e,t,n;return PI((null===(A=JI.Form)||void 0===A?void 0:A.defaultValidateMessages)||{},(null===(t=null===(e=bA.locale)||void 0===e?void 0:e.Form)||void 0===t?void 0:t.defaultValidateMessages)||{},(null===(n=bA.form)||void 0===n?void 0:n.validateMessages)||{},(null==i?void 0:i.validateMessages)||{})}),[bA,null==i?void 0:i.validateMessages]);Object.keys(MA).length>0&&(kA=J.createElement(UI.Provider,{value:MA},kA)),a&&(kA=J.createElement(XI,{locale:a,_ANT_MARK__:"internalMark"},kA)),(hA||wA)&&(kA=J.createElement(MI.Provider,{value:vA},kA)),s&&(kA=J.createElement(nf,{size:s},kA)),kA=J.createElement(Jh,null,kA);const xA=J.useMemo((()=>{const A=DA||{},{algorithm:e,token:t,components:n,cssVar:o}=A,r=function(A,e){var t={};for(var n in A)Object.prototype.hasOwnProperty.call(A,n)&&e.indexOf(n)<0&&(t[n]=A[n]);if(null!=A&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(n=Object.getOwnPropertySymbols(A);o0)?NE(e):$p,a={};Object.entries(n||{}).forEach((A=>{let[e,t]=A;const n=Object.assign({},t);"algorithm"in n&&(!0===n.algorithm?n.theme=i:(Array.isArray(n.algorithm)||"function"==typeof n.algorithm)&&(n.theme=NE(n.algorithm)),delete n.algorithm),a[e]=n}));const s=Object.assign(Object.assign({},Pp),t);return Object.assign(Object.assign({},r),{theme:i,token:s,components:a,override:Object.assign({override:s},a),cssVar:o})}),[DA]);return I&&(kA=J.createElement(Wp.Provider,{value:xA},kA)),bA.warning&&(kA=J.createElement(GI.Provider,{value:bA.warning},kA)),void 0!==p&&(kA=J.createElement(ef,{disabled:p},kA)),J.createElement(Xp.Provider,{value:bA},kA)},ew=A=>{const e=J.useContext(Xp),t=J.useContext(WI);return J.createElement(Aw,Object.assign({parentContext:e,legacyLocale:t},A))};ew.ConfigContext=Xp,ew.SizeContext=tf,ew.config=A=>{const{prefixCls:e,iconPrefixCls:t,theme:n,holderRender:o}=A;void 0!==e&&($h=e),void 0!==t&&(zh=t),"holderRender"in A&&(_h=o),n&&(!function(A){return Object.keys(A).some((A=>A.endsWith("Color")))}(n)?Wh=n:Zp(Xh(),n))},ew.useConfig=function(){return{componentDisabled:J.useContext(Af),componentSize:J.useContext(tf)}},Object.defineProperty(ew,"SizeContext",{get:()=>tf});const tw=ew;var nw={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm193.5 301.7l-210.6 292a31.8 31.8 0 01-51.7 0L318.5 484.9c-3.8-5.3 0-12.7 6.5-12.7h46.9c10.2 0 19.9 4.9 25.9 13.3l71.2 98.8 157.2-218c6-8.3 15.6-13.3 25.9-13.3H699c6.5 0 10.3 7.4 6.5 12.7z"}}]},name:"check-circle",theme:"filled"};function ow(A){var e;return null==A||null===(e=A.getRootNode)||void 0===e?void 0:e.call(A)}function rw(A){return function(A){return ow(A)instanceof ShadowRoot}(A)?ow(A):null}function iw(A){return"object"===mc(A)&&"string"==typeof A.name&&"string"==typeof A.theme&&("object"===mc(A.icon)||"function"==typeof A.icon)}function aw(){var A=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return Object.keys(A).reduce((function(e,t){var n,o=A[t];if("class"===t)e.className=o,delete e.class;else delete e[t],e[(n=t,n.replace(/-(.)/g,(function(A,e){return e.toUpperCase()})))]=o;return e}),{})}function sw(A,e,t){return t?j.createElement(A.tag,kc(kc({key:e},aw(A.attrs)),t),(A.children||[]).map((function(t,n){return sw(t,"".concat(e,"-").concat(A.tag,"-").concat(n))}))):j.createElement(A.tag,kc({key:e},aw(A.attrs)),(A.children||[]).map((function(t,n){return sw(t,"".concat(e,"-").concat(A.tag,"-").concat(n))})))}function lw(A){return xp(A)[0]}function gw(A){return A?Array.isArray(A)?A:[A]:[]}var cw=["icon","className","onClick","style","primaryColor","secondaryColor"],uw={primaryColor:"#333",secondaryColor:"#E6E6E6",calculated:!1};var Bw=function(A){var e,t,n,o,r,i,a,s=A.icon,l=A.className,g=A.onClick,c=A.style,u=A.primaryColor,B=A.secondaryColor,Q=Mc(A,cw),E=J.useRef(),C=uw;if(u&&(C={primaryColor:u,secondaryColor:B||lw(u)}),e=E,t=J.useContext(MI),n=t.csp,o=t.prefixCls,r="\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",o&&(r=r.replace(/anticon/g,o)),J.useEffect((function(){var A=rw(e.current);cE(r,"@ant-design-icons",{prepend:!0,csp:n,attachTo:A})}),[]),i=iw(s),a="icon should be icon definiton, but got ".concat(s),dE(i,"[@ant-design/icons] ".concat(a)),!iw(s))return null;var d=s;return d&&"function"==typeof d.icon&&(d=kc(kc({},d),{},{icon:d.icon(C.primaryColor,C.secondaryColor)})),sw(d.icon,"svg-".concat(d.name),kc(kc({className:l,onClick:g,style:c,"data-icon":d.name,width:"1em",height:"1em",fill:"currentColor","aria-hidden":"true"},Q),{},{ref:E}))};function Qw(A){var e=WQ(gw(A),2),t=e[0],n=e[1];return Bw.setTwoToneColors({primaryColor:t,secondaryColor:n})}Bw.displayName="IconReact",Bw.getTwoToneColors=function(){return kc({},uw)},Bw.setTwoToneColors=function(A){var e=A.primaryColor,t=A.secondaryColor;uw.primaryColor=e,uw.secondaryColor=t||lw(e),uw.calculated=!!t};var Ew=["className","icon","spin","rotate","tabIndex","onClick","twoToneColor"];Qw(Rp.primary);var Cw=J.forwardRef((function(A,e){var t=A.className,n=A.icon,o=A.spin,r=A.rotate,i=A.tabIndex,a=A.onClick,s=A.twoToneColor,l=Mc(A,Ew),g=J.useContext(MI),c=g.prefixCls,u=void 0===c?"anticon":c,B=g.rootClassName,Q=ud(B,u,bc(bc({},"".concat(u,"-").concat(n.name),!!n.name),"".concat(u,"-spin"),!!o||"loading"===n.name),t),E=i;void 0===E&&a&&(E=-1);var C=r?{msTransform:"rotate(".concat(r,"deg)"),transform:"rotate(".concat(r,"deg)")}:void 0,d=WQ(gw(s),2),I=d[0],p=d[1];return J.createElement("span",BQ({role:"img","aria-label":n.name},l,{ref:e,tabIndex:E,onClick:a,className:Q}),J.createElement(Bw,{icon:n,primaryColor:I,secondaryColor:p,style:C}))}));Cw.displayName="AntdIcon",Cw.getTwoToneColor=function(){var A=Bw.getTwoToneColors();return A.calculated?[A.primaryColor,A.secondaryColor]:A.primaryColor},Cw.setTwoToneColor=Qw;var dw=function(A,e){return J.createElement(Cw,BQ({},A,{ref:e,icon:nw}))},Iw=J.forwardRef(dw),pw={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"},fw=function(A,e){return J.createElement(Cw,BQ({},A,{ref:e,icon:pw}))},hw=J.forwardRef(fw),ww={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"},Dw=function(A,e){return J.createElement(Cw,BQ({},A,{ref:e,icon:ww}))},mw=J.forwardRef(Dw),yw={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"},bw=function(A,e){return J.createElement(Cw,BQ({},A,{ref:e,icon:yw}))},vw=J.forwardRef(bw),kw={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"},Mw=function(A,e){return J.createElement(Cw,BQ({},A,{ref:e,icon:kw}))},xw=J.forwardRef(Mw),Sw="".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]+/),Fw="aria-",Nw="data-";function Rw(A,e){return 0===A.indexOf(e)}function Lw(A){var e,t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];e=!1===t?{aria:!0,data:!0,attr:!0}:!0===t?{aria:!0}:kc({},t);var n={};return Object.keys(A).forEach((function(t){(e.aria&&("role"===t||Rw(t,Fw))||e.data&&Rw(t,Nw)||e.attr&&Sw.includes(t))&&(n[t]=A[t])})),n}function Pw(A){return A&&j.isValidElement(A)&&A.type===j.Fragment}const Hw=(A,e,t)=>j.isValidElement(A)?j.cloneElement(A,"function"==typeof t?t(A.props||{}):t):e;function Gw(A,e){return Hw(A,A,e)}const Ow=(A,e,t,n,o)=>({background:A,border:`${UE(n.lineWidth)} ${n.lineType} ${e}`,[`${o}-icon`]:{color:t}}),Uw=A=>{const{componentCls:e,motionDurationSlow:t,marginXS:n,marginSM:o,fontSize:r,fontSizeLG:i,lineHeight:a,borderRadiusLG:s,motionEaseInOutCirc:l,withDescriptionIconSize:g,colorText:c,colorTextHeading:u,withDescriptionPadding:B,defaultPadding:Q}=A;return{[e]:Object.assign(Object.assign({},Mf(A)),{position:"relative",display:"flex",alignItems:"center",padding:Q,wordWrap:"break-word",borderRadius:s,[`&${e}-rtl`]:{direction:"rtl"},[`${e}-content`]:{flex:1,minWidth:0},[`${e}-icon`]:{marginInlineEnd:n,lineHeight:0},"&-description":{display:"none",fontSize:r,lineHeight:a},"&-message":{color:u},[`&${e}-motion-leave`]:{overflow:"hidden",opacity:1,transition:`max-height ${t} ${l}, opacity ${t} ${l},\n padding-top ${t} ${l}, padding-bottom ${t} ${l},\n margin-bottom ${t} ${l}`},[`&${e}-motion-leave-active`]:{maxHeight:0,marginBottom:"0 !important",paddingTop:0,paddingBottom:0,opacity:0}}),[`${e}-with-description`]:{alignItems:"flex-start",padding:B,[`${e}-icon`]:{marginInlineEnd:o,fontSize:g,lineHeight:0},[`${e}-message`]:{display:"block",marginBottom:n,color:u,fontSize:i},[`${e}-description`]:{display:"block",color:c}},[`${e}-banner`]:{marginBottom:0,border:"0 !important",borderRadius:0}}},Kw=A=>{const{componentCls:e,colorSuccess:t,colorSuccessBorder:n,colorSuccessBg:o,colorWarning:r,colorWarningBorder:i,colorWarningBg:a,colorError:s,colorErrorBorder:l,colorErrorBg:g,colorInfo:c,colorInfoBorder:u,colorInfoBg:B}=A;return{[e]:{"&-success":Ow(o,n,t,A,e),"&-info":Ow(B,u,c,A,e),"&-warning":Ow(a,i,r,A,e),"&-error":Object.assign(Object.assign({},Ow(g,l,s,A,e)),{[`${e}-description > pre`]:{margin:0,padding:0}})}}},Yw=A=>{const{componentCls:e,iconCls:t,motionDurationMid:n,marginXS:o,fontSizeIcon:r,colorIcon:i,colorIconHover:a}=A;return{[e]:{"&-action":{marginInlineStart:o},[`${e}-close-icon`]:{marginInlineStart:o,padding:0,overflow:"hidden",fontSize:r,lineHeight:UE(r),backgroundColor:"transparent",border:"none",outline:"none",cursor:"pointer",[`${t}-close`]:{color:i,transition:`color ${n}`,"&:hover":{color:a}}},"&-close-text":{color:i,transition:`color ${n}`,"&:hover":{color:a}}}}},Tw=jf("Alert",(A=>[Uw(A),Kw(A),Yw(A)]),(A=>({withDescriptionIconSize:A.fontSizeHeading3,defaultPadding:`${A.paddingContentVerticalSM}px 12px`,withDescriptionPadding:`${A.paddingMD}px ${A.paddingContentHorizontalLG}px`})));var Jw=function(A,e){var t={};for(var n in A)Object.prototype.hasOwnProperty.call(A,n)&&e.indexOf(n)<0&&(t[n]=A[n]);if(null!=A&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(n=Object.getOwnPropertySymbols(A);o{const{icon:e,prefixCls:t,type:n}=A,o=jw[n]||null;return e?Hw(e,J.createElement("span",{className:`${t}-icon`},e),(()=>({className:ud(`${t}-icon`,{[e.props.className]:e.props.className})}))):J.createElement(o,{className:`${t}-icon`})},$w=A=>{const{isClosable:e,prefixCls:t,closeIcon:n,handleClose:o,ariaProps:r}=A,i=!0===n||void 0===n?J.createElement(mw,null):n;return e?J.createElement("button",Object.assign({type:"button",onClick:o,className:`${t}-close-icon`,tabIndex:0},r),i):null},zw=J.forwardRef(((A,e)=>{const{description:t,prefixCls:n,message:o,banner:r,className:i,rootClassName:a,style:s,onMouseEnter:l,onMouseLeave:g,onClick:c,afterClose:u,showIcon:B,closable:Q,closeText:E,closeIcon:C,action:d,id:I}=A,p=Jw(A,["description","prefixCls","message","banner","className","rootClassName","style","onMouseEnter","onMouseLeave","onClick","afterClose","showIcon","closable","closeText","closeIcon","action","id"]),[f,h]=J.useState(!1),w=J.useRef(null);J.useImperativeHandle(e,(()=>({nativeElement:w.current})));const{getPrefixCls:D,direction:m,alert:y}=J.useContext(Xp),b=D("alert",n),[v,k,M]=Tw(b),x=e=>{var t;h(!0),null===(t=A.onClose)||void 0===t||t.call(A,e)},S=J.useMemo((()=>void 0!==A.type?A.type:r?"warning":"info"),[A.type,r]),F=J.useMemo((()=>!("object"!=typeof Q||!Q.closeIcon)||(!!E||("boolean"==typeof Q?Q:!1!==C&&null!=C||!!(null==y?void 0:y.closable)))),[E,C,Q,null==y?void 0:y.closable]),N=!(!r||void 0!==B)||B,R=ud(b,`${b}-${S}`,{[`${b}-with-description`]:!!t,[`${b}-no-icon`]:!N,[`${b}-banner`]:!!r,[`${b}-rtl`]:"rtl"===m},null==y?void 0:y.className,i,a,M,k),L=Lw(p,{aria:!0,data:!0}),P=J.useMemo((()=>{var A,e;return"object"==typeof Q&&Q.closeIcon?Q.closeIcon:E||(void 0!==C?C:"object"==typeof(null==y?void 0:y.closable)&&(null===(A=null==y?void 0:y.closable)||void 0===A?void 0:A.closeIcon)?null===(e=null==y?void 0:y.closable)||void 0===e?void 0:e.closeIcon:null==y?void 0:y.closeIcon)}),[C,Q,E,null==y?void 0:y.closeIcon]),H=J.useMemo((()=>{const A=null!=Q?Q:null==y?void 0:y.closable;if("object"==typeof A){return Jw(A,["closeIcon"])}return{}}),[Q,null==y?void 0:y.closable]);return v(J.createElement(Nh,{visible:!f,motionName:`${b}-motion`,motionAppear:!1,motionEnter:!1,onLeaveStart:A=>({maxHeight:A.offsetHeight}),onLeaveEnd:u},(e=>{let{className:n,style:r}=e;return J.createElement("div",Object.assign({id:I,ref:w,"data-show":!f,className:ud(R,n),style:Object.assign(Object.assign(Object.assign({},null==y?void 0:y.style),s),r),onMouseEnter:l,onMouseLeave:g,onClick:c,role:"alert"},L),N?J.createElement(qw,{description:t,icon:A.icon,prefixCls:b,type:S}):null,J.createElement("div",{className:`${b}-content`},o?J.createElement("div",{className:`${b}-message`},o):null,t?J.createElement("div",{className:`${b}-description`},t):null),d?J.createElement("div",{className:`${b}-action`},d):null,J.createElement($w,{isClosable:F,prefixCls:b,closeIcon:P,handleClose:x,ariaProps:H}))})))}));let Ww=function(A){function e(){var A;return eQ(this,e),(A=df(this,e,arguments)).state={error:void 0,info:{componentStack:""}},A}return cI(e,J.Component),nQ(e,[{key:"componentDidCatch",value:function(A,e){this.setState({error:A,info:e})}},{key:"render",value:function(){const{message:A,description:e,id:t,children:n}=this.props,{error:o,info:r}=this.state,i=r&&r.componentStack?r.componentStack:null,a=void 0===A?(o||"").toString():A,s=void 0===e?i:e;return o?J.createElement(zw,{id:t,type:"error",message:a,description:J.createElement("pre",{style:{fontSize:"0.9em",overflowX:"auto"}},s)}):n}}])}();const _w=zw;_w.ErrorBoundary=Ww;const Xw=A=>"object"==typeof A&&null!=A&&1===A.nodeType,Vw=(A,e)=>(!e||"hidden"!==A)&&"visible"!==A&&"clip"!==A,Zw=(A,e)=>{if(A.clientHeight{const e=(A=>{if(!A.ownerDocument||!A.ownerDocument.defaultView)return null;try{return A.ownerDocument.defaultView.frameElement}catch(e){return null}})(A);return!!e&&(e.clientHeightre||r>A&&i=e&&a>=t?r-A-n:i>e&&at?i-e+o:0,eD=A=>{const e=A.parentElement;return null==e?A.getRootNode().host||null:e},tD=(A,e)=>{var t,n,o,r;if("undefined"==typeof document)return[];const{scrollMode:i,block:a,inline:s,boundary:l,skipOverflowHiddenElements:g}=e,c="function"==typeof l?l:A=>A!==l;if(!Xw(A))throw new TypeError("Invalid target");const u=document.scrollingElement||document.documentElement,B=[];let Q=A;for(;Xw(Q)&&c(Q);){if(Q=eD(Q),Q===u){B.push(Q);break}null!=Q&&Q===document.body&&Zw(Q)&&!Zw(document.documentElement)||null!=Q&&Zw(Q,g)&&B.push(Q)}const E=null!=(n=null==(t=window.visualViewport)?void 0:t.width)?n:innerWidth,C=null!=(r=null==(o=window.visualViewport)?void 0:o.height)?r:innerHeight,{scrollX:d,scrollY:I}=window,{height:p,width:f,top:h,right:w,bottom:D,left:m}=A.getBoundingClientRect(),{top:y,right:b,bottom:v,left:k}=(A=>{const e=window.getComputedStyle(A);return{top:parseFloat(e.scrollMarginTop)||0,right:parseFloat(e.scrollMarginRight)||0,bottom:parseFloat(e.scrollMarginBottom)||0,left:parseFloat(e.scrollMarginLeft)||0}})(A);let M="start"===a||"nearest"===a?h-y:"end"===a?D+v:h+p/2-y+v,x="center"===s?m+f/2-k+b:"end"===s?w+b:m-k;const S=[];for(let F=0;F=0&&m>=0&&D<=C&&w<=E&&h>=n&&D<=r&&m>=l&&w<=o)return S;const g=getComputedStyle(A),c=parseInt(g.borderLeftWidth,10),Q=parseInt(g.borderTopWidth,10),y=parseInt(g.borderRightWidth,10),b=parseInt(g.borderBottomWidth,10);let v=0,k=0;const N="offsetWidth"in A?A.offsetWidth-A.clientWidth-c-y:0,R="offsetHeight"in A?A.offsetHeight-A.clientHeight-Q-b:0,L="offsetWidth"in A?0===A.offsetWidth?0:t/A.offsetWidth:0,P="offsetHeight"in A?0===A.offsetHeight?0:e/A.offsetHeight:0;if(u===A)v="start"===a?M:"end"===a?M-C:"nearest"===a?AD(I,I+C,C,Q,b,I+M,I+M+p,p):M-C/2,k="start"===s?x:"center"===s?x-E/2:"end"===s?x-E:AD(d,d+E,E,c,y,d+x,d+x+f,f),v=Math.max(0,v+I),k=Math.max(0,k+d);else{v="start"===a?M-n-Q:"end"===a?M-r+b+R:"nearest"===a?AD(n,r,e,Q,b+R,M,M+p,p):M-(n+e/2)+R/2,k="start"===s?x-l-c:"center"===s?x-(l+t/2)+N/2:"end"===s?x-o+y+N:AD(l,o,t,c,y+N,x,x+f,f);const{scrollLeft:i,scrollTop:g}=A;v=0===P?0:Math.max(0,Math.min(g+v/P,A.scrollHeight-e/P+R)),k=0===L?0:Math.max(0,Math.min(i+k/L,A.scrollWidth-t/L+N)),M+=g-v,x+=i-k}S.push({el:A,top:v,left:k})}return S},nD=A=>{return!1===A?{block:"end",inline:"nearest"}:(e=A)===Object(e)&&0!==Object.keys(e).length?A:{block:"start",inline:"nearest"};var e};const oD=A=>{const[,,,,e]=Cf();return e?`${A}-css-var`:""};var rD={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(A){var e=A.keyCode;if(A.altKey&&!A.ctrlKey||A.metaKey||e>=rD.F1&&e<=rD.F12)return!1;switch(e){case rD.ALT:case rD.CAPS_LOCK:case rD.CONTEXT_MENU:case rD.CTRL:case rD.DOWN:case rD.END:case rD.ESC:case rD.HOME:case rD.INSERT:case rD.LEFT:case rD.MAC_FF_META:case rD.META:case rD.NUMLOCK:case rD.NUM_CENTER:case rD.PAGE_DOWN:case rD.PAGE_UP:case rD.PAUSE:case rD.PRINT_SCREEN:case rD.RIGHT:case rD.SHIFT:case rD.UP:case rD.WIN_KEY:case rD.WIN_KEY_RIGHT:return!1;default:return!0}},isCharacterKey:function(A){if(A>=rD.ZERO&&A<=rD.NINE)return!0;if(A>=rD.NUM_ZERO&&A<=rD.NUM_MULTIPLY)return!0;if(A>=rD.A&&A<=rD.Z)return!0;if(-1!==window.navigator.userAgent.indexOf("WebKit")&&0===A)return!0;switch(A){case rD.SPACE:case rD.QUESTION_MARK:case rD.NUM_PLUS:case rD.NUM_MINUS:case rD.NUM_PERIOD:case rD.NUM_DIVISION:case rD.SEMICOLON:case rD.DASH:case rD.EQUALS:case rD.COMMA:case rD.PERIOD:case rD.SLASH:case rD.APOSTROPHE:case rD.SINGLE_QUOTE:case rD.OPEN_SQUARE_BRACKET:case rD.BACKSLASH:case rD.CLOSE_SQUARE_BRACKET:return!0;default:return!1}}},iD=J.forwardRef((function(A,e){var t=A.prefixCls,n=A.style,o=A.className,r=A.duration,i=void 0===r?4.5:r,a=A.eventKey,s=A.content,l=A.closable,g=A.closeIcon,c=void 0===g?"x":g,u=A.props,B=A.onClick,Q=A.onNoticeClose,E=A.times,C=A.hovering,d=WQ(J.useState(!1),2),I=d[0],p=d[1],f=C||I,h=function(){Q(a)};J.useEffect((function(){if(!f&&i>0){var A=setTimeout((function(){h()}),1e3*i);return function(){clearTimeout(A)}}}),[i,f,E]);var w=J.useMemo((function(){return"object"===mc(l)&&null!==l?l:l?{closeIcon:c}:{}}),[l,c]),D=Lw(w,!0),m="".concat(t,"-notice");return J.createElement("div",BQ({},u,{ref:e,className:ud(m,o,bc({},"".concat(m,"-closable"),l)),style:n,onMouseEnter:function(A){var e;p(!0),null==u||null===(e=u.onMouseEnter)||void 0===e||e.call(u,A)},onMouseLeave:function(A){var e;p(!1),null==u||null===(e=u.onMouseLeave)||void 0===e||e.call(u,A)},onClick:B}),J.createElement("div",{className:"".concat(m,"-content")},s),l&&J.createElement("a",BQ({tabIndex:0,className:"".concat(m,"-close"),onKeyDown:function(A){"Enter"!==A.key&&"Enter"!==A.code&&A.keyCode!==rD.ENTER||h()},"aria-label":"Close"},D,{onClick:function(A){A.preventDefault(),A.stopPropagation(),h()}}),w.closeIcon))})),aD=j.createContext({}),sD=function(A){var e=A.children,t=A.classNames;return j.createElement(aD.Provider,{value:{classNames:t}},e)},lD=["className","style","classNames","styles"],gD=function(A){var e,t,n,o,r,i=A.configList,a=A.placement,s=A.prefixCls,l=A.className,g=A.style,c=A.motion,u=A.onAllNoticeRemoved,B=A.onNoticeClose,Q=A.stack,E=J.useContext(aD).classNames,C=J.useRef({}),d=WQ(J.useState(null),2),I=d[0],p=d[1],f=WQ(J.useState([]),2),h=f[0],w=f[1],D=i.map((function(A){return{config:A,key:String(A.key)}})),m=WQ((r={offset:8,threshold:3,gap:16},(e=Q)&&"object"===mc(e)&&(r.offset=null!==(t=e.offset)&&void 0!==t?t:8,r.threshold=null!==(n=e.threshold)&&void 0!==n?n:3,r.gap=null!==(o=e.gap)&&void 0!==o?o:16),[!!e,r]),2),y=m[0],b=m[1],v=b.offset,k=b.threshold,M=b.gap,x=y&&(h.length>0||D.length<=k),S="function"==typeof c?c(a):c;return J.useEffect((function(){y&&h.length>1&&w((function(A){return A.filter((function(A){return D.some((function(e){var t=e.key;return A===t}))}))}))}),[h,D,y]),J.useEffect((function(){var A,e;y&&C.current[null===(A=D[D.length-1])||void 0===A?void 0:A.key]&&p(C.current[null===(e=D[D.length-1])||void 0===e?void 0:e.key])}),[D,y]),j.createElement(Th,BQ({key:a,className:ud(s,"".concat(s,"-").concat(a),null==E?void 0:E.list,l,bc(bc({},"".concat(s,"-stack"),!!y),"".concat(s,"-stack-expanded"),x)),style:g,keys:D,motionAppear:!0},S,{onAllRemoved:function(){u(a)}}),(function(A,e){var t=A.config,n=A.className,o=A.style,r=A.index,i=t,l=i.key,g=i.times,c=String(l),u=t,Q=u.className,d=u.style,p=u.classNames,f=u.styles,m=Mc(u,lD),b=D.findIndex((function(A){return A.key===c})),k={};if(y){var S=D.length-1-(b>-1?b:r-1),F="top"===a||"bottom"===a?"-50%":"0";if(S>0){var N,R,L;k.height=x?null===(N=C.current[c])||void 0===N?void 0:N.offsetHeight:null==I?void 0:I.offsetHeight;for(var P=0,H=0;H-1?C.current[c]=A:delete C.current[c]},prefixCls:s,classNames:p,styles:f,className:ud(Q,null==E?void 0:E.notice),style:d,times:g,key:l,eventKey:l,onNoticeClose:B,hovering:y&&h.length>0})))}))},cD=J.forwardRef((function(A,e){var t=A.prefixCls,n=void 0===t?"rc-notification":t,o=A.container,r=A.motion,i=A.maxCount,a=A.className,s=A.style,l=A.onAllRemoved,g=A.stack,c=A.renderNotifications,u=WQ(J.useState([]),2),B=u[0],Q=u[1],E=function(A){var e,t=B.find((function(e){return e.key===A}));null==t||null===(e=t.onClose)||void 0===e||e.call(t),Q((function(e){return e.filter((function(e){return e.key!==A}))}))};J.useImperativeHandle(e,(function(){return{open:function(A){Q((function(e){var t,n=XQ(e),o=n.findIndex((function(e){return e.key===A.key})),r=kc({},A);o>=0?(r.times=((null===(t=e[o])||void 0===t?void 0:t.times)||0)+1,n[o]=r):(r.times=0,n.push(r));return i>0&&n.length>i&&(n=n.slice(-i)),n}))},close:function(A){E(A)},destroy:function(){Q([])}}}));var C=WQ(J.useState({}),2),d=C[0],I=C[1];J.useEffect((function(){var A={};B.forEach((function(e){var t=e.placement,n=void 0===t?"topRight":t;n&&(A[n]=A[n]||[],A[n].push(e))})),Object.keys(d).forEach((function(e){A[e]=A[e]||[]})),I(A)}),[B]);var p=function(A){I((function(e){var t=kc({},e);return(t[A]||[]).length||delete t[A],t}))},f=J.useRef(!1);if(J.useEffect((function(){Object.keys(d).length>0?f.current=!0:f.current&&(null==l||l(),f.current=!1)}),[d]),!o)return null;var h=Object.keys(d);return pc.createPortal(J.createElement(J.Fragment,null,h.map((function(A){var e=d[A],t=J.createElement(gD,{key:A,configList:e,placement:A,prefixCls:n,className:null==a?void 0:a(A),style:null==s?void 0:s(A),motion:r,onNoticeClose:E,onAllNoticeRemoved:p,stack:g});return c?c(t,{prefixCls:n,key:A}):t}))),o)})),uD=["getContainer","motion","prefixCls","maxCount","className","style","onAllRemoved","stack","renderNotifications"],BD=function(){return document.body},QD=0;function ED(){var A=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=A.getContainer,t=void 0===e?BD:e,n=A.motion,o=A.prefixCls,r=A.maxCount,i=A.className,a=A.style,s=A.onAllRemoved,l=A.stack,g=A.renderNotifications,c=Mc(A,uD),u=WQ(J.useState(),2),B=u[0],Q=u[1],E=J.useRef(),C=J.createElement(cD,{container:B,ref:E,prefixCls:o,motion:n,maxCount:r,className:i,style:a,onAllRemoved:s,stack:l,renderNotifications:g}),d=WQ(J.useState([]),2),I=d[0],p=d[1],f=J.useMemo((function(){return{open:function(A){var e=function(){for(var A={},e=arguments.length,t=new Array(e),n=0;n{const{componentCls:e,iconCls:t,boxShadow:n,colorText:o,colorSuccess:r,colorError:i,colorWarning:a,colorInfo:s,fontSizeLG:l,motionEaseInOutCirc:g,motionDurationSlow:c,marginXS:u,paddingXS:B,borderRadiusLG:Q,zIndexPopup:E,contentPadding:C,contentBg:d}=A,I=`${e}-notice`,p=new ad("MessageMoveIn",{"0%":{padding:0,transform:"translateY(-100%)",opacity:0},"100%":{padding:B,transform:"translateY(0)",opacity:1}}),f=new ad("MessageMoveOut",{"0%":{maxHeight:A.height,padding:B,opacity:1},"100%":{maxHeight:0,padding:0,opacity:0}}),h={padding:B,textAlign:"center",[`${e}-custom-content > ${t}`]:{verticalAlign:"text-bottom",marginInlineEnd:u,fontSize:l},[`${I}-content`]:{display:"inline-block",padding:C,background:d,borderRadius:Q,boxShadow:n,pointerEvents:"all"},[`${e}-success > ${t}`]:{color:r},[`${e}-error > ${t}`]:{color:i},[`${e}-warning > ${t}`]:{color:a},[`${e}-info > ${t},\n ${e}-loading > ${t}`]:{color:s}};return[{[e]:Object.assign(Object.assign({},Mf(A)),{color:o,position:"fixed",top:u,width:"100%",pointerEvents:"none",zIndex:E,[`${e}-move-up`]:{animationFillMode:"forwards"},[`\n ${e}-move-up-appear,\n ${e}-move-up-enter\n `]:{animationName:p,animationDuration:c,animationPlayState:"paused",animationTimingFunction:g},[`\n ${e}-move-up-appear${e}-move-up-appear-active,\n ${e}-move-up-enter${e}-move-up-enter-active\n `]:{animationPlayState:"running"},[`${e}-move-up-leave`]:{animationName:f,animationDuration:c,animationPlayState:"paused",animationTimingFunction:g},[`${e}-move-up-leave${e}-move-up-leave-active`]:{animationPlayState:"running"},"&-rtl":{direction:"rtl",span:{direction:"rtl"}}})},{[e]:{[`${I}-wrapper`]:Object.assign({},h)}},{[`${e}-notice-pure-panel`]:Object.assign(Object.assign({},h),{padding:0,textAlign:"start"})}]},bD=jf("Message",(A=>{const e=Pf(A,{height:150});return[yD(e)]}),(A=>({zIndexPopup:A.zIndexPopupBase+hD+10,contentBg:A.colorBgElevated,contentPadding:`${(A.controlHeightLG-A.fontSize*A.lineHeight)/2}px ${A.paddingSM}px`})));const vD={info:J.createElement(xw,null),success:J.createElement(Iw,null),error:J.createElement(hw,null),warning:J.createElement(vw,null),loading:J.createElement(ID,null)},kD=A=>{let{prefixCls:e,type:t,icon:n,children:o}=A;return J.createElement("div",{className:ud(`${e}-custom-content`,`${e}-${t}`)},n||vD[t],J.createElement("span",null,o))};function MD(A){let e;const t=new Promise((t=>{e=A((()=>{t(!0)}))})),n=()=>{null==e||e()};return n.then=(A,e)=>t.then(A,e),n.promise=t,n}var xD=function(A,e){var t={};for(var n in A)Object.prototype.hasOwnProperty.call(A,n)&&e.indexOf(n)<0&&(t[n]=A[n]);if(null!=A&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(n=Object.getOwnPropertySymbols(A);o{let{children:e,prefixCls:t}=A;const n=oD(t),[o,r,i]=bD(t,n);return o(J.createElement(sD,{classNames:{list:ud(r,i,n)}},e))},ND=(A,e)=>{let{prefixCls:t,key:n}=e;return J.createElement(FD,{prefixCls:t,key:n},A)},RD=J.forwardRef(((A,e)=>{const{top:t,prefixCls:n,getContainer:o,maxCount:r,duration:i=SD,rtl:a,transitionName:s,onAllRemoved:l}=A,{getPrefixCls:g,getPopupContainer:c,message:u,direction:B}=J.useContext(Xp),Q=n||g("message"),E=J.createElement("span",{className:`${Q}-close-x`},J.createElement(mw,{className:`${Q}-close-icon`})),[C,d]=ED({prefixCls:Q,style:()=>({left:"50%",transform:"translateX(-50%)",top:null!=t?t:8}),className:()=>ud({[`${Q}-rtl`]:null!=a?a:"rtl"===B}),motion:()=>function(A,e){return{motionName:null!=e?e:`${A}-move-up`}}(Q,s),closable:!1,closeIcon:E,duration:i,getContainer:()=>(null==o?void 0:o())||(null==c?void 0:c())||document.body,maxCount:r,onAllRemoved:l,renderNotifications:ND});return J.useImperativeHandle(e,(()=>Object.assign(Object.assign({},C),{prefixCls:Q,message:u}))),d}));let LD=0;function PD(A){const e=J.useRef(null);OI();return[J.useMemo((()=>{const A=A=>{var t;null===(t=e.current)||void 0===t||t.close(A)},t=t=>{if(!e.current){const A=()=>{};return A.then=()=>{},A}const{open:n,prefixCls:o,message:r}=e.current,i=`${o}-notice`,{content:a,icon:s,type:l,key:g,className:c,style:u,onClose:B}=t,Q=xD(t,["content","icon","type","key","className","style","onClose"]);let E=g;return null==E&&(LD+=1,E=`antd-message-${LD}`),MD((e=>(n(Object.assign(Object.assign({},Q),{key:E,content:J.createElement(kD,{prefixCls:o,type:l,icon:s},a),placement:"top",className:ud(l&&`${i}-${l}`,c,null==r?void 0:r.className),style:Object.assign(Object.assign({},null==r?void 0:r.style),u),onClose:()=>{null==B||B(),e()}})),()=>{A(E)})))},n={open:t,destroy:t=>{var n;void 0!==t?A(t):null===(n=e.current)||void 0===n||n.destroy()}};return["info","success","warning","error","loading"].forEach((A=>{n[A]=(e,n,o)=>{let r,i,a;r=e&&"object"==typeof e&&"content"in e?e:{content:e},"function"==typeof n?a=n:(i=n,a=o);const s=Object.assign(Object.assign({onClose:a,duration:i},r),{type:A});return t(s)}})),n}),[]),J.createElement(RD,Object.assign({key:"message-holder"},A,{ref:e}))]}function HD(A){return PD(A)}function GD(){GD=function(){return e};var A,e={},t=Object.prototype,n=t.hasOwnProperty,o=Object.defineProperty||function(A,e,t){A[e]=t.value},r="function"==typeof Symbol?Symbol:{},i=r.iterator||"@@iterator",a=r.asyncIterator||"@@asyncIterator",s=r.toStringTag||"@@toStringTag";function l(A,e,t){return Object.defineProperty(A,e,{value:t,enumerable:!0,configurable:!0,writable:!0}),A[e]}try{l({},"")}catch(F){l=function(A,e,t){return A[e]=t}}function g(A,e,t,n){var r=e&&e.prototype instanceof d?e:d,i=Object.create(r.prototype),a=new x(n||[]);return o(i,"_invoke",{value:b(A,t,a)}),i}function c(A,e,t){try{return{type:"normal",arg:A.call(e,t)}}catch(n){return{type:"throw",arg:n}}}e.wrap=g;var u="suspendedStart",B="suspendedYield",Q="executing",E="completed",C={};function d(){}function I(){}function p(){}var f={};l(f,i,(function(){return this}));var h=Object.getPrototypeOf,w=h&&h(h(S([])));w&&w!==t&&n.call(w,i)&&(f=w);var D=p.prototype=d.prototype=Object.create(f);function m(A){["next","throw","return"].forEach((function(e){l(A,e,(function(A){return this._invoke(e,A)}))}))}function y(A,e){function t(o,r,i,a){var s=c(A[o],A,r);if("throw"!==s.type){var l=s.arg,g=l.value;return g&&"object"==mc(g)&&n.call(g,"__await")?e.resolve(g.__await).then((function(A){t("next",A,i,a)}),(function(A){t("throw",A,i,a)})):e.resolve(g).then((function(A){l.value=A,i(l)}),(function(A){return t("throw",A,i,a)}))}a(s.arg)}var r;o(this,"_invoke",{value:function(A,n){function o(){return new e((function(e,o){t(A,n,e,o)}))}return r=r?r.then(o,o):o()}})}function b(e,t,n){var o=u;return function(r,i){if(o===Q)throw Error("Generator is already running");if(o===E){if("throw"===r)throw i;return{value:A,done:!0}}for(n.method=r,n.arg=i;;){var a=n.delegate;if(a){var s=v(a,n);if(s){if(s===C)continue;return s}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(o===u)throw o=E,n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);o=Q;var l=c(e,t,n);if("normal"===l.type){if(o=n.done?E:B,l.arg===C)continue;return{value:l.arg,done:n.done}}"throw"===l.type&&(o=E,n.method="throw",n.arg=l.arg)}}}function v(e,t){var n=t.method,o=e.iterator[n];if(o===A)return t.delegate=null,"throw"===n&&e.iterator.return&&(t.method="return",t.arg=A,v(e,t),"throw"===t.method)||"return"!==n&&(t.method="throw",t.arg=new TypeError("The iterator does not provide a '"+n+"' method")),C;var r=c(o,e.iterator,t.arg);if("throw"===r.type)return t.method="throw",t.arg=r.arg,t.delegate=null,C;var i=r.arg;return i?i.done?(t[e.resultName]=i.value,t.next=e.nextLoc,"return"!==t.method&&(t.method="next",t.arg=A),t.delegate=null,C):i:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,C)}function k(A){var e={tryLoc:A[0]};1 in A&&(e.catchLoc=A[1]),2 in A&&(e.finallyLoc=A[2],e.afterLoc=A[3]),this.tryEntries.push(e)}function M(A){var e=A.completion||{};e.type="normal",delete e.arg,A.completion=e}function x(A){this.tryEntries=[{tryLoc:"root"}],A.forEach(k,this),this.reset(!0)}function S(e){if(e||""===e){var t=e[i];if(t)return t.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var o=-1,r=function t(){for(;++o=0;--r){var i=this.tryEntries[r],a=i.completion;if("root"===i.tryLoc)return o("end");if(i.tryLoc<=this.prev){var s=n.call(i,"catchLoc"),l=n.call(i,"finallyLoc");if(s&&l){if(this.prev=0;--t){var o=this.tryEntries[t];if(o.tryLoc<=this.prev&&n.call(o,"finallyLoc")&&this.prev=0;--e){var t=this.tryEntries[e];if(t.finallyLoc===A)return this.complete(t.completion,t.afterLoc),M(t),C}},catch:function(A){for(var e=this.tryEntries.length-1;e>=0;--e){var t=this.tryEntries[e];if(t.tryLoc===A){var n=t.completion;if("throw"===n.type){var o=n.arg;M(t)}return o}}throw Error("illegal catch attempt")},delegateYield:function(e,t,n){return this.delegate={iterator:S(e),resultName:t,nextLoc:n},"next"===this.method&&(this.arg=A),C}},e}function OD(A,e,t,n,o,r,i){try{var a=A[r](i),s=a.value}catch(l){return void t(l)}a.done?e(s):Promise.resolve(s).then(n,o)}function UD(A){return function(){var e=this,t=arguments;return new Promise((function(n,o){var r=A.apply(e,t);function i(A){OD(r,n,o,i,a,"next",A)}function a(A){OD(r,n,o,i,a,"throw",A)}i(void 0)}))}}var KD,YD=kc({},hc),TD=YD.version,JD=YD.render,jD=YD.unmountComponentAtNode;try{Number((TD||"").split(".")[0])>=18&&(KD=YD.createRoot)}catch(R3){}function qD(A){var e=YD.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;e&&"object"===mc(e)&&(e.usingClientEntryPoint=A)}var $D="__rc_react_root__";function zD(A,e){KD?function(A,e){qD(!0);var t=e[$D]||KD(e);qD(!1),t.render(A),e[$D]=t}(A,e):function(A,e){JD(A,e)}(A,e)}function WD(A){return _D.apply(this,arguments)}function _D(){return(_D=UD(GD().mark((function A(e){return GD().wrap((function(A){for(;;)switch(A.prev=A.next){case 0:return A.abrupt("return",Promise.resolve().then((function(){var A;null===(A=e[$D])||void 0===A||A.unmount(),delete e[$D]})));case 1:case"end":return A.stop()}}),A)})))).apply(this,arguments)}function XD(A){jD(A)}function VD(A){return ZD.apply(this,arguments)}function ZD(){return(ZD=UD(GD().mark((function A(e){return GD().wrap((function(A){for(;;)switch(A.prev=A.next){case 0:if(void 0===KD){A.next=2;break}return A.abrupt("return",WD(e));case 2:XD(e);case 3:case"end":return A.stop()}}),A)})))).apply(this,arguments)}const Am=()=>({height:0,opacity:0}),em=A=>{const{scrollHeight:e}=A;return{height:e,opacity:1}},tm=A=>({height:A?A.offsetHeight:0}),nm=(A,e)=>!0===(null==e?void 0:e.deadline)||"height"===e.propertyName,om=function(){return{motionName:`${arguments.length>0&&void 0!==arguments[0]?arguments[0]:"ant"}-motion-collapse`,onAppearStart:Am,onEnterStart:Am,onAppearActive:em,onEnterActive:em,onLeaveStart:tm,onLeaveActive:Am,onAppearEnd:nm,onEnterEnd:nm,onLeaveEnd:nm,motionDeadline:500}},rm=(A,e,t)=>void 0!==t?t:`${A}-${e}`,im=function(A){if(!A)return!1;if(A instanceof Element){if(A.offsetParent)return!0;if(A.getBBox){var e=A.getBBox(),t=e.width,n=e.height;if(t||n)return!0}if(A.getBoundingClientRect){var o=A.getBoundingClientRect(),r=o.width,i=o.height;if(r||i)return!0}}return!1},am=A=>{const{componentCls:e,colorPrimary:t}=A;return{[e]:{position:"absolute",background:"transparent",pointerEvents:"none",boxSizing:"border-box",color:`var(--wave-color, ${t})`,boxShadow:"0 0 0 0 currentcolor",opacity:.2,"&.wave-motion-appear":{transition:[`box-shadow 0.4s ${A.motionEaseOutCirc}`,`opacity 2s ${A.motionEaseOutCirc}`].join(","),"&-active":{boxShadow:"0 0 0 6px currentcolor",opacity:0},"&.wave-quick":{transition:[`box-shadow ${A.motionDurationSlow} ${A.motionEaseInOut}`,`opacity ${A.motionDurationSlow} ${A.motionEaseInOut}`].join(",")}}}}},sm=Yf("Wave",(A=>[am(A)])),lm="ant-wave-target";function gm(A){return A&&"#fff"!==A&&"#ffffff"!==A&&"rgb(255, 255, 255)"!==A&&"rgba(255, 255, 255, 1)"!==A&&function(A){const e=(A||"").match(/rgba?\((\d*), (\d*), (\d*)(, [\d.]*)?\)/);return!(e&&e[1]&&e[2]&&e[3]&&e[1]===e[2]&&e[2]===e[3])}(A)&&!/rgba\((?:\d*, ){3}0\)/.test(A)&&"transparent"!==A}function cm(A){return Number.isNaN(A)?0:A}const um=A=>{const{className:e,target:t,component:n}=A,o=J.useRef(null),[r,i]=J.useState(null),[a,s]=J.useState([]),[l,g]=J.useState(0),[c,u]=J.useState(0),[B,Q]=J.useState(0),[E,C]=J.useState(0),[d,I]=J.useState(!1),p={left:l,top:c,width:B,height:E,borderRadius:a.map((A=>`${A}px`)).join(" ")};function f(){const A=getComputedStyle(t);i(function(A){const{borderTopColor:e,borderColor:t,backgroundColor:n}=getComputedStyle(A);return gm(e)?e:gm(t)?t:gm(n)?n:null}(t));const e="static"===A.position,{borderLeftWidth:n,borderTopWidth:o}=A;g(e?t.offsetLeft:cm(-parseFloat(n))),u(e?t.offsetTop:cm(-parseFloat(o))),Q(t.offsetWidth),C(t.offsetHeight);const{borderTopLeftRadius:r,borderTopRightRadius:a,borderBottomLeftRadius:l,borderBottomRightRadius:c}=A;s([r,a,c,l].map((A=>cm(parseFloat(A)))))}if(r&&(p["--wave-color"]=r),J.useEffect((()=>{if(t){const A=kI((()=>{f(),I(!0)}));let e;return"undefined"!=typeof ResizeObserver&&(e=new ResizeObserver(f),e.observe(t)),()=>{kI.cancel(A),null==e||e.disconnect()}}}),[]),!d)return null;const h=("Checkbox"===n||"Radio"===n)&&(null==t?void 0:t.classList.contains(lm));return J.createElement(Nh,{visible:!0,motionAppear:!0,motionName:"wave-motion",motionDeadline:5e3,onAppearEnd:(A,e)=>{var t;if(e.deadline||"opacity"===e.propertyName){const A=null===(t=o.current)||void 0===t?void 0:t.parentElement;VD(A).then((()=>{null==A||A.remove()}))}return!1}},(A=>{let{className:t}=A;return J.createElement("div",{ref:o,className:ud(e,{"wave-quick":h},t),style:p})}))},Bm=(A,e)=>{var t;const{component:n}=e;if("Checkbox"===n&&!(null===(t=A.querySelector("input"))||void 0===t?void 0:t.checked))return;const o=document.createElement("div");o.style.position="absolute",o.style.left="0px",o.style.top="0px",null==A||A.insertBefore(o,null==A?void 0:A.firstChild),zD(J.createElement(um,Object.assign({},e,{target:A})),o)},Qm=(A,e,t)=>{const{wave:n}=J.useContext(Xp),[,o,r]=Cf(),i=mf((i=>{const a=A.current;if((null==n?void 0:n.disabled)||!a)return;const s=a.querySelector(`.${lm}`)||a,{showEffect:l}=n||{};(l||Bm)(s,{className:e,token:o,component:t,event:i,hashId:r})})),a=J.useRef();return A=>{kI.cancel(a.current),a.current=kI((()=>{i(A)}))}},Em=A=>{const{children:e,disabled:t,component:n}=A,{getPrefixCls:o}=J.useContext(Xp),r=J.useRef(null),i=o("wave"),[,a]=sm(i),s=Qm(r,ud(i,a),n);if(j.useEffect((()=>{const A=r.current;if(!A||1!==A.nodeType||t)return;const e=e=>{!im(e.target)||!A.getAttribute||A.getAttribute("disabled")||A.disabled||A.className.includes("disabled")||A.className.includes("-leave")||s(e)};return A.addEventListener("click",e,!0),()=>{A.removeEventListener("click",e,!0)}}),[t]),!j.isValidElement(e))return null!=e?e:null;return Gw(e,{ref:Gd(e)?Pd(e.ref,r):r})},Cm=A=>{const e=j.useContext(tf);return j.useMemo((()=>A?"string"==typeof A?null!=A?A:e:A instanceof Function?A(e):e:e),[A,e])},dm=A=>{const{componentCls:e}=A;return{[e]:{"&-block":{display:"flex",width:"100%"},"&-vertical":{flexDirection:"column"}}}},Im=A=>{const{componentCls:e,antCls:t}=A;return{[e]:{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"}},[`${e}-item:empty`]:{display:"none"},[`${e}-item > ${t}-badge-not-a-wrapper:only-child`]:{display:"block"}}}},pm=A=>{const{componentCls:e}=A;return{[e]:{"&-gap-row-small":{rowGap:A.spaceGapSmallSize},"&-gap-row-middle":{rowGap:A.spaceGapMiddleSize},"&-gap-row-large":{rowGap:A.spaceGapLargeSize},"&-gap-col-small":{columnGap:A.spaceGapSmallSize},"&-gap-col-middle":{columnGap:A.spaceGapMiddleSize},"&-gap-col-large":{columnGap:A.spaceGapLargeSize}}}},fm=jf("Space",(A=>{const e=Pf(A,{spaceGapSmallSize:A.paddingXS,spaceGapMiddleSize:A.padding,spaceGapLargeSize:A.paddingLG});return[Im(e),pm(e),dm(e)]}),(()=>({})),{resetStyle:!1});var hm=function(A,e){var t={};for(var n in A)Object.prototype.hasOwnProperty.call(A,n)&&e.indexOf(n)<0&&(t[n]=A[n]);if(null!=A&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(n=Object.getOwnPropertySymbols(A);o{const t=J.useContext(wm),n=J.useMemo((()=>{if(!t)return"";const{compactDirection:n,isFirstItem:o,isLastItem:r}=t,i="vertical"===n?"-vertical-":"-";return ud(`${A}-compact${i}item`,{[`${A}-compact${i}first-item`]:o,[`${A}-compact${i}last-item`]:r,[`${A}-compact${i}item-rtl`]:"rtl"===e})}),[A,e,t]);return{compactSize:null==t?void 0:t.compactSize,compactDirection:null==t?void 0:t.compactDirection,compactItemClassnames:n}},mm=A=>{let{children:e}=A;return J.createElement(wm.Provider,{value:null},e)},ym=A=>{var{children:e}=A,t=hm(A,["children"]);return J.createElement(wm.Provider,{value:t},e)};const bm=J.createContext(void 0),vm=/^[\u4e00-\u9fa5]{2}$/,km=vm.test.bind(vm);function Mm(A){return"danger"===A?{danger:!0}:{type:A}}function xm(A){return"string"==typeof A}function Sm(A){return"text"===A||"link"===A}function Fm(A,e){let t=!1;const n=[];return j.Children.forEach(A,(A=>{const e=typeof A,o="string"===e||"number"===e;if(t&&o){const e=n.length-1,t=n[e];n[e]=`${t}${A}`}else n.push(A);t=o})),j.Children.map(n,(A=>function(A,e){if(null==A)return;const t=e?" ":"";return"string"!=typeof A&&"number"!=typeof A&&xm(A.type)&&km(A.props.children)?Gw(A,{children:A.props.children.split("").join(t)}):xm(A)?km(A)?j.createElement("span",null,A.split("").join(t)):j.createElement("span",null,A):Pw(A)?j.createElement("span",null,A):A}(A,e)))}const Nm=J.forwardRef(((A,e)=>{const{className:t,style:n,children:o,prefixCls:r}=A,i=ud(`${r}-icon`,t);return j.createElement("span",{ref:e,className:i,style:n},o)})),Rm=J.forwardRef(((A,e)=>{const{prefixCls:t,className:n,style:o,iconClassName:r,iconPosition:i="start"}=A,a=ud(n,{[`${t}-loading-icon-end`]:"end"===i,[`${t}-loading-icon`]:"start"===i});return j.createElement(Nm,{prefixCls:t,className:a,style:o,ref:e},j.createElement(ID,{className:r}))})),Lm=()=>({width:0,opacity:0,transform:"scale(0)"}),Pm=A=>({width:A.scrollWidth,opacity:1,transform:"scale(1)"}),Hm=A=>{const{prefixCls:e,loading:t,existIcon:n,className:o,style:r,iconPosition:i}=A,a=!!t;return n?j.createElement(Rm,{prefixCls:e,className:o,style:r,iconPosition:i}):j.createElement(Nh,{visible:a,motionName:`${e}-loading-icon-motion`,motionLeave:a,removeOnLeave:!0,onAppearStart:Lm,onAppearActive:Pm,onEnterStart:Lm,onEnterActive:Pm,onLeaveStart:Pm,onLeaveActive:Lm},((A,t)=>{let{className:n,style:a}=A;return j.createElement(Rm,{prefixCls:e,className:o,style:Object.assign(Object.assign({},r),a),ref:t,iconClassName:n,iconPosition:i})}))},Gm=(A,e)=>({[`> span, > ${A}`]:{"&:not(:last-child)":{[`&, & > ${A}`]:{"&:not(:disabled)":{borderInlineEndColor:e}}},"&:not(:first-child)":{[`&, & > ${A}`]:{"&:not(:disabled)":{borderInlineStartColor:e}}}}}),Om=A=>{const{componentCls:e,fontSize:t,lineWidth:n,groupBorderColor:o,colorErrorHover:r}=A;return{[`${e}-group`]:[{position:"relative",display:"inline-flex",[`> span, > ${e}`]:{"&:not(:last-child)":{[`&, & > ${e}`]:{borderStartEndRadius:0,borderEndEndRadius:0}},"&:not(:first-child)":{marginInlineStart:A.calc(n).mul(-1).equal(),[`&, & > ${e}`]:{borderStartStartRadius:0,borderEndStartRadius:0}}},[e]:{position:"relative",zIndex:1,"&:hover,\n &:focus,\n &:active":{zIndex:2},"&[disabled]":{zIndex:0}},[`${e}-icon-only`]:{fontSize:t}},Gm(`${e}-primary`,o),Gm(`${e}-danger`,r)]}},Um=A=>{const{paddingInline:e,onlyIconSize:t,paddingBlock:n}=A;return Pf(A,{buttonPaddingHorizontal:e,buttonPaddingVertical:n,buttonIconOnlyFontSize:t})},Km=A=>{var e,t,n,o,r,i;const a=null!==(e=A.contentFontSize)&&void 0!==e?e:A.fontSize,s=null!==(t=A.contentFontSizeSM)&&void 0!==t?t:A.fontSize,l=null!==(n=A.contentFontSizeLG)&&void 0!==n?n:A.fontSizeLG,g=null!==(o=A.contentLineHeight)&&void 0!==o?o:Up(a),c=null!==(r=A.contentLineHeightSM)&&void 0!==r?r:Up(s),u=null!==(i=A.contentLineHeightLG)&&void 0!==i?i:Up(l);return{fontWeight:400,defaultShadow:`0 ${A.controlOutlineWidth}px 0 ${A.controlTmpOutline}`,primaryShadow:`0 ${A.controlOutlineWidth}px 0 ${A.controlOutline}`,dangerShadow:`0 ${A.controlOutlineWidth}px 0 ${A.colorErrorOutline}`,primaryColor:A.colorTextLightSolid,dangerColor:A.colorTextLightSolid,borderColorDisabled:A.colorBorder,defaultGhostColor:A.colorBgContainer,ghostBg:"transparent",defaultGhostBorderColor:A.colorBgContainer,paddingInline:A.paddingContentHorizontal-A.lineWidth,paddingInlineLG:A.paddingContentHorizontal-A.lineWidth,paddingInlineSM:8-A.lineWidth,onlyIconSize:A.fontSizeLG,onlyIconSizeSM:A.fontSizeLG-2,onlyIconSizeLG:A.fontSizeLG+2,groupBorderColor:A.colorPrimaryHover,linkHoverBg:"transparent",textHoverBg:A.colorBgTextHover,defaultColor:A.colorText,defaultBg:A.colorBgContainer,defaultBorderColor:A.colorBorder,defaultBorderColorDisabled:A.colorBorder,defaultHoverBg:A.colorBgContainer,defaultHoverColor:A.colorPrimaryHover,defaultHoverBorderColor:A.colorPrimaryHover,defaultActiveBg:A.colorBgContainer,defaultActiveColor:A.colorPrimaryActive,defaultActiveBorderColor:A.colorPrimaryActive,contentFontSize:a,contentFontSizeSM:s,contentFontSizeLG:l,contentLineHeight:g,contentLineHeightSM:c,contentLineHeightLG:u,paddingBlock:Math.max((A.controlHeight-a*g)/2-A.lineWidth,0),paddingBlockSM:Math.max((A.controlHeightSM-s*c)/2-A.lineWidth,0),paddingBlockLG:Math.max((A.controlHeightLG-l*u)/2-A.lineWidth,0)}},Ym=A=>{const{componentCls:e,iconCls:t,fontWeight:n}=A;return{[e]:{outline:"none",position:"relative",display:"inline-block",fontWeight:n,whiteSpace:"nowrap",textAlign:"center",backgroundImage:"none",background:"transparent",border:`${UE(A.lineWidth)} ${A.lineType} transparent`,cursor:"pointer",transition:`all ${A.motionDurationMid} ${A.motionEaseInOut}`,userSelect:"none",touchAction:"manipulation",color:A.colorText,"&:disabled > *":{pointerEvents:"none"},"> span":{display:"inline-block"},[`${e}-icon`]:{lineHeight:0,"&-end":{marginInlineStart:A.marginXS}},[`> ${t} + span, > span + ${t}`]:{marginInlineStart:A.marginXS},[`&:not(${e}-icon-only) > ${e}-icon`]:{[`&${e}-loading-icon, &:not(:last-child)`]:{marginInlineEnd:A.marginXS},[`&${e}-loading-icon-end`]:{marginInlineStart:A.marginXS}},"> a":{color:"currentColor"},"&:not(:disabled)":Object.assign({},Nf(A)),[`&${e}-two-chinese-chars::first-letter`]:{letterSpacing:"0.34em"},[`&${e}-two-chinese-chars > *:not(${t})`]:{marginInlineEnd:"-0.34em",letterSpacing:"0.34em"},[`&-icon-only${e}-compact-item`]:{flex:"none"}}}},Tm=(A,e,t)=>({[`&:not(:disabled):not(${A}-disabled)`]:{"&:hover":e,"&:active":t}}),Jm=A=>({minWidth:A.controlHeight,paddingInlineStart:0,paddingInlineEnd:0,borderRadius:"50%"}),jm=A=>({borderRadius:A.controlHeight,paddingInlineStart:A.calc(A.controlHeight).div(2).equal(),paddingInlineEnd:A.calc(A.controlHeight).div(2).equal()}),qm=A=>({cursor:"not-allowed",borderColor:A.borderColorDisabled,color:A.colorTextDisabled,background:A.colorBgContainerDisabled,boxShadow:"none"}),$m=(A,e,t,n,o,r,i,a)=>({[`&${A}-background-ghost`]:Object.assign(Object.assign({color:t||void 0,background:e,borderColor:n||void 0,boxShadow:"none"},Tm(A,Object.assign({background:e},i),Object.assign({background:e},a))),{"&:disabled":{cursor:"not-allowed",color:o||void 0,borderColor:r||void 0}})}),zm=A=>({[`&:disabled, &${A.componentCls}-disabled`]:Object.assign({},qm(A))}),Wm=A=>Object.assign({},zm(A)),_m=A=>({[`&:disabled, &${A.componentCls}-disabled`]:{cursor:"not-allowed",color:A.colorTextDisabled}}),Xm=A=>Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},Wm(A)),{background:A.defaultBg,borderColor:A.defaultBorderColor,color:A.defaultColor,boxShadow:A.defaultShadow}),Tm(A.componentCls,{color:A.defaultHoverColor,borderColor:A.defaultHoverBorderColor,background:A.defaultHoverBg},{color:A.defaultActiveColor,borderColor:A.defaultActiveBorderColor,background:A.defaultActiveBg})),$m(A.componentCls,A.ghostBg,A.defaultGhostColor,A.defaultGhostBorderColor,A.colorTextDisabled,A.colorBorder)),{[`&${A.componentCls}-dangerous`]:Object.assign(Object.assign(Object.assign({color:A.colorError,borderColor:A.colorError},Tm(A.componentCls,{color:A.colorErrorHover,borderColor:A.colorErrorBorderHover},{color:A.colorErrorActive,borderColor:A.colorErrorActive})),$m(A.componentCls,A.ghostBg,A.colorError,A.colorError,A.colorTextDisabled,A.colorBorder)),zm(A))}),Vm=A=>Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},Wm(A)),{color:A.primaryColor,background:A.colorPrimary,boxShadow:A.primaryShadow}),Tm(A.componentCls,{color:A.colorTextLightSolid,background:A.colorPrimaryHover},{color:A.colorTextLightSolid,background:A.colorPrimaryActive})),$m(A.componentCls,A.ghostBg,A.colorPrimary,A.colorPrimary,A.colorTextDisabled,A.colorBorder,{color:A.colorPrimaryHover,borderColor:A.colorPrimaryHover},{color:A.colorPrimaryActive,borderColor:A.colorPrimaryActive})),{[`&${A.componentCls}-dangerous`]:Object.assign(Object.assign(Object.assign({background:A.colorError,boxShadow:A.dangerShadow,color:A.dangerColor},Tm(A.componentCls,{background:A.colorErrorHover},{background:A.colorErrorActive})),$m(A.componentCls,A.ghostBg,A.colorError,A.colorError,A.colorTextDisabled,A.colorBorder,{color:A.colorErrorHover,borderColor:A.colorErrorHover},{color:A.colorErrorActive,borderColor:A.colorErrorActive})),zm(A))}),Zm=A=>Object.assign(Object.assign({},Xm(A)),{borderStyle:"dashed"}),Ay=A=>Object.assign(Object.assign(Object.assign({color:A.colorLink},Tm(A.componentCls,{color:A.colorLinkHover,background:A.linkHoverBg},{color:A.colorLinkActive})),_m(A)),{[`&${A.componentCls}-dangerous`]:Object.assign(Object.assign({color:A.colorError},Tm(A.componentCls,{color:A.colorErrorHover},{color:A.colorErrorActive})),_m(A))}),ey=A=>Object.assign(Object.assign(Object.assign({},Tm(A.componentCls,{color:A.colorText,background:A.textHoverBg},{color:A.colorText,background:A.colorBgTextActive})),_m(A)),{[`&${A.componentCls}-dangerous`]:Object.assign(Object.assign({color:A.colorError},_m(A)),Tm(A.componentCls,{color:A.colorErrorHover,background:A.colorErrorBg},{color:A.colorErrorHover,background:A.colorErrorBg}))}),ty=A=>{const{componentCls:e}=A;return{[`${e}-default`]:Xm(A),[`${e}-primary`]:Vm(A),[`${e}-dashed`]:Zm(A),[`${e}-link`]:Ay(A),[`${e}-text`]:ey(A),[`${e}-ghost`]:$m(A.componentCls,A.ghostBg,A.colorBgContainer,A.colorBgContainer,A.colorTextDisabled,A.colorBorder)}},ny=function(A){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";const{componentCls:t,controlHeight:n,fontSize:o,lineHeight:r,borderRadius:i,buttonPaddingHorizontal:a,iconCls:s,buttonPaddingVertical:l}=A,g=`${t}-icon-only`;return[{[`${e}`]:{fontSize:o,lineHeight:r,height:n,padding:`${UE(l)} ${UE(a)}`,borderRadius:i,[`&${g}`]:{display:"inline-flex",alignItems:"center",justifyContent:"center",width:n,paddingInlineStart:0,paddingInlineEnd:0,[`&${t}-round`]:{width:"auto"},[s]:{fontSize:A.buttonIconOnlyFontSize}},[`&${t}-loading`]:{opacity:A.opacityLoading,cursor:"default"},[`${t}-loading-icon`]:{transition:`width ${A.motionDurationSlow} ${A.motionEaseInOut}, opacity ${A.motionDurationSlow} ${A.motionEaseInOut}`}}},{[`${t}${t}-circle${e}`]:Jm(A)},{[`${t}${t}-round${e}`]:jm(A)}]},oy=A=>{const e=Pf(A,{fontSize:A.contentFontSize,lineHeight:A.contentLineHeight});return ny(e,A.componentCls)},ry=A=>{const e=Pf(A,{controlHeight:A.controlHeightSM,fontSize:A.contentFontSizeSM,lineHeight:A.contentLineHeightSM,padding:A.paddingXS,buttonPaddingHorizontal:A.paddingInlineSM,buttonPaddingVertical:A.paddingBlockSM,borderRadius:A.borderRadiusSM,buttonIconOnlyFontSize:A.onlyIconSizeSM});return ny(e,`${A.componentCls}-sm`)},iy=A=>{const e=Pf(A,{controlHeight:A.controlHeightLG,fontSize:A.contentFontSizeLG,lineHeight:A.contentLineHeightLG,buttonPaddingHorizontal:A.paddingInlineLG,buttonPaddingVertical:A.paddingBlockLG,borderRadius:A.borderRadiusLG,buttonIconOnlyFontSize:A.onlyIconSizeLG});return ny(e,`${A.componentCls}-lg`)},ay=A=>{const{componentCls:e}=A;return{[e]:{[`&${e}-block`]:{width:"100%"}}}},sy=jf("Button",(A=>{const e=Um(A);return[Ym(e),oy(e),ry(e),iy(e),ay(e),ty(e),Om(e)]}),Km,{unitless:{fontWeight:!0,contentLineHeight:!0,contentLineHeightSM:!0,contentLineHeightLG:!0}});function ly(A,e,t){const{focusElCls:n,focus:o,borderElCls:r}=t,i=r?"> *":"",a=["hover",o?"focus":null,"active"].filter(Boolean).map((A=>`&:${A} ${i}`)).join(",");return{[`&-item:not(${e}-last-item)`]:{marginInlineEnd:A.calc(A.lineWidth).mul(-1).equal()},"&-item":Object.assign(Object.assign({[a]:{zIndex:2}},n?{[`&${n}`]:{zIndex:2}}:{}),{[`&[disabled] ${i}`]:{zIndex:0}})}}function gy(A,e,t){const{borderElCls:n}=t,o=n?`> ${n}`:"";return{[`&-item:not(${e}-first-item):not(${e}-last-item) ${o}`]:{borderRadius:0},[`&-item:not(${e}-last-item)${e}-first-item`]:{[`& ${o}, &${A}-sm ${o}, &${A}-lg ${o}`]:{borderStartEndRadius:0,borderEndEndRadius:0}},[`&-item:not(${e}-first-item)${e}-last-item`]:{[`& ${o}, &${A}-sm ${o}, &${A}-lg ${o}`]:{borderStartStartRadius:0,borderEndStartRadius:0}}}}function cy(A){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{focus:!0};const{componentCls:t}=A,n=`${t}-compact`;return{[n]:Object.assign(Object.assign({},ly(A,n,e)),gy(t,n,e))}}function uy(A,e){return{[`&-item:not(${e}-last-item)`]:{marginBottom:A.calc(A.lineWidth).mul(-1).equal()},"&-item":{"&:hover,&:focus,&:active":{zIndex:2},"&[disabled]":{zIndex:0}}}}function By(A){const e=`${A.componentCls}-compact-vertical`;return{[e]:Object.assign(Object.assign({},uy(A,e)),(t=A.componentCls,n=e,{[`&-item:not(${n}-first-item):not(${n}-last-item)`]:{borderRadius:0},[`&-item${n}-first-item:not(${n}-last-item)`]:{[`&, &${t}-sm, &${t}-lg`]:{borderEndEndRadius:0,borderEndStartRadius:0}},[`&-item${n}-last-item:not(${n}-first-item)`]:{[`&, &${t}-sm, &${t}-lg`]:{borderStartStartRadius:0,borderStartEndRadius:0}}}))};var t,n}const Qy=A=>{const{componentCls:e,calc:t}=A;return{[e]:{[`&-compact-item${e}-primary`]:{[`&:not([disabled]) + ${e}-compact-item${e}-primary:not([disabled])`]:{position:"relative","&:before":{position:"absolute",top:t(A.lineWidth).mul(-1).equal(),insetInlineStart:t(A.lineWidth).mul(-1).equal(),display:"inline-block",width:A.lineWidth,height:`calc(100% + ${UE(A.lineWidth)} * 2)`,backgroundColor:A.colorPrimaryHover,content:'""'}}},"&-compact-vertical-item":{[`&${e}-primary`]:{[`&:not([disabled]) + ${e}-compact-vertical-item${e}-primary:not([disabled])`]:{position:"relative","&:before":{position:"absolute",top:t(A.lineWidth).mul(-1).equal(),insetInlineStart:t(A.lineWidth).mul(-1).equal(),display:"inline-block",width:`calc(100% + ${UE(A.lineWidth)} * 2)`,height:A.lineWidth,backgroundColor:A.colorPrimaryHover,content:'""'}}}}}}},Ey=Tf(["Button","compact"],(A=>{const e=Um(A);return[cy(e),By(e),Qy(e)]}),Km);const Cy=j.forwardRef(((A,e)=>{var t,n,o;const{loading:r=!1,prefixCls:i,type:a,danger:s,shape:l="default",size:g,styles:c,disabled:u,className:B,rootClassName:Q,children:E,icon:C,iconPosition:d="start",ghost:I=!1,block:p=!1,htmlType:f="button",classNames:h,style:w={},autoInsertSpace:D}=A,m=function(A,e){var t={};for(var n in A)Object.prototype.hasOwnProperty.call(A,n)&&e.indexOf(n)<0&&(t[n]=A[n]);if(null!=A&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(n=Object.getOwnPropertySymbols(A);ofunction(A){if("object"==typeof A&&A){let e=null==A?void 0:A.delay;return e=Number.isNaN(e)||"number"!=typeof e?0:e,{loading:e<=0,delay:e}}return{loading:!!A,delay:0}}(r)),[r]),[G,O]=J.useState(H.loading),[U,K]=J.useState(!1),Y=Pd(e,J.createRef()),T=1===J.Children.count(E)&&!C&&!Sm(y);J.useEffect((()=>{let A=null;return H.delay>0?A=setTimeout((()=>{A=null,O(!0)}),H.delay):O(H.loading),function(){A&&(clearTimeout(A),A=null)}}),[H]),J.useEffect((()=>{if(!Y||!Y.current||!M)return;const A=Y.current.textContent;T&&km(A)?U||K(!0):U&&K(!1)}),[Y]);const q=e=>{const{onClick:t}=A;G||L?e.preventDefault():null==t||t(e)},{compactSize:$,compactItemClassnames:z}=Dm(x,v),W=Cm((A=>{var e,t;return null!==(t=null!==(e=null!=g?g:$)&&void 0!==e?e:P)&&void 0!==t?t:A})),_=W&&{large:"lg",small:"sm",middle:void 0}[W]||"",X=G?"loading":C,V=wI(m,["navigate"]),Z=ud(x,F,N,{[`${x}-${l}`]:"default"!==l&&l,[`${x}-${y}`]:y,[`${x}-${_}`]:_,[`${x}-icon-only`]:!E&&0!==E&&!!X,[`${x}-background-ghost`]:I&&!Sm(y),[`${x}-loading`]:G,[`${x}-two-chinese-chars`]:U&&M&&!G,[`${x}-block`]:p,[`${x}-dangerous`]:!!s,[`${x}-rtl`]:"rtl"===v},z,B,Q,null==k?void 0:k.className),AA=Object.assign(Object.assign({},null==k?void 0:k.style),w),eA="end"===d&&E&&0!==E&&X,tA=ud(null==h?void 0:h.icon,null===(n=null==k?void 0:k.classNames)||void 0===n?void 0:n.icon,{[`${x}-icon-end`]:eA}),nA=Object.assign(Object.assign({},(null==c?void 0:c.icon)||{}),(null===(o=null==k?void 0:k.styles)||void 0===o?void 0:o.icon)||{}),oA=C&&!G?j.createElement(Nm,{prefixCls:x,className:tA,style:nA},C):j.createElement(Hm,{existIcon:!!C,prefixCls:x,loading:!!G,iconPosition:d}),rA=E||0===E?Fm(E,T&&M):null,iA=(A,e)=>{const t="rtl"===v,n="start"===d&&!t||"end"===d&&t;return j.createElement(j.Fragment,null,n?A:e,n?e:A)};if(void 0!==V.href)return S(j.createElement("a",Object.assign({},V,{className:ud(Z,{[`${x}-disabled`]:L}),href:L?void 0:V.href,style:AA,onClick:q,ref:Y,tabIndex:L?-1:0}),iA(oA,rA)));let aA=j.createElement("button",Object.assign({},m,{type:f,className:Z,style:AA,onClick:q,disabled:L,ref:Y}),iA(oA,rA),!!z&&j.createElement(Ey,{key:"compact",prefixCls:x}));return Sm(y)||(aA=j.createElement(Em,{component:"Button",disabled:!!G},aA)),S(aA)})),dy=Cy;function Iy(A){return!(!A||!A.then)}dy.Group=A=>{const{getPrefixCls:e,direction:t}=J.useContext(Xp),{prefixCls:n,size:o,className:r}=A,i=function(A,e){var t={};for(var n in A)Object.prototype.hasOwnProperty.call(A,n)&&e.indexOf(n)<0&&(t[n]=A[n]);if(null!=A&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(n=Object.getOwnPropertySymbols(A);o{const{type:e,children:t,prefixCls:n,buttonProps:o,close:r,autoFocus:i,emitEvent:a,isSilent:s,quitOnNullishReturnValue:l,actionFn:g}=A,c=J.useRef(!1),u=J.useRef(null),[B,Q]=yf(!1),E=function(){null==r||r.apply(void 0,arguments)};J.useEffect((()=>{let A=null;return i&&(A=setTimeout((()=>{var A;null===(A=u.current)||void 0===A||A.focus()}))),()=>{A&&clearTimeout(A)}}),[]);return J.createElement(dy,Object.assign({},Mm(e),{onClick:A=>{if(c.current)return;if(c.current=!0,!g)return void E();let e;if(a){if(e=g(A),l&&!Iy(e))return c.current=!1,void E(A)}else if(g.length)e=g(r),c.current=!1;else if(e=g(),!e)return void E();(A=>{Iy(A)&&(Q(!0),A.then((function(){Q(!1,!0),E.apply(void 0,arguments),c.current=!1}),(A=>{if(Q(!1,!0),c.current=!1,!(null==s?void 0:s()))return Promise.reject(A)})))})(e)},loading:B,prefixCls:n},o,{ref:u}),t)},fy=j.createContext({}),{Provider:hy}=fy,wy=()=>{const{autoFocusButton:A,cancelButtonProps:e,cancelTextLocale:t,isSilent:n,mergedOkCancel:o,rootPrefixCls:r,close:i,onCancel:a,onConfirm:s}=J.useContext(fy);return o?j.createElement(py,{isSilent:n,actionFn:a,close:function(){null==i||i.apply(void 0,arguments),null==s||s(!1)},autoFocus:"cancel"===A,buttonProps:e,prefixCls:`${r}-btn`},t):null},Dy=()=>{const{autoFocusButton:A,close:e,isSilent:t,okButtonProps:n,rootPrefixCls:o,okTextLocale:r,okType:i,onConfirm:a,onOk:s}=J.useContext(fy);return j.createElement(py,{isSilent:t,type:i||"primary",actionFn:s,close:function(){null==e||e.apply(void 0,arguments),null==a||a(!0)},autoFocus:"ok"===A,buttonProps:n,prefixCls:`${o}-btn`},r)};var my=J.createContext(null),yy=[];function by(A){return"undefined"!=typeof document&&A&&A instanceof Element?function(A){var e="rc-scrollbar-measure-".concat(Math.random().toString(36).substring(7)),t=document.createElement("div");t.id=e;var n,o,r=t.style;if(r.position="absolute",r.left="0",r.top="0",r.width="100px",r.height="100px",r.overflow="scroll",A){var i=getComputedStyle(A);r.scrollbarColor=i.scrollbarColor,r.scrollbarWidth=i.scrollbarWidth;var a=getComputedStyle(A,"::-webkit-scrollbar"),s=parseInt(a.width,10),l=parseInt(a.height,10);try{var g=s?"width: ".concat(a.width,";"):"",c=l?"height: ".concat(a.height,";"):"";cE("\n#".concat(e,"::-webkit-scrollbar {\n").concat(g,"\n").concat(c,"\n}"),e)}catch(R3){console.error(R3),n=s,o=l}}document.body.appendChild(t);var u=A&&n&&!isNaN(n)?n:t.offsetWidth-t.clientWidth,B=A&&o&&!isNaN(o)?o:t.offsetHeight-t.clientHeight;return document.body.removeChild(t),gE(e),{width:u,height:B}}(A):{width:0,height:0}}var vy="rc-util-locker-".concat(Date.now()),ky=0;function My(A){var e=!!A,t=WQ(J.useState((function(){return ky+=1,"".concat(vy,"_").concat(ky)})),1)[0];qE((function(){if(e){var A=by(document.body).width,n=document.body.scrollHeight>(window.innerHeight||document.documentElement.clientHeight)&&window.innerWidth>document.body.offsetWidth;cE("\nhtml body {\n overflow-y: hidden;\n ".concat(n?"width: calc(100% - ".concat(A,"px);"):"","\n}"),t)}else gE(t);return function(){gE(t)}}),[e,t])}var xy=function(A){return!1!==A&&(ZQ()&&A?"string"==typeof A?document.querySelector(A):"function"==typeof A?A():A:null)},Sy=J.forwardRef((function(A,e){var t=A.open,n=A.autoLock,o=A.getContainer;A.debug;var r=A.autoDestroy,i=void 0===r||r,a=A.children,s=WQ(J.useState(t),2),l=s[0],g=s[1],c=l||t;J.useEffect((function(){(i||t)&&g(t)}),[t,i]);var u=WQ(J.useState((function(){return xy(o)})),2),B=u[0],Q=u[1];J.useEffect((function(){var A=xy(o);Q(null!=A?A:null)}));var E=function(A,e){var t=WQ(J.useState((function(){return ZQ()?document.createElement("div"):null})),1)[0],n=J.useRef(!1),o=J.useContext(my),r=WQ(J.useState(yy),2),i=r[0],a=r[1],s=o||(n.current?void 0:function(A){a((function(e){return[A].concat(XQ(e))}))});function l(){t.parentElement||document.body.appendChild(t),n.current=!0}function g(){var A;null===(A=t.parentElement)||void 0===A||A.removeChild(t),n.current=!1}return qE((function(){return A?o?o(l):l():g(),g}),[A]),qE((function(){i.length&&(i.forEach((function(A){return A()})),a(yy))}),[i]),[t,s]}(c&&!B),C=WQ(E,2),d=C[0],I=C[1],p=null!=B?B:d;My(n&&t&&ZQ()&&(p===d||p===document.body));var f=null;a&&Gd(a)&&e&&(f=a.ref);var h=Hd(f,e);if(!c||!ZQ()||void 0===B)return null;var w=!1===p||!1,D=a;return e&&(D=J.cloneElement(a,{ref:h})),J.createElement(my.Provider,{value:I},w?D:pc.createPortal(D,p))})),Fy=J.createContext({});var Ny=0,Ry=kc({},q).useId;const Ly=Ry?function(A){var e=Ry();return A||e}:function(A){var e=WQ(J.useState("ssr-id"),2),t=e[0],n=e[1];return J.useEffect((function(){var A=Ny;Ny+=1,n("rc_unique_".concat(A))}),[]),A||t};function Py(A,e,t){var n=e;return!n&&t&&(n="".concat(A,"-").concat(t)),n}function Hy(A,e){var t=A["page".concat(e?"Y":"X","Offset")],n="scroll".concat(e?"Top":"Left");if("number"!=typeof t){var o=A.document;"number"!=typeof(t=o.documentElement[n])&&(t=o.body[n])}return t}const Gy=J.memo((function(A){return A.children}),(function(A,e){return!e.shouldUpdate}));var Oy={width:0,height:0,overflow:"hidden",outline:"none"},Uy={outline:"none"},Ky=j.forwardRef((function(A,e){var t=A.prefixCls,n=A.className,o=A.style,r=A.title,i=A.ariaId,a=A.footer,s=A.closable,l=A.closeIcon,g=A.onClose,c=A.children,u=A.bodyStyle,B=A.bodyProps,Q=A.modalRender,E=A.onMouseDown,C=A.onMouseUp,d=A.holderRef,I=A.visible,p=A.forceRender,f=A.width,h=A.height,w=A.classNames,D=A.styles,m=j.useContext(Fy).panel,y=Hd(d,m),b=J.useRef(),v=J.useRef(),k=J.useRef();j.useImperativeHandle(e,(function(){return{focus:function(){var A;null===(A=k.current)||void 0===A||A.focus()},changeActive:function(A){var e=document.activeElement;A&&e===v.current?b.current.focus():A||e!==b.current||v.current.focus()}}}));var M,x,S={};void 0!==f&&(S.width=f),void 0!==h&&(S.height=h),a&&(M=j.createElement("div",{className:ud("".concat(t,"-footer"),null==w?void 0:w.footer),style:kc({},null==D?void 0:D.footer)},a)),r&&(x=j.createElement("div",{className:ud("".concat(t,"-header"),null==w?void 0:w.header),style:kc({},null==D?void 0:D.header)},j.createElement("div",{className:"".concat(t,"-title"),id:i},r)));var F,N=J.useMemo((function(){return"object"===mc(s)&&null!==s?s:s?{closeIcon:null!=l?l:j.createElement("span",{className:"".concat(t,"-close-x")})}:{}}),[s,l]),R=Lw(N,!0);s&&(F=j.createElement("button",BQ({type:"button",onClick:g,"aria-label":"Close"},R,{className:"".concat(t,"-close")}),N.closeIcon));var L=j.createElement("div",{className:ud("".concat(t,"-content"),null==w?void 0:w.content),style:null==D?void 0:D.content},F,x,j.createElement("div",BQ({className:ud("".concat(t,"-body"),null==w?void 0:w.body),style:kc(kc({},u),null==D?void 0:D.body)},B),c),M);return j.createElement("div",{key:"dialog-element",role:"dialog","aria-labelledby":r?i:null,"aria-modal":"true",ref:y,style:kc(kc({},o),S),className:ud(t,n),onMouseDown:E,onMouseUp:C},j.createElement("div",{tabIndex:0,ref:b,style:Oy,"aria-hidden":"true"}),j.createElement("div",{ref:k,tabIndex:-1,style:Uy},j.createElement(Gy,{shouldUpdate:I||p},Q?Q(L):L)),j.createElement("div",{tabIndex:0,ref:v,style:Oy,"aria-hidden":"true"}))})),Yy=J.forwardRef((function(A,e){var t=A.prefixCls,n=A.title,o=A.style,r=A.className,i=A.visible,a=A.forceRender,s=A.destroyOnClose,l=A.motionName,g=A.ariaId,c=A.onVisibleChanged,u=A.mousePosition,B=J.useRef(),Q=WQ(J.useState(),2),E=Q[0],C=Q[1],d={};function I(){var A,e,t,n,o,r=(A=B.current,e=A.getBoundingClientRect(),t={left:e.left,top:e.top},n=A.ownerDocument,o=n.defaultView||n.parentWindow,t.left+=Hy(o),t.top+=Hy(o,!0),t);C(u?"".concat(u.x-r.left,"px ").concat(u.y-r.top,"px"):"")}return E&&(d.transformOrigin=E),J.createElement(Nh,{visible:i,onVisibleChanged:c,onAppearPrepare:I,onEnterPrepare:I,forceRender:a,motionName:l,removeOnLeave:s,ref:B},(function(i,a){var s=i.className,l=i.style;return J.createElement(Ky,BQ({},A,{ref:e,title:n,ariaId:g,prefixCls:t,holderRef:a,style:kc(kc(kc({},l),o),d),className:ud(r,s)}))}))}));function Ty(A){var e=A.prefixCls,t=A.style,n=A.visible,o=A.maskProps,r=A.motionName,i=A.className;return J.createElement(Nh,{key:"mask",visible:n,motionName:r,leavedClassName:"".concat(e,"-mask-hidden")},(function(A,n){var r=A.className,a=A.style;return J.createElement("div",BQ({ref:n,style:kc(kc({},a),t),className:ud("".concat(e,"-mask"),r,i)},o))}))}function Jy(A){var e=A.prefixCls,t=void 0===e?"rc-dialog":e,n=A.zIndex,o=A.visible,r=void 0!==o&&o,i=A.keyboard,a=void 0===i||i,s=A.focusTriggerAfterClose,l=void 0===s||s,g=A.wrapStyle,c=A.wrapClassName,u=A.wrapProps,B=A.onClose,Q=A.afterOpenChange,E=A.afterClose,C=A.transitionName,d=A.animation,I=A.closable,p=void 0===I||I,f=A.mask,h=void 0===f||f,w=A.maskTransitionName,D=A.maskAnimation,m=A.maskClosable,y=void 0===m||m,b=A.maskStyle,v=A.maskProps,k=A.rootClassName,M=A.classNames,x=A.styles,S=J.useRef(),F=J.useRef(),N=J.useRef(),R=WQ(J.useState(r),2),L=R[0],P=R[1],H=Ly();function G(A){null==B||B(A)}var O=J.useRef(!1),U=J.useRef(),K=null;return y&&(K=function(A){O.current?O.current=!1:F.current===A.target&&G(A)}),J.useEffect((function(){r&&(P(!0),AE(F.current,document.activeElement)||(S.current=document.activeElement))}),[r]),J.useEffect((function(){return function(){clearTimeout(U.current)}}),[]),J.createElement("div",BQ({className:ud("".concat(t,"-root"),k)},Lw(A,{data:!0})),J.createElement(Ty,{prefixCls:t,visible:h&&r,motionName:Py(t,w,D),style:kc(kc({zIndex:n},b),null==x?void 0:x.mask),maskProps:v,className:null==M?void 0:M.mask}),J.createElement("div",BQ({tabIndex:-1,onKeyDown:function(A){if(a&&A.keyCode===rD.ESC)return A.stopPropagation(),void G(A);r&&A.keyCode===rD.TAB&&N.current.changeActive(!A.shiftKey)},className:ud("".concat(t,"-wrap"),c,null==M?void 0:M.wrapper),ref:F,onClick:K,style:kc(kc(kc({zIndex:n},g),null==x?void 0:x.wrapper),{},{display:L?null:"none"})},u),J.createElement(Yy,BQ({},A,{onMouseDown:function(){clearTimeout(U.current),O.current=!0},onMouseUp:function(){U.current=setTimeout((function(){O.current=!1}))},ref:N,closable:p,ariaId:H,prefixCls:t,visible:r&&L,onClose:G,onVisibleChanged:function(A){if(A)AE(F.current,document.activeElement)||null===(e=N.current)||void 0===e||e.focus();else{if(P(!1),h&&S.current&&l){try{S.current.focus({preventScroll:!0})}catch(R3){}S.current=null}L&&(null==E||E())}var e;null==Q||Q(A)},motionName:Py(t,C,d)}))))}Yy.displayName="Content";var jy=function(A){var e=A.visible,t=A.getContainer,n=A.forceRender,o=A.destroyOnClose,r=void 0!==o&&o,i=A.afterClose,a=A.panelRef,s=WQ(J.useState(e),2),l=s[0],g=s[1],c=J.useMemo((function(){return{panel:a}}),[a]);return J.useEffect((function(){e&&g(!0)}),[e]),n||!r||l?J.createElement(Fy.Provider,{value:c},J.createElement(Sy,{open:e||n||l,autoDestroy:!1,getContainer:t,autoLock:e||l},J.createElement(Jy,BQ({},A,{destroyOnClose:r,afterClose:function(){null==i||i(),g(!1)}})))):null};function qy(A){if(A)return{closable:A.closable,closeIcon:A.closeIcon}}function $y(A){const{closable:e,closeIcon:t}=A||{};return j.useMemo((()=>{if(!e&&(!1===e||!1===t||null===t))return!1;if(void 0===e&&void 0===t)return null;let A={closeIcon:"boolean"!=typeof t&&null!==t?t:void 0};return e&&"object"==typeof e&&(A=Object.assign(Object.assign({},A),e)),A}),[e,t])}function zy(){const A={};for(var e=arguments.length,t=new Array(e),n=0;n{e&&Object.keys(e).forEach((t=>{void 0!==e[t]&&(A[t]=e[t])}))})),A}jy.displayName="Dialog";const Wy={};function _y(A,e){let t=arguments.length>2&&void 0!==arguments[2]?arguments[2]:Wy;const n=$y(A),o=$y(e),r=j.useMemo((()=>Object.assign({closeIcon:j.createElement(mw,null)},t)),[t]),i=j.useMemo((()=>!1!==n&&(n?zy(r,o,n):!1!==o&&(o?zy(r,o):!!r.closable&&r))),[n,o,r]);return j.useMemo((()=>{if(!1===i)return[!1,null];const{closeIconRender:A}=r,{closeIcon:e}=i;let t=e;if(null!=t){A&&(t=A(e));const n=Lw(i,!0);Object.keys(n).length&&(t=j.isValidElement(t)?j.cloneElement(t,n):j.createElement("span",Object.assign({},n),t))}return[!0,t]}),[i,r])}var Xy="RC_FORM_INTERNAL_HOOKS",Vy=function(){dE(!1,"Can not find FormContext. Please make sure you wrap Field under Form.")},Zy=J.createContext({getFieldValue:Vy,getFieldsValue:Vy,getFieldError:Vy,getFieldWarning:Vy,getFieldsError:Vy,isFieldsTouched:Vy,isFieldTouched:Vy,isFieldValidating:Vy,isFieldsValidating:Vy,resetFields:Vy,setFields:Vy,setFieldValue:Vy,setFieldsValue:Vy,validateFields:Vy,submit:Vy,getInternalHooks:function(){return Vy(),{dispatch:Vy,initEntityValue:Vy,registerField:Vy,useSubscribe:Vy,setInitialValues:Vy,destroyForm:Vy,setCallbacks:Vy,registerWatch:Vy,getFields:Vy,setValidateMessages:Vy,setPreserve:Vy,getInitialValue:Vy}}}),Ab=J.createContext(null);function eb(A){return null==A?[]:Array.isArray(A)?A:[A]}function tb(){return{default:"Validation error on field %s",required:"%s is required",enum:"%s must be one of %s",whitespace:"%s cannot be empty",date:{format:"%s date %s is invalid for format %s",parse:"%s date could not be parsed, %s is invalid ",invalid:"%s date %s is invalid"},types:{string:"%s is not a %s",method:"%s is not a %s (function)",array:"%s is not an %s",object:"%s is not an %s",number:"%s is not a %s",date:"%s is not a %s",boolean:"%s is not a %s",integer:"%s is not an %s",float:"%s is not a %s",regexp:"%s is not a valid %s",email:"%s is not a valid %s",url:"%s is not a valid %s",hex:"%s is not a valid %s"},string:{len:"%s must be exactly %s characters",min:"%s must be at least %s characters",max:"%s cannot be longer than %s characters",range:"%s must be between %s and %s characters"},number:{len:"%s must equal %s",min:"%s cannot be less than %s",max:"%s cannot be greater than %s",range:"%s must be between %s and %s"},array:{len:"%s must be exactly %s in length",min:"%s cannot be less than %s in length",max:"%s cannot be greater than %s in length",range:"%s must be between %s and %s in length"},pattern:{mismatch:"%s value %s does not match pattern %s"},clone:function(){var A=JSON.parse(JSON.stringify(this));return A.clone=this.clone,A}}}var nb=tb();function ob(A){var e="function"==typeof Map?new Map:void 0;return ob=function(A){if(null===A||!function(A){try{return-1!==Function.toString.call(A).indexOf("[native code]")}catch(R3){return"function"==typeof A}}(A))return A;if("function"!=typeof A)throw new TypeError("Super expression must either be null or a function");if(void 0!==e){if(e.has(A))return e.get(A);e.set(A,t)}function t(){return function(A,e,t){if(BI())return Reflect.construct.apply(null,arguments);var n=[null];n.push.apply(n,e);var o=new(A.bind.apply(A,n));return t&&gI(o,t.prototype),o}(A,arguments,uI(this).constructor)}return t.prototype=Object.create(A.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),gI(t,A)},ob(A)}var rb=/%[sdj%]/g,ib=function(){};function ab(A){if(!A||!A.length)return null;var e={};return A.forEach((function(A){var t=A.field;e[t]=e[t]||[],e[t].push(A)})),e}function sb(A){for(var e=arguments.length,t=new Array(e>1?e-1:0),n=1;n=r)return A;switch(A){case"%s":return String(t[o++]);case"%d":return Number(t[o++]);case"%j":try{return JSON.stringify(t[o++])}catch(e){return"[Circular]"}break;default:return A}})):A}function lb(A,e){return null==A||(!("array"!==e||!Array.isArray(A)||A.length)||!(!function(A){return"string"===A||"url"===A||"hex"===A||"email"===A||"date"===A||"pattern"===A}(e)||"string"!=typeof A||A))}function gb(A,e,t){var n=0,o=A.length;!function r(i){if(i&&i.length)t(i);else{var a=n;n+=1,a()\[\]\\.,;:\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,}))$/,pb=/^#?([a-f0-9]{6}|[a-f0-9]{3})$/i,fb={integer:function(A){return fb.number(A)&&parseInt(A,10)===A},float:function(A){return fb.number(A)&&!fb.integer(A)},array:function(A){return Array.isArray(A)},regexp:function(A){if(A instanceof RegExp)return!0;try{return!!new RegExp(A)}catch(R3){return!1}},date:function(A){return"function"==typeof A.getTime&&"function"==typeof A.getMonth&&"function"==typeof A.getYear&&!isNaN(A.getTime())},number:function(A){return!isNaN(A)&&"number"==typeof A},object:function(A){return"object"===mc(A)&&!fb.array(A)},method:function(A){return"function"==typeof A},email:function(A){return"string"==typeof A&&A.length<=320&&!!A.match(Ib)},url:function(A){return"string"==typeof A&&A.length<=2048&&!!A.match(function(){if(Eb)return Eb;var A="[a-fA-F\\d:]",e=function(e){return e&&e.includeBoundaries?"(?:(?<=\\s|^)(?=".concat(A,")|(?<=").concat(A,")(?=\\s|$))"):""},t="(?: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}",n="[a-fA-F\\d]{1,4}",o=["(?:".concat(n,":){7}(?:").concat(n,"|:)"),"(?:".concat(n,":){6}(?:").concat(t,"|:").concat(n,"|:)"),"(?:".concat(n,":){5}(?::").concat(t,"|(?::").concat(n,"){1,2}|:)"),"(?:".concat(n,":){4}(?:(?::").concat(n,"){0,1}:").concat(t,"|(?::").concat(n,"){1,3}|:)"),"(?:".concat(n,":){3}(?:(?::").concat(n,"){0,2}:").concat(t,"|(?::").concat(n,"){1,4}|:)"),"(?:".concat(n,":){2}(?:(?::").concat(n,"){0,3}:").concat(t,"|(?::").concat(n,"){1,5}|:)"),"(?:".concat(n,":){1}(?:(?::").concat(n,"){0,4}:").concat(t,"|(?::").concat(n,"){1,6}|:)"),"(?::(?:(?::".concat(n,"){0,5}:").concat(t,"|(?::").concat(n,"){1,7}|:))")],r="(?:".concat(o.join("|"),")").concat("(?:%[0-9a-zA-Z]{1,})?"),i=new RegExp("(?:^".concat(t,"$)|(?:^").concat(r,"$)")),a=new RegExp("^".concat(t,"$")),s=new RegExp("^".concat(r,"$")),l=function(A){return A&&A.exact?i:new RegExp("(?:".concat(e(A)).concat(t).concat(e(A),")|(?:").concat(e(A)).concat(r).concat(e(A),")"),"g")};l.v4=function(A){return A&&A.exact?a:new RegExp("".concat(e(A)).concat(t).concat(e(A)),"g")},l.v6=function(A){return A&&A.exact?s:new RegExp("".concat(e(A)).concat(r).concat(e(A)),"g")};var g=l.v4().source,c=l.v6().source,u="(?:".concat("(?:(?:[a-z]+:)?//)","|www\\.)").concat("(?:\\S+(?::\\S*)?@)?","(?:localhost|").concat(g,"|").concat(c,"|").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 Eb=new RegExp("(?:^".concat(u,"$)"),"i")}())},hex:function(A){return"string"==typeof A&&!!A.match(pb)}};const hb={required:db,whitespace:function(A,e,t,n,o){(/^\s+$/.test(e)||""===e)&&n.push(sb(o.messages.whitespace,A.fullField))},type:function(A,e,t,n,o){if(A.required&&void 0===e)db(A,e,t,n,o);else{var r=A.type;["integer","float","array","regexp","object","method","email","number","date","url","hex"].indexOf(r)>-1?fb[r](e)||n.push(sb(o.messages.types[r],A.fullField,A.type)):r&&mc(e)!==A.type&&n.push(sb(o.messages.types[r],A.fullField,A.type))}},range:function(A,e,t,n,o){var r="number"==typeof A.len,i="number"==typeof A.min,a="number"==typeof A.max,s=e,l=null,g="number"==typeof e,c="string"==typeof e,u=Array.isArray(e);if(g?l="number":c?l="string":u&&(l="array"),!l)return!1;u&&(s=e.length),c&&(s=e.replace(/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,"_").length),r?s!==A.len&&n.push(sb(o.messages[l].len,A.fullField,A.len)):i&&!a&&sA.max?n.push(sb(o.messages[l].max,A.fullField,A.max)):i&&a&&(sA.max)&&n.push(sb(o.messages[l].range,A.fullField,A.min,A.max))},enum:function(A,e,t,n,o){A[Cb]=Array.isArray(A[Cb])?A[Cb]:[],-1===A[Cb].indexOf(e)&&n.push(sb(o.messages[Cb],A.fullField,A[Cb].join(", ")))},pattern:function(A,e,t,n,o){if(A.pattern)if(A.pattern instanceof RegExp)A.pattern.lastIndex=0,A.pattern.test(e)||n.push(sb(o.messages.pattern.mismatch,A.fullField,e,A.pattern));else if("string"==typeof A.pattern){new RegExp(A.pattern).test(e)||n.push(sb(o.messages.pattern.mismatch,A.fullField,e,A.pattern))}}};var wb=function(A,e,t,n,o){var r=A.type,i=[];if(A.required||!A.required&&n.hasOwnProperty(A.field)){if(lb(e,r)&&!A.required)return t();hb.required(A,e,n,i,o,r),lb(e,r)||hb.type(A,e,n,i,o)}t(i)};const Db={string:function(A,e,t,n,o){var r=[];if(A.required||!A.required&&n.hasOwnProperty(A.field)){if(lb(e,"string")&&!A.required)return t();hb.required(A,e,n,r,o,"string"),lb(e,"string")||(hb.type(A,e,n,r,o),hb.range(A,e,n,r,o),hb.pattern(A,e,n,r,o),!0===A.whitespace&&hb.whitespace(A,e,n,r,o))}t(r)},method:function(A,e,t,n,o){var r=[];if(A.required||!A.required&&n.hasOwnProperty(A.field)){if(lb(e)&&!A.required)return t();hb.required(A,e,n,r,o),void 0!==e&&hb.type(A,e,n,r,o)}t(r)},number:function(A,e,t,n,o){var r=[];if(A.required||!A.required&&n.hasOwnProperty(A.field)){if(""===e&&(e=void 0),lb(e)&&!A.required)return t();hb.required(A,e,n,r,o),void 0!==e&&(hb.type(A,e,n,r,o),hb.range(A,e,n,r,o))}t(r)},boolean:function(A,e,t,n,o){var r=[];if(A.required||!A.required&&n.hasOwnProperty(A.field)){if(lb(e)&&!A.required)return t();hb.required(A,e,n,r,o),void 0!==e&&hb.type(A,e,n,r,o)}t(r)},regexp:function(A,e,t,n,o){var r=[];if(A.required||!A.required&&n.hasOwnProperty(A.field)){if(lb(e)&&!A.required)return t();hb.required(A,e,n,r,o),lb(e)||hb.type(A,e,n,r,o)}t(r)},integer:function(A,e,t,n,o){var r=[];if(A.required||!A.required&&n.hasOwnProperty(A.field)){if(lb(e)&&!A.required)return t();hb.required(A,e,n,r,o),void 0!==e&&(hb.type(A,e,n,r,o),hb.range(A,e,n,r,o))}t(r)},float:function(A,e,t,n,o){var r=[];if(A.required||!A.required&&n.hasOwnProperty(A.field)){if(lb(e)&&!A.required)return t();hb.required(A,e,n,r,o),void 0!==e&&(hb.type(A,e,n,r,o),hb.range(A,e,n,r,o))}t(r)},array:function(A,e,t,n,o){var r=[];if(A.required||!A.required&&n.hasOwnProperty(A.field)){if(null==e&&!A.required)return t();hb.required(A,e,n,r,o,"array"),null!=e&&(hb.type(A,e,n,r,o),hb.range(A,e,n,r,o))}t(r)},object:function(A,e,t,n,o){var r=[];if(A.required||!A.required&&n.hasOwnProperty(A.field)){if(lb(e)&&!A.required)return t();hb.required(A,e,n,r,o),void 0!==e&&hb.type(A,e,n,r,o)}t(r)},enum:function(A,e,t,n,o){var r=[];if(A.required||!A.required&&n.hasOwnProperty(A.field)){if(lb(e)&&!A.required)return t();hb.required(A,e,n,r,o),void 0!==e&&hb.enum(A,e,n,r,o)}t(r)},pattern:function(A,e,t,n,o){var r=[];if(A.required||!A.required&&n.hasOwnProperty(A.field)){if(lb(e,"string")&&!A.required)return t();hb.required(A,e,n,r,o),lb(e,"string")||hb.pattern(A,e,n,r,o)}t(r)},date:function(A,e,t,n,o){var r=[];if(A.required||!A.required&&n.hasOwnProperty(A.field)){if(lb(e,"date")&&!A.required)return t();var i;if(hb.required(A,e,n,r,o),!lb(e,"date"))i=e instanceof Date?e:new Date(e),hb.type(A,i,n,r,o),i&&hb.range(A,i.getTime(),n,r,o)}t(r)},url:wb,hex:wb,email:wb,required:function(A,e,t,n,o){var r=[],i=Array.isArray(e)?"array":mc(e);hb.required(A,e,n,r,o,i),t(r)},any:function(A,e,t,n,o){var r=[];if(A.required||!A.required&&n.hasOwnProperty(A.field)){if(lb(e)&&!A.required)return t();hb.required(A,e,n,r,o)}t(r)}};var mb=function(){function A(e){eQ(this,A),bc(this,"rules",null),bc(this,"_messages",nb),this.define(e)}return nQ(A,[{key:"define",value:function(A){var e=this;if(!A)throw new Error("Cannot configure a schema with no rules");if("object"!==mc(A)||Array.isArray(A))throw new Error("Rules must be an object");this.rules={},Object.keys(A).forEach((function(t){var n=A[t];e.rules[t]=Array.isArray(n)?n:[n]}))}},{key:"messages",value:function(A){return A&&(this._messages=Qb(tb(),A)),this._messages}},{key:"validate",value:function(e){var t=this,n=e,o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:function(){};if("function"==typeof o&&(r=o,o={}),!this.rules||0===Object.keys(this.rules).length)return r&&r(null,n),Promise.resolve(n);if(o.messages){var i=this.messages();i===nb&&(i=tb()),Qb(i,o.messages),o.messages=i}else o.messages=this.messages();var a={};(o.keys||Object.keys(this.rules)).forEach((function(A){var o=t.rules[A],r=n[A];o.forEach((function(o){var i=o;"function"==typeof i.transform&&(n===e&&(n=kc({},n)),null!=(r=n[A]=i.transform(r))&&(i.type=i.type||(Array.isArray(r)?"array":mc(r)))),(i="function"==typeof i?{validator:i}:kc({},i)).validator=t.getValidationMethod(i),i.validator&&(i.field=A,i.fullField=i.fullField||A,i.type=t.getType(i),a[A]=a[A]||[],a[A].push({rule:i,value:r,source:n,field:A}))}))}));var s={};return ub(a,o,(function(e,t){var r,i=e.rule,a=!("object"!==i.type&&"array"!==i.type||"object"!==mc(i.fields)&&"object"!==mc(i.defaultField));function l(A,e){return kc(kc({},e),{},{fullField:"".concat(i.fullField,".").concat(A),fullFields:i.fullFields?[].concat(XQ(i.fullFields),[A]):[A]})}function g(){var r=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],g=Array.isArray(r)?r:[r];!o.suppressWarning&&g.length&&A.warning("async-validator:",g),g.length&&void 0!==i.message&&(g=[].concat(i.message));var c=g.map(Bb(i,n));if(o.first&&c.length)return s[i.field]=1,t(c);if(a){if(i.required&&!e.value)return void 0!==i.message?c=[].concat(i.message).map(Bb(i,n)):o.error&&(c=[o.error(i,sb(o.messages.required,i.field))]),t(c);var u={};i.defaultField&&Object.keys(e.value).map((function(A){u[A]=i.defaultField})),u=kc(kc({},u),e.rule.fields);var B={};Object.keys(u).forEach((function(A){var e=u[A],t=Array.isArray(e)?e:[e];B[A]=t.map(l.bind(null,A))}));var Q=new A(B);Q.messages(o.messages),e.rule.options&&(e.rule.options.messages=o.messages,e.rule.options.error=o.error),Q.validate(e.value,e.rule.options||o,(function(A){var e=[];c&&c.length&&e.push.apply(e,XQ(c)),A&&A.length&&e.push.apply(e,XQ(A)),t(e.length?e:null)}))}else t(c)}if(a=a&&(i.required||!i.required&&e.value),i.field=e.field,i.asyncValidator)r=i.asyncValidator(i,e.value,g,e.source,o);else if(i.validator){try{r=i.validator(i,e.value,g,e.source,o)}catch(B){var c,u;null===(c=(u=console).error)||void 0===c||c.call(u,B),o.suppressValidatorError||setTimeout((function(){throw B}),0),g(B.message)}!0===r?g():!1===r?g("function"==typeof i.message?i.message(i.fullField||i.field):i.message||"".concat(i.fullField||i.field," fails")):r instanceof Array?g(r):r instanceof Error&&g(r.message)}r&&r.then&&r.then((function(){return g()}),(function(A){return g(A)}))}),(function(A){!function(A){for(var e,t,o=[],i={},a=0;a2&&void 0!==arguments[2]&&arguments[2];return A&&A.some((function(A){return Gb(e,A,t)}))}function Gb(A,e){return!(!A||!e)&&(!(!(arguments.length>2&&void 0!==arguments[2]&&arguments[2])&&A.length!==e.length)&&e.every((function(e,t){return A[t]===e})))}function Ob(A){var e=arguments.length<=1?void 0:arguments[1];return e&&e.target&&"object"===mc(e.target)&&A in e.target?e.target[A]:e}function Ub(A,e,t){var n=A.length;if(e<0||e>=n||t<0||t>=n)return A;var o=A[e],r=e-t;return r>0?[].concat(XQ(A.slice(0,t)),[o],XQ(A.slice(t,e)),XQ(A.slice(e+1,n))):r<0?[].concat(XQ(A.slice(0,e)),XQ(A.slice(e+1,t+1)),[o],XQ(A.slice(t+1,n))):A}var Kb=["name"],Yb=[];function Tb(A,e,t,n,o,r){return"function"==typeof A?A(e,t,"source"in r?{source:r.source}:{}):n!==o}var Jb=function(A){cI(t,J.Component);var e=CI(t);function t(A){var n;(eQ(this,t),bc(QI(n=e.call(this,A)),"state",{resetCount:0}),bc(QI(n),"cancelRegisterFunc",null),bc(QI(n),"mounted",!1),bc(QI(n),"touched",!1),bc(QI(n),"dirty",!1),bc(QI(n),"validatePromise",void 0),bc(QI(n),"prevValidating",void 0),bc(QI(n),"errors",Yb),bc(QI(n),"warnings",Yb),bc(QI(n),"cancelRegister",(function(){var A=n.props,e=A.preserve,t=A.isListField,o=A.name;n.cancelRegisterFunc&&n.cancelRegisterFunc(t,e,Lb(o)),n.cancelRegisterFunc=null})),bc(QI(n),"getNamePath",(function(){var A=n.props,e=A.name,t=A.fieldContext.prefixName;return void 0!==e?[].concat(XQ(void 0===t?[]:t),XQ(e)):[]})),bc(QI(n),"getRules",(function(){var A=n.props,e=A.rules,t=void 0===e?[]:e,o=A.fieldContext;return t.map((function(A){return"function"==typeof A?A(o):A}))})),bc(QI(n),"refresh",(function(){n.mounted&&n.setState((function(A){return{resetCount:A.resetCount+1}}))})),bc(QI(n),"metaCache",null),bc(QI(n),"triggerMetaEvent",(function(A){var e=n.props.onMetaChange;if(e){var t=kc(kc({},n.getMeta()),{},{destroy:A});IE(n.metaCache,t)||e(t),n.metaCache=t}else n.metaCache=null})),bc(QI(n),"onStoreChange",(function(A,e,t){var o=n.props,r=o.shouldUpdate,i=o.dependencies,a=void 0===i?[]:i,s=o.onReset,l=t.store,g=n.getNamePath(),c=n.getValue(A),u=n.getValue(l),B=e&&Hb(e,g);switch("valueUpdate"!==t.type||"external"!==t.source||IE(c,u)||(n.touched=!0,n.dirty=!0,n.validatePromise=null,n.errors=Yb,n.warnings=Yb,n.triggerMetaEvent()),t.type){case"reset":if(!e||B)return n.touched=!1,n.dirty=!1,n.validatePromise=void 0,n.errors=Yb,n.warnings=Yb,n.triggerMetaEvent(),null==s||s(),void n.refresh();break;case"remove":if(r)return void n.reRender();break;case"setField":var Q=t.data;if(B)return"touched"in Q&&(n.touched=Q.touched),"validating"in Q&&!("originRCField"in Q)&&(n.validatePromise=Q.validating?Promise.resolve([]):null),"errors"in Q&&(n.errors=Q.errors||Yb),"warnings"in Q&&(n.warnings=Q.warnings||Yb),n.dirty=!0,n.triggerMetaEvent(),void n.reRender();if("value"in Q&&Hb(e,g,!0))return void n.reRender();if(r&&!g.length&&Tb(r,A,l,c,u,t))return void n.reRender();break;case"dependenciesUpdate":if(a.map(Lb).some((function(A){return Hb(t.relatedFields,A)})))return void n.reRender();break;default:if(B||(!a.length||g.length||r)&&Tb(r,A,l,c,u,t))return void n.reRender()}!0===r&&n.reRender()})),bc(QI(n),"validateRules",(function(A){var e=n.getNamePath(),t=n.getValue(),o=A||{},r=o.triggerName,i=o.validateOnly,a=void 0!==i&&i,s=Promise.resolve().then(UD(GD().mark((function o(){var i,a,l,g,c,u,B;return GD().wrap((function(o){for(;;)switch(o.prev=o.next){case 0:if(n.mounted){o.next=2;break}return o.abrupt("return",[]);case 2:if(i=n.props,a=i.validateFirst,l=void 0!==a&&a,g=i.messageVariables,c=i.validateDebounce,u=n.getRules(),r&&(u=u.filter((function(A){return A})).filter((function(A){var e=A.validateTrigger;return!e||eb(e).includes(r)}))),!c||!r){o.next=10;break}return o.next=8,new Promise((function(A){setTimeout(A,c)}));case 8:if(n.validatePromise===s){o.next=10;break}return o.abrupt("return",[]);case 10:return(B=Fb(e,t,u,A,l,g)).catch((function(A){return A})).then((function(){var A=arguments.length>0&&void 0!==arguments[0]?arguments[0]:Yb;if(n.validatePromise===s){var e;n.validatePromise=null;var t=[],o=[];null===(e=A.forEach)||void 0===e||e.call(A,(function(A){var e=A.rule.warningOnly,n=A.errors,r=void 0===n?Yb:n;e?o.push.apply(o,XQ(r)):t.push.apply(t,XQ(r))})),n.errors=t,n.warnings=o,n.triggerMetaEvent(),n.reRender()}})),o.abrupt("return",B);case 13:case"end":return o.stop()}}),o)}))));return a||(n.validatePromise=s,n.dirty=!0,n.errors=Yb,n.warnings=Yb,n.triggerMetaEvent(),n.reRender()),s})),bc(QI(n),"isFieldValidating",(function(){return!!n.validatePromise})),bc(QI(n),"isFieldTouched",(function(){return n.touched})),bc(QI(n),"isFieldDirty",(function(){return!(!n.dirty&&void 0===n.props.initialValue)||void 0!==(0,n.props.fieldContext.getInternalHooks(Xy).getInitialValue)(n.getNamePath())})),bc(QI(n),"getErrors",(function(){return n.errors})),bc(QI(n),"getWarnings",(function(){return n.warnings})),bc(QI(n),"isListField",(function(){return n.props.isListField})),bc(QI(n),"isList",(function(){return n.props.isList})),bc(QI(n),"isPreserve",(function(){return n.props.preserve})),bc(QI(n),"getMeta",(function(){return n.prevValidating=n.isFieldValidating(),{touched:n.isFieldTouched(),validating:n.prevValidating,errors:n.errors,warnings:n.warnings,name:n.getNamePath(),validated:null===n.validatePromise}})),bc(QI(n),"getOnlyChild",(function(A){if("function"==typeof A){var e=n.getMeta();return kc(kc({},n.getOnlyChild(A(n.getControlled(),e,n.props.fieldContext))),{},{isFunction:!0})}var t=Fd(A);return 1===t.length&&J.isValidElement(t[0])?{child:t[0],isFunction:!1}:{child:t,isFunction:!1}})),bc(QI(n),"getValue",(function(A){var e=n.props.fieldContext.getFieldsValue,t=n.getNamePath();return SI(A||e(!0),t)})),bc(QI(n),"getControlled",(function(){var A=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=n.props,t=e.name,o=e.trigger,r=e.validateTrigger,i=e.getValueFromEvent,a=e.normalize,s=e.valuePropName,l=e.getValueProps,g=e.fieldContext,c=void 0!==r?r:g.validateTrigger,u=n.getNamePath(),B=g.getInternalHooks,Q=g.getFieldsValue,E=B(Xy).dispatch,C=n.getValue(),d=l||function(A){return bc({},s,A)},I=A[o],p=void 0!==t?d(C):{},f=kc(kc({},A),p);return f[o]=function(){var A;n.touched=!0,n.dirty=!0,n.triggerMetaEvent();for(var e=arguments.length,t=new Array(e),o=0;o=0&&e<=t.length?(l.keys=[].concat(XQ(l.keys.slice(0,e)),[l.id],XQ(l.keys.slice(e))),r([].concat(XQ(t.slice(0,e)),[A],XQ(t.slice(e))))):(l.keys=[].concat(XQ(l.keys),[l.id]),r([].concat(XQ(t),[A]))),l.id+=1},remove:function(A){var e=s(),t=new Set(Array.isArray(A)?A:[A]);t.size<=0||(l.keys=l.keys.filter((function(A,e){return!t.has(e)})),r(e.filter((function(A,e){return!t.has(e)}))))},move:function(A,e){if(A!==e){var t=s();A<0||A>=t.length||e<0||e>=t.length||(l.keys=Ub(l.keys,A,e),r(Ub(t,A,e)))}}},u=o||[];return Array.isArray(u)||(u=[]),n(u.map((function(A,e){var t=l.keys[e];return void 0===t&&(l.keys[e]=l.id,t=l.keys[e],l.id+=1),{name:e,key:t,isListField:!0}})),c,e)}))))}bc(Jb,"contextType",Zy),bc(Jb,"defaultProps",{trigger:"onChange",valuePropName:"value"});var $b="__@field_split__";function zb(A){return A.map((function(A){return"".concat(mc(A),":").concat(A)})).join($b)}var Wb=function(){function A(){eQ(this,A),bc(this,"kvs",new Map)}return nQ(A,[{key:"set",value:function(A,e){this.kvs.set(zb(A),e)}},{key:"get",value:function(A){return this.kvs.get(zb(A))}},{key:"update",value:function(A,e){var t=e(this.get(A));t?this.set(A,t):this.delete(A)}},{key:"delete",value:function(A){this.kvs.delete(zb(A))}},{key:"map",value:function(A){return XQ(this.kvs.entries()).map((function(e){var t=WQ(e,2),n=t[0],o=t[1],r=n.split($b);return A({key:r.map((function(A){var e=WQ(A.match(/^([^:]*):(.*)$/),3),t=e[1],n=e[2];return"number"===t?Number(n):n})),value:o})}))}},{key:"toJSON",value:function(){var A={};return this.map((function(e){var t=e.key,n=e.value;return A[t.join(".")]=n,null})),A}}]),A}(),_b=["name"],Xb=nQ((function A(e){var t=this;eQ(this,A),bc(this,"formHooked",!1),bc(this,"forceRootUpdate",void 0),bc(this,"subscribable",!0),bc(this,"store",{}),bc(this,"fieldEntities",[]),bc(this,"initialValues",{}),bc(this,"callbacks",{}),bc(this,"validateMessages",null),bc(this,"preserve",null),bc(this,"lastValidatePromise",null),bc(this,"getForm",(function(){return{getFieldValue:t.getFieldValue,getFieldsValue:t.getFieldsValue,getFieldError:t.getFieldError,getFieldWarning:t.getFieldWarning,getFieldsError:t.getFieldsError,isFieldsTouched:t.isFieldsTouched,isFieldTouched:t.isFieldTouched,isFieldValidating:t.isFieldValidating,isFieldsValidating:t.isFieldsValidating,resetFields:t.resetFields,setFields:t.setFields,setFieldValue:t.setFieldValue,setFieldsValue:t.setFieldsValue,validateFields:t.validateFields,submit:t.submit,_init:!0,getInternalHooks:t.getInternalHooks}})),bc(this,"getInternalHooks",(function(A){return A===Xy?(t.formHooked=!0,{dispatch:t.dispatch,initEntityValue:t.initEntityValue,registerField:t.registerField,useSubscribe:t.useSubscribe,setInitialValues:t.setInitialValues,destroyForm:t.destroyForm,setCallbacks:t.setCallbacks,setValidateMessages:t.setValidateMessages,getFields:t.getFields,setPreserve:t.setPreserve,getInitialValue:t.getInitialValue,registerWatch:t.registerWatch}):(dE(!1,"`getInternalHooks` is internal usage. Should not call directly."),null)})),bc(this,"useSubscribe",(function(A){t.subscribable=A})),bc(this,"prevWithoutPreserves",null),bc(this,"setInitialValues",(function(A,e){if(t.initialValues=A||{},e){var n,o=PI(A,t.store);null===(n=t.prevWithoutPreserves)||void 0===n||n.map((function(e){var t=e.key;o=NI(o,t,SI(A,t))})),t.prevWithoutPreserves=null,t.updateStore(o)}})),bc(this,"destroyForm",(function(){var A=new Wb;t.getFieldEntities(!0).forEach((function(e){t.isMergedPreserve(e.isPreserve())||A.set(e.getNamePath(),!0)})),t.prevWithoutPreserves=A})),bc(this,"getInitialValue",(function(A){var e=SI(t.initialValues,A);return A.length?PI(e):e})),bc(this,"setCallbacks",(function(A){t.callbacks=A})),bc(this,"setValidateMessages",(function(A){t.validateMessages=A})),bc(this,"setPreserve",(function(A){t.preserve=A})),bc(this,"watchList",[]),bc(this,"registerWatch",(function(A){return t.watchList.push(A),function(){t.watchList=t.watchList.filter((function(e){return e!==A}))}})),bc(this,"notifyWatch",(function(){var A=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];if(t.watchList.length){var e=t.getFieldsValue(),n=t.getFieldsValue(!0);t.watchList.forEach((function(t){t(e,n,A)}))}})),bc(this,"timeoutId",null),bc(this,"warningUnhooked",(function(){})),bc(this,"updateStore",(function(A){t.store=A})),bc(this,"getFieldEntities",(function(){return arguments.length>0&&void 0!==arguments[0]&&arguments[0]?t.fieldEntities.filter((function(A){return A.getNamePath().length})):t.fieldEntities})),bc(this,"getFieldsMap",(function(){var A=arguments.length>0&&void 0!==arguments[0]&&arguments[0],e=new Wb;return t.getFieldEntities(A).forEach((function(A){var t=A.getNamePath();e.set(t,A)})),e})),bc(this,"getFieldEntitiesForNamePathList",(function(A){if(!A)return t.getFieldEntities(!0);var e=t.getFieldsMap(!0);return A.map((function(A){var t=Lb(A);return e.get(t)||{INVALIDATE_NAME_PATH:Lb(A)}}))})),bc(this,"getFieldsValue",(function(A,e){var n,o,r;if(t.warningUnhooked(),!0===A||Array.isArray(A)?(n=A,o=e):A&&"object"===mc(A)&&(r=A.strict,o=A.filter),!0===n&&!o)return t.store;var i=t.getFieldEntitiesForNamePathList(Array.isArray(n)?n:null),a=[];return i.forEach((function(A){var e,t,i,s,l="INVALIDATE_NAME_PATH"in A?A.INVALIDATE_NAME_PATH:A.getNamePath();if(r){if(null!==(i=(s=A).isList)&&void 0!==i&&i.call(s))return}else if(!n&&null!==(e=(t=A).isListField)&&void 0!==e&&e.call(t))return;if(o){var g="getMeta"in A?A.getMeta():null;o(g)&&a.push(l)}else a.push(l)})),Pb(t.store,a.map(Lb))})),bc(this,"getFieldValue",(function(A){t.warningUnhooked();var e=Lb(A);return SI(t.store,e)})),bc(this,"getFieldsError",(function(A){return t.warningUnhooked(),t.getFieldEntitiesForNamePathList(A).map((function(e,t){return e&&!("INVALIDATE_NAME_PATH"in e)?{name:e.getNamePath(),errors:e.getErrors(),warnings:e.getWarnings()}:{name:Lb(A[t]),errors:[],warnings:[]}}))})),bc(this,"getFieldError",(function(A){t.warningUnhooked();var e=Lb(A);return t.getFieldsError([e])[0].errors})),bc(this,"getFieldWarning",(function(A){t.warningUnhooked();var e=Lb(A);return t.getFieldsError([e])[0].warnings})),bc(this,"isFieldsTouched",(function(){t.warningUnhooked();for(var A=arguments.length,e=new Array(A),n=0;n0&&void 0!==arguments[0]?arguments[0]:{},e=new Wb,n=t.getFieldEntities(!0);n.forEach((function(A){var t=A.props.initialValue,n=A.getNamePath();if(void 0!==t){var o=e.get(n)||new Set;o.add({entity:A,value:t}),e.set(n,o)}}));var o;A.entities?o=A.entities:A.namePathList?(o=[],A.namePathList.forEach((function(A){var t,n=e.get(A);n&&(t=o).push.apply(t,XQ(XQ(n).map((function(A){return A.entity}))))}))):o=n,o.forEach((function(n){if(void 0!==n.props.initialValue){var o=n.getNamePath();if(void 0!==t.getInitialValue(o))dE(!1,"Form already set 'initialValues' with path '".concat(o.join("."),"'. Field can not overwrite it."));else{var r=e.get(o);if(r&&r.size>1)dE(!1,"Multiple Field with path '".concat(o.join("."),"' set 'initialValue'. Can not decide which one to pick."));else if(r){var i=t.getFieldValue(o);n.isListField()||A.skipExist&&void 0!==i||t.updateStore(NI(t.store,o,XQ(r)[0].value))}}}}))})),bc(this,"resetFields",(function(A){t.warningUnhooked();var e=t.store;if(!A)return t.updateStore(PI(t.initialValues)),t.resetWithFieldInitialValue(),t.notifyObservers(e,null,{type:"reset"}),void t.notifyWatch();var n=A.map(Lb);n.forEach((function(A){var e=t.getInitialValue(A);t.updateStore(NI(t.store,A,e))})),t.resetWithFieldInitialValue({namePathList:n}),t.notifyObservers(e,n,{type:"reset"}),t.notifyWatch(n)})),bc(this,"setFields",(function(A){t.warningUnhooked();var e=t.store,n=[];A.forEach((function(A){var o=A.name,r=Mc(A,_b),i=Lb(o);n.push(i),"value"in r&&t.updateStore(NI(t.store,i,r.value)),t.notifyObservers(e,[i],{type:"setField",data:A})})),t.notifyWatch(n)})),bc(this,"getFields",(function(){return t.getFieldEntities(!0).map((function(A){var e=A.getNamePath(),n=kc(kc({},A.getMeta()),{},{name:e,value:t.getFieldValue(e)});return Object.defineProperty(n,"originRCField",{value:!0}),n}))})),bc(this,"initEntityValue",(function(A){var e=A.props.initialValue;if(void 0!==e){var n=A.getNamePath();void 0===SI(t.store,n)&&t.updateStore(NI(t.store,n,e))}})),bc(this,"isMergedPreserve",(function(A){var e=void 0!==A?A:t.preserve;return null==e||e})),bc(this,"registerField",(function(A){t.fieldEntities.push(A);var e=A.getNamePath();if(t.notifyWatch([e]),void 0!==A.props.initialValue){var n=t.store;t.resetWithFieldInitialValue({entities:[A],skipExist:!0}),t.notifyObservers(n,[A.getNamePath()],{type:"valueUpdate",source:"internal"})}return function(n,o){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[];if(t.fieldEntities=t.fieldEntities.filter((function(e){return e!==A})),!t.isMergedPreserve(o)&&(!n||r.length>1)){var i=n?void 0:t.getInitialValue(e);if(e.length&&t.getFieldValue(e)!==i&&t.fieldEntities.every((function(A){return!Gb(A.getNamePath(),e)}))){var a=t.store;t.updateStore(NI(a,e,i,!0)),t.notifyObservers(a,[e],{type:"remove"}),t.triggerDependenciesUpdate(a,e)}}t.notifyWatch([e])}})),bc(this,"dispatch",(function(A){switch(A.type){case"updateValue":var e=A.namePath,n=A.value;t.updateValue(e,n);break;case"validateField":var o=A.namePath,r=A.triggerName;t.validateFields([o],{triggerName:r})}})),bc(this,"notifyObservers",(function(A,e,n){if(t.subscribable){var o=kc(kc({},n),{},{store:t.getFieldsValue(!0)});t.getFieldEntities().forEach((function(t){(0,t.onStoreChange)(A,e,o)}))}else t.forceRootUpdate()})),bc(this,"triggerDependenciesUpdate",(function(A,e){var n=t.getDependencyChildrenFields(e);return n.length&&t.validateFields(n),t.notifyObservers(A,n,{type:"dependenciesUpdate",relatedFields:[e].concat(XQ(n))}),n})),bc(this,"updateValue",(function(A,e){var n=Lb(A),o=t.store;t.updateStore(NI(t.store,n,e)),t.notifyObservers(o,[n],{type:"valueUpdate",source:"internal"}),t.notifyWatch([n]);var r=t.triggerDependenciesUpdate(o,n),i=t.callbacks.onValuesChange;i&&i(Pb(t.store,[n]),t.getFieldsValue());t.triggerOnFieldsChange([n].concat(XQ(r)))})),bc(this,"setFieldsValue",(function(A){t.warningUnhooked();var e=t.store;if(A){var n=PI(t.store,A);t.updateStore(n)}t.notifyObservers(e,null,{type:"valueUpdate",source:"external"}),t.notifyWatch()})),bc(this,"setFieldValue",(function(A,e){t.setFields([{name:A,value:e}])})),bc(this,"getDependencyChildrenFields",(function(A){var e=new Set,n=[],o=new Wb;t.getFieldEntities().forEach((function(A){(A.props.dependencies||[]).forEach((function(e){var t=Lb(e);o.update(t,(function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:new Set;return e.add(A),e}))}))}));return function A(t){(o.get(t)||new Set).forEach((function(t){if(!e.has(t)){e.add(t);var o=t.getNamePath();t.isFieldDirty()&&o.length&&(n.push(o),A(o))}}))}(A),n})),bc(this,"triggerOnFieldsChange",(function(A,e){var n=t.callbacks.onFieldsChange;if(n){var o=t.getFields();if(e){var r=new Wb;e.forEach((function(A){var e=A.name,t=A.errors;r.set(e,t)})),o.forEach((function(A){A.errors=r.get(A.name)||A.errors}))}var i=o.filter((function(e){var t=e.name;return Hb(A,t)}));i.length&&n(i,o)}})),bc(this,"validateFields",(function(A,e){var n,o;t.warningUnhooked(),Array.isArray(A)||"string"==typeof A||"string"==typeof e?(n=A,o=e):o=A;var r=!!n,i=r?n.map(Lb):[],a=[],s=String(Date.now()),l=new Set,g=o||{},c=g.recursive,u=g.dirty;t.getFieldEntities(!0).forEach((function(A){if(r||i.push(A.getNamePath()),A.props.rules&&A.props.rules.length&&(!u||A.isFieldDirty())){var e=A.getNamePath();if(l.add(e.join(s)),!r||Hb(i,e,c)){var n=A.validateRules(kc({validateMessages:kc(kc({},bb),t.validateMessages)},o));a.push(n.then((function(){return{name:e,errors:[],warnings:[]}})).catch((function(A){var t,n=[],o=[];return null===(t=A.forEach)||void 0===t||t.call(A,(function(A){var e=A.rule.warningOnly,t=A.errors;e?o.push.apply(o,XQ(t)):n.push.apply(n,XQ(t))})),n.length?Promise.reject({name:e,errors:n,warnings:o}):{name:e,errors:n,warnings:o}})))}}}));var B=function(A){var e=!1,t=A.length,n=[];return A.length?new Promise((function(o,r){A.forEach((function(A,i){A.catch((function(A){return e=!0,A})).then((function(A){t-=1,n[i]=A,t>0||(e&&r(n),o(n))}))}))})):Promise.resolve([])}(a);t.lastValidatePromise=B,B.catch((function(A){return A})).then((function(A){var e=A.map((function(A){return A.name}));t.notifyObservers(t.store,e,{type:"validateFinish"}),t.triggerOnFieldsChange(e,A)}));var Q=B.then((function(){return t.lastValidatePromise===B?Promise.resolve(t.getFieldsValue(i)):Promise.reject([])})).catch((function(A){var e=A.filter((function(A){return A&&A.errors.length}));return Promise.reject({values:t.getFieldsValue(i),errorFields:e,outOfDate:t.lastValidatePromise!==B})}));Q.catch((function(A){return A}));var E=i.filter((function(A){return l.has(A.join(s))}));return t.triggerOnFieldsChange(E),Q})),bc(this,"submit",(function(){t.warningUnhooked(),t.validateFields().then((function(A){var e=t.callbacks.onFinish;if(e)try{e(A)}catch(n){console.error(n)}})).catch((function(A){var e=t.callbacks.onFinishFailed;e&&e(A)}))})),this.forceRootUpdate=e}));function Vb(A){var e=J.useRef(),t=WQ(J.useState({}),2)[1];if(!e.current)if(A)e.current=A;else{var n=new Xb((function(){t({})}));e.current=n.getForm()}return[e.current]}var Zb=J.createContext({triggerFormChange:function(){},triggerFormFinish:function(){},registerForm:function(){},unregisterForm:function(){}}),Av=function(A){var e=A.validateMessages,t=A.onFormChange,n=A.onFormFinish,o=A.children,r=J.useContext(Zb),i=J.useRef({});return J.createElement(Zb.Provider,{value:kc(kc({},r),{},{validateMessages:kc(kc({},r.validateMessages),e),triggerFormChange:function(A,e){t&&t(A,{changedFields:e,forms:i.current}),r.triggerFormChange(A,e)},triggerFormFinish:function(A,e){n&&n(A,{values:e,forms:i.current}),r.triggerFormFinish(A,e)},registerForm:function(A,e){A&&(i.current=kc(kc({},i.current),{},bc({},A,e))),r.registerForm(A,e)},unregisterForm:function(A){var e=kc({},i.current);delete e[A],i.current=e,r.unregisterForm(A)}})},o)},ev=["name","initialValues","fields","form","preserve","children","component","validateMessages","validateTrigger","onValuesChange","onFieldsChange","onFinish","onFinishFailed"],tv=function(A,e){var t=A.name,n=A.initialValues,o=A.fields,r=A.form,i=A.preserve,a=A.children,s=A.component,l=void 0===s?"form":s,g=A.validateMessages,c=A.validateTrigger,u=void 0===c?"onChange":c,B=A.onValuesChange,Q=A.onFieldsChange,E=A.onFinish,C=A.onFinishFailed,d=Mc(A,ev),I=J.useContext(Zb),p=WQ(Vb(r),1)[0],f=p.getInternalHooks(Xy),h=f.useSubscribe,w=f.setInitialValues,D=f.setCallbacks,m=f.setValidateMessages,y=f.setPreserve,b=f.destroyForm;J.useImperativeHandle(e,(function(){return p})),J.useEffect((function(){return I.registerForm(t,p),function(){I.unregisterForm(t)}}),[I,p,t]),m(kc(kc({},I.validateMessages),g)),D({onValuesChange:B,onFieldsChange:function(A){if(I.triggerFormChange(t,A),Q){for(var e=arguments.length,n=new Array(e>1?e-1:0),o=1;o{}}),av=J.createContext(null),sv=A=>{const e=wI(A,["prefixCls"]);return J.createElement(Av,Object.assign({},e))},lv=J.createContext({prefixCls:""}),gv=J.createContext({}),cv=A=>{let{children:e,status:t,override:n}=A;const o=J.useContext(gv),r=J.useMemo((()=>{const A=Object.assign({},o);return n&&delete A.isFormItemInput,t&&(delete A.status,delete A.hasFeedback,delete A.feedbackIcon),A}),[t,n,o]);return J.createElement(gv.Provider,{value:r},e)},uv=J.createContext(void 0);function Bv(){}const Qv=J.createContext({add:Bv,remove:Bv});function Ev(A){const e=J.useContext(Qv),t=J.useRef();return mf((n=>{if(n){const o=A?n.querySelector(A):n;e.add(o),t.current=o}else e.remove(t.current)}))}const Cv=()=>{const{cancelButtonProps:A,cancelTextLocale:e,onCancel:t}=J.useContext(fy);return j.createElement(dy,Object.assign({onClick:t},A),e)},dv=()=>{const{confirmLoading:A,okButtonProps:e,okType:t,okTextLocale:n,onOk:o}=J.useContext(fy);return j.createElement(dy,Object.assign({},Mm(t),{loading:A,onClick:o},e),n)};function Iv(A,e){return j.createElement("span",{className:`${A}-close-x`},e||j.createElement(mw,{className:`${A}-close-icon`}))}const pv=A=>{const{okText:e,okType:t="primary",cancelText:n,confirmLoading:o,onOk:r,onCancel:i,okButtonProps:a,cancelButtonProps:s,footer:l}=A,[g]=_I("Modal",zI()),c={confirmLoading:o,okButtonProps:a,cancelButtonProps:s,okTextLocale:e||(null==g?void 0:g.okText),cancelTextLocale:n||(null==g?void 0:g.cancelText),okType:t,onOk:r,onCancel:i},u=j.useMemo((()=>c),XQ(Object.values(c)));let B;return"function"==typeof l||void 0===l?(B=j.createElement(j.Fragment,null,j.createElement(Cv,null),j.createElement(dv,null)),"function"==typeof l&&(B=l(B,{OkBtn:dv,CancelBtn:Cv})),B=j.createElement(hy,{value:u},B)):B=l,j.createElement(ef,{disabled:!1},B)},fv=A=>({[A.componentCls]:{[`${A.antCls}-motion-collapse-legacy`]:{overflow:"hidden","&-active":{transition:`height ${A.motionDurationMid} ${A.motionEaseInOut},\n opacity ${A.motionDurationMid} ${A.motionEaseInOut} !important`}},[`${A.antCls}-motion-collapse`]:{overflow:"hidden",transition:`height ${A.motionDurationMid} ${A.motionEaseInOut},\n opacity ${A.motionDurationMid} ${A.motionEaseInOut} !important`}}}),hv=A=>({animationDuration:A,animationFillMode:"both"}),wv=A=>({animationDuration:A,animationFillMode:"both"}),Dv=function(A,e,t,n){const o=arguments.length>4&&void 0!==arguments[4]&&arguments[4]?"&":"";return{[`\n ${o}${A}-enter,\n ${o}${A}-appear\n `]:Object.assign(Object.assign({},hv(n)),{animationPlayState:"paused"}),[`${o}${A}-leave`]:Object.assign(Object.assign({},wv(n)),{animationPlayState:"paused"}),[`\n ${o}${A}-enter${A}-enter-active,\n ${o}${A}-appear${A}-appear-active\n `]:{animationName:e,animationPlayState:"running"},[`${o}${A}-leave${A}-leave-active`]:{animationName:t,animationPlayState:"running",pointerEvents:"none"}}},mv=new ad("antFadeIn",{"0%":{opacity:0},"100%":{opacity:1}}),yv=new ad("antFadeOut",{"0%":{opacity:1},"100%":{opacity:0}}),bv=function(A){let e=arguments.length>1&&void 0!==arguments[1]&&arguments[1];const{antCls:t}=A,n=`${t}-fade`,o=e?"&":"";return[Dv(n,mv,yv,A.motionDurationMid,e),{[`\n ${o}${n}-enter,\n ${o}${n}-appear\n `]:{opacity:0,animationTimingFunction:"linear"},[`${o}${n}-leave`]:{animationTimingFunction:"linear"}}]},vv=new ad("antMoveDownIn",{"0%":{transform:"translate3d(0, 100%, 0)",transformOrigin:"0 0",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1}}),kv=new ad("antMoveDownOut",{"0%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1},"100%":{transform:"translate3d(0, 100%, 0)",transformOrigin:"0 0",opacity:0}}),Mv=new ad("antMoveLeftIn",{"0%":{transform:"translate3d(-100%, 0, 0)",transformOrigin:"0 0",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1}}),xv=new ad("antMoveLeftOut",{"0%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1},"100%":{transform:"translate3d(-100%, 0, 0)",transformOrigin:"0 0",opacity:0}}),Sv=new ad("antMoveRightIn",{"0%":{transform:"translate3d(100%, 0, 0)",transformOrigin:"0 0",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1}}),Fv=new ad("antMoveRightOut",{"0%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1},"100%":{transform:"translate3d(100%, 0, 0)",transformOrigin:"0 0",opacity:0}}),Nv={"move-up":{inKeyframes:new ad("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 ad("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:vv,outKeyframes:kv},"move-left":{inKeyframes:Mv,outKeyframes:xv},"move-right":{inKeyframes:Sv,outKeyframes:Fv}},Rv=(A,e)=>{const{antCls:t}=A,n=`${t}-${e}`,{inKeyframes:o,outKeyframes:r}=Nv[e];return[Dv(n,o,r,A.motionDurationMid),{[`\n ${n}-enter,\n ${n}-appear\n `]:{opacity:0,animationTimingFunction:A.motionEaseOutCirc},[`${n}-leave`]:{animationTimingFunction:A.motionEaseInOutCirc}}]},Lv=new ad("antSlideUpIn",{"0%":{transform:"scaleY(0.8)",transformOrigin:"0% 0%",opacity:0},"100%":{transform:"scaleY(1)",transformOrigin:"0% 0%",opacity:1}}),Pv=new ad("antSlideUpOut",{"0%":{transform:"scaleY(1)",transformOrigin:"0% 0%",opacity:1},"100%":{transform:"scaleY(0.8)",transformOrigin:"0% 0%",opacity:0}}),Hv=new ad("antSlideDownIn",{"0%":{transform:"scaleY(0.8)",transformOrigin:"100% 100%",opacity:0},"100%":{transform:"scaleY(1)",transformOrigin:"100% 100%",opacity:1}}),Gv=new ad("antSlideDownOut",{"0%":{transform:"scaleY(1)",transformOrigin:"100% 100%",opacity:1},"100%":{transform:"scaleY(0.8)",transformOrigin:"100% 100%",opacity:0}}),Ov=new ad("antSlideLeftIn",{"0%":{transform:"scaleX(0.8)",transformOrigin:"0% 0%",opacity:0},"100%":{transform:"scaleX(1)",transformOrigin:"0% 0%",opacity:1}}),Uv=new ad("antSlideLeftOut",{"0%":{transform:"scaleX(1)",transformOrigin:"0% 0%",opacity:1},"100%":{transform:"scaleX(0.8)",transformOrigin:"0% 0%",opacity:0}}),Kv=new ad("antSlideRightIn",{"0%":{transform:"scaleX(0.8)",transformOrigin:"100% 0%",opacity:0},"100%":{transform:"scaleX(1)",transformOrigin:"100% 0%",opacity:1}}),Yv=new ad("antSlideRightOut",{"0%":{transform:"scaleX(1)",transformOrigin:"100% 0%",opacity:1},"100%":{transform:"scaleX(0.8)",transformOrigin:"100% 0%",opacity:0}}),Tv={"slide-up":{inKeyframes:Lv,outKeyframes:Pv},"slide-down":{inKeyframes:Hv,outKeyframes:Gv},"slide-left":{inKeyframes:Ov,outKeyframes:Uv},"slide-right":{inKeyframes:Kv,outKeyframes:Yv}},Jv=(A,e)=>{const{antCls:t}=A,n=`${t}-${e}`,{inKeyframes:o,outKeyframes:r}=Tv[e];return[Dv(n,o,r,A.motionDurationMid),{[`\n ${n}-enter,\n ${n}-appear\n `]:{transform:"scale(0)",transformOrigin:"0% 0%",opacity:0,animationTimingFunction:A.motionEaseOutQuint,"&-prepare":{transform:"scale(1)"}},[`${n}-leave`]:{animationTimingFunction:A.motionEaseInQuint}}]},jv=new ad("antZoomIn",{"0%":{transform:"scale(0.2)",opacity:0},"100%":{transform:"scale(1)",opacity:1}}),qv=new ad("antZoomOut",{"0%":{transform:"scale(1)"},"100%":{transform:"scale(0.2)",opacity:0}}),$v=new ad("antZoomBigIn",{"0%":{transform:"scale(0.8)",opacity:0},"100%":{transform:"scale(1)",opacity:1}}),zv=new ad("antZoomBigOut",{"0%":{transform:"scale(1)"},"100%":{transform:"scale(0.8)",opacity:0}}),Wv=new ad("antZoomUpIn",{"0%":{transform:"scale(0.8)",transformOrigin:"50% 0%",opacity:0},"100%":{transform:"scale(1)",transformOrigin:"50% 0%"}}),_v=new ad("antZoomUpOut",{"0%":{transform:"scale(1)",transformOrigin:"50% 0%"},"100%":{transform:"scale(0.8)",transformOrigin:"50% 0%",opacity:0}}),Xv=new ad("antZoomLeftIn",{"0%":{transform:"scale(0.8)",transformOrigin:"0% 50%",opacity:0},"100%":{transform:"scale(1)",transformOrigin:"0% 50%"}}),Vv=new ad("antZoomLeftOut",{"0%":{transform:"scale(1)",transformOrigin:"0% 50%"},"100%":{transform:"scale(0.8)",transformOrigin:"0% 50%",opacity:0}}),Zv=new ad("antZoomRightIn",{"0%":{transform:"scale(0.8)",transformOrigin:"100% 50%",opacity:0},"100%":{transform:"scale(1)",transformOrigin:"100% 50%"}}),Ak=new ad("antZoomRightOut",{"0%":{transform:"scale(1)",transformOrigin:"100% 50%"},"100%":{transform:"scale(0.8)",transformOrigin:"100% 50%",opacity:0}}),ek=new ad("antZoomDownIn",{"0%":{transform:"scale(0.8)",transformOrigin:"50% 100%",opacity:0},"100%":{transform:"scale(1)",transformOrigin:"50% 100%"}}),tk=new ad("antZoomDownOut",{"0%":{transform:"scale(1)",transformOrigin:"50% 100%"},"100%":{transform:"scale(0.8)",transformOrigin:"50% 100%",opacity:0}}),nk={zoom:{inKeyframes:jv,outKeyframes:qv},"zoom-big":{inKeyframes:$v,outKeyframes:zv},"zoom-big-fast":{inKeyframes:$v,outKeyframes:zv},"zoom-left":{inKeyframes:Xv,outKeyframes:Vv},"zoom-right":{inKeyframes:Zv,outKeyframes:Ak},"zoom-up":{inKeyframes:Wv,outKeyframes:_v},"zoom-down":{inKeyframes:ek,outKeyframes:tk}},ok=(A,e)=>{const{antCls:t}=A,n=`${t}-${e}`,{inKeyframes:o,outKeyframes:r}=nk[e];return[Dv(n,o,r,"zoom-big-fast"===e?A.motionDurationFast:A.motionDurationMid),{[`\n ${n}-enter,\n ${n}-appear\n `]:{transform:"scale(0)",opacity:0,animationTimingFunction:A.motionEaseOutCirc,"&-prepare":{transform:"none"}},[`${n}-leave`]:{animationTimingFunction:A.motionEaseInOutCirc}}]};function rk(A){return{position:A,inset:0}}const ik=A=>{const{componentCls:e,antCls:t}=A;return[{[`${e}-root`]:{[`${e}${t}-zoom-enter, ${e}${t}-zoom-appear`]:{transform:"none",opacity:0,animationDuration:A.motionDurationSlow,userSelect:"none"},[`${e}${t}-zoom-leave ${e}-content`]:{pointerEvents:"none"},[`${e}-mask`]:Object.assign(Object.assign({},rk("fixed")),{zIndex:A.zIndexPopupBase,height:"100%",backgroundColor:A.colorBgMask,pointerEvents:"none",[`${e}-hidden`]:{display:"none"}}),[`${e}-wrap`]:Object.assign(Object.assign({},rk("fixed")),{zIndex:A.zIndexPopupBase,overflow:"auto",outline:0,WebkitOverflowScrolling:"touch"})}},{[`${e}-root`]:bv(A)}]},ak=A=>{const{componentCls:e}=A;return[{[`${e}-root`]:{[`${e}-wrap-rtl`]:{direction:"rtl"},[`${e}-centered`]:{textAlign:"center","&::before":{display:"inline-block",width:0,height:"100%",verticalAlign:"middle",content:'""'},[e]:{top:0,display:"inline-block",paddingBottom:0,textAlign:"start",verticalAlign:"middle"}},[`@media (max-width: ${A.screenSMMax}px)`]:{[e]:{maxWidth:"calc(100vw - 16px)",margin:`${UE(A.marginXS)} auto`},[`${e}-centered`]:{[e]:{flex:1}}}}},{[e]:Object.assign(Object.assign({},Mf(A)),{pointerEvents:"none",position:"relative",top:100,width:"auto",maxWidth:`calc(100vw - ${UE(A.calc(A.margin).mul(2).equal())})`,margin:"0 auto",paddingBottom:A.paddingLG,[`${e}-title`]:{margin:0,color:A.titleColor,fontWeight:A.fontWeightStrong,fontSize:A.titleFontSize,lineHeight:A.titleLineHeight,wordWrap:"break-word"},[`${e}-content`]:{position:"relative",backgroundColor:A.contentBg,backgroundClip:"padding-box",border:0,borderRadius:A.borderRadiusLG,boxShadow:A.boxShadow,pointerEvents:"auto",padding:A.contentPadding},[`${e}-close`]:Object.assign({position:"absolute",top:A.calc(A.modalHeaderHeight).sub(A.modalCloseBtnSize).div(2).equal(),insetInlineEnd:A.calc(A.modalHeaderHeight).sub(A.modalCloseBtnSize).div(2).equal(),zIndex:A.calc(A.zIndexPopupBase).add(10).equal(),padding:0,color:A.modalCloseIconColor,fontWeight:A.fontWeightStrong,lineHeight:1,textDecoration:"none",background:"transparent",borderRadius:A.borderRadiusSM,width:A.modalCloseBtnSize,height:A.modalCloseBtnSize,border:0,outline:0,cursor:"pointer",transition:`color ${A.motionDurationMid}, background-color ${A.motionDurationMid}`,"&-x":{display:"flex",fontSize:A.fontSizeLG,fontStyle:"normal",lineHeight:`${UE(A.modalCloseBtnSize)}`,justifyContent:"center",textTransform:"none",textRendering:"auto"},"&:hover":{color:A.modalCloseIconHoverColor,backgroundColor:A.colorBgTextHover,textDecoration:"none"},"&:active":{backgroundColor:A.colorBgTextActive}},Nf(A)),[`${e}-header`]:{color:A.colorText,background:A.headerBg,borderRadius:`${UE(A.borderRadiusLG)} ${UE(A.borderRadiusLG)} 0 0`,marginBottom:A.headerMarginBottom,padding:A.headerPadding,borderBottom:A.headerBorderBottom},[`${e}-body`]:{fontSize:A.fontSize,lineHeight:A.lineHeight,wordWrap:"break-word",padding:A.bodyPadding},[`${e}-footer`]:{textAlign:"end",background:A.footerBg,marginTop:A.footerMarginTop,padding:A.footerPadding,borderTop:A.footerBorderTop,borderRadius:A.footerBorderRadius,[`> ${A.antCls}-btn + ${A.antCls}-btn`]:{marginInlineStart:A.marginXS}},[`${e}-open`]:{overflow:"hidden"}})},{[`${e}-pure-panel`]:{top:"auto",padding:0,display:"flex",flexDirection:"column",[`${e}-content,\n ${e}-body,\n ${e}-confirm-body-wrapper`]:{display:"flex",flexDirection:"column",flex:"auto"},[`${e}-confirm-body`]:{marginBottom:"auto"}}}]},sk=A=>{const{componentCls:e}=A;return{[`${e}-root`]:{[`${e}-wrap-rtl`]:{direction:"rtl",[`${e}-confirm-body`]:{direction:"rtl"}}}}},lk=A=>{const e=A.padding,t=A.fontSizeHeading5,n=A.lineHeightHeading5;return Pf(A,{modalHeaderHeight:A.calc(A.calc(n).mul(t).equal()).add(A.calc(e).mul(2).equal()).equal(),modalFooterBorderColorSplit:A.colorSplit,modalFooterBorderStyle:A.lineType,modalFooterBorderWidth:A.lineWidth,modalCloseIconColor:A.colorIcon,modalCloseIconHoverColor:A.colorIconHover,modalCloseBtnSize:A.controlHeight,modalConfirmIconSize:A.fontHeight,modalTitleHeight:A.calc(A.titleFontSize).mul(A.titleLineHeight).equal()})},gk=A=>({footerBg:"transparent",headerBg:A.colorBgElevated,titleLineHeight:A.lineHeightHeading5,titleFontSize:A.fontSizeHeading5,contentBg:A.colorBgElevated,titleColor:A.colorTextHeading,contentPadding:A.wireframe?0:`${UE(A.paddingMD)} ${UE(A.paddingContentHorizontalLG)}`,headerPadding:A.wireframe?`${UE(A.padding)} ${UE(A.paddingLG)}`:0,headerBorderBottom:A.wireframe?`${UE(A.lineWidth)} ${A.lineType} ${A.colorSplit}`:"none",headerMarginBottom:A.wireframe?0:A.marginXS,bodyPadding:A.wireframe?A.paddingLG:0,footerPadding:A.wireframe?`${UE(A.paddingXS)} ${UE(A.padding)}`:0,footerBorderTop:A.wireframe?`${UE(A.lineWidth)} ${A.lineType} ${A.colorSplit}`:"none",footerBorderRadius:A.wireframe?`0 0 ${UE(A.borderRadiusLG)} ${UE(A.borderRadiusLG)}`:0,footerMarginTop:A.wireframe?0:A.marginSM,confirmBodyPadding:A.wireframe?`${UE(2*A.padding)} ${UE(2*A.padding)} ${UE(A.paddingLG)}`:0,confirmIconMarginInlineEnd:A.wireframe?A.margin:A.marginSM,confirmBtnsMarginTop:A.wireframe?A.marginLG:A.marginSM}),ck=jf("Modal",(A=>{const e=lk(A);return[ak(e),sk(e),ik(e),ok(e,"zoom")]}),gk,{unitless:{titleLineHeight:!0}});let uk;const Bk=A=>{uk={x:A.pageX,y:A.pageY},setTimeout((()=>{uk=null}),100)};ZQ()&&window.document.documentElement&&document.documentElement.addEventListener("click",Bk,!0);const Qk=A=>{var e;const{getPopupContainer:t,getPrefixCls:n,direction:o,modal:r}=J.useContext(Xp),i=e=>{const{onCancel:t}=A;null==t||t(e)},{prefixCls:a,className:s,rootClassName:l,open:g,wrapClassName:c,centered:u,getContainer:B,focusTriggerAfterClose:Q=!0,style:E,visible:C,width:d=520,footer:I,classNames:p,styles:f}=A,h=function(A,e){var t={};for(var n in A)Object.prototype.hasOwnProperty.call(A,n)&&e.indexOf(n)<0&&(t[n]=A[n]);if(null!=A&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(n=Object.getOwnPropertySymbols(A);o{const{onOk:t}=A;null==t||t(e)},onCancel:i})),[x,S]=_y(qy(A),qy(r),{closable:!0,closeIcon:J.createElement(mw,{className:`${w}-close-icon`}),closeIconRender:A=>Iv(w,A)}),F=Ev(`.${w}-content`),[N,R]=mD("Modal",h.zIndex);return y(J.createElement(mm,null,J.createElement(cv,{status:!0,override:!0},J.createElement(pD.Provider,{value:R},J.createElement(jy,Object.assign({width:d},h,{zIndex:N,getContainer:void 0===B?t:B,prefixCls:w,rootClassName:ud(b,l,v,m),footer:M,visible:null!=g?g:C,mousePosition:null!==(e=h.mousePosition)&&void 0!==e?e:uk,onClose:i,closable:x,closeIcon:S,focusTriggerAfterClose:Q,transitionName:rm(D,"zoom",A.transitionName),maskTransitionName:rm(D,"fade",A.maskTransitionName),className:ud(b,s,null==r?void 0:r.className),style:Object.assign(Object.assign({},null==r?void 0:r.style),E),classNames:Object.assign(Object.assign(Object.assign({},null==r?void 0:r.classNames),p),{wrapper:ud(k,null==p?void 0:p.wrapper)}),styles:Object.assign(Object.assign({},null==r?void 0:r.styles),f),panelRef:F}))))))},Ek=A=>{const{componentCls:e,titleFontSize:t,titleLineHeight:n,modalConfirmIconSize:o,fontSize:r,lineHeight:i,modalTitleHeight:a,fontHeight:s,confirmBodyPadding:l}=A,g=`${e}-confirm`;return{[g]:{"&-rtl":{direction:"rtl"},[`${A.antCls}-modal-header`]:{display:"none"},[`${g}-body-wrapper`]:Object.assign({},{"&::before":{display:"table",content:'""'},"&::after":{display:"table",clear:"both",content:'""'}}),[`&${e} ${e}-body`]:{padding:l},[`${g}-body`]:{display:"flex",flexWrap:"nowrap",alignItems:"start",[`> ${A.iconCls}`]:{flex:"none",fontSize:o,marginInlineEnd:A.confirmIconMarginInlineEnd,marginTop:A.calc(A.calc(s).sub(o).equal()).div(2).equal()},[`&-has-title > ${A.iconCls}`]:{marginTop:A.calc(A.calc(a).sub(o).equal()).div(2).equal()}},[`${g}-paragraph`]:{display:"flex",flexDirection:"column",flex:"auto",rowGap:A.marginXS},[`${A.iconCls} + ${g}-paragraph`]:{maxWidth:`calc(100% - ${UE(A.calc(A.modalConfirmIconSize).add(A.marginSM).equal())})`},[`${g}-title`]:{color:A.colorTextHeading,fontWeight:A.fontWeightStrong,fontSize:t,lineHeight:n},[`${g}-content`]:{color:A.colorText,fontSize:r,lineHeight:i},[`${g}-btns`]:{textAlign:"end",marginTop:A.confirmBtnsMarginTop,[`${A.antCls}-btn + ${A.antCls}-btn`]:{marginBottom:0,marginInlineStart:A.marginXS}}},[`${g}-error ${g}-body > ${A.iconCls}`]:{color:A.colorError},[`${g}-warning ${g}-body > ${A.iconCls},\n ${g}-confirm ${g}-body > ${A.iconCls}`]:{color:A.colorWarning},[`${g}-info ${g}-body > ${A.iconCls}`]:{color:A.colorInfo},[`${g}-success ${g}-body > ${A.iconCls}`]:{color:A.colorSuccess}}},Ck=Tf(["Modal","confirm"],(A=>{const e=lk(A);return[Ek(e)]}),gk,{order:-1e3});function dk(A){const{prefixCls:e,icon:t,okText:n,cancelText:o,confirmPrefixCls:r,type:i,okCancel:a,footer:s,locale:l}=A,g=function(A,e){var t={};for(var n in A)Object.prototype.hasOwnProperty.call(A,n)&&e.indexOf(n)<0&&(t[n]=A[n]);if(null!=A&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(n=Object.getOwnPropertySymbols(A);oI),XQ(Object.values(I))),f=J.createElement(J.Fragment,null,J.createElement(wy,null),J.createElement(Dy,null)),h=void 0!==A.title&&null!==A.title,w=`${r}-body`;return J.createElement("div",{className:`${r}-body-wrapper`},J.createElement("div",{className:ud(w,{[`${w}-has-title`]:h})},c,J.createElement("div",{className:`${r}-paragraph`},h&&J.createElement("span",{className:`${r}-title`},A.title),J.createElement("div",{className:`${r}-content`},A.content))),void 0===s||"function"==typeof s?J.createElement(hy,{value:p},J.createElement("div",{className:`${r}-btns`},"function"==typeof s?s(f,{OkBtn:Dy,CancelBtn:wy}):f)):s,J.createElement(Ck,{prefixCls:e}))}const Ik=A=>{const{close:e,zIndex:t,afterClose:n,open:o,keyboard:r,centered:i,getContainer:a,maskStyle:s,direction:l,prefixCls:g,wrapClassName:c,rootPrefixCls:u,bodyStyle:B,closable:Q=!1,closeIcon:E,modalRender:C,focusTriggerAfterClose:d,onConfirm:I,styles:p}=A,f=`${g}-confirm`,h=A.width||416,w=A.style||{},D=void 0===A.mask||A.mask,m=void 0!==A.maskClosable&&A.maskClosable,y=ud(f,`${f}-${A.type}`,{[`${f}-rtl`]:"rtl"===l},A.className),[,b]=Cf(),v=J.useMemo((()=>void 0!==t?t:b.zIndexPopupBase+hD),[t,b]);return J.createElement(Qk,{prefixCls:g,className:y,wrapClassName:ud({[`${f}-centered`]:!!A.centered},c),onCancel:()=>{null==e||e({triggerCancel:!0}),null==I||I(!1)},open:o,title:"",footer:null,transitionName:rm(u||"","zoom",A.transitionName),maskTransitionName:rm(u||"","fade",A.maskTransitionName),mask:D,maskClosable:m,style:w,styles:Object.assign({body:B,mask:s},p),width:h,zIndex:v,afterClose:n,keyboard:r,centered:i,getContainer:a,closable:Q,closeIcon:E,modalRender:C,focusTriggerAfterClose:d},J.createElement(dk,Object.assign({},A,{confirmPrefixCls:f})))},pk=A=>{const{rootPrefixCls:e,iconPrefixCls:t,direction:n,theme:o}=A;return J.createElement(tw,{prefixCls:e,iconPrefixCls:t,direction:n,theme:o},J.createElement(Ik,Object.assign({},A)))},fk=[];let hk="";function wk(){return hk}const Dk=A=>{var e,t;const{prefixCls:n,getContainer:o,direction:r}=A,i=zI(),a=J.useContext(Xp),s=wk()||a.getPrefixCls(),l=n||`${s}-modal`;let g=o;return!1===g&&(g=void 0),j.createElement(pk,Object.assign({},A,{rootPrefixCls:s,prefixCls:l,iconPrefixCls:a.iconPrefixCls,theme:a.theme,direction:null!=r?r:a.direction,locale:null!==(t=null===(e=a.locale)||void 0===e?void 0:e.Modal)&&void 0!==t?t:i,getContainer:g}))};function mk(A){const e=Zh(),t=document.createDocumentFragment();let n,o=Object.assign(Object.assign({},A),{close:a,open:!0});function r(){for(var e=arguments.length,n=new Array(e),o=0;oA&&A.triggerCancel));A.onCancel&&r&&A.onCancel.apply(A,[()=>{}].concat(XQ(n.slice(1))));for(let A=0;A{const n=e.getPrefixCls(void 0,wk()),o=e.getIconPrefixCls(),r=e.getTheme(),i=j.createElement(Dk,Object.assign({},A));zD(j.createElement(tw,{prefixCls:n,iconPrefixCls:o,theme:r},e.holderRender?e.holderRender(i):i),t)}))}function a(){for(var e=arguments.length,t=new Array(e),n=0;n{"function"==typeof A.afterClose&&A.afterClose(),r.apply(this,t)}}),o.visible&&delete o.visible,i(o)}return i(o),fk.push(a),{destroy:a,update:function(A){o="function"==typeof A?A(o):Object.assign(Object.assign({},o),A),i(o)}}}function yk(A){return Object.assign(Object.assign({},A),{type:"warning"})}function bk(A){return Object.assign(Object.assign({},A),{type:"info"})}function vk(A){return Object.assign(Object.assign({},A),{type:"success"})}function kk(A){return Object.assign(Object.assign({},A),{type:"error"})}function Mk(A){return Object.assign(Object.assign({},A),{type:"confirm"})}const xk=(A,e)=>{var t,{afterClose:n,config:o}=A,r=function(A,e){var t={};for(var n in A)Object.prototype.hasOwnProperty.call(A,n)&&e.indexOf(n)<0&&(t[n]=A[n]);if(null!=A&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(n=Object.getOwnPropertySymbols(A);oA&&A.triggerCancel));s.onCancel&&n&&s.onCancel.apply(s,[()=>{}].concat(XQ(e.slice(1))))};J.useImperativeHandle(e,(()=>({destroy:Q,update:A=>{l((e=>Object.assign(Object.assign({},e),A)))}})));const E=null!==(t=s.okCancel)&&void 0!==t?t:"confirm"===s.type,[C]=_I("Modal",JI.Modal);return J.createElement(pk,Object.assign({prefixCls:u,rootPrefixCls:B},s,{close:Q,open:i,afterClose:()=>{var A;n(),null===(A=s.afterClose)||void 0===A||A.call(s)},okText:s.okText||(E?null==C?void 0:C.okText:null==C?void 0:C.justOkText),direction:s.direction||g,cancelText:s.cancelText||(null==C?void 0:C.cancelText)},r))},Sk=J.forwardRef(xk);let Fk=0;const Nk=J.memo(J.forwardRef(((A,e)=>{const[t,n]=function(){const[A,e]=J.useState([]);return[A,J.useCallback((A=>(e((e=>[].concat(XQ(e),[A]))),()=>{e((e=>e.filter((e=>e!==A))))})),[])]}();return J.useImperativeHandle(e,(()=>({patchElement:n})),[]),J.createElement(J.Fragment,null,t)})));function Rk(){const A=J.useRef(null),[e,t]=J.useState([]);J.useEffect((()=>{if(e.length){XQ(e).forEach((A=>{A()})),t([])}}),[e]);const n=J.useCallback((e=>function(n){var o;Fk+=1;const r=J.createRef();let i;const a=new Promise((A=>{i=A}));let s,l=!1;const g=J.createElement(Sk,{key:`modal-${Fk}`,config:e(n),ref:r,afterClose:()=>{null==s||s()},isSilent:()=>l,onConfirm:A=>{i(A)}});s=null===(o=A.current)||void 0===o?void 0:o.patchElement(g),s&&fk.push(s);return{destroy:()=>{function A(){var A;null===(A=r.current)||void 0===A||A.destroy()}r.current?A():t((e=>[].concat(XQ(e),[A])))},update:A=>{function e(){var e;null===(e=r.current)||void 0===e||e.update(A)}r.current?e():t((A=>[].concat(XQ(A),[e])))},then:A=>(l=!0,a.then(A))}}),[]);return[J.useMemo((()=>({info:n(bk),success:n(vk),error:n(kk),warning:n(yk),confirm:n(Mk)})),[]),J.createElement(Nk,{key:"modal-holder",ref:A})]}const Lk=A=>{const{componentCls:e,notificationMarginEdge:t,animationMaxHeight:n}=A,o=`${e}-notice`,r=new ad("antNotificationFadeIn",{"0%":{transform:"translate3d(100%, 0, 0)",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",opacity:1}}),i=new ad("antNotificationTopFadeIn",{"0%":{top:-n,opacity:0},"100%":{top:0,opacity:1}}),a=new ad("antNotificationBottomFadeIn",{"0%":{bottom:A.calc(n).mul(-1).equal(),opacity:0},"100%":{bottom:0,opacity:1}}),s=new ad("antNotificationLeftFadeIn",{"0%":{transform:"translate3d(-100%, 0, 0)",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",opacity:1}});return{[e]:{[`&${e}-top, &${e}-bottom`]:{marginInline:0,[o]:{marginInline:"auto auto"}},[`&${e}-top`]:{[`${e}-fade-enter${e}-fade-enter-active, ${e}-fade-appear${e}-fade-appear-active`]:{animationName:i}},[`&${e}-bottom`]:{[`${e}-fade-enter${e}-fade-enter-active, ${e}-fade-appear${e}-fade-appear-active`]:{animationName:a}},[`&${e}-topRight, &${e}-bottomRight`]:{[`${e}-fade-enter${e}-fade-enter-active, ${e}-fade-appear${e}-fade-appear-active`]:{animationName:r}},[`&${e}-topLeft, &${e}-bottomLeft`]:{marginRight:{value:0,_skip_check_:!0},marginLeft:{value:t,_skip_check_:!0},[o]:{marginInlineEnd:"auto",marginInlineStart:0},[`${e}-fade-enter${e}-fade-enter-active, ${e}-fade-appear${e}-fade-appear-active`]:{animationName:s}}}}},Pk=["top","topLeft","topRight","bottom","bottomLeft","bottomRight"],Hk={topLeft:"left",topRight:"right",bottomLeft:"left",bottomRight:"right",top:"left",bottom:"left"},Gk=A=>{const e={};for(let t=1;t ${A.componentCls}-notice`]:{opacity:0,transition:`opacity ${A.motionDurationMid}`}};return Object.assign({[`&:not(:nth-last-child(-n+${A.notificationStackLayer}))`]:{opacity:0,overflow:"hidden",color:"transparent",pointerEvents:"none"}},e)},Ok=A=>{const e={};for(let t=1;t{const{componentCls:e}=A;return Object.assign({[`${e}-stack`]:{[`& > ${e}-notice-wrapper`]:Object.assign({transition:`all ${A.motionDurationSlow}, backdrop-filter 0s`,position:"absolute"},Gk(A))},[`${e}-stack:not(${e}-stack-expanded)`]:{[`& > ${e}-notice-wrapper`]:Object.assign({},Ok(A))},[`${e}-stack${e}-stack-expanded`]:{[`& > ${e}-notice-wrapper`]:{"&:not(:nth-last-child(-n + 1))":{opacity:1,overflow:"unset",color:"inherit",pointerEvents:"auto",[`& > ${A.componentCls}-notice`]:{opacity:1}},"&:after":{content:'""',position:"absolute",height:A.margin,width:"100%",insetInline:0,bottom:A.calc(A.margin).mul(-1).equal(),background:"transparent",pointerEvents:"auto"}}}},Pk.map((e=>((A,e)=>{const{componentCls:t}=A;return{[`${t}-${e}`]:{[`&${t}-stack > ${t}-notice-wrapper`]:{[e.startsWith("top")?"top":"bottom"]:0,[Hk[e]]:{value:0,_skip_check_:!0}}}}})(A,e))).reduce(((A,e)=>Object.assign(Object.assign({},A),e)),{}))},Kk=A=>{const{iconCls:e,componentCls:t,boxShadow:n,fontSizeLG:o,notificationMarginBottom:r,borderRadiusLG:i,colorSuccess:a,colorInfo:s,colorWarning:l,colorError:g,colorTextHeading:c,notificationBg:u,notificationPadding:B,notificationMarginEdge:Q,fontSize:E,lineHeight:C,width:d,notificationIconSize:I,colorText:p}=A,f=`${t}-notice`;return{position:"relative",marginBottom:r,marginInlineStart:"auto",background:u,borderRadius:i,boxShadow:n,[f]:{padding:B,width:d,maxWidth:`calc(100vw - ${UE(A.calc(Q).mul(2).equal())})`,overflow:"hidden",lineHeight:C,wordWrap:"break-word"},[`${f}-message`]:{marginBottom:A.marginXS,color:c,fontSize:o,lineHeight:A.lineHeightLG},[`${f}-description`]:{fontSize:E,color:p},[`${f}-closable ${f}-message`]:{paddingInlineEnd:A.paddingLG},[`${f}-with-icon ${f}-message`]:{marginBottom:A.marginXS,marginInlineStart:A.calc(A.marginSM).add(I).equal(),fontSize:o},[`${f}-with-icon ${f}-description`]:{marginInlineStart:A.calc(A.marginSM).add(I).equal(),fontSize:E},[`${f}-icon`]:{position:"absolute",fontSize:I,lineHeight:1,[`&-success${e}`]:{color:a},[`&-info${e}`]:{color:s},[`&-warning${e}`]:{color:l},[`&-error${e}`]:{color:g}},[`${f}-close`]:Object.assign({position:"absolute",top:A.notificationPaddingVertical,insetInlineEnd:A.notificationPaddingHorizontal,color:A.colorIcon,outline:"none",width:A.notificationCloseButtonSize,height:A.notificationCloseButtonSize,borderRadius:A.borderRadiusSM,transition:`background-color ${A.motionDurationMid}, color ${A.motionDurationMid}`,display:"flex",alignItems:"center",justifyContent:"center","&:hover":{color:A.colorIconHover,backgroundColor:A.colorBgTextHover},"&:active":{backgroundColor:A.colorBgTextActive}},Nf(A)),[`${f}-btn`]:{float:"right",marginTop:A.marginSM}}},Yk=A=>{const{componentCls:e,notificationMarginBottom:t,notificationMarginEdge:n,motionDurationMid:o,motionEaseInOut:r}=A,i=`${e}-notice`,a=new ad("antNotificationFadeOut",{"0%":{maxHeight:A.animationMaxHeight,marginBottom:t},"100%":{maxHeight:0,marginBottom:0,paddingTop:0,paddingBottom:0,opacity:0}});return[{[e]:Object.assign(Object.assign({},Mf(A)),{position:"fixed",zIndex:A.zIndexPopup,marginRight:{value:n,_skip_check_:!0},[`${e}-hook-holder`]:{position:"relative"},[`${e}-fade-appear-prepare`]:{opacity:"0 !important"},[`${e}-fade-enter, ${e}-fade-appear`]:{animationDuration:A.motionDurationMid,animationTimingFunction:r,animationFillMode:"both",opacity:0,animationPlayState:"paused"},[`${e}-fade-leave`]:{animationTimingFunction:r,animationFillMode:"both",animationDuration:o,animationPlayState:"paused"},[`${e}-fade-enter${e}-fade-enter-active, ${e}-fade-appear${e}-fade-appear-active`]:{animationPlayState:"running"},[`${e}-fade-leave${e}-fade-leave-active`]:{animationName:a,animationPlayState:"running"},"&-rtl":{direction:"rtl",[`${i}-btn`]:{float:"left"}}})},{[e]:{[`${i}-wrapper`]:Object.assign({},Kk(A))}}]},Tk=A=>({zIndexPopup:A.zIndexPopupBase+hD+50,width:384}),Jk=A=>{const e=A.paddingMD,t=A.paddingLG;return Pf(A,{notificationBg:A.colorBgElevated,notificationPaddingVertical:e,notificationPaddingHorizontal:t,notificationIconSize:A.calc(A.fontSizeLG).mul(A.lineHeightLG).equal(),notificationCloseButtonSize:A.calc(A.controlHeightLG).mul(.55).equal(),notificationMarginBottom:A.margin,notificationPadding:`${UE(A.paddingMD)} ${UE(A.paddingContentHorizontalLG)}`,notificationMarginEdge:A.marginLG,animationMaxHeight:150,notificationStackLayer:3})},jk=jf("Notification",(A=>{const e=Jk(A);return[Yk(e),Lk(e),Uk(e)]}),Tk),qk=Tf(["Notification","PurePanel"],(A=>{const e=`${A.componentCls}-notice`,t=Jk(A);return{[`${e}-pure-panel`]:Object.assign(Object.assign({},Kk(t)),{width:t.width,maxWidth:`calc(100vw - ${UE(A.calc(t.notificationMarginEdge).mul(2).equal())})`,margin:0})}}),Tk);function $k(A,e){return null===e||!1===e?null:e||J.createElement(mw,{className:`${A}-close-icon`})}const zk={success:Iw,info:xw,error:hw,warning:vw},Wk=A=>{const{prefixCls:e,icon:t,type:n,message:o,description:r,btn:i,role:a="alert"}=A;let s=null;return t?s=J.createElement("span",{className:`${e}-icon`},t):n&&(s=J.createElement(zk[n]||null,{className:ud(`${e}-icon`,`${e}-icon-${n}`)})),J.createElement("div",{className:ud({[`${e}-with-icon`]:s}),role:a},s,J.createElement("div",{className:`${e}-message`},o),J.createElement("div",{className:`${e}-description`},r),i&&J.createElement("div",{className:`${e}-btn`},i))};var _k=function(A,e){var t={};for(var n in A)Object.prototype.hasOwnProperty.call(A,n)&&e.indexOf(n)<0&&(t[n]=A[n]);if(null!=A&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(n=Object.getOwnPropertySymbols(A);o{let{children:e,prefixCls:t}=A;const n=oD(t),[o,r,i]=jk(t,n);return o(j.createElement(sD,{classNames:{list:ud(r,i,n)}},e))},Zk=(A,e)=>{let{prefixCls:t,key:n}=e;return j.createElement(Vk,{prefixCls:t,key:n},A)},AM=j.forwardRef(((A,e)=>{const{top:t,bottom:n,prefixCls:o,getContainer:r,maxCount:i,rtl:a,onAllRemoved:s,stack:l,duration:g}=A,{getPrefixCls:c,getPopupContainer:u,notification:B,direction:Q}=J.useContext(Xp),[,E]=Cf(),C=o||c("notification"),[d,I]=ED({prefixCls:C,style:A=>function(A,e,t){let n;switch(A){case"top":n={left:"50%",transform:"translateX(-50%)",right:"auto",top:e,bottom:"auto"};break;case"topLeft":n={left:0,top:e,bottom:"auto"};break;case"topRight":n={right:0,top:e,bottom:"auto"};break;case"bottom":n={left:"50%",transform:"translateX(-50%)",right:"auto",top:"auto",bottom:t};break;case"bottomLeft":n={left:0,top:"auto",bottom:t};break;default:n={right:0,top:"auto",bottom:t}}return n}(A,null!=t?t:24,null!=n?n:24),className:()=>ud({[`${C}-rtl`]:null!=a?a:"rtl"===Q}),motion:()=>function(A){return{motionName:`${A}-fade`}}(C),closable:!0,closeIcon:$k(C),duration:null!=g?g:4.5,getContainer:()=>(null==r?void 0:r())||(null==u?void 0:u())||document.body,maxCount:i,onAllRemoved:s,renderNotifications:Zk,stack:!1!==l&&{threshold:"object"==typeof l?null==l?void 0:l.threshold:void 0,offset:8,gap:E.margin}});return j.useImperativeHandle(e,(()=>Object.assign(Object.assign({},d),{prefixCls:C,notification:B}))),I}));function eM(A){const e=j.useRef(null);OI();return[j.useMemo((()=>{const t=t=>{var n;if(!e.current)return;const{open:o,prefixCls:r,notification:i}=e.current,a=`${r}-notice`,{message:s,description:l,icon:g,type:c,btn:u,className:B,style:Q,role:E="alert",closeIcon:C,closable:d}=t,I=_k(t,["message","description","icon","type","btn","className","style","role","closeIcon","closable"]),p=$k(a,void 0!==C?C:null==i?void 0:i.closeIcon);return o(Object.assign(Object.assign({placement:null!==(n=null==A?void 0:A.placement)&&void 0!==n?n:Xk},I),{content:j.createElement(Wk,{prefixCls:a,icon:g,type:c,message:s,description:l,btn:u,role:E}),className:ud(c&&`${a}-${c}`,B,null==i?void 0:i.className),style:Object.assign(Object.assign({},null==i?void 0:i.style),Q),closeIcon:p,closable:null!=d?d:!!p}))},n={open:t,destroy:A=>{var t,n;void 0!==A?null===(t=e.current)||void 0===t||t.close(A):null===(n=e.current)||void 0===n||n.destroy()}};return["success","info","warning","error"].forEach((A=>{n[A]=e=>t(Object.assign(Object.assign({},e),{type:A}))})),n}),[]),j.createElement(AM,Object.assign({key:"notification-holder"},A,{ref:e}))]}function tM(A){return eM(A)}const nM=j.createContext({}),oM=j.createContext({message:{},notification:{},modal:{}}),rM=jf("App",(A=>{const{componentCls:e,colorText:t,fontSize:n,lineHeight:o,fontFamily:r}=A;return{[e]:{color:t,fontSize:n,lineHeight:o,fontFamily:r}}}),(()=>({}))),iM=A=>{const{prefixCls:e,children:t,className:n,rootClassName:o,message:r,notification:i,style:a,component:s="div"}=A,{getPrefixCls:l}=J.useContext(Xp),g=l("app",e),[c,u,B]=rM(g),Q=ud(u,g,n,o,B),E=J.useContext(nM),C=j.useMemo((()=>({message:Object.assign(Object.assign({},E.message),r),notification:Object.assign(Object.assign({},E.notification),i)})),[r,i,E.message,E.notification]),[d,I]=HD(C.message),[p,f]=tM(C.notification),[h,w]=Rk(),D=j.useMemo((()=>({message:d,notification:p,modal:h})),[d,p,h]),m=!1===s?j.Fragment:s,y={className:Q,style:a};return c(j.createElement(oM.Provider,{value:D},j.createElement(nM.Provider,{value:C},j.createElement(m,Object.assign({},!1===s?void 0:y),w,I,f,t))))};function aM(A){return e=>J.createElement(tw,{theme:{token:{motion:!1,zIndexPopupBase:0}}},J.createElement(A,Object.assign({},e)))}iM.useApp=()=>j.useContext(oM);const sM=function(){if("undefined"==typeof navigator||"undefined"==typeof window)return!1;var A=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(A)||/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==A?void 0:A.substr(0,4))};var lM=function(A){var e=A.className,t=A.customizeIcon,n=A.customizeIconProps,o=A.children,r=A.onMouseDown,i=A.onClick,a="function"==typeof t?t(n):t;return J.createElement("span",{className:e,onMouseDown:function(A){A.preventDefault(),null==r||r(A)},style:{userSelect:"none",WebkitUserSelect:"none"},unselectable:"on",onClick:i,"aria-hidden":!0},void 0!==a?a:J.createElement("span",{className:ud(e.split(/\s+/).map((function(A){return"".concat(A,"-icon")})))},o))},gM=J.createContext(null);function cM(){var A=arguments.length>0&&void 0!==arguments[0]?arguments[0]:250,e=J.useRef(null),t=J.useRef(null);return J.useEffect((function(){return function(){window.clearTimeout(t.current)}}),[]),[function(){return e.current},function(n){(n||null===e.current)&&(e.current=n),window.clearTimeout(t.current),t.current=window.setTimeout((function(){e.current=null}),A)}]}var uM=["prefixCls","invalidate","item","renderItem","responsive","responsiveDisabled","registerSize","itemKey","className","style","children","display","order","component"],BM=void 0;function QM(A,e){var t=A.prefixCls,n=A.invalidate,o=A.item,r=A.renderItem,i=A.responsive,a=A.responsiveDisabled,s=A.registerSize,l=A.itemKey,g=A.className,c=A.style,u=A.children,B=A.display,Q=A.order,E=A.component,C=void 0===E?"div":E,d=Mc(A,uM),I=i&&!B;function p(A){s(l,A)}J.useEffect((function(){return function(){p(null)}}),[]);var f,h=r&&o!==BM?r(o):u;n||(f={opacity:I?0:1,height:I?0:BM,overflowY:I?"hidden":BM,order:i?Q:BM,pointerEvents:I?"none":BM,position:I?"absolute":BM});var w={};I&&(w["aria-hidden"]=!0);var D=J.createElement(C,BQ({className:ud(!n&&t,g),style:kc(kc({},f),c)},w,d,{ref:e}),h);return i&&(D=J.createElement(hI,{onResize:function(A){p(A.offsetWidth)},disabled:a},D)),D}var EM=J.forwardRef(QM);function CM(){var A=J.useRef(null);return function(e){A.current||(A.current=[],function(A){if("undefined"==typeof MessageChannel)kI(A);else{var e=new MessageChannel;e.port1.onmessage=function(){return A()},e.port2.postMessage(void 0)}}((function(){pc.unstable_batchedUpdates((function(){A.current.forEach((function(A){A()})),A.current=null}))}))),A.current.push(e)}}function dM(A,e){var t=WQ(J.useState(e),2),n=t[0],o=t[1];return[n,mf((function(e){A((function(){o(e)}))}))]}EM.displayName="Item";var IM=j.createContext(null),pM=["component"],fM=["className"],hM=["className"],wM=function(A,e){var t=J.useContext(IM);if(!t){var n=A.component,o=void 0===n?"div":n,r=Mc(A,pM);return J.createElement(o,BQ({},r,{ref:e}))}var i=t.className,a=Mc(t,fM),s=A.className,l=Mc(A,hM);return J.createElement(IM.Provider,{value:null},J.createElement(EM,BQ({ref:e,className:ud(i,s)},a,l)))},DM=J.forwardRef(wM);DM.displayName="RawItem";var mM=["prefixCls","data","renderItem","renderRawItem","itemKey","itemWidth","ssr","style","className","maxCount","renderRest","renderRawRest","suffix","component","itemComponent","onVisibleChange"],yM="responsive",bM="invalidate";function vM(A){return"+ ".concat(A.length," ...")}function kM(A,e){var t=A.prefixCls,n=void 0===t?"rc-overflow":t,o=A.data,r=void 0===o?[]:o,i=A.renderItem,a=A.renderRawItem,s=A.itemKey,l=A.itemWidth,g=void 0===l?10:l,c=A.ssr,u=A.style,B=A.className,Q=A.maxCount,E=A.renderRest,C=A.renderRawRest,d=A.suffix,I=A.component,p=void 0===I?"div":I,f=A.itemComponent,h=A.onVisibleChange,w=Mc(A,mM),D="full"===c,m=CM(),y=WQ(dM(m,null),2),b=y[0],v=y[1],k=b||0,M=WQ(dM(m,new Map),2),x=M[0],S=M[1],F=WQ(dM(m,0),2),N=F[0],R=F[1],L=WQ(dM(m,0),2),P=L[0],H=L[1],G=WQ(dM(m,0),2),O=G[0],U=G[1],K=WQ(J.useState(null),2),Y=K[0],T=K[1],j=WQ(J.useState(null),2),q=j[0],$=j[1],z=J.useMemo((function(){return null===q&&D?Number.MAX_SAFE_INTEGER:q||0}),[q,b]),W=WQ(J.useState(!1),2),_=W[0],X=W[1],V="".concat(n,"-item"),Z=Math.max(N,P),AA=Q===yM,eA=r.length&&AA,tA=Q===bM,nA=eA||"number"==typeof Q&&r.length>Q,oA=J.useMemo((function(){var A=r;return eA?A=null===b&&D?r:r.slice(0,Math.min(r.length,k/g)):"number"==typeof Q&&(A=r.slice(0,Q)),A}),[r,g,b,Q,eA]),rA=J.useMemo((function(){return eA?r.slice(z+1):r.slice(oA.length)}),[r,oA,eA,z]),iA=J.useCallback((function(A,e){var t;return"function"==typeof s?s(A):null!==(t=s&&(null==A?void 0:A[s]))&&void 0!==t?t:e}),[s]),aA=J.useCallback(i||function(A){return A},[i]);function sA(A,e,t){(q!==A||void 0!==e&&e!==Y)&&($(A),t||(X(Ak){sA(n-1,A-o-O+P);break}}d&&gA(0)+O>k&&T(null)}}),[k,x,P,O,iA,oA]);var cA=_&&!!rA.length,uA={};null!==Y&&eA&&(uA={position:"absolute",left:Y,top:0});var BA,QA={prefixCls:V,responsive:eA,component:f,invalidate:tA},EA=a?function(A,e){var t=iA(A,e);return J.createElement(IM.Provider,{key:t,value:kc(kc({},QA),{},{order:e,item:A,itemKey:t,registerSize:lA,display:e<=z})},a(A,e))}:function(A,e){var t=iA(A,e);return J.createElement(EM,BQ({},QA,{order:e,key:t,item:A,renderItem:aA,itemKey:t,registerSize:lA,display:e<=z}))},CA={order:cA?z:Number.MAX_SAFE_INTEGER,className:"".concat(V,"-rest"),registerSize:function(A,e){H(e),R(P)},display:cA};if(C)C&&(BA=J.createElement(IM.Provider,{value:kc(kc({},QA),CA)},C(rA)));else{var dA=E||vM;BA=J.createElement(EM,BQ({},QA,CA),"function"==typeof dA?dA(rA):dA)}var IA=J.createElement(p,BQ({className:ud(!tA&&n,B),style:u,ref:e},w),oA.map(EA),nA?BA:null,d&&J.createElement(EM,BQ({},QA,{responsive:AA,responsiveDisabled:!eA,order:z,className:"".concat(V,"-suffix"),registerSize:function(A,e){U(e)},display:!0,style:uA}),d));return AA&&(IA=J.createElement(hI,{onResize:function(A,e){v(e.clientWidth)},disabled:!eA},IA)),IA}var MM=J.forwardRef(kM);MM.displayName="Overflow",MM.Item=DM,MM.RESPONSIVE=yM,MM.INVALIDATE=bM;var xM=function(A,e){var t,n=A.prefixCls,o=A.id,r=A.inputElement,i=A.disabled,a=A.tabIndex,s=A.autoFocus,l=A.autoComplete,g=A.editable,c=A.activeDescendantId,u=A.value,B=A.maxLength,Q=A.onKeyDown,E=A.onMouseDown,C=A.onChange,d=A.onPaste,I=A.onCompositionStart,p=A.onCompositionEnd,f=A.open,h=A.attrs,w=r||J.createElement("input",null),D=w,m=D.ref,y=D.props,b=y.onKeyDown,v=y.onChange,k=y.onMouseDown,M=y.onCompositionStart,x=y.onCompositionEnd,S=y.style;return w.props,w=J.cloneElement(w,kc(kc(kc({type:"search"},y),{},{id:o,ref:Pd(e,m),disabled:i,tabIndex:a,autoComplete:l||"off",autoFocus:s,className:ud("".concat(n,"-selection-search-input"),null===(t=w)||void 0===t||null===(t=t.props)||void 0===t?void 0:t.className),role:"combobox","aria-expanded":f||!1,"aria-haspopup":"listbox","aria-owns":"".concat(o,"_list"),"aria-autocomplete":"list","aria-controls":"".concat(o,"_list"),"aria-activedescendant":f?c:void 0},h),{},{value:g?u:"",maxLength:B,readOnly:!g,unselectable:g?null:"on",style:kc(kc({},S),{},{opacity:g?null:0}),onKeyDown:function(A){Q(A),b&&b(A)},onMouseDown:function(A){E(A),k&&k(A)},onChange:function(A){C(A),v&&v(A)},onCompositionStart:function(A){I(A),M&&M(A)},onCompositionEnd:function(A){p(A),x&&x(A)},onPaste:d}))},SM=J.forwardRef(xM);function FM(A){return Array.isArray(A)?A:void 0!==A?[A]:[]}var NM="undefined"!=typeof window&&window.document&&window.document.documentElement;function RM(A){return["string","number"].includes(mc(A))}function LM(A){var e=void 0;return A&&(RM(A.title)?e=A.title.toString():RM(A.label)&&(e=A.label.toString())),e}function PM(A){var e;return null!==(e=A.key)&&void 0!==e?e:A.value}var HM=function(A){A.preventDefault(),A.stopPropagation()},GM=function(A){var e,t,n=A.id,o=A.prefixCls,r=A.values,i=A.open,a=A.searchValue,s=A.autoClearSearchValue,l=A.inputRef,g=A.placeholder,c=A.disabled,u=A.mode,B=A.showSearch,Q=A.autoFocus,E=A.autoComplete,C=A.activeDescendantId,d=A.tabIndex,I=A.removeIcon,p=A.maxTagCount,f=A.maxTagTextLength,h=A.maxTagPlaceholder,w=void 0===h?function(A){return"+ ".concat(A.length," ...")}:h,D=A.tagRender,m=A.onToggleOpen,y=A.onRemove,b=A.onInputChange,v=A.onInputPaste,k=A.onInputKeyDown,M=A.onInputMouseDown,x=A.onInputCompositionStart,S=A.onInputCompositionEnd,F=J.useRef(null),N=WQ(J.useState(0),2),R=N[0],L=N[1],P=WQ(J.useState(!1),2),H=P[0],G=P[1],O="".concat(o,"-selection"),U=i||"multiple"===u&&!1===s||"tags"===u?a:"",K="tags"===u||"multiple"===u&&!1===s||B&&(i||H);e=function(){L(F.current.scrollWidth)},t=[U],NM?J.useLayoutEffect(e,t):J.useEffect(e,t);var Y=function(A,e,t,n,o){return J.createElement("span",{title:LM(A),className:ud("".concat(O,"-item"),bc({},"".concat(O,"-item-disabled"),t))},J.createElement("span",{className:"".concat(O,"-item-content")},e),n&&J.createElement(lM,{className:"".concat(O,"-item-remove"),onMouseDown:HM,onClick:o,customizeIcon:I},"ร—"))},T=function(A,e,t,n,o,r){return J.createElement("span",{onMouseDown:function(A){HM(A),m(!i)}},D({label:e,value:A,disabled:t,closable:n,onClose:o,isMaxTag:!!r}))},j=J.createElement("div",{className:"".concat(O,"-search"),style:{width:R},onFocus:function(){G(!0)},onBlur:function(){G(!1)}},J.createElement(SM,{ref:l,open:i,prefixCls:o,id:n,inputElement:null,disabled:c,autoFocus:Q,autoComplete:E,editable:K,activeDescendantId:C,value:U,onKeyDown:k,onMouseDown:M,onChange:b,onPaste:v,onCompositionStart:x,onCompositionEnd:S,tabIndex:d,attrs:Lw(A,!0)}),J.createElement("span",{ref:F,className:"".concat(O,"-search-mirror"),"aria-hidden":!0},U,"ย ")),q=J.createElement(MM,{prefixCls:"".concat(O,"-overflow"),data:r,renderItem:function(A){var e=A.disabled,t=A.label,n=A.value,o=!c&&!e,r=t;if("number"==typeof f&&("string"==typeof t||"number"==typeof t)){var i=String(r);i.length>f&&(r="".concat(i.slice(0,f),"..."))}var a=function(e){e&&e.stopPropagation(),y(A)};return"function"==typeof D?T(n,r,e,o,a):Y(A,r,e,o,a)},renderRest:function(A){var e="function"==typeof w?w(A):w;return"function"==typeof D?T(void 0,e,!1,!1,void 0,!0):Y({title:e},e,!1)},suffix:j,itemKey:PM,maxCount:p});return J.createElement(J.Fragment,null,q,!r.length&&!U&&J.createElement("span",{className:"".concat(O,"-placeholder")},g))},OM=function(A){var e=A.inputElement,t=A.prefixCls,n=A.id,o=A.inputRef,r=A.disabled,i=A.autoFocus,a=A.autoComplete,s=A.activeDescendantId,l=A.mode,g=A.open,c=A.values,u=A.placeholder,B=A.tabIndex,Q=A.showSearch,E=A.searchValue,C=A.activeValue,d=A.maxLength,I=A.onInputKeyDown,p=A.onInputMouseDown,f=A.onInputChange,h=A.onInputPaste,w=A.onInputCompositionStart,D=A.onInputCompositionEnd,m=A.title,y=WQ(J.useState(!1),2),b=y[0],v=y[1],k="combobox"===l,M=k||Q,x=c[0],S=E||"";k&&C&&!b&&(S=C),J.useEffect((function(){k&&v(!1)}),[k,C]);var F=!("combobox"!==l&&!g&&!Q)&&!!S,N=void 0===m?LM(x):m,R=J.useMemo((function(){return x?null:J.createElement("span",{className:"".concat(t,"-selection-placeholder"),style:F?{visibility:"hidden"}:void 0},u)}),[x,F,u,t]);return J.createElement(J.Fragment,null,J.createElement("span",{className:"".concat(t,"-selection-search")},J.createElement(SM,{ref:o,prefixCls:t,id:n,open:g,inputElement:e,disabled:r,autoFocus:i,autoComplete:a,editable:M,activeDescendantId:s,value:S,onKeyDown:I,onMouseDown:p,onChange:function(A){v(!0),f(A)},onPaste:h,onCompositionStart:w,onCompositionEnd:D,tabIndex:B,attrs:Lw(A,!0),maxLength:k?d:void 0})),!k&&x?J.createElement("span",{className:"".concat(t,"-selection-item"),title:N,style:F?{visibility:"hidden"}:void 0},x.label):null,R)},UM=function(A,e){var t=J.useRef(null),n=J.useRef(!1),o=A.prefixCls,r=A.open,i=A.mode,a=A.showSearch,s=A.tokenWithEnter,l=A.disabled,g=A.autoClearSearchValue,c=A.onSearch,u=A.onSearchSubmit,B=A.onToggleOpen,Q=A.onInputKeyDown,E=A.domRef;J.useImperativeHandle(e,(function(){return{focus:function(A){t.current.focus(A)},blur:function(){t.current.blur()}}}));var C=WQ(cM(0),2),d=C[0],I=C[1],p=J.useRef(null),f=function(A){!1!==c(A,!0,n.current)&&B(!0)},h={inputRef:t,onInputKeyDown:function(A){var e,t=A.which;t!==rD.UP&&t!==rD.DOWN||A.preventDefault(),Q&&Q(A),t!==rD.ENTER||"tags"!==i||n.current||r||null==u||u(A.target.value),e=t,[rD.ESC,rD.SHIFT,rD.BACKSPACE,rD.TAB,rD.WIN_KEY,rD.ALT,rD.META,rD.WIN_KEY_RIGHT,rD.CTRL,rD.SEMICOLON,rD.EQUALS,rD.CAPS_LOCK,rD.CONTEXT_MENU,rD.F1,rD.F2,rD.F3,rD.F4,rD.F5,rD.F6,rD.F7,rD.F8,rD.F9,rD.F10,rD.F11,rD.F12].includes(e)||B(!0)},onInputMouseDown:function(){I(!0)},onInputChange:function(A){var e=A.target.value;if(s&&p.current&&/[\r\n]/.test(p.current)){var t=p.current.replace(/[\r\n]+$/,"").replace(/\r\n/g," ").replace(/[\r\n]/g," ");e=e.replace(t,p.current)}p.current=null,f(e)},onInputPaste:function(A){var e=A.clipboardData,t=null==e?void 0:e.getData("text");p.current=t||""},onInputCompositionStart:function(){n.current=!0},onInputCompositionEnd:function(A){n.current=!1,"combobox"!==i&&f(A.target.value)}},w="multiple"===i||"tags"===i?J.createElement(GM,BQ({},A,h)):J.createElement(OM,BQ({},A,h));return J.createElement("div",{ref:E,className:"".concat(o,"-selector"),onClick:function(A){A.target!==t.current&&(void 0!==document.body.style.msTouchAction?setTimeout((function(){t.current.focus()})):t.current.focus())},onMouseDown:function(A){var e=d();A.target===t.current||e||"combobox"===i&&l||A.preventDefault(),("combobox"===i||a&&e)&&r||(r&&!1!==g&&c("",!0,!1),B())}},w)},KM=J.forwardRef(UM);function YM(A){var e=A.prefixCls,t=A.align,n=A.arrow,o=A.arrowPos,r=n||{},i=r.className,a=r.content,s=o.x,l=void 0===s?0:s,g=o.y,c=void 0===g?0:g,u=J.useRef();if(!t||!t.points)return null;var B={position:"absolute"};if(!1!==t.autoArrow){var Q=t.points[0],E=t.points[1],C=Q[0],d=Q[1],I=E[0],p=E[1];C!==I&&["t","b"].includes(C)?"t"===C?B.top=0:B.bottom=0:B.top=c,d!==p&&["l","r"].includes(d)?"l"===d?B.left=0:B.right=0:B.left=l}return J.createElement("div",{ref:u,className:ud("".concat(e,"-arrow"),i),style:B},a)}function TM(A){var e=A.prefixCls,t=A.open,n=A.zIndex,o=A.mask,r=A.motion;return o?J.createElement(Nh,BQ({},r,{motionAppear:!0,visible:t,removeOnLeave:!0}),(function(A){var t=A.className;return J.createElement("div",{style:{zIndex:n},className:ud("".concat(e,"-mask"),t)})})):null}var JM=J.memo((function(A){return A.children}),(function(A,e){return e.cache})),jM=J.forwardRef((function(A,e){var t=A.popup,n=A.className,o=A.prefixCls,r=A.style,i=A.target,a=A.onVisibleChanged,s=A.open,l=A.keepDom,g=A.fresh,c=A.onClick,u=A.mask,B=A.arrow,Q=A.arrowPos,E=A.align,C=A.motion,d=A.maskMotion,I=A.forceRender,p=A.getPopupContainer,f=A.autoDestroy,h=A.portal,w=A.zIndex,D=A.onMouseEnter,m=A.onMouseLeave,y=A.onPointerEnter,b=A.ready,v=A.offsetX,k=A.offsetY,M=A.offsetR,x=A.offsetB,S=A.onAlign,F=A.onPrepare,N=A.stretch,R=A.targetWidth,L=A.targetHeight,P="function"==typeof t?t():t,H=s||l,G=(null==p?void 0:p.length)>0,O=WQ(J.useState(!p||!G),2),U=O[0],K=O[1];if(qE((function(){!U&&G&&i&&K(!0)}),[U,G,i]),!U)return null;var Y="auto",T={left:"-1000vw",top:"-1000vh",right:Y,bottom:Y};if(b||!s){var j,q=E.points,$=E.dynamicInset||(null===(j=E._experimental)||void 0===j?void 0:j.dynamicInset),z=$&&"r"===q[0][1],W=$&&"b"===q[0][0];z?(T.right=M,T.left=Y):(T.left=v,T.right=Y),W?(T.bottom=x,T.top=Y):(T.top=k,T.bottom=Y)}var _={};return N&&(N.includes("height")&&L?_.height=L:N.includes("minHeight")&&L&&(_.minHeight=L),N.includes("width")&&R?_.width=R:N.includes("minWidth")&&R&&(_.minWidth=R)),s||(_.pointerEvents="none"),J.createElement(h,{open:I||H,getContainer:p&&function(){return p(i)},autoDestroy:f},J.createElement(TM,{prefixCls:o,open:s,zIndex:w,mask:u,motion:d}),J.createElement(hI,{onResize:S,disabled:!s},(function(A){return J.createElement(Nh,BQ({motionAppear:!0,motionEnter:!0,motionLeave:!0,removeOnLeave:!1,forceRender:I,leavedClassName:"".concat(o,"-hidden")},C,{onAppearPrepare:F,onEnterPrepare:F,visible:s,onVisibleChanged:function(A){var e;null==C||null===(e=C.onVisibleChanged)||void 0===e||e.call(C,A),a(A)}}),(function(t,i){var a=t.className,l=t.style,u=ud(o,a,n);return J.createElement("div",{ref:Pd(A,e,i),className:u,style:kc(kc(kc(kc({"--arrow-x":"".concat(Q.x||0,"px"),"--arrow-y":"".concat(Q.y||0,"px")},T),_),l),{},{boxSizing:"border-box",zIndex:w},r),onMouseEnter:D,onMouseLeave:m,onPointerEnter:y,onClick:c},B&&J.createElement(YM,{prefixCls:o,arrow:B,arrowPos:Q,align:E}),J.createElement(JM,{cache:!s&&!g},P))}))})))})),qM=J.forwardRef((function(A,e){var t=A.children,n=A.getTriggerDOMNode,o=Gd(t),r=J.useCallback((function(A){Ld(e,n?n(A):A)}),[n]),i=Hd(r,t.ref);return o?J.cloneElement(t,{ref:i}):t})),$M=J.createContext(null);function zM(A){return A?Array.isArray(A)?A:[A]:[]}function WM(){var A=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];return(arguments.length>2?arguments[2]:void 0)?A[0]===e[0]:A[0]===e[0]&&A[1]===e[1]}function _M(A,e,t,n){return e||(t?{motionName:"".concat(A,"-").concat(t)}:n?{motionName:n}:null)}function XM(A){return A.ownerDocument.defaultView}function VM(A){for(var e=[],t=null==A?void 0:A.parentElement,n=["hidden","scroll","clip","auto"];t;){var o=XM(t).getComputedStyle(t);[o.overflowX,o.overflowY,o.overflow].some((function(A){return n.includes(A)}))&&e.push(t),t=t.parentElement}return e}function ZM(A){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1;return Number.isNaN(A)?e:A}function Ax(A){return ZM(parseFloat(A),0)}function ex(A,e){var t=kc({},A);return(e||[]).forEach((function(A){if(!(A instanceof HTMLBodyElement||A instanceof HTMLHtmlElement)){var e=XM(A).getComputedStyle(A),n=e.overflow,o=e.overflowClipMargin,r=e.borderTopWidth,i=e.borderBottomWidth,a=e.borderLeftWidth,s=e.borderRightWidth,l=A.getBoundingClientRect(),g=A.offsetHeight,c=A.clientHeight,u=A.offsetWidth,B=A.clientWidth,Q=Ax(r),E=Ax(i),C=Ax(a),d=Ax(s),I=ZM(Math.round(l.width/u*1e3)/1e3),p=ZM(Math.round(l.height/g*1e3)/1e3),f=(u-B-C-d)*I,h=(g-c-Q-E)*p,w=Q*p,D=E*p,m=C*I,y=d*I,b=0,v=0;if("clip"===n){var k=Ax(o);b=k*I,v=k*p}var M=l.x+m-b,x=l.y+w-v,S=M+l.width+2*b-m-y-f,F=x+l.height+2*v-w-D-h;t.left=Math.max(t.left,M),t.top=Math.max(t.top,x),t.right=Math.min(t.right,S),t.bottom=Math.min(t.bottom,F)}})),t}function tx(A){var e="".concat(arguments.length>1&&void 0!==arguments[1]?arguments[1]:0),t=e.match(/^(.*)\%$/);return t?A*(parseFloat(t[1])/100):parseFloat(e)}function nx(A,e){var t=WQ(e||[],2),n=t[0],o=t[1];return[tx(A.width,n),tx(A.height,o)]}function ox(){var A=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return[A[0],A[1]]}function rx(A,e){var t,n=e[0],o=e[1];return t="t"===n?A.y:"b"===n?A.y+A.height:A.y+A.height/2,{x:"l"===o?A.x:"r"===o?A.x+A.width:A.x+A.width/2,y:t}}function ix(A,e){var t={t:"b",b:"t",l:"r",r:"l"};return A.map((function(A,n){return n===e?t[A]||"c":A})).join("")}var ax=["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 sx=function(){var A=arguments.length>0&&void 0!==arguments[0]?arguments[0]:Sy,e=J.forwardRef((function(e,t){var n=e.prefixCls,o=void 0===n?"rc-trigger-popup":n,r=e.children,i=e.action,a=void 0===i?"hover":i,s=e.showAction,l=e.hideAction,g=e.popupVisible,c=e.defaultPopupVisible,u=e.onPopupVisibleChange,B=e.afterPopupVisibleChange,Q=e.mouseEnterDelay,E=e.mouseLeaveDelay,C=void 0===E?.1:E,d=e.focusDelay,I=e.blurDelay,p=e.mask,f=e.maskClosable,h=void 0===f||f,w=e.getPopupContainer,D=e.forceRender,m=e.autoDestroy,y=e.destroyPopupOnHide,b=e.popup,v=e.popupClassName,k=e.popupStyle,M=e.popupPlacement,x=e.builtinPlacements,S=void 0===x?{}:x,F=e.popupAlign,N=e.zIndex,R=e.stretch,L=e.getPopupClassNameFromAlign,P=e.fresh,H=e.alignPoint,G=e.onPopupClick,O=e.onPopupAlign,U=e.arrow,K=e.popupMotion,Y=e.maskMotion,T=e.popupTransitionName,j=e.popupAnimation,q=e.maskTransitionName,$=e.maskAnimation,z=e.className,W=e.getTriggerDOMNode,_=Mc(e,ax),X=m||y||!1,V=WQ(J.useState(!1),2),Z=V[0],AA=V[1];qE((function(){AA(sM())}),[]);var eA=J.useRef({}),tA=J.useContext($M),nA=J.useMemo((function(){return{registerSubPopup:function(A,e){eA.current[A]=e,null==tA||tA.registerSubPopup(A,e)}}}),[tA]),oA=Ly(),rA=WQ(J.useState(null),2),iA=rA[0],aA=rA[1],sA=J.useRef(null),lA=mf((function(A){sA.current=A,Nd(A)&&iA!==A&&aA(A),null==tA||tA.registerSubPopup(oA,A)})),gA=WQ(J.useState(null),2),cA=gA[0],uA=gA[1],BA=J.useRef(null),QA=mf((function(A){Nd(A)&&cA!==A&&(uA(A),BA.current=A)})),EA=J.Children.only(r),CA=(null==EA?void 0:EA.props)||{},dA={},IA=mf((function(A){var e,t,n=cA;return(null==n?void 0:n.contains(A))||(null===(e=rw(n))||void 0===e?void 0:e.host)===A||A===n||(null==iA?void 0:iA.contains(A))||(null===(t=rw(iA))||void 0===t?void 0:t.host)===A||A===iA||Object.values(eA.current).some((function(e){return(null==e?void 0:e.contains(A))||A===e}))})),pA=_M(o,K,j,T),fA=_M(o,Y,$,q),hA=WQ(J.useState(c||!1),2),wA=hA[0],DA=hA[1],mA=null!=g?g:wA,yA=mf((function(A){void 0===g&&DA(A)}));qE((function(){DA(g||!1)}),[g]);var bA=J.useRef(mA);bA.current=mA;var vA=J.useRef([]);vA.current=[];var kA=mf((function(A){var e;yA(A),(null!==(e=vA.current[vA.current.length-1])&&void 0!==e?e:mA)!==A&&(vA.current.push(A),null==u||u(A))})),MA=J.useRef(),xA=function(){clearTimeout(MA.current)},SA=function(A){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;xA(),0===e?kA(A):MA.current=setTimeout((function(){kA(A)}),1e3*e)};J.useEffect((function(){return xA}),[]);var FA=WQ(J.useState(!1),2),NA=FA[0],RA=FA[1];qE((function(A){A&&!mA||RA(!0)}),[mA]);var LA=WQ(J.useState(null),2),PA=LA[0],HA=LA[1],GA=WQ(J.useState([0,0]),2),OA=GA[0],UA=GA[1],KA=function(A){UA([A.clientX,A.clientY])},YA=function(A,e,t,n,o,r,i){var a=WQ(J.useState({ready:!1,offsetX:0,offsetY:0,offsetR:0,offsetB:0,arrowX:0,arrowY:0,scaleX:1,scaleY:1,align:o[n]||{}}),2),s=a[0],l=a[1],g=J.useRef(0),c=J.useMemo((function(){return e?VM(e):[]}),[e]),u=J.useRef({});A||(u.current={});var B=mf((function(){if(e&&t&&A){let A=function(A,e){var t=arguments.length>2&&void 0!==arguments[2]?arguments[2]:$,n=v.x+A,o=v.y+e,r=n+P,i=o+L,a=Math.max(n,t.left),s=Math.max(o,t.top),l=Math.min(r,t.right),g=Math.min(i,t.bottom);return Math.max(0,(l-a)*(g-s))},ae=function(){iA=v.y+IA,aA=iA+L,sA=v.x+dA,lA=sA+P};var a,s,g,B=e,Q=B.ownerDocument,E=XM(B).getComputedStyle(B),C=E.width,d=E.height,I=E.position,p=B.style.left,f=B.style.top,h=B.style.right,w=B.style.bottom,D=B.style.overflow,m=kc(kc({},o[n]),r),y=Q.createElement("div");if(null===(a=B.parentElement)||void 0===a||a.appendChild(y),y.style.left="".concat(B.offsetLeft,"px"),y.style.top="".concat(B.offsetTop,"px"),y.style.position=I,y.style.height="".concat(B.offsetHeight,"px"),y.style.width="".concat(B.offsetWidth,"px"),B.style.left="0",B.style.top="0",B.style.right="auto",B.style.bottom="auto",B.style.overflow="hidden",Array.isArray(t))g={x:t[0],y:t[1],width:0,height:0};else{var b=t.getBoundingClientRect();g={x:b.x,y:b.y,width:b.width,height:b.height}}var v=B.getBoundingClientRect(),k=Q.documentElement,M=k.clientWidth,x=k.clientHeight,S=k.scrollWidth,F=k.scrollHeight,N=k.scrollTop,R=k.scrollLeft,L=v.height,P=v.width,H=g.height,G=g.width,O={left:0,top:0,right:M,bottom:x},U={left:-R,top:-N,right:S-R,bottom:F-N},K=m.htmlRegion,Y="visible",T="visibleFirst";"scroll"!==K&&K!==T&&(K=Y);var J=K===T,j=ex(U,c),q=ex(O,c),$=K===Y?q:j,z=J?q:$;B.style.left="auto",B.style.top="auto",B.style.right="0",B.style.bottom="0";var W=B.getBoundingClientRect();B.style.left=p,B.style.top=f,B.style.right=h,B.style.bottom=w,B.style.overflow=D,null===(s=B.parentElement)||void 0===s||s.removeChild(y);var _=ZM(Math.round(P/parseFloat(C)*1e3)/1e3),X=ZM(Math.round(L/parseFloat(d)*1e3)/1e3);if(0===_||0===X||Nd(t)&&!im(t))return;var V=m.offset,Z=m.targetOffset,AA=WQ(nx(v,V),2),eA=AA[0],tA=AA[1],nA=WQ(nx(g,Z),2),oA=nA[0],rA=nA[1];g.x-=oA,g.y-=rA;var iA,aA,sA,lA,gA=WQ(m.points||[],2),cA=gA[0],uA=ox(gA[1]),BA=ox(cA),QA=rx(g,uA),EA=rx(v,BA),CA=kc({},m),dA=QA.x-EA.x+eA,IA=QA.y-EA.y+tA,pA=A(dA,IA),fA=A(dA,IA,q),hA=rx(g,["t","l"]),wA=rx(v,["t","l"]),DA=rx(g,["b","r"]),mA=rx(v,["b","r"]),yA=m.overflow||{},bA=yA.adjustX,vA=yA.adjustY,kA=yA.shiftX,MA=yA.shiftY,xA=function(A){return"boolean"==typeof A?A:A>=0};ae();var SA=xA(vA),FA=BA[0]===uA[0];if(SA&&"t"===BA[0]&&(aA>z.bottom||u.current.bt)){var NA=IA;FA?NA-=L-H:NA=hA.y-mA.y-tA;var RA=A(dA,NA),LA=A(dA,NA,q);RA>pA||RA===pA&&(!J||LA>=fA)?(u.current.bt=!0,IA=NA,tA=-tA,CA.points=[ix(BA,0),ix(uA,0)]):u.current.bt=!1}if(SA&&"b"===BA[0]&&(iApA||HA===pA&&(!J||GA>=fA)?(u.current.tb=!0,IA=PA,tA=-tA,CA.points=[ix(BA,0),ix(uA,0)]):u.current.tb=!1}var OA=xA(bA),UA=BA[1]===uA[1];if(OA&&"l"===BA[1]&&(lA>z.right||u.current.rl)){var KA=dA;UA?KA-=P-G:KA=hA.x-mA.x-eA;var YA=A(KA,IA),TA=A(KA,IA,q);YA>pA||YA===pA&&(!J||TA>=fA)?(u.current.rl=!0,dA=KA,eA=-eA,CA.points=[ix(BA,1),ix(uA,1)]):u.current.rl=!1}if(OA&&"r"===BA[1]&&(sApA||jA===pA&&(!J||qA>=fA)?(u.current.lr=!0,dA=JA,eA=-eA,CA.points=[ix(BA,1),ix(uA,1)]):u.current.lr=!1}ae();var $A=!0===kA?0:kA;"number"==typeof $A&&(sAq.right&&(dA-=lA-q.right-eA,g.x>q.right-$A&&(dA+=g.x-q.right+$A)));var zA=!0===MA?0:MA;"number"==typeof zA&&(iAq.bottom&&(IA-=aA-q.bottom-tA,g.y>q.bottom-zA&&(IA+=g.y-q.bottom+zA)));var WA=v.x+dA,_A=WA+P,XA=v.y+IA,VA=XA+L,ZA=g.x,Ae=ZA+G,ee=g.y,te=ee+H,ne=(Math.max(WA,ZA)+Math.min(_A,Ae))/2-WA,oe=(Math.max(XA,ee)+Math.min(VA,te))/2-XA;null==i||i(e,CA);var re=W.right-v.x-(dA+v.width),ie=W.bottom-v.y-(IA+v.height);l({ready:!0,offsetX:dA/_,offsetY:IA/X,offsetR:re/_,offsetB:ie/X,arrowX:ne/_,arrowY:oe/X,scaleX:_,scaleY:X,align:CA})}})),Q=function(){l((function(A){return kc(kc({},A),{},{ready:!1})}))};return qE(Q,[n]),qE((function(){A||Q()}),[A]),[s.ready,s.offsetX,s.offsetY,s.offsetR,s.offsetB,s.arrowX,s.arrowY,s.scaleX,s.scaleY,s.align,function(){g.current+=1;var A=g.current;Promise.resolve().then((function(){g.current===A&&B()}))}]}(mA,iA,H?OA:cA,M,S,F,O),TA=WQ(YA,11),JA=TA[0],jA=TA[1],qA=TA[2],$A=TA[3],zA=TA[4],WA=TA[5],_A=TA[6],XA=TA[7],VA=TA[8],ZA=TA[9],Ae=TA[10],ee=function(A,e,t,n){return J.useMemo((function(){var o=zM(null!=t?t:e),r=zM(null!=n?n:e),i=new Set(o),a=new Set(r);return A&&(i.has("hover")&&(i.delete("hover"),i.add("click")),a.has("hover")&&(a.delete("hover"),a.add("click"))),[i,a]}),[A,e,t,n])}(Z,a,s,l),te=WQ(ee,2),ne=te[0],oe=te[1],re=ne.has("click"),ie=oe.has("click")||oe.has("contextMenu"),ae=mf((function(){NA||Ae()}));!function(A,e,t,n,o){qE((function(){if(A&&e&&t){let A=function(){n(),o()};var r=t,i=VM(e),a=VM(r),s=XM(r),l=new Set([s].concat(XQ(i),XQ(a)));return l.forEach((function(e){e.addEventListener("scroll",A,{passive:!0})})),s.addEventListener("resize",A,{passive:!0}),n(),function(){l.forEach((function(e){e.removeEventListener("scroll",A),s.removeEventListener("resize",A)}))}}}),[A,e,t])}(mA,cA,iA,ae,(function(){bA.current&&H&&ie&&SA(!1)})),qE((function(){ae()}),[OA,M]),qE((function(){!mA||null!=S&&S[M]||ae()}),[JSON.stringify(F)]);var se=J.useMemo((function(){var A=function(A,e,t,n){for(var o=t.points,r=Object.keys(A),i=0;i1?i-1:0),s=1;s1?t-1:0),o=1;o1?t-1:0),o=1;o50?", ...":null)}var Ix=["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","suffixIcon","clearIcon","OptionList","animation","transitionName","dropdownStyle","dropdownClassName","dropdownMatchSelectWidth","dropdownRender","dropdownAlign","placement","builtinPlacements","getPopupContainer","showAction","onFocus","onBlur","onKeyUp","onKeyDown","onMouseDown"],px=["value","onChange","removeIcon","placeholder","autoFocus","maxTagCount","maxTagTextLength","maxTagPlaceholder","choiceTransitionName","onInputKeyDown","onPopupScroll","tabIndex"],fx=function(A){return"tags"===A||"multiple"===A},hx=J.forwardRef((function(A,e){var t,n=A.id,o=A.prefixCls,r=A.className,i=A.showSearch,a=A.tagRender,s=A.direction,l=A.omitDomProps,g=A.displayValues,c=A.onDisplayValuesChange,u=A.emptyOptions,B=A.notFoundContent,Q=void 0===B?"Not Found":B,E=A.onClear,C=A.mode,d=A.disabled,I=A.loading,p=A.getInputElement,f=A.getRawInputElement,h=A.open,w=A.defaultOpen,D=A.onDropdownVisibleChange,m=A.activeValue,y=A.onActiveValueChange,b=A.activeDescendantId,v=A.searchValue,k=A.autoClearSearchValue,M=A.onSearch,x=A.onSearchSplit,S=A.tokenSeparators,F=A.allowClear,N=A.suffixIcon,R=A.clearIcon,L=A.OptionList,P=A.animation,H=A.transitionName,G=A.dropdownStyle,O=A.dropdownClassName,U=A.dropdownMatchSelectWidth,K=A.dropdownRender,Y=A.dropdownAlign,T=A.placement,q=A.builtinPlacements,$=A.getPopupContainer,z=A.showAction,W=void 0===z?[]:z,_=A.onFocus,X=A.onBlur,V=A.onKeyUp,Z=A.onKeyDown,AA=A.onMouseDown,eA=Mc(A,Ix),tA=fx(C),nA=(void 0!==i?i:tA)||"combobox"===C,oA=kc({},eA);px.forEach((function(A){delete oA[A]})),null==l||l.forEach((function(A){delete oA[A]}));var rA=WQ(J.useState(!1),2),iA=rA[0],aA=rA[1];J.useEffect((function(){aA(sM())}),[]);var sA=J.useRef(null),lA=J.useRef(null),gA=J.useRef(null),cA=J.useRef(null),uA=J.useRef(null),BA=J.useRef(!1),QA=function(){var A=arguments.length>0&&void 0!==arguments[0]?arguments[0]:10,e=WQ(J.useState(!1),2),t=e[0],n=e[1],o=J.useRef(null),r=function(){window.clearTimeout(o.current)};return J.useEffect((function(){return r}),[]),[t,function(e,t){r(),o.current=window.setTimeout((function(){n(e),t&&t()}),A)},r]}(),EA=WQ(QA,3),CA=EA[0],dA=EA[1],IA=EA[2];J.useImperativeHandle(e,(function(){var A,e;return{focus:null===(A=cA.current)||void 0===A?void 0:A.focus,blur:null===(e=cA.current)||void 0===e?void 0:e.blur,scrollTo:function(A){var e;return null===(e=uA.current)||void 0===e?void 0:e.scrollTo(A)}}}));var pA=J.useMemo((function(){var A;if("combobox"!==C)return v;var e=null===(A=g[0])||void 0===A?void 0:A.value;return"string"==typeof e||"number"==typeof e?String(e):""}),[v,C,g]),fA="combobox"===C&&"function"==typeof p&&p()||null,hA="function"==typeof f&&f(),wA=Hd(lA,null==hA||null===(t=hA.props)||void 0===t?void 0:t.ref),DA=WQ(J.useState(!1),2),mA=DA[0],yA=DA[1];qE((function(){yA(!0)}),[]);var bA=WQ(vf(!1,{defaultValue:w,value:h}),2),vA=bA[0],kA=bA[1],MA=!!mA&&vA,xA=!Q&&u;(d||xA&&MA&&"combobox"===C)&&(MA=!1);var SA=!xA&&MA,FA=J.useCallback((function(A){var e=void 0!==A?A:!MA;d||(kA(e),MA!==e&&(null==D||D(e)))}),[d,MA,kA,D]),NA=J.useMemo((function(){return(S||[]).some((function(A){return["\n","\r\n"].includes(A)}))}),[S]),RA=J.useContext(Cx)||{},LA=RA.maxCount,PA=RA.rawValues,HA=function(A,e,t){if(!(tA&&Bx(LA)&&(null==PA?void 0:PA.size)>=LA)){var n=!0,o=A;null==y||y(null);var r=function(A,e,t){if(!e||!e.length)return null;var n=!1,o=function A(e,t){var o=xI(t),r=o[0],i=o.slice(1);if(!r)return[e];var a=e.split(r);return n=n||a.length>1,a.reduce((function(e,t){return[].concat(XQ(e),XQ(A(t,i)))}),[]).filter(Boolean)}(A,e);return n?void 0!==t?o.slice(0,t):o:null}(A,S,Bx(LA)?LA-PA.size:void 0),i=t?null:r;return"combobox"!==C&&i&&(o="",null==x||x(i),FA(!1),n=!1),M&&pA!==o&&M(o,{source:e?"typing":"effect"}),n}};J.useEffect((function(){MA||tA||"combobox"===C||HA("",!1,!1)}),[MA]),J.useEffect((function(){vA&&d&&kA(!1),d&&!BA.current&&dA(!1)}),[d]);var GA=WQ(cM(),2),OA=GA[0],UA=GA[1],KA=J.useRef(!1),YA=[];J.useEffect((function(){return function(){YA.forEach((function(A){return clearTimeout(A)})),YA.splice(0,YA.length)}}),[]);var TA,JA=WQ(J.useState({}),2)[1];hA&&(TA=function(A){FA(A)}),function(A,e,t,n){var o=J.useRef(null);o.current={open:e,triggerOpen:t,customizedTrigger:n},J.useEffect((function(){function e(e){var t;if(null===(t=o.current)||void 0===t||!t.customizedTrigger){var n=e.target;n.shadowRoot&&e.composed&&(n=e.composedPath()[0]||n),o.current.open&&A().filter((function(A){return A})).every((function(A){return!A.contains(n)&&A!==n}))&&o.current.triggerOpen(!1)}}return window.addEventListener("mousedown",e),function(){return window.removeEventListener("mousedown",e)}}),[])}((function(){var A;return[sA.current,null===(A=gA.current)||void 0===A?void 0:A.getPopupElement()]}),SA,FA,!!hA);var jA,qA=J.useMemo((function(){return kc(kc({},A),{},{notFoundContent:Q,open:MA,triggerOpen:SA,id:n,showSearch:nA,multiple:tA,toggleOpen:FA})}),[A,Q,SA,MA,n,nA,tA,FA]),$A=!!N||I;$A&&(jA=J.createElement(lM,{className:ud("".concat(o,"-arrow"),bc({},"".concat(o,"-arrow-loading"),I)),customizeIcon:N,customizeIconProps:{loading:I,searchValue:pA,open:MA,focused:CA,showSearch:nA}}));var zA,WA=function(A,e,t,n,o){var r=arguments.length>5&&void 0!==arguments[5]&&arguments[5],i=arguments.length>6?arguments[6]:void 0,a=arguments.length>7?arguments[7]:void 0,s=j.useMemo((function(){return"object"===mc(n)?n.clearIcon:o||void 0}),[n,o]);return{allowClear:j.useMemo((function(){return!(r||!n||!t.length&&!i||"combobox"===a&&""===i)}),[n,r,t.length,i,a]),clearIcon:j.createElement(lM,{className:"".concat(A,"-clear"),onMouseDown:e,customizeIcon:s},"ร—")}}(o,(function(){var A;null==E||E(),null===(A=cA.current)||void 0===A||A.focus(),c([],{type:"clear",values:g}),HA("",!1,!1)}),g,F,R,d,pA,C),_A=WA.allowClear,XA=WA.clearIcon,VA=J.createElement(L,{ref:uA}),ZA=ud(o,r,bc(bc(bc(bc(bc(bc(bc(bc(bc(bc({},"".concat(o,"-focused"),CA),"".concat(o,"-multiple"),tA),"".concat(o,"-single"),!tA),"".concat(o,"-allow-clear"),F),"".concat(o,"-show-arrow"),$A),"".concat(o,"-disabled"),d),"".concat(o,"-loading"),I),"".concat(o,"-open"),MA),"".concat(o,"-customize-input"),fA),"".concat(o,"-show-search"),nA)),Ae=J.createElement(cx,{ref:gA,disabled:d,prefixCls:o,visible:SA,popupElement:VA,animation:P,transitionName:H,dropdownStyle:G,dropdownClassName:O,direction:s,dropdownMatchSelectWidth:U,dropdownRender:K,dropdownAlign:Y,placement:T,builtinPlacements:q,getPopupContainer:$,empty:u,getTriggerDOMNode:function(){return lA.current},onPopupVisibleChange:TA,onPopupMouseEnter:function(){JA({})}},hA?J.cloneElement(hA,{ref:wA}):J.createElement(KM,BQ({},A,{domRef:lA,prefixCls:o,inputElement:fA,ref:cA,id:n,showSearch:nA,autoClearSearchValue:k,mode:C,activeDescendantId:b,tagRender:a,values:g,open:MA,onToggleOpen:FA,activeValue:m,searchValue:pA,onSearch:HA,onSearchSubmit:function(A){A&&A.trim()&&M(A,{source:"submit"})},onRemove:function(A){var e=g.filter((function(e){return e!==A}));c(e,{type:"remove",values:[A]})},tokenWithEnter:NA})));return zA=hA?Ae:J.createElement("div",BQ({className:ZA},oA,{ref:sA,onMouseDown:function(A){var e,t=A.target,n=null===(e=gA.current)||void 0===e?void 0:e.getPopupElement();if(n&&n.contains(t)){var o=setTimeout((function(){var A,e=YA.indexOf(o);-1!==e&&YA.splice(e,1),IA(),iA||n.contains(document.activeElement)||null===(A=cA.current)||void 0===A||A.focus()}));YA.push(o)}for(var r=arguments.length,i=new Array(r>1?r-1:0),a=1;a=0;i-=1){var a=o[i];if(!a.disabled){o.splice(i,1),r=a;break}}r&&c(o,{type:"remove",values:[r]})}for(var s=arguments.length,l=new Array(s>1?s-1:0),u=1;u1?e-1:0),n=1;n1&&void 0!==arguments[1]&&arguments[1],r=A<0&&o.current.top||A>0&&o.current.bottom;return e&&r?(clearTimeout(n.current),t.current=!1):r&&!t.current||(clearTimeout(n.current),t.current=!0,n.current=setTimeout((function(){t.current=!1}),50)),!t.current&&r}};function Mx(A,e,t,n,o){var r=J.useRef(0),i=J.useRef(null),a=J.useRef(null),s=J.useRef(!1),l=kx(e,t);var g=J.useRef(null),c=J.useRef(null);return[function(e){if(A){kI.cancel(c.current),c.current=kI((function(){g.current=null}),2);var t=e.deltaX,u=e.deltaY,B=e.shiftKey,Q=t,E=u;("sx"===g.current||!g.current&&B&&u&&!t)&&(Q=u,E=0,g.current="sx");var C=Math.abs(Q),d=Math.abs(E);null===g.current&&(g.current=n&&C>d?"x":"y"),"y"===g.current?function(A,e){kI.cancel(i.current),r.current+=e,a.current=e,l(e)||(vx||A.preventDefault(),i.current=kI((function(){var A=s.current?10:1;o(r.current*A),r.current=0})))}(e,E):function(A,e){o(e,!0),vx||A.preventDefault()}(e,Q)}},function(e){A&&(s.current=e.detail===a.current)}]}var xx=function(){function A(){eQ(this,A),bc(this,"maps",void 0),bc(this,"id",0),this.maps=Object.create(null)}return nQ(A,[{key:"set",value:function(A,e){this.maps[A]=e,this.id+=1}},{key:"get",value:function(A){return this.maps[A]}}]),A}();var Sx=14/15;var Fx=10;function Nx(A,e){return("touches"in A?A.touches[0]:A)[e?"pageX":"pageY"]}var Rx=J.forwardRef((function(A,e){var t=A.prefixCls,n=A.rtl,o=A.scrollOffset,r=A.scrollRange,i=A.onStartMove,a=A.onStopMove,s=A.onScroll,l=A.horizontal,g=A.spinSize,c=A.containerSize,u=A.style,B=A.thumbStyle,Q=WQ(J.useState(!1),2),E=Q[0],C=Q[1],d=WQ(J.useState(null),2),I=d[0],p=d[1],f=WQ(J.useState(null),2),h=f[0],w=f[1],D=!n,m=J.useRef(),y=J.useRef(),b=WQ(J.useState(!1),2),v=b[0],k=b[1],M=J.useRef(),x=function(){clearTimeout(M.current),k(!0),M.current=setTimeout((function(){k(!1)}),3e3)},S=r-c||0,F=c-g||0,N=J.useMemo((function(){return 0===o||0===S?0:o/S*F}),[o,S,F]),R=J.useRef({top:N,dragging:E,pageY:I,startTop:h});R.current={top:N,dragging:E,pageY:I,startTop:h};var L=function(A){C(!0),p(Nx(A,l)),w(R.current.top),i(),A.stopPropagation(),A.preventDefault()};J.useEffect((function(){var A=function(A){A.preventDefault()},e=m.current,t=y.current;return e.addEventListener("touchstart",A),t.addEventListener("touchstart",L),function(){e.removeEventListener("touchstart",A),t.removeEventListener("touchstart",L)}}),[]);var P=J.useRef();P.current=S;var H=J.useRef();H.current=F,J.useEffect((function(){if(E){var A,e=function(e){var t=R.current,n=t.dragging,o=t.pageY,r=t.startTop;if(kI.cancel(A),n){var i=Nx(e,l)-o,a=r;!D&&l?a-=i:a+=i;var g=P.current,c=H.current,u=c?a/c:0,B=Math.ceil(u*g);B=Math.max(B,0),B=Math.min(B,g),A=kI((function(){s(B,l)}))}},t=function(){C(!1),a()};return window.addEventListener("mousemove",e),window.addEventListener("touchmove",e),window.addEventListener("mouseup",t),window.addEventListener("touchend",t),function(){window.removeEventListener("mousemove",e),window.removeEventListener("touchmove",e),window.removeEventListener("mouseup",t),window.removeEventListener("touchend",t),kI.cancel(A)}}}),[E]),J.useEffect((function(){x()}),[o]),J.useImperativeHandle(e,(function(){return{delayHidden:x}}));var G="".concat(t,"-scrollbar"),O={position:"absolute",visibility:v?null:"hidden"},U={position:"absolute",background:"rgba(0, 0, 0, 0.5)",borderRadius:99,cursor:"pointer",userSelect:"none"};return l?(O.height=8,O.left=0,O.right=0,O.bottom=0,U.height="100%",U.width=g,D?U.left=N:U.right=N):(O.width=8,O.top=0,O.bottom=0,D?O.right=0:O.left=0,U.width="100%",U.height=g,U.top=N),J.createElement("div",{ref:m,className:ud(G,bc(bc(bc({},"".concat(G,"-horizontal"),l),"".concat(G,"-vertical"),!l),"".concat(G,"-visible"),v)),style:kc(kc({},O),u),onMouseDown:function(A){A.stopPropagation(),A.preventDefault()},onMouseMove:x},J.createElement("div",{ref:y,className:ud("".concat(G,"-thumb"),bc({},"".concat(G,"-thumb-moving"),E)),style:kc(kc({},U),B),onMouseDown:L}))})),Lx=20;function Px(){var A=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,e=A/(arguments.length>1&&void 0!==arguments[1]?arguments[1]:0)*A;return isNaN(e)&&(e=0),e=Math.max(e,Lx),Math.floor(e)}var Hx=["prefixCls","className","height","itemHeight","fullHeight","style","data","children","itemKey","virtual","direction","scrollWidth","component","onScroll","onVirtualScroll","onVisibleChange","innerProps","extraRender","styles"],Gx=[],Ox={overflowY:"auto",overflowAnchor:"none"};function Ux(A,e){var t=A.prefixCls,n=void 0===t?"rc-virtual-list":t,o=A.className,r=A.height,i=A.itemHeight,a=A.fullHeight,s=void 0===a||a,l=A.style,g=A.data,c=A.children,u=A.itemKey,B=A.virtual,Q=A.direction,E=A.scrollWidth,C=A.component,d=void 0===C?"div":C,I=A.onScroll,p=A.onVirtualScroll,f=A.onVisibleChange,h=A.innerProps,w=A.extraRender,D=A.styles,m=Mc(A,Hx),y=J.useCallback((function(A){return"function"==typeof u?u(A):null==A?void 0:A[u]}),[u]),b=function(A,e,t){var n=WQ(J.useState(0),2),o=n[0],r=n[1],i=J.useRef(new Map),a=J.useRef(new xx),s=J.useRef();function l(){kI.cancel(s.current)}function g(){var A=arguments.length>0&&void 0!==arguments[0]&&arguments[0];l();var e=function(){i.current.forEach((function(A,e){if(A&&A.offsetParent){var t=Rd(A),n=t.offsetHeight;a.current.get(e)!==n&&a.current.set(e,t.offsetHeight)}})),r((function(A){return A+1}))};A?e():s.current=kI(e)}return J.useEffect((function(){return l}),[]),[function(e,t){var n=A(e);i.current.get(n),t?(i.current.set(n,t),g()):i.current.delete(n)},g,a.current,o]}(y),v=WQ(b,4),k=v[0],M=v[1],x=v[2],S=v[3],F=!(!1===B||!r||!i),N=J.useMemo((function(){return Object.values(x.maps).reduce((function(A,e){return A+e}),0)}),[x.id,x.maps]),R=F&&g&&(Math.max(i*g.length,N)>r||!!E),L="rtl"===Q,P=ud(n,bc({},"".concat(n,"-rtl"),L),o),H=g||Gx,G=J.useRef(),O=J.useRef(),U=WQ(J.useState(0),2),K=U[0],Y=U[1],T=WQ(J.useState(0),2),j=T[0],q=T[1],$=WQ(J.useState(!1),2),z=$[0],W=$[1],_=function(){W(!0)},X=function(){W(!1)},V={getKey:y};function Z(A){Y((function(e){var t=function(A){var e=A;Number.isNaN(CA.current)||(e=Math.min(e,CA.current));return e=Math.max(e,0),e}("function"==typeof A?A(e):A);return G.current.scrollTop=t,t}))}var AA=J.useRef({start:0,end:H.length}),eA=J.useRef(),tA=WQ(bx(H,y),1)[0];eA.current=tA;var nA=J.useMemo((function(){if(!F)return{scrollHeight:void 0,start:0,end:H.length-1,offset:void 0};var A;if(!R)return{scrollHeight:(null===(A=O.current)||void 0===A?void 0:A.offsetHeight)||0,start:0,end:H.length-1,offset:void 0};for(var e,t,n,o=0,a=H.length,s=0;s=K&&void 0===e&&(e=s,t=o),u>K+r&&void 0===n&&(n=s),o=u}return void 0===e&&(e=0,t=0,n=Math.ceil(r/i)),void 0===n&&(n=H.length-1),{scrollHeight:o,start:e,end:n=Math.min(n+1,H.length-1),offset:t}}),[R,F,K,H,S,r]),oA=nA.scrollHeight,rA=nA.start,iA=nA.end,aA=nA.offset;AA.current.start=rA,AA.current.end=iA;var sA=WQ(J.useState({width:0,height:r}),2),lA=sA[0],gA=sA[1],cA=J.useRef(),uA=J.useRef(),BA=J.useMemo((function(){return Px(lA.width,E)}),[lA.width,E]),QA=J.useMemo((function(){return Px(lA.height,oA)}),[lA.height,oA]),EA=oA-r,CA=J.useRef(EA);CA.current=EA;var dA=K<=0,IA=K>=EA,pA=kx(dA,IA),fA=function(){return{x:L?-j:j,y:K}},hA=J.useRef(fA()),wA=mf((function(A){if(p){var e=kc(kc({},fA()),A);hA.current.x===e.x&&hA.current.y===e.y||(p(e),hA.current=e)}}));function DA(A,e){var t=A;e?(pc.flushSync((function(){q(t)})),wA()):Z(t)}var mA=function(A){var e=A,t=E?E-lA.width:0;return e=Math.max(e,0),e=Math.min(e,t)},yA=mf((function(A,e){e?(pc.flushSync((function(){q((function(e){return mA(e+(L?-A:A))}))})),wA()):Z((function(e){return e+A}))})),bA=WQ(Mx(F,dA,IA,!!E,yA),2),vA=bA[0],kA=bA[1];!function(A,e,t){var n,o=J.useRef(!1),r=J.useRef(0),i=J.useRef(null),a=J.useRef(null),s=function(A){if(o.current){var e=Math.ceil(A.touches[0].pageY),n=r.current-e;r.current=e,t(n)&&A.preventDefault(),clearInterval(a.current),a.current=setInterval((function(){(!t(n*=Sx,!0)||Math.abs(n)<=.1)&&clearInterval(a.current)}),16)}},l=function(){o.current=!1,n()},g=function(A){n(),1!==A.touches.length||o.current||(o.current=!0,r.current=Math.ceil(A.touches[0].pageY),i.current=A.target,i.current.addEventListener("touchmove",s),i.current.addEventListener("touchend",l))};n=function(){i.current&&(i.current.removeEventListener("touchmove",s),i.current.removeEventListener("touchend",l))},qE((function(){return A&&e.current.addEventListener("touchstart",g),function(){var A;null===(A=e.current)||void 0===A||A.removeEventListener("touchstart",g),n(),clearInterval(a.current)}}),[A])}(F,G,(function(A,e){return!pA(A,e)&&(vA({preventDefault:function(){},deltaY:A}),!0)})),qE((function(){function A(A){F&&A.preventDefault()}var e=G.current;return e.addEventListener("wheel",vA),e.addEventListener("DOMMouseScroll",kA),e.addEventListener("MozMousePixelScroll",A),function(){e.removeEventListener("wheel",vA),e.removeEventListener("DOMMouseScroll",kA),e.removeEventListener("MozMousePixelScroll",A)}}),[F]),qE((function(){if(E){var A=mA(j);q(A),wA({x:A})}}),[lA.width,E]);var MA=function(){var A,e;null===(A=cA.current)||void 0===A||A.delayHidden(),null===(e=uA.current)||void 0===e||e.delayHidden()},xA=function(A,e,t,n,o,r,i,a){var s=J.useRef(),l=WQ(J.useState(null),2),g=l[0],c=l[1];return qE((function(){if(g&&g.times=0;b-=1){var v=o(e[b]),k=t.get(v);if(void 0===k){Q=!0;break}if((y-=k)<=0)break}switch(d){case"top":C=p-u;break;case"bottom":C=f-B+u;break;default:var M=A.current.scrollTop;pM+B&&(E="bottom")}null!==C&&i(C),C!==g.lastTop&&(Q=!0)}Q&&c(kc(kc({},g),{},{times:g.times+1,targetAlign:E,lastTop:C}))}}),[g,A.current]),function(A){if(null!=A){if(kI.cancel(s.current),"number"==typeof A)i(A);else if(A&&"object"===mc(A)){var t,n=A.align;t="index"in A?A.index:e.findIndex((function(e){return o(e)===A.key}));var r=A.offset;c({times:0,index:t,offset:void 0===r?0:r,originAlign:n})}}else a()}}(G,H,x,i,y,(function(){return M(!0)}),Z,MA);J.useImperativeHandle(e,(function(){return{getScrollInfo:fA,scrollTo:function(A){var e;(e=A)&&"object"===mc(e)&&("left"in e||"top"in e)?(void 0!==A.left&&q(mA(A.left)),xA(A.top)):xA(A)}}})),qE((function(){if(f){var A=H.slice(rA,iA+1);f(A,H)}}),[rA,iA,H]);var SA=function(A,e,t,n){var o=WQ(J.useMemo((function(){return[new Map,[]]}),[A,t.id,n]),2),r=o[0],i=o[1];return function(o){var a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:o,s=r.get(o),l=r.get(a);if(void 0===s||void 0===l)for(var g=A.length,c=i.length;cr&&J.createElement(Rx,{ref:cA,prefixCls:n,scrollOffset:K,scrollRange:oA,rtl:L,onScroll:DA,onStartMove:_,onStopMove:X,spinSize:QA,containerSize:lA.height,style:null==D?void 0:D.verticalScrollBar,thumbStyle:null==D?void 0:D.verticalScrollBarThumb}),R&&E>lA.width&&J.createElement(Rx,{ref:uA,prefixCls:n,scrollOffset:j,scrollRange:E,rtl:L,onScroll:DA,onStartMove:_,onStopMove:X,spinSize:BA,containerSize:lA.width,horizontal:!0,style:null==D?void 0:D.horizontalScrollBar,thumbStyle:null==D?void 0:D.horizontalScrollBarThumb}))}var Kx=J.forwardRef(Ux);Kx.displayName="List";var Yx=["disabled","title","children","style","className"];function Tx(A){return"string"==typeof A||"number"==typeof A}var Jx=function(A,e){var t=J.useContext(gM),n=t.prefixCls,o=t.id,r=t.open,i=t.multiple,a=t.mode,s=t.searchValue,l=t.toggleOpen,g=t.notFoundContent,c=t.onPopupScroll,u=J.useContext(Cx),B=u.maxCount,Q=u.flattenOptions,E=u.onActiveValue,C=u.defaultActiveFirstOption,d=u.onSelect,I=u.menuItemSelectedIcon,p=u.rawValues,f=u.fieldNames,h=u.virtual,w=u.direction,D=u.listHeight,m=u.listItemHeight,y=u.optionRender,b="".concat(n,"-item"),v=uE((function(){return Q}),[r,Q],(function(A,e){return e[0]&&A[1]!==e[1]})),k=J.useRef(null),M=J.useMemo((function(){return i&&Bx(B)&&(null==p?void 0:p.size)>=B}),[i,B,null==p?void 0:p.size]),x=function(A){A.preventDefault()},S=function(A){var e;null===(e=k.current)||void 0===e||e.scrollTo("number"==typeof A?{index:A}:A)},F=function(A){for(var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1,t=v.length,n=0;n1&&void 0!==arguments[1]&&arguments[1];L(A);var t={source:e?"keyboard":"mouse"},n=v[A];n?E(n.value,A,t):E(null,-1,t)};J.useEffect((function(){P(!1!==C?F(0):-1)}),[v.length,s]);var H=J.useCallback((function(A){return p.has(A)&&"combobox"!==a}),[a,XQ(p).toString(),p.size]);J.useEffect((function(){var A,e=setTimeout((function(){if(!i&&r&&1===p.size){var A=Array.from(p)[0],e=v.findIndex((function(e){return e.data.value===A}));-1!==e&&(P(e),S(e))}}));r&&(null===(A=k.current)||void 0===A||A.scrollTo(void 0));return function(){return clearTimeout(e)}}),[r,s]);var G=function(A){void 0!==A&&d(A,{selected:!p.has(A)}),i||l(!1)};if(J.useImperativeHandle(e,(function(){return{onKeyDown:function(A){var e=A.which,t=A.ctrlKey;switch(e){case rD.N:case rD.P:case rD.UP:case rD.DOWN:var n=0;if(e===rD.UP?n=-1:e===rD.DOWN?n=1:/(mac\sos|macintosh)/i.test(navigator.appVersion)&&t&&(e===rD.N?n=1:e===rD.P&&(n=-1)),0!==n){var o=F(R+n,n);S(o),P(o,!0)}break;case rD.ENTER:var i,a=v[R];!a||null!=a&&null!==(i=a.data)&&void 0!==i&&i.disabled||M?G(void 0):G(a.value),r&&A.preventDefault();break;case rD.ESC:l(!1),r&&A.stopPropagation()}},onKeyUp:function(){},scrollTo:function(A){S(A)}}})),0===v.length)return J.createElement("div",{role:"listbox",id:"".concat(o,"_list"),className:"".concat(b,"-empty"),onMouseDown:x},g);var O=Object.keys(f).map((function(A){return f[A]})),U=function(A){return A.label};function K(A,e){return{role:A.group?"presentation":"option",id:"".concat(o,"_list_").concat(e)}}var Y=function(A){var e=v[A];if(!e)return null;var t=e.data||{},n=t.value,o=e.group,r=Lw(t,!0),i=U(e);return e?J.createElement("div",BQ({"aria-label":"string"!=typeof i||o?null:i},r,{key:A},K(e,A),{"aria-selected":H(n)}),n):null},T={role:"listbox",id:"".concat(o,"_list")};return J.createElement(J.Fragment,null,h&&J.createElement("div",BQ({},T,{style:{height:0,width:0,overflow:"hidden"}}),Y(R-1),Y(R),Y(R+1)),J.createElement(Kx,{itemKey:"key",ref:k,data:v,height:D,itemHeight:m,fullHeight:!1,onMouseDown:x,onScroll:c,virtual:h,direction:w,innerProps:h?null:T},(function(A,e){var t=A.group,n=A.groupOption,o=A.data,r=A.label,i=A.value,a=o.key;if(t){var s,l=null!==(s=o.title)&&void 0!==s?s:Tx(r)?r.toString():void 0;return J.createElement("div",{className:ud(b,"".concat(b,"-group"),o.className),title:l},void 0!==r?r:a)}var g=o.disabled,c=o.title;o.children;var u=o.style,B=o.className,Q=wI(Mc(o,Yx),O),E=H(i),C=g||!E&&M,d="".concat(b,"-option"),p=ud(b,d,B,bc(bc(bc(bc({},"".concat(d,"-grouped"),n),"".concat(d,"-active"),R===e&&!C),"".concat(d,"-disabled"),C),"".concat(d,"-selected"),E)),f=U(A),w=!I||"function"==typeof I||E,D="number"==typeof f?f:f||i,m=Tx(D)?D.toString():void 0;return void 0!==c&&(m=c),J.createElement("div",BQ({},Lw(Q),h?{}:K(A,e),{"aria-selected":E,className:p,title:m,onMouseMove:function(){R===e||C||P(e)},onClick:function(){C||G(i)},style:u}),J.createElement("div",{className:"".concat(d,"-content")},"function"==typeof y?y(A,{index:e}):D),J.isValidElement(I)||E,w&&J.createElement(lM,{className:"".concat(b,"-option-state"),customizeIcon:I,customizeIconProps:{value:i,disabled:C,isSelected:E}},E?"โœ“":null))})))},jx=J.forwardRef(Jx);function qx(A,e){return FM(A).join("").toUpperCase().includes(e)}var $x=0,zx=ZQ();function Wx(A){var e=WQ(J.useState(),2),t=e[0],n=e[1];return J.useEffect((function(){var A;n("rc_select_".concat((zx?(A=$x,$x+=1):A="TEST_OR_SSR",A)))}),[]),A||t}var _x=["children","value"],Xx=["children"];function Vx(A){var e=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return Fd(A).map((function(A,t){if(!J.isValidElement(A)||!A.type)return null;var n=A,o=n.type.isSelectOptGroup,r=n.key,i=n.props,a=i.children,s=Mc(i,Xx);return e||!o?function(A){var e=A,t=e.key,n=e.props,o=n.children,r=n.value;return kc({key:t,value:void 0!==r?r:t,children:o},Mc(n,_x))}(A):kc(kc({key:"__RC_SELECT_GRP__".concat(null===r?t:r,"__"),label:r},s),{},{options:Vx(a)})})).filter((function(A){return A}))}function Zx(A){var e=J.useRef();e.current=A;var t=J.useCallback((function(){return e.current.apply(e,arguments)}),[]);return t}var AS=["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"],eS=["inputValue"];var tS=J.forwardRef((function(A,e){var t=A.id,n=A.mode,o=A.prefixCls,r=void 0===o?"rc-select":o,i=A.backfill,a=A.fieldNames,s=A.inputValue,l=A.searchValue,g=A.onSearch,c=A.autoClearSearchValue,u=void 0===c||c,B=A.onSelect,Q=A.onDeselect,E=A.dropdownMatchSelectWidth,C=void 0===E||E,d=A.filterOption,I=A.filterSort,p=A.optionFilterProp,f=A.optionLabelProp,h=A.options,w=A.optionRender,D=A.children,m=A.defaultActiveFirstOption,y=A.menuItemSelectedIcon,b=A.virtual,v=A.direction,k=A.listHeight,M=void 0===k?200:k,x=A.listItemHeight,S=void 0===x?20:x,F=A.labelRender,N=A.value,R=A.defaultValue,L=A.labelInValue,P=A.onChange,H=A.maxCount,G=Mc(A,AS),O=Wx(t),U=fx(n),K=!(h||!D),Y=J.useMemo((function(){return(void 0!==d||"combobox"!==n)&&d}),[d,n]),T=J.useMemo((function(){return Qx(a,K)}),[JSON.stringify(a),K]),j=WQ(vf("",{value:void 0!==l?l:s,postState:function(A){return A||""}}),2),q=j[0],$=j[1],z=function(A,e,t,n,o){return J.useMemo((function(){var r=A;!A&&(r=Vx(e));var i=new Map,a=new Map,s=function(A,e,t){t&&"string"==typeof t&&A.set(e[t],e)};return function A(e){for(var r=arguments.length>1&&void 0!==arguments[1]&&arguments[1],l=0;l1&&void 0!==arguments[1]?arguments[1]:{},t=e.fieldNames,n=e.childrenAsData,o=[],r=Qx(t,!1),i=r.label,a=r.value,s=r.options,l=r.groupLabel;return function A(e,t){Array.isArray(e)&&e.forEach((function(e){if(t||!(s in e)){var r=e[a];o.push({key:ux(e,o.length),groupOption:t,data:e,label:e[i],value:r})}else{var g=e[l];void 0===g&&n&&(g=e.label),o.push({key:ux(e,o.length),group:!0,data:e,label:g}),A(e[s],!0)}}))}(A,!1),o}(BA,{fieldNames:T,childrenAsData:K})}),[BA,T,K]),EA=function(A){var e=V(A);if(eA(e),P&&(e.length!==rA.length||e.some((function(A,e){var t;return(null===(t=rA[e])||void 0===t?void 0:t.value)!==(null==A?void 0:A.value)})))){var t=L?e:e.map((function(A){return A.value})),n=e.map((function(A){return Ex(iA(A.value))}));P(U?t:t[0],U?n:n[0])}},CA=WQ(J.useState(null),2),dA=CA[0],IA=CA[1],pA=WQ(J.useState(0),2),fA=pA[0],hA=pA[1],wA=void 0!==m?m:"combobox"!==n,DA=J.useCallback((function(A,e){var t=(arguments.length>2&&void 0!==arguments[2]?arguments[2]:{}).source,o=void 0===t?"keyboard":t;hA(e),i&&"combobox"===n&&null!==A&&"keyboard"===o&&IA(String(A))}),[i,n]),mA=function(A,e,t){var n=function(){var e,t=iA(A);return[L?{label:null==t?void 0:t[T.label],value:A,key:null!==(e=null==t?void 0:t.key)&&void 0!==e?e:A}:A,Ex(t)]};if(e&&B){var o=WQ(n(),2),r=o[0],i=o[1];B(r,i)}else if(!e&&Q&&"clear"!==t){var a=WQ(n(),2),s=a[0],l=a[1];Q(s,l)}},yA=Zx((function(A,e){var t,o=!U||e.selected;t=o?U?[].concat(XQ(rA),[A]):[A]:rA.filter((function(e){return e.value!==A})),EA(t),mA(A,o),"combobox"===n?IA(""):fx&&!u||($(""),IA(""))})),bA=J.useMemo((function(){var A=!1!==b&&!1!==C;return kc(kc({},z),{},{flattenOptions:QA,onActiveValue:DA,defaultActiveFirstOption:wA,onSelect:yA,menuItemSelectedIcon:y,rawValues:sA,fieldNames:T,virtual:A,direction:v,listHeight:M,listItemHeight:S,childrenAsData:K,maxCount:H,optionRender:w})}),[H,z,QA,DA,wA,yA,y,sA,T,b,C,v,M,S,K,w]);return J.createElement(Cx.Provider,{value:bA},J.createElement(hx,BQ({},G,{id:O,prefixCls:r,ref:e,omitDomProps:eS,mode:n,displayValues:aA,onDisplayValuesChange:function(A,e){EA(A);var t=e.type,n=e.values;"remove"!==t&&"clear"!==t||n.forEach((function(A){mA(A.value,!1,t)}))},direction:v,searchValue:q,onSearch:function(A,e){if($(A),IA(null),"submit"!==e.source)"blur"!==e.source&&("combobox"===n&&EA(A),null==g||g(A));else{var t=(A||"").trim();if(t){var o=Array.from(new Set([].concat(XQ(sA),[t])));EA(o),mA(t,!0),$("")}}},autoClearSearchValue:u,onSearchSplit:function(A){var e=A;"tags"!==n&&(e=A.map((function(A){var e=_.get(A);return null==e?void 0:e.value})).filter((function(A){return void 0!==A})));var t=Array.from(new Set([].concat(XQ(sA),XQ(e))));EA(t),t.forEach((function(A){mA(A,!0)}))},dropdownMatchSelectWidth:C,OptionList:jx,emptyOptions:!QA.length,activeValue:dA,activeDescendantId:"".concat(O,"_list_").concat(fA)})))})),nS=tS;function oS(A,e,t){return ud({[`${A}-status-success`]:"success"===e,[`${A}-status-warning`]:"warning"===e,[`${A}-status-error`]:"error"===e,[`${A}-status-validating`]:"validating"===e,[`${A}-has-feedback`]:t})}nS.Option=Dx,nS.OptGroup=wx;const rS=(A,e)=>e||A,iS=()=>{const[,A]=Cf(),e=new Cp(A.colorBgBase).toHsl().l<.5?{opacity:.65}:{};return J.createElement("svg",{style:e,width:"184",height:"152",viewBox:"0 0 184 152",xmlns:"http://www.w3.org/2000/svg"},J.createElement("g",{fill:"none",fillRule:"evenodd"},J.createElement("g",{transform:"translate(24 31.67)"},J.createElement("ellipse",{fillOpacity:".8",fill:"#F5F5F7",cx:"67.797",cy:"106.89",rx:"67.797",ry:"12.668"}),J.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"}),J.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)"}),J.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"}),J.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"})),J.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"}),J.createElement("g",{transform:"translate(149.65 15.383)",fill:"#FFF"},J.createElement("ellipse",{cx:"20.654",cy:"3.167",rx:"2.849",ry:"2.815"}),J.createElement("path",{d:"M5.698 5.63H0L2.898.704zM9.259.704h4.985V5.63H9.259z"}))))},aS=()=>{const[,A]=Cf(),{colorFill:e,colorFillTertiary:t,colorFillQuaternary:n,colorBgContainer:o}=A,{borderColor:r,shadowColor:i,contentColor:a}=J.useMemo((()=>({borderColor:new Cp(e).onBackground(o).toHexShortString(),shadowColor:new Cp(t).onBackground(o).toHexShortString(),contentColor:new Cp(n).onBackground(o).toHexShortString()})),[e,t,n,o]);return J.createElement("svg",{width:"64",height:"41",viewBox:"0 0 64 41",xmlns:"http://www.w3.org/2000/svg"},J.createElement("g",{transform:"translate(0 1)",fill:"none",fillRule:"evenodd"},J.createElement("ellipse",{fill:i,cx:"32",cy:"33",rx:"32",ry:"7"}),J.createElement("g",{fillRule:"nonzero",stroke:r},J.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"}),J.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:a}))))},sS=A=>{const{componentCls:e,margin:t,marginXS:n,marginXL:o,fontSize:r,lineHeight:i}=A;return{[e]:{marginInline:n,fontSize:r,lineHeight:i,textAlign:"center",[`${e}-image`]:{height:A.emptyImgHeight,marginBottom:n,opacity:A.opacityImage,img:{height:"100%"},svg:{maxWidth:"100%",height:"100%",margin:"auto"}},[`${e}-description`]:{color:A.colorText},[`${e}-footer`]:{marginTop:t},"&-normal":{marginBlock:o,color:A.colorTextDescription,[`${e}-description`]:{color:A.colorTextDescription},[`${e}-image`]:{height:A.emptyImgHeightMD}},"&-small":{marginBlock:n,color:A.colorTextDescription,[`${e}-image`]:{height:A.emptyImgHeightSM}}}}},lS=jf("Empty",(A=>{const{componentCls:e,controlHeightLG:t,calc:n}=A,o=Pf(A,{emptyImgCls:`${e}-img`,emptyImgHeight:n(t).mul(2.5).equal(),emptyImgHeightMD:t,emptyImgHeightSM:n(t).mul(.875).equal()});return[sS(o)]}));const gS=J.createElement(iS,null),cS=J.createElement(aS,null),uS=A=>{var{className:e,rootClassName:t,prefixCls:n,image:o=gS,description:r,children:i,imageStyle:a,style:s}=A,l=function(A,e){var t={};for(var n in A)Object.prototype.hasOwnProperty.call(A,n)&&e.indexOf(n)<0&&(t[n]=A[n]);if(null!=A&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(n=Object.getOwnPropertySymbols(A);o{const{componentName:e}=A,{getPrefixCls:t}=J.useContext(Xp),n=t("empty");switch(e){case"Table":case"List":return j.createElement(uS,{image:uS.PRESENTED_IMAGE_SIMPLE});case"Select":case"TreeSelect":case"Cascader":case"Transfer":case"Mentions":return j.createElement(uS,{image:uS.PRESENTED_IMAGE_SIMPLE,className:`${n}-small`});default:return j.createElement(uS,null)}},QS=["outlined","borderless","filled"],ES=function(A){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:void 0;const t=J.useContext(uv);let n;n=void 0!==A?A:!1===e?"borderless":null!=t?t:"outlined";return[n,QS.includes(n)]};function CS(A,e){return A||(A=>{const e={overflow:{adjustX:!0,adjustY:!0,shiftY:!0},htmlRegion:"scroll"===A?"scroll":"visible",dynamicInset:!0};return{bottomLeft:Object.assign(Object.assign({},e),{points:["tl","bl"],offset:[0,4]}),bottomRight:Object.assign(Object.assign({},e),{points:["tr","br"],offset:[0,4]}),topLeft:Object.assign(Object.assign({},e),{points:["bl","tl"],offset:[0,-4]}),topRight:Object.assign(Object.assign({},e),{points:["br","tr"],offset:[0,-4]})}})(e)}const dS=A=>{const{optionHeight:e,optionFontSize:t,optionLineHeight:n,optionPadding:o}=A;return{position:"relative",display:"block",minHeight:e,padding:o,color:A.colorText,fontWeight:"normal",fontSize:t,lineHeight:n,boxSizing:"border-box"}},IS=A=>{const{antCls:e,componentCls:t}=A,n=`${t}-item`,o=`&${e}-slide-up-enter${e}-slide-up-enter-active`,r=`&${e}-slide-up-appear${e}-slide-up-appear-active`,i=`&${e}-slide-up-leave${e}-slide-up-leave-active`,a=`${t}-dropdown-placement-`;return[{[`${t}-dropdown`]:Object.assign(Object.assign({},Mf(A)),{position:"absolute",top:-9999,zIndex:A.zIndexPopup,boxSizing:"border-box",padding:A.paddingXXS,overflow:"hidden",fontSize:A.fontSize,fontVariant:"initial",backgroundColor:A.colorBgElevated,borderRadius:A.borderRadiusLG,outline:"none",boxShadow:A.boxShadowSecondary,[`\n ${o}${a}bottomLeft,\n ${r}${a}bottomLeft\n `]:{animationName:Lv},[`\n ${o}${a}topLeft,\n ${r}${a}topLeft,\n ${o}${a}topRight,\n ${r}${a}topRight\n `]:{animationName:Hv},[`${i}${a}bottomLeft`]:{animationName:Pv},[`\n ${i}${a}topLeft,\n ${i}${a}topRight\n `]:{animationName:Gv},"&-hidden":{display:"none"},[`${n}`]:Object.assign(Object.assign({},dS(A)),{cursor:"pointer",transition:`background ${A.motionDurationSlow} ease`,borderRadius:A.borderRadiusSM,"&-group":{color:A.colorTextDescription,fontSize:A.fontSizeSM,cursor:"default"},"&-option":{display:"flex","&-content":Object.assign({flex:"auto"},kf),"&-state":{flex:"none",display:"flex",alignItems:"center"},[`&-active:not(${n}-option-disabled)`]:{backgroundColor:A.optionActiveBg},[`&-selected:not(${n}-option-disabled)`]:{color:A.optionSelectedColor,fontWeight:A.optionSelectedFontWeight,backgroundColor:A.optionSelectedBg,[`${n}-option-state`]:{color:A.colorPrimary},[`&:has(+ ${n}-option-selected:not(${n}-option-disabled))`]:{borderEndStartRadius:0,borderEndEndRadius:0,[`& + ${n}-option-selected:not(${n}-option-disabled)`]:{borderStartStartRadius:0,borderStartEndRadius:0}}},"&-disabled":{[`&${n}-option-selected`]:{backgroundColor:A.colorBgContainerDisabled},color:A.colorTextDisabled,cursor:"not-allowed"},"&-grouped":{paddingInlineStart:A.calc(A.controlPaddingHorizontal).mul(2).equal()}},"&-empty":Object.assign(Object.assign({},dS(A)),{color:A.colorTextDisabled})}),"&-rtl":{direction:"rtl"}})},Jv(A,"slide-up"),Jv(A,"slide-down"),Rv(A,"move-up"),Rv(A,"move-down")]},pS=A=>{const{componentCls:e,iconCls:t,borderRadiusSM:n,motionDurationSlow:o,paddingXS:r,multipleItemColorDisabled:i,multipleItemBorderColorDisabled:a,colorIcon:s,colorIconHover:l,INTERNAL_FIXED_ITEM_MARGIN:g}=A,c=`${e}-selection-overflow`;return{[c]:{position:"relative",display:"flex",flex:"auto",flexWrap:"wrap",maxWidth:"100%","&-item":{flex:"none",alignSelf:"center",maxWidth:"100%",display:"inline-flex"},[`${e}-selection-item`]:{display:"flex",alignSelf:"center",flex:"none",boxSizing:"border-box",maxWidth:"100%",marginBlock:g,borderRadius:n,cursor:"default",transition:`font-size ${o}, line-height ${o}, height ${o}`,marginInlineEnd:A.calc(g).mul(2).equal(),paddingInlineStart:r,paddingInlineEnd:A.calc(r).div(2).equal(),[`${e}-disabled&`]:{color:i,borderColor:a,cursor:"not-allowed"},"&-content":{display:"inline-block",marginInlineEnd:A.calc(r).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",[`> ${t}`]:{verticalAlign:"-0.2em"},"&:hover":{color:l}})}}}},fS=(A,e)=>{const{componentCls:t,INTERNAL_FIXED_ITEM_MARGIN:n}=A,o=`${t}-selection-overflow`,r=A.multipleSelectItemHeight,i=(A=>{const{multipleSelectItemHeight:e,selectHeight:t,lineWidth:n}=A;return A.calc(t).sub(e).div(2).sub(n).equal()})(A),a=e?`${t}-${e}`:"",s=(A=>{const{multipleSelectItemHeight:e,paddingXXS:t,lineWidth:n,INTERNAL_FIXED_ITEM_MARGIN:o}=A,r=A.max(A.calc(t).sub(n).equal(),0);return{basePadding:r,containerPadding:A.max(A.calc(r).sub(o).equal(),0),itemHeight:UE(e),itemLineHeight:UE(A.calc(e).sub(A.calc(A.lineWidth).mul(2)).equal())}})(A);return{[`${t}-multiple${a}`]:Object.assign(Object.assign({},pS(A)),{[`${t}-selector`]:{display:"flex",flexWrap:"wrap",alignItems:"center",height:"100%",paddingInline:s.basePadding,paddingBlock:s.containerPadding,borderRadius:A.borderRadius,[`${t}-disabled&`]:{background:A.multipleSelectorBgDisabled,cursor:"not-allowed"},"&:after":{display:"inline-block",width:0,margin:`${UE(n)} 0`,lineHeight:UE(r),visibility:"hidden",content:'"\\a0"'}},[`${t}-selection-item`]:{height:s.itemHeight,lineHeight:UE(s.itemLineHeight)},[`${o}-item + ${o}-item`]:{[`${t}-selection-search`]:{marginInlineStart:0}},[`${o}-item-suffix`]:{height:"100%"},[`${t}-selection-search`]:{display:"inline-flex",position:"relative",maxWidth:"100%",marginInlineStart:A.calc(A.inputPaddingHorizontalBase).sub(i).equal(),"\n &-input,\n &-mirror\n ":{height:r,fontFamily:A.fontFamily,lineHeight:UE(r),transition:`all ${A.motionDurationSlow}`},"&-input":{width:"100%",minWidth:4.1},"&-mirror":{position:"absolute",top:0,insetInlineStart:0,insetInlineEnd:"auto",zIndex:999,whiteSpace:"pre",visibility:"hidden"}},[`${t}-selection-placeholder`]:{position:"absolute",top:"50%",insetInlineStart:A.inputPaddingHorizontalBase,insetInlineEnd:A.inputPaddingHorizontalBase,transform:"translateY(-50%)",transition:`all ${A.motionDurationSlow}`}})}};function hS(A,e){const{componentCls:t}=A,n=e?`${t}-${e}`:"",o={[`${t}-multiple${n}`]:{fontSize:A.fontSize,[`${t}-selector`]:{[`${t}-show-search&`]:{cursor:"text"}},[`\n &${t}-show-arrow ${t}-selector,\n &${t}-allow-clear ${t}-selector\n `]:{paddingInlineEnd:A.calc(A.fontSizeIcon).add(A.controlPaddingHorizontal).equal()}}};return[fS(A,e),o]}const wS=A=>{const{componentCls:e}=A,t=Pf(A,{selectHeight:A.controlHeightSM,multipleSelectItemHeight:A.multipleItemHeightSM,borderRadius:A.borderRadiusSM,borderRadiusSM:A.borderRadiusXS}),n=Pf(A,{fontSize:A.fontSizeLG,selectHeight:A.controlHeightLG,multipleSelectItemHeight:A.multipleItemHeightLG,borderRadius:A.borderRadiusLG,borderRadiusSM:A.borderRadius});return[hS(A),hS(t,"sm"),{[`${e}-multiple${e}-sm`]:{[`${e}-selection-placeholder`]:{insetInline:A.calc(A.controlPaddingHorizontalSM).sub(A.lineWidth).equal()},[`${e}-selection-search`]:{marginInlineStart:2}}},hS(n,"lg")]};function DS(A,e){const{componentCls:t,inputPaddingHorizontalBase:n,borderRadius:o}=A,r=A.calc(A.controlHeight).sub(A.calc(A.lineWidth).mul(2)).equal(),i=e?`${t}-${e}`:"";return{[`${t}-single${i}`]:{fontSize:A.fontSize,height:A.controlHeight,[`${t}-selector`]:Object.assign(Object.assign({},Mf(A,!0)),{display:"flex",borderRadius:o,[`${t}-selection-search`]:{position:"absolute",top:0,insetInlineStart:n,insetInlineEnd:n,bottom:0,"&-input":{width:"100%",WebkitAppearance:"textfield"}},[`\n ${t}-selection-item,\n ${t}-selection-placeholder\n `]:{padding:0,lineHeight:UE(r),transition:`all ${A.motionDurationSlow}, visibility 0s`,alignSelf:"center"},[`${t}-selection-placeholder`]:{transition:"none",pointerEvents:"none"},[["&:after",`${t}-selection-item:empty:after`,`${t}-selection-placeholder:empty:after`].join(",")]:{display:"inline-block",width:0,visibility:"hidden",content:'"\\a0"'}}),[`\n &${t}-show-arrow ${t}-selection-item,\n &${t}-show-arrow ${t}-selection-placeholder\n `]:{paddingInlineEnd:A.showArrowPaddingInlineEnd},[`&${t}-open ${t}-selection-item`]:{color:A.colorTextPlaceholder},[`&:not(${t}-customize-input)`]:{[`${t}-selector`]:{width:"100%",height:"100%",padding:`0 ${UE(n)}`,[`${t}-selection-search-input`]:{height:r},"&:after":{lineHeight:UE(r)}}},[`&${t}-customize-input`]:{[`${t}-selector`]:{"&:after":{display:"none"},[`${t}-selection-search`]:{position:"static",width:"100%"},[`${t}-selection-placeholder`]:{position:"absolute",insetInlineStart:0,insetInlineEnd:0,padding:`0 ${UE(n)}`,"&:after":{display:"none"}}}}}}}function mS(A){const{componentCls:e}=A,t=A.calc(A.controlPaddingHorizontalSM).sub(A.lineWidth).equal();return[DS(A),DS(Pf(A,{controlHeight:A.controlHeightSM,borderRadius:A.borderRadiusSM}),"sm"),{[`${e}-single${e}-sm`]:{[`&:not(${e}-customize-input)`]:{[`${e}-selection-search`]:{insetInlineStart:t,insetInlineEnd:t},[`${e}-selector`]:{padding:`0 ${UE(t)}`},[`&${e}-show-arrow ${e}-selection-search`]:{insetInlineEnd:A.calc(t).add(A.calc(A.fontSize).mul(1.5)).equal()},[`\n &${e}-show-arrow ${e}-selection-item,\n &${e}-show-arrow ${e}-selection-placeholder\n `]:{paddingInlineEnd:A.calc(A.fontSize).mul(1.5).equal()}}}},DS(Pf(A,{controlHeight:A.singleItemHeightLG,fontSize:A.fontSizeLG,borderRadius:A.borderRadiusLG}),"lg")]}const yS=(A,e)=>{const{componentCls:t,antCls:n,controlOutlineWidth:o}=A;return{[`&:not(${t}-customize-input) ${t}-selector`]:{border:`${UE(A.lineWidth)} ${A.lineType} ${e.borderColor}`,background:A.selectorBg},[`&:not(${t}-disabled):not(${t}-customize-input):not(${n}-pagination-size-changer)`]:{[`&:hover ${t}-selector`]:{borderColor:e.hoverBorderHover},[`${t}-focused& ${t}-selector`]:{borderColor:e.activeBorderColor,boxShadow:`0 0 0 ${UE(o)} ${e.activeShadowColor}`,outline:0}}}},bS=(A,e)=>({[`&${A.componentCls}-status-${e.status}`]:Object.assign({},yS(A,e))}),vS=A=>({"&-outlined":Object.assign(Object.assign(Object.assign(Object.assign({},yS(A,{borderColor:A.colorBorder,hoverBorderHover:A.colorPrimaryHover,activeBorderColor:A.colorPrimary,activeShadowColor:A.controlOutline})),bS(A,{status:"error",borderColor:A.colorError,hoverBorderHover:A.colorErrorHover,activeBorderColor:A.colorError,activeShadowColor:A.colorErrorOutline})),bS(A,{status:"warning",borderColor:A.colorWarning,hoverBorderHover:A.colorWarningHover,activeBorderColor:A.colorWarning,activeShadowColor:A.colorWarningOutline})),{[`&${A.componentCls}-disabled`]:{[`&:not(${A.componentCls}-customize-input) ${A.componentCls}-selector`]:{background:A.colorBgContainerDisabled,color:A.colorTextDisabled}},[`&${A.componentCls}-multiple ${A.componentCls}-selection-item`]:{background:A.multipleItemBg,border:`${UE(A.lineWidth)} ${A.lineType} ${A.multipleItemBorderColor}`}})}),kS=(A,e)=>{const{componentCls:t,antCls:n}=A;return{[`&:not(${t}-customize-input) ${t}-selector`]:{background:e.bg,border:`${UE(A.lineWidth)} ${A.lineType} transparent`,color:e.color},[`&:not(${t}-disabled):not(${t}-customize-input):not(${n}-pagination-size-changer)`]:{[`&:hover ${t}-selector`]:{background:e.hoverBg},[`${t}-focused& ${t}-selector`]:{background:A.selectorBg,borderColor:e.activeBorderColor,outline:0}}}},MS=(A,e)=>({[`&${A.componentCls}-status-${e.status}`]:Object.assign({},kS(A,e))}),xS=A=>({"&-filled":Object.assign(Object.assign(Object.assign(Object.assign({},kS(A,{bg:A.colorFillTertiary,hoverBg:A.colorFillSecondary,activeBorderColor:A.colorPrimary,color:A.colorText})),MS(A,{status:"error",bg:A.colorErrorBg,hoverBg:A.colorErrorBgHover,activeBorderColor:A.colorError,color:A.colorError})),MS(A,{status:"warning",bg:A.colorWarningBg,hoverBg:A.colorWarningBgHover,activeBorderColor:A.colorWarning,color:A.colorWarning})),{[`&${A.componentCls}-disabled`]:{[`&:not(${A.componentCls}-customize-input) ${A.componentCls}-selector`]:{borderColor:A.colorBorder,background:A.colorBgContainerDisabled,color:A.colorTextDisabled}},[`&${A.componentCls}-multiple ${A.componentCls}-selection-item`]:{background:A.colorBgContainer,border:`${UE(A.lineWidth)} ${A.lineType} ${A.colorSplit}`}})}),SS=A=>({"&-borderless":{[`${A.componentCls}-selector`]:{background:"transparent",borderColor:"transparent"},[`&${A.componentCls}-disabled`]:{[`&:not(${A.componentCls}-customize-input) ${A.componentCls}-selector`]:{color:A.colorTextDisabled}},[`&${A.componentCls}-multiple ${A.componentCls}-selection-item`]:{background:A.multipleItemBg,border:`${UE(A.lineWidth)} ${A.lineType} ${A.multipleItemBorderColor}`}}}),FS=A=>({[A.componentCls]:Object.assign(Object.assign(Object.assign({},vS(A)),xS(A)),SS(A))}),NS=A=>{const{componentCls:e}=A;return{position:"relative",transition:`all ${A.motionDurationMid} ${A.motionEaseInOut}`,input:{cursor:"pointer"},[`${e}-show-search&`]:{cursor:"text",input:{cursor:"auto",color:"inherit",height:"100%"}},[`${e}-disabled&`]:{cursor:"not-allowed",input:{cursor:"not-allowed"}}}},RS=A=>{const{componentCls:e}=A;return{[`${e}-selection-search-input`]:{margin:0,padding:0,background:"transparent",border:"none",outline:"none",appearance:"none",fontFamily:"inherit","&::-webkit-search-cancel-button":{display:"none","-webkit-appearance":"none"}}}},LS=A=>{const{antCls:e,componentCls:t,inputPaddingHorizontalBase:n,iconCls:o}=A;return{[t]:Object.assign(Object.assign({},Mf(A)),{position:"relative",display:"inline-block",cursor:"pointer",[`&:not(${t}-customize-input) ${t}-selector`]:Object.assign(Object.assign({},NS(A)),RS(A)),[`${t}-selection-item`]:Object.assign(Object.assign({flex:1,fontWeight:"normal",position:"relative",userSelect:"none"},kf),{[`> ${e}-typography`]:{display:"inline"}}),[`${t}-selection-placeholder`]:Object.assign(Object.assign({},kf),{flex:1,color:A.colorTextPlaceholder,pointerEvents:"none"}),[`${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"}}),{position:"absolute",top:"50%",insetInlineStart:"auto",insetInlineEnd:n,height:A.fontSizeIcon,marginTop:A.calc(A.fontSizeIcon).mul(-1).div(2).equal(),color:A.colorTextQuaternary,fontSize:A.fontSizeIcon,lineHeight:1,textAlign:"center",pointerEvents:"none",display:"flex",alignItems:"center",transition:`opacity ${A.motionDurationSlow} ease`,[o]:{verticalAlign:"top",transition:`transform ${A.motionDurationSlow}`,"> svg":{verticalAlign:"top"},[`&:not(${t}-suffix)`]:{pointerEvents:"auto"}},[`${t}-disabled &`]:{cursor:"not-allowed"},"> *:not(:last-child)":{marginInlineEnd:8}}),[`${t}-clear`]:{position:"absolute",top:"50%",insetInlineStart:"auto",insetInlineEnd:n,zIndex:1,display:"inline-block",width:A.fontSizeIcon,height:A.fontSizeIcon,marginTop:A.calc(A.fontSizeIcon).mul(-1).div(2).equal(),color:A.colorTextQuaternary,fontSize:A.fontSizeIcon,fontStyle:"normal",lineHeight:1,textAlign:"center",textTransform:"none",cursor:"pointer",opacity:0,transition:`color ${A.motionDurationMid} ease, opacity ${A.motionDurationSlow} ease`,textRendering:"auto","&:before":{display:"block"},"&:hover":{color:A.colorTextTertiary}},"&:hover":{[`${t}-clear`]:{opacity:1},[`${t}-arrow:not(:last-child)`]:{opacity:0}}}),[`${t}-has-feedback`]:{[`${t}-clear`]:{insetInlineEnd:A.calc(n).add(A.fontSize).add(A.paddingXS).equal()}}}},PS=A=>{const{componentCls:e}=A;return[{[e]:{[`&${e}-in-form-item`]:{width:"100%"}}},LS(A),mS(A),wS(A),IS(A),{[`${e}-rtl`]:{direction:"rtl"}},cy(A,{borderElCls:`${e}-selector`,focusElCls:`${e}-focused`})]},HS=jf("Select",((A,e)=>{let{rootPrefixCls:t}=e;const n=Pf(A,{rootPrefixCls:t,inputPaddingHorizontalBase:A.calc(A.paddingSM).sub(1).equal(),multipleSelectItemHeight:A.multipleItemHeight,selectHeight:A.controlHeight});return[PS(n),FS(n)]}),(A=>{const{fontSize:e,lineHeight:t,lineWidth:n,controlHeight:o,controlHeightSM:r,controlHeightLG:i,paddingXXS:a,controlPaddingHorizontal:s,zIndexPopupBase:l,colorText:g,fontWeightStrong:c,controlItemBgActive:u,controlItemBgHover:B,colorBgContainer:Q,colorFillSecondary:E,colorBgContainerDisabled:C,colorTextDisabled:d}=A,I=2*a,p=2*n,f=Math.min(o-I,o-p),h=Math.min(r-I,r-p),w=Math.min(i-I,i-p);return{INTERNAL_FIXED_ITEM_MARGIN:Math.floor(a/2),zIndexPopup:l+50,optionSelectedColor:g,optionSelectedFontWeight:c,optionSelectedBg:u,optionActiveBg:B,optionPadding:`${(o-e*t)/2}px ${s}px`,optionFontSize:e,optionLineHeight:t,optionHeight:o,selectorBg:Q,clearBg:Q,singleItemHeightLG:i,multipleItemBg:E,multipleItemBorderColor:"transparent",multipleItemHeight:f,multipleItemHeightSM:h,multipleItemHeightLG:w,multipleSelectorBgDisabled:C,multipleItemColorDisabled:d,multipleItemBorderColorDisabled:"transparent",showArrowPaddingInlineEnd:Math.ceil(1.25*A.fontSize)}}),{unitless:{optionLineHeight:!0,optionSelectedFontWeight:!0}});var GS={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"},OS=function(A,e){return J.createElement(Cw,BQ({},A,{ref:e,icon:GS}))},US=J.forwardRef(OS),KS={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"},YS=function(A,e){return J.createElement(Cw,BQ({},A,{ref:e,icon:KS}))},TS=J.forwardRef(YS),JS={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"},jS=function(A,e){return J.createElement(Cw,BQ({},A,{ref:e,icon:JS}))},qS=J.forwardRef(jS);const $S="SECRET_COMBOBOX_MODE_DO_NOT_USE",zS=(A,e)=>{var t;const{prefixCls:n,bordered:o,className:r,rootClassName:i,getPopupContainer:a,popupClassName:s,dropdownClassName:l,listHeight:g=256,placement:c,listItemHeight:u,size:B,disabled:Q,notFoundContent:E,status:C,builtinPlacements:d,dropdownMatchSelectWidth:I,popupMatchSelectWidth:p,direction:f,style:h,allowClear:w,variant:D,dropdownStyle:m,transitionName:y,tagRender:b,maxCount:v}=A,k=function(A,e){var t={};for(var n in A)Object.prototype.hasOwnProperty.call(A,n)&&e.indexOf(n)<0&&(t[n]=A[n]);if(null!=A&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(n=Object.getOwnPropertySymbols(A);o{const{mode:e}=A;if("combobox"!==e)return e===$S?"combobox":e}),[A.mode]),V="multiple"===X||"tags"===X,Z=function(A,e){return void 0!==e?e:null!==A}(A.suffixIcon,A.showArrow),AA=null!==(t=null!=p?p:I)&&void 0!==t?t:R,{status:eA,hasFeedback:tA,isFormItemInput:nA,feedbackIcon:oA}=J.useContext(gv),rA=rS(eA,C);let iA;iA=void 0!==E?E:"combobox"===X?null:(null==S?void 0:S("Select"))||J.createElement(BS,{componentName:"Select"});const{suffixIcon:aA,itemIcon:sA,removeIcon:lA,clearIcon:gA}=function(A){let{suffixIcon:e,clearIcon:t,menuItemSelectedIcon:n,removeIcon:o,loading:r,multiple:i,hasFeedback:a,prefixCls:s,showSuffixIcon:l,feedbackIcon:g,showArrow:c,componentName:u}=A;const B=null!=t?t:J.createElement(hw,null),Q=A=>null!==e||a||c?J.createElement(J.Fragment,null,!1!==l&&A,a&&g):null;let E=null;if(void 0!==e)E=Q(e);else if(r)E=Q(J.createElement(ID,{spin:!0}));else{const A=`${s}-suffix`;E=e=>{let{open:t,showSearch:n}=e;return Q(t&&n?J.createElement(qS,{className:A}):J.createElement(TS,{className:A}))}}let C=null;C=void 0!==n?n:i?J.createElement(US,null):null;let d=null;return d=void 0!==o?o:J.createElement(mw,null),{clearIcon:B,suffixIcon:E,itemIcon:C,removeIcon:d}}(Object.assign(Object.assign({},k),{multiple:V,hasFeedback:tA,feedbackIcon:oA,showSuffixIcon:Z,prefixCls:O,componentName:"Select"})),cA=!0===w?{clearIcon:gA}:w,uA=wI(k,["suffixIcon","itemIcon"]),BA=ud(s||l,{[`${O}-dropdown-${K}`]:"rtl"===K},i,_,$,W),QA=Cm((A=>{var e;return null!==(e=null!=B?B:Y)&&void 0!==e?e:A})),EA=J.useContext(Af),CA=null!=Q?Q:EA,dA=ud({[`${O}-lg`]:"large"===QA,[`${O}-sm`]:"small"===QA,[`${O}-rtl`]:"rtl"===K,[`${O}-${j}`]:q,[`${O}-in-form-item`]:nA},oS(O,rA,tA),T,null==P?void 0:P.className,r,i,_,$,W),IA=J.useMemo((()=>void 0!==c?c:"rtl"===K?"bottomRight":"bottomLeft"),[c,K]),[pA]=mD("SelectLike",null==m?void 0:m.zIndex);return z(J.createElement(nS,Object.assign({ref:e,virtual:N,showSearch:null==P?void 0:P.showSearch},uA,{style:Object.assign(Object.assign({},null==P?void 0:P.style),h),dropdownMatchSelectWidth:AA,transitionName:rm(U,"slide-up",y),builtinPlacements:CS(d,L),listHeight:g,listItemHeight:G,mode:X,prefixCls:O,placement:IA,direction:K,suffixIcon:aA,menuItemSelectedIcon:sA,removeIcon:lA,allowClear:cA,notFoundContent:iA,className:dA,getPopupContainer:a||M,dropdownClassName:BA,disabled:CA,dropdownStyle:Object.assign(Object.assign({},m),{zIndex:pA}),maxCount:V?v:void 0,tagRender:V?b:void 0})))},WS=J.forwardRef(zS),_S=(XS=WS,aM((A=>{const{prefixCls:e,style:t}=A,n=J.useRef(null),[o,r]=J.useState(0),[i,a]=J.useState(0),[s,l]=vf(!1,{value:A.open}),{getPrefixCls:g}=J.useContext(Xp),c=g("select",e);J.useEffect((()=>{if(l(!0),"undefined"!=typeof ResizeObserver){const A=new ResizeObserver((A=>{const e=A[0].target;r(e.offsetHeight+8),a(e.offsetWidth)})),e=setInterval((()=>{var t;const o=`.${c}-dropdown`,r=null===(t=n.current)||void 0===t?void 0:t.querySelector(o);r&&(clearInterval(e),A.observe(r))}),10);return()=>{clearInterval(e),A.disconnect()}}}),[]);let u=Object.assign(Object.assign({},A),{style:Object.assign(Object.assign({},t),{margin:0}),open:s,visible:s,getPopupContainer:()=>n.current});const B={paddingBottom:o,position:"relative",minWidth:i};return J.createElement("div",{ref:n,style:B},J.createElement(XS,Object.assign({},u)))})));var XS;WS.SECRET_COMBOBOX_MODE_DO_NOT_USE=$S,WS.Option=Dx,WS.OptGroup=wx,WS._InternalPanelDoNotUseOrYouWillBeFired=_S;const VS=["xxl","xl","lg","md","sm","xs"],ZS=A=>({xs:`(max-width: ${A.screenXSMax}px)`,sm:`(min-width: ${A.screenSM}px)`,md:`(min-width: ${A.screenMD}px)`,lg:`(min-width: ${A.screenLG}px)`,xl:`(min-width: ${A.screenXL}px)`,xxl:`(min-width: ${A.screenXXL}px)`}),AF=A=>{const e=A,t=[].concat(VS).reverse();return t.forEach(((A,n)=>{const o=A.toUpperCase(),r=`screen${o}Min`,i=`screen${o}`;if(!(e[r]<=e[i]))throw new Error(`${r}<=${i} fails : !(${e[r]}<=${e[i]})`);if(n{const A=new Map;let t=-1,n={};return{matchHandlers:{},dispatch:e=>(n=e,A.forEach((A=>A(n))),A.size>=1),subscribe(e){return A.size||this.register(),t+=1,A.set(t,e),e(n),t},unsubscribe(e){A.delete(e),A.size||this.unregister()},unregister(){Object.keys(e).forEach((A=>{const t=e[A],n=this.matchHandlers[t];null==n||n.mql.removeListener(null==n?void 0:n.listener)})),A.clear()},register(){Object.keys(e).forEach((A=>{const t=e[A],o=e=>{let{matches:t}=e;this.dispatch(Object.assign(Object.assign({},n),{[A]:t}))},r=window.matchMedia(t);r.addListener(o),this.matchHandlers[t]={mql:r,listener:o},o(r)}))},responsiveMap:e}}),[A])}function tF(){let A=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];const e=J.useRef({}),t=function(){const[,A]=J.useReducer((A=>A+1),0);return A}(),n=eF();return qE((()=>{const o=n.subscribe((n=>{e.current=n,A&&t()}));return()=>n.unsubscribe(o)}),[]),e.current}const nF=J.createContext({}),oF=A=>{const{antCls:e,componentCls:t,iconCls:n,avatarBg:o,avatarColor:r,containerSize:i,containerSizeLG:a,containerSizeSM:s,textFontSize:l,textFontSizeLG:g,textFontSizeSM:c,borderRadius:u,borderRadiusLG:B,borderRadiusSM:Q,lineWidth:E,lineType:C}=A,d=(A,e,o)=>({width:A,height:A,borderRadius:"50%",[`&${t}-square`]:{borderRadius:o},[`&${t}-icon`]:{fontSize:e,[`> ${n}`]:{margin:0}}});return{[t]:Object.assign(Object.assign(Object.assign(Object.assign({},Mf(A)),{position:"relative",display:"inline-flex",justifyContent:"center",alignItems:"center",overflow:"hidden",color:r,whiteSpace:"nowrap",textAlign:"center",verticalAlign:"middle",background:o,border:`${UE(E)} ${C} transparent`,"&-image":{background:"transparent"},[`${e}-image-img`]:{display:"block"}}),d(i,l,u)),{"&-lg":Object.assign({},d(a,g,B)),"&-sm":Object.assign({},d(s,c,Q)),"> img":{display:"block",width:"100%",height:"100%",objectFit:"cover"}})}},rF=A=>{const{componentCls:e,groupBorderColor:t,groupOverlapping:n,groupSpace:o}=A;return{[`${e}-group`]:{display:"inline-flex",[`${e}`]:{borderColor:t},"> *:not(:first-child)":{marginInlineStart:n}},[`${e}-group-popover`]:{[`${e} + ${e}`]:{marginInlineStart:o}}}},iF=jf("Avatar",(A=>{const{colorTextLightSolid:e,colorTextPlaceholder:t}=A,n=Pf(A,{avatarBg:t,avatarColor:e});return[oF(n),rF(n)]}),(A=>{const{controlHeight:e,controlHeightLG:t,controlHeightSM:n,fontSize:o,fontSizeLG:r,fontSizeXL:i,fontSizeHeading3:a,marginXS:s,marginXXS:l,colorBorderBg:g}=A;return{containerSize:e,containerSizeLG:t,containerSizeSM:n,textFontSize:Math.round((r+i)/2),textFontSizeLG:a,textFontSizeSM:o,groupSpace:l,groupOverlapping:-s,groupBorderColor:g}}));const aF=(A,e)=>{const[t,n]=J.useState(1),[o,r]=J.useState(!1),[i,a]=J.useState(!0),s=J.useRef(null),l=J.useRef(null),g=Pd(e,s),{getPrefixCls:c,avatar:u}=J.useContext(Xp),B=J.useContext(nF),Q=()=>{if(!l.current||!s.current)return;const e=l.current.offsetWidth,t=s.current.offsetWidth;if(0!==e&&0!==t){const{gap:o=4}=A;2*o{r(!0)}),[]),J.useEffect((()=>{a(!0),n(1)}),[A.src]),J.useEffect(Q,[A.gap]);const E=()=>{const{onError:e}=A;!1!==(null==e?void 0:e())&&a(!1)},{prefixCls:C,shape:d,size:I,src:p,srcSet:f,icon:h,className:w,rootClassName:D,alt:m,draggable:y,children:b,crossOrigin:v}=A,k=function(A,e){var t={};for(var n in A)Object.prototype.hasOwnProperty.call(A,n)&&e.indexOf(n)<0&&(t[n]=A[n]);if(null!=A&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(n=Object.getOwnPropertySymbols(A);o{var e,t;return null!==(t=null!==(e=null!=I?I:null==B?void 0:B.size)&&void 0!==e?e:A)&&void 0!==t?t:"default"})),x=tF(Object.keys("object"==typeof M&&M||{}).some((A=>["xs","sm","md","lg","xl","xxl"].includes(A)))),S=J.useMemo((()=>{if("object"!=typeof M)return{};const A=VS.find((A=>x[A])),e=M[A];return e?{width:e,height:e,fontSize:e&&(h||b)?e/2:18}:{}}),[x,M]),F=c("avatar",C),N=oD(F),[R,L,P]=iF(F,N),H=ud({[`${F}-lg`]:"large"===M,[`${F}-sm`]:"small"===M}),G=J.isValidElement(p),O=d||(null==B?void 0:B.shape)||"circle",U=ud(F,H,null==u?void 0:u.className,`${F}-${O}`,{[`${F}-image`]:G||p&&i,[`${F}-icon`]:!!h},P,N,w,D,L),K="number"==typeof M?{width:M,height:M,fontSize:h?M/2:18}:{};let Y;if("string"==typeof p&&i)Y=J.createElement("img",{src:p,draggable:y,srcSet:f,onError:E,alt:m,crossOrigin:v});else if(G)Y=p;else if(h)Y=h;else if(o||1!==t){const A=`scale(${t})`,e={msTransform:A,WebkitTransform:A,transform:A};Y=J.createElement(hI,{onResize:Q},J.createElement("span",{className:`${F}-string`,ref:l,style:Object.assign({},e)},b))}else Y=J.createElement("span",{className:`${F}-string`,style:{opacity:0},ref:l},b);return delete k.onError,delete k.gap,R(J.createElement("span",Object.assign({},k,{style:Object.assign(Object.assign(Object.assign(Object.assign({},K),S),null==u?void 0:u.style),k.style),className:U,ref:g}),Y))},sF=J.forwardRef(aF),lF=A=>A?"function"==typeof A?A():A:null;function gF(A){var e=A.children,t=A.prefixCls,n=A.id,o=A.overlayInnerStyle,r=A.className,i=A.style;return J.createElement("div",{className:ud("".concat(t,"-content"),r),style:i},J.createElement("div",{className:"".concat(t,"-inner"),id:n,role:"tooltip",style:o},"function"==typeof e?e():e))}var cF={shiftX:64,adjustY:1},uF={adjustX:1,shiftY:!0},BF=[0,0],QF={left:{points:["cr","cl"],overflow:uF,offset:[-4,0],targetOffset:BF},right:{points:["cl","cr"],overflow:uF,offset:[4,0],targetOffset:BF},top:{points:["bc","tc"],overflow:cF,offset:[0,-4],targetOffset:BF},bottom:{points:["tc","bc"],overflow:cF,offset:[0,4],targetOffset:BF},topLeft:{points:["bl","tl"],overflow:cF,offset:[0,-4],targetOffset:BF},leftTop:{points:["tr","tl"],overflow:uF,offset:[-4,0],targetOffset:BF},topRight:{points:["br","tr"],overflow:cF,offset:[0,-4],targetOffset:BF},rightTop:{points:["tl","tr"],overflow:uF,offset:[4,0],targetOffset:BF},bottomRight:{points:["tr","br"],overflow:cF,offset:[0,4],targetOffset:BF},rightBottom:{points:["bl","br"],overflow:uF,offset:[4,0],targetOffset:BF},bottomLeft:{points:["tl","bl"],overflow:cF,offset:[0,4],targetOffset:BF},leftBottom:{points:["br","bl"],overflow:uF,offset:[-4,0],targetOffset:BF}},EF=["overlayClassName","trigger","mouseEnterDelay","mouseLeaveDelay","overlayStyle","prefixCls","children","onVisibleChange","afterVisibleChange","transitionName","animation","motion","placement","align","destroyTooltipOnHide","defaultVisible","getTooltipContainer","overlayInnerStyle","arrowContent","overlay","id","showArrow"],CF=function(A,e){var t=A.overlayClassName,n=A.trigger,o=void 0===n?["hover"]:n,r=A.mouseEnterDelay,i=void 0===r?0:r,a=A.mouseLeaveDelay,s=void 0===a?.1:a,l=A.overlayStyle,g=A.prefixCls,c=void 0===g?"rc-tooltip":g,u=A.children,B=A.onVisibleChange,Q=A.afterVisibleChange,E=A.transitionName,C=A.animation,d=A.motion,I=A.placement,p=void 0===I?"right":I,f=A.align,h=void 0===f?{}:f,w=A.destroyTooltipOnHide,D=void 0!==w&&w,m=A.defaultVisible,y=A.getTooltipContainer,b=A.overlayInnerStyle;A.arrowContent;var v=A.overlay,k=A.id,M=A.showArrow,x=void 0===M||M,S=Mc(A,EF),F=J.useRef(null);J.useImperativeHandle(e,(function(){return F.current}));var N=kc({},S);"visible"in A&&(N.popupVisible=A.visible);return J.createElement(sx,BQ({popupClassName:t,prefixCls:c,popup:function(){return J.createElement(gF,{key:"content",prefixCls:c,id:k,overlayInnerStyle:b},v)},action:o,builtinPlacements:QF,popupPlacement:p,ref:F,popupAlign:h,getPopupContainer:y,onPopupVisibleChange:B,afterPopupVisibleChange:Q,popupTransitionName:E,popupAnimation:C,popupMotion:d,defaultPopupVisible:m,autoDestroy:D,mouseLeaveDelay:s,popupStyle:l,mouseEnterDelay:i,arrow:x},N),u)};const dF=J.forwardRef(CF);function IF(A){const{sizePopupArrow:e,borderRadiusXS:t,borderRadiusOuter:n}=A,o=e/2,r=o,i=1*n/Math.sqrt(2),a=o-n*(1-1/Math.sqrt(2)),s=o-t*(1/Math.sqrt(2)),l=n*(Math.sqrt(2)-1)+t*(1/Math.sqrt(2)),g=2*o-s,c=l,u=2*o-i,B=a,Q=2*o-0,E=r,C=o*Math.sqrt(2)+n*(Math.sqrt(2)-2),d=n*(Math.sqrt(2)-1);return{arrowShadowWidth:C,arrowPath:`path('M 0 ${r} A ${n} ${n} 0 0 0 ${i} ${a} L ${s} ${l} A ${t} ${t} 0 0 1 ${g} ${c} L ${u} ${B} A ${n} ${n} 0 0 0 ${Q} ${E} Z')`,arrowPolygon:`polygon(${d}px 100%, 50% ${d}px, ${2*o-d}px 100%, ${d}px 100%)`}}const pF=(A,e,t)=>{const{sizePopupArrow:n,arrowPolygon:o,arrowPath:r,arrowShadowWidth:i,borderRadiusXS:a,calc:s}=A;return{pointerEvents:"none",width:n,height:n,overflow:"hidden","&::before":{position:"absolute",bottom:0,insetInlineStart:0,width:n,height:s(n).div(2).equal(),background:e,clipPath:{_multi_value_:!0,value:[o,r]},content:'""'},"&::after":{content:'""',position:"absolute",width:i,height:i,bottom:0,insetInline:0,margin:"auto",borderRadius:{_skip_check_:!0,value:`0 0 ${UE(a)} 0`},transform:"translateY(50%) rotate(-135deg)",boxShadow:t,zIndex:0,background:"transparent"}}},fF=8;function hF(A){const{contentRadius:e,limitVerticalRadius:t}=A,n=e>12?e+2:12;return{arrowOffsetHorizontal:n,arrowOffsetVertical:t?fF:n}}function wF(A,e){return A?e:{}}function DF(A,e,t){const{componentCls:n,boxShadowPopoverArrow:o,arrowOffsetVertical:r,arrowOffsetHorizontal:i}=A,{arrowDistance:a=0,arrowPlacement:s={left:!0,right:!0,top:!0,bottom:!0}}={};return{[n]:Object.assign(Object.assign(Object.assign(Object.assign({[`${n}-arrow`]:[Object.assign(Object.assign({position:"absolute",zIndex:1,display:"block"},pF(A,e,o)),{"&:before":{background:e}})]},wF(!!s.top,{[[`&-placement-top > ${n}-arrow`,`&-placement-topLeft > ${n}-arrow`,`&-placement-topRight > ${n}-arrow`].join(",")]:{bottom:a,transform:"translateY(100%) rotate(180deg)"},[`&-placement-top > ${n}-arrow`]:{left:{_skip_check_:!0,value:"50%"},transform:"translateX(-50%) translateY(100%) rotate(180deg)"},[`&-placement-topLeft > ${n}-arrow`]:{left:{_skip_check_:!0,value:i}},[`&-placement-topRight > ${n}-arrow`]:{right:{_skip_check_:!0,value:i}}})),wF(!!s.bottom,{[[`&-placement-bottom > ${n}-arrow`,`&-placement-bottomLeft > ${n}-arrow`,`&-placement-bottomRight > ${n}-arrow`].join(",")]:{top:a,transform:"translateY(-100%)"},[`&-placement-bottom > ${n}-arrow`]:{left:{_skip_check_:!0,value:"50%"},transform:"translateX(-50%) translateY(-100%)"},[`&-placement-bottomLeft > ${n}-arrow`]:{left:{_skip_check_:!0,value:i}},[`&-placement-bottomRight > ${n}-arrow`]:{right:{_skip_check_:!0,value:i}}})),wF(!!s.left,{[[`&-placement-left > ${n}-arrow`,`&-placement-leftTop > ${n}-arrow`,`&-placement-leftBottom > ${n}-arrow`].join(",")]:{right:{_skip_check_:!0,value:a},transform:"translateX(100%) rotate(90deg)"},[`&-placement-left > ${n}-arrow`]:{top:{_skip_check_:!0,value:"50%"},transform:"translateY(-50%) translateX(100%) rotate(90deg)"},[`&-placement-leftTop > ${n}-arrow`]:{top:r},[`&-placement-leftBottom > ${n}-arrow`]:{bottom:r}})),wF(!!s.right,{[[`&-placement-right > ${n}-arrow`,`&-placement-rightTop > ${n}-arrow`,`&-placement-rightBottom > ${n}-arrow`].join(",")]:{left:{_skip_check_:!0,value:a},transform:"translateX(-100%) rotate(-90deg)"},[`&-placement-right > ${n}-arrow`]:{top:{_skip_check_:!0,value:"50%"},transform:"translateY(-50%) translateX(-100%) rotate(-90deg)"},[`&-placement-rightTop > ${n}-arrow`]:{top:r},[`&-placement-rightBottom > ${n}-arrow`]:{bottom:r}}))}}const mF={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"]}},yF={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"]}},bF=new Set(["topLeft","topRight","bottomLeft","bottomRight","leftTop","leftBottom","rightTop","rightBottom"]);function vF(A){const{arrowWidth:e,autoAdjustOverflow:t,arrowPointAtCenter:n,offset:o,borderRadius:r,visibleFirst:i}=A,a=e/2,s={};return Object.keys(mF).forEach((A=>{const l=n&&yF[A]||mF[A],g=Object.assign(Object.assign({},l),{offset:[0,0],dynamicInset:!0});switch(s[A]=g,bF.has(A)&&(g.autoArrow=!1),A){case"top":case"topLeft":case"topRight":g.offset[1]=-a-o;break;case"bottom":case"bottomLeft":case"bottomRight":g.offset[1]=a+o;break;case"left":case"leftTop":case"leftBottom":g.offset[0]=-a-o;break;case"right":case"rightTop":case"rightBottom":g.offset[0]=a+o}const c=hF({contentRadius:r,limitVerticalRadius:!0});if(n)switch(A){case"topLeft":case"bottomLeft":g.offset[0]=-c.arrowOffsetHorizontal-a;break;case"topRight":case"bottomRight":g.offset[0]=c.arrowOffsetHorizontal+a;break;case"leftTop":case"rightTop":g.offset[1]=-c.arrowOffsetHorizontal-a;break;case"leftBottom":case"rightBottom":g.offset[1]=c.arrowOffsetHorizontal+a}g.overflow=function(A,e,t,n){if(!1===n)return{adjustX:!1,adjustY:!1};const o=n&&"object"==typeof n?n:{},r={};switch(A){case"top":case"bottom":r.shiftX=2*e.arrowOffsetHorizontal+t,r.shiftY=!0,r.adjustY=!0;break;case"left":case"right":r.shiftY=2*e.arrowOffsetVertical+t,r.shiftX=!0,r.adjustX=!0}const i=Object.assign(Object.assign({},r),o);return i.shiftX||(i.adjustX=!0),i.shiftY||(i.adjustY=!0),i}(A,c,e,t),i&&(g.htmlRegion="visibleFirst")})),s}const kF=A=>{const{componentCls:e,tooltipMaxWidth:t,tooltipColor:n,tooltipBg:o,tooltipBorderRadius:r,zIndexPopup:i,controlHeight:a,boxShadowSecondary:s,paddingSM:l,paddingXS:g}=A;return[{[e]:Object.assign(Object.assign(Object.assign(Object.assign({},Mf(A)),{position:"absolute",zIndex:i,display:"block",width:"max-content",maxWidth:t,visibility:"visible",transformOrigin:"var(--arrow-x, 50%) var(--arrow-y, 50%)","&-hidden":{display:"none"},"--antd-arrow-background-color":o,[`${e}-inner`]:{minWidth:a,minHeight:a,padding:`${UE(A.calc(l).div(2).equal())} ${UE(g)}`,color:n,textAlign:"start",textDecoration:"none",wordWrap:"break-word",backgroundColor:o,borderRadius:r,boxShadow:s,boxSizing:"border-box"},[["&-placement-left","&-placement-leftTop","&-placement-leftBottom","&-placement-right","&-placement-rightTop","&-placement-rightBottom"].join(",")]:{[`${e}-inner`]:{borderRadius:A.min(r,fF)}},[`${e}-content`]:{position:"relative"}}),qf(A,((A,t)=>{let{darkColor:n}=t;return{[`&${e}-${A}`]:{[`${e}-inner`]:{backgroundColor:n},[`${e}-arrow`]:{"--antd-arrow-background-color":n}}}}))),{"&-rtl":{direction:"rtl"}})},DF(A,"var(--antd-arrow-background-color)"),{[`${e}-pure`]:{position:"relative",maxWidth:"none",margin:A.sizePopupArrow}}]},MF=A=>Object.assign(Object.assign({zIndexPopup:A.zIndexPopupBase+70},hF({contentRadius:A.borderRadius,limitVerticalRadius:!0})),IF(Pf(A,{borderRadiusOuter:Math.min(A.borderRadiusOuter,4)}))),xF=function(A){return jf("Tooltip",(A=>{const{borderRadius:e,colorTextLightSolid:t,colorBgSpotlight:n}=A,o=Pf(A,{tooltipMaxWidth:250,tooltipColor:t,tooltipBorderRadius:e,tooltipBg:n});return[kF(o),ok(A,"zoom-big-fast")]}),MF,{resetStyle:!1,injectStyle:!(arguments.length>1&&void 0!==arguments[1])||arguments[1]})(A)},SF=of.map((A=>`${A}-inverse`)),FF=["success","processing","error","default","warning"];function NF(A){return!(arguments.length>1&&void 0!==arguments[1])||arguments[1]?[].concat(XQ(SF),XQ(of)).includes(A):of.includes(A)}function RF(A,e){const t=NF(e),n=ud({[`${A}-${e}`]:e&&t}),o={},r={};return e&&!t&&(o.background=e,r["--antd-arrow-background-color"]=e),{className:n,overlayStyle:o,arrowStyle:r}}const LF=J.forwardRef(((A,e)=>{var t,n;const{prefixCls:o,openClassName:r,getTooltipContainer:i,overlayClassName:a,color:s,overlayInnerStyle:l,children:g,afterOpenChange:c,afterVisibleChange:u,destroyTooltipOnHide:B,arrow:Q=!0,title:E,overlay:C,builtinPlacements:d,arrowPointAtCenter:I=!1,autoAdjustOverflow:p=!0}=A,f=!!Q,[,h]=Cf(),{getPopupContainer:w,getPrefixCls:D,direction:m}=J.useContext(Xp),y=OI(),b=J.useRef(null),v=()=>{var A;null===(A=b.current)||void 0===A||A.forceAlign()};J.useImperativeHandle(e,(()=>({forceAlign:v,forcePopupAlign:()=>{y.deprecated(!1,"forcePopupAlign","forceAlign"),v()}})));const[k,M]=vf(!1,{value:null!==(t=A.open)&&void 0!==t?t:A.visible,defaultValue:null!==(n=A.defaultOpen)&&void 0!==n?n:A.defaultVisible}),x=!E&&!C&&0!==E,S=J.useMemo((()=>{var A,e;let t=I;return"object"==typeof Q&&(t=null!==(e=null!==(A=Q.pointAtCenter)&&void 0!==A?A:Q.arrowPointAtCenter)&&void 0!==e?e:I),d||vF({arrowPointAtCenter:t,autoAdjustOverflow:p,arrowWidth:f?h.sizePopupArrow:0,borderRadius:h.borderRadius,offset:h.marginXXS,visibleFirst:!0})}),[I,Q,d,h]),F=J.useMemo((()=>0===E?E:C||E||""),[C,E]),N=J.createElement(mm,null,"function"==typeof F?F():F),{getPopupContainer:R,placement:L="top",mouseEnterDelay:P=.1,mouseLeaveDelay:H=.1,overlayStyle:G,rootClassName:O}=A,U=function(A,e){var t={};for(var n in A)Object.prototype.hasOwnProperty.call(A,n)&&e.indexOf(n)<0&&(t[n]=A[n]);if(null!=A&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(n=Object.getOwnPropertySymbols(A);o{var t,n;M(!x&&e),x||(null===(t=A.onOpenChange)||void 0===t||t.call(A,e),null===(n=A.onVisibleChange)||void 0===n||n.call(A,e))},afterVisibleChange:null!=c?c:u,overlayInnerStyle:AA,arrowContent:J.createElement("span",{className:`${K}-arrow-content`}),motion:{motionName:rm(Y,"zoom-big-fast",A.transitionName),motionDeadline:1e3},destroyTooltipOnHide:!!B}),j?Gw(q,{className:z}):q);return W(J.createElement(pD.Provider,{value:nA},oA))})),PF=LF;PF._InternalPanelDoNotUseOrYouWillBeFired=A=>{const{prefixCls:e,className:t,placement:n="top",title:o,color:r,overlayInnerStyle:i}=A,{getPrefixCls:a}=J.useContext(Xp),s=a("tooltip",e),[l,g,c]=xF(s),u=RF(s,r),B=u.arrowStyle,Q=Object.assign(Object.assign({},i),u.overlayStyle),E=ud(g,c,s,`${s}-pure`,`${s}-placement-${n}`,t,u.className);return l(J.createElement("div",{className:E,style:B},J.createElement("div",{className:`${s}-arrow`}),J.createElement(gF,Object.assign({},A,{className:g,prefixCls:s,overlayInnerStyle:Q}),o)))};const HF=A=>{const{componentCls:e,popoverColor:t,titleMinWidth:n,fontWeightStrong:o,innerPadding:r,boxShadowSecondary:i,colorTextHeading:a,borderRadiusLG:s,zIndexPopup:l,titleMarginBottom:g,colorBgElevated:c,popoverBg:u,titleBorderBottom:B,innerContentPadding:Q,titlePadding:E}=A;return[{[e]:Object.assign(Object.assign({},Mf(A)),{position:"absolute",top:0,left:{_skip_check_:!0,value:0},zIndex:l,fontWeight:"normal",whiteSpace:"normal",textAlign:"start",cursor:"auto",userSelect:"text",transformOrigin:"var(--arrow-x, 50%) var(--arrow-y, 50%)","--antd-arrow-background-color":c,width:"max-content",maxWidth:"100vw","&-rtl":{direction:"rtl"},"&-hidden":{display:"none"},[`${e}-content`]:{position:"relative"},[`${e}-inner`]:{backgroundColor:u,backgroundClip:"padding-box",borderRadius:s,boxShadow:i,padding:r},[`${e}-title`]:{minWidth:n,marginBottom:g,color:a,fontWeight:o,borderBottom:B,padding:E},[`${e}-inner-content`]:{color:t,padding:Q}})},DF(A,"var(--antd-arrow-background-color)"),{[`${e}-pure`]:{position:"relative",maxWidth:"none",margin:A.sizePopupArrow,display:"inline-block",[`${e}-content`]:{display:"inline-block"}}}]},GF=A=>{const{componentCls:e}=A;return{[e]:of.map((t=>{const n=A[`${t}6`];return{[`&${e}-${t}`]:{"--antd-arrow-background-color":n,[`${e}-inner`]:{backgroundColor:n},[`${e}-arrow`]:{background:"transparent"}}}}))}},OF=jf("Popover",(A=>{const{colorBgElevated:e,colorText:t}=A,n=Pf(A,{popoverBg:e,popoverColor:t});return[HF(n),GF(n),ok(n,"zoom-big")]}),(A=>{const{lineWidth:e,controlHeight:t,fontHeight:n,padding:o,wireframe:r,zIndexPopupBase:i,borderRadiusLG:a,marginXS:s,lineType:l,colorSplit:g,paddingSM:c}=A,u=t-n,B=u/2,Q=u/2-e,E=o;return Object.assign(Object.assign(Object.assign({titleMinWidth:177,zIndexPopup:i+30},IF(A)),hF({contentRadius:a,limitVerticalRadius:!0})),{innerPadding:r?0:12,titleMarginBottom:r?0:s,titlePadding:r?`${B}px ${E}px ${Q}px`:0,titleBorderBottom:r?`${e}px ${l} ${g}`:"none",innerContentPadding:r?`${c}px ${E}px`:0})}),{resetStyle:!1,deprecatedTokens:[["width","titleMinWidth"],["minWidth","titleMinWidth"]]});const UF=A=>{const{hashId:e,prefixCls:t,className:n,style:o,placement:r="top",title:i,content:a,children:s}=A;return J.createElement("div",{className:ud(e,t,`${t}-pure`,`${t}-placement-${r}`,n),style:o},J.createElement("div",{className:`${t}-arrow`}),J.createElement(gF,Object.assign({},A,{className:e,prefixCls:t}),s||((A,e,t)=>e||t?J.createElement(J.Fragment,null,e&&J.createElement("div",{className:`${A}-title`},lF(e)),J.createElement("div",{className:`${A}-inner-content`},lF(t))):null)(t,i,a)))},KF=A=>{const{prefixCls:e,className:t}=A,n=function(A,e){var t={};for(var n in A)Object.prototype.hasOwnProperty.call(A,n)&&e.indexOf(n)<0&&(t[n]=A[n]);if(null!=A&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(n=Object.getOwnPropertySymbols(A);o{let{title:e,content:t,prefixCls:n}=A;return J.createElement(J.Fragment,null,e&&J.createElement("div",{className:`${n}-title`},lF(e)),J.createElement("div",{className:`${n}-inner-content`},lF(t)))},TF=J.forwardRef(((A,e)=>{var t,n;const{prefixCls:o,title:r,content:i,overlayClassName:a,placement:s="top",trigger:l="hover",children:g,mouseEnterDelay:c=.1,mouseLeaveDelay:u=.1,onOpenChange:B,overlayStyle:Q={}}=A,E=function(A,e){var t={};for(var n in A)Object.prototype.hasOwnProperty.call(A,n)&&e.indexOf(n)<0&&(t[n]=A[n]);if(null!=A&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(n=Object.getOwnPropertySymbols(A);o{m(A,!0),null==B||B(A,e)};return I(J.createElement(PF,Object.assign({placement:s,trigger:l,mouseEnterDelay:c,mouseLeaveDelay:u,overlayStyle:Q},E,{prefixCls:d,overlayClassName:w,ref:e,open:D,onOpenChange:A=>{y(A)},overlay:r||i?J.createElement(YF,{prefixCls:d,title:r,content:i}):null,transitionName:rm(h,"zoom-big",E.transitionName),"data-popover-inject":!0}),Gw(g,{onKeyDown:A=>{var e,t;J.isValidElement(g)&&(null===(t=null==g?void 0:(e=g.props).onKeyDown)||void 0===t||t.call(e,A)),(A=>{A.keyCode===rD.ESC&&y(!1,A)})(A)}})))})),JF=TF;JF._InternalPanelDoNotUseOrYouWillBeFired=KF;const jF=A=>{const{size:e,shape:t}=J.useContext(nF),n=J.useMemo((()=>({size:A.size||e,shape:A.shape||t})),[A.size,A.shape,e,t]);return J.createElement(nF.Provider,{value:n},A.children)},qF=sF;qF.Group=A=>{const{getPrefixCls:e,direction:t}=J.useContext(Xp),{prefixCls:n,className:o,rootClassName:r,style:i,maxCount:a,maxStyle:s,size:l,shape:g,maxPopoverPlacement:c="top",maxPopoverTrigger:u="hover",children:B}=A,Q=e("avatar",n),E=`${Q}-group`,C=oD(Q),[d,I,p]=iF(Q,C),f=ud(E,{[`${E}-rtl`]:"rtl"===t},p,C,o,r,I),h=Fd(B).map(((A,e)=>Gw(A,{key:`avatar-key-${e}`}))),w=h.length;if(a&&a1&&void 0!==arguments[1]&&arguments[1];if(im(A)){var t=A.nodeName.toLowerCase(),n=["input","select","textarea","button"].includes(t)||A.isContentEditable||"a"===t&&!!A.getAttribute("href"),o=A.getAttribute("tabindex"),r=Number(o),i=null;return o&&!Number.isNaN(r)?i=r:n&&null===i&&(i=0),n&&A.disabled&&(i=null),null!==i&&(i>=0||e&&i<0)}return!1}var pN=rD.LEFT,fN=rD.RIGHT,hN=rD.UP,wN=rD.DOWN,DN=rD.ENTER,mN=rD.ESC,yN=rD.HOME,bN=rD.END,vN=[hN,wN,pN,fN];function kN(A,e){var t=function(A){var e=arguments.length>1&&void 0!==arguments[1]&&arguments[1],t=XQ(A.querySelectorAll("*")).filter((function(A){return IN(A,e)}));return IN(A,e)&&t.unshift(A),t}(A,!0);return t.filter((function(A){return e.has(A)}))}function MN(A,e,t){var n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:1;if(!A)return null;var o=kN(A,e),r=o.length,i=o.findIndex((function(A){return t===A}));return n<0?-1===i?i=r-1:i-=1:n>0&&(i+=1),o[i=(i+r)%r]}var xN=function(A,e){var t=new Set,n=new Map,o=new Map;return A.forEach((function(A){var r=document.querySelector("[data-menu-id='".concat(iN(e,A),"']"));r&&(t.add(r),o.set(r,A),n.set(A,r))})),{elements:t,key2element:n,element2key:o}};function SN(A,e,t,n,o,r,i,a,s,l){var g=J.useRef(),c=J.useRef();c.current=e;var u=function(){kI.cancel(g.current)};return J.useEffect((function(){return function(){u()}}),[]),function(B){var Q=B.which;if([].concat(vN,[DN,mN,yN,bN]).includes(Q)){var E=r(),C=xN(E,n),d=C,I=d.elements,p=d.key2element,f=d.element2key,h=function(A,e){for(var t=A||document.activeElement;t;){if(e.has(t))return t;t=t.parentElement}return null}(p.get(e),I),w=f.get(h),D=function(A,e,t,n){var o,r="prev",i="next",a="children",s="parent";if("inline"===A&&n===DN)return{inlineTrigger:!0};var l=bc(bc({},hN,r),wN,i),g=bc(bc(bc(bc({},pN,t?i:r),fN,t?r:i),wN,a),DN,a),c=bc(bc(bc(bc(bc(bc({},hN,r),wN,i),DN,a),mN,s),pN,t?a:s),fN,t?s:a);switch(null===(o={inline:l,horizontal:g,vertical:c,inlineSub:l,horizontalSub:c,verticalSub:c}["".concat(A).concat(e?"":"Sub")])||void 0===o?void 0:o[n]){case r:return{offset:-1,sibling:!0};case i:return{offset:1,sibling:!0};case s:return{offset:-1,sibling:!1};case a:return{offset:1,sibling:!1};default:return null}}(A,1===i(w,!0).length,t,Q);if(!D&&Q!==yN&&Q!==bN)return;(vN.includes(Q)||[yN,bN].includes(Q))&&B.preventDefault();var m=function(A){if(A){var e=A,t=A.querySelector("a");null!=t&&t.getAttribute("href")&&(e=t);var n=f.get(A);a(n),u(),g.current=kI((function(){c.current===n&&e.focus()}))}};if([yN,bN].includes(Q)||D.sibling||!h){var y,b,v=kN(y=h&&"inline"!==A?function(A){for(var e=A;e;){if(e.getAttribute("data-menu-list"))return e;e=e.parentElement}return null}(h):o.current,I);b=Q===yN?v[0]:Q===bN?v[v.length-1]:MN(y,I,h,D.offset),m(b)}else if(D.inlineTrigger)s(w);else if(D.offset>0)s(w,!0),u(),g.current=kI((function(){C=xN(E,n);var A=h.getAttribute("aria-controls"),e=MN(document.getElementById(A),C.elements);m(e)}),5);else if(D.offset<0){var k=i(w,!0),M=k[k.length-2],x=p.get(M);s(M,!1),m(x)}}null==l||l(B)}}var FN="__RC_UTIL_PATH_SPLIT__",NN=function(A){return A.join(FN)},RN="rc-menu-more";function LN(){var A=WQ(J.useState({}),2)[1],e=J.useRef(new Map),t=J.useRef(new Map),n=WQ(J.useState([]),2),o=n[0],r=n[1],i=J.useRef(0),a=J.useRef(!1),s=J.useCallback((function(n,o){var r=NN(o);t.current.set(r,n),e.current.set(n,r),i.current+=1;var s,l=i.current;s=function(){l===i.current&&(a.current||A({}))},Promise.resolve().then(s)}),[]),l=J.useCallback((function(A,n){var o=NN(n);t.current.delete(o),e.current.delete(A)}),[]),g=J.useCallback((function(A){r(A)}),[]),c=J.useCallback((function(A,t){var n=e.current.get(A)||"",r=n.split(FN);return t&&o.includes(r[0])&&r.unshift(RN),r}),[o]),u=J.useCallback((function(A,e){return A.some((function(A){return c(A,!0).includes(e)}))}),[c]),B=J.useCallback((function(A){var n="".concat(e.current.get(A)).concat(FN),o=new Set;return XQ(t.current.keys()).forEach((function(A){A.startsWith(n)&&o.add(t.current.get(A))})),o}),[]);return J.useEffect((function(){return function(){a.current=!0}}),[]),{registerPath:s,unregisterPath:l,refreshOverflowKeys:g,isSubPathKey:u,getKeyPath:c,getKeys:function(){var A=XQ(e.current.keys());return o.length&&A.push(RN),A},getSubPathKeys:B}}function PN(A){var e=J.useRef(A);e.current=A;var t=J.useCallback((function(){for(var A,t=arguments.length,n=new Array(t),o=0;o1&&(d.motionAppear=!1);var I=d.onVisibleChanged;return d.onVisibleChanged=function(A){return u.current||A||E(!0),null==I?void 0:I(A)},Q?null:J.createElement(gN,{mode:r,locked:!u.current},J.createElement(Nh,BQ({visible:C},d,{forceRender:s,removeOnLeave:!1,leavedClassName:"".concat(a,"-hidden")}),(function(A){var t=A.className,n=A.style;return J.createElement(ZN,{id:e,className:t,style:n},o)})))}var sR=["style","className","title","eventKey","warnKey","disabled","internalPopupClose","children","itemIcon","expandIcon","popupClassName","popupOffset","popupStyle","onClick","onMouseEnter","onMouseLeave","onTitleClick","onTitleMouseEnter","onTitleMouseLeave"],lR=["active"],gR=function(A){var e=A.style,t=A.className,n=A.title,o=A.eventKey;A.warnKey;var r=A.disabled,i=A.internalPopupClose,a=A.children,s=A.itemIcon,l=A.expandIcon,g=A.popupClassName,c=A.popupOffset,u=A.popupStyle,B=A.onClick,Q=A.onMouseEnter,E=A.onMouseLeave,C=A.onTitleClick,d=A.onTitleMouseEnter,I=A.onTitleMouseLeave,p=Mc(A,sR),f=aN(o),h=J.useContext(lN),w=h.prefixCls,D=h.mode,m=h.openKeys,y=h.disabled,b=h.overflowDisabled,v=h.activeKey,k=h.selectedKeys,M=h.itemIcon,x=h.expandIcon,S=h.onItemClick,F=h.onOpenChange,N=h.onActive,R=J.useContext(dN)._internalRenderSubMenuItem,L=J.useContext(CN).isSubPathKey,P=EN(),H="".concat(w,"-submenu"),G=y||r,O=J.useRef(),U=J.useRef(),K=null!=s?s:M,Y=null!=l?l:x,T=m.includes(o),j=!b&&T,q=L(k,o),$=ON(o,G,d,I),z=$.active,W=Mc($,lR),_=WQ(J.useState(!1),2),X=_[0],V=_[1],Z=function(A){G||V(A)},AA=J.useMemo((function(){return z||"inline"!==D&&(X||L([v],o))}),[D,z,v,X,o,L]),eA=UN(P.length),tA=PN((function(A){null==B||B(TN(A)),S(A)})),nA=f&&"".concat(f,"-popup"),oA=J.createElement("div",BQ({role:"menuitem",style:eA,className:"".concat(H,"-title"),tabIndex:G?null:-1,ref:O,title:"string"==typeof n?n:null,"data-menu-id":b&&f?null:f,"aria-expanded":j,"aria-haspopup":!0,"aria-controls":nA,"aria-disabled":G,onClick:function(A){G||(null==C||C({key:o,domEvent:A}),"inline"===D&&F(o,!T))},onFocus:function(){N(o)}},W),n,J.createElement(KN,{icon:"horizontal"!==D?Y:void 0,props:kc(kc({},A),{},{isOpen:j,isSubMenu:!0})},J.createElement("i",{className:"".concat(H,"-arrow")}))),rA=J.useRef(D);if("inline"!==D&&P.length>1?rA.current="vertical":rA.current=D,!b){var iA=rA.current;oA=J.createElement(iR,{mode:iA,prefixCls:H,visible:!i&&j&&"inline"!==D,popupClassName:g,popupOffset:c,popupStyle:u,popup:J.createElement(gN,{mode:"horizontal"===iA?"vertical":iA},J.createElement(ZN,{id:nA,ref:U},a)),disabled:G,onVisibleChange:function(A){"inline"!==D&&F(o,A)}},oA)}var aA=J.createElement(MM.Item,BQ({role:"none"},p,{component:"li",style:e,className:ud(H,"".concat(H,"-").concat(D),t,bc(bc(bc(bc({},"".concat(H,"-open"),j),"".concat(H,"-active"),AA),"".concat(H,"-selected"),q),"".concat(H,"-disabled"),G)),onMouseEnter:function(A){Z(!0),null==Q||Q({key:o,domEvent:A})},onMouseLeave:function(A){Z(!1),null==E||E({key:o,domEvent:A})}}),oA,!b&&J.createElement(aR,{id:nA,open:j,keyPath:P},a));return R&&(aA=R(aA,A,{selected:q,active:AA,open:j,disabled:G})),J.createElement(gN,{onItemClick:tA,mode:"horizontal"===D?"vertical":D,itemIcon:K,expandIcon:Y},aA)};function cR(A){var e,t=A.eventKey,n=A.children,o=EN(t),r=AR(n,o),i=BN();return J.useEffect((function(){if(i)return i.registerPath(t,o),function(){i.unregisterPath(t,o)}}),[o]),e=i?r:J.createElement(gR,A,r),J.createElement(QN.Provider,{value:o},e)}var uR=["className","title","eventKey","children"],BR=["children"],QR=function(A){var e=A.className,t=A.title;A.eventKey;var n=A.children,o=Mc(A,uR),r=J.useContext(lN).prefixCls,i="".concat(r,"-item-group");return J.createElement("li",BQ({role:"presentation"},o,{onClick:function(A){return A.stopPropagation()},className:ud(i,e)}),J.createElement("div",{role:"presentation",className:"".concat(i,"-title"),title:"string"==typeof t?t:void 0},t),J.createElement("ul",{role:"group",className:"".concat(i,"-list")},n))};function ER(A){var e=A.children,t=Mc(A,BR),n=AR(e,EN(t.eventKey));return BN()?n:J.createElement(QR,wI(t,["warnKey"]),n)}function CR(A){var e=A.className,t=A.style,n=J.useContext(lN).prefixCls;return BN()?null:J.createElement("li",{role:"separator",className:ud("".concat(n,"-item-divider"),e),style:t})}var dR=["label","children","key","type"];function IR(A){return(A||[]).map((function(A,e){if(A&&"object"===mc(A)){var t=A,n=t.label,o=t.children,r=t.key,i=t.type,a=Mc(t,dR),s=null!=r?r:"tmp-".concat(e);return o||"group"===i?"group"===i?J.createElement(ER,BQ({key:s},a,{title:n}),IR(o)):J.createElement(cR,BQ({key:s},a,{title:n}),IR(o)):"divider"===i?J.createElement(CR,BQ({key:s},a)):J.createElement(_N,BQ({key:s},a),n)}return null})).filter((function(A){return A}))}function pR(A,e,t){var n=A;return e&&(n=IR(e)),AR(n,t)}var fR=["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"],hR=[],wR=J.forwardRef((function(A,e){var t,n=A,o=n.prefixCls,r=void 0===o?"rc-menu":o,i=n.rootClassName,a=n.style,s=n.className,l=n.tabIndex,g=void 0===l?0:l,c=n.items,u=n.children,B=n.direction,Q=n.id,E=n.mode,C=void 0===E?"vertical":E,d=n.inlineCollapsed,I=n.disabled,p=n.disabledOverflow,f=n.subMenuOpenDelay,h=void 0===f?.1:f,w=n.subMenuCloseDelay,D=void 0===w?.1:w,m=n.forceSubMenuRender,y=n.defaultOpenKeys,b=n.openKeys,v=n.activeKey,k=n.defaultActiveFirst,M=n.selectable,x=void 0===M||M,S=n.multiple,F=void 0!==S&&S,N=n.defaultSelectedKeys,R=n.selectedKeys,L=n.onSelect,P=n.onDeselect,H=n.inlineIndent,G=void 0===H?24:H,O=n.motion,U=n.defaultMotions,K=n.triggerSubMenuAction,Y=void 0===K?"hover":K,T=n.builtinPlacements,j=n.itemIcon,q=n.expandIcon,$=n.overflowedIndicator,z=void 0===$?"...":$,W=n.overflowedIndicatorPopupClassName,_=n.getPopupContainer,X=n.onClick,V=n.onOpenChange,Z=n.onKeyDown;n.openAnimation,n.openTransitionName;var AA=n._internalRenderMenuItem,eA=n._internalRenderSubMenuItem,tA=Mc(n,fR),nA=J.useMemo((function(){return pR(u,c,hR)}),[u,c]),oA=WQ(J.useState(!1),2),rA=oA[0],iA=oA[1],aA=J.useRef(),sA=function(A){var e=WQ(vf(A,{value:A}),2),t=e[0],n=e[1];return J.useEffect((function(){GN+=1;var A="".concat(HN,"-").concat(GN);n("rc-menu-uuid-".concat(A))}),[]),t}(Q),lA="rtl"===B,gA=WQ(vf(y,{value:b,postState:function(A){return A||hR}}),2),cA=gA[0],uA=gA[1],BA=function(A){function e(){uA(A),null==V||V(A)}arguments.length>1&&void 0!==arguments[1]&&arguments[1]?pc.flushSync(e):e()},QA=WQ(J.useState(cA),2),EA=QA[0],CA=QA[1],dA=J.useRef(!1),IA=WQ(J.useMemo((function(){return"inline"!==C&&"vertical"!==C||!d?[C,!1]:["vertical",d]}),[C,d]),2),pA=IA[0],fA=IA[1],hA="inline"===pA,wA=WQ(J.useState(pA),2),DA=wA[0],mA=wA[1],yA=WQ(J.useState(fA),2),bA=yA[0],vA=yA[1];J.useEffect((function(){mA(pA),vA(fA),dA.current&&(hA?uA(EA):BA(hR))}),[pA,fA]);var kA=WQ(J.useState(0),2),MA=kA[0],xA=kA[1],SA=MA>=nA.length-1||"horizontal"!==DA||p;J.useEffect((function(){hA&&CA(cA)}),[cA]),J.useEffect((function(){return dA.current=!0,function(){dA.current=!1}}),[]);var FA=LN(),NA=FA.registerPath,RA=FA.unregisterPath,LA=FA.refreshOverflowKeys,PA=FA.isSubPathKey,HA=FA.getKeyPath,GA=FA.getKeys,OA=FA.getSubPathKeys,UA=J.useMemo((function(){return{registerPath:NA,unregisterPath:RA}}),[NA,RA]),KA=J.useMemo((function(){return{isSubPathKey:PA}}),[PA]);J.useEffect((function(){LA(SA?hR:nA.slice(MA+1).map((function(A){return A.key})))}),[MA,SA]);var YA=WQ(vf(v||k&&(null===(t=nA[0])||void 0===t?void 0:t.key),{value:v}),2),TA=YA[0],JA=YA[1],jA=PN((function(A){JA(A)})),qA=PN((function(){JA(void 0)}));J.useImperativeHandle(e,(function(){return{list:aA.current,focus:function(A){var e,t,n=GA(),o=xN(n,sA),r=o.elements,i=o.key2element,a=o.element2key,s=kN(aA.current,r),l=null!=TA?TA:s[0]?a.get(s[0]):null===(e=nA.find((function(A){return!A.props.disabled})))||void 0===e?void 0:e.key,g=i.get(l);l&&g&&(null==g||null===(t=g.focus)||void 0===t||t.call(g,A))}}}));var $A=WQ(vf(N||[],{value:R,postState:function(A){return Array.isArray(A)?A:null==A?hR:[A]}}),2),zA=$A[0],WA=$A[1],_A=PN((function(A){null==X||X(TN(A)),function(A){if(x){var e,t=A.key,n=zA.includes(t);e=F?n?zA.filter((function(A){return A!==t})):[].concat(XQ(zA),[t]):[t],WA(e);var o=kc(kc({},A),{},{selectedKeys:e});n?null==P||P(o):null==L||L(o)}!F&&cA.length&&"inline"!==DA&&BA(hR)}(A)})),XA=PN((function(A,e){var t=cA.filter((function(e){return e!==A}));if(e)t.push(A);else if("inline"!==DA){var n=OA(A);t=t.filter((function(A){return!n.has(A)}))}IE(cA,t,!0)||BA(t,!0)})),VA=SN(DA,TA,lA,sA,aA,GA,HA,JA,(function(A,e){var t=null!=e?e:!cA.includes(A);XA(A,t)}),Z);J.useEffect((function(){iA(!0)}),[]);var ZA=J.useMemo((function(){return{_internalRenderMenuItem:AA,_internalRenderSubMenuItem:eA}}),[AA,eA]),Ae="horizontal"!==DA||p?nA:nA.map((function(A,e){return J.createElement(gN,{key:A.key,overflowDisabled:e>MA},A)})),ee=J.createElement(MM,BQ({id:Q,ref:aA,prefixCls:"".concat(r,"-overflow"),component:"ul",itemComponent:_N,className:ud(r,"".concat(r,"-root"),"".concat(r,"-").concat(DA),s,bc(bc({},"".concat(r,"-inline-collapsed"),bA),"".concat(r,"-rtl"),lA),i),dir:B,style:a,role:"menu",tabIndex:g,data:Ae,renderRawItem:function(A){return A},renderRawRest:function(A){var e=A.length,t=e?nA.slice(-e):null;return J.createElement(cR,{eventKey:RN,title:z,disabled:SA,internalPopupClose:0===e,popupClassName:W},t)},maxCount:"horizontal"!==DA||p?MM.INVALIDATE:MM.RESPONSIVE,ssr:"full","data-menu-list":!0,onVisibleChange:function(A){xA(A)},onKeyDown:VA},tA));return J.createElement(dN.Provider,{value:ZA},J.createElement(rN.Provider,{value:sA},J.createElement(gN,{prefixCls:r,rootClassName:i,mode:DA,openKeys:cA,rtl:lA,disabled:I,motion:rA?O:null,defaultMotions:rA?U:null,activeKey:TA,onActive:jA,onInactive:qA,selectedKeys:zA,inlineIndent:G,subMenuOpenDelay:h,subMenuCloseDelay:D,forceSubMenuRender:m,builtinPlacements:T,triggerSubMenuAction:Y,getPopupContainer:_,itemIcon:j,expandIcon:q,onItemClick:_A,onOpenChange:XA},J.createElement(CN.Provider,{value:KA},ee),J.createElement("div",{style:{display:"none"},"aria-hidden":!0},J.createElement(uN.Provider,{value:UA},nA)))))}));wR.Item=_N,wR.SubMenu=cR,wR.ItemGroup=ER,wR.Divider=CR;const DR=J.createContext({});var mR={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"},yR=function(A,e){return J.createElement(Cw,BQ({},A,{ref:e,icon:mR}))},bR=J.forwardRef(yR);const vR=A=>{const{prefixCls:e,className:t,dashed:n}=A,o=function(A,e){var t={};for(var n in A)Object.prototype.hasOwnProperty.call(A,n)&&e.indexOf(n)<0&&(t[n]=A[n]);if(null!=A&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(n=Object.getOwnPropertySymbols(A);o{var e;const{className:t,children:n,icon:o,title:r,danger:i}=A,{prefixCls:a,firstLevel:s,direction:l,disableMenuItemTitleTooltip:g,inlineCollapsed:c}=J.useContext(kR),{siderCollapsed:u}=J.useContext(DR);let B=r;void 0===r?B=s?n:"":!1===r&&(B="");const Q={title:B};u||c||(Q.title=null,Q.open=!1);const E=Fd(n).length;let C=J.createElement(_N,Object.assign({},wI(A,["title","icon","danger"]),{className:ud({[`${a}-item-danger`]:i,[`${a}-item-only-child`]:1===(o?E+1:E)},t),title:"string"==typeof r?r:void 0}),Gw(o,{className:ud(J.isValidElement(o)?null===(e=o.props)||void 0===e?void 0:e.className:"",`${a}-item-icon`)}),(A=>{const e=J.createElement("span",{className:`${a}-title-content`},n);return(!o||J.isValidElement(n)&&"span"===n.type)&&n&&A&&s&&"string"==typeof n?J.createElement("div",{className:`${a}-inline-collapsed-noicon`},n.charAt(0)):e})(c));return g||(C=J.createElement(PF,Object.assign({},Q,{placement:"rtl"===l?"left":"right",overlayClassName:`${a}-inline-collapsed-tooltip`}),C)),C},xR=A=>{var e;const{popupClassName:t,icon:n,title:o,theme:r}=A,i=J.useContext(kR),{prefixCls:a,inlineCollapsed:s,theme:l}=i,g=EN();let c;if(n){const A=J.isValidElement(o)&&"span"===o.type;c=J.createElement(J.Fragment,null,Gw(n,{className:ud(J.isValidElement(n)?null===(e=n.props)||void 0===e?void 0:e.className:"",`${a}-item-icon`)}),A?o:J.createElement("span",{className:`${a}-title-content`},o))}else c=s&&!g.length&&o&&"string"==typeof o?J.createElement("div",{className:`${a}-inline-collapsed-noicon`},o.charAt(0)):J.createElement("span",{className:`${a}-title-content`},o);const u=J.useMemo((()=>Object.assign(Object.assign({},i),{firstLevel:!1})),[i]),[B]=mD("Menu");return J.createElement(kR.Provider,{value:u},J.createElement(cR,Object.assign({},wI(A,["icon"]),{title:c,popupClassName:ud(a,t,`${a}-${r||l}`),popupStyle:{zIndex:B}})))};var SR=function(A,e){var t={};for(var n in A)Object.prototype.hasOwnProperty.call(A,n)&&e.indexOf(n)<0&&(t[n]=A[n]);if(null!=A&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(n=Object.getOwnPropertySymbols(A);o{if(A&&"object"==typeof A){const t=A,{label:n,children:o,key:r,type:i}=t,a=SR(t,["label","children","key","type"]),s=null!=r?r:`tmp-${e}`;return o||"group"===i?"group"===i?J.createElement(ER,Object.assign({key:s},a,{title:n}),FR(o)):J.createElement(xR,Object.assign({key:s},a,{title:n}),FR(o)):"divider"===i?J.createElement(vR,Object.assign({key:s},a)):J.createElement(MR,Object.assign({key:s},a),n)}return null})).filter((A=>A))}function NR(A){return J.useMemo((()=>A?FR(A):A),[A])}const RR=J.createContext(null),LR=A=>{const{componentCls:e,motionDurationSlow:t,horizontalLineHeight:n,colorSplit:o,lineWidth:r,lineType:i,itemPaddingInline:a}=A;return{[`${e}-horizontal`]:{lineHeight:n,border:0,borderBottom:`${UE(r)} ${i} ${o}`,boxShadow:"none","&::after":{display:"block",clear:"both",height:0,content:'"\\20"'},[`${e}-item, ${e}-submenu`]:{position:"relative",display:"inline-block",verticalAlign:"bottom",paddingInline:a},[`> ${e}-item:hover,\n > ${e}-item-active,\n > ${e}-submenu ${e}-submenu-title:hover`]:{backgroundColor:"transparent"},[`${e}-item, ${e}-submenu-title`]:{transition:[`border-color ${t}`,`background ${t}`].join(",")},[`${e}-submenu-arrow`]:{display:"none"}}}},PR=A=>{let{componentCls:e,menuArrowOffset:t,calc:n}=A;return{[`${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(${UE(n(t).mul(-1).equal())})`},"&::after":{transform:`rotate(45deg) translateY(${UE(t)})`}}}}},HR=A=>Object.assign({},Ff(A)),GR=(A,e)=>{const{componentCls:t,itemColor:n,itemSelectedColor:o,groupTitleColor:r,itemBg:i,subMenuItemBg:a,itemSelectedBg:s,activeBarHeight:l,activeBarWidth:g,activeBarBorderWidth:c,motionDurationSlow:u,motionEaseInOut:B,motionEaseOut:Q,itemPaddingInline:E,motionDurationMid:C,itemHoverColor:d,lineType:I,colorSplit:p,itemDisabledColor:f,dangerItemColor:h,dangerItemHoverColor:w,dangerItemSelectedColor:D,dangerItemActiveBg:m,dangerItemSelectedBg:y,popupBg:b,itemHoverBg:v,itemActiveBg:k,menuSubMenuBg:M,horizontalItemSelectedColor:x,horizontalItemSelectedBg:S,horizontalItemBorderRadius:F,horizontalItemHoverBg:N}=A;return{[`${t}-${e}, ${t}-${e} > ${t}`]:{color:n,background:i,[`&${t}-root:focus-visible`]:Object.assign({},HR(A)),[`${t}-item-group-title`]:{color:r},[`${t}-submenu-selected`]:{[`> ${t}-submenu-title`]:{color:o}},[`${t}-item, ${t}-submenu-title`]:{color:n,[`&:not(${t}-item-disabled):focus-visible`]:Object.assign({},HR(A))},[`${t}-item-disabled, ${t}-submenu-disabled`]:{color:`${f} !important`},[`${t}-item:not(${t}-item-selected):not(${t}-submenu-selected)`]:{[`&:hover, > ${t}-submenu-title:hover`]:{color:d}},[`&:not(${t}-horizontal)`]:{[`${t}-item:not(${t}-item-selected)`]:{"&:hover":{backgroundColor:v},"&:active":{backgroundColor:k}},[`${t}-submenu-title`]:{"&:hover":{backgroundColor:v},"&:active":{backgroundColor:k}}},[`${t}-item-danger`]:{color:h,[`&${t}-item:hover`]:{[`&:not(${t}-item-selected):not(${t}-submenu-selected)`]:{color:w}},[`&${t}-item:active`]:{background:m}},[`${t}-item a`]:{"&, &:hover":{color:"inherit"}},[`${t}-item-selected`]:{color:o,[`&${t}-item-danger`]:{color:D},"a, a:hover":{color:"inherit"}},[`& ${t}-item-selected`]:{backgroundColor:s,[`&${t}-item-danger`]:{backgroundColor:y}},[`&${t}-submenu > ${t}`]:{backgroundColor:M},[`&${t}-popup > ${t}`]:{backgroundColor:b},[`&${t}-submenu-popup > ${t}`]:{backgroundColor:b},[`&${t}-horizontal`]:Object.assign(Object.assign({},"dark"===e?{borderBottom:0}:{}),{[`> ${t}-item, > ${t}-submenu`]:{top:c,marginTop:A.calc(c).mul(-1).equal(),marginBottom:0,borderRadius:F,"&::after":{position:"absolute",insetInline:E,bottom:0,borderBottom:`${UE(l)} solid transparent`,transition:`border-color ${u} ${B}`,content:'""'},"&:hover, &-active, &-open":{background:N,"&::after":{borderBottomWidth:l,borderBottomColor:x}},"&-selected":{color:x,backgroundColor:S,"&:hover":{backgroundColor:S},"&::after":{borderBottomWidth:l,borderBottomColor:x}}}}),[`&${t}-root`]:{[`&${t}-inline, &${t}-vertical`]:{borderInlineEnd:`${UE(c)} ${I} ${p}`}},[`&${t}-inline`]:{[`${t}-sub${t}-inline`]:{background:a},[`${t}-item`]:{position:"relative","&::after":{position:"absolute",insetBlock:0,insetInlineEnd:0,borderInlineEnd:`${UE(g)} solid ${o}`,transform:"scaleY(0.0001)",opacity:0,transition:[`transform ${C} ${Q}`,`opacity ${C} ${Q}`].join(","),content:'""'},[`&${t}-item-danger`]:{"&::after":{borderInlineEndColor:D}}},[`${t}-selected, ${t}-item-selected`]:{"&::after":{transform:"scaleY(1)",opacity:1,transition:[`transform ${C} ${B}`,`opacity ${C} ${B}`].join(",")}}}}}},OR=A=>{const{componentCls:e,itemHeight:t,itemMarginInline:n,padding:o,menuArrowSize:r,marginXS:i,itemMarginBlock:a,itemWidth:s}=A,l=A.calc(r).add(o).add(i).equal();return{[`${e}-item`]:{position:"relative",overflow:"hidden"},[`${e}-item, ${e}-submenu-title`]:{height:t,lineHeight:UE(t),paddingInline:o,overflow:"hidden",textOverflow:"ellipsis",marginInline:n,marginBlock:a,width:s},[`> ${e}-item,\n > ${e}-submenu > ${e}-submenu-title`]:{height:t,lineHeight:UE(t)},[`${e}-item-group-list ${e}-submenu-title,\n ${e}-submenu-title`]:{paddingInlineEnd:l}}},UR=A=>{const{componentCls:e,iconCls:t,itemHeight:n,colorTextLightSolid:o,dropdownWidth:r,controlHeightLG:i,motionDurationMid:a,motionEaseOut:s,paddingXL:l,itemMarginInline:g,fontSizeLG:c,motionDurationSlow:u,paddingXS:B,boxShadowSecondary:Q,collapsedWidth:E,collapsedIconSize:C}=A,d={height:n,lineHeight:UE(n),listStylePosition:"inside",listStyleType:"disc"};return[{[e]:{"&-inline, &-vertical":Object.assign({[`&${e}-root`]:{boxShadow:"none"}},OR(A))},[`${e}-submenu-popup`]:{[`${e}-vertical`]:Object.assign(Object.assign({},OR(A)),{boxShadow:Q})}},{[`${e}-submenu-popup ${e}-vertical${e}-sub`]:{minWidth:r,maxHeight:`calc(100vh - ${UE(A.calc(i).mul(2.5).equal())})`,padding:"0",overflow:"hidden",borderInlineEnd:0,"&:not([class*='-active'])":{overflowX:"hidden",overflowY:"auto"}}},{[`${e}-inline`]:{width:"100%",[`&${e}-root`]:{[`${e}-item, ${e}-submenu-title`]:{display:"flex",alignItems:"center",transition:[`border-color ${u}`,`background ${u}`,`padding ${a} ${s}`,`padding-inline calc(50% - ${UE(A.calc(c).div(2).equal())} - ${UE(g)})`].join(","),[`> ${e}-title-content`]:{flex:"auto",minWidth:0,overflow:"hidden",textOverflow:"ellipsis"},"> *":{flex:"none"}}},[`${e}-sub${e}-inline`]:{padding:0,border:0,borderRadius:0,boxShadow:"none",[`& > ${e}-submenu > ${e}-submenu-title`]:d,[`& ${e}-item-group-title`]:{paddingInlineStart:l}},[`${e}-item`]:d}},{[`${e}-inline-collapsed`]:{width:E,[`&${e}-root`]:{[`${e}-item, ${e}-submenu ${e}-submenu-title`]:{[`> ${e}-inline-collapsed-noicon`]:{fontSize:c,textAlign:"center"}}},[`> ${e}-item,\n > ${e}-item-group > ${e}-item-group-list > ${e}-item,\n > ${e}-item-group > ${e}-item-group-list > ${e}-submenu > ${e}-submenu-title,\n > ${e}-submenu > ${e}-submenu-title`]:{insetInlineStart:0,paddingInline:`calc(50% - ${UE(A.calc(c).div(2).equal())} - ${UE(g)})`,textOverflow:"clip",[`\n ${e}-submenu-arrow,\n ${e}-submenu-expand-icon\n `]:{opacity:0},[`${e}-item-icon, ${t}`]:{margin:0,fontSize:C,lineHeight:UE(n),"+ span":{display:"inline-block",opacity:0}}},[`${e}-item-icon, ${t}`]:{display:"inline-block"},"&-tooltip":{pointerEvents:"none",[`${e}-item-icon, ${t}`]:{display:"none"},"a, a:hover":{color:o}},[`${e}-item-group-title`]:Object.assign(Object.assign({},kf),{paddingInline:B})}}]},KR=A=>{const{componentCls:e,motionDurationSlow:t,motionDurationMid:n,motionEaseInOut:o,motionEaseOut:r,iconCls:i,iconSize:a,iconMarginInlineEnd:s}=A;return{[`${e}-item, ${e}-submenu-title`]:{position:"relative",display:"block",margin:0,whiteSpace:"nowrap",cursor:"pointer",transition:[`border-color ${t}`,`background ${t}`,`padding ${t} ${o}`].join(","),[`${e}-item-icon, ${i}`]:{minWidth:a,fontSize:a,transition:[`font-size ${n} ${r}`,`margin ${t} ${o}`,`color ${t}`].join(","),"+ span":{marginInlineStart:s,opacity:1,transition:[`opacity ${t} ${o}`,`margin ${t}`,`color ${t}`].join(",")}},[`${e}-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"}}),[`&${e}-item-only-child`]:{[`> ${i}, > ${e}-item-icon`]:{marginInlineEnd:0}}},[`${e}-item-disabled, ${e}-submenu-disabled`]:{background:"none !important",cursor:"not-allowed","&::after":{borderColor:"transparent !important"},a:{color:"inherit !important"},[`> ${e}-submenu-title`]:{color:"inherit !important",cursor:"not-allowed"}}}},YR=A=>{const{componentCls:e,motionDurationSlow:t,motionEaseInOut:n,borderRadius:o,menuArrowSize:r,menuArrowOffset:i}=A;return{[`${e}-submenu`]:{"&-expand-icon, &-arrow":{position:"absolute",top:"50%",insetInlineEnd:A.margin,width:r,color:"currentcolor",transform:"translateY(-50%)",transition:`transform ${t} ${n}, opacity ${t}`},"&-arrow":{"&::before, &::after":{position:"absolute",width:A.calc(r).mul(.6).equal(),height:A.calc(r).mul(.15).equal(),backgroundColor:"currentcolor",borderRadius:o,transition:[`background ${t} ${n}`,`transform ${t} ${n}`,`top ${t} ${n}`,`color ${t} ${n}`].join(","),content:'""'},"&::before":{transform:`rotate(45deg) translateY(${UE(A.calc(i).mul(-1).equal())})`},"&::after":{transform:`rotate(-45deg) translateY(${UE(i)})`}}}}},TR=A=>{const{antCls:e,componentCls:t,fontSize:n,motionDurationSlow:o,motionDurationMid:r,motionEaseInOut:i,paddingXS:a,padding:s,colorSplit:l,lineWidth:g,zIndexPopup:c,borderRadiusLG:u,subMenuItemBorderRadius:B,menuArrowSize:Q,menuArrowOffset:E,lineType:C,groupTitleLineHeight:d,groupTitleFontSize:I}=A;return[{"":{[`${t}`]:Object.assign(Object.assign({},{"&::before":{display:"table",content:'""'},"&::after":{display:"table",clear:"both",content:'""'}}),{"&-hidden":{display:"none"}})},[`${t}-submenu-hidden`]:{display:"none"}},{[t]:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},Mf(A)),{"&::before":{display:"table",content:'""'},"&::after":{display:"table",clear:"both",content:'""'}}),{marginBottom:0,paddingInlineStart:0,fontSize:n,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",[`${t}-item`]:{flex:"none"}},[`${t}-item, ${t}-submenu, ${t}-submenu-title`]:{borderRadius:A.itemBorderRadius},[`${t}-item-group-title`]:{padding:`${UE(a)} ${UE(s)}`,fontSize:I,lineHeight:d,transition:`all ${o}`},[`&-horizontal ${t}-submenu`]:{transition:[`border-color ${o} ${i}`,`background ${o} ${i}`].join(",")},[`${t}-submenu, ${t}-submenu-inline`]:{transition:[`border-color ${o} ${i}`,`background ${o} ${i}`,`padding ${r} ${i}`].join(",")},[`${t}-submenu ${t}-sub`]:{cursor:"initial",transition:[`background ${o} ${i}`,`padding ${o} ${i}`].join(",")},[`${t}-title-content`]:{transition:`color ${o}`,[`> ${e}-typography-ellipsis-single-line`]:{display:"inline",verticalAlign:"unset"}},[`${t}-item a`]:{"&::before":{position:"absolute",inset:0,backgroundColor:"transparent",content:'""'}},[`${t}-item-divider`]:{overflow:"hidden",lineHeight:0,borderColor:l,borderStyle:C,borderWidth:0,borderTopWidth:g,marginBlock:g,padding:0,"&-dashed":{borderStyle:"dashed"}}}),KR(A)),{[`${t}-item-group`]:{[`${t}-item-group-list`]:{margin:0,padding:0,[`${t}-item, ${t}-submenu-title`]:{paddingInline:`${UE(A.calc(n).mul(2).equal())} ${UE(s)}`}}},"&-submenu":{"&-popup":{position:"absolute",zIndex:c,borderRadius:u,boxShadow:"none",transformOrigin:"0 0",[`&${t}-submenu`]:{background:"transparent"},"&::before":{position:"absolute",inset:0,zIndex:-1,width:"100%",height:"100%",opacity:0,content:'""'},[`> ${t}`]:Object.assign(Object.assign(Object.assign({borderRadius:u},KR(A)),YR(A)),{[`${t}-item, ${t}-submenu > ${t}-submenu-title`]:{borderRadius:B},[`${t}-submenu-title::after`]:{transition:`transform ${o} ${i}`}})},"\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:A.paddingXS},"\n &-placement-rightTop,\n &-placement-rightBottom\n ":{paddingInlineStart:A.paddingXS},"\n &-placement-topRight,\n &-placement-topLeft\n ":{paddingBottom:A.paddingXS},"\n &-placement-bottomRight,\n &-placement-bottomLeft\n ":{paddingTop:A.paddingXS}}}),YR(A)),{[`&-inline-collapsed ${t}-submenu-arrow,\n &-inline ${t}-submenu-arrow`]:{"&::before":{transform:`rotate(-45deg) translateX(${UE(E)})`},"&::after":{transform:`rotate(45deg) translateX(${UE(A.calc(E).mul(-1).equal())})`}},[`${t}-submenu-open${t}-submenu-inline > ${t}-submenu-title > ${t}-submenu-arrow`]:{transform:`translateY(${UE(A.calc(Q).mul(.2).mul(-1).equal())})`,"&::after":{transform:`rotate(-45deg) translateX(${UE(A.calc(E).mul(-1).equal())})`},"&::before":{transform:`rotate(45deg) translateX(${UE(E)})`}}})},{[`${e}-layout-header`]:{[t]:{lineHeight:"inherit"}}}]},JR=A=>{var e,t,n;const{colorPrimary:o,colorError:r,colorTextDisabled:i,colorErrorBg:a,colorText:s,colorTextDescription:l,colorBgContainer:g,colorFillAlter:c,colorFillContent:u,lineWidth:B,lineWidthBold:Q,controlItemBgActive:E,colorBgTextHover:C,controlHeightLG:d,lineHeight:I,colorBgElevated:p,marginXXS:f,padding:h,fontSize:w,controlHeightSM:D,fontSizeLG:m,colorTextLightSolid:y,colorErrorHover:b}=A,v=null!==(e=A.activeBarWidth)&&void 0!==e?e:0,k=null!==(t=A.activeBarBorderWidth)&&void 0!==t?t:B,M=null!==(n=A.itemMarginInline)&&void 0!==n?n:A.marginXXS,x=new Cp(y).setAlpha(.65).toRgbString();return{dropdownWidth:160,zIndexPopup:A.zIndexPopupBase+50,radiusItem:A.borderRadiusLG,itemBorderRadius:A.borderRadiusLG,radiusSubMenuItem:A.borderRadiusSM,subMenuItemBorderRadius:A.borderRadiusSM,colorItemText:s,itemColor:s,colorItemTextHover:s,itemHoverColor:s,colorItemTextHoverHorizontal:o,horizontalItemHoverColor:o,colorGroupTitle:l,groupTitleColor:l,colorItemTextSelected:o,itemSelectedColor:o,colorItemTextSelectedHorizontal:o,horizontalItemSelectedColor:o,colorItemBg:g,itemBg:g,colorItemBgHover:C,itemHoverBg:C,colorItemBgActive:u,itemActiveBg:E,colorSubItemBg:c,subMenuItemBg:c,colorItemBgSelected:E,itemSelectedBg:E,colorItemBgSelectedHorizontal:"transparent",horizontalItemSelectedBg:"transparent",colorActiveBarWidth:0,activeBarWidth:v,colorActiveBarHeight:Q,activeBarHeight:Q,colorActiveBarBorderSize:B,activeBarBorderWidth:k,colorItemTextDisabled:i,itemDisabledColor:i,colorDangerItemText:r,dangerItemColor:r,colorDangerItemTextHover:r,dangerItemHoverColor:r,colorDangerItemTextSelected:r,dangerItemSelectedColor:r,colorDangerItemBgActive:a,dangerItemActiveBg:a,colorDangerItemBgSelected:a,dangerItemSelectedBg:a,itemMarginInline:M,horizontalItemBorderRadius:0,horizontalItemHoverBg:"transparent",itemHeight:d,groupTitleLineHeight:I,collapsedWidth:2*d,popupBg:p,itemMarginBlock:f,itemPaddingInline:h,horizontalLineHeight:1.15*d+"px",iconSize:w,iconMarginInlineEnd:D-w,collapsedIconSize:m,groupTitleFontSize:w,darkItemDisabledColor:new Cp(y).setAlpha(.25).toRgbString(),darkItemColor:x,darkDangerItemColor:r,darkItemBg:"#001529",darkPopupBg:"#001529",darkSubMenuItemBg:"#000c17",darkItemSelectedColor:y,darkItemSelectedBg:o,darkDangerItemSelectedBg:r,darkItemHoverBg:"transparent",darkGroupTitleColor:x,darkItemHoverColor:y,darkDangerItemHoverColor:b,darkDangerItemSelectedColor:y,darkDangerItemActiveBg:r,itemWidth:v?`calc(100% + ${k}px)`:`calc(100% - ${2*M}px)`}};function jR(A){return null===A||!1===A}const qR=J.forwardRef(((A,e)=>{var t;const n=J.useContext(RR),o=n||{},{getPrefixCls:r,getPopupContainer:i,direction:a,menu:s}=J.useContext(Xp),l=r(),{prefixCls:g,className:c,style:u,theme:B="light",expandIcon:Q,_internalDisableMenuItemTitleTooltip:E,inlineCollapsed:C,siderCollapsed:d,items:I,children:p,rootClassName:f,mode:h,selectable:w,onClick:D,overflowedIndicatorPopupClassName:m}=A,y=wI(function(A,e){var t={};for(var n in A)Object.prototype.hasOwnProperty.call(A,n)&&e.indexOf(n)<0&&(t[n]=A[n]);if(null!=A&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(n=Object.getOwnPropertySymbols(A);ovoid 0!==d?d:C),[C,d]),S={horizontal:{motionName:`${l}-slide-up`},inline:om(l),other:{motionName:`${l}-zoom-big`}},F=r("menu",g||o.prefixCls),N=oD(F),[R,L,P]=function(A){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:A;return jf("Menu",(A=>{const{colorBgElevated:e,controlHeightLG:t,fontSize:n,darkItemColor:o,darkDangerItemColor:r,darkItemBg:i,darkSubMenuItemBg:a,darkItemSelectedColor:s,darkItemSelectedBg:l,darkDangerItemSelectedBg:g,darkItemHoverBg:c,darkGroupTitleColor:u,darkItemHoverColor:B,darkItemDisabledColor:Q,darkDangerItemHoverColor:E,darkDangerItemSelectedColor:C,darkDangerItemActiveBg:d,popupBg:I,darkPopupBg:p}=A,f=A.calc(n).div(7).mul(5).equal(),h=Pf(A,{menuArrowSize:f,menuHorizontalHeight:A.calc(t).mul(1.15).equal(),menuArrowOffset:A.calc(f).mul(.25).equal(),menuSubMenuBg:e,calc:A.calc,popupBg:I}),w=Pf(h,{itemColor:o,itemHoverColor:B,groupTitleColor:u,itemSelectedColor:s,itemBg:i,popupBg:p,subMenuItemBg:a,itemActiveBg:"transparent",itemSelectedBg:l,activeBarHeight:0,activeBarBorderWidth:0,itemHoverBg:c,itemDisabledColor:Q,dangerItemColor:r,dangerItemHoverColor:E,dangerItemSelectedColor:C,dangerItemActiveBg:d,dangerItemSelectedBg:g,menuSubMenuBg:a,horizontalItemSelectedColor:s,horizontalItemSelectedBg:l});return[TR(h),LR(h),UR(h),GR(h,"light"),GR(w,"dark"),PR(h),fv(h),Jv(h,"slide-up"),Jv(h,"slide-down"),ok(h,"zoom-big")]}),JR,{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:!(arguments.length>2&&void 0!==arguments[2])||arguments[2],unitless:{groupTitleLineHeight:!0}})(A,e)}(F,N,!n),H=ud(`${F}-${B}`,null==s?void 0:s.className,c),G=J.useMemo((()=>{var A,e;if("function"==typeof Q||jR(Q))return Q||null;if("function"==typeof o.expandIcon||jR(o.expandIcon))return o.expandIcon||null;if("function"==typeof(null==s?void 0:s.expandIcon)||jR(null==s?void 0:s.expandIcon))return(null==s?void 0:s.expandIcon)||null;const t=null!==(A=null!=Q?Q:null==o?void 0:o.expandIcon)&&void 0!==A?A:null==s?void 0:s.expandIcon;return Gw(t,{className:ud(`${F}-submenu-expand-icon`,J.isValidElement(t)?null===(e=t.props)||void 0===e?void 0:e.className:void 0)})}),[Q,null==o?void 0:o.expandIcon,null==s?void 0:s.expandIcon,F]),O=J.useMemo((()=>({prefixCls:F,inlineCollapsed:x||!1,direction:a,firstLevel:!0,theme:B,mode:k,disableMenuItemTitleTooltip:E})),[F,x,a,E,B]);return R(J.createElement(RR.Provider,{value:null},J.createElement(kR.Provider,{value:O},J.createElement(wR,Object.assign({getPopupContainer:i,overflowedIndicator:J.createElement(bR,null),overflowedIndicatorPopupClassName:ud(F,`${F}-${B}`,m),mode:k,selectable:M,onClick:v},y,{inlineCollapsed:x,style:Object.assign(Object.assign({},null==s?void 0:s.style),u),className:H,prefixCls:F,direction:a,defaultMotions:S,expandIcon:G,ref:e,rootClassName:ud(f,L,o.rootClassName,P,N)}),b))))})),$R=J.forwardRef(((A,e)=>{const t=J.useRef(null),n=J.useContext(DR);return J.useImperativeHandle(e,(()=>({menu:t.current,focus:A=>{var e;null===(e=t.current)||void 0===e||e.focus(A)}}))),J.createElement(qR,Object.assign({ref:t},A,n))}));$R.Item=MR,$R.SubMenu=xR,$R.Divider=vR,$R.ItemGroup=ER;var zR={exports:{}};zR.exports=function(){var A=1e3,e=6e4,t=36e5,n="millisecond",o="second",r="minute",i="hour",a="day",s="week",l="month",g="quarter",c="year",u="date",B="Invalid Date",Q=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,E=/\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,C={name:"en",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),ordinal:function(A){var e=["th","st","nd","rd"],t=A%100;return"["+A+(e[(t-20)%10]||e[t]||e[0])+"]"}},d=function(A,e,t){var n=String(A);return!n||n.length>=e?A:""+Array(e+1-n.length).join(t)+A},I={s:d,z:function(A){var e=-A.utcOffset(),t=Math.abs(e),n=Math.floor(t/60),o=t%60;return(e<=0?"+":"-")+d(n,2,"0")+":"+d(o,2,"0")},m:function A(e,t){if(e.date()1)return A(i[0])}else{var a=e.name;f[a]=e,o=a}return!n&&o&&(p=o),o||!n&&p},m=function(A,e){if(w(A))return A.clone();var t="object"==typeof e?e:{};return t.date=A,t.args=arguments,new b(t)},y=I;y.l=D,y.i=w,y.w=function(A,e){return m(A,{locale:e.$L,utc:e.$u,x:e.$x,$offset:e.$offset})};var b=function(){function C(A){this.$L=D(A.locale,null,!0),this.parse(A),this.$x=this.$x||A.x||{},this[h]=!0}var d=C.prototype;return d.parse=function(A){this.$d=function(A){var e=A.date,t=A.utc;if(null===e)return new Date(NaN);if(y.u(e))return new Date;if(e instanceof Date)return new Date(e);if("string"==typeof e&&!/Z$/i.test(e)){var n=e.match(Q);if(n){var o=n[2]-1||0,r=(n[7]||"0").substring(0,3);return t?new Date(Date.UTC(n[1],o,n[3]||1,n[4]||0,n[5]||0,n[6]||0,r)):new Date(n[1],o,n[3]||1,n[4]||0,n[5]||0,n[6]||0,r)}}return new Date(e)}(A),this.init()},d.init=function(){var A=this.$d;this.$y=A.getFullYear(),this.$M=A.getMonth(),this.$D=A.getDate(),this.$W=A.getDay(),this.$H=A.getHours(),this.$m=A.getMinutes(),this.$s=A.getSeconds(),this.$ms=A.getMilliseconds()},d.$utils=function(){return y},d.isValid=function(){return!(this.$d.toString()===B)},d.isSame=function(A,e){var t=m(A);return this.startOf(e)<=t&&t<=this.endOf(e)},d.isAfter=function(A,e){return m(A){const{controlHeight:e,fontSize:t,lineHeight:n,lineWidth:o,controlHeightSM:r,controlHeightLG:i,fontSizeLG:a,lineHeightLG:s,paddingSM:l,controlPaddingHorizontalSM:g,controlPaddingHorizontal:c,colorFillAlter:u,colorPrimaryHover:B,colorPrimary:Q,controlOutlineWidth:E,controlOutline:C,colorErrorOutline:d,colorWarningOutline:I,colorBgContainer:p}=A;return{paddingBlock:Math.max(Math.round((e-t*n)/2*10)/10-o,0),paddingBlockSM:Math.max(Math.round((r-t*n)/2*10)/10-o,0),paddingBlockLG:Math.ceil((i-a*s)/2*10)/10-o,paddingInline:l-o,paddingInlineSM:g-o,paddingInlineLG:c-o,addonBg:u,activeBorderColor:Q,hoverBorderColor:B,activeShadow:`0 0 0 ${E}px ${C}`,errorActiveShadow:`0 0 0 ${E}px ${d}`,warningActiveShadow:`0 0 0 ${E}px ${I}`,hoverBg:p,activeBg:p,inputFontSize:t,inputFontSizeLG:a,inputFontSizeSM:t}},VR=A=>({borderColor:A.hoverBorderColor,backgroundColor:A.hoverBg}),ZR=A=>({color:A.colorTextDisabled,backgroundColor:A.colorBgContainerDisabled,borderColor:A.colorBorder,boxShadow:"none",cursor:"not-allowed",opacity:1,"input[disabled], textarea[disabled]":{cursor:"not-allowed"},"&:hover:not([disabled])":Object.assign({},VR(Pf(A,{hoverBorderColor:A.colorBorder,hoverBg:A.colorBgContainerDisabled})))}),AL=(A,e)=>({background:A.colorBgContainer,borderWidth:A.lineWidth,borderStyle:A.lineType,borderColor:e.borderColor,"&:hover":{borderColor:e.hoverBorderColor,backgroundColor:A.hoverBg},"&:focus, &:focus-within":{borderColor:e.activeBorderColor,boxShadow:e.activeShadow,outline:0,backgroundColor:A.activeBg}}),eL=(A,e)=>({[`&${A.componentCls}-status-${e.status}:not(${A.componentCls}-disabled)`]:Object.assign(Object.assign({},AL(A,e)),{[`${A.componentCls}-prefix, ${A.componentCls}-suffix`]:{color:e.affixColor}}),[`&${A.componentCls}-status-${e.status}${A.componentCls}-disabled`]:{borderColor:e.borderColor}}),tL=(A,e)=>({"&-outlined":Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},AL(A,{borderColor:A.colorBorder,hoverBorderColor:A.hoverBorderColor,activeBorderColor:A.activeBorderColor,activeShadow:A.activeShadow})),{[`&${A.componentCls}-disabled, &[disabled]`]:Object.assign({},ZR(A))}),eL(A,{status:"error",borderColor:A.colorError,hoverBorderColor:A.colorErrorBorderHover,activeBorderColor:A.colorError,activeShadow:A.errorActiveShadow,affixColor:A.colorError})),eL(A,{status:"warning",borderColor:A.colorWarning,hoverBorderColor:A.colorWarningBorderHover,activeBorderColor:A.colorWarning,activeShadow:A.warningActiveShadow,affixColor:A.colorWarning})),e)}),nL=(A,e)=>({[`&${A.componentCls}-group-wrapper-status-${e.status}`]:{[`${A.componentCls}-group-addon`]:{borderColor:e.addonBorderColor,color:e.addonColor}}}),oL=A=>({"&-outlined":Object.assign(Object.assign(Object.assign({[`${A.componentCls}-group`]:{"&-addon":{background:A.addonBg,border:`${UE(A.lineWidth)} ${A.lineType} ${A.colorBorder}`},"&-addon:first-child":{borderInlineEnd:0},"&-addon:last-child":{borderInlineStart:0}}},nL(A,{status:"error",addonBorderColor:A.colorError,addonColor:A.colorErrorText})),nL(A,{status:"warning",addonBorderColor:A.colorWarning,addonColor:A.colorWarningText})),{[`&${A.componentCls}-group-wrapper-disabled`]:{[`${A.componentCls}-group-addon`]:Object.assign({},ZR(A))}})}),rL=(A,e)=>({"&-borderless":Object.assign({background:"transparent",border:"none","&:focus, &:focus-within":{outline:"none"},[`&${A.componentCls}-disabled, &[disabled]`]:{color:A.colorTextDisabled}},e)}),iL=(A,e)=>({background:e.bg,borderWidth:A.lineWidth,borderStyle:A.lineType,borderColor:"transparent","input&, & input, textarea&, & textarea":{color:null==e?void 0:e.inputColor},"&:hover":{background:e.hoverBg},"&:focus, &:focus-within":{outline:0,borderColor:e.activeBorderColor,backgroundColor:A.activeBg}}),aL=(A,e)=>({[`&${A.componentCls}-status-${e.status}:not(${A.componentCls}-disabled)`]:Object.assign(Object.assign({},iL(A,e)),{[`${A.componentCls}-prefix, ${A.componentCls}-suffix`]:{color:e.affixColor}})}),sL=(A,e)=>({"&-filled":Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},iL(A,{bg:A.colorFillTertiary,hoverBg:A.colorFillSecondary,activeBorderColor:A.colorPrimary})),{[`&${A.componentCls}-disabled, &[disabled]`]:Object.assign({},ZR(A))}),aL(A,{status:"error",bg:A.colorErrorBg,hoverBg:A.colorErrorBgHover,activeBorderColor:A.colorError,inputColor:A.colorErrorText,affixColor:A.colorError})),aL(A,{status:"warning",bg:A.colorWarningBg,hoverBg:A.colorWarningBgHover,activeBorderColor:A.colorWarning,inputColor:A.colorWarningText,affixColor:A.colorWarning})),e)}),lL=(A,e)=>({[`&${A.componentCls}-group-wrapper-status-${e.status}`]:{[`${A.componentCls}-group-addon`]:{background:e.addonBg,color:e.addonColor}}}),gL=A=>({"&-filled":Object.assign(Object.assign(Object.assign({[`${A.componentCls}-group`]:{"&-addon":{background:A.colorFillTertiary},[`${A.componentCls}-filled:not(:focus):not(:focus-within)`]:{"&:not(:first-child)":{borderInlineStart:`${UE(A.lineWidth)} ${A.lineType} ${A.colorSplit}`},"&:not(:last-child)":{borderInlineEnd:`${UE(A.lineWidth)} ${A.lineType} ${A.colorSplit}`}}}},lL(A,{status:"error",addonBg:A.colorErrorBg,addonColor:A.colorErrorText})),lL(A,{status:"warning",addonBg:A.colorWarningBg,addonColor:A.colorWarningText})),{[`&${A.componentCls}-group-wrapper-disabled`]:{[`${A.componentCls}-group`]:{"&-addon":{background:A.colorFillTertiary,color:A.colorTextDisabled},"&-addon:first-child":{borderInlineStart:`${UE(A.lineWidth)} ${A.lineType} ${A.colorBorder}`,borderTop:`${UE(A.lineWidth)} ${A.lineType} ${A.colorBorder}`,borderBottom:`${UE(A.lineWidth)} ${A.lineType} ${A.colorBorder}`},"&-addon:last-child":{borderInlineEnd:`${UE(A.lineWidth)} ${A.lineType} ${A.colorBorder}`,borderTop:`${UE(A.lineWidth)} ${A.lineType} ${A.colorBorder}`,borderBottom:`${UE(A.lineWidth)} ${A.lineType} ${A.colorBorder}`}}}})}),cL=A=>({"&::-moz-placeholder":{opacity:1},"&::placeholder":{color:A,userSelect:"none"},"&:placeholder-shown":{textOverflow:"ellipsis"}}),uL=A=>{const{paddingBlockLG:e,lineHeightLG:t,borderRadiusLG:n,paddingInlineLG:o}=A;return{padding:`${UE(e)} ${UE(o)}`,fontSize:A.inputFontSizeLG,lineHeight:t,borderRadius:n}},BL=A=>({padding:`${UE(A.paddingBlockSM)} ${UE(A.paddingInlineSM)}`,fontSize:A.inputFontSizeSM,borderRadius:A.borderRadiusSM}),QL=A=>Object.assign(Object.assign({position:"relative",display:"inline-block",width:"100%",minWidth:0,padding:`${UE(A.paddingBlock)} ${UE(A.paddingInline)}`,color:A.colorText,fontSize:A.inputFontSize,lineHeight:A.lineHeight,borderRadius:A.borderRadius,transition:`all ${A.motionDurationMid}`},cL(A.colorTextPlaceholder)),{"textarea&":{maxWidth:"100%",height:"auto",minHeight:A.controlHeight,lineHeight:A.lineHeight,verticalAlign:"bottom",transition:`all ${A.motionDurationSlow}, height 0s`,resize:"vertical"},"&-lg":Object.assign({},uL(A)),"&-sm":Object.assign({},BL(A)),"&-rtl":{direction:"rtl"},"&-textarea-rtl":{direction:"rtl"}}),EL=A=>{const{componentCls:e,antCls:t}=A;return{position:"relative",display:"table",width:"100%",borderCollapse:"separate",borderSpacing:0,"&[class*='col-']":{paddingInlineEnd:A.paddingXS,"&:last-child":{paddingInlineEnd:0}},[`&-lg ${e}, &-lg > ${e}-group-addon`]:Object.assign({},uL(A)),[`&-sm ${e}, &-sm > ${e}-group-addon`]:Object.assign({},BL(A)),[`&-lg ${t}-select-single ${t}-select-selector`]:{height:A.controlHeightLG},[`&-sm ${t}-select-single ${t}-select-selector`]:{height:A.controlHeightSM},[`> ${e}`]:{display:"table-cell","&:not(:first-child):not(:last-child)":{borderRadius:0}},[`${e}-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 ${UE(A.paddingInline)}`,color:A.colorText,fontWeight:"normal",fontSize:A.inputFontSize,textAlign:"center",borderRadius:A.borderRadius,transition:`all ${A.motionDurationSlow}`,lineHeight:1,[`${t}-select`]:{margin:`${UE(A.calc(A.paddingBlock).add(1).mul(-1).equal())} ${UE(A.calc(A.paddingInline).mul(-1).equal())}`,[`&${t}-select-single:not(${t}-select-customize-input):not(${t}-pagination-size-changer)`]:{[`${t}-select-selector`]:{backgroundColor:"inherit",border:`${UE(A.lineWidth)} ${A.lineType} transparent`,boxShadow:"none"}},"&-open, &-focused":{[`${t}-select-selector`]:{color:A.colorPrimary}}},[`${t}-cascader-picker`]:{margin:`-9px ${UE(A.calc(A.paddingInline).mul(-1).equal())}`,backgroundColor:"transparent",[`${t}-cascader-input`]:{textAlign:"start",border:0,boxShadow:"none"}}}},[`${e}`]:{width:"100%",marginBottom:0,textAlign:"inherit","&:focus":{zIndex:1,borderInlineEndWidth:1},"&:hover":{zIndex:1,borderInlineEndWidth:1,[`${e}-search-with-button &`]:{zIndex:0}}},[`> ${e}:first-child, ${e}-group-addon:first-child`]:{borderStartEndRadius:0,borderEndEndRadius:0,[`${t}-select ${t}-select-selector`]:{borderStartEndRadius:0,borderEndEndRadius:0}},[`> ${e}-affix-wrapper`]:{[`&:not(:first-child) ${e}`]:{borderStartStartRadius:0,borderEndStartRadius:0},[`&:not(:last-child) ${e}`]:{borderStartEndRadius:0,borderEndEndRadius:0}},[`> ${e}:last-child, ${e}-group-addon:last-child`]:{borderStartStartRadius:0,borderEndStartRadius:0,[`${t}-select ${t}-select-selector`]:{borderStartStartRadius:0,borderEndStartRadius:0}},[`${e}-affix-wrapper`]:{"&:not(:last-child)":{borderStartEndRadius:0,borderEndEndRadius:0,[`${e}-search &`]:{borderStartStartRadius:A.borderRadius,borderEndStartRadius:A.borderRadius}},[`&:not(:first-child), ${e}-search &:not(:first-child)`]:{borderStartStartRadius:0,borderEndStartRadius:0}},[`&${e}-group-compact`]:Object.assign(Object.assign({display:"block"},{"&::before":{display:"table",content:'""'},"&::after":{display:"table",clear:"both",content:'""'}}),{[`${e}-group-addon, ${e}-group-wrap, > ${e}`]:{"&:not(:first-child):not(:last-child)":{borderInlineEndWidth:A.lineWidth,"&:hover":{zIndex:1},"&:focus":{zIndex:1}}},"& > *":{display:"inline-block",float:"none",verticalAlign:"top",borderRadius:0},[`\n & > ${e}-affix-wrapper,\n & > ${e}-number-affix-wrapper,\n & > ${t}-picker-range\n `]:{display:"inline-flex"},"& > *:not(:last-child)":{marginInlineEnd:A.calc(A.lineWidth).mul(-1).equal(),borderInlineEndWidth:A.lineWidth},[`${e}`]:{float:"none"},[`& > ${t}-select > ${t}-select-selector,\n & > ${t}-select-auto-complete ${e},\n & > ${t}-cascader-picker ${e},\n & > ${e}-group-wrapper ${e}`]:{borderInlineEndWidth:A.lineWidth,borderRadius:0,"&:hover":{zIndex:1},"&:focus":{zIndex:1}},[`& > ${t}-select-focused`]:{zIndex:1},[`& > ${t}-select > ${t}-select-arrow`]:{zIndex:1},[`& > *:first-child,\n & > ${t}-select:first-child > ${t}-select-selector,\n & > ${t}-select-auto-complete:first-child ${e},\n & > ${t}-cascader-picker:first-child ${e}`]:{borderStartStartRadius:A.borderRadius,borderEndStartRadius:A.borderRadius},[`& > *:last-child,\n & > ${t}-select:last-child > ${t}-select-selector,\n & > ${t}-cascader-picker:last-child ${e},\n & > ${t}-cascader-picker-focused:last-child ${e}`]:{borderInlineEndWidth:A.lineWidth,borderStartEndRadius:A.borderRadius,borderEndEndRadius:A.borderRadius},[`& > ${t}-select-auto-complete ${e}`]:{verticalAlign:"top"},[`${e}-group-wrapper + ${e}-group-wrapper`]:{marginInlineStart:A.calc(A.lineWidth).mul(-1).equal(),[`${e}-affix-wrapper`]:{borderRadius:0}},[`${e}-group-wrapper:not(:last-child)`]:{[`&${e}-search > ${e}-group`]:{[`& > ${e}-group-addon > ${e}-search-button`]:{borderRadius:0},[`& > ${e}`]:{borderStartStartRadius:A.borderRadius,borderStartEndRadius:0,borderEndEndRadius:0,borderEndStartRadius:A.borderRadius}}}})}},CL=A=>{const{componentCls:e,controlHeightSM:t,lineWidth:n,calc:o}=A,r=o(t).sub(o(n).mul(2)).sub(16).div(2).equal();return{[e]:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},Mf(A)),QL(A)),tL(A)),sL(A)),rL(A)),{'&[type="color"]':{height:A.controlHeight,[`&${e}-lg`]:{height:A.controlHeightLG},[`&${e}-sm`]:{height:t,paddingTop:r,paddingBottom:r}},'&[type="search"]::-webkit-search-cancel-button, &[type="search"]::-webkit-search-decoration':{"-webkit-appearance":"none"}})}},dL=A=>{const{componentCls:e}=A;return{[`${e}-clear-icon`]:{margin:0,color:A.colorTextQuaternary,fontSize:A.fontSizeIcon,verticalAlign:-1,cursor:"pointer",transition:`color ${A.motionDurationSlow}`,"&:hover":{color:A.colorTextTertiary},"&:active":{color:A.colorText},"&-hidden":{visibility:"hidden"},"&-has-suffix":{margin:`0 ${UE(A.inputAffixPadding)}`}}}},IL=A=>{const{componentCls:e,inputAffixPadding:t,colorTextDescription:n,motionDurationSlow:o,colorIcon:r,colorIconHover:i,iconCls:a}=A,s=`${e}-affix-wrapper`;return{[s]:Object.assign(Object.assign(Object.assign(Object.assign({},QL(A)),{display:"inline-flex",[`&:not(${e}-disabled):hover`]:{zIndex:1,[`${e}-search-with-button &`]:{zIndex:0}},"&-focused, &:focus":{zIndex:1},[`> input${e}`]:{padding:0},[`> input${e}, > textarea${e}`]:{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"'},[`${e}`]:{"&-prefix, &-suffix":{display:"flex",flex:"none",alignItems:"center","> *:not(:last-child)":{marginInlineEnd:A.paddingXS}},"&-show-count-suffix":{color:n},"&-show-count-has-suffix":{marginInlineEnd:A.paddingXXS},"&-prefix":{marginInlineEnd:t},"&-suffix":{marginInlineStart:t}}}),dL(A)),{[`${a}${e}-password-icon`]:{color:r,cursor:"pointer",transition:`all ${o}`,"&:hover":{color:i}}})}},pL=A=>{const{componentCls:e,borderRadiusLG:t,borderRadiusSM:n}=A;return{[`${e}-group`]:Object.assign(Object.assign(Object.assign({},Mf(A)),EL(A)),{"&-rtl":{direction:"rtl"},"&-wrapper":Object.assign(Object.assign(Object.assign({display:"inline-block",width:"100%",textAlign:"start",verticalAlign:"top","&-rtl":{direction:"rtl"},"&-lg":{[`${e}-group-addon`]:{borderRadius:t,fontSize:A.inputFontSizeLG}},"&-sm":{[`${e}-group-addon`]:{borderRadius:n}}},oL(A)),gL(A)),{[`&:not(${e}-compact-first-item):not(${e}-compact-last-item)${e}-compact-item`]:{[`${e}, ${e}-group-addon`]:{borderRadius:0}},[`&:not(${e}-compact-last-item)${e}-compact-first-item`]:{[`${e}, ${e}-group-addon`]:{borderStartEndRadius:0,borderEndEndRadius:0}},[`&:not(${e}-compact-first-item)${e}-compact-last-item`]:{[`${e}, ${e}-group-addon`]:{borderStartStartRadius:0,borderEndStartRadius:0}},[`&:not(${e}-compact-last-item)${e}-compact-item`]:{[`${e}-affix-wrapper`]:{borderStartEndRadius:0,borderEndEndRadius:0}}})})}},fL=A=>{const{componentCls:e,antCls:t}=A,n=`${e}-search`;return{[n]:{[`${e}`]:{"&:hover, &:focus":{borderColor:A.colorPrimaryHover,[`+ ${e}-group-addon ${n}-button:not(${t}-btn-primary)`]:{borderInlineStartColor:A.colorPrimaryHover}}},[`${e}-affix-wrapper`]:{borderRadius:0},[`${e}-lg`]:{lineHeight:A.calc(A.lineHeightLG).sub(2e-4).equal({unit:!1})},[`> ${e}-group`]:{[`> ${e}-group-addon:last-child`]:{insetInlineStart:-1,padding:0,border:0,[`${n}-button`]:{marginInlineEnd:-1,paddingTop:0,paddingBottom:0,borderStartStartRadius:0,borderStartEndRadius:A.borderRadius,borderEndEndRadius:A.borderRadius,borderEndStartRadius:0,boxShadow:"none"},[`${n}-button:not(${t}-btn-primary)`]:{color:A.colorTextDescription,"&:hover":{color:A.colorPrimaryHover},"&:active":{color:A.colorPrimaryActive},[`&${t}-btn-loading::before`]:{insetInlineStart:0,insetInlineEnd:0,insetBlockStart:0,insetBlockEnd:0}}}},[`${n}-button`]:{height:A.controlHeight,"&:hover, &:focus":{zIndex:1}},[`&-large ${n}-button`]:{height:A.controlHeightLG},[`&-small ${n}-button`]:{height:A.controlHeightSM},"&-rtl":{direction:"rtl"},[`&${e}-compact-item`]:{[`&:not(${e}-compact-last-item)`]:{[`${e}-group-addon`]:{[`${e}-search-button`]:{marginInlineEnd:A.calc(A.lineWidth).mul(-1).equal(),borderRadius:0}}},[`&:not(${e}-compact-first-item)`]:{[`${e},${e}-affix-wrapper`]:{borderRadius:0}},[`> ${e}-group-addon ${e}-search-button,\n > ${e},\n ${e}-affix-wrapper`]:{"&:hover,&:focus,&:active":{zIndex:2}},[`> ${e}-affix-wrapper-focused`]:{zIndex:2}}}}},hL=A=>{const{componentCls:e,paddingLG:t}=A,n=`${e}-textarea`;return{[n]:{position:"relative","&-show-count":{[`> ${e}`]:{height:"100%"},[`${e}-data-count`]:{position:"absolute",bottom:A.calc(A.fontSize).mul(A.lineHeight).mul(-1).equal(),insetInlineEnd:0,color:A.colorTextDescription,whiteSpace:"nowrap",pointerEvents:"none"}},"&-allow-clear":{[`> ${e}`]:{paddingInlineEnd:t}},[`&-affix-wrapper${n}-has-feedback`]:{[`${e}`]:{paddingInlineEnd:t}},[`&-affix-wrapper${e}-affix-wrapper`]:{padding:0,[`> textarea${e}`]:{fontSize:"inherit",border:"none",outline:"none",background:"transparent","&:focus":{boxShadow:"none !important"}},[`${e}-suffix`]:{margin:0,"> *:not(:last-child)":{marginInline:0},[`${e}-clear-icon`]:{position:"absolute",insetInlineEnd:A.paddingXS,insetBlockStart:A.paddingXS},[`${n}-suffix`]:{position:"absolute",top:0,insetInlineEnd:A.paddingInline,bottom:0,zIndex:1,display:"inline-flex",alignItems:"center",margin:"auto",pointerEvents:"none"}}}}}},wL=A=>{const{componentCls:e}=A;return{[`${e}-out-of-range`]:{[`&, & input, & textarea, ${e}-show-count-suffix, ${e}-data-count`]:{color:A.colorError}}}},DL=jf("Input",(A=>{const e=Pf(A,_R(A));return[CL(e),hL(e),IL(e),pL(e),fL(e),wL(e),cy(e)]}),XR,{resetFont:!1}),mL=A=>{const{prefixCls:e,className:t,style:n,size:o,shape:r}=A,i=ud({[`${e}-lg`]:"large"===o,[`${e}-sm`]:"small"===o}),a=ud({[`${e}-circle`]:"circle"===r,[`${e}-square`]:"square"===r,[`${e}-round`]:"round"===r}),s=J.useMemo((()=>"number"==typeof o?{width:o,height:o,lineHeight:`${o}px`}:{}),[o]);return J.createElement("span",{className:ud(e,i,a,t),style:Object.assign(Object.assign({},s),n)})},yL=new ad("ant-skeleton-loading",{"0%":{backgroundPosition:"100% 50%"},"100%":{backgroundPosition:"0 50%"}}),bL=A=>({height:A,lineHeight:UE(A)}),vL=A=>Object.assign({width:A},bL(A)),kL=A=>({background:A.skeletonLoadingBackground,backgroundSize:"400% 100%",animationName:yL,animationDuration:A.skeletonLoadingMotionDuration,animationTimingFunction:"ease",animationIterationCount:"infinite"}),ML=(A,e)=>Object.assign({width:e(A).mul(5).equal(),minWidth:e(A).mul(5).equal()},bL(A)),xL=A=>{const{skeletonAvatarCls:e,gradientFromColor:t,controlHeight:n,controlHeightLG:o,controlHeightSM:r}=A;return{[`${e}`]:Object.assign({display:"inline-block",verticalAlign:"top",background:t},vL(n)),[`${e}${e}-circle`]:{borderRadius:"50%"},[`${e}${e}-lg`]:Object.assign({},vL(o)),[`${e}${e}-sm`]:Object.assign({},vL(r))}},SL=A=>{const{controlHeight:e,borderRadiusSM:t,skeletonInputCls:n,controlHeightLG:o,controlHeightSM:r,gradientFromColor:i,calc:a}=A;return{[`${n}`]:Object.assign({display:"inline-block",verticalAlign:"top",background:i,borderRadius:t},ML(e,a)),[`${n}-lg`]:Object.assign({},ML(o,a)),[`${n}-sm`]:Object.assign({},ML(r,a))}},FL=A=>Object.assign({width:A},bL(A)),NL=A=>{const{skeletonImageCls:e,imageSizeBase:t,gradientFromColor:n,borderRadiusSM:o,calc:r}=A;return{[`${e}`]:Object.assign(Object.assign({display:"flex",alignItems:"center",justifyContent:"center",verticalAlign:"top",background:n,borderRadius:o},FL(r(t).mul(2).equal())),{[`${e}-path`]:{fill:"#bfbfbf"},[`${e}-svg`]:Object.assign(Object.assign({},FL(t)),{maxWidth:r(t).mul(4).equal(),maxHeight:r(t).mul(4).equal()}),[`${e}-svg${e}-svg-circle`]:{borderRadius:"50%"}}),[`${e}${e}-circle`]:{borderRadius:"50%"}}},RL=(A,e,t)=>{const{skeletonButtonCls:n}=A;return{[`${t}${n}-circle`]:{width:e,minWidth:e,borderRadius:"50%"},[`${t}${n}-round`]:{borderRadius:e}}},LL=(A,e)=>Object.assign({width:e(A).mul(2).equal(),minWidth:e(A).mul(2).equal()},bL(A)),PL=A=>{const{borderRadiusSM:e,skeletonButtonCls:t,controlHeight:n,controlHeightLG:o,controlHeightSM:r,gradientFromColor:i,calc:a}=A;return Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({[`${t}`]:Object.assign({display:"inline-block",verticalAlign:"top",background:i,borderRadius:e,width:a(n).mul(2).equal(),minWidth:a(n).mul(2).equal()},LL(n,a))},RL(A,n,t)),{[`${t}-lg`]:Object.assign({},LL(o,a))}),RL(A,o,`${t}-lg`)),{[`${t}-sm`]:Object.assign({},LL(r,a))}),RL(A,r,`${t}-sm`))},HL=A=>{const{componentCls:e,skeletonAvatarCls:t,skeletonTitleCls:n,skeletonParagraphCls:o,skeletonButtonCls:r,skeletonInputCls:i,skeletonImageCls:a,controlHeight:s,controlHeightLG:l,controlHeightSM:g,gradientFromColor:c,padding:u,marginSM:B,borderRadius:Q,titleHeight:E,blockRadius:C,paragraphLiHeight:d,controlHeightXS:I,paragraphMarginTop:p}=A;return{[`${e}`]:{display:"table",width:"100%",[`${e}-header`]:{display:"table-cell",paddingInlineEnd:u,verticalAlign:"top",[`${t}`]:Object.assign({display:"inline-block",verticalAlign:"top",background:c},vL(s)),[`${t}-circle`]:{borderRadius:"50%"},[`${t}-lg`]:Object.assign({},vL(l)),[`${t}-sm`]:Object.assign({},vL(g))},[`${e}-content`]:{display:"table-cell",width:"100%",verticalAlign:"top",[`${n}`]:{width:"100%",height:E,background:c,borderRadius:C,[`+ ${o}`]:{marginBlockStart:g}},[`${o}`]:{padding:0,"> li":{width:"100%",height:d,listStyle:"none",background:c,borderRadius:C,"+ li":{marginBlockStart:I}}},[`${o}> li:last-child:not(:first-child):not(:nth-child(2))`]:{width:"61%"}},[`&-round ${e}-content`]:{[`${n}, ${o} > li`]:{borderRadius:Q}}},[`${e}-with-avatar ${e}-content`]:{[`${n}`]:{marginBlockStart:B,[`+ ${o}`]:{marginBlockStart:p}}},[`${e}${e}-element`]:Object.assign(Object.assign(Object.assign(Object.assign({display:"inline-block",width:"auto"},PL(A)),xL(A)),SL(A)),NL(A)),[`${e}${e}-block`]:{width:"100%",[`${r}`]:{width:"100%"},[`${i}`]:{width:"100%"}},[`${e}${e}-active`]:{[`\n ${n},\n ${o} > li,\n ${t},\n ${r},\n ${i},\n ${a}\n `]:Object.assign({},kL(A))}}},GL=jf("Skeleton",(A=>{const{componentCls:e,calc:t}=A,n=Pf(A,{skeletonAvatarCls:`${e}-avatar`,skeletonTitleCls:`${e}-title`,skeletonParagraphCls:`${e}-paragraph`,skeletonButtonCls:`${e}-button`,skeletonInputCls:`${e}-input`,skeletonImageCls:`${e}-image`,imageSizeBase:t(A.controlHeight).mul(1.5).equal(),borderRadius:100,skeletonLoadingBackground:`linear-gradient(90deg, ${A.gradientFromColor} 25%, ${A.gradientToColor} 37%, ${A.gradientFromColor} 63%)`,skeletonLoadingMotionDuration:"1.4s"});return[HL(n)]}),(A=>{const{colorFillContent:e,colorFill:t}=A;return{color:e,colorGradientEnd:t,gradientFromColor:e,gradientToColor:t,titleHeight:A.controlHeight/2,blockRadius:A.borderRadiusSM,paragraphMarginTop:A.marginLG+A.marginXXS,paragraphLiHeight:A.controlHeight/2}}),{deprecatedTokens:[["color","gradientFromColor"],["colorGradientEnd","gradientToColor"]]});var OL={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M888 792H200V168c0-4.4-3.6-8-8-8h-56c-4.4 0-8 3.6-8 8v688c0 4.4 3.6 8 8 8h752c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zM288 604a64 64 0 10128 0 64 64 0 10-128 0zm118-224a48 48 0 1096 0 48 48 0 10-96 0zm158 228a96 96 0 10192 0 96 96 0 10-192 0zm148-314a56 56 0 10112 0 56 56 0 10-112 0z"}}]},name:"dot-chart",theme:"outlined"},UL=function(A,e){return J.createElement(Cw,BQ({},A,{ref:e,icon:OL}))},KL=J.forwardRef(UL);const YL=(A,e)=>{const{width:t,rows:n=2}=e;return Array.isArray(t)?t[A]:n-1===A?t:void 0},TL=A=>{const{prefixCls:e,className:t,style:n,rows:o}=A,r=XQ(Array(o)).map(((e,t)=>J.createElement("li",{key:t,style:{width:YL(t,A)}})));return J.createElement("ul",{className:ud(e,t),style:n},r)},JL=A=>{let{prefixCls:e,className:t,width:n,style:o}=A;return J.createElement("h3",{className:ud(e,t),style:Object.assign({width:n},o)})};function jL(A){return A&&"object"==typeof A?A:{}}const qL=A=>{const{prefixCls:e,loading:t,className:n,rootClassName:o,style:r,children:i,avatar:a=!1,title:s=!0,paragraph:l=!0,active:g,round:c}=A,{getPrefixCls:u,direction:B,skeleton:Q}=J.useContext(Xp),E=u("skeleton",e),[C,d,I]=GL(E);if(t||!("loading"in A)){const A=!!a,e=!!s,t=!!l;let i,u;if(A){const A=Object.assign(Object.assign({prefixCls:`${E}-avatar`},function(A,e){return A&&!e?{size:"large",shape:"square"}:{size:"large",shape:"circle"}}(e,t)),jL(a));i=J.createElement("div",{className:`${E}-header`},J.createElement(mL,Object.assign({},A)))}if(e||t){let n,o;if(e){const e=Object.assign(Object.assign({prefixCls:`${E}-title`},function(A,e){return!A&&e?{width:"38%"}:A&&e?{width:"50%"}:{}}(A,t)),jL(s));n=J.createElement(JL,Object.assign({},e))}if(t){const t=Object.assign(Object.assign({prefixCls:`${E}-paragraph`},function(A,e){const t={};return A&&e||(t.width="61%"),t.rows=!A&&e?3:2,t}(A,e)),jL(l));o=J.createElement(TL,Object.assign({},t))}u=J.createElement("div",{className:`${E}-content`},n,o)}const p=ud(E,{[`${E}-with-avatar`]:A,[`${E}-active`]:g,[`${E}-rtl`]:"rtl"===B,[`${E}-round`]:c},null==Q?void 0:Q.className,n,o,d,I);return C(J.createElement("div",{className:p,style:Object.assign(Object.assign({},null==Q?void 0:Q.style),r)},i,u))}return null!=i?i:null};qL.Button=A=>{const{prefixCls:e,className:t,rootClassName:n,active:o,block:r=!1,size:i="default"}=A,{getPrefixCls:a}=J.useContext(Xp),s=a("skeleton",e),[l,g,c]=GL(s),u=wI(A,["prefixCls"]),B=ud(s,`${s}-element`,{[`${s}-active`]:o,[`${s}-block`]:r},t,n,g,c);return l(J.createElement("div",{className:B},J.createElement(mL,Object.assign({prefixCls:`${s}-button`,size:i},u))))},qL.Avatar=A=>{const{prefixCls:e,className:t,rootClassName:n,active:o,shape:r="circle",size:i="default"}=A,{getPrefixCls:a}=J.useContext(Xp),s=a("skeleton",e),[l,g,c]=GL(s),u=wI(A,["prefixCls","className"]),B=ud(s,`${s}-element`,{[`${s}-active`]:o},t,n,g,c);return l(J.createElement("div",{className:B},J.createElement(mL,Object.assign({prefixCls:`${s}-avatar`,shape:r,size:i},u))))},qL.Input=A=>{const{prefixCls:e,className:t,rootClassName:n,active:o,block:r,size:i="default"}=A,{getPrefixCls:a}=J.useContext(Xp),s=a("skeleton",e),[l,g,c]=GL(s),u=wI(A,["prefixCls"]),B=ud(s,`${s}-element`,{[`${s}-active`]:o,[`${s}-block`]:r},t,n,g,c);return l(J.createElement("div",{className:B},J.createElement(mL,Object.assign({prefixCls:`${s}-input`,size:i},u))))},qL.Image=A=>{const{prefixCls:e,className:t,rootClassName:n,style:o,active:r}=A,{getPrefixCls:i}=J.useContext(Xp),a=i("skeleton",e),[s,l,g]=GL(a),c=ud(a,`${a}-element`,{[`${a}-active`]:r},t,n,l,g);return s(J.createElement("div",{className:c},J.createElement("div",{className:ud(`${a}-image`,t),style:o},J.createElement("svg",{viewBox:"0 0 1098 1024",xmlns:"http://www.w3.org/2000/svg",className:`${a}-image-svg`},J.createElement("path",{d:"M365.714286 329.142857q0 45.714286-32.036571 77.677714t-77.677714 32.036571-77.677714-32.036571-32.036571-77.677714 32.036571-77.677714 77.677714-32.036571 77.677714 32.036571 32.036571 77.677714zM950.857143 548.571429l0 256-804.571429 0 0-109.714286 182.857143-182.857143 91.428571 91.428571 292.571429-292.571429zM1005.714286 146.285714l-914.285714 0q-7.460571 0-12.873143 5.412571t-5.412571 12.873143l0 694.857143q0 7.460571 5.412571 12.873143t12.873143 5.412571l914.285714 0q7.460571 0 12.873143-5.412571t5.412571-12.873143l0-694.857143q0-7.460571-5.412571-12.873143t-12.873143-5.412571zM1097.142857 164.571429l0 694.857143q0 37.741714-26.843429 64.585143t-64.585143 26.843429l-914.285714 0q-37.741714 0-64.585143-26.843429t-26.843429-64.585143l0-694.857143q0-37.741714 26.843429-64.585143t64.585143-26.843429l914.285714 0q37.741714 0 64.585143 26.843429t26.843429 64.585143z",className:`${a}-image-path`})))))},qL.Node=A=>{const{prefixCls:e,className:t,rootClassName:n,style:o,active:r,children:i}=A,{getPrefixCls:a}=J.useContext(Xp),s=a("skeleton",e),[l,g,c]=GL(s),u=ud(s,`${s}-element`,{[`${s}-active`]:r},g,t,n,c),B=null!=i?i:J.createElement(KL,null);return l(J.createElement("div",{className:u},J.createElement("div",{className:ud(`${s}-image`,t),style:o},B)))};var $L={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M482 152h60q8 0 8 8v704q0 8-8 8h-60q-8 0-8-8V160q0-8 8-8z"}},{tag:"path",attrs:{d:"M192 474h672q8 0 8 8v60q0 8-8 8H160q-8 0-8-8v-60q0-8 8-8z"}}]},name:"plus",theme:"outlined"},zL=function(A,e){return J.createElement(Cw,BQ({},A,{ref:e,icon:$L}))},WL=J.forwardRef(zL);const _L=J.createContext(null);var XL={width:0,height:0,left:0,top:0};function VL(A,e){var t=J.useRef(A),n=WQ(J.useState({}),2)[1];return[t.current,function(A){var o="function"==typeof A?A(t.current):A;o!==t.current&&e(o,t.current),t.current=o,n({})}]}var ZL=Math.pow(.995,20);function AP(A){var e=WQ(J.useState(0),2),t=e[0],n=e[1],o=J.useRef(0),r=J.useRef();return r.current=A,$E((function(){var A;null===(A=r.current)||void 0===A||A.call(r)}),[t]),function(){o.current===t&&(o.current+=1,n(o.current))}}var eP={width:0,height:0,left:0,top:0,right:0};function tP(A){var e;return A instanceof Map?(e={},A.forEach((function(A,t){e[t]=A}))):e=A,JSON.stringify(e)}function nP(A){return String(A).replace(/"/g,"TABS_DQ")}function oP(A,e,t,n){return!(!t||n||!1===A||void 0===A&&(!1===e||null===e))}var rP=J.forwardRef((function(A,e){var t=A.prefixCls,n=A.editable,o=A.locale,r=A.style;return n&&!1!==n.showAdd?J.createElement("button",{ref:e,type:"button",className:"".concat(t,"-nav-add"),style:r,"aria-label":(null==o?void 0:o.addAriaLabel)||"Add tab",onClick:function(A){n.onEdit("add",{event:A})}},n.addIcon||"+"):null})),iP=J.forwardRef((function(A,e){var t,n=A.position,o=A.prefixCls,r=A.extra;if(!r)return null;var i={};return"object"!==mc(r)||J.isValidElement(r)?i.right=r:i=r,"right"===n&&(t=i.right),"left"===n&&(t=i.left),t?J.createElement("div",{className:"".concat(o,"-extra-content"),ref:e},t):null})),aP=J.forwardRef((function(A,e){var t=A.prefixCls,n=A.id,o=A.tabs,r=A.locale,i=A.mobile,a=A.more,s=void 0===a?{}:a,l=A.style,g=A.className,c=A.editable,u=A.tabBarGutter,B=A.rtl,Q=A.removeAriaLabel,E=A.onTabClick,C=A.getPopupContainer,d=A.popupClassName,I=WQ(J.useState(!1),2),p=I[0],f=I[1],h=WQ(J.useState(null),2),w=h[0],D=h[1],m=s.icon,y=void 0===m?"More":m,b="".concat(n,"-more-popup"),v="".concat(t,"-dropdown"),k=null!==w?"".concat(b,"-").concat(w):null,M=null==r?void 0:r.dropdownAriaLabel;var x=J.createElement(wR,{onClick:function(A){var e=A.key,t=A.domEvent;E(e,t),f(!1)},prefixCls:"".concat(v,"-menu"),id:b,tabIndex:-1,role:"listbox","aria-activedescendant":k,selectedKeys:[w],"aria-label":void 0!==M?M:"expanded dropdown"},o.map((function(A){var e=A.closable,t=A.disabled,o=A.closeIcon,r=A.key,i=A.label,a=oP(e,o,c,t);return J.createElement(_N,{key:r,id:"".concat(b,"-").concat(r),role:"option","aria-controls":n&&"".concat(n,"-panel-").concat(r),disabled:t},J.createElement("span",null,i),a&&J.createElement("button",{type:"button","aria-label":Q||"remove",tabIndex:0,className:"".concat(v,"-menu-item-remove"),onClick:function(A){A.stopPropagation(),function(A,e){A.preventDefault(),A.stopPropagation(),c.onEdit("remove",{key:e,event:A})}(A,r)}},o||c.removeIcon||"ร—"))})));function S(A){for(var e=o.filter((function(A){return!A.disabled})),t=e.findIndex((function(A){return A.key===w}))||0,n=e.length,r=0;re?"left":"right"})})),2),R=N[0],L=N[1],P=WQ(VL(0,(function(A,e){!F&&f&&f({direction:A>e?"top":"bottom"})})),2),H=P[0],G=P[1],O=WQ(J.useState([0,0]),2),U=O[0],K=O[1],Y=WQ(J.useState([0,0]),2),T=Y[0],q=Y[1],$=WQ(J.useState([0,0]),2),z=$[0],W=$[1],_=WQ(J.useState([0,0]),2),X=_[0],V=_[1],Z=(t=new Map,n=J.useRef([]),o=WQ(J.useState({}),2)[1],r=J.useRef("function"==typeof t?t():t),i=AP((function(){var A=r.current;n.current.forEach((function(e){A=e(A)})),n.current=[],r.current=A,o({})})),[r.current,function(A){n.current.push(A),i()}]),AA=WQ(Z,2),eA=AA[0],tA=AA[1],nA=function(A,e,t){return J.useMemo((function(){for(var t,n=new Map,o=e.get(null===(t=A[0])||void 0===t?void 0:t.key)||XL,r=o.left+o.width,i=0;iuA?uA:A}F&&u?(cA=0,uA=Math.max(0,rA-lA)):(cA=Math.min(0,lA-rA),uA=0);var QA=J.useRef(null),EA=WQ(J.useState(),2),CA=EA[0],dA=EA[1];function IA(){dA(Date.now())}function pA(){QA.current&&clearTimeout(QA.current)}!function(A,e){var t=WQ(J.useState(),2),n=t[0],o=t[1],r=WQ(J.useState(0),2),i=r[0],a=r[1],s=WQ(J.useState(0),2),l=s[0],g=s[1],c=WQ(J.useState(),2),u=c[0],B=c[1],Q=J.useRef(),E=J.useRef(),C=J.useRef(null);C.current={onTouchStart:function(A){var e=A.touches[0],t=e.screenX,n=e.screenY;o({x:t,y:n}),window.clearInterval(Q.current)},onTouchMove:function(A){if(n){A.preventDefault();var t=A.touches[0],r=t.screenX,s=t.screenY;o({x:r,y:s});var l=r-n.x,c=s-n.y;e(l,c);var u=Date.now();a(u),g(u-i),B({x:l,y:c})}},onTouchEnd:function(){if(n&&(o(null),B(null),u)){var A=u.x/l,t=u.y/l,r=Math.abs(A),i=Math.abs(t);if(Math.max(r,i)<.1)return;var a=A,s=t;Q.current=window.setInterval((function(){Math.abs(a)<.01&&Math.abs(s)<.01?window.clearInterval(Q.current):e(20*(a*=ZL),20*(s*=ZL))}),20)}},onWheel:function(A){var t=A.deltaX,n=A.deltaY,o=0,r=Math.abs(t),i=Math.abs(n);r===i?o="x"===E.current?t:n:r>i?(o=t,E.current="x"):(o=n,E.current="y"),e(-o,-o)&&A.preventDefault()}},J.useEffect((function(){function e(A){C.current.onTouchMove(A)}function t(A){C.current.onTouchEnd(A)}return document.addEventListener("touchmove",e,{passive:!1}),document.addEventListener("touchend",t,{passive:!1}),A.current.addEventListener("touchstart",(function(A){C.current.onTouchStart(A)}),{passive:!1}),A.current.addEventListener("wheel",(function(A){C.current.onWheel(A)})),function(){document.removeEventListener("touchmove",e),document.removeEventListener("touchend",t)}}),[])}(k,(function(A,e){function t(A,e){A((function(A){return BA(A+e)}))}return!!sA&&(F?t(L,A):t(G,e),pA(),IA(),!0)})),J.useEffect((function(){return pA(),CA&&(QA.current=setTimeout((function(){dA(0)}),100)),pA}),[CA]);var fA=function(A,e,t,n,o,r,i){var a,s,l,g=i.tabs,c=i.tabPosition,u=i.rtl;return["top","bottom"].includes(c)?(a="width",s=u?"right":"left",l=Math.abs(t)):(a="height",s="top",l=-t),J.useMemo((function(){if(!g.length)return[0,0];for(var t=g.length,n=t,o=0;ol+e){n=o-1;break}}for(var i=0,c=t-1;c>=0;c-=1)if((A.get(g[c].key)||eP)[s]=n?[0,0]:[i,n]}),[A,e,n,o,r,l,c,g.map((function(A){return A.key})).join("_"),u])}(nA,lA,F?R:H,rA,iA,aA,kc(kc({},A),{},{tabs:m})),hA=WQ(fA,2),wA=hA[0],DA=hA[1],mA=mf((function(){var A=arguments.length>0&&void 0!==arguments[0]?arguments[0]:c,e=nA.get(A)||{width:0,height:0,left:0,right:0,top:0};if(F){var t=R;u?e.rightR+lA&&(t=e.right+e.width-lA):e.left<-R?t=-e.left:e.left+e.width>-R+lA&&(t=-(e.left+e.width-lA)),G(0),L(BA(t))}else{var n=H;e.top<-H?n=-e.top:e.top+e.height>-H+lA&&(n=-(e.top+e.height-lA)),L(0),G(BA(n))}})),yA={};"top"===C||"bottom"===C?yA[u?"marginRight":"marginLeft"]=d:yA.marginTop=d;var bA=m.map((function(A,e){var t=A.key;return J.createElement(lP,{id:l,prefixCls:D,key:t,tab:A,style:0===e?void 0:yA,closable:A.closable,editable:Q,active:t===c,renderWrapper:I,removeAriaLabel:null==E?void 0:E.removeAriaLabel,onClick:function(A){p(t,A)},onFocus:function(){mA(t),IA(),k.current&&(u||(k.current.scrollLeft=0),k.current.scrollTop=0)}})})),vA=function(){return tA((function(){var A,e=new Map,t=null===(A=M.current)||void 0===A?void 0:A.getBoundingClientRect();return m.forEach((function(A){var n,o=A.key,r=null===(n=M.current)||void 0===n?void 0:n.querySelector('[data-node-key="'.concat(nP(o),'"]'));if(r){var i=function(A,e){var t=A.offsetWidth,n=A.offsetHeight,o=A.offsetTop,r=A.offsetLeft,i=A.getBoundingClientRect(),a=i.width,s=i.height,l=i.x,g=i.y;return Math.abs(a-t)<1?[a,s,l-e.x,g-e.y]:[t,n,r,o]}(r,t),a=WQ(i,4),s=a[0],l=a[1],g=a[2],c=a[3];e.set(o,{width:s,height:l,left:g,top:c})}})),e}))};J.useEffect((function(){vA()}),[m.map((function(A){return A.key})).join("_")]);var kA=AP((function(){var A=gP(y),e=gP(b),t=gP(v);K([A[0]-e[0]-t[0],A[1]-e[1]-t[1]]);var n=gP(S);W(n);var o=gP(x);V(o);var r=gP(M);q([r[0]-n[0],r[1]-n[1]]),vA()})),MA=m.slice(0,wA),xA=m.slice(DA+1),SA=[].concat(XQ(MA),XQ(xA)),FA=nA.get(c),NA=function(A){var e=A.activeTabOffset,t=A.horizontal,n=A.rtl,o=A.indicator,r=void 0===o?{}:o,i=r.size,a=r.align,s=void 0===a?"center":a,l=WQ(J.useState(),2),g=l[0],c=l[1],u=J.useRef(),B=j.useCallback((function(A){return"function"==typeof i?i(A):"number"==typeof i?i:A}),[i]);function Q(){kI.cancel(u.current)}return J.useEffect((function(){var A={};if(e)if(t){A.width=B(e.width);var o=n?"right":"left";"start"===s&&(A[o]=e[o]),"center"===s&&(A[o]=e[o]+e.width/2,A.transform=n?"translateX(50%)":"translateX(-50%)"),"end"===s&&(A[o]=e[o]+e.width,A.transform="translateX(-100%)")}else A.height=B(e.height),"start"===s&&(A.top=e.top),"center"===s&&(A.top=e.top+e.height/2,A.transform="translateY(-50%)"),"end"===s&&(A.top=e.top+e.height,A.transform="translateY(-100%)");return Q(),u.current=kI((function(){c(A)})),Q}),[e,t,n,s,B]),{style:g}}({activeTabOffset:FA,horizontal:F,indicator:h,rtl:u}),RA=NA.style;J.useEffect((function(){mA()}),[c,cA,uA,tP(FA),tP(nA),F]),J.useEffect((function(){kA()}),[u]);var LA,PA,HA,GA,OA=!!SA.length,UA="".concat(D,"-nav-wrap");return F?u?(PA=R>0,LA=R!==uA):(LA=R<0,PA=R!==cA):(HA=H<0,GA=H!==cA),J.createElement(hI,{onResize:kA},J.createElement("div",{ref:Hd(e,y),role:"tablist",className:ud("".concat(D,"-nav"),a),style:s,onKeyDown:function(){IA()}},J.createElement(iP,{ref:b,position:"left",extra:B,prefixCls:D}),J.createElement(hI,{onResize:kA},J.createElement("div",{className:ud(UA,bc(bc(bc(bc({},"".concat(UA,"-ping-left"),LA),"".concat(UA,"-ping-right"),PA),"".concat(UA,"-ping-top"),HA),"".concat(UA,"-ping-bottom"),GA)),ref:k},J.createElement(hI,{onResize:kA},J.createElement("div",{ref:M,className:"".concat(D,"-nav-list"),style:{transform:"translate(".concat(R,"px, ").concat(H,"px)"),transition:CA?"none":void 0}},bA,J.createElement(rP,{ref:S,prefixCls:D,locale:E,editable:Q,style:kc(kc({},0===bA.length?void 0:yA),{},{visibility:OA?"hidden":null})}),J.createElement("div",{className:ud("".concat(D,"-ink-bar"),bc({},"".concat(D,"-ink-bar-animated"),g.inkBar)),style:RA}))))),J.createElement(sP,BQ({},A,{removeAriaLabel:null==E?void 0:E.removeAriaLabel,ref:x,prefixCls:D,tabs:SA,className:!OA&&gA,tabMoving:!!CA})),J.createElement(iP,{ref:v,position:"right",extra:B,prefixCls:D})))})),BP=J.forwardRef((function(A,e){var t=A.prefixCls,n=A.className,o=A.style,r=A.id,i=A.active,a=A.tabKey,s=A.children;return J.createElement("div",{id:r&&"".concat(r,"-panel-").concat(a),role:"tabpanel",tabIndex:i?0:-1,"aria-labelledby":r&&"".concat(r,"-tab-").concat(a),"aria-hidden":!i,style:o,className:ud(t,i&&"".concat(t,"-active"),n),ref:e},s)})),QP=["renderTabBar"],EP=["label","key"],CP=function(A){var e=A.renderTabBar,t=Mc(A,QP),n=J.useContext(_L).tabs;return e?e(kc(kc({},t),{},{panes:n.map((function(A){var e=A.label,t=A.key,n=Mc(A,EP);return J.createElement(BP,BQ({tab:e,key:t,tabKey:t},n))}))}),uP):J.createElement(uP,t)},dP=["key","forceRender","style","className","destroyInactiveTabPane"],IP=function(A){var e=A.id,t=A.activeKey,n=A.animated,o=A.tabPosition,r=A.destroyInactiveTabPane,i=J.useContext(_L),a=i.prefixCls,s=i.tabs,l=n.tabPane,g="".concat(a,"-tabpane");return J.createElement("div",{className:ud("".concat(a,"-content-holder"))},J.createElement("div",{className:ud("".concat(a,"-content"),"".concat(a,"-content-").concat(o),bc({},"".concat(a,"-content-animated"),l))},s.map((function(A){var o=A.key,i=A.forceRender,a=A.style,s=A.className,c=A.destroyInactiveTabPane,u=Mc(A,dP),B=o===t;return J.createElement(Nh,BQ({key:o,visible:B,forceRender:i,removeOnLeave:!(!r&&!c),leavedClassName:"".concat(g,"-hidden")},n.tabPaneMotion),(function(A,t){var n=A.style,r=A.className;return J.createElement(BP,BQ({},u,{prefixCls:g,id:e,tabKey:o,animated:l,active:B,style:kc(kc({},a),n),className:ud(s,r),ref:t}))}))}))))};var pP=["id","prefixCls","className","items","direction","activeKey","defaultActiveKey","editable","animated","tabPosition","tabBarGutter","tabBarStyle","tabBarExtraContent","locale","more","destroyInactiveTabPane","renderTabBar","onChange","onTabClick","onTabScroll","getPopupContainer","popupClassName","indicator"],fP=0,hP=J.forwardRef((function(A,e){var t=A.id,n=A.prefixCls,o=void 0===n?"rc-tabs":n,r=A.className,i=A.items,a=A.direction,s=A.activeKey,l=A.defaultActiveKey,g=A.editable,c=A.animated,u=A.tabPosition,B=void 0===u?"top":u,Q=A.tabBarGutter,E=A.tabBarStyle,C=A.tabBarExtraContent,d=A.locale,I=A.more,p=A.destroyInactiveTabPane,f=A.renderTabBar,h=A.onChange,w=A.onTabClick,D=A.onTabScroll,m=A.getPopupContainer,y=A.popupClassName,b=A.indicator,v=Mc(A,pP),k=J.useMemo((function(){return(i||[]).filter((function(A){return A&&"object"===mc(A)&&"key"in A}))}),[i]),M="rtl"===a,x=function(){var A,e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{inkBar:!0,tabPane:!1};return(A=!1===e?{inkBar:!1,tabPane:!1}:!0===e?{inkBar:!0,tabPane:!1}:kc({inkBar:!0},"object"===mc(e)?e:{})).tabPaneMotion&&void 0===A.tabPane&&(A.tabPane=!0),!A.tabPaneMotion&&A.tabPane&&(A.tabPane=!1),A}(c),S=WQ(J.useState(!1),2),F=S[0],N=S[1];J.useEffect((function(){N(sM())}),[]);var R=WQ(vf((function(){var A;return null===(A=k[0])||void 0===A?void 0:A.key}),{value:s,defaultValue:l}),2),L=R[0],P=R[1],H=WQ(J.useState((function(){return k.findIndex((function(A){return A.key===L}))})),2),G=H[0],O=H[1];J.useEffect((function(){var A,e=k.findIndex((function(A){return A.key===L}));-1===e&&(e=Math.max(0,Math.min(G,k.length-1)),P(null===(A=k[e])||void 0===A?void 0:A.key));O(e)}),[k.map((function(A){return A.key})).join("_"),L,G]);var U=WQ(vf(null,{value:t}),2),K=U[0],Y=U[1];J.useEffect((function(){t||(Y("rc-tabs-".concat(fP)),fP+=1)}),[]);var T={id:K,activeKey:L,animated:x,tabPosition:B,rtl:M,mobile:F},j=kc(kc({},T),{},{editable:g,locale:d,more:I,tabBarGutter:Q,onTabClick:function(A,e){null==w||w(A,e);var t=A!==L;P(A),t&&(null==h||h(A))},onTabScroll:D,extra:C,style:E,panes:null,getPopupContainer:m,popupClassName:y,indicator:b});return J.createElement(_L.Provider,{value:{tabs:k,prefixCls:o}},J.createElement("div",BQ({ref:e,id:t,className:ud(o,"".concat(o,"-").concat(B),bc(bc(bc({},"".concat(o,"-mobile"),F),"".concat(o,"-editable"),g),"".concat(o,"-rtl"),M),r)},v),J.createElement(CP,BQ({},j,{renderTabBar:f})),J.createElement(IP,BQ({destroyInactiveTabPane:p},T,{animated:x}))))}));const wP={motionAppear:!1,motionEnter:!0,motionLeave:!0};function DP(A,e){if(A)return A;return function(A){return A.filter((A=>A))}(Fd(e).map((A=>{if(J.isValidElement(A)){const{key:e,props:t}=A,n=t||{},{tab:o}=n,r=function(A,e){var t={};for(var n in A)Object.prototype.hasOwnProperty.call(A,n)&&e.indexOf(n)<0&&(t[n]=A[n]);if(null!=A&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(n=Object.getOwnPropertySymbols(A);o{const{componentCls:e,motionDurationSlow:t}=A;return[{[e]:{[`${e}-switch`]:{"&-appear, &-enter":{transition:"none","&-start":{opacity:0},"&-active":{opacity:1,transition:`opacity ${t}`}},"&-leave":{position:"absolute",transition:"none",inset:0,"&-start":{opacity:1},"&-active":{opacity:0,transition:`opacity ${t}`}}}}},[Jv(A,"slide-up"),Jv(A,"slide-down")]]},yP=A=>{const{componentCls:e,tabsCardPadding:t,cardBg:n,cardGutter:o,colorBorderSecondary:r,itemSelectedColor:i}=A;return{[`${e}-card`]:{[`> ${e}-nav, > div > ${e}-nav`]:{[`${e}-tab`]:{margin:0,padding:t,background:n,border:`${UE(A.lineWidth)} ${A.lineType} ${r}`,transition:`all ${A.motionDurationSlow} ${A.motionEaseInOut}`},[`${e}-tab-active`]:{color:i,background:A.colorBgContainer},[`${e}-ink-bar`]:{visibility:"hidden"}},[`&${e}-top, &${e}-bottom`]:{[`> ${e}-nav, > div > ${e}-nav`]:{[`${e}-tab + ${e}-tab`]:{marginLeft:{_skip_check_:!0,value:UE(o)}}}},[`&${e}-top`]:{[`> ${e}-nav, > div > ${e}-nav`]:{[`${e}-tab`]:{borderRadius:`${UE(A.borderRadiusLG)} ${UE(A.borderRadiusLG)} 0 0`},[`${e}-tab-active`]:{borderBottomColor:A.colorBgContainer}}},[`&${e}-bottom`]:{[`> ${e}-nav, > div > ${e}-nav`]:{[`${e}-tab`]:{borderRadius:`0 0 ${UE(A.borderRadiusLG)} ${UE(A.borderRadiusLG)}`},[`${e}-tab-active`]:{borderTopColor:A.colorBgContainer}}},[`&${e}-left, &${e}-right`]:{[`> ${e}-nav, > div > ${e}-nav`]:{[`${e}-tab + ${e}-tab`]:{marginTop:UE(o)}}},[`&${e}-left`]:{[`> ${e}-nav, > div > ${e}-nav`]:{[`${e}-tab`]:{borderRadius:{_skip_check_:!0,value:`${UE(A.borderRadiusLG)} 0 0 ${UE(A.borderRadiusLG)}`}},[`${e}-tab-active`]:{borderRightColor:{_skip_check_:!0,value:A.colorBgContainer}}}},[`&${e}-right`]:{[`> ${e}-nav, > div > ${e}-nav`]:{[`${e}-tab`]:{borderRadius:{_skip_check_:!0,value:`0 ${UE(A.borderRadiusLG)} ${UE(A.borderRadiusLG)} 0`}},[`${e}-tab-active`]:{borderLeftColor:{_skip_check_:!0,value:A.colorBgContainer}}}}}}},bP=A=>{const{componentCls:e,itemHoverColor:t,dropdownEdgeChildVerticalPadding:n}=A;return{[`${e}-dropdown`]:Object.assign(Object.assign({},Mf(A)),{position:"absolute",top:-9999,left:{_skip_check_:!0,value:-9999},zIndex:A.zIndexPopup,display:"block","&-hidden":{display:"none"},[`${e}-dropdown-menu`]:{maxHeight:A.tabsDropdownHeight,margin:0,padding:`${UE(n)} 0`,overflowX:"hidden",overflowY:"auto",textAlign:{_skip_check_:!0,value:"left"},listStyleType:"none",backgroundColor:A.colorBgContainer,backgroundClip:"padding-box",borderRadius:A.borderRadiusLG,outline:"none",boxShadow:A.boxShadowSecondary,"&-item":Object.assign(Object.assign({},kf),{display:"flex",alignItems:"center",minWidth:A.tabsDropdownWidth,margin:0,padding:`${UE(A.paddingXXS)} ${UE(A.paddingSM)}`,color:A.colorText,fontWeight:"normal",fontSize:A.fontSize,lineHeight:A.lineHeight,cursor:"pointer",transition:`all ${A.motionDurationSlow}`,"> span":{flex:1,whiteSpace:"nowrap"},"&-remove":{flex:"none",marginLeft:{_skip_check_:!0,value:A.marginSM},color:A.colorTextDescription,fontSize:A.fontSizeSM,background:"transparent",border:0,cursor:"pointer","&:hover":{color:t}},"&:hover":{background:A.controlItemBgHover},"&-disabled":{"&, &:hover":{color:A.colorTextDisabled,background:"transparent",cursor:"not-allowed"}}})}})}},vP=A=>{const{componentCls:e,margin:t,colorBorderSecondary:n,horizontalMargin:o,verticalItemPadding:r,verticalItemMargin:i,calc:a}=A;return{[`${e}-top, ${e}-bottom`]:{flexDirection:"column",[`> ${e}-nav, > div > ${e}-nav`]:{margin:o,"&::before":{position:"absolute",right:{_skip_check_:!0,value:0},left:{_skip_check_:!0,value:0},borderBottom:`${UE(A.lineWidth)} ${A.lineType} ${n}`,content:"''"},[`${e}-ink-bar`]:{height:A.lineWidthBold,"&-animated":{transition:`width ${A.motionDurationSlow}, left ${A.motionDurationSlow},\n right ${A.motionDurationSlow}`}},[`${e}-nav-wrap`]:{"&::before, &::after":{top:0,bottom:0,width:A.controlHeight},"&::before":{left:{_skip_check_:!0,value:0},boxShadow:A.boxShadowTabsOverflowLeft},"&::after":{right:{_skip_check_:!0,value:0},boxShadow:A.boxShadowTabsOverflowRight},[`&${e}-nav-wrap-ping-left::before`]:{opacity:1},[`&${e}-nav-wrap-ping-right::after`]:{opacity:1}}}},[`${e}-top`]:{[`> ${e}-nav,\n > div > ${e}-nav`]:{"&::before":{bottom:0},[`${e}-ink-bar`]:{bottom:0}}},[`${e}-bottom`]:{[`> ${e}-nav, > div > ${e}-nav`]:{order:1,marginTop:t,marginBottom:0,"&::before":{top:0},[`${e}-ink-bar`]:{top:0}},[`> ${e}-content-holder, > div > ${e}-content-holder`]:{order:0}},[`${e}-left, ${e}-right`]:{[`> ${e}-nav, > div > ${e}-nav`]:{flexDirection:"column",minWidth:a(A.controlHeight).mul(1.25).equal(),[`${e}-tab`]:{padding:r,textAlign:"center"},[`${e}-tab + ${e}-tab`]:{margin:i},[`${e}-nav-wrap`]:{flexDirection:"column","&::before, &::after":{right:{_skip_check_:!0,value:0},left:{_skip_check_:!0,value:0},height:A.controlHeight},"&::before":{top:0,boxShadow:A.boxShadowTabsOverflowTop},"&::after":{bottom:0,boxShadow:A.boxShadowTabsOverflowBottom},[`&${e}-nav-wrap-ping-top::before`]:{opacity:1},[`&${e}-nav-wrap-ping-bottom::after`]:{opacity:1}},[`${e}-ink-bar`]:{width:A.lineWidthBold,"&-animated":{transition:`height ${A.motionDurationSlow}, top ${A.motionDurationSlow}`}},[`${e}-nav-list, ${e}-nav-operations`]:{flex:"1 0 auto",flexDirection:"column"}}},[`${e}-left`]:{[`> ${e}-nav, > div > ${e}-nav`]:{[`${e}-ink-bar`]:{right:{_skip_check_:!0,value:0}}},[`> ${e}-content-holder, > div > ${e}-content-holder`]:{marginLeft:{_skip_check_:!0,value:UE(a(A.lineWidth).mul(-1).equal())},borderLeft:{_skip_check_:!0,value:`${UE(A.lineWidth)} ${A.lineType} ${A.colorBorder}`},[`> ${e}-content > ${e}-tabpane`]:{paddingLeft:{_skip_check_:!0,value:A.paddingLG}}}},[`${e}-right`]:{[`> ${e}-nav, > div > ${e}-nav`]:{order:1,[`${e}-ink-bar`]:{left:{_skip_check_:!0,value:0}}},[`> ${e}-content-holder, > div > ${e}-content-holder`]:{order:0,marginRight:{_skip_check_:!0,value:a(A.lineWidth).mul(-1).equal()},borderRight:{_skip_check_:!0,value:`${UE(A.lineWidth)} ${A.lineType} ${A.colorBorder}`},[`> ${e}-content > ${e}-tabpane`]:{paddingRight:{_skip_check_:!0,value:A.paddingLG}}}}}},kP=A=>{const{componentCls:e,cardPaddingSM:t,cardPaddingLG:n,horizontalItemPaddingSM:o,horizontalItemPaddingLG:r}=A;return{[e]:{"&-small":{[`> ${e}-nav`]:{[`${e}-tab`]:{padding:o,fontSize:A.titleFontSizeSM}}},"&-large":{[`> ${e}-nav`]:{[`${e}-tab`]:{padding:r,fontSize:A.titleFontSizeLG}}}},[`${e}-card`]:{[`&${e}-small`]:{[`> ${e}-nav`]:{[`${e}-tab`]:{padding:t}},[`&${e}-bottom`]:{[`> ${e}-nav ${e}-tab`]:{borderRadius:`0 0 ${UE(A.borderRadius)} ${UE(A.borderRadius)}`}},[`&${e}-top`]:{[`> ${e}-nav ${e}-tab`]:{borderRadius:`${UE(A.borderRadius)} ${UE(A.borderRadius)} 0 0`}},[`&${e}-right`]:{[`> ${e}-nav ${e}-tab`]:{borderRadius:{_skip_check_:!0,value:`0 ${UE(A.borderRadius)} ${UE(A.borderRadius)} 0`}}},[`&${e}-left`]:{[`> ${e}-nav ${e}-tab`]:{borderRadius:{_skip_check_:!0,value:`${UE(A.borderRadius)} 0 0 ${UE(A.borderRadius)}`}}}},[`&${e}-large`]:{[`> ${e}-nav`]:{[`${e}-tab`]:{padding:n}}}}}},MP=A=>{const{componentCls:e,itemActiveColor:t,itemHoverColor:n,iconCls:o,tabsHorizontalItemMargin:r,horizontalItemPadding:i,itemSelectedColor:a,itemColor:s}=A,l=`${e}-tab`;return{[l]:{position:"relative",WebkitTouchCallout:"none",WebkitTapHighlightColor:"transparent",display:"inline-flex",alignItems:"center",padding:i,fontSize:A.titleFontSize,background:"transparent",border:0,outline:"none",cursor:"pointer",color:s,"&-btn, &-remove":Object.assign({"&:focus:not(:focus-visible), &:active":{color:t}},Nf(A)),"&-btn":{outline:"none",transition:`all ${A.motionDurationSlow}`,[`${l}-icon:not(:last-child)`]:{marginInlineEnd:A.marginSM}},"&-remove":{flex:"none",marginRight:{_skip_check_:!0,value:A.calc(A.marginXXS).mul(-1).equal()},marginLeft:{_skip_check_:!0,value:A.marginXS},color:A.colorTextDescription,fontSize:A.fontSizeSM,background:"transparent",border:"none",outline:"none",cursor:"pointer",transition:`all ${A.motionDurationSlow}`,"&:hover":{color:A.colorTextHeading}},"&:hover":{color:n},[`&${l}-active ${l}-btn`]:{color:a,textShadow:A.tabsActiveTextShadow},[`&${l}-disabled`]:{color:A.colorTextDisabled,cursor:"not-allowed"},[`&${l}-disabled ${l}-btn, &${l}-disabled ${e}-remove`]:{"&:focus, &:active":{color:A.colorTextDisabled}},[`& ${l}-remove ${o}`]:{margin:0},[`${o}:not(:last-child)`]:{marginRight:{_skip_check_:!0,value:A.marginSM}}},[`${l} + ${l}`]:{margin:{_skip_check_:!0,value:r}}}},xP=A=>{const{componentCls:e,tabsHorizontalItemMarginRTL:t,iconCls:n,cardGutter:o,calc:r}=A,i=`${e}-rtl`;return{[i]:{direction:"rtl",[`${e}-nav`]:{[`${e}-tab`]:{margin:{_skip_check_:!0,value:t},[`${e}-tab:last-of-type`]:{marginLeft:{_skip_check_:!0,value:0}},[n]:{marginRight:{_skip_check_:!0,value:0},marginLeft:{_skip_check_:!0,value:UE(A.marginSM)}},[`${e}-tab-remove`]:{marginRight:{_skip_check_:!0,value:UE(A.marginXS)},marginLeft:{_skip_check_:!0,value:UE(r(A.marginXXS).mul(-1).equal())},[n]:{margin:0}}}},[`&${e}-left`]:{[`> ${e}-nav`]:{order:1},[`> ${e}-content-holder`]:{order:0}},[`&${e}-right`]:{[`> ${e}-nav`]:{order:0},[`> ${e}-content-holder`]:{order:1}},[`&${e}-card${e}-top, &${e}-card${e}-bottom`]:{[`> ${e}-nav, > div > ${e}-nav`]:{[`${e}-tab + ${e}-tab`]:{marginRight:{_skip_check_:!0,value:o},marginLeft:{_skip_check_:!0,value:0}}}}},[`${e}-dropdown-rtl`]:{direction:"rtl"},[`${e}-menu-item`]:{[`${e}-dropdown-rtl`]:{textAlign:{_skip_check_:!0,value:"right"}}}}},SP=A=>{const{componentCls:e,tabsCardPadding:t,cardHeight:n,cardGutter:o,itemHoverColor:r,itemActiveColor:i,colorBorderSecondary:a}=A;return{[e]:Object.assign(Object.assign(Object.assign(Object.assign({},Mf(A)),{display:"flex",[`> ${e}-nav, > div > ${e}-nav`]:{position:"relative",display:"flex",flex:"none",alignItems:"center",[`${e}-nav-wrap`]:{position:"relative",display:"flex",flex:"auto",alignSelf:"stretch",overflow:"hidden",whiteSpace:"nowrap",transform:"translate(0)","&::before, &::after":{position:"absolute",zIndex:1,opacity:0,transition:`opacity ${A.motionDurationSlow}`,content:"''",pointerEvents:"none"}},[`${e}-nav-list`]:{position:"relative",display:"flex",transition:`opacity ${A.motionDurationSlow}`},[`${e}-nav-operations`]:{display:"flex",alignSelf:"stretch"},[`${e}-nav-operations-hidden`]:{position:"absolute",visibility:"hidden",pointerEvents:"none"},[`${e}-nav-more`]:{position:"relative",padding:t,background:"transparent",border:0,color:A.colorText,"&::after":{position:"absolute",right:{_skip_check_:!0,value:0},bottom:0,left:{_skip_check_:!0,value:0},height:A.calc(A.controlHeightLG).div(8).equal(),transform:"translateY(100%)",content:"''"}},[`${e}-nav-add`]:Object.assign({minWidth:n,minHeight:n,marginLeft:{_skip_check_:!0,value:o},padding:`0 ${UE(A.paddingXS)}`,background:"transparent",border:`${UE(A.lineWidth)} ${A.lineType} ${a}`,borderRadius:`${UE(A.borderRadiusLG)} ${UE(A.borderRadiusLG)} 0 0`,outline:"none",cursor:"pointer",color:A.colorText,transition:`all ${A.motionDurationSlow} ${A.motionEaseInOut}`,"&:hover":{color:r},"&:active, &:focus:not(:focus-visible)":{color:i}},Nf(A))},[`${e}-extra-content`]:{flex:"none"},[`${e}-ink-bar`]:{position:"absolute",background:A.inkBarColor,pointerEvents:"none"}}),MP(A)),{[`${e}-content`]:{position:"relative",width:"100%"},[`${e}-content-holder`]:{flex:"auto",minWidth:0,minHeight:0},[`${e}-tabpane`]:{outline:"none","&-hidden":{display:"none"}}}),[`${e}-centered`]:{[`> ${e}-nav, > div > ${e}-nav`]:{[`${e}-nav-wrap`]:{[`&:not([class*='${e}-nav-wrap-ping'])`]:{justifyContent:"center"}}}}}},FP=jf("Tabs",(A=>{const e=Pf(A,{tabsCardPadding:A.cardPadding,dropdownEdgeChildVerticalPadding:A.paddingXXS,tabsActiveTextShadow:"0 0 0.25px currentcolor",tabsDropdownHeight:200,tabsDropdownWidth:120,tabsHorizontalItemMargin:`0 0 0 ${UE(A.horizontalItemGutter)}`,tabsHorizontalItemMarginRTL:`0 0 0 ${UE(A.horizontalItemGutter)}`});return[kP(e),xP(e),vP(e),bP(e),yP(e),SP(e),mP(e)]}),(A=>{const e=A.controlHeightLG;return{zIndexPopup:A.zIndexPopupBase+50,cardBg:A.colorFillAlter,cardHeight:e,cardPadding:`${(e-Math.round(A.fontSize*A.lineHeight))/2-A.lineWidth}px ${A.padding}px`,cardPaddingSM:`${1.5*A.paddingXXS}px ${A.padding}px`,cardPaddingLG:`${A.paddingXS}px ${A.padding}px ${1.5*A.paddingXXS}px`,titleFontSize:A.fontSize,titleFontSizeLG:A.fontSizeLG,titleFontSizeSM:A.fontSize,inkBarColor:A.colorPrimary,horizontalMargin:`0 0 ${A.margin}px 0`,horizontalItemGutter:32,horizontalItemMargin:"",horizontalItemMarginRTL:"",horizontalItemPadding:`${A.paddingSM}px 0`,horizontalItemPaddingSM:`${A.paddingXS}px 0`,horizontalItemPaddingLG:`${A.padding}px 0`,verticalItemPadding:`${A.paddingXS}px ${A.paddingLG}px`,verticalItemMargin:`${A.margin}px 0 0 0`,itemColor:A.colorText,itemSelectedColor:A.colorPrimary,itemHoverColor:A.colorPrimaryHover,itemActiveColor:A.colorPrimaryActive,cardGutter:A.marginXXS/2}}));const NP=A=>{var e,t,n,o,r,i,a,s,l,g,c;const{type:u,className:B,rootClassName:Q,size:E,onEdit:C,hideAdd:d,centered:I,addIcon:p,removeIcon:f,moreIcon:h,more:w,popupClassName:D,children:m,items:y,animated:b,style:v,indicatorSize:k,indicator:M}=A,x=function(A,e){var t={};for(var n in A)Object.prototype.hasOwnProperty.call(A,n)&&e.indexOf(n)<0&&(t[n]=A[n]);if(null!=A&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(n=Object.getOwnPropertySymbols(A);o{let{key:t,event:n}=e;null==C||C("add"===A?n:t,A)},removeIcon:null!==(e=null!=f?f:null==N?void 0:N.removeIcon)&&void 0!==e?e:J.createElement(mw,null),addIcon:(null!=p?p:null==N?void 0:N.addIcon)||J.createElement(WL,null),showAdd:!0!==d});const Y=R(),T=Cm(E),j=DP(y,m),q=function(A){let e,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{inkBar:!0,tabPane:!1};return e=!1===t?{inkBar:!1,tabPane:!1}:!0===t?{inkBar:!0,tabPane:!0}:Object.assign({inkBar:!0},"object"==typeof t?t:{}),e.tabPane&&(e.tabPaneMotion=Object.assign(Object.assign({},wP),{motionName:rm(A,"switch")})),e}(P,b),$=Object.assign(Object.assign({},null==N?void 0:N.style),v),z={align:null!==(t=null==M?void 0:M.align)&&void 0!==t?t:null===(n=null==N?void 0:N.indicator)||void 0===n?void 0:n.align,size:null!==(a=null!==(r=null!==(o=null==M?void 0:M.size)&&void 0!==o?o:k)&&void 0!==r?r:null===(i=null==N?void 0:N.indicator)||void 0===i?void 0:i.size)&&void 0!==a?a:null==N?void 0:N.indicatorSize};return G(J.createElement(hP,Object.assign({direction:F,getPopupContainer:L},x,{items:j,className:ud({[`${P}-${T}`]:T,[`${P}-card`]:["card","editable-card"].includes(u),[`${P}-editable-card`]:"editable-card"===u,[`${P}-centered`]:I},null==N?void 0:N.className,B,Q,O,U,H),popupClassName:ud(D,O,U,H),style:$,editable:K,more:Object.assign({icon:null!==(c=null!==(g=null!==(l=null===(s=null==N?void 0:N.more)||void 0===s?void 0:s.icon)&&void 0!==l?l:null==N?void 0:N.moreIcon)&&void 0!==g?g:h)&&void 0!==c?c:J.createElement(bR,null),transitionName:`${Y}-slide-up`},w),prefixCls:P,animated:q,indicator:z})))};function RP(A,e,t){var n={}.atBegin;return function(A,e,t){var n,o=t||{},r=o.noTrailing,i=void 0!==r&&r,a=o.noLeading,s=void 0!==a&&a,l=o.debounceMode,g=void 0===l?void 0:l,c=!1,u=0;function B(){n&&clearTimeout(n)}function Q(){for(var t=arguments.length,o=new Array(t),r=0;rA?s?(u=Date.now(),i||(n=setTimeout(g?E:Q,A))):Q():!0!==i&&(n=setTimeout(g?E:Q,void 0===g?A-l:A)))}return Q.cancel=function(A){var e=(A||{}).upcomingOnly,t=void 0!==e&&e;B(),c=!t},Q}(A,e,{debounceMode:!1!==(void 0!==n&&n)})}NP.TabPane=()=>null;const LP=J.createContext({}),PP=A=>{const{componentCls:e}=A;return{[e]:{position:"relative",maxWidth:"100%",minHeight:1}}},HP=(A,e)=>((A,e)=>{const{prefixCls:t,componentCls:n,gridColumns:o}=A,r={};for(let i=o;i>=0;i--)0===i?(r[`${n}${e}-${i}`]={display:"none"},r[`${n}-push-${i}`]={insetInlineStart:"auto"},r[`${n}-pull-${i}`]={insetInlineEnd:"auto"},r[`${n}${e}-push-${i}`]={insetInlineStart:"auto"},r[`${n}${e}-pull-${i}`]={insetInlineEnd:"auto"},r[`${n}${e}-offset-${i}`]={marginInlineStart:0},r[`${n}${e}-order-${i}`]={order:0}):(r[`${n}${e}-${i}`]=[{"--ant-display":"block",display:"block"},{display:"var(--ant-display)",flex:`0 0 ${i/o*100}%`,maxWidth:i/o*100+"%"}],r[`${n}${e}-push-${i}`]={insetInlineStart:i/o*100+"%"},r[`${n}${e}-pull-${i}`]={insetInlineEnd:i/o*100+"%"},r[`${n}${e}-offset-${i}`]={marginInlineStart:i/o*100+"%"},r[`${n}${e}-order-${i}`]={order:i});return r[`${n}${e}-flex`]={flex:`var(--${t}${e}-flex)`},r})(A,e),GP=jf("Grid",(A=>{const{componentCls:e}=A;return{[e]:{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"}}}}),(()=>({}))),OP=jf("Grid",(A=>{const e=Pf(A,{gridColumns:24}),t={"-sm":e.screenSMMin,"-md":e.screenMDMin,"-lg":e.screenLGMin,"-xl":e.screenXLMin,"-xxl":e.screenXXLMin};return[PP(e),HP(e,""),HP(e,"-xs"),Object.keys(t).map((A=>((A,e,t)=>({[`@media (min-width: ${UE(e)})`]:Object.assign({},HP(A,t))}))(e,t[A],A))).reduce(((A,e)=>Object.assign(Object.assign({},A),e)),{})]}),(()=>({})));function UP(A){return"number"==typeof A?`${A} ${A} auto`:/^\d+(\.\d+)?(px|em|rem|%)$/.test(A)?`0 0 ${A}`:A}const KP=["xs","sm","md","lg","xl","xxl"],YP=J.forwardRef(((A,e)=>{const{getPrefixCls:t,direction:n}=J.useContext(Xp),{gutter:o,wrap:r}=J.useContext(LP),{prefixCls:i,span:a,order:s,offset:l,push:g,pull:c,className:u,children:B,flex:Q,style:E}=A,C=function(A,e){var t={};for(var n in A)Object.prototype.hasOwnProperty.call(A,n)&&e.indexOf(n)<0&&(t[n]=A[n]);if(null!=A&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(n=Object.getOwnPropertySymbols(A);o{let t={};const o=A[e];"number"==typeof o?t.span=o:"object"==typeof o&&(t=o||{}),delete C[e],w=Object.assign(Object.assign({},w),{[`${d}-${e}-${t.span}`]:void 0!==t.span,[`${d}-${e}-order-${t.order}`]:t.order||0===t.order,[`${d}-${e}-offset-${t.offset}`]:t.offset||0===t.offset,[`${d}-${e}-push-${t.push}`]:t.push||0===t.push,[`${d}-${e}-pull-${t.pull}`]:t.pull||0===t.pull,[`${d}-rtl`]:"rtl"===n}),t.flex&&(w[`${d}-${e}-flex`]=!0,h[`--${d}-${e}-flex`]=UP(t.flex))}));const D=ud(d,{[`${d}-${a}`]:void 0!==a,[`${d}-order-${s}`]:s,[`${d}-offset-${l}`]:l,[`${d}-push-${g}`]:g,[`${d}-pull-${c}`]:c},u,w,p,f),m={};if(o&&o[0]>0){const A=o[0]/2;m.paddingLeft=A,m.paddingRight=A}return Q&&(m.flex=UP(Q),!1!==r||m.minWidth||(m.minWidth=0)),I(J.createElement("div",Object.assign({},C,{style:Object.assign(Object.assign(Object.assign({},m),E),h),className:D,ref:e}),B))}));function TP(A,e){const[t,n]=J.useState("string"==typeof A?A:"");return J.useEffect((()=>{(()=>{if("string"==typeof A&&n(A),"object"==typeof A)for(let t=0;t{const{prefixCls:t,justify:n,align:o,className:r,style:i,children:a,gutter:s=0,wrap:l}=A,g=function(A,e){var t={};for(var n in A)Object.prototype.hasOwnProperty.call(A,n)&&e.indexOf(n)<0&&(t[n]=A[n]);if(null!=A&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(n=Object.getOwnPropertySymbols(A);o{const A=f.subscribe((A=>{C(A);const e=p.current||0;(!Array.isArray(e)&&"object"==typeof e||Array.isArray(e)&&("object"==typeof e[0]||"object"==typeof e[1]))&&Q(A)}));return()=>f.unsubscribe(A)}),[]);const h=c("row",t),[w,D,m]=GP(h),y=(()=>{const A=[void 0,void 0];return(Array.isArray(s)?s:[s,void 0]).forEach(((e,t)=>{if("object"==typeof e)for(let n=0;n0?y[0]/-2:void 0;k&&(v.marginLeft=k,v.marginRight=k);const[M,x]=y;v.rowGap=x;const S=J.useMemo((()=>({gutter:[M,x],wrap:l})),[M,x,l]);return w(J.createElement(LP.Provider,{value:S},J.createElement("div",Object.assign({},g,{className:b,style:Object.assign(Object.assign({},v),i),ref:e}),a)))}));const jP={useBreakpoint:function(){return tF()}};var qP=j.forwardRef((function(A,e){var t=A.prefixCls,n=A.forceRender,o=A.className,r=A.style,i=A.children,a=A.isActive,s=A.role,l=WQ(j.useState(a||n),2),g=l[0],c=l[1];return j.useEffect((function(){(n||a)&&c(!0)}),[n,a]),g?j.createElement("div",{ref:e,className:ud("".concat(t,"-content"),bc(bc({},"".concat(t,"-content-active"),a),"".concat(t,"-content-inactive"),!a),o),style:r,role:s},j.createElement("div",{className:"".concat(t,"-content-box")},i)):null}));qP.displayName="PanelContent";var $P=["showArrow","headerClass","isActive","onItemClick","forceRender","className","prefixCls","collapsible","accordion","panelKey","extra","header","expandIcon","openMotion","destroyInactivePanel","children"],zP=j.forwardRef((function(A,e){var t=A.showArrow,n=void 0===t||t,o=A.headerClass,r=A.isActive,i=A.onItemClick,a=A.forceRender,s=A.className,l=A.prefixCls,g=A.collapsible,c=A.accordion,u=A.panelKey,B=A.extra,Q=A.header,E=A.expandIcon,C=A.openMotion,d=A.destroyInactivePanel,I=A.children,p=Mc(A,$P),f="disabled"===g,h="header"===g,w="icon"===g,D=null!=B&&"boolean"!=typeof B,m=function(){null==i||i(u)},y="function"==typeof E?E(A):j.createElement("i",{className:"arrow"});y&&(y=j.createElement("div",{className:"".concat(l,"-expand-icon"),onClick:["header","icon"].includes(g)?m:void 0},y));var b=ud(bc(bc(bc({},"".concat(l,"-item"),!0),"".concat(l,"-item-active"),r),"".concat(l,"-item-disabled"),f),s),v={className:ud(o,bc(bc(bc({},"".concat(l,"-header"),!0),"".concat(l,"-header-collapsible-only"),h),"".concat(l,"-icon-collapsible-only"),w)),"aria-expanded":r,"aria-disabled":f,onKeyDown:function(A){"Enter"!==A.key&&A.keyCode!==rD.ENTER&&A.which!==rD.ENTER||m()}};return h||w||(v.onClick=m,v.role=c?"tab":"button",v.tabIndex=f?-1:0),j.createElement("div",BQ({},p,{ref:e,className:b}),j.createElement("div",v,n&&y,j.createElement("span",{className:"".concat(l,"-header-text"),onClick:"header"===g?m:void 0},Q),D&&j.createElement("div",{className:"".concat(l,"-extra")},B)),j.createElement(Nh,BQ({visible:r,leavedClassName:"".concat(l,"-content-hidden")},C,{forceRender:a,removeOnLeave:d}),(function(A,e){var t=A.className,n=A.style;return j.createElement(qP,{ref:e,prefixCls:l,className:t,style:n,isActive:r,forceRender:a,role:c?"tabpanel":void 0},I)})))})),WP=["children","label","key","collapsible","onItemClick","destroyInactivePanel"];function _P(A,e,t){return Array.isArray(A)?function(A,e){var t=e.prefixCls,n=e.accordion,o=e.collapsible,r=e.destroyInactivePanel,i=e.onItemClick,a=e.activeKey,s=e.openMotion,l=e.expandIcon;return A.map((function(A,e){var g=A.children,c=A.label,u=A.key,B=A.collapsible,Q=A.onItemClick,E=A.destroyInactivePanel,C=Mc(A,WP),d=String(null!=u?u:e),I=null!=B?B:o,p=null!=E?E:r,f=!1;return f=n?a[0]===d:a.indexOf(d)>-1,j.createElement(zP,BQ({},C,{prefixCls:t,key:d,panelKey:d,isActive:f,accordion:n,openMotion:s,expandIcon:l,header:c,collapsible:I,onItemClick:function(A){"disabled"!==I&&(i(A),null==Q||Q(A))},destroyInactivePanel:p}),g)}))}(A,t):Fd(e).map((function(A,e){return function(A,e,t){if(!A)return null;var n=t.prefixCls,o=t.accordion,r=t.collapsible,i=t.destroyInactivePanel,a=t.onItemClick,s=t.activeKey,l=t.openMotion,g=t.expandIcon,c=A.key||String(e),u=A.props,B=u.header,Q=u.headerClass,E=u.destroyInactivePanel,C=u.collapsible,d=u.onItemClick,I=!1;I=o?s[0]===c:s.indexOf(c)>-1;var p=null!=C?C:r,f={key:c,panelKey:c,header:B,headerClass:Q,isActive:I,prefixCls:n,destroyInactivePanel:null!=E?E:i,openMotion:l,accordion:o,children:A.props.children,onItemClick:function(A){"disabled"!==p&&(a(A),null==d||d(A))},expandIcon:g,collapsible:p};return"string"==typeof A.type?A:(Object.keys(f).forEach((function(A){void 0===f[A]&&delete f[A]})),j.cloneElement(A,f))}(A,e,t)}))}function XP(A){var e=A;if(!Array.isArray(e)){var t=mc(e);e="number"===t||"string"===t?[e]:[]}return e.map((function(A){return String(A)}))}var VP=j.forwardRef((function(A,e){var t=A.prefixCls,n=void 0===t?"rc-collapse":t,o=A.destroyInactivePanel,r=void 0!==o&&o,i=A.style,a=A.accordion,s=A.className,l=A.children,g=A.collapsible,c=A.openMotion,u=A.expandIcon,B=A.activeKey,Q=A.defaultActiveKey,E=A.onChange,C=A.items,d=ud(n,s),I=WQ(vf([],{value:B,onChange:function(A){return null==E?void 0:E(A)},defaultValue:Q,postState:XP}),2),p=I[0],f=I[1];dE(!l,"[rc-collapse] `children` will be removed in next major version. Please use `items` instead.");var h=_P(C,l,{prefixCls:n,accordion:a,openMotion:c,expandIcon:u,collapsible:g,destroyInactivePanel:r,onItemClick:function(A){return f((function(){return a?p[0]===A?[]:[A]:p.indexOf(A)>-1?p.filter((function(e){return e!==A})):[].concat(XQ(p),[A])}))},activeKey:p});return j.createElement("div",BQ({ref:e,className:d,style:i,role:a?"tablist":void 0},Lw(A,{aria:!0,data:!0})),h)}));const ZP=Object.assign(VP,{Panel:zP});ZP.Panel;const AH=J.forwardRef(((A,e)=>{const{getPrefixCls:t}=J.useContext(Xp),{prefixCls:n,className:o,showArrow:r=!0}=A,i=t("collapse",n),a=ud({[`${i}-no-arrow`]:!r},o);return J.createElement(ZP.Panel,Object.assign({ref:e},A,{prefixCls:i,className:a}))})),eH=A=>{const{componentCls:e,contentBg:t,padding:n,headerBg:o,headerPadding:r,collapseHeaderPaddingSM:i,collapseHeaderPaddingLG:a,collapsePanelBorderRadius:s,lineWidth:l,lineType:g,colorBorder:c,colorText:u,colorTextHeading:B,colorTextDisabled:Q,fontSizeLG:E,lineHeight:C,lineHeightLG:d,marginSM:I,paddingSM:p,paddingLG:f,paddingXS:h,motionDurationSlow:w,fontSizeIcon:D,contentPadding:m,fontHeight:y,fontHeightLG:b}=A,v=`${UE(l)} ${g} ${c}`;return{[e]:Object.assign(Object.assign({},Mf(A)),{backgroundColor:o,border:v,borderRadius:s,"&-rtl":{direction:"rtl"},[`& > ${e}-item`]:{borderBottom:v,"&:last-child":{[`\n &,\n & > ${e}-header`]:{borderRadius:`0 0 ${UE(s)} ${UE(s)}`}},[`> ${e}-header`]:{position:"relative",display:"flex",flexWrap:"nowrap",alignItems:"flex-start",padding:r,color:B,lineHeight:C,cursor:"pointer",transition:`all ${w}, visibility 0s`,[`> ${e}-header-text`]:{flex:"auto"},"&:focus":{outline:"none"},[`${e}-expand-icon`]:{height:y,display:"flex",alignItems:"center",paddingInlineEnd:I},[`${e}-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:D,transition:`transform ${w}`,svg:{transition:`transform ${w}`}}),[`${e}-header-text`]:{marginInlineEnd:"auto"}},[`${e}-icon-collapsible-only`]:{cursor:"unset",[`${e}-expand-icon`]:{cursor:"pointer"}}},[`${e}-content`]:{color:u,backgroundColor:t,borderTop:v,[`& > ${e}-content-box`]:{padding:m},"&-hidden":{display:"none"}},"&-small":{[`> ${e}-item`]:{[`> ${e}-header`]:{padding:i,paddingInlineStart:h,[`> ${e}-expand-icon`]:{marginInlineStart:A.calc(p).sub(h).equal()}},[`> ${e}-content > ${e}-content-box`]:{padding:p}}},"&-large":{[`> ${e}-item`]:{fontSize:E,lineHeight:d,[`> ${e}-header`]:{padding:a,paddingInlineStart:n,[`> ${e}-expand-icon`]:{height:b,marginInlineStart:A.calc(f).sub(n).equal()}},[`> ${e}-content > ${e}-content-box`]:{padding:f}}},[`${e}-item:last-child`]:{borderBottom:0,[`> ${e}-content`]:{borderRadius:`0 0 ${UE(s)} ${UE(s)}`}},[`& ${e}-item-disabled > ${e}-header`]:{"\n &,\n & > .arrow\n ":{color:Q,cursor:"not-allowed"}},[`&${e}-icon-position-end`]:{[`& > ${e}-item`]:{[`> ${e}-header`]:{[`${e}-expand-icon`]:{order:1,paddingInlineEnd:0,paddingInlineStart:I}}}}})}},tH=A=>{const{componentCls:e}=A,t=`> ${e}-item > ${e}-header ${e}-arrow`;return{[`${e}-rtl`]:{[t]:{transform:"rotate(180deg)"}}}},nH=A=>{const{componentCls:e,headerBg:t,paddingXXS:n,colorBorder:o}=A;return{[`${e}-borderless`]:{backgroundColor:t,border:0,[`> ${e}-item`]:{borderBottom:`1px solid ${o}`},[`\n > ${e}-item:last-child,\n > ${e}-item:last-child ${e}-header\n `]:{borderRadius:0},[`> ${e}-item:last-child`]:{borderBottom:0},[`> ${e}-item > ${e}-content`]:{backgroundColor:"transparent",borderTop:0},[`> ${e}-item > ${e}-content > ${e}-content-box`]:{paddingTop:n}}}},oH=A=>{const{componentCls:e,paddingSM:t}=A;return{[`${e}-ghost`]:{backgroundColor:"transparent",border:0,[`> ${e}-item`]:{borderBottom:0,[`> ${e}-content`]:{backgroundColor:"transparent",border:0,[`> ${e}-content-box`]:{paddingBlock:t}}}}}},rH=jf("Collapse",(A=>{const e=Pf(A,{collapseHeaderPaddingSM:`${UE(A.paddingXS)} ${UE(A.paddingSM)}`,collapseHeaderPaddingLG:`${UE(A.padding)} ${UE(A.paddingLG)}`,collapsePanelBorderRadius:A.borderRadiusLG});return[eH(e),nH(e),oH(e),tH(e),fv(e)]}),(A=>({headerPadding:`${A.paddingSM}px ${A.padding}px`,headerBg:A.colorFillAlter,contentPadding:`${A.padding}px 16px`,contentBg:A.colorBgContainer}))),iH=J.forwardRef(((A,e)=>{const{getPrefixCls:t,direction:n,collapse:o}=J.useContext(Xp),{prefixCls:r,className:i,rootClassName:a,style:s,bordered:l=!0,ghost:g,size:c,expandIconPosition:u="start",children:B,expandIcon:Q}=A,E=Cm((A=>{var e;return null!==(e=null!=c?c:A)&&void 0!==e?e:"middle"})),C=t("collapse",r),d=t(),[I,p,f]=rH(C),h=J.useMemo((()=>"left"===u?"start":"right"===u?"end":u),[u]),w=null!=Q?Q:null==o?void 0:o.expandIcon,D=J.useCallback((function(){let A=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const e="function"==typeof w?w(A):J.createElement(WF,{rotate:A.isActive?90:void 0});return Gw(e,(()=>{var A;return{className:ud(null===(A=null==e?void 0:e.props)||void 0===A?void 0:A.className,`${C}-arrow`)}}))}),[w,C]),m=ud(`${C}-icon-position-${h}`,{[`${C}-borderless`]:!l,[`${C}-rtl`]:"rtl"===n,[`${C}-ghost`]:!!g,[`${C}-${E}`]:"middle"!==E},null==o?void 0:o.className,i,a,p,f),y=Object.assign(Object.assign({},om(d)),{motionAppear:!1,leavedClassName:`${C}-content-hidden`}),b=J.useMemo((()=>B?Fd(B).map(((A,e)=>{var t,n;if(null===(t=A.props)||void 0===t?void 0:t.disabled){const t=null!==(n=A.key)&&void 0!==n?n:String(e),{disabled:o,collapsible:r}=A.props;return Gw(A,Object.assign(Object.assign({},wI(A.props,["disabled"])),{key:t,collapsible:null!=r?r:o?"disabled":void 0}))}return A})):null),[B]);return I(J.createElement(ZP,Object.assign({ref:e,openMotion:y},wI(A,["rootClassName"]),{expandIcon:D,prefixCls:C,className:m,style:Object.assign(Object.assign({},null==o?void 0:o.style),s)}),b))})),aH=Object.assign(iH,{Panel:AH}),sH=A=>{const{componentCls:e,sizePaddingEdgeHorizontal:t,colorSplit:n,lineWidth:o,textPaddingInline:r,orientationMargin:i,verticalMarginInline:a}=A;return{[e]:Object.assign(Object.assign({},Mf(A)),{borderBlockStart:`${UE(o)} solid ${n}`,"&-vertical":{position:"relative",top:"-0.06em",display:"inline-block",height:"0.9em",marginInline:a,marginBlock:0,verticalAlign:"middle",borderTop:0,borderInlineStart:`${UE(o)} solid ${n}`},"&-horizontal":{display:"flex",clear:"both",width:"100%",minWidth:"100%",margin:`${UE(A.dividerHorizontalGutterMargin)} 0`},[`&-horizontal${e}-with-text`]:{display:"flex",alignItems:"center",margin:`${UE(A.dividerHorizontalWithTextGutterMargin)} 0`,color:A.colorTextHeading,fontWeight:500,fontSize:A.fontSizeLG,whiteSpace:"nowrap",textAlign:"center",borderBlockStart:`0 ${n}`,"&::before, &::after":{position:"relative",width:"50%",borderBlockStart:`${UE(o)} solid transparent`,borderBlockStartColor:"inherit",borderBlockEnd:0,transform:"translateY(50%)",content:"''"}},[`&-horizontal${e}-with-text-left`]:{"&::before":{width:`calc(${i} * 100%)`},"&::after":{width:`calc(100% - ${i} * 100%)`}},[`&-horizontal${e}-with-text-right`]:{"&::before":{width:`calc(100% - ${i} * 100%)`},"&::after":{width:`calc(${i} * 100%)`}},[`${e}-inner-text`]:{display:"inline-block",paddingBlock:0,paddingInline:r},"&-dashed":{background:"none",borderColor:n,borderStyle:"dashed",borderWidth:`${UE(o)} 0 0`},[`&-horizontal${e}-with-text${e}-dashed`]:{"&::before, &::after":{borderStyle:"dashed none none"}},[`&-vertical${e}-dashed`]:{borderInlineStartWidth:o,borderInlineEnd:0,borderBlockStart:0,borderBlockEnd:0},[`&-plain${e}-with-text`]:{color:A.colorText,fontWeight:"normal",fontSize:A.fontSize},[`&-horizontal${e}-with-text-left${e}-no-default-orientation-margin-left`]:{"&::before":{width:0},"&::after":{width:"100%"},[`${e}-inner-text`]:{paddingInlineStart:t}},[`&-horizontal${e}-with-text-right${e}-no-default-orientation-margin-right`]:{"&::before":{width:"100%"},"&::after":{width:0},[`${e}-inner-text`]:{paddingInlineEnd:t}}})}},lH=jf("Divider",(A=>{const e=Pf(A,{dividerHorizontalWithTextGutterMargin:A.margin,dividerHorizontalGutterMargin:A.marginLG,sizePaddingEdgeHorizontal:0});return[sH(e)]}),(A=>({textPaddingInline:"1em",orientationMargin:.05,verticalMarginInline:A.marginXS})),{unitless:{orientationMargin:!0}});const gH=A=>{const{getPrefixCls:e,direction:t,divider:n}=J.useContext(Xp),{prefixCls:o,type:r="horizontal",orientation:i="center",orientationMargin:a,className:s,rootClassName:l,children:g,dashed:c,plain:u,style:B}=A,Q=function(A,e){var t={};for(var n in A)Object.prototype.hasOwnProperty.call(A,n)&&e.indexOf(n)<0&&(t[n]=A[n]);if(null!=A&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(n=Object.getOwnPropertySymbols(A);o0?`-${i}`:i,f=!!g,h="left"===i&&null!=a,w="right"===i&&null!=a,D=ud(E,null==n?void 0:n.className,d,I,`${E}-${r}`,{[`${E}-with-text`]:f,[`${E}-with-text${p}`]:f,[`${E}-dashed`]:!!c,[`${E}-plain`]:!!u,[`${E}-rtl`]:"rtl"===t,[`${E}-no-default-orientation-margin-left`]:h,[`${E}-no-default-orientation-margin-right`]:w},s,l),m=J.useMemo((()=>"number"==typeof a?a:/^\d+$/.test(a)?Number(a):a),[a]),y=Object.assign(Object.assign({},h&&{marginLeft:m}),w&&{marginRight:m});return C(J.createElement("div",Object.assign({className:D,style:Object.assign(Object.assign({},null==n?void 0:n.style),B)},Q,{role:"separator"}),g&&"vertical"!==r&&J.createElement("span",{className:`${E}-inner-text`,style:y},g)))};var cH={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M890.5 755.3L537.9 269.2c-12.8-17.6-39-17.6-51.7 0L133.5 755.3A8 8 0 00140 768h75c5.1 0 9.9-2.5 12.9-6.6L512 369.8l284.1 391.6c3 4.1 7.8 6.6 12.9 6.6h75c6.5 0 10.3-7.4 6.5-12.7z"}}]},name:"up",theme:"outlined"},uH=function(A,e){return J.createElement(Cw,BQ({},A,{ref:e,icon:cH}))},BH=J.forwardRef(uH);function QH(){return"function"==typeof BigInt}function EH(A){return!A&&0!==A&&!Number.isNaN(A)||!String(A).trim()}function CH(A){var e=A.trim(),t=e.startsWith("-");t&&(e=e.slice(1)),(e=e.replace(/(\.\d*[^0])0*$/,"$1").replace(/\.0*$/,"").replace(/^0+/,"")).startsWith(".")&&(e="0".concat(e));var n=e||"0",o=n.split("."),r=o[0]||"0",i=o[1]||"0";"0"===r&&"0"===i&&(t=!1);var a=t?"-":"";return{negative:t,negativeStr:a,trimStr:n,integerStr:r,decimalStr:i,fullStr:"".concat(a).concat(n)}}function dH(A){var e=String(A);return!Number.isNaN(Number(e))&&e.includes("e")}function IH(A){var e=String(A);if(dH(A)){var t=Number(e.slice(e.indexOf("e-")+2)),n=e.match(/\.(\d+)/);return null!=n&&n[1]&&(t+=n[1].length),t}return e.includes(".")&&fH(e)?e.length-e.indexOf(".")-1:0}function pH(A){var e=String(A);if(dH(A)){if(A>Number.MAX_SAFE_INTEGER)return String(QH()?BigInt(A).toString():Number.MAX_SAFE_INTEGER);if(A0&&void 0!==arguments[0])||arguments[0]?this.isInvalidate()?"":CH("".concat(this.getMark()).concat(this.getIntegerStr(),".").concat(this.getDecimalStr())).fullStr:this.origin}}]),A}(),wH=function(){function A(e){eQ(this,A),bc(this,"origin",""),bc(this,"number",void 0),bc(this,"empty",void 0),EH(e)?this.empty=!0:(this.origin=String(e),this.number=Number(e))}return nQ(A,[{key:"negate",value:function(){return new A(-this.toNumber())}},{key:"add",value:function(e){if(this.isInvalidate())return new A(e);var t=Number(e);if(Number.isNaN(t))return this;var n=this.number+t;if(n>Number.MAX_SAFE_INTEGER)return new A(Number.MAX_SAFE_INTEGER);if(nNumber.MAX_SAFE_INTEGER)return new A(Number.MAX_SAFE_INTEGER);if(n0&&void 0!==arguments[0])||arguments[0]?this.isInvalidate()?"":pH(this.number):this.origin}}]),A}();function DH(A){return QH()?new hH(A):new wH(A)}function mH(A,e,t){var n=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(""===A)return"";var o=CH(A),r=o.negativeStr,i=o.integerStr,a=o.decimalStr,s="".concat(e).concat(a),l="".concat(r).concat(i);if(t>=0){var g=Number(a[t]);return g>=5&&!n?mH(DH(A).add("".concat(r,"0.").concat("0".repeat(t)).concat(10-g)).toString(),e,t,n):0===t?l:"".concat(l).concat(e).concat(a.padEnd(t,"0").slice(0,t))}return".0"===s?l:"".concat(l).concat(s)}function yH(A,e,t){var n=e.cloneNode(!0),o=Object.create(A,{target:{value:n},currentTarget:{value:n}});return n.value=t,"number"==typeof e.selectionStart&&"number"==typeof e.selectionEnd&&(n.selectionStart=e.selectionStart,n.selectionEnd=e.selectionEnd),o}function bH(A,e,t,n){if(t){var o=e;"click"!==e.type?"file"===A.type||void 0===n?t(o):t(o=yH(e,A,n)):t(o=yH(e,A,""))}}function vH(A,e){if(A){A.focus(e);var t=(e||{}).cursor;if(t){var n=A.value.length;switch(t){case"start":A.setSelectionRange(0,0);break;case"end":A.setSelectionRange(n,n);break;default:A.setSelectionRange(0,n)}}}}var kH=function(A){var e,t,n=A.inputElement,o=A.children,r=A.prefixCls,i=A.prefix,a=A.suffix,s=A.addonBefore,l=A.addonAfter,g=A.className,c=A.style,u=A.disabled,B=A.readOnly,Q=A.focused,E=A.triggerFocus,C=A.allowClear,d=A.value,I=A.handleReset,p=A.hidden,f=A.classes,h=A.classNames,w=A.dataAttrs,D=A.styles,m=A.components,y=null!=o?o:n,b=(null==m?void 0:m.affixWrapper)||"span",v=(null==m?void 0:m.groupWrapper)||"span",k=(null==m?void 0:m.wrapper)||"span",M=(null==m?void 0:m.groupAddon)||"span",x=J.useRef(null),S=function(A){return!!(A.prefix||A.suffix||A.allowClear)}(A),F=J.cloneElement(y,{value:d,className:ud(y.props.className,!S&&(null==h?void 0:h.variant))||null});if(S){var N,R=null;if(C){var L,P=!u&&!B&&d,H="".concat(r,"-clear-icon"),G="object"===mc(C)&&null!=C&&C.clearIcon?C.clearIcon:"โœ–";R=j.createElement("span",{onClick:I,onMouseDown:function(A){return A.preventDefault()},className:ud(H,(L={},bc(L,"".concat(H,"-hidden"),!P),bc(L,"".concat(H,"-has-suffix"),!!a),L)),role:"button",tabIndex:-1},G)}var O="".concat(r,"-affix-wrapper"),U=ud(O,(bc(N={},"".concat(r,"-disabled"),u),bc(N,"".concat(O,"-disabled"),u),bc(N,"".concat(O,"-focused"),Q),bc(N,"".concat(O,"-readonly"),B),bc(N,"".concat(O,"-input-with-clear-btn"),a&&C&&d),N),null==f?void 0:f.affixWrapper,null==h?void 0:h.affixWrapper,null==h?void 0:h.variant),K=(a||C)&&j.createElement("span",{className:ud("".concat(r,"-suffix"),null==h?void 0:h.suffix),style:null==D?void 0:D.suffix},R,a);F=j.createElement(b,BQ({className:U,style:null==D?void 0:D.affixWrapper,onClick:function(A){var e;null!==(e=x.current)&&void 0!==e&&e.contains(A.target)&&(null==E||E())}},null==w?void 0:w.affixWrapper,{ref:x}),i&&j.createElement("span",{className:ud("".concat(r,"-prefix"),null==h?void 0:h.prefix),style:null==D?void 0:D.prefix},i),F,K)}if(function(A){return!(!A.addonBefore&&!A.addonAfter)}(A)){var Y="".concat(r,"-group"),T="".concat(Y,"-addon"),q="".concat(Y,"-wrapper"),$=ud("".concat(r,"-wrapper"),Y,null==f?void 0:f.wrapper,null==h?void 0:h.wrapper),z=ud(q,bc({},"".concat(q,"-disabled"),u),null==f?void 0:f.group,null==h?void 0:h.groupWrapper);F=j.createElement(v,{className:z},j.createElement(k,{className:$},s&&j.createElement(M,{className:T},s),F,l&&j.createElement(M,{className:T},l)))}return j.cloneElement(F,{className:ud(null===(e=F.props)||void 0===e?void 0:e.className,g)||null,style:kc(kc({},null===(t=F.props)||void 0===t?void 0:t.style),c),hidden:p})},MH=["show"];function xH(A,e){return J.useMemo((function(){var t={};e&&(t.show="object"===mc(e)&&e.formatter?e.formatter:!!e);var n=t=kc(kc({},t),A),o=n.show,r=Mc(n,MH);return kc(kc({},r),{},{show:!!o,showFormatter:"function"==typeof o?o:void 0,strategy:r.strategy||function(A){return A.length}})}),[A,e])}var SH=["autoComplete","onChange","onFocus","onBlur","onPressEnter","onKeyDown","prefixCls","disabled","htmlSize","className","maxLength","suffix","showCount","count","type","classes","classNames","styles","onCompositionStart","onCompositionEnd"],FH=J.forwardRef((function(A,e){var t=A.autoComplete,n=A.onChange,o=A.onFocus,r=A.onBlur,i=A.onPressEnter,a=A.onKeyDown,s=A.prefixCls,l=void 0===s?"rc-input":s,g=A.disabled,c=A.htmlSize,u=A.className,B=A.maxLength,Q=A.suffix,E=A.showCount,C=A.count,d=A.type,I=void 0===d?"text":d,p=A.classes,f=A.classNames,h=A.styles,w=A.onCompositionStart,D=A.onCompositionEnd,m=Mc(A,SH),y=WQ(J.useState(!1),2),b=y[0],v=y[1],k=J.useRef(!1),M=J.useRef(null),x=function(A){M.current&&vH(M.current,A)},S=WQ(vf(A.defaultValue,{value:A.value}),2),F=S[0],N=S[1],R=null==F?"":String(F),L=WQ(J.useState(null),2),P=L[0],H=L[1],G=xH(C,E),O=G.max||B,U=G.strategy(R),K=!!O&&U>O;J.useImperativeHandle(e,(function(){return{focus:x,blur:function(){var A;null===(A=M.current)||void 0===A||A.blur()},setSelectionRange:function(A,e,t){var n;null===(n=M.current)||void 0===n||n.setSelectionRange(A,e,t)},select:function(){var A;null===(A=M.current)||void 0===A||A.select()},input:M.current}})),J.useEffect((function(){v((function(A){return(!A||!g)&&A}))}),[g]);var Y=function(A,e,t){var o,r,i=e;if(!k.current&&G.exceedFormatter&&G.max&&G.strategy(e)>G.max)e!==(i=G.exceedFormatter(e,{max:G.max}))&&H([(null===(o=M.current)||void 0===o?void 0:o.selectionStart)||0,(null===(r=M.current)||void 0===r?void 0:r.selectionEnd)||0]);else if("compositionEnd"===t.source)return;N(i),M.current&&bH(M.current,A,n,i)};J.useEffect((function(){var A;P&&(null===(A=M.current)||void 0===A||A.setSelectionRange.apply(A,XQ(P)))}),[P]);var T,q=function(A){Y(A,A.target.value,{source:"change"})},$=function(A){k.current=!1,Y(A,A.currentTarget.value,{source:"compositionEnd"}),null==D||D(A)},z=function(A){i&&"Enter"===A.key&&i(A),null==a||a(A)},W=function(A){v(!0),null==o||o(A)},_=function(A){v(!1),null==r||r(A)},X=K&&"".concat(l,"-out-of-range");return j.createElement(kH,BQ({},m,{prefixCls:l,className:ud(u,X),handleReset:function(A){N(""),x(),M.current&&bH(M.current,A,n)},value:R,focused:b,triggerFocus:x,suffix:function(){var A=Number(O)>0;if(Q||G.show){var e=G.showFormatter?G.showFormatter({value:R,count:U,maxLength:O}):"".concat(U).concat(A?" / ".concat(O):"");return j.createElement(j.Fragment,null,G.show&&j.createElement("span",{className:ud("".concat(l,"-show-count-suffix"),bc({},"".concat(l,"-show-count-has-suffix"),!!Q),null==f?void 0:f.count),style:kc({},null==h?void 0:h.count)},e),Q)}return null}(),disabled:g,classes:p,classNames:f,styles:h}),(T=wI(A,["prefixCls","onPressEnter","addonBefore","addonAfter","prefix","suffix","allowClear","defaultValue","showCount","count","classes","htmlSize","styles","classNames"]),j.createElement("input",BQ({autoComplete:t},T,{onChange:q,onFocus:W,onBlur:_,onKeyDown:z,className:ud(l,bc({},"".concat(l,"-disabled"),g),null==f?void 0:f.input),style:null==h?void 0:h.input,ref:M,size:c,type:I,onCompositionStart:function(A){k.current=!0,null==w||w(A)},onCompositionEnd:$}))))}));function NH(A){var e=A.prefixCls,t=A.upNode,n=A.downNode,o=A.upDisabled,r=A.downDisabled,i=A.onStep,a=J.useRef(),s=J.useRef([]),l=J.useRef();l.current=i;var g,c,u,B=function(){clearTimeout(a.current)},Q=function(A,e){A.preventDefault(),B(),l.current(e),a.current=setTimeout((function A(){l.current(e),a.current=setTimeout(A,200)}),600)};if(J.useEffect((function(){return function(){B(),s.current.forEach((function(A){return kI.cancel(A)}))}}),[]),g=WQ(J.useState(!1),2),c=g[0],u=g[1],qE((function(){u(sM())}),[]),c)return null;var E="".concat(e,"-handler"),C=ud(E,"".concat(E,"-up"),bc({},"".concat(E,"-up-disabled"),o)),d=ud(E,"".concat(E,"-down"),bc({},"".concat(E,"-down-disabled"),r)),I=function(){return s.current.push(kI(B))},p={unselectable:"on",role:"button",onMouseUp:I,onMouseLeave:I};return J.createElement("div",{className:"".concat(E,"-wrap")},J.createElement("span",BQ({},p,{onMouseDown:function(A){Q(A,!0)},"aria-label":"Increase Value","aria-disabled":o,className:C}),t||J.createElement("span",{unselectable:"on",className:"".concat(e,"-handler-up-inner")})),J.createElement("span",BQ({},p,{onMouseDown:function(A){Q(A,!1)},"aria-label":"Decrease Value","aria-disabled":r,className:d}),n||J.createElement("span",{unselectable:"on",className:"".concat(e,"-handler-down-inner")})))}function RH(A){var e="number"==typeof A?pH(A):CH(A).fullStr;return e.includes(".")?CH(e.replace(/(\d)\.(\d)/g,"$1$2.")).fullStr:A+"0"}var LH=["prefixCls","className","style","min","max","step","defaultValue","value","disabled","readOnly","upHandler","downHandler","keyboard","changeOnWheel","controls","classNames","stringMode","parser","formatter","precision","decimalSeparator","onChange","onInput","onPressEnter","onStep","changeOnBlur"],PH=["disabled","style","prefixCls","value","prefix","suffix","addonBefore","addonAfter","className","classNames"],HH=function(A,e){return A||e.isEmpty()?e.toString():e.toNumber()},GH=function(A){var e=DH(A);return e.isInvalidate()?null:e},OH=J.forwardRef((function(A,e){var t,n=A.prefixCls,o=void 0===n?"rc-input-number":n,r=A.className,i=A.style,a=A.min,s=A.max,l=A.step,g=void 0===l?1:l,c=A.defaultValue,u=A.value,B=A.disabled,Q=A.readOnly,E=A.upHandler,C=A.downHandler,d=A.keyboard,I=A.changeOnWheel,p=void 0!==I&&I,f=A.controls,h=void 0===f||f;A.classNames;var w=A.stringMode,D=A.parser,m=A.formatter,y=A.precision,b=A.decimalSeparator,v=A.onChange,k=A.onInput,M=A.onPressEnter,x=A.onStep,S=A.changeOnBlur,F=void 0===S||S,N=Mc(A,LH),R="".concat(o,"-input"),L=J.useRef(null),P=WQ(J.useState(!1),2),H=P[0],G=P[1],O=J.useRef(!1),U=J.useRef(!1),K=J.useRef(!1),Y=WQ(J.useState((function(){return DH(null!=u?u:c)})),2),T=Y[0],j=Y[1];var q=J.useCallback((function(A,e){if(!e)return y>=0?y:Math.max(IH(A),IH(g))}),[y,g]),$=J.useCallback((function(A){var e=String(A);if(D)return D(e);var t=e;return b&&(t=t.replace(b,".")),t.replace(/[^\w.-]+/g,"")}),[D,b]),z=J.useRef(""),W=J.useCallback((function(A,e){if(m)return m(A,{userTyping:e,input:String(z.current)});var t="number"==typeof A?pH(A):A;if(!e){var n=q(t,e);if(fH(t)&&(b||n>=0))t=mH(t,b||".",n)}return t}),[m,q,b]),_=WQ(J.useState((function(){var A=null!=c?c:u;return T.isInvalidate()&&["string","number"].includes(mc(A))?Number.isNaN(A)?"":A:W(T.toString(),!1)})),2),X=_[0],V=_[1];function Z(A,e){V(W(A.isInvalidate()?A.toString(!1):A.toString(!e),e))}z.current=X;var AA,eA,tA,nA,oA,rA=J.useMemo((function(){return GH(s)}),[s,y]),iA=J.useMemo((function(){return GH(a)}),[a,y]),aA=J.useMemo((function(){return!(!rA||!T||T.isInvalidate())&&rA.lessEquals(T)}),[rA,T]),sA=J.useMemo((function(){return!(!iA||!T||T.isInvalidate())&&T.lessEquals(iA)}),[iA,T]),lA=(AA=L.current,eA=H,tA=J.useRef(null),[function(){try{var A=AA.selectionStart,e=AA.selectionEnd,t=AA.value,n=t.substring(0,A),o=t.substring(e);tA.current={start:A,end:e,value:t,beforeTxt:n,afterTxt:o}}catch(R3){}},function(){if(AA&&tA.current&&eA)try{var A=AA.value,e=tA.current,t=e.beforeTxt,n=e.afterTxt,o=e.start,r=A.length;if(A.endsWith(n))r=A.length-tA.current.afterTxt.length;else if(A.startsWith(t))r=t.length;else{var i=t[o-1],a=A.indexOf(i,o-1);-1!==a&&(r=a+1)}AA.setSelectionRange(r,r)}catch(R3){dE(!1,"Something warning of cursor restore. Please fire issue about this: ".concat(R3.message))}}]),gA=WQ(lA,2),cA=gA[0],uA=gA[1],BA=function(A){return rA&&!A.lessEquals(rA)?rA:iA&&!iA.lessEquals(A)?iA:null},QA=function(A){return!BA(A)},EA=function(A,e){var t,n=A,o=QA(n)||n.isEmpty();if(n.isEmpty()||e||(n=BA(n)||n,o=!0),!Q&&!B&&o){var r=n.toString(),i=q(r,e);return i>=0&&(n=DH(mH(r,".",i)),QA(n)||(n=DH(mH(r,".",i,!0)))),n.equals(T)||(t=n,void 0===u&&j(t),null==v||v(n.isEmpty()?null:HH(w,n)),void 0===u&&Z(n,e)),n}return T},CA=(nA=J.useRef(0),oA=function(){kI.cancel(nA.current)},J.useEffect((function(){return oA}),[]),function(A){oA(),nA.current=kI((function(){A()}))}),dA=function A(e){if(cA(),z.current=e,V(e),!U.current){var t=DH($(e));t.isNaN()||EA(t,!0)}null==k||k(e),CA((function(){var t=e;D||(t=e.replace(/ใ€‚/g,".")),t!==e&&A(t)}))},IA=function(A){var e;if(!(A&&aA||!A&&sA)){O.current=!1;var t=DH(K.current?RH(g):g);A||(t=t.negate());var n=(T||DH(0)).add(t.toString()),o=EA(n,!1);null==x||x(HH(w,o),{offset:K.current?RH(g):g,type:A?"up":"down"}),null===(e=L.current)||void 0===e||e.focus()}},pA=function(A){var e=DH($(X)),t=e;t=e.isNaN()?EA(T,A):EA(e,A),void 0!==u?Z(T,!1):t.isNaN()||Z(t,!1)};J.useEffect((function(){if(p&&H){var A=function(A){IA(A.deltaY<0),A.preventDefault()},e=L.current;if(e)return e.addEventListener("wheel",A,{passive:!1}),function(){return e.removeEventListener("wheel",A)}}}));return $E((function(){T.isInvalidate()||Z(T,!1)}),[y,m]),$E((function(){var A=DH(u);j(A);var e=DH($(X));A.equals(e)&&O.current&&!m||Z(A,O.current)}),[u]),$E((function(){m&&uA()}),[X]),J.createElement("div",{className:ud(o,r,(t={},bc(t,"".concat(o,"-focused"),H),bc(t,"".concat(o,"-disabled"),B),bc(t,"".concat(o,"-readonly"),Q),bc(t,"".concat(o,"-not-a-number"),T.isNaN()),bc(t,"".concat(o,"-out-of-range"),!T.isInvalidate()&&!QA(T)),t)),style:i,onFocus:function(){G(!0)},onBlur:function(){F&&pA(!1),G(!1),O.current=!1},onKeyDown:function(A){var e=A.key,t=A.shiftKey;O.current=!0,K.current=t,"Enter"===e&&(U.current||(O.current=!1),pA(!1),null==M||M(A)),!1!==d&&!U.current&&["Up","ArrowUp","Down","ArrowDown"].includes(e)&&(IA("Up"===e||"ArrowUp"===e),A.preventDefault())},onKeyUp:function(){O.current=!1,K.current=!1},onCompositionStart:function(){U.current=!0},onCompositionEnd:function(){U.current=!1,dA(L.current.value)},onBeforeInput:function(){O.current=!0}},h&&J.createElement(NH,{prefixCls:o,upNode:E,downNode:C,upDisabled:aA,downDisabled:sA,onStep:IA}),J.createElement("div",{className:"".concat(R,"-wrap")},J.createElement("input",BQ({autoComplete:"off",role:"spinbutton","aria-valuemin":a,"aria-valuemax":s,"aria-valuenow":T.isInvalidate()?null:T.toString(),step:g},N,{ref:Pd(L,e),className:R,value:X,onChange:function(A){dA(A.target.value)},disabled:B,readOnly:Q}))))})),UH=J.forwardRef((function(A,e){var t=A.disabled,n=A.style,o=A.prefixCls,r=A.value,i=A.prefix,a=A.suffix,s=A.addonBefore,l=A.addonAfter,g=A.className,c=A.classNames,u=Mc(A,PH),B=J.useRef(null);return J.createElement(kH,{className:g,triggerFocus:function(A){B.current&&vH(B.current,A)},prefixCls:o,value:r,disabled:t,style:n,prefix:i,suffix:a,addonAfter:l,addonBefore:s,classNames:c,components:{affixWrapper:"div",groupWrapper:"div",wrapper:"div",groupAddon:"div"}},J.createElement(OH,BQ({prefixCls:o,disabled:t,ref:Pd(B,e),className:null==c?void 0:c.input},u)))}));UH.displayName="InputNumber";const KH=(A,e)=>{let{componentCls:t,borderRadiusSM:n,borderRadiusLG:o}=A;const r="lg"===e?o:n;return{[`&-${e}`]:{[`${t}-handler-wrap`]:{borderStartEndRadius:r,borderEndEndRadius:r},[`${t}-handler-up`]:{borderStartEndRadius:r},[`${t}-handler-down`]:{borderEndEndRadius:r}}}},YH=A=>{const{componentCls:e,lineWidth:t,lineType:n,borderRadius:o,fontSizeLG:r,controlHeightLG:i,controlHeightSM:a,colorError:s,paddingInlineSM:l,paddingBlockSM:g,paddingBlockLG:c,paddingInlineLG:u,colorTextDescription:B,motionDurationMid:Q,handleHoverColor:E,paddingInline:C,paddingBlock:d,handleBg:I,handleActiveBg:p,colorTextDisabled:f,borderRadiusSM:h,borderRadiusLG:w,controlWidth:D,handleOpacity:m,handleBorderColor:y,filledHandleBg:b,lineHeightLG:v,calc:k}=A;return[{[e]:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},Mf(A)),QL(A)),{display:"inline-block",width:D,margin:0,padding:0,borderRadius:o}),tL(A,{[`${e}-handler-wrap`]:{background:I,[`${e}-handler-down`]:{borderBlockStart:`${UE(t)} ${n} ${y}`}}})),sL(A,{[`${e}-handler-wrap`]:{background:b,[`${e}-handler-down`]:{borderBlockStart:`${UE(t)} ${n} ${y}`}},"&:focus-within":{[`${e}-handler-wrap`]:{background:I}}})),rL(A)),{"&-rtl":{direction:"rtl",[`${e}-input`]:{direction:"rtl"}},"&-lg":{padding:0,fontSize:r,lineHeight:v,borderRadius:w,[`input${e}-input`]:{height:k(i).sub(k(t).mul(2)).equal(),padding:`${UE(c)} ${UE(u)}`}},"&-sm":{padding:0,borderRadius:h,[`input${e}-input`]:{height:k(a).sub(k(t).mul(2)).equal(),padding:`${UE(g)} ${UE(l)}`}},"&-out-of-range":{[`${e}-input-wrap`]:{input:{color:s}}},"&-group":Object.assign(Object.assign(Object.assign({},Mf(A)),EL(A)),{"&-wrapper":Object.assign(Object.assign(Object.assign({display:"inline-block",textAlign:"start",verticalAlign:"top",[`${e}-affix-wrapper`]:{width:"100%"},"&-lg":{[`${e}-group-addon`]:{borderRadius:w,fontSize:A.fontSizeLG}},"&-sm":{[`${e}-group-addon`]:{borderRadius:h}}},oL(A)),gL(A)),{[`&:not(${e}-compact-first-item):not(${e}-compact-last-item)${e}-compact-item`]:{[`${e}, ${e}-group-addon`]:{borderRadius:0}},[`&:not(${e}-compact-last-item)${e}-compact-first-item`]:{[`${e}, ${e}-group-addon`]:{borderStartEndRadius:0,borderEndEndRadius:0}},[`&:not(${e}-compact-first-item)${e}-compact-last-item`]:{[`${e}, ${e}-group-addon`]:{borderStartStartRadius:0,borderEndStartRadius:0}}})}),[`&-disabled ${e}-input`]:{cursor:"not-allowed"},[e]:{"&-input":Object.assign(Object.assign(Object.assign(Object.assign({},Mf(A)),{width:"100%",padding:`${UE(d)} ${UE(C)}`,textAlign:"start",backgroundColor:"transparent",border:0,borderRadius:o,outline:0,transition:`all ${Q} linear`,appearance:"textfield",fontSize:"inherit"}),cL(A.colorTextPlaceholder)),{'&[type="number"]::-webkit-inner-spin-button, &[type="number"]::-webkit-outer-spin-button':{margin:0,webkitAppearance:"none",appearance:"none"}})}})},{[e]:Object.assign(Object.assign(Object.assign({[`&:hover ${e}-handler-wrap, &-focused ${e}-handler-wrap`]:{opacity:1},[`${e}-handler-wrap`]:{position:"absolute",insetBlockStart:0,insetInlineEnd:0,width:A.handleWidth,height:"100%",borderStartStartRadius:0,borderStartEndRadius:o,borderEndEndRadius:o,borderEndStartRadius:0,opacity:m,display:"flex",flexDirection:"column",alignItems:"stretch",transition:`opacity ${Q} linear ${Q}`,[`${e}-handler`]:{display:"flex",alignItems:"center",justifyContent:"center",flex:"auto",height:"40%",[`\n ${e}-handler-up-inner,\n ${e}-handler-down-inner\n `]:{marginInlineEnd:0,fontSize:A.handleFontSize}}},[`${e}-handler`]:{height:"50%",overflow:"hidden",color:B,fontWeight:"bold",lineHeight:0,textAlign:"center",cursor:"pointer",borderInlineStart:`${UE(t)} ${n} ${y}`,transition:`all ${Q} linear`,"&:active":{background:p},"&:hover":{height:"60%",[`\n ${e}-handler-up-inner,\n ${e}-handler-down-inner\n `]:{color:E}},"&-up-inner, &-down-inner":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"}}),{color:B,transition:`all ${Q} linear`,userSelect:"none"})},[`${e}-handler-up`]:{borderStartEndRadius:o},[`${e}-handler-down`]:{borderEndEndRadius:o}},KH(A,"lg")),KH(A,"sm")),{"&-disabled, &-readonly":{[`${e}-handler-wrap`]:{display:"none"},[`${e}-input`]:{color:"inherit"}},[`\n ${e}-handler-up-disabled,\n ${e}-handler-down-disabled\n `]:{cursor:"not-allowed"},[`\n ${e}-handler-up-disabled:hover &-handler-up-inner,\n ${e}-handler-down-disabled:hover &-handler-down-inner\n `]:{color:f}})}]},TH=A=>{const{componentCls:e,paddingBlock:t,paddingInline:n,inputAffixPadding:o,controlWidth:r,borderRadiusLG:i,borderRadiusSM:a,paddingInlineLG:s,paddingInlineSM:l,paddingBlockLG:g,paddingBlockSM:c}=A;return{[`${e}-affix-wrapper`]:Object.assign(Object.assign({[`input${e}-input`]:{padding:`${UE(t)} 0`}},QL(A)),{position:"relative",display:"inline-flex",width:r,padding:0,paddingInlineStart:n,"&-lg":{borderRadius:i,paddingInlineStart:s,[`input${e}-input`]:{padding:`${UE(g)} 0`}},"&-sm":{borderRadius:a,paddingInlineStart:l,[`input${e}-input`]:{padding:`${UE(c)} 0`}},[`&:not(${e}-disabled):hover`]:{zIndex:1},"&-focused, &:focus":{zIndex:1},[`&-disabled > ${e}-disabled`]:{background:"transparent"},[`> div${e}`]:{width:"100%",border:"none",outline:"none",[`&${e}-focused`]:{boxShadow:"none !important"}},"&::before":{display:"inline-block",width:0,visibility:"hidden",content:'"\\a0"'},[`${e}-handler-wrap`]:{zIndex:2},[e]:{color:"inherit","&-prefix, &-suffix":{display:"flex",flex:"none",alignItems:"center",pointerEvents:"none"},"&-prefix":{marginInlineEnd:o},"&-suffix":{position:"absolute",insetBlockStart:0,insetInlineEnd:0,zIndex:1,height:"100%",marginInlineEnd:n,marginInlineStart:o}}})}},JH=jf("InputNumber",(A=>{const e=Pf(A,_R(A));return[YH(e),TH(e),cy(e)]}),(A=>{var e;const t=null!==(e=A.handleVisible)&&void 0!==e?e:"auto";return Object.assign(Object.assign({},XR(A)),{controlWidth:90,handleWidth:A.controlHeightSM-2*A.lineWidth,handleFontSize:A.fontSize/2,handleVisible:t,handleActiveBg:A.colorFillAlter,handleBg:A.colorBgContainer,filledHandleBg:new Cp(A.colorFillSecondary).onBackground(A.colorBgContainer).toHexString(),handleHoverColor:A.colorPrimary,handleBorderColor:A.colorBorder,handleOpacity:!0===t?1:0})}),{unitless:{handleOpacity:!0}});const jH=J.forwardRef(((A,e)=>{const{getPrefixCls:t,direction:n}=J.useContext(Xp),o=J.useRef(null);J.useImperativeHandle(e,(()=>o.current));const{className:r,rootClassName:i,size:a,disabled:s,prefixCls:l,addonBefore:g,addonAfter:c,prefix:u,bordered:B,readOnly:Q,status:E,controls:C,variant:d}=A,I=function(A,e){var t={};for(var n in A)Object.prototype.hasOwnProperty.call(A,n)&&e.indexOf(n)<0&&(t[n]=A[n]);if(null!=A&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(n=Object.getOwnPropertySymbols(A);o{var e;return null!==(e=null!=a?a:m)&&void 0!==e?e:A})),L=J.useContext(Af),P=null!=s?s:L,[H,G]=ES(d,B),O=M&&J.createElement(J.Fragment,null,F),U=ud({[`${p}-lg`]:"large"===R,[`${p}-sm`]:"small"===R,[`${p}-rtl`]:"rtl"===n,[`${p}-in-form-item`]:S},w),K=`${p}-group`;return h(J.createElement(UH,Object.assign({ref:o,disabled:P,className:ud(D,f,r,i,y),upHandler:b,downHandler:v,prefixCls:p,readOnly:Q,controls:k,prefix:u,suffix:O,addonAfter:c&&J.createElement(mm,null,J.createElement(cv,{override:!0,status:!0},c)),addonBefore:g&&J.createElement(mm,null,J.createElement(cv,{override:!0,status:!0},g)),classNames:{input:U,variant:ud({[`${p}-${H}`]:G},oS(p,N,M)),affixWrapper:ud({[`${p}-affix-wrapper-sm`]:"small"===R,[`${p}-affix-wrapper-lg`]:"large"===R,[`${p}-affix-wrapper-rtl`]:"rtl"===n},w),wrapper:ud({[`${K}-rtl`]:"rtl"===n},w),groupWrapper:ud({[`${p}-group-wrapper-sm`]:"small"===R,[`${p}-group-wrapper-lg`]:"large"===R,[`${p}-group-wrapper-rtl`]:"rtl"===n,[`${p}-group-wrapper-${H}`]:G},oS(`${p}-group-wrapper`,N,M),w)}},I)))})),qH=jH;qH._InternalPanelDoNotUseOrYouWillBeFired=A=>J.createElement(tw,{theme:{components:{InputNumber:{handleVisible:!0}}}},J.createElement(jH,Object.assign({},A)));const $H=A=>{let e;return"object"==typeof A&&(null==A?void 0:A.clearIcon)?e=A:A&&(e={clearIcon:j.createElement(hw,null)}),e};function zH(A,e){const t=J.useRef([]),n=()=>{t.current.push(setTimeout((()=>{var e,t,n,o;(null===(e=A.current)||void 0===e?void 0:e.input)&&"password"===(null===(t=A.current)||void 0===t?void 0:t.input.getAttribute("type"))&&(null===(n=A.current)||void 0===n?void 0:n.input.hasAttribute("value"))&&(null===(o=A.current)||void 0===o||o.input.removeAttribute("value"))})))};return J.useEffect((()=>(e&&n(),()=>t.current.forEach((A=>{A&&clearTimeout(A)})))),[]),n}const WH=J.forwardRef(((A,e)=>{var t;const{prefixCls:n,bordered:o=!0,status:r,size:i,disabled:a,onBlur:s,onFocus:l,suffix:g,allowClear:c,addonAfter:u,addonBefore:B,className:Q,style:E,styles:C,rootClassName:d,onChange:I,classNames:p,variant:f}=A,h=function(A,e){var t={};for(var n in A)Object.prototype.hasOwnProperty.call(A,n)&&e.indexOf(n)<0&&(t[n]=A[n]);if(null!=A&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(n=Object.getOwnPropertySymbols(A);o{var e;return null!==(e=null!=i?i:S)&&void 0!==e?e:A})),R=j.useContext(Af),L=null!=a?a:R,{status:P,hasFeedback:H,feedbackIcon:G}=J.useContext(gv),O=rS(P,r),U=function(A){return!!(A.prefix||A.suffix||A.allowClear||A.showCount)}(A)||!!H;J.useRef(U);const K=zH(b,!0),Y=(H||g)&&j.createElement(j.Fragment,null,g,H&&G),T=$H(null!=c?c:null==m?void 0:m.allowClear),[q,$]=ES(f,o);return k(j.createElement(FH,Object.assign({ref:Pd(e,b),prefixCls:y,autoComplete:null==m?void 0:m.autoComplete},h,{disabled:L,onBlur:A=>{K(),null==s||s(A)},onFocus:A=>{K(),null==l||l(A)},style:Object.assign(Object.assign({},null==m?void 0:m.style),E),styles:Object.assign(Object.assign({},null==m?void 0:m.styles),C),suffix:Y,allowClear:T,className:ud(Q,d,x,v,F,null==m?void 0:m.className),onChange:A=>{K(),null==I||I(A)},addonAfter:u&&j.createElement(mm,null,j.createElement(cv,{override:!0,status:!0},u)),addonBefore:B&&j.createElement(mm,null,j.createElement(cv,{override:!0,status:!0},B)),classNames:Object.assign(Object.assign(Object.assign({},p),null==m?void 0:m.classNames),{input:ud({[`${y}-sm`]:"small"===N,[`${y}-lg`]:"large"===N,[`${y}-rtl`]:"rtl"===D},null==p?void 0:p.input,null===(t=null==m?void 0:m.classNames)||void 0===t?void 0:t.input,M),variant:ud({[`${y}-${q}`]:$},oS(y,O)),affixWrapper:ud({[`${y}-affix-wrapper-sm`]:"small"===N,[`${y}-affix-wrapper-lg`]:"large"===N,[`${y}-affix-wrapper-rtl`]:"rtl"===D},M),wrapper:ud({[`${y}-group-rtl`]:"rtl"===D},M),groupWrapper:ud({[`${y}-group-wrapper-sm`]:"small"===N,[`${y}-group-wrapper-lg`]:"large"===N,[`${y}-group-wrapper-rtl`]:"rtl"===D,[`${y}-group-wrapper-${q}`]:$},oS(`${y}-group-wrapper`,O,H),M)})})))})),_H=A=>{const{componentCls:e,paddingXS:t}=A;return{[`${e}`]:{display:"inline-flex",alignItems:"center",flexWrap:"nowrap",columnGap:t,"&-rtl":{direction:"rtl"},[`${e}-input`]:{textAlign:"center",paddingInline:A.paddingXXS},[`&${e}-sm ${e}-input`]:{paddingInline:A.calc(A.paddingXXS).div(2).equal()},[`&${e}-lg ${e}-input`]:{paddingInline:A.paddingXS}}}},XH=jf(["Input","OTP"],(A=>{const e=Pf(A,_R(A));return[_H(e)]}),XR);const VH=J.forwardRef(((A,e)=>{const{value:t,onChange:n,onActiveChange:o,index:r,mask:i}=A,a=function(A,e){var t={};for(var n in A)Object.prototype.hasOwnProperty.call(A,n)&&e.indexOf(n)<0&&(t[n]=A[n]);if(null!=A&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(n=Object.getOwnPropertySymbols(A);ol.current));const g=()=>{kI((()=>{var A;const e=null===(A=l.current)||void 0===A?void 0:A.input;document.activeElement===e&&e&&e.select()}))};return J.createElement(WH,Object.assign({},a,{ref:l,value:s,onInput:A=>{n(r,A.target.value)},onFocus:g,onKeyDown:A=>{let{key:e}=A;"ArrowLeft"===e?o(r-1):"ArrowRight"===e&&o(r+1),g()},onKeyUp:A=>{"Backspace"!==A.key||t||o(r-1),g()},onMouseDown:g,onMouseUp:g,type:!0===i?"password":"text"}))}));function ZH(A){return(A||"").split("")}const AG=J.forwardRef(((A,e)=>{const{prefixCls:t,length:n=6,size:o,defaultValue:r,value:i,onChange:a,formatter:s,variant:l,disabled:g,status:c,autoFocus:u,mask:B}=A,Q=function(A,e){var t={};for(var n in A)Object.prototype.hasOwnProperty.call(A,n)&&e.indexOf(n)<0&&(t[n]=A[n]);if(null!=A&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(n=Object.getOwnPropertySymbols(A);onull!=o?o:A)),m=J.useContext(gv),y=rS(m.status,c),b=J.useMemo((()=>Object.assign(Object.assign({},m),{status:y,hasFeedback:!1,feedbackIcon:null})),[m,y]),v=J.useRef(null),k=J.useRef({});J.useImperativeHandle(e,(()=>({focus:()=>{var A;null===(A=k.current[0])||void 0===A||A.focus()},blur:()=>{var A;for(let e=0;es?s(A):A,[x,S]=J.useState(ZH(M(r||"")));J.useEffect((()=>{void 0!==i&&S(ZH(i))}),[i]);const F=mf((A=>{S(A),a&&A.length===n&&A.every((A=>A))&&A.some(((A,e)=>x[e]!==A))&&a(A.join(""))})),N=mf(((A,e)=>{let t=XQ(x);for(let n=0;n=0&&!t[n];n-=1)t.pop();const o=M(t.map((A=>A||" ")).join(""));return t=ZH(o).map(((A,e)=>" "!==A||t[e]?A:t[e])),t})),R=(A,e)=>{var t;const o=N(A,e),r=Math.min(A+e.length,n-1);r!==A&&(null===(t=k.current[r])||void 0===t||t.focus()),F(o)},L=A=>{var e;null===(e=k.current[A])||void 0===e||e.focus()},P={variant:l,disabled:g,status:y,mask:B};return f(J.createElement("div",Object.assign({},I,{ref:v,className:ud(d,{[`${d}-sm`]:"small"===D,[`${d}-lg`]:"large"===D,[`${d}-rtl`]:"rtl"===C},w,h)}),J.createElement(gv.Provider,{value:b},Array.from({length:n}).map(((A,e)=>{const t=`otp-${e}`,n=x[e]||"";return J.createElement(VH,Object.assign({ref:A=>{k.current[e]=A},key:t,index:e,size:D,htmlSize:1,className:`${d}-input`,onChange:R,value:n,onActiveChange:L,autoFocus:0===e&&u},P))})))))}));var eG={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"},tG=function(A,e){return J.createElement(Cw,BQ({},A,{ref:e,icon:eG}))},nG=J.forwardRef(tG),oG={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"},rG=function(A,e){return J.createElement(Cw,BQ({},A,{ref:e,icon:oG}))},iG=J.forwardRef(rG);const aG=A=>A?J.createElement(iG,null):J.createElement(nG,null),sG={click:"onClick",hover:"onMouseOver"},lG=J.forwardRef(((A,e)=>{const{disabled:t,action:n="click",visibilityToggle:o=!0,iconRender:r=aG}=A,i="object"==typeof o&&void 0!==o.visible,[a,s]=J.useState((()=>!!i&&o.visible)),l=J.useRef(null);J.useEffect((()=>{i&&s(o.visible)}),[i,o]);const g=zH(l),c=()=>{t||(a&&g(),s((A=>{var e;const t=!A;return"object"==typeof o&&(null===(e=o.onVisibleChange)||void 0===e||e.call(o,t)),t})))},{className:u,prefixCls:B,inputPrefixCls:Q,size:E}=A,C=function(A,e){var t={};for(var n in A)Object.prototype.hasOwnProperty.call(A,n)&&e.indexOf(n)<0&&(t[n]=A[n]);if(null!=A&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(n=Object.getOwnPropertySymbols(A);o{const e=sG[n]||"",t=r(a),o={[e]:c,className:`${A}-icon`,key:"passwordIcon",onMouseDown:A=>{A.preventDefault()},onMouseUp:A=>{A.preventDefault()}};return J.cloneElement(J.isValidElement(t)?t:J.createElement("span",null,t),o)})(p),h=ud(p,u,{[`${p}-${E}`]:!!E}),w=Object.assign(Object.assign({},wI(C,["suffix","iconRender","visibilityToggle"])),{type:a?"text":"password",className:h,prefixCls:I,suffix:f});return E&&(w.size=E),J.createElement(WH,Object.assign({ref:Pd(e,l)},w))}));const gG=J.forwardRef(((A,e)=>{const{prefixCls:t,inputPrefixCls:n,className:o,size:r,suffix:i,enterButton:a=!1,addonAfter:s,loading:l,disabled:g,onSearch:c,onChange:u,onCompositionStart:B,onCompositionEnd:Q}=A,E=function(A,e){var t={};for(var n in A)Object.prototype.hasOwnProperty.call(A,n)&&e.indexOf(n)<0&&(t[n]=A[n]);if(null!=A&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(n=Object.getOwnPropertySymbols(A);o{var e;return null!==(e=null!=r?r:h)&&void 0!==e?e:A})),D=J.useRef(null),m=A=>{var e;document.activeElement===(null===(e=D.current)||void 0===e?void 0:e.input)&&A.preventDefault()},y=A=>{var e,t;c&&c(null===(t=null===(e=D.current)||void 0===e?void 0:e.input)||void 0===t?void 0:t.value,A,{source:"input"})},b="boolean"==typeof a?J.createElement(qS,null):null,v=`${p}-button`;let k;const M=a||{},x=M.type&&!0===M.type.__ANT_BUTTON;k=x||"button"===M.type?Gw(M,Object.assign({onMouseDown:m,onClick:A=>{var e,t;null===(t=null===(e=null==M?void 0:M.props)||void 0===e?void 0:e.onClick)||void 0===t||t.call(e,A),y(A)},key:"enterButton"},x?{className:v,size:w}:{})):J.createElement(dy,{className:v,type:a?"primary":void 0,size:w,disabled:g,key:"enterButton",onMouseDown:m,onClick:y,loading:l,icon:b},a),s&&(k=[k,Gw(s,{key:"addonAfter"})]);const S=ud(p,{[`${p}-rtl`]:"rtl"===d,[`${p}-${w}`]:!!w,[`${p}-with-button`]:!!a},o);return J.createElement(WH,Object.assign({ref:Pd(D,e),onPressEnter:A=>{I.current||l||y(A)}},E,{size:w,onCompositionStart:A=>{I.current=!0,null==B||B(A)},onCompositionEnd:A=>{I.current=!1,null==Q||Q(A)},prefixCls:f,addonAfter:k,suffix:i,onChange:A=>{A&&A.target&&"click"===A.type&&c&&c(A.target.value,A,{source:"clear"}),u&&u(A)},className:S,disabled:g}))}));var cG,uG=["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"],BG={};function QG(A){var e=arguments.length>1&&void 0!==arguments[1]&&arguments[1],t=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null;cG||((cG=document.createElement("textarea")).setAttribute("tab-index","-1"),cG.setAttribute("aria-hidden","true"),document.body.appendChild(cG)),A.getAttribute("wrap")?cG.setAttribute("wrap",A.getAttribute("wrap")):cG.removeAttribute("wrap");var o=function(A){var e=arguments.length>1&&void 0!==arguments[1]&&arguments[1],t=A.getAttribute("id")||A.getAttribute("data-reactid")||A.getAttribute("name");if(e&&BG[t])return BG[t];var n=window.getComputedStyle(A),o=n.getPropertyValue("box-sizing")||n.getPropertyValue("-moz-box-sizing")||n.getPropertyValue("-webkit-box-sizing"),r=parseFloat(n.getPropertyValue("padding-bottom"))+parseFloat(n.getPropertyValue("padding-top")),i=parseFloat(n.getPropertyValue("border-bottom-width"))+parseFloat(n.getPropertyValue("border-top-width")),a={sizingStyle:uG.map((function(A){return"".concat(A,":").concat(n.getPropertyValue(A))})).join(";"),paddingSize:r,borderSize:i,boxSizing:o};return e&&t&&(BG[t]=a),a}(A,e),r=o.paddingSize,i=o.borderSize,a=o.boxSizing,s=o.sizingStyle;cG.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")),cG.value=A.value||A.placeholder||"";var l,g=void 0,c=void 0,u=cG.scrollHeight;if("border-box"===a?u+=i:"content-box"===a&&(u-=r),null!==t||null!==n){cG.value=" ";var B=cG.scrollHeight-r;null!==t&&(g=B*t,"border-box"===a&&(g=g+r+i),u=Math.max(g,u)),null!==n&&(c=B*n,"border-box"===a&&(c=c+r+i),l=u>c?"":"hidden",u=Math.min(c,u))}var Q={height:u,overflowY:l,resize:"none"};return g&&(Q.minHeight=g),c&&(Q.maxHeight=c),Q}var EG=["prefixCls","onPressEnter","defaultValue","value","autoSize","onResize","className","style","disabled","onChange","onInternalAutoSize"],CG=J.forwardRef((function(A,e){var t=A,n=t.prefixCls;t.onPressEnter;var o=t.defaultValue,r=t.value,i=t.autoSize,a=t.onResize,s=t.className,l=t.style,g=t.disabled,c=t.onChange;t.onInternalAutoSize;var u=Mc(t,EG),B=WQ(vf(o,{value:r,postState:function(A){return null!=A?A:""}}),2),Q=B[0],E=B[1],C=J.useRef();J.useImperativeHandle(e,(function(){return{textArea:C.current}}));var d=WQ(J.useMemo((function(){return i&&"object"===mc(i)?[i.minRows,i.maxRows]:[]}),[i]),2),I=d[0],p=d[1],f=!!i,h=WQ(J.useState(2),2),w=h[0],D=h[1],m=WQ(J.useState(),2),y=m[0],b=m[1],v=function(){D(0)};qE((function(){f&&v()}),[r,I,p,f]),qE((function(){if(0===w)D(1);else if(1===w){var A=QG(C.current,!1,I,p);D(2),b(A)}else!function(){try{if(document.activeElement===C.current){var A=C.current,e=A.selectionStart,t=A.selectionEnd,n=A.scrollTop;C.current.setSelectionRange(e,t),C.current.scrollTop=n}}catch(R3){}}()}),[w]);var k=J.useRef(),M=function(){kI.cancel(k.current)};J.useEffect((function(){return M}),[]);var x=f?y:null,S=kc(kc({},l),x);return 0!==w&&1!==w||(S.overflowY="hidden",S.overflowX="hidden"),J.createElement(hI,{onResize:function(A){2===w&&(null==a||a(A),i&&(M(),k.current=kI((function(){v()}))))},disabled:!(i||a)},J.createElement("textarea",BQ({},u,{ref:C,style:S,className:ud(n,s,bc({},"".concat(n,"-disabled"),g)),disabled:g,value:Q,onChange:function(A){E(A.target.value),null==c||c(A)}})))})),dG=["defaultValue","value","onFocus","onBlur","onChange","allowClear","maxLength","onCompositionStart","onCompositionEnd","suffix","prefixCls","showCount","count","className","style","disabled","hidden","classNames","styles","onResize"],IG=j.forwardRef((function(A,e){var t,n,o=A.defaultValue,r=A.value,i=A.onFocus,a=A.onBlur,s=A.onChange,l=A.allowClear,g=A.maxLength,c=A.onCompositionStart,u=A.onCompositionEnd,B=A.suffix,Q=A.prefixCls,E=void 0===Q?"rc-textarea":Q,C=A.showCount,d=A.count,I=A.className,p=A.style,f=A.disabled,h=A.hidden,w=A.classNames,D=A.styles,m=A.onResize,y=Mc(A,dG),b=WQ(vf(o,{value:r,defaultValue:o}),2),v=b[0],k=b[1],M=null==v?"":String(v),x=WQ(j.useState(!1),2),S=x[0],F=x[1],N=j.useRef(!1),R=WQ(j.useState(null),2),L=R[0],P=R[1],H=J.useRef(null),G=function(){var A;return null===(A=H.current)||void 0===A?void 0:A.textArea},O=function(){G().focus()};J.useImperativeHandle(e,(function(){return{resizableTextArea:H.current,focus:O,blur:function(){G().blur()}}})),J.useEffect((function(){F((function(A){return!f&&A}))}),[f]);var U=WQ(j.useState(null),2),K=U[0],Y=U[1];j.useEffect((function(){var A;K&&(A=G()).setSelectionRange.apply(A,XQ(K))}),[K]);var T,q=xH(d,C),$=null!==(t=q.max)&&void 0!==t?t:g,z=Number($)>0,W=q.strategy(M),_=!!$&&W>$,X=function(A,e){var t=e;!N.current&&q.exceedFormatter&&q.max&&q.strategy(e)>q.max&&e!==(t=q.exceedFormatter(e,{max:q.max}))&&Y([G().selectionStart||0,G().selectionEnd||0]),k(t),bH(A.currentTarget,A,s,t)},V=B;q.show&&(T=q.showFormatter?q.showFormatter({value:M,count:W,maxLength:$}):"".concat(W).concat(z?" / ".concat($):""),V=j.createElement(j.Fragment,null,V,j.createElement("span",{className:ud("".concat(E,"-data-count"),null==w?void 0:w.count),style:null==D?void 0:D.count},T)));var Z=!y.autoSize&&!C&&!l;return j.createElement(kH,{value:M,allowClear:l,handleReset:function(A){k(""),O(),bH(G(),A,s)},suffix:V,prefixCls:E,classNames:kc(kc({},w),{},{affixWrapper:ud(null==w?void 0:w.affixWrapper,(n={},bc(n,"".concat(E,"-show-count"),C),bc(n,"".concat(E,"-textarea-allow-clear"),l),n))}),disabled:f,focused:S,className:ud(I,_&&"".concat(E,"-out-of-range")),style:kc(kc({},p),L&&!Z?{height:"auto"}:{}),dataAttrs:{affixWrapper:{"data-count":"string"==typeof T?T:void 0}},hidden:h},j.createElement(CG,BQ({},y,{maxLength:g,onKeyDown:function(A){var e=y.onPressEnter,t=y.onKeyDown;"Enter"===A.key&&e&&e(A),null==t||t(A)},onChange:function(A){X(A,A.target.value)},onFocus:function(A){F(!0),null==i||i(A)},onBlur:function(A){F(!1),null==a||a(A)},onCompositionStart:function(A){N.current=!0,null==c||c(A)},onCompositionEnd:function(A){N.current=!1,X(A,A.currentTarget.value),null==u||u(A)},className:ud(null==w?void 0:w.textarea),style:kc(kc({},null==D?void 0:D.textarea),{},{resize:null==p?void 0:p.resize}),disabled:f,prefixCls:E,onResize:function(A){var e;null==m||m(A),null!==(e=G())&&void 0!==e&&e.style.height&&P(!0)},ref:H})))}));const pG=J.forwardRef(((A,e)=>{var t,n;const{prefixCls:o,bordered:r=!0,size:i,disabled:a,status:s,allowClear:l,classNames:g,rootClassName:c,className:u,style:B,styles:Q,variant:E}=A,C=function(A,e){var t={};for(var n in A)Object.prototype.hasOwnProperty.call(A,n)&&e.indexOf(n)<0&&(t[n]=A[n]);if(null!=A&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(n=Object.getOwnPropertySymbols(A);o{var A;return{resizableTextArea:null===(A=v.current)||void 0===A?void 0:A.resizableTextArea,focus:A=>{var e,t;!function(A,e){if(!A)return;A.focus(e);const{cursor:t}=e||{};if(t){const e=A.value.length;switch(t){case"start":A.setSelectionRange(0,0);break;case"end":A.setSelectionRange(e,e);break;default:A.setSelectionRange(0,e)}}}(null===(t=null===(e=v.current)||void 0===e?void 0:e.resizableTextArea)||void 0===t?void 0:t.textArea,A)},blur:()=>{var A;return null===(A=v.current)||void 0===A?void 0:A.blur()}}}));const k=d("input",o),M=oD(k),[x,S,F]=DL(k,M),[N,R]=ES(E,r),L=$H(null!=l?l:null==p?void 0:p.allowClear);return x(J.createElement(IG,Object.assign({autoComplete:null==p?void 0:p.autoComplete},C,{style:Object.assign(Object.assign({},null==p?void 0:p.style),B),styles:Object.assign(Object.assign({},null==p?void 0:p.styles),Q),disabled:w,allowClear:L,className:ud(F,M,u,c,null==p?void 0:p.className),classNames:Object.assign(Object.assign(Object.assign({},g),null==p?void 0:p.classNames),{textarea:ud({[`${k}-sm`]:"small"===f,[`${k}-lg`]:"large"===f},S,null==g?void 0:g.textarea,null===(t=null==p?void 0:p.classNames)||void 0===t?void 0:t.textarea),variant:ud({[`${k}-${N}`]:R},oS(k,b)),affixWrapper:ud(`${k}-textarea-affix-wrapper`,{[`${k}-affix-wrapper-rtl`]:"rtl"===I,[`${k}-affix-wrapper-sm`]:"small"===f,[`${k}-affix-wrapper-lg`]:"large"===f,[`${k}-textarea-show-count`]:A.showCount||(null===(n=A.count)||void 0===n?void 0:n.show)},S)}),prefixCls:k,suffix:m&&J.createElement("span",{className:`${k}-textarea-suffix`},y),ref:v})))})),fG=WH;fG.Group=A=>{const{getPrefixCls:e,direction:t}=J.useContext(Xp),{prefixCls:n,className:o}=A,r=e("input-group",n),i=e("input"),[a,s]=DL(i),l=ud(r,{[`${r}-lg`]:"large"===A.size,[`${r}-sm`]:"small"===A.size,[`${r}-compact`]:A.compact,[`${r}-rtl`]:"rtl"===t},s,o),g=J.useContext(gv),c=J.useMemo((()=>Object.assign(Object.assign({},g),{isFormItemInput:!1})),[g]);return a(J.createElement("span",{className:l,style:A.style,onMouseEnter:A.onMouseEnter,onMouseLeave:A.onMouseLeave,onFocus:A.onFocus,onBlur:A.onBlur},J.createElement(gv.Provider,{value:c},A.children)))},fG.Search=gG,fG.TextArea=pG,fG.Password=lG,fG.OTP=AG;var hG=J.createContext(null),wG=J.createContext({}),DG=["prefixCls","className","containerRef"],mG=function(A){var e=A.prefixCls,t=A.className,n=A.containerRef,o=Mc(A,DG),r=J.useContext(wG).panel,i=Hd(r,n);return J.createElement("div",BQ({className:ud("".concat(e,"-content"),t),role:"dialog",ref:i},Lw(A,{aria:!0}),{"aria-modal":"true"},o))};function yG(A){return"string"==typeof A&&String(Number(A))===A?(dE(!1,"Invalid value type of `width` or `height` which should be number type instead."),Number(A)):A}var bG={width:0,height:0,overflow:"hidden",outline:"none",position:"absolute"};function vG(A,e){var t,n,o,r=A.prefixCls,i=A.open,a=A.placement,s=A.inline,l=A.push,g=A.forceRender,c=A.autoFocus,u=A.keyboard,B=A.classNames,Q=A.rootClassName,E=A.rootStyle,C=A.zIndex,d=A.className,I=A.id,p=A.style,f=A.motion,h=A.width,w=A.height,D=A.children,m=A.mask,y=A.maskClosable,b=A.maskMotion,v=A.maskClassName,k=A.maskStyle,M=A.afterOpenChange,x=A.onClose,S=A.onMouseEnter,F=A.onMouseOver,N=A.onMouseLeave,R=A.onClick,L=A.onKeyDown,P=A.onKeyUp,H=A.styles,G=J.useRef(),O=J.useRef(),U=J.useRef();J.useImperativeHandle(e,(function(){return G.current}));J.useEffect((function(){var A;i&&c&&(null===(A=G.current)||void 0===A||A.focus({preventScroll:!0}))}),[i]);var K=WQ(J.useState(!1),2),Y=K[0],T=K[1],j=J.useContext(hG),q=null!==(t=null!==(n=null===(o="boolean"==typeof l?l?{}:{distance:0}:l||{})||void 0===o?void 0:o.distance)&&void 0!==n?n:null==j?void 0:j.pushDistance)&&void 0!==t?t:180,$=J.useMemo((function(){return{pushDistance:q,push:function(){T(!0)},pull:function(){T(!1)}}}),[q]);J.useEffect((function(){var A,e;i?null==j||null===(A=j.push)||void 0===A||A.call(j):null==j||null===(e=j.pull)||void 0===e||e.call(j)}),[i]),J.useEffect((function(){return function(){var A;null==j||null===(A=j.pull)||void 0===A||A.call(j)}}),[]);var z=m&&J.createElement(Nh,BQ({key:"mask"},b,{visible:i}),(function(A,e){var t=A.className,n=A.style;return J.createElement("div",{className:ud("".concat(r,"-mask"),t,null==B?void 0:B.mask,v),style:kc(kc(kc({},n),k),null==H?void 0:H.mask),onClick:y&&i?x:void 0,ref:e})})),W="function"==typeof f?f(a):f,_={};if(Y&&q)switch(a){case"top":_.transform="translateY(".concat(q,"px)");break;case"bottom":_.transform="translateY(".concat(-q,"px)");break;case"left":_.transform="translateX(".concat(q,"px)");break;default:_.transform="translateX(".concat(-q,"px)")}"left"===a||"right"===a?_.width=yG(h):_.height=yG(w);var X={onMouseEnter:S,onMouseOver:F,onMouseLeave:N,onClick:R,onKeyDown:L,onKeyUp:P},V=J.createElement(Nh,BQ({key:"panel"},W,{visible:i,forceRender:g,onVisibleChanged:function(A){null==M||M(A)},removeOnLeave:!1,leavedClassName:"".concat(r,"-content-wrapper-hidden")}),(function(e,t){var n=e.className,o=e.style;return J.createElement("div",BQ({className:ud("".concat(r,"-content-wrapper"),null==B?void 0:B.wrapper,n),style:kc(kc(kc({},_),o),null==H?void 0:H.wrapper)},Lw(A,{data:!0})),J.createElement(mG,BQ({id:I,containerRef:t,prefixCls:r,className:ud(d,null==B?void 0:B.content),style:kc(kc({},p),null==H?void 0:H.content)},Lw(A,{aria:!0}),X),D))})),Z=kc({},E);return C&&(Z.zIndex=C),J.createElement(hG.Provider,{value:$},J.createElement("div",{className:ud(r,"".concat(r,"-").concat(a),Q,bc(bc({},"".concat(r,"-open"),i),"".concat(r,"-inline"),s)),style:Z,tabIndex:-1,ref:G,onKeyDown:function(A){var e=A.keyCode,t=A.shiftKey;switch(e){case rD.TAB:var n;if(e===rD.TAB)if(t||document.activeElement!==U.current){if(t&&document.activeElement===O.current){var o;null===(o=U.current)||void 0===o||o.focus({preventScroll:!0})}}else null===(n=O.current)||void 0===n||n.focus({preventScroll:!0});break;case rD.ESC:x&&u&&(A.stopPropagation(),x(A))}}},z,J.createElement("div",{tabIndex:0,ref:O,style:bG,"aria-hidden":"true","data-sentinel":"start"}),V,J.createElement("div",{tabIndex:0,ref:U,style:bG,"aria-hidden":"true","data-sentinel":"end"})))}var kG=J.forwardRef(vG),MG=function(A){var e=A.open,t=void 0!==e&&e,n=A.prefixCls,o=void 0===n?"rc-drawer":n,r=A.placement,i=void 0===r?"right":r,a=A.autoFocus,s=void 0===a||a,l=A.keyboard,g=void 0===l||l,c=A.width,u=void 0===c?378:c,B=A.mask,Q=void 0===B||B,E=A.maskClosable,C=void 0===E||E,d=A.getContainer,I=A.forceRender,p=A.afterOpenChange,f=A.destroyOnClose,h=A.onMouseEnter,w=A.onMouseOver,D=A.onMouseLeave,m=A.onClick,y=A.onKeyDown,b=A.onKeyUp,v=A.panelRef,k=WQ(J.useState(!1),2),M=k[0],x=k[1],S=WQ(J.useState(!1),2),F=S[0],N=S[1];qE((function(){N(!0)}),[]);var R=!!F&&t,L=J.useRef(),P=J.useRef();qE((function(){R&&(P.current=document.activeElement)}),[R]);var H=J.useMemo((function(){return{panel:v}}),[v]);if(!I&&!M&&!R&&f)return null;var G={onMouseEnter:h,onMouseOver:w,onMouseLeave:D,onClick:m,onKeyDown:y,onKeyUp:b},O=kc(kc({},A),{},{open:R,prefixCls:o,placement:i,autoFocus:s,keyboard:g,width:u,mask:Q,maskClosable:C,inline:!1===d,afterOpenChange:function(A){var e,t;(x(A),null==p||p(A),A||!P.current||null!==(e=L.current)&&void 0!==e&&e.contains(P.current))||(null===(t=P.current)||void 0===t||t.focus({preventScroll:!0}))},ref:L},G);return J.createElement(wG.Provider,{value:H},J.createElement(Sy,{open:R||I||M,autoDestroy:!1,getContainer:d,autoLock:Q&&(R||M)},J.createElement(kG,O)))};const xG=new ad("antSpinMove",{to:{opacity:1}}),SG=new ad("antRotate",{to:{transform:"rotate(405deg)"}}),FG=A=>{const{componentCls:e,calc:t}=A;return{[`${e}`]:Object.assign(Object.assign({},Mf(A)),{position:"absolute",display:"none",color:A.colorPrimary,fontSize:0,textAlign:"center",verticalAlign:"middle",opacity:0,transition:`transform ${A.motionDurationSlow} ${A.motionEaseInOutCirc}`,"&-spinning":{position:"static",display:"inline-block",opacity:1},[`${e}-text`]:{fontSize:A.fontSize,paddingTop:t(t(A.dotSize).sub(A.fontSize)).div(2).add(2).equal()},"&-fullscreen":{position:"fixed",width:"100vw",height:"100vh",backgroundColor:A.colorBgMask,zIndex:A.zIndexPopupBase,inset:0,display:"flex",alignItems:"center",flexDirection:"column",justifyContent:"center",opacity:0,visibility:"hidden",transition:`all ${A.motionDurationMid}`,"&-show":{opacity:1,visibility:"visible"},[`${e}-dot ${e}-dot-item`]:{backgroundColor:A.colorWhite},[`${e}-text`]:{color:A.colorTextLightSolid}},"&-nested-loading":{position:"relative",[`> div > ${e}`]:{position:"absolute",top:0,insetInlineStart:0,zIndex:4,display:"block",width:"100%",height:"100%",maxHeight:A.contentHeight,[`${e}-dot`]:{position:"absolute",top:"50%",insetInlineStart:"50%",margin:t(A.dotSize).mul(-1).div(2).equal()},[`${e}-text`]:{position:"absolute",top:"50%",width:"100%",textShadow:`0 1px 2px ${A.colorBgContainer}`},[`&${e}-show-text ${e}-dot`]:{marginTop:t(A.dotSize).div(2).mul(-1).sub(10).equal()},"&-sm":{[`${e}-dot`]:{margin:t(A.dotSizeSM).mul(-1).div(2).equal()},[`${e}-text`]:{paddingTop:t(t(A.dotSizeSM).sub(A.fontSize)).div(2).add(2).equal()},[`&${e}-show-text ${e}-dot`]:{marginTop:t(A.dotSizeSM).div(2).mul(-1).sub(10).equal()}},"&-lg":{[`${e}-dot`]:{margin:t(A.dotSizeLG).mul(-1).div(2).equal()},[`${e}-text`]:{paddingTop:t(t(A.dotSizeLG).sub(A.fontSize)).div(2).add(2).equal()},[`&${e}-show-text ${e}-dot`]:{marginTop:t(A.dotSizeLG).div(2).mul(-1).sub(10).equal()}}},[`${e}-container`]:{position:"relative",transition:`opacity ${A.motionDurationSlow}`,"&::after":{position:"absolute",top:0,insetInlineEnd:0,bottom:0,insetInlineStart:0,zIndex:10,width:"100%",height:"100%",background:A.colorBgContainer,opacity:0,transition:`all ${A.motionDurationSlow}`,content:'""',pointerEvents:"none"}},[`${e}-blur`]:{clear:"both",opacity:.5,userSelect:"none",pointerEvents:"none","&::after":{opacity:.4,pointerEvents:"auto"}}},"&-tip":{color:A.spinDotDefault},[`${e}-dot`]:{position:"relative",display:"inline-block",fontSize:A.dotSize,width:"1em",height:"1em","&-item":{position:"absolute",display:"block",width:t(A.dotSize).sub(t(A.marginXXS).div(2)).div(2).equal(),height:t(A.dotSize).sub(t(A.marginXXS).div(2)).div(2).equal(),backgroundColor:A.colorPrimary,borderRadius:"100%",transform:"scale(0.75)",transformOrigin:"50% 50%",opacity:.3,animationName:xG,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:SG,animationDuration:"1.2s",animationIterationCount:"infinite",animationTimingFunction:"linear"}},[`&-sm ${e}-dot`]:{fontSize:A.dotSizeSM,i:{width:t(t(A.dotSizeSM).sub(t(A.marginXXS).div(2))).div(2).equal(),height:t(t(A.dotSizeSM).sub(t(A.marginXXS).div(2))).div(2).equal()}},[`&-lg ${e}-dot`]:{fontSize:A.dotSizeLG,i:{width:t(t(A.dotSizeLG).sub(A.marginXXS)).div(2).equal(),height:t(t(A.dotSizeLG).sub(A.marginXXS)).div(2).equal()}},[`&${e}-show-text ${e}-text`]:{display:"block"}})}},NG=jf("Spin",(A=>{const e=Pf(A,{spinDotDefault:A.colorTextDescription});return[FG(e)]}),(A=>{const{controlHeightLG:e,controlHeight:t}=A;return{contentHeight:400,dotSize:e/2,dotSizeSM:.35*e,dotSizeLG:t}}));let RG=null;const LG=A=>{const{prefixCls:e,spinning:t=!0,delay:n=0,className:o,rootClassName:r,size:i="default",tip:a,wrapperClassName:s,style:l,children:g,fullscreen:c=!1}=A,u=function(A,e){var t={};for(var n in A)Object.prototype.hasOwnProperty.call(A,n)&&e.indexOf(n)<0&&(t[n]=A[n]);if(null!=A&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(n=Object.getOwnPropertySymbols(A);ot&&!function(A,e){return!!A&&!!e&&!isNaN(Number(e))}(t,n)));J.useEffect((()=>{if(t){const A=RP(n,(()=>{p(!0)}));return A(),()=>{var e;null===(e=null==A?void 0:A.cancel)||void 0===e||e.call(A)}}p(!1)}),[n,t]);const f=J.useMemo((()=>void 0!==g&&!c),[g,c]),{direction:h,spin:w}=J.useContext(Xp),D=ud(Q,null==w?void 0:w.className,{[`${Q}-sm`]:"small"===i,[`${Q}-lg`]:"large"===i,[`${Q}-spinning`]:I,[`${Q}-show-text`]:!!a,[`${Q}-fullscreen`]:c,[`${Q}-fullscreen-show`]:c&&I,[`${Q}-rtl`]:"rtl"===h},o,r,C,d),m=ud(`${Q}-container`,{[`${Q}-blur`]:I}),y=wI(u,["indicator"]),b=Object.assign(Object.assign({},null==w?void 0:w.style),l),v=J.createElement("div",Object.assign({},y,{style:b,className:D,"aria-live":"polite","aria-busy":I}),function(A,e){const{indicator:t}=e,n=`${A}-dot`;return null===t?null:J.isValidElement(t)?Gw(t,{className:ud(t.props.className,n)}):J.isValidElement(RG)?Gw(RG,{className:ud(RG.props.className,n)}):J.createElement("span",{className:ud(n,`${A}-dot-spin`)},J.createElement("i",{className:`${A}-dot-item`,key:1}),J.createElement("i",{className:`${A}-dot-item`,key:2}),J.createElement("i",{className:`${A}-dot-item`,key:3}),J.createElement("i",{className:`${A}-dot-item`,key:4}))}(Q,A),a&&(f||c)?J.createElement("div",{className:`${Q}-text`},a):null);return E(f?J.createElement("div",Object.assign({},y,{className:ud(`${Q}-nested-loading`,s,C,d)}),I&&J.createElement("div",{key:"loading"},v),J.createElement("div",{className:m,key:"container"},g)):v)};LG.setDefaultIndicator=A=>{RG=A};const PG=A=>{var e,t;const{prefixCls:n,title:o,footer:r,extra:i,loading:a,onClose:s,headerStyle:l,bodyStyle:g,footerStyle:c,children:u,classNames:B,styles:Q}=A,{drawer:E}=J.useContext(Xp),C=J.useCallback((A=>J.createElement("button",{type:"button",onClick:s,"aria-label":"Close",className:`${n}-close`},A)),[s]),[d,I]=_y(qy(A),qy(E),{closable:!0,closeIconRender:C});let p;"boolean"==typeof a?p={spinning:a}:"object"==typeof a&&(p=Object.assign({spinning:!0},a));const f=J.useMemo((()=>{var A,e;return o||d?J.createElement("div",{style:Object.assign(Object.assign(Object.assign({},null===(A=null==E?void 0:E.styles)||void 0===A?void 0:A.header),l),null==Q?void 0:Q.header),className:ud(`${n}-header`,{[`${n}-header-close-only`]:d&&!o&&!i},null===(e=null==E?void 0:E.classNames)||void 0===e?void 0:e.header,null==B?void 0:B.header)},J.createElement("div",{className:`${n}-header-title`},I,o&&J.createElement("div",{className:`${n}-title`},o)),i&&J.createElement("div",{className:`${n}-extra`},i)):null}),[d,I,i,l,n,o]),h=J.useMemo((()=>{var A,e;if(!r)return null;const t=`${n}-footer`;return J.createElement("div",{className:ud(t,null===(A=null==E?void 0:E.classNames)||void 0===A?void 0:A.footer,null==B?void 0:B.footer),style:Object.assign(Object.assign(Object.assign({},null===(e=null==E?void 0:E.styles)||void 0===e?void 0:e.footer),c),null==Q?void 0:Q.footer)},r)}),[r,c,n]);return(null==p?void 0:p.spinning)?J.createElement(LG,Object.assign({spinning:!1,style:{height:"100%",display:"flex",justifyContent:"center",alignItems:"center"}},p)):J.createElement(J.Fragment,null,f,J.createElement("div",{className:ud(`${n}-body`,null==B?void 0:B.body,null===(e=null==E?void 0:E.classNames)||void 0===e?void 0:e.body),style:Object.assign(Object.assign(Object.assign({},null===(t=null==E?void 0:E.styles)||void 0===t?void 0:t.body),g),null==Q?void 0:Q.body)},u),h)},HG=A=>{const e="100%";return{left:`translateX(-${e})`,right:`translateX(${e})`,top:`translateY(-${e})`,bottom:`translateY(${e})`}[A]},GG=(A,e)=>({"&-enter, &-appear":Object.assign(Object.assign({},A),{"&-active":e}),"&-leave":Object.assign(Object.assign({},e),{"&-active":A})}),OG=(A,e)=>Object.assign({"&-enter, &-appear, &-leave":{"&-start":{transition:"none"},"&-active":{transition:`all ${e}`}}},GG({opacity:A},{opacity:1})),UG=(A,e)=>[OG(.7,e),GG({transform:HG(A)},{transform:"none"})],KG=A=>{const{componentCls:e,motionDurationSlow:t}=A;return{[e]:{[`${e}-mask-motion`]:OG(0,t),[`${e}-panel-motion`]:["left","right","top","bottom"].reduce(((A,e)=>Object.assign(Object.assign({},A),{[`&-${e}`]:UG(e,t)})),{})}}},YG=A=>{const{borderRadiusSM:e,componentCls:t,zIndexPopup:n,colorBgMask:o,colorBgElevated:r,motionDurationSlow:i,motionDurationMid:a,paddingXS:s,padding:l,paddingLG:g,fontSizeLG:c,lineHeightLG:u,lineWidth:B,lineType:Q,colorSplit:E,marginXS:C,colorIcon:d,colorIconHover:I,colorBgTextHover:p,colorBgTextActive:f,colorText:h,fontWeightStrong:w,footerPaddingBlock:D,footerPaddingInline:m,calc:y}=A,b=`${t}-content-wrapper`;return{[t]:{position:"fixed",inset:0,zIndex:n,pointerEvents:"none","&-pure":{position:"relative",background:r,display:"flex",flexDirection:"column",[`&${t}-left`]:{boxShadow:A.boxShadowDrawerLeft},[`&${t}-right`]:{boxShadow:A.boxShadowDrawerRight},[`&${t}-top`]:{boxShadow:A.boxShadowDrawerUp},[`&${t}-bottom`]:{boxShadow:A.boxShadowDrawerDown}},"&-inline":{position:"absolute"},[`${t}-mask`]:{position:"absolute",inset:0,zIndex:n,background:o,pointerEvents:"auto"},[b]:{position:"absolute",zIndex:n,maxWidth:"100vw",transition:`all ${i}`,"&-hidden":{display:"none"}},[`&-left > ${b}`]:{top:0,bottom:0,left:{_skip_check_:!0,value:0},boxShadow:A.boxShadowDrawerLeft},[`&-right > ${b}`]:{top:0,right:{_skip_check_:!0,value:0},bottom:0,boxShadow:A.boxShadowDrawerRight},[`&-top > ${b}`]:{top:0,insetInline:0,boxShadow:A.boxShadowDrawerUp},[`&-bottom > ${b}`]:{bottom:0,insetInline:0,boxShadow:A.boxShadowDrawerDown},[`${t}-content`]:{display:"flex",flexDirection:"column",width:"100%",height:"100%",overflow:"auto",background:r,pointerEvents:"auto"},[`${t}-header`]:{display:"flex",flex:0,alignItems:"center",padding:`${UE(l)} ${UE(g)}`,fontSize:c,lineHeight:u,borderBottom:`${UE(B)} ${Q} ${E}`,"&-title":{display:"flex",flex:1,alignItems:"center",minWidth:0,minHeight:0}},[`${t}-extra`]:{flex:"none"},[`${t}-close`]:Object.assign({display:"inline-flex",width:y(c).add(s).equal(),height:y(c).add(s).equal(),borderRadius:e,justifyContent:"center",alignItems:"center",marginInlineEnd:C,color:d,fontWeight:w,fontSize:c,fontStyle:"normal",lineHeight:1,textAlign:"center",textTransform:"none",textDecoration:"none",background:"transparent",border:0,cursor:"pointer",transition:`all ${a}`,textRendering:"auto","&:hover":{color:I,backgroundColor:p,textDecoration:"none"},"&:active":{backgroundColor:f}},Nf(A)),[`${t}-title`]:{flex:1,margin:0,color:h,fontWeight:A.fontWeightStrong,fontSize:c,lineHeight:u},[`${t}-body`]:{flex:1,minWidth:0,minHeight:0,padding:g,overflow:"auto"},[`${t}-footer`]:{flexShrink:0,padding:`${UE(D)} ${UE(m)}`,borderTop:`${UE(B)} ${Q} ${E}`},"&-rtl":{direction:"rtl"}}}},TG=jf("Drawer",(A=>{const e=Pf(A,{});return[YG(e),KG(e)]}),(A=>({zIndexPopup:A.zIndexPopupBase,footerPaddingBlock:A.paddingXS,footerPaddingInline:A.padding})));var JG=function(A,e){var t={};for(var n in A)Object.prototype.hasOwnProperty.call(A,n)&&e.indexOf(n)<0&&(t[n]=A[n]);if(null!=A&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(n=Object.getOwnPropertySymbols(A);o{const{rootClassName:e,width:t,height:n,size:o="default",mask:r=!0,push:i=jG,open:a,afterOpenChange:s,onClose:l,prefixCls:g,getContainer:c,style:u,className:B,visible:Q,afterVisibleChange:E,maskStyle:C,drawerStyle:d,contentWrapperStyle:I}=A,p=JG(A,["rootClassName","width","height","size","mask","push","open","afterOpenChange","onClose","prefixCls","getContainer","style","className","visible","afterVisibleChange","maskStyle","drawerStyle","contentWrapperStyle"]),{getPopupContainer:f,getPrefixCls:h,direction:w,drawer:D}=J.useContext(Xp),m=h("drawer",g),[y,b,v]=TG(m),k=void 0===c&&f?()=>f(document.body):c,M=ud({"no-mask":!r,[`${m}-rtl`]:"rtl"===w},e,b,v),x=J.useMemo((()=>null!=t?t:"large"===o?736:378),[t,o]),S=J.useMemo((()=>null!=n?n:"large"===o?736:378),[n,o]),F={motionName:rm(m,"mask-motion"),motionAppear:!0,motionEnter:!0,motionLeave:!0,motionDeadline:500},N=Ev(),[R,L]=mD("Drawer",p.zIndex),{classNames:P={},styles:H={}}=p,{classNames:G={},styles:O={}}=D||{};return y(J.createElement(mm,null,J.createElement(cv,{status:!0,override:!0},J.createElement(pD.Provider,{value:L},J.createElement(MG,Object.assign({prefixCls:m,onClose:l,maskMotion:F,motion:A=>({motionName:rm(m,`panel-motion-${A}`),motionAppear:!0,motionEnter:!0,motionLeave:!0,motionDeadline:500})},p,{classNames:{mask:ud(P.mask,G.mask),content:ud(P.content,G.content),wrapper:ud(P.wrapper,G.wrapper)},styles:{mask:Object.assign(Object.assign(Object.assign({},H.mask),C),O.mask),content:Object.assign(Object.assign(Object.assign({},H.content),d),O.content),wrapper:Object.assign(Object.assign(Object.assign({},H.wrapper),I),O.wrapper)},open:null!=a?a:Q,mask:r,push:i,width:x,height:S,style:Object.assign(Object.assign({},null==D?void 0:D.style),u),className:ud(null==D?void 0:D.className,B),rootClassName:M,getContainer:k,afterOpenChange:null!=s?s:E,panelRef:N,zIndex:R}),J.createElement(PG,Object.assign({prefixCls:m},p,{onClose:l})))))))};function $G(A){return["small","middle","large"].includes(A)}function zG(A){return!!A&&("number"==typeof A&&!Number.isNaN(A))}qG._InternalPanelDoNotUseOrYouWillBeFired=A=>{const{prefixCls:e,style:t,className:n,placement:o="right"}=A,r=JG(A,["prefixCls","style","className","placement"]),{getPrefixCls:i}=J.useContext(Xp),a=i("drawer",e),[s,l,g]=TG(a),c=ud(a,`${a}-pure`,`${a}-${o}`,l,g,n);return s(J.createElement("div",{className:c,style:t},J.createElement(PG,Object.assign({prefixCls:a},r))))};const WG=j.createContext({latestIndex:0}),_G=WG.Provider,XG=A=>{let{className:e,index:t,children:n,split:o,style:r}=A;const{latestIndex:i}=J.useContext(WG);return null==n?null:J.createElement(J.Fragment,null,J.createElement("div",{className:e,style:r},n),t{var t,n;const{getPrefixCls:o,space:r,direction:i}=J.useContext(Xp),{size:a=(null==r?void 0:r.size)||"small",align:s,className:l,rootClassName:g,children:c,direction:u="horizontal",prefixCls:B,split:Q,style:E,wrap:C=!1,classNames:d,styles:I}=A,p=function(A,e){var t={};for(var n in A)Object.prototype.hasOwnProperty.call(A,n)&&e.indexOf(n)<0&&(t[n]=A[n]);if(null!=A&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(n=Object.getOwnPropertySymbols(A);o{var t,n;null!=A&&(R=e);const o=A&&A.key||`${N}-${e}`;return J.createElement(XG,{className:N,key:o,index:e,split:Q,style:null!==(t=null==I?void 0:I.item)&&void 0!==t?t:null===(n=null==r?void 0:r.styles)||void 0===n?void 0:n.item},A)})),P=J.useMemo((()=>({latestIndex:R})),[R]);if(0===b.length)return null;const H={};return C&&(H.flexWrap="wrap"),!D&&y&&(H.columnGap=f),!w&&m&&(H.rowGap=h),M(J.createElement("div",Object.assign({ref:e,className:F,style:Object.assign(Object.assign(Object.assign({},H),null==r?void 0:r.style),E)},p),J.createElement(_G,{value:P},L)))})),ZG=VG;function AO(A){const[e,t]=J.useState(A);return J.useEffect((()=>{const e=setTimeout((()=>{t(A)}),A.length?0:10);return()=>{clearTimeout(e)}}),[A]),e}ZG.Compact=A=>{const{getPrefixCls:e,direction:t}=J.useContext(Xp),{size:n,direction:o,block:r,prefixCls:i,className:a,rootClassName:s,children:l}=A,g=hm(A,["size","direction","block","prefixCls","className","rootClassName","children"]),c=Cm((A=>null!=n?n:A)),u=e("space-compact",i),[B,Q]=fm(u),E=ud(u,Q,{[`${u}-rtl`]:"rtl"===t,[`${u}-block`]:r,[`${u}-vertical`]:"vertical"===o},a,s),C=J.useContext(wm),d=Fd(l),I=J.useMemo((()=>d.map(((A,e)=>{const t=A&&A.key||`${u}-item-${e}`;return J.createElement(ym,{key:t,compactSize:c,compactDirection:o,isFirstItem:0===e&&(!C||(null==C?void 0:C.isFirstItem)),isLastItem:e===d.length-1&&(!C||(null==C?void 0:C.isLastItem))},A)}))),[n,d,C]);return 0===d.length?null:B(J.createElement("div",Object.assign({className:E},g),I))};const eO=A=>{const{componentCls:e}=A,t=`${e}-show-help`,n=`${e}-show-help-item`;return{[t]:{transition:`opacity ${A.motionDurationSlow} ${A.motionEaseInOut}`,"&-appear, &-enter":{opacity:0,"&-active":{opacity:1}},"&-leave":{opacity:1,"&-active":{opacity:0}},[n]:{overflow:"hidden",transition:`height ${A.motionDurationSlow} ${A.motionEaseInOut},\n opacity ${A.motionDurationSlow} ${A.motionEaseInOut},\n transform ${A.motionDurationSlow} ${A.motionEaseInOut} !important`,[`&${n}-appear, &${n}-enter`]:{transform:"translateY(-5px)",opacity:0,"&-active":{transform:"translateY(0)",opacity:1}},[`&${n}-leave-active`]:{transform:"translateY(-5px)"}}}}},tO=A=>({legend:{display:"block",width:"100%",marginBottom:A.marginLG,padding:0,color:A.colorTextDescription,fontSize:A.fontSizeLG,lineHeight:"inherit",border:0,borderBottom:`${UE(A.lineWidth)} ${A.lineType} ${A.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 ${UE(A.controlOutlineWidth)} ${A.controlOutline}`},output:{display:"block",paddingTop:15,color:A.colorText,fontSize:A.fontSize,lineHeight:A.lineHeight}}),nO=(A,e)=>{const{formItemCls:t}=A;return{[t]:{[`${t}-label > label`]:{height:e},[`${t}-control-input`]:{minHeight:e}}}},oO=A=>{const{componentCls:e}=A;return{[A.componentCls]:Object.assign(Object.assign(Object.assign({},Mf(A)),tO(A)),{[`${e}-text`]:{display:"inline-block",paddingInlineEnd:A.paddingSM},"&-small":Object.assign({},nO(A,A.controlHeightSM)),"&-large":Object.assign({},nO(A,A.controlHeightLG))})}},rO=A=>{const{formItemCls:e,iconCls:t,componentCls:n,rootPrefixCls:o,labelRequiredMarkColor:r,labelColor:i,labelFontSize:a,labelHeight:s,labelColonMarginInlineStart:l,labelColonMarginInlineEnd:g,itemMarginBottom:c}=A;return{[e]:Object.assign(Object.assign({},Mf(A)),{marginBottom:c,verticalAlign:"top","&-with-help":{transition:"none"},[`&-hidden,\n &-hidden.${o}-row`]:{display:"none"},"&-has-warning":{[`${e}-split`]:{color:A.colorError}},"&-has-error":{[`${e}-split`]:{color:A.colorWarning}},[`${e}-label`]:{flexGrow:0,overflow:"hidden",whiteSpace:"nowrap",textAlign:"end",verticalAlign:"middle","&-left":{textAlign:"start"},"&-wrap":{overflow:"unset",lineHeight:A.lineHeight,whiteSpace:"unset"},"> label":{position:"relative",display:"inline-flex",alignItems:"center",maxWidth:"100%",height:s,color:i,fontSize:a,[`> ${t}`]:{fontSize:A.fontSize,verticalAlign:"top"},[`&${e}-required:not(${e}-required-mark-optional)::before`]:{display:"inline-block",marginInlineEnd:A.marginXXS,color:r,fontSize:A.fontSize,fontFamily:"SimSun, sans-serif",lineHeight:1,content:'"*"',[`${n}-hide-required-mark &`]:{display:"none"}},[`${e}-optional`]:{display:"inline-block",marginInlineStart:A.marginXXS,color:A.colorTextDescription,[`${n}-hide-required-mark &`]:{display:"none"}},[`${e}-tooltip`]:{color:A.colorTextDescription,cursor:"help",writingMode:"horizontal-tb",marginInlineStart:A.marginXXS},"&::after":{content:'":"',position:"relative",marginBlock:0,marginInlineStart:l,marginInlineEnd:g},[`&${e}-no-colon::after`]:{content:'"\\a0"'}}},[`${e}-control`]:{"--ant-display":"flex",flexDirection:"column",flexGrow:1,[`&:first-child:not([class^="'${o}-col-'"]):not([class*="' ${o}-col-'"])`]:{width:"100%"},"&-input":{position:"relative",display:"flex",alignItems:"center",minHeight:A.controlHeight,"&-content":{flex:"auto",maxWidth:"100%"}}},[e]:{"&-explain, &-extra":{clear:"both",color:A.colorTextDescription,fontSize:A.fontSize,lineHeight:A.lineHeight},"&-explain-connected":{width:"100%"},"&-extra":{minHeight:A.controlHeightSM,transition:`color ${A.motionDurationMid} ${A.motionEaseOut}`},"&-explain":{"&-error":{color:A.colorError},"&-warning":{color:A.colorWarning}}},[`&-with-help ${e}-explain`]:{height:"auto",opacity:1},[`${e}-feedback-icon`]:{fontSize:A.fontSize,textAlign:"center",visibility:"visible",animationName:jv,animationDuration:A.motionDurationMid,animationTimingFunction:A.motionEaseOutBack,pointerEvents:"none","&-success":{color:A.colorSuccess},"&-error":{color:A.colorError},"&-warning":{color:A.colorWarning},"&-validating":{color:A.colorPrimary}}})}},iO=A=>{const{componentCls:e,formItemCls:t}=A;return{[`${e}-horizontal`]:{[`${t}-label`]:{flexGrow:0},[`${t}-control`]:{flex:"1 1 0",minWidth:0},[`${t}-label[class$='-24'], ${t}-label[class*='-24 ']`]:{[`& + ${t}-control`]:{minWidth:"unset"}}}}},aO=A=>{const{componentCls:e,formItemCls:t,inlineItemMarginBottom:n}=A;return{[`${e}-inline`]:{display:"flex",flexWrap:"wrap",[t]:{flex:"none",marginInlineEnd:A.margin,marginBottom:n,"&-row":{flexWrap:"nowrap"},[`> ${t}-label,\n > ${t}-control`]:{display:"inline-block",verticalAlign:"top"},[`> ${t}-label`]:{flex:"none"},[`${e}-text`]:{display:"inline-block"},[`${t}-has-feedback`]:{display:"inline-block"}}}}},sO=A=>({padding:A.verticalLabelPadding,margin:A.verticalLabelMargin,whiteSpace:"initial",textAlign:"start","> label":{margin:0,"&::after":{visibility:"hidden"}}}),lO=A=>{const{componentCls:e,formItemCls:t,rootPrefixCls:n}=A;return{[`${t} ${t}-label`]:sO(A),[`${e}:not(${e}-inline)`]:{[t]:{flexWrap:"wrap",[`${t}-label, ${t}-control`]:{[`&:not([class*=" ${n}-col-xs"])`]:{flex:"0 0 100%",maxWidth:"100%"}}}}}},gO=A=>{const{componentCls:e,formItemCls:t,rootPrefixCls:n}=A;return{[`${e}-vertical`]:{[t]:{"&-row":{flexDirection:"column"},"&-label > label":{height:"auto"},[`${e}-item-control`]:{width:"100%"}}},[`${e}-vertical ${t}-label,\n .${n}-col-24${t}-label,\n .${n}-col-xl-24${t}-label`]:sO(A),[`@media (max-width: ${UE(A.screenXSMax)})`]:[lO(A),{[e]:{[`.${n}-col-xs-24${t}-label`]:sO(A)}}],[`@media (max-width: ${UE(A.screenSMMax)})`]:{[e]:{[`.${n}-col-sm-24${t}-label`]:sO(A)}},[`@media (max-width: ${UE(A.screenMDMax)})`]:{[e]:{[`.${n}-col-md-24${t}-label`]:sO(A)}},[`@media (max-width: ${UE(A.screenLGMax)})`]:{[e]:{[`.${n}-col-lg-24${t}-label`]:sO(A)}}}},cO=(A,e)=>Pf(A,{formItemCls:`${A.componentCls}-item`,rootPrefixCls:e}),uO=jf("Form",((A,e)=>{let{rootPrefixCls:t}=e;const n=cO(A,t);return[oO(n),rO(n),eO(n),iO(n),aO(n),gO(n),fv(n),jv]}),(A=>({labelRequiredMarkColor:A.colorError,labelColor:A.colorTextHeading,labelFontSize:A.fontSize,labelHeight:A.controlHeight,labelColonMarginInlineStart:A.marginXXS/2,labelColonMarginInlineEnd:A.marginXS,itemMarginBottom:A.marginLG,verticalLabelPadding:`0 0 ${A.paddingXS}px`,verticalLabelMargin:0,inlineItemMarginBottom:0})),{order:-1e3}),BO=[];function QO(A,e,t){return{key:"string"==typeof A?A:`${e}-${arguments.length>3&&void 0!==arguments[3]?arguments[3]:0}`,error:A,errorStatus:t}}const EO=A=>{let{help:e,helpStatus:t,errors:n=BO,warnings:o=BO,className:r,fieldId:i,onVisibleChanged:a}=A;const{prefixCls:s}=J.useContext(lv),l=`${s}-item-explain`,g=oD(s),[c,u,B]=uO(s,g),Q=J.useMemo((()=>om(s)),[s]),E=AO(n),C=AO(o),d=J.useMemo((()=>null!=e?[QO(e,"help",t)]:[].concat(XQ(E.map(((A,e)=>QO(A,"error","error",e)))),XQ(C.map(((A,e)=>QO(A,"warning","warning",e)))))),[e,t,E,C]),I={};return i&&(I.id=`${i}_help`),c(J.createElement(Nh,{motionDeadline:Q.motionDeadline,motionName:`${s}-show-help`,visible:!!d.length,onVisibleChanged:a},(A=>{const{className:e,style:t}=A;return J.createElement("div",Object.assign({},I,{className:ud(l,e,B,g,r,u),style:t,role:"alert"}),J.createElement(Th,Object.assign({keys:d},om(s),{motionName:`${s}-show-help-item`,component:!1}),(A=>{const{key:e,error:t,errorStatus:n,className:o,style:r}=A;return J.createElement("div",{key:e,className:ud(o,{[`${l}-${n}`]:n}),style:r},t)})))})))},CO=["parentNode"],dO="form_item";function IO(A){return void 0===A||!1===A?[]:Array.isArray(A)?A:[A]}function pO(A,e){if(!A.length)return;const t=A.join("_");if(e)return`${e}_${t}`;return CO.includes(t)?`${dO}_${t}`:t}function fO(A,e,t,n,o,r){let i=n;return void 0!==r?i=r:t.validating?i="validating":A.length?i="error":e.length?i="warning":(t.touched||o&&t.validated)&&(i="success"),i}function hO(A){return IO(A).join("_")}function wO(A){const[e]=Vb(),t=J.useRef({}),n=J.useMemo((()=>null!=A?A:Object.assign(Object.assign({},e),{__INTERNAL__:{itemRef:A=>e=>{const n=hO(A);e?t.current[n]=e:delete t.current[n]}},scrollToField:function(A){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const t=function(A,e){const t=e.getFieldInstance(A);if(t instanceof HTMLElement)return t;if((null==t?void 0:t.nativeElement)instanceof HTMLElement)return t.nativeElement;const n=pO(IO(A),e.__INTERNAL__.name);return n?document.getElementById(n):void 0}(A,n);t&&function(A,e){if(!A.isConnected||!(A=>{let e=A;for(;e&&e.parentNode;){if(e.parentNode===document)return!0;e=e.parentNode instanceof ShadowRoot?e.parentNode.host:e.parentNode}return!1})(A))return;const t=(A=>{const e=window.getComputedStyle(A);return{top:parseFloat(e.scrollMarginTop)||0,right:parseFloat(e.scrollMarginRight)||0,bottom:parseFloat(e.scrollMarginBottom)||0,left:parseFloat(e.scrollMarginLeft)||0}})(A);if("object"==typeof(n=e)&&"function"==typeof n.behavior)return e.behavior(tD(A,e));var n;const o="boolean"==typeof e||null==e?void 0:e.behavior;for(const{el:r,top:i,left:a}of tD(A,nD(e))){const A=i-t.top+t.bottom,e=a-t.left+t.right;r.scroll({top:A,left:e,behavior:o})}}(t,Object.assign({scrollMode:"if-needed",block:"nearest"},e))},getFieldInstance:A=>{const e=hO(A);return t.current[e]}})),[A,e]);return[n]}const DO=(A,e)=>{const t=J.useContext(Af),{getPrefixCls:n,direction:o,form:r}=J.useContext(Xp),{prefixCls:i,className:a,rootClassName:s,size:l,disabled:g=t,form:c,colon:u,labelAlign:B,labelWrap:Q,labelCol:E,wrapperCol:C,hideRequiredMark:d,layout:I="horizontal",scrollToFirstError:p,requiredMark:f,onFinishFailed:h,name:w,style:D,feedbackIcons:m,variant:y}=A,b=function(A,e){var t={};for(var n in A)Object.prototype.hasOwnProperty.call(A,n)&&e.indexOf(n)<0&&(t[n]=A[n]);if(null!=A&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(n=Object.getOwnPropertySymbols(A);ovoid 0!==f?f:!d&&(!r||void 0===r.requiredMark||r.requiredMark)),[d,f,r]),x=null!=u?u:null==r?void 0:r.colon,S=n("form",i),F=oD(S),[N,R,L]=uO(S,F),P=ud(S,`${S}-${I}`,{[`${S}-hide-required-mark`]:!1===M,[`${S}-rtl`]:"rtl"===o,[`${S}-${v}`]:v},L,F,R,null==r?void 0:r.className,a,s),[H]=wO(c),{__INTERNAL__:G}=H;G.name=w;const O=J.useMemo((()=>({name:w,labelAlign:B,labelCol:E,labelWrap:Q,wrapperCol:C,vertical:"vertical"===I,colon:x,requiredMark:M,itemRef:G.itemRef,form:H,feedbackIcons:m})),[w,B,E,C,I,x,M,H,m]);J.useImperativeHandle(e,(()=>H));const U=(A,e)=>{if(A){let t={block:"nearest"};"object"==typeof A&&(t=A),H.scrollToField(e,t)}};return N(J.createElement(uv.Provider,{value:y},J.createElement(ef,{disabled:g},J.createElement(tf.Provider,{value:v},J.createElement(sv,{validateMessages:k},J.createElement(iv.Provider,{value:O},J.createElement(rv,Object.assign({id:w},b,{name:w,onFinishFailed:A=>{if(null==h||h(A),A.errorFields.length){const e=A.errorFields[0].name;if(void 0!==p)return void U(p,e);r&&void 0!==r.scrollToFirstError&&U(r.scrollToFirstError,e)}},form:H,style:Object.assign(Object.assign({},null==r?void 0:r.style),D),className:P}))))))))},mO=J.forwardRef(DO);const yO=()=>{const{status:A,errors:e=[],warnings:t=[]}=J.useContext(gv);return{status:A,errors:e,warnings:t}};yO.Context=gv;const bO=A=>{const{formItemCls:e}=A;return{"@media screen and (-ms-high-contrast: active), (-ms-high-contrast: none)":{[`${e}-control`]:{display:"flex"}}}},vO=Tf(["Form","item-item"],((A,e)=>{let{rootPrefixCls:t}=e;const n=cO(A,t);return[bO(n)]})),kO=A=>{const{prefixCls:e,status:t,wrapperCol:n,children:o,errors:r,warnings:i,_internalItemRender:a,extra:s,help:l,fieldId:g,marginBottom:c,onErrorVisibleChanged:u}=A,B=`${e}-item`,Q=J.useContext(iv),E=n||Q.wrapperCol||{},C=ud(`${B}-control`,E.className),d=J.useMemo((()=>Object.assign({},Q)),[Q]);delete d.labelCol,delete d.wrapperCol;const I=J.createElement("div",{className:`${B}-control-input`},J.createElement("div",{className:`${B}-control-input-content`},o)),p=J.useMemo((()=>({prefixCls:e,status:t})),[e,t]),f=null!==c||r.length||i.length?J.createElement("div",{style:{display:"flex",flexWrap:"nowrap"}},J.createElement(lv.Provider,{value:p},J.createElement(EO,{fieldId:g,errors:r,warnings:i,help:l,helpStatus:t,className:`${B}-explain-connected`,onVisibleChanged:u})),!!c&&J.createElement("div",{style:{width:0,height:c}})):null,h={};g&&(h.id=`${g}_extra`);const w=s?J.createElement("div",Object.assign({},h,{className:`${B}-extra`}),s):null,D=a&&"pro_table_render"===a.mark&&a.render?a.render(A,{input:I,errorList:f,extra:w}):J.createElement(J.Fragment,null,I,f,w);return J.createElement(iv.Provider,{value:d},J.createElement(YP,Object.assign({},E,{className:C}),D),J.createElement(vO,{prefixCls:e}))};var MO={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"},xO=function(A,e){return J.createElement(Cw,BQ({},A,{ref:e,icon:MO}))},SO=J.forwardRef(xO);const FO=A=>{let{prefixCls:e,label:t,htmlFor:n,labelCol:o,labelAlign:r,colon:i,required:a,requiredMark:s,tooltip:l}=A;var g;const[c]=_I("Form"),{vertical:u,labelAlign:B,labelCol:Q,labelWrap:E,colon:C}=J.useContext(iv);if(!t)return null;const d=o||Q||{},I=`${e}-item-label`,p=ud(I,"left"===(r||B)&&`${I}-left`,d.className,{[`${I}-wrap`]:!!E});let f=t;const h=!0===i||!1!==C&&!1!==i;h&&!u&&"string"==typeof t&&""!==t.trim()&&(f=t.replace(/[:|๏ผš]\s*$/,""));const w=function(A){return A?"object"!=typeof A||J.isValidElement(A)?{title:A}:A:null}(l);if(w){const{icon:A=J.createElement(SO,null)}=w,t=function(A,e){var t={};for(var n in A)Object.prototype.hasOwnProperty.call(A,n)&&e.indexOf(n)<0&&(t[n]=A[n]);if(null!=A&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(n=Object.getOwnPropertySymbols(A);o{A.preventDefault()},tabIndex:null}));f=J.createElement(J.Fragment,null,f,n)}const D="optional"===s,m="function"==typeof s;m?f=s(f,{required:!!a}):D&&!a&&(f=J.createElement(J.Fragment,null,f,J.createElement("span",{className:`${e}-item-optional`,title:""},(null==c?void 0:c.optional)||(null===(g=JI.Form)||void 0===g?void 0:g.optional))));const y=ud({[`${e}-item-required`]:a,[`${e}-item-required-mark-optional`]:D||m,[`${e}-item-no-colon`]:!h});return J.createElement(YP,Object.assign({},d,{className:p}),J.createElement("label",{htmlFor:n,className:y,title:"string"==typeof t?t:""},f))},NO={success:Iw,warning:vw,error:hw,validating:ID};function RO(A){let{children:e,errors:t,warnings:n,hasFeedback:o,validateStatus:r,prefixCls:i,meta:a,noStyle:s}=A;const l=`${i}-item`,{feedbackIcons:g}=J.useContext(iv),c=fO(t,n,a,null,!!o,r),{isFormItemInput:u,status:B,hasFeedback:Q,feedbackIcon:E}=J.useContext(gv),C=J.useMemo((()=>{var A;let e;if(o){const r=!0!==o&&o.icons||g,i=c&&(null===(A=null==r?void 0:r({status:c,errors:t,warnings:n}))||void 0===A?void 0:A[c]),a=c&&NO[c];e=!1!==i&&a?J.createElement("span",{className:ud(`${l}-feedback-icon`,`${l}-feedback-icon-${c}`)},i||J.createElement(a,null)):null}const r={status:c||"",errors:t,warnings:n,hasFeedback:!!o,feedbackIcon:e,isFormItemInput:!0};return s&&(r.status=(null!=c?c:B)||"",r.isFormItemInput=u,r.hasFeedback=!!(null!=o?o:Q),r.feedbackIcon=void 0!==o?r.feedbackIcon:E),r}),[c,o,s,u,B]);return J.createElement(gv.Provider,{value:C},e)}var LO=function(A,e){var t={};for(var n in A)Object.prototype.hasOwnProperty.call(A,n)&&e.indexOf(n)<0&&(t[n]=A[n]);if(null!=A&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(n=Object.getOwnPropertySymbols(A);o{if(m&&f.current){const A=getComputedStyle(f.current);v(parseInt(A.marginBottom,10))}}),[m,y]);const k=function(){let A=arguments.length>0&&void 0!==arguments[0]&&arguments[0];return fO(A?h:l.errors,A?w:l.warnings,l,"",!!g,s)}(),M=ud(I,t,n,{[`${I}-with-help`]:D||h.length||w.length,[`${I}-has-feedback`]:k&&g,[`${I}-has-success`]:"success"===k,[`${I}-has-warning`]:"warning"===k,[`${I}-has-error`]:"error"===k,[`${I}-is-validating`]:"validating"===k,[`${I}-hidden`]:c});return J.createElement("div",{className:M,style:o,ref:f},J.createElement(JP,Object.assign({className:`${I}-row`},wI(d,["_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"])),J.createElement(FO,Object.assign({htmlFor:B},A,{requiredMark:p,required:null!=Q?Q:E,prefixCls:e})),J.createElement(kO,Object.assign({},A,l,{errors:h,warnings:w,prefixCls:e,status:k,help:r,marginBottom:b,onErrorVisibleChanged:A=>{A||v(null)}}),J.createElement(av.Provider,{value:C},J.createElement(RO,{prefixCls:e,meta:l,errors:l.errors,warnings:l.warnings,hasFeedback:g,validateStatus:k},u)))),!!b&&J.createElement("div",{className:`${I}-margin-offset`,style:{marginBottom:-b}}))}const HO=J.memo((A=>{let{children:e}=A;return e}),((A,e)=>function(A,e){const t=Object.keys(A),n=Object.keys(e);return t.length===n.length&&t.every((t=>{const n=A[t],o=e[t];return n===o||"function"==typeof n||"function"==typeof o}))}(A.control,e.control)&&A.update===e.update&&A.childProps.length===e.childProps.length&&A.childProps.every(((A,t)=>A===e.childProps[t]))));const GO=function(A){const{name:e,noStyle:t,className:n,dependencies:o,prefixCls:r,shouldUpdate:i,rules:a,children:s,required:l,label:g,messageVariables:c,trigger:u="onChange",validateTrigger:B,hidden:Q,help:E}=A,{getPrefixCls:C}=J.useContext(Xp),{name:d}=J.useContext(iv),I=function(A){if("function"==typeof A)return A;const e=Fd(A);return e.length<=1?e[0]:e}(s),p="function"==typeof I,f=J.useContext(av),{validateTrigger:h}=J.useContext(Zy),w=void 0!==B?B:h,D=!(null==e),m=C("form",r),y=oD(m),[b,v,k]=uO(m,y);OI();const M=J.useContext(Ab),x=J.useRef(),[S,F]=function(A){const[e,t]=J.useState(A),n=J.useRef(null),o=J.useRef([]),r=J.useRef(!1);return J.useEffect((()=>(r.current=!1,()=>{r.current=!0,kI.cancel(n.current),n.current=null})),[]),[e,function(A){r.current||(null===n.current&&(o.current=[],n.current=kI((()=>{n.current=null,t((A=>{let e=A;return o.current.forEach((A=>{e=A(e)})),e}))}))),o.current.push(A))}]}({}),[N,R]=yf((()=>({errors:[],warnings:[],touched:!1,validating:!1,name:[],validated:!1}))),L=(A,e)=>{F((t=>{const n=Object.assign({},t),o=[].concat(XQ(A.name.slice(0,-1)),XQ(e)).join("__SPLIT__");return A.destroy?delete n[o]:n[o]=A,n}))},[P,H]=J.useMemo((()=>{const A=XQ(N.errors),e=XQ(N.warnings);return Object.values(S).forEach((t=>{A.push.apply(A,XQ(t.errors||[])),e.push.apply(e,XQ(t.warnings||[]))})),[A,e]}),[S,N.errors,N.warnings]),G=function(){const{itemRef:A}=J.useContext(iv),e=J.useRef({});return function(t,n){const o=n&&"object"==typeof n&&n.ref,r=t.join("_");return e.current.name===r&&e.current.originRef===o||(e.current.name=r,e.current.originRef=o,e.current.ref=Pd(A(t),o)),e.current.ref}}();function O(e,o,r){return t&&!Q?J.createElement(RO,{prefixCls:m,hasFeedback:A.hasFeedback,validateStatus:A.validateStatus,meta:N,errors:P,warnings:H,noStyle:!0},e):J.createElement(PO,Object.assign({key:"row"},A,{className:ud(n,k,y,v),prefixCls:m,fieldId:o,isRequired:r,errors:P,warnings:H,meta:N,onSubItemMetaChange:L}),e)}if(!D&&!p&&!o)return b(O(I));let U={};return"string"==typeof g?U.label=g:e&&(U.label=String(e)),c&&(U=Object.assign(Object.assign({},U),c)),b(J.createElement(jb,Object.assign({},A,{messageVariables:U,trigger:u,validateTrigger:w,onMetaChange:A=>{const e=null==M?void 0:M.getKey(A.name);if(R(A.destroy?{errors:[],warnings:[],touched:!1,validating:!1,name:[],validated:!1}:A,!0),t&&!1!==E&&f){let t=A.name;if(A.destroy)t=x.current||t;else if(void 0!==e){const[A,n]=e;t=[A].concat(XQ(n)),x.current=t}f(A,t)}}}),((t,n,r)=>{const s=IO(e).length&&n?n.name:[],g=pO(s,d),c=void 0!==l?l:!(!a||!a.some((A=>{if(A&&"object"==typeof A&&A.required&&!A.warningOnly)return!0;if("function"==typeof A){const e=A(r);return e&&e.required&&!e.warningOnly}return!1}))),B=Object.assign({},t);let Q=null;if(Array.isArray(I)&&D)Q=I;else if(p&&(!i&&!o||D));else if(!o||p||D)if(J.isValidElement(I)){const e=Object.assign(Object.assign({},I.props),B);if(e.id||(e.id=g),E||P.length>0||H.length>0||A.extra){const t=[];(E||P.length>0)&&t.push(`${g}_help`),A.extra&&t.push(`${g}_extra`),e["aria-describedby"]=t.join(" ")}P.length>0&&(e["aria-invalid"]="true"),c&&(e["aria-required"]="true"),Gd(I)&&(e.ref=G(s,I));new Set([].concat(XQ(IO(u)),XQ(IO(w)))).forEach((A=>{e[A]=function(){for(var e,t,n,o,r,i=arguments.length,a=new Array(i),s=0;s{var{prefixCls:e,children:t}=A,n=function(A,e){var t={};for(var n in A)Object.prototype.hasOwnProperty.call(A,n)&&e.indexOf(n)<0&&(t[n]=A[n]);if(null!=A&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(n=Object.getOwnPropertySymbols(A);o({prefixCls:r,status:"error"})),[r]);return J.createElement(qb,Object.assign({},n),((A,e,n)=>J.createElement(lv.Provider,{value:i},t(A.map((A=>Object.assign(Object.assign({},A),{fieldKey:A.key}))),e,{errors:n.errors,warnings:n.warnings}))))},OO.ErrorList=EO,OO.useForm=wO,OO.useFormInstance=function(){const{form:A}=J.useContext(iv);return A},OO.useWatch=ov,OO.Provider=sv,OO.create=()=>{};let UO=null,KO=A=>A(),YO=[],TO={};function JO(){const{getContainer:A,duration:e,rtl:t,maxCount:n,top:o}=TO,r=(null==A?void 0:A())||document.body;return{getContainer:()=>r,duration:e,rtl:t,maxCount:n,top:o}}const jO=j.forwardRef(((A,e)=>{const{messageConfig:t,sync:n}=A,{getPrefixCls:o}=J.useContext(Xp),r=TO.prefixCls||o("message"),i=J.useContext(nM),[a,s]=PD(Object.assign(Object.assign(Object.assign({},t),{prefixCls:r}),i.message));return j.useImperativeHandle(e,(()=>{const A=Object.assign({},a);return Object.keys(A).forEach((e=>{A[e]=function(){return n(),a[e].apply(a,arguments)}})),{instance:A,sync:n}})),s})),qO=j.forwardRef(((A,e)=>{const[t,n]=j.useState(JO),o=()=>{n(JO)};j.useEffect(o,[]);const r=Zh(),i=r.getRootPrefixCls(),a=r.getIconPrefixCls(),s=r.getTheme(),l=j.createElement(jO,{ref:e,sync:o,messageConfig:t});return j.createElement(tw,{prefixCls:i,iconPrefixCls:a,theme:s},r.holderRender?r.holderRender(l):l)}));function $O(){if(!UO){const A=document.createDocumentFragment(),e={fragment:A};return UO=e,void KO((()=>{zD(j.createElement(qO,{ref:A=>{const{instance:t,sync:n}=A||{};Promise.resolve().then((()=>{!e.instance&&t&&(e.instance=t,e.sync=n,$O())}))}}),A)}))}UO.instance&&(YO.forEach((A=>{const{type:e,skipped:t}=A;if(!t)switch(e){case"open":KO((()=>{const e=UO.instance.open(Object.assign(Object.assign({},TO),A.config));null==e||e.then(A.resolve),A.setCloseFn(e)}));break;case"destroy":KO((()=>{null==UO||UO.instance.destroy(A.key)}));break;default:KO((()=>{var t;const n=(t=UO.instance)[e].apply(t,XQ(A.args));null==n||n.then(A.resolve),A.setCloseFn(n)}))}})),YO=[])}const zO={open:function(A){const e=MD((e=>{let t;const n={type:"open",config:A,resolve:e,setCloseFn:A=>{t=A}};return YO.push(n),()=>{t?KO((()=>{t()})):n.skipped=!0}}));return $O(),e},destroy:A=>{YO.push({type:"destroy",key:A}),$O()},config:function(A){TO=Object.assign(Object.assign({},TO),A),KO((()=>{var A;null===(A=null==UO?void 0:UO.sync)||void 0===A||A.call(UO)}))},useMessage:HD,_InternalPanelDoNotUseOrYouWillBeFired:A=>{const{prefixCls:e,className:t,type:n,icon:o,content:r}=A,i=function(A,e){var t={};for(var n in A)Object.prototype.hasOwnProperty.call(A,n)&&e.indexOf(n)<0&&(t[n]=A[n]);if(null!=A&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(n=Object.getOwnPropertySymbols(A);o{WO[A]=function(){for(var e=arguments.length,t=new Array(e),n=0;n{let n;const o={type:A,args:e,resolve:t,setCloseFn:A=>{n=A}};return YO.push(o),()=>{n?KO((()=>{n()})):o.skipped=!0}}));return $O(),t}(A,t)}}));const _O=aM((A=>{const{prefixCls:e,className:t,closeIcon:n,closable:o,type:r,title:i,children:a,footer:s}=A,l=function(A,e){var t={};for(var n in A)Object.prototype.hasOwnProperty.call(A,n)&&e.indexOf(n)<0&&(t[n]=A[n]);if(null!=A&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(n=Object.getOwnPropertySymbols(A);oA(),eU=[],tU={};function nU(){const{getContainer:A,rtl:e,maxCount:t,top:n,bottom:o}=tU,r=(null==A?void 0:A())||document.body;return{getContainer:()=>r,rtl:e,maxCount:t,top:n,bottom:o}}const oU=j.forwardRef(((A,e)=>{const{notificationConfig:t,sync:n}=A,{getPrefixCls:o}=J.useContext(Xp),r=tU.prefixCls||o("notification"),i=J.useContext(nM),[a,s]=eM(Object.assign(Object.assign(Object.assign({},t),{prefixCls:r}),i.notification));return j.useEffect(n,[]),j.useImperativeHandle(e,(()=>{const A=Object.assign({},a);return Object.keys(A).forEach((e=>{A[e]=function(){return n(),a[e].apply(a,arguments)}})),{instance:A,sync:n}})),s})),rU=j.forwardRef(((A,e)=>{const[t,n]=j.useState(nU),o=()=>{n(nU)};j.useEffect(o,[]);const r=Zh(),i=r.getRootPrefixCls(),a=r.getIconPrefixCls(),s=r.getTheme(),l=j.createElement(oU,{ref:e,sync:o,notificationConfig:t});return j.createElement(tw,{prefixCls:i,iconPrefixCls:a,theme:s},r.holderRender?r.holderRender(l):l)}));function iU(){if(!ZO){const A=document.createDocumentFragment(),e={fragment:A};return ZO=e,void AU((()=>{zD(j.createElement(rU,{ref:A=>{const{instance:t,sync:n}=A||{};Promise.resolve().then((()=>{!e.instance&&t&&(e.instance=t,e.sync=n,iU())}))}}),A)}))}ZO.instance&&(eU.forEach((A=>{switch(A.type){case"open":AU((()=>{ZO.instance.open(Object.assign(Object.assign({},tU),A.config))}));break;case"destroy":AU((()=>{null==ZO||ZO.instance.destroy(A.key)}))}})),eU=[])}function aU(A){eU.push({type:"open",config:A}),iU()}const sU={open:aU,destroy:A=>{eU.push({type:"destroy",key:A}),iU()},config:function(A){tU=Object.assign(Object.assign({},tU),A),AU((()=>{var A;null===(A=null==ZO?void 0:ZO.sync)||void 0===A||A.call(ZO)}))},useNotification:tM,_InternalPanelDoNotUseOrYouWillBeFired:A=>{const{prefixCls:e,className:t,icon:n,type:o,message:r,description:i,btn:a,closable:s=!0,closeIcon:l,className:g}=A,c=function(A,e){var t={};for(var n in A)Object.prototype.hasOwnProperty.call(A,n)&&e.indexOf(n)<0&&(t[n]=A[n]);if(null!=A&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(n=Object.getOwnPropertySymbols(A);o{lU[A]=e=>aU(Object.assign(Object.assign({},e),{type:A}))}));const gU=jf("Popconfirm",(A=>(A=>{const{componentCls:e,iconCls:t,antCls:n,zIndexPopup:o,colorText:r,colorWarning:i,marginXXS:a,marginXS:s,fontSize:l,fontWeightStrong:g,colorTextHeading:c}=A;return{[e]:{zIndex:o,[`&${n}-popover`]:{fontSize:l},[`${e}-message`]:{marginBottom:s,display:"flex",flexWrap:"nowrap",alignItems:"start",[`> ${e}-message-icon ${t}`]:{color:i,fontSize:l,lineHeight:1,marginInlineEnd:s},[`${e}-title`]:{fontWeight:g,color:c,"&:only-child":{fontWeight:"normal"}},[`${e}-description`]:{marginTop:a,color:r}},[`${e}-buttons`]:{textAlign:"end",whiteSpace:"nowrap",button:{marginInlineStart:s}}}}})(A)),(A=>{const{zIndexPopupBase:e}=A;return{zIndexPopup:e+60}}),{resetStyle:!1});const cU=A=>{const{prefixCls:e,okButtonProps:t,cancelButtonProps:n,title:o,description:r,cancelText:i,okText:a,okType:s="primary",icon:l=J.createElement(vw,null),showCancel:g=!0,close:c,onConfirm:u,onCancel:B,onPopupClick:Q}=A,{getPrefixCls:E}=J.useContext(Xp),[C]=_I("Popconfirm",JI.Popconfirm),d=lF(o),I=lF(r);return J.createElement("div",{className:`${e}-inner-content`,onClick:Q},J.createElement("div",{className:`${e}-message`},l&&J.createElement("span",{className:`${e}-message-icon`},l),J.createElement("div",{className:`${e}-message-text`},d&&J.createElement("div",{className:ud(`${e}-title`)},d),I&&J.createElement("div",{className:`${e}-description`},I))),J.createElement("div",{className:`${e}-buttons`},g&&J.createElement(dy,Object.assign({onClick:B,size:"small"},n),i||(null==C?void 0:C.cancelText)),J.createElement(py,{buttonProps:Object.assign(Object.assign({size:"small"},Mm(s)),t),actionFn:u,close:c,prefixCls:E("btn"),quitOnNullishReturnValue:!0,emitEvent:!0},a||(null==C?void 0:C.okText))))};const uU=J.forwardRef(((A,e)=>{var t,n;const{prefixCls:o,placement:r="top",trigger:i="click",okType:a="primary",icon:s=J.createElement(vw,null),children:l,overlayClassName:g,onOpenChange:c,onVisibleChange:u}=A,B=function(A,e){var t={};for(var n in A)Object.prototype.hasOwnProperty.call(A,n)&&e.indexOf(n)<0&&(t[n]=A[n]);if(null!=A&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(n=Object.getOwnPropertySymbols(A);o{C(A,!0),null==u||u(A),null==c||c(A,e)},I=Q("popconfirm",o),p=ud(I,g),[f]=gU(I);return f(J.createElement(JF,Object.assign({},wI(B,["title"]),{trigger:i,placement:r,onOpenChange:(e,t)=>{const{disabled:n=!1}=A;n||d(e,t)},open:E,ref:e,overlayClassName:p,content:J.createElement(cU,Object.assign({okType:a,icon:s},A,{prefixCls:I,close:A=>{d(!1,A)},onConfirm:e=>{var t;return null===(t=A.onConfirm)||void 0===t?void 0:t.call(void 0,e)},onCancel:e=>{var t;d(!1,e),null===(t=A.onCancel)||void 0===t||t.call(void 0,e)}})),"data-popover-inject":!0}),l))})),BU=uU;BU._InternalPanelDoNotUseOrYouWillBeFired=A=>{const{prefixCls:e,placement:t,className:n,style:o}=A,r=function(A,e){var t={};for(var n in A)Object.prototype.hasOwnProperty.call(A,n)&&e.indexOf(n)<0&&(t[n]=A[n]);if(null!=A&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(n=Object.getOwnPropertySymbols(A);o{const{componentCls:e}=A,t=A.calc(A.controlHeight).sub(A.calc(A.trackPadding).mul(2)).equal(),n=A.calc(A.controlHeightLG).sub(A.calc(A.trackPadding).mul(2)).equal(),o=A.calc(A.controlHeightSM).sub(A.calc(A.trackPadding).mul(2)).equal();return{[e]:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},Mf(A)),{display:"inline-block",padding:A.trackPadding,color:A.itemColor,background:A.trackBg,borderRadius:A.borderRadius,transition:`all ${A.motionDurationMid} ${A.motionEaseInOut}`,[`${e}-group`]:{position:"relative",display:"flex",alignItems:"stretch",justifyItems:"flex-start",width:"100%"},[`&${e}-rtl`]:{direction:"rtl"},[`&${e}-block`]:{display:"flex"},[`&${e}-block ${e}-item`]:{flex:1,minWidth:0},[`${e}-item`]:{position:"relative",textAlign:"center",cursor:"pointer",transition:`color ${A.motionDurationMid} ${A.motionEaseInOut}`,borderRadius:A.borderRadiusSM,transform:"translateZ(0)","&-selected":Object.assign(Object.assign({},wU(A)),{color:A.itemSelectedColor}),"&::after":{content:'""',position:"absolute",zIndex:-1,width:"100%",height:"100%",top:0,insetInlineStart:0,borderRadius:"inherit",transition:`background-color ${A.motionDurationMid}`,pointerEvents:"none"},[`&:hover:not(${e}-item-selected):not(${e}-item-disabled)`]:{color:A.itemHoverColor,"&::after":{backgroundColor:A.itemHoverBg}},[`&:active:not(${e}-item-selected):not(${e}-item-disabled)`]:{color:A.itemHoverColor,"&::after":{backgroundColor:A.itemActiveBg}},"&-label":Object.assign({minHeight:t,lineHeight:UE(t),padding:`0 ${UE(A.segmentedPaddingHorizontal)}`},DU),"&-icon + *":{marginInlineStart:A.calc(A.marginSM).div(2).equal()},"&-input":{position:"absolute",insetBlockStart:0,insetInlineStart:0,width:0,height:0,opacity:0,pointerEvents:"none"}},[`${e}-thumb`]:Object.assign(Object.assign({},wU(A)),{position:"absolute",insetBlockStart:0,insetInlineStart:0,width:0,height:"100%",padding:`${UE(A.paddingXXS)} 0`,borderRadius:A.borderRadiusSM,[`& ~ ${e}-item:not(${e}-item-selected):not(${e}-item-disabled)::after`]:{backgroundColor:"transparent"}}),[`&${e}-lg`]:{borderRadius:A.borderRadiusLG,[`${e}-item-label`]:{minHeight:n,lineHeight:UE(n),padding:`0 ${UE(A.segmentedPaddingHorizontal)}`,fontSize:A.fontSizeLG},[`${e}-item, ${e}-thumb`]:{borderRadius:A.borderRadius}},[`&${e}-sm`]:{borderRadius:A.borderRadiusSM,[`${e}-item-label`]:{minHeight:o,lineHeight:UE(o),padding:`0 ${UE(A.segmentedPaddingHorizontalSM)}`},[`${e}-item, ${e}-thumb`]:{borderRadius:A.borderRadiusXS}}}),hU(`&-disabled ${e}-item`,A)),hU(`${e}-item-disabled`,A)),{[`${e}-thumb-motion-appear-active`]:{transition:`transform ${A.motionDurationSlow} ${A.motionEaseInOut}, width ${A.motionDurationSlow} ${A.motionEaseInOut}`,willChange:"transform, width"}})}},yU=jf("Segmented",(A=>{const{lineWidth:e,calc:t}=A,n=Pf(A,{segmentedPaddingHorizontal:t(A.controlPaddingHorizontal).sub(e).equal(),segmentedPaddingHorizontalSM:t(A.controlPaddingHorizontalSM).sub(e).equal()});return[mU(n)]}),(A=>{const{colorTextLabel:e,colorText:t,colorFillSecondary:n,colorBgElevated:o,colorFill:r,lineWidthBold:i,colorBgLayout:a}=A;return{trackPadding:i,trackBg:a,itemColor:e,itemHoverColor:t,itemHoverBg:n,itemSelectedBg:o,itemActiveBg:r,itemSelectedColor:t}}));var bU=function(A,e){var t={};for(var n in A)Object.prototype.hasOwnProperty.call(A,n)&&e.indexOf(n)<0&&(t[n]=A[n]);if(null!=A&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(n=Object.getOwnPropertySymbols(A);o{const{prefixCls:t,className:n,rootClassName:o,block:r,options:i=[],size:a="middle",style:s}=A,l=bU(A,["prefixCls","className","rootClassName","block","options","size","style"]),{getPrefixCls:g,direction:c,segmented:u}=J.useContext(Xp),B=g("segmented",t),[Q,E,C]=yU(B),d=Cm(a),I=J.useMemo((()=>i.map((A=>{if(function(A){return"object"==typeof A&&!!(null==A?void 0:A.icon)}(A)){const{icon:e,label:t}=A,n=bU(A,["icon","label"]);return Object.assign(Object.assign({},n),{label:J.createElement(J.Fragment,null,J.createElement("span",{className:`${B}-item-icon`},e),t&&J.createElement("span",null,t))})}return A}))),[i,B]),p=ud(n,o,null==u?void 0:u.className,{[`${B}-block`]:r,[`${B}-sm`]:"small"===d,[`${B}-lg`]:"large"===d},E,C),f=Object.assign(Object.assign({},null==u?void 0:u.style),s);return Q(J.createElement(fU,Object.assign({},l,{className:p,style:f,options:I,ref:e,prefixCls:B,direction:c})))}));function kU(A,e,t){return(A-e)/(t-e)}function MU(A,e,t,n){var o=kU(e,t,n),r={};switch(A){case"rtl":r.right="".concat(100*o,"%"),r.transform="translateX(50%)";break;case"btt":r.bottom="".concat(100*o,"%"),r.transform="translateY(50%)";break;case"ttb":r.top="".concat(100*o,"%"),r.transform="translateY(-50%)";break;default:r.left="".concat(100*o,"%"),r.transform="translateX(-50%)"}return r}function xU(A,e){return Array.isArray(A)?A[e]:A}var SU=J.createContext({min:0,max:0,direction:"ltr",step:1,includedStart:0,includedEnd:0,tabIndex:0,keyboard:!0,styles:{},classNames:{}}),FU=["prefixCls","value","valueIndex","onStartMove","style","render","dragging","onOffsetChange","onChangeComplete","onFocus","onMouseEnter"],NU=J.forwardRef((function(A,e){var t,n=A.prefixCls,o=A.value,r=A.valueIndex,i=A.onStartMove,a=A.style,s=A.render,l=A.dragging,g=A.onOffsetChange,c=A.onChangeComplete,u=A.onFocus,B=A.onMouseEnter,Q=Mc(A,FU),E=J.useContext(SU),C=E.min,d=E.max,I=E.direction,p=E.disabled,f=E.keyboard,h=E.range,w=E.tabIndex,D=E.ariaLabelForHandle,m=E.ariaLabelledByForHandle,y=E.ariaValueTextFormatterForHandle,b=E.styles,v=E.classNames,k="".concat(n,"-handle"),M=function(A){p||i(A,r)},x=MU(I,o,C,d),S={};null!==r&&(S={tabIndex:p?null:xU(w,r),role:"slider","aria-valuemin":C,"aria-valuemax":d,"aria-valuenow":o,"aria-disabled":p,"aria-label":xU(D,r),"aria-labelledby":xU(m,r),"aria-valuetext":null===(t=xU(y,r))||void 0===t?void 0:t(o),"aria-orientation":"ltr"===I||"rtl"===I?"horizontal":"vertical",onMouseDown:M,onTouchStart:M,onFocus:function(A){null==u||u(A,r)},onMouseEnter:function(A){B(A,r)},onKeyDown:function(A){if(!p&&f){var e=null;switch(A.which||A.keyCode){case rD.LEFT:e="ltr"===I||"btt"===I?-1:1;break;case rD.RIGHT:e="ltr"===I||"btt"===I?1:-1;break;case rD.UP:e="ttb"!==I?1:-1;break;case rD.DOWN:e="ttb"!==I?-1:1;break;case rD.HOME:e="min";break;case rD.END:e="max";break;case rD.PAGE_UP:e=2;break;case rD.PAGE_DOWN:e=-2}null!==e&&(A.preventDefault(),g(e,r))}},onKeyUp:function(A){switch(A.which||A.keyCode){case rD.LEFT:case rD.RIGHT:case rD.UP:case rD.DOWN:case rD.HOME:case rD.END:case rD.PAGE_UP:case rD.PAGE_DOWN:null==c||c()}}});var F=J.createElement("div",BQ({ref:e,className:ud(k,bc(bc({},"".concat(k,"-").concat(r+1),null!==r&&h),"".concat(k,"-dragging"),l),v.handle),style:kc(kc(kc({},x),a),b.handle)},S,Q));return s&&(F=s(F,{index:r,prefixCls:n,value:o,dragging:l})),F})),RU=["prefixCls","style","onStartMove","onOffsetChange","values","handleRender","activeHandleRender","draggingIndex","onFocus"],LU=J.forwardRef((function(A,e){var t=A.prefixCls,n=A.style,o=A.onStartMove,r=A.onOffsetChange,i=A.values,a=A.handleRender,s=A.activeHandleRender,l=A.draggingIndex,g=A.onFocus,c=Mc(A,RU),u=J.useRef({});J.useImperativeHandle(e,(function(){return{focus:function(A){var e;null===(e=u.current[A])||void 0===e||e.focus()}}}));var B=WQ(J.useState(-1),2),Q=B[0],E=B[1],C=kc({prefixCls:t,onStartMove:o,onOffsetChange:r,render:a,onFocus:function(A,e){E(e),null==g||g(A)},onMouseEnter:function(A,e){E(e)}},c);return J.createElement(J.Fragment,null,i.map((function(A,e){return J.createElement(NU,BQ({ref:function(A){A?u.current[e]=A:delete u.current[e]},dragging:l===e,style:xU(n,e),key:e,value:A,valueIndex:e},C))})),s&&J.createElement(NU,BQ({key:"a11y"},C,{value:i[Q],valueIndex:null,dragging:-1!==l,render:s,style:{pointerEvents:"none"},tabIndex:null,"aria-hidden":!0})))})),PU=function(A){var e=A.prefixCls,t=A.style,n=A.children,o=A.value,r=A.onClick,i=J.useContext(SU),a=i.min,s=i.max,l=i.direction,g=i.includedStart,c=i.includedEnd,u=i.included,B="".concat(e,"-text"),Q=MU(l,o,a,s);return J.createElement("span",{className:ud(B,bc({},"".concat(B,"-active"),u&&g<=o&&o<=c)),style:kc(kc({},Q),t),onMouseDown:function(A){A.stopPropagation()},onClick:function(){r(o)}},n)},HU=function(A){var e=A.prefixCls,t=A.marks,n=A.onClick,o="".concat(e,"-mark");return t.length?J.createElement("div",{className:o},t.map((function(A){var e=A.value,t=A.style,r=A.label;return J.createElement(PU,{key:e,prefixCls:o,style:t,value:e,onClick:n},r)}))):null},GU=function(A){var e=A.prefixCls,t=A.value,n=A.style,o=A.activeStyle,r=J.useContext(SU),i=r.min,a=r.max,s=r.direction,l=r.included,g=r.includedStart,c=r.includedEnd,u="".concat(e,"-dot"),B=l&&g<=t&&t<=c,Q=kc(kc({},MU(s,t,i,a)),"function"==typeof n?n(t):n);return B&&(Q=kc(kc({},Q),"function"==typeof o?o(t):o)),J.createElement("span",{className:ud(u,bc({},"".concat(u,"-active"),B)),style:Q})},OU=function(A){var e=A.prefixCls,t=A.marks,n=A.dots,o=A.style,r=A.activeStyle,i=J.useContext(SU),a=i.min,s=i.max,l=i.step,g=J.useMemo((function(){var A=new Set;if(t.forEach((function(e){A.add(e.value)})),n&&null!==l)for(var e=a;e<=s;)A.add(e),e+=l;return Array.from(A)}),[a,s,l,n,t]);return J.createElement("div",{className:"".concat(e,"-step")},g.map((function(A){return J.createElement(GU,{prefixCls:e,key:A,value:A,style:o,activeStyle:r})})))},UU=function(A){var e=A.prefixCls,t=A.style,n=A.start,o=A.end,r=A.index,i=A.onStartMove,a=A.replaceCls,s=J.useContext(SU),l=s.direction,g=s.min,c=s.max,u=s.disabled,B=s.range,Q=s.classNames,E="".concat(e,"-track"),C=kU(n,g,c),d=kU(o,g,c),I=function(A){!u&&i&&i(A,-1)},p={};switch(l){case"rtl":p.right="".concat(100*C,"%"),p.width="".concat(100*d-100*C,"%");break;case"btt":p.bottom="".concat(100*C,"%"),p.height="".concat(100*d-100*C,"%");break;case"ttb":p.top="".concat(100*C,"%"),p.height="".concat(100*d-100*C,"%");break;default:p.left="".concat(100*C,"%"),p.width="".concat(100*d-100*C,"%")}var f=a||ud(E,bc(bc({},"".concat(E,"-").concat(r+1),null!==r&&B),"".concat(e,"-track-draggable"),i),Q.track);return J.createElement("div",{className:f,style:kc(kc({},p),t),onMouseDown:I,onTouchStart:I})},KU=function(A){var e=A.prefixCls,t=A.style,n=A.values,o=A.startPoint,r=A.onStartMove,i=J.useContext(SU),a=i.included,s=i.range,l=i.min,g=i.styles,c=i.classNames,u=J.useMemo((function(){if(!s){if(0===n.length)return[];var A=null!=o?o:l,e=n[0];return[{start:Math.min(A,e),end:Math.max(A,e)}]}for(var t=[],r=0;r=0&&F}),[F,rA]),aA=J.useMemo((function(){return Object.keys(j||{}).map((function(A){var e=j[A],t={value:Number(A)};return e&&"object"===mc(e)&&!J.isValidElement(e)&&("label"in e||"style"in e)?(t.style=e.style,t.label=e.label):t.label=e,t})).filter((function(A){var e=A.label;return e||"number"==typeof e})).sort((function(A,e){return A.value-e.value}))}),[j]),sA=function(A,e,t,n,o,r){var i=J.useCallback((function(t){return Math.max(A,Math.min(e,t))}),[A,e]),a=J.useCallback((function(n){if(null!==t){var o=A+Math.round((i(n)-A)/t)*t,r=function(A){return(String(A).split(".")[1]||"").length},a=Math.max(r(t),r(e),r(A)),s=Number(o.toFixed(a));return A<=s&&s<=e?s:null}return null}),[t,A,e,i]),s=J.useCallback((function(o){var r=i(o),s=n.map((function(A){return A.value}));null!==t&&s.push(a(o)),s.push(A,e);var l=s[0],g=e-A;return s.forEach((function(A){var e=Math.abs(r-A);e<=g&&(l=A,g=e)})),l}),[A,e,n,t,i,a]),l=function o(r,i,s){var l=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"unit";if("number"==typeof i){var g,c=r[s],u=c+i,B=[];n.forEach((function(A){B.push(A.value)})),B.push(A,e),B.push(a(c));var Q=i>0?1:-1;"unit"===l?B.push(a(c+Q*t)):B.push(a(u)),B=B.filter((function(A){return null!==A})).filter((function(A){return i<0?A<=c:A>=c})),"unit"===l&&(B=B.filter((function(A){return A!==c})));var E="unit"===l?c:u;g=B[0];var C=Math.abs(g-E);if(B.forEach((function(A){var e=Math.abs(A-E);e1){var d=XQ(r);return d[s]=g,o(d,i-Q,s,l)}return g}return"min"===i?A:"max"===i?e:void 0},g=function(A,e,t){var n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"unit",o=A[t],r=l(A,e,t,n);return{value:r,changed:r!==o}},c=function(A){return null===r&&0===A||"number"==typeof r&&A3&&void 0!==arguments[3]?arguments[3]:"unit",i=A.map(s),a=i[t],u=l(i,e,t,n);if(i[t]=u,!1===o){var B=r||0;t>0&&i[t-1]!==a&&(i[t]=Math.max(i[t],i[t-1]+B)),t0;d-=1)for(var I=!0;c(i[d]-i[d-1])&&I;){var p=g(i,-1,d-1);i[d-1]=p.value,I=p.changed}for(var f=i.length-1;f>0;f-=1)for(var h=!0;c(i[f]-i[f-1])&&h;){var w=g(i,-1,f-1);i[f-1]=w.value,h=w.changed}for(var D=0;D=0?m+1:2;for(t=t.slice(0,n);t.length=0&&AA.current.focus(A)}MA(null)}),[kA]);var xA=J.useMemo((function(){return(!N||null!==rA)&&N}),[N,rA]),SA=function(A,e){yA(A,e),null==b||b(dA(CA.current))},FA=-1!==wA;J.useEffect((function(){if(!FA){var A=EA.lastIndexOf(DA);AA.current.focus(A)}}),[FA]);var NA=J.useMemo((function(){return XQ(mA).sort((function(A,e){return A-e}))}),[mA]),RA=WQ(J.useMemo((function(){return D?[NA[0],NA[NA.length-1]]:[nA,NA[0]]}),[NA,D,nA]),2),LA=RA[0],PA=RA[1];J.useImperativeHandle(e,(function(){return{focus:function(){AA.current.focus(0)},blur:function(){var A,e=document.activeElement;null!==(A=eA.current)&&void 0!==A&&A.contains(e)&&(null==e||e.blur())}}})),J.useEffect((function(){u&&AA.current.focus(0)}),[]);var HA=J.useMemo((function(){return{min:nA,max:oA,direction:tA,disabled:l,keyboard:c,step:rA,included:H,includedStart:LA,includedEnd:PA,range:D,tabIndex:_,ariaLabelForHandle:X,ariaLabelledByForHandle:V,ariaValueTextFormatterForHandle:Z,styles:a||{},classNames:i||{}}}),[nA,oA,tA,l,c,rA,H,LA,PA,D,_,X,V,Z,a,i]);return J.createElement(SU.Provider,{value:HA},J.createElement("div",{ref:eA,className:ud(n,o,bc(bc(bc(bc({},"".concat(n,"-disabled"),l),"".concat(n,"-vertical"),L),"".concat(n,"-horizontal"),!L),"".concat(n,"-with-marks"),aA.length)),style:r,onMouseDown:function(A){A.preventDefault();var e,t=eA.current.getBoundingClientRect(),n=t.width,o=t.height,r=t.left,i=t.top,a=t.bottom,s=t.right,l=A.clientX,g=A.clientY;switch(tA){case"btt":e=(a-g)/o;break;case"ttb":e=(g-i)/o;break;case"rtl":e=(s-l)/n;break;default:e=(l-r)/n}bA(gA(nA+e*(oA-nA)),A)}},J.createElement("div",{className:ud("".concat(n,"-rail"),null==i?void 0:i.rail),style:kc(kc({},K),null==a?void 0:a.rail)}),J.createElement(KU,{prefixCls:n,style:O,values:NA,startPoint:G,onStartMove:xA?SA:void 0}),J.createElement(OU,{prefixCls:n,marks:aA,dots:q,style:Y,activeStyle:T}),J.createElement(LU,{ref:AA,prefixCls:n,style:U,values:mA,draggingIndex:wA,onStartMove:SA,onOffsetChange:function(A,e){if(!l){var t=cA(EA,A,e);null==b||b(dA(EA)),IA(t.values),MA(t.value)}},onFocus:B,onBlur:Q,handleRender:$,activeHandleRender:z,onChangeComplete:pA}),J.createElement(HU,{prefixCls:n,marks:aA,onClick:bA})))}));const JU=J.forwardRef(((A,e)=>{const{open:t}=A,n=J.useRef(null),o=J.useRef(null);function r(){kI.cancel(o.current),o.current=null}return J.useEffect((()=>(t?o.current=kI((()=>{var A;null===(A=n.current)||void 0===A||A.forceAlign(),o.current=null})):r(),r)),[t,A.title]),J.createElement(PF,Object.assign({ref:Pd(n,e)},A))})),jU=A=>{const{componentCls:e,antCls:t,controlSize:n,dotSize:o,marginFull:r,marginPart:i,colorFillContentHover:a,handleColorDisabled:s,calc:l}=A;return{[e]:Object.assign(Object.assign({},Mf(A)),{position:"relative",height:n,margin:`${UE(i)} ${UE(r)}`,padding:0,cursor:"pointer",touchAction:"none","&-vertical":{margin:`${UE(r)} ${UE(i)}`},[`${e}-rail`]:{position:"absolute",backgroundColor:A.railBg,borderRadius:A.borderRadiusXS,transition:`background-color ${A.motionDurationMid}`},[`${e}-track,${e}-tracks`]:{position:"absolute",transition:`background-color ${A.motionDurationMid}`},[`${e}-track`]:{backgroundColor:A.trackBg,borderRadius:A.borderRadiusXS},[`${e}-track-draggable`]:{boxSizing:"content-box",backgroundClip:"content-box",border:"solid rgba(0,0,0,0)"},"&:hover":{[`${e}-rail`]:{backgroundColor:A.railHoverBg},[`${e}-track`]:{backgroundColor:A.trackHoverBg},[`${e}-dot`]:{borderColor:a},[`${e}-handle::after`]:{boxShadow:`0 0 0 ${UE(A.handleLineWidth)} ${A.colorPrimaryBorderHover}`},[`${e}-dot-active`]:{borderColor:A.dotActiveBorderColor}},[`${e}-handle`]:{position:"absolute",width:A.handleSize,height:A.handleSize,outline:"none","&::before":{content:'""',position:"absolute",insetInlineStart:l(A.handleLineWidth).mul(-1).equal(),insetBlockStart:l(A.handleLineWidth).mul(-1).equal(),width:l(A.handleSize).add(l(A.handleLineWidth).mul(2)).equal(),height:l(A.handleSize).add(l(A.handleLineWidth).mul(2)).equal(),backgroundColor:"transparent"},"&::after":{content:'""',position:"absolute",insetBlockStart:0,insetInlineStart:0,width:A.handleSize,height:A.handleSize,backgroundColor:A.colorBgElevated,boxShadow:`0 0 0 ${UE(A.handleLineWidth)} ${A.handleColor}`,borderRadius:"50%",cursor:"pointer",transition:`\n inset-inline-start ${A.motionDurationMid},\n inset-block-start ${A.motionDurationMid},\n width ${A.motionDurationMid},\n height ${A.motionDurationMid},\n box-shadow ${A.motionDurationMid}\n `},"&:hover, &:active, &:focus":{"&::before":{insetInlineStart:l(A.handleSizeHover).sub(A.handleSize).div(2).add(A.handleLineWidthHover).mul(-1).equal(),insetBlockStart:l(A.handleSizeHover).sub(A.handleSize).div(2).add(A.handleLineWidthHover).mul(-1).equal(),width:l(A.handleSizeHover).add(l(A.handleLineWidthHover).mul(2)).equal(),height:l(A.handleSizeHover).add(l(A.handleLineWidthHover).mul(2)).equal()},"&::after":{boxShadow:`0 0 0 ${UE(A.handleLineWidthHover)} ${A.handleActiveColor}`,width:A.handleSizeHover,height:A.handleSizeHover,insetInlineStart:A.calc(A.handleSize).sub(A.handleSizeHover).div(2).equal(),insetBlockStart:A.calc(A.handleSize).sub(A.handleSizeHover).div(2).equal()}}},[`&-lock ${e}-handle`]:{"&::before, &::after":{transition:"none"}},[`${e}-mark`]:{position:"absolute",fontSize:A.fontSize},[`${e}-mark-text`]:{position:"absolute",display:"inline-block",color:A.colorTextDescription,textAlign:"center",wordBreak:"keep-all",cursor:"pointer",userSelect:"none","&-active":{color:A.colorText}},[`${e}-step`]:{position:"absolute",background:"transparent",pointerEvents:"none"},[`${e}-dot`]:{position:"absolute",width:o,height:o,backgroundColor:A.colorBgElevated,border:`${UE(A.handleLineWidth)} solid ${A.dotBorderColor}`,borderRadius:"50%",cursor:"pointer",transition:`border-color ${A.motionDurationSlow}`,pointerEvents:"auto","&-active":{borderColor:A.dotActiveBorderColor}},[`&${e}-disabled`]:{cursor:"not-allowed",[`${e}-rail`]:{backgroundColor:`${A.railBg} !important`},[`${e}-track`]:{backgroundColor:`${A.trackBgDisabled} !important`},[`\n ${e}-dot\n `]:{backgroundColor:A.colorBgElevated,borderColor:A.trackBgDisabled,boxShadow:"none",cursor:"not-allowed"},[`${e}-handle::after`]:{backgroundColor:A.colorBgElevated,cursor:"not-allowed",width:A.handleSize,height:A.handleSize,boxShadow:`0 0 0 ${UE(A.handleLineWidth)} ${s}`,insetInlineStart:0,insetBlockStart:0},[`\n ${e}-mark-text,\n ${e}-dot\n `]:{cursor:"not-allowed !important"}},[`&-tooltip ${t}-tooltip-inner`]:{minWidth:"unset"}})}},qU=(A,e)=>{const{componentCls:t,railSize:n,handleSize:o,dotSize:r,marginFull:i,calc:a}=A,s=e?"paddingBlock":"paddingInline",l=e?"width":"height",g=e?"height":"width",c=e?"insetBlockStart":"insetInlineStart",u=e?"top":"insetInlineStart",B=a(n).mul(3).sub(o).div(2).equal(),Q=a(o).sub(n).div(2).equal(),E=e?{borderWidth:`${UE(Q)} 0`,transform:`translateY(${UE(a(Q).mul(-1).equal())})`}:{borderWidth:`0 ${UE(Q)}`,transform:`translateX(${UE(A.calc(Q).mul(-1).equal())})`};return{[s]:n,[g]:a(n).mul(3).equal(),[`${t}-rail`]:{[l]:"100%",[g]:n},[`${t}-track,${t}-tracks`]:{[g]:n},[`${t}-track-draggable`]:Object.assign({},E),[`${t}-handle`]:{[c]:B},[`${t}-mark`]:{insetInlineStart:0,top:0,[u]:a(n).mul(3).add(e?0:i).equal(),[l]:"100%"},[`${t}-step`]:{insetInlineStart:0,top:0,[u]:n,[l]:"100%",[g]:n},[`${t}-dot`]:{position:"absolute",[c]:a(n).sub(r).div(2).equal()}}},$U=A=>{const{componentCls:e,marginPartWithMark:t}=A;return{[`${e}-horizontal`]:Object.assign(Object.assign({},qU(A,!0)),{[`&${e}-with-marks`]:{marginBottom:t}})}},zU=A=>{const{componentCls:e}=A;return{[`${e}-vertical`]:Object.assign(Object.assign({},qU(A,!1)),{height:"100%"})}},WU=jf("Slider",(A=>{const e=Pf(A,{marginPart:A.calc(A.controlHeight).sub(A.controlSize).div(2).equal(),marginFull:A.calc(A.controlSize).div(2).equal(),marginPartWithMark:A.calc(A.controlHeightLG).sub(A.controlSize).equal()});return[jU(e),$U(e),zU(e)]}),(A=>{const e=A.controlHeightLG/4;return{controlSize:e,railSize:4,handleSize:e,handleSizeHover:A.controlHeightSM/2,dotSize:8,handleLineWidth:A.lineWidth+1,handleLineWidthHover:A.lineWidth+3,railBg:A.colorFillTertiary,railHoverBg:A.colorFillSecondary,trackBg:A.colorPrimaryBorder,trackHoverBg:A.colorPrimaryBorderHover,handleColor:A.colorPrimaryBorder,handleActiveColor:A.colorPrimary,handleColorDisabled:new Cp(A.colorTextDisabled).onBackground(A.colorBgContainer).toHexShortString(),dotBorderColor:A.colorBorderSecondary,dotActiveBorderColor:A.colorPrimaryBorder,trackBgDisabled:A.colorBgContainerDisabled}}));function _U(){const[A,e]=J.useState(!1),t=J.useRef(),n=()=>{kI.cancel(t.current)};return J.useEffect((()=>n),[]),[A,A=>{n(),A?e(A):t.current=kI((()=>{e(A)}))}]}const XU=j.forwardRef(((A,e)=>{const{prefixCls:t,range:n,className:o,rootClassName:r,style:i,disabled:a,tooltipPrefixCls:s,tipFormatter:l,tooltipVisible:g,getTooltipPopupContainer:c,tooltipPlacement:u,tooltip:B={},onChangeComplete:Q}=A,E=function(A,e){var t={};for(var n in A)Object.prototype.hasOwnProperty.call(A,n)&&e.indexOf(n)<0&&(t[n]=A[n]);if(null!=A&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(n=Object.getOwnPropertySymbols(A);o"number"==typeof A?A.toString():""}(F,l),[P,H]=_U(),G=(A,e)=>A||(e?"rtl"===d?"left":"right":"top"),O=p("slider",t),[U,K,Y]=WU(O),T=ud(o,null==I?void 0:I.className,r,{[`${O}-rtl`]:"rtl"===d,[`${O}-lock`]:P},K,Y);"rtl"!==d||E.vertical||(E.reverse=!E.reverse);const[J,q]=j.useMemo((()=>n?"object"==typeof n?[!0,n.draggableTrack]:[!0,!1]:[!1]),[n]);j.useEffect((()=>{const A=()=>{kI((()=>{b(!1)}),1)};return document.addEventListener("mouseup",A),()=>{document.removeEventListener("mouseup",A)}}),[]);const $=J&&!N,z=$?(A,e)=>{const t=j.cloneElement(A,{style:Object.assign(Object.assign({},A.props.style),{visibility:"hidden"})});return j.createElement(JU,Object.assign({},v,{prefixCls:p("tooltip",null!=S?S:s),title:L?L(e.value):"",open:null!==L&&R,placement:G(null!=M?M:u,C),key:"tooltip",overlayClassName:`${O}-tooltip`,getPopupContainer:x||c||f}),t)}:void 0,W=Object.assign(Object.assign({},null==I?void 0:I.style),i);return U(j.createElement(TU,Object.assign({},E,{step:E.step,range:J,draggableTrack:q,className:T,style:W,disabled:w,ref:e,prefixCls:O,handleRender:(A,e)=>{const{index:t}=e,n=A.props,o=Object.assign(Object.assign({},n),{onMouseEnter:A=>{var e;m(!0),null===(e=n.onMouseEnter)||void 0===e||e.call(n,A)},onMouseLeave:A=>{var e;m(!1),null===(e=n.onMouseLeave)||void 0===e||e.call(n,A)},onMouseDown:A=>{var e;b(!0),H(!0),null===(e=n.onMouseDown)||void 0===e||e.call(n,A)},onFocus:A=>{var e,t;b(!0),null===(e=E.onFocus)||void 0===e||e.call(E,A),null===(t=n.onFocus)||void 0===t||t.call(n,A)},onBlur:A=>{var e,t;b(!1),null===(e=E.onBlur)||void 0===e||e.call(E,A),null===(t=n.onBlur)||void 0===t||t.call(n,A)}}),r=j.cloneElement(A,o),i=(!!N||R)&&null!==L;return $?r:j.createElement(JU,Object.assign({},v,{prefixCls:p("tooltip",null!=S?S:s),title:L?L(e.value):"",open:i,placement:G(null!=M?M:u,C),key:t,overlayClassName:`${O}-tooltip`,getPopupContainer:x||c||f}),r)},activeHandleRender:z,onChangeComplete:A=>{null==Q||Q(A),H(!1)}})))}));var VU=["prefixCls","className","checked","defaultChecked","disabled","loadingIcon","checkedChildren","unCheckedChildren","onClick","onChange","onKeyDown"],ZU=J.forwardRef((function(A,e){var t,n=A.prefixCls,o=void 0===n?"rc-switch":n,r=A.className,i=A.checked,a=A.defaultChecked,s=A.disabled,l=A.loadingIcon,g=A.checkedChildren,c=A.unCheckedChildren,u=A.onClick,B=A.onChange,Q=A.onKeyDown,E=Mc(A,VU),C=WQ(vf(!1,{value:i,defaultValue:a}),2),d=C[0],I=C[1];function p(A,e){var t=d;return s||(I(t=A),null==B||B(t,e)),t}var f=ud(o,r,(bc(t={},"".concat(o,"-checked"),d),bc(t,"".concat(o,"-disabled"),s),t));return J.createElement("button",BQ({},E,{type:"button",role:"switch","aria-checked":d,disabled:s,className:f,ref:e,onKeyDown:function(A){A.which===rD.LEFT?p(!1,A):A.which===rD.RIGHT&&p(!0,A),null==Q||Q(A)},onClick:function(A){var e=p(!d,A);null==u||u(e,A)}}),l,J.createElement("span",{className:"".concat(o,"-inner")},J.createElement("span",{className:"".concat(o,"-inner-checked")},g),J.createElement("span",{className:"".concat(o,"-inner-unchecked")},c)))}));ZU.displayName="Switch";const AK=A=>{const{componentCls:e,trackHeightSM:t,trackPadding:n,trackMinWidthSM:o,innerMinMarginSM:r,innerMaxMarginSM:i,handleSizeSM:a,calc:s}=A,l=`${e}-inner`,g=UE(s(a).add(s(n).mul(2)).equal()),c=UE(s(i).mul(2).equal());return{[e]:{[`&${e}-small`]:{minWidth:o,height:t,lineHeight:UE(t),[`${e}-inner`]:{paddingInlineStart:i,paddingInlineEnd:r,[`${l}-checked, ${l}-unchecked`]:{minHeight:t},[`${l}-checked`]:{marginInlineStart:`calc(-100% + ${g} - ${c})`,marginInlineEnd:`calc(100% - ${g} + ${c})`},[`${l}-unchecked`]:{marginTop:s(t).mul(-1).equal(),marginInlineStart:0,marginInlineEnd:0}},[`${e}-handle`]:{width:a,height:a},[`${e}-loading-icon`]:{top:s(s(a).sub(A.switchLoadingIconSize)).div(2).equal(),fontSize:A.switchLoadingIconSize},[`&${e}-checked`]:{[`${e}-inner`]:{paddingInlineStart:r,paddingInlineEnd:i,[`${l}-checked`]:{marginInlineStart:0,marginInlineEnd:0},[`${l}-unchecked`]:{marginInlineStart:`calc(100% - ${g} + ${c})`,marginInlineEnd:`calc(-100% + ${g} - ${c})`}},[`${e}-handle`]:{insetInlineStart:`calc(100% - ${UE(s(a).add(n).equal())})`}},[`&:not(${e}-disabled):active`]:{[`&:not(${e}-checked) ${l}`]:{[`${l}-unchecked`]:{marginInlineStart:s(A.marginXXS).div(2).equal(),marginInlineEnd:s(A.marginXXS).mul(-1).div(2).equal()}},[`&${e}-checked ${l}`]:{[`${l}-checked`]:{marginInlineStart:s(A.marginXXS).mul(-1).div(2).equal(),marginInlineEnd:s(A.marginXXS).div(2).equal()}}}}}}},eK=A=>{const{componentCls:e,handleSize:t,calc:n}=A;return{[e]:{[`${e}-loading-icon${A.iconCls}`]:{position:"relative",top:n(n(t).sub(A.fontSize)).div(2).equal(),color:A.switchLoadingIconColor,verticalAlign:"top"},[`&${e}-checked ${e}-loading-icon`]:{color:A.switchColor}}}},tK=A=>{const{componentCls:e,trackPadding:t,handleBg:n,handleShadow:o,handleSize:r,calc:i}=A,a=`${e}-handle`;return{[e]:{[a]:{position:"absolute",top:t,insetInlineStart:t,width:r,height:r,transition:`all ${A.switchDuration} ease-in-out`,"&::before":{position:"absolute",top:0,insetInlineEnd:0,bottom:0,insetInlineStart:0,backgroundColor:n,borderRadius:i(r).div(2).equal(),boxShadow:o,transition:`all ${A.switchDuration} ease-in-out`,content:'""'}},[`&${e}-checked ${a}`]:{insetInlineStart:`calc(100% - ${UE(i(r).add(t).equal())})`},[`&:not(${e}-disabled):active`]:{[`${a}::before`]:{insetInlineEnd:A.switchHandleActiveInset,insetInlineStart:0},[`&${e}-checked ${a}::before`]:{insetInlineEnd:0,insetInlineStart:A.switchHandleActiveInset}}}}},nK=A=>{const{componentCls:e,trackHeight:t,trackPadding:n,innerMinMargin:o,innerMaxMargin:r,handleSize:i,calc:a}=A,s=`${e}-inner`,l=UE(a(i).add(a(n).mul(2)).equal()),g=UE(a(r).mul(2).equal());return{[e]:{[s]:{display:"block",overflow:"hidden",borderRadius:100,height:"100%",paddingInlineStart:r,paddingInlineEnd:o,transition:`padding-inline-start ${A.switchDuration} ease-in-out, padding-inline-end ${A.switchDuration} ease-in-out`,[`${s}-checked, ${s}-unchecked`]:{display:"block",color:A.colorTextLightSolid,fontSize:A.fontSizeSM,transition:`margin-inline-start ${A.switchDuration} ease-in-out, margin-inline-end ${A.switchDuration} ease-in-out`,pointerEvents:"none",minHeight:t},[`${s}-checked`]:{marginInlineStart:`calc(-100% + ${l} - ${g})`,marginInlineEnd:`calc(100% - ${l} + ${g})`},[`${s}-unchecked`]:{marginTop:a(t).mul(-1).equal(),marginInlineStart:0,marginInlineEnd:0}},[`&${e}-checked ${s}`]:{paddingInlineStart:o,paddingInlineEnd:r,[`${s}-checked`]:{marginInlineStart:0,marginInlineEnd:0},[`${s}-unchecked`]:{marginInlineStart:`calc(100% - ${l} + ${g})`,marginInlineEnd:`calc(-100% + ${l} - ${g})`}},[`&:not(${e}-disabled):active`]:{[`&:not(${e}-checked) ${s}`]:{[`${s}-unchecked`]:{marginInlineStart:a(n).mul(2).equal(),marginInlineEnd:a(n).mul(-1).mul(2).equal()}},[`&${e}-checked ${s}`]:{[`${s}-checked`]:{marginInlineStart:a(n).mul(-1).mul(2).equal(),marginInlineEnd:a(n).mul(2).equal()}}}}}},oK=A=>{const{componentCls:e,trackHeight:t,trackMinWidth:n}=A;return{[e]:Object.assign(Object.assign(Object.assign(Object.assign({},Mf(A)),{position:"relative",display:"inline-block",boxSizing:"border-box",minWidth:n,height:t,lineHeight:`${UE(t)}`,verticalAlign:"middle",background:A.colorTextQuaternary,border:"0",borderRadius:100,cursor:"pointer",transition:`all ${A.motionDurationMid}`,userSelect:"none",[`&:hover:not(${e}-disabled)`]:{background:A.colorTextTertiary}}),Nf(A)),{[`&${e}-checked`]:{background:A.switchColor,[`&:hover:not(${e}-disabled)`]:{background:A.colorPrimaryHover}},[`&${e}-loading, &${e}-disabled`]:{cursor:"not-allowed",opacity:A.switchDisabledOpacity,"*":{boxShadow:"none",cursor:"not-allowed"}},[`&${e}-rtl`]:{direction:"rtl"}})}},rK=jf("Switch",(A=>{const e=Pf(A,{switchDuration:A.motionDurationMid,switchColor:A.colorPrimary,switchDisabledOpacity:A.opacityLoading,switchLoadingIconSize:A.calc(A.fontSizeIcon).mul(.75).equal(),switchLoadingIconColor:`rgba(0, 0, 0, ${A.opacityLoading})`,switchHandleActiveInset:"-30%"});return[oK(e),nK(e),tK(e),eK(e),AK(e)]}),(A=>{const{fontSize:e,lineHeight:t,controlHeight:n,colorWhite:o}=A,r=e*t,i=n/2,a=r-4,s=i-4;return{trackHeight:r,trackHeightSM:i,trackMinWidth:2*a+8,trackMinWidthSM:2*s+4,trackPadding:2,handleBg:o,handleSize:a,handleSizeSM:s,handleShadow:`0 2px 4px 0 ${new Cp("#00230b").setAlpha(.2).toRgbString()}`,innerMinMargin:a/2,innerMaxMargin:a+2+4,innerMinMarginSM:s/2,innerMaxMarginSM:s+2+4}}));const iK=J.forwardRef(((A,e)=>{const{prefixCls:t,size:n,disabled:o,loading:r,className:i,rootClassName:a,style:s,checked:l,value:g,defaultChecked:c,defaultValue:u,onChange:B}=A,Q=function(A,e){var t={};for(var n in A)Object.prototype.hasOwnProperty.call(A,n)&&e.indexOf(n)<0&&(t[n]=A[n]);if(null!=A&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(n=Object.getOwnPropertySymbols(A);o{const{lineWidth:e,fontSizeIcon:t,calc:n}=A,o=A.fontSizeSM;return Pf(A,{tagFontSize:o,tagLineHeight:UE(n(A.lineHeightSM).mul(o).equal()),tagIconSize:n(t).sub(n(e).mul(2)).equal(),tagPaddingHorizontal:8,tagBorderlessBg:A.defaultBg})},gK=A=>({defaultBg:new Cp(A.colorFillQuaternary).onBackground(A.colorBgContainer).toHexString(),defaultColor:A.colorText}),cK=jf("Tag",(A=>(A=>{const{paddingXXS:e,lineWidth:t,tagPaddingHorizontal:n,componentCls:o,calc:r}=A,i=r(n).sub(t).equal(),a=r(e).sub(t).equal();return{[o]:Object.assign(Object.assign({},Mf(A)),{display:"inline-block",height:"auto",marginInlineEnd:A.marginXS,paddingInline:i,fontSize:A.tagFontSize,lineHeight:A.tagLineHeight,whiteSpace:"nowrap",background:A.defaultBg,border:`${UE(A.lineWidth)} ${A.lineType} ${A.colorBorder}`,borderRadius:A.borderRadiusSM,opacity:1,transition:`all ${A.motionDurationMid}`,textAlign:"start",position:"relative",[`&${o}-rtl`]:{direction:"rtl"},"&, a, a:hover":{color:A.defaultColor},[`${o}-close-icon`]:{marginInlineStart:a,fontSize:A.tagIconSize,color:A.colorTextDescription,cursor:"pointer",transition:`all ${A.motionDurationMid}`,"&:hover":{color:A.colorTextHeading}},[`&${o}-has-color`]:{borderColor:"transparent",[`&, a, a:hover, ${A.iconCls}-close, ${A.iconCls}-close:hover`]:{color:A.colorTextLightSolid}},"&-checkable":{backgroundColor:"transparent",borderColor:"transparent",cursor:"pointer",[`&:not(${o}-checkable-checked):hover`]:{color:A.colorPrimary,backgroundColor:A.colorFillSecondary},"&:active, &-checked":{color:A.colorTextLightSolid},"&-checked":{backgroundColor:A.colorPrimary,"&:hover":{backgroundColor:A.colorPrimaryHover}},"&:active":{backgroundColor:A.colorPrimaryActive}},"&-hidden":{display:"none"},[`> ${A.iconCls} + span, > span + ${A.iconCls}`]:{marginInlineStart:i}}),[`${o}-borderless`]:{borderColor:"transparent",background:A.tagBorderlessBg}}})(lK(A))),gK);const uK=J.forwardRef(((A,e)=>{const{prefixCls:t,style:n,className:o,checked:r,onChange:i,onClick:a}=A,s=function(A,e){var t={};for(var n in A)Object.prototype.hasOwnProperty.call(A,n)&&e.indexOf(n)<0&&(t[n]=A[n]);if(null!=A&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(n=Object.getOwnPropertySymbols(A);o{null==i||i(!r),null==a||a(A)}})))})),BK=Tf(["Tag","preset"],(A=>(A=>qf(A,((e,t)=>{let{textColor:n,lightBorderColor:o,lightColor:r,darkColor:i}=t;return{[`${A.componentCls}${A.componentCls}-${e}`]:{color:n,background:r,borderColor:o,"&-inverse":{color:A.colorTextLightSolid,background:i,borderColor:i},[`&${A.componentCls}-borderless`]:{borderColor:"transparent"}}}})))(lK(A))),gK);const QK=(A,e,t)=>{const n="string"!=typeof(o=t)?o:o.charAt(0).toUpperCase()+o.slice(1);var o;return{[`${A.componentCls}${A.componentCls}-${e}`]:{color:A[`color${t}`],background:A[`color${n}Bg`],borderColor:A[`color${n}Border`],[`&${A.componentCls}-borderless`]:{borderColor:"transparent"}}}},EK=Tf(["Tag","status"],(A=>{const e=lK(A);return[QK(e,"success","Success"),QK(e,"processing","Info"),QK(e,"error","Error"),QK(e,"warning","Warning")]}),gK);const CK=J.forwardRef(((A,e)=>{const{prefixCls:t,className:n,rootClassName:o,style:r,children:i,icon:a,color:s,onClose:l,bordered:g=!0,visible:c}=A,u=function(A,e){var t={};for(var n in A)Object.prototype.hasOwnProperty.call(A,n)&&e.indexOf(n)<0&&(t[n]=A[n]);if(null!=A&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(n=Object.getOwnPropertySymbols(A);o{void 0!==c&&d(c)}),[c]);const p=NF(s),f=function(A){return FF.includes(A)}(s),h=p||f,w=Object.assign(Object.assign({backgroundColor:s&&!h?s:void 0},null==E?void 0:E.style),r),D=B("tag",t),[m,y,b]=cK(D),v=ud(D,null==E?void 0:E.className,{[`${D}-${s}`]:h,[`${D}-has-color`]:s&&!h,[`${D}-hidden`]:!C,[`${D}-rtl`]:"rtl"===Q,[`${D}-borderless`]:!g},n,o,y,b),k=A=>{A.stopPropagation(),null==l||l(A),A.defaultPrevented||d(!1)},[,M]=_y(qy(A),qy(E),{closable:!1,closeIconRender:A=>Hw(A,J.createElement("span",{className:`${D}-close-icon`,onClick:k},A),(A=>({onClick:e=>{var t;null===(t=null==A?void 0:A.onClick)||void 0===t||t.call(A,e),k(e)},className:ud(null==A?void 0:A.className,`${D}-close-icon`)})))}),x="function"==typeof u.onClick||i&&"a"===i.type,S=a||null,F=S?J.createElement(J.Fragment,null,S,i&&J.createElement("span",null,i)):i,N=J.createElement("span",Object.assign({},I,{ref:e,className:v,style:w}),F,M,p&&J.createElement(BK,{key:"preset",prefixCls:D}),f&&J.createElement(EK,{key:"status",prefixCls:D}));return m(x?J.createElement(Em,{component:"Tag"},N):N)})),dK=CK;dK.CheckableTag=uK;const IK=(A,e)=>new Cp(A).setAlpha(e).toRgbString(),pK=(A,e)=>new Cp(A).lighten(e).toHexString(),fK=A=>{const e=xp(A,{theme:"dark"});return{1:e[0],2:e[1],3:e[2],4:e[3],5:e[6],6:e[5],7:e[4],8:e[6],9:e[5],10:e[4]}},hK=(A,e)=>{const t=A||"#000",n=e||"#fff";return{colorBgBase:t,colorTextBase:n,colorText:IK(n,.85),colorTextSecondary:IK(n,.65),colorTextTertiary:IK(n,.45),colorTextQuaternary:IK(n,.25),colorFill:IK(n,.18),colorFillSecondary:IK(n,.12),colorFillTertiary:IK(n,.08),colorFillQuaternary:IK(n,.04),colorBgElevated:pK(t,12),colorBgContainer:pK(t,8),colorBgLayout:pK(t,0),colorBgSpotlight:pK(t,26),colorBgBlur:IK(n,.04),colorBorder:pK(t,26),colorBorderSecondary:pK(t,19)}};const wK={defaultConfig:zp,defaultSeed:zp.token,useToken:function(){const[A,e,t]=Cf();return{theme:A,token:e,hashId:t}},defaultAlgorithm:qp,darkAlgorithm:(A,e)=>{const t=Object.keys(Lp).map((e=>{const t=xp(A[e],{theme:"dark"});return new Array(10).fill(1).reduce(((A,n,o)=>(A[`${e}-${o+1}`]=t[o],A[`${e}${o+1}`]=t[o],A)),{})})).reduce(((A,e)=>A=Object.assign(Object.assign({},A),e)),{}),n=null!=e?e:qp(A);return Object.assign(Object.assign(Object.assign({},n),t),Hp(A,{generateColorPalettes:fK,generateNeutralColorPalettes:hK}))},compactAlgorithm:(A,e)=>{const t=null!=e?e:qp(A),n=t.fontSizeSM,o=t.controlHeight-4;return Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},t),function(A){const{sizeUnit:e,sizeStep:t}=A,n=t-2;return{sizeXXL:e*(n+10),sizeXL:e*(n+6),sizeLG:e*(n+2),sizeMD:e*(n+2),sizeMS:e*(n+1),size:e*n,sizeSM:e*n,sizeXS:e*(n-1),sizeXXS:e*(n-1)}}(null!=e?e:A)),Kp(n)),{controlHeight:o}),Op(Object.assign(Object.assign({},t),{controlHeight:o})))},getDesignToken:A=>{const e=(null==A?void 0:A.algorithm)?NE(A.algorithm):NE(qp),t=Object.assign(Object.assign({},Pp),null==A?void 0:A.token);return nC(t,{override:null==A?void 0:A.token},e,gf)}};var DK,mK=function(){return wK.useToken().token},yK=function(A){return"undefined"!=typeof window?matchMedia&&matchMedia("(prefers-color-scheme: ".concat(A,")")):{matches:!1}},bK=J.createContext({appearance:"light",setAppearance:function(){},isDarkMode:!1,themeMode:"light",setThemeMode:function(){},browserPrefers:null!==(DK=yK("dark"))&&void 0!==DK&&DK.matches?"dark":"light"}),vK=function(){return J.useContext(bK)},kK=function(){var A=mK(),e=vK(),t=e.appearance,n=e.isDarkMode;return J.useMemo((function(){return e=function(A){var e=A.css,t=A.token;return{buttonDefaultHover:e({backgroundColor:t.colorBgContainer,border:"1px solid ".concat(t.colorBorder),cursor:"pointer",":hover":{color:t.colorPrimaryHover,borderColor:t.colorPrimaryHover},":active":{color:t.colorPrimaryActive,borderColor:t.colorPrimaryActive}})}}({token:A,css:uQ,appearance:t,isDarkMode:n}),Object.fromEntries(Object.entries(e).map((function(A){var e=WQ(A,2);return[e[0],e[1].styles]})));var e}),[A,t,n])},MK=function(){var A=mK(),e=kK();return J.useMemo((function(){return kc(kc({},A),{},{stylish:e})}),[A,e])},xK=function(A){return kc(kc({},A),{},{mobile:A.xs,tablet:A.md,laptop:A.lg,desktop:A.xxl})},SK=function(){var A=jP.useBreakpoint();return J.useMemo((function(){return xK(A)}),[A])},FK=["stylish","appearance","isDarkMode","prefixCls","iconPrefixCls"],NK=["prefixCls","iconPrefixCls"],RK=function(A){var e=A.hashPriority,t=A.useTheme,n=A.EmotionContext;return function(A,o){var r=null==o?void 0:o.__BABEL_FILE_NAME__,i=!!r;return function(a){var s,l,g=t(),c=J.useContext(n).cache,u=cQ(c,{hashPriority:(null==o?void 0:o.hashPriority)||e,label:null==o?void 0:o.label}),B=u.cx,Q=u.css,E=(s=mK(),l={xs:"@media (max-width: ".concat(s.screenXSMax,"px)"),sm:"@media (max-width: ".concat(s.screenSMMax,"px)"),md:"@media (max-width: ".concat(s.screenMDMax,"px)"),lg:"@media (max-width: ".concat(s.screenLGMax,"px)"),xl:"@media (max-width: ".concat(s.screenXLMax,"px)"),xxl:"@media (min-width: ".concat(s.screenXXLMin,"px)")},J.useMemo((function(){return xK(l)}),[s])),C=J.useMemo((function(){var e;if(A instanceof Function){var t=g.stylish,n=g.appearance,o=g.isDarkMode,s=g.prefixCls,l=g.iconPrefixCls,c=Mc(g,FK),u=function(A){return e=A,t=E,Object.entries(e).map((function(A){var e=WQ(A,2),n=e[0],o=e[1],r=o;return aQ(o)||(r=uQ(o)),t[n]?"".concat(t[n]," {").concat(r.styles,"}"):""})).join("");var e,t};Object.assign(u,E),e=A({token:c,stylish:t,appearance:n,isDarkMode:o,prefixCls:s,iconPrefixCls:l,cx:B,css:uQ,responsive:u},a)}else e=A;return"object"===mc(e)&&(e=aQ(e)?Q(e):Object.fromEntries(Object.entries(e).map((function(A){var e=WQ(A,2),t=e[0],n=e[1],o=i?"".concat(r,"-").concat(t):void 0;return"object"===mc(n)?i?[t,Q(n,"label:".concat(o))]:[t,Q(n)]:[t,n]})))),e}),[a,g]);return J.useMemo((function(){var A=g.prefixCls,e=g.iconPrefixCls,t=Mc(g,NK);return{styles:C,cx:B,theme:t,prefixCls:A,iconPrefixCls:e}}),[C,g])}}},LK=function(A){if(A.ThemeProvider)return A.ThemeProvider;var e=A.ThemeContext;return function(A){return AA.jsx(e.Provider,{value:A.theme,children:A.children})}},PK=function(A){var e=J.useContext(YQ);return A.theme!==e&&(e=TQ(e)(A.theme)),J.createElement(YQ.Provider,{value:e},A.children)},HK=YQ,GK=J.memo((function(A){var e=A.children,t=A.theme,n=A.prefixCls,o=A.getStaticInstance,r=A.staticInstanceConfig,i=vK(),a=i.appearance,s=i.isDarkMode,l=WQ(WO.useMessage(null==r?void 0:r.message),2),g=l[0],c=l[1],u=WQ(lU.useNotification(null==r?void 0:r.notification),2),B=u[0],Q=u[1],E=WQ(VO.useModal(),2),C=E[0],d=E[1];J.useEffect((function(){null==o||o({message:g,modal:C,notification:B})}),[]);var I=J.useMemo((function(){var A=s?wK.darkAlgorithm:wK.defaultAlgorithm,e=t;if("function"==typeof t&&(e=t(a)),!e)return{algorithm:A};var n=e.algorithm?e.algorithm instanceof Array?e.algorithm:[e.algorithm]:[];return kc(kc({},e),{},{algorithm:e.algorithm?[A].concat(XQ(n)):A})}),[t,s]);return AA.jsxs(tw,{prefixCls:n,theme:I,children:[c,Q,d,e]})}));function OK(A,e){return function(A){if(Array.isArray(A))return A}(A)||function(A,e){var t=null==A?null:"undefined"!=typeof Symbol&&A[Symbol.iterator]||A["@@iterator"];if(null!=t){var n,o,r,i,a=[],s=!0,l=!1;try{if(r=(t=t.call(A)).next,0===e);else for(;!(s=(n=r.call(t)).done)&&(a.push(n.value),a.length!==e);s=!0);}catch(g){l=!0,o=g}finally{try{if(!s&&null!=t.return&&(i=t.return(),Object(i)!==i))return}finally{if(l)throw o}}return a}}(A,e)||function(A,e){if(!A)return;if("string"==typeof A)return UK(A,e);var t=Object.prototype.toString.call(A).slice(8,-1);"Object"===t&&A.constructor&&(t=A.constructor.name);if("Map"===t||"Set"===t)return Array.from(A);if("Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t))return UK(A,e)}(A,e)||function(){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 UK(A,e){(null==e||e>A.length)&&(e=A.length);for(var t=0,n=new Array(e);t=n?A:function(A,e,t){var n=-1,o=A.length;e<0&&(e=-e>o?0:o+e),(t=t>o?o:t)<0&&(t+=o),o=e>t?0:t-e>>>0,e>>>=0;for(var r=Array(o);++n1&&void 0!==arguments[1]?arguments[1]:"info",t=arguments.length,n=new Array(t>2?t-2:0),o=2;o1){var t=A.shift();A[0]=t+A[0]}A[0].match(/^file:\/\/\//)?A[0]=A[0].replace(/^([^/:]+):\/*/,"$1:///"):A[0]=A[0].replace(/^([^/:]+):\/*/,"$1://");for(var n=0;n0&&(o=o.replace(/^[\/]+/,"")),o=n0?"?":"")+i.join("&")}("object"==typeof arguments[0]?arguments[0]:[].slice.call(arguments))}var gJ=function(A){var e=A.pkg,t=A.version,n=void 0===t?"latest":t,o=A.path;return"unpkg"===A.proxy?lJ("https://unpkg.com","".concat(e,"@").concat(n),o):lJ("https://registry.npmmirror.com",e,n,"files",o)},cJ=J.createContext(null),uJ=function(A){var e=A.pkg,t=A.version,n=A.path;return gJ({path:n,pkg:e,proxy:"aliyun",version:t})},BJ=function(){var A=J.useContext(cJ);return A?"custom"!==(null==A?void 0:A.proxy)?function(e){var t=e.pkg,n=e.version,o=e.path;return gJ({path:o,pkg:t,proxy:A.proxy,version:n})}:(null==A?void 0:A.customCdnFn)||uJ:uJ},QJ=["unoptimized"],EJ=J.forwardRef((function(A,e){var t=A.unoptimized,n=Mc(A,QJ),o=J.useContext(cJ),r=(null==o?void 0:o.imgAs)||"img",i=J.useMemo((function(){return A=r,J.forwardRef((function(e,t){return J.createElement(A,kc(kc({},e),{},{ref:t}))}));var A}),[r]);return AA.jsx(i,kc({ref:e,unoptimized:void 0===t?null==o?void 0:o.imgUnoptimized:t},n))}));const CJ={"๐Ÿ˜€":"grinning-face","๐Ÿ˜ƒ":"grinning-face-with-big-eyes","๐Ÿ˜„":"grinning-face-with-smiling-eyes","๐Ÿ˜":"beaming-face-with-smiling-eyes","๐Ÿ˜†":"grinning-squinting-face","๐Ÿ˜…":"grinning-face-with-sweat","๐Ÿคฃ":"rolling-on-the-floor-laughing","๐Ÿ˜‚":"face-with-tears-of-joy","๐Ÿ™‚":"slightly-smiling-face","๐Ÿ™ƒ":"upside-down-face","๐Ÿซ ":"melting-face","๐Ÿ˜‰":"winking-face","๐Ÿ˜Š":"smiling-face-with-smiling-eyes","๐Ÿ˜‡":"smiling-face-with-halo","๐Ÿฅฐ":"smiling-face-with-hearts","๐Ÿ˜":"smiling-face-with-heart-eyes","๐Ÿคฉ":"star-struck","๐Ÿ˜˜":"face-blowing-a-kiss","๐Ÿ˜—":"kissing-face","โ˜บ๏ธ":"smiling-face","๐Ÿ˜š":"kissing-face-with-closed-eyes","๐Ÿ˜™":"kissing-face-with-smiling-eyes","๐Ÿฅฒ":"smiling-face-with-tear","๐Ÿ˜‹":"face-savoring-food","๐Ÿ˜›":"face-with-tongue","๐Ÿ˜œ":"winking-face-with-tongue","๐Ÿคช":"zany-face","๐Ÿ˜":"squinting-face-with-tongue","๐Ÿค‘":"money-mouth-face","๐Ÿค—":"smiling-face-with-open-hands","๐Ÿคญ":"face-with-hand-over-mouth","๐Ÿซข":"face-with-open-eyes-and-hand-over-mouth","๐Ÿซฃ":"face-with-peeking-eye","๐Ÿคซ":"shushing-face","๐Ÿค”":"thinking-face","๐Ÿซก":"saluting-face","๐Ÿค":"zipper-mouth-face","๐Ÿคจ":"face-with-raised-eyebrow","๐Ÿ˜":"neutral-face","๐Ÿ˜‘":"expressionless-face","๐Ÿ˜ถ":"face-without-mouth","๐Ÿซฅ":"dotted-line-face","๐Ÿ˜ถโ€๐ŸŒซ๏ธ":"face-in-clouds","๐Ÿ˜":"smirking-face","๐Ÿ˜’":"unamused-face","๐Ÿ™„":"face-with-rolling-eyes","๐Ÿ˜ฌ":"grimacing-face","๐Ÿ˜ฎโ€๐Ÿ’จ":"face-exhaling","๐Ÿคฅ":"lying-face","๐Ÿซจ":"shaking-face","๐Ÿ˜Œ":"relieved-face","๐Ÿ˜”":"pensive-face","๐Ÿ˜ช":"sleepy-face","๐Ÿคค":"drooling-face","๐Ÿ˜ด":"sleeping-face","๐Ÿ˜ท":"face-with-medical-mask","๐Ÿค’":"face-with-thermometer","๐Ÿค•":"face-with-head-bandage","๐Ÿคข":"nauseated-face","๐Ÿคฎ":"face-vomiting","๐Ÿคง":"sneezing-face","๐Ÿฅต":"hot-face","๐Ÿฅถ":"cold-face","๐Ÿฅด":"woozy-face","๐Ÿ˜ต":"face-with-crossed-out-eyes","๐Ÿ˜ตโ€๐Ÿ’ซ":"face-with-spiral-eyes","๐Ÿคฏ":"exploding-head","๐Ÿค ":"cowboy-hat-face","๐Ÿฅณ":"partying-face","๐Ÿฅธ":"disguised-face","๐Ÿ˜Ž":"smiling-face-with-sunglasses","๐Ÿค“":"nerd-face","๐Ÿง":"face-with-monocle","๐Ÿ˜•":"confused-face","๐Ÿซค":"face-with-diagonal-mouth","๐Ÿ˜Ÿ":"worried-face","๐Ÿ™":"slightly-frowning-face","โ˜น๏ธ":"frowning-face","๐Ÿ˜ฎ":"face-with-open-mouth","๐Ÿ˜ฏ":"hushed-face","๐Ÿ˜ฒ":"astonished-face","๐Ÿ˜ณ":"flushed-face","๐Ÿฅบ":"pleading-face","๐Ÿฅน":"face-holding-back-tears","๐Ÿ˜ฆ":"frowning-face-with-open-mouth","๐Ÿ˜ง":"anguished-face","๐Ÿ˜จ":"fearful-face","๐Ÿ˜ฐ":"anxious-face-with-sweat","๐Ÿ˜ฅ":"sad-but-relieved-face","๐Ÿ˜ข":"crying-face","๐Ÿ˜ญ":"loudly-crying-face","๐Ÿ˜ฑ":"face-screaming-in-fear","๐Ÿ˜–":"confounded-face","๐Ÿ˜ฃ":"persevering-face","๐Ÿ˜ž":"disappointed-face","๐Ÿ˜“":"downcast-face-with-sweat","๐Ÿ˜ฉ":"weary-face","๐Ÿ˜ซ":"tired-face","๐Ÿฅฑ":"yawning-face","๐Ÿ˜ค":"face-with-steam-from-nose","๐Ÿ˜ก":"enraged-face","๐Ÿ˜ ":"angry-face","๐Ÿคฌ":"face-with-symbols-on-mouth","๐Ÿ˜ˆ":"smiling-face-with-horns","๐Ÿ‘ฟ":"angry-face-with-horns","๐Ÿ’€":"skull","โ˜ ๏ธ":"skull-and-crossbones","๐Ÿ’ฉ":"pile-of-poo","๐Ÿคก":"clown-face","๐Ÿ‘น":"ogre","๐Ÿ‘บ":"goblin","๐Ÿ‘ป":"ghost","๐Ÿ‘ฝ":"alien","๐Ÿ‘พ":"alien-monster","๐Ÿค–":"robot","๐Ÿ˜บ":"grinning-cat","๐Ÿ˜ธ":"grinning-cat-with-smiling-eyes","๐Ÿ˜น":"cat-with-tears-of-joy","๐Ÿ˜ป":"smiling-cat-with-heart-eyes","๐Ÿ˜ผ":"cat-with-wry-smile","๐Ÿ˜ฝ":"kissing-cat","๐Ÿ™€":"weary-cat","๐Ÿ˜ฟ":"crying-cat","๐Ÿ˜พ":"pouting-cat","๐Ÿ™ˆ":"see-no-evil-monkey","๐Ÿ™‰":"hear-no-evil-monkey","๐Ÿ™Š":"speak-no-evil-monkey","๐Ÿ’Œ":"love-letter","๐Ÿ’˜":"heart-with-arrow","๐Ÿ’":"heart-with-ribbon","๐Ÿ’–":"sparkling-heart","๐Ÿ’—":"growing-heart","๐Ÿ’“":"beating-heart","๐Ÿ’ž":"revolving-hearts","๐Ÿ’•":"two-hearts","๐Ÿ’Ÿ":"heart-decoration","โฃ๏ธ":"heart-exclamation","๐Ÿ’”":"broken-heart","โค๏ธโ€๐Ÿ”ฅ":"heart-on-fire","โค๏ธโ€๐Ÿฉน":"mending-heart","โค๏ธ":"red-heart","๐Ÿฉท":"pink-heart","๐Ÿงก":"orange-heart","๐Ÿ’›":"yellow-heart","๐Ÿ’š":"green-heart","๐Ÿ’™":"blue-heart","๐Ÿฉต":"light-blue-heart","๐Ÿ’œ":"purple-heart","๐ŸคŽ":"brown-heart","๐Ÿ–ค":"black-heart","๐Ÿฉถ":"grey-heart","๐Ÿค":"white-heart","๐Ÿ’‹":"kiss-mark","๐Ÿ’ฏ":"hundred-points","๐Ÿ’ข":"anger-symbol","๐Ÿ’ฅ":"collision","๐Ÿ’ซ":"dizzy","๐Ÿ’ฆ":"sweat-droplets","๐Ÿ’จ":"dashing-away","๐Ÿ•ณ๏ธ":"hole","๐Ÿ’ฌ":"speech-balloon","๐Ÿ‘๏ธโ€๐Ÿ—จ๏ธ":"eye-in-speech-bubble","๐Ÿ—จ๏ธ":"left-speech-bubble","๐Ÿ—ฏ๏ธ":"right-anger-bubble","๐Ÿ’ญ":"thought-balloon","๐Ÿ’ค":"zzz","๐Ÿ‘‹":"waving-hand","๐Ÿคš":"raised-back-of-hand","๐Ÿ–๏ธ":"hand-with-fingers-splayed","โœ‹":"raised-hand","๐Ÿ––":"vulcan-salute","๐Ÿซฑ":"rightwards-hand","๐Ÿซฒ":"leftwards-hand","๐Ÿซณ":"palm-down-hand","๐Ÿซด":"palm-up-hand","๐Ÿซท":"leftwards-pushing-hand","๐Ÿซธ":"rightwards-pushing-hand","๐Ÿ‘Œ":"ok-hand","๐ŸคŒ":"pinched-fingers","๐Ÿค":"pinching-hand","โœŒ๏ธ":"victory-hand","๐Ÿคž":"crossed-fingers","๐Ÿซฐ":"hand-with-index-finger-and-thumb-crossed","๐ŸคŸ":"love-you-gesture","๐Ÿค˜":"sign-of-the-horns","๐Ÿค™":"call-me-hand","๐Ÿ‘ˆ":"backhand-index-pointing-left","๐Ÿ‘‰":"backhand-index-pointing-right","๐Ÿ‘†":"backhand-index-pointing-up","๐Ÿ–•":"middle-finger","๐Ÿ‘‡":"backhand-index-pointing-down","โ˜๏ธ":"index-pointing-up","๐Ÿซต":"index-pointing-at-the-viewer","๐Ÿ‘":"thumbs-up","๐Ÿ‘Ž":"thumbs-down","โœŠ":"raised-fist","๐Ÿ‘Š":"oncoming-fist","๐Ÿค›":"left-facing-fist","๐Ÿคœ":"right-facing-fist","๐Ÿ‘":"clapping-hands","๐Ÿ™Œ":"raising-hands","๐Ÿซถ":"heart-hands","๐Ÿ‘":"open-hands","๐Ÿคฒ":"palms-up-together","๐Ÿค":"handshake","๐Ÿ™":"folded-hands","โœ๏ธ":"writing-hand","๐Ÿ’…":"nail-polish","๐Ÿคณ":"selfie","๐Ÿ’ช":"flexed-biceps","๐Ÿฆพ":"mechanical-arm","๐Ÿฆฟ":"mechanical-leg","๐Ÿฆต":"leg","๐Ÿฆถ":"foot","๐Ÿ‘‚":"ear","๐Ÿฆป":"ear-with-hearing-aid","๐Ÿ‘ƒ":"nose","๐Ÿง ":"brain","๐Ÿซ€":"anatomical-heart","๐Ÿซ":"lungs","๐Ÿฆท":"tooth","๐Ÿฆด":"bone","๐Ÿ‘€":"eyes","๐Ÿ‘๏ธ":"eye","๐Ÿ‘…":"tongue","๐Ÿ‘„":"mouth","๐Ÿซฆ":"biting-lip","๐Ÿ‘ถ":"baby","๐Ÿง’":"child","๐Ÿ‘ฆ":"boy","๐Ÿ‘ง":"girl","๐Ÿง‘":"person","๐Ÿ‘ฑ":"person-blond-hair","๐Ÿ‘จ":"man","๐Ÿง”":"person-beard","๐Ÿง”โ€โ™‚๏ธ":"man-beard","๐Ÿง”โ€โ™€๏ธ":"woman-beard","๐Ÿ‘จโ€๐Ÿฆฐ":"man-red-hair","๐Ÿ‘จโ€๐Ÿฆฑ":"man-curly-hair","๐Ÿ‘จโ€๐Ÿฆณ":"man-white-hair","๐Ÿ‘จโ€๐Ÿฆฒ":"man-bald","๐Ÿ‘ฉ":"woman","๐Ÿ‘ฉโ€๐Ÿฆฐ":"woman-red-hair","๐Ÿง‘โ€๐Ÿฆฐ":"person-red-hair","๐Ÿ‘ฉโ€๐Ÿฆฑ":"woman-curly-hair","๐Ÿง‘โ€๐Ÿฆฑ":"person-curly-hair","๐Ÿ‘ฉโ€๐Ÿฆณ":"woman-white-hair","๐Ÿง‘โ€๐Ÿฆณ":"person-white-hair","๐Ÿ‘ฉโ€๐Ÿฆฒ":"woman-bald","๐Ÿง‘โ€๐Ÿฆฒ":"person-bald","๐Ÿ‘ฑโ€โ™€๏ธ":"woman-blond-hair","๐Ÿ‘ฑโ€โ™‚๏ธ":"man-blond-hair","๐Ÿง“":"older-person","๐Ÿ‘ด":"old-man","๐Ÿ‘ต":"old-woman","๐Ÿ™":"person-frowning","๐Ÿ™โ€โ™‚๏ธ":"man-frowning","๐Ÿ™โ€โ™€๏ธ":"woman-frowning","๐Ÿ™Ž":"person-pouting","๐Ÿ™Žโ€โ™‚๏ธ":"man-pouting","๐Ÿ™Žโ€โ™€๏ธ":"woman-pouting","๐Ÿ™…":"person-gesturing-no","๐Ÿ™…โ€โ™‚๏ธ":"man-gesturing-no","๐Ÿ™…โ€โ™€๏ธ":"woman-gesturing-no","๐Ÿ™†":"person-gesturing-ok","๐Ÿ™†โ€โ™‚๏ธ":"man-gesturing-ok","๐Ÿ™†โ€โ™€๏ธ":"woman-gesturing-ok","๐Ÿ’":"person-tipping-hand","๐Ÿ’โ€โ™‚๏ธ":"man-tipping-hand","๐Ÿ’โ€โ™€๏ธ":"woman-tipping-hand","๐Ÿ™‹":"person-raising-hand","๐Ÿ™‹โ€โ™‚๏ธ":"man-raising-hand","๐Ÿ™‹โ€โ™€๏ธ":"woman-raising-hand","๐Ÿง":"deaf-person","๐Ÿงโ€โ™‚๏ธ":"deaf-man","๐Ÿงโ€โ™€๏ธ":"deaf-woman","๐Ÿ™‡":"person-bowing","๐Ÿ™‡โ€โ™‚๏ธ":"man-bowing","๐Ÿ™‡โ€โ™€๏ธ":"woman-bowing","๐Ÿคฆ":"person-facepalming","๐Ÿคฆโ€โ™‚๏ธ":"man-facepalming","๐Ÿคฆโ€โ™€๏ธ":"woman-facepalming","๐Ÿคท":"person-shrugging","๐Ÿคทโ€โ™‚๏ธ":"man-shrugging","๐Ÿคทโ€โ™€๏ธ":"woman-shrugging","๐Ÿง‘โ€โš•๏ธ":"health-worker","๐Ÿ‘จโ€โš•๏ธ":"man-health-worker","๐Ÿ‘ฉโ€โš•๏ธ":"woman-health-worker","๐Ÿง‘โ€๐ŸŽ“":"student","๐Ÿ‘จโ€๐ŸŽ“":"man-student","๐Ÿ‘ฉโ€๐ŸŽ“":"woman-student","๐Ÿง‘โ€๐Ÿซ":"teacher","๐Ÿ‘จโ€๐Ÿซ":"man-teacher","๐Ÿ‘ฉโ€๐Ÿซ":"woman-teacher","๐Ÿง‘โ€โš–๏ธ":"judge","๐Ÿ‘จโ€โš–๏ธ":"man-judge","๐Ÿ‘ฉโ€โš–๏ธ":"woman-judge","๐Ÿง‘โ€๐ŸŒพ":"farmer","๐Ÿ‘จโ€๐ŸŒพ":"man-farmer","๐Ÿ‘ฉโ€๐ŸŒพ":"woman-farmer","๐Ÿง‘โ€๐Ÿณ":"cook","๐Ÿ‘จโ€๐Ÿณ":"man-cook","๐Ÿ‘ฉโ€๐Ÿณ":"woman-cook","๐Ÿง‘โ€๐Ÿ”ง":"mechanic","๐Ÿ‘จโ€๐Ÿ”ง":"man-mechanic","๐Ÿ‘ฉโ€๐Ÿ”ง":"woman-mechanic","๐Ÿง‘โ€๐Ÿญ":"factory-worker","๐Ÿ‘จโ€๐Ÿญ":"man-factory-worker","๐Ÿ‘ฉโ€๐Ÿญ":"woman-factory-worker","๐Ÿง‘โ€๐Ÿ’ผ":"office-worker","๐Ÿ‘จโ€๐Ÿ’ผ":"man-office-worker","๐Ÿ‘ฉโ€๐Ÿ’ผ":"woman-office-worker","๐Ÿง‘โ€๐Ÿ”ฌ":"scientist","๐Ÿ‘จโ€๐Ÿ”ฌ":"man-scientist","๐Ÿ‘ฉโ€๐Ÿ”ฌ":"woman-scientist","๐Ÿง‘โ€๐Ÿ’ป":"technologist","๐Ÿ‘จโ€๐Ÿ’ป":"man-technologist","๐Ÿ‘ฉโ€๐Ÿ’ป":"woman-technologist","๐Ÿง‘โ€๐ŸŽค":"singer","๐Ÿ‘จโ€๐ŸŽค":"man-singer","๐Ÿ‘ฉโ€๐ŸŽค":"woman-singer","๐Ÿง‘โ€๐ŸŽจ":"artist","๐Ÿ‘จโ€๐ŸŽจ":"man-artist","๐Ÿ‘ฉโ€๐ŸŽจ":"woman-artist","๐Ÿง‘โ€โœˆ๏ธ":"pilot","๐Ÿ‘จโ€โœˆ๏ธ":"man-pilot","๐Ÿ‘ฉโ€โœˆ๏ธ":"woman-pilot","๐Ÿง‘โ€๐Ÿš€":"astronaut","๐Ÿ‘จโ€๐Ÿš€":"man-astronaut","๐Ÿ‘ฉโ€๐Ÿš€":"woman-astronaut","๐Ÿง‘โ€๐Ÿš’":"firefighter","๐Ÿ‘จโ€๐Ÿš’":"man-firefighter","๐Ÿ‘ฉโ€๐Ÿš’":"woman-firefighter","๐Ÿ‘ฎ":"police-officer","๐Ÿ‘ฎโ€โ™‚๏ธ":"man-police-officer","๐Ÿ‘ฎโ€โ™€๏ธ":"woman-police-officer","๐Ÿ•ต๏ธ":"detective","๐Ÿ•ต๏ธโ€โ™‚๏ธ":"man-detective","๐Ÿ•ต๏ธโ€โ™€๏ธ":"woman-detective","๐Ÿ’‚":"guard","๐Ÿ’‚โ€โ™‚๏ธ":"man-guard","๐Ÿ’‚โ€โ™€๏ธ":"woman-guard","๐Ÿฅท":"ninja","๐Ÿ‘ท":"construction-worker","๐Ÿ‘ทโ€โ™‚๏ธ":"man-construction-worker","๐Ÿ‘ทโ€โ™€๏ธ":"woman-construction-worker","๐Ÿซ…":"person-with-crown","๐Ÿคด":"prince","๐Ÿ‘ธ":"princess","๐Ÿ‘ณ":"person-wearing-turban","๐Ÿ‘ณโ€โ™‚๏ธ":"man-wearing-turban","๐Ÿ‘ณโ€โ™€๏ธ":"woman-wearing-turban","๐Ÿ‘ฒ":"person-with-skullcap","๐Ÿง•":"woman-with-headscarf","๐Ÿคต":"person-in-tuxedo","๐Ÿคตโ€โ™‚๏ธ":"man-in-tuxedo","๐Ÿคตโ€โ™€๏ธ":"woman-in-tuxedo","๐Ÿ‘ฐ":"person-with-veil","๐Ÿ‘ฐโ€โ™‚๏ธ":"man-with-veil","๐Ÿ‘ฐโ€โ™€๏ธ":"woman-with-veil","๐Ÿคฐ":"pregnant-woman","๐Ÿซƒ":"pregnant-man","๐Ÿซ„":"pregnant-person","๐Ÿคฑ":"breast-feeding","๐Ÿ‘ฉโ€๐Ÿผ":"woman-feeding-baby","๐Ÿ‘จโ€๐Ÿผ":"man-feeding-baby","๐Ÿง‘โ€๐Ÿผ":"person-feeding-baby","๐Ÿ‘ผ":"baby-angel","๐ŸŽ…":"santa-claus","๐Ÿคถ":"mrs-claus","๐Ÿง‘โ€๐ŸŽ„":"mx-claus","๐Ÿฆธ":"superhero","๐Ÿฆธโ€โ™‚๏ธ":"man-superhero","๐Ÿฆธโ€โ™€๏ธ":"woman-superhero","๐Ÿฆน":"supervillain","๐Ÿฆนโ€โ™‚๏ธ":"man-supervillain","๐Ÿฆนโ€โ™€๏ธ":"woman-supervillain","๐Ÿง™":"mage","๐Ÿง™โ€โ™‚๏ธ":"man-mage","๐Ÿง™โ€โ™€๏ธ":"woman-mage","๐Ÿงš":"fairy","๐Ÿงšโ€โ™‚๏ธ":"man-fairy","๐Ÿงšโ€โ™€๏ธ":"woman-fairy","๐Ÿง›":"vampire","๐Ÿง›โ€โ™‚๏ธ":"man-vampire","๐Ÿง›โ€โ™€๏ธ":"woman-vampire","๐Ÿงœ":"merperson","๐Ÿงœโ€โ™‚๏ธ":"merman","๐Ÿงœโ€โ™€๏ธ":"mermaid","๐Ÿง":"elf","๐Ÿงโ€โ™‚๏ธ":"man-elf","๐Ÿงโ€โ™€๏ธ":"woman-elf","๐Ÿงž":"genie","๐Ÿงžโ€โ™‚๏ธ":"man-genie","๐Ÿงžโ€โ™€๏ธ":"woman-genie","๐ŸงŸ":"zombie","๐ŸงŸโ€โ™‚๏ธ":"man-zombie","๐ŸงŸโ€โ™€๏ธ":"woman-zombie","๐ŸงŒ":"troll","๐Ÿ’†":"person-getting-massage","๐Ÿ’†โ€โ™‚๏ธ":"man-getting-massage","๐Ÿ’†โ€โ™€๏ธ":"woman-getting-massage","๐Ÿ’‡":"person-getting-haircut","๐Ÿ’‡โ€โ™‚๏ธ":"man-getting-haircut","๐Ÿ’‡โ€โ™€๏ธ":"woman-getting-haircut","๐Ÿšถ":"person-walking","๐Ÿšถโ€โ™‚๏ธ":"man-walking","๐Ÿšถโ€โ™€๏ธ":"woman-walking","๐Ÿง":"person-standing","๐Ÿงโ€โ™‚๏ธ":"man-standing","๐Ÿงโ€โ™€๏ธ":"woman-standing","๐ŸงŽ":"person-kneeling","๐ŸงŽโ€โ™‚๏ธ":"man-kneeling","๐ŸงŽโ€โ™€๏ธ":"woman-kneeling","๐Ÿง‘โ€๐Ÿฆฏ":"person-with-white-cane","๐Ÿ‘จโ€๐Ÿฆฏ":"man-with-white-cane","๐Ÿ‘ฉโ€๐Ÿฆฏ":"woman-with-white-cane","๐Ÿง‘โ€๐Ÿฆผ":"person-in-motorized-wheelchair","๐Ÿ‘จโ€๐Ÿฆผ":"man-in-motorized-wheelchair","๐Ÿ‘ฉโ€๐Ÿฆผ":"woman-in-motorized-wheelchair","๐Ÿง‘โ€๐Ÿฆฝ":"person-in-manual-wheelchair","๐Ÿ‘จโ€๐Ÿฆฝ":"man-in-manual-wheelchair","๐Ÿ‘ฉโ€๐Ÿฆฝ":"woman-in-manual-wheelchair","๐Ÿƒ":"person-running","๐Ÿƒโ€โ™‚๏ธ":"man-running","๐Ÿƒโ€โ™€๏ธ":"woman-running","๐Ÿ’ƒ":"woman-dancing","๐Ÿ•บ":"man-dancing","๐Ÿ•ด๏ธ":"person-in-suit-levitating","๐Ÿ‘ฏ":"people-with-bunny-ears","๐Ÿ‘ฏโ€โ™‚๏ธ":"men-with-bunny-ears","๐Ÿ‘ฏโ€โ™€๏ธ":"women-with-bunny-ears","๐Ÿง–":"person-in-steamy-room","๐Ÿง–โ€โ™‚๏ธ":"man-in-steamy-room","๐Ÿง–โ€โ™€๏ธ":"woman-in-steamy-room","๐Ÿง—":"person-climbing","๐Ÿง—โ€โ™‚๏ธ":"man-climbing","๐Ÿง—โ€โ™€๏ธ":"woman-climbing","๐Ÿคบ":"person-fencing","๐Ÿ‡":"horse-racing","โ›ท๏ธ":"skier","๐Ÿ‚":"snowboarder","๐ŸŒ๏ธ":"person-golfing","๐ŸŒ๏ธโ€โ™‚๏ธ":"man-golfing","๐ŸŒ๏ธโ€โ™€๏ธ":"woman-golfing","๐Ÿ„":"person-surfing","๐Ÿ„โ€โ™‚๏ธ":"man-surfing","๐Ÿ„โ€โ™€๏ธ":"woman-surfing","๐Ÿšฃ":"person-rowing-boat","๐Ÿšฃโ€โ™‚๏ธ":"man-rowing-boat","๐Ÿšฃโ€โ™€๏ธ":"woman-rowing-boat","๐ŸŠ":"person-swimming","๐ŸŠโ€โ™‚๏ธ":"man-swimming","๐ŸŠโ€โ™€๏ธ":"woman-swimming","โ›น๏ธ":"person-bouncing-ball","โ›น๏ธโ€โ™‚๏ธ":"man-bouncing-ball","โ›น๏ธโ€โ™€๏ธ":"woman-bouncing-ball","๐Ÿ‹๏ธ":"person-lifting-weights","๐Ÿ‹๏ธโ€โ™‚๏ธ":"man-lifting-weights","๐Ÿ‹๏ธโ€โ™€๏ธ":"woman-lifting-weights","๐Ÿšด":"person-biking","๐Ÿšดโ€โ™‚๏ธ":"man-biking","๐Ÿšดโ€โ™€๏ธ":"woman-biking","๐Ÿšต":"person-mountain-biking","๐Ÿšตโ€โ™‚๏ธ":"man-mountain-biking","๐Ÿšตโ€โ™€๏ธ":"woman-mountain-biking","๐Ÿคธ":"person-cartwheeling","๐Ÿคธโ€โ™‚๏ธ":"man-cartwheeling","๐Ÿคธโ€โ™€๏ธ":"woman-cartwheeling","๐Ÿคผ":"people-wrestling","๐Ÿคผโ€โ™‚๏ธ":"men-wrestling","๐Ÿคผโ€โ™€๏ธ":"women-wrestling","๐Ÿคฝ":"person-playing-water-polo","๐Ÿคฝโ€โ™‚๏ธ":"man-playing-water-polo","๐Ÿคฝโ€โ™€๏ธ":"woman-playing-water-polo","๐Ÿคพ":"person-playing-handball","๐Ÿคพโ€โ™‚๏ธ":"man-playing-handball","๐Ÿคพโ€โ™€๏ธ":"woman-playing-handball","๐Ÿคน":"person-juggling","๐Ÿคนโ€โ™‚๏ธ":"man-juggling","๐Ÿคนโ€โ™€๏ธ":"woman-juggling","๐Ÿง˜":"person-in-lotus-position","๐Ÿง˜โ€โ™‚๏ธ":"man-in-lotus-position","๐Ÿง˜โ€โ™€๏ธ":"woman-in-lotus-position","๐Ÿ›€":"person-taking-bath","๐Ÿ›Œ":"person-in-bed","๐Ÿง‘โ€๐Ÿคโ€๐Ÿง‘":"people-holding-hands","๐Ÿ‘ญ":"women-holding-hands","๐Ÿ‘ซ":"woman-and-man-holding-hands","๐Ÿ‘ฌ":"men-holding-hands","๐Ÿ’":"kiss","๐Ÿ‘ฉโ€โค๏ธโ€๐Ÿ’‹โ€๐Ÿ‘จ":"kiss-woman-man","๐Ÿ‘จโ€โค๏ธโ€๐Ÿ’‹โ€๐Ÿ‘จ":"kiss-man-man","๐Ÿ‘ฉโ€โค๏ธโ€๐Ÿ’‹โ€๐Ÿ‘ฉ":"kiss-woman-woman","๐Ÿ’‘":"couple-with-heart","๐Ÿ‘ฉโ€โค๏ธโ€๐Ÿ‘จ":"couple-with-heart-woman-man","๐Ÿ‘จโ€โค๏ธโ€๐Ÿ‘จ":"couple-with-heart-man-man","๐Ÿ‘ฉโ€โค๏ธโ€๐Ÿ‘ฉ":"couple-with-heart-woman-woman","๐Ÿ‘ช":"family","๐Ÿ‘จโ€๐Ÿ‘ฉโ€๐Ÿ‘ฆ":"family-man-woman-boy","๐Ÿ‘จโ€๐Ÿ‘ฉโ€๐Ÿ‘ง":"family-man-woman-girl","๐Ÿ‘จโ€๐Ÿ‘ฉโ€๐Ÿ‘งโ€๐Ÿ‘ฆ":"family-man-woman-girl-boy","๐Ÿ‘จโ€๐Ÿ‘ฉโ€๐Ÿ‘ฆโ€๐Ÿ‘ฆ":"family-man-woman-boy-boy","๐Ÿ‘จโ€๐Ÿ‘ฉโ€๐Ÿ‘งโ€๐Ÿ‘ง":"family-man-woman-girl-girl","๐Ÿ‘จโ€๐Ÿ‘จโ€๐Ÿ‘ฆ":"family-man-man-boy","๐Ÿ‘จโ€๐Ÿ‘จโ€๐Ÿ‘ง":"family-man-man-girl","๐Ÿ‘จโ€๐Ÿ‘จโ€๐Ÿ‘งโ€๐Ÿ‘ฆ":"family-man-man-girl-boy","๐Ÿ‘จโ€๐Ÿ‘จโ€๐Ÿ‘ฆโ€๐Ÿ‘ฆ":"family-man-man-boy-boy","๐Ÿ‘จโ€๐Ÿ‘จโ€๐Ÿ‘งโ€๐Ÿ‘ง":"family-man-man-girl-girl","๐Ÿ‘ฉโ€๐Ÿ‘ฉโ€๐Ÿ‘ฆ":"family-woman-woman-boy","๐Ÿ‘ฉโ€๐Ÿ‘ฉโ€๐Ÿ‘ง":"family-woman-woman-girl","๐Ÿ‘ฉโ€๐Ÿ‘ฉโ€๐Ÿ‘งโ€๐Ÿ‘ฆ":"family-woman-woman-girl-boy","๐Ÿ‘ฉโ€๐Ÿ‘ฉโ€๐Ÿ‘ฆโ€๐Ÿ‘ฆ":"family-woman-woman-boy-boy","๐Ÿ‘ฉโ€๐Ÿ‘ฉโ€๐Ÿ‘งโ€๐Ÿ‘ง":"family-woman-woman-girl-girl","๐Ÿ‘จโ€๐Ÿ‘ฆ":"family-man-boy","๐Ÿ‘จโ€๐Ÿ‘ฆโ€๐Ÿ‘ฆ":"family-man-boy-boy","๐Ÿ‘จโ€๐Ÿ‘ง":"family-man-girl","๐Ÿ‘จโ€๐Ÿ‘งโ€๐Ÿ‘ฆ":"family-man-girl-boy","๐Ÿ‘จโ€๐Ÿ‘งโ€๐Ÿ‘ง":"family-man-girl-girl","๐Ÿ‘ฉโ€๐Ÿ‘ฆ":"family-woman-boy","๐Ÿ‘ฉโ€๐Ÿ‘ฆโ€๐Ÿ‘ฆ":"family-woman-boy-boy","๐Ÿ‘ฉโ€๐Ÿ‘ง":"family-woman-girl","๐Ÿ‘ฉโ€๐Ÿ‘งโ€๐Ÿ‘ฆ":"family-woman-girl-boy","๐Ÿ‘ฉโ€๐Ÿ‘งโ€๐Ÿ‘ง":"family-woman-girl-girl","๐Ÿ—ฃ๏ธ":"speaking-head","๐Ÿ‘ค":"bust-in-silhouette","๐Ÿ‘ฅ":"busts-in-silhouette","๐Ÿซ‚":"people-hugging","๐Ÿ‘ฃ":"footprints","๐Ÿต":"monkey-face","๐Ÿ’":"monkey","๐Ÿฆ":"gorilla","๐Ÿฆง":"orangutan","๐Ÿถ":"dog-face","๐Ÿ•":"dog","๐Ÿฆฎ":"guide-dog","๐Ÿ•โ€๐Ÿฆบ":"service-dog","๐Ÿฉ":"poodle","๐Ÿบ":"wolf","๐ŸฆŠ":"fox","๐Ÿฆ":"raccoon","๐Ÿฑ":"cat-face","๐Ÿˆ":"cat","๐Ÿˆโ€โฌ›":"black-cat","๐Ÿฆ":"lion","๐Ÿฏ":"tiger-face","๐Ÿ…":"tiger","๐Ÿ†":"leopard","๐Ÿด":"horse-face","๐ŸซŽ":"moose","๐Ÿซ":"donkey","๐ŸŽ":"horse","๐Ÿฆ„":"unicorn","๐Ÿฆ“":"zebra","๐ŸฆŒ":"deer","๐Ÿฆฌ":"bison","๐Ÿฎ":"cow-face","๐Ÿ‚":"ox","๐Ÿƒ":"water-buffalo","๐Ÿ„":"cow","๐Ÿท":"pig-face","๐Ÿ–":"pig","๐Ÿ—":"boar","๐Ÿฝ":"pig-nose","๐Ÿ":"ram","๐Ÿ‘":"ewe","๐Ÿ":"goat","๐Ÿช":"camel","๐Ÿซ":"two-hump-camel","๐Ÿฆ™":"llama","๐Ÿฆ’":"giraffe","๐Ÿ˜":"elephant","๐Ÿฆฃ":"mammoth","๐Ÿฆ":"rhinoceros","๐Ÿฆ›":"hippopotamus","๐Ÿญ":"mouse-face","๐Ÿ":"mouse","๐Ÿ€":"rat","๐Ÿน":"hamster","๐Ÿฐ":"rabbit-face","๐Ÿ‡":"rabbit","๐Ÿฟ๏ธ":"chipmunk","๐Ÿฆซ":"beaver","๐Ÿฆ”":"hedgehog","๐Ÿฆ‡":"bat","๐Ÿป":"bear","๐Ÿปโ€โ„๏ธ":"polar-bear","๐Ÿจ":"koala","๐Ÿผ":"panda","๐Ÿฆฅ":"sloth","๐Ÿฆฆ":"otter","๐Ÿฆจ":"skunk","๐Ÿฆ˜":"kangaroo","๐Ÿฆก":"badger","๐Ÿพ":"paw-prints","๐Ÿฆƒ":"turkey","๐Ÿ”":"chicken","๐Ÿ“":"rooster","๐Ÿฃ":"hatching-chick","๐Ÿค":"baby-chick","๐Ÿฅ":"front-facing-baby-chick","๐Ÿฆ":"bird","๐Ÿง":"penguin","๐Ÿ•Š๏ธ":"dove","๐Ÿฆ…":"eagle","๐Ÿฆ†":"duck","๐Ÿฆข":"swan","๐Ÿฆ‰":"owl","๐Ÿฆค":"dodo","๐Ÿชถ":"feather","๐Ÿฆฉ":"flamingo","๐Ÿฆš":"peacock","๐Ÿฆœ":"parrot","๐Ÿชฝ":"wing","๐Ÿฆโ€โฌ›":"black-bird","๐Ÿชฟ":"goose","๐Ÿธ":"frog","๐ŸŠ":"crocodile","๐Ÿข":"turtle","๐ŸฆŽ":"lizard","๐Ÿ":"snake","๐Ÿฒ":"dragon-face","๐Ÿ‰":"dragon","๐Ÿฆ•":"sauropod","๐Ÿฆ–":"t-rex","๐Ÿณ":"spouting-whale","๐Ÿ‹":"whale","๐Ÿฌ":"dolphin","๐Ÿฆญ":"seal","๐ŸŸ":"fish","๐Ÿ ":"tropical-fish","๐Ÿก":"blowfish","๐Ÿฆˆ":"shark","๐Ÿ™":"octopus","๐Ÿš":"spiral-shell","๐Ÿชธ":"coral","๐Ÿชผ":"jellyfish","๐ŸŒ":"snail","๐Ÿฆ‹":"butterfly","๐Ÿ›":"bug","๐Ÿœ":"ant","๐Ÿ":"honeybee","๐Ÿชฒ":"beetle","๐Ÿž":"lady-beetle","๐Ÿฆ—":"cricket","๐Ÿชณ":"cockroach","๐Ÿ•ท๏ธ":"spider","๐Ÿ•ธ๏ธ":"spider-web","๐Ÿฆ‚":"scorpion","๐ŸฆŸ":"mosquito","๐Ÿชฐ":"fly","๐Ÿชฑ":"worm","๐Ÿฆ ":"microbe","๐Ÿ’":"bouquet","๐ŸŒธ":"cherry-blossom","๐Ÿ’ฎ":"white-flower","๐Ÿชท":"lotus","๐Ÿต๏ธ":"rosette","๐ŸŒน":"rose","๐Ÿฅ€":"wilted-flower","๐ŸŒบ":"hibiscus","๐ŸŒป":"sunflower","๐ŸŒผ":"blossom","๐ŸŒท":"tulip","๐Ÿชป":"hyacinth","๐ŸŒฑ":"seedling","๐Ÿชด":"potted-plant","๐ŸŒฒ":"evergreen-tree","๐ŸŒณ":"deciduous-tree","๐ŸŒด":"palm-tree","๐ŸŒต":"cactus","๐ŸŒพ":"sheaf-of-rice","๐ŸŒฟ":"herb","โ˜˜๏ธ":"shamrock","๐Ÿ€":"four-leaf-clover","๐Ÿ":"maple-leaf","๐Ÿ‚":"fallen-leaf","๐Ÿƒ":"leaf-fluttering-in-wind","๐Ÿชน":"empty-nest","๐Ÿชบ":"nest-with-eggs","๐Ÿ„":"mushroom","๐Ÿ‡":"grapes","๐Ÿˆ":"melon","๐Ÿ‰":"watermelon","๐ŸŠ":"tangerine","๐Ÿ‹":"lemon","๐ŸŒ":"banana","๐Ÿ":"pineapple","๐Ÿฅญ":"mango","๐ŸŽ":"red-apple","๐Ÿ":"green-apple","๐Ÿ":"pear","๐Ÿ‘":"peach","๐Ÿ’":"cherries","๐Ÿ“":"strawberry","๐Ÿซ":"blueberries","๐Ÿฅ":"kiwi-fruit","๐Ÿ…":"tomato","๐Ÿซ’":"olive","๐Ÿฅฅ":"coconut","๐Ÿฅ‘":"avocado","๐Ÿ†":"eggplant","๐Ÿฅ”":"potato","๐Ÿฅ•":"carrot","๐ŸŒฝ":"ear-of-corn","๐ŸŒถ๏ธ":"hot-pepper","๐Ÿซ‘":"bell-pepper","๐Ÿฅ’":"cucumber","๐Ÿฅฌ":"leafy-green","๐Ÿฅฆ":"broccoli","๐Ÿง„":"garlic","๐Ÿง…":"onion","๐Ÿฅœ":"peanuts","๐Ÿซ˜":"beans","๐ŸŒฐ":"chestnut","๐Ÿซš":"ginger-root","๐Ÿซ›":"pea-pod","๐Ÿž":"bread","๐Ÿฅ":"croissant","๐Ÿฅ–":"baguette-bread","๐Ÿซ“":"flatbread","๐Ÿฅจ":"pretzel","๐Ÿฅฏ":"bagel","๐Ÿฅž":"pancakes","๐Ÿง‡":"waffle","๐Ÿง€":"cheese-wedge","๐Ÿ–":"meat-on-bone","๐Ÿ—":"poultry-leg","๐Ÿฅฉ":"cut-of-meat","๐Ÿฅ“":"bacon","๐Ÿ”":"hamburger","๐ŸŸ":"french-fries","๐Ÿ•":"pizza","๐ŸŒญ":"hot-dog","๐Ÿฅช":"sandwich","๐ŸŒฎ":"taco","๐ŸŒฏ":"burrito","๐Ÿซ”":"tamale","๐Ÿฅ™":"stuffed-flatbread","๐Ÿง†":"falafel","๐Ÿฅš":"egg","๐Ÿณ":"cooking","๐Ÿฅ˜":"shallow-pan-of-food","๐Ÿฒ":"pot-of-food","๐Ÿซ•":"fondue","๐Ÿฅฃ":"bowl-with-spoon","๐Ÿฅ—":"green-salad","๐Ÿฟ":"popcorn","๐Ÿงˆ":"butter","๐Ÿง‚":"salt","๐Ÿฅซ":"canned-food","๐Ÿฑ":"bento-box","๐Ÿ˜":"rice-cracker","๐Ÿ™":"rice-ball","๐Ÿš":"cooked-rice","๐Ÿ›":"curry-rice","๐Ÿœ":"steaming-bowl","๐Ÿ":"spaghetti","๐Ÿ ":"roasted-sweet-potato","๐Ÿข":"oden","๐Ÿฃ":"sushi","๐Ÿค":"fried-shrimp","๐Ÿฅ":"fish-cake-with-swirl","๐Ÿฅฎ":"moon-cake","๐Ÿก":"dango","๐ŸฅŸ":"dumpling","๐Ÿฅ ":"fortune-cookie","๐Ÿฅก":"takeout-box","๐Ÿฆ€":"crab","๐Ÿฆž":"lobster","๐Ÿฆ":"shrimp","๐Ÿฆ‘":"squid","๐Ÿฆช":"oyster","๐Ÿฆ":"soft-ice-cream","๐Ÿง":"shaved-ice","๐Ÿจ":"ice-cream","๐Ÿฉ":"doughnut","๐Ÿช":"cookie","๐ŸŽ‚":"birthday-cake","๐Ÿฐ":"shortcake","๐Ÿง":"cupcake","๐Ÿฅง":"pie","๐Ÿซ":"chocolate-bar","๐Ÿฌ":"candy","๐Ÿญ":"lollipop","๐Ÿฎ":"custard","๐Ÿฏ":"honey-pot","๐Ÿผ":"baby-bottle","๐Ÿฅ›":"glass-of-milk","โ˜•":"hot-beverage","๐Ÿซ–":"teapot","๐Ÿต":"teacup-without-handle","๐Ÿถ":"sake","๐Ÿพ":"bottle-with-popping-cork","๐Ÿท":"wine-glass","๐Ÿธ":"cocktail-glass","๐Ÿน":"tropical-drink","๐Ÿบ":"beer-mug","๐Ÿป":"clinking-beer-mugs","๐Ÿฅ‚":"clinking-glasses","๐Ÿฅƒ":"tumbler-glass","๐Ÿซ—":"pouring-liquid","๐Ÿฅค":"cup-with-straw","๐Ÿง‹":"bubble-tea","๐Ÿงƒ":"beverage-box","๐Ÿง‰":"mate","๐ŸงŠ":"ice","๐Ÿฅข":"chopsticks","๐Ÿฝ๏ธ":"fork-and-knife-with-plate","๐Ÿด":"fork-and-knife","๐Ÿฅ„":"spoon","๐Ÿ”ช":"kitchen-knife","๐Ÿซ™":"jar","๐Ÿบ":"amphora","๐ŸŒ":"globe-showing-europe-africa","๐ŸŒŽ":"globe-showing-americas","๐ŸŒ":"globe-showing-asia-australia","๐ŸŒ":"globe-with-meridians","๐Ÿ—บ๏ธ":"world-map","๐Ÿ—พ":"map-of-japan","๐Ÿงญ":"compass","๐Ÿ”๏ธ":"snow-capped-mountain","โ›ฐ๏ธ":"mountain","๐ŸŒ‹":"volcano","๐Ÿ—ป":"mount-fuji","๐Ÿ•๏ธ":"camping","๐Ÿ–๏ธ":"beach-with-umbrella","๐Ÿœ๏ธ":"desert","๐Ÿ๏ธ":"desert-island","๐Ÿž๏ธ":"national-park","๐ŸŸ๏ธ":"stadium","๐Ÿ›๏ธ":"classical-building","๐Ÿ—๏ธ":"building-construction","๐Ÿงฑ":"brick","๐Ÿชจ":"rock","๐Ÿชต":"wood","๐Ÿ›–":"hut","๐Ÿ˜๏ธ":"houses","๐Ÿš๏ธ":"derelict-house","๐Ÿ ":"house","๐Ÿก":"house-with-garden","๐Ÿข":"office-building","๐Ÿฃ":"japanese-post-office","๐Ÿค":"post-office","๐Ÿฅ":"hospital","๐Ÿฆ":"bank","๐Ÿจ":"hotel","๐Ÿฉ":"love-hotel","๐Ÿช":"convenience-store","๐Ÿซ":"school","๐Ÿฌ":"department-store","๐Ÿญ":"factory","๐Ÿฏ":"japanese-castle","๐Ÿฐ":"castle","๐Ÿ’’":"wedding","๐Ÿ—ผ":"tokyo-tower","๐Ÿ—ฝ":"statue-of-liberty","โ›ช":"church","๐Ÿ•Œ":"mosque","๐Ÿ›•":"hindu-temple","๐Ÿ•":"synagogue","โ›ฉ๏ธ":"shinto-shrine","๐Ÿ•‹":"kaaba","โ›ฒ":"fountain","โ›บ":"tent","๐ŸŒ":"foggy","๐ŸŒƒ":"night-with-stars","๐Ÿ™๏ธ":"cityscape","๐ŸŒ„":"sunrise-over-mountains","๐ŸŒ…":"sunrise","๐ŸŒ†":"cityscape-at-dusk","๐ŸŒ‡":"sunset","๐ŸŒ‰":"bridge-at-night","โ™จ๏ธ":"hot-springs","๐ŸŽ ":"carousel-horse","๐Ÿ›":"playground-slide","๐ŸŽก":"ferris-wheel","๐ŸŽข":"roller-coaster","๐Ÿ’ˆ":"barber-pole","๐ŸŽช":"circus-tent","๐Ÿš‚":"locomotive","๐Ÿšƒ":"railway-car","๐Ÿš„":"high-speed-train","๐Ÿš…":"bullet-train","๐Ÿš†":"train","๐Ÿš‡":"metro","๐Ÿšˆ":"light-rail","๐Ÿš‰":"station","๐ŸšŠ":"tram","๐Ÿš":"monorail","๐Ÿšž":"mountain-railway","๐Ÿš‹":"tram-car","๐ŸšŒ":"bus","๐Ÿš":"oncoming-bus","๐ŸšŽ":"trolleybus","๐Ÿš":"minibus","๐Ÿš‘":"ambulance","๐Ÿš’":"fire-engine","๐Ÿš“":"police-car","๐Ÿš”":"oncoming-police-car","๐Ÿš•":"taxi","๐Ÿš–":"oncoming-taxi","๐Ÿš—":"automobile","๐Ÿš˜":"oncoming-automobile","๐Ÿš™":"sport-utility-vehicle","๐Ÿ›ป":"pickup-truck","๐Ÿšš":"delivery-truck","๐Ÿš›":"articulated-lorry","๐Ÿšœ":"tractor","๐ŸŽ๏ธ":"racing-car","๐Ÿ๏ธ":"motorcycle","๐Ÿ›ต":"motor-scooter","๐Ÿฆฝ":"manual-wheelchair","๐Ÿฆผ":"motorized-wheelchair","๐Ÿ›บ":"auto-rickshaw","๐Ÿšฒ":"bicycle","๐Ÿ›ด":"kick-scooter","๐Ÿ›น":"skateboard","๐Ÿ›ผ":"roller-skate","๐Ÿš":"bus-stop","๐Ÿ›ฃ๏ธ":"motorway","๐Ÿ›ค๏ธ":"railway-track","๐Ÿ›ข๏ธ":"oil-drum","โ›ฝ":"fuel-pump","๐Ÿ›ž":"wheel","๐Ÿšจ":"police-car-light","๐Ÿšฅ":"horizontal-traffic-light","๐Ÿšฆ":"vertical-traffic-light","๐Ÿ›‘":"stop-sign","๐Ÿšง":"construction","โš“":"anchor","๐Ÿ›Ÿ":"ring-buoy","โ›ต":"sailboat","๐Ÿ›ถ":"canoe","๐Ÿšค":"speedboat","๐Ÿ›ณ๏ธ":"passenger-ship","โ›ด๏ธ":"ferry","๐Ÿ›ฅ๏ธ":"motor-boat","๐Ÿšข":"ship","โœˆ๏ธ":"airplane","๐Ÿ›ฉ๏ธ":"small-airplane","๐Ÿ›ซ":"airplane-departure","๐Ÿ›ฌ":"airplane-arrival","๐Ÿช‚":"parachute","๐Ÿ’บ":"seat","๐Ÿš":"helicopter","๐ŸšŸ":"suspension-railway","๐Ÿš ":"mountain-cableway","๐Ÿšก":"aerial-tramway","๐Ÿ›ฐ๏ธ":"satellite","๐Ÿš€":"rocket","๐Ÿ›ธ":"flying-saucer","๐Ÿ›Ž๏ธ":"bellhop-bell","๐Ÿงณ":"luggage","โŒ›":"hourglass-done","โณ":"hourglass-not-done","โŒš":"watch","โฐ":"alarm-clock","โฑ๏ธ":"stopwatch","โฒ๏ธ":"timer-clock","๐Ÿ•ฐ๏ธ":"mantelpiece-clock","๐Ÿ•›":"twelve-o-clock","๐Ÿ•ง":"twelve-thirty","๐Ÿ•":"one-o-clock","๐Ÿ•œ":"one-thirty","๐Ÿ•‘":"two-o-clock","๐Ÿ•":"two-thirty","๐Ÿ•’":"three-o-clock","๐Ÿ•ž":"three-thirty","๐Ÿ•“":"four-o-clock","๐Ÿ•Ÿ":"four-thirty","๐Ÿ•”":"five-o-clock","๐Ÿ• ":"five-thirty","๐Ÿ••":"six-o-clock","๐Ÿ•ก":"six-thirty","๐Ÿ•–":"seven-o-clock","๐Ÿ•ข":"seven-thirty","๐Ÿ•—":"eight-o-clock","๐Ÿ•ฃ":"eight-thirty","๐Ÿ•˜":"nine-o-clock","๐Ÿ•ค":"nine-thirty","๐Ÿ•™":"ten-o-clock","๐Ÿ•ฅ":"ten-thirty","๐Ÿ•š":"eleven-o-clock","๐Ÿ•ฆ":"eleven-thirty","๐ŸŒ‘":"new-moon","๐ŸŒ’":"waxing-crescent-moon","๐ŸŒ“":"first-quarter-moon","๐ŸŒ”":"waxing-gibbous-moon","๐ŸŒ•":"full-moon","๐ŸŒ–":"waning-gibbous-moon","๐ŸŒ—":"last-quarter-moon","๐ŸŒ˜":"waning-crescent-moon","๐ŸŒ™":"crescent-moon","๐ŸŒš":"new-moon-face","๐ŸŒ›":"first-quarter-moon-face","๐ŸŒœ":"last-quarter-moon-face","๐ŸŒก๏ธ":"thermometer","โ˜€๏ธ":"sun","๐ŸŒ":"full-moon-face","๐ŸŒž":"sun-with-face","๐Ÿช":"ringed-planet","โญ":"star","๐ŸŒŸ":"glowing-star","๐ŸŒ ":"shooting-star","๐ŸŒŒ":"milky-way","โ˜๏ธ":"cloud","โ›…":"sun-behind-cloud","โ›ˆ๏ธ":"cloud-with-lightning-and-rain","๐ŸŒค๏ธ":"sun-behind-small-cloud","๐ŸŒฅ๏ธ":"sun-behind-large-cloud","๐ŸŒฆ๏ธ":"sun-behind-rain-cloud","๐ŸŒง๏ธ":"cloud-with-rain","๐ŸŒจ๏ธ":"cloud-with-snow","๐ŸŒฉ๏ธ":"cloud-with-lightning","๐ŸŒช๏ธ":"tornado","๐ŸŒซ๏ธ":"fog","๐ŸŒฌ๏ธ":"wind-face","๐ŸŒ€":"cyclone","๐ŸŒˆ":"rainbow","๐ŸŒ‚":"closed-umbrella","โ˜‚๏ธ":"umbrella","โ˜”":"umbrella-with-rain-drops","โ›ฑ๏ธ":"umbrella-on-ground","โšก":"high-voltage","โ„๏ธ":"snowflake","โ˜ƒ๏ธ":"snowman","โ›„":"snowman-without-snow","โ˜„๏ธ":"comet","๐Ÿ”ฅ":"fire","๐Ÿ’ง":"droplet","๐ŸŒŠ":"water-wave","๐ŸŽƒ":"jack-o-lantern","๐ŸŽ„":"christmas-tree","๐ŸŽ†":"fireworks","๐ŸŽ‡":"sparkler","๐Ÿงจ":"firecracker","โœจ":"sparkles","๐ŸŽˆ":"balloon","๐ŸŽ‰":"party-popper","๐ŸŽŠ":"confetti-ball","๐ŸŽ‹":"tanabata-tree","๐ŸŽ":"pine-decoration","๐ŸŽŽ":"japanese-dolls","๐ŸŽ":"carp-streamer","๐ŸŽ":"wind-chime","๐ŸŽ‘":"moon-viewing-ceremony","๐Ÿงง":"red-envelope","๐ŸŽ€":"ribbon","๐ŸŽ":"wrapped-gift","๐ŸŽ—๏ธ":"reminder-ribbon","๐ŸŽŸ๏ธ":"admission-tickets","๐ŸŽซ":"ticket","๐ŸŽ–๏ธ":"military-medal","๐Ÿ†":"trophy","๐Ÿ…":"sports-medal","๐Ÿฅ‡":"1st-place-medal","๐Ÿฅˆ":"2nd-place-medal","๐Ÿฅ‰":"3rd-place-medal","โšฝ":"soccer-ball","โšพ":"baseball","๐ŸฅŽ":"softball","๐Ÿ€":"basketball","๐Ÿ":"volleyball","๐Ÿˆ":"american-football","๐Ÿ‰":"rugby-football","๐ŸŽพ":"tennis","๐Ÿฅ":"flying-disc","๐ŸŽณ":"bowling","๐Ÿ":"cricket-game","๐Ÿ‘":"field-hockey","๐Ÿ’":"ice-hockey","๐Ÿฅ":"lacrosse","๐Ÿ“":"ping-pong","๐Ÿธ":"badminton","๐ŸฅŠ":"boxing-glove","๐Ÿฅ‹":"martial-arts-uniform","๐Ÿฅ…":"goal-net","โ›ณ":"flag-in-hole","โ›ธ๏ธ":"ice-skate","๐ŸŽฃ":"fishing-pole","๐Ÿคฟ":"diving-mask","๐ŸŽฝ":"running-shirt","๐ŸŽฟ":"skis","๐Ÿ›ท":"sled","๐ŸฅŒ":"curling-stone","๐ŸŽฏ":"bullseye","๐Ÿช€":"yo-yo","๐Ÿช":"kite","๐Ÿ”ซ":"water-pistol","๐ŸŽฑ":"pool-8-ball","๐Ÿ”ฎ":"crystal-ball","๐Ÿช„":"magic-wand","๐ŸŽฎ":"video-game","๐Ÿ•น๏ธ":"joystick","๐ŸŽฐ":"slot-machine","๐ŸŽฒ":"game-die","๐Ÿงฉ":"puzzle-piece","๐Ÿงธ":"teddy-bear","๐Ÿช…":"pinata","๐Ÿชฉ":"mirror-ball","๐Ÿช†":"nesting-dolls","โ™ ๏ธ":"spade-suit","โ™ฅ๏ธ":"heart-suit","โ™ฆ๏ธ":"diamond-suit","โ™ฃ๏ธ":"club-suit","โ™Ÿ๏ธ":"chess-pawn","๐Ÿƒ":"joker","๐Ÿ€„":"mahjong-red-dragon","๐ŸŽด":"flower-playing-cards","๐ŸŽญ":"performing-arts","๐Ÿ–ผ๏ธ":"framed-picture","๐ŸŽจ":"artist-palette","๐Ÿงต":"thread","๐Ÿชก":"sewing-needle","๐Ÿงถ":"yarn","๐Ÿชข":"knot","๐Ÿ‘“":"glasses","๐Ÿ•ถ๏ธ":"sunglasses","๐Ÿฅฝ":"goggles","๐Ÿฅผ":"lab-coat","๐Ÿฆบ":"safety-vest","๐Ÿ‘”":"necktie","๐Ÿ‘•":"t-shirt","๐Ÿ‘–":"jeans","๐Ÿงฃ":"scarf","๐Ÿงค":"gloves","๐Ÿงฅ":"coat","๐Ÿงฆ":"socks","๐Ÿ‘—":"dress","๐Ÿ‘˜":"kimono","๐Ÿฅป":"sari","๐Ÿฉฑ":"one-piece-swimsuit","๐Ÿฉฒ":"briefs","๐Ÿฉณ":"shorts","๐Ÿ‘™":"bikini","๐Ÿ‘š":"woman-s-clothes","๐Ÿชญ":"folding-hand-fan","๐Ÿ‘›":"purse","๐Ÿ‘œ":"handbag","๐Ÿ‘":"clutch-bag","๐Ÿ›๏ธ":"shopping-bags","๐ŸŽ’":"backpack","๐Ÿฉด":"thong-sandal","๐Ÿ‘ž":"man-s-shoe","๐Ÿ‘Ÿ":"running-shoe","๐Ÿฅพ":"hiking-boot","๐Ÿฅฟ":"flat-shoe","๐Ÿ‘ ":"high-heeled-shoe","๐Ÿ‘ก":"woman-s-sandal","๐Ÿฉฐ":"ballet-shoes","๐Ÿ‘ข":"woman-s-boot","๐Ÿชฎ":"hair-pick","๐Ÿ‘‘":"crown","๐Ÿ‘’":"woman-s-hat","๐ŸŽฉ":"top-hat","๐ŸŽ“":"graduation-cap","๐Ÿงข":"billed-cap","๐Ÿช–":"military-helmet","โ›‘๏ธ":"rescue-worker-s-helmet","๐Ÿ“ฟ":"prayer-beads","๐Ÿ’„":"lipstick","๐Ÿ’":"ring","๐Ÿ’Ž":"gem-stone","๐Ÿ”‡":"muted-speaker","๐Ÿ”ˆ":"speaker-low-volume","๐Ÿ”‰":"speaker-medium-volume","๐Ÿ”Š":"speaker-high-volume","๐Ÿ“ข":"loudspeaker","๐Ÿ“ฃ":"megaphone","๐Ÿ“ฏ":"postal-horn","๐Ÿ””":"bell","๐Ÿ”•":"bell-with-slash","๐ŸŽผ":"musical-score","๐ŸŽต":"musical-note","๐ŸŽถ":"musical-notes","๐ŸŽ™๏ธ":"studio-microphone","๐ŸŽš๏ธ":"level-slider","๐ŸŽ›๏ธ":"control-knobs","๐ŸŽค":"microphone","๐ŸŽง":"headphone","๐Ÿ“ป":"radio","๐ŸŽท":"saxophone","๐Ÿช—":"accordion","๐ŸŽธ":"guitar","๐ŸŽน":"musical-keyboard","๐ŸŽบ":"trumpet","๐ŸŽป":"violin","๐Ÿช•":"banjo","๐Ÿฅ":"drum","๐Ÿช˜":"long-drum","๐Ÿช‡":"maracas","๐Ÿชˆ":"flute","๐Ÿ“ฑ":"mobile-phone","๐Ÿ“ฒ":"mobile-phone-with-arrow","โ˜Ž๏ธ":"telephone","๐Ÿ“ž":"telephone-receiver","๐Ÿ“Ÿ":"pager","๐Ÿ“ ":"fax-machine","๐Ÿ”‹":"battery","๐Ÿชซ":"low-battery","๐Ÿ”Œ":"electric-plug","๐Ÿ’ป":"laptop","๐Ÿ–ฅ๏ธ":"desktop-computer","๐Ÿ–จ๏ธ":"printer","โŒจ๏ธ":"keyboard","๐Ÿ–ฑ๏ธ":"computer-mouse","๐Ÿ–ฒ๏ธ":"trackball","๐Ÿ’ฝ":"computer-disk","๐Ÿ’พ":"floppy-disk","๐Ÿ’ฟ":"optical-disk","๐Ÿ“€":"dvd","๐Ÿงฎ":"abacus","๐ŸŽฅ":"movie-camera","๐ŸŽž๏ธ":"film-frames","๐Ÿ“ฝ๏ธ":"film-projector","๐ŸŽฌ":"clapper-board","๐Ÿ“บ":"television","๐Ÿ“ท":"camera","๐Ÿ“ธ":"camera-with-flash","๐Ÿ“น":"video-camera","๐Ÿ“ผ":"videocassette","๐Ÿ”":"magnifying-glass-tilted-left","๐Ÿ”Ž":"magnifying-glass-tilted-right","๐Ÿ•ฏ๏ธ":"candle","๐Ÿ’ก":"light-bulb","๐Ÿ”ฆ":"flashlight","๐Ÿฎ":"red-paper-lantern","๐Ÿช”":"diya-lamp","๐Ÿ“”":"notebook-with-decorative-cover","๐Ÿ“•":"closed-book","๐Ÿ“–":"open-book","๐Ÿ“—":"green-book","๐Ÿ“˜":"blue-book","๐Ÿ“™":"orange-book","๐Ÿ“š":"books","๐Ÿ““":"notebook","๐Ÿ“’":"ledger","๐Ÿ“ƒ":"page-with-curl","๐Ÿ“œ":"scroll","๐Ÿ“„":"page-facing-up","๐Ÿ“ฐ":"newspaper","๐Ÿ—ž๏ธ":"rolled-up-newspaper","๐Ÿ“‘":"bookmark-tabs","๐Ÿ”–":"bookmark","๐Ÿท๏ธ":"label","๐Ÿ’ฐ":"money-bag","๐Ÿช™":"coin","๐Ÿ’ด":"yen-banknote","๐Ÿ’ต":"dollar-banknote","๐Ÿ’ถ":"euro-banknote","๐Ÿ’ท":"pound-banknote","๐Ÿ’ธ":"money-with-wings","๐Ÿ’ณ":"credit-card","๐Ÿงพ":"receipt","๐Ÿ’น":"chart-increasing-with-yen","โœ‰๏ธ":"envelope","๐Ÿ“ง":"e-mail","๐Ÿ“จ":"incoming-envelope","๐Ÿ“ฉ":"envelope-with-arrow","๐Ÿ“ค":"outbox-tray","๐Ÿ“ฅ":"inbox-tray","๐Ÿ“ฆ":"package","๐Ÿ“ซ":"closed-mailbox-with-raised-flag","๐Ÿ“ช":"closed-mailbox-with-lowered-flag","๐Ÿ“ฌ":"open-mailbox-with-raised-flag","๐Ÿ“ญ":"open-mailbox-with-lowered-flag","๐Ÿ“ฎ":"postbox","๐Ÿ—ณ๏ธ":"ballot-box-with-ballot","โœ๏ธ":"pencil","โœ’๏ธ":"black-nib","๐Ÿ–‹๏ธ":"fountain-pen","๐Ÿ–Š๏ธ":"pen","๐Ÿ–Œ๏ธ":"paintbrush","๐Ÿ–๏ธ":"crayon","๐Ÿ“":"memo","๐Ÿ’ผ":"briefcase","๐Ÿ“":"file-folder","๐Ÿ“‚":"open-file-folder","๐Ÿ—‚๏ธ":"card-index-dividers","๐Ÿ“…":"calendar","๐Ÿ“†":"tear-off-calendar","๐Ÿ—’๏ธ":"spiral-notepad","๐Ÿ—“๏ธ":"spiral-calendar","๐Ÿ“‡":"card-index","๐Ÿ“ˆ":"chart-increasing","๐Ÿ“‰":"chart-decreasing","๐Ÿ“Š":"bar-chart","๐Ÿ“‹":"clipboard","๐Ÿ“Œ":"pushpin","๐Ÿ“":"round-pushpin","๐Ÿ“Ž":"paperclip","๐Ÿ–‡๏ธ":"linked-paperclips","๐Ÿ“":"straight-ruler","๐Ÿ“":"triangular-ruler","โœ‚๏ธ":"scissors","๐Ÿ—ƒ๏ธ":"card-file-box","๐Ÿ—„๏ธ":"file-cabinet","๐Ÿ—‘๏ธ":"wastebasket","๐Ÿ”’":"locked","๐Ÿ”“":"unlocked","๐Ÿ”":"locked-with-pen","๐Ÿ”":"locked-with-key","๐Ÿ”‘":"key","๐Ÿ—๏ธ":"old-key","๐Ÿ”จ":"hammer","๐Ÿช“":"axe","โ›๏ธ":"pick","โš’๏ธ":"hammer-and-pick","๐Ÿ› ๏ธ":"hammer-and-wrench","๐Ÿ—ก๏ธ":"dagger","โš”๏ธ":"crossed-swords","๐Ÿ’ฃ":"bomb","๐Ÿชƒ":"boomerang","๐Ÿน":"bow-and-arrow","๐Ÿ›ก๏ธ":"shield","๐Ÿชš":"carpentry-saw","๐Ÿ”ง":"wrench","๐Ÿช›":"screwdriver","๐Ÿ”ฉ":"nut-and-bolt","โš™๏ธ":"gear","๐Ÿ—œ๏ธ":"clamp","โš–๏ธ":"balance-scale","๐Ÿฆฏ":"white-cane","๐Ÿ”—":"link","โ›“๏ธ":"chains","๐Ÿช":"hook","๐Ÿงฐ":"toolbox","๐Ÿงฒ":"magnet","๐Ÿชœ":"ladder","โš—๏ธ":"alembic","๐Ÿงช":"test-tube","๐Ÿงซ":"petri-dish","๐Ÿงฌ":"dna","๐Ÿ”ฌ":"microscope","๐Ÿ”ญ":"telescope","๐Ÿ“ก":"satellite-antenna","๐Ÿ’‰":"syringe","๐Ÿฉธ":"drop-of-blood","๐Ÿ’Š":"pill","๐Ÿฉน":"adhesive-bandage","๐Ÿฉผ":"crutch","๐Ÿฉบ":"stethoscope","๐Ÿฉป":"x-ray","๐Ÿšช":"door","๐Ÿ›—":"elevator","๐Ÿชž":"mirror","๐ŸชŸ":"window","๐Ÿ›๏ธ":"bed","๐Ÿ›‹๏ธ":"couch-and-lamp","๐Ÿช‘":"chair","๐Ÿšฝ":"toilet","๐Ÿช ":"plunger","๐Ÿšฟ":"shower","๐Ÿ›":"bathtub","๐Ÿชค":"mouse-trap","๐Ÿช’":"razor","๐Ÿงด":"lotion-bottle","๐Ÿงท":"safety-pin","๐Ÿงน":"broom","๐Ÿงบ":"basket","๐Ÿงป":"roll-of-paper","๐Ÿชฃ":"bucket","๐Ÿงผ":"soap","๐Ÿซง":"bubbles","๐Ÿชฅ":"toothbrush","๐Ÿงฝ":"sponge","๐Ÿงฏ":"fire-extinguisher","๐Ÿ›’":"shopping-cart","๐Ÿšฌ":"cigarette","โšฐ๏ธ":"coffin","๐Ÿชฆ":"headstone","โšฑ๏ธ":"funeral-urn","๐Ÿงฟ":"nazar-amulet","๐Ÿชฌ":"hamsa","๐Ÿ—ฟ":"moai","๐Ÿชง":"placard","๐Ÿชช":"identification-card","๐Ÿง":"atm-sign","๐Ÿšฎ":"litter-in-bin-sign","๐Ÿšฐ":"potable-water","โ™ฟ":"wheelchair-symbol","๐Ÿšน":"men-s-room","๐Ÿšบ":"women-s-room","๐Ÿšป":"restroom","๐Ÿšผ":"baby-symbol","๐Ÿšพ":"water-closet","๐Ÿ›‚":"passport-control","๐Ÿ›ƒ":"customs","๐Ÿ›„":"baggage-claim","๐Ÿ›…":"left-luggage","โš ๏ธ":"warning","๐Ÿšธ":"children-crossing","โ›”":"no-entry","๐Ÿšซ":"prohibited","๐Ÿšณ":"no-bicycles","๐Ÿšญ":"no-smoking","๐Ÿšฏ":"no-littering","๐Ÿšฑ":"non-potable-water","๐Ÿšท":"no-pedestrians","๐Ÿ“ต":"no-mobile-phones","๐Ÿ”ž":"no-one-under-eighteen","โ˜ข๏ธ":"radioactive","โ˜ฃ๏ธ":"biohazard","โฌ†๏ธ":"up-arrow","โ†—๏ธ":"up-right-arrow","โžก๏ธ":"right-arrow","โ†˜๏ธ":"down-right-arrow","โฌ‡๏ธ":"down-arrow","โ†™๏ธ":"down-left-arrow","โฌ…๏ธ":"left-arrow","โ†–๏ธ":"up-left-arrow","โ†•๏ธ":"up-down-arrow","โ†”๏ธ":"left-right-arrow","โ†ฉ๏ธ":"right-arrow-curving-left","โ†ช๏ธ":"left-arrow-curving-right","โคด๏ธ":"right-arrow-curving-up","โคต๏ธ":"right-arrow-curving-down","๐Ÿ”ƒ":"clockwise-vertical-arrows","๐Ÿ”„":"counterclockwise-arrows-button","๐Ÿ”™":"back-arrow","๐Ÿ”š":"end-arrow","๐Ÿ”›":"on-arrow","๐Ÿ”œ":"soon-arrow","๐Ÿ”":"top-arrow","๐Ÿ›":"place-of-worship","โš›๏ธ":"atom-symbol","๐Ÿ•‰๏ธ":"om","โœก๏ธ":"star-of-david","โ˜ธ๏ธ":"wheel-of-dharma","โ˜ฏ๏ธ":"yin-yang","โœ๏ธ":"latin-cross","โ˜ฆ๏ธ":"orthodox-cross","โ˜ช๏ธ":"star-and-crescent","โ˜ฎ๏ธ":"peace-symbol","๐Ÿ•Ž":"menorah","๐Ÿ”ฏ":"dotted-six-pointed-star","๐Ÿชฏ":"khanda","โ™ˆ":"aries","โ™‰":"taurus","โ™Š":"gemini","โ™‹":"cancer","โ™Œ":"leo","โ™":"virgo","โ™Ž":"libra","โ™":"scorpio","โ™":"sagittarius","โ™‘":"capricorn","โ™’":"aquarius","โ™“":"pisces","โ›Ž":"ophiuchus","๐Ÿ”€":"shuffle-tracks-button","๐Ÿ”":"repeat-button","๐Ÿ”‚":"repeat-single-button","โ–ถ๏ธ":"play-button","โฉ":"fast-forward-button","โญ๏ธ":"next-track-button","โฏ๏ธ":"play-or-pause-button","โ—€๏ธ":"reverse-button","โช":"fast-reverse-button","โฎ๏ธ":"last-track-button","๐Ÿ”ผ":"upwards-button","โซ":"fast-up-button","๐Ÿ”ฝ":"downwards-button","โฌ":"fast-down-button","โธ๏ธ":"pause-button","โน๏ธ":"stop-button","โบ๏ธ":"record-button","โ๏ธ":"eject-button","๐ŸŽฆ":"cinema","๐Ÿ”…":"dim-button","๐Ÿ”†":"bright-button","๐Ÿ“ถ":"antenna-bars","๐Ÿ›œ":"wireless","๐Ÿ“ณ":"vibration-mode","๐Ÿ“ด":"mobile-phone-off","โ™€๏ธ":"female-sign","โ™‚๏ธ":"male-sign","โšง๏ธ":"transgender-symbol","โœ–๏ธ":"multiply","โž•":"plus","โž–":"minus","โž—":"divide","๐ŸŸฐ":"heavy-equals-sign","โ™พ๏ธ":"infinity","โ€ผ๏ธ":"double-exclamation-mark","โ‰๏ธ":"exclamation-question-mark","โ“":"red-question-mark","โ”":"white-question-mark","โ•":"white-exclamation-mark","โ—":"red-exclamation-mark","ใ€ฐ๏ธ":"wavy-dash","๐Ÿ’ฑ":"currency-exchange","๐Ÿ’ฒ":"heavy-dollar-sign","โš•๏ธ":"medical-symbol","โ™ป๏ธ":"recycling-symbol","โšœ๏ธ":"fleur-de-lis","๐Ÿ”ฑ":"trident-emblem","๐Ÿ“›":"name-badge","๐Ÿ”ฐ":"japanese-symbol-for-beginner","โญ•":"hollow-red-circle","โœ…":"check-mark-button","โ˜‘๏ธ":"check-box-with-check","โœ”๏ธ":"check-mark","โŒ":"cross-mark","โŽ":"cross-mark-button","โžฐ":"curly-loop","โžฟ":"double-curly-loop","ใ€ฝ๏ธ":"part-alternation-mark","โœณ๏ธ":"eight-spoked-asterisk","โœด๏ธ":"eight-pointed-star","โ‡๏ธ":"sparkle","ยฉ๏ธ":"copyright","ยฎ๏ธ":"registered","โ„ข๏ธ":"trade-mark","#๏ธโƒฃ":"keycap-number-sign","*๏ธโƒฃ":"keycap-asterisk","0๏ธโƒฃ":"keycap-0","1๏ธโƒฃ":"keycap-1","2๏ธโƒฃ":"keycap-2","3๏ธโƒฃ":"keycap-3","4๏ธโƒฃ":"keycap-4","5๏ธโƒฃ":"keycap-5","6๏ธโƒฃ":"keycap-6","7๏ธโƒฃ":"keycap-7","8๏ธโƒฃ":"keycap-8","9๏ธโƒฃ":"keycap-9","๐Ÿ”Ÿ":"keycap-10","๐Ÿ” ":"input-latin-uppercase","๐Ÿ”ก":"input-latin-lowercase","๐Ÿ”ข":"input-numbers","๐Ÿ”ฃ":"input-symbols","๐Ÿ”ค":"input-latin-letters","๐Ÿ…ฐ๏ธ":"a-button","๐Ÿ†Ž":"ab-button","๐Ÿ…ฑ๏ธ":"b-button","๐Ÿ†‘":"cl-button","๐Ÿ†’":"cool-button","๐Ÿ†“":"free-button","โ„น๏ธ":"information","๐Ÿ†”":"id-button","โ“‚๏ธ":"circled-m","๐Ÿ†•":"new-button","๐Ÿ†–":"ng-button","๐Ÿ…พ๏ธ":"o-button","๐Ÿ†—":"ok-button","๐Ÿ…ฟ๏ธ":"p-button","๐Ÿ†˜":"sos-button","๐Ÿ†™":"up-button","๐Ÿ†š":"vs-button","๐Ÿˆ":"japanese-here-button","๐Ÿˆ‚๏ธ":"japanese-service-charge-button","๐Ÿˆท๏ธ":"japanese-monthly-amount-button","๐Ÿˆถ":"japanese-not-free-of-charge-button","๐Ÿˆฏ":"japanese-reserved-button","๐Ÿ‰":"japanese-bargain-button","๐Ÿˆน":"japanese-discount-button","๐Ÿˆš":"japanese-free-of-charge-button","๐Ÿˆฒ":"japanese-prohibited-button","๐Ÿ‰‘":"japanese-acceptable-button","๐Ÿˆธ":"japanese-application-button","๐Ÿˆด":"japanese-passing-grade-button","๐Ÿˆณ":"japanese-vacancy-button","ใŠ—๏ธ":"japanese-congratulations-button","ใŠ™๏ธ":"japanese-secret-button","๐Ÿˆบ":"japanese-open-for-business-button","๐Ÿˆต":"japanese-no-vacancy-button","๐Ÿ”ด":"red-circle","๐ŸŸ ":"orange-circle","๐ŸŸก":"yellow-circle","๐ŸŸข":"green-circle","๐Ÿ”ต":"blue-circle","๐ŸŸฃ":"purple-circle","๐ŸŸค":"brown-circle","โšซ":"black-circle","โšช":"white-circle","๐ŸŸฅ":"red-square","๐ŸŸง":"orange-square","๐ŸŸจ":"yellow-square","๐ŸŸฉ":"green-square","๐ŸŸฆ":"blue-square","๐ŸŸช":"purple-square","๐ŸŸซ":"brown-square","โฌ›":"black-large-square","โฌœ":"white-large-square","โ—ผ๏ธ":"black-medium-square","โ—ป๏ธ":"white-medium-square","โ—พ":"black-medium-small-square","โ—ฝ":"white-medium-small-square","โ–ช๏ธ":"black-small-square","โ–ซ๏ธ":"white-small-square","๐Ÿ”ถ":"large-orange-diamond","๐Ÿ”ท":"large-blue-diamond","๐Ÿ”ธ":"small-orange-diamond","๐Ÿ”น":"small-blue-diamond","๐Ÿ”บ":"red-triangle-pointed-up","๐Ÿ”ป":"red-triangle-pointed-down","๐Ÿ’ ":"diamond-with-a-dot","๐Ÿ”˜":"radio-button","๐Ÿ”ณ":"white-square-button","๐Ÿ”ฒ":"black-square-button","๐Ÿ":"chequered-flag","๐Ÿšฉ":"triangular-flag","๐ŸŽŒ":"crossed-flags","๐Ÿด":"black-flag","๐Ÿณ๏ธ":"white-flag","๐Ÿณ๏ธโ€๐ŸŒˆ":"rainbow-flag","๐Ÿณ๏ธโ€โšง๏ธ":"transgender-flag","๐Ÿดโ€โ˜ ๏ธ":"pirate-flag","๐Ÿ‡ฆ๐Ÿ‡จ":"flag-ascension-island","๐Ÿ‡ฆ๐Ÿ‡ฉ":"flag-andorra","๐Ÿ‡ฆ๐Ÿ‡ช":"flag-united-arab-emirates","๐Ÿ‡ฆ๐Ÿ‡ซ":"flag-afghanistan","๐Ÿ‡ฆ๐Ÿ‡ฌ":"flag-antigua-barbuda","๐Ÿ‡ฆ๐Ÿ‡ฎ":"flag-anguilla","๐Ÿ‡ฆ๐Ÿ‡ฑ":"flag-albania","๐Ÿ‡ฆ๐Ÿ‡ฒ":"flag-armenia","๐Ÿ‡ฆ๐Ÿ‡ด":"flag-angola","๐Ÿ‡ฆ๐Ÿ‡ถ":"flag-antarctica","๐Ÿ‡ฆ๐Ÿ‡ท":"flag-argentina","๐Ÿ‡ฆ๐Ÿ‡ธ":"flag-american-samoa","๐Ÿ‡ฆ๐Ÿ‡น":"flag-austria","๐Ÿ‡ฆ๐Ÿ‡บ":"flag-australia","๐Ÿ‡ฆ๐Ÿ‡ผ":"flag-aruba","๐Ÿ‡ฆ๐Ÿ‡ฝ":"flag-aland-islands","๐Ÿ‡ฆ๐Ÿ‡ฟ":"flag-azerbaijan","๐Ÿ‡ง๐Ÿ‡ฆ":"flag-bosnia-herzegovina","๐Ÿ‡ง๐Ÿ‡ง":"flag-barbados","๐Ÿ‡ง๐Ÿ‡ฉ":"flag-bangladesh","๐Ÿ‡ง๐Ÿ‡ช":"flag-belgium","๐Ÿ‡ง๐Ÿ‡ซ":"flag-burkina-faso","๐Ÿ‡ง๐Ÿ‡ฌ":"flag-bulgaria","๐Ÿ‡ง๐Ÿ‡ญ":"flag-bahrain","๐Ÿ‡ง๐Ÿ‡ฎ":"flag-burundi","๐Ÿ‡ง๐Ÿ‡ฏ":"flag-benin","๐Ÿ‡ง๐Ÿ‡ฑ":"flag-st-barthelemy","๐Ÿ‡ง๐Ÿ‡ฒ":"flag-bermuda","๐Ÿ‡ง๐Ÿ‡ณ":"flag-brunei","๐Ÿ‡ง๐Ÿ‡ด":"flag-bolivia","๐Ÿ‡ง๐Ÿ‡ถ":"flag-caribbean-netherlands","๐Ÿ‡ง๐Ÿ‡ท":"flag-brazil","๐Ÿ‡ง๐Ÿ‡ธ":"flag-bahamas","๐Ÿ‡ง๐Ÿ‡น":"flag-bhutan","๐Ÿ‡ง๐Ÿ‡ป":"flag-bouvet-island","๐Ÿ‡ง๐Ÿ‡ผ":"flag-botswana","๐Ÿ‡ง๐Ÿ‡พ":"flag-belarus","๐Ÿ‡ง๐Ÿ‡ฟ":"flag-belize","๐Ÿ‡จ๐Ÿ‡ฆ":"flag-canada","๐Ÿ‡จ๐Ÿ‡จ":"flag-cocos-islands","๐Ÿ‡จ๐Ÿ‡ฉ":"flag-congo-kinshasa","๐Ÿ‡จ๐Ÿ‡ซ":"flag-central-african-republic","๐Ÿ‡จ๐Ÿ‡ฌ":"flag-congo-brazzaville","๐Ÿ‡จ๐Ÿ‡ญ":"flag-switzerland","๐Ÿ‡จ๐Ÿ‡ฎ":"flag-cote-d-ivoire","๐Ÿ‡จ๐Ÿ‡ฐ":"flag-cook-islands","๐Ÿ‡จ๐Ÿ‡ฑ":"flag-chile","๐Ÿ‡จ๐Ÿ‡ฒ":"flag-cameroon","๐Ÿ‡จ๐Ÿ‡ณ":"flag-china","๐Ÿ‡จ๐Ÿ‡ด":"flag-colombia","๐Ÿ‡จ๐Ÿ‡ต":"flag-clipperton-island","๐Ÿ‡จ๐Ÿ‡ท":"flag-costa-rica","๐Ÿ‡จ๐Ÿ‡บ":"flag-cuba","๐Ÿ‡จ๐Ÿ‡ป":"flag-cape-verde","๐Ÿ‡จ๐Ÿ‡ผ":"flag-curacao","๐Ÿ‡จ๐Ÿ‡ฝ":"flag-christmas-island","๐Ÿ‡จ๐Ÿ‡พ":"flag-cyprus","๐Ÿ‡จ๐Ÿ‡ฟ":"flag-czechia","๐Ÿ‡ฉ๐Ÿ‡ช":"flag-germany","๐Ÿ‡ฉ๐Ÿ‡ฌ":"flag-diego-garcia","๐Ÿ‡ฉ๐Ÿ‡ฏ":"flag-djibouti","๐Ÿ‡ฉ๐Ÿ‡ฐ":"flag-denmark","๐Ÿ‡ฉ๐Ÿ‡ฒ":"flag-dominica","๐Ÿ‡ฉ๐Ÿ‡ด":"flag-dominican-republic","๐Ÿ‡ฉ๐Ÿ‡ฟ":"flag-algeria","๐Ÿ‡ช๐Ÿ‡ฆ":"flag-ceuta-melilla","๐Ÿ‡ช๐Ÿ‡จ":"flag-ecuador","๐Ÿ‡ช๐Ÿ‡ช":"flag-estonia","๐Ÿ‡ช๐Ÿ‡ฌ":"flag-egypt","๐Ÿ‡ช๐Ÿ‡ญ":"flag-western-sahara","๐Ÿ‡ช๐Ÿ‡ท":"flag-eritrea","๐Ÿ‡ช๐Ÿ‡ธ":"flag-spain","๐Ÿ‡ช๐Ÿ‡น":"flag-ethiopia","๐Ÿ‡ช๐Ÿ‡บ":"flag-european-union","๐Ÿ‡ซ๐Ÿ‡ฎ":"flag-finland","๐Ÿ‡ซ๐Ÿ‡ฏ":"flag-fiji","๐Ÿ‡ซ๐Ÿ‡ฐ":"flag-falkland-islands","๐Ÿ‡ซ๐Ÿ‡ฒ":"flag-micronesia","๐Ÿ‡ซ๐Ÿ‡ด":"flag-faroe-islands","๐Ÿ‡ซ๐Ÿ‡ท":"flag-france","๐Ÿ‡ฌ๐Ÿ‡ฆ":"flag-gabon","๐Ÿ‡ฌ๐Ÿ‡ง":"flag-united-kingdom","๐Ÿ‡ฌ๐Ÿ‡ฉ":"flag-grenada","๐Ÿ‡ฌ๐Ÿ‡ช":"flag-georgia","๐Ÿ‡ฌ๐Ÿ‡ซ":"flag-french-guiana","๐Ÿ‡ฌ๐Ÿ‡ฌ":"flag-guernsey","๐Ÿ‡ฌ๐Ÿ‡ญ":"flag-ghana","๐Ÿ‡ฌ๐Ÿ‡ฎ":"flag-gibraltar","๐Ÿ‡ฌ๐Ÿ‡ฑ":"flag-greenland","๐Ÿ‡ฌ๐Ÿ‡ฒ":"flag-gambia","๐Ÿ‡ฌ๐Ÿ‡ณ":"flag-guinea","๐Ÿ‡ฌ๐Ÿ‡ต":"flag-guadeloupe","๐Ÿ‡ฌ๐Ÿ‡ถ":"flag-equatorial-guinea","๐Ÿ‡ฌ๐Ÿ‡ท":"flag-greece","๐Ÿ‡ฌ๐Ÿ‡ธ":"flag-south-georgia-south-sandwich-islands","๐Ÿ‡ฌ๐Ÿ‡น":"flag-guatemala","๐Ÿ‡ฌ๐Ÿ‡บ":"flag-guam","๐Ÿ‡ฌ๐Ÿ‡ผ":"flag-guinea-bissau","๐Ÿ‡ฌ๐Ÿ‡พ":"flag-guyana","๐Ÿ‡ญ๐Ÿ‡ฐ":"flag-hong-kong-sar-china","๐Ÿ‡ญ๐Ÿ‡ฒ":"flag-heard-mcdonald-islands","๐Ÿ‡ญ๐Ÿ‡ณ":"flag-honduras","๐Ÿ‡ญ๐Ÿ‡ท":"flag-croatia","๐Ÿ‡ญ๐Ÿ‡น":"flag-haiti","๐Ÿ‡ญ๐Ÿ‡บ":"flag-hungary","๐Ÿ‡ฎ๐Ÿ‡จ":"flag-canary-islands","๐Ÿ‡ฎ๐Ÿ‡ฉ":"flag-indonesia","๐Ÿ‡ฎ๐Ÿ‡ช":"flag-ireland","๐Ÿ‡ฎ๐Ÿ‡ฑ":"flag-israel","๐Ÿ‡ฎ๐Ÿ‡ฒ":"flag-isle-of-man","๐Ÿ‡ฎ๐Ÿ‡ณ":"flag-india","๐Ÿ‡ฎ๐Ÿ‡ด":"flag-british-indian-ocean-territory","๐Ÿ‡ฎ๐Ÿ‡ถ":"flag-iraq","๐Ÿ‡ฎ๐Ÿ‡ท":"flag-iran","๐Ÿ‡ฎ๐Ÿ‡ธ":"flag-iceland","๐Ÿ‡ฎ๐Ÿ‡น":"flag-italy","๐Ÿ‡ฏ๐Ÿ‡ช":"flag-jersey","๐Ÿ‡ฏ๐Ÿ‡ฒ":"flag-jamaica","๐Ÿ‡ฏ๐Ÿ‡ด":"flag-jordan","๐Ÿ‡ฏ๐Ÿ‡ต":"flag-japan","๐Ÿ‡ฐ๐Ÿ‡ช":"flag-kenya","๐Ÿ‡ฐ๐Ÿ‡ฌ":"flag-kyrgyzstan","๐Ÿ‡ฐ๐Ÿ‡ญ":"flag-cambodia","๐Ÿ‡ฐ๐Ÿ‡ฎ":"flag-kiribati","๐Ÿ‡ฐ๐Ÿ‡ฒ":"flag-comoros","๐Ÿ‡ฐ๐Ÿ‡ณ":"flag-st-kitts-nevis","๐Ÿ‡ฐ๐Ÿ‡ต":"flag-north-korea","๐Ÿ‡ฐ๐Ÿ‡ท":"flag-south-korea","๐Ÿ‡ฐ๐Ÿ‡ผ":"flag-kuwait","๐Ÿ‡ฐ๐Ÿ‡พ":"flag-cayman-islands","๐Ÿ‡ฐ๐Ÿ‡ฟ":"flag-kazakhstan","๐Ÿ‡ฑ๐Ÿ‡ฆ":"flag-laos","๐Ÿ‡ฑ๐Ÿ‡ง":"flag-lebanon","๐Ÿ‡ฑ๐Ÿ‡จ":"flag-st-lucia","๐Ÿ‡ฑ๐Ÿ‡ฎ":"flag-liechtenstein","๐Ÿ‡ฑ๐Ÿ‡ฐ":"flag-sri-lanka","๐Ÿ‡ฑ๐Ÿ‡ท":"flag-liberia","๐Ÿ‡ฑ๐Ÿ‡ธ":"flag-lesotho","๐Ÿ‡ฑ๐Ÿ‡น":"flag-lithuania","๐Ÿ‡ฑ๐Ÿ‡บ":"flag-luxembourg","๐Ÿ‡ฑ๐Ÿ‡ป":"flag-latvia","๐Ÿ‡ฑ๐Ÿ‡พ":"flag-libya","๐Ÿ‡ฒ๐Ÿ‡ฆ":"flag-morocco","๐Ÿ‡ฒ๐Ÿ‡จ":"flag-monaco","๐Ÿ‡ฒ๐Ÿ‡ฉ":"flag-moldova","๐Ÿ‡ฒ๐Ÿ‡ช":"flag-montenegro","๐Ÿ‡ฒ๐Ÿ‡ซ":"flag-st-martin","๐Ÿ‡ฒ๐Ÿ‡ฌ":"flag-madagascar","๐Ÿ‡ฒ๐Ÿ‡ญ":"flag-marshall-islands","๐Ÿ‡ฒ๐Ÿ‡ฐ":"flag-north-macedonia","๐Ÿ‡ฒ๐Ÿ‡ฑ":"flag-mali","๐Ÿ‡ฒ๐Ÿ‡ฒ":"flag-myanmar","๐Ÿ‡ฒ๐Ÿ‡ณ":"flag-mongolia","๐Ÿ‡ฒ๐Ÿ‡ด":"flag-macao-sar-china","๐Ÿ‡ฒ๐Ÿ‡ต":"flag-northern-mariana-islands","๐Ÿ‡ฒ๐Ÿ‡ถ":"flag-martinique","๐Ÿ‡ฒ๐Ÿ‡ท":"flag-mauritania","๐Ÿ‡ฒ๐Ÿ‡ธ":"flag-montserrat","๐Ÿ‡ฒ๐Ÿ‡น":"flag-malta","๐Ÿ‡ฒ๐Ÿ‡บ":"flag-mauritius","๐Ÿ‡ฒ๐Ÿ‡ป":"flag-maldives","๐Ÿ‡ฒ๐Ÿ‡ผ":"flag-malawi","๐Ÿ‡ฒ๐Ÿ‡ฝ":"flag-mexico","๐Ÿ‡ฒ๐Ÿ‡พ":"flag-malaysia","๐Ÿ‡ฒ๐Ÿ‡ฟ":"flag-mozambique","๐Ÿ‡ณ๐Ÿ‡ฆ":"flag-namibia","๐Ÿ‡ณ๐Ÿ‡จ":"flag-new-caledonia","๐Ÿ‡ณ๐Ÿ‡ช":"flag-niger","๐Ÿ‡ณ๐Ÿ‡ซ":"flag-norfolk-island","๐Ÿ‡ณ๐Ÿ‡ฌ":"flag-nigeria","๐Ÿ‡ณ๐Ÿ‡ฎ":"flag-nicaragua","๐Ÿ‡ณ๐Ÿ‡ฑ":"flag-netherlands","๐Ÿ‡ณ๐Ÿ‡ด":"flag-norway","๐Ÿ‡ณ๐Ÿ‡ต":"flag-nepal","๐Ÿ‡ณ๐Ÿ‡ท":"flag-nauru","๐Ÿ‡ณ๐Ÿ‡บ":"flag-niue","๐Ÿ‡ณ๐Ÿ‡ฟ":"flag-new-zealand","๐Ÿ‡ด๐Ÿ‡ฒ":"flag-oman","๐Ÿ‡ต๐Ÿ‡ฆ":"flag-panama","๐Ÿ‡ต๐Ÿ‡ช":"flag-peru","๐Ÿ‡ต๐Ÿ‡ซ":"flag-french-polynesia","๐Ÿ‡ต๐Ÿ‡ฌ":"flag-papua-new-guinea","๐Ÿ‡ต๐Ÿ‡ญ":"flag-philippines","๐Ÿ‡ต๐Ÿ‡ฐ":"flag-pakistan","๐Ÿ‡ต๐Ÿ‡ฑ":"flag-poland","๐Ÿ‡ต๐Ÿ‡ฒ":"flag-st-pierre-miquelon","๐Ÿ‡ต๐Ÿ‡ณ":"flag-pitcairn-islands","๐Ÿ‡ต๐Ÿ‡ท":"flag-puerto-rico","๐Ÿ‡ต๐Ÿ‡ธ":"flag-palestinian-territories","๐Ÿ‡ต๐Ÿ‡น":"flag-portugal","๐Ÿ‡ต๐Ÿ‡ผ":"flag-palau","๐Ÿ‡ต๐Ÿ‡พ":"flag-paraguay","๐Ÿ‡ถ๐Ÿ‡ฆ":"flag-qatar","๐Ÿ‡ท๐Ÿ‡ช":"flag-reunion","๐Ÿ‡ท๐Ÿ‡ด":"flag-romania","๐Ÿ‡ท๐Ÿ‡ธ":"flag-serbia","๐Ÿ‡ท๐Ÿ‡บ":"flag-russia","๐Ÿ‡ท๐Ÿ‡ผ":"flag-rwanda","๐Ÿ‡ธ๐Ÿ‡ฆ":"flag-saudi-arabia","๐Ÿ‡ธ๐Ÿ‡ง":"flag-solomon-islands","๐Ÿ‡ธ๐Ÿ‡จ":"flag-seychelles","๐Ÿ‡ธ๐Ÿ‡ฉ":"flag-sudan","๐Ÿ‡ธ๐Ÿ‡ช":"flag-sweden","๐Ÿ‡ธ๐Ÿ‡ฌ":"flag-singapore","๐Ÿ‡ธ๐Ÿ‡ญ":"flag-st-helena","๐Ÿ‡ธ๐Ÿ‡ฎ":"flag-slovenia","๐Ÿ‡ธ๐Ÿ‡ฏ":"flag-svalbard-jan-mayen","๐Ÿ‡ธ๐Ÿ‡ฐ":"flag-slovakia","๐Ÿ‡ธ๐Ÿ‡ฑ":"flag-sierra-leone","๐Ÿ‡ธ๐Ÿ‡ฒ":"flag-san-marino","๐Ÿ‡ธ๐Ÿ‡ณ":"flag-senegal","๐Ÿ‡ธ๐Ÿ‡ด":"flag-somalia","๐Ÿ‡ธ๐Ÿ‡ท":"flag-suriname","๐Ÿ‡ธ๐Ÿ‡ธ":"flag-south-sudan","๐Ÿ‡ธ๐Ÿ‡น":"flag-sao-tome-principe","๐Ÿ‡ธ๐Ÿ‡ป":"flag-el-salvador","๐Ÿ‡ธ๐Ÿ‡ฝ":"flag-sint-maarten","๐Ÿ‡ธ๐Ÿ‡พ":"flag-syria","๐Ÿ‡ธ๐Ÿ‡ฟ":"flag-eswatini","๐Ÿ‡น๐Ÿ‡ฆ":"flag-tristan-da-cunha","๐Ÿ‡น๐Ÿ‡จ":"flag-turks-caicos-islands","๐Ÿ‡น๐Ÿ‡ฉ":"flag-chad","๐Ÿ‡น๐Ÿ‡ซ":"flag-french-southern-territories","๐Ÿ‡น๐Ÿ‡ฌ":"flag-togo","๐Ÿ‡น๐Ÿ‡ญ":"flag-thailand","๐Ÿ‡น๐Ÿ‡ฏ":"flag-tajikistan","๐Ÿ‡น๐Ÿ‡ฐ":"flag-tokelau","๐Ÿ‡น๐Ÿ‡ฑ":"flag-timor-leste","๐Ÿ‡น๐Ÿ‡ฒ":"flag-turkmenistan","๐Ÿ‡น๐Ÿ‡ณ":"flag-tunisia","๐Ÿ‡น๐Ÿ‡ด":"flag-tonga","๐Ÿ‡น๐Ÿ‡ท":"flag-turkey","๐Ÿ‡น๐Ÿ‡น":"flag-trinidad-tobago","๐Ÿ‡น๐Ÿ‡ป":"flag-tuvalu","๐Ÿ‡น๐Ÿ‡ผ":"flag-taiwan","๐Ÿ‡น๐Ÿ‡ฟ":"flag-tanzania","๐Ÿ‡บ๐Ÿ‡ฆ":"flag-ukraine","๐Ÿ‡บ๐Ÿ‡ฌ":"flag-uganda","๐Ÿ‡บ๐Ÿ‡ฒ":"flag-u-s-outlying-islands","๐Ÿ‡บ๐Ÿ‡ณ":"flag-united-nations","๐Ÿ‡บ๐Ÿ‡ธ":"flag-united-states","๐Ÿ‡บ๐Ÿ‡พ":"flag-uruguay","๐Ÿ‡บ๐Ÿ‡ฟ":"flag-uzbekistan","๐Ÿ‡ป๐Ÿ‡ฆ":"flag-vatican-city","๐Ÿ‡ป๐Ÿ‡จ":"flag-st-vincent-grenadines","๐Ÿ‡ป๐Ÿ‡ช":"flag-venezuela","๐Ÿ‡ป๐Ÿ‡ฌ":"flag-british-virgin-islands","๐Ÿ‡ป๐Ÿ‡ฎ":"flag-u-s-virgin-islands","๐Ÿ‡ป๐Ÿ‡ณ":"flag-vietnam","๐Ÿ‡ป๐Ÿ‡บ":"flag-vanuatu","๐Ÿ‡ผ๐Ÿ‡ซ":"flag-wallis-futuna","๐Ÿ‡ผ๐Ÿ‡ธ":"flag-samoa","๐Ÿ‡ฝ๐Ÿ‡ฐ":"flag-kosovo","๐Ÿ‡พ๐Ÿ‡ช":"flag-yemen","๐Ÿ‡พ๐Ÿ‡น":"flag-mayotte","๐Ÿ‡ฟ๐Ÿ‡ฆ":"flag-south-africa","๐Ÿ‡ฟ๐Ÿ‡ฒ":"flag-zambia","๐Ÿ‡ฟ๐Ÿ‡ผ":"flag-zimbabwe","๐Ÿด๓ ง๓ ข๓ ฅ๓ ฎ๓ ง๓ ฟ":"flag-england","๐Ÿด๓ ง๓ ข๓ ณ๓ ฃ๓ ด๓ ฟ":"flag-scotland","๐Ÿด๓ ง๓ ข๓ ท๓ ฌ๓ ณ๓ ฟ":"flag-wales"};var dJ,IJ=function(A){var e,t=/[#*0-9]\uFE0F?\u20E3|[\xA9\xAE\u203C\u2049\u2122\u2139\u2194-\u2199\u21A9\u21AA\u231A\u231B\u2328\u23CF\u23ED-\u23EF\u23F1\u23F2\u23F8-\u23FA\u24C2\u25AA\u25AB\u25B6\u25C0\u25FB\u25FC\u25FE\u2600-\u2604\u260E\u2611\u2614\u2615\u2618\u2620\u2622\u2623\u2626\u262A\u262E\u262F\u2638-\u263A\u2640\u2642\u2648-\u2653\u265F\u2660\u2663\u2665\u2666\u2668\u267B\u267E\u267F\u2692\u2694-\u2697\u2699\u269B\u269C\u26A0\u26A7\u26AA\u26B0\u26B1\u26BD\u26BE\u26C4\u26C8\u26CF\u26D1\u26E9\u26F0-\u26F5\u26F7\u26F8\u26FA\u2702\u2708\u2709\u270F\u2712\u2714\u2716\u271D\u2721\u2733\u2734\u2744\u2747\u2757\u2763\u27A1\u2934\u2935\u2B05-\u2B07\u2B1B\u2B1C\u2B55\u3030\u303D\u3297\u3299]\uFE0F?|[\u261D\u270C\u270D](?:\uFE0F|\uD83C[\uDFFB-\uDFFF])?|[\u270A\u270B](?:\uD83C[\uDFFB-\uDFFF])?|[\u23E9-\u23EC\u23F0\u23F3\u25FD\u2693\u26A1\u26AB\u26C5\u26CE\u26D4\u26EA\u26FD\u2705\u2728\u274C\u274E\u2753-\u2755\u2795-\u2797\u27B0\u27BF\u2B50]|\u26D3\uFE0F?(?:\u200D\uD83D\uDCA5)?|\u26F9(?:\uFE0F|\uD83C[\uDFFB-\uDFFF])?(?:\u200D[\u2640\u2642]\uFE0F?)?|\u2764\uFE0F?(?:\u200D(?:\uD83D\uDD25|\uD83E\uDE79))?|\uD83C(?:[\uDC04\uDD70\uDD71\uDD7E\uDD7F\uDE02\uDE37\uDF21\uDF24-\uDF2C\uDF36\uDF7D\uDF96\uDF97\uDF99-\uDF9B\uDF9E\uDF9F\uDFCD\uDFCE\uDFD4-\uDFDF\uDFF5\uDFF7]\uFE0F?|[\uDF85\uDFC2\uDFC7](?:\uD83C[\uDFFB-\uDFFF])?|[\uDFC4\uDFCA](?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D[\u2640\u2642]\uFE0F?)?|[\uDFCB\uDFCC](?:\uFE0F|\uD83C[\uDFFB-\uDFFF])?(?:\u200D[\u2640\u2642]\uFE0F?)?|[\uDCCF\uDD8E\uDD91-\uDD9A\uDE01\uDE1A\uDE2F\uDE32-\uDE36\uDE38-\uDE3A\uDE50\uDE51\uDF00-\uDF20\uDF2D-\uDF35\uDF37-\uDF43\uDF45-\uDF4A\uDF4C-\uDF7C\uDF7E-\uDF84\uDF86-\uDF93\uDFA0-\uDFC1\uDFC5\uDFC6\uDFC8\uDFC9\uDFCF-\uDFD3\uDFE0-\uDFF0\uDFF8-\uDFFF]|\uDDE6\uD83C[\uDDE8-\uDDEC\uDDEE\uDDF1\uDDF2\uDDF4\uDDF6-\uDDFA\uDDFC\uDDFD\uDDFF]|\uDDE7\uD83C[\uDDE6\uDDE7\uDDE9-\uDDEF\uDDF1-\uDDF4\uDDF6-\uDDF9\uDDFB\uDDFC\uDDFE\uDDFF]|\uDDE8\uD83C[\uDDE6\uDDE8\uDDE9\uDDEB-\uDDEE\uDDF0-\uDDF5\uDDF7\uDDFA-\uDDFF]|\uDDE9\uD83C[\uDDEA\uDDEC\uDDEF\uDDF0\uDDF2\uDDF4\uDDFF]|\uDDEA\uD83C[\uDDE6\uDDE8\uDDEA\uDDEC\uDDED\uDDF7-\uDDFA]|\uDDEB\uD83C[\uDDEE-\uDDF0\uDDF2\uDDF4\uDDF7]|\uDDEC\uD83C[\uDDE6\uDDE7\uDDE9-\uDDEE\uDDF1-\uDDF3\uDDF5-\uDDFA\uDDFC\uDDFE]|\uDDED\uD83C[\uDDF0\uDDF2\uDDF3\uDDF7\uDDF9\uDDFA]|\uDDEE\uD83C[\uDDE8-\uDDEA\uDDF1-\uDDF4\uDDF6-\uDDF9]|\uDDEF\uD83C[\uDDEA\uDDF2\uDDF4\uDDF5]|\uDDF0\uD83C[\uDDEA\uDDEC-\uDDEE\uDDF2\uDDF3\uDDF5\uDDF7\uDDFC\uDDFE\uDDFF]|\uDDF1\uD83C[\uDDE6-\uDDE8\uDDEE\uDDF0\uDDF7-\uDDFB\uDDFE]|\uDDF2\uD83C[\uDDE6\uDDE8-\uDDED\uDDF0-\uDDFF]|\uDDF3\uD83C[\uDDE6\uDDE8\uDDEA-\uDDEC\uDDEE\uDDF1\uDDF4\uDDF5\uDDF7\uDDFA\uDDFF]|\uDDF4\uD83C\uDDF2|\uDDF5\uD83C[\uDDE6\uDDEA-\uDDED\uDDF0-\uDDF3\uDDF7-\uDDF9\uDDFC\uDDFE]|\uDDF6\uD83C\uDDE6|\uDDF7\uD83C[\uDDEA\uDDF4\uDDF8\uDDFA\uDDFC]|\uDDF8\uD83C[\uDDE6-\uDDEA\uDDEC-\uDDF4\uDDF7-\uDDF9\uDDFB\uDDFD-\uDDFF]|\uDDF9\uD83C[\uDDE6\uDDE8\uDDE9\uDDEB-\uDDED\uDDEF-\uDDF4\uDDF7\uDDF9\uDDFB\uDDFC\uDDFF]|\uDDFA\uD83C[\uDDE6\uDDEC\uDDF2\uDDF3\uDDF8\uDDFE\uDDFF]|\uDDFB\uD83C[\uDDE6\uDDE8\uDDEA\uDDEC\uDDEE\uDDF3\uDDFA]|\uDDFC\uD83C[\uDDEB\uDDF8]|\uDDFD\uD83C\uDDF0|\uDDFE\uD83C[\uDDEA\uDDF9]|\uDDFF\uD83C[\uDDE6\uDDF2\uDDFC]|\uDF44(?:\u200D\uD83D\uDFEB)?|\uDF4B(?:\u200D\uD83D\uDFE9)?|\uDFC3(?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D(?:[\u2640\u2642]\uFE0F?(?:\u200D\u27A1\uFE0F?)?|\u27A1\uFE0F?))?|\uDFF3\uFE0F?(?:\u200D(?:\u26A7\uFE0F?|\uD83C\uDF08))?|\uDFF4(?:\u200D\u2620\uFE0F?|\uDB40\uDC67\uDB40\uDC62\uDB40(?:\uDC65\uDB40\uDC6E\uDB40\uDC67|\uDC73\uDB40\uDC63\uDB40\uDC74|\uDC77\uDB40\uDC6C\uDB40\uDC73)\uDB40\uDC7F)?)|\uD83D(?:[\uDC3F\uDCFD\uDD49\uDD4A\uDD6F\uDD70\uDD73\uDD76-\uDD79\uDD87\uDD8A-\uDD8D\uDDA5\uDDA8\uDDB1\uDDB2\uDDBC\uDDC2-\uDDC4\uDDD1-\uDDD3\uDDDC-\uDDDE\uDDE1\uDDE3\uDDE8\uDDEF\uDDF3\uDDFA\uDECB\uDECD-\uDECF\uDEE0-\uDEE5\uDEE9\uDEF0\uDEF3]\uFE0F?|[\uDC42\uDC43\uDC46-\uDC50\uDC66\uDC67\uDC6B-\uDC6D\uDC72\uDC74-\uDC76\uDC78\uDC7C\uDC83\uDC85\uDC8F\uDC91\uDCAA\uDD7A\uDD95\uDD96\uDE4C\uDE4F\uDEC0\uDECC](?:\uD83C[\uDFFB-\uDFFF])?|[\uDC6E\uDC70\uDC71\uDC73\uDC77\uDC81\uDC82\uDC86\uDC87\uDE45-\uDE47\uDE4B\uDE4D\uDE4E\uDEA3\uDEB4\uDEB5](?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D[\u2640\u2642]\uFE0F?)?|[\uDD74\uDD90](?:\uFE0F|\uD83C[\uDFFB-\uDFFF])?|[\uDC00-\uDC07\uDC09-\uDC14\uDC16-\uDC25\uDC27-\uDC3A\uDC3C-\uDC3E\uDC40\uDC44\uDC45\uDC51-\uDC65\uDC6A\uDC79-\uDC7B\uDC7D-\uDC80\uDC84\uDC88-\uDC8E\uDC90\uDC92-\uDCA9\uDCAB-\uDCFC\uDCFF-\uDD3D\uDD4B-\uDD4E\uDD50-\uDD67\uDDA4\uDDFB-\uDE2D\uDE2F-\uDE34\uDE37-\uDE41\uDE43\uDE44\uDE48-\uDE4A\uDE80-\uDEA2\uDEA4-\uDEB3\uDEB7-\uDEBF\uDEC1-\uDEC5\uDED0-\uDED2\uDED5-\uDED7\uDEDC-\uDEDF\uDEEB\uDEEC\uDEF4-\uDEFC\uDFE0-\uDFEB\uDFF0]|\uDC08(?:\u200D\u2B1B)?|\uDC15(?:\u200D\uD83E\uDDBA)?|\uDC26(?:\u200D(?:\u2B1B|\uD83D\uDD25))?|\uDC3B(?:\u200D\u2744\uFE0F?)?|\uDC41\uFE0F?(?:\u200D\uD83D\uDDE8\uFE0F?)?|\uDC68(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDC68\uDC69]\u200D\uD83D(?:\uDC66(?:\u200D\uD83D\uDC66)?|\uDC67(?:\u200D\uD83D[\uDC66\uDC67])?)|[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC66(?:\u200D\uD83D\uDC66)?|\uDC67(?:\u200D\uD83D[\uDC66\uDC67])?)|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]))|\uD83C(?:\uDFFB(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D\uDC68\uD83C[\uDFFC-\uDFFF])))?|\uDFFC(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D\uDC68\uD83C[\uDFFB\uDFFD-\uDFFF])))?|\uDFFD(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D\uDC68\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])))?|\uDFFE(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D\uDC68\uD83C[\uDFFB-\uDFFD\uDFFF])))?|\uDFFF(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D\uDC68\uD83C[\uDFFB-\uDFFE])))?))?|\uDC69(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?[\uDC68\uDC69]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC66(?:\u200D\uD83D\uDC66)?|\uDC67(?:\u200D\uD83D[\uDC66\uDC67])?|\uDC69\u200D\uD83D(?:\uDC66(?:\u200D\uD83D\uDC66)?|\uDC67(?:\u200D\uD83D[\uDC66\uDC67])?))|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]))|\uD83C(?:\uDFFB(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:[\uDC68\uDC69]|\uDC8B\u200D\uD83D[\uDC68\uDC69])\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFC-\uDFFF])))?|\uDFFC(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:[\uDC68\uDC69]|\uDC8B\u200D\uD83D[\uDC68\uDC69])\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFB\uDFFD-\uDFFF])))?|\uDFFD(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:[\uDC68\uDC69]|\uDC8B\u200D\uD83D[\uDC68\uDC69])\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])))?|\uDFFE(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:[\uDC68\uDC69]|\uDC8B\u200D\uD83D[\uDC68\uDC69])\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFB-\uDFFD\uDFFF])))?|\uDFFF(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:[\uDC68\uDC69]|\uDC8B\u200D\uD83D[\uDC68\uDC69])\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFB-\uDFFE])))?))?|\uDC6F(?:\u200D[\u2640\u2642]\uFE0F?)?|\uDD75(?:\uFE0F|\uD83C[\uDFFB-\uDFFF])?(?:\u200D[\u2640\u2642]\uFE0F?)?|\uDE2E(?:\u200D\uD83D\uDCA8)?|\uDE35(?:\u200D\uD83D\uDCAB)?|\uDE36(?:\u200D\uD83C\uDF2B\uFE0F?)?|\uDE42(?:\u200D[\u2194\u2195]\uFE0F?)?|\uDEB6(?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D(?:[\u2640\u2642]\uFE0F?(?:\u200D\u27A1\uFE0F?)?|\u27A1\uFE0F?))?)|\uD83E(?:[\uDD0C\uDD0F\uDD18-\uDD1F\uDD30-\uDD34\uDD36\uDD77\uDDB5\uDDB6\uDDBB\uDDD2\uDDD3\uDDD5\uDEC3-\uDEC5\uDEF0\uDEF2-\uDEF8](?:\uD83C[\uDFFB-\uDFFF])?|[\uDD26\uDD35\uDD37-\uDD39\uDD3D\uDD3E\uDDB8\uDDB9\uDDCD\uDDCF\uDDD4\uDDD6-\uDDDD](?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D[\u2640\u2642]\uFE0F?)?|[\uDDDE\uDDDF](?:\u200D[\u2640\u2642]\uFE0F?)?|[\uDD0D\uDD0E\uDD10-\uDD17\uDD20-\uDD25\uDD27-\uDD2F\uDD3A\uDD3F-\uDD45\uDD47-\uDD76\uDD78-\uDDB4\uDDB7\uDDBA\uDDBC-\uDDCC\uDDD0\uDDE0-\uDDFF\uDE70-\uDE7C\uDE80-\uDE88\uDE90-\uDEBD\uDEBF-\uDEC2\uDECE-\uDEDB\uDEE0-\uDEE8]|\uDD3C(?:\u200D[\u2640\u2642]\uFE0F?|\uD83C[\uDFFB-\uDFFF])?|\uDDCE(?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D(?:[\u2640\u2642]\uFE0F?(?:\u200D\u27A1\uFE0F?)?|\u27A1\uFE0F?))?|\uDDD1(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83E\uDDD1|\uDDD1\u200D\uD83E\uDDD2(?:\u200D\uD83E\uDDD2)?|\uDDD2(?:\u200D\uD83E\uDDD2)?))|\uD83C(?:\uDFFB(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1\uD83C[\uDFFC-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF])))?|\uDFFC(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1\uD83C[\uDFFB\uDFFD-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF])))?|\uDFFD(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF])))?|\uDFFE(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1\uD83C[\uDFFB-\uDFFD\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF])))?|\uDFFF(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1\uD83C[\uDFFB-\uDFFE]|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF])))?))?|\uDEF1(?:\uD83C(?:\uDFFB(?:\u200D\uD83E\uDEF2\uD83C[\uDFFC-\uDFFF])?|\uDFFC(?:\u200D\uD83E\uDEF2\uD83C[\uDFFB\uDFFD-\uDFFF])?|\uDFFD(?:\u200D\uD83E\uDEF2\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])?|\uDFFE(?:\u200D\uD83E\uDEF2\uD83C[\uDFFB-\uDFFD\uDFFF])?|\uDFFF(?:\u200D\uD83E\uDEF2\uD83C[\uDFFB-\uDFFE])?))?)/g;return null===(e=A.match(t))||void 0===e?void 0:e[0]},pJ=oY((function(A){return{container:(0,A.css)(dJ||(dJ=Bu(["\n position: relative;\n\n display: flex;\n align-items: center;\n justify-content: center;\n\n line-height: 1;\n text-align: center;\n "])))}})),fJ=J.memo((function(A){var e=A.emoji,t=A.className,n=A.style,o=A.type,r=void 0===o?"3d":o,i=A.size,a=void 0===i?40:i,s=A.unoptimized,l=BJ(),g=WQ(J.useState(!1),2),c=g[0],u=g[1],B=pJ(),Q=B.cx,E=B.styles,C=J.useMemo((function(){if("pure"!==r){var A=function(A){var e=IJ(A);if(e)return null==CJ?void 0:CJ[e]}(e);if(A)switch(r){case"modern":case"flat":case"high-contrast":return l({path:"icons/".concat(r,"/").concat(tJ(A),".svg"),pkg:"fluentui-emoji",version:"0.0.8"});case"anim":return l({path:"assets/".concat(A,".webp"),pkg:"@lobehub/assets-emoji-anim",version:"1.0.0"});case"3d":return l({path:"assets/".concat(A,".webp"),pkg:"@lobehub/assets-emoji",version:"1.3.0"})}}}),[r,e]);return"pure"===r||!C||c?AA.jsx("div",{className:Q(E.container,t),style:kc({fontSize:.9*a,height:a,width:a},n),children:e}):AA.jsx("div",{className:Q(E.container,t),style:kc({height:a,width:a},n),children:AA.jsx(EJ,{alt:e,height:a,loading:"lazy",onError:function(){return u(!0)},src:C,unoptimized:s,width:a})})}));var hJ=function(A){var e,t;function n(e){return QI(A.call(this,"An error occurred. See https://github.com/styled-components/polished/blob/main/src/internalHelpers/errors.md#"+e+" for more information.")||this)}return t=A,(e=n).prototype=Object.create(t.prototype),e.prototype.constructor=e,gI(e,t),n}(ob(Error));function wJ(A){return Math.round(255*A)}function DJ(A,e,t){return wJ(A)+","+wJ(e)+","+wJ(t)}function mJ(A,e,t,n){if(void 0===n&&(n=DJ),0===e)return n(t,t,t);var o=(A%360+360)%360/60,r=(1-Math.abs(2*t-1))*e,i=r*(1-Math.abs(o%2-1)),a=0,s=0,l=0;o>=0&&o<1?(a=r,s=i):o>=1&&o<2?(a=i,s=r):o>=2&&o<3?(s=r,l=i):o>=3&&o<4?(s=i,l=r):o>=4&&o<5?(a=i,l=r):o>=5&&o<6&&(a=r,l=i);var g=t-r/2;return n(a+g,s+g,l+g)}var yJ={aliceblue:"f0f8ff",antiquewhite:"faebd7",aqua:"00ffff",aquamarine:"7fffd4",azure:"f0ffff",beige:"f5f5dc",bisque:"ffe4c4",black:"000",blanchedalmond:"ffebcd",blue:"0000ff",blueviolet:"8a2be2",brown:"a52a2a",burlywood:"deb887",cadetblue:"5f9ea0",chartreuse:"7fff00",chocolate:"d2691e",coral:"ff7f50",cornflowerblue:"6495ed",cornsilk:"fff8dc",crimson:"dc143c",cyan:"00ffff",darkblue:"00008b",darkcyan:"008b8b",darkgoldenrod:"b8860b",darkgray:"a9a9a9",darkgreen:"006400",darkgrey:"a9a9a9",darkkhaki:"bdb76b",darkmagenta:"8b008b",darkolivegreen:"556b2f",darkorange:"ff8c00",darkorchid:"9932cc",darkred:"8b0000",darksalmon:"e9967a",darkseagreen:"8fbc8f",darkslateblue:"483d8b",darkslategray:"2f4f4f",darkslategrey:"2f4f4f",darkturquoise:"00ced1",darkviolet:"9400d3",deeppink:"ff1493",deepskyblue:"00bfff",dimgray:"696969",dimgrey:"696969",dodgerblue:"1e90ff",firebrick:"b22222",floralwhite:"fffaf0",forestgreen:"228b22",fuchsia:"ff00ff",gainsboro:"dcdcdc",ghostwhite:"f8f8ff",gold:"ffd700",goldenrod:"daa520",gray:"808080",green:"008000",greenyellow:"adff2f",grey:"808080",honeydew:"f0fff0",hotpink:"ff69b4",indianred:"cd5c5c",indigo:"4b0082",ivory:"fffff0",khaki:"f0e68c",lavender:"e6e6fa",lavenderblush:"fff0f5",lawngreen:"7cfc00",lemonchiffon:"fffacd",lightblue:"add8e6",lightcoral:"f08080",lightcyan:"e0ffff",lightgoldenrodyellow:"fafad2",lightgray:"d3d3d3",lightgreen:"90ee90",lightgrey:"d3d3d3",lightpink:"ffb6c1",lightsalmon:"ffa07a",lightseagreen:"20b2aa",lightskyblue:"87cefa",lightslategray:"789",lightslategrey:"789",lightsteelblue:"b0c4de",lightyellow:"ffffe0",lime:"0f0",limegreen:"32cd32",linen:"faf0e6",magenta:"f0f",maroon:"800000",mediumaquamarine:"66cdaa",mediumblue:"0000cd",mediumorchid:"ba55d3",mediumpurple:"9370db",mediumseagreen:"3cb371",mediumslateblue:"7b68ee",mediumspringgreen:"00fa9a",mediumturquoise:"48d1cc",mediumvioletred:"c71585",midnightblue:"191970",mintcream:"f5fffa",mistyrose:"ffe4e1",moccasin:"ffe4b5",navajowhite:"ffdead",navy:"000080",oldlace:"fdf5e6",olive:"808000",olivedrab:"6b8e23",orange:"ffa500",orangered:"ff4500",orchid:"da70d6",palegoldenrod:"eee8aa",palegreen:"98fb98",paleturquoise:"afeeee",palevioletred:"db7093",papayawhip:"ffefd5",peachpuff:"ffdab9",peru:"cd853f",pink:"ffc0cb",plum:"dda0dd",powderblue:"b0e0e6",purple:"800080",rebeccapurple:"639",red:"f00",rosybrown:"bc8f8f",royalblue:"4169e1",saddlebrown:"8b4513",salmon:"fa8072",sandybrown:"f4a460",seagreen:"2e8b57",seashell:"fff5ee",sienna:"a0522d",silver:"c0c0c0",skyblue:"87ceeb",slateblue:"6a5acd",slategray:"708090",slategrey:"708090",snow:"fffafa",springgreen:"00ff7f",steelblue:"4682b4",tan:"d2b48c",teal:"008080",thistle:"d8bfd8",tomato:"ff6347",turquoise:"40e0d0",violet:"ee82ee",wheat:"f5deb3",white:"fff",whitesmoke:"f5f5f5",yellow:"ff0",yellowgreen:"9acd32"};var bJ=/^#[a-fA-F0-9]{6}$/,vJ=/^#[a-fA-F0-9]{8}$/,kJ=/^#[a-fA-F0-9]{3}$/,MJ=/^#[a-fA-F0-9]{4}$/,xJ=/^rgb\(\s*(\d{1,3})\s*(?:,)?\s*(\d{1,3})\s*(?:,)?\s*(\d{1,3})\s*\)$/i,SJ=/^rgb(?:a)?\(\s*(\d{1,3})\s*(?:,)?\s*(\d{1,3})\s*(?:,)?\s*(\d{1,3})\s*(?:,|\/)\s*([-+]?\d*[.]?\d+[%]?)\s*\)$/i,FJ=/^hsl\(\s*(\d{0,3}[.]?[0-9]+(?:deg)?)\s*(?:,)?\s*(\d{1,3}[.]?[0-9]?)%\s*(?:,)?\s*(\d{1,3}[.]?[0-9]?)%\s*\)$/i,NJ=/^hsl(?:a)?\(\s*(\d{0,3}[.]?[0-9]+(?:deg)?)\s*(?:,)?\s*(\d{1,3}[.]?[0-9]?)%\s*(?:,)?\s*(\d{1,3}[.]?[0-9]?)%\s*(?:,|\/)\s*([-+]?\d*[.]?\d+[%]?)\s*\)$/i;function RJ(A){if("string"!=typeof A)throw new hJ(3);var e=function(A){if("string"!=typeof A)return A;var e=A.toLowerCase();return yJ[e]?"#"+yJ[e]:A}(A);if(e.match(bJ))return{red:parseInt(""+e[1]+e[2],16),green:parseInt(""+e[3]+e[4],16),blue:parseInt(""+e[5]+e[6],16)};if(e.match(vJ)){var t=parseFloat((parseInt(""+e[7]+e[8],16)/255).toFixed(2));return{red:parseInt(""+e[1]+e[2],16),green:parseInt(""+e[3]+e[4],16),blue:parseInt(""+e[5]+e[6],16),alpha:t}}if(e.match(kJ))return{red:parseInt(""+e[1]+e[1],16),green:parseInt(""+e[2]+e[2],16),blue:parseInt(""+e[3]+e[3],16)};if(e.match(MJ)){var n=parseFloat((parseInt(""+e[4]+e[4],16)/255).toFixed(2));return{red:parseInt(""+e[1]+e[1],16),green:parseInt(""+e[2]+e[2],16),blue:parseInt(""+e[3]+e[3],16),alpha:n}}var o=xJ.exec(e);if(o)return{red:parseInt(""+o[1],10),green:parseInt(""+o[2],10),blue:parseInt(""+o[3],10)};var r=SJ.exec(e.substring(0,50));if(r)return{red:parseInt(""+r[1],10),green:parseInt(""+r[2],10),blue:parseInt(""+r[3],10),alpha:parseFloat(""+r[4])>1?parseFloat(""+r[4])/100:parseFloat(""+r[4])};var i=FJ.exec(e);if(i){var a="rgb("+mJ(parseInt(""+i[1],10),parseInt(""+i[2],10)/100,parseInt(""+i[3],10)/100)+")",s=xJ.exec(a);if(!s)throw new hJ(4,e,a);return{red:parseInt(""+s[1],10),green:parseInt(""+s[2],10),blue:parseInt(""+s[3],10)}}var l=NJ.exec(e.substring(0,50));if(l){var g="rgb("+mJ(parseInt(""+l[1],10),parseInt(""+l[2],10)/100,parseInt(""+l[3],10)/100)+")",c=xJ.exec(g);if(!c)throw new hJ(4,e,g);return{red:parseInt(""+c[1],10),green:parseInt(""+c[2],10),blue:parseInt(""+c[3],10),alpha:parseFloat(""+l[4])>1?parseFloat(""+l[4])/100:parseFloat(""+l[4])}}throw new hJ(5)}function LJ(A){return function(A){var e,t=A.red/255,n=A.green/255,o=A.blue/255,r=Math.max(t,n,o),i=Math.min(t,n,o),a=(r+i)/2;if(r===i)return void 0!==A.alpha?{hue:0,saturation:0,lightness:a,alpha:A.alpha}:{hue:0,saturation:0,lightness:a};var s=r-i,l=a>.5?s/(2-r-i):s/(r+i);switch(r){case t:e=(n-o)/s+(n=1?KJ(A.red,A.green,A.blue):"rgba("+A.red+","+A.green+","+A.blue+","+A.alpha+")";throw new hJ(7)}var TJ=function(A){return"number"==typeof A.red&&"number"==typeof A.green&&"number"==typeof A.blue&&("number"!=typeof A.alpha||void 0===A.alpha)},JJ=function(A){return"number"==typeof A.red&&"number"==typeof A.green&&"number"==typeof A.blue&&"number"==typeof A.alpha},jJ=function(A){return"number"==typeof A.hue&&"number"==typeof A.saturation&&"number"==typeof A.lightness&&("number"!=typeof A.alpha||void 0===A.alpha)},qJ=function(A){return"number"==typeof A.hue&&"number"==typeof A.saturation&&"number"==typeof A.lightness&&"number"==typeof A.alpha};function $J(A){if("object"!=typeof A)throw new hJ(8);if(JJ(A))return YJ(A);if(TJ(A))return KJ(A);if(qJ(A))return function(A,e,t,n){if("number"==typeof A&&"number"==typeof e&&"number"==typeof t&&"number"==typeof n)return n>=1?UJ(A,e,t):"rgba("+mJ(A,e,t)+","+n+")";if("object"==typeof A&&void 0===e&&void 0===t&&void 0===n)return A.alpha>=1?UJ(A.hue,A.saturation,A.lightness):"rgba("+mJ(A.hue,A.saturation,A.lightness)+","+A.alpha+")";throw new hJ(2)}(A);if(jJ(A))return function(A,e,t){if("number"==typeof A&&"number"==typeof e&&"number"==typeof t)return UJ(A,e,t);if("object"==typeof A&&void 0===e&&void 0===t)return UJ(A.hue,A.saturation,A.lightness);throw new hJ(1)}(A);throw new hJ(8)}function zJ(A,e,t){return function(){var n=t.concat(Array.prototype.slice.call(arguments));return n.length>=e?A.apply(this,n):zJ(A,e,n)}}function WJ(A){return zJ(A,A.length,[])}var _J=WJ((function(A,e){if("transparent"===e)return e;var t=LJ(e);return $J(BQ({},t,{hue:t.hue+parseFloat(A)}))}));function XJ(A,e,t){return Math.max(A,Math.min(e,t))}function VJ(A){if("transparent"===A)return 0;var e=RJ(A),t=Object.keys(e).map((function(A){var t=e[A]/255;return t<=.03928?t/12.92:Math.pow((t+.055)/1.055,2.4)})),n=t[0],o=t[1],r=t[2];return parseFloat((.2126*n+.7152*o+.0722*r).toFixed(3))}WJ((function(A,e){if("transparent"===e)return e;var t=LJ(e);return $J(BQ({},t,{lightness:XJ(0,1,t.lightness-parseFloat(A))}))})),WJ((function(A,e){if("transparent"===e)return e;var t=LJ(e);return $J(BQ({},t,{saturation:XJ(0,1,t.saturation-parseFloat(A))}))}));var ZJ=WJ((function(A,e){if("transparent"===e)return e;var t=LJ(e);return $J(BQ({},t,{lightness:XJ(0,1,t.lightness+parseFloat(A))}))}));var Aj=WJ((function(A,e,t){if("transparent"===e)return t;if("transparent"===t)return e;if(0===A)return t;var n=RJ(e),o=BQ({},n,{alpha:"number"==typeof n.alpha?n.alpha:1}),r=RJ(t),i=BQ({},r,{alpha:"number"==typeof r.alpha?r.alpha:1}),a=o.alpha-i.alpha,s=2*parseFloat(A)-1,l=((s*a==-1?s:s+a)/(1+s*a)+1)/2,g=1-l;return YJ({red:Math.floor(o.red*l+i.red*g),green:Math.floor(o.green*l+i.green*g),blue:Math.floor(o.blue*l+i.blue*g),alpha:o.alpha*parseFloat(A)+i.alpha*(1-parseFloat(A))})}));WJ((function(A,e){if("transparent"===e)return e;var t=RJ(e);return YJ(BQ({},t,{alpha:XJ(0,1,(100*("number"==typeof t.alpha?t.alpha:1)+100*parseFloat(A))/100)}))}));var ej,tj="#000",nj="#fff";function oj(A,e,t,n){void 0===e&&(e=tj),void 0===t&&(t=nj),void 0===n&&(n=!0);var o,r,i,a=VJ(A)>.179,s=a?e:t;return!n||(o=s,r=VJ(A),i=VJ(o),parseFloat((r>i?(r+.05)/(i+.05):(i+.05)/(r+.05)).toFixed(2))>=4.5)?s:a?tj:nj}WJ((function(A,e){if("transparent"===e)return e;var t=LJ(e);return $J(BQ({},t,{saturation:XJ(0,1,t.saturation+parseFloat(A))}))})),WJ((function(A,e){return"transparent"===e?e:$J(BQ({},LJ(e),{hue:parseFloat(A)}))})),WJ((function(A,e){return"transparent"===e?e:$J(BQ({},LJ(e),{lightness:parseFloat(A)}))})),WJ((function(A,e){return"transparent"===e?e:$J(BQ({},LJ(e),{saturation:parseFloat(A)}))})),WJ((function(A,e){return"transparent"===e?e:Aj(parseFloat(A),"rgb(0, 0, 0)",e)})),WJ((function(A,e){return"transparent"===e?e:Aj(parseFloat(A),"rgb(255, 255, 255)",e)})),WJ((function(A,e){if("transparent"===e)return e;var t=RJ(e);return YJ(BQ({},t,{alpha:XJ(0,1,+(100*("number"==typeof t.alpha?t.alpha:1)-100*parseFloat(A)).toFixed(2)/100)}))}));var rj=oY((function(A,e){var t=A.css,n=A.token,o=A.prefixCls,r=e.background,i=e.size,a=e.isEmoji,s=null!=r?r:n.colorBgContainer,l=oj(s);return{avatar:t(ej||(ej=Bu(["\n cursor: pointer;\n\n display: flex;\n align-items: center;\n justify-content: center;\n\n background: ",";\n border: 1px solid ",";\n\n > .","-avatar-string {\n font-size: ","px;\n font-weight: 700;\n line-height: 1 !important;\n color: ",";\n }\n\n > * {\n cursor: pointer;\n }\n "])),s,r?"transparent":n.colorSplit,o,i*(a?.7:.5),l)}})),ij=["className","avatar","title","animation","size","shape","background","style","unoptimized"],aj=J.memo((function(A){var e=A.className,t=A.avatar,n=A.title,o=A.animation,r=A.size,i=void 0===r?40:r,a=A.shape,s=void 0===a?"circle":a,l=A.background,g=void 0===l?"rgba(0,0,0,0)":l,c=A.style,u=A.unoptimized,B=Mc(A,ij),Q="string"==typeof t,E=Boolean(t&&(["/","http","data:"].some((function(A){return Q&&t.startsWith(A)}))||J.isValidElement(t))),C=J.useMemo((function(){return t&&!E&&Q&&IJ(t)}),[t]),d=rj({background:g,isEmoji:Boolean(C),size:i}),I=d.styles,p=d.cx,f=String(E?n:t),h=kc({className:p(I.avatar,e),shape:s,size:i,style:null!=B&&B.onClick?c:kc({cursor:"default"},c)},B);return E?AA.jsx(qF,kc({src:"string"==typeof t?AA.jsx(EJ,{alt:h.alt||n,height:i,loading:"lazy",src:t,width:i}):t},h)):AA.jsx(qF,kc(kc({},h),{},{children:C?AA.jsx(fJ,{emoji:C,size:.8*i,type:o?"anim":"3d",unoptimized:u}):null==f?void 0:f.toUpperCase().slice(0,2)}))}));function sj(A,e){var t="function"==typeof Symbol&&A[Symbol.iterator];if(!t)return A;var n,o,r=t.call(A),i=[];try{for(;(void 0===e||e-- >0)&&!(n=r.next()).done;)i.push(n.value)}catch(a){o={error:a}}finally{try{n&&!n.done&&(t=r.return)&&t.call(r)}finally{if(o)throw o.error}}return i}"function"==typeof SuppressedError&&SuppressedError;var lj=function(A){return"function"==typeof A};function gj(A,e){if(A===e)return!0;for(var t=0;t .","-menu-item-only-child, .","-menu-submenu-title {\n width: 100%;\n margin: 0 !important;\n border-block-start: none;\n border-radius: 0;\n\n &:active {\n color: ",";\n background-color: ",";\n }\n }\n\n .","-menu-item-only-child:first-child {\n border-block-start: none;\n }\n\n .","-menu-submenu-title[aria-expanded='true'] {\n a {\n font-weight: 600;\n color: "," !important;\n }\n }\n\n .","-menu-item-group-title {\n padding-block: 8px;\n\n font-size: 12px;\n font-weight: 500;\n line-height: 1;\n text-overflow: ellipsis;\n text-transform: uppercase;\n white-space: nowrap;\n\n background: ",";\n }\n\n .","-menu-item {\n width: calc(100% - 16px) !important;\n margin: 8px !important;\n border-radius: ","px;\n\n &:hover,\n &:active {\n color: "," !important;\n background: "," !important;\n }\n }\n\n .","-menu-item-active {\n width: calc(100% - 16px) !important;\n margin: 8px !important;\n background: ",";\n border-radius: ","px;\n }\n\n .","-menu-item-selected {\n font-weight: 600;\n color: ",";\n background: ",";\n\n &:hover,\n &:active {\n color: "," !important;\n background: "," !important;\n }\n }\n "])),i?a:0,r,r,t.colorText,t.colorFill,r,r,t.colorText,r,t.colorFillSecondary,r,t.borderRadius,t.colorText,t.colorFillSecondary,r,t.colorFillSecondary,t.borderRadius,r,t.colorBgLayout,t.colorText,t.colorBgLayout,t.colorText)}})),Dq=["items","openKeys","selectedKeys","opened","setOpened","className","headerHeight","onClick","iconProps","rootClassName","fullscreen","drawerProps"],mq=J.memo((function(A){var e=A.items,t=A.openKeys,n=A.selectedKeys,o=A.opened,r=A.setOpened,i=A.className,a=A.headerHeight,s=void 0===a?64:a,l=A.onClick,g=A.iconProps,c=A.rootClassName,u=A.fullscreen,B=A.drawerProps,Q=Mc(A,Dq),E=wq({fullscreen:u,headerHeight:s}),C=E.cx,d=E.styles;return AA.jsxs(_B,kc(kc({className:C(d.container,i),onClick:function(){r(!o)}},Q),{},{children:[AA.jsx(mY,kc({icon:o?gu:Zc,size:"site"},g)),AA.jsxs(qG,kc(kc({closeIcon:void 0,open:o,placement:"left",width:"100vw"},B),{},{className:d.drawer,rootClassName:C(d.drawerRoot,c),styles:{body:{padding:0},header:{display:"none"}},children:[AA.jsx($R,{className:d.menu,items:e,mode:"inline",onClick:l,openKeys:t,selectedKeys:n}),AA.jsx("div",{className:d.fillRect})]}))]}))})),yq=function(){var A=function(e,t){return(A=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(A,e){A.__proto__=e}||function(A,e){for(var t in e)Object.prototype.hasOwnProperty.call(e,t)&&(A[t]=e[t])})(e,t)};return function(e,t){function n(){this.constructor=e}A(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}}(),bq=function(){return bq=Object.assign||function(A){for(var e,t=1,n=arguments.length;t div {\n pointer-events: all;\n cursor: pointer;\n\n position: absolute;\n\n color: ",";\n\n background: ",";\n border-color: ",";\n border-style: solid;\n border-width: 1px;\n border-radius: 4px;\n\n transition: all 0.2s ",";\n\n &:hover {\n color: ",";\n background: ",";\n }\n\n &:active {\n color: ",";\n background: ",";\n }\n }\n "])),o?"all":"none",t.motionEaseOut,t.colorTextTertiary,t.colorFillTertiary,t.colorBorderSecondary,t.motionEaseOut,t.colorTextSecondary,t.colorFillSecondary,t.colorText,t.colorFill),a=iY(oq||(oq=Bu(["\n position: absolute;\n z-index: 200;\n "])));return{bottomFloat:aY(a,iY(rq||(rq=Bu(["\n inset-block-end: 0;\n inset-inline: 0 0;\n width: 100%;\n "])))),bottomHandle:aY("".concat(qq,"-bottom-handle"),iY(iq||(iq=Bu(["\n ",";\n\n &::before {\n inset-block-end: 50%;\n width: 100%;\n height: 2px;\n }\n "])),r)),container:aY(qq,iY(aq||(aq=Bu(["\n flex-shrink: 0;\n border: 0 solid ",";\n\n &:hover {\n .","-toggle {\n opacity: 1;\n }\n }\n "])),t.colorBorderSecondary,qq)),fixed:iY(sq||(sq=Bu(["\n position: relative;\n "]))),fullscreen:iY(lq||(lq=Bu(["\n position: absolute;\n inset-block: ","px 0;\n inset-inline: 0;\n\n width: 100%;\n height: calc(100% - ","px);\n\n background: ",";\n "])),n,n,t.colorBgLayout),handlerIcon:iY(gq||(gq=Bu(["\n display: flex;\n align-items: center;\n justify-content: center;\n transition: all 0.2s ",";\n "])),t.motionEaseOut),leftFloat:aY(a,iY(cq||(cq=Bu(["\n inset-block: ","px 0;\n inset-inline-start: 0;\n height: calc(100% - ","px);\n "])),n,n)),leftHandle:aY(iY(uq||(uq=Bu(["\n ",";\n\n &::before {\n inset-inline-start: 50%;\n width: 2px;\n height: 100%;\n }\n "])),r),"".concat(qq,"-left-handle")),panel:aY("".concat(qq,"-fixed"),iY(Bq||(Bq=Bu(["\n overflow: hidden;\n transition: all 0.2s ",";\n "])),t.motionEaseOut)),rightFloat:aY(a,iY(Qq||(Qq=Bu(["\n inset-block: ","px 0;\n inset-inline-end: 0;\n height: calc(100% - ","px);\n "])),n,n)),rightHandle:aY(iY(Eq||(Eq=Bu(["\n ",";\n &::before {\n inset-inline-end: 50%;\n width: 2px;\n height: 100%;\n }\n "])),r),"".concat(qq,"-right-handle")),toggleBottom:aY("".concat(qq,"-toggle"),"".concat(qq,"-toggle-bottom"),i,iY(Cq||(Cq=Bu(["\n inset-block-end: -","px;\n width: 100%;\n height: ","px;\n\n > div {\n inset-inline-start: 50%;\n\n width: ","px;\n height: 16px;\n margin-inline-start: -20px;\n\n border-radius: 0 0 4px 4px;\n }\n "])),16,jq,40)),toggleLeft:aY("".concat(qq,"-toggle"),"".concat(qq,"-toggle-left"),i,iY(dq||(dq=Bu(["\n inset-inline-start: -","px;\n width: ","px;\n height: 100%;\n\n > div {\n inset-block-start: 50%;\n\n width: ","px;\n height: ","px;\n margin-block-start: -20px;\n\n border-radius: 4px 0 0 4px;\n }\n "])),16,jq,jq,40)),toggleRight:aY("".concat(qq,"-toggle"),"".concat(qq,"-toggle-right"),i,iY(Iq||(Iq=Bu(["\n inset-inline-end: -","px;\n width: ","px;\n height: 100%;\n\n > div {\n inset-block-start: 50%;\n\n width: ","px;\n height: ","px;\n margin-block-start: -20px;\n\n border-radius: 0 4px 4px 0;\n }\n "])),16,jq,jq,40)),toggleTop:aY("".concat(qq,"-toggle"),"".concat(qq,"-toggle-top"),i,iY(pq||(pq=Bu(["\n inset-block-start: -","px;\n width: 100%;\n height: ","px;\n\n > div {\n inset-inline-start: 50%;\n\n width: ","px;\n height: ","px;\n margin-inline-start: -20px;\n\n border-radius: 4px 4px 0 0;\n }\n "])),16,jq,40,jq)),topFloat:aY(a,iY(fq||(fq=Bu(["\n inset-block-start: ","px;\n inset-inline: 0 0;\n width: 100%;\n "])),n)),topHandle:aY("".concat(qq,"-top-handle"),iY(hq||(hq=Bu(["\n ",";\n\n &::before {\n inset-block-start: 50%;\n width: 100%;\n height: 2px;\n }\n "])),r))}})),zq=function(A){switch(A){case"bottom":return"top";case"top":return"bottom";case"right":return"left";case"left":return"right"}},Wq=J.memo((function(A){var e,t,n,o,r,i,a,s,l,g,c=A.headerHeight,u=void 0===c?0:c,B=A.fullscreen,Q=A.maxHeight,E=A.pin,C=void 0===E||E,d=A.mode,I=void 0===d?"fixed":d,p=A.children,f=A.placement,h=void 0===f?"right":f,w=A.resize,D=A.style,m=A.showHandlerWideArea,y=void 0===m||m,b=A.size,v=A.defaultSize,k=A.minWidth,M=A.minHeight,x=A.maxWidth,S=A.onSizeChange,F=A.onSizeDragging,N=A.expandable,R=void 0===N||N,L=A.expand,P=A.defaultExpand,H=void 0===P||P,G=A.onExpandChange,O=A.className,U=A.showHandlerWhenUnexpand,K=A.destroyOnClose,Y=A.hanlderStyle,T=A.classNames,j=void 0===T?{}:T,q=A.dir,$=J.useRef(),z=(e=$,n=(t={}).onEnter,o=t.onLeave,r=t.onChange,i=sj(Lj(!1),2),a=i[0],s=i[1],l=s.setTrue,g=s.setFalse,qj("mouseenter",(function(){null==n||n(),l(),null==r||r(!0)}),{target:e}),qj("mouseleave",(function(){null==o||o(),g(),null==r||r(!1)}),{target:e}),a),W="top"===h||"bottom"===h,_=J.useContext(tw.ConfigContext).direction,X=h;"rtl"===(null!=q?q:_)&&["left","right"].includes(h)&&(X="left"===X?"right":"left");var V=$q({headerHeight:u,showHandlerWideArea:y}),Z=V.styles,eA=V.cx,tA=WQ(KK(H,{onChange:G,value:L}),2),nA=tA[0],oA=tA[1];J.useEffect((function(){C||(z&&!nA?oA(!0):!z&&nA&&oA(!1))}),[C,z,nA]);var rA=WQ(J.useState(!0),2),iA=rA[0],aA=rA[1],sA=WQ(J.useState(!1),2),lA=sA[0],gA=sA[1],cA=!1!==w&&nA,uA=J.useMemo((function(){return cA?bc({},zq(X),Z["".concat(zq(X),"Handle")]):{}}),[cA,X]),BA=kc(bc({bottom:!1,bottomLeft:!1,bottomRight:!1,left:!1,right:!1,top:!1,topLeft:!1,topRight:!1},zq(X),!0),w),QA=J.useMemo((function(){return kc(W?{height:180,width:"100%"}:{height:"100%",width:280},v)}),[W]),EA=nA?{defaultSize:QA,maxHeight:"number"==typeof Q?Math.max(Q,0):Q,maxWidth:"number"==typeof x?Math.max(x,0):x,minHeight:"number"==typeof M?Math.max(M,0):M,minWidth:"number"==typeof k?Math.max(k,0):k,size:b}:W?{minHeight:0,size:{height:0}}:{minWidth:0,size:{width:0}},CA=J.useMemo((function(){switch(X){case"top":return{Arrow:Hc,className:"Bottom"};case"bottom":return{Arrow:Uc,className:"Top"};case"right":return{Arrow:Gc,className:"Left"};case"left":return{Arrow:Oc,className:"Right"}}}),[Z,X]),dA=CA.Arrow,IA=CA.className,pA=AA.jsx(_B,{className:eA(Z["toggle".concat(IA)],j.handle),style:{opacity:nA?C?void 0:0:U?1:0},children:AA.jsx(_B,{onClick:function(){oA(!nA)},style:Y,children:AA.jsx("div",{className:Z.handlerIcon,style:{transform:"rotate(".concat(nA?180:0,"deg)")},children:AA.jsx(dA,{size:16,strokeWidth:1.5})})})}),fA=AA.jsx(Jq,kc(kc({},EA),{},{className:eA(Z.panel,j.content),enable:cA?BA:void 0,handleClasses:uA,onResize:function(A,e,t,n){null==F||F(n,{height:t.style.height,width:t.style.width})},onResizeStart:function(){gA(!0),aA(!1)},onResizeStop:function(A,e,t,n){gA(!1),aA(!0),null==S||S(n,{height:t.style.height,width:t.style.width})},style:kc({transition:lA?"unset":void 0},D),children:p}));return B?AA.jsx("div",{className:eA(Z.fullscreen,O),children:p}):AA.jsxs("aside",{className:eA(Z.container,Z["fixed"===I?"fixed":"".concat(X,"Float")],O),dir:q,ref:$,style:nA?bc({},"border".concat(IA,"Width"),1):{},children:[R&&iA&&pA,K?nA&&fA:fA]})})),_q={exports:{}};function Xq(){}function Vq(){}Vq.resetWarningCache=Xq;_q.exports=function(){function A(A,e,t,n,o,r){if("SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"!==r){var i=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw i.name="Invariant Violation",i}}function e(){return A}A.isRequired=A;var t={array:A,bigint:A,bool:A,func:A,number:A,object:A,string:A,symbol:A,any:A,arrayOf:e,element:A,elementType:A,instanceOf:e,node:A,objectOf:e,oneOf:e,oneOfType:e,shape:e,exact:e,checkPropTypes:Vq,resetWarningCache:Xq};return t.PropTypes=t,t}();var Zq=_q.exports;const A$=o(Zq),e$={};var t$,n$,o$,r$;function i$(A,e){const t=[],n=function(A){let e=/([LR]:|[\w\.:][\w\.:\-]*|[\,\|\-\(\)])/g,t=e.exec(A);return{next:()=>{if(!t)return null;const n=t[0];return t=e.exec(A),n}}}(A);let o=n.next();for(;null!==o;){let A=0;if(2===o.length&&":"===o.charAt(1)){switch(o.charAt(0)){case"R":A=1;break;case"L":A=-1;break;default:console.log(`Unknown priority ${o} in scope selector`)}o=n.next()}let e=i();if(t.push({matcher:e,priority:A}),","!==o)break;o=n.next()}return t;function r(){if("-"===o){o=n.next();const A=r();return e=>!!A&&!A(e)}if("("===o){o=n.next();const A=function(){const A=[];let e=i();for(;e&&(A.push(e),"|"===o||","===o);){do{o=n.next()}while("|"===o||","===o);e=i()}return e=>A.some((A=>A(e)))}();return")"===o&&(o=n.next()),A}if(a$(o)){const A=[];do{A.push(o),o=n.next()}while(a$(o));return t=>e(A,t)}return null}function i(){const A=[];let e=r();for(;e;)A.push(e),e=r();return e=>A.every((A=>A(e)))}}function a$(A){return!!A&&!!A.match(/[\w\.:]+/)}function s$(A){"function"==typeof A.dispose&&A.dispose()}function l$(A){return Array.isArray(A)?function(A){let e=[];for(let t=0,n=A.length;t{for(let t in e)A[t]=e[t]})),A}function c$(A){const e=~A.lastIndexOf("/")||~A.lastIndexOf("\\");return 0===e?A:~e==A.length-1?c$(A.substring(0,A.length-1)):A.substr(1+~e)}(n$=t$||(t$={}))[n$.NotSet=-1]="NotSet",n$[n$.None=0]="None",n$[n$.Italic=1]="Italic",n$[n$.Bold=2]="Bold",n$[n$.Underline=4]="Underline",(r$=o$||(o$={})).toBinaryStr=function(A){return A.toString(2).padStart(32,"0")},r$.print=function(A){const e=r$.getLanguageId(A),t=r$.getTokenType(A),n=r$.getFontStyle(A),o=r$.getForeground(A),r=r$.getBackground(A);console.log({languageId:e,tokenType:t,fontStyle:n,foreground:o,background:r})},r$.getLanguageId=function(A){return(255&A)>>>0},r$.getTokenType=function(A){return(768&A)>>>8},r$.containsBalancedBrackets=function(A){return!!(1024&A)},r$.getFontStyle=function(A){return(30720&A)>>>11},r$.getForeground=function(A){return(16744448&A)>>>15},r$.getBackground=function(A){return(4278190080&A)>>>24},r$.set=function(A,e,t,n,o,r,i){let a=r$.getLanguageId(A),s=r$.getTokenType(A),l=r$.containsBalancedBrackets(A)?1:0,g=r$.getFontStyle(A),c=r$.getForeground(A),u=r$.getBackground(A);return 0!==e&&(a=e),8!==t&&(s=t),null!==n&&(l=n?1:0),-1!==o&&(g=o),0!==r&&(c=r),0!==i&&(u=i),(a|s<<8|l<<10|g<<11|c<<15|u<<24)>>>0};let u$=/\$(\d+)|\${(\d+):\/(downcase|upcase)}/g;class B${static hasCaptures(A){return null!==A&&(u$.lastIndex=0,u$.test(A))}static replaceCaptures(A,e,t){return A.replace(u$,((A,n,o,r)=>{let i=t[parseInt(n||o,10)];if(!i)return A;{let A=e.substring(i.start,i.end);for(;"."===A[0];)A=A.substring(1);switch(r){case"downcase":return A.toLowerCase();case"upcase":return A.toUpperCase();default:return A}}}))}}function Q$(A,e){return Ae?1:0}function E$(A,e){if(null===A&&null===e)return 0;if(!A)return-1;if(!e)return 1;let t=A.length,n=e.length;if(t===n){for(let n=0;n`);return}const r=t.lookup(e);A instanceof p$?y$({baseGrammar:r,selfGrammar:o},n):m$(A.ruleName,{baseGrammar:r,selfGrammar:o,repository:o.repository},n);const i=t.injections(A.scopeName);if(i)for(const a of i)n.add(new p$(a))}function m$(A,e,t){if(e.repository&&e.repository[A]){b$([e.repository[A]],e,t)}}function y$(A,e){A.selfGrammar.patterns&&Array.isArray(A.selfGrammar.patterns)&&b$(A.selfGrammar.patterns,{...A,repository:A.selfGrammar.repository},e),A.selfGrammar.injections&&b$(Object.values(A.selfGrammar.injections),{...A,repository:A.selfGrammar.repository},e)}function b$(A,e,t){for(const n of A){if(t.visitedRule.has(n))continue;t.visitedRule.add(n);const A=n.repository?g$({},e.repository,n.repository):e.repository;Array.isArray(n.patterns)&&b$(n.patterns,{...e,repository:A},t);const o=n.include;if(!o)continue;const r=F$(o);switch(r.kind){case 0:y$({...e,selfGrammar:e.baseGrammar},t);break;case 1:y$(e,t);break;case 2:m$(r.ruleName,{...e,repository:A},t);break;case 3:case 4:const n=r.scopeName===e.selfGrammar.scopeName?e.selfGrammar:r.scopeName===e.baseGrammar.scopeName?e.baseGrammar:void 0;if(n){const o={baseGrammar:e.baseGrammar,selfGrammar:n,repository:A};4===r.kind?m$(r.ruleName,o,t):y$(o,t)}else 4===r.kind?t.add(new f$(r.scopeName,r.ruleName)):t.add(new p$(r.scopeName))}}}class v${constructor(){e(this,"kind",0)}}class k${constructor(){e(this,"kind",1)}}class M${constructor(A){e(this,"ruleName"),e(this,"kind",2),this.ruleName=A}}class x${constructor(A){e(this,"scopeName"),e(this,"kind",3),this.scopeName=A}}class S${constructor(A,t){e(this,"scopeName"),e(this,"ruleName"),e(this,"kind",4),this.scopeName=A,this.ruleName=t}}function F$(A){if("$base"===A)return new v$;if("$self"===A)return new k$;const e=A.indexOf("#");if(-1===e)return new x$(A);if(0===e)return new M$(A.substring(1));{const t=A.substring(0,e),n=A.substring(e+1);return new S$(t,n)}}const N$=/\\(\d+)/,R$=/\\(\d+)/g,L$=-1,P$=-2;class H${constructor(A,t,n,o){e(this,"$location"),e(this,"id"),e(this,"_nameIsCapturing"),e(this,"_name"),e(this,"_contentNameIsCapturing"),e(this,"_contentName"),this.$location=A,this.id=t,this._name=n||null,this._nameIsCapturing=B$.hasCaptures(this._name),this._contentName=o||null,this._contentNameIsCapturing=B$.hasCaptures(this._contentName)}get debugName(){const A=this.$location?`${c$(this.$location.filename)}:${this.$location.line}`:"unknown";return`${this.constructor.name}#${this.id} @ ${A}`}getName(A,e){return this._nameIsCapturing&&null!==this._name&&null!==A&&null!==e?B$.replaceCaptures(this._name,A,e):this._name}getContentName(A,e){return this._contentNameIsCapturing&&null!==this._contentName?B$.replaceCaptures(this._contentName,A,e):this._contentName}}class G$ extends H${constructor(A,t,n,o,r){super(A,t,n,o),e(this,"retokenizeCapturedWithRuleId"),this.retokenizeCapturedWithRuleId=r}dispose(){}collectPatterns(A,e){throw new Error("Not supported!")}compile(A,e){throw new Error("Not supported!")}compileAG(A,e,t,n){throw new Error("Not supported!")}}class O$ extends H${constructor(A,t,n,o,r){super(A,t,n,null),e(this,"_match"),e(this,"captures"),e(this,"_cachedCompiledPatterns"),this._match=new J$(o,this.id),this.captures=r,this._cachedCompiledPatterns=null}dispose(){this._cachedCompiledPatterns&&(this._cachedCompiledPatterns.dispose(),this._cachedCompiledPatterns=null)}get debugMatchRegExp(){return`${this._match.source}`}collectPatterns(A,e){e.push(this._match)}compile(A,e){return this._getCachedCompiledPatterns(A).compile(A)}compileAG(A,e,t,n){return this._getCachedCompiledPatterns(A).compileAG(A,t,n)}_getCachedCompiledPatterns(A){return this._cachedCompiledPatterns||(this._cachedCompiledPatterns=new j$,this.collectPatterns(A,this._cachedCompiledPatterns)),this._cachedCompiledPatterns}}class U$ extends H${constructor(A,t,n,o,r){super(A,t,n,o),e(this,"hasMissingPatterns"),e(this,"patterns"),e(this,"_cachedCompiledPatterns"),this.patterns=r.patterns,this.hasMissingPatterns=r.hasMissingPatterns,this._cachedCompiledPatterns=null}dispose(){this._cachedCompiledPatterns&&(this._cachedCompiledPatterns.dispose(),this._cachedCompiledPatterns=null)}collectPatterns(A,e){for(const t of this.patterns){A.getRule(t).collectPatterns(A,e)}}compile(A,e){return this._getCachedCompiledPatterns(A).compile(A)}compileAG(A,e,t,n){return this._getCachedCompiledPatterns(A).compileAG(A,t,n)}_getCachedCompiledPatterns(A){return this._cachedCompiledPatterns||(this._cachedCompiledPatterns=new j$,this.collectPatterns(A,this._cachedCompiledPatterns)),this._cachedCompiledPatterns}}class K$ extends H${constructor(A,t,n,o,r,i,a,s,l,g){super(A,t,n,o),e(this,"_begin"),e(this,"beginCaptures"),e(this,"_end"),e(this,"endHasBackReferences"),e(this,"endCaptures"),e(this,"applyEndPatternLast"),e(this,"hasMissingPatterns"),e(this,"patterns"),e(this,"_cachedCompiledPatterns"),this._begin=new J$(r,this.id),this.beginCaptures=i,this._end=new J$(a||"๏ฟฟ",-1),this.endHasBackReferences=this._end.hasBackReferences,this.endCaptures=s,this.applyEndPatternLast=l||!1,this.patterns=g.patterns,this.hasMissingPatterns=g.hasMissingPatterns,this._cachedCompiledPatterns=null}dispose(){this._cachedCompiledPatterns&&(this._cachedCompiledPatterns.dispose(),this._cachedCompiledPatterns=null)}get debugBeginRegExp(){return`${this._begin.source}`}get debugEndRegExp(){return`${this._end.source}`}getEndWithResolvedBackReferences(A,e){return this._end.resolveBackReferences(A,e)}collectPatterns(A,e){e.push(this._begin)}compile(A,e){return this._getCachedCompiledPatterns(A,e).compile(A)}compileAG(A,e,t,n){return this._getCachedCompiledPatterns(A,e).compileAG(A,t,n)}_getCachedCompiledPatterns(A,e){if(!this._cachedCompiledPatterns){this._cachedCompiledPatterns=new j$;for(const e of this.patterns){A.getRule(e).collectPatterns(A,this._cachedCompiledPatterns)}this.applyEndPatternLast?this._cachedCompiledPatterns.push(this._end.hasBackReferences?this._end.clone():this._end):this._cachedCompiledPatterns.unshift(this._end.hasBackReferences?this._end.clone():this._end)}return this._end.hasBackReferences&&(this.applyEndPatternLast?this._cachedCompiledPatterns.setSource(this._cachedCompiledPatterns.length()-1,e):this._cachedCompiledPatterns.setSource(0,e)),this._cachedCompiledPatterns}}class Y$ extends H${constructor(A,t,n,o,r,i,a,s,l){super(A,t,n,o),e(this,"_begin"),e(this,"beginCaptures"),e(this,"whileCaptures"),e(this,"_while"),e(this,"whileHasBackReferences"),e(this,"hasMissingPatterns"),e(this,"patterns"),e(this,"_cachedCompiledPatterns"),e(this,"_cachedCompiledWhilePatterns"),this._begin=new J$(r,this.id),this.beginCaptures=i,this.whileCaptures=s,this._while=new J$(a,P$),this.whileHasBackReferences=this._while.hasBackReferences,this.patterns=l.patterns,this.hasMissingPatterns=l.hasMissingPatterns,this._cachedCompiledPatterns=null,this._cachedCompiledWhilePatterns=null}dispose(){this._cachedCompiledPatterns&&(this._cachedCompiledPatterns.dispose(),this._cachedCompiledPatterns=null),this._cachedCompiledWhilePatterns&&(this._cachedCompiledWhilePatterns.dispose(),this._cachedCompiledWhilePatterns=null)}get debugBeginRegExp(){return`${this._begin.source}`}get debugWhileRegExp(){return`${this._while.source}`}getWhileWithResolvedBackReferences(A,e){return this._while.resolveBackReferences(A,e)}collectPatterns(A,e){e.push(this._begin)}compile(A,e){return this._getCachedCompiledPatterns(A).compile(A)}compileAG(A,e,t,n){return this._getCachedCompiledPatterns(A).compileAG(A,t,n)}_getCachedCompiledPatterns(A){if(!this._cachedCompiledPatterns){this._cachedCompiledPatterns=new j$;for(const e of this.patterns){A.getRule(e).collectPatterns(A,this._cachedCompiledPatterns)}}return this._cachedCompiledPatterns}compileWhile(A,e){return this._getCachedCompiledWhilePatterns(A,e).compile(A)}compileWhileAG(A,e,t,n){return this._getCachedCompiledWhilePatterns(A,e).compileAG(A,t,n)}_getCachedCompiledWhilePatterns(A,e){return this._cachedCompiledWhilePatterns||(this._cachedCompiledWhilePatterns=new j$,this._cachedCompiledWhilePatterns.push(this._while.hasBackReferences?this._while.clone():this._while)),this._while.hasBackReferences&&this._cachedCompiledWhilePatterns.setSource(0,e||"๏ฟฟ"),this._cachedCompiledWhilePatterns}}class T${static createCaptureRule(A,e,t,n,o){return A.registerRule((A=>new G$(e,A,t,n,o)))}static getCompiledRuleId(A,e,t){return A.id||e.registerRule((n=>{if(A.id=n,A.match)return new O$(A.$vscodeTextmateLocation,A.id,A.name,A.match,T$._compileCaptures(A.captures,e,t));if(void 0===A.begin){A.repository&&(t=g$({},t,A.repository));let n=A.patterns;return void 0===n&&A.include&&(n=[{include:A.include}]),new U$(A.$vscodeTextmateLocation,A.id,A.name,A.contentName,T$._compilePatterns(n,e,t))}return A.while?new Y$(A.$vscodeTextmateLocation,A.id,A.name,A.contentName,A.begin,T$._compileCaptures(A.beginCaptures||A.captures,e,t),A.while,T$._compileCaptures(A.whileCaptures||A.captures,e,t),T$._compilePatterns(A.patterns,e,t)):new K$(A.$vscodeTextmateLocation,A.id,A.name,A.contentName,A.begin,T$._compileCaptures(A.beginCaptures||A.captures,e,t),A.end,T$._compileCaptures(A.endCaptures||A.captures,e,t),A.applyEndPatternLast,T$._compilePatterns(A.patterns,e,t))})),A.id}static _compileCaptures(A,e,t){let n=[];if(A){let o=0;for(const e in A){if("$vscodeTextmateLocation"===e)continue;const A=parseInt(e,10);A>o&&(o=A)}for(let A=0;A<=o;A++)n[A]=null;for(const r in A){if("$vscodeTextmateLocation"===r)continue;const o=parseInt(r,10);let i=0;A[r].patterns&&(i=T$.getCompiledRuleId(A[r],e,t)),n[o]=T$.createCaptureRule(e,A[r].$vscodeTextmateLocation,A[r].name,A[r].contentName,i)}}return n}static _compilePatterns(A,e,t){let n=[];if(A)for(let o=0,r=A.length;oA.substring(e.start,e.end)));return R$.lastIndex=0,this.source.replace(R$,((A,e)=>d$(t[parseInt(e,10)]||"")))}_buildAnchorCache(){let A,e,t,n,o=[],r=[],i=[],a=[];for(A=0,e=this.source.length;AA.source));this._cached=new q$(A,e,this._items.map((A=>A.ruleId)))}return this._cached}compileAG(A,e,t){return this._hasAnchors?e?t?(this._anchorCache.A1_G1||(this._anchorCache.A1_G1=this._resolveAnchors(A,e,t)),this._anchorCache.A1_G1):(this._anchorCache.A1_G0||(this._anchorCache.A1_G0=this._resolveAnchors(A,e,t)),this._anchorCache.A1_G0):t?(this._anchorCache.A0_G1||(this._anchorCache.A0_G1=this._resolveAnchors(A,e,t)),this._anchorCache.A0_G1):(this._anchorCache.A0_G0||(this._anchorCache.A0_G0=this._resolveAnchors(A,e,t)),this._anchorCache.A0_G0):this.compile(A)}_resolveAnchors(A,e,t){let n=this._items.map((A=>A.resolveAnchors(e,t)));return new q$(A,n,this._items.map((A=>A.ruleId)))}}class q${constructor(A,t,n){e(this,"regExps"),e(this,"rules"),e(this,"scanner"),this.regExps=t,this.rules=n,this.scanner=A.createOnigScanner(t)}dispose(){"function"==typeof this.scanner.dispose&&this.scanner.dispose()}toString(){const A=[];for(let e=0,t=this.rules.length;ethis._root.match(A)))),this._colorMap=A,this._defaults=t,this._root=n}static createFromRawTheme(A,e){return this.createFromParsedTheme(function(A){if(!A)return[];if(!A.settings||!Array.isArray(A.settings))return[];let e=A.settings,t=[],n=0;for(let o=0,r=e.length;o1&&(g=r.slice(0,r.length-1),g.reverse()),t[n++]=new X$(l,g,o,i,a,s)}}return t}(A),e)}static createFromParsedTheme(A,e){return function(A,e){A.sort(((A,e)=>{let t=Q$(A.scope,e.scope);return 0!==t?t:(t=E$(A.parentScopes,e.parentScopes),0!==t?t:A.index-e.index)}));let t=0,n="#000000",o="#ffffff";for(;A.length>=1&&""===A[0].scope;){let e=A.shift();-1!==e.fontStyle&&(t=e.fontStyle),null!==e.foreground&&(n=e.foreground),null!==e.background&&(o=e.background)}let r=new V$(e),i=new _$(t,r.getId(n),r.getId(o)),a=new Az(new Z$(0,null,-1,0,0),[]);for(let s=0,l=A.length;sfunction(A,e){if(null===e)return!0;let t=0,n=e[t];for(;A;){if(W$(A.scopeName,n)){if(t++,t===e.length)return!0;n=e[t]}A=A.parent}return!1}(A.parent,e.parentScopes)));return t?new _$(t.fontStyle,t.foreground,t.background):null}}class z${constructor(A,t){e(this,"parent"),e(this,"scopeName"),this.parent=A,this.scopeName=t}static push(A,e){for(const t of e)A=new z$(A,t);return A}static from(...A){let e=null;for(let t=0;tA?console.log("how did this happen?"):this.scopeDepth=A,-1!==e&&(this.fontStyle=e),0!==t&&(this.foreground=t),0!==n&&(this.background=n)}}class Az{constructor(A,t=[],n={}){e(this,"_mainRule"),e(this,"_children"),e(this,"_rulesWithParentScopes"),this._mainRule=A,this._children=n,this._rulesWithParentScopes=t}static _sortBySpecificity(A){return 1===A.length||A.sort(this._cmpBySpecificity),A}static _cmpBySpecificity(A,e){if(A.scopeDepth===e.scopeDepth){const t=A.parentScopes,n=e.parentScopes;let o=null===t?0:t.length,r=null===n?0:n.length;if(o===r)for(let A=0;A{const e=this._scopeToLanguage(A),t=this._toStandardTokenType(A);return new ez(e,t)}))),this._defaultAttributes=new ez(A,8),this._embeddedLanguagesMatcher=new oz(Object.entries(t||{}))}getDefaultAttributes(){return this._defaultAttributes}getBasicScopeAttributes(e){return null===e?A._NULL_SCOPE_METADATA:this._getBasicScopeAttributes.get(e)}_scopeToLanguage(A){return this._embeddedLanguagesMatcher.match(A)||0}_toStandardTokenType(e){const t=e.match(A.STANDARD_TOKEN_TYPE_REGEXP);if(!t)return 8;switch(t[1]){case"comment":return 1;case"string":return 2;case"regex":return 3;case"meta.embedded":return 0}throw new Error("Unexpected match for standard token type!")}};e(tz,"_NULL_SCOPE_METADATA",new ez(0,0)),e(tz,"STANDARD_TOKEN_TYPE_REGEXP",/\b(comment|string|regex|meta\.embedded)\b/);let nz=tz;class oz{constructor(A){if(e(this,"values"),e(this,"scopesRegExp"),0===A.length)this.values=null,this.scopesRegExp=null;else{this.values=new Map(A);const e=A.map((([A,e])=>d$(A)));e.sort(),e.reverse(),this.scopesRegExp=new RegExp(`^((${e.join(")|(")}))($|\\.)`,"")}}match(A){if(!this.scopesRegExp)return;const e=A.match(this.scopesRegExp);return e?this.values.get(e[1]):void 0}}class rz{constructor(A,t){e(this,"stack"),e(this,"stoppedEarly"),this.stack=A,this.stoppedEarly=t}}function iz(A,e,t,n,o,r,i,a){const s=e.content.length;let l=!1,g=-1;if(i){const i=function(A,e,t,n,o,r){let i=o.beginRuleCapturedEOL?0:-1;const a=[];for(let s=o;s;s=s.pop()){const e=s.getRule(A);e instanceof Y$&&a.push({rule:e,stack:s})}for(let s=a.pop();s;s=a.pop()){const{ruleScanner:a,findOptions:l}=sz(s.rule,A,s.stack.endRule,t,n===i),g=a.findNextMatchSync(e,n,l);if(!g){o=s.stack.pop();break}if(g.ruleId!==P$){o=s.stack.pop();break}g.captureIndices&&g.captureIndices.length&&(r.produce(s.stack,g.captureIndices[0].start),lz(A,e,t,s.stack,r,s.rule.whileCaptures,g.captureIndices),r.produce(s.stack,g.captureIndices[0].end),i=g.captureIndices[0].end,g.captureIndices[0].end>n&&(n=g.captureIndices[0].end,t=!1))}return{stack:o,linePos:n,anchorPosition:i,isFirstLine:t}}(A,e,t,n,o,r);o=i.stack,n=i.linePos,t=i.isFirstLine,g=i.anchorPosition}const c=Date.now();for(;!l;){if(0!==a){if(Date.now()-c>a)return new rz(o,!0)}u()}return new rz(o,!1);function u(){const i=function(A,e,t,n,o,r){const i=function(A,e,t,n,o,r){const i=o.getRule(A),{ruleScanner:a,findOptions:s}=az(i,A,o.endRule,t,n===r),l=a.findNextMatchSync(e,n,s);if(l)return{captureIndices:l.captureIndices,matchedRuleId:l.ruleId};return null}(A,e,t,n,o,r),a=A.getInjections();if(0===a.length)return i;const s=function(A,e,t,n,o,r,i){let a,s=Number.MAX_VALUE,l=null,g=0;const c=r.contentNameScopesList.getScopeNames();for(let u=0,B=A.length;u=s)&&(s=d,l=C.captureIndices,a=C.ruleId,g=r.priority,s===o))break}if(l)return{priorityMatch:-1===g,captureIndices:l,matchedRuleId:a};return null}(a,A,e,t,n,o,r);if(!s)return i;if(!i)return s;const l=i.captureIndices[0].start,g=s.captureIndices[0].start;if(g0)&&a[0].end>n;if(c===L$){const i=o.getRule(A);r.produce(o,a[0].start),o=o.withContentNameScopesList(o.nameScopesList),lz(A,e,t,o,r,i.endCaptures,a),r.produce(o,a[0].end);const c=o;if(o=o.parent,g=c.getAnchorPos(),!u&&c.getEnterPos()===n)return o=c,r.produce(o,s),void(l=!0)}else{const i=A.getRule(c);r.produce(o,a[0].start);const B=o,Q=i.getName(e.content,a),E=o.contentNameScopesList.pushAttributed(Q,A);if(o=o.push(c,n,g,a[0].end===s,null,E,E),i instanceof K$){const n=i;lz(A,e,t,o,r,n.beginCaptures,a),r.produce(o,a[0].end),g=a[0].end;const c=n.getContentName(e.content,a),Q=E.pushAttributed(c,A);if(o=o.withContentNameScopesList(Q),n.endHasBackReferences&&(o=o.withEndRule(n.getEndWithResolvedBackReferences(e.content,a))),!u&&B.hasSameRuleAs(o))return o=o.pop(),r.produce(o,s),void(l=!0)}else if(i instanceof Y$){const n=i;lz(A,e,t,o,r,n.beginCaptures,a),r.produce(o,a[0].end),g=a[0].end;const c=n.getContentName(e.content,a),Q=E.pushAttributed(c,A);if(o=o.withContentNameScopesList(Q),n.whileHasBackReferences&&(o=o.withEndRule(n.getWhileWithResolvedBackReferences(e.content,a))),!u&&B.hasSameRuleAs(o))return o=o.pop(),r.produce(o,s),void(l=!0)}else{if(lz(A,e,t,o,r,i.captures,a),r.produce(o,a[0].end),o=o.pop(),!u)return o=o.safePop(),r.produce(o,s),void(l=!0)}}a[0].end>n&&(n=a[0].end,t=!1)}}function az(A,e,t,n,o){return{ruleScanner:A.compileAG(e,t,n,o),findOptions:0}}function sz(A,e,t,n,o){return{ruleScanner:A.compileWhileAG(e,t,n,o),findOptions:0}}function lz(A,e,t,n,o,r,i){if(0===r.length)return;const a=e.content,s=Math.min(r.length,i.length),l=[],g=i[0].end;for(let c=0;cg)break;for(;l.length>0&&l[l.length-1].endPos<=s.start;)o.produceFromScopes(l[l.length-1].scopes,l[l.length-1].endPos),l.pop();if(l.length>0?o.produceFromScopes(l[l.length-1].scopes,s.start):o.produce(n,s.start),e.retokenizeCapturedWithRuleId){const r=e.getName(a,i),l=n.contentNameScopesList.pushAttributed(r,A),g=e.getContentName(a,i),c=l.pushAttributed(g,A),u=n.push(e.retokenizeCapturedWithRuleId,s.start,-1,!1,null,l,c),B=A.createOnigString(a.substring(0,s.end));iz(A,B,t&&0===s.start,s.start,u,o,!1,0),s$(B);continue}const u=e.getName(a,i);if(null!==u){const e=(l.length>0?l[l.length-1].scopes:n.contentNameScopesList).pushAttributed(u,A);l.push(new gz(e,s.end))}}for(;l.length>0;)o.produceFromScopes(l[l.length-1].scopes,l[l.length-1].endPos),l.pop()}class gz{constructor(A,t){e(this,"scopes"),e(this,"endPos"),this.scopes=A,this.endPos=t}}function cz(A,e,t,n,o){const r=i$(e,uz),i=T$.getCompiledRuleId(t,n,o.repository);for(const a of r)A.push({debugSelector:e,matcher:a.matcher,ruleId:i,grammar:o,priority:a.priority})}function uz(A,e){if(e.length{for(let n=t;nt&&A.substr(0,t)===e&&"."===A[t]}class Qz{constructor(A,t,n,o,r,i,a,s){if(e(this,"_rootScopeName"),e(this,"balancedBracketSelectors"),e(this,"_onigLib"),e(this,"_rootId"),e(this,"_lastRuleId"),e(this,"_ruleId2desc"),e(this,"_includedGrammars"),e(this,"_grammarRepository"),e(this,"_grammar"),e(this,"_injections"),e(this,"_basicScopeAttributesProvider"),e(this,"_tokenTypeMatchers"),this._rootScopeName=A,this.balancedBracketSelectors=i,this._onigLib=s,this._basicScopeAttributesProvider=new nz(n,o),this._rootId=-1,this._lastRuleId=0,this._ruleId2desc=[null],this._includedGrammars={},this._grammarRepository=a,this._grammar=Ez(t,null),this._injections=null,this._tokenTypeMatchers=[],r)for(const e of Object.keys(r)){const A=i$(e,uz);for(const t of A)this._tokenTypeMatchers.push({matcher:t.matcher,type:r[e]})}}get themeProvider(){return this._grammarRepository}dispose(){for(const A of this._ruleId2desc)A&&A.dispose()}createOnigScanner(A){return this._onigLib.createOnigScanner(A)}createOnigString(A){return this._onigLib.createOnigString(A)}getMetadataForScope(A){return this._basicScopeAttributesProvider.getBasicScopeAttributes(A)}_collectInjections(){const A=A=>A===this._rootScopeName?this._grammar:this.getExternalGrammar(A),e=[],t=this._rootScopeName,n=A(t);if(n){const A=n.injections;if(A)for(let t in A)cz(e,t,A[t],this,n);const o=this._grammarRepository.injections(t);o&&o.forEach((A=>{const t=this.getExternalGrammar(A);if(t){const A=t.injectionSelector;A&&cz(e,A,t,this,t)}}))}return e.sort(((A,e)=>A.priority-e.priority)),e}getInjections(){return null===this._injections&&(this._injections=this._collectInjections()),this._injections}registerRule(A){const e=++this._lastRuleId,t=A(e);return this._ruleId2desc[e]=t,t}getRule(A){return this._ruleId2desc[A]}getExternalGrammar(A,e){if(this._includedGrammars[A])return this._includedGrammars[A];if(this._grammarRepository){const t=this._grammarRepository.lookup(A);if(t)return this._includedGrammars[A]=Ez(t,e&&e.$base),this._includedGrammars[A]}}tokenizeLine(A,e,t=0){const n=this._tokenize(A,e,!1,t);return{tokens:n.lineTokens.getResult(n.ruleStack,n.lineLength),ruleStack:n.ruleStack,stoppedEarly:n.stoppedEarly}}tokenizeLine2(A,e,t=0){const n=this._tokenize(A,e,!0,t);return{tokens:n.lineTokens.getBinaryResult(n.ruleStack,n.lineLength),ruleStack:n.ruleStack,stoppedEarly:n.stoppedEarly}}_tokenize(A,e,t,n){let o;if(-1===this._rootId&&(this._rootId=T$.getCompiledRuleId(this._grammar.repository.$self,this,this._grammar.repository),this.getInjections()),e&&e!==Iz.NULL)o=!1,e.reset();else{o=!0;const A=this._basicScopeAttributesProvider.getDefaultAttributes(),t=this.themeProvider.getDefaults(),n=o$.set(0,A.languageId,A.tokenType,null,t.fontStyle,t.foregroundId,t.backgroundId),r=this.getRule(this._rootId).getName(null,null);let i;i=r?Cz.createRootAndLookUpScopeName(r,n,this):Cz.createRoot("unknown",n),e=new Iz(null,this._rootId,-1,-1,!1,null,i,i)}A+="\n";const r=this.createOnigString(A),i=r.content.length,a=new fz(t,A,this._tokenTypeMatchers,this.balancedBracketSelectors),s=iz(this,r,o,0,e,a,!0,n);return s$(r),{lineLength:i,lineTokens:a,ruleStack:s.stack,stoppedEarly:s.stoppedEarly}}}function Ez(A,e){return(A=l$(A)).repository=A.repository||{},A.repository.$self={$vscodeTextmateLocation:A.$vscodeTextmateLocation,patterns:A.patterns,name:A.scopeName},A.repository.$base=e||A.repository.$self,A}class Cz{constructor(A,t,n){e(this,"parent"),e(this,"scopePath"),e(this,"tokenAttributes"),this.parent=A,this.scopePath=t,this.tokenAttributes=n}static fromExtension(A,e){let t=A,n=(null==A?void 0:A.scopePath)??null;for(const o of e)n=z$.push(n,o.scopeNames),t=new Cz(t,n,o.encodedTokenAttributes);return t}static createRoot(A,e){return new Cz(null,new z$(null,A),e)}static createRootAndLookUpScopeName(A,e,t){const n=t.getMetadataForScope(A),o=new z$(null,A),r=t.themeProvider.themeMatch(o),i=Cz.mergeAttributes(e,n,r);return new Cz(null,o,i)}get scopeName(){return this.scopePath.scopeName}toString(){return this.getScopeNames().join(" ")}equals(A){return Cz.equals(this,A)}static equals(A,e){for(;;){if(A===e)return!0;if(!A&&!e)return!0;if(!A||!e)return!1;if(A.scopeName!==e.scopeName||A.tokenAttributes!==e.tokenAttributes)return!1;A=A.parent,e=e.parent}}static mergeAttributes(A,e,t){let n=-1,o=0,r=0;return null!==t&&(n=t.fontStyle,o=t.foregroundId,r=t.backgroundId),o$.set(A,e.languageId,e.tokenType,null,n,o,r)}pushAttributed(A,e){if(null===A)return this;if(-1===A.indexOf(" "))return Cz._pushAttributed(this,A,e);const t=A.split(/ /g);let n=this;for(const o of t)n=Cz._pushAttributed(n,o,e);return n}static _pushAttributed(A,e,t){const n=t.getMetadataForScope(e),o=A.scopePath.push(e),r=t.themeProvider.themeMatch(o),i=Cz.mergeAttributes(A.tokenAttributes,n,r);return new Cz(A,o,i)}getScopeNames(){return this.scopePath.getSegments()}getExtensionIfDefined(A){var e;const t=[];let n=this;for(;n&&n!==A;)t.push({encodedTokenAttributes:n.tokenAttributes,scopeNames:n.scopePath.getExtensionIfDefined((null==(e=n.parent)?void 0:e.scopePath)??null)}),n=n.parent;return n===A?t.reverse():void 0}}const dz=class A{constructor(A,t,n,o,r,i,a,s){e(this,"parent"),e(this,"ruleId"),e(this,"beginRuleCapturedEOL"),e(this,"endRule"),e(this,"nameScopesList"),e(this,"contentNameScopesList"),e(this,"_stackElementBrand"),e(this,"_enterPos"),e(this,"_anchorPos"),e(this,"depth"),this.parent=A,this.ruleId=t,this.beginRuleCapturedEOL=r,this.endRule=i,this.nameScopesList=a,this.contentNameScopesList=s,this.depth=this.parent?this.parent.depth+1:1,this._enterPos=n,this._anchorPos=o}equals(e){return null!==e&&A._equals(this,e)}static _equals(A,e){return A===e||!!this._structuralEquals(A,e)&&Cz.equals(A.contentNameScopesList,e.contentNameScopesList)}static _structuralEquals(A,e){for(;;){if(A===e)return!0;if(!A&&!e)return!0;if(!A||!e)return!1;if(A.depth!==e.depth||A.ruleId!==e.ruleId||A.endRule!==e.endRule)return!1;A=A.parent,e=e.parent}}clone(){return this}static _reset(A){for(;A;)A._enterPos=-1,A._anchorPos=-1,A=A.parent}reset(){A._reset(this)}pop(){return this.parent}safePop(){return this.parent?this.parent:this}push(e,t,n,o,r,i,a){return new A(this,e,t,n,o,r,i,a)}getEnterPos(){return this._enterPos}getAnchorPos(){return this._anchorPos}getRule(A){return A.getRule(this.ruleId)}toString(){const A=[];return this._writeString(A,0),"["+A.join(",")+"]"}_writeString(A,e){var t,n;return this.parent&&(e=this.parent._writeString(A,e)),A[e++]=`(${this.ruleId}, ${null==(t=this.nameScopesList)?void 0:t.toString()}, ${null==(n=this.contentNameScopesList)?void 0:n.toString()})`,e}withContentNameScopesList(A){return this.contentNameScopesList===A?this:this.parent.push(this.ruleId,this._enterPos,this._anchorPos,this.beginRuleCapturedEOL,this.endRule,this.nameScopesList,A)}withEndRule(e){return this.endRule===e?this:new A(this.parent,this.ruleId,this._enterPos,this._anchorPos,this.beginRuleCapturedEOL,e,this.nameScopesList,this.contentNameScopesList)}hasSameRuleAs(A){let e=this;for(;e&&e._enterPos===A._enterPos;){if(e.ruleId===A.ruleId)return!0;e=e.parent}return!1}toStateStackFrame(){var A,e,t;return{ruleId:this.ruleId,beginRuleCapturedEOL:this.beginRuleCapturedEOL,endRule:this.endRule,nameScopesList:(null==(e=this.nameScopesList)?void 0:e.getExtensionIfDefined((null==(A=this.parent)?void 0:A.nameScopesList)??null))??[],contentNameScopesList:(null==(t=this.contentNameScopesList)?void 0:t.getExtensionIfDefined(this.nameScopesList))??[]}}static pushFrame(e,t){const n=Cz.fromExtension((null==e?void 0:e.nameScopesList)??null,t.nameScopesList);return new A(e,t.ruleId,t.enterPos??-1,t.anchorPos??-1,t.beginRuleCapturedEOL,t.endRule,n,Cz.fromExtension(n,t.contentNameScopesList))}};e(dz,"NULL",new dz(null,0,0,0,!1,null,null,null));let Iz=dz;class pz{constructor(A,t){e(this,"balancedBracketScopes"),e(this,"unbalancedBracketScopes"),e(this,"allowAny",!1),this.balancedBracketScopes=A.flatMap((A=>"*"===A?(this.allowAny=!0,[]):i$(A,uz).map((A=>A.matcher)))),this.unbalancedBracketScopes=t.flatMap((A=>i$(A,uz).map((A=>A.matcher))))}get matchesAlways(){return this.allowAny&&0===this.unbalancedBracketScopes.length}get matchesNever(){return 0===this.balancedBracketScopes.length&&!this.allowAny}match(A){for(const e of this.unbalancedBracketScopes)if(e(A))return!1;for(const e of this.balancedBracketScopes)if(e(A))return!0;return this.allowAny}}class fz{constructor(A,t,n,o){e(this,"balancedBracketSelectors"),e(this,"_emitBinaryTokens"),e(this,"_lineText"),e(this,"_tokens"),e(this,"_binaryTokens"),e(this,"_lastTokenEndIndex"),e(this,"_tokenTypeOverrides"),this.balancedBracketSelectors=o,this._emitBinaryTokens=A,this._tokenTypeOverrides=n,this._lineText=null,this._tokens=[],this._binaryTokens=[],this._lastTokenEndIndex=0}produce(A,e){this.produceFromScopes(A.contentNameScopesList,e)}produceFromScopes(A,e){var t;if(this._lastTokenEndIndex>=e)return;if(this._emitBinaryTokens){let n=(null==A?void 0:A.tokenAttributes)??0,o=!1;if((null==(t=this.balancedBracketSelectors)?void 0:t.matchesAlways)&&(o=!0),this._tokenTypeOverrides.length>0||this.balancedBracketSelectors&&!this.balancedBracketSelectors.matchesAlways&&!this.balancedBracketSelectors.matchesNever){const e=(null==A?void 0:A.getScopeNames())??[];for(const A of this._tokenTypeOverrides)A.matcher(e)&&(n=o$.set(n,0,A.type,null,-1,0,0));this.balancedBracketSelectors&&(o=this.balancedBracketSelectors.match(e))}return o&&(n=o$.set(n,0,8,o,-1,0,0)),this._binaryTokens.length>0&&this._binaryTokens[this._binaryTokens.length-1]===n?void(this._lastTokenEndIndex=e):(this._binaryTokens.push(this._lastTokenEndIndex),this._binaryTokens.push(n),void(this._lastTokenEndIndex=e))}const n=(null==A?void 0:A.getScopeNames())??[];this._tokens.push({startIndex:this._lastTokenEndIndex,endIndex:e,scopes:n}),this._lastTokenEndIndex=e}getResult(A,e){return this._tokens.length>0&&this._tokens[this._tokens.length-1].startIndex===e-1&&this._tokens.pop(),0===this._tokens.length&&(this._lastTokenEndIndex=-1,this.produce(A,e),this._tokens[this._tokens.length-1].startIndex=0),this._tokens}getBinaryResult(A,e){this._binaryTokens.length>0&&this._binaryTokens[this._binaryTokens.length-2]===e-1&&(this._binaryTokens.pop(),this._binaryTokens.pop()),0===this._binaryTokens.length&&(this._lastTokenEndIndex=-1,this.produce(A,e),this._binaryTokens[this._binaryTokens.length-2]=0);const t=new Uint32Array(this._binaryTokens.length);for(let n=0,o=this._binaryTokens.length;n0;)await Promise.all(r.Q.map((A=>this._loadSingleGrammar(A.scopeName)))),r.processQueue();return this._grammarForScopeName(A,e,t,n,o)}async _loadSingleGrammar(A){return this._ensureGrammarCache.has(A)||this._ensureGrammarCache.set(A,this._doLoadSingleGrammar(A)),this._ensureGrammarCache.get(A)}async _doLoadSingleGrammar(A){const e=await this._options.loadGrammar(A);if(e){const t="function"==typeof this._options.getInjections?this._options.getInjections(A):void 0;this._syncRegistry.addGrammar(e,t)}}async addGrammar(A,e=[],t=0,n=null){return this._syncRegistry.addGrammar(A,e),await this._grammarForScopeName(A.scopeName,t,n)}_grammarForScopeName(A,e=0,t=null,n=null,o=null){return this._syncRegistry.grammarForScopeName(A,e,t,n,o)}};const Dz=Iz.NULL,mz=255,yz=768,bz=1024,vz=14336,kz=8372224,Mz=4286578688,xz=0,Sz=8,Fz=10,Nz=11,Rz=15,Lz=24;class Pz{static toBinaryStr(A){let e=A.toString(2);for(;e.length<32;)e=`0${e}`;return e}static getLanguageId(A){return(A&mz)>>>xz}static getTokenType(A){return(A&yz)>>>Sz}static getFontStyle(A){return(A&vz)>>>Nz}static getForeground(A){return(A&kz)>>>Rz}static getBackground(A){return(A&Mz)>>>Lz}static containsBalancedBrackets(A){return!!(A&bz)}static set(A,e,t,n,o,r){let i=Pz.getLanguageId(A),a=Pz.getTokenType(A),s=Pz.getFontStyle(A),l=Pz.getForeground(A),g=Pz.getBackground(A);const c=Pz.containsBalancedBrackets(A)?1:0;return 0!==e&&(i=e),0!==t&&(a=8===t?0:t),n!==t$.NotSet&&(s=n),0!==o&&(l=o),0!==r&&(g=r),(i<>>0}}function Hz(A,e=!1){var t;const n=A.split(/(\r?\n)/g);let o=0;const r=[];for(let i=0;i`${A}:${e}`)).join(";")}var Jz=["black","red","green","yellow","blue","magenta","cyan","white","brightBlack","brightRed","brightGreen","brightYellow","brightBlue","brightMagenta","brightCyan","brightWhite"],jz={1:"bold",2:"dim",3:"italic",4:"underline",7:"reverse",9:"strikethrough"};function qz(A,e){const t=A.indexOf("[",e);if(-1!==t){const e=A.indexOf("m",t);return{sequence:A.substring(t+2,e).split(";"),startPosition:t,position:e+1}}return{position:A.length}}function $z(A,e){let t=1;const n=A[e+t++];let o;if("2"===n){const n=[A[e+t++],A[e+t++],A[e+t]].map((A=>Number.parseInt(A)));3!==n.length||n.some((A=>Number.isNaN(A)))||(o={type:"rgb",rgb:n})}else if("5"===n){const n=Number.parseInt(A[e+t]);Number.isNaN(n)||(o={type:"table",index:Number(n)})}return[t,o]}function zz(A){const e=[];for(let t=0;t=90&&o<=97?e.push({type:"setForegroundColor",value:{type:"named",name:Jz[o-90+8]}}):o>=100&&o<=107&&e.push({type:"setBackgroundColor",value:{type:"named",name:Jz[o-100+8]}})}return e}var Wz={black:"#000000",red:"#bb0000",green:"#00bb00",yellow:"#bbbb00",blue:"#0000bb",magenta:"#ff00ff",cyan:"#00bbbb",white:"#eeeeee",brightBlack:"#555555",brightRed:"#ff5555",brightGreen:"#00ff00",brightYellow:"#ffff55",brightBlue:"#5555ff",brightMagenta:"#ff55ff",brightCyan:"#55ffff",brightWhite:"#ffffff"};function _z(A=Wz){function e(e){return A[e]}function t(A){return`#${A.map((A=>Math.max(0,Math.min(A,255)).toString(16).padStart(2,"0"))).join("")}`}let n;function o(A){return function(){if(n)return n;n=[];for(let t=0;t{var t;return[e,null==(t=A.colors)?void 0:t[`terminal.ansi${e[0].toUpperCase()}${e.substring(1)}`]]})))),i=function(){let A=null,e=null,t=new Set;return{parse(n){const o=[];let r=0;do{const i=qz(n,r),a=i.sequence?n.substring(r,i.startPosition):n.substring(r);if(a.length>0&&o.push({value:a,foreground:A,background:e,decorations:new Set(t)}),i.sequence){const n=zz(i.sequence);for(const o of n)"resetAll"===o.type?(A=null,e=null,t.clear()):"resetForegroundColor"===o.type?A=null:"resetBackgroundColor"===o.type?e=null:"resetDecoration"===o.type&&t.delete(o.value);for(const o of n)"setForegroundColor"===o.type?A=o.value:"setBackgroundColor"===o.type?e=o.value:"setDecoration"===o.type&&t.add(o.value)}r=i.position}while(ri.parse(e[0]).map((t=>{let o,i;t.decorations.has("reverse")?(o=t.background?r.value(t.background):A.bg,i=t.foreground?r.value(t.foreground):A.fg):(o=t.foreground?r.value(t.foreground):A.fg,i=t.background?r.value(t.background):void 0),o=Kz(o,n),i=Kz(i,n),t.decorations.has("dim")&&(o=function(A){const e=A.match(/#([0-9a-f]{3})([0-9a-f]{3})?([0-9a-f]{2})?/);if(e){if(e[3]){const A=Math.round(Number.parseInt(e[3],16)/2).toString(16).padStart(2,"0");return`#${e[1]}${e[2]}${A}`}return e[2]?`#${e[1]}${e[2]}80`:`#${Array.from(e[1]).map((A=>`${A}${A}`)).join("")}80`}const t=A.match(/var\((--[\w-]+-ansi-[\w-]+)\)/);return t?`var(${t[1]}-dim)`:A}(o));let a=t$.None;return t.decorations.has("bold")&&(a|=t$.Bold),t.decorations.has("italic")&&(a|=t$.Italic),t.decorations.has("underline")&&(a|=t$.Underline),{content:t.value,offset:e[1],color:o,bgColor:i,fontStyle:a}}))))}function Vz(A,e,t={}){const{lang:n="text",theme:o=A.getLoadedThemes()[0]}=t;if(Gz(n)||Oz(o))return Hz(e).map((A=>[{content:A[0],offset:A[1]}]));const{theme:r,colorMap:i}=A.setTheme(o);if("ansi"===n)return Xz(r,e,t);return function(A,e,t,n,o){const r={...t.colorReplacements,...null==o?void 0:o.colorReplacements},{tokenizeMaxLineLength:i=0,tokenizeTimeLimit:a=500}=o,s=Hz(A);let l=Dz,g=[];const c=[];for(let u=0,B=s.length;u0&&A.length>=i){g=[],c.push([{content:A,offset:B,color:"",fontStyle:0}]);continue}let Q,E,C;o.includeExplanation&&(Q=e.tokenizeLine(A,l),E=Q.tokens,C=0);const d=e.tokenizeLine2(A,l,a),I=d.tokens.length/2;for(let e=0;e=0&&r>=0;)AW(e[o],n[r])&&(o-=1),r-=1;return-1===o}function tW(A,e,t){const n=[];let o=0;for(let r=0,i=A.settings.length;rA.trim()));else{if(!Array.isArray(i.scope))continue;a=i.scope}for(let A=0,r=a.length;AA[1])).map((A=>({color:A[0],theme:A[1]}))),o=function(...A){const e=A.map((()=>[])),t=A.length;for(let n=0;nA[n])),r=e.map((()=>[]));e.forEach(((A,e)=>A.push(r[e])));const i=o.map((()=>0)),a=o.map((A=>A[0]));for(;a.every((A=>A));){const A=Math.min(...a.map((A=>A.content.length)));for(let e=0;eVz(A,e,{...t,theme:n.theme}))));return o[0].map(((A,e)=>A.map(((A,t)=>{const r={content:A.content,variants:{},offset:A.offset};return o.forEach(((A,o)=>{const{content:i,explanation:a,offset:s,...l}=A[e][t];r.variants[n[o].color]=l})),r}))))}class oW extends Error{constructor(A){super(A),this.name="ShikiError"}}function rW(A,e,t){let n,o,r,i,a;if("themes"in t){const{defaultColor:s="light",cssVariablePrefix:l="--shiki-",colorReplacements:g}=t,c=Object.entries(t.themes).filter((A=>A[1])).map((A=>({color:A[0],theme:A[1]}))).sort(((A,e)=>A.color===s?-1:e.color===s?1:0));if(0===c.length)throw new oW("`themes` option must not be empty");const u=nW(A,e,t);if(s&&!c.find((A=>A.color===s)))throw new oW(`\`themes\` option must contain the defaultColor key \`${s}\``);const B=c.map((e=>A.getTheme(e.theme))),Q=c.map((A=>A.color));r=u.map((A=>A.map((A=>function(A,e,t,n){const o={content:A.content,explanation:A.explanation,offset:A.offset},r=e.map((e=>Yz(A.variants[e]))),i=new Set(r.flatMap((A=>Object.keys(A)))),a=r.reduce(((A,o,r)=>{for(const a of i){const i=o[a]||"inherit";if(0===r&&n)A[a]=i;else{const n="color"===a?"":"background-color"===a?"-bg":`-${a}`,o=t+e[r]+("color"===a?"":n);A[a]?A[a]+=`;${o}:${i}`:A[a]=`${o}:${i}`}}return A}),{});return o.htmlStyle=n?Tz(a):Object.values(a).join(";"),o}(A,Q,l,s))))),o=c.map(((A,e)=>(0===e&&s?"":`${l+A.color}:`)+(Kz(B[e].fg,g)||"inherit"))).join(";"),n=c.map(((A,e)=>(0===e&&s?"":`${l+A.color}-bg:`)+(Kz(B[e].bg,g)||"inherit"))).join(";"),i=`shiki-themes ${B.map((A=>A.name)).join(" ")}`,a=s?void 0:[o,n].join(";")}else{if(!("theme"in t))throw new oW("Invalid options, either `theme` or `themes` must be provided");{const{colorReplacements:a}=t;r=Vz(A,e,t);const s=A.getTheme(t.theme);n=Kz(s.bg,a),o=Kz(s.fg,a),i=s.name}}return{tokens:r,fg:o,bg:n,themeName:i,rootStyle:a}}function iW(){const A=new WeakMap;function e(e){if(!A.has(e.meta)){let t=function(A){return"number"==typeof A?{...n.indexToPos(A),offset:A}:{...A,offset:n.posToIndex(A.line,A.character)}};const n=function(A){const e=Hz(A,!0).map((([A])=>A));return{lines:e,indexToPos:function(A){let t=A,n=0;for(const o of e){if(t({...A,start:t(A.start),end:t(A.end)})));!function(A){for(let e=0;et.end.offset)throw new oW(`Invalid decoration range: ${JSON.stringify(t.start)} - ${JSON.stringify(t.end)}`);for(let n=e+1;nA-e));return t.length?A.map((A=>A.flatMap((A=>{const e=t.filter((e=>A.offsete-A.offset)).sort(((A,e)=>A-e));return e.length?function(A,e){let t=0;const n=[];for(const o of e)o>t&&n.push({...A,content:A.content.slice(t,o),offset:A.offset+t}),t=o;return t[A.start.offset,A.end.offset])));return n},code(A){var t;if(!(null==(t=this.options.decorations)?void 0:t.length))return;const n=e(this),o=Array.from(A.children).filter((A=>"element"===A.type&&"span"===A.tagName));if(o.length!==n.converter.lines.length)throw new oW(`Number of lines in code element (${o.length}) does not match the number of lines in the source (${n.converter.lines.length}). Failed to apply decorations.`);function r(A,e,t,n){const r=o[A];let i="",s=-1,l=-1;function g(A){return"text"===A.type?A.value:"element"===A.type?A.children.map(g).join(""):""}if(0===e&&(s=0),0===t&&(l=0),t===Number.POSITIVE_INFINITY&&(l=r.children.length),-1===s||-1===l)for(let o=0;oA);return A.tagName=e.tagName||"span",A.properties={...A.properties,...o,class:A.properties.class},(null==(n=e.properties)?void 0:n.class)&&Uz(A,e.properties.class),A=r(A,t)||A}const s=[],l=n.decorations.sort(((A,e)=>e.start.offset-A.start.offset));for(const e of l){const{start:A,end:t}=e;if(A.line===t.line)r(A.line,A.character,t.character,e);else if(A.linei(n,e)));r(t.line,0,t.character,e)}}s.forEach((A=>A()))}}}const aW=[iW()];function sW(A){return[...A.transformers||[],...aW]}function lW(A,e,t,n={meta:{},options:t,codeToHast:(e,t)=>lW(A,e,t),codeToTokens:(e,t)=>rW(A,e,t)}){var o,r;let i=e;for(const Q of sW(t))i=(null==(o=Q.preprocess)?void 0:o.call(n,i,t))||i;let{tokens:a,fg:s,bg:l,themeName:g,rootStyle:c}=rW(A,i,t);const{mergeWhitespaces:u=!0}=t;!0===u?a=function(A){return A.map((A=>{const e=[];let t="",n=0;return A.forEach(((o,r)=>{const i=!(o.fontStyle&&o.fontStyle&t$.Underline);i&&o.content.match(/^\s+$/)&&A[r+1]?(n||(n=o.offset),t+=o.content):t?(i?e.push({...o,offset:n,content:t+o.content}):e.push({content:t,offset:n},o),n=0,t=""):e.push(o)})),e}))}(a):"never"===u&&(a=function(A){return A.map((A=>A.flatMap((A=>{if(A.content.match(/^\s+$/))return A;const e=A.content.match(/^(\s*)(.*?)(\s*)$/);if(!e)return A;const[,t,n,o]=e;if(!t&&!o)return A;const r=[{...A,offset:A.offset+t.length,content:n}];return t&&r.unshift({content:t,offset:A.offset}),o&&r.push({content:o,offset:A.offset+t.length+n.length}),r}))))}(a));const B={...n,get source(){return i}};for(const Q of sW(t))a=(null==(r=Q.tokens)?void 0:r.call(B,a))||a;return function(A,e,t){var n,o,r;const i=sW(e),a=[],s={type:"root",children:[]},{structure:l="classic"}=e;let g={type:"element",tagName:"pre",properties:{class:`shiki ${e.themeName||""}`,style:e.rootStyle||`background-color:${e.bg};color:${e.fg}`,tabindex:"0",...Object.fromEntries(Array.from(Object.entries(e.meta||{})).filter((([A])=>!A.startsWith("_"))))},children:[]},c={type:"element",tagName:"code",properties:{},children:a};const u=[],B={...t,structure:l,addClassToHast:Uz,get source(){return t.source},get tokens(){return A},get options(){return e},get root(){return s},get pre(){return g},get code(){return c},get lines(){return u}};if(A.forEach(((A,e)=>{var t,n;e&&("inline"===l?s.children.push({type:"element",tagName:"br",properties:{},children:[]}):"classic"===l&&a.push({type:"text",value:"\n"}));let o={type:"element",tagName:"span",properties:{class:"line"},children:[]},r=0;for(const a of A){let A={type:"element",tagName:"span",properties:{},children:[{type:"text",value:a.content}]};const n=a.htmlStyle||Tz(Yz(a));n&&(A.properties.style=n);for(const a of i)A=(null==(t=null==a?void 0:a.span)?void 0:t.call(B,A,e+1,r,o))||A;"inline"===l?s.children.push(A):"classic"===l&&o.children.push(A),r+=a.content.length}if("classic"===l){for(const A of i)o=(null==(n=null==A?void 0:A.line)?void 0:n.call(B,o,e+1))||o;u.push(o),a.push(o)}})),"classic"===l){for(const A of i)c=(null==(n=null==A?void 0:A.code)?void 0:n.call(B,c))||c;g.children.push(c);for(const A of i)g=(null==(o=null==A?void 0:A.pre)?void 0:o.call(B,g))||g;s.children.push(g)}let Q=s;for(const E of i)Q=(null==(r=null==E?void 0:E.root)?void 0:r.call(B,Q))||Q;return Q}(a,{...t,fg:s,bg:l,themeName:g,rootStyle:c},B)}const gW=["area","base","basefont","bgsound","br","col","command","embed","frame","hr","image","img","input","keygen","link","meta","param","source","track","wbr"];class cW{constructor(A,e,t){this.property=A,this.normal=e,t&&(this.space=t)}}function uW(A,e){const t={},n={};let o=-1;for(;++o"xlink:"+e.slice(5).toLowerCase(),properties:{xLinkActuate:null,xLinkArcRole:null,xLinkHref:null,xLinkRole:null,xLinkShow:null,xLinkTitle:null,xLinkType:null}}),SW=MW({space:"xml",transform:(A,e)=>"xml:"+e.slice(3).toLowerCase(),properties:{xmlLang:null,xmlBase:null,xmlSpace:null}});function FW(A,e){return e in A?A[e]:e}function NW(A,e){return FW(A,e.toLowerCase())}const RW=MW({space:"xmlns",attributes:{xmlnsxlink:"xmlns:xlink"},transform:NW,properties:{xmlns:null,xmlnsXLink:null}}),LW=MW({transform:(A,e)=>"role"===e?e:"aria-"+e.slice(4).toLowerCase(),properties:{ariaActiveDescendant:null,ariaAtomic:dW,ariaAutoComplete:null,ariaBusy:dW,ariaChecked:dW,ariaColCount:pW,ariaColIndex:pW,ariaColSpan:pW,ariaControls:fW,ariaCurrent:null,ariaDescribedBy:fW,ariaDetails:null,ariaDisabled:dW,ariaDropEffect:fW,ariaErrorMessage:null,ariaExpanded:dW,ariaFlowTo:fW,ariaGrabbed:dW,ariaHasPopup:null,ariaHidden:dW,ariaInvalid:null,ariaKeyShortcuts:null,ariaLabel:null,ariaLabelledBy:fW,ariaLevel:pW,ariaLive:null,ariaModal:dW,ariaMultiLine:dW,ariaMultiSelectable:dW,ariaOrientation:null,ariaOwns:fW,ariaPlaceholder:null,ariaPosInSet:pW,ariaPressed:dW,ariaReadOnly:dW,ariaRelevant:null,ariaRequired:dW,ariaRoleDescription:fW,ariaRowCount:pW,ariaRowIndex:pW,ariaRowSpan:pW,ariaSelected:dW,ariaSetSize:pW,ariaSort:null,ariaValueMax:pW,ariaValueMin:pW,ariaValueNow:pW,ariaValueText:null,role:null}}),PW=MW({space:"html",attributes:{acceptcharset:"accept-charset",classname:"class",htmlfor:"for",httpequiv:"http-equiv"},transform:NW,mustUseProperty:["checked","multiple","muted","selected"],properties:{abbr:null,accept:hW,acceptCharset:fW,accessKey:fW,action:null,allow:null,allowFullScreen:CW,allowPaymentRequest:CW,allowUserMedia:CW,alt:null,as:null,async:CW,autoCapitalize:null,autoComplete:fW,autoFocus:CW,autoPlay:CW,blocking:fW,capture:null,charSet:null,checked:CW,cite:null,className:fW,cols:pW,colSpan:null,content:null,contentEditable:dW,controls:CW,controlsList:fW,coords:pW|hW,crossOrigin:null,data:null,dateTime:null,decoding:null,default:CW,defer:CW,dir:null,dirName:null,disabled:CW,download:IW,draggable:dW,encType:null,enterKeyHint:null,fetchPriority:null,form:null,formAction:null,formEncType:null,formMethod:null,formNoValidate:CW,formTarget:null,headers:fW,height:pW,hidden:CW,high:pW,href:null,hrefLang:null,htmlFor:fW,httpEquiv:fW,id:null,imageSizes:null,imageSrcSet:null,inert:CW,inputMode:null,integrity:null,is:null,isMap:CW,itemId:null,itemProp:fW,itemRef:fW,itemScope:CW,itemType:fW,kind:null,label:null,lang:null,language:null,list:null,loading:null,loop:CW,low:pW,manifest:null,max:null,maxLength:pW,media:null,method:null,min:null,minLength:pW,multiple:CW,muted:CW,name:null,nonce:null,noModule:CW,noValidate:CW,onAbort:null,onAfterPrint:null,onAuxClick:null,onBeforeMatch:null,onBeforePrint:null,onBeforeToggle:null,onBeforeUnload:null,onBlur:null,onCancel:null,onCanPlay:null,onCanPlayThrough:null,onChange:null,onClick:null,onClose:null,onContextLost:null,onContextMenu:null,onContextRestored:null,onCopy:null,onCueChange:null,onCut:null,onDblClick:null,onDrag:null,onDragEnd:null,onDragEnter:null,onDragExit:null,onDragLeave:null,onDragOver:null,onDragStart:null,onDrop:null,onDurationChange:null,onEmptied:null,onEnded:null,onError:null,onFocus:null,onFormData:null,onHashChange:null,onInput:null,onInvalid:null,onKeyDown:null,onKeyPress:null,onKeyUp:null,onLanguageChange:null,onLoad:null,onLoadedData:null,onLoadedMetadata:null,onLoadEnd:null,onLoadStart:null,onMessage:null,onMessageError:null,onMouseDown:null,onMouseEnter:null,onMouseLeave:null,onMouseMove:null,onMouseOut:null,onMouseOver:null,onMouseUp:null,onOffline:null,onOnline:null,onPageHide:null,onPageShow:null,onPaste:null,onPause:null,onPlay:null,onPlaying:null,onPopState:null,onProgress:null,onRateChange:null,onRejectionHandled:null,onReset:null,onResize:null,onScroll:null,onScrollEnd:null,onSecurityPolicyViolation:null,onSeeked:null,onSeeking:null,onSelect:null,onSlotChange:null,onStalled:null,onStorage:null,onSubmit:null,onSuspend:null,onTimeUpdate:null,onToggle:null,onUnhandledRejection:null,onUnload:null,onVolumeChange:null,onWaiting:null,onWheel:null,open:CW,optimum:pW,pattern:null,ping:fW,placeholder:null,playsInline:CW,popover:null,popoverTarget:null,popoverTargetAction:null,poster:null,preload:null,readOnly:CW,referrerPolicy:null,rel:fW,required:CW,reversed:CW,rows:pW,rowSpan:pW,sandbox:fW,scope:null,scoped:CW,seamless:CW,selected:CW,shadowRootDelegatesFocus:CW,shadowRootMode:null,shape:null,size:pW,sizes:null,slot:null,span:pW,spellCheck:dW,src:null,srcDoc:null,srcLang:null,srcSet:null,start:pW,step:null,style:null,tabIndex:pW,target:null,title:null,translate:null,type:null,typeMustMatch:CW,useMap:null,value:dW,width:pW,wrap:null,align:null,aLink:null,archive:fW,axis:null,background:null,bgColor:null,border:pW,borderColor:null,bottomMargin:pW,cellPadding:null,cellSpacing:null,char:null,charOff:null,classId:null,clear:null,code:null,codeBase:null,codeType:null,color:null,compact:CW,declare:CW,event:null,face:null,frame:null,frameBorder:null,hSpace:pW,leftMargin:pW,link:null,longDesc:null,lowSrc:null,marginHeight:pW,marginWidth:pW,noResize:CW,noHref:CW,noShade:CW,noWrap:CW,object:null,profile:null,prompt:null,rev:null,rightMargin:pW,rules:null,scheme:null,scrolling:dW,standby:null,summary:null,text:null,topMargin:pW,valueType:null,version:null,vAlign:null,vLink:null,vSpace:pW,allowTransparency:null,autoCorrect:null,autoSave:null,disablePictureInPicture:CW,disableRemotePlayback:CW,prefix:null,property:null,results:pW,security:null,unselectable:null}}),HW=MW({space:"svg",attributes:{accentHeight:"accent-height",alignmentBaseline:"alignment-baseline",arabicForm:"arabic-form",baselineShift:"baseline-shift",capHeight:"cap-height",className:"class",clipPath:"clip-path",clipRule:"clip-rule",colorInterpolation:"color-interpolation",colorInterpolationFilters:"color-interpolation-filters",colorProfile:"color-profile",colorRendering:"color-rendering",crossOrigin:"crossorigin",dataType:"datatype",dominantBaseline:"dominant-baseline",enableBackground:"enable-background",fillOpacity:"fill-opacity",fillRule:"fill-rule",floodColor:"flood-color",floodOpacity:"flood-opacity",fontFamily:"font-family",fontSize:"font-size",fontSizeAdjust:"font-size-adjust",fontStretch:"font-stretch",fontStyle:"font-style",fontVariant:"font-variant",fontWeight:"font-weight",glyphName:"glyph-name",glyphOrientationHorizontal:"glyph-orientation-horizontal",glyphOrientationVertical:"glyph-orientation-vertical",hrefLang:"hreflang",horizAdvX:"horiz-adv-x",horizOriginX:"horiz-origin-x",horizOriginY:"horiz-origin-y",imageRendering:"image-rendering",letterSpacing:"letter-spacing",lightingColor:"lighting-color",markerEnd:"marker-end",markerMid:"marker-mid",markerStart:"marker-start",navDown:"nav-down",navDownLeft:"nav-down-left",navDownRight:"nav-down-right",navLeft:"nav-left",navNext:"nav-next",navPrev:"nav-prev",navRight:"nav-right",navUp:"nav-up",navUpLeft:"nav-up-left",navUpRight:"nav-up-right",onAbort:"onabort",onActivate:"onactivate",onAfterPrint:"onafterprint",onBeforePrint:"onbeforeprint",onBegin:"onbegin",onCancel:"oncancel",onCanPlay:"oncanplay",onCanPlayThrough:"oncanplaythrough",onChange:"onchange",onClick:"onclick",onClose:"onclose",onCopy:"oncopy",onCueChange:"oncuechange",onCut:"oncut",onDblClick:"ondblclick",onDrag:"ondrag",onDragEnd:"ondragend",onDragEnter:"ondragenter",onDragExit:"ondragexit",onDragLeave:"ondragleave",onDragOver:"ondragover",onDragStart:"ondragstart",onDrop:"ondrop",onDurationChange:"ondurationchange",onEmptied:"onemptied",onEnd:"onend",onEnded:"onended",onError:"onerror",onFocus:"onfocus",onFocusIn:"onfocusin",onFocusOut:"onfocusout",onHashChange:"onhashchange",onInput:"oninput",onInvalid:"oninvalid",onKeyDown:"onkeydown",onKeyPress:"onkeypress",onKeyUp:"onkeyup",onLoad:"onload",onLoadedData:"onloadeddata",onLoadedMetadata:"onloadedmetadata",onLoadStart:"onloadstart",onMessage:"onmessage",onMouseDown:"onmousedown",onMouseEnter:"onmouseenter",onMouseLeave:"onmouseleave",onMouseMove:"onmousemove",onMouseOut:"onmouseout",onMouseOver:"onmouseover",onMouseUp:"onmouseup",onMouseWheel:"onmousewheel",onOffline:"onoffline",onOnline:"ononline",onPageHide:"onpagehide",onPageShow:"onpageshow",onPaste:"onpaste",onPause:"onpause",onPlay:"onplay",onPlaying:"onplaying",onPopState:"onpopstate",onProgress:"onprogress",onRateChange:"onratechange",onRepeat:"onrepeat",onReset:"onreset",onResize:"onresize",onScroll:"onscroll",onSeeked:"onseeked",onSeeking:"onseeking",onSelect:"onselect",onShow:"onshow",onStalled:"onstalled",onStorage:"onstorage",onSubmit:"onsubmit",onSuspend:"onsuspend",onTimeUpdate:"ontimeupdate",onToggle:"ontoggle",onUnload:"onunload",onVolumeChange:"onvolumechange",onWaiting:"onwaiting",onZoom:"onzoom",overlinePosition:"overline-position",overlineThickness:"overline-thickness",paintOrder:"paint-order",panose1:"panose-1",pointerEvents:"pointer-events",referrerPolicy:"referrerpolicy",renderingIntent:"rendering-intent",shapeRendering:"shape-rendering",stopColor:"stop-color",stopOpacity:"stop-opacity",strikethroughPosition:"strikethrough-position",strikethroughThickness:"strikethrough-thickness",strokeDashArray:"stroke-dasharray",strokeDashOffset:"stroke-dashoffset",strokeLineCap:"stroke-linecap",strokeLineJoin:"stroke-linejoin",strokeMiterLimit:"stroke-miterlimit",strokeOpacity:"stroke-opacity",strokeWidth:"stroke-width",tabIndex:"tabindex",textAnchor:"text-anchor",textDecoration:"text-decoration",textRendering:"text-rendering",transformOrigin:"transform-origin",typeOf:"typeof",underlinePosition:"underline-position",underlineThickness:"underline-thickness",unicodeBidi:"unicode-bidi",unicodeRange:"unicode-range",unitsPerEm:"units-per-em",vAlphabetic:"v-alphabetic",vHanging:"v-hanging",vIdeographic:"v-ideographic",vMathematical:"v-mathematical",vectorEffect:"vector-effect",vertAdvY:"vert-adv-y",vertOriginX:"vert-origin-x",vertOriginY:"vert-origin-y",wordSpacing:"word-spacing",writingMode:"writing-mode",xHeight:"x-height",playbackOrder:"playbackorder",timelineBegin:"timelinebegin"},transform:FW,properties:{about:wW,accentHeight:pW,accumulate:null,additive:null,alignmentBaseline:null,alphabetic:pW,amplitude:pW,arabicForm:null,ascent:pW,attributeName:null,attributeType:null,azimuth:pW,bandwidth:null,baselineShift:null,baseFrequency:null,baseProfile:null,bbox:null,begin:null,bias:pW,by:null,calcMode:null,capHeight:pW,className:fW,clip:null,clipPath:null,clipPathUnits:null,clipRule:null,color:null,colorInterpolation:null,colorInterpolationFilters:null,colorProfile:null,colorRendering:null,content:null,contentScriptType:null,contentStyleType:null,crossOrigin:null,cursor:null,cx:null,cy:null,d:null,dataType:null,defaultAction:null,descent:pW,diffuseConstant:pW,direction:null,display:null,dur:null,divisor:pW,dominantBaseline:null,download:CW,dx:null,dy:null,edgeMode:null,editable:null,elevation:pW,enableBackground:null,end:null,event:null,exponent:pW,externalResourcesRequired:null,fill:null,fillOpacity:pW,fillRule:null,filter:null,filterRes:null,filterUnits:null,floodColor:null,floodOpacity:null,focusable:null,focusHighlight:null,fontFamily:null,fontSize:null,fontSizeAdjust:null,fontStretch:null,fontStyle:null,fontVariant:null,fontWeight:null,format:null,fr:null,from:null,fx:null,fy:null,g1:hW,g2:hW,glyphName:hW,glyphOrientationHorizontal:null,glyphOrientationVertical:null,glyphRef:null,gradientTransform:null,gradientUnits:null,handler:null,hanging:pW,hatchContentUnits:null,hatchUnits:null,height:null,href:null,hrefLang:null,horizAdvX:pW,horizOriginX:pW,horizOriginY:pW,id:null,ideographic:pW,imageRendering:null,initialVisibility:null,in:null,in2:null,intercept:pW,k:pW,k1:pW,k2:pW,k3:pW,k4:pW,kernelMatrix:wW,kernelUnitLength:null,keyPoints:null,keySplines:null,keyTimes:null,kerning:null,lang:null,lengthAdjust:null,letterSpacing:null,lightingColor:null,limitingConeAngle:pW,local:null,markerEnd:null,markerMid:null,markerStart:null,markerHeight:null,markerUnits:null,markerWidth:null,mask:null,maskContentUnits:null,maskUnits:null,mathematical:null,max:null,media:null,mediaCharacterEncoding:null,mediaContentEncodings:null,mediaSize:pW,mediaTime:null,method:null,min:null,mode:null,name:null,navDown:null,navDownLeft:null,navDownRight:null,navLeft:null,navNext:null,navPrev:null,navRight:null,navUp:null,navUpLeft:null,navUpRight:null,numOctaves:null,observer:null,offset:null,onAbort:null,onActivate:null,onAfterPrint:null,onBeforePrint:null,onBegin:null,onCancel:null,onCanPlay:null,onCanPlayThrough:null,onChange:null,onClick:null,onClose:null,onCopy:null,onCueChange:null,onCut:null,onDblClick:null,onDrag:null,onDragEnd:null,onDragEnter:null,onDragExit:null,onDragLeave:null,onDragOver:null,onDragStart:null,onDrop:null,onDurationChange:null,onEmptied:null,onEnd:null,onEnded:null,onError:null,onFocus:null,onFocusIn:null,onFocusOut:null,onHashChange:null,onInput:null,onInvalid:null,onKeyDown:null,onKeyPress:null,onKeyUp:null,onLoad:null,onLoadedData:null,onLoadedMetadata:null,onLoadStart:null,onMessage:null,onMouseDown:null,onMouseEnter:null,onMouseLeave:null,onMouseMove:null,onMouseOut:null,onMouseOver:null,onMouseUp:null,onMouseWheel:null,onOffline:null,onOnline:null,onPageHide:null,onPageShow:null,onPaste:null,onPause:null,onPlay:null,onPlaying:null,onPopState:null,onProgress:null,onRateChange:null,onRepeat:null,onReset:null,onResize:null,onScroll:null,onSeeked:null,onSeeking:null,onSelect:null,onShow:null,onStalled:null,onStorage:null,onSubmit:null,onSuspend:null,onTimeUpdate:null,onToggle:null,onUnload:null,onVolumeChange:null,onWaiting:null,onZoom:null,opacity:null,operator:null,order:null,orient:null,orientation:null,origin:null,overflow:null,overlay:null,overlinePosition:pW,overlineThickness:pW,paintOrder:null,panose1:null,path:null,pathLength:pW,patternContentUnits:null,patternTransform:null,patternUnits:null,phase:null,ping:fW,pitch:null,playbackOrder:null,pointerEvents:null,points:null,pointsAtX:pW,pointsAtY:pW,pointsAtZ:pW,preserveAlpha:null,preserveAspectRatio:null,primitiveUnits:null,propagate:null,property:wW,r:null,radius:null,referrerPolicy:null,refX:null,refY:null,rel:wW,rev:wW,renderingIntent:null,repeatCount:null,repeatDur:null,requiredExtensions:wW,requiredFeatures:wW,requiredFonts:wW,requiredFormats:wW,resource:null,restart:null,result:null,rotate:null,rx:null,ry:null,scale:null,seed:null,shapeRendering:null,side:null,slope:null,snapshotTime:null,specularConstant:pW,specularExponent:pW,spreadMethod:null,spacing:null,startOffset:null,stdDeviation:null,stemh:null,stemv:null,stitchTiles:null,stopColor:null,stopOpacity:null,strikethroughPosition:pW,strikethroughThickness:pW,string:null,stroke:null,strokeDashArray:wW,strokeDashOffset:null,strokeLineCap:null,strokeLineJoin:null,strokeMiterLimit:pW,strokeOpacity:pW,strokeWidth:null,style:null,surfaceScale:pW,syncBehavior:null,syncBehaviorDefault:null,syncMaster:null,syncTolerance:null,syncToleranceDefault:null,systemLanguage:wW,tabIndex:pW,tableValues:null,target:null,targetX:pW,targetY:pW,textAnchor:null,textDecoration:null,textRendering:null,textLength:null,timelineBegin:null,title:null,transformBehavior:null,type:null,typeOf:wW,to:null,transform:null,transformOrigin:null,u1:null,u2:null,underlinePosition:pW,underlineThickness:pW,unicode:null,unicodeBidi:null,unicodeRange:null,unitsPerEm:pW,values:null,vAlphabetic:pW,vMathematical:pW,vectorEffect:null,vHanging:pW,vIdeographic:pW,version:null,vertAdvY:pW,vertOriginX:pW,vertOriginY:pW,viewBox:null,viewTarget:null,visibility:null,width:null,widths:null,wordSpacing:null,writingMode:null,x:null,x1:null,x2:null,xChannelSelector:null,xHeight:pW,y:null,y1:null,y2:null,yChannelSelector:null,z:null,zoomAndPan:null}}),GW=/^data[-\w.:]+$/i,OW=/-[a-z]/g,UW=/[A-Z]/g;function KW(A){return"-"+A.toLowerCase()}function YW(A){return A.charAt(1).toUpperCase()}const TW=uW([SW,xW,RW,LW,PW],"html"),JW=uW([SW,xW,RW,LW,HW],"svg"),jW={}.hasOwnProperty;function qW(A,e){return A=A.replace(e.subset?function(A){const e=[];let t=-1;for(;++t`]/g,t),e.subset||e.escapeOnly?A:A.replace(/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,(function(A,t,n){return e.format(1024*(A.charCodeAt(0)-55296)+A.charCodeAt(1)-56320+65536,n.charCodeAt(t+2),e)})).replace(/[\x01-\t\v\f\x0E-\x1F\x7F\x81\x8D\x8F\x90\x9D\xA0-\uFFFF]/g,t);function t(A,t,n){return e.format(A.charCodeAt(0),n.charCodeAt(t+1),e)}}const $W=["AElig","AMP","Aacute","Acirc","Agrave","Aring","Atilde","Auml","COPY","Ccedil","ETH","Eacute","Ecirc","Egrave","Euml","GT","Iacute","Icirc","Igrave","Iuml","LT","Ntilde","Oacute","Ocirc","Ograve","Oslash","Otilde","Ouml","QUOT","REG","THORN","Uacute","Ucirc","Ugrave","Uuml","Yacute","aacute","acirc","acute","aelig","agrave","amp","aring","atilde","auml","brvbar","ccedil","cedil","cent","copy","curren","deg","divide","eacute","ecirc","egrave","eth","euml","frac12","frac14","frac34","gt","iacute","icirc","iexcl","igrave","iquest","iuml","laquo","lt","macr","micro","middot","nbsp","not","ntilde","oacute","ocirc","ograve","ordf","ordm","oslash","otilde","ouml","para","plusmn","pound","quot","raquo","reg","sect","shy","sup1","sup2","sup3","szlig","thorn","times","uacute","ucirc","ugrave","uml","uuml","yacute","yen","yuml"],zW={nbsp:"ย ",iexcl:"ยก",cent:"ยข",pound:"ยฃ",curren:"ยค",yen:"ยฅ",brvbar:"ยฆ",sect:"ยง",uml:"ยจ",copy:"ยฉ",ordf:"ยช",laquo:"ยซ",not:"ยฌ",shy:"ยญ",reg:"ยฎ",macr:"ยฏ",deg:"ยฐ",plusmn:"ยฑ",sup2:"ยฒ",sup3:"ยณ",acute:"ยด",micro:"ยต",para:"ยถ",middot:"ยท",cedil:"ยธ",sup1:"ยน",ordm:"ยบ",raquo:"ยป",frac14:"ยผ",frac12:"ยฝ",frac34:"ยพ",iquest:"ยฟ",Agrave:"ร€",Aacute:"ร",Acirc:"ร‚",Atilde:"รƒ",Auml:"ร„",Aring:"ร…",AElig:"ร†",Ccedil:"ร‡",Egrave:"รˆ",Eacute:"ร‰",Ecirc:"รŠ",Euml:"ร‹",Igrave:"รŒ",Iacute:"ร",Icirc:"รŽ",Iuml:"ร",ETH:"ร",Ntilde:"ร‘",Ograve:"ร’",Oacute:"ร“",Ocirc:"ร”",Otilde:"ร•",Ouml:"ร–",times:"ร—",Oslash:"ร˜",Ugrave:"ร™",Uacute:"รš",Ucirc:"ร›",Uuml:"รœ",Yacute:"ร",THORN:"รž",szlig:"รŸ",agrave:"ร ",aacute:"รก",acirc:"รข",atilde:"รฃ",auml:"รค",aring:"รฅ",aelig:"รฆ",ccedil:"รง",egrave:"รจ",eacute:"รฉ",ecirc:"รช",euml:"รซ",igrave:"รฌ",iacute:"รญ",icirc:"รฎ",iuml:"รฏ",eth:"รฐ",ntilde:"รฑ",ograve:"รฒ",oacute:"รณ",ocirc:"รด",otilde:"รต",ouml:"รถ",divide:"รท",oslash:"รธ",ugrave:"รน",uacute:"รบ",ucirc:"รป",uuml:"รผ",yacute:"รฝ",thorn:"รพ",yuml:"รฟ",fnof:"ฦ’",Alpha:"ฮ‘",Beta:"ฮ’",Gamma:"ฮ“",Delta:"ฮ”",Epsilon:"ฮ•",Zeta:"ฮ–",Eta:"ฮ—",Theta:"ฮ˜",Iota:"ฮ™",Kappa:"ฮš",Lambda:"ฮ›",Mu:"ฮœ",Nu:"ฮ",Xi:"ฮž",Omicron:"ฮŸ",Pi:"ฮ ",Rho:"ฮก",Sigma:"ฮฃ",Tau:"ฮค",Upsilon:"ฮฅ",Phi:"ฮฆ",Chi:"ฮง",Psi:"ฮจ",Omega:"ฮฉ",alpha:"ฮฑ",beta:"ฮฒ",gamma:"ฮณ",delta:"ฮด",epsilon:"ฮต",zeta:"ฮถ",eta:"ฮท",theta:"ฮธ",iota:"ฮน",kappa:"ฮบ",lambda:"ฮป",mu:"ฮผ",nu:"ฮฝ",xi:"ฮพ",omicron:"ฮฟ",pi:"ฯ€",rho:"ฯ",sigmaf:"ฯ‚",sigma:"ฯƒ",tau:"ฯ„",upsilon:"ฯ…",phi:"ฯ†",chi:"ฯ‡",psi:"ฯˆ",omega:"ฯ‰",thetasym:"ฯ‘",upsih:"ฯ’",piv:"ฯ–",bull:"โ€ข",hellip:"โ€ฆ",prime:"โ€ฒ",Prime:"โ€ณ",oline:"โ€พ",frasl:"โ„",weierp:"โ„˜",image:"โ„‘",real:"โ„œ",trade:"โ„ข",alefsym:"โ„ต",larr:"โ†",uarr:"โ†‘",rarr:"โ†’",darr:"โ†“",harr:"โ†”",crarr:"โ†ต",lArr:"โ‡",uArr:"โ‡‘",rArr:"โ‡’",dArr:"โ‡“",hArr:"โ‡”",forall:"โˆ€",part:"โˆ‚",exist:"โˆƒ",empty:"โˆ…",nabla:"โˆ‡",isin:"โˆˆ",notin:"โˆ‰",ni:"โˆ‹",prod:"โˆ",sum:"โˆ‘",minus:"โˆ’",lowast:"โˆ—",radic:"โˆš",prop:"โˆ",infin:"โˆž",ang:"โˆ ",and:"โˆง",or:"โˆจ",cap:"โˆฉ",cup:"โˆช",int:"โˆซ",there4:"โˆด",sim:"โˆผ",cong:"โ‰…",asymp:"โ‰ˆ",ne:"โ‰ ",equiv:"โ‰ก",le:"โ‰ค",ge:"โ‰ฅ",sub:"โŠ‚",sup:"โŠƒ",nsub:"โŠ„",sube:"โŠ†",supe:"โŠ‡",oplus:"โŠ•",otimes:"โŠ—",perp:"โŠฅ",sdot:"โ‹…",lceil:"โŒˆ",rceil:"โŒ‰",lfloor:"โŒŠ",rfloor:"โŒ‹",lang:"โŒฉ",rang:"โŒช",loz:"โ—Š",spades:"โ™ ",clubs:"โ™ฃ",hearts:"โ™ฅ",diams:"โ™ฆ",quot:'"',amp:"&",lt:"<",gt:">",OElig:"ล’",oelig:"ล“",Scaron:"ล ",scaron:"ลก",Yuml:"ลธ",circ:"ห†",tilde:"หœ",ensp:"โ€‚",emsp:"โ€ƒ",thinsp:"โ€‰",zwnj:"โ€Œ",zwj:"โ€",lrm:"โ€Ž",rlm:"โ€",ndash:"โ€“",mdash:"โ€”",lsquo:"โ€˜",rsquo:"โ€™",sbquo:"โ€š",ldquo:"โ€œ",rdquo:"โ€",bdquo:"โ€ž",dagger:"โ€ ",Dagger:"โ€ก",permil:"โ€ฐ",lsaquo:"โ€น",rsaquo:"โ€บ",euro:"โ‚ฌ"},WW=["cent","copy","divide","gt","lt","not","para","times"],_W={}.hasOwnProperty,XW={};let VW;for(VW in zW)_W.call(zW,VW)&&(XW[zW[VW]]=VW);function ZW(A,e,t){let n,o=function(A,e,t){const n="&#x"+A.toString(16).toUpperCase();return t&&e&&!/[\dA-Fa-f]/.test(String.fromCharCode(e))?n:n+";"}(A,e,t.omitOptionalSemicolons);if((t.useNamedReferences||t.useShortestReferences)&&(n=function(A,e,t,n){const o=String.fromCharCode(A);if(_W.call(XW,o)){const A=XW[o],r="&"+A;return t&&$W.includes(A)&&!WW.includes(A)&&(!n||e&&61!==e&&/[^\da-z]/i.test(String.fromCharCode(e)))?r:r+";"}return""}(A,e,t.omitOptionalSemicolons,t.attribute)),(t.useShortestReferences||!n)&&t.useShortestReferences){const n=function(A,e,t){const n="&#"+String(A);return t&&e&&!/\d/.test(String.fromCharCode(e))?n:n+";"}(A,e,t.omitOptionalSemicolons);n.length|^->||--!>|"],n_=["<",">"];function o_(A,e){const t=String(A);if("string"!=typeof e)throw new TypeError("Expected character");let n=0,o=t.indexOf(e);for(;-1!==o;)n++,o=t.indexOf(e,o+e.length);return n}function r_(A,e){const t=e||{};return(""===A[A.length-1]?[...A,""]:A).join((t.padRight?" ":"")+","+(!1===t.padLeft?"":" ")).trim()}function i_(A){return A.join(" ").trim()}const a_=/[ \t\n\f\r]/g;function s_(A){return"object"==typeof A?"text"===A.type&&l_(A.value):l_(A)}function l_(A){return""===A.replace(a_,"")}const g_=B_(1),c_=B_(-1),u_=[];function B_(A){return function(e,t,n){const o=e?e.children:u_;let r=(t||0)+A,i=o[r];if(!n)for(;i&&s_(i);)r+=A,i=o[r];return i}}const Q_={}.hasOwnProperty;function E_(A){return function(e,t,n){return Q_.call(A,e.tagName)&&A[e.tagName](e,t,n)}}const C_=E_({body:function(A,e,t){const n=g_(t,e);return!n||"comment"!==n.type},caption:d_,colgroup:d_,dd:function(A,e,t){const n=g_(t,e);return!n||"element"===n.type&&("dt"===n.tagName||"dd"===n.tagName)},dt:function(A,e,t){const n=g_(t,e);return Boolean(n&&"element"===n.type&&("dt"===n.tagName||"dd"===n.tagName))},head:d_,html:function(A,e,t){const n=g_(t,e);return!n||"comment"!==n.type},li:function(A,e,t){const n=g_(t,e);return!n||"element"===n.type&&"li"===n.tagName},optgroup:function(A,e,t){const n=g_(t,e);return!n||"element"===n.type&&"optgroup"===n.tagName},option:function(A,e,t){const n=g_(t,e);return!n||"element"===n.type&&("option"===n.tagName||"optgroup"===n.tagName)},p:function(A,e,t){const n=g_(t,e);return n?"element"===n.type&&("address"===n.tagName||"article"===n.tagName||"aside"===n.tagName||"blockquote"===n.tagName||"details"===n.tagName||"div"===n.tagName||"dl"===n.tagName||"fieldset"===n.tagName||"figcaption"===n.tagName||"figure"===n.tagName||"footer"===n.tagName||"form"===n.tagName||"h1"===n.tagName||"h2"===n.tagName||"h3"===n.tagName||"h4"===n.tagName||"h5"===n.tagName||"h6"===n.tagName||"header"===n.tagName||"hgroup"===n.tagName||"hr"===n.tagName||"main"===n.tagName||"menu"===n.tagName||"nav"===n.tagName||"ol"===n.tagName||"p"===n.tagName||"pre"===n.tagName||"section"===n.tagName||"table"===n.tagName||"ul"===n.tagName):!t||!("element"===t.type&&("a"===t.tagName||"audio"===t.tagName||"del"===t.tagName||"ins"===t.tagName||"map"===t.tagName||"noscript"===t.tagName||"video"===t.tagName))},rp:I_,rt:I_,tbody:function(A,e,t){const n=g_(t,e);return!n||"element"===n.type&&("tbody"===n.tagName||"tfoot"===n.tagName)},td:p_,tfoot:function(A,e,t){return!g_(t,e)},th:p_,thead:function(A,e,t){const n=g_(t,e);return Boolean(n&&"element"===n.type&&("tbody"===n.tagName||"tfoot"===n.tagName))},tr:function(A,e,t){const n=g_(t,e);return!n||"element"===n.type&&"tr"===n.tagName}});function d_(A,e,t){const n=g_(t,e,!0);return!n||"comment"!==n.type&&!("text"===n.type&&s_(n.value.charAt(0)))}function I_(A,e,t){const n=g_(t,e);return!n||"element"===n.type&&("rp"===n.tagName||"rt"===n.tagName)}function p_(A,e,t){const n=g_(t,e);return!n||"element"===n.type&&("td"===n.tagName||"th"===n.tagName)}const f_=E_({body:function(A){const e=g_(A,-1,!0);return!(e&&("comment"===e.type||"text"===e.type&&s_(e.value.charAt(0))||"element"===e.type&&("meta"===e.tagName||"link"===e.tagName||"script"===e.tagName||"style"===e.tagName||"template"===e.tagName)))},colgroup:function(A,e,t){const n=c_(t,e),o=g_(A,-1,!0);if(t&&n&&"element"===n.type&&"colgroup"===n.tagName&&C_(n,t.children.indexOf(n),t))return!1;return Boolean(o&&"element"===o.type&&"col"===o.tagName)},head:function(A){const e=A.children,t=[];let n=-1;for(;++n0},html:function(A){const e=g_(A,-1);return!e||"comment"!==e.type},tbody:function(A,e,t){const n=c_(t,e),o=g_(A,-1);if(t&&n&&"element"===n.type&&("thead"===n.tagName||"tbody"===n.tagName)&&C_(n,t.children.indexOf(n),t))return!1;return Boolean(o&&"element"===o.type&&"tr"===o.tagName)}});const h_={name:[["\t\n\f\r &/=>".split(""),"\t\n\f\r \"&'/=>`".split("")],["\0\t\n\f\r \"&'/<=>".split(""),"\0\t\n\f\r \"&'/<=>`".split("")]],unquoted:[["\t\n\f\r &>".split(""),"\0\t\n\f\r \"&'<=>`".split("")],["\0\t\n\f\r \"&'<=>`".split(""),"\0\t\n\f\r \"&'<=>`".split("")]],single:[["&'".split(""),"\"&'`".split("")],["\0&'".split(""),"\0\"&'`".split("")]],double:[['"&'.split(""),"\"&'`".split("")],['\0"&'.split(""),"\0\"&'`".split("")]]};function w_(A,e,t){const n=function(A,e){const t=BW(e);let n=e,o=QW;if(t in A.normal)return A.property[A.normal[t]];if(t.length>4&&"data"===t.slice(0,4)&&GW.test(e)){if("-"===e.charAt(4)){const A=e.slice(5).replace(OW,YW);n="data"+A.charAt(0).toUpperCase()+A.slice(1)}else{const A=e.slice(4);if(!OW.test(A)){let t=A.replace(UW,KW);"-"!==t.charAt(0)&&(t="-"+t),e="data"+t}}o=bW}return new o(n,e)}(A.schema,e),o=A.settings.allowParseErrors&&"html"===A.schema.space?0:1,r=A.settings.allowDangerousCharacters?0:1;let i,a=A.quote;if(!n.overloadedBoolean||t!==n.attribute&&""!==t?(n.boolean||n.overloadedBoolean&&"string"!=typeof t)&&(t=Boolean(t)):t=!0,null==t||!1===t||"number"==typeof t&&Number.isNaN(t))return"";const s=A_(n.attribute,Object.assign({},A.settings.characterReferences,{subset:h_.name[o][r]}));return!0===t?s:(t=Array.isArray(t)?(n.commaSeparated?r_:i_)(t,{padLeft:!A.settings.tightCommaSeparatedLists}):String(t),A.settings.collapseEmptyAttributes&&!t?s:(A.settings.preferUnquoted&&(i=A_(t,Object.assign({},A.settings.characterReferences,{attribute:!0,subset:h_.unquoted[o][r]}))),i!==t&&(A.settings.quoteSmart&&o_(t,a)>o_(t,A.alternative)&&(a=A.alternative),i=a+A_(t,Object.assign({},A.settings.characterReferences,{subset:("'"===a?h_.single:h_.double)[o][r],attribute:!0}))+a),s+(i?"="+i:i)))}const D_=["<","&"];function m_(A,e,t,n){return!t||"element"!==t.type||"script"!==t.tagName&&"style"!==t.tagName?A_(A.value,Object.assign({},n.settings.characterReferences,{subset:D_})):A.value}const y_=function(A,e){const t=e||{};function n(e,...t){let o=n.invalid;const r=n.handlers;if(e&&jW.call(e,A)){const t=String(e[A]);o=jW.call(r,t)?r[t]:n.unknown}if(o)return o.call(this,e,...t)}return n.handlers=t.handlers||{},n.invalid=t.invalid,n.unknown=t.unknown,n}("type",{invalid:function(A){throw new Error("Expected node, not `"+A+"`")},unknown:function(A){throw new Error("Cannot compile unknown node `"+A.type+"`")},handlers:{comment:function(A,e,t,n){return n.settings.bogusComments?"":"\x3c!--"+A.value.replace(e_,(function(A){return A_(A,Object.assign({},n.settings.characterReferences,{subset:n_}))}))+"--\x3e"},doctype:function(A,e,t,n){return""},element:function(A,e,t,n){const o=n.schema,r="svg"!==o.space&&n.settings.omitOptionalTags;let i="svg"===o.space?n.settings.closeEmptyElements:n.settings.voids.includes(A.tagName.toLowerCase());const a=[];let s;"html"===o.space&&"svg"===A.tagName&&(n.schema=JW);const l=function(A,e){const t=[];let n,o=-1;if(e)for(n in e)if(null!==e[n]&&void 0!==e[n]){const o=w_(A,n,e[n]);o&&t.push(o)}for(;++o")),a.push(g),i||r&&C_(A,e,t)||a.push(""),a.join("")},raw:function(A,e,t,n){return n.settings.allowDangerousHtml?A.value:m_(A,0,t,n)},root:function(A,e,t,n){return n.all(A)},text:m_}});const b_={},v_={},k_=[];function M_(A,e,t){return y_(A,e,t,this)}function x_(A){const e=[],t=A&&A.children||k_;let n=-1;for(;++nlW(A,e,t),codeToTokens:(e,t)=>rW(A,e,t)};let r=function(A,e){const t=b_,n=t.quote||'"',o='"'===n?"'":'"';if('"'!==n&&"'"!==n)throw new Error("Invalid quote `"+n+"`, expected `'` or `\"`");return{one:M_,all:x_,settings:{omitOptionalTags:t.omitOptionalTags||!1,allowParseErrors:t.allowParseErrors||!1,allowDangerousCharacters:t.allowDangerousCharacters||!1,quoteSmart:t.quoteSmart||!1,preferUnquoted:t.preferUnquoted||!1,tightAttributes:t.tightAttributes||!1,upperDoctype:t.upperDoctype||!1,tightDoctype:t.tightDoctype||!1,bogusComments:t.bogusComments||!1,tightCommaSeparatedLists:t.tightCommaSeparatedLists||!1,tightSelfClosing:t.tightSelfClosing||!1,collapseEmptyAttributes:t.collapseEmptyAttributes||!1,allowDangerousHtml:t.allowDangerousHtml||!1,voids:t.voids||gW,characterReferences:t.characterReferences||v_,closeSelfClosing:t.closeSelfClosing||!1,closeEmptyElements:t.closeEmptyElements||!1},schema:"svg"===t.space?JW:TW,quote:n,alternative:o}.one(Array.isArray(A)?{type:"root",children:A}:A,void 0,void 0)}(lW(A,e,t,o));for(const i of sW(t))r=(null==(n=i.postprocess)?void 0:n.call(o,r,t))||r;return r}let F_=null;class N_{constructor(A){e(this,"utf16Length"),e(this,"utf8Length"),e(this,"utf16Value"),e(this,"utf8Value"),e(this,"utf16OffsetToUtf8"),e(this,"utf8OffsetToUtf16");const t=A.length,n=N_._utf8ByteLength(A),o=n!==t,r=o?new Uint32Array(t+1):null;o&&(r[t]=n);const i=o?new Uint32Array(n+1):null;o&&(i[n]=t);const a=new Uint8Array(n);let s=0;for(let e=0;e=55296&&n<=56319&&e+1=56320&&t<=57343&&(l=65536+(n-55296<<10)|t-56320,g=!0)}o&&(r[e]=s,g&&(r[e+1]=s),l<=127?i[s+0]=e:l<=2047?(i[s+0]=e,i[s+1]=e):l<=65535?(i[s+0]=e,i[s+1]=e,i[s+2]=e):(i[s+0]=e,i[s+1]=e,i[s+2]=e,i[s+3]=e)),l<=127?a[s++]=l:l<=2047?(a[s++]=192|(1984&l)>>>6,a[s++]=128|(63&l)>>>0):l<=65535?(a[s++]=224|(61440&l)>>>12,a[s++]=128|(4032&l)>>>6,a[s++]=128|(63&l)>>>0):(a[s++]=240|(1835008&l)>>>18,a[s++]=128|(258048&l)>>>12,a[s++]=128|(4032&l)>>>6,a[s++]=128|(63&l)>>>0),g&&e++}this.utf16Length=t,this.utf8Length=n,this.utf16Value=A,this.utf8Value=a,this.utf16OffsetToUtf8=r,this.utf8OffsetToUtf16=i}static _utf8ByteLength(A){let e=0;for(let t=0,n=A.length;t=55296&&o<=56319&&t+1=56320&&e<=57343&&(r=65536+(o-55296<<10)|e-56320,i=!0)}e+=r<=127?1:r<=2047?2:r<=65535?3:4,i&&t++}return e}createString(A){const e=A.omalloc(this.utf8Length);return A.HEAPU8.set(this.utf8Value,e),e}}const R_=class A{constructor(t){if(e(this,"id",++A.LAST_ID),e(this,"_onigBinding"),e(this,"content"),e(this,"utf16Length"),e(this,"utf8Length"),e(this,"utf16OffsetToUtf8"),e(this,"utf8OffsetToUtf16"),e(this,"ptr"),!F_)throw new oW("Must invoke loadWasm first.");this._onigBinding=F_,this.content=t;const n=new N_(t);this.utf16Length=n.utf16Length,this.utf8Length=n.utf8Length,this.utf16OffsetToUtf8=n.utf16OffsetToUtf8,this.utf8OffsetToUtf16=n.utf8OffsetToUtf16,this.utf8Length<1e4&&!A._sharedPtrInUse?(A._sharedPtr||(A._sharedPtr=F_.omalloc(1e4)),A._sharedPtrInUse=!0,F_.HEAPU8.set(n.utf8Value,A._sharedPtr),this.ptr=A._sharedPtr):this.ptr=n.createString(F_)}convertUtf8OffsetToUtf16(A){return this.utf8OffsetToUtf16?A<0?0:A>this.utf8Length?this.utf16Length:this.utf8OffsetToUtf16[A]:A}convertUtf16OffsetToUtf8(A){return this.utf16OffsetToUtf8?A<0?0:A>this.utf16Length?this.utf8Length:this.utf16OffsetToUtf8[A]:A}dispose(){this.ptr===A._sharedPtr?A._sharedPtrInUse=!1:this._onigBinding.ofree(this.ptr)}};e(R_,"LAST_ID",0),e(R_,"_sharedPtr",0),e(R_,"_sharedPtrInUse",!1);let L_,P_=R_;class H_{constructor(A){if(e(this,"_onigBinding"),e(this,"_ptr"),!F_)throw new oW("Must invoke loadWasm first.");const t=[],n=[];for(let e=0,a=A.length;e>>16),o(e.buffer),1}catch(R3){}}const i={emscripten_get_now:function(){return"undefined"!=typeof performance?performance.now():Date.now()},emscripten_memcpy_big:function(A,e,t){n.HEAPU8.copyWithin(A,e,e+t)},emscripten_resize_heap:function(A){const e=n.HEAPU8.length,t=2147483648;if((A>>>=0)>t)return!1;for(let n=1;n<=4;n*=2){let a=e*(1+.2/n);if(a=Math.min(a,A+100663296),r(Math.min(t,(o=Math.max(A,a))+((i=65536)-o%i)%i)))return!0}var o,i;return!1},fd_write:()=>0};return await async function(){const t={env:i,wasi_snapshot_preview1:i},r=await A(t);e=r.memory,o(e.buffer),Object.assign(n,r)}(),n}((async e=>{let t=A;var n;return t=await t,"function"==typeof t&&(t=await t(e)),"function"==typeof t&&(t=await t(e)),"function"==typeof t.instantiator?t=await t.instantiator(e):!function(A){return"function"==typeof A.default}(t)?(function(A){return void 0!==A.data}(t)&&(t=t.data),!function(A){return"undefined"!=typeof Response&&A instanceof Response}(t)?!function(A){var e;return"undefined"!=typeof ArrayBuffer&&(A instanceof ArrayBuffer||ArrayBuffer.isView(A))||"undefined"!=typeof Buffer&&(null==(e=Buffer.isBuffer)?void 0:e.call(Buffer,A))||"undefined"!=typeof SharedArrayBuffer&&A instanceof SharedArrayBuffer||"undefined"!=typeof Uint32Array&&A instanceof Uint32Array}(t)?t instanceof WebAssembly.Module?t=await O_(t)(e):"default"in t&&t.default instanceof WebAssembly.Module&&(t=await O_(t.default)(e)):t=await O_(t)(e):t="function"==typeof WebAssembly.instantiateStreaming?await(n=t,A=>WebAssembly.instantiateStreaming(n,A))(e):await function(A){return async e=>{const t=await A.arrayBuffer();return WebAssembly.instantiate(t,e)}}(t)(e)):t=await t.default(e),"instance"in t&&(t=t.instance),"exports"in t&&(t=t.exports),t}))}(),L_}function O_(A){return e=>WebAssembly.instantiate(A,e)}const U_={light:"#333333",dark:"#bbbbbb"},K_={light:"#fffffe",dark:"#1e1e1e"},Y_="__shiki_resolved";function T_(A){var e,t,n,o,r;if(null==A?void 0:A[Y_])return A;const i={...A};i.tokenColors&&!i.settings&&(i.settings=i.tokenColors,delete i.tokenColors),i.type||(i.type="dark"),i.colorReplacements={...i.colorReplacements},i.settings||(i.settings=[]);let{bg:a,fg:s}=i;if(!a||!s){const A=i.settings?i.settings.find((A=>!A.name&&!A.scope)):void 0;(null==(e=null==A?void 0:A.settings)?void 0:e.foreground)&&(s=A.settings.foreground),(null==(t=null==A?void 0:A.settings)?void 0:t.background)&&(a=A.settings.background),!s&&(null==(n=null==i?void 0:i.colors)?void 0:n["editor.foreground"])&&(s=i.colors["editor.foreground"]),!a&&(null==(o=null==i?void 0:i.colors)?void 0:o["editor.background"])&&(a=i.colors["editor.background"]),s||(s="light"===i.type?U_.light:U_.dark),a||(a="light"===i.type?K_.light:K_.dark),i.fg=s,i.bg=a}i.settings[0]&&i.settings[0].settings&&!i.settings[0].scope||i.settings.unshift({settings:{foreground:i.fg,background:i.bg}});let l=0;const g=new Map;function c(A){var e;if(g.has(A))return g.get(A);l+=1;const t=`#${l.toString(16).padStart(8,"0").toLowerCase()}`;return(null==(e=i.colorReplacements)?void 0:e[`#${t}`])?c(A):(g.set(A,t),t)}i.settings=i.settings.map((A=>{var e,t;const n=(null==(e=A.settings)?void 0:e.foreground)&&!A.settings.foreground.startsWith("#"),o=(null==(t=A.settings)?void 0:t.background)&&!A.settings.background.startsWith("#");if(!n&&!o)return A;const r={...A,settings:{...A.settings}};if(n){const e=c(A.settings.foreground);i.colorReplacements[e]=A.settings.foreground,r.settings.foreground=e}if(o){const e=c(A.settings.background);i.colorReplacements[e]=A.settings.background,r.settings.background=e}return r}));for(const u of Object.keys(i.colors||{}))if(("editor.foreground"===u||"editor.background"===u||u.startsWith("terminal.ansi"))&&!(null==(r=i.colors[u])?void 0:r.startsWith("#"))){const A=c(i.colors[u]);i.colorReplacements[A]=i.colors[u],i.colors[u]=A}return Object.defineProperty(i,Y_,{enumerable:!1,writable:!1,value:!0}),i}class J_ extends wz{constructor(A,t,n,o={}){super(A),e(this,"_resolver"),e(this,"_themes"),e(this,"_langs"),e(this,"_alias"),e(this,"_resolvedThemes",{}),e(this,"_resolvedGrammars",{}),e(this,"_langMap",{}),e(this,"_langGraph",new Map),e(this,"_textmateThemeCache",new WeakMap),e(this,"_loadedThemesCache",null),e(this,"_loadedLanguagesCache",null),this._resolver=A,this._themes=t,this._langs=n,this._alias=o,t.forEach((A=>this.loadTheme(A))),n.forEach((A=>this.loadLanguage(A)))}getTheme(A){return"string"==typeof A?this._resolvedThemes[A]:this.loadTheme(A)}loadTheme(A){const e=T_(A);return e.name&&(this._resolvedThemes[e.name]=e,this._loadedThemesCache=null),e}getLoadedThemes(){return this._loadedThemesCache||(this._loadedThemesCache=Object.keys(this._resolvedThemes)),this._loadedThemesCache}setTheme(A){let e=this._textmateThemeCache.get(A);e||(e=$$.createFromRawTheme(A),this._textmateThemeCache.set(A,e)),this._syncRegistry.setTheme(e)}getGrammar(A){if(this._alias[A]){const e=new Set([A]);for(;this._alias[A];){if(A=this._alias[A],e.has(A))throw new oW(`Circular alias \`${Array.from(e).join(" -> ")} -> ${A}\``);e.add(A)}}return this._resolvedGrammars[A]}async loadLanguage(A){var e,t,n,o;if(this.getGrammar(A.name))return;const r=new Set(Object.values(this._langMap).filter((e=>{var t;return null==(t=e.embeddedLangsLazy)?void 0:t.includes(A.name)})));this._resolver.addLanguage(A);const i={balancedBracketSelectors:A.balancedBracketSelectors||["*"],unbalancedBracketSelectors:A.unbalancedBracketSelectors||[]};this._syncRegistry._rawGrammars.set(A.scopeName,A);const a=await this.loadGrammarWithConfiguration(A.scopeName,1,i);if(this._resolvedGrammars[A.name]=a,A.aliases&&A.aliases.forEach((e=>{this._alias[e]=A.name})),this._loadedLanguagesCache=null,r.size)for(const s of r)delete this._resolvedGrammars[s.name],this._loadedLanguagesCache=null,null==(t=null==(e=this._syncRegistry)?void 0:e._injectionGrammars)||t.delete(s.scopeName),null==(o=null==(n=this._syncRegistry)?void 0:n._grammars)||o.delete(s.scopeName),await this.loadLanguage(this._langMap[s.name])}async init(){this._themes.map((A=>this.loadTheme(A))),await this.loadLanguages(this._langs)}async loadLanguages(A){for(const n of A)this.resolveEmbeddedLanguages(n);const e=Array.from(this._langGraph.entries()),t=e.filter((([A,e])=>!e));if(t.length){const A=e.filter((([A,e])=>{var n;return e&&(null==(n=e.embeddedLangs)?void 0:n.some((A=>t.map((([A])=>A)).includes(A))))})).filter((A=>!t.includes(A)));throw new oW(`Missing languages ${t.map((([A])=>`\`${A}\``)).join(", ")}, required by ${A.map((([A])=>`\`${A}\``)).join(", ")}`)}for(const[n,o]of e)this._resolver.addLanguage(o);for(const[n,o]of e)await this.loadLanguage(o)}getLoadedLanguages(){return this._loadedLanguagesCache||(this._loadedLanguagesCache=Object.keys({...this._resolvedGrammars,...this._alias})),this._loadedLanguagesCache}resolveEmbeddedLanguages(A){if(this._langMap[A.name]=A,this._langGraph.set(A.name,A),A.embeddedLangs)for(const e of A.embeddedLangs)this._langGraph.set(e,this._langMap[e])}}class j_{constructor(A,t){e(this,"_langs",new Map),e(this,"_scopeToLang",new Map),e(this,"_injections",new Map),e(this,"_onigLibPromise"),this._onigLibPromise=A,t.forEach((A=>this.addLanguage(A)))}get onigLib(){return this._onigLibPromise}getLangRegistration(A){return this._langs.get(A)}async loadGrammar(A){return this._scopeToLang.get(A)}addLanguage(A){this._langs.set(A.name,A),A.aliases&&A.aliases.forEach((e=>{this._langs.set(e,A)})),this._scopeToLang.set(A.scopeName,A),A.injectTo&&A.injectTo.forEach((e=>{this._injections.get(e)||this._injections.set(e,[]),this._injections.get(e).push(A.scopeName)}))}getInjections(A){const e=A.split(".");let t=[];for(let n=1;n<=e.length;n++){const A=e.slice(0,n).join(".");t=[...t,...this._injections.get(A)||[]]}return t}}let q_;async function $_(A={}){async function e(A){return Promise.resolve("function"==typeof A?A():A).then((A=>A.default||A))}async function t(A){return Array.from(new Set((await Promise.all(A.filter((A=>{return!("ansi"===(e=A)||Gz(e));var e})).map((async A=>await e(A).then((A=>Array.isArray(A)?A:[A])))))).flat()))}const n=A.loadWasm||q_,[o,r]=await Promise.all([Promise.all((A.themes||[]).map(e)).then((A=>A.map(T_))),t(A.langs||[]),n?G_(n):void 0]),i=new j_(Promise.resolve({createOnigScanner:A=>function(A){return new H_(A)}(A),createOnigString:A=>new P_(A)}),r),a=new J_(i,o,r,A.langAlias);let s;function l(A){if("none"===A)return{bg:"",fg:"",name:"none",settings:[],type:"dark"};const e=a.getTheme(A);if(!e)throw new oW(`Theme \`${A}\` not found, you may need to load it first`);return e}return await a.init(),{setTheme:function(A){const e=l(A);return s!==A&&(a.setTheme(e),s=A),{theme:e,colorMap:a.getColorMap()}},getTheme:l,getLanguage:function(A){const e=a.getGrammar("string"==typeof A?A:A.name);if(!e)throw new oW(`Language \`${A}\` not found, you may need to load it first`);return e},getLoadedThemes:function(){return a.getLoadedThemes()},getLoadedLanguages:function(){return a.getLoadedLanguages()},loadLanguage:async function(...A){await a.loadLanguages(await t(A))},loadTheme:async function(...A){await Promise.all(A.map((async A=>function(A){return Oz(A)}(A)?null:a.loadTheme(await e(A)))))}}}var z_={exports:{}},W_={},__=J;var X_="function"==typeof Object.is?Object.is:function(A,e){return A===e&&(0!==A||1/A==1/e)||A!=A&&e!=e},V_=__.useState,Z_=__.useEffect,AX=__.useLayoutEffect,eX=__.useDebugValue;function tX(A){var e=A.getSnapshot;A=A.value;try{var t=e();return!X_(A,t)}catch(n){return!0}}var nX="undefined"==typeof window||void 0===window.document||void 0===window.document.createElement?function(A,e){return e()}:function(A,e){var t=e(),n=V_({inst:{value:t,getSnapshot:e}}),o=n[0].inst,r=n[1];return AX((function(){o.value=t,o.getSnapshot=e,tX(o)&&r({inst:o})}),[A,t,e]),Z_((function(){return tX(o)&&r({inst:o}),A((function(){tX(o)&&r({inst:o})}))}),[A]),eX(t),t};W_.useSyncExternalStore=void 0!==__.useSyncExternalStore?__.useSyncExternalStore:nX,z_.exports=W_;var oX=z_.exports;const rX=()=>{},iX=rX(),aX=Object,sX=A=>A===iX,lX=A=>"function"==typeof A,gX=(A,e)=>({...A,...e}),cX=new WeakMap;let uX=0;const BX=A=>{const e=typeof A,t=A&&A.constructor,n=t==Date;let o,r;if(aX(A)!==A||n||t==RegExp)o=n?A.toJSON():"symbol"==e?A.toString():"string"==e?JSON.stringify(A):""+A;else{if(o=cX.get(A),o)return o;if(o=++uX+"~",cX.set(A,o),t==Array){for(o="@",r=0;r{const t=QX.get(A);return[()=>!sX(e)&&A.get(e)||EX,n=>{if(!sX(e)){const o=A.get(e);e in CX||(CX[e]=o),t[5](e,gX(o,n),o||EX)}},t[6],()=>!sX(e)&&e in CX?CX[e]:!sX(e)&&A.get(e)||EX]};let hX=!0;const[wX,DX]=IX&&window.addEventListener?[window.addEventListener.bind(window),window.removeEventListener.bind(window)]:[rX,rX],mX={isOnline:()=>hX,isVisible:()=>{const A=pX&&document.visibilityState;return sX(A)||"hidden"!==A}},yX={initFocus:A=>(pX&&document.addEventListener("visibilitychange",A),wX("focus",A),()=>{pX&&document.removeEventListener("visibilitychange",A),DX("focus",A)}),initReconnect:A=>{const e=()=>{hX=!0,A()},t=()=>{hX=!1};return wX("online",e),wX("offline",t),()=>{DX("online",e),DX("offline",t)}}},bX=!j.useId,vX=!IX||"Deno"in window,kX=A=>IX&&typeof window.requestAnimationFrame!=dX?window.requestAnimationFrame(A):setTimeout(A,1),MX=vX?J.useEffect:J.useLayoutEffect,xX="undefined"!=typeof navigator&&navigator.connection,SX=!vX&&xX&&(["slow-2g","2g"].includes(xX.effectiveType)||xX.saveData),FX=A=>{if(lX(A))try{A=A()}catch(t){A=""}const e=A;return[A="string"==typeof A?A:(Array.isArray(A)?A.length:A)?BX(A):"",e]};let NX=0;const RX=()=>++NX;var LX=3,PX=0,HX=2,GX=1;async function OX(...A){const[e,t,n,o]=A,r=gX({populateCache:!0,throwOnError:!0},"boolean"==typeof o?{revalidate:o}:o||{});let i=r.populateCache;const a=r.rollbackOnError;let s=r.optimisticData;const l=r.throwOnError;if(lX(t)){const A=t,n=[],o=e.keys();for(const t of o)!/^\$(inf|sub)\$/.test(t)&&A(e.get(t)._k)&&n.push(t);return Promise.all(n.map(g))}return g(t);async function g(t){const[o]=FX(t);if(!o)return;const[g,c]=fX(e,o),[u,B,Q,E]=QX.get(e),C=()=>{const A=u[o];return(lX(r.revalidate)?r.revalidate(g().data,t):!1!==r.revalidate)&&(delete Q[o],delete E[o],A&&A[0])?A[0](2).then((()=>g().data)):g().data};if(A.length<3)return C();let d,I=n;const p=RX();B[o]=[p,0];const f=!sX(s),h=g(),w=h.data,D=h._c,m=sX(D)?w:D;if(f&&(s=lX(s)?s(m,w):s,c({data:s,_c:m})),lX(I))try{I=I(m)}catch(y){d=y}if(I&&lX(I.then)){if(I=await I.catch((A=>{d=A})),p!==B[o][0]){if(d)throw d;return I}d&&f&&(A=>"function"==typeof a?a(A):!1!==a)(d)&&(i=!0,c({data:m,_c:iX}))}if(i&&!d)if(lX(i)){const A=i(I,m);c({data:A,error:iX,_c:iX})}else c({data:I,error:iX,_c:iX});if(B[o][1]=RX(),Promise.resolve(C()).then((()=>{c({_c:iX})})),!d)return I;if(l)throw d}}const UX=(A,e)=>{for(const t in A)A[t][0]&&A[t][0](e)},[KX,YX]=((A,e)=>{if(!QX.has(A)){const t=gX(yX,e),n={},o=OX.bind(iX,A);let r=rX;const i={},a=(A,e)=>{const t=i[A]||[];return i[A]=t,t.push(e),()=>t.splice(t.indexOf(e),1)},s=(e,t,n)=>{A.set(e,t);const o=i[e];if(o)for(const A of o)A(t,n)},l=()=>{if(!QX.has(A)&&(QX.set(A,[n,{},{},{},o,s,a]),!vX)){const e=t.initFocus(setTimeout.bind(iX,UX.bind(iX,n,0))),o=t.initReconnect(setTimeout.bind(iX,UX.bind(iX,n,1)));r=()=>{e&&e(),o&&o(),QX.delete(A)}}};return l(),[A,o,l,r]}return[A,QX.get(A)[4]]})(new Map),TX=gX({onLoadingSlow:rX,onSuccess:rX,onError:rX,onErrorRetry:(A,e,t,n,o)=>{const r=t.errorRetryCount,i=o.retryCount,a=~~((Math.random()+.5)*(1<<(i<8?i:8)))*t.errorRetryInterval;!sX(r)&&i>r||setTimeout(n,a,o)},onDiscarded:rX,revalidateOnFocus:!0,revalidateOnReconnect:!0,revalidateIfStale:!0,shouldRetryOnError:!0,errorRetryInterval:SX?1e4:5e3,focusThrottleInterval:5e3,dedupingInterval:2e3,loadingTimeout:SX?5e3:3e3,compare:(A,e)=>BX(A)==BX(e),isPaused:()=>!1,cache:KX,mutate:YX,fallback:{}},mX),JX=J.createContext({}),jX=IX&&window.__SWR_DEVTOOLS_USE__,qX=jX?window.__SWR_DEVTOOLS_USE__:[],$X=qX.concat((A=>(e,t,n)=>A(e,t&&((...A)=>{const[n]=FX(e),[,,,o]=QX.get(KX);if(n.startsWith("$inf$"))return t(...A);const r=o[n];return sX(r)?t(...A):(delete o[n],r)}),n)));jX&&(window.__SWR_DEVTOOLS_REACT__=j);const zX=j.use||(A=>{if("pending"===A.status)throw A;if("fulfilled"===A.status)return A.value;throw"rejected"===A.status?A.reason:(A.status="pending",A.then((e=>{A.status="fulfilled",A.value=e}),(e=>{A.status="rejected",A.reason=e})),A)}),WX={dedupe:!0},_X=(XX=(A,e,t)=>{const{cache:n,compare:o,suspense:r,fallbackData:i,revalidateOnMount:a,revalidateIfStale:s,refreshInterval:l,refreshWhenHidden:g,refreshWhenOffline:c,keepPreviousData:u}=t,[B,Q,E,C]=QX.get(n),[d,I]=FX(A),p=J.useRef(!1),f=J.useRef(!1),h=J.useRef(d),w=J.useRef(e),D=J.useRef(t),m=()=>D.current,y=()=>m().isVisible()&&m().isOnline(),[b,v,k,M]=fX(n,d),x=J.useRef({}).current,S=sX(i)?t.fallback[d]:i,F=(A,e)=>{for(const t in x){const n=t;if("data"===n){if(!o(A[n],e[n])){if(!sX(A[n]))return!1;if(!o(K,e[n]))return!1}}else if(e[n]!==A[n])return!1}return!0},N=J.useMemo((()=>{const A=!!d&&!!e&&(sX(a)?!m().isPaused()&&!r&&(!!sX(s)||s):a),t=e=>{const t=gX(e);return delete t._k,A?{isValidating:!0,isLoading:!0,...t}:t},n=b(),o=M(),i=t(n),l=n===o?i:t(o);let g=i;return[()=>{const A=t(b());return F(A,g)?(g.data=A.data,g.isLoading=A.isLoading,g.isValidating=A.isValidating,g.error=A.error,g):(g=A,A)},()=>l]}),[n,d]),R=oX.useSyncExternalStore(J.useCallback((A=>k(d,((e,t)=>{F(t,e)||A()}))),[n,d]),N[0],N[1]),L=!p.current,P=B[d]&&B[d].length>0,H=R.data,G=sX(H)?S:H,O=R.error,U=J.useRef(G),K=u?sX(H)?U.current:H:G,Y=!(P&&!sX(O))&&(L&&!sX(a)?a:!m().isPaused()&&(r?!sX(G)&&s:sX(G)||s)),T=!!(d&&e&&L&&Y),j=sX(R.isValidating)?T:R.isValidating,q=sX(R.isLoading)?T:R.isLoading,$=J.useCallback((async A=>{const e=w.current;if(!d||!e||f.current||m().isPaused())return!1;let n,r,i=!0;const a=A||{},s=!E[d]||!a.dedupe,l=()=>bX?!f.current&&d===h.current&&p.current:d===h.current,g={isValidating:!1,isLoading:!1},c=()=>{v(g)},u=()=>{const A=E[d];A&&A[1]===r&&delete E[d]},C={isValidating:!0};sX(b().data)&&(C.isLoading=!0);try{if(s&&(v(C),t.loadingTimeout&&sX(b().data)&&setTimeout((()=>{i&&l()&&m().onLoadingSlow(d,t)}),t.loadingTimeout),E[d]=[e(I),RX()]),[n,r]=E[d],n=await n,s&&setTimeout(u,t.dedupingInterval),!E[d]||E[d][1]!==r)return s&&l()&&m().onDiscarded(d),!1;g.error=iX;const A=Q[d];if(!sX(A)&&(r<=A[0]||r<=A[1]||0===A[1]))return c(),s&&l()&&m().onDiscarded(d),!1;const a=b().data;g.data=o(a,n)?a:n,s&&l()&&m().onSuccess(n,d,t)}catch(D){u();const A=m(),{shouldRetryOnError:e}=A;A.isPaused()||(g.error=D,s&&l()&&(A.onError(D,d,A),(!0===e||lX(e)&&e(D))&&(m().revalidateOnFocus&&m().revalidateOnReconnect&&!y()||A.onErrorRetry(D,d,A,(A=>{const e=B[d];e&&e[0]&&e[0](LX,A)}),{retryCount:(a.retryCount||0)+1,dedupe:!0}))))}return i=!1,c(),!0}),[d,n]),z=J.useCallback(((...A)=>OX(n,h.current,...A)),[]);if(MX((()=>{w.current=e,D.current=t,sX(H)||(U.current=H)})),MX((()=>{if(!d)return;const A=$.bind(iX,WX);let e=0;const t=((A,e,t)=>{const n=e[A]||(e[A]=[]);return n.push(t),()=>{const A=n.indexOf(t);A>=0&&(n[A]=n[n.length-1],n.pop())}})(d,B,((t,n={})=>{if(t==PX){const t=Date.now();m().revalidateOnFocus&&t>e&&y()&&(e=t+m().focusThrottleInterval,A())}else if(t==GX)m().revalidateOnReconnect&&y()&&A();else{if(t==HX)return $();if(t==LX)return $(n)}}));return f.current=!1,h.current=d,p.current=!0,v({_k:I}),Y&&(sX(G)||vX?A():kX(A)),()=>{f.current=!0,t()}}),[d]),MX((()=>{let A;function e(){const e=lX(l)?l(b().data):l;e&&-1!==A&&(A=setTimeout(t,e))}function t(){b().error||!g&&!m().isVisible()||!c&&!m().isOnline()?e():$(WX).then(e)}return e(),()=>{A&&(clearTimeout(A),A=-1)}}),[l,g,c,d]),J.useDebugValue(K),r&&sX(G)&&d){if(!bX&&vX)throw new Error("Fallback data is required when using suspense in SSR.");w.current=e,D.current=t,f.current=!1;const A=C[d];if(!sX(A)){const e=z(A);zX(e)}if(!sX(O))throw O;{const A=$(WX);sX(K)||(A.status="fulfilled",A.value=!0),zX(A)}}return{mutate:z,get data(){return x.data=!0,K},get error(){return x.error=!0,O},get isValidating(){return x.isValidating=!0,j},get isLoading(){return x.isLoading=!0,q}}},function(...A){const e=gX(TX,J.useContext(JX)),[t,n,o]=(A=>lX(A[1])?[A[0],A[1],A[2]||{}]:[A[0],null,(null===A[1]?A[2]:A[1])||{}])(A),r=((A,e)=>{const t=gX(A,e);if(e){const{use:n,fallback:o}=A,{use:r,fallback:i}=e;n&&r&&(t.use=n.concat(r)),o&&i&&(t.fallback=gX(o,i))}return t})(e,o);let i=XX;const{use:a}=r,s=(a||[]).concat($X);for(let l=s.length;l--;)i=s[l](i);return i(t,n||r.fetcher||null,r)});var XX,VX,ZX,AV,eV,tV,nV,oV,rV,iV,aV,sV={blue:{dark:["#000506","#002126","#00363f","#004e59","#006675","#008093","#159ab0","#47b3ca","#6acde4","#8ae8ff","#b8f0ff","#def7ff","#ffffff"],darkA:["rgba(0, 167, 200, 0.03)","rgba(0, 220, 253, 0.15)","rgba(0, 216, 252, 0.25)","rgba(0, 223, 254, 0.35)","rgba(0, 222, 254, 0.46)","rgba(0, 221, 253, 0.58)","rgba(30, 223, 255, 0.69)","rgba(89, 224, 252, 0.8)","rgba(118, 228, 253, 0.9)","#8ae8ff","#b8f0ff","#def7ff","#ffffff"],light:["#ffffff","#fbfeff","#f4fcff","#eafaff","#dff7ff","#d3f5ff","#c4f2ff","#b4efff","#a1ecff","#8ae8ff","#159ab0","#004e59","#000506"],lightA:["rgba(255, 255, 255, 0.01)","rgba(55, 205, 255, 0.02)","rgba(35, 195, 255, 0.05)","rgba(22, 199, 255, 0.09)","rgba(9, 193, 255, 0.13)","rgba(11, 199, 255, 0.18)","rgba(9, 201, 255, 0.24)","rgba(5, 202, 255, 0.3)","rgba(1, 204, 255, 0.37)","rgba(1, 205, 255, 0.46)","rgba(1, 145, 169, 0.92)","#004e59","#000506"]},bnw:{dark:["#000000","#111111","#333333","#555555","#666666","#888888","#aaaaaa","#cccccc","#dddddd","#eeeeee","#ffffff","#ffffff","#ffffff"],darkA:["rgba(255, 255, 255, 0.02)","rgba(255, 255, 255, 0.08)","rgba(255, 255, 255, 0.16)","rgba(255, 255, 255, 0.22)","rgba(255, 255, 255, 0.36)","rgba(255, 255, 255, 0.48)","rgba(255, 255, 255, 0.6)","rgba(255, 255, 255, 0.72)","rgba(255, 255, 255, 0.84)","rgba(255, 255, 255, 0.88)","rgba(255, 255, 255, 0.92)","rgba(255, 255, 255, 0.96)","rgba(255, 255, 255, 0.98)"],light:["#ffffff","#f5f5f5","#eeeeee","#cccccc","#aaaaaa","#888888","#666666","#444444","#333333","#222222","#111111","#111111","#111111"],lightA:["rgba(0, 0, 0, 0.02)","rgba(0, 0, 0, 0.08)","rgba(0, 0, 0, 0.16)","rgba(0, 0, 0, 0.22)","rgba(0, 0, 0, 0.36)","rgba(0, 0, 0, 0.48)","rgba(0, 0, 0, 0.6)","rgba(0, 0, 0, 0.72)","rgba(0, 0, 0, 0.84)","rgba(0, 0, 0, 0.88)","rgba(0, 0, 0, 0.92)","rgba(0, 0, 0, 0.96)","rgba(0, 0, 0, 0.98)"]},cyan:{dark:["#000503","#00221c","#003930","#005245","#006c5b","#008772","#2fa28a","#55bca4","#75d7be","#95f3d9","#bdf7e4","#dffcf0","#ffffff"],darkA:["rgba(0, 250, 150, 0.02)","rgba(0, 243, 200, 0.14)","rgba(0, 248, 209, 0.23)","rgba(0, 248, 209, 0.33)","rgba(0, 251, 212, 0.43)","rgba(0, 255, 215, 0.53)","rgba(73, 253, 216, 0.64)","rgba(115, 254, 222, 0.74)","rgba(138, 253, 224, 0.85)","rgba(155, 253, 226, 0.96)","rgba(195, 255, 235, 0.97)","rgba(225, 255, 242, 0.99)","#ffffff"],light:["#ffffff","#f9fffb","#effff8","#e3fff4","#d8fef0","#ccfcec","#c0fae8","#b3f8e3","#a5f6de","#95f3d9","#2fa28a","#005245","#000503"],lightA:["rgba(255, 255, 255, 0.01)","rgba(55, 255, 122, 0.03)","rgba(26, 255, 155, 0.07)","rgba(0, 255, 155, 0.11)","rgba(11, 249, 161, 0.16)","rgba(0, 240, 160, 0.2)","rgba(3, 235, 163, 0.25)","rgba(2, 232, 162, 0.3)","rgba(5, 230, 163, 0.36)","rgba(3, 226, 165, 0.42)","rgba(1, 142, 112, 0.82)","#005245","#000503"]},geekblue:{dark:["#000216","#001343","#00225c","#003176","#00418f","#0052a8","#0264c1","#1877d5","#288aea","#369eff","#88bffb","#c5dffd","#ffffff"],darkA:["rgba(0, 22, 244, 0.09)","rgba(0, 70, 248, 0.27)","rgba(0, 92, 249, 0.37)","rgba(0, 104, 251, 0.47)","rgba(0, 116, 255, 0.56)","rgba(0, 124, 255, 0.66)","rgba(3, 132, 254, 0.76)","rgba(29, 142, 254, 0.84)","rgba(43, 150, 254, 0.92)","#369eff","rgba(137, 193, 254, 0.99)","#c5dffd","#ffffff"],light:["#ffffff","#f8faff","#eaf3ff","#daeaff","#c7e0ff","#b1d5ff","#9ac9ff","#7fbcff","#60aeff","#369eff","#0264c1","#003176","#000216"],lightA:["rgba(255, 255, 255, 0.01)","rgba(22, 88, 255, 0.03)","rgba(22, 122, 255, 0.09)","rgba(8, 115, 255, 0.15)","rgba(0, 114, 255, 0.22)","rgba(3, 120, 255, 0.31)","rgba(3, 120, 255, 0.4)","rgba(4, 124, 255, 0.51)","rgba(3, 126, 255, 0.63)","rgba(1, 132, 255, 0.79)","#0264c1","#003176","#000216"]},gold:{dark:["#070300","#271a00","#3f2c00","#593f00","#745400","#906a00","#ac8100","#c99811","#e4b12f","#ffcb47","#ffdd90","#ffeecd","#ffffff"],darkA:["rgba(233, 100, 0, 0.03)","rgba(244, 163, 0, 0.16)","rgba(252, 176, 0, 0.25)","rgba(254, 180, 0, 0.35)","rgba(252, 183, 0, 0.46)","rgba(253, 186, 0, 0.57)","rgba(253, 190, 0, 0.68)","rgba(254, 192, 22, 0.79)","rgba(253, 197, 52, 0.9)","#ffcb47","#ffdd90","#ffeecd","#ffffff"],light:["#ffffff","#fffcff","#fff8f2","#fff4e2","#ffefd0","#ffe9bb","#ffe3a4","#ffdb8b","#ffd46d","#ffcb47","#ac8100","#593f00","#070300"],lightA:["rgba(255, 255, 255, 0.01)","rgba(255, 105, 255, 0.02)","rgba(255, 138, 38, 0.06)","rgba(255, 163, 13, 0.12)","rgba(255, 171, 8, 0.19)","rgba(255, 174, 3, 0.27)","rgba(255, 177, 2, 0.36)","rgba(255, 177, 3, 0.46)","rgba(255, 181, 3, 0.58)","rgba(255, 184, 3, 0.73)","#ac8100","#593f00","#070300"]},gray:{dark:["#000000","#111111","#222222","#2d2d2d","#333333","#444444","#555555","#666666","#6f6f6f","#777777","#aaaaaa","#dddddd","#ffffff"],darkA:["rgba(255, 255, 255, 0.02)","rgba(255, 255, 255, 0.06)","rgba(255, 255, 255, 0.10)","rgba(255, 255, 255, 0.16)","rgba(255, 255, 255, 0.24)","rgba(255, 255, 255, 0.28)","rgba(255, 255, 255, 0.32)","rgba(255, 255, 255, 0.38)","rgba(255, 255, 255, 0.44)","rgba(255, 255, 255, 0.5)","rgba(255, 255, 255, 0.66)","rgba(255, 255, 255, 0.84)","#ffffff"],light:["#ffffff","#f8f8f8","#eeeeee","#e3e3e3","#dddddd","#cccccc","#bbbbbb","#aaaaaa","#999999","#888888","#666666","#333333","#080808"],lightA:["rgba(0, 0, 0, 0.015)","rgba(0, 0, 0, 0.03)","rgba(0, 0, 0, 0.06)","rgba(0, 0, 0, 0.12)","rgba(0, 0, 0, 0.18)","rgba(0, 0, 0, 0.24)","rgba(0, 0, 0, 0.32)","rgba(0, 0, 0, 0.38)","rgba(0, 0, 0, 0.44)","rgba(0, 0, 0, 0.5)","rgba(0, 0, 0, 0.68)","rgba(0, 0, 0, 0.84)","rgba(0, 0, 0, 0.98)"]},green:{dark:["#000503","#001d12","#002d1d","#003f28","#005232","#00653c","#007944","#1b8d4d","#3ba05a","#55b467","#96cd92","#cde6c3","#ffffff"],darkA:["rgba(0, 250, 150, 0.02)","rgba(0, 242, 150, 0.12)","rgba(0, 250, 161, 0.18)","rgba(0, 252, 160, 0.25)","rgba(0, 248, 152, 0.33)","rgba(0, 252, 150, 0.4)","rgba(0, 252, 142, 0.48)","rgba(48, 252, 137, 0.56)","rgba(94, 254, 143, 0.63)","rgba(120, 254, 145, 0.71)","rgba(185, 253, 180, 0.81)","rgba(225, 253, 214, 0.91)","#ffffff"],light:["#ffffff","#f4fdeb","#e7f8dd","#d8f2ce","#c7eabd","#b4e1ac","#a0d79b","#89cc8a","#71c179","#55b467","#007944","#003f28","#000503"],lightA:["rgba(255, 255, 255, 0.01)","rgba(117, 230, 5, 0.08)","rgba(84, 205, 12, 0.14)","rgba(60, 190, 10, 0.2)","rgba(40, 174, 1, 0.26)","rgba(28, 164, 3, 0.33)","rgba(18, 155, 5, 0.4)","rgba(4, 146, 6, 0.47)","rgba(1, 144, 16, 0.56)","rgba(1, 143, 28, 0.67)","#007944","#003f28","#000503"]},lime:{dark:["#020400","#142100","#253700","#374f00","#4b6800","#608200","#769d00","#8fb81b","#a9d42f","#c4f042","#daf685","#eefbbe","#ffffff"],darkA:["rgba(100, 200, 0, 0.02)","rgba(154, 254, 0, 0.13)","rgba(168, 250, 0, 0.22)","rgba(177, 255, 0, 0.31)","rgba(183, 254, 0, 0.41)","rgba(188, 255, 0, 0.51)","rgba(190, 253, 0, 0.62)","rgba(196, 252, 37, 0.73)","rgba(204, 255, 57, 0.83)","rgba(209, 255, 70, 0.94)","rgba(225, 254, 137, 0.97)","rgba(240, 254, 192, 0.99)","#ffffff"],light:["#ffffff","#feffeb","#f9ffd8","#f2ffc1","#ebfdaf","#e4fc9b","#ddf987","#d5f773","#cdf35c","#c4f042","#769d00","#374f00","#020400"],lightA:["rgba(255, 255, 255, 0.01)","rgba(242, 255, 5, 0.08)","rgba(218, 255, 11, 0.16)","rgba(203, 255, 7, 0.25)","rgba(193, 249, 5, 0.32)","rgba(187, 247, 5, 0.4)","rgba(183, 242, 0, 0.47)","rgba(179, 240, 0, 0.55)","rgba(177, 236, 0, 0.64)","rgba(175, 235, 0, 0.74)","#769d00","#374f00","#020400"]},magenta:{dark:["#100002","#350011","#4b001e","#63002d","#79093f","#8e1752","#a32466","#b8317b","#ce3e91","#e34ba9","#f38bcb","#fec5e8","#ffffff"],darkA:["rgba(229, 0, 29, 0.07)","rgba(252, 0, 81, 0.21)","rgba(250, 0, 100, 0.3)","rgba(254, 0, 115, 0.39)","rgba(252, 19, 131, 0.48)","rgba(254, 41, 146, 0.56)","rgba(255, 56, 159, 0.64)","rgba(252, 67, 168, 0.73)","rgba(254, 77, 179, 0.81)","rgba(255, 84, 190, 0.89)","rgba(253, 145, 211, 0.96)","#fec5e8","#ffffff"],light:["#ffffff","#fff7f9","#ffeaf4","#ffdaee","#ffc7e7","#ffb2df","#ff99d6","#f980ca","#ef67ba","#e34ba9","#a32466","#63002d","#100002"],lightA:["rgba(255, 255, 255, 0.01)","rgba(255, 55, 105, 0.04)","rgba(255, 22, 133, 0.09)","rgba(255, 8, 142, 0.15)","rgba(255, 0, 146, 0.22)","rgba(255, 7, 152, 0.31)","rgba(255, 0, 153, 0.4)","rgba(243, 1, 149, 0.5)","rgba(228, 2, 140, 0.6)","rgba(216, 1, 134, 0.71)","rgba(148, 0, 77, 0.86)","#63002d","#100002"]},orange:{dark:["#080300","#271400","#3d2000","#552d00","#6f3a00","#8a4700","#a75400","#c66100","#e37013","#ff802b","#ffae87","#ffd7c8","#ffffff"],darkA:["rgba(200, 75, 0, 0.04)","rgba(244, 125, 0, 0.16)","rgba(254, 133, 0, 0.24)","rgba(250, 132, 0, 0.34)","rgba(252, 132, 0, 0.44)","rgba(251, 129, 0, 0.55)","rgba(253, 127, 0, 0.66)","rgba(254, 124, 0, 0.78)","rgba(255, 126, 21, 0.89)","#ff802b","#ffae87","#ffd7c8","#ffffff"],light:["#ffffff","#fff9f8","#fff0ec","#ffe6dd","#ffd9ca","#ffcbb5","#ffbb9c","#ffaa7f","#ff975c","#ff802b","#a75400","#552d00","#080300"],lightA:["rgba(255, 255, 255, 0.01)","rgba(255, 55, 22, 0.03)","rgba(255, 67, 17, 0.08)","rgba(255, 76, 12, 0.14)","rgba(255, 74, 3, 0.21)","rgba(255, 76, 0, 0.29)","rgba(255, 81, 1, 0.39)","rgba(255, 88, 4, 0.51)","rgba(255, 93, 0, 0.64)","rgba(255, 102, 0, 0.83)","#a75400","#552d00","#080300"]},purple:{dark:["#0d000b","#2e002a","#42003e","#560053","#670e66","#781e78","#892b8a","#9a399e","#ab46b2","#bd54c6","#d590da","#edc7ee","#ffffff"],darkA:["rgba(217, 0, 183, 0.06)","rgba(242, 0, 221, 0.19)","rgba(254, 0, 238, 0.26)","rgba(253, 0, 244, 0.34)","rgba(251, 34, 249, 0.41)","rgba(255, 64, 255, 0.47)","rgba(249, 78, 251, 0.55)","rgba(248, 92, 255, 0.62)","rgba(244, 100, 254, 0.7)","rgba(242, 108, 254, 0.78)","rgba(248, 167, 253, 0.86)","rgba(252, 212, 253, 0.94)","#ffffff"],light:["#ffffff","#fff6fb","#ffe7fd","#fdd6fe","#f6c4f8","#eeb1f1","#e49ce8","#d886de","#cb6ed2","#bd54c6","#892b8a","#560053","#0d000b"],lightA:["rgba(255, 255, 255, 0.01)","rgba(255, 30, 155, 0.04)","rgba(255, 15, 235, 0.1)","rgba(243, 14, 249, 0.17)","rgba(218, 9, 226, 0.24)","rgba(200, 3, 210, 0.31)","rgba(186, 1, 196, 0.39)","rgba(174, 3, 186, 0.48)","rgba(164, 1, 176, 0.57)","rgba(156, 0, 170, 0.67)","rgba(113, 0, 114, 0.83)","#560053","#0d000b"]},red:{dark:["#0f0006","#34001d","#4b002b","#640039","#7a0c46","#911b53","#a72860","#bf356e","#d7427b","#f04f88","#ff8eab","#ffc9d3","#ffffff"],darkA:["rgba(250, 0, 100, 0.06)","rgba(248, 0, 138, 0.21)","rgba(250, 0, 143, 0.3)","rgba(250, 0, 142, 0.4)","rgba(254, 25, 146, 0.48)","rgba(254, 47, 146, 0.57)","rgba(253, 61, 145, 0.66)","rgba(255, 71, 147, 0.75)","rgba(253, 78, 145, 0.85)","rgba(255, 84, 145, 0.94)","#ff8eab","#ffc9d3","#ffffff"],light:["#ffffff","#fff7f7","#ffeced","#ffdde2","#ffccd5","#ffb8c7","#ffa2b8","#ff88a8","#fe6998","#f04f88","#a72860","#640039","#0f0006"],lightA:["rgba(255, 255, 255, 0.01)","rgba(255, 55, 55, 0.04)","rgba(255, 17, 30, 0.08)","rgba(255, 12, 48, 0.14)","rgba(255, 0, 45, 0.2)","rgba(255, 1, 55, 0.28)","rgba(255, 4, 63, 0.37)","rgba(255, 2, 70, 0.47)","rgba(253, 1, 80, 0.59)","rgba(233, 0, 83, 0.69)","rgba(151, 2, 68, 0.85)","#640039","#0f0006"]},volcano:{dark:["#0c0100","#2f0a00","#451200","#5d1900","#762000","#8e2a07","#a53716","#bc4424","#d45132","#ec5e41","#ff9480","#ffcbc3","#ffffff"],darkA:["rgba(240, 20, 0, 0.05)","rgba(247, 53, 0, 0.19)","rgba(246, 64, 0, 0.28)","rgba(251, 68, 0, 0.37)","rgba(251, 68, 0, 0.47)","rgba(254, 75, 12, 0.56)","rgba(254, 85, 34, 0.65)","rgba(254, 92, 49, 0.74)","rgba(255, 98, 60, 0.83)","rgba(254, 101, 70, 0.93)","#ff9480","#ffcbc3","#ffffff"],light:["#ffffff","#fff7f6","#ffece9","#ffded9","#ffcec5","#ffbbaf","#ffa695","#ff8e78","#fb745a","#ec5e41","#a53716","#5d1900","#0c0100"],lightA:["rgba(255, 255, 255, 0.01)","rgba(255, 55, 30, 0.04)","rgba(255, 44, 11, 0.09)","rgba(255, 35, 2, 0.15)","rgba(255, 42, 3, 0.23)","rgba(255, 43, 5, 0.32)","rgba(255, 43, 3, 0.42)","rgba(255, 42, 0, 0.53)","rgba(249, 41, 1, 0.65)","rgba(230, 40, 2, 0.75)","rgba(157, 38, 2, 0.92)","#5d1900","#0c0100"]},yellow:{dark:["#050400","#251d00","#3e3300","#584a00","#736300","#8e7d00","#ab9800","#c7b426","#e3d142","#ffef5c","#fff594","#fffad3","#ffffff"],darkA:["rgba(250, 200, 0, 0.02)","rgba(247, 193, 0, 0.15)","rgba(248, 204, 0, 0.25)","rgba(251, 211, 0, 0.35)","rgba(250, 215, 0, 0.46)","rgba(254, 223, 0, 0.56)","rgba(255, 227, 0, 0.67)","rgba(255, 231, 49, 0.78)","rgba(255, 235, 74, 0.89)","#ffef5c","#fff594","#fffad3","#ffffff"],light:["#ffffff","#fffeff","#fffcff","#fffbf1","#fffada","#fff9c2","#fff7aa","#fff592","#fff279","#ffef5c","#ab9800","#584a00","#050400"],lightA:["rgba(255, 255, 255, 0.01)","rgba(255, 155, 255, 0.01)","rgba(255, 105, 255, 0.02)","rgba(255, 188, 22, 0.06)","rgba(255, 222, 8, 0.15)","rgba(255, 230, 1, 0.24)","rgba(255, 231, 5, 0.34)","rgba(255, 232, 2, 0.43)","rgba(255, 230, 2, 0.53)","rgba(255, 230, 0, 0.64)","#ab9800","#584a00","#050400"]}},lV=function(){var A=UD(GD().mark((function A(e){var t;return GD().wrap((function(A){for(;;)switch(A.prev=A.next){case 0:return A.prev=0,A.next=3,navigator.clipboard.writeText(e);case 3:A.next=14;break;case 5:A.prev=5,A.t0=A.catch(0),(t=document.createElement("textarea")).value=e,document.body.append(t),t.focus(),t.select(),document.execCommand("copy"),t.remove();case 14:case"end":return A.stop()}}),A,null,[[0,5]])})));return function(e){return A.apply(this,arguments)}}(),gV=["content","placement","size","icon","glass","onClick"],cV=J.memo((function(A){var e=A.content,t=A.placement,n=void 0===t?"right":t,o=A.size,r=void 0===o?"site":o,i=A.icon,a=A.glass,s=void 0===a||a,l=A.onClick,g=Mc(A,gV),c=function(){var A=WQ(J.useState(!1),2),e=A[0],t=A[1];J.useEffect((function(){if(e){var A=setTimeout((function(){t(!1)}),2e3);return function(){clearTimeout(A)}}}),[e]);var n=J.useCallback((function(){return t(!0)}),[]);return J.useMemo((function(){return{copied:e,setCopied:n}}),[e])}(),u=c.copied,B=c.setCopied,Q=i||Tc;return AA.jsx(mY,kc(kc({glass:s},g),{},{active:u,icon:u?Pc:Q,onClick:function(){var A=UD(GD().mark((function A(t){return GD().wrap((function(A){for(;;)switch(A.prev=A.next){case 0:return A.next=2,lV(e);case 2:B(),null==l||l(t);case 4:case"end":return A.stop()}}),A)})));return function(e){return A.apply(this,arguments)}}(),placement:n,size:r,title:"Copy"}))})),uV=["icon","children","size"],BV=oY((function(A){var e=A.cx,t=A.css,n=A.token;return{small:t(VX||(VX=Bu(["\n padding-block: 2px;\n padding-inline: 6px;\n line-height: 1;\n "]))),tag:e(t(ZX||(ZX=Bu(["\n user-select: none;\n color: "," !important;\n background: ",";\n border: ","px;\n\n &:hover {\n color: ",";\n background: ",";\n }\n "])),n.colorTextSecondary,n.colorFillSecondary,n.borderRadius,n.colorText,n.colorFill))}})),QV=J.memo((function(A){var e=A.icon,t=A.children,n=A.size,o=void 0===n?"default":n,r=Mc(A,uV),i=BV(),a=i.styles,s=i.cx;return AA.jsx(dK,kc(kc({bordered:!1,className:s(a.tag,"small"===o&&a.small)},r),{},{children:AA.jsxs(AQ,{align:"center",gap:4,horizontal:!0,children:[e,t]})}))})),EV=["allowFullscreen","children","title","className","wrapClassName","width","onCancel","open","destroyOnClose","paddings","maxHeight","footer","styles"],CV=["body"],dV=oY((function(A,e){var t=A.cx,n=A.css,o=A.token,r=A.prefixCls,i=e.maxHeight;return{content:t(i&&n(AV||(AV=Bu(["\n .","-modal-body {\n overflow: auto;\n max-height: ",";\n }\n "])),r,i),n(eV||(eV=Bu(["\n .","-modal-footer {\n margin: 0;\n padding: 16px;\n }\n .","-modal-header {\n display: flex;\n gap: 4px;\n align-items: center;\n justify-content: center;\n\n height: 56px;\n margin-block-end: 0;\n padding: 16px;\n }\n .","-modal-content {\n overflow: hidden;\n padding: 0;\n border: 1px solid ",";\n border-radius: ","px;\n }\n "])),r,r,r,o.colorSplit,o.borderRadiusLG)),drawerContent:n(tV||(tV=Bu(["\n .","-drawer-close {\n padding: 0;\n }\n .","-drawer-wrapper-body {\n background: linear-gradient(to bottom, ",", ",");\n }\n .","-drawer-header {\n padding: 8px;\n }\n\n .","-drawer-footer {\n display: flex;\n align-items: center;\n justify-content: flex-end;\n\n padding: 16px;\n\n border: none;\n }\n "])),r,r,o.colorBgContainer,o.colorBgLayout,r,r),wrap:n(nV||(nV=Bu(["\n overflow: hidden auto;\n backdrop-filter: blur(2px);\n "])))}})),IV=J.memo((function(A){var e,t,n=A.allowFullscreen,o=A.children,r=A.title,i=void 0===r?" ":r,a=A.className,s=A.wrapClassName,l=A.width,g=void 0===l?700:l,c=A.onCancel,u=A.open,B=A.destroyOnClose,Q=A.paddings,E=A.maxHeight,C=void 0===E?"75dvh":E,d=A.footer,I=A.styles,p=void 0===I?{}:I,f=Mc(A,EV),h=WQ(J.useState(!1),2),w=h[0],D=h[1],m=SK().mobile,y=dV({maxHeight:C?"calc(".concat(YT(C)?"".concat(C,"px"):C," - ").concat(56+(d?68:0),"px)"):void 0}),b=y.styles,v=y.cx,k=y.theme,M=p.body,x=Mc(p,CV);return m?AA.jsx(qG,kc(kc({className:v(b.drawerContent,a),closeIcon:AA.jsx(mY,{icon:gu}),destroyOnClose:B,extra:n&&AA.jsx(mY,{icon:w?Au:Vc,onClick:function(){return D(!w)}}),footer:d,height:w?"calc(100% - env(safe-area-inset-top))":C||"75vh",maskClassName:v(b.wrap,s),onClose:c,open:u,placement:"bottom",styles:kc({body:kc({paddingBlock:"16px ".concat(d?0:"16px"),paddingInline:null!==(e=null==Q?void 0:Q.desktop)&&void 0!==e?e:16},M)},x),title:i},f),{},{children:o})):AA.jsx(tw,{theme:{token:{colorBgElevated:ZJ(.005,k.colorBgContainer)}},children:AA.jsx(VO,kc(kc({className:v(b.content,a),closable:!0,closeIcon:AA.jsx(EY,{icon:gu,size:{fontSize:20}}),destroyOnClose:B,footer:d,maskClosable:!0,onCancel:c,open:u,styles:kc({body:kc({paddingBlock:"0 ".concat(null===d?"16px":0),paddingInline:null!==(t=null==Q?void 0:Q.desktop)&&void 0!==t?t:16},M)},x),title:i,width:g,wrapClassName:v(b.wrap,s)},f),{},{children:o}))})})),pV=oY((function(A){var e=A.css,t=A.token;return{body:e(oV||(oV=Bu(["\n overflow: hidden auto;\n padding: 16px;\n "]))),container:e(rV||(rV=Bu(["\n position: relative;\n overflow: hidden;\n "]))),footer:e(iV||(iV=Bu(["\n padding-block: 8px;\n padding-inline: 16px;\n border-block-start: 1px solid ",";\n "])),t.colorBorderSecondary),header:e(aV||(aV=Bu(["\n padding-block: 8px;\n padding-inline: 16px;\n font-weight: 500;\n border-block-end: 1px solid ",";\n "])),t.colorBorderSecondary)}})),fV=["className"],hV=J.memo((function(A){var e=A.className,t=Mc(A,fV),n=pV(),o=n.cx,r=n.styles;return AA.jsx(AQ,kc({className:o(r.body,e),flex:1},t))})),wV=["className"],DV=J.memo((function(A){var e=A.className,t=Mc(A,wV),n=pV(),o=n.cx,r=n.styles;return AA.jsx(AQ,kc({className:o(r.container,e)},t))})),mV=["className"],yV=J.memo((function(A){var e=A.className,t=Mc(A,mV),n=pV(),o=n.cx,r=n.styles;return AA.jsx(AQ,kc({align:"center",className:o(r.footer,e),flex:"none",gap:8,horizontal:!0,justify:"flex-start"},t))})),bV=["pin","setPin","className","setExpand","title","position"],vV=J.memo((function(A){var e=A.pin,t=A.setPin,n=A.className,o=A.setExpand,r=A.title,i=A.position,a=void 0===i?"left":i,s=Mc(A,bV),l=pV(),g=l.cx,c=l.styles,u=WQ(KK(!1,{onChange:t,value:e}),2),B=u[0],Q=u[1],E=AA.jsx(mY,{icon:tu,onClick:function(){return null==o?void 0:o(!1)},size:{blockSize:24,fontSize:14}}),C=AA.jsx(mY,{active:e,icon:e?iu:ru,onClick:function(){return Q(!B)},size:{blockSize:24,fontSize:14}});return AA.jsxs(AQ,kc(kc({align:"center",className:g(c.header,n),flex:"none",gap:8,horizontal:!0,justify:"space-between"},s),{},{children:["left"===a?E:C,r,"left"===a?C:E]}))})),kV=function A(e,t){if(e===t)return!0;if(e&&t&&"object"==typeof e&&"object"==typeof t){if(e.constructor!==t.constructor)return!1;var n,o,r;if(Array.isArray(e)){if((n=e.length)!=t.length)return!1;for(o=n;0!=o--;)if(!A(e[o],t[o]))return!1;return!0}if(e.constructor===RegExp)return e.source===t.source&&e.flags===t.flags;if(e.valueOf!==Object.prototype.valueOf)return e.valueOf()===t.valueOf();if(e.toString!==Object.prototype.toString)return e.toString()===t.toString();if((n=(r=Object.keys(e)).length)!==Object.keys(t).length)return!1;for(o=n;0!=o--;)if(!Object.prototype.hasOwnProperty.call(t,r[o]))return!1;for(o=n;0!=o--;){var i=r[o];if(!A(e[i],t[i]))return!1}return!0}return e!=e&&t!=t};const MV=o(kV);function xV(A,e){var t="undefined"!=typeof Symbol&&A[Symbol.iterator]||A["@@iterator"];if(!t){if(Array.isArray(A)||(t=$Q(A))||e){t&&(A=t);var n=0,o=function(){};return{s:o,n:function(){return n>=A.length?{done:!0}:{done:!1,value:A[n++]}},e:function(A){throw A},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var r,i=!0,a=!1;return{s:function(){t=t.call(A)},n:function(){var A=t.next();return i=A.done,A},e:function(A){a=!0,r=A},f:function(){try{i||null==t.return||t.return()}finally{if(a)throw r}}}}var SV,FV,NV,RV,LV,PV,HV,GV,OV,UV,KV,YV,TV,JV,jV,qV,$V,zV,WV,_V,XV,VV,ZV=J.memo((function(A){var e=A.url,t=J.useRef(!1);return J.useEffect((function(){if(!t.current){t.current=!0;var A=function(A){var e=document.createElement("link");return e.rel="stylesheet",e.href=A,e}(e);document.head.append(A)}}),[]),null})),AZ=function(A){var e=A.prefixCls,t=A.icon,n=A.title,o=A.items,r=void 0===o?[]:o,i=A.style,a=A.className;return j.createElement("div",{className:ud("".concat(e,"-column"),a),style:i},(n||t)&&j.createElement("h2",null,t&&j.createElement("span",{className:"".concat(e,"-column-icon")},t),n),r.map((function(A,t){var n=A.LinkComponent||"a";return j.createElement("div",{className:ud("".concat(e,"-item"),A.className),style:A.style,key:t},j.createElement(n,{href:A.url,to:"string"!=typeof n?A.url:void 0,target:A.openExternal?"_blank":void 0,rel:A.openExternal?"noopener noreferrer":void 0},A.icon&&j.createElement("span",{className:"".concat(e,"-item-icon")},A.icon),A.title),A.description&&j.createElement(j.Fragment,null,j.createElement("span",{className:"".concat(e,"-item-separator")},"-"),j.createElement("span",{className:"".concat(e,"-item-description")},A.description)))})))},eZ=["prefixCls","className","style","bottom","columns","maxColumnsPerRow","backgroundColor","columnLayout","theme"],tZ=function(A){var e=A.prefixCls,t=void 0===e?"rc-footer":e,n=A.className,o=A.style,r=A.bottom,i=A.columns,a=A.maxColumnsPerRow,s=A.backgroundColor,l=A.columnLayout,g=A.theme,c=void 0===g?"dark":g,u=Mc(A,eZ),B=ud("".concat(t),n,bc({},"".concat(t,"-").concat(c),!!c)),Q="number"==typeof a&&a>0;return j.createElement("footer",kc(kc({},u),{},{className:B,style:kc(kc({},o),{},{backgroundColor:s})}),j.createElement("section",{className:"".concat(t,"-container")},i&&i.length>0&&j.createElement("section",{className:"".concat(t,"-columns"),style:{justifyContent:l,flexWrap:Q?"wrap":void 0}},i.map((function(A,e){var n=A.title,o=A.icon,r=A.style,i=A.className,s=A.items,l=void 0===s?[]:s,g=kc({},r);return Q&&(g.flex="0 0 ".concat(100/(a+1)+.1,"%")),j.createElement(AZ,{key:e,prefixCls:t,title:n,icon:o,items:l,style:g,className:i})})))),r&&j.createElement("section",{className:"".concat(t,"-bottom")},j.createElement("div",{className:"".concat(t,"-bottom-container")},r)))},nZ=oY((function(A,e){var t=A.css,n=A.responsive,o=A.token,r=e.isEmpty,i=e.contentMaxWidth,a="rc-footer";return{container:t(SV||(SV=Bu(["\n grid-area: footer;\n align-self: stretch;\n\n color: ",";\n text-align: center;\n\n border-block-start: 1px solid ",";\n\n "," {\n flex-direction: column;\n border: none;\n }\n "])),o.colorTextDescription,o.colorSplit,n.mobile),footer:t(FV||(FV=Bu(["\n font-size: 14px;\n line-height: 1.5;\n color: ",";\n background-color: ",";\n\n &."," {\n a {\n color: ",";\n text-decoration: none;\n transition: all 0.3s;\n\n &:hover {\n color: ",";\n }\n }\n }\n\n ."," {\n &-container {\n width: 100%;\n max-width: ","px;\n margin: auto;\n padding: ",";\n }\n\n &-columns {\n display: flex;\n justify-content: space-around;\n }\n\n &-column {\n text-align: start;\n\n h2 {\n position: relative;\n\n margin-block: 0;\n margin-inline: auto;\n\n font-size: 16px;\n font-weight: 500;\n color: ",";\n }\n\n &-icon {\n position: relative;\n inset-block-start: -1px;\n\n display: inline-block;\n\n width: 22px;\n margin-inline-end: 0.5em;\n\n text-align: center;\n vertical-align: middle;\n\n > span,\n > svg,\n img {\n display: block;\n width: 100%;\n }\n }\n }\n\n &-item {\n margin-block: 12px;\n margin-inline: 0;\n\n &-icon {\n position: relative;\n inset-block-start: -1px;\n\n display: inline-block;\n\n width: 16px;\n margin-inline-end: 0.4em;\n\n text-align: center;\n vertical-align: middle;\n\n > span,\n > svg,\n img {\n display: block;\n width: 100%;\n }\n }\n\n &-separator {\n margin-block: 0;\n margin-inline: 0.3em;\n }\n }\n\n &-bottom {\n color: ",";\n\n &-container {\n width: 100%;\n max-width: ","px;\n margin-block: 0;\n margin-inline: auto;\n padding-block: 16px;\n padding-inline: 0;\n\n line-height: 32px;\n text-align: center;\n }\n }\n\n &-light {\n color: rgba(0, 0, 0, 85%);\n background-color: transparent;\n\n h2,\n a {\n color: rgba(0, 0, 0, 85%);\n }\n }\n\n &-light &-bottom-container {\n border-block-start-color: #e8e8e8;\n }\n\n &-light &-item-separator,\n &-light &-item-description {\n color: rgba(0, 0, 0, 45%);\n }\n }\n\n "," {\n ."," {\n &-container {\n padding-block: 40px;\n padding-inline: 0;\n }\n\n &-columns {\n display: block;\n }\n\n &-column {\n display: block;\n margin-block-end: 40px;\n text-align: center;\n\n &:last-child {\n margin-block-end: 0;\n }\n }\n }\n }\n "])),o.colorTextSecondary,o.colorBgLayout,a,o.colorTextTertiary,o.colorLinkHover,a,i,r?"0":"60px 0 20px",o.colorText,o.colorTextDescription,i,n.mobile,a)}})),oZ=J.memo((function(A){var e=A.columns,t=A.bottom,n=A.theme,o=A.contentMaxWidth,r=void 0===o?960:o,i=!e||0===(null==e?void 0:e.length),a=nZ({contentMaxWidth:r,isEmpty:i}).styles;return AA.jsx("section",{className:a.container,children:AA.jsx(tZ,{bottom:t,className:a.footer,columns:e,theme:n})})})),rZ=["className","children"],iZ=J.memo((function(A){var e=A.className,t=A.children,n=Mc(A,rZ);return AA.jsx(AQ,kc(kc({className:e,gap:8,justify:"flex-end"},n),{},{horizontal:!0,children:t}))})),aZ=["className","icon","title","children","extra","itemsType","variant","defaultActive"],sZ=oY((function(A){var e=A.css,t=A.cx,n=A.token,o=A.isDarkMode,r=A.responsive,i=A.prefixCls,a=e(NV||(NV=Bu(["\n background: transparent;\n border: none;\n border-radius: 0;\n\n .","-collapse-header {\n padding-block: 0 20px !important;\n padding-inline: 2px !important;\n background: transparent !important;\n border-radius: 0 !important;\n }\n\n .","-collapse-content {\n background: transparent;\n border-color: ",";\n }\n\n .","-collapse-content-box {\n padding-inline: 2px !important;\n background: transparent;\n border-radius: 0;\n }\n "])),i,i,n.colorFillSecondary,i),s=e(RV||(RV=Bu(["\n background: ",";\n border: none;\n border-radius: ","px;\n\n .","-collapse-content {\n border: none !important;\n }\n "])),n.colorFillQuaternary,n.borderRadiusLG,i),l=e(LV||(LV=Bu(["\n background: transparent;\n border: 1px solid ",";\n .","-collapse-header {\n background: transparent !important;\n }\n\n .","-collapse-content-box {\n background: transparent;\n }\n "])),n.colorBorderSecondary,i,i);return{blockStyle:s,defaultStyle:e(PV||(PV=Bu(["\n background: ",";\n border: 1px solid ",";\n border-radius: ","px;\n "])),n.colorFillQuaternary,n.colorBorderSecondary,n.borderRadiusLG),flatGroup:e(HV||(HV=Bu(["\n overflow: hidden;\n padding-inline: 16px;\n "]))),ghostStyle:l,group:t(o&&e(GV||(GV=Bu(["\n .","-collapse-content {\n background: transparent;\n border-color: ",";\n }\n\n .","-collapse-header {\n background: ",";\n }\n "])),i,n.colorBorderSecondary,i,n.colorFillTertiary),e(OV||(OV=Bu(["\n overflow: hidden;\n flex: none;\n\n .","-collapse-item {\n border: none;\n }\n\n .","-collapse-header {\n align-items: center !important;\n border-radius: 0 !important;\n }\n\n .","-collapse-content-box {\n padding-block: 0 !important;\n }\n\n .","-form-item-label {\n display: flex;\n flex-direction: column;\n justify-content: center;\n }\n "])),i,i,i,i)),icon:e(UV||(UV=Bu(["\n transition: all 100ms ",";\n "])),n.motionEaseOut),mobileFlatGroup:e(KV||(KV=Bu(["\n border-radius: ","px;\n "])),n.borderRadiusLG),mobileGroupBody:e(YV||(YV=Bu(["\n padding-block: 0;\n padding-inline: 16px;\n background: ",";\n "])),n.colorBgContainer),mobileGroupHeader:e(TV||(TV=Bu(["\n padding: 16px;\n background: ",";\n "])),n.colorBgLayout),pureStyle:a,pureTitle:e(JV||(JV=Bu(["\n font-size: 18px;\n font-weight: 700;\n line-height: 24px;\n "]))),title:e(jV||(jV=Bu(["\n align-items: center;\n font-size: 16px;\n font-weight: 600;\n\n .anticon {\n color: ",";\n }\n\n "," {\n font-size: 14px;\n font-weight: 400;\n opacity: 0.5;\n }\n "])),n.colorPrimary,r.mobile)}})),lZ=J.memo((function(A){var e=A.className,t=A.icon,n=A.title,o=A.children,r=A.extra,i=A.itemsType,a=A.variant,s=void 0===a?"default":a,l=A.defaultActive,g=void 0===l||l,c=Mc(A,aZ),u=SK().mobile,B=sZ(s),Q=B.cx,E=B.styles,C=Q("default"===s&&E.defaultStyle,"block"===s&&E.blockStyle,"ghost"===s&&E.ghostStyle,"pure"===s&&E.pureStyle),d=AA.jsxs(AQ,{className:Q(E.title,"pure"===s&&E.pureTitle),gap:8,horizontal:!0,children:[t&&AA.jsx(EY,{icon:t}),n]});return"flat"===i?u?AA.jsx(AQ,{className:Q(E.mobileFlatGroup,E.mobileGroupBody,e),children:o}):AA.jsx(AQ,{className:Q(E.flatGroup,C,e),children:o}):u?AA.jsxs(AQ,{className:e,children:[AA.jsxs(AQ,{className:E.mobileGroupHeader,horizontal:!0,justify:"space-between",children:[d,r]}),AA.jsx("div",{className:E.mobileGroupBody,children:o})]}):AA.jsx(aH,kc({className:Q(E.group,C,e),defaultActiveKey:g?[1]:void 0,expandIcon:function(A){var e=A.isActive;return"pure"===s?null:AA.jsx(EY,{className:E.icon,icon:Hc,size:{fontSize:16},style:e?{}:{rotate:"-90deg"}})},items:[{children:o,extra:r,key:1,label:d}]},c),1)})),gZ=["style"],cZ=J.memo((function(A){var e=A.style,t=Mc(A,gZ);return AA.jsx(gH,kc({style:kc({margin:0,opacity:.66},e)},t))})),uZ=oY((function(A){var e=A.css,t=A.token,n=A.prefixCls;return{formTitle:e(qV||(qV=Bu(["\n position: relative;\n text-align: start;\n\n > div {\n font-weight: 500;\n line-height: 1;\n }\n\n > small {\n display: block;\n\n line-height: 1.2;\n color: ",";\n word-wrap: break-word;\n white-space: pre-wrap;\n }\n\n .","-tag {\n font-family: ",";\n }\n "])),t.colorTextDescription,n,t.fontFamilyCode)}})),BZ=J.memo((function(A){var e=A.className,t=A.tag,n=A.title,o=A.desc,r=A.avatar,i=uZ(),a=i.cx,s=i.styles,l=AA.jsxs(AQ,{className:a(s.formTitle,e),gap:6,children:[AA.jsxs(AQ,{align:"center",direction:"horizontal",gap:8,children:[n,t&&AA.jsx(QV,{children:t})]}),o&&AA.jsx("small",{children:o})]});return r?AA.jsxs(AQ,{align:"center",gap:8,horizontal:!0,children:[r,l]}):l})),QZ=["desc","tag","minWidth","avatar","className","label","children","divider"],EZ=OO.Item,CZ=oY((function(A,e){var t=A.css,n=A.responsive,o=A.prefixCls;return{item:t($V||($V=Bu(["\n &.","-form-item {\n padding-block: 16px;\n padding-inline: 0;\n\n .","-row {\n gap: 12px;\n justify-content: space-between;\n\n > div {\n flex: unset;\n flex-grow: unset;\n }\n }\n\n .","-form-item-required::before {\n align-self: flex-start;\n }\n\n "," {\n .","-row {\n flex-direction: column;\n align-items: stretch;\n\n > div {\n width: 100%;\n }\n }\n }\n\n "," {\n padding-block: 16px;\n padding-inline: 0;\n\n .","-row {\n flex-wrap: wrap;\n gap: 4px;\n }\n }\n }\n "])),o,o,o,n.md,o,n.mobile,o),itemMinWidth:t(zV||(zV=Bu(["\n .","-form-item-control {\n width: ",";\n }\n "," {\n .","-row {\n flex-direction: column;\n gap: 4px;\n }\n\n .","-form-item-control {\n flex: 1;\n width: 100%;\n }\n }\n "])),o,YT(e)?"".concat(e,"px"):e,n.mobile,o,o),itemNoDivider:t(WV||(WV=Bu(["\n &:not(:first-child) {\n padding-block-start: 0;\n }\n "])))}})),dZ=J.memo((function(A){var e=A.desc,t=A.tag,n=A.minWidth,o=A.avatar,r=A.className,i=A.label,a=A.children,s=A.divider,l=Mc(A,QZ),g=CZ(n),c=g.cx,u=g.styles;return AA.jsxs(AA.Fragment,{children:[s&&AA.jsx(cZ,{}),AA.jsx(EZ,kc(kc({className:c(u.item,Boolean(n)&&u.itemMinWidth,!s&&u.itemNoDivider,r),label:AA.jsx(BZ,{avatar:o,desc:e,tag:t,title:i})},l),{},{children:a}))]})})),IZ=oY((function(A){var e=A.css,t=A.token,n=A.prefixCls,o=A.responsive;return{form:e(_V||(_V=Bu(["\n position: relative;\n\n display: flex;\n flex-direction: column;\n gap: 16px;\n\n width: 100%;\n\n "," {\n gap: 0;\n }\n\n .","-form-item {\n margin: 0 !important;\n }\n\n .","-form-item .","-form-item-label > label {\n height: unset;\n }\n\n .","-row {\n position: relative;\n flex-wrap: nowrap;\n }\n\n .","-form-item-label {\n position: relative;\n flex: 1;\n max-width: 100%;\n }\n\n .","-form-item-row {\n align-items: center;\n "," {\n align-items: stretch;\n }\n }\n\n .","-form-item-control {\n position: relative;\n flex: 0;\n min-width: unset !important;\n }\n\n .","-collapse-item {\n overflow: hidden !important;\n border-radius: ","px !important;\n }\n "])),o.mobile,n,n,n,n,n,n,o.mobile,n,n,t.borderRadius),pure:e(XV||(XV=Bu(["\n gap: 64px;\n "])))}})),pZ=["className","itemMinWidth","footer","form","items","children","itemsType","variant"],fZ=J.forwardRef((function(A,e){var t=A.className,n=A.itemMinWidth,o=A.footer,r=A.form,i=A.items,a=void 0===i?[]:i,s=A.children,l=A.itemsType,g=void 0===l?"group":l,c=A.variant,u=void 0===c?"default":c,B=Mc(A,pZ),Q=IZ(),E=Q.cx,C=Q.styles,d=function(A,e){return AA.jsx(dZ,kc({divider:0!==e,minWidth:n},A),e)};return AA.jsxs(OO,kc(kc({className:E(C.form,"pure"===u&&C.pure,t),colon:!1,form:r,layout:"horizontal",ref:e},B),{},{children:[(null==a?void 0:a.length)>0?"group"===g?null==a?void 0:a.map((function(A,e){return t=A,n=e,AA.jsx(lZ,{defaultActive:null==t?void 0:t.defaultActive,extra:null==t?void 0:t.extra,icon:null==t?void 0:t.icon,title:t.title,variant:u,children:Array.isArray(t.children)?t.children.filter((function(A){return!A.hidden})).map((function(A,e){return d(A,e)})):t.children},n);var t,n})):AA.jsx(lZ,{itemsType:"flat",variant:u,children:null==a?void 0:a.filter((function(A){return!A.hidden})).map((function(A,e){return d(A,e)}))}):null,s,o&&AA.jsx(iZ,{children:o})]}))}));function hZ({id:A,host:e,repo:t,repoId:n,category:o,categoryId:r,mapping:i,term:a,strict:s,reactionsEnabled:l,emitMetadata:g,inputPosition:c,theme:u,lang:B,loading:Q}){const[E,C]=J.useState(!1);return J.useEffect((()=>{E||(function(A,e,t){let n=Promise.resolve();if(e&&e.length>0){document.getElementsByTagName("link");const A=document.querySelector("meta[property=csp-nonce]"),t=(null==A?void 0:A.nonce)||(null==A?void 0:A.getAttribute("nonce"));n=Promise.all(e.map((A=>{if((A=function(A){return"/dev/"+A}(A))in e$)return;e$[A]=!0;const e=A.endsWith(".css"),n=e?'[rel="stylesheet"]':"";if(document.querySelector(`link[href="${A}"]${n}`))return;const o=document.createElement("link");return o.rel=e?"stylesheet":"modulepreload",e||(o.as="script",o.crossOrigin=""),o.href=A,t&&o.setAttribute("nonce",t),document.head.appendChild(o),e?new Promise(((e,t)=>{o.addEventListener("load",e),o.addEventListener("error",(()=>t(new Error(`Unable to preload CSS for ${A}`))))})):void 0})))}n.then((()=>A())).catch((A=>{const e=new Event("vite:preloadError",{cancelable:!0});if(e.payload=A,window.dispatchEvent(e),!e.defaultPrevented)throw A}))}((()=>import("./giscus-BNK3dBIH.js")),[]),C(!0))}),[]),E?AA.jsx("giscus-widget",{id:A,host:e,repo:t,repoid:n,category:o,categoryid:r,mapping:i,term:a,strict:s,reactionsenabled:l,emitmetadata:g,inputposition:c,theme:u,lang:B,loading:Q}):null}fZ.Item=dZ,fZ.Group=lZ,fZ.useForm=OO.useForm;var wZ,DZ,mZ,yZ,bZ,vZ,kZ,MZ,xZ,SZ,FZ,NZ,RZ,LZ,PZ,HZ,GZ,OZ,UZ,KZ,YZ,TZ,JZ,jZ,qZ,$Z,zZ,WZ,_Z,XZ,VZ=function(A){return["zh_CN","zh_TW"].includes(A)?A.replace("_","-"):"zh_HK"===A?"zh-TW":A.split("_")[0]},ZZ=["style","className","reactionsEnabled","mapping","lang","inputPosition","id","loading","emitMetadata"],A0=J.memo((function(A){var e=A.style,t=A.className,n=A.reactionsEnabled,o=void 0===n?"1":n,r=A.mapping,i=void 0===r?"title":r,a=A.lang,s=void 0===a?"en_US":a,l=A.inputPosition,g=void 0===l?"top":l,c=A.id,u=void 0===c?"giscus":c,B=A.loading,Q=void 0===B?"lazy":B,E=A.emitMetadata,C=void 0===E?"0":E,d=Mc(A,ZZ),I=cY(),p=vK().isDarkMode,f=J.useMemo((function(){return btoa(function(A,e){var t=e?"dark":"light",n=sV.gray[t][11],o=sV.gray[t][10],r=sV.gray[t][7],i=e?sV.red[t][9]:sV.volcano[t][9],a=e?sV.gold[t][9]:sV.orange[t][9],s=e?sV.lime[t][9]:sV.green[t][9],l=e?sV.blue[t][9]:sV.geekblue[t][9],g=e?"https://github.com/images/modules/pulls/progressive-disclosure-line-dark.svg":"https://github.com/images/modules/pulls/progressive-disclosure-line.svg",c=e?"https://github.githubassets.com/images/mona-loading-dark.gif":"https://github.githubassets.com/images/mona-loading-default.gif";return iY(VV||(VV=Bu(["\n main {\n --color-prettylights-syntax-comment: ",";\n --color-prettylights-syntax-constant: ",";\n --color-prettylights-syntax-entity: ",";\n --color-prettylights-syntax-storage-modifier-import: ",";\n --color-prettylights-syntax-entity-tag: ",";\n --color-prettylights-syntax-keyword: ",";\n --color-prettylights-syntax-string: ",";\n --color-prettylights-syntax-variable: ",";\n --color-prettylights-syntax-brackethighlighter-unmatched: ",";\n --color-prettylights-syntax-invalid-illegal-text: ",";\n --color-prettylights-syntax-invalid-illegal-bg: ",";\n --color-prettylights-syntax-carriage-return-text: ",";\n --color-prettylights-syntax-carriage-return-bg: ",";\n --color-prettylights-syntax-string-regexp: ",";\n --color-prettylights-syntax-markup-list: ",";\n --color-prettylights-syntax-markup-heading: ",";\n --color-prettylights-syntax-markup-italic: ",";\n --color-prettylights-syntax-markup-bold: ",";\n --color-prettylights-syntax-markup-deleted-text: ",";\n --color-prettylights-syntax-markup-deleted-bg: ",";\n --color-prettylights-syntax-markup-inserted-text: ",";\n --color-prettylights-syntax-markup-inserted-bg: ",";\n --color-prettylights-syntax-markup-changed-text: ",";\n --color-prettylights-syntax-markup-changed-bg: ",";\n --color-prettylights-syntax-markup-ignored-text: ",";\n --color-prettylights-syntax-markup-ignored-bg: ",";\n --color-prettylights-syntax-meta-diff-range: ",";\n --color-prettylights-syntax-brackethighlighter-angle: ",";\n --color-prettylights-syntax-sublimelinter-gutter-mark: ",";\n --color-prettylights-syntax-constant-other-reference-link: ",";\n --color-btn-text: ",";\n --color-btn-bg: ",";\n --color-btn-border: ",";\n --color-btn-shadow: 0 0 transparent;\n --color-btn-inset-shadow: 0 0 transparent;\n --color-btn-hover-bg: ",";\n --color-btn-hover-border: ",";\n --color-btn-active-bg: ",";\n --color-btn-active-border: ",";\n --color-btn-selected-bg: ",";\n --color-btn-primary-text: ",";\n --color-btn-primary-bg: ",";\n --color-btn-primary-border: ",";\n --color-btn-primary-shadow: 0 0 transparent;\n --color-btn-primary-inset-shadow: 0 0 transparent;\n --color-btn-primary-hover-bg: ",";\n --color-btn-primary-hover-border: ",";\n --color-btn-primary-selected-bg: ",";\n --color-btn-primary-selected-shadow: 0 0 transparent;\n --color-btn-primary-disabled-text: ",";\n --color-btn-primary-disabled-bg: ",";\n --color-btn-primary-disabled-border: ",";\n --color-action-list-item-default-hover-bg: ",";\n --color-segmented-control-bg: ",";\n --color-segmented-control-button-bg: transparent;\n --color-segmented-control-button-selected-border: ",";\n --color-fg-default: ",";\n --color-fg-muted: ",";\n --color-fg-subtle: ",";\n --color-canvas-default: transparent;\n --color-canvas-overlay: ",";\n --color-canvas-inset: transparent;\n --color-canvas-subtle: ",";\n --color-border-default: ",";\n --color-border-muted: ",";\n --color-neutral-muted: ",";\n --color-neutral-subtle: ",";\n --color-accent-fg: ",";\n --color-accent-emphasis: ",";\n --color-accent-muted: ",";\n --color-accent-subtle: ",";\n --color-success-fg: ",";\n --color-attention-fg: ",";\n --color-attention-muted: ",";\n --color-attention-subtle: ",";\n --color-danger-fg: ",";\n --color-danger-muted: ",";\n --color-danger-subtle: ",";\n --color-primer-shadow-inset: 0 0 transparent;\n --color-scale-gray-7: ",";\n --color-scale-blue-8: ",";\n --color-social-reaction-bg-hover: ",";\n --color-social-reaction-bg-reacted-hover: ",";\n\n .markdown pre {\n color: ",";\n }\n\n .pagination-loader-container {\n background-image: url(",");\n }\n\n .gsc-pagination-button {\n background-color: var(--color-btn-bg);\n }\n\n .gsc-reactions-popover {\n width: 170px;\n\n > .m-2 {\n display: flex;\n flex-wrap: wrap;\n gap: 8px;\n }\n }\n\n .gsc-emoji-button.has-reacted {\n border-color: ",";\n border-radius: ","px;\n }\n\n .gsc-loading-image {\n background-image: url(",");\n }\n }\n "])),r,s,a,i,l,l,s,i,i,o,YJ(i,.4),o,YJ(i,.6),s,a,l,o,o,o,YJ(i,.2),s,YJ(s,.2),a,YJ(i,.2),o,YJ(l,.2),a,o,r,l,A.colorText,A.colorFillTertiary,A.colorBorderSecondary,A.colorFillSecondary,A.colorBorder,A.colorFillSecondary,A.colorBorder,A.colorFillSecondary,oj(A.colorPrimary),A.colorPrimary,A.colorPrimaryBorder,A.colorPrimaryHover,A.colorPrimaryBorderHover,A.colorPrimaryActive,YJ(oj(A.colorPrimary),.5),YJ(A.colorPrimary,.5),YJ(A.colorPrimaryBorder,.5),A.colorFillQuaternary,A.colorFillTertiary,A.colorBorder,A.colorText,A.colorTextSecondary,A.colorTextQuaternary,A.colorBgElevated,A.colorFillQuaternary,A.colorBorder,A.colorBorderSecondary,A.colorFillQuaternary,A.colorFillTertiary,A.colorInfo,A.colorInfoBorderHover,A.colorInfoBorder,A.colorInfoBg,A.colorSuccess,A.colorWarning,A.colorWarningBorder,A.colorWarningBg,A.colorError,A.colorErrorBorder,A.colorErrorBg,A.colorBgContainer,A.colorInfoBg,A.colorFillSecondary,A.colorInfoBgHover,n,g,A.colorInfoBorderHover,A.borderRadius,c)}(I,p).styles)}),[p,I]);return AA.jsx("div",{className:t,style:e,children:AA.jsx(hZ,kc({emitMetadata:C,id:u,inputPosition:g,lang:VZ(s),loading:Q,mapping:i,reactionsEnabled:o,theme:"data:text/css;base64,".concat(f)},d))})})),e0=oY((function(A,e){var t,n=A.cx,o=A.css,r=A.token,i=A.isDarkMode,a=A.stylish;switch(e){case"large":t=r.borderRadiusLG;break;case"middle":default:t=r.borderRadius;break;case"small":t=r.borderRadiusSM}return{button:n(a.gradientAnimation,o(wZ||(wZ=Bu(["\n position: relative;\n z-index: 1;\n border: none;\n border-radius: ","px !important;\n\n &::before {\n content: '';\n\n position: absolute;\n z-index: -1;\n inset-block-start: 1px;\n inset-inline-start: 1px;\n\n width: calc(100% - 2px);\n height: calc(100% - 2px);\n\n background: ",";\n border-radius: ","px;\n }\n\n &:hover {\n background: "," !important;\n }\n "])),t,r.colorBgLayout,t-1,r.colorPrimary)),glow:o(DZ||(DZ=Bu(["\n ","\n position: absolute;\n z-index: -2;\n inset-block-start: 0;\n inset-inline-start: 0;\n\n width: 100%;\n height: 100%;\n\n opacity: ",";\n filter: blur(","em);\n border-radius: inherit;\n "])),a.gradientAnimation,i?.5:.3,i?1.5:1)}})),t0=["glow","children","className","size"],n0=J.memo((function(A){var e=A.glow,t=void 0===e||e,n=A.children,o=A.className,r=A.size,i=void 0===r?"large":r,a=Mc(A,t0),s=e0(i),l=s.styles,g=s.cx;return AA.jsxs(dy,kc(kc({className:g(l.button,o),size:i},a),{},{children:[t&&AA.jsx("div",{className:l.glow}),n]}))})),o0=oY((function(A){var e=A.css,t=A.responsive,n=A.token,o=A.cx;return{content:e(mZ||(mZ=Bu(["\n height: 64px;\n padding-block: 0;\n padding-inline: 24px;\n\n background-color: ",";\n border-block-end: 1px solid ",";\n\n "," {\n padding-block: 0;\n padding-inline: 12px;\n }\n "])),YJ(n.colorBgLayout,.4),n.colorSplit,t.mobile),header:o(e(yZ||(yZ=Bu(["\n grid-area: head;\n align-self: stretch;\n width: 100%;\n "])))),left:e(bZ||(bZ=Bu(["\n z-index: 10;\n "]))),right:e(vZ||(vZ=Bu(["\n z-index: 10;\n\n &-aside {\n display: flex;\n align-items: center;\n\n "," {\n justify-content: center;\n\n margin-block: 8px;\n margin-inline: 16px;\n padding-block-start: 24px;\n\n border-block-start: 1px solid ",";\n }\n }\n "])),t.mobile,n.colorBorder)}})),r0=["actionsClassName","navClassName","logoClassName","nav","logo","actions","actionsStyle","logoStyle","navStyle","className"],i0=J.memo((function(A){var e=A.actionsClassName,t=A.navClassName,n=A.logoClassName,o=A.nav,r=A.logo,i=A.actions,a=A.actionsStyle,s=A.logoStyle,l=A.navStyle,g=A.className,c=Mc(A,r0),u=SK().mobile,B=o0(),Q=B.cx,E=B.styles;return AA.jsx("section",kc(kc({className:Q(E.header,g)},c),{},{children:AA.jsx(AQ,{align:"center",className:E.content,distribution:"space-between",horizontal:!0,width:"auto",children:u?AA.jsxs(AA.Fragment,{children:[AA.jsx(AQ,{className:e,style:kc({flex:0},l),children:o}),AA.jsx(AQ,{className:Q(E.left,n),horizontal:!0,style:kc({flex:1,overflow:"hidden"},s),children:r}),AA.jsx(AQ,{className:e,style:kc({flex:0},a),children:i})]}):AA.jsxs(AA.Fragment,{children:[AA.jsx(AQ,{className:Q(E.left,n),horizontal:!0,style:kc({flex:0},s),children:r}),AA.jsx(AQ,{className:t,style:kc({flex:1,marginLeft:48,overflow:"hidden"},l),children:o}),AA.jsxs(AQ,{className:Q(E.right,e),flex:1,horizontal:!0,justify:"space-between",style:a,children:[AA.jsx("div",{}),AA.jsx(AQ,{align:"center",gap:8,horizontal:!0,children:i})]})]})})}))})),a0=Nc("Discord",[["path",{d:"M20.317 4.3698a19.7913 19.7913 0 00-4.8851-1.5152.0741.0741 0 00-.0785.0371c-.211.3753-.4447.8648-.6083 1.2495-1.8447-.2762-3.68-.2762-5.4868 0-.1636-.3933-.4058-.8742-.6177-1.2495a.077.077 0 00-.0785-.037 19.7363 19.7363 0 00-4.8852 1.515.0699.0699 0 00-.0321.0277C.5334 9.0458-.319 13.5799.0992 18.0578a.0824.0824 0 00.0312.0561c2.0528 1.5076 4.0413 2.4228 5.9929 3.0294a.0777.0777 0 00.0842-.0276c.4616-.6304.8731-1.2952 1.226-1.9942a.076.076 0 00-.0416-.1057c-.6528-.2476-1.2743-.5495-1.8722-.8923a.077.077 0 01-.0076-.1277c.1258-.0943.2517-.1923.3718-.2914a.0743.0743 0 01.0776-.0105c3.9278 1.7933 8.18 1.7933 12.0614 0a.0739.0739 0 01.0785.0095c.1202.099.246.1981.3728.2924a.077.077 0 01-.0066.1276 12.2986 12.2986 0 01-1.873.8914.0766.0766 0 00-.0407.1067c.3604.698.7719 1.3628 1.225 1.9932a.076.076 0 00.0842.0286c1.961-.6067 3.9495-1.5219 6.0023-3.0294a.077.077 0 00.0313-.0552c.5004-5.177-.8382-9.6739-3.5485-13.6604a.061.061 0 00-.0312-.0286zM8.02 15.3312c-1.1825 0-2.1569-1.0857-2.1569-2.419 0-1.3332.9555-2.4189 2.157-2.4189 1.2108 0 2.1757 1.0952 2.1568 2.419 0 1.3332-.9555 2.4189-2.1569 2.4189zm7.9748 0c-1.1825 0-2.1569-1.0857-2.1569-2.419 0-1.3332.9554-2.4189 2.1569-2.4189 1.2108 0 2.1757 1.0952 2.1568 2.419 0 1.3332-.946 2.4189-2.1568 2.4189Z",key:"18tl5t"}]]),s0=function(A){return AA.jsx(a0,kc({style:{overflow:"visible"}},A))},l0=oY((function(A,e){var t=A.css,n=A.stylish,o=A.responsive,r=t(kZ||(kZ=Bu(["\n pointer-events: none;\n content: '';\n user-select: none;\n\n position: absolute;\n z-index: -1;\n inset-block: -1px ",";\n inset-inline: 0;\n "])),o.mobile?"-25%":"-50%");return{app:t(MZ||(MZ=Bu(["\n overflow: hidden auto;\n height: 100dvh;\n "]))),aside:t(xZ||(xZ=Bu(["\n position: sticky;\n z-index: 2;\n height: 100%;\n "]))),asideInner:t(SZ||(SZ=Bu(["\n overflow: hidden auto;\n width: 100%;\n height: calc(100dvh - ","px);\n "])),e),content:t(FZ||(FZ=Bu(["\n position: relative;\n flex: 1;\n max-width: 100%;\n "]))),footer:t(NZ||(NZ=Bu(["\n position: relative;\n max-width: 100%;\n "]))),glass:t(RZ||(RZ=Bu(["\n z-index: 0;\n\n &::before {\n ",";\n ",";\n mask-image: linear-gradient(to bottom, black ","px, transparent);\n }\n\n &::after {\n ",";\n }\n "])),n.blur,r,e,r),header:t(LZ||(LZ=Bu(["\n position: sticky;\n z-index: 999;\n inset-block-start: 0;\n max-width: 100%;\n "]))),main:t(PZ||(PZ=Bu(["\n position: relative;\n display: flex;\n align-items: stretch;\n max-width: 100vw;\n "]))),toc:t(HZ||(HZ=Bu([""])))}})),g0=["headerHeight","children","className","style"],c0=["children","className"],u0=["headerHeight","children","className","style"],B0=["headerHeight","children","className"],Q0=J.memo((function(A){var e=A.headerHeight,t=A.children,n=A.className,o=A.style,r=Mc(A,g0),i=l0(e),a=i.cx,s=i.styles;return AA.jsxs("header",kc(kc({className:a(s.header,n),style:kc({height:e},o)},r),{},{children:[AA.jsx("div",{className:s.glass}),t]}))})),E0=J.memo((function(A){var e=A.children,t=A.className,n=Mc(A,c0),o=l0(),r=o.cx,i=o.styles;return AA.jsx("main",kc(kc({className:r(i.main,t)},n),{},{children:e}))})),C0=J.memo((function(A){var e=A.headerHeight,t=A.children,n=A.className,o=A.style,r=Mc(A,u0),i=l0(e),a=i.cx,s=i.styles;return AA.jsx("aside",kc(kc({className:a(s.aside,n),style:kc({top:e},o)},r),{},{children:t}))})),d0=J.memo((function(A){var e=A.headerHeight,t=A.children,n=A.className,o=Mc(A,B0),r=l0(e),i=r.cx,a=r.styles;return AA.jsx("div",kc(kc({className:i(a.asideInner,n)},o),{},{children:t}))})),I0=J.memo((function(A){var e=Object.assign({},(sK(A),A));return AA.jsx("svg",kc(kc({fill:"none",shapeRendering:"geometricPrecision",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",viewBox:"0 0 24 24"},e),{},{children:AA.jsx("path",{d:"M16.88 3.549L7.12 20.451"})}))})),p0=J.memo((function(A){var e=Object.assign({},(sK(A),A));return AA.jsxs("svg",kc(kc({fill:"currentColor",fillRule:"evenodd",viewBox:"0 0 320 320"},e),{},{children:[AA.jsx("path",{d:"M25.401 140.14c3.71-5.453 8.81-9.628 15.313-12.838A23.89 23.89 0 0055 132.015a23.91 23.91 0 0016.053-6.159 48.924 48.924 0 0010.603-.294 56.54 56.54 0 006.809 6.555c-8.655 1.087-18.202 2.821-29.05 5.494-11.996 2.956-17.707 7.005-20.785 11.53-3.227 4.743-4.63 11.518-4.63 22.374 0 70.838 55.45 121.5 126 121.5 70.564 0 125.889-49.642 126-120.286-.751-13.724-2.613-20.518-5.764-24.763-3.023-4.073-8.262-7.153-19.898-10.42-9.615-2.7-20.317-4.252-31.506-5.103a48.977 48.977 0 006.306-6.763c2.995-1.106 6.948-.684 12.998.332l.321.054c2.498.421 5.641.95 8.543.95 5.214 0 10.234-.927 14.879-2.626 8.925 3.124 16.138 7.213 21.205 14.041 6.227 8.389 8.147 19.524 8.905 33.656l.011.214v.214c0 80.552-63.518 136.5-142 136.5-78.567 0-142-57.028-142-137.5 0-11.644 1.368-22.506 7.401-31.375z"}),AA.jsx("path",{d:"M195.5 145.016a50.53 50.53 0 0018.014-3.295C238.551 143.519 255 146.556 255 150c0 4.335-26.066 8.026-62.517 9.413-.201-5.525-.323-10.211-.316-14.505 1.102.071 2.214.108 3.333.108zM125 145.016a58.278 58.278 0 01-19.063-3.182C81.773 143.646 66 146.628 66 150c0 4.295 25.591 7.958 61.52 9.374.238-5.823.186-10.311-.246-14.402a59.24 59.24 0 01-2.274.044zM122.87 228c9.79-4.353 16.63-14.277 16.63-25.823 0-15.562-12.424-28.177-27.75-28.177S84 186.615 84 202.177c0 10.646 5.815 19.913 14.396 24.705 2.902-.349 5.839-.554 8.729-.554 5.259 0 10.673.678 15.745 1.672zM236 202.177c0 10.646-5.815 19.913-14.396 24.705-2.902-.349-5.839-.554-8.729-.554-5.259 0-10.673.678-15.745 1.672-9.79-4.353-16.63-14.277-16.63-25.823 0-15.562 12.424-28.177 27.75-28.177S236 186.615 236 202.177zM127 248.787S133.923 245 160 245c26.077 0 33 3.787 33 3.787S189.769 278 160 278s-33-29.213-33-29.213z"}),AA.jsx("path",{clipRule:"evenodd",d:"M173 19.016c-6.188 0-10.711-2.238-15.68-4.697-6.295-3.114-13.305-6.583-25.32-6.303-20.261 0-30.93 9.751-40.896 18.86-1.54 1.408-3.064 2.8-4.604 4.14-1.958 1.702-11.5 7-16 9-19.683 8.748-34.5 21.5-34.5 40.5 0 3.789.584 7.447 1.672 10.895A23.93 23.93 0 0155 84.016c13.255 0 24 10.745 24 24 0 3.552-.772 6.925-2.157 9.959a40.472 40.472 0 008.042-1.174c8.866 12.225 23.528 20.215 40.115 20.215 3.041 0 6.018-.269 8.906-.783 1.675 7.287 2.007 14.011 1.594 23.782h49c-.359-9.741-.486-17.161-.085-24.451a42.76 42.76 0 0011.085 1.452c14.294 0 26.9-7.006 34.364-17.668 6.059-3.498 13.291-2.284 19.597-1.225 2.746.461 5.317.893 7.539.893 18.778 0 34-14.551 34-32.5 0-8.333-3.281-15.934-8.675-21.686-4.31 5.012-10.697 8.186-17.825 8.186-12.979 0-23.5-10.522-23.5-23.5 0-12.98-30.137-31.5-45-31.5-5.31 0-10.313.325-14.617.604-3.249.21-6.099.396-8.383.396zM234.307 82.5c1.181 3.012-2.694 4.293-4.517 1.62l-.021-.03-.032-.047-.031-.043c-7.483-10.536-20.012-17.444-34.206-17.444a42.498 42.498 0 00-16.163 3.166c-6.41 2.63-14.55 1.24-19.499-3.61-8.882-8.704-21.21-14.096-34.838-14.096-17.152 0-32.245 8.542-41 21.478-1.966 2.365-5.65 1.323-4.535-1.543.06-.155.12-.305.182-.451C86.968 54.2 104.516 42.016 125 42.016c13.628 0 25.956 5.392 34.838 14.097 4.949 4.85 13.089 6.24 19.499 3.609a42.498 42.498 0 0116.163-3.166c17.73 0 32.863 10.778 38.807 25.944z"}),AA.jsx("path",{d:"M83 20.516a9.5 9.5 0 11-19 0 9.5 9.5 0 0119 0zM264.5 65.016c8.56 0 15.5-6.94 15.5-15.5 0-8.56-6.94-15.5-15.5-15.5-8.56 0-15.5 6.94-15.5 15.5 0 8.56 6.94 15.5 15.5 15.5zM55 124.016c8.837 0 16-7.164 16-16 0-8.837-7.163-16-16-16s-16 7.163-16 16c0 8.836 7.163 16 16 16z"})]}))})),f0=J.memo((function(A){var e=Object.assign({},(sK(A),A));return AA.jsx("svg",kc(kc({fill:"currentColor",fillRule:"evenodd",viewBox:"0 0 940 320",xmlns:"http://www.w3.org/2000/svg"},e),{},{children:AA.jsx("path",{d:"M15 240.035V87.172h39.24V205.75h66.192v34.285H15zM183.731 242c-11.759 0-22.196-2.621-31.313-7.862-9.116-5.241-16.317-12.447-21.601-21.619-5.153-9.317-7.729-19.945-7.729-31.883 0-11.937 2.576-22.492 7.729-31.664 5.164-8.963 12.159-15.98 20.982-21.05l.619-.351c9.117-5.241 19.554-7.861 31.313-7.861s22.196 2.62 31.313 7.861c9.248 5.096 16.449 12.229 21.601 21.401 5.153 9.172 7.729 19.727 7.729 31.664 0 11.938-2.576 22.566-7.729 31.883-5.152 9.172-12.353 16.378-21.601 21.619-9.117 5.241-19.554 7.862-31.313 7.862zm0-32.975c4.36 0 8.191-1.092 11.494-3.275 3.436-2.184 6.144-5.387 8.126-9.609 1.982-4.367 2.973-9.536 2.973-15.505 0-5.968-.991-10.991-2.973-15.067-1.906-4.06-4.483-7.177-7.733-9.352l-.393-.257c-3.303-2.184-7.134-3.276-11.494-3.276-4.228 0-8.059 1.092-11.495 3.276-3.303 2.184-6.011 5.387-8.125 9.609-1.982 4.076-2.973 9.099-2.973 15.067 0 5.969.991 11.138 2.973 15.505 2.114 4.222 4.822 7.425 8.125 9.609 3.436 2.183 7.267 3.275 11.495 3.275zM295.508 78l-.001 54.042a34.071 34.071 0 016.541-5.781c6.474-4.367 14.269-6.551 23.385-6.551 9.777 0 18.629 2.475 26.557 7.424 7.872 4.835 14.105 11.684 18.7 20.546l.325.637c4.756 9.026 7.135 19.799 7.135 32.319 0 12.666-2.379 23.585-7.135 32.757-4.624 9.026-10.966 16.087-19.025 21.182-7.928 4.95-16.78 7.425-26.557 7.425-9.644 0-17.704-2.184-24.178-6.551-2.825-1.946-5.336-4.355-7.532-7.226l.001 11.812h-35.87V78h37.654zm21.998 74.684c-4.228 0-8.059 1.092-11.494 3.276-3.303 2.184-6.012 5.387-8.126 9.609-1.982 4.076-2.972 9.099-2.972 15.067 0 5.969.99 11.138 2.972 15.505 2.114 4.222 4.823 7.425 8.126 9.609 3.435 2.183 7.266 3.275 11.494 3.275s7.994-1.092 11.297-3.275c3.435-2.184 6.143-5.387 8.125-9.609 2.114-4.367 3.171-9.536 3.171-15.505 0-5.968-1.057-10.991-3.171-15.067-1.906-4.06-4.483-7.177-7.732-9.352l-.393-.257c-3.303-2.184-7.069-3.276-11.297-3.276zm105.335 38.653l.084.337a27.857 27.857 0 002.057 5.559c2.246 4.222 5.417 7.498 9.513 9.827 4.096 2.184 8.984 3.276 14.665 3.276 5.285 0 9.777-.801 13.477-2.403 3.579-1.632 7.1-4.025 10.564-7.182l.732-.679 19.818 22.711c-5.153 6.26-11.494 11.064-19.025 14.413-7.531 3.203-16.449 4.804-26.755 4.804-12.683 0-23.782-2.621-33.294-7.862-9.381-5.386-16.713-12.665-21.998-21.837-5.153-9.317-7.729-19.872-7.729-31.665 0-11.792 2.51-22.274 7.53-31.446 5.036-9.105 11.902-16.195 20.596-21.268l.61-.351c8.984-5.241 19.091-7.861 30.322-7.861 10.311 0 19.743 2.286 28.294 6.859l.64.347c8.72 4.659 15.656 11.574 20.809 20.746 5.153 9.172 7.729 20.309 7.729 33.411 0 1.294-.052 2.761-.156 4.4l-.042.623-.17 2.353c-.075 1.01-.151 1.973-.227 2.888h-78.044zm21.365-42.147c-4.492 0-8.456 1.092-11.891 3.276-3.303 2.184-5.879 5.314-7.729 9.39a26.04 26.04 0 00-1.117 2.79 30.164 30.164 0 00-1.121 4.499l-.058.354h43.96l-.015-.106c-.401-2.638-1.122-5.055-2.163-7.252l-.246-.503c-1.776-3.774-4.282-6.742-7.519-8.906l-.409-.266c-3.303-2.184-7.2-3.276-11.692-3.276zm111.695-62.018l-.001 57.432h53.51V87.172h39.24v152.863h-39.24v-59.617H555.9l.001 59.617h-39.24V87.172h39.24zM715.766 242c-8.72 0-16.581-1.893-23.583-5.678-6.87-3.785-12.287-9.681-16.251-17.688-3.832-8.153-5.747-18.417-5.747-30.791v-66.168h37.654v59.398c0 9.172 1.519 15.723 4.558 19.654 3.171 3.931 7.597 5.896 13.278 5.896 3.7 0 7.069-.946 10.108-2.839 3.038-1.892 5.483-4.877 7.332-8.953 1.85-4.222 2.775-9.609 2.775-16.16v-56.996h37.654v118.36h-35.871l.004-12.38c-2.642 3.197-5.682 5.868-9.12 8.012-7.002 4.222-14.599 6.333-22.791 6.333zM841.489 78l-.001 54.041a34.1 34.1 0 016.541-5.78c6.474-4.367 14.269-6.551 23.385-6.551 9.777 0 18.629 2.475 26.556 7.424 7.873 4.835 14.106 11.684 18.701 20.546l.325.637c4.756 9.026 7.134 19.799 7.134 32.319 0 12.666-2.378 23.585-7.134 32.757-4.624 9.026-10.966 16.087-19.026 21.182-7.927 4.95-16.779 7.425-26.556 7.425-9.645 0-17.704-2.184-24.178-6.551-2.825-1.946-5.336-4.354-7.531-7.224v11.81h-35.87V78h37.654zm21.998 74.684c-4.228 0-8.059 1.092-11.495 3.276-3.303 2.184-6.011 5.387-8.125 9.609-1.982 4.076-2.973 9.099-2.973 15.067 0 5.969.991 11.138 2.973 15.505 2.114 4.222 4.822 7.425 8.125 9.609 3.436 2.183 7.267 3.275 11.495 3.275 4.228 0 7.993-1.092 11.296-3.275 3.435-2.184 6.144-5.387 8.126-9.609 2.114-4.367 3.171-9.536 3.171-15.505 0-5.968-1.057-10.991-3.171-15.067-1.906-4.06-4.484-7.177-7.733-9.352l-.393-.257c-3.303-2.184-7.068-3.276-11.296-3.276z"})}))})),h0={path:"assets/logo-3d.webp",pkg:"@lobehub/assets-logo",version:"1.2.0"},w0={path:"assets/logo-flat.svg",pkg:"@lobehub/assets-logo",version:"1.2.0"},D0=oY((function(A){return{extraTitle:(0,A.css)(GZ||(GZ=Bu(["\n font-weight: 300;\n white-space: nowrap;\n "])))}})),m0=["type","size","style","extra","className"],y0=J.memo((function(A){var e,t=A.type,n=void 0===t?"3d":t,o=A.size,r=void 0===o?32:o,i=A.style,a=A.extra,s=A.className,l=Mc(A,m0),g=BJ(),c=cY(),u=D0().styles;switch(n){case"3d":e=AA.jsx(EJ,kc({alt:"lobehub",height:r,src:g(h0),style:i,width:r},l));break;case"flat":e=AA.jsx(EJ,{alt:"lobehub",height:r,src:g(w0),style:i,width:r});break;case"high-contrast":e=AA.jsx(p0,kc({height:r,style:i,width:r},l));break;case"text":e=AA.jsx(f0,kc({className:s,height:r,style:i,width:2.9375*r},l));break;case"combine":e=AA.jsxs(AA.Fragment,{children:[AA.jsx(EJ,{alt:"lobehub",height:r,src:g(h0),width:r}),AA.jsx(f0,{style:{height:r,marginLeft:Math.round(r/4),width:"auto"}})]})}if(!a)return e;var B=Math.round(r/3*1.9);return AA.jsxs(AQ,kc(kc({align:"center",className:s,horizontal:!0,style:i},l),{},{children:[e,AA.jsx(I0,{style:{color:c.colorFill,height:B,width:B}}),AA.jsx("div",{className:u.extraTitle,style:{fontSize:B},children:a})]}))})),b0=function(A){var e=A.type,t=A.scale,n=A.appearance,o=lT(e),r="dark"===n;return bc(bc(bc(bc(bc(bc(bc(bc(bc(bc({},"color".concat(o,"Bg"),t[n][1]),"color".concat(o,"BgHover"),t[n][2]),"color".concat(o,"Border"),t[n][4]),"color".concat(o,"BorderHover"),t[n][r?5:3]),"color".concat(o,"Hover"),t[n][r?10:8]),"color".concat(o),t[n][9]),"color".concat(o,"Active"),t[n][r?7:10]),"color".concat(o,"TextHover"),t[n][r?10:8]),"color".concat(o,"Text"),t[n][9]),"color".concat(o,"TextActive"),t[n][r?7:10])},v0=function(A){var e=A.scale,t=A.appearance;return{colorBgContainer:"dark"===t?e[t][1]:e[t][0],colorBgElevated:"dark"===t?e[t][2]:e[t][0],colorBgLayout:"dark"===t?e[t][0]:e[t][1],colorBgMask:e.lightA[8],colorBgSpotlight:e[t][5],colorBorder:e[t][4],colorBorderSecondary:e[t][3],colorFill:e["".concat(t,"A")][3],colorFillQuaternary:e["".concat(t,"A")][0],colorFillSecondary:e["".concat(t,"A")][2],colorFillTertiary:e["".concat(t,"A")][1],colorText:e[t][12],colorTextQuaternary:e[t][6],colorTextSecondary:e[t][10],colorTextTertiary:e[t][8]}},k0={mauve:{dark:["#1c1b1e","#252528","#2f2f32","#3a393d","#454448","#504f53","#5b5a5f","#67666a","#737177","#7f7d83","#bbb9bd","#fcf8fb","#ffffff"],darkA:["rgba(233, 225, 250, 0.12)","rgba(231, 231, 250, 0.16)","rgba(235, 235, 250, 0.2)","rgba(242, 237, 254, 0.24)","rgba(238, 234, 248, 0.29)","rgba(242, 239, 252, 0.33)","rgba(239, 237, 250, 0.38)","rgba(245, 243, 252, 0.42)","rgba(245, 240, 253, 0.47)","rgba(244, 240, 252, 0.52)","rgba(253, 250, 255, 0.74)","rgba(255, 251, 254, 0.99)","#ffffff"],light:["#fcf8fb","#edeaed","#dfdcdf","#d1ced2","#c2c0c4","#b4b2b7","#a7a4a9","#99979c","#8c8a90","#7f7d83","#4a494d","#1c1b1e","#111"],lightA:["rgba(155, 22, 122, 0.03)","rgba(55, 22, 55, 0.09)","rgba(26, 5, 26, 0.14)","rgba(25, 10, 30, 0.2)","rgba(11, 3, 19, 0.25)","rgba(13, 7, 23, 0.31)","rgba(11, 2, 16, 0.36)","rgba(6, 1, 14, 0.41)","rgba(5, 1, 14, 0.46)","rgba(4, 0, 12, 0.51)","rgba(4, 2, 8, 0.72)","rgba(3, 2, 5, 0.9)","#111"]},olive:{dark:["#1a1c1b","#232624","#2d302e","#383a38","#424542","#4d504d","#585c58","#646763","#70736e","#7c7f79","#b9bab5","#faf9f4","#ffffff"],darkA:["rgba(236, 255, 245, 0.11)","rgba(233, 253, 240, 0.15)","rgba(237, 253, 242, 0.19)","rgba(243, 252, 243, 0.23)","rgba(236, 246, 236, 0.28)","rgba(241, 250, 241, 0.32)","rgba(238, 249, 238, 0.37)","rgba(244, 251, 241, 0.41)","rgba(243, 250, 239, 0.46)","rgba(248, 254, 242, 0.5)","rgba(253, 255, 248, 0.73)","rgba(255, 254, 249, 0.98)","#ffffff"],light:["#faf9f4","#ecebe6","#ddddd7","#cfcfc9","#c0c1bb","#b2b4ae","#a4a6a0","#969993","#898c86","#7c7f79","#484b48","#1a1c1b","#111"],lightA:["rgba(155, 135, 35, 0.05)","rgba(65, 55, 5, 0.1)","rgba(43, 43, 5, 0.16)","rgba(37, 37, 10, 0.22)","rgba(22, 25, 3, 0.27)","rgba(14, 21, 2, 0.32)","rgba(16, 21, 5, 0.38)","rgba(11, 18, 4, 0.43)","rgba(9, 15, 3, 0.48)","rgba(8, 13, 2, 0.53)","rgba(1, 5, 1, 0.72)","rgba(1, 3, 2, 0.9)","#111"]},sage:{dark:["#1a1c1b","#232625","#2d302f","#373a39","#424543","#4d504e","#585c59","#636765","#6f7370","#7a7f7c","#b8bab7","#f9f9f7","#ffffff"],darkA:["rgba(236, 255, 245, 0.11)","rgba(233, 253, 247, 0.15)","rgba(237, 253, 247, 0.19)","rgba(239, 252, 248, 0.23)","rgba(236, 246, 239, 0.28)","rgba(241, 250, 244, 0.32)","rgba(238, 249, 241, 0.37)","rgba(241, 251, 246, 0.41)","rgba(241, 250, 243, 0.46)","rgba(244, 254, 248, 0.5)","rgba(252, 255, 251, 0.73)","rgba(254, 254, 252, 0.98)","#ffffff"],light:["#f9f9f7","#eaebe8","#dcddda","#cdcfcc","#bfc1be","#b1b4b0","#a3a6a3","#959996","#888c89","#7a7f7c","#474b49","#1a1c1b","#111"],lightA:["rgba(105, 105, 55, 0.04)","rgba(45, 55, 25, 0.1)","rgba(22, 28, 8, 0.15)","rgba(5, 15, 0, 0.2)","rgba(9, 17, 5, 0.26)","rgba(3, 13, 0, 0.31)","rgba(6, 14, 6, 0.37)","rgba(3, 12, 5, 0.42)","rgba(2, 10, 4, 0.47)","rgba(4, 13, 8, 0.53)","rgba(3, 8, 6, 0.73)","rgba(1, 3, 2, 0.9)","#111"]},sand:{dark:["#1c1c18","#262521","#30302b","#3a3a35","#45453f","#505049","#5c5b54","#67675f","#73726a","#7f7e76","#bcbab2","#fcf9f3","#ffffff"],darkA:["rgba(255, 255, 218, 0.11)","rgba(253, 247, 220, 0.15)","rgba(253, 253, 226, 0.19)","rgba(252, 252, 230, 0.23)","rgba(246, 246, 225, 0.28)","rgba(250, 250, 228, 0.32)","rgba(249, 246, 227, 0.37)","rgba(251, 251, 232, 0.41)","rgba(250, 248, 230, 0.46)","rgba(254, 252, 236, 0.5)","rgba(254, 251, 241, 0.74)","rgba(255, 252, 245, 0.99)","#ffffff"],light:["#fcf9f3","#edebe4","#dfddd5","#d1cfc7","#c3c1b9","#b5b3ab","#a7a69d","#999890","#8c8b83","#7f7e76","#4b4a44","#1c1c18","#111"],lightA:["rgba(195, 135, 15, 0.05)","rgba(91, 73, 10, 0.11)","rgba(67, 55, 8, 0.17)","rgba(46, 37, 0, 0.22)","rgba(41, 34, 5, 0.28)","rgba(31, 25, 0, 0.33)","rgba(29, 27, 4, 0.39)","rgba(23, 21, 3, 0.44)","rgba(20, 18, 2, 0.49)","rgba(18, 16, 1, 0.54)","rgba(12, 10, 2, 0.74)","rgba(6, 6, 1, 0.91)","#111"]},slate:{dark:["#1b1c1d","#242527","#2e2f32","#383a3c","#434547","#4e5052","#595b5e","#64676a","#707276","#7b7e82","#b8babc","#f9f9fa","#ffffff"],darkA:["rgba(225, 233, 242, 0.12)","rgba(225, 231, 244, 0.16)","rgba(230, 235, 250, 0.2)","rgba(233, 242, 250, 0.24)","rgba(239, 246, 254, 0.28)","rgba(236, 242, 248, 0.33)","rgba(241, 246, 254, 0.37)","rgba(238, 245, 252, 0.42)","rgba(238, 243, 251, 0.47)","rgba(241, 247, 255, 0.51)","rgba(249, 251, 254, 0.74)","rgba(254, 254, 255, 0.98)","#ffffff"],light:["#f9f9fa","#ebebec","#dcddde","#cecfd0","#bfc1c3","#b1b3b5","#a4a6a8","#96989b","#898b8e","#7b7e82","#484a4d","#1b1c1d","#111"],lightA:["rgba(55, 55, 88, 0.03)","rgba(5, 5, 17, 0.08)","rgba(5, 12, 19, 0.14)","rgba(10, 15, 20, 0.2)","rgba(9, 17, 24, 0.26)","rgba(3, 10, 16, 0.31)","rgba(2, 8, 13, 0.36)","rgba(5, 10, 17, 0.42)","rgba(4, 8, 15, 0.47)","rgba(1, 7, 15, 0.52)","rgba(1, 4, 8, 0.72)","rgba(2, 3, 4, 0.9)","#111"]}},M0={blue:sV.blue.dark[9],cyan:sV.cyan.dark[9],geekblue:sV.geekblue.dark[9],gold:sV.gold.dark[9],green:sV.green.dark[9],lime:sV.lime.dark[9],magenta:sV.magenta.dark[9],orange:sV.orange.dark[9],purple:sV.purple.dark[9],red:sV.red.dark[9],volcano:sV.volcano.dark[9],yellow:sV.yellow.dark[9]},x0=[M0.red,M0.orange,M0.gold,M0.yellow,M0.lime,M0.green,M0.cyan,M0.blue,M0.geekblue,M0.purple,M0.magenta,M0.volcano],S0={mauve:k0.mauve.dark[9],olive:k0.olive.dark[9],sage:k0.sage.dark[9],sand:k0.sand.dark[9],slate:k0.slate.dark[9]},F0=[S0.mauve,S0.slate,S0.sage,S0.olive,S0.sand],N0=function(A){var e,t=A.name,n=A.scale,o=A.appearance,r={},i=xV(n[o].entries());try{for(i.s();!(e=i.n()).done;){var a=WQ(e.value,2),s=a[0],l=a[1];0!==s&&12!==s&&(r["".concat(t).concat(s)]=l)}}catch(E){i.e(E)}finally{i.f()}var g,c=xV(n["".concat(o,"A")].entries());try{for(c.s();!(g=c.n()).done;){var u=WQ(g.value,2),B=u[0],Q=u[1];0!==B&&12!==B&&(r["".concat(t).concat(B,"A")]=Q)}}catch(E){c.e(E)}finally{c.f()}return kc(kc({},r),function(A){var e,t=A.name,n=A.scale,o=A.appearance;return bc(bc(bc(bc(bc(bc(bc(bc(bc(bc(e={},"".concat(t,"Bg"),n["".concat(o,"A")][1]),"".concat(t,"BgHover"),n["".concat(o,"A")][2]),"".concat(t,"Border"),n[o][4]),"".concat(t,"BorderSecondary"),n[o][3]),"".concat(t,"BorderHover"),n[o][5]),"".concat(t,"Hover"),n[o][10]),"".concat(t),n[o][9]),"".concat(t,"Active"),n[o][7]),"".concat(t,"TextHover"),n["".concat(o,"A")][10]),"".concat(t,"Text"),n["".concat(o,"A")][9]),bc(e,"".concat(t,"TextActive"),n["".concat(o,"A")][7])}({appearance:o,name:t,scale:n}))},R0=oY((function(A,e){var t=A.css,n=A.token;return{active:t($Z||($Z=Bu(["\n box-shadow: 0 0 0 2px ",";\n "])),n.colorTextTertiary),container:t(zZ||(zZ=Bu(["\n cursor: pointer;\n\n width: ","px;\n height: ","px;\n\n background: ",";\n border-radius: 50%;\n box-shadow: inset 0 0 0 2px ",";\n\n transition:\n scale 400ms ",",\n box-shadow 100ms ",";\n\n &:hover {\n box-shadow: 0 0 0 3px ",";\n }\n\n &:active {\n scale: 0.8;\n }\n "])),e,e,n.colorBgContainer,n.colorSplit,n.motionEaseOut,n.motionEaseOut,n.colorText)}})),L0=J.memo((function(A){var e=A.colors,t=A.activeColor,n=A.onSelect,o=A.size,r=void 0===o?24:o,i=cY(),a=R0(r),s=a.cx,l=a.styles;return AA.jsxs(AQ,{gap:8,horizontal:!0,style:{flexWrap:"wrap"},children:[AA.jsx(AQ,{className:s(l.container,!t&&l.active),onClick:function(){null==n||n()},style:{background:i.colorBgContainer}}),e.map((function(A){var e=A===t;return AA.jsx(AQ,{className:s(l.container,e&&l.active),onClick:function(){null==n||n(A)},style:{background:A}},A)}))]})})),P0=oY((function(A){var e=A.css,t=A.token,n=A.prefixCls,o=".".concat(n,"-tabs");return{compact:e(WZ||(WZ=Bu(["\n .","-tabs-tab {\n margin: 4px !important;\n\n + .","-tabs-tab {\n margin: 4px !important;\n }\n }\n "])),n,n),tabs:e(_Z||(_Z=Bu(["\n ","-tab + ","-tab {\n margin-block: ","px !important;\n margin-inline: 4px !important;\n padding-block: 0 !important;\n padding-inline: 12px !important;\n }\n\n ","-tab {\n color: ",";\n transition: background-color 100ms ease-out;\n\n &:first-child {\n margin-block: ","px;\n margin-inline: 0 4px;\n padding-block: ","px !important;\n padding-inline: 12px !important;\n }\n\n &:hover {\n color: "," !important;\n background: ",";\n border-radius: ","px;\n }\n }\n\n ","-nav {\n margin-block-end: 0;\n\n &::before {\n display: none;\n }\n }\n "])),o,o,16,o,t.colorTextSecondary,16,6,t.colorText,t.colorFillTertiary,t.borderRadius,o)}})),H0=["className","variant"],G0=J.memo((function(A){var e=A.className,t=A.variant,n=Mc(A,H0),o=P0(),r=o.styles,i=o.cx;return AA.jsx(NP,kc({className:i(r.tabs,"compact"===t&&r.compact,e)},n))})),O0=b0({appearance:"dark",scale:sV.bnw,type:"Primary"}),U0=v0({appearance:"dark",scale:sV.gray}),K0=b0({appearance:"dark",scale:sV.lime,type:"Success"}),Y0=b0({appearance:"dark",scale:sV.gold,type:"Warning"}),T0=b0({appearance:"dark",scale:sV.red,type:"Error"}),J0=b0({appearance:"dark",scale:sV.blue,type:"Info"}),j0=kc(kc(kc(kc(kc(kc(kc({},O0),U0),K0),Y0),T0),J0),{},{boxShadow:"0 20px 20px -8px rgba(0, 0, 0, 0.24)",boxShadowSecondary:"0 8px 16px -4px rgba(0, 0, 0, 0.2)",boxShadowTertiary:"0 3px 1px -1px rgba(26, 26, 26, 0.06)",colorLink:J0.colorInfoText,colorLinkActive:J0.colorInfoTextActive,colorLinkHover:J0.colorInfoTextHover,colorTextLightSolid:U0.colorBgLayout}),q0=function(A,e){var t=A.primaryColor,n=A.neutralColor,o={},r={},i=sV[t];i&&(o=b0({appearance:"dark",scale:i,type:"Primary"}));var a=k0[n];return a&&(r=v0({appearance:"dark",scale:a})),kc(kc(kc(kc({},e),j0),o),r)},$0=b0({appearance:"light",scale:sV.bnw,type:"Primary"}),z0=v0({appearance:"light",scale:sV.gray}),W0=b0({appearance:"light",scale:sV.green,type:"Success"}),_0=b0({appearance:"light",scale:sV.orange,type:"Warning"}),X0=b0({appearance:"light",scale:sV.volcano,type:"Error"}),V0=b0({appearance:"light",scale:sV.geekblue,type:"Info"}),Z0=kc(kc(kc(kc(kc(kc(kc({},$0),z0),W0),_0),X0),V0),{},{boxShadow:"0 20px 20px -8px rgba(0, 0, 0, 0.24)",boxShadowSecondary:"0 8px 16px -4px rgba(0, 0, 0, 0.2)",boxShadowTertiary:"0 3px 1px -1px rgba(26, 26, 26, 0.06)",colorLink:V0.colorInfoText,colorLinkActive:V0.colorInfoTextActive,colorLinkHover:V0.colorInfoTextHover,colorTextLightSolid:z0.colorBgLayout}),A1=function(A,e){var t=A.primaryColor,n=A.neutralColor,o={},r={},i=sV[t];i&&(o=b0({appearance:"light",scale:i,type:"Primary"}));var a=k0[n];return a&&(r=v0({appearance:"light",scale:a})),kc(kc(kc(kc({},e),Z0),o),r)},e1='"Segoe UI Emoji","Segoe UI Symbol","Apple Color Emoji","Twemoji Mozilla","Noto Color Emoji","Android Emoji"',t1='"HarmonyOS Sans SC","PingFang SC","Hiragino Sans GB","Microsoft Yahei UI","Microsoft Yahei","Source Han Sans CN",sans-serif',n1={borderRadius:5,borderRadiusLG:8,borderRadiusSM:3,borderRadiusXS:3,controlHeight:36,fontFamily:['"HarmonyOS Sans","Segoe UI","SF Pro Display",-apple-system,BlinkMacSystemFont,Roboto,Oxygen,Ubuntu,Cantarell,"Open Sans","Helvetica Neue",sans-serif',t1,e1].join(","),fontFamilyCode:["Hack,ui-monospace,SFMono-Regular,SF Mono,Menlo,Consolas,Liberation Mono,monospace",t1,e1].join(",")};const o1=function(A){return iY(XZ||(XZ=Bu(["\n .","-checkbox-inner:after {\n border-color: "," !important;\n }\n\n .","-btn {\n box-shadow: none;\n }\n\n .","-btn-primary:not(:disabled) {\n color: "," !important;\n\n &:hover {\n color: "," !important;\n }\n\n &:active {\n color: "," !important;\n }\n }\n\n .","-tooltip-inner {\n display: flex;\n align-items: center;\n justify-content: center;\n\n min-height: unset;\n padding-block: 4px;\n padding-inline: 8px;\n\n color: "," !important;\n\n background-color: "," !important;\n border-radius: ","px !important;\n }\n\n .","-tooltip-arrow {\n &::before,\n &::after {\n background: "," !important;\n }\n }\n\n .","-switch-handle::before {\n background: "," !important;\n }\n\n .","-image-preview-close,\n .","-image-preview-switch-right,.","-image-preview-switch-left {\n ",";\n border-radius: ","px;\n background: ",";\n\n width: 32px;\n height: 32px;\n\n display: flex;\n align-items: center;\n justify-content: center;\n\n padding: 0;\n }\n\n .","-popover-inner {\n border: 1px solid ",";\n box-shadow: ",";\n }\n\n ul.","-dropdown-menu {\n border: 1px solid ",";\n border-radius: ","px !important;\n box-shadow: ",";\n }\n\n @media (max-width: 575px) {\n .","-tooltip {\n display: none !important;\n }\n }\n"])),A.prefixCls,oj(A.colorPrimary),A.prefixCls,A.prefixCls,oj(A.colorPrimary),oj(A.colorPrimary),oj(A.colorPrimaryActive),A.prefixCls,A.colorBgLayout,A.colorText,A.borderRadiusSM,A.prefixCls,A.colorText,A.prefixCls,A.colorBgContainer,A.prefixCls,A.prefixCls,A.prefixCls,A.stylish.blur,A.borderRadiusLG,YJ(A.colorBgMask,.1),A.prefixCls,A.colorBorderSecondary,A.boxShadowSecondary,A.prefixCls,A.colorBorderSecondary,A.borderRadius,A.boxShadowSecondary,A.prefixCls)};var r1;var i1=rY((function(A){var e,t=A.theme;return[(e=t,iY(r1||(r1=Bu(["\n :root {\n --font-settings: 'cv01', 'tnum', 'kern';\n --font-variations: 'opsz' auto, tabular-nums;\n }\n\n html {\n overscroll-behavior: none;\n color-scheme: ",";\n }\n\n body {\n overflow: hidden auto;\n\n min-height: 100vh;\n margin: 0;\n padding: 0;\n\n font-family: ",";\n font-size: ","px;\n font-feature-settings: var(--font-settings);\n font-variation-settings: var(--font-variations);\n -webkit-font-smoothing: antialiased;\n -moz-osx-font-smoothing: grayscale;\n line-height: 1;\n color: ",";\n text-size-adjust: none;\n text-rendering: optimizelegibility;\n word-wrap: break-word;\n vertical-align: baseline;\n\n background-color: ",";\n\n -webkit-overflow-scrolling: touch;\n -webkit-tap-highlight-color: transparent;\n }\n\n code {\n font-family: "," !important;\n\n span {\n font-family: "," !important;\n }\n }\n\n ::selection {\n color: #000;\n background: ",";\n\n -webkit-text-fill-color: unset !important;\n }\n\n * {\n scrollbar-color: "," transparent;\n scrollbar-width: thin;\n box-sizing: border-box;\n vertical-align: baseline;\n }\n"])),e.isDarkMode?"dark":"light",e.fontFamily,e.fontSize,e.colorTextBase,e.colorBgLayout,e.fontFamilyCode,e.fontFamilyCode,e.yellow9,e.colorFill)),o1(t)]})),a1=["children","customStylish","customToken","enableWebfonts","enableGlobalStyle","webfonts","customTheme","className","style"],s1=J.memo((function(A){var e=A.children,t=A.customStylish,n=A.customToken,o=A.enableWebfonts,r=void 0===o||o,i=A.enableGlobalStyle,a=void 0===i||i,s=A.webfonts,l=A.customTheme,g=void 0===l?{}:l,c=A.className,u=A.style,B=Mc(A,a1),Q=BJ(),E=s||[Q({path:"css/index.css",pkg:"@lobehub/webfont-mono",version:"1.0.0"}),Q({path:"css/index.css",pkg:"@lobehub/webfont-harmony-sans",version:"1.0.0"}),Q({path:"css/index.css",pkg:"@lobehub/webfont-harmony-sans-sc",version:"1.0.0"}),Q({path:"dist/katex.min.css",pkg:"katex",version:"0.16.8"})],C=J.useCallback((function(A){return kc(kc({},function(A){var e=A.css,t=A.token,n=A.isDarkMode,o=sY(OZ||(OZ=Bu(["\n 0% {\n background-position: 0% 50%;\n }\n 50% {\n background-position: 100% 50%;\n }\n 100% {\n background-position: 0% 50%;\n }\n "])));return{blur:e(UZ||(UZ=Bu(["\n backdrop-filter: saturate(180%) blur(10px);\n "]))),blurStrong:e(KZ||(KZ=Bu(["\n backdrop-filter: blur(36px);\n "]))),bottomScrollbar:e(YZ||(YZ=Bu(["\n ::-webkit-scrollbar {\n width: 0;\n height: 4px;\n background-color: transparent;\n\n &-thumb {\n background-color: ",";\n border-radius: 4px;\n transition: background-color 500ms ",";\n }\n\n &-corner {\n display: none;\n width: 0;\n height: 0;\n }\n }\n "])),t.colorFill,t.motionEaseOut),gradientAnimation:e(TZ||(TZ=Bu(["\n background-image: linear-gradient(\n -45deg,\n ",",\n ",",\n ",",\n ","\n );\n background-size: 400% 400%;\n border-radius: inherit;\n animation: 5s "," 5s ease infinite;\n "])),t.gold,t.magenta,t.geekblue,t.cyan,o),markdown:e(JZ||(JZ=Bu(["\n --lobe-markdown-font-size: 16px;\n --lobe-markdown-header-multiple: 1;\n --lobe-markdown-margin-multiple: 1.5;\n\n position: relative;\n\n width: 100%;\n\n font-size: var(--lobe-markdown-font-size);\n line-height: 1.6;\n word-break: break-word;\n\n p {\n margin-block: calc(var(--lobe-markdown-margin-multiple) * 1em);\n line-height: 1.6;\n letter-spacing: 0.02em;\n }\n\n h1,\n h2,\n h3,\n h4,\n h5 {\n margin-block: max(\n calc(var(--lobe-markdown-header-multiple) * var(--lobe-markdown-margin-multiple) * 0.5em),\n var(--lobe-markdown-font-size)\n );\n font-weight: 600;\n }\n\n h1 {\n font-size: calc(\n var(--lobe-markdown-font-size) * (1 + 1.5 * var(--lobe-markdown-header-multiple))\n );\n }\n\n h2 {\n font-size: calc(\n var(--lobe-markdown-font-size) * (1 + var(--lobe-markdown-header-multiple))\n );\n }\n\n h3 {\n font-size: calc(\n var(--lobe-markdown-font-size) * (1 + 0.5 * var(--lobe-markdown-header-multiple))\n );\n }\n\n h4 {\n font-size: calc(\n var(--lobe-markdown-font-size) * (1 + 0.25 * var(--lobe-markdown-header-multiple))\n );\n }\n\n h5 {\n font-size: calc(var(--lobe-markdown-font-size) * 1);\n }\n\n li {\n margin-block: calc(var(--lobe-markdown-margin-multiple) * 0.5em);\n }\n\n ul,\n ol {\n margin-block: calc(var(--lobe-markdown-margin-multiple) * 1em);\n margin-inline-start: 1em;\n list-style-position: outside;\n\n li {\n margin-inline-start: 1em;\n }\n }\n\n ol {\n li {\n &::marker {\n color: ",";\n }\n }\n }\n\n ul {\n list-style-type: none;\n\n li {\n &::before {\n content: '-';\n display: inline-block;\n margin-inline: -1em 0.5em;\n color: ",";\n }\n }\n }\n\n strong {\n font-weight: 600;\n }\n\n code:not(:has(span)) {\n display: inline-block;\n\n padding-block: 0.2em;\n padding-inline: 0.4em;\n\n font-family: ",";\n font-size: 0.875em;\n line-height: 1;\n word-break: break-word;\n\n background: ",";\n border: 1px solid ",";\n border-radius: ","px;\n }\n\n kbd {\n cursor: default;\n user-select: none;\n\n transform: translateY(-0.2em);\n\n display: inline-block;\n\n min-width: 1em;\n margin-inline: 0.25em;\n padding-block: 0.2em;\n padding-inline: 0.4em;\n\n font-family: ",";\n font-size: 0.875em;\n font-weight: 500;\n line-height: 1;\n color: ",";\n text-align: center;\n\n background: ",";\n border: 1px solid ",";\n border-radius: 0.25em;\n box-shadow: 0 2px 0 1px ",";\n\n &:hover {\n transform: translateY(0);\n box-shadow: none;\n }\n }\n\n blockquote {\n margin-block: calc(var(--lobe-markdown-margin-multiple) * 1em);\n margin-inline: 0;\n padding-block: 0;\n padding-inline: 1em;\n\n color: ",";\n\n border-inline-start: solid 4px ",";\n }\n\n hr {\n margin-block: calc(var(--lobe-markdown-margin-multiple) * 1.5em);\n\n border-color: ",";\n border-style: dashed;\n border-width: 1px;\n border-block-start: none;\n border-inline-start: none;\n border-inline-end: none;\n }\n\n details {\n margin-block: calc(var(--lobe-markdown-margin-multiple) * 1em);\n padding-block: 0.75em;\n padding-inline: 1em;\n\n background: ",";\n border: 1px solid ",";\n border-radius: ","px;\n\n summary {\n cursor: pointer;\n display: flex;\n align-items: center;\n list-style: none;\n\n &::before {\n content: '';\n\n position: absolute;\n inset-inline-end: 1.25em;\n transform: rotateZ(-45deg);\n\n display: block;\n\n width: 0.4em;\n height: 0.4em;\n\n font-family: ",";\n\n border-block-end: 1.5px solid ",";\n border-inline-end: 1.5px solid ",";\n\n transition: transform 200ms ",";\n }\n }\n\n &[open] {\n padding-block-end: 0;\n\n summary {\n padding-block-end: 12px;\n border-block-end: 1px dashed ",";\n\n &::before {\n transform: rotateZ(45deg);\n }\n }\n }\n }\n\n img,\n video {\n max-width: 100%;\n }\n\n table {\n overflow: hidden;\n display: table;\n border-spacing: 0;\n border-collapse: collapse;\n\n box-sizing: border-box;\n width: 100%;\n margin-block: calc(var(--lobe-markdown-margin-multiple) * 1em);\n\n text-align: start;\n overflow-wrap: break-word;\n\n background: ",";\n border-radius: ","px;\n box-shadow: inset 0 0 0 1px ",";\n }\n\n thead {\n background: ",";\n }\n\n tr {\n box-shadow: inset 0 -1px 0 ",";\n }\n\n th,\n td {\n padding-block: 0.75em;\n padding-inline: 1em;\n text-align: start;\n vertical-align: top;\n }\n\n pre,\n [data-code-type='highlighter'] {\n border: none;\n\n > code {\n padding: 0 !important;\n\n font-family: ",";\n font-size: 0.875em;\n line-height: 1.6;\n\n border: none !important;\n }\n }\n "])),t.colorTextSecondary,t.colorTextDescription,t.fontFamilyCode,t.colorFillSecondary,t.colorBorderSecondary,t.borderRadius,t.fontFamily,t.colorBgLayout,n?t.colorText:"#333",n?t.colorTextSecondary:"#000",n?t.colorTextSecondary:"#000",t.colorTextSecondary,t.colorBorder,t.colorBorderSecondary,t.colorFillTertiary,t.colorBorderSecondary,t.borderRadius,t.fontFamily,t.colorTextSecondary,t.colorTextSecondary,t.motionEaseOut,t.colorBorder,t.colorFillTertiary,t.borderRadius,t.colorBorderSecondary,t.colorFillQuaternary,t.colorBorderSecondary,t.fontFamilyCode),noScrollbar:e(jZ||(jZ=Bu(["\n ::-webkit-scrollbar {\n display: none;\n width: 0;\n height: 0;\n background-color: transparent;\n }\n "]))),resetLinkColor:e(qZ||(qZ=Bu(["\n cursor: pointer;\n color: ",";\n\n &:hover {\n color: ",";\n }\n "])),t.colorTextSecondary,t.colorText)}}(A)),null==t?void 0:t(A))}),[t]),d=J.useCallback((function(A){return kc(kc({},function(A){for(var e=A.isDarkMode,t={},n=0,o=Object.entries(sV);n0&&E.map((function(A){return AA.jsx(ZV,{url:A},A)})),AA.jsx(gY,{speedy:!0,children:AA.jsxs(lY,kc(kc({customStylish:C,customToken:d},B),{},{theme:I,children:[a&&AA.jsx(i1,{}),AA.jsx(iM,{className:c,style:kc({minHeight:"inherit",width:"inherit"},u),children:e})]}))})]})}));s1.displayName="LobeThemeProvider";const l1="3.5.3",g1="LobeThem: The Modern Theme for Stable Diffusion WebUI, Exquisite interface design, Highly customizable UI, and Efficiency boosting features.",c1="https://discord.gg/AYFPHvv2jT",u1="https://github.com/lobehub/sd-webui-lobe-theme",B1=u1.replace("https://github.com/",""),Q1="https://lobehub.com/",E1=location.origin,C1="https://x.com/lobehub",d1=(new Date).toISOString(),I1={arvinxx:{avatar:"https://avatars.githubusercontent.com/u/28616219?v=4",desc:"Founder, Design Engineer",name:"Arvin Xu",url:"https://github.com/arvinxx"},canisminor:{avatar:"https://avatars.githubusercontent.com/u/17870709?v=4",desc:"Founder, Design Engineer",name:"CanisMinor",url:"https://github.com/arvinxx"},lobehub:{avatar:"https://avatars.githubusercontent.com/u/131470832?v=4",desc:"Official Account",name:"LobeHub",url:"https://github.com/lobehub"}};const p1=new class{generate({image:A="/og/cover.png",url:e,title:t,description:n,date:o,webpage:r={enable:!0}}){return{"@context":"https://schema.org","@graph":[this.genWebSite(),(null==r?void 0:r.enable)&&this.genWebPage({...r,date:o,description:n,image:A,title:t,url:e}),A&&this.genImageObject({image:A,url:e}),this.genOrganization()].filter(Boolean)}}genOrganization(){return{"@id":this.getId(E1,"#organization"),"@type":"Organization",alternateName:"LobeTheme",contactPoint:{"@type":"ContactPoint",contactType:"customer support",email:"support@lobehub.com"},description:"We are a group of e/acc design-engineers, hoping to provide modern design components and tools for AIGC, and creating a technology-driven forum, fostering knowledge interaction and the exchange of ideas that may culminate in mutual inspiration and collaborative innovation.",email:"hello@lobehub.com",founders:[this.getAuthors(["arvinxx"]),this.getAuthors(["canisminor"])],image:lJ(Q1,"/icon-512x512.png"),logo:{"@type":"ImageObject",height:512,url:lJ(Q1,"/icon-512x512.png"),width:512},name:"LobeHub",sameAs:[C1,"https://github.com/lobehub","https://medium.com/@lobehub","https://www.youtube.com/@lobehub"],url:Q1}}getAuthors(A=[]){const e={"@id":this.getId(E1,"#organization"),"@type":"Organization"};if(!A||0===A.length)return e;if(1===A.length&&"lobehub"===A[0])return e;const t=A.find((A=>"lobehub"!==A));if(!t)return e;const n=null==I1?void 0:I1[t];return n?{"@type":"Person",name:n.name,url:n.url}:e}genWebPage({date:A,image:e,search:t,description:n,title:o,url:r}){const i=this.fixUrl(r),a=A?new Date(A).toISOString():d1,s=A?new Date(A).toISOString():d1,l={"@id":i,"@type":"WebPage",about:{"@id":this.getId(E1,"#organization")},breadcrumbs:{"@id":this.getId(i,"#breadcrumb")},dateModified:s,datePublished:a,description:n,image:{"@id":this.getId(i,"#primaryimage")},inLanguage:"en-US",isPartOf:{"@id":this.getId(E1,"#website")},name:this.fixTitle(o),primaryImageOfPage:{"@id":this.getId(i,"#primaryimage")},thumbnailUrl:e};return t&&(l.potentialAction={"@type":"SearchAction","query-input":"required name=search_term_string",target:`${i}?q={search_term_string}`}),l}genImageObject({image:A,url:e}){const t=this.fixUrl(e);return{"@id":this.getId(t,"#primaryimage"),"@type":"ImageObject",contentUrl:A,inLanguage:"en-US",url:A}}genWebSite(){return{"@id":this.getId(E1,"#website"),"@type":"WebSite",description:g1,inLanguage:"en-US",name:"LobeTheme",publisher:{"@id":this.getId(E1,"#organization")},url:E1}}getId(A,e){return[A,e].join("/")}fixTitle(A){return A.includes("LobeTheme")?A:`${A} ยท LobeTheme`}fixUrl(A){return lJ(E1,A)}},f1=g1,h1=J.memo((()=>{const A=J.useMemo((()=>p1.generate({description:f1,image:"https://repository-images.githubusercontent.com/606329910/7fd79db5-fd91-450c-9e95-8ccce8ffdc0b",title:"Stable Diffusion ยท LobeHub",url:"/"})),[]);return AA.jsx("script",{dangerouslySetInnerHTML:{__html:JSON.stringify(A)},id:"structured-data",type:"application/ld+json"})})),w1=(A,e,{onSuccess:t,onError:n,debug:o,id:r,onStart:i,parent:a,inverse:s}={})=>{const[l,g]=J.useState(!0),[c,u]=J.useState(),B=J.useRef(!1);return J.useEffect((()=>{var l;if(!B.current)try{const n=(a?gradioApp().querySelector(a):gradioApp()).querySelector(e);n?(r&&(n.id=r),null==i||i(n),s&&A.current?n.append(A.current):null==(l=A.current)||l.append(n),u(n),null==t||t(n),B.current=!0,g(!1),o&&uA.success(`๐Ÿคฏ ${o}`)):o&&uA.error(`๐Ÿคฏ ${o}`,`Element not found for selector: ${e}`)}catch(c){console.error(c),null==n||n(c),g(!1),o&&uA.error(`๐Ÿคฏ ${o}`,c)}}),[]),{element:c,isLoaded:!l,isLoading:l}},D1={convert(A){const e=/\{|\[|\}|\]|[^{}[\]]+/gmu;let t=D1.convertStr(A);const n=D1.convertStr2Array(t);t=D1.convertArray2Str(n);let o=[];const r={"[":{multiplier:1/1.05,stack:[]},"{":{multiplier:1.05,stack:[]}};function i(A,e){for(let t=A;t0&&i(e.stack.pop(),e.multiplier)}else o.push([A,1])}for(const l of Object.keys(r))for(const A of r[l].stack)i(A,r[l].multiplier);0===o.length&&(o=[["",1]]);let a=0;for(;a+1A.map((A=>{if(A.includes("<"))return A;const e=A.replaceAll(/\s+/g," ").replaceAll(/๏ผŒ|\.\|ใ€‚/g,",").replaceAll(/โ€œ|โ€˜|โ€|"|\/'/g,"").replaceAll(", ",",").replaceAll(",,",",").replaceAll(",",", ");return D1.convertStr2Array(e).join(", ")})).join(", "),convertStr:A=>A.replaceAll("๏ผš",":").replaceAll("๏ผˆ","(").replaceAll("๏ผ‰",")"),convertStr2Array(A){const e=/([()<>[\]])/g;return(A=>{let t=(A=>{const t=[];let n,o=0,r=0;for(;null!==(n=e.exec(A));)0===r&&n.index>o&&(t.push(A.slice(o,n.index)),o=n.index),"("===n[0]||"<"===n[0]||"["===n[0]?r++:")"!==n[0]&&">"!==n[0]&&"]"!==n[0]||r--,0===r&&(t.push(A.slice(o,n.index+1)),o=n.index+1);return o(A=>{const t=[];let n=0,o=!1;for(let r=0;r""!==A))})(A).filter((A=>!/^[\s,๏ผŒ]+$/.test(A))).filter(Boolean).sort(((A,e)=>A.includes("<")&&!e.includes("<")?1:e.includes("<")&&!A.includes("<")?-1:0))},dispatchInputEvent(A){let e=new Event("input");Object.defineProperty(e,"target",{value:A}),A.dispatchEvent(e)},onClickConvert(A){const e=gradioApp().querySelector(`#${A}2img_prompt > label > textarea`),t=D1.convert(e.value);e.value=null===t.match(/^masterpiece, best quality,/)?""+t:t,D1.dispatchInputEvent(e);const n=gradioApp().querySelector(`#${A}2img_neg_prompt > label > textarea`),o=D1.convert(n.value);n.value=null===o.match(/^lowres,/)?0===o.length?"":""+o:o,D1.dispatchInputEvent(n)},round:A=>Math.round(1e4*A)/1e4},m1=A=>{const e=J.useRef((A=>{const e=document.createElement("button");return e.id=`${A}2img_formatconvert`,e.type="button",e.innerHTML="๐Ÿช„",e.title="Format prompt~๐Ÿช„",e.className="lg secondary gradio-button tool svelte-cmf5ev",e.addEventListener("click",(()=>D1.onClickConvert(A))),e})(A));w1(e,`#${A}2img_tools > div.form`,{inverse:!0})},y1=J.memo((()=>(m1("txt"),m1("img"),null))),b1={type:"logger",log(A){this.output("log",A)},warn(A){this.output("warn",A)},error(A){this.output("error",A)},output(A,e){console&&console[A]&&console[A].apply(console,e)}};class v1{constructor(A){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this.init(A,e)}init(A){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this.prefix=e.prefix||"i18next:",this.logger=A||b1,this.options=e,this.debug=e.debug}log(){for(var A=arguments.length,e=new Array(A),t=0;t{this.observers[A]||(this.observers[A]=new Map);const t=this.observers[A].get(e)||0;this.observers[A].set(e,t+1)})),this}off(A,e){this.observers[A]&&(e?this.observers[A].delete(e):delete this.observers[A])}emit(A){for(var e=arguments.length,t=new Array(e>1?e-1:0),n=1;n{let[e,n]=A;for(let o=0;o{let[n,o]=e;for(let r=0;r{A=t,e=n}));return t.resolve=A,t.reject=e,t}function S1(A){return null==A?"":""+A}const F1=/###/g;function N1(A,e,t){function n(A){return A&&A.indexOf("###")>-1?A.replace(F1,"."):A}function o(){return!A||"string"==typeof A}const r="string"!=typeof e?e:e.split(".");let i=0;for(;i":">",'"':""","'":"'","/":"/"};function O1(A){return"string"==typeof A?A.replace(/[&<>"'\/]/g,(A=>G1[A])):A}const U1=[" ",",","?","!",";"],K1=new class{constructor(A){this.capacity=A,this.regExpMap=new Map,this.regExpQueue=[]}getRegExp(A){const e=this.regExpMap.get(A);if(void 0!==e)return e;const t=new RegExp(A);return this.regExpQueue.length===this.capacity&&this.regExpMap.delete(this.regExpQueue.shift()),this.regExpMap.set(A,t),this.regExpQueue.push(A),t}}(20);function Y1(A,e){let t=arguments.length>2&&void 0!==arguments[2]?arguments[2]:".";if(!A)return;if(A[e])return A[e];const n=e.split(t);let o=A;for(let r=0;r-1&&i0?A.replace("_","-"):A}class J1 extends M1{constructor(A){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{ns:["translation"],defaultNS:"translation"};super(),this.data=A||{},this.options=e,void 0===this.options.keySeparator&&(this.options.keySeparator="."),void 0===this.options.ignoreJSONStructure&&(this.options.ignoreJSONStructure=!0)}addNamespaces(A){this.options.ns.indexOf(A)<0&&this.options.ns.push(A)}removeNamespaces(A){const e=this.options.ns.indexOf(A);e>-1&&this.options.ns.splice(e,1)}getResource(A,e,t){let n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};const o=void 0!==n.keySeparator?n.keySeparator:this.options.keySeparator,r=void 0!==n.ignoreJSONStructure?n.ignoreJSONStructure:this.options.ignoreJSONStructure;let i;A.indexOf(".")>-1?i=A.split("."):(i=[A,e],t&&(Array.isArray(t)?i.push(...t):"string"==typeof t&&o?i.push(...t.split(o)):i.push(t)));const a=L1(this.data,i);return!a&&!e&&!t&&A.indexOf(".")>-1&&(A=i[0],e=i[1],t=i.slice(2).join(".")),a||!r||"string"!=typeof t?a:Y1(this.data&&this.data[A]&&this.data[A][e],t,o)}addResource(A,e,t,n){let o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:{silent:!1};const r=void 0!==o.keySeparator?o.keySeparator:this.options.keySeparator;let i=[A,e];t&&(i=i.concat(r?t.split(r):t)),A.indexOf(".")>-1&&(i=A.split("."),n=e,e=i[1]),this.addNamespaces(e),R1(this.data,i,n),o.silent||this.emit("added",A,e,t,n)}addResources(A,e,t){let n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{silent:!1};for(const o in t)"string"!=typeof t[o]&&"[object Array]"!==Object.prototype.toString.apply(t[o])||this.addResource(A,e,o,t[o],{silent:!0});n.silent||this.emit("added",A,e,t)}addResourceBundle(A,e,t,n,o){let r=arguments.length>5&&void 0!==arguments[5]?arguments[5]:{silent:!1,skipCopy:!1},i=[A,e];A.indexOf(".")>-1&&(i=A.split("."),n=t,t=e,e=i[1]),this.addNamespaces(e);let a=L1(this.data,i)||{};r.skipCopy||(t=JSON.parse(JSON.stringify(t))),n?P1(a,t,o):a={...a,...t},R1(this.data,i,a),r.silent||this.emit("added",A,e,t)}removeResourceBundle(A,e){this.hasResourceBundle(A,e)&&delete this.data[A][e],this.removeNamespaces(e),this.emit("removed",A,e)}hasResourceBundle(A,e){return void 0!==this.getResource(A,e)}getResourceBundle(A,e){return e||(e=this.options.defaultNS),"v1"===this.options.compatibilityAPI?{...this.getResource(A,e)}:this.getResource(A,e)}getDataByLanguage(A){return this.data[A]}hasLanguageSomeTranslations(A){const e=this.getDataByLanguage(A);return!!(e&&Object.keys(e)||[]).find((A=>e[A]&&Object.keys(e[A]).length>0))}toJSON(){return this.data}}var j1={processors:{},addPostProcessor(A){this.processors[A.name]=A},handle(A,e,t,n,o){return A.forEach((A=>{this.processors[A]&&(e=this.processors[A].process(e,t,n,o))})),e}};const q1={};class $1 extends M1{constructor(A){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};super(),function(A,e,t){A.forEach((A=>{e[A]&&(t[A]=e[A])}))}(["resourceStore","languageUtils","pluralResolver","interpolator","backendConnector","i18nFormat","utils"],A,this),this.options=e,void 0===this.options.keySeparator&&(this.options.keySeparator="."),this.logger=k1.create("translator")}changeLanguage(A){A&&(this.language=A)}exists(A){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{interpolation:{}};if(null==A)return!1;const t=this.resolve(A,e);return t&&void 0!==t.res}extractFromKey(A,e){let t=void 0!==e.nsSeparator?e.nsSeparator:this.options.nsSeparator;void 0===t&&(t=":");const n=void 0!==e.keySeparator?e.keySeparator:this.options.keySeparator;let o=e.ns||this.options.defaultNS||[];const r=t&&A.indexOf(t)>-1,i=!(this.options.userDefinedKeySeparator||e.keySeparator||this.options.userDefinedNsSeparator||e.nsSeparator||function(A,e,t){e=e||"",t=t||"";const n=U1.filter((A=>e.indexOf(A)<0&&t.indexOf(A)<0));if(0===n.length)return!0;const o=K1.getRegExp(`(${n.map((A=>"?"===A?"\\?":A)).join("|")})`);let r=!o.test(A);if(!r){const e=A.indexOf(t);e>0&&!o.test(A.substring(0,e))&&(r=!0)}return r}(A,t,n));if(r&&!i){const e=A.match(this.interpolator.nestingRegexp);if(e&&e.length>0)return{key:A,namespaces:o};const r=A.split(t);(t!==n||t===n&&this.options.ns.indexOf(r[0])>-1)&&(o=r.shift()),A=r.join(n)}return"string"==typeof o&&(o=[o]),{key:A,namespaces:o}}translate(A,e,t){if("object"!=typeof e&&this.options.overloadTranslationOptionHandler&&(e=this.options.overloadTranslationOptionHandler(arguments)),"object"==typeof e&&(e={...e}),e||(e={}),null==A)return"";Array.isArray(A)||(A=[String(A)]);const n=void 0!==e.returnDetails?e.returnDetails:this.options.returnDetails,o=void 0!==e.keySeparator?e.keySeparator:this.options.keySeparator,{key:r,namespaces:i}=this.extractFromKey(A[A.length-1],e),a=i[i.length-1],s=e.lng||this.language,l=e.appendNamespaceToCIMode||this.options.appendNamespaceToCIMode;if(s&&"cimode"===s.toLowerCase()){if(l){const A=e.nsSeparator||this.options.nsSeparator;return n?{res:`${a}${A}${r}`,usedKey:r,exactUsedKey:r,usedLng:s,usedNS:a,usedParams:this.getUsedParamsDetails(e)}:`${a}${A}${r}`}return n?{res:r,usedKey:r,exactUsedKey:r,usedLng:s,usedNS:a,usedParams:this.getUsedParamsDetails(e)}:r}const g=this.resolve(A,e);let c=g&&g.res;const u=g&&g.usedKey||r,B=g&&g.exactUsedKey||r,Q=Object.prototype.toString.apply(c),E=void 0!==e.joinArrays?e.joinArrays:this.options.joinArrays,C=!this.i18nFormat||this.i18nFormat.handleAsObject;if(C&&c&&("string"!=typeof c&&"boolean"!=typeof c&&"number"!=typeof c)&&["[object Number]","[object Function]","[object RegExp]"].indexOf(Q)<0&&("string"!=typeof E||"[object Array]"!==Q)){if(!e.returnObjects&&!this.options.returnObjects){this.options.returnedObjectHandler||this.logger.warn("accessing an object - but returnObjects options is not enabled!");const A=this.options.returnedObjectHandler?this.options.returnedObjectHandler(u,c,{...e,ns:i}):`key '${r} (${this.language})' returned an object instead of string.`;return n?(g.res=A,g.usedParams=this.getUsedParamsDetails(e),g):A}if(o){const A="[object Array]"===Q,t=A?[]:{},n=A?B:u;for(const r in c)if(Object.prototype.hasOwnProperty.call(c,r)){const A=`${n}${o}${r}`;t[r]=this.translate(A,{...e,joinArrays:!1,ns:i}),t[r]===A&&(t[r]=c[r])}c=t}}else if(C&&"string"==typeof E&&"[object Array]"===Q)c=c.join(E),c&&(c=this.extendTranslation(c,A,e,t));else{let n=!1,i=!1;const l=void 0!==e.count&&"string"!=typeof e.count,u=$1.hasDefaultValue(e),B=l?this.pluralResolver.getSuffix(s,e.count,e):"",Q=e.ordinal&&l?this.pluralResolver.getSuffix(s,e.count,{ordinal:!1}):"",E=l&&!e.ordinal&&0===e.count&&this.pluralResolver.shouldUseIntlApi(),C=E&&e[`defaultValue${this.options.pluralSeparator}zero`]||e[`defaultValue${B}`]||e[`defaultValue${Q}`]||e.defaultValue;!this.isValidLookup(c)&&u&&(n=!0,c=C),this.isValidLookup(c)||(i=!0,c=r);const d=(e.missingKeyNoValueFallbackToKey||this.options.missingKeyNoValueFallbackToKey)&&i?void 0:c,I=u&&C!==c&&this.options.updateMissing;if(i||n||I){if(this.logger.log(I?"updateKey":"missingKey",s,a,r,I?C:c),o){const A=this.resolve(r,{...e,keySeparator:!1});A&&A.res&&this.logger.warn("Seems the loaded translations were in flat JSON format instead of nested. Either set keySeparator: false on init or make sure your translations are published in nested format.")}let A=[];const t=this.languageUtils.getFallbackCodes(this.options.fallbackLng,e.lng||this.language);if("fallback"===this.options.saveMissingTo&&t&&t[0])for(let e=0;e{const o=u&&n!==c?n:d;this.options.missingKeyHandler?this.options.missingKeyHandler(A,a,t,o,I,e):this.backendConnector&&this.backendConnector.saveMissing&&this.backendConnector.saveMissing(A,a,t,o,I,e),this.emit("missingKey",A,a,t,c)};this.options.saveMissing&&(this.options.saveMissingPlurals&&l?A.forEach((A=>{const t=this.pluralResolver.getSuffixes(A,e);E&&e[`defaultValue${this.options.pluralSeparator}zero`]&&t.indexOf(`${this.options.pluralSeparator}zero`)<0&&t.push(`${this.options.pluralSeparator}zero`),t.forEach((t=>{n([A],r+t,e[`defaultValue${t}`]||C)}))})):n(A,r,C))}c=this.extendTranslation(c,A,e,g,t),i&&c===r&&this.options.appendNamespaceToMissingKey&&(c=`${a}:${r}`),(i||n)&&this.options.parseMissingKeyHandler&&(c="v1"!==this.options.compatibilityAPI?this.options.parseMissingKeyHandler(this.options.appendNamespaceToMissingKey?`${a}:${r}`:r,n?c:void 0):this.options.parseMissingKeyHandler(c))}return n?(g.res=c,g.usedParams=this.getUsedParamsDetails(e),g):c}extendTranslation(A,e,t,n,o){var r=this;if(this.i18nFormat&&this.i18nFormat.parse)A=this.i18nFormat.parse(A,{...this.options.interpolation.defaultVariables,...t},t.lng||this.language||n.usedLng,n.usedNS,n.usedKey,{resolved:n});else if(!t.skipInterpolation){t.interpolation&&this.interpolator.init({...t,interpolation:{...this.options.interpolation,...t.interpolation}});const i="string"==typeof A&&(t&&t.interpolation&&void 0!==t.interpolation.skipOnVariables?t.interpolation.skipOnVariables:this.options.interpolation.skipOnVariables);let a;if(i){const e=A.match(this.interpolator.nestingRegexp);a=e&&e.length}let s=t.replace&&"string"!=typeof t.replace?t.replace:t;if(this.options.interpolation.defaultVariables&&(s={...this.options.interpolation.defaultVariables,...s}),A=this.interpolator.interpolate(A,s,t.lng||this.language,t),i){const e=A.match(this.interpolator.nestingRegexp);a<(e&&e.length)&&(t.nest=!1)}!t.lng&&"v1"!==this.options.compatibilityAPI&&n&&n.res&&(t.lng=n.usedLng),!1!==t.nest&&(A=this.interpolator.nest(A,(function(){for(var A=arguments.length,n=new Array(A),i=0;i1&&void 0!==arguments[1]?arguments[1]:{};return"string"==typeof A&&(A=[A]),A.forEach((A=>{if(this.isValidLookup(e))return;const a=this.extractFromKey(A,i),s=a.key;t=s;let l=a.namespaces;this.options.fallbackNS&&(l=l.concat(this.options.fallbackNS));const g=void 0!==i.count&&"string"!=typeof i.count,c=g&&!i.ordinal&&0===i.count&&this.pluralResolver.shouldUseIntlApi(),u=void 0!==i.context&&("string"==typeof i.context||"number"==typeof i.context)&&""!==i.context,B=i.lngs?i.lngs:this.languageUtils.toResolveHierarchy(i.lng||this.language,i.fallbackLng);l.forEach((A=>{this.isValidLookup(e)||(r=A,!q1[`${B[0]}-${A}`]&&this.utils&&this.utils.hasLoadedNamespace&&!this.utils.hasLoadedNamespace(r)&&(q1[`${B[0]}-${A}`]=!0,this.logger.warn(`key "${t}" for languages "${B.join(", ")}" won't get resolved as namespace "${r}" was not yet loaded`,"This means something IS WRONG in your setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!")),B.forEach((t=>{if(this.isValidLookup(e))return;o=t;const r=[s];if(this.i18nFormat&&this.i18nFormat.addLookupKeys)this.i18nFormat.addLookupKeys(r,s,t,A,i);else{let A;g&&(A=this.pluralResolver.getSuffix(t,i.count,i));const e=`${this.options.pluralSeparator}zero`,n=`${this.options.pluralSeparator}ordinal${this.options.pluralSeparator}`;if(g&&(r.push(s+A),i.ordinal&&0===A.indexOf(n)&&r.push(s+A.replace(n,this.options.pluralSeparator)),c&&r.push(s+e)),u){const t=`${s}${this.options.contextSeparator}${i.context}`;r.push(t),g&&(r.push(t+A),i.ordinal&&0===A.indexOf(n)&&r.push(t+A.replace(n,this.options.pluralSeparator)),c&&r.push(t+e))}}let a;for(;a=r.pop();)this.isValidLookup(e)||(n=a,e=this.getResource(t,A,a,i))})))}))})),{res:e,usedKey:t,exactUsedKey:n,usedLng:o,usedNS:r}}isValidLookup(A){return!(void 0===A||!this.options.returnNull&&null===A||!this.options.returnEmptyString&&""===A)}getResource(A,e,t){let n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};return this.i18nFormat&&this.i18nFormat.getResource?this.i18nFormat.getResource(A,e,t,n):this.resourceStore.getResource(A,e,t,n)}getUsedParamsDetails(){let A=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const e=["defaultValue","ordinal","context","replace","lng","lngs","fallbackLng","ns","keySeparator","nsSeparator","returnObjects","returnDetails","joinArrays","postProcess","interpolation"],t=A.replace&&"string"!=typeof A.replace;let n=t?A.replace:A;if(t&&void 0!==A.count&&(n.count=A.count),this.options.interpolation.defaultVariables&&(n={...this.options.interpolation.defaultVariables,...n}),!t){n={...n};for(const A of e)delete n[A]}return n}static hasDefaultValue(A){const e="defaultValue";for(const t in A)if(Object.prototype.hasOwnProperty.call(A,t)&&e===t.substring(0,12)&&void 0!==A[t])return!0;return!1}}function z1(A){return A.charAt(0).toUpperCase()+A.slice(1)}class W1{constructor(A){this.options=A,this.supportedLngs=this.options.supportedLngs||!1,this.logger=k1.create("languageUtils")}getScriptPartFromCode(A){if(!(A=T1(A))||A.indexOf("-")<0)return null;const e=A.split("-");return 2===e.length?null:(e.pop(),"x"===e[e.length-1].toLowerCase()?null:this.formatLanguageCode(e.join("-")))}getLanguagePartFromCode(A){if(!(A=T1(A))||A.indexOf("-")<0)return A;const e=A.split("-");return this.formatLanguageCode(e[0])}formatLanguageCode(A){if("string"==typeof A&&A.indexOf("-")>-1){const e=["hans","hant","latn","cyrl","cans","mong","arab"];let t=A.split("-");return this.options.lowerCaseLng?t=t.map((A=>A.toLowerCase())):2===t.length?(t[0]=t[0].toLowerCase(),t[1]=t[1].toUpperCase(),e.indexOf(t[1].toLowerCase())>-1&&(t[1]=z1(t[1].toLowerCase()))):3===t.length&&(t[0]=t[0].toLowerCase(),2===t[1].length&&(t[1]=t[1].toUpperCase()),"sgn"!==t[0]&&2===t[2].length&&(t[2]=t[2].toUpperCase()),e.indexOf(t[1].toLowerCase())>-1&&(t[1]=z1(t[1].toLowerCase())),e.indexOf(t[2].toLowerCase())>-1&&(t[2]=z1(t[2].toLowerCase()))),t.join("-")}return this.options.cleanCode||this.options.lowerCaseLng?A.toLowerCase():A}isSupportedCode(A){return("languageOnly"===this.options.load||this.options.nonExplicitSupportedLngs)&&(A=this.getLanguagePartFromCode(A)),!this.supportedLngs||!this.supportedLngs.length||this.supportedLngs.indexOf(A)>-1}getBestMatchFromCodes(A){if(!A)return null;let e;return A.forEach((A=>{if(e)return;const t=this.formatLanguageCode(A);this.options.supportedLngs&&!this.isSupportedCode(t)||(e=t)})),!e&&this.options.supportedLngs&&A.forEach((A=>{if(e)return;const t=this.getLanguagePartFromCode(A);if(this.isSupportedCode(t))return e=t;e=this.options.supportedLngs.find((A=>A===t?A:A.indexOf("-")<0&&t.indexOf("-")<0?void 0:A.indexOf("-")>0&&t.indexOf("-")<0&&A.substring(0,A.indexOf("-"))===t||0===A.indexOf(t)&&t.length>1?A:void 0))})),e||(e=this.getFallbackCodes(this.options.fallbackLng)[0]),e}getFallbackCodes(A,e){if(!A)return[];if("function"==typeof A&&(A=A(e)),"string"==typeof A&&(A=[A]),"[object Array]"===Object.prototype.toString.apply(A))return A;if(!e)return A.default||[];let t=A[e];return t||(t=A[this.getScriptPartFromCode(e)]),t||(t=A[this.formatLanguageCode(e)]),t||(t=A[this.getLanguagePartFromCode(e)]),t||(t=A.default),t||[]}toResolveHierarchy(A,e){const t=this.getFallbackCodes(e||this.options.fallbackLng||[],A),n=[],o=A=>{A&&(this.isSupportedCode(A)?n.push(A):this.logger.warn(`rejecting language code not found in supportedLngs: ${A}`))};return"string"==typeof A&&(A.indexOf("-")>-1||A.indexOf("_")>-1)?("languageOnly"!==this.options.load&&o(this.formatLanguageCode(A)),"languageOnly"!==this.options.load&&"currentOnly"!==this.options.load&&o(this.getScriptPartFromCode(A)),"currentOnly"!==this.options.load&&o(this.getLanguagePartFromCode(A))):"string"==typeof A&&o(this.formatLanguageCode(A)),t.forEach((A=>{n.indexOf(A)<0&&o(this.formatLanguageCode(A))})),n}}let _1=[{lngs:["ach","ak","am","arn","br","fil","gun","ln","mfe","mg","mi","oc","pt","pt-BR","tg","tl","ti","tr","uz","wa"],nr:[1,2],fc:1},{lngs:["af","an","ast","az","bg","bn","ca","da","de","dev","el","en","eo","es","et","eu","fi","fo","fur","fy","gl","gu","ha","hi","hu","hy","ia","it","kk","kn","ku","lb","mai","ml","mn","mr","nah","nap","nb","ne","nl","nn","no","nso","pa","pap","pms","ps","pt-PT","rm","sco","se","si","so","son","sq","sv","sw","ta","te","tk","ur","yo"],nr:[1,2],fc:2},{lngs:["ay","bo","cgg","fa","ht","id","ja","jbo","ka","km","ko","ky","lo","ms","sah","su","th","tt","ug","vi","wo","zh"],nr:[1],fc:3},{lngs:["be","bs","cnr","dz","hr","ru","sr","uk"],nr:[1,2,5],fc:4},{lngs:["ar"],nr:[0,1,2,3,11,100],fc:5},{lngs:["cs","sk"],nr:[1,2,5],fc:6},{lngs:["csb","pl"],nr:[1,2,5],fc:7},{lngs:["cy"],nr:[1,2,3,8],fc:8},{lngs:["fr"],nr:[1,2],fc:9},{lngs:["ga"],nr:[1,2,3,7,11],fc:10},{lngs:["gd"],nr:[1,2,3,20],fc:11},{lngs:["is"],nr:[1,2],fc:12},{lngs:["jv"],nr:[0,1],fc:13},{lngs:["kw"],nr:[1,2,3,4],fc:14},{lngs:["lt"],nr:[1,2,10],fc:15},{lngs:["lv"],nr:[1,2,0],fc:16},{lngs:["mk"],nr:[1,2],fc:17},{lngs:["mnk"],nr:[0,1,2],fc:18},{lngs:["mt"],nr:[1,2,11,20],fc:19},{lngs:["or"],nr:[2,1],fc:2},{lngs:["ro"],nr:[1,2,20],fc:20},{lngs:["sl"],nr:[5,1,2,3],fc:21},{lngs:["he","iw"],nr:[1,2,20,21],fc:22}],X1={1:function(A){return Number(A>1)},2:function(A){return Number(1!=A)},3:function(A){return 0},4:function(A){return Number(A%10==1&&A%100!=11?0:A%10>=2&&A%10<=4&&(A%100<10||A%100>=20)?1:2)},5:function(A){return Number(0==A?0:1==A?1:2==A?2:A%100>=3&&A%100<=10?3:A%100>=11?4:5)},6:function(A){return Number(1==A?0:A>=2&&A<=4?1:2)},7:function(A){return Number(1==A?0:A%10>=2&&A%10<=4&&(A%100<10||A%100>=20)?1:2)},8:function(A){return Number(1==A?0:2==A?1:8!=A&&11!=A?2:3)},9:function(A){return Number(A>=2)},10:function(A){return Number(1==A?0:2==A?1:A<7?2:A<11?3:4)},11:function(A){return Number(1==A||11==A?0:2==A||12==A?1:A>2&&A<20?2:3)},12:function(A){return Number(A%10!=1||A%100==11)},13:function(A){return Number(0!==A)},14:function(A){return Number(1==A?0:2==A?1:3==A?2:3)},15:function(A){return Number(A%10==1&&A%100!=11?0:A%10>=2&&(A%100<10||A%100>=20)?1:2)},16:function(A){return Number(A%10==1&&A%100!=11?0:0!==A?1:2)},17:function(A){return Number(1==A||A%10==1&&A%100!=11?0:1)},18:function(A){return Number(0==A?0:1==A?1:2)},19:function(A){return Number(1==A?0:0==A||A%100>1&&A%100<11?1:A%100>10&&A%100<20?2:3)},20:function(A){return Number(1==A?0:0==A||A%100>0&&A%100<20?1:2)},21:function(A){return Number(A%100==1?1:A%100==2?2:A%100==3||A%100==4?3:0)},22:function(A){return Number(1==A?0:2==A?1:(A<0||A>10)&&A%10==0?2:3)}};const V1=["v1","v2","v3"],Z1=["v4"],A8={zero:0,one:1,two:2,few:3,many:4,other:5};class e8{constructor(A){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this.languageUtils=A,this.options=e,this.logger=k1.create("pluralResolver"),this.options.compatibilityJSON&&!Z1.includes(this.options.compatibilityJSON)||"undefined"!=typeof Intl&&Intl.PluralRules||(this.options.compatibilityJSON="v3",this.logger.error("Your environment seems not to be Intl API compatible, use an Intl.PluralRules polyfill. Will fallback to the compatibilityJSON v3 format handling.")),this.rules=function(){const A={};return _1.forEach((e=>{e.lngs.forEach((t=>{A[t]={numbers:e.nr,plurals:X1[e.fc]}}))})),A}()}addRule(A,e){this.rules[A]=e}getRule(A){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(this.shouldUseIntlApi())try{return new Intl.PluralRules(T1("dev"===A?"en":A),{type:e.ordinal?"ordinal":"cardinal"})}catch(t){return}return this.rules[A]||this.rules[this.languageUtils.getLanguagePartFromCode(A)]}needsPlural(A){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const t=this.getRule(A,e);return this.shouldUseIntlApi()?t&&t.resolvedOptions().pluralCategories.length>1:t&&t.numbers.length>1}getPluralFormsOfKey(A,e){let t=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return this.getSuffixes(A,t).map((A=>`${e}${A}`))}getSuffixes(A){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const t=this.getRule(A,e);return t?this.shouldUseIntlApi()?t.resolvedOptions().pluralCategories.sort(((A,e)=>A8[A]-A8[e])).map((A=>`${this.options.prepend}${e.ordinal?`ordinal${this.options.prepend}`:""}${A}`)):t.numbers.map((t=>this.getSuffix(A,t,e))):[]}getSuffix(A,e){let t=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};const n=this.getRule(A,t);return n?this.shouldUseIntlApi()?`${this.options.prepend}${t.ordinal?`ordinal${this.options.prepend}`:""}${n.select(e)}`:this.getSuffixRetroCompatible(n,e):(this.logger.warn(`no plural rule found for: ${A}`),"")}getSuffixRetroCompatible(A,e){const t=A.noAbs?A.plurals(e):A.plurals(Math.abs(e));let n=A.numbers[t];this.options.simplifyPluralSuffix&&2===A.numbers.length&&1===A.numbers[0]&&(2===n?n="plural":1===n&&(n=""));const o=()=>this.options.prepend&&n.toString()?this.options.prepend+n.toString():n.toString();return"v1"===this.options.compatibilityJSON?1===n?"":"number"==typeof n?`_plural_${n.toString()}`:o():"v2"===this.options.compatibilityJSON||this.options.simplifyPluralSuffix&&2===A.numbers.length&&1===A.numbers[0]?o():this.options.prepend&&t.toString()?this.options.prepend+t.toString():t.toString()}shouldUseIntlApi(){return!V1.includes(this.options.compatibilityJSON)}}function t8(A,e,t){let n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:".",o=!(arguments.length>4&&void 0!==arguments[4])||arguments[4],r=function(A,e,t){const n=L1(A,t);return void 0!==n?n:L1(e,t)}(A,e,t);return!r&&o&&"string"==typeof t&&(r=Y1(A,t,n),void 0===r&&(r=Y1(e,t,n))),r}class n8{constructor(){let A=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.logger=k1.create("interpolator"),this.options=A,this.format=A.interpolation&&A.interpolation.format||(A=>A),this.init(A)}init(){let A=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};A.interpolation||(A.interpolation={escapeValue:!0});const{escape:e,escapeValue:t,useRawValueToEscape:n,prefix:o,prefixEscaped:r,suffix:i,suffixEscaped:a,formatSeparator:s,unescapeSuffix:l,unescapePrefix:g,nestingPrefix:c,nestingPrefixEscaped:u,nestingSuffix:B,nestingSuffixEscaped:Q,nestingOptionsSeparator:E,maxReplaces:C,alwaysFormat:d}=A.interpolation;this.escape=void 0!==e?e:O1,this.escapeValue=void 0===t||t,this.useRawValueToEscape=void 0!==n&&n,this.prefix=o?H1(o):r||"{{",this.suffix=i?H1(i):a||"}}",this.formatSeparator=s||",",this.unescapePrefix=l?"":g||"-",this.unescapeSuffix=this.unescapePrefix?"":l||"",this.nestingPrefix=c?H1(c):u||H1("$t("),this.nestingSuffix=B?H1(B):Q||H1(")"),this.nestingOptionsSeparator=E||",",this.maxReplaces=C||1e3,this.alwaysFormat=void 0!==d&&d,this.resetRegExp()}reset(){this.options&&this.init(this.options)}resetRegExp(){const A=(A,e)=>A&&A.source===e?(A.lastIndex=0,A):new RegExp(e,"g");this.regexp=A(this.regexp,`${this.prefix}(.+?)${this.suffix}`),this.regexpUnescape=A(this.regexpUnescape,`${this.prefix}${this.unescapePrefix}(.+?)${this.unescapeSuffix}${this.suffix}`),this.nestingRegexp=A(this.nestingRegexp,`${this.nestingPrefix}(.+?)${this.nestingSuffix}`)}interpolate(A,e,t,n){let o,r,i;const a=this.options&&this.options.interpolation&&this.options.interpolation.defaultVariables||{};function s(A){return A.replace(/\$/g,"$$$$")}const l=A=>{if(A.indexOf(this.formatSeparator)<0){const o=t8(e,a,A,this.options.keySeparator,this.options.ignoreJSONStructure);return this.alwaysFormat?this.format(o,void 0,t,{...n,...e,interpolationkey:A}):o}const o=A.split(this.formatSeparator),r=o.shift().trim(),i=o.join(this.formatSeparator).trim();return this.format(t8(e,a,r,this.options.keySeparator,this.options.ignoreJSONStructure),i,t,{...n,...e,interpolationkey:r})};this.resetRegExp();const g=n&&n.missingInterpolationHandler||this.options.missingInterpolationHandler,c=n&&n.interpolation&&void 0!==n.interpolation.skipOnVariables?n.interpolation.skipOnVariables:this.options.interpolation.skipOnVariables;return[{regex:this.regexpUnescape,safeValue:A=>s(A)},{regex:this.regexp,safeValue:A=>this.escapeValue?s(this.escape(A)):s(A)}].forEach((e=>{for(i=0;o=e.regex.exec(A);){const t=o[1].trim();if(r=l(t),void 0===r)if("function"==typeof g){const e=g(A,o,n);r="string"==typeof e?e:""}else if(n&&Object.prototype.hasOwnProperty.call(n,t))r="";else{if(c){r=o[0];continue}this.logger.warn(`missed to pass in variable ${t} for interpolating ${A}`),r=""}else"string"==typeof r||this.useRawValueToEscape||(r=S1(r));const a=e.safeValue(r);if(A=A.replace(o[0],a),c?(e.regex.lastIndex+=r.length,e.regex.lastIndex-=o[0].length):e.regex.lastIndex=0,i++,i>=this.maxReplaces)break}})),A}nest(A,e){let t,n,o,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};function i(A,e){const t=this.nestingOptionsSeparator;if(A.indexOf(t)<0)return A;const n=A.split(new RegExp(`${t}[ ]*{`));let r=`{${n[1]}`;A=n[0],r=this.interpolate(r,o);const i=r.match(/'/g),a=r.match(/"/g);(i&&i.length%2==0&&!a||a.length%2!=0)&&(r=r.replace(/'/g,'"'));try{o=JSON.parse(r),e&&(o={...e,...o})}catch(R3){return this.logger.warn(`failed parsing options string in nesting for key ${A}`,R3),`${A}${t}${r}`}return o.defaultValue&&o.defaultValue.indexOf(this.prefix)>-1&&delete o.defaultValue,A}for(;t=this.nestingRegexp.exec(A);){let a=[];o={...r},o=o.replace&&"string"!=typeof o.replace?o.replace:o,o.applyPostProcessor=!1,delete o.defaultValue;let s=!1;if(-1!==t[0].indexOf(this.formatSeparator)&&!/{.*}/.test(t[1])){const A=t[1].split(this.formatSeparator).map((A=>A.trim()));t[1]=A.shift(),a=A,s=!0}if(n=e(i.call(this,t[1].trim(),o),o),n&&t[0]===A&&"string"!=typeof n)return n;"string"!=typeof n&&(n=S1(n)),n||(this.logger.warn(`missed to resolve ${t[1]} for nesting ${A}`),n=""),s&&(n=a.reduce(((A,e)=>this.format(A,e,r.lng,{...r,interpolationkey:t[1].trim()})),n.trim())),A=A.replace(t[0],n),this.regexp.lastIndex=0}return A}}function o8(A){const e={};return function(t,n,o){const r=n+JSON.stringify(o);let i=e[r];return i||(i=A(T1(n),o),e[r]=i),i(t)}}class r8{constructor(){let A=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.logger=k1.create("formatter"),this.options=A,this.formats={number:o8(((A,e)=>{const t=new Intl.NumberFormat(A,{...e});return A=>t.format(A)})),currency:o8(((A,e)=>{const t=new Intl.NumberFormat(A,{...e,style:"currency"});return A=>t.format(A)})),datetime:o8(((A,e)=>{const t=new Intl.DateTimeFormat(A,{...e});return A=>t.format(A)})),relativetime:o8(((A,e)=>{const t=new Intl.RelativeTimeFormat(A,{...e});return A=>t.format(A,e.range||"day")})),list:o8(((A,e)=>{const t=new Intl.ListFormat(A,{...e});return A=>t.format(A)}))},this.init(A)}init(A){const e=(arguments.length>1&&void 0!==arguments[1]?arguments[1]:{interpolation:{}}).interpolation;this.formatSeparator=e.formatSeparator?e.formatSeparator:e.formatSeparator||","}add(A,e){this.formats[A.toLowerCase().trim()]=e}addCached(A,e){this.formats[A.toLowerCase().trim()]=o8(e)}format(A,e,t){let n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};return e.split(this.formatSeparator).reduce(((A,e)=>{const{formatName:o,formatOptions:r}=function(A){let e=A.toLowerCase().trim();const t={};if(A.indexOf("(")>-1){const n=A.split("(");e=n[0].toLowerCase().trim();const o=n[1].substring(0,n[1].length-1);"currency"===e&&o.indexOf(":")<0?t.currency||(t.currency=o.trim()):"relativetime"===e&&o.indexOf(":")<0?t.range||(t.range=o.trim()):o.split(";").forEach((A=>{if(!A)return;const[e,...n]=A.split(":"),o=n.join(":").trim().replace(/^'+|'+$/g,"");t[e.trim()]||(t[e.trim()]=o),"false"===o&&(t[e.trim()]=!1),"true"===o&&(t[e.trim()]=!0),isNaN(o)||(t[e.trim()]=parseInt(o,10))}))}return{formatName:e,formatOptions:t}}(e);if(this.formats[o]){let e=A;try{const i=n&&n.formatParams&&n.formatParams[n.interpolationkey]||{},a=i.locale||i.lng||n.locale||n.lng||t;e=this.formats[o](A,a,{...r,...n,...i})}catch(i){this.logger.warn(i)}return e}return this.logger.warn(`there was no format function for ${o}`),A}),A)}}class i8 extends M1{constructor(A,e,t){let n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};super(),this.backend=A,this.store=e,this.services=t,this.languageUtils=t.languageUtils,this.options=n,this.logger=k1.create("backendConnector"),this.waitingReads=[],this.maxParallelReads=n.maxParallelReads||10,this.readingCalls=0,this.maxRetries=n.maxRetries>=0?n.maxRetries:5,this.retryTimeout=n.retryTimeout>=1?n.retryTimeout:350,this.state={},this.queue=[],this.backend&&this.backend.init&&this.backend.init(t,n.backend,n)}queueLoad(A,e,t,n){const o={},r={},i={},a={};return A.forEach((A=>{let n=!0;e.forEach((e=>{const i=`${A}|${e}`;!t.reload&&this.store.hasResourceBundle(A,e)?this.state[i]=2:this.state[i]<0||(1===this.state[i]?void 0===r[i]&&(r[i]=!0):(this.state[i]=1,n=!1,void 0===r[i]&&(r[i]=!0),void 0===o[i]&&(o[i]=!0),void 0===a[e]&&(a[e]=!0)))})),n||(i[A]=!0)})),(Object.keys(o).length||Object.keys(r).length)&&this.queue.push({pending:r,pendingCount:Object.keys(r).length,loaded:{},errors:[],callback:n}),{toLoad:Object.keys(o),pending:Object.keys(r),toLoadLanguages:Object.keys(i),toLoadNamespaces:Object.keys(a)}}loaded(A,e,t){const n=A.split("|"),o=n[0],r=n[1];e&&this.emit("failedLoading",o,r,e),t&&this.store.addResourceBundle(o,r,t,void 0,void 0,{skipCopy:!0}),this.state[A]=e?-1:2;const i={};this.queue.forEach((t=>{!function(A,e,t,n){const{obj:o,k:r}=N1(A,e,Object);o[r]=o[r]||[],o[r].push(t)}(t.loaded,[o],r),function(A,e){void 0!==A.pending[e]&&(delete A.pending[e],A.pendingCount--)}(t,A),e&&t.errors.push(e),0!==t.pendingCount||t.done||(Object.keys(t.loaded).forEach((A=>{i[A]||(i[A]={});const e=t.loaded[A];e.length&&e.forEach((e=>{void 0===i[A][e]&&(i[A][e]=!0)}))})),t.done=!0,t.errors.length?t.callback(t.errors):t.callback())})),this.emit("loaded",i),this.queue=this.queue.filter((A=>!A.done))}read(A,e,t){let n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:0,o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:this.retryTimeout,r=arguments.length>5?arguments[5]:void 0;if(!A.length)return r(null,{});if(this.readingCalls>=this.maxParallelReads)return void this.waitingReads.push({lng:A,ns:e,fcName:t,tried:n,wait:o,callback:r});this.readingCalls++;const i=(i,a)=>{if(this.readingCalls--,this.waitingReads.length>0){const A=this.waitingReads.shift();this.read(A.lng,A.ns,A.fcName,A.tried,A.wait,A.callback)}i&&a&&n{this.read.call(this,A,e,t,n+1,2*o,r)}),o):r(i,a)},a=this.backend[t].bind(this.backend);if(2!==a.length)return a(A,e,i);try{const t=a(A,e);t&&"function"==typeof t.then?t.then((A=>i(null,A))).catch(i):i(null,t)}catch(s){i(s)}}prepareLoading(A,e){let t=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},n=arguments.length>3?arguments[3]:void 0;if(!this.backend)return this.logger.warn("No backend was added via i18next.use. Will not load resources."),n&&n();"string"==typeof A&&(A=this.languageUtils.toResolveHierarchy(A)),"string"==typeof e&&(e=[e]);const o=this.queueLoad(A,e,t,n);if(!o.toLoad.length)return o.pending.length||n(),null;o.toLoad.forEach((A=>{this.loadOne(A)}))}load(A,e,t){this.prepareLoading(A,e,{},t)}reload(A,e,t){this.prepareLoading(A,e,{reload:!0},t)}loadOne(A){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";const t=A.split("|"),n=t[0],o=t[1];this.read(n,o,"read",void 0,void 0,((t,r)=>{t&&this.logger.warn(`${e}loading namespace ${o} for language ${n} failed`,t),!t&&r&&this.logger.log(`${e}loaded namespace ${o} for language ${n}`,r),this.loaded(A,t,r)}))}saveMissing(A,e,t,n,o){let r=arguments.length>5&&void 0!==arguments[5]?arguments[5]:{},i=arguments.length>6&&void 0!==arguments[6]?arguments[6]:()=>{};if(this.services.utils&&this.services.utils.hasLoadedNamespace&&!this.services.utils.hasLoadedNamespace(e))this.logger.warn(`did not save key "${t}" as the namespace "${e}" was not yet loaded`,"This means something IS WRONG in your setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!");else if(null!=t&&""!==t){if(this.backend&&this.backend.create){const s={...r,isUpdate:o},l=this.backend.create.bind(this.backend);if(l.length<6)try{let o;o=5===l.length?l(A,e,t,n,s):l(A,e,t,n),o&&"function"==typeof o.then?o.then((A=>i(null,A))).catch(i):i(null,o)}catch(a){i(a)}else l(A,e,t,n,i,s)}A&&A[0]&&this.store.addResource(A[0],e,t,n)}}}function a8(){return{debug:!1,initImmediate:!0,ns:["translation"],defaultNS:["translation"],fallbackLng:["dev"],fallbackNS:!1,supportedLngs:!1,nonExplicitSupportedLngs:!1,load:"all",preload:!1,simplifyPluralSuffix:!0,keySeparator:".",nsSeparator:":",pluralSeparator:"_",contextSeparator:"_",partialBundledLanguages:!1,saveMissing:!1,updateMissing:!1,saveMissingTo:"fallback",saveMissingPlurals:!0,missingKeyHandler:!1,missingInterpolationHandler:!1,postProcess:!1,postProcessPassResolved:!1,returnNull:!1,returnEmptyString:!0,returnObjects:!1,joinArrays:!1,returnedObjectHandler:!1,parseMissingKeyHandler:!1,appendNamespaceToMissingKey:!1,appendNamespaceToCIMode:!1,overloadTranslationOptionHandler:function(A){let e={};if("object"==typeof A[1]&&(e=A[1]),"string"==typeof A[1]&&(e.defaultValue=A[1]),"string"==typeof A[2]&&(e.tDescription=A[2]),"object"==typeof A[2]||"object"==typeof A[3]){const t=A[3]||A[2];Object.keys(t).forEach((A=>{e[A]=t[A]}))}return e},interpolation:{escapeValue:!0,format:A=>A,prefix:"{{",suffix:"}}",formatSeparator:",",unescapePrefix:"-",nestingPrefix:"$t(",nestingSuffix:")",nestingOptionsSeparator:",",maxReplaces:1e3,skipOnVariables:!0}}}function s8(A){return"string"==typeof A.ns&&(A.ns=[A.ns]),"string"==typeof A.fallbackLng&&(A.fallbackLng=[A.fallbackLng]),"string"==typeof A.fallbackNS&&(A.fallbackNS=[A.fallbackNS]),A.supportedLngs&&A.supportedLngs.indexOf("cimode")<0&&(A.supportedLngs=A.supportedLngs.concat(["cimode"])),A}function l8(){}class g8 extends M1{constructor(){let A=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=arguments.length>1?arguments[1]:void 0;var t;if(super(),this.options=s8(A),this.services={},this.logger=k1,this.modules={external:[]},t=this,Object.getOwnPropertyNames(Object.getPrototypeOf(t)).forEach((A=>{"function"==typeof t[A]&&(t[A]=t[A].bind(t))})),e&&!this.isInitialized&&!A.isClone){if(!this.options.initImmediate)return this.init(A,e),this;setTimeout((()=>{this.init(A,e)}),0)}}init(){var A=this;let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0;this.isInitializing=!0,"function"==typeof e&&(t=e,e={}),!e.defaultNS&&!1!==e.defaultNS&&e.ns&&("string"==typeof e.ns?e.defaultNS=e.ns:e.ns.indexOf("translation")<0&&(e.defaultNS=e.ns[0]));const n=a8();function o(A){return A?"function"==typeof A?new A:A:null}if(this.options={...n,...this.options,...s8(e)},"v1"!==this.options.compatibilityAPI&&(this.options.interpolation={...n.interpolation,...this.options.interpolation}),void 0!==e.keySeparator&&(this.options.userDefinedKeySeparator=e.keySeparator),void 0!==e.nsSeparator&&(this.options.userDefinedNsSeparator=e.nsSeparator),!this.options.isClone){let e;this.modules.logger?k1.init(o(this.modules.logger),this.options):k1.init(null,this.options),this.modules.formatter?e=this.modules.formatter:"undefined"!=typeof Intl&&(e=r8);const t=new W1(this.options);this.store=new J1(this.options.resources,this.options);const r=this.services;r.logger=k1,r.resourceStore=this.store,r.languageUtils=t,r.pluralResolver=new e8(t,{prepend:this.options.pluralSeparator,compatibilityJSON:this.options.compatibilityJSON,simplifyPluralSuffix:this.options.simplifyPluralSuffix}),!e||this.options.interpolation.format&&this.options.interpolation.format!==n.interpolation.format||(r.formatter=o(e),r.formatter.init(r,this.options),this.options.interpolation.format=r.formatter.format.bind(r.formatter)),r.interpolator=new n8(this.options),r.utils={hasLoadedNamespace:this.hasLoadedNamespace.bind(this)},r.backendConnector=new i8(o(this.modules.backend),r.resourceStore,r,this.options),r.backendConnector.on("*",(function(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),o=1;o1?t-1:0),o=1;o{A.init&&A.init(this)}))}if(this.format=this.options.interpolation.format,t||(t=l8),this.options.fallbackLng&&!this.services.languageDetector&&!this.options.lng){const A=this.services.languageUtils.getFallbackCodes(this.options.fallbackLng);A.length>0&&"dev"!==A[0]&&(this.options.lng=A[0])}this.services.languageDetector||this.options.lng||this.logger.warn("init: no languageDetector is used and no lng is defined");["getResource","hasResourceBundle","getResourceBundle","getDataByLanguage"].forEach((e=>{this[e]=function(){return A.store[e](...arguments)}}));["addResource","addResources","addResourceBundle","removeResourceBundle"].forEach((e=>{this[e]=function(){return A.store[e](...arguments),A}}));const r=x1(),i=()=>{const A=(A,e)=>{this.isInitializing=!1,this.isInitialized&&!this.initializedStoreOnce&&this.logger.warn("init: i18next is already initialized. You should call init just once!"),this.isInitialized=!0,this.options.isClone||this.logger.log("initialized",this.options),this.emit("initialized",this.options),r.resolve(e),t(A,e)};if(this.languages&&"v1"!==this.options.compatibilityAPI&&!this.isInitialized)return A(null,this.t.bind(this));this.changeLanguage(this.options.lng,A)};return this.options.resources||!this.options.initImmediate?i():setTimeout(i,0),r}loadResources(A){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:l8;const t="string"==typeof A?A:this.language;if("function"==typeof A&&(e=A),!this.options.resources||this.options.partialBundledLanguages){if(t&&"cimode"===t.toLowerCase()&&(!this.options.preload||0===this.options.preload.length))return e();const A=[],n=e=>{if(!e)return;if("cimode"===e)return;this.services.languageUtils.toResolveHierarchy(e).forEach((e=>{"cimode"!==e&&A.indexOf(e)<0&&A.push(e)}))};if(t)n(t);else{this.services.languageUtils.getFallbackCodes(this.options.fallbackLng).forEach((A=>n(A)))}this.options.preload&&this.options.preload.forEach((A=>n(A))),this.services.backendConnector.load(A,this.options.ns,(A=>{A||this.resolvedLanguage||!this.language||this.setResolvedLanguage(this.language),e(A)}))}else e(null)}reloadResources(A,e,t){const n=x1();return A||(A=this.languages),e||(e=this.options.ns),t||(t=l8),this.services.backendConnector.reload(A,e,(A=>{n.resolve(),t(A)})),n}use(A){if(!A)throw new Error("You are passing an undefined module! Please check the object you are passing to i18next.use()");if(!A.type)throw new Error("You are passing a wrong module! Please check the object you are passing to i18next.use()");return"backend"===A.type&&(this.modules.backend=A),("logger"===A.type||A.log&&A.warn&&A.error)&&(this.modules.logger=A),"languageDetector"===A.type&&(this.modules.languageDetector=A),"i18nFormat"===A.type&&(this.modules.i18nFormat=A),"postProcessor"===A.type&&j1.addPostProcessor(A),"formatter"===A.type&&(this.modules.formatter=A),"3rdParty"===A.type&&this.modules.external.push(A),this}setResolvedLanguage(A){if(A&&this.languages&&!(["cimode","dev"].indexOf(A)>-1))for(let e=0;e-1)&&this.store.hasLanguageSomeTranslations(A)){this.resolvedLanguage=A;break}}}changeLanguage(A,e){var t=this;this.isLanguageChangingTo=A;const n=x1();this.emit("languageChanging",A);const o=A=>{this.language=A,this.languages=this.services.languageUtils.toResolveHierarchy(A),this.resolvedLanguage=void 0,this.setResolvedLanguage(A)},r=(A,r)=>{r?(o(r),this.translator.changeLanguage(r),this.isLanguageChangingTo=void 0,this.emit("languageChanged",r),this.logger.log("languageChanged",r)):this.isLanguageChangingTo=void 0,n.resolve((function(){return t.t(...arguments)})),e&&e(A,(function(){return t.t(...arguments)}))},i=e=>{A||e||!this.services.languageDetector||(e=[]);const t="string"==typeof e?e:this.services.languageUtils.getBestMatchFromCodes(e);t&&(this.language||o(t),this.translator.language||this.translator.changeLanguage(t),this.services.languageDetector&&this.services.languageDetector.cacheUserLanguage&&this.services.languageDetector.cacheUserLanguage(t)),this.loadResources(t,(A=>{r(A,t)}))};return A||!this.services.languageDetector||this.services.languageDetector.async?!A&&this.services.languageDetector&&this.services.languageDetector.async?0===this.services.languageDetector.detect.length?this.services.languageDetector.detect().then(i):this.services.languageDetector.detect(i):i(A):i(this.services.languageDetector.detect()),n}getFixedT(A,e,t){var n=this;const o=function(A,e){let r;if("object"!=typeof e){for(var i=arguments.length,a=new Array(i>2?i-2:0),s=2;s`${r.keyPrefix}${l}${A}`)):r.keyPrefix?`${r.keyPrefix}${l}${A}`:A,n.t(g,r)};return"string"==typeof A?o.lng=A:o.lngs=A,o.ns=e,o.keyPrefix=t,o}t(){return this.translator&&this.translator.translate(...arguments)}exists(){return this.translator&&this.translator.exists(...arguments)}setDefaultNamespace(A){this.options.defaultNS=A}hasLoadedNamespace(A){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(!this.isInitialized)return this.logger.warn("hasLoadedNamespace: i18next was not initialized",this.languages),!1;if(!this.languages||!this.languages.length)return this.logger.warn("hasLoadedNamespace: i18n.languages were undefined or empty",this.languages),!1;const t=e.lng||this.resolvedLanguage||this.languages[0],n=!!this.options&&this.options.fallbackLng,o=this.languages[this.languages.length-1];if("cimode"===t.toLowerCase())return!0;const r=(A,e)=>{const t=this.services.backendConnector.state[`${A}|${e}`];return-1===t||2===t};if(e.precheck){const A=e.precheck(this,r);if(void 0!==A)return A}return!!this.hasResourceBundle(t,A)||(!(this.services.backendConnector.backend&&(!this.options.resources||this.options.partialBundledLanguages))||!(!r(t,A)||n&&!r(o,A)))}loadNamespaces(A,e){const t=x1();return this.options.ns?("string"==typeof A&&(A=[A]),A.forEach((A=>{this.options.ns.indexOf(A)<0&&this.options.ns.push(A)})),this.loadResources((A=>{t.resolve(),e&&e(A)})),t):(e&&e(),Promise.resolve())}loadLanguages(A,e){const t=x1();"string"==typeof A&&(A=[A]);const n=this.options.preload||[],o=A.filter((A=>n.indexOf(A)<0&&this.services.languageUtils.isSupportedCode(A)));return o.length?(this.options.preload=n.concat(o),this.loadResources((A=>{t.resolve(),e&&e(A)})),t):(e&&e(),Promise.resolve())}dir(A){if(A||(A=this.resolvedLanguage||(this.languages&&this.languages.length>0?this.languages[0]:this.language)),!A)return"rtl";const e=this.services&&this.services.languageUtils||new W1(a8());return["ar","shu","sqr","ssh","xaa","yhd","yud","aao","abh","abv","acm","acq","acw","acx","acy","adf","ads","aeb","aec","afb","ajp","apc","apd","arb","arq","ars","ary","arz","auz","avl","ayh","ayl","ayn","ayp","bbz","pga","he","iw","ps","pbt","pbu","pst","prp","prd","ug","ur","ydd","yds","yih","ji","yi","hbo","men","xmn","fa","jpr","peo","pes","prs","dv","sam","ckb"].indexOf(e.getLanguagePartFromCode(A))>-1||A.toLowerCase().indexOf("-arab")>1?"rtl":"ltr"}static createInstance(){return new g8(arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},arguments.length>1?arguments[1]:void 0)}cloneInstance(){let A=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:l8;const t=A.forkResourceStore;t&&delete A.forkResourceStore;const n={...this.options,...A,isClone:!0},o=new g8(n);void 0===A.debug&&void 0===A.prefix||(o.logger=o.logger.clone(A));return["store","services","language"].forEach((A=>{o[A]=this[A]})),o.services={...this.services},o.services.utils={hasLoadedNamespace:o.hasLoadedNamespace.bind(o)},t&&(o.store=new J1(this.store.data,n),o.services.resourceStore=o.store),o.translator=new $1(o.services,n),o.translator.on("*",(function(A){for(var e=arguments.length,t=new Array(e>1?e-1:0),n=1;n-1};function g(A){if("string"!=typeof A&&(A=String(A)),/[^a-z0-9\-#$%&'*+.^_`|~!]/i.test(A)||""===A)throw new TypeError('Invalid character in header field name: "'+A+'"');return A.toLowerCase()}function c(A){return"string"!=typeof A&&(A=String(A)),A}function u(A){var e={next:function(){var e=A.shift();return{done:void 0===e,value:e}}};return o&&(e[Symbol.iterator]=function(){return e}),e}function B(A){this.map={},A instanceof B?A.forEach((function(A,e){this.append(e,A)}),this):Array.isArray(A)?A.forEach((function(A){this.append(A[0],A[1])}),this):A&&Object.getOwnPropertyNames(A).forEach((function(e){this.append(e,A[e])}),this)}function Q(A){if(A.bodyUsed)return Promise.reject(new TypeError("Already read"));A.bodyUsed=!0}function E(A){return new Promise((function(e,t){A.onload=function(){e(A.result)},A.onerror=function(){t(A.error)}}))}function C(A){var e=new FileReader,t=E(e);return e.readAsArrayBuffer(A),t}function d(A){if(A.slice)return A.slice(0);var e=new Uint8Array(A.byteLength);return e.set(new Uint8Array(A)),e.buffer}function I(){return this.bodyUsed=!1,this._initBody=function(A){var e;this.bodyUsed=this.bodyUsed,this._bodyInit=A,A?"string"==typeof A?this._bodyText=A:r&&Blob.prototype.isPrototypeOf(A)?this._bodyBlob=A:i&&FormData.prototype.isPrototypeOf(A)?this._bodyFormData=A:n&&URLSearchParams.prototype.isPrototypeOf(A)?this._bodyText=A.toString():a&&r&&(e=A)&&DataView.prototype.isPrototypeOf(e)?(this._bodyArrayBuffer=d(A.buffer),this._bodyInit=new Blob([this._bodyArrayBuffer])):a&&(ArrayBuffer.prototype.isPrototypeOf(A)||l(A))?this._bodyArrayBuffer=d(A):this._bodyText=A=Object.prototype.toString.call(A):this._bodyText="",this.headers.get("content-type")||("string"==typeof A?this.headers.set("content-type","text/plain;charset=UTF-8"):this._bodyBlob&&this._bodyBlob.type?this.headers.set("content-type",this._bodyBlob.type):n&&URLSearchParams.prototype.isPrototypeOf(A)&&this.headers.set("content-type","application/x-www-form-urlencoded;charset=UTF-8"))},r&&(this.blob=function(){var A=Q(this);if(A)return A;if(this._bodyBlob)return Promise.resolve(this._bodyBlob);if(this._bodyArrayBuffer)return Promise.resolve(new Blob([this._bodyArrayBuffer]));if(this._bodyFormData)throw new Error("could not read FormData body as blob");return Promise.resolve(new Blob([this._bodyText]))},this.arrayBuffer=function(){if(this._bodyArrayBuffer){var A=Q(this);return A||(ArrayBuffer.isView(this._bodyArrayBuffer)?Promise.resolve(this._bodyArrayBuffer.buffer.slice(this._bodyArrayBuffer.byteOffset,this._bodyArrayBuffer.byteOffset+this._bodyArrayBuffer.byteLength)):Promise.resolve(this._bodyArrayBuffer))}return this.blob().then(C)}),this.text=function(){var A,e,t,n=Q(this);if(n)return n;if(this._bodyBlob)return A=this._bodyBlob,e=new FileReader,t=E(e),e.readAsText(A),t;if(this._bodyArrayBuffer)return Promise.resolve(function(A){for(var e=new Uint8Array(A),t=new Array(e.length),n=0;n-1?n:t),this.mode=e.mode||this.mode||null,this.signal=e.signal||this.signal,this.referrer=null,("GET"===this.method||"HEAD"===this.method)&&o)throw new TypeError("Body not allowed for GET or HEAD requests");if(this._initBody(o),!("GET"!==this.method&&"HEAD"!==this.method||"no-store"!==e.cache&&"no-cache"!==e.cache)){var r=/([?&])_=[^&]*/;r.test(this.url)?this.url=this.url.replace(r,"$1_="+(new Date).getTime()):this.url+=(/\?/.test(this.url)?"&":"?")+"_="+(new Date).getTime()}}function h(A){var e=new FormData;return A.trim().split("&").forEach((function(A){if(A){var t=A.split("="),n=t.shift().replace(/\+/g," "),o=t.join("=").replace(/\+/g," ");e.append(decodeURIComponent(n),decodeURIComponent(o))}})),e}function w(A,e){if(!(this instanceof w))throw new TypeError('Please use the "new" operator, this DOM object constructor cannot be called as a function.');e||(e={}),this.type="default",this.status=void 0===e.status?200:e.status,this.ok=this.status>=200&&this.status<300,this.statusText=void 0===e.statusText?"":""+e.statusText,this.headers=new B(e.headers),this.url=e.url||"",this._initBody(A)}f.prototype.clone=function(){return new f(this,{body:this._bodyInit})},I.call(f.prototype),I.call(w.prototype),w.prototype.clone=function(){return new w(this._bodyInit,{status:this.status,statusText:this.statusText,headers:new B(this.headers),url:this.url})},w.error=function(){var A=new w(null,{status:0,statusText:""});return A.type="error",A};var D=[301,302,303,307,308];w.redirect=function(A,e){if(-1===D.indexOf(e))throw new RangeError("Invalid status code");return new w(null,{status:e,headers:{location:A}})},A.DOMException=e.DOMException;try{new A.DOMException}catch(y){A.DOMException=function(A,e){this.message=A,this.name=e;var t=Error(A);this.stack=t.stack},A.DOMException.prototype=Object.create(Error.prototype),A.DOMException.prototype.constructor=A.DOMException}function m(t,n){return new Promise((function(o,i){var s=new f(t,n);if(s.signal&&s.signal.aborted)return i(new A.DOMException("Aborted","AbortError"));var l=new XMLHttpRequest;function g(){l.abort()}l.onload=function(){var A,e,t={status:l.status,statusText:l.statusText,headers:(A=l.getAllResponseHeaders()||"",e=new B,A.replace(/\r?\n[\t ]+/g," ").split("\r").map((function(A){return 0===A.indexOf("\n")?A.substr(1,A.length):A})).forEach((function(A){var t=A.split(":"),n=t.shift().trim();if(n){var o=t.join(":").trim();e.append(n,o)}})),e)};t.url="responseURL"in l?l.responseURL:t.headers.get("X-Request-URL");var n="response"in l?l.response:l.responseText;setTimeout((function(){o(new w(n,t))}),0)},l.onerror=function(){setTimeout((function(){i(new TypeError("Network request failed"))}),0)},l.ontimeout=function(){setTimeout((function(){i(new TypeError("Network request failed"))}),0)},l.onabort=function(){setTimeout((function(){i(new A.DOMException("Aborted","AbortError"))}),0)},l.open(s.method,function(A){try{return""===A&&e.location.href?e.location.href:A}catch(R3){return A}}(s.url),!0),"include"===s.credentials?l.withCredentials=!0:"omit"===s.credentials&&(l.withCredentials=!1),"responseType"in l&&(r?l.responseType="blob":a&&s.headers.get("Content-Type")&&-1!==s.headers.get("Content-Type").indexOf("application/octet-stream")&&(l.responseType="arraybuffer")),!n||"object"!=typeof n.headers||n.headers instanceof B?s.headers.forEach((function(A,e){l.setRequestHeader(e,A)})):Object.getOwnPropertyNames(n.headers).forEach((function(A){l.setRequestHeader(A,c(n.headers[A]))})),s.signal&&(s.signal.addEventListener("abort",g),l.onreadystatechange=function(){4===l.readyState&&s.signal.removeEventListener("abort",g)}),l.send(void 0===s._bodyInit?null:s._bodyInit)}))}m.polyfill=!0,e.fetch||(e.fetch=m,e.Headers=B,e.Request=f,e.Response=w),A.Headers=B,A.Request=f,A.Response=w,A.fetch=m}({}),r.fetch.ponyfill=!0,delete r.fetch.polyfill;var i=o.fetch?o:r;(e=i.fetch).default=i.fetch,e.fetch=i.fetch,e.Headers=i.Headers,e.Request=i.Request,e.Response=i.Response,A.exports=e}(d8,d8.exports)),d8.exports}!function(A,e){var t;if("function"==typeof fetch&&(t=void 0!==n&&n.fetch?n.fetch:"undefined"!=typeof window&&window.fetch?window.fetch:fetch),void 0!==Q8&&"undefined"==typeof window){var o=t||I8();o.default&&(o=o.default),e.default=o,A.exports=e.default}}(C8,C8.exports);var p8=C8.exports;const f8=o(p8),h8=t({__proto__:null,default:f8},[p8]);function w8(A,e){var t=Object.keys(A);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(A);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(A,e).enumerable}))),t.push.apply(t,n)}return t}function D8(A){for(var e=1;e=1?A.alternateFetch:void 0;try{x8(e,i,n,a)}catch(R3){if(!r||0===Object.keys(r).length||!R3.message||R3.message.indexOf("not implemented")<0)return n(R3);try{Object.keys(r).forEach((function(A){delete i[A]})),x8(e,i,n,a),S8=!0}catch(s){n(s)}}}(A,e,t,n):B8()||"function"==typeof ActiveXObject?function(A,e,t,n){t&&"object"===y8(t)&&(t=M8("",t).slice(1)),A.queryStringParams&&(e=M8(e,A.queryStringParams));try{var o;(o=v8?new v8:new k8("MSXML2.XMLHTTP.3.0")).open(t?"POST":"GET",e,1),A.crossDomain||o.setRequestHeader("X-Requested-With","XMLHttpRequest"),o.withCredentials=!!A.withCredentials,t&&o.setRequestHeader("Content-Type","application/x-www-form-urlencoded"),o.overrideMimeType&&o.overrideMimeType("application/json");var r=A.customHeaders;if(r="function"==typeof r?r():r)for(var i in r)o.setRequestHeader(i,r[i]);o.onreadystatechange=function(){o.readyState>3&&n(o.status>=400?o.statusText:null,{status:o.status,data:o.responseText})},o.send(t)}catch(R3){console&&console.log(R3)}}(A,e,t,n):void n(new Error("No fetch and no xhr implementation found!"))};function N8(A){return(N8="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(A){return typeof A}:function(A){return A&&"function"==typeof Symbol&&A.constructor===Symbol&&A!==Symbol.prototype?"symbol":typeof A})(A)}function R8(A,e){var t=Object.keys(A);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(A);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(A,e).enumerable}))),t.push.apply(t,n)}return t}function L8(A){for(var e=1;e1&&void 0!==arguments[1]?arguments[1]:{},n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};!function(A,e){if(!(A instanceof e))throw new TypeError("Cannot call a class as a function")}(this,A),this.services=e,this.options=t,this.allOptions=n,this.type="backend",this.init(e,t,n)}return P8(A,[{key:"init",value:function(A){var e=this,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};this.services=A,this.options=L8(L8(L8({},{loadPath:"/locales/{{lng}}/{{ns}}.json",addPath:"/locales/add/{{lng}}/{{ns}}",parse:function(A){return JSON.parse(A)},stringify:JSON.stringify,parsePayload:function(A,e,t){return H8({},e,t||"")},parseLoadPayload:function(A,e){},request:F8,reloadInterval:"undefined"==typeof window&&36e5,customHeaders:{},queryStringParams:{},crossDomain:!1,withCredentials:!1,overrideMimeType:!1,requestOptions:{mode:"cors",credentials:"same-origin",cache:"default"}}),this.options||{}),t),this.allOptions=n,this.services&&this.options.reloadInterval&&setInterval((function(){return e.reload()}),this.options.reloadInterval)}},{key:"readMulti",value:function(A,e,t){this._readAny(A,A,e,e,t)}},{key:"read",value:function(A,e,t){this._readAny([A],A,[e],e,t)}},{key:"_readAny",value:function(A,e,t,n,o){var r,i=this,a=this.options.loadPath;"function"==typeof this.options.loadPath&&(a=this.options.loadPath(A,t)),(a=function(A){return!!A&&"function"==typeof A.then}(r=a)?r:Promise.resolve(r)).then((function(r){if(!r)return o(null,{});var a=i.services.interpolator.interpolate(r,{lng:A.join("+"),ns:t.join("+")});i.loadUrl(a,o,e,n)}))}},{key:"loadUrl",value:function(A,e,t,n){var o=this,r="string"==typeof t?[t]:t,i="string"==typeof n?[n]:n,a=this.options.parseLoadPayload(r,i);this.options.request(this.options,A,a,(function(r,i){if(i&&(i.status>=500&&i.status<600||!i.status))return e("failed loading "+A+"; status code: "+i.status,!0);if(i&&i.status>=400&&i.status<500)return e("failed loading "+A+"; status code: "+i.status,!1);if(!i&&r&&r.message&&r.message.indexOf("Failed to fetch")>-1)return e("failed loading "+A+": "+r.message,!0);if(r)return e(r,!1);var a,s;try{a="string"==typeof i.data?o.options.parse(i.data,t,n):i.data}catch(R3){s="failed parsing "+A+" to json"}if(s)return e(s,!1);e(null,a)}))}},{key:"create",value:function(A,e,t,n,o){var r=this;if(this.options.addPath){"string"==typeof A&&(A=[A]);var i=this.options.parsePayload(e,t,n),a=0,s=[],l=[];A.forEach((function(t){var n=r.options.addPath;"function"==typeof r.options.addPath&&(n=r.options.addPath(t,e));var g=r.services.interpolator.interpolate(n,{lng:t,ns:e});r.options.request(r.options,g,i,(function(e,t){a+=1,s.push(e),l.push(t),a===A.length&&"function"==typeof o&&o(s,l)}))}))}}},{key:"reload",value:function(){var A=this,e=this.services,t=e.backendConnector,n=e.languageUtils,o=e.logger,r=t.language;if(!r||"cimode"!==r.toLowerCase()){var i=[],a=function(A){n.toResolveHierarchy(A).forEach((function(A){i.indexOf(A)<0&&i.push(A)}))};a(r),this.allOptions.preload&&this.allOptions.preload.forEach((function(A){return a(A)})),i.forEach((function(e){A.allOptions.ns.forEach((function(A){t.read(e,A,"read",null,null,(function(n,r){n&&o.warn("loading namespace ".concat(A," for language ").concat(e," failed"),n),!n&&r&&o.log("loaded namespace ".concat(A," for language ").concat(e),r),t.loaded("".concat(e,"|").concat(A),n,r)}))}))}))}}}]),A}();O8.type="backend";const U8={};function K8(){for(var A=arguments.length,e=new Array(A),t=0;t()=>{if(A.isInitialized)e();else{const t=()=>{setTimeout((()=>{A.off("initialized",t)}),0),e()};A.on("initialized",t)}};function T8(A,e,t){A.loadNamespaces(e,Y8(A,t))}function J8(A,e,t,n){"string"==typeof t&&(t=[t]),t.forEach((e=>{A.options.ns.indexOf(e)<0&&A.options.ns.push(e)})),A.loadLanguages(e,Y8(A,n))}const j8=/&(?:amp|#38|lt|#60|gt|#62|apos|#39|quot|#34|nbsp|#160|copy|#169|reg|#174|hellip|#8230|#x2F|#47);/g,q8={"&":"&","&":"&","<":"<","<":"<",">":">",">":">","'":"'","'":"'",""":'"',""":'"'," ":" "," ":" ","©":"ยฉ","©":"ยฉ","®":"ยฎ","®":"ยฎ","…":"โ€ฆ","…":"โ€ฆ","/":"/","/":"/"},$8=A=>q8[A];let z8,W8={bindI18n:"languageChanged",bindI18nStore:"",transEmptyNodeValue:"",transSupportBasicHtmlNodes:!0,transWrapTextNodes:"",transKeepBasicHtmlNodesFor:["br","strong","i","p"],useSuspense:!0,unescape:A=>A.replace(j8,$8)};const _8={type:"3rdParty",init(A){!function(){let A=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};W8={...W8,...A}}(A.options.react),function(A){z8=A}(A)}},X8=J.createContext();class V8{constructor(){this.usedNamespaces={}}addUsedNamespaces(A){A.forEach((A=>{this.usedNamespaces[A]||(this.usedNamespaces[A]=!0)}))}getUsedNamespaces(){return Object.keys(this.usedNamespaces)}}function Z8(A,e,t,n){return A.getFixedT(e,t,n)}function A2(A){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const{i18n:t}=e,{i18n:n,defaultNS:o}=J.useContext(X8)||{},r=t||n||z8;if(r&&!r.reportNamespaces&&(r.reportNamespaces=new V8),!r){K8("You will need to pass in an i18next instance by using initReactI18next");const A=(A,e)=>"string"==typeof e?e:e&&"object"==typeof e&&"string"==typeof e.defaultValue?e.defaultValue:Array.isArray(A)?A[A.length-1]:A,e=[A,{},!1];return e.t=A,e.i18n={},e.ready=!1,e}r.options.react&&void 0!==r.options.react.wait&&K8("It seems you are still using the old wait option, you may migrate to the new useSuspense behaviour.");const i={...W8,...r.options.react,...e},{useSuspense:a,keyPrefix:s}=i;let l=o||r.options&&r.options.defaultNS;l="string"==typeof l?[l]:l||["translation"],r.reportNamespaces.addUsedNamespaces&&r.reportNamespaces.addUsedNamespaces(l);const g=(r.isInitialized||r.initializedStoreOnce)&&l.every((A=>function(A,e){let t=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return e.languages&&e.languages.length?void 0!==e.options.ignoreJSONStructure?e.hasLoadedNamespace(A,{lng:t.lng,precheck:(e,n)=>{if(t.bindI18n&&t.bindI18n.indexOf("languageChanging")>-1&&e.services.backendConnector.backend&&e.isLanguageChangingTo&&!n(e.isLanguageChangingTo,A))return!1}}):function(A,e){let t=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};const n=e.languages[0],o=!!e.options&&e.options.fallbackLng,r=e.languages[e.languages.length-1];if("cimode"===n.toLowerCase())return!0;const i=(A,t)=>{const n=e.services.backendConnector.state[`${A}|${t}`];return-1===n||2===n};return!(t.bindI18n&&t.bindI18n.indexOf("languageChanging")>-1&&e.services.backendConnector.backend&&e.isLanguageChangingTo&&!i(e.isLanguageChangingTo,A)||!e.hasResourceBundle(n,A)&&e.services.backendConnector.backend&&(!e.options.resources||e.options.partialBundledLanguages)&&(!i(n,A)||o&&!i(r,A)))}(A,e,t):(K8("i18n.languages were undefined or empty",e.languages),!0)}(A,r,i))),c=function(A,e,t,n){return J.useCallback(Z8(A,e,t,n),[A,e,t,n])}(r,e.lng||null,"fallback"===i.nsMode?l:l[0],s),u=()=>c,B=()=>Z8(r,e.lng||null,"fallback"===i.nsMode?l:l[0],s),[Q,E]=J.useState(u);let C=l.join();e.lng&&(C=`${e.lng}${C}`);const d=((A,e)=>{const t=J.useRef();return J.useEffect((()=>{t.current=A}),[A,e]),t.current})(C),I=J.useRef(!0);J.useEffect((()=>{const{bindI18n:A,bindI18nStore:t}=i;function n(){I.current&&E(B)}return I.current=!0,g||a||(e.lng?J8(r,e.lng,l,(()=>{I.current&&E(B)})):T8(r,l,(()=>{I.current&&E(B)}))),g&&d&&d!==C&&I.current&&E(B),A&&r&&r.on(A,n),t&&r&&r.store.on(t,n),()=>{I.current=!1,A&&r&&A.split(" ").forEach((A=>r.off(A,n))),t&&r&&t.split(" ").forEach((A=>r.store.off(A,n)))}}),[r,C]),J.useEffect((()=>{I.current&&g&&E(u)}),[r,s,g]);const p=[Q,r,g];if(p.t=Q,p.i18n=r,p.ready=g,g)return p;if(!g&&!a)return p;throw new Promise((A=>{e.lng?J8(r,e.lng,l,(()=>A())):T8(r,l,(()=>A()))}))}var e2={BASE_URL:"/dev",MODE:"production",DEV:!1,PROD:!0,SSR:!1};const t2=new Map,n2=A=>{const e=t2.get(A);return e?Object.fromEntries(Object.entries(e.stores).map((([A,e])=>[A,e.getState()]))):{}},o2=(A,e={})=>(t,n,o)=>{const{enabled:r,anonymousActionType:i,store:a,...s}=e;let l;try{l=(null!=r?r:"production"!==(e2?"production":void 0))&&window.__REDUX_DEVTOOLS_EXTENSION__}catch(R3){}if(!l)return"production"!==(e2?"production":void 0)&&r&&console.warn("[zustand devtools middleware] Please install/enable Redux devtools extension"),A(t,n,o);const{connection:g,...c}=((A,e,t)=>{if(void 0===A)return{type:"untracked",connection:e.connect(t)};const n=t2.get(t.name);if(n)return{type:"tracked",store:A,...n};const o={connection:e.connect(t),stores:{}};return t2.set(t.name,o),{type:"tracked",store:A,...o}})(a,l,s);let u=!0;o.setState=(A,e,r)=>{const l=t(A,e);if(!u)return l;const c=void 0===r?{type:i||"anonymous"}:"string"==typeof r?{type:r}:r;return void 0===a?(null==g||g.send(c,n()),l):(null==g||g.send({...c,type:`${a}/${c.type}`},{...n2(s.name),[a]:o.getState()}),l)};const B=(...A)=>{const e=u;u=!1,t(...A),u=e},Q=A(o.setState,n,o);if("untracked"===c.type?null==g||g.init(Q):(c.stores[c.store]=o,null==g||g.init(Object.fromEntries(Object.entries(c.stores).map((([A,e])=>[A,A===c.store?Q:e.getState()]))))),o.dispatchFromDevtools&&"function"==typeof o.dispatch){let A=!1;const e=o.dispatch;o.dispatch=(...t)=>{"production"===(e2?"production":void 0)||"__setState"!==t[0].type||A||(console.warn('[zustand devtools middleware] "__setState" action type is reserved to set state from the devtools. Avoid using it.'),A=!0),e(...t)}}return g.subscribe((A=>{var e;switch(A.type){case"ACTION":return"string"!=typeof A.payload?void console.error("[zustand devtools middleware] Unsupported action format"):r2(A.payload,(A=>{if("__setState"!==A.type)o.dispatchFromDevtools&&"function"==typeof o.dispatch&&o.dispatch(A);else{if(void 0===a)return void B(A.state);1!==Object.keys(A.state).length&&console.error('\n [zustand devtools middleware] Unsupported __setState action format. \n When using \'store\' option in devtools(), the \'state\' should have only one key, which is a value of \'store\' that was passed in devtools(),\n and value of this only key should be a state object. Example: { "type": "__setState", "state": { "abc123Store": { "foo": "bar" } } }\n ');const e=A.state[a];if(null==e)return;JSON.stringify(o.getState())!==JSON.stringify(e)&&B(e)}}));case"DISPATCH":switch(A.payload.type){case"RESET":return B(Q),void 0===a?null==g?void 0:g.init(o.getState()):null==g?void 0:g.init(n2(s.name));case"COMMIT":return void 0===a?void(null==g||g.init(o.getState())):null==g?void 0:g.init(n2(s.name));case"ROLLBACK":return r2(A.state,(A=>{if(void 0===a)return B(A),void(null==g||g.init(o.getState()));B(A[a]),null==g||g.init(n2(s.name))}));case"JUMP_TO_STATE":case"JUMP_TO_ACTION":return r2(A.state,(A=>{void 0!==a?JSON.stringify(o.getState())!==JSON.stringify(A[a])&&B(A[a]):B(A)}));case"IMPORT_STATE":{const{nextLiftedState:t}=A.payload,n=null==(e=t.computedStates.slice(-1)[0])?void 0:e.state;if(!n)return;return B(void 0===a?n:n[a]),void(null==g||g.send(null,t))}case"PAUSE_RECORDING":return u=!u}return}})),Q},r2=(A,e)=>{let t;try{t=JSON.parse(A)}catch(R3){console.error("[zustand devtools middleware] Could not parse the received json",R3)}void 0!==t&&e(t)};var i2={exports:{}},a2={},s2={exports:{}},l2={},g2=J;var c2="function"==typeof Object.is?Object.is:function(A,e){return A===e&&(0!==A||1/A==1/e)||A!=A&&e!=e},u2=g2.useState,B2=g2.useEffect,Q2=g2.useLayoutEffect,E2=g2.useDebugValue;function C2(A){var e=A.getSnapshot;A=A.value;try{var t=e();return!c2(A,t)}catch(n){return!0}}var d2="undefined"==typeof window||void 0===window.document||void 0===window.document.createElement?function(A,e){return e()}:function(A,e){var t=e(),n=u2({inst:{value:t,getSnapshot:e}}),o=n[0].inst,r=n[1];return Q2((function(){o.value=t,o.getSnapshot=e,C2(o)&&r({inst:o})}),[A,t,e]),B2((function(){return C2(o)&&r({inst:o}),A((function(){C2(o)&&r({inst:o})}))}),[A]),E2(t),t};l2.useSyncExternalStore=void 0!==g2.useSyncExternalStore?g2.useSyncExternalStore:d2,s2.exports=l2;var I2=s2.exports,p2=J,f2=I2; /** * @license React * use-sync-external-store-shim/with-selector.production.min.js @@ -66,7 +66,7 @@ ld=cd,function(){var A={}.hasOwnProperty;function e(){for(var A="",e=0;e{let e;const t=new Set,n=(A,n)=>{const o="function"==typeof A?A(e):A;if(!Object.is(o,e)){const A=e;e=(null!=n?n:"object"!=typeof o||null===o)?o:Object.assign({},e,o),t.forEach((t=>t(e,A)))}},o=()=>e,r={setState:n,getState:o,getInitialState:()=>i,subscribe:A=>(t.add(A),()=>t.delete(A)),destroy:()=>{"production"!==(k2?"production":void 0)&&console.warn("[DEPRECATED] The `destroy` method will be unsupported in a future version. Instead use unsubscribe function returned by subscribe. Everything will be garbage-collected if store is garbage-collected."),t.clear()}},i=e=A(n,o,r);return r},{useDebugValue:x2}=j,{useSyncExternalStoreWithSelector:S2}=v2,F2=A=>A;const N2=(A,e)=>{const t=(A=>A?M2(A):M2)(A),n=(A,n=e)=>function(A,e=F2,t){const n=S2(A.subscribe,A.getState,A.getServerState||A.getInitialState,e,t);return x2(n),n}(t,A,n);return Object.assign(n,t),n};var R2={exports:{}};var L2={MAX_LENGTH:256,MAX_SAFE_COMPONENT_LENGTH:16,MAX_SAFE_BUILD_LENGTH:250,MAX_SAFE_INTEGER:Number.MAX_SAFE_INTEGER||9007199254740991,RELEASE_TYPES:["major","premajor","minor","preminor","patch","prepatch","prerelease"],SEMVER_SPEC_VERSION:"2.0.0",FLAG_INCLUDE_PRERELEASE:1,FLAG_LOOSE:2},P2={ALLUSERSPROFILE:"C:\\ProgramData",APPDATA:"C:\\Users\\i\\AppData\\Roaming",ChocolateyInstall:"C:\\ProgramData\\chocolatey",ChocolateyLastPathUpdate:'"133236781557883687"',CommonProgramFiles:"C:\\Program Files\\Common Files","CommonProgramFiles(x86)":"C:\\Program Files (x86)\\Common Files",CommonProgramW6432:"C:\\Program Files\\Common Files",COMPUTERNAME:"CANISMINOR-PRO",ComSpec:"C:\\WINDOWS\\system32\\cmd.exe",CONDA_PROMPT_MODIFIER:"False",CUDA_PATH:"C:\\Program Files\\NVIDIA GPU Computing Toolkit\\CUDA\\v12.1",CUDA_PATH_V11_8:"C:\\Program Files\\NVIDIA GPU Computing Toolkit\\CUDA\\v11.8",CUDA_PATH_V12_1:"C:\\Program Files\\NVIDIA GPU Computing Toolkit\\CUDA\\v12.1",DriverData:"C:\\Windows\\System32\\Drivers\\DriverData",HOME:"C:\\Users\\i",HOMEDRIVE:"C:",HOMEPATH:"\\Users\\i",IDEA_INITIAL_DIRECTORY:"C:\\WINDOWS\\system32",INIT_CWD:"D:\\stable-diffusion-webui\\extensions\\sd-webui-lobe-theme",INTEL_DEV_REDIST:"C:\\Program Files (x86)\\Common Files\\Intel\\Shared Libraries\\",LOCALAPPDATA:"C:\\Users\\i\\AppData\\Local",LOGONSERVER:"\\\\CANISMINOR-PRO",MIC_LD_LIBRARY_PATH:"C:\\Program Files (x86)\\Common Files\\Intel\\Shared Libraries\\compiler\\lib\\mic",NDI_RUNTIME_DIR_V2:"C:\\Program Files\\NDI\\NDI 5 Runtime\\v5",NDI_RUNTIME_DIR_V3:"C:\\Program Files\\NDI\\NDI 5 Runtime\\v5",NDI_RUNTIME_DIR_V4:"C:\\Program Files\\NDI\\NDI 5 Runtime\\v5",NDI_RUNTIME_DIR_V5:"C:\\Program Files\\NDI\\NDI 5 Runtime\\v5",NODE:"C:\\Program Files\\nodejs\\node.exe",NODE_ENV:"production",NODE_PATH:"D:\\stable-diffusion-webui\\extensions\\sd-webui-lobe-theme\\node_modules\\.pnpm\\vite@5.2.11_@types+node@20.12.12_terser@5.31.0\\node_modules\\vite\\bin\\node_modules;D:\\stable-diffusion-webui\\extensions\\sd-webui-lobe-theme\\node_modules\\.pnpm\\vite@5.2.11_@types+node@20.12.12_terser@5.31.0\\node_modules\\vite\\node_modules;D:\\stable-diffusion-webui\\extensions\\sd-webui-lobe-theme\\node_modules\\.pnpm\\vite@5.2.11_@types+node@20.12.12_terser@5.31.0\\node_modules;D:\\stable-diffusion-webui\\extensions\\sd-webui-lobe-theme\\node_modules\\.pnpm\\node_modules;C:\\Users\\i\\AppData\\Local\\pnpm\\global\\5\\.pnpm\\pnpm@9.0.6\\node_modules\\pnpm\\bin\\node_modules;C:\\Users\\i\\AppData\\Local\\pnpm\\global\\5\\.pnpm\\pnpm@9.0.6\\node_modules\\pnpm\\node_modules;C:\\Users\\i\\AppData\\Local\\pnpm\\global\\5\\.pnpm\\pnpm@9.0.6\\node_modules;C:\\Users\\i\\AppData\\Local\\pnpm\\global\\5\\.pnpm\\node_modules",npm_command:"run-script",npm_config_frozen_lockfile:"",npm_config_lockfile:"",npm_config_node_gyp:"C:\\Users\\i\\AppData\\Local\\pnpm\\global\\5\\.pnpm\\pnpm@9.0.6\\node_modules\\pnpm\\dist\\node_modules\\node-gyp\\bin\\node-gyp.js",npm_config_registry:"https://registry.npmmirror.com",npm_config_resolution_mode:"highest",npm_config_user_agent:"pnpm/9.0.6 npm/? node/v20.10.0 win32 x64",npm_execpath:"C:\\Users\\i\\AppData\\Local\\pnpm\\global\\5\\.pnpm\\pnpm@9.0.6\\node_modules\\pnpm\\bin\\pnpm.cjs",npm_lifecycle_event:"build",npm_lifecycle_script:"vite build",npm_node_execpath:"C:\\Program Files\\nodejs\\node.exe",npm_package_author:"LobeHub ",npm_package_bugs_url:"https://github.com/lobehub/sd-webui-lobe-theme/issues/new",npm_package_dependencies_ahooks:"^3.7.11",npm_package_dependencies_antd:"5.17.0",npm_package_dependencies_antd_style:"^3.6.2",npm_package_dependencies_consola:"^3.2.3",npm_package_dependencies_dayjs:"^1.11.11",npm_package_dependencies_i18next:"^23.11.4",npm_package_dependencies_i18next_http_backend:"^2.5.1",npm_package_dependencies_lodash_es:"^4.17.21",npm_package_dependencies_lucide_react:"latest",npm_package_dependencies_lucide_static:"latest",npm_package_dependencies_modern_screenshot:"^4.4.39",npm_package_dependencies_polished:"^4.3.1",npm_package_dependencies_react:"^18.3.1",npm_package_dependencies_react_dnd:"^16.0.1",npm_package_dependencies_react_dnd_html5_backend:"^16.0.1",npm_package_dependencies_react_dom:"^18.3.1",npm_package_dependencies_react_helmet:"^6.1.0",npm_package_dependencies_react_i18next:"^14.1.1",npm_package_dependencies_react_layout_kit:"^1.9.0",npm_package_dependencies_react_rnd:"^10.4.10",npm_package_dependencies_react_tag_input:"^6.9.0",npm_package_dependencies_semver:"^7.6.2",npm_package_dependencies_shiki:"^1.5.2",npm_package_dependencies_swr:"^2.2.5",npm_package_dependencies_url_join:"^5.0.0",npm_package_dependencies_zustand:"^4.5.2",npm_package_dependencies_zustand_utils:"^1.3.2",npm_package_dependencies__bluelovers_auto1111_pnginfo:"^2.0.2",npm_package_dependencies__icons_pack_react_simple_icons:"^9.5.0",npm_package_dependencies__lobehub_ui:"^1.138.24",npm_package_dependencies__rollup_rollup_win32_x64_msvc:"^4.17.2",npm_package_description:"LobeThem: The Modern Theme for Stable Diffusion WebUI, Exquisite interface design, Highly customizable UI, and Efficiency boosting features.",npm_package_devDependencies_commitlint:"^19.3.0",npm_package_devDependencies_dotenv:"^16.4.5",npm_package_devDependencies_eslint:"^8.57.0",npm_package_devDependencies_fast_deep_equal:"^3.1.3",npm_package_devDependencies_husky:"^9.0.11",npm_package_devDependencies_jsdom:"^24.0.0",npm_package_devDependencies_lint_staged:"^15.2.2",npm_package_devDependencies_prettier:"^3.2.5",npm_package_devDependencies_query_string:"^9.0.0",npm_package_devDependencies_remark:"^14.0.3",npm_package_devDependencies_remark_cli:"^11.0.0",npm_package_devDependencies_semantic_release:"^21.1.2",npm_package_devDependencies_stylelint:"^15.11.0",npm_package_devDependencies_terser:"^5.31.0",npm_package_devDependencies_typescript:"^5.4.5",npm_package_devDependencies_vite:"^5.2.11",npm_package_devDependencies_vitest:"~1.2.2",npm_package_devDependencies__commitlint_cli:"^19.3.0",npm_package_devDependencies__lobehub_lint:"^1.23.4",npm_package_devDependencies__testing_library_jest_dom:"^6.4.5",npm_package_devDependencies__testing_library_react:"^15.0.7",npm_package_devDependencies__types_lodash_es:"^4.17.12",npm_package_devDependencies__types_node:"^20.12.12",npm_package_devDependencies__types_react:"^18.3.2",npm_package_devDependencies__types_react_dom:"^18.3.0",npm_package_devDependencies__types_react_helmet:"^6.1.11",npm_package_devDependencies__types_react_tag_input:"^6.6.6",npm_package_devDependencies__types_semver:"^7.5.8",npm_package_devDependencies__vitejs_plugin_react_swc:"^3.6.0",npm_package_devDependencies__vitest_coverage_v8:"^1.6.0",npm_package_files_0:"javascript",npm_package_homepage:"https://github.com/lobehub/sd-webui-lobe-theme",npm_package_keywords_0:"lobehub",npm_package_keywords_1:"stable-diffusion-webui",npm_package_keywords_2:"sd-webui-kitchen-theme",npm_package_keywords_3:"kitchen-theme",npm_package_keywords_4:"extensions",npm_package_license:"AGPL3",npm_package_lint_staged___json_0:"prettier --write --no-error-on-unmatched-pattern",npm_package_lint_staged___md_0:"remark --quiet --output --",npm_package_lint_staged___md_1:"prettier --write --no-error-on-unmatched-pattern",npm_package_lint_staged____css_less__0:"stylelint --fix --allow-empty-input",npm_package_lint_staged____css_less__1:"prettier --write",npm_package_lint_staged____js_jsx__0:"prettier --write",npm_package_lint_staged____js_jsx__1:"stylelint --fix",npm_package_lint_staged____js_jsx__2:"eslint --fix",npm_package_lint_staged____ts_tsx__0:"prettier --parser=typescript --write",npm_package_lint_staged____ts_tsx__1:"stylelint --fix",npm_package_lint_staged____ts_tsx__2:"eslint --fix",npm_package_main:"javascript/main.js",npm_package_name:"sd-webui-lobe-theme",npm_package_private:"true",npm_package_publishConfig_access:"public",npm_package_publishConfig_registry:"https://registry.npmjs.org",npm_package_repository_type:"git",npm_package_repository_url:"https://github.com/lobehub/sd-webui-lobe-theme.git",npm_package_scripts_build:"vite build",npm_package_scripts_ci:"npm run lint && npm run type-check",npm_package_scripts_dev:"vite",npm_package_scripts_dev_sd:"cd ../../ && ./webui.sh",npm_package_scripts_i18n:"lobe-i18n",npm_package_scripts_lint:'eslint "src/**/*.{js,jsx,ts,tsx}" --fix',npm_package_scripts_lint_md:"remark . --quiet --output",npm_package_scripts_lint_style:'stylelint "src/**/*.{css,less,js,jsx,ts,tsx}" --fix',npm_package_scripts_prepare:"husky install",npm_package_scripts_prettier:'prettier -c --write "**/**"',npm_package_scripts_release:"semantic-release",npm_package_scripts_start:"npm run dev",npm_package_scripts_test:"vitest --passWithNoTests",npm_package_scripts_test_coverage:"vitest run --coverage --passWithNoTests",npm_package_scripts_test_update:"vitest -u",npm_package_scripts_type_check:"tsc --noEmit",npm_package_sideEffects:"false",npm_package_version:"3.5.2",NUMBER_OF_PROCESSORS:"32",NVAFX_SDK_DIR:"C:\\Program Files\\NVIDIA Corporation\\NVIDIA Audio Effects SDK",NVTOOLSEXT_PATH:"C:\\Program Files\\NVIDIA Corporation\\NvToolsExt\\",NVVFX_MODEL_DIR:"C:\\Program Files\\NVIDIA Corporation\\NVIDIA Video Effects\\models",OneDrive:"C:\\Users\\i\\OneDrive",OneDriveConsumer:"C:\\Users\\i\\OneDrive",OS:"Windows_NT",Path:"D:\\stable-diffusion-webui\\extensions\\sd-webui-lobe-theme\\node_modules\\.bin;C:\\Users\\i\\AppData\\Local\\pnpm\\global\\5\\.pnpm\\pnpm@9.0.6\\node_modules\\pnpm\\dist\\node-gyp-bin;C:\\Users\\i\\AppData\\Local\\oh-my-posh;C:\\Program Files\\PowerShell\\7;C:\\Program Files\\NVIDIA GPU Computing Toolkit\\CUDA\\v11.8\\bin;C:\\Program Files\\NVIDIA GPU Computing Toolkit\\CUDA\\v11.8\\libnvvp;C:\\Program Files\\NVIDIA GPU Computing Toolkit\\CUDA\\v11.8\\extras;C:\\Program Files\\NVIDIA GPU Computing Toolkit\\CUDA\\v11.8\\cudnn\\bin;C:\\Program Files\\NVIDIA GPU Computing Toolkit\\CUDA\\v12.1\\bin;C:\\Program Files\\NVIDIA GPU Computing Toolkit\\CUDA\\v12.1\\libnvvp;C:\\Program Files\\NVIDIA GPU Computing Toolkit\\CUDA\\v12.1\\extras;C:\\Program Files\\NVIDIA GPU Computing Toolkit\\CUDA\\v12.1\\cudnn\\bin;C:\\Program Files (x86)\\Common Files\\Intel\\Shared Libraries\\redist\\intel64\\compiler;C:\\WINDOWS\\system32;C:\\WINDOWS;C:\\WINDOWS\\System32\\Wbem;C:\\WINDOWS\\System32\\WindowsPowerShell\\v1.0\\;C:\\WINDOWS\\System32\\OpenSSH\\;C:\\Program Files\\NVIDIA Corporation\\NVIDIA NvDLISR;C:\\Program Files (x86)\\NVIDIA Corporation\\PhysX\\Common;C:\\ProgramData\\chocolatey\\bin;C:\\Program Files\\dotnet\\;C:\\Program Files\\NVIDIA Corporation\\Nsight Compute 2022.3.0\\;C:\\Program Files\\Graphviz\\bin;C:\\Program Files\\starship\\bin\\;C:\\Program Files\\Microsoft VS Code\\bin;C:\\Program Files\\Git\\cmd;C:\\Program Files\\nodejs\\;C:\\Program Files\\PowerShell\\7\\;C:\\Users\\i\\AppData\\Local\\pnpm;C:\\Users\\i\\AppData\\Local\\Programs\\Python\\Python310\\Scripts\\;C:\\Users\\i\\AppData\\Local\\Programs\\Python\\Python310\\;c:\\users\\i\\appdata\\local\\microsoft\\windowsapps;c:\\users\\i\\appdata\\local\\jetbrains\\toolbox\\scripts;c:\\users\\i\\appdata\\local\\programs\\oh-my-posh\\bin;C:\\Users\\i\\appdata\\local\\microsoft\\windowsapps;c:\\users\\i\\appdata\\local\\microsoft\\winget\\links;C:\\Users\\i\\AppData\\Local\\Programs\\Hyper\\resources\\bin;C:\\Users\\i\\AppData\\Local\\Microsoft\\WindowsApps;C:\\Users\\i\\AppData\\Local\\Programs\\oh-my-posh\\bin;C:\\Users\\i\\AppData\\Roaming\\npm;C:\\Users\\i\\.bun\\bin;C:\\Users\\i\\AppData\\Local\\Microsoft\\WindowsApps;C:\\Users\\i\\.dotnet\\tools;D:\\stable-diffusion-webui\\extensions\\sd-webui-lobe-theme\\node_modules\\.bin",PATHEXT:".COM;.EXE;.BAT;.CMD;.VBS;.VBE;.JSE;.WSF;.WSH;.MSC;.CPL",PNPM_HOME:"C:\\Users\\i\\AppData\\Local\\pnpm",PNPM_SCRIPT_SRC_DIR:"D:\\stable-diffusion-webui\\extensions\\sd-webui-lobe-theme",POSH_AZURE_ENABLED:"False",POSH_CURSOR_COLUMN:"1",POSH_CURSOR_LINE:"3",POSH_GIT_ENABLED:"True",POSH_INSTALLER:"winget",POSH_PATH:"C:\\Users\\i\\AppData\\Local\\oh-my-posh",POSH_PID:"18368",POSH_SHELL_VERSION:"7.4.2",POSH_THEME:"C:\\Users\\i\\AppData\\Local\\oh-my-posh\\themes\\mytheme.omp.json",POSH_THEMES_PATH:"C:\\Users\\i\\AppData\\Local\\oh-my-posh\\themes",POWERLINE_COMMAND:"oh-my-posh",POWERSHELL_DISTRIBUTION_CHANNEL:"MSI:Windows 10 Pro",PROCESSOR_ARCHITECTURE:"AMD64",PROCESSOR_IDENTIFIER:"Intel64 Family 6 Model 183 Stepping 1, GenuineIntel",PROCESSOR_LEVEL:"6",PROCESSOR_REVISION:"b701",ProgramData:"C:\\ProgramData",ProgramFiles:"C:\\Program Files","ProgramFiles(x86)":"C:\\Program Files (x86)",ProgramW6432:"C:\\Program Files",PROMPT:"$P$G",PSModulePath:"D:\\ๆœฌๅœฐ่ต„ๆบๅบ“\\Documents\\PowerShell\\Modules;C:\\Program Files\\PowerShell\\Modules;c:\\program files\\powershell\\7\\Modules;C:\\Program Files\\WindowsPowerShell\\Modules;C:\\WINDOWS\\system32\\WindowsPowerShell\\v1.0\\Modules",PUBLIC:"C:\\Users\\Public",SystemDrive:"C:",SystemRoot:"C:\\WINDOWS",TEMP:"C:\\Users\\i\\AppData\\Local\\Temp",TERMINAL_EMULATOR:"JetBrains-JediTerm",TERM_SESSION_ID:"f04ef9d5-5d91-4292-ac18-62b9b3e9ad9b",TMP:"C:\\Users\\i\\AppData\\Local\\Temp",USERDOMAIN:"CANISMINOR-PRO",USERDOMAIN_ROAMINGPROFILE:"CANISMINOR-PRO",USERNAME:"i",USERPROFILE:"C:\\Users\\i",windir:"C:\\WINDOWS",__COMPAT_LAYER:"RunAsAdmin"};var H2="object"==typeof process&&P2&&P2.NODE_DEBUG&&/\bsemver\b/i.test(P2.NODE_DEBUG)?(...A)=>console.error("SEMVER",...A):()=>{};!function(A,e){const{MAX_SAFE_COMPONENT_LENGTH:t,MAX_SAFE_BUILD_LENGTH:n,MAX_LENGTH:o}=L2,r=H2,i=(e=A.exports={}).re=[],a=e.safeRe=[],s=e.src=[],l=e.t={};let g=0;const c="[a-zA-Z0-9-]",u=[["\\s",1],["\\d",o],[c,n]],B=(A,e,t)=>{const n=(A=>{for(const[e,t]of u)A=A.split(`${e}*`).join(`${e}{0,${t}}`).split(`${e}+`).join(`${e}{1,${t}}`);return A})(e),o=g++;r(A,o,e),l[A]=o,s[o]=e,i[o]=new RegExp(e,t?"g":void 0),a[o]=new RegExp(n,t?"g":void 0)};B("NUMERICIDENTIFIER","0|[1-9]\\d*"),B("NUMERICIDENTIFIERLOOSE","\\d+"),B("NONNUMERICIDENTIFIER",`\\d*[a-zA-Z-]${c}*`),B("MAINVERSION",`(${s[l.NUMERICIDENTIFIER]})\\.(${s[l.NUMERICIDENTIFIER]})\\.(${s[l.NUMERICIDENTIFIER]})`),B("MAINVERSIONLOOSE",`(${s[l.NUMERICIDENTIFIERLOOSE]})\\.(${s[l.NUMERICIDENTIFIERLOOSE]})\\.(${s[l.NUMERICIDENTIFIERLOOSE]})`),B("PRERELEASEIDENTIFIER",`(?:${s[l.NUMERICIDENTIFIER]}|${s[l.NONNUMERICIDENTIFIER]})`),B("PRERELEASEIDENTIFIERLOOSE",`(?:${s[l.NUMERICIDENTIFIERLOOSE]}|${s[l.NONNUMERICIDENTIFIER]})`),B("PRERELEASE",`(?:-(${s[l.PRERELEASEIDENTIFIER]}(?:\\.${s[l.PRERELEASEIDENTIFIER]})*))`),B("PRERELEASELOOSE",`(?:-?(${s[l.PRERELEASEIDENTIFIERLOOSE]}(?:\\.${s[l.PRERELEASEIDENTIFIERLOOSE]})*))`),B("BUILDIDENTIFIER",`${c}+`),B("BUILD",`(?:\\+(${s[l.BUILDIDENTIFIER]}(?:\\.${s[l.BUILDIDENTIFIER]})*))`),B("FULLPLAIN",`v?${s[l.MAINVERSION]}${s[l.PRERELEASE]}?${s[l.BUILD]}?`),B("FULL",`^${s[l.FULLPLAIN]}$`),B("LOOSEPLAIN",`[v=\\s]*${s[l.MAINVERSIONLOOSE]}${s[l.PRERELEASELOOSE]}?${s[l.BUILD]}?`),B("LOOSE",`^${s[l.LOOSEPLAIN]}$`),B("GTLT","((?:<|>)?=?)"),B("XRANGEIDENTIFIERLOOSE",`${s[l.NUMERICIDENTIFIERLOOSE]}|x|X|\\*`),B("XRANGEIDENTIFIER",`${s[l.NUMERICIDENTIFIER]}|x|X|\\*`),B("XRANGEPLAIN",`[v=\\s]*(${s[l.XRANGEIDENTIFIER]})(?:\\.(${s[l.XRANGEIDENTIFIER]})(?:\\.(${s[l.XRANGEIDENTIFIER]})(?:${s[l.PRERELEASE]})?${s[l.BUILD]}?)?)?`),B("XRANGEPLAINLOOSE",`[v=\\s]*(${s[l.XRANGEIDENTIFIERLOOSE]})(?:\\.(${s[l.XRANGEIDENTIFIERLOOSE]})(?:\\.(${s[l.XRANGEIDENTIFIERLOOSE]})(?:${s[l.PRERELEASELOOSE]})?${s[l.BUILD]}?)?)?`),B("XRANGE",`^${s[l.GTLT]}\\s*${s[l.XRANGEPLAIN]}$`),B("XRANGELOOSE",`^${s[l.GTLT]}\\s*${s[l.XRANGEPLAINLOOSE]}$`),B("COERCEPLAIN",`(^|[^\\d])(\\d{1,${t}})(?:\\.(\\d{1,${t}}))?(?:\\.(\\d{1,${t}}))?`),B("COERCE",`${s[l.COERCEPLAIN]}(?:$|[^\\d])`),B("COERCEFULL",s[l.COERCEPLAIN]+`(?:${s[l.PRERELEASE]})?(?:${s[l.BUILD]})?(?:$|[^\\d])`),B("COERCERTL",s[l.COERCE],!0),B("COERCERTLFULL",s[l.COERCEFULL],!0),B("LONETILDE","(?:~>?)"),B("TILDETRIM",`(\\s*)${s[l.LONETILDE]}\\s+`,!0),e.tildeTrimReplace="$1~",B("TILDE",`^${s[l.LONETILDE]}${s[l.XRANGEPLAIN]}$`),B("TILDELOOSE",`^${s[l.LONETILDE]}${s[l.XRANGEPLAINLOOSE]}$`),B("LONECARET","(?:\\^)"),B("CARETTRIM",`(\\s*)${s[l.LONECARET]}\\s+`,!0),e.caretTrimReplace="$1^",B("CARET",`^${s[l.LONECARET]}${s[l.XRANGEPLAIN]}$`),B("CARETLOOSE",`^${s[l.LONECARET]}${s[l.XRANGEPLAINLOOSE]}$`),B("COMPARATORLOOSE",`^${s[l.GTLT]}\\s*(${s[l.LOOSEPLAIN]})$|^$`),B("COMPARATOR",`^${s[l.GTLT]}\\s*(${s[l.FULLPLAIN]})$|^$`),B("COMPARATORTRIM",`(\\s*)${s[l.GTLT]}\\s*(${s[l.LOOSEPLAIN]}|${s[l.XRANGEPLAIN]})`,!0),e.comparatorTrimReplace="$1$2$3",B("HYPHENRANGE",`^\\s*(${s[l.XRANGEPLAIN]})\\s+-\\s+(${s[l.XRANGEPLAIN]})\\s*$`),B("HYPHENRANGELOOSE",`^\\s*(${s[l.XRANGEPLAINLOOSE]})\\s+-\\s+(${s[l.XRANGEPLAINLOOSE]})\\s*$`),B("STAR","(<|>)?=?\\s*\\*"),B("GTE0","^\\s*>=\\s*0\\.0\\.0\\s*$"),B("GTE0PRE","^\\s*>=\\s*0\\.0\\.0-0\\s*$")}(R2,R2.exports);var G2=R2.exports;const O2=Object.freeze({loose:!0}),U2=Object.freeze({});var K2=A=>A?"object"!=typeof A?O2:A:U2;const Y2=/^[0-9]+$/,T2=(A,e)=>{const t=Y2.test(A),n=Y2.test(e);return t&&n&&(A=+A,e=+e),A===e?0:t&&!n?-1:n&&!t?1:AT2(e,A)};const j2=H2,{MAX_LENGTH:q2,MAX_SAFE_INTEGER:$2}=L2,{safeRe:z2,t:W2}=G2,_2=K2,{compareIdentifiers:X2}=J2;var V2=class A{constructor(e,t){if(t=_2(t),e instanceof A){if(e.loose===!!t.loose&&e.includePrerelease===!!t.includePrerelease)return e;e=e.version}else if("string"!=typeof e)throw new TypeError(`Invalid version. Must be a string. Got type "${typeof e}".`);if(e.length>q2)throw new TypeError(`version is longer than ${q2} characters`);j2("SemVer",e,t),this.options=t,this.loose=!!t.loose,this.includePrerelease=!!t.includePrerelease;const n=e.trim().match(t.loose?z2[W2.LOOSE]:z2[W2.FULL]);if(!n)throw new TypeError(`Invalid Version: ${e}`);if(this.raw=e,this.major=+n[1],this.minor=+n[2],this.patch=+n[3],this.major>$2||this.major<0)throw new TypeError("Invalid major version");if(this.minor>$2||this.minor<0)throw new TypeError("Invalid minor version");if(this.patch>$2||this.patch<0)throw new TypeError("Invalid patch version");n[4]?this.prerelease=n[4].split(".").map((A=>{if(/^[0-9]+$/.test(A)){const e=+A;if(e>=0&&e<$2)return e}return A})):this.prerelease=[],this.build=n[5]?n[5].split("."):[],this.format()}format(){return this.version=`${this.major}.${this.minor}.${this.patch}`,this.prerelease.length&&(this.version+=`-${this.prerelease.join(".")}`),this.version}toString(){return this.version}compare(e){if(j2("SemVer.compare",this.version,this.options,e),!(e instanceof A)){if("string"==typeof e&&e===this.version)return 0;e=new A(e,this.options)}return e.version===this.version?0:this.compareMain(e)||this.comparePre(e)}compareMain(e){return e instanceof A||(e=new A(e,this.options)),X2(this.major,e.major)||X2(this.minor,e.minor)||X2(this.patch,e.patch)}comparePre(e){if(e instanceof A||(e=new A(e,this.options)),this.prerelease.length&&!e.prerelease.length)return-1;if(!this.prerelease.length&&e.prerelease.length)return 1;if(!this.prerelease.length&&!e.prerelease.length)return 0;let t=0;do{const A=this.prerelease[t],n=e.prerelease[t];if(j2("prerelease compare",t,A,n),void 0===A&&void 0===n)return 0;if(void 0===n)return 1;if(void 0===A)return-1;if(A!==n)return X2(A,n)}while(++t)}compareBuild(e){e instanceof A||(e=new A(e,this.options));let t=0;do{const A=this.build[t],n=e.build[t];if(j2("build compare",t,A,n),void 0===A&&void 0===n)return 0;if(void 0===n)return 1;if(void 0===A)return-1;if(A!==n)return X2(A,n)}while(++t)}inc(A,e,t){switch(A){case"premajor":this.prerelease.length=0,this.patch=0,this.minor=0,this.major++,this.inc("pre",e,t);break;case"preminor":this.prerelease.length=0,this.patch=0,this.minor++,this.inc("pre",e,t);break;case"prepatch":this.prerelease.length=0,this.inc("patch",e,t),this.inc("pre",e,t);break;case"prerelease":0===this.prerelease.length&&this.inc("patch",e,t),this.inc("pre",e,t);break;case"major":0===this.minor&&0===this.patch&&0!==this.prerelease.length||this.major++,this.minor=0,this.patch=0,this.prerelease=[];break;case"minor":0===this.patch&&0!==this.prerelease.length||this.minor++,this.patch=0,this.prerelease=[];break;case"patch":0===this.prerelease.length&&this.patch++,this.prerelease=[];break;case"pre":{const A=Number(t)?1:0;if(!e&&!1===t)throw new Error("invalid increment argument: identifier is empty");if(0===this.prerelease.length)this.prerelease=[A];else{let n=this.prerelease.length;for(;--n>=0;)"number"==typeof this.prerelease[n]&&(this.prerelease[n]++,n=-2);if(-1===n){if(e===this.prerelease.join(".")&&!1===t)throw new Error("invalid increment argument: identifier already exists");this.prerelease.push(A)}}if(e){let n=[e,A];!1===t&&(n=[e]),0===X2(this.prerelease[0],e)?isNaN(this.prerelease[1])&&(this.prerelease=n):this.prerelease=n}break}default:throw new Error(`invalid increment argument: ${A}`)}return this.raw=this.format(),this.build.length&&(this.raw+=`+${this.build.join(".")}`),this}};const Z2=V2;var A4=(A,e,t=!1)=>{if(A instanceof Z2)return A;try{return new Z2(A,e)}catch(n){if(!t)return null;throw n}};const e4=A4;var t4=(A,e)=>{const t=e4(A,e);return t?t.version:null};const n4=A4;var o4=(A,e)=>{const t=n4(A.trim().replace(/^[=v]+/,""),e);return t?t.version:null};const r4=V2;var i4=(A,e,t,n,o)=>{"string"==typeof t&&(o=n,n=t,t=void 0);try{return new r4(A instanceof r4?A.version:A,t).inc(e,n,o).version}catch(r){return null}};const a4=A4;var s4=(A,e)=>{const t=a4(A,null,!0),n=a4(e,null,!0),o=t.compare(n);if(0===o)return null;const r=o>0,i=r?t:n,a=r?n:t,s=!!i.prerelease.length;if(!!a.prerelease.length&&!s)return a.patch||a.minor?i.patch?"patch":i.minor?"minor":"major":"major";const l=s?"pre":"";return t.major!==n.major?l+"major":t.minor!==n.minor?l+"minor":t.patch!==n.patch?l+"patch":"prerelease"};const l4=V2;var g4=(A,e)=>new l4(A,e).major;const c4=V2;var u4=(A,e)=>new c4(A,e).minor;const B4=V2;var Q4=(A,e)=>new B4(A,e).patch;const E4=A4;var C4=(A,e)=>{const t=E4(A,e);return t&&t.prerelease.length?t.prerelease:null};const d4=V2;var I4=(A,e,t)=>new d4(A,t).compare(new d4(e,t));const p4=I4;var f4=(A,e,t)=>p4(e,A,t);const h4=I4;var w4=(A,e)=>h4(A,e,!0);const D4=V2;var m4=(A,e,t)=>{const n=new D4(A,t),o=new D4(e,t);return n.compare(o)||n.compareBuild(o)};const y4=m4;var b4=(A,e)=>A.sort(((A,t)=>y4(A,t,e)));const v4=m4;var k4=(A,e)=>A.sort(((A,t)=>v4(t,A,e)));const M4=I4;var x4=(A,e,t)=>M4(A,e,t)>0;const S4=I4;var F4=(A,e,t)=>S4(A,e,t)<0;const N4=I4;var R4=(A,e,t)=>0===N4(A,e,t);const L4=I4;var P4=(A,e,t)=>0!==L4(A,e,t);const H4=I4;var G4=(A,e,t)=>H4(A,e,t)>=0;const O4=I4;var U4=(A,e,t)=>O4(A,e,t)<=0;const K4=R4,Y4=P4,T4=x4,J4=G4,j4=F4,q4=U4;var $4=(A,e,t,n)=>{switch(e){case"===":return"object"==typeof A&&(A=A.version),"object"==typeof t&&(t=t.version),A===t;case"!==":return"object"==typeof A&&(A=A.version),"object"==typeof t&&(t=t.version),A!==t;case"":case"=":case"==":return K4(A,t,n);case"!=":return Y4(A,t,n);case">":return T4(A,t,n);case">=":return J4(A,t,n);case"<":return j4(A,t,n);case"<=":return q4(A,t,n);default:throw new TypeError(`Invalid operator: ${e}`)}};const z4=V2,W4=A4,{safeRe:_4,t:X4}=G2;var V4=(A,e)=>{if(A instanceof z4)return A;if("number"==typeof A&&(A=String(A)),"string"!=typeof A)return null;let t=null;if((e=e||{}).rtl){const n=e.includePrerelease?_4[X4.COERCERTLFULL]:_4[X4.COERCERTL];let o;for(;(o=n.exec(A))&&(!t||t.index+t[0].length!==A.length);)t&&o.index+o[0].length===t.index+t[0].length||(t=o),n.lastIndex=o.index+o[1].length+o[2].length;n.lastIndex=-1}else t=A.match(e.includePrerelease?_4[X4.COERCEFULL]:_4[X4.COERCE]);if(null===t)return null;const n=t[2],o=t[3]||"0",r=t[4]||"0",i=e.includePrerelease&&t[5]?`-${t[5]}`:"",a=e.includePrerelease&&t[6]?`+${t[6]}`:"";return W4(`${n}.${o}.${r}${i}${a}`,e)};var Z4,A5,e5,t5,n5=class{constructor(){this.max=1e3,this.map=new Map}get(A){const e=this.map.get(A);return void 0===e?void 0:(this.map.delete(A),this.map.set(A,e),e)}delete(A){return this.map.delete(A)}set(A,e){if(!this.delete(A)&&void 0!==e){if(this.map.size>=this.max){const A=this.map.keys().next().value;this.delete(A)}this.map.set(A,e)}return this}};function o5(){if(A5)return Z4;A5=1;class A{constructor(e,o){if(o=t(o),e instanceof A)return e.loose===!!o.loose&&e.includePrerelease===!!o.includePrerelease?e:new A(e.raw,o);if(e instanceof n)return this.raw=e.value,this.set=[[e]],this.format(),this;if(this.options=o,this.loose=!!o.loose,this.includePrerelease=!!o.includePrerelease,this.raw=e.trim().split(/\s+/).join(" "),this.set=this.raw.split("||").map((A=>this.parseRange(A.trim()))).filter((A=>A.length)),!this.set.length)throw new TypeError(`Invalid SemVer Range: ${this.raw}`);if(this.set.length>1){const A=this.set[0];if(this.set=this.set.filter((A=>!B(A[0]))),0===this.set.length)this.set=[A];else if(this.set.length>1)for(const e of this.set)if(1===e.length&&Q(e[0])){this.set=[e];break}}this.format()}format(){return this.range=this.set.map((A=>A.join(" ").trim())).join("||").trim(),this.range}toString(){return this.range}parseRange(A){const t=((this.options.includePrerelease&&c)|(this.options.loose&&u))+":"+A,r=e.get(t);if(r)return r;const Q=this.options.loose,E=Q?i[a.HYPHENRANGELOOSE]:i[a.HYPHENRANGE];A=A.replace(E,b(this.options.includePrerelease)),o("hyphen replace",A),A=A.replace(i[a.COMPARATORTRIM],s),o("comparator trim",A),A=A.replace(i[a.TILDETRIM],l),o("tilde trim",A),A=A.replace(i[a.CARETTRIM],g),o("caret trim",A);let d=A.split(" ").map((A=>C(A,this.options))).join(" ").split(/\s+/).map((A=>y(A,this.options)));Q&&(d=d.filter((A=>(o("loose invalid filter",A,this.options),!!A.match(i[a.COMPARATORLOOSE]))))),o("range list",d);const I=new Map,p=d.map((A=>new n(A,this.options)));for(const e of p){if(B(e))return[e];I.set(e.value,e)}I.size>1&&I.has("")&&I.delete("");const f=[...I.values()];return e.set(t,f),f}intersects(e,t){if(!(e instanceof A))throw new TypeError("a Range is required");return this.set.some((A=>E(A,t)&&e.set.some((e=>E(e,t)&&A.every((A=>e.every((e=>A.intersects(e,t)))))))))}test(A){if(!A)return!1;if("string"==typeof A)try{A=new r(A,this.options)}catch(e){return!1}for(let t=0;t"<0.0.0-0"===A.value,Q=A=>""===A.value,E=(A,e)=>{let t=!0;const n=A.slice();let o=n.pop();for(;t&&n.length;)t=n.every((A=>o.intersects(A,e))),o=n.pop();return t},C=(A,e)=>(o("comp",A,e),A=f(A,e),o("caret",A),A=I(A,e),o("tildes",A),A=w(A,e),o("xrange",A),A=m(A,e),o("stars",A),A),d=A=>!A||"x"===A.toLowerCase()||"*"===A,I=(A,e)=>A.trim().split(/\s+/).map((A=>p(A,e))).join(" "),p=(A,e)=>{const t=e.loose?i[a.TILDELOOSE]:i[a.TILDE];return A.replace(t,((e,t,n,r,i)=>{let a;return o("tilde",A,e,t,n,r,i),d(t)?a="":d(n)?a=`>=${t}.0.0 <${+t+1}.0.0-0`:d(r)?a=`>=${t}.${n}.0 <${t}.${+n+1}.0-0`:i?(o("replaceTilde pr",i),a=`>=${t}.${n}.${r}-${i} <${t}.${+n+1}.0-0`):a=`>=${t}.${n}.${r} <${t}.${+n+1}.0-0`,o("tilde return",a),a}))},f=(A,e)=>A.trim().split(/\s+/).map((A=>h(A,e))).join(" "),h=(A,e)=>{o("caret",A,e);const t=e.loose?i[a.CARETLOOSE]:i[a.CARET],n=e.includePrerelease?"-0":"";return A.replace(t,((e,t,r,i,a)=>{let s;return o("caret",A,e,t,r,i,a),d(t)?s="":d(r)?s=`>=${t}.0.0${n} <${+t+1}.0.0-0`:d(i)?s="0"===t?`>=${t}.${r}.0${n} <${t}.${+r+1}.0-0`:`>=${t}.${r}.0${n} <${+t+1}.0.0-0`:a?(o("replaceCaret pr",a),s="0"===t?"0"===r?`>=${t}.${r}.${i}-${a} <${t}.${r}.${+i+1}-0`:`>=${t}.${r}.${i}-${a} <${t}.${+r+1}.0-0`:`>=${t}.${r}.${i}-${a} <${+t+1}.0.0-0`):(o("no pr"),s="0"===t?"0"===r?`>=${t}.${r}.${i}${n} <${t}.${r}.${+i+1}-0`:`>=${t}.${r}.${i}${n} <${t}.${+r+1}.0-0`:`>=${t}.${r}.${i} <${+t+1}.0.0-0`),o("caret return",s),s}))},w=(A,e)=>(o("replaceXRanges",A,e),A.split(/\s+/).map((A=>D(A,e))).join(" ")),D=(A,e)=>{A=A.trim();const t=e.loose?i[a.XRANGELOOSE]:i[a.XRANGE];return A.replace(t,((t,n,r,i,a,s)=>{o("xRange",A,t,n,r,i,a,s);const l=d(r),g=l||d(i),c=g||d(a),u=c;return"="===n&&u&&(n=""),s=e.includePrerelease?"-0":"",l?t=">"===n||"<"===n?"<0.0.0-0":"*":n&&u?(g&&(i=0),a=0,">"===n?(n=">=",g?(r=+r+1,i=0,a=0):(i=+i+1,a=0)):"<="===n&&(n="<",g?r=+r+1:i=+i+1),"<"===n&&(s="-0"),t=`${n+r}.${i}.${a}${s}`):g?t=`>=${r}.0.0${s} <${+r+1}.0.0-0`:c&&(t=`>=${r}.${i}.0${s} <${r}.${+i+1}.0-0`),o("xRange return",t),t}))},m=(A,e)=>(o("replaceStars",A,e),A.trim().replace(i[a.STAR],"")),y=(A,e)=>(o("replaceGTE0",A,e),A.trim().replace(i[e.includePrerelease?a.GTE0PRE:a.GTE0],"")),b=A=>(e,t,n,o,r,i,a,s,l,g,c,u)=>`${t=d(n)?"":d(o)?`>=${n}.0.0${A?"-0":""}`:d(r)?`>=${n}.${o}.0${A?"-0":""}`:i?`>=${t}`:`>=${t}${A?"-0":""}`} ${s=d(l)?"":d(g)?`<${+l+1}.0.0-0`:d(c)?`<${l}.${+g+1}.0-0`:u?`<=${l}.${g}.${c}-${u}`:A?`<${l}.${g}.${+c+1}-0`:`<=${s}`}`.trim(),v=(A,e,t)=>{for(let n=0;n0){const n=A[t].semver;if(n.major===e.major&&n.minor===e.minor&&n.patch===e.patch)return!0}return!1}return!0};return Z4}function r5(){if(t5)return e5;t5=1;const A=Symbol("SemVer ANY");class e{static get ANY(){return A}constructor(n,o){if(o=t(o),n instanceof e){if(n.loose===!!o.loose)return n;n=n.value}n=n.trim().split(/\s+/).join(" "),i("comparator",n,o),this.options=o,this.loose=!!o.loose,this.parse(n),this.semver===A?this.value="":this.value=this.operator+this.semver.version,i("comp",this)}parse(e){const t=this.options.loose?n[o.COMPARATORLOOSE]:n[o.COMPARATOR],r=e.match(t);if(!r)throw new TypeError(`Invalid comparator: ${e}`);this.operator=void 0!==r[1]?r[1]:"","="===this.operator&&(this.operator=""),r[2]?this.semver=new a(r[2],this.options.loose):this.semver=A}toString(){return this.value}test(e){if(i("Comparator.test",e,this.options.loose),this.semver===A||e===A)return!0;if("string"==typeof e)try{e=new a(e,this.options)}catch(t){return!1}return r(e,this.operator,this.semver,this.options)}intersects(A,n){if(!(A instanceof e))throw new TypeError("a Comparator is required");return""===this.operator?""===this.value||new s(A.value,n).test(this.value):""===A.operator?""===A.value||new s(this.value,n).test(A.semver):(!(n=t(n)).includePrerelease||"<0.0.0-0"!==this.value&&"<0.0.0-0"!==A.value)&&(!(!n.includePrerelease&&(this.value.startsWith("<0.0.0")||A.value.startsWith("<0.0.0")))&&(!(!this.operator.startsWith(">")||!A.operator.startsWith(">"))||(!(!this.operator.startsWith("<")||!A.operator.startsWith("<"))||(!(this.semver.version!==A.semver.version||!this.operator.includes("=")||!A.operator.includes("="))||(!!(r(this.semver,"<",A.semver,n)&&this.operator.startsWith(">")&&A.operator.startsWith("<"))||!!(r(this.semver,">",A.semver,n)&&this.operator.startsWith("<")&&A.operator.startsWith(">")))))))}}e5=e;const t=K2,{safeRe:n,t:o}=G2,r=$4,i=H2,a=V2,s=o5();return e5}const i5=o5();var a5=(A,e,t)=>{try{e=new i5(e,t)}catch(n){return!1}return e.test(A)};const s5=o5();var l5=(A,e)=>new s5(A,e).set.map((A=>A.map((A=>A.value)).join(" ").trim().split(" ")));const g5=V2,c5=o5();var u5=(A,e,t)=>{let n=null,o=null,r=null;try{r=new c5(e,t)}catch(i){return null}return A.forEach((A=>{r.test(A)&&(n&&-1!==o.compare(A)||(n=A,o=new g5(n,t)))})),n};const B5=V2,Q5=o5();var E5=(A,e,t)=>{let n=null,o=null,r=null;try{r=new Q5(e,t)}catch(i){return null}return A.forEach((A=>{r.test(A)&&(n&&1!==o.compare(A)||(n=A,o=new B5(n,t)))})),n};const C5=V2,d5=o5(),I5=x4;var p5=(A,e)=>{A=new d5(A,e);let t=new C5("0.0.0");if(A.test(t))return t;if(t=new C5("0.0.0-0"),A.test(t))return t;t=null;for(let n=0;n{const e=new C5(A.semver.version);switch(A.operator){case">":0===e.prerelease.length?e.patch++:e.prerelease.push(0),e.raw=e.format();case"":case">=":o&&!I5(e,o)||(o=e);break;case"<":case"<=":break;default:throw new Error(`Unexpected operation: ${A.operator}`)}})),!o||t&&!I5(t,o)||(t=o)}return t&&A.test(t)?t:null};const f5=o5();var h5=(A,e)=>{try{return new f5(A,e).range||"*"}catch(t){return null}};const w5=V2,D5=r5(),{ANY:m5}=D5,y5=o5(),b5=a5,v5=x4,k5=F4,M5=U4,x5=G4;var S5=(A,e,t,n)=>{let o,r,i,a,s;switch(A=new w5(A,n),e=new y5(e,n),t){case">":o=v5,r=M5,i=k5,a=">",s=">=";break;case"<":o=k5,r=x5,i=v5,a="<",s="<=";break;default:throw new TypeError('Must provide a hilo val of "<" or ">"')}if(b5(A,e,n))return!1;for(let l=0;l{A.semver===m5&&(A=new D5(">=0.0.0")),g=g||A,c=c||A,o(A.semver,g.semver,n)?g=A:i(A.semver,c.semver,n)&&(c=A)})),g.operator===a||g.operator===s)return!1;if((!c.operator||c.operator===a)&&r(A,c.semver))return!1;if(c.operator===s&&i(A,c.semver))return!1}return!0};const F5=S5;var N5=(A,e,t)=>F5(A,e,">",t);const R5=S5;var L5=(A,e,t)=>R5(A,e,"<",t);const P5=o5();var H5=(A,e,t)=>(A=new P5(A,t),e=new P5(e,t),A.intersects(e,t));const G5=a5,O5=I4;const U5=o5(),K5=r5(),{ANY:Y5}=K5,T5=a5,J5=I4,j5=[new K5(">=0.0.0-0")],q5=[new K5(">=0.0.0")],$5=(A,e,t)=>{if(A===e)return!0;if(1===A.length&&A[0].semver===Y5){if(1===e.length&&e[0].semver===Y5)return!0;A=t.includePrerelease?j5:q5}if(1===e.length&&e[0].semver===Y5){if(t.includePrerelease)return!0;e=q5}const n=new Set;let o,r,i,a,s,l,g;for(const B of A)">"===B.operator||">="===B.operator?o=z5(o,B,t):"<"===B.operator||"<="===B.operator?r=W5(r,B,t):n.add(B.semver);if(n.size>1)return null;if(o&&r){if(i=J5(o.semver,r.semver,t),i>0)return null;if(0===i&&(">="!==o.operator||"<="!==r.operator))return null}for(const B of n){if(o&&!T5(B,String(o),t))return null;if(r&&!T5(B,String(r),t))return null;for(const A of e)if(!T5(B,String(A),t))return!1;return!0}let c=!(!r||t.includePrerelease||!r.semver.prerelease.length)&&r.semver,u=!(!o||t.includePrerelease||!o.semver.prerelease.length)&&o.semver;c&&1===c.prerelease.length&&"<"===r.operator&&0===c.prerelease[0]&&(c=!1);for(const B of e){if(g=g||">"===B.operator||">="===B.operator,l=l||"<"===B.operator||"<="===B.operator,o)if(u&&B.semver.prerelease&&B.semver.prerelease.length&&B.semver.major===u.major&&B.semver.minor===u.minor&&B.semver.patch===u.patch&&(u=!1),">"===B.operator||">="===B.operator){if(a=z5(o,B,t),a===B&&a!==o)return!1}else if(">="===o.operator&&!T5(o.semver,String(B),t))return!1;if(r)if(c&&B.semver.prerelease&&B.semver.prerelease.length&&B.semver.major===c.major&&B.semver.minor===c.minor&&B.semver.patch===c.patch&&(c=!1),"<"===B.operator||"<="===B.operator){if(s=W5(r,B,t),s===B&&s!==r)return!1}else if("<="===r.operator&&!T5(r.semver,String(B),t))return!1;if(!B.operator&&(r||o)&&0!==i)return!1}return!(o&&l&&!r&&0!==i)&&(!(r&&g&&!o&&0!==i)&&(!u&&!c))},z5=(A,e,t)=>{if(!A)return e;const n=J5(A.semver,e.semver,t);return n>0?A:n<0||">"===e.operator&&">="===A.operator?e:A},W5=(A,e,t)=>{if(!A)return e;const n=J5(A.semver,e.semver,t);return n<0?A:n>0||"<"===e.operator&&"<="===A.operator?e:A};var _5=(A,e,t={})=>{if(A===e)return!0;A=new U5(A,t),e=new U5(e,t);let n=!1;A:for(const o of A.set){for(const A of e.set){const e=$5(o,A,t);if(n=n||null!==e,e)continue A}if(n)return!1}return!0};const X5=G2,V5=L2,Z5=V2,A3=J2,e3=(A,e,t)=>{const n=[];let o=null,r=null;const i=A.sort(((A,e)=>O5(A,e,t)));for(const g of i){G5(g,e,t)?(r=g,o||(o=g)):(r&&n.push([o,r]),r=null,o=null)}o&&n.push([o,null]);const a=[];for(const[g,c]of n)g===c?a.push(g):c||g!==i[0]?c?g===i[0]?a.push(`<=${c}`):a.push(`${g} - ${c}`):a.push(`>=${g}`):a.push("*");const s=a.join(" || "),l="string"==typeof e.raw?e.raw:String(e);return s.length{await fetch("/lobe/config",{body:JSON.stringify(A),headers:{"Content-Type":"application/json"},method:"POST"})},i3=async()=>{const A=await fetch("/lobe/prompt");return await A.json()},a3={confirmPageUnload:!1,enableExtraNetworkSidebar:!0,enableHighlight:!1,enableImageInfo:!0,enableSidebar:!0,enableWebFont:!0,extraNetworkCardSize:86,extraNetworkFixedMode:"fixed",extraNetworkSidebarExpand:!0,extraNetworkSidebarWidth:340,i18n:"en_US",layoutHideFooter:!1,layoutSplitPreview:!1,liteAnimation:!0,logoCustomTitle:"",logoCustomUrl:"",logoType:"lobe",neutralColor:void 0,primaryColor:void 0,promptEditor:!1,promptTextareaType:"resizable",sidebarExpand:!0,sidebarFixedMode:"fixed",sidebarWidth:280,svgIcon:!0},s3={currentTab:"tab_txt2img",latestVersion:n3,loading:!0,localeOptions:o3,setting:a3,themeMode:"dark",version:n3},l3="SD-LOBE-SETTING",g3=(A,e)=>({onInit:async()=>{A((()=>({loading:!0})),!1,"onInit");const{onLoadSetting:t,onLoadVersion:n,onLoadLatestVersion:o,onLoadLocalOptions:r}=e();await r(),await n(),await o(),await t(),A((()=>({loading:!1})),!1,"onInit")},onLoadLatestVersion:async()=>{const e=await(async()=>{const A=await fetch(`https://api.github.com/repos/${u1.replace("https://github.com/","")}/releases/latest`),e=await A.json();return e&&e.tag_name&&t3.clean(e.tag_name)||n3})();A((()=>({latestVersion:e})),!1,"onLoadLatestVersion")},onLoadLocalOptions:async()=>{const e=await(async()=>{const A=await fetch("/lobe/locales/options"),e=await A.json();return e&&0!==(null==e?void 0:e.length)?e:o3})();A((()=>({localeOptions:e})),!1,"onLoadLocalOptions")},onLoadSetting:async()=>{let e;const t=await(async()=>{const A=await fetch("/lobe/config"),e=await A.json();if(e&&!(null==e?void 0:e.empty))return e})();if(t&&(uA.start("๐Ÿคฏ [setting] loaded webui setting"),e=t),!e){const A=localStorage.getItem(l3);A&&(uA.info("๐Ÿคฏ [setting] loaded local setting"),e=JSON.parse(A))}if(!e){const A=localStorage.getItem("SD-KITCHEN-SETTING");A&&(uA.info("๐Ÿคฏ [setting] loaded fallback local setting"),e=JSON.parse(A))}e||(uA.info("๐Ÿคฏ [setting] loaded default setting"),e=a3);const n={...a3,...e};await r3(n),A((()=>({setting:n})),!1,"onLoadSetting"),uA.success("๐Ÿคฏ [setting] loaded"),console.table(n)},onLoadVersion:async()=>{const e=await(async()=>{const A=await fetch("/lobe/package"),e=await A.json();return e&&!e.empty&&e.version?e.version:n3})();A((()=>({version:e})),!1,"onLoadVersion")},onSetSetting:async t=>{const n={...e().setting,...t};localStorage.setItem(l3,JSON.stringify(n)),await r3(n),A((()=>({setting:n})),!1,"onSetSetting")},onSetThemeMode:e=>{A((()=>({themeMode:e})),!1,"onSetThemeMode")},setCurrentTab:()=>{var t;const n=null==(t=get_uiCurrentTabContent())?void 0:t.id;uA.info("๐Ÿคฏ [tab] onChange",n),n&&n!==e().currentTab&&A({currentTab:n},!1,"setCurrentTab")}}),c3=A=>({...a3,...A.setting}),u3=A=>c3(A).i18n,B3=c3,Q3=A=>A.currentTab,E3=A=>A.themeMode,C3=N2(o2(((...A)=>({...s3,...g3(...A)}))),(function(A,e){if(Object.is(A,e))return!0;if("object"!=typeof A||null===A||"object"!=typeof e||null===e)return!1;if(A instanceof Map&&e instanceof Map){if(A.size!==e.size)return!1;for(const[t,n]of A)if(!Object.is(n,e.get(t)))return!1;return!0}if(A instanceof Set&&e instanceof Set){if(A.size!==e.size)return!1;for(const t of A)if(!e.has(t))return!1;return!0}const t=Object.keys(A);if(t.length!==Object.keys(e).length)return!1;for(const n of t)if(!Object.prototype.hasOwnProperty.call(e,n)||!Object.is(A[n],e[n]))return!1;return!0})),d3=JSON.parse(localStorage.getItem(l3));c8.use(_8).use(O8).init({backend:{loadPath:"/lobe/locales/{{lng}}"},debug:!1,fallbackLng:"en_US",lng:(null==d3?void 0:d3.i18n)||"en_US"});const I3={attributes:!0,characterData:!0,childList:!0,subtree:!0},p3=(A,{subSelector:e,valueProp:t="innerHTML"}={})=>{const[n,o]=J.useState("");return J.useEffect((()=>{const n=new MutationObserver((A=>{var n;for(const r of A)if("childList"===r.type||"characterData"===r.type)if(e){const A=r.target.querySelector(e);o(String(A[t]))}else o(String(null==(n=r.target)?void 0:n.innerHTML))})),r=gradioApp().querySelector(A);if(r){n.observe(r,I3);const A=e?r.querySelector(e):r;o(String(null==A?void 0:A[t]))}return()=>{n.disconnect()}}),[A,e,t]),String(n)},f3=A=>{J.useEffect((()=>{const e=gradioApp().querySelector(A);e&&(e.style.display="none")}),[])},h3=oY((({css:A,token:e,isDarkMode:t})=>{const n=t?"dark":"light",o=t?sV.lime[n][9]:sV.green[n][10];return{configTitle:A` + */var h2="function"==typeof Object.is?Object.is:function(A,e){return A===e&&(0!==A||1/A==1/e)||A!=A&&e!=e},w2=f2.useSyncExternalStore,D2=p2.useRef,m2=p2.useEffect,y2=p2.useMemo,b2=p2.useDebugValue;a2.useSyncExternalStoreWithSelector=function(A,e,t,n,o){var r=D2(null);if(null===r.current){var i={hasValue:!1,value:null};r.current=i}else i=r.current;r=y2((function(){function A(A){if(!s){if(s=!0,r=A,A=n(A),void 0!==o&&i.hasValue){var e=i.value;if(o(e,A))return a=e}return a=A}if(e=a,h2(r,A))return e;var t=n(A);return void 0!==o&&o(e,t)?e:(r=A,a=t)}var r,a,s=!1,l=void 0===t?null:t;return[function(){return A(e())},null===l?void 0:function(){return A(l())}]}),[e,t,n,o]);var a=w2(A,r[0],r[1]);return m2((function(){i.hasValue=!0,i.value=a}),[a]),b2(a),a},i2.exports=a2;const v2=o(i2.exports);var k2={BASE_URL:"/dev",MODE:"production",DEV:!1,PROD:!0,SSR:!1};const M2=A=>{let e;const t=new Set,n=(A,n)=>{const o="function"==typeof A?A(e):A;if(!Object.is(o,e)){const A=e;e=(null!=n?n:"object"!=typeof o||null===o)?o:Object.assign({},e,o),t.forEach((t=>t(e,A)))}},o=()=>e,r={setState:n,getState:o,getInitialState:()=>i,subscribe:A=>(t.add(A),()=>t.delete(A)),destroy:()=>{"production"!==(k2?"production":void 0)&&console.warn("[DEPRECATED] The `destroy` method will be unsupported in a future version. Instead use unsubscribe function returned by subscribe. Everything will be garbage-collected if store is garbage-collected."),t.clear()}},i=e=A(n,o,r);return r},{useDebugValue:x2}=j,{useSyncExternalStoreWithSelector:S2}=v2,F2=A=>A;const N2=(A,e)=>{const t=(A=>A?M2(A):M2)(A),n=(A,n=e)=>function(A,e=F2,t){const n=S2(A.subscribe,A.getState,A.getServerState||A.getInitialState,e,t);return x2(n),n}(t,A,n);return Object.assign(n,t),n};var R2={exports:{}};var L2={MAX_LENGTH:256,MAX_SAFE_COMPONENT_LENGTH:16,MAX_SAFE_BUILD_LENGTH:250,MAX_SAFE_INTEGER:Number.MAX_SAFE_INTEGER||9007199254740991,RELEASE_TYPES:["major","premajor","minor","preminor","patch","prepatch","prerelease"],SEMVER_SPEC_VERSION:"2.0.0",FLAG_INCLUDE_PRERELEASE:1,FLAG_LOOSE:2},P2={ALLUSERSPROFILE:"C:\\ProgramData",APPDATA:"C:\\Users\\i\\AppData\\Roaming",ChocolateyInstall:"C:\\ProgramData\\chocolatey",ChocolateyLastPathUpdate:'"133236781557883687"',CommonProgramFiles:"C:\\Program Files\\Common Files","CommonProgramFiles(x86)":"C:\\Program Files (x86)\\Common Files",CommonProgramW6432:"C:\\Program Files\\Common Files",COMPUTERNAME:"CANISMINOR-PRO",ComSpec:"C:\\WINDOWS\\system32\\cmd.exe",CONDA_PROMPT_MODIFIER:"False",CUDA_PATH:"C:\\Program Files\\NVIDIA GPU Computing Toolkit\\CUDA\\v12.1",CUDA_PATH_V11_8:"C:\\Program Files\\NVIDIA GPU Computing Toolkit\\CUDA\\v11.8",CUDA_PATH_V12_1:"C:\\Program Files\\NVIDIA GPU Computing Toolkit\\CUDA\\v12.1",DriverData:"C:\\Windows\\System32\\Drivers\\DriverData",HOME:"C:\\Users\\i",HOMEDRIVE:"C:",HOMEPATH:"\\Users\\i",IDEA_INITIAL_DIRECTORY:"C:\\WINDOWS\\system32",INIT_CWD:"D:\\stable-diffusion-webui\\extensions\\sd-webui-lobe-theme",INTEL_DEV_REDIST:"C:\\Program Files (x86)\\Common Files\\Intel\\Shared Libraries\\",LOCALAPPDATA:"C:\\Users\\i\\AppData\\Local",LOGONSERVER:"\\\\CANISMINOR-PRO",MIC_LD_LIBRARY_PATH:"C:\\Program Files (x86)\\Common Files\\Intel\\Shared Libraries\\compiler\\lib\\mic",NDI_RUNTIME_DIR_V2:"C:\\Program Files\\NDI\\NDI 5 Runtime\\v5",NDI_RUNTIME_DIR_V3:"C:\\Program Files\\NDI\\NDI 5 Runtime\\v5",NDI_RUNTIME_DIR_V4:"C:\\Program Files\\NDI\\NDI 5 Runtime\\v5",NDI_RUNTIME_DIR_V5:"C:\\Program Files\\NDI\\NDI 5 Runtime\\v5",NODE:"C:\\Program Files\\nodejs\\node.exe",NODE_ENV:"production",NODE_PATH:"D:\\stable-diffusion-webui\\extensions\\sd-webui-lobe-theme\\node_modules\\.pnpm\\vite@5.2.11_@types+node@20.12.12_terser@5.31.0\\node_modules\\vite\\bin\\node_modules;D:\\stable-diffusion-webui\\extensions\\sd-webui-lobe-theme\\node_modules\\.pnpm\\vite@5.2.11_@types+node@20.12.12_terser@5.31.0\\node_modules\\vite\\node_modules;D:\\stable-diffusion-webui\\extensions\\sd-webui-lobe-theme\\node_modules\\.pnpm\\vite@5.2.11_@types+node@20.12.12_terser@5.31.0\\node_modules;D:\\stable-diffusion-webui\\extensions\\sd-webui-lobe-theme\\node_modules\\.pnpm\\node_modules;C:\\Users\\i\\AppData\\Local\\pnpm\\global\\5\\.pnpm\\pnpm@9.0.6\\node_modules\\pnpm\\bin\\node_modules;C:\\Users\\i\\AppData\\Local\\pnpm\\global\\5\\.pnpm\\pnpm@9.0.6\\node_modules\\pnpm\\node_modules;C:\\Users\\i\\AppData\\Local\\pnpm\\global\\5\\.pnpm\\pnpm@9.0.6\\node_modules;C:\\Users\\i\\AppData\\Local\\pnpm\\global\\5\\.pnpm\\node_modules",npm_command:"run-script",npm_config_frozen_lockfile:"",npm_config_lockfile:"",npm_config_node_gyp:"C:\\Users\\i\\AppData\\Local\\pnpm\\global\\5\\.pnpm\\pnpm@9.0.6\\node_modules\\pnpm\\dist\\node_modules\\node-gyp\\bin\\node-gyp.js",npm_config_registry:"https://registry.npmmirror.com",npm_config_resolution_mode:"highest",npm_config_user_agent:"pnpm/9.0.6 npm/? node/v20.10.0 win32 x64",npm_execpath:"C:\\Users\\i\\AppData\\Local\\pnpm\\global\\5\\.pnpm\\pnpm@9.0.6\\node_modules\\pnpm\\bin\\pnpm.cjs",npm_lifecycle_event:"build",npm_lifecycle_script:"vite build",npm_node_execpath:"C:\\Program Files\\nodejs\\node.exe",npm_package_author:"LobeHub ",npm_package_bugs_url:"https://github.com/lobehub/sd-webui-lobe-theme/issues/new",npm_package_dependencies_ahooks:"^3.7.11",npm_package_dependencies_antd:"5.17.0",npm_package_dependencies_antd_style:"^3.6.2",npm_package_dependencies_consola:"^3.2.3",npm_package_dependencies_dayjs:"^1.11.11",npm_package_dependencies_i18next:"^23.11.4",npm_package_dependencies_i18next_http_backend:"^2.5.1",npm_package_dependencies_lodash_es:"^4.17.21",npm_package_dependencies_lucide_react:"latest",npm_package_dependencies_lucide_static:"latest",npm_package_dependencies_modern_screenshot:"^4.4.39",npm_package_dependencies_polished:"^4.3.1",npm_package_dependencies_react:"^18.3.1",npm_package_dependencies_react_dnd:"^16.0.1",npm_package_dependencies_react_dnd_html5_backend:"^16.0.1",npm_package_dependencies_react_dom:"^18.3.1",npm_package_dependencies_react_helmet:"^6.1.0",npm_package_dependencies_react_i18next:"^14.1.1",npm_package_dependencies_react_layout_kit:"^1.9.0",npm_package_dependencies_react_rnd:"^10.4.10",npm_package_dependencies_react_tag_input:"^6.9.0",npm_package_dependencies_semver:"^7.6.2",npm_package_dependencies_shiki:"^1.5.2",npm_package_dependencies_split_smartly2:"^2.0.1",npm_package_dependencies_swr:"^2.2.5",npm_package_dependencies_url_join:"^5.0.0",npm_package_dependencies_zustand:"^4.5.2",npm_package_dependencies_zustand_utils:"^1.3.2",npm_package_dependencies__bluelovers_auto1111_pnginfo:"^2.0.2",npm_package_dependencies__icons_pack_react_simple_icons:"^9.5.0",npm_package_dependencies__lobehub_ui:"^1.138.25",npm_package_dependencies__rollup_rollup_win32_x64_msvc:"^4.17.2",npm_package_description:"LobeThem: The Modern Theme for Stable Diffusion WebUI, Exquisite interface design, Highly customizable UI, and Efficiency boosting features.",npm_package_devDependencies_commitlint:"^19.3.0",npm_package_devDependencies_dotenv:"^16.4.5",npm_package_devDependencies_eslint:"^8.57.0",npm_package_devDependencies_fast_deep_equal:"^3.1.3",npm_package_devDependencies_husky:"^9.0.11",npm_package_devDependencies_jsdom:"^24.0.0",npm_package_devDependencies_lint_staged:"^15.2.2",npm_package_devDependencies_prettier:"^3.2.5",npm_package_devDependencies_query_string:"^9.0.0",npm_package_devDependencies_remark:"^14.0.3",npm_package_devDependencies_remark_cli:"^11.0.0",npm_package_devDependencies_semantic_release:"^21.1.2",npm_package_devDependencies_stylelint:"^15.11.0",npm_package_devDependencies_terser:"^5.31.0",npm_package_devDependencies_typescript:"^5.4.5",npm_package_devDependencies_vite:"^5.2.11",npm_package_devDependencies_vitest:"~1.2.2",npm_package_devDependencies__commitlint_cli:"^19.3.0",npm_package_devDependencies__lobehub_lint:"^1.23.4",npm_package_devDependencies__testing_library_jest_dom:"^6.4.5",npm_package_devDependencies__testing_library_react:"^15.0.7",npm_package_devDependencies__types_lodash_es:"^4.17.12",npm_package_devDependencies__types_node:"^20.12.12",npm_package_devDependencies__types_react:"^18.3.2",npm_package_devDependencies__types_react_dom:"^18.3.0",npm_package_devDependencies__types_react_helmet:"^6.1.11",npm_package_devDependencies__types_react_tag_input:"^6.6.6",npm_package_devDependencies__types_semver:"^7.5.8",npm_package_devDependencies__vitejs_plugin_react_swc:"^3.6.0",npm_package_devDependencies__vitest_coverage_v8:"^1.6.0",npm_package_files_0:"javascript",npm_package_homepage:"https://github.com/lobehub/sd-webui-lobe-theme",npm_package_keywords_0:"lobehub",npm_package_keywords_1:"stable-diffusion-webui",npm_package_keywords_2:"sd-webui-kitchen-theme",npm_package_keywords_3:"kitchen-theme",npm_package_keywords_4:"extensions",npm_package_license:"AGPL3",npm_package_lint_staged___json_0:"prettier --write --no-error-on-unmatched-pattern",npm_package_lint_staged___md_0:"remark --quiet --output --",npm_package_lint_staged___md_1:"prettier --write --no-error-on-unmatched-pattern",npm_package_lint_staged____css_less__0:"stylelint --fix --allow-empty-input",npm_package_lint_staged____css_less__1:"prettier --write",npm_package_lint_staged____js_jsx__0:"prettier --write",npm_package_lint_staged____js_jsx__1:"stylelint --fix",npm_package_lint_staged____js_jsx__2:"eslint --fix",npm_package_lint_staged____ts_tsx__0:"prettier --parser=typescript --write",npm_package_lint_staged____ts_tsx__1:"stylelint --fix",npm_package_lint_staged____ts_tsx__2:"eslint --fix",npm_package_main:"javascript/main.js",npm_package_name:"sd-webui-lobe-theme",npm_package_private:"true",npm_package_publishConfig_access:"public",npm_package_publishConfig_registry:"https://registry.npmjs.org",npm_package_repository_type:"git",npm_package_repository_url:"https://github.com/lobehub/sd-webui-lobe-theme.git",npm_package_scripts_build:"vite build",npm_package_scripts_ci:"npm run lint && npm run type-check",npm_package_scripts_dev:"vite",npm_package_scripts_dev_sd:"cd ../../ && ./webui.sh",npm_package_scripts_i18n:"lobe-i18n",npm_package_scripts_lint:'eslint "src/**/*.{js,jsx,ts,tsx}" --fix',npm_package_scripts_lint_md:"remark . --quiet --output",npm_package_scripts_lint_style:'stylelint "src/**/*.{css,less,js,jsx,ts,tsx}" --fix',npm_package_scripts_prepare:"husky install",npm_package_scripts_prettier:'prettier -c --write "**/**"',npm_package_scripts_release:"semantic-release",npm_package_scripts_start:"npm run dev",npm_package_scripts_test:"vitest --passWithNoTests",npm_package_scripts_test_coverage:"vitest run --coverage --passWithNoTests",npm_package_scripts_test_update:"vitest -u",npm_package_scripts_type_check:"tsc --noEmit",npm_package_sideEffects:"false",npm_package_version:"3.5.3",NUMBER_OF_PROCESSORS:"32",NVAFX_SDK_DIR:"C:\\Program Files\\NVIDIA Corporation\\NVIDIA Audio Effects SDK",NVTOOLSEXT_PATH:"C:\\Program Files\\NVIDIA Corporation\\NvToolsExt\\",NVVFX_MODEL_DIR:"C:\\Program Files\\NVIDIA Corporation\\NVIDIA Video Effects\\models",OneDrive:"C:\\Users\\i\\OneDrive",OneDriveConsumer:"C:\\Users\\i\\OneDrive",OS:"Windows_NT",Path:"D:\\stable-diffusion-webui\\extensions\\sd-webui-lobe-theme\\node_modules\\.bin;C:\\Users\\i\\AppData\\Local\\pnpm\\global\\5\\.pnpm\\pnpm@9.0.6\\node_modules\\pnpm\\dist\\node-gyp-bin;C:\\Users\\i\\AppData\\Local\\oh-my-posh;C:\\Program Files\\PowerShell\\7;C:\\Program Files\\NVIDIA GPU Computing Toolkit\\CUDA\\v11.8\\bin;C:\\Program Files\\NVIDIA GPU Computing Toolkit\\CUDA\\v11.8\\libnvvp;C:\\Program Files\\NVIDIA GPU Computing Toolkit\\CUDA\\v11.8\\extras;C:\\Program Files\\NVIDIA GPU Computing Toolkit\\CUDA\\v11.8\\cudnn\\bin;C:\\Program Files\\NVIDIA GPU Computing Toolkit\\CUDA\\v12.1\\bin;C:\\Program Files\\NVIDIA GPU Computing Toolkit\\CUDA\\v12.1\\libnvvp;C:\\Program Files\\NVIDIA GPU Computing Toolkit\\CUDA\\v12.1\\extras;C:\\Program Files\\NVIDIA GPU Computing Toolkit\\CUDA\\v12.1\\cudnn\\bin;C:\\Program Files (x86)\\Common Files\\Intel\\Shared Libraries\\redist\\intel64\\compiler;C:\\WINDOWS\\system32;C:\\WINDOWS;C:\\WINDOWS\\System32\\Wbem;C:\\WINDOWS\\System32\\WindowsPowerShell\\v1.0\\;C:\\WINDOWS\\System32\\OpenSSH\\;C:\\Program Files\\NVIDIA Corporation\\NVIDIA NvDLISR;C:\\Program Files (x86)\\NVIDIA Corporation\\PhysX\\Common;C:\\ProgramData\\chocolatey\\bin;C:\\Program Files\\dotnet\\;C:\\Program Files\\NVIDIA Corporation\\Nsight Compute 2022.3.0\\;C:\\Program Files\\Graphviz\\bin;C:\\Program Files\\starship\\bin\\;C:\\Program Files\\Microsoft VS Code\\bin;C:\\Program Files\\Git\\cmd;C:\\Program Files\\nodejs\\;C:\\Program Files\\PowerShell\\7\\;C:\\Users\\i\\AppData\\Local\\pnpm;C:\\Users\\i\\AppData\\Local\\Programs\\Python\\Python310\\Scripts\\;C:\\Users\\i\\AppData\\Local\\Programs\\Python\\Python310\\;c:\\users\\i\\appdata\\local\\microsoft\\windowsapps;c:\\users\\i\\appdata\\local\\jetbrains\\toolbox\\scripts;c:\\users\\i\\appdata\\local\\programs\\oh-my-posh\\bin;C:\\Users\\i\\appdata\\local\\microsoft\\windowsapps;c:\\users\\i\\appdata\\local\\microsoft\\winget\\links;C:\\Users\\i\\AppData\\Local\\Programs\\Hyper\\resources\\bin;C:\\Users\\i\\AppData\\Local\\Microsoft\\WindowsApps;C:\\Users\\i\\AppData\\Local\\Programs\\oh-my-posh\\bin;C:\\Users\\i\\AppData\\Roaming\\npm;C:\\Users\\i\\.bun\\bin;C:\\Users\\i\\AppData\\Local\\Microsoft\\WindowsApps;C:\\Users\\i\\.dotnet\\tools;D:\\stable-diffusion-webui\\extensions\\sd-webui-lobe-theme\\node_modules\\.bin",PATHEXT:".COM;.EXE;.BAT;.CMD;.VBS;.VBE;.JSE;.WSF;.WSH;.MSC;.CPL",PNPM_HOME:"C:\\Users\\i\\AppData\\Local\\pnpm",PNPM_SCRIPT_SRC_DIR:"D:\\stable-diffusion-webui\\extensions\\sd-webui-lobe-theme",POSH_AZURE_ENABLED:"False",POSH_CURSOR_COLUMN:"1",POSH_CURSOR_LINE:"17",POSH_GIT_ENABLED:"True",POSH_INSTALLER:"winget",POSH_PATH:"C:\\Users\\i\\AppData\\Local\\oh-my-posh",POSH_PID:"37208",POSH_SHELL_VERSION:"7.4.2",POSH_THEME:"C:\\Users\\i\\AppData\\Local\\oh-my-posh\\themes\\mytheme.omp.json",POSH_THEMES_PATH:"C:\\Users\\i\\AppData\\Local\\oh-my-posh\\themes",POWERLINE_COMMAND:"oh-my-posh",POWERSHELL_DISTRIBUTION_CHANNEL:"MSI:Windows 10 Pro",PROCESSOR_ARCHITECTURE:"AMD64",PROCESSOR_IDENTIFIER:"Intel64 Family 6 Model 183 Stepping 1, GenuineIntel",PROCESSOR_LEVEL:"6",PROCESSOR_REVISION:"b701",ProgramData:"C:\\ProgramData",ProgramFiles:"C:\\Program Files","ProgramFiles(x86)":"C:\\Program Files (x86)",ProgramW6432:"C:\\Program Files",PROMPT:"$P$G",PSModulePath:"D:\\ๆœฌๅœฐ่ต„ๆบๅบ“\\Documents\\PowerShell\\Modules;C:\\Program Files\\PowerShell\\Modules;c:\\program files\\powershell\\7\\Modules;C:\\Program Files\\WindowsPowerShell\\Modules;C:\\WINDOWS\\system32\\WindowsPowerShell\\v1.0\\Modules",PUBLIC:"C:\\Users\\Public",SystemDrive:"C:",SystemRoot:"C:\\WINDOWS",TEMP:"C:\\Users\\i\\AppData\\Local\\Temp",TERMINAL_EMULATOR:"JetBrains-JediTerm",TERM_SESSION_ID:"1c36c019-4be3-4781-8a58-75746fe1312a",TMP:"C:\\Users\\i\\AppData\\Local\\Temp",USERDOMAIN:"CANISMINOR-PRO",USERDOMAIN_ROAMINGPROFILE:"CANISMINOR-PRO",USERNAME:"i",USERPROFILE:"C:\\Users\\i",windir:"C:\\WINDOWS",__COMPAT_LAYER:"RunAsAdmin"};var H2="object"==typeof process&&P2&&P2.NODE_DEBUG&&/\bsemver\b/i.test(P2.NODE_DEBUG)?(...A)=>console.error("SEMVER",...A):()=>{};!function(A,e){const{MAX_SAFE_COMPONENT_LENGTH:t,MAX_SAFE_BUILD_LENGTH:n,MAX_LENGTH:o}=L2,r=H2,i=(e=A.exports={}).re=[],a=e.safeRe=[],s=e.src=[],l=e.t={};let g=0;const c="[a-zA-Z0-9-]",u=[["\\s",1],["\\d",o],[c,n]],B=(A,e,t)=>{const n=(A=>{for(const[e,t]of u)A=A.split(`${e}*`).join(`${e}{0,${t}}`).split(`${e}+`).join(`${e}{1,${t}}`);return A})(e),o=g++;r(A,o,e),l[A]=o,s[o]=e,i[o]=new RegExp(e,t?"g":void 0),a[o]=new RegExp(n,t?"g":void 0)};B("NUMERICIDENTIFIER","0|[1-9]\\d*"),B("NUMERICIDENTIFIERLOOSE","\\d+"),B("NONNUMERICIDENTIFIER",`\\d*[a-zA-Z-]${c}*`),B("MAINVERSION",`(${s[l.NUMERICIDENTIFIER]})\\.(${s[l.NUMERICIDENTIFIER]})\\.(${s[l.NUMERICIDENTIFIER]})`),B("MAINVERSIONLOOSE",`(${s[l.NUMERICIDENTIFIERLOOSE]})\\.(${s[l.NUMERICIDENTIFIERLOOSE]})\\.(${s[l.NUMERICIDENTIFIERLOOSE]})`),B("PRERELEASEIDENTIFIER",`(?:${s[l.NUMERICIDENTIFIER]}|${s[l.NONNUMERICIDENTIFIER]})`),B("PRERELEASEIDENTIFIERLOOSE",`(?:${s[l.NUMERICIDENTIFIERLOOSE]}|${s[l.NONNUMERICIDENTIFIER]})`),B("PRERELEASE",`(?:-(${s[l.PRERELEASEIDENTIFIER]}(?:\\.${s[l.PRERELEASEIDENTIFIER]})*))`),B("PRERELEASELOOSE",`(?:-?(${s[l.PRERELEASEIDENTIFIERLOOSE]}(?:\\.${s[l.PRERELEASEIDENTIFIERLOOSE]})*))`),B("BUILDIDENTIFIER",`${c}+`),B("BUILD",`(?:\\+(${s[l.BUILDIDENTIFIER]}(?:\\.${s[l.BUILDIDENTIFIER]})*))`),B("FULLPLAIN",`v?${s[l.MAINVERSION]}${s[l.PRERELEASE]}?${s[l.BUILD]}?`),B("FULL",`^${s[l.FULLPLAIN]}$`),B("LOOSEPLAIN",`[v=\\s]*${s[l.MAINVERSIONLOOSE]}${s[l.PRERELEASELOOSE]}?${s[l.BUILD]}?`),B("LOOSE",`^${s[l.LOOSEPLAIN]}$`),B("GTLT","((?:<|>)?=?)"),B("XRANGEIDENTIFIERLOOSE",`${s[l.NUMERICIDENTIFIERLOOSE]}|x|X|\\*`),B("XRANGEIDENTIFIER",`${s[l.NUMERICIDENTIFIER]}|x|X|\\*`),B("XRANGEPLAIN",`[v=\\s]*(${s[l.XRANGEIDENTIFIER]})(?:\\.(${s[l.XRANGEIDENTIFIER]})(?:\\.(${s[l.XRANGEIDENTIFIER]})(?:${s[l.PRERELEASE]})?${s[l.BUILD]}?)?)?`),B("XRANGEPLAINLOOSE",`[v=\\s]*(${s[l.XRANGEIDENTIFIERLOOSE]})(?:\\.(${s[l.XRANGEIDENTIFIERLOOSE]})(?:\\.(${s[l.XRANGEIDENTIFIERLOOSE]})(?:${s[l.PRERELEASELOOSE]})?${s[l.BUILD]}?)?)?`),B("XRANGE",`^${s[l.GTLT]}\\s*${s[l.XRANGEPLAIN]}$`),B("XRANGELOOSE",`^${s[l.GTLT]}\\s*${s[l.XRANGEPLAINLOOSE]}$`),B("COERCEPLAIN",`(^|[^\\d])(\\d{1,${t}})(?:\\.(\\d{1,${t}}))?(?:\\.(\\d{1,${t}}))?`),B("COERCE",`${s[l.COERCEPLAIN]}(?:$|[^\\d])`),B("COERCEFULL",s[l.COERCEPLAIN]+`(?:${s[l.PRERELEASE]})?(?:${s[l.BUILD]})?(?:$|[^\\d])`),B("COERCERTL",s[l.COERCE],!0),B("COERCERTLFULL",s[l.COERCEFULL],!0),B("LONETILDE","(?:~>?)"),B("TILDETRIM",`(\\s*)${s[l.LONETILDE]}\\s+`,!0),e.tildeTrimReplace="$1~",B("TILDE",`^${s[l.LONETILDE]}${s[l.XRANGEPLAIN]}$`),B("TILDELOOSE",`^${s[l.LONETILDE]}${s[l.XRANGEPLAINLOOSE]}$`),B("LONECARET","(?:\\^)"),B("CARETTRIM",`(\\s*)${s[l.LONECARET]}\\s+`,!0),e.caretTrimReplace="$1^",B("CARET",`^${s[l.LONECARET]}${s[l.XRANGEPLAIN]}$`),B("CARETLOOSE",`^${s[l.LONECARET]}${s[l.XRANGEPLAINLOOSE]}$`),B("COMPARATORLOOSE",`^${s[l.GTLT]}\\s*(${s[l.LOOSEPLAIN]})$|^$`),B("COMPARATOR",`^${s[l.GTLT]}\\s*(${s[l.FULLPLAIN]})$|^$`),B("COMPARATORTRIM",`(\\s*)${s[l.GTLT]}\\s*(${s[l.LOOSEPLAIN]}|${s[l.XRANGEPLAIN]})`,!0),e.comparatorTrimReplace="$1$2$3",B("HYPHENRANGE",`^\\s*(${s[l.XRANGEPLAIN]})\\s+-\\s+(${s[l.XRANGEPLAIN]})\\s*$`),B("HYPHENRANGELOOSE",`^\\s*(${s[l.XRANGEPLAINLOOSE]})\\s+-\\s+(${s[l.XRANGEPLAINLOOSE]})\\s*$`),B("STAR","(<|>)?=?\\s*\\*"),B("GTE0","^\\s*>=\\s*0\\.0\\.0\\s*$"),B("GTE0PRE","^\\s*>=\\s*0\\.0\\.0-0\\s*$")}(R2,R2.exports);var G2=R2.exports;const O2=Object.freeze({loose:!0}),U2=Object.freeze({});var K2=A=>A?"object"!=typeof A?O2:A:U2;const Y2=/^[0-9]+$/,T2=(A,e)=>{const t=Y2.test(A),n=Y2.test(e);return t&&n&&(A=+A,e=+e),A===e?0:t&&!n?-1:n&&!t?1:AT2(e,A)};const j2=H2,{MAX_LENGTH:q2,MAX_SAFE_INTEGER:$2}=L2,{safeRe:z2,t:W2}=G2,_2=K2,{compareIdentifiers:X2}=J2;var V2=class A{constructor(e,t){if(t=_2(t),e instanceof A){if(e.loose===!!t.loose&&e.includePrerelease===!!t.includePrerelease)return e;e=e.version}else if("string"!=typeof e)throw new TypeError(`Invalid version. Must be a string. Got type "${typeof e}".`);if(e.length>q2)throw new TypeError(`version is longer than ${q2} characters`);j2("SemVer",e,t),this.options=t,this.loose=!!t.loose,this.includePrerelease=!!t.includePrerelease;const n=e.trim().match(t.loose?z2[W2.LOOSE]:z2[W2.FULL]);if(!n)throw new TypeError(`Invalid Version: ${e}`);if(this.raw=e,this.major=+n[1],this.minor=+n[2],this.patch=+n[3],this.major>$2||this.major<0)throw new TypeError("Invalid major version");if(this.minor>$2||this.minor<0)throw new TypeError("Invalid minor version");if(this.patch>$2||this.patch<0)throw new TypeError("Invalid patch version");n[4]?this.prerelease=n[4].split(".").map((A=>{if(/^[0-9]+$/.test(A)){const e=+A;if(e>=0&&e<$2)return e}return A})):this.prerelease=[],this.build=n[5]?n[5].split("."):[],this.format()}format(){return this.version=`${this.major}.${this.minor}.${this.patch}`,this.prerelease.length&&(this.version+=`-${this.prerelease.join(".")}`),this.version}toString(){return this.version}compare(e){if(j2("SemVer.compare",this.version,this.options,e),!(e instanceof A)){if("string"==typeof e&&e===this.version)return 0;e=new A(e,this.options)}return e.version===this.version?0:this.compareMain(e)||this.comparePre(e)}compareMain(e){return e instanceof A||(e=new A(e,this.options)),X2(this.major,e.major)||X2(this.minor,e.minor)||X2(this.patch,e.patch)}comparePre(e){if(e instanceof A||(e=new A(e,this.options)),this.prerelease.length&&!e.prerelease.length)return-1;if(!this.prerelease.length&&e.prerelease.length)return 1;if(!this.prerelease.length&&!e.prerelease.length)return 0;let t=0;do{const A=this.prerelease[t],n=e.prerelease[t];if(j2("prerelease compare",t,A,n),void 0===A&&void 0===n)return 0;if(void 0===n)return 1;if(void 0===A)return-1;if(A!==n)return X2(A,n)}while(++t)}compareBuild(e){e instanceof A||(e=new A(e,this.options));let t=0;do{const A=this.build[t],n=e.build[t];if(j2("build compare",t,A,n),void 0===A&&void 0===n)return 0;if(void 0===n)return 1;if(void 0===A)return-1;if(A!==n)return X2(A,n)}while(++t)}inc(A,e,t){switch(A){case"premajor":this.prerelease.length=0,this.patch=0,this.minor=0,this.major++,this.inc("pre",e,t);break;case"preminor":this.prerelease.length=0,this.patch=0,this.minor++,this.inc("pre",e,t);break;case"prepatch":this.prerelease.length=0,this.inc("patch",e,t),this.inc("pre",e,t);break;case"prerelease":0===this.prerelease.length&&this.inc("patch",e,t),this.inc("pre",e,t);break;case"major":0===this.minor&&0===this.patch&&0!==this.prerelease.length||this.major++,this.minor=0,this.patch=0,this.prerelease=[];break;case"minor":0===this.patch&&0!==this.prerelease.length||this.minor++,this.patch=0,this.prerelease=[];break;case"patch":0===this.prerelease.length&&this.patch++,this.prerelease=[];break;case"pre":{const A=Number(t)?1:0;if(!e&&!1===t)throw new Error("invalid increment argument: identifier is empty");if(0===this.prerelease.length)this.prerelease=[A];else{let n=this.prerelease.length;for(;--n>=0;)"number"==typeof this.prerelease[n]&&(this.prerelease[n]++,n=-2);if(-1===n){if(e===this.prerelease.join(".")&&!1===t)throw new Error("invalid increment argument: identifier already exists");this.prerelease.push(A)}}if(e){let n=[e,A];!1===t&&(n=[e]),0===X2(this.prerelease[0],e)?isNaN(this.prerelease[1])&&(this.prerelease=n):this.prerelease=n}break}default:throw new Error(`invalid increment argument: ${A}`)}return this.raw=this.format(),this.build.length&&(this.raw+=`+${this.build.join(".")}`),this}};const Z2=V2;var A4=(A,e,t=!1)=>{if(A instanceof Z2)return A;try{return new Z2(A,e)}catch(n){if(!t)return null;throw n}};const e4=A4;var t4=(A,e)=>{const t=e4(A,e);return t?t.version:null};const n4=A4;var o4=(A,e)=>{const t=n4(A.trim().replace(/^[=v]+/,""),e);return t?t.version:null};const r4=V2;var i4=(A,e,t,n,o)=>{"string"==typeof t&&(o=n,n=t,t=void 0);try{return new r4(A instanceof r4?A.version:A,t).inc(e,n,o).version}catch(r){return null}};const a4=A4;var s4=(A,e)=>{const t=a4(A,null,!0),n=a4(e,null,!0),o=t.compare(n);if(0===o)return null;const r=o>0,i=r?t:n,a=r?n:t,s=!!i.prerelease.length;if(!!a.prerelease.length&&!s)return a.patch||a.minor?i.patch?"patch":i.minor?"minor":"major":"major";const l=s?"pre":"";return t.major!==n.major?l+"major":t.minor!==n.minor?l+"minor":t.patch!==n.patch?l+"patch":"prerelease"};const l4=V2;var g4=(A,e)=>new l4(A,e).major;const c4=V2;var u4=(A,e)=>new c4(A,e).minor;const B4=V2;var Q4=(A,e)=>new B4(A,e).patch;const E4=A4;var C4=(A,e)=>{const t=E4(A,e);return t&&t.prerelease.length?t.prerelease:null};const d4=V2;var I4=(A,e,t)=>new d4(A,t).compare(new d4(e,t));const p4=I4;var f4=(A,e,t)=>p4(e,A,t);const h4=I4;var w4=(A,e)=>h4(A,e,!0);const D4=V2;var m4=(A,e,t)=>{const n=new D4(A,t),o=new D4(e,t);return n.compare(o)||n.compareBuild(o)};const y4=m4;var b4=(A,e)=>A.sort(((A,t)=>y4(A,t,e)));const v4=m4;var k4=(A,e)=>A.sort(((A,t)=>v4(t,A,e)));const M4=I4;var x4=(A,e,t)=>M4(A,e,t)>0;const S4=I4;var F4=(A,e,t)=>S4(A,e,t)<0;const N4=I4;var R4=(A,e,t)=>0===N4(A,e,t);const L4=I4;var P4=(A,e,t)=>0!==L4(A,e,t);const H4=I4;var G4=(A,e,t)=>H4(A,e,t)>=0;const O4=I4;var U4=(A,e,t)=>O4(A,e,t)<=0;const K4=R4,Y4=P4,T4=x4,J4=G4,j4=F4,q4=U4;var $4=(A,e,t,n)=>{switch(e){case"===":return"object"==typeof A&&(A=A.version),"object"==typeof t&&(t=t.version),A===t;case"!==":return"object"==typeof A&&(A=A.version),"object"==typeof t&&(t=t.version),A!==t;case"":case"=":case"==":return K4(A,t,n);case"!=":return Y4(A,t,n);case">":return T4(A,t,n);case">=":return J4(A,t,n);case"<":return j4(A,t,n);case"<=":return q4(A,t,n);default:throw new TypeError(`Invalid operator: ${e}`)}};const z4=V2,W4=A4,{safeRe:_4,t:X4}=G2;var V4=(A,e)=>{if(A instanceof z4)return A;if("number"==typeof A&&(A=String(A)),"string"!=typeof A)return null;let t=null;if((e=e||{}).rtl){const n=e.includePrerelease?_4[X4.COERCERTLFULL]:_4[X4.COERCERTL];let o;for(;(o=n.exec(A))&&(!t||t.index+t[0].length!==A.length);)t&&o.index+o[0].length===t.index+t[0].length||(t=o),n.lastIndex=o.index+o[1].length+o[2].length;n.lastIndex=-1}else t=A.match(e.includePrerelease?_4[X4.COERCEFULL]:_4[X4.COERCE]);if(null===t)return null;const n=t[2],o=t[3]||"0",r=t[4]||"0",i=e.includePrerelease&&t[5]?`-${t[5]}`:"",a=e.includePrerelease&&t[6]?`+${t[6]}`:"";return W4(`${n}.${o}.${r}${i}${a}`,e)};var Z4,A5,e5,t5,n5=class{constructor(){this.max=1e3,this.map=new Map}get(A){const e=this.map.get(A);return void 0===e?void 0:(this.map.delete(A),this.map.set(A,e),e)}delete(A){return this.map.delete(A)}set(A,e){if(!this.delete(A)&&void 0!==e){if(this.map.size>=this.max){const A=this.map.keys().next().value;this.delete(A)}this.map.set(A,e)}return this}};function o5(){if(A5)return Z4;A5=1;class A{constructor(e,o){if(o=t(o),e instanceof A)return e.loose===!!o.loose&&e.includePrerelease===!!o.includePrerelease?e:new A(e.raw,o);if(e instanceof n)return this.raw=e.value,this.set=[[e]],this.format(),this;if(this.options=o,this.loose=!!o.loose,this.includePrerelease=!!o.includePrerelease,this.raw=e.trim().split(/\s+/).join(" "),this.set=this.raw.split("||").map((A=>this.parseRange(A.trim()))).filter((A=>A.length)),!this.set.length)throw new TypeError(`Invalid SemVer Range: ${this.raw}`);if(this.set.length>1){const A=this.set[0];if(this.set=this.set.filter((A=>!B(A[0]))),0===this.set.length)this.set=[A];else if(this.set.length>1)for(const e of this.set)if(1===e.length&&Q(e[0])){this.set=[e];break}}this.format()}format(){return this.range=this.set.map((A=>A.join(" ").trim())).join("||").trim(),this.range}toString(){return this.range}parseRange(A){const t=((this.options.includePrerelease&&c)|(this.options.loose&&u))+":"+A,r=e.get(t);if(r)return r;const Q=this.options.loose,E=Q?i[a.HYPHENRANGELOOSE]:i[a.HYPHENRANGE];A=A.replace(E,b(this.options.includePrerelease)),o("hyphen replace",A),A=A.replace(i[a.COMPARATORTRIM],s),o("comparator trim",A),A=A.replace(i[a.TILDETRIM],l),o("tilde trim",A),A=A.replace(i[a.CARETTRIM],g),o("caret trim",A);let d=A.split(" ").map((A=>C(A,this.options))).join(" ").split(/\s+/).map((A=>y(A,this.options)));Q&&(d=d.filter((A=>(o("loose invalid filter",A,this.options),!!A.match(i[a.COMPARATORLOOSE]))))),o("range list",d);const I=new Map,p=d.map((A=>new n(A,this.options)));for(const e of p){if(B(e))return[e];I.set(e.value,e)}I.size>1&&I.has("")&&I.delete("");const f=[...I.values()];return e.set(t,f),f}intersects(e,t){if(!(e instanceof A))throw new TypeError("a Range is required");return this.set.some((A=>E(A,t)&&e.set.some((e=>E(e,t)&&A.every((A=>e.every((e=>A.intersects(e,t)))))))))}test(A){if(!A)return!1;if("string"==typeof A)try{A=new r(A,this.options)}catch(e){return!1}for(let t=0;t"<0.0.0-0"===A.value,Q=A=>""===A.value,E=(A,e)=>{let t=!0;const n=A.slice();let o=n.pop();for(;t&&n.length;)t=n.every((A=>o.intersects(A,e))),o=n.pop();return t},C=(A,e)=>(o("comp",A,e),A=f(A,e),o("caret",A),A=I(A,e),o("tildes",A),A=w(A,e),o("xrange",A),A=m(A,e),o("stars",A),A),d=A=>!A||"x"===A.toLowerCase()||"*"===A,I=(A,e)=>A.trim().split(/\s+/).map((A=>p(A,e))).join(" "),p=(A,e)=>{const t=e.loose?i[a.TILDELOOSE]:i[a.TILDE];return A.replace(t,((e,t,n,r,i)=>{let a;return o("tilde",A,e,t,n,r,i),d(t)?a="":d(n)?a=`>=${t}.0.0 <${+t+1}.0.0-0`:d(r)?a=`>=${t}.${n}.0 <${t}.${+n+1}.0-0`:i?(o("replaceTilde pr",i),a=`>=${t}.${n}.${r}-${i} <${t}.${+n+1}.0-0`):a=`>=${t}.${n}.${r} <${t}.${+n+1}.0-0`,o("tilde return",a),a}))},f=(A,e)=>A.trim().split(/\s+/).map((A=>h(A,e))).join(" "),h=(A,e)=>{o("caret",A,e);const t=e.loose?i[a.CARETLOOSE]:i[a.CARET],n=e.includePrerelease?"-0":"";return A.replace(t,((e,t,r,i,a)=>{let s;return o("caret",A,e,t,r,i,a),d(t)?s="":d(r)?s=`>=${t}.0.0${n} <${+t+1}.0.0-0`:d(i)?s="0"===t?`>=${t}.${r}.0${n} <${t}.${+r+1}.0-0`:`>=${t}.${r}.0${n} <${+t+1}.0.0-0`:a?(o("replaceCaret pr",a),s="0"===t?"0"===r?`>=${t}.${r}.${i}-${a} <${t}.${r}.${+i+1}-0`:`>=${t}.${r}.${i}-${a} <${t}.${+r+1}.0-0`:`>=${t}.${r}.${i}-${a} <${+t+1}.0.0-0`):(o("no pr"),s="0"===t?"0"===r?`>=${t}.${r}.${i}${n} <${t}.${r}.${+i+1}-0`:`>=${t}.${r}.${i}${n} <${t}.${+r+1}.0-0`:`>=${t}.${r}.${i} <${+t+1}.0.0-0`),o("caret return",s),s}))},w=(A,e)=>(o("replaceXRanges",A,e),A.split(/\s+/).map((A=>D(A,e))).join(" ")),D=(A,e)=>{A=A.trim();const t=e.loose?i[a.XRANGELOOSE]:i[a.XRANGE];return A.replace(t,((t,n,r,i,a,s)=>{o("xRange",A,t,n,r,i,a,s);const l=d(r),g=l||d(i),c=g||d(a),u=c;return"="===n&&u&&(n=""),s=e.includePrerelease?"-0":"",l?t=">"===n||"<"===n?"<0.0.0-0":"*":n&&u?(g&&(i=0),a=0,">"===n?(n=">=",g?(r=+r+1,i=0,a=0):(i=+i+1,a=0)):"<="===n&&(n="<",g?r=+r+1:i=+i+1),"<"===n&&(s="-0"),t=`${n+r}.${i}.${a}${s}`):g?t=`>=${r}.0.0${s} <${+r+1}.0.0-0`:c&&(t=`>=${r}.${i}.0${s} <${r}.${+i+1}.0-0`),o("xRange return",t),t}))},m=(A,e)=>(o("replaceStars",A,e),A.trim().replace(i[a.STAR],"")),y=(A,e)=>(o("replaceGTE0",A,e),A.trim().replace(i[e.includePrerelease?a.GTE0PRE:a.GTE0],"")),b=A=>(e,t,n,o,r,i,a,s,l,g,c,u)=>`${t=d(n)?"":d(o)?`>=${n}.0.0${A?"-0":""}`:d(r)?`>=${n}.${o}.0${A?"-0":""}`:i?`>=${t}`:`>=${t}${A?"-0":""}`} ${s=d(l)?"":d(g)?`<${+l+1}.0.0-0`:d(c)?`<${l}.${+g+1}.0-0`:u?`<=${l}.${g}.${c}-${u}`:A?`<${l}.${g}.${+c+1}-0`:`<=${s}`}`.trim(),v=(A,e,t)=>{for(let n=0;n0){const n=A[t].semver;if(n.major===e.major&&n.minor===e.minor&&n.patch===e.patch)return!0}return!1}return!0};return Z4}function r5(){if(t5)return e5;t5=1;const A=Symbol("SemVer ANY");class e{static get ANY(){return A}constructor(n,o){if(o=t(o),n instanceof e){if(n.loose===!!o.loose)return n;n=n.value}n=n.trim().split(/\s+/).join(" "),i("comparator",n,o),this.options=o,this.loose=!!o.loose,this.parse(n),this.semver===A?this.value="":this.value=this.operator+this.semver.version,i("comp",this)}parse(e){const t=this.options.loose?n[o.COMPARATORLOOSE]:n[o.COMPARATOR],r=e.match(t);if(!r)throw new TypeError(`Invalid comparator: ${e}`);this.operator=void 0!==r[1]?r[1]:"","="===this.operator&&(this.operator=""),r[2]?this.semver=new a(r[2],this.options.loose):this.semver=A}toString(){return this.value}test(e){if(i("Comparator.test",e,this.options.loose),this.semver===A||e===A)return!0;if("string"==typeof e)try{e=new a(e,this.options)}catch(t){return!1}return r(e,this.operator,this.semver,this.options)}intersects(A,n){if(!(A instanceof e))throw new TypeError("a Comparator is required");return""===this.operator?""===this.value||new s(A.value,n).test(this.value):""===A.operator?""===A.value||new s(this.value,n).test(A.semver):(!(n=t(n)).includePrerelease||"<0.0.0-0"!==this.value&&"<0.0.0-0"!==A.value)&&(!(!n.includePrerelease&&(this.value.startsWith("<0.0.0")||A.value.startsWith("<0.0.0")))&&(!(!this.operator.startsWith(">")||!A.operator.startsWith(">"))||(!(!this.operator.startsWith("<")||!A.operator.startsWith("<"))||(!(this.semver.version!==A.semver.version||!this.operator.includes("=")||!A.operator.includes("="))||(!!(r(this.semver,"<",A.semver,n)&&this.operator.startsWith(">")&&A.operator.startsWith("<"))||!!(r(this.semver,">",A.semver,n)&&this.operator.startsWith("<")&&A.operator.startsWith(">")))))))}}e5=e;const t=K2,{safeRe:n,t:o}=G2,r=$4,i=H2,a=V2,s=o5();return e5}const i5=o5();var a5=(A,e,t)=>{try{e=new i5(e,t)}catch(n){return!1}return e.test(A)};const s5=o5();var l5=(A,e)=>new s5(A,e).set.map((A=>A.map((A=>A.value)).join(" ").trim().split(" ")));const g5=V2,c5=o5();var u5=(A,e,t)=>{let n=null,o=null,r=null;try{r=new c5(e,t)}catch(i){return null}return A.forEach((A=>{r.test(A)&&(n&&-1!==o.compare(A)||(n=A,o=new g5(n,t)))})),n};const B5=V2,Q5=o5();var E5=(A,e,t)=>{let n=null,o=null,r=null;try{r=new Q5(e,t)}catch(i){return null}return A.forEach((A=>{r.test(A)&&(n&&1!==o.compare(A)||(n=A,o=new B5(n,t)))})),n};const C5=V2,d5=o5(),I5=x4;var p5=(A,e)=>{A=new d5(A,e);let t=new C5("0.0.0");if(A.test(t))return t;if(t=new C5("0.0.0-0"),A.test(t))return t;t=null;for(let n=0;n{const e=new C5(A.semver.version);switch(A.operator){case">":0===e.prerelease.length?e.patch++:e.prerelease.push(0),e.raw=e.format();case"":case">=":o&&!I5(e,o)||(o=e);break;case"<":case"<=":break;default:throw new Error(`Unexpected operation: ${A.operator}`)}})),!o||t&&!I5(t,o)||(t=o)}return t&&A.test(t)?t:null};const f5=o5();var h5=(A,e)=>{try{return new f5(A,e).range||"*"}catch(t){return null}};const w5=V2,D5=r5(),{ANY:m5}=D5,y5=o5(),b5=a5,v5=x4,k5=F4,M5=U4,x5=G4;var S5=(A,e,t,n)=>{let o,r,i,a,s;switch(A=new w5(A,n),e=new y5(e,n),t){case">":o=v5,r=M5,i=k5,a=">",s=">=";break;case"<":o=k5,r=x5,i=v5,a="<",s="<=";break;default:throw new TypeError('Must provide a hilo val of "<" or ">"')}if(b5(A,e,n))return!1;for(let l=0;l{A.semver===m5&&(A=new D5(">=0.0.0")),g=g||A,c=c||A,o(A.semver,g.semver,n)?g=A:i(A.semver,c.semver,n)&&(c=A)})),g.operator===a||g.operator===s)return!1;if((!c.operator||c.operator===a)&&r(A,c.semver))return!1;if(c.operator===s&&i(A,c.semver))return!1}return!0};const F5=S5;var N5=(A,e,t)=>F5(A,e,">",t);const R5=S5;var L5=(A,e,t)=>R5(A,e,"<",t);const P5=o5();var H5=(A,e,t)=>(A=new P5(A,t),e=new P5(e,t),A.intersects(e,t));const G5=a5,O5=I4;const U5=o5(),K5=r5(),{ANY:Y5}=K5,T5=a5,J5=I4,j5=[new K5(">=0.0.0-0")],q5=[new K5(">=0.0.0")],$5=(A,e,t)=>{if(A===e)return!0;if(1===A.length&&A[0].semver===Y5){if(1===e.length&&e[0].semver===Y5)return!0;A=t.includePrerelease?j5:q5}if(1===e.length&&e[0].semver===Y5){if(t.includePrerelease)return!0;e=q5}const n=new Set;let o,r,i,a,s,l,g;for(const B of A)">"===B.operator||">="===B.operator?o=z5(o,B,t):"<"===B.operator||"<="===B.operator?r=W5(r,B,t):n.add(B.semver);if(n.size>1)return null;if(o&&r){if(i=J5(o.semver,r.semver,t),i>0)return null;if(0===i&&(">="!==o.operator||"<="!==r.operator))return null}for(const B of n){if(o&&!T5(B,String(o),t))return null;if(r&&!T5(B,String(r),t))return null;for(const A of e)if(!T5(B,String(A),t))return!1;return!0}let c=!(!r||t.includePrerelease||!r.semver.prerelease.length)&&r.semver,u=!(!o||t.includePrerelease||!o.semver.prerelease.length)&&o.semver;c&&1===c.prerelease.length&&"<"===r.operator&&0===c.prerelease[0]&&(c=!1);for(const B of e){if(g=g||">"===B.operator||">="===B.operator,l=l||"<"===B.operator||"<="===B.operator,o)if(u&&B.semver.prerelease&&B.semver.prerelease.length&&B.semver.major===u.major&&B.semver.minor===u.minor&&B.semver.patch===u.patch&&(u=!1),">"===B.operator||">="===B.operator){if(a=z5(o,B,t),a===B&&a!==o)return!1}else if(">="===o.operator&&!T5(o.semver,String(B),t))return!1;if(r)if(c&&B.semver.prerelease&&B.semver.prerelease.length&&B.semver.major===c.major&&B.semver.minor===c.minor&&B.semver.patch===c.patch&&(c=!1),"<"===B.operator||"<="===B.operator){if(s=W5(r,B,t),s===B&&s!==r)return!1}else if("<="===r.operator&&!T5(r.semver,String(B),t))return!1;if(!B.operator&&(r||o)&&0!==i)return!1}return!(o&&l&&!r&&0!==i)&&(!(r&&g&&!o&&0!==i)&&(!u&&!c))},z5=(A,e,t)=>{if(!A)return e;const n=J5(A.semver,e.semver,t);return n>0?A:n<0||">"===e.operator&&">="===A.operator?e:A},W5=(A,e,t)=>{if(!A)return e;const n=J5(A.semver,e.semver,t);return n<0?A:n>0||"<"===e.operator&&"<="===A.operator?e:A};var _5=(A,e,t={})=>{if(A===e)return!0;A=new U5(A,t),e=new U5(e,t);let n=!1;A:for(const o of A.set){for(const A of e.set){const e=$5(o,A,t);if(n=n||null!==e,e)continue A}if(n)return!1}return!0};const X5=G2,V5=L2,Z5=V2,A3=J2,e3=(A,e,t)=>{const n=[];let o=null,r=null;const i=A.sort(((A,e)=>O5(A,e,t)));for(const g of i){G5(g,e,t)?(r=g,o||(o=g)):(r&&n.push([o,r]),r=null,o=null)}o&&n.push([o,null]);const a=[];for(const[g,c]of n)g===c?a.push(g):c||g!==i[0]?c?g===i[0]?a.push(`<=${c}`):a.push(`${g} - ${c}`):a.push(`>=${g}`):a.push("*");const s=a.join(" || "),l="string"==typeof e.raw?e.raw:String(e);return s.length{await fetch("/lobe/config",{body:JSON.stringify(A),headers:{"Content-Type":"application/json"},method:"POST"})},i3=async()=>{const A=await fetch("/lobe/prompt");return await A.json()},a3={confirmPageUnload:!1,enableExtraNetworkSidebar:!0,enableHighlight:!1,enableImageInfo:!0,enableSidebar:!0,enableWebFont:!0,extraNetworkCardSize:86,extraNetworkFixedMode:"fixed",extraNetworkSidebarExpand:!0,extraNetworkSidebarWidth:340,i18n:"en_US",layoutHideFooter:!1,layoutSplitPreview:!1,liteAnimation:!0,logoCustomTitle:"",logoCustomUrl:"",logoType:"lobe",neutralColor:void 0,primaryColor:void 0,promptEditor:!1,promptTextareaType:"resizable",sidebarExpand:!0,sidebarFixedMode:"fixed",sidebarWidth:280,svgIcon:!0},s3={currentTab:"tab_txt2img",latestVersion:n3,loading:!0,localeOptions:o3,setting:a3,themeMode:"dark",version:n3},l3="SD-LOBE-SETTING",g3=(A,e)=>({onInit:async()=>{A((()=>({loading:!0})),!1,"onInit");const{onLoadSetting:t,onLoadVersion:n,onLoadLatestVersion:o,onLoadLocalOptions:r}=e();await r(),await n(),await o(),await t(),A((()=>({loading:!1})),!1,"onInit")},onLoadLatestVersion:async()=>{const e=await(async()=>{const A=await fetch(`https://api.github.com/repos/${u1.replace("https://github.com/","")}/releases/latest`),e=await A.json();return e&&e.tag_name&&t3.clean(e.tag_name)||n3})();A((()=>({latestVersion:e})),!1,"onLoadLatestVersion")},onLoadLocalOptions:async()=>{const e=await(async()=>{const A=await fetch("/lobe/locales/options"),e=await A.json();return e&&0!==(null==e?void 0:e.length)?e:o3})();A((()=>({localeOptions:e})),!1,"onLoadLocalOptions")},onLoadSetting:async()=>{let e;const t=await(async()=>{const A=await fetch("/lobe/config"),e=await A.json();if(e&&!(null==e?void 0:e.empty))return e})();if(t&&(uA.start("๐Ÿคฏ [setting] loaded webui setting"),e=t),!e){const A=localStorage.getItem(l3);A&&(uA.info("๐Ÿคฏ [setting] loaded local setting"),e=JSON.parse(A))}if(!e){const A=localStorage.getItem("SD-KITCHEN-SETTING");A&&(uA.info("๐Ÿคฏ [setting] loaded fallback local setting"),e=JSON.parse(A))}e||(uA.info("๐Ÿคฏ [setting] loaded default setting"),e=a3);const n={...a3,...e};await r3(n),A((()=>({setting:n})),!1,"onLoadSetting"),uA.success("๐Ÿคฏ [setting] loaded"),console.table(n)},onLoadVersion:async()=>{const e=await(async()=>{const A=await fetch("/lobe/package"),e=await A.json();return e&&!e.empty&&e.version?e.version:n3})();A((()=>({version:e})),!1,"onLoadVersion")},onSetSetting:async t=>{const n={...e().setting,...t};localStorage.setItem(l3,JSON.stringify(n)),await r3(n),A((()=>({setting:n})),!1,"onSetSetting")},onSetThemeMode:e=>{A((()=>({themeMode:e})),!1,"onSetThemeMode")},setCurrentTab:()=>{var t;const n=null==(t=get_uiCurrentTabContent())?void 0:t.id;uA.info("๐Ÿคฏ [tab] onChange",n),n&&n!==e().currentTab&&A({currentTab:n},!1,"setCurrentTab")}}),c3=A=>({...a3,...A.setting}),u3=A=>c3(A).i18n,B3=c3,Q3=A=>A.currentTab,E3=A=>A.themeMode,C3=N2(o2(((...A)=>({...s3,...g3(...A)}))),(function(A,e){if(Object.is(A,e))return!0;if("object"!=typeof A||null===A||"object"!=typeof e||null===e)return!1;if(A instanceof Map&&e instanceof Map){if(A.size!==e.size)return!1;for(const[t,n]of A)if(!Object.is(n,e.get(t)))return!1;return!0}if(A instanceof Set&&e instanceof Set){if(A.size!==e.size)return!1;for(const t of A)if(!e.has(t))return!1;return!0}const t=Object.keys(A);if(t.length!==Object.keys(e).length)return!1;for(const n of t)if(!Object.prototype.hasOwnProperty.call(e,n)||!Object.is(A[n],e[n]))return!1;return!0})),d3=JSON.parse(localStorage.getItem(l3));c8.use(_8).use(O8).init({backend:{loadPath:"/lobe/locales/{{lng}}"},debug:!1,fallbackLng:"en_US",lng:(null==d3?void 0:d3.i18n)||"en_US"});const I3={attributes:!0,characterData:!0,childList:!0,subtree:!0},p3=(A,{subSelector:e,valueProp:t="innerHTML"}={})=>{const[n,o]=J.useState("");return J.useEffect((()=>{const n=new MutationObserver((A=>{var n;for(const r of A)if("childList"===r.type||"characterData"===r.type)if(e){const A=r.target.querySelector(e);o(String(A[t]))}else o(String(null==(n=r.target)?void 0:n.innerHTML))})),r=gradioApp().querySelector(A);if(r){n.observe(r,I3);const A=e?r.querySelector(e):r;o(String(null==A?void 0:A[t]))}return()=>{n.disconnect()}}),[A,e,t]),String(n)},f3=A=>{J.useEffect((()=>{const e=gradioApp().querySelector(A);e&&(e.style.display="none")}),[])},h3=oY((({css:A,token:e,isDarkMode:t})=>{const n=t?"dark":"light",o=t?sV.lime[n][9]:sV.green[n][10];return{configTitle:A` color: ${e.colorTextSecondary}; `,configValue:A` color: ${e.colorInfoText}; @@ -183,7 +183,7 @@ ld=cd,function(){var A={}.hasOwnProperty;function e(){for(var A="",e=0;e{const[i,a]=J.useState(!0),{styles:s,cx:l}=x3("block"),g=l(s.container,t);return AA.jsxs("div",{className:g,"data-code-type":"highlighter",style:n,...r,children:[AA.jsxs(AQ,{align:"center",className:s.header,horizontal:!0,justify:"space-between",children:[AA.jsx(mY,{icon:i?Hc:Oc,onClick:()=>a(!i),size:{blockSize:24,fontSize:14,strokeWidth:3}}),AA.jsx(mY,{size:{blockSize:24},style:{width:"unset"},children:e}),o?AA.jsx(cV,{content:A,placement:"left",size:{blockSize:24,fontSize:14,strokeWidth:2}}):AA.jsx("div",{})]}),AA.jsx("div",{style:i?{}:{height:0,overflow:"hidden"},children:AA.jsx(M3,{children:A})})]})}));var F3,N3,R3;(R3=F3||(F3={})).CR="\r",R3.CRLF="\r\n",R3.LF="\n",function(A){A[A.CR=13]="CR",A[A.LF=10]="LF"}(N3||(N3={}));const L3=/\r\n|\r(?!\n)|\n/g;var P3,H3,G3;(G3=P3||(P3={})).INCLUDE_SEPARATOR_NONE="NONE",G3.INCLUDE_SEPARATOR_SEPARATELY="SEPARATELY",G3.INCLUDE_SEPARATOR_LEFT="LEFT",G3.INCLUDE_SEPARATOR_RIGHT="RIGHT",G3.INCLUDE_SEPARATOR_ONLY="ONLY",function(A){A[A.ACTION_CLOSE=1]="ACTION_CLOSE",A[A.ACTION_OPEN=2]="ACTION_OPEN",A[A.ACTION_ADD_FRAGMENT=3]="ACTION_ADD_FRAGMENT",A[A.ACTION_NULL=4]="ACTION_NULL"}(H3||(H3={}));const O3=A=>{let e,t;return function(...n){return t||(e=A(...n),t=!0),e}},U3=A=>{if(!A)return!0;if(Array.isArray(A)){if(0===A.length)return!0}else if("object"==typeof A&&0===Object.keys(A).length)return!0;return!1},K3=A=>A[0];function Y3(A){const e=[A].flat().filter(Boolean);return!U3(e)&&{values:new Set(e),max:Math.max(...e),count:0,hasIndex(){return-1/0===this.max||this.values.has(this.count++)},isOverMax(){return-1/0!==this.max&&this.count>this.max}}}class T3{constructor(A,e){this.string=A,this.searchSettings=e,this.prepareSearch()}prepareSearch(){for(const A of[this.searchSettings.separatorSearch,this.searchSettings.bracketsSearch])A.lastIndex=0;Object.assign(this,{brackets:[],pipe:[],currentMentions:[],position:0,isDone:!1,freeArea:{start:0,end:void 0},lastSeparator:void 0,searchString:this.searchSettings.ignoreCase&&!this.searchSettings.separatorSearch.ignoreCase?this.string.toUpperCase():this.string,indexes:Y3(this.searchSettings.indexes)})}get pipeIsEmpty(){return U3(this.pipe)}getMentions(A,e){const t=[],n=[];for(const o of this.currentMentions)o.index>=A&&o.indexn.trimResultText(e.substring(A,i)))),getTextAfter:O3((()=>e.substring(i+r.length))),getMentions:O3((()=>n.getMentions(A,i)[0])),getSeparator:O3((()=>r)),get string(){return this.getString()},get textAfter(){return this.getTextAfter()},get mentions(){return this.getMentions()},get separator(){return this.getSeparator()}}))return[];delete this.tempPosition}return c&&(this.currentMentions=c),this.position=i+s,[g,u,!0]}pushToPipe(A){if(this.indexes){if(!this.indexes.hasIndex())return;this.indexes.isOverMax()&&(this.isDone=!0)}this.pipe.push(A)}addToPipe(A){let[e,t,n]=this.checkSeparator(A);if(!n)return!1;switch(this.searchSettings.includeSeparatorMode){case"SEPARATELY":this.pushToPipe(e),t&&this.pushToPipe(t);break;case"LEFT":this.pushToPipe([e,t]);break;case"RIGHT":!("object"==typeof e?e.text:e)&&!this.lastSeparator||this.pushToPipe([this.lastSeparator,e]),this.lastSeparator=t;break;case"ONLY":t&&this.pushToPipe(t);break;default:this.pushToPipe(e)}return!this.pipeIsEmpty}findBrackets(){const{searchString:A,brackets:e,freeArea:t,searchSettings:n}=this,{bracketsSearch:o,separatorSearch:r,searchWithin:i}=n,a=i?()=>this.pipeIsEmpty:()=>("number"!=typeof t.start||t.start!==t.end)&&!t.end;for(;a();){var s;const a=o.exec(A);if(!a){if(i||isNaN(t.start))return!1;t.end=A.length-1;continue}const g=a[0],{close:c,ignoreMode:u,searchLevels:B}=(l=e)[l.length-1]||{};let Q;switch((g===c?1:u&&4)||(Q=n.bracketsMap[g])&&2||(null===(s=n.mentions)||void 0===s?void 0:s[g])&&3){case 1:const A=e.pop();i?(!0===B||B.includes(e.length+1))&&this.addToPipe(Object.assign(a,{searchWithinData:A})):U3(e)&&(t.start=a.index,r&&r.lastIndex=t.start&&this.addToPipe(A);if(A=null,!e)continue}else t.start=t.end=void 0;else this.addToPipe();o=!0}return A}getNext(){let A;for(;this.pipeIsEmpty&&!this.isDone;)this.findBrackets()?this.searchSettings.searchWithin||(A=this.findSeparator(A)):this.isDone=!0;return this.pipeIsEmpty?null:this.pipe.shift()}getAll(){return[...this]}getRest(){const A=[];let e;for(;null!==(e=this.getNext());)A.push(e);return A}*[Symbol.iterator](){this.prepareSearch();const A=this;let e;do{e=A.getNext(),null!==e&&(yield e)}while(null!==e)}}function J3(A,e){const t=this.merge(e);let n=new T3(A,t);return"number"==typeof t.indexes?n.getNext():t.returnIterator?n:n.getAll()}function j3(A){const e=J3.bind(A);return Object.assign(e,{getOne(A,t,n={}){if(isNaN(t))throw new TypeError("second parameter of `getOne` function should be index");return e(A,{...n,indexes:t})},getFirst:(A,t={})=>e(A,{...t,indexes:0}),getIndexes(A,t,n={}){if(!Array.isArray(t))throw new TypeError("second parameter of `getOne` function should be array of indexes");return e(A,{...n,indexes:t})},getIterator:(A,t={})=>e(A,{...t,returnIterator:!0})})}let q3;function $3(A,e){const t=function(A,e){const t={brackets:[],mentions:[],ignoreInsideQuotes:!0,includeSeparatorMode:"NONE",ignoreCase:!0,trimResult:!0,trimSeparators:!1,defaultBrackets:[["(",")"],["[","]"],["{","}"]],...e,separators:A,init(){return function(A){if(Array.isArray(A.mentions)||"string"==typeof A.mentions){const e=[A.mentions].flat().filter(Boolean).reduce(((e,t)=>(e[A.ignoreCase?t.toUpperCase():t]=t,e)),{});A.mentions=!U3(e)&&e}return A.createBracketsMap().createBracketsSearch().createSeparatorsSearch()}(this)},merge(A){return e=this,(t=A)?(t={...e,...t},["brackets","mentions"].some((A=>A in t))&&t.init(),t):e;var e,t},arrayToPattern:A=>{return e=A,null!==(t=q3)&&void 0!==t||(q3=new Set(".{}[]^()+*?\\/$|".split(""))),e.map((A=>A instanceof RegExp?A.source:A.split("").map((A=>q3.has(A)?"\\"+A:A)).join(""))).join("|");var e,t},createRegExp:A=>RegExp(A,"g"),createBracketsMap(){return function(A){let e=A.brackets=(t=A.brackets,n=A.defaultBrackets,!0===t?t=n.slice():"object"!=typeof t||Array.isArray(t)?"string"==typeof t&&(t=t.split(",").map((A=>{let e=A.trim().split(" ");if(2!==e.length){if(2!==K3(e).length)throw new TypeError("open and close parts of brackets should be separated by space symbol");e=K3(e).split("")}return e}))):t=Object.entries(t),null!==(o=t)&&void 0!==o?o:[]);var t,n,o;return e=function(A,e){return e.ignoreInsideQuotes&&A.unshift(["'",,,!0],['"',,,!0]),A}(e,A),A.bracketsMap=function(A,e){return A.reduce(((A,[t,n,...o])=>{1!==o.length||e||o.unshift(void 0);let[r=e&&1,i]=o;return"number"==typeof r&&(r=[r]),A[t]={open:t,ignoreMode:i,searchLevels:r,close:n||t},A}),{})}(e,A.searchWithin),A}(this)},createBracketsSearch(){return function(A){const e=Object.entries(A.bracketsMap).flatMap((([,{close:A,open:e}])=>A!==e?[e,A]:e)).concat(Object.keys(A.mentions||{})).filter(Boolean),t=A.arrayToPattern(e);return A.bracketsSearch=A.createRegExp(t),A}(this)},createSeparatorsSearch(){return function(A){const{separators:e}=A;if("string"==typeof e||Array.isArray(e)){const t=A.arrayToPattern([e].flat().filter(Boolean));A.separatorSearch=A.createRegExp(t)}else e?(A.separatorSearch=e,A.ignoreCase=e.ignoreCase):A.separatorSearch=/empty/;return A}(this)}};return t.init()}(A,e);return{splitSettings:t,splitFn:j3(t)}}function z3(...A){let[e,t,n]=function(A,e){if(null==A||!A.length)throw new RangeError("empty arguments");if(3===A.length)return A;if(1===A.length){const e=K3(A);"string"==typeof e?A.push(",",{}):Array.isArray(e)?(A.unshift(null),A.push({})):"object"==typeof e&&A.unshift(null,",")}else if(2===A.length)"string"==typeof A[0]&&A[1]instanceof RegExp||"string"==typeof A[1]||Array.isArray(A[1])?A.push({}):A.unshift(null);else if(A.length>3)throw new RangeError("Too many arguments passed to splitSmartly function!!!");return A}(A);const{splitFn:o}=$3(t,n);return null!==e?o(e):o}function W3(A){return function(A,e="\n"){return A.replace(L3,e)}(A).replace(/[ \t\xa0]+(?=\n)/g,"").replace(/\n{3,}/g,"\n\n").replace(/^[\r\n]+|[\s\r\n]+$/g,"")}const _3=/\r?\n/,X3=/\x00\x00\x00\r?\n/;function V3(A){return X3.test(A)}function Z3(A){const e=V3(A=W3(A));let t=function(A){return A.split(V3(A)?X3:_3)}(A),n="",o="",r="";const i=t.slice();if(t.length){if(e){var a,s;if(t.length>3)throw new TypeError;let A=t.pop();if(A.startsWith("Steps: ")&&(r=A,A=void 0),null!==(a=A)&&void 0!==a||(A=t.pop()),A.startsWith("Negative prompt: ")&&(o=A.slice(17),A=void 0),null!==(s=A)&&void 0!==s||(A=t.pop()),n=A,t.length)throw new TypeError}else{let A=t[t.length-1];if(A.startsWith("Steps: ")&&(r=t.pop(),A=void 0),t.length){let e=-1;for(let n=t.length-1;n>=0;n--)if(A=t[n],A.startsWith("Negative prompt: ")){e=n,t[n]=A.slice(17);break}-1!==e&&(o=t.splice(e).join("\n")),n=t.join("\n")}}n=n.replace(/\x00\x00\x00/g,""),o=o.replace(/\x00\x00\x00/g,"")}return{prompt:n,negative_prompt:o,infoline:r,infoline_extra:[],lines_raw:i}}function A6(A,e){let t=[];if(null!=e&&e.isIncludePrompts){const{prompt:e,negative_prompt:n,infoline:o}=Z3(A);t.push(["prompt",e]),t.push(["negative_prompt",n]),A=o}return Object.fromEntries(t.concat(function(A,e){const t=null==e?void 0:e.cast_to_snake,n=/^0\d/;return A.map((([A,e])=>{const o=parseFloat(e),r=n.test(e)||isNaN(o)||e-o!=0;return t&&(A=A.toLowerCase().replace(/ /g,"_")),[A,r?e:o]}))}(function(A){return z3(A=W3(A),[","],{brackets:!0,trimSeparators:!0}).reduce(((A,e)=>{if(null!=e&&e.length){const t=function(A){const[,e,t]=A.match(/^([^:]+)\s*:\s*(.*)$/);return[e,t]}(e);A.push(t)}return A}),[])}(A),e)))}const e6=A=>{let e=A.replaceAll("<","<").replaceAll(">",">");return D1.convert(e)},t6=J.memo((({value:A,className:e,style:t,showCopy:n=!0,showConfig:o=!0,showNegative:r=!0})=>{const{styles:i,cx:a}=h3(),s=J.useMemo((()=>(A=>{if(!A||"undefined"===A)return;if(!A.includes("
"))return;let{prompt:e,negative_prompt:t,...n}=A6(A,{isIncludePrompts:!0});return e=e.trim().replaceAll("
","\n").replaceAll(/\s+$/g,""),t=t.trim().replaceAll("
","\n").replaceAll(/\s+$/g,""),e=e?e6(e):"",t=t?e6(t):"",{config:n,negative:t,positive:e}})(A)),[A]);return A&&"undefined"!==A&&s?AA.jsxs(AQ,{className:e,gap:4,style:t,children:[(null==s?void 0:s.positive)&&AA.jsx(S3,{className:i.highlight,showCopy:n,title:"Positive Prompt",children:s.positive}),r&&(null==s?void 0:s.negative)&&AA.jsx(S3,{className:a(i.highlight,i.negative),showCopy:n,title:"Negative Prompt",children:s.negative}),o&&(null==s?void 0:s.config)&&AA.jsx(AQ,{className:i.container,style:n?{}:{paddingRight:24},children:Object.entries(s.config).map((([A,e])=>AA.jsxs(AQ,{gap:4,horizontal:!0,justify:"space-between",children:[AA.jsxs(AQ,{align:"center",className:i.configTitle,horizontal:!0,children:[A,":"]}),AA.jsxs(AQ,{align:"center",className:i.configValue,gap:4,horizontal:!0,children:[e,n&&AA.jsx(cV,{content:e,size:"small"})]})]},A)))})]}):null})),n6=J.memo((({parentId:A})=>{const e=p3(`${A} .infotext`,{subSelector:"p"});return f3(`${A} .infotext`),AA.jsx(t6,{value:e})})),o6="%[a-f0-9]{2}",r6=new RegExp("("+o6+")|([^%]+?)","gi"),i6=new RegExp("("+o6+")+","gi");function a6(A,e){try{return[decodeURIComponent(A.join(""))]}catch{}if(1===A.length)return A;e=e||1;const t=A.slice(0,e),n=A.slice(e);return Array.prototype.concat.call([],a6(t),a6(n))}function s6(A){try{return decodeURIComponent(A)}catch{let e=A.match(r6)||[];for(let t=1;tnull==A,B6=A=>encodeURIComponent(A).replaceAll(/[!'()*]/g,(A=>`%${A.charCodeAt(0).toString(16).toUpperCase()}`)),Q6=Symbol("encodeFragmentIdentifier");function E6(A){if("string"!=typeof A||1!==A.length)throw new TypeError("arrayFormatSeparator must be single character string")}function C6(A,e){return e.encode?e.strict?B6(A):encodeURIComponent(A):A}function d6(A,e){return e.decode?l6(A):A}function I6(A){return Array.isArray(A)?A.sort():"object"==typeof A?I6(Object.keys(A)).sort(((A,e)=>Number(A)-Number(e))).map((e=>A[e])):A}function p6(A){const e=A.indexOf("#");return-1!==e&&(A=A.slice(0,e)),A}function f6(A,e){return e.parseNumbers&&!Number.isNaN(Number(A))&&"string"==typeof A&&""!==A.trim()?A=Number(A):!e.parseBooleans||null===A||"true"!==A.toLowerCase()&&"false"!==A.toLowerCase()||(A="true"===A.toLowerCase()),A}function h6(A){const e=(A=p6(A)).indexOf("?");return-1===e?"":A.slice(e+1)}function w6(A,e){E6((e={decode:!0,sort:!0,arrayFormat:"none",arrayFormatSeparator:",",parseNumbers:!1,parseBooleans:!1,...e}).arrayFormatSeparator);const t=function(A){let e;switch(A.arrayFormat){case"index":return(A,t,n)=>{e=/\[(\d*)]$/.exec(A),A=A.replace(/\[\d*]$/,""),e?(void 0===n[A]&&(n[A]={}),n[A][e[1]]=t):n[A]=t};case"bracket":return(A,t,n)=>{e=/(\[])$/.exec(A),A=A.replace(/\[]$/,""),e?void 0!==n[A]?n[A]=[...n[A],t]:n[A]=[t]:n[A]=t};case"colon-list-separator":return(A,t,n)=>{e=/(:list)$/.exec(A),A=A.replace(/:list$/,""),e?void 0!==n[A]?n[A]=[...n[A],t]:n[A]=[t]:n[A]=t};case"comma":case"separator":return(e,t,n)=>{const o="string"==typeof t&&t.includes(A.arrayFormatSeparator),r="string"==typeof t&&!o&&d6(t,A).includes(A.arrayFormatSeparator);t=r?d6(t,A):t;const i=o||r?t.split(A.arrayFormatSeparator).map((e=>d6(e,A))):null===t?t:d6(t,A);n[e]=i};case"bracket-separator":return(e,t,n)=>{const o=/(\[])$/.test(e);if(e=e.replace(/\[]$/,""),!o)return void(n[e]=t?d6(t,A):t);const r=null===t?[]:t.split(A.arrayFormatSeparator).map((e=>d6(e,A)));void 0!==n[e]?n[e]=[...n[e],...r]:n[e]=r};default:return(A,e,t)=>{void 0!==t[A]?t[A]=[...[t[A]].flat(),e]:t[A]=e}}}(e),n=Object.create(null);if("string"!=typeof A)return n;if(!(A=A.trim().replace(/^[?#&]/,"")))return n;for(const o of A.split("&")){if(""===o)continue;const A=e.decode?o.replaceAll("+"," "):o;let[r,i]=g6(A,"=");void 0===r&&(r=A),i=void 0===i?null:["comma","separator","bracket-separator"].includes(e.arrayFormat)?i:d6(i,e),t(d6(r,e),i,n)}for(const[o,r]of Object.entries(n))if("object"==typeof r&&null!==r)for(const[A,t]of Object.entries(r))r[A]=f6(t,e);else n[o]=f6(r,e);return!1===e.sort?n:(!0===e.sort?Object.keys(n).sort():Object.keys(n).sort(e.sort)).reduce(((A,e)=>{const t=n[e];return A[e]=Boolean(t)&&"object"==typeof t&&!Array.isArray(t)?I6(t):t,A}),Object.create(null))}function D6(A,e){if(!A)return"";E6((e={encode:!0,strict:!0,arrayFormat:"none",arrayFormatSeparator:",",...e}).arrayFormatSeparator);const t=t=>e.skipNull&&u6(A[t])||e.skipEmptyString&&""===A[t],n=function(A){switch(A.arrayFormat){case"index":return e=>(t,n)=>{const o=t.length;return void 0===n||A.skipNull&&null===n||A.skipEmptyString&&""===n?t:null===n?[...t,[C6(e,A),"[",o,"]"].join("")]:[...t,[C6(e,A),"[",C6(o,A),"]=",C6(n,A)].join("")]};case"bracket":return e=>(t,n)=>void 0===n||A.skipNull&&null===n||A.skipEmptyString&&""===n?t:null===n?[...t,[C6(e,A),"[]"].join("")]:[...t,[C6(e,A),"[]=",C6(n,A)].join("")];case"colon-list-separator":return e=>(t,n)=>void 0===n||A.skipNull&&null===n||A.skipEmptyString&&""===n?t:null===n?[...t,[C6(e,A),":list="].join("")]:[...t,[C6(e,A),":list=",C6(n,A)].join("")];case"comma":case"separator":case"bracket-separator":{const e="bracket-separator"===A.arrayFormat?"[]=":"=";return t=>(n,o)=>void 0===o||A.skipNull&&null===o||A.skipEmptyString&&""===o?n:(o=null===o?"":o,0===n.length?[[C6(t,A),e,C6(o,A)].join("")]:[[n,C6(o,A)].join(A.arrayFormatSeparator)])}default:return e=>(t,n)=>void 0===n||A.skipNull&&null===n||A.skipEmptyString&&""===n?t:null===n?[...t,C6(e,A)]:[...t,[C6(e,A),"=",C6(n,A)].join("")]}}(e),o={};for(const[i,a]of Object.entries(A))t(i)||(o[i]=a);const r=Object.keys(o);return!1!==e.sort&&r.sort(e.sort),r.map((t=>{const o=A[t];return void 0===o?"":null===o?C6(t,e):Array.isArray(o)?0===o.length&&"bracket-separator"===e.arrayFormat?C6(t,e)+"[]":o.reduce(n(t),[]).join("&"):C6(t,e)+"="+C6(o,e)})).filter((A=>A.length>0)).join("&")}function m6(A,e){var t;e={decode:!0,...e};let[n,o]=g6(A,"#");return void 0===n&&(n=A),{url:(null==(t=null==n?void 0:n.split("?"))?void 0:t[0])??"",query:w6(h6(A),e),...e&&e.parseFragmentIdentifier&&o?{fragmentIdentifier:d6(o,e)}:{}}}function y6(A,e){e={encode:!0,strict:!0,[Q6]:!0,...e};const t=p6(A.url).split("?")[0]||"";let n=D6({...w6(h6(A.url),{sort:!1}),...A.query},e);n&&(n=`?${n}`);let o=function(A){let e="";const t=A.indexOf("#");return-1!==t&&(e=A.slice(t)),e}(A.url);if("string"==typeof A.fragmentIdentifier){const n=new URL(t);n.hash=A.fragmentIdentifier,o=e[Q6]?n.hash:`#${A.fragmentIdentifier}`}return`${t}${n}${o}`}function b6(A,e,t){t={parseFragmentIdentifier:!0,[Q6]:!1,...t};const{url:n,query:o,fragmentIdentifier:r}=m6(A,t);return y6({url:n,query:c6(o,e),fragmentIdentifier:r},t)}const v6=Object.freeze(Object.defineProperty({__proto__:null,exclude:function(A,e,t){return b6(A,Array.isArray(e)?A=>!e.includes(A):(A,t)=>!e(A,t),t)},extract:h6,parse:w6,parseUrl:m6,pick:b6,stringify:D6,stringifyUrl:y6},Symbol.toStringTag,{value:"Module"})),k6=()=>{const[A,e]=J.useState((()=>{try{return window.matchMedia("(prefers-color-scheme: dark)").matches}catch{return!1}})());return J.useEffect((()=>{const A=window.matchMedia("(prefers-color-scheme: dark)"),t=A=>{e(A.matches)};return A.addEventListener("change",t),()=>{A.removeEventListener("change",t)}}),[]),A},M6={dark:{colorPrimary:"#007AFF",colorPrimaryActive:"#1554ad",colorPrimaryBg:"#111a2c",colorPrimaryBgHover:"#112545",colorPrimaryBorder:"#15325b",colorPrimaryBorderHover:"#15417e",colorPrimaryHover:"#3c89e8",colorPrimaryText:"#1668dc",colorPrimaryTextActive:"#1554ad",colorPrimaryTextHover:"#3c89e8"},light:{colorPrimary:"#007AFF",colorPrimaryActive:"#0958d9",colorPrimaryBg:"#e6f4ff",colorPrimaryBgHover:"#bae0ff",colorPrimaryBorder:"#91caff",colorPrimaryBorderHover:"#69b1ff",colorPrimaryHover:"#4096ff",colorPrimaryText:"#1677ff",colorPrimaryTextActive:"#0958d9",colorPrimaryTextHover:"#4096ff"}},x6={dark:{colorBgContainer:"#1f1f1f",colorBgElevated:"#222",colorBgLayout:"#181818",colorBgSpotlight:"#444",colorBorder:"#444",colorBorderSecondary:"#333",colorFill:"rgb(255 255 255 / 18%)",colorFillQuaternary:"rgb(255 255 255 / 4%)",colorFillSecondary:"rgb(255 255 255 / 12%)",colorFillTertiary:"rgb(255 255 255 / 8%)",colorNeutral:"#666",colorText:"rgb(255 255 255 / 85%)",colorTextQuaternary:"rgb(255 255 255 / 25%)",colorTextSecondary:"rgb(255 255 255 / 65%)",colorTextTertiary:"rgb(255 255 255 / 45%)"},light:{colorBgContainer:"#fff",colorBgElevated:"#fff",colorBgLayout:"#f7f7f7",colorBgSpotlight:"rgb(0 0 0 / 85%)",colorBorder:"#ddd",colorBorderSecondary:"#eee",colorFill:"rgb(0 0 0 / 15%)",colorFillQuaternary:"rgb(0 0 0 / 2%)",colorFillSecondary:"rgb(0 0 0 / 6%)",colorFillTertiary:"rgb(0 0 0 / 4%)",colorNeutral:"#666",colorText:"rgb(0 0 0 / 88%)",colorTextQuaternary:"rgb(0 0 0 / 25%)",colorTextSecondary:"rgb(0 0 0 / 65%)",colorTextTertiary:"rgb(0 0 0 / 45%)"}},S6=J.memo((({children:A})=>{const{onSetThemeMode:e,themeMode:t}=C3((A=>({onInit:A.onInit,onSetThemeMode:A.onSetThemeMode,themeMode:A.themeMode}))),n=C3(B3,MV),o=k6();J.useEffect((()=>{const A=String(v6.parseUrl(window.location.href).query.__theme||"");A?(document.body.classList.add(A),e(A)):(document.body.classList.add(o?"dark":"light"),e(o?"dark":"light"))}),[o]);const r=J.useCallback((()=>{let A={},e={};if(n.primaryColor)if("kitchen"===n.primaryColor)A=M6[t];else{const e=sV[n.primaryColor];A=b0({appearance:t,scale:e,type:"Primary"})}if(n.neutralColor)if("kitchen"===n.neutralColor)e=x6[t];else{const A=k0[n.neutralColor];e=v0({appearance:t,scale:A})}return{...A,...e}}),[n.primaryColor,n.neutralColor,t]);return n&&AA.jsx(s1,{customToken:r,enableWebfonts:n.enableWebFont,themeMode:t,children:A})})),F6=J.memo((({children:A})=>{const e=C3((A=>A.loading));return AA.jsx(S6,{children:!1===e&&A})})),N6=(A,e)=>{if(document.querySelector(e))return;const t=document.createElement("div");t.id=e.replace("#",""),gradioApp().querySelector(A).append(t),wc(t).render(AA.jsx(J.StrictMode,{children:AA.jsx(J.Suspense,{fallback:"loading...",children:AA.jsx(F6,{children:AA.jsx(n6,{parentId:A})})})}))},R6=J.memo((({parentId:A})=>{const e=J.useRef(null),[t,n]=J.useState(""),{styles:o,theme:r}=k3(),i=(A=>{const[e,t]=J.useState("");return J.useEffect((()=>{const e={attributes:!0,characterData:!0,childList:!0,subtree:!0},n=new MutationObserver((e=>{for(const n of e)if("attributes"===n.type){const e=document.querySelector(A);t(e.value)}})),o=document.querySelector(A);return o&&(n.observe(o,e),t(o.value)),()=>{n.disconnect()}}),[A]),e})(`${A} label textarea`),a=J.useMemo((()=>gradioApp().querySelector(`${A} label textarea`)),[A]),s=(l=a,g=sj($j((function(){var A=Pj(l);return A?{width:A.clientWidth,height:A.clientHeight}:void 0})),2),c=g[0],u=g[1],eq((function(){var A=Pj(l);if(A){var e=new aI((function(A){A.forEach((function(A){var e=A.target,t=e.clientWidth,n=e.clientHeight;u({width:t,height:n})}))}));return e.observe(A),function(){e.disconnect()}}}),[],l),c);var l,g,c,u;const B=function(A,e){void 0===e&&(e=function(){return!0});var t=sj($j(),2),n=t[0],o=t[1],r=cj(e);return Gj((function(){var e=Pj(A,document);if(e){var t=function(){var A;A=e===document?document.scrollingElement?{left:document.scrollingElement.scrollLeft,top:document.scrollingElement.scrollTop}:{left:Math.max(window.pageXOffset,document.documentElement.scrollLeft,document.body.scrollLeft),top:Math.max(window.pageYOffset,document.documentElement.scrollTop,document.body.scrollTop)}:{left:e.scrollLeft,top:e.scrollTop},r.current(A)&&o(A)};return t(),e.addEventListener("scroll",t),function(){e.removeEventListener("scroll",t)}}}),[],A),n}(a),Q=J.useCallback((A=>{n(A.target.value)}),[]),E=J.useCallback((()=>a.clientHeight{e.current.scroll(0,(null==B?void 0:B.top)||0)}),[null==B?void 0:B.top]),J.useEffect((()=>(a.addEventListener("change",Q),()=>{a.removeEventListener("change",Q)})),[]),J.useEffect((()=>{r&&(a.style.color="transparent",a.style.caretColor=r.colorSuccess)}),[r]),J.useEffect((()=>{n(i)}),[i]),AA.jsx("div",{className:o.container,"data-code-type":"highlighter",ref:e,style:{height:null==s?void 0:s.height,width:E()},children:AA.jsx(M3,{children:t})})})),L6=J.memo((({children:A})=>{const e=C3((A=>A.loading));return AA.jsx(S6,{children:!1===e&&A})})),P6=(A,e)=>{if(document.querySelector(e))return;const t=document.createElement("div");t.id=e.replace("#",""),gradioApp().querySelector(A).insertBefore(t,gradioApp().querySelector(A).firstChild),wc(t).render(AA.jsx(J.StrictMode,{children:AA.jsx(J.Suspense,{fallback:"loading...",children:AA.jsx(L6,{children:AA.jsx(R6,{parentId:A})})})}))},H6='\n\n \n \n\n',G6=(A,e,t,n)=>{var o;if((null==A?void 0:A.textContent)&&t)for(const r of e)(null==(o=null==A?void 0:A.textContent)?void 0:o.includes(r))&&(A.innerHTML=t.replace('width="24"',`width="${n}"`).replace('height="24"',`height="${n}"`))},O6=()=>{for(const A of document.querySelectorAll("button"))G6(A,["๐Ÿ–Œ๏ธ"],'\n\n \n \n\n',16),G6(A,["๐Ÿ—ƒ๏ธ"],'\n\n \n \n \n \n \n \n\n',16),G6(A,["๐Ÿ–ผ๏ธ"],'\n\n \n \n \n\n',16),G6(A,["๐ŸŽจ๏ธ"],'\n\n \n \n\n',16),G6(A,["๐Ÿ“‚"],'\n\n \n \n\n',16),G6(A,["๐Ÿ”„","๐Ÿ”","โ™ป๏ธ"],'\n\n \n \n \n \n\n',16),G6(A,["โ†™๏ธ"],'\n\n \n \n\n',16),G6(A,["โคด"],'\n\n \n \n\n',16),G6(A,["โ†•๏ธ"],'\n\n \n \n \n \n \n\n',16),G6(A,["๐Ÿ—‘๏ธ"],'\n\n \n \n \n\n',16),G6(A,["๐Ÿ“‹"],'\n\n \n \n \n \n \n \n\n',16),G6(A,["๐Ÿ’พ"],'\n\n \n \n \n\n',16),G6(A,["๐ŸŽฒ๏ธ"],'\n\n \n \n \n \n \n \n\n',16),G6(A,["๐Ÿช„"],'\n\n \n \n \n \n \n \n \n \n\n',16),G6(A,["โš™๏ธ"],'\n\n \n \n\n',16),G6(A,["โžก๏ธ"],H6,16),G6(A,["โ‡…"],'\n\n \n \n \n \n\n',16),G6(A,["โ‡„"],'\n\n \n \n \n \n\n',16),G6(A,["๐ŸŽด"],'\n\n \n \n\n',16),G6(A,["๐ŸŒ€"],'\n\n \n \n \n \n \n\n',16),G6(A,["๐Ÿ’ฅ"],'\n\n \n\n',16),G6(A,["๐Ÿ“ท"],'\n\n \n \n \n \n\n',16),G6(A,["๐Ÿ“"],'\n\n \n \n\n',16),G6(A,["๐Ÿ“"],'\n\n \n \n \n \n \n \n\n',16),G6(A,["โฌ‡๏ธ"],'\n\n \n \n\n',16),G6(A,["โ†ฉ"],'\n\n \n \n\n',16),G6(A,["๐Ÿ“’"],'\n\n \n\n',16),G6(A,["๐Ÿ“Ž"],'\n\n \n\n',16),G6(A,["๐Ÿ“ฆ"],'\n\n \n \n \n\n',16),G6(A,["๐Ÿ’ž"],'\n\n \n \n \n \n \n\n',16),G6(A,["โœจ"],'\n\n \n \n \n \n\n',16);for(const A of document.querySelectorAll("span"))G6(A,["โคก"],'\n\n \n \n \n \n\n',36),G6(A,["โŠž"],'\n\n \n \n \n\n',36),G6(A,["๐Ÿ–ซ"],'\n\n \n \n \n\n',36),G6(A,["ร—"],'\n\n \n \n\n',36);for(const A of document.querySelectorAll("a"))G6(A,["โฎ"],'\n\n \n \n\n',36),G6(A,["โฏ"],H6,36);uA.success("๐Ÿคฏ [svgIcon] replace")},U6=A=>iY` + `}})),S3=J.memo((({children:A,title:e="Prompt",className:t,style:n,showCopy:o=!0,...r})=>{const[i,a]=J.useState(!0),{styles:s,cx:l}=x3("block"),g=l(s.container,t);return AA.jsxs("div",{className:g,"data-code-type":"highlighter",style:n,...r,children:[AA.jsxs(AQ,{align:"center",className:s.header,horizontal:!0,justify:"space-between",children:[AA.jsx(mY,{icon:i?Hc:Oc,onClick:()=>a(!i),size:{blockSize:24,fontSize:14,strokeWidth:3}}),AA.jsx(mY,{size:{blockSize:24},style:{width:"unset"},children:e}),o?AA.jsx(cV,{content:A,placement:"left",size:{blockSize:24,fontSize:14,strokeWidth:2}}):AA.jsx("div",{})]}),AA.jsx("div",{style:i?{}:{height:0,overflow:"hidden"},children:AA.jsx(M3,{children:A})})]})}));var F3,N3,R3;(R3=F3||(F3={})).CR="\r",R3.CRLF="\r\n",R3.LF="\n",function(A){A[A.CR=13]="CR",A[A.LF=10]="LF"}(N3||(N3={}));const L3=/\r\n|\r(?!\n)|\n/g;var P3,H3,G3;(G3=P3||(P3={})).INCLUDE_SEPARATOR_NONE="NONE",G3.INCLUDE_SEPARATOR_SEPARATELY="SEPARATELY",G3.INCLUDE_SEPARATOR_LEFT="LEFT",G3.INCLUDE_SEPARATOR_RIGHT="RIGHT",G3.INCLUDE_SEPARATOR_ONLY="ONLY",function(A){A[A.ACTION_CLOSE=1]="ACTION_CLOSE",A[A.ACTION_OPEN=2]="ACTION_OPEN",A[A.ACTION_ADD_FRAGMENT=3]="ACTION_ADD_FRAGMENT",A[A.ACTION_NULL=4]="ACTION_NULL"}(H3||(H3={}));const O3=A=>{let e,t;return function(...n){return t||(e=A(...n),t=!0),e}},U3=A=>{if(!A)return!0;if(Array.isArray(A)){if(0===A.length)return!0}else if("object"==typeof A&&0===Object.keys(A).length)return!0;return!1},K3=A=>A[0];function Y3(A){const e=[A].flat().filter(Boolean);return!U3(e)&&{values:new Set(e),max:Math.max(...e),count:0,hasIndex(){return-1/0===this.max||this.values.has(this.count++)},isOverMax(){return-1/0!==this.max&&this.count>this.max}}}class T3{constructor(A,e){this.string=A,this.searchSettings=e,this.prepareSearch()}prepareSearch(){for(const A of[this.searchSettings.separatorSearch,this.searchSettings.bracketsSearch])A.lastIndex=0;Object.assign(this,{brackets:[],pipe:[],currentMentions:[],position:0,isDone:!1,freeArea:{start:0,end:void 0},lastSeparator:void 0,searchString:this.searchSettings.ignoreCase&&!this.searchSettings.separatorSearch.ignoreCase?this.string.toUpperCase():this.string,indexes:Y3(this.searchSettings.indexes)})}get pipeIsEmpty(){return U3(this.pipe)}getMentions(A,e){const t=[],n=[];for(const o of this.currentMentions)o.index>=A&&o.indexn.trimResultText(e.substring(A,i)))),getTextAfter:O3((()=>e.substring(i+r.length))),getMentions:O3((()=>n.getMentions(A,i)[0])),getSeparator:O3((()=>r)),get string(){return this.getString()},get textAfter(){return this.getTextAfter()},get mentions(){return this.getMentions()},get separator(){return this.getSeparator()}}))return[];delete this.tempPosition}return c&&(this.currentMentions=c),this.position=i+s,[g,u,!0]}pushToPipe(A){if(this.indexes){if(!this.indexes.hasIndex())return;this.indexes.isOverMax()&&(this.isDone=!0)}this.pipe.push(A)}addToPipe(A){let[e,t,n]=this.checkSeparator(A);if(!n)return!1;switch(this.searchSettings.includeSeparatorMode){case"SEPARATELY":this.pushToPipe(e),t&&this.pushToPipe(t);break;case"LEFT":this.pushToPipe([e,t]);break;case"RIGHT":!("object"==typeof e?e.text:e)&&!this.lastSeparator||this.pushToPipe([this.lastSeparator,e]),this.lastSeparator=t;break;case"ONLY":t&&this.pushToPipe(t);break;default:this.pushToPipe(e)}return!this.pipeIsEmpty}findBrackets(){const{searchString:A,brackets:e,freeArea:t,searchSettings:n}=this,{bracketsSearch:o,separatorSearch:r,searchWithin:i}=n,a=i?()=>this.pipeIsEmpty:()=>("number"!=typeof t.start||t.start!==t.end)&&!t.end;for(;a();){var s;const a=o.exec(A);if(!a){if(i||isNaN(t.start))return!1;t.end=A.length-1;continue}const g=a[0],{close:c,ignoreMode:u,searchLevels:B}=(l=e)[l.length-1]||{};let Q;switch((g===c?1:u&&4)||(Q=n.bracketsMap[g])&&2||(null===(s=n.mentions)||void 0===s?void 0:s[g])&&3){case 1:const A=e.pop();i?(!0===B||B.includes(e.length+1))&&this.addToPipe(Object.assign(a,{searchWithinData:A})):U3(e)&&(t.start=a.index,r&&r.lastIndex=t.start&&this.addToPipe(A);if(A=null,!e)continue}else t.start=t.end=void 0;else this.addToPipe();o=!0}return A}getNext(){let A;for(;this.pipeIsEmpty&&!this.isDone;)this.findBrackets()?this.searchSettings.searchWithin||(A=this.findSeparator(A)):this.isDone=!0;return this.pipeIsEmpty?null:this.pipe.shift()}getAll(){return[...this]}getRest(){const A=[];let e;for(;null!==(e=this.getNext());)A.push(e);return A}*[Symbol.iterator](){this.prepareSearch();const A=this;let e;do{e=A.getNext(),null!==e&&(yield e)}while(null!==e)}}function J3(A,e){const t=this.merge(e);let n=new T3(A,t);return"number"==typeof t.indexes?n.getNext():t.returnIterator?n:n.getAll()}function j3(A){const e=J3.bind(A);return Object.assign(e,{getOne(A,t,n={}){if(isNaN(t))throw new TypeError("second parameter of `getOne` function should be index");return e(A,{...n,indexes:t})},getFirst:(A,t={})=>e(A,{...t,indexes:0}),getIndexes(A,t,n={}){if(!Array.isArray(t))throw new TypeError("second parameter of `getOne` function should be array of indexes");return e(A,{...n,indexes:t})},getIterator:(A,t={})=>e(A,{...t,returnIterator:!0})})}let q3;function $3(A,e){const t=function(A,e){const t={brackets:[],mentions:[],ignoreInsideQuotes:!0,includeSeparatorMode:"NONE",ignoreCase:!0,trimResult:!0,trimSeparators:!1,defaultBrackets:[["(",")"],["[","]"],["{","}"]],...e,separators:A,init(){return function(A){if(Array.isArray(A.mentions)||"string"==typeof A.mentions){const e=[A.mentions].flat().filter(Boolean).reduce(((e,t)=>(e[A.ignoreCase?t.toUpperCase():t]=t,e)),{});A.mentions=!U3(e)&&e}return A.createBracketsMap().createBracketsSearch().createSeparatorsSearch()}(this)},merge(A){return e=this,(t=A)?(t={...e,...t},["brackets","mentions"].some((A=>A in t))&&t.init(),t):e;var e,t},arrayToPattern:A=>{return e=A,null!==(t=q3)&&void 0!==t||(q3=new Set(".{}[]^()+*?\\/$|".split(""))),e.map((A=>A instanceof RegExp?A.source:A.split("").map((A=>q3.has(A)?"\\"+A:A)).join(""))).join("|");var e,t},createRegExp:A=>RegExp(A,"g"),createBracketsMap(){return function(A){let e=A.brackets=(t=A.brackets,n=A.defaultBrackets,!0===t?t=n.slice():"object"!=typeof t||Array.isArray(t)?"string"==typeof t&&(t=t.split(",").map((A=>{let e=A.trim().split(" ");if(2!==e.length){if(2!==K3(e).length)throw new TypeError("open and close parts of brackets should be separated by space symbol");e=K3(e).split("")}return e}))):t=Object.entries(t),null!==(o=t)&&void 0!==o?o:[]);var t,n,o;return e=function(A,e){return e.ignoreInsideQuotes&&A.unshift(["'",,,!0],['"',,,!0]),A}(e,A),A.bracketsMap=function(A,e){return A.reduce(((A,[t,n,...o])=>{1!==o.length||e||o.unshift(void 0);let[r=e&&1,i]=o;return"number"==typeof r&&(r=[r]),A[t]={open:t,ignoreMode:i,searchLevels:r,close:n||t},A}),{})}(e,A.searchWithin),A}(this)},createBracketsSearch(){return function(A){const e=Object.entries(A.bracketsMap).flatMap((([,{close:A,open:e}])=>A!==e?[e,A]:e)).concat(Object.keys(A.mentions||{})).filter(Boolean),t=A.arrayToPattern(e);return A.bracketsSearch=A.createRegExp(t),A}(this)},createSeparatorsSearch(){return function(A){const{separators:e}=A;if("string"==typeof e||Array.isArray(e)){const t=A.arrayToPattern([e].flat().filter(Boolean));A.separatorSearch=A.createRegExp(t)}else e?(A.separatorSearch=e,A.ignoreCase=e.ignoreCase):A.separatorSearch=/empty/;return A}(this)}};return t.init()}(A,e);return{splitSettings:t,splitFn:j3(t)}}function z3(...A){let[e,t,n]=function(A,e){if(null==A||!A.length)throw new RangeError("empty arguments");if(3===A.length)return A;if(1===A.length){const e=K3(A);"string"==typeof e?A.push(",",{}):Array.isArray(e)?(A.unshift(null),A.push({})):"object"==typeof e&&A.unshift(null,",")}else if(2===A.length)"string"==typeof A[0]&&A[1]instanceof RegExp||"string"==typeof A[1]||Array.isArray(A[1])?A.push({}):A.unshift(null);else if(A.length>3)throw new RangeError("Too many arguments passed to splitSmartly function!!!");return A}(A);const{splitFn:o}=$3(t,n);return null!==e?o(e):o}function W3(A){return function(A,e="\n"){return A.replace(L3,e)}(A).replace(/[ \t\xa0]+(?=\n)/g,"").replace(/\n{3,}/g,"\n\n").replace(/^[\r\n]+|[\s\r\n]+$/g,"")}const _3=/\r?\n/,X3=/\x00\x00\x00\r?\n/;function V3(A){return X3.test(A)}function Z3(A){const e=V3(A=W3(A));let t=function(A){return A.split(V3(A)?X3:_3)}(A),n="",o="",r="";const i=t.slice();if(t.length){if(e){var a,s;if(t.length>3)throw new TypeError;let A=t.pop();if(A.startsWith("Steps: ")&&(r=A,A=void 0),null!==(a=A)&&void 0!==a||(A=t.pop()),A.startsWith("Negative prompt: ")&&(o=A.slice(17),A=void 0),null!==(s=A)&&void 0!==s||(A=t.pop()),n=A,t.length)throw new TypeError}else{let A=t[t.length-1];if(A.startsWith("Steps: ")&&(r=t.pop(),A=void 0),t.length){let e=-1;for(let n=t.length-1;n>=0;n--)if(A=t[n],A.startsWith("Negative prompt: ")){e=n,t[n]=A.slice(17);break}-1!==e&&(o=t.splice(e).join("\n")),n=t.join("\n")}}n=n.replace(/\x00\x00\x00/g,""),o=o.replace(/\x00\x00\x00/g,"")}return{prompt:n,negative_prompt:o,infoline:r,infoline_extra:[],lines_raw:i}}function A6(A,e){let t=[];if(null!=e&&e.isIncludePrompts){const{prompt:e,negative_prompt:n,infoline:o}=Z3(A);t.push(["prompt",e]),t.push(["negative_prompt",n]),A=o}return Object.fromEntries(t.concat(function(A,e){const t=null==e?void 0:e.cast_to_snake,n=/^0\d/;return A.map((([A,e])=>{const o=parseFloat(e),r=n.test(e)||isNaN(o)||e-o!=0;return t&&(A=A.toLowerCase().replace(/ /g,"_")),[A,r?e:o]}))}(function(A){return z3(A=W3(A),[","],{brackets:!0,trimSeparators:!0}).reduce(((A,e)=>{if(null!=e&&e.length){const t=function(A){const[,e,t]=A.match(/^([^:]+)\s*:\s*(.*)$/);return[e,t]}(e);A.push(t)}return A}),[])}(A),e)))}const e6=A=>z3(A.replaceAll("<","<").replaceAll(">",">").replace(/^[\x00\s,๏ผŒใ€‚]+$/gm,"").replace(/\n{2,}/g,"\n").replace(/\n/g,"
"),[",","๏ผŒ","ใ€‚"],{brackets:!0,trimSeparators:!0}).filter((A=>A.length)).join(", ").replace(/
/g,"\n").replace(/^\s+|\s+$/gm,""),t6=J.memo((({value:A,className:e,style:t,showCopy:n=!0,showConfig:o=!0,showNegative:r=!0})=>{const{styles:i,cx:a}=h3(),s=J.useMemo((()=>(A=>{if(!A||"undefined"===A)return;if(!A.includes("
"))return;let{prompt:e,negative_prompt:t,...n}=A6(A,{isIncludePrompts:!0});return e=e.trim().replaceAll("
","\n").replaceAll(/\s+$/g,""),t=t.trim().replaceAll("
","\n").replaceAll(/\s+$/g,""),e=e?e6(e):"",t=t?e6(t):"",{config:n,negative:t,positive:e}})(A)),[A]);return A&&"undefined"!==A&&s?AA.jsxs(AQ,{className:e,gap:4,style:t,children:[(null==s?void 0:s.positive)&&AA.jsx(S3,{className:i.highlight,showCopy:n,title:"Positive Prompt",children:s.positive}),r&&(null==s?void 0:s.negative)&&AA.jsx(S3,{className:a(i.highlight,i.negative),showCopy:n,title:"Negative Prompt",children:s.negative}),o&&(null==s?void 0:s.config)&&AA.jsx(AQ,{className:i.container,style:n?{}:{paddingRight:24},children:Object.entries(s.config).map((([A,e])=>AA.jsxs(AQ,{gap:4,horizontal:!0,justify:"space-between",children:[AA.jsxs(AQ,{align:"center",className:i.configTitle,horizontal:!0,children:[A,":"]}),AA.jsxs(AQ,{align:"center",className:i.configValue,gap:4,horizontal:!0,children:[e,n&&AA.jsx(cV,{content:e,size:"small"})]})]},A)))})]}):null})),n6=J.memo((({parentId:A})=>{const e=p3(`${A} .infotext`,{subSelector:"p"});return f3(`${A} .infotext`),AA.jsx(t6,{value:e})})),o6="%[a-f0-9]{2}",r6=new RegExp("("+o6+")|([^%]+?)","gi"),i6=new RegExp("("+o6+")+","gi");function a6(A,e){try{return[decodeURIComponent(A.join(""))]}catch{}if(1===A.length)return A;e=e||1;const t=A.slice(0,e),n=A.slice(e);return Array.prototype.concat.call([],a6(t),a6(n))}function s6(A){try{return decodeURIComponent(A)}catch{let e=A.match(r6)||[];for(let t=1;tnull==A,B6=A=>encodeURIComponent(A).replaceAll(/[!'()*]/g,(A=>`%${A.charCodeAt(0).toString(16).toUpperCase()}`)),Q6=Symbol("encodeFragmentIdentifier");function E6(A){if("string"!=typeof A||1!==A.length)throw new TypeError("arrayFormatSeparator must be single character string")}function C6(A,e){return e.encode?e.strict?B6(A):encodeURIComponent(A):A}function d6(A,e){return e.decode?l6(A):A}function I6(A){return Array.isArray(A)?A.sort():"object"==typeof A?I6(Object.keys(A)).sort(((A,e)=>Number(A)-Number(e))).map((e=>A[e])):A}function p6(A){const e=A.indexOf("#");return-1!==e&&(A=A.slice(0,e)),A}function f6(A,e){return e.parseNumbers&&!Number.isNaN(Number(A))&&"string"==typeof A&&""!==A.trim()?A=Number(A):!e.parseBooleans||null===A||"true"!==A.toLowerCase()&&"false"!==A.toLowerCase()||(A="true"===A.toLowerCase()),A}function h6(A){const e=(A=p6(A)).indexOf("?");return-1===e?"":A.slice(e+1)}function w6(A,e){E6((e={decode:!0,sort:!0,arrayFormat:"none",arrayFormatSeparator:",",parseNumbers:!1,parseBooleans:!1,...e}).arrayFormatSeparator);const t=function(A){let e;switch(A.arrayFormat){case"index":return(A,t,n)=>{e=/\[(\d*)]$/.exec(A),A=A.replace(/\[\d*]$/,""),e?(void 0===n[A]&&(n[A]={}),n[A][e[1]]=t):n[A]=t};case"bracket":return(A,t,n)=>{e=/(\[])$/.exec(A),A=A.replace(/\[]$/,""),e?void 0!==n[A]?n[A]=[...n[A],t]:n[A]=[t]:n[A]=t};case"colon-list-separator":return(A,t,n)=>{e=/(:list)$/.exec(A),A=A.replace(/:list$/,""),e?void 0!==n[A]?n[A]=[...n[A],t]:n[A]=[t]:n[A]=t};case"comma":case"separator":return(e,t,n)=>{const o="string"==typeof t&&t.includes(A.arrayFormatSeparator),r="string"==typeof t&&!o&&d6(t,A).includes(A.arrayFormatSeparator);t=r?d6(t,A):t;const i=o||r?t.split(A.arrayFormatSeparator).map((e=>d6(e,A))):null===t?t:d6(t,A);n[e]=i};case"bracket-separator":return(e,t,n)=>{const o=/(\[])$/.test(e);if(e=e.replace(/\[]$/,""),!o)return void(n[e]=t?d6(t,A):t);const r=null===t?[]:t.split(A.arrayFormatSeparator).map((e=>d6(e,A)));void 0!==n[e]?n[e]=[...n[e],...r]:n[e]=r};default:return(A,e,t)=>{void 0!==t[A]?t[A]=[...[t[A]].flat(),e]:t[A]=e}}}(e),n=Object.create(null);if("string"!=typeof A)return n;if(!(A=A.trim().replace(/^[?#&]/,"")))return n;for(const o of A.split("&")){if(""===o)continue;const A=e.decode?o.replaceAll("+"," "):o;let[r,i]=g6(A,"=");void 0===r&&(r=A),i=void 0===i?null:["comma","separator","bracket-separator"].includes(e.arrayFormat)?i:d6(i,e),t(d6(r,e),i,n)}for(const[o,r]of Object.entries(n))if("object"==typeof r&&null!==r)for(const[A,t]of Object.entries(r))r[A]=f6(t,e);else n[o]=f6(r,e);return!1===e.sort?n:(!0===e.sort?Object.keys(n).sort():Object.keys(n).sort(e.sort)).reduce(((A,e)=>{const t=n[e];return A[e]=Boolean(t)&&"object"==typeof t&&!Array.isArray(t)?I6(t):t,A}),Object.create(null))}function D6(A,e){if(!A)return"";E6((e={encode:!0,strict:!0,arrayFormat:"none",arrayFormatSeparator:",",...e}).arrayFormatSeparator);const t=t=>e.skipNull&&u6(A[t])||e.skipEmptyString&&""===A[t],n=function(A){switch(A.arrayFormat){case"index":return e=>(t,n)=>{const o=t.length;return void 0===n||A.skipNull&&null===n||A.skipEmptyString&&""===n?t:null===n?[...t,[C6(e,A),"[",o,"]"].join("")]:[...t,[C6(e,A),"[",C6(o,A),"]=",C6(n,A)].join("")]};case"bracket":return e=>(t,n)=>void 0===n||A.skipNull&&null===n||A.skipEmptyString&&""===n?t:null===n?[...t,[C6(e,A),"[]"].join("")]:[...t,[C6(e,A),"[]=",C6(n,A)].join("")];case"colon-list-separator":return e=>(t,n)=>void 0===n||A.skipNull&&null===n||A.skipEmptyString&&""===n?t:null===n?[...t,[C6(e,A),":list="].join("")]:[...t,[C6(e,A),":list=",C6(n,A)].join("")];case"comma":case"separator":case"bracket-separator":{const e="bracket-separator"===A.arrayFormat?"[]=":"=";return t=>(n,o)=>void 0===o||A.skipNull&&null===o||A.skipEmptyString&&""===o?n:(o=null===o?"":o,0===n.length?[[C6(t,A),e,C6(o,A)].join("")]:[[n,C6(o,A)].join(A.arrayFormatSeparator)])}default:return e=>(t,n)=>void 0===n||A.skipNull&&null===n||A.skipEmptyString&&""===n?t:null===n?[...t,C6(e,A)]:[...t,[C6(e,A),"=",C6(n,A)].join("")]}}(e),o={};for(const[i,a]of Object.entries(A))t(i)||(o[i]=a);const r=Object.keys(o);return!1!==e.sort&&r.sort(e.sort),r.map((t=>{const o=A[t];return void 0===o?"":null===o?C6(t,e):Array.isArray(o)?0===o.length&&"bracket-separator"===e.arrayFormat?C6(t,e)+"[]":o.reduce(n(t),[]).join("&"):C6(t,e)+"="+C6(o,e)})).filter((A=>A.length>0)).join("&")}function m6(A,e){var t;e={decode:!0,...e};let[n,o]=g6(A,"#");return void 0===n&&(n=A),{url:(null==(t=null==n?void 0:n.split("?"))?void 0:t[0])??"",query:w6(h6(A),e),...e&&e.parseFragmentIdentifier&&o?{fragmentIdentifier:d6(o,e)}:{}}}function y6(A,e){e={encode:!0,strict:!0,[Q6]:!0,...e};const t=p6(A.url).split("?")[0]||"";let n=D6({...w6(h6(A.url),{sort:!1}),...A.query},e);n&&(n=`?${n}`);let o=function(A){let e="";const t=A.indexOf("#");return-1!==t&&(e=A.slice(t)),e}(A.url);if("string"==typeof A.fragmentIdentifier){const n=new URL(t);n.hash=A.fragmentIdentifier,o=e[Q6]?n.hash:`#${A.fragmentIdentifier}`}return`${t}${n}${o}`}function b6(A,e,t){t={parseFragmentIdentifier:!0,[Q6]:!1,...t};const{url:n,query:o,fragmentIdentifier:r}=m6(A,t);return y6({url:n,query:c6(o,e),fragmentIdentifier:r},t)}const v6=Object.freeze(Object.defineProperty({__proto__:null,exclude:function(A,e,t){return b6(A,Array.isArray(e)?A=>!e.includes(A):(A,t)=>!e(A,t),t)},extract:h6,parse:w6,parseUrl:m6,pick:b6,stringify:D6,stringifyUrl:y6},Symbol.toStringTag,{value:"Module"})),k6=()=>{const[A,e]=J.useState((()=>{try{return window.matchMedia("(prefers-color-scheme: dark)").matches}catch{return!1}})());return J.useEffect((()=>{const A=window.matchMedia("(prefers-color-scheme: dark)"),t=A=>{e(A.matches)};return A.addEventListener("change",t),()=>{A.removeEventListener("change",t)}}),[]),A},M6={dark:{colorPrimary:"#007AFF",colorPrimaryActive:"#1554ad",colorPrimaryBg:"#111a2c",colorPrimaryBgHover:"#112545",colorPrimaryBorder:"#15325b",colorPrimaryBorderHover:"#15417e",colorPrimaryHover:"#3c89e8",colorPrimaryText:"#1668dc",colorPrimaryTextActive:"#1554ad",colorPrimaryTextHover:"#3c89e8"},light:{colorPrimary:"#007AFF",colorPrimaryActive:"#0958d9",colorPrimaryBg:"#e6f4ff",colorPrimaryBgHover:"#bae0ff",colorPrimaryBorder:"#91caff",colorPrimaryBorderHover:"#69b1ff",colorPrimaryHover:"#4096ff",colorPrimaryText:"#1677ff",colorPrimaryTextActive:"#0958d9",colorPrimaryTextHover:"#4096ff"}},x6={dark:{colorBgContainer:"#1f1f1f",colorBgElevated:"#222",colorBgLayout:"#181818",colorBgSpotlight:"#444",colorBorder:"#444",colorBorderSecondary:"#333",colorFill:"rgb(255 255 255 / 18%)",colorFillQuaternary:"rgb(255 255 255 / 4%)",colorFillSecondary:"rgb(255 255 255 / 12%)",colorFillTertiary:"rgb(255 255 255 / 8%)",colorNeutral:"#666",colorText:"rgb(255 255 255 / 85%)",colorTextQuaternary:"rgb(255 255 255 / 25%)",colorTextSecondary:"rgb(255 255 255 / 65%)",colorTextTertiary:"rgb(255 255 255 / 45%)"},light:{colorBgContainer:"#fff",colorBgElevated:"#fff",colorBgLayout:"#f7f7f7",colorBgSpotlight:"rgb(0 0 0 / 85%)",colorBorder:"#ddd",colorBorderSecondary:"#eee",colorFill:"rgb(0 0 0 / 15%)",colorFillQuaternary:"rgb(0 0 0 / 2%)",colorFillSecondary:"rgb(0 0 0 / 6%)",colorFillTertiary:"rgb(0 0 0 / 4%)",colorNeutral:"#666",colorText:"rgb(0 0 0 / 88%)",colorTextQuaternary:"rgb(0 0 0 / 25%)",colorTextSecondary:"rgb(0 0 0 / 65%)",colorTextTertiary:"rgb(0 0 0 / 45%)"}},S6=J.memo((({children:A})=>{const{onSetThemeMode:e,themeMode:t}=C3((A=>({onInit:A.onInit,onSetThemeMode:A.onSetThemeMode,themeMode:A.themeMode}))),n=C3(B3,MV),o=k6();J.useEffect((()=>{const A=String(v6.parseUrl(window.location.href).query.__theme||"");A?(document.body.classList.add(A),e(A)):(document.body.classList.add(o?"dark":"light"),e(o?"dark":"light"))}),[o]);const r=J.useCallback((()=>{let A={},e={};if(n.primaryColor)if("kitchen"===n.primaryColor)A=M6[t];else{const e=sV[n.primaryColor];A=b0({appearance:t,scale:e,type:"Primary"})}if(n.neutralColor)if("kitchen"===n.neutralColor)e=x6[t];else{const A=k0[n.neutralColor];e=v0({appearance:t,scale:A})}return{...A,...e}}),[n.primaryColor,n.neutralColor,t]);return n&&AA.jsx(s1,{customToken:r,enableWebfonts:n.enableWebFont,themeMode:t,children:A})})),F6=J.memo((({children:A})=>{const e=C3((A=>A.loading));return AA.jsx(S6,{children:!1===e&&A})})),N6=(A,e)=>{if(document.querySelector(e))return;const t=document.createElement("div");t.id=e.replace("#",""),gradioApp().querySelector(A).append(t),wc(t).render(AA.jsx(J.StrictMode,{children:AA.jsx(J.Suspense,{fallback:"loading...",children:AA.jsx(F6,{children:AA.jsx(n6,{parentId:A})})})}))},R6=J.memo((({parentId:A})=>{const e=J.useRef(null),[t,n]=J.useState(""),{styles:o,theme:r}=k3(),i=(A=>{const[e,t]=J.useState("");return J.useEffect((()=>{const e={attributes:!0,characterData:!0,childList:!0,subtree:!0},n=new MutationObserver((e=>{for(const n of e)if("attributes"===n.type){const e=document.querySelector(A);t(e.value)}})),o=document.querySelector(A);return o&&(n.observe(o,e),t(o.value)),()=>{n.disconnect()}}),[A]),e})(`${A} label textarea`),a=J.useMemo((()=>gradioApp().querySelector(`${A} label textarea`)),[A]),s=(l=a,g=sj($j((function(){var A=Pj(l);return A?{width:A.clientWidth,height:A.clientHeight}:void 0})),2),c=g[0],u=g[1],eq((function(){var A=Pj(l);if(A){var e=new aI((function(A){A.forEach((function(A){var e=A.target,t=e.clientWidth,n=e.clientHeight;u({width:t,height:n})}))}));return e.observe(A),function(){e.disconnect()}}}),[],l),c);var l,g,c,u;const B=function(A,e){void 0===e&&(e=function(){return!0});var t=sj($j(),2),n=t[0],o=t[1],r=cj(e);return Gj((function(){var e=Pj(A,document);if(e){var t=function(){var A;A=e===document?document.scrollingElement?{left:document.scrollingElement.scrollLeft,top:document.scrollingElement.scrollTop}:{left:Math.max(window.pageXOffset,document.documentElement.scrollLeft,document.body.scrollLeft),top:Math.max(window.pageYOffset,document.documentElement.scrollTop,document.body.scrollTop)}:{left:e.scrollLeft,top:e.scrollTop},r.current(A)&&o(A)};return t(),e.addEventListener("scroll",t),function(){e.removeEventListener("scroll",t)}}}),[],A),n}(a),Q=J.useCallback((A=>{n(A.target.value)}),[]),E=J.useCallback((()=>a.clientHeight{e.current.scroll(0,(null==B?void 0:B.top)||0)}),[null==B?void 0:B.top]),J.useEffect((()=>(a.addEventListener("change",Q),()=>{a.removeEventListener("change",Q)})),[]),J.useEffect((()=>{r&&(a.style.color="transparent",a.style.caretColor=r.colorSuccess)}),[r]),J.useEffect((()=>{n(i)}),[i]),AA.jsx("div",{className:o.container,"data-code-type":"highlighter",ref:e,style:{height:null==s?void 0:s.height,width:E()},children:AA.jsx(M3,{children:t})})})),L6=J.memo((({children:A})=>{const e=C3((A=>A.loading));return AA.jsx(S6,{children:!1===e&&A})})),P6=(A,e)=>{if(document.querySelector(e))return;const t=document.createElement("div");t.id=e.replace("#",""),gradioApp().querySelector(A).insertBefore(t,gradioApp().querySelector(A).firstChild),wc(t).render(AA.jsx(J.StrictMode,{children:AA.jsx(J.Suspense,{fallback:"loading...",children:AA.jsx(L6,{children:AA.jsx(R6,{parentId:A})})})}))},H6='\n\n \n \n\n',G6=(A,e,t,n)=>{var o;if((null==A?void 0:A.textContent)&&t)for(const r of e)(null==(o=null==A?void 0:A.textContent)?void 0:o.includes(r))&&(A.innerHTML=t.replace('width="24"',`width="${n}"`).replace('height="24"',`height="${n}"`))},O6=()=>{for(const A of document.querySelectorAll("button"))G6(A,["๐Ÿ–Œ๏ธ"],'\n\n \n \n\n',16),G6(A,["๐Ÿ—ƒ๏ธ"],'\n\n \n \n \n \n \n \n\n',16),G6(A,["๐Ÿ–ผ๏ธ"],'\n\n \n \n \n\n',16),G6(A,["๐ŸŽจ๏ธ"],'\n\n \n \n\n',16),G6(A,["๐Ÿ“‚"],'\n\n \n \n\n',16),G6(A,["๐Ÿ”„","๐Ÿ”","โ™ป๏ธ"],'\n\n \n \n \n \n\n',16),G6(A,["โ†™๏ธ"],'\n\n \n \n\n',16),G6(A,["โคด"],'\n\n \n \n\n',16),G6(A,["โ†•๏ธ"],'\n\n \n \n \n \n \n\n',16),G6(A,["๐Ÿ—‘๏ธ"],'\n\n \n \n \n\n',16),G6(A,["๐Ÿ“‹"],'\n\n \n \n \n \n \n \n\n',16),G6(A,["๐Ÿ’พ"],'\n\n \n \n \n\n',16),G6(A,["๐ŸŽฒ๏ธ"],'\n\n \n \n \n \n \n \n\n',16),G6(A,["๐Ÿช„"],'\n\n \n \n \n \n \n \n \n \n\n',16),G6(A,["โš™๏ธ"],'\n\n \n \n\n',16),G6(A,["โžก๏ธ"],H6,16),G6(A,["โ‡…"],'\n\n \n \n \n \n\n',16),G6(A,["โ‡„"],'\n\n \n \n \n \n\n',16),G6(A,["๐ŸŽด"],'\n\n \n \n\n',16),G6(A,["๐ŸŒ€"],'\n\n \n \n \n \n \n\n',16),G6(A,["๐Ÿ’ฅ"],'\n\n \n\n',16),G6(A,["๐Ÿ“ท"],'\n\n \n \n \n \n\n',16),G6(A,["๐Ÿ“"],'\n\n \n \n\n',16),G6(A,["๐Ÿ“"],'\n\n \n \n \n \n \n \n\n',16),G6(A,["โฌ‡๏ธ"],'\n\n \n \n\n',16),G6(A,["โ†ฉ"],'\n\n \n \n\n',16),G6(A,["๐Ÿ“’"],'\n\n \n\n',16),G6(A,["๐Ÿ“Ž"],'\n\n \n\n',16),G6(A,["๐Ÿ“ฆ"],'\n\n \n \n \n\n',16),G6(A,["๐Ÿ’ž"],'\n\n \n \n \n \n \n\n',16),G6(A,["โœจ"],'\n\n \n \n \n \n\n',16);for(const A of document.querySelectorAll("span"))G6(A,["โคก"],'\n\n \n \n \n \n\n',36),G6(A,["โŠž"],'\n\n \n \n \n\n',36),G6(A,["๐Ÿ–ซ"],'\n\n \n \n \n\n',36),G6(A,["ร—"],'\n\n \n \n\n',36);for(const A of document.querySelectorAll("a"))G6(A,["โฎ"],'\n\n \n \n\n',36),G6(A,["โฏ"],H6,36);uA.success("๐Ÿคฏ [svgIcon] replace")},U6=A=>iY` html, body, #__next, @@ -1992,8 +1992,8 @@ ld=cd,function(){var A={}.hasOwnProperty;function e(){for(var A="",e=0;e{const t=J.useRef(null),{mobile:n}=SK(),o=C3(B3,MV),{cx:r,styles:i}=n7({isPromptResizable:"resizable"===o.promptTextareaType,layoutSplitPreview:o.layoutSplitPreview});return w1(t,".app",{debug:"[layout] inject - Content",onSuccess:()=>{(()=>{const A=gradioApp().querySelectorAll('[id$="_prompt_container"] textarea');if(A)for(const e of A)e.classList.remove("scroll-hide"),e.style.height="auto"})()}}),AA.jsxs(AA.Fragment,{children:[AA.jsx("div",{className:r(i.container,i.textares,i.txt2img,o.layoutSplitPreview&&i.splitView,A),ref:t,...e}),o.layoutSplitPreview&&!1===n&&AA.jsx(t7,{})]})})),r7=oY((({css:A,token:e},{headerHeight:t=64,size:n=86})=>({body:A` - padding: 0; height: 100%; + padding: 0; .hide { display: none; @@ -2029,17 +2029,16 @@ ld=cd,function(){var A={}.hasOwnProperty;function e(){for(var A="",e=0;e