diff --git a/.husky/commit-msg b/.husky/commit-msg deleted file mode 100644 index 3c1e886..0000000 --- a/.husky/commit-msg +++ /dev/null @@ -1,5 +0,0 @@ -#!/usr/bin/env sh -. "$(dirname -- "$0")/_/husky.sh" - -npx --no -- commitlint --edit ${1} - diff --git a/.husky/prepare-commit-msg b/.husky/prepare-commit-msg index b52f190..f4e6aca 100644 --- a/.husky/prepare-commit-msg +++ b/.husky/prepare-commit-msg @@ -1,4 +1,10 @@ -#!/bin/sh +#!/usr/bin/env sh # gitmoji as a commit hook -exec < /dev/tty -gitmoji --hook $1 $2 +if npx -v >&/dev/null +then + exec < /dev/tty + npx -c "gitmoji --hook $1 $2" +else + exec < /dev/tty + gitmoji --hook $1 $2 +fi \ No newline at end of file diff --git a/CHANGELOG.md b/CHANGELOG.md index 36da75c..dc2558f 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -4,10 +4,9 @@ # [1.5.0](https://github.com/canisminor1990/sd-web-ui-kitchen-theme/compare/v1.4.7...v1.5.0) (2023-04-22) - ### ✨ Features -* add extra network sidebar ([b6dc1f4](https://github.com/canisminor1990/sd-web-ui-kitchen-theme/commit/b6dc1f4)) +- add extra network sidebar ([b6dc1f4](https://github.com/canisminor1990/sd-web-ui-kitchen-theme/commit/b6dc1f4)) ## [1.4.7](https://github.com/canisminor1990/sd-web-ui-kitchen-theme/compare/v1.4.6...v1.4.7) (2023-04-22) diff --git a/assets/screenshot.webp b/assets/screenshot.webp index fe58a1c..a343a51 100644 Binary files a/assets/screenshot.webp and b/assets/screenshot.webp differ diff --git a/commitlint.config.js b/commitlint.config.js deleted file mode 100644 index ea131c6..0000000 --- a/commitlint.config.js +++ /dev/null @@ -1,3 +0,0 @@ -module.exports = { - extends: ['gitmoji'], -} diff --git a/javascript/index.js b/javascript/index.js index 889ca96..7576920 100644 --- a/javascript/index.js +++ b/javascript/index.js @@ -1,31 +1,31 @@ -var SD=Object.defineProperty,PD=Object.defineProperties;var ED=Object.getOwnPropertyDescriptors;var wg=Object.getOwnPropertySymbols;var c0=Object.prototype.hasOwnProperty,m0=Object.prototype.propertyIsEnumerable;var l0=(rn,cn,ha)=>cn in rn?SD(rn,cn,{enumerable:!0,configurable:!0,writable:!0,value:ha}):rn[cn]=ha,bn=(rn,cn)=>{for(var ha in cn||(cn={}))c0.call(cn,ha)&&l0(rn,ha,cn[ha]);if(wg)for(var ha of wg(cn))m0.call(cn,ha)&&l0(rn,ha,cn[ha]);return rn},nf=(rn,cn)=>PD(rn,ED(cn));var of=(rn,cn)=>{var ha={};for(var zr in rn)c0.call(rn,zr)&&cn.indexOf(zr)<0&&(ha[zr]=rn[zr]);if(rn!=null&&wg)for(var zr of wg(rn))cn.indexOf(zr)<0&&m0.call(rn,zr)&&(ha[zr]=rn[zr]);return ha};(function(){var rn={4184:function(F,g){var x,R;(function(){"use strict";var $={}.hasOwnProperty,I="[native code]";function B(){for(var W=[],G=0;G-1}F.exports=$},1196:function(F){function g(x,R,$){for(var I=-1,B=x==null?0:x.length;++I=Q){var na=ye?null:W(Oe);if(na)return G(na);Le=!1,Te=B,Ne=new R}else Ne=ye?[]:Ce;e:for(;++weRe))return!1;var Ce=we.get(Q),Ne=we.get(de);if(Ce&&Ne)return Ce==de&&Ne==Q;var na=-1,ve=!0,Ye=Oe&W?new R:void 0;for(we.set(Q,de),we.set(de,Q);++na":">",'"':""","'":"'"},I=R($);F.exports=I},1957:function(F,g,x){var R=typeof x.g=="object"&&x.g&&x.g.Object===Object&&x.g;F.exports=R},8234:function(F,g,x){var R=x(8866),$=x(9551),I=x(3674);function B(W){return R(W,I,$)}F.exports=B},5050:function(F,g,x){var R=x(7019);function $(I,B){var W=I.__data__;return R(B)?W[typeof B=="string"?"string":"hash"]:W.map}F.exports=$},852:function(F,g,x){var R=x(8458),$=x(7801);function I(B,W){var G=$(B,W);return R(G)?G:void 0}F.exports=I},9607:function(F,g,x){var R=x(2705),$=Object.prototype,I=$.hasOwnProperty,B=$.toString,W=R?R.toStringTag:void 0;function G(Q){var de=I.call(Q,W),Oe=Q[W];try{Q[W]=void 0;var ye=!0}catch(we){}var De=B.call(Q);return ye&&(de?Q[W]=Oe:delete Q[W]),De}F.exports=G},9551:function(F,g,x){var R=x(4963),$=x(479),I=Object.prototype,B=I.propertyIsEnumerable,W=Object.getOwnPropertySymbols,G=W?function(Q){return Q==null?[]:(Q=Object(Q),R(W(Q),function(de){return B.call(Q,de)}))}:$;F.exports=G},4160:function(F,g,x){var R=x(8552),$=x(7071),I=x(3818),B=x(8525),W=x(577),G=x(4239),Q=x(346),de="[object Map]",Oe="[object Object]",ye="[object Promise]",De="[object Set]",we="[object WeakMap]",Te="[object DataView]",Re=Q(R),Le=Q($),Ce=Q(I),Ne=Q(B),na=Q(W),ve=G;(R&&ve(new R(new ArrayBuffer(1)))!=Te||$&&ve(new $)!=de||I&&ve(I.resolve())!=ye||B&&ve(new B)!=De||W&&ve(new W)!=we)&&(ve=function(Ye){var je=G(Ye),ma=je==Oe?Ye.constructor:void 0,ta=ma?Q(ma):"";if(ta)switch(ta){case Re:return Te;case Le:return de;case Ce:return ye;case Ne:return De;case na:return we}return je}),F.exports=ve},7801:function(F){function g(x,R){return x==null?void 0:x[R]}F.exports=g},1789:function(F,g,x){var R=x(4536);function $(){this.__data__=R?R(null):{},this.size=0}F.exports=$},401:function(F){function g(x){var R=this.has(x)&&delete this.__data__[x];return this.size-=R?1:0,R}F.exports=g},7667:function(F,g,x){var R=x(4536),$="__lodash_hash_undefined__",I=Object.prototype,B=I.hasOwnProperty;function W(G){var Q=this.__data__;if(R){var de=Q[G];return de===$?void 0:de}return B.call(Q,G)?Q[G]:void 0}F.exports=W},1327:function(F,g,x){var R=x(4536),$=Object.prototype,I=$.hasOwnProperty;function B(W){var G=this.__data__;return R?G[W]!==void 0:I.call(G,W)}F.exports=B},1866:function(F,g,x){var R=x(4536),$="__lodash_hash_undefined__";function I(B,W){var G=this.__data__;return this.size+=this.has(B)?0:1,G[B]=R&&W===void 0?$:W,this}F.exports=I},5776:function(F){var g=9007199254740991,x=/^(?:0|[1-9]\d*)$/;function R($,I){var B=typeof $;return I=I==null?g:I,!!I&&(B=="number"||B!="symbol"&&x.test($))&&$>-1&&$%1==0&&$-1}F.exports=$},4705:function(F,g,x){var R=x(8470);function $(I,B){var W=this.__data__,G=R(W,I);return G<0?(++this.size,W.push([I,B])):W[G][1]=B,this}F.exports=$},4785:function(F,g,x){var R=x(1989),$=x(8407),I=x(7071);function B(){this.size=0,this.__data__={hash:new R,map:new(I||$),string:new R}}F.exports=B},1285:function(F,g,x){var R=x(5050);function $(I){var B=R(this,I).delete(I);return this.size-=B?1:0,B}F.exports=$},6e3:function(F,g,x){var R=x(5050);function $(I){return R(this,I).get(I)}F.exports=$},9916:function(F,g,x){var R=x(5050);function $(I){return R(this,I).has(I)}F.exports=$},5265:function(F,g,x){var R=x(5050);function $(I,B){var W=R(this,I),G=W.size;return W.set(I,B),this.size+=W.size==G?0:1,this}F.exports=$},8776:function(F){function g(x){var R=-1,$=Array(x.size);return x.forEach(function(I,B){$[++R]=[B,I]}),$}F.exports=g},4536:function(F,g,x){var R=x(852),$=R(Object,"create");F.exports=$},6916:function(F,g,x){var R=x(5569),$=R(Object.keys,Object);F.exports=$},1167:function(F,g,x){F=x.nmd(F);var R=x(1957),$=g&&!g.nodeType&&g,I=$&&!0&&F&&!F.nodeType&&F,B=I&&I.exports===$,W=B&&R.process,G=function(){try{var Q=I&&I.require&&I.require("util").types;return Q||W&&W.binding&&W.binding("util")}catch(de){}}();F.exports=G},2333:function(F){var g=Object.prototype,x=g.toString;function R($){return x.call($)}F.exports=R},5569:function(F){function g(x,R){return function($){return x(R($))}}F.exports=g},5639:function(F,g,x){var R=x(1957),$=typeof self=="object"&&self&&self.Object===Object&&self,I=R||$||Function("return this")();F.exports=I},619:function(F){var g="__lodash_hash_undefined__";function x(R){return this.__data__.set(R,g),this}F.exports=x},2385:function(F){function g(x){return this.__data__.has(x)}F.exports=g},1814:function(F){function g(x){var R=-1,$=Array(x.size);return x.forEach(function(I){$[++R]=I}),$}F.exports=g},7465:function(F,g,x){var R=x(8407);function $(){this.__data__=new R,this.size=0}F.exports=$},3779:function(F){function g(x){var R=this.__data__,$=R.delete(x);return this.size=R.size,$}F.exports=g},7599:function(F){function g(x){return this.__data__.get(x)}F.exports=g},4758:function(F){function g(x){return this.__data__.has(x)}F.exports=g},4309:function(F,g,x){var R=x(8407),$=x(7071),I=x(3369),B=200;function W(G,Q){var de=this.__data__;if(de instanceof R){var Oe=de.__data__;if(!$||Oe.length"']/g,B=RegExp(I.source);function W(G){return G=$(G),G&&B.test(G)?G.replace(I,R):G}F.exports=W},3522:function(F,g,x){var R=x(9833),$=/[\\^$.*+?()[\]{}|]/g,I=RegExp($.source);function B(W){return W=R(W),W&&I.test(W)?W.replace($,"\\$&"):W}F.exports=B},5694:function(F,g,x){var R=x(9454),$=x(7005),I=Object.prototype,B=I.hasOwnProperty,W=I.propertyIsEnumerable,G=R(function(){return arguments}())?R:function(Q){return $(Q)&&B.call(Q,"callee")&&!W.call(Q,"callee")};F.exports=G},1469:function(F){var g=Array.isArray;F.exports=g},8612:function(F,g,x){var R=x(3560),$=x(1780);function I(B){return B!=null&&$(B.length)&&!R(B)}F.exports=I},4144:function(F,g,x){F=x.nmd(F);var R=x(5639),$=x(5062),I=g&&!g.nodeType&&g,B=I&&!0&&F&&!F.nodeType&&F,W=B&&B.exports===I,G=W?R.Buffer:void 0,Q=G?G.isBuffer:void 0,de=Q||$;F.exports=de},8446:function(F,g,x){var R=x(939);function $(I,B){return R(I,B)}F.exports=$},3560:function(F,g,x){var R=x(4239),$=x(3218),I="[object AsyncFunction]",B="[object Function]",W="[object GeneratorFunction]",G="[object Proxy]";function Q(de){if(!$(de))return!1;var Oe=R(de);return Oe==B||Oe==W||Oe==I||Oe==G}F.exports=Q},1780:function(F){var g=9007199254740991;function x(R){return typeof R=="number"&&R>-1&&R%1==0&&R<=g}F.exports=x},3218:function(F){function g(x){var R=typeof x;return x!=null&&(R=="object"||R=="function")}F.exports=g},7005:function(F){function g(x){return x!=null&&typeof x=="object"}F.exports=g},3448:function(F,g,x){var R=x(4239),$=x(7005),I="[object Symbol]";function B(W){return typeof W=="symbol"||$(W)&&R(W)==I}F.exports=B},6719:function(F,g,x){var R=x(8749),$=x(1717),I=x(1167),B=I&&I.isTypedArray,W=B?$(B):R;F.exports=W},3674:function(F,g,x){var R=x(4636),$=x(280),I=x(8612);function B(W){return I(W)?R(W):$(W)}F.exports=B},308:function(F){function g(){}F.exports=g},479:function(F){function g(){return[]}F.exports=g},5062:function(F){function g(){return!1}F.exports=g},9833:function(F,g,x){var R=x(531);function $(I){return I==null?"":R(I)}F.exports=$},4908:function(F,g,x){var R=x(5652);function $(I){return I&&I.length?R(I):[]}F.exports=$},4155:function(F){var g=F.exports={},x,R;function $(){throw new Error("setTimeout has not been defined")}function I(){throw new Error("clearTimeout has not been defined")}(function(){try{typeof setTimeout=="function"?x=setTimeout:x=$}catch(Re){x=$}try{typeof clearTimeout=="function"?R=clearTimeout:R=I}catch(Re){R=I}})();function B(Re){if(x===setTimeout)return setTimeout(Re,0);if((x===$||!x)&&setTimeout)return x=setTimeout,setTimeout(Re,0);try{return x(Re,0)}catch(Le){try{return x.call(null,Re,0)}catch(Ce){return x.call(this,Re,0)}}}function W(Re){if(R===clearTimeout)return clearTimeout(Re);if((R===I||!R)&&clearTimeout)return R=clearTimeout,clearTimeout(Re);try{return R(Re)}catch(Le){try{return R.call(null,Re)}catch(Ce){return R.call(this,Re)}}}var G=[],Q=!1,de,Oe=-1;function ye(){!Q||!de||(Q=!1,de.length?G=de.concat(G):Oe=-1,G.length&&De())}function De(){if(!Q){var Re=B(ye);Q=!0;for(var Le=G.length;Le;){for(de=G,G=[];++Oe1)for(var Ce=1;Ceu}return!1}function Ce(t,u,m,p,j,C,U){this.acceptsBooleans=u===2||u===3||u===4,this.attributeName=p,this.attributeNamespace=j,this.mustUseProperty=m,this.propertyName=t,this.type=u,this.sanitizeURL=C,this.removeEmptyString=U}var Ne={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(t){Ne[t]=new Ce(t,0,!1,t,null,!1,!1)}),[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(t){var u=t[0];Ne[u]=new Ce(u,1,!1,t[1],null,!1,!1)}),["contentEditable","draggable","spellCheck","value"].forEach(function(t){Ne[t]=new Ce(t,2,!1,t.toLowerCase(),null,!1,!1)}),["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(t){Ne[t]=new Ce(t,2,!1,t,null,!1,!1)}),"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach(function(t){Ne[t]=new Ce(t,3,!1,t.toLowerCase(),null,!1,!1)}),["checked","multiple","muted","selected"].forEach(function(t){Ne[t]=new Ce(t,3,!0,t,null,!1,!1)}),["capture","download"].forEach(function(t){Ne[t]=new Ce(t,4,!1,t,null,!1,!1)}),["cols","rows","size","span"].forEach(function(t){Ne[t]=new Ce(t,6,!1,t,null,!1,!1)}),["rowSpan","start"].forEach(function(t){Ne[t]=new Ce(t,5,!1,t.toLowerCase(),null,!1,!1)});var na=/[\-:]([a-z])/g;function ve(t){return t[1].toUpperCase()}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach(function(t){var u=t.replace(na,ve);Ne[u]=new Ce(u,1,!1,t,null,!1,!1)}),"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(t){var u=t.replace(na,ve);Ne[u]=new Ce(u,1,!1,t,"http://www.w3.org/1999/xlink",!1,!1)}),["xml:base","xml:lang","xml:space"].forEach(function(t){var u=t.replace(na,ve);Ne[u]=new Ce(u,1,!1,t,"http://www.w3.org/XML/1998/namespace",!1,!1)}),["tabIndex","crossOrigin"].forEach(function(t){Ne[t]=new Ce(t,1,!1,t.toLowerCase(),null,!1,!1)}),Ne.xlinkHref=new Ce("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1),["src","href","action","formAction"].forEach(function(t){Ne[t]=new Ce(t,1,!1,t.toLowerCase(),null,!0,!0)});function Ye(t,u,m,p){var j=Ne.hasOwnProperty(u)?Ne[u]:null;(j!==null?j.type!==0:p||!(2cn in rn?SD(rn,cn,{enumerable:!0,configurable:!0,writable:!0,value:ha}):rn[cn]=ha,bn=(rn,cn)=>{for(var ha in cn||(cn={}))c0.call(cn,ha)&&l0(rn,ha,cn[ha]);if(wg)for(var ha of wg(cn))m0.call(cn,ha)&&l0(rn,ha,cn[ha]);return rn},nf=(rn,cn)=>PD(rn,ED(cn));var of=(rn,cn)=>{var ha={};for(var zr in rn)c0.call(rn,zr)&&cn.indexOf(zr)<0&&(ha[zr]=rn[zr]);if(rn!=null&&wg)for(var zr of wg(rn))cn.indexOf(zr)<0&&m0.call(rn,zr)&&(ha[zr]=rn[zr]);return ha};(function(){var rn={4184:function(F,g){var x,R;(function(){"use strict";var $={}.hasOwnProperty,I="[native code]";function V(){for(var W=[],G=0;G-1}F.exports=$},1196:function(F){function g(x,R,$){for(var I=-1,V=x==null?0:x.length;++I=Q){var na=ye?null:W(Oe);if(na)return G(na);Le=!1,Te=V,Ne=new R}else Ne=ye?[]:Ce;e:for(;++weRe))return!1;var Ce=we.get(Q),Ne=we.get(de);if(Ce&&Ne)return Ce==de&&Ne==Q;var na=-1,ve=!0,Ye=Oe&W?new R:void 0;for(we.set(Q,de),we.set(de,Q);++na":">",'"':""","'":"'"},I=R($);F.exports=I},1957:function(F,g,x){var R=typeof x.g=="object"&&x.g&&x.g.Object===Object&&x.g;F.exports=R},8234:function(F,g,x){var R=x(8866),$=x(9551),I=x(3674);function V(W){return R(W,I,$)}F.exports=V},5050:function(F,g,x){var R=x(7019);function $(I,V){var W=I.__data__;return R(V)?W[typeof V=="string"?"string":"hash"]:W.map}F.exports=$},852:function(F,g,x){var R=x(8458),$=x(7801);function I(V,W){var G=$(V,W);return R(G)?G:void 0}F.exports=I},9607:function(F,g,x){var R=x(2705),$=Object.prototype,I=$.hasOwnProperty,V=$.toString,W=R?R.toStringTag:void 0;function G(Q){var de=I.call(Q,W),Oe=Q[W];try{Q[W]=void 0;var ye=!0}catch(we){}var De=V.call(Q);return ye&&(de?Q[W]=Oe:delete Q[W]),De}F.exports=G},9551:function(F,g,x){var R=x(4963),$=x(479),I=Object.prototype,V=I.propertyIsEnumerable,W=Object.getOwnPropertySymbols,G=W?function(Q){return Q==null?[]:(Q=Object(Q),R(W(Q),function(de){return V.call(Q,de)}))}:$;F.exports=G},4160:function(F,g,x){var R=x(8552),$=x(7071),I=x(3818),V=x(8525),W=x(577),G=x(4239),Q=x(346),de="[object Map]",Oe="[object Object]",ye="[object Promise]",De="[object Set]",we="[object WeakMap]",Te="[object DataView]",Re=Q(R),Le=Q($),Ce=Q(I),Ne=Q(V),na=Q(W),ve=G;(R&&ve(new R(new ArrayBuffer(1)))!=Te||$&&ve(new $)!=de||I&&ve(I.resolve())!=ye||V&&ve(new V)!=De||W&&ve(new W)!=we)&&(ve=function(Ye){var je=G(Ye),ma=je==Oe?Ye.constructor:void 0,ta=ma?Q(ma):"";if(ta)switch(ta){case Re:return Te;case Le:return de;case Ce:return ye;case Ne:return De;case na:return we}return je}),F.exports=ve},7801:function(F){function g(x,R){return x==null?void 0:x[R]}F.exports=g},1789:function(F,g,x){var R=x(4536);function $(){this.__data__=R?R(null):{},this.size=0}F.exports=$},401:function(F){function g(x){var R=this.has(x)&&delete this.__data__[x];return this.size-=R?1:0,R}F.exports=g},7667:function(F,g,x){var R=x(4536),$="__lodash_hash_undefined__",I=Object.prototype,V=I.hasOwnProperty;function W(G){var Q=this.__data__;if(R){var de=Q[G];return de===$?void 0:de}return V.call(Q,G)?Q[G]:void 0}F.exports=W},1327:function(F,g,x){var R=x(4536),$=Object.prototype,I=$.hasOwnProperty;function V(W){var G=this.__data__;return R?G[W]!==void 0:I.call(G,W)}F.exports=V},1866:function(F,g,x){var R=x(4536),$="__lodash_hash_undefined__";function I(V,W){var G=this.__data__;return this.size+=this.has(V)?0:1,G[V]=R&&W===void 0?$:W,this}F.exports=I},5776:function(F){var g=9007199254740991,x=/^(?:0|[1-9]\d*)$/;function R($,I){var V=typeof $;return I=I==null?g:I,!!I&&(V=="number"||V!="symbol"&&x.test($))&&$>-1&&$%1==0&&$-1}F.exports=$},4705:function(F,g,x){var R=x(8470);function $(I,V){var W=this.__data__,G=R(W,I);return G<0?(++this.size,W.push([I,V])):W[G][1]=V,this}F.exports=$},4785:function(F,g,x){var R=x(1989),$=x(8407),I=x(7071);function V(){this.size=0,this.__data__={hash:new R,map:new(I||$),string:new R}}F.exports=V},1285:function(F,g,x){var R=x(5050);function $(I){var V=R(this,I).delete(I);return this.size-=V?1:0,V}F.exports=$},6e3:function(F,g,x){var R=x(5050);function $(I){return R(this,I).get(I)}F.exports=$},9916:function(F,g,x){var R=x(5050);function $(I){return R(this,I).has(I)}F.exports=$},5265:function(F,g,x){var R=x(5050);function $(I,V){var W=R(this,I),G=W.size;return W.set(I,V),this.size+=W.size==G?0:1,this}F.exports=$},8776:function(F){function g(x){var R=-1,$=Array(x.size);return x.forEach(function(I,V){$[++R]=[V,I]}),$}F.exports=g},4536:function(F,g,x){var R=x(852),$=R(Object,"create");F.exports=$},6916:function(F,g,x){var R=x(5569),$=R(Object.keys,Object);F.exports=$},1167:function(F,g,x){F=x.nmd(F);var R=x(1957),$=g&&!g.nodeType&&g,I=$&&!0&&F&&!F.nodeType&&F,V=I&&I.exports===$,W=V&&R.process,G=function(){try{var Q=I&&I.require&&I.require("util").types;return Q||W&&W.binding&&W.binding("util")}catch(de){}}();F.exports=G},2333:function(F){var g=Object.prototype,x=g.toString;function R($){return x.call($)}F.exports=R},5569:function(F){function g(x,R){return function($){return x(R($))}}F.exports=g},5639:function(F,g,x){var R=x(1957),$=typeof self=="object"&&self&&self.Object===Object&&self,I=R||$||Function("return this")();F.exports=I},619:function(F){var g="__lodash_hash_undefined__";function x(R){return this.__data__.set(R,g),this}F.exports=x},2385:function(F){function g(x){return this.__data__.has(x)}F.exports=g},1814:function(F){function g(x){var R=-1,$=Array(x.size);return x.forEach(function(I){$[++R]=I}),$}F.exports=g},7465:function(F,g,x){var R=x(8407);function $(){this.__data__=new R,this.size=0}F.exports=$},3779:function(F){function g(x){var R=this.__data__,$=R.delete(x);return this.size=R.size,$}F.exports=g},7599:function(F){function g(x){return this.__data__.get(x)}F.exports=g},4758:function(F){function g(x){return this.__data__.has(x)}F.exports=g},4309:function(F,g,x){var R=x(8407),$=x(7071),I=x(3369),V=200;function W(G,Q){var de=this.__data__;if(de instanceof R){var Oe=de.__data__;if(!$||Oe.length"']/g,V=RegExp(I.source);function W(G){return G=$(G),G&&V.test(G)?G.replace(I,R):G}F.exports=W},3522:function(F,g,x){var R=x(9833),$=/[\\^$.*+?()[\]{}|]/g,I=RegExp($.source);function V(W){return W=R(W),W&&I.test(W)?W.replace($,"\\$&"):W}F.exports=V},5694:function(F,g,x){var R=x(9454),$=x(7005),I=Object.prototype,V=I.hasOwnProperty,W=I.propertyIsEnumerable,G=R(function(){return arguments}())?R:function(Q){return $(Q)&&V.call(Q,"callee")&&!W.call(Q,"callee")};F.exports=G},1469:function(F){var g=Array.isArray;F.exports=g},8612:function(F,g,x){var R=x(3560),$=x(1780);function I(V){return V!=null&&$(V.length)&&!R(V)}F.exports=I},4144:function(F,g,x){F=x.nmd(F);var R=x(5639),$=x(5062),I=g&&!g.nodeType&&g,V=I&&!0&&F&&!F.nodeType&&F,W=V&&V.exports===I,G=W?R.Buffer:void 0,Q=G?G.isBuffer:void 0,de=Q||$;F.exports=de},8446:function(F,g,x){var R=x(939);function $(I,V){return R(I,V)}F.exports=$},3560:function(F,g,x){var R=x(4239),$=x(3218),I="[object AsyncFunction]",V="[object Function]",W="[object GeneratorFunction]",G="[object Proxy]";function Q(de){if(!$(de))return!1;var Oe=R(de);return Oe==V||Oe==W||Oe==I||Oe==G}F.exports=Q},1780:function(F){var g=9007199254740991;function x(R){return typeof R=="number"&&R>-1&&R%1==0&&R<=g}F.exports=x},3218:function(F){function g(x){var R=typeof x;return x!=null&&(R=="object"||R=="function")}F.exports=g},7005:function(F){function g(x){return x!=null&&typeof x=="object"}F.exports=g},3448:function(F,g,x){var R=x(4239),$=x(7005),I="[object Symbol]";function V(W){return typeof W=="symbol"||$(W)&&R(W)==I}F.exports=V},6719:function(F,g,x){var R=x(8749),$=x(1717),I=x(1167),V=I&&I.isTypedArray,W=V?$(V):R;F.exports=W},3674:function(F,g,x){var R=x(4636),$=x(280),I=x(8612);function V(W){return I(W)?R(W):$(W)}F.exports=V},308:function(F){function g(){}F.exports=g},479:function(F){function g(){return[]}F.exports=g},5062:function(F){function g(){return!1}F.exports=g},9833:function(F,g,x){var R=x(531);function $(I){return I==null?"":R(I)}F.exports=$},4908:function(F,g,x){var R=x(5652);function $(I){return I&&I.length?R(I):[]}F.exports=$},4155:function(F){var g=F.exports={},x,R;function $(){throw new Error("setTimeout has not been defined")}function I(){throw new Error("clearTimeout has not been defined")}(function(){try{typeof setTimeout=="function"?x=setTimeout:x=$}catch(Re){x=$}try{typeof clearTimeout=="function"?R=clearTimeout:R=I}catch(Re){R=I}})();function V(Re){if(x===setTimeout)return setTimeout(Re,0);if((x===$||!x)&&setTimeout)return x=setTimeout,setTimeout(Re,0);try{return x(Re,0)}catch(Le){try{return x.call(null,Re,0)}catch(Ce){return x.call(this,Re,0)}}}function W(Re){if(R===clearTimeout)return clearTimeout(Re);if((R===I||!R)&&clearTimeout)return R=clearTimeout,clearTimeout(Re);try{return R(Re)}catch(Le){try{return R.call(null,Re)}catch(Ce){return R.call(this,Re)}}}var G=[],Q=!1,de,Oe=-1;function ye(){!Q||!de||(Q=!1,de.length?G=de.concat(G):Oe=-1,G.length&&De())}function De(){if(!Q){var Re=V(ye);Q=!0;for(var Le=G.length;Le;){for(de=G,G=[];++Oe1)for(var Ce=1;Ceu}return!1}function Ce(t,u,m,p,j,C,U){this.acceptsBooleans=u===2||u===3||u===4,this.attributeName=p,this.attributeNamespace=j,this.mustUseProperty=m,this.propertyName=t,this.type=u,this.sanitizeURL=C,this.removeEmptyString=U}var Ne={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(t){Ne[t]=new Ce(t,0,!1,t,null,!1,!1)}),[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(t){var u=t[0];Ne[u]=new Ce(u,1,!1,t[1],null,!1,!1)}),["contentEditable","draggable","spellCheck","value"].forEach(function(t){Ne[t]=new Ce(t,2,!1,t.toLowerCase(),null,!1,!1)}),["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(t){Ne[t]=new Ce(t,2,!1,t,null,!1,!1)}),"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach(function(t){Ne[t]=new Ce(t,3,!1,t.toLowerCase(),null,!1,!1)}),["checked","multiple","muted","selected"].forEach(function(t){Ne[t]=new Ce(t,3,!0,t,null,!1,!1)}),["capture","download"].forEach(function(t){Ne[t]=new Ce(t,4,!1,t,null,!1,!1)}),["cols","rows","size","span"].forEach(function(t){Ne[t]=new Ce(t,6,!1,t,null,!1,!1)}),["rowSpan","start"].forEach(function(t){Ne[t]=new Ce(t,5,!1,t.toLowerCase(),null,!1,!1)});var na=/[\-:]([a-z])/g;function ve(t){return t[1].toUpperCase()}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach(function(t){var u=t.replace(na,ve);Ne[u]=new Ce(u,1,!1,t,null,!1,!1)}),"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(t){var u=t.replace(na,ve);Ne[u]=new Ce(u,1,!1,t,"http://www.w3.org/1999/xlink",!1,!1)}),["xml:base","xml:lang","xml:space"].forEach(function(t){var u=t.replace(na,ve);Ne[u]=new Ce(u,1,!1,t,"http://www.w3.org/XML/1998/namespace",!1,!1)}),["tabIndex","crossOrigin"].forEach(function(t){Ne[t]=new Ce(t,1,!1,t.toLowerCase(),null,!1,!1)}),Ne.xlinkHref=new Ce("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1),["src","href","action","formAction"].forEach(function(t){Ne[t]=new Ce(t,1,!1,t.toLowerCase(),null,!0,!0)});function Ye(t,u,m,p){var j=Ne.hasOwnProperty(u)?Ne[u]:null;(j!==null?j.type!==0:p||!(2oe||j[U]!==C[oe]){var me=` -`+j[U].replace(" at new "," at ");return t.displayName&&me.includes("")&&(me=me.replace("",t.displayName)),me}while(1<=U&&0<=oe);break}}}finally{pe=!1,Error.prepareStackTrace=m}return(t=t?t.displayName||t.name:"")?X(t):""}function xe(t){switch(t.tag){case 5:return X(t.type);case 16:return X("Lazy");case 13:return X("Suspense");case 19:return X("SuspenseList");case 0:case 2:case 15:return t=ge(t.type,!1),t;case 11:return t=ge(t.type.render,!1),t;case 1:return t=ge(t.type,!0),t;default:return""}}function Ue(t){if(t==null)return null;if(typeof t=="function")return t.displayName||t.name||null;if(typeof t=="string")return t;switch(t){case sa:return"Fragment";case ta:return"Portal";case za:return"Profiler";case oa:return"StrictMode";case Fe:return"Suspense";case We:return"SuspenseList"}if(typeof t=="object")switch(t.$$typeof){case _e:return(t.displayName||"Context")+".Consumer";case Xa:return(t._context.displayName||"Context")+".Provider";case Me:var u=t.render;return t=t.displayName,t||(t=u.displayName||u.name||"",t=t!==""?"ForwardRef("+t+")":"ForwardRef"),t;case q:return u=t.displayName||null,u!==null?u:Ue(t.type)||"Memo";case Y:u=t._payload,t=t._init;try{return Ue(t(u))}catch(m){}}return null}function Ke(t){var u=t.type;switch(t.tag){case 24:return"Cache";case 9:return(u.displayName||"Context")+".Consumer";case 10:return(u._context.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return t=u.render,t=t.displayName||t.name||"",u.displayName||(t!==""?"ForwardRef("+t+")":"ForwardRef");case 7:return"Fragment";case 5:return u;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return Ue(u);case 8:return u===oa?"StrictMode":"Mode";case 22:return"Offscreen";case 12:return"Profiler";case 21:return"Scope";case 13:return"Suspense";case 19:return"SuspenseList";case 25:return"TracingMarker";case 1:case 0:case 17:case 2:case 14:case 15:if(typeof u=="function")return u.displayName||u.name||null;if(typeof u=="string")return u}return null}function Be(t){switch(typeof t){case"boolean":case"number":case"string":case"undefined":return t;case"object":return t;default:return""}}function ba(t){var u=t.type;return(t=t.nodeName)&&t.toLowerCase()==="input"&&(u==="checkbox"||u==="radio")}function ti(t){var u=ba(t)?"checked":"value",m=Object.getOwnPropertyDescriptor(t.constructor.prototype,u),p=""+t[u];if(!t.hasOwnProperty(u)&&typeof m!="undefined"&&typeof m.get=="function"&&typeof m.set=="function"){var j=m.get,C=m.set;return Object.defineProperty(t,u,{configurable:!0,get:function(){return j.call(this)},set:function(U){p=""+U,C.call(this,U)}}),Object.defineProperty(t,u,{enumerable:m.enumerable}),{getValue:function(){return p},setValue:function(U){p=""+U},stopTracking:function(){t._valueTracker=null,delete t[u]}}}}function Va(t){t._valueTracker||(t._valueTracker=ti(t))}function Ya(t){if(!t)return!1;var u=t._valueTracker;if(!u)return!0;var m=u.getValue(),p="";return t&&(p=ba(t)?t.checked?"true":"false":t.value),t=p,t!==m?(u.setValue(t),!0):!1}function ci(t){if(t=t||(typeof document!="undefined"?document:void 0),typeof t=="undefined")return null;try{return t.activeElement||t.body}catch(u){return t.body}}function Bi(t,u){var m=u.checked;return Z({},u,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:m!=null?m:t._wrapperState.initialChecked})}function Ui(t,u){var m=u.defaultValue==null?"":u.defaultValue,p=u.checked!=null?u.checked:u.defaultChecked;m=Be(u.value!=null?u.value:m),t._wrapperState={initialChecked:p,initialValue:m,controlled:u.type==="checkbox"||u.type==="radio"?u.checked!=null:u.value!=null}}function En(t,u){u=u.checked,u!=null&&Ye(t,"checked",u,!1)}function ko(t,u){En(t,u);var m=Be(u.value),p=u.type;if(m!=null)p==="number"?(m===0&&t.value===""||t.value!=m)&&(t.value=""+m):t.value!==""+m&&(t.value=""+m);else if(p==="submit"||p==="reset"){t.removeAttribute("value");return}u.hasOwnProperty("value")?po(t,u.type,m):u.hasOwnProperty("defaultValue")&&po(t,u.type,Be(u.defaultValue)),u.checked==null&&u.defaultChecked!=null&&(t.defaultChecked=!!u.defaultChecked)}function Mn(t,u,m){if(u.hasOwnProperty("value")||u.hasOwnProperty("defaultValue")){var p=u.type;if(!(p!=="submit"&&p!=="reset"||u.value!==void 0&&u.value!==null))return;u=""+t._wrapperState.initialValue,m||u===t.value||(t.value=u),t.defaultValue=u}m=t.name,m!==""&&(t.name=""),t.defaultChecked=!!t._wrapperState.initialChecked,m!==""&&(t.name=m)}function po(t,u,m){(u!=="number"||ci(t.ownerDocument)!==t)&&(m==null?t.defaultValue=""+t._wrapperState.initialValue:t.defaultValue!==""+m&&(t.defaultValue=""+m))}var Fn=Array.isArray;function Jn(t,u,m,p){if(t=t.options,u){u={};for(var j=0;j"+u.valueOf().toString()+"",u=ni.firstChild;t.firstChild;)t.removeChild(t.firstChild);for(;u.firstChild;)t.appendChild(u.firstChild)}});function nr(t,u){if(u){var m=t.firstChild;if(m&&m===t.lastChild&&m.nodeType===3){m.nodeValue=u;return}}t.textContent=u}var or={animationIterationCount:!0,aspectRatio:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},_c=["Webkit","ms","Moz","O"];Object.keys(or).forEach(function(t){_c.forEach(function(u){u=u+t.charAt(0).toUpperCase()+t.substring(1),or[u]=or[t]})});function sc(t,u,m){return u==null||typeof u=="boolean"||u===""?"":m||typeof u!="number"||u===0||or.hasOwnProperty(t)&&or[t]?(""+u).trim():u+"px"}function Ou(t,u){t=t.style;for(var m in u)if(u.hasOwnProperty(m)){var p=m.indexOf("--")===0,j=sc(m,u[m],p);m==="float"&&(m="cssFloat"),p?t.setProperty(m,j):t[m]=j}}var i_=Z({menuitem:!0},{area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0});function n_(t,u){if(u){if(i_[t]&&(u.children!=null||u.dangerouslySetInnerHTML!=null))throw Error(I(137,t));if(u.dangerouslySetInnerHTML!=null){if(u.children!=null)throw Error(I(60));if(typeof u.dangerouslySetInnerHTML!="object"||!("__html"in u.dangerouslySetInnerHTML))throw Error(I(61))}if(u.style!=null&&typeof u.style!="object")throw Error(I(62))}}function Iu(t,u){if(t.indexOf("-")===-1)return typeof u.is=="string";switch(t){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var Du=null;function cs(t){return t=t.target||t.srcElement||window,t.correspondingUseElement&&(t=t.correspondingUseElement),t.nodeType===3?t.parentNode:t}var ct=null,Cr=null,mt=null;function uc(t){if(t=ol(t)){if(typeof ct!="function")throw Error(I(280));var u=t.stateNode;u&&(u=Mc(u),ct(t.stateNode,t.type,u))}}function Mo(t){Cr?mt?mt.push(t):mt=[t]:Cr=t}function ms(){if(Cr){var t=Cr,u=mt;if(mt=Cr=null,uc(t),u)for(t=0;t>>=0,t===0?32:31-(Km(t)/Qm|0)|0}var u_=64,dt=4194304;function Pr(t){switch(t&-t){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return t&4194240;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return t&130023424;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return t}}function Er(t,u){var m=t.pendingLanes;if(m===0)return 0;var p=0,j=t.suspendedLanes,C=t.pingedLanes,U=m&268435455;if(U!==0){var oe=U&~j;oe!==0?p=Pr(oe):(C&=U,C!==0&&(p=Pr(C)))}else U=m&~j,U!==0?p=Pr(U):C!==0&&(p=Pr(C));if(p===0)return 0;if(u!==0&&u!==p&&!(u&j)&&(j=p&-p,C=u&-u,j>=C||j===16&&(C&4194240)!==0))return u;if(p&4&&(p|=m&16),u=t.entangledLanes,u!==0)for(t=t.entanglements,u&=p;0m;m++)u.push(t);return u}function gt(t,u,m){t.pendingLanes|=u,u!==536870912&&(t.suspendedLanes=0,t.pingedLanes=0),t=t.eventTimes,u=31-On(u),t[u]=m}function Jm(t,u){var m=t.pendingLanes&~u;t.pendingLanes=u,t.suspendedLanes=0,t.pingedLanes=0,t.expiredLanes&=u,t.mutableReadLanes&=u,t.entangledLanes&=u,u=t.entanglements;var p=t.eventTimes;for(t=t.expirationTimes;0=qu),oh=String.fromCharCode(32),rh=!1;function Ig(t,u){switch(t){case"keyup":return Eg.indexOf(u.keyCode)!==-1;case"keydown":return u.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function Dg(t){return t=t.detail,typeof t=="object"&&"data"in t?t.data:null}var Os=!1;function _f(t,u){switch(t){case"compositionend":return Dg(u);case"keypress":return u.which!==32?null:(rh=!0,oh);case"textInput":return t=u.data,t===oh&&rh?null:t;default:return null}}function sf(t,u){if(Os)return t==="compositionend"||!zc&&Ig(t,u)?(t=Ps(),d_=jt=$n=null,Os=!1,t):null;switch(t){case"paste":return null;case"keypress":if(!(u.ctrlKey||u.altKey||u.metaKey)||u.ctrlKey&&u.altKey){if(u.char&&1=u)return{node:m,offset:u-t};t=p}e:{for(;m;){if(m.nextSibling){m=m.nextSibling;break e}m=m.parentNode}m=void 0}m=Qu(m)}}function ch(t,u){return t&&u?t===u?!0:t&&t.nodeType===3?!1:u&&u.nodeType===3?ch(t,u.parentNode):"contains"in t?t.contains(u):t.compareDocumentPosition?!!(t.compareDocumentPosition(u)&16):!1:!1}function Fg(){for(var t=window,u=ci();u instanceof t.HTMLIFrameElement;){try{var m=typeof u.contentWindow.location.href=="string"}catch(p){m=!1}if(m)t=u.contentWindow;else break;u=ci(t.document)}return u}function Ju(t){var u=t&&t.nodeName&&t.nodeName.toLowerCase();return u&&(u==="input"&&(t.type==="text"||t.type==="search"||t.type==="tel"||t.type==="url"||t.type==="password")||u==="textarea"||t.contentEditable==="true")}function Lg(t){var u=Fg(),m=t.focusedElem,p=t.selectionRange;if(u!==m&&m&&m.ownerDocument&&ch(m.ownerDocument.documentElement,m)){if(p!==null&&Ju(m)){if(u=p.start,t=p.end,t===void 0&&(t=u),"selectionStart"in m)m.selectionStart=u,m.selectionEnd=Math.min(t,m.value.length);else if(t=(u=m.ownerDocument||document)&&u.defaultView||window,t.getSelection){t=t.getSelection();var j=m.textContent.length,C=Math.min(p.start,j);p=p.end===void 0?C:Math.min(p.end,j),!t.extend&&C>p&&(j=p,p=C,C=j),j=lh(m,C);var U=lh(m,p);j&&U&&(t.rangeCount!==1||t.anchorNode!==j.node||t.anchorOffset!==j.offset||t.focusNode!==U.node||t.focusOffset!==U.offset)&&(u=u.createRange(),u.setStart(j.node,j.offset),t.removeAllRanges(),C>p?(t.addRange(u),t.extend(U.node,U.offset)):(u.setEnd(U.node,U.offset),t.addRange(u)))}}for(u=[],t=m;t=t.parentNode;)t.nodeType===1&&u.push({element:t,left:t.scrollLeft,top:t.scrollTop});for(typeof m.focus=="function"&&m.focus(),m=0;m=document.documentMode,vn=null,Cc=null,Tr=null,Sc=!1;function mh(t,u,m){var p=m.window===m?m.document:m.nodeType===9?m:m.ownerDocument;Sc||vn==null||vn!==ci(p)||(p=vn,"selectionStart"in p&&Ju(p)?p={start:p.selectionStart,end:p.selectionEnd}:(p=(p.ownerDocument&&p.ownerDocument.defaultView||window).getSelection(),p={anchorNode:p.anchorNode,anchorOffset:p.anchorOffset,focusNode:p.focusNode,focusOffset:p.focusOffset}),Tr&&Dr(Tr,p)||(Tr=p,p=zt(Cc,"onSelect"),0z_||(t.current=Fc[z_],Fc[z_]=null,z_--)}function bi(t,u){z_++,Fc[z_]=t.current,t.current=u}var St={},jn=Ct(St),Wn=Ct(!1),$r=St;function x_(t,u){var m=t.type.contextTypes;if(!m)return St;var p=t.stateNode;if(p&&p.__reactInternalMemoizedUnmaskedChildContext===u)return p.__reactInternalMemoizedMaskedChildContext;var j={},C;for(C in m)j[C]=u[C];return p&&(t=t.stateNode,t.__reactInternalMemoizedUnmaskedChildContext=u,t.__reactInternalMemoizedMaskedChildContext=j),j}function zn(t){return t=t.childContextTypes,t!=null}function rl(){zi(Wn),zi(jn)}function bh(t,u,m){if(jn.current!==St)throw Error(I(168));bi(jn,u),bi(Wn,m)}function vh(t,u,m){var p=t.stateNode;if(u=u.childContextTypes,typeof p.getChildContext!="function")return m;p=p.getChildContext();for(var j in p)if(!(j in u))throw Error(I(108,Ke(t)||"Unknown",j));return Z({},m,p)}function tl(t){return t=(t=t.stateNode)&&t.__reactInternalMemoizedMergedChildContext||St,$r=jn.current,bi(jn,t),bi(Wn,Wn.current),!0}function wh(t,u,m){var p=t.stateNode;if(!p)throw Error(I(169));m?(t=vh(t,u,$r),p.__reactInternalMemoizedMergedChildContext=t,zi(Wn),zi(jn),bi(jn,t)):zi(Wn),bi(Wn,m)}var yo=null,Lc=!1,Uc=!1;function ui(t){yo===null?yo=[t]:yo.push(t)}function Gg(t){Lc=!0,ui(t)}function qo(){if(!Uc&&yo!==null){Uc=!0;var t=0,u=Ka;try{var m=yo;for(Ka=1;t>=U,j-=U,no=1<<32-On(u)+j|m<Wa?(en=Na,Na=null):en=Na.sibling;var ri=Je(Pe,Na,Ee[Wa],_a);if(ri===null){Na===null&&(Na=en);break}t&&Na&&ri.alternate===null&&u(Pe,Na),ke=C(ri,ke,Wa),La===null?Ea=ri:La.sibling=ri,La=ri,Na=en}if(Wa===Ee.length)return m(Pe,Na),vi&&P_(Pe,Wa),Ea;if(Na===null){for(;WaWa?(en=Na,Na=null):en=Na.sibling;var at=Je(Pe,Na,ri.value,_a);if(at===null){Na===null&&(Na=en);break}t&&Na&&at.alternate===null&&u(Pe,Na),ke=C(at,ke,Wa),La===null?Ea=at:La.sibling=at,La=at,Na=en}if(ri.done)return m(Pe,Na),vi&&P_(Pe,Wa),Ea;if(Na===null){for(;!ri.done;Wa++,ri=Ee.next())ri=aa(Pe,ri.value,_a),ri!==null&&(ke=C(ri,ke,Wa),La===null?Ea=ri:La.sibling=ri,La=ri);return vi&&P_(Pe,Wa),Ea}for(Na=p(Pe,Na);!ri.done;Wa++,ri=Ee.next())ri=ga(Na,Pe,Wa,ri.value,_a),ri!==null&&(t&&ri.alternate!==null&&Na.delete(ri.key===null?Wa:ri.key),ke=C(ri,ke,Wa),La===null?Ea=ri:La.sibling=ri,La=ri);return t&&Na.forEach(function(hk){return u(Pe,hk)}),vi&&P_(Pe,Wa),Ea}function Ha(Pe,ke,Ee,_a){if(typeof Ee=="object"&&Ee!==null&&Ee.type===sa&&Ee.key===null&&(Ee=Ee.props.children),typeof Ee=="object"&&Ee!==null){switch(Ee.$$typeof){case ma:e:{for(var Ea=Ee.key,La=ke;La!==null;){if(La.key===Ea){if(Ea=Ee.type,Ea===sa){if(La.tag===7){m(Pe,La.sibling),ke=j(La,Ee.props.children),ke.return=Pe,Pe=ke;break e}}else if(La.elementType===Ea||typeof Ea=="object"&&Ea!==null&&Ea.$$typeof===Y&&Vs(Ea)===La.type){m(Pe,La.sibling),ke=j(La,Ee.props),ke.ref=Hs(Pe,La,Ee),ke.return=Pe,Pe=ke;break e}m(Pe,La);break}else u(Pe,La);La=La.sibling}Ee.type===sa?(ke=Zr(Ee.props.children,Pe.mode,_a,Ee.key),ke.return=Pe,Pe=ke):(_a=Ol(Ee.type,Ee.key,Ee.props,null,Pe.mode,_a),_a.ref=Hs(Pe,ke,Ee),_a.return=Pe,Pe=_a)}return U(Pe);case ta:e:{for(La=Ee.key;ke!==null;){if(ke.key===La)if(ke.tag===4&&ke.stateNode.containerInfo===Ee.containerInfo&&ke.stateNode.implementation===Ee.implementation){m(Pe,ke.sibling),ke=j(ke,Ee.children||[]),ke.return=Pe,Pe=ke;break e}else{m(Pe,ke);break}else u(Pe,ke);ke=ke.sibling}ke=et(Ee,Pe.mode,_a),ke.return=Pe,Pe=ke}return U(Pe);case Y:return La=Ee._init,Ha(Pe,ke,La(Ee._payload),_a)}if(Fn(Ee))return ja(Pe,ke,Ee,_a);if(V(Ee))return Pa(Pe,ke,Ee,_a);Ws(Pe,Ee)}return typeof Ee=="string"&&Ee!==""||typeof Ee=="number"?(Ee=""+Ee,ke!==null&&ke.tag===6?(m(Pe,ke.sibling),ke=j(ke,Ee),ke.return=Pe,Pe=ke):(m(Pe,ke),ke=Pm(Ee,Pe.mode,_a),ke.return=Pe,Pe=ke),U(Pe)):m(Pe,ke)}return Ha}var Dt=Ih(!0),Gc=Ih(!1),T_={},Qi=Ct(T_),Tt=Ct(T_),Ni=Ct(T_);function ur(t){if(t===T_)throw Error(I(174));return t}function Dh(t,u){switch(bi(Ni,u),bi(Tt,t),bi(Qi,T_),t=u.nodeType,t){case 9:case 11:u=(u=u.documentElement)?u.namespaceURI:xr(null,"");break;default:t=t===8?u.parentNode:u,u=t.namespaceURI||null,t=t.tagName,u=xr(u,t)}zi(Qi),bi(Qi,u)}function Bs(){zi(Qi),zi(Tt),zi(Ni)}function Xg(t){ur(Ni.current);var u=ur(Qi.current),m=xr(u,t.type);u!==m&&(bi(Tt,t),bi(Qi,m))}function Th(t){Tt.current===t&&(zi(Qi),zi(Tt))}var Ei=Ct(0);function Xc(t){for(var u=t;u!==null;){if(u.tag===13){var m=u.memoizedState;if(m!==null&&(m=m.dehydrated,m===null||m.data==="$?"||m.data==="$!"))return u}else if(u.tag===19&&u.memoizedProps.revealOrder!==void 0){if(u.flags&128)return u}else if(u.child!==null){u.child.return=u,u=u.child;continue}if(u===t)break;for(;u.sibling===null;){if(u.return===null||u.return===t)return null;u=u.return}u.sibling.return=u.return,u=u.sibling}return null}var Rh=[];function Ah(){for(var t=0;tm?m:4,t(!0);var p=Nh.transition;Nh.transition={};try{t(!1),u()}finally{Ka=m,Nh.transition=p}}function Jg(){return jo().memoizedState}function Zg(t,u,m){var p=Kr(t);if(m={lane:p,action:m,hasEagerState:!1,eagerState:null,next:null},Qs(t))kl(u,m);else if(m=Sh(t,u,m,p),m!==null){var j=Ci();lo(m,t,p,j),im(m,u,p)}}function ek(t,u,m){var p=Kr(t),j={lane:p,action:m,hasEagerState:!1,eagerState:null,next:null};if(Qs(t))kl(u,j);else{var C=t.alternate;if(t.lanes===0&&(C===null||C.lanes===0)&&(C=u.lastRenderedReducer,C!==null))try{var U=u.lastRenderedState,oe=C(U,m);if(j.hasEagerState=!0,j.eagerState=oe,Hn(oe,U)){var me=u.interleaved;me===null?(j.next=j,xn(u)):(j.next=me.next,me.next=j),u.interleaved=j;return}}catch(Ae){}finally{}m=Sh(t,u,j,p),m!==null&&(j=Ci(),lo(m,t,p,j),im(m,u,p))}}function Qs(t){var u=t.alternate;return t===Oi||u!==null&&u===Oi}function kl(t,u){A_=Kc=!0;var m=t.pending;m===null?u.next=u:(u.next=m.next,m.next=u),t.pending=u}function im(t,u,m){if(m&4194240){var p=u.lanes;p&=t.pendingLanes,m|=p,u.lanes=m,$u(t,m)}}var Js={readContext:Bn,useCallback:Cn,useContext:Cn,useEffect:Cn,useImperativeHandle:Cn,useInsertionEffect:Cn,useLayoutEffect:Cn,useMemo:Cn,useReducer:Cn,useRef:Cn,useState:Cn,useDebugValue:Cn,useDeferredValue:Cn,useTransition:Cn,useMutableSource:Cn,useSyncExternalStore:Cn,useId:Cn,unstable_isNewReconciler:!1},Vh={readContext:Bn,useCallback:function(t,u){return wo().memoizedState=[t,u===void 0?null:u],t},useContext:Bn,useEffect:$h,useImperativeHandle:function(t,u,m){return m=m!=null?m.concat([t]):null,dl(4194308,4,lr.bind(null,u,t),m)},useLayoutEffect:function(t,u){return dl(4194308,4,t,u)},useInsertionEffect:function(t,u){return dl(4,2,t,u)},useMemo:function(t,u){var m=wo();return u=u===void 0?null:u,t=t(),m.memoizedState=[t,u],t},useReducer:function(t,u,m){var p=wo();return u=m!==void 0?m(u):u,p.memoizedState=p.baseState=u,t={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:t,lastRenderedState:u},p.queue=t,t=t.dispatch=Zg.bind(null,Oi,t),[p.memoizedState,t]},useRef:function(t){var u=wo();return t={current:t},u.memoizedState=t},useState:hl,useDebugValue:am,useDeferredValue:function(t){return wo().memoizedState=t},useTransition:function(){var t=hl(!1),u=t[0];return t=Qg.bind(null,t[1]),wo().memoizedState=t,[u,t]},useMutableSource:function(){},useSyncExternalStore:function(t,u,m){var p=Oi,j=wo();if(vi){if(m===void 0)throw Error(I(407));m=m()}else{if(m=u(),Zi===null)throw Error(I(349));R_&30||Lh(p,u,m)}j.memoizedState=m;var C={value:m,getSnapshot:u};return j.queue=C,$h(Yg.bind(null,p,C,t),[t]),p.flags|=2048,Ys(9,Uh.bind(null,p,C,m,u),void 0,null),m},useId:function(){var t=wo(),u=Zi.identifierPrefix;if(vi){var m=Hr,p=no;m=(p&~(1<<32-On(p)-1)).toString(32)+m,u=":"+u+"R"+m,m=qs++,0")&&(me=me.replace("",t.displayName)),me}while(1<=U&&0<=oe);break}}}finally{pe=!1,Error.prepareStackTrace=m}return(t=t?t.displayName||t.name:"")?X(t):""}function xe(t){switch(t.tag){case 5:return X(t.type);case 16:return X("Lazy");case 13:return X("Suspense");case 19:return X("SuspenseList");case 0:case 2:case 15:return t=ge(t.type,!1),t;case 11:return t=ge(t.type.render,!1),t;case 1:return t=ge(t.type,!0),t;default:return""}}function Ue(t){if(t==null)return null;if(typeof t=="function")return t.displayName||t.name||null;if(typeof t=="string")return t;switch(t){case sa:return"Fragment";case ta:return"Portal";case za:return"Profiler";case oa:return"StrictMode";case Fe:return"Suspense";case We:return"SuspenseList"}if(typeof t=="object")switch(t.$$typeof){case _e:return(t.displayName||"Context")+".Consumer";case Xa:return(t._context.displayName||"Context")+".Provider";case Me:var u=t.render;return t=t.displayName,t||(t=u.displayName||u.name||"",t=t!==""?"ForwardRef("+t+")":"ForwardRef"),t;case q:return u=t.displayName||null,u!==null?u:Ue(t.type)||"Memo";case Y:u=t._payload,t=t._init;try{return Ue(t(u))}catch(m){}}return null}function Ke(t){var u=t.type;switch(t.tag){case 24:return"Cache";case 9:return(u.displayName||"Context")+".Consumer";case 10:return(u._context.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return t=u.render,t=t.displayName||t.name||"",u.displayName||(t!==""?"ForwardRef("+t+")":"ForwardRef");case 7:return"Fragment";case 5:return u;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return Ue(u);case 8:return u===oa?"StrictMode":"Mode";case 22:return"Offscreen";case 12:return"Profiler";case 21:return"Scope";case 13:return"Suspense";case 19:return"SuspenseList";case 25:return"TracingMarker";case 1:case 0:case 17:case 2:case 14:case 15:if(typeof u=="function")return u.displayName||u.name||null;if(typeof u=="string")return u}return null}function Ve(t){switch(typeof t){case"boolean":case"number":case"string":case"undefined":return t;case"object":return t;default:return""}}function ba(t){var u=t.type;return(t=t.nodeName)&&t.toLowerCase()==="input"&&(u==="checkbox"||u==="radio")}function ti(t){var u=ba(t)?"checked":"value",m=Object.getOwnPropertyDescriptor(t.constructor.prototype,u),p=""+t[u];if(!t.hasOwnProperty(u)&&typeof m!="undefined"&&typeof m.get=="function"&&typeof m.set=="function"){var j=m.get,C=m.set;return Object.defineProperty(t,u,{configurable:!0,get:function(){return j.call(this)},set:function(U){p=""+U,C.call(this,U)}}),Object.defineProperty(t,u,{enumerable:m.enumerable}),{getValue:function(){return p},setValue:function(U){p=""+U},stopTracking:function(){t._valueTracker=null,delete t[u]}}}}function Ba(t){t._valueTracker||(t._valueTracker=ti(t))}function Ya(t){if(!t)return!1;var u=t._valueTracker;if(!u)return!0;var m=u.getValue(),p="";return t&&(p=ba(t)?t.checked?"true":"false":t.value),t=p,t!==m?(u.setValue(t),!0):!1}function ci(t){if(t=t||(typeof document!="undefined"?document:void 0),typeof t=="undefined")return null;try{return t.activeElement||t.body}catch(u){return t.body}}function Vi(t,u){var m=u.checked;return Z({},u,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:m!=null?m:t._wrapperState.initialChecked})}function Ui(t,u){var m=u.defaultValue==null?"":u.defaultValue,p=u.checked!=null?u.checked:u.defaultChecked;m=Ve(u.value!=null?u.value:m),t._wrapperState={initialChecked:p,initialValue:m,controlled:u.type==="checkbox"||u.type==="radio"?u.checked!=null:u.value!=null}}function En(t,u){u=u.checked,u!=null&&Ye(t,"checked",u,!1)}function ko(t,u){En(t,u);var m=Ve(u.value),p=u.type;if(m!=null)p==="number"?(m===0&&t.value===""||t.value!=m)&&(t.value=""+m):t.value!==""+m&&(t.value=""+m);else if(p==="submit"||p==="reset"){t.removeAttribute("value");return}u.hasOwnProperty("value")?po(t,u.type,m):u.hasOwnProperty("defaultValue")&&po(t,u.type,Ve(u.defaultValue)),u.checked==null&&u.defaultChecked!=null&&(t.defaultChecked=!!u.defaultChecked)}function Mn(t,u,m){if(u.hasOwnProperty("value")||u.hasOwnProperty("defaultValue")){var p=u.type;if(!(p!=="submit"&&p!=="reset"||u.value!==void 0&&u.value!==null))return;u=""+t._wrapperState.initialValue,m||u===t.value||(t.value=u),t.defaultValue=u}m=t.name,m!==""&&(t.name=""),t.defaultChecked=!!t._wrapperState.initialChecked,m!==""&&(t.name=m)}function po(t,u,m){(u!=="number"||ci(t.ownerDocument)!==t)&&(m==null?t.defaultValue=""+t._wrapperState.initialValue:t.defaultValue!==""+m&&(t.defaultValue=""+m))}var Fn=Array.isArray;function Jn(t,u,m,p){if(t=t.options,u){u={};for(var j=0;j"+u.valueOf().toString()+"",u=ni.firstChild;t.firstChild;)t.removeChild(t.firstChild);for(;u.firstChild;)t.appendChild(u.firstChild)}});function nr(t,u){if(u){var m=t.firstChild;if(m&&m===t.lastChild&&m.nodeType===3){m.nodeValue=u;return}}t.textContent=u}var or={animationIterationCount:!0,aspectRatio:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},_c=["Webkit","ms","Moz","O"];Object.keys(or).forEach(function(t){_c.forEach(function(u){u=u+t.charAt(0).toUpperCase()+t.substring(1),or[u]=or[t]})});function sc(t,u,m){return u==null||typeof u=="boolean"||u===""?"":m||typeof u!="number"||u===0||or.hasOwnProperty(t)&&or[t]?(""+u).trim():u+"px"}function Ou(t,u){t=t.style;for(var m in u)if(u.hasOwnProperty(m)){var p=m.indexOf("--")===0,j=sc(m,u[m],p);m==="float"&&(m="cssFloat"),p?t.setProperty(m,j):t[m]=j}}var i_=Z({menuitem:!0},{area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0});function n_(t,u){if(u){if(i_[t]&&(u.children!=null||u.dangerouslySetInnerHTML!=null))throw Error(I(137,t));if(u.dangerouslySetInnerHTML!=null){if(u.children!=null)throw Error(I(60));if(typeof u.dangerouslySetInnerHTML!="object"||!("__html"in u.dangerouslySetInnerHTML))throw Error(I(61))}if(u.style!=null&&typeof u.style!="object")throw Error(I(62))}}function Iu(t,u){if(t.indexOf("-")===-1)return typeof u.is=="string";switch(t){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var Du=null;function cs(t){return t=t.target||t.srcElement||window,t.correspondingUseElement&&(t=t.correspondingUseElement),t.nodeType===3?t.parentNode:t}var ct=null,Cr=null,mt=null;function uc(t){if(t=ol(t)){if(typeof ct!="function")throw Error(I(280));var u=t.stateNode;u&&(u=Mc(u),ct(t.stateNode,t.type,u))}}function Mo(t){Cr?mt?mt.push(t):mt=[t]:Cr=t}function ms(){if(Cr){var t=Cr,u=mt;if(mt=Cr=null,uc(t),u)for(t=0;t>>=0,t===0?32:31-(Km(t)/Qm|0)|0}var u_=64,dt=4194304;function Pr(t){switch(t&-t){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return t&4194240;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return t&130023424;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return t}}function Er(t,u){var m=t.pendingLanes;if(m===0)return 0;var p=0,j=t.suspendedLanes,C=t.pingedLanes,U=m&268435455;if(U!==0){var oe=U&~j;oe!==0?p=Pr(oe):(C&=U,C!==0&&(p=Pr(C)))}else U=m&~j,U!==0?p=Pr(U):C!==0&&(p=Pr(C));if(p===0)return 0;if(u!==0&&u!==p&&!(u&j)&&(j=p&-p,C=u&-u,j>=C||j===16&&(C&4194240)!==0))return u;if(p&4&&(p|=m&16),u=t.entangledLanes,u!==0)for(t=t.entanglements,u&=p;0m;m++)u.push(t);return u}function gt(t,u,m){t.pendingLanes|=u,u!==536870912&&(t.suspendedLanes=0,t.pingedLanes=0),t=t.eventTimes,u=31-On(u),t[u]=m}function Jm(t,u){var m=t.pendingLanes&~u;t.pendingLanes=u,t.suspendedLanes=0,t.pingedLanes=0,t.expiredLanes&=u,t.mutableReadLanes&=u,t.entangledLanes&=u,u=t.entanglements;var p=t.eventTimes;for(t=t.expirationTimes;0=qu),oh=String.fromCharCode(32),rh=!1;function Ig(t,u){switch(t){case"keyup":return Eg.indexOf(u.keyCode)!==-1;case"keydown":return u.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function Dg(t){return t=t.detail,typeof t=="object"&&"data"in t?t.data:null}var Os=!1;function _f(t,u){switch(t){case"compositionend":return Dg(u);case"keypress":return u.which!==32?null:(rh=!0,oh);case"textInput":return t=u.data,t===oh&&rh?null:t;default:return null}}function sf(t,u){if(Os)return t==="compositionend"||!zc&&Ig(t,u)?(t=Ps(),d_=jt=$n=null,Os=!1,t):null;switch(t){case"paste":return null;case"keypress":if(!(u.ctrlKey||u.altKey||u.metaKey)||u.ctrlKey&&u.altKey){if(u.char&&1=u)return{node:m,offset:u-t};t=p}e:{for(;m;){if(m.nextSibling){m=m.nextSibling;break e}m=m.parentNode}m=void 0}m=Qu(m)}}function ch(t,u){return t&&u?t===u?!0:t&&t.nodeType===3?!1:u&&u.nodeType===3?ch(t,u.parentNode):"contains"in t?t.contains(u):t.compareDocumentPosition?!!(t.compareDocumentPosition(u)&16):!1:!1}function Fg(){for(var t=window,u=ci();u instanceof t.HTMLIFrameElement;){try{var m=typeof u.contentWindow.location.href=="string"}catch(p){m=!1}if(m)t=u.contentWindow;else break;u=ci(t.document)}return u}function Ju(t){var u=t&&t.nodeName&&t.nodeName.toLowerCase();return u&&(u==="input"&&(t.type==="text"||t.type==="search"||t.type==="tel"||t.type==="url"||t.type==="password")||u==="textarea"||t.contentEditable==="true")}function Lg(t){var u=Fg(),m=t.focusedElem,p=t.selectionRange;if(u!==m&&m&&m.ownerDocument&&ch(m.ownerDocument.documentElement,m)){if(p!==null&&Ju(m)){if(u=p.start,t=p.end,t===void 0&&(t=u),"selectionStart"in m)m.selectionStart=u,m.selectionEnd=Math.min(t,m.value.length);else if(t=(u=m.ownerDocument||document)&&u.defaultView||window,t.getSelection){t=t.getSelection();var j=m.textContent.length,C=Math.min(p.start,j);p=p.end===void 0?C:Math.min(p.end,j),!t.extend&&C>p&&(j=p,p=C,C=j),j=lh(m,C);var U=lh(m,p);j&&U&&(t.rangeCount!==1||t.anchorNode!==j.node||t.anchorOffset!==j.offset||t.focusNode!==U.node||t.focusOffset!==U.offset)&&(u=u.createRange(),u.setStart(j.node,j.offset),t.removeAllRanges(),C>p?(t.addRange(u),t.extend(U.node,U.offset)):(u.setEnd(U.node,U.offset),t.addRange(u)))}}for(u=[],t=m;t=t.parentNode;)t.nodeType===1&&u.push({element:t,left:t.scrollLeft,top:t.scrollTop});for(typeof m.focus=="function"&&m.focus(),m=0;m=document.documentMode,vn=null,Cc=null,Tr=null,Sc=!1;function mh(t,u,m){var p=m.window===m?m.document:m.nodeType===9?m:m.ownerDocument;Sc||vn==null||vn!==ci(p)||(p=vn,"selectionStart"in p&&Ju(p)?p={start:p.selectionStart,end:p.selectionEnd}:(p=(p.ownerDocument&&p.ownerDocument.defaultView||window).getSelection(),p={anchorNode:p.anchorNode,anchorOffset:p.anchorOffset,focusNode:p.focusNode,focusOffset:p.focusOffset}),Tr&&Dr(Tr,p)||(Tr=p,p=zt(Cc,"onSelect"),0z_||(t.current=Fc[z_],Fc[z_]=null,z_--)}function bi(t,u){z_++,Fc[z_]=t.current,t.current=u}var St={},jn=Ct(St),Wn=Ct(!1),$r=St;function x_(t,u){var m=t.type.contextTypes;if(!m)return St;var p=t.stateNode;if(p&&p.__reactInternalMemoizedUnmaskedChildContext===u)return p.__reactInternalMemoizedMaskedChildContext;var j={},C;for(C in m)j[C]=u[C];return p&&(t=t.stateNode,t.__reactInternalMemoizedUnmaskedChildContext=u,t.__reactInternalMemoizedMaskedChildContext=j),j}function zn(t){return t=t.childContextTypes,t!=null}function rl(){zi(Wn),zi(jn)}function bh(t,u,m){if(jn.current!==St)throw Error(I(168));bi(jn,u),bi(Wn,m)}function vh(t,u,m){var p=t.stateNode;if(u=u.childContextTypes,typeof p.getChildContext!="function")return m;p=p.getChildContext();for(var j in p)if(!(j in u))throw Error(I(108,Ke(t)||"Unknown",j));return Z({},m,p)}function tl(t){return t=(t=t.stateNode)&&t.__reactInternalMemoizedMergedChildContext||St,$r=jn.current,bi(jn,t),bi(Wn,Wn.current),!0}function wh(t,u,m){var p=t.stateNode;if(!p)throw Error(I(169));m?(t=vh(t,u,$r),p.__reactInternalMemoizedMergedChildContext=t,zi(Wn),zi(jn),bi(jn,t)):zi(Wn),bi(Wn,m)}var yo=null,Lc=!1,Uc=!1;function ui(t){yo===null?yo=[t]:yo.push(t)}function Gg(t){Lc=!0,ui(t)}function qo(){if(!Uc&&yo!==null){Uc=!0;var t=0,u=Ka;try{var m=yo;for(Ka=1;t>=U,j-=U,no=1<<32-On(u)+j|m<Wa?(en=Na,Na=null):en=Na.sibling;var ri=Je(Pe,Na,Ee[Wa],_a);if(ri===null){Na===null&&(Na=en);break}t&&Na&&ri.alternate===null&&u(Pe,Na),ke=C(ri,ke,Wa),La===null?Ea=ri:La.sibling=ri,La=ri,Na=en}if(Wa===Ee.length)return m(Pe,Na),vi&&P_(Pe,Wa),Ea;if(Na===null){for(;WaWa?(en=Na,Na=null):en=Na.sibling;var at=Je(Pe,Na,ri.value,_a);if(at===null){Na===null&&(Na=en);break}t&&Na&&at.alternate===null&&u(Pe,Na),ke=C(at,ke,Wa),La===null?Ea=at:La.sibling=at,La=at,Na=en}if(ri.done)return m(Pe,Na),vi&&P_(Pe,Wa),Ea;if(Na===null){for(;!ri.done;Wa++,ri=Ee.next())ri=aa(Pe,ri.value,_a),ri!==null&&(ke=C(ri,ke,Wa),La===null?Ea=ri:La.sibling=ri,La=ri);return vi&&P_(Pe,Wa),Ea}for(Na=p(Pe,Na);!ri.done;Wa++,ri=Ee.next())ri=ga(Na,Pe,Wa,ri.value,_a),ri!==null&&(t&&ri.alternate!==null&&Na.delete(ri.key===null?Wa:ri.key),ke=C(ri,ke,Wa),La===null?Ea=ri:La.sibling=ri,La=ri);return t&&Na.forEach(function(hk){return u(Pe,hk)}),vi&&P_(Pe,Wa),Ea}function Ha(Pe,ke,Ee,_a){if(typeof Ee=="object"&&Ee!==null&&Ee.type===sa&&Ee.key===null&&(Ee=Ee.props.children),typeof Ee=="object"&&Ee!==null){switch(Ee.$$typeof){case ma:e:{for(var Ea=Ee.key,La=ke;La!==null;){if(La.key===Ea){if(Ea=Ee.type,Ea===sa){if(La.tag===7){m(Pe,La.sibling),ke=j(La,Ee.props.children),ke.return=Pe,Pe=ke;break e}}else if(La.elementType===Ea||typeof Ea=="object"&&Ea!==null&&Ea.$$typeof===Y&&Bs(Ea)===La.type){m(Pe,La.sibling),ke=j(La,Ee.props),ke.ref=Hs(Pe,La,Ee),ke.return=Pe,Pe=ke;break e}m(Pe,La);break}else u(Pe,La);La=La.sibling}Ee.type===sa?(ke=Zr(Ee.props.children,Pe.mode,_a,Ee.key),ke.return=Pe,Pe=ke):(_a=Ol(Ee.type,Ee.key,Ee.props,null,Pe.mode,_a),_a.ref=Hs(Pe,ke,Ee),_a.return=Pe,Pe=_a)}return U(Pe);case ta:e:{for(La=Ee.key;ke!==null;){if(ke.key===La)if(ke.tag===4&&ke.stateNode.containerInfo===Ee.containerInfo&&ke.stateNode.implementation===Ee.implementation){m(Pe,ke.sibling),ke=j(ke,Ee.children||[]),ke.return=Pe,Pe=ke;break e}else{m(Pe,ke);break}else u(Pe,ke);ke=ke.sibling}ke=et(Ee,Pe.mode,_a),ke.return=Pe,Pe=ke}return U(Pe);case Y:return La=Ee._init,Ha(Pe,ke,La(Ee._payload),_a)}if(Fn(Ee))return ja(Pe,ke,Ee,_a);if(B(Ee))return Pa(Pe,ke,Ee,_a);Ws(Pe,Ee)}return typeof Ee=="string"&&Ee!==""||typeof Ee=="number"?(Ee=""+Ee,ke!==null&&ke.tag===6?(m(Pe,ke.sibling),ke=j(ke,Ee),ke.return=Pe,Pe=ke):(m(Pe,ke),ke=Pm(Ee,Pe.mode,_a),ke.return=Pe,Pe=ke),U(Pe)):m(Pe,ke)}return Ha}var Dt=Ih(!0),Gc=Ih(!1),T_={},Qi=Ct(T_),Tt=Ct(T_),Ni=Ct(T_);function ur(t){if(t===T_)throw Error(I(174));return t}function Dh(t,u){switch(bi(Ni,u),bi(Tt,t),bi(Qi,T_),t=u.nodeType,t){case 9:case 11:u=(u=u.documentElement)?u.namespaceURI:xr(null,"");break;default:t=t===8?u.parentNode:u,u=t.namespaceURI||null,t=t.tagName,u=xr(u,t)}zi(Qi),bi(Qi,u)}function Vs(){zi(Qi),zi(Tt),zi(Ni)}function Xg(t){ur(Ni.current);var u=ur(Qi.current),m=xr(u,t.type);u!==m&&(bi(Tt,t),bi(Qi,m))}function Th(t){Tt.current===t&&(zi(Qi),zi(Tt))}var Ei=Ct(0);function Xc(t){for(var u=t;u!==null;){if(u.tag===13){var m=u.memoizedState;if(m!==null&&(m=m.dehydrated,m===null||m.data==="$?"||m.data==="$!"))return u}else if(u.tag===19&&u.memoizedProps.revealOrder!==void 0){if(u.flags&128)return u}else if(u.child!==null){u.child.return=u,u=u.child;continue}if(u===t)break;for(;u.sibling===null;){if(u.return===null||u.return===t)return null;u=u.return}u.sibling.return=u.return,u=u.sibling}return null}var Rh=[];function Ah(){for(var t=0;tm?m:4,t(!0);var p=Nh.transition;Nh.transition={};try{t(!1),u()}finally{Ka=m,Nh.transition=p}}function Jg(){return jo().memoizedState}function Zg(t,u,m){var p=Kr(t);if(m={lane:p,action:m,hasEagerState:!1,eagerState:null,next:null},Qs(t))kl(u,m);else if(m=Sh(t,u,m,p),m!==null){var j=Ci();lo(m,t,p,j),im(m,u,p)}}function ek(t,u,m){var p=Kr(t),j={lane:p,action:m,hasEagerState:!1,eagerState:null,next:null};if(Qs(t))kl(u,j);else{var C=t.alternate;if(t.lanes===0&&(C===null||C.lanes===0)&&(C=u.lastRenderedReducer,C!==null))try{var U=u.lastRenderedState,oe=C(U,m);if(j.hasEagerState=!0,j.eagerState=oe,Hn(oe,U)){var me=u.interleaved;me===null?(j.next=j,xn(u)):(j.next=me.next,me.next=j),u.interleaved=j;return}}catch(Ae){}finally{}m=Sh(t,u,j,p),m!==null&&(j=Ci(),lo(m,t,p,j),im(m,u,p))}}function Qs(t){var u=t.alternate;return t===Oi||u!==null&&u===Oi}function kl(t,u){A_=Kc=!0;var m=t.pending;m===null?u.next=u:(u.next=m.next,m.next=u),t.pending=u}function im(t,u,m){if(m&4194240){var p=u.lanes;p&=t.pendingLanes,m|=p,u.lanes=m,$u(t,m)}}var Js={readContext:Vn,useCallback:Cn,useContext:Cn,useEffect:Cn,useImperativeHandle:Cn,useInsertionEffect:Cn,useLayoutEffect:Cn,useMemo:Cn,useReducer:Cn,useRef:Cn,useState:Cn,useDebugValue:Cn,useDeferredValue:Cn,useTransition:Cn,useMutableSource:Cn,useSyncExternalStore:Cn,useId:Cn,unstable_isNewReconciler:!1},Bh={readContext:Vn,useCallback:function(t,u){return wo().memoizedState=[t,u===void 0?null:u],t},useContext:Vn,useEffect:$h,useImperativeHandle:function(t,u,m){return m=m!=null?m.concat([t]):null,dl(4194308,4,lr.bind(null,u,t),m)},useLayoutEffect:function(t,u){return dl(4194308,4,t,u)},useInsertionEffect:function(t,u){return dl(4,2,t,u)},useMemo:function(t,u){var m=wo();return u=u===void 0?null:u,t=t(),m.memoizedState=[t,u],t},useReducer:function(t,u,m){var p=wo();return u=m!==void 0?m(u):u,p.memoizedState=p.baseState=u,t={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:t,lastRenderedState:u},p.queue=t,t=t.dispatch=Zg.bind(null,Oi,t),[p.memoizedState,t]},useRef:function(t){var u=wo();return t={current:t},u.memoizedState=t},useState:hl,useDebugValue:am,useDeferredValue:function(t){return wo().memoizedState=t},useTransition:function(){var t=hl(!1),u=t[0];return t=Qg.bind(null,t[1]),wo().memoizedState=t,[u,t]},useMutableSource:function(){},useSyncExternalStore:function(t,u,m){var p=Oi,j=wo();if(vi){if(m===void 0)throw Error(I(407));m=m()}else{if(m=u(),Zi===null)throw Error(I(349));R_&30||Lh(p,u,m)}j.memoizedState=m;var C={value:m,getSnapshot:u};return j.queue=C,$h(Yg.bind(null,p,C,t),[t]),p.flags|=2048,Ys(9,Uh.bind(null,p,C,m,u),void 0,null),m},useId:function(){var t=wo(),u=Zi.identifierPrefix;if(vi){var m=Hr,p=no;m=(p&~(1<<32-On(p)-1)).toString(32)+m,u=":"+u+"R"+m,m=qs++,0<\/script>",t=t.removeChild(t.firstChild)):typeof p.is=="string"?t=U.createElement(m,{is:p.is}):(t=U.createElement(m),m==="select"&&(U=t,p.multiple?U.multiple=!0:p.size&&(U.size=p.size))):t=U.createElementNS(t,m),t[Bo]=u,t[Ts]=p,nu(t,u,!1,!1),u.stateNode=t;e:{switch(U=Iu(m,p),m){case"dialog":fi("cancel",t),fi("close",t),j=p;break;case"iframe":case"object":case"embed":fi("load",t),j=p;break;case"video":case"audio":for(j=0;jY_&&(u.flags|=128,p=!0,li(C,!1),u.lanes=4194304)}else{if(!p)if(t=Xc(U),t!==null){if(u.flags|=128,p=!0,m=t.updateQueue,m!==null&&(u.updateQueue=m,u.flags|=4),li(C,!0),C.tail===null&&C.tailMode==="hidden"&&!U.alternate&&!vi)return kn(u),null}else 2*xi()-C.renderingStartTime>Y_&&m!==1073741824&&(u.flags|=128,p=!0,li(C,!1),u.lanes=4194304);C.isBackwards?(U.sibling=u.child,u.child=U):(m=C.last,m!==null?m.sibling=U:u.child=U,C.last=U)}return C.tail!==null?(u=C.tail,C.rendering=u,C.tail=u.sibling,C.renderingStartTime=xi(),u.sibling=null,m=Ei.current,bi(Ei,p?m&1|2:m&1),u):(kn(u),null);case 22:case 23:return Cl(),p=u.memoizedState!==null,t!==null&&t.memoizedState!==null!==p&&(u.flags|=8192),p&&u.mode&1?Xn&1073741824&&(kn(u),u.subtreeFlags&6&&(u.flags|=8192)):kn(u),null;case 24:return null;case 25:return null}throw Error(I(156,u.tag))}function cm(t,u){switch(jh(u),u.tag){case 1:return zn(u.type)&&rl(),t=u.flags,t&65536?(u.flags=t&-65537|128,u):null;case 3:return Bs(),zi(Wn),zi(jn),Ah(),t=u.flags,t&65536&&!(t&128)?(u.flags=t&-65537|128,u):null;case 5:return Th(u),null;case 13:if(zi(Ei),t=u.memoizedState,t!==null&&t.dehydrated!==null){if(u.alternate===null)throw Error(I(340));Ot()}return t=u.flags,t&65536?(u.flags=t&-65537|128,u):null;case 19:return zi(Ei),null;case 4:return Bs(),null;case 10:return Ls(u.type._context),null;case 22:case 23:return Cl(),null;case 24:return null;default:return null}}var yl=!1,pn=!1,Mt=typeof WeakSet=="function"?WeakSet:Set,wa=null;function Gr(t,u){var m=t.ref;if(m!==null)if(typeof m=="function")try{m(null)}catch(p){Ii(t,u,p)}else m.current=null}function Ft(t,u,m){try{m()}catch(p){Ii(t,u,p)}}var Kh=!1;function bl(t,u){if(Fr=m_,t=Fg(),Ju(t)){if("selectionStart"in t)var m={start:t.selectionStart,end:t.selectionEnd};else e:{m=(m=t.ownerDocument)&&m.defaultView||window;var p=m.getSelection&&m.getSelection();if(p&&p.rangeCount!==0){m=p.anchorNode;var j=p.anchorOffset,C=p.focusNode;p=p.focusOffset;try{m.nodeType,C.nodeType}catch(_a){m=null;break e}var U=0,oe=-1,me=-1,Ae=0,Qe=0,aa=t,Je=null;a:for(;;){for(var ga;aa!==m||j!==0&&aa.nodeType!==3||(oe=U+j),aa!==C||p!==0&&aa.nodeType!==3||(me=U+p),aa.nodeType===3&&(U+=aa.nodeValue.length),(ga=aa.firstChild)!==null;)Je=aa,aa=ga;for(;;){if(aa===t)break a;if(Je===m&&++Ae===j&&(oe=U),Je===C&&++Qe===p&&(me=U),(ga=aa.nextSibling)!==null)break;aa=Je,Je=aa.parentNode}aa=ga}m=oe===-1||me===-1?null:{start:oe,end:me}}else m=null}m=m||{start:0,end:0}}else m=null;for(v_={focusedElem:t,selectionRange:m},m_=!1,wa=u;wa!==null;)if(u=wa,t=u.child,(u.subtreeFlags&1028)!==0&&t!==null)t.return=u,wa=t;else for(;wa!==null;){u=wa;try{var ja=u.alternate;if(u.flags&1024)switch(u.tag){case 0:case 11:case 15:break;case 1:if(ja!==null){var Pa=ja.memoizedProps,Ha=ja.memoizedState,Pe=u.stateNode,ke=Pe.getSnapshotBeforeUpdate(u.elementType===u.type?Pa:bo(u.type,Pa),Ha);Pe.__reactInternalSnapshotBeforeUpdate=ke}break;case 3:var Ee=u.stateNode.containerInfo;Ee.nodeType===1?Ee.textContent="":Ee.nodeType===9&&Ee.documentElement&&Ee.removeChild(Ee.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(I(163))}}catch(_a){Ii(u,u.return,_a)}if(t=u.sibling,t!==null){t.return=u.return,wa=t;break}wa=u.return}return ja=Kh,Kh=!1,ja}function ou(t,u,m){var p=u.updateQueue;if(p=p!==null?p.lastEffect:null,p!==null){var j=p=p.next;do{if((j.tag&t)===t){var C=j.destroy;j.destroy=void 0,C!==void 0&&Ft(u,m,C)}j=j.next}while(j!==p)}}function G_(t,u){if(u=u.updateQueue,u=u!==null?u.lastEffect:null,u!==null){var m=u=u.next;do{if((m.tag&t)===t){var p=m.create;m.destroy=p()}m=m.next}while(m!==u)}}function mm(t){var u=t.ref;if(u!==null){var m=t.stateNode;switch(t.tag){case 5:t=m;break;default:t=m}typeof u=="function"?u(t):u.current=t}}function Qh(t){var u=t.alternate;u!==null&&(t.alternate=null,Qh(u)),t.child=null,t.deletions=null,t.sibling=null,t.tag===5&&(u=t.stateNode,u!==null&&(delete u[Bo],delete u[Ts],delete u[Nc],delete u[yh],delete u[cf])),t.stateNode=null,t.return=null,t.dependencies=null,t.memoizedProps=null,t.memoizedState=null,t.pendingProps=null,t.stateNode=null,t.updateQueue=null}function vl(t){return t.tag===5||t.tag===3||t.tag===4}function Tn(t){e:for(;;){for(;t.sibling===null;){if(t.return===null||vl(t.return))return null;t=t.return}for(t.sibling.return=t.return,t=t.sibling;t.tag!==5&&t.tag!==6&&t.tag!==18;){if(t.flags&2||t.child===null||t.tag===4)continue e;t.child.return=t,t=t.child}if(!(t.flags&2))return t.stateNode}}function hm(t,u,m){var p=t.tag;if(p===5||p===6)t=t.stateNode,u?m.nodeType===8?m.parentNode.insertBefore(t,u):m.insertBefore(t,u):(m.nodeType===8?(u=m.parentNode,u.insertBefore(t,m)):(u=m,u.appendChild(t)),m=m._reactRootContainer,m!=null||u.onclick!==null||(u.onclick=Dc));else if(p!==4&&(t=t.child,t!==null))for(hm(t,u,m),t=t.sibling;t!==null;)hm(t,u,m),t=t.sibling}function Mi(t,u,m){var p=t.tag;if(p===5||p===6)t=t.stateNode,u?m.insertBefore(t,u):m.appendChild(t);else if(p!==4&&(t=t.child,t!==null))for(Mi(t,u,m),t=t.sibling;t!==null;)Mi(t,u,m),t=t.sibling}var sn=null,_o=!1;function Xr(t,u,m){for(m=m.child;m!==null;)dm(t,u,m),m=m.sibling}function dm(t,u,m){if(eo&&typeof eo.onCommitFiberUnmount=="function")try{eo.onCommitFiberUnmount(s_,m)}catch(oe){}switch(m.tag){case 5:pn||Gr(m,u);case 6:var p=sn,j=_o;sn=null,Xr(t,u,m),sn=p,_o=j,sn!==null&&(_o?(t=sn,m=m.stateNode,t.nodeType===8?t.parentNode.removeChild(m):t.removeChild(m)):sn.removeChild(m.stateNode));break;case 18:sn!==null&&(_o?(t=sn,m=m.stateNode,t.nodeType===8?Ac(t.parentNode,m):t.nodeType===1&&Ac(t,m),vt(t)):Ac(sn,m.stateNode));break;case 4:p=sn,j=_o,sn=m.stateNode.containerInfo,_o=!0,Xr(t,u,m),sn=p,_o=j;break;case 0:case 11:case 14:case 15:if(!pn&&(p=m.updateQueue,p!==null&&(p=p.lastEffect,p!==null))){j=p=p.next;do{var C=j,U=C.destroy;C=C.tag,U!==void 0&&(C&2||C&4)&&Ft(m,u,U),j=j.next}while(j!==p)}Xr(t,u,m);break;case 1:if(!pn&&(Gr(m,u),p=m.stateNode,typeof p.componentWillUnmount=="function"))try{p.props=m.memoizedProps,p.state=m.memoizedState,p.componentWillUnmount()}catch(oe){Ii(m,u,oe)}Xr(t,u,m);break;case 21:Xr(t,u,m);break;case 22:m.mode&1?(pn=(p=pn)||m.memoizedState!==null,Xr(t,u,m),pn=p):Xr(t,u,m);break;default:Xr(t,u,m)}}function Jh(t){var u=t.updateQueue;if(u!==null){t.updateQueue=null;var m=t.stateNode;m===null&&(m=t.stateNode=new Mt),u.forEach(function(p){var j=sd.bind(null,t,p);m.has(p)||(m.add(p),p.then(j,j))})}}function xo(t,u){var m=u.deletions;if(m!==null)for(var p=0;pj&&(j=U),p&=~C}if(p=j,p=xi()-p,p=(120>p?120:480>p?480:1080>p?1080:1920>p?1920:3e3>p?3e3:4320>p?4320:1960*nd(p/1960))-p,10t?16:t,uo===null)var p=!1;else{if(t=uo,uo=null,K_=0,ei&6)throw Error(I(331));var j=ei;for(ei|=4,wa=t.current;wa!==null;){var C=wa,U=C.child;if(wa.flags&16){var oe=C.deletions;if(oe!==null){for(var me=0;mexi()-fm?So(t,0):pm|=m),Fi(t,u)}function _d(t,u){u===0&&(t.mode&1?(u=dt,dt<<=1,!(dt&130023424)&&(dt=4194304)):u=1);var m=Ci();t=vo(t,u),t!==null&&(gt(t,u,m),Fi(t,m))}function co(t){var u=t.memoizedState,m=0;u!==null&&(m=u.retryLane),_d(t,m)}function sd(t,u){var m=0;switch(t.tag){case 13:var p=t.stateNode,j=t.memoizedState;j!==null&&(m=j.retryLane);break;case 19:p=t.stateNode;break;default:throw Error(I(314))}p!==null&&p.delete(u),_d(t,m)}var El;El=function(t,u,m){if(t!==null)if(t.memoizedProps!==u.pendingProps||Wn.current)Dn=!0;else{if(!(t.lanes&m)&&!(u.flags&128))return Dn=!1,rk(t,u,m);Dn=!!(t.flags&131072)}else Dn=!1,vi&&u.flags&1048576&&_l(u,As,u.index);switch(u.lanes=0,u.tag){case 2:var p=u.type;Br(t,u),t=u.pendingProps;var j=x_(u,jn.current);Us(u,m),j=Xi(null,u,p,t,j,m);var C=Mh();return u.flags|=1,typeof j=="object"&&j!==null&&typeof j.render=="function"&&j.$$typeof===void 0?(u.tag=1,u.memoizedState=null,u.updateQueue=null,zn(p)?(C=!0,tl(u)):C=!1,u.memoizedState=j.state!==null&&j.state!==void 0?j.state:null,Bc(u),j.updater=cl,u.stateNode=j,j._reactInternals=u,ml(u,p,t,m),u=W_(null,u,p,!0,C,m)):(u.tag=0,vi&&C&&$c(u),Sn(null,u,j,m),u=u.child),u;case 16:p=u.elementType;e:{switch(Br(t,u),t=u.pendingProps,j=p._init,p=j(p._payload),u.type=p,j=u.tag=sk(p),t=bo(p,t),j){case 0:u=_m(null,u,p,t,m);break e;case 1:u=ok(null,u,p,t,m);break e;case 11:u=Zs(null,u,p,t,m);break e;case 14:u=qh(null,u,p,bo(p.type,t),m);break e}throw Error(I(306,p,""))}return u;case 0:return p=u.type,j=u.pendingProps,j=u.elementType===p?j:bo(p,j),_m(t,u,p,j,m);case 1:return p=u.type,j=u.pendingProps,j=u.elementType===p?j:bo(p,j),ok(t,u,p,j,m);case 3:e:{if(Xh(u),t===null)throw Error(I(387));p=u.pendingProps,C=u.memoizedState,j=C.element,Ph(t,u),ul(u,p,null,m);var U=u.memoizedState;if(p=U.element,C.isDehydrated)if(C={element:p,isDehydrated:!1,cache:U.cache,pendingSuspenseBoundaries:U.pendingSuspenseBoundaries,transitions:U.transitions},u.updateQueue.baseState=C,u.memoizedState=C,u.flags&256){j=U_(Error(I(423)),u),u=pl(t,u,p,m,j);break e}else if(p!==j){j=U_(Error(I(424)),u),u=pl(t,u,p,m,j);break e}else for(Vn=Lr(u.stateNode.containerInfo.firstChild),oo=u,vi=!0,ro=null,m=Gc(u,null,p,m),u.child=m;m;)m.flags=m.flags&-3|4096,m=m.sibling;else{if(Ot(),p===j){u=Yo(t,u,m);break e}Sn(t,u,p,m)}u=u.child}return u;case 5:return Xg(u),t===null&&Gi(u),p=u.type,j=u.pendingProps,C=t!==null?t.memoizedProps:null,U=j.children,Tc(p,j)?U=null:C!==null&&Tc(p,C)&&(u.flags|=32),Gh(t,u),Sn(t,u,U,m),u.child;case 6:return t===null&&Gi(u),null;case 13:return um(t,u,m);case 4:return Dh(u,u.stateNode.containerInfo),p=u.pendingProps,t===null?u.child=Dt(u,null,p,m):Sn(t,u,p,m),u.child;case 11:return p=u.type,j=u.pendingProps,j=u.elementType===p?j:bo(p,j),Zs(t,u,p,j,m);case 7:return Sn(t,u,u.pendingProps,m),u.child;case 8:return Sn(t,u,u.pendingProps.children,m),u.child;case 12:return Sn(t,u,u.pendingProps.children,m),u.child;case 10:e:{if(p=u.type._context,j=u.pendingProps,C=u.memoizedProps,U=j.value,bi(Ms,p._currentValue),p._currentValue=U,C!==null)if(Hn(C.value,U)){if(C.children===j.children&&!Wn.current){u=Yo(t,u,m);break e}}else for(C=u.child,C!==null&&(C.return=u);C!==null;){var oe=C.dependencies;if(oe!==null){U=C.child;for(var me=oe.firstContext;me!==null;){if(me.context===p){if(C.tag===1){me=gn(-1,m&-m),me.tag=2;var Ae=C.updateQueue;if(Ae!==null){Ae=Ae.shared;var Qe=Ae.pending;Qe===null?me.next=me:(me.next=Qe.next,Qe.next=me),Ae.pending=me}}C.lanes|=m,me=C.alternate,me!==null&&(me.lanes|=m),Vc(C.return,m,u),oe.lanes|=m;break}me=me.next}}else if(C.tag===10)U=C.type===u.type?null:C.child;else if(C.tag===18){if(U=C.return,U===null)throw Error(I(341));U.lanes|=m,oe=U.alternate,oe!==null&&(oe.lanes|=m),Vc(U,m,u),U=C.sibling}else U=C.child;if(U!==null)U.return=C;else for(U=C;U!==null;){if(U===u){U=null;break}if(C=U.sibling,C!==null){C.return=U.return,U=C;break}U=U.return}C=U}Sn(t,u,j.children,m),u=u.child}return u;case 9:return j=u.type,p=u.pendingProps.children,Us(u,m),j=Bn(j),p=p(j),u.flags|=1,Sn(t,u,p,m),u.child;case 14:return p=u.type,j=bo(p,u.pendingProps),j=bo(p.type,j),qh(t,u,p,j,m);case 15:return tm(t,u,u.type,u.pendingProps,m);case 17:return p=u.type,j=u.pendingProps,j=u.elementType===p?j:bo(p,j),Br(t,u),u.tag=1,zn(p)?(t=!0,tl(u)):t=!1,Us(u,m),Oh(u,p,j),ml(u,p,j,m),W_(null,u,p,!0,t,m);case 19:return iu(t,u,m);case 22:return eu(t,u,m)}throw Error(I(156,u.tag))};function ud(t,u){return hc(t,u)}function ld(t,u,m,p){this.tag=t,this.key=m,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=u,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=p,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function mo(t,u,m,p){return new ld(t,u,m,p)}function Sm(t){return t=t.prototype,!(!t||!t.isReactComponent)}function sk(t){if(typeof t=="function")return Sm(t)?1:0;if(t!=null){if(t=t.$$typeof,t===Me)return 11;if(t===q)return 14}return 2}function Jr(t,u){var m=t.alternate;return m===null?(m=mo(t.tag,u,t.key,t.mode),m.elementType=t.elementType,m.type=t.type,m.stateNode=t.stateNode,m.alternate=t,t.alternate=m):(m.pendingProps=u,m.type=t.type,m.flags=0,m.subtreeFlags=0,m.deletions=null),m.flags=t.flags&14680064,m.childLanes=t.childLanes,m.lanes=t.lanes,m.child=t.child,m.memoizedProps=t.memoizedProps,m.memoizedState=t.memoizedState,m.updateQueue=t.updateQueue,u=t.dependencies,m.dependencies=u===null?null:{lanes:u.lanes,firstContext:u.firstContext},m.sibling=t.sibling,m.index=t.index,m.ref=t.ref,m}function Ol(t,u,m,p,j,C){var U=2;if(p=t,typeof t=="function")Sm(t)&&(U=1);else if(typeof t=="string")U=5;else e:switch(t){case sa:return Zr(m.children,j,C,u);case oa:U=8,j|=8;break;case za:return t=mo(12,m,u,j|2),t.elementType=za,t.lanes=C,t;case Fe:return t=mo(13,m,u,j),t.elementType=Fe,t.lanes=C,t;case We:return t=mo(19,m,u,j),t.elementType=We,t.lanes=C,t;case fe:return J_(m,j,C,u);default:if(typeof t=="object"&&t!==null)switch(t.$$typeof){case Xa:U=10;break e;case _e:U=9;break e;case Me:U=11;break e;case q:U=14;break e;case Y:U=16,p=null;break e}throw Error(I(130,t==null?t:typeof t,""))}return u=mo(U,m,u,j),u.elementType=t,u.type=p,u.lanes=C,u}function Zr(t,u,m,p){return t=mo(7,t,p,u),t.lanes=m,t}function J_(t,u,m,p){return t=mo(22,t,p,u),t.elementType=fe,t.lanes=m,t.stateNode={isHidden:!1},t}function Pm(t,u,m){return t=mo(6,t,null,u),t.lanes=m,t}function et(t,u,m){return u=mo(4,t.children!==null?t.children:[],t.key,u),u.lanes=m,u.stateNode={containerInfo:t.containerInfo,pendingChildren:null,implementation:t.implementation},u}function uk(t,u,m,p,j){this.tag=u,this.containerInfo=t,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=Uu(0),this.expirationTimes=Uu(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Uu(0),this.identifierPrefix=p,this.onRecoverableError=j,this.mutableSourceEagerHydrationData=null}function Em(t,u,m,p,j,C,U,oe,me){return t=new uk(t,u,m,oe,me),u===1?(u=1,C===!0&&(u|=8)):u=0,C=mo(3,null,null,u),t.current=C,C.stateNode=t,C.memoizedState={element:p,isDehydrated:m,cache:null,transitions:null,pendingSuspenseBoundaries:null},Bc(C),t}function lk(t,u,m){var p=3=0)&&Object.prototype.propertyIsEnumerable.call(ee,ge)&&(pe[ge]=ee[ge])}return pe}function Ne(ee,X){if(ee==null)return{};var pe={},ge=Object.keys(ee),xe,Ue;for(Ue=0;Ue=0)&&(pe[xe]=ee[xe]);return pe}function na(ee,X){var pe=Object.keys(ee);if(Object.getOwnPropertySymbols){var ge=Object.getOwnPropertySymbols(ee);X&&(ge=ge.filter(function(xe){return Object.getOwnPropertyDescriptor(ee,xe).enumerable})),pe.push.apply(pe,ge)}return pe}function ve(ee){for(var X=1;Xee.length)&&(X=ee.length);for(var pe=0,ge=new Array(X);pe, without drag handlers. This will make this component effectively undraggable. Please attach `onDrag` or `onStop` handlers so you can adjust the `position` of this element."),xe}return _e(pe,[{key:"componentDidMount",value:function(){typeof window.SVGElement!="undefined"&&this.findDOMNode()instanceof window.SVGElement&&this.setState({isElementSVG:!0})}},{key:"componentWillUnmount",value:function(){this.setState({dragging:!1})}},{key:"findDOMNode",value:function(){var xe,Ue,Ke;return(xe=(Ue=this.props)===null||Ue===void 0||(Ke=Ue.nodeRef)===null||Ke===void 0?void 0:Ke.current)!==null&&xe!==void 0?xe:B.default.findDOMNode(this)}},{key:"render",value:function(){var xe,Ue=this.props,Ke=Ue.axis,Be=Ue.bounds,ba=Ue.children,ti=Ue.defaultPosition,Va=Ue.defaultClassName,Ya=Ue.defaultClassNameDragging,ci=Ue.defaultClassNameDragged,Bi=Ue.position,Ui=Ue.positionOffset,En=Ue.scale,ko=Ce(Ue,De),Mn={},po=null,Fn=Boolean(Bi),Jn=!Fn||this.state.dragging,Zn=Bi||ti,ir={x:(0,Q.canDragX)(this)&&Jn?this.state.x:Zn.x,y:(0,Q.canDragY)(this)&&Jn?this.state.y:Zn.y};this.state.isElementSVG?po=(0,G.createSVGTransform)(ir,Ui):Mn=(0,G.createCSSTransform)(ir,Ui);var a_=(0,W.default)(ba.props.className||"",Va,(xe={},V(xe,Ya,this.state.dragging),V(xe,ci,this.state.dragged),xe));return $.createElement(Oe.default,Le({},ko,{onStart:this.onDragStart,onDrag:this.onDrag,onStop:this.onDragStop}),$.cloneElement($.Children.only(ba),{className:a_,style:ve(ve({},ba.props.style),Mn),transform:po}))}}],[{key:"getDerivedStateFromProps",value:function(xe,Ue){var Ke=xe.position,Be=Ue.prevPropsPosition;return Ke&&(!Be||Ke.x!==Be.x||Ke.y!==Be.y)?((0,ye.default)("Draggable: getDerivedStateFromProps %j",{position:Ke,prevPropsPosition:Be}),{x:Ke.x,y:Ke.y,prevPropsPosition:ve({},Ke)}):null}}]),pe}($.Component);g.default=Z,V(Z,"displayName","Draggable"),V(Z,"propTypes",ve(ve({},Oe.default.propTypes),{},{axis:I.default.oneOf(["both","x","y","none"]),bounds:I.default.oneOfType([I.default.shape({left:I.default.number,right:I.default.number,top:I.default.number,bottom:I.default.number}),I.default.string,I.default.oneOf([!1])]),defaultClassName:I.default.string,defaultClassNameDragging:I.default.string,defaultClassNameDragged:I.default.string,defaultPosition:I.default.shape({x:I.default.number,y:I.default.number}),positionOffset:I.default.shape({x:I.default.oneOfType([I.default.number,I.default.string]),y:I.default.oneOfType([I.default.number,I.default.string])}),position:I.default.shape({x:I.default.number,y:I.default.number}),className:de.dontSetMe,style:de.dontSetMe,transform:de.dontSetMe})),V(Z,"defaultProps",ve(ve({},Oe.default.defaultProps),{},{axis:"both",bounds:!1,defaultClassName:"react-draggable",defaultClassNameDragging:"react-draggable-dragging",defaultClassNameDragged:"react-draggable-dragged",defaultPosition:{x:0,y:0},scale:1}))},783:function(F,g,x){"use strict";function R(q){return R=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(Y){return typeof Y}:function(Y){return Y&&typeof Symbol=="function"&&Y.constructor===Symbol&&Y!==Symbol.prototype?"symbol":typeof Y},R(q)}Object.defineProperty(g,"__esModule",{value:!0}),g.default=void 0;var $=De(x(7294)),I=Oe(x(5697)),B=Oe(x(3935)),W=x(1825),G=x(2849),Q=x(9280),de=Oe(x(5904));function Oe(q){return q&&q.__esModule?q:{default:q}}function ye(q){if(typeof WeakMap!="function")return null;var Y=new WeakMap,fe=new WeakMap;return(ye=function(V){return V?fe:Y})(q)}function De(q,Y){if(!Y&&q&&q.__esModule)return q;if(q===null||R(q)!=="object"&&typeof q!="function")return{default:q};var fe=ye(Y);if(fe&&fe.has(q))return fe.get(q);var ne={},V=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var Z in q)if(Z!=="default"&&Object.prototype.hasOwnProperty.call(q,Z)){var ee=V?Object.getOwnPropertyDescriptor(q,Z):null;ee&&(ee.get||ee.set)?Object.defineProperty(ne,Z,ee):ne[Z]=q[Z]}return ne.default=q,fe&&fe.set(q,ne),ne}function we(q,Y){return Ne(q)||Ce(q,Y)||Re(q,Y)||Te()}function Te(){throw new TypeError(`Invalid attempt to destructure non-iterable instance. -In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Re(q,Y){if(q){if(typeof q=="string")return Le(q,Y);var fe=Object.prototype.toString.call(q).slice(8,-1);if(fe==="Object"&&q.constructor&&(fe=q.constructor.name),fe==="Map"||fe==="Set")return Array.from(q);if(fe==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(fe))return Le(q,Y)}}function Le(q,Y){(Y==null||Y>q.length)&&(Y=q.length);for(var fe=0,ne=new Array(Y);fe not mounted on DragStart!");var ge=pe.ownerDocument;if(!(ne.props.disabled||!(X.target instanceof ge.defaultView.Node)||ne.props.handle&&!(0,W.matchesSelectorAndParentsTo)(X.target,ne.props.handle,pe)||ne.props.cancel&&(0,W.matchesSelectorAndParentsTo)(X.target,ne.props.cancel,pe))){X.type==="touchstart"&&X.preventDefault();var xe=(0,W.getTouchIdentifier)(X);ne.setState({touchIdentifier:xe});var Ue=(0,G.getControlPosition)(X,xe,oa(ne));if(Ue!=null){var Ke=Ue.x,Be=Ue.y,ba=(0,G.createCoreData)(oa(ne),Ke,Be);(0,de.default)("DraggableCore: handleDragStart: %j",ba),(0,de.default)("calling",ne.props.onStart);var ti=ne.props.onStart(X,ba);ti===!1||ne.mounted===!1||(ne.props.enableUserSelectHack&&(0,W.addUserSelectStyles)(ge),ne.setState({dragging:!0,lastX:Ke,lastY:Be}),(0,W.addEvent)(ge,Fe.move,ne.handleDrag),(0,W.addEvent)(ge,Fe.stop,ne.handleDragStop))}}}),_e(oa(ne),"handleDrag",function(X){var pe=(0,G.getControlPosition)(X,ne.state.touchIdentifier,oa(ne));if(pe!=null){var ge=pe.x,xe=pe.y;if(Array.isArray(ne.props.grid)){var Ue=ge-ne.state.lastX,Ke=xe-ne.state.lastY,Be=(0,G.snapToGrid)(ne.props.grid,Ue,Ke),ba=we(Be,2);if(Ue=ba[0],Ke=ba[1],!Ue&&!Ke)return;ge=ne.state.lastX+Ue,xe=ne.state.lastY+Ke}var ti=(0,G.createCoreData)(oa(ne),ge,xe);(0,de.default)("DraggableCore: handleDrag: %j",ti);var Va=ne.props.onDrag(X,ti);if(Va===!1||ne.mounted===!1){try{ne.handleDragStop(new MouseEvent("mouseup"))}catch(ci){var Ya=document.createEvent("MouseEvents");Ya.initMouseEvent("mouseup",!0,!0,window,0,0,0,0,0,!1,!1,!1,!1,0,null),ne.handleDragStop(Ya)}return}ne.setState({lastX:ge,lastY:xe})}}),_e(oa(ne),"handleDragStop",function(X){if(ne.state.dragging){var pe=(0,G.getControlPosition)(X,ne.state.touchIdentifier,oa(ne));if(pe!=null){var ge=pe.x,xe=pe.y;if(Array.isArray(ne.props.grid)){var Ue=ge-ne.state.lastX||0,Ke=xe-ne.state.lastY||0,Be=(0,G.snapToGrid)(ne.props.grid,Ue,Ke),ba=we(Be,2);Ue=ba[0],Ke=ba[1],ge=ne.state.lastX+Ue,xe=ne.state.lastY+Ke}var ti=(0,G.createCoreData)(oa(ne),ge,xe),Va=ne.props.onStop(X,ti);if(Va===!1||ne.mounted===!1)return!1;var Ya=ne.findDOMNode();Ya&&ne.props.enableUserSelectHack&&(0,W.removeUserSelectStyles)(Ya.ownerDocument),(0,de.default)("DraggableCore: handleDragStop: %j",ti),ne.setState({dragging:!1,lastX:NaN,lastY:NaN}),Ya&&((0,de.default)("DraggableCore: Removing handlers"),(0,W.removeEvent)(Ya.ownerDocument,Fe.move,ne.handleDrag),(0,W.removeEvent)(Ya.ownerDocument,Fe.stop,ne.handleDragStop))}}}),_e(oa(ne),"onMouseDown",function(X){return Fe=Me.mouse,ne.handleDragStart(X)}),_e(oa(ne),"onMouseUp",function(X){return Fe=Me.mouse,ne.handleDragStop(X)}),_e(oa(ne),"onTouchStart",function(X){return Fe=Me.touch,ne.handleDragStart(X)}),_e(oa(ne),"onTouchEnd",function(X){return Fe=Me.touch,ne.handleDragStop(X)}),ne}return Ye(fe,[{key:"componentDidMount",value:function(){this.mounted=!0;var V=this.findDOMNode();V&&(0,W.addEvent)(V,Me.touch.start,this.onTouchStart,{passive:!1})}},{key:"componentWillUnmount",value:function(){this.mounted=!1;var V=this.findDOMNode();if(V){var Z=V.ownerDocument;(0,W.removeEvent)(Z,Me.mouse.move,this.handleDrag),(0,W.removeEvent)(Z,Me.touch.move,this.handleDrag),(0,W.removeEvent)(Z,Me.mouse.stop,this.handleDragStop),(0,W.removeEvent)(Z,Me.touch.stop,this.handleDragStop),(0,W.removeEvent)(V,Me.touch.start,this.onTouchStart,{passive:!1}),this.props.enableUserSelectHack&&(0,W.removeUserSelectStyles)(Z)}}},{key:"findDOMNode",value:function(){var V,Z,ee;return(V=this.props)!==null&&V!==void 0&&V.nodeRef?(Z=this.props)===null||Z===void 0||(ee=Z.nodeRef)===null||ee===void 0?void 0:ee.current:B.default.findDOMNode(this)}},{key:"render",value:function(){return $.cloneElement($.Children.only(this.props.children),{onMouseDown:this.onMouseDown,onMouseUp:this.onMouseUp,onTouchEnd:this.onTouchEnd})}}]),fe}($.Component);g.default=We,_e(We,"displayName","DraggableCore"),_e(We,"propTypes",{allowAnyClick:I.default.bool,disabled:I.default.bool,enableUserSelectHack:I.default.bool,offsetParent:function(Y,fe){if(Y[fe]&&Y[fe].nodeType!==1)throw new Error("Draggable's offsetParent must be a DOM Node.")},grid:I.default.arrayOf(I.default.number),handle:I.default.string,cancel:I.default.string,nodeRef:I.default.object,onStart:I.default.func,onDrag:I.default.func,onStop:I.default.func,onMouseDown:I.default.func,scale:I.default.number,className:Q.dontSetMe,style:Q.dontSetMe,transform:Q.dontSetMe}),_e(We,"defaultProps",{allowAnyClick:!1,disabled:!1,enableUserSelectHack:!0,onStart:function(){},onDrag:function(){},onStop:function(){},onMouseDown:function(){},scale:1})},1193:function(F,g,x){"use strict";var R=x(5668),$=R.default,I=R.DraggableCore;F.exports=$,F.exports.default=$,F.exports.DraggableCore=I},1825:function(F,g,x){"use strict";function R(_e){return R=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(Me){return typeof Me}:function(Me){return Me&&typeof Symbol=="function"&&Me.constructor===Symbol&&Me!==Symbol.prototype?"symbol":typeof Me},R(_e)}Object.defineProperty(g,"__esModule",{value:!0}),g.addClassName=za,g.addEvent=we,g.addUserSelectStyles=sa,g.createCSSTransform=ve,g.createSVGTransform=Ye,g.getTouch=ma,g.getTouchIdentifier=ta,g.getTranslation=je,g.innerHeight=Ce,g.innerWidth=Ne,g.matchesSelector=ye,g.matchesSelectorAndParentsTo=De,g.offsetXYFromParent=na,g.outerHeight=Re,g.outerWidth=Le,g.removeClassName=Xa,g.removeEvent=Te,g.removeUserSelectStyles=oa;var $=x(9280),I=W(x(8650));function B(_e){if(typeof WeakMap!="function")return null;var Me=new WeakMap,Fe=new WeakMap;return(B=function(q){return q?Fe:Me})(_e)}function W(_e,Me){if(!Me&&_e&&_e.__esModule)return _e;if(_e===null||R(_e)!=="object"&&typeof _e!="function")return{default:_e};var Fe=B(Me);if(Fe&&Fe.has(_e))return Fe.get(_e);var We={},q=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var Y in _e)if(Y!=="default"&&Object.prototype.hasOwnProperty.call(_e,Y)){var fe=q?Object.getOwnPropertyDescriptor(_e,Y):null;fe&&(fe.get||fe.set)?Object.defineProperty(We,Y,fe):We[Y]=_e[Y]}return We.default=_e,Fe&&Fe.set(_e,We),We}function G(_e,Me){var Fe=Object.keys(_e);if(Object.getOwnPropertySymbols){var We=Object.getOwnPropertySymbols(_e);Me&&(We=We.filter(function(q){return Object.getOwnPropertyDescriptor(_e,q).enumerable})),Fe.push.apply(Fe,We)}return Fe}function Q(_e){for(var Me=1;Me<\/script>",t=t.removeChild(t.firstChild)):typeof p.is=="string"?t=U.createElement(m,{is:p.is}):(t=U.createElement(m),m==="select"&&(U=t,p.multiple?U.multiple=!0:p.size&&(U.size=p.size))):t=U.createElementNS(t,m),t[Vo]=u,t[Ts]=p,nu(t,u,!1,!1),u.stateNode=t;e:{switch(U=Iu(m,p),m){case"dialog":fi("cancel",t),fi("close",t),j=p;break;case"iframe":case"object":case"embed":fi("load",t),j=p;break;case"video":case"audio":for(j=0;jY_&&(u.flags|=128,p=!0,li(C,!1),u.lanes=4194304)}else{if(!p)if(t=Xc(U),t!==null){if(u.flags|=128,p=!0,m=t.updateQueue,m!==null&&(u.updateQueue=m,u.flags|=4),li(C,!0),C.tail===null&&C.tailMode==="hidden"&&!U.alternate&&!vi)return kn(u),null}else 2*xi()-C.renderingStartTime>Y_&&m!==1073741824&&(u.flags|=128,p=!0,li(C,!1),u.lanes=4194304);C.isBackwards?(U.sibling=u.child,u.child=U):(m=C.last,m!==null?m.sibling=U:u.child=U,C.last=U)}return C.tail!==null?(u=C.tail,C.rendering=u,C.tail=u.sibling,C.renderingStartTime=xi(),u.sibling=null,m=Ei.current,bi(Ei,p?m&1|2:m&1),u):(kn(u),null);case 22:case 23:return Cl(),p=u.memoizedState!==null,t!==null&&t.memoizedState!==null!==p&&(u.flags|=8192),p&&u.mode&1?Xn&1073741824&&(kn(u),u.subtreeFlags&6&&(u.flags|=8192)):kn(u),null;case 24:return null;case 25:return null}throw Error(I(156,u.tag))}function cm(t,u){switch(jh(u),u.tag){case 1:return zn(u.type)&&rl(),t=u.flags,t&65536?(u.flags=t&-65537|128,u):null;case 3:return Vs(),zi(Wn),zi(jn),Ah(),t=u.flags,t&65536&&!(t&128)?(u.flags=t&-65537|128,u):null;case 5:return Th(u),null;case 13:if(zi(Ei),t=u.memoizedState,t!==null&&t.dehydrated!==null){if(u.alternate===null)throw Error(I(340));Ot()}return t=u.flags,t&65536?(u.flags=t&-65537|128,u):null;case 19:return zi(Ei),null;case 4:return Vs(),null;case 10:return Ls(u.type._context),null;case 22:case 23:return Cl(),null;case 24:return null;default:return null}}var yl=!1,pn=!1,Mt=typeof WeakSet=="function"?WeakSet:Set,wa=null;function Gr(t,u){var m=t.ref;if(m!==null)if(typeof m=="function")try{m(null)}catch(p){Ii(t,u,p)}else m.current=null}function Ft(t,u,m){try{m()}catch(p){Ii(t,u,p)}}var Kh=!1;function bl(t,u){if(Fr=m_,t=Fg(),Ju(t)){if("selectionStart"in t)var m={start:t.selectionStart,end:t.selectionEnd};else e:{m=(m=t.ownerDocument)&&m.defaultView||window;var p=m.getSelection&&m.getSelection();if(p&&p.rangeCount!==0){m=p.anchorNode;var j=p.anchorOffset,C=p.focusNode;p=p.focusOffset;try{m.nodeType,C.nodeType}catch(_a){m=null;break e}var U=0,oe=-1,me=-1,Ae=0,Qe=0,aa=t,Je=null;a:for(;;){for(var ga;aa!==m||j!==0&&aa.nodeType!==3||(oe=U+j),aa!==C||p!==0&&aa.nodeType!==3||(me=U+p),aa.nodeType===3&&(U+=aa.nodeValue.length),(ga=aa.firstChild)!==null;)Je=aa,aa=ga;for(;;){if(aa===t)break a;if(Je===m&&++Ae===j&&(oe=U),Je===C&&++Qe===p&&(me=U),(ga=aa.nextSibling)!==null)break;aa=Je,Je=aa.parentNode}aa=ga}m=oe===-1||me===-1?null:{start:oe,end:me}}else m=null}m=m||{start:0,end:0}}else m=null;for(v_={focusedElem:t,selectionRange:m},m_=!1,wa=u;wa!==null;)if(u=wa,t=u.child,(u.subtreeFlags&1028)!==0&&t!==null)t.return=u,wa=t;else for(;wa!==null;){u=wa;try{var ja=u.alternate;if(u.flags&1024)switch(u.tag){case 0:case 11:case 15:break;case 1:if(ja!==null){var Pa=ja.memoizedProps,Ha=ja.memoizedState,Pe=u.stateNode,ke=Pe.getSnapshotBeforeUpdate(u.elementType===u.type?Pa:bo(u.type,Pa),Ha);Pe.__reactInternalSnapshotBeforeUpdate=ke}break;case 3:var Ee=u.stateNode.containerInfo;Ee.nodeType===1?Ee.textContent="":Ee.nodeType===9&&Ee.documentElement&&Ee.removeChild(Ee.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(I(163))}}catch(_a){Ii(u,u.return,_a)}if(t=u.sibling,t!==null){t.return=u.return,wa=t;break}wa=u.return}return ja=Kh,Kh=!1,ja}function ou(t,u,m){var p=u.updateQueue;if(p=p!==null?p.lastEffect:null,p!==null){var j=p=p.next;do{if((j.tag&t)===t){var C=j.destroy;j.destroy=void 0,C!==void 0&&Ft(u,m,C)}j=j.next}while(j!==p)}}function G_(t,u){if(u=u.updateQueue,u=u!==null?u.lastEffect:null,u!==null){var m=u=u.next;do{if((m.tag&t)===t){var p=m.create;m.destroy=p()}m=m.next}while(m!==u)}}function mm(t){var u=t.ref;if(u!==null){var m=t.stateNode;switch(t.tag){case 5:t=m;break;default:t=m}typeof u=="function"?u(t):u.current=t}}function Qh(t){var u=t.alternate;u!==null&&(t.alternate=null,Qh(u)),t.child=null,t.deletions=null,t.sibling=null,t.tag===5&&(u=t.stateNode,u!==null&&(delete u[Vo],delete u[Ts],delete u[Nc],delete u[yh],delete u[cf])),t.stateNode=null,t.return=null,t.dependencies=null,t.memoizedProps=null,t.memoizedState=null,t.pendingProps=null,t.stateNode=null,t.updateQueue=null}function vl(t){return t.tag===5||t.tag===3||t.tag===4}function Tn(t){e:for(;;){for(;t.sibling===null;){if(t.return===null||vl(t.return))return null;t=t.return}for(t.sibling.return=t.return,t=t.sibling;t.tag!==5&&t.tag!==6&&t.tag!==18;){if(t.flags&2||t.child===null||t.tag===4)continue e;t.child.return=t,t=t.child}if(!(t.flags&2))return t.stateNode}}function hm(t,u,m){var p=t.tag;if(p===5||p===6)t=t.stateNode,u?m.nodeType===8?m.parentNode.insertBefore(t,u):m.insertBefore(t,u):(m.nodeType===8?(u=m.parentNode,u.insertBefore(t,m)):(u=m,u.appendChild(t)),m=m._reactRootContainer,m!=null||u.onclick!==null||(u.onclick=Dc));else if(p!==4&&(t=t.child,t!==null))for(hm(t,u,m),t=t.sibling;t!==null;)hm(t,u,m),t=t.sibling}function Mi(t,u,m){var p=t.tag;if(p===5||p===6)t=t.stateNode,u?m.insertBefore(t,u):m.appendChild(t);else if(p!==4&&(t=t.child,t!==null))for(Mi(t,u,m),t=t.sibling;t!==null;)Mi(t,u,m),t=t.sibling}var sn=null,_o=!1;function Xr(t,u,m){for(m=m.child;m!==null;)dm(t,u,m),m=m.sibling}function dm(t,u,m){if(eo&&typeof eo.onCommitFiberUnmount=="function")try{eo.onCommitFiberUnmount(s_,m)}catch(oe){}switch(m.tag){case 5:pn||Gr(m,u);case 6:var p=sn,j=_o;sn=null,Xr(t,u,m),sn=p,_o=j,sn!==null&&(_o?(t=sn,m=m.stateNode,t.nodeType===8?t.parentNode.removeChild(m):t.removeChild(m)):sn.removeChild(m.stateNode));break;case 18:sn!==null&&(_o?(t=sn,m=m.stateNode,t.nodeType===8?Ac(t.parentNode,m):t.nodeType===1&&Ac(t,m),vt(t)):Ac(sn,m.stateNode));break;case 4:p=sn,j=_o,sn=m.stateNode.containerInfo,_o=!0,Xr(t,u,m),sn=p,_o=j;break;case 0:case 11:case 14:case 15:if(!pn&&(p=m.updateQueue,p!==null&&(p=p.lastEffect,p!==null))){j=p=p.next;do{var C=j,U=C.destroy;C=C.tag,U!==void 0&&(C&2||C&4)&&Ft(m,u,U),j=j.next}while(j!==p)}Xr(t,u,m);break;case 1:if(!pn&&(Gr(m,u),p=m.stateNode,typeof p.componentWillUnmount=="function"))try{p.props=m.memoizedProps,p.state=m.memoizedState,p.componentWillUnmount()}catch(oe){Ii(m,u,oe)}Xr(t,u,m);break;case 21:Xr(t,u,m);break;case 22:m.mode&1?(pn=(p=pn)||m.memoizedState!==null,Xr(t,u,m),pn=p):Xr(t,u,m);break;default:Xr(t,u,m)}}function Jh(t){var u=t.updateQueue;if(u!==null){t.updateQueue=null;var m=t.stateNode;m===null&&(m=t.stateNode=new Mt),u.forEach(function(p){var j=sd.bind(null,t,p);m.has(p)||(m.add(p),p.then(j,j))})}}function xo(t,u){var m=u.deletions;if(m!==null)for(var p=0;pj&&(j=U),p&=~C}if(p=j,p=xi()-p,p=(120>p?120:480>p?480:1080>p?1080:1920>p?1920:3e3>p?3e3:4320>p?4320:1960*nd(p/1960))-p,10t?16:t,uo===null)var p=!1;else{if(t=uo,uo=null,K_=0,ei&6)throw Error(I(331));var j=ei;for(ei|=4,wa=t.current;wa!==null;){var C=wa,U=C.child;if(wa.flags&16){var oe=C.deletions;if(oe!==null){for(var me=0;mexi()-fm?So(t,0):pm|=m),Fi(t,u)}function _d(t,u){u===0&&(t.mode&1?(u=dt,dt<<=1,!(dt&130023424)&&(dt=4194304)):u=1);var m=Ci();t=vo(t,u),t!==null&&(gt(t,u,m),Fi(t,m))}function co(t){var u=t.memoizedState,m=0;u!==null&&(m=u.retryLane),_d(t,m)}function sd(t,u){var m=0;switch(t.tag){case 13:var p=t.stateNode,j=t.memoizedState;j!==null&&(m=j.retryLane);break;case 19:p=t.stateNode;break;default:throw Error(I(314))}p!==null&&p.delete(u),_d(t,m)}var El;El=function(t,u,m){if(t!==null)if(t.memoizedProps!==u.pendingProps||Wn.current)Dn=!0;else{if(!(t.lanes&m)&&!(u.flags&128))return Dn=!1,rk(t,u,m);Dn=!!(t.flags&131072)}else Dn=!1,vi&&u.flags&1048576&&_l(u,As,u.index);switch(u.lanes=0,u.tag){case 2:var p=u.type;Vr(t,u),t=u.pendingProps;var j=x_(u,jn.current);Us(u,m),j=Xi(null,u,p,t,j,m);var C=Mh();return u.flags|=1,typeof j=="object"&&j!==null&&typeof j.render=="function"&&j.$$typeof===void 0?(u.tag=1,u.memoizedState=null,u.updateQueue=null,zn(p)?(C=!0,tl(u)):C=!1,u.memoizedState=j.state!==null&&j.state!==void 0?j.state:null,Vc(u),j.updater=cl,u.stateNode=j,j._reactInternals=u,ml(u,p,t,m),u=W_(null,u,p,!0,C,m)):(u.tag=0,vi&&C&&$c(u),Sn(null,u,j,m),u=u.child),u;case 16:p=u.elementType;e:{switch(Vr(t,u),t=u.pendingProps,j=p._init,p=j(p._payload),u.type=p,j=u.tag=sk(p),t=bo(p,t),j){case 0:u=_m(null,u,p,t,m);break e;case 1:u=ok(null,u,p,t,m);break e;case 11:u=Zs(null,u,p,t,m);break e;case 14:u=qh(null,u,p,bo(p.type,t),m);break e}throw Error(I(306,p,""))}return u;case 0:return p=u.type,j=u.pendingProps,j=u.elementType===p?j:bo(p,j),_m(t,u,p,j,m);case 1:return p=u.type,j=u.pendingProps,j=u.elementType===p?j:bo(p,j),ok(t,u,p,j,m);case 3:e:{if(Xh(u),t===null)throw Error(I(387));p=u.pendingProps,C=u.memoizedState,j=C.element,Ph(t,u),ul(u,p,null,m);var U=u.memoizedState;if(p=U.element,C.isDehydrated)if(C={element:p,isDehydrated:!1,cache:U.cache,pendingSuspenseBoundaries:U.pendingSuspenseBoundaries,transitions:U.transitions},u.updateQueue.baseState=C,u.memoizedState=C,u.flags&256){j=U_(Error(I(423)),u),u=pl(t,u,p,m,j);break e}else if(p!==j){j=U_(Error(I(424)),u),u=pl(t,u,p,m,j);break e}else for(Bn=Lr(u.stateNode.containerInfo.firstChild),oo=u,vi=!0,ro=null,m=Gc(u,null,p,m),u.child=m;m;)m.flags=m.flags&-3|4096,m=m.sibling;else{if(Ot(),p===j){u=Yo(t,u,m);break e}Sn(t,u,p,m)}u=u.child}return u;case 5:return Xg(u),t===null&&Gi(u),p=u.type,j=u.pendingProps,C=t!==null?t.memoizedProps:null,U=j.children,Tc(p,j)?U=null:C!==null&&Tc(p,C)&&(u.flags|=32),Gh(t,u),Sn(t,u,U,m),u.child;case 6:return t===null&&Gi(u),null;case 13:return um(t,u,m);case 4:return Dh(u,u.stateNode.containerInfo),p=u.pendingProps,t===null?u.child=Dt(u,null,p,m):Sn(t,u,p,m),u.child;case 11:return p=u.type,j=u.pendingProps,j=u.elementType===p?j:bo(p,j),Zs(t,u,p,j,m);case 7:return Sn(t,u,u.pendingProps,m),u.child;case 8:return Sn(t,u,u.pendingProps.children,m),u.child;case 12:return Sn(t,u,u.pendingProps.children,m),u.child;case 10:e:{if(p=u.type._context,j=u.pendingProps,C=u.memoizedProps,U=j.value,bi(Ms,p._currentValue),p._currentValue=U,C!==null)if(Hn(C.value,U)){if(C.children===j.children&&!Wn.current){u=Yo(t,u,m);break e}}else for(C=u.child,C!==null&&(C.return=u);C!==null;){var oe=C.dependencies;if(oe!==null){U=C.child;for(var me=oe.firstContext;me!==null;){if(me.context===p){if(C.tag===1){me=gn(-1,m&-m),me.tag=2;var Ae=C.updateQueue;if(Ae!==null){Ae=Ae.shared;var Qe=Ae.pending;Qe===null?me.next=me:(me.next=Qe.next,Qe.next=me),Ae.pending=me}}C.lanes|=m,me=C.alternate,me!==null&&(me.lanes|=m),Bc(C.return,m,u),oe.lanes|=m;break}me=me.next}}else if(C.tag===10)U=C.type===u.type?null:C.child;else if(C.tag===18){if(U=C.return,U===null)throw Error(I(341));U.lanes|=m,oe=U.alternate,oe!==null&&(oe.lanes|=m),Bc(U,m,u),U=C.sibling}else U=C.child;if(U!==null)U.return=C;else for(U=C;U!==null;){if(U===u){U=null;break}if(C=U.sibling,C!==null){C.return=U.return,U=C;break}U=U.return}C=U}Sn(t,u,j.children,m),u=u.child}return u;case 9:return j=u.type,p=u.pendingProps.children,Us(u,m),j=Vn(j),p=p(j),u.flags|=1,Sn(t,u,p,m),u.child;case 14:return p=u.type,j=bo(p,u.pendingProps),j=bo(p.type,j),qh(t,u,p,j,m);case 15:return tm(t,u,u.type,u.pendingProps,m);case 17:return p=u.type,j=u.pendingProps,j=u.elementType===p?j:bo(p,j),Vr(t,u),u.tag=1,zn(p)?(t=!0,tl(u)):t=!1,Us(u,m),Oh(u,p,j),ml(u,p,j,m),W_(null,u,p,!0,t,m);case 19:return iu(t,u,m);case 22:return eu(t,u,m)}throw Error(I(156,u.tag))};function ud(t,u){return hc(t,u)}function ld(t,u,m,p){this.tag=t,this.key=m,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=u,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=p,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function mo(t,u,m,p){return new ld(t,u,m,p)}function Sm(t){return t=t.prototype,!(!t||!t.isReactComponent)}function sk(t){if(typeof t=="function")return Sm(t)?1:0;if(t!=null){if(t=t.$$typeof,t===Me)return 11;if(t===q)return 14}return 2}function Jr(t,u){var m=t.alternate;return m===null?(m=mo(t.tag,u,t.key,t.mode),m.elementType=t.elementType,m.type=t.type,m.stateNode=t.stateNode,m.alternate=t,t.alternate=m):(m.pendingProps=u,m.type=t.type,m.flags=0,m.subtreeFlags=0,m.deletions=null),m.flags=t.flags&14680064,m.childLanes=t.childLanes,m.lanes=t.lanes,m.child=t.child,m.memoizedProps=t.memoizedProps,m.memoizedState=t.memoizedState,m.updateQueue=t.updateQueue,u=t.dependencies,m.dependencies=u===null?null:{lanes:u.lanes,firstContext:u.firstContext},m.sibling=t.sibling,m.index=t.index,m.ref=t.ref,m}function Ol(t,u,m,p,j,C){var U=2;if(p=t,typeof t=="function")Sm(t)&&(U=1);else if(typeof t=="string")U=5;else e:switch(t){case sa:return Zr(m.children,j,C,u);case oa:U=8,j|=8;break;case za:return t=mo(12,m,u,j|2),t.elementType=za,t.lanes=C,t;case Fe:return t=mo(13,m,u,j),t.elementType=Fe,t.lanes=C,t;case We:return t=mo(19,m,u,j),t.elementType=We,t.lanes=C,t;case fe:return J_(m,j,C,u);default:if(typeof t=="object"&&t!==null)switch(t.$$typeof){case Xa:U=10;break e;case _e:U=9;break e;case Me:U=11;break e;case q:U=14;break e;case Y:U=16,p=null;break e}throw Error(I(130,t==null?t:typeof t,""))}return u=mo(U,m,u,j),u.elementType=t,u.type=p,u.lanes=C,u}function Zr(t,u,m,p){return t=mo(7,t,p,u),t.lanes=m,t}function J_(t,u,m,p){return t=mo(22,t,p,u),t.elementType=fe,t.lanes=m,t.stateNode={isHidden:!1},t}function Pm(t,u,m){return t=mo(6,t,null,u),t.lanes=m,t}function et(t,u,m){return u=mo(4,t.children!==null?t.children:[],t.key,u),u.lanes=m,u.stateNode={containerInfo:t.containerInfo,pendingChildren:null,implementation:t.implementation},u}function uk(t,u,m,p,j){this.tag=u,this.containerInfo=t,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=Uu(0),this.expirationTimes=Uu(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Uu(0),this.identifierPrefix=p,this.onRecoverableError=j,this.mutableSourceEagerHydrationData=null}function Em(t,u,m,p,j,C,U,oe,me){return t=new uk(t,u,m,oe,me),u===1?(u=1,C===!0&&(u|=8)):u=0,C=mo(3,null,null,u),t.current=C,C.stateNode=t,C.memoizedState={element:p,isDehydrated:m,cache:null,transitions:null,pendingSuspenseBoundaries:null},Vc(C),t}function lk(t,u,m){var p=3=0)&&Object.prototype.propertyIsEnumerable.call(ee,ge)&&(pe[ge]=ee[ge])}return pe}function Ne(ee,X){if(ee==null)return{};var pe={},ge=Object.keys(ee),xe,Ue;for(Ue=0;Ue=0)&&(pe[xe]=ee[xe]);return pe}function na(ee,X){var pe=Object.keys(ee);if(Object.getOwnPropertySymbols){var ge=Object.getOwnPropertySymbols(ee);X&&(ge=ge.filter(function(xe){return Object.getOwnPropertyDescriptor(ee,xe).enumerable})),pe.push.apply(pe,ge)}return pe}function ve(ee){for(var X=1;Xee.length)&&(X=ee.length);for(var pe=0,ge=new Array(X);pe, without drag handlers. This will make this component effectively undraggable. Please attach `onDrag` or `onStop` handlers so you can adjust the `position` of this element."),xe}return _e(pe,[{key:"componentDidMount",value:function(){typeof window.SVGElement!="undefined"&&this.findDOMNode()instanceof window.SVGElement&&this.setState({isElementSVG:!0})}},{key:"componentWillUnmount",value:function(){this.setState({dragging:!1})}},{key:"findDOMNode",value:function(){var xe,Ue,Ke;return(xe=(Ue=this.props)===null||Ue===void 0||(Ke=Ue.nodeRef)===null||Ke===void 0?void 0:Ke.current)!==null&&xe!==void 0?xe:V.default.findDOMNode(this)}},{key:"render",value:function(){var xe,Ue=this.props,Ke=Ue.axis,Ve=Ue.bounds,ba=Ue.children,ti=Ue.defaultPosition,Ba=Ue.defaultClassName,Ya=Ue.defaultClassNameDragging,ci=Ue.defaultClassNameDragged,Vi=Ue.position,Ui=Ue.positionOffset,En=Ue.scale,ko=Ce(Ue,De),Mn={},po=null,Fn=Boolean(Vi),Jn=!Fn||this.state.dragging,Zn=Vi||ti,ir={x:(0,Q.canDragX)(this)&&Jn?this.state.x:Zn.x,y:(0,Q.canDragY)(this)&&Jn?this.state.y:Zn.y};this.state.isElementSVG?po=(0,G.createSVGTransform)(ir,Ui):Mn=(0,G.createCSSTransform)(ir,Ui);var a_=(0,W.default)(ba.props.className||"",Ba,(xe={},B(xe,Ya,this.state.dragging),B(xe,ci,this.state.dragged),xe));return $.createElement(Oe.default,Le({},ko,{onStart:this.onDragStart,onDrag:this.onDrag,onStop:this.onDragStop}),$.cloneElement($.Children.only(ba),{className:a_,style:ve(ve({},ba.props.style),Mn),transform:po}))}}],[{key:"getDerivedStateFromProps",value:function(xe,Ue){var Ke=xe.position,Ve=Ue.prevPropsPosition;return Ke&&(!Ve||Ke.x!==Ve.x||Ke.y!==Ve.y)?((0,ye.default)("Draggable: getDerivedStateFromProps %j",{position:Ke,prevPropsPosition:Ve}),{x:Ke.x,y:Ke.y,prevPropsPosition:ve({},Ke)}):null}}]),pe}($.Component);g.default=Z,B(Z,"displayName","Draggable"),B(Z,"propTypes",ve(ve({},Oe.default.propTypes),{},{axis:I.default.oneOf(["both","x","y","none"]),bounds:I.default.oneOfType([I.default.shape({left:I.default.number,right:I.default.number,top:I.default.number,bottom:I.default.number}),I.default.string,I.default.oneOf([!1])]),defaultClassName:I.default.string,defaultClassNameDragging:I.default.string,defaultClassNameDragged:I.default.string,defaultPosition:I.default.shape({x:I.default.number,y:I.default.number}),positionOffset:I.default.shape({x:I.default.oneOfType([I.default.number,I.default.string]),y:I.default.oneOfType([I.default.number,I.default.string])}),position:I.default.shape({x:I.default.number,y:I.default.number}),className:de.dontSetMe,style:de.dontSetMe,transform:de.dontSetMe})),B(Z,"defaultProps",ve(ve({},Oe.default.defaultProps),{},{axis:"both",bounds:!1,defaultClassName:"react-draggable",defaultClassNameDragging:"react-draggable-dragging",defaultClassNameDragged:"react-draggable-dragged",defaultPosition:{x:0,y:0},scale:1}))},783:function(F,g,x){"use strict";function R(q){return R=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(Y){return typeof Y}:function(Y){return Y&&typeof Symbol=="function"&&Y.constructor===Symbol&&Y!==Symbol.prototype?"symbol":typeof Y},R(q)}Object.defineProperty(g,"__esModule",{value:!0}),g.default=void 0;var $=De(x(7294)),I=Oe(x(5697)),V=Oe(x(3935)),W=x(1825),G=x(2849),Q=x(9280),de=Oe(x(5904));function Oe(q){return q&&q.__esModule?q:{default:q}}function ye(q){if(typeof WeakMap!="function")return null;var Y=new WeakMap,fe=new WeakMap;return(ye=function(B){return B?fe:Y})(q)}function De(q,Y){if(!Y&&q&&q.__esModule)return q;if(q===null||R(q)!=="object"&&typeof q!="function")return{default:q};var fe=ye(Y);if(fe&&fe.has(q))return fe.get(q);var ne={},B=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var Z in q)if(Z!=="default"&&Object.prototype.hasOwnProperty.call(q,Z)){var ee=B?Object.getOwnPropertyDescriptor(q,Z):null;ee&&(ee.get||ee.set)?Object.defineProperty(ne,Z,ee):ne[Z]=q[Z]}return ne.default=q,fe&&fe.set(q,ne),ne}function we(q,Y){return Ne(q)||Ce(q,Y)||Re(q,Y)||Te()}function Te(){throw new TypeError(`Invalid attempt to destructure non-iterable instance. +In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Re(q,Y){if(q){if(typeof q=="string")return Le(q,Y);var fe=Object.prototype.toString.call(q).slice(8,-1);if(fe==="Object"&&q.constructor&&(fe=q.constructor.name),fe==="Map"||fe==="Set")return Array.from(q);if(fe==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(fe))return Le(q,Y)}}function Le(q,Y){(Y==null||Y>q.length)&&(Y=q.length);for(var fe=0,ne=new Array(Y);fe not mounted on DragStart!");var ge=pe.ownerDocument;if(!(ne.props.disabled||!(X.target instanceof ge.defaultView.Node)||ne.props.handle&&!(0,W.matchesSelectorAndParentsTo)(X.target,ne.props.handle,pe)||ne.props.cancel&&(0,W.matchesSelectorAndParentsTo)(X.target,ne.props.cancel,pe))){X.type==="touchstart"&&X.preventDefault();var xe=(0,W.getTouchIdentifier)(X);ne.setState({touchIdentifier:xe});var Ue=(0,G.getControlPosition)(X,xe,oa(ne));if(Ue!=null){var Ke=Ue.x,Ve=Ue.y,ba=(0,G.createCoreData)(oa(ne),Ke,Ve);(0,de.default)("DraggableCore: handleDragStart: %j",ba),(0,de.default)("calling",ne.props.onStart);var ti=ne.props.onStart(X,ba);ti===!1||ne.mounted===!1||(ne.props.enableUserSelectHack&&(0,W.addUserSelectStyles)(ge),ne.setState({dragging:!0,lastX:Ke,lastY:Ve}),(0,W.addEvent)(ge,Fe.move,ne.handleDrag),(0,W.addEvent)(ge,Fe.stop,ne.handleDragStop))}}}),_e(oa(ne),"handleDrag",function(X){var pe=(0,G.getControlPosition)(X,ne.state.touchIdentifier,oa(ne));if(pe!=null){var ge=pe.x,xe=pe.y;if(Array.isArray(ne.props.grid)){var Ue=ge-ne.state.lastX,Ke=xe-ne.state.lastY,Ve=(0,G.snapToGrid)(ne.props.grid,Ue,Ke),ba=we(Ve,2);if(Ue=ba[0],Ke=ba[1],!Ue&&!Ke)return;ge=ne.state.lastX+Ue,xe=ne.state.lastY+Ke}var ti=(0,G.createCoreData)(oa(ne),ge,xe);(0,de.default)("DraggableCore: handleDrag: %j",ti);var Ba=ne.props.onDrag(X,ti);if(Ba===!1||ne.mounted===!1){try{ne.handleDragStop(new MouseEvent("mouseup"))}catch(ci){var Ya=document.createEvent("MouseEvents");Ya.initMouseEvent("mouseup",!0,!0,window,0,0,0,0,0,!1,!1,!1,!1,0,null),ne.handleDragStop(Ya)}return}ne.setState({lastX:ge,lastY:xe})}}),_e(oa(ne),"handleDragStop",function(X){if(ne.state.dragging){var pe=(0,G.getControlPosition)(X,ne.state.touchIdentifier,oa(ne));if(pe!=null){var ge=pe.x,xe=pe.y;if(Array.isArray(ne.props.grid)){var Ue=ge-ne.state.lastX||0,Ke=xe-ne.state.lastY||0,Ve=(0,G.snapToGrid)(ne.props.grid,Ue,Ke),ba=we(Ve,2);Ue=ba[0],Ke=ba[1],ge=ne.state.lastX+Ue,xe=ne.state.lastY+Ke}var ti=(0,G.createCoreData)(oa(ne),ge,xe),Ba=ne.props.onStop(X,ti);if(Ba===!1||ne.mounted===!1)return!1;var Ya=ne.findDOMNode();Ya&&ne.props.enableUserSelectHack&&(0,W.removeUserSelectStyles)(Ya.ownerDocument),(0,de.default)("DraggableCore: handleDragStop: %j",ti),ne.setState({dragging:!1,lastX:NaN,lastY:NaN}),Ya&&((0,de.default)("DraggableCore: Removing handlers"),(0,W.removeEvent)(Ya.ownerDocument,Fe.move,ne.handleDrag),(0,W.removeEvent)(Ya.ownerDocument,Fe.stop,ne.handleDragStop))}}}),_e(oa(ne),"onMouseDown",function(X){return Fe=Me.mouse,ne.handleDragStart(X)}),_e(oa(ne),"onMouseUp",function(X){return Fe=Me.mouse,ne.handleDragStop(X)}),_e(oa(ne),"onTouchStart",function(X){return Fe=Me.touch,ne.handleDragStart(X)}),_e(oa(ne),"onTouchEnd",function(X){return Fe=Me.touch,ne.handleDragStop(X)}),ne}return Ye(fe,[{key:"componentDidMount",value:function(){this.mounted=!0;var B=this.findDOMNode();B&&(0,W.addEvent)(B,Me.touch.start,this.onTouchStart,{passive:!1})}},{key:"componentWillUnmount",value:function(){this.mounted=!1;var B=this.findDOMNode();if(B){var Z=B.ownerDocument;(0,W.removeEvent)(Z,Me.mouse.move,this.handleDrag),(0,W.removeEvent)(Z,Me.touch.move,this.handleDrag),(0,W.removeEvent)(Z,Me.mouse.stop,this.handleDragStop),(0,W.removeEvent)(Z,Me.touch.stop,this.handleDragStop),(0,W.removeEvent)(B,Me.touch.start,this.onTouchStart,{passive:!1}),this.props.enableUserSelectHack&&(0,W.removeUserSelectStyles)(Z)}}},{key:"findDOMNode",value:function(){var B,Z,ee;return(B=this.props)!==null&&B!==void 0&&B.nodeRef?(Z=this.props)===null||Z===void 0||(ee=Z.nodeRef)===null||ee===void 0?void 0:ee.current:V.default.findDOMNode(this)}},{key:"render",value:function(){return $.cloneElement($.Children.only(this.props.children),{onMouseDown:this.onMouseDown,onMouseUp:this.onMouseUp,onTouchEnd:this.onTouchEnd})}}]),fe}($.Component);g.default=We,_e(We,"displayName","DraggableCore"),_e(We,"propTypes",{allowAnyClick:I.default.bool,disabled:I.default.bool,enableUserSelectHack:I.default.bool,offsetParent:function(Y,fe){if(Y[fe]&&Y[fe].nodeType!==1)throw new Error("Draggable's offsetParent must be a DOM Node.")},grid:I.default.arrayOf(I.default.number),handle:I.default.string,cancel:I.default.string,nodeRef:I.default.object,onStart:I.default.func,onDrag:I.default.func,onStop:I.default.func,onMouseDown:I.default.func,scale:I.default.number,className:Q.dontSetMe,style:Q.dontSetMe,transform:Q.dontSetMe}),_e(We,"defaultProps",{allowAnyClick:!1,disabled:!1,enableUserSelectHack:!0,onStart:function(){},onDrag:function(){},onStop:function(){},onMouseDown:function(){},scale:1})},1193:function(F,g,x){"use strict";var R=x(5668),$=R.default,I=R.DraggableCore;F.exports=$,F.exports.default=$,F.exports.DraggableCore=I},1825:function(F,g,x){"use strict";function R(_e){return R=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(Me){return typeof Me}:function(Me){return Me&&typeof Symbol=="function"&&Me.constructor===Symbol&&Me!==Symbol.prototype?"symbol":typeof Me},R(_e)}Object.defineProperty(g,"__esModule",{value:!0}),g.addClassName=za,g.addEvent=we,g.addUserSelectStyles=sa,g.createCSSTransform=ve,g.createSVGTransform=Ye,g.getTouch=ma,g.getTouchIdentifier=ta,g.getTranslation=je,g.innerHeight=Ce,g.innerWidth=Ne,g.matchesSelector=ye,g.matchesSelectorAndParentsTo=De,g.offsetXYFromParent=na,g.outerHeight=Re,g.outerWidth=Le,g.removeClassName=Xa,g.removeEvent=Te,g.removeUserSelectStyles=oa;var $=x(9280),I=W(x(8650));function V(_e){if(typeof WeakMap!="function")return null;var Me=new WeakMap,Fe=new WeakMap;return(V=function(q){return q?Fe:Me})(_e)}function W(_e,Me){if(!Me&&_e&&_e.__esModule)return _e;if(_e===null||R(_e)!=="object"&&typeof _e!="function")return{default:_e};var Fe=V(Me);if(Fe&&Fe.has(_e))return Fe.get(_e);var We={},q=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var Y in _e)if(Y!=="default"&&Object.prototype.hasOwnProperty.call(_e,Y)){var fe=q?Object.getOwnPropertyDescriptor(_e,Y):null;fe&&(fe.get||fe.set)?Object.defineProperty(We,Y,fe):We[Y]=_e[Y]}return We.default=_e,Fe&&Fe.set(_e,We),We}function G(_e,Me){var Fe=Object.keys(_e);if(Object.getOwnPropertySymbols){var We=Object.getOwnPropertySymbols(_e);Me&&(We=We.filter(function(q){return Object.getOwnPropertyDescriptor(_e,q).enumerable})),Fe.push.apply(Fe,We)}return Fe}function Q(_e){for(var Me=1;Me0&&arguments[0]!==void 0?arguments[0]:"transform";if(typeof window=="undefined")return"";var Oe=(G=window.document)===null||G===void 0||(Q=G.documentElement)===null||Q===void 0?void 0:Q.style;if(!Oe||de in Oe)return"";for(var ye=0;ye: Unmounted during event!");return Te}},9280:function(F,g){"use strict";Object.defineProperty(g,"__esModule",{value:!0}),g.dontSetMe=B,g.findInArray=x,g.int=I,g.isFunction=R,g.isNum=$;function x(W,G){for(var Q=0,de=W.length;Q=0||Object.prototype.hasOwnProperty.call(V,X)&&(ee[X]=V[X]);return ee}function Me(V,Z,ee){return Z in V?Object.defineProperty(V,Z,{value:ee,enumerable:!0,configurable:!0,writable:!0}):V[Z]=ee,V}function Fe(V,Z){if(!(V instanceof Z))throw new TypeError("Cannot call a class as a function")}function We(V,Z){if(!V)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return Z&&(typeof Z=="object"||typeof Z=="function")?Z:V}function q(V,Z){if(typeof Z!="function"&&Z!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof Z);V.prototype=Object.create(Z&&Z.prototype,{constructor:{value:V,enumerable:!1,writable:!0,configurable:!0}}),Z&&(Object.setPrototypeOf?Object.setPrototypeOf(V,Z):V.__proto__=Z)}var Y=function(V){q(Z,V);function Z(ee){Fe(this,Z);var X=We(this,(Z.__proto__||Object.getPrototypeOf(Z)).call(this,ee));fe.call(X),ee.inline||console.warn("[Deprecation] The inline attribute is deprecated and will be removed in v7.x.x, please use inputFieldPosition instead.");var pe=ee.suggestions;return X.state={suggestions:pe,query:"",isFocused:!1,selectedIndex:-1,selectionMode:!1,ariaLiveStatus:"",currentEditIndex:-1},X.reactTagsRef=(0,B.createRef)(),X.handleFocus=X.handleFocus.bind(X),X.handleBlur=X.handleBlur.bind(X),X.handleKeyDown=X.handleKeyDown.bind(X),X.handleChange=X.handleChange.bind(X),X.moveTag=X.moveTag.bind(X),X.handlePaste=X.handlePaste.bind(X),X.handleSuggestionHover=X.handleSuggestionHover.bind(X),X.handleSuggestionClick=X.handleSuggestionClick.bind(X),X}return I(Z,[{key:"componentDidMount",value:function(){var X=this.props,pe=X.autofocus,ge=X.readOnly;pe&&!ge&&this.resetAndFocusInput()}},{key:"componentDidUpdate",value:function(X){(0,Oe.default)(X.suggestions,this.props.suggestions)||this.updateSuggestions()}},{key:"handleDelete",value:function(X,pe){pe.preventDefault(),pe.stopPropagation();var ge=this.props.tags.slice();if(ge.length!==0){var xe="Tag at index "+X+" with value "+ge[X].id+" deleted.";this.props.handleDelete(X,pe);var Ue=this.reactTagsRef.current.querySelectorAll(".ReactTags__remove"),Ke=void 0,Be=void 0,ba=void 0;X===0&&ge.length>1?(Ke=Ue[0],Be=0,ba=ge[1]):(Ke=Ue[X-1],Be=X-1,ba=ge[Be]),Ke||(Be=-1,Ke=this.textInput),Be>=0?xe+=" Tag at index "+Be+" with value "+ba.id+" focussed. Press backspace to remove":xe+="Input focussed. Press enter to add a new tag",Ke.focus(),this.setState({ariaLiveStatus:xe})}}},{key:"handleTagClick",value:function(X,pe,ge){var xe=this,Ue=this.props,Ke=Ue.editable,Be=Ue.handleTagClick,ba=Ue.labelField;Ke&&this.setState({currentEditIndex:X,query:pe[ba]},function(){xe.tagInput.focus()}),Be&&Be(X,ge)}},{key:"handleChange",value:function(X){this.props.handleInputChange&&this.props.handleInputChange(X.target.value);var pe=X.target.value.trim();this.setState({query:pe},this.updateSuggestions)}},{key:"handleFocus",value:function(X){var pe=X.target.value;this.props.handleInputFocus&&this.props.handleInputFocus(pe),this.setState({isFocused:!0})}},{key:"handleBlur",value:function(X){var pe=X.target.value;this.props.handleInputBlur&&(this.props.handleInputBlur(pe),this.textInput&&(this.textInput.value="")),this.setState({isFocused:!1,currentEditIndex:-1})}},{key:"handleKeyDown",value:function(X){var pe=this.state,ge=pe.query,xe=pe.selectedIndex,Ue=pe.suggestions,Ke=pe.selectionMode;if(X.keyCode===oa.KEYS.ESCAPE&&(X.preventDefault(),X.stopPropagation(),this.setState({selectedIndex:-1,selectionMode:!1,suggestions:[],currentEditIndex:-1})),this.props.delimiters.indexOf(X.keyCode)!==-1&&!X.shiftKey){(X.keyCode!==oa.KEYS.TAB||ge!=="")&&X.preventDefault();var Be=Ke&&xe!==-1?Ue[xe]:Me({id:ge},this.props.labelField,ge);Be!==""&&this.addTag(Be)}X.keyCode===oa.KEYS.BACKSPACE&&ge===""&&this.props.allowDeleteFromEmptyInput&&this.handleDelete(this.props.tags.length-1,X),X.keyCode===oa.KEYS.UP_ARROW&&(X.preventDefault(),this.setState({selectedIndex:xe<=0?Ue.length-1:xe-1,selectionMode:!0})),X.keyCode===oa.KEYS.DOWN_ARROW&&(X.preventDefault(),this.setState({selectedIndex:Ue.length===0?-1:(xe+1)%Ue.length,selectionMode:!0}))}},{key:"handlePaste",value:function(X){var pe=this;if(this.props.allowAdditionFromPaste){X.preventDefault();var ge=X.clipboardData||window.clipboardData,xe=ge.getData("text"),Ue=this.props.maxLength,Ke=Ue===void 0?xe.length:Ue,Be=Math.min(Ke,xe.length),ba=ge.getData("text").substr(0,Be),ti=(0,sa.buildRegExpFromDelimiters)(this.props.delimiters),Va=ba.split(ti);(0,Te.default)(Va).forEach(function(Ya){return pe.addTag(Me({id:Ya},pe.props.labelField,Ya))})}}},{key:"handleSuggestionClick",value:function(X){this.addTag(this.state.suggestions[X])}},{key:"handleSuggestionHover",value:function(X){this.setState({selectedIndex:X,selectionMode:!0})}},{key:"moveTag",value:function(X,pe){var ge=this.props.tags,xe=ge[X];this.props.handleDrag(xe,X,pe)}},{key:"render",value:function(){var X=this,pe=this.getTagItems(),ge=$({},oa.DEFAULT_CLASSNAMES,this.props.classNames),xe=this.state.query.trim(),Ue=this.state.selectedIndex,Ke=this.state.suggestions,Be=this.props,ba=Be.placeholder,ti=Be.name,Va=Be.id,Ya=Be.maxLength,ci=Be.inline,Bi=Be.inputFieldPosition,Ui=Be.inputValue,En=Be.inputProps,ko=Be.clearAll,Mn=Be.tags,po=ci?Bi:oa.INPUT_FIELD_POSITIONS.BOTTOM,Fn=this.props.readOnly?null:W.default.createElement("div",{className:ge.tagInput},W.default.createElement("input",$({},En,{ref:function(Zn){X.textInput=Zn},className:ge.tagInputField,type:"text",placeholder:ba,"aria-label":ba,onFocus:this.handleFocus,onBlur:this.handleBlur,onChange:this.handleChange,onKeyDown:this.handleKeyDown,onPaste:this.handlePaste,name:ti,id:Va,maxLength:Ya,value:Ui,"data-automation":"input","data-testid":"input"})),W.default.createElement(Ne.default,{query:xe,suggestions:Ke,labelField:this.props.labelField,selectedIndex:Ue,handleClick:this.handleSuggestionClick,handleHover:this.handleSuggestionHover,minQueryLength:this.props.minQueryLength,shouldRenderSuggestions:this.props.shouldRenderSuggestions,isFocused:this.state.isFocused,classNames:ge,renderSuggestion:this.props.renderSuggestion}),ko&&Mn.length>0&&W.default.createElement(Le.default,{classNames:ge,onClick:this.clearAll}));return W.default.createElement("div",{className:(0,je.default)(ge.tags,"react-tags-wrapper"),ref:this.reactTagsRef},W.default.createElement("p",{role:"alert",className:"sr-only",style:{position:"absolute",overflow:"hidden",clip:"rect(0 0 0 0)",margin:"-1px",padding:0,width:"1px",height:"1px",border:0}},this.state.ariaLiveStatus),po===oa.INPUT_FIELD_POSITIONS.TOP&&Fn,W.default.createElement("div",{className:ge.selected},pe,po===oa.INPUT_FIELD_POSITIONS.INLINE&&Fn),po===oa.INPUT_FIELD_POSITIONS.BOTTOM&&Fn)}}]),Z}(B.Component);Y.propTypes={placeholder:ve.default.string,labelField:ve.default.string,suggestions:ve.default.arrayOf(ve.default.shape({id:ve.default.string.isRequired})),delimiters:ve.default.arrayOf(ve.default.number),autofocus:ve.default.bool,inline:ve.default.bool,inputFieldPosition:ve.default.oneOf([oa.INPUT_FIELD_POSITIONS.INLINE,oa.INPUT_FIELD_POSITIONS.TOP,oa.INPUT_FIELD_POSITIONS.BOTTOM]),handleDelete:ve.default.func,handleAddition:ve.default.func,onTagUpdate:ve.default.func,handleDrag:ve.default.func,handleFilterSuggestions:ve.default.func,handleTagClick:ve.default.func,allowDeleteFromEmptyInput:ve.default.bool,allowAdditionFromPaste:ve.default.bool,allowDragDrop:ve.default.bool,handleInputChange:ve.default.func,handleInputFocus:ve.default.func,handleInputBlur:ve.default.func,minQueryLength:ve.default.number,shouldRenderSuggestions:ve.default.func,removeComponent:ve.default.func,autocomplete:ve.default.oneOfType([ve.default.bool,ve.default.number]),readOnly:ve.default.bool,classNames:ve.default.object,name:ve.default.string,id:ve.default.string,maxLength:ve.default.number,inputValue:ve.default.string,tags:ve.default.arrayOf(ve.default.shape({id:ve.default.string.isRequired,className:ve.default.string})),allowUnique:ve.default.bool,renderSuggestion:ve.default.func,inputProps:ve.default.object,editable:ve.default.bool,clearAll:ve.default.bool,onClearAll:ve.default.func},Y.defaultProps={placeholder:oa.DEFAULT_PLACEHOLDER,labelField:oa.DEFAULT_LABEL_FIELD,suggestions:[],delimiters:[].concat(Xa(oa.KEYS.ENTER),[oa.KEYS.TAB]),autofocus:!0,inline:!0,inputFieldPosition:oa.INPUT_FIELD_POSITIONS.INLINE,handleDelete:De.default,handleAddition:De.default,allowDeleteFromEmptyInput:!0,allowAdditionFromPaste:!0,autocomplete:!1,readOnly:!1,allowUnique:!0,allowDragDrop:!0,tags:[],inputProps:{},onTagUpdate:De.default,editable:!1,clearAll:!1,handleClearAll:De.default};var fe=function(){var Z=this;this.filteredSuggestions=function(ee){var X=Z.props.suggestions;if(Z.props.allowUnique){var pe=Z.props.tags.map(function(Ue){return Ue.id.toLowerCase()});X=X.filter(function(Ue){return!pe.includes(Ue.id.toLowerCase())})}if(Z.props.handleFilterSuggestions)return Z.props.handleFilterSuggestions(ee,X);var ge=X.filter(function(Ue){return Z.getQueryIndex(ee,Ue)===0}),xe=X.filter(function(Ue){return Z.getQueryIndex(ee,Ue)>0});return ge.concat(xe)},this.getQueryIndex=function(ee,X){return X[Z.props.labelField].toLowerCase().indexOf(ee.toLowerCase())},this.resetAndFocusInput=function(){Z.setState({query:""}),Z.textInput&&(Z.textInput.value="",Z.textInput.focus())},this.updateSuggestions=function(){var ee=Z.state,X=ee.query,pe=ee.selectedIndex,ge=Z.filteredSuggestions(X);Z.setState({suggestions:ge,selectedIndex:pe>=ge.length?ge.length-1:pe})},this.addTag=function(ee){var X=Z.props,pe=X.tags,ge=X.labelField,xe=X.allowUnique,Ue=Z.state.currentEditIndex;if(!(!ee.id||!ee[ge])){var Ke=pe.map(function(ba){return ba.id.toLowerCase()});if(!(xe&&Ke.indexOf(ee.id.toLowerCase())>=0)){if(Z.props.autocomplete){var Be=Z.filteredSuggestions(ee[ge]);(Z.props.autocomplete===1&&Be.length===1||Z.props.autocomplete===!0&&Be.length)&&(ee=Be[0])}Ue!==-1&&Z.props.onTagUpdate?Z.props.onTagUpdate(Ue,ee):Z.props.handleAddition(ee),Z.setState({query:"",selectionMode:!1,selectedIndex:-1,currentEditIndex:-1}),Z.resetAndFocusInput()}}},this.clearAll=function(){Z.props.onClearAll&&Z.props.onClearAll()},this.getTagItems=function(){var ee=Z.props,X=ee.tags,pe=ee.labelField,ge=ee.removeComponent,xe=ee.readOnly,Ue=ee.allowDragDrop,Ke=$({},oa.DEFAULT_CLASSNAMES,Z.props.classNames),Be=Z.state,ba=Be.currentEditIndex,ti=Be.query,Va=Ue?Z.moveTag:null;return X.map(function(Ya,ci){return W.default.createElement(W.default.Fragment,{key:ci},ba===ci?W.default.createElement("div",{className:Ke.editTagInput},W.default.createElement("input",{ref:function(Ui){Z.tagInput=Ui},onFocus:Z.handleFocus,value:ti,onChange:Z.handleChange,onKeyDown:Z.handleKeyDown,onBlur:Z.handleBlur,className:Ke.editTagInputField,onPaste:Z.handlePaste,"data-testid":"tag-edit"})):W.default.createElement(ta.default,{index:ci,tag:Ya,labelField:pe,onDelete:Z.handleDelete.bind(Z,ci),moveTag:Va,removeComponent:ge,onTagClicked:Z.handleTagClick.bind(Z,ci,Ya),readOnly:xe,classNames:Ke,allowDragDrop:Ue}))})}},ne=function(Z){var ee=_e(Z,[]);return W.default.createElement(G.DndProvider,{backend:Q.HTML5Backend},W.default.createElement(Y,ee))};g.V=ne,R=Y,R=oa.KEYS},2585:function(F,g,x){"use strict";Object.defineProperty(g,"__esModule",{value:!0});var R=x(7294),$=G(R),I=x(5697),B=G(I),W=x(1117);function G(Oe){return Oe&&Oe.__esModule?Oe:{default:Oe}}var Q=String.fromCharCode(215),de=function(ye){var De=ye.readOnly,we=ye.removeComponent,Te=ye.onRemove,Re=ye.className,Le=ye.tag,Ce=ye.index,Ne=function(je){if(W.KEYS.ENTER.includes(je.keyCode)||je.keyCode===W.KEYS.SPACE){je.preventDefault(),je.stopPropagation();return}je.keyCode===W.KEYS.BACKSPACE&&Te(je)};if(De)return $.default.createElement("span",null);var na="Tag at index "+Ce+" with value "+Le.id+" focussed. Press backspace to remove";if(we){var ve=we;return $.default.createElement(ve,{onRemove:Te,onKeyDown:Ne,className:Re,"aria-label":na,tag:Le,index:Ce})}return $.default.createElement("button",{onClick:Te,onKeyDown:Ne,className:Re,type:"button","aria-label":na},Q)};de.propTypes={className:B.default.string,onRemove:B.default.func.isRequired,readOnly:B.default.bool,removeComponent:B.default.func,tag:B.default.shape({id:B.default.string.isRequired,className:B.default.string,key:B.default.string}),index:B.default.number.isRequired},g.default=de},1331:function(F,g,x){"use strict";Object.defineProperty(g,"__esModule",{value:!0});var R=function(){function Ce(Ne,na){for(var ve=0;ve=ve?na.scrollTop+=je-ve+Ye:je<0&&(na.scrollTop+=je)},Le=function(Ce){Te(Ne,Ce);function Ne(){var na,ve,Ye,je;De(this,Ne);for(var ma=arguments.length,ta=Array(ma),sa=0;sa"+(0,Oe.default)(Me)+""})}},Ye.shouldRenderSuggestions=function(oa){var za=Ye.props,Xa=za.minQueryLength,_e=za.isFocused;return oa.length>=Xa&&_e},Ye.renderSuggestion=function(oa,za){var Xa=Ye.props.renderSuggestion;return typeof Xa=="function"?Xa(oa,za):I.default.createElement("span",{dangerouslySetInnerHTML:Ye.markIt(oa,za)})},ve),we(Ye,je)}return R(Ne,[{key:"shouldComponentUpdate",value:function(ve){var Ye=this.props,je=Ye.shouldRenderSuggestions||this.shouldRenderSuggestions;return Ye.isFocused!==ve.isFocused||!(0,Q.default)(Ye.suggestions,ve.suggestions)||je(ve.query)||je(ve.query)!==je(Ye.query)}},{key:"componentDidUpdate",value:function(ve){var Ye=this.props,je=Ye.selectedIndex,ma=Ye.classNames;if(this.suggestionsContainer&&ve.selectedIndex!==je){var ta=this.suggestionsContainer.querySelector("."+ma.activeSuggestion);ta&&Re(ta,this.suggestionsContainer)}}},{key:"render",value:function(){var ve=this,Ye=this.props,je=Ye.suggestions.map(function(ta,sa){return I.default.createElement("li",{key:sa,onMouseDown:Ye.handleClick.bind(null,sa),onTouchStart:Ye.handleClick.bind(null,sa),onMouseOver:Ye.handleHover.bind(null,sa),className:sa===Ye.selectedIndex?Ye.classNames.activeSuggestion:""},this.renderSuggestion(ta,Ye.query))}.bind(this)),ma=Ye.shouldRenderSuggestions||this.shouldRenderSuggestions;return je.length===0||!ma(Ye.query)?null:I.default.createElement("div",{ref:function(sa){ve.suggestionsContainer=sa},className:this.props.classNames.suggestions},I.default.createElement("ul",null," ",je," "))}}]),Ne}($.Component);Le.propTypes={query:W.default.string.isRequired,selectedIndex:W.default.number.isRequired,suggestions:W.default.array.isRequired,handleClick:W.default.func.isRequired,handleHover:W.default.func.isRequired,minQueryLength:W.default.number,shouldRenderSuggestions:W.default.func,isFocused:W.default.bool.isRequired,classNames:W.default.object,labelField:W.default.string.isRequired,renderSuggestion:W.default.func},Le.defaultProps={minQueryLength:2},g.default=Le},5129:function(F,g,x){"use strict";Object.defineProperty(g,"__esModule",{value:!0});var R=function(){function Le(Ce,Ne){var na=[],ve=!0,Ye=!1,je=void 0;try{for(var ma=Ce[Symbol.iterator](),ta;!(ve=(ta=ma.next()).done)&&(na.push(ta.value),!(Ne&&na.length===Ne));ve=!0);}catch(sa){Ye=!0,je=sa}finally{try{!ve&&ma.return&&ma.return()}finally{if(Ye)throw je}}return na}return function(Ce,Ne){if(Array.isArray(Ce))return Ce;if(Symbol.iterator in Object(Ce))return Le(Ce,Ne);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),$=x(7294),I=we($),B=x(1976),W=x(5697),G=we(W),Q=x(4184),de=we(Q),Oe=x(3332),ye=x(2585),De=we(ye);function we(Le){return Le&&Le.__esModule?Le:{default:Le}}var Te={TAG:"tag"},Re=function(Ce){var Ne=(0,$.useRef)(null),na=Ce.readOnly,ve=Ce.tag,Ye=Ce.classNames,je=Ce.index,ma=(0,B.useDrag)(function(){return{type:Te.TAG,collect:function(ne){return{isDragging:!!ne.isDragging()}},item:Ce,canDrag:function(){return(0,Oe.canDrag)(Ce)}}}),ta=R(ma,2),sa=ta[0].isDragging,oa=ta[1],za=(0,B.useDrop)(function(){return{accept:Te.TAG,drop:function(ne,V){var Z=ne.index,ee=je;Z!==ee&&Ce.moveTag(Z,ee)},canDrop:function(ne){return(0,Oe.canDrop)(ne)}}}),Xa=R(za,2),_e=Xa[1];oa(_e(Ne));var Me=Ce.tag[Ce.labelField],Fe=ve.className,We=Fe===void 0?"":Fe,q=sa?0:1,Y=I.default.createElement("span",{ref:Ne,className:(0,de.default)("tag-wrapper",Ye.tag,We),style:{opacity:q,cursor:(0,Oe.canDrag)(Ce)?"move":"auto"},onClick:Ce.onTagClicked,onTouchStart:Ce.onTagClicked},Me,I.default.createElement(De.default,{tag:Ce.tag,className:Ye.remove,removeComponent:Ce.removeComponent,onRemove:Ce.onDelete,readOnly:na,index:je}));return Y};Re.propTypes={labelField:G.default.string,onDelete:G.default.func.isRequired,tag:G.default.shape({id:G.default.string.isRequired,className:G.default.string,key:G.default.string}),moveTag:G.default.func,removeComponent:G.default.func,onTagClicked:G.default.func,classNames:G.default.object,readOnly:G.default.bool,index:G.default.number.isRequired},Re.defaultProps={labelField:"text",readOnly:!1},g.default=Re},1117:function(F,g){"use strict";Object.defineProperty(g,"__esModule",{value:!0});var x=g.KEYS={ENTER:[10,13],TAB:9,BACKSPACE:8,UP_ARROW:38,DOWN_ARROW:40,ESCAPE:27,SPACE:32,COMMA:188},R=g.DEFAULT_PLACEHOLDER="Press enter to add new tag",$=g.DEFAULT_LABEL_FIELD="text",I=g.DEFAULT_CLASSNAMES={tags:"ReactTags__tags",tagInput:"ReactTags__tagInput",tagInputField:"ReactTags__tagInputField",selected:"ReactTags__selected",tag:"ReactTags__tag",remove:"ReactTags__remove",suggestions:"ReactTags__suggestions",activeSuggestion:"ReactTags__activeSuggestion",editTagInput:"ReactTags__editTagInput",editTagInputField:"ReactTags__editTagInputField",clearAll:"ReactTags__clearAll"},B=g.INPUT_FIELD_POSITIONS={INLINE:"inline",TOP:"top",BOTTOM:"bottom"}},3332:function(F,g,x){"use strict";Object.defineProperty(g,"__esModule",{value:!0}),g.buildRegExpFromDelimiters=B,g.canDrag=W,g.canDrop=G;var R=x(3522),$=I(R);function I(Q){return Q&&Q.__esModule?Q:{default:Q}}function B(Q){var de=Q.map(function(ye){var De=ye-48*Math.floor(ye/48);return String.fromCharCode(96<=ye?De:ye)}).join(""),Oe=(0,$.default)(de);return new RegExp("["+Oe+"]+")}function W(Q){var de=Q.moveTag,Oe=Q.readOnly,ye=Q.allowDragDrop;return de!==void 0&&!Oe&&ye}function G(Q){var de=Q.readOnly,Oe=Q.allowDragDrop;return!de&&Oe}},5251:function(F,g,x){"use strict";var R;var $=x(7294),I=Symbol.for("react.element"),B=Symbol.for("react.fragment"),W=Object.prototype.hasOwnProperty,G=$.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,Q={key:!0,ref:!0,__self:!0,__source:!0};function de(Oe,ye,De){var we,Te={},Re=null,Le=null;De!==void 0&&(Re=""+De),ye.key!==void 0&&(Re=""+ye.key),ye.ref!==void 0&&(Le=ye.ref);for(we in ye)W.call(ye,we)&&!Q.hasOwnProperty(we)&&(Te[we]=ye[we]);if(Oe&&Oe.defaultProps)for(we in ye=Oe.defaultProps,ye)Te[we]===void 0&&(Te[we]=ye[we]);return{$$typeof:I,type:Oe,key:Re,ref:Le,props:Te,_owner:G.current}}R=B,g.jsx=de,g.jsxs=de},2408:function(F,g){"use strict";var x=Symbol.for("react.element"),R=Symbol.for("react.portal"),$=Symbol.for("react.fragment"),I=Symbol.for("react.strict_mode"),B=Symbol.for("react.profiler"),W=Symbol.for("react.provider"),G=Symbol.for("react.context"),Q=Symbol.for("react.forward_ref"),de=Symbol.for("react.suspense"),Oe=Symbol.for("react.memo"),ye=Symbol.for("react.lazy"),De=Symbol.iterator;function we(V){return V===null||typeof V!="object"?null:(V=De&&V[De]||V["@@iterator"],typeof V=="function"?V:null)}var Te={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},Re=Object.assign,Le={};function Ce(V,Z,ee){this.props=V,this.context=Z,this.refs=Le,this.updater=ee||Te}Ce.prototype.isReactComponent={},Ce.prototype.setState=function(V,Z){if(typeof V!="object"&&typeof V!="function"&&V!=null)throw Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,V,Z,"setState")},Ce.prototype.forceUpdate=function(V){this.updater.enqueueForceUpdate(this,V,"forceUpdate")};function Ne(){}Ne.prototype=Ce.prototype;function na(V,Z,ee){this.props=V,this.context=Z,this.refs=Le,this.updater=ee||Te}var ve=na.prototype=new Ne;ve.constructor=na,Re(ve,Ce.prototype),ve.isPureReactComponent=!0;var Ye=Array.isArray,je=Object.prototype.hasOwnProperty,ma={current:null},ta={key:!0,ref:!0,__self:!0,__source:!0};function sa(V,Z,ee){var X,pe={},ge=null,xe=null;if(Z!=null)for(X in Z.ref!==void 0&&(xe=Z.ref),Z.key!==void 0&&(ge=""+Z.key),Z)je.call(Z,X)&&!ta.hasOwnProperty(X)&&(pe[X]=Z[X]);var Ue=arguments.length-2;if(Ue===1)pe.children=ee;else if(1>>1,Z=Y[V];if(0>>1;VI(pe,ne))geI(xe,pe)?(Y[V]=xe,Y[ge]=ne,V=ge):(Y[V]=pe,Y[X]=ne,V=X);else if(geI(xe,ne))Y[V]=xe,Y[ge]=ne,V=ge;else break e}}return fe}function I(Y,fe){var ne=Y.sortIndex-fe.sortIndex;return ne!==0?ne:Y.id-fe.id}if(typeof performance=="object"&&typeof performance.now=="function"){var B=performance;g.unstable_now=function(){return B.now()}}else{var W=Date,G=W.now();g.unstable_now=function(){return W.now()-G}}var Q=[],de=[],Oe=1,ye=null,De=3,we=!1,Te=!1,Re=!1,Le=typeof setTimeout=="function"?setTimeout:null,Ce=typeof clearTimeout=="function"?clearTimeout:null,Ne=typeof setImmediate!="undefined"?setImmediate:null;typeof navigator!="undefined"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function na(Y){for(var fe=R(de);fe!==null;){if(fe.callback===null)$(de);else if(fe.startTime<=Y)$(de),fe.sortIndex=fe.expirationTime,x(Q,fe);else break;fe=R(de)}}function ve(Y){if(Re=!1,na(Y),!Te)if(R(Q)!==null)Te=!0,We(Ye);else{var fe=R(de);fe!==null&&q(ve,fe.startTime-Y)}}function Ye(Y,fe){Te=!1,Re&&(Re=!1,Ce(ta),ta=-1),we=!0;var ne=De;try{for(na(fe),ye=R(Q);ye!==null&&(!(ye.expirationTime>fe)||Y&&!za());){var V=ye.callback;if(typeof V=="function"){ye.callback=null,De=ye.priorityLevel;var Z=V(ye.expirationTime<=fe);fe=g.unstable_now(),typeof Z=="function"?ye.callback=Z:ye===R(Q)&&$(Q),na(fe)}else $(Q);ye=R(Q)}if(ye!==null)var ee=!0;else{var X=R(de);X!==null&&q(ve,X.startTime-fe),ee=!1}return ee}finally{ye=null,De=ne,we=!1}}var je=!1,ma=null,ta=-1,sa=5,oa=-1;function za(){return!(g.unstable_now()-oaY||125V?(Y.sortIndex=ne,x(de,Y),R(Q)===null&&Y===R(de)&&(Re?(Ce(ta),ta=-1):Re=!0,q(ve,ne-V))):(Y.sortIndex=Z,x(Q,Y),Te||we||(Te=!0,We(Ye))),Y},g.unstable_shouldYield=za,g.unstable_wrapCallback=function(Y){var fe=De;return function(){var ne=De;De=fe;try{return Y.apply(this,arguments)}finally{De=ne}}}},3840:function(F,g,x){"use strict";F.exports=x(53)},6774:function(F){F.exports=function(x,R,$,I){var B=$?$.call(I,x,R):void 0;if(B!==void 0)return!!B;if(x===R)return!0;if(typeof x!="object"||!x||typeof R!="object"||!R)return!1;var W=Object.keys(x),G=Object.keys(R);if(W.length!==G.length)return!1;for(var Q=Object.prototype.hasOwnProperty.bind(R),de=0;dex.length)&&(R=x.length);for(var $=0,I=new Array(R);$=I.length?{done:!0}:{done:!1,value:I[G++]}},e:function(we){throw we},f:Q}}throw new TypeError(`Invalid attempt to iterate non-iterable instance. -In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var de=!0,Oe=!1,ye;return{s:function(){W=W.call(I)},n:function(){var we=W.next();return de=we.done,we},e:function(we){Oe=!0,ye=we},f:function(){try{!de&&W.return!=null&&W.return()}finally{if(Oe)throw ye}}}}F.exports=$,F.exports.__esModule=!0,F.exports.default=F.exports},8416:function(F,g,x){var R=x(4062);function $(I,B,W){return B=R(B),B in I?Object.defineProperty(I,B,{value:W,enumerable:!0,configurable:!0,writable:!0}):I[B]=W,I}F.exports=$,F.exports.__esModule=!0,F.exports.default=F.exports},9498:function(F){function g(x){if(typeof Symbol!="undefined"&&x[Symbol.iterator]!=null||x["@@iterator"]!=null)return Array.from(x)}F.exports=g,F.exports.__esModule=!0,F.exports.default=F.exports},8872:function(F){function g(x,R){var $=x==null?null:typeof Symbol!="undefined"&&x[Symbol.iterator]||x["@@iterator"];if($!=null){var I,B,W,G,Q=[],de=!0,Oe=!1;try{if(W=($=$.call(x)).next,R===0){if(Object($)!==$)return;de=!1}else for(;!(de=(I=W.call($)).done)&&(Q.push(I.value),Q.length!==R);de=!0);}catch(ye){Oe=!0,B=ye}finally{try{if(!de&&$.return!=null&&(G=$.return(),Object(G)!==G))return}finally{if(Oe)throw B}}return Q}}F.exports=g,F.exports.__esModule=!0,F.exports.default=F.exports},2218:function(F){function g(){throw new TypeError(`Invalid attempt to destructure non-iterable instance. +`,_e.getElementsByTagName("head")[0].appendChild(Me)),_e.body&&za(_e.body,"react-draggable-transparent-selection")}}function oa(_e){if(_e)try{if(_e.body&&Xa(_e.body,"react-draggable-transparent-selection"),_e.selection)_e.selection.empty();else{var Me=(_e.defaultView||window).getSelection();Me&&Me.type!=="Caret"&&Me.removeAllRanges()}}catch(Fe){}}function za(_e,Me){_e.classList?_e.classList.add(Me):_e.className.match(new RegExp("(?:^|\\s)".concat(Me,"(?!\\S)")))||(_e.className+=" ".concat(Me))}function Xa(_e,Me){_e.classList?_e.classList.remove(Me):_e.className=_e.className.replace(new RegExp("(?:^|\\s)".concat(Me,"(?!\\S)"),"g"),"")}},8650:function(F,g){"use strict";Object.defineProperty(g,"__esModule",{value:!0}),g.browserPrefixToKey=$,g.browserPrefixToStyle=I,g.default=void 0,g.getPrefix=R;var x=["Moz","Webkit","O","ms"];function R(){var G,Q,de=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"transform";if(typeof window=="undefined")return"";var Oe=(G=window.document)===null||G===void 0||(Q=G.documentElement)===null||Q===void 0?void 0:Q.style;if(!Oe||de in Oe)return"";for(var ye=0;ye: Unmounted during event!");return Te}},9280:function(F,g){"use strict";Object.defineProperty(g,"__esModule",{value:!0}),g.dontSetMe=V,g.findInArray=x,g.int=I,g.isFunction=R,g.isNum=$;function x(W,G){for(var Q=0,de=W.length;Q=0||Object.prototype.hasOwnProperty.call(B,X)&&(ee[X]=B[X]);return ee}function Me(B,Z,ee){return Z in B?Object.defineProperty(B,Z,{value:ee,enumerable:!0,configurable:!0,writable:!0}):B[Z]=ee,B}function Fe(B,Z){if(!(B instanceof Z))throw new TypeError("Cannot call a class as a function")}function We(B,Z){if(!B)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return Z&&(typeof Z=="object"||typeof Z=="function")?Z:B}function q(B,Z){if(typeof Z!="function"&&Z!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof Z);B.prototype=Object.create(Z&&Z.prototype,{constructor:{value:B,enumerable:!1,writable:!0,configurable:!0}}),Z&&(Object.setPrototypeOf?Object.setPrototypeOf(B,Z):B.__proto__=Z)}var Y=function(B){q(Z,B);function Z(ee){Fe(this,Z);var X=We(this,(Z.__proto__||Object.getPrototypeOf(Z)).call(this,ee));fe.call(X),ee.inline||console.warn("[Deprecation] The inline attribute is deprecated and will be removed in v7.x.x, please use inputFieldPosition instead.");var pe=ee.suggestions;return X.state={suggestions:pe,query:"",isFocused:!1,selectedIndex:-1,selectionMode:!1,ariaLiveStatus:"",currentEditIndex:-1},X.reactTagsRef=(0,V.createRef)(),X.handleFocus=X.handleFocus.bind(X),X.handleBlur=X.handleBlur.bind(X),X.handleKeyDown=X.handleKeyDown.bind(X),X.handleChange=X.handleChange.bind(X),X.moveTag=X.moveTag.bind(X),X.handlePaste=X.handlePaste.bind(X),X.handleSuggestionHover=X.handleSuggestionHover.bind(X),X.handleSuggestionClick=X.handleSuggestionClick.bind(X),X}return I(Z,[{key:"componentDidMount",value:function(){var X=this.props,pe=X.autofocus,ge=X.readOnly;pe&&!ge&&this.resetAndFocusInput()}},{key:"componentDidUpdate",value:function(X){(0,Oe.default)(X.suggestions,this.props.suggestions)||this.updateSuggestions()}},{key:"handleDelete",value:function(X,pe){pe.preventDefault(),pe.stopPropagation();var ge=this.props.tags.slice();if(ge.length!==0){var xe="Tag at index "+X+" with value "+ge[X].id+" deleted.";this.props.handleDelete(X,pe);var Ue=this.reactTagsRef.current.querySelectorAll(".ReactTags__remove"),Ke=void 0,Ve=void 0,ba=void 0;X===0&&ge.length>1?(Ke=Ue[0],Ve=0,ba=ge[1]):(Ke=Ue[X-1],Ve=X-1,ba=ge[Ve]),Ke||(Ve=-1,Ke=this.textInput),Ve>=0?xe+=" Tag at index "+Ve+" with value "+ba.id+" focussed. Press backspace to remove":xe+="Input focussed. Press enter to add a new tag",Ke.focus(),this.setState({ariaLiveStatus:xe})}}},{key:"handleTagClick",value:function(X,pe,ge){var xe=this,Ue=this.props,Ke=Ue.editable,Ve=Ue.handleTagClick,ba=Ue.labelField;Ke&&this.setState({currentEditIndex:X,query:pe[ba]},function(){xe.tagInput.focus()}),Ve&&Ve(X,ge)}},{key:"handleChange",value:function(X){this.props.handleInputChange&&this.props.handleInputChange(X.target.value);var pe=X.target.value.trim();this.setState({query:pe},this.updateSuggestions)}},{key:"handleFocus",value:function(X){var pe=X.target.value;this.props.handleInputFocus&&this.props.handleInputFocus(pe),this.setState({isFocused:!0})}},{key:"handleBlur",value:function(X){var pe=X.target.value;this.props.handleInputBlur&&(this.props.handleInputBlur(pe),this.textInput&&(this.textInput.value="")),this.setState({isFocused:!1,currentEditIndex:-1})}},{key:"handleKeyDown",value:function(X){var pe=this.state,ge=pe.query,xe=pe.selectedIndex,Ue=pe.suggestions,Ke=pe.selectionMode;if(X.keyCode===oa.KEYS.ESCAPE&&(X.preventDefault(),X.stopPropagation(),this.setState({selectedIndex:-1,selectionMode:!1,suggestions:[],currentEditIndex:-1})),this.props.delimiters.indexOf(X.keyCode)!==-1&&!X.shiftKey){(X.keyCode!==oa.KEYS.TAB||ge!=="")&&X.preventDefault();var Ve=Ke&&xe!==-1?Ue[xe]:Me({id:ge},this.props.labelField,ge);Ve!==""&&this.addTag(Ve)}X.keyCode===oa.KEYS.BACKSPACE&&ge===""&&this.props.allowDeleteFromEmptyInput&&this.handleDelete(this.props.tags.length-1,X),X.keyCode===oa.KEYS.UP_ARROW&&(X.preventDefault(),this.setState({selectedIndex:xe<=0?Ue.length-1:xe-1,selectionMode:!0})),X.keyCode===oa.KEYS.DOWN_ARROW&&(X.preventDefault(),this.setState({selectedIndex:Ue.length===0?-1:(xe+1)%Ue.length,selectionMode:!0}))}},{key:"handlePaste",value:function(X){var pe=this;if(this.props.allowAdditionFromPaste){X.preventDefault();var ge=X.clipboardData||window.clipboardData,xe=ge.getData("text"),Ue=this.props.maxLength,Ke=Ue===void 0?xe.length:Ue,Ve=Math.min(Ke,xe.length),ba=ge.getData("text").substr(0,Ve),ti=(0,sa.buildRegExpFromDelimiters)(this.props.delimiters),Ba=ba.split(ti);(0,Te.default)(Ba).forEach(function(Ya){return pe.addTag(Me({id:Ya},pe.props.labelField,Ya))})}}},{key:"handleSuggestionClick",value:function(X){this.addTag(this.state.suggestions[X])}},{key:"handleSuggestionHover",value:function(X){this.setState({selectedIndex:X,selectionMode:!0})}},{key:"moveTag",value:function(X,pe){var ge=this.props.tags,xe=ge[X];this.props.handleDrag(xe,X,pe)}},{key:"render",value:function(){var X=this,pe=this.getTagItems(),ge=$({},oa.DEFAULT_CLASSNAMES,this.props.classNames),xe=this.state.query.trim(),Ue=this.state.selectedIndex,Ke=this.state.suggestions,Ve=this.props,ba=Ve.placeholder,ti=Ve.name,Ba=Ve.id,Ya=Ve.maxLength,ci=Ve.inline,Vi=Ve.inputFieldPosition,Ui=Ve.inputValue,En=Ve.inputProps,ko=Ve.clearAll,Mn=Ve.tags,po=ci?Vi:oa.INPUT_FIELD_POSITIONS.BOTTOM,Fn=this.props.readOnly?null:W.default.createElement("div",{className:ge.tagInput},W.default.createElement("input",$({},En,{ref:function(Zn){X.textInput=Zn},className:ge.tagInputField,type:"text",placeholder:ba,"aria-label":ba,onFocus:this.handleFocus,onBlur:this.handleBlur,onChange:this.handleChange,onKeyDown:this.handleKeyDown,onPaste:this.handlePaste,name:ti,id:Ba,maxLength:Ya,value:Ui,"data-automation":"input","data-testid":"input"})),W.default.createElement(Ne.default,{query:xe,suggestions:Ke,labelField:this.props.labelField,selectedIndex:Ue,handleClick:this.handleSuggestionClick,handleHover:this.handleSuggestionHover,minQueryLength:this.props.minQueryLength,shouldRenderSuggestions:this.props.shouldRenderSuggestions,isFocused:this.state.isFocused,classNames:ge,renderSuggestion:this.props.renderSuggestion}),ko&&Mn.length>0&&W.default.createElement(Le.default,{classNames:ge,onClick:this.clearAll}));return W.default.createElement("div",{className:(0,je.default)(ge.tags,"react-tags-wrapper"),ref:this.reactTagsRef},W.default.createElement("p",{role:"alert",className:"sr-only",style:{position:"absolute",overflow:"hidden",clip:"rect(0 0 0 0)",margin:"-1px",padding:0,width:"1px",height:"1px",border:0}},this.state.ariaLiveStatus),po===oa.INPUT_FIELD_POSITIONS.TOP&&Fn,W.default.createElement("div",{className:ge.selected},pe,po===oa.INPUT_FIELD_POSITIONS.INLINE&&Fn),po===oa.INPUT_FIELD_POSITIONS.BOTTOM&&Fn)}}]),Z}(V.Component);Y.propTypes={placeholder:ve.default.string,labelField:ve.default.string,suggestions:ve.default.arrayOf(ve.default.shape({id:ve.default.string.isRequired})),delimiters:ve.default.arrayOf(ve.default.number),autofocus:ve.default.bool,inline:ve.default.bool,inputFieldPosition:ve.default.oneOf([oa.INPUT_FIELD_POSITIONS.INLINE,oa.INPUT_FIELD_POSITIONS.TOP,oa.INPUT_FIELD_POSITIONS.BOTTOM]),handleDelete:ve.default.func,handleAddition:ve.default.func,onTagUpdate:ve.default.func,handleDrag:ve.default.func,handleFilterSuggestions:ve.default.func,handleTagClick:ve.default.func,allowDeleteFromEmptyInput:ve.default.bool,allowAdditionFromPaste:ve.default.bool,allowDragDrop:ve.default.bool,handleInputChange:ve.default.func,handleInputFocus:ve.default.func,handleInputBlur:ve.default.func,minQueryLength:ve.default.number,shouldRenderSuggestions:ve.default.func,removeComponent:ve.default.func,autocomplete:ve.default.oneOfType([ve.default.bool,ve.default.number]),readOnly:ve.default.bool,classNames:ve.default.object,name:ve.default.string,id:ve.default.string,maxLength:ve.default.number,inputValue:ve.default.string,tags:ve.default.arrayOf(ve.default.shape({id:ve.default.string.isRequired,className:ve.default.string})),allowUnique:ve.default.bool,renderSuggestion:ve.default.func,inputProps:ve.default.object,editable:ve.default.bool,clearAll:ve.default.bool,onClearAll:ve.default.func},Y.defaultProps={placeholder:oa.DEFAULT_PLACEHOLDER,labelField:oa.DEFAULT_LABEL_FIELD,suggestions:[],delimiters:[].concat(Xa(oa.KEYS.ENTER),[oa.KEYS.TAB]),autofocus:!0,inline:!0,inputFieldPosition:oa.INPUT_FIELD_POSITIONS.INLINE,handleDelete:De.default,handleAddition:De.default,allowDeleteFromEmptyInput:!0,allowAdditionFromPaste:!0,autocomplete:!1,readOnly:!1,allowUnique:!0,allowDragDrop:!0,tags:[],inputProps:{},onTagUpdate:De.default,editable:!1,clearAll:!1,handleClearAll:De.default};var fe=function(){var Z=this;this.filteredSuggestions=function(ee){var X=Z.props.suggestions;if(Z.props.allowUnique){var pe=Z.props.tags.map(function(Ue){return Ue.id.toLowerCase()});X=X.filter(function(Ue){return!pe.includes(Ue.id.toLowerCase())})}if(Z.props.handleFilterSuggestions)return Z.props.handleFilterSuggestions(ee,X);var ge=X.filter(function(Ue){return Z.getQueryIndex(ee,Ue)===0}),xe=X.filter(function(Ue){return Z.getQueryIndex(ee,Ue)>0});return ge.concat(xe)},this.getQueryIndex=function(ee,X){return X[Z.props.labelField].toLowerCase().indexOf(ee.toLowerCase())},this.resetAndFocusInput=function(){Z.setState({query:""}),Z.textInput&&(Z.textInput.value="",Z.textInput.focus())},this.updateSuggestions=function(){var ee=Z.state,X=ee.query,pe=ee.selectedIndex,ge=Z.filteredSuggestions(X);Z.setState({suggestions:ge,selectedIndex:pe>=ge.length?ge.length-1:pe})},this.addTag=function(ee){var X=Z.props,pe=X.tags,ge=X.labelField,xe=X.allowUnique,Ue=Z.state.currentEditIndex;if(!(!ee.id||!ee[ge])){var Ke=pe.map(function(ba){return ba.id.toLowerCase()});if(!(xe&&Ke.indexOf(ee.id.toLowerCase())>=0)){if(Z.props.autocomplete){var Ve=Z.filteredSuggestions(ee[ge]);(Z.props.autocomplete===1&&Ve.length===1||Z.props.autocomplete===!0&&Ve.length)&&(ee=Ve[0])}Ue!==-1&&Z.props.onTagUpdate?Z.props.onTagUpdate(Ue,ee):Z.props.handleAddition(ee),Z.setState({query:"",selectionMode:!1,selectedIndex:-1,currentEditIndex:-1}),Z.resetAndFocusInput()}}},this.clearAll=function(){Z.props.onClearAll&&Z.props.onClearAll()},this.getTagItems=function(){var ee=Z.props,X=ee.tags,pe=ee.labelField,ge=ee.removeComponent,xe=ee.readOnly,Ue=ee.allowDragDrop,Ke=$({},oa.DEFAULT_CLASSNAMES,Z.props.classNames),Ve=Z.state,ba=Ve.currentEditIndex,ti=Ve.query,Ba=Ue?Z.moveTag:null;return X.map(function(Ya,ci){return W.default.createElement(W.default.Fragment,{key:ci},ba===ci?W.default.createElement("div",{className:Ke.editTagInput},W.default.createElement("input",{ref:function(Ui){Z.tagInput=Ui},onFocus:Z.handleFocus,value:ti,onChange:Z.handleChange,onKeyDown:Z.handleKeyDown,onBlur:Z.handleBlur,className:Ke.editTagInputField,onPaste:Z.handlePaste,"data-testid":"tag-edit"})):W.default.createElement(ta.default,{index:ci,tag:Ya,labelField:pe,onDelete:Z.handleDelete.bind(Z,ci),moveTag:Ba,removeComponent:ge,onTagClicked:Z.handleTagClick.bind(Z,ci,Ya),readOnly:xe,classNames:Ke,allowDragDrop:Ue}))})}},ne=function(Z){var ee=_e(Z,[]);return W.default.createElement(G.DndProvider,{backend:Q.HTML5Backend},W.default.createElement(Y,ee))};g.V=ne,R=Y,R=oa.KEYS},2585:function(F,g,x){"use strict";Object.defineProperty(g,"__esModule",{value:!0});var R=x(7294),$=G(R),I=x(5697),V=G(I),W=x(1117);function G(Oe){return Oe&&Oe.__esModule?Oe:{default:Oe}}var Q=String.fromCharCode(215),de=function(ye){var De=ye.readOnly,we=ye.removeComponent,Te=ye.onRemove,Re=ye.className,Le=ye.tag,Ce=ye.index,Ne=function(je){if(W.KEYS.ENTER.includes(je.keyCode)||je.keyCode===W.KEYS.SPACE){je.preventDefault(),je.stopPropagation();return}je.keyCode===W.KEYS.BACKSPACE&&Te(je)};if(De)return $.default.createElement("span",null);var na="Tag at index "+Ce+" with value "+Le.id+" focussed. Press backspace to remove";if(we){var ve=we;return $.default.createElement(ve,{onRemove:Te,onKeyDown:Ne,className:Re,"aria-label":na,tag:Le,index:Ce})}return $.default.createElement("button",{onClick:Te,onKeyDown:Ne,className:Re,type:"button","aria-label":na},Q)};de.propTypes={className:V.default.string,onRemove:V.default.func.isRequired,readOnly:V.default.bool,removeComponent:V.default.func,tag:V.default.shape({id:V.default.string.isRequired,className:V.default.string,key:V.default.string}),index:V.default.number.isRequired},g.default=de},1331:function(F,g,x){"use strict";Object.defineProperty(g,"__esModule",{value:!0});var R=function(){function Ce(Ne,na){for(var ve=0;ve=ve?na.scrollTop+=je-ve+Ye:je<0&&(na.scrollTop+=je)},Le=function(Ce){Te(Ne,Ce);function Ne(){var na,ve,Ye,je;De(this,Ne);for(var ma=arguments.length,ta=Array(ma),sa=0;sa"+(0,Oe.default)(Me)+""})}},Ye.shouldRenderSuggestions=function(oa){var za=Ye.props,Xa=za.minQueryLength,_e=za.isFocused;return oa.length>=Xa&&_e},Ye.renderSuggestion=function(oa,za){var Xa=Ye.props.renderSuggestion;return typeof Xa=="function"?Xa(oa,za):I.default.createElement("span",{dangerouslySetInnerHTML:Ye.markIt(oa,za)})},ve),we(Ye,je)}return R(Ne,[{key:"shouldComponentUpdate",value:function(ve){var Ye=this.props,je=Ye.shouldRenderSuggestions||this.shouldRenderSuggestions;return Ye.isFocused!==ve.isFocused||!(0,Q.default)(Ye.suggestions,ve.suggestions)||je(ve.query)||je(ve.query)!==je(Ye.query)}},{key:"componentDidUpdate",value:function(ve){var Ye=this.props,je=Ye.selectedIndex,ma=Ye.classNames;if(this.suggestionsContainer&&ve.selectedIndex!==je){var ta=this.suggestionsContainer.querySelector("."+ma.activeSuggestion);ta&&Re(ta,this.suggestionsContainer)}}},{key:"render",value:function(){var ve=this,Ye=this.props,je=Ye.suggestions.map(function(ta,sa){return I.default.createElement("li",{key:sa,onMouseDown:Ye.handleClick.bind(null,sa),onTouchStart:Ye.handleClick.bind(null,sa),onMouseOver:Ye.handleHover.bind(null,sa),className:sa===Ye.selectedIndex?Ye.classNames.activeSuggestion:""},this.renderSuggestion(ta,Ye.query))}.bind(this)),ma=Ye.shouldRenderSuggestions||this.shouldRenderSuggestions;return je.length===0||!ma(Ye.query)?null:I.default.createElement("div",{ref:function(sa){ve.suggestionsContainer=sa},className:this.props.classNames.suggestions},I.default.createElement("ul",null," ",je," "))}}]),Ne}($.Component);Le.propTypes={query:W.default.string.isRequired,selectedIndex:W.default.number.isRequired,suggestions:W.default.array.isRequired,handleClick:W.default.func.isRequired,handleHover:W.default.func.isRequired,minQueryLength:W.default.number,shouldRenderSuggestions:W.default.func,isFocused:W.default.bool.isRequired,classNames:W.default.object,labelField:W.default.string.isRequired,renderSuggestion:W.default.func},Le.defaultProps={minQueryLength:2},g.default=Le},5129:function(F,g,x){"use strict";Object.defineProperty(g,"__esModule",{value:!0});var R=function(){function Le(Ce,Ne){var na=[],ve=!0,Ye=!1,je=void 0;try{for(var ma=Ce[Symbol.iterator](),ta;!(ve=(ta=ma.next()).done)&&(na.push(ta.value),!(Ne&&na.length===Ne));ve=!0);}catch(sa){Ye=!0,je=sa}finally{try{!ve&&ma.return&&ma.return()}finally{if(Ye)throw je}}return na}return function(Ce,Ne){if(Array.isArray(Ce))return Ce;if(Symbol.iterator in Object(Ce))return Le(Ce,Ne);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),$=x(7294),I=we($),V=x(1976),W=x(5697),G=we(W),Q=x(4184),de=we(Q),Oe=x(3332),ye=x(2585),De=we(ye);function we(Le){return Le&&Le.__esModule?Le:{default:Le}}var Te={TAG:"tag"},Re=function(Ce){var Ne=(0,$.useRef)(null),na=Ce.readOnly,ve=Ce.tag,Ye=Ce.classNames,je=Ce.index,ma=(0,V.useDrag)(function(){return{type:Te.TAG,collect:function(ne){return{isDragging:!!ne.isDragging()}},item:Ce,canDrag:function(){return(0,Oe.canDrag)(Ce)}}}),ta=R(ma,2),sa=ta[0].isDragging,oa=ta[1],za=(0,V.useDrop)(function(){return{accept:Te.TAG,drop:function(ne,B){var Z=ne.index,ee=je;Z!==ee&&Ce.moveTag(Z,ee)},canDrop:function(ne){return(0,Oe.canDrop)(ne)}}}),Xa=R(za,2),_e=Xa[1];oa(_e(Ne));var Me=Ce.tag[Ce.labelField],Fe=ve.className,We=Fe===void 0?"":Fe,q=sa?0:1,Y=I.default.createElement("span",{ref:Ne,className:(0,de.default)("tag-wrapper",Ye.tag,We),style:{opacity:q,cursor:(0,Oe.canDrag)(Ce)?"move":"auto"},onClick:Ce.onTagClicked,onTouchStart:Ce.onTagClicked},Me,I.default.createElement(De.default,{tag:Ce.tag,className:Ye.remove,removeComponent:Ce.removeComponent,onRemove:Ce.onDelete,readOnly:na,index:je}));return Y};Re.propTypes={labelField:G.default.string,onDelete:G.default.func.isRequired,tag:G.default.shape({id:G.default.string.isRequired,className:G.default.string,key:G.default.string}),moveTag:G.default.func,removeComponent:G.default.func,onTagClicked:G.default.func,classNames:G.default.object,readOnly:G.default.bool,index:G.default.number.isRequired},Re.defaultProps={labelField:"text",readOnly:!1},g.default=Re},1117:function(F,g){"use strict";Object.defineProperty(g,"__esModule",{value:!0});var x=g.KEYS={ENTER:[10,13],TAB:9,BACKSPACE:8,UP_ARROW:38,DOWN_ARROW:40,ESCAPE:27,SPACE:32,COMMA:188},R=g.DEFAULT_PLACEHOLDER="Press enter to add new tag",$=g.DEFAULT_LABEL_FIELD="text",I=g.DEFAULT_CLASSNAMES={tags:"ReactTags__tags",tagInput:"ReactTags__tagInput",tagInputField:"ReactTags__tagInputField",selected:"ReactTags__selected",tag:"ReactTags__tag",remove:"ReactTags__remove",suggestions:"ReactTags__suggestions",activeSuggestion:"ReactTags__activeSuggestion",editTagInput:"ReactTags__editTagInput",editTagInputField:"ReactTags__editTagInputField",clearAll:"ReactTags__clearAll"},V=g.INPUT_FIELD_POSITIONS={INLINE:"inline",TOP:"top",BOTTOM:"bottom"}},3332:function(F,g,x){"use strict";Object.defineProperty(g,"__esModule",{value:!0}),g.buildRegExpFromDelimiters=V,g.canDrag=W,g.canDrop=G;var R=x(3522),$=I(R);function I(Q){return Q&&Q.__esModule?Q:{default:Q}}function V(Q){var de=Q.map(function(ye){var De=ye-48*Math.floor(ye/48);return String.fromCharCode(96<=ye?De:ye)}).join(""),Oe=(0,$.default)(de);return new RegExp("["+Oe+"]+")}function W(Q){var de=Q.moveTag,Oe=Q.readOnly,ye=Q.allowDragDrop;return de!==void 0&&!Oe&&ye}function G(Q){var de=Q.readOnly,Oe=Q.allowDragDrop;return!de&&Oe}},5251:function(F,g,x){"use strict";var R;var $=x(7294),I=Symbol.for("react.element"),V=Symbol.for("react.fragment"),W=Object.prototype.hasOwnProperty,G=$.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,Q={key:!0,ref:!0,__self:!0,__source:!0};function de(Oe,ye,De){var we,Te={},Re=null,Le=null;De!==void 0&&(Re=""+De),ye.key!==void 0&&(Re=""+ye.key),ye.ref!==void 0&&(Le=ye.ref);for(we in ye)W.call(ye,we)&&!Q.hasOwnProperty(we)&&(Te[we]=ye[we]);if(Oe&&Oe.defaultProps)for(we in ye=Oe.defaultProps,ye)Te[we]===void 0&&(Te[we]=ye[we]);return{$$typeof:I,type:Oe,key:Re,ref:Le,props:Te,_owner:G.current}}R=V,g.jsx=de,g.jsxs=de},2408:function(F,g){"use strict";var x=Symbol.for("react.element"),R=Symbol.for("react.portal"),$=Symbol.for("react.fragment"),I=Symbol.for("react.strict_mode"),V=Symbol.for("react.profiler"),W=Symbol.for("react.provider"),G=Symbol.for("react.context"),Q=Symbol.for("react.forward_ref"),de=Symbol.for("react.suspense"),Oe=Symbol.for("react.memo"),ye=Symbol.for("react.lazy"),De=Symbol.iterator;function we(B){return B===null||typeof B!="object"?null:(B=De&&B[De]||B["@@iterator"],typeof B=="function"?B:null)}var Te={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},Re=Object.assign,Le={};function Ce(B,Z,ee){this.props=B,this.context=Z,this.refs=Le,this.updater=ee||Te}Ce.prototype.isReactComponent={},Ce.prototype.setState=function(B,Z){if(typeof B!="object"&&typeof B!="function"&&B!=null)throw Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,B,Z,"setState")},Ce.prototype.forceUpdate=function(B){this.updater.enqueueForceUpdate(this,B,"forceUpdate")};function Ne(){}Ne.prototype=Ce.prototype;function na(B,Z,ee){this.props=B,this.context=Z,this.refs=Le,this.updater=ee||Te}var ve=na.prototype=new Ne;ve.constructor=na,Re(ve,Ce.prototype),ve.isPureReactComponent=!0;var Ye=Array.isArray,je=Object.prototype.hasOwnProperty,ma={current:null},ta={key:!0,ref:!0,__self:!0,__source:!0};function sa(B,Z,ee){var X,pe={},ge=null,xe=null;if(Z!=null)for(X in Z.ref!==void 0&&(xe=Z.ref),Z.key!==void 0&&(ge=""+Z.key),Z)je.call(Z,X)&&!ta.hasOwnProperty(X)&&(pe[X]=Z[X]);var Ue=arguments.length-2;if(Ue===1)pe.children=ee;else if(1>>1,Z=Y[B];if(0>>1;BI(pe,ne))geI(xe,pe)?(Y[B]=xe,Y[ge]=ne,B=ge):(Y[B]=pe,Y[X]=ne,B=X);else if(geI(xe,ne))Y[B]=xe,Y[ge]=ne,B=ge;else break e}}return fe}function I(Y,fe){var ne=Y.sortIndex-fe.sortIndex;return ne!==0?ne:Y.id-fe.id}if(typeof performance=="object"&&typeof performance.now=="function"){var V=performance;g.unstable_now=function(){return V.now()}}else{var W=Date,G=W.now();g.unstable_now=function(){return W.now()-G}}var Q=[],de=[],Oe=1,ye=null,De=3,we=!1,Te=!1,Re=!1,Le=typeof setTimeout=="function"?setTimeout:null,Ce=typeof clearTimeout=="function"?clearTimeout:null,Ne=typeof setImmediate!="undefined"?setImmediate:null;typeof navigator!="undefined"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function na(Y){for(var fe=R(de);fe!==null;){if(fe.callback===null)$(de);else if(fe.startTime<=Y)$(de),fe.sortIndex=fe.expirationTime,x(Q,fe);else break;fe=R(de)}}function ve(Y){if(Re=!1,na(Y),!Te)if(R(Q)!==null)Te=!0,We(Ye);else{var fe=R(de);fe!==null&&q(ve,fe.startTime-Y)}}function Ye(Y,fe){Te=!1,Re&&(Re=!1,Ce(ta),ta=-1),we=!0;var ne=De;try{for(na(fe),ye=R(Q);ye!==null&&(!(ye.expirationTime>fe)||Y&&!za());){var B=ye.callback;if(typeof B=="function"){ye.callback=null,De=ye.priorityLevel;var Z=B(ye.expirationTime<=fe);fe=g.unstable_now(),typeof Z=="function"?ye.callback=Z:ye===R(Q)&&$(Q),na(fe)}else $(Q);ye=R(Q)}if(ye!==null)var ee=!0;else{var X=R(de);X!==null&&q(ve,X.startTime-fe),ee=!1}return ee}finally{ye=null,De=ne,we=!1}}var je=!1,ma=null,ta=-1,sa=5,oa=-1;function za(){return!(g.unstable_now()-oaY||125B?(Y.sortIndex=ne,x(de,Y),R(Q)===null&&Y===R(de)&&(Re?(Ce(ta),ta=-1):Re=!0,q(ve,ne-B))):(Y.sortIndex=Z,x(Q,Y),Te||we||(Te=!0,We(Ye))),Y},g.unstable_shouldYield=za,g.unstable_wrapCallback=function(Y){var fe=De;return function(){var ne=De;De=fe;try{return Y.apply(this,arguments)}finally{De=ne}}}},3840:function(F,g,x){"use strict";F.exports=x(53)},6774:function(F){F.exports=function(x,R,$,I){var V=$?$.call(I,x,R):void 0;if(V!==void 0)return!!V;if(x===R)return!0;if(typeof x!="object"||!x||typeof R!="object"||!R)return!1;var W=Object.keys(x),G=Object.keys(R);if(W.length!==G.length)return!1;for(var Q=Object.prototype.hasOwnProperty.bind(R),de=0;dex.length)&&(R=x.length);for(var $=0,I=new Array(R);$=I.length?{done:!0}:{done:!1,value:I[G++]}},e:function(we){throw we},f:Q}}throw new TypeError(`Invalid attempt to iterate non-iterable instance. +In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var de=!0,Oe=!1,ye;return{s:function(){W=W.call(I)},n:function(){var we=W.next();return de=we.done,we},e:function(we){Oe=!0,ye=we},f:function(){try{!de&&W.return!=null&&W.return()}finally{if(Oe)throw ye}}}}F.exports=$,F.exports.__esModule=!0,F.exports.default=F.exports},8416:function(F,g,x){var R=x(4062);function $(I,V,W){return V=R(V),V in I?Object.defineProperty(I,V,{value:W,enumerable:!0,configurable:!0,writable:!0}):I[V]=W,I}F.exports=$,F.exports.__esModule=!0,F.exports.default=F.exports},9498:function(F){function g(x){if(typeof Symbol!="undefined"&&x[Symbol.iterator]!=null||x["@@iterator"]!=null)return Array.from(x)}F.exports=g,F.exports.__esModule=!0,F.exports.default=F.exports},8872:function(F){function g(x,R){var $=x==null?null:typeof Symbol!="undefined"&&x[Symbol.iterator]||x["@@iterator"];if($!=null){var I,V,W,G,Q=[],de=!0,Oe=!1;try{if(W=($=$.call(x)).next,R===0){if(Object($)!==$)return;de=!1}else for(;!(de=(I=W.call($)).done)&&(Q.push(I.value),Q.length!==R);de=!0);}catch(ye){Oe=!0,V=ye}finally{try{if(!de&&$.return!=null&&(G=$.return(),Object(G)!==G))return}finally{if(Oe)throw V}}return Q}}F.exports=g,F.exports.__esModule=!0,F.exports.default=F.exports},2218:function(F){function g(){throw new TypeError(`Invalid attempt to destructure non-iterable instance. In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}F.exports=g,F.exports.__esModule=!0,F.exports.default=F.exports},2281:function(F){function g(){throw new TypeError(`Invalid attempt to spread non-iterable instance. -In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}F.exports=g,F.exports.__esModule=!0,F.exports.default=F.exports},2122:function(F,g,x){var R=x(8416);function $(B,W){var G=Object.keys(B);if(Object.getOwnPropertySymbols){var Q=Object.getOwnPropertySymbols(B);W&&(Q=Q.filter(function(de){return Object.getOwnPropertyDescriptor(B,de).enumerable})),G.push.apply(G,Q)}return G}function I(B){for(var W=1;W0)return"Unexpected "+(ua.length>1?"keys":"key")+" "+('"'+ua.join('", "')+'" found in '+qe+". ")+"Expected to find one of the known reducer keys instead: "+('"'+ce.join('", "')+'". Unexpected keys will be ignored.')}function ve(N){Object.keys(N).forEach(function(M){var D=N[M],J=D(void 0,{type:de.INIT});if(typeof J=="undefined")throw new Error(W(12));if(typeof D(void 0,{type:de.PROBE_UNKNOWN_ACTION()})=="undefined")throw new Error(W(13))})}function Ye(N){for(var M=Object.keys(N),D={},J=0;J-1})}var Z="dnd-core/INIT_COORDS",ee="dnd-core/BEGIN_DRAG",X="dnd-core/PUBLISH_DRAG_SOURCE",pe="dnd-core/HOVER",ge="dnd-core/DROP",xe="dnd-core/END_DRAG";function Ue(N,M){return{type:Z,payload:{sourceClientOffset:M||null,clientOffset:N||null}}}var Ke={type:Z,payload:{clientOffset:null,sourceClientOffset:null}};function Be(N){return function(){var D=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],J=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{publishSource:!0},ce=J.publishSource,qe=ce===void 0?!0:ce,ua=J.clientOffset,fa=J.getSourceClientOffset,Da=N.getMonitor(),Ja=N.getRegistry();N.dispatch(Ue(ua)),ba(D,Da,Ja);var _i=Ya(D,Da);if(_i==null){N.dispatch(Ke);return}var dn=null;if(ua){if(!fa)throw new Error("getSourceClientOffset must be defined");ti(fa),dn=fa(_i)}N.dispatch(Ue(ua,dn));var ji=Ja.getSource(_i),tr=ji.beginDrag(Da,_i);if(tr!=null){Va(tr),Ja.pinSource(_i);var Ir=Ja.getSourceType(_i);return{type:ee,payload:{itemType:Ir,item:tr,sourceId:_i,clientOffset:ua||null,sourceClientOffset:dn||null,isSourcePublic:!!qe}}}}}function ba(N,M,D){_e(!M.isDragging(),"Cannot call beginDrag while dragging."),N.forEach(function(J){_e(D.getSource(J),"Expected sourceIds to be registered.")})}function ti(N){_e(typeof N=="function","When clientOffset is provided, getSourceClientOffset must be a function.")}function Va(N){_e(fe(N),"Item must be an object.")}function Ya(N,M){for(var D=null,J=N.length-1;J>=0;J--)if(M.canDragSource(N[J])){D=N[J];break}return D}function ci(N,M,D){return M in N?Object.defineProperty(N,M,{value:D,enumerable:!0,configurable:!0,writable:!0}):N[M]=D,N}function Bi(N){for(var M=1;M0&&arguments[0]!==void 0?arguments[0]:{},J=N.getMonitor(),ce=N.getRegistry();En(J);var qe=po(J);qe.forEach(function(ua,fa){var Da=ko(ua,fa,ce,J),Ja={type:ge,payload:{dropResult:Bi({},D,Da)}};N.dispatch(Ja)})}}function En(N){_e(N.isDragging(),"Cannot call drop while not dragging."),_e(!N.didDrop(),"Cannot call drop twice during one drag operation.")}function ko(N,M,D,J){var ce=D.getTarget(N),qe=ce?ce.drop(J,N):void 0;return Mn(qe),typeof qe=="undefined"&&(qe=M===0?{}:J.getDropResult()),qe}function Mn(N){_e(typeof N=="undefined"||fe(N),"Drop result must either be an object or undefined.")}function po(N){var M=N.getTargetIds().filter(N.canDropOnTarget,N);return M.reverse(),M}function Fn(N){return function(){var D=N.getMonitor(),J=N.getRegistry();Jn(D);var ce=D.getSourceId();if(ce!=null){var qe=J.getSource(ce,!0);qe.endDrag(D,ce),J.unpinSource()}return{type:xe}}}function Jn(N){_e(N.isDragging(),"Cannot call endDrag while not dragging.")}function Zn(N,M){return M===null?N===null:Array.isArray(N)?N.some(function(D){return D===M}):N===M}function ir(N){return function(D){var J=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},ce=J.clientOffset;a_(D);var qe=D.slice(0),ua=N.getMonitor(),fa=N.getRegistry(),Da=ua.getItemType();return qi(qe,fa,Da),us(qe,ua,fa),xr(qe,ua,fa),{type:pe,payload:{targetIds:qe,clientOffset:ce||null}}}}function a_(N){_e(Array.isArray(N),"Expected targetIds to be an array.")}function us(N,M,D){_e(M.isDragging(),"Cannot call hover while not dragging."),_e(!M.didDrop(),"Cannot call hover after drop.");for(var J=0;J=0;J--){var ce=N[J],qe=M.getTargetType(ce);Zn(qe,D)||N.splice(J,1)}}function xr(N,M,D){N.forEach(function(J){var ce=D.getTarget(J);ce.hover(M,J)})}function ni(N){return function(){var D=N.getMonitor();if(D.isDragging())return{type:X}}}function ls(N){return{beginDrag:Be(N),publishDragSource:ni(N),hover:ir(N),drop:Ui(N),endDrag:Fn(N)}}var nr=function(){function N(M,D){var J=this;oa(this,N),this.isSetUp=!1,this.handleRefCountChange=function(){var ce=J.store.getState().refCount>0;J.backend&&(ce&&!J.isSetUp?(J.backend.setup(),J.isSetUp=!0):!ce&&J.isSetUp&&(J.backend.teardown(),J.isSetUp=!1))},this.store=M,this.monitor=D,M.subscribe(this.handleRefCountChange)}return za(N,[{key:"receiveBackend",value:function(D){this.backend=D}},{key:"getMonitor",value:function(){return this.monitor}},{key:"getBackend",value:function(){return this.backend}},{key:"getRegistry",value:function(){return this.monitor.registry}},{key:"getActions",value:function(){var D=this,J=this.store.dispatch;function ce(ua){return function(){for(var fa=arguments.length,Da=new Array(fa),Ja=0;Ja0}var Du=function(){function N(M,D){oa(this,N),this.store=M,this.registry=D}return za(N,[{key:"subscribeToStateChange",value:function(D){var J=this,ce=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},qe=ce.handlerIds;_e(typeof D=="function","listener must be a function."),_e(typeof qe=="undefined"||Array.isArray(qe),"handlerIds, when specified, must be an array of strings.");var ua=this.store.getState().stateId,fa=function(){var Ja=J.store.getState(),_i=Ja.stateId;try{var dn=_i===ua||_i===ua+1&&!Iu(Ja.dirtyHandlerIds,qe);dn||D()}finally{ua=_i}};return this.store.subscribe(fa)}},{key:"subscribeToOffsetChange",value:function(D){var J=this;_e(typeof D=="function","listener must be a function.");var ce=this.store.getState().dragOffset,qe=function(){var fa=J.store.getState().dragOffset;fa!==ce&&(ce=fa,D())};return this.store.subscribe(qe)}},{key:"canDragSource",value:function(D){if(!D)return!1;var J=this.registry.getSource(D);return _e(J,"Expected to find a valid source. sourceId=".concat(D)),this.isDragging()?!1:J.canDrag(this,D)}},{key:"canDropOnTarget",value:function(D){if(!D)return!1;var J=this.registry.getTarget(D);if(_e(J,"Expected to find a valid target. targetId=".concat(D)),!this.isDragging()||this.didDrop())return!1;var ce=this.registry.getTargetType(D),qe=this.getItemType();return Zn(ce,qe)&&J.canDrop(this,D)}},{key:"isDragging",value:function(){return Boolean(this.getItemType())}},{key:"isDraggingSource",value:function(D){if(!D)return!1;var J=this.registry.getSource(D,!0);if(_e(J,"Expected to find a valid source. sourceId=".concat(D)),!this.isDragging()||!this.isSourcePublic())return!1;var ce=this.registry.getSourceType(D),qe=this.getItemType();return ce!==qe?!1:J.isDragging(this,D)}},{key:"isOverTarget",value:function(D){var J=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{shallow:!1};if(!D)return!1;var ce=J.shallow;if(!this.isDragging())return!1;var qe=this.registry.getTargetType(D),ua=this.getItemType();if(ua&&!Zn(qe,ua))return!1;var fa=this.getTargetIds();if(!fa.length)return!1;var Da=fa.indexOf(D);return ce?Da===fa.length-1:Da>-1}},{key:"getItemType",value:function(){return this.store.getState().dragOperation.itemType}},{key:"getItem",value:function(){return this.store.getState().dragOperation.item}},{key:"getSourceId",value:function(){return this.store.getState().dragOperation.sourceId}},{key:"getTargetIds",value:function(){return this.store.getState().dragOperation.targetIds}},{key:"getDropResult",value:function(){return this.store.getState().dragOperation.dropResult}},{key:"didDrop",value:function(){return this.store.getState().dragOperation.didDrop}},{key:"isSourcePublic",value:function(){return Boolean(this.store.getState().dragOperation.isSourcePublic)}},{key:"getInitialClientOffset",value:function(){return this.store.getState().dragOffset.initialClientOffset}},{key:"getInitialSourceClientOffset",value:function(){return this.store.getState().dragOffset.initialSourceClientOffset}},{key:"getClientOffset",value:function(){return this.store.getState().dragOffset.clientOffset}},{key:"getSourceClientOffset",value:function(){return sc(this.store.getState().dragOffset)}},{key:"getDifferenceFromInitialOffset",value:function(){return Ou(this.store.getState().dragOffset)}}]),N}();const cs=typeof global!="undefined"?global:self,ct=cs.MutationObserver||cs.WebKitMutationObserver;function Cr(N){return function(){const D=setTimeout(ce,0),J=setInterval(ce,50);function ce(){clearTimeout(D),clearInterval(J),N()}}}function mt(N){let M=1;const D=new ct(N),J=document.createTextNode("");return D.observe(J,{characterData:!0}),function(){M=-M,J.data=M}}const uc=typeof ct=="function"?mt:Cr;class Mo{enqueueTask(M){const{queue:D,requestFlush:J}=this;D.length||(J(),this.flushing=!0),D[D.length]=M}constructor(){this.queue=[],this.pendingErrors=[],this.flushing=!1,this.index=0,this.capacity=1024,this.flush=()=>{const{queue:M}=this;for(;this.indexthis.capacity){for(let J=0,ce=M.length-this.index;J{this.pendingErrors.push(M),this.requestErrorThrow()},this.requestFlush=uc(this.flush),this.requestErrorThrow=Cr(()=>{if(this.pendingErrors.length)throw this.pendingErrors.shift()})}}class ms{call(){try{this.task&&this.task()}catch(M){this.onError(M)}finally{this.task=null,this.release(this)}}constructor(M,D){this.onError=M,this.release=D,this.task=null}}class Tu{create(M){const D=this.freeTasks,J=D.length?D.pop():new ms(this.onError,ce=>D[D.length]=ce);return J.task=M,J}constructor(M){this.onError=M,this.freeTasks=[]}}const hs=new Mo,Ru=new Tu(hs.registerPendingError);function lc(N){hs.enqueueTask(Ru.create(N))}var Fo="dnd-core/ADD_SOURCE",Lo="dnd-core/ADD_TARGET",Uo="dnd-core/REMOVE_SOURCE",o_="dnd-core/REMOVE_TARGET";function Sr(N){return{type:Fo,payload:{sourceId:N}}}function r_(N){return{type:Lo,payload:{targetId:N}}}function t_(N){return{type:Uo,payload:{sourceId:N}}}function ds(N){return{type:o_,payload:{targetId:N}}}function Au(N){_e(typeof N.canDrag=="function","Expected canDrag to be a function."),_e(typeof N.beginDrag=="function","Expected beginDrag to be a function."),_e(typeof N.endDrag=="function","Expected endDrag to be a function.")}function cc(N){_e(typeof N.canDrop=="function","Expected canDrop to be a function."),_e(typeof N.hover=="function","Expected hover to be a function."),_e(typeof N.drop=="function","Expected beginDrag to be a function.")}function gs(N,M){if(M&&Array.isArray(N)){N.forEach(function(D){return gs(D,!1)});return}_e(typeof N=="string"||Fe(N)==="symbol",M?"Type can only be a string, a symbol, or an array of either.":"Type can only be a string or a symbol.")}var $i;(function(N){N.SOURCE="SOURCE",N.TARGET="TARGET"})($i||($i={}));var Nu=0;function mc(){return Nu++}function Mu(N){var M=mc().toString();switch(N){case $i.SOURCE:return"S".concat(M);case $i.TARGET:return"T".concat(M);default:throw new Error("Unknown Handler Role: ".concat(N))}}function ks(N){switch(N[0]){case"S":return $i.SOURCE;case"T":return $i.TARGET;default:throw new Error("Cannot parse handler ID: ".concat(N))}}function __(N,M){var D=N.entries(),J=!1;do{var ce=D.next(),qe=ce.done,ua=I(ce.value,2),fa=ua[1];if(fa===M)return!0;J=!!qe}while(!J);return!1}var hc=function(){function N(M){oa(this,N),this.types=new Map,this.dragSources=new Map,this.dropTargets=new Map,this.pinnedSourceId=null,this.pinnedSource=null,this.store=M}return za(N,[{key:"addSource",value:function(D,J){gs(D),Au(J);var ce=this.addHandler($i.SOURCE,D,J);return this.store.dispatch(Sr(ce)),ce}},{key:"addTarget",value:function(D,J){gs(D,!0),cc(J);var ce=this.addHandler($i.TARGET,D,J);return this.store.dispatch(r_(ce)),ce}},{key:"containsHandler",value:function(D){return __(this.dragSources,D)||__(this.dropTargets,D)}},{key:"getSource",value:function(D){var J=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;_e(this.isSourceId(D),"Expected a valid source ID.");var ce=J&&D===this.pinnedSourceId,qe=ce?this.pinnedSource:this.dragSources.get(D);return qe}},{key:"getTarget",value:function(D){return _e(this.isTargetId(D),"Expected a valid target ID."),this.dropTargets.get(D)}},{key:"getSourceType",value:function(D){return _e(this.isSourceId(D),"Expected a valid source ID."),this.types.get(D)}},{key:"getTargetType",value:function(D){return _e(this.isTargetId(D),"Expected a valid target ID."),this.types.get(D)}},{key:"isSourceId",value:function(D){var J=ks(D);return J===$i.SOURCE}},{key:"isTargetId",value:function(D){var J=ks(D);return J===$i.TARGET}},{key:"removeSource",value:function(D){var J=this;_e(this.getSource(D),"Expected an existing source."),this.store.dispatch(t_(D)),lc(function(){J.dragSources.delete(D),J.types.delete(D)})}},{key:"removeTarget",value:function(D){_e(this.getTarget(D),"Expected an existing target."),this.store.dispatch(ds(D)),this.dropTargets.delete(D),this.types.delete(D)}},{key:"pinSource",value:function(D){var J=this.getSource(D);_e(J,"Expected an existing source."),this.pinnedSourceId=D,this.pinnedSource=J}},{key:"unpinSource",value:function(){_e(this.pinnedSource,"No source is pinned at the time."),this.pinnedSourceId=null,this.pinnedSource=null}},{key:"addHandler",value:function(D,J,ce){var qe=Mu(D);return this.types.set(qe,J),D===$i.SOURCE?this.dragSources.set(qe,ce):D===$i.TARGET&&this.dropTargets.set(qe,ce),qe}}]),N}(),ps=function(M,D){return M===D};function dc(N,M){return!N&&!M?!0:!N||!M?!1:N.x===M.x&&N.y===M.y}function gc(N,M){var D=arguments.length>2&&arguments[2]!==void 0?arguments[2]:ps;if(N.length!==M.length)return!1;for(var J=0;J0&&arguments[0]!==void 0?arguments[0]:i_,M=arguments.length>1?arguments[1]:void 0;switch(M.type){case pe:break;case Fo:case Lo:case o_:case Uo:return i_;case ee:case X:case xe:case ge:default:return n_}var D=M.payload,J=D.targetIds,ce=J===void 0?[]:J,qe=D.prevTargetIds,ua=qe===void 0?[]:qe,fa=ne(ce,ua),Da=fa.length>0||!gc(ce,ua);if(!Da)return i_;var Ja=ua[ua.length-1],_i=ce[ce.length-1];return Ja!==_i&&(Ja&&fa.push(Ja),_i&&fa.push(_i)),fa}function Fu(N,M,D){return M in N?Object.defineProperty(N,M,{value:D,enumerable:!0,configurable:!0,writable:!0}):N[M]=D,N}function gi(N){for(var M=1;M0&&arguments[0]!==void 0?arguments[0]:fs,M=arguments.length>1?arguments[1]:void 0,D=M.payload;switch(M.type){case Z:case ee:return{initialSourceClientOffset:D.sourceClientOffset,initialClientOffset:D.clientOffset,clientOffset:D.clientOffset};case pe:return dc(N.clientOffset,D.clientOffset)?N:gi({},N,{clientOffset:D.clientOffset});case xe:case ge:return fs;default:return N}}function kc(N,M,D){return M in N?Object.defineProperty(N,M,{value:D,enumerable:!0,configurable:!0,writable:!0}):N[M]=D,N}function rr(N){for(var M=1;M0&&arguments[0]!==void 0?arguments[0]:s_,M=arguments.length>1?arguments[1]:void 0,D=M.payload;switch(M.type){case ee:return rr({},N,{itemType:D.itemType,item:D.item,sourceId:D.sourceId,isSourcePublic:D.isSourcePublic,dropResult:null,didDrop:!1});case X:return rr({},N,{isSourcePublic:!0});case pe:return rr({},N,{targetIds:D.targetIds});case o_:return N.targetIds.indexOf(D.targetId)===-1?N:rr({},N,{targetIds:q(N.targetIds,D.targetId)});case ge:return rr({},N,{dropResult:D.dropResult,didDrop:!0,targetIds:[]});case xe:return rr({},N,{itemType:null,item:null,sourceId:null,dropResult:null,didDrop:!1,isSourcePublic:null,targetIds:[]});default:return N}}function pc(){var N=arguments.length>0&&arguments[0]!==void 0?arguments[0]:0,M=arguments.length>1?arguments[1]:void 0;switch(M.type){case Fo:case Lo:return N+1;case Uo:case o_:return N-1;default:return N}}function On(){var N=arguments.length>0&&arguments[0]!==void 0?arguments[0]:0;return N+1}function Km(N,M,D){return M in N?Object.defineProperty(N,M,{value:D,enumerable:!0,configurable:!0,writable:!0}):N[M]=D,N}function Qm(N){for(var M=1;M0&&arguments[0]!==void 0?arguments[0]:{},M=arguments.length>1?arguments[1]:void 0;return{dirtyHandlerIds:xi(N.dirtyHandlerIds,{type:M.type,payload:Qm({},M.payload,{prevTargetIds:We(N,"dragOperation.targetIds",[])})}),dragOffset:ht(N.dragOffset,M),refCount:pc(N.refCount,M),dragOperation:eo(N.dragOperation,M),stateId:On(N.stateId)}}function u_(N){var M=arguments.length>1&&arguments[1]!==void 0?arguments[1]:void 0,D=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},J=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1,ce=dt(J),qe=new Du(ce,new hc(ce)),ua=new nr(ce,qe),fa=N(ua,M,D);return ua.receiveBackend(fa),ua}function dt(N){var M=typeof window!="undefined"&&window.__REDUX_DEVTOOLS_EXTENSION__;return Le(fc,N&&M&&M({name:"dnd-core",instanceId:"dnd-core"}))}function Pr(N,M){if(N==null)return{};var D=Er(N,M),J,ce;if(Object.getOwnPropertySymbols){var qe=Object.getOwnPropertySymbols(N);for(ce=0;ce=0)&&Object.prototype.propertyIsEnumerable.call(N,J)&&(D[J]=N[J])}return D}function Er(N,M){if(N==null)return{};var D={},J=Object.keys(N),ce,qe;for(qe=0;qe=0)&&(D[ce]=N[ce]);return D}var ys=0,bs=Symbol.for("__REACT_DND_CONTEXT_INSTANCE__"),Lu=(0,R.memo)(function(M){var D=M.children,J=Pr(M,["children"]),ce=yc(J),qe=I(ce,2),ua=qe[0],fa=qe[1];return(0,R.useEffect)(function(){if(fa){var Da=gt();return++ys,function(){--ys===0&&(Da[bs]=null)}}},[]),(0,B.jsx)($.Provider,{value:ua,children:D})});function yc(N){if("manager"in N){var M={dragDropManager:N.manager};return[M,!1]}var D=Uu(N.backend,N.context,N.options,N.debugMode),J=!N.context;return[D,J]}function Uu(N){var M=arguments.length>1&&arguments[1]!==void 0?arguments[1]:gt(),D=arguments.length>2?arguments[2]:void 0,J=arguments.length>3?arguments[3]:void 0,ce=M;return ce[bs]||(ce[bs]={dragDropManager:u_(N,M,D,J)}),ce[bs]}function gt(){return typeof global!="undefined"?global:window}var Jm=(0,R.memo)(function(M){var D=M.connect,J=M.src;return(0,R.useEffect)(function(){if(typeof Image!="undefined"){var ce=!1,qe=new Image;return qe.src=J,qe.onload=function(){D(qe),ce=!0},function(){ce&&D(null)}}}),null}),$u=x(4063),Ka=typeof window!="undefined"?R.useLayoutEffect:R.useEffect;function vs(N,M,D){var J=(0,R.useState)(function(){return M(N)}),ce=I(J,2),qe=ce[0],ua=ce[1],fa=(0,R.useCallback)(function(){var Da=M(N);$u(qe,Da)||(ua(Da),D&&D())},[qe,N,D]);return Ka(fa),[qe,fa]}function ws(N,M,D){var J=vs(N,M,D),ce=I(J,2),qe=ce[0],ua=ce[1];return Ka(function(){var Da=N.getHandlerId();if(Da!=null)return N.subscribeToStateChange(ua,{handlerIds:[Da]})},[N,ua]),qe}function js(N,M,D){return ws(M,N||function(){return{}},function(){return D.reconnect()})}var Ln=x(861);function fo(N,M){var D=Ln(M||[]);return M==null&&typeof N!="function"&&D.push(N),(0,R.useMemo)(function(){return typeof N=="function"?N():N},D)}function Hu(N){return(0,R.useMemo)(function(){return N.hooks.dragSource()},[N])}function l_(N){return(0,R.useMemo)(function(){return N.hooks.dragPreview()},[N])}function kt(N,M,D,J){let ce=D?D.call(J,N,M):void 0;if(ce!==void 0)return!!ce;if(N===M)return!0;if(typeof N!="object"||!N||typeof M!="object"||!M)return!1;const qe=Object.keys(N),ua=Object.keys(M);if(qe.length!==ua.length)return!1;const fa=Object.prototype.hasOwnProperty.bind(M);for(let Da=0;Da, or turn it into a ")+"drag source or a drop target itself.")}}function ao(N){return function(){var M=arguments.length>0&&arguments[0]!==void 0?arguments[0]:null,D=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null;if(!(0,R.isValidElement)(M)){var J=M;return N(J,D),J}var ce=M;$o(ce);var qe=D?function(ua){return N(ua,D)}:N;return Ho(ce,qe)}}function pt(N){var M={};return Object.keys(N).forEach(function(D){var J=N[D];if(D.endsWith("Ref"))M[D]=N[D];else{var ce=ao(J);M[D]=function(){return ce}}}),M}function ft(N,M){typeof N=="function"?N(M):N.current=M}function Ho(N,M){var D=N.ref;return _e(typeof D!="string","Cannot connect React DnD to an element with an existing string ref. Please convert it to use a callback ref instead, or wrap it into a or
. Read more: https://reactjs.org/docs/refs-and-the-dom.html#callback-refs"),D?(0,R.cloneElement)(N,{ref:function(ce){ft(D,ce),ft(M,ce)}}):(0,R.cloneElement)(N,{ref:M})}var Or=function(){function N(M){var D=this;oa(this,N),this.hooks=pt({dragSource:function(ce,qe){D.clearDragSource(),D.dragSourceOptions=qe||null,Un(ce)?D.dragSourceRef=ce:D.dragSourceNode=ce,D.reconnectDragSource()},dragPreview:function(ce,qe){D.clearDragPreview(),D.dragPreviewOptions=qe||null,Un(ce)?D.dragPreviewRef=ce:D.dragPreviewNode=ce,D.reconnectDragPreview()}}),this.handlerId=null,this.dragSourceRef=null,this.dragSourceOptionsInternal=null,this.dragPreviewRef=null,this.dragPreviewOptionsInternal=null,this.lastConnectedHandlerId=null,this.lastConnectedDragSource=null,this.lastConnectedDragSourceOptions=null,this.lastConnectedDragPreview=null,this.lastConnectedDragPreviewOptions=null,this.backend=M}return za(N,[{key:"receiveHandlerId",value:function(D){this.handlerId!==D&&(this.handlerId=D,this.reconnect())}},{key:"connectTarget",get:function(){return this.dragSource}},{key:"dragSourceOptions",get:function(){return this.dragSourceOptionsInternal},set:function(D){this.dragSourceOptionsInternal=D}},{key:"dragPreviewOptions",get:function(){return this.dragPreviewOptionsInternal},set:function(D){this.dragPreviewOptionsInternal=D}},{key:"reconnect",value:function(){var D=this.reconnectDragSource();this.reconnectDragPreview(D)}},{key:"reconnectDragSource",value:function(){var D=this.dragSource,J=this.didHandlerIdChange()||this.didConnectedDragSourceChange()||this.didDragSourceOptionsChange();return J&&this.disconnectDragSource(),this.handlerId?D?(J&&(this.lastConnectedHandlerId=this.handlerId,this.lastConnectedDragSource=D,this.lastConnectedDragSourceOptions=this.dragSourceOptions,this.dragSourceUnsubscribe=this.backend.connectDragSource(this.handlerId,D,this.dragSourceOptions)),J):(this.lastConnectedDragSource=D,J):J}},{key:"reconnectDragPreview",value:function(){var D=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1,J=this.dragPreview,ce=D||this.didHandlerIdChange()||this.didConnectedDragPreviewChange()||this.didDragPreviewOptionsChange();if(ce&&this.disconnectDragPreview(),!!this.handlerId){if(!J){this.lastConnectedDragPreview=J;return}ce&&(this.lastConnectedHandlerId=this.handlerId,this.lastConnectedDragPreview=J,this.lastConnectedDragPreviewOptions=this.dragPreviewOptions,this.dragPreviewUnsubscribe=this.backend.connectDragPreview(this.handlerId,J,this.dragPreviewOptions))}}},{key:"didHandlerIdChange",value:function(){return this.lastConnectedHandlerId!==this.handlerId}},{key:"didConnectedDragSourceChange",value:function(){return this.lastConnectedDragSource!==this.dragSource}},{key:"didConnectedDragPreviewChange",value:function(){return this.lastConnectedDragPreview!==this.dragPreview}},{key:"didDragSourceOptionsChange",value:function(){return!kt(this.lastConnectedDragSourceOptions,this.dragSourceOptions)}},{key:"didDragPreviewOptionsChange",value:function(){return!kt(this.lastConnectedDragPreviewOptions,this.dragPreviewOptions)}},{key:"disconnectDragSource",value:function(){this.dragSourceUnsubscribe&&(this.dragSourceUnsubscribe(),this.dragSourceUnsubscribe=void 0)}},{key:"disconnectDragPreview",value:function(){this.dragPreviewUnsubscribe&&(this.dragPreviewUnsubscribe(),this.dragPreviewUnsubscribe=void 0,this.dragPreviewNode=null,this.dragPreviewRef=null)}},{key:"dragSource",get:function(){return this.dragSourceNode||this.dragSourceRef&&this.dragSourceRef.current}},{key:"dragPreview",get:function(){return this.dragPreviewNode||this.dragPreviewRef&&this.dragPreviewRef.current}},{key:"clearDragSource",value:function(){this.dragSourceNode=null,this.dragSourceRef=null}},{key:"clearDragPreview",value:function(){this.dragPreviewNode=null,this.dragPreviewRef=null}}]),N}();function Wo(){var N=(0,R.useContext)($),M=N.dragDropManager;return _e(M!=null,"Expected drag drop context"),M}function yt(N,M){var D=Wo(),J=(0,R.useMemo)(function(){return new Or(D.getBackend())},[D]);return Ka(function(){return J.dragSourceOptions=N||null,J.reconnect(),function(){return J.disconnectDragSource()}},[J,N]),Ka(function(){return J.dragPreviewOptions=M||null,J.reconnect(),function(){return J.disconnectDragPreview()}},[J,M]),J}var zs=!1,c_=!1,xs=function(){function N(M){oa(this,N),this.sourceId=null,this.internalMonitor=M.getMonitor()}return za(N,[{key:"receiveHandlerId",value:function(D){this.sourceId=D}},{key:"getHandlerId",value:function(){return this.sourceId}},{key:"canDrag",value:function(){_e(!zs,"You may not call monitor.canDrag() inside your canDrag() implementation. Read more: http://react-dnd.github.io/react-dnd/docs/api/drag-source-monitor");try{return zs=!0,this.internalMonitor.canDragSource(this.sourceId)}finally{zs=!1}}},{key:"isDragging",value:function(){if(!this.sourceId)return!1;_e(!c_,"You may not call monitor.isDragging() inside your isDragging() implementation. Read more: http://react-dnd.github.io/react-dnd/docs/api/drag-source-monitor");try{return c_=!0,this.internalMonitor.isDraggingSource(this.sourceId)}finally{c_=!1}}},{key:"subscribeToStateChange",value:function(D,J){return this.internalMonitor.subscribeToStateChange(D,J)}},{key:"isDraggingSource",value:function(D){return this.internalMonitor.isDraggingSource(D)}},{key:"isOverTarget",value:function(D,J){return this.internalMonitor.isOverTarget(D,J)}},{key:"getTargetIds",value:function(){return this.internalMonitor.getTargetIds()}},{key:"isSourcePublic",value:function(){return this.internalMonitor.isSourcePublic()}},{key:"getSourceId",value:function(){return this.internalMonitor.getSourceId()}},{key:"subscribeToOffsetChange",value:function(D){return this.internalMonitor.subscribeToOffsetChange(D)}},{key:"canDragSource",value:function(D){return this.internalMonitor.canDragSource(D)}},{key:"canDropOnTarget",value:function(D){return this.internalMonitor.canDropOnTarget(D)}},{key:"getItemType",value:function(){return this.internalMonitor.getItemType()}},{key:"getItem",value:function(){return this.internalMonitor.getItem()}},{key:"getDropResult",value:function(){return this.internalMonitor.getDropResult()}},{key:"didDrop",value:function(){return this.internalMonitor.didDrop()}},{key:"getInitialClientOffset",value:function(){return this.internalMonitor.getInitialClientOffset()}},{key:"getInitialSourceClientOffset",value:function(){return this.internalMonitor.getInitialSourceClientOffset()}},{key:"getSourceClientOffset",value:function(){return this.internalMonitor.getSourceClientOffset()}},{key:"getClientOffset",value:function(){return this.internalMonitor.getClientOffset()}},{key:"getDifferenceFromInitialOffset",value:function(){return this.internalMonitor.getDifferenceFromInitialOffset()}}]),N}();function Cs(){var N=Wo();return(0,R.useMemo)(function(){return new xs(N)},[N])}function bc(N,M,D){var J=D.getRegistry(),ce=J.addTarget(N,M);return[ce,function(){return J.removeTarget(ce)}]}function bt(N,M,D){var J=D.getRegistry(),ce=J.addSource(N,M);return[ce,function(){return J.removeSource(ce)}]}var vt=function(){function N(M,D,J){oa(this,N),this.spec=M,this.monitor=D,this.connector=J}return za(N,[{key:"beginDrag",value:function(){var D=this.spec,J=this.monitor,ce=null;return Fe(D.item)==="object"?ce=D.item:typeof D.item=="function"?ce=D.item(J):ce={},ce!=null?ce:null}},{key:"canDrag",value:function(){var D=this.spec,J=this.monitor;return typeof D.canDrag=="boolean"?D.canDrag:typeof D.canDrag=="function"?D.canDrag(J):!0}},{key:"isDragging",value:function(D,J){var ce=this.spec,qe=this.monitor,ua=ce.isDragging;return ua?ua(qe):J===D.getSourceId()}},{key:"endDrag",value:function(){var D=this.spec,J=this.monitor,ce=this.connector,qe=D.end;qe&&qe(J.getItem(),J),ce.reconnect()}}]),N}();function wt(N,M,D){var J=(0,R.useMemo)(function(){return new vt(N,M,D)},[M,D]);return(0,R.useEffect)(function(){J.spec=N},[N]),J}function m_(N){return(0,R.useMemo)(function(){var M=N.type;return _e(M!=null,"spec.type must be defined"),M},[N])}function Zm(N,M,D){var J=Wo(),ce=wt(N,M,D),qe=m_(N);Ka(function(){if(qe!=null){var fa=bt(qe,ce,J),Da=I(fa,2),Ja=Da[0],_i=Da[1];return M.receiveHandlerId(Ja),D.receiveHandlerId(Ja),_i}},[J,M,D,ce,qe])}function eh(N,M){var D=fo(N,M);_e(!D.begin,"useDrag::spec.begin was deprecated in v14. Replace spec.begin() with spec.item(). (see more here - https://react-dnd.github.io/react-dnd/docs/api/use-drag)");var J=Cs(),ce=yt(D.options,D.previewOptions);return Zm(D,J,ce),[js(D.collect,J,ce),Hu(ce),l_(ce)]}function Wu(N){var M=Wo(),D=M.getMonitor(),J=vs(D,N),ce=I(J,2),qe=ce[0],ua=ce[1];return(0,R.useEffect)(function(){return D.subscribeToOffsetChange(ua)}),(0,R.useEffect)(function(){return D.subscribeToStateChange(ua)}),qe}function Ss(N){return(0,R.useMemo)(function(){return N.hooks.dropTarget()},[N])}var ia=function(){function N(M){var D=this;oa(this,N),this.hooks=pt({dropTarget:function(ce,qe){D.clearDropTarget(),D.dropTargetOptions=qe,Un(ce)?D.dropTargetRef=ce:D.dropTargetNode=ce,D.reconnect()}}),this.handlerId=null,this.dropTargetRef=null,this.dropTargetOptionsInternal=null,this.lastConnectedHandlerId=null,this.lastConnectedDropTarget=null,this.lastConnectedDropTargetOptions=null,this.backend=M}return za(N,[{key:"connectTarget",get:function(){return this.dropTarget}},{key:"reconnect",value:function(){var D=this.didHandlerIdChange()||this.didDropTargetChange()||this.didOptionsChange();D&&this.disconnectDropTarget();var J=this.dropTarget;if(this.handlerId){if(!J){this.lastConnectedDropTarget=J;return}D&&(this.lastConnectedHandlerId=this.handlerId,this.lastConnectedDropTarget=J,this.lastConnectedDropTargetOptions=this.dropTargetOptions,this.unsubscribeDropTarget=this.backend.connectDropTarget(this.handlerId,J,this.dropTargetOptions))}}},{key:"receiveHandlerId",value:function(D){D!==this.handlerId&&(this.handlerId=D,this.reconnect())}},{key:"dropTargetOptions",get:function(){return this.dropTargetOptionsInternal},set:function(D){this.dropTargetOptionsInternal=D}},{key:"didHandlerIdChange",value:function(){return this.lastConnectedHandlerId!==this.handlerId}},{key:"didDropTargetChange",value:function(){return this.lastConnectedDropTarget!==this.dropTarget}},{key:"didOptionsChange",value:function(){return!kt(this.lastConnectedDropTargetOptions,this.dropTargetOptions)}},{key:"disconnectDropTarget",value:function(){this.unsubscribeDropTarget&&(this.unsubscribeDropTarget(),this.unsubscribeDropTarget=void 0)}},{key:"dropTarget",get:function(){return this.dropTargetNode||this.dropTargetRef&&this.dropTargetRef.current}},{key:"clearDropTarget",value:function(){this.dropTargetRef=null,this.dropTargetNode=null}}]),N}();function h_(N){var M=Wo(),D=(0,R.useMemo)(function(){return new ia(M.getBackend())},[M]);return Ka(function(){return D.dropTargetOptions=N||null,D.reconnect(),function(){return D.disconnectDropTarget()}},[N]),D}var $n=!1,jt=function(){function N(M){oa(this,N),this.targetId=null,this.internalMonitor=M.getMonitor()}return za(N,[{key:"receiveHandlerId",value:function(D){this.targetId=D}},{key:"getHandlerId",value:function(){return this.targetId}},{key:"subscribeToStateChange",value:function(D,J){return this.internalMonitor.subscribeToStateChange(D,J)}},{key:"canDrop",value:function(){if(!this.targetId)return!1;_e(!$n,"You may not call monitor.canDrop() inside your canDrop() implementation. Read more: http://react-dnd.github.io/react-dnd/docs/api/drop-target-monitor");try{return $n=!0,this.internalMonitor.canDropOnTarget(this.targetId)}finally{$n=!1}}},{key:"isOver",value:function(D){return this.targetId?this.internalMonitor.isOverTarget(this.targetId,D):!1}},{key:"getItemType",value:function(){return this.internalMonitor.getItemType()}},{key:"getItem",value:function(){return this.internalMonitor.getItem()}},{key:"getDropResult",value:function(){return this.internalMonitor.getDropResult()}},{key:"didDrop",value:function(){return this.internalMonitor.didDrop()}},{key:"getInitialClientOffset",value:function(){return this.internalMonitor.getInitialClientOffset()}},{key:"getInitialSourceClientOffset",value:function(){return this.internalMonitor.getInitialSourceClientOffset()}},{key:"getSourceClientOffset",value:function(){return this.internalMonitor.getSourceClientOffset()}},{key:"getClientOffset",value:function(){return this.internalMonitor.getClientOffset()}},{key:"getDifferenceFromInitialOffset",value:function(){return this.internalMonitor.getDifferenceFromInitialOffset()}}]),N}();function d_(){var N=Wo();return(0,R.useMemo)(function(){return new jt(N)},[N])}function Ps(N){var M=N.accept;return(0,R.useMemo)(function(){return _e(N.accept!=null,"accept must be defined"),Array.isArray(M)?M:[M]},[M])}var mn=function(){function N(M,D){oa(this,N),this.spec=M,this.monitor=D}return za(N,[{key:"canDrop",value:function(){var D=this.spec,J=this.monitor;return D.canDrop?D.canDrop(J.getItem(),J):!0}},{key:"hover",value:function(){var D=this.spec,J=this.monitor;D.hover&&D.hover(J.getItem(),J)}},{key:"drop",value:function(){var D=this.spec,J=this.monitor;if(D.drop)return D.drop(J.getItem(),J)}}]),N}();function oi(N,M){var D=(0,R.useMemo)(function(){return new mn(N,M)},[M]);return(0,R.useEffect)(function(){D.spec=N},[N]),D}function Vu(N,M,D){var J=Wo(),ce=oi(N,M),qe=Ps(N);Ka(function(){var fa=bc(qe,ce,J),Da=I(fa,2),Ja=Da[0],_i=Da[1];return M.receiveHandlerId(Ja),D.receiveHandlerId(Ja),_i},[J,M,ce,D,qe.map(function(ua){return ua.toString()}).join("|")])}function hn(N,M){var D=fo(N,M),J=d_(),ce=h_(D.options);return Vu(D,J,ce),[js(D.collect,J,ce),Ss(ce)]}},2250:function(F,g,x){"use strict";x.r(g),x.d(g,{HTML5Backend:function(){return Fe},NativeTypes:function(){return R},getEmptyImage:function(){return Me}});var R={};x.r(R),x.d(R,{FILE:function(){return Q},HTML:function(){return ye},TEXT:function(){return Oe},URL:function(){return de}});function $(We){let q=null;return()=>(q==null&&(q=We()),q)}function I(We,q){return We.filter(Y=>Y!==q)}function B(We,q){const Y=new Set,fe=V=>Y.add(V);We.forEach(fe),q.forEach(fe);const ne=[];return Y.forEach(V=>ne.push(V)),ne}class W{enter(q){const Y=this.entered.length,fe=ne=>this.isNodeInDocument(ne)&&(!ne.contains||ne.contains(q));return this.entered=B(this.entered.filter(fe),[q]),Y===0&&this.entered.length>0}leave(q){const Y=this.entered.length;return this.entered=I(this.entered.filter(this.isNodeInDocument),q),Y>0&&this.entered.length===0}reset(){this.entered=[]}constructor(q){this.entered=[],this.isNodeInDocument=q}}class G{initializeExposedProperties(){Object.keys(this.config.exposeProperties).forEach(q=>{Object.defineProperty(this.item,q,{configurable:!0,enumerable:!0,get(){return console.warn(`Browser doesn't allow reading "${q}" until the drop event.`),null}})})}loadDataTransfer(q){if(q){const Y={};Object.keys(this.config.exposeProperties).forEach(fe=>{const ne=this.config.exposeProperties[fe];ne!=null&&(Y[fe]={value:ne(q,this.config.matchesTypes),configurable:!0,enumerable:!0})}),Object.defineProperties(this.item,Y)}}canDrag(){return!0}beginDrag(){return this.item}isDragging(q,Y){return Y===q.getSourceId()}endDrag(){}constructor(q){this.config=q,this.item={},this.initializeExposedProperties()}}const Q="__NATIVE_FILE__",de="__NATIVE_URL__",Oe="__NATIVE_TEXT__",ye="__NATIVE_HTML__";function De(We,q,Y){const fe=q.reduce((ne,V)=>ne||We.getData(V),"");return fe!=null?fe:Y}const we={[Q]:{exposeProperties:{files:We=>Array.prototype.slice.call(We.files),items:We=>We.items,dataTransfer:We=>We},matchesTypes:["Files"]},[ye]:{exposeProperties:{html:(We,q)=>De(We,q,""),dataTransfer:We=>We},matchesTypes:["Html","text/html"]},[de]:{exposeProperties:{urls:(We,q)=>De(We,q,"").split(` -`),dataTransfer:We=>We},matchesTypes:["Url","text/uri-list"]},[Oe]:{exposeProperties:{text:(We,q)=>De(We,q,""),dataTransfer:We=>We},matchesTypes:["Text","text/plain"]}};function Te(We,q){const Y=we[We];if(!Y)throw new Error(`native type ${We} has no configuration`);const fe=new G(Y);return fe.loadDataTransfer(q),fe}function Re(We){if(!We)return null;const q=Array.prototype.slice.call(We.types||[]);return Object.keys(we).filter(Y=>{const fe=we[Y];return fe!=null&&fe.matchesTypes?fe.matchesTypes.some(ne=>q.indexOf(ne)>-1):!1})[0]||null}const Le=$(()=>/firefox/i.test(navigator.userAgent)),Ce=$(()=>Boolean(window.safari));class Ne{interpolate(q){const{xs:Y,ys:fe,c1s:ne,c2s:V,c3s:Z}=this;let ee=Y.length-1;if(q===Y[ee])return fe[ee];let X=0,pe=Z.length-1,ge;for(;X<=pe;){ge=Math.floor(.5*(X+pe));const Ke=Y[ge];if(Keq)pe=ge-1;else return fe[ge]}ee=Math.max(0,pe);const xe=q-Y[ee],Ue=xe*xe;return fe[ee]+ne[ee]*xe+V[ee]*Ue+Z[ee]*xe*Ue}constructor(q,Y){const{length:fe}=q,ne=[];for(let Be=0;Beq[Be]{let En=new Ne([0,.5,1],[X.y,X.y/ge*Be,X.y+Be-ge]).interpolate(Ue);return Ce()&&V&&(En+=(window.devicePixelRatio-1)*Be),En},ti=()=>new Ne([0,.5,1],[X.x,X.x/pe*Ke,X.x+Ke-pe]).interpolate(xe),{offsetX:Va,offsetY:Ya}=ne,ci=Va===0||Va,Bi=Ya===0||Ya;return{x:ci?Va:ti(),y:Bi?Ya:ba()}}class sa{get window(){if(this.globalContext)return this.globalContext;if(typeof window!="undefined")return window}get document(){var q;return!((q=this.globalContext)===null||q===void 0)&&q.document?this.globalContext.document:this.window?this.window.document:void 0}get rootElement(){var q;return((q=this.optionsArgs)===null||q===void 0?void 0:q.rootElement)||this.window}constructor(q,Y){this.ownerDocument=null,this.globalContext=q,this.optionsArgs=Y}}function oa(We,q,Y){return q in We?Object.defineProperty(We,q,{value:Y,enumerable:!0,configurable:!0,writable:!0}):We[q]=Y,We}function za(We){for(var q=1;q{this.sourcePreviewNodes.delete(q),this.sourcePreviewNodeOptions.delete(q)}}connectDragSource(q,Y,fe){this.sourceNodes.set(q,Y),this.sourceNodeOptions.set(q,fe);const ne=Z=>this.handleDragStart(Z,q),V=Z=>this.handleSelectStart(Z);return Y.setAttribute("draggable","true"),Y.addEventListener("dragstart",ne),Y.addEventListener("selectstart",V),()=>{this.sourceNodes.delete(q),this.sourceNodeOptions.delete(q),Y.removeEventListener("dragstart",ne),Y.removeEventListener("selectstart",V),Y.setAttribute("draggable","false")}}connectDropTarget(q,Y){const fe=Z=>this.handleDragEnter(Z,q),ne=Z=>this.handleDragOver(Z,q),V=Z=>this.handleDrop(Z,q);return Y.addEventListener("dragenter",fe),Y.addEventListener("dragover",ne),Y.addEventListener("drop",V),()=>{Y.removeEventListener("dragenter",fe),Y.removeEventListener("dragover",ne),Y.removeEventListener("drop",V)}}addEventListeners(q){q.addEventListener&&(q.addEventListener("dragstart",this.handleTopDragStart),q.addEventListener("dragstart",this.handleTopDragStartCapture,!0),q.addEventListener("dragend",this.handleTopDragEndCapture,!0),q.addEventListener("dragenter",this.handleTopDragEnter),q.addEventListener("dragenter",this.handleTopDragEnterCapture,!0),q.addEventListener("dragleave",this.handleTopDragLeaveCapture,!0),q.addEventListener("dragover",this.handleTopDragOver),q.addEventListener("dragover",this.handleTopDragOverCapture,!0),q.addEventListener("drop",this.handleTopDrop),q.addEventListener("drop",this.handleTopDropCapture,!0))}removeEventListeners(q){q.removeEventListener&&(q.removeEventListener("dragstart",this.handleTopDragStart),q.removeEventListener("dragstart",this.handleTopDragStartCapture,!0),q.removeEventListener("dragend",this.handleTopDragEndCapture,!0),q.removeEventListener("dragenter",this.handleTopDragEnter),q.removeEventListener("dragenter",this.handleTopDragEnterCapture,!0),q.removeEventListener("dragleave",this.handleTopDragLeaveCapture,!0),q.removeEventListener("dragover",this.handleTopDragOver),q.removeEventListener("dragover",this.handleTopDragOverCapture,!0),q.removeEventListener("drop",this.handleTopDrop),q.removeEventListener("drop",this.handleTopDropCapture,!0))}getCurrentSourceNodeOptions(){const q=this.monitor.getSourceId(),Y=this.sourceNodeOptions.get(q);return za({dropEffect:this.altKeyPressed?"copy":"move"},Y||{})}getCurrentDropEffect(){return this.isDraggingNativeItem()?"copy":this.getCurrentSourceNodeOptions().dropEffect}getCurrentSourcePreviewNodeOptions(){const q=this.monitor.getSourceId(),Y=this.sourcePreviewNodeOptions.get(q);return za({anchorX:.5,anchorY:.5,captureDraggingState:!1},Y||{})}isDraggingNativeItem(){const q=this.monitor.getItemType();return Object.keys(R).some(Y=>R[Y]===q)}beginDragNativeItem(q,Y){this.clearCurrentDragSourceNode(),this.currentNativeSource=Te(q,Y),this.currentNativeHandle=this.registry.addSource(q,this.currentNativeSource),this.actions.beginDrag([this.currentNativeHandle])}setCurrentDragSourceNode(q){this.clearCurrentDragSourceNode(),this.currentDragSourceNode=q;const Y=1e3;this.mouseMoveTimeoutTimer=setTimeout(()=>{var fe;return(fe=this.rootElement)===null||fe===void 0?void 0:fe.addEventListener("mousemove",this.endDragIfSourceWasRemovedFromDOM,!0)},Y)}clearCurrentDragSourceNode(){if(this.currentDragSourceNode){if(this.currentDragSourceNode=null,this.rootElement){var q;(q=this.window)===null||q===void 0||q.clearTimeout(this.mouseMoveTimeoutTimer||void 0),this.rootElement.removeEventListener("mousemove",this.endDragIfSourceWasRemovedFromDOM,!0)}return this.mouseMoveTimeoutTimer=null,!0}return!1}handleDragStart(q,Y){q.defaultPrevented||(this.dragStartSourceIds||(this.dragStartSourceIds=[]),this.dragStartSourceIds.unshift(Y))}handleDragEnter(q,Y){this.dragEnterTargetIds.unshift(Y)}handleDragOver(q,Y){this.dragOverTargetIds===null&&(this.dragOverTargetIds=[]),this.dragOverTargetIds.unshift(Y)}handleDrop(q,Y){this.dropTargetIds.unshift(Y)}constructor(q,Y,fe){this.sourcePreviewNodes=new Map,this.sourcePreviewNodeOptions=new Map,this.sourceNodes=new Map,this.sourceNodeOptions=new Map,this.dragStartSourceIds=null,this.dropTargetIds=[],this.dragEnterTargetIds=[],this.currentNativeSource=null,this.currentNativeHandle=null,this.currentDragSourceNode=null,this.altKeyPressed=!1,this.mouseMoveTimeoutTimer=null,this.asyncEndDragFrameId=null,this.dragOverTargetIds=null,this.lastClientOffset=null,this.hoverRafId=null,this.getSourceClientOffset=ne=>{const V=this.sourceNodes.get(ne);return V&&ve(V)||null},this.endDragNativeItem=()=>{this.isDraggingNativeItem()&&(this.actions.endDrag(),this.currentNativeHandle&&this.registry.removeSource(this.currentNativeHandle),this.currentNativeHandle=null,this.currentNativeSource=null)},this.isNodeInDocument=ne=>Boolean(ne&&this.document&&this.document.body&&this.document.body.contains(ne)),this.endDragIfSourceWasRemovedFromDOM=()=>{const ne=this.currentDragSourceNode;ne==null||this.isNodeInDocument(ne)||(this.clearCurrentDragSourceNode()&&this.monitor.isDragging()&&this.actions.endDrag(),this.cancelHover())},this.scheduleHover=ne=>{this.hoverRafId===null&&typeof requestAnimationFrame!="undefined"&&(this.hoverRafId=requestAnimationFrame(()=>{this.monitor.isDragging()&&this.actions.hover(ne||[],{clientOffset:this.lastClientOffset}),this.hoverRafId=null}))},this.cancelHover=()=>{this.hoverRafId!==null&&typeof cancelAnimationFrame!="undefined"&&(cancelAnimationFrame(this.hoverRafId),this.hoverRafId=null)},this.handleTopDragStartCapture=()=>{this.clearCurrentDragSourceNode(),this.dragStartSourceIds=[]},this.handleTopDragStart=ne=>{if(ne.defaultPrevented)return;const{dragStartSourceIds:V}=this;this.dragStartSourceIds=null;const Z=Ye(ne);this.monitor.isDragging()&&(this.actions.endDrag(),this.cancelHover()),this.actions.beginDrag(V||[],{publishSource:!1,getSourceClientOffset:this.getSourceClientOffset,clientOffset:Z});const{dataTransfer:ee}=ne,X=Re(ee);if(this.monitor.isDragging()){if(ee&&typeof ee.setDragImage=="function"){const ge=this.monitor.getSourceId(),xe=this.sourceNodes.get(ge),Ue=this.sourcePreviewNodes.get(ge)||xe;if(Ue){const{anchorX:Ke,anchorY:Be,offsetX:ba,offsetY:ti}=this.getCurrentSourcePreviewNodeOptions(),ci=ta(xe,Ue,Z,{anchorX:Ke,anchorY:Be},{offsetX:ba,offsetY:ti});ee.setDragImage(Ue,ci.x,ci.y)}}try{ee==null||ee.setData("application/json",{})}catch(ge){}this.setCurrentDragSourceNode(ne.target);const{captureDraggingState:pe}=this.getCurrentSourcePreviewNodeOptions();pe?this.actions.publishDragSource():setTimeout(()=>this.actions.publishDragSource(),0)}else if(X)this.beginDragNativeItem(X);else{if(ee&&!ee.types&&(ne.target&&!ne.target.hasAttribute||!ne.target.hasAttribute("draggable")))return;ne.preventDefault()}},this.handleTopDragEndCapture=()=>{this.clearCurrentDragSourceNode()&&this.monitor.isDragging()&&this.actions.endDrag(),this.cancelHover()},this.handleTopDragEnterCapture=ne=>{if(this.dragEnterTargetIds=[],this.isDraggingNativeItem()){var V;(V=this.currentNativeSource)===null||V===void 0||V.loadDataTransfer(ne.dataTransfer)}if(!this.enterLeaveCounter.enter(ne.target)||this.monitor.isDragging())return;const{dataTransfer:ee}=ne,X=Re(ee);X&&this.beginDragNativeItem(X,ee)},this.handleTopDragEnter=ne=>{const{dragEnterTargetIds:V}=this;if(this.dragEnterTargetIds=[],!this.monitor.isDragging())return;this.altKeyPressed=ne.altKey,V.length>0&&this.actions.hover(V,{clientOffset:Ye(ne)}),V.some(ee=>this.monitor.canDropOnTarget(ee))&&(ne.preventDefault(),ne.dataTransfer&&(ne.dataTransfer.dropEffect=this.getCurrentDropEffect()))},this.handleTopDragOverCapture=ne=>{if(this.dragOverTargetIds=[],this.isDraggingNativeItem()){var V;(V=this.currentNativeSource)===null||V===void 0||V.loadDataTransfer(ne.dataTransfer)}},this.handleTopDragOver=ne=>{const{dragOverTargetIds:V}=this;if(this.dragOverTargetIds=[],!this.monitor.isDragging()){ne.preventDefault(),ne.dataTransfer&&(ne.dataTransfer.dropEffect="none");return}this.altKeyPressed=ne.altKey,this.lastClientOffset=Ye(ne),this.scheduleHover(V),(V||[]).some(ee=>this.monitor.canDropOnTarget(ee))?(ne.preventDefault(),ne.dataTransfer&&(ne.dataTransfer.dropEffect=this.getCurrentDropEffect())):this.isDraggingNativeItem()?ne.preventDefault():(ne.preventDefault(),ne.dataTransfer&&(ne.dataTransfer.dropEffect="none"))},this.handleTopDragLeaveCapture=ne=>{this.isDraggingNativeItem()&&ne.preventDefault(),this.enterLeaveCounter.leave(ne.target)&&(this.isDraggingNativeItem()&&setTimeout(()=>this.endDragNativeItem(),0),this.cancelHover())},this.handleTopDropCapture=ne=>{if(this.dropTargetIds=[],this.isDraggingNativeItem()){var V;ne.preventDefault(),(V=this.currentNativeSource)===null||V===void 0||V.loadDataTransfer(ne.dataTransfer)}else Re(ne.dataTransfer)&&ne.preventDefault();this.enterLeaveCounter.reset()},this.handleTopDrop=ne=>{const{dropTargetIds:V}=this;this.dropTargetIds=[],this.actions.hover(V,{clientOffset:Ye(ne)}),this.actions.drop({dropEffect:this.getCurrentDropEffect()}),this.isDraggingNativeItem()?this.endDragNativeItem():this.monitor.isDragging()&&this.actions.endDrag(),this.cancelHover()},this.handleSelectStart=ne=>{const V=ne.target;typeof V.dragDrop=="function"&&(V.tagName==="INPUT"||V.tagName==="SELECT"||V.tagName==="TEXTAREA"||V.isContentEditable||(ne.preventDefault(),V.dragDrop()))},this.options=new sa(Y,fe),this.actions=q.getActions(),this.monitor=q.getMonitor(),this.registry=q.getRegistry(),this.enterLeaveCounter=new W(this.isNodeInDocument)}}let _e;function Me(){return _e||(_e=new Image,_e.src="data:image/gif;base64,R0lGODlhAQABAAAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw=="),_e}const Fe=function(q,Y,fe){return new Xa(q,Y,fe)}}},cn={};function ha(F){var g=cn[F];if(g!==void 0)return g.exports;var x=cn[F]={id:F,loaded:!1,exports:{}};return rn[F](x,x.exports,ha),x.loaded=!0,x.exports}(function(){ha.n=function(F){var g=F&&F.__esModule?function(){return F.default}:function(){return F};return ha.d(g,{a:g}),g}})(),function(){var F=Object.getPrototypeOf?function(x){return Object.getPrototypeOf(x)}:function(x){return x.__proto__},g;ha.t=function(x,R){if(R&1&&(x=this(x)),R&8||typeof x=="object"&&x&&(R&4&&x.__esModule||R&16&&typeof x.then=="function"))return x;var $=Object.create(null);ha.r($);var I={};g=g||[null,F({}),F([]),F(F)];for(var B=R&2&&x;typeof B=="object"&&!~g.indexOf(B);B=F(B))Object.getOwnPropertyNames(B).forEach(function(W){I[W]=function(){return x[W]}});return I.default=function(){return x},ha.d($,I),$}}(),function(){ha.d=function(F,g){for(var x in g)ha.o(g,x)&&!ha.o(F,x)&&Object.defineProperty(F,x,{enumerable:!0,get:g[x]})}}(),function(){ha.g=function(){if(typeof globalThis=="object")return globalThis;try{return this||new Function("return this")()}catch(F){if(typeof window=="object")return window}}()}(),function(){ha.o=function(F,g){return Object.prototype.hasOwnProperty.call(F,g)}}(),function(){ha.r=function(F){typeof Symbol!="undefined"&&Symbol.toStringTag&&Object.defineProperty(F,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(F,"__esModule",{value:!0})}}(),function(){ha.nmd=function(F){return F.paths=[],F.children||(F.children=[]),F}}(),function(){ha.nc=void 0}();var zr={};(function(){"use strict";var F={};ha.r(F),ha.d(F,{exclude:function(){return xC},extract:function(){return Zk},parse:function(){return ep},parseUrl:function(){return xb},pick:function(){return Sb},stringify:function(){return zb},stringifyUrl:function(){return Cb}});var g=ha(7294),x=ha.t(g,2),R=ha(745),$=ha(7424),I=ha.n($);function B(){try{return window.matchMedia("(prefers-color-scheme: dark)").matches}catch(e){return!1}}function W(){var e=(0,g.useState)(B()),a=I()(e,2),n=a[0],o=a[1];return(0,g.useEffect)(function(){var _=window.matchMedia("(prefers-color-scheme: dark)"),l=function(k){o(k.matches)};return _.addEventListener("change",l),function(){_.removeEventListener("change",l)}},[]),n}var G=ha(6690),Q=ha.n(G),de=ha(9728),Oe=ha.n(de),ye=function(){function e(){Q()(this,e)}return Oe()(e,null,[{key:"setFavicon",value:function(){var n=document.createElement("link");n.rel="icon",n.type="image/svg+xml",n.href="https://gw.alipayobjects.com/zos/bmw-prod/51a51720-8a30-4430-b6c9-be5712364f04.svg",document.getElementsByTagName("head")[0].appendChild(n)}}]),e}();onUiLoaded(function(){});var De=function(){ye.setFavicon()},we=ha(4704),Te=ha.n(we),Re=function(){function e(){Q()(this,e)}return Oe()(e,null,[{key:"round",value:function(n){return Math.round(n*1e4)/1e4}},{key:"convertStr",value:function(n){return n.replace(/:/g,":").replace(/(/g,"(").replace(/)/g,")")}},{key:"convertStr2Array",value:function(n){var o=/([()<>[\]])/g,_=function(f){for(var b=[],v=0,w=0,z;(z=o.exec(f))!==null;)w===0&&z.index>v&&(b.push(f.substring(v,z.index)),v=z.index),z[0]==="("||z[0]==="<"||z[0]==="["?w++:(z[0]===")"||z[0]===">"||z[0]==="]")&&w--,w===0&&(b.push(f.substring(v,z.index+1)),v=z.index+1);return v0&&v(O.stack.pop(),O.multiplier)}else h.push([E,1])}}catch(ie){w.e(ie)}finally{w.f()}Object.keys(b).forEach(function(ie){b[ie].stack.forEach(function(se){v(se,b[ie].multiplier)})}),h.length===0&&(h=[["",1]]);for(var P=0;P+1 label > textarea")),h=e.convert(l.value);l.value=h.match(/^masterpiece, best quality,/)===null?o+h:h,e.dispatchInputEvent(l);var k=gradioApp().querySelector("#".concat(n,"_neg_prompt > label > textarea")),f=e.convert(k.value);k.value=f.match(/^lowres,/)===null?f.length===0?_:_+f:f,e.dispatchInputEvent(k)}},{key:"createButton",value:function(n,o,_){var l=document.createElement("button");return l.id=n,l.type="button",l.innerHTML=o,l.title="Format prompt~\u{1FA84}",l.className="lg secondary gradio-button tool svelte-1ipelgc",l.addEventListener("click",_),l}},{key:"addPromptButton",value:function(n){var o,_=gradioApp().querySelector("#".concat(n,"_generate")),l=gradioApp().querySelector("#".concat(n,"_style_create")),h=gradioApp().querySelector("#".concat(n,"_formatconvert"));if(!(!_||!l||h)){var k=e.createButton("".concat(n,"_formatconvert"),"\u{1FA84}",function(){return e.onClickConvert(n)});(o=l.parentNode)===null||o===void 0||o.append(k)}}}]),e}();onUiUpdate(function(){});var Le=function(){Re.addPromptButton("txt2img"),Re.addPromptButton("img2img")},Ce=ha(8416),Ne=ha.n(Ce),na=Oe()(function e(a,n){var o=this;Q()(this,e),Ne()(this,"textArea",void 0),Ne()(this,"counterElt",void 0),Ne()(this,"errorStrings",void 0),Ne()(this,"check",function(){var _="";o.errorStrings.forEach(function(l){var h=l.regex,k=l.error,f=(o.textArea.value.match(new RegExp(h,"g"))||[]).length,b=(o.textArea.value.match(new RegExp(h.replace(/\(/g,")").replace(/\[/g,"]").replace(/\{/g,"}"),"g"))||[]).length;f!==b?o.counterElt.title.includes(k)||(_+=k):_=o.counterElt.title.replace(k,"")}),o.counterElt.title=_,o.counterElt.classList.toggle("error",!!_)}),this.textArea=a,this.counterElt=n,this.errorStrings=[{regex:"\\(",error:`(...) - Different number of opening and closing parentheses detected. +In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}F.exports=g,F.exports.__esModule=!0,F.exports.default=F.exports},2122:function(F,g,x){var R=x(8416);function $(V,W){var G=Object.keys(V);if(Object.getOwnPropertySymbols){var Q=Object.getOwnPropertySymbols(V);W&&(Q=Q.filter(function(de){return Object.getOwnPropertyDescriptor(V,de).enumerable})),G.push.apply(G,Q)}return G}function I(V){for(var W=1;W0)return"Unexpected "+(ua.length>1?"keys":"key")+" "+('"'+ua.join('", "')+'" found in '+qe+". ")+"Expected to find one of the known reducer keys instead: "+('"'+ce.join('", "')+'". Unexpected keys will be ignored.')}function ve(N){Object.keys(N).forEach(function(M){var D=N[M],J=D(void 0,{type:de.INIT});if(typeof J=="undefined")throw new Error(W(12));if(typeof D(void 0,{type:de.PROBE_UNKNOWN_ACTION()})=="undefined")throw new Error(W(13))})}function Ye(N){for(var M=Object.keys(N),D={},J=0;J-1})}var Z="dnd-core/INIT_COORDS",ee="dnd-core/BEGIN_DRAG",X="dnd-core/PUBLISH_DRAG_SOURCE",pe="dnd-core/HOVER",ge="dnd-core/DROP",xe="dnd-core/END_DRAG";function Ue(N,M){return{type:Z,payload:{sourceClientOffset:M||null,clientOffset:N||null}}}var Ke={type:Z,payload:{clientOffset:null,sourceClientOffset:null}};function Ve(N){return function(){var D=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],J=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{publishSource:!0},ce=J.publishSource,qe=ce===void 0?!0:ce,ua=J.clientOffset,fa=J.getSourceClientOffset,Da=N.getMonitor(),Ja=N.getRegistry();N.dispatch(Ue(ua)),ba(D,Da,Ja);var _i=Ya(D,Da);if(_i==null){N.dispatch(Ke);return}var dn=null;if(ua){if(!fa)throw new Error("getSourceClientOffset must be defined");ti(fa),dn=fa(_i)}N.dispatch(Ue(ua,dn));var ji=Ja.getSource(_i),tr=ji.beginDrag(Da,_i);if(tr!=null){Ba(tr),Ja.pinSource(_i);var Ir=Ja.getSourceType(_i);return{type:ee,payload:{itemType:Ir,item:tr,sourceId:_i,clientOffset:ua||null,sourceClientOffset:dn||null,isSourcePublic:!!qe}}}}}function ba(N,M,D){_e(!M.isDragging(),"Cannot call beginDrag while dragging."),N.forEach(function(J){_e(D.getSource(J),"Expected sourceIds to be registered.")})}function ti(N){_e(typeof N=="function","When clientOffset is provided, getSourceClientOffset must be a function.")}function Ba(N){_e(fe(N),"Item must be an object.")}function Ya(N,M){for(var D=null,J=N.length-1;J>=0;J--)if(M.canDragSource(N[J])){D=N[J];break}return D}function ci(N,M,D){return M in N?Object.defineProperty(N,M,{value:D,enumerable:!0,configurable:!0,writable:!0}):N[M]=D,N}function Vi(N){for(var M=1;M0&&arguments[0]!==void 0?arguments[0]:{},J=N.getMonitor(),ce=N.getRegistry();En(J);var qe=po(J);qe.forEach(function(ua,fa){var Da=ko(ua,fa,ce,J),Ja={type:ge,payload:{dropResult:Vi({},D,Da)}};N.dispatch(Ja)})}}function En(N){_e(N.isDragging(),"Cannot call drop while not dragging."),_e(!N.didDrop(),"Cannot call drop twice during one drag operation.")}function ko(N,M,D,J){var ce=D.getTarget(N),qe=ce?ce.drop(J,N):void 0;return Mn(qe),typeof qe=="undefined"&&(qe=M===0?{}:J.getDropResult()),qe}function Mn(N){_e(typeof N=="undefined"||fe(N),"Drop result must either be an object or undefined.")}function po(N){var M=N.getTargetIds().filter(N.canDropOnTarget,N);return M.reverse(),M}function Fn(N){return function(){var D=N.getMonitor(),J=N.getRegistry();Jn(D);var ce=D.getSourceId();if(ce!=null){var qe=J.getSource(ce,!0);qe.endDrag(D,ce),J.unpinSource()}return{type:xe}}}function Jn(N){_e(N.isDragging(),"Cannot call endDrag while not dragging.")}function Zn(N,M){return M===null?N===null:Array.isArray(N)?N.some(function(D){return D===M}):N===M}function ir(N){return function(D){var J=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},ce=J.clientOffset;a_(D);var qe=D.slice(0),ua=N.getMonitor(),fa=N.getRegistry(),Da=ua.getItemType();return qi(qe,fa,Da),us(qe,ua,fa),xr(qe,ua,fa),{type:pe,payload:{targetIds:qe,clientOffset:ce||null}}}}function a_(N){_e(Array.isArray(N),"Expected targetIds to be an array.")}function us(N,M,D){_e(M.isDragging(),"Cannot call hover while not dragging."),_e(!M.didDrop(),"Cannot call hover after drop.");for(var J=0;J=0;J--){var ce=N[J],qe=M.getTargetType(ce);Zn(qe,D)||N.splice(J,1)}}function xr(N,M,D){N.forEach(function(J){var ce=D.getTarget(J);ce.hover(M,J)})}function ni(N){return function(){var D=N.getMonitor();if(D.isDragging())return{type:X}}}function ls(N){return{beginDrag:Ve(N),publishDragSource:ni(N),hover:ir(N),drop:Ui(N),endDrag:Fn(N)}}var nr=function(){function N(M,D){var J=this;oa(this,N),this.isSetUp=!1,this.handleRefCountChange=function(){var ce=J.store.getState().refCount>0;J.backend&&(ce&&!J.isSetUp?(J.backend.setup(),J.isSetUp=!0):!ce&&J.isSetUp&&(J.backend.teardown(),J.isSetUp=!1))},this.store=M,this.monitor=D,M.subscribe(this.handleRefCountChange)}return za(N,[{key:"receiveBackend",value:function(D){this.backend=D}},{key:"getMonitor",value:function(){return this.monitor}},{key:"getBackend",value:function(){return this.backend}},{key:"getRegistry",value:function(){return this.monitor.registry}},{key:"getActions",value:function(){var D=this,J=this.store.dispatch;function ce(ua){return function(){for(var fa=arguments.length,Da=new Array(fa),Ja=0;Ja0}var Du=function(){function N(M,D){oa(this,N),this.store=M,this.registry=D}return za(N,[{key:"subscribeToStateChange",value:function(D){var J=this,ce=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},qe=ce.handlerIds;_e(typeof D=="function","listener must be a function."),_e(typeof qe=="undefined"||Array.isArray(qe),"handlerIds, when specified, must be an array of strings.");var ua=this.store.getState().stateId,fa=function(){var Ja=J.store.getState(),_i=Ja.stateId;try{var dn=_i===ua||_i===ua+1&&!Iu(Ja.dirtyHandlerIds,qe);dn||D()}finally{ua=_i}};return this.store.subscribe(fa)}},{key:"subscribeToOffsetChange",value:function(D){var J=this;_e(typeof D=="function","listener must be a function.");var ce=this.store.getState().dragOffset,qe=function(){var fa=J.store.getState().dragOffset;fa!==ce&&(ce=fa,D())};return this.store.subscribe(qe)}},{key:"canDragSource",value:function(D){if(!D)return!1;var J=this.registry.getSource(D);return _e(J,"Expected to find a valid source. sourceId=".concat(D)),this.isDragging()?!1:J.canDrag(this,D)}},{key:"canDropOnTarget",value:function(D){if(!D)return!1;var J=this.registry.getTarget(D);if(_e(J,"Expected to find a valid target. targetId=".concat(D)),!this.isDragging()||this.didDrop())return!1;var ce=this.registry.getTargetType(D),qe=this.getItemType();return Zn(ce,qe)&&J.canDrop(this,D)}},{key:"isDragging",value:function(){return Boolean(this.getItemType())}},{key:"isDraggingSource",value:function(D){if(!D)return!1;var J=this.registry.getSource(D,!0);if(_e(J,"Expected to find a valid source. sourceId=".concat(D)),!this.isDragging()||!this.isSourcePublic())return!1;var ce=this.registry.getSourceType(D),qe=this.getItemType();return ce!==qe?!1:J.isDragging(this,D)}},{key:"isOverTarget",value:function(D){var J=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{shallow:!1};if(!D)return!1;var ce=J.shallow;if(!this.isDragging())return!1;var qe=this.registry.getTargetType(D),ua=this.getItemType();if(ua&&!Zn(qe,ua))return!1;var fa=this.getTargetIds();if(!fa.length)return!1;var Da=fa.indexOf(D);return ce?Da===fa.length-1:Da>-1}},{key:"getItemType",value:function(){return this.store.getState().dragOperation.itemType}},{key:"getItem",value:function(){return this.store.getState().dragOperation.item}},{key:"getSourceId",value:function(){return this.store.getState().dragOperation.sourceId}},{key:"getTargetIds",value:function(){return this.store.getState().dragOperation.targetIds}},{key:"getDropResult",value:function(){return this.store.getState().dragOperation.dropResult}},{key:"didDrop",value:function(){return this.store.getState().dragOperation.didDrop}},{key:"isSourcePublic",value:function(){return Boolean(this.store.getState().dragOperation.isSourcePublic)}},{key:"getInitialClientOffset",value:function(){return this.store.getState().dragOffset.initialClientOffset}},{key:"getInitialSourceClientOffset",value:function(){return this.store.getState().dragOffset.initialSourceClientOffset}},{key:"getClientOffset",value:function(){return this.store.getState().dragOffset.clientOffset}},{key:"getSourceClientOffset",value:function(){return sc(this.store.getState().dragOffset)}},{key:"getDifferenceFromInitialOffset",value:function(){return Ou(this.store.getState().dragOffset)}}]),N}();const cs=typeof global!="undefined"?global:self,ct=cs.MutationObserver||cs.WebKitMutationObserver;function Cr(N){return function(){const D=setTimeout(ce,0),J=setInterval(ce,50);function ce(){clearTimeout(D),clearInterval(J),N()}}}function mt(N){let M=1;const D=new ct(N),J=document.createTextNode("");return D.observe(J,{characterData:!0}),function(){M=-M,J.data=M}}const uc=typeof ct=="function"?mt:Cr;class Mo{enqueueTask(M){const{queue:D,requestFlush:J}=this;D.length||(J(),this.flushing=!0),D[D.length]=M}constructor(){this.queue=[],this.pendingErrors=[],this.flushing=!1,this.index=0,this.capacity=1024,this.flush=()=>{const{queue:M}=this;for(;this.indexthis.capacity){for(let J=0,ce=M.length-this.index;J{this.pendingErrors.push(M),this.requestErrorThrow()},this.requestFlush=uc(this.flush),this.requestErrorThrow=Cr(()=>{if(this.pendingErrors.length)throw this.pendingErrors.shift()})}}class ms{call(){try{this.task&&this.task()}catch(M){this.onError(M)}finally{this.task=null,this.release(this)}}constructor(M,D){this.onError=M,this.release=D,this.task=null}}class Tu{create(M){const D=this.freeTasks,J=D.length?D.pop():new ms(this.onError,ce=>D[D.length]=ce);return J.task=M,J}constructor(M){this.onError=M,this.freeTasks=[]}}const hs=new Mo,Ru=new Tu(hs.registerPendingError);function lc(N){hs.enqueueTask(Ru.create(N))}var Fo="dnd-core/ADD_SOURCE",Lo="dnd-core/ADD_TARGET",Uo="dnd-core/REMOVE_SOURCE",o_="dnd-core/REMOVE_TARGET";function Sr(N){return{type:Fo,payload:{sourceId:N}}}function r_(N){return{type:Lo,payload:{targetId:N}}}function t_(N){return{type:Uo,payload:{sourceId:N}}}function ds(N){return{type:o_,payload:{targetId:N}}}function Au(N){_e(typeof N.canDrag=="function","Expected canDrag to be a function."),_e(typeof N.beginDrag=="function","Expected beginDrag to be a function."),_e(typeof N.endDrag=="function","Expected endDrag to be a function.")}function cc(N){_e(typeof N.canDrop=="function","Expected canDrop to be a function."),_e(typeof N.hover=="function","Expected hover to be a function."),_e(typeof N.drop=="function","Expected beginDrag to be a function.")}function gs(N,M){if(M&&Array.isArray(N)){N.forEach(function(D){return gs(D,!1)});return}_e(typeof N=="string"||Fe(N)==="symbol",M?"Type can only be a string, a symbol, or an array of either.":"Type can only be a string or a symbol.")}var $i;(function(N){N.SOURCE="SOURCE",N.TARGET="TARGET"})($i||($i={}));var Nu=0;function mc(){return Nu++}function Mu(N){var M=mc().toString();switch(N){case $i.SOURCE:return"S".concat(M);case $i.TARGET:return"T".concat(M);default:throw new Error("Unknown Handler Role: ".concat(N))}}function ks(N){switch(N[0]){case"S":return $i.SOURCE;case"T":return $i.TARGET;default:throw new Error("Cannot parse handler ID: ".concat(N))}}function __(N,M){var D=N.entries(),J=!1;do{var ce=D.next(),qe=ce.done,ua=I(ce.value,2),fa=ua[1];if(fa===M)return!0;J=!!qe}while(!J);return!1}var hc=function(){function N(M){oa(this,N),this.types=new Map,this.dragSources=new Map,this.dropTargets=new Map,this.pinnedSourceId=null,this.pinnedSource=null,this.store=M}return za(N,[{key:"addSource",value:function(D,J){gs(D),Au(J);var ce=this.addHandler($i.SOURCE,D,J);return this.store.dispatch(Sr(ce)),ce}},{key:"addTarget",value:function(D,J){gs(D,!0),cc(J);var ce=this.addHandler($i.TARGET,D,J);return this.store.dispatch(r_(ce)),ce}},{key:"containsHandler",value:function(D){return __(this.dragSources,D)||__(this.dropTargets,D)}},{key:"getSource",value:function(D){var J=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;_e(this.isSourceId(D),"Expected a valid source ID.");var ce=J&&D===this.pinnedSourceId,qe=ce?this.pinnedSource:this.dragSources.get(D);return qe}},{key:"getTarget",value:function(D){return _e(this.isTargetId(D),"Expected a valid target ID."),this.dropTargets.get(D)}},{key:"getSourceType",value:function(D){return _e(this.isSourceId(D),"Expected a valid source ID."),this.types.get(D)}},{key:"getTargetType",value:function(D){return _e(this.isTargetId(D),"Expected a valid target ID."),this.types.get(D)}},{key:"isSourceId",value:function(D){var J=ks(D);return J===$i.SOURCE}},{key:"isTargetId",value:function(D){var J=ks(D);return J===$i.TARGET}},{key:"removeSource",value:function(D){var J=this;_e(this.getSource(D),"Expected an existing source."),this.store.dispatch(t_(D)),lc(function(){J.dragSources.delete(D),J.types.delete(D)})}},{key:"removeTarget",value:function(D){_e(this.getTarget(D),"Expected an existing target."),this.store.dispatch(ds(D)),this.dropTargets.delete(D),this.types.delete(D)}},{key:"pinSource",value:function(D){var J=this.getSource(D);_e(J,"Expected an existing source."),this.pinnedSourceId=D,this.pinnedSource=J}},{key:"unpinSource",value:function(){_e(this.pinnedSource,"No source is pinned at the time."),this.pinnedSourceId=null,this.pinnedSource=null}},{key:"addHandler",value:function(D,J,ce){var qe=Mu(D);return this.types.set(qe,J),D===$i.SOURCE?this.dragSources.set(qe,ce):D===$i.TARGET&&this.dropTargets.set(qe,ce),qe}}]),N}(),ps=function(M,D){return M===D};function dc(N,M){return!N&&!M?!0:!N||!M?!1:N.x===M.x&&N.y===M.y}function gc(N,M){var D=arguments.length>2&&arguments[2]!==void 0?arguments[2]:ps;if(N.length!==M.length)return!1;for(var J=0;J0&&arguments[0]!==void 0?arguments[0]:i_,M=arguments.length>1?arguments[1]:void 0;switch(M.type){case pe:break;case Fo:case Lo:case o_:case Uo:return i_;case ee:case X:case xe:case ge:default:return n_}var D=M.payload,J=D.targetIds,ce=J===void 0?[]:J,qe=D.prevTargetIds,ua=qe===void 0?[]:qe,fa=ne(ce,ua),Da=fa.length>0||!gc(ce,ua);if(!Da)return i_;var Ja=ua[ua.length-1],_i=ce[ce.length-1];return Ja!==_i&&(Ja&&fa.push(Ja),_i&&fa.push(_i)),fa}function Fu(N,M,D){return M in N?Object.defineProperty(N,M,{value:D,enumerable:!0,configurable:!0,writable:!0}):N[M]=D,N}function gi(N){for(var M=1;M0&&arguments[0]!==void 0?arguments[0]:fs,M=arguments.length>1?arguments[1]:void 0,D=M.payload;switch(M.type){case Z:case ee:return{initialSourceClientOffset:D.sourceClientOffset,initialClientOffset:D.clientOffset,clientOffset:D.clientOffset};case pe:return dc(N.clientOffset,D.clientOffset)?N:gi({},N,{clientOffset:D.clientOffset});case xe:case ge:return fs;default:return N}}function kc(N,M,D){return M in N?Object.defineProperty(N,M,{value:D,enumerable:!0,configurable:!0,writable:!0}):N[M]=D,N}function rr(N){for(var M=1;M0&&arguments[0]!==void 0?arguments[0]:s_,M=arguments.length>1?arguments[1]:void 0,D=M.payload;switch(M.type){case ee:return rr({},N,{itemType:D.itemType,item:D.item,sourceId:D.sourceId,isSourcePublic:D.isSourcePublic,dropResult:null,didDrop:!1});case X:return rr({},N,{isSourcePublic:!0});case pe:return rr({},N,{targetIds:D.targetIds});case o_:return N.targetIds.indexOf(D.targetId)===-1?N:rr({},N,{targetIds:q(N.targetIds,D.targetId)});case ge:return rr({},N,{dropResult:D.dropResult,didDrop:!0,targetIds:[]});case xe:return rr({},N,{itemType:null,item:null,sourceId:null,dropResult:null,didDrop:!1,isSourcePublic:null,targetIds:[]});default:return N}}function pc(){var N=arguments.length>0&&arguments[0]!==void 0?arguments[0]:0,M=arguments.length>1?arguments[1]:void 0;switch(M.type){case Fo:case Lo:return N+1;case Uo:case o_:return N-1;default:return N}}function On(){var N=arguments.length>0&&arguments[0]!==void 0?arguments[0]:0;return N+1}function Km(N,M,D){return M in N?Object.defineProperty(N,M,{value:D,enumerable:!0,configurable:!0,writable:!0}):N[M]=D,N}function Qm(N){for(var M=1;M0&&arguments[0]!==void 0?arguments[0]:{},M=arguments.length>1?arguments[1]:void 0;return{dirtyHandlerIds:xi(N.dirtyHandlerIds,{type:M.type,payload:Qm({},M.payload,{prevTargetIds:We(N,"dragOperation.targetIds",[])})}),dragOffset:ht(N.dragOffset,M),refCount:pc(N.refCount,M),dragOperation:eo(N.dragOperation,M),stateId:On(N.stateId)}}function u_(N){var M=arguments.length>1&&arguments[1]!==void 0?arguments[1]:void 0,D=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},J=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1,ce=dt(J),qe=new Du(ce,new hc(ce)),ua=new nr(ce,qe),fa=N(ua,M,D);return ua.receiveBackend(fa),ua}function dt(N){var M=typeof window!="undefined"&&window.__REDUX_DEVTOOLS_EXTENSION__;return Le(fc,N&&M&&M({name:"dnd-core",instanceId:"dnd-core"}))}function Pr(N,M){if(N==null)return{};var D=Er(N,M),J,ce;if(Object.getOwnPropertySymbols){var qe=Object.getOwnPropertySymbols(N);for(ce=0;ce=0)&&Object.prototype.propertyIsEnumerable.call(N,J)&&(D[J]=N[J])}return D}function Er(N,M){if(N==null)return{};var D={},J=Object.keys(N),ce,qe;for(qe=0;qe=0)&&(D[ce]=N[ce]);return D}var ys=0,bs=Symbol.for("__REACT_DND_CONTEXT_INSTANCE__"),Lu=(0,R.memo)(function(M){var D=M.children,J=Pr(M,["children"]),ce=yc(J),qe=I(ce,2),ua=qe[0],fa=qe[1];return(0,R.useEffect)(function(){if(fa){var Da=gt();return++ys,function(){--ys===0&&(Da[bs]=null)}}},[]),(0,V.jsx)($.Provider,{value:ua,children:D})});function yc(N){if("manager"in N){var M={dragDropManager:N.manager};return[M,!1]}var D=Uu(N.backend,N.context,N.options,N.debugMode),J=!N.context;return[D,J]}function Uu(N){var M=arguments.length>1&&arguments[1]!==void 0?arguments[1]:gt(),D=arguments.length>2?arguments[2]:void 0,J=arguments.length>3?arguments[3]:void 0,ce=M;return ce[bs]||(ce[bs]={dragDropManager:u_(N,M,D,J)}),ce[bs]}function gt(){return typeof global!="undefined"?global:window}var Jm=(0,R.memo)(function(M){var D=M.connect,J=M.src;return(0,R.useEffect)(function(){if(typeof Image!="undefined"){var ce=!1,qe=new Image;return qe.src=J,qe.onload=function(){D(qe),ce=!0},function(){ce&&D(null)}}}),null}),$u=x(4063),Ka=typeof window!="undefined"?R.useLayoutEffect:R.useEffect;function vs(N,M,D){var J=(0,R.useState)(function(){return M(N)}),ce=I(J,2),qe=ce[0],ua=ce[1],fa=(0,R.useCallback)(function(){var Da=M(N);$u(qe,Da)||(ua(Da),D&&D())},[qe,N,D]);return Ka(fa),[qe,fa]}function ws(N,M,D){var J=vs(N,M,D),ce=I(J,2),qe=ce[0],ua=ce[1];return Ka(function(){var Da=N.getHandlerId();if(Da!=null)return N.subscribeToStateChange(ua,{handlerIds:[Da]})},[N,ua]),qe}function js(N,M,D){return ws(M,N||function(){return{}},function(){return D.reconnect()})}var Ln=x(861);function fo(N,M){var D=Ln(M||[]);return M==null&&typeof N!="function"&&D.push(N),(0,R.useMemo)(function(){return typeof N=="function"?N():N},D)}function Hu(N){return(0,R.useMemo)(function(){return N.hooks.dragSource()},[N])}function l_(N){return(0,R.useMemo)(function(){return N.hooks.dragPreview()},[N])}function kt(N,M,D,J){let ce=D?D.call(J,N,M):void 0;if(ce!==void 0)return!!ce;if(N===M)return!0;if(typeof N!="object"||!N||typeof M!="object"||!M)return!1;const qe=Object.keys(N),ua=Object.keys(M);if(qe.length!==ua.length)return!1;const fa=Object.prototype.hasOwnProperty.bind(M);for(let Da=0;Da, or turn it into a ")+"drag source or a drop target itself.")}}function ao(N){return function(){var M=arguments.length>0&&arguments[0]!==void 0?arguments[0]:null,D=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null;if(!(0,R.isValidElement)(M)){var J=M;return N(J,D),J}var ce=M;$o(ce);var qe=D?function(ua){return N(ua,D)}:N;return Ho(ce,qe)}}function pt(N){var M={};return Object.keys(N).forEach(function(D){var J=N[D];if(D.endsWith("Ref"))M[D]=N[D];else{var ce=ao(J);M[D]=function(){return ce}}}),M}function ft(N,M){typeof N=="function"?N(M):N.current=M}function Ho(N,M){var D=N.ref;return _e(typeof D!="string","Cannot connect React DnD to an element with an existing string ref. Please convert it to use a callback ref instead, or wrap it into a or
. Read more: https://reactjs.org/docs/refs-and-the-dom.html#callback-refs"),D?(0,R.cloneElement)(N,{ref:function(ce){ft(D,ce),ft(M,ce)}}):(0,R.cloneElement)(N,{ref:M})}var Or=function(){function N(M){var D=this;oa(this,N),this.hooks=pt({dragSource:function(ce,qe){D.clearDragSource(),D.dragSourceOptions=qe||null,Un(ce)?D.dragSourceRef=ce:D.dragSourceNode=ce,D.reconnectDragSource()},dragPreview:function(ce,qe){D.clearDragPreview(),D.dragPreviewOptions=qe||null,Un(ce)?D.dragPreviewRef=ce:D.dragPreviewNode=ce,D.reconnectDragPreview()}}),this.handlerId=null,this.dragSourceRef=null,this.dragSourceOptionsInternal=null,this.dragPreviewRef=null,this.dragPreviewOptionsInternal=null,this.lastConnectedHandlerId=null,this.lastConnectedDragSource=null,this.lastConnectedDragSourceOptions=null,this.lastConnectedDragPreview=null,this.lastConnectedDragPreviewOptions=null,this.backend=M}return za(N,[{key:"receiveHandlerId",value:function(D){this.handlerId!==D&&(this.handlerId=D,this.reconnect())}},{key:"connectTarget",get:function(){return this.dragSource}},{key:"dragSourceOptions",get:function(){return this.dragSourceOptionsInternal},set:function(D){this.dragSourceOptionsInternal=D}},{key:"dragPreviewOptions",get:function(){return this.dragPreviewOptionsInternal},set:function(D){this.dragPreviewOptionsInternal=D}},{key:"reconnect",value:function(){var D=this.reconnectDragSource();this.reconnectDragPreview(D)}},{key:"reconnectDragSource",value:function(){var D=this.dragSource,J=this.didHandlerIdChange()||this.didConnectedDragSourceChange()||this.didDragSourceOptionsChange();return J&&this.disconnectDragSource(),this.handlerId?D?(J&&(this.lastConnectedHandlerId=this.handlerId,this.lastConnectedDragSource=D,this.lastConnectedDragSourceOptions=this.dragSourceOptions,this.dragSourceUnsubscribe=this.backend.connectDragSource(this.handlerId,D,this.dragSourceOptions)),J):(this.lastConnectedDragSource=D,J):J}},{key:"reconnectDragPreview",value:function(){var D=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1,J=this.dragPreview,ce=D||this.didHandlerIdChange()||this.didConnectedDragPreviewChange()||this.didDragPreviewOptionsChange();if(ce&&this.disconnectDragPreview(),!!this.handlerId){if(!J){this.lastConnectedDragPreview=J;return}ce&&(this.lastConnectedHandlerId=this.handlerId,this.lastConnectedDragPreview=J,this.lastConnectedDragPreviewOptions=this.dragPreviewOptions,this.dragPreviewUnsubscribe=this.backend.connectDragPreview(this.handlerId,J,this.dragPreviewOptions))}}},{key:"didHandlerIdChange",value:function(){return this.lastConnectedHandlerId!==this.handlerId}},{key:"didConnectedDragSourceChange",value:function(){return this.lastConnectedDragSource!==this.dragSource}},{key:"didConnectedDragPreviewChange",value:function(){return this.lastConnectedDragPreview!==this.dragPreview}},{key:"didDragSourceOptionsChange",value:function(){return!kt(this.lastConnectedDragSourceOptions,this.dragSourceOptions)}},{key:"didDragPreviewOptionsChange",value:function(){return!kt(this.lastConnectedDragPreviewOptions,this.dragPreviewOptions)}},{key:"disconnectDragSource",value:function(){this.dragSourceUnsubscribe&&(this.dragSourceUnsubscribe(),this.dragSourceUnsubscribe=void 0)}},{key:"disconnectDragPreview",value:function(){this.dragPreviewUnsubscribe&&(this.dragPreviewUnsubscribe(),this.dragPreviewUnsubscribe=void 0,this.dragPreviewNode=null,this.dragPreviewRef=null)}},{key:"dragSource",get:function(){return this.dragSourceNode||this.dragSourceRef&&this.dragSourceRef.current}},{key:"dragPreview",get:function(){return this.dragPreviewNode||this.dragPreviewRef&&this.dragPreviewRef.current}},{key:"clearDragSource",value:function(){this.dragSourceNode=null,this.dragSourceRef=null}},{key:"clearDragPreview",value:function(){this.dragPreviewNode=null,this.dragPreviewRef=null}}]),N}();function Wo(){var N=(0,R.useContext)($),M=N.dragDropManager;return _e(M!=null,"Expected drag drop context"),M}function yt(N,M){var D=Wo(),J=(0,R.useMemo)(function(){return new Or(D.getBackend())},[D]);return Ka(function(){return J.dragSourceOptions=N||null,J.reconnect(),function(){return J.disconnectDragSource()}},[J,N]),Ka(function(){return J.dragPreviewOptions=M||null,J.reconnect(),function(){return J.disconnectDragPreview()}},[J,M]),J}var zs=!1,c_=!1,xs=function(){function N(M){oa(this,N),this.sourceId=null,this.internalMonitor=M.getMonitor()}return za(N,[{key:"receiveHandlerId",value:function(D){this.sourceId=D}},{key:"getHandlerId",value:function(){return this.sourceId}},{key:"canDrag",value:function(){_e(!zs,"You may not call monitor.canDrag() inside your canDrag() implementation. Read more: http://react-dnd.github.io/react-dnd/docs/api/drag-source-monitor");try{return zs=!0,this.internalMonitor.canDragSource(this.sourceId)}finally{zs=!1}}},{key:"isDragging",value:function(){if(!this.sourceId)return!1;_e(!c_,"You may not call monitor.isDragging() inside your isDragging() implementation. Read more: http://react-dnd.github.io/react-dnd/docs/api/drag-source-monitor");try{return c_=!0,this.internalMonitor.isDraggingSource(this.sourceId)}finally{c_=!1}}},{key:"subscribeToStateChange",value:function(D,J){return this.internalMonitor.subscribeToStateChange(D,J)}},{key:"isDraggingSource",value:function(D){return this.internalMonitor.isDraggingSource(D)}},{key:"isOverTarget",value:function(D,J){return this.internalMonitor.isOverTarget(D,J)}},{key:"getTargetIds",value:function(){return this.internalMonitor.getTargetIds()}},{key:"isSourcePublic",value:function(){return this.internalMonitor.isSourcePublic()}},{key:"getSourceId",value:function(){return this.internalMonitor.getSourceId()}},{key:"subscribeToOffsetChange",value:function(D){return this.internalMonitor.subscribeToOffsetChange(D)}},{key:"canDragSource",value:function(D){return this.internalMonitor.canDragSource(D)}},{key:"canDropOnTarget",value:function(D){return this.internalMonitor.canDropOnTarget(D)}},{key:"getItemType",value:function(){return this.internalMonitor.getItemType()}},{key:"getItem",value:function(){return this.internalMonitor.getItem()}},{key:"getDropResult",value:function(){return this.internalMonitor.getDropResult()}},{key:"didDrop",value:function(){return this.internalMonitor.didDrop()}},{key:"getInitialClientOffset",value:function(){return this.internalMonitor.getInitialClientOffset()}},{key:"getInitialSourceClientOffset",value:function(){return this.internalMonitor.getInitialSourceClientOffset()}},{key:"getSourceClientOffset",value:function(){return this.internalMonitor.getSourceClientOffset()}},{key:"getClientOffset",value:function(){return this.internalMonitor.getClientOffset()}},{key:"getDifferenceFromInitialOffset",value:function(){return this.internalMonitor.getDifferenceFromInitialOffset()}}]),N}();function Cs(){var N=Wo();return(0,R.useMemo)(function(){return new xs(N)},[N])}function bc(N,M,D){var J=D.getRegistry(),ce=J.addTarget(N,M);return[ce,function(){return J.removeTarget(ce)}]}function bt(N,M,D){var J=D.getRegistry(),ce=J.addSource(N,M);return[ce,function(){return J.removeSource(ce)}]}var vt=function(){function N(M,D,J){oa(this,N),this.spec=M,this.monitor=D,this.connector=J}return za(N,[{key:"beginDrag",value:function(){var D=this.spec,J=this.monitor,ce=null;return Fe(D.item)==="object"?ce=D.item:typeof D.item=="function"?ce=D.item(J):ce={},ce!=null?ce:null}},{key:"canDrag",value:function(){var D=this.spec,J=this.monitor;return typeof D.canDrag=="boolean"?D.canDrag:typeof D.canDrag=="function"?D.canDrag(J):!0}},{key:"isDragging",value:function(D,J){var ce=this.spec,qe=this.monitor,ua=ce.isDragging;return ua?ua(qe):J===D.getSourceId()}},{key:"endDrag",value:function(){var D=this.spec,J=this.monitor,ce=this.connector,qe=D.end;qe&&qe(J.getItem(),J),ce.reconnect()}}]),N}();function wt(N,M,D){var J=(0,R.useMemo)(function(){return new vt(N,M,D)},[M,D]);return(0,R.useEffect)(function(){J.spec=N},[N]),J}function m_(N){return(0,R.useMemo)(function(){var M=N.type;return _e(M!=null,"spec.type must be defined"),M},[N])}function Zm(N,M,D){var J=Wo(),ce=wt(N,M,D),qe=m_(N);Ka(function(){if(qe!=null){var fa=bt(qe,ce,J),Da=I(fa,2),Ja=Da[0],_i=Da[1];return M.receiveHandlerId(Ja),D.receiveHandlerId(Ja),_i}},[J,M,D,ce,qe])}function eh(N,M){var D=fo(N,M);_e(!D.begin,"useDrag::spec.begin was deprecated in v14. Replace spec.begin() with spec.item(). (see more here - https://react-dnd.github.io/react-dnd/docs/api/use-drag)");var J=Cs(),ce=yt(D.options,D.previewOptions);return Zm(D,J,ce),[js(D.collect,J,ce),Hu(ce),l_(ce)]}function Wu(N){var M=Wo(),D=M.getMonitor(),J=vs(D,N),ce=I(J,2),qe=ce[0],ua=ce[1];return(0,R.useEffect)(function(){return D.subscribeToOffsetChange(ua)}),(0,R.useEffect)(function(){return D.subscribeToStateChange(ua)}),qe}function Ss(N){return(0,R.useMemo)(function(){return N.hooks.dropTarget()},[N])}var ia=function(){function N(M){var D=this;oa(this,N),this.hooks=pt({dropTarget:function(ce,qe){D.clearDropTarget(),D.dropTargetOptions=qe,Un(ce)?D.dropTargetRef=ce:D.dropTargetNode=ce,D.reconnect()}}),this.handlerId=null,this.dropTargetRef=null,this.dropTargetOptionsInternal=null,this.lastConnectedHandlerId=null,this.lastConnectedDropTarget=null,this.lastConnectedDropTargetOptions=null,this.backend=M}return za(N,[{key:"connectTarget",get:function(){return this.dropTarget}},{key:"reconnect",value:function(){var D=this.didHandlerIdChange()||this.didDropTargetChange()||this.didOptionsChange();D&&this.disconnectDropTarget();var J=this.dropTarget;if(this.handlerId){if(!J){this.lastConnectedDropTarget=J;return}D&&(this.lastConnectedHandlerId=this.handlerId,this.lastConnectedDropTarget=J,this.lastConnectedDropTargetOptions=this.dropTargetOptions,this.unsubscribeDropTarget=this.backend.connectDropTarget(this.handlerId,J,this.dropTargetOptions))}}},{key:"receiveHandlerId",value:function(D){D!==this.handlerId&&(this.handlerId=D,this.reconnect())}},{key:"dropTargetOptions",get:function(){return this.dropTargetOptionsInternal},set:function(D){this.dropTargetOptionsInternal=D}},{key:"didHandlerIdChange",value:function(){return this.lastConnectedHandlerId!==this.handlerId}},{key:"didDropTargetChange",value:function(){return this.lastConnectedDropTarget!==this.dropTarget}},{key:"didOptionsChange",value:function(){return!kt(this.lastConnectedDropTargetOptions,this.dropTargetOptions)}},{key:"disconnectDropTarget",value:function(){this.unsubscribeDropTarget&&(this.unsubscribeDropTarget(),this.unsubscribeDropTarget=void 0)}},{key:"dropTarget",get:function(){return this.dropTargetNode||this.dropTargetRef&&this.dropTargetRef.current}},{key:"clearDropTarget",value:function(){this.dropTargetRef=null,this.dropTargetNode=null}}]),N}();function h_(N){var M=Wo(),D=(0,R.useMemo)(function(){return new ia(M.getBackend())},[M]);return Ka(function(){return D.dropTargetOptions=N||null,D.reconnect(),function(){return D.disconnectDropTarget()}},[N]),D}var $n=!1,jt=function(){function N(M){oa(this,N),this.targetId=null,this.internalMonitor=M.getMonitor()}return za(N,[{key:"receiveHandlerId",value:function(D){this.targetId=D}},{key:"getHandlerId",value:function(){return this.targetId}},{key:"subscribeToStateChange",value:function(D,J){return this.internalMonitor.subscribeToStateChange(D,J)}},{key:"canDrop",value:function(){if(!this.targetId)return!1;_e(!$n,"You may not call monitor.canDrop() inside your canDrop() implementation. Read more: http://react-dnd.github.io/react-dnd/docs/api/drop-target-monitor");try{return $n=!0,this.internalMonitor.canDropOnTarget(this.targetId)}finally{$n=!1}}},{key:"isOver",value:function(D){return this.targetId?this.internalMonitor.isOverTarget(this.targetId,D):!1}},{key:"getItemType",value:function(){return this.internalMonitor.getItemType()}},{key:"getItem",value:function(){return this.internalMonitor.getItem()}},{key:"getDropResult",value:function(){return this.internalMonitor.getDropResult()}},{key:"didDrop",value:function(){return this.internalMonitor.didDrop()}},{key:"getInitialClientOffset",value:function(){return this.internalMonitor.getInitialClientOffset()}},{key:"getInitialSourceClientOffset",value:function(){return this.internalMonitor.getInitialSourceClientOffset()}},{key:"getSourceClientOffset",value:function(){return this.internalMonitor.getSourceClientOffset()}},{key:"getClientOffset",value:function(){return this.internalMonitor.getClientOffset()}},{key:"getDifferenceFromInitialOffset",value:function(){return this.internalMonitor.getDifferenceFromInitialOffset()}}]),N}();function d_(){var N=Wo();return(0,R.useMemo)(function(){return new jt(N)},[N])}function Ps(N){var M=N.accept;return(0,R.useMemo)(function(){return _e(N.accept!=null,"accept must be defined"),Array.isArray(M)?M:[M]},[M])}var mn=function(){function N(M,D){oa(this,N),this.spec=M,this.monitor=D}return za(N,[{key:"canDrop",value:function(){var D=this.spec,J=this.monitor;return D.canDrop?D.canDrop(J.getItem(),J):!0}},{key:"hover",value:function(){var D=this.spec,J=this.monitor;D.hover&&D.hover(J.getItem(),J)}},{key:"drop",value:function(){var D=this.spec,J=this.monitor;if(D.drop)return D.drop(J.getItem(),J)}}]),N}();function oi(N,M){var D=(0,R.useMemo)(function(){return new mn(N,M)},[M]);return(0,R.useEffect)(function(){D.spec=N},[N]),D}function Bu(N,M,D){var J=Wo(),ce=oi(N,M),qe=Ps(N);Ka(function(){var fa=bc(qe,ce,J),Da=I(fa,2),Ja=Da[0],_i=Da[1];return M.receiveHandlerId(Ja),D.receiveHandlerId(Ja),_i},[J,M,ce,D,qe.map(function(ua){return ua.toString()}).join("|")])}function hn(N,M){var D=fo(N,M),J=d_(),ce=h_(D.options);return Bu(D,J,ce),[js(D.collect,J,ce),Ss(ce)]}},2250:function(F,g,x){"use strict";x.r(g),x.d(g,{HTML5Backend:function(){return Fe},NativeTypes:function(){return R},getEmptyImage:function(){return Me}});var R={};x.r(R),x.d(R,{FILE:function(){return Q},HTML:function(){return ye},TEXT:function(){return Oe},URL:function(){return de}});function $(We){let q=null;return()=>(q==null&&(q=We()),q)}function I(We,q){return We.filter(Y=>Y!==q)}function V(We,q){const Y=new Set,fe=B=>Y.add(B);We.forEach(fe),q.forEach(fe);const ne=[];return Y.forEach(B=>ne.push(B)),ne}class W{enter(q){const Y=this.entered.length,fe=ne=>this.isNodeInDocument(ne)&&(!ne.contains||ne.contains(q));return this.entered=V(this.entered.filter(fe),[q]),Y===0&&this.entered.length>0}leave(q){const Y=this.entered.length;return this.entered=I(this.entered.filter(this.isNodeInDocument),q),Y>0&&this.entered.length===0}reset(){this.entered=[]}constructor(q){this.entered=[],this.isNodeInDocument=q}}class G{initializeExposedProperties(){Object.keys(this.config.exposeProperties).forEach(q=>{Object.defineProperty(this.item,q,{configurable:!0,enumerable:!0,get(){return console.warn(`Browser doesn't allow reading "${q}" until the drop event.`),null}})})}loadDataTransfer(q){if(q){const Y={};Object.keys(this.config.exposeProperties).forEach(fe=>{const ne=this.config.exposeProperties[fe];ne!=null&&(Y[fe]={value:ne(q,this.config.matchesTypes),configurable:!0,enumerable:!0})}),Object.defineProperties(this.item,Y)}}canDrag(){return!0}beginDrag(){return this.item}isDragging(q,Y){return Y===q.getSourceId()}endDrag(){}constructor(q){this.config=q,this.item={},this.initializeExposedProperties()}}const Q="__NATIVE_FILE__",de="__NATIVE_URL__",Oe="__NATIVE_TEXT__",ye="__NATIVE_HTML__";function De(We,q,Y){const fe=q.reduce((ne,B)=>ne||We.getData(B),"");return fe!=null?fe:Y}const we={[Q]:{exposeProperties:{files:We=>Array.prototype.slice.call(We.files),items:We=>We.items,dataTransfer:We=>We},matchesTypes:["Files"]},[ye]:{exposeProperties:{html:(We,q)=>De(We,q,""),dataTransfer:We=>We},matchesTypes:["Html","text/html"]},[de]:{exposeProperties:{urls:(We,q)=>De(We,q,"").split(` +`),dataTransfer:We=>We},matchesTypes:["Url","text/uri-list"]},[Oe]:{exposeProperties:{text:(We,q)=>De(We,q,""),dataTransfer:We=>We},matchesTypes:["Text","text/plain"]}};function Te(We,q){const Y=we[We];if(!Y)throw new Error(`native type ${We} has no configuration`);const fe=new G(Y);return fe.loadDataTransfer(q),fe}function Re(We){if(!We)return null;const q=Array.prototype.slice.call(We.types||[]);return Object.keys(we).filter(Y=>{const fe=we[Y];return fe!=null&&fe.matchesTypes?fe.matchesTypes.some(ne=>q.indexOf(ne)>-1):!1})[0]||null}const Le=$(()=>/firefox/i.test(navigator.userAgent)),Ce=$(()=>Boolean(window.safari));class Ne{interpolate(q){const{xs:Y,ys:fe,c1s:ne,c2s:B,c3s:Z}=this;let ee=Y.length-1;if(q===Y[ee])return fe[ee];let X=0,pe=Z.length-1,ge;for(;X<=pe;){ge=Math.floor(.5*(X+pe));const Ke=Y[ge];if(Keq)pe=ge-1;else return fe[ge]}ee=Math.max(0,pe);const xe=q-Y[ee],Ue=xe*xe;return fe[ee]+ne[ee]*xe+B[ee]*Ue+Z[ee]*xe*Ue}constructor(q,Y){const{length:fe}=q,ne=[];for(let Ve=0;Veq[Ve]{let En=new Ne([0,.5,1],[X.y,X.y/ge*Ve,X.y+Ve-ge]).interpolate(Ue);return Ce()&&B&&(En+=(window.devicePixelRatio-1)*Ve),En},ti=()=>new Ne([0,.5,1],[X.x,X.x/pe*Ke,X.x+Ke-pe]).interpolate(xe),{offsetX:Ba,offsetY:Ya}=ne,ci=Ba===0||Ba,Vi=Ya===0||Ya;return{x:ci?Ba:ti(),y:Vi?Ya:ba()}}class sa{get window(){if(this.globalContext)return this.globalContext;if(typeof window!="undefined")return window}get document(){var q;return!((q=this.globalContext)===null||q===void 0)&&q.document?this.globalContext.document:this.window?this.window.document:void 0}get rootElement(){var q;return((q=this.optionsArgs)===null||q===void 0?void 0:q.rootElement)||this.window}constructor(q,Y){this.ownerDocument=null,this.globalContext=q,this.optionsArgs=Y}}function oa(We,q,Y){return q in We?Object.defineProperty(We,q,{value:Y,enumerable:!0,configurable:!0,writable:!0}):We[q]=Y,We}function za(We){for(var q=1;q{this.sourcePreviewNodes.delete(q),this.sourcePreviewNodeOptions.delete(q)}}connectDragSource(q,Y,fe){this.sourceNodes.set(q,Y),this.sourceNodeOptions.set(q,fe);const ne=Z=>this.handleDragStart(Z,q),B=Z=>this.handleSelectStart(Z);return Y.setAttribute("draggable","true"),Y.addEventListener("dragstart",ne),Y.addEventListener("selectstart",B),()=>{this.sourceNodes.delete(q),this.sourceNodeOptions.delete(q),Y.removeEventListener("dragstart",ne),Y.removeEventListener("selectstart",B),Y.setAttribute("draggable","false")}}connectDropTarget(q,Y){const fe=Z=>this.handleDragEnter(Z,q),ne=Z=>this.handleDragOver(Z,q),B=Z=>this.handleDrop(Z,q);return Y.addEventListener("dragenter",fe),Y.addEventListener("dragover",ne),Y.addEventListener("drop",B),()=>{Y.removeEventListener("dragenter",fe),Y.removeEventListener("dragover",ne),Y.removeEventListener("drop",B)}}addEventListeners(q){q.addEventListener&&(q.addEventListener("dragstart",this.handleTopDragStart),q.addEventListener("dragstart",this.handleTopDragStartCapture,!0),q.addEventListener("dragend",this.handleTopDragEndCapture,!0),q.addEventListener("dragenter",this.handleTopDragEnter),q.addEventListener("dragenter",this.handleTopDragEnterCapture,!0),q.addEventListener("dragleave",this.handleTopDragLeaveCapture,!0),q.addEventListener("dragover",this.handleTopDragOver),q.addEventListener("dragover",this.handleTopDragOverCapture,!0),q.addEventListener("drop",this.handleTopDrop),q.addEventListener("drop",this.handleTopDropCapture,!0))}removeEventListeners(q){q.removeEventListener&&(q.removeEventListener("dragstart",this.handleTopDragStart),q.removeEventListener("dragstart",this.handleTopDragStartCapture,!0),q.removeEventListener("dragend",this.handleTopDragEndCapture,!0),q.removeEventListener("dragenter",this.handleTopDragEnter),q.removeEventListener("dragenter",this.handleTopDragEnterCapture,!0),q.removeEventListener("dragleave",this.handleTopDragLeaveCapture,!0),q.removeEventListener("dragover",this.handleTopDragOver),q.removeEventListener("dragover",this.handleTopDragOverCapture,!0),q.removeEventListener("drop",this.handleTopDrop),q.removeEventListener("drop",this.handleTopDropCapture,!0))}getCurrentSourceNodeOptions(){const q=this.monitor.getSourceId(),Y=this.sourceNodeOptions.get(q);return za({dropEffect:this.altKeyPressed?"copy":"move"},Y||{})}getCurrentDropEffect(){return this.isDraggingNativeItem()?"copy":this.getCurrentSourceNodeOptions().dropEffect}getCurrentSourcePreviewNodeOptions(){const q=this.monitor.getSourceId(),Y=this.sourcePreviewNodeOptions.get(q);return za({anchorX:.5,anchorY:.5,captureDraggingState:!1},Y||{})}isDraggingNativeItem(){const q=this.monitor.getItemType();return Object.keys(R).some(Y=>R[Y]===q)}beginDragNativeItem(q,Y){this.clearCurrentDragSourceNode(),this.currentNativeSource=Te(q,Y),this.currentNativeHandle=this.registry.addSource(q,this.currentNativeSource),this.actions.beginDrag([this.currentNativeHandle])}setCurrentDragSourceNode(q){this.clearCurrentDragSourceNode(),this.currentDragSourceNode=q;const Y=1e3;this.mouseMoveTimeoutTimer=setTimeout(()=>{var fe;return(fe=this.rootElement)===null||fe===void 0?void 0:fe.addEventListener("mousemove",this.endDragIfSourceWasRemovedFromDOM,!0)},Y)}clearCurrentDragSourceNode(){if(this.currentDragSourceNode){if(this.currentDragSourceNode=null,this.rootElement){var q;(q=this.window)===null||q===void 0||q.clearTimeout(this.mouseMoveTimeoutTimer||void 0),this.rootElement.removeEventListener("mousemove",this.endDragIfSourceWasRemovedFromDOM,!0)}return this.mouseMoveTimeoutTimer=null,!0}return!1}handleDragStart(q,Y){q.defaultPrevented||(this.dragStartSourceIds||(this.dragStartSourceIds=[]),this.dragStartSourceIds.unshift(Y))}handleDragEnter(q,Y){this.dragEnterTargetIds.unshift(Y)}handleDragOver(q,Y){this.dragOverTargetIds===null&&(this.dragOverTargetIds=[]),this.dragOverTargetIds.unshift(Y)}handleDrop(q,Y){this.dropTargetIds.unshift(Y)}constructor(q,Y,fe){this.sourcePreviewNodes=new Map,this.sourcePreviewNodeOptions=new Map,this.sourceNodes=new Map,this.sourceNodeOptions=new Map,this.dragStartSourceIds=null,this.dropTargetIds=[],this.dragEnterTargetIds=[],this.currentNativeSource=null,this.currentNativeHandle=null,this.currentDragSourceNode=null,this.altKeyPressed=!1,this.mouseMoveTimeoutTimer=null,this.asyncEndDragFrameId=null,this.dragOverTargetIds=null,this.lastClientOffset=null,this.hoverRafId=null,this.getSourceClientOffset=ne=>{const B=this.sourceNodes.get(ne);return B&&ve(B)||null},this.endDragNativeItem=()=>{this.isDraggingNativeItem()&&(this.actions.endDrag(),this.currentNativeHandle&&this.registry.removeSource(this.currentNativeHandle),this.currentNativeHandle=null,this.currentNativeSource=null)},this.isNodeInDocument=ne=>Boolean(ne&&this.document&&this.document.body&&this.document.body.contains(ne)),this.endDragIfSourceWasRemovedFromDOM=()=>{const ne=this.currentDragSourceNode;ne==null||this.isNodeInDocument(ne)||(this.clearCurrentDragSourceNode()&&this.monitor.isDragging()&&this.actions.endDrag(),this.cancelHover())},this.scheduleHover=ne=>{this.hoverRafId===null&&typeof requestAnimationFrame!="undefined"&&(this.hoverRafId=requestAnimationFrame(()=>{this.monitor.isDragging()&&this.actions.hover(ne||[],{clientOffset:this.lastClientOffset}),this.hoverRafId=null}))},this.cancelHover=()=>{this.hoverRafId!==null&&typeof cancelAnimationFrame!="undefined"&&(cancelAnimationFrame(this.hoverRafId),this.hoverRafId=null)},this.handleTopDragStartCapture=()=>{this.clearCurrentDragSourceNode(),this.dragStartSourceIds=[]},this.handleTopDragStart=ne=>{if(ne.defaultPrevented)return;const{dragStartSourceIds:B}=this;this.dragStartSourceIds=null;const Z=Ye(ne);this.monitor.isDragging()&&(this.actions.endDrag(),this.cancelHover()),this.actions.beginDrag(B||[],{publishSource:!1,getSourceClientOffset:this.getSourceClientOffset,clientOffset:Z});const{dataTransfer:ee}=ne,X=Re(ee);if(this.monitor.isDragging()){if(ee&&typeof ee.setDragImage=="function"){const ge=this.monitor.getSourceId(),xe=this.sourceNodes.get(ge),Ue=this.sourcePreviewNodes.get(ge)||xe;if(Ue){const{anchorX:Ke,anchorY:Ve,offsetX:ba,offsetY:ti}=this.getCurrentSourcePreviewNodeOptions(),ci=ta(xe,Ue,Z,{anchorX:Ke,anchorY:Ve},{offsetX:ba,offsetY:ti});ee.setDragImage(Ue,ci.x,ci.y)}}try{ee==null||ee.setData("application/json",{})}catch(ge){}this.setCurrentDragSourceNode(ne.target);const{captureDraggingState:pe}=this.getCurrentSourcePreviewNodeOptions();pe?this.actions.publishDragSource():setTimeout(()=>this.actions.publishDragSource(),0)}else if(X)this.beginDragNativeItem(X);else{if(ee&&!ee.types&&(ne.target&&!ne.target.hasAttribute||!ne.target.hasAttribute("draggable")))return;ne.preventDefault()}},this.handleTopDragEndCapture=()=>{this.clearCurrentDragSourceNode()&&this.monitor.isDragging()&&this.actions.endDrag(),this.cancelHover()},this.handleTopDragEnterCapture=ne=>{if(this.dragEnterTargetIds=[],this.isDraggingNativeItem()){var B;(B=this.currentNativeSource)===null||B===void 0||B.loadDataTransfer(ne.dataTransfer)}if(!this.enterLeaveCounter.enter(ne.target)||this.monitor.isDragging())return;const{dataTransfer:ee}=ne,X=Re(ee);X&&this.beginDragNativeItem(X,ee)},this.handleTopDragEnter=ne=>{const{dragEnterTargetIds:B}=this;if(this.dragEnterTargetIds=[],!this.monitor.isDragging())return;this.altKeyPressed=ne.altKey,B.length>0&&this.actions.hover(B,{clientOffset:Ye(ne)}),B.some(ee=>this.monitor.canDropOnTarget(ee))&&(ne.preventDefault(),ne.dataTransfer&&(ne.dataTransfer.dropEffect=this.getCurrentDropEffect()))},this.handleTopDragOverCapture=ne=>{if(this.dragOverTargetIds=[],this.isDraggingNativeItem()){var B;(B=this.currentNativeSource)===null||B===void 0||B.loadDataTransfer(ne.dataTransfer)}},this.handleTopDragOver=ne=>{const{dragOverTargetIds:B}=this;if(this.dragOverTargetIds=[],!this.monitor.isDragging()){ne.preventDefault(),ne.dataTransfer&&(ne.dataTransfer.dropEffect="none");return}this.altKeyPressed=ne.altKey,this.lastClientOffset=Ye(ne),this.scheduleHover(B),(B||[]).some(ee=>this.monitor.canDropOnTarget(ee))?(ne.preventDefault(),ne.dataTransfer&&(ne.dataTransfer.dropEffect=this.getCurrentDropEffect())):this.isDraggingNativeItem()?ne.preventDefault():(ne.preventDefault(),ne.dataTransfer&&(ne.dataTransfer.dropEffect="none"))},this.handleTopDragLeaveCapture=ne=>{this.isDraggingNativeItem()&&ne.preventDefault(),this.enterLeaveCounter.leave(ne.target)&&(this.isDraggingNativeItem()&&setTimeout(()=>this.endDragNativeItem(),0),this.cancelHover())},this.handleTopDropCapture=ne=>{if(this.dropTargetIds=[],this.isDraggingNativeItem()){var B;ne.preventDefault(),(B=this.currentNativeSource)===null||B===void 0||B.loadDataTransfer(ne.dataTransfer)}else Re(ne.dataTransfer)&&ne.preventDefault();this.enterLeaveCounter.reset()},this.handleTopDrop=ne=>{const{dropTargetIds:B}=this;this.dropTargetIds=[],this.actions.hover(B,{clientOffset:Ye(ne)}),this.actions.drop({dropEffect:this.getCurrentDropEffect()}),this.isDraggingNativeItem()?this.endDragNativeItem():this.monitor.isDragging()&&this.actions.endDrag(),this.cancelHover()},this.handleSelectStart=ne=>{const B=ne.target;typeof B.dragDrop=="function"&&(B.tagName==="INPUT"||B.tagName==="SELECT"||B.tagName==="TEXTAREA"||B.isContentEditable||(ne.preventDefault(),B.dragDrop()))},this.options=new sa(Y,fe),this.actions=q.getActions(),this.monitor=q.getMonitor(),this.registry=q.getRegistry(),this.enterLeaveCounter=new W(this.isNodeInDocument)}}let _e;function Me(){return _e||(_e=new Image,_e.src="data:image/gif;base64,R0lGODlhAQABAAAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw=="),_e}const Fe=function(q,Y,fe){return new Xa(q,Y,fe)}}},cn={};function ha(F){var g=cn[F];if(g!==void 0)return g.exports;var x=cn[F]={id:F,loaded:!1,exports:{}};return rn[F](x,x.exports,ha),x.loaded=!0,x.exports}(function(){ha.n=function(F){var g=F&&F.__esModule?function(){return F.default}:function(){return F};return ha.d(g,{a:g}),g}})(),function(){var F=Object.getPrototypeOf?function(x){return Object.getPrototypeOf(x)}:function(x){return x.__proto__},g;ha.t=function(x,R){if(R&1&&(x=this(x)),R&8||typeof x=="object"&&x&&(R&4&&x.__esModule||R&16&&typeof x.then=="function"))return x;var $=Object.create(null);ha.r($);var I={};g=g||[null,F({}),F([]),F(F)];for(var V=R&2&&x;typeof V=="object"&&!~g.indexOf(V);V=F(V))Object.getOwnPropertyNames(V).forEach(function(W){I[W]=function(){return x[W]}});return I.default=function(){return x},ha.d($,I),$}}(),function(){ha.d=function(F,g){for(var x in g)ha.o(g,x)&&!ha.o(F,x)&&Object.defineProperty(F,x,{enumerable:!0,get:g[x]})}}(),function(){ha.g=function(){if(typeof globalThis=="object")return globalThis;try{return this||new Function("return this")()}catch(F){if(typeof window=="object")return window}}()}(),function(){ha.o=function(F,g){return Object.prototype.hasOwnProperty.call(F,g)}}(),function(){ha.r=function(F){typeof Symbol!="undefined"&&Symbol.toStringTag&&Object.defineProperty(F,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(F,"__esModule",{value:!0})}}(),function(){ha.nmd=function(F){return F.paths=[],F.children||(F.children=[]),F}}(),function(){ha.nc=void 0}();var zr={};(function(){"use strict";var F={};ha.r(F),ha.d(F,{exclude:function(){return xC},extract:function(){return Zk},parse:function(){return ep},parseUrl:function(){return xb},pick:function(){return Sb},stringify:function(){return zb},stringifyUrl:function(){return Cb}});var g=ha(7294),x=ha.t(g,2),R=ha(745),$=ha(7424),I=ha.n($);function V(){try{return window.matchMedia("(prefers-color-scheme: dark)").matches}catch(e){return!1}}function W(){var e=(0,g.useState)(V()),a=I()(e,2),n=a[0],o=a[1];return(0,g.useEffect)(function(){var _=window.matchMedia("(prefers-color-scheme: dark)"),l=function(k){o(k.matches)};return _.addEventListener("change",l),function(){_.removeEventListener("change",l)}},[]),n}var G=ha(6690),Q=ha.n(G),de=ha(9728),Oe=ha.n(de),ye=function(){function e(){Q()(this,e)}return Oe()(e,null,[{key:"setFavicon",value:function(){var n=document.createElement("link");n.rel="icon",n.type="image/svg+xml",n.href="https://gw.alipayobjects.com/zos/bmw-prod/51a51720-8a30-4430-b6c9-be5712364f04.svg",document.getElementsByTagName("head")[0].appendChild(n)}}]),e}();onUiLoaded(function(){});var De=function(){ye.setFavicon()},we=ha(4704),Te=ha.n(we),Re=function(){function e(){Q()(this,e)}return Oe()(e,null,[{key:"round",value:function(n){return Math.round(n*1e4)/1e4}},{key:"convertStr",value:function(n){return n.replace(/:/g,":").replace(/(/g,"(").replace(/)/g,")")}},{key:"convertStr2Array",value:function(n){var o=/([()<>[\]])/g,_=function(f){for(var b=[],v=0,w=0,z;(z=o.exec(f))!==null;)w===0&&z.index>v&&(b.push(f.substring(v,z.index)),v=z.index),z[0]==="("||z[0]==="<"||z[0]==="["?w++:(z[0]===")"||z[0]===">"||z[0]==="]")&&w--,w===0&&(b.push(f.substring(v,z.index+1)),v=z.index+1);return v0&&v(O.stack.pop(),O.multiplier)}else h.push([E,1])}}catch(ie){w.e(ie)}finally{w.f()}Object.keys(b).forEach(function(ie){b[ie].stack.forEach(function(se){v(se,b[ie].multiplier)})}),h.length===0&&(h=[["",1]]);for(var P=0;P+1 label > textarea")),h=e.convert(l.value);l.value=h.match(/^masterpiece, best quality,/)===null?o+h:h,e.dispatchInputEvent(l);var k=gradioApp().querySelector("#".concat(n,"_neg_prompt > label > textarea")),f=e.convert(k.value);k.value=f.match(/^lowres,/)===null?f.length===0?_:_+f:f,e.dispatchInputEvent(k)}},{key:"createButton",value:function(n,o,_){var l=document.createElement("button");return l.id=n,l.type="button",l.innerHTML=o,l.title="Format prompt~\u{1FA84}",l.className="lg secondary gradio-button tool svelte-1ipelgc",l.addEventListener("click",_),l}},{key:"addPromptButton",value:function(n){var o,_=gradioApp().querySelector("#".concat(n,"_generate")),l=gradioApp().querySelector("#".concat(n,"_style_create")),h=gradioApp().querySelector("#".concat(n,"_formatconvert"));if(!(!_||!l||h)){var k=e.createButton("".concat(n,"_formatconvert"),"\u{1FA84}",function(){return e.onClickConvert(n)});(o=l.parentNode)===null||o===void 0||o.append(k)}}}]),e}();onUiUpdate(function(){});var Le=function(){Re.addPromptButton("txt2img"),Re.addPromptButton("img2img")},Ce=ha(8416),Ne=ha.n(Ce),na=Oe()(function e(a,n){var o=this;Q()(this,e),Ne()(this,"textArea",void 0),Ne()(this,"counterElt",void 0),Ne()(this,"errorStrings",void 0),Ne()(this,"check",function(){var _="";o.errorStrings.forEach(function(l){var h=l.regex,k=l.error,f=(o.textArea.value.match(new RegExp(h,"g"))||[]).length,b=(o.textArea.value.match(new RegExp(h.replace(/\(/g,")").replace(/\[/g,"]").replace(/\{/g,"}"),"g"))||[]).length;f!==b?o.counterElt.title.includes(k)||(_+=k):_=o.counterElt.title.replace(k,"")}),o.counterElt.title=_,o.counterElt.classList.toggle("error",!!_)}),this.textArea=a,this.counterElt=n,this.errorStrings=[{regex:"\\(",error:`(...) - Different number of opening and closing parentheses detected. `},{regex:"\\[",error:`[...] - Different number of opening and closing square brackets detected. `},{regex:"\\{",error:`{...} - Different number of opening and closing curly brackets detected. -`}]}),ve=function(a,n){var o=gradioApp().querySelector("#".concat(a," > label > textarea")),_=gradioApp().getElementById(n),l=new na(o,_);o.addEventListener("input",l.check)};onUiUpdate(function(){});var Ye=function(){var e=["txt2img","txt2img_neg","img2img","img2img_neg"];e.forEach(function(a){ve("".concat(a,"_prompt"),"".concat(a,"_token_counter")),ve("".concat(a,"_prompt"),"".concat(a,"_negative_token_counter"))})};function je(e){if(e.sheet)return e.sheet;for(var a=0;a0?q(Ue,--ge):0,X--,xe===10&&(X=1,ee--),xe}function Va(){return xe=ge2||Ui(xe)>3?"":" "}function Jn(e){for(;Va();)switch(Ui(xe)){case 0:append(us(ge-1),e);break;case 2:append(Mn(xe),e);break;default:append(from(xe),e)}return e}function Zn(e,a){for(;--a&&Va()&&!(xe<48||xe>102||xe>57&&xe<65||xe>70&&xe<97););return Bi(e,ci()+(a<6&&Ya()==32&&Va()==32))}function ir(e){for(;Va();)switch(xe){case e:return ge;case 34:case 39:e!==34&&e!==39&&ir(xe);break;case 40:e===41&&ir(e);break;case 92:Va();break}return ge}function a_(e,a){for(;Va()&&e+xe!==47+10;)if(e+xe===42+42&&Ya()===47)break;return"/*"+Bi(a,ge-1)+"*"+oa(e===47?e:Va())}function us(e){for(;!Ui(Ya());)Va();return Bi(e,ge)}var qi="-ms-",xr="-moz-",ni="-webkit-",ls="comm",nr="rule",or="decl",_c="@page",sc="@media",Ou="@import",i_="@charset",n_="@viewport",Iu="@supports",Du="@document",cs="@namespace",ct="@keyframes",Cr="@font-face",mt="@counter-style",uc="@font-feature-values";function Mo(e,a){for(var n="",o=ne(e),_=0;_-1&&!e.return)switch(e.type){case DECLARATION:e.return=prefix(e.value,e.length,n);return;case KEYFRAMES:return serialize([copy(e,{value:replace(e.value,"@","@"+WEBKIT)})],o);case RULESET:if(e.length)return combine(e.props,function(_){switch(match(_,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return serialize([copy(e,{props:[replace(_,/:(read-\w+)/,":"+MOZ+"$1")]})],o);case"::placeholder":return serialize([copy(e,{props:[replace(_,/:(plac\w+)/,":"+WEBKIT+"input-$1")]}),copy(e,{props:[replace(_,/:(plac\w+)/,":"+MOZ+"$1")]}),copy(e,{props:[replace(_,/:(plac\w+)/,MS+"input-$1")]})],o)}return""})}}function lc(e){switch(e.type){case RULESET:e.props=e.props.map(function(a){return combine(tokenize(a),function(n,o,_){switch(charat(n,0)){case 12:return substr(n,1,strlen(n));case 0:case 40:case 43:case 62:case 126:return n;case 58:_[++o]==="global"&&(_[o]="",_[++o]="\f"+substr(_[o],o=1,-1));case 32:return o===1?"":n;default:switch(o){case 0:return e=n,sizeof(_)>1?"":n;case(o=sizeof(_)-1):case 2:return o===2?n+e+e:n+e;default:return n}}})})}}function Fo(e){return ko(Lo("",null,null,null,[""],e=En(e),0,[0],e))}function Lo(e,a,n,o,_,l,h,k,f){for(var b=0,v=0,w=h,z=0,S=0,E=0,O=1,P=1,T=1,A=0,L="",H=_,K=l,ae=o,ie=L;P;)switch(E=A,A=Va()){case 40:if(E!=108&&q(ie,w-1)==58){We(ie+=Fe(Mn(A),"&","&\f"),"&\f")!=-1&&(T=-1);break}case 34:case 39:case 91:ie+=Mn(A);break;case 9:case 10:case 13:case 32:ie+=Fn(E);break;case 92:ie+=Zn(ci()-1,7);continue;case 47:switch(Ya()){case 42:case 47:V(o_(a_(Va(),ci()),a,n),f);break;default:ie+="/"}break;case 123*O:k[b++]=fe(ie)*T;case 125*O:case 59:case 0:switch(A){case 0:case 125:P=0;case 59+v:S>0&&fe(ie)-w&&V(S>32?Sr(ie+";",o,n,w-1):Sr(Fe(ie," ","")+";",o,n,w-2),f);break;case 59:ie+=";";default:if(V(ae=Uo(ie,a,n,b,v,_,k,L,H=[],K=[],w),l),A===123)if(v===0)Lo(ie,a,ae,ae,H,l,w,k,K);else switch(z===99&&q(ie,3)===110?100:z){case 100:case 109:case 115:Lo(e,ae,ae,o&&V(Uo(e,ae,ae,0,0,_,k,L,_,H=[],w),K),_,K,w,k,o?H:K);break;default:Lo(ie,ae,ae,ae,[""],K,0,k,K)}}b=v=S=0,O=T=1,L=ie="",w=h;break;case 58:w=1+fe(ie),S=E;default:if(O<1){if(A==123)--O;else if(A==125&&O++==0&&ti()==125)continue}switch(ie+=oa(A),A*O){case 38:T=v>0?1:(ie+="\f",-1);break;case 44:k[b++]=(fe(ie)-1)*T,T=1;break;case 64:Ya()===45&&(ie+=Mn(Va())),z=Ya(),v=w=fe(L=ie+=us(ci())),A++;break;case 45:E===45&&fe(ie)==2&&(O=0)}}return l}function Uo(e,a,n,o,_,l,h,k,f,b,v){for(var w=_-1,z=_===0?l:[""],S=ne(z),E=0,O=0,P=0;E0?z[T]+" "+A:Fe(A,/&\f/g,z[T])))&&(f[P++]=L);return Ke(e,a,n,_===0?nr:k,f,b,v)}function o_(e,a,n){return Ke(e,a,n,ls,oa(ba()),Y(e,2,-2),0)}function Sr(e,a,n,o){return Ke(e,a,n,or,Y(e,0,o),Y(e,o+1,-1),o)}var r_=function(a,n,o){for(var _=0,l=0;_=l,l=Ya(),_===38&&l===12&&(n[o]=1),!Ui(l);)Va();return Bi(a,ge)},t_=function(a,n){var o=-1,_=44;do switch(Ui(_)){case 0:_===38&&Ya()===12&&(n[o]=1),a[o]+=r_(ge-1,n,o);break;case 2:a[o]+=Mn(_);break;case 4:if(_===44){a[++o]=Ya()===58?"&\f":"",n[o]=a[o].length;break}default:a[o]+=oa(_)}while(_=Va());return a},ds=function(a,n){return ko(t_(En(a),n))},Au=new WeakMap,cc=function(a){if(!(a.type!=="rule"||!a.parent||a.length<1)){for(var n=a.value,o=a.parent,_=a.column===o.column&&a.line===o.line;o.type!=="rule";)if(o=o.parent,!o)return;if(!(a.props.length===1&&n.charCodeAt(0)!==58&&!Au.get(o))&&!_){Au.set(a,!0);for(var l=[],h=ds(n,l),k=o.props,f=0,b=0;f-1},mc=function(a){return function(n,o,_){if(!(n.type!=="rule"||a.compat)){var l=n.value.match(/(:first|:nth|:nth-last)-child/g);if(l){for(var h=!!n.parent,k=h?n.parent.children:_,f=k.length-1;f>=0;f--){var b=k[f];if(b.line=0;o--)if(!Mu(n[o]))return!0;return!1},__=function(a){a.type="",a.value="",a.return="",a.children="",a.props=""},hc=function(a,n,o){Mu(a)&&(a.parent?(console.error("`@import` rules can't be nested inside other rules. Please move it to the top level and put it before regular rules. Keep in mind that they can only be used within global styles."),__(a)):ks(n,o)&&(console.error("`@import` rules can't be after other rules. Please put your `@import` rules before your other rules."),__(a)))};function ps(e,a){switch(Xa(e,a)){case 5103:return ni+"print-"+e+e;case 5737:case 4201:case 3177:case 3433:case 1641:case 4457:case 2921:case 5572:case 6356:case 5844:case 3191:case 6645:case 3005:case 6391:case 5879:case 5623:case 6135:case 4599:case 4855:case 4215:case 6389:case 5109:case 5365:case 5621:case 3829:return ni+e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return ni+e+xr+e+qi+e+e;case 6828:case 4268:return ni+e+qi+e+e;case 6165:return ni+e+qi+"flex-"+e+e;case 5187:return ni+e+Fe(e,/(\w+).+(:[^]+)/,ni+"box-$1$2"+qi+"flex-$1$2")+e;case 5443:return ni+e+qi+"flex-item-"+Fe(e,/flex-|-self/,"")+e;case 4675:return ni+e+qi+"flex-line-pack"+Fe(e,/align-content|flex-|-self/,"")+e;case 5548:return ni+e+qi+Fe(e,"shrink","negative")+e;case 5292:return ni+e+qi+Fe(e,"basis","preferred-size")+e;case 6060:return ni+"box-"+Fe(e,"-grow","")+ni+e+qi+Fe(e,"grow","positive")+e;case 4554:return ni+Fe(e,/([^-])(transform)/g,"$1"+ni+"$2")+e;case 6187:return Fe(Fe(Fe(e,/(zoom-|grab)/,ni+"$1"),/(image-set)/,ni+"$1"),e,"")+e;case 5495:case 3959:return Fe(e,/(image-set\([^]*)/,ni+"$1$`$1");case 4968:return Fe(Fe(e,/(.+:)(flex-)?(.*)/,ni+"box-pack:$3"+qi+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+ni+e+e;case 4095:case 3583:case 4068:case 2532:return Fe(e,/(.+)-inline(.+)/,ni+"$1$2")+e;case 8116:case 7059:case 5753:case 5535:case 5445:case 5701:case 4933:case 4677:case 5533:case 5789:case 5021:case 4765:if(fe(e)-1-a>6)switch(q(e,a+1)){case 109:if(q(e,a+4)!==45)break;case 102:return Fe(e,/(.+:)(.+)-([^]+)/,"$1"+ni+"$2-$3$1"+xr+(q(e,a+3)==108?"$3":"$2-$3"))+e;case 115:return~We(e,"stretch")?ps(Fe(e,"stretch","fill-available"),a)+e:e}break;case 4949:if(q(e,a+1)!==115)break;case 6444:switch(q(e,fe(e)-3-(~We(e,"!important")&&10))){case 107:return Fe(e,":",":"+ni)+e;case 101:return Fe(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+ni+(q(e,14)===45?"inline-":"")+"box$3$1"+ni+"$2$3$1"+qi+"$2box$3")+e}break;case 5936:switch(q(e,a+11)){case 114:return ni+e+qi+Fe(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return ni+e+qi+Fe(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return ni+e+qi+Fe(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return ni+e+qi+e+e}return e}var dc=function(a,n,o,_){if(a.length>-1&&!a.return)switch(a.type){case or:a.return=ps(a.value,a.length);break;case ct:return Mo([Be(a,{value:Fe(a.value,"@","@"+ni)})],_);case nr:if(a.length)return Z(a.props,function(l){switch(Me(l,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return Mo([Be(a,{props:[Fe(l,/:(read-\w+)/,":"+xr+"$1")]})],_);case"::placeholder":return Mo([Be(a,{props:[Fe(l,/:(plac\w+)/,":"+ni+"input-$1")]}),Be(a,{props:[Fe(l,/:(plac\w+)/,":"+xr+"$1")]}),Be(a,{props:[Fe(l,/:(plac\w+)/,qi+"input-$1")]})],_)}return""})}},gc=[dc],xi=function(a){var n=a.key;if(n==="css"){var o=document.querySelectorAll("style[data-emotion]:not([data-s])");Array.prototype.forEach.call(o,function(O){var P=O.getAttribute("data-emotion");P.indexOf(" ")!==-1&&(document.head.appendChild(O),O.setAttribute("data-s",""))})}var _=a.stylisPlugins||gc,l={},h,k=[];h=a.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+n+' "]'),function(O){for(var P=O.getAttribute("data-emotion").split(" "),T=1;T=4;++o,_-=4)n=e.charCodeAt(o)&255|(e.charCodeAt(++o)&255)<<8|(e.charCodeAt(++o)&255)<<16|(e.charCodeAt(++o)&255)<<24,n=(n&65535)*1540483477+((n>>>16)*59797<<16),n^=n>>>24,a=(n&65535)*1540483477+((n>>>16)*59797<<16)^(a&65535)*1540483477+((a>>>16)*59797<<16);switch(_){case 3:a^=(e.charCodeAt(o+2)&255)<<16;case 2:a^=(e.charCodeAt(o+1)&255)<<8;case 1:a^=e.charCodeAt(o)&255,a=(a&65535)*1540483477+((a>>>16)*59797<<16)}return a^=a>>>13,a=(a&65535)*1540483477+((a>>>16)*59797<<16),((a^a>>>15)>>>0).toString(36)}var rr=kc,s_={animationIterationCount:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1},eo=s_;function pc(e){var a=Object.create(null);return function(n){return a[n]===void 0&&(a[n]=e(n)),a[n]}}var On=pc,Km=`You have illegal escape sequence in your template literal, most likely inside content's property value. +`}]}),ve=function(a,n){var o=gradioApp().querySelector("#".concat(a," > label > textarea")),_=gradioApp().getElementById(n),l=new na(o,_);o.addEventListener("input",l.check)};onUiUpdate(function(){});var Ye=function(){var e=["txt2img","txt2img_neg","img2img","img2img_neg"];e.forEach(function(a){ve("".concat(a,"_prompt"),"".concat(a,"_token_counter")),ve("".concat(a,"_prompt"),"".concat(a,"_negative_token_counter"))})};function je(e){if(e.sheet)return e.sheet;for(var a=0;a0?q(Ue,--ge):0,X--,xe===10&&(X=1,ee--),xe}function Ba(){return xe=ge2||Ui(xe)>3?"":" "}function Jn(e){for(;Ba();)switch(Ui(xe)){case 0:append(us(ge-1),e);break;case 2:append(Mn(xe),e);break;default:append(from(xe),e)}return e}function Zn(e,a){for(;--a&&Ba()&&!(xe<48||xe>102||xe>57&&xe<65||xe>70&&xe<97););return Vi(e,ci()+(a<6&&Ya()==32&&Ba()==32))}function ir(e){for(;Ba();)switch(xe){case e:return ge;case 34:case 39:e!==34&&e!==39&&ir(xe);break;case 40:e===41&&ir(e);break;case 92:Ba();break}return ge}function a_(e,a){for(;Ba()&&e+xe!==47+10;)if(e+xe===42+42&&Ya()===47)break;return"/*"+Vi(a,ge-1)+"*"+oa(e===47?e:Ba())}function us(e){for(;!Ui(Ya());)Ba();return Vi(e,ge)}var qi="-ms-",xr="-moz-",ni="-webkit-",ls="comm",nr="rule",or="decl",_c="@page",sc="@media",Ou="@import",i_="@charset",n_="@viewport",Iu="@supports",Du="@document",cs="@namespace",ct="@keyframes",Cr="@font-face",mt="@counter-style",uc="@font-feature-values";function Mo(e,a){for(var n="",o=ne(e),_=0;_-1&&!e.return)switch(e.type){case DECLARATION:e.return=prefix(e.value,e.length,n);return;case KEYFRAMES:return serialize([copy(e,{value:replace(e.value,"@","@"+WEBKIT)})],o);case RULESET:if(e.length)return combine(e.props,function(_){switch(match(_,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return serialize([copy(e,{props:[replace(_,/:(read-\w+)/,":"+MOZ+"$1")]})],o);case"::placeholder":return serialize([copy(e,{props:[replace(_,/:(plac\w+)/,":"+WEBKIT+"input-$1")]}),copy(e,{props:[replace(_,/:(plac\w+)/,":"+MOZ+"$1")]}),copy(e,{props:[replace(_,/:(plac\w+)/,MS+"input-$1")]})],o)}return""})}}function lc(e){switch(e.type){case RULESET:e.props=e.props.map(function(a){return combine(tokenize(a),function(n,o,_){switch(charat(n,0)){case 12:return substr(n,1,strlen(n));case 0:case 40:case 43:case 62:case 126:return n;case 58:_[++o]==="global"&&(_[o]="",_[++o]="\f"+substr(_[o],o=1,-1));case 32:return o===1?"":n;default:switch(o){case 0:return e=n,sizeof(_)>1?"":n;case(o=sizeof(_)-1):case 2:return o===2?n+e+e:n+e;default:return n}}})})}}function Fo(e){return ko(Lo("",null,null,null,[""],e=En(e),0,[0],e))}function Lo(e,a,n,o,_,l,h,k,f){for(var b=0,v=0,w=h,z=0,S=0,E=0,O=1,P=1,T=1,A=0,L="",H=_,K=l,ae=o,ie=L;P;)switch(E=A,A=Ba()){case 40:if(E!=108&&q(ie,w-1)==58){We(ie+=Fe(Mn(A),"&","&\f"),"&\f")!=-1&&(T=-1);break}case 34:case 39:case 91:ie+=Mn(A);break;case 9:case 10:case 13:case 32:ie+=Fn(E);break;case 92:ie+=Zn(ci()-1,7);continue;case 47:switch(Ya()){case 42:case 47:B(o_(a_(Ba(),ci()),a,n),f);break;default:ie+="/"}break;case 123*O:k[b++]=fe(ie)*T;case 125*O:case 59:case 0:switch(A){case 0:case 125:P=0;case 59+v:S>0&&fe(ie)-w&&B(S>32?Sr(ie+";",o,n,w-1):Sr(Fe(ie," ","")+";",o,n,w-2),f);break;case 59:ie+=";";default:if(B(ae=Uo(ie,a,n,b,v,_,k,L,H=[],K=[],w),l),A===123)if(v===0)Lo(ie,a,ae,ae,H,l,w,k,K);else switch(z===99&&q(ie,3)===110?100:z){case 100:case 109:case 115:Lo(e,ae,ae,o&&B(Uo(e,ae,ae,0,0,_,k,L,_,H=[],w),K),_,K,w,k,o?H:K);break;default:Lo(ie,ae,ae,ae,[""],K,0,k,K)}}b=v=S=0,O=T=1,L=ie="",w=h;break;case 58:w=1+fe(ie),S=E;default:if(O<1){if(A==123)--O;else if(A==125&&O++==0&&ti()==125)continue}switch(ie+=oa(A),A*O){case 38:T=v>0?1:(ie+="\f",-1);break;case 44:k[b++]=(fe(ie)-1)*T,T=1;break;case 64:Ya()===45&&(ie+=Mn(Ba())),z=Ya(),v=w=fe(L=ie+=us(ci())),A++;break;case 45:E===45&&fe(ie)==2&&(O=0)}}return l}function Uo(e,a,n,o,_,l,h,k,f,b,v){for(var w=_-1,z=_===0?l:[""],S=ne(z),E=0,O=0,P=0;E0?z[T]+" "+A:Fe(A,/&\f/g,z[T])))&&(f[P++]=L);return Ke(e,a,n,_===0?nr:k,f,b,v)}function o_(e,a,n){return Ke(e,a,n,ls,oa(ba()),Y(e,2,-2),0)}function Sr(e,a,n,o){return Ke(e,a,n,or,Y(e,0,o),Y(e,o+1,-1),o)}var r_=function(a,n,o){for(var _=0,l=0;_=l,l=Ya(),_===38&&l===12&&(n[o]=1),!Ui(l);)Ba();return Vi(a,ge)},t_=function(a,n){var o=-1,_=44;do switch(Ui(_)){case 0:_===38&&Ya()===12&&(n[o]=1),a[o]+=r_(ge-1,n,o);break;case 2:a[o]+=Mn(_);break;case 4:if(_===44){a[++o]=Ya()===58?"&\f":"",n[o]=a[o].length;break}default:a[o]+=oa(_)}while(_=Ba());return a},ds=function(a,n){return ko(t_(En(a),n))},Au=new WeakMap,cc=function(a){if(!(a.type!=="rule"||!a.parent||a.length<1)){for(var n=a.value,o=a.parent,_=a.column===o.column&&a.line===o.line;o.type!=="rule";)if(o=o.parent,!o)return;if(!(a.props.length===1&&n.charCodeAt(0)!==58&&!Au.get(o))&&!_){Au.set(a,!0);for(var l=[],h=ds(n,l),k=o.props,f=0,b=0;f-1},mc=function(a){return function(n,o,_){if(!(n.type!=="rule"||a.compat)){var l=n.value.match(/(:first|:nth|:nth-last)-child/g);if(l){for(var h=!!n.parent,k=h?n.parent.children:_,f=k.length-1;f>=0;f--){var b=k[f];if(b.line=0;o--)if(!Mu(n[o]))return!0;return!1},__=function(a){a.type="",a.value="",a.return="",a.children="",a.props=""},hc=function(a,n,o){Mu(a)&&(a.parent?(console.error("`@import` rules can't be nested inside other rules. Please move it to the top level and put it before regular rules. Keep in mind that they can only be used within global styles."),__(a)):ks(n,o)&&(console.error("`@import` rules can't be after other rules. Please put your `@import` rules before your other rules."),__(a)))};function ps(e,a){switch(Xa(e,a)){case 5103:return ni+"print-"+e+e;case 5737:case 4201:case 3177:case 3433:case 1641:case 4457:case 2921:case 5572:case 6356:case 5844:case 3191:case 6645:case 3005:case 6391:case 5879:case 5623:case 6135:case 4599:case 4855:case 4215:case 6389:case 5109:case 5365:case 5621:case 3829:return ni+e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return ni+e+xr+e+qi+e+e;case 6828:case 4268:return ni+e+qi+e+e;case 6165:return ni+e+qi+"flex-"+e+e;case 5187:return ni+e+Fe(e,/(\w+).+(:[^]+)/,ni+"box-$1$2"+qi+"flex-$1$2")+e;case 5443:return ni+e+qi+"flex-item-"+Fe(e,/flex-|-self/,"")+e;case 4675:return ni+e+qi+"flex-line-pack"+Fe(e,/align-content|flex-|-self/,"")+e;case 5548:return ni+e+qi+Fe(e,"shrink","negative")+e;case 5292:return ni+e+qi+Fe(e,"basis","preferred-size")+e;case 6060:return ni+"box-"+Fe(e,"-grow","")+ni+e+qi+Fe(e,"grow","positive")+e;case 4554:return ni+Fe(e,/([^-])(transform)/g,"$1"+ni+"$2")+e;case 6187:return Fe(Fe(Fe(e,/(zoom-|grab)/,ni+"$1"),/(image-set)/,ni+"$1"),e,"")+e;case 5495:case 3959:return Fe(e,/(image-set\([^]*)/,ni+"$1$`$1");case 4968:return Fe(Fe(e,/(.+:)(flex-)?(.*)/,ni+"box-pack:$3"+qi+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+ni+e+e;case 4095:case 3583:case 4068:case 2532:return Fe(e,/(.+)-inline(.+)/,ni+"$1$2")+e;case 8116:case 7059:case 5753:case 5535:case 5445:case 5701:case 4933:case 4677:case 5533:case 5789:case 5021:case 4765:if(fe(e)-1-a>6)switch(q(e,a+1)){case 109:if(q(e,a+4)!==45)break;case 102:return Fe(e,/(.+:)(.+)-([^]+)/,"$1"+ni+"$2-$3$1"+xr+(q(e,a+3)==108?"$3":"$2-$3"))+e;case 115:return~We(e,"stretch")?ps(Fe(e,"stretch","fill-available"),a)+e:e}break;case 4949:if(q(e,a+1)!==115)break;case 6444:switch(q(e,fe(e)-3-(~We(e,"!important")&&10))){case 107:return Fe(e,":",":"+ni)+e;case 101:return Fe(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+ni+(q(e,14)===45?"inline-":"")+"box$3$1"+ni+"$2$3$1"+qi+"$2box$3")+e}break;case 5936:switch(q(e,a+11)){case 114:return ni+e+qi+Fe(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return ni+e+qi+Fe(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return ni+e+qi+Fe(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return ni+e+qi+e+e}return e}var dc=function(a,n,o,_){if(a.length>-1&&!a.return)switch(a.type){case or:a.return=ps(a.value,a.length);break;case ct:return Mo([Ve(a,{value:Fe(a.value,"@","@"+ni)})],_);case nr:if(a.length)return Z(a.props,function(l){switch(Me(l,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return Mo([Ve(a,{props:[Fe(l,/:(read-\w+)/,":"+xr+"$1")]})],_);case"::placeholder":return Mo([Ve(a,{props:[Fe(l,/:(plac\w+)/,":"+ni+"input-$1")]}),Ve(a,{props:[Fe(l,/:(plac\w+)/,":"+xr+"$1")]}),Ve(a,{props:[Fe(l,/:(plac\w+)/,qi+"input-$1")]})],_)}return""})}},gc=[dc],xi=function(a){var n=a.key;if(n==="css"){var o=document.querySelectorAll("style[data-emotion]:not([data-s])");Array.prototype.forEach.call(o,function(O){var P=O.getAttribute("data-emotion");P.indexOf(" ")!==-1&&(document.head.appendChild(O),O.setAttribute("data-s",""))})}var _=a.stylisPlugins||gc,l={},h,k=[];h=a.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+n+' "]'),function(O){for(var P=O.getAttribute("data-emotion").split(" "),T=1;T=4;++o,_-=4)n=e.charCodeAt(o)&255|(e.charCodeAt(++o)&255)<<8|(e.charCodeAt(++o)&255)<<16|(e.charCodeAt(++o)&255)<<24,n=(n&65535)*1540483477+((n>>>16)*59797<<16),n^=n>>>24,a=(n&65535)*1540483477+((n>>>16)*59797<<16)^(a&65535)*1540483477+((a>>>16)*59797<<16);switch(_){case 3:a^=(e.charCodeAt(o+2)&255)<<16;case 2:a^=(e.charCodeAt(o+1)&255)<<8;case 1:a^=e.charCodeAt(o)&255,a=(a&65535)*1540483477+((a>>>16)*59797<<16)}return a^=a>>>13,a=(a&65535)*1540483477+((a>>>16)*59797<<16),((a^a>>>15)>>>0).toString(36)}var rr=kc,s_={animationIterationCount:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1},eo=s_;function pc(e){var a=Object.create(null);return function(n){return a[n]===void 0&&(a[n]=e(n)),a[n]}}var On=pc,Km=`You have illegal escape sequence in your template literal, most likely inside content's property value. Because you write your CSS inside a JavaScript string you actually have to do double escaping, so for example "content: '\\00d7';" should become "content: '\\\\00d7';". You can read more about this here: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Template_literals#ES2018_revision_of_illegal_escape_sequences`,Qm="You have passed in falsy value as style object's key (can happen when in example you pass unexported component as computed key).",fc=/[A-Z]|^ms/g,u_=/_EMO_([^_]+?)_([^]*?)_EMO_/g,dt=function(a){return a.charCodeAt(1)===45},Pr=function(a){return a!=null&&typeof a!="boolean"},Er=On(function(e){return dt(e)?e:e.replace(fc,"-$&").toLowerCase()}),ys=function(a,n){switch(a){case"animation":case"animationName":if(typeof n=="string")return n.replace(u_,function(o,_,l){return Ln={name:_,styles:l,next:Ln},_})}return eo[a]!==1&&!dt(a)&&typeof n=="number"&&n!==0?n+"px":n};if(!1)var bs,Lu,yc,Uu,gt,Jm;var $u=null;function Ka(e,a,n){if(n==null)return"";if(n.__emotion_styles!==void 0)return n;switch(typeof n){case"boolean":return"";case"object":{if(n.anim===1)return Ln={name:n.name,styles:n.styles,next:Ln},n.name;if(n.styles!==void 0){var o=n.next;if(o!==void 0)for(;o!==void 0;)Ln={name:o.name,styles:o.styles,next:Ln},o=o.next;var _=n.styles+";";return _}return vs(e,a,n)}case"function":{if(e!==void 0){var l=Ln,h=n(e);return Ln=l,Ka(e,a,h)}break}case"string":if(!1)var k,f;break}if(a==null)return n;var b=a[n];return b!==void 0?b:n}function vs(e,a,n){var o="";if(Array.isArray(n))for(var _=0;_3&&arguments[3]!==void 0?arguments[3]:"high";qe(a,n,o);var l=".".concat(a.key,"-").concat(n.name),h=_==="low"?":where(".concat(l,")"):l;if(a.inserted[n.name]===void 0){var k="",f=n;do{var b=a.insert(n===f?h:"",f,a.sheet,!0);!ah&&b!==void 0&&(k+=b),f=f.next}while(f!==void 0);if(!ah&&k.length!==0)return k}},jc=function(a){return oi(a)==="object"&&"styles"in a&&"name"in a&&"toString"in a},ih=function e(a){for(var n="",o=0;o1&&arguments[1]!==void 0?arguments[1]:"high",o=Cg(a,n),_=Sg(a,o);return{css:o,cx:_}},Es=function(){for(var a=arguments.length,n=new Array(a),o=0;o=16.8.0"},peerDependenciesMeta:{"@types/react":{optional:!0}},devDependencies:{"@definitelytyped/dtslint":"0.0.112","@emotion/css":"11.10.6","@emotion/css-prettifier":"1.1.1","@emotion/server":"11.10.0","@emotion/styled":"11.10.6","html-tag-names":"^1.1.2",react:"16.14.0","svg-tag-names":"^1.1.1",typescript:"^4.5.5"},repository:"https://github.com/emotion-js/emotion/tree/main/packages/react",publishConfig:{access:"public"},"umd:main":"dist/emotion-react.umd.min.js",preconstruct:{entrypoints:["./index.js","./jsx-runtime.js","./jsx-dev-runtime.js","./_isolated-hnrs.js"],umdName:"emotionReact",exports:{envConditions:["browser","worker"],extra:{"./types/css-prop":"./types/css-prop.d.ts","./macro":"./macro.js"}}}},tf=function(a,n){var o=arguments;if(n==null||!hasOwnProperty.call(n,"css"))return createElement.apply(void 0,o);var _=o.length,l=new Array(_);l[0]=Emotion,l[1]=createEmotionProps(a,n);for(var h=2;h<_;h++)l[h]=o[h];return createElement.apply(null,l)},Og=!1,oh=Ho(function(e,a){var n=e.styles,o=fo([n],void 0,(0,g.useContext)(Or)),_=(0,g.useRef)();return Un(function(){var l=a.key+"-global",h=new a.sheet.constructor({key:l,nonce:a.sheet.nonce,container:a.sheet.container,speedy:a.sheet.isSpeedy}),k=!1,f=document.querySelector('style[data-emotion="'+l+" "+o.name+'"]');return a.sheet.tags.length&&(h.before=a.sheet.tags[0]),f!==null&&(k=!0,f.setAttribute("data-emotion",l),h.hydrate([f])),_.current=[h,k],function(){h.flush()}},[a]),Un(function(){var l=_.current,h=l[0],k=l[1];if(k){l[1]=!1;return}if(o.next!==void 0&&ua(a,o.next,!0),h.tags.length){var f=h.tags[h.tags.length-1].nextElementSibling;h.before=f,h.flush()}a.insert("",o,h,!1)},[a,o.name]),null});function rh(){for(var e=arguments.length,a=new Array(e),n=0;n=0)&&(n[_]=e[_]);return n}function Ai(e,a){if(e==null)return{};var n=_h(e,a),o,_;if(Object.getOwnPropertySymbols){var l=Object.getOwnPropertySymbols(e);for(_=0;_=0)&&Object.prototype.propertyIsEnumerable.call(e,o)&&(n[o]=e[o])}return n}function Yu(e,a){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);a&&(o=o.filter(function(_){return Object.getOwnPropertyDescriptor(e,_).enumerable})),n.push.apply(n,o)}return n}function Ie(e){for(var a=1;ae.length)&&(a=e.length);for(var n=0,o=new Array(a);n3&&arguments[3]!==void 0?arguments[3]:"high";qe(a,n,o);var l=".".concat(a.key,"-").concat(n.name),h=_==="low"?":where(".concat(l,")"):l;if(a.inserted[n.name]===void 0){var k="",f=n;do{var b=a.insert(n===f?h:"",f,a.sheet,!0);!ah&&b!==void 0&&(k+=b),f=f.next}while(f!==void 0);if(!ah&&k.length!==0)return k}},jc=function(a){return oi(a)==="object"&&"styles"in a&&"name"in a&&"toString"in a},ih=function e(a){for(var n="",o=0;o1&&arguments[1]!==void 0?arguments[1]:"high",o=Cg(a,n),_=Sg(a,o);return{css:o,cx:_}},Es=function(){for(var a=arguments.length,n=new Array(a),o=0;o=16.8.0"},peerDependenciesMeta:{"@types/react":{optional:!0}},devDependencies:{"@definitelytyped/dtslint":"0.0.112","@emotion/css":"11.10.6","@emotion/css-prettifier":"1.1.1","@emotion/server":"11.10.0","@emotion/styled":"11.10.6","html-tag-names":"^1.1.2",react:"16.14.0","svg-tag-names":"^1.1.1",typescript:"^4.5.5"},repository:"https://github.com/emotion-js/emotion/tree/main/packages/react",publishConfig:{access:"public"},"umd:main":"dist/emotion-react.umd.min.js",preconstruct:{entrypoints:["./index.js","./jsx-runtime.js","./jsx-dev-runtime.js","./_isolated-hnrs.js"],umdName:"emotionReact",exports:{envConditions:["browser","worker"],extra:{"./types/css-prop":"./types/css-prop.d.ts","./macro":"./macro.js"}}}},tf=function(a,n){var o=arguments;if(n==null||!hasOwnProperty.call(n,"css"))return createElement.apply(void 0,o);var _=o.length,l=new Array(_);l[0]=Emotion,l[1]=createEmotionProps(a,n);for(var h=2;h<_;h++)l[h]=o[h];return createElement.apply(null,l)},Og=!1,oh=Ho(function(e,a){var n=e.styles,o=fo([n],void 0,(0,g.useContext)(Or)),_=(0,g.useRef)();return Un(function(){var l=a.key+"-global",h=new a.sheet.constructor({key:l,nonce:a.sheet.nonce,container:a.sheet.container,speedy:a.sheet.isSpeedy}),k=!1,f=document.querySelector('style[data-emotion="'+l+" "+o.name+'"]');return a.sheet.tags.length&&(h.before=a.sheet.tags[0]),f!==null&&(k=!0,f.setAttribute("data-emotion",l),h.hydrate([f])),_.current=[h,k],function(){h.flush()}},[a]),Un(function(){var l=_.current,h=l[0],k=l[1];if(k){l[1]=!1;return}if(o.next!==void 0&&ua(a,o.next,!0),h.tags.length){var f=h.tags[h.tags.length-1].nextElementSibling;h.before=f,h.flush()}a.insert("",o,h,!1)},[a,o.name]),null});function rh(){for(var e=arguments.length,a=new Array(e),n=0;n=0)&&(n[_]=e[_]);return n}function Ai(e,a){if(e==null)return{};var n=_h(e,a),o,_;if(Object.getOwnPropertySymbols){var l=Object.getOwnPropertySymbols(e);for(_=0;_=0)&&Object.prototype.propertyIsEnumerable.call(e,o)&&(n[o]=e[o])}return n}function Yu(e,a){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);a&&(o=o.filter(function(_){return Object.getOwnPropertyDescriptor(e,_).enumerable})),n.push.apply(n,o)}return n}function Ie(e){for(var a=1;ae.length)&&(a=e.length);for(var n=0,o=new Array(a);n=4;++o,_-=4)n=e.charCodeAt(o)&255|(e.charCodeAt(++o)&255)<<8|(e.charCodeAt(++o)&255)<<16|(e.charCodeAt(++o)&255)<<24,n=(n&65535)*1540483477+((n>>>16)*59797<<16),n^=n>>>24,a=(n&65535)*1540483477+((n>>>16)*59797<<16)^(a&65535)*1540483477+((a>>>16)*59797<<16);switch(_){case 3:a^=(e.charCodeAt(o+2)&255)<<16;case 2:a^=(e.charCodeAt(o+1)&255)<<8;case 1:a^=e.charCodeAt(o)&255,a=(a&65535)*1540483477+((a>>>16)*59797<<16)}return a^=a>>>13,a=(a&65535)*1540483477+((a>>>16)*59797<<16),((a^a>>>15)>>>0).toString(36)}var Hn=Mg;function Dr(e,a,n){var o=g.useRef({});return(!("value"in o.current)||n(o.current.condition,a))&&(o.current.value=e(),o.current.condition=a),o.current.value}var Qu={};function lh(e,a){}function ch(e,a){}function Fg(){Qu={}}function Ju(e,a,n){!a&&!Qu[n]&&(e(!1,n),Qu[n]=!0)}function Lg(e,a){Ju(lh,e,a)}function lf(e,a){Ju(ch,e,a)}var vn=Lg;function Cc(e,a){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1,o=new Set;function _(l,h){var k=arguments.length>2&&arguments[2]!==void 0?arguments[2]:1,f=o.has(l);if(vn(!f,"Warning: There may be circular references"),f)return!1;if(l===h)return!0;if(n&&k>1)return!1;o.add(l);var b=k+1;if(Array.isArray(l)){if(!Array.isArray(h)||l.length!==h.length)return!1;for(var v=0;v0&&arguments[0]!==void 0?arguments[0]:{},a=e.mark;return a?a.startsWith("data-")?a:"data-".concat(a):dh}function zt(e){if(e.attachTo)return e.attachTo;var a=document.querySelector("head");return a||document.body}function b_(e){return e==="queue"?"prependQueue":e?"prepend":"append"}function Ic(e){return Array.from((f_.get(e)||e).children).filter(function(a){return a.tagName==="STYLE"})}function gh(e){var a=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(!wn())return null;var n=a.csp,o=a.prepend,_=document.createElement("style");_.setAttribute(p_,b_(o)),n!=null&&n.nonce&&(_.nonce=n==null?void 0:n.nonce),_.innerHTML=e;var l=zt(a),h=l.firstChild;if(o){if(o==="queue"){var k=Ic(l).filter(function(f){return["prepend","prependQueue"].includes(f.getAttribute(p_))});if(k.length)return l.insertBefore(_,k[k.length-1].nextSibling),_}l.insertBefore(_,h)}else l.appendChild(_);return _}function kh(e){var a=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=zt(a);return Ic(n).find(function(o){return o.getAttribute(y_(a))===e})}function Ds(e){var a=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=kh(e,a);if(n){var o=zt(a);o.removeChild(n)}}function nl(e,a){var n=f_.get(e);if(!n||!k_(document,n)){var o=gh("",a),_=o.parentNode;f_.set(e,_),e.removeChild(o)}}function Dc(){f_.clear()}function Fr(e,a){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},o=zt(n);nl(o,n);var _=kh(a,n);if(_){var l,h;if((l=n.csp)!==null&&l!==void 0&&l.nonce&&_.nonce!==((h=n.csp)===null||h===void 0?void 0:h.nonce)){var k;_.nonce=(k=n.csp)===null||k===void 0?void 0:k.nonce}return _.innerHTML!==e&&(_.innerHTML=e),_}var f=gh(e,n);return f.setAttribute(y_(n),a),f}function v_(e){var a="";return Object.keys(e).forEach(function(n){var o=e[n];a+=n,o&&oi(o)==="object"?a+=v_(o):a+=o}),a}function Tc(e,a){return Hn("".concat(a,"_").concat(v_(e)))}var xt="layer-".concat(Date.now(),"-").concat(Math.random()).replace(/\./g,""),ph="903px";function fh(e,a){if(wn()){var n;Fr(e,xt);var o=document.createElement("div");o.style.position="fixed",o.style.left="0",o.style.top="0",a==null||a(o),document.body.appendChild(o);var _=getComputedStyle(o).width===ph;return(n=o.parentNode)===null||n===void 0||n.removeChild(o),Ds(xt),_}return!1}var Rc=void 0;function qg(){return Rc===void 0&&(Rc=fh("@layer ".concat(xt," { .").concat(xt," { width: ").concat(ph,"!important; } }"),function(e){e.className=xt})),Rc}var Ac={},Lr="css",Ur=new Map;function w_(e){Ur.set(e,(Ur.get(e)||0)+1)}function Bo(e){if(typeof document!="undefined"){var a=document.querySelectorAll("style[".concat(Rr,'="').concat(e,'"]'));a.forEach(function(n){if(n[Nr]===Is){var o;(o=n.parentNode)===null||o===void 0||o.removeChild(n)}})}}function Ts(e){Ur.set(e,(Ur.get(e)||0)-1);var a=Array.from(Ur.keys()),n=a.filter(function(o){var _=Ur.get(o)||0;return _<=0});n.length2&&arguments[2]!==void 0?arguments[2]:{},o=n.salt,_=o===void 0?"":o,l=n.override,h=l===void 0?Ac:l,k=n.formatToken,f=g.useMemo(function(){return Object.assign.apply(Object,[{}].concat(xa(a)))},[a]),b=g.useMemo(function(){return v_(f)},[f]),v=g.useMemo(function(){return v_(h)},[h]),w=fi("token",[_,e.id,b,v],function(){var z=e.getDerivativeToken(f),S=Ie(Ie({},z),h);k&&(S=k(S));var E=Tc(S,_);S._tokenKey=E,w_(E);var O="".concat(Lr,"-").concat(Hn(E));return S._hashId=O,[S,O]},function(z){Ts(z[0]._tokenKey)});return w}var Nc={animationIterationCount:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1},yh=Nc;function cf(e,a){var n=a.path,o=a.parentSelectors;devWarning(!1,"[Ant Design CSS-in-JS] ".concat(n?"Error in ".concat(n,": "):"").concat(e).concat(o.length?" Selector: ".concat(o.join(" | ")):""))}var j_=function(a,n,o){if(a==="content"){var _=/(attr|counters?|url|(((repeating-)?(linear|radial))|conic)-gradient)\(|(no-)?(open|close)-quote/,l=["normal","none","initial","inherit","unset"];(typeof n!="string"||l.indexOf(n)===-1&&!_.test(n)&&(n.charAt(0)!==n.charAt(n.length-1)||n.charAt(0)!=='"'&&n.charAt(0)!=="'"))&&lintWarning("You seem to be using a value for 'content' without quotes, try replacing it with `content: '\"".concat(n,"\"'`."),o)}},ol=null,Rs=function(a,n,o){a==="animation"&&o.hashId&&n!=="none"&&lintWarning("You seem to be using hashed animation '".concat(n,"', in which case 'animationName' with Keyframe as value is recommended."),o)},Mc=null;function Fc(e){var a,n=((a=e.match(/:not\(([^)]*)\)/))===null||a===void 0?void 0:a[1])||"",o=n.split(/(\[[^[]*])|(?=[.#])/).filter(function(_){return _});return o.length>1}function z_(e){return e.parentSelectors.reduce(function(a,n){return a?n.includes("&")?n.replace(/&/g,a):"".concat(a," ").concat(n):n},"")}var Ct=function(a,n,o){var _=z_(o),l=_.match(/:not\([^)]*\)/g)||[];l.length>0&&l.some(Fc)&&lintWarning("Concat ':not' selector not support in legacy browsers.",o)},zi=null,bi=function(a,n,o){switch(a){case"marginLeft":case"marginRight":case"paddingLeft":case"paddingRight":case"left":case"right":case"borderLeft":case"borderLeftWidth":case"borderLeftStyle":case"borderLeftColor":case"borderRight":case"borderRightWidth":case"borderRightStyle":case"borderRightColor":case"borderTopLeftRadius":case"borderTopRightRadius":case"borderBottomLeftRadius":case"borderBottomRightRadius":lintWarning("You seem to be using non-logical property '".concat(a,"' which is not compatible with RTL mode. Please use logical properties and values instead. For more information: https://developer.mozilla.org/en-US/docs/Web/CSS/CSS_Logical_Properties."),o);return;case"margin":case"padding":case"borderWidth":case"borderStyle":if(typeof n=="string"){var _=n.split(" ").map(function(k){return k.trim()});_.length===4&&_[1]!==_[3]&&lintWarning("You seem to be using '".concat(a,"' property with different left ").concat(a," and right ").concat(a,", which is not compatible with RTL mode. Please use logical properties and values instead. For more information: https://developer.mozilla.org/en-US/docs/Web/CSS/CSS_Logical_Properties."),o)}return;case"clear":case"textAlign":(n==="left"||n==="right")&&lintWarning("You seem to be using non-logical value '".concat(n,"' of ").concat(a,", which is not compatible with RTL mode. Please use logical properties and values instead. For more information: https://developer.mozilla.org/en-US/docs/Web/CSS/CSS_Logical_Properties."),o);return;case"borderRadius":if(typeof n=="string"){var l=n.split("/").map(function(k){return k.trim()}),h=l.reduce(function(k,f){if(k)return k;var b=f.split(" ").map(function(v){return v.trim()});return b.length>=2&&b[0]!==b[1]||b.length===3&&b[1]!==b[2]||b.length===4&&b[2]!==b[3]?!0:k},!1);h&&lintWarning("You seem to be using non-logical value '".concat(n,"' of ").concat(a,", which is not compatible with RTL mode. Please use logical properties and values instead. For more information: https://developer.mozilla.org/en-US/docs/Web/CSS/CSS_Logical_Properties."),o)}return;default:}},St=null,jn=function(a,n,o){o.parentSelectors.some(function(_){var l=_.split(",");return l.some(function(h){return h.split("&").length>2})})&&lintWarning("Should not use more than one `&` in a selector.",o)},Wn=null,$r=wn(),x_="_skip_check_";function zn(e){var a=Mo(Fo(e),ms);return a.replace(/\{%%%\:[^;];}/g,";")}function rl(e){return oi(e)==="object"&&e&&x_ in e}function bh(e,a,n){if(!a)return e;var o=".".concat(a),_=n==="low"?":where(".concat(o,")"):o,l=e.split(",").map(function(h){var k,f=h.trim().split(/\s+/),b=f[0]||"",v=((k=b.match(/^\w+/))===null||k===void 0?void 0:k[0])||"";return b="".concat(v).concat(_).concat(b.slice(v.length)),[b].concat(xa(f.slice(1))).join(" ")});return l.join(",")}var vh=function e(a){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},o=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{root:!0,parentSelectors:[]},_=o.root,l=o.injectHash,h=o.parentSelectors,k=n.hashId,f=n.layer,b=n.path,v=n.hashPriority,w=n.transformers,z=w===void 0?[]:w,S=n.linters,E=S===void 0?[]:S,O="",P={};function T(ae){var ie=ae.getName(k);if(!P[ie]){var se=e(ae.style,n,{root:!1,parentSelectors:h}),he=la(se,1),ue=he[0];P[ie]="@keyframes ".concat(ae.getName(k)).concat(ue)}}function A(ae){var ie=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[];return ae.forEach(function(se){Array.isArray(se)?A(se,ie):se&&ie.push(se)}),ie}var L=A(Array.isArray(a)?a:[a]);if(L.forEach(function(ae){var ie=typeof ae=="string"&&!_?{}:ae;if(typeof ie=="string")O+="".concat(ie,` -`);else if(ie._keyframe)T(ie);else{var se=z.reduce(function(he,ue){var ze;return(ue==null||(ze=ue.visit)===null||ze===void 0?void 0:ze.call(ue,he))||he},ie);Object.keys(se).forEach(function(he){var ue=se[he];if(oi(ue)==="object"&&ue&&(he!=="animationName"||!ue._keyframe)&&!rl(ue)){var ze=!1,te=he.trim(),re=!1;(_||l)&&k?te.startsWith("@")?ze=!0:te=bh(he,k,v):_&&!k&&(te==="&"||te==="")&&(te="",re=!0);var le=e(ue,n,{root:re,injectHash:ze,parentSelectors:[].concat(xa(h),[te])}),be=la(le,2),Ve=be[0],He=be[1];P=Ie(Ie({},P),He),O+="".concat(te).concat(Ve)}else{var ea,ca=(ea=ue==null?void 0:ue.value)!==null&&ea!==void 0?ea:ue,Sa=he.replace(/[A-Z]/g,function(Ge){return"-".concat(Ge.toLowerCase())}),ya=ca;!yh[he]&&typeof ya=="number"&&ya!==0&&(ya="".concat(ya,"px")),he==="animationName"&&ue!==null&&ue!==void 0&&ue._keyframe&&(T(ue),ya=ue.getName(k)),O+="".concat(Sa,":").concat(ya,";")}})}}),!_)O="{".concat(O,"}");else if(f&&qg()){var H=f.split(","),K=H[H.length-1].trim();O="@layer ".concat(K," {").concat(O,"}"),H.length>1&&(O="@layer ".concat(f,"{%%%:%}").concat(O))}return[O,P]};function tl(e,a){return Hn("".concat(e.join("%")).concat(a))}function wh(){return null}function yo(e,a){var n=e.token,o=e.path,_=e.hashId,l=e.layer,h=e.nonce,k=g.useContext(Ec),f=k.autoClear,b=k.mock,v=k.defaultCache,w=k.hashPriority,z=k.container,S=k.ssrInline,E=k.transformers,O=k.linters,P=n._tokenKey,T=[P].concat(xa(o)),A=$r,L=fi("style",T,function(){var se=a(),he=vh(se,{hashId:_,hashPriority:w,layer:l,path:o.join("-"),transformers:E,linters:O}),ue=la(he,2),ze=ue[0],te=ue[1],re=zn(ze),le=tl(T,re);if(A){var be={mark:Ar,prepend:"queue",attachTo:z},Ve=typeof h=="function"?h():h;Ve&&(be.csp={nonce:Ve});var He=Fr(re,le,be);He[Nr]=Is,He.setAttribute(Rr,P),Object.keys(te).forEach(function(ea){Fr(zn(te[ea]),"_effect-".concat(ea),be)})}return[re,P,le]},function(se,he){var ue=la(se,3),ze=ue[2];(he||f)&&$r&&Ds(ze,{mark:Ar})}),H=la(L,3),K=H[0],ae=H[1],ie=H[2];return function(se){var he;if(!S||A||!v)he=g.createElement(wh,null);else{var ue;he=g.createElement("style",gi({},(ue={},D(ue,Rr,ae),D(ue,Ar,ie),ue),{dangerouslySetInnerHTML:{__html:K}}))}return g.createElement(g.Fragment,null,he,se)}}function Lc(e){var a=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,n=Array.from(e.cache.keys()).filter(function(_){return _.startsWith("style%")}),o="";return n.forEach(function(_){var l=_slicedToArray(e.cache.get(_)[1],3),h=l[0],k=l[1],f=l[2];o+=a?h:"")}),o}var Uc=function(){function e(a,n){mn(this,e),D(this,"name",void 0),D(this,"style",void 0),D(this,"_keyframe",!0),this.name=a,this.style=n}return M(e,[{key:"getName",value:function(){var n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"";return n?"".concat(n,"-").concat(this.name):this.name}}]),e}(),ui=Uc;function Gg(e,a){if(e.length!==a.length)return!1;for(var n=0;n1&&arguments[1]!==void 0?arguments[1]:!1,h={map:this.cache};return n.forEach(function(k){if(!h)h=void 0;else{var f,b;h=(f=h)===null||f===void 0||(b=f.map)===null||b===void 0?void 0:b.get(k)}}),(o=h)!==null&&o!==void 0&&o.value&&l&&(h.value[1]=this.cacheCallTimes++),(_=h)===null||_===void 0?void 0:_.value}},{key:"get",value:function(n){var o;return(o=this.internalGet(n,!0))===null||o===void 0?void 0:o[0]}},{key:"has",value:function(n){return!!this.internalGet(n)}},{key:"set",value:function(n,o){var _=this;if(!this.has(n)){if(this.size()+1>e.MAX_CACHE_SIZE+e.MAX_CACHE_OFFSET){var l=this.keys.reduce(function(b,v){var w=la(b,2),z=w[1];return _.internalGet(v)[1]0,void 0),Pt+=1}return M(e,[{key:"getDerivativeToken",value:function(n){return this.derivatives.reduce(function(o,_){return _(n,o)},void 0)}}]),e}(),S_=new qo;function As(e){var a=Array.isArray(e)?e:[e];return S_.has(a)||S_.set(a,new C_(a)),S_.get(a)}function io(e){if(typeof e=="number")return[[e],!1];var a=String(e).trim(),n=a.match(/(.*)(!important)/),o=(n?n[1]:a).trim().split(/\s+/),_="",l=0;return[o.reduce(function(h,k){return k.includes("(")?(_+=k,l+=k.split("(").length-1):k.includes(")")?(_+=k,l-=k.split(")").length-1,l===0&&(h.push(_),_="")):l>0?_+=k:h.push(k),h},[]),!!n]}function tn(e){return e.notSplit=!0,e}var Et={inset:["top","right","bottom","left"],insetBlock:["top","bottom"],insetBlockStart:["top"],insetBlockEnd:["bottom"],insetInline:["left","right"],insetInlineStart:["left"],insetInlineEnd:["right"],marginBlock:["marginTop","marginBottom"],marginBlockStart:["marginTop"],marginBlockEnd:["marginBottom"],marginInline:["marginLeft","marginRight"],marginInlineStart:["marginLeft"],marginInlineEnd:["marginRight"],paddingBlock:["paddingTop","paddingBottom"],paddingBlockStart:["paddingTop"],paddingBlockEnd:["paddingBottom"],paddingInline:["paddingLeft","paddingRight"],paddingInlineStart:["paddingLeft"],paddingInlineEnd:["paddingRight"],borderBlock:tn(["borderTop","borderBottom"]),borderBlockStart:tn(["borderTop"]),borderBlockEnd:tn(["borderBottom"]),borderInline:tn(["borderLeft","borderRight"]),borderInlineStart:tn(["borderLeft"]),borderInlineEnd:tn(["borderRight"]),borderBlockWidth:["borderTopWidth","borderBottomWidth"],borderBlockStartWidth:["borderTopWidth"],borderBlockEndWidth:["borderBottomWidth"],borderInlineWidth:["borderLeftWidth","borderRightWidth"],borderInlineStartWidth:["borderLeftWidth"],borderInlineEndWidth:["borderRightWidth"],borderBlockStyle:["borderTopStyle","borderBottomStyle"],borderBlockStartStyle:["borderTopStyle"],borderBlockEndStyle:["borderBottomStyle"],borderInlineStyle:["borderLeftStyle","borderRightStyle"],borderInlineStartStyle:["borderLeftStyle"],borderInlineEndStyle:["borderRightStyle"],borderBlockColor:["borderTopColor","borderBottomColor"],borderBlockStartColor:["borderTopColor"],borderBlockEndColor:["borderBottomColor"],borderInlineColor:["borderLeftColor","borderRightColor"],borderInlineStartColor:["borderLeftColor"],borderInlineEndColor:["borderRightColor"],borderStartStartRadius:["borderTopLeftRadius"],borderStartEndRadius:["borderTopRightRadius"],borderEndStartRadius:["borderBottomLeftRadius"],borderEndEndRadius:["borderBottomRightRadius"]};function no(e,a){var n=e;return a&&(n="".concat(n," !important")),{_skip_check_:!0,value:n}}var Hr={visit:function(a){var n={};return Object.keys(a).forEach(function(o){var _=a[o],l=Et[o];if(l&&(typeof _=="number"||typeof _=="string")){var h=io(_),k=la(h,2),f=k[0],b=k[1];l.length&&l.notSplit?l.forEach(function(v){n[v]=no(_,b)}):l.length===1?n[l[0]]=no(_,b):l.length===2?l.forEach(function(v,w){var z;n[v]=no((z=f[w])!==null&&z!==void 0?z:f[0],b)}):l.length===4?l.forEach(function(v,w){var z,S;n[v]=no((z=(S=f[w])!==null&&S!==void 0?S:f[w-2])!==null&&z!==void 0?z:f[0],b)}):n[o]=_}else n[o]=_}),n}},P_=null,_l=/url\([^)]+\)|var\([^)]+\)|(\d*\.?\d+)px/g;function $c(e,a){var n=Math.pow(10,a+1),o=Math.floor(e*n);return Math.round(o/10)*10/n}var jh=function(){var a=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},n=a.rootValue,o=n===void 0?16:n,_=a.precision,l=_===void 0?5:_,h=a.mediaQuery,k=h===void 0?!1:h,f=function(w,z){if(!z)return w;var S=parseFloat(z);if(S<=1)return w;var E=$c(S/o,l);return"".concat(E,"rem")},b=function(w){var z=_objectSpread({},w);return Object.entries(w).forEach(function(S){var E=_slicedToArray(S,2),O=E[0],P=E[1];if(typeof P=="string"&&P.includes("px")){var T=P.replace(_l,f);z[O]=T}!unitless[O]&&typeof P=="number"&&P!==0&&(z[O]="".concat(P,"px").replace(_l,f));var A=O.trim();if(A.startsWith("@")&&A.includes("px")&&k){var L=O.replace(_l,f);z[L]=z[O],delete z[O]}}),z};return{visit:b}},oo=null,Vn=["children","prefix","speedy","getStyleManager","container","nonce","insertionPoint","stylisPlugins"];function vi(e,a){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);a&&(o=o.filter(function(_){return Object.getOwnPropertyDescriptor(e,_).enumerable})),n.push.apply(n,o)}return n}function ro(e){for(var a=1;a1)&&(e=1),e}function E_(e){return e<=1?"".concat(Number(e)*100,"%"):e}function It(e){return e.length===1?"0"+e:String(e)}function bo(e,a,n){return{r:Gi(e,255)*255,g:Gi(a,255)*255,b:Gi(n,255)*255}}function Ms(e,a,n){e=Gi(e,255),a=Gi(a,255),n=Gi(n,255);var o=Math.max(e,a,n),_=Math.min(e,a,n),l=0,h=0,k=(o+_)/2;if(o===_)h=0,l=0;else{var f=o-_;switch(h=k>.5?f/(2-o-_):f/(o+_),o){case e:l=(a-n)/f+(a1&&(n-=1),n<1/6?e+(a-e)*(6*n):n<1/2?a:n<2/3?e+(a-e)*(2/3-n)*6:e}function I_(e,a,n){var o,_,l;if(e=Gi(e,360),a=Gi(a,100),n=Gi(n,100),a===0)_=n,l=n,o=n;else{var h=n<.5?n*(1+a):n+a-n*a,k=2*n-h;o=O_(k,h,e+1/3),_=O_(k,h,e),l=O_(k,h,e-1/3)}return{r:o*255,g:_*255,b:l*255}}function Fs(e,a,n){e=Gi(e,255),a=Gi(a,255),n=Gi(n,255);var o=Math.max(e,a,n),_=Math.min(e,a,n),l=0,h=o,k=o-_,f=o===0?0:k/o;if(o===_)l=0;else{switch(o){case e:l=(a-n)/k+(a>16,g:(e&65280)>>8,b:e&255}}var vo={aliceblue:"#f0f8ff",antiquewhite:"#faebd7",aqua:"#00ffff",aquamarine:"#7fffd4",azure:"#f0ffff",beige:"#f5f5dc",bisque:"#ffe4c4",black:"#000000",blanchedalmond:"#ffebcd",blue:"#0000ff",blueviolet:"#8a2be2",brown:"#a52a2a",burlywood:"#deb887",cadetblue:"#5f9ea0",chartreuse:"#7fff00",chocolate:"#d2691e",coral:"#ff7f50",cornflowerblue:"#6495ed",cornsilk:"#fff8dc",crimson:"#dc143c",cyan:"#00ffff",darkblue:"#00008b",darkcyan:"#008b8b",darkgoldenrod:"#b8860b",darkgray:"#a9a9a9",darkgreen:"#006400",darkgrey:"#a9a9a9",darkkhaki:"#bdb76b",darkmagenta:"#8b008b",darkolivegreen:"#556b2f",darkorange:"#ff8c00",darkorchid:"#9932cc",darkred:"#8b0000",darksalmon:"#e9967a",darkseagreen:"#8fbc8f",darkslateblue:"#483d8b",darkslategray:"#2f4f4f",darkslategrey:"#2f4f4f",darkturquoise:"#00ced1",darkviolet:"#9400d3",deeppink:"#ff1493",deepskyblue:"#00bfff",dimgray:"#696969",dimgrey:"#696969",dodgerblue:"#1e90ff",firebrick:"#b22222",floralwhite:"#fffaf0",forestgreen:"#228b22",fuchsia:"#ff00ff",gainsboro:"#dcdcdc",ghostwhite:"#f8f8ff",goldenrod:"#daa520",gold:"#ffd700",gray:"#808080",green:"#008000",greenyellow:"#adff2f",grey:"#808080",honeydew:"#f0fff0",hotpink:"#ff69b4",indianred:"#cd5c5c",indigo:"#4b0082",ivory:"#fffff0",khaki:"#f0e68c",lavenderblush:"#fff0f5",lavender:"#e6e6fa",lawngreen:"#7cfc00",lemonchiffon:"#fffacd",lightblue:"#add8e6",lightcoral:"#f08080",lightcyan:"#e0ffff",lightgoldenrodyellow:"#fafad2",lightgray:"#d3d3d3",lightgreen:"#90ee90",lightgrey:"#d3d3d3",lightpink:"#ffb6c1",lightsalmon:"#ffa07a",lightseagreen:"#20b2aa",lightskyblue:"#87cefa",lightslategray:"#778899",lightslategrey:"#778899",lightsteelblue:"#b0c4de",lightyellow:"#ffffe0",lime:"#00ff00",limegreen:"#32cd32",linen:"#faf0e6",magenta:"#ff00ff",maroon:"#800000",mediumaquamarine:"#66cdaa",mediumblue:"#0000cd",mediumorchid:"#ba55d3",mediumpurple:"#9370db",mediumseagreen:"#3cb371",mediumslateblue:"#7b68ee",mediumspringgreen:"#00fa9a",mediumturquoise:"#48d1cc",mediumvioletred:"#c71585",midnightblue:"#191970",mintcream:"#f5fffa",mistyrose:"#ffe4e1",moccasin:"#ffe4b5",navajowhite:"#ffdead",navy:"#000080",oldlace:"#fdf5e6",olive:"#808000",olivedrab:"#6b8e23",orange:"#ffa500",orangered:"#ff4500",orchid:"#da70d6",palegoldenrod:"#eee8aa",palegreen:"#98fb98",paleturquoise:"#afeeee",palevioletred:"#db7093",papayawhip:"#ffefd5",peachpuff:"#ffdab9",peru:"#cd853f",pink:"#ffc0cb",plum:"#dda0dd",powderblue:"#b0e0e6",purple:"#800080",rebeccapurple:"#663399",red:"#ff0000",rosybrown:"#bc8f8f",royalblue:"#4169e1",saddlebrown:"#8b4513",salmon:"#fa8072",sandybrown:"#f4a460",seagreen:"#2e8b57",seashell:"#fff5ee",sienna:"#a0522d",silver:"#c0c0c0",skyblue:"#87ceeb",slateblue:"#6a5acd",slategray:"#708090",slategrey:"#708090",snow:"#fffafa",springgreen:"#00ff7f",steelblue:"#4682b4",tan:"#d2b48c",teal:"#008080",thistle:"#d8bfd8",tomato:"#ff6347",turquoise:"#40e0d0",violet:"#ee82ee",wheat:"#f5deb3",white:"#ffffff",whitesmoke:"#f5f5f5",yellow:"#ffff00",yellowgreen:"#9acd32"};function qn(e){var a={r:0,g:0,b:0},n=1,o=null,_=null,l=null,h=!1,k=!1;return typeof e=="string"&&(e=ul(e)),typeof e=="object"&&(Xo(e.r)&&Xo(e.g)&&Xo(e.b)?(a=bo(e.r,e.g,e.b),h=!0,k=String(e.r).substr(-1)==="%"?"prgb":"rgb"):Xo(e.h)&&Xo(e.s)&&Xo(e.v)?(o=E_(e.s),_=E_(e.v),a=Wc(e.h,o,_),h=!0,k="hsv"):Xo(e.h)&&Xo(e.s)&&Xo(e.l)&&(o=E_(e.s),l=E_(e.l),a=I_(e.h,o,l),h=!0,k="hsl"),Object.prototype.hasOwnProperty.call(e,"a")&&(n=e.a)),n=Ot(n),{ok:h,format:e.format||k,r:Math.min(255,Math.max(a.r,0)),g:Math.min(255,Math.max(a.g,0)),b:Math.min(255,Math.max(a.b,0)),a:n}}var Bc="[-\\+]?\\d+%?",Ph="[-\\+]?\\d*\\.\\d+%?",gn="(?:".concat(Ph,")|(?:").concat(Bc,")"),Go="[\\s|\\(]+(".concat(gn,")[,|\\s]+(").concat(gn,")[,|\\s]+(").concat(gn,")\\s*\\)?"),D_="[\\s|\\(]+(".concat(gn,")[,|\\s]+(").concat(gn,")[,|\\s]+(").concat(gn,")[,|\\s]+(").concat(gn,")\\s*\\)?"),to={CSS_UNIT:new RegExp(gn),rgb:new RegExp("rgb"+Go),rgba:new RegExp("rgba"+D_),hsl:new RegExp("hsl"+Go),hsla:new RegExp("hsla"+D_),hsv:new RegExp("hsv"+Go),hsva:new RegExp("hsva"+D_),hex3:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex6:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/,hex4:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex8:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/};function ul(e){if(e=e.trim().toLowerCase(),e.length===0)return!1;var a=!1;if(vo[e])e=vo[e],a=!0;else if(e==="transparent")return{r:0,g:0,b:0,a:0,format:"name"};var n=to.rgb.exec(e);return n?{r:n[1],g:n[2],b:n[3]}:(n=to.rgba.exec(e),n?{r:n[1],g:n[2],b:n[3],a:n[4]}:(n=to.hsl.exec(e),n?{h:n[1],s:n[2],l:n[3]}:(n=to.hsla.exec(e),n?{h:n[1],s:n[2],l:n[3],a:n[4]}:(n=to.hsv.exec(e),n?{h:n[1],s:n[2],v:n[3]}:(n=to.hsva.exec(e),n?{h:n[1],s:n[2],v:n[3],a:n[4]}:(n=to.hex8.exec(e),n?{r:xn(n[1]),g:xn(n[2]),b:xn(n[3]),a:Wr(n[4]),format:a?"name":"hex8"}:(n=to.hex6.exec(e),n?{r:xn(n[1]),g:xn(n[2]),b:xn(n[3]),format:a?"name":"hex"}:(n=to.hex4.exec(e),n?{r:xn(n[1]+n[1]),g:xn(n[2]+n[2]),b:xn(n[3]+n[3]),a:Wr(n[4]+n[4]),format:a?"name":"hex8"}:(n=to.hex3.exec(e),n?{r:xn(n[1]+n[1]),g:xn(n[2]+n[2]),b:xn(n[3]+n[3]),format:a?"name":"hex"}:!1)))))))))}function Xo(e){return Boolean(to.CSS_UNIT.exec(String(e)))}var $s=2,ll=.16,cl=.05,Eh=.05,Oh=.15,qc=5,ml=4,Hs=[{index:7,opacity:.15},{index:6,opacity:.25},{index:5,opacity:.3},{index:5,opacity:.45},{index:5,opacity:.65},{index:5,opacity:.85},{index:4,opacity:.9},{index:3,opacity:.95},{index:2,opacity:.97},{index:1,opacity:.98}];function Ws(e){var a=e.r,n=e.g,o=e.b,_=Fs(a,n,o);return{h:_.h*360,s:_.s,v:_.v}}function Vs(e){var a=e.r,n=e.g,o=e.b;return"#".concat(Ls(a,n,o,!1))}function Ih(e,a,n){var o=n/100,_={r:(a.r-e.r)*o+e.r,g:(a.g-e.g)*o+e.g,b:(a.b-e.b)*o+e.b};return _}function Dt(e,a,n){var o;return Math.round(e.h)>=60&&Math.round(e.h)<=240?o=n?Math.round(e.h)-$s*a:Math.round(e.h)+$s*a:o=n?Math.round(e.h)+$s*a:Math.round(e.h)-$s*a,o<0?o+=360:o>=360&&(o-=360),o}function Gc(e,a,n){if(e.h===0&&e.s===0)return e.s;var o;return n?o=e.s-ll*a:a===ml?o=e.s+ll:o=e.s+cl*a,o>1&&(o=1),n&&a===qc&&o>.1&&(o=.1),o<.06&&(o=.06),Number(o.toFixed(2))}function T_(e,a,n){var o;return n?o=e.v+Eh*a:o=e.v-Oh*a,o>1&&(o=1),Number(o.toFixed(2))}function Qi(e){for(var a=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=[],o=qn(e),_=qc;_>0;_-=1){var l=Ws(o),h=Vs(qn({h:Dt(l,_,!0),s:Gc(l,_,!0),v:T_(l,_,!0)}));n.push(h)}n.push(Vs(o));for(var k=1;k<=ml;k+=1){var f=Ws(o),b=Vs(qn({h:Dt(f,k),s:Gc(f,k),v:T_(f,k)}));n.push(b)}return a.theme==="dark"?Hs.map(function(v){var w=v.index,z=v.opacity,S=Vs(Ih(qn(a.backgroundColor||"#141414"),qn(n[w]),z*100));return S}):n}var Tt={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"},Ni={},ur={};Object.keys(Tt).forEach(function(e){Ni[e]=Qi(Tt[e]),Ni[e].primary=Ni[e][5],ur[e]=Qi(Tt[e],{theme:"dark",backgroundColor:"#141414"}),ur[e].primary=ur[e][5]});var Dh=Ni.red,Bs=Ni.volcano,Xg=Ni.gold,Th=Ni.orange,Ei=Ni.yellow,Xc=Ni.lime,Rh=Ni.green,Ah=Ni.cyan,Yc=Ni.blue,Nh=Ni.geekblue,R_=Ni.purple,Oi=Ni.magenta,Ji=Ni.grey,_n=Ni.grey,A_=e=>{const{controlHeight:a}=e;return{controlHeightSM:a*.75,controlHeightXS:a*.5,controlHeightLG:a*1.25}};function qs(e){const{sizeUnit:a,sizeStep:n}=e;return{sizeXXL:a*(n+8),sizeXL:a*(n+4),sizeLG:a*(n+2),sizeMD:a*(n+1),sizeMS:a*n,size:a*n,sizeSM:a*(n-1),sizeXS:a*(n-2),sizeXXS:a*(n-3)}}const Qc={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"};var N_=Object.assign(Object.assign({},Qc),{colorPrimary:"#1677ff",colorSuccess:"#52c41a",colorWarning:"#faad14",colorError:"#ff4d4f",colorInfo:"#1677ff",colorTextBase:"",colorBgBase:"",fontFamily:`-apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, +In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function la(e,a){return Oc(e)||Mr(e,a)||xc(e,a)||al()}function $g(){return!1}var Hg=!1;function il(){return Hg}var Wg=$g;if(!1)var Bg,Vg;function fi(e,a,n,o){var _=g.useContext(Ec),l=_.cache,h=[e].concat(xa(a)),k=Wg();return g.useMemo(function(){l.update(h,function(f){var b=f||[],v=la(b,2),w=v[0],z=w===void 0?0:w,S=v[1],E=S,O=E||n();return[z+1,O]})},[h.join("_")]),g.useEffect(function(){return function(){l.update(h,function(f){var b=f||[],v=la(b,2),w=v[0],z=w===void 0?0:w,S=v[1],E=z-1;return E===0?(o==null||o(S,!1),null):[z-1,S]})}},h),l.get(h)[1]}function wn(){return!!(typeof window!="undefined"&&window.document&&window.document.createElement)}function k_(e,a){if(!e)return!1;if(e.contains)return e.contains(a);for(var n=a;n;){if(n===e)return!0;n=n.parentNode}return!1}var p_="data-rc-order",dh="rc-util-key",f_=new Map;function y_(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},a=e.mark;return a?a.startsWith("data-")?a:"data-".concat(a):dh}function zt(e){if(e.attachTo)return e.attachTo;var a=document.querySelector("head");return a||document.body}function b_(e){return e==="queue"?"prependQueue":e?"prepend":"append"}function Ic(e){return Array.from((f_.get(e)||e).children).filter(function(a){return a.tagName==="STYLE"})}function gh(e){var a=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(!wn())return null;var n=a.csp,o=a.prepend,_=document.createElement("style");_.setAttribute(p_,b_(o)),n!=null&&n.nonce&&(_.nonce=n==null?void 0:n.nonce),_.innerHTML=e;var l=zt(a),h=l.firstChild;if(o){if(o==="queue"){var k=Ic(l).filter(function(f){return["prepend","prependQueue"].includes(f.getAttribute(p_))});if(k.length)return l.insertBefore(_,k[k.length-1].nextSibling),_}l.insertBefore(_,h)}else l.appendChild(_);return _}function kh(e){var a=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=zt(a);return Ic(n).find(function(o){return o.getAttribute(y_(a))===e})}function Ds(e){var a=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=kh(e,a);if(n){var o=zt(a);o.removeChild(n)}}function nl(e,a){var n=f_.get(e);if(!n||!k_(document,n)){var o=gh("",a),_=o.parentNode;f_.set(e,_),e.removeChild(o)}}function Dc(){f_.clear()}function Fr(e,a){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},o=zt(n);nl(o,n);var _=kh(a,n);if(_){var l,h;if((l=n.csp)!==null&&l!==void 0&&l.nonce&&_.nonce!==((h=n.csp)===null||h===void 0?void 0:h.nonce)){var k;_.nonce=(k=n.csp)===null||k===void 0?void 0:k.nonce}return _.innerHTML!==e&&(_.innerHTML=e),_}var f=gh(e,n);return f.setAttribute(y_(n),a),f}function v_(e){var a="";return Object.keys(e).forEach(function(n){var o=e[n];a+=n,o&&oi(o)==="object"?a+=v_(o):a+=o}),a}function Tc(e,a){return Hn("".concat(a,"_").concat(v_(e)))}var xt="layer-".concat(Date.now(),"-").concat(Math.random()).replace(/\./g,""),ph="903px";function fh(e,a){if(wn()){var n;Fr(e,xt);var o=document.createElement("div");o.style.position="fixed",o.style.left="0",o.style.top="0",a==null||a(o),document.body.appendChild(o);var _=getComputedStyle(o).width===ph;return(n=o.parentNode)===null||n===void 0||n.removeChild(o),Ds(xt),_}return!1}var Rc=void 0;function qg(){return Rc===void 0&&(Rc=fh("@layer ".concat(xt," { .").concat(xt," { width: ").concat(ph,"!important; } }"),function(e){e.className=xt})),Rc}var Ac={},Lr="css",Ur=new Map;function w_(e){Ur.set(e,(Ur.get(e)||0)+1)}function Vo(e){if(typeof document!="undefined"){var a=document.querySelectorAll("style[".concat(Rr,'="').concat(e,'"]'));a.forEach(function(n){if(n[Nr]===Is){var o;(o=n.parentNode)===null||o===void 0||o.removeChild(n)}})}}function Ts(e){Ur.set(e,(Ur.get(e)||0)-1);var a=Array.from(Ur.keys()),n=a.filter(function(o){var _=Ur.get(o)||0;return _<=0});n.length2&&arguments[2]!==void 0?arguments[2]:{},o=n.salt,_=o===void 0?"":o,l=n.override,h=l===void 0?Ac:l,k=n.formatToken,f=g.useMemo(function(){return Object.assign.apply(Object,[{}].concat(xa(a)))},[a]),b=g.useMemo(function(){return v_(f)},[f]),v=g.useMemo(function(){return v_(h)},[h]),w=fi("token",[_,e.id,b,v],function(){var z=e.getDerivativeToken(f),S=Ie(Ie({},z),h);k&&(S=k(S));var E=Tc(S,_);S._tokenKey=E,w_(E);var O="".concat(Lr,"-").concat(Hn(E));return S._hashId=O,[S,O]},function(z){Ts(z[0]._tokenKey)});return w}var Nc={animationIterationCount:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1},yh=Nc;function cf(e,a){var n=a.path,o=a.parentSelectors;devWarning(!1,"[Ant Design CSS-in-JS] ".concat(n?"Error in ".concat(n,": "):"").concat(e).concat(o.length?" Selector: ".concat(o.join(" | ")):""))}var j_=function(a,n,o){if(a==="content"){var _=/(attr|counters?|url|(((repeating-)?(linear|radial))|conic)-gradient)\(|(no-)?(open|close)-quote/,l=["normal","none","initial","inherit","unset"];(typeof n!="string"||l.indexOf(n)===-1&&!_.test(n)&&(n.charAt(0)!==n.charAt(n.length-1)||n.charAt(0)!=='"'&&n.charAt(0)!=="'"))&&lintWarning("You seem to be using a value for 'content' without quotes, try replacing it with `content: '\"".concat(n,"\"'`."),o)}},ol=null,Rs=function(a,n,o){a==="animation"&&o.hashId&&n!=="none"&&lintWarning("You seem to be using hashed animation '".concat(n,"', in which case 'animationName' with Keyframe as value is recommended."),o)},Mc=null;function Fc(e){var a,n=((a=e.match(/:not\(([^)]*)\)/))===null||a===void 0?void 0:a[1])||"",o=n.split(/(\[[^[]*])|(?=[.#])/).filter(function(_){return _});return o.length>1}function z_(e){return e.parentSelectors.reduce(function(a,n){return a?n.includes("&")?n.replace(/&/g,a):"".concat(a," ").concat(n):n},"")}var Ct=function(a,n,o){var _=z_(o),l=_.match(/:not\([^)]*\)/g)||[];l.length>0&&l.some(Fc)&&lintWarning("Concat ':not' selector not support in legacy browsers.",o)},zi=null,bi=function(a,n,o){switch(a){case"marginLeft":case"marginRight":case"paddingLeft":case"paddingRight":case"left":case"right":case"borderLeft":case"borderLeftWidth":case"borderLeftStyle":case"borderLeftColor":case"borderRight":case"borderRightWidth":case"borderRightStyle":case"borderRightColor":case"borderTopLeftRadius":case"borderTopRightRadius":case"borderBottomLeftRadius":case"borderBottomRightRadius":lintWarning("You seem to be using non-logical property '".concat(a,"' which is not compatible with RTL mode. Please use logical properties and values instead. For more information: https://developer.mozilla.org/en-US/docs/Web/CSS/CSS_Logical_Properties."),o);return;case"margin":case"padding":case"borderWidth":case"borderStyle":if(typeof n=="string"){var _=n.split(" ").map(function(k){return k.trim()});_.length===4&&_[1]!==_[3]&&lintWarning("You seem to be using '".concat(a,"' property with different left ").concat(a," and right ").concat(a,", which is not compatible with RTL mode. Please use logical properties and values instead. For more information: https://developer.mozilla.org/en-US/docs/Web/CSS/CSS_Logical_Properties."),o)}return;case"clear":case"textAlign":(n==="left"||n==="right")&&lintWarning("You seem to be using non-logical value '".concat(n,"' of ").concat(a,", which is not compatible with RTL mode. Please use logical properties and values instead. For more information: https://developer.mozilla.org/en-US/docs/Web/CSS/CSS_Logical_Properties."),o);return;case"borderRadius":if(typeof n=="string"){var l=n.split("/").map(function(k){return k.trim()}),h=l.reduce(function(k,f){if(k)return k;var b=f.split(" ").map(function(v){return v.trim()});return b.length>=2&&b[0]!==b[1]||b.length===3&&b[1]!==b[2]||b.length===4&&b[2]!==b[3]?!0:k},!1);h&&lintWarning("You seem to be using non-logical value '".concat(n,"' of ").concat(a,", which is not compatible with RTL mode. Please use logical properties and values instead. For more information: https://developer.mozilla.org/en-US/docs/Web/CSS/CSS_Logical_Properties."),o)}return;default:}},St=null,jn=function(a,n,o){o.parentSelectors.some(function(_){var l=_.split(",");return l.some(function(h){return h.split("&").length>2})})&&lintWarning("Should not use more than one `&` in a selector.",o)},Wn=null,$r=wn(),x_="_skip_check_";function zn(e){var a=Mo(Fo(e),ms);return a.replace(/\{%%%\:[^;];}/g,";")}function rl(e){return oi(e)==="object"&&e&&x_ in e}function bh(e,a,n){if(!a)return e;var o=".".concat(a),_=n==="low"?":where(".concat(o,")"):o,l=e.split(",").map(function(h){var k,f=h.trim().split(/\s+/),b=f[0]||"",v=((k=b.match(/^\w+/))===null||k===void 0?void 0:k[0])||"";return b="".concat(v).concat(_).concat(b.slice(v.length)),[b].concat(xa(f.slice(1))).join(" ")});return l.join(",")}var vh=function e(a){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},o=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{root:!0,parentSelectors:[]},_=o.root,l=o.injectHash,h=o.parentSelectors,k=n.hashId,f=n.layer,b=n.path,v=n.hashPriority,w=n.transformers,z=w===void 0?[]:w,S=n.linters,E=S===void 0?[]:S,O="",P={};function T(ae){var ie=ae.getName(k);if(!P[ie]){var se=e(ae.style,n,{root:!1,parentSelectors:h}),he=la(se,1),ue=he[0];P[ie]="@keyframes ".concat(ae.getName(k)).concat(ue)}}function A(ae){var ie=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[];return ae.forEach(function(se){Array.isArray(se)?A(se,ie):se&&ie.push(se)}),ie}var L=A(Array.isArray(a)?a:[a]);if(L.forEach(function(ae){var ie=typeof ae=="string"&&!_?{}:ae;if(typeof ie=="string")O+="".concat(ie,` +`);else if(ie._keyframe)T(ie);else{var se=z.reduce(function(he,ue){var ze;return(ue==null||(ze=ue.visit)===null||ze===void 0?void 0:ze.call(ue,he))||he},ie);Object.keys(se).forEach(function(he){var ue=se[he];if(oi(ue)==="object"&&ue&&(he!=="animationName"||!ue._keyframe)&&!rl(ue)){var ze=!1,te=he.trim(),re=!1;(_||l)&&k?te.startsWith("@")?ze=!0:te=bh(he,k,v):_&&!k&&(te==="&"||te==="")&&(te="",re=!0);var le=e(ue,n,{root:re,injectHash:ze,parentSelectors:[].concat(xa(h),[te])}),be=la(le,2),Be=be[0],He=be[1];P=Ie(Ie({},P),He),O+="".concat(te).concat(Be)}else{var ea,ca=(ea=ue==null?void 0:ue.value)!==null&&ea!==void 0?ea:ue,Sa=he.replace(/[A-Z]/g,function(Ge){return"-".concat(Ge.toLowerCase())}),ya=ca;!yh[he]&&typeof ya=="number"&&ya!==0&&(ya="".concat(ya,"px")),he==="animationName"&&ue!==null&&ue!==void 0&&ue._keyframe&&(T(ue),ya=ue.getName(k)),O+="".concat(Sa,":").concat(ya,";")}})}}),!_)O="{".concat(O,"}");else if(f&&qg()){var H=f.split(","),K=H[H.length-1].trim();O="@layer ".concat(K," {").concat(O,"}"),H.length>1&&(O="@layer ".concat(f,"{%%%:%}").concat(O))}return[O,P]};function tl(e,a){return Hn("".concat(e.join("%")).concat(a))}function wh(){return null}function yo(e,a){var n=e.token,o=e.path,_=e.hashId,l=e.layer,h=e.nonce,k=g.useContext(Ec),f=k.autoClear,b=k.mock,v=k.defaultCache,w=k.hashPriority,z=k.container,S=k.ssrInline,E=k.transformers,O=k.linters,P=n._tokenKey,T=[P].concat(xa(o)),A=$r,L=fi("style",T,function(){var se=a(),he=vh(se,{hashId:_,hashPriority:w,layer:l,path:o.join("-"),transformers:E,linters:O}),ue=la(he,2),ze=ue[0],te=ue[1],re=zn(ze),le=tl(T,re);if(A){var be={mark:Ar,prepend:"queue",attachTo:z},Be=typeof h=="function"?h():h;Be&&(be.csp={nonce:Be});var He=Fr(re,le,be);He[Nr]=Is,He.setAttribute(Rr,P),Object.keys(te).forEach(function(ea){Fr(zn(te[ea]),"_effect-".concat(ea),be)})}return[re,P,le]},function(se,he){var ue=la(se,3),ze=ue[2];(he||f)&&$r&&Ds(ze,{mark:Ar})}),H=la(L,3),K=H[0],ae=H[1],ie=H[2];return function(se){var he;if(!S||A||!v)he=g.createElement(wh,null);else{var ue;he=g.createElement("style",gi({},(ue={},D(ue,Rr,ae),D(ue,Ar,ie),ue),{dangerouslySetInnerHTML:{__html:K}}))}return g.createElement(g.Fragment,null,he,se)}}function Lc(e){var a=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,n=Array.from(e.cache.keys()).filter(function(_){return _.startsWith("style%")}),o="";return n.forEach(function(_){var l=_slicedToArray(e.cache.get(_)[1],3),h=l[0],k=l[1],f=l[2];o+=a?h:"")}),o}var Uc=function(){function e(a,n){mn(this,e),D(this,"name",void 0),D(this,"style",void 0),D(this,"_keyframe",!0),this.name=a,this.style=n}return M(e,[{key:"getName",value:function(){var n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"";return n?"".concat(n,"-").concat(this.name):this.name}}]),e}(),ui=Uc;function Gg(e,a){if(e.length!==a.length)return!1;for(var n=0;n1&&arguments[1]!==void 0?arguments[1]:!1,h={map:this.cache};return n.forEach(function(k){if(!h)h=void 0;else{var f,b;h=(f=h)===null||f===void 0||(b=f.map)===null||b===void 0?void 0:b.get(k)}}),(o=h)!==null&&o!==void 0&&o.value&&l&&(h.value[1]=this.cacheCallTimes++),(_=h)===null||_===void 0?void 0:_.value}},{key:"get",value:function(n){var o;return(o=this.internalGet(n,!0))===null||o===void 0?void 0:o[0]}},{key:"has",value:function(n){return!!this.internalGet(n)}},{key:"set",value:function(n,o){var _=this;if(!this.has(n)){if(this.size()+1>e.MAX_CACHE_SIZE+e.MAX_CACHE_OFFSET){var l=this.keys.reduce(function(b,v){var w=la(b,2),z=w[1];return _.internalGet(v)[1]0,void 0),Pt+=1}return M(e,[{key:"getDerivativeToken",value:function(n){return this.derivatives.reduce(function(o,_){return _(n,o)},void 0)}}]),e}(),S_=new qo;function As(e){var a=Array.isArray(e)?e:[e];return S_.has(a)||S_.set(a,new C_(a)),S_.get(a)}function io(e){if(typeof e=="number")return[[e],!1];var a=String(e).trim(),n=a.match(/(.*)(!important)/),o=(n?n[1]:a).trim().split(/\s+/),_="",l=0;return[o.reduce(function(h,k){return k.includes("(")?(_+=k,l+=k.split("(").length-1):k.includes(")")?(_+=k,l-=k.split(")").length-1,l===0&&(h.push(_),_="")):l>0?_+=k:h.push(k),h},[]),!!n]}function tn(e){return e.notSplit=!0,e}var Et={inset:["top","right","bottom","left"],insetBlock:["top","bottom"],insetBlockStart:["top"],insetBlockEnd:["bottom"],insetInline:["left","right"],insetInlineStart:["left"],insetInlineEnd:["right"],marginBlock:["marginTop","marginBottom"],marginBlockStart:["marginTop"],marginBlockEnd:["marginBottom"],marginInline:["marginLeft","marginRight"],marginInlineStart:["marginLeft"],marginInlineEnd:["marginRight"],paddingBlock:["paddingTop","paddingBottom"],paddingBlockStart:["paddingTop"],paddingBlockEnd:["paddingBottom"],paddingInline:["paddingLeft","paddingRight"],paddingInlineStart:["paddingLeft"],paddingInlineEnd:["paddingRight"],borderBlock:tn(["borderTop","borderBottom"]),borderBlockStart:tn(["borderTop"]),borderBlockEnd:tn(["borderBottom"]),borderInline:tn(["borderLeft","borderRight"]),borderInlineStart:tn(["borderLeft"]),borderInlineEnd:tn(["borderRight"]),borderBlockWidth:["borderTopWidth","borderBottomWidth"],borderBlockStartWidth:["borderTopWidth"],borderBlockEndWidth:["borderBottomWidth"],borderInlineWidth:["borderLeftWidth","borderRightWidth"],borderInlineStartWidth:["borderLeftWidth"],borderInlineEndWidth:["borderRightWidth"],borderBlockStyle:["borderTopStyle","borderBottomStyle"],borderBlockStartStyle:["borderTopStyle"],borderBlockEndStyle:["borderBottomStyle"],borderInlineStyle:["borderLeftStyle","borderRightStyle"],borderInlineStartStyle:["borderLeftStyle"],borderInlineEndStyle:["borderRightStyle"],borderBlockColor:["borderTopColor","borderBottomColor"],borderBlockStartColor:["borderTopColor"],borderBlockEndColor:["borderBottomColor"],borderInlineColor:["borderLeftColor","borderRightColor"],borderInlineStartColor:["borderLeftColor"],borderInlineEndColor:["borderRightColor"],borderStartStartRadius:["borderTopLeftRadius"],borderStartEndRadius:["borderTopRightRadius"],borderEndStartRadius:["borderBottomLeftRadius"],borderEndEndRadius:["borderBottomRightRadius"]};function no(e,a){var n=e;return a&&(n="".concat(n," !important")),{_skip_check_:!0,value:n}}var Hr={visit:function(a){var n={};return Object.keys(a).forEach(function(o){var _=a[o],l=Et[o];if(l&&(typeof _=="number"||typeof _=="string")){var h=io(_),k=la(h,2),f=k[0],b=k[1];l.length&&l.notSplit?l.forEach(function(v){n[v]=no(_,b)}):l.length===1?n[l[0]]=no(_,b):l.length===2?l.forEach(function(v,w){var z;n[v]=no((z=f[w])!==null&&z!==void 0?z:f[0],b)}):l.length===4?l.forEach(function(v,w){var z,S;n[v]=no((z=(S=f[w])!==null&&S!==void 0?S:f[w-2])!==null&&z!==void 0?z:f[0],b)}):n[o]=_}else n[o]=_}),n}},P_=null,_l=/url\([^)]+\)|var\([^)]+\)|(\d*\.?\d+)px/g;function $c(e,a){var n=Math.pow(10,a+1),o=Math.floor(e*n);return Math.round(o/10)*10/n}var jh=function(){var a=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},n=a.rootValue,o=n===void 0?16:n,_=a.precision,l=_===void 0?5:_,h=a.mediaQuery,k=h===void 0?!1:h,f=function(w,z){if(!z)return w;var S=parseFloat(z);if(S<=1)return w;var E=$c(S/o,l);return"".concat(E,"rem")},b=function(w){var z=_objectSpread({},w);return Object.entries(w).forEach(function(S){var E=_slicedToArray(S,2),O=E[0],P=E[1];if(typeof P=="string"&&P.includes("px")){var T=P.replace(_l,f);z[O]=T}!unitless[O]&&typeof P=="number"&&P!==0&&(z[O]="".concat(P,"px").replace(_l,f));var A=O.trim();if(A.startsWith("@")&&A.includes("px")&&k){var L=O.replace(_l,f);z[L]=z[O],delete z[O]}}),z};return{visit:b}},oo=null,Bn=["children","prefix","speedy","getStyleManager","container","nonce","insertionPoint","stylisPlugins"];function vi(e,a){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);a&&(o=o.filter(function(_){return Object.getOwnPropertyDescriptor(e,_).enumerable})),n.push.apply(n,o)}return n}function ro(e){for(var a=1;a1)&&(e=1),e}function E_(e){return e<=1?"".concat(Number(e)*100,"%"):e}function It(e){return e.length===1?"0"+e:String(e)}function bo(e,a,n){return{r:Gi(e,255)*255,g:Gi(a,255)*255,b:Gi(n,255)*255}}function Ms(e,a,n){e=Gi(e,255),a=Gi(a,255),n=Gi(n,255);var o=Math.max(e,a,n),_=Math.min(e,a,n),l=0,h=0,k=(o+_)/2;if(o===_)h=0,l=0;else{var f=o-_;switch(h=k>.5?f/(2-o-_):f/(o+_),o){case e:l=(a-n)/f+(a1&&(n-=1),n<1/6?e+(a-e)*(6*n):n<1/2?a:n<2/3?e+(a-e)*(2/3-n)*6:e}function I_(e,a,n){var o,_,l;if(e=Gi(e,360),a=Gi(a,100),n=Gi(n,100),a===0)_=n,l=n,o=n;else{var h=n<.5?n*(1+a):n+a-n*a,k=2*n-h;o=O_(k,h,e+1/3),_=O_(k,h,e),l=O_(k,h,e-1/3)}return{r:o*255,g:_*255,b:l*255}}function Fs(e,a,n){e=Gi(e,255),a=Gi(a,255),n=Gi(n,255);var o=Math.max(e,a,n),_=Math.min(e,a,n),l=0,h=o,k=o-_,f=o===0?0:k/o;if(o===_)l=0;else{switch(o){case e:l=(a-n)/k+(a>16,g:(e&65280)>>8,b:e&255}}var vo={aliceblue:"#f0f8ff",antiquewhite:"#faebd7",aqua:"#00ffff",aquamarine:"#7fffd4",azure:"#f0ffff",beige:"#f5f5dc",bisque:"#ffe4c4",black:"#000000",blanchedalmond:"#ffebcd",blue:"#0000ff",blueviolet:"#8a2be2",brown:"#a52a2a",burlywood:"#deb887",cadetblue:"#5f9ea0",chartreuse:"#7fff00",chocolate:"#d2691e",coral:"#ff7f50",cornflowerblue:"#6495ed",cornsilk:"#fff8dc",crimson:"#dc143c",cyan:"#00ffff",darkblue:"#00008b",darkcyan:"#008b8b",darkgoldenrod:"#b8860b",darkgray:"#a9a9a9",darkgreen:"#006400",darkgrey:"#a9a9a9",darkkhaki:"#bdb76b",darkmagenta:"#8b008b",darkolivegreen:"#556b2f",darkorange:"#ff8c00",darkorchid:"#9932cc",darkred:"#8b0000",darksalmon:"#e9967a",darkseagreen:"#8fbc8f",darkslateblue:"#483d8b",darkslategray:"#2f4f4f",darkslategrey:"#2f4f4f",darkturquoise:"#00ced1",darkviolet:"#9400d3",deeppink:"#ff1493",deepskyblue:"#00bfff",dimgray:"#696969",dimgrey:"#696969",dodgerblue:"#1e90ff",firebrick:"#b22222",floralwhite:"#fffaf0",forestgreen:"#228b22",fuchsia:"#ff00ff",gainsboro:"#dcdcdc",ghostwhite:"#f8f8ff",goldenrod:"#daa520",gold:"#ffd700",gray:"#808080",green:"#008000",greenyellow:"#adff2f",grey:"#808080",honeydew:"#f0fff0",hotpink:"#ff69b4",indianred:"#cd5c5c",indigo:"#4b0082",ivory:"#fffff0",khaki:"#f0e68c",lavenderblush:"#fff0f5",lavender:"#e6e6fa",lawngreen:"#7cfc00",lemonchiffon:"#fffacd",lightblue:"#add8e6",lightcoral:"#f08080",lightcyan:"#e0ffff",lightgoldenrodyellow:"#fafad2",lightgray:"#d3d3d3",lightgreen:"#90ee90",lightgrey:"#d3d3d3",lightpink:"#ffb6c1",lightsalmon:"#ffa07a",lightseagreen:"#20b2aa",lightskyblue:"#87cefa",lightslategray:"#778899",lightslategrey:"#778899",lightsteelblue:"#b0c4de",lightyellow:"#ffffe0",lime:"#00ff00",limegreen:"#32cd32",linen:"#faf0e6",magenta:"#ff00ff",maroon:"#800000",mediumaquamarine:"#66cdaa",mediumblue:"#0000cd",mediumorchid:"#ba55d3",mediumpurple:"#9370db",mediumseagreen:"#3cb371",mediumslateblue:"#7b68ee",mediumspringgreen:"#00fa9a",mediumturquoise:"#48d1cc",mediumvioletred:"#c71585",midnightblue:"#191970",mintcream:"#f5fffa",mistyrose:"#ffe4e1",moccasin:"#ffe4b5",navajowhite:"#ffdead",navy:"#000080",oldlace:"#fdf5e6",olive:"#808000",olivedrab:"#6b8e23",orange:"#ffa500",orangered:"#ff4500",orchid:"#da70d6",palegoldenrod:"#eee8aa",palegreen:"#98fb98",paleturquoise:"#afeeee",palevioletred:"#db7093",papayawhip:"#ffefd5",peachpuff:"#ffdab9",peru:"#cd853f",pink:"#ffc0cb",plum:"#dda0dd",powderblue:"#b0e0e6",purple:"#800080",rebeccapurple:"#663399",red:"#ff0000",rosybrown:"#bc8f8f",royalblue:"#4169e1",saddlebrown:"#8b4513",salmon:"#fa8072",sandybrown:"#f4a460",seagreen:"#2e8b57",seashell:"#fff5ee",sienna:"#a0522d",silver:"#c0c0c0",skyblue:"#87ceeb",slateblue:"#6a5acd",slategray:"#708090",slategrey:"#708090",snow:"#fffafa",springgreen:"#00ff7f",steelblue:"#4682b4",tan:"#d2b48c",teal:"#008080",thistle:"#d8bfd8",tomato:"#ff6347",turquoise:"#40e0d0",violet:"#ee82ee",wheat:"#f5deb3",white:"#ffffff",whitesmoke:"#f5f5f5",yellow:"#ffff00",yellowgreen:"#9acd32"};function qn(e){var a={r:0,g:0,b:0},n=1,o=null,_=null,l=null,h=!1,k=!1;return typeof e=="string"&&(e=ul(e)),typeof e=="object"&&(Xo(e.r)&&Xo(e.g)&&Xo(e.b)?(a=bo(e.r,e.g,e.b),h=!0,k=String(e.r).substr(-1)==="%"?"prgb":"rgb"):Xo(e.h)&&Xo(e.s)&&Xo(e.v)?(o=E_(e.s),_=E_(e.v),a=Wc(e.h,o,_),h=!0,k="hsv"):Xo(e.h)&&Xo(e.s)&&Xo(e.l)&&(o=E_(e.s),l=E_(e.l),a=I_(e.h,o,l),h=!0,k="hsl"),Object.prototype.hasOwnProperty.call(e,"a")&&(n=e.a)),n=Ot(n),{ok:h,format:e.format||k,r:Math.min(255,Math.max(a.r,0)),g:Math.min(255,Math.max(a.g,0)),b:Math.min(255,Math.max(a.b,0)),a:n}}var Vc="[-\\+]?\\d+%?",Ph="[-\\+]?\\d*\\.\\d+%?",gn="(?:".concat(Ph,")|(?:").concat(Vc,")"),Go="[\\s|\\(]+(".concat(gn,")[,|\\s]+(").concat(gn,")[,|\\s]+(").concat(gn,")\\s*\\)?"),D_="[\\s|\\(]+(".concat(gn,")[,|\\s]+(").concat(gn,")[,|\\s]+(").concat(gn,")[,|\\s]+(").concat(gn,")\\s*\\)?"),to={CSS_UNIT:new RegExp(gn),rgb:new RegExp("rgb"+Go),rgba:new RegExp("rgba"+D_),hsl:new RegExp("hsl"+Go),hsla:new RegExp("hsla"+D_),hsv:new RegExp("hsv"+Go),hsva:new RegExp("hsva"+D_),hex3:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex6:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/,hex4:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex8:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/};function ul(e){if(e=e.trim().toLowerCase(),e.length===0)return!1;var a=!1;if(vo[e])e=vo[e],a=!0;else if(e==="transparent")return{r:0,g:0,b:0,a:0,format:"name"};var n=to.rgb.exec(e);return n?{r:n[1],g:n[2],b:n[3]}:(n=to.rgba.exec(e),n?{r:n[1],g:n[2],b:n[3],a:n[4]}:(n=to.hsl.exec(e),n?{h:n[1],s:n[2],l:n[3]}:(n=to.hsla.exec(e),n?{h:n[1],s:n[2],l:n[3],a:n[4]}:(n=to.hsv.exec(e),n?{h:n[1],s:n[2],v:n[3]}:(n=to.hsva.exec(e),n?{h:n[1],s:n[2],v:n[3],a:n[4]}:(n=to.hex8.exec(e),n?{r:xn(n[1]),g:xn(n[2]),b:xn(n[3]),a:Wr(n[4]),format:a?"name":"hex8"}:(n=to.hex6.exec(e),n?{r:xn(n[1]),g:xn(n[2]),b:xn(n[3]),format:a?"name":"hex"}:(n=to.hex4.exec(e),n?{r:xn(n[1]+n[1]),g:xn(n[2]+n[2]),b:xn(n[3]+n[3]),a:Wr(n[4]+n[4]),format:a?"name":"hex8"}:(n=to.hex3.exec(e),n?{r:xn(n[1]+n[1]),g:xn(n[2]+n[2]),b:xn(n[3]+n[3]),format:a?"name":"hex"}:!1)))))))))}function Xo(e){return Boolean(to.CSS_UNIT.exec(String(e)))}var $s=2,ll=.16,cl=.05,Eh=.05,Oh=.15,qc=5,ml=4,Hs=[{index:7,opacity:.15},{index:6,opacity:.25},{index:5,opacity:.3},{index:5,opacity:.45},{index:5,opacity:.65},{index:5,opacity:.85},{index:4,opacity:.9},{index:3,opacity:.95},{index:2,opacity:.97},{index:1,opacity:.98}];function Ws(e){var a=e.r,n=e.g,o=e.b,_=Fs(a,n,o);return{h:_.h*360,s:_.s,v:_.v}}function Bs(e){var a=e.r,n=e.g,o=e.b;return"#".concat(Ls(a,n,o,!1))}function Ih(e,a,n){var o=n/100,_={r:(a.r-e.r)*o+e.r,g:(a.g-e.g)*o+e.g,b:(a.b-e.b)*o+e.b};return _}function Dt(e,a,n){var o;return Math.round(e.h)>=60&&Math.round(e.h)<=240?o=n?Math.round(e.h)-$s*a:Math.round(e.h)+$s*a:o=n?Math.round(e.h)+$s*a:Math.round(e.h)-$s*a,o<0?o+=360:o>=360&&(o-=360),o}function Gc(e,a,n){if(e.h===0&&e.s===0)return e.s;var o;return n?o=e.s-ll*a:a===ml?o=e.s+ll:o=e.s+cl*a,o>1&&(o=1),n&&a===qc&&o>.1&&(o=.1),o<.06&&(o=.06),Number(o.toFixed(2))}function T_(e,a,n){var o;return n?o=e.v+Eh*a:o=e.v-Oh*a,o>1&&(o=1),Number(o.toFixed(2))}function Qi(e){for(var a=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=[],o=qn(e),_=qc;_>0;_-=1){var l=Ws(o),h=Bs(qn({h:Dt(l,_,!0),s:Gc(l,_,!0),v:T_(l,_,!0)}));n.push(h)}n.push(Bs(o));for(var k=1;k<=ml;k+=1){var f=Ws(o),b=Bs(qn({h:Dt(f,k),s:Gc(f,k),v:T_(f,k)}));n.push(b)}return a.theme==="dark"?Hs.map(function(v){var w=v.index,z=v.opacity,S=Bs(Ih(qn(a.backgroundColor||"#141414"),qn(n[w]),z*100));return S}):n}var Tt={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"},Ni={},ur={};Object.keys(Tt).forEach(function(e){Ni[e]=Qi(Tt[e]),Ni[e].primary=Ni[e][5],ur[e]=Qi(Tt[e],{theme:"dark",backgroundColor:"#141414"}),ur[e].primary=ur[e][5]});var Dh=Ni.red,Vs=Ni.volcano,Xg=Ni.gold,Th=Ni.orange,Ei=Ni.yellow,Xc=Ni.lime,Rh=Ni.green,Ah=Ni.cyan,Yc=Ni.blue,Nh=Ni.geekblue,R_=Ni.purple,Oi=Ni.magenta,Ji=Ni.grey,_n=Ni.grey,A_=e=>{const{controlHeight:a}=e;return{controlHeightSM:a*.75,controlHeightXS:a*.5,controlHeightLG:a*1.25}};function qs(e){const{sizeUnit:a,sizeStep:n}=e;return{sizeXXL:a*(n+8),sizeXL:a*(n+4),sizeLG:a*(n+2),sizeMD:a*(n+1),sizeMS:a*n,size:a*n,sizeSM:a*(n-1),sizeXS:a*(n-2),sizeXXS:a*(n-3)}}const Qc={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"};var N_=Object.assign(Object.assign({},Qc),{colorPrimary:"#1677ff",colorSuccess:"#52c41a",colorWarning:"#faad14",colorError:"#ff4d4f",colorInfo:"#1677ff",colorTextBase:"",colorBgBase:"",fontFamily:`-apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, 'Noto Sans', sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol', -'Noto Color Emoji'`,fontFamilyCode:"'SFMono-Regular', Consolas, 'Liberation Mono', Menlo, Courier, monospace",fontSize:14,lineWidth:1,lineType:"solid",motionUnit:.1,motionBase:0,motionEaseOutCirc:"cubic-bezier(0.08, 0.82, 0.17, 1)",motionEaseInOutCirc:"cubic-bezier(0.78, 0.14, 0.15, 0.86)",motionEaseOut:"cubic-bezier(0.215, 0.61, 0.355, 1)",motionEaseInOut:"cubic-bezier(0.645, 0.045, 0.355, 1)",motionEaseOutBack:"cubic-bezier(0.12, 0.4, 0.29, 1.46)",motionEaseInBack:"cubic-bezier(0.71, -0.46, 0.88, 0.6)",motionEaseInQuint:"cubic-bezier(0.755, 0.05, 0.855, 0.06)",motionEaseOutQuint:"cubic-bezier(0.23, 1, 0.32, 1)",borderRadius:6,sizeUnit:4,sizeStep:4,sizePopupArrow:16,controlHeight:32,zIndexBase:0,zIndexPopupBase:1e3,opacityImage:1,wireframe:!1}),Xi=function(){function e(a,n){a===void 0&&(a=""),n===void 0&&(n={});var o;if(a instanceof e)return a;typeof a=="number"&&(a=Sh(a)),this.originalInput=a;var _=qn(a);this.originalInput=a,this.r=_.r,this.g=_.g,this.b=_.b,this.a=_.a,this.roundA=Math.round(100*this.a)/100,this.format=(o=n.format)!==null&&o!==void 0?o:_.format,this.gradientType=n.gradientType,this.r<1&&(this.r=Math.round(this.r)),this.g<1&&(this.g=Math.round(this.g)),this.b<1&&(this.b=Math.round(this.b)),this.isValid=_.ok}return e.prototype.isDark=function(){return this.getBrightness()<128},e.prototype.isLight=function(){return!this.isDark()},e.prototype.getBrightness=function(){var a=this.toRgb();return(a.r*299+a.g*587+a.b*114)/1e3},e.prototype.getLuminance=function(){var a=this.toRgb(),n,o,_,l=a.r/255,h=a.g/255,k=a.b/255;return l<=.03928?n=l/12.92:n=Math.pow((l+.055)/1.055,2.4),h<=.03928?o=h/12.92:o=Math.pow((h+.055)/1.055,2.4),k<=.03928?_=k/12.92:_=Math.pow((k+.055)/1.055,2.4),.2126*n+.7152*o+.0722*_},e.prototype.getAlpha=function(){return this.a},e.prototype.setAlpha=function(a){return this.a=Ot(a),this.roundA=Math.round(100*this.a)/100,this},e.prototype.isMonochrome=function(){var a=this.toHsl().s;return a===0},e.prototype.toHsv=function(){var a=Fs(this.r,this.g,this.b);return{h:a.h*360,s:a.s,v:a.v,a:this.a}},e.prototype.toHsvString=function(){var a=Fs(this.r,this.g,this.b),n=Math.round(a.h*360),o=Math.round(a.s*100),_=Math.round(a.v*100);return this.a===1?"hsv(".concat(n,", ").concat(o,"%, ").concat(_,"%)"):"hsva(".concat(n,", ").concat(o,"%, ").concat(_,"%, ").concat(this.roundA,")")},e.prototype.toHsl=function(){var a=Ms(this.r,this.g,this.b);return{h:a.h*360,s:a.s,l:a.l,a:this.a}},e.prototype.toHslString=function(){var a=Ms(this.r,this.g,this.b),n=Math.round(a.h*360),o=Math.round(a.s*100),_=Math.round(a.l*100);return this.a===1?"hsl(".concat(n,", ").concat(o,"%, ").concat(_,"%)"):"hsla(".concat(n,", ").concat(o,"%, ").concat(_,"%, ").concat(this.roundA,")")},e.prototype.toHex=function(a){return a===void 0&&(a=!1),Ls(this.r,this.g,this.b,a)},e.prototype.toHexString=function(a){return a===void 0&&(a=!1),"#"+this.toHex(a)},e.prototype.toHex8=function(a){return a===void 0&&(a=!1),Vc(this.r,this.g,this.b,this.a,a)},e.prototype.toHex8String=function(a){return a===void 0&&(a=!1),"#"+this.toHex8(a)},e.prototype.toHexShortString=function(a){return a===void 0&&(a=!1),this.a===1?this.toHexString(a):this.toHex8String(a)},e.prototype.toRgb=function(){return{r:Math.round(this.r),g:Math.round(this.g),b:Math.round(this.b),a:this.a}},e.prototype.toRgbString=function(){var a=Math.round(this.r),n=Math.round(this.g),o=Math.round(this.b);return this.a===1?"rgb(".concat(a,", ").concat(n,", ").concat(o,")"):"rgba(".concat(a,", ").concat(n,", ").concat(o,", ").concat(this.roundA,")")},e.prototype.toPercentageRgb=function(){var a=function(n){return"".concat(Math.round(Gi(n,255)*100),"%")};return{r:a(this.r),g:a(this.g),b:a(this.b),a:this.a}},e.prototype.toPercentageRgbString=function(){var a=function(n){return Math.round(Gi(n,255)*100)};return this.a===1?"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,")")},e.prototype.toName=function(){if(this.a===0)return"transparent";if(this.a<1)return!1;for(var a="#"+Ls(this.r,this.g,this.b,!1),n=0,o=Object.entries(vo);n=0,l=!n&&_&&(a.startsWith("hex")||a==="name");return l?a==="name"&&this.a===0?this.toName():this.toRgbString():(a==="rgb"&&(o=this.toRgbString()),a==="prgb"&&(o=this.toPercentageRgbString()),(a==="hex"||a==="hex6")&&(o=this.toHexString()),a==="hex3"&&(o=this.toHexString(!0)),a==="hex4"&&(o=this.toHex8String(!0)),a==="hex8"&&(o=this.toHex8String()),a==="name"&&(o=this.toName()),a==="hsl"&&(o=this.toHslString()),a==="hsv"&&(o=this.toHsvString()),o||this.toHexString())},e.prototype.toNumber=function(){return(Math.round(this.r)<<16)+(Math.round(this.g)<<8)+Math.round(this.b)},e.prototype.clone=function(){return new e(this.toString())},e.prototype.lighten=function(a){a===void 0&&(a=10);var n=this.toHsl();return n.l+=a/100,n.l=Ns(n.l),new e(n)},e.prototype.brighten=function(a){a===void 0&&(a=10);var n=this.toRgb();return n.r=Math.max(0,Math.min(255,n.r-Math.round(255*-(a/100)))),n.g=Math.max(0,Math.min(255,n.g-Math.round(255*-(a/100)))),n.b=Math.max(0,Math.min(255,n.b-Math.round(255*-(a/100)))),new e(n)},e.prototype.darken=function(a){a===void 0&&(a=10);var n=this.toHsl();return n.l-=a/100,n.l=Ns(n.l),new e(n)},e.prototype.tint=function(a){return a===void 0&&(a=10),this.mix("white",a)},e.prototype.shade=function(a){return a===void 0&&(a=10),this.mix("black",a)},e.prototype.desaturate=function(a){a===void 0&&(a=10);var n=this.toHsl();return n.s-=a/100,n.s=Ns(n.s),new e(n)},e.prototype.saturate=function(a){a===void 0&&(a=10);var n=this.toHsl();return n.s+=a/100,n.s=Ns(n.s),new e(n)},e.prototype.greyscale=function(){return this.desaturate(100)},e.prototype.spin=function(a){var n=this.toHsl(),o=(n.h+a)%360;return n.h=o<0?360+o:o,new e(n)},e.prototype.mix=function(a,n){n===void 0&&(n=50);var o=this.toRgb(),_=new e(a).toRgb(),l=n/100,h={r:(_.r-o.r)*l+o.r,g:(_.g-o.g)*l+o.g,b:(_.b-o.b)*l+o.b,a:(_.a-o.a)*l+o.a};return new e(h)},e.prototype.analogous=function(a,n){a===void 0&&(a=6),n===void 0&&(n=30);var o=this.toHsl(),_=360/n,l=[this];for(o.h=(o.h-(_*a>>1)+720)%360;--a;)o.h=(o.h+_)%360,l.push(new e(o));return l},e.prototype.complement=function(){var a=this.toHsl();return a.h=(a.h+180)%360,new e(a)},e.prototype.monochromatic=function(a){a===void 0&&(a=6);for(var n=this.toHsv(),o=n.h,_=n.s,l=n.v,h=[],k=1/a;a--;)h.push(new e({h:o,s:_,v:l})),l=(l+k)%1;return h},e.prototype.splitcomplement=function(){var a=this.toHsl(),n=a.h;return[this,new e({h:(n+72)%360,s:a.s,l:a.l}),new e({h:(n+216)%360,s:a.s,l:a.l})]},e.prototype.onBackground=function(a){var n=this.toRgb(),o=new e(a).toRgb(),_=n.a+o.a*(1-n.a);return new e({r:(n.r*n.a+o.r*o.a*(1-n.a))/_,g:(n.g*n.a+o.g*o.a*(1-n.a))/_,b:(n.b*n.a+o.b*o.a*(1-n.a))/_,a:_})},e.prototype.triad=function(){return this.polyad(3)},e.prototype.tetrad=function(){return this.polyad(4)},e.prototype.polyad=function(a){for(var n=this.toHsl(),o=n.h,_=[this],l=360/a,h=1;h{let a=e,n=e,o=e,_=e;return e<6&&e>=5?a=e+1:e<16&&e>=6?a=e+2:e>=16&&(a=16),e<7&&e>=5?n=4:e<8&&e>=7?n=5:e<14&&e>=8?n=6:e<16&&e>=14?n=7:e>=16&&(n=8),e<6&&e>=2?o=1:e>=6&&(o=2),e>4&&e<8?_=4:e>=8&&(_=6),{borderRadius:e>16?16:e,borderRadiusXS:o,borderRadiusSM:n,borderRadiusLG:a,borderRadiusOuter:_}};function Jc(e){const{motionUnit:a,motionBase:n,borderRadius:o,lineWidth:_}=e;return Object.assign({motionDurationFast:`${(n+a).toFixed(1)}s`,motionDurationMid:`${(n+a*2).toFixed(1)}s`,motionDurationSlow:`${(n+a*3).toFixed(1)}s`,lineWidthBold:_+1},Gs(o))}const zo=(e,a)=>new Xi(e).setAlpha(a).toRgbString(),M_=(e,a)=>new Xi(e).darken(a).toHexString(),Fh=e=>{const a=Qi(e);return{1:a[0],2:a[1],3:a[2],4:a[3],5:a[4],6:a[5],7:a[6],8:a[4],9:a[5],10:a[6]}},Lh=(e,a)=>{const n=e||"#fff",o=a||"#000";return{colorBgBase:n,colorTextBase:o,colorText:zo(o,.88),colorTextSecondary:zo(o,.65),colorTextTertiary:zo(o,.45),colorTextQuaternary:zo(o,.25),colorFill:zo(o,.15),colorFillSecondary:zo(o,.06),colorFillTertiary:zo(o,.04),colorFillQuaternary:zo(o,.02),colorBgLayout:M_(n,4),colorBgContainer:M_(n,0),colorBgElevated:M_(n,0),colorBgSpotlight:zo(o,.85),colorBorder:M_(n,15),colorBorderSecondary:M_(n,6)}};function Uh(e){const a=new Array(10).fill(null).map((n,o)=>{const _=o-1,l=e*Math.pow(2.71828,_/5),h=o>1?Math.floor(l):Math.ceil(l);return Math.floor(h/2)*2});return a[1]=e,a.map(n=>{const o=n+8;return{size:n,lineHeight:o/n}})}var Zc=e=>{const a=Uh(e),n=a.map(_=>_.size),o=a.map(_=>_.lineHeight);return{fontSizeSM:n[0],fontSize:n[1],fontSizeLG:n[2],fontSizeXL:n[3],fontSizeHeading1:n[6],fontSizeHeading2:n[5],fontSizeHeading3:n[4],fontSizeHeading4:n[3],fontSizeHeading5:n[2],lineHeight:o[1],lineHeightLG:o[2],lineHeightSM:o[0],lineHeightHeading1:o[6],lineHeightHeading2:o[5],lineHeightHeading3:o[4],lineHeightHeading4:o[3],lineHeightHeading5:o[2]}};function Xs(e){const a=Object.keys(Qc).map(n=>{const o=Qi(e[n]);return new Array(10).fill(1).reduce((_,l,h)=>(_[`${n}-${h+1}`]=o[h],_[`${n}${h+1}`]=o[h],_),{})}).reduce((n,o)=>(n=Object.assign(Object.assign({},n),o),n),{});return Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},e),a),wo(e,{generateColorPalettes:Fh,generateNeutralColorPalettes:Lh})),Zc(e.fontSize)),qs(e)),A_(e)),Jc(e))}function hl(e){return e>=0&&e<=255}function Ys(e,a){const{r:n,g:o,b:_,a:l}=new Xi(e).toRgb();if(l<1)return e;const{r:h,g:k,b:f}=new Xi(a).toRgb();for(let b=.01;b<=1;b+=.01){const v=Math.round((n-h*(1-b))/b),w=Math.round((o-k*(1-b))/b),z=Math.round((_-f*(1-b))/b);if(hl(v)&&hl(w)&&hl(z))return new Xi({r:v,g:w,b:z,a:Math.round(b*100)/100}).toRgbString()}return new Xi({r:n,g:o,b:_,a:1}).toRgbString()}var Ks=Ys,dl=function(e,a){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&a.indexOf(o)<0&&(n[o]=e[o]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var _=0,o=Object.getOwnPropertySymbols(e);_{delete o[z]});const _=Object.assign(Object.assign({},n),o),l=480,h=576,k=768,f=992,b=1200,v=1600;return Object.assign(Object.assign(Object.assign({},_),{colorLink:_.colorInfoText,colorLinkHover:_.colorInfoHover,colorLinkActive:_.colorInfoActive,colorFillContent:_.colorFillSecondary,colorFillContentHover:_.colorFill,colorFillAlter:_.colorFillQuaternary,colorBgContainerDisabled:_.colorFillTertiary,colorBorderBg:_.colorBgContainer,colorSplit:Ks(_.colorBorderSecondary,_.colorBgContainer),colorTextPlaceholder:_.colorTextQuaternary,colorTextDisabled:_.colorTextQuaternary,colorTextHeading:_.colorText,colorTextLabel:_.colorTextSecondary,colorTextDescription:_.colorTextTertiary,colorTextLightSolid:_.colorWhite,colorHighlight:_.colorError,colorBgTextHover:_.colorFillSecondary,colorBgTextActive:_.colorFill,colorIcon:_.colorTextTertiary,colorIconHover:_.colorText,colorErrorOutline:Ks(_.colorErrorBg,_.colorBgContainer),colorWarningOutline:Ks(_.colorWarningBg,_.colorBgContainer),fontSizeIcon:_.fontSizeSM,lineWidthFocus:_.lineWidth*4,lineWidth:_.lineWidth,controlOutlineWidth:_.lineWidth*2,controlInteractiveSize:_.controlHeight/2,controlItemBgHover:_.colorFillTertiary,controlItemBgActive:_.colorPrimaryBg,controlItemBgActiveHover:_.colorPrimaryBgHover,controlItemBgActiveDisabled:_.colorFill,controlTmpOutline:_.colorFillQuaternary,controlOutline:Ks(_.colorPrimaryBg,_.colorBgContainer),lineType:_.lineType,borderRadius:_.borderRadius,borderRadiusXS:_.borderRadiusXS,borderRadiusSM:_.borderRadiusSM,borderRadiusLG:_.borderRadiusLG,fontWeightStrong:600,opacityLoading:.65,linkDecoration:"none",linkHoverDecoration:"none",linkFocusDecoration:"none",controlPaddingHorizontal:12,controlPaddingHorizontalSM:8,paddingXXS:_.sizeXXS,paddingXS:_.sizeXS,paddingSM:_.sizeSM,padding:_.size,paddingMD:_.sizeMD,paddingLG:_.sizeLG,paddingXL:_.sizeXL,paddingContentHorizontalLG:_.sizeLG,paddingContentVerticalLG:_.sizeMS,paddingContentHorizontal:_.sizeMS,paddingContentVertical:_.sizeSM,paddingContentHorizontalSM:_.size,paddingContentVerticalSM:_.sizeXS,marginXXS:_.sizeXXS,marginXS:_.sizeXS,marginSM:_.sizeSM,margin:_.size,marginMD:_.sizeMD,marginLG:_.sizeLG,marginXL:_.sizeXL,marginXXL:_.sizeXXL,boxShadow:` +'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}),Xi=function(){function e(a,n){a===void 0&&(a=""),n===void 0&&(n={});var o;if(a instanceof e)return a;typeof a=="number"&&(a=Sh(a)),this.originalInput=a;var _=qn(a);this.originalInput=a,this.r=_.r,this.g=_.g,this.b=_.b,this.a=_.a,this.roundA=Math.round(100*this.a)/100,this.format=(o=n.format)!==null&&o!==void 0?o:_.format,this.gradientType=n.gradientType,this.r<1&&(this.r=Math.round(this.r)),this.g<1&&(this.g=Math.round(this.g)),this.b<1&&(this.b=Math.round(this.b)),this.isValid=_.ok}return e.prototype.isDark=function(){return this.getBrightness()<128},e.prototype.isLight=function(){return!this.isDark()},e.prototype.getBrightness=function(){var a=this.toRgb();return(a.r*299+a.g*587+a.b*114)/1e3},e.prototype.getLuminance=function(){var a=this.toRgb(),n,o,_,l=a.r/255,h=a.g/255,k=a.b/255;return l<=.03928?n=l/12.92:n=Math.pow((l+.055)/1.055,2.4),h<=.03928?o=h/12.92:o=Math.pow((h+.055)/1.055,2.4),k<=.03928?_=k/12.92:_=Math.pow((k+.055)/1.055,2.4),.2126*n+.7152*o+.0722*_},e.prototype.getAlpha=function(){return this.a},e.prototype.setAlpha=function(a){return this.a=Ot(a),this.roundA=Math.round(100*this.a)/100,this},e.prototype.isMonochrome=function(){var a=this.toHsl().s;return a===0},e.prototype.toHsv=function(){var a=Fs(this.r,this.g,this.b);return{h:a.h*360,s:a.s,v:a.v,a:this.a}},e.prototype.toHsvString=function(){var a=Fs(this.r,this.g,this.b),n=Math.round(a.h*360),o=Math.round(a.s*100),_=Math.round(a.v*100);return this.a===1?"hsv(".concat(n,", ").concat(o,"%, ").concat(_,"%)"):"hsva(".concat(n,", ").concat(o,"%, ").concat(_,"%, ").concat(this.roundA,")")},e.prototype.toHsl=function(){var a=Ms(this.r,this.g,this.b);return{h:a.h*360,s:a.s,l:a.l,a:this.a}},e.prototype.toHslString=function(){var a=Ms(this.r,this.g,this.b),n=Math.round(a.h*360),o=Math.round(a.s*100),_=Math.round(a.l*100);return this.a===1?"hsl(".concat(n,", ").concat(o,"%, ").concat(_,"%)"):"hsla(".concat(n,", ").concat(o,"%, ").concat(_,"%, ").concat(this.roundA,")")},e.prototype.toHex=function(a){return a===void 0&&(a=!1),Ls(this.r,this.g,this.b,a)},e.prototype.toHexString=function(a){return a===void 0&&(a=!1),"#"+this.toHex(a)},e.prototype.toHex8=function(a){return a===void 0&&(a=!1),Bc(this.r,this.g,this.b,this.a,a)},e.prototype.toHex8String=function(a){return a===void 0&&(a=!1),"#"+this.toHex8(a)},e.prototype.toHexShortString=function(a){return a===void 0&&(a=!1),this.a===1?this.toHexString(a):this.toHex8String(a)},e.prototype.toRgb=function(){return{r:Math.round(this.r),g:Math.round(this.g),b:Math.round(this.b),a:this.a}},e.prototype.toRgbString=function(){var a=Math.round(this.r),n=Math.round(this.g),o=Math.round(this.b);return this.a===1?"rgb(".concat(a,", ").concat(n,", ").concat(o,")"):"rgba(".concat(a,", ").concat(n,", ").concat(o,", ").concat(this.roundA,")")},e.prototype.toPercentageRgb=function(){var a=function(n){return"".concat(Math.round(Gi(n,255)*100),"%")};return{r:a(this.r),g:a(this.g),b:a(this.b),a:this.a}},e.prototype.toPercentageRgbString=function(){var a=function(n){return Math.round(Gi(n,255)*100)};return this.a===1?"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,")")},e.prototype.toName=function(){if(this.a===0)return"transparent";if(this.a<1)return!1;for(var a="#"+Ls(this.r,this.g,this.b,!1),n=0,o=Object.entries(vo);n=0,l=!n&&_&&(a.startsWith("hex")||a==="name");return l?a==="name"&&this.a===0?this.toName():this.toRgbString():(a==="rgb"&&(o=this.toRgbString()),a==="prgb"&&(o=this.toPercentageRgbString()),(a==="hex"||a==="hex6")&&(o=this.toHexString()),a==="hex3"&&(o=this.toHexString(!0)),a==="hex4"&&(o=this.toHex8String(!0)),a==="hex8"&&(o=this.toHex8String()),a==="name"&&(o=this.toName()),a==="hsl"&&(o=this.toHslString()),a==="hsv"&&(o=this.toHsvString()),o||this.toHexString())},e.prototype.toNumber=function(){return(Math.round(this.r)<<16)+(Math.round(this.g)<<8)+Math.round(this.b)},e.prototype.clone=function(){return new e(this.toString())},e.prototype.lighten=function(a){a===void 0&&(a=10);var n=this.toHsl();return n.l+=a/100,n.l=Ns(n.l),new e(n)},e.prototype.brighten=function(a){a===void 0&&(a=10);var n=this.toRgb();return n.r=Math.max(0,Math.min(255,n.r-Math.round(255*-(a/100)))),n.g=Math.max(0,Math.min(255,n.g-Math.round(255*-(a/100)))),n.b=Math.max(0,Math.min(255,n.b-Math.round(255*-(a/100)))),new e(n)},e.prototype.darken=function(a){a===void 0&&(a=10);var n=this.toHsl();return n.l-=a/100,n.l=Ns(n.l),new e(n)},e.prototype.tint=function(a){return a===void 0&&(a=10),this.mix("white",a)},e.prototype.shade=function(a){return a===void 0&&(a=10),this.mix("black",a)},e.prototype.desaturate=function(a){a===void 0&&(a=10);var n=this.toHsl();return n.s-=a/100,n.s=Ns(n.s),new e(n)},e.prototype.saturate=function(a){a===void 0&&(a=10);var n=this.toHsl();return n.s+=a/100,n.s=Ns(n.s),new e(n)},e.prototype.greyscale=function(){return this.desaturate(100)},e.prototype.spin=function(a){var n=this.toHsl(),o=(n.h+a)%360;return n.h=o<0?360+o:o,new e(n)},e.prototype.mix=function(a,n){n===void 0&&(n=50);var o=this.toRgb(),_=new e(a).toRgb(),l=n/100,h={r:(_.r-o.r)*l+o.r,g:(_.g-o.g)*l+o.g,b:(_.b-o.b)*l+o.b,a:(_.a-o.a)*l+o.a};return new e(h)},e.prototype.analogous=function(a,n){a===void 0&&(a=6),n===void 0&&(n=30);var o=this.toHsl(),_=360/n,l=[this];for(o.h=(o.h-(_*a>>1)+720)%360;--a;)o.h=(o.h+_)%360,l.push(new e(o));return l},e.prototype.complement=function(){var a=this.toHsl();return a.h=(a.h+180)%360,new e(a)},e.prototype.monochromatic=function(a){a===void 0&&(a=6);for(var n=this.toHsv(),o=n.h,_=n.s,l=n.v,h=[],k=1/a;a--;)h.push(new e({h:o,s:_,v:l})),l=(l+k)%1;return h},e.prototype.splitcomplement=function(){var a=this.toHsl(),n=a.h;return[this,new e({h:(n+72)%360,s:a.s,l:a.l}),new e({h:(n+216)%360,s:a.s,l:a.l})]},e.prototype.onBackground=function(a){var n=this.toRgb(),o=new e(a).toRgb(),_=n.a+o.a*(1-n.a);return new e({r:(n.r*n.a+o.r*o.a*(1-n.a))/_,g:(n.g*n.a+o.g*o.a*(1-n.a))/_,b:(n.b*n.a+o.b*o.a*(1-n.a))/_,a:_})},e.prototype.triad=function(){return this.polyad(3)},e.prototype.tetrad=function(){return this.polyad(4)},e.prototype.polyad=function(a){for(var n=this.toHsl(),o=n.h,_=[this],l=360/a,h=1;h{let a=e,n=e,o=e,_=e;return e<6&&e>=5?a=e+1:e<16&&e>=6?a=e+2:e>=16&&(a=16),e<7&&e>=5?n=4:e<8&&e>=7?n=5:e<14&&e>=8?n=6:e<16&&e>=14?n=7:e>=16&&(n=8),e<6&&e>=2?o=1:e>=6&&(o=2),e>4&&e<8?_=4:e>=8&&(_=6),{borderRadius:e>16?16:e,borderRadiusXS:o,borderRadiusSM:n,borderRadiusLG:a,borderRadiusOuter:_}};function Jc(e){const{motionUnit:a,motionBase:n,borderRadius:o,lineWidth:_}=e;return Object.assign({motionDurationFast:`${(n+a).toFixed(1)}s`,motionDurationMid:`${(n+a*2).toFixed(1)}s`,motionDurationSlow:`${(n+a*3).toFixed(1)}s`,lineWidthBold:_+1},Gs(o))}const zo=(e,a)=>new Xi(e).setAlpha(a).toRgbString(),M_=(e,a)=>new Xi(e).darken(a).toHexString(),Fh=e=>{const a=Qi(e);return{1:a[0],2:a[1],3:a[2],4:a[3],5:a[4],6:a[5],7:a[6],8:a[4],9:a[5],10:a[6]}},Lh=(e,a)=>{const n=e||"#fff",o=a||"#000";return{colorBgBase:n,colorTextBase:o,colorText:zo(o,.88),colorTextSecondary:zo(o,.65),colorTextTertiary:zo(o,.45),colorTextQuaternary:zo(o,.25),colorFill:zo(o,.15),colorFillSecondary:zo(o,.06),colorFillTertiary:zo(o,.04),colorFillQuaternary:zo(o,.02),colorBgLayout:M_(n,4),colorBgContainer:M_(n,0),colorBgElevated:M_(n,0),colorBgSpotlight:zo(o,.85),colorBorder:M_(n,15),colorBorderSecondary:M_(n,6)}};function Uh(e){const a=new Array(10).fill(null).map((n,o)=>{const _=o-1,l=e*Math.pow(2.71828,_/5),h=o>1?Math.floor(l):Math.ceil(l);return Math.floor(h/2)*2});return a[1]=e,a.map(n=>{const o=n+8;return{size:n,lineHeight:o/n}})}var Zc=e=>{const a=Uh(e),n=a.map(_=>_.size),o=a.map(_=>_.lineHeight);return{fontSizeSM:n[0],fontSize:n[1],fontSizeLG:n[2],fontSizeXL:n[3],fontSizeHeading1:n[6],fontSizeHeading2:n[5],fontSizeHeading3:n[4],fontSizeHeading4:n[3],fontSizeHeading5:n[2],lineHeight:o[1],lineHeightLG:o[2],lineHeightSM:o[0],lineHeightHeading1:o[6],lineHeightHeading2:o[5],lineHeightHeading3:o[4],lineHeightHeading4:o[3],lineHeightHeading5:o[2]}};function Xs(e){const a=Object.keys(Qc).map(n=>{const o=Qi(e[n]);return new Array(10).fill(1).reduce((_,l,h)=>(_[`${n}-${h+1}`]=o[h],_[`${n}${h+1}`]=o[h],_),{})}).reduce((n,o)=>(n=Object.assign(Object.assign({},n),o),n),{});return Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},e),a),wo(e,{generateColorPalettes:Fh,generateNeutralColorPalettes:Lh})),Zc(e.fontSize)),qs(e)),A_(e)),Jc(e))}function hl(e){return e>=0&&e<=255}function Ys(e,a){const{r:n,g:o,b:_,a:l}=new Xi(e).toRgb();if(l<1)return e;const{r:h,g:k,b:f}=new Xi(a).toRgb();for(let b=.01;b<=1;b+=.01){const v=Math.round((n-h*(1-b))/b),w=Math.round((o-k*(1-b))/b),z=Math.round((_-f*(1-b))/b);if(hl(v)&&hl(w)&&hl(z))return new Xi({r:v,g:w,b:z,a:Math.round(b*100)/100}).toRgbString()}return new Xi({r:n,g:o,b:_,a:1}).toRgbString()}var Ks=Ys,dl=function(e,a){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&a.indexOf(o)<0&&(n[o]=e[o]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var _=0,o=Object.getOwnPropertySymbols(e);_{delete o[z]});const _=Object.assign(Object.assign({},n),o),l=480,h=576,k=768,f=992,b=1200,v=1600;return Object.assign(Object.assign(Object.assign({},_),{colorLink:_.colorInfoText,colorLinkHover:_.colorInfoHover,colorLinkActive:_.colorInfoActive,colorFillContent:_.colorFillSecondary,colorFillContentHover:_.colorFill,colorFillAlter:_.colorFillQuaternary,colorBgContainerDisabled:_.colorFillTertiary,colorBorderBg:_.colorBgContainer,colorSplit:Ks(_.colorBorderSecondary,_.colorBgContainer),colorTextPlaceholder:_.colorTextQuaternary,colorTextDisabled:_.colorTextQuaternary,colorTextHeading:_.colorText,colorTextLabel:_.colorTextSecondary,colorTextDescription:_.colorTextTertiary,colorTextLightSolid:_.colorWhite,colorHighlight:_.colorError,colorBgTextHover:_.colorFillSecondary,colorBgTextActive:_.colorFill,colorIcon:_.colorTextTertiary,colorIconHover:_.colorText,colorErrorOutline:Ks(_.colorErrorBg,_.colorBgContainer),colorWarningOutline:Ks(_.colorWarningBg,_.colorBgContainer),fontSizeIcon:_.fontSizeSM,lineWidthFocus:_.lineWidth*4,lineWidth:_.lineWidth,controlOutlineWidth:_.lineWidth*2,controlInteractiveSize:_.controlHeight/2,controlItemBgHover:_.colorFillTertiary,controlItemBgActive:_.colorPrimaryBg,controlItemBgActiveHover:_.colorPrimaryBgHover,controlItemBgActiveDisabled:_.colorFill,controlTmpOutline:_.colorFillQuaternary,controlOutline:Ks(_.colorPrimaryBg,_.colorBgContainer),lineType:_.lineType,borderRadius:_.borderRadius,borderRadiusXS:_.borderRadiusXS,borderRadiusSM:_.borderRadiusSM,borderRadiusLG:_.borderRadiusLG,fontWeightStrong:600,opacityLoading:.65,linkDecoration:"none",linkHoverDecoration:"none",linkFocusDecoration:"none",controlPaddingHorizontal:12,controlPaddingHorizontalSM:8,paddingXXS:_.sizeXXS,paddingXS:_.sizeXS,paddingSM:_.sizeSM,padding:_.size,paddingMD:_.sizeMD,paddingLG:_.sizeLG,paddingXL:_.sizeXL,paddingContentHorizontalLG:_.sizeLG,paddingContentVerticalLG:_.sizeMS,paddingContentHorizontal:_.sizeMS,paddingContentVertical:_.sizeSM,paddingContentHorizontalSM:_.size,paddingContentVerticalSM:_.sizeXS,marginXXS:_.sizeXXS,marginXS:_.sizeXS,marginSM:_.sizeSM,margin:_.size,marginMD:_.sizeMD,marginLG:_.sizeLG,marginXL:_.sizeXL,marginXXL:_.sizeXXL,boxShadow:` 0 6px 16px 0 rgba(0, 0, 0, 0.08), 0 3px 6px -4px rgba(0, 0, 0, 0.12), 0 9px 28px 8px rgba(0, 0, 0, 0.05) @@ -57,7 +57,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho 0 -6px 16px 0 rgba(0, 0, 0, 0.08), 0 -3px 6px -4px rgba(0, 0, 0, 0.12), 0 -9px 28px 8px rgba(0, 0, 0, 0.05) - `,boxShadowTabsOverflowLeft:"inset 10px 0 8px -8px rgba(0, 0, 0, 0.08)",boxShadowTabsOverflowRight:"inset -10px 0 8px -8px rgba(0, 0, 0, 0.08)",boxShadowTabsOverflowTop:"inset 0 10px 8px -8px rgba(0, 0, 0, 0.08)",boxShadowTabsOverflowBottom:"inset 0 -10px 8px -8px rgba(0, 0, 0, 0.08)"}),o)}const $h=As(Xs),F_={token:N_,hashed:!0},em=g.createContext(F_);function L_(){const{token:e,hashed:a,theme:n,components:o}=g.useContext(em),_=`${Hc}-${a||""}`,l=n||$h,[h,k]=sr(l,[N_,e],{salt:_,override:Object.assign({override:e},o),formatToken:gl});return[l,h,a?k:""]}const lr=(e,a)=>new Xi(e).setAlpha(a).toRgbString(),Rt=(e,a)=>new Xi(e).lighten(a).toHexString(),am=e=>{const a=Qi(e,{theme:"dark"});return{1:a[0],2:a[1],3:a[2],4:a[3],5:a[6],6:a[5],7:a[4],8:a[6],9:a[5],10:a[4]}},Hh=(e,a)=>{const n=e||"#000",o=a||"#fff";return{colorBgBase:n,colorTextBase:o,colorText:lr(o,.85),colorTextSecondary:lr(o,.65),colorTextTertiary:lr(o,.45),colorTextQuaternary:lr(o,.25),colorFill:lr(o,.18),colorFillSecondary:lr(o,.12),colorFillTertiary:lr(o,.08),colorFillQuaternary:lr(o,.04),colorBgElevated:Rt(n,12),colorBgContainer:Rt(n,8),colorBgLayout:Rt(n,0),colorBgSpotlight:Rt(n,26),colorBorder:Rt(n,26),colorBorderSecondary:Rt(n,19)}};var Wh=(e,a)=>{const n=Object.keys(Qc).map(_=>{const l=Qi(e[_],{theme:"dark"});return new Array(10).fill(1).reduce((h,k,f)=>(h[`${_}-${f+1}`]=l[f],h[`${_}${f+1}`]=l[f],h),{})}).reduce((_,l)=>(_=Object.assign(Object.assign({},_),l),_),{}),o=a!=null?a:Xs(e);return Object.assign(Object.assign(Object.assign({},o),n),wo(e,{generateColorPalettes:am,generateNeutralColorPalettes:Hh}))};function Qg(e){const{sizeUnit:a,sizeStep:n}=e,o=n-2;return{sizeXXL:a*(o+10),sizeXL:a*(o+6),sizeLG:a*(o+2),sizeMD:a*(o+2),sizeMS:a*(o+1),size:a*o,sizeSM:a*o,sizeXS:a*(o-1),sizeXXS:a*(o-1)}}var Zg=(e,a)=>{const n=a!=null?a:Xs(e),o=n.fontSizeSM,_=n.controlHeight-4;return Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},n),Qg(a!=null?a:e)),Zc(o)),{controlHeight:_}),A_(Object.assign(Object.assign({},n),{controlHeight:_})))};function ek(){const[e,a,n]=L_();return{theme:e,token:a,hashId:n}}var Qs={defaultConfig:F_,defaultSeed:F_.token,useToken:ek,defaultAlgorithm:Xs,darkAlgorithm:Wh,compactAlgorithm:Zg},kl=function(){var a=Qs.useToken(),n=a.token;return n};function im(e,a){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);a&&(o=o.filter(function(_){return Object.getOwnPropertyDescriptor(e,_).enumerable})),n.push.apply(n,o)}return n}function Js(e){for(var a=1;a=0;--Ve){var He=this.tryEntries[Ve],ea=He.completion;if(He.tryLoc==="root")return be("end");if(He.tryLoc<=this.prev){var ca=n.call(He,"catchLoc"),Sa=n.call(He,"finallyLoc");if(ca&&Sa){if(this.prev=0;--be){var Ve=this.tryEntries[be];if(Ve.tryLoc<=this.prev&&n.call(Ve,"finallyLoc")&&this.prev=0;--le){var be=this.tryEntries[le];if(be.finallyLoc===re)return this.complete(be.completion,be.afterLoc),se(be),w}},catch:function(re){for(var le=this.tryEntries.length-1;le>=0;--le){var be=this.tryEntries[le];if(be.tryLoc===re){var Ve=be.completion;if(Ve.type==="throw"){var He=Ve.arg;se(be)}return He}}throw new Error("illegal catch attempt")},delegateYield:function(re,le,be){return this.delegate={iterator:ue(re),resultName:le,nextLoc:be},this.method==="next"&&(this.arg=void 0),w}},e}function rm(e,a,n,o,_,l,h){try{var k=e[l](h),f=k.value}catch(b){n(b);return}k.done?a(f):Promise.resolve(f).then(o,_)}function At(e){return function(){var a=this,n=arguments;return new Promise(function(o,_){var l=e.apply(a,n);function h(f){rm(l,o,_,h,k,"next",f)}function k(f){rm(l,o,_,h,k,"throw",f)}h(void 0)})}}var $_=ha(3935),Bh=ha.t($_,2),H_=Ie({},Bh),nk=H_.version,Dn=H_.render,Sn=H_.unmountComponentAtNode,Zs;try{var qh=Number((nk||"").split(".")[0]);qh>=18&&(Zs=H_.createRoot)}catch(e){}function tm(e){var a=H_.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;a&&oi(a)==="object"&&(a.usingClientEntryPoint=e)}var eu="__rc_react_root__";function Gh(e,a){tm(!0);var n=a[eu]||Zs(a);tm(!1),n.render(e),a[eu]=n}function _m(e,a){Dn(e,a)}function ok(e,a){}function W_(e,a){if(Zs){Gh(e,a);return}_m(e,a)}function Xh(e){return pl.apply(this,arguments)}function pl(){return pl=At(Gn().mark(function e(a){return Gn().wrap(function(o){for(;;)switch(o.prev=o.next){case 0:return o.abrupt("return",Promise.resolve().then(function(){var _;(_=a[eu])===null||_===void 0||_.unmount(),delete a[eu]}));case 1:case"end":return o.stop()}},e)})),pl.apply(this,arguments)}function sm(e){Sn(e)}function Yh(e){}function um(e){return au.apply(this,arguments)}function au(){return au=At(Gn().mark(function e(a){return Gn().wrap(function(o){for(;;)switch(o.prev=o.next){case 0:if(Zs===void 0){o.next=2;break}return o.abrupt("return",Xh(a));case 2:sm(a);case 3:case"end":return o.stop()}},e)})),au.apply(this,arguments)}var fl=(0,g.createContext)({}),lm=fl;function V_(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Vr(e,a){return Vr=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(o,_){return o.__proto__=_,o},Vr(e,a)}function iu(e,a){if(typeof a!="function"&&a!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(a&&a.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),a&&Vr(e,a)}function Br(e){return Br=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},Br(e)}function Yo(){if(typeof Reflect=="undefined"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(e){return!1}}function rk(e,a){if(a&&(oi(a)==="object"||typeof a=="function"))return a;if(a!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return V_(e)}function nu(e){var a=Yo();return function(){var o=Br(e),_;if(a){var l=Br(this).constructor;_=Reflect.construct(o,arguments,l)}else _=o.apply(this,arguments);return rk(this,_)}}var B_=ha(9864);function Nt(e){var a=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=[];return g.Children.forEach(e,function(o){o==null&&!a.keepEmpty||(Array.isArray(o)?n=n.concat(Nt(o)):(0,B_.isFragment)(o)&&o.props?n=n.concat(Nt(o.props.children,a)):n.push(o))}),n}var qr="RC_FORM_INTERNAL_HOOKS",li=function(){vn(!1,"Can not find FormContext. Please make sure you wrap Field under Form.")},kn=g.createContext({getFieldValue:li,getFieldsValue:li,getFieldError:li,getFieldWarning:li,getFieldsError:li,isFieldsTouched:li,isFieldTouched:li,isFieldValidating:li,isFieldsValidating:li,resetFields:li,setFields:li,setFieldValue:li,setFieldsValue:li,validateFields:li,submit:li,getInternalHooks:function(){return li(),{dispatch:li,initEntityValue:li,registerField:li,useSubscribe:li,setInitialValues:li,destroyForm:li,setCallbacks:li,registerWatch:li,getFields:li,setValidateMessages:li,setPreserve:li,getInitialValue:li}}}),q_=kn;function cm(e){return e==null?[]:Array.isArray(e)?e:[e]}function yl(e){return e&&!!e._init}var pn=ha(4155);function Mt(){return Mt=Object.assign?Object.assign.bind():function(e){for(var a=1;a1?a-1:0),o=1;o=l)return k;switch(k){case"%s":return String(n[_++]);case"%d":return Number(n[_++]);case"%j":try{return JSON.stringify(n[_++])}catch(f){return"[Circular]"}break;default:return k}});return h}return e}function hm(e){return e==="string"||e==="url"||e==="hex"||e==="email"||e==="date"||e==="pattern"}function Mi(e,a){return!!(e==null||a==="array"&&Array.isArray(e)&&!e.length||hm(a)&&typeof e=="string"&&!e)}function sn(e,a,n){var o=[],_=0,l=e.length;function h(k){o.push.apply(o,k||[]),_++,_===l&&n(o)}e.forEach(function(k){a(k,h)})}function _o(e,a,n){var o=0,_=e.length;function l(h){if(h&&h.length){n(h);return}var k=o;o=o+1,k<_?a(e[k],l):n([])}l([])}function Xr(e){var a=[];return Object.keys(e).forEach(function(n){a.push.apply(a,e[n]||[])}),a}var dm=function(e){wa(a,e);function a(n,o){var _;return _=e.call(this,"Async Validation Error")||this,_.errors=n,_.fields=o,_}return a}(G_(Error));function Jh(e,a,n,o,_){if(a.first){var l=new Promise(function(z,S){var E=function(T){return o(T),T.length?S(new dm(T,vl(T))):z(_)},O=Xr(e);_o(O,n,E)});return l.catch(function(z){return z}),l}var h=a.firstFields===!0?Object.keys(e):a.firstFields||[],k=Object.keys(e),f=k.length,b=0,v=[],w=new Promise(function(z,S){var E=function(P){if(v.push.apply(v,P),b++,b===f)return o(v),v.length?S(new dm(v,vl(v))):z(_)};k.length||(o(v),z(_)),k.forEach(function(O){var P=e[O];h.indexOf(O)!==-1?_o(P,n,E):sn(P,n,E)})});return w.catch(function(z){return z}),w}function xo(e){return!!(e&&e.message!==void 0)}function Zh(e,a){for(var n=e,o=0;onew Xi(e).setAlpha(a).toRgbString(),Rt=(e,a)=>new Xi(e).lighten(a).toHexString(),am=e=>{const a=Qi(e,{theme:"dark"});return{1:a[0],2:a[1],3:a[2],4:a[3],5:a[6],6:a[5],7:a[4],8:a[6],9:a[5],10:a[4]}},Hh=(e,a)=>{const n=e||"#000",o=a||"#fff";return{colorBgBase:n,colorTextBase:o,colorText:lr(o,.85),colorTextSecondary:lr(o,.65),colorTextTertiary:lr(o,.45),colorTextQuaternary:lr(o,.25),colorFill:lr(o,.18),colorFillSecondary:lr(o,.12),colorFillTertiary:lr(o,.08),colorFillQuaternary:lr(o,.04),colorBgElevated:Rt(n,12),colorBgContainer:Rt(n,8),colorBgLayout:Rt(n,0),colorBgSpotlight:Rt(n,26),colorBorder:Rt(n,26),colorBorderSecondary:Rt(n,19)}};var Wh=(e,a)=>{const n=Object.keys(Qc).map(_=>{const l=Qi(e[_],{theme:"dark"});return new Array(10).fill(1).reduce((h,k,f)=>(h[`${_}-${f+1}`]=l[f],h[`${_}${f+1}`]=l[f],h),{})}).reduce((_,l)=>(_=Object.assign(Object.assign({},_),l),_),{}),o=a!=null?a:Xs(e);return Object.assign(Object.assign(Object.assign({},o),n),wo(e,{generateColorPalettes:am,generateNeutralColorPalettes:Hh}))};function Qg(e){const{sizeUnit:a,sizeStep:n}=e,o=n-2;return{sizeXXL:a*(o+10),sizeXL:a*(o+6),sizeLG:a*(o+2),sizeMD:a*(o+2),sizeMS:a*(o+1),size:a*o,sizeSM:a*o,sizeXS:a*(o-1),sizeXXS:a*(o-1)}}var Zg=(e,a)=>{const n=a!=null?a:Xs(e),o=n.fontSizeSM,_=n.controlHeight-4;return Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},n),Qg(a!=null?a:e)),Zc(o)),{controlHeight:_}),A_(Object.assign(Object.assign({},n),{controlHeight:_})))};function ek(){const[e,a,n]=L_();return{theme:e,token:a,hashId:n}}var Qs={defaultConfig:F_,defaultSeed:F_.token,useToken:ek,defaultAlgorithm:Xs,darkAlgorithm:Wh,compactAlgorithm:Zg},kl=function(){var a=Qs.useToken(),n=a.token;return n};function im(e,a){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);a&&(o=o.filter(function(_){return Object.getOwnPropertyDescriptor(e,_).enumerable})),n.push.apply(n,o)}return n}function Js(e){for(var a=1;a=0;--Be){var He=this.tryEntries[Be],ea=He.completion;if(He.tryLoc==="root")return be("end");if(He.tryLoc<=this.prev){var ca=n.call(He,"catchLoc"),Sa=n.call(He,"finallyLoc");if(ca&&Sa){if(this.prev=0;--be){var Be=this.tryEntries[be];if(Be.tryLoc<=this.prev&&n.call(Be,"finallyLoc")&&this.prev=0;--le){var be=this.tryEntries[le];if(be.finallyLoc===re)return this.complete(be.completion,be.afterLoc),se(be),w}},catch:function(re){for(var le=this.tryEntries.length-1;le>=0;--le){var be=this.tryEntries[le];if(be.tryLoc===re){var Be=be.completion;if(Be.type==="throw"){var He=Be.arg;se(be)}return He}}throw new Error("illegal catch attempt")},delegateYield:function(re,le,be){return this.delegate={iterator:ue(re),resultName:le,nextLoc:be},this.method==="next"&&(this.arg=void 0),w}},e}function rm(e,a,n,o,_,l,h){try{var k=e[l](h),f=k.value}catch(b){n(b);return}k.done?a(f):Promise.resolve(f).then(o,_)}function At(e){return function(){var a=this,n=arguments;return new Promise(function(o,_){var l=e.apply(a,n);function h(f){rm(l,o,_,h,k,"next",f)}function k(f){rm(l,o,_,h,k,"throw",f)}h(void 0)})}}var $_=ha(3935),Vh=ha.t($_,2),H_=Ie({},Vh),nk=H_.version,Dn=H_.render,Sn=H_.unmountComponentAtNode,Zs;try{var qh=Number((nk||"").split(".")[0]);qh>=18&&(Zs=H_.createRoot)}catch(e){}function tm(e){var a=H_.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;a&&oi(a)==="object"&&(a.usingClientEntryPoint=e)}var eu="__rc_react_root__";function Gh(e,a){tm(!0);var n=a[eu]||Zs(a);tm(!1),n.render(e),a[eu]=n}function _m(e,a){Dn(e,a)}function ok(e,a){}function W_(e,a){if(Zs){Gh(e,a);return}_m(e,a)}function Xh(e){return pl.apply(this,arguments)}function pl(){return pl=At(Gn().mark(function e(a){return Gn().wrap(function(o){for(;;)switch(o.prev=o.next){case 0:return o.abrupt("return",Promise.resolve().then(function(){var _;(_=a[eu])===null||_===void 0||_.unmount(),delete a[eu]}));case 1:case"end":return o.stop()}},e)})),pl.apply(this,arguments)}function sm(e){Sn(e)}function Yh(e){}function um(e){return au.apply(this,arguments)}function au(){return au=At(Gn().mark(function e(a){return Gn().wrap(function(o){for(;;)switch(o.prev=o.next){case 0:if(Zs===void 0){o.next=2;break}return o.abrupt("return",Xh(a));case 2:sm(a);case 3:case"end":return o.stop()}},e)})),au.apply(this,arguments)}var fl=(0,g.createContext)({}),lm=fl;function B_(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Br(e,a){return Br=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(o,_){return o.__proto__=_,o},Br(e,a)}function iu(e,a){if(typeof a!="function"&&a!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(a&&a.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),a&&Br(e,a)}function Vr(e){return Vr=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},Vr(e)}function Yo(){if(typeof Reflect=="undefined"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(e){return!1}}function rk(e,a){if(a&&(oi(a)==="object"||typeof a=="function"))return a;if(a!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return B_(e)}function nu(e){var a=Yo();return function(){var o=Vr(e),_;if(a){var l=Vr(this).constructor;_=Reflect.construct(o,arguments,l)}else _=o.apply(this,arguments);return rk(this,_)}}var V_=ha(9864);function Nt(e){var a=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=[];return g.Children.forEach(e,function(o){o==null&&!a.keepEmpty||(Array.isArray(o)?n=n.concat(Nt(o)):(0,V_.isFragment)(o)&&o.props?n=n.concat(Nt(o.props.children,a)):n.push(o))}),n}var qr="RC_FORM_INTERNAL_HOOKS",li=function(){vn(!1,"Can not find FormContext. Please make sure you wrap Field under Form.")},kn=g.createContext({getFieldValue:li,getFieldsValue:li,getFieldError:li,getFieldWarning:li,getFieldsError:li,isFieldsTouched:li,isFieldTouched:li,isFieldValidating:li,isFieldsValidating:li,resetFields:li,setFields:li,setFieldValue:li,setFieldsValue:li,validateFields:li,submit:li,getInternalHooks:function(){return li(),{dispatch:li,initEntityValue:li,registerField:li,useSubscribe:li,setInitialValues:li,destroyForm:li,setCallbacks:li,registerWatch:li,getFields:li,setValidateMessages:li,setPreserve:li,getInitialValue:li}}}),q_=kn;function cm(e){return e==null?[]:Array.isArray(e)?e:[e]}function yl(e){return e&&!!e._init}var pn=ha(4155);function Mt(){return Mt=Object.assign?Object.assign.bind():function(e){for(var a=1;a1?a-1:0),o=1;o=l)return k;switch(k){case"%s":return String(n[_++]);case"%d":return Number(n[_++]);case"%j":try{return JSON.stringify(n[_++])}catch(f){return"[Circular]"}break;default:return k}});return h}return e}function hm(e){return e==="string"||e==="url"||e==="hex"||e==="email"||e==="date"||e==="pattern"}function Mi(e,a){return!!(e==null||a==="array"&&Array.isArray(e)&&!e.length||hm(a)&&typeof e=="string"&&!e)}function sn(e,a,n){var o=[],_=0,l=e.length;function h(k){o.push.apply(o,k||[]),_++,_===l&&n(o)}e.forEach(function(k){a(k,h)})}function _o(e,a,n){var o=0,_=e.length;function l(h){if(h&&h.length){n(h);return}var k=o;o=o+1,k<_?a(e[k],l):n([])}l([])}function Xr(e){var a=[];return Object.keys(e).forEach(function(n){a.push.apply(a,e[n]||[])}),a}var dm=function(e){wa(a,e);function a(n,o){var _;return _=e.call(this,"Async Validation Error")||this,_.errors=n,_.fields=o,_}return a}(G_(Error));function Jh(e,a,n,o,_){if(a.first){var l=new Promise(function(z,S){var E=function(T){return o(T),T.length?S(new dm(T,vl(T))):z(_)},O=Xr(e);_o(O,n,E)});return l.catch(function(z){return z}),l}var h=a.firstFields===!0?Object.keys(e):a.firstFields||[],k=Object.keys(e),f=k.length,b=0,v=[],w=new Promise(function(z,S){var E=function(P){if(v.push.apply(v,P),b++,b===f)return o(v),v.length?S(new dm(v,vl(v))):z(_)};k.length||(o(v),z(_)),k.forEach(function(O){var P=e[O];h.indexOf(O)!==-1?_o(P,n,E):sn(P,n,E)})});return w.catch(function(z){return z}),w}function xo(e){return!!(e&&e.message!==void 0)}function Zh(e,a){for(var n=e,o=0;o()\[\]\\.,;:\s@"]+(\.[^<>()\[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}])|(([a-zA-Z\-0-9\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]+\.)+[a-zA-Z\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]{2,}))$/,hex:/^#?([a-f0-9]{6}|[a-f0-9]{3})$/i},Yr={integer:function(a){return Yr.number(a)&&parseInt(a,10)===a},float:function(a){return Yr.number(a)&&!Yr.integer(a)},array:function(a){return Array.isArray(a)},regexp:function(a){if(a instanceof RegExp)return!0;try{return!!new RegExp(a)}catch(n){return!1}},date:function(a){return typeof a.getTime=="function"&&typeof a.getMonth=="function"&&typeof a.getYear=="function"&&!isNaN(a.getTime())},number:function(a){return isNaN(a)?!1:typeof a=="number"},object:function(a){return typeof a=="object"&&!Yr.array(a)},method:function(a){return typeof a=="function"},email:function(a){return typeof a=="string"&&a.length<=320&&!!a.match(nd.email)},url:function(a){return typeof a=="string"&&a.length<=2048&&!!a.match(id())},hex:function(a){return typeof a=="string"&&!!a.match(nd.hex)}},km=function(a,n,o,_,l){if(a.required&&n===void 0){gm(a,n,o,_,l);return}var h=["integer","float","array","regexp","object","method","email","number","date","url","hex"],k=a.type;h.indexOf(k)>-1?Yr[k](n)||_.push(Tn(l.messages.types[k],a.fullField,a.type)):k&&typeof n!==a.type&&_.push(Tn(l.messages.types[k],a.fullField,a.type))},so=function(a,n,o,_,l){var h=typeof a.len=="number",k=typeof a.min=="number",f=typeof a.max=="number",b=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,v=n,w=null,z=typeof n=="number",S=typeof n=="string",E=Array.isArray(n);if(z?w="number":S?w="string":E&&(w="array"),!w)return!1;E&&(v=n.length),S&&(v=n.replace(b,"_").length),h?v!==a.len&&_.push(Tn(l.messages[w].len,a.fullField,a.len)):k&&!f&&va.max?_.push(Tn(l.messages[w].max,a.fullField,a.max)):k&&f&&(va.max)&&_.push(Tn(l.messages[w].range,a.fullField,a.min,a.max))},ei="enum",Zi=function(a,n,o,_,l){a[ei]=Array.isArray(a[ei])?a[ei]:[],a[ei].indexOf(n)===-1&&_.push(Tn(l.messages[ei],a.fullField,a[ei].join(", ")))},Hi=function(a,n,o,_,l){if(a.pattern){if(a.pattern instanceof RegExp)a.pattern.lastIndex=0,a.pattern.test(n)||_.push(Tn(l.messages.pattern.mismatch,a.fullField,n,a.pattern));else if(typeof a.pattern=="string"){var h=new RegExp(a.pattern);h.test(n)||_.push(Tn(l.messages.pattern.mismatch,a.fullField,n,a.pattern))}}},Fa={required:gm,whitespace:ad,type:km,range:so,enum:Zi,pattern:Hi},Xn=function(a,n,o,_,l){var h=[],k=a.required||!a.required&&_.hasOwnProperty(a.field);if(k){if(Mi(n,"string")&&!a.required)return o();Fa.required(a,n,_,h,l,"string"),Mi(n,"string")||(Fa.type(a,n,_,h,l),Fa.range(a,n,_,h,l),Fa.pattern(a,n,_,h,l),a.whitespace===!0&&Fa.whitespace(a,n,_,h,l))}o(h)},X_=function(a,n,o,_,l){var h=[],k=a.required||!a.required&&_.hasOwnProperty(a.field);if(k){if(Mi(n)&&!a.required)return o();Fa.required(a,n,_,h,l),n!==void 0&&Fa.type(a,n,_,h,l)}o(h)},Yi=function(a,n,o,_,l){var h=[],k=a.required||!a.required&&_.hasOwnProperty(a.field);if(k){if(n===""&&(n=void 0),Mi(n)&&!a.required)return o();Fa.required(a,n,_,h,l),n!==void 0&&(Fa.type(a,n,_,h,l),Fa.range(a,n,_,h,l))}o(h)},tu=function(a,n,o,_,l){var h=[],k=a.required||!a.required&&_.hasOwnProperty(a.field);if(k){if(Mi(n)&&!a.required)return o();Fa.required(a,n,_,h,l),n!==void 0&&Fa.type(a,n,_,h,l)}o(h)},Lt=function(a,n,o,_,l){var h=[],k=a.required||!a.required&&_.hasOwnProperty(a.field);if(k){if(Mi(n)&&!a.required)return o();Fa.required(a,n,_,h,l),Mi(n)||Fa.type(a,n,_,h,l)}o(h)},wl=function(a,n,o,_,l){var h=[],k=a.required||!a.required&&_.hasOwnProperty(a.field);if(k){if(Mi(n)&&!a.required)return o();Fa.required(a,n,_,h,l),n!==void 0&&(Fa.type(a,n,_,h,l),Fa.range(a,n,_,h,l))}o(h)},pm=function(a,n,o,_,l){var h=[],k=a.required||!a.required&&_.hasOwnProperty(a.field);if(k){if(Mi(n)&&!a.required)return o();Fa.required(a,n,_,h,l),n!==void 0&&(Fa.type(a,n,_,h,l),Fa.range(a,n,_,h,l))}o(h)},_u=function(a,n,o,_,l){var h=[],k=a.required||!a.required&&_.hasOwnProperty(a.field);if(k){if(n==null&&!a.required)return o();Fa.required(a,n,_,h,l,"array"),n!=null&&(Fa.type(a,n,_,h,l),Fa.range(a,n,_,h,l))}o(h)},Rn=function(a,n,o,_,l){var h=[],k=a.required||!a.required&&_.hasOwnProperty(a.field);if(k){if(Mi(n)&&!a.required)return o();Fa.required(a,n,_,h,l),n!==void 0&&Fa.type(a,n,_,h,l)}o(h)},fm="enum",Y_=function(a,n,o,_,l){var h=[],k=a.required||!a.required&&_.hasOwnProperty(a.field);if(k){if(Mi(n)&&!a.required)return o();Fa.required(a,n,_,h,l),n!==void 0&&Fa[fm](a,n,_,h,l)}o(h)},cr=function(a,n,o,_,l){var h=[],k=a.required||!a.required&&_.hasOwnProperty(a.field);if(k){if(Mi(n,"string")&&!a.required)return o();Fa.required(a,n,_,h,l),Mi(n,"string")||Fa.pattern(a,n,_,h,l)}o(h)},jl=function(a,n,o,_,l){var h=[],k=a.required||!a.required&&_.hasOwnProperty(a.field);if(k){if(Mi(n,"date")&&!a.required)return o();if(Fa.required(a,n,_,h,l),!Mi(n,"date")){var f;n instanceof Date?f=n:f=new Date(n),Fa.type(a,f,_,h,l),f&&Fa.range(a,f.getTime(),_,h,l)}}o(h)},ym=function(a,n,o,_,l){var h=[],k=Array.isArray(n)?"array":typeof n;Fa.required(a,n,_,h,l,k),o(h)},Ko=function(a,n,o,_,l){var h=a.type,k=[],f=a.required||!a.required&&_.hasOwnProperty(a.field);if(f){if(Mi(n,h)&&!a.required)return o();Fa.required(a,n,_,k,l,h),Mi(n,h)||Fa.type(a,n,_,k,l)}o(k)},zl=function(a,n,o,_,l){var h=[],k=a.required||!a.required&&_.hasOwnProperty(a.field);if(k){if(Mi(n)&&!a.required)return o();Fa.required(a,n,_,h,l)}o(h)},uo={string:Xn,method:X_,number:Yi,boolean:tu,regexp:Lt,integer:wl,float:pm,array:_u,object:Rn,enum:Y_,pattern:cr,date:jl,url:Ko,hex:Ko,email:Ko,required:ym,any:zl};function K_(){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 Ut=K_(),$t=function(){function e(n){this.rules=null,this._messages=Ut,this.define(n)}var a=e.prototype;return a.define=function(o){var _=this;if(!o)throw new Error("Cannot configure a schema with no rules");if(typeof o!="object"||Array.isArray(o))throw new Error("Rules must be an object");this.rules={},Object.keys(o).forEach(function(l){var h=o[l];_.rules[l]=Array.isArray(h)?h:[h]})},a.messages=function(o){return o&&(this._messages=ed(K_(),o)),this._messages},a.validate=function(o,_,l){var h=this;_===void 0&&(_={}),l===void 0&&(l=function(){});var k=o,f=_,b=l;if(typeof f=="function"&&(b=f,f={}),!this.rules||Object.keys(this.rules).length===0)return b&&b(null,k),Promise.resolve(k);function v(O){var P=[],T={};function A(H){if(Array.isArray(H)){var K;P=(K=P).concat.apply(K,H)}else P.push(H)}for(var L=0;L3&&arguments[3]!==void 0?arguments[3]:!1;return a.length&&o&&n===void 0&&!Ci(e,a.slice(0,-1))?e:lo(e,a,n,o)}function xl(e){return Array.isArray(e)?vm(e):oi(e)==="object"&&e!==null?bm(e):e}function bm(e){if(Object.getPrototypeOf(e)===Object.prototype){var a={};for(var n in e)a[n]=xl(e[n]);return a}return e}function vm(e){return e.map(function(a){return xl(a)})}var od=xl;function hi(e){return cm(e)}function wm(e,a){var n={};return a.forEach(function(o){var _=Ci(e,o);n=Fi(n,o,_)}),n}function Ht(e,a){return e&&e.some(function(n){return jm(n,a)})}function Qr(e){return oi(e)==="object"&&e!==null&&Object.getPrototypeOf(e)===Object.prototype}function Cl(e,a){var n=Array.isArray(e)?xa(e):Ie({},e);return a&&Object.keys(a).forEach(function(o){var _=n[o],l=a[o],h=Qr(_)&&Qr(l);n[o]=h?Cl(_,l||{}):od(l)}),n}function So(e){for(var a=arguments.length,n=new Array(a>1?a-1:0),o=1;o=o||n<0||n>=o)return e;var _=e[a],l=a-n;return l>0?[].concat(xa(e.slice(0,n)),[_],xa(e.slice(n,a)),xa(e.slice(a+1,o))):l<0?[].concat(xa(e.slice(0,a)),xa(e.slice(a+1,n+1)),[_],xa(e.slice(n+1,o))):e}var td=$t;function tk(e,a){return e.replace(/\$\{\w+\}/g,function(n){var o=n.slice(2,-1);return a[o]})}var xm="CODE_LOGIC_ERROR";function Sl(e,a,n,o,_){return mr.apply(this,arguments)}function mr(){return mr=At(Gn().mark(function e(a,n,o,_,l){var h,k,f,b,v,w,z,S,E;return Gn().wrap(function(P){for(;;)switch(P.prev=P.next){case 0:return h=Ie({},o),delete h.ruleIndex,td.warning=function(){},h.validator&&(k=h.validator,h.validator=function(){try{return k.apply(void 0,arguments)}catch(T){return console.error(T),Promise.reject(xm)}}),f=null,h&&h.type==="array"&&h.defaultField&&(f=h.defaultField,delete h.defaultField),b=new td(D({},a,[h])),v=So({},su,_.validateMessages),b.messages(v),w=[],P.prev=10,P.next=13,Promise.resolve(b.validate(D({},a,n),Ie({},_)));case 13:P.next=18;break;case 15:P.prev=15,P.t0=P.catch(10),P.t0.errors&&(w=P.t0.errors.map(function(T,A){var L=T.message,H=L===xm?v.default:L;return g.isValidElement(H)?g.cloneElement(H,{key:"error_".concat(A)}):H}));case 18:if(!(!w.length&&f)){P.next=23;break}return P.next=21,Promise.all(n.map(function(T,A){return Sl("".concat(a,".").concat(A),T,f,_,l)}));case 21:return z=P.sent,P.abrupt("return",z.reduce(function(T,A){return[].concat(xa(T),xa(A))},[]));case 23:return S=Ie(Ie({},o),{},{name:a,enum:(o.enum||[]).join(", ")},l),E=w.map(function(T){return typeof T=="string"?tk(T,S):T}),P.abrupt("return",E);case 26:case"end":return P.stop()}},e,null,[[10,15]])})),mr.apply(this,arguments)}function _k(e,a,n,o,_,l){var h=e.join("."),k=n.map(function(v,w){var z=v.validator,S=Ie(Ie({},v),{},{ruleIndex:w});return z&&(S.validator=function(E,O,P){var T=!1,A=function(){for(var K=arguments.length,ae=new Array(K),ie=0;ie0&&arguments[0]!==void 0?arguments[0]:co;if(_.validatePromise===w){var K;_.validatePromise=null;var ae=[],ie=[];(K=H.forEach)===null||K===void 0||K.call(H,function(se){var he=se.rule.warningOnly,ue=se.errors,ze=ue===void 0?co:ue;he?ie.push.apply(ie,xa(ze)):ae.push.apply(ae,xa(ze))}),_.errors=ae,_.warnings=ie,_.triggerMetaEvent(),_.reRender()}}),L});return _.validatePromise=w,_.dirty=!0,_.errors=co,_.warnings=co,_.triggerMetaEvent(),_.reRender(),w},_.isFieldValidating=function(){return!!_.validatePromise},_.isFieldTouched=function(){return _.touched},_.isFieldDirty=function(){if(_.dirty||_.props.initialValue!==void 0)return!0;var f=_.props.fieldContext,b=f.getInternalHooks(qr),v=b.getInitialValue;return v(_.getNamePath())!==void 0},_.getErrors=function(){return _.errors},_.getWarnings=function(){return _.warnings},_.isListField=function(){return _.props.isListField},_.isList=function(){return _.props.isList},_.isPreserve=function(){return _.props.preserve},_.getMeta=function(){_.prevValidating=_.isFieldValidating();var f={touched:_.isFieldTouched(),validating:_.prevValidating,errors:_.errors,warnings:_.warnings,name:_.getNamePath(),validated:_.validatePromise===null};return f},_.getOnlyChild=function(f){if(typeof f=="function"){var b=_.getMeta();return Ie(Ie({},_.getOnlyChild(f(_.getControlled(),b,_.props.fieldContext))),{},{isFunction:!0})}var v=Nt(f);return v.length!==1||!g.isValidElement(v[0])?{child:v,isFunction:!1}:{child:v[0],isFunction:!1}},_.getValue=function(f){var b=_.props.fieldContext.getFieldsValue,v=_.getNamePath();return Ci(f||b(!0),v)},_.getControlled=function(){var f=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},b=_.props,v=b.trigger,w=b.validateTrigger,z=b.getValueFromEvent,S=b.normalize,E=b.valuePropName,O=b.getValueProps,P=b.fieldContext,T=w!==void 0?w:P.validateTrigger,A=_.getNamePath(),L=P.getInternalHooks,H=P.getFieldsValue,K=L(qr),ae=K.dispatch,ie=_.getValue(),se=O||function(te){return D({},E,te)},he=f[v],ue=Ie(Ie({},f),se(ie));ue[v]=function(){_.touched=!0,_.dirty=!0,_.triggerMetaEvent();for(var te,re=arguments.length,le=new Array(re),be=0;be=0&&ue<=ze.length?(v.keys=[].concat(xa(v.keys.slice(0,ue)),[v.id],xa(v.keys.slice(ue))),L([].concat(xa(ze.slice(0,ue)),[he],xa(ze.slice(ue))))):(v.keys=[].concat(xa(v.keys),[v.id]),L([].concat(xa(ze),[he]))),v.id+=1},remove:function(he){var ue=K(),ze=new Set(Array.isArray(he)?he:[he]);ze.size<=0||(v.keys=v.keys.filter(function(te,re){return!ze.has(re)}),L(ue.filter(function(te,re){return!ze.has(re)})))},move:function(he,ue){if(he!==ue){var ze=K();he<0||he>=ze.length||ue<0||ue>=ze.length||(v.keys=uu(v.keys,he,ue),L(uu(ze,he,ue)))}}},ie=A||[];return Array.isArray(ie)||(ie=[]),_(ie.map(function(se,he){var ue=v.keys[he];return ue===void 0&&(v.keys[he]=v.id,ue=v.keys[he],v.id+=1),{name:he,key:ue,isListField:!0}}),ae,P)})))},Jr=sk;function Ol(e){var a=!1,n=e.length,o=[];return e.length?new Promise(function(_,l){e.forEach(function(h,k){h.catch(function(f){return a=!0,f}).then(function(f){n-=1,o[k]=f,!(n>0)&&(a&&l(o),_(o))})})}):Promise.resolve([])}var Zr="__@field_split__";function J_(e){return e.map(function(a){return"".concat(oi(a),":").concat(a)}).join(Zr)}var Pm=function(){function e(){mn(this,e),this.kvs=new Map}return M(e,[{key:"set",value:function(n,o){this.kvs.set(J_(n),o)}},{key:"get",value:function(n){return this.kvs.get(J_(n))}},{key:"update",value:function(n,o){var _=this.get(n),l=o(_);l?this.set(n,l):this.delete(n)}},{key:"delete",value:function(n){this.kvs.delete(J_(n))}},{key:"map",value:function(n){return xa(this.kvs.entries()).map(function(o){var _=la(o,2),l=_[0],h=_[1],k=l.split(Zr);return n({key:k.map(function(f){var b=f.match(/^([^:]*):(.*)$/),v=la(b,3),w=v[1],z=v[2];return w==="number"?Number(z):z}),value:h})})}},{key:"toJSON",value:function(){var n={};return this.map(function(o){var _=o.key,l=o.value;return n[_.join(".")]=l,null}),n}}]),e}(),et=Pm,uk=["name"],Em=M(function e(a){var n=this;mn(this,e),this.formHooked=!1,this.forceRootUpdate=void 0,this.subscribable=!0,this.store={},this.fieldEntities=[],this.initialValues={},this.callbacks={},this.validateMessages=null,this.preserve=null,this.lastValidatePromise=null,this.getForm=function(){return{getFieldValue:n.getFieldValue,getFieldsValue:n.getFieldsValue,getFieldError:n.getFieldError,getFieldWarning:n.getFieldWarning,getFieldsError:n.getFieldsError,isFieldsTouched:n.isFieldsTouched,isFieldTouched:n.isFieldTouched,isFieldValidating:n.isFieldValidating,isFieldsValidating:n.isFieldsValidating,resetFields:n.resetFields,setFields:n.setFields,setFieldValue:n.setFieldValue,setFieldsValue:n.setFieldsValue,validateFields:n.validateFields,submit:n.submit,_init:!0,getInternalHooks:n.getInternalHooks}},this.getInternalHooks=function(o){return o===qr?(n.formHooked=!0,{dispatch:n.dispatch,initEntityValue:n.initEntityValue,registerField:n.registerField,useSubscribe:n.useSubscribe,setInitialValues:n.setInitialValues,destroyForm:n.destroyForm,setCallbacks:n.setCallbacks,setValidateMessages:n.setValidateMessages,getFields:n.getFields,setPreserve:n.setPreserve,getInitialValue:n.getInitialValue,registerWatch:n.registerWatch}):(vn(!1,"`getInternalHooks` is internal usage. Should not call directly."),null)},this.useSubscribe=function(o){n.subscribable=o},this.prevWithoutPreserves=null,this.setInitialValues=function(o,_){if(n.initialValues=o||{},_){var l,h=So({},o,n.store);(l=n.prevWithoutPreserves)===null||l===void 0||l.map(function(k){var f=k.key;h=Fi(h,f,Ci(o,f))}),n.prevWithoutPreserves=null,n.updateStore(h)}},this.destroyForm=function(){var o=new et;n.getFieldEntities(!0).forEach(function(_){n.isMergedPreserve(_.isPreserve())||o.set(_.getNamePath(),!0)}),n.prevWithoutPreserves=o},this.getInitialValue=function(o){var _=Ci(n.initialValues,o);return o.length?od(_):_},this.setCallbacks=function(o){n.callbacks=o},this.setValidateMessages=function(o){n.validateMessages=o},this.setPreserve=function(o){n.preserve=o},this.watchList=[],this.registerWatch=function(o){return n.watchList.push(o),function(){n.watchList=n.watchList.filter(function(_){return _!==o})}},this.notifyWatch=function(){var o=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];if(n.watchList.length){var _=n.getFieldsValue(),l=n.getFieldsValue(!0);n.watchList.forEach(function(h){h(_,l,o)})}},this.timeoutId=null,this.warningUnhooked=function(){},this.updateStore=function(o){n.store=o},this.getFieldEntities=function(){var o=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1;return o?n.fieldEntities.filter(function(_){return _.getNamePath().length}):n.fieldEntities},this.getFieldsMap=function(){var o=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1,_=new et;return n.getFieldEntities(o).forEach(function(l){var h=l.getNamePath();_.set(h,l)}),_},this.getFieldEntitiesForNamePathList=function(o){if(!o)return n.getFieldEntities(!0);var _=n.getFieldsMap(!0);return o.map(function(l){var h=hi(l);return _.get(h)||{INVALIDATE_NAME_PATH:hi(l)}})},this.getFieldsValue=function(o,_){if(n.warningUnhooked(),o===!0&&!_)return n.store;var l=n.getFieldEntitiesForNamePathList(Array.isArray(o)?o:null),h=[];return l.forEach(function(k){var f,b="INVALIDATE_NAME_PATH"in k?k.INVALIDATE_NAME_PATH:k.getNamePath();if(!(!o&&(!((f=k.isListField)===null||f===void 0)&&f.call(k))))if(!_)h.push(b);else{var v="getMeta"in k?k.getMeta():null;_(v)&&h.push(b)}}),wm(n.store,h.map(hi))},this.getFieldValue=function(o){n.warningUnhooked();var _=hi(o);return Ci(n.store,_)},this.getFieldsError=function(o){n.warningUnhooked();var _=n.getFieldEntitiesForNamePathList(o);return _.map(function(l,h){return l&&!("INVALIDATE_NAME_PATH"in l)?{name:l.getNamePath(),errors:l.getErrors(),warnings:l.getWarnings()}:{name:hi(o[h]),errors:[],warnings:[]}})},this.getFieldError=function(o){n.warningUnhooked();var _=hi(o),l=n.getFieldsError([_])[0];return l.errors},this.getFieldWarning=function(o){n.warningUnhooked();var _=hi(o),l=n.getFieldsError([_])[0];return l.warnings},this.isFieldsTouched=function(){n.warningUnhooked();for(var o=arguments.length,_=new Array(o),l=0;l0&&arguments[0]!==void 0?arguments[0]:{},_=new et,l=n.getFieldEntities(!0);l.forEach(function(f){var b=f.props.initialValue,v=f.getNamePath();if(b!==void 0){var w=_.get(v)||new Set;w.add({entity:f,value:b}),_.set(v,w)}});var h=function(b){b.forEach(function(v){var w=v.props.initialValue;if(w!==void 0){var z=v.getNamePath(),S=n.getInitialValue(z);if(S!==void 0)vn(!1,"Form already set 'initialValues' with path '".concat(z.join("."),"'. Field can not overwrite it."));else{var E=_.get(z);if(E&&E.size>1)vn(!1,"Multiple Field with path '".concat(z.join("."),"' set 'initialValue'. Can not decide which one to pick."));else if(E){var O=n.getFieldValue(z);(!o.skipExist||O===void 0)&&n.updateStore(Fi(n.store,z,xa(E)[0].value))}}}})},k;o.entities?k=o.entities:o.namePathList?(k=[],o.namePathList.forEach(function(f){var b=_.get(f);if(b){var v;(v=k).push.apply(v,xa(xa(b).map(function(w){return w.entity})))}})):k=l,h(k)},this.resetFields=function(o){n.warningUnhooked();var _=n.store;if(!o){n.updateStore(So({},n.initialValues)),n.resetWithFieldInitialValue(),n.notifyObservers(_,null,{type:"reset"}),n.notifyWatch();return}var l=o.map(hi);l.forEach(function(h){var k=n.getInitialValue(h);n.updateStore(Fi(n.store,h,k))}),n.resetWithFieldInitialValue({namePathList:l}),n.notifyObservers(_,l,{type:"reset"}),n.notifyWatch(l)},this.setFields=function(o){n.warningUnhooked();var _=n.store,l=[];o.forEach(function(h){var k=h.name,f=Ai(h,uk),b=hi(k);l.push(b),"value"in f&&n.updateStore(Fi(n.store,b,f.value)),n.notifyObservers(_,[b],{type:"setField",data:h})}),n.notifyWatch(l)},this.getFields=function(){var o=n.getFieldEntities(!0),_=o.map(function(l){var h=l.getNamePath(),k=l.getMeta(),f=Ie(Ie({},k),{},{name:h,value:n.getFieldValue(h)});return Object.defineProperty(f,"originRCField",{value:!0}),f});return _},this.initEntityValue=function(o){var _=o.props.initialValue;if(_!==void 0){var l=o.getNamePath(),h=Ci(n.store,l);h===void 0&&n.updateStore(Fi(n.store,l,_))}},this.isMergedPreserve=function(o){var _=o!==void 0?o:n.preserve;return _!=null?_:!0},this.registerField=function(o){n.fieldEntities.push(o);var _=o.getNamePath();if(n.notifyWatch([_]),o.props.initialValue!==void 0){var l=n.store;n.resetWithFieldInitialValue({entities:[o],skipExist:!0}),n.notifyObservers(l,[o.getNamePath()],{type:"valueUpdate",source:"internal"})}return function(h,k){var f=arguments.length>2&&arguments[2]!==void 0?arguments[2]:[];if(n.fieldEntities=n.fieldEntities.filter(function(w){return w!==o}),!n.isMergedPreserve(k)&&(!h||f.length>1)){var b=h?void 0:n.getInitialValue(_);if(_.length&&n.getFieldValue(_)!==b&&n.fieldEntities.every(function(w){return!jm(w.getNamePath(),_)})){var v=n.store;n.updateStore(Fi(v,_,b,!0)),n.notifyObservers(v,[_],{type:"remove"}),n.triggerDependenciesUpdate(v,_)}}n.notifyWatch([_])}},this.dispatch=function(o){switch(o.type){case"updateValue":{var _=o.namePath,l=o.value;n.updateValue(_,l);break}case"validateField":{var h=o.namePath,k=o.triggerName;n.validateFields([h],{triggerName:k});break}default:}},this.notifyObservers=function(o,_,l){if(n.subscribable){var h=Ie(Ie({},l),{},{store:n.getFieldsValue(!0)});n.getFieldEntities().forEach(function(k){var f=k.onStoreChange;f(o,_,h)})}else n.forceRootUpdate()},this.triggerDependenciesUpdate=function(o,_){var l=n.getDependencyChildrenFields(_);return l.length&&n.validateFields(l),n.notifyObservers(o,l,{type:"dependenciesUpdate",relatedFields:[_].concat(xa(l))}),l},this.updateValue=function(o,_){var l=hi(o),h=n.store;n.updateStore(Fi(n.store,l,_)),n.notifyObservers(h,[l],{type:"valueUpdate",source:"internal"}),n.notifyWatch([l]);var k=n.triggerDependenciesUpdate(h,l),f=n.callbacks.onValuesChange;if(f){var b=wm(n.store,[l]);f(b,n.getFieldsValue())}n.triggerOnFieldsChange([l].concat(xa(k)))},this.setFieldsValue=function(o){n.warningUnhooked();var _=n.store;if(o){var l=So(n.store,o);n.updateStore(l)}n.notifyObservers(_,null,{type:"valueUpdate",source:"external"}),n.notifyWatch()},this.setFieldValue=function(o,_){n.setFields([{name:o,value:_}])},this.getDependencyChildrenFields=function(o){var _=new Set,l=[],h=new et;n.getFieldEntities().forEach(function(f){var b=f.props.dependencies;(b||[]).forEach(function(v){var w=hi(v);h.update(w,function(){var z=arguments.length>0&&arguments[0]!==void 0?arguments[0]:new Set;return z.add(f),z})})});var k=function f(b){var v=h.get(b)||new Set;v.forEach(function(w){if(!_.has(w)){_.add(w);var z=w.getNamePath();w.isFieldDirty()&&z.length&&(l.push(z),f(z))}})};return k(o),l},this.triggerOnFieldsChange=function(o,_){var l=n.callbacks.onFieldsChange;if(l){var h=n.getFields();if(_){var k=new et;_.forEach(function(b){var v=b.name,w=b.errors;k.set(v,w)}),h.forEach(function(b){b.errors=k.get(b.name)||b.errors})}var f=h.filter(function(b){var v=b.name;return Ht(o,v)});l(f,h)}},this.validateFields=function(o,_){n.warningUnhooked();var l=!!o,h=l?o.map(hi):[],k=[];n.getFieldEntities(!0).forEach(function(v){if(l||h.push(v.getNamePath()),_!=null&&_.recursive&&l){var w=v.getNamePath();w.every(function(E,O){return o[O]===E||o[O]===void 0})&&h.push(w)}if(!(!v.props.rules||!v.props.rules.length)){var z=v.getNamePath();if(!l||Ht(h,z)){var S=v.validateRules(Ie({validateMessages:Ie(Ie({},su),n.validateMessages)},_));k.push(S.then(function(){return{name:z,errors:[],warnings:[]}}).catch(function(E){var O,P=[],T=[];return(O=E.forEach)===null||O===void 0||O.call(E,function(A){var L=A.rule.warningOnly,H=A.errors;L?T.push.apply(T,xa(H)):P.push.apply(P,xa(H))}),P.length?Promise.reject({name:z,errors:P,warnings:T}):{name:z,errors:P,warnings:T}}))}}});var f=Ol(k);n.lastValidatePromise=f,f.catch(function(v){return v}).then(function(v){var w=v.map(function(z){var S=z.name;return S});n.notifyObservers(n.store,w,{type:"validateFinish"}),n.triggerOnFieldsChange(w,v)});var b=f.then(function(){return n.lastValidatePromise===f?Promise.resolve(n.getFieldsValue(h)):Promise.reject([])}).catch(function(v){var w=v.filter(function(z){return z&&z.errors.length});return Promise.reject({values:n.getFieldsValue(h),errorFields:w,outOfDate:n.lastValidatePromise!==f})});return b.catch(function(v){return v}),n.triggerOnFieldsChange(h),b},this.submit=function(){n.warningUnhooked(),n.validateFields().then(function(o){var _=n.callbacks.onFinish;if(_)try{_(o)}catch(l){console.error(l)}}).catch(function(o){var _=n.callbacks.onFinishFailed;_&&_(o)})},this.forceRootUpdate=a});function lk(e){var a=g.useRef(),n=g.useState({}),o=la(n,2),_=o[1];if(!a.current)if(e)a.current=e;else{var l=function(){_({})},h=new Em(l);a.current=h.getForm()}return[a.current]}var Om=lk,Il=g.createContext({triggerFormChange:function(){},triggerFormFinish:function(){},registerForm:function(){},unregisterForm:function(){}}),lu=function(a){var n=a.validateMessages,o=a.onFormChange,_=a.onFormFinish,l=a.children,h=g.useContext(Il),k=g.useRef({});return g.createElement(Il.Provider,{value:Ie(Ie({},h),{},{validateMessages:Ie(Ie({},h.validateMessages),n),triggerFormChange:function(b,v){o&&o(b,{changedFields:v,forms:k.current}),h.triggerFormChange(b,v)},triggerFormFinish:function(b,v){_&&_(b,{values:v,forms:k.current}),h.triggerFormFinish(b,v)},registerForm:function(b,v){b&&(k.current=Ie(Ie({},k.current),{},D({},b,v))),h.registerForm(b,v)},unregisterForm:function(b){var v=Ie({},k.current);delete v[b],k.current=v,h.unregisterForm(b)}})},l)},Dl=Il,cd=["name","initialValues","fields","form","preserve","children","component","validateMessages","validateTrigger","onValuesChange","onFieldsChange","onFinish","onFinishFailed"],Im=function(a,n){var o=a.name,_=a.initialValues,l=a.fields,h=a.form,k=a.preserve,f=a.children,b=a.component,v=b===void 0?"form":b,w=a.validateMessages,z=a.validateTrigger,S=z===void 0?"onChange":z,E=a.onValuesChange,O=a.onFieldsChange,P=a.onFinish,T=a.onFinishFailed,A=Ai(a,cd),L=g.useContext(Dl),H=Om(h),K=la(H,1),ae=K[0],ie=ae.getInternalHooks(qr),se=ie.useSubscribe,he=ie.setInitialValues,ue=ie.setCallbacks,ze=ie.setValidateMessages,te=ie.setPreserve,re=ie.destroyForm;g.useImperativeHandle(n,function(){return ae}),g.useEffect(function(){return L.registerForm(o,ae),function(){L.unregisterForm(o)}},[L,ae,o]),ze(Ie(Ie({},L.validateMessages),w)),ue({onValuesChange:E,onFieldsChange:function(Ge){if(L.triggerFormChange(o,Ge),O){for(var $e=arguments.length,ra=new Array($e>1?$e-1:0),Xe=1;Xe<$e;Xe++)ra[Xe-1]=arguments[Xe];O.apply(void 0,[Ge].concat(ra))}},onFinish:function(Ge){L.triggerFormFinish(o,Ge),P&&P(Ge)},onFinishFailed:T}),te(k);var le=g.useRef(null);he(_,!le.current),le.current||(le.current=!0),g.useEffect(function(){return re},[]);var be,Ve=typeof f=="function";if(Ve){var He=ae.getFieldsValue(!0);be=f(He,ae)}else be=f;se(!Ve);var ea=g.useRef();g.useEffect(function(){rd(ea.current||[],l||[])||ae.setFields(l||[]),ea.current=l},[l,ae]);var ca=g.useMemo(function(){return Ie(Ie({},ae),{},{validateTrigger:S})},[ae,S]),Sa=g.createElement(q_.Provider,{value:ca},be);return v===!1?Sa:g.createElement(v,gi({},A,{onSubmit:function(Ge){Ge.preventDefault(),Ge.stopPropagation(),ae.submit()},onReset:function(Ge){var $e;Ge.preventDefault(),ae.resetFields(),($e=A.onReset)===null||$e===void 0||$e.call(A,Ge)}}),Sa)},ck=Im;function Dm(e){try{return JSON.stringify(e)}catch(a){return Math.random()}}var Tm=function(){};function Tl(){for(var e=arguments.length,a=new Array(e),n=0;n{const{locale:a={},children:n,_ANT_MARK__:o}=e;g.useEffect(()=>(oe(a&&a.Modal),()=>{oe()}),[a]);const _=g.useMemo(()=>Object.assign(Object.assign({},a),{exist:!0}),[a]);return g.createElement(Qe.Provider,{value:_},n)};const ja="anticon",Pa=(e,a)=>a||(e?`ant-${e}`:"ant"),Ha=g.createContext({getPrefixCls:Pa,iconPrefixCls:ja}),{Consumer:Pe}=Ha,ke=`-ant-${Date.now()}-${Math.random()}`;function Ee(e,a){const n={},o=(h,k)=>{let f=h.clone();return f=(k==null?void 0:k(f))||f,f.toRgbString()},_=(h,k)=>{const f=new Xi(h),b=Qi(f.toRgbString());n[`${k}-color`]=o(f),n[`${k}-color-disabled`]=b[1],n[`${k}-color-hover`]=b[4],n[`${k}-color-active`]=b[6],n[`${k}-color-outline`]=f.clone().setAlpha(.2).toRgbString(),n[`${k}-color-deprecated-bg`]=b[0],n[`${k}-color-deprecated-border`]=b[2]};if(a.primaryColor){_(a.primaryColor,"primary");const h=new Xi(a.primaryColor),k=Qi(h.toRgbString());k.forEach((b,v)=>{n[`primary-${v+1}`]=b}),n["primary-color-deprecated-l-35"]=o(h,b=>b.lighten(35)),n["primary-color-deprecated-l-20"]=o(h,b=>b.lighten(20)),n["primary-color-deprecated-t-20"]=o(h,b=>b.tint(20)),n["primary-color-deprecated-t-50"]=o(h,b=>b.tint(50)),n["primary-color-deprecated-f-12"]=o(h,b=>b.setAlpha(b.getAlpha()*.12));const f=new Xi(k[0]);n["primary-color-active-deprecated-f-30"]=o(f,b=>b.setAlpha(b.getAlpha()*.3)),n["primary-color-active-deprecated-d-02"]=o(f,b=>b.darken(2))}return a.successColor&&_(a.successColor,"success"),a.warningColor&&_(a.warningColor,"warning"),a.errorColor&&_(a.errorColor,"error"),a.infoColor&&_(a.infoColor,"info"),` +`).replace(/\s*\/\/.*$/gm,"").replace(/\n/g,"").trim(),l=new RegExp("(?:^"+n+"$)|(?:^"+_+"$)"),h=new RegExp("^"+n+"$"),k=new RegExp("^"+_+"$"),f=function(H){return H&&H.exact?l:new RegExp("(?:"+a(H)+n+a(H)+")|(?:"+a(H)+_+a(H)+")","g")};f.v4=function(L){return L&&L.exact?h:new RegExp(""+a(L)+n+a(L),"g")},f.v6=function(L){return L&&L.exact?k:new RegExp(""+a(L)+_+a(L),"g")};var b="(?:(?:[a-z]+:)?//)",v="(?:\\S+(?::\\S*)?@)?",w=f.v4().source,z=f.v6().source,S="(?:(?:[a-z\\u00a1-\\uffff0-9][-_]*)*[a-z\\u00a1-\\uffff0-9]+)",E="(?:\\.(?:[a-z\\u00a1-\\uffff0-9]-*)*[a-z\\u00a1-\\uffff0-9]+)*",O="(?:\\.(?:[a-z\\u00a1-\\uffff]{2,}))",P="(?::\\d{2,5})?",T='(?:[/?#][^\\s"]*)?',A="(?:"+b+"|www\\.)"+v+"(?:localhost|"+w+"|"+z+"|"+S+E+O+")"+P+T;return ru=new RegExp("(?:^"+A+"$)","i"),ru},nd={email:/^(([^<>()\[\]\\.,;:\s@"]+(\.[^<>()\[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}])|(([a-zA-Z\-0-9\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]+\.)+[a-zA-Z\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]{2,}))$/,hex:/^#?([a-f0-9]{6}|[a-f0-9]{3})$/i},Yr={integer:function(a){return Yr.number(a)&&parseInt(a,10)===a},float:function(a){return Yr.number(a)&&!Yr.integer(a)},array:function(a){return Array.isArray(a)},regexp:function(a){if(a instanceof RegExp)return!0;try{return!!new RegExp(a)}catch(n){return!1}},date:function(a){return typeof a.getTime=="function"&&typeof a.getMonth=="function"&&typeof a.getYear=="function"&&!isNaN(a.getTime())},number:function(a){return isNaN(a)?!1:typeof a=="number"},object:function(a){return typeof a=="object"&&!Yr.array(a)},method:function(a){return typeof a=="function"},email:function(a){return typeof a=="string"&&a.length<=320&&!!a.match(nd.email)},url:function(a){return typeof a=="string"&&a.length<=2048&&!!a.match(id())},hex:function(a){return typeof a=="string"&&!!a.match(nd.hex)}},km=function(a,n,o,_,l){if(a.required&&n===void 0){gm(a,n,o,_,l);return}var h=["integer","float","array","regexp","object","method","email","number","date","url","hex"],k=a.type;h.indexOf(k)>-1?Yr[k](n)||_.push(Tn(l.messages.types[k],a.fullField,a.type)):k&&typeof n!==a.type&&_.push(Tn(l.messages.types[k],a.fullField,a.type))},so=function(a,n,o,_,l){var h=typeof a.len=="number",k=typeof a.min=="number",f=typeof a.max=="number",b=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,v=n,w=null,z=typeof n=="number",S=typeof n=="string",E=Array.isArray(n);if(z?w="number":S?w="string":E&&(w="array"),!w)return!1;E&&(v=n.length),S&&(v=n.replace(b,"_").length),h?v!==a.len&&_.push(Tn(l.messages[w].len,a.fullField,a.len)):k&&!f&&va.max?_.push(Tn(l.messages[w].max,a.fullField,a.max)):k&&f&&(va.max)&&_.push(Tn(l.messages[w].range,a.fullField,a.min,a.max))},ei="enum",Zi=function(a,n,o,_,l){a[ei]=Array.isArray(a[ei])?a[ei]:[],a[ei].indexOf(n)===-1&&_.push(Tn(l.messages[ei],a.fullField,a[ei].join(", ")))},Hi=function(a,n,o,_,l){if(a.pattern){if(a.pattern instanceof RegExp)a.pattern.lastIndex=0,a.pattern.test(n)||_.push(Tn(l.messages.pattern.mismatch,a.fullField,n,a.pattern));else if(typeof a.pattern=="string"){var h=new RegExp(a.pattern);h.test(n)||_.push(Tn(l.messages.pattern.mismatch,a.fullField,n,a.pattern))}}},Fa={required:gm,whitespace:ad,type:km,range:so,enum:Zi,pattern:Hi},Xn=function(a,n,o,_,l){var h=[],k=a.required||!a.required&&_.hasOwnProperty(a.field);if(k){if(Mi(n,"string")&&!a.required)return o();Fa.required(a,n,_,h,l,"string"),Mi(n,"string")||(Fa.type(a,n,_,h,l),Fa.range(a,n,_,h,l),Fa.pattern(a,n,_,h,l),a.whitespace===!0&&Fa.whitespace(a,n,_,h,l))}o(h)},X_=function(a,n,o,_,l){var h=[],k=a.required||!a.required&&_.hasOwnProperty(a.field);if(k){if(Mi(n)&&!a.required)return o();Fa.required(a,n,_,h,l),n!==void 0&&Fa.type(a,n,_,h,l)}o(h)},Yi=function(a,n,o,_,l){var h=[],k=a.required||!a.required&&_.hasOwnProperty(a.field);if(k){if(n===""&&(n=void 0),Mi(n)&&!a.required)return o();Fa.required(a,n,_,h,l),n!==void 0&&(Fa.type(a,n,_,h,l),Fa.range(a,n,_,h,l))}o(h)},tu=function(a,n,o,_,l){var h=[],k=a.required||!a.required&&_.hasOwnProperty(a.field);if(k){if(Mi(n)&&!a.required)return o();Fa.required(a,n,_,h,l),n!==void 0&&Fa.type(a,n,_,h,l)}o(h)},Lt=function(a,n,o,_,l){var h=[],k=a.required||!a.required&&_.hasOwnProperty(a.field);if(k){if(Mi(n)&&!a.required)return o();Fa.required(a,n,_,h,l),Mi(n)||Fa.type(a,n,_,h,l)}o(h)},wl=function(a,n,o,_,l){var h=[],k=a.required||!a.required&&_.hasOwnProperty(a.field);if(k){if(Mi(n)&&!a.required)return o();Fa.required(a,n,_,h,l),n!==void 0&&(Fa.type(a,n,_,h,l),Fa.range(a,n,_,h,l))}o(h)},pm=function(a,n,o,_,l){var h=[],k=a.required||!a.required&&_.hasOwnProperty(a.field);if(k){if(Mi(n)&&!a.required)return o();Fa.required(a,n,_,h,l),n!==void 0&&(Fa.type(a,n,_,h,l),Fa.range(a,n,_,h,l))}o(h)},_u=function(a,n,o,_,l){var h=[],k=a.required||!a.required&&_.hasOwnProperty(a.field);if(k){if(n==null&&!a.required)return o();Fa.required(a,n,_,h,l,"array"),n!=null&&(Fa.type(a,n,_,h,l),Fa.range(a,n,_,h,l))}o(h)},Rn=function(a,n,o,_,l){var h=[],k=a.required||!a.required&&_.hasOwnProperty(a.field);if(k){if(Mi(n)&&!a.required)return o();Fa.required(a,n,_,h,l),n!==void 0&&Fa.type(a,n,_,h,l)}o(h)},fm="enum",Y_=function(a,n,o,_,l){var h=[],k=a.required||!a.required&&_.hasOwnProperty(a.field);if(k){if(Mi(n)&&!a.required)return o();Fa.required(a,n,_,h,l),n!==void 0&&Fa[fm](a,n,_,h,l)}o(h)},cr=function(a,n,o,_,l){var h=[],k=a.required||!a.required&&_.hasOwnProperty(a.field);if(k){if(Mi(n,"string")&&!a.required)return o();Fa.required(a,n,_,h,l),Mi(n,"string")||Fa.pattern(a,n,_,h,l)}o(h)},jl=function(a,n,o,_,l){var h=[],k=a.required||!a.required&&_.hasOwnProperty(a.field);if(k){if(Mi(n,"date")&&!a.required)return o();if(Fa.required(a,n,_,h,l),!Mi(n,"date")){var f;n instanceof Date?f=n:f=new Date(n),Fa.type(a,f,_,h,l),f&&Fa.range(a,f.getTime(),_,h,l)}}o(h)},ym=function(a,n,o,_,l){var h=[],k=Array.isArray(n)?"array":typeof n;Fa.required(a,n,_,h,l,k),o(h)},Ko=function(a,n,o,_,l){var h=a.type,k=[],f=a.required||!a.required&&_.hasOwnProperty(a.field);if(f){if(Mi(n,h)&&!a.required)return o();Fa.required(a,n,_,k,l,h),Mi(n,h)||Fa.type(a,n,_,k,l)}o(k)},zl=function(a,n,o,_,l){var h=[],k=a.required||!a.required&&_.hasOwnProperty(a.field);if(k){if(Mi(n)&&!a.required)return o();Fa.required(a,n,_,h,l)}o(h)},uo={string:Xn,method:X_,number:Yi,boolean:tu,regexp:Lt,integer:wl,float:pm,array:_u,object:Rn,enum:Y_,pattern:cr,date:jl,url:Ko,hex:Ko,email:Ko,required:ym,any:zl};function K_(){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 Ut=K_(),$t=function(){function e(n){this.rules=null,this._messages=Ut,this.define(n)}var a=e.prototype;return a.define=function(o){var _=this;if(!o)throw new Error("Cannot configure a schema with no rules");if(typeof o!="object"||Array.isArray(o))throw new Error("Rules must be an object");this.rules={},Object.keys(o).forEach(function(l){var h=o[l];_.rules[l]=Array.isArray(h)?h:[h]})},a.messages=function(o){return o&&(this._messages=ed(K_(),o)),this._messages},a.validate=function(o,_,l){var h=this;_===void 0&&(_={}),l===void 0&&(l=function(){});var k=o,f=_,b=l;if(typeof f=="function"&&(b=f,f={}),!this.rules||Object.keys(this.rules).length===0)return b&&b(null,k),Promise.resolve(k);function v(O){var P=[],T={};function A(H){if(Array.isArray(H)){var K;P=(K=P).concat.apply(K,H)}else P.push(H)}for(var L=0;L3&&arguments[3]!==void 0?arguments[3]:!1;return a.length&&o&&n===void 0&&!Ci(e,a.slice(0,-1))?e:lo(e,a,n,o)}function xl(e){return Array.isArray(e)?vm(e):oi(e)==="object"&&e!==null?bm(e):e}function bm(e){if(Object.getPrototypeOf(e)===Object.prototype){var a={};for(var n in e)a[n]=xl(e[n]);return a}return e}function vm(e){return e.map(function(a){return xl(a)})}var od=xl;function hi(e){return cm(e)}function wm(e,a){var n={};return a.forEach(function(o){var _=Ci(e,o);n=Fi(n,o,_)}),n}function Ht(e,a){return e&&e.some(function(n){return jm(n,a)})}function Qr(e){return oi(e)==="object"&&e!==null&&Object.getPrototypeOf(e)===Object.prototype}function Cl(e,a){var n=Array.isArray(e)?xa(e):Ie({},e);return a&&Object.keys(a).forEach(function(o){var _=n[o],l=a[o],h=Qr(_)&&Qr(l);n[o]=h?Cl(_,l||{}):od(l)}),n}function So(e){for(var a=arguments.length,n=new Array(a>1?a-1:0),o=1;o=o||n<0||n>=o)return e;var _=e[a],l=a-n;return l>0?[].concat(xa(e.slice(0,n)),[_],xa(e.slice(n,a)),xa(e.slice(a+1,o))):l<0?[].concat(xa(e.slice(0,a)),xa(e.slice(a+1,n+1)),[_],xa(e.slice(n+1,o))):e}var td=$t;function tk(e,a){return e.replace(/\$\{\w+\}/g,function(n){var o=n.slice(2,-1);return a[o]})}var xm="CODE_LOGIC_ERROR";function Sl(e,a,n,o,_){return mr.apply(this,arguments)}function mr(){return mr=At(Gn().mark(function e(a,n,o,_,l){var h,k,f,b,v,w,z,S,E;return Gn().wrap(function(P){for(;;)switch(P.prev=P.next){case 0:return h=Ie({},o),delete h.ruleIndex,td.warning=function(){},h.validator&&(k=h.validator,h.validator=function(){try{return k.apply(void 0,arguments)}catch(T){return console.error(T),Promise.reject(xm)}}),f=null,h&&h.type==="array"&&h.defaultField&&(f=h.defaultField,delete h.defaultField),b=new td(D({},a,[h])),v=So({},su,_.validateMessages),b.messages(v),w=[],P.prev=10,P.next=13,Promise.resolve(b.validate(D({},a,n),Ie({},_)));case 13:P.next=18;break;case 15:P.prev=15,P.t0=P.catch(10),P.t0.errors&&(w=P.t0.errors.map(function(T,A){var L=T.message,H=L===xm?v.default:L;return g.isValidElement(H)?g.cloneElement(H,{key:"error_".concat(A)}):H}));case 18:if(!(!w.length&&f)){P.next=23;break}return P.next=21,Promise.all(n.map(function(T,A){return Sl("".concat(a,".").concat(A),T,f,_,l)}));case 21:return z=P.sent,P.abrupt("return",z.reduce(function(T,A){return[].concat(xa(T),xa(A))},[]));case 23:return S=Ie(Ie({},o),{},{name:a,enum:(o.enum||[]).join(", ")},l),E=w.map(function(T){return typeof T=="string"?tk(T,S):T}),P.abrupt("return",E);case 26:case"end":return P.stop()}},e,null,[[10,15]])})),mr.apply(this,arguments)}function _k(e,a,n,o,_,l){var h=e.join("."),k=n.map(function(v,w){var z=v.validator,S=Ie(Ie({},v),{},{ruleIndex:w});return z&&(S.validator=function(E,O,P){var T=!1,A=function(){for(var K=arguments.length,ae=new Array(K),ie=0;ie0&&arguments[0]!==void 0?arguments[0]:co;if(_.validatePromise===w){var K;_.validatePromise=null;var ae=[],ie=[];(K=H.forEach)===null||K===void 0||K.call(H,function(se){var he=se.rule.warningOnly,ue=se.errors,ze=ue===void 0?co:ue;he?ie.push.apply(ie,xa(ze)):ae.push.apply(ae,xa(ze))}),_.errors=ae,_.warnings=ie,_.triggerMetaEvent(),_.reRender()}}),L});return _.validatePromise=w,_.dirty=!0,_.errors=co,_.warnings=co,_.triggerMetaEvent(),_.reRender(),w},_.isFieldValidating=function(){return!!_.validatePromise},_.isFieldTouched=function(){return _.touched},_.isFieldDirty=function(){if(_.dirty||_.props.initialValue!==void 0)return!0;var f=_.props.fieldContext,b=f.getInternalHooks(qr),v=b.getInitialValue;return v(_.getNamePath())!==void 0},_.getErrors=function(){return _.errors},_.getWarnings=function(){return _.warnings},_.isListField=function(){return _.props.isListField},_.isList=function(){return _.props.isList},_.isPreserve=function(){return _.props.preserve},_.getMeta=function(){_.prevValidating=_.isFieldValidating();var f={touched:_.isFieldTouched(),validating:_.prevValidating,errors:_.errors,warnings:_.warnings,name:_.getNamePath(),validated:_.validatePromise===null};return f},_.getOnlyChild=function(f){if(typeof f=="function"){var b=_.getMeta();return Ie(Ie({},_.getOnlyChild(f(_.getControlled(),b,_.props.fieldContext))),{},{isFunction:!0})}var v=Nt(f);return v.length!==1||!g.isValidElement(v[0])?{child:v,isFunction:!1}:{child:v[0],isFunction:!1}},_.getValue=function(f){var b=_.props.fieldContext.getFieldsValue,v=_.getNamePath();return Ci(f||b(!0),v)},_.getControlled=function(){var f=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},b=_.props,v=b.trigger,w=b.validateTrigger,z=b.getValueFromEvent,S=b.normalize,E=b.valuePropName,O=b.getValueProps,P=b.fieldContext,T=w!==void 0?w:P.validateTrigger,A=_.getNamePath(),L=P.getInternalHooks,H=P.getFieldsValue,K=L(qr),ae=K.dispatch,ie=_.getValue(),se=O||function(te){return D({},E,te)},he=f[v],ue=Ie(Ie({},f),se(ie));ue[v]=function(){_.touched=!0,_.dirty=!0,_.triggerMetaEvent();for(var te,re=arguments.length,le=new Array(re),be=0;be=0&&ue<=ze.length?(v.keys=[].concat(xa(v.keys.slice(0,ue)),[v.id],xa(v.keys.slice(ue))),L([].concat(xa(ze.slice(0,ue)),[he],xa(ze.slice(ue))))):(v.keys=[].concat(xa(v.keys),[v.id]),L([].concat(xa(ze),[he]))),v.id+=1},remove:function(he){var ue=K(),ze=new Set(Array.isArray(he)?he:[he]);ze.size<=0||(v.keys=v.keys.filter(function(te,re){return!ze.has(re)}),L(ue.filter(function(te,re){return!ze.has(re)})))},move:function(he,ue){if(he!==ue){var ze=K();he<0||he>=ze.length||ue<0||ue>=ze.length||(v.keys=uu(v.keys,he,ue),L(uu(ze,he,ue)))}}},ie=A||[];return Array.isArray(ie)||(ie=[]),_(ie.map(function(se,he){var ue=v.keys[he];return ue===void 0&&(v.keys[he]=v.id,ue=v.keys[he],v.id+=1),{name:he,key:ue,isListField:!0}}),ae,P)})))},Jr=sk;function Ol(e){var a=!1,n=e.length,o=[];return e.length?new Promise(function(_,l){e.forEach(function(h,k){h.catch(function(f){return a=!0,f}).then(function(f){n-=1,o[k]=f,!(n>0)&&(a&&l(o),_(o))})})}):Promise.resolve([])}var Zr="__@field_split__";function J_(e){return e.map(function(a){return"".concat(oi(a),":").concat(a)}).join(Zr)}var Pm=function(){function e(){mn(this,e),this.kvs=new Map}return M(e,[{key:"set",value:function(n,o){this.kvs.set(J_(n),o)}},{key:"get",value:function(n){return this.kvs.get(J_(n))}},{key:"update",value:function(n,o){var _=this.get(n),l=o(_);l?this.set(n,l):this.delete(n)}},{key:"delete",value:function(n){this.kvs.delete(J_(n))}},{key:"map",value:function(n){return xa(this.kvs.entries()).map(function(o){var _=la(o,2),l=_[0],h=_[1],k=l.split(Zr);return n({key:k.map(function(f){var b=f.match(/^([^:]*):(.*)$/),v=la(b,3),w=v[1],z=v[2];return w==="number"?Number(z):z}),value:h})})}},{key:"toJSON",value:function(){var n={};return this.map(function(o){var _=o.key,l=o.value;return n[_.join(".")]=l,null}),n}}]),e}(),et=Pm,uk=["name"],Em=M(function e(a){var n=this;mn(this,e),this.formHooked=!1,this.forceRootUpdate=void 0,this.subscribable=!0,this.store={},this.fieldEntities=[],this.initialValues={},this.callbacks={},this.validateMessages=null,this.preserve=null,this.lastValidatePromise=null,this.getForm=function(){return{getFieldValue:n.getFieldValue,getFieldsValue:n.getFieldsValue,getFieldError:n.getFieldError,getFieldWarning:n.getFieldWarning,getFieldsError:n.getFieldsError,isFieldsTouched:n.isFieldsTouched,isFieldTouched:n.isFieldTouched,isFieldValidating:n.isFieldValidating,isFieldsValidating:n.isFieldsValidating,resetFields:n.resetFields,setFields:n.setFields,setFieldValue:n.setFieldValue,setFieldsValue:n.setFieldsValue,validateFields:n.validateFields,submit:n.submit,_init:!0,getInternalHooks:n.getInternalHooks}},this.getInternalHooks=function(o){return o===qr?(n.formHooked=!0,{dispatch:n.dispatch,initEntityValue:n.initEntityValue,registerField:n.registerField,useSubscribe:n.useSubscribe,setInitialValues:n.setInitialValues,destroyForm:n.destroyForm,setCallbacks:n.setCallbacks,setValidateMessages:n.setValidateMessages,getFields:n.getFields,setPreserve:n.setPreserve,getInitialValue:n.getInitialValue,registerWatch:n.registerWatch}):(vn(!1,"`getInternalHooks` is internal usage. Should not call directly."),null)},this.useSubscribe=function(o){n.subscribable=o},this.prevWithoutPreserves=null,this.setInitialValues=function(o,_){if(n.initialValues=o||{},_){var l,h=So({},o,n.store);(l=n.prevWithoutPreserves)===null||l===void 0||l.map(function(k){var f=k.key;h=Fi(h,f,Ci(o,f))}),n.prevWithoutPreserves=null,n.updateStore(h)}},this.destroyForm=function(){var o=new et;n.getFieldEntities(!0).forEach(function(_){n.isMergedPreserve(_.isPreserve())||o.set(_.getNamePath(),!0)}),n.prevWithoutPreserves=o},this.getInitialValue=function(o){var _=Ci(n.initialValues,o);return o.length?od(_):_},this.setCallbacks=function(o){n.callbacks=o},this.setValidateMessages=function(o){n.validateMessages=o},this.setPreserve=function(o){n.preserve=o},this.watchList=[],this.registerWatch=function(o){return n.watchList.push(o),function(){n.watchList=n.watchList.filter(function(_){return _!==o})}},this.notifyWatch=function(){var o=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];if(n.watchList.length){var _=n.getFieldsValue(),l=n.getFieldsValue(!0);n.watchList.forEach(function(h){h(_,l,o)})}},this.timeoutId=null,this.warningUnhooked=function(){},this.updateStore=function(o){n.store=o},this.getFieldEntities=function(){var o=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1;return o?n.fieldEntities.filter(function(_){return _.getNamePath().length}):n.fieldEntities},this.getFieldsMap=function(){var o=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1,_=new et;return n.getFieldEntities(o).forEach(function(l){var h=l.getNamePath();_.set(h,l)}),_},this.getFieldEntitiesForNamePathList=function(o){if(!o)return n.getFieldEntities(!0);var _=n.getFieldsMap(!0);return o.map(function(l){var h=hi(l);return _.get(h)||{INVALIDATE_NAME_PATH:hi(l)}})},this.getFieldsValue=function(o,_){if(n.warningUnhooked(),o===!0&&!_)return n.store;var l=n.getFieldEntitiesForNamePathList(Array.isArray(o)?o:null),h=[];return l.forEach(function(k){var f,b="INVALIDATE_NAME_PATH"in k?k.INVALIDATE_NAME_PATH:k.getNamePath();if(!(!o&&(!((f=k.isListField)===null||f===void 0)&&f.call(k))))if(!_)h.push(b);else{var v="getMeta"in k?k.getMeta():null;_(v)&&h.push(b)}}),wm(n.store,h.map(hi))},this.getFieldValue=function(o){n.warningUnhooked();var _=hi(o);return Ci(n.store,_)},this.getFieldsError=function(o){n.warningUnhooked();var _=n.getFieldEntitiesForNamePathList(o);return _.map(function(l,h){return l&&!("INVALIDATE_NAME_PATH"in l)?{name:l.getNamePath(),errors:l.getErrors(),warnings:l.getWarnings()}:{name:hi(o[h]),errors:[],warnings:[]}})},this.getFieldError=function(o){n.warningUnhooked();var _=hi(o),l=n.getFieldsError([_])[0];return l.errors},this.getFieldWarning=function(o){n.warningUnhooked();var _=hi(o),l=n.getFieldsError([_])[0];return l.warnings},this.isFieldsTouched=function(){n.warningUnhooked();for(var o=arguments.length,_=new Array(o),l=0;l0&&arguments[0]!==void 0?arguments[0]:{},_=new et,l=n.getFieldEntities(!0);l.forEach(function(f){var b=f.props.initialValue,v=f.getNamePath();if(b!==void 0){var w=_.get(v)||new Set;w.add({entity:f,value:b}),_.set(v,w)}});var h=function(b){b.forEach(function(v){var w=v.props.initialValue;if(w!==void 0){var z=v.getNamePath(),S=n.getInitialValue(z);if(S!==void 0)vn(!1,"Form already set 'initialValues' with path '".concat(z.join("."),"'. Field can not overwrite it."));else{var E=_.get(z);if(E&&E.size>1)vn(!1,"Multiple Field with path '".concat(z.join("."),"' set 'initialValue'. Can not decide which one to pick."));else if(E){var O=n.getFieldValue(z);(!o.skipExist||O===void 0)&&n.updateStore(Fi(n.store,z,xa(E)[0].value))}}}})},k;o.entities?k=o.entities:o.namePathList?(k=[],o.namePathList.forEach(function(f){var b=_.get(f);if(b){var v;(v=k).push.apply(v,xa(xa(b).map(function(w){return w.entity})))}})):k=l,h(k)},this.resetFields=function(o){n.warningUnhooked();var _=n.store;if(!o){n.updateStore(So({},n.initialValues)),n.resetWithFieldInitialValue(),n.notifyObservers(_,null,{type:"reset"}),n.notifyWatch();return}var l=o.map(hi);l.forEach(function(h){var k=n.getInitialValue(h);n.updateStore(Fi(n.store,h,k))}),n.resetWithFieldInitialValue({namePathList:l}),n.notifyObservers(_,l,{type:"reset"}),n.notifyWatch(l)},this.setFields=function(o){n.warningUnhooked();var _=n.store,l=[];o.forEach(function(h){var k=h.name,f=Ai(h,uk),b=hi(k);l.push(b),"value"in f&&n.updateStore(Fi(n.store,b,f.value)),n.notifyObservers(_,[b],{type:"setField",data:h})}),n.notifyWatch(l)},this.getFields=function(){var o=n.getFieldEntities(!0),_=o.map(function(l){var h=l.getNamePath(),k=l.getMeta(),f=Ie(Ie({},k),{},{name:h,value:n.getFieldValue(h)});return Object.defineProperty(f,"originRCField",{value:!0}),f});return _},this.initEntityValue=function(o){var _=o.props.initialValue;if(_!==void 0){var l=o.getNamePath(),h=Ci(n.store,l);h===void 0&&n.updateStore(Fi(n.store,l,_))}},this.isMergedPreserve=function(o){var _=o!==void 0?o:n.preserve;return _!=null?_:!0},this.registerField=function(o){n.fieldEntities.push(o);var _=o.getNamePath();if(n.notifyWatch([_]),o.props.initialValue!==void 0){var l=n.store;n.resetWithFieldInitialValue({entities:[o],skipExist:!0}),n.notifyObservers(l,[o.getNamePath()],{type:"valueUpdate",source:"internal"})}return function(h,k){var f=arguments.length>2&&arguments[2]!==void 0?arguments[2]:[];if(n.fieldEntities=n.fieldEntities.filter(function(w){return w!==o}),!n.isMergedPreserve(k)&&(!h||f.length>1)){var b=h?void 0:n.getInitialValue(_);if(_.length&&n.getFieldValue(_)!==b&&n.fieldEntities.every(function(w){return!jm(w.getNamePath(),_)})){var v=n.store;n.updateStore(Fi(v,_,b,!0)),n.notifyObservers(v,[_],{type:"remove"}),n.triggerDependenciesUpdate(v,_)}}n.notifyWatch([_])}},this.dispatch=function(o){switch(o.type){case"updateValue":{var _=o.namePath,l=o.value;n.updateValue(_,l);break}case"validateField":{var h=o.namePath,k=o.triggerName;n.validateFields([h],{triggerName:k});break}default:}},this.notifyObservers=function(o,_,l){if(n.subscribable){var h=Ie(Ie({},l),{},{store:n.getFieldsValue(!0)});n.getFieldEntities().forEach(function(k){var f=k.onStoreChange;f(o,_,h)})}else n.forceRootUpdate()},this.triggerDependenciesUpdate=function(o,_){var l=n.getDependencyChildrenFields(_);return l.length&&n.validateFields(l),n.notifyObservers(o,l,{type:"dependenciesUpdate",relatedFields:[_].concat(xa(l))}),l},this.updateValue=function(o,_){var l=hi(o),h=n.store;n.updateStore(Fi(n.store,l,_)),n.notifyObservers(h,[l],{type:"valueUpdate",source:"internal"}),n.notifyWatch([l]);var k=n.triggerDependenciesUpdate(h,l),f=n.callbacks.onValuesChange;if(f){var b=wm(n.store,[l]);f(b,n.getFieldsValue())}n.triggerOnFieldsChange([l].concat(xa(k)))},this.setFieldsValue=function(o){n.warningUnhooked();var _=n.store;if(o){var l=So(n.store,o);n.updateStore(l)}n.notifyObservers(_,null,{type:"valueUpdate",source:"external"}),n.notifyWatch()},this.setFieldValue=function(o,_){n.setFields([{name:o,value:_}])},this.getDependencyChildrenFields=function(o){var _=new Set,l=[],h=new et;n.getFieldEntities().forEach(function(f){var b=f.props.dependencies;(b||[]).forEach(function(v){var w=hi(v);h.update(w,function(){var z=arguments.length>0&&arguments[0]!==void 0?arguments[0]:new Set;return z.add(f),z})})});var k=function f(b){var v=h.get(b)||new Set;v.forEach(function(w){if(!_.has(w)){_.add(w);var z=w.getNamePath();w.isFieldDirty()&&z.length&&(l.push(z),f(z))}})};return k(o),l},this.triggerOnFieldsChange=function(o,_){var l=n.callbacks.onFieldsChange;if(l){var h=n.getFields();if(_){var k=new et;_.forEach(function(b){var v=b.name,w=b.errors;k.set(v,w)}),h.forEach(function(b){b.errors=k.get(b.name)||b.errors})}var f=h.filter(function(b){var v=b.name;return Ht(o,v)});l(f,h)}},this.validateFields=function(o,_){n.warningUnhooked();var l=!!o,h=l?o.map(hi):[],k=[];n.getFieldEntities(!0).forEach(function(v){if(l||h.push(v.getNamePath()),_!=null&&_.recursive&&l){var w=v.getNamePath();w.every(function(E,O){return o[O]===E||o[O]===void 0})&&h.push(w)}if(!(!v.props.rules||!v.props.rules.length)){var z=v.getNamePath();if(!l||Ht(h,z)){var S=v.validateRules(Ie({validateMessages:Ie(Ie({},su),n.validateMessages)},_));k.push(S.then(function(){return{name:z,errors:[],warnings:[]}}).catch(function(E){var O,P=[],T=[];return(O=E.forEach)===null||O===void 0||O.call(E,function(A){var L=A.rule.warningOnly,H=A.errors;L?T.push.apply(T,xa(H)):P.push.apply(P,xa(H))}),P.length?Promise.reject({name:z,errors:P,warnings:T}):{name:z,errors:P,warnings:T}}))}}});var f=Ol(k);n.lastValidatePromise=f,f.catch(function(v){return v}).then(function(v){var w=v.map(function(z){var S=z.name;return S});n.notifyObservers(n.store,w,{type:"validateFinish"}),n.triggerOnFieldsChange(w,v)});var b=f.then(function(){return n.lastValidatePromise===f?Promise.resolve(n.getFieldsValue(h)):Promise.reject([])}).catch(function(v){var w=v.filter(function(z){return z&&z.errors.length});return Promise.reject({values:n.getFieldsValue(h),errorFields:w,outOfDate:n.lastValidatePromise!==f})});return b.catch(function(v){return v}),n.triggerOnFieldsChange(h),b},this.submit=function(){n.warningUnhooked(),n.validateFields().then(function(o){var _=n.callbacks.onFinish;if(_)try{_(o)}catch(l){console.error(l)}}).catch(function(o){var _=n.callbacks.onFinishFailed;_&&_(o)})},this.forceRootUpdate=a});function lk(e){var a=g.useRef(),n=g.useState({}),o=la(n,2),_=o[1];if(!a.current)if(e)a.current=e;else{var l=function(){_({})},h=new Em(l);a.current=h.getForm()}return[a.current]}var Om=lk,Il=g.createContext({triggerFormChange:function(){},triggerFormFinish:function(){},registerForm:function(){},unregisterForm:function(){}}),lu=function(a){var n=a.validateMessages,o=a.onFormChange,_=a.onFormFinish,l=a.children,h=g.useContext(Il),k=g.useRef({});return g.createElement(Il.Provider,{value:Ie(Ie({},h),{},{validateMessages:Ie(Ie({},h.validateMessages),n),triggerFormChange:function(b,v){o&&o(b,{changedFields:v,forms:k.current}),h.triggerFormChange(b,v)},triggerFormFinish:function(b,v){_&&_(b,{values:v,forms:k.current}),h.triggerFormFinish(b,v)},registerForm:function(b,v){b&&(k.current=Ie(Ie({},k.current),{},D({},b,v))),h.registerForm(b,v)},unregisterForm:function(b){var v=Ie({},k.current);delete v[b],k.current=v,h.unregisterForm(b)}})},l)},Dl=Il,cd=["name","initialValues","fields","form","preserve","children","component","validateMessages","validateTrigger","onValuesChange","onFieldsChange","onFinish","onFinishFailed"],Im=function(a,n){var o=a.name,_=a.initialValues,l=a.fields,h=a.form,k=a.preserve,f=a.children,b=a.component,v=b===void 0?"form":b,w=a.validateMessages,z=a.validateTrigger,S=z===void 0?"onChange":z,E=a.onValuesChange,O=a.onFieldsChange,P=a.onFinish,T=a.onFinishFailed,A=Ai(a,cd),L=g.useContext(Dl),H=Om(h),K=la(H,1),ae=K[0],ie=ae.getInternalHooks(qr),se=ie.useSubscribe,he=ie.setInitialValues,ue=ie.setCallbacks,ze=ie.setValidateMessages,te=ie.setPreserve,re=ie.destroyForm;g.useImperativeHandle(n,function(){return ae}),g.useEffect(function(){return L.registerForm(o,ae),function(){L.unregisterForm(o)}},[L,ae,o]),ze(Ie(Ie({},L.validateMessages),w)),ue({onValuesChange:E,onFieldsChange:function(Ge){if(L.triggerFormChange(o,Ge),O){for(var $e=arguments.length,ra=new Array($e>1?$e-1:0),Xe=1;Xe<$e;Xe++)ra[Xe-1]=arguments[Xe];O.apply(void 0,[Ge].concat(ra))}},onFinish:function(Ge){L.triggerFormFinish(o,Ge),P&&P(Ge)},onFinishFailed:T}),te(k);var le=g.useRef(null);he(_,!le.current),le.current||(le.current=!0),g.useEffect(function(){return re},[]);var be,Be=typeof f=="function";if(Be){var He=ae.getFieldsValue(!0);be=f(He,ae)}else be=f;se(!Be);var ea=g.useRef();g.useEffect(function(){rd(ea.current||[],l||[])||ae.setFields(l||[]),ea.current=l},[l,ae]);var ca=g.useMemo(function(){return Ie(Ie({},ae),{},{validateTrigger:S})},[ae,S]),Sa=g.createElement(q_.Provider,{value:ca},be);return v===!1?Sa:g.createElement(v,gi({},A,{onSubmit:function(Ge){Ge.preventDefault(),Ge.stopPropagation(),ae.submit()},onReset:function(Ge){var $e;Ge.preventDefault(),ae.resetFields(),($e=A.onReset)===null||$e===void 0||$e.call(A,Ge)}}),Sa)},ck=Im;function Dm(e){try{return JSON.stringify(e)}catch(a){return Math.random()}}var Tm=function(){};function Tl(){for(var e=arguments.length,a=new Array(e),n=0;n{const{locale:a={},children:n,_ANT_MARK__:o}=e;g.useEffect(()=>(oe(a&&a.Modal),()=>{oe()}),[a]);const _=g.useMemo(()=>Object.assign(Object.assign({},a),{exist:!0}),[a]);return g.createElement(Qe.Provider,{value:_},n)};const ja="anticon",Pa=(e,a)=>a||(e?`ant-${e}`:"ant"),Ha=g.createContext({getPrefixCls:Pa,iconPrefixCls:ja}),{Consumer:Pe}=Ha,ke=`-ant-${Date.now()}-${Math.random()}`;function Ee(e,a){const n={},o=(h,k)=>{let f=h.clone();return f=(k==null?void 0:k(f))||f,f.toRgbString()},_=(h,k)=>{const f=new Xi(h),b=Qi(f.toRgbString());n[`${k}-color`]=o(f),n[`${k}-color-disabled`]=b[1],n[`${k}-color-hover`]=b[4],n[`${k}-color-active`]=b[6],n[`${k}-color-outline`]=f.clone().setAlpha(.2).toRgbString(),n[`${k}-color-deprecated-bg`]=b[0],n[`${k}-color-deprecated-border`]=b[2]};if(a.primaryColor){_(a.primaryColor,"primary");const h=new Xi(a.primaryColor),k=Qi(h.toRgbString());k.forEach((b,v)=>{n[`primary-${v+1}`]=b}),n["primary-color-deprecated-l-35"]=o(h,b=>b.lighten(35)),n["primary-color-deprecated-l-20"]=o(h,b=>b.lighten(20)),n["primary-color-deprecated-t-20"]=o(h,b=>b.tint(20)),n["primary-color-deprecated-t-50"]=o(h,b=>b.tint(50)),n["primary-color-deprecated-f-12"]=o(h,b=>b.setAlpha(b.getAlpha()*.12));const f=new Xi(k[0]);n["primary-color-active-deprecated-f-30"]=o(f,b=>b.setAlpha(b.getAlpha()*.3)),n["primary-color-active-deprecated-d-02"]=o(f,b=>b.darken(2))}return a.successColor&&_(a.successColor,"success"),a.warningColor&&_(a.warningColor,"warning"),a.errorColor&&_(a.errorColor,"error"),a.infoColor&&_(a.infoColor,"info"),` :root { ${Object.keys(n).map(h=>`--${e}-${h}: ${n[h]};`).join(` `)} } `.trim()}function _a(e,a){const n=Ee(e,a);wn()&&Fr(n,`${ke}-dynamic-theme`)}const Ea=g.createContext(!1),La=e=>{let{children:a,disabled:n}=e;const o=g.useContext(Ea);return g.createElement(Ea.Provider,{value:n!=null?n:o},a)};var Na=Ea;const Wa=g.createContext(void 0),en=e=>{let{children:a,size:n}=e;const o=g.useContext(Wa);return g.createElement(Wa.Provider,{value:n||o},a)};var ri=Wa;function at(){const e=(0,g.useContext)(Na),a=(0,g.useContext)(ri);return{componentDisabled:e,componentSize:a}}var hk=at;function h0(e,a){const n=e||{},o=n.inherit===!1||!a?F_:a;return Dr(()=>{if(!e)return a;const l=Object.assign({},o.components);return Object.keys(e.components||{}).forEach(h=>{l[h]=Object.assign(Object.assign({},l[h]),e.components[h])}),Object.assign(Object.assign(Object.assign({},o),n),{token:Object.assign(Object.assign({},o.token),n.token),components:l})},[n,o],(l,h)=>l.some((k,f)=>{const b=h[f];return!Tr(k,b,!0)}))}const OD={overflow:"hidden",whiteSpace:"nowrap",textOverflow:"ellipsis"},it=e=>({boxSizing:"border-box",margin:0,padding:0,color:e.colorText,fontSize:e.fontSize,lineHeight:e.lineHeight,listStyle:"none",fontFamily:e.fontFamily}),d0=()=>({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"}}),g0=()=>({"&::before":{display:"table",content:'""'},"&::after":{display:"table",clear:"both",content:'""'}}),k0=e=>({a:{color:e.colorLink,textDecoration:e.linkDecoration,backgroundColor:"transparent",outline:"none",cursor:"pointer",transition:`color ${e.motionDurationSlow}`,"-webkit-text-decoration-skip":"objects","&:hover":{color:e.colorLinkHover},"&:active":{color:e.colorLinkActive},[`&:active, - &:hover`]:{textDecoration:e.linkHoverDecoration,outline:0},"&:focus":{textDecoration:e.linkFocusDecoration,outline:0},"&[disabled]":{color:e.colorTextDisabled,cursor:"not-allowed"}}}),p0=(e,a)=>{const{fontFamily:n,fontSize:o}=e,_=`[class^="${a}"], [class*=" ${a}"]`;return{[_]:{fontFamily:n,fontSize:o,boxSizing:"border-box","&::before, &::after":{boxSizing:"border-box"},[_]:{boxSizing:"border-box","&::before, &::after":{boxSizing:"border-box"}}}}},f0=e=>({outline:`${e.lineWidthFocus}px solid ${e.colorPrimaryBorder}`,outlineOffset:1,transition:"outline-offset 0s, outline 0s"}),df=e=>({"&:focus-visible":Object.assign({},f0(e))});var y0=(e,a)=>{const[n,o]=L_();return yo({theme:n,token:o,hashId:"",path:["ant-design-icons",e],nonce:()=>a==null?void 0:a.nonce},()=>[{[`.${e}`]:Object.assign(Object.assign({},d0()),{[`.${e} .${e}-icon`]:{display:"block"}})}])},b0=function(e,a){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&a.indexOf(o)<0&&(n[o]=e[o]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var _=0,o=Object.getOwnPropertySymbols(e);_{let{prefixCls:a,iconPrefixCls:n,theme:o}=e;a!==void 0&&(md=a),n!==void 0&&(gf=n),o&&_a(hd(),o)},Am=()=>({getPrefixCls:(e,a)=>a||(e?`${hd()}-${e}`:hd()),getIconPrefixCls:j0,getRootPrefixCls:()=>md||hd()}),x0=e=>{const{children:a,csp:n,autoInsertSpaceInButton:o,form:_,locale:l,componentSize:h,direction:k,space:f,virtual:b,dropdownMatchSelectWidth:v,legacyLocale:w,parentContext:z,iconPrefixCls:S,theme:E,componentDisabled:O}=e,P=g.useCallback((re,le)=>{const{prefixCls:be}=e;if(le)return le;const Ve=be||z.getPrefixCls("");return re?`${Ve}-${re}`:Ve},[z.getPrefixCls,e.prefixCls]),T=S||z.iconPrefixCls||ja,A=T!==z.iconPrefixCls,L=n||z.csp,H=y0(T,L),K=h0(E,z.theme),ae={csp:L,autoInsertSpaceInButton:o,locale:l||w,direction:k,space:f,virtual:b,dropdownMatchSelectWidth:v,getPrefixCls:P,iconPrefixCls:T,theme:K},ie=Object.assign({},z);Object.keys(ae).forEach(re=>{ae[re]!==void 0&&(ie[re]=ae[re])}),v0.forEach(re=>{const le=e[re];le&&(ie[re]=le)});const se=Dr(()=>ie,ie,(re,le)=>{const be=Object.keys(re),Ve=Object.keys(le);return be.length!==Ve.length||be.some(He=>re[He]!==le[He])}),he=g.useMemo(()=>({prefixCls:T,csp:L}),[T,L]);let ue=A?H(a):a;const ze=g.useMemo(()=>{var re,le,be;return So({},((re=C.Form)===null||re===void 0?void 0:re.defaultValidateMessages)||{},((be=(le=se.locale)===null||le===void 0?void 0:le.Form)===null||be===void 0?void 0:be.defaultValidateMessages)||{},(_==null?void 0:_.validateMessages)||{})},[se,_==null?void 0:_.validateMessages]);Object.keys(ze).length>0&&(ue=g.createElement(lu,{validateMessages:ze},a)),l&&(ue=g.createElement(ga,{locale:l,_ANT_MARK__:aa},ue)),(T||L)&&(ue=g.createElement(lm.Provider,{value:he},ue)),h&&(ue=g.createElement(en,{size:h},ue));const te=g.useMemo(()=>{const re=K||{},{algorithm:le,token:be}=re,Ve=b0(re,["algorithm","token"]),He=le&&(!Array.isArray(le)||le.length>0)?As(le):void 0;return Object.assign(Object.assign({},Ve),{theme:He,token:Object.assign(Object.assign({},N_),be)})},[K]);return E&&(ue=g.createElement(em.Provider,{value:te},ue)),O!==void 0&&(ue=g.createElement(La,{disabled:O},ue)),g.createElement(Ha.Provider,{value:se},ue)},Nl=e=>{const a=g.useContext(Ha),n=g.useContext(Qe);return g.createElement(x0,Object.assign({parentContext:a,legacyLocale:n},e))};Nl.ConfigContext=Ha,Nl.SizeContext=ri,Nl.config=z0,Nl.useConfig=hk,Object.defineProperty(Nl,"SizeContext",{get:()=>ri});var dd=Nl,C0={icon:{tag:"svg",attrs:{viewBox:"0 0 1024 1024",focusable:"false"},children:[{tag:"path",attrs:{d:"M988 548c-19.9 0-36-16.1-36-36 0-59.4-11.6-117-34.6-171.3a440.45 440.45 0 00-94.3-139.9 437.71 437.71 0 00-139.9-94.3C629 83.6 571.4 72 512 72c-19.9 0-36-16.1-36-36s16.1-36 36-36c69.1 0 136.2 13.5 199.3 40.3C772.3 66 827 103 874 150c47 47 83.9 101.8 109.7 162.7 26.7 63.1 40.2 130.2 40.2 199.3.1 19.9-16 36-35.9 36z"}}]},name:"loading",theme:"outlined"},S0=C0,P0=ha(4184),ka=ha.n(P0);function E0(e,a){vn(e,"[@ant-design/icons] ".concat(a))}function kf(e){return oi(e)==="object"&&typeof e.name=="string"&&typeof e.theme=="string"&&(oi(e.icon)==="object"||typeof e.icon=="function")}function pf(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};return Object.keys(e).reduce(function(a,n){var o=e[n];switch(n){case"class":a.className=o,delete a.class;break;default:a[n]=o}return a},{})}function dk(e,a,n){return n?g.createElement(e.tag,Ie(Ie({key:a},pf(e.attrs)),n),(e.children||[]).map(function(o,_){return dk(o,"".concat(a,"-").concat(e.tag,"-").concat(_))})):g.createElement(e.tag,Ie({key:a},pf(e.attrs)),(e.children||[]).map(function(o,_){return dk(o,"".concat(a,"-").concat(e.tag,"-").concat(_))}))}function ff(e){return Qi(e)[0]}function yf(e){return e?Array.isArray(e)?e:[e]:[]}var AD={width:"1em",height:"1em",fill:"currentColor","aria-hidden":"true",focusable:"false"},O0=` + &:hover`]:{textDecoration:e.linkHoverDecoration,outline:0},"&:focus":{textDecoration:e.linkFocusDecoration,outline:0},"&[disabled]":{color:e.colorTextDisabled,cursor:"not-allowed"}}}),p0=(e,a)=>{const{fontFamily:n,fontSize:o}=e,_=`[class^="${a}"], [class*=" ${a}"]`;return{[_]:{fontFamily:n,fontSize:o,boxSizing:"border-box","&::before, &::after":{boxSizing:"border-box"},[_]:{boxSizing:"border-box","&::before, &::after":{boxSizing:"border-box"}}}}},f0=e=>({outline:`${e.lineWidthFocus}px solid ${e.colorPrimaryBorder}`,outlineOffset:1,transition:"outline-offset 0s, outline 0s"}),df=e=>({"&:focus-visible":Object.assign({},f0(e))});var y0=(e,a)=>{const[n,o]=L_();return yo({theme:n,token:o,hashId:"",path:["ant-design-icons",e],nonce:()=>a==null?void 0:a.nonce},()=>[{[`.${e}`]:Object.assign(Object.assign({},d0()),{[`.${e} .${e}-icon`]:{display:"block"}})}])},b0=function(e,a){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&a.indexOf(o)<0&&(n[o]=e[o]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var _=0,o=Object.getOwnPropertySymbols(e);_{let{prefixCls:a,iconPrefixCls:n,theme:o}=e;a!==void 0&&(md=a),n!==void 0&&(gf=n),o&&_a(hd(),o)},Am=()=>({getPrefixCls:(e,a)=>a||(e?`${hd()}-${e}`:hd()),getIconPrefixCls:j0,getRootPrefixCls:()=>md||hd()}),x0=e=>{const{children:a,csp:n,autoInsertSpaceInButton:o,form:_,locale:l,componentSize:h,direction:k,space:f,virtual:b,dropdownMatchSelectWidth:v,legacyLocale:w,parentContext:z,iconPrefixCls:S,theme:E,componentDisabled:O}=e,P=g.useCallback((re,le)=>{const{prefixCls:be}=e;if(le)return le;const Be=be||z.getPrefixCls("");return re?`${Be}-${re}`:Be},[z.getPrefixCls,e.prefixCls]),T=S||z.iconPrefixCls||ja,A=T!==z.iconPrefixCls,L=n||z.csp,H=y0(T,L),K=h0(E,z.theme),ae={csp:L,autoInsertSpaceInButton:o,locale:l||w,direction:k,space:f,virtual:b,dropdownMatchSelectWidth:v,getPrefixCls:P,iconPrefixCls:T,theme:K},ie=Object.assign({},z);Object.keys(ae).forEach(re=>{ae[re]!==void 0&&(ie[re]=ae[re])}),v0.forEach(re=>{const le=e[re];le&&(ie[re]=le)});const se=Dr(()=>ie,ie,(re,le)=>{const be=Object.keys(re),Be=Object.keys(le);return be.length!==Be.length||be.some(He=>re[He]!==le[He])}),he=g.useMemo(()=>({prefixCls:T,csp:L}),[T,L]);let ue=A?H(a):a;const ze=g.useMemo(()=>{var re,le,be;return So({},((re=C.Form)===null||re===void 0?void 0:re.defaultValidateMessages)||{},((be=(le=se.locale)===null||le===void 0?void 0:le.Form)===null||be===void 0?void 0:be.defaultValidateMessages)||{},(_==null?void 0:_.validateMessages)||{})},[se,_==null?void 0:_.validateMessages]);Object.keys(ze).length>0&&(ue=g.createElement(lu,{validateMessages:ze},a)),l&&(ue=g.createElement(ga,{locale:l,_ANT_MARK__:aa},ue)),(T||L)&&(ue=g.createElement(lm.Provider,{value:he},ue)),h&&(ue=g.createElement(en,{size:h},ue));const te=g.useMemo(()=>{const re=K||{},{algorithm:le,token:be}=re,Be=b0(re,["algorithm","token"]),He=le&&(!Array.isArray(le)||le.length>0)?As(le):void 0;return Object.assign(Object.assign({},Be),{theme:He,token:Object.assign(Object.assign({},N_),be)})},[K]);return E&&(ue=g.createElement(em.Provider,{value:te},ue)),O!==void 0&&(ue=g.createElement(La,{disabled:O},ue)),g.createElement(Ha.Provider,{value:se},ue)},Nl=e=>{const a=g.useContext(Ha),n=g.useContext(Qe);return g.createElement(x0,Object.assign({parentContext:a,legacyLocale:n},e))};Nl.ConfigContext=Ha,Nl.SizeContext=ri,Nl.config=z0,Nl.useConfig=hk,Object.defineProperty(Nl,"SizeContext",{get:()=>ri});var dd=Nl,C0={icon:{tag:"svg",attrs:{viewBox:"0 0 1024 1024",focusable:"false"},children:[{tag:"path",attrs:{d:"M988 548c-19.9 0-36-16.1-36-36 0-59.4-11.6-117-34.6-171.3a440.45 440.45 0 00-94.3-139.9 437.71 437.71 0 00-139.9-94.3C629 83.6 571.4 72 512 72c-19.9 0-36-16.1-36-36s16.1-36 36-36c69.1 0 136.2 13.5 199.3 40.3C772.3 66 827 103 874 150c47 47 83.9 101.8 109.7 162.7 26.7 63.1 40.2 130.2 40.2 199.3.1 19.9-16 36-35.9 36z"}}]},name:"loading",theme:"outlined"},S0=C0,P0=ha(4184),ka=ha.n(P0);function E0(e,a){vn(e,"[@ant-design/icons] ".concat(a))}function kf(e){return oi(e)==="object"&&typeof e.name=="string"&&typeof e.theme=="string"&&(oi(e.icon)==="object"||typeof e.icon=="function")}function pf(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};return Object.keys(e).reduce(function(a,n){var o=e[n];switch(n){case"class":a.className=o,delete a.class;break;default:a[n]=o}return a},{})}function dk(e,a,n){return n?g.createElement(e.tag,Ie(Ie({key:a},pf(e.attrs)),n),(e.children||[]).map(function(o,_){return dk(o,"".concat(a,"-").concat(e.tag,"-").concat(_))})):g.createElement(e.tag,Ie({key:a},pf(e.attrs)),(e.children||[]).map(function(o,_){return dk(o,"".concat(a,"-").concat(e.tag,"-").concat(_))}))}function ff(e){return Qi(e)[0]}function yf(e){return e?Array.isArray(e)?e:[e]:[]}var AD={width:"1em",height:"1em",fill:"currentColor","aria-hidden":"true",focusable:"false"},O0=` .anticon { display: inline-block; color: inherit; @@ -128,7 +128,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho transform: rotate(360deg); } } -`,I0=function(){var a=arguments.length>0&&arguments[0]!==void 0?arguments[0]:O0,n=(0,g.useContext)(lm),o=n.csp,_=n.prefixCls,l=a;_&&(l=l.replace(/anticon/g,_)),(0,g.useEffect)(function(){Fr(l,"@ant-design-icons",{prepend:!0,csp:o})},[])},D0=["icon","className","onClick","style","primaryColor","secondaryColor"],Nm={primaryColor:"#333",secondaryColor:"#E6E6E6",calculated:!1};function T0(e){var a=e.primaryColor,n=e.secondaryColor;Nm.primaryColor=a,Nm.secondaryColor=n||ff(a),Nm.calculated=!!n}function R0(){return Ie({},Nm)}var gd=function(a){var n=a.icon,o=a.className,_=a.onClick,l=a.style,h=a.primaryColor,k=a.secondaryColor,f=Ai(a,D0),b=Nm;if(h&&(b={primaryColor:h,secondaryColor:k||ff(h)}),I0(),E0(kf(n),"icon should be icon definiton, but got ".concat(n)),!kf(n))return null;var v=n;return v&&typeof v.icon=="function"&&(v=Ie(Ie({},v),{},{icon:v.icon(b.primaryColor,b.secondaryColor)})),dk(v.icon,"svg-".concat(v.name),Ie({className:o,onClick:_,style:l,"data-icon":v.name,width:"1em",height:"1em",fill:"currentColor","aria-hidden":"true"},f))};gd.displayName="IconReact",gd.getTwoToneColors=R0,gd.setTwoToneColors=T0;var gk=gd;function bf(e){var a=yf(e),n=la(a,2),o=n[0],_=n[1];return gk.setTwoToneColors({primaryColor:o,secondaryColor:_})}function A0(){var e=gk.getTwoToneColors();return e.calculated?[e.primaryColor,e.secondaryColor]:e.primaryColor}var N0=["className","icon","spin","rotate","tabIndex","onClick","twoToneColor"];bf("#1890ff");var kd=g.forwardRef(function(e,a){var n,o=e.className,_=e.icon,l=e.spin,h=e.rotate,k=e.tabIndex,f=e.onClick,b=e.twoToneColor,v=Ai(e,N0),w=g.useContext(lm),z=w.prefixCls,S=z===void 0?"anticon":z,E=w.rootClassName,O=ka()(E,S,(n={},D(n,"".concat(S,"-").concat(_.name),!!_.name),D(n,"".concat(S,"-spin"),!!l||_.name==="loading"),n),o),P=k;P===void 0&&f&&(P=-1);var T=h?{msTransform:"rotate(".concat(h,"deg)"),transform:"rotate(".concat(h,"deg)")}:void 0,A=yf(b),L=la(A,2),H=L[0],K=L[1];return g.createElement("span",Ie(Ie({role:"img","aria-label":_.name},v),{},{ref:a,tabIndex:P,onClick:f,className:O}),g.createElement(gk,{icon:_,primaryColor:H,secondaryColor:K,style:T}))});kd.displayName="AntdIcon",kd.getTwoToneColor=A0,kd.setTwoToneColor=bf;var Yn=kd,vf=function(a,n){return g.createElement(Yn,Ie(Ie({},a),{},{ref:n,icon:S0}))};vf.displayName="LoadingOutlined";var pd=g.forwardRef(vf),M0={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"},F0=M0,wf=function(a,n){return g.createElement(Yn,Ie(Ie({},a),{},{ref:n,icon:F0}))};wf.displayName="ExclamationCircleFilled";var fd=g.forwardRef(wf),L0={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 64zm165.4 618.2l-66-.3L512 563.4l-99.3 118.4-66.1.3c-4.4 0-8-3.5-8-8 0-1.9.7-3.7 1.9-5.2l130.1-155L340.5 359a8.32 8.32 0 01-1.9-5.2c0-4.4 3.6-8 8-8l66.1.3L512 464.6l99.3-118.4 66-.3c4.4 0 8 3.5 8 8 0 1.9-.7 3.7-1.9 5.2L553.5 514l130 155c1.2 1.5 1.9 3.3 1.9 5.2 0 4.4-3.6 8-8 8z"}}]},name:"close-circle",theme:"filled"},U0=L0,jf=function(a,n){return g.createElement(Yn,Ie(Ie({},a),{},{ref:n,icon:U0}))};jf.displayName="CloseCircleFilled";var yd=g.forwardRef(jf),$0={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"},H0=$0,zf=function(a,n){return g.createElement(Yn,Ie(Ie({},a),{},{ref:n,icon:H0}))};zf.displayName="CheckCircleFilled";var bd=g.forwardRef(zf),W0={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"},V0=W0,xf=function(a,n){return g.createElement(Yn,Ie(Ie({},a),{},{ref:n,icon:V0}))};xf.displayName="InfoCircleFilled";var vd=g.forwardRef(xf);function wd(e){return e instanceof HTMLElement||e instanceof SVGElement}function kk(e){return wd(e)?e:e instanceof g.Component?$_.findDOMNode(e):null}function pk(e,a){typeof e=="function"?e(a):oi(e)==="object"&&e&&"current"in e&&(e.current=a)}function Mm(){for(var e=arguments.length,a=new Array(e),n=0;n1&&arguments[1]!==void 0?arguments[1]:1;Lf+=1;var o=Lf;function _(l){if(l===0)Uf(o),a();else{var h=Mf(function(){_(l-1)});yk.set(o,h)}}return _(n),o};$f.cancel=function(e){var a=yk.get(e);return Uf(a),Ff(a)};var nt=$f,X0=function(){var e=g.useRef(null);function a(){nt.cancel(e.current)}function n(o){var _=arguments.length>1&&arguments[1]!==void 0?arguments[1]:2;a();var l=nt(function(){_<=1?o({isCanceled:function(){return l!==e.current}}):n(o,_-1)});e.current=l}return g.useEffect(function(){return function(){a()}},[]),[n,a]},Y0=wn()?g.useLayoutEffect:g.useEffect,Hf=Y0,Wf=[Wt,Fl,Ll,fk],Vf=!1,K0=!0;function Bf(e){return e===Ll||e===fk}var Q0=function(e,a){var n=hu(Nf),o=la(n,2),_=o[0],l=o[1],h=X0(),k=la(h,2),f=k[0],b=k[1];function v(){l(Wt,!0)}return Hf(function(){if(_!==Nf&&_!==fk){var w=Wf.indexOf(_),z=Wf[w+1],S=a(_);S===Vf?l(z,!0):f(function(E){function O(){E.isCanceled()||l(z,!0)}S===!0?O():Promise.resolve(S).then(O)})}},[e,_]),g.useEffect(function(){return function(){b()}},[]),[v,_]},J0=function(e){var a=(0,g.useRef)(),n=(0,g.useRef)(e);n.current=e;var o=g.useCallback(function(h){n.current(h)},[]);function _(h){h&&(h.removeEventListener(Rf,o),h.removeEventListener(Tf,o))}function l(h){a.current&&a.current!==h&&_(a.current),h&&h!==a.current&&(h.addEventListener(Rf,o),h.addEventListener(Tf,o),a.current=h)}return g.useEffect(function(){return function(){_(a.current)}},[]),[l,_]};function Z0(e,a,n,o){var _=o.motionEnter,l=_===void 0?!0:_,h=o.motionAppear,k=h===void 0?!0:h,f=o.motionLeave,b=f===void 0?!0:f,v=o.motionDeadline,w=o.motionLeaveImmediately,z=o.onAppearPrepare,S=o.onEnterPrepare,E=o.onLeavePrepare,O=o.onAppearStart,P=o.onEnterStart,T=o.onLeaveStart,A=o.onAppearActive,L=o.onEnterActive,H=o.onLeaveActive,K=o.onAppearEnd,ae=o.onEnterEnd,ie=o.onLeaveEnd,se=o.onVisibleChanged,he=hu(),ue=la(he,2),ze=ue[0],te=ue[1],re=hu(Ml),le=la(re,2),be=le[0],Ve=le[1],He=hu(null),ea=la(He,2),ca=ea[0],Sa=ea[1],ya=(0,g.useRef)(!1),Ge=(0,g.useRef)(null);function $e(){return n()}var ra=(0,g.useRef)(!1);function Xe(va){var Oa=$e();if(!(va&&!va.deadline&&va.target!==Oa)){var qa=ra.current,Ga;be===zd&&qa?Ga=K==null?void 0:K(Oa,va):be===xd&&qa?Ga=ae==null?void 0:ae(Oa,va):be===Cd&&qa&&(Ga=ie==null?void 0:ie(Oa,va)),be!==Ml&&qa&&Ga!==!1&&(Ve(Ml,!0),Sa(null,!0))}}var Se=J0(Xe),pa=la(Se,1),Ze=pa[0],Ia=g.useMemo(function(){var va,Oa,qa;switch(be){case zd:return va={},D(va,Wt,z),D(va,Fl,O),D(va,Ll,A),va;case xd:return Oa={},D(Oa,Wt,S),D(Oa,Fl,P),D(Oa,Ll,L),Oa;case Cd:return qa={},D(qa,Wt,E),D(qa,Fl,T),D(qa,Ll,H),qa;default:return{}}},[be]),Ta=Q0(be,function(va){if(va===Wt){var Oa=Ia[Wt];return Oa?Oa($e()):Vf}if(Ra in Ia){var qa;Sa(((qa=Ia[Ra])===null||qa===void 0?void 0:qa.call(Ia,$e(),null))||null)}return Ra===Ll&&(Ze($e()),v>0&&(clearTimeout(Ge.current),Ge.current=setTimeout(function(){Xe({deadline:!0})},v))),K0}),da=la(Ta,2),Ca=da[0],Ra=da[1],ai=Bf(Ra);ra.current=ai,Hf(function(){te(a);var va=ya.current;if(ya.current=!0,!!e){var Oa;!va&&a&&k&&(Oa=zd),va&&a&&l&&(Oa=xd),(va&&!a&&b||!va&&w&&!a&&b)&&(Oa=Cd),Oa&&(Ve(Oa),Ca())}},[a]),(0,g.useEffect)(function(){(be===zd&&!k||be===xd&&!l||be===Cd&&!b)&&Ve(Ml)},[k,l,b]),(0,g.useEffect)(function(){return function(){ya.current=!1,clearTimeout(Ge.current)}},[]);var Ma=g.useRef(!1);(0,g.useEffect)(function(){ze&&(Ma.current=!0),ze!==void 0&&be===Ml&&((Ma.current||ze)&&(se==null||se(ze)),Ma.current=!0)},[ze,be]);var mi=ca;return Ia[Wt]&&Ra===Fl&&(mi=Ie({transition:"none"},mi)),[be,Ra,mi,ze!=null?ze:a]}var ej=function(e){iu(n,e);var a=nu(n);function n(){return mn(this,n),a.apply(this,arguments)}return M(n,[{key:"render",value:function(){return this.props.children}}]),n}(g.Component),aj=ej;function ij(e){var a=e;oi(e)==="object"&&(a=e.transitionSupport);function n(_){return!!(_.motionName&&a)}var o=g.forwardRef(function(_,l){var h=_.visible,k=h===void 0?!0:h,f=_.removeOnLeave,b=f===void 0?!0:f,v=_.forceRender,w=_.children,z=_.motionName,S=_.leavedClassName,E=_.eventProps,O=n(_),P=(0,g.useRef)(),T=(0,g.useRef)();function A(){try{return P.current instanceof HTMLElement?P.current:kk(T.current)}catch(He){return null}}var L=Z0(O,k,A,_),H=la(L,4),K=H[0],ae=H[1],ie=H[2],se=H[3],he=g.useRef(se);se&&(he.current=!0);var ue=g.useCallback(function(He){P.current=He,pk(l,He)},[l]),ze,te=Ie(Ie({},E),{},{visible:k});if(!w)ze=null;else if(K===Ml||!n(_))se?ze=w(Ie({},te),ue):!b&&he.current&&S?ze=w(Ie(Ie({},te),{},{className:S}),ue):v||!b&&!S?ze=w(Ie(Ie({},te),{},{style:{display:"none"}}),ue):ze=null;else{var re,le;ae===Wt?le="prepare":Bf(ae)?le="active":ae===Fl&&(le="start"),ze=w(Ie(Ie({},te),{},{className:ka()(Af(z,K),(re={},D(re,Af(z,"".concat(K,"-").concat(le)),le),D(re,z,typeof z=="string"),re)),style:ie}),ue)}if(g.isValidElement(ze)&&Fm(ze)){var be=ze,Ve=be.ref;Ve||(ze=g.cloneElement(ze,{ref:ue}))}return g.createElement(aj,{ref:T},ze)});return o.displayName="CSSMotion",o}var qf=ij(Df),bk="add",vk="keep",wk="remove",jk="removed";function nj(e){var a;return e&&oi(e)==="object"&&"key"in e?a=e:a={key:e},Ie(Ie({},a),{},{key:String(a.key)})}function zk(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];return e.map(nj)}function oj(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],a=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],n=[],o=0,_=a.length,l=zk(e),h=zk(a);l.forEach(function(b){for(var v=!1,w=o;w<_;w+=1){var z=h[w];if(z.key===b.key){o1});return f.forEach(function(b){n=n.filter(function(v){var w=v.key,z=v.status;return w!==b||z!==wk}),n.forEach(function(v){v.key===b&&(v.status=vk)})}),n}var rj=["component","children","onVisibleChanged","onAllRemoved"],tj=["status"],_j=["eventProps","visible","children","motionName","motionAppear","motionEnter","motionLeave","motionLeaveImmediately","motionDeadline","removeOnLeave","leavedClassName","onAppearStart","onAppearActive","onAppearEnd","onEnterStart","onEnterActive","onEnterEnd","onLeaveStart","onLeaveActive","onLeaveEnd"];function sj(e){var a=arguments.length>1&&arguments[1]!==void 0?arguments[1]:qf,n=function(o){iu(l,o);var _=nu(l);function l(){var h;mn(this,l);for(var k=arguments.length,f=new Array(k),b=0;b=Ba.F1&&n<=Ba.F12)return!1;switch(n){case Ba.ALT:case Ba.CAPS_LOCK:case Ba.CONTEXT_MENU:case Ba.CTRL:case Ba.DOWN:case Ba.END:case Ba.ESC:case Ba.HOME:case Ba.INSERT:case Ba.LEFT:case Ba.MAC_FF_META:case Ba.META:case Ba.NUMLOCK:case Ba.NUM_CENTER:case Ba.PAGE_DOWN:case Ba.PAGE_UP:case Ba.PAUSE:case Ba.PRINT_SCREEN:case Ba.RIGHT:case Ba.SHIFT:case Ba.UP:case Ba.WIN_KEY:case Ba.WIN_KEY_RIGHT:return!1;default:return!0}},isCharacterKey:function(a){if(a>=Ba.ZERO&&a<=Ba.NINE||a>=Ba.NUM_ZERO&&a<=Ba.NUM_MULTIPLY||a>=Ba.A&&a<=Ba.Z||window.navigator.userAgent.indexOf("WebKit")!==-1&&a===0)return!0;switch(a){case Ba.SPACE:case Ba.QUESTION_MARK:case Ba.NUM_PLUS:case Ba.NUM_MINUS:case Ba.NUM_PERIOD:case Ba.NUM_DIVISION:case Ba.SEMICOLON:case Ba.DASH:case Ba.EQUALS:case Ba.COMMA:case Ba.PERIOD:case Ba.SLASH:case Ba.APOSTROPHE:case Ba.SINGLE_QUOTE:case Ba.OPEN_SQUARE_BRACKET:case Ba.BACKSLASH:case Ba.CLOSE_SQUARE_BRACKET:return!0;default:return!1}}},hr=Ba,lj=g.forwardRef(function(e,a){var n=e.prefixCls,o=e.style,_=e.className,l=e.duration,h=l===void 0?4.5:l,k=e.eventKey,f=e.content,b=e.closable,v=e.closeIcon,w=v===void 0?"x":v,z=e.props,S=e.onClick,E=e.onNoticeClose,O=e.times,P=g.useState(!1),T=la(P,2),A=T[0],L=T[1],H=function(){E(k)},K=function(se){(se.key==="Enter"||se.code==="Enter"||se.keyCode===hr.ENTER)&&H()};g.useEffect(function(){if(!A&&h>0){var ie=setTimeout(function(){H()},h*1e3);return function(){clearTimeout(ie)}}},[h,A,O]);var ae="".concat(n,"-notice");return g.createElement("div",gi({},z,{ref:a,className:ka()(ae,_,D({},"".concat(ae,"-closable"),b)),style:o,onMouseEnter:function(){L(!0)},onMouseLeave:function(){L(!1)},onClick:S}),g.createElement("div",{className:"".concat(ae,"-content")},f),b&&g.createElement("a",{tabIndex:0,className:"".concat(ae,"-close"),onKeyDown:K,onClick:function(se){se.preventDefault(),se.stopPropagation(),H()}},w))}),xk=lj,cj=g.forwardRef(function(e,a){var n=e.prefixCls,o=n===void 0?"rc-notification":n,_=e.container,l=e.motion,h=e.maxCount,k=e.className,f=e.style,b=e.onAllRemoved,v=g.useState([]),w=la(v,2),z=w[0],S=w[1],E=function(ie){var se,he=z.find(function(ue){return ue.key===ie});he==null||(se=he.onClose)===null||se===void 0||se.call(he),S(function(ue){return ue.filter(function(ze){return ze.key!==ie})})};g.useImperativeHandle(a,function(){return{open:function(ie){S(function(se){var he=xa(se),ue=he.findIndex(function(re){return re.key===ie.key}),ze=Ie({},ie);if(ue>=0){var te;ze.times=(((te=se[ue])===null||te===void 0?void 0:te.times)||0)+1,he[ue]=ze}else ze.times=0,he.push(ze);return h>0&&he.length>h&&(he=he.slice(-h)),he})},close:function(ie){E(ie)},destroy:function(){S([])}}});var O=g.useState({}),P=la(O,2),T=P[0],A=P[1];g.useEffect(function(){var ae={};z.forEach(function(ie){var se=ie.placement,he=se===void 0?"topRight":se;he&&(ae[he]=ae[he]||[],ae[he].push(ie))}),Object.keys(T).forEach(function(ie){ae[ie]=ae[ie]||[]}),A(ae)},[z]);var L=function(ie){A(function(se){var he=Ie({},se),ue=he[ie]||[];return ue.length||delete he[ie],he})},H=g.useRef(!1);if(g.useEffect(function(){Object.keys(T).length>0?H.current=!0:H.current&&(b==null||b(),H.current=!1)},[T]),!_)return null;var K=Object.keys(T);return(0,$_.createPortal)(g.createElement(g.Fragment,null,K.map(function(ae){var ie=T[ae],se=ie.map(function(ue){return{config:ue,key:ue.key}}),he=typeof l=="function"?l(ae):l;return g.createElement(uj,gi({key:ae,className:ka()(o,"".concat(o,"-").concat(ae),k==null?void 0:k(ae)),style:f==null?void 0:f(ae),keys:se,motionAppear:!0},he,{onAllRemoved:function(){L(ae)}}),function(ue,ze){var te=ue.config,re=ue.className,le=ue.style,be=te.key,Ve=te.times,He=te.className,ea=te.style;return g.createElement(xk,gi({},te,{ref:ze,prefixCls:o,className:ka()(re,He),style:Ie(Ie({},le),ea),times:Ve,key:be,eventKey:be,onNoticeClose:E}))})})),_)}),mj=cj,hj=["getContainer","motion","prefixCls","maxCount","className","style","onAllRemoved"],dj=function(){return document.body},Gf=0;function gj(){for(var e={},a=arguments.length,n=new Array(a),o=0;o0&&arguments[0]!==void 0?arguments[0]:{},a=e.getContainer,n=a===void 0?dj:a,o=e.motion,_=e.prefixCls,l=e.maxCount,h=e.className,k=e.style,f=e.onAllRemoved,b=Ai(e,hj),v=g.useState(),w=la(v,2),z=w[0],S=w[1],E=g.useRef(),O=g.createElement(mj,{container:z,ref:E,prefixCls:_,motion:o,maxCount:l,className:h,style:k,onAllRemoved:f}),P=g.useState([]),T=la(P,2),A=T[0],L=T[1],H=g.useMemo(function(){return{open:function(ae){var ie=gj(b,ae);(ie.key===null||ie.key===void 0)&&(ie.key="rc-notification-".concat(Gf),Gf+=1),L(function(se){return[].concat(xa(se),[{type:"open",config:ie}])})},close:function(ae){L(function(ie){return[].concat(xa(ie),[{type:"close",key:ae}])})},destroy:function(){L(function(ae){return[].concat(xa(ae),[{type:"destroy"}])})}}},[]);return g.useEffect(function(){S(n())}),g.useEffect(function(){E.current&&A.length&&(A.forEach(function(K){switch(K.type){case"open":E.current.open(K.config);break;case"close":E.current.close(K.key);break;case"destroy":E.current.destroy();break}}),L([]))},[A]),[H,O]}const Yf=typeof CSSINJS_STATISTIC!="undefined";let Ck=!0;function Po(){for(var e=arguments.length,a=new Array(e),n=0;n{Object.keys(_).forEach(h=>{Object.defineProperty(o,h,{configurable:!0,enumerable:!0,get:()=>_[h]})})}),Ck=!0,o}const kj={},ND={};function pj(){}function fj(e){let a,n=e,o=pj;return Yf&&(a=new Set,n=new Proxy(e,{get(_,l){return Ck&&a.add(l),_[l]}}),o=(_,l)=>{kj[_]={global:Array.from(a),component:l}}),{token:n,keys:a,flush:o}}function dr(e,a,n,o){return _=>{const[l,h,k]=L_(),{getPrefixCls:f,iconPrefixCls:b,csp:v}=(0,g.useContext)(Ha),w=f(),z={theme:l,token:h,hashId:k,nonce:()=>v==null?void 0:v.nonce};return yo(Object.assign(Object.assign({},z),{path:["Shared",w]}),()=>[{"&":k0(h)}]),[yo(Object.assign(Object.assign({},z),{path:[e,_,b]}),()=>{const{token:S,flush:E}=fj(h),O=typeof n=="function"?n(S):n,P=Object.assign(Object.assign({},O),h[e]),T=`.${_}`,A=Po(S,{componentCls:T,prefixCls:_,iconCls:`.${b}`,antCls:`.${w}`},P),L=a(A,{hashId:k,prefixCls:_,rootPrefixCls:w,iconPrefixCls:b,overrideComponentToken:h[e]});return E(e,P),[(o==null?void 0:o.resetStyle)===!1?null:p0(h,_),L]}),k]}}const yj=e=>{const{componentCls:a,iconCls:n,boxShadow:o,colorText:_,colorBgElevated:l,colorSuccess:h,colorError:k,colorWarning:f,colorInfo:b,fontSizeLG:v,motionEaseInOutCirc:w,motionDurationSlow:z,marginXS:S,paddingXS:E,borderRadiusLG:O,zIndexPopup:P,messageNoticeContentPadding:T}=e,A=new ui("MessageMoveIn",{"0%":{padding:0,transform:"translateY(-100%)",opacity:0},"100%":{padding:E,transform:"translateY(0)",opacity:1}}),L=new ui("MessageMoveOut",{"0%":{maxHeight:e.height,padding:E,opacity:1},"100%":{maxHeight:0,padding:0,opacity:0}});return[{[a]:Object.assign(Object.assign({},it(e)),{color:_,position:"fixed",top:S,width:"100%",pointerEvents:"none",zIndex:P,[`${a}-move-up`]:{animationFillMode:"forwards"},[` +`,I0=function(){var a=arguments.length>0&&arguments[0]!==void 0?arguments[0]:O0,n=(0,g.useContext)(lm),o=n.csp,_=n.prefixCls,l=a;_&&(l=l.replace(/anticon/g,_)),(0,g.useEffect)(function(){Fr(l,"@ant-design-icons",{prepend:!0,csp:o})},[])},D0=["icon","className","onClick","style","primaryColor","secondaryColor"],Nm={primaryColor:"#333",secondaryColor:"#E6E6E6",calculated:!1};function T0(e){var a=e.primaryColor,n=e.secondaryColor;Nm.primaryColor=a,Nm.secondaryColor=n||ff(a),Nm.calculated=!!n}function R0(){return Ie({},Nm)}var gd=function(a){var n=a.icon,o=a.className,_=a.onClick,l=a.style,h=a.primaryColor,k=a.secondaryColor,f=Ai(a,D0),b=Nm;if(h&&(b={primaryColor:h,secondaryColor:k||ff(h)}),I0(),E0(kf(n),"icon should be icon definiton, but got ".concat(n)),!kf(n))return null;var v=n;return v&&typeof v.icon=="function"&&(v=Ie(Ie({},v),{},{icon:v.icon(b.primaryColor,b.secondaryColor)})),dk(v.icon,"svg-".concat(v.name),Ie({className:o,onClick:_,style:l,"data-icon":v.name,width:"1em",height:"1em",fill:"currentColor","aria-hidden":"true"},f))};gd.displayName="IconReact",gd.getTwoToneColors=R0,gd.setTwoToneColors=T0;var gk=gd;function bf(e){var a=yf(e),n=la(a,2),o=n[0],_=n[1];return gk.setTwoToneColors({primaryColor:o,secondaryColor:_})}function A0(){var e=gk.getTwoToneColors();return e.calculated?[e.primaryColor,e.secondaryColor]:e.primaryColor}var N0=["className","icon","spin","rotate","tabIndex","onClick","twoToneColor"];bf("#1890ff");var kd=g.forwardRef(function(e,a){var n,o=e.className,_=e.icon,l=e.spin,h=e.rotate,k=e.tabIndex,f=e.onClick,b=e.twoToneColor,v=Ai(e,N0),w=g.useContext(lm),z=w.prefixCls,S=z===void 0?"anticon":z,E=w.rootClassName,O=ka()(E,S,(n={},D(n,"".concat(S,"-").concat(_.name),!!_.name),D(n,"".concat(S,"-spin"),!!l||_.name==="loading"),n),o),P=k;P===void 0&&f&&(P=-1);var T=h?{msTransform:"rotate(".concat(h,"deg)"),transform:"rotate(".concat(h,"deg)")}:void 0,A=yf(b),L=la(A,2),H=L[0],K=L[1];return g.createElement("span",Ie(Ie({role:"img","aria-label":_.name},v),{},{ref:a,tabIndex:P,onClick:f,className:O}),g.createElement(gk,{icon:_,primaryColor:H,secondaryColor:K,style:T}))});kd.displayName="AntdIcon",kd.getTwoToneColor=A0,kd.setTwoToneColor=bf;var Yn=kd,vf=function(a,n){return g.createElement(Yn,Ie(Ie({},a),{},{ref:n,icon:S0}))};vf.displayName="LoadingOutlined";var pd=g.forwardRef(vf),M0={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"},F0=M0,wf=function(a,n){return g.createElement(Yn,Ie(Ie({},a),{},{ref:n,icon:F0}))};wf.displayName="ExclamationCircleFilled";var fd=g.forwardRef(wf),L0={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 64zm165.4 618.2l-66-.3L512 563.4l-99.3 118.4-66.1.3c-4.4 0-8-3.5-8-8 0-1.9.7-3.7 1.9-5.2l130.1-155L340.5 359a8.32 8.32 0 01-1.9-5.2c0-4.4 3.6-8 8-8l66.1.3L512 464.6l99.3-118.4 66-.3c4.4 0 8 3.5 8 8 0 1.9-.7 3.7-1.9 5.2L553.5 514l130 155c1.2 1.5 1.9 3.3 1.9 5.2 0 4.4-3.6 8-8 8z"}}]},name:"close-circle",theme:"filled"},U0=L0,jf=function(a,n){return g.createElement(Yn,Ie(Ie({},a),{},{ref:n,icon:U0}))};jf.displayName="CloseCircleFilled";var yd=g.forwardRef(jf),$0={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"},H0=$0,zf=function(a,n){return g.createElement(Yn,Ie(Ie({},a),{},{ref:n,icon:H0}))};zf.displayName="CheckCircleFilled";var bd=g.forwardRef(zf),W0={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"},B0=W0,xf=function(a,n){return g.createElement(Yn,Ie(Ie({},a),{},{ref:n,icon:B0}))};xf.displayName="InfoCircleFilled";var vd=g.forwardRef(xf);function wd(e){return e instanceof HTMLElement||e instanceof SVGElement}function kk(e){return wd(e)?e:e instanceof g.Component?$_.findDOMNode(e):null}function pk(e,a){typeof e=="function"?e(a):oi(e)==="object"&&e&&"current"in e&&(e.current=a)}function Mm(){for(var e=arguments.length,a=new Array(e),n=0;n1&&arguments[1]!==void 0?arguments[1]:1;Lf+=1;var o=Lf;function _(l){if(l===0)Uf(o),a();else{var h=Mf(function(){_(l-1)});yk.set(o,h)}}return _(n),o};$f.cancel=function(e){var a=yk.get(e);return Uf(a),Ff(a)};var nt=$f,X0=function(){var e=g.useRef(null);function a(){nt.cancel(e.current)}function n(o){var _=arguments.length>1&&arguments[1]!==void 0?arguments[1]:2;a();var l=nt(function(){_<=1?o({isCanceled:function(){return l!==e.current}}):n(o,_-1)});e.current=l}return g.useEffect(function(){return function(){a()}},[]),[n,a]},Y0=wn()?g.useLayoutEffect:g.useEffect,Hf=Y0,Wf=[Wt,Fl,Ll,fk],Bf=!1,K0=!0;function Vf(e){return e===Ll||e===fk}var Q0=function(e,a){var n=hu(Nf),o=la(n,2),_=o[0],l=o[1],h=X0(),k=la(h,2),f=k[0],b=k[1];function v(){l(Wt,!0)}return Hf(function(){if(_!==Nf&&_!==fk){var w=Wf.indexOf(_),z=Wf[w+1],S=a(_);S===Bf?l(z,!0):f(function(E){function O(){E.isCanceled()||l(z,!0)}S===!0?O():Promise.resolve(S).then(O)})}},[e,_]),g.useEffect(function(){return function(){b()}},[]),[v,_]},J0=function(e){var a=(0,g.useRef)(),n=(0,g.useRef)(e);n.current=e;var o=g.useCallback(function(h){n.current(h)},[]);function _(h){h&&(h.removeEventListener(Rf,o),h.removeEventListener(Tf,o))}function l(h){a.current&&a.current!==h&&_(a.current),h&&h!==a.current&&(h.addEventListener(Rf,o),h.addEventListener(Tf,o),a.current=h)}return g.useEffect(function(){return function(){_(a.current)}},[]),[l,_]};function Z0(e,a,n,o){var _=o.motionEnter,l=_===void 0?!0:_,h=o.motionAppear,k=h===void 0?!0:h,f=o.motionLeave,b=f===void 0?!0:f,v=o.motionDeadline,w=o.motionLeaveImmediately,z=o.onAppearPrepare,S=o.onEnterPrepare,E=o.onLeavePrepare,O=o.onAppearStart,P=o.onEnterStart,T=o.onLeaveStart,A=o.onAppearActive,L=o.onEnterActive,H=o.onLeaveActive,K=o.onAppearEnd,ae=o.onEnterEnd,ie=o.onLeaveEnd,se=o.onVisibleChanged,he=hu(),ue=la(he,2),ze=ue[0],te=ue[1],re=hu(Ml),le=la(re,2),be=le[0],Be=le[1],He=hu(null),ea=la(He,2),ca=ea[0],Sa=ea[1],ya=(0,g.useRef)(!1),Ge=(0,g.useRef)(null);function $e(){return n()}var ra=(0,g.useRef)(!1);function Xe(va){var Oa=$e();if(!(va&&!va.deadline&&va.target!==Oa)){var qa=ra.current,Ga;be===zd&&qa?Ga=K==null?void 0:K(Oa,va):be===xd&&qa?Ga=ae==null?void 0:ae(Oa,va):be===Cd&&qa&&(Ga=ie==null?void 0:ie(Oa,va)),be!==Ml&&qa&&Ga!==!1&&(Be(Ml,!0),Sa(null,!0))}}var Se=J0(Xe),pa=la(Se,1),Ze=pa[0],Ia=g.useMemo(function(){var va,Oa,qa;switch(be){case zd:return va={},D(va,Wt,z),D(va,Fl,O),D(va,Ll,A),va;case xd:return Oa={},D(Oa,Wt,S),D(Oa,Fl,P),D(Oa,Ll,L),Oa;case Cd:return qa={},D(qa,Wt,E),D(qa,Fl,T),D(qa,Ll,H),qa;default:return{}}},[be]),Ta=Q0(be,function(va){if(va===Wt){var Oa=Ia[Wt];return Oa?Oa($e()):Bf}if(Ra in Ia){var qa;Sa(((qa=Ia[Ra])===null||qa===void 0?void 0:qa.call(Ia,$e(),null))||null)}return Ra===Ll&&(Ze($e()),v>0&&(clearTimeout(Ge.current),Ge.current=setTimeout(function(){Xe({deadline:!0})},v))),K0}),da=la(Ta,2),Ca=da[0],Ra=da[1],ai=Vf(Ra);ra.current=ai,Hf(function(){te(a);var va=ya.current;if(ya.current=!0,!!e){var Oa;!va&&a&&k&&(Oa=zd),va&&a&&l&&(Oa=xd),(va&&!a&&b||!va&&w&&!a&&b)&&(Oa=Cd),Oa&&(Be(Oa),Ca())}},[a]),(0,g.useEffect)(function(){(be===zd&&!k||be===xd&&!l||be===Cd&&!b)&&Be(Ml)},[k,l,b]),(0,g.useEffect)(function(){return function(){ya.current=!1,clearTimeout(Ge.current)}},[]);var Ma=g.useRef(!1);(0,g.useEffect)(function(){ze&&(Ma.current=!0),ze!==void 0&&be===Ml&&((Ma.current||ze)&&(se==null||se(ze)),Ma.current=!0)},[ze,be]);var mi=ca;return Ia[Wt]&&Ra===Fl&&(mi=Ie({transition:"none"},mi)),[be,Ra,mi,ze!=null?ze:a]}var ej=function(e){iu(n,e);var a=nu(n);function n(){return mn(this,n),a.apply(this,arguments)}return M(n,[{key:"render",value:function(){return this.props.children}}]),n}(g.Component),aj=ej;function ij(e){var a=e;oi(e)==="object"&&(a=e.transitionSupport);function n(_){return!!(_.motionName&&a)}var o=g.forwardRef(function(_,l){var h=_.visible,k=h===void 0?!0:h,f=_.removeOnLeave,b=f===void 0?!0:f,v=_.forceRender,w=_.children,z=_.motionName,S=_.leavedClassName,E=_.eventProps,O=n(_),P=(0,g.useRef)(),T=(0,g.useRef)();function A(){try{return P.current instanceof HTMLElement?P.current:kk(T.current)}catch(He){return null}}var L=Z0(O,k,A,_),H=la(L,4),K=H[0],ae=H[1],ie=H[2],se=H[3],he=g.useRef(se);se&&(he.current=!0);var ue=g.useCallback(function(He){P.current=He,pk(l,He)},[l]),ze,te=Ie(Ie({},E),{},{visible:k});if(!w)ze=null;else if(K===Ml||!n(_))se?ze=w(Ie({},te),ue):!b&&he.current&&S?ze=w(Ie(Ie({},te),{},{className:S}),ue):v||!b&&!S?ze=w(Ie(Ie({},te),{},{style:{display:"none"}}),ue):ze=null;else{var re,le;ae===Wt?le="prepare":Vf(ae)?le="active":ae===Fl&&(le="start"),ze=w(Ie(Ie({},te),{},{className:ka()(Af(z,K),(re={},D(re,Af(z,"".concat(K,"-").concat(le)),le),D(re,z,typeof z=="string"),re)),style:ie}),ue)}if(g.isValidElement(ze)&&Fm(ze)){var be=ze,Be=be.ref;Be||(ze=g.cloneElement(ze,{ref:ue}))}return g.createElement(aj,{ref:T},ze)});return o.displayName="CSSMotion",o}var qf=ij(Df),bk="add",vk="keep",wk="remove",jk="removed";function nj(e){var a;return e&&oi(e)==="object"&&"key"in e?a=e:a={key:e},Ie(Ie({},a),{},{key:String(a.key)})}function zk(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];return e.map(nj)}function oj(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],a=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],n=[],o=0,_=a.length,l=zk(e),h=zk(a);l.forEach(function(b){for(var v=!1,w=o;w<_;w+=1){var z=h[w];if(z.key===b.key){o1});return f.forEach(function(b){n=n.filter(function(v){var w=v.key,z=v.status;return w!==b||z!==wk}),n.forEach(function(v){v.key===b&&(v.status=vk)})}),n}var rj=["component","children","onVisibleChanged","onAllRemoved"],tj=["status"],_j=["eventProps","visible","children","motionName","motionAppear","motionEnter","motionLeave","motionLeaveImmediately","motionDeadline","removeOnLeave","leavedClassName","onAppearStart","onAppearActive","onAppearEnd","onEnterStart","onEnterActive","onEnterEnd","onLeaveStart","onLeaveActive","onLeaveEnd"];function sj(e){var a=arguments.length>1&&arguments[1]!==void 0?arguments[1]:qf,n=function(o){iu(l,o);var _=nu(l);function l(){var h;mn(this,l);for(var k=arguments.length,f=new Array(k),b=0;b=Va.F1&&n<=Va.F12)return!1;switch(n){case Va.ALT:case Va.CAPS_LOCK:case Va.CONTEXT_MENU:case Va.CTRL:case Va.DOWN:case Va.END:case Va.ESC:case Va.HOME:case Va.INSERT:case Va.LEFT:case Va.MAC_FF_META:case Va.META:case Va.NUMLOCK:case Va.NUM_CENTER:case Va.PAGE_DOWN:case Va.PAGE_UP:case Va.PAUSE:case Va.PRINT_SCREEN:case Va.RIGHT:case Va.SHIFT:case Va.UP:case Va.WIN_KEY:case Va.WIN_KEY_RIGHT:return!1;default:return!0}},isCharacterKey:function(a){if(a>=Va.ZERO&&a<=Va.NINE||a>=Va.NUM_ZERO&&a<=Va.NUM_MULTIPLY||a>=Va.A&&a<=Va.Z||window.navigator.userAgent.indexOf("WebKit")!==-1&&a===0)return!0;switch(a){case Va.SPACE:case Va.QUESTION_MARK:case Va.NUM_PLUS:case Va.NUM_MINUS:case Va.NUM_PERIOD:case Va.NUM_DIVISION:case Va.SEMICOLON:case Va.DASH:case Va.EQUALS:case Va.COMMA:case Va.PERIOD:case Va.SLASH:case Va.APOSTROPHE:case Va.SINGLE_QUOTE:case Va.OPEN_SQUARE_BRACKET:case Va.BACKSLASH:case Va.CLOSE_SQUARE_BRACKET:return!0;default:return!1}}},hr=Va,lj=g.forwardRef(function(e,a){var n=e.prefixCls,o=e.style,_=e.className,l=e.duration,h=l===void 0?4.5:l,k=e.eventKey,f=e.content,b=e.closable,v=e.closeIcon,w=v===void 0?"x":v,z=e.props,S=e.onClick,E=e.onNoticeClose,O=e.times,P=g.useState(!1),T=la(P,2),A=T[0],L=T[1],H=function(){E(k)},K=function(se){(se.key==="Enter"||se.code==="Enter"||se.keyCode===hr.ENTER)&&H()};g.useEffect(function(){if(!A&&h>0){var ie=setTimeout(function(){H()},h*1e3);return function(){clearTimeout(ie)}}},[h,A,O]);var ae="".concat(n,"-notice");return g.createElement("div",gi({},z,{ref:a,className:ka()(ae,_,D({},"".concat(ae,"-closable"),b)),style:o,onMouseEnter:function(){L(!0)},onMouseLeave:function(){L(!1)},onClick:S}),g.createElement("div",{className:"".concat(ae,"-content")},f),b&&g.createElement("a",{tabIndex:0,className:"".concat(ae,"-close"),onKeyDown:K,onClick:function(se){se.preventDefault(),se.stopPropagation(),H()}},w))}),xk=lj,cj=g.forwardRef(function(e,a){var n=e.prefixCls,o=n===void 0?"rc-notification":n,_=e.container,l=e.motion,h=e.maxCount,k=e.className,f=e.style,b=e.onAllRemoved,v=g.useState([]),w=la(v,2),z=w[0],S=w[1],E=function(ie){var se,he=z.find(function(ue){return ue.key===ie});he==null||(se=he.onClose)===null||se===void 0||se.call(he),S(function(ue){return ue.filter(function(ze){return ze.key!==ie})})};g.useImperativeHandle(a,function(){return{open:function(ie){S(function(se){var he=xa(se),ue=he.findIndex(function(re){return re.key===ie.key}),ze=Ie({},ie);if(ue>=0){var te;ze.times=(((te=se[ue])===null||te===void 0?void 0:te.times)||0)+1,he[ue]=ze}else ze.times=0,he.push(ze);return h>0&&he.length>h&&(he=he.slice(-h)),he})},close:function(ie){E(ie)},destroy:function(){S([])}}});var O=g.useState({}),P=la(O,2),T=P[0],A=P[1];g.useEffect(function(){var ae={};z.forEach(function(ie){var se=ie.placement,he=se===void 0?"topRight":se;he&&(ae[he]=ae[he]||[],ae[he].push(ie))}),Object.keys(T).forEach(function(ie){ae[ie]=ae[ie]||[]}),A(ae)},[z]);var L=function(ie){A(function(se){var he=Ie({},se),ue=he[ie]||[];return ue.length||delete he[ie],he})},H=g.useRef(!1);if(g.useEffect(function(){Object.keys(T).length>0?H.current=!0:H.current&&(b==null||b(),H.current=!1)},[T]),!_)return null;var K=Object.keys(T);return(0,$_.createPortal)(g.createElement(g.Fragment,null,K.map(function(ae){var ie=T[ae],se=ie.map(function(ue){return{config:ue,key:ue.key}}),he=typeof l=="function"?l(ae):l;return g.createElement(uj,gi({key:ae,className:ka()(o,"".concat(o,"-").concat(ae),k==null?void 0:k(ae)),style:f==null?void 0:f(ae),keys:se,motionAppear:!0},he,{onAllRemoved:function(){L(ae)}}),function(ue,ze){var te=ue.config,re=ue.className,le=ue.style,be=te.key,Be=te.times,He=te.className,ea=te.style;return g.createElement(xk,gi({},te,{ref:ze,prefixCls:o,className:ka()(re,He),style:Ie(Ie({},le),ea),times:Be,key:be,eventKey:be,onNoticeClose:E}))})})),_)}),mj=cj,hj=["getContainer","motion","prefixCls","maxCount","className","style","onAllRemoved"],dj=function(){return document.body},Gf=0;function gj(){for(var e={},a=arguments.length,n=new Array(a),o=0;o0&&arguments[0]!==void 0?arguments[0]:{},a=e.getContainer,n=a===void 0?dj:a,o=e.motion,_=e.prefixCls,l=e.maxCount,h=e.className,k=e.style,f=e.onAllRemoved,b=Ai(e,hj),v=g.useState(),w=la(v,2),z=w[0],S=w[1],E=g.useRef(),O=g.createElement(mj,{container:z,ref:E,prefixCls:_,motion:o,maxCount:l,className:h,style:k,onAllRemoved:f}),P=g.useState([]),T=la(P,2),A=T[0],L=T[1],H=g.useMemo(function(){return{open:function(ae){var ie=gj(b,ae);(ie.key===null||ie.key===void 0)&&(ie.key="rc-notification-".concat(Gf),Gf+=1),L(function(se){return[].concat(xa(se),[{type:"open",config:ie}])})},close:function(ae){L(function(ie){return[].concat(xa(ie),[{type:"close",key:ae}])})},destroy:function(){L(function(ae){return[].concat(xa(ae),[{type:"destroy"}])})}}},[]);return g.useEffect(function(){S(n())}),g.useEffect(function(){E.current&&A.length&&(A.forEach(function(K){switch(K.type){case"open":E.current.open(K.config);break;case"close":E.current.close(K.key);break;case"destroy":E.current.destroy();break}}),L([]))},[A]),[H,O]}const Yf=typeof CSSINJS_STATISTIC!="undefined";let Ck=!0;function Po(){for(var e=arguments.length,a=new Array(e),n=0;n{Object.keys(_).forEach(h=>{Object.defineProperty(o,h,{configurable:!0,enumerable:!0,get:()=>_[h]})})}),Ck=!0,o}const kj={},ND={};function pj(){}function fj(e){let a,n=e,o=pj;return Yf&&(a=new Set,n=new Proxy(e,{get(_,l){return Ck&&a.add(l),_[l]}}),o=(_,l)=>{kj[_]={global:Array.from(a),component:l}}),{token:n,keys:a,flush:o}}function dr(e,a,n,o){return _=>{const[l,h,k]=L_(),{getPrefixCls:f,iconPrefixCls:b,csp:v}=(0,g.useContext)(Ha),w=f(),z={theme:l,token:h,hashId:k,nonce:()=>v==null?void 0:v.nonce};return yo(Object.assign(Object.assign({},z),{path:["Shared",w]}),()=>[{"&":k0(h)}]),[yo(Object.assign(Object.assign({},z),{path:[e,_,b]}),()=>{const{token:S,flush:E}=fj(h),O=typeof n=="function"?n(S):n,P=Object.assign(Object.assign({},O),h[e]),T=`.${_}`,A=Po(S,{componentCls:T,prefixCls:_,iconCls:`.${b}`,antCls:`.${w}`},P),L=a(A,{hashId:k,prefixCls:_,rootPrefixCls:w,iconPrefixCls:b,overrideComponentToken:h[e]});return E(e,P),[(o==null?void 0:o.resetStyle)===!1?null:p0(h,_),L]}),k]}}const yj=e=>{const{componentCls:a,iconCls:n,boxShadow:o,colorText:_,colorBgElevated:l,colorSuccess:h,colorError:k,colorWarning:f,colorInfo:b,fontSizeLG:v,motionEaseInOutCirc:w,motionDurationSlow:z,marginXS:S,paddingXS:E,borderRadiusLG:O,zIndexPopup:P,messageNoticeContentPadding:T}=e,A=new ui("MessageMoveIn",{"0%":{padding:0,transform:"translateY(-100%)",opacity:0},"100%":{padding:E,transform:"translateY(0)",opacity:1}}),L=new ui("MessageMoveOut",{"0%":{maxHeight:e.height,padding:E,opacity:1},"100%":{maxHeight:0,padding:0,opacity:0}});return[{[a]:Object.assign(Object.assign({},it(e)),{color:_,position:"fixed",top:S,width:"100%",pointerEvents:"none",zIndex:P,[`${a}-move-up`]:{animationFillMode:"forwards"},[` ${a}-move-up-appear, ${a}-move-up-enter `]:{animationName:A,animationDuration:z,animationPlayState:"paused",animationTimingFunction:w},[` @@ -136,13 +136,13 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho ${a}-move-up-enter${a}-move-up-enter-active `]:{animationPlayState:"running"},[`${a}-move-up-leave`]:{animationName:L,animationDuration:z,animationPlayState:"paused",animationTimingFunction:w},[`${a}-move-up-leave${a}-move-up-leave-active`]:{animationPlayState:"running"},"&-rtl":{direction:"rtl",span:{direction:"rtl"}}})},{[`${a}-notice`]:{padding:E,textAlign:"center",[`${a}-custom-content > ${n}`]:{verticalAlign:"text-bottom",marginInlineEnd:S,fontSize:v},[`${a}-notice-content`]:{display:"inline-block",padding:T,background:l,borderRadius:O,boxShadow:o,pointerEvents:"all"},[`${a}-success > ${n}`]:{color:h},[`${a}-error > ${n}`]:{color:k},[`${a}-warning > ${n}`]:{color:f},[` ${a}-info > ${n}, - ${a}-loading > ${n}`]:{color:b}}},{[`${a}-notice-pure-panel`]:{padding:0,textAlign:"start"}}]};var Kf=dr("Message",e=>{const a=Po(e,{messageNoticeContentPadding:`${(e.controlHeightLG-e.fontSize*e.lineHeight)/2}px ${e.paddingSM}px`});return[yj(a)]},e=>({height:150,zIndexPopup:e.zIndexPopupBase+10})),bj=function(e,a){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&a.indexOf(o)<0&&(n[o]=e[o]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var _=0,o=Object.getOwnPropertySymbols(e);_{a=e(()=>{_(!0)})}),o=()=>{a==null||a()};return o.then=(_,l)=>n.then(_,l),o.promise=n,o}var Cj=function(e,a){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&a.indexOf(o)<0&&(n[o]=e[o]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var _=0,o=Object.getOwnPropertySymbols(e);_{const{top:n,prefixCls:o,getContainer:_,maxCount:l,duration:h=Pj,rtl:k,transitionName:f,onAllRemoved:b}=e,{getPrefixCls:v,getPopupContainer:w}=g.useContext(Ha),z=o||v("message"),[,S]=Kf(z),E=()=>({left:"50%",transform:"translateX(-50%)",top:n!=null?n:Sj}),O=()=>ka()(S,k?`${z}-rtl`:""),P=()=>xj(z,f),T=g.createElement("span",{className:`${z}-close-x`},g.createElement(Sd,{className:`${z}-close-icon`})),[A,L]=Xf({prefixCls:z,style:E,className:O,motion:P,closable:!1,closeIcon:T,duration:h,getContainer:()=>(_==null?void 0:_())||(w==null?void 0:w())||document.body,maxCount:l,onAllRemoved:b});return g.useImperativeHandle(a,()=>Object.assign(Object.assign({},A),{prefixCls:z,hashId:S})),L});let Zf=0;function ey(e){const a=g.useRef(null);return[g.useMemo(()=>{const o=f=>{var b;(b=a.current)===null||b===void 0||b.close(f)},_=f=>{if(!a.current){const K=()=>{};return K.then=()=>{},K}const{open:b,prefixCls:v,hashId:w}=a.current,z=`${v}-notice`,{content:S,icon:E,type:O,key:P,className:T,onClose:A}=f,L=Cj(f,["content","icon","type","key","className","onClose"]);let H=P;return H==null&&(Zf+=1,H=`antd-message-${Zf}`),Sk(K=>(b(Object.assign(Object.assign({},L),{key:H,content:g.createElement(Qf,{prefixCls:v,type:O,icon:E},S),placement:"top",className:ka()(O&&`${z}-${O}`,w,T),onClose:()=>{A==null||A(),K()}})),()=>{o(H)}))},h={open:_,destroy:f=>{var b;f!==void 0?o(f):(b=a.current)===null||b===void 0||b.destroy()}};return["info","success","warning","error","loading"].forEach(f=>{const b=(v,w,z)=>{let S;v&&typeof v=="object"&&"content"in v?S=v:S={content:v};let E,O;typeof w=="function"?O=w:(E=w,O=z);const P=Object.assign(Object.assign({onClose:O,duration:E},S),{type:f});return _(P)};h[f]=b}),h},[]),g.createElement(Ej,Object.assign({key:"message-holder"},e,{ref:a}))]}function Oj(e){return ey(e)}let Qo=null,du=e=>e(),Lm=[],Pd={};function Ij(){const{prefixCls:e,getContainer:a,duration:n,rtl:o,maxCount:_,top:l}=Pd,h=e!=null?e:Am().getPrefixCls("message"),k=(a==null?void 0:a())||document.body;return{prefixCls:h,container:k,duration:n,rtl:o,maxCount:_,top:l}}const Dj=g.forwardRef((e,a)=>{const n=()=>{const{prefixCls:w,container:z,maxCount:S,duration:E,rtl:O,top:P}=Ij();return{prefixCls:w,getContainer:()=>z,maxCount:S,duration:E,rtl:O,top:P}},[o,_]=g.useState(n),[l,h]=ey(o),k=Am(),f=k.getRootPrefixCls(),b=k.getIconPrefixCls(),v=()=>{_(n)};return g.useEffect(v,[]),g.useImperativeHandle(a,()=>{const w=Object.assign({},l);return Object.keys(w).forEach(z=>{w[z]=function(){return v(),l[z].apply(l,arguments)}}),{instance:w,sync:v}}),g.createElement(dd,{prefixCls:f,iconPrefixCls:b},h)});function Ed(){if(!Qo){const e=document.createDocumentFragment(),a={fragment:e};Qo=a,du(()=>{W_(g.createElement(Dj,{ref:n=>{const{instance:o,sync:_}=n||{};Promise.resolve().then(()=>{!a.instance&&o&&(a.instance=o,a.sync=_,Ed())})}}),e)});return}Qo.instance&&(Lm.forEach(e=>{const{type:a,skipped:n}=e;if(!n)switch(a){case"open":{du(()=>{const o=Qo.instance.open(Object.assign(Object.assign({},Pd),e.config));o==null||o.then(e.resolve),e.setCloseFn(o)});break}case"destroy":du(()=>{Qo==null||Qo.instance.destroy(e.key)});break;default:du(()=>{var o;const _=(o=Qo.instance)[a].apply(o,xa(e.args));_==null||_.then(e.resolve),e.setCloseFn(_)})}}),Lm=[])}function Tj(e){Pd=Object.assign(Object.assign({},Pd),e),du(()=>{var a;(a=Qo==null?void 0:Qo.sync)===null||a===void 0||a.call(Qo)})}function Rj(e){const a=Sk(n=>{let o;const _={type:"open",config:e,resolve:n,setCloseFn:l=>{o=l}};return Lm.push(_),()=>{o?du(()=>{o()}):_.skipped=!0}});return Ed(),a}function Aj(e,a){const n=Sk(o=>{let _;const l={type:e,args:a,resolve:o,setCloseFn:h=>{_=h}};return Lm.push(l),()=>{_?du(()=>{_()}):l.skipped=!0}});return Ed(),n}function Nj(e){Lm.push({type:"destroy",key:e}),Ed()}const Mj=["success","info","warning","error","loading"],ay={open:Rj,destroy:Nj,config:Tj,useMessage:Oj,_InternalPanelDoNotUseOrYouWillBeFired:wj};Mj.forEach(e=>{ay[e]=function(){for(var a=arguments.length,n=new Array(a),o=0;o{};let LD=null,UD=null;var Fj=ay,Lj=e=>{const{componentCls:a,width:n,notificationMarginEdge:o}=e,_=new ui("antNotificationTopFadeIn",{"0%":{marginTop:"-100%",opacity:0},"100%":{marginTop:0,opacity:1}}),l=new ui("antNotificationBottomFadeIn",{"0%":{marginBottom:"-100%",opacity:0},"100%":{marginBottom:0,opacity:1}}),h=new ui("antNotificationLeftFadeIn",{"0%":{right:{_skip_check_:!0,value:n},opacity:0},"100%":{right:{_skip_check_:!0,value:0},opacity:1}});return{[`&${a}-top, &${a}-bottom`]:{marginInline:0},[`&${a}-top`]:{[`${a}-fade-enter${a}-fade-enter-active, ${a}-fade-appear${a}-fade-appear-active`]:{animationName:_}},[`&${a}-bottom`]:{[`${a}-fade-enter${a}-fade-enter-active, ${a}-fade-appear${a}-fade-appear-active`]:{animationName:l}},[`&${a}-topLeft, &${a}-bottomLeft`]:{marginInlineEnd:0,marginInlineStart:o,[`${a}-fade-enter${a}-fade-enter-active, ${a}-fade-appear${a}-fade-appear-active`]:{animationName:h}}}};const Uj=e=>{const{iconCls:a,componentCls:n,boxShadow:o,fontSizeLG:_,notificationMarginBottom:l,borderRadiusLG:h,colorSuccess:k,colorInfo:f,colorWarning:b,colorError:v,colorTextHeading:w,notificationBg:z,notificationPadding:S,notificationMarginEdge:E,motionDurationMid:O,motionEaseInOut:P,fontSize:T,lineHeight:A,width:L,notificationIconSize:H}=e,K=`${n}-notice`,ae=new ui("antNotificationFadeIn",{"0%":{left:{_skip_check_:!0,value:L},opacity:0},"100%":{left:{_skip_check_:!0,value:0},opacity:1}}),ie=new ui("antNotificationFadeOut",{"0%":{maxHeight:e.animationMaxHeight,marginBottom:l,opacity:1},"100%":{maxHeight:0,marginBottom:0,paddingTop:0,paddingBottom:0,opacity:0}});return[{[n]:Object.assign(Object.assign(Object.assign(Object.assign({},it(e)),{position:"fixed",zIndex:e.zIndexPopup,marginInlineEnd:E,[`${n}-hook-holder`]:{position:"relative"},[`&${n}-top, &${n}-bottom`]:{[`${n}-notice`]:{marginInline:"auto auto"}},[`&${n}-topLeft, &${n}-bottomLeft`]:{[`${n}-notice`]:{marginInlineEnd:"auto",marginInlineStart:0}},[`${n}-fade-enter, ${n}-fade-appear`]:{animationDuration:e.motionDurationMid,animationTimingFunction:P,animationFillMode:"both",opacity:0,animationPlayState:"paused"},[`${n}-fade-leave`]:{animationTimingFunction:P,animationFillMode:"both",animationDuration:O,animationPlayState:"paused"},[`${n}-fade-enter${n}-fade-enter-active, ${n}-fade-appear${n}-fade-appear-active`]:{animationName:ae,animationPlayState:"running"},[`${n}-fade-leave${n}-fade-leave-active`]:{animationName:ie,animationPlayState:"running"}}),Lj(e)),{"&-rtl":{direction:"rtl",[`${n}-notice-btn`]:{float:"left"}}})},{[K]:{position:"relative",width:L,maxWidth:`calc(100vw - ${E*2}px)`,marginBottom:l,marginInlineStart:"auto",padding:S,overflow:"hidden",lineHeight:A,wordWrap:"break-word",background:z,borderRadius:h,boxShadow:o,[`${n}-close-icon`]:{fontSize:T,cursor:"pointer"},[`${K}-message`]:{marginBottom:e.marginXS,color:w,fontSize:_,lineHeight:e.lineHeightLG},[`${K}-description`]:{fontSize:T},[`&${K}-closable ${K}-message`]:{paddingInlineEnd:e.paddingLG},[`${K}-with-icon ${K}-message`]:{marginBottom:e.marginXS,marginInlineStart:e.marginSM+H,fontSize:_},[`${K}-with-icon ${K}-description`]:{marginInlineStart:e.marginSM+H,fontSize:T},[`${K}-icon`]:{position:"absolute",fontSize:H,lineHeight:0,[`&-success${a}`]:{color:k},[`&-info${a}`]:{color:f},[`&-warning${a}`]:{color:b},[`&-error${a}`]:{color:v}},[`${K}-close`]:{position:"absolute",top:e.notificationPaddingVertical,insetInlineEnd:e.notificationPaddingHorizontal,color:e.colorIcon,outline:"none",width:e.notificationCloseButtonSize,height:e.notificationCloseButtonSize,borderRadius:e.borderRadiusSM,transition:`background-color ${e.motionDurationMid}, color ${e.motionDurationMid}`,display:"flex",alignItems:"center",justifyContent:"center","&:hover":{color:e.colorIconHover,backgroundColor:e.wireframe?"transparent":e.colorFillContent}},[`${K}-btn`]:{float:"right",marginTop:e.marginSM}}},{[`${K}-pure-panel`]:{margin:0}}]};var iy=dr("Notification",e=>{const a=e.paddingMD,n=e.paddingLG,o=Po(e,{notificationBg:e.colorBgElevated,notificationPaddingVertical:a,notificationPaddingHorizontal:n,notificationPadding:`${e.paddingMD}px ${e.paddingContentHorizontalLG}px`,notificationMarginBottom:e.margin,notificationMarginEdge:e.marginLG,animationMaxHeight:150,notificationIconSize:e.fontSizeLG*e.lineHeightLG,notificationCloseButtonSize:e.controlHeightLG*.55});return[Uj(o)]},e=>({zIndexPopup:e.zIndexPopupBase+50,width:384})),$j=function(e,a){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&a.indexOf(o)<0&&(n[o]=e[o]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var _=0,o=Object.getOwnPropertySymbols(e);_{const{top:n,bottom:o,prefixCls:_,getContainer:l,maxCount:h,rtl:k,onAllRemoved:f}=e,{getPrefixCls:b,getPopupContainer:v}=g.useContext(Ha),w=_||b("notification"),z=A=>Vj(A,n!=null?n:ry,o!=null?o:ry),[,S]=iy(w),E=()=>ka()(S,{[`${w}-rtl`]:k}),O=()=>Bj(w),[P,T]=Xf({prefixCls:w,style:z,className:E,motion:O,closable:!0,closeIcon:ny(w),duration:Gj,getContainer:()=>(l==null?void 0:l())||(v==null?void 0:v())||document.body,maxCount:h,onAllRemoved:f});return g.useImperativeHandle(a,()=>Object.assign(Object.assign({},P),{prefixCls:w,hashId:S})),T});function ty(e){const a=g.useRef(null);return[g.useMemo(()=>{const o=k=>{if(!a.current)return;const{open:f,prefixCls:b,hashId:v}=a.current,w=`${b}-notice`,{message:z,description:S,icon:E,type:O,btn:P,className:T}=k,A=qj(k,["message","description","icon","type","btn","className"]);return f(Object.assign(Object.assign({placement:"topRight"},A),{content:g.createElement(oy,{prefixCls:w,icon:E,type:O,message:z,description:S,btn:P}),className:ka()(O&&`${w}-${O}`,v,T)}))},l={open:o,destroy:k=>{var f,b;k!==void 0?(f=a.current)===null||f===void 0||f.close(k):(b=a.current)===null||b===void 0||b.destroy()}};return["success","info","warning","error"].forEach(k=>{l[k]=f=>o(Object.assign(Object.assign({},f),{type:k}))}),l},[]),g.createElement(Xj,Object.assign({key:"notification-holder"},e,{ref:a}))]}function Yj(e){return ty(e)}let gr=null,Od=e=>e(),Id=[],Dd={};function Kj(){const{prefixCls:e,getContainer:a,rtl:n,maxCount:o,top:_,bottom:l}=Dd,h=e!=null?e:Am().getPrefixCls("notification"),k=(a==null?void 0:a())||document.body;return{prefixCls:h,container:k,rtl:n,maxCount:o,top:_,bottom:l}}const Qj=g.forwardRef((e,a)=>{const[n,o]=g.useState(),[_,l]=g.useState(),[h,k]=g.useState(),[f,b]=g.useState(),[v,w]=g.useState(),[z,S]=g.useState(),[E,O]=ty({prefixCls:n,getContainer:()=>_,maxCount:h,rtl:f,top:v,bottom:z}),P=Am(),T=P.getRootPrefixCls(),A=P.getIconPrefixCls(),L=()=>{const{prefixCls:H,container:K,maxCount:ae,rtl:ie,top:se,bottom:he}=Kj();o(H),l(K),k(ae),b(ie),w(se),S(he)};return g.useEffect(L,[]),g.useImperativeHandle(a,()=>{const H=Object.assign({},E);return Object.keys(H).forEach(K=>{H[K]=function(){return L(),E[K].apply(E,arguments)}}),{instance:H,sync:L}}),g.createElement(dd,{prefixCls:T,iconPrefixCls:A},O)});function Pk(){if(!gr){const e=document.createDocumentFragment(),a={fragment:e};gr=a,Od(()=>{W_(g.createElement(Qj,{ref:n=>{const{instance:o,sync:_}=n||{};Promise.resolve().then(()=>{!a.instance&&o&&(a.instance=o,a.sync=_,Pk())})}}),e)});return}gr.instance&&(Id.forEach(e=>{switch(e.type){case"open":{Od(()=>{gr.instance.open(Object.assign(Object.assign({},Dd),e.config))});break}case"destroy":Od(()=>{gr==null||gr.instance.destroy(e.key)});break}}),Id=[])}function Jj(e){Dd=Object.assign(Object.assign({},Dd),e),Od(()=>{var a;(a=gr==null?void 0:gr.sync)===null||a===void 0||a.call(gr)})}function _y(e){Id.push({type:"open",config:e}),Pk()}function Zj(e){Id.push({type:"destroy",key:e}),Pk()}const ez=["success","info","warning","error"],sy={open:_y,destroy:Zj,config:Jj,useNotification:Yj,_InternalPanelDoNotUseOrYouWillBeFired:Wj};ez.forEach(e=>{sy[e]=a=>_y(Object.assign(Object.assign({},a),{type:e}))});const VD=()=>{};let BD=null;var az=sy,Ek=(e,a)=>{const n=g.useContext(Qe),o=g.useMemo(()=>{var l;const h=a||C[e],k=(l=n==null?void 0:n[e])!==null&&l!==void 0?l:{};return Object.assign(Object.assign({},typeof h=="function"?h():h),k||{})},[e,a,n]),_=g.useMemo(()=>{const l=n==null?void 0:n.locale;return n!=null&&n.exist&&!l?C.locale:l},[n]);return[o,_]};function Ok(e,a){var n=Ie({},e);return Array.isArray(a)&&a.forEach(function(o){delete n[o]}),n}var uy=function(e){if(!e)return!1;if(e instanceof Element){if(e.offsetParent)return!0;if(e.getBBox){var a=e.getBBox(),n=a.width,o=a.height;if(n||o)return!0}if(e.getBoundingClientRect){var _=e.getBoundingClientRect(),l=_.width,h=_.height;if(l||h)return!0}}return!1};const{isValidElement:Um}=x;function ly(e){return e&&Um(e)&&e.type===g.Fragment}function iz(e,a,n){return Um(e)?g.cloneElement(e,typeof n=="function"?n(e.props||{}):n):a}function es(e,a){return iz(e,e,a)}const nz=e=>{const{componentCls:a,colorPrimary:n}=e;return{[a]:{position:"absolute",background:"transparent",pointerEvents:"none",boxSizing:"border-box",color:`var(--wave-color, ${n})`,boxShadow:"0 0 0 0 currentcolor",opacity:.2,"&.wave-motion-appear":{transition:[`box-shadow 0.4s ${e.motionEaseOutCirc}`,`opacity 2s ${e.motionEaseOutCirc}`].join(","),"&-active":{boxShadow:"0 0 0 6px currentcolor",opacity:0}}}}};var oz=dr("Wave",e=>[nz(e)]);function rz(e){const a=(e||"").match(/rgba?\((\d*), (\d*), (\d*)(, [\d.]*)?\)/);return a&&a[1]&&a[2]&&a[3]?!(a[1]===a[2]&&a[2]===a[3]):!0}function Ik(e){return e&&e!=="#fff"&&e!=="#ffffff"&&e!=="rgb(255, 255, 255)"&&e!=="rgba(255, 255, 255, 1)"&&rz(e)&&!/rgba\((?:\d*, ){3}0\)/.test(e)&&e!=="transparent"}function tz(e){const{borderTopColor:a,borderColor:n,backgroundColor:o}=getComputedStyle(e);return Ik(a)?a:Ik(n)?n:Ik(o)?o:null}function Dk(e){return Number.isNaN(e)?0:e}const _z=e=>{const{className:a,target:n}=e,o=g.useRef(null),[_,l]=g.useState(null),[h,k]=g.useState([]),[f,b]=g.useState(0),[v,w]=g.useState(0),[z,S]=g.useState(0),[E,O]=g.useState(0),[P,T]=g.useState(!1),A={left:f,top:v,width:z,height:E,borderRadius:h.map(H=>`${H}px`).join(" ")};_&&(A["--wave-color"]=_);function L(){const H=getComputedStyle(n);l(tz(n));const K=H.position==="static",{borderLeftWidth:ae,borderTopWidth:ie}=H;b(K?n.offsetLeft:Dk(-parseFloat(ae))),w(K?n.offsetTop:Dk(-parseFloat(ie))),S(n.offsetWidth),O(n.offsetHeight);const{borderTopLeftRadius:se,borderTopRightRadius:he,borderBottomLeftRadius:ue,borderBottomRightRadius:ze}=H;k([se,he,ze,ue].map(te=>Dk(parseFloat(te))))}return g.useEffect(()=>{if(n){const H=nt(()=>{L(),T(!0)});let K;return typeof ResizeObserver!="undefined"&&(K=new ResizeObserver(L),K.observe(n)),()=>{nt.cancel(H),K==null||K.disconnect()}}},[]),P?g.createElement(Vt,{visible:!0,motionAppear:!0,motionName:"wave-motion",motionDeadline:5e3,onAppearEnd:(H,K)=>{var ae;if(K.deadline||K.propertyName==="opacity"){const ie=(ae=o.current)===null||ae===void 0?void 0:ae.parentElement;um(ie).then(()=>{var se;(se=ie.parentElement)===null||se===void 0||se.removeChild(ie)})}return!1}},H=>{let{className:K}=H;return g.createElement("div",{ref:o,className:ka()(a,K),style:A})}):null};function sz(e,a){const n=document.createElement("div");n.style.position="absolute",n.style.left="0px",n.style.top="0px",e==null||e.insertBefore(n,e==null?void 0:e.firstChild),W_(g.createElement(_z,{target:e,className:a}),n)}function uz(e,a){function n(){const o=e.current;sz(o,a)}return n}var lz=e=>{const{children:a,disabled:n}=e,{getPrefixCls:o}=(0,g.useContext)(Ha),_=(0,g.useRef)(null),l=o("wave"),[,h]=oz(l),k=uz(_,ka()(l,h));if(g.useEffect(()=>{const b=_.current;if(!b||b.nodeType!==1||n)return;const v=w=>{w.target.tagName==="INPUT"||!uy(w.target)||!b.getAttribute||b.getAttribute("disabled")||b.disabled||b.className.includes("disabled")||b.className.includes("-leave")||k()};return b.addEventListener("click",v,!0),()=>{b.removeEventListener("click",v,!0)}},[n]),!g.isValidElement(a))return a!=null?a:null;const f=Fm(a)?Mm(a.ref,_):_;return es(a,{ref:f})},cz=e=>{const{componentCls:a}=e;return{[a]:{display:"inline-flex","&-block":{display:"flex",width:"100%"},"&-vertical":{flexDirection:"column"}}}};const mz=e=>{const{componentCls:a}=e;return{[a]:{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"}},[`${a}-item:empty`]:{display:"none"}}}};var cy=dr("Space",e=>[mz(e),cz(e)],()=>({}),{resetStyle:!1}),my=function(e,a){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&a.indexOf(o)<0&&(n[o]=e[o]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var _=0,o=Object.getOwnPropertySymbols(e);_{const n=g.useContext(Td),o=g.useMemo(()=>{if(!n)return"";const{compactDirection:_,isFirstItem:l,isLastItem:h}=n,k=_==="vertical"?"-vertical-":"-";return ka()({[`${e}-compact${k}item`]:!0,[`${e}-compact${k}first-item`]:l,[`${e}-compact${k}last-item`]:h,[`${e}-compact${k}item-rtl`]:a==="rtl"})},[e,a,n]);return{compactSize:n==null?void 0:n.compactSize,compactDirection:n==null?void 0:n.compactDirection,compactItemClassnames:o}},dz=e=>{let{children:a}=e;return g.createElement(Td.Provider,{value:null},a)},gz=e=>{var{children:a}=e,n=my(e,["children"]);return g.createElement(Td.Provider,{value:n},a)};var kz=e=>{const{getPrefixCls:a,direction:n}=g.useContext(Ha),{size:o="middle",direction:_,block:l,prefixCls:h,className:k,rootClassName:f,children:b}=e,v=my(e,["size","direction","block","prefixCls","className","rootClassName","children"]),w=a("space-compact",h),[z,S]=cy(w),E=ka()(w,S,{[`${w}-rtl`]:n==="rtl",[`${w}-block`]:l,[`${w}-vertical`]:_==="vertical"},k,f),O=g.useContext(Td),P=Nt(b),T=g.useMemo(()=>P.map((A,L)=>{const H=A&&A.key||`${w}-item-${L}`;return g.createElement(gz,{key:H,compactSize:o,compactDirection:_,isFirstItem:L===0&&(!O||(O==null?void 0:O.isFirstItem)),isLastItem:L===P.length-1&&(!O||(O==null?void 0:O.isLastItem))},A)}),[o,P,O]);return P.length===0?null:z(g.createElement("div",Object.assign({className:E},v),T))};const Tk=()=>({width:0,opacity:0,transform:"scale(0)"}),Rk=e=>({width:e.scrollWidth,opacity:1,transform:"scale(1)"});var pz=e=>{let{prefixCls:a,loading:n,existIcon:o}=e;const _=!!n;return o?g.createElement("span",{className:`${a}-loading-icon`},g.createElement(pd,null)):g.createElement(Vt,{visible:_,motionName:`${a}-loading-icon-motion`,removeOnLeave:!0,onAppearStart:Tk,onAppearActive:Rk,onEnterStart:Tk,onEnterActive:Rk,onLeaveStart:Rk,onLeaveActive:Tk},(l,h)=>{let{className:k,style:f}=l;return g.createElement("span",{className:`${a}-loading-icon`,style:f,ref:h},g.createElement(pd,{className:k}))})},fz=function(e,a){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&a.indexOf(o)<0&&(n[o]=e[o]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var _=0,o=Object.getOwnPropertySymbols(e);_{const{getPrefixCls:a,direction:n}=g.useContext(Ha),{prefixCls:o,size:_,className:l}=e,h=fz(e,["prefixCls","size","className"]),k=a("btn-group",o),[,,f]=L_();let b="";switch(_){case"large":b="lg";break;case"small":b="sm";break;case"middle":case void 0:break;default:}const v=ka()(k,{[`${k}-${b}`]:b,[`${k}-rtl`]:n==="rtl"},l,f);return g.createElement(hy.Provider,{value:_},g.createElement("div",Object.assign({},h,{className:v})))};const dy=/^[\u4e00-\u9fa5]{2}$/,Ak=dy.test.bind(dy);function bz(e){return typeof e=="string"}function Nk(e){return e==="text"||e==="link"}function vz(e,a){if(e==null)return;const n=a?" ":"";return typeof e!="string"&&typeof e!="number"&&bz(e.type)&&Ak(e.props.children)?es(e,{children:e.props.children.split("").join(n)}):typeof e=="string"?Ak(e)?g.createElement("span",null,e.split("").join(n)):g.createElement("span",null,e):ly(e)?g.createElement("span",null,e):e}function wz(e,a){let n=!1;const o=[];return g.Children.forEach(e,_=>{const l=typeof _,h=l==="string"||l==="number";if(n&&h){const k=o.length-1,f=o[k];o[k]=`${f}${_}`}else o.push(_);n=h}),g.Children.map(o,_=>vz(_,a))}const JD=null,ZD=null,e2=null,gy=(e,a)=>({[`> span, > ${e}`]:{"&:not(:last-child)":{[`&, & > ${e}`]:{"&:not(:disabled)":{borderInlineEndColor:a}}},"&:not(:first-child)":{[`&, & > ${e}`]:{"&:not(:disabled)":{borderInlineStartColor:a}}}}});var jz=e=>{const{componentCls:a,fontSize:n,lineWidth:o,colorPrimaryHover:_,colorErrorHover:l}=e;return{[`${a}-group`]:[{position:"relative",display:"inline-flex",[`> span, > ${a}`]:{"&:not(:last-child)":{[`&, & > ${a}`]:{borderStartEndRadius:0,borderEndEndRadius:0}},"&:not(:first-child)":{marginInlineStart:-o,[`&, & > ${a}`]:{borderStartStartRadius:0,borderEndStartRadius:0}}},[a]:{position:"relative",zIndex:1,[`&:hover, + ${a}-loading > ${n}`]:{color:b}}},{[`${a}-notice-pure-panel`]:{padding:0,textAlign:"start"}}]};var Kf=dr("Message",e=>{const a=Po(e,{messageNoticeContentPadding:`${(e.controlHeightLG-e.fontSize*e.lineHeight)/2}px ${e.paddingSM}px`});return[yj(a)]},e=>({height:150,zIndexPopup:e.zIndexPopupBase+10})),bj=function(e,a){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&a.indexOf(o)<0&&(n[o]=e[o]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var _=0,o=Object.getOwnPropertySymbols(e);_{a=e(()=>{_(!0)})}),o=()=>{a==null||a()};return o.then=(_,l)=>n.then(_,l),o.promise=n,o}var Cj=function(e,a){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&a.indexOf(o)<0&&(n[o]=e[o]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var _=0,o=Object.getOwnPropertySymbols(e);_{const{top:n,prefixCls:o,getContainer:_,maxCount:l,duration:h=Pj,rtl:k,transitionName:f,onAllRemoved:b}=e,{getPrefixCls:v,getPopupContainer:w}=g.useContext(Ha),z=o||v("message"),[,S]=Kf(z),E=()=>({left:"50%",transform:"translateX(-50%)",top:n!=null?n:Sj}),O=()=>ka()(S,k?`${z}-rtl`:""),P=()=>xj(z,f),T=g.createElement("span",{className:`${z}-close-x`},g.createElement(Sd,{className:`${z}-close-icon`})),[A,L]=Xf({prefixCls:z,style:E,className:O,motion:P,closable:!1,closeIcon:T,duration:h,getContainer:()=>(_==null?void 0:_())||(w==null?void 0:w())||document.body,maxCount:l,onAllRemoved:b});return g.useImperativeHandle(a,()=>Object.assign(Object.assign({},A),{prefixCls:z,hashId:S})),L});let Zf=0;function ey(e){const a=g.useRef(null);return[g.useMemo(()=>{const o=f=>{var b;(b=a.current)===null||b===void 0||b.close(f)},_=f=>{if(!a.current){const K=()=>{};return K.then=()=>{},K}const{open:b,prefixCls:v,hashId:w}=a.current,z=`${v}-notice`,{content:S,icon:E,type:O,key:P,className:T,onClose:A}=f,L=Cj(f,["content","icon","type","key","className","onClose"]);let H=P;return H==null&&(Zf+=1,H=`antd-message-${Zf}`),Sk(K=>(b(Object.assign(Object.assign({},L),{key:H,content:g.createElement(Qf,{prefixCls:v,type:O,icon:E},S),placement:"top",className:ka()(O&&`${z}-${O}`,w,T),onClose:()=>{A==null||A(),K()}})),()=>{o(H)}))},h={open:_,destroy:f=>{var b;f!==void 0?o(f):(b=a.current)===null||b===void 0||b.destroy()}};return["info","success","warning","error","loading"].forEach(f=>{const b=(v,w,z)=>{let S;v&&typeof v=="object"&&"content"in v?S=v:S={content:v};let E,O;typeof w=="function"?O=w:(E=w,O=z);const P=Object.assign(Object.assign({onClose:O,duration:E},S),{type:f});return _(P)};h[f]=b}),h},[]),g.createElement(Ej,Object.assign({key:"message-holder"},e,{ref:a}))]}function Oj(e){return ey(e)}let Qo=null,du=e=>e(),Lm=[],Pd={};function Ij(){const{prefixCls:e,getContainer:a,duration:n,rtl:o,maxCount:_,top:l}=Pd,h=e!=null?e:Am().getPrefixCls("message"),k=(a==null?void 0:a())||document.body;return{prefixCls:h,container:k,duration:n,rtl:o,maxCount:_,top:l}}const Dj=g.forwardRef((e,a)=>{const n=()=>{const{prefixCls:w,container:z,maxCount:S,duration:E,rtl:O,top:P}=Ij();return{prefixCls:w,getContainer:()=>z,maxCount:S,duration:E,rtl:O,top:P}},[o,_]=g.useState(n),[l,h]=ey(o),k=Am(),f=k.getRootPrefixCls(),b=k.getIconPrefixCls(),v=()=>{_(n)};return g.useEffect(v,[]),g.useImperativeHandle(a,()=>{const w=Object.assign({},l);return Object.keys(w).forEach(z=>{w[z]=function(){return v(),l[z].apply(l,arguments)}}),{instance:w,sync:v}}),g.createElement(dd,{prefixCls:f,iconPrefixCls:b},h)});function Ed(){if(!Qo){const e=document.createDocumentFragment(),a={fragment:e};Qo=a,du(()=>{W_(g.createElement(Dj,{ref:n=>{const{instance:o,sync:_}=n||{};Promise.resolve().then(()=>{!a.instance&&o&&(a.instance=o,a.sync=_,Ed())})}}),e)});return}Qo.instance&&(Lm.forEach(e=>{const{type:a,skipped:n}=e;if(!n)switch(a){case"open":{du(()=>{const o=Qo.instance.open(Object.assign(Object.assign({},Pd),e.config));o==null||o.then(e.resolve),e.setCloseFn(o)});break}case"destroy":du(()=>{Qo==null||Qo.instance.destroy(e.key)});break;default:du(()=>{var o;const _=(o=Qo.instance)[a].apply(o,xa(e.args));_==null||_.then(e.resolve),e.setCloseFn(_)})}}),Lm=[])}function Tj(e){Pd=Object.assign(Object.assign({},Pd),e),du(()=>{var a;(a=Qo==null?void 0:Qo.sync)===null||a===void 0||a.call(Qo)})}function Rj(e){const a=Sk(n=>{let o;const _={type:"open",config:e,resolve:n,setCloseFn:l=>{o=l}};return Lm.push(_),()=>{o?du(()=>{o()}):_.skipped=!0}});return Ed(),a}function Aj(e,a){const n=Sk(o=>{let _;const l={type:e,args:a,resolve:o,setCloseFn:h=>{_=h}};return Lm.push(l),()=>{_?du(()=>{_()}):l.skipped=!0}});return Ed(),n}function Nj(e){Lm.push({type:"destroy",key:e}),Ed()}const Mj=["success","info","warning","error","loading"],ay={open:Rj,destroy:Nj,config:Tj,useMessage:Oj,_InternalPanelDoNotUseOrYouWillBeFired:wj};Mj.forEach(e=>{ay[e]=function(){for(var a=arguments.length,n=new Array(a),o=0;o{};let LD=null,UD=null;var Fj=ay,Lj=e=>{const{componentCls:a,width:n,notificationMarginEdge:o}=e,_=new ui("antNotificationTopFadeIn",{"0%":{marginTop:"-100%",opacity:0},"100%":{marginTop:0,opacity:1}}),l=new ui("antNotificationBottomFadeIn",{"0%":{marginBottom:"-100%",opacity:0},"100%":{marginBottom:0,opacity:1}}),h=new ui("antNotificationLeftFadeIn",{"0%":{right:{_skip_check_:!0,value:n},opacity:0},"100%":{right:{_skip_check_:!0,value:0},opacity:1}});return{[`&${a}-top, &${a}-bottom`]:{marginInline:0},[`&${a}-top`]:{[`${a}-fade-enter${a}-fade-enter-active, ${a}-fade-appear${a}-fade-appear-active`]:{animationName:_}},[`&${a}-bottom`]:{[`${a}-fade-enter${a}-fade-enter-active, ${a}-fade-appear${a}-fade-appear-active`]:{animationName:l}},[`&${a}-topLeft, &${a}-bottomLeft`]:{marginInlineEnd:0,marginInlineStart:o,[`${a}-fade-enter${a}-fade-enter-active, ${a}-fade-appear${a}-fade-appear-active`]:{animationName:h}}}};const Uj=e=>{const{iconCls:a,componentCls:n,boxShadow:o,fontSizeLG:_,notificationMarginBottom:l,borderRadiusLG:h,colorSuccess:k,colorInfo:f,colorWarning:b,colorError:v,colorTextHeading:w,notificationBg:z,notificationPadding:S,notificationMarginEdge:E,motionDurationMid:O,motionEaseInOut:P,fontSize:T,lineHeight:A,width:L,notificationIconSize:H}=e,K=`${n}-notice`,ae=new ui("antNotificationFadeIn",{"0%":{left:{_skip_check_:!0,value:L},opacity:0},"100%":{left:{_skip_check_:!0,value:0},opacity:1}}),ie=new ui("antNotificationFadeOut",{"0%":{maxHeight:e.animationMaxHeight,marginBottom:l,opacity:1},"100%":{maxHeight:0,marginBottom:0,paddingTop:0,paddingBottom:0,opacity:0}});return[{[n]:Object.assign(Object.assign(Object.assign(Object.assign({},it(e)),{position:"fixed",zIndex:e.zIndexPopup,marginInlineEnd:E,[`${n}-hook-holder`]:{position:"relative"},[`&${n}-top, &${n}-bottom`]:{[`${n}-notice`]:{marginInline:"auto auto"}},[`&${n}-topLeft, &${n}-bottomLeft`]:{[`${n}-notice`]:{marginInlineEnd:"auto",marginInlineStart:0}},[`${n}-fade-enter, ${n}-fade-appear`]:{animationDuration:e.motionDurationMid,animationTimingFunction:P,animationFillMode:"both",opacity:0,animationPlayState:"paused"},[`${n}-fade-leave`]:{animationTimingFunction:P,animationFillMode:"both",animationDuration:O,animationPlayState:"paused"},[`${n}-fade-enter${n}-fade-enter-active, ${n}-fade-appear${n}-fade-appear-active`]:{animationName:ae,animationPlayState:"running"},[`${n}-fade-leave${n}-fade-leave-active`]:{animationName:ie,animationPlayState:"running"}}),Lj(e)),{"&-rtl":{direction:"rtl",[`${n}-notice-btn`]:{float:"left"}}})},{[K]:{position:"relative",width:L,maxWidth:`calc(100vw - ${E*2}px)`,marginBottom:l,marginInlineStart:"auto",padding:S,overflow:"hidden",lineHeight:A,wordWrap:"break-word",background:z,borderRadius:h,boxShadow:o,[`${n}-close-icon`]:{fontSize:T,cursor:"pointer"},[`${K}-message`]:{marginBottom:e.marginXS,color:w,fontSize:_,lineHeight:e.lineHeightLG},[`${K}-description`]:{fontSize:T},[`&${K}-closable ${K}-message`]:{paddingInlineEnd:e.paddingLG},[`${K}-with-icon ${K}-message`]:{marginBottom:e.marginXS,marginInlineStart:e.marginSM+H,fontSize:_},[`${K}-with-icon ${K}-description`]:{marginInlineStart:e.marginSM+H,fontSize:T},[`${K}-icon`]:{position:"absolute",fontSize:H,lineHeight:0,[`&-success${a}`]:{color:k},[`&-info${a}`]:{color:f},[`&-warning${a}`]:{color:b},[`&-error${a}`]:{color:v}},[`${K}-close`]:{position:"absolute",top:e.notificationPaddingVertical,insetInlineEnd:e.notificationPaddingHorizontal,color:e.colorIcon,outline:"none",width:e.notificationCloseButtonSize,height:e.notificationCloseButtonSize,borderRadius:e.borderRadiusSM,transition:`background-color ${e.motionDurationMid}, color ${e.motionDurationMid}`,display:"flex",alignItems:"center",justifyContent:"center","&:hover":{color:e.colorIconHover,backgroundColor:e.wireframe?"transparent":e.colorFillContent}},[`${K}-btn`]:{float:"right",marginTop:e.marginSM}}},{[`${K}-pure-panel`]:{margin:0}}]};var iy=dr("Notification",e=>{const a=e.paddingMD,n=e.paddingLG,o=Po(e,{notificationBg:e.colorBgElevated,notificationPaddingVertical:a,notificationPaddingHorizontal:n,notificationPadding:`${e.paddingMD}px ${e.paddingContentHorizontalLG}px`,notificationMarginBottom:e.margin,notificationMarginEdge:e.marginLG,animationMaxHeight:150,notificationIconSize:e.fontSizeLG*e.lineHeightLG,notificationCloseButtonSize:e.controlHeightLG*.55});return[Uj(o)]},e=>({zIndexPopup:e.zIndexPopupBase+50,width:384})),$j=function(e,a){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&a.indexOf(o)<0&&(n[o]=e[o]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var _=0,o=Object.getOwnPropertySymbols(e);_{const{top:n,bottom:o,prefixCls:_,getContainer:l,maxCount:h,rtl:k,onAllRemoved:f}=e,{getPrefixCls:b,getPopupContainer:v}=g.useContext(Ha),w=_||b("notification"),z=A=>Bj(A,n!=null?n:ry,o!=null?o:ry),[,S]=iy(w),E=()=>ka()(S,{[`${w}-rtl`]:k}),O=()=>Vj(w),[P,T]=Xf({prefixCls:w,style:z,className:E,motion:O,closable:!0,closeIcon:ny(w),duration:Gj,getContainer:()=>(l==null?void 0:l())||(v==null?void 0:v())||document.body,maxCount:h,onAllRemoved:f});return g.useImperativeHandle(a,()=>Object.assign(Object.assign({},P),{prefixCls:w,hashId:S})),T});function ty(e){const a=g.useRef(null);return[g.useMemo(()=>{const o=k=>{if(!a.current)return;const{open:f,prefixCls:b,hashId:v}=a.current,w=`${b}-notice`,{message:z,description:S,icon:E,type:O,btn:P,className:T}=k,A=qj(k,["message","description","icon","type","btn","className"]);return f(Object.assign(Object.assign({placement:"topRight"},A),{content:g.createElement(oy,{prefixCls:w,icon:E,type:O,message:z,description:S,btn:P}),className:ka()(O&&`${w}-${O}`,v,T)}))},l={open:o,destroy:k=>{var f,b;k!==void 0?(f=a.current)===null||f===void 0||f.close(k):(b=a.current)===null||b===void 0||b.destroy()}};return["success","info","warning","error"].forEach(k=>{l[k]=f=>o(Object.assign(Object.assign({},f),{type:k}))}),l},[]),g.createElement(Xj,Object.assign({key:"notification-holder"},e,{ref:a}))]}function Yj(e){return ty(e)}let gr=null,Od=e=>e(),Id=[],Dd={};function Kj(){const{prefixCls:e,getContainer:a,rtl:n,maxCount:o,top:_,bottom:l}=Dd,h=e!=null?e:Am().getPrefixCls("notification"),k=(a==null?void 0:a())||document.body;return{prefixCls:h,container:k,rtl:n,maxCount:o,top:_,bottom:l}}const Qj=g.forwardRef((e,a)=>{const[n,o]=g.useState(),[_,l]=g.useState(),[h,k]=g.useState(),[f,b]=g.useState(),[v,w]=g.useState(),[z,S]=g.useState(),[E,O]=ty({prefixCls:n,getContainer:()=>_,maxCount:h,rtl:f,top:v,bottom:z}),P=Am(),T=P.getRootPrefixCls(),A=P.getIconPrefixCls(),L=()=>{const{prefixCls:H,container:K,maxCount:ae,rtl:ie,top:se,bottom:he}=Kj();o(H),l(K),k(ae),b(ie),w(se),S(he)};return g.useEffect(L,[]),g.useImperativeHandle(a,()=>{const H=Object.assign({},E);return Object.keys(H).forEach(K=>{H[K]=function(){return L(),E[K].apply(E,arguments)}}),{instance:H,sync:L}}),g.createElement(dd,{prefixCls:T,iconPrefixCls:A},O)});function Pk(){if(!gr){const e=document.createDocumentFragment(),a={fragment:e};gr=a,Od(()=>{W_(g.createElement(Qj,{ref:n=>{const{instance:o,sync:_}=n||{};Promise.resolve().then(()=>{!a.instance&&o&&(a.instance=o,a.sync=_,Pk())})}}),e)});return}gr.instance&&(Id.forEach(e=>{switch(e.type){case"open":{Od(()=>{gr.instance.open(Object.assign(Object.assign({},Dd),e.config))});break}case"destroy":Od(()=>{gr==null||gr.instance.destroy(e.key)});break}}),Id=[])}function Jj(e){Dd=Object.assign(Object.assign({},Dd),e),Od(()=>{var a;(a=gr==null?void 0:gr.sync)===null||a===void 0||a.call(gr)})}function _y(e){Id.push({type:"open",config:e}),Pk()}function Zj(e){Id.push({type:"destroy",key:e}),Pk()}const ez=["success","info","warning","error"],sy={open:_y,destroy:Zj,config:Jj,useNotification:Yj,_InternalPanelDoNotUseOrYouWillBeFired:Wj};ez.forEach(e=>{sy[e]=a=>_y(Object.assign(Object.assign({},a),{type:e}))});const BD=()=>{};let VD=null;var az=sy,Ek=(e,a)=>{const n=g.useContext(Qe),o=g.useMemo(()=>{var l;const h=a||C[e],k=(l=n==null?void 0:n[e])!==null&&l!==void 0?l:{};return Object.assign(Object.assign({},typeof h=="function"?h():h),k||{})},[e,a,n]),_=g.useMemo(()=>{const l=n==null?void 0:n.locale;return n!=null&&n.exist&&!l?C.locale:l},[n]);return[o,_]};function Ok(e,a){var n=Ie({},e);return Array.isArray(a)&&a.forEach(function(o){delete n[o]}),n}var uy=function(e){if(!e)return!1;if(e instanceof Element){if(e.offsetParent)return!0;if(e.getBBox){var a=e.getBBox(),n=a.width,o=a.height;if(n||o)return!0}if(e.getBoundingClientRect){var _=e.getBoundingClientRect(),l=_.width,h=_.height;if(l||h)return!0}}return!1};const{isValidElement:Um}=x;function ly(e){return e&&Um(e)&&e.type===g.Fragment}function iz(e,a,n){return Um(e)?g.cloneElement(e,typeof n=="function"?n(e.props||{}):n):a}function es(e,a){return iz(e,e,a)}const nz=e=>{const{componentCls:a,colorPrimary:n}=e;return{[a]:{position:"absolute",background:"transparent",pointerEvents:"none",boxSizing:"border-box",color:`var(--wave-color, ${n})`,boxShadow:"0 0 0 0 currentcolor",opacity:.2,"&.wave-motion-appear":{transition:[`box-shadow 0.4s ${e.motionEaseOutCirc}`,`opacity 2s ${e.motionEaseOutCirc}`].join(","),"&-active":{boxShadow:"0 0 0 6px currentcolor",opacity:0}}}}};var oz=dr("Wave",e=>[nz(e)]);function rz(e){const a=(e||"").match(/rgba?\((\d*), (\d*), (\d*)(, [\d.]*)?\)/);return a&&a[1]&&a[2]&&a[3]?!(a[1]===a[2]&&a[2]===a[3]):!0}function Ik(e){return e&&e!=="#fff"&&e!=="#ffffff"&&e!=="rgb(255, 255, 255)"&&e!=="rgba(255, 255, 255, 1)"&&rz(e)&&!/rgba\((?:\d*, ){3}0\)/.test(e)&&e!=="transparent"}function tz(e){const{borderTopColor:a,borderColor:n,backgroundColor:o}=getComputedStyle(e);return Ik(a)?a:Ik(n)?n:Ik(o)?o:null}function Dk(e){return Number.isNaN(e)?0:e}const _z=e=>{const{className:a,target:n}=e,o=g.useRef(null),[_,l]=g.useState(null),[h,k]=g.useState([]),[f,b]=g.useState(0),[v,w]=g.useState(0),[z,S]=g.useState(0),[E,O]=g.useState(0),[P,T]=g.useState(!1),A={left:f,top:v,width:z,height:E,borderRadius:h.map(H=>`${H}px`).join(" ")};_&&(A["--wave-color"]=_);function L(){const H=getComputedStyle(n);l(tz(n));const K=H.position==="static",{borderLeftWidth:ae,borderTopWidth:ie}=H;b(K?n.offsetLeft:Dk(-parseFloat(ae))),w(K?n.offsetTop:Dk(-parseFloat(ie))),S(n.offsetWidth),O(n.offsetHeight);const{borderTopLeftRadius:se,borderTopRightRadius:he,borderBottomLeftRadius:ue,borderBottomRightRadius:ze}=H;k([se,he,ze,ue].map(te=>Dk(parseFloat(te))))}return g.useEffect(()=>{if(n){const H=nt(()=>{L(),T(!0)});let K;return typeof ResizeObserver!="undefined"&&(K=new ResizeObserver(L),K.observe(n)),()=>{nt.cancel(H),K==null||K.disconnect()}}},[]),P?g.createElement(Bt,{visible:!0,motionAppear:!0,motionName:"wave-motion",motionDeadline:5e3,onAppearEnd:(H,K)=>{var ae;if(K.deadline||K.propertyName==="opacity"){const ie=(ae=o.current)===null||ae===void 0?void 0:ae.parentElement;um(ie).then(()=>{var se;(se=ie.parentElement)===null||se===void 0||se.removeChild(ie)})}return!1}},H=>{let{className:K}=H;return g.createElement("div",{ref:o,className:ka()(a,K),style:A})}):null};function sz(e,a){const n=document.createElement("div");n.style.position="absolute",n.style.left="0px",n.style.top="0px",e==null||e.insertBefore(n,e==null?void 0:e.firstChild),W_(g.createElement(_z,{target:e,className:a}),n)}function uz(e,a){function n(){const o=e.current;sz(o,a)}return n}var lz=e=>{const{children:a,disabled:n}=e,{getPrefixCls:o}=(0,g.useContext)(Ha),_=(0,g.useRef)(null),l=o("wave"),[,h]=oz(l),k=uz(_,ka()(l,h));if(g.useEffect(()=>{const b=_.current;if(!b||b.nodeType!==1||n)return;const v=w=>{w.target.tagName==="INPUT"||!uy(w.target)||!b.getAttribute||b.getAttribute("disabled")||b.disabled||b.className.includes("disabled")||b.className.includes("-leave")||k()};return b.addEventListener("click",v,!0),()=>{b.removeEventListener("click",v,!0)}},[n]),!g.isValidElement(a))return a!=null?a:null;const f=Fm(a)?Mm(a.ref,_):_;return es(a,{ref:f})},cz=e=>{const{componentCls:a}=e;return{[a]:{display:"inline-flex","&-block":{display:"flex",width:"100%"},"&-vertical":{flexDirection:"column"}}}};const mz=e=>{const{componentCls:a}=e;return{[a]:{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"}},[`${a}-item:empty`]:{display:"none"}}}};var cy=dr("Space",e=>[mz(e),cz(e)],()=>({}),{resetStyle:!1}),my=function(e,a){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&a.indexOf(o)<0&&(n[o]=e[o]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var _=0,o=Object.getOwnPropertySymbols(e);_{const n=g.useContext(Td),o=g.useMemo(()=>{if(!n)return"";const{compactDirection:_,isFirstItem:l,isLastItem:h}=n,k=_==="vertical"?"-vertical-":"-";return ka()({[`${e}-compact${k}item`]:!0,[`${e}-compact${k}first-item`]:l,[`${e}-compact${k}last-item`]:h,[`${e}-compact${k}item-rtl`]:a==="rtl"})},[e,a,n]);return{compactSize:n==null?void 0:n.compactSize,compactDirection:n==null?void 0:n.compactDirection,compactItemClassnames:o}},dz=e=>{let{children:a}=e;return g.createElement(Td.Provider,{value:null},a)},gz=e=>{var{children:a}=e,n=my(e,["children"]);return g.createElement(Td.Provider,{value:n},a)};var kz=e=>{const{getPrefixCls:a,direction:n}=g.useContext(Ha),{size:o="middle",direction:_,block:l,prefixCls:h,className:k,rootClassName:f,children:b}=e,v=my(e,["size","direction","block","prefixCls","className","rootClassName","children"]),w=a("space-compact",h),[z,S]=cy(w),E=ka()(w,S,{[`${w}-rtl`]:n==="rtl",[`${w}-block`]:l,[`${w}-vertical`]:_==="vertical"},k,f),O=g.useContext(Td),P=Nt(b),T=g.useMemo(()=>P.map((A,L)=>{const H=A&&A.key||`${w}-item-${L}`;return g.createElement(gz,{key:H,compactSize:o,compactDirection:_,isFirstItem:L===0&&(!O||(O==null?void 0:O.isFirstItem)),isLastItem:L===P.length-1&&(!O||(O==null?void 0:O.isLastItem))},A)}),[o,P,O]);return P.length===0?null:z(g.createElement("div",Object.assign({className:E},v),T))};const Tk=()=>({width:0,opacity:0,transform:"scale(0)"}),Rk=e=>({width:e.scrollWidth,opacity:1,transform:"scale(1)"});var pz=e=>{let{prefixCls:a,loading:n,existIcon:o}=e;const _=!!n;return o?g.createElement("span",{className:`${a}-loading-icon`},g.createElement(pd,null)):g.createElement(Bt,{visible:_,motionName:`${a}-loading-icon-motion`,removeOnLeave:!0,onAppearStart:Tk,onAppearActive:Rk,onEnterStart:Tk,onEnterActive:Rk,onLeaveStart:Rk,onLeaveActive:Tk},(l,h)=>{let{className:k,style:f}=l;return g.createElement("span",{className:`${a}-loading-icon`,style:f,ref:h},g.createElement(pd,{className:k}))})},fz=function(e,a){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&a.indexOf(o)<0&&(n[o]=e[o]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var _=0,o=Object.getOwnPropertySymbols(e);_{const{getPrefixCls:a,direction:n}=g.useContext(Ha),{prefixCls:o,size:_,className:l}=e,h=fz(e,["prefixCls","size","className"]),k=a("btn-group",o),[,,f]=L_();let b="";switch(_){case"large":b="lg";break;case"small":b="sm";break;case"middle":case void 0:break;default:}const v=ka()(k,{[`${k}-${b}`]:b,[`${k}-rtl`]:n==="rtl"},l,f);return g.createElement(hy.Provider,{value:_},g.createElement("div",Object.assign({},h,{className:v})))};const dy=/^[\u4e00-\u9fa5]{2}$/,Ak=dy.test.bind(dy);function bz(e){return typeof e=="string"}function Nk(e){return e==="text"||e==="link"}function vz(e,a){if(e==null)return;const n=a?" ":"";return typeof e!="string"&&typeof e!="number"&&bz(e.type)&&Ak(e.props.children)?es(e,{children:e.props.children.split("").join(n)}):typeof e=="string"?Ak(e)?g.createElement("span",null,e.split("").join(n)):g.createElement("span",null,e):ly(e)?g.createElement("span",null,e):e}function wz(e,a){let n=!1;const o=[];return g.Children.forEach(e,_=>{const l=typeof _,h=l==="string"||l==="number";if(n&&h){const k=o.length-1,f=o[k];o[k]=`${f}${_}`}else o.push(_);n=h}),g.Children.map(o,_=>vz(_,a))}const JD=null,ZD=null,e2=null,gy=(e,a)=>({[`> span, > ${e}`]:{"&:not(:last-child)":{[`&, & > ${e}`]:{"&:not(:disabled)":{borderInlineEndColor:a}}},"&:not(:first-child)":{[`&, & > ${e}`]:{"&:not(:disabled)":{borderInlineStartColor:a}}}}});var jz=e=>{const{componentCls:a,fontSize:n,lineWidth:o,colorPrimaryHover:_,colorErrorHover:l}=e;return{[`${a}-group`]:[{position:"relative",display:"inline-flex",[`> span, > ${a}`]:{"&:not(:last-child)":{[`&, & > ${a}`]:{borderStartEndRadius:0,borderEndEndRadius:0}},"&:not(:first-child)":{marginInlineStart:-o,[`&, & > ${a}`]:{borderStartStartRadius:0,borderEndStartRadius:0}}},[a]:{position:"relative",zIndex:1,[`&:hover, &:focus, - &:active`]:{zIndex:2},"&[disabled]":{zIndex:0}},[`${a}-icon-only`]:{fontSize:n}},gy(`${a}-primary`,_),gy(`${a}-danger`,l)]}};function zz(e,a,n){const{focusElCls:o,focus:_,borderElCls:l}=n,h=l?"> *":"",k=["hover",_?"focus":null,"active"].filter(Boolean).map(f=>`&:${f} ${h}`).join(",");return{[`&-item:not(${a}-last-item)`]:{marginInlineEnd:-e.lineWidth},"&-item":Object.assign(Object.assign({[k]:{zIndex:2}},o?{[`&${o}`]:{zIndex:2}}:{}),{[`&[disabled] ${h}`]:{zIndex:0}})}}function xz(e,a,n){const{borderElCls:o}=n,_=o?`> ${o}`:"";return{[`&-item:not(${a}-first-item):not(${a}-last-item) ${_}`]:{borderRadius:0},[`&-item:not(${a}-last-item)${a}-first-item`]:{[`& ${_}, &${e}-sm ${_}, &${e}-lg ${_}`]:{borderStartEndRadius:0,borderEndEndRadius:0}},[`&-item:not(${a}-first-item)${a}-last-item`]:{[`& ${_}, &${e}-sm ${_}, &${e}-lg ${_}`]:{borderStartStartRadius:0,borderEndStartRadius:0}}}}function Cz(e){let a=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{focus:!0};const{componentCls:n}=e,o=`${n}-compact`;return{[o]:Object.assign(Object.assign({},zz(e,o,a)),xz(n,o,a))}}function Sz(e,a){return{[`&-item:not(${a}-last-item)`]:{marginBottom:-e.lineWidth},"&-item":{"&:hover,&:focus,&:active":{zIndex:2},"&[disabled]":{zIndex:0}}}}function Pz(e,a){return{[`&-item:not(${a}-first-item):not(${a}-last-item)`]:{borderRadius:0},[`&-item${a}-first-item:not(${a}-last-item)`]:{[`&, &${e}-sm, &${e}-lg`]:{borderEndEndRadius:0,borderEndStartRadius:0}},[`&-item${a}-last-item:not(${a}-first-item)`]:{[`&, &${e}-sm, &${e}-lg`]:{borderStartStartRadius:0,borderStartEndRadius:0}}}}function Ez(e){const a=`${e.componentCls}-compact-vertical`;return{[a]:Object.assign(Object.assign({},Sz(e,a)),Pz(e.componentCls,a))}}const Oz=e=>{const{componentCls:a,iconCls:n}=e;return{[a]:{outline:"none",position:"relative",display:"inline-block",fontWeight:400,whiteSpace:"nowrap",textAlign:"center",backgroundImage:"none",backgroundColor:"transparent",border:`${e.lineWidth}px ${e.lineType} transparent`,cursor:"pointer",transition:`all ${e.motionDurationMid} ${e.motionEaseInOut}`,userSelect:"none",touchAction:"manipulation",lineHeight:e.lineHeight,color:e.colorText,"> span":{display:"inline-block"},[`> ${n} + span, > span + ${n}`]:{marginInlineStart:e.marginXS},"> a":{color:"currentColor"},"&:not(:disabled)":Object.assign({},df(e)),[`&-icon-only${a}-compact-item`]:{flex:"none"},[`&-compact-item${a}-primary`]:{[`&:not([disabled]) + ${a}-compact-item${a}-primary:not([disabled])`]:{position:"relative","&:before":{position:"absolute",top:-e.lineWidth,insetInlineStart:-e.lineWidth,display:"inline-block",width:e.lineWidth,height:`calc(100% + ${e.lineWidth*2}px)`,backgroundColor:e.colorPrimaryHover,content:'""'}}},"&-compact-vertical-item":{[`&${a}-primary`]:{[`&:not([disabled]) + ${a}-compact-vertical-item${a}-primary:not([disabled])`]:{position:"relative","&:before":{position:"absolute",top:-e.lineWidth,insetInlineStart:-e.lineWidth,display:"inline-block",width:`calc(100% + ${e.lineWidth*2}px)`,height:e.lineWidth,backgroundColor:e.colorPrimaryHover,content:'""'}}}}}}},Bt=(e,a)=>({"&:not(:disabled)":{"&:hover":e,"&:active":a}}),Iz=e=>({minWidth:e.controlHeight,paddingInlineStart:0,paddingInlineEnd:0,borderRadius:"50%"}),Dz=e=>({borderRadius:e.controlHeight,paddingInlineStart:e.controlHeight/2,paddingInlineEnd:e.controlHeight/2}),Mk=e=>({cursor:"not-allowed",borderColor:e.colorBorder,color:e.colorTextDisabled,backgroundColor:e.colorBgContainerDisabled,boxShadow:"none"}),Rd=(e,a,n,o,_,l,h)=>({[`&${e}-background-ghost`]:Object.assign(Object.assign({color:a||void 0,backgroundColor:"transparent",borderColor:n||void 0,boxShadow:"none"},Bt(Object.assign({backgroundColor:"transparent"},l),Object.assign({backgroundColor:"transparent"},h))),{"&:disabled":{cursor:"not-allowed",color:o||void 0,borderColor:_||void 0}})}),Fk=e=>({"&:disabled":Object.assign({},Mk(e))}),ky=e=>Object.assign({},Fk(e)),Ad=e=>({"&:disabled":{cursor:"not-allowed",color:e.colorTextDisabled}}),py=e=>Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},ky(e)),{backgroundColor:e.colorBgContainer,borderColor:e.colorBorder,boxShadow:`0 ${e.controlOutlineWidth}px 0 ${e.controlTmpOutline}`}),Bt({color:e.colorPrimaryHover,borderColor:e.colorPrimaryHover},{color:e.colorPrimaryActive,borderColor:e.colorPrimaryActive})),Rd(e.componentCls,e.colorBgContainer,e.colorBgContainer,e.colorTextDisabled,e.colorBorder)),{[`&${e.componentCls}-dangerous`]:Object.assign(Object.assign(Object.assign({color:e.colorError,borderColor:e.colorError},Bt({color:e.colorErrorHover,borderColor:e.colorErrorBorderHover},{color:e.colorErrorActive,borderColor:e.colorErrorActive})),Rd(e.componentCls,e.colorError,e.colorError,e.colorTextDisabled,e.colorBorder)),Fk(e))}),Tz=e=>Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},ky(e)),{color:e.colorTextLightSolid,backgroundColor:e.colorPrimary,boxShadow:`0 ${e.controlOutlineWidth}px 0 ${e.controlOutline}`}),Bt({color:e.colorTextLightSolid,backgroundColor:e.colorPrimaryHover},{color:e.colorTextLightSolid,backgroundColor:e.colorPrimaryActive})),Rd(e.componentCls,e.colorPrimary,e.colorPrimary,e.colorTextDisabled,e.colorBorder,{color:e.colorPrimaryHover,borderColor:e.colorPrimaryHover},{color:e.colorPrimaryActive,borderColor:e.colorPrimaryActive})),{[`&${e.componentCls}-dangerous`]:Object.assign(Object.assign(Object.assign({backgroundColor:e.colorError,boxShadow:`0 ${e.controlOutlineWidth}px 0 ${e.colorErrorOutline}`},Bt({backgroundColor:e.colorErrorHover},{backgroundColor:e.colorErrorActive})),Rd(e.componentCls,e.colorError,e.colorError,e.colorTextDisabled,e.colorBorder,{color:e.colorErrorHover,borderColor:e.colorErrorHover},{color:e.colorErrorActive,borderColor:e.colorErrorActive})),Fk(e))}),Rz=e=>Object.assign(Object.assign({},py(e)),{borderStyle:"dashed"}),Az=e=>Object.assign(Object.assign(Object.assign({color:e.colorLink},Bt({color:e.colorLinkHover},{color:e.colorLinkActive})),Ad(e)),{[`&${e.componentCls}-dangerous`]:Object.assign(Object.assign({color:e.colorError},Bt({color:e.colorErrorHover},{color:e.colorErrorActive})),Ad(e))}),Nz=e=>Object.assign(Object.assign(Object.assign({},Bt({color:e.colorText,backgroundColor:e.colorBgTextHover},{color:e.colorText,backgroundColor:e.colorBgTextActive})),Ad(e)),{[`&${e.componentCls}-dangerous`]:Object.assign(Object.assign({color:e.colorError},Ad(e)),Bt({color:e.colorErrorHover,backgroundColor:e.colorErrorBg},{color:e.colorErrorHover,backgroundColor:e.colorErrorBg}))}),Mz=e=>Object.assign(Object.assign({},Mk(e)),{[`&${e.componentCls}:hover`]:Object.assign({},Mk(e))}),Fz=e=>{const{componentCls:a}=e;return{[`${a}-default`]:py(e),[`${a}-primary`]:Tz(e),[`${a}-dashed`]:Rz(e),[`${a}-link`]:Az(e),[`${a}-text`]:Nz(e),[`${a}-disabled`]:Mz(e)}},Lk=function(e){let a=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"";const{componentCls:n,iconCls:o,controlHeight:_,fontSize:l,lineHeight:h,lineWidth:k,borderRadius:f,buttonPaddingHorizontal:b}=e,v=Math.max(0,(_-l*h)/2-k),w=b-k,z=`${n}-icon-only`;return[{[`${n}${a}`]:{fontSize:l,height:_,padding:`${v}px ${w}px`,borderRadius:f,[`&${z}`]:{width:_,paddingInlineStart:0,paddingInlineEnd:0,[`&${n}-round`]:{width:"auto"},"> span":{transform:"scale(1.143)"}},[`&${n}-loading`]:{opacity:e.opacityLoading,cursor:"default"},[`${n}-loading-icon`]:{transition:`width ${e.motionDurationSlow} ${e.motionEaseInOut}, opacity ${e.motionDurationSlow} ${e.motionEaseInOut}`},[`&:not(${z}) ${n}-loading-icon > ${o}`]:{marginInlineEnd:e.marginXS}}},{[`${n}${n}-circle${a}`]:Iz(e)},{[`${n}${n}-round${a}`]:Dz(e)}]},Lz=e=>Lk(e),Uz=e=>{const a=Po(e,{controlHeight:e.controlHeightSM,padding:e.paddingXS,buttonPaddingHorizontal:8,borderRadius:e.borderRadiusSM});return Lk(a,`${e.componentCls}-sm`)},$z=e=>{const a=Po(e,{controlHeight:e.controlHeightLG,fontSize:e.fontSizeLG,borderRadius:e.borderRadiusLG});return Lk(a,`${e.componentCls}-lg`)},Hz=e=>{const{componentCls:a}=e;return{[a]:{[`&${a}-block`]:{width:"100%"}}}};var Wz=dr("Button",e=>{const{controlTmpOutline:a,paddingContentHorizontal:n}=e,o=Po(e,{colorOutlineDefault:a,buttonPaddingHorizontal:n});return[Oz(o),Uz(o),Lz(o),$z(o),Hz(o),Fz(o),jz(o),Cz(e),Ez(e)]}),Vz=function(e,a){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&a.indexOf(o)<0&&(n[o]=e[o]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var _=0,o=Object.getOwnPropertySymbols(e);_{const{loading:n=!1,prefixCls:o,type:_="default",danger:l,shape:h="default",size:k,disabled:f,className:b,rootClassName:v,children:w,icon:z,ghost:S=!1,block:E=!1,htmlType:O="button"}=e,P=Vz(e,["loading","prefixCls","type","danger","shape","size","disabled","className","rootClassName","children","icon","ghost","block","htmlType"]),{getPrefixCls:T,autoInsertSpaceInButton:A,direction:L}=g.useContext(Ha),H=T("btn",o),[K,ae]=Wz(H),ie=g.useContext(ri),se=g.useContext(Na),he=f!=null?f:se,ue=g.useContext(hy),ze=g.useMemo(()=>Bz(n),[n]),[te,re]=g.useState(ze.loading),[le,be]=g.useState(!1),Ve=a||g.createRef(),He=()=>g.Children.count(w)===1&&!z&&!Nk(_),ea=()=>{if(!Ve||!Ve.current||A===!1)return;const Ra=Ve.current.textContent;He()&&Ak(Ra)?le||be(!0):le&&be(!1)};g.useEffect(()=>{let Ra=null;ze.delay>0?Ra=window.setTimeout(()=>{Ra=null,re(!0)},ze.delay):re(ze.loading);function ai(){Ra&&(window.clearTimeout(Ra),Ra=null)}return ai},[ze]),g.useEffect(ea,[Ve]);const ca=Ra=>{const{onClick:ai}=e;if(te||he){Ra.preventDefault();return}ai==null||ai(Ra)},Sa=A!==!1,{compactSize:ya,compactItemClassnames:Ge}=hz(H,L),$e={large:"lg",small:"sm",middle:void 0},ra=ya||ue||k||ie,Xe=ra&&$e[ra]||"",Se=te?"loading":z,pa=Ok(P,["navigate"]),Ze=pa.href!==void 0&&he,Ia=ka()(H,ae,{[`${H}-${h}`]:h!=="default"&&h,[`${H}-${_}`]:_,[`${H}-${Xe}`]:Xe,[`${H}-icon-only`]:!w&&w!==0&&!!Se,[`${H}-background-ghost`]:S&&!Nk(_),[`${H}-loading`]:te,[`${H}-two-chinese-chars`]:le&&Sa&&!te,[`${H}-block`]:E,[`${H}-dangerous`]:!!l,[`${H}-rtl`]:L==="rtl",[`${H}-disabled`]:Ze},Ge,b,v),Ta=z&&!te?z:g.createElement(pz,{existIcon:!!z,prefixCls:H,loading:!!te}),da=w||w===0?wz(w,He()&&Sa):null;if(pa.href!==void 0)return K(g.createElement("a",Object.assign({},pa,{className:Ia,onClick:ca,ref:Ve}),Ta,da));let Ca=g.createElement("button",Object.assign({},P,{type:O,className:Ia,onClick:ca,disabled:he,ref:Ve}),Ta,da);return Nk(_)||(Ca=g.createElement(lz,{disabled:!!te},Ca)),K(Ca)},Uk=g.forwardRef(qz);Uk.Group=yz,Uk.__ANT_BUTTON=!0;var Gz=Uk,gu=Gz;function yy(e){return!!(e&&e.then)}var by=e=>{const{type:a,children:n,prefixCls:o,buttonProps:_,close:l,autoFocus:h,emitEvent:k,quitOnNullishReturnValue:f,actionFn:b}=e,v=g.useRef(!1),w=g.useRef(null),[z,S]=hu(!1),E=function(){l==null||l.apply(void 0,arguments)};g.useEffect(()=>{let T=null;return h&&(T=setTimeout(()=>{var A;(A=w.current)===null||A===void 0||A.focus()})),()=>{T&&clearTimeout(T)}},[]);const O=T=>{yy(T)&&(S(!0),T.then(function(){S(!1,!0),E.apply(void 0,arguments),v.current=!1},A=>(S(!1,!0),v.current=!1,Promise.reject(A))))},P=T=>{if(v.current)return;if(v.current=!0,!b){E();return}let A;if(k){if(A=b(T),f&&!yy(A)){v.current=!1,E(T);return}}else if(b.length)A=b(l),v.current=!1;else if(A=b(),!A){E();return}O(A)};return g.createElement(gu,Object.assign({},fy(a),{onClick:P,loading:z,prefixCls:o},_,{ref:w}),n)};const $k=()=>({height:0,opacity:0}),vy=e=>{const{scrollHeight:a}=e;return{height:a,opacity:1}},Xz=e=>({height:e?e.offsetHeight:0}),Hk=(e,a)=>(a==null?void 0:a.deadline)===!0||a.propertyName==="height",n2=function(){return{motionName:`${arguments.length>0&&arguments[0]!==void 0?arguments[0]:"ant"}-motion-collapse`,onAppearStart:$k,onEnterStart:$k,onAppearActive:vy,onEnterActive:vy,onLeaveStart:Xz,onLeaveActive:$k,onAppearEnd:Hk,onEnterEnd:Hk,onLeaveEnd:Hk,motionDeadline:500}},o2=null,r2=e=>e!==void 0&&(e==="topLeft"||e==="topRight")?"slide-down":"slide-up",$m=(e,a,n)=>n!==void 0?n:`${e}-${a}`;var t2=null,Yz=g.createContext(null),wy=Yz,Wk=wn()?g.useLayoutEffect:g.useEffect,Eo=Wk,jy=function(a,n){var o=g.useRef(!0);Wk(function(){if(!o.current)return a()},n),Wk(function(){return o.current=!1,function(){o.current=!0}},[])},zy=[];function Kz(e,a){var n=g.useState(function(){if(!wn())return null;var E=document.createElement("div");return E}),o=la(n,1),_=o[0],l=g.useRef(!1),h=g.useContext(wy),k=g.useState(zy),f=la(k,2),b=f[0],v=f[1],w=h||(l.current?void 0:function(E){v(function(O){var P=[E].concat(xa(O));return P})});function z(){_.parentElement||document.body.appendChild(_),l.current=!0}function S(){var E;(E=_.parentElement)===null||E===void 0||E.removeChild(_),l.current=!1}return Eo(function(){return e?h?h(z):z():S(),S},[e]),Eo(function(){b.length&&(b.forEach(function(E){return E()}),v(zy))},[b]),[_,w]}var Vk;function xy(e){if(typeof document=="undefined")return 0;if(e||Vk===void 0){var a=document.createElement("div");a.style.width="100%",a.style.height="200px";var n=document.createElement("div"),o=n.style;o.position="absolute",o.top="0",o.left="0",o.pointerEvents="none",o.visibility="hidden",o.width="200px",o.height="150px",o.overflow="hidden",n.appendChild(a),document.body.appendChild(n);var _=a.offsetWidth;n.style.overflow="scroll";var l=a.offsetWidth;_===l&&(l=n.clientWidth),document.body.removeChild(n),Vk=_-l}return Vk}function Cy(e){var a=e.match(/^(.*)px$/),n=Number(a==null?void 0:a[1]);return Number.isNaN(n)?xy():n}function _2(e){if(typeof document=="undefined"||!e||!(e instanceof Element))return{width:0,height:0};var a=getComputedStyle(e,"::-webkit-scrollbar"),n=a.width,o=a.height;return{width:Cy(n),height:Cy(o)}}function Qz(){return document.body.scrollHeight>(window.innerHeight||document.documentElement.clientHeight)&&window.innerWidth>document.body.offsetWidth}var Jz="rc-util-locker-".concat(Date.now()),Sy=0;function Zz(e){var a=!!e,n=g.useState(function(){return Sy+=1,"".concat(Jz,"_").concat(Sy)}),o=la(n,1),_=o[0];Eo(function(){if(a){var l=xy(),h=Qz();Fr(` + &:active`]:{zIndex:2},"&[disabled]":{zIndex:0}},[`${a}-icon-only`]:{fontSize:n}},gy(`${a}-primary`,_),gy(`${a}-danger`,l)]}};function zz(e,a,n){const{focusElCls:o,focus:_,borderElCls:l}=n,h=l?"> *":"",k=["hover",_?"focus":null,"active"].filter(Boolean).map(f=>`&:${f} ${h}`).join(",");return{[`&-item:not(${a}-last-item)`]:{marginInlineEnd:-e.lineWidth},"&-item":Object.assign(Object.assign({[k]:{zIndex:2}},o?{[`&${o}`]:{zIndex:2}}:{}),{[`&[disabled] ${h}`]:{zIndex:0}})}}function xz(e,a,n){const{borderElCls:o}=n,_=o?`> ${o}`:"";return{[`&-item:not(${a}-first-item):not(${a}-last-item) ${_}`]:{borderRadius:0},[`&-item:not(${a}-last-item)${a}-first-item`]:{[`& ${_}, &${e}-sm ${_}, &${e}-lg ${_}`]:{borderStartEndRadius:0,borderEndEndRadius:0}},[`&-item:not(${a}-first-item)${a}-last-item`]:{[`& ${_}, &${e}-sm ${_}, &${e}-lg ${_}`]:{borderStartStartRadius:0,borderEndStartRadius:0}}}}function Cz(e){let a=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{focus:!0};const{componentCls:n}=e,o=`${n}-compact`;return{[o]:Object.assign(Object.assign({},zz(e,o,a)),xz(n,o,a))}}function Sz(e,a){return{[`&-item:not(${a}-last-item)`]:{marginBottom:-e.lineWidth},"&-item":{"&:hover,&:focus,&:active":{zIndex:2},"&[disabled]":{zIndex:0}}}}function Pz(e,a){return{[`&-item:not(${a}-first-item):not(${a}-last-item)`]:{borderRadius:0},[`&-item${a}-first-item:not(${a}-last-item)`]:{[`&, &${e}-sm, &${e}-lg`]:{borderEndEndRadius:0,borderEndStartRadius:0}},[`&-item${a}-last-item:not(${a}-first-item)`]:{[`&, &${e}-sm, &${e}-lg`]:{borderStartStartRadius:0,borderStartEndRadius:0}}}}function Ez(e){const a=`${e.componentCls}-compact-vertical`;return{[a]:Object.assign(Object.assign({},Sz(e,a)),Pz(e.componentCls,a))}}const Oz=e=>{const{componentCls:a,iconCls:n}=e;return{[a]:{outline:"none",position:"relative",display:"inline-block",fontWeight:400,whiteSpace:"nowrap",textAlign:"center",backgroundImage:"none",backgroundColor:"transparent",border:`${e.lineWidth}px ${e.lineType} transparent`,cursor:"pointer",transition:`all ${e.motionDurationMid} ${e.motionEaseInOut}`,userSelect:"none",touchAction:"manipulation",lineHeight:e.lineHeight,color:e.colorText,"> span":{display:"inline-block"},[`> ${n} + span, > span + ${n}`]:{marginInlineStart:e.marginXS},"> a":{color:"currentColor"},"&:not(:disabled)":Object.assign({},df(e)),[`&-icon-only${a}-compact-item`]:{flex:"none"},[`&-compact-item${a}-primary`]:{[`&:not([disabled]) + ${a}-compact-item${a}-primary:not([disabled])`]:{position:"relative","&:before":{position:"absolute",top:-e.lineWidth,insetInlineStart:-e.lineWidth,display:"inline-block",width:e.lineWidth,height:`calc(100% + ${e.lineWidth*2}px)`,backgroundColor:e.colorPrimaryHover,content:'""'}}},"&-compact-vertical-item":{[`&${a}-primary`]:{[`&:not([disabled]) + ${a}-compact-vertical-item${a}-primary:not([disabled])`]:{position:"relative","&:before":{position:"absolute",top:-e.lineWidth,insetInlineStart:-e.lineWidth,display:"inline-block",width:`calc(100% + ${e.lineWidth*2}px)`,height:e.lineWidth,backgroundColor:e.colorPrimaryHover,content:'""'}}}}}}},Vt=(e,a)=>({"&:not(:disabled)":{"&:hover":e,"&:active":a}}),Iz=e=>({minWidth:e.controlHeight,paddingInlineStart:0,paddingInlineEnd:0,borderRadius:"50%"}),Dz=e=>({borderRadius:e.controlHeight,paddingInlineStart:e.controlHeight/2,paddingInlineEnd:e.controlHeight/2}),Mk=e=>({cursor:"not-allowed",borderColor:e.colorBorder,color:e.colorTextDisabled,backgroundColor:e.colorBgContainerDisabled,boxShadow:"none"}),Rd=(e,a,n,o,_,l,h)=>({[`&${e}-background-ghost`]:Object.assign(Object.assign({color:a||void 0,backgroundColor:"transparent",borderColor:n||void 0,boxShadow:"none"},Vt(Object.assign({backgroundColor:"transparent"},l),Object.assign({backgroundColor:"transparent"},h))),{"&:disabled":{cursor:"not-allowed",color:o||void 0,borderColor:_||void 0}})}),Fk=e=>({"&:disabled":Object.assign({},Mk(e))}),ky=e=>Object.assign({},Fk(e)),Ad=e=>({"&:disabled":{cursor:"not-allowed",color:e.colorTextDisabled}}),py=e=>Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},ky(e)),{backgroundColor:e.colorBgContainer,borderColor:e.colorBorder,boxShadow:`0 ${e.controlOutlineWidth}px 0 ${e.controlTmpOutline}`}),Vt({color:e.colorPrimaryHover,borderColor:e.colorPrimaryHover},{color:e.colorPrimaryActive,borderColor:e.colorPrimaryActive})),Rd(e.componentCls,e.colorBgContainer,e.colorBgContainer,e.colorTextDisabled,e.colorBorder)),{[`&${e.componentCls}-dangerous`]:Object.assign(Object.assign(Object.assign({color:e.colorError,borderColor:e.colorError},Vt({color:e.colorErrorHover,borderColor:e.colorErrorBorderHover},{color:e.colorErrorActive,borderColor:e.colorErrorActive})),Rd(e.componentCls,e.colorError,e.colorError,e.colorTextDisabled,e.colorBorder)),Fk(e))}),Tz=e=>Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},ky(e)),{color:e.colorTextLightSolid,backgroundColor:e.colorPrimary,boxShadow:`0 ${e.controlOutlineWidth}px 0 ${e.controlOutline}`}),Vt({color:e.colorTextLightSolid,backgroundColor:e.colorPrimaryHover},{color:e.colorTextLightSolid,backgroundColor:e.colorPrimaryActive})),Rd(e.componentCls,e.colorPrimary,e.colorPrimary,e.colorTextDisabled,e.colorBorder,{color:e.colorPrimaryHover,borderColor:e.colorPrimaryHover},{color:e.colorPrimaryActive,borderColor:e.colorPrimaryActive})),{[`&${e.componentCls}-dangerous`]:Object.assign(Object.assign(Object.assign({backgroundColor:e.colorError,boxShadow:`0 ${e.controlOutlineWidth}px 0 ${e.colorErrorOutline}`},Vt({backgroundColor:e.colorErrorHover},{backgroundColor:e.colorErrorActive})),Rd(e.componentCls,e.colorError,e.colorError,e.colorTextDisabled,e.colorBorder,{color:e.colorErrorHover,borderColor:e.colorErrorHover},{color:e.colorErrorActive,borderColor:e.colorErrorActive})),Fk(e))}),Rz=e=>Object.assign(Object.assign({},py(e)),{borderStyle:"dashed"}),Az=e=>Object.assign(Object.assign(Object.assign({color:e.colorLink},Vt({color:e.colorLinkHover},{color:e.colorLinkActive})),Ad(e)),{[`&${e.componentCls}-dangerous`]:Object.assign(Object.assign({color:e.colorError},Vt({color:e.colorErrorHover},{color:e.colorErrorActive})),Ad(e))}),Nz=e=>Object.assign(Object.assign(Object.assign({},Vt({color:e.colorText,backgroundColor:e.colorBgTextHover},{color:e.colorText,backgroundColor:e.colorBgTextActive})),Ad(e)),{[`&${e.componentCls}-dangerous`]:Object.assign(Object.assign({color:e.colorError},Ad(e)),Vt({color:e.colorErrorHover,backgroundColor:e.colorErrorBg},{color:e.colorErrorHover,backgroundColor:e.colorErrorBg}))}),Mz=e=>Object.assign(Object.assign({},Mk(e)),{[`&${e.componentCls}:hover`]:Object.assign({},Mk(e))}),Fz=e=>{const{componentCls:a}=e;return{[`${a}-default`]:py(e),[`${a}-primary`]:Tz(e),[`${a}-dashed`]:Rz(e),[`${a}-link`]:Az(e),[`${a}-text`]:Nz(e),[`${a}-disabled`]:Mz(e)}},Lk=function(e){let a=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"";const{componentCls:n,iconCls:o,controlHeight:_,fontSize:l,lineHeight:h,lineWidth:k,borderRadius:f,buttonPaddingHorizontal:b}=e,v=Math.max(0,(_-l*h)/2-k),w=b-k,z=`${n}-icon-only`;return[{[`${n}${a}`]:{fontSize:l,height:_,padding:`${v}px ${w}px`,borderRadius:f,[`&${z}`]:{width:_,paddingInlineStart:0,paddingInlineEnd:0,[`&${n}-round`]:{width:"auto"},"> span":{transform:"scale(1.143)"}},[`&${n}-loading`]:{opacity:e.opacityLoading,cursor:"default"},[`${n}-loading-icon`]:{transition:`width ${e.motionDurationSlow} ${e.motionEaseInOut}, opacity ${e.motionDurationSlow} ${e.motionEaseInOut}`},[`&:not(${z}) ${n}-loading-icon > ${o}`]:{marginInlineEnd:e.marginXS}}},{[`${n}${n}-circle${a}`]:Iz(e)},{[`${n}${n}-round${a}`]:Dz(e)}]},Lz=e=>Lk(e),Uz=e=>{const a=Po(e,{controlHeight:e.controlHeightSM,padding:e.paddingXS,buttonPaddingHorizontal:8,borderRadius:e.borderRadiusSM});return Lk(a,`${e.componentCls}-sm`)},$z=e=>{const a=Po(e,{controlHeight:e.controlHeightLG,fontSize:e.fontSizeLG,borderRadius:e.borderRadiusLG});return Lk(a,`${e.componentCls}-lg`)},Hz=e=>{const{componentCls:a}=e;return{[a]:{[`&${a}-block`]:{width:"100%"}}}};var Wz=dr("Button",e=>{const{controlTmpOutline:a,paddingContentHorizontal:n}=e,o=Po(e,{colorOutlineDefault:a,buttonPaddingHorizontal:n});return[Oz(o),Uz(o),Lz(o),$z(o),Hz(o),Fz(o),jz(o),Cz(e),Ez(e)]}),Bz=function(e,a){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&a.indexOf(o)<0&&(n[o]=e[o]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var _=0,o=Object.getOwnPropertySymbols(e);_{const{loading:n=!1,prefixCls:o,type:_="default",danger:l,shape:h="default",size:k,disabled:f,className:b,rootClassName:v,children:w,icon:z,ghost:S=!1,block:E=!1,htmlType:O="button"}=e,P=Bz(e,["loading","prefixCls","type","danger","shape","size","disabled","className","rootClassName","children","icon","ghost","block","htmlType"]),{getPrefixCls:T,autoInsertSpaceInButton:A,direction:L}=g.useContext(Ha),H=T("btn",o),[K,ae]=Wz(H),ie=g.useContext(ri),se=g.useContext(Na),he=f!=null?f:se,ue=g.useContext(hy),ze=g.useMemo(()=>Vz(n),[n]),[te,re]=g.useState(ze.loading),[le,be]=g.useState(!1),Be=a||g.createRef(),He=()=>g.Children.count(w)===1&&!z&&!Nk(_),ea=()=>{if(!Be||!Be.current||A===!1)return;const Ra=Be.current.textContent;He()&&Ak(Ra)?le||be(!0):le&&be(!1)};g.useEffect(()=>{let Ra=null;ze.delay>0?Ra=window.setTimeout(()=>{Ra=null,re(!0)},ze.delay):re(ze.loading);function ai(){Ra&&(window.clearTimeout(Ra),Ra=null)}return ai},[ze]),g.useEffect(ea,[Be]);const ca=Ra=>{const{onClick:ai}=e;if(te||he){Ra.preventDefault();return}ai==null||ai(Ra)},Sa=A!==!1,{compactSize:ya,compactItemClassnames:Ge}=hz(H,L),$e={large:"lg",small:"sm",middle:void 0},ra=ya||ue||k||ie,Xe=ra&&$e[ra]||"",Se=te?"loading":z,pa=Ok(P,["navigate"]),Ze=pa.href!==void 0&&he,Ia=ka()(H,ae,{[`${H}-${h}`]:h!=="default"&&h,[`${H}-${_}`]:_,[`${H}-${Xe}`]:Xe,[`${H}-icon-only`]:!w&&w!==0&&!!Se,[`${H}-background-ghost`]:S&&!Nk(_),[`${H}-loading`]:te,[`${H}-two-chinese-chars`]:le&&Sa&&!te,[`${H}-block`]:E,[`${H}-dangerous`]:!!l,[`${H}-rtl`]:L==="rtl",[`${H}-disabled`]:Ze},Ge,b,v),Ta=z&&!te?z:g.createElement(pz,{existIcon:!!z,prefixCls:H,loading:!!te}),da=w||w===0?wz(w,He()&&Sa):null;if(pa.href!==void 0)return K(g.createElement("a",Object.assign({},pa,{className:Ia,onClick:ca,ref:Be}),Ta,da));let Ca=g.createElement("button",Object.assign({},P,{type:O,className:Ia,onClick:ca,disabled:he,ref:Be}),Ta,da);return Nk(_)||(Ca=g.createElement(lz,{disabled:!!te},Ca)),K(Ca)},Uk=g.forwardRef(qz);Uk.Group=yz,Uk.__ANT_BUTTON=!0;var Gz=Uk,gu=Gz;function yy(e){return!!(e&&e.then)}var by=e=>{const{type:a,children:n,prefixCls:o,buttonProps:_,close:l,autoFocus:h,emitEvent:k,quitOnNullishReturnValue:f,actionFn:b}=e,v=g.useRef(!1),w=g.useRef(null),[z,S]=hu(!1),E=function(){l==null||l.apply(void 0,arguments)};g.useEffect(()=>{let T=null;return h&&(T=setTimeout(()=>{var A;(A=w.current)===null||A===void 0||A.focus()})),()=>{T&&clearTimeout(T)}},[]);const O=T=>{yy(T)&&(S(!0),T.then(function(){S(!1,!0),E.apply(void 0,arguments),v.current=!1},A=>(S(!1,!0),v.current=!1,Promise.reject(A))))},P=T=>{if(v.current)return;if(v.current=!0,!b){E();return}let A;if(k){if(A=b(T),f&&!yy(A)){v.current=!1,E(T);return}}else if(b.length)A=b(l),v.current=!1;else if(A=b(),!A){E();return}O(A)};return g.createElement(gu,Object.assign({},fy(a),{onClick:P,loading:z,prefixCls:o},_,{ref:w}),n)};const $k=()=>({height:0,opacity:0}),vy=e=>{const{scrollHeight:a}=e;return{height:a,opacity:1}},Xz=e=>({height:e?e.offsetHeight:0}),Hk=(e,a)=>(a==null?void 0:a.deadline)===!0||a.propertyName==="height",n2=function(){return{motionName:`${arguments.length>0&&arguments[0]!==void 0?arguments[0]:"ant"}-motion-collapse`,onAppearStart:$k,onEnterStart:$k,onAppearActive:vy,onEnterActive:vy,onLeaveStart:Xz,onLeaveActive:$k,onAppearEnd:Hk,onEnterEnd:Hk,onLeaveEnd:Hk,motionDeadline:500}},o2=null,r2=e=>e!==void 0&&(e==="topLeft"||e==="topRight")?"slide-down":"slide-up",$m=(e,a,n)=>n!==void 0?n:`${e}-${a}`;var t2=null,Yz=g.createContext(null),wy=Yz,Wk=wn()?g.useLayoutEffect:g.useEffect,Eo=Wk,jy=function(a,n){var o=g.useRef(!0);Wk(function(){if(!o.current)return a()},n),Wk(function(){return o.current=!1,function(){o.current=!0}},[])},zy=[];function Kz(e,a){var n=g.useState(function(){if(!wn())return null;var E=document.createElement("div");return E}),o=la(n,1),_=o[0],l=g.useRef(!1),h=g.useContext(wy),k=g.useState(zy),f=la(k,2),b=f[0],v=f[1],w=h||(l.current?void 0:function(E){v(function(O){var P=[E].concat(xa(O));return P})});function z(){_.parentElement||document.body.appendChild(_),l.current=!0}function S(){var E;(E=_.parentElement)===null||E===void 0||E.removeChild(_),l.current=!1}return Eo(function(){return e?h?h(z):z():S(),S},[e]),Eo(function(){b.length&&(b.forEach(function(E){return E()}),v(zy))},[b]),[_,w]}var Bk;function xy(e){if(typeof document=="undefined")return 0;if(e||Bk===void 0){var a=document.createElement("div");a.style.width="100%",a.style.height="200px";var n=document.createElement("div"),o=n.style;o.position="absolute",o.top="0",o.left="0",o.pointerEvents="none",o.visibility="hidden",o.width="200px",o.height="150px",o.overflow="hidden",n.appendChild(a),document.body.appendChild(n);var _=a.offsetWidth;n.style.overflow="scroll";var l=a.offsetWidth;_===l&&(l=n.clientWidth),document.body.removeChild(n),Bk=_-l}return Bk}function Cy(e){var a=e.match(/^(.*)px$/),n=Number(a==null?void 0:a[1]);return Number.isNaN(n)?xy():n}function _2(e){if(typeof document=="undefined"||!e||!(e instanceof Element))return{width:0,height:0};var a=getComputedStyle(e,"::-webkit-scrollbar"),n=a.width,o=a.height;return{width:Cy(n),height:Cy(o)}}function Qz(){return document.body.scrollHeight>(window.innerHeight||document.documentElement.clientHeight)&&window.innerWidth>document.body.offsetWidth}var Jz="rc-util-locker-".concat(Date.now()),Sy=0;function Zz(e){var a=!!e,n=g.useState(function(){return Sy+=1,"".concat(Jz,"_").concat(Sy)}),o=la(n,1),_=o[0];Eo(function(){if(a){var l=xy(),h=Qz();Fr(` html body { overflow-y: hidden; `.concat(h?"width: calc(100% - ".concat(l,"px);"):"",` -}`),_)}else Ds(_);return function(){Ds(_)}},[a,_])}var Py=!1;function ex(e){return typeof e=="boolean"&&(Py=e),Py}var Ey=function(a){return a===!1?!1:!wn()||!a?null:typeof a=="string"?document.querySelector(a):typeof a=="function"?a():a},ax=g.forwardRef(function(e,a){var n=e.open,o=e.autoLock,_=e.getContainer,l=e.debug,h=e.autoDestroy,k=h===void 0?!0:h,f=e.children,b=g.useState(n),v=la(b,2),w=v[0],z=v[1],S=w||n;g.useEffect(function(){(k||n)&&z(n)},[n,k]);var E=g.useState(function(){return Ey(_)}),O=la(E,2),P=O[0],T=O[1];g.useEffect(function(){var te=Ey(_);T(te!=null?te:null)});var A=Kz(S&&!P,l),L=la(A,2),H=L[0],K=L[1],ae=P!=null?P:H;Zz(o&&n&&wn()&&(ae===H||ae===document.body));var ie=null;if(f&&Fm(f)&&a){var se=f;ie=se.ref}var he=Cf(ie,a);if(!S||!wn()||P===void 0)return null;var ue=ae===!1||ex(),ze=f;return a&&(ze=g.cloneElement(f,{ref:he})),g.createElement(wy.Provider,{value:K},ue?ze:(0,$_.createPortal)(ze,ae))}),ix=ax,Bk=ix;function nx(){var e=Ie({},x);return e.useId}var Oy=0;function s2(){}function Iy(e){var a=g.useState("ssr-id"),n=la(a,2),o=n[0],_=n[1],l=nx(),h=l==null?void 0:l();return g.useEffect(function(){if(!l){var k=Oy;Oy+=1,_("rc_unique_".concat(k))}},[]),e||h||o}var ox=`accept acceptCharset accessKey action allowFullScreen allowTransparency +}`),_)}else Ds(_);return function(){Ds(_)}},[a,_])}var Py=!1;function ex(e){return typeof e=="boolean"&&(Py=e),Py}var Ey=function(a){return a===!1?!1:!wn()||!a?null:typeof a=="string"?document.querySelector(a):typeof a=="function"?a():a},ax=g.forwardRef(function(e,a){var n=e.open,o=e.autoLock,_=e.getContainer,l=e.debug,h=e.autoDestroy,k=h===void 0?!0:h,f=e.children,b=g.useState(n),v=la(b,2),w=v[0],z=v[1],S=w||n;g.useEffect(function(){(k||n)&&z(n)},[n,k]);var E=g.useState(function(){return Ey(_)}),O=la(E,2),P=O[0],T=O[1];g.useEffect(function(){var te=Ey(_);T(te!=null?te:null)});var A=Kz(S&&!P,l),L=la(A,2),H=L[0],K=L[1],ae=P!=null?P:H;Zz(o&&n&&wn()&&(ae===H||ae===document.body));var ie=null;if(f&&Fm(f)&&a){var se=f;ie=se.ref}var he=Cf(ie,a);if(!S||!wn()||P===void 0)return null;var ue=ae===!1||ex(),ze=f;return a&&(ze=g.cloneElement(f,{ref:he})),g.createElement(wy.Provider,{value:K},ue?ze:(0,$_.createPortal)(ze,ae))}),ix=ax,Vk=ix;function nx(){var e=Ie({},x);return e.useId}var Oy=0;function s2(){}function Iy(e){var a=g.useState("ssr-id"),n=la(a,2),o=n[0],_=n[1],l=nx(),h=l==null?void 0:l();return g.useEffect(function(){if(!l){var k=Oy;Oy+=1,_("rc_unique_".concat(k))}},[]),e||h||o}var ox=`accept acceptCharset accessKey action allowFullScreen allowTransparency alt async autoComplete autoFocus autoPlay capture cellPadding cellSpacing challenge charSet checked classID className colSpan cols content contentEditable contextMenu controls coords crossOrigin data dateTime default defer dir disabled download draggable @@ -159,7 +159,7 @@ html body { onMouseEnter onMouseLeave onMouseMove onMouseOut onMouseOver onMouseUp onSelect onTouchCancel onTouchEnd onTouchMove onTouchStart onScroll onWheel onAbort onCanPlay onCanPlayThrough onDurationChange onEmptied onEncrypted onEnded onError onLoadedData onLoadedMetadata - onLoadStart onPause onPlay onPlaying onProgress onRateChange onSeeked onSeeking onStalled onSuspend onTimeUpdate onVolumeChange onWaiting onLoad onError`,tx="".concat(ox," ").concat(rx).split(/[\s\n]+/),_x="aria-",sx="data-";function Dy(e,a){return e.indexOf(a)===0}function ux(e){var a=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,n;a===!1?n={aria:!0,data:!0,attr:!0}:a===!0?n={aria:!0}:n=Ie({},a);var o={};return Object.keys(e).forEach(function(_){(n.aria&&(_==="role"||Dy(_,_x))||n.data&&Dy(_,sx)||n.attr&&tx.includes(_))&&(o[_]=e[_])}),o}function Ty(e,a,n){var o=a;return!o&&n&&(o="".concat(e,"-").concat(n)),o}function Ry(e,a){var n=e["page".concat(a?"Y":"X","Offset")],o="scroll".concat(a?"Top":"Left");if(typeof n!="number"){var _=e.document;n=_.documentElement[o],typeof n!="number"&&(n=_.body[o])}return n}function lx(e){var a=e.getBoundingClientRect(),n={left:a.left,top:a.top},o=e.ownerDocument,_=o.defaultView||o.parentWindow;return n.left+=Ry(_),n.top+=Ry(_,!0),n}var cx=g.memo(function(e){var a=e.children;return a},function(e,a){var n=a.shouldUpdate;return!n}),Ay={width:0,height:0,overflow:"hidden",outline:"none"},mx=g.forwardRef(function(e,a){var n=e.prefixCls,o=e.className,_=e.style,l=e.title,h=e.ariaId,k=e.footer,f=e.closable,b=e.closeIcon,v=e.onClose,w=e.children,z=e.bodyStyle,S=e.bodyProps,E=e.modalRender,O=e.onMouseDown,P=e.onMouseUp,T=e.holderRef,A=e.visible,L=e.forceRender,H=e.width,K=e.height,ae=(0,g.useRef)(),ie=(0,g.useRef)();g.useImperativeHandle(a,function(){return{focus:function(){var le;(le=ae.current)===null||le===void 0||le.focus()},changeActive:function(le){var be=document,Ve=be.activeElement;le&&Ve===ie.current?ae.current.focus():!le&&Ve===ae.current&&ie.current.focus()}}});var se={};H!==void 0&&(se.width=H),K!==void 0&&(se.height=K);var he;k&&(he=g.createElement("div",{className:"".concat(n,"-footer")},k));var ue;l&&(ue=g.createElement("div",{className:"".concat(n,"-header")},g.createElement("div",{className:"".concat(n,"-title"),id:h},l)));var ze;f&&(ze=g.createElement("button",{type:"button",onClick:v,"aria-label":"Close",className:"".concat(n,"-close")},b||g.createElement("span",{className:"".concat(n,"-close-x")})));var te=g.createElement("div",{className:"".concat(n,"-content")},ze,ue,g.createElement("div",gi({className:"".concat(n,"-body"),style:z},S),w),he);return g.createElement("div",{key:"dialog-element",role:"dialog","aria-labelledby":l?h:null,"aria-modal":"true",ref:T,style:Ie(Ie({},_),se),className:ka()(n,o),onMouseDown:O,onMouseUp:P},g.createElement("div",{tabIndex:0,ref:ae,style:Ay,"aria-hidden":"true"}),g.createElement(cx,{shouldUpdate:A||L},E?E(te):te),g.createElement("div",{tabIndex:0,ref:ie,style:Ay,"aria-hidden":"true"}))}),Ny=mx,My=g.forwardRef(function(e,a){var n=e.prefixCls,o=e.title,_=e.style,l=e.className,h=e.visible,k=e.forceRender,f=e.destroyOnClose,b=e.motionName,v=e.ariaId,w=e.onVisibleChanged,z=e.mousePosition,S=(0,g.useRef)(),E=g.useState(),O=la(E,2),P=O[0],T=O[1],A={};P&&(A.transformOrigin=P);function L(){var H=lx(S.current);T(z?"".concat(z.x-H.left,"px ").concat(z.y-H.top,"px"):"")}return g.createElement(Vt,{visible:h,onVisibleChanged:w,onAppearPrepare:L,onEnterPrepare:L,forceRender:k,motionName:b,removeOnLeave:f,ref:S},function(H,K){var ae=H.className,ie=H.style;return g.createElement(Ny,gi({},e,{ref:a,title:o,ariaId:v,prefixCls:n,holderRef:K,style:Ie(Ie(Ie({},ie),_),A),className:ka()(l,ae)}))})});My.displayName="Content";var hx=My;function dx(e){var a=e.prefixCls,n=e.style,o=e.visible,_=e.maskProps,l=e.motionName;return g.createElement(Vt,{key:"mask",visible:o,motionName:l,leavedClassName:"".concat(a,"-mask-hidden")},function(h,k){var f=h.className,b=h.style;return g.createElement("div",gi({ref:k,style:Ie(Ie({},b),n),className:ka()("".concat(a,"-mask"),f)},_))})}function gx(e){var a=e.prefixCls,n=a===void 0?"rc-dialog":a,o=e.zIndex,_=e.visible,l=_===void 0?!1:_,h=e.keyboard,k=h===void 0?!0:h,f=e.focusTriggerAfterClose,b=f===void 0?!0:f,v=e.wrapStyle,w=e.wrapClassName,z=e.wrapProps,S=e.onClose,E=e.afterOpenChange,O=e.afterClose,P=e.transitionName,T=e.animation,A=e.closable,L=A===void 0?!0:A,H=e.mask,K=H===void 0?!0:H,ae=e.maskTransitionName,ie=e.maskAnimation,se=e.maskClosable,he=se===void 0?!0:se,ue=e.maskStyle,ze=e.maskProps,te=e.rootClassName,re=(0,g.useRef)(),le=(0,g.useRef)(),be=(0,g.useRef)(),Ve=g.useState(l),He=la(Ve,2),ea=He[0],ca=He[1],Sa=Iy();function ya(){k_(le.current,document.activeElement)||(re.current=document.activeElement)}function Ge(){if(!k_(le.current,document.activeElement)){var da;(da=be.current)===null||da===void 0||da.focus()}}function $e(da){if(da)Ge();else{if(ca(!1),K&&re.current&&b){try{re.current.focus({preventScroll:!0})}catch(Ca){}re.current=null}ea&&(O==null||O())}E==null||E(da)}function ra(da){S==null||S(da)}var Xe=(0,g.useRef)(!1),Se=(0,g.useRef)(),pa=function(){clearTimeout(Se.current),Xe.current=!0},Ze=function(){Se.current=setTimeout(function(){Xe.current=!1})},Ia=null;he&&(Ia=function(Ca){Xe.current?Xe.current=!1:le.current===Ca.target&&ra(Ca)});function Ta(da){if(k&&da.keyCode===hr.ESC){da.stopPropagation(),ra(da);return}l&&da.keyCode===hr.TAB&&be.current.changeActive(!da.shiftKey)}return(0,g.useEffect)(function(){l&&(ca(!0),ya())},[l]),(0,g.useEffect)(function(){return function(){clearTimeout(Se.current)}},[]),g.createElement("div",gi({className:ka()("".concat(n,"-root"),te)},ux(e,{data:!0})),g.createElement(dx,{prefixCls:n,visible:K&&l,motionName:Ty(n,ae,ie),style:Ie({zIndex:o},ue),maskProps:ze}),g.createElement("div",gi({tabIndex:-1,onKeyDown:Ta,className:ka()("".concat(n,"-wrap"),w),ref:le,onClick:Ia,style:Ie(Ie({zIndex:o},v),{},{display:ea?null:"none"})},z),g.createElement(hx,gi({},e,{onMouseDown:pa,onMouseUp:Ze,ref:be,closable:L,ariaId:Sa,prefixCls:n,visible:l&&ea,onClose:ra,onVisibleChanged:$e,motionName:Ty(n,P,T)}))))}var Fy=function(a){var n=a.visible,o=a.getContainer,_=a.forceRender,l=a.destroyOnClose,h=l===void 0?!1:l,k=a.afterClose,f=g.useState(n),b=la(f,2),v=b[0],w=b[1];return g.useEffect(function(){n&&w(!0)},[n]),!_&&h&&!v?null:g.createElement(Bk,{open:n||_||v,autoDestroy:!1,getContainer:o,autoLock:n||v},g.createElement(gx,gi({},a,{destroyOnClose:h,afterClose:function(){k==null||k(),w(!1)}})))};Fy.displayName="Dialog";var kx=Fy,px=kx;const u2=g.createContext({labelAlign:"right",vertical:!1,itemRef:()=>{}}),l2=null,c2=e=>{const a=omit(e,["prefixCls"]);return React.createElement(RcFormProvider,Object.assign({},a))},m2=g.createContext({prefixCls:""}),Ly=g.createContext({}),fx=e=>{let{children:a,status:n,override:o}=e;const _=(0,g.useContext)(Ly),l=(0,g.useMemo)(()=>{const h=Object.assign({},_);return o&&delete h.isFormItemInput,n&&(delete h.status,delete h.hasFeedback,delete h.feedbackIcon),h},[n,o,_]);return g.createElement(Ly.Provider,{value:l},a)},Uy=()=>wn()&&window.document.documentElement;let Nd;const yx=()=>{if(!Uy())return!1;if(Nd!==void 0)return Nd;const e=document.createElement("div");return e.style.display="flex",e.style.flexDirection="column",e.style.rowGap="1px",e.appendChild(document.createElement("div")),e.appendChild(document.createElement("div")),document.body.appendChild(e),Nd=e.scrollHeight===1,document.body.removeChild(e),Nd},bx=e=>({animationDuration:e,animationFillMode:"both"}),vx=e=>({animationDuration:e,animationFillMode:"both"}),qk=function(e,a,n,o){const l=(arguments.length>4&&arguments[4]!==void 0?arguments[4]:!1)?"&":"";return{[` + onLoadStart onPause onPlay onPlaying onProgress onRateChange onSeeked onSeeking onStalled onSuspend onTimeUpdate onVolumeChange onWaiting onLoad onError`,tx="".concat(ox," ").concat(rx).split(/[\s\n]+/),_x="aria-",sx="data-";function Dy(e,a){return e.indexOf(a)===0}function ux(e){var a=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,n;a===!1?n={aria:!0,data:!0,attr:!0}:a===!0?n={aria:!0}:n=Ie({},a);var o={};return Object.keys(e).forEach(function(_){(n.aria&&(_==="role"||Dy(_,_x))||n.data&&Dy(_,sx)||n.attr&&tx.includes(_))&&(o[_]=e[_])}),o}function Ty(e,a,n){var o=a;return!o&&n&&(o="".concat(e,"-").concat(n)),o}function Ry(e,a){var n=e["page".concat(a?"Y":"X","Offset")],o="scroll".concat(a?"Top":"Left");if(typeof n!="number"){var _=e.document;n=_.documentElement[o],typeof n!="number"&&(n=_.body[o])}return n}function lx(e){var a=e.getBoundingClientRect(),n={left:a.left,top:a.top},o=e.ownerDocument,_=o.defaultView||o.parentWindow;return n.left+=Ry(_),n.top+=Ry(_,!0),n}var cx=g.memo(function(e){var a=e.children;return a},function(e,a){var n=a.shouldUpdate;return!n}),Ay={width:0,height:0,overflow:"hidden",outline:"none"},mx=g.forwardRef(function(e,a){var n=e.prefixCls,o=e.className,_=e.style,l=e.title,h=e.ariaId,k=e.footer,f=e.closable,b=e.closeIcon,v=e.onClose,w=e.children,z=e.bodyStyle,S=e.bodyProps,E=e.modalRender,O=e.onMouseDown,P=e.onMouseUp,T=e.holderRef,A=e.visible,L=e.forceRender,H=e.width,K=e.height,ae=(0,g.useRef)(),ie=(0,g.useRef)();g.useImperativeHandle(a,function(){return{focus:function(){var le;(le=ae.current)===null||le===void 0||le.focus()},changeActive:function(le){var be=document,Be=be.activeElement;le&&Be===ie.current?ae.current.focus():!le&&Be===ae.current&&ie.current.focus()}}});var se={};H!==void 0&&(se.width=H),K!==void 0&&(se.height=K);var he;k&&(he=g.createElement("div",{className:"".concat(n,"-footer")},k));var ue;l&&(ue=g.createElement("div",{className:"".concat(n,"-header")},g.createElement("div",{className:"".concat(n,"-title"),id:h},l)));var ze;f&&(ze=g.createElement("button",{type:"button",onClick:v,"aria-label":"Close",className:"".concat(n,"-close")},b||g.createElement("span",{className:"".concat(n,"-close-x")})));var te=g.createElement("div",{className:"".concat(n,"-content")},ze,ue,g.createElement("div",gi({className:"".concat(n,"-body"),style:z},S),w),he);return g.createElement("div",{key:"dialog-element",role:"dialog","aria-labelledby":l?h:null,"aria-modal":"true",ref:T,style:Ie(Ie({},_),se),className:ka()(n,o),onMouseDown:O,onMouseUp:P},g.createElement("div",{tabIndex:0,ref:ae,style:Ay,"aria-hidden":"true"}),g.createElement(cx,{shouldUpdate:A||L},E?E(te):te),g.createElement("div",{tabIndex:0,ref:ie,style:Ay,"aria-hidden":"true"}))}),Ny=mx,My=g.forwardRef(function(e,a){var n=e.prefixCls,o=e.title,_=e.style,l=e.className,h=e.visible,k=e.forceRender,f=e.destroyOnClose,b=e.motionName,v=e.ariaId,w=e.onVisibleChanged,z=e.mousePosition,S=(0,g.useRef)(),E=g.useState(),O=la(E,2),P=O[0],T=O[1],A={};P&&(A.transformOrigin=P);function L(){var H=lx(S.current);T(z?"".concat(z.x-H.left,"px ").concat(z.y-H.top,"px"):"")}return g.createElement(Bt,{visible:h,onVisibleChanged:w,onAppearPrepare:L,onEnterPrepare:L,forceRender:k,motionName:b,removeOnLeave:f,ref:S},function(H,K){var ae=H.className,ie=H.style;return g.createElement(Ny,gi({},e,{ref:a,title:o,ariaId:v,prefixCls:n,holderRef:K,style:Ie(Ie(Ie({},ie),_),A),className:ka()(l,ae)}))})});My.displayName="Content";var hx=My;function dx(e){var a=e.prefixCls,n=e.style,o=e.visible,_=e.maskProps,l=e.motionName;return g.createElement(Bt,{key:"mask",visible:o,motionName:l,leavedClassName:"".concat(a,"-mask-hidden")},function(h,k){var f=h.className,b=h.style;return g.createElement("div",gi({ref:k,style:Ie(Ie({},b),n),className:ka()("".concat(a,"-mask"),f)},_))})}function gx(e){var a=e.prefixCls,n=a===void 0?"rc-dialog":a,o=e.zIndex,_=e.visible,l=_===void 0?!1:_,h=e.keyboard,k=h===void 0?!0:h,f=e.focusTriggerAfterClose,b=f===void 0?!0:f,v=e.wrapStyle,w=e.wrapClassName,z=e.wrapProps,S=e.onClose,E=e.afterOpenChange,O=e.afterClose,P=e.transitionName,T=e.animation,A=e.closable,L=A===void 0?!0:A,H=e.mask,K=H===void 0?!0:H,ae=e.maskTransitionName,ie=e.maskAnimation,se=e.maskClosable,he=se===void 0?!0:se,ue=e.maskStyle,ze=e.maskProps,te=e.rootClassName,re=(0,g.useRef)(),le=(0,g.useRef)(),be=(0,g.useRef)(),Be=g.useState(l),He=la(Be,2),ea=He[0],ca=He[1],Sa=Iy();function ya(){k_(le.current,document.activeElement)||(re.current=document.activeElement)}function Ge(){if(!k_(le.current,document.activeElement)){var da;(da=be.current)===null||da===void 0||da.focus()}}function $e(da){if(da)Ge();else{if(ca(!1),K&&re.current&&b){try{re.current.focus({preventScroll:!0})}catch(Ca){}re.current=null}ea&&(O==null||O())}E==null||E(da)}function ra(da){S==null||S(da)}var Xe=(0,g.useRef)(!1),Se=(0,g.useRef)(),pa=function(){clearTimeout(Se.current),Xe.current=!0},Ze=function(){Se.current=setTimeout(function(){Xe.current=!1})},Ia=null;he&&(Ia=function(Ca){Xe.current?Xe.current=!1:le.current===Ca.target&&ra(Ca)});function Ta(da){if(k&&da.keyCode===hr.ESC){da.stopPropagation(),ra(da);return}l&&da.keyCode===hr.TAB&&be.current.changeActive(!da.shiftKey)}return(0,g.useEffect)(function(){l&&(ca(!0),ya())},[l]),(0,g.useEffect)(function(){return function(){clearTimeout(Se.current)}},[]),g.createElement("div",gi({className:ka()("".concat(n,"-root"),te)},ux(e,{data:!0})),g.createElement(dx,{prefixCls:n,visible:K&&l,motionName:Ty(n,ae,ie),style:Ie({zIndex:o},ue),maskProps:ze}),g.createElement("div",gi({tabIndex:-1,onKeyDown:Ta,className:ka()("".concat(n,"-wrap"),w),ref:le,onClick:Ia,style:Ie(Ie({zIndex:o},v),{},{display:ea?null:"none"})},z),g.createElement(hx,gi({},e,{onMouseDown:pa,onMouseUp:Ze,ref:be,closable:L,ariaId:Sa,prefixCls:n,visible:l&&ea,onClose:ra,onVisibleChanged:$e,motionName:Ty(n,P,T)}))))}var Fy=function(a){var n=a.visible,o=a.getContainer,_=a.forceRender,l=a.destroyOnClose,h=l===void 0?!1:l,k=a.afterClose,f=g.useState(n),b=la(f,2),v=b[0],w=b[1];return g.useEffect(function(){n&&w(!0)},[n]),!_&&h&&!v?null:g.createElement(Vk,{open:n||_||v,autoDestroy:!1,getContainer:o,autoLock:n||v},g.createElement(gx,gi({},a,{destroyOnClose:h,afterClose:function(){k==null||k(),w(!1)}})))};Fy.displayName="Dialog";var kx=Fy,px=kx;const u2=g.createContext({labelAlign:"right",vertical:!1,itemRef:()=>{}}),l2=null,c2=e=>{const a=omit(e,["prefixCls"]);return React.createElement(RcFormProvider,Object.assign({},a))},m2=g.createContext({prefixCls:""}),Ly=g.createContext({}),fx=e=>{let{children:a,status:n,override:o}=e;const _=(0,g.useContext)(Ly),l=(0,g.useMemo)(()=>{const h=Object.assign({},_);return o&&delete h.isFormItemInput,n&&(delete h.status,delete h.hasFeedback,delete h.feedbackIcon),h},[n,o,_]);return g.createElement(Ly.Provider,{value:l},a)},Uy=()=>wn()&&window.document.documentElement;let Nd;const yx=()=>{if(!Uy())return!1;if(Nd!==void 0)return Nd;const e=document.createElement("div");return e.style.display="flex",e.style.flexDirection="column",e.style.rowGap="1px",e.appendChild(document.createElement("div")),e.appendChild(document.createElement("div")),document.body.appendChild(e),Nd=e.scrollHeight===1,document.body.removeChild(e),Nd},bx=e=>({animationDuration:e,animationFillMode:"both"}),vx=e=>({animationDuration:e,animationFillMode:"both"}),qk=function(e,a,n,o){const l=(arguments.length>4&&arguments[4]!==void 0?arguments[4]:!1)?"&":"";return{[` ${l}${e}-enter, ${l}${e}-appear `]:Object.assign(Object.assign({},bx(o)),{animationPlayState:"paused"}),[`${l}${e}-leave`]:Object.assign(Object.assign({},vx(o)),{animationPlayState:"paused"}),[` @@ -168,16 +168,16 @@ html body { `]:{animationName:a,animationPlayState:"running"},[`${l}${e}-leave${e}-leave-active`]:{animationName:n,animationPlayState:"running",pointerEvents:"none"}}},wx=new ui("antFadeIn",{"0%":{opacity:0},"100%":{opacity:1}}),jx=new ui("antFadeOut",{"0%":{opacity:1},"100%":{opacity:0}}),$y=function(e){let a=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;const{antCls:n}=e,o=`${n}-fade`,_=a?"&":"";return[qk(o,wx,jx,e.motionDurationMid,a),{[` ${_}${o}-enter, ${_}${o}-appear - `]:{opacity:0,animationTimingFunction:"linear"},[`${_}${o}-leave`]:{animationTimingFunction:"linear"}}]},zx=new ui("antZoomIn",{"0%":{transform:"scale(0.2)",opacity:0},"100%":{transform:"scale(1)",opacity:1}}),xx=new ui("antZoomOut",{"0%":{transform:"scale(1)"},"100%":{transform:"scale(0.2)",opacity:0}}),Hy=new ui("antZoomBigIn",{"0%":{transform:"scale(0.8)",opacity:0},"100%":{transform:"scale(1)",opacity:1}}),Wy=new ui("antZoomBigOut",{"0%":{transform:"scale(1)"},"100%":{transform:"scale(0.8)",opacity:0}}),Cx=new ui("antZoomUpIn",{"0%":{transform:"scale(0.8)",transformOrigin:"50% 0%",opacity:0},"100%":{transform:"scale(1)",transformOrigin:"50% 0%"}}),Sx=new ui("antZoomUpOut",{"0%":{transform:"scale(1)",transformOrigin:"50% 0%"},"100%":{transform:"scale(0.8)",transformOrigin:"50% 0%",opacity:0}}),Px=new ui("antZoomLeftIn",{"0%":{transform:"scale(0.8)",transformOrigin:"0% 50%",opacity:0},"100%":{transform:"scale(1)",transformOrigin:"0% 50%"}}),Ex=new ui("antZoomLeftOut",{"0%":{transform:"scale(1)",transformOrigin:"0% 50%"},"100%":{transform:"scale(0.8)",transformOrigin:"0% 50%",opacity:0}}),Ox=new ui("antZoomRightIn",{"0%":{transform:"scale(0.8)",transformOrigin:"100% 50%",opacity:0},"100%":{transform:"scale(1)",transformOrigin:"100% 50%"}}),Ix=new ui("antZoomRightOut",{"0%":{transform:"scale(1)",transformOrigin:"100% 50%"},"100%":{transform:"scale(0.8)",transformOrigin:"100% 50%",opacity:0}}),Dx=new ui("antZoomDownIn",{"0%":{transform:"scale(0.8)",transformOrigin:"50% 100%",opacity:0},"100%":{transform:"scale(1)",transformOrigin:"50% 100%"}}),Tx=new ui("antZoomDownOut",{"0%":{transform:"scale(1)",transformOrigin:"50% 100%"},"100%":{transform:"scale(0.8)",transformOrigin:"50% 100%",opacity:0}}),Rx={zoom:{inKeyframes:zx,outKeyframes:xx},"zoom-big":{inKeyframes:Hy,outKeyframes:Wy},"zoom-big-fast":{inKeyframes:Hy,outKeyframes:Wy},"zoom-left":{inKeyframes:Px,outKeyframes:Ex},"zoom-right":{inKeyframes:Ox,outKeyframes:Ix},"zoom-up":{inKeyframes:Cx,outKeyframes:Sx},"zoom-down":{inKeyframes:Dx,outKeyframes:Tx}},Vy=(e,a)=>{const{antCls:n}=e,o=`${n}-${a}`,{inKeyframes:_,outKeyframes:l}=Rx[a];return[qk(o,_,l,a==="zoom-big-fast"?e.motionDurationFast:e.motionDurationMid),{[` + `]:{opacity:0,animationTimingFunction:"linear"},[`${_}${o}-leave`]:{animationTimingFunction:"linear"}}]},zx=new ui("antZoomIn",{"0%":{transform:"scale(0.2)",opacity:0},"100%":{transform:"scale(1)",opacity:1}}),xx=new ui("antZoomOut",{"0%":{transform:"scale(1)"},"100%":{transform:"scale(0.2)",opacity:0}}),Hy=new ui("antZoomBigIn",{"0%":{transform:"scale(0.8)",opacity:0},"100%":{transform:"scale(1)",opacity:1}}),Wy=new ui("antZoomBigOut",{"0%":{transform:"scale(1)"},"100%":{transform:"scale(0.8)",opacity:0}}),Cx=new ui("antZoomUpIn",{"0%":{transform:"scale(0.8)",transformOrigin:"50% 0%",opacity:0},"100%":{transform:"scale(1)",transformOrigin:"50% 0%"}}),Sx=new ui("antZoomUpOut",{"0%":{transform:"scale(1)",transformOrigin:"50% 0%"},"100%":{transform:"scale(0.8)",transformOrigin:"50% 0%",opacity:0}}),Px=new ui("antZoomLeftIn",{"0%":{transform:"scale(0.8)",transformOrigin:"0% 50%",opacity:0},"100%":{transform:"scale(1)",transformOrigin:"0% 50%"}}),Ex=new ui("antZoomLeftOut",{"0%":{transform:"scale(1)",transformOrigin:"0% 50%"},"100%":{transform:"scale(0.8)",transformOrigin:"0% 50%",opacity:0}}),Ox=new ui("antZoomRightIn",{"0%":{transform:"scale(0.8)",transformOrigin:"100% 50%",opacity:0},"100%":{transform:"scale(1)",transformOrigin:"100% 50%"}}),Ix=new ui("antZoomRightOut",{"0%":{transform:"scale(1)",transformOrigin:"100% 50%"},"100%":{transform:"scale(0.8)",transformOrigin:"100% 50%",opacity:0}}),Dx=new ui("antZoomDownIn",{"0%":{transform:"scale(0.8)",transformOrigin:"50% 100%",opacity:0},"100%":{transform:"scale(1)",transformOrigin:"50% 100%"}}),Tx=new ui("antZoomDownOut",{"0%":{transform:"scale(1)",transformOrigin:"50% 100%"},"100%":{transform:"scale(0.8)",transformOrigin:"50% 100%",opacity:0}}),Rx={zoom:{inKeyframes:zx,outKeyframes:xx},"zoom-big":{inKeyframes:Hy,outKeyframes:Wy},"zoom-big-fast":{inKeyframes:Hy,outKeyframes:Wy},"zoom-left":{inKeyframes:Px,outKeyframes:Ex},"zoom-right":{inKeyframes:Ox,outKeyframes:Ix},"zoom-up":{inKeyframes:Cx,outKeyframes:Sx},"zoom-down":{inKeyframes:Dx,outKeyframes:Tx}},By=(e,a)=>{const{antCls:n}=e,o=`${n}-${a}`,{inKeyframes:_,outKeyframes:l}=Rx[a];return[qk(o,_,l,a==="zoom-big-fast"?e.motionDurationFast:e.motionDurationMid),{[` ${o}-enter, ${o}-appear - `]:{transform:"scale(0)",opacity:0,animationTimingFunction:e.motionEaseOutCirc,"&-prepare":{transform:"none"}},[`${o}-leave`]:{animationTimingFunction:e.motionEaseInOutCirc}}]};function By(e){return{position:e,top:0,insetInlineEnd:0,bottom:0,insetInlineStart:0}}const Ax=e=>{const{componentCls:a,antCls:n}=e;return[{[`${a}-root`]:{[`${a}${n}-zoom-enter, ${a}${n}-zoom-appear`]:{transform:"none",opacity:0,animationDuration:e.motionDurationSlow,userSelect:"none"},[`${a}${n}-zoom-leave ${a}-content`]:{pointerEvents:"none"},[`${a}-mask`]:Object.assign(Object.assign({},By("fixed")),{zIndex:e.zIndexPopupBase,height:"100%",backgroundColor:e.colorBgMask,[`${a}-hidden`]:{display:"none"}}),[`${a}-wrap`]:Object.assign(Object.assign({},By("fixed")),{overflow:"auto",outline:0,WebkitOverflowScrolling:"touch"})}},{[`${a}-root`]:$y(e)}]},Nx=e=>{const{componentCls:a}=e;return[{[`${a}-root`]:{[`${a}-wrap`]:{zIndex:e.zIndexPopupBase,position:"fixed",inset:0,overflow:"auto",outline:0,WebkitOverflowScrolling:"touch"},[`${a}-wrap-rtl`]:{direction:"rtl"},[`${a}-centered`]:{textAlign:"center","&::before":{display:"inline-block",width:0,height:"100%",verticalAlign:"middle",content:'""'},[a]:{top:0,display:"inline-block",paddingBottom:0,textAlign:"start",verticalAlign:"middle"}},[`@media (max-width: ${e.screenSMMax})`]:{[a]:{maxWidth:"calc(100vw - 16px)",margin:`${e.marginXS} auto`},[`${a}-centered`]:{[a]:{flex:1}}}}},{[a]:Object.assign(Object.assign({},it(e)),{pointerEvents:"none",position:"relative",top:100,width:"auto",maxWidth:`calc(100vw - ${e.margin*2}px)`,margin:"0 auto",paddingBottom:e.paddingLG,[`${a}-title`]:{margin:0,color:e.modalHeadingColor,fontWeight:e.fontWeightStrong,fontSize:e.modalHeaderTitleFontSize,lineHeight:e.modalHeaderTitleLineHeight,wordWrap:"break-word"},[`${a}-content`]:{position:"relative",backgroundColor:e.modalContentBg,backgroundClip:"padding-box",border:0,borderRadius:e.borderRadiusLG,boxShadow:e.boxShadow,pointerEvents:"auto",padding:`${e.paddingMD}px ${e.paddingContentHorizontalLG}px`},[`${a}-close`]:Object.assign({position:"absolute",top:(e.modalHeaderCloseSize-e.modalCloseBtnSize)/2,insetInlineEnd:(e.modalHeaderCloseSize-e.modalCloseBtnSize)/2,zIndex:e.zIndexPopupBase+10,padding:0,color:e.modalCloseColor,fontWeight:e.fontWeightStrong,lineHeight:1,textDecoration:"none",background:"transparent",borderRadius:e.borderRadiusSM,width:e.modalConfirmIconSize,height:e.modalConfirmIconSize,border:0,outline:0,cursor:"pointer",transition:`color ${e.motionDurationMid}, background-color ${e.motionDurationMid}`,"&-x":{display:"block",fontSize:e.fontSizeLG,fontStyle:"normal",lineHeight:`${e.modalCloseBtnSize}px`,textAlign:"center",textTransform:"none",textRendering:"auto"},"&:hover":{color:e.modalIconHoverColor,backgroundColor:e.wireframe?"transparent":e.colorFillContent,textDecoration:"none"},"&:active":{backgroundColor:e.wireframe?"transparent":e.colorFillContentHover}},df(e)),[`${a}-header`]:{color:e.colorText,background:e.modalHeaderBg,borderRadius:`${e.borderRadiusLG}px ${e.borderRadiusLG}px 0 0`,marginBottom:e.marginXS},[`${a}-body`]:{fontSize:e.fontSize,lineHeight:e.lineHeight,wordWrap:"break-word"},[`${a}-footer`]:{textAlign:"end",background:e.modalFooterBg,marginTop:e.marginSM,[`${e.antCls}-btn + ${e.antCls}-btn:not(${e.antCls}-dropdown-trigger)`]:{marginBottom:0,marginInlineStart:e.marginXS}},[`${a}-open`]:{overflow:"hidden"}})},{[`${a}-pure-panel`]:{top:"auto",padding:0,display:"flex",flexDirection:"column",[`${a}-content, + `]:{transform:"scale(0)",opacity:0,animationTimingFunction:e.motionEaseOutCirc,"&-prepare":{transform:"none"}},[`${o}-leave`]:{animationTimingFunction:e.motionEaseInOutCirc}}]};function Vy(e){return{position:e,top:0,insetInlineEnd:0,bottom:0,insetInlineStart:0}}const Ax=e=>{const{componentCls:a,antCls:n}=e;return[{[`${a}-root`]:{[`${a}${n}-zoom-enter, ${a}${n}-zoom-appear`]:{transform:"none",opacity:0,animationDuration:e.motionDurationSlow,userSelect:"none"},[`${a}${n}-zoom-leave ${a}-content`]:{pointerEvents:"none"},[`${a}-mask`]:Object.assign(Object.assign({},Vy("fixed")),{zIndex:e.zIndexPopupBase,height:"100%",backgroundColor:e.colorBgMask,[`${a}-hidden`]:{display:"none"}}),[`${a}-wrap`]:Object.assign(Object.assign({},Vy("fixed")),{overflow:"auto",outline:0,WebkitOverflowScrolling:"touch"})}},{[`${a}-root`]:$y(e)}]},Nx=e=>{const{componentCls:a}=e;return[{[`${a}-root`]:{[`${a}-wrap`]:{zIndex:e.zIndexPopupBase,position:"fixed",inset:0,overflow:"auto",outline:0,WebkitOverflowScrolling:"touch"},[`${a}-wrap-rtl`]:{direction:"rtl"},[`${a}-centered`]:{textAlign:"center","&::before":{display:"inline-block",width:0,height:"100%",verticalAlign:"middle",content:'""'},[a]:{top:0,display:"inline-block",paddingBottom:0,textAlign:"start",verticalAlign:"middle"}},[`@media (max-width: ${e.screenSMMax})`]:{[a]:{maxWidth:"calc(100vw - 16px)",margin:`${e.marginXS} auto`},[`${a}-centered`]:{[a]:{flex:1}}}}},{[a]:Object.assign(Object.assign({},it(e)),{pointerEvents:"none",position:"relative",top:100,width:"auto",maxWidth:`calc(100vw - ${e.margin*2}px)`,margin:"0 auto",paddingBottom:e.paddingLG,[`${a}-title`]:{margin:0,color:e.modalHeadingColor,fontWeight:e.fontWeightStrong,fontSize:e.modalHeaderTitleFontSize,lineHeight:e.modalHeaderTitleLineHeight,wordWrap:"break-word"},[`${a}-content`]:{position:"relative",backgroundColor:e.modalContentBg,backgroundClip:"padding-box",border:0,borderRadius:e.borderRadiusLG,boxShadow:e.boxShadow,pointerEvents:"auto",padding:`${e.paddingMD}px ${e.paddingContentHorizontalLG}px`},[`${a}-close`]:Object.assign({position:"absolute",top:(e.modalHeaderCloseSize-e.modalCloseBtnSize)/2,insetInlineEnd:(e.modalHeaderCloseSize-e.modalCloseBtnSize)/2,zIndex:e.zIndexPopupBase+10,padding:0,color:e.modalCloseColor,fontWeight:e.fontWeightStrong,lineHeight:1,textDecoration:"none",background:"transparent",borderRadius:e.borderRadiusSM,width:e.modalConfirmIconSize,height:e.modalConfirmIconSize,border:0,outline:0,cursor:"pointer",transition:`color ${e.motionDurationMid}, background-color ${e.motionDurationMid}`,"&-x":{display:"block",fontSize:e.fontSizeLG,fontStyle:"normal",lineHeight:`${e.modalCloseBtnSize}px`,textAlign:"center",textTransform:"none",textRendering:"auto"},"&:hover":{color:e.modalIconHoverColor,backgroundColor:e.wireframe?"transparent":e.colorFillContent,textDecoration:"none"},"&:active":{backgroundColor:e.wireframe?"transparent":e.colorFillContentHover}},df(e)),[`${a}-header`]:{color:e.colorText,background:e.modalHeaderBg,borderRadius:`${e.borderRadiusLG}px ${e.borderRadiusLG}px 0 0`,marginBottom:e.marginXS},[`${a}-body`]:{fontSize:e.fontSize,lineHeight:e.lineHeight,wordWrap:"break-word"},[`${a}-footer`]:{textAlign:"end",background:e.modalFooterBg,marginTop:e.marginSM,[`${e.antCls}-btn + ${e.antCls}-btn:not(${e.antCls}-dropdown-trigger)`]:{marginBottom:0,marginInlineStart:e.marginXS}},[`${a}-open`]:{overflow:"hidden"}})},{[`${a}-pure-panel`]:{top:"auto",padding:0,display:"flex",flexDirection:"column",[`${a}-content, ${a}-body, ${a}-confirm-body-wrapper`]:{display:"flex",flexDirection:"column",flex:"auto"},[`${a}-confirm-body`]:{marginBottom:"auto"}}}]},Mx=e=>{const{componentCls:a}=e,n=`${a}-confirm`;return{[n]:{"&-rtl":{direction:"rtl"},[`${e.antCls}-modal-header`]:{display:"none"},[`${n}-body-wrapper`]:Object.assign({},g0()),[`${n}-body`]:{display:"flex",flexWrap:"wrap",alignItems:"center",[`${n}-title`]:{flex:"0 0 100%",display:"block",overflow:"hidden",color:e.colorTextHeading,fontWeight:e.fontWeightStrong,fontSize:e.modalHeaderTitleFontSize,lineHeight:e.modalHeaderTitleLineHeight,[`+ ${n}-content`]:{marginBlockStart:e.marginXS,flexBasis:"100%",maxWidth:`calc(100% - ${e.modalConfirmIconSize+e.marginSM}px)`}},[`${n}-content`]:{color:e.colorText,fontSize:e.fontSize},[`> ${e.iconCls}`]:{flex:"none",marginInlineEnd:e.marginSM,fontSize:e.modalConfirmIconSize,[`+ ${n}-title`]:{flex:1},[`+ ${n}-title + ${n}-content`]:{marginInlineStart:e.modalConfirmIconSize+e.marginSM}}},[`${n}-btns`]:{textAlign:"end",marginTop:e.marginSM,[`${e.antCls}-btn + ${e.antCls}-btn`]:{marginBottom:0,marginInlineStart:e.marginXS}}},[`${n}-error ${n}-body > ${e.iconCls}`]:{color:e.colorError},[`${n}-warning ${n}-body > ${e.iconCls}, - ${n}-confirm ${n}-body > ${e.iconCls}`]:{color:e.colorWarning},[`${n}-info ${n}-body > ${e.iconCls}`]:{color:e.colorInfo},[`${n}-success ${n}-body > ${e.iconCls}`]:{color:e.colorSuccess}}},Fx=e=>{const{componentCls:a}=e;return{[`${a}-root`]:{[`${a}-wrap-rtl`]:{direction:"rtl",[`${a}-confirm-body`]:{direction:"rtl"}}}}},Lx=e=>{const{componentCls:a,antCls:n}=e,o=`${a}-confirm`;return{[a]:{[`${a}-content`]:{padding:0},[`${a}-header`]:{padding:e.modalHeaderPadding,borderBottom:`${e.modalHeaderBorderWidth}px ${e.modalHeaderBorderStyle} ${e.modalHeaderBorderColorSplit}`,marginBottom:0},[`${a}-body`]:{padding:e.modalBodyPadding},[`${a}-footer`]:{padding:`${e.modalFooterPaddingVertical}px ${e.modalFooterPaddingHorizontal}px`,borderTop:`${e.modalFooterBorderWidth}px ${e.modalFooterBorderStyle} ${e.modalFooterBorderColorSplit}`,borderRadius:`0 0 ${e.borderRadiusLG}px ${e.borderRadiusLG}px`,marginTop:0}},[o]:{[`${n}-modal-body`]:{padding:`${e.padding*2}px ${e.padding*2}px ${e.paddingLG}px`},[`${o}-body`]:{[`> ${e.iconCls}`]:{marginInlineEnd:e.margin,[`+ ${o}-title + ${o}-content`]:{marginInlineStart:e.modalConfirmIconSize+e.margin}}},[`${o}-btns`]:{marginTop:e.marginLG}}}};var qy=dr("Modal",e=>{const a=e.padding,n=e.fontSizeHeading5,o=e.lineHeightHeading5,_=Po(e,{modalBodyPadding:e.paddingLG,modalHeaderBg:e.colorBgElevated,modalHeaderPadding:`${a}px ${e.paddingLG}px`,modalHeaderBorderWidth:e.lineWidth,modalHeaderBorderStyle:e.lineType,modalHeaderTitleLineHeight:o,modalHeaderTitleFontSize:n,modalHeaderBorderColorSplit:e.colorSplit,modalHeaderCloseSize:o*n+a*2,modalContentBg:e.colorBgElevated,modalHeadingColor:e.colorTextHeading,modalCloseColor:e.colorTextDescription,modalFooterBg:"transparent",modalFooterBorderColorSplit:e.colorSplit,modalFooterBorderStyle:e.lineType,modalFooterPaddingVertical:e.paddingXS,modalFooterPaddingHorizontal:e.padding,modalFooterBorderWidth:e.lineWidth,modalConfirmTitleFontSize:e.fontSizeLG,modalIconHoverColor:e.colorIconHover,modalConfirmIconSize:e.fontSize*e.lineHeight,modalCloseBtnSize:e.controlHeightLG*.55});return[Nx(_),Mx(_),Fx(_),Ax(_),e.wireframe&&Lx(_),Vy(_,"zoom")]}),Ux=function(e,a){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&a.indexOf(o)<0&&(n[o]=e[o]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var _=0,o=Object.getOwnPropertySymbols(e);_{const{okText:a,okType:n="primary",cancelText:o,confirmLoading:_,onOk:l,onCancel:h,okButtonProps:k,cancelButtonProps:f}=e,[b]=Ek("Modal",me());return g.createElement(g.Fragment,null,g.createElement(gu,Object.assign({onClick:h},f),o||(b==null?void 0:b.cancelText)),g.createElement(gu,Object.assign({},fy(n),{loading:_,onClick:l},k),a||(b==null?void 0:b.okText)))};var $x=e=>{const{prefixCls:a,className:n,closeIcon:o,closable:_,type:l,title:h,children:k}=e,f=Ux(e,["prefixCls","className","closeIcon","closable","type","title","children"]),{getPrefixCls:b}=g.useContext(Ha),v=b(),w=a||b("modal"),[,z]=qy(w),S=`${w}-confirm`;let E={};return l?E={closable:_!=null?_:!1,title:"",footer:"",children:g.createElement(Ky,Object.assign({},e,{confirmPrefixCls:S,rootPrefixCls:v,content:k}))}:E={closable:_!=null?_:!0,title:h,footer:e.footer===void 0?g.createElement(Xy,Object.assign({},e)):e.footer,children:k},g.createElement(Ny,Object.assign({prefixCls:w,className:ka()(z,`${w}-pure-panel`,l&&S,l&&`${S}-${l}`,n)},f,{closeIcon:Gy(w,o),closable:_},E))},Hx=function(e,a){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&a.indexOf(o)<0&&(n[o]=e[o]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var _=0,o=Object.getOwnPropertySymbols(e);_{Gk={x:e.pageX,y:e.pageY},setTimeout(()=>{Gk=null},100)};Uy()&&document.documentElement.addEventListener("click",Wx,!0);var Yy=e=>{var a;const{getPopupContainer:n,getPrefixCls:o,direction:_}=g.useContext(Ha),l=ue=>{const{onCancel:ze}=e;ze==null||ze(ue)},h=ue=>{const{onOk:ze}=e;ze==null||ze(ue)},{prefixCls:k,className:f,rootClassName:b,open:v,wrapClassName:w,centered:z,getContainer:S,closeIcon:E,focusTriggerAfterClose:O=!0,visible:P,width:T=520,footer:A}=e,L=Hx(e,["prefixCls","className","rootClassName","open","wrapClassName","centered","getContainer","closeIcon","focusTriggerAfterClose","visible","width","footer"]),H=o("modal",k),K=o(),[ae,ie]=qy(H),se=ka()(w,{[`${H}-centered`]:!!z,[`${H}-wrap-rtl`]:_==="rtl"}),he=A===void 0?g.createElement(Xy,Object.assign({},e,{onOk:h,onCancel:l})):A;return ae(g.createElement(dz,null,g.createElement(fx,{status:!0,override:!0},g.createElement(px,Object.assign({width:T},L,{getContainer:S===void 0?n:S,prefixCls:H,rootClassName:ka()(ie,b),wrapClassName:se,footer:he,visible:v!=null?v:P,mousePosition:(a=L.mousePosition)!==null&&a!==void 0?a:Gk,onClose:l,closeIcon:Gy(H,E),focusTriggerAfterClose:O,transitionName:$m(K,"zoom",e.transitionName),maskTransitionName:$m(K,"fade",e.maskTransitionName),className:ka()(ie,f)})))))};function Ky(e){const{icon:a,onCancel:n,onOk:o,close:_,okText:l,okButtonProps:h,cancelText:k,cancelButtonProps:f,confirmPrefixCls:b,rootPrefixCls:v,type:w,okCancel:z,footer:S,locale:E}=e;let O=a;if(!a&&a!==null)switch(w){case"info":O=g.createElement(vd,null);break;case"success":O=g.createElement(bd,null);break;case"error":O=g.createElement(yd,null);break;default:O=g.createElement(fd,null)}const P=e.okType||"primary",T=z!=null?z:w==="confirm",A=e.autoFocusButton===null?!1:e.autoFocusButton||"ok",[L]=Ek("Modal"),H=E||L,K=T&&g.createElement(by,{actionFn:n,close:_,autoFocus:A==="cancel",buttonProps:f,prefixCls:`${v}-btn`},k||(H==null?void 0:H.cancelText));return g.createElement("div",{className:`${b}-body-wrapper`},g.createElement("div",{className:`${b}-body`},O,e.title===void 0?null:g.createElement("span",{className:`${b}-title`},e.title),g.createElement("div",{className:`${b}-content`},e.content)),S===void 0?g.createElement("div",{className:`${b}-btns`},K,g.createElement(by,{type:P,actionFn:o,close:_,autoFocus:A==="ok",buttonProps:h,prefixCls:`${v}-btn`},l||(T?H==null?void 0:H.okText:H==null?void 0:H.justOkText))):S)}var Qy=e=>{const{close:a,zIndex:n,afterClose:o,visible:_,open:l,keyboard:h,centered:k,getContainer:f,maskStyle:b,direction:v,prefixCls:w,wrapClassName:z,rootPrefixCls:S,iconPrefixCls:E,bodyStyle:O,closable:P=!1,closeIcon:T,modalRender:A,focusTriggerAfterClose:L}=e,H=`${w}-confirm`,K=e.width||416,ae=e.style||{},ie=e.mask===void 0?!0:e.mask,se=e.maskClosable===void 0?!1:e.maskClosable,he=ka()(H,`${H}-${e.type}`,{[`${H}-rtl`]:v==="rtl"},e.className);return g.createElement(dd,{prefixCls:S,iconPrefixCls:E,direction:v},g.createElement(Yy,{prefixCls:w,className:he,wrapClassName:ka()({[`${H}-centered`]:!!e.centered},z),onCancel:()=>a==null?void 0:a({triggerCancel:!0}),open:l,title:"",footer:null,transitionName:$m(S,"zoom",e.transitionName),maskTransitionName:$m(S,"fade",e.maskTransitionName),mask:ie,maskClosable:se,maskStyle:b,style:ae,bodyStyle:O,width:K,zIndex:n,afterClose:o,keyboard:h,centered:k,getContainer:f,closable:P,closeIcon:T,modalRender:A,focusTriggerAfterClose:L},g.createElement(Ky,Object.assign({},e,{confirmPrefixCls:H}))))},ku=[],Vx=function(e,a){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&a.indexOf(o)<0&&(n[o]=e[o]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var _=0,o=Object.getOwnPropertySymbols(e);_z&&z.triggerCancel);e.onCancel&&w&&e.onCancel.apply(e,[()=>{}].concat(xa(b.slice(1))));for(let z=0;z{const S=me(),{getPrefixCls:E,getIconPrefixCls:O}=Am(),P=E(void 0,Bx()),T=w||`${P}-modal`,A=O();W_(g.createElement(Qy,Object.assign({},z,{prefixCls:T,rootPrefixCls:P,iconPrefixCls:A,okText:b,locale:S,cancelText:v||S.cancelText})),a)})}function h(){for(var f=arguments.length,b=new Array(f),v=0;v{typeof e.afterClose=="function"&&e.afterClose(),_.apply(this,b)}}),n.visible&&delete n.visible,l(n)}function k(f){typeof f=="function"?n=f(n):n=Object.assign(Object.assign({},n),f),l(n)}return l(n),ku.push(h),{destroy:h,update:k}}function Zy(e){return Object.assign(Object.assign({},e),{type:"warning"})}function eb(e){return Object.assign(Object.assign({},e),{type:"info"})}function ab(e){return Object.assign(Object.assign({},e),{type:"success"})}function ib(e){return Object.assign(Object.assign({},e),{type:"error"})}function nb(e){return Object.assign(Object.assign({},e),{type:"confirm"})}function qx(e){let{rootPrefixCls:a}=e;Jy=a}function Gx(){const[e,a]=g.useState([]),n=g.useCallback(o=>(a(_=>[].concat(xa(_),[o])),()=>{a(_=>_.filter(l=>l!==o))}),[]);return[e,n]}const Xx=(e,a)=>{let{afterClose:n,config:o}=e;var _;const[l,h]=g.useState(!0),[k,f]=g.useState(o),{direction:b,getPrefixCls:v}=g.useContext(Ha),w=v("modal"),z=v(),S=()=>{var T;n(),(T=k.afterClose)===null||T===void 0||T.call(k)},E=function(){h(!1);for(var T=arguments.length,A=new Array(T),L=0;LK&&K.triggerCancel);k.onCancel&&H&&k.onCancel.apply(k,[()=>{}].concat(xa(A.slice(1))))};g.useImperativeHandle(a,()=>({destroy:E,update:T=>{f(A=>Object.assign(Object.assign({},A),T))}}));const O=(_=k.okCancel)!==null&&_!==void 0?_:k.type==="confirm",[P]=Ek("Modal",C.Modal);return g.createElement(Qy,Object.assign({prefixCls:w,rootPrefixCls:z},k,{close:E,open:l,afterClose:S,okText:k.okText||(O?P==null?void 0:P.okText:P==null?void 0:P.justOkText),direction:k.direction||b,cancelText:k.cancelText||(P==null?void 0:P.cancelText)}))};var Yx=g.forwardRef(Xx);let ob=0;const Kx=g.memo(g.forwardRef((e,a)=>{const[n,o]=Gx();return g.useImperativeHandle(a,()=>({patchElement:o}),[]),g.createElement(g.Fragment,null,n)}));function Qx(){const e=g.useRef(null),[a,n]=g.useState([]);g.useEffect(()=>{a.length&&(xa(a).forEach(h=>{h()}),n([]))},[a]);const o=g.useCallback(l=>function(k){var f;ob+=1;const b=g.createRef();let v;const w=g.createElement(Yx,{key:`modal-${ob}`,config:l(k),ref:b,afterClose:()=>{v==null||v()}});return v=(f=e.current)===null||f===void 0?void 0:f.patchElement(w),v&&ku.push(v),{destroy:()=>{function z(){var S;(S=b.current)===null||S===void 0||S.destroy()}b.current?z():n(S=>[].concat(xa(S),[z]))},update:z=>{function S(){var E;(E=b.current)===null||E===void 0||E.update(z)}b.current?S():n(E=>[].concat(xa(E),[S]))}}},[]);return[g.useMemo(()=>({info:o(eb),success:o(ab),error:o(ib),warning:o(Zy),confirm:o(nb)}),[]),g.createElement(Kx,{key:"modal-holder",ref:e})]}var Jx=Qx;function rb(e){return Hm(Zy(e))}const kr=Yy;kr.useModal=Jx,kr.info=function(a){return Hm(eb(a))},kr.success=function(a){return Hm(ab(a))},kr.error=function(a){return Hm(ib(a))},kr.warning=rb,kr.warn=rb,kr.confirm=function(a){return Hm(nb(a))},kr.destroyAll=function(){for(;ku.length;){const a=ku.pop();a&&a()}},kr.config=qx,kr._InternalPanelDoNotUseOrYouWillBeFired=$x;var Zx=kr,Ul=function(a){return typeof window!="undefined"?matchMedia&&matchMedia("(prefers-color-scheme: ".concat(a,")")):{matches:!1}},Xk,tb=(0,g.createContext)({appearance:"light",isDarkMode:!1,themeMode:"light",browserPrefers:(Xk=Ul("dark"))!==null&&Xk!==void 0&&Xk.matches?"dark":"light"}),Md=function(){return(0,g.useContext)(tb)};function _b(e,a){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);a&&(o=o.filter(function(_){return Object.getOwnPropertyDescriptor(e,_).enumerable})),n.push.apply(n,o)}return n}function sb(e){for(var a=1;a!n.has(o))}return Qk(e,(n,o,_)=>!a(n,o,_))}var bC=function(a){return a==null},vC=function(a){return encodeURIComponent(a).replace(/[!'()*]/g,function(n){return"%".concat(n.charCodeAt(0).toString(16).toUpperCase())})},Jk=Symbol("encodeFragmentIdentifier");function wC(e){switch(e.arrayFormat){case"index":return function(n){return function(o,_){var l=o.length;return _===void 0||e.skipNull&&_===null||e.skipEmptyString&&_===""?o:_===null?[].concat(ho(o),[[an(n,e),"[",l,"]"].join("")]):[].concat(ho(o),[[an(n,e),"[",an(l,e),"]=",an(_,e)].join("")])}};case"bracket":return function(n){return function(o,_){return _===void 0||e.skipNull&&_===null||e.skipEmptyString&&_===""?o:_===null?[].concat(ho(o),[[an(n,e),"[]"].join("")]):[].concat(ho(o),[[an(n,e),"[]=",an(_,e)].join("")])}};case"colon-list-separator":return function(n){return function(o,_){return _===void 0||e.skipNull&&_===null||e.skipEmptyString&&_===""?o:_===null?[].concat(ho(o),[[an(n,e),":list="].join("")]):[].concat(ho(o),[[an(n,e),":list=",an(_,e)].join("")])}};case"comma":case"separator":case"bracket-separator":{var a=e.arrayFormat==="bracket-separator"?"[]=":"=";return function(n){return function(o,_){return _===void 0||e.skipNull&&_===null||e.skipEmptyString&&_===""?o:(_=_===null?"":_,o.length===0?[[an(n,e),a,an(_,e)].join("")]:[[o,an(_,e)].join(e.arrayFormatSeparator)])}}}default:return function(n){return function(o,_){return _===void 0||e.skipNull&&_===null||e.skipEmptyString&&_===""?o:_===null?[].concat(ho(o),[an(n,e)]):[].concat(ho(o),[[an(n,e),"=",an(_,e)].join("")])}}}}function jC(e){var a;switch(e.arrayFormat){case"index":return function(n,o,_){if(a=/\[(\d*)]$/.exec(n),n=n.replace(/\[\d*]$/,""),!a){_[n]=o;return}_[n]===void 0&&(_[n]={}),_[n][a[1]]=o};case"bracket":return function(n,o,_){if(a=/(\[])$/.exec(n),n=n.replace(/\[]$/,""),!a){_[n]=o;return}if(_[n]===void 0){_[n]=[o];return}_[n]=[].concat(ho(_[n]),[o])};case"colon-list-separator":return function(n,o,_){if(a=/(:list)$/.exec(n),n=n.replace(/:list$/,""),!a){_[n]=o;return}if(_[n]===void 0){_[n]=[o];return}_[n]=[].concat(ho(_[n]),[o])};case"comma":case"separator":return function(n,o,_){var l=typeof o=="string"&&o.includes(e.arrayFormatSeparator),h=typeof o=="string"&&!l&&Gt(o,e).includes(e.arrayFormatSeparator);o=h?Gt(o,e):o;var k=l||h?o.split(e.arrayFormatSeparator).map(function(f){return Gt(f,e)}):o===null?o:Gt(o,e);_[n]=k};case"bracket-separator":return function(n,o,_){var l=/(\[])$/.test(n);if(n=n.replace(/\[]$/,""),!l){_[n]=o&&Gt(o,e);return}var h=o===null?[]:o.split(e.arrayFormatSeparator).map(function(k){return Gt(k,e)});if(_[n]===void 0){_[n]=h;return}_[n]=[].concat(ho(_[n]),ho(h))};default:return function(n,o,_){if(_[n]===void 0){_[n]=o;return}_[n]=[].concat(ho([_[n]].flat()),[o])}}}function bb(e){if(typeof e!="string"||e.length!==1)throw new TypeError("arrayFormatSeparator must be single character string")}function an(e,a){return a.encode?a.strict?vC(e):encodeURIComponent(e):e}function Gt(e,a){return a.decode?yC(e):e}function vb(e){return Array.isArray(e)?e.sort():Yk(e)==="object"?vb(Object.keys(e)).sort(function(a,n){return Number(a)-Number(n)}).map(function(a){return e[a]}):e}function wb(e){var a=e.indexOf("#");return a!==-1&&(e=e.slice(0,a)),e}function zC(e){var a="",n=e.indexOf("#");return n!==-1&&(a=e.slice(n)),a}function jb(e,a){return a.parseNumbers&&!Number.isNaN(Number(e))&&typeof e=="string"&&e.trim()!==""?e=Number(e):a.parseBooleans&&e!==null&&(e.toLowerCase()==="true"||e.toLowerCase()==="false")&&(e=e.toLowerCase()==="true"),e}function Zk(e){e=wb(e);var a=e.indexOf("?");return a===-1?"":e.slice(a+1)}function ep(e,a){a=qt({decode:!0,sort:!0,arrayFormat:"none",arrayFormatSeparator:",",parseNumbers:!1,parseBooleans:!1},a),bb(a.arrayFormatSeparator);var n=jC(a),o=Object.create(null);if(typeof e!="string"||(e=e.trim().replace(/^[?#&]/,""),!e))return o;var _=we(e.split("&")),l;try{for(_.s();!(l=_.n()).done;){var h=l.value;if(h!==""){var k=a.decode?h.replace(/\+/g," "):h,f=yb(k,"="),b=$(f,2),v=b[0],w=b[1];v===void 0&&(v=k),w=w===void 0?null:["comma","separator","bracket-separator"].includes(a.arrayFormat)?w:Gt(w,a),n(Gt(v,a),w,o)}}}catch(ae){_.e(ae)}finally{_.f()}for(var z=0,S=Object.entries(o);z0}).join("&")}function xb(e,a){var n,o,_;a=qt({decode:!0},a);var l=yb(e,"#"),h=$(l,2),k=h[0],f=h[1];return k===void 0&&(k=e),qt({url:(n=(o=k)===null||o===void 0||(_=o.split("?"))===null||_===void 0?void 0:_[0])!==null&&n!==void 0?n:"",query:ep(Zk(e),a)},a&&a.parseFragmentIdentifier&&f?{fragmentIdentifier:Gt(f,a)}:{})}function Cb(e,a){a=qt(Ce({encode:!0,strict:!0},Jk,!0),a);var n=wb(e.url).split("?")[0]||"",o=Zk(e.url),_=qt(qt({},ep(o,{sort:!1})),e.query),l=zb(_,a);l&&(l="?".concat(l));var h=zC(e.url);if(e.fragmentIdentifier){var k=new URL(n);k.hash=e.fragmentIdentifier,h=a[Jk]?k.hash:"#".concat(e.fragmentIdentifier)}return"".concat(n).concat(l).concat(h)}function Sb(e,a,n){n=qt(Ce({parseFragmentIdentifier:!0},Jk,!1),n);var o=xb(e,n),_=o.url,l=o.query,h=o.fragmentIdentifier;return Cb({url:_,query:Qk(l,a),fragmentIdentifier:h},n)}function xC(e,a,n){var o=Array.isArray(a)?function(_){return!a.includes(_)}:function(_,l){return!a(_,l)};return Sb(e,o,n)}var ap=F,CC=ha(6774),SC=ha.n(CC);function PC(e){function a(Ge,$e,ra,Xe,Se){for(var pa=0,Ze=0,Ia=0,Ta=0,da,Ca,Ra=0,ai=0,Ma,mi=Ma=da=0,va=0,Oa=0,qa=0,Ga=0,ln=ra.length,Wi=ln-1,Li,Ua="",ii="",Kn="",on="",Vi;vada)&&(Ga=(Ua=Ua.replace(" ",":")).length),0Xe&&(Xe=($e=$e.trim()).charCodeAt(0)),Xe){case 38:return $e.replace(T,"$1"+Ge.trim());case 58:return Ge.trim()+$e.replace(T,"$1"+Ge.trim());default:if(0<1*ra&&0<$e.indexOf("\f"))return $e.replace(T,(Ge.charCodeAt(0)===58?"":"$1")+Ge.trim())}return Ge+$e}function _(Ge,$e,ra,Xe){var Se=Ge+";",pa=2*$e+3*ra+4*Xe;if(pa===944){Ge=Se.indexOf(":",9)+1;var Ze=Se.substring(Ge,Se.length-1).trim();return Ze=Se.substring(0,Ge).trim()+Ze+";",be===1||be===2&&l(Ze,1)?"-webkit-"+Ze+Ze:Ze}if(be===0||be===2&&!l(Se,1))return Se;switch(pa){case 1015:return Se.charCodeAt(10)===97?"-webkit-"+Se+Se:Se;case 951:return Se.charCodeAt(3)===116?"-webkit-"+Se+Se:Se;case 963:return Se.charCodeAt(5)===110?"-webkit-"+Se+Se:Se;case 1009:if(Se.charCodeAt(4)!==100)break;case 969:case 942:return"-webkit-"+Se+Se;case 978:return"-webkit-"+Se+"-moz-"+Se+Se;case 1019:case 983:return"-webkit-"+Se+"-moz-"+Se+"-ms-"+Se+Se;case 883:if(Se.charCodeAt(8)===45)return"-webkit-"+Se+Se;if(0Ze.charCodeAt(8))break;case 115:Se=Se.replace(Ze,"-webkit-"+Ze)+";"+Se;break;case 207:case 102:Se=Se.replace(Ze,"-webkit-"+(102ra.charCodeAt(0)&&(ra=ra.trim()),ya=ra,ra=[ya],01?a-1:0),o=1;o0?" Args: "+n.join(", "):""))}var RC=function(){function e(n){this.groupSizes=new Uint32Array(512),this.length=512,this.tag=n}var a=e.prototype;return a.indexOfGroup=function(n){for(var o=0,_=0;_=this.groupSizes.length){for(var _=this.groupSizes,l=_.length,h=l;n>=h;)(h<<=1)<0&&yr(16,""+n);this.groupSizes=new Uint32Array(h),this.groupSizes.set(_),this.length=h;for(var k=l;k=this.length||this.groupSizes[n]===0)return o;for(var _=this.groupSizes[n],l=this.indexOfGroup(n),h=l+_,k=l;k ${e.iconCls}`]:{color:e.colorWarning},[`${n}-info ${n}-body > ${e.iconCls}`]:{color:e.colorInfo},[`${n}-success ${n}-body > ${e.iconCls}`]:{color:e.colorSuccess}}},Fx=e=>{const{componentCls:a}=e;return{[`${a}-root`]:{[`${a}-wrap-rtl`]:{direction:"rtl",[`${a}-confirm-body`]:{direction:"rtl"}}}}},Lx=e=>{const{componentCls:a,antCls:n}=e,o=`${a}-confirm`;return{[a]:{[`${a}-content`]:{padding:0},[`${a}-header`]:{padding:e.modalHeaderPadding,borderBottom:`${e.modalHeaderBorderWidth}px ${e.modalHeaderBorderStyle} ${e.modalHeaderBorderColorSplit}`,marginBottom:0},[`${a}-body`]:{padding:e.modalBodyPadding},[`${a}-footer`]:{padding:`${e.modalFooterPaddingVertical}px ${e.modalFooterPaddingHorizontal}px`,borderTop:`${e.modalFooterBorderWidth}px ${e.modalFooterBorderStyle} ${e.modalFooterBorderColorSplit}`,borderRadius:`0 0 ${e.borderRadiusLG}px ${e.borderRadiusLG}px`,marginTop:0}},[o]:{[`${n}-modal-body`]:{padding:`${e.padding*2}px ${e.padding*2}px ${e.paddingLG}px`},[`${o}-body`]:{[`> ${e.iconCls}`]:{marginInlineEnd:e.margin,[`+ ${o}-title + ${o}-content`]:{marginInlineStart:e.modalConfirmIconSize+e.margin}}},[`${o}-btns`]:{marginTop:e.marginLG}}}};var qy=dr("Modal",e=>{const a=e.padding,n=e.fontSizeHeading5,o=e.lineHeightHeading5,_=Po(e,{modalBodyPadding:e.paddingLG,modalHeaderBg:e.colorBgElevated,modalHeaderPadding:`${a}px ${e.paddingLG}px`,modalHeaderBorderWidth:e.lineWidth,modalHeaderBorderStyle:e.lineType,modalHeaderTitleLineHeight:o,modalHeaderTitleFontSize:n,modalHeaderBorderColorSplit:e.colorSplit,modalHeaderCloseSize:o*n+a*2,modalContentBg:e.colorBgElevated,modalHeadingColor:e.colorTextHeading,modalCloseColor:e.colorTextDescription,modalFooterBg:"transparent",modalFooterBorderColorSplit:e.colorSplit,modalFooterBorderStyle:e.lineType,modalFooterPaddingVertical:e.paddingXS,modalFooterPaddingHorizontal:e.padding,modalFooterBorderWidth:e.lineWidth,modalConfirmTitleFontSize:e.fontSizeLG,modalIconHoverColor:e.colorIconHover,modalConfirmIconSize:e.fontSize*e.lineHeight,modalCloseBtnSize:e.controlHeightLG*.55});return[Nx(_),Mx(_),Fx(_),Ax(_),e.wireframe&&Lx(_),By(_,"zoom")]}),Ux=function(e,a){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&a.indexOf(o)<0&&(n[o]=e[o]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var _=0,o=Object.getOwnPropertySymbols(e);_{const{okText:a,okType:n="primary",cancelText:o,confirmLoading:_,onOk:l,onCancel:h,okButtonProps:k,cancelButtonProps:f}=e,[b]=Ek("Modal",me());return g.createElement(g.Fragment,null,g.createElement(gu,Object.assign({onClick:h},f),o||(b==null?void 0:b.cancelText)),g.createElement(gu,Object.assign({},fy(n),{loading:_,onClick:l},k),a||(b==null?void 0:b.okText)))};var $x=e=>{const{prefixCls:a,className:n,closeIcon:o,closable:_,type:l,title:h,children:k}=e,f=Ux(e,["prefixCls","className","closeIcon","closable","type","title","children"]),{getPrefixCls:b}=g.useContext(Ha),v=b(),w=a||b("modal"),[,z]=qy(w),S=`${w}-confirm`;let E={};return l?E={closable:_!=null?_:!1,title:"",footer:"",children:g.createElement(Ky,Object.assign({},e,{confirmPrefixCls:S,rootPrefixCls:v,content:k}))}:E={closable:_!=null?_:!0,title:h,footer:e.footer===void 0?g.createElement(Xy,Object.assign({},e)):e.footer,children:k},g.createElement(Ny,Object.assign({prefixCls:w,className:ka()(z,`${w}-pure-panel`,l&&S,l&&`${S}-${l}`,n)},f,{closeIcon:Gy(w,o),closable:_},E))},Hx=function(e,a){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&a.indexOf(o)<0&&(n[o]=e[o]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var _=0,o=Object.getOwnPropertySymbols(e);_{Gk={x:e.pageX,y:e.pageY},setTimeout(()=>{Gk=null},100)};Uy()&&document.documentElement.addEventListener("click",Wx,!0);var Yy=e=>{var a;const{getPopupContainer:n,getPrefixCls:o,direction:_}=g.useContext(Ha),l=ue=>{const{onCancel:ze}=e;ze==null||ze(ue)},h=ue=>{const{onOk:ze}=e;ze==null||ze(ue)},{prefixCls:k,className:f,rootClassName:b,open:v,wrapClassName:w,centered:z,getContainer:S,closeIcon:E,focusTriggerAfterClose:O=!0,visible:P,width:T=520,footer:A}=e,L=Hx(e,["prefixCls","className","rootClassName","open","wrapClassName","centered","getContainer","closeIcon","focusTriggerAfterClose","visible","width","footer"]),H=o("modal",k),K=o(),[ae,ie]=qy(H),se=ka()(w,{[`${H}-centered`]:!!z,[`${H}-wrap-rtl`]:_==="rtl"}),he=A===void 0?g.createElement(Xy,Object.assign({},e,{onOk:h,onCancel:l})):A;return ae(g.createElement(dz,null,g.createElement(fx,{status:!0,override:!0},g.createElement(px,Object.assign({width:T},L,{getContainer:S===void 0?n:S,prefixCls:H,rootClassName:ka()(ie,b),wrapClassName:se,footer:he,visible:v!=null?v:P,mousePosition:(a=L.mousePosition)!==null&&a!==void 0?a:Gk,onClose:l,closeIcon:Gy(H,E),focusTriggerAfterClose:O,transitionName:$m(K,"zoom",e.transitionName),maskTransitionName:$m(K,"fade",e.maskTransitionName),className:ka()(ie,f)})))))};function Ky(e){const{icon:a,onCancel:n,onOk:o,close:_,okText:l,okButtonProps:h,cancelText:k,cancelButtonProps:f,confirmPrefixCls:b,rootPrefixCls:v,type:w,okCancel:z,footer:S,locale:E}=e;let O=a;if(!a&&a!==null)switch(w){case"info":O=g.createElement(vd,null);break;case"success":O=g.createElement(bd,null);break;case"error":O=g.createElement(yd,null);break;default:O=g.createElement(fd,null)}const P=e.okType||"primary",T=z!=null?z:w==="confirm",A=e.autoFocusButton===null?!1:e.autoFocusButton||"ok",[L]=Ek("Modal"),H=E||L,K=T&&g.createElement(by,{actionFn:n,close:_,autoFocus:A==="cancel",buttonProps:f,prefixCls:`${v}-btn`},k||(H==null?void 0:H.cancelText));return g.createElement("div",{className:`${b}-body-wrapper`},g.createElement("div",{className:`${b}-body`},O,e.title===void 0?null:g.createElement("span",{className:`${b}-title`},e.title),g.createElement("div",{className:`${b}-content`},e.content)),S===void 0?g.createElement("div",{className:`${b}-btns`},K,g.createElement(by,{type:P,actionFn:o,close:_,autoFocus:A==="ok",buttonProps:h,prefixCls:`${v}-btn`},l||(T?H==null?void 0:H.okText:H==null?void 0:H.justOkText))):S)}var Qy=e=>{const{close:a,zIndex:n,afterClose:o,visible:_,open:l,keyboard:h,centered:k,getContainer:f,maskStyle:b,direction:v,prefixCls:w,wrapClassName:z,rootPrefixCls:S,iconPrefixCls:E,bodyStyle:O,closable:P=!1,closeIcon:T,modalRender:A,focusTriggerAfterClose:L}=e,H=`${w}-confirm`,K=e.width||416,ae=e.style||{},ie=e.mask===void 0?!0:e.mask,se=e.maskClosable===void 0?!1:e.maskClosable,he=ka()(H,`${H}-${e.type}`,{[`${H}-rtl`]:v==="rtl"},e.className);return g.createElement(dd,{prefixCls:S,iconPrefixCls:E,direction:v},g.createElement(Yy,{prefixCls:w,className:he,wrapClassName:ka()({[`${H}-centered`]:!!e.centered},z),onCancel:()=>a==null?void 0:a({triggerCancel:!0}),open:l,title:"",footer:null,transitionName:$m(S,"zoom",e.transitionName),maskTransitionName:$m(S,"fade",e.maskTransitionName),mask:ie,maskClosable:se,maskStyle:b,style:ae,bodyStyle:O,width:K,zIndex:n,afterClose:o,keyboard:h,centered:k,getContainer:f,closable:P,closeIcon:T,modalRender:A,focusTriggerAfterClose:L},g.createElement(Ky,Object.assign({},e,{confirmPrefixCls:H}))))},ku=[],Bx=function(e,a){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&a.indexOf(o)<0&&(n[o]=e[o]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var _=0,o=Object.getOwnPropertySymbols(e);_z&&z.triggerCancel);e.onCancel&&w&&e.onCancel.apply(e,[()=>{}].concat(xa(b.slice(1))));for(let z=0;z{const S=me(),{getPrefixCls:E,getIconPrefixCls:O}=Am(),P=E(void 0,Vx()),T=w||`${P}-modal`,A=O();W_(g.createElement(Qy,Object.assign({},z,{prefixCls:T,rootPrefixCls:P,iconPrefixCls:A,okText:b,locale:S,cancelText:v||S.cancelText})),a)})}function h(){for(var f=arguments.length,b=new Array(f),v=0;v{typeof e.afterClose=="function"&&e.afterClose(),_.apply(this,b)}}),n.visible&&delete n.visible,l(n)}function k(f){typeof f=="function"?n=f(n):n=Object.assign(Object.assign({},n),f),l(n)}return l(n),ku.push(h),{destroy:h,update:k}}function Zy(e){return Object.assign(Object.assign({},e),{type:"warning"})}function eb(e){return Object.assign(Object.assign({},e),{type:"info"})}function ab(e){return Object.assign(Object.assign({},e),{type:"success"})}function ib(e){return Object.assign(Object.assign({},e),{type:"error"})}function nb(e){return Object.assign(Object.assign({},e),{type:"confirm"})}function qx(e){let{rootPrefixCls:a}=e;Jy=a}function Gx(){const[e,a]=g.useState([]),n=g.useCallback(o=>(a(_=>[].concat(xa(_),[o])),()=>{a(_=>_.filter(l=>l!==o))}),[]);return[e,n]}const Xx=(e,a)=>{let{afterClose:n,config:o}=e;var _;const[l,h]=g.useState(!0),[k,f]=g.useState(o),{direction:b,getPrefixCls:v}=g.useContext(Ha),w=v("modal"),z=v(),S=()=>{var T;n(),(T=k.afterClose)===null||T===void 0||T.call(k)},E=function(){h(!1);for(var T=arguments.length,A=new Array(T),L=0;LK&&K.triggerCancel);k.onCancel&&H&&k.onCancel.apply(k,[()=>{}].concat(xa(A.slice(1))))};g.useImperativeHandle(a,()=>({destroy:E,update:T=>{f(A=>Object.assign(Object.assign({},A),T))}}));const O=(_=k.okCancel)!==null&&_!==void 0?_:k.type==="confirm",[P]=Ek("Modal",C.Modal);return g.createElement(Qy,Object.assign({prefixCls:w,rootPrefixCls:z},k,{close:E,open:l,afterClose:S,okText:k.okText||(O?P==null?void 0:P.okText:P==null?void 0:P.justOkText),direction:k.direction||b,cancelText:k.cancelText||(P==null?void 0:P.cancelText)}))};var Yx=g.forwardRef(Xx);let ob=0;const Kx=g.memo(g.forwardRef((e,a)=>{const[n,o]=Gx();return g.useImperativeHandle(a,()=>({patchElement:o}),[]),g.createElement(g.Fragment,null,n)}));function Qx(){const e=g.useRef(null),[a,n]=g.useState([]);g.useEffect(()=>{a.length&&(xa(a).forEach(h=>{h()}),n([]))},[a]);const o=g.useCallback(l=>function(k){var f;ob+=1;const b=g.createRef();let v;const w=g.createElement(Yx,{key:`modal-${ob}`,config:l(k),ref:b,afterClose:()=>{v==null||v()}});return v=(f=e.current)===null||f===void 0?void 0:f.patchElement(w),v&&ku.push(v),{destroy:()=>{function z(){var S;(S=b.current)===null||S===void 0||S.destroy()}b.current?z():n(S=>[].concat(xa(S),[z]))},update:z=>{function S(){var E;(E=b.current)===null||E===void 0||E.update(z)}b.current?S():n(E=>[].concat(xa(E),[S]))}}},[]);return[g.useMemo(()=>({info:o(eb),success:o(ab),error:o(ib),warning:o(Zy),confirm:o(nb)}),[]),g.createElement(Kx,{key:"modal-holder",ref:e})]}var Jx=Qx;function rb(e){return Hm(Zy(e))}const kr=Yy;kr.useModal=Jx,kr.info=function(a){return Hm(eb(a))},kr.success=function(a){return Hm(ab(a))},kr.error=function(a){return Hm(ib(a))},kr.warning=rb,kr.warn=rb,kr.confirm=function(a){return Hm(nb(a))},kr.destroyAll=function(){for(;ku.length;){const a=ku.pop();a&&a()}},kr.config=qx,kr._InternalPanelDoNotUseOrYouWillBeFired=$x;var Zx=kr,Ul=function(a){return typeof window!="undefined"?matchMedia&&matchMedia("(prefers-color-scheme: ".concat(a,")")):{matches:!1}},Xk,tb=(0,g.createContext)({appearance:"light",isDarkMode:!1,themeMode:"light",browserPrefers:(Xk=Ul("dark"))!==null&&Xk!==void 0&&Xk.matches?"dark":"light"}),Md=function(){return(0,g.useContext)(tb)};function _b(e,a){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);a&&(o=o.filter(function(_){return Object.getOwnPropertyDescriptor(e,_).enumerable})),n.push.apply(n,o)}return n}function sb(e){for(var a=1;a!n.has(o))}return Qk(e,(n,o,_)=>!a(n,o,_))}var bC=function(a){return a==null},vC=function(a){return encodeURIComponent(a).replace(/[!'()*]/g,function(n){return"%".concat(n.charCodeAt(0).toString(16).toUpperCase())})},Jk=Symbol("encodeFragmentIdentifier");function wC(e){switch(e.arrayFormat){case"index":return function(n){return function(o,_){var l=o.length;return _===void 0||e.skipNull&&_===null||e.skipEmptyString&&_===""?o:_===null?[].concat(ho(o),[[an(n,e),"[",l,"]"].join("")]):[].concat(ho(o),[[an(n,e),"[",an(l,e),"]=",an(_,e)].join("")])}};case"bracket":return function(n){return function(o,_){return _===void 0||e.skipNull&&_===null||e.skipEmptyString&&_===""?o:_===null?[].concat(ho(o),[[an(n,e),"[]"].join("")]):[].concat(ho(o),[[an(n,e),"[]=",an(_,e)].join("")])}};case"colon-list-separator":return function(n){return function(o,_){return _===void 0||e.skipNull&&_===null||e.skipEmptyString&&_===""?o:_===null?[].concat(ho(o),[[an(n,e),":list="].join("")]):[].concat(ho(o),[[an(n,e),":list=",an(_,e)].join("")])}};case"comma":case"separator":case"bracket-separator":{var a=e.arrayFormat==="bracket-separator"?"[]=":"=";return function(n){return function(o,_){return _===void 0||e.skipNull&&_===null||e.skipEmptyString&&_===""?o:(_=_===null?"":_,o.length===0?[[an(n,e),a,an(_,e)].join("")]:[[o,an(_,e)].join(e.arrayFormatSeparator)])}}}default:return function(n){return function(o,_){return _===void 0||e.skipNull&&_===null||e.skipEmptyString&&_===""?o:_===null?[].concat(ho(o),[an(n,e)]):[].concat(ho(o),[[an(n,e),"=",an(_,e)].join("")])}}}}function jC(e){var a;switch(e.arrayFormat){case"index":return function(n,o,_){if(a=/\[(\d*)]$/.exec(n),n=n.replace(/\[\d*]$/,""),!a){_[n]=o;return}_[n]===void 0&&(_[n]={}),_[n][a[1]]=o};case"bracket":return function(n,o,_){if(a=/(\[])$/.exec(n),n=n.replace(/\[]$/,""),!a){_[n]=o;return}if(_[n]===void 0){_[n]=[o];return}_[n]=[].concat(ho(_[n]),[o])};case"colon-list-separator":return function(n,o,_){if(a=/(:list)$/.exec(n),n=n.replace(/:list$/,""),!a){_[n]=o;return}if(_[n]===void 0){_[n]=[o];return}_[n]=[].concat(ho(_[n]),[o])};case"comma":case"separator":return function(n,o,_){var l=typeof o=="string"&&o.includes(e.arrayFormatSeparator),h=typeof o=="string"&&!l&&Gt(o,e).includes(e.arrayFormatSeparator);o=h?Gt(o,e):o;var k=l||h?o.split(e.arrayFormatSeparator).map(function(f){return Gt(f,e)}):o===null?o:Gt(o,e);_[n]=k};case"bracket-separator":return function(n,o,_){var l=/(\[])$/.test(n);if(n=n.replace(/\[]$/,""),!l){_[n]=o&&Gt(o,e);return}var h=o===null?[]:o.split(e.arrayFormatSeparator).map(function(k){return Gt(k,e)});if(_[n]===void 0){_[n]=h;return}_[n]=[].concat(ho(_[n]),ho(h))};default:return function(n,o,_){if(_[n]===void 0){_[n]=o;return}_[n]=[].concat(ho([_[n]].flat()),[o])}}}function bb(e){if(typeof e!="string"||e.length!==1)throw new TypeError("arrayFormatSeparator must be single character string")}function an(e,a){return a.encode?a.strict?vC(e):encodeURIComponent(e):e}function Gt(e,a){return a.decode?yC(e):e}function vb(e){return Array.isArray(e)?e.sort():Yk(e)==="object"?vb(Object.keys(e)).sort(function(a,n){return Number(a)-Number(n)}).map(function(a){return e[a]}):e}function wb(e){var a=e.indexOf("#");return a!==-1&&(e=e.slice(0,a)),e}function zC(e){var a="",n=e.indexOf("#");return n!==-1&&(a=e.slice(n)),a}function jb(e,a){return a.parseNumbers&&!Number.isNaN(Number(e))&&typeof e=="string"&&e.trim()!==""?e=Number(e):a.parseBooleans&&e!==null&&(e.toLowerCase()==="true"||e.toLowerCase()==="false")&&(e=e.toLowerCase()==="true"),e}function Zk(e){e=wb(e);var a=e.indexOf("?");return a===-1?"":e.slice(a+1)}function ep(e,a){a=qt({decode:!0,sort:!0,arrayFormat:"none",arrayFormatSeparator:",",parseNumbers:!1,parseBooleans:!1},a),bb(a.arrayFormatSeparator);var n=jC(a),o=Object.create(null);if(typeof e!="string"||(e=e.trim().replace(/^[?#&]/,""),!e))return o;var _=we(e.split("&")),l;try{for(_.s();!(l=_.n()).done;){var h=l.value;if(h!==""){var k=a.decode?h.replace(/\+/g," "):h,f=yb(k,"="),b=$(f,2),v=b[0],w=b[1];v===void 0&&(v=k),w=w===void 0?null:["comma","separator","bracket-separator"].includes(a.arrayFormat)?w:Gt(w,a),n(Gt(v,a),w,o)}}}catch(ae){_.e(ae)}finally{_.f()}for(var z=0,S=Object.entries(o);z0}).join("&")}function xb(e,a){var n,o,_;a=qt({decode:!0},a);var l=yb(e,"#"),h=$(l,2),k=h[0],f=h[1];return k===void 0&&(k=e),qt({url:(n=(o=k)===null||o===void 0||(_=o.split("?"))===null||_===void 0?void 0:_[0])!==null&&n!==void 0?n:"",query:ep(Zk(e),a)},a&&a.parseFragmentIdentifier&&f?{fragmentIdentifier:Gt(f,a)}:{})}function Cb(e,a){a=qt(Ce({encode:!0,strict:!0},Jk,!0),a);var n=wb(e.url).split("?")[0]||"",o=Zk(e.url),_=qt(qt({},ep(o,{sort:!1})),e.query),l=zb(_,a);l&&(l="?".concat(l));var h=zC(e.url);if(e.fragmentIdentifier){var k=new URL(n);k.hash=e.fragmentIdentifier,h=a[Jk]?k.hash:"#".concat(e.fragmentIdentifier)}return"".concat(n).concat(l).concat(h)}function Sb(e,a,n){n=qt(Ce({parseFragmentIdentifier:!0},Jk,!1),n);var o=xb(e,n),_=o.url,l=o.query,h=o.fragmentIdentifier;return Cb({url:_,query:Qk(l,a),fragmentIdentifier:h},n)}function xC(e,a,n){var o=Array.isArray(a)?function(_){return!a.includes(_)}:function(_,l){return!a(_,l)};return Sb(e,o,n)}var ap=F,CC=ha(6774),SC=ha.n(CC);function PC(e){function a(Ge,$e,ra,Xe,Se){for(var pa=0,Ze=0,Ia=0,Ta=0,da,Ca,Ra=0,ai=0,Ma,mi=Ma=da=0,va=0,Oa=0,qa=0,Ga=0,ln=ra.length,Wi=ln-1,Li,Ua="",ii="",Kn="",on="",Bi;vada)&&(Ga=(Ua=Ua.replace(" ",":")).length),0Xe&&(Xe=($e=$e.trim()).charCodeAt(0)),Xe){case 38:return $e.replace(T,"$1"+Ge.trim());case 58:return Ge.trim()+$e.replace(T,"$1"+Ge.trim());default:if(0<1*ra&&0<$e.indexOf("\f"))return $e.replace(T,(Ge.charCodeAt(0)===58?"":"$1")+Ge.trim())}return Ge+$e}function _(Ge,$e,ra,Xe){var Se=Ge+";",pa=2*$e+3*ra+4*Xe;if(pa===944){Ge=Se.indexOf(":",9)+1;var Ze=Se.substring(Ge,Se.length-1).trim();return Ze=Se.substring(0,Ge).trim()+Ze+";",be===1||be===2&&l(Ze,1)?"-webkit-"+Ze+Ze:Ze}if(be===0||be===2&&!l(Se,1))return Se;switch(pa){case 1015:return Se.charCodeAt(10)===97?"-webkit-"+Se+Se:Se;case 951:return Se.charCodeAt(3)===116?"-webkit-"+Se+Se:Se;case 963:return Se.charCodeAt(5)===110?"-webkit-"+Se+Se:Se;case 1009:if(Se.charCodeAt(4)!==100)break;case 969:case 942:return"-webkit-"+Se+Se;case 978:return"-webkit-"+Se+"-moz-"+Se+Se;case 1019:case 983:return"-webkit-"+Se+"-moz-"+Se+"-ms-"+Se+Se;case 883:if(Se.charCodeAt(8)===45)return"-webkit-"+Se+Se;if(0Ze.charCodeAt(8))break;case 115:Se=Se.replace(Ze,"-webkit-"+Ze)+";"+Se;break;case 207:case 102:Se=Se.replace(Ze,"-webkit-"+(102ra.charCodeAt(0)&&(ra=ra.trim()),ya=ra,ra=[ya],01?a-1:0),o=1;o0?" Args: "+n.join(", "):""))}var RC=function(){function e(n){this.groupSizes=new Uint32Array(512),this.length=512,this.tag=n}var a=e.prototype;return a.indexOfGroup=function(n){for(var o=0,_=0;_=this.groupSizes.length){for(var _=this.groupSizes,l=_.length,h=l;n>=h;)(h<<=1)<0&&yr(16,""+n);this.groupSizes=new Uint32Array(h),this.groupSizes.set(_),this.length=h;for(var k=l;k=this.length||this.groupSizes[n]===0)return o;for(var _=this.groupSizes[n],l=this.indexOfGroup(n),h=l+_,k=l;k=Wm&&(Wm=a+1),Ud.set(e,a),$d.set(a,e)},MC="style["+ns+'][data-styled-version="5.3.9"]',FC=new RegExp("^"+ns+'\\.g(\\d+)\\[id="([\\w\\d-]+)"\\].*?"([^"]*)'),LC=function(e,a,n){for(var o,_=n.split(","),l=0,h=_.length;l=0;b--){var v=f[b];if(v&&v.nodeType===1&&v.hasAttribute(ns))return v}}(n),l=_!==void 0?_.nextSibling:null;o.setAttribute(ns,"active"),o.setAttribute("data-styled-version","5.3.9");var h=tp();return h&&o.setAttribute("nonce",h),n.insertBefore(o,l),o},$C=function(){function e(n){var o=this.element=Ib(n);o.appendChild(document.createTextNode("")),this.sheet=function(_){if(_.sheet)return _.sheet;for(var l=document.styleSheets,h=0,k=l.length;h=0){var _=document.createTextNode(o),l=this.nodes[n];return this.element.insertBefore(_,l||null),this.length++,!0}return!1},a.deleteRule=function(n){this.element.removeChild(this.nodes[n]),this.length--},a.getRule=function(n){return n0&&(w+=z+",")}),l+=""+b+v+'{content:"'+w+`"}/*!sc*/ -`}}}return l}(this)},e}(),BC=/(a)(d)/gi,Tb=function(e){return String.fromCharCode(e+(e>25?39:97))};function _p(e){var a,n="";for(a=Math.abs(e);a>52;a=a/52|0)n=Tb(a%52)+n;return(Tb(a%52)+n).replace(BC,"$1-$2")}var Wl=function(e,a){for(var n=a.length;n;)e=33*e^a.charCodeAt(--n);return e},Rb=function(e){return Wl(5381,e)};function Ab(e){for(var a=0;a>>0);if(!n.hasNameForId(_,k)){var f=o(h,"."+k,void 0,_);n.insertRules(_,k,f)}l.push(k),this.staticRulesId=k}else{for(var b=this.rules.length,v=Wl(this.baseHash,o.hash),w="",z=0;z>>0);if(!n.hasNameForId(_,P)){var T=o(w,"."+P,void 0,_);n.insertRules(_,P,T)}l.push(P)}}return l.join(" ")},e}(),XC=/^\s*\/\/.*$/gm,YC=[":","[",".","#"];function Nb(e){var a,n,o,_,l=e===void 0?is:e,h=l.options,k=h===void 0?is:h,f=l.plugins,b=f===void 0?Ld:f,v=new EC(k),w=[],z=function(O){function P(T){if(T)try{O(T+"}")}catch(A){}}return function(T,A,L,H,K,ae,ie,se,he,ue){switch(T){case 1:if(he===0&&A.charCodeAt(0)===64)return O(A+";"),"";break;case 2:if(se===0)return A+"/*|*/";break;case 3:switch(se){case 102:case 112:return O(L[0]+A),"";default:return A+(ue===0?"/*|*/":"")}case-2:A.split("/*|*/}").forEach(P)}}}(function(O){w.push(O)}),S=function(O,P,T){return P===0&&YC.indexOf(T[n.length])!==-1||T.match(_)?O:"."+a};function E(O,P,T,A){A===void 0&&(A="&");var L=O.replace(XC,""),H=P&&T?T+" "+P+" { "+L+" }":L;return a=A,n=P,o=new RegExp("\\"+n+"\\b","g"),_=new RegExp("(\\"+n+"\\b){2,}"),v(T||!P?"":P,H)}return v.use([].concat(b,[function(O,P,T){O===2&&T.length&&T[0].lastIndexOf(n)>0&&(T[0]=T[0].replace(o,S))},z,function(O){if(O===-2){var P=w;return w=[],P}}])),E.hash=b.length?b.reduce(function(O,P){return P.name||yr(15),Wl(O,P.name)},5381).toString():"",E}var sp=g.createContext(),P2=sp.Consumer,up=g.createContext(),Mb=(up.Consumer,new Hl),lp=Nb();function cp(){return(0,g.useContext)(sp)||Mb}function Fb(){return(0,g.useContext)(up)||lp}function KC(e){var a=(0,g.useState)(e.stylisPlugins),n=a[0],o=a[1],_=cp(),l=(0,g.useMemo)(function(){var k=_;return e.sheet?k=e.sheet:e.target&&(k=k.reconstructWithOptions({target:e.target},!1)),e.disableCSSOMInjection&&(k=k.reconstructWithOptions({useCSSOMInjection:!1})),k},[e.disableCSSOMInjection,e.sheet,e.target]),h=(0,g.useMemo)(function(){return Nb({options:{prefix:!e.disableVendorPrefixes},plugins:n})},[e.disableVendorPrefixes,n]);return(0,g.useEffect)(function(){SC()(n,e.stylisPlugins)||o(e.stylisPlugins)},[e.stylisPlugins]),g.createElement(sp.Provider,{value:l},g.createElement(up.Provider,{value:h},e.children))}var Lb=function(){function e(a,n){var o=this;this.inject=function(_,l){l===void 0&&(l=lp);var h=o.name+l.hash;_.hasNameForId(o.id,h)||_.insertRules(o.id,h,l(o.rules,h,"@keyframes"))},this.toString=function(){return yr(12,String(o.name))},this.name=a,this.id="sc-keyframes-"+a,this.rules=n}return e.prototype.getName=function(a){return a===void 0&&(a=lp),this.name+a.hash},e}(),QC=/([A-Z])/,JC=/([A-Z])/g,ZC=/^ms-/,e1=function(e){return"-"+e.toLowerCase()};function Ub(e){return QC.test(e)?e.replace(JC,e1).replace(ZC,"-ms-"):e}var $b=function(e){return e==null||e===!1||e===""};function pu(e,a,n,o){if(Array.isArray(e)){for(var _,l=[],h=0,k=e.length;h1?a-1:0),o=1;o?@[\\\]^`{|}~-]+/g,i1=/(^-|-$)/g;function dp(e){return e.replace(a1,"-").replace(i1,"")}var gp=function(e){return _p(Rb(e)>>>0)};function Wd(e){return typeof e=="string"&&!0}var kp=function(e){return typeof e=="function"||typeof e=="object"&&e!==null&&!Array.isArray(e)},n1=function(e){return e!=="__proto__"&&e!=="constructor"&&e!=="prototype"};function o1(e,a,n){var o=e[n];kp(a)&&kp(o)?Wb(o,a):e[n]=a}function Wb(e){for(var a=arguments.length,n=new Array(a>1?a-1:0),o=1;o=0||(ue[se]=ae[se]);return ue}(a,["componentId"]),K=L&&L+"-"+(Wd(A)?A:dp(np(A)));return Vb(A,Do({},H,{attrs:z,componentId:K}),n)},Object.defineProperty(E,"defaultProps",{get:function(){return this._foldedDefaultProps},set:function(A){this._foldedDefaultProps=o?Wb({},e.defaultProps,A):A}}),Object.defineProperty(E,"toString",{value:function(){return"."+E.styledComponentId}}),_&&zc()(E,e,{attrs:!0,componentStyle:!0,displayName:!0,foldedComponentIds:!0,shouldForwardProp:!0,styledComponentId:!0,target:!0,withComponent:!0}),E}var fp=function(e){return function a(n,o,_){if(_===void 0&&(_=is),!(0,B_.isValidElementType)(o))return yr(1,String(o));var l=function(){return n(o,_,mp.apply(void 0,arguments))};return l.withConfig=function(h){return a(n,o,Do({},_,{},h))},l.attrs=function(h){return a(n,o,Do({},_,{attrs:Array.prototype.concat(_.attrs,h).filter(Boolean)}))},l}(Vb,e)};["a","abbr","address","area","article","aside","audio","b","base","bdi","bdo","big","blockquote","body","br","button","canvas","caption","cite","code","col","colgroup","data","datalist","dd","del","details","dfn","dialog","div","dl","dt","em","embed","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","iframe","img","input","ins","kbd","keygen","label","legend","li","link","main","map","mark","marquee","menu","menuitem","meta","meter","nav","noscript","object","ol","optgroup","option","output","p","param","picture","pre","progress","q","rp","rt","ruby","s","samp","script","section","select","small","source","span","strong","style","sub","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","title","tr","track","u","ul","var","video","wbr","circle","clipPath","defs","ellipse","foreignObject","g","image","line","linearGradient","marker","mask","path","pattern","polygon","polyline","radialGradient","rect","stop","svg","text","textPath","tspan"].forEach(function(e){fp[e]=fp(e)});var r1=function(){function e(n,o){this.rules=n,this.componentId=o,this.isStatic=Ab(n),Hl.registerId(this.componentId+1)}var a=e.prototype;return a.createStyles=function(n,o,_,l){var h=l(pu(this.rules,o,_,l).join(""),""),k=this.componentId+n;_.insertRules(k,k,h)},a.removeStyles=function(n,o){o.clearRules(this.componentId+n)},a.renderStyles=function(n,o,_,l){n>2&&Hl.registerId(this.componentId+n),this.removeStyles(n,_),this.createStyles(n,o,_,l)},e}();function R2(e){for(var a=arguments.length,n=new Array(a>1?a-1:0),o=1;o1?a-1:0),o=1;o"+o+""},this.getStyleTags=function(){return n.sealed?yr(2):n._emitSheetCSS()},this.getStyleElement=function(){var o;if(n.sealed)return yr(2);var _=((o={})[ns]="",o["data-styled-version"]="5.3.9",o.dangerouslySetInnerHTML={__html:n.instance.toString()},o),l=tp();return l&&(_.nonce=l),[g.createElement("style",Do({},_,{key:"sc-0-0"}))]},this.seal=function(){n.sealed=!0},this.instance=new Hl({isServer:!0}),this.sealed=!1}var a=e.prototype;return a.collectStyles=function(n){return this.sealed?yr(2):g.createElement(KC,{sheet:this.instance},n)},a.interleaveWithNodeStream=function(n){return yr(3)},e}(),M2=function(e){var a=r.forwardRef(function(n,o){var _=s(os),l=e.defaultProps,h=hp(n,_,l);return r.createElement(e,Do({},n,{theme:h,ref:o}))});return y(a,e),a.displayName="WithTheme("+np(e)+")",a},F2=function(){return s(os)},L2={StyleSheet:Hl,masterSheet:Mb},An=fp,t1=ha(9400),ki=ha.n(t1),_1={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"},s1=_1,Bb=function(a,n){return g.createElement(Yn,Ie(Ie({},a),{},{ref:n,icon:s1}))};Bb.displayName="DownOutlined";var u1=g.forwardRef(Bb),l1={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"},c1=l1,qb=function(a,n){return g.createElement(Yn,Ie(Ie({},a),{},{ref:n,icon:c1}))};qb.displayName="UpOutlined";var m1=g.forwardRef(qb),h1={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M724 218.3V141c0-6.7-7.7-10.4-12.9-6.3L260.3 486.8a31.86 31.86 0 000 50.3l450.8 352.1c5.3 4.1 12.9.4 12.9-6.3v-77.3c0-4.9-2.3-9.6-6.1-12.6l-360-281 360-281.1c3.8-3 6.1-7.7 6.1-12.6z"}}]},name:"left",theme:"outlined"},d1=h1,Gb=function(a,n){return g.createElement(Yn,Ie(Ie({},a),{},{ref:n,icon:d1}))};Gb.displayName="LeftOutlined";var g1=g.forwardRef(Gb),k1={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M765.7 486.8L314.9 134.7A7.97 7.97 0 00302 141v77.3c0 4.9 2.3 9.6 6.1 12.6l360 281.1-360 281.1c-3.9 3-6.1 7.7-6.1 12.6V883c0 6.7 7.7 10.4 12.9 6.3l450.8-352.1a31.96 31.96 0 000-50.4z"}}]},name:"right",theme:"outlined"},p1=k1,Xb=function(a,n){return g.createElement(Yn,Ie(Ie({},a),{},{ref:n,icon:p1}))};Xb.displayName="RightOutlined";var f1=g.forwardRef(Xb),y1=function(){var e=function(a,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(o,_){o.__proto__=_}||function(o,_){for(var l in _)Object.prototype.hasOwnProperty.call(_,l)&&(o[l]=_[l])},e(a,n)};return function(a,n){e(a,n);function o(){this.constructor=a}a.prototype=n===null?Object.create(n):(o.prototype=n.prototype,new o)}}(),nn=function(){return nn=Object.assign||function(e){for(var a,n=1,o=arguments.length;n=0;b--){var v=f[b];if(v&&v.nodeType===1&&v.hasAttribute(ns))return v}}(n),l=_!==void 0?_.nextSibling:null;o.setAttribute(ns,"active"),o.setAttribute("data-styled-version","5.3.9");var h=tp();return h&&o.setAttribute("nonce",h),n.insertBefore(o,l),o},$C=function(){function e(n){var o=this.element=Ib(n);o.appendChild(document.createTextNode("")),this.sheet=function(_){if(_.sheet)return _.sheet;for(var l=document.styleSheets,h=0,k=l.length;h=0){var _=document.createTextNode(o),l=this.nodes[n];return this.element.insertBefore(_,l||null),this.length++,!0}return!1},a.deleteRule=function(n){this.element.removeChild(this.nodes[n]),this.length--},a.getRule=function(n){return n0&&(w+=z+",")}),l+=""+b+v+'{content:"'+w+`"}/*!sc*/ +`}}}return l}(this)},e}(),VC=/(a)(d)/gi,Tb=function(e){return String.fromCharCode(e+(e>25?39:97))};function _p(e){var a,n="";for(a=Math.abs(e);a>52;a=a/52|0)n=Tb(a%52)+n;return(Tb(a%52)+n).replace(VC,"$1-$2")}var Wl=function(e,a){for(var n=a.length;n;)e=33*e^a.charCodeAt(--n);return e},Rb=function(e){return Wl(5381,e)};function Ab(e){for(var a=0;a>>0);if(!n.hasNameForId(_,k)){var f=o(h,"."+k,void 0,_);n.insertRules(_,k,f)}l.push(k),this.staticRulesId=k}else{for(var b=this.rules.length,v=Wl(this.baseHash,o.hash),w="",z=0;z>>0);if(!n.hasNameForId(_,P)){var T=o(w,"."+P,void 0,_);n.insertRules(_,P,T)}l.push(P)}}return l.join(" ")},e}(),XC=/^\s*\/\/.*$/gm,YC=[":","[",".","#"];function Nb(e){var a,n,o,_,l=e===void 0?is:e,h=l.options,k=h===void 0?is:h,f=l.plugins,b=f===void 0?Ld:f,v=new EC(k),w=[],z=function(O){function P(T){if(T)try{O(T+"}")}catch(A){}}return function(T,A,L,H,K,ae,ie,se,he,ue){switch(T){case 1:if(he===0&&A.charCodeAt(0)===64)return O(A+";"),"";break;case 2:if(se===0)return A+"/*|*/";break;case 3:switch(se){case 102:case 112:return O(L[0]+A),"";default:return A+(ue===0?"/*|*/":"")}case-2:A.split("/*|*/}").forEach(P)}}}(function(O){w.push(O)}),S=function(O,P,T){return P===0&&YC.indexOf(T[n.length])!==-1||T.match(_)?O:"."+a};function E(O,P,T,A){A===void 0&&(A="&");var L=O.replace(XC,""),H=P&&T?T+" "+P+" { "+L+" }":L;return a=A,n=P,o=new RegExp("\\"+n+"\\b","g"),_=new RegExp("(\\"+n+"\\b){2,}"),v(T||!P?"":P,H)}return v.use([].concat(b,[function(O,P,T){O===2&&T.length&&T[0].lastIndexOf(n)>0&&(T[0]=T[0].replace(o,S))},z,function(O){if(O===-2){var P=w;return w=[],P}}])),E.hash=b.length?b.reduce(function(O,P){return P.name||yr(15),Wl(O,P.name)},5381).toString():"",E}var sp=g.createContext(),P2=sp.Consumer,up=g.createContext(),Mb=(up.Consumer,new Hl),lp=Nb();function cp(){return(0,g.useContext)(sp)||Mb}function Fb(){return(0,g.useContext)(up)||lp}function KC(e){var a=(0,g.useState)(e.stylisPlugins),n=a[0],o=a[1],_=cp(),l=(0,g.useMemo)(function(){var k=_;return e.sheet?k=e.sheet:e.target&&(k=k.reconstructWithOptions({target:e.target},!1)),e.disableCSSOMInjection&&(k=k.reconstructWithOptions({useCSSOMInjection:!1})),k},[e.disableCSSOMInjection,e.sheet,e.target]),h=(0,g.useMemo)(function(){return Nb({options:{prefix:!e.disableVendorPrefixes},plugins:n})},[e.disableVendorPrefixes,n]);return(0,g.useEffect)(function(){SC()(n,e.stylisPlugins)||o(e.stylisPlugins)},[e.stylisPlugins]),g.createElement(sp.Provider,{value:l},g.createElement(up.Provider,{value:h},e.children))}var Lb=function(){function e(a,n){var o=this;this.inject=function(_,l){l===void 0&&(l=lp);var h=o.name+l.hash;_.hasNameForId(o.id,h)||_.insertRules(o.id,h,l(o.rules,h,"@keyframes"))},this.toString=function(){return yr(12,String(o.name))},this.name=a,this.id="sc-keyframes-"+a,this.rules=n}return e.prototype.getName=function(a){return a===void 0&&(a=lp),this.name+a.hash},e}(),QC=/([A-Z])/,JC=/([A-Z])/g,ZC=/^ms-/,e1=function(e){return"-"+e.toLowerCase()};function Ub(e){return QC.test(e)?e.replace(JC,e1).replace(ZC,"-ms-"):e}var $b=function(e){return e==null||e===!1||e===""};function pu(e,a,n,o){if(Array.isArray(e)){for(var _,l=[],h=0,k=e.length;h1?a-1:0),o=1;o?@[\\\]^`{|}~-]+/g,i1=/(^-|-$)/g;function dp(e){return e.replace(a1,"-").replace(i1,"")}var gp=function(e){return _p(Rb(e)>>>0)};function Wd(e){return typeof e=="string"&&!0}var kp=function(e){return typeof e=="function"||typeof e=="object"&&e!==null&&!Array.isArray(e)},n1=function(e){return e!=="__proto__"&&e!=="constructor"&&e!=="prototype"};function o1(e,a,n){var o=e[n];kp(a)&&kp(o)?Wb(o,a):e[n]=a}function Wb(e){for(var a=arguments.length,n=new Array(a>1?a-1:0),o=1;o=0||(ue[se]=ae[se]);return ue}(a,["componentId"]),K=L&&L+"-"+(Wd(A)?A:dp(np(A)));return Bb(A,Do({},H,{attrs:z,componentId:K}),n)},Object.defineProperty(E,"defaultProps",{get:function(){return this._foldedDefaultProps},set:function(A){this._foldedDefaultProps=o?Wb({},e.defaultProps,A):A}}),Object.defineProperty(E,"toString",{value:function(){return"."+E.styledComponentId}}),_&&zc()(E,e,{attrs:!0,componentStyle:!0,displayName:!0,foldedComponentIds:!0,shouldForwardProp:!0,styledComponentId:!0,target:!0,withComponent:!0}),E}var fp=function(e){return function a(n,o,_){if(_===void 0&&(_=is),!(0,V_.isValidElementType)(o))return yr(1,String(o));var l=function(){return n(o,_,mp.apply(void 0,arguments))};return l.withConfig=function(h){return a(n,o,Do({},_,{},h))},l.attrs=function(h){return a(n,o,Do({},_,{attrs:Array.prototype.concat(_.attrs,h).filter(Boolean)}))},l}(Bb,e)};["a","abbr","address","area","article","aside","audio","b","base","bdi","bdo","big","blockquote","body","br","button","canvas","caption","cite","code","col","colgroup","data","datalist","dd","del","details","dfn","dialog","div","dl","dt","em","embed","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","iframe","img","input","ins","kbd","keygen","label","legend","li","link","main","map","mark","marquee","menu","menuitem","meta","meter","nav","noscript","object","ol","optgroup","option","output","p","param","picture","pre","progress","q","rp","rt","ruby","s","samp","script","section","select","small","source","span","strong","style","sub","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","title","tr","track","u","ul","var","video","wbr","circle","clipPath","defs","ellipse","foreignObject","g","image","line","linearGradient","marker","mask","path","pattern","polygon","polyline","radialGradient","rect","stop","svg","text","textPath","tspan"].forEach(function(e){fp[e]=fp(e)});var r1=function(){function e(n,o){this.rules=n,this.componentId=o,this.isStatic=Ab(n),Hl.registerId(this.componentId+1)}var a=e.prototype;return a.createStyles=function(n,o,_,l){var h=l(pu(this.rules,o,_,l).join(""),""),k=this.componentId+n;_.insertRules(k,k,h)},a.removeStyles=function(n,o){o.clearRules(this.componentId+n)},a.renderStyles=function(n,o,_,l){n>2&&Hl.registerId(this.componentId+n),this.removeStyles(n,_),this.createStyles(n,o,_,l)},e}();function R2(e){for(var a=arguments.length,n=new Array(a>1?a-1:0),o=1;o1?a-1:0),o=1;o"+o+""},this.getStyleTags=function(){return n.sealed?yr(2):n._emitSheetCSS()},this.getStyleElement=function(){var o;if(n.sealed)return yr(2);var _=((o={})[ns]="",o["data-styled-version"]="5.3.9",o.dangerouslySetInnerHTML={__html:n.instance.toString()},o),l=tp();return l&&(_.nonce=l),[g.createElement("style",Do({},_,{key:"sc-0-0"}))]},this.seal=function(){n.sealed=!0},this.instance=new Hl({isServer:!0}),this.sealed=!1}var a=e.prototype;return a.collectStyles=function(n){return this.sealed?yr(2):g.createElement(KC,{sheet:this.instance},n)},a.interleaveWithNodeStream=function(n){return yr(3)},e}(),M2=function(e){var a=r.forwardRef(function(n,o){var _=s(os),l=e.defaultProps,h=hp(n,_,l);return r.createElement(e,Do({},n,{theme:h,ref:o}))});return y(a,e),a.displayName="WithTheme("+np(e)+")",a},F2=function(){return s(os)},L2={StyleSheet:Hl,masterSheet:Mb},An=fp,t1=ha(9400),ki=ha.n(t1),_1={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"},s1=_1,Vb=function(a,n){return g.createElement(Yn,Ie(Ie({},a),{},{ref:n,icon:s1}))};Vb.displayName="DownOutlined";var u1=g.forwardRef(Vb),l1={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"},c1=l1,qb=function(a,n){return g.createElement(Yn,Ie(Ie({},a),{},{ref:n,icon:c1}))};qb.displayName="UpOutlined";var m1=g.forwardRef(qb),h1={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M724 218.3V141c0-6.7-7.7-10.4-12.9-6.3L260.3 486.8a31.86 31.86 0 000 50.3l450.8 352.1c5.3 4.1 12.9.4 12.9-6.3v-77.3c0-4.9-2.3-9.6-6.1-12.6l-360-281 360-281.1c3.8-3 6.1-7.7 6.1-12.6z"}}]},name:"left",theme:"outlined"},d1=h1,Gb=function(a,n){return g.createElement(Yn,Ie(Ie({},a),{},{ref:n,icon:d1}))};Gb.displayName="LeftOutlined";var g1=g.forwardRef(Gb),k1={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M765.7 486.8L314.9 134.7A7.97 7.97 0 00302 141v77.3c0 4.9 2.3 9.6 6.1 12.6l360 281.1-360 281.1c-3.9 3-6.1 7.7-6.1 12.6V883c0 6.7 7.7 10.4 12.9 6.3l450.8-352.1a31.96 31.96 0 000-50.4z"}}]},name:"right",theme:"outlined"},p1=k1,Xb=function(a,n){return g.createElement(Yn,Ie(Ie({},a),{},{ref:n,icon:p1}))};Xb.displayName="RightOutlined";var f1=g.forwardRef(Xb),y1=function(){var e=function(a,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(o,_){o.__proto__=_}||function(o,_){for(var l in _)Object.prototype.hasOwnProperty.call(_,l)&&(o[l]=_[l])},e(a,n)};return function(a,n){e(a,n);function o(){this.constructor=a}a.prototype=n===null?Object.create(n):(o.prototype=n.prototype,new o)}}(),nn=function(){return nn=Object.assign||function(e){for(var a,n=1,o=arguments.length;ne.length)&&(a=e.length);for(var n=0,o=new Array(a);ne.length)&&(a=e.length);for(var n=0,o=new Array(a);n0)break}while(rv(_,l));k=E.notation==="postfix",E.symbol!==")"&&(_.push(E),k&&rv(_,l))}else if(w){if(_.push(w.prefix||w.func),w.func&&(o=h.exec(e),!o||o[0]!=="("))throw new $a(38,o?o.index:e.length,e)}else l.push(+b),k=!0}while(o&&_.length);if(_.length)throw new $a(39,o?o.index:e.length,e);if(o)throw new $a(40,o?o.index:e.length,e);return l.pop()}function wp(e){return e.split("").reverse().join("")}function V2(e,a){var n=wp(e),o=n.match(ov);if(o&&!o.every(function(l){return l===o[0]}))throw new $a(41);var _=wp(n.replace(ov,""));return""+nS(_,a)+(o?wp(o[0]):"")}var oS=/--[\S]*/g;function B2(e,a){if(!e||!e.match(oS))throw new $a(73);var n;if(typeof document!="undefined"&&document.documentElement!==null&&(n=getComputedStyle(document.documentElement).getPropertyValue(e)),n)return n.trim();if(a)return a;throw new $a(74)}function Vm(e){return e.charAt(0).toUpperCase()+e.slice(1)}var rS=null;function tS(e,a){if(!e)return a.toLowerCase();var n=e.split("-");if(n.length>1)return n.splice(1,0,a),n.reduce(function(_,l){return""+_+Vm(l)});var o=e.replace(/([a-z])([A-Z])/g,"$1"+a+"$2");return e===o?""+e+a:o}function _S(e,a){for(var n={},o=0;o1?a-1:0),o=1;o=0)?n[o]=e[o]+" !important":n[o]=e[o]}),n}var sv={minorSecond:1.067,majorSecond:1.125,minorThird:1.2,majorThird:1.25,perfectFourth:1.333,augFourth:1.414,perfectFifth:1.5,minorSixth:1.6,goldenSection:1.618,majorSixth:1.667,minorSeventh:1.778,majorSeventh:1.875,octave:2,majorTenth:2.5,majorEleventh:2.667,majorTwelfth:3,doubleOctave:4};function cS(e){return sv[e]}function K2(e,a,n){if(a===void 0&&(a="1em"),n===void 0&&(n=1.333),typeof e!="number")throw new $a(42);if(typeof n=="string"&&!sv[n])throw new $a(43);var o=typeof a=="string"?Xt(a):[a,""],_=o[0],l=o[1],h=typeof n=="string"?cS(n):n;if(typeof _=="string")throw new $a(44,a);return""+_*Math.pow(h,e)+(l||"")}var Q2=null,J2=null,jp=16;function uv(e){var a=Xt(e);if(a[1]==="px")return parseFloat(e);if(a[1]==="%")return parseFloat(e)/100*jp;throw new $a(78,a[1])}function mS(){if(typeof document!="undefined"&&document.documentElement!==null){var e=getComputedStyle(document.documentElement).fontSize;return e?uv(e):jp}return jp}function Z2(e,a){var n=Xt(e);if(n[1]!=="rem"&&n[1]!=="")throw new $a(77,n[1]);var o=a?uv(a):mS();return n[0]*o+"px"}var hS={back:"cubic-bezier(0.600, -0.280, 0.735, 0.045)",circ:"cubic-bezier(0.600, 0.040, 0.980, 0.335)",cubic:"cubic-bezier(0.550, 0.055, 0.675, 0.190)",expo:"cubic-bezier(0.950, 0.050, 0.795, 0.035)",quad:"cubic-bezier(0.550, 0.085, 0.680, 0.530)",quart:"cubic-bezier(0.895, 0.030, 0.685, 0.220)",quint:"cubic-bezier(0.755, 0.050, 0.855, 0.060)",sine:"cubic-bezier(0.470, 0.000, 0.745, 0.715)"};function eT(e){return hS[e.toLowerCase().trim()]}var dS={back:"cubic-bezier(0.680, -0.550, 0.265, 1.550)",circ:"cubic-bezier(0.785, 0.135, 0.150, 0.860)",cubic:"cubic-bezier(0.645, 0.045, 0.355, 1.000)",expo:"cubic-bezier(1.000, 0.000, 0.000, 1.000)",quad:"cubic-bezier(0.455, 0.030, 0.515, 0.955)",quart:"cubic-bezier(0.770, 0.000, 0.175, 1.000)",quint:"cubic-bezier(0.860, 0.000, 0.070, 1.000)",sine:"cubic-bezier(0.445, 0.050, 0.550, 0.950)"};function aT(e){return dS[e.toLowerCase().trim()]}var gS={back:"cubic-bezier(0.175, 0.885, 0.320, 1.275)",cubic:"cubic-bezier(0.215, 0.610, 0.355, 1.000)",circ:"cubic-bezier(0.075, 0.820, 0.165, 1.000)",expo:"cubic-bezier(0.190, 1.000, 0.220, 1.000)",quad:"cubic-bezier(0.250, 0.460, 0.450, 0.940)",quart:"cubic-bezier(0.165, 0.840, 0.440, 1.000)",quint:"cubic-bezier(0.230, 1.000, 0.320, 1.000)",sine:"cubic-bezier(0.390, 0.575, 0.565, 1.000)"};function iT(e){return gS[e.toLowerCase().trim()]}function lv(e,a,n,o){n===void 0&&(n="320px"),o===void 0&&(o="1200px");var _=Xt(e),l=_[0],h=_[1],k=Xt(a),f=k[0],b=k[1],v=Xt(n),w=v[0],z=v[1],S=Xt(o),E=S[0],O=S[1];if(typeof w!="number"||typeof E!="number"||!z||!O||z!==O)throw new $a(47);if(typeof l!="number"||typeof f!="number"||h!==b)throw new $a(48);if(h!==z||b!==O)throw new $a(76);var P=(l-f)/(w-E),T=f-P*E;return"calc("+T.toFixed(2)+(h||"")+" + "+(100*P).toFixed(2)+"vw)"}function nT(e){var a;e===void 0&&(e="&");var n=e+"::after";return a={},a[n]={clear:"both",content:'""',display:"table"},a}function oT(e){return e===void 0&&(e=0),{position:"absolute",top:e,right:e,bottom:e,left:e}}function rT(e,a){a===void 0&&(a=1);var n={display:"inline-block",maxWidth:e||"100%",overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap",wordWrap:"normal"};return a>1?_extends({},n,{WebkitBoxOrient:"vertical",WebkitLineClamp:a,display:"-webkit-box",whiteSpace:"normal"}):n}function kS(e,a){var n=typeof Symbol!="undefined"&&e[Symbol.iterator]||e["@@iterator"];if(n)return(n=n.call(e)).next.bind(n);if(Array.isArray(e)||(n=pS(e))||a&&e&&typeof e.length=="number"){n&&(e=n);var o=0;return function(){return o>=e.length?{done:!0}:{done:!1,value:e[o++]}}}throw new TypeError(`Invalid attempt to iterate non-iterable instance. +`};function W2(){for(var e=arguments.length,a=new Array(e),n=0;n0)break}while(rv(_,l));k=E.notation==="postfix",E.symbol!==")"&&(_.push(E),k&&rv(_,l))}else if(w){if(_.push(w.prefix||w.func),w.func&&(o=h.exec(e),!o||o[0]!=="("))throw new $a(38,o?o.index:e.length,e)}else l.push(+b),k=!0}while(o&&_.length);if(_.length)throw new $a(39,o?o.index:e.length,e);if(o)throw new $a(40,o?o.index:e.length,e);return l.pop()}function wp(e){return e.split("").reverse().join("")}function B2(e,a){var n=wp(e),o=n.match(ov);if(o&&!o.every(function(l){return l===o[0]}))throw new $a(41);var _=wp(n.replace(ov,""));return""+nS(_,a)+(o?wp(o[0]):"")}var oS=/--[\S]*/g;function V2(e,a){if(!e||!e.match(oS))throw new $a(73);var n;if(typeof document!="undefined"&&document.documentElement!==null&&(n=getComputedStyle(document.documentElement).getPropertyValue(e)),n)return n.trim();if(a)return a;throw new $a(74)}function Bm(e){return e.charAt(0).toUpperCase()+e.slice(1)}var rS=null;function tS(e,a){if(!e)return a.toLowerCase();var n=e.split("-");if(n.length>1)return n.splice(1,0,a),n.reduce(function(_,l){return""+_+Bm(l)});var o=e.replace(/([a-z])([A-Z])/g,"$1"+a+"$2");return e===o?""+e+a:o}function _S(e,a){for(var n={},o=0;o1?a-1:0),o=1;o=0)?n[o]=e[o]+" !important":n[o]=e[o]}),n}var sv={minorSecond:1.067,majorSecond:1.125,minorThird:1.2,majorThird:1.25,perfectFourth:1.333,augFourth:1.414,perfectFifth:1.5,minorSixth:1.6,goldenSection:1.618,majorSixth:1.667,minorSeventh:1.778,majorSeventh:1.875,octave:2,majorTenth:2.5,majorEleventh:2.667,majorTwelfth:3,doubleOctave:4};function cS(e){return sv[e]}function K2(e,a,n){if(a===void 0&&(a="1em"),n===void 0&&(n=1.333),typeof e!="number")throw new $a(42);if(typeof n=="string"&&!sv[n])throw new $a(43);var o=typeof a=="string"?Xt(a):[a,""],_=o[0],l=o[1],h=typeof n=="string"?cS(n):n;if(typeof _=="string")throw new $a(44,a);return""+_*Math.pow(h,e)+(l||"")}var Q2=null,J2=null,jp=16;function uv(e){var a=Xt(e);if(a[1]==="px")return parseFloat(e);if(a[1]==="%")return parseFloat(e)/100*jp;throw new $a(78,a[1])}function mS(){if(typeof document!="undefined"&&document.documentElement!==null){var e=getComputedStyle(document.documentElement).fontSize;return e?uv(e):jp}return jp}function Z2(e,a){var n=Xt(e);if(n[1]!=="rem"&&n[1]!=="")throw new $a(77,n[1]);var o=a?uv(a):mS();return n[0]*o+"px"}var hS={back:"cubic-bezier(0.600, -0.280, 0.735, 0.045)",circ:"cubic-bezier(0.600, 0.040, 0.980, 0.335)",cubic:"cubic-bezier(0.550, 0.055, 0.675, 0.190)",expo:"cubic-bezier(0.950, 0.050, 0.795, 0.035)",quad:"cubic-bezier(0.550, 0.085, 0.680, 0.530)",quart:"cubic-bezier(0.895, 0.030, 0.685, 0.220)",quint:"cubic-bezier(0.755, 0.050, 0.855, 0.060)",sine:"cubic-bezier(0.470, 0.000, 0.745, 0.715)"};function eT(e){return hS[e.toLowerCase().trim()]}var dS={back:"cubic-bezier(0.680, -0.550, 0.265, 1.550)",circ:"cubic-bezier(0.785, 0.135, 0.150, 0.860)",cubic:"cubic-bezier(0.645, 0.045, 0.355, 1.000)",expo:"cubic-bezier(1.000, 0.000, 0.000, 1.000)",quad:"cubic-bezier(0.455, 0.030, 0.515, 0.955)",quart:"cubic-bezier(0.770, 0.000, 0.175, 1.000)",quint:"cubic-bezier(0.860, 0.000, 0.070, 1.000)",sine:"cubic-bezier(0.445, 0.050, 0.550, 0.950)"};function aT(e){return dS[e.toLowerCase().trim()]}var gS={back:"cubic-bezier(0.175, 0.885, 0.320, 1.275)",cubic:"cubic-bezier(0.215, 0.610, 0.355, 1.000)",circ:"cubic-bezier(0.075, 0.820, 0.165, 1.000)",expo:"cubic-bezier(0.190, 1.000, 0.220, 1.000)",quad:"cubic-bezier(0.250, 0.460, 0.450, 0.940)",quart:"cubic-bezier(0.165, 0.840, 0.440, 1.000)",quint:"cubic-bezier(0.230, 1.000, 0.320, 1.000)",sine:"cubic-bezier(0.390, 0.575, 0.565, 1.000)"};function iT(e){return gS[e.toLowerCase().trim()]}function lv(e,a,n,o){n===void 0&&(n="320px"),o===void 0&&(o="1200px");var _=Xt(e),l=_[0],h=_[1],k=Xt(a),f=k[0],b=k[1],v=Xt(n),w=v[0],z=v[1],S=Xt(o),E=S[0],O=S[1];if(typeof w!="number"||typeof E!="number"||!z||!O||z!==O)throw new $a(47);if(typeof l!="number"||typeof f!="number"||h!==b)throw new $a(48);if(h!==z||b!==O)throw new $a(76);var P=(l-f)/(w-E),T=f-P*E;return"calc("+T.toFixed(2)+(h||"")+" + "+(100*P).toFixed(2)+"vw)"}function nT(e){var a;e===void 0&&(e="&");var n=e+"::after";return a={},a[n]={clear:"both",content:'""',display:"table"},a}function oT(e){return e===void 0&&(e=0),{position:"absolute",top:e,right:e,bottom:e,left:e}}function rT(e,a){a===void 0&&(a=1);var n={display:"inline-block",maxWidth:e||"100%",overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap",wordWrap:"normal"};return a>1?_extends({},n,{WebkitBoxOrient:"vertical",WebkitLineClamp:a,display:"-webkit-box",whiteSpace:"normal"}):n}function kS(e,a){var n=typeof Symbol!="undefined"&&e[Symbol.iterator]||e["@@iterator"];if(n)return(n=n.call(e)).next.bind(n);if(Array.isArray(e)||(n=pS(e))||a&&e&&typeof e.length=="number"){n&&(e=n);var o=0;return function(){return o>=e.length?{done:!0}:{done:!1,value:e[o++]}}}throw new TypeError(`Invalid attempt to iterate non-iterable instance. In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function pS(e,a){if(e){if(typeof e=="string")return cv(e,a);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return cv(e,a)}}function cv(e,a){(a==null||a>e.length)&&(a=e.length);for(var n=0,o=new Array(a);n=0&&_<1?(k=l,f=h):_>=1&&_<2?(k=h,f=l):_>=2&&_<3?(f=l,b=h):_>=3&&_<4?(f=h,b=l):_>=4&&_<5?(k=h,b=l):_>=5&&_<6&&(k=l,b=h);var v=n-l/2,w=k+v,z=f+v,S=b+v;return o(w,z,S)}var kv={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"};function OS(e){if(typeof e!="string")return e;var a=e.toLowerCase();return kv[a]?"#"+kv[a]:e}var IS=/^#[a-fA-F0-9]{6}$/,DS=/^#[a-fA-F0-9]{8}$/,TS=/^#[a-fA-F0-9]{3}$/,RS=/^#[a-fA-F0-9]{4}$/,xp=/^rgb\(\s*(\d{1,3})\s*(?:,)?\s*(\d{1,3})\s*(?:,)?\s*(\d{1,3})\s*\)$/i,AS=/^rgb(?:a)?\(\s*(\d{1,3})\s*(?:,)?\s*(\d{1,3})\s*(?:,)?\s*(\d{1,3})\s*(?:,|\/)\s*([-+]?\d*[.]?\d+[%]?)\s*\)$/i,NS=/^hsl\(\s*(\d{0,3}[.]?[0-9]+(?:deg)?)\s*(?:,)?\s*(\d{1,3}[.]?[0-9]?)%\s*(?:,)?\s*(\d{1,3}[.]?[0-9]?)%\s*\)$/i,FS=/^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 rs(e){if(typeof e!="string")throw new $a(3);var a=OS(e);if(a.match(IS))return{red:parseInt(""+a[1]+a[2],16),green:parseInt(""+a[3]+a[4],16),blue:parseInt(""+a[5]+a[6],16)};if(a.match(DS)){var n=parseFloat((parseInt(""+a[7]+a[8],16)/255).toFixed(2));return{red:parseInt(""+a[1]+a[2],16),green:parseInt(""+a[3]+a[4],16),blue:parseInt(""+a[5]+a[6],16),alpha:n}}if(a.match(TS))return{red:parseInt(""+a[1]+a[1],16),green:parseInt(""+a[2]+a[2],16),blue:parseInt(""+a[3]+a[3],16)};if(a.match(RS)){var o=parseFloat((parseInt(""+a[4]+a[4],16)/255).toFixed(2));return{red:parseInt(""+a[1]+a[1],16),green:parseInt(""+a[2]+a[2],16),blue:parseInt(""+a[3]+a[3],16),alpha:o}}var _=xp.exec(a);if(_)return{red:parseInt(""+_[1],10),green:parseInt(""+_[2],10),blue:parseInt(""+_[3],10)};var l=AS.exec(a.substring(0,50));if(l)return{red:parseInt(""+l[1],10),green:parseInt(""+l[2],10),blue:parseInt(""+l[3],10),alpha:parseFloat(""+l[4])>1?parseFloat(""+l[4])/100:parseFloat(""+l[4])};var h=NS.exec(a);if(h){var k=parseInt(""+h[1],10),f=parseInt(""+h[2],10)/100,b=parseInt(""+h[3],10)/100,v="rgb("+Bm(k,f,b)+")",w=xp.exec(v);if(!w)throw new $a(4,a,v);return{red:parseInt(""+w[1],10),green:parseInt(""+w[2],10),blue:parseInt(""+w[3],10)}}var z=FS.exec(a.substring(0,50));if(z){var S=parseInt(""+z[1],10),E=parseInt(""+z[2],10)/100,O=parseInt(""+z[3],10)/100,P="rgb("+Bm(S,E,O)+")",T=xp.exec(P);if(!T)throw new $a(4,a,P);return{red:parseInt(""+T[1],10),green:parseInt(""+T[2],10),blue:parseInt(""+T[3],10),alpha:parseFloat(""+z[4])>1?parseFloat(""+z[4])/100:parseFloat(""+z[4])}}throw new $a(5)}function LS(e){var a=e.red/255,n=e.green/255,o=e.blue/255,_=Math.max(a,n,o),l=Math.min(a,n,o),h=(_+l)/2;if(_===l)return e.alpha!==void 0?{hue:0,saturation:0,lightness:h,alpha:e.alpha}:{hue:0,saturation:0,lightness:h};var k,f=_-l,b=h>.5?f/(2-_-l):f/(_+l);switch(_){case a:k=(n-o)/f+(n=1?Yd(e,a,n):"rgba("+Bm(e,a,n)+","+o+")";if(typeof e=="object"&&a===void 0&&n===void 0&&o===void 0)return e.alpha>=1?Yd(e.hue,e.saturation,e.lightness):"rgba("+Bm(e.hue,e.saturation,e.lightness)+","+e.alpha+")";throw new $a(2)}function Kd(e,a,n){if(typeof e=="number"&&typeof a=="number"&&typeof n=="number")return Cp("#"+yu(e)+yu(a)+yu(n));if(typeof e=="object"&&a===void 0&&n===void 0)return Cp("#"+yu(e.red)+yu(e.green)+yu(e.blue));throw new $a(6)}function bu(e,a,n,o){if(typeof e=="string"&&typeof a=="number"){var _=rs(e);return"rgba("+_.red+","+_.green+","+_.blue+","+a+")"}else{if(typeof e=="number"&&typeof a=="number"&&typeof n=="number"&&typeof o=="number")return o>=1?Kd(e,a,n):"rgba("+e+","+a+","+n+","+o+")";if(typeof e=="object"&&a===void 0&&n===void 0&&o===void 0)return e.alpha>=1?Kd(e.red,e.green,e.blue):"rgba("+e.red+","+e.green+","+e.blue+","+e.alpha+")"}throw new $a(7)}var HS=function(a){return typeof a.red=="number"&&typeof a.green=="number"&&typeof a.blue=="number"&&(typeof a.alpha!="number"||typeof a.alpha=="undefined")},WS=function(a){return typeof a.red=="number"&&typeof a.green=="number"&&typeof a.blue=="number"&&typeof a.alpha=="number"},VS=function(a){return typeof a.hue=="number"&&typeof a.saturation=="number"&&typeof a.lightness=="number"&&(typeof a.alpha!="number"||typeof a.alpha=="undefined")},BS=function(a){return typeof a.hue=="number"&&typeof a.saturation=="number"&&typeof a.lightness=="number"&&typeof a.alpha=="number"};function br(e){if(typeof e!="object")throw new $a(8);if(WS(e))return bu(e);if(HS(e))return Kd(e);if(BS(e))return fv(e);if(VS(e))return pv(e);throw new $a(8)}function yv(e,a,n){return function(){var _=n.concat(Array.prototype.slice.call(arguments));return _.length>=a?e.apply(this,_):yv(e,a,_)}}function pT(e){return yv(e,e.length,[])}function fT(e,a){if(a==="transparent")return a;var n=rt(a);return br(_extends({},n,{hue:n.hue+parseFloat(e)}))}var yT=null,bT=null;function vT(e){if(e==="transparent")return e;var a=rt(e);return br(_extends({},a,{hue:(a.hue+180)%360}))}function ql(e,a,n){return Math.max(e,Math.min(a,n))}function wT(e,a){if(a==="transparent")return a;var n=rt(a);return br(_extends({},n,{lightness:ql(0,1,n.lightness-parseFloat(e))}))}var jT=null,zT=null;function xT(e,a){if(a==="transparent")return a;var n=rt(a);return br(_extends({},n,{saturation:ql(0,1,n.saturation-parseFloat(e))}))}var CT=null,ST=null;function Pp(e){if(e==="transparent")return 0;var a=rs(e),n=Object.keys(a).map(function(h){var k=a[h]/255;return k<=.03928?k/12.92:Math.pow((k+.055)/1.055,2.4)}),o=n[0],_=n[1],l=n[2];return parseFloat((.2126*o+.7152*_+.0722*l).toFixed(3))}function bv(e,a){var n=Pp(e),o=Pp(a);return parseFloat((n>o?(n+.05)/(o+.05):(o+.05)/(n+.05)).toFixed(2))}function PT(e){return e==="transparent"?e:br(_extends({},rt(e),{saturation:0}))}function ET(e){if(typeof e=="object"&&typeof e.hue=="number"&&typeof e.saturation=="number"&&typeof e.lightness=="number")return e.alpha&&typeof e.alpha=="number"?fv({hue:e.hue,saturation:e.saturation,lightness:e.lightness,alpha:e.alpha}):pv({hue:e.hue,saturation:e.saturation,lightness:e.lightness});throw new $a(45)}function OT(e){if(e==="transparent")return e;var a=rs(e);return br(_extends({},a,{red:255-a.red,green:255-a.green,blue:255-a.blue}))}function IT(e,a){if(a==="transparent")return a;var n=rt(a);return br(_extends({},n,{lightness:ql(0,1,n.lightness+parseFloat(e))}))}var DT=null,TT=null;function RT(e,a){var n=bv(e,a);return{AA:n>=4.5,AALarge:n>=3,AAA:n>=7,AAALarge:n>=4.5}}function AT(e,a,n){if(a==="transparent")return n;if(n==="transparent")return a;if(e===0)return n;var o=rs(a),_=_extends({},o,{alpha:typeof o.alpha=="number"?o.alpha:1}),l=rs(n),h=_extends({},l,{alpha:typeof l.alpha=="number"?l.alpha:1}),k=_.alpha-h.alpha,f=parseFloat(e)*2-1,b=f*k===-1?f:f+k,v=1+f*k,w=(b/v+1)/2,z=1-w,S={red:Math.floor(_.red*w+h.red*z),green:Math.floor(_.green*w+h.green*z),blue:Math.floor(_.blue*w+h.blue*z),alpha:_.alpha*parseFloat(e)+h.alpha*(1-parseFloat(e))};return bu(S)}var NT=null,vv=null;function MT(e,a){if(a==="transparent")return a;var n=rs(a),o=typeof n.alpha=="number"?n.alpha:1,_=_extends({},n,{alpha:ql(0,1,(o*100+parseFloat(e)*100)/100)});return bu(_)}var FT=null,LT=null,wv="#000",jv="#fff";function UT(e,a,n,o){a===void 0&&(a=wv),n===void 0&&(n=jv),o===void 0&&(o=!0);var _=Pp(e)>.179,l=_?a:n;return!o||bv(e,l)>=4.5?l:_?wv:jv}function $T(e){if(typeof e=="object"&&typeof e.red=="number"&&typeof e.green=="number"&&typeof e.blue=="number")return typeof e.alpha=="number"?bu({red:e.red,green:e.green,blue:e.blue,alpha:e.alpha}):Kd({red:e.red,green:e.green,blue:e.blue});throw new $a(46)}function HT(e,a){if(a==="transparent")return a;var n=rt(a);return br(_extends({},n,{saturation:ql(0,1,n.saturation+parseFloat(e))}))}var WT=null,VT=null;function BT(e,a){return a==="transparent"?a:br(_extends({},rt(a),{hue:parseFloat(e)}))}var qT=null,GT=null;function XT(e,a){return a==="transparent"?a:br(_extends({},rt(a),{lightness:parseFloat(e)}))}var YT=null,KT=null;function QT(e,a){return a==="transparent"?a:br(_extends({},rt(a),{saturation:parseFloat(e)}))}var JT=null,ZT=null;function eR(e,a){return a==="transparent"?a:vv(parseFloat(e),"rgb(0, 0, 0)",a)}var aR=null,iR=null;function nR(e,a){return a==="transparent"?a:vv(parseFloat(e),"rgb(255, 255, 255)",a)}var oR=null,rR=null;function tR(e,a){if(a==="transparent")return a;var n=rs(a),o=typeof n.alpha=="number"?n.alpha:1,_=_extends({},n,{alpha:ql(0,1,+(o*100-parseFloat(e)*100).toFixed(2)/100)});return bu(_)}var _R=null,sR=null;function uR(){for(var e=arguments.length,a=new Array(e),n=0;n8)throw new $a(64);var _=a.map(function(l){if(o&&!Array.isArray(l)||!o&&Array.isArray(l))throw new $a(65);if(Array.isArray(l)&&l.length>8)throw new $a(66);return Array.isArray(l)?l.join(" "):l}).join(", ");return{animation:_}}function lR(){for(var e=arguments.length,a=new Array(e),n=0;n1?a-1:0),o=1;o=0){var _;return _={},_["border"+Vm(e)+"Width"]=n[0],_["border"+Vm(e)+"Style"]=n[1],_["border"+Vm(e)+"Color"]=n[2],_}else return n.unshift(e),{borderWidth:n[0],borderStyle:n[1],borderColor:n[2]}}function hR(){for(var e=arguments.length,a=new Array(e),n=0;n=0&&_<1?(k=l,f=h):_>=1&&_<2?(k=h,f=l):_>=2&&_<3?(f=l,b=h):_>=3&&_<4?(f=h,b=l):_>=4&&_<5?(k=h,b=l):_>=5&&_<6&&(k=l,b=h);var v=n-l/2,w=k+v,z=f+v,S=b+v;return o(w,z,S)}var kv={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"};function OS(e){if(typeof e!="string")return e;var a=e.toLowerCase();return kv[a]?"#"+kv[a]:e}var IS=/^#[a-fA-F0-9]{6}$/,DS=/^#[a-fA-F0-9]{8}$/,TS=/^#[a-fA-F0-9]{3}$/,RS=/^#[a-fA-F0-9]{4}$/,xp=/^rgb\(\s*(\d{1,3})\s*(?:,)?\s*(\d{1,3})\s*(?:,)?\s*(\d{1,3})\s*\)$/i,AS=/^rgb(?:a)?\(\s*(\d{1,3})\s*(?:,)?\s*(\d{1,3})\s*(?:,)?\s*(\d{1,3})\s*(?:,|\/)\s*([-+]?\d*[.]?\d+[%]?)\s*\)$/i,NS=/^hsl\(\s*(\d{0,3}[.]?[0-9]+(?:deg)?)\s*(?:,)?\s*(\d{1,3}[.]?[0-9]?)%\s*(?:,)?\s*(\d{1,3}[.]?[0-9]?)%\s*\)$/i,FS=/^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 rs(e){if(typeof e!="string")throw new $a(3);var a=OS(e);if(a.match(IS))return{red:parseInt(""+a[1]+a[2],16),green:parseInt(""+a[3]+a[4],16),blue:parseInt(""+a[5]+a[6],16)};if(a.match(DS)){var n=parseFloat((parseInt(""+a[7]+a[8],16)/255).toFixed(2));return{red:parseInt(""+a[1]+a[2],16),green:parseInt(""+a[3]+a[4],16),blue:parseInt(""+a[5]+a[6],16),alpha:n}}if(a.match(TS))return{red:parseInt(""+a[1]+a[1],16),green:parseInt(""+a[2]+a[2],16),blue:parseInt(""+a[3]+a[3],16)};if(a.match(RS)){var o=parseFloat((parseInt(""+a[4]+a[4],16)/255).toFixed(2));return{red:parseInt(""+a[1]+a[1],16),green:parseInt(""+a[2]+a[2],16),blue:parseInt(""+a[3]+a[3],16),alpha:o}}var _=xp.exec(a);if(_)return{red:parseInt(""+_[1],10),green:parseInt(""+_[2],10),blue:parseInt(""+_[3],10)};var l=AS.exec(a.substring(0,50));if(l)return{red:parseInt(""+l[1],10),green:parseInt(""+l[2],10),blue:parseInt(""+l[3],10),alpha:parseFloat(""+l[4])>1?parseFloat(""+l[4])/100:parseFloat(""+l[4])};var h=NS.exec(a);if(h){var k=parseInt(""+h[1],10),f=parseInt(""+h[2],10)/100,b=parseInt(""+h[3],10)/100,v="rgb("+Vm(k,f,b)+")",w=xp.exec(v);if(!w)throw new $a(4,a,v);return{red:parseInt(""+w[1],10),green:parseInt(""+w[2],10),blue:parseInt(""+w[3],10)}}var z=FS.exec(a.substring(0,50));if(z){var S=parseInt(""+z[1],10),E=parseInt(""+z[2],10)/100,O=parseInt(""+z[3],10)/100,P="rgb("+Vm(S,E,O)+")",T=xp.exec(P);if(!T)throw new $a(4,a,P);return{red:parseInt(""+T[1],10),green:parseInt(""+T[2],10),blue:parseInt(""+T[3],10),alpha:parseFloat(""+z[4])>1?parseFloat(""+z[4])/100:parseFloat(""+z[4])}}throw new $a(5)}function LS(e){var a=e.red/255,n=e.green/255,o=e.blue/255,_=Math.max(a,n,o),l=Math.min(a,n,o),h=(_+l)/2;if(_===l)return e.alpha!==void 0?{hue:0,saturation:0,lightness:h,alpha:e.alpha}:{hue:0,saturation:0,lightness:h};var k,f=_-l,b=h>.5?f/(2-_-l):f/(_+l);switch(_){case a:k=(n-o)/f+(n=1?Yd(e,a,n):"rgba("+Vm(e,a,n)+","+o+")";if(typeof e=="object"&&a===void 0&&n===void 0&&o===void 0)return e.alpha>=1?Yd(e.hue,e.saturation,e.lightness):"rgba("+Vm(e.hue,e.saturation,e.lightness)+","+e.alpha+")";throw new $a(2)}function Kd(e,a,n){if(typeof e=="number"&&typeof a=="number"&&typeof n=="number")return Cp("#"+yu(e)+yu(a)+yu(n));if(typeof e=="object"&&a===void 0&&n===void 0)return Cp("#"+yu(e.red)+yu(e.green)+yu(e.blue));throw new $a(6)}function bu(e,a,n,o){if(typeof e=="string"&&typeof a=="number"){var _=rs(e);return"rgba("+_.red+","+_.green+","+_.blue+","+a+")"}else{if(typeof e=="number"&&typeof a=="number"&&typeof n=="number"&&typeof o=="number")return o>=1?Kd(e,a,n):"rgba("+e+","+a+","+n+","+o+")";if(typeof e=="object"&&a===void 0&&n===void 0&&o===void 0)return e.alpha>=1?Kd(e.red,e.green,e.blue):"rgba("+e.red+","+e.green+","+e.blue+","+e.alpha+")"}throw new $a(7)}var HS=function(a){return typeof a.red=="number"&&typeof a.green=="number"&&typeof a.blue=="number"&&(typeof a.alpha!="number"||typeof a.alpha=="undefined")},WS=function(a){return typeof a.red=="number"&&typeof a.green=="number"&&typeof a.blue=="number"&&typeof a.alpha=="number"},BS=function(a){return typeof a.hue=="number"&&typeof a.saturation=="number"&&typeof a.lightness=="number"&&(typeof a.alpha!="number"||typeof a.alpha=="undefined")},VS=function(a){return typeof a.hue=="number"&&typeof a.saturation=="number"&&typeof a.lightness=="number"&&typeof a.alpha=="number"};function br(e){if(typeof e!="object")throw new $a(8);if(WS(e))return bu(e);if(HS(e))return Kd(e);if(VS(e))return fv(e);if(BS(e))return pv(e);throw new $a(8)}function yv(e,a,n){return function(){var _=n.concat(Array.prototype.slice.call(arguments));return _.length>=a?e.apply(this,_):yv(e,a,_)}}function pT(e){return yv(e,e.length,[])}function fT(e,a){if(a==="transparent")return a;var n=rt(a);return br(_extends({},n,{hue:n.hue+parseFloat(e)}))}var yT=null,bT=null;function vT(e){if(e==="transparent")return e;var a=rt(e);return br(_extends({},a,{hue:(a.hue+180)%360}))}function ql(e,a,n){return Math.max(e,Math.min(a,n))}function wT(e,a){if(a==="transparent")return a;var n=rt(a);return br(_extends({},n,{lightness:ql(0,1,n.lightness-parseFloat(e))}))}var jT=null,zT=null;function xT(e,a){if(a==="transparent")return a;var n=rt(a);return br(_extends({},n,{saturation:ql(0,1,n.saturation-parseFloat(e))}))}var CT=null,ST=null;function Pp(e){if(e==="transparent")return 0;var a=rs(e),n=Object.keys(a).map(function(h){var k=a[h]/255;return k<=.03928?k/12.92:Math.pow((k+.055)/1.055,2.4)}),o=n[0],_=n[1],l=n[2];return parseFloat((.2126*o+.7152*_+.0722*l).toFixed(3))}function bv(e,a){var n=Pp(e),o=Pp(a);return parseFloat((n>o?(n+.05)/(o+.05):(o+.05)/(n+.05)).toFixed(2))}function PT(e){return e==="transparent"?e:br(_extends({},rt(e),{saturation:0}))}function ET(e){if(typeof e=="object"&&typeof e.hue=="number"&&typeof e.saturation=="number"&&typeof e.lightness=="number")return e.alpha&&typeof e.alpha=="number"?fv({hue:e.hue,saturation:e.saturation,lightness:e.lightness,alpha:e.alpha}):pv({hue:e.hue,saturation:e.saturation,lightness:e.lightness});throw new $a(45)}function OT(e){if(e==="transparent")return e;var a=rs(e);return br(_extends({},a,{red:255-a.red,green:255-a.green,blue:255-a.blue}))}function IT(e,a){if(a==="transparent")return a;var n=rt(a);return br(_extends({},n,{lightness:ql(0,1,n.lightness+parseFloat(e))}))}var DT=null,TT=null;function RT(e,a){var n=bv(e,a);return{AA:n>=4.5,AALarge:n>=3,AAA:n>=7,AAALarge:n>=4.5}}function AT(e,a,n){if(a==="transparent")return n;if(n==="transparent")return a;if(e===0)return n;var o=rs(a),_=_extends({},o,{alpha:typeof o.alpha=="number"?o.alpha:1}),l=rs(n),h=_extends({},l,{alpha:typeof l.alpha=="number"?l.alpha:1}),k=_.alpha-h.alpha,f=parseFloat(e)*2-1,b=f*k===-1?f:f+k,v=1+f*k,w=(b/v+1)/2,z=1-w,S={red:Math.floor(_.red*w+h.red*z),green:Math.floor(_.green*w+h.green*z),blue:Math.floor(_.blue*w+h.blue*z),alpha:_.alpha*parseFloat(e)+h.alpha*(1-parseFloat(e))};return bu(S)}var NT=null,vv=null;function MT(e,a){if(a==="transparent")return a;var n=rs(a),o=typeof n.alpha=="number"?n.alpha:1,_=_extends({},n,{alpha:ql(0,1,(o*100+parseFloat(e)*100)/100)});return bu(_)}var FT=null,LT=null,wv="#000",jv="#fff";function UT(e,a,n,o){a===void 0&&(a=wv),n===void 0&&(n=jv),o===void 0&&(o=!0);var _=Pp(e)>.179,l=_?a:n;return!o||bv(e,l)>=4.5?l:_?wv:jv}function $T(e){if(typeof e=="object"&&typeof e.red=="number"&&typeof e.green=="number"&&typeof e.blue=="number")return typeof e.alpha=="number"?bu({red:e.red,green:e.green,blue:e.blue,alpha:e.alpha}):Kd({red:e.red,green:e.green,blue:e.blue});throw new $a(46)}function HT(e,a){if(a==="transparent")return a;var n=rt(a);return br(_extends({},n,{saturation:ql(0,1,n.saturation+parseFloat(e))}))}var WT=null,BT=null;function VT(e,a){return a==="transparent"?a:br(_extends({},rt(a),{hue:parseFloat(e)}))}var qT=null,GT=null;function XT(e,a){return a==="transparent"?a:br(_extends({},rt(a),{lightness:parseFloat(e)}))}var YT=null,KT=null;function QT(e,a){return a==="transparent"?a:br(_extends({},rt(a),{saturation:parseFloat(e)}))}var JT=null,ZT=null;function eR(e,a){return a==="transparent"?a:vv(parseFloat(e),"rgb(0, 0, 0)",a)}var aR=null,iR=null;function nR(e,a){return a==="transparent"?a:vv(parseFloat(e),"rgb(255, 255, 255)",a)}var oR=null,rR=null;function tR(e,a){if(a==="transparent")return a;var n=rs(a),o=typeof n.alpha=="number"?n.alpha:1,_=_extends({},n,{alpha:ql(0,1,+(o*100-parseFloat(e)*100).toFixed(2)/100)});return bu(_)}var _R=null,sR=null;function uR(){for(var e=arguments.length,a=new Array(e),n=0;n8)throw new $a(64);var _=a.map(function(l){if(o&&!Array.isArray(l)||!o&&Array.isArray(l))throw new $a(65);if(Array.isArray(l)&&l.length>8)throw new $a(66);return Array.isArray(l)?l.join(" "):l}).join(", ");return{animation:_}}function lR(){for(var e=arguments.length,a=new Array(e),n=0;n1?a-1:0),o=1;o=0){var _;return _={},_["border"+Bm(e)+"Width"]=n[0],_["border"+Bm(e)+"Style"]=n[1],_["border"+Bm(e)+"Color"]=n[2],_}else return n.unshift(e),{borderWidth:n[0],borderStyle:n[1],borderColor:n[2]}}function hR(){for(var e=arguments.length,a=new Array(e),n=0;n1?a-1:0),o=1;o=0&&e?_extends({},fu.apply(void 0,[""].concat(n)),{position:e}):fu.apply(void 0,["",e].concat(n))}function vR(e,a){return a===void 0&&(a=e),{height:e,width:a}}var KS=null;function QS(e){return'input[type="color"]'+e+`, @@ -503,7 +503,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho height: 2px; width: 100%; } - `])),o))}}),JS=150,ZS=400,Ep=function(a){switch(a){case"bottom":return"top";case"top":return"bottom";case"right":return"left";case"left":return"right"}},eP=(0,g.memo)(function(e){var a=e.children,n=e.placement,o=n===void 0?"right":n,_=e.resize,l=e.style,h=e.size,k=e.defaultSize,f=e.minWidth,b=e.minHeight,v=e.onSizeChange,w=e.onSizeDragging,z=e.expandable,S=z===void 0?!0:z,E=e.isExpand,O=e.onExpandChange,P=e.className,T="draggable-panel",A=o==="top"||o==="bottom",L=Lv(T),H=L.styles,K=L.cx,ae=B1(!0,{value:E,onChange:O}),ie=I()(ae,2),se=ie[0],he=ie[1],ue=_!==!1&&se,ze=(0,g.useMemo)(function(){return ue?Ne()({},Ep(o),H["".concat(Ep(o),"Handle")]):{}},[ue,o]),te=Io()(Ne()({top:!1,bottom:!1,right:!1,left:!1,topRight:!1,bottomRight:!1,bottomLeft:!1,topLeft:!1},Ep(o),!0),_),re=(0,g.useMemo)(function(){return A?Io()({width:"100%",height:JS},k):Io()({width:ZS,height:"100%"},k)},[A]),le=se?{minWidth:typeof f=="number"?Math.max(f,0):280,minHeight:typeof b=="number"?Math.max(b,0):void 0,defaultSize:re,size:h,style:l}:{minWidth:0,minHeight:0,size:{width:0,height:0}},be=(0,g.useMemo)(function(){switch(o){case"top":return{className:"Bottom",Arrow:u1};case"bottom":return{className:"Top",Arrow:m1};case"right":return{className:"Left",Arrow:g1};case"left":return{className:"Right",Arrow:f1}}},[H,o]),Ve=be.Arrow,He=be.className;return(0,ia.jsxs)("div",{className:K(H.container,P),style:Ne()({},"border".concat(He,"Width"),1),children:[S&&(0,ia.jsx)(F1,{className:K(H["toggle".concat(He)]),onClick:function(){he(!se)},style:{opacity:se?void 0:1},children:(0,ia.jsx)(Ve,{rotate:se?180:0})}),(0,ia.jsx)(S1,Io()(Io()({},le),{},{className:H.fixed,enable:ue?te:void 0,handleClasses:ze,onResizeStop:function(ca,Sa,ya,Ge){v==null||v(Ge,{width:ya.style.width,height:ya.style.height})},onResize:function(ca,Sa,ya,Ge){w==null||w(Ge,{width:ya.style.width,height:ya.style.height})},children:a}))]})}),aP=ha(1193),iP=ha.n(aP),nP=function(){var e=function(a,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(o,_){o.__proto__=_}||function(o,_){for(var l in _)Object.prototype.hasOwnProperty.call(_,l)&&(o[l]=_[l])},e(a,n)};return function(a,n){e(a,n);function o(){this.constructor=a}a.prototype=n===null?Object.create(n):(o.prototype=n.prototype,new o)}}(),Qd=function(){return Qd=Object.assign||function(e){for(var a,n=1,o=arguments.length;nNumber(z)?z:te})}if(he||this.props.lockAspectRatio&&!se&&!ue){var te=ae+(H-T)/l;this.setState({maxWidth:te>Number(z)?z:te})}if((ue||se)&&this.resizable){var te=(A-K)/l+this.resizable.size.height;this.setState({maxHeight:te>Number(S)?S:te})}if(ze||this.props.lockAspectRatio&&!ue&&!se){var te=ie+(K-A)/l;this.setState({maxHeight:te>Number(S)?S:te})}}}else this.setState({maxWidth:this.props.maxWidth,maxHeight:this.props.maxHeight});this.props.onResizeStart&&this.props.onResizeStart(n,o,_)},a.prototype.onResize=function(n,o,_,l){var h={x:this.originalPosition.x,y:this.originalPosition.y},k=-l.width,f=-l.height,b=["top","left","topLeft","bottomLeft","topRight"];b.indexOf(o)!==-1&&(o==="bottomLeft"?h.x+=k:(o==="topRight"||(h.x+=k),h.y+=f)),(h.x!==this.draggable.state.x||h.y!==this.draggable.state.y)&&this.draggable.setState(h),this.updateOffsetFromParent();var v=this.offsetFromParent,w=this.getDraggablePosition().x+v.left,z=this.getDraggablePosition().y+v.top;this.resizingPosition={x:w,y:z},this.props.onResize&&this.props.onResize(n,o,_,l,{x:w,y:z})},a.prototype.onResizeStop=function(n,o,_,l){this.setState({resizing:!1});var h=this.getMaxSizesFromProps(),k=h.maxWidth,f=h.maxHeight;this.setState({maxWidth:k,maxHeight:f}),this.props.onResizeStop&&this.props.onResizeStop(n,o,_,l,this.resizingPosition)},a.prototype.updateSize=function(n){this.resizable&&this.resizable.updateSize({width:n.width,height:n.height})},a.prototype.updatePosition=function(n){this.draggable.setState(n)},a.prototype.updateOffsetFromParent=function(){var n=this.props.scale,o=this.getParent(),_=this.getSelfElement();if(!o||_===null)return{top:0,left:0};var l=o.getBoundingClientRect(),h=l.left,k=l.top,f=_.getBoundingClientRect(),b=this.getDraggablePosition(),v=o.scrollLeft,w=o.scrollTop;this.offsetFromParent={left:f.left-h+v-b.x*n,top:f.top-k+w-b.y*n}},a.prototype.render=function(){var n=this.props,o=n.disableDragging,_=n.style,l=n.dragHandleClassName,h=n.position,k=n.onMouseDown,f=n.onMouseUp,b=n.dragAxis,v=n.dragGrid,w=n.bounds,z=n.enableUserSelectHack,S=n.cancel,E=n.children,O=n.onResizeStart,P=n.onResize,T=n.onResizeStop,A=n.onDragStart,L=n.onDrag,H=n.onDragStop,K=n.resizeHandleStyles,ae=n.resizeHandleClasses,ie=n.resizeHandleComponent,se=n.enableResizing,he=n.resizeGrid,ue=n.resizeHandleWrapperClass,ze=n.resizeHandleWrapperStyle,te=n.scale,re=n.allowAnyClick,le=dP(n,["disableDragging","style","dragHandleClassName","position","onMouseDown","onMouseUp","dragAxis","dragGrid","bounds","enableUserSelectHack","cancel","children","onResizeStart","onResize","onResizeStop","onDragStart","onDrag","onDragStop","resizeHandleStyles","resizeHandleClasses","resizeHandleComponent","enableResizing","resizeGrid","resizeHandleWrapperClass","resizeHandleWrapperStyle","scale","allowAnyClick"]),be=this.props.default?un({},this.props.default):void 0;delete le.default;var Ve=o||l?{cursor:"auto"}:{cursor:"move"},He=un(un(un({},kP),Ve),_),ea=this.offsetFromParent,ca=ea.left,Sa=ea.top,ya;h&&(ya={x:h.x-ca,y:h.y-Sa});var Ge=this.state.resizing?void 0:ya,$e=this.state.resizing?"both":b;return(0,g.createElement)(gP,{ref:this.refDraggable,handle:l?".".concat(l):void 0,defaultPosition:be,onMouseDown:k,onMouseUp:f,onStart:this.onDragStart,onDrag:this.onDrag,onStop:this.onDragStop,axis:$e,disabled:o,grid:v,bounds:w?this.state.bounds:void 0,position:Ge,enableUserSelectHack:z,cancel:S,scale:te,allowAnyClick:re,nodeRef:this.resizableElement},(0,g.createElement)(mP,un({},le,{ref:this.refResizable,defaultSize:be,size:this.props.size,enable:typeof se=="boolean"?pP(se):se,onResizeStart:this.onResizeStart,onResize:this.onResize,onResizeStop:this.onResizeStop,style:He,minWidth:this.props.minWidth,minHeight:this.props.minHeight,maxWidth:this.state.resizing?this.state.maxWidth:this.props.maxWidth,maxHeight:this.state.resizing?this.state.maxHeight:this.props.maxHeight,grid:he,handleWrapperClass:ue,handleWrapperStyle:ze,lockAspectRatio:this.props.lockAspectRatio,lockAspectRatioExtraWidth:this.props.lockAspectRatioExtraWidth,lockAspectRatioExtraHeight:this.props.lockAspectRatioExtraHeight,handleStyles:K,handleClasses:ae,handleComponent:ie,scale:this.props.scale}),E))},a.defaultProps={maxWidth:Number.MAX_SAFE_INTEGER,maxHeight:Number.MAX_SAFE_INTEGER,scale:1,onResizeStart:function(){},onResize:function(){},onResizeStop:function(){},onDragStart:function(){},onDrag:function(){},onDragStop:function(){}},a}(g.PureComponent),yP=300,bP=400,vP=(0,g.memo)(function(e){var a=e.children,n=e.direction,o=e.resize,_=e.style,l=e.position,h=e.onPositionChange,k=e.size,f=e.defaultSize,b=e.defaultPosition,v=e.minWidth,w=v===void 0?280:v,z=e.minHeight,S=z===void 0?200:z,E=e.prefixCls,O=e.canResizing,P=Lv(E),T=P.styles,A=(0,g.useMemo)(function(){return O?{right:T.rightHandle,left:T.leftHandle,top:T.topHandle,bottom:T.bottomHandle}:{}},[O,n]),L=(0,g.useMemo)(function(){return O?o:Io()({top:!0,bottom:!0,right:!0,left:!0,topRight:!0,bottomRight:!0,bottomLeft:!0,topLeft:!0},o)},[O,o]),H=Io()({width:bP,height:yP},f),K=Io()({x:100,y:100},b),ae={minWidth:Math.max(w,0),minHeight:Math.max(S,0),defaultSize:H,size:k,style:_};return(0,ia.jsx)(fP,Io()(Io()({position:l,resizeHandleClasses:A,default:Io()(Io()({},K),H),onDragStop:function(se,he){h==null||h({x:he.x,y:he.y})},bound:"parent",enableResizing:L},ae),{},{className:T.float,children:a}))}),Dp=(0,g.memo)(function(e){var a=e.children,n=e.className,o=e.mode,_=e.placement,l=_===void 0?"right":_,h=e.resize,k=e.style,f=e.position,b=e.onPositionChange,v=e.size,w=e.defaultSize,z=e.defaultPosition,S=e.minWidth,E=e.minHeight,O=e.onSizeChange,P=e.onSizeDragging,T=e.expandable,A=T===void 0?!0:T,L=e.isExpand,H=e.onExpandChange,K="draggable-panel";switch(o){case"fixed":default:return(0,ia.jsx)(eP,{prefixCls:K,size:v,defaultSize:w,onSizeDragging:P,onSizeChange:O,minHeight:E,minWidth:S,resize:h,onExpandChange:H,expandable:A,isExpand:L,className:n,placement:l,style:k,children:a});case"float":return(0,ia.jsx)(vP,{prefixCls:K,defaultPosition:z,position:f,onPositionChange:b,minHeight:E,minWidth:S,defaultSize:w,size:v,onSizeDragging:P,onSizeChange:O,resize:h,canResizing:h!==!1,className:n,style:k,children:a})}}),wP={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M697.8 481.4c33.6-35 54.2-82.3 54.2-134.3v-10.2C752 229.3 663.9 142 555.3 142H259.4c-15.1 0-27.4 12.3-27.4 27.4v679.1c0 16.3 13.2 29.5 29.5 29.5h318.7c117 0 211.8-94.2 211.8-210.5v-11c0-73-37.4-137.3-94.2-175.1zM328 238h224.7c57.1 0 103.3 44.4 103.3 99.3v9.5c0 54.8-46.3 99.3-103.3 99.3H328V238zm366.6 429.4c0 62.9-51.7 113.9-115.5 113.9H328V542.7h251.1c63.8 0 115.5 51 115.5 113.9v10.8z"}}]},name:"bold",theme:"outlined"},jP=wP,Wv=function(a,n){return g.createElement(Yn,Ie(Ie({},a),{},{ref:n,icon:jP}))};Wv.displayName="BoldOutlined";var zP=g.forwardRef(Wv),xP={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M511.6 76.3C264.3 76.2 64 276.4 64 523.5 64 718.9 189.3 885 363.8 946c23.5 5.9 19.9-10.8 19.9-22.2v-77.5c-135.7 15.9-141.2-73.9-150.3-88.9C215 726 171.5 718 184.5 703c30.9-15.9 62.4 4 98.9 57.9 26.4 39.1 77.9 32.5 104 26 5.7-23.5 17.9-44.5 34.7-60.8-140.6-25.2-199.2-111-199.2-213 0-49.5 16.3-95 48.3-131.7-20.4-60.5 1.9-112.3 4.9-120 58.1-5.2 118.5 41.6 123.2 45.3 33-8.9 70.7-13.6 112.9-13.6 42.4 0 80.2 4.9 113.5 13.9 11.3-8.6 67.3-48.8 121.3-43.9 2.9 7.7 24.7 58.3 5.5 118 32.4 36.8 48.9 82.7 48.9 132.3 0 102.2-59 188.1-200 212.9a127.5 127.5 0 0138.1 91v112.5c.8 9 0 17.9 15 17.9 177.1-59.7 304.6-227 304.6-424.1 0-247.2-200.4-447.3-447.5-447.3z"}}]},name:"github",theme:"outlined"},CP=xP,Vv=function(a,n){return g.createElement(Yn,Ie(Ie({},a),{},{ref:n,icon:CP}))};Vv.displayName="GithubOutlined";var SP=g.forwardRef(Vv),PP=()=>{const[e,a]=g.useState(!1);return g.useEffect(()=>{a(yx())},[]),e};function EP(e){let{className:a,direction:n,index:o,marginDirection:_,children:l,split:h,wrap:k}=e;const{horizontalSize:f,verticalSize:b,latestIndex:v,supportFlexGap:w}=g.useContext(Bv);let z={};return w||(n==="vertical"?o{const{getPrefixCls:a,space:n,direction:o}=g.useContext(Ha),{size:_=(n==null?void 0:n.size)||"small",align:l,className:h,rootClassName:k,children:f,direction:b="horizontal",prefixCls:v,split:w,style:z,wrap:S=!1}=e,E=OP(e,["size","align","className","rootClassName","children","direction","prefixCls","split","style","wrap"]),O=PP(),[P,T]=g.useMemo(()=>(Array.isArray(_)?_:[_,_]).map(le=>DP(le)),[_]),A=Nt(f,{keepEmpty:!0}),L=l===void 0&&b==="horizontal"?"center":l,H=a("space",v),[K,ae]=cy(H),ie=ka()(H,ae,`${H}-${b}`,{[`${H}-rtl`]:o==="rtl",[`${H}-align-${L}`]:L},h,k),se=`${H}-item`,he=o==="rtl"?"marginLeft":"marginRight";let ue=0;const ze=A.map((le,be)=>{le!=null&&(ue=be);const Ve=le&&le.key||`${se}-${be}`;return g.createElement(EP,{className:se,key:Ve,direction:b,index:be,marginDirection:he,split:w,wrap:S},le)}),te=g.useMemo(()=>({horizontalSize:P,verticalSize:T,latestIndex:ue,supportFlexGap:O}),[P,T,ue,O]);if(A.length===0)return null;const re={};return S&&(re.flexWrap="wrap",O||(re.marginBottom=-T)),O&&(re.columnGap=P,re.rowGap=T),K(g.createElement("div",Object.assign({className:ie,style:Object.assign(Object.assign({},re),z)},E),g.createElement(Bv.Provider,{value:te},ze)))};qv.Compact=kz;var TP=qv;function RP(){const[,e]=g.useReducer(a=>a+1,0);return e}const AP=["xxl","xl","lg","md","sm","xs"],NP=e=>({xs:`(max-width: ${e.screenXSMax}px)`,sm:`(min-width: ${e.screenSM}px)`,md:`(min-width: ${e.screenMD}px)`,lg:`(min-width: ${e.screenLG}px)`,xl:`(min-width: ${e.screenXL}px)`,xxl:`(min-width: ${e.screenXXL}px)`}),MP=e=>{const a=e,n=[].concat(AP).reverse();return n.forEach((o,_)=>{const l=o.toUpperCase(),h=`screen${l}Min`,k=`screen${l}`;if(!(a[h]<=a[k]))throw new Error(`${h}<=${k} fails : !(${a[h]}<=${a[k]})`);if(_{const n=new Map;let o=-1,_={};return{matchHandlers:{},dispatch(l){return _=l,n.forEach(h=>h(_)),n.size>=1},subscribe(l){return n.size||this.register(),o+=1,n.set(o,l),l(_),o},unsubscribe(l){n.delete(l),n.size||this.unregister()},unregister(){Object.keys(a).forEach(l=>{const h=a[l],k=this.matchHandlers[h];k==null||k.mql.removeListener(k==null?void 0:k.listener)}),n.clear()},register(){Object.keys(a).forEach(l=>{const h=a[l],k=b=>{let{matches:v}=b;this.dispatch(Object.assign(Object.assign({},_),{[l]:v}))},f=window.matchMedia(h);f.addListener(k),this.matchHandlers[h]={mql:f,listener:k},k(f)})},responsiveMap:a}},[e])}function LP(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!0;const a=(0,g.useRef)({}),n=RP(),o=FP();return(0,g.useEffect)(()=>{const _=o.subscribe(l=>{a.current=l,e&&n()});return()=>o.unsubscribe(_)},[]),a.current}var UP=LP;function $P(){return UP()}var HP={useBreakpoint:$P},Tp=function(){var a=HP.useBreakpoint();return(0,g.useMemo)(function(){return Vh(a)},[a])},WP={light:(0,ia.jsx)("span",{role:"img",className:"anticon anticon-github",children:(0,ia.jsx)("svg",{viewBox:"0 0 16 16",width:"1em",height:"1em",fill:"currentColor",children:(0,ia.jsx)("path",{d:"M8 13a1 1 0 0 1 1 1v1a1 1 0 1 1-2 0v-1a1 1 0 0 1 1-1ZM8 3a1 1 0 0 1-1-1V1a1 1 0 1 1 2 0v1a1 1 0 0 1-1 1Zm7 4a1 1 0 1 1 0 2h-1a1 1 0 1 1 0-2h1ZM3 8a1 1 0 0 1-1 1H1a1 1 0 1 1 0-2h1a1 1 0 0 1 1 1Zm9.95 3.536.707.707a1 1 0 0 1-1.414 1.414l-.707-.707a1 1 0 0 1 1.414-1.414Zm-9.9-7.072-.707-.707a1 1 0 0 1 1.414-1.414l.707.707A1 1 0 0 1 3.05 4.464Zm9.9 0a1 1 0 0 1-1.414-1.414l.707-.707a1 1 0 0 1 1.414 1.414l-.707.707Zm-9.9 7.072a1 1 0 0 1 1.414 1.414l-.707.707a1 1 0 0 1-1.414-1.414l.707-.707ZM8 4a4 4 0 1 0 0 8 4 4 0 0 0 0-8Zm0 6.5a2.5 2.5 0 1 1 0-5 2.5 2.5 0 0 1 0 5Z"})})}),dark:(0,ia.jsx)("span",{role:"img",className:"anticon anticon-github",children:(0,ia.jsx)("svg",{viewBox:"0 0 16 16",width:"1em",height:"1em",fill:"currentColor",children:(0,ia.jsx)("path",{d:"M8.218 1.455c3.527.109 6.327 3.018 6.327 6.545 0 3.6-2.945 6.545-6.545 6.545a6.562 6.562 0 0 1-6.036-4h.218c3.6 0 6.545-2.945 6.545-6.545 0-.91-.182-1.745-.509-2.545m0-1.455c-.473 0-.909.218-1.2.618-.29.4-.327.946-.145 1.382.254.655.4 1.31.4 2 0 2.8-2.291 5.09-5.091 5.09h-.218c-.473 0-.91.22-1.2.62-.291.4-.328.945-.146 1.38C1.891 14.074 4.764 16 8 16c4.4 0 8-3.6 8-8a7.972 7.972 0 0 0-7.745-8h-.037Z"})})})},VP="https://gw.alipayobjects.com/zos/bmw-prod/9ecb2822-1592-4cb0-a087-ce0097fef2ca.svg",BP="https://gw.alipayobjects.com/zos/bmw-prod/e146116d-c65a-4306-a3d2-bb8d05e1c49b.svg",qP=(0,ia.jsx)("span",{role:"img",className:"anticon civitai",children:(0,ia.jsx)("svg",{viewBox:"0 0 16 16",width:"1em",height:"1em",fill:"currentColor",children:(0,ia.jsx)("path",{d:"M2 4.5L8 1l6 3.5v7L8 15l-6-3.5v-7zm6-1.194L3.976 5.653v4.694L8 12.694l4.024-2.347V5.653L8 3.306zm0 1.589l2.662 1.552v.824H9.25L8 6.54l-1.25.73v1.458L8 9.46l1.25-.73h1.412v.824L8 11.105 5.338 9.553V6.447L8 4.895z"})})}),GP=function(a){var n=a.size,o=n===void 0?20:n,_=a.style,l=a.themeMode;return(0,ia.jsx)("img",{src:l==="dark"?VP:BP,alt:"logo",style:Io()({height:o},_)})},XP=g.memo(GP),Gv,YP=An.div(Gv||(Gv=ki()([` + `])),o))}}),JS=150,ZS=400,Ep=function(a){switch(a){case"bottom":return"top";case"top":return"bottom";case"right":return"left";case"left":return"right"}},eP=(0,g.memo)(function(e){var a=e.children,n=e.placement,o=n===void 0?"right":n,_=e.resize,l=e.style,h=e.size,k=e.defaultSize,f=e.minWidth,b=e.minHeight,v=e.onSizeChange,w=e.onSizeDragging,z=e.expandable,S=z===void 0?!0:z,E=e.isExpand,O=e.onExpandChange,P=e.className,T="draggable-panel",A=o==="top"||o==="bottom",L=Lv(T),H=L.styles,K=L.cx,ae=V1(!0,{value:E,onChange:O}),ie=I()(ae,2),se=ie[0],he=ie[1],ue=_!==!1&&se,ze=(0,g.useMemo)(function(){return ue?Ne()({},Ep(o),H["".concat(Ep(o),"Handle")]):{}},[ue,o]),te=Io()(Ne()({top:!1,bottom:!1,right:!1,left:!1,topRight:!1,bottomRight:!1,bottomLeft:!1,topLeft:!1},Ep(o),!0),_),re=(0,g.useMemo)(function(){return A?Io()({width:"100%",height:JS},k):Io()({width:ZS,height:"100%"},k)},[A]),le=se?{minWidth:typeof f=="number"?Math.max(f,0):280,minHeight:typeof b=="number"?Math.max(b,0):void 0,defaultSize:re,size:h,style:l}:{minWidth:0,minHeight:0,size:{width:0,height:0}},be=(0,g.useMemo)(function(){switch(o){case"top":return{className:"Bottom",Arrow:u1};case"bottom":return{className:"Top",Arrow:m1};case"right":return{className:"Left",Arrow:g1};case"left":return{className:"Right",Arrow:f1}}},[H,o]),Be=be.Arrow,He=be.className;return(0,ia.jsxs)("div",{className:K(H.container,P),style:Ne()({},"border".concat(He,"Width"),1),children:[S&&(0,ia.jsx)(F1,{className:K(H["toggle".concat(He)]),onClick:function(){he(!se)},style:{opacity:se?void 0:1},children:(0,ia.jsx)(Be,{rotate:se?180:0})}),(0,ia.jsx)(S1,Io()(Io()({},le),{},{className:H.fixed,enable:ue?te:void 0,handleClasses:ze,onResizeStop:function(ca,Sa,ya,Ge){v==null||v(Ge,{width:ya.style.width,height:ya.style.height})},onResize:function(ca,Sa,ya,Ge){w==null||w(Ge,{width:ya.style.width,height:ya.style.height})},children:a}))]})}),aP=ha(1193),iP=ha.n(aP),nP=function(){var e=function(a,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(o,_){o.__proto__=_}||function(o,_){for(var l in _)Object.prototype.hasOwnProperty.call(_,l)&&(o[l]=_[l])},e(a,n)};return function(a,n){e(a,n);function o(){this.constructor=a}a.prototype=n===null?Object.create(n):(o.prototype=n.prototype,new o)}}(),Qd=function(){return Qd=Object.assign||function(e){for(var a,n=1,o=arguments.length;nNumber(z)?z:te})}if(he||this.props.lockAspectRatio&&!se&&!ue){var te=ae+(H-T)/l;this.setState({maxWidth:te>Number(z)?z:te})}if((ue||se)&&this.resizable){var te=(A-K)/l+this.resizable.size.height;this.setState({maxHeight:te>Number(S)?S:te})}if(ze||this.props.lockAspectRatio&&!ue&&!se){var te=ie+(K-A)/l;this.setState({maxHeight:te>Number(S)?S:te})}}}else this.setState({maxWidth:this.props.maxWidth,maxHeight:this.props.maxHeight});this.props.onResizeStart&&this.props.onResizeStart(n,o,_)},a.prototype.onResize=function(n,o,_,l){var h={x:this.originalPosition.x,y:this.originalPosition.y},k=-l.width,f=-l.height,b=["top","left","topLeft","bottomLeft","topRight"];b.indexOf(o)!==-1&&(o==="bottomLeft"?h.x+=k:(o==="topRight"||(h.x+=k),h.y+=f)),(h.x!==this.draggable.state.x||h.y!==this.draggable.state.y)&&this.draggable.setState(h),this.updateOffsetFromParent();var v=this.offsetFromParent,w=this.getDraggablePosition().x+v.left,z=this.getDraggablePosition().y+v.top;this.resizingPosition={x:w,y:z},this.props.onResize&&this.props.onResize(n,o,_,l,{x:w,y:z})},a.prototype.onResizeStop=function(n,o,_,l){this.setState({resizing:!1});var h=this.getMaxSizesFromProps(),k=h.maxWidth,f=h.maxHeight;this.setState({maxWidth:k,maxHeight:f}),this.props.onResizeStop&&this.props.onResizeStop(n,o,_,l,this.resizingPosition)},a.prototype.updateSize=function(n){this.resizable&&this.resizable.updateSize({width:n.width,height:n.height})},a.prototype.updatePosition=function(n){this.draggable.setState(n)},a.prototype.updateOffsetFromParent=function(){var n=this.props.scale,o=this.getParent(),_=this.getSelfElement();if(!o||_===null)return{top:0,left:0};var l=o.getBoundingClientRect(),h=l.left,k=l.top,f=_.getBoundingClientRect(),b=this.getDraggablePosition(),v=o.scrollLeft,w=o.scrollTop;this.offsetFromParent={left:f.left-h+v-b.x*n,top:f.top-k+w-b.y*n}},a.prototype.render=function(){var n=this.props,o=n.disableDragging,_=n.style,l=n.dragHandleClassName,h=n.position,k=n.onMouseDown,f=n.onMouseUp,b=n.dragAxis,v=n.dragGrid,w=n.bounds,z=n.enableUserSelectHack,S=n.cancel,E=n.children,O=n.onResizeStart,P=n.onResize,T=n.onResizeStop,A=n.onDragStart,L=n.onDrag,H=n.onDragStop,K=n.resizeHandleStyles,ae=n.resizeHandleClasses,ie=n.resizeHandleComponent,se=n.enableResizing,he=n.resizeGrid,ue=n.resizeHandleWrapperClass,ze=n.resizeHandleWrapperStyle,te=n.scale,re=n.allowAnyClick,le=dP(n,["disableDragging","style","dragHandleClassName","position","onMouseDown","onMouseUp","dragAxis","dragGrid","bounds","enableUserSelectHack","cancel","children","onResizeStart","onResize","onResizeStop","onDragStart","onDrag","onDragStop","resizeHandleStyles","resizeHandleClasses","resizeHandleComponent","enableResizing","resizeGrid","resizeHandleWrapperClass","resizeHandleWrapperStyle","scale","allowAnyClick"]),be=this.props.default?un({},this.props.default):void 0;delete le.default;var Be=o||l?{cursor:"auto"}:{cursor:"move"},He=un(un(un({},kP),Be),_),ea=this.offsetFromParent,ca=ea.left,Sa=ea.top,ya;h&&(ya={x:h.x-ca,y:h.y-Sa});var Ge=this.state.resizing?void 0:ya,$e=this.state.resizing?"both":b;return(0,g.createElement)(gP,{ref:this.refDraggable,handle:l?".".concat(l):void 0,defaultPosition:be,onMouseDown:k,onMouseUp:f,onStart:this.onDragStart,onDrag:this.onDrag,onStop:this.onDragStop,axis:$e,disabled:o,grid:v,bounds:w?this.state.bounds:void 0,position:Ge,enableUserSelectHack:z,cancel:S,scale:te,allowAnyClick:re,nodeRef:this.resizableElement},(0,g.createElement)(mP,un({},le,{ref:this.refResizable,defaultSize:be,size:this.props.size,enable:typeof se=="boolean"?pP(se):se,onResizeStart:this.onResizeStart,onResize:this.onResize,onResizeStop:this.onResizeStop,style:He,minWidth:this.props.minWidth,minHeight:this.props.minHeight,maxWidth:this.state.resizing?this.state.maxWidth:this.props.maxWidth,maxHeight:this.state.resizing?this.state.maxHeight:this.props.maxHeight,grid:he,handleWrapperClass:ue,handleWrapperStyle:ze,lockAspectRatio:this.props.lockAspectRatio,lockAspectRatioExtraWidth:this.props.lockAspectRatioExtraWidth,lockAspectRatioExtraHeight:this.props.lockAspectRatioExtraHeight,handleStyles:K,handleClasses:ae,handleComponent:ie,scale:this.props.scale}),E))},a.defaultProps={maxWidth:Number.MAX_SAFE_INTEGER,maxHeight:Number.MAX_SAFE_INTEGER,scale:1,onResizeStart:function(){},onResize:function(){},onResizeStop:function(){},onDragStart:function(){},onDrag:function(){},onDragStop:function(){}},a}(g.PureComponent),yP=300,bP=400,vP=(0,g.memo)(function(e){var a=e.children,n=e.direction,o=e.resize,_=e.style,l=e.position,h=e.onPositionChange,k=e.size,f=e.defaultSize,b=e.defaultPosition,v=e.minWidth,w=v===void 0?280:v,z=e.minHeight,S=z===void 0?200:z,E=e.prefixCls,O=e.canResizing,P=Lv(E),T=P.styles,A=(0,g.useMemo)(function(){return O?{right:T.rightHandle,left:T.leftHandle,top:T.topHandle,bottom:T.bottomHandle}:{}},[O,n]),L=(0,g.useMemo)(function(){return O?o:Io()({top:!0,bottom:!0,right:!0,left:!0,topRight:!0,bottomRight:!0,bottomLeft:!0,topLeft:!0},o)},[O,o]),H=Io()({width:bP,height:yP},f),K=Io()({x:100,y:100},b),ae={minWidth:Math.max(w,0),minHeight:Math.max(S,0),defaultSize:H,size:k,style:_};return(0,ia.jsx)(fP,Io()(Io()({position:l,resizeHandleClasses:A,default:Io()(Io()({},K),H),onDragStop:function(se,he){h==null||h({x:he.x,y:he.y})},bound:"parent",enableResizing:L},ae),{},{className:T.float,children:a}))}),Dp=(0,g.memo)(function(e){var a=e.children,n=e.className,o=e.mode,_=e.placement,l=_===void 0?"right":_,h=e.resize,k=e.style,f=e.position,b=e.onPositionChange,v=e.size,w=e.defaultSize,z=e.defaultPosition,S=e.minWidth,E=e.minHeight,O=e.onSizeChange,P=e.onSizeDragging,T=e.expandable,A=T===void 0?!0:T,L=e.isExpand,H=e.onExpandChange,K="draggable-panel";switch(o){case"fixed":default:return(0,ia.jsx)(eP,{prefixCls:K,size:v,defaultSize:w,onSizeDragging:P,onSizeChange:O,minHeight:E,minWidth:S,resize:h,onExpandChange:H,expandable:A,isExpand:L,className:n,placement:l,style:k,children:a});case"float":return(0,ia.jsx)(vP,{prefixCls:K,defaultPosition:z,position:f,onPositionChange:b,minHeight:E,minWidth:S,defaultSize:w,size:v,onSizeDragging:P,onSizeChange:O,resize:h,canResizing:h!==!1,className:n,style:k,children:a})}}),wP={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M697.8 481.4c33.6-35 54.2-82.3 54.2-134.3v-10.2C752 229.3 663.9 142 555.3 142H259.4c-15.1 0-27.4 12.3-27.4 27.4v679.1c0 16.3 13.2 29.5 29.5 29.5h318.7c117 0 211.8-94.2 211.8-210.5v-11c0-73-37.4-137.3-94.2-175.1zM328 238h224.7c57.1 0 103.3 44.4 103.3 99.3v9.5c0 54.8-46.3 99.3-103.3 99.3H328V238zm366.6 429.4c0 62.9-51.7 113.9-115.5 113.9H328V542.7h251.1c63.8 0 115.5 51 115.5 113.9v10.8z"}}]},name:"bold",theme:"outlined"},jP=wP,Wv=function(a,n){return g.createElement(Yn,Ie(Ie({},a),{},{ref:n,icon:jP}))};Wv.displayName="BoldOutlined";var zP=g.forwardRef(Wv),xP={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M511.6 76.3C264.3 76.2 64 276.4 64 523.5 64 718.9 189.3 885 363.8 946c23.5 5.9 19.9-10.8 19.9-22.2v-77.5c-135.7 15.9-141.2-73.9-150.3-88.9C215 726 171.5 718 184.5 703c30.9-15.9 62.4 4 98.9 57.9 26.4 39.1 77.9 32.5 104 26 5.7-23.5 17.9-44.5 34.7-60.8-140.6-25.2-199.2-111-199.2-213 0-49.5 16.3-95 48.3-131.7-20.4-60.5 1.9-112.3 4.9-120 58.1-5.2 118.5 41.6 123.2 45.3 33-8.9 70.7-13.6 112.9-13.6 42.4 0 80.2 4.9 113.5 13.9 11.3-8.6 67.3-48.8 121.3-43.9 2.9 7.7 24.7 58.3 5.5 118 32.4 36.8 48.9 82.7 48.9 132.3 0 102.2-59 188.1-200 212.9a127.5 127.5 0 0138.1 91v112.5c.8 9 0 17.9 15 17.9 177.1-59.7 304.6-227 304.6-424.1 0-247.2-200.4-447.3-447.5-447.3z"}}]},name:"github",theme:"outlined"},CP=xP,Bv=function(a,n){return g.createElement(Yn,Ie(Ie({},a),{},{ref:n,icon:CP}))};Bv.displayName="GithubOutlined";var SP=g.forwardRef(Bv),PP=()=>{const[e,a]=g.useState(!1);return g.useEffect(()=>{a(yx())},[]),e};function EP(e){let{className:a,direction:n,index:o,marginDirection:_,children:l,split:h,wrap:k}=e;const{horizontalSize:f,verticalSize:b,latestIndex:v,supportFlexGap:w}=g.useContext(Vv);let z={};return w||(n==="vertical"?o{const{getPrefixCls:a,space:n,direction:o}=g.useContext(Ha),{size:_=(n==null?void 0:n.size)||"small",align:l,className:h,rootClassName:k,children:f,direction:b="horizontal",prefixCls:v,split:w,style:z,wrap:S=!1}=e,E=OP(e,["size","align","className","rootClassName","children","direction","prefixCls","split","style","wrap"]),O=PP(),[P,T]=g.useMemo(()=>(Array.isArray(_)?_:[_,_]).map(le=>DP(le)),[_]),A=Nt(f,{keepEmpty:!0}),L=l===void 0&&b==="horizontal"?"center":l,H=a("space",v),[K,ae]=cy(H),ie=ka()(H,ae,`${H}-${b}`,{[`${H}-rtl`]:o==="rtl",[`${H}-align-${L}`]:L},h,k),se=`${H}-item`,he=o==="rtl"?"marginLeft":"marginRight";let ue=0;const ze=A.map((le,be)=>{le!=null&&(ue=be);const Be=le&&le.key||`${se}-${be}`;return g.createElement(EP,{className:se,key:Be,direction:b,index:be,marginDirection:he,split:w,wrap:S},le)}),te=g.useMemo(()=>({horizontalSize:P,verticalSize:T,latestIndex:ue,supportFlexGap:O}),[P,T,ue,O]);if(A.length===0)return null;const re={};return S&&(re.flexWrap="wrap",O||(re.marginBottom=-T)),O&&(re.columnGap=P,re.rowGap=T),K(g.createElement("div",Object.assign({className:ie,style:Object.assign(Object.assign({},re),z)},E),g.createElement(Vv.Provider,{value:te},ze)))};qv.Compact=kz;var TP=qv;function RP(){const[,e]=g.useReducer(a=>a+1,0);return e}const AP=["xxl","xl","lg","md","sm","xs"],NP=e=>({xs:`(max-width: ${e.screenXSMax}px)`,sm:`(min-width: ${e.screenSM}px)`,md:`(min-width: ${e.screenMD}px)`,lg:`(min-width: ${e.screenLG}px)`,xl:`(min-width: ${e.screenXL}px)`,xxl:`(min-width: ${e.screenXXL}px)`}),MP=e=>{const a=e,n=[].concat(AP).reverse();return n.forEach((o,_)=>{const l=o.toUpperCase(),h=`screen${l}Min`,k=`screen${l}`;if(!(a[h]<=a[k]))throw new Error(`${h}<=${k} fails : !(${a[h]}<=${a[k]})`);if(_{const n=new Map;let o=-1,_={};return{matchHandlers:{},dispatch(l){return _=l,n.forEach(h=>h(_)),n.size>=1},subscribe(l){return n.size||this.register(),o+=1,n.set(o,l),l(_),o},unsubscribe(l){n.delete(l),n.size||this.unregister()},unregister(){Object.keys(a).forEach(l=>{const h=a[l],k=this.matchHandlers[h];k==null||k.mql.removeListener(k==null?void 0:k.listener)}),n.clear()},register(){Object.keys(a).forEach(l=>{const h=a[l],k=b=>{let{matches:v}=b;this.dispatch(Object.assign(Object.assign({},_),{[l]:v}))},f=window.matchMedia(h);f.addListener(k),this.matchHandlers[h]={mql:f,listener:k},k(f)})},responsiveMap:a}},[e])}function LP(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!0;const a=(0,g.useRef)({}),n=RP(),o=FP();return(0,g.useEffect)(()=>{const _=o.subscribe(l=>{a.current=l,e&&n()});return()=>o.unsubscribe(_)},[]),a.current}var UP=LP;function $P(){return UP()}var HP={useBreakpoint:$P},Tp=function(){var a=HP.useBreakpoint();return(0,g.useMemo)(function(){return Bh(a)},[a])},WP={light:(0,ia.jsx)("span",{role:"img",className:"anticon anticon-github",children:(0,ia.jsx)("svg",{viewBox:"0 0 16 16",width:"1em",height:"1em",fill:"currentColor",children:(0,ia.jsx)("path",{d:"M8 13a1 1 0 0 1 1 1v1a1 1 0 1 1-2 0v-1a1 1 0 0 1 1-1ZM8 3a1 1 0 0 1-1-1V1a1 1 0 1 1 2 0v1a1 1 0 0 1-1 1Zm7 4a1 1 0 1 1 0 2h-1a1 1 0 1 1 0-2h1ZM3 8a1 1 0 0 1-1 1H1a1 1 0 1 1 0-2h1a1 1 0 0 1 1 1Zm9.95 3.536.707.707a1 1 0 0 1-1.414 1.414l-.707-.707a1 1 0 0 1 1.414-1.414Zm-9.9-7.072-.707-.707a1 1 0 0 1 1.414-1.414l.707.707A1 1 0 0 1 3.05 4.464Zm9.9 0a1 1 0 0 1-1.414-1.414l.707-.707a1 1 0 0 1 1.414 1.414l-.707.707Zm-9.9 7.072a1 1 0 0 1 1.414 1.414l-.707.707a1 1 0 0 1-1.414-1.414l.707-.707ZM8 4a4 4 0 1 0 0 8 4 4 0 0 0 0-8Zm0 6.5a2.5 2.5 0 1 1 0-5 2.5 2.5 0 0 1 0 5Z"})})}),dark:(0,ia.jsx)("span",{role:"img",className:"anticon anticon-github",children:(0,ia.jsx)("svg",{viewBox:"0 0 16 16",width:"1em",height:"1em",fill:"currentColor",children:(0,ia.jsx)("path",{d:"M8.218 1.455c3.527.109 6.327 3.018 6.327 6.545 0 3.6-2.945 6.545-6.545 6.545a6.562 6.562 0 0 1-6.036-4h.218c3.6 0 6.545-2.945 6.545-6.545 0-.91-.182-1.745-.509-2.545m0-1.455c-.473 0-.909.218-1.2.618-.29.4-.327.946-.145 1.382.254.655.4 1.31.4 2 0 2.8-2.291 5.09-5.091 5.09h-.218c-.473 0-.91.22-1.2.62-.291.4-.328.945-.146 1.38C1.891 14.074 4.764 16 8 16c4.4 0 8-3.6 8-8a7.972 7.972 0 0 0-7.745-8h-.037Z"})})})},BP="https://gw.alipayobjects.com/zos/bmw-prod/9ecb2822-1592-4cb0-a087-ce0097fef2ca.svg",VP="https://gw.alipayobjects.com/zos/bmw-prod/e146116d-c65a-4306-a3d2-bb8d05e1c49b.svg",qP=(0,ia.jsx)("span",{role:"img",className:"anticon civitai",children:(0,ia.jsx)("svg",{viewBox:"0 0 16 16",width:"1em",height:"1em",fill:"currentColor",children:(0,ia.jsx)("path",{d:"M2 4.5L8 1l6 3.5v7L8 15l-6-3.5v-7zm6-1.194L3.976 5.653v4.694L8 12.694l4.024-2.347V5.653L8 3.306zm0 1.589l2.662 1.552v.824H9.25L8 6.54l-1.25.73v1.458L8 9.46l1.25-.73h1.412v.824L8 11.105 5.338 9.553V6.447L8 4.895z"})})}),GP=function(a){var n=a.size,o=n===void 0?20:n,_=a.style,l=a.themeMode;return(0,ia.jsx)("img",{src:l==="dark"?BP:VP,alt:"logo",style:Io()({height:o},_)})},XP=g.memo(GP),Gv,YP=An.div(Gv||(Gv=ki()([` padding: 16px 24px; display: flex; flex-wrap: nowrap; @@ -683,14 +683,14 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho overflow-x: hidden; overflow-y: auto; height: -webkit-fill-available; -`]))),gE=function(a){var n=a.children,o=a.loading,_=a.style,l=Tp(),h=l.mobile,k=(0,g.useState)(!h),f=I()(k,2),b=f[0],v=f[1];return(0,g.useEffect)(function(){v(!h)},[h]),(0,ia.jsx)(Dp,{style:_,placement:"left",defaultSize:{width:280},isExpand:b,onExpandChange:v,children:(0,ia.jsxs)(dE,{children:[!o&&(0,ia.jsx)(hE,{}),n]})})},kE=g.memo(gE);const ag=["blue","purple","cyan","green","magenta","pink","red","orange","yellow","volcano","geekblue","lime","gold"],pE=ag.map(e=>`${e}-inverse`),fE=null;function Rp(e){return(arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0)?[].concat(xa(pE),xa(ag)).includes(e):ag.includes(e)}function xR(e){return fE.includes(e)}function Ap(e,a){return ag.reduce((n,o)=>{const _=e[`${o}1`],l=e[`${o}3`],h=e[`${o}6`],k=e[`${o}7`];return Object.assign(Object.assign({},n),a(o,{lightColor:_,lightBorderColor:l,darkColor:h,textColor:k}))},{})}const yE=new ui("antStatusProcessing",{"0%":{transform:"scale(0.8)",opacity:.5},"100%":{transform:"scale(2.4)",opacity:0}}),bE=new ui("antZoomBadgeIn",{"0%":{transform:"scale(0) translate(50%, -50%)",opacity:0},"100%":{transform:"scale(1) translate(50%, -50%)"}}),vE=new ui("antZoomBadgeOut",{"0%":{transform:"scale(1) translate(50%, -50%)"},"100%":{transform:"scale(0) translate(50%, -50%)",opacity:0}}),wE=new ui("antNoWrapperZoomBadgeIn",{"0%":{transform:"scale(0)",opacity:0},"100%":{transform:"scale(1)"}}),jE=new ui("antNoWrapperZoomBadgeOut",{"0%":{transform:"scale(1)"},"100%":{transform:"scale(0)",opacity:0}}),zE=new ui("antBadgeLoadingCircle",{"0%":{transformOrigin:"50%"},"100%":{transform:"translate(50%, -50%) rotate(360deg)",transformOrigin:"50%"}}),xE=e=>{const{componentCls:a,iconCls:n,antCls:o,badgeFontHeight:_,badgeShadowSize:l,badgeHeightSm:h,motionDurationSlow:k,badgeStatusSize:f,marginXS:b,badgeRibbonOffset:v}=e,w=`${o}-scroll-number`,z=`${o}-ribbon`,S=`${o}-ribbon-wrapper`,E=Ap(e,(P,T)=>{let{darkColor:A}=T;return{[`${a}-color-${P}`]:{background:A}}}),O=Ap(e,(P,T)=>{let{darkColor:A}=T;return{[`&${z}-color-${P}`]:{background:A,color:A}}});return{[a]:Object.assign(Object.assign(Object.assign(Object.assign({},it(e)),{position:"relative",display:"inline-block",width:"fit-content",lineHeight:1,[`${a}-count`]:{zIndex:e.badgeZIndex,minWidth:e.badgeHeight,height:e.badgeHeight,color:e.badgeTextColor,fontWeight:e.badgeFontWeight,fontSize:e.badgeFontSize,lineHeight:`${e.badgeHeight}px`,whiteSpace:"nowrap",textAlign:"center",background:e.badgeColor,borderRadius:e.badgeHeight/2,boxShadow:`0 0 0 ${l}px ${e.badgeShadowColor}`,transition:`background ${e.motionDurationMid}`,a:{color:e.badgeTextColor},"a:hover":{color:e.badgeTextColor},"a:hover &":{background:e.badgeColorHover}},[`${a}-count-sm`]:{minWidth:h,height:h,fontSize:e.badgeFontSizeSm,lineHeight:`${h}px`,borderRadius:h/2},[`${a}-multiple-words`]:{padding:`0 ${e.paddingXS}px`},[`${a}-dot`]:{zIndex:e.badgeZIndex,width:e.badgeDotSize,minWidth:e.badgeDotSize,height:e.badgeDotSize,background:e.badgeColor,borderRadius:"100%",boxShadow:`0 0 0 ${l}px ${e.badgeShadowColor}`},[`${a}-dot${w}`]:{transition:`background ${k}`},[`${a}-count, ${a}-dot, ${w}-custom-component`]:{position:"absolute",top:0,insetInlineEnd:0,transform:"translate(50%, -50%)",transformOrigin:"100% 0%",[`${n}-spin`]:{animationName:zE,animationDuration:e.motionDurationMid,animationIterationCount:"infinite",animationTimingFunction:"linear"}},[`&${a}-status`]:{lineHeight:"inherit",verticalAlign:"baseline",[`${a}-status-dot`]:{position:"relative",top:-1,display:"inline-block",width:f,height:f,verticalAlign:"middle",borderRadius:"50%"},[`${a}-status-success`]:{backgroundColor:e.colorSuccess},[`${a}-status-processing`]:{position:"relative",color:e.colorPrimary,backgroundColor:e.colorPrimary,"&::after":{position:"absolute",top:0,insetInlineStart:0,width:"100%",height:"100%",borderWidth:l,borderStyle:"solid",borderColor:"inherit",borderRadius:"50%",animationName:yE,animationDuration:e.badgeProcessingDuration,animationIterationCount:"infinite",animationTimingFunction:"ease-in-out",content:'""'}},[`${a}-status-default`]:{backgroundColor:e.colorTextPlaceholder},[`${a}-status-error`]:{backgroundColor:e.colorError},[`${a}-status-warning`]:{backgroundColor:e.colorWarning},[`${a}-status-text`]:{marginInlineStart:b,color:e.colorText,fontSize:e.fontSize}}}),E),{[`${a}-zoom-appear, ${a}-zoom-enter`]:{animationName:bE,animationDuration:e.motionDurationSlow,animationTimingFunction:e.motionEaseOutBack,animationFillMode:"both"},[`${a}-zoom-leave`]:{animationName:vE,animationDuration:e.motionDurationSlow,animationTimingFunction:e.motionEaseOutBack,animationFillMode:"both"},[`&${a}-not-a-wrapper`]:{[`${a}-zoom-appear, ${a}-zoom-enter`]:{animationName:wE,animationDuration:e.motionDurationSlow,animationTimingFunction:e.motionEaseOutBack},[`${a}-zoom-leave`]:{animationName:jE,animationDuration:e.motionDurationSlow,animationTimingFunction:e.motionEaseOutBack},[`&:not(${a}-status)`]:{verticalAlign:"middle"},[`${w}-custom-component, ${a}-count`]:{transform:"none"},[`${w}-custom-component, ${w}`]:{position:"relative",top:"auto",display:"block",transformOrigin:"50% 50%"}},[`${w}`]:{overflow:"hidden",[`${w}-only`]:{position:"relative",display:"inline-block",height:e.badgeHeight,transition:`all ${e.motionDurationSlow} ${e.motionEaseOutBack}`,WebkitTransformStyle:"preserve-3d",WebkitBackfaceVisibility:"hidden",[`> p${w}-only-unit`]:{height:e.badgeHeight,margin:0,WebkitTransformStyle:"preserve-3d",WebkitBackfaceVisibility:"hidden"}},[`${w}-symbol`]:{verticalAlign:"top"}},"&-rtl":{direction:"rtl",[`${a}-count, ${a}-dot, ${w}-custom-component`]:{transform:"translate(-50%, -50%)"}}}),[`${S}`]:{position:"relative"},[`${z}`]:Object.assign(Object.assign(Object.assign(Object.assign({},it(e)),{position:"absolute",top:b,padding:`0 ${e.paddingXS}px`,color:e.colorPrimary,lineHeight:`${_}px`,whiteSpace:"nowrap",backgroundColor:e.colorPrimary,borderRadius:e.borderRadiusSM,[`${z}-text`]:{color:e.colorTextLightSolid},[`${z}-corner`]:{position:"absolute",top:"100%",width:v,height:v,color:"currentcolor",border:`${v/2}px solid`,transform:e.badgeRibbonCornerTransform,transformOrigin:"top",filter:e.badgeRibbonCornerFilter}}),O),{[`&${z}-placement-end`]:{insetInlineEnd:-v,borderEndEndRadius:0,[`${z}-corner`]:{insetInlineEnd:0,borderInlineEndColor:"transparent",borderBlockEndColor:"transparent"}},[`&${z}-placement-start`]:{insetInlineStart:-v,borderEndStartRadius:0,[`${z}-corner`]:{insetInlineStart:0,borderBlockEndColor:"transparent",borderInlineStartColor:"transparent"}},"&-rtl":{direction:"rtl"}})}};var tw=dr("Badge",e=>{const{fontSize:a,lineHeight:n,fontSizeSM:o,lineWidth:_,marginXS:l,colorBorderBg:h}=e,k=Math.round(a*n),f=_,b="auto",v=k-2*f,w=e.colorBgContainer,z="normal",S=o,E=e.colorError,O=e.colorErrorHover,P=a,T=o/2,A=o,L=o/2,H=Po(e,{badgeFontHeight:k,badgeShadowSize:f,badgeZIndex:b,badgeHeight:v,badgeTextColor:w,badgeFontWeight:z,badgeFontSize:S,badgeColor:E,badgeColorHover:O,badgeShadowColor:h,badgeHeightSm:P,badgeDotSize:T,badgeFontSizeSm:A,badgeStatusSize:L,badgeProcessingDuration:"1.2s",badgeRibbonOffset:l,badgeRibbonCornerTransform:"scaleY(0.75)",badgeRibbonCornerFilter:"brightness(75%)"});return[xE(H)]}),CE=e=>{let{className:a,prefixCls:n,style:o,color:_,children:l,text:h,placement:k="end"}=e;const{getPrefixCls:f,direction:b}=g.useContext(Ha),v=f("ribbon",n),w=Rp(_,!1),z=ka()(v,`${v}-placement-${k}`,{[`${v}-rtl`]:b==="rtl",[`${v}-color-${_}`]:w},a),[S,E]=tw(v),O={},P={};return _&&!w&&(O.background=_,P.color=_),S(g.createElement("div",{className:ka()(`${v}-wrapper`,E)},l,g.createElement("div",{className:ka()(z,E),style:Object.assign(Object.assign({},O),o)},g.createElement("span",{className:`${v}-text`},h),g.createElement("div",{className:`${v}-corner`,style:P}))))};function _w(e){let{prefixCls:a,value:n,current:o,offset:_=0}=e,l;return _&&(l={position:"absolute",top:`${_}00%`,left:0}),g.createElement("span",{style:l,className:ka()(`${a}-only-unit`,{current:o})},n)}function SE(e,a,n){let o=e,_=0;for(;(o+10)%10!==a;)o+=n,_+=n;return _}function PE(e){const{prefixCls:a,count:n,value:o}=e,_=Number(o),l=Math.abs(n),[h,k]=g.useState(_),[f,b]=g.useState(l),v=()=>{k(_),b(l)};g.useEffect(()=>{const S=setTimeout(()=>{v()},1e3);return()=>{clearTimeout(S)}},[_]);let w,z;if(h===_||Number.isNaN(_)||Number.isNaN(h))w=[g.createElement(_w,Object.assign({},e,{key:_,current:!0}))],z={transition:"none"};else{w=[];const S=_+10,E=[];for(let T=_;T<=S;T+=1)E.push(T);const O=E.findIndex(T=>T%10===h);w=E.map((T,A)=>{const L=T%10;return g.createElement(_w,Object.assign({},e,{key:T,value:L,offset:A-O,current:A===O}))});const P=f{var{prefixCls:n,count:o,className:_,motionClassName:l,style:h,title:k,show:f,component:b="sup",children:v}=e,w=EE(e,["prefixCls","count","className","motionClassName","style","title","show","component","children"]);const{getPrefixCls:z}=g.useContext(Ha),S=z("scroll-number",n),E=Object.assign(Object.assign({},w),{"data-show":f,style:h,className:ka()(S,_,l),title:k});let O=o;if(o&&Number(o)%1===0){const P=String(o).split("");O=P.map((T,A)=>g.createElement(PE,{prefixCls:S,count:Number(o),value:T,key:P.length-A}))}return h&&h.borderColor&&(E.style=Object.assign(Object.assign({},h),{boxShadow:`0 0 0 1px ${h.borderColor} inset`})),v?es(v,P=>({className:ka()(`${S}-custom-component`,P==null?void 0:P.className,l)})):g.createElement(b,Object.assign({},E,{ref:a}),O)}),IE=function(e,a){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&a.indexOf(o)<0&&(n[o]=e[o]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var _=0,o=Object.getOwnPropertySymbols(e);_{var{prefixCls:a,scrollNumberPrefixCls:n,children:o,status:_,text:l,color:h,count:k=null,overflowCount:f=99,dot:b=!1,size:v="default",title:w,offset:z,style:S,className:E,rootClassName:O,showZero:P=!1}=e,T=IE(e,["prefixCls","scrollNumberPrefixCls","children","status","text","color","count","overflowCount","dot","size","title","offset","style","className","rootClassName","showZero"]);const{getPrefixCls:A,direction:L}=g.useContext(Ha),H=A("badge",a),[K,ae]=tw(H),ie=k>f?`${f}+`:k,se=ie==="0"||ie===0,he=k===null||se&&!P,ue=(_!=null||h!=null)&&he,ze=b&&!se,te=ze?"":ie,re=(0,g.useMemo)(()=>(te==null||te===""||se&&!P)&&!ze,[te,se,P,ze]),le=(0,g.useRef)(k);re||(le.current=k);const be=le.current,Ve=(0,g.useRef)(te);re||(Ve.current=te);const He=Ve.current,ea=(0,g.useRef)(ze);re||(ea.current=ze);const ca=(0,g.useMemo)(()=>{if(!z)return Object.assign({},S);const pa={marginTop:z[1]};return L==="rtl"?pa.left=parseInt(z[0],10):pa.right=-parseInt(z[0],10),Object.assign(Object.assign({},pa),S)},[L,z,S]),Sa=w!=null?w:typeof be=="string"||typeof be=="number"?be:void 0,ya=re||!l?null:g.createElement("span",{className:`${H}-status-text`},l),Ge=!be||typeof be!="object"?void 0:es(be,pa=>({style:Object.assign(Object.assign({},ca),pa.style)})),$e=Rp(h,!1),ra=ka()({[`${H}-status-dot`]:ue,[`${H}-status-${_}`]:!!_,[`${H}-color-${h}`]:$e}),Xe={};h&&!$e&&(Xe.color=h,Xe.background=h);const Se=ka()(H,{[`${H}-status`]:ue,[`${H}-not-a-wrapper`]:!o,[`${H}-rtl`]:L==="rtl"},E,O,ae);if(!o&&ue){const pa=ca.color;return K(g.createElement("span",Object.assign({},T,{className:Se,style:ca}),g.createElement("span",{className:ra,style:Xe}),l&&g.createElement("span",{style:{color:pa},className:`${H}-status-text`},l)))}return K(g.createElement("span",Object.assign({},T,{className:Se}),o,g.createElement(Vt,{visible:!re,motionName:`${H}-zoom`,motionAppear:!1,motionDeadline:1e3},pa=>{let{className:Ze,ref:Ia}=pa;const Ta=A("scroll-number",n),da=ea.current,Ca=ka()({[`${H}-dot`]:da,[`${H}-count`]:!da,[`${H}-count-sm`]:v==="small",[`${H}-multiple-words`]:!da&&He&&He.toString().length>1,[`${H}-status-${_}`]:!!_,[`${H}-color-${h}`]:$e});let Ra=Object.assign({},ca);return h&&!$e&&(Ra=Ra||{},Ra.background=h),g.createElement(OE,{prefixCls:Ta,show:!re,motionClassName:Ze,className:Ca,count:He,title:Sa,style:Ra,key:"scrollNumber",ref:Ia},Ge)}),ya))};sw.Ribbon=CE;var DE=sw,uw=function(){if(typeof Map!="undefined")return Map;function e(a,n){var o=-1;return a.some(function(_,l){return _[0]===n?(o=l,!0):!1}),o}return function(){function a(){this.__entries__=[]}return Object.defineProperty(a.prototype,"size",{get:function(){return this.__entries__.length},enumerable:!0,configurable:!0}),a.prototype.get=function(n){var o=e(this.__entries__,n),_=this.__entries__[o];return _&&_[1]},a.prototype.set=function(n,o){var _=e(this.__entries__,n);~_?this.__entries__[_][1]=o:this.__entries__.push([n,o])},a.prototype.delete=function(n){var o=this.__entries__,_=e(o,n);~_&&o.splice(_,1)},a.prototype.has=function(n){return!!~e(this.__entries__,n)},a.prototype.clear=function(){this.__entries__.splice(0)},a.prototype.forEach=function(n,o){o===void 0&&(o=null);for(var _=0,l=this.__entries__;_0},e.prototype.connect_=function(){!Np||this.connected_||(document.addEventListener("transitionend",this.onTransitionEnd_),window.addEventListener("resize",this.refresh),FE?(this.mutationsObserver_=new MutationObserver(this.refresh),this.mutationsObserver_.observe(document,{attributes:!0,childList:!0,characterData:!0,subtree:!0})):(document.addEventListener("DOMSubtreeModified",this.refresh),this.mutationEventsAdded_=!0),this.connected_=!0)},e.prototype.disconnect_=function(){!Np||!this.connected_||(document.removeEventListener("transitionend",this.onTransitionEnd_),window.removeEventListener("resize",this.refresh),this.mutationsObserver_&&this.mutationsObserver_.disconnect(),this.mutationEventsAdded_&&document.removeEventListener("DOMSubtreeModified",this.refresh),this.mutationsObserver_=null,this.mutationEventsAdded_=!1,this.connected_=!1)},e.prototype.onTransitionEnd_=function(a){var n=a.propertyName,o=n===void 0?"":n,_=ME.some(function(l){return!!~o.indexOf(l)});_&&this.refresh()},e.getInstance=function(){return this.instance_||(this.instance_=new e),this.instance_},e.instance_=null,e}(),lw=function(e,a){for(var n=0,o=Object.keys(a);n0},e}(),hw=typeof WeakMap!="undefined"?new WeakMap:new uw,dw=function(){function e(a){if(!(this instanceof e))throw new TypeError("Cannot call a class as a function.");if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");var n=LE.getInstance(),o=new YE(a,n,this);hw.set(this,o)}return e}();["observe","unobserve","disconnect"].forEach(function(e){dw.prototype[e]=function(){var a;return(a=hw.get(this))[e].apply(a,arguments)}});var KE=function(){return typeof ig.ResizeObserver!="undefined"?ig.ResizeObserver:dw}(),QE=KE,ts=new Map;function JE(e){e.forEach(function(a){var n,o=a.target;(n=ts.get(o))===null||n===void 0||n.forEach(function(_){return _(o)})})}var gw=new QE(JE),PR=null,ER=null;function ZE(e,a){ts.has(e)||(ts.set(e,new Set),gw.observe(e)),ts.get(e).add(a)}function eO(e,a){ts.has(e)&&(ts.get(e).delete(a),ts.get(e).size||(gw.unobserve(e),ts.delete(e)))}var aO=function(e){iu(n,e);var a=nu(n);function n(){return mn(this,n),a.apply(this,arguments)}return M(n,[{key:"render",value:function(){return this.props.children}}]),n}(g.Component),Mp=g.createContext(null);function iO(e){var a=e.children,n=e.onBatchResize,o=g.useRef(0),_=g.useRef([]),l=g.useContext(Mp),h=g.useCallback(function(k,f,b){o.current+=1;var v=o.current;_.current.push({size:k,element:f,data:b}),Promise.resolve().then(function(){v===o.current&&(n==null||n(_.current),_.current=[])}),l==null||l(k,f,b)},[n,l]);return g.createElement(Mp.Provider,{value:h},a)}function nO(e,a){var n=e.children,o=e.disabled,_=g.useRef(null),l=g.useRef(null),h=g.useContext(Mp),k=typeof n=="function",f=k?n(_):n,b=g.useRef({width:-1,height:-1,offsetWidth:-1,offsetHeight:-1}),v=!k&&g.isValidElement(f)&&Fm(f),w=v?f.ref:null,z=g.useMemo(function(){return Mm(w,_)},[w,_]),S=function(){return kk(_.current)||kk(l.current)};g.useImperativeHandle(a,function(){return S()});var E=g.useRef(e);E.current=e;var O=g.useCallback(function(P){var T=E.current,A=T.onResize,L=T.data,H=P.getBoundingClientRect(),K=H.width,ae=H.height,ie=P.offsetWidth,se=P.offsetHeight,he=Math.floor(K),ue=Math.floor(ae);if(b.current.width!==he||b.current.height!==ue||b.current.offsetWidth!==ie||b.current.offsetHeight!==se){var ze={width:he,height:ue,offsetWidth:ie,offsetHeight:se};b.current=ze;var te=ie===Math.round(K)?K:ie,re=se===Math.round(ae)?ae:se,le=Ie(Ie({},ze),{},{offsetWidth:te,offsetHeight:re});h==null||h(le,P,L),A&&Promise.resolve().then(function(){A(le,P)})}},[]);return g.useEffect(function(){var P=S();return P&&!o&&ZE(P,O),function(){return eO(P,O)}},[_.current,o]),g.createElement(aO,{ref:l},v?g.cloneElement(f,{ref:z}):f)}var oO=g.forwardRef(nO),rO=oO,tO="rc-observer-key";function _O(e,a){var n=e.children,o=typeof n=="function"?[n]:Nt(n);return o.map(function(_,l){var h=(_==null?void 0:_.key)||"".concat(tO,"-").concat(l);return g.createElement(rO,gi({},e,{key:h,ref:l===0?a:void 0}),_)})}var kw=g.forwardRef(_O);kw.Collection=iO;var pw=kw;function Yt(e){var a=g.useRef();a.current=e;var n=g.useCallback(function(){for(var o,_=arguments.length,l=new Array(_),h=0;h<_;h++)l[h]=arguments[h];return(o=a.current)===null||o===void 0?void 0:o.call.apply(o,[a].concat(l))},[]);return n}var sO=function(){if(typeof navigator=="undefined"||typeof window=="undefined")return!1;var e=navigator.userAgent||navigator.vendor||window.opera;return/(android|bb\d+|meego).+mobile|avantgo|bada\/|blackberry|blazer|compal|elaine|fennec|hiptop|iemobile|ip(hone|od)|iris|kindle|lge |maemo|midp|mmp|mobile.+firefox|netfront|opera m(ob|in)i|palm( os)?|phone|p(ixi|re)\/|plucker|pocket|psp|series(4|6)0|symbian|treo|up\.(browser|link)|vodafone|wap|windows ce|xda|xiino|android|ipad|playbook|silk/i.test(e)||/1207|6310|6590|3gso|4thp|50[1-6]i|770s|802s|a wa|abac|ac(er|oo|s-)|ai(ko|rn)|al(av|ca|co)|amoi|an(ex|ny|yw)|aptu|ar(ch|go)|as(te|us)|attw|au(di|-m|r |s )|avan|be(ck|ll|nq)|bi(lb|rd)|bl(ac|az)|br(e|v)w|bumb|bw-(n|u)|c55\/|capi|ccwa|cdm-|cell|chtm|cldc|cmd-|co(mp|nd)|craw|da(it|ll|ng)|dbte|dc-s|devi|dica|dmob|do(c|p)o|ds(12|-d)|el(49|ai)|em(l2|ul)|er(ic|k0)|esl8|ez([4-7]0|os|wa|ze)|fetc|fly(-|_)|g1 u|g560|gene|gf-5|g-mo|go(\.w|od)|gr(ad|un)|haie|hcit|hd-(m|p|t)|hei-|hi(pt|ta)|hp( i|ip)|hs-c|ht(c(-| |_|a|g|p|s|t)|tp)|hu(aw|tc)|i-(20|go|ma)|i230|iac( |-|\/)|ibro|idea|ig01|ikom|im1k|inno|ipaq|iris|ja(t|v)a|jbro|jemu|jigs|kddi|keji|kgt( |\/)|klon|kpt |kwc-|kyo(c|k)|le(no|xi)|lg( g|\/(k|l|u)|50|54|-[a-w])|libw|lynx|m1-w|m3ga|m50\/|ma(te|ui|xo)|mc(01|21|ca)|m-cr|me(rc|ri)|mi(o8|oa|ts)|mmef|mo(01|02|bi|de|do|t(-| |o|v)|zz)|mt(50|p1|v )|mwbp|mywa|n10[0-2]|n20[2-3]|n30(0|2)|n50(0|2|5)|n7(0(0|1)|10)|ne((c|m)-|on|tf|wf|wg|wt)|nok(6|i)|nzph|o2im|op(ti|wv)|oran|owg1|p800|pan(a|d|t)|pdxg|pg(13|-([1-8]|c))|phil|pire|pl(ay|uc)|pn-2|po(ck|rt|se)|prox|psio|pt-g|qa-a|qc(07|12|21|32|60|-[2-7]|i-)|qtek|r380|r600|raks|rim9|ro(ve|zo)|s55\/|sa(ge|ma|mm|ms|ny|va)|sc(01|h-|oo|p-)|sdk\/|se(c(-|0|1)|47|mc|nd|ri)|sgh-|shar|sie(-|m)|sk-0|sl(45|id)|sm(al|ar|b3|it|t5)|so(ft|ny)|sp(01|h-|v-|v )|sy(01|mb)|t2(18|50)|t6(00|10|18)|ta(gt|lk)|tcl-|tdg-|tel(i|m)|tim-|t-mo|to(pl|sh)|ts(70|m-|m3|m5)|tx-9|up(\.b|g1|si)|utst|v400|v750|veri|vi(rg|te)|vk(40|5[0-3]|-v)|vm40|voda|vulc|vx(52|53|60|61|70|80|81|83|85|98)|w3c(-| )|webc|whit|wi(g |nc|nw)|wmlb|wonu|x700|yas-|your|zeto|zte-/i.test(e==null?void 0:e.substr(0,4))},uO=g.createContext(null),fw=uO;function yw(e){return e?Array.isArray(e)?e:[e]:[]}function lO(e,a,n,o){return g.useMemo(function(){var _=yw(n!=null?n:a),l=yw(o!=null?o:a),h=new Set(_),k=new Set(l);return e&&(h.has("hover")&&(h.delete("hover"),h.add("click")),k.has("hover")&&(k.delete("hover"),k.add("click"))),[h,k]},[e,a,n,o])}function cO(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],a=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],n=arguments.length>2?arguments[2]:void 0;return n?e[0]===a[0]:e[0]===a[0]&&e[1]===a[1]}function mO(e,a,n,o){for(var _=n.points,l=Object.keys(e),h=0;h0&&arguments[0]!==void 0?arguments[0]:"";return[e[0],e[1]]}function Yl(e,a){var n=a[0],o=a[1],_,l;return n==="t"?l=e.y:n==="b"?l=e.y+e.height:l=e.y+e.height/2,o==="l"?_=e.x:o==="r"?_=e.x+e.width:_=e.x+e.width/2,{x:_,y:l}}function _s(e,a){var n={t:"b",b:"t",l:"r",r:"l"};return e.map(function(o,_){return _===a?n[o]||"c":o}).join("")}function dO(e,a,n,o,_,l,h){var k=g.useState({ready:!1,offsetX:0,offsetY:0,arrowX:0,arrowY:0,scaleX:1,scaleY:1,align:_[o]||{}}),f=la(k,2),b=f[0],v=f[1],w=g.useRef(0),z=g.useMemo(function(){return a?Fp(a):[]},[a]),S=g.useRef({}),E=function(){S.current={}};e||E();var O=Yt(function(){if(a&&n&&e){let Zt=function(mg,Eu){var hg=ue.x+mg,dg=ue.y+Eu,gg=hg+Ge,Kp=dg+ya,Qp=Math.max(hg,Xe.left),Jp=Math.max(dg,Xe.top),kg=Math.min(gg,Xe.right),Zp=Math.min(Kp,Xe.bottom);return Math.max(0,(kg-Qp)*(Zp-Jp))},e_=function(){er=ue.y+Di,ar=er+ya,st=ue.x+Ki,wr=st+Ge};var A=a,L=A.style.left,H=A.style.top,K=A.ownerDocument,ae=qm(A),ie=Ie(Ie({},_[o]),l);A.style.left="0",A.style.top="0";var se;if(Array.isArray(n))se={x:n[0],y:n[1],width:0,height:0};else{var he=n.getBoundingClientRect();se={x:he.x,y:he.y,width:he.width,height:he.height}}var ue=A.getBoundingClientRect(),ze=ae.getComputedStyle(A),te=ze.width,re=ze.height,le=K.documentElement,be=le.clientWidth,Ve=le.clientHeight,He=le.scrollWidth,ea=le.scrollHeight,ca=le.scrollTop,Sa=le.scrollLeft,ya=ue.height,Ge=ue.width,$e=se.height,ra=se.width,Xe=ie.htmlRegion==="scroll"?{left:-Sa,top:-ca,right:He-Sa,bottom:ea-ca}:{left:0,top:0,right:be,bottom:Ve};Xe=hO(Xe,z),A.style.left=L,A.style.top=H;var Se=rg(Math.round(Ge/parseFloat(te)*1e3)/1e3),pa=rg(Math.round(ya/parseFloat(re)*1e3)/1e3);if(Se===0||pa===0||wd(n)&&!uy(n))return;var Ze=ie.offset,Ia=ie.targetOffset,Ta=Ze||[],da=la(Ta,2),Ca=da[0],Ra=Ca===void 0?0:Ca,ai=da[1],Ma=ai===void 0?0:ai,mi=Ia||[],va=la(mi,2),Oa=va[0],qa=Oa===void 0?0:Oa,Ga=va[1],ln=Ga===void 0?0:Ga;se.x+=qa,se.y+=ln;var Wi=ie.points||[],Li=la(Wi,2),Ua=Li[0],ii=Li[1],Kn=vw(ii),on=vw(Ua),Vi=Yl(se,Kn),zu=Yl(ue,on),yi=Ie({},ie),Ki=Vi.x-zu.x+Ra,Di=Vi.y-zu.y+Ma,To=Zt(Ki,Di),Nn=Yl(se,["t","l"]),vr=Yl(ue,["t","l"]),Zl=Yl(se,["b","r"]),xu=Yl(ue,["b","r"]),_t=ie.overflow||{},ec=_t.adjustX,ac=_t.adjustY,ic=_t.shiftX,Cu=_t.shiftY,Qn=function(Eu){return typeof Eu=="boolean"?Eu:Eu>=0},er,ar,st,wr;e_();var Su=Qn(ac),Ro=on[0]===Kn[0];if(Su&&on[0]==="t"&&(ar>Xe.bottom||S.current.bt)){var Kt=Di;Ro?Kt-=ya-$e:Kt=Nn.y-xu.y-Ma,Zt(Ki,Kt)>=To?(S.current.bt=!0,Di=Kt,yi.points=[_s(on,0),_s(Kn,0)]):S.current.bt=!1}if(Su&&on[0]==="b"&&(er=To?(S.current.tb=!0,Di=go,yi.points=[_s(on,0),_s(Kn,0)]):S.current.tb=!1}var Pu=Qn(ec),ss=on[1]===Kn[1];if(Pu&&on[1]==="l"&&(wr>Xe.right||S.current.rl)){var ut=Ki;ss?ut-=Ge-ra:ut=Nn.x-xu.x-Ra,Zt(ut,Di)>=To?(S.current.rl=!0,Ki=ut,yi.points=[_s(on,1),_s(Kn,1)]):S.current.rl=!1}if(Pu&&on[1]==="r"&&(st=To?(S.current.lr=!0,Ki=Qt,yi.points=[_s(on,1),_s(Kn,1)]):S.current.lr=!1}e_();var lt=ic===!0?0:ic;typeof lt=="number"&&(stXe.right&&(Ki-=wr-Xe.right,se.x>Xe.right-lt&&(Ki+=se.x-Xe.right+lt)));var di=Cu===!0?0:Cu;typeof di=="number"&&(erXe.bottom&&(Di-=ar-Xe.bottom,se.y>Xe.bottom-di&&(Di+=se.y-Xe.bottom+di)));var si=ue.x+Ki,Qa=si+Ge,Si=ue.y+Di,wi=Si+ya,jr=se.x,Ao=jr+ra,No=se.y,Pn=No+$e,nc=Math.max(si,jr),oc=Math.min(Qa,Ao),Jt=(nc+oc)/2,Xm=Jt-si,Gp=Math.max(Si,No),Xp=Math.min(wi,Pn),Yp=(Gp+Xp)/2,rc=Yp-Si;h==null||h(a,yi),v({ready:!0,offsetX:Ki/Se,offsetY:Di/pa,arrowX:Xm/Se,arrowY:rc/pa,scaleX:Se,scaleY:pa,align:yi})}}),P=function(){w.current+=1;var L=w.current;Promise.resolve().then(function(){w.current===L&&O()})},T=function(){v(function(L){return Ie(Ie({},L),{},{ready:!1})})};return Eo(T,[o]),Eo(function(){e||T()},[e]),[b.ready,b.offsetX,b.offsetY,b.arrowX,b.arrowY,b.scaleX,b.scaleY,b.align,P]}function gO(e,a,n,o){Eo(function(){if(e&&a&&n){let v=function(){o()};var _=a,l=n,h=Fp(_),k=Fp(l),f=qm(l),b=new Set([f].concat(xa(h),xa(k)));return b.forEach(function(w){w.addEventListener("scroll",v,{passive:!0})}),f.addEventListener("resize",v,{passive:!0}),o(),function(){b.forEach(function(w){w.removeEventListener("scroll",v),f.removeEventListener("resize",v)})}}},[e,a,n])}function kO(e){var a=e.prefixCls,n=e.align,o=e.arrowX,_=o===void 0?0:o,l=e.arrowY,h=l===void 0?0:l,k=g.useRef();if(!n||!n.points)return null;var f={position:"absolute"};if(n.autoArrow!==!1){var b=n.points[0],v=n.points[1],w=b[0],z=b[1],S=v[0],E=v[1];w===S||!["t","b"].includes(w)?f.top=h:w==="t"?f.top=0:f.bottom=0,z===E||!["l","r"].includes(z)?f.left=_:z==="l"?f.left=0:f.right=0}return g.createElement("div",{ref:k,className:"".concat(a,"-arrow"),style:f})}function pO(e){var a=e.prefixCls,n=e.open,o=e.zIndex,_=e.mask,l=e.motion;return _?React.createElement(Vt,gi({},l,{motionAppear:!0,visible:n,removeOnLeave:!0}),function(h){var k=h.className;return React.createElement("div",{style:{zIndex:o},className:ka()("".concat(a,"-mask"),k)})}):null}var fO=g.forwardRef(function(e,a){var n=e.popup,o=e.className,_=e.prefixCls,l=e.style,h=e.target,k=e.onVisibleChanged,f=e.open,b=e.keepDom,v=e.onClick,w=e.mask,z=e.arrow,S=e.align,E=e.arrowX,O=e.arrowY,P=e.motion,T=e.maskMotion,A=e.forceRender,L=e.getPopupContainer,H=e.autoDestroy,K=e.portal,ae=e.zIndex,ie=e.onMouseEnter,se=e.onMouseLeave,he=e.ready,ue=e.offsetX,ze=e.offsetY,te=e.onAlign,re=e.onPrepare,le=e.stretch,be=e.targetWidth,Ve=e.targetHeight,He=typeof n=="function"?n():n,ea=f||b,ca=(L==null?void 0:L.length)>0,Sa=g.useState(!L||!ca),ya=la(Sa,2),Ge=ya[0],$e=ya[1];if(Eo(function(){!Ge&&ca&&h&&$e(!0)},[Ge,ca,h]),!Ge)return null;var ra=he||!f?{left:ue,top:ze}:{left:"-1000vw",top:"-1000vh"},Xe={};return le&&(le.includes("height")&&Ve?Xe.height=Ve:le.includes("minHeight")&&Ve&&(Xe.minHeight=Ve),le.includes("width")&&be?Xe.width=be:le.includes("minWidth")&&be&&(Xe.minWidth=be)),f||(Xe.pointerEvents="none"),g.createElement(K,{open:A||ea,getContainer:L&&function(){return L(h)},autoDestroy:H},g.createElement(pO,{prefixCls:_,open:f,zIndex:ae,mask:w,motion:T}),g.createElement(pw,{onResize:te,disabled:!f},function(Se){return g.createElement(Vt,gi({motionAppear:!0,motionEnter:!0,motionLeave:!0,removeOnLeave:!1,forceRender:A,leavedClassName:"".concat(_,"-hidden")},P,{onAppearPrepare:re,onEnterPrepare:re,visible:f,onVisibleChanged:function(Ze){var Ia;P==null||(Ia=P.onVisibleChanged)===null||Ia===void 0||Ia.call(P,Ze),k(Ze)}}),function(pa,Ze){var Ia=pa.className,Ta=pa.style,da=ka()(_,Ia,o);return g.createElement("div",{ref:Mm(Se,a,Ze),className:da,style:Ie(Ie(Ie(Ie({},ra),Xe),Ta),{},{boxSizing:"border-box",zIndex:ae},l),onMouseEnter:ie,onMouseLeave:se,onClick:v},z&&g.createElement(kO,{prefixCls:_,align:S,arrowX:E,arrowY:O}),He)})}))}),yO=fO,bO=g.forwardRef(function(e,a){var n=e.children,o=e.getTriggerDOMNode,_=Fm(n),l=g.useCallback(function(k){pk(a,o?o(k):k)},[o]),h=Cf(l,n.ref);return _?g.cloneElement(n,{ref:h}):n}),vO=bO,wO=["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","alignPoint","onPopupClick","onPopupAlign","arrow","popupMotion","maskMotion","popupTransitionName","popupAnimation","maskTransitionName","maskAnimation","className","getTriggerDOMNode"];function jO(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:Bk,a=g.forwardRef(function(n,o){var _=n.prefixCls,l=_===void 0?"rc-trigger-popup":_,h=n.children,k=n.action,f=k===void 0?"hover":k,b=n.showAction,v=n.hideAction,w=n.popupVisible,z=n.defaultPopupVisible,S=n.onPopupVisibleChange,E=n.afterPopupVisibleChange,O=n.mouseEnterDelay,P=n.mouseLeaveDelay,T=P===void 0?.1:P,A=n.focusDelay,L=n.blurDelay,H=n.mask,K=n.maskClosable,ae=K===void 0?!0:K,ie=n.getPopupContainer,se=n.forceRender,he=n.autoDestroy,ue=n.destroyPopupOnHide,ze=n.popup,te=n.popupClassName,re=n.popupStyle,le=n.popupPlacement,be=n.builtinPlacements,Ve=be===void 0?{}:be,He=n.popupAlign,ea=n.zIndex,ca=n.stretch,Sa=n.getPopupClassNameFromAlign,ya=n.alignPoint,Ge=n.onPopupClick,$e=n.onPopupAlign,ra=n.arrow,Xe=n.popupMotion,Se=n.maskMotion,pa=n.popupTransitionName,Ze=n.popupAnimation,Ia=n.maskTransitionName,Ta=n.maskAnimation,da=n.className,Ca=n.getTriggerDOMNode,Ra=Ai(n,wO),ai=he||ue||!1,Ma=g.useState(!1),mi=la(Ma,2),va=mi[0],Oa=mi[1];Eo(function(){Oa(sO())},[]);var qa=g.useRef({}),Ga=g.useContext(fw),ln=g.useMemo(function(){return{registerSubPopup:function(Za,pi){qa.current[Za]=pi,Ga==null||Ga.registerSubPopup(Za,pi)}}},[Ga]),Wi=Iy(),Li=g.useState(null),Ua=la(Li,2),ii=Ua[0],Kn=Ua[1],on=Yt(function(Aa){wd(Aa)&&ii!==Aa&&Kn(Aa),Ga==null||Ga.registerSubPopup(Wi,Aa)}),Vi=g.useState(null),zu=la(Vi,2),yi=zu[0],Ki=zu[1],Di=Yt(function(Aa){wd(Aa)&&yi!==Aa&&Ki(Aa)}),To=g.Children.only(h),Nn=(To==null?void 0:To.props)||{},vr={},Zl=Yt(function(Aa){var Za,pi,Pi=yi;return(Pi==null?void 0:Pi.contains(Aa))||(Pi==null||(Za=Pi.getRootNode())===null||Za===void 0?void 0:Za.host)===Aa||Aa===Pi||(ii==null?void 0:ii.contains(Aa))||(ii==null||(pi=ii.getRootNode())===null||pi===void 0?void 0:pi.host)===Aa||Aa===ii||Object.values(qa.current).some(function(Ti){return(Ti==null?void 0:Ti.contains(Aa))||Aa===Ti})}),xu=bw(l,Xe,Ze,pa),_t=bw(l,Se,Ta,Ia),ec=g.useState(z||!1),ac=la(ec,2),ic=ac[0],Cu=ac[1],Qn=w!=null?w:ic,er=Yt(function(Aa){w===void 0&&Cu(Aa)});Eo(function(){Cu(w||!1)},[w]);var ar=g.useRef(Qn);ar.current=Qn;var st=Yt(function(Aa){Qn!==Aa&&(er(Aa),S==null||S(Aa))}),wr=g.useRef(),Su=function(){clearTimeout(wr.current)},Ro=function(Za){var pi=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0;Su(),pi===0?st(Za):wr.current=setTimeout(function(){st(Za)},pi*1e3)};g.useEffect(function(){return Su},[]);var Kt=g.useState(!1),go=la(Kt,2),Pu=go[0],ss=go[1],ut=g.useRef(!0);Eo(function(){(!ut.current||Qn)&&ss(!0),ut.current=!0},[Qn]);var Qt=g.useState(null),lt=la(Qt,2),di=lt[0],si=lt[1],Qa=g.useState([0,0]),Si=la(Qa,2),wi=Si[0],jr=Si[1],Ao=function(Za){jr([Za.clientX,Za.clientY])},No=dO(Qn,ii,ya?wi:yi,le,Ve,He,$e),Pn=la(No,9),nc=Pn[0],oc=Pn[1],Jt=Pn[2],Xm=Pn[3],Gp=Pn[4],Xp=Pn[5],Yp=Pn[6],rc=Pn[7],Zt=Pn[8],e_=Yt(function(){Pu||Zt()});gO(Qn,yi,ii,e_),Eo(function(){e_()},[wi]),Eo(function(){Qn&&!(Ve!=null&&Ve[le])&&e_()},[JSON.stringify(He)]);var mg=g.useMemo(function(){var Aa=mO(Ve,l,rc,ya);return ka()(Aa,Sa==null?void 0:Sa(rc))},[rc,Sa,Ve,l,ya]);g.useImperativeHandle(o,function(){return{forceAlign:e_}});var Eu=function(Za){ss(!1),Zt(),E==null||E(Za)},hg=function(){return new Promise(function(Za){si(function(){return Za})})};Eo(function(){di&&(Zt(),di(),si(null))},[di]);var dg=g.useState(0),gg=la(dg,2),Kp=gg[0],Qp=gg[1],Jp=g.useState(0),kg=la(Jp,2),Zp=kg[0],bD=kg[1],vD=function(Za,pi){if(e_(),ca){var Pi=pi.getBoundingClientRect();Qp(Pi.width),bD(Pi.height)}},wD=lO(va,f,b,v),o0=la(wD,2),pg=o0[0],fg=o0[1],yg=function(Za,pi,Pi,Ti){vr[Za]=function(af){var tc;Ti==null||Ti(af),Ro(pi,Pi);for(var Ym=arguments.length,u0=new Array(Ym>1?Ym-1:0),vg=1;vg1?pi-1:0),Ti=1;Ti1?pi-1:0),Ti=1;Ti{const l=e/2,h=0,k=l,f=n*1/Math.sqrt(2),b=l-n*(1-1/Math.sqrt(2)),v=l-a*(1/Math.sqrt(2)),w=n*(Math.sqrt(2)-1)+a*(1/Math.sqrt(2)),z=2*l-v,S=w,E=2*l-f,O=b,P=2*l-h,T=k,A=l*Math.sqrt(2)+n*(Math.sqrt(2)-2);return{pointerEvents:"none",width:e,height:e,overflow:"hidden","&::before":{position:"absolute",bottom:0,insetInlineStart:0,width:e,height:e/2,background:o,clipPath:`path('M ${h} ${k} A ${n} ${n} 0 0 0 ${f} ${b} L ${v} ${w} A ${a} ${a} 0 0 1 ${z} ${S} L ${E} ${O} A ${n} ${n} 0 0 0 ${P} ${T} Z')`,content:'""'},"&::after":{content:'""',position:"absolute",width:A,height:A,bottom:0,insetInline:0,margin:"auto",borderRadius:{_skip_check_:!0,value:`0 0 ${a}px 0`},transform:"translateY(50%) rotate(-135deg)",boxShadow:_,zIndex:0,background:"transparent"}}},jw=8;function zw(e){const a=jw,{contentRadius:n,limitVerticalRadius:o}=e,_=n>12?n+2:12;return{dropdownArrowOffset:_,dropdownArrowOffsetVertical:o?a:_}}function tg(e,a){return e?a:{}}function IO(e,a){const{componentCls:n,sizePopupArrow:o,borderRadiusXS:_,borderRadiusOuter:l,boxShadowPopoverArrow:h}=e,{colorBg:k,contentRadius:f=e.borderRadiusLG,limitVerticalRadius:b,arrowDistance:v=0,arrowPlacement:w={left:!0,right:!0,top:!0,bottom:!0}}=a,{dropdownArrowOffsetVertical:z,dropdownArrowOffset:S}=zw({contentRadius:f,limitVerticalRadius:b});return{[n]:Object.assign(Object.assign(Object.assign(Object.assign({[`${n}-arrow`]:[Object.assign(Object.assign({position:"absolute",zIndex:1,display:"block"},OO(o,_,l,k,h)),{"&:before":{background:k}})]},tg(!!w.top,{[[`&-placement-top ${n}-arrow`,`&-placement-topLeft ${n}-arrow`,`&-placement-topRight ${n}-arrow`].join(",")]:{bottom:v,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:S}},[`&-placement-topRight ${n}-arrow`]:{right:{_skip_check_:!0,value:S}}})),tg(!!w.bottom,{[[`&-placement-bottom ${n}-arrow`,`&-placement-bottomLeft ${n}-arrow`,`&-placement-bottomRight ${n}-arrow`].join(",")]:{top:v,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:S}},[`&-placement-bottomRight ${n}-arrow`]:{right:{_skip_check_:!0,value:S}}})),tg(!!w.left,{[[`&-placement-left ${n}-arrow`,`&-placement-leftTop ${n}-arrow`,`&-placement-leftBottom ${n}-arrow`].join(",")]:{right:{_skip_check_:!0,value:v},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:z},[`&-placement-leftBottom ${n}-arrow`]:{bottom:z}})),tg(!!w.right,{[[`&-placement-right ${n}-arrow`,`&-placement-rightTop ${n}-arrow`,`&-placement-rightBottom ${n}-arrow`].join(",")]:{left:{_skip_check_:!0,value:v},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:z},[`&-placement-rightBottom ${n}-arrow`]:{bottom:z}}))}}function DO(e,a,n,o){if(o===!1)return{adjustX:!1,adjustY:!1};const _=o&&typeof o=="object"?o:{},l={};switch(e){case"top":case"bottom":l.shiftX=a.dropdownArrowOffset*2+n;break;case"left":case"right":l.shiftY=a.dropdownArrowOffsetVertical*2+n;break}const h=Object.assign(Object.assign({},l),_);return h.shiftX||(h.adjustX=!0),h.shiftY||(h.adjustY=!0),h}const xw={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"]}},TO={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"]}},RO=new Set(["topLeft","topRight","bottomLeft","bottomRight","leftTop","leftBottom","rightTop","rightBottom"]);function AO(e){const{arrowWidth:a,autoAdjustOverflow:n,arrowPointAtCenter:o,offset:_,borderRadius:l}=e,h=a/2,k={};return Object.keys(xw).forEach(f=>{const b=o&&TO[f]||xw[f],v=Object.assign(Object.assign({},b),{offset:[0,0]});switch(k[f]=v,RO.has(f)&&(v.autoArrow=!1),f){case"top":case"topLeft":case"topRight":v.offset[1]=-h-_;break;case"bottom":case"bottomLeft":case"bottomRight":v.offset[1]=h+_;break;case"left":case"leftTop":case"leftBottom":v.offset[0]=-h-_;break;case"right":case"rightTop":case"rightBottom":v.offset[0]=h+_;break}const w=zw({contentRadius:l,limitVerticalRadius:!0});if(o)switch(f){case"topLeft":case"bottomLeft":v.offset[0]=-w.dropdownArrowOffset-h;break;case"topRight":case"bottomRight":v.offset[0]=w.dropdownArrowOffset+h;break;case"leftTop":case"rightTop":v.offset[1]=-w.dropdownArrowOffset-h;break;case"leftBottom":case"rightBottom":v.offset[1]=w.dropdownArrowOffset+h;break}v.overflow=DO(f,w,a,n)}),k}const NO=e=>{const{componentCls:a,tooltipMaxWidth:n,tooltipColor:o,tooltipBg:_,tooltipBorderRadius:l,zIndexPopup:h,controlHeight:k,boxShadowSecondary:f,paddingSM:b,paddingXS:v,tooltipRadiusOuter:w}=e;return[{[a]:Object.assign(Object.assign(Object.assign(Object.assign({},it(e)),{position:"absolute",zIndex:h,display:"block",width:"max-content",maxWidth:n,visibility:"visible","&-hidden":{display:"none"},"--antd-arrow-background-color":_,[`${a}-inner`]:{minWidth:k,minHeight:k,padding:`${b/2}px ${v}px`,color:o,textAlign:"start",textDecoration:"none",wordWrap:"break-word",backgroundColor:_,borderRadius:l,boxShadow:f},[["&-placement-left","&-placement-leftTop","&-placement-leftBottom","&-placement-right","&-placement-rightTop","&-placement-rightBottom"].join(",")]:{[`${a}-inner`]:{borderRadius:Math.min(l,jw)}},[`${a}-content`]:{position:"relative"}}),Ap(e,(z,S)=>{let{darkColor:E}=S;return{[`&${a}-${z}`]:{[`${a}-inner`]:{backgroundColor:E},[`${a}-arrow`]:{"--antd-arrow-background-color":E}}}})),{"&-rtl":{direction:"rtl"}})},IO(Po(e,{borderRadiusOuter:w}),{colorBg:"var(--antd-arrow-background-color)",contentRadius:l,limitVerticalRadius:!0}),{[`${a}-pure`]:{position:"relative",maxWidth:"none",margin:e.sizePopupArrow}}]};var Cw=(e,a)=>dr("Tooltip",o=>{if(a===!1)return[];const{borderRadius:_,colorTextLightSolid:l,colorBgDefault:h,borderRadiusOuter:k}=o,f=Po(o,{tooltipMaxWidth:250,tooltipColor:l,tooltipBorderRadius:_,tooltipBg:h,tooltipRadiusOuter:k>4?4:k});return[NO(f),Vy(o,"zoom-big-fast")]},o=>{let{zIndexPopupBase:_,colorBgSpotlight:l}=o;return{zIndexPopup:_+70,colorBgDefault:l}})(e);function Sw(e,a){const n=Rp(a),o=ka()({[`${e}-${a}`]:a&&n}),_={},l={};return a&&!n&&(_.background=a,l["--antd-arrow-background-color"]=a),{className:o,overlayStyle:_,arrowStyle:l}}function MO(e){const{prefixCls:a,className:n,placement:o="top",title:_,color:l,overlayInnerStyle:h}=e,{getPrefixCls:k}=g.useContext(Ha),f=k("tooltip",a),[b,v]=Cw(f,!0),w=Sw(f,l),z=Object.assign(Object.assign({},h),w.overlayStyle),S=w.arrowStyle;return b(g.createElement("div",{className:ka()(v,f,`${f}-pure`,`${f}-placement-${o}`,n,w.className),style:S},g.createElement("div",{className:`${f}-arrow`}),g.createElement(ww,Object.assign({},e,{className:v,prefixCls:f,overlayInnerStyle:z}),_)))}var FO=function(e,a){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&a.indexOf(o)<0&&(n[o]=e[o]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var _=0,o=Object.getOwnPropertySymbols(e);_{const n={},o=Object.assign({},e);return a.forEach(_=>{e&&_ in e&&(n[_]=e[_],delete o[_])}),{picked:n,omitted:o}};function $O(e,a){const n=e.type;if((n.__ANT_BUTTON===!0||e.type==="button")&&e.props.disabled||n.__ANT_SWITCH===!0&&(e.props.disabled||e.props.loading)||n.__ANT_RADIO===!0&&e.props.disabled){const{picked:o,omitted:_}=UO(e.props.style,["position","left","right","top","bottom","float","display","zIndex"]),l=Object.assign(Object.assign({display:"inline-block"},o),{cursor:"not-allowed",width:e.props.block?"100%":void 0}),h=Object.assign(Object.assign({},_),{pointerEvents:"none"}),k=es(e,{style:h,className:null});return g.createElement("span",{style:l,className:ka()(e.props.className,`${a}-disabled-compatible-wrapper`)},k)}return e}const Pw=g.forwardRef((e,a)=>{var n,o;const{prefixCls:_,openClassName:l,getTooltipContainer:h,overlayClassName:k,color:f,overlayInnerStyle:b,children:v,afterOpenChange:w,afterVisibleChange:z,destroyTooltipOnHide:S,arrow:E=!0,title:O,overlay:P,builtinPlacements:T,arrowPointAtCenter:A=!1,autoAdjustOverflow:L=!0}=e,H=!!E,{token:K}=LO(),{getPopupContainer:ae,getPrefixCls:ie,direction:se}=g.useContext(Ha),he=g.useRef(null),ue=()=>{var Oa;(Oa=he.current)===null||Oa===void 0||Oa.forceAlign()};g.useImperativeHandle(a,()=>({forceAlign:ue,forcePopupAlign:()=>{ue()}}));const[ze,te]=Up(!1,{value:(n=e.open)!==null&&n!==void 0?n:e.visible,defaultValue:(o=e.defaultOpen)!==null&&o!==void 0?o:e.defaultVisible}),re=!O&&!P&&O!==0,le=Oa=>{var qa,Ga;te(re?!1:Oa),re||((qa=e.onOpenChange)===null||qa===void 0||qa.call(e,Oa),(Ga=e.onVisibleChange)===null||Ga===void 0||Ga.call(e,Oa))},be=g.useMemo(()=>{var Oa,qa;let Ga=A;return typeof E=="object"&&(Ga=(qa=(Oa=E.pointAtCenter)!==null&&Oa!==void 0?Oa:E.arrowPointAtCenter)!==null&&qa!==void 0?qa:A),T||AO({arrowPointAtCenter:Ga,autoAdjustOverflow:L,arrowWidth:H?K.sizePopupArrow:0,borderRadius:K.borderRadius,offset:K.marginXXS})},[A,E,T,K]),Ve=(Oa,qa)=>{const Ga=Object.keys(be).find(ln=>{var Wi,Li;return be[ln].points[0]===((Wi=qa.points)===null||Wi===void 0?void 0:Wi[0])&&be[ln].points[1]===((Li=qa.points)===null||Li===void 0?void 0:Li[1])});if(Ga){const ln=Oa.getBoundingClientRect(),Wi={top:"50%",left:"50%"};/top|Bottom/.test(Ga)?Wi.top=`${ln.height-qa.offset[1]}px`:/Top|bottom/.test(Ga)&&(Wi.top=`${-qa.offset[1]}px`),/left|Right/.test(Ga)?Wi.left=`${ln.width-qa.offset[0]}px`:/right|Left/.test(Ga)&&(Wi.left=`${-qa.offset[0]}px`),Oa.style.transformOrigin=`${Wi.left} ${Wi.top}`}},He=g.useMemo(()=>O===0?O:P||O||"",[P,O]),{getPopupContainer:ea,placement:ca="top",mouseEnterDelay:Sa=.1,mouseLeaveDelay:ya=.1,overlayStyle:Ge,rootClassName:$e}=e,ra=FO(e,["getPopupContainer","placement","mouseEnterDelay","mouseLeaveDelay","overlayStyle","rootClassName"]),Xe=ie("tooltip",_),Se=ie(),pa=e["data-popover-inject"];let Ze=ze;!("open"in e)&&!("visible"in e)&&re&&(Ze=!1);const Ia=$O(Um(v)&&!ly(v)?v:g.createElement("span",null,v),Xe),Ta=Ia.props,da=!Ta.className||typeof Ta.className=="string"?ka()(Ta.className,{[l||`${Xe}-open`]:!0}):Ta.className,[Ca,Ra]=Cw(Xe,!pa),ai=Sw(Xe,f),Ma=Object.assign(Object.assign({},b),ai.overlayStyle),mi=ai.arrowStyle,va=ka()(k,{[`${Xe}-rtl`]:se==="rtl"},ai.className,$e,Ra);return Ca(g.createElement(EO,Object.assign({},ra,{showArrow:H,placement:ca,mouseEnterDelay:Sa,mouseLeaveDelay:ya,prefixCls:Xe,overlayClassName:va,overlayStyle:Object.assign(Object.assign({},mi),Ge),getTooltipContainer:ea||h||ae,ref:he,builtinPlacements:be,overlay:He,visible:Ze,onVisibleChange:le,afterVisibleChange:w!=null?w:z,onPopupAlign:Ve,overlayInnerStyle:Ma,arrowContent:g.createElement("span",{className:`${Xe}-arrow-content`}),motion:{motionName:$m(Se,"zoom-big-fast",e.transitionName),motionDeadline:1e3},destroyTooltipOnHide:!!S}),Ze?es(Ia,{className:da}):Ia))});Pw._InternalPanelDoNotUseOrYouWillBeFired=MO;var Ew=Pw,HO={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M854.6 288.6L639.4 73.4c-6-6-14.1-9.4-22.6-9.4H192c-17.7 0-32 14.3-32 32v832c0 17.7 14.3 32 32 32h640c17.7 0 32-14.3 32-32V311.3c0-8.5-3.4-16.7-9.4-22.7zM790.2 326H602V137.8L790.2 326zm1.8 562H232V136h302v216a42 42 0 0042 42h216v494zM504 618H320c-4.4 0-8 3.6-8 8v48c0 4.4 3.6 8 8 8h184c4.4 0 8-3.6 8-8v-48c0-4.4-3.6-8-8-8zM312 490v48c0 4.4 3.6 8 8 8h384c4.4 0 8-3.6 8-8v-48c0-4.4-3.6-8-8-8H320c-4.4 0-8 3.6-8 8z"}}]},name:"file-text",theme:"outlined"},WO=HO,Ow=function(a,n){return g.createElement(Yn,Ie(Ie({},a),{},{ref:n,icon:WO}))};Ow.displayName="FileTextOutlined";var Iw=g.forwardRef(Ow);const VO=e=>{const{icon:a,description:n,prefixCls:o,className:_}=e,l=g.createElement("div",{className:`${o}-icon`},g.createElement(Iw,null));return g.createElement("div",{onClick:e.onClick,onFocus:e.onFocus,onMouseEnter:e.onMouseEnter,onMouseLeave:e.onMouseLeave,className:ka()(_,`${o}-content`)},a||n?g.createElement(g.Fragment,null,a&&g.createElement("div",{className:`${o}-icon`},a),n&&g.createElement("div",{className:`${o}-description`},n)):l)};var BO=(0,g.memo)(VO);const Dw=g.createContext(void 0),{Provider:qO}=Dw;var Tw=Dw,Rw=e=>e===0?0:e-Math.sqrt(Math.pow(e,2)/2);const GO=e=>{const{componentCls:a,floatButtonSize:n,motionDurationSlow:o,motionEaseInOutCirc:_}=e,l=`${a}-group`,h=new ui("antFloatButtonMoveDownIn",{"0%":{transform:`translate3d(0, ${n}px, 0)`,transformOrigin:"0 0",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1}}),k=new ui("antFloatButtonMoveDownOut",{"0%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1},"100%":{transform:`translate3d(0, ${n}px, 0)`,transformOrigin:"0 0",opacity:0}});return[{[`${l}-wrap`]:Object.assign({},qk(`${l}-wrap`,h,k,o,!0))},{[`${l}-wrap`]:{[` +`]))),gE=function(a){var n=a.children,o=a.loading,_=a.style,l=Tp(),h=l.mobile,k=(0,g.useState)(!h),f=I()(k,2),b=f[0],v=f[1];return(0,g.useEffect)(function(){v(!h)},[h]),(0,ia.jsx)(Dp,{style:_,placement:"left",defaultSize:{width:280},isExpand:b,onExpandChange:v,children:(0,ia.jsxs)(dE,{children:[!o&&(0,ia.jsx)(hE,{}),n]})})},kE=g.memo(gE);const ag=["blue","purple","cyan","green","magenta","pink","red","orange","yellow","volcano","geekblue","lime","gold"],pE=ag.map(e=>`${e}-inverse`),fE=null;function Rp(e){return(arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0)?[].concat(xa(pE),xa(ag)).includes(e):ag.includes(e)}function xR(e){return fE.includes(e)}function Ap(e,a){return ag.reduce((n,o)=>{const _=e[`${o}1`],l=e[`${o}3`],h=e[`${o}6`],k=e[`${o}7`];return Object.assign(Object.assign({},n),a(o,{lightColor:_,lightBorderColor:l,darkColor:h,textColor:k}))},{})}const yE=new ui("antStatusProcessing",{"0%":{transform:"scale(0.8)",opacity:.5},"100%":{transform:"scale(2.4)",opacity:0}}),bE=new ui("antZoomBadgeIn",{"0%":{transform:"scale(0) translate(50%, -50%)",opacity:0},"100%":{transform:"scale(1) translate(50%, -50%)"}}),vE=new ui("antZoomBadgeOut",{"0%":{transform:"scale(1) translate(50%, -50%)"},"100%":{transform:"scale(0) translate(50%, -50%)",opacity:0}}),wE=new ui("antNoWrapperZoomBadgeIn",{"0%":{transform:"scale(0)",opacity:0},"100%":{transform:"scale(1)"}}),jE=new ui("antNoWrapperZoomBadgeOut",{"0%":{transform:"scale(1)"},"100%":{transform:"scale(0)",opacity:0}}),zE=new ui("antBadgeLoadingCircle",{"0%":{transformOrigin:"50%"},"100%":{transform:"translate(50%, -50%) rotate(360deg)",transformOrigin:"50%"}}),xE=e=>{const{componentCls:a,iconCls:n,antCls:o,badgeFontHeight:_,badgeShadowSize:l,badgeHeightSm:h,motionDurationSlow:k,badgeStatusSize:f,marginXS:b,badgeRibbonOffset:v}=e,w=`${o}-scroll-number`,z=`${o}-ribbon`,S=`${o}-ribbon-wrapper`,E=Ap(e,(P,T)=>{let{darkColor:A}=T;return{[`${a}-color-${P}`]:{background:A}}}),O=Ap(e,(P,T)=>{let{darkColor:A}=T;return{[`&${z}-color-${P}`]:{background:A,color:A}}});return{[a]:Object.assign(Object.assign(Object.assign(Object.assign({},it(e)),{position:"relative",display:"inline-block",width:"fit-content",lineHeight:1,[`${a}-count`]:{zIndex:e.badgeZIndex,minWidth:e.badgeHeight,height:e.badgeHeight,color:e.badgeTextColor,fontWeight:e.badgeFontWeight,fontSize:e.badgeFontSize,lineHeight:`${e.badgeHeight}px`,whiteSpace:"nowrap",textAlign:"center",background:e.badgeColor,borderRadius:e.badgeHeight/2,boxShadow:`0 0 0 ${l}px ${e.badgeShadowColor}`,transition:`background ${e.motionDurationMid}`,a:{color:e.badgeTextColor},"a:hover":{color:e.badgeTextColor},"a:hover &":{background:e.badgeColorHover}},[`${a}-count-sm`]:{minWidth:h,height:h,fontSize:e.badgeFontSizeSm,lineHeight:`${h}px`,borderRadius:h/2},[`${a}-multiple-words`]:{padding:`0 ${e.paddingXS}px`},[`${a}-dot`]:{zIndex:e.badgeZIndex,width:e.badgeDotSize,minWidth:e.badgeDotSize,height:e.badgeDotSize,background:e.badgeColor,borderRadius:"100%",boxShadow:`0 0 0 ${l}px ${e.badgeShadowColor}`},[`${a}-dot${w}`]:{transition:`background ${k}`},[`${a}-count, ${a}-dot, ${w}-custom-component`]:{position:"absolute",top:0,insetInlineEnd:0,transform:"translate(50%, -50%)",transformOrigin:"100% 0%",[`${n}-spin`]:{animationName:zE,animationDuration:e.motionDurationMid,animationIterationCount:"infinite",animationTimingFunction:"linear"}},[`&${a}-status`]:{lineHeight:"inherit",verticalAlign:"baseline",[`${a}-status-dot`]:{position:"relative",top:-1,display:"inline-block",width:f,height:f,verticalAlign:"middle",borderRadius:"50%"},[`${a}-status-success`]:{backgroundColor:e.colorSuccess},[`${a}-status-processing`]:{position:"relative",color:e.colorPrimary,backgroundColor:e.colorPrimary,"&::after":{position:"absolute",top:0,insetInlineStart:0,width:"100%",height:"100%",borderWidth:l,borderStyle:"solid",borderColor:"inherit",borderRadius:"50%",animationName:yE,animationDuration:e.badgeProcessingDuration,animationIterationCount:"infinite",animationTimingFunction:"ease-in-out",content:'""'}},[`${a}-status-default`]:{backgroundColor:e.colorTextPlaceholder},[`${a}-status-error`]:{backgroundColor:e.colorError},[`${a}-status-warning`]:{backgroundColor:e.colorWarning},[`${a}-status-text`]:{marginInlineStart:b,color:e.colorText,fontSize:e.fontSize}}}),E),{[`${a}-zoom-appear, ${a}-zoom-enter`]:{animationName:bE,animationDuration:e.motionDurationSlow,animationTimingFunction:e.motionEaseOutBack,animationFillMode:"both"},[`${a}-zoom-leave`]:{animationName:vE,animationDuration:e.motionDurationSlow,animationTimingFunction:e.motionEaseOutBack,animationFillMode:"both"},[`&${a}-not-a-wrapper`]:{[`${a}-zoom-appear, ${a}-zoom-enter`]:{animationName:wE,animationDuration:e.motionDurationSlow,animationTimingFunction:e.motionEaseOutBack},[`${a}-zoom-leave`]:{animationName:jE,animationDuration:e.motionDurationSlow,animationTimingFunction:e.motionEaseOutBack},[`&:not(${a}-status)`]:{verticalAlign:"middle"},[`${w}-custom-component, ${a}-count`]:{transform:"none"},[`${w}-custom-component, ${w}`]:{position:"relative",top:"auto",display:"block",transformOrigin:"50% 50%"}},[`${w}`]:{overflow:"hidden",[`${w}-only`]:{position:"relative",display:"inline-block",height:e.badgeHeight,transition:`all ${e.motionDurationSlow} ${e.motionEaseOutBack}`,WebkitTransformStyle:"preserve-3d",WebkitBackfaceVisibility:"hidden",[`> p${w}-only-unit`]:{height:e.badgeHeight,margin:0,WebkitTransformStyle:"preserve-3d",WebkitBackfaceVisibility:"hidden"}},[`${w}-symbol`]:{verticalAlign:"top"}},"&-rtl":{direction:"rtl",[`${a}-count, ${a}-dot, ${w}-custom-component`]:{transform:"translate(-50%, -50%)"}}}),[`${S}`]:{position:"relative"},[`${z}`]:Object.assign(Object.assign(Object.assign(Object.assign({},it(e)),{position:"absolute",top:b,padding:`0 ${e.paddingXS}px`,color:e.colorPrimary,lineHeight:`${_}px`,whiteSpace:"nowrap",backgroundColor:e.colorPrimary,borderRadius:e.borderRadiusSM,[`${z}-text`]:{color:e.colorTextLightSolid},[`${z}-corner`]:{position:"absolute",top:"100%",width:v,height:v,color:"currentcolor",border:`${v/2}px solid`,transform:e.badgeRibbonCornerTransform,transformOrigin:"top",filter:e.badgeRibbonCornerFilter}}),O),{[`&${z}-placement-end`]:{insetInlineEnd:-v,borderEndEndRadius:0,[`${z}-corner`]:{insetInlineEnd:0,borderInlineEndColor:"transparent",borderBlockEndColor:"transparent"}},[`&${z}-placement-start`]:{insetInlineStart:-v,borderEndStartRadius:0,[`${z}-corner`]:{insetInlineStart:0,borderBlockEndColor:"transparent",borderInlineStartColor:"transparent"}},"&-rtl":{direction:"rtl"}})}};var tw=dr("Badge",e=>{const{fontSize:a,lineHeight:n,fontSizeSM:o,lineWidth:_,marginXS:l,colorBorderBg:h}=e,k=Math.round(a*n),f=_,b="auto",v=k-2*f,w=e.colorBgContainer,z="normal",S=o,E=e.colorError,O=e.colorErrorHover,P=a,T=o/2,A=o,L=o/2,H=Po(e,{badgeFontHeight:k,badgeShadowSize:f,badgeZIndex:b,badgeHeight:v,badgeTextColor:w,badgeFontWeight:z,badgeFontSize:S,badgeColor:E,badgeColorHover:O,badgeShadowColor:h,badgeHeightSm:P,badgeDotSize:T,badgeFontSizeSm:A,badgeStatusSize:L,badgeProcessingDuration:"1.2s",badgeRibbonOffset:l,badgeRibbonCornerTransform:"scaleY(0.75)",badgeRibbonCornerFilter:"brightness(75%)"});return[xE(H)]}),CE=e=>{let{className:a,prefixCls:n,style:o,color:_,children:l,text:h,placement:k="end"}=e;const{getPrefixCls:f,direction:b}=g.useContext(Ha),v=f("ribbon",n),w=Rp(_,!1),z=ka()(v,`${v}-placement-${k}`,{[`${v}-rtl`]:b==="rtl",[`${v}-color-${_}`]:w},a),[S,E]=tw(v),O={},P={};return _&&!w&&(O.background=_,P.color=_),S(g.createElement("div",{className:ka()(`${v}-wrapper`,E)},l,g.createElement("div",{className:ka()(z,E),style:Object.assign(Object.assign({},O),o)},g.createElement("span",{className:`${v}-text`},h),g.createElement("div",{className:`${v}-corner`,style:P}))))};function _w(e){let{prefixCls:a,value:n,current:o,offset:_=0}=e,l;return _&&(l={position:"absolute",top:`${_}00%`,left:0}),g.createElement("span",{style:l,className:ka()(`${a}-only-unit`,{current:o})},n)}function SE(e,a,n){let o=e,_=0;for(;(o+10)%10!==a;)o+=n,_+=n;return _}function PE(e){const{prefixCls:a,count:n,value:o}=e,_=Number(o),l=Math.abs(n),[h,k]=g.useState(_),[f,b]=g.useState(l),v=()=>{k(_),b(l)};g.useEffect(()=>{const S=setTimeout(()=>{v()},1e3);return()=>{clearTimeout(S)}},[_]);let w,z;if(h===_||Number.isNaN(_)||Number.isNaN(h))w=[g.createElement(_w,Object.assign({},e,{key:_,current:!0}))],z={transition:"none"};else{w=[];const S=_+10,E=[];for(let T=_;T<=S;T+=1)E.push(T);const O=E.findIndex(T=>T%10===h);w=E.map((T,A)=>{const L=T%10;return g.createElement(_w,Object.assign({},e,{key:T,value:L,offset:A-O,current:A===O}))});const P=f{var{prefixCls:n,count:o,className:_,motionClassName:l,style:h,title:k,show:f,component:b="sup",children:v}=e,w=EE(e,["prefixCls","count","className","motionClassName","style","title","show","component","children"]);const{getPrefixCls:z}=g.useContext(Ha),S=z("scroll-number",n),E=Object.assign(Object.assign({},w),{"data-show":f,style:h,className:ka()(S,_,l),title:k});let O=o;if(o&&Number(o)%1===0){const P=String(o).split("");O=P.map((T,A)=>g.createElement(PE,{prefixCls:S,count:Number(o),value:T,key:P.length-A}))}return h&&h.borderColor&&(E.style=Object.assign(Object.assign({},h),{boxShadow:`0 0 0 1px ${h.borderColor} inset`})),v?es(v,P=>({className:ka()(`${S}-custom-component`,P==null?void 0:P.className,l)})):g.createElement(b,Object.assign({},E,{ref:a}),O)}),IE=function(e,a){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&a.indexOf(o)<0&&(n[o]=e[o]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var _=0,o=Object.getOwnPropertySymbols(e);_{var{prefixCls:a,scrollNumberPrefixCls:n,children:o,status:_,text:l,color:h,count:k=null,overflowCount:f=99,dot:b=!1,size:v="default",title:w,offset:z,style:S,className:E,rootClassName:O,showZero:P=!1}=e,T=IE(e,["prefixCls","scrollNumberPrefixCls","children","status","text","color","count","overflowCount","dot","size","title","offset","style","className","rootClassName","showZero"]);const{getPrefixCls:A,direction:L}=g.useContext(Ha),H=A("badge",a),[K,ae]=tw(H),ie=k>f?`${f}+`:k,se=ie==="0"||ie===0,he=k===null||se&&!P,ue=(_!=null||h!=null)&&he,ze=b&&!se,te=ze?"":ie,re=(0,g.useMemo)(()=>(te==null||te===""||se&&!P)&&!ze,[te,se,P,ze]),le=(0,g.useRef)(k);re||(le.current=k);const be=le.current,Be=(0,g.useRef)(te);re||(Be.current=te);const He=Be.current,ea=(0,g.useRef)(ze);re||(ea.current=ze);const ca=(0,g.useMemo)(()=>{if(!z)return Object.assign({},S);const pa={marginTop:z[1]};return L==="rtl"?pa.left=parseInt(z[0],10):pa.right=-parseInt(z[0],10),Object.assign(Object.assign({},pa),S)},[L,z,S]),Sa=w!=null?w:typeof be=="string"||typeof be=="number"?be:void 0,ya=re||!l?null:g.createElement("span",{className:`${H}-status-text`},l),Ge=!be||typeof be!="object"?void 0:es(be,pa=>({style:Object.assign(Object.assign({},ca),pa.style)})),$e=Rp(h,!1),ra=ka()({[`${H}-status-dot`]:ue,[`${H}-status-${_}`]:!!_,[`${H}-color-${h}`]:$e}),Xe={};h&&!$e&&(Xe.color=h,Xe.background=h);const Se=ka()(H,{[`${H}-status`]:ue,[`${H}-not-a-wrapper`]:!o,[`${H}-rtl`]:L==="rtl"},E,O,ae);if(!o&&ue){const pa=ca.color;return K(g.createElement("span",Object.assign({},T,{className:Se,style:ca}),g.createElement("span",{className:ra,style:Xe}),l&&g.createElement("span",{style:{color:pa},className:`${H}-status-text`},l)))}return K(g.createElement("span",Object.assign({},T,{className:Se}),o,g.createElement(Bt,{visible:!re,motionName:`${H}-zoom`,motionAppear:!1,motionDeadline:1e3},pa=>{let{className:Ze,ref:Ia}=pa;const Ta=A("scroll-number",n),da=ea.current,Ca=ka()({[`${H}-dot`]:da,[`${H}-count`]:!da,[`${H}-count-sm`]:v==="small",[`${H}-multiple-words`]:!da&&He&&He.toString().length>1,[`${H}-status-${_}`]:!!_,[`${H}-color-${h}`]:$e});let Ra=Object.assign({},ca);return h&&!$e&&(Ra=Ra||{},Ra.background=h),g.createElement(OE,{prefixCls:Ta,show:!re,motionClassName:Ze,className:Ca,count:He,title:Sa,style:Ra,key:"scrollNumber",ref:Ia},Ge)}),ya))};sw.Ribbon=CE;var DE=sw,uw=function(){if(typeof Map!="undefined")return Map;function e(a,n){var o=-1;return a.some(function(_,l){return _[0]===n?(o=l,!0):!1}),o}return function(){function a(){this.__entries__=[]}return Object.defineProperty(a.prototype,"size",{get:function(){return this.__entries__.length},enumerable:!0,configurable:!0}),a.prototype.get=function(n){var o=e(this.__entries__,n),_=this.__entries__[o];return _&&_[1]},a.prototype.set=function(n,o){var _=e(this.__entries__,n);~_?this.__entries__[_][1]=o:this.__entries__.push([n,o])},a.prototype.delete=function(n){var o=this.__entries__,_=e(o,n);~_&&o.splice(_,1)},a.prototype.has=function(n){return!!~e(this.__entries__,n)},a.prototype.clear=function(){this.__entries__.splice(0)},a.prototype.forEach=function(n,o){o===void 0&&(o=null);for(var _=0,l=this.__entries__;_0},e.prototype.connect_=function(){!Np||this.connected_||(document.addEventListener("transitionend",this.onTransitionEnd_),window.addEventListener("resize",this.refresh),FE?(this.mutationsObserver_=new MutationObserver(this.refresh),this.mutationsObserver_.observe(document,{attributes:!0,childList:!0,characterData:!0,subtree:!0})):(document.addEventListener("DOMSubtreeModified",this.refresh),this.mutationEventsAdded_=!0),this.connected_=!0)},e.prototype.disconnect_=function(){!Np||!this.connected_||(document.removeEventListener("transitionend",this.onTransitionEnd_),window.removeEventListener("resize",this.refresh),this.mutationsObserver_&&this.mutationsObserver_.disconnect(),this.mutationEventsAdded_&&document.removeEventListener("DOMSubtreeModified",this.refresh),this.mutationsObserver_=null,this.mutationEventsAdded_=!1,this.connected_=!1)},e.prototype.onTransitionEnd_=function(a){var n=a.propertyName,o=n===void 0?"":n,_=ME.some(function(l){return!!~o.indexOf(l)});_&&this.refresh()},e.getInstance=function(){return this.instance_||(this.instance_=new e),this.instance_},e.instance_=null,e}(),lw=function(e,a){for(var n=0,o=Object.keys(a);n0},e}(),hw=typeof WeakMap!="undefined"?new WeakMap:new uw,dw=function(){function e(a){if(!(this instanceof e))throw new TypeError("Cannot call a class as a function.");if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");var n=LE.getInstance(),o=new YE(a,n,this);hw.set(this,o)}return e}();["observe","unobserve","disconnect"].forEach(function(e){dw.prototype[e]=function(){var a;return(a=hw.get(this))[e].apply(a,arguments)}});var KE=function(){return typeof ig.ResizeObserver!="undefined"?ig.ResizeObserver:dw}(),QE=KE,ts=new Map;function JE(e){e.forEach(function(a){var n,o=a.target;(n=ts.get(o))===null||n===void 0||n.forEach(function(_){return _(o)})})}var gw=new QE(JE),PR=null,ER=null;function ZE(e,a){ts.has(e)||(ts.set(e,new Set),gw.observe(e)),ts.get(e).add(a)}function eO(e,a){ts.has(e)&&(ts.get(e).delete(a),ts.get(e).size||(gw.unobserve(e),ts.delete(e)))}var aO=function(e){iu(n,e);var a=nu(n);function n(){return mn(this,n),a.apply(this,arguments)}return M(n,[{key:"render",value:function(){return this.props.children}}]),n}(g.Component),Mp=g.createContext(null);function iO(e){var a=e.children,n=e.onBatchResize,o=g.useRef(0),_=g.useRef([]),l=g.useContext(Mp),h=g.useCallback(function(k,f,b){o.current+=1;var v=o.current;_.current.push({size:k,element:f,data:b}),Promise.resolve().then(function(){v===o.current&&(n==null||n(_.current),_.current=[])}),l==null||l(k,f,b)},[n,l]);return g.createElement(Mp.Provider,{value:h},a)}function nO(e,a){var n=e.children,o=e.disabled,_=g.useRef(null),l=g.useRef(null),h=g.useContext(Mp),k=typeof n=="function",f=k?n(_):n,b=g.useRef({width:-1,height:-1,offsetWidth:-1,offsetHeight:-1}),v=!k&&g.isValidElement(f)&&Fm(f),w=v?f.ref:null,z=g.useMemo(function(){return Mm(w,_)},[w,_]),S=function(){return kk(_.current)||kk(l.current)};g.useImperativeHandle(a,function(){return S()});var E=g.useRef(e);E.current=e;var O=g.useCallback(function(P){var T=E.current,A=T.onResize,L=T.data,H=P.getBoundingClientRect(),K=H.width,ae=H.height,ie=P.offsetWidth,se=P.offsetHeight,he=Math.floor(K),ue=Math.floor(ae);if(b.current.width!==he||b.current.height!==ue||b.current.offsetWidth!==ie||b.current.offsetHeight!==se){var ze={width:he,height:ue,offsetWidth:ie,offsetHeight:se};b.current=ze;var te=ie===Math.round(K)?K:ie,re=se===Math.round(ae)?ae:se,le=Ie(Ie({},ze),{},{offsetWidth:te,offsetHeight:re});h==null||h(le,P,L),A&&Promise.resolve().then(function(){A(le,P)})}},[]);return g.useEffect(function(){var P=S();return P&&!o&&ZE(P,O),function(){return eO(P,O)}},[_.current,o]),g.createElement(aO,{ref:l},v?g.cloneElement(f,{ref:z}):f)}var oO=g.forwardRef(nO),rO=oO,tO="rc-observer-key";function _O(e,a){var n=e.children,o=typeof n=="function"?[n]:Nt(n);return o.map(function(_,l){var h=(_==null?void 0:_.key)||"".concat(tO,"-").concat(l);return g.createElement(rO,gi({},e,{key:h,ref:l===0?a:void 0}),_)})}var kw=g.forwardRef(_O);kw.Collection=iO;var pw=kw;function Yt(e){var a=g.useRef();a.current=e;var n=g.useCallback(function(){for(var o,_=arguments.length,l=new Array(_),h=0;h<_;h++)l[h]=arguments[h];return(o=a.current)===null||o===void 0?void 0:o.call.apply(o,[a].concat(l))},[]);return n}var sO=function(){if(typeof navigator=="undefined"||typeof window=="undefined")return!1;var e=navigator.userAgent||navigator.vendor||window.opera;return/(android|bb\d+|meego).+mobile|avantgo|bada\/|blackberry|blazer|compal|elaine|fennec|hiptop|iemobile|ip(hone|od)|iris|kindle|lge |maemo|midp|mmp|mobile.+firefox|netfront|opera m(ob|in)i|palm( os)?|phone|p(ixi|re)\/|plucker|pocket|psp|series(4|6)0|symbian|treo|up\.(browser|link)|vodafone|wap|windows ce|xda|xiino|android|ipad|playbook|silk/i.test(e)||/1207|6310|6590|3gso|4thp|50[1-6]i|770s|802s|a wa|abac|ac(er|oo|s-)|ai(ko|rn)|al(av|ca|co)|amoi|an(ex|ny|yw)|aptu|ar(ch|go)|as(te|us)|attw|au(di|-m|r |s )|avan|be(ck|ll|nq)|bi(lb|rd)|bl(ac|az)|br(e|v)w|bumb|bw-(n|u)|c55\/|capi|ccwa|cdm-|cell|chtm|cldc|cmd-|co(mp|nd)|craw|da(it|ll|ng)|dbte|dc-s|devi|dica|dmob|do(c|p)o|ds(12|-d)|el(49|ai)|em(l2|ul)|er(ic|k0)|esl8|ez([4-7]0|os|wa|ze)|fetc|fly(-|_)|g1 u|g560|gene|gf-5|g-mo|go(\.w|od)|gr(ad|un)|haie|hcit|hd-(m|p|t)|hei-|hi(pt|ta)|hp( i|ip)|hs-c|ht(c(-| |_|a|g|p|s|t)|tp)|hu(aw|tc)|i-(20|go|ma)|i230|iac( |-|\/)|ibro|idea|ig01|ikom|im1k|inno|ipaq|iris|ja(t|v)a|jbro|jemu|jigs|kddi|keji|kgt( |\/)|klon|kpt |kwc-|kyo(c|k)|le(no|xi)|lg( g|\/(k|l|u)|50|54|-[a-w])|libw|lynx|m1-w|m3ga|m50\/|ma(te|ui|xo)|mc(01|21|ca)|m-cr|me(rc|ri)|mi(o8|oa|ts)|mmef|mo(01|02|bi|de|do|t(-| |o|v)|zz)|mt(50|p1|v )|mwbp|mywa|n10[0-2]|n20[2-3]|n30(0|2)|n50(0|2|5)|n7(0(0|1)|10)|ne((c|m)-|on|tf|wf|wg|wt)|nok(6|i)|nzph|o2im|op(ti|wv)|oran|owg1|p800|pan(a|d|t)|pdxg|pg(13|-([1-8]|c))|phil|pire|pl(ay|uc)|pn-2|po(ck|rt|se)|prox|psio|pt-g|qa-a|qc(07|12|21|32|60|-[2-7]|i-)|qtek|r380|r600|raks|rim9|ro(ve|zo)|s55\/|sa(ge|ma|mm|ms|ny|va)|sc(01|h-|oo|p-)|sdk\/|se(c(-|0|1)|47|mc|nd|ri)|sgh-|shar|sie(-|m)|sk-0|sl(45|id)|sm(al|ar|b3|it|t5)|so(ft|ny)|sp(01|h-|v-|v )|sy(01|mb)|t2(18|50)|t6(00|10|18)|ta(gt|lk)|tcl-|tdg-|tel(i|m)|tim-|t-mo|to(pl|sh)|ts(70|m-|m3|m5)|tx-9|up(\.b|g1|si)|utst|v400|v750|veri|vi(rg|te)|vk(40|5[0-3]|-v)|vm40|voda|vulc|vx(52|53|60|61|70|80|81|83|85|98)|w3c(-| )|webc|whit|wi(g |nc|nw)|wmlb|wonu|x700|yas-|your|zeto|zte-/i.test(e==null?void 0:e.substr(0,4))},uO=g.createContext(null),fw=uO;function yw(e){return e?Array.isArray(e)?e:[e]:[]}function lO(e,a,n,o){return g.useMemo(function(){var _=yw(n!=null?n:a),l=yw(o!=null?o:a),h=new Set(_),k=new Set(l);return e&&(h.has("hover")&&(h.delete("hover"),h.add("click")),k.has("hover")&&(k.delete("hover"),k.add("click"))),[h,k]},[e,a,n,o])}function cO(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],a=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],n=arguments.length>2?arguments[2]:void 0;return n?e[0]===a[0]:e[0]===a[0]&&e[1]===a[1]}function mO(e,a,n,o){for(var _=n.points,l=Object.keys(e),h=0;h0&&arguments[0]!==void 0?arguments[0]:"";return[e[0],e[1]]}function Yl(e,a){var n=a[0],o=a[1],_,l;return n==="t"?l=e.y:n==="b"?l=e.y+e.height:l=e.y+e.height/2,o==="l"?_=e.x:o==="r"?_=e.x+e.width:_=e.x+e.width/2,{x:_,y:l}}function _s(e,a){var n={t:"b",b:"t",l:"r",r:"l"};return e.map(function(o,_){return _===a?n[o]||"c":o}).join("")}function dO(e,a,n,o,_,l,h){var k=g.useState({ready:!1,offsetX:0,offsetY:0,arrowX:0,arrowY:0,scaleX:1,scaleY:1,align:_[o]||{}}),f=la(k,2),b=f[0],v=f[1],w=g.useRef(0),z=g.useMemo(function(){return a?Fp(a):[]},[a]),S=g.useRef({}),E=function(){S.current={}};e||E();var O=Yt(function(){if(a&&n&&e){let Zt=function(mg,Eu){var hg=ue.x+mg,dg=ue.y+Eu,gg=hg+Ge,Kp=dg+ya,Qp=Math.max(hg,Xe.left),Jp=Math.max(dg,Xe.top),kg=Math.min(gg,Xe.right),Zp=Math.min(Kp,Xe.bottom);return Math.max(0,(kg-Qp)*(Zp-Jp))},e_=function(){er=ue.y+Di,ar=er+ya,st=ue.x+Ki,wr=st+Ge};var A=a,L=A.style.left,H=A.style.top,K=A.ownerDocument,ae=qm(A),ie=Ie(Ie({},_[o]),l);A.style.left="0",A.style.top="0";var se;if(Array.isArray(n))se={x:n[0],y:n[1],width:0,height:0};else{var he=n.getBoundingClientRect();se={x:he.x,y:he.y,width:he.width,height:he.height}}var ue=A.getBoundingClientRect(),ze=ae.getComputedStyle(A),te=ze.width,re=ze.height,le=K.documentElement,be=le.clientWidth,Be=le.clientHeight,He=le.scrollWidth,ea=le.scrollHeight,ca=le.scrollTop,Sa=le.scrollLeft,ya=ue.height,Ge=ue.width,$e=se.height,ra=se.width,Xe=ie.htmlRegion==="scroll"?{left:-Sa,top:-ca,right:He-Sa,bottom:ea-ca}:{left:0,top:0,right:be,bottom:Be};Xe=hO(Xe,z),A.style.left=L,A.style.top=H;var Se=rg(Math.round(Ge/parseFloat(te)*1e3)/1e3),pa=rg(Math.round(ya/parseFloat(re)*1e3)/1e3);if(Se===0||pa===0||wd(n)&&!uy(n))return;var Ze=ie.offset,Ia=ie.targetOffset,Ta=Ze||[],da=la(Ta,2),Ca=da[0],Ra=Ca===void 0?0:Ca,ai=da[1],Ma=ai===void 0?0:ai,mi=Ia||[],va=la(mi,2),Oa=va[0],qa=Oa===void 0?0:Oa,Ga=va[1],ln=Ga===void 0?0:Ga;se.x+=qa,se.y+=ln;var Wi=ie.points||[],Li=la(Wi,2),Ua=Li[0],ii=Li[1],Kn=vw(ii),on=vw(Ua),Bi=Yl(se,Kn),zu=Yl(ue,on),yi=Ie({},ie),Ki=Bi.x-zu.x+Ra,Di=Bi.y-zu.y+Ma,To=Zt(Ki,Di),Nn=Yl(se,["t","l"]),vr=Yl(ue,["t","l"]),Zl=Yl(se,["b","r"]),xu=Yl(ue,["b","r"]),_t=ie.overflow||{},ec=_t.adjustX,ac=_t.adjustY,ic=_t.shiftX,Cu=_t.shiftY,Qn=function(Eu){return typeof Eu=="boolean"?Eu:Eu>=0},er,ar,st,wr;e_();var Su=Qn(ac),Ro=on[0]===Kn[0];if(Su&&on[0]==="t"&&(ar>Xe.bottom||S.current.bt)){var Kt=Di;Ro?Kt-=ya-$e:Kt=Nn.y-xu.y-Ma,Zt(Ki,Kt)>=To?(S.current.bt=!0,Di=Kt,yi.points=[_s(on,0),_s(Kn,0)]):S.current.bt=!1}if(Su&&on[0]==="b"&&(er=To?(S.current.tb=!0,Di=go,yi.points=[_s(on,0),_s(Kn,0)]):S.current.tb=!1}var Pu=Qn(ec),ss=on[1]===Kn[1];if(Pu&&on[1]==="l"&&(wr>Xe.right||S.current.rl)){var ut=Ki;ss?ut-=Ge-ra:ut=Nn.x-xu.x-Ra,Zt(ut,Di)>=To?(S.current.rl=!0,Ki=ut,yi.points=[_s(on,1),_s(Kn,1)]):S.current.rl=!1}if(Pu&&on[1]==="r"&&(st=To?(S.current.lr=!0,Ki=Qt,yi.points=[_s(on,1),_s(Kn,1)]):S.current.lr=!1}e_();var lt=ic===!0?0:ic;typeof lt=="number"&&(stXe.right&&(Ki-=wr-Xe.right,se.x>Xe.right-lt&&(Ki+=se.x-Xe.right+lt)));var di=Cu===!0?0:Cu;typeof di=="number"&&(erXe.bottom&&(Di-=ar-Xe.bottom,se.y>Xe.bottom-di&&(Di+=se.y-Xe.bottom+di)));var si=ue.x+Ki,Qa=si+Ge,Si=ue.y+Di,wi=Si+ya,jr=se.x,Ao=jr+ra,No=se.y,Pn=No+$e,nc=Math.max(si,jr),oc=Math.min(Qa,Ao),Jt=(nc+oc)/2,Xm=Jt-si,Gp=Math.max(Si,No),Xp=Math.min(wi,Pn),Yp=(Gp+Xp)/2,rc=Yp-Si;h==null||h(a,yi),v({ready:!0,offsetX:Ki/Se,offsetY:Di/pa,arrowX:Xm/Se,arrowY:rc/pa,scaleX:Se,scaleY:pa,align:yi})}}),P=function(){w.current+=1;var L=w.current;Promise.resolve().then(function(){w.current===L&&O()})},T=function(){v(function(L){return Ie(Ie({},L),{},{ready:!1})})};return Eo(T,[o]),Eo(function(){e||T()},[e]),[b.ready,b.offsetX,b.offsetY,b.arrowX,b.arrowY,b.scaleX,b.scaleY,b.align,P]}function gO(e,a,n,o){Eo(function(){if(e&&a&&n){let v=function(){o()};var _=a,l=n,h=Fp(_),k=Fp(l),f=qm(l),b=new Set([f].concat(xa(h),xa(k)));return b.forEach(function(w){w.addEventListener("scroll",v,{passive:!0})}),f.addEventListener("resize",v,{passive:!0}),o(),function(){b.forEach(function(w){w.removeEventListener("scroll",v),f.removeEventListener("resize",v)})}}},[e,a,n])}function kO(e){var a=e.prefixCls,n=e.align,o=e.arrowX,_=o===void 0?0:o,l=e.arrowY,h=l===void 0?0:l,k=g.useRef();if(!n||!n.points)return null;var f={position:"absolute"};if(n.autoArrow!==!1){var b=n.points[0],v=n.points[1],w=b[0],z=b[1],S=v[0],E=v[1];w===S||!["t","b"].includes(w)?f.top=h:w==="t"?f.top=0:f.bottom=0,z===E||!["l","r"].includes(z)?f.left=_:z==="l"?f.left=0:f.right=0}return g.createElement("div",{ref:k,className:"".concat(a,"-arrow"),style:f})}function pO(e){var a=e.prefixCls,n=e.open,o=e.zIndex,_=e.mask,l=e.motion;return _?React.createElement(Bt,gi({},l,{motionAppear:!0,visible:n,removeOnLeave:!0}),function(h){var k=h.className;return React.createElement("div",{style:{zIndex:o},className:ka()("".concat(a,"-mask"),k)})}):null}var fO=g.forwardRef(function(e,a){var n=e.popup,o=e.className,_=e.prefixCls,l=e.style,h=e.target,k=e.onVisibleChanged,f=e.open,b=e.keepDom,v=e.onClick,w=e.mask,z=e.arrow,S=e.align,E=e.arrowX,O=e.arrowY,P=e.motion,T=e.maskMotion,A=e.forceRender,L=e.getPopupContainer,H=e.autoDestroy,K=e.portal,ae=e.zIndex,ie=e.onMouseEnter,se=e.onMouseLeave,he=e.ready,ue=e.offsetX,ze=e.offsetY,te=e.onAlign,re=e.onPrepare,le=e.stretch,be=e.targetWidth,Be=e.targetHeight,He=typeof n=="function"?n():n,ea=f||b,ca=(L==null?void 0:L.length)>0,Sa=g.useState(!L||!ca),ya=la(Sa,2),Ge=ya[0],$e=ya[1];if(Eo(function(){!Ge&&ca&&h&&$e(!0)},[Ge,ca,h]),!Ge)return null;var ra=he||!f?{left:ue,top:ze}:{left:"-1000vw",top:"-1000vh"},Xe={};return le&&(le.includes("height")&&Be?Xe.height=Be:le.includes("minHeight")&&Be&&(Xe.minHeight=Be),le.includes("width")&&be?Xe.width=be:le.includes("minWidth")&&be&&(Xe.minWidth=be)),f||(Xe.pointerEvents="none"),g.createElement(K,{open:A||ea,getContainer:L&&function(){return L(h)},autoDestroy:H},g.createElement(pO,{prefixCls:_,open:f,zIndex:ae,mask:w,motion:T}),g.createElement(pw,{onResize:te,disabled:!f},function(Se){return g.createElement(Bt,gi({motionAppear:!0,motionEnter:!0,motionLeave:!0,removeOnLeave:!1,forceRender:A,leavedClassName:"".concat(_,"-hidden")},P,{onAppearPrepare:re,onEnterPrepare:re,visible:f,onVisibleChanged:function(Ze){var Ia;P==null||(Ia=P.onVisibleChanged)===null||Ia===void 0||Ia.call(P,Ze),k(Ze)}}),function(pa,Ze){var Ia=pa.className,Ta=pa.style,da=ka()(_,Ia,o);return g.createElement("div",{ref:Mm(Se,a,Ze),className:da,style:Ie(Ie(Ie(Ie({},ra),Xe),Ta),{},{boxSizing:"border-box",zIndex:ae},l),onMouseEnter:ie,onMouseLeave:se,onClick:v},z&&g.createElement(kO,{prefixCls:_,align:S,arrowX:E,arrowY:O}),He)})}))}),yO=fO,bO=g.forwardRef(function(e,a){var n=e.children,o=e.getTriggerDOMNode,_=Fm(n),l=g.useCallback(function(k){pk(a,o?o(k):k)},[o]),h=Cf(l,n.ref);return _?g.cloneElement(n,{ref:h}):n}),vO=bO,wO=["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","alignPoint","onPopupClick","onPopupAlign","arrow","popupMotion","maskMotion","popupTransitionName","popupAnimation","maskTransitionName","maskAnimation","className","getTriggerDOMNode"];function jO(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:Vk,a=g.forwardRef(function(n,o){var _=n.prefixCls,l=_===void 0?"rc-trigger-popup":_,h=n.children,k=n.action,f=k===void 0?"hover":k,b=n.showAction,v=n.hideAction,w=n.popupVisible,z=n.defaultPopupVisible,S=n.onPopupVisibleChange,E=n.afterPopupVisibleChange,O=n.mouseEnterDelay,P=n.mouseLeaveDelay,T=P===void 0?.1:P,A=n.focusDelay,L=n.blurDelay,H=n.mask,K=n.maskClosable,ae=K===void 0?!0:K,ie=n.getPopupContainer,se=n.forceRender,he=n.autoDestroy,ue=n.destroyPopupOnHide,ze=n.popup,te=n.popupClassName,re=n.popupStyle,le=n.popupPlacement,be=n.builtinPlacements,Be=be===void 0?{}:be,He=n.popupAlign,ea=n.zIndex,ca=n.stretch,Sa=n.getPopupClassNameFromAlign,ya=n.alignPoint,Ge=n.onPopupClick,$e=n.onPopupAlign,ra=n.arrow,Xe=n.popupMotion,Se=n.maskMotion,pa=n.popupTransitionName,Ze=n.popupAnimation,Ia=n.maskTransitionName,Ta=n.maskAnimation,da=n.className,Ca=n.getTriggerDOMNode,Ra=Ai(n,wO),ai=he||ue||!1,Ma=g.useState(!1),mi=la(Ma,2),va=mi[0],Oa=mi[1];Eo(function(){Oa(sO())},[]);var qa=g.useRef({}),Ga=g.useContext(fw),ln=g.useMemo(function(){return{registerSubPopup:function(Za,pi){qa.current[Za]=pi,Ga==null||Ga.registerSubPopup(Za,pi)}}},[Ga]),Wi=Iy(),Li=g.useState(null),Ua=la(Li,2),ii=Ua[0],Kn=Ua[1],on=Yt(function(Aa){wd(Aa)&&ii!==Aa&&Kn(Aa),Ga==null||Ga.registerSubPopup(Wi,Aa)}),Bi=g.useState(null),zu=la(Bi,2),yi=zu[0],Ki=zu[1],Di=Yt(function(Aa){wd(Aa)&&yi!==Aa&&Ki(Aa)}),To=g.Children.only(h),Nn=(To==null?void 0:To.props)||{},vr={},Zl=Yt(function(Aa){var Za,pi,Pi=yi;return(Pi==null?void 0:Pi.contains(Aa))||(Pi==null||(Za=Pi.getRootNode())===null||Za===void 0?void 0:Za.host)===Aa||Aa===Pi||(ii==null?void 0:ii.contains(Aa))||(ii==null||(pi=ii.getRootNode())===null||pi===void 0?void 0:pi.host)===Aa||Aa===ii||Object.values(qa.current).some(function(Ti){return(Ti==null?void 0:Ti.contains(Aa))||Aa===Ti})}),xu=bw(l,Xe,Ze,pa),_t=bw(l,Se,Ta,Ia),ec=g.useState(z||!1),ac=la(ec,2),ic=ac[0],Cu=ac[1],Qn=w!=null?w:ic,er=Yt(function(Aa){w===void 0&&Cu(Aa)});Eo(function(){Cu(w||!1)},[w]);var ar=g.useRef(Qn);ar.current=Qn;var st=Yt(function(Aa){Qn!==Aa&&(er(Aa),S==null||S(Aa))}),wr=g.useRef(),Su=function(){clearTimeout(wr.current)},Ro=function(Za){var pi=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0;Su(),pi===0?st(Za):wr.current=setTimeout(function(){st(Za)},pi*1e3)};g.useEffect(function(){return Su},[]);var Kt=g.useState(!1),go=la(Kt,2),Pu=go[0],ss=go[1],ut=g.useRef(!0);Eo(function(){(!ut.current||Qn)&&ss(!0),ut.current=!0},[Qn]);var Qt=g.useState(null),lt=la(Qt,2),di=lt[0],si=lt[1],Qa=g.useState([0,0]),Si=la(Qa,2),wi=Si[0],jr=Si[1],Ao=function(Za){jr([Za.clientX,Za.clientY])},No=dO(Qn,ii,ya?wi:yi,le,Be,He,$e),Pn=la(No,9),nc=Pn[0],oc=Pn[1],Jt=Pn[2],Xm=Pn[3],Gp=Pn[4],Xp=Pn[5],Yp=Pn[6],rc=Pn[7],Zt=Pn[8],e_=Yt(function(){Pu||Zt()});gO(Qn,yi,ii,e_),Eo(function(){e_()},[wi]),Eo(function(){Qn&&!(Be!=null&&Be[le])&&e_()},[JSON.stringify(He)]);var mg=g.useMemo(function(){var Aa=mO(Be,l,rc,ya);return ka()(Aa,Sa==null?void 0:Sa(rc))},[rc,Sa,Be,l,ya]);g.useImperativeHandle(o,function(){return{forceAlign:e_}});var Eu=function(Za){ss(!1),Zt(),E==null||E(Za)},hg=function(){return new Promise(function(Za){si(function(){return Za})})};Eo(function(){di&&(Zt(),di(),si(null))},[di]);var dg=g.useState(0),gg=la(dg,2),Kp=gg[0],Qp=gg[1],Jp=g.useState(0),kg=la(Jp,2),Zp=kg[0],bD=kg[1],vD=function(Za,pi){if(e_(),ca){var Pi=pi.getBoundingClientRect();Qp(Pi.width),bD(Pi.height)}},wD=lO(va,f,b,v),o0=la(wD,2),pg=o0[0],fg=o0[1],yg=function(Za,pi,Pi,Ti){vr[Za]=function(af){var tc;Ti==null||Ti(af),Ro(pi,Pi);for(var Ym=arguments.length,u0=new Array(Ym>1?Ym-1:0),vg=1;vg1?pi-1:0),Ti=1;Ti1?pi-1:0),Ti=1;Ti{const l=e/2,h=0,k=l,f=n*1/Math.sqrt(2),b=l-n*(1-1/Math.sqrt(2)),v=l-a*(1/Math.sqrt(2)),w=n*(Math.sqrt(2)-1)+a*(1/Math.sqrt(2)),z=2*l-v,S=w,E=2*l-f,O=b,P=2*l-h,T=k,A=l*Math.sqrt(2)+n*(Math.sqrt(2)-2);return{pointerEvents:"none",width:e,height:e,overflow:"hidden","&::before":{position:"absolute",bottom:0,insetInlineStart:0,width:e,height:e/2,background:o,clipPath:`path('M ${h} ${k} A ${n} ${n} 0 0 0 ${f} ${b} L ${v} ${w} A ${a} ${a} 0 0 1 ${z} ${S} L ${E} ${O} A ${n} ${n} 0 0 0 ${P} ${T} Z')`,content:'""'},"&::after":{content:'""',position:"absolute",width:A,height:A,bottom:0,insetInline:0,margin:"auto",borderRadius:{_skip_check_:!0,value:`0 0 ${a}px 0`},transform:"translateY(50%) rotate(-135deg)",boxShadow:_,zIndex:0,background:"transparent"}}},jw=8;function zw(e){const a=jw,{contentRadius:n,limitVerticalRadius:o}=e,_=n>12?n+2:12;return{dropdownArrowOffset:_,dropdownArrowOffsetVertical:o?a:_}}function tg(e,a){return e?a:{}}function IO(e,a){const{componentCls:n,sizePopupArrow:o,borderRadiusXS:_,borderRadiusOuter:l,boxShadowPopoverArrow:h}=e,{colorBg:k,contentRadius:f=e.borderRadiusLG,limitVerticalRadius:b,arrowDistance:v=0,arrowPlacement:w={left:!0,right:!0,top:!0,bottom:!0}}=a,{dropdownArrowOffsetVertical:z,dropdownArrowOffset:S}=zw({contentRadius:f,limitVerticalRadius:b});return{[n]:Object.assign(Object.assign(Object.assign(Object.assign({[`${n}-arrow`]:[Object.assign(Object.assign({position:"absolute",zIndex:1,display:"block"},OO(o,_,l,k,h)),{"&:before":{background:k}})]},tg(!!w.top,{[[`&-placement-top ${n}-arrow`,`&-placement-topLeft ${n}-arrow`,`&-placement-topRight ${n}-arrow`].join(",")]:{bottom:v,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:S}},[`&-placement-topRight ${n}-arrow`]:{right:{_skip_check_:!0,value:S}}})),tg(!!w.bottom,{[[`&-placement-bottom ${n}-arrow`,`&-placement-bottomLeft ${n}-arrow`,`&-placement-bottomRight ${n}-arrow`].join(",")]:{top:v,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:S}},[`&-placement-bottomRight ${n}-arrow`]:{right:{_skip_check_:!0,value:S}}})),tg(!!w.left,{[[`&-placement-left ${n}-arrow`,`&-placement-leftTop ${n}-arrow`,`&-placement-leftBottom ${n}-arrow`].join(",")]:{right:{_skip_check_:!0,value:v},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:z},[`&-placement-leftBottom ${n}-arrow`]:{bottom:z}})),tg(!!w.right,{[[`&-placement-right ${n}-arrow`,`&-placement-rightTop ${n}-arrow`,`&-placement-rightBottom ${n}-arrow`].join(",")]:{left:{_skip_check_:!0,value:v},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:z},[`&-placement-rightBottom ${n}-arrow`]:{bottom:z}}))}}function DO(e,a,n,o){if(o===!1)return{adjustX:!1,adjustY:!1};const _=o&&typeof o=="object"?o:{},l={};switch(e){case"top":case"bottom":l.shiftX=a.dropdownArrowOffset*2+n;break;case"left":case"right":l.shiftY=a.dropdownArrowOffsetVertical*2+n;break}const h=Object.assign(Object.assign({},l),_);return h.shiftX||(h.adjustX=!0),h.shiftY||(h.adjustY=!0),h}const xw={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"]}},TO={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"]}},RO=new Set(["topLeft","topRight","bottomLeft","bottomRight","leftTop","leftBottom","rightTop","rightBottom"]);function AO(e){const{arrowWidth:a,autoAdjustOverflow:n,arrowPointAtCenter:o,offset:_,borderRadius:l}=e,h=a/2,k={};return Object.keys(xw).forEach(f=>{const b=o&&TO[f]||xw[f],v=Object.assign(Object.assign({},b),{offset:[0,0]});switch(k[f]=v,RO.has(f)&&(v.autoArrow=!1),f){case"top":case"topLeft":case"topRight":v.offset[1]=-h-_;break;case"bottom":case"bottomLeft":case"bottomRight":v.offset[1]=h+_;break;case"left":case"leftTop":case"leftBottom":v.offset[0]=-h-_;break;case"right":case"rightTop":case"rightBottom":v.offset[0]=h+_;break}const w=zw({contentRadius:l,limitVerticalRadius:!0});if(o)switch(f){case"topLeft":case"bottomLeft":v.offset[0]=-w.dropdownArrowOffset-h;break;case"topRight":case"bottomRight":v.offset[0]=w.dropdownArrowOffset+h;break;case"leftTop":case"rightTop":v.offset[1]=-w.dropdownArrowOffset-h;break;case"leftBottom":case"rightBottom":v.offset[1]=w.dropdownArrowOffset+h;break}v.overflow=DO(f,w,a,n)}),k}const NO=e=>{const{componentCls:a,tooltipMaxWidth:n,tooltipColor:o,tooltipBg:_,tooltipBorderRadius:l,zIndexPopup:h,controlHeight:k,boxShadowSecondary:f,paddingSM:b,paddingXS:v,tooltipRadiusOuter:w}=e;return[{[a]:Object.assign(Object.assign(Object.assign(Object.assign({},it(e)),{position:"absolute",zIndex:h,display:"block",width:"max-content",maxWidth:n,visibility:"visible","&-hidden":{display:"none"},"--antd-arrow-background-color":_,[`${a}-inner`]:{minWidth:k,minHeight:k,padding:`${b/2}px ${v}px`,color:o,textAlign:"start",textDecoration:"none",wordWrap:"break-word",backgroundColor:_,borderRadius:l,boxShadow:f},[["&-placement-left","&-placement-leftTop","&-placement-leftBottom","&-placement-right","&-placement-rightTop","&-placement-rightBottom"].join(",")]:{[`${a}-inner`]:{borderRadius:Math.min(l,jw)}},[`${a}-content`]:{position:"relative"}}),Ap(e,(z,S)=>{let{darkColor:E}=S;return{[`&${a}-${z}`]:{[`${a}-inner`]:{backgroundColor:E},[`${a}-arrow`]:{"--antd-arrow-background-color":E}}}})),{"&-rtl":{direction:"rtl"}})},IO(Po(e,{borderRadiusOuter:w}),{colorBg:"var(--antd-arrow-background-color)",contentRadius:l,limitVerticalRadius:!0}),{[`${a}-pure`]:{position:"relative",maxWidth:"none",margin:e.sizePopupArrow}}]};var Cw=(e,a)=>dr("Tooltip",o=>{if(a===!1)return[];const{borderRadius:_,colorTextLightSolid:l,colorBgDefault:h,borderRadiusOuter:k}=o,f=Po(o,{tooltipMaxWidth:250,tooltipColor:l,tooltipBorderRadius:_,tooltipBg:h,tooltipRadiusOuter:k>4?4:k});return[NO(f),By(o,"zoom-big-fast")]},o=>{let{zIndexPopupBase:_,colorBgSpotlight:l}=o;return{zIndexPopup:_+70,colorBgDefault:l}})(e);function Sw(e,a){const n=Rp(a),o=ka()({[`${e}-${a}`]:a&&n}),_={},l={};return a&&!n&&(_.background=a,l["--antd-arrow-background-color"]=a),{className:o,overlayStyle:_,arrowStyle:l}}function MO(e){const{prefixCls:a,className:n,placement:o="top",title:_,color:l,overlayInnerStyle:h}=e,{getPrefixCls:k}=g.useContext(Ha),f=k("tooltip",a),[b,v]=Cw(f,!0),w=Sw(f,l),z=Object.assign(Object.assign({},h),w.overlayStyle),S=w.arrowStyle;return b(g.createElement("div",{className:ka()(v,f,`${f}-pure`,`${f}-placement-${o}`,n,w.className),style:S},g.createElement("div",{className:`${f}-arrow`}),g.createElement(ww,Object.assign({},e,{className:v,prefixCls:f,overlayInnerStyle:z}),_)))}var FO=function(e,a){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&a.indexOf(o)<0&&(n[o]=e[o]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var _=0,o=Object.getOwnPropertySymbols(e);_{const n={},o=Object.assign({},e);return a.forEach(_=>{e&&_ in e&&(n[_]=e[_],delete o[_])}),{picked:n,omitted:o}};function $O(e,a){const n=e.type;if((n.__ANT_BUTTON===!0||e.type==="button")&&e.props.disabled||n.__ANT_SWITCH===!0&&(e.props.disabled||e.props.loading)||n.__ANT_RADIO===!0&&e.props.disabled){const{picked:o,omitted:_}=UO(e.props.style,["position","left","right","top","bottom","float","display","zIndex"]),l=Object.assign(Object.assign({display:"inline-block"},o),{cursor:"not-allowed",width:e.props.block?"100%":void 0}),h=Object.assign(Object.assign({},_),{pointerEvents:"none"}),k=es(e,{style:h,className:null});return g.createElement("span",{style:l,className:ka()(e.props.className,`${a}-disabled-compatible-wrapper`)},k)}return e}const Pw=g.forwardRef((e,a)=>{var n,o;const{prefixCls:_,openClassName:l,getTooltipContainer:h,overlayClassName:k,color:f,overlayInnerStyle:b,children:v,afterOpenChange:w,afterVisibleChange:z,destroyTooltipOnHide:S,arrow:E=!0,title:O,overlay:P,builtinPlacements:T,arrowPointAtCenter:A=!1,autoAdjustOverflow:L=!0}=e,H=!!E,{token:K}=LO(),{getPopupContainer:ae,getPrefixCls:ie,direction:se}=g.useContext(Ha),he=g.useRef(null),ue=()=>{var Oa;(Oa=he.current)===null||Oa===void 0||Oa.forceAlign()};g.useImperativeHandle(a,()=>({forceAlign:ue,forcePopupAlign:()=>{ue()}}));const[ze,te]=Up(!1,{value:(n=e.open)!==null&&n!==void 0?n:e.visible,defaultValue:(o=e.defaultOpen)!==null&&o!==void 0?o:e.defaultVisible}),re=!O&&!P&&O!==0,le=Oa=>{var qa,Ga;te(re?!1:Oa),re||((qa=e.onOpenChange)===null||qa===void 0||qa.call(e,Oa),(Ga=e.onVisibleChange)===null||Ga===void 0||Ga.call(e,Oa))},be=g.useMemo(()=>{var Oa,qa;let Ga=A;return typeof E=="object"&&(Ga=(qa=(Oa=E.pointAtCenter)!==null&&Oa!==void 0?Oa:E.arrowPointAtCenter)!==null&&qa!==void 0?qa:A),T||AO({arrowPointAtCenter:Ga,autoAdjustOverflow:L,arrowWidth:H?K.sizePopupArrow:0,borderRadius:K.borderRadius,offset:K.marginXXS})},[A,E,T,K]),Be=(Oa,qa)=>{const Ga=Object.keys(be).find(ln=>{var Wi,Li;return be[ln].points[0]===((Wi=qa.points)===null||Wi===void 0?void 0:Wi[0])&&be[ln].points[1]===((Li=qa.points)===null||Li===void 0?void 0:Li[1])});if(Ga){const ln=Oa.getBoundingClientRect(),Wi={top:"50%",left:"50%"};/top|Bottom/.test(Ga)?Wi.top=`${ln.height-qa.offset[1]}px`:/Top|bottom/.test(Ga)&&(Wi.top=`${-qa.offset[1]}px`),/left|Right/.test(Ga)?Wi.left=`${ln.width-qa.offset[0]}px`:/right|Left/.test(Ga)&&(Wi.left=`${-qa.offset[0]}px`),Oa.style.transformOrigin=`${Wi.left} ${Wi.top}`}},He=g.useMemo(()=>O===0?O:P||O||"",[P,O]),{getPopupContainer:ea,placement:ca="top",mouseEnterDelay:Sa=.1,mouseLeaveDelay:ya=.1,overlayStyle:Ge,rootClassName:$e}=e,ra=FO(e,["getPopupContainer","placement","mouseEnterDelay","mouseLeaveDelay","overlayStyle","rootClassName"]),Xe=ie("tooltip",_),Se=ie(),pa=e["data-popover-inject"];let Ze=ze;!("open"in e)&&!("visible"in e)&&re&&(Ze=!1);const Ia=$O(Um(v)&&!ly(v)?v:g.createElement("span",null,v),Xe),Ta=Ia.props,da=!Ta.className||typeof Ta.className=="string"?ka()(Ta.className,{[l||`${Xe}-open`]:!0}):Ta.className,[Ca,Ra]=Cw(Xe,!pa),ai=Sw(Xe,f),Ma=Object.assign(Object.assign({},b),ai.overlayStyle),mi=ai.arrowStyle,va=ka()(k,{[`${Xe}-rtl`]:se==="rtl"},ai.className,$e,Ra);return Ca(g.createElement(EO,Object.assign({},ra,{showArrow:H,placement:ca,mouseEnterDelay:Sa,mouseLeaveDelay:ya,prefixCls:Xe,overlayClassName:va,overlayStyle:Object.assign(Object.assign({},mi),Ge),getTooltipContainer:ea||h||ae,ref:he,builtinPlacements:be,overlay:He,visible:Ze,onVisibleChange:le,afterVisibleChange:w!=null?w:z,onPopupAlign:Be,overlayInnerStyle:Ma,arrowContent:g.createElement("span",{className:`${Xe}-arrow-content`}),motion:{motionName:$m(Se,"zoom-big-fast",e.transitionName),motionDeadline:1e3},destroyTooltipOnHide:!!S}),Ze?es(Ia,{className:da}):Ia))});Pw._InternalPanelDoNotUseOrYouWillBeFired=MO;var Ew=Pw,HO={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M854.6 288.6L639.4 73.4c-6-6-14.1-9.4-22.6-9.4H192c-17.7 0-32 14.3-32 32v832c0 17.7 14.3 32 32 32h640c17.7 0 32-14.3 32-32V311.3c0-8.5-3.4-16.7-9.4-22.7zM790.2 326H602V137.8L790.2 326zm1.8 562H232V136h302v216a42 42 0 0042 42h216v494zM504 618H320c-4.4 0-8 3.6-8 8v48c0 4.4 3.6 8 8 8h184c4.4 0 8-3.6 8-8v-48c0-4.4-3.6-8-8-8zM312 490v48c0 4.4 3.6 8 8 8h384c4.4 0 8-3.6 8-8v-48c0-4.4-3.6-8-8-8H320c-4.4 0-8 3.6-8 8z"}}]},name:"file-text",theme:"outlined"},WO=HO,Ow=function(a,n){return g.createElement(Yn,Ie(Ie({},a),{},{ref:n,icon:WO}))};Ow.displayName="FileTextOutlined";var Iw=g.forwardRef(Ow);const BO=e=>{const{icon:a,description:n,prefixCls:o,className:_}=e,l=g.createElement("div",{className:`${o}-icon`},g.createElement(Iw,null));return g.createElement("div",{onClick:e.onClick,onFocus:e.onFocus,onMouseEnter:e.onMouseEnter,onMouseLeave:e.onMouseLeave,className:ka()(_,`${o}-content`)},a||n?g.createElement(g.Fragment,null,a&&g.createElement("div",{className:`${o}-icon`},a),n&&g.createElement("div",{className:`${o}-description`},n)):l)};var VO=(0,g.memo)(BO);const Dw=g.createContext(void 0),{Provider:qO}=Dw;var Tw=Dw,Rw=e=>e===0?0:e-Math.sqrt(Math.pow(e,2)/2);const GO=e=>{const{componentCls:a,floatButtonSize:n,motionDurationSlow:o,motionEaseInOutCirc:_}=e,l=`${a}-group`,h=new ui("antFloatButtonMoveDownIn",{"0%":{transform:`translate3d(0, ${n}px, 0)`,transformOrigin:"0 0",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1}}),k=new ui("antFloatButtonMoveDownOut",{"0%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1},"100%":{transform:`translate3d(0, ${n}px, 0)`,transformOrigin:"0 0",opacity:0}});return[{[`${l}-wrap`]:Object.assign({},qk(`${l}-wrap`,h,k,o,!0))},{[`${l}-wrap`]:{[` &${l}-wrap-enter, &${l}-wrap-appear - `]:{opacity:0,animationTimingFunction:_},[`&${l}-wrap-leave`]:{animationTimingFunction:_}}}]},XO=e=>{const{antCls:a,componentCls:n,floatButtonSize:o,margin:_,borderRadiusLG:l,borderRadiusSM:h,badgeOffset:k,floatButtonBodyPadding:f}=e,b=`${n}-group`;return{[b]:Object.assign(Object.assign({},it(e)),{zIndex:99,display:"block",border:"none",position:"fixed",width:o,height:"auto",boxShadow:"none",minHeight:o,insetInlineEnd:e.floatButtonInsetInlineEnd,insetBlockEnd:e.floatButtonInsetBlockEnd,borderRadius:l,[`${b}-wrap`]:{zIndex:-1,display:"block",position:"relative",marginBottom:_},[`&${b}-rtl`]:{direction:"rtl"},[n]:{position:"static"}}),[`${b}-circle`]:{[`${n}-circle:not(:last-child)`]:{marginBottom:e.margin,[`${n}-body`]:{width:o,height:o,borderRadius:"50%"}}},[`${b}-square`]:{[`${n}-square`]:{borderRadius:0,padding:0,"&:first-child":{borderStartStartRadius:l,borderStartEndRadius:l},"&:last-child":{borderEndStartRadius:l,borderEndEndRadius:l},"&:not(:last-child)":{borderBottom:`${e.lineWidth}px ${e.lineType} ${e.colorSplit}`},[`${a}-badge`]:{[`${a}-badge-count`]:{top:-(f+k),insetInlineEnd:-(f+k)}}},[`${b}-wrap`]:{display:"block",borderRadius:l,boxShadow:e.boxShadowSecondary,[`${n}-square`]:{boxShadow:"none",marginTop:0,borderRadius:0,padding:f,"&:first-child":{borderStartStartRadius:l,borderStartEndRadius:l},"&:last-child":{borderEndStartRadius:l,borderEndEndRadius:l},"&:not(:last-child)":{borderBottom:`${e.lineWidth}px ${e.lineType} ${e.colorSplit}`},[`${n}-body`]:{width:e.floatButtonBodySize,height:e.floatButtonBodySize}}}},[`${b}-circle-shadow`]:{boxShadow:"none"},[`${b}-square-shadow`]:{boxShadow:e.boxShadowSecondary,[`${n}-square`]:{boxShadow:"none",padding:f,[`${n}-body`]:{width:e.floatButtonBodySize,height:e.floatButtonBodySize,borderRadius:h}}}}},YO=e=>{const{antCls:a,componentCls:n,floatButtonBodyPadding:o,floatButtonIconSize:_,floatButtonSize:l,borderRadiusLG:h,badgeOffset:k,dotOffsetInSquare:f,dotOffsetInCircle:b}=e;return{[n]:Object.assign(Object.assign({},it(e)),{border:"none",position:"fixed",cursor:"pointer",zIndex:99,display:"block",justifyContent:"center",alignItems:"center",width:l,height:l,insetInlineEnd:e.floatButtonInsetInlineEnd,insetBlockEnd:e.floatButtonInsetBlockEnd,boxShadow:e.boxShadowSecondary,"&-pure":{position:"relative",inset:"auto"},"&:empty":{display:"none"},[`${a}-badge`]:{width:"100%",height:"100%",[`${a}-badge-count`]:{transform:"translate(0, 0)",transformOrigin:"center",top:-k,insetInlineEnd:-k}},[`${n}-body`]:{width:"100%",height:"100%",display:"flex",justifyContent:"center",alignItems:"center",transition:`all ${e.motionDurationMid}`,[`${n}-content`]:{overflow:"hidden",textAlign:"center",minHeight:l,display:"flex",flexDirection:"column",justifyContent:"center",alignItems:"center",padding:`${o/2}px ${o}px`,[`${n}-icon`]:{textAlign:"center",margin:"auto",width:_,fontSize:_,lineHeight:1}}}}),[`${n}-rtl`]:{direction:"rtl"},[`${n}-circle`]:{height:l,borderRadius:"50%",[`${a}-badge`]:{[`${a}-badge-dot`]:{top:b,insetInlineEnd:b}},[`${n}-body`]:{borderRadius:"50%"}},[`${n}-square`]:{height:"auto",minHeight:l,borderRadius:h,[`${a}-badge`]:{[`${a}-badge-dot`]:{top:f,insetInlineEnd:f}},[`${n}-body`]:{height:"auto",borderRadius:h}},[`${n}-default`]:{backgroundColor:e.floatButtonBackgroundColor,transition:`background-color ${e.motionDurationMid}`,[`${n}-body`]:{backgroundColor:e.floatButtonBackgroundColor,transition:`background-color ${e.motionDurationMid}`,"&:hover":{backgroundColor:e.colorFillContent},[`${n}-content`]:{[`${n}-icon`]:{color:e.colorText},[`${n}-description`]:{display:"flex",alignItems:"center",lineHeight:`${e.fontSizeLG}px`,color:e.colorText,fontSize:e.fontSizeSM}}}},[`${n}-primary`]:{backgroundColor:e.colorPrimary,[`${n}-body`]:{backgroundColor:e.colorPrimary,transition:`background-color ${e.motionDurationMid}`,"&:hover":{backgroundColor:e.colorPrimaryHover},[`${n}-content`]:{[`${n}-icon`]:{color:e.colorTextLightSolid},[`${n}-description`]:{display:"flex",alignItems:"center",lineHeight:`${e.fontSizeLG}px`,color:e.colorTextLightSolid,fontSize:e.fontSizeSM}}}}}};var $p=dr("FloatButton",e=>{const{colorTextLightSolid:a,colorBgElevated:n,controlHeightLG:o,marginXXL:_,marginLG:l,fontSize:h,fontSizeIcon:k,controlItemBgHover:f,paddingXXS:b,borderRadiusLG:v}=e,w=Po(e,{floatButtonBackgroundColor:n,floatButtonColor:a,floatButtonHoverBackgroundColor:f,floatButtonFontSize:h,floatButtonIconSize:k*1.5,floatButtonSize:o,floatButtonInsetBlockEnd:_,floatButtonInsetInlineEnd:l,floatButtonBodySize:o-b*2,floatButtonBodyPadding:b,badgeOffset:b*1.5,dotOffsetInCircle:Rw(o/2),dotOffsetInSquare:Rw(v)});return[XO(w),YO(w),$y(e),GO(w)]}),KO=function(e,a){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&a.indexOf(o)<0&&(n[o]=e[o]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var _=0,o=Object.getOwnPropertySymbols(e);_{const{prefixCls:n,className:o,rootClassName:_,type:l="default",shape:h="circle",icon:k,description:f,tooltip:b,badge:v={}}=e,w=KO(e,["prefixCls","className","rootClassName","type","shape","icon","description","tooltip","badge"]),{getPrefixCls:z,direction:S}=(0,g.useContext)(Ha),E=(0,g.useContext)(Tw),O=z(_g,n),[P,T]=$p(O),A=E||h,L=ka()(T,O,o,_,`${O}-${l}`,`${O}-${A}`,{[`${O}-rtl`]:S==="rtl"}),H=(0,g.useMemo)(()=>Ok(v,["title","children","status","text"]),[v]),K=(0,g.useMemo)(()=>({prefixCls:O,description:f,icon:k,type:l}),[O,f,k,l]),ae=g.createElement(Ew,{title:b,placement:S==="rtl"?"right":"left"},g.createElement(DE,Object.assign({},H),g.createElement("div",{className:`${O}-body`},g.createElement(BO,Object.assign({},K)))));return P(e.href?g.createElement("a",Object.assign({ref:a},w,{className:L}),ae):g.createElement("button",Object.assign({ref:a},w,{className:L,type:"button"}),ae))};var wu=g.forwardRef(QO);const JO=e=>{const{prefixCls:a,className:n,style:o,shape:_="circle",type:l="default",icon:h=g.createElement(Iw,null),closeIcon:k=g.createElement(Sd,null),description:f,trigger:b,children:v,onOpenChange:w}=e,{direction:z,getPrefixCls:S}=(0,g.useContext)(Ha),E=S(_g,a),[O,P]=$p(E),T=`${E}-group`,A=ka()(T,P,n,{[`${T}-rtl`]:z==="rtl",[`${T}-${_}`]:_,[`${T}-${_}-shadow`]:!b}),L=ka()(P,`${T}-wrap`),[H,K]=Up(!1,{value:e.open}),ae=(0,g.useRef)(null),ie=(0,g.useRef)(null),se=(0,g.useMemo)(()=>b==="hover"?{onMouseEnter(){K(!0),w==null||w(!0)},onMouseLeave(){K(!1),w==null||w(!1)}}:{},[b]),he=()=>{K(ze=>(w==null||w(!ze),!ze))},ue=(0,g.useCallback)(ze=>{var te,re;if(!((te=ae.current)===null||te===void 0)&&te.contains(ze.target)){!((re=ie.current)===null||re===void 0)&&re.contains(ze.target)&&he();return}K(!1),w==null||w(!1)},[b]);return(0,g.useEffect)(()=>{if(b==="click")return document.addEventListener("click",ue),()=>{document.removeEventListener("click",ue)}},[b]),O(g.createElement(qO,{value:_},g.createElement("div",Object.assign({ref:ae,className:A,style:o},se),b&&["click","hover"].includes(b)?g.createElement(g.Fragment,null,g.createElement(Vt,{visible:H,motionName:`${T}-wrap`},ze=>{let{className:te}=ze;return g.createElement("div",{className:ka()(te,L)},v)}),g.createElement(wu,{ref:ie,type:l,shape:_,icon:H?k:h,description:f})):v)))};var Aw=(0,g.memo)(JO),ZO={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M859.9 168H164.1c-4.5 0-8.1 3.6-8.1 8v60c0 4.4 3.6 8 8.1 8h695.8c4.5 0 8.1-3.6 8.1-8v-60c0-4.4-3.6-8-8.1-8zM518.3 355a8 8 0 00-12.6 0l-112 141.7a7.98 7.98 0 006.3 12.9h73.9V848c0 4.4 3.6 8 8 8h60c4.4 0 8-3.6 8-8V509.7H624c6.7 0 10.4-7.7 6.3-12.9L518.3 355z"}}]},name:"vertical-align-top",theme:"outlined"},eI=ZO,Nw=function(a,n){return g.createElement(Yn,Ie(Ie({},a),{},{ref:n,icon:eI}))};Nw.displayName="VerticalAlignTopOutlined";var aI=g.forwardRef(Nw);function Hp(e){return e!=null&&e===e.window}function Mw(e,a){var n,o;if(typeof window=="undefined")return 0;const _=a?"scrollTop":"scrollLeft";let l=0;return Hp(e)?l=e[a?"pageYOffset":"pageXOffset"]:e instanceof Document?l=e.documentElement[_]:(e instanceof HTMLElement||e)&&(l=e[_]),e&&!Hp(e)&&typeof l!="number"&&(l=(o=((n=e.ownerDocument)!==null&&n!==void 0?n:e).documentElement)===null||o===void 0?void 0:o[_]),l}function iI(e,a,n,o){const _=n-a;return e/=o/2,e<1?_/2*e*e*e+a:_/2*((e-=2)*e*e+2)+a}function nI(e){let a=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};const{getContainer:n=()=>window,callback:o,duration:_=450}=a,l=n(),h=Mw(l,!0),k=Date.now(),f=()=>{const v=Date.now()-k,w=iI(v>_?_:v,h,e,_);Hp(l)?l.scrollTo(window.pageXOffset,w):l instanceof Document||l.constructor.name==="HTMLDocument"?l.documentElement.scrollTop=w:l.scrollTop=w,v<_?nt(f):typeof o=="function"&&o()};nt(f)}function oI(e){let a;const n=_=>()=>{a=null,e.apply(void 0,xa(_))},o=function(){if(a==null){for(var _=arguments.length,l=new Array(_),h=0;h<_;h++)l[h]=arguments[h];a=nt(n(l))}};return o.cancel=()=>{nt.cancel(a),a=null},o}var rI=oI,tI=function(e,a){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&a.indexOf(o)<0&&(n[o]=e[o]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var _=0,o=Object.getOwnPropertySymbols(e);_{const{prefixCls:a,className:n,type:o="default",shape:_="circle",visibilityHeight:l=400,icon:h=g.createElement(aI,null),target:k,onClick:f,duration:b=450}=e,v=tI(e,["prefixCls","className","type","shape","visibilityHeight","icon","target","onClick","duration"]),[w,z]=(0,g.useState)(l===0),S=(0,g.useRef)(null),E=()=>S.current&&S.current.ownerDocument?S.current.ownerDocument:window,O=rI(se=>{const he=Mw(se.target,!0);z(he>=l)});(0,g.useEffect)(()=>{const he=(k||E)();return O({target:he}),he==null||he.addEventListener("scroll",O),()=>{O.cancel(),he==null||he.removeEventListener("scroll",O)}},[k]);const P=se=>{nI(0,{getContainer:k||E,duration:b}),f==null||f(se)},{getPrefixCls:T}=(0,g.useContext)(Ha),A=T(_g,a),L=T(),[H]=$p(A),ae=(0,g.useContext)(Tw)||_,ie=Object.assign({prefixCls:A,icon:h,type:o,shape:ae},v);return H(g.createElement(Vt,{visible:w,motionName:`${L}-fade`},se=>{let{className:he}=se;return g.createElement(wu,Object.assign({ref:S},ie,{onClick:P,className:ka()(n,he)}))}))};var Fw=(0,g.memo)(_I),Lw=function(e,a){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&a.indexOf(o)<0&&(n[o]=e[o]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var _=0,o=Object.getOwnPropertySymbols(e);_{var{backTop:a}=e,n=Lw(e,["backTop"]);return a?g.createElement(Fw,Object.assign({},n,{visibilityHeight:0})):g.createElement(wu,Object.assign({},n))};function sI(e){var{className:a,items:n}=e,o=Lw(e,["className","items"]);const{prefixCls:_}=o,{getPrefixCls:l}=g.useContext(Ha),k=`${l(_g,_)}-pure`;return n?g.createElement(Aw,Object.assign({className:ka()(a,k)},o),n.map((f,b)=>g.createElement(Uw,Object.assign({key:b},f)))):g.createElement(Uw,Object.assign({className:ka()(a,k)},o))}var uI=g.memo(sI);wu.BackTop=Fw,wu.Group=Aw,wu._InternalPanelDoNotUseOrYouWillBeFired=uI;var lI=wu,$w,cI=An.div($w||($w=ki()([` + `]:{opacity:0,animationTimingFunction:_},[`&${l}-wrap-leave`]:{animationTimingFunction:_}}}]},XO=e=>{const{antCls:a,componentCls:n,floatButtonSize:o,margin:_,borderRadiusLG:l,borderRadiusSM:h,badgeOffset:k,floatButtonBodyPadding:f}=e,b=`${n}-group`;return{[b]:Object.assign(Object.assign({},it(e)),{zIndex:99,display:"block",border:"none",position:"fixed",width:o,height:"auto",boxShadow:"none",minHeight:o,insetInlineEnd:e.floatButtonInsetInlineEnd,insetBlockEnd:e.floatButtonInsetBlockEnd,borderRadius:l,[`${b}-wrap`]:{zIndex:-1,display:"block",position:"relative",marginBottom:_},[`&${b}-rtl`]:{direction:"rtl"},[n]:{position:"static"}}),[`${b}-circle`]:{[`${n}-circle:not(:last-child)`]:{marginBottom:e.margin,[`${n}-body`]:{width:o,height:o,borderRadius:"50%"}}},[`${b}-square`]:{[`${n}-square`]:{borderRadius:0,padding:0,"&:first-child":{borderStartStartRadius:l,borderStartEndRadius:l},"&:last-child":{borderEndStartRadius:l,borderEndEndRadius:l},"&:not(:last-child)":{borderBottom:`${e.lineWidth}px ${e.lineType} ${e.colorSplit}`},[`${a}-badge`]:{[`${a}-badge-count`]:{top:-(f+k),insetInlineEnd:-(f+k)}}},[`${b}-wrap`]:{display:"block",borderRadius:l,boxShadow:e.boxShadowSecondary,[`${n}-square`]:{boxShadow:"none",marginTop:0,borderRadius:0,padding:f,"&:first-child":{borderStartStartRadius:l,borderStartEndRadius:l},"&:last-child":{borderEndStartRadius:l,borderEndEndRadius:l},"&:not(:last-child)":{borderBottom:`${e.lineWidth}px ${e.lineType} ${e.colorSplit}`},[`${n}-body`]:{width:e.floatButtonBodySize,height:e.floatButtonBodySize}}}},[`${b}-circle-shadow`]:{boxShadow:"none"},[`${b}-square-shadow`]:{boxShadow:e.boxShadowSecondary,[`${n}-square`]:{boxShadow:"none",padding:f,[`${n}-body`]:{width:e.floatButtonBodySize,height:e.floatButtonBodySize,borderRadius:h}}}}},YO=e=>{const{antCls:a,componentCls:n,floatButtonBodyPadding:o,floatButtonIconSize:_,floatButtonSize:l,borderRadiusLG:h,badgeOffset:k,dotOffsetInSquare:f,dotOffsetInCircle:b}=e;return{[n]:Object.assign(Object.assign({},it(e)),{border:"none",position:"fixed",cursor:"pointer",zIndex:99,display:"block",justifyContent:"center",alignItems:"center",width:l,height:l,insetInlineEnd:e.floatButtonInsetInlineEnd,insetBlockEnd:e.floatButtonInsetBlockEnd,boxShadow:e.boxShadowSecondary,"&-pure":{position:"relative",inset:"auto"},"&:empty":{display:"none"},[`${a}-badge`]:{width:"100%",height:"100%",[`${a}-badge-count`]:{transform:"translate(0, 0)",transformOrigin:"center",top:-k,insetInlineEnd:-k}},[`${n}-body`]:{width:"100%",height:"100%",display:"flex",justifyContent:"center",alignItems:"center",transition:`all ${e.motionDurationMid}`,[`${n}-content`]:{overflow:"hidden",textAlign:"center",minHeight:l,display:"flex",flexDirection:"column",justifyContent:"center",alignItems:"center",padding:`${o/2}px ${o}px`,[`${n}-icon`]:{textAlign:"center",margin:"auto",width:_,fontSize:_,lineHeight:1}}}}),[`${n}-rtl`]:{direction:"rtl"},[`${n}-circle`]:{height:l,borderRadius:"50%",[`${a}-badge`]:{[`${a}-badge-dot`]:{top:b,insetInlineEnd:b}},[`${n}-body`]:{borderRadius:"50%"}},[`${n}-square`]:{height:"auto",minHeight:l,borderRadius:h,[`${a}-badge`]:{[`${a}-badge-dot`]:{top:f,insetInlineEnd:f}},[`${n}-body`]:{height:"auto",borderRadius:h}},[`${n}-default`]:{backgroundColor:e.floatButtonBackgroundColor,transition:`background-color ${e.motionDurationMid}`,[`${n}-body`]:{backgroundColor:e.floatButtonBackgroundColor,transition:`background-color ${e.motionDurationMid}`,"&:hover":{backgroundColor:e.colorFillContent},[`${n}-content`]:{[`${n}-icon`]:{color:e.colorText},[`${n}-description`]:{display:"flex",alignItems:"center",lineHeight:`${e.fontSizeLG}px`,color:e.colorText,fontSize:e.fontSizeSM}}}},[`${n}-primary`]:{backgroundColor:e.colorPrimary,[`${n}-body`]:{backgroundColor:e.colorPrimary,transition:`background-color ${e.motionDurationMid}`,"&:hover":{backgroundColor:e.colorPrimaryHover},[`${n}-content`]:{[`${n}-icon`]:{color:e.colorTextLightSolid},[`${n}-description`]:{display:"flex",alignItems:"center",lineHeight:`${e.fontSizeLG}px`,color:e.colorTextLightSolid,fontSize:e.fontSizeSM}}}}}};var $p=dr("FloatButton",e=>{const{colorTextLightSolid:a,colorBgElevated:n,controlHeightLG:o,marginXXL:_,marginLG:l,fontSize:h,fontSizeIcon:k,controlItemBgHover:f,paddingXXS:b,borderRadiusLG:v}=e,w=Po(e,{floatButtonBackgroundColor:n,floatButtonColor:a,floatButtonHoverBackgroundColor:f,floatButtonFontSize:h,floatButtonIconSize:k*1.5,floatButtonSize:o,floatButtonInsetBlockEnd:_,floatButtonInsetInlineEnd:l,floatButtonBodySize:o-b*2,floatButtonBodyPadding:b,badgeOffset:b*1.5,dotOffsetInCircle:Rw(o/2),dotOffsetInSquare:Rw(v)});return[XO(w),YO(w),$y(e),GO(w)]}),KO=function(e,a){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&a.indexOf(o)<0&&(n[o]=e[o]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var _=0,o=Object.getOwnPropertySymbols(e);_{const{prefixCls:n,className:o,rootClassName:_,type:l="default",shape:h="circle",icon:k,description:f,tooltip:b,badge:v={}}=e,w=KO(e,["prefixCls","className","rootClassName","type","shape","icon","description","tooltip","badge"]),{getPrefixCls:z,direction:S}=(0,g.useContext)(Ha),E=(0,g.useContext)(Tw),O=z(_g,n),[P,T]=$p(O),A=E||h,L=ka()(T,O,o,_,`${O}-${l}`,`${O}-${A}`,{[`${O}-rtl`]:S==="rtl"}),H=(0,g.useMemo)(()=>Ok(v,["title","children","status","text"]),[v]),K=(0,g.useMemo)(()=>({prefixCls:O,description:f,icon:k,type:l}),[O,f,k,l]),ae=g.createElement(Ew,{title:b,placement:S==="rtl"?"right":"left"},g.createElement(DE,Object.assign({},H),g.createElement("div",{className:`${O}-body`},g.createElement(VO,Object.assign({},K)))));return P(e.href?g.createElement("a",Object.assign({ref:a},w,{className:L}),ae):g.createElement("button",Object.assign({ref:a},w,{className:L,type:"button"}),ae))};var wu=g.forwardRef(QO);const JO=e=>{const{prefixCls:a,className:n,style:o,shape:_="circle",type:l="default",icon:h=g.createElement(Iw,null),closeIcon:k=g.createElement(Sd,null),description:f,trigger:b,children:v,onOpenChange:w}=e,{direction:z,getPrefixCls:S}=(0,g.useContext)(Ha),E=S(_g,a),[O,P]=$p(E),T=`${E}-group`,A=ka()(T,P,n,{[`${T}-rtl`]:z==="rtl",[`${T}-${_}`]:_,[`${T}-${_}-shadow`]:!b}),L=ka()(P,`${T}-wrap`),[H,K]=Up(!1,{value:e.open}),ae=(0,g.useRef)(null),ie=(0,g.useRef)(null),se=(0,g.useMemo)(()=>b==="hover"?{onMouseEnter(){K(!0),w==null||w(!0)},onMouseLeave(){K(!1),w==null||w(!1)}}:{},[b]),he=()=>{K(ze=>(w==null||w(!ze),!ze))},ue=(0,g.useCallback)(ze=>{var te,re;if(!((te=ae.current)===null||te===void 0)&&te.contains(ze.target)){!((re=ie.current)===null||re===void 0)&&re.contains(ze.target)&&he();return}K(!1),w==null||w(!1)},[b]);return(0,g.useEffect)(()=>{if(b==="click")return document.addEventListener("click",ue),()=>{document.removeEventListener("click",ue)}},[b]),O(g.createElement(qO,{value:_},g.createElement("div",Object.assign({ref:ae,className:A,style:o},se),b&&["click","hover"].includes(b)?g.createElement(g.Fragment,null,g.createElement(Bt,{visible:H,motionName:`${T}-wrap`},ze=>{let{className:te}=ze;return g.createElement("div",{className:ka()(te,L)},v)}),g.createElement(wu,{ref:ie,type:l,shape:_,icon:H?k:h,description:f})):v)))};var Aw=(0,g.memo)(JO),ZO={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M859.9 168H164.1c-4.5 0-8.1 3.6-8.1 8v60c0 4.4 3.6 8 8.1 8h695.8c4.5 0 8.1-3.6 8.1-8v-60c0-4.4-3.6-8-8.1-8zM518.3 355a8 8 0 00-12.6 0l-112 141.7a7.98 7.98 0 006.3 12.9h73.9V848c0 4.4 3.6 8 8 8h60c4.4 0 8-3.6 8-8V509.7H624c6.7 0 10.4-7.7 6.3-12.9L518.3 355z"}}]},name:"vertical-align-top",theme:"outlined"},eI=ZO,Nw=function(a,n){return g.createElement(Yn,Ie(Ie({},a),{},{ref:n,icon:eI}))};Nw.displayName="VerticalAlignTopOutlined";var aI=g.forwardRef(Nw);function Hp(e){return e!=null&&e===e.window}function Mw(e,a){var n,o;if(typeof window=="undefined")return 0;const _=a?"scrollTop":"scrollLeft";let l=0;return Hp(e)?l=e[a?"pageYOffset":"pageXOffset"]:e instanceof Document?l=e.documentElement[_]:(e instanceof HTMLElement||e)&&(l=e[_]),e&&!Hp(e)&&typeof l!="number"&&(l=(o=((n=e.ownerDocument)!==null&&n!==void 0?n:e).documentElement)===null||o===void 0?void 0:o[_]),l}function iI(e,a,n,o){const _=n-a;return e/=o/2,e<1?_/2*e*e*e+a:_/2*((e-=2)*e*e+2)+a}function nI(e){let a=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};const{getContainer:n=()=>window,callback:o,duration:_=450}=a,l=n(),h=Mw(l,!0),k=Date.now(),f=()=>{const v=Date.now()-k,w=iI(v>_?_:v,h,e,_);Hp(l)?l.scrollTo(window.pageXOffset,w):l instanceof Document||l.constructor.name==="HTMLDocument"?l.documentElement.scrollTop=w:l.scrollTop=w,v<_?nt(f):typeof o=="function"&&o()};nt(f)}function oI(e){let a;const n=_=>()=>{a=null,e.apply(void 0,xa(_))},o=function(){if(a==null){for(var _=arguments.length,l=new Array(_),h=0;h<_;h++)l[h]=arguments[h];a=nt(n(l))}};return o.cancel=()=>{nt.cancel(a),a=null},o}var rI=oI,tI=function(e,a){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&a.indexOf(o)<0&&(n[o]=e[o]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var _=0,o=Object.getOwnPropertySymbols(e);_{const{prefixCls:a,className:n,type:o="default",shape:_="circle",visibilityHeight:l=400,icon:h=g.createElement(aI,null),target:k,onClick:f,duration:b=450}=e,v=tI(e,["prefixCls","className","type","shape","visibilityHeight","icon","target","onClick","duration"]),[w,z]=(0,g.useState)(l===0),S=(0,g.useRef)(null),E=()=>S.current&&S.current.ownerDocument?S.current.ownerDocument:window,O=rI(se=>{const he=Mw(se.target,!0);z(he>=l)});(0,g.useEffect)(()=>{const he=(k||E)();return O({target:he}),he==null||he.addEventListener("scroll",O),()=>{O.cancel(),he==null||he.removeEventListener("scroll",O)}},[k]);const P=se=>{nI(0,{getContainer:k||E,duration:b}),f==null||f(se)},{getPrefixCls:T}=(0,g.useContext)(Ha),A=T(_g,a),L=T(),[H]=$p(A),ae=(0,g.useContext)(Tw)||_,ie=Object.assign({prefixCls:A,icon:h,type:o,shape:ae},v);return H(g.createElement(Bt,{visible:w,motionName:`${L}-fade`},se=>{let{className:he}=se;return g.createElement(wu,Object.assign({ref:S},ie,{onClick:P,className:ka()(n,he)}))}))};var Fw=(0,g.memo)(_I),Lw=function(e,a){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&a.indexOf(o)<0&&(n[o]=e[o]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var _=0,o=Object.getOwnPropertySymbols(e);_{var{backTop:a}=e,n=Lw(e,["backTop"]);return a?g.createElement(Fw,Object.assign({},n,{visibilityHeight:0})):g.createElement(wu,Object.assign({},n))};function sI(e){var{className:a,items:n}=e,o=Lw(e,["className","items"]);const{prefixCls:_}=o,{getPrefixCls:l}=g.useContext(Ha),k=`${l(_g,_)}-pure`;return n?g.createElement(Aw,Object.assign({className:ka()(a,k)},o),n.map((f,b)=>g.createElement(Uw,Object.assign({key:b},f)))):g.createElement(Uw,Object.assign({className:ka()(a,k)},o))}var uI=g.memo(sI);wu.BackTop=Fw,wu.Group=Aw,wu._InternalPanelDoNotUseOrYouWillBeFired=uI;var lI=wu,$w,cI=An.div($w||($w=ki()([` overflow-x: hidden; overflow-y: auto; flex: 1; -`]))),mI=function(a){var n=a.children,o=(0,g.useRef)(null);return(0,ia.jsxs)(cI,{ref:o,children:[n,(0,ia.jsx)(lI.BackTop,{target:function(){return o.current}})]})},hI=g.memo(mI),dI={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M637 443H519V309c0-4.4-3.6-8-8-8h-60c-4.4 0-8 3.6-8 8v134H325c-4.4 0-8 3.6-8 8v60c0 4.4 3.6 8 8 8h118v134c0 4.4 3.6 8 8 8h60c4.4 0 8-3.6 8-8V519h118c4.4 0 8-3.6 8-8v-60c0-4.4-3.6-8-8-8zm284 424L775 721c122.1-148.9 113.6-369.5-26-509-148-148.1-388.4-148.1-537 0-148.1 148.6-148.1 389 0 537 139.5 139.6 360.1 148.1 509 26l146 146c3.2 2.8 8.3 2.8 11 0l43-43c2.8-2.7 2.8-7.8 0-11zM696 696c-118.8 118.7-311.2 118.7-430 0-118.7-118.8-118.7-311.2 0-430 118.8-118.7 311.2-118.7 430 0 118.7 118.8 118.7 311.2 0 430z"}}]},name:"zoom-in",theme:"outlined"},gI=dI,Hw=function(a,n){return g.createElement(Yn,Ie(Ie({},a),{},{ref:n,icon:gI}))};Hw.displayName="ZoomInOutlined";var kI=g.forwardRef(Hw),pI=g.createContext({min:0,max:0,direction:"ltr",step:1,includedStart:0,includedEnd:0,tabIndex:0,keyboard:!0}),ju=pI;function Wp(e,a,n){return(e-a)/(n-a)}function Vp(e,a,n,o){var _=Wp(a,n,o),l={};switch(e){case"rtl":l.right="".concat(_*100,"%"),l.transform="translateX(50%)";break;case"btt":l.bottom="".concat(_*100,"%"),l.transform="translateY(50%)";break;case"ttb":l.top="".concat(_*100,"%"),l.transform="translateY(-50%)";break;default:l.left="".concat(_*100,"%"),l.transform="translateX(-50%)";break}return l}function Jl(e,a){return Array.isArray(e)?e[a]:e}var fI=["prefixCls","value","valueIndex","onStartMove","style","render","dragging","onOffsetChange"],yI=g.forwardRef(function(e,a){var n,o,_=e.prefixCls,l=e.value,h=e.valueIndex,k=e.onStartMove,f=e.style,b=e.render,v=e.dragging,w=e.onOffsetChange,z=Ai(e,fI),S=g.useContext(ju),E=S.min,O=S.max,P=S.direction,T=S.disabled,A=S.keyboard,L=S.range,H=S.tabIndex,K=S.ariaLabelForHandle,ae=S.ariaLabelledByForHandle,ie=S.ariaValueTextFormatterForHandle,se="".concat(_,"-handle"),he=function(le){T||k(le,h)},ue=function(le){if(!T&&A){var be=null;switch(le.which||le.keyCode){case hr.LEFT:be=P==="ltr"||P==="btt"?-1:1;break;case hr.RIGHT:be=P==="ltr"||P==="btt"?1:-1;break;case hr.UP:be=P!=="ttb"?1:-1;break;case hr.DOWN:be=P!=="ttb"?-1:1;break;case hr.HOME:be="min";break;case hr.END:be="max";break;case hr.PAGE_UP:be=2;break;case hr.PAGE_DOWN:be=-2;break}be!==null&&(le.preventDefault(),w(be,h))}},ze=Vp(P,l,E,O),te=g.createElement("div",gi({ref:a,className:ka()(se,(n={},D(n,"".concat(se,"-").concat(h+1),L),D(n,"".concat(se,"-dragging"),v),n)),style:Ie(Ie({},ze),f),onMouseDown:he,onTouchStart:he,onKeyDown:ue,tabIndex:T?null:Jl(H,h),role:"slider","aria-valuemin":E,"aria-valuemax":O,"aria-valuenow":l,"aria-disabled":T,"aria-label":Jl(K,h),"aria-labelledby":Jl(ae,h),"aria-valuetext":(o=Jl(ie,h))===null||o===void 0?void 0:o(l)},z));return b&&(te=b(te,{index:h,prefixCls:_,value:l,dragging:v})),te}),bI=yI,vI=["prefixCls","style","onStartMove","onOffsetChange","values","handleRender","draggingIndex"],wI=g.forwardRef(function(e,a){var n=e.prefixCls,o=e.style,_=e.onStartMove,l=e.onOffsetChange,h=e.values,k=e.handleRender,f=e.draggingIndex,b=Ai(e,vI),v=g.useRef({});return g.useImperativeHandle(a,function(){return{focus:function(z){var S;(S=v.current[z])===null||S===void 0||S.focus()}}}),g.createElement(g.Fragment,null,h.map(function(w,z){return g.createElement(bI,gi({ref:function(E){E?v.current[z]=E:delete v.current[z]},dragging:f===z,prefixCls:n,style:Jl(o,z),key:z,value:w,valueIndex:z,onStartMove:_,onOffsetChange:l,render:k},b))}))}),jI=wI;function Ww(e){var a="touches"in e?e.touches[0]:e;return{pageX:a.pageX,pageY:a.pageY}}function zI(e,a,n,o,_,l,h,k,f){var b=g.useState(null),v=la(b,2),w=v[0],z=v[1],S=g.useState(-1),E=la(S,2),O=E[0],P=E[1],T=g.useState(n),A=la(T,2),L=A[0],H=A[1],K=g.useState(n),ae=la(K,2),ie=ae[0],se=ae[1],he=g.useRef(null),ue=g.useRef(null);g.useEffect(function(){O===-1&&H(n)},[n,O]),g.useEffect(function(){return function(){document.removeEventListener("mousemove",he.current),document.removeEventListener("mouseup",ue.current),document.removeEventListener("touchmove",he.current),document.removeEventListener("touchend",ue.current)}},[]);var ze=function(He,ea){L.some(function(ca,Sa){return ca!==He[Sa]})&&(ea!==void 0&&z(ea),H(He),h(He))},te=function(He,ea){if(He===-1){var ca=ie[0],Sa=ie[ie.length-1],ya=o-ca,Ge=_-Sa,$e=ea*(_-o);$e=Math.max($e,ya),$e=Math.min($e,Ge);var ra=l(ca+$e);$e=ra-ca;var Xe=ie.map(function(Ia){return Ia+$e});ze(Xe)}else{var Se=(_-o)*ea,pa=xa(L);pa[He]=ie[He];var Ze=f(pa,Se,He,"dist");ze(Ze.values,Ze.value)}},re=g.useRef(te);re.current=te;var le=function(He,ea){He.stopPropagation();var ca=n[ea];P(ea),z(ca),se(n);var Sa=Ww(He),ya=Sa.pageX,Ge=Sa.pageY,$e=function(Se){Se.preventDefault();var pa=Ww(Se),Ze=pa.pageX,Ia=pa.pageY,Ta=Ze-ya,da=Ia-Ge,Ca=e.current.getBoundingClientRect(),Ra=Ca.width,ai=Ca.height,Ma;switch(a){case"btt":Ma=-da/ai;break;case"ttb":Ma=da/ai;break;case"rtl":Ma=-Ta/Ra;break;default:Ma=Ta/Ra}re.current(ea,Ma)},ra=function Xe(Se){Se.preventDefault(),document.removeEventListener("mouseup",Xe),document.removeEventListener("mousemove",$e),document.removeEventListener("touchend",Xe),document.removeEventListener("touchmove",$e),he.current=null,ue.current=null,P(-1),k()};document.addEventListener("mouseup",ra),document.addEventListener("mousemove",$e),document.addEventListener("touchend",ra),document.addEventListener("touchmove",$e),he.current=$e,ue.current=ra},be=g.useMemo(function(){var Ve=xa(n).sort(function(ea,ca){return ea-ca}),He=xa(L).sort(function(ea,ca){return ea-ca});return Ve.every(function(ea,ca){return ea===He[ca]})?L:n},[n,L]);return[O,w,be,le]}function xI(e){var a=e.prefixCls,n=e.style,o=e.start,_=e.end,l=e.index,h=e.onStartMove,k=g.useContext(ju),f=k.direction,b=k.min,v=k.max,w=k.disabled,z=k.range,S="".concat(a,"-track"),E=Wp(o,b,v),O=Wp(_,b,v),P=function(L){!w&&h&&h(L,-1)},T={};switch(f){case"rtl":T.right="".concat(E*100,"%"),T.width="".concat(O*100-E*100,"%");break;case"btt":T.bottom="".concat(E*100,"%"),T.height="".concat(O*100-E*100,"%");break;case"ttb":T.top="".concat(E*100,"%"),T.height="".concat(O*100-E*100,"%");break;default:T.left="".concat(E*100,"%"),T.width="".concat(O*100-E*100,"%")}return g.createElement("div",{className:ka()(S,z&&"".concat(S,"-").concat(l+1)),style:Ie(Ie({},T),n),onMouseDown:P,onTouchStart:P})}function CI(e){var a=e.prefixCls,n=e.style,o=e.values,_=e.startPoint,l=e.onStartMove,h=g.useContext(ju),k=h.included,f=h.range,b=h.min,v=g.useMemo(function(){if(!f){if(o.length===0)return[];var w=_!=null?_:b,z=o[0];return[{start:Math.min(w,z),end:Math.max(w,z)}]}for(var S=[],E=0;E3&&arguments[3]!==void 0?arguments[3]:"unit";if(typeof O=="number"){var A,L=E[P],H=L+O,K=[];o.forEach(function(ue){K.push(ue.value)}),K.push(e,a),K.push(k(L));var ae=O>0?1:-1;T==="unit"?K.push(k(L+ae*n)):K.push(k(H)),K=K.filter(function(ue){return ue!==null}).filter(function(ue){return O<0?ue<=L:ue>=L}),T==="unit"&&(K=K.filter(function(ue){return ue!==L}));var ie=T==="unit"?L:H;A=K[0];var se=Math.abs(A-ie);if(K.forEach(function(ue){var ze=Math.abs(ue-ie);ze1){var he=xa(E);return he[P]=A,S(he,O-ae,P,T)}return A}else{if(O==="min")return e;if(O==="max")return a}},v=function(E,O,P){var T=arguments.length>3&&arguments[3]!==void 0?arguments[3]:"unit",A=E[P],L=b(E,O,P,T);return{value:L,changed:L!==A}},w=function(E){return l===null&&E===0||typeof l=="number"&&E3&&arguments[3]!==void 0?arguments[3]:"unit",A=E.map(f),L=A[P],H=b(A,O,P,T);if(A[P]=H,_===!1){var K=l||0;P>0&&A[P-1]!==L&&(A[P]=Math.max(A[P],A[P-1]+K)),P0;he-=1)for(var ue=!0;w(A[he]-A[he-1])&&ue;){var ze=v(A,-1,he-1);A[he-1]=ze.value,ue=ze.changed}for(var te=A.length-1;te>0;te-=1)for(var re=!0;w(A[te]-A[te-1])&&re;){var le=v(A,-1,te-1);A[te-1]=le.value,re=le.changed}for(var be=0;be=0?le:!1},[le,qa]),ln=g.useMemo(function(){var di=Object.keys(Se||{});return di.map(function(si){var Qa=Se[si],Si={value:Number(si)};return Qa&&oi(Qa)==="object"&&!g.isValidElement(Qa)&&("label"in Qa||"style"in Qa)?(Si.style=Qa.style,Si.label=Qa.label):Si.label=Qa,Si}).filter(function(si){var Qa=si.label;return Qa||typeof Qa=="number"}).sort(function(si,Qa){return si.value-Qa.value})},[Se]),Wi=II(va,Oa,qa,ln,te,Ga),Li=la(Wi,2),Ua=Li[0],ii=Li[1],Kn=Up(K,{value:H}),on=la(Kn,2),Vi=on[0],zu=on[1],yi=g.useMemo(function(){var di=Vi==null?[]:Array.isArray(Vi)?Vi:[Vi],si=la(di,1),Qa=si[0],Si=Qa===void 0?va:Qa,wi=Vi===null?[]:[Si];if(ae){if(wi=xa(di),ie||Vi===void 0){var jr=ie>=0?ie+1:2;for(wi=wi.slice(0,jr);wi.length=0&&ai.current.focus(di)}ec(null)},[_t]);var ic=g.useMemo(function(){return be&&qa===null?!1:be},[be,qa]),Cu=function(){ue==null||ue(Di(Ki.current))},Qn=zI(Ma,mi,yi,va,Oa,Ua,To,Cu,ii),er=la(Qn,4),ar=er[0],st=er[1],wr=er[2],Su=er[3],Ro=function(si,Qa){Su(si,Qa),he==null||he(Di(Ki.current))},Kt=ar!==-1;g.useEffect(function(){if(!Kt){var di=yi.lastIndexOf(st);ai.current.focus(di)}},[Kt]);var go=g.useMemo(function(){return xa(wr).sort(function(di,si){return di-si})},[wr]),Pu=g.useMemo(function(){return ae?[go[0],go[go.length-1]]:[va,go[0]]},[go,ae,va]),ss=la(Pu,2),ut=ss[0],Qt=ss[1];g.useImperativeHandle(a,function(){return{focus:function(){ai.current.focus(0)},blur:function(){var si=document,Qa=si.activeElement;Ma.current.contains(Qa)&&(Qa==null||Qa.blur())}}}),g.useEffect(function(){w&&ai.current.focus(0)},[]);var lt=g.useMemo(function(){return{min:va,max:Oa,direction:mi,disabled:f,keyboard:v,step:qa,included:ca,includedStart:ut,includedEnd:Qt,range:ae,tabIndex:Ta,ariaLabelForHandle:da,ariaLabelledByForHandle:Ca,ariaValueTextFormatterForHandle:Ra}},[va,Oa,mi,f,v,qa,ca,ut,Qt,ae,Ta,da,Ca,Ra]);return g.createElement(ju.Provider,{value:lt},g.createElement("div",{ref:Ma,className:ka()(_,l,(n={},D(n,"".concat(_,"-disabled"),f),D(n,"".concat(_,"-vertical"),He),D(n,"".concat(_,"-horizontal"),!He),D(n,"".concat(_,"-with-marks"),ln.length),n)),style:h,onMouseDown:vr},g.createElement("div",{className:"".concat(_,"-rail"),style:$e}),g.createElement(CI,{prefixCls:_,style:ya,values:go,startPoint:Sa,onStartMove:ic?Ro:null}),g.createElement(OI,{prefixCls:_,marks:ln,dots:pa,style:ra,activeStyle:Xe}),g.createElement(jI,{ref:ai,prefixCls:_,style:Ge,values:wr,draggingIndex:ar,onStartMove:Ro,onOffsetChange:ac,onFocus:z,onBlur:S,handleRender:Ze}),g.createElement(PI,{prefixCls:_,marks:ln,onClick:Nn})))}),TI=DI,RI=TI,AI=g.forwardRef((e,a)=>{const{open:n}=e,o=(0,g.useRef)(null),_=(0,g.useRef)(null);function l(){nt.cancel(_.current),_.current=null}function h(){_.current=nt(()=>{var k;(k=o.current)===null||k===void 0||k.forceAlign(),_.current=null})}return g.useEffect(()=>(n?h():l(),l),[n,e.title]),g.createElement(Ew,Object.assign({ref:Mm(o,a)},e))});const NI=e=>{const{componentCls:a,controlSize:n,dotSize:o,marginFull:_,marginPart:l,colorFillContentHover:h}=e;return{[a]:Object.assign(Object.assign({},it(e)),{position:"relative",height:n,margin:`${l}px ${_}px`,padding:0,cursor:"pointer",touchAction:"none",["&-vertical"]:{margin:`${_}px ${l}px`},[`${a}-rail`]:{position:"absolute",backgroundColor:e.colorFillTertiary,borderRadius:e.borderRadiusXS,transition:`background-color ${e.motionDurationMid}`},[`${a}-track`]:{position:"absolute",backgroundColor:e.colorPrimaryBorder,borderRadius:e.borderRadiusXS,transition:`background-color ${e.motionDurationMid}`},"&:hover":{[`${a}-rail`]:{backgroundColor:e.colorFillSecondary},[`${a}-track`]:{backgroundColor:e.colorPrimaryBorderHover},[`${a}-dot`]:{borderColor:h},[`${a}-handle::after`]:{boxShadow:`0 0 0 ${e.handleLineWidth}px ${e.colorPrimaryBorderHover}`},[`${a}-dot-active`]:{borderColor:e.colorPrimary}},[`${a}-handle`]:{position:"absolute",width:e.handleSize,height:e.handleSize,outline:"none",[`${a}-dragging`]:{zIndex:1},"&::before":{content:'""',position:"absolute",insetInlineStart:-e.handleLineWidth,insetBlockStart:-e.handleLineWidth,width:e.handleSize+e.handleLineWidth*2,height:e.handleSize+e.handleLineWidth*2,backgroundColor:"transparent"},"&::after":{content:'""',position:"absolute",insetBlockStart:0,insetInlineStart:0,width:e.handleSize,height:e.handleSize,backgroundColor:e.colorBgElevated,boxShadow:`0 0 0 ${e.handleLineWidth}px ${e.colorPrimaryBorder}`,borderRadius:"50%",cursor:"pointer",transition:` +`]))),mI=function(a){var n=a.children,o=(0,g.useRef)(null);return(0,ia.jsxs)(cI,{ref:o,children:[n,(0,ia.jsx)(lI.BackTop,{target:function(){return o.current}})]})},hI=g.memo(mI),dI={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M637 443H519V309c0-4.4-3.6-8-8-8h-60c-4.4 0-8 3.6-8 8v134H325c-4.4 0-8 3.6-8 8v60c0 4.4 3.6 8 8 8h118v134c0 4.4 3.6 8 8 8h60c4.4 0 8-3.6 8-8V519h118c4.4 0 8-3.6 8-8v-60c0-4.4-3.6-8-8-8zm284 424L775 721c122.1-148.9 113.6-369.5-26-509-148-148.1-388.4-148.1-537 0-148.1 148.6-148.1 389 0 537 139.5 139.6 360.1 148.1 509 26l146 146c3.2 2.8 8.3 2.8 11 0l43-43c2.8-2.7 2.8-7.8 0-11zM696 696c-118.8 118.7-311.2 118.7-430 0-118.7-118.8-118.7-311.2 0-430 118.8-118.7 311.2-118.7 430 0 118.7 118.8 118.7 311.2 0 430z"}}]},name:"zoom-in",theme:"outlined"},gI=dI,Hw=function(a,n){return g.createElement(Yn,Ie(Ie({},a),{},{ref:n,icon:gI}))};Hw.displayName="ZoomInOutlined";var kI=g.forwardRef(Hw),pI=g.createContext({min:0,max:0,direction:"ltr",step:1,includedStart:0,includedEnd:0,tabIndex:0,keyboard:!0}),ju=pI;function Wp(e,a,n){return(e-a)/(n-a)}function Bp(e,a,n,o){var _=Wp(a,n,o),l={};switch(e){case"rtl":l.right="".concat(_*100,"%"),l.transform="translateX(50%)";break;case"btt":l.bottom="".concat(_*100,"%"),l.transform="translateY(50%)";break;case"ttb":l.top="".concat(_*100,"%"),l.transform="translateY(-50%)";break;default:l.left="".concat(_*100,"%"),l.transform="translateX(-50%)";break}return l}function Jl(e,a){return Array.isArray(e)?e[a]:e}var fI=["prefixCls","value","valueIndex","onStartMove","style","render","dragging","onOffsetChange"],yI=g.forwardRef(function(e,a){var n,o,_=e.prefixCls,l=e.value,h=e.valueIndex,k=e.onStartMove,f=e.style,b=e.render,v=e.dragging,w=e.onOffsetChange,z=Ai(e,fI),S=g.useContext(ju),E=S.min,O=S.max,P=S.direction,T=S.disabled,A=S.keyboard,L=S.range,H=S.tabIndex,K=S.ariaLabelForHandle,ae=S.ariaLabelledByForHandle,ie=S.ariaValueTextFormatterForHandle,se="".concat(_,"-handle"),he=function(le){T||k(le,h)},ue=function(le){if(!T&&A){var be=null;switch(le.which||le.keyCode){case hr.LEFT:be=P==="ltr"||P==="btt"?-1:1;break;case hr.RIGHT:be=P==="ltr"||P==="btt"?1:-1;break;case hr.UP:be=P!=="ttb"?1:-1;break;case hr.DOWN:be=P!=="ttb"?-1:1;break;case hr.HOME:be="min";break;case hr.END:be="max";break;case hr.PAGE_UP:be=2;break;case hr.PAGE_DOWN:be=-2;break}be!==null&&(le.preventDefault(),w(be,h))}},ze=Bp(P,l,E,O),te=g.createElement("div",gi({ref:a,className:ka()(se,(n={},D(n,"".concat(se,"-").concat(h+1),L),D(n,"".concat(se,"-dragging"),v),n)),style:Ie(Ie({},ze),f),onMouseDown:he,onTouchStart:he,onKeyDown:ue,tabIndex:T?null:Jl(H,h),role:"slider","aria-valuemin":E,"aria-valuemax":O,"aria-valuenow":l,"aria-disabled":T,"aria-label":Jl(K,h),"aria-labelledby":Jl(ae,h),"aria-valuetext":(o=Jl(ie,h))===null||o===void 0?void 0:o(l)},z));return b&&(te=b(te,{index:h,prefixCls:_,value:l,dragging:v})),te}),bI=yI,vI=["prefixCls","style","onStartMove","onOffsetChange","values","handleRender","draggingIndex"],wI=g.forwardRef(function(e,a){var n=e.prefixCls,o=e.style,_=e.onStartMove,l=e.onOffsetChange,h=e.values,k=e.handleRender,f=e.draggingIndex,b=Ai(e,vI),v=g.useRef({});return g.useImperativeHandle(a,function(){return{focus:function(z){var S;(S=v.current[z])===null||S===void 0||S.focus()}}}),g.createElement(g.Fragment,null,h.map(function(w,z){return g.createElement(bI,gi({ref:function(E){E?v.current[z]=E:delete v.current[z]},dragging:f===z,prefixCls:n,style:Jl(o,z),key:z,value:w,valueIndex:z,onStartMove:_,onOffsetChange:l,render:k},b))}))}),jI=wI;function Ww(e){var a="touches"in e?e.touches[0]:e;return{pageX:a.pageX,pageY:a.pageY}}function zI(e,a,n,o,_,l,h,k,f){var b=g.useState(null),v=la(b,2),w=v[0],z=v[1],S=g.useState(-1),E=la(S,2),O=E[0],P=E[1],T=g.useState(n),A=la(T,2),L=A[0],H=A[1],K=g.useState(n),ae=la(K,2),ie=ae[0],se=ae[1],he=g.useRef(null),ue=g.useRef(null);g.useEffect(function(){O===-1&&H(n)},[n,O]),g.useEffect(function(){return function(){document.removeEventListener("mousemove",he.current),document.removeEventListener("mouseup",ue.current),document.removeEventListener("touchmove",he.current),document.removeEventListener("touchend",ue.current)}},[]);var ze=function(He,ea){L.some(function(ca,Sa){return ca!==He[Sa]})&&(ea!==void 0&&z(ea),H(He),h(He))},te=function(He,ea){if(He===-1){var ca=ie[0],Sa=ie[ie.length-1],ya=o-ca,Ge=_-Sa,$e=ea*(_-o);$e=Math.max($e,ya),$e=Math.min($e,Ge);var ra=l(ca+$e);$e=ra-ca;var Xe=ie.map(function(Ia){return Ia+$e});ze(Xe)}else{var Se=(_-o)*ea,pa=xa(L);pa[He]=ie[He];var Ze=f(pa,Se,He,"dist");ze(Ze.values,Ze.value)}},re=g.useRef(te);re.current=te;var le=function(He,ea){He.stopPropagation();var ca=n[ea];P(ea),z(ca),se(n);var Sa=Ww(He),ya=Sa.pageX,Ge=Sa.pageY,$e=function(Se){Se.preventDefault();var pa=Ww(Se),Ze=pa.pageX,Ia=pa.pageY,Ta=Ze-ya,da=Ia-Ge,Ca=e.current.getBoundingClientRect(),Ra=Ca.width,ai=Ca.height,Ma;switch(a){case"btt":Ma=-da/ai;break;case"ttb":Ma=da/ai;break;case"rtl":Ma=-Ta/Ra;break;default:Ma=Ta/Ra}re.current(ea,Ma)},ra=function Xe(Se){Se.preventDefault(),document.removeEventListener("mouseup",Xe),document.removeEventListener("mousemove",$e),document.removeEventListener("touchend",Xe),document.removeEventListener("touchmove",$e),he.current=null,ue.current=null,P(-1),k()};document.addEventListener("mouseup",ra),document.addEventListener("mousemove",$e),document.addEventListener("touchend",ra),document.addEventListener("touchmove",$e),he.current=$e,ue.current=ra},be=g.useMemo(function(){var Be=xa(n).sort(function(ea,ca){return ea-ca}),He=xa(L).sort(function(ea,ca){return ea-ca});return Be.every(function(ea,ca){return ea===He[ca]})?L:n},[n,L]);return[O,w,be,le]}function xI(e){var a=e.prefixCls,n=e.style,o=e.start,_=e.end,l=e.index,h=e.onStartMove,k=g.useContext(ju),f=k.direction,b=k.min,v=k.max,w=k.disabled,z=k.range,S="".concat(a,"-track"),E=Wp(o,b,v),O=Wp(_,b,v),P=function(L){!w&&h&&h(L,-1)},T={};switch(f){case"rtl":T.right="".concat(E*100,"%"),T.width="".concat(O*100-E*100,"%");break;case"btt":T.bottom="".concat(E*100,"%"),T.height="".concat(O*100-E*100,"%");break;case"ttb":T.top="".concat(E*100,"%"),T.height="".concat(O*100-E*100,"%");break;default:T.left="".concat(E*100,"%"),T.width="".concat(O*100-E*100,"%")}return g.createElement("div",{className:ka()(S,z&&"".concat(S,"-").concat(l+1)),style:Ie(Ie({},T),n),onMouseDown:P,onTouchStart:P})}function CI(e){var a=e.prefixCls,n=e.style,o=e.values,_=e.startPoint,l=e.onStartMove,h=g.useContext(ju),k=h.included,f=h.range,b=h.min,v=g.useMemo(function(){if(!f){if(o.length===0)return[];var w=_!=null?_:b,z=o[0];return[{start:Math.min(w,z),end:Math.max(w,z)}]}for(var S=[],E=0;E3&&arguments[3]!==void 0?arguments[3]:"unit";if(typeof O=="number"){var A,L=E[P],H=L+O,K=[];o.forEach(function(ue){K.push(ue.value)}),K.push(e,a),K.push(k(L));var ae=O>0?1:-1;T==="unit"?K.push(k(L+ae*n)):K.push(k(H)),K=K.filter(function(ue){return ue!==null}).filter(function(ue){return O<0?ue<=L:ue>=L}),T==="unit"&&(K=K.filter(function(ue){return ue!==L}));var ie=T==="unit"?L:H;A=K[0];var se=Math.abs(A-ie);if(K.forEach(function(ue){var ze=Math.abs(ue-ie);ze1){var he=xa(E);return he[P]=A,S(he,O-ae,P,T)}return A}else{if(O==="min")return e;if(O==="max")return a}},v=function(E,O,P){var T=arguments.length>3&&arguments[3]!==void 0?arguments[3]:"unit",A=E[P],L=b(E,O,P,T);return{value:L,changed:L!==A}},w=function(E){return l===null&&E===0||typeof l=="number"&&E3&&arguments[3]!==void 0?arguments[3]:"unit",A=E.map(f),L=A[P],H=b(A,O,P,T);if(A[P]=H,_===!1){var K=l||0;P>0&&A[P-1]!==L&&(A[P]=Math.max(A[P],A[P-1]+K)),P0;he-=1)for(var ue=!0;w(A[he]-A[he-1])&&ue;){var ze=v(A,-1,he-1);A[he-1]=ze.value,ue=ze.changed}for(var te=A.length-1;te>0;te-=1)for(var re=!0;w(A[te]-A[te-1])&&re;){var le=v(A,-1,te-1);A[te-1]=le.value,re=le.changed}for(var be=0;be=0?le:!1},[le,qa]),ln=g.useMemo(function(){var di=Object.keys(Se||{});return di.map(function(si){var Qa=Se[si],Si={value:Number(si)};return Qa&&oi(Qa)==="object"&&!g.isValidElement(Qa)&&("label"in Qa||"style"in Qa)?(Si.style=Qa.style,Si.label=Qa.label):Si.label=Qa,Si}).filter(function(si){var Qa=si.label;return Qa||typeof Qa=="number"}).sort(function(si,Qa){return si.value-Qa.value})},[Se]),Wi=II(va,Oa,qa,ln,te,Ga),Li=la(Wi,2),Ua=Li[0],ii=Li[1],Kn=Up(K,{value:H}),on=la(Kn,2),Bi=on[0],zu=on[1],yi=g.useMemo(function(){var di=Bi==null?[]:Array.isArray(Bi)?Bi:[Bi],si=la(di,1),Qa=si[0],Si=Qa===void 0?va:Qa,wi=Bi===null?[]:[Si];if(ae){if(wi=xa(di),ie||Bi===void 0){var jr=ie>=0?ie+1:2;for(wi=wi.slice(0,jr);wi.length=0&&ai.current.focus(di)}ec(null)},[_t]);var ic=g.useMemo(function(){return be&&qa===null?!1:be},[be,qa]),Cu=function(){ue==null||ue(Di(Ki.current))},Qn=zI(Ma,mi,yi,va,Oa,Ua,To,Cu,ii),er=la(Qn,4),ar=er[0],st=er[1],wr=er[2],Su=er[3],Ro=function(si,Qa){Su(si,Qa),he==null||he(Di(Ki.current))},Kt=ar!==-1;g.useEffect(function(){if(!Kt){var di=yi.lastIndexOf(st);ai.current.focus(di)}},[Kt]);var go=g.useMemo(function(){return xa(wr).sort(function(di,si){return di-si})},[wr]),Pu=g.useMemo(function(){return ae?[go[0],go[go.length-1]]:[va,go[0]]},[go,ae,va]),ss=la(Pu,2),ut=ss[0],Qt=ss[1];g.useImperativeHandle(a,function(){return{focus:function(){ai.current.focus(0)},blur:function(){var si=document,Qa=si.activeElement;Ma.current.contains(Qa)&&(Qa==null||Qa.blur())}}}),g.useEffect(function(){w&&ai.current.focus(0)},[]);var lt=g.useMemo(function(){return{min:va,max:Oa,direction:mi,disabled:f,keyboard:v,step:qa,included:ca,includedStart:ut,includedEnd:Qt,range:ae,tabIndex:Ta,ariaLabelForHandle:da,ariaLabelledByForHandle:Ca,ariaValueTextFormatterForHandle:Ra}},[va,Oa,mi,f,v,qa,ca,ut,Qt,ae,Ta,da,Ca,Ra]);return g.createElement(ju.Provider,{value:lt},g.createElement("div",{ref:Ma,className:ka()(_,l,(n={},D(n,"".concat(_,"-disabled"),f),D(n,"".concat(_,"-vertical"),He),D(n,"".concat(_,"-horizontal"),!He),D(n,"".concat(_,"-with-marks"),ln.length),n)),style:h,onMouseDown:vr},g.createElement("div",{className:"".concat(_,"-rail"),style:$e}),g.createElement(CI,{prefixCls:_,style:ya,values:go,startPoint:Sa,onStartMove:ic?Ro:null}),g.createElement(OI,{prefixCls:_,marks:ln,dots:pa,style:ra,activeStyle:Xe}),g.createElement(jI,{ref:ai,prefixCls:_,style:Ge,values:wr,draggingIndex:ar,onStartMove:Ro,onOffsetChange:ac,onFocus:z,onBlur:S,handleRender:Ze}),g.createElement(PI,{prefixCls:_,marks:ln,onClick:Nn})))}),TI=DI,RI=TI,AI=g.forwardRef((e,a)=>{const{open:n}=e,o=(0,g.useRef)(null),_=(0,g.useRef)(null);function l(){nt.cancel(_.current),_.current=null}function h(){_.current=nt(()=>{var k;(k=o.current)===null||k===void 0||k.forceAlign(),_.current=null})}return g.useEffect(()=>(n?h():l(),l),[n,e.title]),g.createElement(Ew,Object.assign({ref:Mm(o,a)},e))});const NI=e=>{const{componentCls:a,controlSize:n,dotSize:o,marginFull:_,marginPart:l,colorFillContentHover:h}=e;return{[a]:Object.assign(Object.assign({},it(e)),{position:"relative",height:n,margin:`${l}px ${_}px`,padding:0,cursor:"pointer",touchAction:"none",["&-vertical"]:{margin:`${_}px ${l}px`},[`${a}-rail`]:{position:"absolute",backgroundColor:e.colorFillTertiary,borderRadius:e.borderRadiusXS,transition:`background-color ${e.motionDurationMid}`},[`${a}-track`]:{position:"absolute",backgroundColor:e.colorPrimaryBorder,borderRadius:e.borderRadiusXS,transition:`background-color ${e.motionDurationMid}`},"&:hover":{[`${a}-rail`]:{backgroundColor:e.colorFillSecondary},[`${a}-track`]:{backgroundColor:e.colorPrimaryBorderHover},[`${a}-dot`]:{borderColor:h},[`${a}-handle::after`]:{boxShadow:`0 0 0 ${e.handleLineWidth}px ${e.colorPrimaryBorderHover}`},[`${a}-dot-active`]:{borderColor:e.colorPrimary}},[`${a}-handle`]:{position:"absolute",width:e.handleSize,height:e.handleSize,outline:"none",[`${a}-dragging`]:{zIndex:1},"&::before":{content:'""',position:"absolute",insetInlineStart:-e.handleLineWidth,insetBlockStart:-e.handleLineWidth,width:e.handleSize+e.handleLineWidth*2,height:e.handleSize+e.handleLineWidth*2,backgroundColor:"transparent"},"&::after":{content:'""',position:"absolute",insetBlockStart:0,insetInlineStart:0,width:e.handleSize,height:e.handleSize,backgroundColor:e.colorBgElevated,boxShadow:`0 0 0 ${e.handleLineWidth}px ${e.colorPrimaryBorder}`,borderRadius:"50%",cursor:"pointer",transition:` inset-inline-start ${e.motionDurationMid}, inset-block-start ${e.motionDurationMid}, width ${e.motionDurationMid}, @@ -701,12 +701,12 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho `]:{backgroundColor:e.colorBgElevated,borderColor:e.colorTextDisabled,boxShadow:"none",cursor:"not-allowed"},[`${a}-handle::after`]:{backgroundColor:e.colorBgElevated,cursor:"not-allowed",width:e.handleSize,height:e.handleSize,boxShadow:`0 0 0 ${e.handleLineWidth}px ${new Xi(e.colorTextDisabled).onBackground(e.colorBgContainer).toHexShortString()}`,insetInlineStart:0,insetBlockStart:0},[` ${a}-mark-text, ${a}-dot - `]:{cursor:"not-allowed !important"}}})}},Vw=(e,a)=>{const{componentCls:n,railSize:o,handleSize:_,dotSize:l}=e,h=a?"paddingBlock":"paddingInline",k=a?"width":"height",f=a?"height":"width",b=a?"insetBlockStart":"insetInlineStart",v=a?"top":"insetInlineStart";return{[h]:o,[f]:o*3,[`${n}-rail`]:{[k]:"100%",[f]:o},[`${n}-track`]:{[f]:o},[`${n}-handle`]:{[b]:(o*3-_)/2},[`${n}-mark`]:{insetInlineStart:0,top:0,[v]:_,[k]:"100%"},[`${n}-step`]:{insetInlineStart:0,top:0,[v]:o,[k]:"100%",[f]:o},[`${n}-dot`]:{position:"absolute",[b]:(o-l)/2}}},MI=e=>{const{componentCls:a,marginPartWithMark:n}=e;return{[`${a}-horizontal`]:Object.assign(Object.assign({},Vw(e,!0)),{[`&${a}-with-marks`]:{marginBottom:n}})}},FI=e=>{const{componentCls:a}=e;return{[`${a}-vertical`]:Object.assign(Object.assign({},Vw(e,!1)),{height:"100%"})}};var LI=dr("Slider",e=>{const a=Po(e,{marginPart:(e.controlHeight-e.controlSize)/2,marginFull:e.controlSize/2,marginPartWithMark:e.controlHeightLG-e.controlSize});return[NI(a),MI(a),FI(a)]},e=>{const n=e.controlHeightLG/4,o=e.controlHeightSM/2,_=e.lineWidth+1,l=e.lineWidth+1*3;return{controlSize:n,railSize:4,handleSize:n,handleSizeHover:o,dotSize:8,handleLineWidth:_,handleLineWidthHover:l}}),UI=function(e,a){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&a.indexOf(o)<0&&(n[o]=e[o]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var _=0,o=Object.getOwnPropertySymbols(e);_typeof e=="number"?e.toString():"";var HI=g.forwardRef((e,a)=>{const{prefixCls:n,range:o,className:_,rootClassName:l,tooltipPrefixCls:h,tipFormatter:k,tooltipVisible:f,getTooltipPopupContainer:b,tooltipPlacement:v}=e,w=UI(e,["prefixCls","range","className","rootClassName","tooltipPrefixCls","tipFormatter","tooltipVisible","getTooltipPopupContainer","tooltipPlacement"]),{getPrefixCls:z,direction:S,getPopupContainer:E}=g.useContext(Ha),[O,P]=g.useState({}),T=(ue,ze)=>{P(te=>Object.assign(Object.assign({},te),{[ue]:ze}))},A=(ue,ze)=>ue||(ze?S==="rtl"?"left":"right":"top"),L=z("slider",n),[H,K]=LI(L),ae=ka()(_,l,{[`${L}-rtl`]:S==="rtl"},K);S==="rtl"&&!w.vertical&&(w.reverse=!w.reverse);const[ie,se]=g.useMemo(()=>o?typeof o=="object"?[!0,o.draggableTrack]:[!0,!1]:[!1],[o]),he=(ue,ze)=>{var te;const{index:re,dragging:le}=ze,{tooltip:be={},vertical:Ve}=e,He=Object.assign({},be),{open:ea,placement:ca,getPopupContainer:Sa,prefixCls:ya,formatter:Ge}=He;let $e;Ge||Ge===null?$e=Ge:k||k===null?$e=k:$e=$I;const ra=$e?O[re]||le:!1,Xe=(te=ea!=null?ea:f)!==null&&te!==void 0?te:ea===void 0&&ra,Se=Object.assign(Object.assign({},ue.props),{onMouseEnter:()=>T(re,!0),onMouseLeave:()=>T(re,!1)}),pa=z("tooltip",ya!=null?ya:h);return g.createElement(AI,{prefixCls:pa,title:$e?$e(ze.value):"",open:Xe,placement:A(ca!=null?ca:v,Ve),key:re,overlayClassName:`${L}-tooltip`,getPopupContainer:Sa||b||E},g.cloneElement(ue,Se))};return H(g.createElement(RI,Object.assign({},w,{step:w.step,range:ie,draggableTrack:se,className:ae,ref:a,prefixCls:L,handleRender:he})))}),Bw,qw,Gw,Xw,WI=An.div(Bw||(Bw=ki()([` + `]:{cursor:"not-allowed !important"}}})}},Bw=(e,a)=>{const{componentCls:n,railSize:o,handleSize:_,dotSize:l}=e,h=a?"paddingBlock":"paddingInline",k=a?"width":"height",f=a?"height":"width",b=a?"insetBlockStart":"insetInlineStart",v=a?"top":"insetInlineStart";return{[h]:o,[f]:o*3,[`${n}-rail`]:{[k]:"100%",[f]:o},[`${n}-track`]:{[f]:o},[`${n}-handle`]:{[b]:(o*3-_)/2},[`${n}-mark`]:{insetInlineStart:0,top:0,[v]:_,[k]:"100%"},[`${n}-step`]:{insetInlineStart:0,top:0,[v]:o,[k]:"100%",[f]:o},[`${n}-dot`]:{position:"absolute",[b]:(o-l)/2}}},MI=e=>{const{componentCls:a,marginPartWithMark:n}=e;return{[`${a}-horizontal`]:Object.assign(Object.assign({},Bw(e,!0)),{[`&${a}-with-marks`]:{marginBottom:n}})}},FI=e=>{const{componentCls:a}=e;return{[`${a}-vertical`]:Object.assign(Object.assign({},Bw(e,!1)),{height:"100%"})}};var LI=dr("Slider",e=>{const a=Po(e,{marginPart:(e.controlHeight-e.controlSize)/2,marginFull:e.controlSize/2,marginPartWithMark:e.controlHeightLG-e.controlSize});return[NI(a),MI(a),FI(a)]},e=>{const n=e.controlHeightLG/4,o=e.controlHeightSM/2,_=e.lineWidth+1,l=e.lineWidth+1*3;return{controlSize:n,railSize:4,handleSize:n,handleSizeHover:o,dotSize:8,handleLineWidth:_,handleLineWidthHover:l}}),UI=function(e,a){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&a.indexOf(o)<0&&(n[o]=e[o]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var _=0,o=Object.getOwnPropertySymbols(e);_typeof e=="number"?e.toString():"";var HI=g.forwardRef((e,a)=>{const{prefixCls:n,range:o,className:_,rootClassName:l,tooltipPrefixCls:h,tipFormatter:k,tooltipVisible:f,getTooltipPopupContainer:b,tooltipPlacement:v}=e,w=UI(e,["prefixCls","range","className","rootClassName","tooltipPrefixCls","tipFormatter","tooltipVisible","getTooltipPopupContainer","tooltipPlacement"]),{getPrefixCls:z,direction:S,getPopupContainer:E}=g.useContext(Ha),[O,P]=g.useState({}),T=(ue,ze)=>{P(te=>Object.assign(Object.assign({},te),{[ue]:ze}))},A=(ue,ze)=>ue||(ze?S==="rtl"?"left":"right":"top"),L=z("slider",n),[H,K]=LI(L),ae=ka()(_,l,{[`${L}-rtl`]:S==="rtl"},K);S==="rtl"&&!w.vertical&&(w.reverse=!w.reverse);const[ie,se]=g.useMemo(()=>o?typeof o=="object"?[!0,o.draggableTrack]:[!0,!1]:[!1],[o]),he=(ue,ze)=>{var te;const{index:re,dragging:le}=ze,{tooltip:be={},vertical:Be}=e,He=Object.assign({},be),{open:ea,placement:ca,getPopupContainer:Sa,prefixCls:ya,formatter:Ge}=He;let $e;Ge||Ge===null?$e=Ge:k||k===null?$e=k:$e=$I;const ra=$e?O[re]||le:!1,Xe=(te=ea!=null?ea:f)!==null&&te!==void 0?te:ea===void 0&&ra,Se=Object.assign(Object.assign({},ue.props),{onMouseEnter:()=>T(re,!0),onMouseLeave:()=>T(re,!1)}),pa=z("tooltip",ya!=null?ya:h);return g.createElement(AI,{prefixCls:pa,title:$e?$e(ze.value):"",open:Xe,placement:A(ca!=null?ca:v,Be),key:re,overlayClassName:`${L}-tooltip`,getPopupContainer:Sa||b||E},g.cloneElement(ue,Se))};return H(g.createElement(RI,Object.assign({},w,{step:w.step,range:ie,draggableTrack:se,className:ae,ref:a,prefixCls:L,handleRender:he})))}),Vw,qw,Gw,Xw,WI=An.div(Vw||(Vw=ki()([` display: flex; flex-direction: column; height: -webkit-fill-available; overflow: hidden; -`]))),VI=An.div(qw||(qw=ki()([` +`]))),BI=An.div(qw||(qw=ki()([` padding: 16px; overflow-x: hidden; overflow-y: auto; @@ -720,7 +720,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho width: -webkit-fill-available !important; } } -`])),function(e){var a=e.size;return a},function(e){var a=e.size;return a*1.5}),BI=An.div(Gw||(Gw=ki()([` +`])),function(e){var a=e.size;return a},function(e){var a=e.size;return a*1.5}),VI=An.div(Gw||(Gw=ki()([` flex: 0; padding: 8px 16px; display: flex; @@ -730,11 +730,11 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho `]))),qI=An(HI)(Xw||(Xw=ki()([` margin-left: 16px; flex: 1; -`]))),GI=function(a){var n=a.children,o=a.style,_=Tp(),l=_.mobile,h=(0,g.useState)(!l),k=I()(h,2),f=k[0],b=k[1],v=(0,g.useState)(96),w=I()(v,2),z=w[0],S=w[1];return(0,g.useEffect)(function(){b(!l)},[l]),(0,ia.jsx)(Dp,{style:o,placement:"right",defaultSize:{width:340},isExpand:f,onExpandChange:b,children:(0,ia.jsxs)(WI,{children:[(0,ia.jsx)(VI,{size:z,children:n}),(0,ia.jsxs)(BI,{children:[(0,ia.jsx)(kI,{}),(0,ia.jsx)(qI,{defaultValue:86,step:8,max:256,min:64,onChange:S})]})]})})},XI=g.memo(GI);const Yw=e=>{let a;const n=new Set,o=(f,b)=>{const v=typeof f=="function"?f(a):f;if(!Object.is(v,a)){const w=a;a=(b!=null?b:typeof v!="object")?v:Object.assign({},a,v),n.forEach(z=>z(a,w))}},_=()=>a,k={setState:o,getState:_,subscribe:f=>(n.add(f),()=>n.delete(f)),destroy:()=>{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."),n.clear()}};return a=e(o,_,k),k},Kw=e=>e?Yw(e):Yw;var AR=e=>(console.warn("[DEPRECATED] Default export is deprecated. Instead use import { createStore } from 'zustand/vanilla'."),Kw(e)),YI=ha(2798);const{useSyncExternalStoreWithSelector:KI}=YI;function QI(e,a=e.getState,n){const o=KI(e.subscribe,e.getState,e.getServerState||e.getState,a,n);return(0,g.useDebugValue)(o),o}const Qw=e=>{typeof e!="function"&&console.warn("[DEPRECATED] Passing a vanilla store will be unsupported in a future version. Instead use `import { useStore } from 'zustand'`.");const a=typeof e=="function"?Kw(e):e,n=(o,_)=>QI(a,o,_);return Object.assign(n,a),n},Jw=e=>e?Qw(e):Qw;var NR=e=>(console.warn("[DEPRECATED] Default export is deprecated. Instead use `import { create } from 'zustand'`."),Jw(e));const MR=(e,a)=>(n,o,_)=>(_.dispatch=l=>(n(h=>e(h,l),!1,l),l),_.dispatchFromDevtools=!0,bn({dispatch:(...l)=>_.dispatch(...l)},a)),FR=null,Bp=new Map,sg=e=>{const a=Bp.get(e);return a?Object.fromEntries(Object.entries(a.stores).map(([n,o])=>[n,o.getState()])):{}},JI=(e,a,n)=>{if(e===void 0)return{type:"untracked",connection:a.connect(n)};const o=Bp.get(n.name);if(o)return bn({type:"tracked",store:e},o);const _={connection:a.connect(n),stores:{}};return Bp.set(n.name,_),bn({type:"tracked",store:e},_)},ZI=(e,a={})=>(n,o,_)=>{const O=a,{enabled:l,anonymousActionType:h,store:k}=O,f=of(O,["enabled","anonymousActionType","store"]);let b;try{b=(l!=null?l:void 0!=="production")&&window.__REDUX_DEVTOOLS_EXTENSION__}catch(T){}if(!b)return l&&console.warn("[zustand devtools middleware] Please install/enable Redux devtools extension"),e(n,o,_);const P=JI(k,b,f),{connection:v}=P,w=of(P,["connection"]);let z=!0;_.setState=(T,A,L)=>{const H=n(T,A);if(!z)return H;const K=L===void 0?{type:h||"anonymous"}:typeof L=="string"?{type:L}:L;return k===void 0?(v==null||v.send(K,o()),H):(v==null||v.send(nf(bn({},K),{type:`${k}/${K.type}`}),nf(bn({},sg(f.name)),{[k]:_.getState()})),H)};const S=(...T)=>{const A=z;z=!1,n(...T),z=A},E=e(_.setState,o,_);if(w.type==="untracked"?v==null||v.init(E):(w.stores[w.store]=_,v==null||v.init(Object.fromEntries(Object.entries(w.stores).map(([T,A])=>[T,T===w.store?E:A.getState()])))),_.dispatchFromDevtools&&typeof _.dispatch=="function"){let T=!1;const A=_.dispatch;_.dispatch=(...L)=>{L[0].type==="__setState"&&!T&&(console.warn('[zustand devtools middleware] "__setState" action type is reserved to set state from the devtools. Avoid using it.'),T=!0),A(...L)}}return v.subscribe(T=>{var A;switch(T.type){case"ACTION":if(typeof T.payload!="string"){console.error("[zustand devtools middleware] Unsupported action format");return}return qp(T.payload,L=>{if(L.type==="__setState"){if(k===void 0){S(L.state);return}Object.keys(L.state).length!==1&&console.error(` +`]))),GI=function(a){var n=a.children,o=a.style,_=Tp(),l=_.mobile,h=(0,g.useState)(!l),k=I()(h,2),f=k[0],b=k[1],v=(0,g.useState)(96),w=I()(v,2),z=w[0],S=w[1];return(0,g.useEffect)(function(){b(!l)},[l]),(0,ia.jsx)(Dp,{style:o,placement:"right",defaultSize:{width:340},isExpand:f,onExpandChange:b,children:(0,ia.jsxs)(WI,{children:[(0,ia.jsx)(BI,{size:z,children:n}),(0,ia.jsxs)(VI,{children:[(0,ia.jsx)(kI,{}),(0,ia.jsx)(qI,{defaultValue:86,step:8,max:256,min:64,onChange:S})]})]})})},XI=g.memo(GI);const Yw=e=>{let a;const n=new Set,o=(f,b)=>{const v=typeof f=="function"?f(a):f;if(!Object.is(v,a)){const w=a;a=(b!=null?b:typeof v!="object")?v:Object.assign({},a,v),n.forEach(z=>z(a,w))}},_=()=>a,k={setState:o,getState:_,subscribe:f=>(n.add(f),()=>n.delete(f)),destroy:()=>{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."),n.clear()}};return a=e(o,_,k),k},Kw=e=>e?Yw(e):Yw;var AR=e=>(console.warn("[DEPRECATED] Default export is deprecated. Instead use import { createStore } from 'zustand/vanilla'."),Kw(e)),YI=ha(2798);const{useSyncExternalStoreWithSelector:KI}=YI;function QI(e,a=e.getState,n){const o=KI(e.subscribe,e.getState,e.getServerState||e.getState,a,n);return(0,g.useDebugValue)(o),o}const Qw=e=>{typeof e!="function"&&console.warn("[DEPRECATED] Passing a vanilla store will be unsupported in a future version. Instead use `import { useStore } from 'zustand'`.");const a=typeof e=="function"?Kw(e):e,n=(o,_)=>QI(a,o,_);return Object.assign(n,a),n},Jw=e=>e?Qw(e):Qw;var NR=e=>(console.warn("[DEPRECATED] Default export is deprecated. Instead use `import { create } from 'zustand'`."),Jw(e));const MR=(e,a)=>(n,o,_)=>(_.dispatch=l=>(n(h=>e(h,l),!1,l),l),_.dispatchFromDevtools=!0,bn({dispatch:(...l)=>_.dispatch(...l)},a)),FR=null,Vp=new Map,sg=e=>{const a=Vp.get(e);return a?Object.fromEntries(Object.entries(a.stores).map(([n,o])=>[n,o.getState()])):{}},JI=(e,a,n)=>{if(e===void 0)return{type:"untracked",connection:a.connect(n)};const o=Vp.get(n.name);if(o)return bn({type:"tracked",store:e},o);const _={connection:a.connect(n),stores:{}};return Vp.set(n.name,_),bn({type:"tracked",store:e},_)},ZI=(e,a={})=>(n,o,_)=>{const O=a,{enabled:l,anonymousActionType:h,store:k}=O,f=of(O,["enabled","anonymousActionType","store"]);let b;try{b=(l!=null?l:void 0!=="production")&&window.__REDUX_DEVTOOLS_EXTENSION__}catch(T){}if(!b)return l&&console.warn("[zustand devtools middleware] Please install/enable Redux devtools extension"),e(n,o,_);const P=JI(k,b,f),{connection:v}=P,w=of(P,["connection"]);let z=!0;_.setState=(T,A,L)=>{const H=n(T,A);if(!z)return H;const K=L===void 0?{type:h||"anonymous"}:typeof L=="string"?{type:L}:L;return k===void 0?(v==null||v.send(K,o()),H):(v==null||v.send(nf(bn({},K),{type:`${k}/${K.type}`}),nf(bn({},sg(f.name)),{[k]:_.getState()})),H)};const S=(...T)=>{const A=z;z=!1,n(...T),z=A},E=e(_.setState,o,_);if(w.type==="untracked"?v==null||v.init(E):(w.stores[w.store]=_,v==null||v.init(Object.fromEntries(Object.entries(w.stores).map(([T,A])=>[T,T===w.store?E:A.getState()])))),_.dispatchFromDevtools&&typeof _.dispatch=="function"){let T=!1;const A=_.dispatch;_.dispatch=(...L)=>{L[0].type==="__setState"&&!T&&(console.warn('[zustand devtools middleware] "__setState" action type is reserved to set state from the devtools. Avoid using it.'),T=!0),A(...L)}}return v.subscribe(T=>{var A;switch(T.type){case"ACTION":if(typeof T.payload!="string"){console.error("[zustand devtools middleware] Unsupported action format");return}return qp(T.payload,L=>{if(L.type==="__setState"){if(k===void 0){S(L.state);return}Object.keys(L.state).length!==1&&console.error(` [zustand devtools middleware] Unsupported __setState action format. When using 'store' option in devtools(), the 'state' should have only one key, which is a value of 'store' that was passed in devtools(), and value of this only key should be a state object. Example: { "type": "__setState", "state": { "abc123Store": { "foo": "bar" } } } - `);const H=L.state[k];if(H==null)return;JSON.stringify(_.getState())!==JSON.stringify(H)&&S(H);return}_.dispatchFromDevtools&&typeof _.dispatch=="function"&&_.dispatch(L)});case"DISPATCH":switch(T.payload.type){case"RESET":return S(E),k===void 0?v==null?void 0:v.init(_.getState()):v==null?void 0:v.init(sg(f.name));case"COMMIT":if(k===void 0){v==null||v.init(_.getState());return}return v==null?void 0:v.init(sg(f.name));case"ROLLBACK":return qp(T.state,L=>{if(k===void 0){S(L),v==null||v.init(_.getState());return}S(L[k]),v==null||v.init(sg(f.name))});case"JUMP_TO_STATE":case"JUMP_TO_ACTION":return qp(T.state,L=>{if(k===void 0){S(L);return}JSON.stringify(_.getState())!==JSON.stringify(L[k])&&S(L[k])});case"IMPORT_STATE":{const{nextLiftedState:L}=T.payload,H=(A=L.computedStates.slice(-1)[0])==null?void 0:A.state;if(!H)return;S(k===void 0?H:H[k]),v==null||v.send(null,L);return}case"PAUSE_RECORDING":return z=!z}return}}),E},qp=(e,a)=>{let n;try{n=JSON.parse(e)}catch(o){console.error("[zustand devtools middleware] Could not parse the received json",o)}n!==void 0&&a(n)},UR=e=>(a,n,o)=>{const _=o.subscribe;return o.subscribe=(h,k,f)=>{let b=h;if(k){const v=(f==null?void 0:f.equalityFn)||Object.is;let w=h(o.getState());b=z=>{const S=h(z);if(!v(w,S)){const E=w;k(w=S,E)}},f!=null&&f.fireImmediately&&k(w,w)}return _(b)},e(a,n,o)},$R=null,HR=(e,a)=>(...n)=>Object.assign({},e,a(...n));function eD(e){let a;try{a=e()}catch(o){return}return{getItem:o=>{var _;const l=k=>k===null?null:JSON.parse(k),h=(_=a.getItem(o))!=null?_:null;return h instanceof Promise?h.then(l):l(h)},setItem:(o,_)=>a.setItem(o,JSON.stringify(_)),removeItem:o=>a.removeItem(o)}}const Gm=e=>a=>{try{const n=e(a);return n instanceof Promise?n:{then(o){return Gm(o)(n)},catch(o){return this}}}catch(n){return{then(o){return this},catch(o){return Gm(o)(n)}}}},aD=(e,a)=>(n,o,_)=>{let l=bn({getStorage:()=>localStorage,serialize:JSON.stringify,deserialize:JSON.parse,partialize:P=>P,version:0,merge:(P,T)=>bn(bn({},T),P)},a),h=!1;const k=new Set,f=new Set;let b;try{b=l.getStorage()}catch(P){}if(!b)return e((...P)=>{console.warn(`[zustand persist middleware] Unable to update item '${l.name}', the given storage is currently unavailable.`),n(...P)},o,_);const v=Gm(l.serialize),w=()=>{const P=l.partialize(bn({},o()));let T;const A=v({state:P,version:l.version}).then(L=>b.setItem(l.name,L)).catch(L=>{T=L});if(T)throw T;return A},z=_.setState;_.setState=(P,T)=>{z(P,T),w()};const S=e((...P)=>{n(...P),w()},o,_);let E;const O=()=>{var P;if(!b)return;h=!1,k.forEach(A=>A(o()));const T=((P=l.onRehydrateStorage)==null?void 0:P.call(l,o()))||void 0;return Gm(b.getItem.bind(b))(l.name).then(A=>{if(A)return l.deserialize(A)}).then(A=>{if(A)if(typeof A.version=="number"&&A.version!==l.version){if(l.migrate)return l.migrate(A.state,A.version);console.error("State loaded from storage couldn't be migrated since no migrate function was provided")}else return A.state}).then(A=>{var L;return E=l.merge(A,(L=o())!=null?L:S),n(E,!0),w()}).then(()=>{T==null||T(E,void 0),h=!0,f.forEach(A=>A(E))}).catch(A=>{T==null||T(void 0,A)})};return _.persist={setOptions:P=>{l=bn(bn({},l),P),P.getStorage&&(b=P.getStorage())},clearStorage:()=>{b==null||b.removeItem(l.name)},getOptions:()=>l,rehydrate:()=>O(),hasHydrated:()=>h,onHydrate:P=>(k.add(P),()=>{k.delete(P)}),onFinishHydration:P=>(f.add(P),()=>{f.delete(P)})},O(),E||S},iD=(e,a)=>(n,o,_)=>{let l=bn({storage:eD(()=>localStorage),partialize:O=>O,version:0,merge:(O,P)=>bn(bn({},P),O)},a),h=!1;const k=new Set,f=new Set;let b=l.storage;if(!b)return e((...O)=>{console.warn(`[zustand persist middleware] Unable to update item '${l.name}', the given storage is currently unavailable.`),n(...O)},o,_);const v=()=>{const O=l.partialize(bn({},o()));return b.setItem(l.name,{state:O,version:l.version})},w=_.setState;_.setState=(O,P)=>{w(O,P),v()};const z=e((...O)=>{n(...O),v()},o,_);let S;const E=()=>{var O,P;if(!b)return;h=!1,k.forEach(A=>{var L;return A((L=o())!=null?L:z)});const T=((P=l.onRehydrateStorage)==null?void 0:P.call(l,(O=o())!=null?O:z))||void 0;return Gm(b.getItem.bind(b))(l.name).then(A=>{if(A)if(typeof A.version=="number"&&A.version!==l.version){if(l.migrate)return l.migrate(A.state,A.version);console.error("State loaded from storage couldn't be migrated since no migrate function was provided")}else return A.state}).then(A=>{var L;return S=l.merge(A,(L=o())!=null?L:z),n(S,!0),v()}).then(()=>{T==null||T(S,void 0),S=o(),h=!0,f.forEach(A=>A(S))}).catch(A=>{T==null||T(void 0,A)})};return _.persist={setOptions:O=>{l=bn(bn({},l),O),O.storage&&(b=O.storage)},clearStorage:()=>{b==null||b.removeItem(l.name)},getOptions:()=>l,rehydrate:()=>E(),hasHydrated:()=>h,onHydrate:O=>(k.add(O),()=>{k.delete(O)}),onFinishHydration:O=>(f.add(O),()=>{f.delete(O)})},l.skipHydration||E(),S||z},WR=(e,a)=>"getStorage"in a||"serialize"in a||"deserialize"in a?(console.warn("[DEPRECATED] `getStorage`, `serialize` and `deserialize` options are deprecated. Use `storage` option instead."),aD(e,a)):iD(e,a),VR=null;var nD=Jw()(ZI(function(e,a){return{currentTab:"tab_txt2img",setCurrentTab:function(){var o=get_uiCurrentTabContent().id;o!==a().currentTab&&e({currentTab:o},!1,"setCurrentTab")}}}));function oD(e,a,n){var o=n||{},_=o.noTrailing,l=_===void 0?!1:_,h=o.noLeading,k=h===void 0?!1:h,f=o.debounceMode,b=f===void 0?void 0:f,v,w=!1,z=0;function S(){v&&clearTimeout(v)}function E(P){var T=P||{},A=T.upcomingOnly,L=A===void 0?!1:A;S(),w=!L}function O(){for(var P=arguments.length,T=new Array(P),A=0;Ae?k?(z=Date.now(),l||(v=setTimeout(b?ae:K,e))):K():l!==!0&&(v=setTimeout(b?ae:K,b===void 0?e-H:e))}return O.cancel=E,O}function rD(e,a,n){var o=n||{},_=o.atBegin,l=_===void 0?!1:_;return oD(e,a,{debounceMode:l!==!1})}const tD=new ui("antSpinMove",{to:{opacity:1}}),_D=new ui("antRotate",{to:{transform:"rotate(405deg)"}}),sD=e=>({[`${e.componentCls}`]:Object.assign(Object.assign({},it(e)),{position:"absolute",display:"none",color:e.colorPrimary,textAlign:"center",verticalAlign:"middle",opacity:0,transition:`transform ${e.motionDurationSlow} ${e.motionEaseInOutCirc}`,"&-spinning":{position:"static",display:"inline-block",opacity:1},"&-nested-loading":{position:"relative",[`> div > ${e.componentCls}`]:{position:"absolute",top:0,insetInlineStart:0,zIndex:4,display:"block",width:"100%",height:"100%",maxHeight:e.contentHeight,[`${e.componentCls}-dot`]:{position:"absolute",top:"50%",insetInlineStart:"50%",margin:-e.spinDotSize/2},[`${e.componentCls}-text`]:{position:"absolute",top:"50%",width:"100%",paddingTop:(e.spinDotSize-e.fontSize)/2+2,textShadow:`0 1px 2px ${e.colorBgContainer}`},[`&${e.componentCls}-show-text ${e.componentCls}-dot`]:{marginTop:-(e.spinDotSize/2)-10},"&-sm":{[`${e.componentCls}-dot`]:{margin:-e.spinDotSizeSM/2},[`${e.componentCls}-text`]:{paddingTop:(e.spinDotSizeSM-e.fontSize)/2+2},[`&${e.componentCls}-show-text ${e.componentCls}-dot`]:{marginTop:-(e.spinDotSizeSM/2)-10}},"&-lg":{[`${e.componentCls}-dot`]:{margin:-(e.spinDotSizeLG/2)},[`${e.componentCls}-text`]:{paddingTop:(e.spinDotSizeLG-e.fontSize)/2+2},[`&${e.componentCls}-show-text ${e.componentCls}-dot`]:{marginTop:-(e.spinDotSizeLG/2)-10}}},[`${e.componentCls}-container`]:{position:"relative",transition:`opacity ${e.motionDurationSlow}`,"&::after":{position:"absolute",top:0,insetInlineEnd:0,bottom:0,insetInlineStart:0,zIndex:10,width:"100%",height:"100%",background:e.colorBgContainer,opacity:0,transition:`all ${e.motionDurationSlow}`,content:'""',pointerEvents:"none"}},[`${e.componentCls}-blur`]:{clear:"both",opacity:.5,userSelect:"none",pointerEvents:"none",["&::after"]:{opacity:.4,pointerEvents:"auto"}}},["&-tip"]:{color:e.spinDotDefault},[`${e.componentCls}-dot`]:{position:"relative",display:"inline-block",fontSize:e.spinDotSize,width:"1em",height:"1em","&-item":{position:"absolute",display:"block",width:(e.spinDotSize-e.marginXXS/2)/2,height:(e.spinDotSize-e.marginXXS/2)/2,backgroundColor:e.colorPrimary,borderRadius:"100%",transform:"scale(0.75)",transformOrigin:"50% 50%",opacity:.3,animationName:tD,animationDuration:"1s",animationIterationCount:"infinite",animationTimingFunction:"linear",animationDirection:"alternate","&:nth-child(1)":{top:0,insetInlineStart:0},"&: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:_D,animationDuration:"1.2s",animationIterationCount:"infinite",animationTimingFunction:"linear"}},[`&-sm ${e.componentCls}-dot`]:{fontSize:e.spinDotSizeSM,i:{width:(e.spinDotSizeSM-e.marginXXS/2)/2,height:(e.spinDotSizeSM-e.marginXXS/2)/2}},[`&-lg ${e.componentCls}-dot`]:{fontSize:e.spinDotSizeLG,i:{width:(e.spinDotSizeLG-e.marginXXS)/2,height:(e.spinDotSizeLG-e.marginXXS)/2}},[`&${e.componentCls}-show-text ${e.componentCls}-text`]:{display:"block"}})});var uD=dr("Spin",e=>{const a=Po(e,{spinDotDefault:e.colorTextDescription,spinDotSize:e.controlHeightLG/2,spinDotSizeSM:e.controlHeightLG*.35,spinDotSizeLG:e.controlHeight});return[sD(a)]},{contentHeight:400}),lD=function(e,a){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&a.indexOf(o)<0&&(n[o]=e[o]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var _=0,o=Object.getOwnPropertySymbols(e);_{const{spinPrefixCls:a,spinning:n=!0,delay:o=0,className:_,rootClassName:l,size:h="default",tip:k,wrapperClassName:f,style:b,children:v,hashId:w}=e,z=lD(e,["spinPrefixCls","spinning","delay","className","rootClassName","size","tip","wrapperClassName","style","children","hashId"]),[S,E]=g.useState(()=>n&&!mD(n,o));g.useEffect(()=>{if(n){const K=rD(o,()=>{E(!0)});return K(),()=>{var ae;(ae=K==null?void 0:K.cancel)===null||ae===void 0||ae.call(K)}}E(!1)},[o,n]);const O=g.useMemo(()=>typeof v!="undefined",[v]),{direction:P}=g.useContext(Ha),T=ka()(a,{[`${a}-sm`]:h==="small",[`${a}-lg`]:h==="large",[`${a}-spinning`]:S,[`${a}-show-text`]:!!k,[`${a}-rtl`]:P==="rtl"},_,l,w),A=ka()(`${a}-container`,{[`${a}-blur`]:S}),L=Ok(z,["indicator","prefixCls"]),H=g.createElement("div",Object.assign({},L,{style:b,className:T,"aria-live":"polite","aria-busy":S}),cD(a,e),k?g.createElement("div",{className:`${a}-text`},k):null);return O?g.createElement("div",Object.assign({},L,{className:ka()(`${a}-nested-loading`,f,w)}),S&&g.createElement("div",{key:"loading"},H),g.createElement("div",{className:A,key:"container"},v)):H},Zw=e=>{const{prefixCls:a}=e,{getPrefixCls:n}=g.useContext(Ha),o=n("spin",a),[_,l]=uD(o),h=Object.assign(Object.assign({},e),{spinPrefixCls:o,hashId:l});return _(g.createElement(hD,Object.assign({},h)))};Zw.setDefaultIndicator=e=>{ug=e};var lg=Zw;function e0(e,a){if(Object.is(e,a))return!0;if(typeof e!="object"||e===null||typeof a!="object"||a===null)return!1;if(e instanceof Map&&a instanceof Map){if(e.size!==a.size)return!1;for(const[o,_]of e)if(!Object.is(_,a.get(o)))return!1;return!0}if(e instanceof Set&&a instanceof Set){if(e.size!==a.size)return!1;for(const o of e)if(!a.has(o))return!1;return!0}const n=Object.keys(e);if(n.length!==Object.keys(a).length)return!1;for(let o=0;o(console.warn("[DEPRECATED] Default export is deprecated. Instead use `import { shallow } from 'zustand/shallow'`."),e0(e,a)),a0,i0,n0,dD=An.div(a0||(a0=ki()([` + `);const H=L.state[k];if(H==null)return;JSON.stringify(_.getState())!==JSON.stringify(H)&&S(H);return}_.dispatchFromDevtools&&typeof _.dispatch=="function"&&_.dispatch(L)});case"DISPATCH":switch(T.payload.type){case"RESET":return S(E),k===void 0?v==null?void 0:v.init(_.getState()):v==null?void 0:v.init(sg(f.name));case"COMMIT":if(k===void 0){v==null||v.init(_.getState());return}return v==null?void 0:v.init(sg(f.name));case"ROLLBACK":return qp(T.state,L=>{if(k===void 0){S(L),v==null||v.init(_.getState());return}S(L[k]),v==null||v.init(sg(f.name))});case"JUMP_TO_STATE":case"JUMP_TO_ACTION":return qp(T.state,L=>{if(k===void 0){S(L);return}JSON.stringify(_.getState())!==JSON.stringify(L[k])&&S(L[k])});case"IMPORT_STATE":{const{nextLiftedState:L}=T.payload,H=(A=L.computedStates.slice(-1)[0])==null?void 0:A.state;if(!H)return;S(k===void 0?H:H[k]),v==null||v.send(null,L);return}case"PAUSE_RECORDING":return z=!z}return}}),E},qp=(e,a)=>{let n;try{n=JSON.parse(e)}catch(o){console.error("[zustand devtools middleware] Could not parse the received json",o)}n!==void 0&&a(n)},UR=e=>(a,n,o)=>{const _=o.subscribe;return o.subscribe=(h,k,f)=>{let b=h;if(k){const v=(f==null?void 0:f.equalityFn)||Object.is;let w=h(o.getState());b=z=>{const S=h(z);if(!v(w,S)){const E=w;k(w=S,E)}},f!=null&&f.fireImmediately&&k(w,w)}return _(b)},e(a,n,o)},$R=null,HR=(e,a)=>(...n)=>Object.assign({},e,a(...n));function eD(e){let a;try{a=e()}catch(o){return}return{getItem:o=>{var _;const l=k=>k===null?null:JSON.parse(k),h=(_=a.getItem(o))!=null?_:null;return h instanceof Promise?h.then(l):l(h)},setItem:(o,_)=>a.setItem(o,JSON.stringify(_)),removeItem:o=>a.removeItem(o)}}const Gm=e=>a=>{try{const n=e(a);return n instanceof Promise?n:{then(o){return Gm(o)(n)},catch(o){return this}}}catch(n){return{then(o){return this},catch(o){return Gm(o)(n)}}}},aD=(e,a)=>(n,o,_)=>{let l=bn({getStorage:()=>localStorage,serialize:JSON.stringify,deserialize:JSON.parse,partialize:P=>P,version:0,merge:(P,T)=>bn(bn({},T),P)},a),h=!1;const k=new Set,f=new Set;let b;try{b=l.getStorage()}catch(P){}if(!b)return e((...P)=>{console.warn(`[zustand persist middleware] Unable to update item '${l.name}', the given storage is currently unavailable.`),n(...P)},o,_);const v=Gm(l.serialize),w=()=>{const P=l.partialize(bn({},o()));let T;const A=v({state:P,version:l.version}).then(L=>b.setItem(l.name,L)).catch(L=>{T=L});if(T)throw T;return A},z=_.setState;_.setState=(P,T)=>{z(P,T),w()};const S=e((...P)=>{n(...P),w()},o,_);let E;const O=()=>{var P;if(!b)return;h=!1,k.forEach(A=>A(o()));const T=((P=l.onRehydrateStorage)==null?void 0:P.call(l,o()))||void 0;return Gm(b.getItem.bind(b))(l.name).then(A=>{if(A)return l.deserialize(A)}).then(A=>{if(A)if(typeof A.version=="number"&&A.version!==l.version){if(l.migrate)return l.migrate(A.state,A.version);console.error("State loaded from storage couldn't be migrated since no migrate function was provided")}else return A.state}).then(A=>{var L;return E=l.merge(A,(L=o())!=null?L:S),n(E,!0),w()}).then(()=>{T==null||T(E,void 0),h=!0,f.forEach(A=>A(E))}).catch(A=>{T==null||T(void 0,A)})};return _.persist={setOptions:P=>{l=bn(bn({},l),P),P.getStorage&&(b=P.getStorage())},clearStorage:()=>{b==null||b.removeItem(l.name)},getOptions:()=>l,rehydrate:()=>O(),hasHydrated:()=>h,onHydrate:P=>(k.add(P),()=>{k.delete(P)}),onFinishHydration:P=>(f.add(P),()=>{f.delete(P)})},O(),E||S},iD=(e,a)=>(n,o,_)=>{let l=bn({storage:eD(()=>localStorage),partialize:O=>O,version:0,merge:(O,P)=>bn(bn({},P),O)},a),h=!1;const k=new Set,f=new Set;let b=l.storage;if(!b)return e((...O)=>{console.warn(`[zustand persist middleware] Unable to update item '${l.name}', the given storage is currently unavailable.`),n(...O)},o,_);const v=()=>{const O=l.partialize(bn({},o()));return b.setItem(l.name,{state:O,version:l.version})},w=_.setState;_.setState=(O,P)=>{w(O,P),v()};const z=e((...O)=>{n(...O),v()},o,_);let S;const E=()=>{var O,P;if(!b)return;h=!1,k.forEach(A=>{var L;return A((L=o())!=null?L:z)});const T=((P=l.onRehydrateStorage)==null?void 0:P.call(l,(O=o())!=null?O:z))||void 0;return Gm(b.getItem.bind(b))(l.name).then(A=>{if(A)if(typeof A.version=="number"&&A.version!==l.version){if(l.migrate)return l.migrate(A.state,A.version);console.error("State loaded from storage couldn't be migrated since no migrate function was provided")}else return A.state}).then(A=>{var L;return S=l.merge(A,(L=o())!=null?L:z),n(S,!0),v()}).then(()=>{T==null||T(S,void 0),S=o(),h=!0,f.forEach(A=>A(S))}).catch(A=>{T==null||T(void 0,A)})};return _.persist={setOptions:O=>{l=bn(bn({},l),O),O.storage&&(b=O.storage)},clearStorage:()=>{b==null||b.removeItem(l.name)},getOptions:()=>l,rehydrate:()=>E(),hasHydrated:()=>h,onHydrate:O=>(k.add(O),()=>{k.delete(O)}),onFinishHydration:O=>(f.add(O),()=>{f.delete(O)})},l.skipHydration||E(),S||z},WR=(e,a)=>"getStorage"in a||"serialize"in a||"deserialize"in a?(console.warn("[DEPRECATED] `getStorage`, `serialize` and `deserialize` options are deprecated. Use `storage` option instead."),aD(e,a)):iD(e,a),BR=null;var nD=Jw()(ZI(function(e,a){return{currentTab:"tab_txt2img",setCurrentTab:function(){var o=get_uiCurrentTabContent().id;o!==a().currentTab&&e({currentTab:o},!1,"setCurrentTab")}}}));function oD(e,a,n){var o=n||{},_=o.noTrailing,l=_===void 0?!1:_,h=o.noLeading,k=h===void 0?!1:h,f=o.debounceMode,b=f===void 0?void 0:f,v,w=!1,z=0;function S(){v&&clearTimeout(v)}function E(P){var T=P||{},A=T.upcomingOnly,L=A===void 0?!1:A;S(),w=!L}function O(){for(var P=arguments.length,T=new Array(P),A=0;Ae?k?(z=Date.now(),l||(v=setTimeout(b?ae:K,e))):K():l!==!0&&(v=setTimeout(b?ae:K,b===void 0?e-H:e))}return O.cancel=E,O}function rD(e,a,n){var o=n||{},_=o.atBegin,l=_===void 0?!1:_;return oD(e,a,{debounceMode:l!==!1})}const tD=new ui("antSpinMove",{to:{opacity:1}}),_D=new ui("antRotate",{to:{transform:"rotate(405deg)"}}),sD=e=>({[`${e.componentCls}`]:Object.assign(Object.assign({},it(e)),{position:"absolute",display:"none",color:e.colorPrimary,textAlign:"center",verticalAlign:"middle",opacity:0,transition:`transform ${e.motionDurationSlow} ${e.motionEaseInOutCirc}`,"&-spinning":{position:"static",display:"inline-block",opacity:1},"&-nested-loading":{position:"relative",[`> div > ${e.componentCls}`]:{position:"absolute",top:0,insetInlineStart:0,zIndex:4,display:"block",width:"100%",height:"100%",maxHeight:e.contentHeight,[`${e.componentCls}-dot`]:{position:"absolute",top:"50%",insetInlineStart:"50%",margin:-e.spinDotSize/2},[`${e.componentCls}-text`]:{position:"absolute",top:"50%",width:"100%",paddingTop:(e.spinDotSize-e.fontSize)/2+2,textShadow:`0 1px 2px ${e.colorBgContainer}`},[`&${e.componentCls}-show-text ${e.componentCls}-dot`]:{marginTop:-(e.spinDotSize/2)-10},"&-sm":{[`${e.componentCls}-dot`]:{margin:-e.spinDotSizeSM/2},[`${e.componentCls}-text`]:{paddingTop:(e.spinDotSizeSM-e.fontSize)/2+2},[`&${e.componentCls}-show-text ${e.componentCls}-dot`]:{marginTop:-(e.spinDotSizeSM/2)-10}},"&-lg":{[`${e.componentCls}-dot`]:{margin:-(e.spinDotSizeLG/2)},[`${e.componentCls}-text`]:{paddingTop:(e.spinDotSizeLG-e.fontSize)/2+2},[`&${e.componentCls}-show-text ${e.componentCls}-dot`]:{marginTop:-(e.spinDotSizeLG/2)-10}}},[`${e.componentCls}-container`]:{position:"relative",transition:`opacity ${e.motionDurationSlow}`,"&::after":{position:"absolute",top:0,insetInlineEnd:0,bottom:0,insetInlineStart:0,zIndex:10,width:"100%",height:"100%",background:e.colorBgContainer,opacity:0,transition:`all ${e.motionDurationSlow}`,content:'""',pointerEvents:"none"}},[`${e.componentCls}-blur`]:{clear:"both",opacity:.5,userSelect:"none",pointerEvents:"none",["&::after"]:{opacity:.4,pointerEvents:"auto"}}},["&-tip"]:{color:e.spinDotDefault},[`${e.componentCls}-dot`]:{position:"relative",display:"inline-block",fontSize:e.spinDotSize,width:"1em",height:"1em","&-item":{position:"absolute",display:"block",width:(e.spinDotSize-e.marginXXS/2)/2,height:(e.spinDotSize-e.marginXXS/2)/2,backgroundColor:e.colorPrimary,borderRadius:"100%",transform:"scale(0.75)",transformOrigin:"50% 50%",opacity:.3,animationName:tD,animationDuration:"1s",animationIterationCount:"infinite",animationTimingFunction:"linear",animationDirection:"alternate","&:nth-child(1)":{top:0,insetInlineStart:0},"&: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:_D,animationDuration:"1.2s",animationIterationCount:"infinite",animationTimingFunction:"linear"}},[`&-sm ${e.componentCls}-dot`]:{fontSize:e.spinDotSizeSM,i:{width:(e.spinDotSizeSM-e.marginXXS/2)/2,height:(e.spinDotSizeSM-e.marginXXS/2)/2}},[`&-lg ${e.componentCls}-dot`]:{fontSize:e.spinDotSizeLG,i:{width:(e.spinDotSizeLG-e.marginXXS)/2,height:(e.spinDotSizeLG-e.marginXXS)/2}},[`&${e.componentCls}-show-text ${e.componentCls}-text`]:{display:"block"}})});var uD=dr("Spin",e=>{const a=Po(e,{spinDotDefault:e.colorTextDescription,spinDotSize:e.controlHeightLG/2,spinDotSizeSM:e.controlHeightLG*.35,spinDotSizeLG:e.controlHeight});return[sD(a)]},{contentHeight:400}),lD=function(e,a){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&a.indexOf(o)<0&&(n[o]=e[o]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var _=0,o=Object.getOwnPropertySymbols(e);_{const{spinPrefixCls:a,spinning:n=!0,delay:o=0,className:_,rootClassName:l,size:h="default",tip:k,wrapperClassName:f,style:b,children:v,hashId:w}=e,z=lD(e,["spinPrefixCls","spinning","delay","className","rootClassName","size","tip","wrapperClassName","style","children","hashId"]),[S,E]=g.useState(()=>n&&!mD(n,o));g.useEffect(()=>{if(n){const K=rD(o,()=>{E(!0)});return K(),()=>{var ae;(ae=K==null?void 0:K.cancel)===null||ae===void 0||ae.call(K)}}E(!1)},[o,n]);const O=g.useMemo(()=>typeof v!="undefined",[v]),{direction:P}=g.useContext(Ha),T=ka()(a,{[`${a}-sm`]:h==="small",[`${a}-lg`]:h==="large",[`${a}-spinning`]:S,[`${a}-show-text`]:!!k,[`${a}-rtl`]:P==="rtl"},_,l,w),A=ka()(`${a}-container`,{[`${a}-blur`]:S}),L=Ok(z,["indicator","prefixCls"]),H=g.createElement("div",Object.assign({},L,{style:b,className:T,"aria-live":"polite","aria-busy":S}),cD(a,e),k?g.createElement("div",{className:`${a}-text`},k):null);return O?g.createElement("div",Object.assign({},L,{className:ka()(`${a}-nested-loading`,f,w)}),S&&g.createElement("div",{key:"loading"},H),g.createElement("div",{className:A,key:"container"},v)):H},Zw=e=>{const{prefixCls:a}=e,{getPrefixCls:n}=g.useContext(Ha),o=n("spin",a),[_,l]=uD(o),h=Object.assign(Object.assign({},e),{spinPrefixCls:o,hashId:l});return _(g.createElement(hD,Object.assign({},h)))};Zw.setDefaultIndicator=e=>{ug=e};var lg=Zw;function e0(e,a){if(Object.is(e,a))return!0;if(typeof e!="object"||e===null||typeof a!="object"||a===null)return!1;if(e instanceof Map&&a instanceof Map){if(e.size!==a.size)return!1;for(const[o,_]of e)if(!Object.is(_,a.get(o)))return!1;return!0}if(e instanceof Set&&a instanceof Set){if(e.size!==a.size)return!1;for(const o of e)if(!a.has(o))return!1;return!0}const n=Object.keys(e);if(n.length!==Object.keys(a).length)return!1;for(let o=0;o(console.warn("[DEPRECATED] Default export is deprecated. Instead use `import { shallow } from 'zustand/shallow'`."),e0(e,a)),a0,i0,n0,dD=An.div(a0||(a0=ki()([` display: flex; flex-direction: row !important; flex: 1; diff --git a/package.json b/package.json index 1c7c55c..e5db78a 100644 --- a/package.json +++ b/package.json @@ -24,14 +24,14 @@ "type-check": "tsc -p tsconfig-check.json" }, "lint-staged": { - "*.{less}": [ + "*.less": [ "stylelint --fix", "prettier --write" ], - "*.{json}": [ + "*.json": [ "prettier --write --no-error-on-unmatched-pattern" ], - "*.{jsx}": [ + "*.jsx": [ "eslint --fix", "prettier --write" ], @@ -54,8 +54,6 @@ "@umijs/lint": "^4.0.66", "antd": "^5.4.2", "antd-style": "^3.0.0", - "commitlint": "^17", - "commitlint-config-gitmoji": "^2", "concurrently": "^8.0.1", "eslint": "^8", "eslint-import-resolver-alias": "^1.1.2", diff --git a/src/theme/components/extra-network.less b/src/theme/components/extra-network.less index 361792e..3362b18 100644 --- a/src/theme/components/extra-network.less +++ b/src/theme/components/extra-network.less @@ -35,7 +35,7 @@ button#img2img_extra_networks { } } - .extra-network-subdirs.extra-network-subdirs-thumbs { + .extra-network-subdirs { display: flex; flex-wrap: wrap; gap: 4px; @@ -60,14 +60,17 @@ button#img2img_extra_networks { .additional { display: none; - } - - .additional > ul { - margin: 0; - padding: 0; - display: flex; - align-items: center; - justify-content: center; + > ul { + margin: 0; + padding: 0; + display: flex; + align-items: center; + justify-content: center; + a { + font-size: 15px !important; + margin: 0 !important; + } + } } } @@ -77,12 +80,20 @@ button#img2img_extra_networks { box-shadow: var(--box-shadow); outline: 1px solid rgb(0 0 0 / 50%); transition: all 0.2s ease-in-out; + overflow: hidden; + + .name { + font-size: 12px !important; + } &:hover { outline: 2px solid var(--color-primary); .additional { display: block; } + .name { + white-space: unset; + } } } @@ -97,3 +108,14 @@ button#img2img_extra_networks { } } } + +.extra-network-thumbs { + .name { + font-size: 12px !important; + background: transparent; + white-space: nowrap; + overflow: hidden; + display: block; + text-overflow: ellipsis; + } +} diff --git a/src/theme/tabs/tab-to-img.less b/src/theme/tabs/tab-to-img.less index 9ba5307..b5a4c81 100644 --- a/src/theme/tabs/tab-to-img.less +++ b/src/theme/tabs/tab-to-img.less @@ -24,11 +24,6 @@ > *:not([id$='_script_container'], #txt2img_seed_row, #mode_img2img) { align-items: center; } - - #img2img_override_settings_row, - #txt2img_override_settings_row { - display: none; - } } #txt2img_gallery { diff --git a/style.css b/style.css index 8966cf3..a3712cc 100644 --- a/style.css +++ b/style.css @@ -1 +1 @@ -/*! normalize.css v8.0.1 | MIT License | github.com/necolas/normalize.css */html{line-height:1.15;text-size-adjust:100%}body{margin:0}main{display:block}h1{font-size:2em;margin:.67em 0}hr{box-sizing:content-box;height:0;overflow:visible}pre{font-family:monospace,monospace;font-size:1em}a{background-color:transparent}abbr[title]{border-bottom:none;text-decoration:underline;text-decoration:underline dotted}b,strong{font-weight:bolder}code,kbd,samp{font-family:monospace,monospace;font-size:1em}small{font-size:80%}sub,sup{font-size:75%;line-height:0;position:relative;vertical-align:baseline}sub{bottom:-.25em}sup{top:-.5em}img{border-style:none}button,input,optgroup,select,textarea{font-family:inherit;font-size:100%;line-height:1.15;margin:0}button,input{overflow:visible}button,select{text-transform:none}button,[type=button],[type=reset],[type=submit]{-webkit-appearance:button;appearance:button}button::-moz-focus-inner,[type=button]::-moz-focus-inner,[type=reset]::-moz-focus-inner,[type=submit]::-moz-focus-inner{border-style:none;padding:0}button:-moz-focusring,[type=button]:-moz-focusring,[type=reset]:-moz-focusring,[type=submit]:-moz-focusring{outline:1px dotted ButtonText}fieldset{padding:.35em .75em .625em}legend{box-sizing:border-box;color:inherit;display:table;max-width:100%;padding:0;white-space:normal}progress{vertical-align:baseline}textarea{overflow:auto}[type=checkbox],[type=radio]{box-sizing:border-box;padding:0}[type=number]::-webkit-inner-spin-button,[type=number]::-webkit-outer-spin-button{height:auto}[type=search]{-webkit-appearance:textfield;appearance:textfield;outline-offset:-2px}[type=search]::-webkit-search-decoration{-webkit-appearance:none;appearance:none}::-webkit-file-upload-button{-webkit-appearance:button;appearance:button;font:inherit}details{display:block}summary{display:list-item}template{display:none}[hidden]{display:none}:root{--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;--color-primary: #1677ff;--color-success: #52c41a;--color-warning: #faad14;--color-error: #ff4d4f;--color-info: #1677ff;--color-text-base: #000;--color-bg-base: #fff;--font-family: "HarmonyOS Sans", -apple-system, blinkmacsystemfont, "Segoe UI", roboto, "Helvetica Neue", arial, "Noto Sans", sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";--font-family-code: "Hack Nerd Font Mono", hack, "SFMono-Regular", consolas, "Liberation Mono", menlo, courier, monospace;--font-size: 14px;--line-width: 1px;--line-type: solid;--motion-unit: .1;--motion-base: 0;--motion-ease-out-circ: cubic-bezier(.08, .82, .17, 1);--motion-ease-in-out-circ: cubic-bezier(.78, .14, .15, .86);--motion-ease-out: cubic-bezier(.215, .61, .355, 1);--motion-ease-in-out: cubic-bezier(.645, .045, .355, 1);--motion-ease-out-back: cubic-bezier(.12, .4, .29, 1.46);--motion-ease-in-back: cubic-bezier(.71, -.46, .88, .6);--motion-ease-in-quint: cubic-bezier(.755, .05, .855, .06);--motion-ease-out-quint: cubic-bezier(.23, 1, .32, 1);--border-radius: 6px;--size-unit: 4;--size-step: 4;--size-popup-arrow: 16px;--control-height: 32px;--z-index-base: 0;--z-index-popup-base: 1000;--opacity-image: 1;--blue-1: #e6f4ff;--blue1: #e6f4ff;--blue-2: #bae0ff;--blue2: #bae0ff;--blue-3: #91caff;--blue3: #91caff;--blue-4: #69b1ff;--blue4: #69b1ff;--blue-5: #4096ff;--blue5: #4096ff;--blue-6: #1677ff;--blue6: #1677ff;--blue-7: #0958d9;--blue7: #0958d9;--blue-8: #003eb3;--blue8: #003eb3;--blue-9: #002c8c;--blue9: #002c8c;--blue-10: #001d66;--blue10: #001d66;--purple-1: #f9f0ff;--purple1: #f9f0ff;--purple-2: #efdbff;--purple2: #efdbff;--purple-3: #d3adf7;--purple3: #d3adf7;--purple-4: #b37feb;--purple4: #b37feb;--purple-5: #9254de;--purple5: #9254de;--purple-6: #722ed1;--purple6: #722ed1;--purple-7: #531dab;--purple7: #531dab;--purple-8: #391085;--purple8: #391085;--purple-9: #22075e;--purple9: #22075e;--purple-10: #120338;--purple10: #120338;--cyan-1: #e6fffb;--cyan1: #e6fffb;--cyan-2: #b5f5ec;--cyan2: #b5f5ec;--cyan-3: #87e8de;--cyan3: #87e8de;--cyan-4: #5cdbd3;--cyan4: #5cdbd3;--cyan-5: #36cfc9;--cyan5: #36cfc9;--cyan-6: #13c2c2;--cyan6: #13c2c2;--cyan-7: #08979c;--cyan7: #08979c;--cyan-8: #006d75;--cyan8: #006d75;--cyan-9: #00474f;--cyan9: #00474f;--cyan-10: #002329;--cyan10: #002329;--green-1: #f6ffed;--green1: #f6ffed;--green-2: #d9f7be;--green2: #d9f7be;--green-3: #b7eb8f;--green3: #b7eb8f;--green-4: #95de64;--green4: #95de64;--green-5: #73d13d;--green5: #73d13d;--green-6: #52c41a;--green6: #52c41a;--green-7: #389e0d;--green7: #389e0d;--green-8: #237804;--green8: #237804;--green-9: #135200;--green9: #135200;--green-10: #092b00;--green10: #092b00;--magenta-1: #fff0f6;--magenta1: #fff0f6;--magenta-2: #ffd6e7;--magenta2: #ffd6e7;--magenta-3: #ffadd2;--magenta3: #ffadd2;--magenta-4: #ff85c0;--magenta4: #ff85c0;--magenta-5: #f759ab;--magenta5: #f759ab;--magenta-6: #eb2f96;--magenta6: #eb2f96;--magenta-7: #c41d7f;--magenta7: #c41d7f;--magenta-8: #9e1068;--magenta8: #9e1068;--magenta-9: #780650;--magenta9: #780650;--magenta-10: #520339;--magenta10: #520339;--pink-1: #fff0f6;--pink1: #fff0f6;--pink-2: #ffd6e7;--pink2: #ffd6e7;--pink-3: #ffadd2;--pink3: #ffadd2;--pink-4: #ff85c0;--pink4: #ff85c0;--pink-5: #f759ab;--pink5: #f759ab;--pink-6: #eb2f96;--pink6: #eb2f96;--pink-7: #c41d7f;--pink7: #c41d7f;--pink-8: #9e1068;--pink8: #9e1068;--pink-9: #780650;--pink9: #780650;--pink-10: #520339;--pink10: #520339;--red-1: #fff1f0;--red1: #fff1f0;--red-2: #ffccc7;--red2: #ffccc7;--red-3: #ffa39e;--red3: #ffa39e;--red-4: #ff7875;--red4: #ff7875;--red-5: #ff4d4f;--red5: #ff4d4f;--red-6: #f5222d;--red6: #f5222d;--red-7: #cf1322;--red7: #cf1322;--red-8: #a8071a;--red8: #a8071a;--red-9: #820014;--red9: #820014;--red-10: #5c0011;--red10: #5c0011;--orange-1: #fff7e6;--orange1: #fff7e6;--orange-2: #ffe7ba;--orange2: #ffe7ba;--orange-3: #ffd591;--orange3: #ffd591;--orange-4: #ffc069;--orange4: #ffc069;--orange-5: #ffa940;--orange5: #ffa940;--orange-6: #fa8c16;--orange6: #fa8c16;--orange-7: #d46b08;--orange7: #d46b08;--orange-8: #ad4e00;--orange8: #ad4e00;--orange-9: #873800;--orange9: #873800;--orange-10: #612500;--orange10: #612500;--yellow-1: #feffe6;--yellow1: #feffe6;--yellow-2: #ffffb8;--yellow2: #ffffb8;--yellow-3: #fffb8f;--yellow3: #fffb8f;--yellow-4: #fff566;--yellow4: #fff566;--yellow-5: #ffec3d;--yellow5: #ffec3d;--yellow-6: #fadb14;--yellow6: #fadb14;--yellow-7: #d4b106;--yellow7: #d4b106;--yellow-8: #ad8b00;--yellow8: #ad8b00;--yellow-9: #876800;--yellow9: #876800;--yellow-10: #614700;--yellow10: #614700;--volcano-1: #fff2e8;--volcano1: #fff2e8;--volcano-2: #ffd8bf;--volcano2: #ffd8bf;--volcano-3: #ffbb96;--volcano3: #ffbb96;--volcano-4: #ff9c6e;--volcano4: #ff9c6e;--volcano-5: #ff7a45;--volcano5: #ff7a45;--volcano-6: #fa541c;--volcano6: #fa541c;--volcano-7: #d4380d;--volcano7: #d4380d;--volcano-8: #ad2102;--volcano8: #ad2102;--volcano-9: #871400;--volcano9: #871400;--volcano-10: #610b00;--volcano10: #610b00;--geekblue-1: #f0f5ff;--geekblue1: #f0f5ff;--geekblue-2: #d6e4ff;--geekblue2: #d6e4ff;--geekblue-3: #adc6ff;--geekblue3: #adc6ff;--geekblue-4: #85a5ff;--geekblue4: #85a5ff;--geekblue-5: #597ef7;--geekblue5: #597ef7;--geekblue-6: #2f54eb;--geekblue6: #2f54eb;--geekblue-7: #1d39c4;--geekblue7: #1d39c4;--geekblue-8: #10239e;--geekblue8: #10239e;--geekblue-9: #061178;--geekblue9: #061178;--geekblue-10: #030852;--geekblue10: #030852;--gold-1: #fffbe6;--gold1: #fffbe6;--gold-2: #fff1b8;--gold2: #fff1b8;--gold-3: #ffe58f;--gold3: #ffe58f;--gold-4: #ffd666;--gold4: #ffd666;--gold-5: #ffc53d;--gold5: #ffc53d;--gold-6: #faad14;--gold6: #faad14;--gold-7: #d48806;--gold7: #d48806;--gold-8: #ad6800;--gold8: #ad6800;--gold-9: #874d00;--gold9: #874d00;--gold-10: #613400;--gold10: #613400;--lime-1: #fcffe6;--lime1: #fcffe6;--lime-2: #f4ffb8;--lime2: #f4ffb8;--lime-3: #eaff8f;--lime3: #eaff8f;--lime-4: #d3f261;--lime4: #d3f261;--lime-5: #bae637;--lime5: #bae637;--lime-6: #a0d911;--lime6: #a0d911;--lime-7: #7cb305;--lime7: #7cb305;--lime-8: #5b8c00;--lime8: #5b8c00;--lime-9: #3f6600;--lime9: #3f6600;--lime-10: #254000;--lime10: #254000;--color-text: rgba(0, 0, 0, .88);--color-text-secondary: rgba(0, 0, 0, .65);--color-text-tertiary: rgba(0, 0, 0, .45);--color-text-quaternary: rgba(0, 0, 0, .25);--color-fill: rgba(0, 0, 0, .15);--color-fill-secondary: rgba(0, 0, 0, .06);--color-fill-tertiary: rgba(0, 0, 0, .04);--color-fill-quaternary: rgba(0, 0, 0, .02);--color-bg-layout: #f5f5f5;--color-bg-container: #fff;--color-bg-elevated: #fff;--color-bg-spotlight: rgba(0, 0, 0, .85);--color-border: #d9d9d9;--color-border-secondary: #f0f0f0;--color-primary-bg: #e6f4ff;--color-primary-bg-hover: #bae0ff;--color-primary-border: #91caff;--color-primary-border-hover: #69b1ff;--color-primary-hover: #4096ff;--color-primary-active: #0958d9;--color-primary-text-hover: #4096ff;--color-primary-text: #1677ff;--color-primary-text-active: #0958d9;--color-success-bg: #f6ffed;--color-success-bg-hover: #d9f7be;--color-success-border: #b7eb8f;--color-success-border-hover: #95de64;--color-success-hover: #95de64;--color-success-active: #389e0d;--color-success-text-hover: #73d13d;--color-success-text: #52c41a;--color-success-text-active: #389e0d;--color-error-bg: #fff2f0;--color-error-bg-hover: #fff1f0;--color-error-border: #ffccc7;--color-error-border-hover: #ffa39e;--color-error-hover: #ff7875;--color-error-active: #d9363e;--color-error-text-hover: #ff7875;--color-error-text: #ff4d4f;--color-error-text-active: #d9363e;--color-warning-bg: #fffbe6;--color-warning-bg-hover: #fff1b8;--color-warning-border: #ffe58f;--color-warning-border-hover: #ffd666;--color-warning-hover: #ffd666;--color-warning-active: #d48806;--color-warning-text-hover: #ffc53d;--color-warning-text: #faad14;--color-warning-text-active: #d48806;--color-info-bg: #e6f4ff;--color-info-bg-hover: #bae0ff;--color-info-border: #91caff;--color-info-border-hover: #69b1ff;--color-info-hover: #69b1ff;--color-info-active: #0958d9;--color-info-text-hover: #4096ff;--color-info-text: #1677ff;--color-info-text-active: #0958d9;--color-bg-mask: rgba(0, 0, 0, .45);--color-white: #fff;--font-size-sm: 12px;--font-size-lg: 16px;--font-size-xl: 20px;--font-size-heading1: 38px;--font-size-heading2: 30px;--font-size-heading3: 24px;--font-size-heading4: 20px;--font-size-heading5: 16px;--line-height: 1.57142857;--line-height-lg: 1.5;--line-height-sm: 1.66666667;--line-height-heading1: 1.21052632;--line-height-heading2: 1.26666667;--line-height-heading3: 1.33333333;--line-height-heading4: 1.4;--line-height-heading5: 1.5;--size-xxl: 32px;--size-xl: 24px;--size-lg: 16px;--size-md: 10px;--size-ms: 8px;--size: 6px;--size-sm: 4px;--size-xs: 2px;--size-xxs: 1px;--control-height-sm: 24px;--control-height-xs: 16px;--control-height-lg: 40px;--motion-duration-fast: .1s;--motion-duration-mid: .2s;--motion-duration-slow: .3s;--line-width-bold: 2px;--border-radius-xs: 2px;--border-radius-sm: 4px;--border-radius-lg: 8px;--border-radius-outer: 4px}.dark{--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;--color-primary: #1668dc;--color-success: #49aa19;--color-warning: #d89614;--color-error: #dc4446;--color-info: #1668dc;--color-text-base: #fff;--color-bg-base: #1b1b1b;--blue-1: #111a2c;--blue1: #111a2c;--blue-2: #112545;--blue2: #112545;--blue-3: #15325b;--blue3: #15325b;--blue-4: #15417e;--blue4: #15417e;--blue-5: #1554ad;--blue5: #1554ad;--blue-6: #1668dc;--blue6: #1668dc;--blue-7: #3c89e8;--blue7: #3c89e8;--blue-8: #65a9f3;--blue8: #65a9f3;--blue-9: #8dc5f8;--blue9: #8dc5f8;--blue-10: #b7dcfa;--blue10: #b7dcfa;--purple-1: #1a1325;--purple1: #1a1325;--purple-2: #24163a;--purple2: #24163a;--purple-3: #301c4d;--purple3: #301c4d;--purple-4: #3e2069;--purple4: #3e2069;--purple-5: #51258f;--purple5: #51258f;--purple-6: #642ab5;--purple6: #642ab5;--purple-7: #854eca;--purple7: #854eca;--purple-8: #ab7ae0;--purple8: #ab7ae0;--purple-9: #cda8f0;--purple9: #cda8f0;--purple-10: #ebd7fa;--purple10: #ebd7fa;--cyan-1: #112123;--cyan1: #112123;--cyan-2: #113536;--cyan2: #113536;--cyan-3: #144848;--cyan3: #144848;--cyan-4: #146262;--cyan4: #146262;--cyan-5: #138585;--cyan5: #138585;--cyan-6: #13a8a8;--cyan6: #13a8a8;--cyan-7: #33bcb7;--cyan7: #33bcb7;--cyan-8: #58d1c9;--cyan8: #58d1c9;--cyan-9: #84e2d8;--cyan9: #84e2d8;--cyan-10: #b2f1e8;--cyan10: #b2f1e8;--green-1: #162312;--green1: #162312;--green-2: #1d3712;--green2: #1d3712;--green-3: #274916;--green3: #274916;--green-4: #306317;--green4: #306317;--green-5: #3c8618;--green5: #3c8618;--green-6: #49aa19;--green6: #49aa19;--green-7: #6abe39;--green7: #6abe39;--green-8: #8fd460;--green8: #8fd460;--green-9: #b2e58b;--green9: #b2e58b;--green-10: #d5f2bb;--green10: #d5f2bb;--magenta-1: #291321;--magenta1: #291321;--magenta-2: #40162f;--magenta2: #40162f;--magenta-3: #551c3b;--magenta3: #551c3b;--magenta-4: #75204f;--magenta4: #75204f;--magenta-5: #a02669;--magenta5: #a02669;--magenta-6: #cb2b83;--magenta6: #cb2b83;--magenta-7: #e0529c;--magenta7: #e0529c;--magenta-8: #f37fb7;--magenta8: #f37fb7;--magenta-9: #f8a8cc;--magenta9: #f8a8cc;--magenta-10: #fad2e3;--magenta10: #fad2e3;--pink-1: #291321;--pink1: #291321;--pink-2: #40162f;--pink2: #40162f;--pink-3: #551c3b;--pink3: #551c3b;--pink-4: #75204f;--pink4: #75204f;--pink-5: #a02669;--pink5: #a02669;--pink-6: #cb2b83;--pink6: #cb2b83;--pink-7: #e0529c;--pink7: #e0529c;--pink-8: #f37fb7;--pink8: #f37fb7;--pink-9: #f8a8cc;--pink9: #f8a8cc;--pink-10: #fad2e3;--pink10: #fad2e3;--red-1: #2a1215;--red1: #2a1215;--red-2: #431418;--red2: #431418;--red-3: #58181c;--red3: #58181c;--red-4: #791a1f;--red4: #791a1f;--red-5: #a61d24;--red5: #a61d24;--red-6: #d32029;--red6: #d32029;--red-7: #e84749;--red7: #e84749;--red-8: #f37370;--red8: #f37370;--red-9: #f89f9a;--red9: #f89f9a;--red-10: #fac8c3;--red10: #fac8c3;--orange-1: #2b1d11;--orange1: #2b1d11;--orange-2: #442a11;--orange2: #442a11;--orange-3: #593815;--orange3: #593815;--orange-4: #7c4a15;--orange4: #7c4a15;--orange-5: #aa6215;--orange5: #aa6215;--orange-6: #d87a16;--orange6: #d87a16;--orange-7: #e89a3c;--orange7: #e89a3c;--orange-8: #f3b765;--orange8: #f3b765;--orange-9: #f8cf8d;--orange9: #f8cf8d;--orange-10: #fae3b7;--orange10: #fae3b7;--yellow-1: #2b2611;--yellow1: #2b2611;--yellow-2: #443b11;--yellow2: #443b11;--yellow-3: #595014;--yellow3: #595014;--yellow-4: #7c6e14;--yellow4: #7c6e14;--yellow-5: #aa9514;--yellow5: #aa9514;--yellow-6: #d8bd14;--yellow6: #d8bd14;--yellow-7: #e8d639;--yellow7: #e8d639;--yellow-8: #f3ea62;--yellow8: #f3ea62;--yellow-9: #f8f48b;--yellow9: #f8f48b;--yellow-10: #fafab5;--yellow10: #fafab5;--volcano-1: #2b1611;--volcano1: #2b1611;--volcano-2: #441d12;--volcano2: #441d12;--volcano-3: #592716;--volcano3: #592716;--volcano-4: #7c3118;--volcano4: #7c3118;--volcano-5: #aa3e19;--volcano5: #aa3e19;--volcano-6: #d84a1b;--volcano6: #d84a1b;--volcano-7: #e87040;--volcano7: #e87040;--volcano-8: #f3956a;--volcano8: #f3956a;--volcano-9: #f8b692;--volcano9: #f8b692;--volcano-10: #fad4bc;--volcano10: #fad4bc;--geekblue-1: #131629;--geekblue1: #131629;--geekblue-2: #161d40;--geekblue2: #161d40;--geekblue-3: #1c2755;--geekblue3: #1c2755;--geekblue-4: #203175;--geekblue4: #203175;--geekblue-5: #263ea0;--geekblue5: #263ea0;--geekblue-6: #2b4acb;--geekblue6: #2b4acb;--geekblue-7: #5273e0;--geekblue7: #5273e0;--geekblue-8: #7f9ef3;--geekblue8: #7f9ef3;--geekblue-9: #a8c1f8;--geekblue9: #a8c1f8;--geekblue-10: #d2e0fa;--geekblue10: #d2e0fa;--gold-1: #2b2111;--gold1: #2b2111;--gold-2: #443111;--gold2: #443111;--gold-3: #594214;--gold3: #594214;--gold-4: #7c5914;--gold4: #7c5914;--gold-5: #aa7714;--gold5: #aa7714;--gold-6: #d89614;--gold6: #d89614;--gold-7: #e8b339;--gold7: #e8b339;--gold-8: #f3cc62;--gold8: #f3cc62;--gold-9: #f8df8b;--gold9: #f8df8b;--gold-10: #faedb5;--gold10: #faedb5;--lime-1: #1f2611;--lime1: #1f2611;--lime-2: #2e3c10;--lime2: #2e3c10;--lime-3: #3e4f13;--lime3: #3e4f13;--lime-4: #536d13;--lime4: #536d13;--lime-5: #6f9412;--lime5: #6f9412;--lime-6: #8bbb11;--lime6: #8bbb11;--lime-7: #a9d134;--lime7: #a9d134;--lime-8: #c9e75d;--lime8: #c9e75d;--lime-9: #e4f88b;--lime9: #e4f88b;--lime-10: #f0fab5;--lime10: #f0fab5;--color-text: rgba(255, 255, 255, .85);--color-text-secondary: rgba(255, 255, 255, .65);--color-text-tertiary: rgba(255, 255, 255, .45);--color-text-quaternary: rgba(255, 255, 255, .25);--color-fill: rgba(255, 255, 255, .18);--color-fill-secondary: rgba(255, 255, 255, .12);--color-fill-tertiary: rgba(255, 255, 255, .08);--color-fill-quaternary: rgba(255, 255, 255, .04);--color-bg-layout: #111;--color-bg-container: #1f1f1f;--color-bg-elevated: #222;--color-bg-spotlight: #424242;--color-border: #424242;--color-border-secondary: #303030;--color-primary-bg: #111a2c;--color-primary-bg-hover: #112545;--color-primary-border: #15325b;--color-primary-border-hover: #15417e;--color-primary-hover: #3c89e8;--color-primary-active: #1554ad;--color-primary-text-hover: #3c89e8;--color-primary-text: #1668dc;--color-primary-text-active: #1554ad;--color-success-bg: #162312;--color-success-bg-hover: #1d3712;--color-success-border: #274916;--color-success-border-hover: #306317;--color-success-hover: #306317;--color-success-active: #3c8618;--color-success-text-hover: #6abe39;--color-success-text: #49aa19;--color-success-text-active: #3c8618;--color-error-bg: #2c1618;--color-error-bg-hover: #451d1f;--color-error-border: #5b2526;--color-error-border-hover: #7e2e2f;--color-error-hover: #e86e6b;--color-error-active: #ad393a;--color-error-text-hover: #e86e6b;--color-error-text: #dc4446;--color-error-text-active: #ad393a;--color-warning-bg: #2b2111;--color-warning-bg-hover: #443111;--color-warning-border: #594214;--color-warning-border-hover: #7c5914;--color-warning-hover: #7c5914;--color-warning-active: #aa7714;--color-warning-text-hover: #e8b339;--color-warning-text: #d89614;--color-warning-text-active: #aa7714;--color-info-bg: #111a2c;--color-info-bg-hover: #112545;--color-info-border: #15325b;--color-info-border-hover: #15417e;--color-info-hover: #15417e;--color-info-active: #1554ad;--color-info-text-hover: #3c89e8;--color-info-text: #1668dc;--color-info-text-active: #1554ad;--color-bg-mask: rgba(0, 0, 0, .45);--color-white: #fff}:root{--color-header: rgba(255, 255, 255, .6);--color-body-background: radial-gradient(circle 600px at calc(100% - 300px) 300px, var(--blue-1), var(--color-bg-layout));--box-shadow: 0 6px 16px 0 rgba(0, 0, 0, .08), 0 3px 6px -4px rgb(0 0 0 / 12%), 0 9px 28px 8px rgb(0 0 0 / 5%);--box-shadow-secondary: 0 6px 16px 0 rgba(0, 0, 0, .08), 0 3px 6px -4px rgb(0 0 0 / 12%), 0 9px 28px 8px rgb(0 0 0 / 5%);--gallery-background: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACAAAAAgCAYAAABzenr0AAAABGdBTUEAALGPC/xhBQAAAFpJREFUWAntljEKADAIA23p6v//qQ+wfUEcCu1yriEgp0FHRJSJcnehmmWm1Dv/lO4HIg1AAAKjTqm03ea88zMCCEDgO4HV5bS757f+7wRoAAIQ4B9gByAAgQ3pfiDmXmAeEwAAAABJRU5ErkJggg==) 0% 0% / 20px}.dark{--color-header: rgba(46, 47, 48, .6);--color-body-background: radial-gradient(circle 600px at calc(100% - 300px) 300px, var(--blue-2), var(--color-bg-layout));--gallery-background: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACAAAAAgCAIAAAD8GO2jAAAABGdBTUEAALGPC/xhBQAAADhlWElmTU0AKgAAAAgAAYdpAAQAAAABAAAAGgAAAAAAAqACAAQAAAABAAAAIKADAAQAAAABAAAAIAAAAACPTkDJAAAAZUlEQVRIDe2VMQoAMAgDa9/g/1/oIzrpZBCh2dLFkkoDF0Fz99OdiOjks+2/7S8fRRmMMIVoRGSoYzvvqF8ZIMKlC1GhQBc6IkPzq32QmdAzkEGihpWOSPsAss8HegYySNSw0hE9WQ4StafZFqkAAAAASUVORK5CYII=) 0% 0% / 20px}:root{--neutral-50: var(--color-text);--neutral-100: var(--color-text);--neutral-200: var(--color-text-secondary);--neutral-300: var(--color-text-tertiary);--neutral-400: var(--color-text-quaternary);--neutral-500: var(--color-fill);--neutral-600: var(--color-fill-secondary);--neutral-700: var(--color-fill-tertiary);--neutral-800: var(--color-fill-quaternary);--neutral-900: var(--color-bg-elevated);--neutral-950: var(--color-bg-container);--primary-50: var(--blue-1);--primary-100: var(--blue-1);--primary-200: var(--blue-2);--primary-300: var(--blue-3);--primary-400: var(--blue-4);--primary-500: var(--blue-5);--primary-600: var(--blue-6);--primary-700: var(--blue-7);--primary-800: var(--blue-8);--primary-900: var(--blue-9);--primary-950: var(--blue-9);--secondary-50: var(--blue-1);--secondary-100: var(--blue-1);--secondary-200: var(--blue-2);--secondary-300: var(--blue-3);--secondary-400: var(--blue-4);--secondary-500: var(--blue-5);--secondary-600: var(--blue-6);--secondary-700: var(--blue-7);--secondary-800: var(--blue-8);--secondary-900: var(--blue-9);--secondary-950: var(--blue-9);--error-text-color: var(--color-error);--error-background-fill: var(--color-error-bg);--background-fill-primary: var(--neutral-950);--background-fill-secondary: var(--neutral-900);--stat-background-fill: var(--primary-500);--link-text-color-active: var(--secondary-500);--link-text-color: var(--secondary-500);--link-text-color-hover: var(--secondary-400);--link-text-color-visited: var(--secondary-600);--color-accent: var(--primary-500);--color-accent-soft: var(--neutral-700);--loader-color: var(--color-accent);--font: var(--font-family);--prose-header-text-weight: 600;--prose-text-weight: 400;--section-header-text-weight: 400;--text-lg: var(--font-size-lg);--text-md: var(--font-size);--text-sm: var(--font-size-sm);--text-xl: var(--font-size-xl);--text-xs: var(--font-size-sm);--text-xxl: var(--font-size-xl);--text-xxs: var(--font-size-sm);--prose-text-size: var(--text-md);--section-header-text-size: var(--text-md);--form-gap-width: 0;--spacing-xxl: var(--size-lg);--spacing-xl: var(--size-md);--spacing-lg: var(--size-ms);--spacing-md: var(--size);--spacing-sm: var(--size-sm);--spacing-xs: var(--size-xs);--spacing-xxs: var(--size-xxs);--layout-gap: var(--spacing-xxl);--error-border-width: 1px;--radius-lg: var(--border-radius-lg);--radius-md: var(--border-radius);--radius-sm: var(--border-radius-sm);--radius-xl: var(--border-radius-xs);--radius-xs: var(--border-radius-sm);--radius-xxl: var(--border-radius-lg);--radius-xxs: var(--border-radius-xs);--border-color-accent: var(--neutral-600);--border-color-primary: var(--neutral-700);--error-border-color: var(--border-color-primary);--container-radius: var(--radius-lg);--embed-radius: var(--radius-lg);--shadow-spread: 1px;--shadow-drop: var(--box-shadow);--shadow-drop-lg: var(--box-shadow-secondary);--shadow-inset: var(--box-shadow) inset;--body-text-weight: 400;--body-background-fill: var(--background-fill-primary);--body-text-color: var(--color-text);--body-text-color-subdued: var(--color-text-tertiary);--body-text-size: var(--font-size);--block-border-width: 1px;--block-info-text-weight: 400;--block-label-border-width: 1px;--block-label-margin: 0;--block-label-text-weight: 400;--block-shadow: none;--block-title-background-fill: none;--block-title-border-color: none;--block-title-border-width: 0;--block-title-padding: 0;--block-title-radius: none;--block-title-text-weight: 400;--block-background-fill: var(--neutral-800);--block-border-color: var(--border-color-primary);--block-info-text-color: var(--body-text-color-subdued);--block-label-background-fill: var(--background-fill-secondary);--block-label-border-color: var(--border-color-primary);--block-label-text-color: var(--neutral-200);--block-title-text-color: var(--neutral-200);--block-info-text-size: var(--text-sm);--block-label-padding: var(--spacing-sm) var(--spacing-lg);--block-label-radius: calc(var(--radius-lg) - 1px) 0 calc(var(--radius-lg) - 1px) 0;--block-label-right-radius: 0 calc(var(--radius-lg) - 1px) 0 calc(var(--radius-lg) - 1px);--block-label-text-size: var(--text-sm);--block-padding: var(--spacing-xl) calc(var(--spacing-xl) + 2px);--block-radius: var(--radius-lg);--block-title-text-size: var(--text-md);--panel-border-width: 0;--panel-background-fill: var(--color-fill-quaternary);--panel-border-color: var(--border-color-primary);--button-primary-text-color: white;--button-secondary-text-color: var(--color-text);--button-large-text-weight: 600;--button-shadow: none;--button-shadow-active: none;--button-shadow-hover: none;--button-small-text-weight: 400;--button-transition: background-color .2s ease;--button-border-width: 1px;--button-cancel-background-fill: var(--button-secondary-background-fill);--button-cancel-background-fill-hover: var(--button-cancel-background-fill);--button-cancel-border-color: var(--button-secondary-border-color);--button-cancel-border-color-hover: var(--button-cancel-border-color);--button-cancel-text-color: var(--button-secondary-text-color);--button-cancel-text-color-hover: var(--button-cancel-text-color);--button-primary-background-fill: var(--primary-600);--button-primary-background-fill-hover: var(--primary-700);--button-primary-border-color: var(--primary-600);--button-primary-border-color-hover: var(--primary-700);--button-primary-text-color-hover: var(--button-primary-text-color);--button-secondary-background-fill: var(--neutral-600);--button-secondary-background-fill-hover: var(--neutral-500);--button-secondary-border-color: var(--neutral-700);--button-secondary-border-color-hover: var(--neutral-600);--button-secondary-text-color-hover: var(--button-secondary-text-color);--button-large-padding: var(--spacing-lg) calc(2 * var(--spacing-lg));--button-large-radius: var(--radius-lg);--button-large-text-size: var(--text-lg);--button-small-padding: var(--spacing-sm) calc(2 * var(--spacing-sm));--button-small-radius: var(--radius-lg);--button-small-text-size: var(--text-md);--checkbox-check: url("data:image/svg+xml,%3csvg viewBox=%270 0 16 16%27 fill=%27white%27 xmlns=%27http://www.w3.org/2000/svg%27%3e%3cpath d=%27M12.207 4.793a1 1 0 010 1.414l-5 5a1 1 0 01-1.414 0l-2-2a1 1 0 011.414-1.414L6.5 9.086l4.293-4.293a1 1 0 011.414 0z%27/%3e%3c/svg%3e");--checkbox-label-shadow: none;--checkbox-label-text-weight: 400;--checkbox-background-color: var(--neutral-800);--checkbox-background-color-focus: var(--checkbox-background-color);--checkbox-background-color-hover: var(--checkbox-background-color);--checkbox-background-color-selected: var(--secondary-600);--checkbox-border-color: var(--neutral-700);--checkbox-border-color-focus: var(--secondary-500);--checkbox-border-color-hover: var(--neutral-600);--checkbox-border-color-selected: var(--secondary-600);--checkbox-border-width: var(--input-border-width);--checkbox-label-background-fill: var(--button-secondary-background-fill);--checkbox-label-background-fill-hover: var(--button-secondary-background-fill-hover);--checkbox-label-background-fill-selected: var(--checkbox-label-background-fill);--checkbox-label-border-color: var(--border-color-primary);--checkbox-label-border-color-hover: var(--checkbox-label-border-color);--checkbox-label-border-width: var(--input-border-width);--checkbox-label-text-color: var(--body-text-color);--checkbox-label-text-color-selected: var(--checkbox-label-text-color);--checkbox-border-radius: var(--radius-sm);--checkbox-label-gap: var(--spacing-sm);--checkbox-label-padding: var(--spacing-sm);--checkbox-label-text-size: var(--text-md);--checkbox-shadow: var(--input-shadow);--input-border-width: 1px;--input-shadow: none;--input-text-weight: 400;--input-background-fill: var(--neutral-700);--input-background-fill-focus: var(--secondary-600);--input-background-fill-hover: var(--input-background-fill);--input-border-color: var(--border-color-primary);--input-border-color-focus: var(--neutral-700);--input-border-color-hover: var(--input-border-color);--input-placeholder-color: var(--neutral-500);--input-padding: var(--spacing-sm);--input-radius: var(--radius-sm);--input-shadow-focus: var(--input-shadow);--input-text-size: var(--text-md);--table-border-color: var(--neutral-700);--table-even-background-fill: var(--neutral-950);--table-odd-background-fill: var(--neutral-900);--table-row-focus: var(--color-accent-soft);--table-radius: var(--radius-lg);--radio-circle: url("data:image/svg+xml,%3csvg viewBox=%270 0 16 16%27 fill=%27white%27 xmlns=%27http://www.w3.org/2000/svg%27%3e%3ccircle cx=%278%27 cy=%278%27 r=%273%27/%3e%3c/svg%3e")}.dark{--neutral-50: var(--color-text);--neutral-100: var(--color-text);--neutral-200: var(--color-text-secondary);--neutral-300: var(--color-text-tertiary);--neutral-400: var(--color-text-quaternary);--neutral-500: var(--color-fill);--neutral-600: var(--color-fill-secondary);--neutral-700: var(--color-fill-tertiary);--neutral-800: var(--color-fill-quaternary);--neutral-900: var(--color-bg-elevated);--neutral-950: var(--color-bg-container);--primary-50: var(--blue-1);--primary-100: var(--blue-1);--primary-200: var(--blue-2);--primary-300: var(--blue-3);--primary-400: var(--blue-4);--primary-500: var(--blue-5);--primary-600: var(--blue-6);--primary-700: var(--blue-7);--primary-800: var(--blue-8);--primary-900: var(--blue-9);--primary-950: var(--blue-9);--secondary-50: var(--blue-1);--secondary-100: var(--blue-1);--secondary-200: var(--blue-2);--secondary-300: var(--blue-3);--secondary-400: var(--blue-4);--secondary-500: var(--blue-5);--secondary-600: var(--blue-6);--secondary-700: var(--blue-7);--secondary-800: var(--blue-8);--secondary-900: var(--blue-9);--secondary-950: var(--blue-9);--error-text-color: var(--color-error);--error-background-fill: var(--color-error-bg);--background-fill-primary: var(--neutral-950);--background-fill-secondary: var(--neutral-900);--stat-background-fill: var(--primary-500);--link-text-color-active: var(--secondary-500);--link-text-color: var(--secondary-500);--link-text-color-hover: var(--secondary-400);--link-text-color-visited: var(--secondary-600);--color-accent: var(--primary-500);--color-accent-soft: var(--neutral-700);--loader-color: var(--color-accent);--font: var(--font-family);--prose-header-text-weight: 600;--prose-text-weight: 400;--section-header-text-weight: 400;--text-lg: var(--font-size-lg);--text-md: var(--font-size);--text-sm: var(--font-size-sm);--text-xl: var(--font-size-xl);--text-xs: var(--font-size-sm);--text-xxl: var(--font-size-xl);--text-xxs: var(--font-size-sm);--prose-text-size: var(--text-md);--section-header-text-size: var(--text-md);--form-gap-width: 0;--spacing-xxl: var(--size-lg);--spacing-xl: var(--size-md);--spacing-lg: var(--size-ms);--spacing-md: var(--size);--spacing-sm: var(--size-sm);--spacing-xs: var(--size-xs);--spacing-xxs: var(--size-xxs);--layout-gap: var(--spacing-xxl);--error-border-width: 1px;--radius-lg: var(--border-radius-lg);--radius-md: var(--border-radius);--radius-sm: var(--border-radius-sm);--radius-xl: var(--border-radius-xs);--radius-xs: var(--border-radius-sm);--radius-xxl: var(--border-radius-lg);--radius-xxs: var(--border-radius-xs);--border-color-accent: var(--neutral-600);--border-color-primary: var(--neutral-700);--error-border-color: var(--border-color-primary);--container-radius: var(--radius-lg);--embed-radius: var(--radius-lg);--shadow-spread: 1px;--shadow-drop: var(--box-shadow);--shadow-drop-lg: var(--box-shadow-secondary);--shadow-inset: var(--box-shadow) inset;--body-text-weight: 400;--body-background-fill: var(--background-fill-primary);--body-text-color: var(--color-text);--body-text-color-subdued: var(--color-text-tertiary);--body-text-size: var(--font-size);--block-border-width: 1px;--block-info-text-weight: 400;--block-label-border-width: 1px;--block-label-margin: 0;--block-label-text-weight: 400;--block-shadow: none;--block-title-background-fill: none;--block-title-border-color: none;--block-title-border-width: 0;--block-title-padding: 0;--block-title-radius: none;--block-title-text-weight: 400;--block-background-fill: var(--neutral-800);--block-border-color: var(--border-color-primary);--block-info-text-color: var(--body-text-color-subdued);--block-label-background-fill: var(--background-fill-secondary);--block-label-border-color: var(--border-color-primary);--block-label-text-color: var(--neutral-200);--block-title-text-color: var(--neutral-200);--block-info-text-size: var(--text-sm);--block-label-padding: var(--spacing-sm) var(--spacing-lg);--block-label-radius: calc(var(--radius-lg) - 1px) 0 calc(var(--radius-lg) - 1px) 0;--block-label-right-radius: 0 calc(var(--radius-lg) - 1px) 0 calc(var(--radius-lg) - 1px);--block-label-text-size: var(--text-sm);--block-padding: var(--spacing-xl) calc(var(--spacing-xl) + 2px);--block-radius: var(--radius-lg);--block-title-text-size: var(--text-md);--panel-border-width: 0;--panel-background-fill: var(--color-fill-quaternary);--panel-border-color: var(--border-color-primary);--button-primary-text-color: white;--button-secondary-text-color: var(--color-text);--button-large-text-weight: 600;--button-shadow: none;--button-shadow-active: none;--button-shadow-hover: none;--button-small-text-weight: 400;--button-transition: background-color .2s ease;--button-border-width: 1px;--button-cancel-background-fill: var(--button-secondary-background-fill);--button-cancel-background-fill-hover: var(--button-cancel-background-fill);--button-cancel-border-color: var(--button-secondary-border-color);--button-cancel-border-color-hover: var(--button-cancel-border-color);--button-cancel-text-color: var(--button-secondary-text-color);--button-cancel-text-color-hover: var(--button-cancel-text-color);--button-primary-background-fill: var(--primary-600);--button-primary-background-fill-hover: var(--primary-700);--button-primary-border-color: var(--primary-600);--button-primary-border-color-hover: var(--primary-700);--button-primary-text-color-hover: var(--button-primary-text-color);--button-secondary-background-fill: var(--neutral-600);--button-secondary-background-fill-hover: var(--neutral-500);--button-secondary-border-color: var(--neutral-700);--button-secondary-border-color-hover: var(--neutral-600);--button-secondary-text-color-hover: var(--button-secondary-text-color);--button-large-padding: var(--spacing-lg) calc(2 * var(--spacing-lg));--button-large-radius: var(--radius-lg);--button-large-text-size: var(--text-lg);--button-small-padding: var(--spacing-sm) calc(2 * var(--spacing-sm));--button-small-radius: var(--radius-lg);--button-small-text-size: var(--text-md);--checkbox-check: url("data:image/svg+xml,%3csvg viewBox=%270 0 16 16%27 fill=%27white%27 xmlns=%27http://www.w3.org/2000/svg%27%3e%3cpath d=%27M12.207 4.793a1 1 0 010 1.414l-5 5a1 1 0 01-1.414 0l-2-2a1 1 0 011.414-1.414L6.5 9.086l4.293-4.293a1 1 0 011.414 0z%27/%3e%3c/svg%3e");--checkbox-label-shadow: none;--checkbox-label-text-weight: 400;--checkbox-background-color: var(--neutral-800);--checkbox-background-color-focus: var(--checkbox-background-color);--checkbox-background-color-hover: var(--checkbox-background-color);--checkbox-background-color-selected: var(--secondary-600);--checkbox-border-color: var(--neutral-700);--checkbox-border-color-focus: var(--secondary-500);--checkbox-border-color-hover: var(--neutral-600);--checkbox-border-color-selected: var(--secondary-600);--checkbox-border-width: var(--input-border-width);--checkbox-label-background-fill: var(--button-secondary-background-fill);--checkbox-label-background-fill-hover: var(--button-secondary-background-fill-hover);--checkbox-label-background-fill-selected: var(--checkbox-label-background-fill);--checkbox-label-border-color: var(--border-color-primary);--checkbox-label-border-color-hover: var(--checkbox-label-border-color);--checkbox-label-border-width: var(--input-border-width);--checkbox-label-text-color: var(--body-text-color);--checkbox-label-text-color-selected: var(--checkbox-label-text-color);--checkbox-border-radius: var(--radius-sm);--checkbox-label-gap: var(--spacing-sm);--checkbox-label-padding: var(--spacing-sm);--checkbox-label-text-size: var(--text-md);--checkbox-shadow: var(--input-shadow);--input-border-width: 1px;--input-shadow: none;--input-text-weight: 400;--input-background-fill: var(--neutral-700);--input-background-fill-focus: var(--secondary-600);--input-background-fill-hover: var(--input-background-fill);--input-border-color: var(--border-color-primary);--input-border-color-focus: var(--neutral-700);--input-border-color-hover: var(--input-border-color);--input-placeholder-color: var(--neutral-500);--input-padding: var(--spacing-sm);--input-radius: var(--radius-sm);--input-shadow-focus: var(--input-shadow);--input-text-size: var(--text-md);--table-border-color: var(--neutral-700);--table-even-background-fill: var(--neutral-950);--table-odd-background-fill: var(--neutral-900);--table-row-focus: var(--color-accent-soft);--table-radius: var(--radius-lg);--radio-circle: url("data:image/svg+xml,%3csvg viewBox=%270 0 16 16%27 fill=%27white%27 xmlns=%27http://www.w3.org/2000/svg%27%3e%3ccircle cx=%278%27 cy=%278%27 r=%273%27/%3e%3c/svg%3e")}#content{min-height:-webkit-fill-available}.app.svelte-ac4rv4.svelte-ac4rv4{padding:0!important}.gradio-container{font-size:var(--font-size);color:var(--color-text);margin:0!important;background:transparent!important}.selected.svelte-1g805jl{background:var(--color-fill-quaternary)}.padded.svelte-mppz8v{padding:6px}.wrap.svelte-1p9xokt.svelte-1p9xokt.svelte-1p9xokt{gap:8px!important}.wrap.svelte-1p9xokt.svelte-1p9xokt.svelte-1p9xokt>label{flex:1 1!important;white-space:nowrap;border-radius:var(--border-radius)!important}.block.svelte-mppz8v{background:transparent}.block.gradio-accordion.svelte-mppz8v.padded{background-color:var(--color-fill-tertiary)!important;border-color:transparent!important;transition:all .3s ease-in-out!important;margin-bottom:var(--size-ms)!important;margin-top:0!important;padding:12px!important;border-radius:var(--border-radius)!important}div.svelte-1oo81b7>*:not(.absolute){border-radius:var(--border-radius)!important}.prose>p{border-radius:var(--container-radius);background:var(--panel-background-fill);padding:12px}#txtimg_hr_finalres{color:var(--color-primary)!important}#txtimg_hr_finalres span{border:var(--input-border-width) solid var(--color-primary-border);border-radius:var(--input-radius);background:var(--color-primary-bg);padding:4px 8px;margin:0 4px}::-webkit-scrollbar{width:0;height:0}::-webkit-scrollbar-track{border-radius:10px}::-webkit-scrollbar-thumb{background:var(--color-border-secondary);border-radius:10px}::-webkit-scrollbar-thumb:hover{background:var(--color-border)}ul.options{border:2px solid var(--color-border)!important;border-radius:var(--border-radius)!important;display:block!important;padding:0!important;margin:0!important;background:var(--color-bg-elevated)!important}ul.options li{display:block!important;margin:0!important}ul.options li.selected{background:var(--color-primary)!important;color:#fff!important}#lightboxModal{backdrop-filter:blur(24px)}#lightboxModal .modalControls{background:unset!important}input[type=range]{-webkit-appearance:none!important;appearance:none!important;background:transparent!important}input[type=range]:focus{outline:none!important}input[type=range]::-webkit-slider-runnable-track{cursor:pointer!important;height:6px!important;border-radius:3px!important;background:var(--color-fill)!important;opacity:.6!important}input[type=range]:hover::-webkit-slider-runnable-track{background:var(--color-primary)!important;opacity:1!important;-webkit-transition:all .2s ease-in-out;transition:all .2s ease-in-out}input[type=range]::-moz-range-track{cursor:pointer!important;height:6px!important;border-radius:3px!important;background:var(--color-primary)!important}input[type=range]:hover::-moz-range-track{background:var(--color-primary)!important;-moz-transition:all .2s ease-in-out;transition:all .2s ease-in-out}input[type=range]::-ms-fill-upper,input[type=range]::-ms-fill-lower{cursor:pointer!important;height:6px!important;border-radius:3px!important;background:var(--color-primary)!important}input[type=range]:hover::-ms-fill-upper,input[type=range]:hover::-ms-fill-lower{background:var(--color-bg-elevated)!important;-ms-transition:all .2s ease-in-out;transition:all .2s ease-in-out}input[type=range]::-webkit-slider-thumb{border:2px solid var(--color-text)!important;height:16px!important;width:16px!important;border-radius:16px!important;background:var(--color-bg-elevated)!important;cursor:pointer!important;-webkit-appearance:none!important;appearance:none!important;margin-top:-5px!important}input[type=range]:active::-webkit-slider-thumb{box-shadow:0 0 3px var(--color-primary)!important;border:2px solid var(--color-primary)!important;background:var(--color-bg-elevated)!important}input[type=range]::-moz-range-thumb{border:2px solid var(--color-text)!important;height:16px!important;width:16px!important;border-radius:16px!important;background:var(--color-bg-elevated)!important;cursor:pointer!important;margin-top:-5px!important;z-index:999}input[type=range]:active::-moz-range-thumb{box-shadow:0 0 3px var(--color-primary)!important;border:2px solid var(--color-primary)!important;background:var(--color-bg-elevated)!important}input[type=range]::-ms-thumb{border:2px solid var(--color-text)!important;height:16px!important;width:16px!important;border-radius:16px!important;background:var(--color-bg-elevated)!important;cursor:pointer!important;margin-top:-5px!important}input[type=range]:active::-ms-thumb{box-shadow:0 0 3px var(--color-primary)!important;border:2px solid var(--color-primary)!important;background:var(--color-bg-elevated)!important}.gradio-slider input[type=number]{padding:var(--spacing-sm)!important}.gradio-button{border-radius:var(--border-radius)!important;min-width:36px;min-height:36px;overflow:hidden;text-overflow:ellipsis}.gradio-button.tool{padding:0!important;max-width:36px!important;width:36px!important;min-width:36px!important;height:36px!important;min-height:36px!important;max-height:36px!important;font-size:14px!important;font-weight:400;display:flex;align-items:center;justify-content:center;align-self:end;line-height:1;border:var(--button-border-width) solid var(--button-secondary-border-color);background:var(--button-secondary-background-fill);color:var(--button-secondary-text-color)}.gradio-button.secondary-down,.gradio-button.secondary-down:hover{box-shadow:var(--box-shadow-secondary)!important}#txt2img_interrupt,#img2img_interrupt{border-radius:var(--border-radius) 0 0 var(--border-radius)!important;border-right:1px solid var(--color-error-bg)}#txt2img_skip,#img2img_skip{border-radius:0 var(--border-radius) var(--border-radius) 0!important}#txt2img_interrupt,#txt2img_skip,#img2img_interrupt,#img2img_skip{background:var(--color-error)!important;color:#fff!important}#txt2img_interrupt:hover,#txt2img_skip:hover,#img2img_interrupt:hover,#img2img_skip:hover{background:var(--color-error-hover)!important;color:#fff!important}#txt2img_interrupt:active,#txt2img_skip:active,#img2img_interrupt:active,#img2img_skip:active{background:var(--color-error-active)!important;color:#fff!important}#interrogate,#deepbooru{display:block!important}table{border-collapse:collapse}th,td{border:1px solid var(--color-border)!important;padding:12px!important}th{background:var(--color-fill-tertiary);border-bottom:4px solid var(--color-border)!important}tr:hover td{background:var(--color-primary-bg-hover)}tr:nth-child(odd) td{background:var(--color-fill-quaternary)}tr:nth-child(odd):hover td{background:var(--color-primary-bg-hover)}[id$="2img_prompt"] textarea{color:var(--green-9)!important;max-height:84px;overflow-y:auto;padding:12px}[id$="2img_prompt"] textarea:focus{color:var(--green-10)!important}[id$="2img_neg_prompt"] textarea{color:var(--magenta-9)!important;max-height:84px;overflow-y:auto;padding:12px}[id$="2img_neg_prompt"] textarea:focus{color:var(--magenta-10)!important}.block.token-counter span{backdrop-filter:blur(24px);display:inline-block}.livePreview,.gradio-gallery,.gradio-image,.gradio-video,.gradio-file,div.svelte-awbtu4 .livePreview,div.svelte-awbtu4 .gradio-gallery,div.svelte-awbtu4 .gradio-image,div.svelte-awbtu4 .gradio-video,div.svelte-awbtu4 .gradio-file{background:var(--gallery-background)!important;border:2px solid var(--color-border)!important;border-radius:var(--border-radius)!important}#quicksettings{width:100%;display:flex;flex-direction:column;align-items:stretch;justify-content:stretch}#quicksettings>*{flex:1 1;max-width:unset!important;min-width:unset!important;width:-webkit-fill-available!important;margin:0;padding:0}#quicksettings .head>label{min-width:60%;max-width:60%;margin-right:12px}#quicksettings input[type=color]{width:100%}#quicksettings input[type=number],#quicksettings textarea{height:28px!important;padding:4px!important;width:-webkit-fill-available;box-sizing:border-box}#quicksettings span{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;width:100%}#quicksettings .dropdown-arrow{min-width:16px;min-height:16px}button#txt2img_extra_networks,button#img2img_extra_networks{display:none!important}#txt2img_extra_networks,#img2img_extra_networks{display:block!important}#txt2img_extra_networks .tabitem.gradio-tabitem.svelte-19hvt5v,#img2img_extra_networks .tabitem.gradio-tabitem.svelte-19hvt5v{padding:0;background:transparent}#txt2img_extra_networks .search,#img2img_extra_networks .search{max-width:-webkit-fill-available;width:-webkit-fill-available;max-height:36px!important;box-sizing:border-box;padding:8px}#txt2img_extra_networks button,#img2img_extra_networks button{height:32px!important}.extra-networks .tab-nav{align-items:center}.extra-networks .tab-nav>*{height:40px!important;margin:0!important;font-size:14px!important}.extra-networks .extra-network-subdirs.extra-network-subdirs-thumbs{display:flex;flex-wrap:wrap;gap:4px;align-items:center;margin-bottom:12px;padding:0!important}.extra-networks .extra-network-subdirs.extra-network-subdirs-thumbs>button{flex:1 1;min-width:100px;margin:0;cursor:pointer;zoom:.8}.extra-networks .actions .name{background:linear-gradient(0deg,rgba(0,0,0,.8),transparent);font-weight:500;text-shadow:0 1px 1px rgba(0,0,0,.9)}.extra-networks .actions .additional{display:none}.extra-networks .actions .additional>ul{margin:0;padding:0;display:flex;align-items:center;justify-content:center}.extra-networks .card{border-radius:var(--border-radius-xs);background-size:cover;box-shadow:var(--box-shadow);outline:1px solid rgba(0,0,0,.5);transition:all .2s ease-in-out}.extra-networks .card:hover{outline:2px solid var(--color-primary)}.extra-networks .card:hover .additional{display:block}.extra-networks .metadata-button{font-size:10px!important;right:4px;top:24px;opacity:0}.extra-networks .metadata-button:hover{opacity:1}#footer.block{padding:var(--size-4)!important}.tabitem,.gradio-tabitem{border:none!important;border-radius:var(--container-radius);background:var(--panel-background-fill);padding:var(--spacing-lg)}#tabs>.tabitem.gradio-tabitem{background:transparent!important;padding:24px}.tab-nav{border:none!important;gap:8px;margin-bottom:8px}.tab-nav button{cursor:pointer;border:none!important;background:var(--color-fill-quaternary)!important;transition:all .2s ease-in-out;padding:8px!important;border-radius:4px!important;flex:1 1!important}.tab-nav button:hover{border:none!important;color:var(--color-text)!important;background:var(--color-fill-tertiary)!important;flex:none}.tab-nav button.selected{border:none!important;background:var(--color-fill-secondary)!important;color:var(--color-text)!important;flex:none;font-weight:600;border-bottom:2px solid var(--color-primary)!important}#tab_txt2img #txt2img_settings .block.gradio-checkbox,#tab_img2img #txt2img_settings .block.gradio-checkbox,#tab_txt2img #img2img_settings .block.gradio-checkbox,#tab_img2img #img2img_settings .block.gradio-checkbox{margin:0!important}#tab_txt2img #txt2img_settings span.svelte-1gfkn6j:not(.has-info),#tab_img2img #txt2img_settings span.svelte-1gfkn6j:not(.has-info),#tab_txt2img #img2img_settings span.svelte-1gfkn6j:not(.has-info),#tab_img2img #img2img_settings span.svelte-1gfkn6j:not(.has-info){margin-bottom:var(--spacing-lg);white-space:nowrap;width:-webkit-fill-available;overflow:hidden;text-overflow:ellipsis;margin-right:12px}#tab_txt2img #txt2img_settings>*:not([id$="_script_container"]),#tab_img2img #txt2img_settings>*:not([id$="_script_container"]),#tab_txt2img #img2img_settings>*:not([id$="_script_container"]),#tab_img2img #img2img_settings>*:not([id$="_script_container"]){border-radius:var(--container-radius)!important;background:var(--panel-background-fill)!important;padding:12px!important;margin:0!important}#tab_txt2img #txt2img_settings>*:not([id$="_script_container"],#txt2img_seed_row,#mode_img2img),#tab_img2img #txt2img_settings>*:not([id$="_script_container"],#txt2img_seed_row,#mode_img2img),#tab_txt2img #img2img_settings>*:not([id$="_script_container"],#txt2img_seed_row,#mode_img2img),#tab_img2img #img2img_settings>*:not([id$="_script_container"],#txt2img_seed_row,#mode_img2img){align-items:center}#tab_txt2img #txt2img_settings #img2img_override_settings_row,#tab_img2img #txt2img_settings #img2img_override_settings_row,#tab_txt2img #img2img_settings #img2img_override_settings_row,#tab_img2img #img2img_settings #img2img_override_settings_row,#tab_txt2img #txt2img_settings #txt2img_override_settings_row,#tab_img2img #txt2img_settings #txt2img_override_settings_row,#tab_txt2img #img2img_settings #txt2img_override_settings_row,#tab_img2img #img2img_settings #txt2img_override_settings_row{display:none}#tab_txt2img #txt2img_gallery,#tab_img2img #txt2img_gallery{overflow:hidden!important;border-radius:var(--border-radius)!important}#tab_txt2img [id$="2img_tools"]>div,#tab_img2img [id$="2img_tools"]>div{display:flex;justify-content:center}#tab_txt2img [id$="2img_tools"]>div button,#tab_img2img [id$="2img_tools"]>div button{max-width:unset!important}#tab_txt2img .image-buttons button,#tab_img2img .image-buttons button{min-width:min(160px,100%)!important}#tab_txt2img #img2img_label_copy_to_img2img,#tab_img2img #img2img_label_copy_to_img2img{display:none}#tab_txt2img #img2img_copy_to_img2img,#tab_img2img #img2img_copy_to_img2img,#tab_txt2img .gap.compact,#tab_img2img .gap.compact,#tab_txt2img .image-buttons,#tab_img2img .image-buttons,#tab_txt2img .image_buttons_extras,#tab_img2img .image_buttons_extras{gap:8px!important}#tab_txt2img [id$=_settings] div.svelte-15lo0d8>*,#tab_img2img [id$=_settings] div.svelte-15lo0d8>*,#tab_txt2img [id$=_settings] div.svelte-15lo0d8>.form>*,#tab_img2img [id$=_settings] div.svelte-15lo0d8>.form>*{flex:1 1}#tab_txt2img #script_list,#tab_img2img #script_list{background-color:var(--color-fill-tertiary)!important;border-color:transparent!important;transition:all .3s ease-in-out!important;margin-bottom:var(--size-ms)!important;margin-top:0!important;padding:12px!important;border-radius:var(--border-radius)!important}#tab_txt2img [id$=_script_container] .block.svelte-mppz8v,#tab_img2img [id$=_script_container] .block.svelte-mppz8v{border:unset!important}#tab_settings button.svelte-1g805jl,#tab_settings button.svelte-1g805jl:hover{background:transparent!important;border-radius:0!important}#tab_settings button.svelte-1g805jl.selected{border:none!important;background:transparent!important;border-left:2px solid var(--color-primary)!important;border-radius:0!important}#tab_extras>div>div>div{gap:8px}#tab_extras>div>div>div>.gradio-row{border-radius:var(--container-radius)!important;background:var(--panel-background-fill)!important;padding:12px!important;margin:0!important}#tab_extras #extras_scale_by_tab{padding:0!important;background:transparent!important}[id$=_row_aspect_ratio],[id$=_row_resolutions],[id$=_container_aspect_ratio]{display:flex!important;margin:0;padding:0;flex-wrap:nowrap!important;align-items:flex-start!important;justify-content:flex-start!important}#arc_show_calculator_button{background:var(--color-fill)!important}[id$=_container_aspect_ratio]{background-color:var(--color-fill-tertiary)!important;border-color:transparent!important;transition:all .3s ease-in-out!important;margin-bottom:var(--size-ms)!important;margin-top:0!important;padding:12px!important;border-radius:var(--border-radius)!important;gap:4px!important;display:flex!important;flex-wrap:wrap!important;flex-direction:row!important}[id$=_container_aspect_ratio] [id$=_row_aspect_ratio],[id$=_container_aspect_ratio] [id$=_row_resolutions]{max-width:unset;width:unset;flex:1 1;display:flex!important}[id$=_container_aspect_ratio] button{position:relative!important;flex:1 1!important;margin:0!important}#tab_image_browser #image_browser_tabs_container [id$=_browser_gallery_controls]{align-items:flex-end}#tab_image_browser .preview.svelte-1tkea93.svelte-1tkea93{background:var(--color-header)!important;backdrop-filter:blur(24px)}#tab_image_browser .block.gradio-box.svelte-mppz8v.padded{border:none!important}[id$=_preset_manager_accordion]{background:var(--color-fill-quaternary)!important;border:unset!important}#tab_civitai_helper .block.padded.ch_box{border-radius:var(--container-radius)!important;background:var(--panel-background-fill)!important;padding:12px!important}#tab_system_info_tab #system_info_tab>div>div{border:none!important;padding:0!important}#tab_dreambooth_interface #SettingsPanel .tabitem,#tab_dreambooth_interface #SettingsPanel .gradio-tabitem{background:transparent!important;padding:0!important;border:none!important}#tab_dreambooth_interface #SettingsPanel .\!cursor-not-allowed,#tab_dreambooth_interface #SettingsPanel .\!cursor-not-allowed>span,#tab_dreambooth_interface #SettingsPanel .\!cursor-not-allowed>option{border:none!important}#tab_additional_networks>div>div>div{border-radius:var(--container-radius)!important;background:var(--panel-background-fill)!important;padding:12px!important}#tab_additional_networks .padded.svelte-mppz8v{border:none!important}#tab_openOutpaint{padding:0!important;height:100vh;position:relative}#tab_openOutpaint #openoutpaint-iframe{width:-webkit-fill-available!important}body{font-family:var(--font-family);font-size:var(--font-size);color:var(--color-text);-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;text-size-adjust:100%;background-image:var(--color-body-background);background-repeat:no-repeat}pre,code{font-family:var(--font-family-code)}h1{font-size:var(--font-size-heading1);line-height:var(--line-height-heading1);color:var(--color-text)}h2{font-size:var(--font-size-heading2);line-height:var(--line-height-heading2);color:var(--color-text)}h3{font-size:var(--font-size-heading3);line-height:var(--line-height-heading3);color:var(--color-text)}h4{font-size:var(--font-size-heading4);line-height:var(--line-height-heading4);color:var(--color-text)}h5{font-size:var(--font-size-heading5);line-height:var(--line-height-heading5);color:var(--color-text)}a{text-decoration:none} +/*! normalize.css v8.0.1 | MIT License | github.com/necolas/normalize.css */html{line-height:1.15;text-size-adjust:100%}body{margin:0}main{display:block}h1{font-size:2em;margin:.67em 0}hr{box-sizing:content-box;height:0;overflow:visible}pre{font-family:monospace,monospace;font-size:1em}a{background-color:transparent}abbr[title]{border-bottom:none;text-decoration:underline;text-decoration:underline dotted}b,strong{font-weight:bolder}code,kbd,samp{font-family:monospace,monospace;font-size:1em}small{font-size:80%}sub,sup{font-size:75%;line-height:0;position:relative;vertical-align:baseline}sub{bottom:-.25em}sup{top:-.5em}img{border-style:none}button,input,optgroup,select,textarea{font-family:inherit;font-size:100%;line-height:1.15;margin:0}button,input{overflow:visible}button,select{text-transform:none}button,[type=button],[type=reset],[type=submit]{-webkit-appearance:button;appearance:button}button::-moz-focus-inner,[type=button]::-moz-focus-inner,[type=reset]::-moz-focus-inner,[type=submit]::-moz-focus-inner{border-style:none;padding:0}button:-moz-focusring,[type=button]:-moz-focusring,[type=reset]:-moz-focusring,[type=submit]:-moz-focusring{outline:1px dotted ButtonText}fieldset{padding:.35em .75em .625em}legend{box-sizing:border-box;color:inherit;display:table;max-width:100%;padding:0;white-space:normal}progress{vertical-align:baseline}textarea{overflow:auto}[type=checkbox],[type=radio]{box-sizing:border-box;padding:0}[type=number]::-webkit-inner-spin-button,[type=number]::-webkit-outer-spin-button{height:auto}[type=search]{-webkit-appearance:textfield;appearance:textfield;outline-offset:-2px}[type=search]::-webkit-search-decoration{-webkit-appearance:none;appearance:none}::-webkit-file-upload-button{-webkit-appearance:button;appearance:button;font:inherit}details{display:block}summary{display:list-item}template{display:none}[hidden]{display:none}:root{--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;--color-primary: #1677ff;--color-success: #52c41a;--color-warning: #faad14;--color-error: #ff4d4f;--color-info: #1677ff;--color-text-base: #000;--color-bg-base: #fff;--font-family: "HarmonyOS Sans", -apple-system, blinkmacsystemfont, "Segoe UI", roboto, "Helvetica Neue", arial, "Noto Sans", sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";--font-family-code: "Hack Nerd Font Mono", hack, "SFMono-Regular", consolas, "Liberation Mono", menlo, courier, monospace;--font-size: 14px;--line-width: 1px;--line-type: solid;--motion-unit: .1;--motion-base: 0;--motion-ease-out-circ: cubic-bezier(.08, .82, .17, 1);--motion-ease-in-out-circ: cubic-bezier(.78, .14, .15, .86);--motion-ease-out: cubic-bezier(.215, .61, .355, 1);--motion-ease-in-out: cubic-bezier(.645, .045, .355, 1);--motion-ease-out-back: cubic-bezier(.12, .4, .29, 1.46);--motion-ease-in-back: cubic-bezier(.71, -.46, .88, .6);--motion-ease-in-quint: cubic-bezier(.755, .05, .855, .06);--motion-ease-out-quint: cubic-bezier(.23, 1, .32, 1);--border-radius: 6px;--size-unit: 4;--size-step: 4;--size-popup-arrow: 16px;--control-height: 32px;--z-index-base: 0;--z-index-popup-base: 1000;--opacity-image: 1;--blue-1: #e6f4ff;--blue1: #e6f4ff;--blue-2: #bae0ff;--blue2: #bae0ff;--blue-3: #91caff;--blue3: #91caff;--blue-4: #69b1ff;--blue4: #69b1ff;--blue-5: #4096ff;--blue5: #4096ff;--blue-6: #1677ff;--blue6: #1677ff;--blue-7: #0958d9;--blue7: #0958d9;--blue-8: #003eb3;--blue8: #003eb3;--blue-9: #002c8c;--blue9: #002c8c;--blue-10: #001d66;--blue10: #001d66;--purple-1: #f9f0ff;--purple1: #f9f0ff;--purple-2: #efdbff;--purple2: #efdbff;--purple-3: #d3adf7;--purple3: #d3adf7;--purple-4: #b37feb;--purple4: #b37feb;--purple-5: #9254de;--purple5: #9254de;--purple-6: #722ed1;--purple6: #722ed1;--purple-7: #531dab;--purple7: #531dab;--purple-8: #391085;--purple8: #391085;--purple-9: #22075e;--purple9: #22075e;--purple-10: #120338;--purple10: #120338;--cyan-1: #e6fffb;--cyan1: #e6fffb;--cyan-2: #b5f5ec;--cyan2: #b5f5ec;--cyan-3: #87e8de;--cyan3: #87e8de;--cyan-4: #5cdbd3;--cyan4: #5cdbd3;--cyan-5: #36cfc9;--cyan5: #36cfc9;--cyan-6: #13c2c2;--cyan6: #13c2c2;--cyan-7: #08979c;--cyan7: #08979c;--cyan-8: #006d75;--cyan8: #006d75;--cyan-9: #00474f;--cyan9: #00474f;--cyan-10: #002329;--cyan10: #002329;--green-1: #f6ffed;--green1: #f6ffed;--green-2: #d9f7be;--green2: #d9f7be;--green-3: #b7eb8f;--green3: #b7eb8f;--green-4: #95de64;--green4: #95de64;--green-5: #73d13d;--green5: #73d13d;--green-6: #52c41a;--green6: #52c41a;--green-7: #389e0d;--green7: #389e0d;--green-8: #237804;--green8: #237804;--green-9: #135200;--green9: #135200;--green-10: #092b00;--green10: #092b00;--magenta-1: #fff0f6;--magenta1: #fff0f6;--magenta-2: #ffd6e7;--magenta2: #ffd6e7;--magenta-3: #ffadd2;--magenta3: #ffadd2;--magenta-4: #ff85c0;--magenta4: #ff85c0;--magenta-5: #f759ab;--magenta5: #f759ab;--magenta-6: #eb2f96;--magenta6: #eb2f96;--magenta-7: #c41d7f;--magenta7: #c41d7f;--magenta-8: #9e1068;--magenta8: #9e1068;--magenta-9: #780650;--magenta9: #780650;--magenta-10: #520339;--magenta10: #520339;--pink-1: #fff0f6;--pink1: #fff0f6;--pink-2: #ffd6e7;--pink2: #ffd6e7;--pink-3: #ffadd2;--pink3: #ffadd2;--pink-4: #ff85c0;--pink4: #ff85c0;--pink-5: #f759ab;--pink5: #f759ab;--pink-6: #eb2f96;--pink6: #eb2f96;--pink-7: #c41d7f;--pink7: #c41d7f;--pink-8: #9e1068;--pink8: #9e1068;--pink-9: #780650;--pink9: #780650;--pink-10: #520339;--pink10: #520339;--red-1: #fff1f0;--red1: #fff1f0;--red-2: #ffccc7;--red2: #ffccc7;--red-3: #ffa39e;--red3: #ffa39e;--red-4: #ff7875;--red4: #ff7875;--red-5: #ff4d4f;--red5: #ff4d4f;--red-6: #f5222d;--red6: #f5222d;--red-7: #cf1322;--red7: #cf1322;--red-8: #a8071a;--red8: #a8071a;--red-9: #820014;--red9: #820014;--red-10: #5c0011;--red10: #5c0011;--orange-1: #fff7e6;--orange1: #fff7e6;--orange-2: #ffe7ba;--orange2: #ffe7ba;--orange-3: #ffd591;--orange3: #ffd591;--orange-4: #ffc069;--orange4: #ffc069;--orange-5: #ffa940;--orange5: #ffa940;--orange-6: #fa8c16;--orange6: #fa8c16;--orange-7: #d46b08;--orange7: #d46b08;--orange-8: #ad4e00;--orange8: #ad4e00;--orange-9: #873800;--orange9: #873800;--orange-10: #612500;--orange10: #612500;--yellow-1: #feffe6;--yellow1: #feffe6;--yellow-2: #ffffb8;--yellow2: #ffffb8;--yellow-3: #fffb8f;--yellow3: #fffb8f;--yellow-4: #fff566;--yellow4: #fff566;--yellow-5: #ffec3d;--yellow5: #ffec3d;--yellow-6: #fadb14;--yellow6: #fadb14;--yellow-7: #d4b106;--yellow7: #d4b106;--yellow-8: #ad8b00;--yellow8: #ad8b00;--yellow-9: #876800;--yellow9: #876800;--yellow-10: #614700;--yellow10: #614700;--volcano-1: #fff2e8;--volcano1: #fff2e8;--volcano-2: #ffd8bf;--volcano2: #ffd8bf;--volcano-3: #ffbb96;--volcano3: #ffbb96;--volcano-4: #ff9c6e;--volcano4: #ff9c6e;--volcano-5: #ff7a45;--volcano5: #ff7a45;--volcano-6: #fa541c;--volcano6: #fa541c;--volcano-7: #d4380d;--volcano7: #d4380d;--volcano-8: #ad2102;--volcano8: #ad2102;--volcano-9: #871400;--volcano9: #871400;--volcano-10: #610b00;--volcano10: #610b00;--geekblue-1: #f0f5ff;--geekblue1: #f0f5ff;--geekblue-2: #d6e4ff;--geekblue2: #d6e4ff;--geekblue-3: #adc6ff;--geekblue3: #adc6ff;--geekblue-4: #85a5ff;--geekblue4: #85a5ff;--geekblue-5: #597ef7;--geekblue5: #597ef7;--geekblue-6: #2f54eb;--geekblue6: #2f54eb;--geekblue-7: #1d39c4;--geekblue7: #1d39c4;--geekblue-8: #10239e;--geekblue8: #10239e;--geekblue-9: #061178;--geekblue9: #061178;--geekblue-10: #030852;--geekblue10: #030852;--gold-1: #fffbe6;--gold1: #fffbe6;--gold-2: #fff1b8;--gold2: #fff1b8;--gold-3: #ffe58f;--gold3: #ffe58f;--gold-4: #ffd666;--gold4: #ffd666;--gold-5: #ffc53d;--gold5: #ffc53d;--gold-6: #faad14;--gold6: #faad14;--gold-7: #d48806;--gold7: #d48806;--gold-8: #ad6800;--gold8: #ad6800;--gold-9: #874d00;--gold9: #874d00;--gold-10: #613400;--gold10: #613400;--lime-1: #fcffe6;--lime1: #fcffe6;--lime-2: #f4ffb8;--lime2: #f4ffb8;--lime-3: #eaff8f;--lime3: #eaff8f;--lime-4: #d3f261;--lime4: #d3f261;--lime-5: #bae637;--lime5: #bae637;--lime-6: #a0d911;--lime6: #a0d911;--lime-7: #7cb305;--lime7: #7cb305;--lime-8: #5b8c00;--lime8: #5b8c00;--lime-9: #3f6600;--lime9: #3f6600;--lime-10: #254000;--lime10: #254000;--color-text: rgba(0, 0, 0, .88);--color-text-secondary: rgba(0, 0, 0, .65);--color-text-tertiary: rgba(0, 0, 0, .45);--color-text-quaternary: rgba(0, 0, 0, .25);--color-fill: rgba(0, 0, 0, .15);--color-fill-secondary: rgba(0, 0, 0, .06);--color-fill-tertiary: rgba(0, 0, 0, .04);--color-fill-quaternary: rgba(0, 0, 0, .02);--color-bg-layout: #f5f5f5;--color-bg-container: #fff;--color-bg-elevated: #fff;--color-bg-spotlight: rgba(0, 0, 0, .85);--color-border: #d9d9d9;--color-border-secondary: #f0f0f0;--color-primary-bg: #e6f4ff;--color-primary-bg-hover: #bae0ff;--color-primary-border: #91caff;--color-primary-border-hover: #69b1ff;--color-primary-hover: #4096ff;--color-primary-active: #0958d9;--color-primary-text-hover: #4096ff;--color-primary-text: #1677ff;--color-primary-text-active: #0958d9;--color-success-bg: #f6ffed;--color-success-bg-hover: #d9f7be;--color-success-border: #b7eb8f;--color-success-border-hover: #95de64;--color-success-hover: #95de64;--color-success-active: #389e0d;--color-success-text-hover: #73d13d;--color-success-text: #52c41a;--color-success-text-active: #389e0d;--color-error-bg: #fff2f0;--color-error-bg-hover: #fff1f0;--color-error-border: #ffccc7;--color-error-border-hover: #ffa39e;--color-error-hover: #ff7875;--color-error-active: #d9363e;--color-error-text-hover: #ff7875;--color-error-text: #ff4d4f;--color-error-text-active: #d9363e;--color-warning-bg: #fffbe6;--color-warning-bg-hover: #fff1b8;--color-warning-border: #ffe58f;--color-warning-border-hover: #ffd666;--color-warning-hover: #ffd666;--color-warning-active: #d48806;--color-warning-text-hover: #ffc53d;--color-warning-text: #faad14;--color-warning-text-active: #d48806;--color-info-bg: #e6f4ff;--color-info-bg-hover: #bae0ff;--color-info-border: #91caff;--color-info-border-hover: #69b1ff;--color-info-hover: #69b1ff;--color-info-active: #0958d9;--color-info-text-hover: #4096ff;--color-info-text: #1677ff;--color-info-text-active: #0958d9;--color-bg-mask: rgba(0, 0, 0, .45);--color-white: #fff;--font-size-sm: 12px;--font-size-lg: 16px;--font-size-xl: 20px;--font-size-heading1: 38px;--font-size-heading2: 30px;--font-size-heading3: 24px;--font-size-heading4: 20px;--font-size-heading5: 16px;--line-height: 1.57142857;--line-height-lg: 1.5;--line-height-sm: 1.66666667;--line-height-heading1: 1.21052632;--line-height-heading2: 1.26666667;--line-height-heading3: 1.33333333;--line-height-heading4: 1.4;--line-height-heading5: 1.5;--size-xxl: 32px;--size-xl: 24px;--size-lg: 16px;--size-md: 10px;--size-ms: 8px;--size: 6px;--size-sm: 4px;--size-xs: 2px;--size-xxs: 1px;--control-height-sm: 24px;--control-height-xs: 16px;--control-height-lg: 40px;--motion-duration-fast: .1s;--motion-duration-mid: .2s;--motion-duration-slow: .3s;--line-width-bold: 2px;--border-radius-xs: 2px;--border-radius-sm: 4px;--border-radius-lg: 8px;--border-radius-outer: 4px}.dark{--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;--color-primary: #1668dc;--color-success: #49aa19;--color-warning: #d89614;--color-error: #dc4446;--color-info: #1668dc;--color-text-base: #fff;--color-bg-base: #1b1b1b;--blue-1: #111a2c;--blue1: #111a2c;--blue-2: #112545;--blue2: #112545;--blue-3: #15325b;--blue3: #15325b;--blue-4: #15417e;--blue4: #15417e;--blue-5: #1554ad;--blue5: #1554ad;--blue-6: #1668dc;--blue6: #1668dc;--blue-7: #3c89e8;--blue7: #3c89e8;--blue-8: #65a9f3;--blue8: #65a9f3;--blue-9: #8dc5f8;--blue9: #8dc5f8;--blue-10: #b7dcfa;--blue10: #b7dcfa;--purple-1: #1a1325;--purple1: #1a1325;--purple-2: #24163a;--purple2: #24163a;--purple-3: #301c4d;--purple3: #301c4d;--purple-4: #3e2069;--purple4: #3e2069;--purple-5: #51258f;--purple5: #51258f;--purple-6: #642ab5;--purple6: #642ab5;--purple-7: #854eca;--purple7: #854eca;--purple-8: #ab7ae0;--purple8: #ab7ae0;--purple-9: #cda8f0;--purple9: #cda8f0;--purple-10: #ebd7fa;--purple10: #ebd7fa;--cyan-1: #112123;--cyan1: #112123;--cyan-2: #113536;--cyan2: #113536;--cyan-3: #144848;--cyan3: #144848;--cyan-4: #146262;--cyan4: #146262;--cyan-5: #138585;--cyan5: #138585;--cyan-6: #13a8a8;--cyan6: #13a8a8;--cyan-7: #33bcb7;--cyan7: #33bcb7;--cyan-8: #58d1c9;--cyan8: #58d1c9;--cyan-9: #84e2d8;--cyan9: #84e2d8;--cyan-10: #b2f1e8;--cyan10: #b2f1e8;--green-1: #162312;--green1: #162312;--green-2: #1d3712;--green2: #1d3712;--green-3: #274916;--green3: #274916;--green-4: #306317;--green4: #306317;--green-5: #3c8618;--green5: #3c8618;--green-6: #49aa19;--green6: #49aa19;--green-7: #6abe39;--green7: #6abe39;--green-8: #8fd460;--green8: #8fd460;--green-9: #b2e58b;--green9: #b2e58b;--green-10: #d5f2bb;--green10: #d5f2bb;--magenta-1: #291321;--magenta1: #291321;--magenta-2: #40162f;--magenta2: #40162f;--magenta-3: #551c3b;--magenta3: #551c3b;--magenta-4: #75204f;--magenta4: #75204f;--magenta-5: #a02669;--magenta5: #a02669;--magenta-6: #cb2b83;--magenta6: #cb2b83;--magenta-7: #e0529c;--magenta7: #e0529c;--magenta-8: #f37fb7;--magenta8: #f37fb7;--magenta-9: #f8a8cc;--magenta9: #f8a8cc;--magenta-10: #fad2e3;--magenta10: #fad2e3;--pink-1: #291321;--pink1: #291321;--pink-2: #40162f;--pink2: #40162f;--pink-3: #551c3b;--pink3: #551c3b;--pink-4: #75204f;--pink4: #75204f;--pink-5: #a02669;--pink5: #a02669;--pink-6: #cb2b83;--pink6: #cb2b83;--pink-7: #e0529c;--pink7: #e0529c;--pink-8: #f37fb7;--pink8: #f37fb7;--pink-9: #f8a8cc;--pink9: #f8a8cc;--pink-10: #fad2e3;--pink10: #fad2e3;--red-1: #2a1215;--red1: #2a1215;--red-2: #431418;--red2: #431418;--red-3: #58181c;--red3: #58181c;--red-4: #791a1f;--red4: #791a1f;--red-5: #a61d24;--red5: #a61d24;--red-6: #d32029;--red6: #d32029;--red-7: #e84749;--red7: #e84749;--red-8: #f37370;--red8: #f37370;--red-9: #f89f9a;--red9: #f89f9a;--red-10: #fac8c3;--red10: #fac8c3;--orange-1: #2b1d11;--orange1: #2b1d11;--orange-2: #442a11;--orange2: #442a11;--orange-3: #593815;--orange3: #593815;--orange-4: #7c4a15;--orange4: #7c4a15;--orange-5: #aa6215;--orange5: #aa6215;--orange-6: #d87a16;--orange6: #d87a16;--orange-7: #e89a3c;--orange7: #e89a3c;--orange-8: #f3b765;--orange8: #f3b765;--orange-9: #f8cf8d;--orange9: #f8cf8d;--orange-10: #fae3b7;--orange10: #fae3b7;--yellow-1: #2b2611;--yellow1: #2b2611;--yellow-2: #443b11;--yellow2: #443b11;--yellow-3: #595014;--yellow3: #595014;--yellow-4: #7c6e14;--yellow4: #7c6e14;--yellow-5: #aa9514;--yellow5: #aa9514;--yellow-6: #d8bd14;--yellow6: #d8bd14;--yellow-7: #e8d639;--yellow7: #e8d639;--yellow-8: #f3ea62;--yellow8: #f3ea62;--yellow-9: #f8f48b;--yellow9: #f8f48b;--yellow-10: #fafab5;--yellow10: #fafab5;--volcano-1: #2b1611;--volcano1: #2b1611;--volcano-2: #441d12;--volcano2: #441d12;--volcano-3: #592716;--volcano3: #592716;--volcano-4: #7c3118;--volcano4: #7c3118;--volcano-5: #aa3e19;--volcano5: #aa3e19;--volcano-6: #d84a1b;--volcano6: #d84a1b;--volcano-7: #e87040;--volcano7: #e87040;--volcano-8: #f3956a;--volcano8: #f3956a;--volcano-9: #f8b692;--volcano9: #f8b692;--volcano-10: #fad4bc;--volcano10: #fad4bc;--geekblue-1: #131629;--geekblue1: #131629;--geekblue-2: #161d40;--geekblue2: #161d40;--geekblue-3: #1c2755;--geekblue3: #1c2755;--geekblue-4: #203175;--geekblue4: #203175;--geekblue-5: #263ea0;--geekblue5: #263ea0;--geekblue-6: #2b4acb;--geekblue6: #2b4acb;--geekblue-7: #5273e0;--geekblue7: #5273e0;--geekblue-8: #7f9ef3;--geekblue8: #7f9ef3;--geekblue-9: #a8c1f8;--geekblue9: #a8c1f8;--geekblue-10: #d2e0fa;--geekblue10: #d2e0fa;--gold-1: #2b2111;--gold1: #2b2111;--gold-2: #443111;--gold2: #443111;--gold-3: #594214;--gold3: #594214;--gold-4: #7c5914;--gold4: #7c5914;--gold-5: #aa7714;--gold5: #aa7714;--gold-6: #d89614;--gold6: #d89614;--gold-7: #e8b339;--gold7: #e8b339;--gold-8: #f3cc62;--gold8: #f3cc62;--gold-9: #f8df8b;--gold9: #f8df8b;--gold-10: #faedb5;--gold10: #faedb5;--lime-1: #1f2611;--lime1: #1f2611;--lime-2: #2e3c10;--lime2: #2e3c10;--lime-3: #3e4f13;--lime3: #3e4f13;--lime-4: #536d13;--lime4: #536d13;--lime-5: #6f9412;--lime5: #6f9412;--lime-6: #8bbb11;--lime6: #8bbb11;--lime-7: #a9d134;--lime7: #a9d134;--lime-8: #c9e75d;--lime8: #c9e75d;--lime-9: #e4f88b;--lime9: #e4f88b;--lime-10: #f0fab5;--lime10: #f0fab5;--color-text: rgba(255, 255, 255, .85);--color-text-secondary: rgba(255, 255, 255, .65);--color-text-tertiary: rgba(255, 255, 255, .45);--color-text-quaternary: rgba(255, 255, 255, .25);--color-fill: rgba(255, 255, 255, .18);--color-fill-secondary: rgba(255, 255, 255, .12);--color-fill-tertiary: rgba(255, 255, 255, .08);--color-fill-quaternary: rgba(255, 255, 255, .04);--color-bg-layout: #111;--color-bg-container: #1f1f1f;--color-bg-elevated: #222;--color-bg-spotlight: #424242;--color-border: #424242;--color-border-secondary: #303030;--color-primary-bg: #111a2c;--color-primary-bg-hover: #112545;--color-primary-border: #15325b;--color-primary-border-hover: #15417e;--color-primary-hover: #3c89e8;--color-primary-active: #1554ad;--color-primary-text-hover: #3c89e8;--color-primary-text: #1668dc;--color-primary-text-active: #1554ad;--color-success-bg: #162312;--color-success-bg-hover: #1d3712;--color-success-border: #274916;--color-success-border-hover: #306317;--color-success-hover: #306317;--color-success-active: #3c8618;--color-success-text-hover: #6abe39;--color-success-text: #49aa19;--color-success-text-active: #3c8618;--color-error-bg: #2c1618;--color-error-bg-hover: #451d1f;--color-error-border: #5b2526;--color-error-border-hover: #7e2e2f;--color-error-hover: #e86e6b;--color-error-active: #ad393a;--color-error-text-hover: #e86e6b;--color-error-text: #dc4446;--color-error-text-active: #ad393a;--color-warning-bg: #2b2111;--color-warning-bg-hover: #443111;--color-warning-border: #594214;--color-warning-border-hover: #7c5914;--color-warning-hover: #7c5914;--color-warning-active: #aa7714;--color-warning-text-hover: #e8b339;--color-warning-text: #d89614;--color-warning-text-active: #aa7714;--color-info-bg: #111a2c;--color-info-bg-hover: #112545;--color-info-border: #15325b;--color-info-border-hover: #15417e;--color-info-hover: #15417e;--color-info-active: #1554ad;--color-info-text-hover: #3c89e8;--color-info-text: #1668dc;--color-info-text-active: #1554ad;--color-bg-mask: rgba(0, 0, 0, .45);--color-white: #fff}:root{--color-header: rgba(255, 255, 255, .6);--color-body-background: radial-gradient(circle 600px at calc(100% - 300px) 300px, var(--blue-1), var(--color-bg-layout));--box-shadow: 0 6px 16px 0 rgba(0, 0, 0, .08), 0 3px 6px -4px rgb(0 0 0 / 12%), 0 9px 28px 8px rgb(0 0 0 / 5%);--box-shadow-secondary: 0 6px 16px 0 rgba(0, 0, 0, .08), 0 3px 6px -4px rgb(0 0 0 / 12%), 0 9px 28px 8px rgb(0 0 0 / 5%);--gallery-background: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACAAAAAgCAYAAABzenr0AAAABGdBTUEAALGPC/xhBQAAAFpJREFUWAntljEKADAIA23p6v//qQ+wfUEcCu1yriEgp0FHRJSJcnehmmWm1Dv/lO4HIg1AAAKjTqm03ea88zMCCEDgO4HV5bS757f+7wRoAAIQ4B9gByAAgQ3pfiDmXmAeEwAAAABJRU5ErkJggg==) 0% 0% / 20px}.dark{--color-header: rgba(46, 47, 48, .6);--color-body-background: radial-gradient(circle 600px at calc(100% - 300px) 300px, var(--blue-2), var(--color-bg-layout));--gallery-background: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACAAAAAgCAIAAAD8GO2jAAAABGdBTUEAALGPC/xhBQAAADhlWElmTU0AKgAAAAgAAYdpAAQAAAABAAAAGgAAAAAAAqACAAQAAAABAAAAIKADAAQAAAABAAAAIAAAAACPTkDJAAAAZUlEQVRIDe2VMQoAMAgDa9/g/1/oIzrpZBCh2dLFkkoDF0Fz99OdiOjks+2/7S8fRRmMMIVoRGSoYzvvqF8ZIMKlC1GhQBc6IkPzq32QmdAzkEGihpWOSPsAss8HegYySNSw0hE9WQ4StafZFqkAAAAASUVORK5CYII=) 0% 0% / 20px}:root{--neutral-50: var(--color-text);--neutral-100: var(--color-text);--neutral-200: var(--color-text-secondary);--neutral-300: var(--color-text-tertiary);--neutral-400: var(--color-text-quaternary);--neutral-500: var(--color-fill);--neutral-600: var(--color-fill-secondary);--neutral-700: var(--color-fill-tertiary);--neutral-800: var(--color-fill-quaternary);--neutral-900: var(--color-bg-elevated);--neutral-950: var(--color-bg-container);--primary-50: var(--blue-1);--primary-100: var(--blue-1);--primary-200: var(--blue-2);--primary-300: var(--blue-3);--primary-400: var(--blue-4);--primary-500: var(--blue-5);--primary-600: var(--blue-6);--primary-700: var(--blue-7);--primary-800: var(--blue-8);--primary-900: var(--blue-9);--primary-950: var(--blue-9);--secondary-50: var(--blue-1);--secondary-100: var(--blue-1);--secondary-200: var(--blue-2);--secondary-300: var(--blue-3);--secondary-400: var(--blue-4);--secondary-500: var(--blue-5);--secondary-600: var(--blue-6);--secondary-700: var(--blue-7);--secondary-800: var(--blue-8);--secondary-900: var(--blue-9);--secondary-950: var(--blue-9);--error-text-color: var(--color-error);--error-background-fill: var(--color-error-bg);--background-fill-primary: var(--neutral-950);--background-fill-secondary: var(--neutral-900);--stat-background-fill: var(--primary-500);--link-text-color-active: var(--secondary-500);--link-text-color: var(--secondary-500);--link-text-color-hover: var(--secondary-400);--link-text-color-visited: var(--secondary-600);--color-accent: var(--primary-500);--color-accent-soft: var(--neutral-700);--loader-color: var(--color-accent);--font: var(--font-family);--prose-header-text-weight: 600;--prose-text-weight: 400;--section-header-text-weight: 400;--text-lg: var(--font-size-lg);--text-md: var(--font-size);--text-sm: var(--font-size-sm);--text-xl: var(--font-size-xl);--text-xs: var(--font-size-sm);--text-xxl: var(--font-size-xl);--text-xxs: var(--font-size-sm);--prose-text-size: var(--text-md);--section-header-text-size: var(--text-md);--form-gap-width: 0;--spacing-xxl: var(--size-lg);--spacing-xl: var(--size-md);--spacing-lg: var(--size-ms);--spacing-md: var(--size);--spacing-sm: var(--size-sm);--spacing-xs: var(--size-xs);--spacing-xxs: var(--size-xxs);--layout-gap: var(--spacing-xxl);--error-border-width: 1px;--radius-lg: var(--border-radius-lg);--radius-md: var(--border-radius);--radius-sm: var(--border-radius-sm);--radius-xl: var(--border-radius-xs);--radius-xs: var(--border-radius-sm);--radius-xxl: var(--border-radius-lg);--radius-xxs: var(--border-radius-xs);--border-color-accent: var(--neutral-600);--border-color-primary: var(--neutral-700);--error-border-color: var(--border-color-primary);--container-radius: var(--radius-lg);--embed-radius: var(--radius-lg);--shadow-spread: 1px;--shadow-drop: var(--box-shadow);--shadow-drop-lg: var(--box-shadow-secondary);--shadow-inset: var(--box-shadow) inset;--body-text-weight: 400;--body-background-fill: var(--background-fill-primary);--body-text-color: var(--color-text);--body-text-color-subdued: var(--color-text-tertiary);--body-text-size: var(--font-size);--block-border-width: 1px;--block-info-text-weight: 400;--block-label-border-width: 1px;--block-label-margin: 0;--block-label-text-weight: 400;--block-shadow: none;--block-title-background-fill: none;--block-title-border-color: none;--block-title-border-width: 0;--block-title-padding: 0;--block-title-radius: none;--block-title-text-weight: 400;--block-background-fill: var(--neutral-800);--block-border-color: var(--border-color-primary);--block-info-text-color: var(--body-text-color-subdued);--block-label-background-fill: var(--background-fill-secondary);--block-label-border-color: var(--border-color-primary);--block-label-text-color: var(--neutral-200);--block-title-text-color: var(--neutral-200);--block-info-text-size: var(--text-sm);--block-label-padding: var(--spacing-sm) var(--spacing-lg);--block-label-radius: calc(var(--radius-lg) - 1px) 0 calc(var(--radius-lg) - 1px) 0;--block-label-right-radius: 0 calc(var(--radius-lg) - 1px) 0 calc(var(--radius-lg) - 1px);--block-label-text-size: var(--text-sm);--block-padding: var(--spacing-xl) calc(var(--spacing-xl) + 2px);--block-radius: var(--radius-lg);--block-title-text-size: var(--text-md);--panel-border-width: 0;--panel-background-fill: var(--color-fill-quaternary);--panel-border-color: var(--border-color-primary);--button-primary-text-color: white;--button-secondary-text-color: var(--color-text);--button-large-text-weight: 600;--button-shadow: none;--button-shadow-active: none;--button-shadow-hover: none;--button-small-text-weight: 400;--button-transition: background-color .2s ease;--button-border-width: 1px;--button-cancel-background-fill: var(--button-secondary-background-fill);--button-cancel-background-fill-hover: var(--button-cancel-background-fill);--button-cancel-border-color: var(--button-secondary-border-color);--button-cancel-border-color-hover: var(--button-cancel-border-color);--button-cancel-text-color: var(--button-secondary-text-color);--button-cancel-text-color-hover: var(--button-cancel-text-color);--button-primary-background-fill: var(--primary-600);--button-primary-background-fill-hover: var(--primary-700);--button-primary-border-color: var(--primary-600);--button-primary-border-color-hover: var(--primary-700);--button-primary-text-color-hover: var(--button-primary-text-color);--button-secondary-background-fill: var(--neutral-600);--button-secondary-background-fill-hover: var(--neutral-500);--button-secondary-border-color: var(--neutral-700);--button-secondary-border-color-hover: var(--neutral-600);--button-secondary-text-color-hover: var(--button-secondary-text-color);--button-large-padding: var(--spacing-lg) calc(2 * var(--spacing-lg));--button-large-radius: var(--radius-lg);--button-large-text-size: var(--text-lg);--button-small-padding: var(--spacing-sm) calc(2 * var(--spacing-sm));--button-small-radius: var(--radius-lg);--button-small-text-size: var(--text-md);--checkbox-check: url("data:image/svg+xml,%3csvg viewBox=%270 0 16 16%27 fill=%27white%27 xmlns=%27http://www.w3.org/2000/svg%27%3e%3cpath d=%27M12.207 4.793a1 1 0 010 1.414l-5 5a1 1 0 01-1.414 0l-2-2a1 1 0 011.414-1.414L6.5 9.086l4.293-4.293a1 1 0 011.414 0z%27/%3e%3c/svg%3e");--checkbox-label-shadow: none;--checkbox-label-text-weight: 400;--checkbox-background-color: var(--neutral-800);--checkbox-background-color-focus: var(--checkbox-background-color);--checkbox-background-color-hover: var(--checkbox-background-color);--checkbox-background-color-selected: var(--secondary-600);--checkbox-border-color: var(--neutral-700);--checkbox-border-color-focus: var(--secondary-500);--checkbox-border-color-hover: var(--neutral-600);--checkbox-border-color-selected: var(--secondary-600);--checkbox-border-width: var(--input-border-width);--checkbox-label-background-fill: var(--button-secondary-background-fill);--checkbox-label-background-fill-hover: var(--button-secondary-background-fill-hover);--checkbox-label-background-fill-selected: var(--checkbox-label-background-fill);--checkbox-label-border-color: var(--border-color-primary);--checkbox-label-border-color-hover: var(--checkbox-label-border-color);--checkbox-label-border-width: var(--input-border-width);--checkbox-label-text-color: var(--body-text-color);--checkbox-label-text-color-selected: var(--checkbox-label-text-color);--checkbox-border-radius: var(--radius-sm);--checkbox-label-gap: var(--spacing-sm);--checkbox-label-padding: var(--spacing-sm);--checkbox-label-text-size: var(--text-md);--checkbox-shadow: var(--input-shadow);--input-border-width: 1px;--input-shadow: none;--input-text-weight: 400;--input-background-fill: var(--neutral-700);--input-background-fill-focus: var(--secondary-600);--input-background-fill-hover: var(--input-background-fill);--input-border-color: var(--border-color-primary);--input-border-color-focus: var(--neutral-700);--input-border-color-hover: var(--input-border-color);--input-placeholder-color: var(--neutral-500);--input-padding: var(--spacing-sm);--input-radius: var(--radius-sm);--input-shadow-focus: var(--input-shadow);--input-text-size: var(--text-md);--table-border-color: var(--neutral-700);--table-even-background-fill: var(--neutral-950);--table-odd-background-fill: var(--neutral-900);--table-row-focus: var(--color-accent-soft);--table-radius: var(--radius-lg);--radio-circle: url("data:image/svg+xml,%3csvg viewBox=%270 0 16 16%27 fill=%27white%27 xmlns=%27http://www.w3.org/2000/svg%27%3e%3ccircle cx=%278%27 cy=%278%27 r=%273%27/%3e%3c/svg%3e")}.dark{--neutral-50: var(--color-text);--neutral-100: var(--color-text);--neutral-200: var(--color-text-secondary);--neutral-300: var(--color-text-tertiary);--neutral-400: var(--color-text-quaternary);--neutral-500: var(--color-fill);--neutral-600: var(--color-fill-secondary);--neutral-700: var(--color-fill-tertiary);--neutral-800: var(--color-fill-quaternary);--neutral-900: var(--color-bg-elevated);--neutral-950: var(--color-bg-container);--primary-50: var(--blue-1);--primary-100: var(--blue-1);--primary-200: var(--blue-2);--primary-300: var(--blue-3);--primary-400: var(--blue-4);--primary-500: var(--blue-5);--primary-600: var(--blue-6);--primary-700: var(--blue-7);--primary-800: var(--blue-8);--primary-900: var(--blue-9);--primary-950: var(--blue-9);--secondary-50: var(--blue-1);--secondary-100: var(--blue-1);--secondary-200: var(--blue-2);--secondary-300: var(--blue-3);--secondary-400: var(--blue-4);--secondary-500: var(--blue-5);--secondary-600: var(--blue-6);--secondary-700: var(--blue-7);--secondary-800: var(--blue-8);--secondary-900: var(--blue-9);--secondary-950: var(--blue-9);--error-text-color: var(--color-error);--error-background-fill: var(--color-error-bg);--background-fill-primary: var(--neutral-950);--background-fill-secondary: var(--neutral-900);--stat-background-fill: var(--primary-500);--link-text-color-active: var(--secondary-500);--link-text-color: var(--secondary-500);--link-text-color-hover: var(--secondary-400);--link-text-color-visited: var(--secondary-600);--color-accent: var(--primary-500);--color-accent-soft: var(--neutral-700);--loader-color: var(--color-accent);--font: var(--font-family);--prose-header-text-weight: 600;--prose-text-weight: 400;--section-header-text-weight: 400;--text-lg: var(--font-size-lg);--text-md: var(--font-size);--text-sm: var(--font-size-sm);--text-xl: var(--font-size-xl);--text-xs: var(--font-size-sm);--text-xxl: var(--font-size-xl);--text-xxs: var(--font-size-sm);--prose-text-size: var(--text-md);--section-header-text-size: var(--text-md);--form-gap-width: 0;--spacing-xxl: var(--size-lg);--spacing-xl: var(--size-md);--spacing-lg: var(--size-ms);--spacing-md: var(--size);--spacing-sm: var(--size-sm);--spacing-xs: var(--size-xs);--spacing-xxs: var(--size-xxs);--layout-gap: var(--spacing-xxl);--error-border-width: 1px;--radius-lg: var(--border-radius-lg);--radius-md: var(--border-radius);--radius-sm: var(--border-radius-sm);--radius-xl: var(--border-radius-xs);--radius-xs: var(--border-radius-sm);--radius-xxl: var(--border-radius-lg);--radius-xxs: var(--border-radius-xs);--border-color-accent: var(--neutral-600);--border-color-primary: var(--neutral-700);--error-border-color: var(--border-color-primary);--container-radius: var(--radius-lg);--embed-radius: var(--radius-lg);--shadow-spread: 1px;--shadow-drop: var(--box-shadow);--shadow-drop-lg: var(--box-shadow-secondary);--shadow-inset: var(--box-shadow) inset;--body-text-weight: 400;--body-background-fill: var(--background-fill-primary);--body-text-color: var(--color-text);--body-text-color-subdued: var(--color-text-tertiary);--body-text-size: var(--font-size);--block-border-width: 1px;--block-info-text-weight: 400;--block-label-border-width: 1px;--block-label-margin: 0;--block-label-text-weight: 400;--block-shadow: none;--block-title-background-fill: none;--block-title-border-color: none;--block-title-border-width: 0;--block-title-padding: 0;--block-title-radius: none;--block-title-text-weight: 400;--block-background-fill: var(--neutral-800);--block-border-color: var(--border-color-primary);--block-info-text-color: var(--body-text-color-subdued);--block-label-background-fill: var(--background-fill-secondary);--block-label-border-color: var(--border-color-primary);--block-label-text-color: var(--neutral-200);--block-title-text-color: var(--neutral-200);--block-info-text-size: var(--text-sm);--block-label-padding: var(--spacing-sm) var(--spacing-lg);--block-label-radius: calc(var(--radius-lg) - 1px) 0 calc(var(--radius-lg) - 1px) 0;--block-label-right-radius: 0 calc(var(--radius-lg) - 1px) 0 calc(var(--radius-lg) - 1px);--block-label-text-size: var(--text-sm);--block-padding: var(--spacing-xl) calc(var(--spacing-xl) + 2px);--block-radius: var(--radius-lg);--block-title-text-size: var(--text-md);--panel-border-width: 0;--panel-background-fill: var(--color-fill-quaternary);--panel-border-color: var(--border-color-primary);--button-primary-text-color: white;--button-secondary-text-color: var(--color-text);--button-large-text-weight: 600;--button-shadow: none;--button-shadow-active: none;--button-shadow-hover: none;--button-small-text-weight: 400;--button-transition: background-color .2s ease;--button-border-width: 1px;--button-cancel-background-fill: var(--button-secondary-background-fill);--button-cancel-background-fill-hover: var(--button-cancel-background-fill);--button-cancel-border-color: var(--button-secondary-border-color);--button-cancel-border-color-hover: var(--button-cancel-border-color);--button-cancel-text-color: var(--button-secondary-text-color);--button-cancel-text-color-hover: var(--button-cancel-text-color);--button-primary-background-fill: var(--primary-600);--button-primary-background-fill-hover: var(--primary-700);--button-primary-border-color: var(--primary-600);--button-primary-border-color-hover: var(--primary-700);--button-primary-text-color-hover: var(--button-primary-text-color);--button-secondary-background-fill: var(--neutral-600);--button-secondary-background-fill-hover: var(--neutral-500);--button-secondary-border-color: var(--neutral-700);--button-secondary-border-color-hover: var(--neutral-600);--button-secondary-text-color-hover: var(--button-secondary-text-color);--button-large-padding: var(--spacing-lg) calc(2 * var(--spacing-lg));--button-large-radius: var(--radius-lg);--button-large-text-size: var(--text-lg);--button-small-padding: var(--spacing-sm) calc(2 * var(--spacing-sm));--button-small-radius: var(--radius-lg);--button-small-text-size: var(--text-md);--checkbox-check: url("data:image/svg+xml,%3csvg viewBox=%270 0 16 16%27 fill=%27white%27 xmlns=%27http://www.w3.org/2000/svg%27%3e%3cpath d=%27M12.207 4.793a1 1 0 010 1.414l-5 5a1 1 0 01-1.414 0l-2-2a1 1 0 011.414-1.414L6.5 9.086l4.293-4.293a1 1 0 011.414 0z%27/%3e%3c/svg%3e");--checkbox-label-shadow: none;--checkbox-label-text-weight: 400;--checkbox-background-color: var(--neutral-800);--checkbox-background-color-focus: var(--checkbox-background-color);--checkbox-background-color-hover: var(--checkbox-background-color);--checkbox-background-color-selected: var(--secondary-600);--checkbox-border-color: var(--neutral-700);--checkbox-border-color-focus: var(--secondary-500);--checkbox-border-color-hover: var(--neutral-600);--checkbox-border-color-selected: var(--secondary-600);--checkbox-border-width: var(--input-border-width);--checkbox-label-background-fill: var(--button-secondary-background-fill);--checkbox-label-background-fill-hover: var(--button-secondary-background-fill-hover);--checkbox-label-background-fill-selected: var(--checkbox-label-background-fill);--checkbox-label-border-color: var(--border-color-primary);--checkbox-label-border-color-hover: var(--checkbox-label-border-color);--checkbox-label-border-width: var(--input-border-width);--checkbox-label-text-color: var(--body-text-color);--checkbox-label-text-color-selected: var(--checkbox-label-text-color);--checkbox-border-radius: var(--radius-sm);--checkbox-label-gap: var(--spacing-sm);--checkbox-label-padding: var(--spacing-sm);--checkbox-label-text-size: var(--text-md);--checkbox-shadow: var(--input-shadow);--input-border-width: 1px;--input-shadow: none;--input-text-weight: 400;--input-background-fill: var(--neutral-700);--input-background-fill-focus: var(--secondary-600);--input-background-fill-hover: var(--input-background-fill);--input-border-color: var(--border-color-primary);--input-border-color-focus: var(--neutral-700);--input-border-color-hover: var(--input-border-color);--input-placeholder-color: var(--neutral-500);--input-padding: var(--spacing-sm);--input-radius: var(--radius-sm);--input-shadow-focus: var(--input-shadow);--input-text-size: var(--text-md);--table-border-color: var(--neutral-700);--table-even-background-fill: var(--neutral-950);--table-odd-background-fill: var(--neutral-900);--table-row-focus: var(--color-accent-soft);--table-radius: var(--radius-lg);--radio-circle: url("data:image/svg+xml,%3csvg viewBox=%270 0 16 16%27 fill=%27white%27 xmlns=%27http://www.w3.org/2000/svg%27%3e%3ccircle cx=%278%27 cy=%278%27 r=%273%27/%3e%3c/svg%3e")}#content{min-height:-webkit-fill-available}.app.svelte-ac4rv4.svelte-ac4rv4{padding:0!important}.gradio-container{font-size:var(--font-size);color:var(--color-text);margin:0!important;background:transparent!important}.selected.svelte-1g805jl{background:var(--color-fill-quaternary)}.padded.svelte-mppz8v{padding:6px}.wrap.svelte-1p9xokt.svelte-1p9xokt.svelte-1p9xokt{gap:8px!important}.wrap.svelte-1p9xokt.svelte-1p9xokt.svelte-1p9xokt>label{flex:1 1!important;white-space:nowrap;border-radius:var(--border-radius)!important}.block.svelte-mppz8v{background:transparent}.block.gradio-accordion.svelte-mppz8v.padded{background-color:var(--color-fill-tertiary)!important;border-color:transparent!important;transition:all .3s ease-in-out!important;margin-bottom:var(--size-ms)!important;margin-top:0!important;padding:12px!important;border-radius:var(--border-radius)!important}div.svelte-1oo81b7>*:not(.absolute){border-radius:var(--border-radius)!important}.prose>p{border-radius:var(--container-radius);background:var(--panel-background-fill);padding:12px}#txtimg_hr_finalres{color:var(--color-primary)!important}#txtimg_hr_finalres span{border:var(--input-border-width) solid var(--color-primary-border);border-radius:var(--input-radius);background:var(--color-primary-bg);padding:4px 8px;margin:0 4px}::-webkit-scrollbar{width:0;height:0}::-webkit-scrollbar-track{border-radius:10px}::-webkit-scrollbar-thumb{background:var(--color-border-secondary);border-radius:10px}::-webkit-scrollbar-thumb:hover{background:var(--color-border)}ul.options{border:2px solid var(--color-border)!important;border-radius:var(--border-radius)!important;display:block!important;padding:0!important;margin:0!important;background:var(--color-bg-elevated)!important}ul.options li{display:block!important;margin:0!important}ul.options li.selected{background:var(--color-primary)!important;color:#fff!important}#lightboxModal{backdrop-filter:blur(24px)}#lightboxModal .modalControls{background:unset!important}input[type=range]{-webkit-appearance:none!important;appearance:none!important;background:transparent!important}input[type=range]:focus{outline:none!important}input[type=range]::-webkit-slider-runnable-track{cursor:pointer!important;height:6px!important;border-radius:3px!important;background:var(--color-fill)!important;opacity:.6!important}input[type=range]:hover::-webkit-slider-runnable-track{background:var(--color-primary)!important;opacity:1!important;-webkit-transition:all .2s ease-in-out;transition:all .2s ease-in-out}input[type=range]::-moz-range-track{cursor:pointer!important;height:6px!important;border-radius:3px!important;background:var(--color-primary)!important}input[type=range]:hover::-moz-range-track{background:var(--color-primary)!important;-moz-transition:all .2s ease-in-out;transition:all .2s ease-in-out}input[type=range]::-ms-fill-upper,input[type=range]::-ms-fill-lower{cursor:pointer!important;height:6px!important;border-radius:3px!important;background:var(--color-primary)!important}input[type=range]:hover::-ms-fill-upper,input[type=range]:hover::-ms-fill-lower{background:var(--color-bg-elevated)!important;-ms-transition:all .2s ease-in-out;transition:all .2s ease-in-out}input[type=range]::-webkit-slider-thumb{border:2px solid var(--color-text)!important;height:16px!important;width:16px!important;border-radius:16px!important;background:var(--color-bg-elevated)!important;cursor:pointer!important;-webkit-appearance:none!important;appearance:none!important;margin-top:-5px!important}input[type=range]:active::-webkit-slider-thumb{box-shadow:0 0 3px var(--color-primary)!important;border:2px solid var(--color-primary)!important;background:var(--color-bg-elevated)!important}input[type=range]::-moz-range-thumb{border:2px solid var(--color-text)!important;height:16px!important;width:16px!important;border-radius:16px!important;background:var(--color-bg-elevated)!important;cursor:pointer!important;margin-top:-5px!important;z-index:999}input[type=range]:active::-moz-range-thumb{box-shadow:0 0 3px var(--color-primary)!important;border:2px solid var(--color-primary)!important;background:var(--color-bg-elevated)!important}input[type=range]::-ms-thumb{border:2px solid var(--color-text)!important;height:16px!important;width:16px!important;border-radius:16px!important;background:var(--color-bg-elevated)!important;cursor:pointer!important;margin-top:-5px!important}input[type=range]:active::-ms-thumb{box-shadow:0 0 3px var(--color-primary)!important;border:2px solid var(--color-primary)!important;background:var(--color-bg-elevated)!important}.gradio-slider input[type=number]{padding:var(--spacing-sm)!important}.gradio-button{border-radius:var(--border-radius)!important;min-width:36px;min-height:36px;overflow:hidden;text-overflow:ellipsis}.gradio-button.tool{padding:0!important;max-width:36px!important;width:36px!important;min-width:36px!important;height:36px!important;min-height:36px!important;max-height:36px!important;font-size:14px!important;font-weight:400;display:flex;align-items:center;justify-content:center;align-self:end;line-height:1;border:var(--button-border-width) solid var(--button-secondary-border-color);background:var(--button-secondary-background-fill);color:var(--button-secondary-text-color)}.gradio-button.secondary-down,.gradio-button.secondary-down:hover{box-shadow:var(--box-shadow-secondary)!important}#txt2img_interrupt,#img2img_interrupt{border-radius:var(--border-radius) 0 0 var(--border-radius)!important;border-right:1px solid var(--color-error-bg)}#txt2img_skip,#img2img_skip{border-radius:0 var(--border-radius) var(--border-radius) 0!important}#txt2img_interrupt,#txt2img_skip,#img2img_interrupt,#img2img_skip{background:var(--color-error)!important;color:#fff!important}#txt2img_interrupt:hover,#txt2img_skip:hover,#img2img_interrupt:hover,#img2img_skip:hover{background:var(--color-error-hover)!important;color:#fff!important}#txt2img_interrupt:active,#txt2img_skip:active,#img2img_interrupt:active,#img2img_skip:active{background:var(--color-error-active)!important;color:#fff!important}#interrogate,#deepbooru{display:block!important}table{border-collapse:collapse}th,td{border:1px solid var(--color-border)!important;padding:12px!important}th{background:var(--color-fill-tertiary);border-bottom:4px solid var(--color-border)!important}tr:hover td{background:var(--color-primary-bg-hover)}tr:nth-child(odd) td{background:var(--color-fill-quaternary)}tr:nth-child(odd):hover td{background:var(--color-primary-bg-hover)}[id$="2img_prompt"] textarea{color:var(--green-9)!important;max-height:84px;overflow-y:auto;padding:12px}[id$="2img_prompt"] textarea:focus{color:var(--green-10)!important}[id$="2img_neg_prompt"] textarea{color:var(--magenta-9)!important;max-height:84px;overflow-y:auto;padding:12px}[id$="2img_neg_prompt"] textarea:focus{color:var(--magenta-10)!important}.block.token-counter span{backdrop-filter:blur(24px);display:inline-block}.livePreview,.gradio-gallery,.gradio-image,.gradio-video,.gradio-file,div.svelte-awbtu4 .livePreview,div.svelte-awbtu4 .gradio-gallery,div.svelte-awbtu4 .gradio-image,div.svelte-awbtu4 .gradio-video,div.svelte-awbtu4 .gradio-file{background:var(--gallery-background)!important;border:2px solid var(--color-border)!important;border-radius:var(--border-radius)!important}#quicksettings{width:100%;display:flex;flex-direction:column;align-items:stretch;justify-content:stretch}#quicksettings>*{flex:1 1;max-width:unset!important;min-width:unset!important;width:-webkit-fill-available!important;margin:0;padding:0}#quicksettings .head>label{min-width:60%;max-width:60%;margin-right:12px}#quicksettings input[type=color]{width:100%}#quicksettings input[type=number],#quicksettings textarea{height:28px!important;padding:4px!important;width:-webkit-fill-available;box-sizing:border-box}#quicksettings span{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;width:100%}#quicksettings .dropdown-arrow{min-width:16px;min-height:16px}button#txt2img_extra_networks,button#img2img_extra_networks{display:none!important}#txt2img_extra_networks,#img2img_extra_networks{display:block!important}#txt2img_extra_networks .tabitem.gradio-tabitem.svelte-19hvt5v,#img2img_extra_networks .tabitem.gradio-tabitem.svelte-19hvt5v{padding:0;background:transparent}#txt2img_extra_networks .search,#img2img_extra_networks .search{max-width:-webkit-fill-available;width:-webkit-fill-available;max-height:36px!important;box-sizing:border-box;padding:8px}#txt2img_extra_networks button,#img2img_extra_networks button{height:32px!important}.extra-networks .tab-nav{align-items:center}.extra-networks .tab-nav>*{height:40px!important;margin:0!important;font-size:14px!important}.extra-networks .extra-network-subdirs{display:flex;flex-wrap:wrap;gap:4px;align-items:center;margin-bottom:12px;padding:0!important}.extra-networks .extra-network-subdirs>button{flex:1 1;min-width:100px;margin:0;cursor:pointer;zoom:.8}.extra-networks .actions .name{background:linear-gradient(0deg,rgba(0,0,0,.8),transparent);font-weight:500;text-shadow:0 1px 1px rgba(0,0,0,.9)}.extra-networks .actions .additional{display:none}.extra-networks .actions .additional>ul{margin:0;padding:0;display:flex;align-items:center;justify-content:center}.extra-networks .actions .additional>ul a{font-size:15px!important;margin:0!important}.extra-networks .card{border-radius:var(--border-radius-xs);background-size:cover;box-shadow:var(--box-shadow);outline:1px solid rgba(0,0,0,.5);transition:all .2s ease-in-out;overflow:hidden}.extra-networks .card .name{font-size:12px!important}.extra-networks .card:hover{outline:2px solid var(--color-primary)}.extra-networks .card:hover .additional{display:block}.extra-networks .card:hover .name{white-space:unset}.extra-networks .metadata-button{font-size:10px!important;right:4px;top:24px;opacity:0}.extra-networks .metadata-button:hover{opacity:1}.extra-network-thumbs .name{font-size:12px!important;background:transparent;white-space:nowrap;overflow:hidden;display:block;text-overflow:ellipsis}#footer.block{padding:var(--size-4)!important}.tabitem,.gradio-tabitem{border:none!important;border-radius:var(--container-radius);background:var(--panel-background-fill);padding:var(--spacing-lg)}#tabs>.tabitem.gradio-tabitem{background:transparent!important;padding:24px}.tab-nav{border:none!important;gap:8px;margin-bottom:8px}.tab-nav button{cursor:pointer;border:none!important;background:var(--color-fill-quaternary)!important;transition:all .2s ease-in-out;padding:8px!important;border-radius:4px!important;flex:1 1!important}.tab-nav button:hover{border:none!important;color:var(--color-text)!important;background:var(--color-fill-tertiary)!important;flex:none}.tab-nav button.selected{border:none!important;background:var(--color-fill-secondary)!important;color:var(--color-text)!important;flex:none;font-weight:600;border-bottom:2px solid var(--color-primary)!important}#tab_txt2img #txt2img_settings .block.gradio-checkbox,#tab_img2img #txt2img_settings .block.gradio-checkbox,#tab_txt2img #img2img_settings .block.gradio-checkbox,#tab_img2img #img2img_settings .block.gradio-checkbox{margin:0!important}#tab_txt2img #txt2img_settings span.svelte-1gfkn6j:not(.has-info),#tab_img2img #txt2img_settings span.svelte-1gfkn6j:not(.has-info),#tab_txt2img #img2img_settings span.svelte-1gfkn6j:not(.has-info),#tab_img2img #img2img_settings span.svelte-1gfkn6j:not(.has-info){margin-bottom:var(--spacing-lg);white-space:nowrap;width:-webkit-fill-available;overflow:hidden;text-overflow:ellipsis;margin-right:12px}#tab_txt2img #txt2img_settings>*:not([id$="_script_container"]),#tab_img2img #txt2img_settings>*:not([id$="_script_container"]),#tab_txt2img #img2img_settings>*:not([id$="_script_container"]),#tab_img2img #img2img_settings>*:not([id$="_script_container"]){border-radius:var(--container-radius)!important;background:var(--panel-background-fill)!important;padding:12px!important;margin:0!important}#tab_txt2img #txt2img_settings>*:not([id$="_script_container"],#txt2img_seed_row,#mode_img2img),#tab_img2img #txt2img_settings>*:not([id$="_script_container"],#txt2img_seed_row,#mode_img2img),#tab_txt2img #img2img_settings>*:not([id$="_script_container"],#txt2img_seed_row,#mode_img2img),#tab_img2img #img2img_settings>*:not([id$="_script_container"],#txt2img_seed_row,#mode_img2img){align-items:center}#tab_txt2img #txt2img_gallery,#tab_img2img #txt2img_gallery{overflow:hidden!important;border-radius:var(--border-radius)!important}#tab_txt2img [id$="2img_tools"]>div,#tab_img2img [id$="2img_tools"]>div{display:flex;justify-content:center}#tab_txt2img [id$="2img_tools"]>div button,#tab_img2img [id$="2img_tools"]>div button{max-width:unset!important}#tab_txt2img .image-buttons button,#tab_img2img .image-buttons button{min-width:min(160px,100%)!important}#tab_txt2img #img2img_label_copy_to_img2img,#tab_img2img #img2img_label_copy_to_img2img{display:none}#tab_txt2img #img2img_copy_to_img2img,#tab_img2img #img2img_copy_to_img2img,#tab_txt2img .gap.compact,#tab_img2img .gap.compact,#tab_txt2img .image-buttons,#tab_img2img .image-buttons,#tab_txt2img .image_buttons_extras,#tab_img2img .image_buttons_extras{gap:8px!important}#tab_txt2img [id$=_settings] div.svelte-15lo0d8>*,#tab_img2img [id$=_settings] div.svelte-15lo0d8>*,#tab_txt2img [id$=_settings] div.svelte-15lo0d8>.form>*,#tab_img2img [id$=_settings] div.svelte-15lo0d8>.form>*{flex:1 1}#tab_txt2img #script_list,#tab_img2img #script_list{background-color:var(--color-fill-tertiary)!important;border-color:transparent!important;transition:all .3s ease-in-out!important;margin-bottom:var(--size-ms)!important;margin-top:0!important;padding:12px!important;border-radius:var(--border-radius)!important}#tab_txt2img [id$=_script_container] .block.svelte-mppz8v,#tab_img2img [id$=_script_container] .block.svelte-mppz8v{border:unset!important}#tab_settings button.svelte-1g805jl,#tab_settings button.svelte-1g805jl:hover{background:transparent!important;border-radius:0!important}#tab_settings button.svelte-1g805jl.selected{border:none!important;background:transparent!important;border-left:2px solid var(--color-primary)!important;border-radius:0!important}#tab_extras>div>div>div{gap:8px}#tab_extras>div>div>div>.gradio-row{border-radius:var(--container-radius)!important;background:var(--panel-background-fill)!important;padding:12px!important;margin:0!important}#tab_extras #extras_scale_by_tab{padding:0!important;background:transparent!important}[id$=_row_aspect_ratio],[id$=_row_resolutions],[id$=_container_aspect_ratio]{display:flex!important;margin:0;padding:0;flex-wrap:nowrap!important;align-items:flex-start!important;justify-content:flex-start!important}#arc_show_calculator_button{background:var(--color-fill)!important}[id$=_container_aspect_ratio]{background-color:var(--color-fill-tertiary)!important;border-color:transparent!important;transition:all .3s ease-in-out!important;margin-bottom:var(--size-ms)!important;margin-top:0!important;padding:12px!important;border-radius:var(--border-radius)!important;gap:4px!important;display:flex!important;flex-wrap:wrap!important;flex-direction:row!important}[id$=_container_aspect_ratio] [id$=_row_aspect_ratio],[id$=_container_aspect_ratio] [id$=_row_resolutions]{max-width:unset;width:unset;flex:1 1;display:flex!important}[id$=_container_aspect_ratio] button{position:relative!important;flex:1 1!important;margin:0!important}#tab_image_browser #image_browser_tabs_container [id$=_browser_gallery_controls]{align-items:flex-end}#tab_image_browser .preview.svelte-1tkea93.svelte-1tkea93{background:var(--color-header)!important;backdrop-filter:blur(24px)}#tab_image_browser .block.gradio-box.svelte-mppz8v.padded{border:none!important}[id$=_preset_manager_accordion]{background:var(--color-fill-quaternary)!important;border:unset!important}#tab_civitai_helper .block.padded.ch_box{border-radius:var(--container-radius)!important;background:var(--panel-background-fill)!important;padding:12px!important}#tab_system_info_tab #system_info_tab>div>div{border:none!important;padding:0!important}#tab_dreambooth_interface #SettingsPanel .tabitem,#tab_dreambooth_interface #SettingsPanel .gradio-tabitem{background:transparent!important;padding:0!important;border:none!important}#tab_dreambooth_interface #SettingsPanel .\!cursor-not-allowed,#tab_dreambooth_interface #SettingsPanel .\!cursor-not-allowed>span,#tab_dreambooth_interface #SettingsPanel .\!cursor-not-allowed>option{border:none!important}#tab_additional_networks>div>div>div{border-radius:var(--container-radius)!important;background:var(--panel-background-fill)!important;padding:12px!important}#tab_additional_networks .padded.svelte-mppz8v{border:none!important}#tab_openOutpaint{padding:0!important;height:100vh;position:relative}#tab_openOutpaint #openoutpaint-iframe{width:-webkit-fill-available!important}body{font-family:var(--font-family);font-size:var(--font-size);color:var(--color-text);-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;text-size-adjust:100%;background-image:var(--color-body-background);background-repeat:no-repeat}pre,code{font-family:var(--font-family-code)}h1{font-size:var(--font-size-heading1);line-height:var(--line-height-heading1);color:var(--color-text)}h2{font-size:var(--font-size-heading2);line-height:var(--line-height-heading2);color:var(--color-text)}h3{font-size:var(--font-size-heading3);line-height:var(--line-height-heading3);color:var(--color-text)}h4{font-size:var(--font-size-heading4);line-height:var(--line-height-heading4);color:var(--color-text)}h5{font-size:var(--font-size-heading5);line-height:var(--line-height-heading5);color:var(--color-text)}a{text-decoration:none}