@mi-avalon/libs 0.0.23 → 0.0.25

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.js CHANGED
@@ -1,4 +1,4 @@
1
1
  export * from './components';
2
2
  export * from './constants';
3
- // export * from './hooks';
3
+ export * from './hooks';
4
4
  export * from './utils';
package/dist/index.umd.js CHANGED
@@ -1,4 +1,4 @@
1
- (function(b,P){typeof exports=="object"&&typeof module<"u"?P(exports,require("react"),require("antd")):typeof define=="function"&&define.amd?define(["exports","react","antd"],P):(b=typeof globalThis<"u"?globalThis:b||self,P(b.MiAvalonLibs={},b.React,b.antd))})(this,function(b,P,x){"use strict";var Nn=Object.defineProperty;var An=(b,P,x)=>P in b?Nn(b,P,{enumerable:!0,configurable:!0,writable:!0,value:x}):b[P]=x;var p=(b,P,x)=>(An(b,typeof P!="symbol"?P+"":P,x),x);function Ft(r){if(r&&r.__esModule)return r;const e=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(r){for(const t in r)if(t!=="default"){const n=Object.getOwnPropertyDescriptor(r,t);Object.defineProperty(e,t,n.get?n:{enumerable:!0,get:()=>r[t]})}}return e.default=r,Object.freeze(e)}const N=Ft(P);function Ut(r){return r&&r.__esModule&&Object.prototype.hasOwnProperty.call(r,"default")?r.default:r}var ye={exports:{}},X={};/**
1
+ (function(b,p){typeof exports=="object"&&typeof module<"u"?p(exports,require("react"),require("antd"),require("react-dom")):typeof define=="function"&&define.amd?define(["exports","react","antd","react-dom"],p):(b=typeof globalThis<"u"?globalThis:b||self,p(b.MiAvalonLibs={},b.React,b.antd,b.ReactDOM))})(this,function(b,p,w,mr){"use strict";var ba=Object.defineProperty;var ya=(b,p,w)=>p in b?ba(b,p,{enumerable:!0,configurable:!0,writable:!0,value:w}):b[p]=w;var v=(b,p,w)=>(ya(b,typeof p!="symbol"?p+"":p,w),w);const vr=r=>r&&r.__esModule?r:{default:r};function br(r){if(r&&r.__esModule)return r;const e=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(r){for(const t in r)if(t!=="default"){const n=Object.getOwnPropertyDescriptor(r,t);Object.defineProperty(e,t,n.get?n:{enumerable:!0,get:()=>r[t]})}}return e.default=r,Object.freeze(e)}function yr(r,e){for(var t=0;t<e.length;t++){const n=e[t];if(typeof n!="string"&&!Array.isArray(n)){for(const s in n)if(s!=="default"&&!(s in r)){const o=Object.getOwnPropertyDescriptor(n,s);o&&Object.defineProperty(r,s,o.get?o:{enumerable:!0,get:()=>n[s]})}}}return Object.freeze(Object.defineProperty(r,Symbol.toStringTag,{value:"Module"}))}const z=br(p),Cr=vr(mr);function Sr(r){return r&&r.__esModule&&Object.prototype.hasOwnProperty.call(r,"default")?r.default:r}var Fe={exports:{}},ye={};/**
2
2
  * @license React
3
3
  * react-jsx-runtime.production.min.js
4
4
  *
@@ -6,7 +6,7 @@
6
6
  *
7
7
  * This source code is licensed under the MIT license found in the
8
8
  * LICENSE file in the root directory of this source tree.
9
- */var Le;function Bt(){if(Le)return X;Le=1;var r=N.default,e=Symbol.for("react.element"),t=Symbol.for("react.fragment"),n=Object.prototype.hasOwnProperty,i=r.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,s={key:!0,ref:!0,__self:!0,__source:!0};function o(l,u,f){var g,h={},_=null,H=null;f!==void 0&&(_=""+f),u.key!==void 0&&(_=""+u.key),u.ref!==void 0&&(H=u.ref);for(g in u)n.call(u,g)&&!s.hasOwnProperty(g)&&(h[g]=u[g]);if(l&&l.defaultProps)for(g in u=l.defaultProps,u)h[g]===void 0&&(h[g]=u[g]);return{$$typeof:e,type:l,key:_,ref:H,props:h,_owner:i.current}}return X.Fragment=t,X.jsx=o,X.jsxs=o,X}var Q={};/**
9
+ */var mt;function wr(){if(mt)return ye;mt=1;var r=z.default,e=Symbol.for("react.element"),t=Symbol.for("react.fragment"),n=Object.prototype.hasOwnProperty,s=r.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,o={key:!0,ref:!0,__self:!0,__source:!0};function i(l,u,c){var g,d={},C=null,k=null;c!==void 0&&(C=""+c),u.key!==void 0&&(C=""+u.key),u.ref!==void 0&&(k=u.ref);for(g in u)n.call(u,g)&&!o.hasOwnProperty(g)&&(d[g]=u[g]);if(l&&l.defaultProps)for(g in u=l.defaultProps,u)d[g]===void 0&&(d[g]=u[g]);return{$$typeof:e,type:l,key:C,ref:k,props:d,_owner:s.current}}return ye.Fragment=t,ye.jsx=i,ye.jsxs=i,ye}var Ce={};/**
10
10
  * @license React
11
11
  * react-jsx-runtime.development.js
12
12
  *
@@ -14,27 +14,27 @@
14
14
  *
15
15
  * This source code is licensed under the MIT license found in the
16
16
  * LICENSE file in the root directory of this source tree.
17
- */var ze;function Zt(){return ze||(ze=1,process.env.NODE_ENV!=="production"&&function(){var r=N.default,e=Symbol.for("react.element"),t=Symbol.for("react.portal"),n=Symbol.for("react.fragment"),i=Symbol.for("react.strict_mode"),s=Symbol.for("react.profiler"),o=Symbol.for("react.provider"),l=Symbol.for("react.context"),u=Symbol.for("react.forward_ref"),f=Symbol.for("react.suspense"),g=Symbol.for("react.suspense_list"),h=Symbol.for("react.memo"),_=Symbol.for("react.lazy"),H=Symbol.for("react.offscreen"),G=Symbol.iterator,L="@@iterator";function ie(a){if(a===null||typeof a!="object")return null;var c=G&&a[G]||a[L];return typeof c=="function"?c:null}var Y=r.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;function T(a){{for(var c=arguments.length,d=new Array(c>1?c-1:0),v=1;v<c;v++)d[v-1]=arguments[v];Pe("error",a,d)}}function Pe(a,c,d){{var v=Y.ReactDebugCurrentFrame,C=v.getStackAddendum();C!==""&&(c+="%s",d=d.concat([C]));var R=d.map(function(w){return String(w)});R.unshift("Warning: "+c),Function.prototype.apply.call(console[a],console,R)}}var ke=!1,Xr=!1,Qr=!1,en=!1,tn=!1,xt;xt=Symbol.for("react.module.reference");function rn(a){return!!(typeof a=="string"||typeof a=="function"||a===n||a===s||tn||a===i||a===f||a===g||en||a===H||ke||Xr||Qr||typeof a=="object"&&a!==null&&(a.$$typeof===_||a.$$typeof===h||a.$$typeof===o||a.$$typeof===l||a.$$typeof===u||a.$$typeof===xt||a.getModuleId!==void 0))}function nn(a,c,d){var v=a.displayName;if(v)return v;var C=c.displayName||c.name||"";return C!==""?d+"("+C+")":d}function wt(a){return a.displayName||"Context"}function z(a){if(a==null)return null;if(typeof a.tag=="number"&&T("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),typeof a=="function")return a.displayName||a.name||null;if(typeof a=="string")return a;switch(a){case n:return"Fragment";case t:return"Portal";case s:return"Profiler";case i:return"StrictMode";case f:return"Suspense";case g:return"SuspenseList"}if(typeof a=="object")switch(a.$$typeof){case l:var c=a;return wt(c)+".Consumer";case o:var d=a;return wt(d._context)+".Provider";case u:return nn(a,a.render,"ForwardRef");case h:var v=a.displayName||null;return v!==null?v:z(a.type)||"Memo";case _:{var C=a,R=C._payload,w=C._init;try{return z(w(R))}catch{return null}}}return null}var U=Object.assign,se=0,Ct,St,_t,Rt,Et,jt,Ot;function Tt(){}Tt.__reactDisabledLog=!0;function an(){{if(se===0){Ct=console.log,St=console.info,_t=console.warn,Rt=console.error,Et=console.group,jt=console.groupCollapsed,Ot=console.groupEnd;var a={configurable:!0,enumerable:!0,value:Tt,writable:!0};Object.defineProperties(console,{info:a,log:a,warn:a,error:a,group:a,groupCollapsed:a,groupEnd:a})}se++}}function sn(){{if(se--,se===0){var a={configurable:!0,enumerable:!0,writable:!0};Object.defineProperties(console,{log:U({},a,{value:Ct}),info:U({},a,{value:St}),warn:U({},a,{value:_t}),error:U({},a,{value:Rt}),group:U({},a,{value:Et}),groupCollapsed:U({},a,{value:jt}),groupEnd:U({},a,{value:Ot})})}se<0&&T("disabledDepth fell below zero. This is a bug in React. Please file an issue.")}}var Ne=Y.ReactCurrentDispatcher,Ae;function pe(a,c,d){{if(Ae===void 0)try{throw Error()}catch(C){var v=C.stack.trim().match(/\n( *(at )?)/);Ae=v&&v[1]||""}return`
18
- `+Ae+a}}var De=!1,ve;{var on=typeof WeakMap=="function"?WeakMap:Map;ve=new on}function Pt(a,c){if(!a||De)return"";{var d=ve.get(a);if(d!==void 0)return d}var v;De=!0;var C=Error.prepareStackTrace;Error.prepareStackTrace=void 0;var R;R=Ne.current,Ne.current=null,an();try{if(c){var w=function(){throw Error()};if(Object.defineProperty(w.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(w,[])}catch(M){v=M}Reflect.construct(a,[],w)}else{try{w.call()}catch(M){v=M}a.call(w.prototype)}}else{try{throw Error()}catch(M){v=M}a()}}catch(M){if(M&&v&&typeof M.stack=="string"){for(var y=M.stack.split(`
19
- `),$=v.stack.split(`
20
- `),j=y.length-1,O=$.length-1;j>=1&&O>=0&&y[j]!==$[O];)O--;for(;j>=1&&O>=0;j--,O--)if(y[j]!==$[O]){if(j!==1||O!==1)do if(j--,O--,O<0||y[j]!==$[O]){var I=`
21
- `+y[j].replace(" at new "," at ");return a.displayName&&I.includes("<anonymous>")&&(I=I.replace("<anonymous>",a.displayName)),typeof a=="function"&&ve.set(a,I),I}while(j>=1&&O>=0);break}}}finally{De=!1,Ne.current=R,sn(),Error.prepareStackTrace=C}var K=a?a.displayName||a.name:"",B=K?pe(K):"";return typeof a=="function"&&ve.set(a,B),B}function cn(a,c,d){return Pt(a,!1)}function ln(a){var c=a.prototype;return!!(c&&c.isReactComponent)}function me(a,c,d){if(a==null)return"";if(typeof a=="function")return Pt(a,ln(a));if(typeof a=="string")return pe(a);switch(a){case f:return pe("Suspense");case g:return pe("SuspenseList")}if(typeof a=="object")switch(a.$$typeof){case u:return cn(a.render);case h:return me(a.type,c,d);case _:{var v=a,C=v._payload,R=v._init;try{return me(R(C),c,d)}catch{}}}return""}var oe=Object.prototype.hasOwnProperty,kt={},Nt=Y.ReactDebugCurrentFrame;function be(a){if(a){var c=a._owner,d=me(a.type,a._source,c?c.type:null);Nt.setExtraStackFrame(d)}else Nt.setExtraStackFrame(null)}function un(a,c,d,v,C){{var R=Function.call.bind(oe);for(var w in a)if(R(a,w)){var y=void 0;try{if(typeof a[w]!="function"){var $=Error((v||"React class")+": "+d+" type `"+w+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof a[w]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw $.name="Invariant Violation",$}y=a[w](c,w,v,d,null,"SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED")}catch(j){y=j}y&&!(y instanceof Error)&&(be(C),T("%s: type specification of %s `%s` is invalid; the type checker function must return `null` or an `Error` but returned a %s. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).",v||"React class",d,w,typeof y),be(null)),y instanceof Error&&!(y.message in kt)&&(kt[y.message]=!0,be(C),T("Failed %s type: %s",d,y.message),be(null))}}}var fn=Array.isArray;function $e(a){return fn(a)}function dn(a){{var c=typeof Symbol=="function"&&Symbol.toStringTag,d=c&&a[Symbol.toStringTag]||a.constructor.name||"Object";return d}}function hn(a){try{return At(a),!1}catch{return!0}}function At(a){return""+a}function Dt(a){if(hn(a))return T("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.",dn(a)),At(a)}var ce=Y.ReactCurrentOwner,gn={key:!0,ref:!0,__self:!0,__source:!0},$t,Mt,Me;Me={};function pn(a){if(oe.call(a,"ref")){var c=Object.getOwnPropertyDescriptor(a,"ref").get;if(c&&c.isReactWarning)return!1}return a.ref!==void 0}function vn(a){if(oe.call(a,"key")){var c=Object.getOwnPropertyDescriptor(a,"key").get;if(c&&c.isReactWarning)return!1}return a.key!==void 0}function mn(a,c){if(typeof a.ref=="string"&&ce.current&&c&&ce.current.stateNode!==c){var d=z(ce.current.type);Me[d]||(T('Component "%s" contains the string ref "%s". Support for string refs will be removed in a future major release. This case cannot be automatically converted to an arrow function. We ask you to manually fix this case by using useRef() or createRef() instead. Learn more about using refs safely here: https://reactjs.org/link/strict-mode-string-ref',z(ce.current.type),a.ref),Me[d]=!0)}}function bn(a,c){{var d=function(){$t||($t=!0,T("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)",c))};d.isReactWarning=!0,Object.defineProperty(a,"key",{get:d,configurable:!0})}}function yn(a,c){{var d=function(){Mt||(Mt=!0,T("%s: `ref` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)",c))};d.isReactWarning=!0,Object.defineProperty(a,"ref",{get:d,configurable:!0})}}var xn=function(a,c,d,v,C,R,w){var y={$$typeof:e,type:a,key:c,ref:d,props:w,_owner:R};return y._store={},Object.defineProperty(y._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:!1}),Object.defineProperty(y,"_self",{configurable:!1,enumerable:!1,writable:!1,value:v}),Object.defineProperty(y,"_source",{configurable:!1,enumerable:!1,writable:!1,value:C}),Object.freeze&&(Object.freeze(y.props),Object.freeze(y)),y};function wn(a,c,d,v,C){{var R,w={},y=null,$=null;d!==void 0&&(Dt(d),y=""+d),vn(c)&&(Dt(c.key),y=""+c.key),pn(c)&&($=c.ref,mn(c,C));for(R in c)oe.call(c,R)&&!gn.hasOwnProperty(R)&&(w[R]=c[R]);if(a&&a.defaultProps){var j=a.defaultProps;for(R in j)w[R]===void 0&&(w[R]=j[R])}if(y||$){var O=typeof a=="function"?a.displayName||a.name||"Unknown":a;y&&bn(w,O),$&&yn(w,O)}return xn(a,y,$,C,v,ce.current,w)}}var Ie=Y.ReactCurrentOwner,It=Y.ReactDebugCurrentFrame;function J(a){if(a){var c=a._owner,d=me(a.type,a._source,c?c.type:null);It.setExtraStackFrame(d)}else It.setExtraStackFrame(null)}var He;He=!1;function Ye(a){return typeof a=="object"&&a!==null&&a.$$typeof===e}function Ht(){{if(Ie.current){var a=z(Ie.current.type);if(a)return`
17
+ */var vt;function xr(){return vt||(vt=1,process.env.NODE_ENV!=="production"&&function(){var r=z.default,e=Symbol.for("react.element"),t=Symbol.for("react.portal"),n=Symbol.for("react.fragment"),s=Symbol.for("react.strict_mode"),o=Symbol.for("react.profiler"),i=Symbol.for("react.provider"),l=Symbol.for("react.context"),u=Symbol.for("react.forward_ref"),c=Symbol.for("react.suspense"),g=Symbol.for("react.suspense_list"),d=Symbol.for("react.memo"),C=Symbol.for("react.lazy"),k=Symbol.for("react.offscreen"),D=Symbol.iterator,A="@@iterator";function V(a){if(a===null||typeof a!="object")return null;var f=D&&a[D]||a[A];return typeof f=="function"?f:null}var N=r.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;function S(a){{for(var f=arguments.length,h=new Array(f>1?f-1:0),y=1;y<f;y++)h[y-1]=arguments[y];P("error",a,h)}}function P(a,f,h){{var y=N.ReactDebugCurrentFrame,E=y.getStackAddendum();E!==""&&(f+="%s",h=h.concat([E]));var j=h.map(function(_){return String(_)});j.unshift("Warning: "+f),Function.prototype.apply.call(console[a],console,j)}}var L=!1,Z=!1,se=!1,J=!1,je=!1,X;X=Symbol.for("react.module.reference");function ue(a){return!!(typeof a=="string"||typeof a=="function"||a===n||a===o||je||a===s||a===c||a===g||J||a===k||L||Z||se||typeof a=="object"&&a!==null&&(a.$$typeof===C||a.$$typeof===d||a.$$typeof===i||a.$$typeof===l||a.$$typeof===u||a.$$typeof===X||a.getModuleId!==void 0))}function Pe(a,f,h){var y=a.displayName;if(y)return y;var E=f.displayName||f.name||"";return E!==""?h+"("+E+")":h}function F(a){return a.displayName||"Context"}function $(a){if(a==null)return null;if(typeof a.tag=="number"&&S("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),typeof a=="function")return a.displayName||a.name||null;if(typeof a=="string")return a;switch(a){case n:return"Fragment";case t:return"Portal";case o:return"Profiler";case s:return"StrictMode";case c:return"Suspense";case g:return"SuspenseList"}if(typeof a=="object")switch(a.$$typeof){case l:var f=a;return F(f)+".Consumer";case i:var h=a;return F(h._context)+".Provider";case u:return Pe(a,a.render,"ForwardRef");case d:var y=a.displayName||null;return y!==null?y:$(a.type)||"Memo";case C:{var E=a,j=E._payload,_=E._init;try{return $(_(j))}catch{return null}}}return null}var U=Object.assign,R=0,Y,te,G,fe,re,ze,er;function tr(){}tr.__reactDisabledLog=!0;function Bn(){{if(R===0){Y=console.log,te=console.info,G=console.warn,fe=console.error,re=console.group,ze=console.groupCollapsed,er=console.groupEnd;var a={configurable:!0,enumerable:!0,value:tr,writable:!0};Object.defineProperties(console,{info:a,log:a,warn:a,error:a,group:a,groupCollapsed:a,groupEnd:a})}R++}}function Wn(){{if(R--,R===0){var a={configurable:!0,enumerable:!0,writable:!0};Object.defineProperties(console,{log:U({},a,{value:Y}),info:U({},a,{value:te}),warn:U({},a,{value:G}),error:U({},a,{value:fe}),group:U({},a,{value:re}),groupCollapsed:U({},a,{value:ze}),groupEnd:U({},a,{value:er})})}R<0&&S("disabledDepth fell below zero. This is a bug in React. Please file an issue.")}}var it=N.ReactCurrentDispatcher,ct;function Ye(a,f,h){{if(ct===void 0)try{throw Error()}catch(E){var y=E.stack.trim().match(/\n( *(at )?)/);ct=y&&y[1]||""}return`
18
+ `+ct+a}}var lt=!1,He;{var qn=typeof WeakMap=="function"?WeakMap:Map;He=new qn}function rr(a,f){if(!a||lt)return"";{var h=He.get(a);if(h!==void 0)return h}var y;lt=!0;var E=Error.prepareStackTrace;Error.prepareStackTrace=void 0;var j;j=it.current,it.current=null,Bn();try{if(f){var _=function(){throw Error()};if(Object.defineProperty(_.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(_,[])}catch(K){y=K}Reflect.construct(a,[],_)}else{try{_.call()}catch(K){y=K}a.call(_.prototype)}}else{try{throw Error()}catch(K){y=K}a()}}catch(K){if(K&&y&&typeof K.stack=="string"){for(var x=K.stack.split(`
19
+ `),q=y.stack.split(`
20
+ `),M=x.length-1,I=q.length-1;M>=1&&I>=0&&x[M]!==q[I];)I--;for(;M>=1&&I>=0;M--,I--)if(x[M]!==q[I]){if(M!==1||I!==1)do if(M--,I--,I<0||x[M]!==q[I]){var Q=`
21
+ `+x[M].replace(" at new "," at ");return a.displayName&&Q.includes("<anonymous>")&&(Q=Q.replace("<anonymous>",a.displayName)),typeof a=="function"&&He.set(a,Q),Q}while(M>=1&&I>=0);break}}}finally{lt=!1,it.current=j,Wn(),Error.prepareStackTrace=E}var be=a?a.displayName||a.name:"",de=be?Ye(be):"";return typeof a=="function"&&He.set(a,de),de}function Zn(a,f,h){return rr(a,!1)}function Gn(a){var f=a.prototype;return!!(f&&f.isReactComponent)}function Le(a,f,h){if(a==null)return"";if(typeof a=="function")return rr(a,Gn(a));if(typeof a=="string")return Ye(a);switch(a){case c:return Ye("Suspense");case g:return Ye("SuspenseList")}if(typeof a=="object")switch(a.$$typeof){case u:return Zn(a.render);case d:return Le(a.type,f,h);case C:{var y=a,E=y._payload,j=y._init;try{return Le(j(E),f,h)}catch{}}}return""}var Te=Object.prototype.hasOwnProperty,nr={},ar=N.ReactDebugCurrentFrame;function Ve(a){if(a){var f=a._owner,h=Le(a.type,a._source,f?f.type:null);ar.setExtraStackFrame(h)}else ar.setExtraStackFrame(null)}function Kn(a,f,h,y,E){{var j=Function.call.bind(Te);for(var _ in a)if(j(a,_)){var x=void 0;try{if(typeof a[_]!="function"){var q=Error((y||"React class")+": "+h+" type `"+_+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof a[_]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw q.name="Invariant Violation",q}x=a[_](f,_,y,h,null,"SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED")}catch(M){x=M}x&&!(x instanceof Error)&&(Ve(E),S("%s: type specification of %s `%s` is invalid; the type checker function must return `null` or an `Error` but returned a %s. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).",y||"React class",h,_,typeof x),Ve(null)),x instanceof Error&&!(x.message in nr)&&(nr[x.message]=!0,Ve(E),S("Failed %s type: %s",h,x.message),Ve(null))}}}var Jn=Array.isArray;function ut(a){return Jn(a)}function Xn(a){{var f=typeof Symbol=="function"&&Symbol.toStringTag,h=f&&a[Symbol.toStringTag]||a.constructor.name||"Object";return h}}function Qn(a){try{return sr(a),!1}catch{return!0}}function sr(a){return""+a}function or(a){if(Qn(a))return S("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.",Xn(a)),sr(a)}var ke=N.ReactCurrentOwner,ea={key:!0,ref:!0,__self:!0,__source:!0},ir,cr,ft;ft={};function ta(a){if(Te.call(a,"ref")){var f=Object.getOwnPropertyDescriptor(a,"ref").get;if(f&&f.isReactWarning)return!1}return a.ref!==void 0}function ra(a){if(Te.call(a,"key")){var f=Object.getOwnPropertyDescriptor(a,"key").get;if(f&&f.isReactWarning)return!1}return a.key!==void 0}function na(a,f){if(typeof a.ref=="string"&&ke.current&&f&&ke.current.stateNode!==f){var h=$(ke.current.type);ft[h]||(S('Component "%s" contains the string ref "%s". Support for string refs will be removed in a future major release. This case cannot be automatically converted to an arrow function. We ask you to manually fix this case by using useRef() or createRef() instead. Learn more about using refs safely here: https://reactjs.org/link/strict-mode-string-ref',$(ke.current.type),a.ref),ft[h]=!0)}}function aa(a,f){{var h=function(){ir||(ir=!0,S("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)",f))};h.isReactWarning=!0,Object.defineProperty(a,"key",{get:h,configurable:!0})}}function sa(a,f){{var h=function(){cr||(cr=!0,S("%s: `ref` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)",f))};h.isReactWarning=!0,Object.defineProperty(a,"ref",{get:h,configurable:!0})}}var oa=function(a,f,h,y,E,j,_){var x={$$typeof:e,type:a,key:f,ref:h,props:_,_owner:j};return x._store={},Object.defineProperty(x._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:!1}),Object.defineProperty(x,"_self",{configurable:!1,enumerable:!1,writable:!1,value:y}),Object.defineProperty(x,"_source",{configurable:!1,enumerable:!1,writable:!1,value:E}),Object.freeze&&(Object.freeze(x.props),Object.freeze(x)),x};function ia(a,f,h,y,E){{var j,_={},x=null,q=null;h!==void 0&&(or(h),x=""+h),ra(f)&&(or(f.key),x=""+f.key),ta(f)&&(q=f.ref,na(f,E));for(j in f)Te.call(f,j)&&!ea.hasOwnProperty(j)&&(_[j]=f[j]);if(a&&a.defaultProps){var M=a.defaultProps;for(j in M)_[j]===void 0&&(_[j]=M[j])}if(x||q){var I=typeof a=="function"?a.displayName||a.name||"Unknown":a;x&&aa(_,I),q&&sa(_,I)}return oa(a,x,q,E,y,ke.current,_)}}var dt=N.ReactCurrentOwner,lr=N.ReactDebugCurrentFrame;function ve(a){if(a){var f=a._owner,h=Le(a.type,a._source,f?f.type:null);lr.setExtraStackFrame(h)}else lr.setExtraStackFrame(null)}var ht;ht=!1;function gt(a){return typeof a=="object"&&a!==null&&a.$$typeof===e}function ur(){{if(dt.current){var a=$(dt.current.type);if(a)return`
22
22
 
23
- Check the render method of \``+a+"`."}return""}}function Cn(a){{if(a!==void 0){var c=a.fileName.replace(/^.*[\\\/]/,""),d=a.lineNumber;return`
23
+ Check the render method of \``+a+"`."}return""}}function ca(a){{if(a!==void 0){var f=a.fileName.replace(/^.*[\\\/]/,""),h=a.lineNumber;return`
24
24
 
25
- Check your code at `+c+":"+d+"."}return""}}var Yt={};function Sn(a){{var c=Ht();if(!c){var d=typeof a=="string"?a:a.displayName||a.name;d&&(c=`
25
+ Check your code at `+f+":"+h+"."}return""}}var fr={};function la(a){{var f=ur();if(!f){var h=typeof a=="string"?a:a.displayName||a.name;h&&(f=`
26
26
 
27
- Check the top-level render call using <`+d+">.")}return c}}function Vt(a,c){{if(!a._store||a._store.validated||a.key!=null)return;a._store.validated=!0;var d=Sn(c);if(Yt[d])return;Yt[d]=!0;var v="";a&&a._owner&&a._owner!==Ie.current&&(v=" It was passed a child from "+z(a._owner.type)+"."),J(a),T('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.',d,v),J(null)}}function Lt(a,c){{if(typeof a!="object")return;if($e(a))for(var d=0;d<a.length;d++){var v=a[d];Ye(v)&&Vt(v,c)}else if(Ye(a))a._store&&(a._store.validated=!0);else if(a){var C=ie(a);if(typeof C=="function"&&C!==a.entries)for(var R=C.call(a),w;!(w=R.next()).done;)Ye(w.value)&&Vt(w.value,c)}}}function _n(a){{var c=a.type;if(c==null||typeof c=="string")return;var d;if(typeof c=="function")d=c.propTypes;else if(typeof c=="object"&&(c.$$typeof===u||c.$$typeof===h))d=c.propTypes;else return;if(d){var v=z(c);un(d,a.props,"prop",v,a)}else if(c.PropTypes!==void 0&&!He){He=!0;var C=z(c);T("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?",C||"Unknown")}typeof c.getDefaultProps=="function"&&!c.getDefaultProps.isReactClassApproved&&T("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.")}}function Rn(a){{for(var c=Object.keys(a.props),d=0;d<c.length;d++){var v=c[d];if(v!=="children"&&v!=="key"){J(a),T("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.",v),J(null);break}}a.ref!==null&&(J(a),T("Invalid attribute `ref` supplied to `React.Fragment`."),J(null))}}var zt={};function Wt(a,c,d,v,C,R){{var w=rn(a);if(!w){var y="";(a===void 0||typeof a=="object"&&a!==null&&Object.keys(a).length===0)&&(y+=" You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.");var $=Cn(C);$?y+=$:y+=Ht();var j;a===null?j="null":$e(a)?j="array":a!==void 0&&a.$$typeof===e?(j="<"+(z(a.type)||"Unknown")+" />",y=" Did you accidentally export a JSX literal instead of a component?"):j=typeof a,T("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s",j,y)}var O=wn(a,c,d,C,R);if(O==null)return O;if(w){var I=c.children;if(I!==void 0)if(v)if($e(I)){for(var K=0;K<I.length;K++)Lt(I[K],a);Object.freeze&&Object.freeze(I)}else T("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");else Lt(I,a)}if(oe.call(c,"key")){var B=z(a),M=Object.keys(c).filter(function(kn){return kn!=="key"}),Ve=M.length>0?"{key: someKey, "+M.join(": ..., ")+": ...}":"{key: someKey}";if(!zt[B+Ve]){var Pn=M.length>0?"{"+M.join(": ..., ")+": ...}":"{}";T(`A props object containing a "key" prop is being spread into JSX:
27
+ Check the top-level render call using <`+h+">.")}return f}}function dr(a,f){{if(!a._store||a._store.validated||a.key!=null)return;a._store.validated=!0;var h=la(f);if(fr[h])return;fr[h]=!0;var y="";a&&a._owner&&a._owner!==dt.current&&(y=" It was passed a child from "+$(a._owner.type)+"."),ve(a),S('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.',h,y),ve(null)}}function hr(a,f){{if(typeof a!="object")return;if(ut(a))for(var h=0;h<a.length;h++){var y=a[h];gt(y)&&dr(y,f)}else if(gt(a))a._store&&(a._store.validated=!0);else if(a){var E=V(a);if(typeof E=="function"&&E!==a.entries)for(var j=E.call(a),_;!(_=j.next()).done;)gt(_.value)&&dr(_.value,f)}}}function ua(a){{var f=a.type;if(f==null||typeof f=="string")return;var h;if(typeof f=="function")h=f.propTypes;else if(typeof f=="object"&&(f.$$typeof===u||f.$$typeof===d))h=f.propTypes;else return;if(h){var y=$(f);Kn(h,a.props,"prop",y,a)}else if(f.PropTypes!==void 0&&!ht){ht=!0;var E=$(f);S("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?",E||"Unknown")}typeof f.getDefaultProps=="function"&&!f.getDefaultProps.isReactClassApproved&&S("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.")}}function fa(a){{for(var f=Object.keys(a.props),h=0;h<f.length;h++){var y=f[h];if(y!=="children"&&y!=="key"){ve(a),S("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.",y),ve(null);break}}a.ref!==null&&(ve(a),S("Invalid attribute `ref` supplied to `React.Fragment`."),ve(null))}}var gr={};function pr(a,f,h,y,E,j){{var _=ue(a);if(!_){var x="";(a===void 0||typeof a=="object"&&a!==null&&Object.keys(a).length===0)&&(x+=" You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.");var q=ca(E);q?x+=q:x+=ur();var M;a===null?M="null":ut(a)?M="array":a!==void 0&&a.$$typeof===e?(M="<"+($(a.type)||"Unknown")+" />",x=" Did you accidentally export a JSX literal instead of a component?"):M=typeof a,S("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s",M,x)}var I=ia(a,f,h,E,j);if(I==null)return I;if(_){var Q=f.children;if(Q!==void 0)if(y)if(ut(Q)){for(var be=0;be<Q.length;be++)hr(Q[be],a);Object.freeze&&Object.freeze(Q)}else S("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");else hr(Q,a)}if(Te.call(f,"key")){var de=$(a),K=Object.keys(f).filter(function(va){return va!=="key"}),pt=K.length>0?"{key: someKey, "+K.join(": ..., ")+": ...}":"{key: someKey}";if(!gr[de+pt]){var ma=K.length>0?"{"+K.join(": ..., ")+": ...}":"{}";S(`A props object containing a "key" prop is being spread into JSX:
28
28
  let props = %s;
29
29
  <%s {...props} />
30
30
  React keys must be passed directly to JSX without using spread:
31
31
  let props = %s;
32
- <%s key={someKey} {...props} />`,Ve,B,Pn,B),zt[B+Ve]=!0}}return a===n?Rn(O):_n(O),O}}function En(a,c,d){return Wt(a,c,d,!0)}function jn(a,c,d){return Wt(a,c,d,!1)}var On=jn,Tn=En;Q.Fragment=n,Q.jsx=On,Q.jsxs=Tn}()),Q}process.env.NODE_ENV==="production"?ye.exports=Bt():ye.exports=Zt();var m=ye.exports;class qt{constructor(){p(this,"add",function(e,t){let n,i,s,o;try{n=e.toString().split(".")[1].length}catch{n=0}try{i=t.toString().split(".")[1].length}catch{i=0}if(o=Math.abs(n-i),s=Math.pow(10,Math.max(n,i)),o>0){let l=Math.pow(10,o);n>i?(e=Number(e.toString().replace(".","")),t=Number(t.toString().replace(".",""))*l):(e=Number(e.toString().replace(".",""))*l,t=Number(t.toString().replace(".","")))}else e=Number(e==null?void 0:e.toString().replace(".","")),t=Number(t==null?void 0:t.toString().replace(".",""));return(e+t)/s});p(this,"sub",function(e,t){let n,i,s,o;try{n=e.toString().split(".")[1].length}catch{n=0}try{i=t.toString().split(".")[1].length}catch{i=0}return s=Math.pow(10,Math.max(n,i)),o=n>=i?n:i,Number(((e*s-t*s)/s).toFixed(o))});p(this,"mul",function(e,t){let n=0,i=e.toString(),s=t.toString();try{n+=i.split(".")[1].length}catch{}try{n+=s.split(".")[1].length}catch{}return Number(i.replace(".",""))*Number(s.replace(".",""))/Math.pow(10,n)});p(this,"div",function(e,t){let n=0,i=0,s,o;try{n=e.toString().split(".")[1].length}catch{}try{i=t.toString().split(".")[1].length}catch{}return s=Number(e.toString().replace(".","")),o=Number(t.toString().replace(".","")),s/o*Math.pow(10,i-n)})}}const Gt=new qt,ae=class ae{constructor(){p(this,"callbacks",[]);p(this,"pending",!1);p(this,"timerFunc");this.timerFunc=this.determineTimerFunc()}determineTimerFunc(){if(typeof Promise<"u"){const e=Promise.resolve();return()=>e.then(this.flushCallbacks.bind(this))}if(typeof MutationObserver<"u"&&typeof window<"u"){let e=1;const t=new MutationObserver(this.flushCallbacks.bind(this)),n=document.createTextNode(String(e));return t.observe(n,{characterData:!0}),()=>{e=(e+1)%2,n.data=String(e)}}return()=>setTimeout(this.flushCallbacks.bind(this),0)}flushCallbacks(){this.pending=!1;const e=this.callbacks.slice(0);this.callbacks.length=0;for(let t=0;t<e.length;t++)e[t]()}nextTick(e,t){let n;if(this.callbacks.push(()=>{if(e)try{e.call(t)}catch(i){console.error("Error in nextTick:",i)}else n&&n()}),this.pending||(this.pending=!0,this.timerFunc()),!e&&typeof Promise<"u")return new Promise(i=>{n=i})}static nextTick(e,t){return ae.instance.nextTick(e,t)}static get instance(){return this._instance||(this._instance=new ae),this._instance}};p(ae,"_instance");let ee=ae;const Jt=ee.instance.nextTick.bind(ee.instance),Kt=()=>{},le=(r,e)=>{const t=r;let n=r;if(e.includes(" ")){n="";const i=e==null?void 0:e.split(" ");for(const s of i)n+=` ${t}-${s}`}else e&&(n=`${r}-${e}`);return n},Xt=(r,e)=>{const t=e==null?void 0:e.split(".");let n=r;for(const i of t)n=n[i];return n},Qt=r=>{for(const e in r)r[e]===null&&delete r[e];return r},er=(r,e)=>{let t=null;return(...n)=>{t&&clearTimeout(t),t=setTimeout(()=>{r(...n)},e)}},tr=(r,e)=>{let t=null,n=0;return(...i)=>{const s=Date.now();t?s-n>=e&&(r(...i),n=s):(r(...i),n=s,t=setTimeout(()=>{t=null},e))}};class rr{static isValid(e){return/^v?(0|[1-9]\d*)\.(0|[1-9]\d*)\.(0|[1-9]\d*)(?:-((?:0|[1-9]\d*|\d*[a-zA-Z-][0-9a-zA-Z-]*)(?:\.(?:0|[1-9]\d*|\d*[a-zA-Z-][0-9a-zA-Z-]*))*))?(?:\+([0-9a-zA-Z-]+(?:\.[0-9a-zA-Z-]+)*))?$/i.test(e)}static compare(e,t){if(!this.isValid(e)||!this.isValid(t))throw new Error("Invalid version format");const n=u=>u.replace(/^v/,"").split(/[-+]/)[0].split("."),i=n(e),s=n(t);for(let u=0;u<3;u++){const f=parseInt(i[u]||"0",10),g=parseInt(s[u]||"0",10);if(f>g)return 1;if(f<g)return-1}const o=e.match(/-(.+)/),l=t.match(/-(.+)/);return o&&!l?-1:!o&&l?1:o&&l?o[1].localeCompare(l[1]):0}static satisfies(e,t){if(!this.isValid(e))return!1;const n=/([<>]=?|==?|\^|~)?\s*v?([0-9]+\.[0-9]+\.[0-9]+(?:-[0-9A-Za-z-]+(?:\.[0-9A-Za-z-]+)*)?(?:\+[0-9A-Za-z-]+)?)/g,i=t.match(n);return!i||i.length===0?!1:i.every(s=>{const o=s.match(/([<>]=?|==?|\^|~)?\s*(v?[0-9].*)/);if(!o)return!1;const l=o[1]||"==",u=o[2];if(!this.isValid(u))return!1;const f=this.compare(e,u);switch(l){case">":return f>0;case">=":return f>=0;case"<":return f<0;case"<=":return f<=0;case"^":return this.caretRange(e,u);case"~":return this.tildeRange(e,u);case"=":case"==":default:return f===0}})}static caretRange(e,t){const n=l=>l.replace(/^v/,"").split(/[-+]/)[0].split("."),i=n(e),s=n(t);let o=0;for(let l=0;l<s.length;l++)if(parseInt(s[l],10)!==0){o=l;break}for(let l=0;l<=o;l++){const u=parseInt(i[l]||"0",10),f=parseInt(s[l]||"0",10);if(u!==f)return!1}return this.compare(e,t)>=0}static tildeRange(e,t){const n=u=>u.replace(/^v/,"").split(/[-+]/)[0].split("."),i=n(e),s=n(t);for(let u=0;u<s.length-1;u++){const f=parseInt(i[u]||"0",10),g=parseInt(s[u]||"0",10);if(f!==g)return!1}const o=parseInt(i[s.length-1]||"0",10),l=parseInt(s[s.length-1]||"0",10);return o>=l}static getMajor(e){if(!this.isValid(e))throw new Error("Invalid version format");const t=e.replace(/^v/,"").split(".");return parseInt(t[0],10)}static getMinor(e){if(!this.isValid(e))throw new Error("Invalid version format");const t=e.replace(/^v/,"").split(".");return parseInt(t[1]||"0",10)}static getPatch(e){if(!this.isValid(e))throw new Error("Invalid version format");const t=e.replace(/^v/,"").split(".");return parseInt(t[2]||"0",10)}static getPrerelease(e){if(!this.isValid(e))throw new Error("Invalid version format");const t=e.match(/-([^+]+)/);return t?t[1]:null}static getBuildMetadata(e){if(!this.isValid(e))throw new Error("Invalid version format");const t=e.match(/\+([^]+)/);return t?t[1]:null}}const We=P.createContext({theme:{cssVar:!0,algorithm:[x.theme.defaultAlgorithm]}}),nr=We.Provider;function Fe(){return P.useContext(We)}function Z(r){const{theme:e}=Fe();return m.jsx(x.ConfigProvider,{theme:e,children:r.children})}const Ue=(r="")=>le("items-row",r),Be=r=>r.items?m.jsx(Z,{children:m.jsx("div",{className:`${Ue()} ${r.className||""}`,style:r.style,children:(r.items||[]).map((e,t)=>{const n=`${Ue("item")} ${e.className}`;return e.render?m.jsx("span",{className:n,children:e.render()},t):m.jsx(x.Button,{className:n,...e.btnProps,type:e.type||"primary",onClick:e.onClick,children:e.label},e.label)})})}):null,Dn="",te=(r="")=>le("m-breadcrumb",r),ar=r=>{const{routes:e,customItems:t,style:n,className:i,offsetTop:s=64,mainAppBaseUrl:o,microAppName:l}=r,u=N.useRef(null),f=N.useCallback(()=>{var h,_;(_=(h=u.current)==null?void 0:h.updatePosition)==null||_.call(h)},[]);N.useEffect(()=>(window.addEventListener("scroll",f,!0),()=>window.removeEventListener("scroll",f)),[f]);const g=N.useCallback(h=>{if(!h)return"";const _=h.replace(/^\/+/,"");return`/${[o==null?void 0:o.replace(/\/+$/,""),l==null?void 0:l.replace(/\/+$/,""),_].filter(Boolean).join("/")}`},[o,l]);return m.jsx(Z,{children:m.jsx("div",{className:`${te()} ${i||""}`,style:n,children:m.jsx(x.Affix,{ref:u,offsetTop:s,children:m.jsxs(x.Card,{className:te("container"),rootClassName:te("body"),variant:"borderless",children:[m.jsx(x.Breadcrumb,{className:te("inner-breadcrumb"),style:{fontSize:"18px"},children:e==null?void 0:e.map(h=>m.jsx(x.Breadcrumb.Item,{children:h.url?m.jsx("a",{href:`#${g(h.url)}`,children:h.name}):h.name},h.url||h.name))}),m.jsx("div",{className:te("custom-item-wrapper"),children:m.jsx(Be,{items:t})})]})})})})},Ze=r=>{const{data:e,title:t,column:n=3,lineHeight:i,align:s="left",itemLayout:o,colon:l=!0,bordered:u=!1,style:f,className:g,labelStyle:h,contentStyle:_}=r,H={...i?{lineHeight:`${i}px`}:{},textAlign:s,...o!=null&&o.label?{width:`${o.label}px`}:{},...h},G={...i?{lineHeight:`${i}px`}:{},...o!=null&&o.value?{width:`${o.value}px`}:{},..._};return m.jsx(Z,{children:m.jsx(x.Descriptions,{title:t,column:n,colon:l,bordered:u,style:f,className:g,labelStyle:H,contentStyle:G,children:e.map((L,ie)=>{var Y;return m.jsx(x.Descriptions.Item,{label:L.label,span:L.span,children:L.value||"-"},((Y=L.label)==null?void 0:Y.toString())||ie)})})})};Ze.displayName="MDescriptions";const $n="";var ir=P.createContext({});const qe=ir;function ue(){return ue=Object.assign?Object.assign.bind():function(r){for(var e=1;e<arguments.length;e++){var t=arguments[e];for(var n in t)({}).hasOwnProperty.call(t,n)&&(r[n]=t[n])}return r},ue.apply(null,arguments)}function sr(r){if(Array.isArray(r))return r}function or(r,e){var t=r==null?null:typeof Symbol<"u"&&r[Symbol.iterator]||r["@@iterator"];if(t!=null){var n,i,s,o,l=[],u=!0,f=!1;try{if(s=(t=t.call(r)).next,e===0){if(Object(t)!==t)return;u=!1}else for(;!(u=(n=s.call(t)).done)&&(l.push(n.value),l.length!==e);u=!0);}catch(g){f=!0,i=g}finally{try{if(!u&&t.return!=null&&(o=t.return(),Object(o)!==o))return}finally{if(f)throw i}}return l}}function Ge(r,e){(e==null||e>r.length)&&(e=r.length);for(var t=0,n=Array(e);t<e;t++)n[t]=r[t];return n}function cr(r,e){if(r){if(typeof r=="string")return Ge(r,e);var t={}.toString.call(r).slice(8,-1);return t==="Object"&&r.constructor&&(t=r.constructor.name),t==="Map"||t==="Set"?Array.from(r):t==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t)?Ge(r,e):void 0}}function lr(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
33
- In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Je(r,e){return sr(r)||or(r,e)||cr(r,e)||lr()}function W(r){"@babel/helpers - typeof";return W=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},W(r)}function ur(r,e){if(W(r)!="object"||!r)return r;var t=r[Symbol.toPrimitive];if(t!==void 0){var n=t.call(r,e||"default");if(W(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(r)}function fr(r){var e=ur(r,"string");return W(e)=="symbol"?e:e+""}function A(r,e,t){return(e=fr(e))in r?Object.defineProperty(r,e,{value:t,enumerable:!0,configurable:!0,writable:!0}):r[e]=t,r}function dr(r,e){if(r==null)return{};var t={};for(var n in r)if({}.hasOwnProperty.call(r,n)){if(e.indexOf(n)!==-1)continue;t[n]=r[n]}return t}function Ke(r,e){if(r==null)return{};var t,n,i=dr(r,e);if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(r);for(n=0;n<s.length;n++)t=s[n],e.indexOf(t)===-1&&{}.propertyIsEnumerable.call(r,t)&&(i[t]=r[t])}return i}var Xe={exports:{}};/*!
32
+ <%s key={someKey} {...props} />`,pt,de,ma,de),gr[de+pt]=!0}}return a===n?fa(I):ua(I),I}}function da(a,f,h){return pr(a,f,h,!0)}function ha(a,f,h){return pr(a,f,h,!1)}var ga=ha,pa=da;Ce.Fragment=n,Ce.jsx=ga,Ce.jsxs=pa}()),Ce}process.env.NODE_ENV==="production"?Fe.exports=wr():Fe.exports=xr();var m=Fe.exports;class _r{constructor(){v(this,"add",function(e,t){let n,s,o,i;try{n=e.toString().split(".")[1].length}catch{n=0}try{s=t.toString().split(".")[1].length}catch{s=0}if(i=Math.abs(n-s),o=Math.pow(10,Math.max(n,s)),i>0){let l=Math.pow(10,i);n>s?(e=Number(e.toString().replace(".","")),t=Number(t.toString().replace(".",""))*l):(e=Number(e.toString().replace(".",""))*l,t=Number(t.toString().replace(".","")))}else e=Number(e==null?void 0:e.toString().replace(".","")),t=Number(t==null?void 0:t.toString().replace(".",""));return(e+t)/o});v(this,"sub",function(e,t){let n,s,o,i;try{n=e.toString().split(".")[1].length}catch{n=0}try{s=t.toString().split(".")[1].length}catch{s=0}return o=Math.pow(10,Math.max(n,s)),i=n>=s?n:s,Number(((e*o-t*o)/o).toFixed(i))});v(this,"mul",function(e,t){let n=0,s=e.toString(),o=t.toString();try{n+=s.split(".")[1].length}catch{}try{n+=o.split(".")[1].length}catch{}return Number(s.replace(".",""))*Number(o.replace(".",""))/Math.pow(10,n)});v(this,"div",function(e,t){let n=0,s=0,o,i;try{n=e.toString().split(".")[1].length}catch{}try{s=t.toString().split(".")[1].length}catch{}return o=Number(e.toString().replace(".","")),i=Number(t.toString().replace(".","")),o/i*Math.pow(10,s-n)})}}const Er=new _r,Oe=class Oe{constructor(){v(this,"callbacks",[]);v(this,"pending",!1);v(this,"timerFunc");this.timerFunc=this.determineTimerFunc()}determineTimerFunc(){if(typeof Promise<"u"){const e=Promise.resolve();return()=>e.then(this.flushCallbacks.bind(this))}if(typeof MutationObserver<"u"&&typeof window<"u"){let e=1;const t=new MutationObserver(this.flushCallbacks.bind(this)),n=document.createTextNode(String(e));return t.observe(n,{characterData:!0}),()=>{e=(e+1)%2,n.data=String(e)}}return()=>setTimeout(this.flushCallbacks.bind(this),0)}flushCallbacks(){this.pending=!1;const e=this.callbacks.slice(0);this.callbacks.length=0;for(let t=0;t<e.length;t++)e[t]()}nextTick(e,t){let n;if(this.callbacks.push(()=>{if(e)try{e.call(t)}catch(s){console.error("Error in nextTick:",s)}else n&&n()}),this.pending||(this.pending=!0,this.timerFunc()),!e&&typeof Promise<"u")return new Promise(s=>{n=s})}static nextTick(e,t){return Oe.instance.nextTick(e,t)}static get instance(){return this._instance||(this._instance=new Oe),this._instance}};v(Oe,"_instance");let Se=Oe;const Rr=Se.instance.nextTick.bind(Se.instance);var he={},Ue,Be,we=Cr.default;if(process.env.NODE_ENV==="production")Be=he.createRoot=we.createRoot,Ue=he.hydrateRoot=we.hydrateRoot;else{var Ne=we.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;Be=he.createRoot=function(r,e){Ne.usingClientEntryPoint=!0;try{return we.createRoot(r,e)}finally{Ne.usingClientEntryPoint=!1}},Ue=he.hydrateRoot=function(r,e,t){Ne.usingClientEntryPoint=!0;try{return we.hydrateRoot(r,e,t)}finally{Ne.usingClientEntryPoint=!1}}}const Or=yr({__proto__:null,get createRoot(){return Be},default:he,get hydrateRoot(){return Ue}},[he]),{createRoot:jr}=Or;let ne=null,oe=null;function Pr(){return ne||(ne=document.createElement("div"),document.body.appendChild(ne)),ne}function bt(r,e){const t=Pr();let n={open:!0,...e,onClosed:e.onClosed||(c=>{u(c)})};if(!oe)try{oe=jr(t)}catch(c){return console.error("Failed to create root:",c),{destroy:()=>{},update:()=>{}}}const s=()=>{oe&&(oe.unmount(),oe=null),ne&&ne.parentNode&&(ne.parentNode.removeChild(ne),ne=null)},o=c=>{typeof n.onClosed=="function"&&n.onClosed(c),s()},i=c=>{oe&&oe.render(m.jsx(r,{...c}))},l=c=>{n=typeof c=="function"?c(n):{...n,...c},i(n)},u=c=>{n.open?(n={...n,open:!1,onClosed:g=>{e.onClosed&&e.onClosed(g||c),o(g||c)}},i(n)):console.warn("Modal is already closed.")};return i(n),{destroy:u,update:l}}const Tr=()=>{},xe=(r,e)=>{const t=r;let n=r;if(e.includes(" ")){n="";const s=e==null?void 0:e.split(" ");for(const o of s)n+=` ${t}-${o}`}else e&&(n=`${r}-${e}`);return n},kr=(r,e)=>{const t=e==null?void 0:e.split(".");let n=r;for(const s of t)n=n[s];return n},yt=r=>{for(const e in r)r[e]===null&&delete r[e];return r},We=(r,e)=>{let t=null;return(...n)=>{t&&clearTimeout(t),t=setTimeout(()=>{r(...n)},e)}},Nr=(r,e)=>{let t=null,n=0;return(...s)=>{const o=Date.now();t?o-n>=e&&(r(...s),n=o):(r(...s),n=o,t=setTimeout(()=>{t=null},e))}};class Dr{static isValid(e){return/^v?(0|[1-9]\d*)\.(0|[1-9]\d*)\.(0|[1-9]\d*)(?:-((?:0|[1-9]\d*|\d*[a-zA-Z-][0-9a-zA-Z-]*)(?:\.(?:0|[1-9]\d*|\d*[a-zA-Z-][0-9a-zA-Z-]*))*))?(?:\+([0-9a-zA-Z-]+(?:\.[0-9a-zA-Z-]+)*))?$/i.test(e)}static compare(e,t){if(!this.isValid(e)||!this.isValid(t))throw new Error("Invalid version format");const n=u=>u.replace(/^v/,"").split(/[-+]/)[0].split("."),s=n(e),o=n(t);for(let u=0;u<3;u++){const c=parseInt(s[u]||"0",10),g=parseInt(o[u]||"0",10);if(c>g)return 1;if(c<g)return-1}const i=e.match(/-(.+)/),l=t.match(/-(.+)/);return i&&!l?-1:!i&&l?1:i&&l?i[1].localeCompare(l[1]):0}static satisfies(e,t){if(!this.isValid(e))return!1;const n=/([<>]=?|==?|\^|~)?\s*v?([0-9]+\.[0-9]+\.[0-9]+(?:-[0-9A-Za-z-]+(?:\.[0-9A-Za-z-]+)*)?(?:\+[0-9A-Za-z-]+)?)/g,s=t.match(n);return!s||s.length===0?!1:s.every(o=>{const i=o.match(/([<>]=?|==?|\^|~)?\s*(v?[0-9].*)/);if(!i)return!1;const l=i[1]||"==",u=i[2];if(!this.isValid(u))return!1;const c=this.compare(e,u);switch(l){case">":return c>0;case">=":return c>=0;case"<":return c<0;case"<=":return c<=0;case"^":return this.caretRange(e,u);case"~":return this.tildeRange(e,u);case"=":case"==":default:return c===0}})}static caretRange(e,t){const n=l=>l.replace(/^v/,"").split(/[-+]/)[0].split("."),s=n(e),o=n(t);let i=0;for(let l=0;l<o.length;l++)if(parseInt(o[l],10)!==0){i=l;break}for(let l=0;l<=i;l++){const u=parseInt(s[l]||"0",10),c=parseInt(o[l]||"0",10);if(u!==c)return!1}return this.compare(e,t)>=0}static tildeRange(e,t){const n=u=>u.replace(/^v/,"").split(/[-+]/)[0].split("."),s=n(e),o=n(t);for(let u=0;u<o.length-1;u++){const c=parseInt(s[u]||"0",10),g=parseInt(o[u]||"0",10);if(c!==g)return!1}const i=parseInt(s[o.length-1]||"0",10),l=parseInt(o[o.length-1]||"0",10);return i>=l}static getMajor(e){if(!this.isValid(e))throw new Error("Invalid version format");const t=e.replace(/^v/,"").split(".");return parseInt(t[0],10)}static getMinor(e){if(!this.isValid(e))throw new Error("Invalid version format");const t=e.replace(/^v/,"").split(".");return parseInt(t[1]||"0",10)}static getPatch(e){if(!this.isValid(e))throw new Error("Invalid version format");const t=e.replace(/^v/,"").split(".");return parseInt(t[2]||"0",10)}static getPrerelease(e){if(!this.isValid(e))throw new Error("Invalid version format");const t=e.match(/-([^+]+)/);return t?t[1]:null}static getBuildMetadata(e){if(!this.isValid(e))throw new Error("Invalid version format");const t=e.match(/\+([^]+)/);return t?t[1]:null}}const Ct=p.createContext({theme:{cssVar:!0,algorithm:[w.theme.defaultAlgorithm]}}),Ar=Ct.Provider;function St(){return p.useContext(Ct)}function ie(r){const{theme:e}=St();return m.jsx(w.ConfigProvider,{theme:e,children:r.children})}const wt=(r="")=>xe("items-row",r),xt=r=>r.items?m.jsx(ie,{children:m.jsx("div",{className:`${wt()} ${r.className||""}`,style:r.style,children:(r.items||[]).map((e,t)=>{const n=`${wt("item")} ${e.className}`;return e.render?m.jsx("span",{className:n,children:e.render()},t):m.jsx(w.Button,{className:n,...e.btnProps,type:e.type||"primary",onClick:e.onClick,children:e.label},e.label)})})}):null,Ca="",_e=(r="")=>xe("m-breadcrumb",r),$r=r=>{const{routes:e,customItems:t,style:n,className:s,offsetTop:o=64,mainAppBaseUrl:i,microAppName:l}=r,u=z.useRef(null),c=z.useCallback(()=>{var d,C;(C=(d=u.current)==null?void 0:d.updatePosition)==null||C.call(d)},[]);z.useEffect(()=>(window.addEventListener("scroll",c,!0),()=>window.removeEventListener("scroll",c)),[c]);const g=z.useCallback(d=>{if(!d)return"";const C=d.replace(/^\/+/,"");return`/${[i==null?void 0:i.replace(/\/+$/,""),l==null?void 0:l.replace(/\/+$/,""),C].filter(Boolean).join("/")}`},[i,l]);return m.jsx(ie,{children:m.jsx("div",{className:`${_e()} ${s||""}`,style:n,children:m.jsx(w.Affix,{ref:u,offsetTop:o,children:m.jsxs(w.Card,{className:_e("container"),rootClassName:_e("body"),variant:"borderless",children:[m.jsx(w.Breadcrumb,{className:_e("inner-breadcrumb"),style:{fontSize:"18px"},children:e==null?void 0:e.map(d=>m.jsx(w.Breadcrumb.Item,{children:d.url?m.jsx("a",{href:`#${g(d.url)}`,children:d.name}):d.name},d.url||d.name))}),m.jsx("div",{className:_e("custom-item-wrapper"),children:m.jsx(xt,{items:t})})]})})})})},_t=r=>{const{data:e,title:t,column:n=3,lineHeight:s,align:o="left",itemLayout:i,colon:l=!0,bordered:u=!1,style:c,className:g,labelStyle:d,contentStyle:C}=r,k={...s?{lineHeight:`${s}px`}:{},textAlign:o,...i!=null&&i.label?{width:`${i.label}px`}:{},...d},D={...s?{lineHeight:`${s}px`}:{},...i!=null&&i.value?{width:`${i.value}px`}:{},...C};return m.jsx(ie,{children:m.jsx(w.Descriptions,{title:t,column:n,colon:l,bordered:u,style:c,className:g,labelStyle:k,contentStyle:D,children:e.map((A,V)=>{var N;return m.jsx(w.Descriptions.Item,{label:A.label,span:A.span,children:A.value||"-"},((N=A.label)==null?void 0:N.toString())||V)})})})};_t.displayName="MDescriptions";const Sa="";var Mr=p.createContext({});const Et=Mr;function ge(){return ge=Object.assign?Object.assign.bind():function(r){for(var e=1;e<arguments.length;e++){var t=arguments[e];for(var n in t)({}).hasOwnProperty.call(t,n)&&(r[n]=t[n])}return r},ge.apply(null,arguments)}function Ir(r){if(Array.isArray(r))return r}function zr(r,e){var t=r==null?null:typeof Symbol<"u"&&r[Symbol.iterator]||r["@@iterator"];if(t!=null){var n,s,o,i,l=[],u=!0,c=!1;try{if(o=(t=t.call(r)).next,e===0){if(Object(t)!==t)return;u=!1}else for(;!(u=(n=o.call(t)).done)&&(l.push(n.value),l.length!==e);u=!0);}catch(g){c=!0,s=g}finally{try{if(!u&&t.return!=null&&(i=t.return(),Object(i)!==i))return}finally{if(c)throw s}}return l}}function Rt(r,e){(e==null||e>r.length)&&(e=r.length);for(var t=0,n=Array(e);t<e;t++)n[t]=r[t];return n}function Yr(r,e){if(r){if(typeof r=="string")return Rt(r,e);var t={}.toString.call(r).slice(8,-1);return t==="Object"&&r.constructor&&(t=r.constructor.name),t==="Map"||t==="Set"?Array.from(r):t==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t)?Rt(r,e):void 0}}function Hr(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
33
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Ot(r,e){return Ir(r)||zr(r,e)||Yr(r,e)||Hr()}function ce(r){"@babel/helpers - typeof";return ce=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},ce(r)}function Lr(r,e){if(ce(r)!="object"||!r)return r;var t=r[Symbol.toPrimitive];if(t!==void 0){var n=t.call(r,e||"default");if(ce(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(r)}function Vr(r){var e=Lr(r,"string");return ce(e)=="symbol"?e:e+""}function B(r,e,t){return(e=Vr(e))in r?Object.defineProperty(r,e,{value:t,enumerable:!0,configurable:!0,writable:!0}):r[e]=t,r}function Fr(r,e){if(r==null)return{};var t={};for(var n in r)if({}.hasOwnProperty.call(r,n)){if(e.indexOf(n)!==-1)continue;t[n]=r[n]}return t}function jt(r,e){if(r==null)return{};var t,n,s=Fr(r,e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(r);for(n=0;n<o.length;n++)t=o[n],e.indexOf(t)===-1&&{}.propertyIsEnumerable.call(r,t)&&(s[t]=r[t])}return s}var Pt={exports:{}};/*!
34
34
  Copyright (c) 2018 Jed Watson.
35
35
  Licensed under the MIT License (MIT), see
36
36
  http://jedwatson.github.io/classnames
37
- */(function(r){(function(){var e={}.hasOwnProperty;function t(){for(var s="",o=0;o<arguments.length;o++){var l=arguments[o];l&&(s=i(s,n(l)))}return s}function n(s){if(typeof s=="string"||typeof s=="number")return s;if(typeof s!="object")return"";if(Array.isArray(s))return t.apply(null,s);if(s.toString!==Object.prototype.toString&&!s.toString.toString().includes("[native code]"))return s.toString();var o="";for(var l in s)e.call(s,l)&&s[l]&&(o=i(o,l));return o}function i(s,o){return o?s?s+" "+o:s+o:s}r.exports?(t.default=t,r.exports=t):window.classNames=t})()})(Xe);var hr=Xe.exports;const gr=Ut(hr),k=Math.round;function xe(r,e){const t=r.replace(/^[^(]*\((.*)/,"$1").replace(/\).*/,"").match(/\d*\.?\d+%?/g)||[],n=t.map(i=>parseFloat(i));for(let i=0;i<3;i+=1)n[i]=e(n[i]||0,t[i]||"",i);return t[3]?n[3]=t[3].includes("%")?n[3]/100:n[3]:n[3]=1,n}const Qe=(r,e,t)=>t===0?r:r/100;function re(r,e){const t=e||255;return r>t?t:r<0?0:r}class q{constructor(e){A(this,"isValid",!0),A(this,"r",0),A(this,"g",0),A(this,"b",0),A(this,"a",1),A(this,"_h",void 0),A(this,"_s",void 0),A(this,"_l",void 0),A(this,"_v",void 0),A(this,"_max",void 0),A(this,"_min",void 0),A(this,"_brightness",void 0);function t(n){return n[0]in e&&n[1]in e&&n[2]in e}if(e)if(typeof e=="string"){let i=function(s){return n.startsWith(s)};const n=e.trim();/^#?[A-F\d]{3,8}$/i.test(n)?this.fromHexString(n):i("rgb")?this.fromRgbString(n):i("hsl")?this.fromHslString(n):(i("hsv")||i("hsb"))&&this.fromHsvString(n)}else if(e instanceof q)this.r=e.r,this.g=e.g,this.b=e.b,this.a=e.a,this._h=e._h,this._s=e._s,this._l=e._l,this._v=e._v;else if(t("rgb"))this.r=re(e.r),this.g=re(e.g),this.b=re(e.b),this.a=typeof e.a=="number"?re(e.a,1):1;else if(t("hsl"))this.fromHsl(e);else if(t("hsv"))this.fromHsv(e);else throw new Error("@ant-design/fast-color: unsupported input "+JSON.stringify(e))}setR(e){return this._sc("r",e)}setG(e){return this._sc("g",e)}setB(e){return this._sc("b",e)}setA(e){return this._sc("a",e,1)}setHue(e){const t=this.toHsv();return t.h=e,this._c(t)}getLuminance(){function e(s){const o=s/255;return o<=.03928?o/12.92:Math.pow((o+.055)/1.055,2.4)}const t=e(this.r),n=e(this.g),i=e(this.b);return .2126*t+.7152*n+.0722*i}getHue(){if(typeof this._h>"u"){const e=this.getMax()-this.getMin();e===0?this._h=0:this._h=k(60*(this.r===this.getMax()?(this.g-this.b)/e+(this.g<this.b?6:0):this.g===this.getMax()?(this.b-this.r)/e+2:(this.r-this.g)/e+4))}return this._h}getSaturation(){if(typeof this._s>"u"){const e=this.getMax()-this.getMin();e===0?this._s=0:this._s=e/this.getMax()}return this._s}getLightness(){return typeof this._l>"u"&&(this._l=(this.getMax()+this.getMin())/510),this._l}getValue(){return typeof this._v>"u"&&(this._v=this.getMax()/255),this._v}getBrightness(){return typeof this._brightness>"u"&&(this._brightness=(this.r*299+this.g*587+this.b*114)/1e3),this._brightness}darken(e=10){const t=this.getHue(),n=this.getSaturation();let i=this.getLightness()-e/100;return i<0&&(i=0),this._c({h:t,s:n,l:i,a:this.a})}lighten(e=10){const t=this.getHue(),n=this.getSaturation();let i=this.getLightness()+e/100;return i>1&&(i=1),this._c({h:t,s:n,l:i,a:this.a})}mix(e,t=50){const n=this._c(e),i=t/100,s=l=>(n[l]-this[l])*i+this[l],o={r:k(s("r")),g:k(s("g")),b:k(s("b")),a:k(s("a")*100)/100};return this._c(o)}tint(e=10){return this.mix({r:255,g:255,b:255,a:1},e)}shade(e=10){return this.mix({r:0,g:0,b:0,a:1},e)}onBackground(e){const t=this._c(e),n=this.a+t.a*(1-this.a),i=s=>k((this[s]*this.a+t[s]*t.a*(1-this.a))/n);return this._c({r:i("r"),g:i("g"),b:i("b"),a:n})}isDark(){return this.getBrightness()<128}isLight(){return this.getBrightness()>=128}equals(e){return this.r===e.r&&this.g===e.g&&this.b===e.b&&this.a===e.a}clone(){return this._c(this)}toHexString(){let e="#";const t=(this.r||0).toString(16);e+=t.length===2?t:"0"+t;const n=(this.g||0).toString(16);e+=n.length===2?n:"0"+n;const i=(this.b||0).toString(16);if(e+=i.length===2?i:"0"+i,typeof this.a=="number"&&this.a>=0&&this.a<1){const s=k(this.a*255).toString(16);e+=s.length===2?s:"0"+s}return e}toHsl(){return{h:this.getHue(),s:this.getSaturation(),l:this.getLightness(),a:this.a}}toHslString(){const e=this.getHue(),t=k(this.getSaturation()*100),n=k(this.getLightness()*100);return this.a!==1?`hsla(${e},${t}%,${n}%,${this.a})`:`hsl(${e},${t}%,${n}%)`}toHsv(){return{h:this.getHue(),s:this.getSaturation(),v:this.getValue(),a:this.a}}toRgb(){return{r:this.r,g:this.g,b:this.b,a:this.a}}toRgbString(){return this.a!==1?`rgba(${this.r},${this.g},${this.b},${this.a})`:`rgb(${this.r},${this.g},${this.b})`}toString(){return this.toRgbString()}_sc(e,t,n){const i=this.clone();return i[e]=re(t,n),i}_c(e){return new this.constructor(e)}getMax(){return typeof this._max>"u"&&(this._max=Math.max(this.r,this.g,this.b)),this._max}getMin(){return typeof this._min>"u"&&(this._min=Math.min(this.r,this.g,this.b)),this._min}fromHexString(e){const t=e.replace("#","");function n(i,s){return parseInt(t[i]+t[s||i],16)}t.length<6?(this.r=n(0),this.g=n(1),this.b=n(2),this.a=t[3]?n(3)/255:1):(this.r=n(0,1),this.g=n(2,3),this.b=n(4,5),this.a=t[6]?n(6,7)/255:1)}fromHsl({h:e,s:t,l:n,a:i}){if(this._h=e%360,this._s=t,this._l=n,this.a=typeof i=="number"?i:1,t<=0){const _=k(n*255);this.r=_,this.g=_,this.b=_}let s=0,o=0,l=0;const u=e/60,f=(1-Math.abs(2*n-1))*t,g=f*(1-Math.abs(u%2-1));u>=0&&u<1?(s=f,o=g):u>=1&&u<2?(s=g,o=f):u>=2&&u<3?(o=f,l=g):u>=3&&u<4?(o=g,l=f):u>=4&&u<5?(s=g,l=f):u>=5&&u<6&&(s=f,l=g);const h=n-f/2;this.r=k((s+h)*255),this.g=k((o+h)*255),this.b=k((l+h)*255)}fromHsv({h:e,s:t,v:n,a:i}){this._h=e%360,this._s=t,this._v=n,this.a=typeof i=="number"?i:1;const s=k(n*255);if(this.r=s,this.g=s,this.b=s,t<=0)return;const o=e/60,l=Math.floor(o),u=o-l,f=k(n*(1-t)*255),g=k(n*(1-t*u)*255),h=k(n*(1-t*(1-u))*255);switch(l){case 0:this.g=h,this.b=f;break;case 1:this.r=g,this.b=f;break;case 2:this.r=f,this.b=h;break;case 3:this.r=f,this.g=g;break;case 4:this.r=h,this.g=f;break;case 5:default:this.g=f,this.b=g;break}}fromHsvString(e){const t=xe(e,Qe);this.fromHsv({h:t[0],s:t[1],v:t[2],a:t[3]})}fromHslString(e){const t=xe(e,Qe);this.fromHsl({h:t[0],s:t[1],l:t[2],a:t[3]})}fromRgbString(e){const t=xe(e,(n,i)=>i.includes("%")?k(n/100*255):n);this.r=t[0],this.g=t[1],this.b=t[2],this.a=t[3]}}var fe=2,et=.16,pr=.05,vr=.05,mr=.15,tt=5,rt=4,br=[{index:7,amount:15},{index:6,amount:25},{index:5,amount:30},{index:5,amount:45},{index:5,amount:65},{index:5,amount:85},{index:4,amount:90},{index:3,amount:95},{index:2,amount:97},{index:1,amount:98}];function nt(r,e,t){var n;return Math.round(r.h)>=60&&Math.round(r.h)<=240?n=t?Math.round(r.h)-fe*e:Math.round(r.h)+fe*e:n=t?Math.round(r.h)+fe*e:Math.round(r.h)-fe*e,n<0?n+=360:n>=360&&(n-=360),n}function at(r,e,t){if(r.h===0&&r.s===0)return r.s;var n;return t?n=r.s-et*e:e===rt?n=r.s+et:n=r.s+pr*e,n>1&&(n=1),t&&e===tt&&n>.1&&(n=.1),n<.06&&(n=.06),Math.round(n*100)/100}function it(r,e,t){var n;return t?n=r.v+vr*e:n=r.v-mr*e,n=Math.max(0,Math.min(1,n)),Math.round(n*100)/100}function yr(r){for(var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},t=[],n=new q(r),i=n.toHsv(),s=tt;s>0;s-=1){var o=new q({h:nt(i,s,!0),s:at(i,s,!0),v:it(i,s,!0)});t.push(o)}t.push(n);for(var l=1;l<=rt;l+=1){var u=new q({h:nt(i,l),s:at(i,l),v:it(i,l)});t.push(u)}return e.theme==="dark"?br.map(function(f){var g=f.index,h=f.amount;return new q(e.backgroundColor||"#141414").mix(t[g],h).toHexString()}):t.map(function(f){return f.toHexString()})}var we=["#e6f4ff","#bae0ff","#91caff","#69b1ff","#4096ff","#1677ff","#0958d9","#003eb3","#002c8c","#001d66"];we.primary=we[5];function st(r,e){var t=Object.keys(r);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(r);e&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(r,i).enumerable})),t.push.apply(t,n)}return t}function V(r){for(var e=1;e<arguments.length;e++){var t=arguments[e]!=null?arguments[e]:{};e%2?st(Object(t),!0).forEach(function(n){A(r,n,t[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(r,Object.getOwnPropertyDescriptors(t)):st(Object(t)).forEach(function(n){Object.defineProperty(r,n,Object.getOwnPropertyDescriptor(t,n))})}return r}function xr(){return!!(typeof window<"u"&&window.document&&window.document.createElement)}function wr(r,e){if(!r)return!1;if(r.contains)return r.contains(e);for(var t=e;t;){if(t===r)return!0;t=t.parentNode}return!1}var ot="data-rc-order",ct="data-rc-priority",Cr="rc-util-key",Ce=new Map;function lt(){var r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},e=r.mark;return e?e.startsWith("data-")?e:"data-".concat(e):Cr}function Se(r){if(r.attachTo)return r.attachTo;var e=document.querySelector("head");return e||document.body}function Sr(r){return r==="queue"?"prependQueue":r?"prepend":"append"}function _e(r){return Array.from((Ce.get(r)||r).children).filter(function(e){return e.tagName==="STYLE"})}function ut(r){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(!xr())return null;var t=e.csp,n=e.prepend,i=e.priority,s=i===void 0?0:i,o=Sr(n),l=o==="prependQueue",u=document.createElement("style");u.setAttribute(ot,o),l&&s&&u.setAttribute(ct,"".concat(s)),t!=null&&t.nonce&&(u.nonce=t==null?void 0:t.nonce),u.innerHTML=r;var f=Se(e),g=f.firstChild;if(n){if(l){var h=(e.styles||_e(f)).filter(function(_){if(!["prepend","prependQueue"].includes(_.getAttribute(ot)))return!1;var H=Number(_.getAttribute(ct)||0);return s>=H});if(h.length)return f.insertBefore(u,h[h.length-1].nextSibling),u}f.insertBefore(u,g)}else f.appendChild(u);return u}function _r(r){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},t=Se(e);return(e.styles||_e(t)).find(function(n){return n.getAttribute(lt(e))===r})}function Rr(r,e){var t=Ce.get(r);if(!t||!wr(document,t)){var n=ut("",e),i=n.parentNode;Ce.set(r,i),r.removeChild(n)}}function Er(r,e){var t=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},n=Se(t),i=_e(n),s=V(V({},t),{},{styles:i});Rr(n,s);var o=_r(e,s);if(o){var l,u;if((l=s.csp)!==null&&l!==void 0&&l.nonce&&o.nonce!==((u=s.csp)===null||u===void 0?void 0:u.nonce)){var f;o.nonce=(f=s.csp)===null||f===void 0?void 0:f.nonce}return o.innerHTML!==r&&(o.innerHTML=r),o}var g=ut(r,s);return g.setAttribute(lt(s),e),g}function ft(r){var e;return r==null||(e=r.getRootNode)===null||e===void 0?void 0:e.call(r)}function jr(r){return ft(r)instanceof ShadowRoot}function Or(r){return jr(r)?ft(r):null}var Re={},Ee=[],Tr=function(e){Ee.push(e)};function Pr(r,e){if(process.env.NODE_ENV!=="production"&&!r&&console!==void 0){var t=Ee.reduce(function(n,i){return i(n??"","warning")},e);t&&console.error("Warning: ".concat(t))}}function kr(r,e){if(process.env.NODE_ENV!=="production"&&!r&&console!==void 0){var t=Ee.reduce(function(n,i){return i(n??"","note")},e);t&&console.warn("Note: ".concat(t))}}function Nr(){Re={}}function dt(r,e,t){!e&&!Re[t]&&(r(!1,t),Re[t]=!0)}function de(r,e){dt(Pr,r,e)}function Ar(r,e){dt(kr,r,e)}de.preMessage=Tr,de.resetWarned=Nr,de.noteOnce=Ar;function Dr(r){return r.replace(/-(.)/g,function(e,t){return t.toUpperCase()})}function $r(r,e){de(r,"[@ant-design/icons] ".concat(e))}function ht(r){return W(r)==="object"&&typeof r.name=="string"&&typeof r.theme=="string"&&(W(r.icon)==="object"||typeof r.icon=="function")}function gt(){var r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};return Object.keys(r).reduce(function(e,t){var n=r[t];switch(t){case"class":e.className=n,delete e.class;break;default:delete e[t],e[Dr(t)]=n}return e},{})}function je(r,e,t){return t?N.default.createElement(r.tag,V(V({key:e},gt(r.attrs)),t),(r.children||[]).map(function(n,i){return je(n,"".concat(e,"-").concat(r.tag,"-").concat(i))})):N.default.createElement(r.tag,V({key:e},gt(r.attrs)),(r.children||[]).map(function(n,i){return je(n,"".concat(e,"-").concat(r.tag,"-").concat(i))}))}function pt(r){return yr(r)[0]}function vt(r){return r?Array.isArray(r)?r:[r]:[]}var Mr=`
37
+ */(function(r){(function(){var e={}.hasOwnProperty;function t(){for(var o="",i=0;i<arguments.length;i++){var l=arguments[i];l&&(o=s(o,n(l)))}return o}function n(o){if(typeof o=="string"||typeof o=="number")return o;if(typeof o!="object")return"";if(Array.isArray(o))return t.apply(null,o);if(o.toString!==Object.prototype.toString&&!o.toString.toString().includes("[native code]"))return o.toString();var i="";for(var l in o)e.call(o,l)&&o[l]&&(i=s(i,l));return i}function s(o,i){return i?o?o+" "+i:o+i:o}r.exports?(t.default=t,r.exports=t):window.classNames=t})()})(Pt);var Ur=Pt.exports;const Br=Sr(Ur),H=Math.round;function qe(r,e){const t=r.replace(/^[^(]*\((.*)/,"$1").replace(/\).*/,"").match(/\d*\.?\d+%?/g)||[],n=t.map(s=>parseFloat(s));for(let s=0;s<3;s+=1)n[s]=e(n[s]||0,t[s]||"",s);return t[3]?n[3]=t[3].includes("%")?n[3]/100:n[3]:n[3]=1,n}const Tt=(r,e,t)=>t===0?r:r/100;function Ee(r,e){const t=e||255;return r>t?t:r<0?0:r}class pe{constructor(e){B(this,"isValid",!0),B(this,"r",0),B(this,"g",0),B(this,"b",0),B(this,"a",1),B(this,"_h",void 0),B(this,"_s",void 0),B(this,"_l",void 0),B(this,"_v",void 0),B(this,"_max",void 0),B(this,"_min",void 0),B(this,"_brightness",void 0);function t(n){return n[0]in e&&n[1]in e&&n[2]in e}if(e)if(typeof e=="string"){let s=function(o){return n.startsWith(o)};const n=e.trim();/^#?[A-F\d]{3,8}$/i.test(n)?this.fromHexString(n):s("rgb")?this.fromRgbString(n):s("hsl")?this.fromHslString(n):(s("hsv")||s("hsb"))&&this.fromHsvString(n)}else if(e instanceof pe)this.r=e.r,this.g=e.g,this.b=e.b,this.a=e.a,this._h=e._h,this._s=e._s,this._l=e._l,this._v=e._v;else if(t("rgb"))this.r=Ee(e.r),this.g=Ee(e.g),this.b=Ee(e.b),this.a=typeof e.a=="number"?Ee(e.a,1):1;else if(t("hsl"))this.fromHsl(e);else if(t("hsv"))this.fromHsv(e);else throw new Error("@ant-design/fast-color: unsupported input "+JSON.stringify(e))}setR(e){return this._sc("r",e)}setG(e){return this._sc("g",e)}setB(e){return this._sc("b",e)}setA(e){return this._sc("a",e,1)}setHue(e){const t=this.toHsv();return t.h=e,this._c(t)}getLuminance(){function e(o){const i=o/255;return i<=.03928?i/12.92:Math.pow((i+.055)/1.055,2.4)}const t=e(this.r),n=e(this.g),s=e(this.b);return .2126*t+.7152*n+.0722*s}getHue(){if(typeof this._h>"u"){const e=this.getMax()-this.getMin();e===0?this._h=0:this._h=H(60*(this.r===this.getMax()?(this.g-this.b)/e+(this.g<this.b?6:0):this.g===this.getMax()?(this.b-this.r)/e+2:(this.r-this.g)/e+4))}return this._h}getSaturation(){if(typeof this._s>"u"){const e=this.getMax()-this.getMin();e===0?this._s=0:this._s=e/this.getMax()}return this._s}getLightness(){return typeof this._l>"u"&&(this._l=(this.getMax()+this.getMin())/510),this._l}getValue(){return typeof this._v>"u"&&(this._v=this.getMax()/255),this._v}getBrightness(){return typeof this._brightness>"u"&&(this._brightness=(this.r*299+this.g*587+this.b*114)/1e3),this._brightness}darken(e=10){const t=this.getHue(),n=this.getSaturation();let s=this.getLightness()-e/100;return s<0&&(s=0),this._c({h:t,s:n,l:s,a:this.a})}lighten(e=10){const t=this.getHue(),n=this.getSaturation();let s=this.getLightness()+e/100;return s>1&&(s=1),this._c({h:t,s:n,l:s,a:this.a})}mix(e,t=50){const n=this._c(e),s=t/100,o=l=>(n[l]-this[l])*s+this[l],i={r:H(o("r")),g:H(o("g")),b:H(o("b")),a:H(o("a")*100)/100};return this._c(i)}tint(e=10){return this.mix({r:255,g:255,b:255,a:1},e)}shade(e=10){return this.mix({r:0,g:0,b:0,a:1},e)}onBackground(e){const t=this._c(e),n=this.a+t.a*(1-this.a),s=o=>H((this[o]*this.a+t[o]*t.a*(1-this.a))/n);return this._c({r:s("r"),g:s("g"),b:s("b"),a:n})}isDark(){return this.getBrightness()<128}isLight(){return this.getBrightness()>=128}equals(e){return this.r===e.r&&this.g===e.g&&this.b===e.b&&this.a===e.a}clone(){return this._c(this)}toHexString(){let e="#";const t=(this.r||0).toString(16);e+=t.length===2?t:"0"+t;const n=(this.g||0).toString(16);e+=n.length===2?n:"0"+n;const s=(this.b||0).toString(16);if(e+=s.length===2?s:"0"+s,typeof this.a=="number"&&this.a>=0&&this.a<1){const o=H(this.a*255).toString(16);e+=o.length===2?o:"0"+o}return e}toHsl(){return{h:this.getHue(),s:this.getSaturation(),l:this.getLightness(),a:this.a}}toHslString(){const e=this.getHue(),t=H(this.getSaturation()*100),n=H(this.getLightness()*100);return this.a!==1?`hsla(${e},${t}%,${n}%,${this.a})`:`hsl(${e},${t}%,${n}%)`}toHsv(){return{h:this.getHue(),s:this.getSaturation(),v:this.getValue(),a:this.a}}toRgb(){return{r:this.r,g:this.g,b:this.b,a:this.a}}toRgbString(){return this.a!==1?`rgba(${this.r},${this.g},${this.b},${this.a})`:`rgb(${this.r},${this.g},${this.b})`}toString(){return this.toRgbString()}_sc(e,t,n){const s=this.clone();return s[e]=Ee(t,n),s}_c(e){return new this.constructor(e)}getMax(){return typeof this._max>"u"&&(this._max=Math.max(this.r,this.g,this.b)),this._max}getMin(){return typeof this._min>"u"&&(this._min=Math.min(this.r,this.g,this.b)),this._min}fromHexString(e){const t=e.replace("#","");function n(s,o){return parseInt(t[s]+t[o||s],16)}t.length<6?(this.r=n(0),this.g=n(1),this.b=n(2),this.a=t[3]?n(3)/255:1):(this.r=n(0,1),this.g=n(2,3),this.b=n(4,5),this.a=t[6]?n(6,7)/255:1)}fromHsl({h:e,s:t,l:n,a:s}){if(this._h=e%360,this._s=t,this._l=n,this.a=typeof s=="number"?s:1,t<=0){const C=H(n*255);this.r=C,this.g=C,this.b=C}let o=0,i=0,l=0;const u=e/60,c=(1-Math.abs(2*n-1))*t,g=c*(1-Math.abs(u%2-1));u>=0&&u<1?(o=c,i=g):u>=1&&u<2?(o=g,i=c):u>=2&&u<3?(i=c,l=g):u>=3&&u<4?(i=g,l=c):u>=4&&u<5?(o=g,l=c):u>=5&&u<6&&(o=c,l=g);const d=n-c/2;this.r=H((o+d)*255),this.g=H((i+d)*255),this.b=H((l+d)*255)}fromHsv({h:e,s:t,v:n,a:s}){this._h=e%360,this._s=t,this._v=n,this.a=typeof s=="number"?s:1;const o=H(n*255);if(this.r=o,this.g=o,this.b=o,t<=0)return;const i=e/60,l=Math.floor(i),u=i-l,c=H(n*(1-t)*255),g=H(n*(1-t*u)*255),d=H(n*(1-t*(1-u))*255);switch(l){case 0:this.g=d,this.b=c;break;case 1:this.r=g,this.b=c;break;case 2:this.r=c,this.b=d;break;case 3:this.r=c,this.g=g;break;case 4:this.r=d,this.g=c;break;case 5:default:this.g=c,this.b=g;break}}fromHsvString(e){const t=qe(e,Tt);this.fromHsv({h:t[0],s:t[1],v:t[2],a:t[3]})}fromHslString(e){const t=qe(e,Tt);this.fromHsl({h:t[0],s:t[1],l:t[2],a:t[3]})}fromRgbString(e){const t=qe(e,(n,s)=>s.includes("%")?H(n/100*255):n);this.r=t[0],this.g=t[1],this.b=t[2],this.a=t[3]}}var De=2,kt=.16,Wr=.05,qr=.05,Zr=.15,Nt=5,Dt=4,Gr=[{index:7,amount:15},{index:6,amount:25},{index:5,amount:30},{index:5,amount:45},{index:5,amount:65},{index:5,amount:85},{index:4,amount:90},{index:3,amount:95},{index:2,amount:97},{index:1,amount:98}];function At(r,e,t){var n;return Math.round(r.h)>=60&&Math.round(r.h)<=240?n=t?Math.round(r.h)-De*e:Math.round(r.h)+De*e:n=t?Math.round(r.h)+De*e:Math.round(r.h)-De*e,n<0?n+=360:n>=360&&(n-=360),n}function $t(r,e,t){if(r.h===0&&r.s===0)return r.s;var n;return t?n=r.s-kt*e:e===Dt?n=r.s+kt:n=r.s+Wr*e,n>1&&(n=1),t&&e===Nt&&n>.1&&(n=.1),n<.06&&(n=.06),Math.round(n*100)/100}function Mt(r,e,t){var n;return t?n=r.v+qr*e:n=r.v-Zr*e,n=Math.max(0,Math.min(1,n)),Math.round(n*100)/100}function Kr(r){for(var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},t=[],n=new pe(r),s=n.toHsv(),o=Nt;o>0;o-=1){var i=new pe({h:At(s,o,!0),s:$t(s,o,!0),v:Mt(s,o,!0)});t.push(i)}t.push(n);for(var l=1;l<=Dt;l+=1){var u=new pe({h:At(s,l),s:$t(s,l),v:Mt(s,l)});t.push(u)}return e.theme==="dark"?Gr.map(function(c){var g=c.index,d=c.amount;return new pe(e.backgroundColor||"#141414").mix(t[g],d).toHexString()}):t.map(function(c){return c.toHexString()})}var Ze=["#e6f4ff","#bae0ff","#91caff","#69b1ff","#4096ff","#1677ff","#0958d9","#003eb3","#002c8c","#001d66"];Ze.primary=Ze[5];function It(r,e){var t=Object.keys(r);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(r);e&&(n=n.filter(function(s){return Object.getOwnPropertyDescriptor(r,s).enumerable})),t.push.apply(t,n)}return t}function ee(r){for(var e=1;e<arguments.length;e++){var t=arguments[e]!=null?arguments[e]:{};e%2?It(Object(t),!0).forEach(function(n){B(r,n,t[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(r,Object.getOwnPropertyDescriptors(t)):It(Object(t)).forEach(function(n){Object.defineProperty(r,n,Object.getOwnPropertyDescriptor(t,n))})}return r}function Jr(){return!!(typeof window<"u"&&window.document&&window.document.createElement)}function Xr(r,e){if(!r)return!1;if(r.contains)return r.contains(e);for(var t=e;t;){if(t===r)return!0;t=t.parentNode}return!1}var zt="data-rc-order",Yt="data-rc-priority",Qr="rc-util-key",Ge=new Map;function Ht(){var r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},e=r.mark;return e?e.startsWith("data-")?e:"data-".concat(e):Qr}function Ke(r){if(r.attachTo)return r.attachTo;var e=document.querySelector("head");return e||document.body}function en(r){return r==="queue"?"prependQueue":r?"prepend":"append"}function Je(r){return Array.from((Ge.get(r)||r).children).filter(function(e){return e.tagName==="STYLE"})}function Lt(r){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(!Jr())return null;var t=e.csp,n=e.prepend,s=e.priority,o=s===void 0?0:s,i=en(n),l=i==="prependQueue",u=document.createElement("style");u.setAttribute(zt,i),l&&o&&u.setAttribute(Yt,"".concat(o)),t!=null&&t.nonce&&(u.nonce=t==null?void 0:t.nonce),u.innerHTML=r;var c=Ke(e),g=c.firstChild;if(n){if(l){var d=(e.styles||Je(c)).filter(function(C){if(!["prepend","prependQueue"].includes(C.getAttribute(zt)))return!1;var k=Number(C.getAttribute(Yt)||0);return o>=k});if(d.length)return c.insertBefore(u,d[d.length-1].nextSibling),u}c.insertBefore(u,g)}else c.appendChild(u);return u}function tn(r){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},t=Ke(e);return(e.styles||Je(t)).find(function(n){return n.getAttribute(Ht(e))===r})}function rn(r,e){var t=Ge.get(r);if(!t||!Xr(document,t)){var n=Lt("",e),s=n.parentNode;Ge.set(r,s),r.removeChild(n)}}function nn(r,e){var t=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},n=Ke(t),s=Je(n),o=ee(ee({},t),{},{styles:s});rn(n,o);var i=tn(e,o);if(i){var l,u;if((l=o.csp)!==null&&l!==void 0&&l.nonce&&i.nonce!==((u=o.csp)===null||u===void 0?void 0:u.nonce)){var c;i.nonce=(c=o.csp)===null||c===void 0?void 0:c.nonce}return i.innerHTML!==r&&(i.innerHTML=r),i}var g=Lt(r,o);return g.setAttribute(Ht(o),e),g}function Vt(r){var e;return r==null||(e=r.getRootNode)===null||e===void 0?void 0:e.call(r)}function an(r){return Vt(r)instanceof ShadowRoot}function sn(r){return an(r)?Vt(r):null}var Xe={},Qe=[],on=function(e){Qe.push(e)};function cn(r,e){if(process.env.NODE_ENV!=="production"&&!r&&console!==void 0){var t=Qe.reduce(function(n,s){return s(n??"","warning")},e);t&&console.error("Warning: ".concat(t))}}function ln(r,e){if(process.env.NODE_ENV!=="production"&&!r&&console!==void 0){var t=Qe.reduce(function(n,s){return s(n??"","note")},e);t&&console.warn("Note: ".concat(t))}}function un(){Xe={}}function Ft(r,e,t){!e&&!Xe[t]&&(r(!1,t),Xe[t]=!0)}function Ae(r,e){Ft(cn,r,e)}function fn(r,e){Ft(ln,r,e)}Ae.preMessage=on,Ae.resetWarned=un,Ae.noteOnce=fn;function dn(r){return r.replace(/-(.)/g,function(e,t){return t.toUpperCase()})}function hn(r,e){Ae(r,"[@ant-design/icons] ".concat(e))}function Ut(r){return ce(r)==="object"&&typeof r.name=="string"&&typeof r.theme=="string"&&(ce(r.icon)==="object"||typeof r.icon=="function")}function Bt(){var r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};return Object.keys(r).reduce(function(e,t){var n=r[t];switch(t){case"class":e.className=n,delete e.class;break;default:delete e[t],e[dn(t)]=n}return e},{})}function et(r,e,t){return t?z.default.createElement(r.tag,ee(ee({key:e},Bt(r.attrs)),t),(r.children||[]).map(function(n,s){return et(n,"".concat(e,"-").concat(r.tag,"-").concat(s))})):z.default.createElement(r.tag,ee({key:e},Bt(r.attrs)),(r.children||[]).map(function(n,s){return et(n,"".concat(e,"-").concat(r.tag,"-").concat(s))}))}function Wt(r){return Kr(r)[0]}function qt(r){return r?Array.isArray(r)?r:[r]:[]}var gn=`
38
38
  .anticon {
39
39
  display: inline-flex;
40
40
  align-items: center;
@@ -89,6 +89,6 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
89
89
  transform: rotate(360deg);
90
90
  }
91
91
  }
92
- `,Ir=function(e){var t=P.useContext(qe),n=t.csp,i=t.prefixCls,s=t.layer,o=Mr;i&&(o=o.replace(/anticon/g,i)),s&&(o="@layer ".concat(s,` {
93
- `).concat(o,`
94
- }`)),P.useEffect(function(){var l=e.current,u=Or(l);Er(o,"@ant-design-icons",{prepend:!s,csp:n,attachTo:u})},[])},Hr=["icon","className","onClick","style","primaryColor","secondaryColor"],ne={primaryColor:"#333",secondaryColor:"#E6E6E6",calculated:!1};function Yr(r){var e=r.primaryColor,t=r.secondaryColor;ne.primaryColor=e,ne.secondaryColor=t||pt(e),ne.calculated=!!t}function Vr(){return V({},ne)}var he=function(e){var t=e.icon,n=e.className,i=e.onClick,s=e.style,o=e.primaryColor,l=e.secondaryColor,u=Ke(e,Hr),f=N.useRef(),g=ne;if(o&&(g={primaryColor:o,secondaryColor:l||pt(o)}),Ir(f),$r(ht(t),"icon should be icon definiton, but got ".concat(t)),!ht(t))return null;var h=t;return h&&typeof h.icon=="function"&&(h=V(V({},h),{},{icon:h.icon(g.primaryColor,g.secondaryColor)})),je(h.icon,"svg-".concat(h.name),V(V({className:n,onClick:i,style:s,"data-icon":h.name,width:"1em",height:"1em",fill:"currentColor","aria-hidden":"true"},u),{},{ref:f}))};he.displayName="IconReact",he.getTwoToneColors=Vr,he.setTwoToneColors=Yr;const Oe=he;function mt(r){var e=vt(r),t=Je(e,2),n=t[0],i=t[1];return Oe.setTwoToneColors({primaryColor:n,secondaryColor:i})}function Lr(){var r=Oe.getTwoToneColors();return r.calculated?[r.primaryColor,r.secondaryColor]:r.primaryColor}var zr=["className","icon","spin","rotate","tabIndex","onClick","twoToneColor"];mt(we.primary);var ge=N.forwardRef(function(r,e){var t=r.className,n=r.icon,i=r.spin,s=r.rotate,o=r.tabIndex,l=r.onClick,u=r.twoToneColor,f=Ke(r,zr),g=N.useContext(qe),h=g.prefixCls,_=h===void 0?"anticon":h,H=g.rootClassName,G=gr(H,_,A(A({},"".concat(_,"-").concat(n.name),!!n.name),"".concat(_,"-spin"),!!i||n.name==="loading"),t),L=o;L===void 0&&l&&(L=-1);var ie=s?{msTransform:"rotate(".concat(s,"deg)"),transform:"rotate(".concat(s,"deg)")}:void 0,Y=vt(u),T=Je(Y,2),Pe=T[0],ke=T[1];return N.createElement("span",ue({role:"img","aria-label":n.name},f,{ref:e,tabIndex:L,onClick:l,className:G}),N.createElement(Oe,{icon:n,primaryColor:Pe,secondaryColor:ke,style:ie}))});ge.displayName="AntdIcon",ge.getTwoToneColor=Lr,ge.setTwoToneColor=mt;const Wr=ge;var Fr={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M400 317.7h73.9V656c0 4.4 3.6 8 8 8h60c4.4 0 8-3.6 8-8V317.7H624c6.7 0 10.4-7.7 6.3-12.9L518.3 163a8 8 0 00-12.6 0l-112 141.7c-4.1 5.3-.4 13 6.3 13zM878 626h-60c-4.4 0-8 3.6-8 8v154H214V634c0-4.4-3.6-8-8-8h-60c-4.4 0-8 3.6-8 8v198c0 17.7 14.3 32 32 32h684c17.7 0 32-14.3 32-32V634c0-4.4-3.6-8-8-8z"}}]},name:"upload",theme:"outlined"};const Ur=Fr;var Br=function(e,t){return N.createElement(Wr,ue({},e,{ref:t,icon:Ur}))},bt=N.forwardRef(Br);process.env.NODE_ENV!=="production"&&(bt.displayName="UploadOutlined");const Zr=bt;var D=(r=>(r.Input="input",r.InputNumber="inputNumber",r.Text="text",r.Password="password",r.Radio="radio",r.Select="select",r.Checkbox="checkbox",r.DatePicker="datePicker",r.RangePicker="rangePicker",r.Upload="upload",r.Mentions="mentions",r.Cascader="cascader",r.TreeSelect="treeSelect",r))(D||{});const{RangePicker:qr}=x.DatePicker,S=class S{static getDefaultArrayPlaceholder(e){let t;switch(e.type){case"rangePicker":t=["开始时间","结束时间"];break}return t}static getDefaultPlaceholder(e){let t;switch(e.type){case D.Input:case D.Password:case D.InputNumber:case D.Text:case D.Mentions:t=`请输入${e.label}`;break;case D.Select:case D.Checkbox:case D.Radio:case D.DatePicker:case D.RangePicker:case D.Cascader:case D.Upload:case D.TreeSelect:t=`请选择${e.label}`;break}return t}};p(S,"labelCol",{span:7}),p(S,"wrapperCol",{span:17}),p(S,"defaultRowGutter",24),p(S,"input",e=>m.jsx(x.Input,{disabled:e.disabled,maxLength:e.maxLength,...e.props,placeholder:e.placeholder||S.getDefaultPlaceholder(e)})),p(S,"password",e=>m.jsx(x.Input.Password,{disabled:e.disabled,...e.props,placeholder:e.placeholder||S.getDefaultPlaceholder(e)})),p(S,"text",e=>m.jsx(x.Input.TextArea,{disabled:e.disabled,maxLength:e.maxLength,...e.props,placeholder:e.placeholder||S.getDefaultPlaceholder(e)})),p(S,"inputNumber",e=>m.jsx(x.InputNumber,{disabled:e.disabled,maxLength:e.maxLength,...e.props,placeholder:e.placeholder||S.getDefaultPlaceholder(e)})),p(S,"datePicker",e=>m.jsx(x.DatePicker,{disabled:e.disabled,...e.props,placeholder:e.placeholder||S.getDefaultPlaceholder(e)})),p(S,"rangePicker",e=>m.jsx(qr,{disabled:e.disabled,...e.props,placeholder:e.placeholder||S.getDefaultArrayPlaceholder(e)})),p(S,"select",e=>m.jsx(x.Select,{...e.props,disabled:e.disabled,placeholder:e.placeholder||S.getDefaultPlaceholder(e)})),p(S,"radio",e=>m.jsx(x.Radio.Group,{disabled:e.disabled,...e.props})),p(S,"checkbox",e=>m.jsx(x.Checkbox.Group,{disabled:e.disabled,...e.props})),p(S,"upload",e=>m.jsx(x.Upload,{defaultFileList:e.initialValue,...e.props,children:e.children||m.jsxs(x.Button,{children:[m.jsx(Zr,{})," 点击上传"]})})),p(S,"mentions",e=>m.jsx(x.Mentions,{...e.props,placeholder:e.placeholder||S.getDefaultPlaceholder(e)})),p(S,"cascader",e=>m.jsx(x.Cascader,{...e.props,placeholder:e.placeholder||S.getDefaultPlaceholder(e)})),p(S,"treeSelect",e=>m.jsx(x.TreeSelect,{...e.props,placeholder:e.placeholder||S.getDefaultPlaceholder(e)}));let F=S;const Te=(r="")=>le("m-form",r);function yt(r){const{formProps:e,formItems:t=[],column:n=1,form:i,itemLayout:s,formRowProps:o}=r,l=(f,g)=>{if(f.render)return f.render(g);const h=F[f.type];return f&&f.type&&h?h(f):m.jsx("div",{className:"error-message",children:"Invalid form item configuration"})},u=f=>{const{show:g=!0}=f;if(!g)return null;const h=[...f.rules||[]];f.required&&h.push({required:!0,message:f.required});const _={labelCol:F.labelCol,wrapperCol:F.wrapperCol,...s,...f.itemLayout};return m.jsx(x.Col,{span:f.span||24/n,children:m.jsx("div",{className:Te("item-wrapper"),children:m.jsx(x.Form.Item,{label:f.label,name:f.id,rules:h,initialValue:f.initialValue,..._,...f.formItemProps,children:l(f,i)})})},`col-${f.id}`)};return m.jsx(Z,{children:m.jsx(x.Form,{form:i,...e,className:`${Te()} ${e==null?void 0:e.className}`,children:m.jsx(x.Row,{gutter:F.defaultRowGutter,...o,className:`${Te("grid")} ${o==null?void 0:o.className}`,children:t.map(f=>u(f))})})})}yt.displayName="MForm";function Gr(r){var t;const e=((t=r.columns)==null?void 0:t.map(n=>({...n,dataIndex:n.key})))??[];return m.jsxs(Z,{children:[m.jsx(x.Table,{rowKey:n=>n.id,...r,columns:e}),";"]})}const Jr={YMD_Hms:"YYYY-MM-DD HH:mm:ss",YMD:"YYYY-MM-DD",YMD2:"YYYYMMDD",YMD_POINT:"YYYY.M.DD",Hms:"HH:mm:ss",Hm:"HH:mm",YMD_000:"YYYY-MM-DD 00:00:00",YMD_end:"YYYY-MM-DD 23:59:59",YMD_Hm:"YYYYMMDD HHmm"},Kr=10;class E{}p(E,"integerRegex",/^-?\d+$/),p(E,"positiveIntegerRegex",/^[1-9]\d*$/),p(E,"negativeIntegerRegex",/^-[1-9]\d*$/),p(E,"floatRegex",/^-?\d+(\.\d+)?$/),p(E,"letter",/^[a-zA-Z]+$/),p(E,"chinese",/^[\u4e00-\u9fa5]+$/),p(E,"number",/^[0-9]*$/),p(E,"username",/^[a-zA-Z]\w{3,15}$/),p(E,"strongUsername",/^(?=.*[a-z])(?=.*[A-Z])(?=.*\d)[a-zA-Z\d]{6,20}$/),p(E,"password",/^(?=.*[A-Za-z])(?=.*\d)[A-Za-z\d]{8,}$/),p(E,"strongPassword",/^(?=.*[a-z])(?=.*[A-Z])(?=.*\d)(?=.*[@$!%*?&])[A-Za-z\d@$!%*?&]{8,}$/),p(E,"phone",/^1[3-9]\d{9}$/),p(E,"phoneWithAreaCode",/^\+?\d{2,3}-?\d{8,11}$/),p(E,"email",/^[a-zA-Z0-9._%+-]+@[a-zA-Z0-9.-]+\.[a-zA-Z]{2,}$/),p(E,"idCard",/^[1-9]\d{5}[1-9]\d{3}((0\d)|(1[0-2]))(([0|1|2]\d)|3[0-1])\d{3}([0-9]|X)$/),p(E,"bankCard",/^[1-9]\d{3,30}$/),p(E,"zipCode",/^[1-9]\d{5}$/),p(E,"ip",/^(\d{1,2}|1\d\d|2[0-4]\d|25[0-5])\.(\d{1,2}|1\d\d|2[0-4]\d|25[0-5])\.(\d{1,2}|1\d\d|2[0-4]\d|25[0-5])\.(\d{1,2}|1\d\d|2[0-4]\d|25[0-5])$/),p(E,"url",/^(https?:\/\/)?([\da-z.-]+)\.([a-z.]{2,6})([/\w .-]*)*\/?$/),p(E,"carNumber",/^[京津沪渝冀豫云辽黑湘皖鲁新苏浙赣鄂桂甘晋蒙陕吉闽贵粤青藏川宁琼使领][A-HJ-NP-Z][A-HJ-NP-Z0-9]{4,5}[A-HJ-NP-Z0-9挂学警港澳]$/),p(E,"time",/^([0-1][0-9]|2[0-3]):([0-5][0-9]):([0-5][0-9])$/),p(E,"date",/^(\d{4})-(\d{2})-(\d{2})$/),b.CompThemeProvider=Z,b.DATE_FORMAT=Jr,b.ItemsRow=Be,b.MBreadcrumb=ar,b.MDescriptions=Ze,b.MForm=yt,b.MFormItemConst=F,b.MFormItemTypeEnum=D,b.MTable=Gr,b.MiThemeProvider=nr,b.NextTick=ee,b.PAGE_SIZE=Kr,b.PatternType=E,b.VersionUtil=rr,b.cmx=Gt,b.debounce=er,b.getClassName=le,b.getFieldsByPath=Xt,b.nextTick=Jt,b.noop=Kt,b.removeNull=Qt,b.throttle=tr,b.useMiThemeConfig=Fe,Object.defineProperty(b,Symbol.toStringTag,{value:"Module"})});
92
+ `,pn=function(e){var t=p.useContext(Et),n=t.csp,s=t.prefixCls,o=t.layer,i=gn;s&&(i=i.replace(/anticon/g,s)),o&&(i="@layer ".concat(o,` {
93
+ `).concat(i,`
94
+ }`)),p.useEffect(function(){var l=e.current,u=sn(l);nn(i,"@ant-design-icons",{prepend:!o,csp:n,attachTo:u})},[])},mn=["icon","className","onClick","style","primaryColor","secondaryColor"],Re={primaryColor:"#333",secondaryColor:"#E6E6E6",calculated:!1};function vn(r){var e=r.primaryColor,t=r.secondaryColor;Re.primaryColor=e,Re.secondaryColor=t||Wt(e),Re.calculated=!!t}function bn(){return ee({},Re)}var $e=function(e){var t=e.icon,n=e.className,s=e.onClick,o=e.style,i=e.primaryColor,l=e.secondaryColor,u=jt(e,mn),c=z.useRef(),g=Re;if(i&&(g={primaryColor:i,secondaryColor:l||Wt(i)}),pn(c),hn(Ut(t),"icon should be icon definiton, but got ".concat(t)),!Ut(t))return null;var d=t;return d&&typeof d.icon=="function"&&(d=ee(ee({},d),{},{icon:d.icon(g.primaryColor,g.secondaryColor)})),et(d.icon,"svg-".concat(d.name),ee(ee({className:n,onClick:s,style:o,"data-icon":d.name,width:"1em",height:"1em",fill:"currentColor","aria-hidden":"true"},u),{},{ref:c}))};$e.displayName="IconReact",$e.getTwoToneColors=bn,$e.setTwoToneColors=vn;const tt=$e;function Zt(r){var e=qt(r),t=Ot(e,2),n=t[0],s=t[1];return tt.setTwoToneColors({primaryColor:n,secondaryColor:s})}function yn(){var r=tt.getTwoToneColors();return r.calculated?[r.primaryColor,r.secondaryColor]:r.primaryColor}var Cn=["className","icon","spin","rotate","tabIndex","onClick","twoToneColor"];Zt(Ze.primary);var Me=z.forwardRef(function(r,e){var t=r.className,n=r.icon,s=r.spin,o=r.rotate,i=r.tabIndex,l=r.onClick,u=r.twoToneColor,c=jt(r,Cn),g=z.useContext(Et),d=g.prefixCls,C=d===void 0?"anticon":d,k=g.rootClassName,D=Br(k,C,B(B({},"".concat(C,"-").concat(n.name),!!n.name),"".concat(C,"-spin"),!!s||n.name==="loading"),t),A=i;A===void 0&&l&&(A=-1);var V=o?{msTransform:"rotate(".concat(o,"deg)"),transform:"rotate(".concat(o,"deg)")}:void 0,N=qt(u),S=Ot(N,2),P=S[0],L=S[1];return z.createElement("span",ge({role:"img","aria-label":n.name},c,{ref:e,tabIndex:A,onClick:l,className:D}),z.createElement(tt,{icon:n,primaryColor:P,secondaryColor:L,style:V}))});Me.displayName="AntdIcon",Me.getTwoToneColor=yn,Me.setTwoToneColor=Zt;const rt=Me;var Sn={icon:{tag:"svg",attrs:{viewBox:"0 0 1024 1024",focusable:"false"},children:[{tag:"path",attrs:{d:"M840.4 300H183.6c-19.7 0-30.7 20.8-18.5 35l328.4 380.8c9.4 10.9 27.5 10.9 37 0L858.9 335c12.2-14.2 1.2-35-18.5-35z"}}]},name:"caret-down",theme:"outlined"};const wn=Sn;var xn=function(e,t){return z.createElement(rt,ge({},e,{ref:t,icon:wn}))},Gt=z.forwardRef(xn);process.env.NODE_ENV!=="production"&&(Gt.displayName="CaretDownOutlined");const _n=Gt;var En={icon:{tag:"svg",attrs:{viewBox:"0 0 1024 1024",focusable:"false"},children:[{tag:"path",attrs:{d:"M858.9 689L530.5 308.2c-9.4-10.9-27.5-10.9-37 0L165.1 689c-12.2 14.2-1.2 35 18.5 35h656.8c19.7 0 30.7-20.8 18.5-35z"}}]},name:"caret-up",theme:"outlined"};const Rn=En;var On=function(e,t){return z.createElement(rt,ge({},e,{ref:t,icon:Rn}))},Kt=z.forwardRef(On);process.env.NODE_ENV!=="production"&&(Kt.displayName="CaretUpOutlined");const jn=Kt;var Pn={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M400 317.7h73.9V656c0 4.4 3.6 8 8 8h60c4.4 0 8-3.6 8-8V317.7H624c6.7 0 10.4-7.7 6.3-12.9L518.3 163a8 8 0 00-12.6 0l-112 141.7c-4.1 5.3-.4 13 6.3 13zM878 626h-60c-4.4 0-8 3.6-8 8v154H214V634c0-4.4-3.6-8-8-8h-60c-4.4 0-8 3.6-8 8v198c0 17.7 14.3 32 32 32h684c17.7 0 32-14.3 32-32V634c0-4.4-3.6-8-8-8z"}}]},name:"upload",theme:"outlined"};const Tn=Pn;var kn=function(e,t){return z.createElement(rt,ge({},e,{ref:t,icon:Tn}))},Jt=z.forwardRef(kn);process.env.NODE_ENV!=="production"&&(Jt.displayName="UploadOutlined");const Nn=Jt;var W=(r=>(r.Input="input",r.InputNumber="inputNumber",r.Text="text",r.Password="password",r.Radio="radio",r.Select="select",r.Checkbox="checkbox",r.DatePicker="datePicker",r.RangePicker="rangePicker",r.Upload="upload",r.Mentions="mentions",r.Cascader="cascader",r.TreeSelect="treeSelect",r))(W||{});const{RangePicker:Dn}=w.DatePicker,O=class O{static getDefaultArrayPlaceholder(e){let t;switch(e.type){case"rangePicker":t=["开始时间","结束时间"];break}return t}static getDefaultPlaceholder(e){let t;switch(e.type){case W.Input:case W.Password:case W.InputNumber:case W.Text:case W.Mentions:t=`请输入${e.label}`;break;case W.Select:case W.Checkbox:case W.Radio:case W.DatePicker:case W.RangePicker:case W.Cascader:case W.Upload:case W.TreeSelect:t=`请选择${e.label}`;break}return t}};v(O,"labelCol",{span:7}),v(O,"wrapperCol",{span:17}),v(O,"defaultRowGutter",24),v(O,"input",e=>m.jsx(w.Input,{disabled:e.disabled,maxLength:e.maxLength,...e.props,placeholder:e.placeholder||O.getDefaultPlaceholder(e)})),v(O,"password",e=>m.jsx(w.Input.Password,{disabled:e.disabled,...e.props,placeholder:e.placeholder||O.getDefaultPlaceholder(e)})),v(O,"text",e=>m.jsx(w.Input.TextArea,{disabled:e.disabled,maxLength:e.maxLength,...e.props,placeholder:e.placeholder||O.getDefaultPlaceholder(e)})),v(O,"inputNumber",e=>m.jsx(w.InputNumber,{disabled:e.disabled,maxLength:e.maxLength,...e.props,placeholder:e.placeholder||O.getDefaultPlaceholder(e)})),v(O,"datePicker",e=>m.jsx(w.DatePicker,{disabled:e.disabled,...e.props,placeholder:e.placeholder||O.getDefaultPlaceholder(e)})),v(O,"rangePicker",e=>m.jsx(Dn,{disabled:e.disabled,...e.props,placeholder:e.placeholder||O.getDefaultArrayPlaceholder(e)})),v(O,"select",e=>m.jsx(w.Select,{...e.props,disabled:e.disabled,placeholder:e.placeholder||O.getDefaultPlaceholder(e)})),v(O,"radio",e=>m.jsx(w.Radio.Group,{disabled:e.disabled,...e.props})),v(O,"checkbox",e=>m.jsx(w.Checkbox.Group,{disabled:e.disabled,...e.props})),v(O,"upload",e=>m.jsx(w.Upload,{defaultFileList:e.initialValue,...e.props,children:e.children||m.jsxs(w.Button,{children:[m.jsx(Nn,{})," 点击上传"]})})),v(O,"mentions",e=>m.jsx(w.Mentions,{...e.props,placeholder:e.placeholder||O.getDefaultPlaceholder(e)})),v(O,"cascader",e=>m.jsx(w.Cascader,{...e.props,placeholder:e.placeholder||O.getDefaultPlaceholder(e)})),v(O,"treeSelect",e=>m.jsx(w.TreeSelect,{...e.props,placeholder:e.placeholder||O.getDefaultPlaceholder(e)}));let le=O;const nt=(r="")=>xe("m-form",r);function at(r){const{formProps:e,formItems:t=[],column:n=1,form:s,itemLayout:o,formRowProps:i}=r,l=(c,g)=>{if(c.render)return c.render(g);const d=le[c.type];return c&&c.type&&d?d(c):m.jsx("div",{className:"error-message",children:"Invalid form item configuration"})},u=c=>{const{show:g=!0}=c;if(!g)return null;const d=[...c.rules||[]];c.required&&d.push({required:!0,message:c.required});const C={labelCol:le.labelCol,wrapperCol:le.wrapperCol,...o,...c.itemLayout};return m.jsx(w.Col,{span:c.span||24/n,children:m.jsx("div",{className:nt("item-wrapper"),children:m.jsx(w.Form.Item,{label:c.label,name:c.id,rules:d,initialValue:c.initialValue,...C,...c.formItemProps,children:l(c,s)})})},`col-${c.id}`)};return m.jsx(ie,{children:m.jsx(w.Form,{form:s,...e,className:`${nt()} ${e==null?void 0:e.className}`,children:m.jsx(w.Row,{gutter:le.defaultRowGutter,...i,className:`${nt("grid")} ${i==null?void 0:i.className}`,children:t.map(c=>u(c))})})})}at.displayName="MForm";let st="default";const Ie=[];let Xt=r=>{switch(r){case"light":return{algorithm:[w.theme.defaultAlgorithm]};case"dark":return{algorithm:[w.theme.darkAlgorithm]};default:return{algorithm:[w.theme.defaultAlgorithm]}}};const me=class me extends p.Component{constructor(){super(...arguments);v(this,"handleCancel",t=>{var n,s,o,i;(s=(n=this.props).onCancel)==null||s.call(n,t),(i=(o=this.props).onClosed)==null||i.call(o,{cancel:!0})});v(this,"handleOk",t=>{var n,s,o,i;(s=(n=this.props).onOk)==null||s.call(n,t),(i=(o=this.props).onClosed)==null||i.call(o,{ok:!0})})}getTheme(){const t=this.props.mode||st;return Xt(t)}render(){return m.jsx(w.ConfigProvider,{theme:this.getTheme(),componentSize:"middle",componentDisabled:!1,children:m.jsx(w.Modal,{maskClosable:!1,open:this.props.open,onCancel:this.handleCancel,onOk:this.handleOk,okText:"确定",cancelText:"取消",...this.props,children:this.props.children})})}};v(me,"setMode",t=>{st=t,Ie.forEach(n=>{n.update({mode:t})})}),v(me,"setThemeConfig",t=>{Xt=t}),v(me,"open",t=>{const n=bt(me,{mode:st,...t});Ie.push(n);const s=n.destroy;return n.destroy=(...o)=>{const i=Ie.indexOf(n);return i!==-1&&Ie.splice(i,1),s(...o)},n});let ot=me;const wa="",An=13,ae=(r="")=>xe("m-search",r),$n=r=>{const{className:e,searchItems:t=[],onSearch:n,defaultShowAll:s=!1,customButtons:o=[],form:i}=r,[l,u]=p.useState(s),[c]=w.Form.useForm(),g=p.useRef(null),d=i??c,C=S=>{const{keyCode:P}=S;P===An&&D()};p.useEffect(()=>{const S=g.current;return S==null||S.addEventListener("keydown",C),()=>{S==null||S.removeEventListener("keydown",C)}},[]);const k=()=>{d==null||d.resetFields(),D(!0)},D=(S=!1)=>{d==null||d.validateFields().then(P=>{yt(P),n==null||n(P,S)})},A=()=>{const S=t.length>2;return m.jsxs("div",{className:ae("btn-wrapper"),children:[(o==null?void 0:o.length)>0?m.jsx(m.Fragment,{children:o.map((P,L)=>m.jsx(w.Button,{className:ae("btn"),...P,children:P.children},`custom-btn-${L}`))}):m.jsxs(m.Fragment,{children:[m.jsx(w.Button,{className:ae("btn btn-reset"),onClick:k,children:"重置"}),m.jsx(w.Button,{className:ae("btn btn-search"),onClick:()=>D(),type:"primary",children:"搜索"})]}),S&&m.jsxs("div",{className:ae("btn btn-collapse"),onClick:()=>u(!l),children:[m.jsx("span",{children:l?"收起":"展开"}),l?m.jsx(jn,{}):m.jsx(_n,{})]})]})},V=t.map((S,P)=>{var Z;const L={...S};return t.length>2&&P>=2&&!l&&(L.formItemProps={...S.formItemProps,style:{...(Z=S.formItemProps)==null?void 0:Z.style,display:"none"}}),L}),N=t.length>2;return m.jsx(ie,{children:m.jsx("div",{className:`${ae("")} ${l?"":ae("collapsed")} ${e||""}`,ref:g,children:m.jsxs(w.Card,{children:[m.jsxs("div",{className:ae("form"),children:[m.jsx(at,{form:d,formItems:V,column:3}),(!N||N&&!l)&&A()]}),N&&l&&m.jsx("div",{className:ae("footer"),children:A()})]})})})};function Mn(r){var t;const e=((t=r.columns)==null?void 0:t.map(n=>({...n,dataIndex:n.key})))??[];return m.jsxs(ie,{children:[m.jsx(w.Table,{rowKey:n=>n.id,...r,columns:e}),";"]})}const In={YMD_Hms:"YYYY-MM-DD HH:mm:ss",YMD:"YYYY-MM-DD",YMD2:"YYYYMMDD",YMD_POINT:"YYYY.M.DD",Hms:"HH:mm:ss",Hm:"HH:mm",YMD_000:"YYYY-MM-DD 00:00:00",YMD_end:"YYYY-MM-DD 23:59:59",YMD_Hm:"YYYYMMDD HHmm"},Qt=10;class T{}v(T,"integerRegex",/^-?\d+$/),v(T,"positiveIntegerRegex",/^[1-9]\d*$/),v(T,"negativeIntegerRegex",/^-[1-9]\d*$/),v(T,"floatRegex",/^-?\d+(\.\d+)?$/),v(T,"letter",/^[a-zA-Z]+$/),v(T,"chinese",/^[\u4e00-\u9fa5]+$/),v(T,"number",/^[0-9]*$/),v(T,"username",/^[a-zA-Z]\w{3,15}$/),v(T,"strongUsername",/^(?=.*[a-z])(?=.*[A-Z])(?=.*\d)[a-zA-Z\d]{6,20}$/),v(T,"password",/^(?=.*[A-Za-z])(?=.*\d)[A-Za-z\d]{8,}$/),v(T,"strongPassword",/^(?=.*[a-z])(?=.*[A-Z])(?=.*\d)(?=.*[@$!%*?&])[A-Za-z\d@$!%*?&]{8,}$/),v(T,"phone",/^1[3-9]\d{9}$/),v(T,"phoneWithAreaCode",/^\+?\d{2,3}-?\d{8,11}$/),v(T,"email",/^[a-zA-Z0-9._%+-]+@[a-zA-Z0-9.-]+\.[a-zA-Z]{2,}$/),v(T,"idCard",/^[1-9]\d{5}[1-9]\d{3}((0\d)|(1[0-2]))(([0|1|2]\d)|3[0-1])\d{3}([0-9]|X)$/),v(T,"bankCard",/^[1-9]\d{3,30}$/),v(T,"zipCode",/^[1-9]\d{5}$/),v(T,"ip",/^(\d{1,2}|1\d\d|2[0-4]\d|25[0-5])\.(\d{1,2}|1\d\d|2[0-4]\d|25[0-5])\.(\d{1,2}|1\d\d|2[0-4]\d|25[0-5])\.(\d{1,2}|1\d\d|2[0-4]\d|25[0-5])$/),v(T,"url",/^(https?:\/\/)?([\da-z.-]+)\.([a-z.]{2,6})([/\w .-]*)*\/?$/),v(T,"carNumber",/^[京津沪渝冀豫云辽黑湘皖鲁新苏浙赣鄂桂甘晋蒙陕吉闽贵粤青藏川宁琼使领][A-HJ-NP-Z][A-HJ-NP-Z0-9]{4,5}[A-HJ-NP-Z0-9挂学警港澳]$/),v(T,"time",/^([0-1][0-9]|2[0-3]):([0-5][0-9]):([0-5][0-9])$/),v(T,"date",/^(\d{4})-(\d{2})-(\d{2})$/);function zn(r,e){const[t,n]=p.useState(!1),[s,o]=p.useState(null),[i,l]=p.useState(null),u=p.useRef(void 0),c=p.useRef(0),g=()=>{var C;(C=u.current)==null||C.abort(),n(!1),o(null)},d=async(...C)=>{var A,V,N,S;const k=++c.current;g();const D=new AbortController;u.current=D;try{if(n(!0),o(null),e!=null&&e.onBefore&&!await((A=e==null?void 0:e.onBefore)==null?void 0:A.call(e,...C))){g();return}const P=C.length>=r.length?C:[...C,{signal:D.signal}],L=await r(...P);return!D.signal.aborted&&k===c.current&&(l(L),await((V=e==null?void 0:e.onSuccess)==null?void 0:V.call(e,L))),L}catch(P){throw!D.signal.aborted&&k===c.current&&(o(P),await((N=e==null?void 0:e.onError)==null?void 0:N.call(e,P))),P}finally{!D.signal.aborted&&k===c.current&&(n(!1),await((S=e==null?void 0:e.onFinally)==null?void 0:S.call(e)))}};return p.useEffect(()=>(e!=null&&e.autoRunArgs&&d(...e.autoRunArgs).catch(()=>{}),g),[JSON.stringify(e==null?void 0:e.autoRunArgs)]),{run:d,cancel:g,loading:t,error:s,data:i}}function Yn(r,e,t=!1){const n=p.useRef(void 0),s=p.useRef(r);p.useEffect(()=>{s.current=r},[r]);const o=p.useCallback(()=>{n.current&&(clearInterval(n.current),n.current=void 0)},[]),i=p.useCallback(()=>{o(),e!=null&&(n.current=setInterval(()=>s.current(),e))},[e,o]);return p.useEffect(()=>(t&&s.current(),i(),o),[e,i,o,t]),{start:i,clear:o,isRunning:!!n.current}}const Hn=(r,e,t)=>{const{isReady:n=!0,dataSource:s=[],current:o=1,pageSize:i=10}=t||{},[l,u]=p.useState(o),[c,g]=p.useState(i),[d,C]=p.useState(s),[k,D]=p.useState(0),[A,V]=p.useState(!1),[N,S]=p.useState(!1),P=p.useRef(l),L=p.useRef(c),Z=R=>{u(R),P.current=R},se=R=>{g(R),L.current=R},J=p.useRef(0),je=async()=>{if(!n)return;let R=P.current,Y=L.current;V(!0),J.current++;const te=J.current;try{let G=Math.round((R-1)*Y);G<0&&(G=0),Y<1&&(Y=1);let{dataSource:fe,total:re}=await r({limit:Y,offset:G,current:R});if(te!==J.current)return;if(c*(R-1)>=re&&R!==1){R=1;const ze=Math.ceil(re/c);if({dataSource:fe,total:re}=await r({limit:Y,offset:G,current:R}),te!==J.current)return;R=ze}C(fe),Z(R),se(Y),D(re)}catch(G){if(console.error("fetch err",G),te!==J.current)return}finally{S(!0),V(!1)}},X=async R=>{R&&(C([]),Z(o),se(i)),await je()},ue=p.useCallback(We(X,500),[X]),Pe=[...e||[],n];return p.useEffect(()=>{n&&ue(!0)},Pe),{tableProps:{loading:A,dataSource:d},loading:A,dataSource:d,paginationProps:{current:l,pageSize:c,total:k,onChange:async(R,Y)=>{Z(R),se(Y),await X()},onShowSizeChange:async(R,Y)=>{se(R),Z(Y),await X()}},isFirstComplete:N,refresh:X,debounceRefresh:ue,setDataSource:C}};function Ln(){const r=window.location.href.split("?")[1]||"",e=new URLSearchParams(r);return Object.fromEntries(e.entries())}const Vn=r=>{const[e,t]=p.useState(r),n=p.useRef(e),s=p.useCallback(l=>{t(u=>{const c=typeof l=="function"?l(u):l,g={...u,...c};return n.current=g,g})},[]),o=p.useCallback(()=>n.current,[]),i=p.useCallback(()=>{t(r),n.current=r},[r]);return[e,s,o,i]};function Fn(r,e,t=!1){const n=p.useRef(void 0),s=p.useRef(r);p.useEffect(()=>{s.current=r},[r]);const o=p.useCallback(()=>{n.current&&(clearTimeout(n.current),n.current=void 0)},[]),i=p.useCallback(()=>{o(),e!=null&&(n.current=setTimeout(()=>s.current(),e))},[e,o]);return p.useEffect(()=>(t&&s.current(),i(),o),[e,i,o,t]),{start:i,clear:o,isRunning:!!n.current}}const Un=(r,e,t)=>{const{isReady:n=!0,dataSource:s=[],current:o=1,pageSize:i=Qt}=t||{},[l,u]=p.useState(!1),[c,g]=p.useState(o),[d,C]=p.useState(i),[k,D]=p.useState(0),[A,V]=p.useState(!1),[N,S]=p.useState(s),P=p.useRef(c),L=p.useRef(d),Z=F=>{g(F),P.current=F},se=F=>{C(F),L.current=F},J=p.useRef(0),je=async F=>{if(!n)return;let $=P.current,U=L.current;V(!0),J.current+=1;const R=J.current;try{let Y=Math.round(($-1)*U);Y<0&&(Y=0),U<1&&(U=1);let{dataSource:te,total:G}=await r({limit:U,offset:Y,current:$});if(R!==J.current)return;if(d*($-1)>=G&&$!==1){const re=Math.ceil(G/d);if({dataSource:te,total:G}=await r({limit:U,offset:Math.round((re-1)*U),current:$}),R!==J.current)return;$=re}const fe=F?te:N.concat(te);S(fe),Z($),se(U),D(G)}catch(Y){if(console.error("fetch err",Y),R!==J.current)return}u(!0),V(!1)},X=async F=>{if(F)S([]),Z(o),se(i);else{const $=d*c;if(k&&k<=$)return;Z(c+1)}await je(F)},ue=p.useCallback(We(X,500),[X]),Pe=[...e||[],n];return p.useEffect(()=>{n&&ue(!0)},Pe),{loading:A,dataSource:N,paginationProps:{current:c,pageSize:d,total:k},isFirstComplete:l,refresh:async F=>{await X(F)},debounceRefresh:ue,setDataSource:S,setTotal:D}};b.CompThemeProvider=ie,b.DATE_FORMAT=In,b.ItemsRow=xt,b.MBreadcrumb=$r,b.MDescriptions=_t,b.MForm=at,b.MFormItemConst=le,b.MFormItemTypeEnum=W,b.MSearch=$n,b.MTable=Mn,b.MiModal=ot,b.MiThemeProvider=Ar,b.NextTick=Se,b.PAGE_SIZE=Qt,b.PatternType=T,b.VersionUtil=Dr,b.cmx=Er,b.debounce=We,b.getClassName=xe,b.getFieldsByPath=kr,b.nextTick=Rr,b.noop=Tr,b.openModal=bt,b.removeNull=yt,b.throttle=Nr,b.useFuncRequest=zn,b.useInterval=Yn,b.useMiThemeConfig=St,b.usePagination=Hn,b.useQuery=Ln,b.useReactive=Vn,b.useTimeout=Fn,b.useVirtualList=Un,Object.defineProperty(b,Symbol.toStringTag,{value:"Module"})});
package/dist/style.css CHANGED
@@ -1 +1 @@
1
- @keyframes m-breadcrumb_show_ani{0%{opacity:0}to{opacity:100}}.m-breadcrumb{position:relative;height:64px;width:100%}.m-breadcrumb-container{transition:padding .3s ease}.m-breadcrumb-body{border-radius:8px;height:64px;line-height:64px}.m-breadcrumb .ant-card-body{width:100%;padding:0 12px;align-items:center}.m-breadcrumb .ant-affix{z-index:999}.ant-affix>.m-breadcrumb-container{z-index:100;width:auto;box-shadow:0 6px 16px #00000014,0 3px 6px -4px #0000001f,0 9px 28px 8px #0000000d}.m-breadcrumb-inner-breadcrumb{display:inline-block;vertical-align:middle;line-height:64px}.m-breadcrumb-inner-breadcrumb .ant-breadcrumb-separator{margin:0 8px}.m-breadcrumb-inner-breadcrumb .ant-breadcrumb-link>a{transition:all .3s;padding:4px 8px;display:inline-block;line-height:1.5}.m-breadcrumb-inner-breadcrumb .ant-breadcrumb-link>a:hover{font-weight:700;text-decoration:none;opacity:.8}.m-breadcrumb-custom-item-wrapper{float:right;height:100%;display:flex;align-items:center}.m-form-item-wrapper{max-width:480px}.m-form .error-message{color:red;font-size:12px;margin-top:4px}
1
+ @keyframes m-breadcrumb_show_ani{0%{opacity:0}to{opacity:100}}.m-breadcrumb{position:relative;height:64px;width:100%}.m-breadcrumb-container{transition:padding .3s ease}.m-breadcrumb-body{border-radius:8px;height:64px;line-height:64px}.m-breadcrumb .ant-card-body{width:100%;padding:0 12px;align-items:center}.m-breadcrumb .ant-affix{z-index:999}.ant-affix>.m-breadcrumb-container{z-index:100;width:auto;box-shadow:0 6px 16px #00000014,0 3px 6px -4px #0000001f,0 9px 28px 8px #0000000d}.m-breadcrumb-inner-breadcrumb{display:inline-block;vertical-align:middle;line-height:64px}.m-breadcrumb-inner-breadcrumb .ant-breadcrumb-separator{margin:0 8px}.m-breadcrumb-inner-breadcrumb .ant-breadcrumb-link>a{transition:all .3s;padding:4px 8px;display:inline-block;line-height:1.5}.m-breadcrumb-inner-breadcrumb .ant-breadcrumb-link>a:hover{font-weight:700;text-decoration:none;opacity:.8}.m-breadcrumb-custom-item-wrapper{float:right;height:100%;display:flex;align-items:center}.m-form-item-wrapper{max-width:480px}.m-form .error-message{color:red;font-size:12px;margin-top:4px}.m-search{position:relative;border-radius:8px}.m-search .ant-card{margin:0;padding:16px 0}.m-search .ant-card .ant-card-body{padding:0;border-radius:0}.m-search-form{position:relative;margin-right:20px}.m-search-btn-wrapper{display:inline-block}.m-search-collapsed .m-search-btn-wrapper{position:absolute;right:0;top:0;display:flex;height:100%;align-items:center}.m-search .ant-form-item{margin-bottom:10px}.m-search-collapsed .ant-form-item{margin-bottom:0}.m-search-footer{text-align:right;padding:10px 20px}.m-search-btn{margin-left:10px}.m-search-btn-collapse{display:inline-block;cursor:pointer}.m-search .ant-calendar-picker{width:auto!important}
@@ -1,4 +1,5 @@
1
1
  export * from './calc';
2
2
  export * from './nextTick';
3
+ export * from './openModal';
3
4
  export * from './util';
4
5
  export * from './version';
@@ -1,5 +1,5 @@
1
1
  export * from './calc';
2
2
  export * from './nextTick';
3
- // export * from './openModal';
3
+ export * from './openModal';
4
4
  export * from './util';
5
5
  export * from './version';
@@ -0,0 +1,15 @@
1
+ import type { ModalProps } from 'antd';
2
+ import { type ComponentType } from 'react';
3
+ interface IModalBaseClosedParams {
4
+ cancel?: boolean;
5
+ ok?: boolean;
6
+ }
7
+ export interface IModalBaseProps extends ModalProps {
8
+ onClosed?: (params?: IModalBaseClosedParams) => void;
9
+ }
10
+ export interface IModalControls<T = any> {
11
+ destroy: (params?: IModalBaseClosedParams) => void;
12
+ update: (configUpdate: Partial<T> | ((prevConfig: T) => T)) => void;
13
+ }
14
+ declare function openModal<ITModalProps extends IModalBaseProps = IModalBaseProps>(DialogComponent: ComponentType<ITModalProps>, initialConfig: ITModalProps): IModalControls<ITModalProps>;
15
+ export { openModal };
@@ -0,0 +1,98 @@
1
+ import { jsx as _jsx } from "react/jsx-runtime";
2
+ import * as ReactDOMClient from 'react-dom/client';
3
+ const { createRoot } = ReactDOMClient;
4
+ const destroyFns = [];
5
+ let modalContainer = null;
6
+ let root = null;
7
+ function getOrCreateContainer() {
8
+ if (!modalContainer) {
9
+ modalContainer = document.createElement('div');
10
+ document.body.appendChild(modalContainer);
11
+ }
12
+ return modalContainer;
13
+ }
14
+ function openModal(DialogComponent, initialConfig) {
15
+ const container = getOrCreateContainer();
16
+ let currentConfig = {
17
+ open: true,
18
+ ...initialConfig,
19
+ // 默认自动关闭
20
+ onClosed: initialConfig.onClosed ||
21
+ ((params) => {
22
+ unifiedDestroy(params);
23
+ }),
24
+ };
25
+ if (!root) {
26
+ try {
27
+ root = createRoot(container);
28
+ }
29
+ catch (error) {
30
+ console.error('Failed to create root:', error);
31
+ return {
32
+ destroy: () => { },
33
+ update: () => { },
34
+ };
35
+ }
36
+ }
37
+ const cleanup = () => {
38
+ if (root) {
39
+ root.unmount();
40
+ root = null;
41
+ }
42
+ if (modalContainer && modalContainer.parentNode) {
43
+ modalContainer.parentNode.removeChild(modalContainer);
44
+ modalContainer = null;
45
+ }
46
+ };
47
+ const destroy = (params) => {
48
+ if (typeof currentConfig.onClosed === 'function') {
49
+ currentConfig.onClosed(params);
50
+ }
51
+ // 从 destroyFns 中移除
52
+ const index = destroyFns.indexOf(destroy);
53
+ if (index !== -1) {
54
+ destroyFns.splice(index, 1);
55
+ }
56
+ // 销毁 modal
57
+ cleanup();
58
+ };
59
+ const render = (props) => {
60
+ if (root) {
61
+ root.render(_jsx(DialogComponent, { ...props }));
62
+ }
63
+ };
64
+ const update = (configUpdate) => {
65
+ currentConfig =
66
+ typeof configUpdate === 'function'
67
+ ? configUpdate(currentConfig)
68
+ : { ...currentConfig, ...configUpdate };
69
+ render(currentConfig);
70
+ };
71
+ // 统一的销毁函数
72
+ const unifiedDestroy = (params) => {
73
+ // 如果当前配置是打开的,关闭
74
+ if (currentConfig.open) {
75
+ currentConfig = {
76
+ ...currentConfig,
77
+ open: false,
78
+ onClosed: (closedParams) => {
79
+ if (initialConfig.onClosed) {
80
+ initialConfig.onClosed(closedParams || params);
81
+ }
82
+ destroy(closedParams || params);
83
+ },
84
+ };
85
+ render(currentConfig);
86
+ }
87
+ else {
88
+ console.warn('Modal is already closed.');
89
+ }
90
+ };
91
+ render(currentConfig);
92
+ destroyFns.push(unifiedDestroy);
93
+ return {
94
+ destroy: unifiedDestroy,
95
+ update,
96
+ };
97
+ }
98
+ export { openModal };
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@mi-avalon/libs",
3
3
  "private": false,
4
- "version": "0.0.23",
4
+ "version": "0.0.25",
5
5
  "type": "module",
6
6
  "main": "./dist/index.umd.js",
7
7
  "module": "./dist/index.es.js",