xph-crud 0.0.8 → 0.0.9

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.
@@ -1,4 +1,4 @@
1
- (function(Y,d){typeof exports=="object"&&typeof module<"u"?d(exports,require("react"),require("antd"),require("@ant-design/icons"),require("react-dom")):typeof define=="function"&&define.amd?define(["exports","react","antd","@ant-design/icons","react-dom"],d):(Y=typeof globalThis<"u"?globalThis:Y||self,d(Y["xph-crud"]={},Y.React,Y.Antd,Y.AntDesignIcons,Y.ReactDOM))})(this,function(Y,d,F,ve,cn){"use strict";const at=[];for(let e=0;e<=15;e++)at[e]=e.toString(16);function lt(){let e="";for(let t=1;t<=36;t++)t===9||t===14||t===19||t===24?e+="-":t===15?e+=4:t===20?e+=at[Math.random()*4|8]:e+=at[Math.random()*16|0];return e.replace(/-/g,"")}const zt=(e,t)=>{const r=t.split(".").filter(Boolean);let n=e;for(const o of r)if(n[o]!==void 0)n=n[o];else return;return r.length?n:void 0},ct=(e,t)=>{const r={};for(const[n,o]of Object.entries(e))r[n]=zt(t,o);return r};var un=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function fn(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var ut={exports:{}},Ie={};/**
1
+ (function(q,d){typeof exports=="object"&&typeof module<"u"?d(exports,require("react"),require("antd"),require("@ant-design/icons"),require("react-dom")):typeof define=="function"&&define.amd?define(["exports","react","antd","@ant-design/icons","react-dom"],d):(q=typeof globalThis<"u"?globalThis:q||self,d(q["xph-crud"]={},q.React,q.Antd,q.AntDesignIcons,q.ReactDOM))})(this,function(q,d,M,ye,hn){"use strict";const ft=[];for(let e=0;e<=15;e++)ft[e]=e.toString(16);function dt(){let e="";for(let t=1;t<=36;t++)t===9||t===14||t===19||t===24?e+="-":t===15?e+=4:t===20?e+=ft[Math.random()*4|8]:e+=ft[Math.random()*16|0];return e.replace(/-/g,"")}const Bt=(e,t)=>{const r=t.split(".").filter(Boolean);let n=e;for(const o of r)if(n[o]!==void 0)n=n[o];else return;return r.length?n:void 0},pt=(e,t)=>{const r={};for(const[n,o]of Object.entries(e))r[n]=Bt(t,o);return r};var gn=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function mn(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var ht={exports:{}},ze={};/**
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 Lt;function dn(){if(Lt)return Ie;Lt=1;var e=d,t=Symbol.for("react.element"),r=Symbol.for("react.fragment"),n=Object.prototype.hasOwnProperty,o=e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,i={key:!0,ref:!0,__self:!0,__source:!0};function a(s,c,u){var f,h={},g=null,w=null;u!==void 0&&(g=""+u),c.key!==void 0&&(g=""+c.key),c.ref!==void 0&&(w=c.ref);for(f in c)n.call(c,f)&&!i.hasOwnProperty(f)&&(h[f]=c[f]);if(s&&s.defaultProps)for(f in c=s.defaultProps,c)h[f]===void 0&&(h[f]=c[f]);return{$$typeof:t,type:s,key:g,ref:w,props:h,_owner:o.current}}return Ie.Fragment=r,Ie.jsx=a,Ie.jsxs=a,Ie}var ke={};/**
9
+ */var Ht;function vn(){if(Ht)return ze;Ht=1;var e=d,t=Symbol.for("react.element"),r=Symbol.for("react.fragment"),n=Object.prototype.hasOwnProperty,o=e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,s={key:!0,ref:!0,__self:!0,__source:!0};function i(a,c,u){var f,p={},h=null,b=null;u!==void 0&&(h=""+u),c.key!==void 0&&(h=""+c.key),c.ref!==void 0&&(b=c.ref);for(f in c)n.call(c,f)&&!s.hasOwnProperty(f)&&(p[f]=c[f]);if(a&&a.defaultProps)for(f in c=a.defaultProps,c)p[f]===void 0&&(p[f]=c[f]);return{$$typeof:t,type:a,key:h,ref:b,props:p,_owner:o.current}}return ze.Fragment=r,ze.jsx=i,ze.jsxs=i,ze}var Le={};/**
10
10
  * @license React
11
11
  * react-jsx-runtime.development.js
12
12
  *
@@ -14,12 +14,12 @@
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 Nt;function pn(){return Nt||(Nt=1,process.env.NODE_ENV!=="production"&&function(){var e=d,t=Symbol.for("react.element"),r=Symbol.for("react.portal"),n=Symbol.for("react.fragment"),o=Symbol.for("react.strict_mode"),i=Symbol.for("react.profiler"),a=Symbol.for("react.provider"),s=Symbol.for("react.context"),c=Symbol.for("react.forward_ref"),u=Symbol.for("react.suspense"),f=Symbol.for("react.suspense_list"),h=Symbol.for("react.memo"),g=Symbol.for("react.lazy"),w=Symbol.for("react.offscreen"),p=Symbol.iterator,T="@@iterator";function P(l){if(l===null||typeof l!="object")return null;var y=p&&l[p]||l[T];return typeof y=="function"?y:null}var k=e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;function O(l){{for(var y=arguments.length,D=new Array(y>1?y-1:0),N=1;N<y;N++)D[N-1]=arguments[N];B("error",l,D)}}function B(l,y,D){{var N=k.ReactDebugCurrentFrame,G=N.getStackAddendum();G!==""&&(y+="%s",D=D.concat([G]));var Z=D.map(function(V){return String(V)});Z.unshift("Warning: "+y),Function.prototype.apply.call(console[l],console,Z)}}var X=!1,q=!1,J=!1,ne=!1,E=!1,j;j=Symbol.for("react.module.reference");function C(l){return!!(typeof l=="string"||typeof l=="function"||l===n||l===i||E||l===o||l===u||l===f||ne||l===w||X||q||J||typeof l=="object"&&l!==null&&(l.$$typeof===g||l.$$typeof===h||l.$$typeof===a||l.$$typeof===s||l.$$typeof===c||l.$$typeof===j||l.getModuleId!==void 0))}function x(l,y,D){var N=l.displayName;if(N)return N;var G=y.displayName||y.name||"";return G!==""?D+"("+G+")":D}function z(l){return l.displayName||"Context"}function L(l){if(l==null)return null;if(typeof l.tag=="number"&&O("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),typeof l=="function")return l.displayName||l.name||null;if(typeof l=="string")return l;switch(l){case n:return"Fragment";case r:return"Portal";case i:return"Profiler";case o:return"StrictMode";case u:return"Suspense";case f:return"SuspenseList"}if(typeof l=="object")switch(l.$$typeof){case s:var y=l;return z(y)+".Consumer";case a:var D=l;return z(D._context)+".Provider";case c:return x(l,l.render,"ForwardRef");case h:var N=l.displayName||null;return N!==null?N:L(l.type)||"Memo";case g:{var G=l,Z=G._payload,V=G._init;try{return L(V(Z))}catch{return null}}}return null}var _=Object.assign,v=0,b,$,S,R,M,A,I;function W(){}W.__reactDisabledLog=!0;function H(){{if(v===0){b=console.log,$=console.info,S=console.warn,R=console.error,M=console.group,A=console.groupCollapsed,I=console.groupEnd;var l={configurable:!0,enumerable:!0,value:W,writable:!0};Object.defineProperties(console,{info:l,log:l,warn:l,error:l,group:l,groupCollapsed:l,groupEnd:l})}v++}}function se(){{if(v--,v===0){var l={configurable:!0,enumerable:!0,writable:!0};Object.defineProperties(console,{log:_({},l,{value:b}),info:_({},l,{value:$}),warn:_({},l,{value:S}),error:_({},l,{value:R}),group:_({},l,{value:M}),groupCollapsed:_({},l,{value:A}),groupEnd:_({},l,{value:I})})}v<0&&O("disabledDepth fell below zero. This is a bug in React. Please file an issue.")}}var de=k.ReactCurrentDispatcher,ie;function me(l,y,D){{if(ie===void 0)try{throw Error()}catch(G){var N=G.stack.trim().match(/\n( *(at )?)/);ie=N&&N[1]||""}return`
18
- `+ie+l}}var ae=!1,ee;{var pe=typeof WeakMap=="function"?WeakMap:Map;ee=new pe}function _e(l,y){if(!l||ae)return"";{var D=ee.get(l);if(D!==void 0)return D}var N;ae=!0;var G=Error.prepareStackTrace;Error.prepareStackTrace=void 0;var Z;Z=de.current,de.current=null,H();try{if(y){var V=function(){throw Error()};if(Object.defineProperty(V.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(V,[])}catch(Se){N=Se}Reflect.construct(l,[],V)}else{try{V.call()}catch(Se){N=Se}l.call(V.prototype)}}else{try{throw Error()}catch(Se){N=Se}l()}}catch(Se){if(Se&&N&&typeof Se.stack=="string"){for(var U=Se.stack.split(`
19
- `),le=N.stack.split(`
20
- `),te=U.length-1,re=le.length-1;te>=1&&re>=0&&U[te]!==le[re];)re--;for(;te>=1&&re>=0;te--,re--)if(U[te]!==le[re]){if(te!==1||re!==1)do if(te--,re--,re<0||U[te]!==le[re]){var he=`
21
- `+U[te].replace(" at new "," at ");return l.displayName&&he.includes("<anonymous>")&&(he=he.replace("<anonymous>",l.displayName)),typeof l=="function"&&ee.set(l,he),he}while(te>=1&&re>=0);break}}}finally{ae=!1,de.current=Z,se(),Error.prepareStackTrace=G}var Re=l?l.displayName||l.name:"",ln=Re?me(Re):"";return typeof l=="function"&&ee.set(l,ln),ln}function je(l,y,D){return _e(l,!1)}function Ot(l){var y=l.prototype;return!!(y&&y.isReactComponent)}function Ae(l,y,D){if(l==null)return"";if(typeof l=="function")return _e(l,Ot(l));if(typeof l=="string")return me(l);switch(l){case u:return me("Suspense");case f:return me("SuspenseList")}if(typeof l=="object")switch(l.$$typeof){case c:return je(l.render);case h:return Ae(l.type,y,D);case g:{var N=l,G=N._payload,Z=N._init;try{return Ae(Z(G),y,D)}catch{}}}return""}var st=Object.prototype.hasOwnProperty,Xr={},Kr=k.ReactDebugCurrentFrame;function it(l){if(l){var y=l._owner,D=Ae(l.type,l._source,y?y.type:null);Kr.setExtraStackFrame(D)}else Kr.setExtraStackFrame(null)}function Ol(l,y,D,N,G){{var Z=Function.call.bind(st);for(var V in l)if(Z(l,V)){var U=void 0;try{if(typeof l[V]!="function"){var le=Error((N||"React class")+": "+D+" type `"+V+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof l[V]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw le.name="Invariant Violation",le}U=l[V](y,V,N,D,null,"SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED")}catch(te){U=te}U&&!(U instanceof Error)&&(it(G),O("%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).",N||"React class",D,V,typeof U),it(null)),U instanceof Error&&!(U.message in Xr)&&(Xr[U.message]=!0,it(G),O("Failed %s type: %s",D,U.message),it(null))}}}var Al=Array.isArray;function At(l){return Al(l)}function Ml(l){{var y=typeof Symbol=="function"&&Symbol.toStringTag,D=y&&l[Symbol.toStringTag]||l.constructor.name||"Object";return D}}function Rl(l){try{return Jr(l),!1}catch{return!0}}function Jr(l){return""+l}function Zr(l){if(Rl(l))return O("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.",Ml(l)),Jr(l)}var Ue=k.ReactCurrentOwner,Il={key:!0,ref:!0,__self:!0,__source:!0},Qr,en,Mt;Mt={};function kl(l){if(st.call(l,"ref")){var y=Object.getOwnPropertyDescriptor(l,"ref").get;if(y&&y.isReactWarning)return!1}return l.ref!==void 0}function zl(l){if(st.call(l,"key")){var y=Object.getOwnPropertyDescriptor(l,"key").get;if(y&&y.isReactWarning)return!1}return l.key!==void 0}function Ll(l,y){if(typeof l.ref=="string"&&Ue.current&&y&&Ue.current.stateNode!==y){var D=L(Ue.current.type);Mt[D]||(O('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',L(Ue.current.type),l.ref),Mt[D]=!0)}}function Nl(l,y){{var D=function(){Qr||(Qr=!0,O("%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)",y))};D.isReactWarning=!0,Object.defineProperty(l,"key",{get:D,configurable:!0})}}function Wl(l,y){{var D=function(){en||(en=!0,O("%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)",y))};D.isReactWarning=!0,Object.defineProperty(l,"ref",{get:D,configurable:!0})}}var Bl=function(l,y,D,N,G,Z,V){var U={$$typeof:t,type:l,key:y,ref:D,props:V,_owner:Z};return U._store={},Object.defineProperty(U._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:!1}),Object.defineProperty(U,"_self",{configurable:!1,enumerable:!1,writable:!1,value:N}),Object.defineProperty(U,"_source",{configurable:!1,enumerable:!1,writable:!1,value:G}),Object.freeze&&(Object.freeze(U.props),Object.freeze(U)),U};function Hl(l,y,D,N,G){{var Z,V={},U=null,le=null;D!==void 0&&(Zr(D),U=""+D),zl(y)&&(Zr(y.key),U=""+y.key),kl(y)&&(le=y.ref,Ll(y,G));for(Z in y)st.call(y,Z)&&!Il.hasOwnProperty(Z)&&(V[Z]=y[Z]);if(l&&l.defaultProps){var te=l.defaultProps;for(Z in te)V[Z]===void 0&&(V[Z]=te[Z])}if(U||le){var re=typeof l=="function"?l.displayName||l.name||"Unknown":l;U&&Nl(V,re),le&&Wl(V,re)}return Bl(l,U,le,G,N,Ue.current,V)}}var Rt=k.ReactCurrentOwner,tn=k.ReactDebugCurrentFrame;function Me(l){if(l){var y=l._owner,D=Ae(l.type,l._source,y?y.type:null);tn.setExtraStackFrame(D)}else tn.setExtraStackFrame(null)}var It;It=!1;function kt(l){return typeof l=="object"&&l!==null&&l.$$typeof===t}function rn(){{if(Rt.current){var l=L(Rt.current.type);if(l)return`
17
+ */var Ut;function yn(){return Ut||(Ut=1,process.env.NODE_ENV!=="production"&&function(){var e=d,t=Symbol.for("react.element"),r=Symbol.for("react.portal"),n=Symbol.for("react.fragment"),o=Symbol.for("react.strict_mode"),s=Symbol.for("react.profiler"),i=Symbol.for("react.provider"),a=Symbol.for("react.context"),c=Symbol.for("react.forward_ref"),u=Symbol.for("react.suspense"),f=Symbol.for("react.suspense_list"),p=Symbol.for("react.memo"),h=Symbol.for("react.lazy"),b=Symbol.for("react.offscreen"),g=Symbol.iterator,x="@@iterator";function j(l){if(l===null||typeof l!="object")return null;var v=g&&l[g]||l[x];return typeof v=="function"?v:null}var F=e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;function A(l){{for(var v=arguments.length,E=new Array(v>1?v-1:0),N=1;N<v;N++)E[N-1]=arguments[N];H("error",l,E)}}function H(l,v,E){{var N=F.ReactDebugCurrentFrame,K=N.getStackAddendum();K!==""&&(v+="%s",E=E.concat([K]));var Z=E.map(function(X){return String(X)});Z.unshift("Warning: "+v),Function.prototype.apply.call(console[l],console,Z)}}var G=!1,Y=!1,z=!1,I=!1,O=!1,$;$=Symbol.for("react.module.reference");function C(l){return!!(typeof l=="string"||typeof l=="function"||l===n||l===s||O||l===o||l===u||l===f||I||l===b||G||Y||z||typeof l=="object"&&l!==null&&(l.$$typeof===h||l.$$typeof===p||l.$$typeof===i||l.$$typeof===a||l.$$typeof===c||l.$$typeof===$||l.getModuleId!==void 0))}function T(l,v,E){var N=l.displayName;if(N)return N;var K=v.displayName||v.name||"";return K!==""?E+"("+K+")":E}function L(l){return l.displayName||"Context"}function W(l){if(l==null)return null;if(typeof l.tag=="number"&&A("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),typeof l=="function")return l.displayName||l.name||null;if(typeof l=="string")return l;switch(l){case n:return"Fragment";case r:return"Portal";case s:return"Profiler";case o:return"StrictMode";case u:return"Suspense";case f:return"SuspenseList"}if(typeof l=="object")switch(l.$$typeof){case a:var v=l;return L(v)+".Consumer";case i:var E=l;return L(E._context)+".Provider";case c:return T(l,l.render,"ForwardRef");case p:var N=l.displayName||null;return N!==null?N:W(l.type)||"Memo";case h:{var K=l,Z=K._payload,X=K._init;try{return W(X(Z))}catch{return null}}}return null}var _=Object.assign,y=0,w,D,S,k,P,R,B;function U(){}U.__reactDisabledLog=!0;function ee(){{if(y===0){w=console.log,D=console.info,S=console.warn,k=console.error,P=console.group,R=console.groupCollapsed,B=console.groupEnd;var l={configurable:!0,enumerable:!0,value:U,writable:!0};Object.defineProperties(console,{info:l,log:l,warn:l,error:l,group:l,groupCollapsed:l,groupEnd:l})}y++}}function se(){{if(y--,y===0){var l={configurable:!0,enumerable:!0,writable:!0};Object.defineProperties(console,{log:_({},l,{value:w}),info:_({},l,{value:D}),warn:_({},l,{value:S}),error:_({},l,{value:k}),group:_({},l,{value:P}),groupCollapsed:_({},l,{value:R}),groupEnd:_({},l,{value:B})})}y<0&&A("disabledDepth fell below zero. This is a bug in React. Please file an issue.")}}var fe=F.ReactCurrentDispatcher,de;function pe(l,v,E){{if(de===void 0)try{throw Error()}catch(K){var N=K.stack.trim().match(/\n( *(at )?)/);de=N&&N[1]||""}return`
18
+ `+de+l}}var he=!1,te;{var le=typeof WeakMap=="function"?WeakMap:Map;te=new le}function _e(l,v){if(!l||he)return"";{var E=te.get(l);if(E!==void 0)return E}var N;he=!0;var K=Error.prepareStackTrace;Error.prepareStackTrace=void 0;var Z;Z=fe.current,fe.current=null,ee();try{if(v){var X=function(){throw Error()};if(Object.defineProperty(X.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(X,[])}catch(Se){N=Se}Reflect.construct(l,[],X)}else{try{X.call()}catch(Se){N=Se}l.call(X.prototype)}}else{try{throw Error()}catch(Se){N=Se}l()}}catch(Se){if(Se&&N&&typeof Se.stack=="string"){for(var V=Se.stack.split(`
19
+ `),ae=N.stack.split(`
20
+ `),re=V.length-1,ne=ae.length-1;re>=1&&ne>=0&&V[re]!==ae[ne];)ne--;for(;re>=1&&ne>=0;re--,ne--)if(V[re]!==ae[ne]){if(re!==1||ne!==1)do if(re--,ne--,ne<0||V[re]!==ae[ne]){var ge=`
21
+ `+V[re].replace(" at new "," at ");return l.displayName&&ge.includes("<anonymous>")&&(ge=ge.replace("<anonymous>",l.displayName)),typeof l=="function"&&te.set(l,ge),ge}while(re>=1&&ne>=0);break}}}finally{he=!1,fe.current=Z,se(),Error.prepareStackTrace=K}var ke=l?l.displayName||l.name:"",pn=ke?pe(ke):"";return typeof l=="function"&&te.set(l,pn),pn}function Fe(l,v,E){return _e(l,!1)}function Ye(l){var v=l.prototype;return!!(v&&v.isReactComponent)}function Ae(l,v,E){if(l==null)return"";if(typeof l=="function")return _e(l,Ye(l));if(typeof l=="string")return pe(l);switch(l){case u:return pe("Suspense");case f:return pe("SuspenseList")}if(typeof l=="object")switch(l.$$typeof){case c:return Fe(l.render);case p:return Ae(l.type,v,E);case h:{var N=l,K=N._payload,Z=N._init;try{return Ae(Z(K),v,E)}catch{}}}return""}var Me=Object.prototype.hasOwnProperty,lt={},ut=F.ReactDebugCurrentFrame;function Re(l){if(l){var v=l._owner,E=Ae(l.type,l._source,v?v.type:null);ut.setExtraStackFrame(E)}else ut.setExtraStackFrame(null)}function It(l,v,E,N,K){{var Z=Function.call.bind(Me);for(var X in l)if(Z(l,X)){var V=void 0;try{if(typeof l[X]!="function"){var ae=Error((N||"React class")+": "+E+" type `"+X+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof l[X]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw ae.name="Invariant Violation",ae}V=l[X](v,X,N,E,null,"SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED")}catch(re){V=re}V&&!(V instanceof Error)&&(Re(K),A("%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).",N||"React class",E,X,typeof V),Re(null)),V instanceof Error&&!(V.message in lt)&&(lt[V.message]=!0,Re(K),A("Failed %s type: %s",E,V.message),Re(null))}}}var Jc=Array.isArray;function kt(l){return Jc(l)}function Zc(l){{var v=typeof Symbol=="function"&&Symbol.toStringTag,E=v&&l[Symbol.toStringTag]||l.constructor.name||"Object";return E}}function Qc(l){try{return rn(l),!1}catch{return!0}}function rn(l){return""+l}function nn(l){if(Qc(l))return A("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.",Zc(l)),rn(l)}var qe=F.ReactCurrentOwner,el={key:!0,ref:!0,__self:!0,__source:!0},on,sn,zt;zt={};function tl(l){if(Me.call(l,"ref")){var v=Object.getOwnPropertyDescriptor(l,"ref").get;if(v&&v.isReactWarning)return!1}return l.ref!==void 0}function rl(l){if(Me.call(l,"key")){var v=Object.getOwnPropertyDescriptor(l,"key").get;if(v&&v.isReactWarning)return!1}return l.key!==void 0}function nl(l,v){if(typeof l.ref=="string"&&qe.current&&v&&qe.current.stateNode!==v){var E=W(qe.current.type);zt[E]||(A('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',W(qe.current.type),l.ref),zt[E]=!0)}}function ol(l,v){{var E=function(){on||(on=!0,A("%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)",v))};E.isReactWarning=!0,Object.defineProperty(l,"key",{get:E,configurable:!0})}}function sl(l,v){{var E=function(){sn||(sn=!0,A("%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)",v))};E.isReactWarning=!0,Object.defineProperty(l,"ref",{get:E,configurable:!0})}}var il=function(l,v,E,N,K,Z,X){var V={$$typeof:t,type:l,key:v,ref:E,props:X,_owner:Z};return V._store={},Object.defineProperty(V._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:!1}),Object.defineProperty(V,"_self",{configurable:!1,enumerable:!1,writable:!1,value:N}),Object.defineProperty(V,"_source",{configurable:!1,enumerable:!1,writable:!1,value:K}),Object.freeze&&(Object.freeze(V.props),Object.freeze(V)),V};function al(l,v,E,N,K){{var Z,X={},V=null,ae=null;E!==void 0&&(nn(E),V=""+E),rl(v)&&(nn(v.key),V=""+v.key),tl(v)&&(ae=v.ref,nl(v,K));for(Z in v)Me.call(v,Z)&&!el.hasOwnProperty(Z)&&(X[Z]=v[Z]);if(l&&l.defaultProps){var re=l.defaultProps;for(Z in re)X[Z]===void 0&&(X[Z]=re[Z])}if(V||ae){var ne=typeof l=="function"?l.displayName||l.name||"Unknown":l;V&&ol(X,ne),ae&&sl(X,ne)}return il(l,V,ae,K,N,qe.current,X)}}var Lt=F.ReactCurrentOwner,an=F.ReactDebugCurrentFrame;function Ie(l){if(l){var v=l._owner,E=Ae(l.type,l._source,v?v.type:null);an.setExtraStackFrame(E)}else an.setExtraStackFrame(null)}var Nt;Nt=!1;function Wt(l){return typeof l=="object"&&l!==null&&l.$$typeof===t}function cn(){{if(Lt.current){var l=W(Lt.current.type);if(l)return`
22
22
 
23
- Check the render method of \``+l+"`."}return""}}function Ul(l){return""}var nn={};function Vl(l){{var y=rn();if(!y){var D=typeof l=="string"?l:l.displayName||l.name;D&&(y=`
23
+ Check the render method of \``+l+"`."}return""}}function cl(l){return""}var ln={};function ll(l){{var v=cn();if(!v){var E=typeof l=="string"?l:l.displayName||l.name;E&&(v=`
24
24
 
25
- Check the top-level render call using <`+D+">.")}return y}}function on(l,y){{if(!l._store||l._store.validated||l.key!=null)return;l._store.validated=!0;var D=Vl(y);if(nn[D])return;nn[D]=!0;var N="";l&&l._owner&&l._owner!==Rt.current&&(N=" It was passed a child from "+L(l._owner.type)+"."),Me(l),O('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.',D,N),Me(null)}}function sn(l,y){{if(typeof l!="object")return;if(At(l))for(var D=0;D<l.length;D++){var N=l[D];kt(N)&&on(N,y)}else if(kt(l))l._store&&(l._store.validated=!0);else if(l){var G=P(l);if(typeof G=="function"&&G!==l.entries)for(var Z=G.call(l),V;!(V=Z.next()).done;)kt(V.value)&&on(V.value,y)}}}function Yl(l){{var y=l.type;if(y==null||typeof y=="string")return;var D;if(typeof y=="function")D=y.propTypes;else if(typeof y=="object"&&(y.$$typeof===c||y.$$typeof===h))D=y.propTypes;else return;if(D){var N=L(y);Ol(D,l.props,"prop",N,l)}else if(y.PropTypes!==void 0&&!It){It=!0;var G=L(y);O("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?",G||"Unknown")}typeof y.getDefaultProps=="function"&&!y.getDefaultProps.isReactClassApproved&&O("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.")}}function ql(l){{for(var y=Object.keys(l.props),D=0;D<y.length;D++){var N=y[D];if(N!=="children"&&N!=="key"){Me(l),O("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.",N),Me(null);break}}l.ref!==null&&(Me(l),O("Invalid attribute `ref` supplied to `React.Fragment`."),Me(null))}}function an(l,y,D,N,G,Z){{var V=C(l);if(!V){var U="";(l===void 0||typeof l=="object"&&l!==null&&Object.keys(l).length===0)&&(U+=" 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 le=Ul();le?U+=le:U+=rn();var te;l===null?te="null":At(l)?te="array":l!==void 0&&l.$$typeof===t?(te="<"+(L(l.type)||"Unknown")+" />",U=" Did you accidentally export a JSX literal instead of a component?"):te=typeof l,O("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s",te,U)}var re=Hl(l,y,D,G,Z);if(re==null)return re;if(V){var he=y.children;if(he!==void 0)if(N)if(At(he)){for(var Re=0;Re<he.length;Re++)sn(he[Re],l);Object.freeze&&Object.freeze(he)}else O("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 sn(he,l)}return l===n?ql(re):Yl(re),re}}function Gl(l,y,D){return an(l,y,D,!0)}function Xl(l,y,D){return an(l,y,D,!1)}var Kl=Xl,Jl=Gl;ke.Fragment=n,ke.jsx=Kl,ke.jsxs=Jl}()),ke}process.env.NODE_ENV==="production"?ut.exports=dn():ut.exports=pn();var m=ut.exports,Wt=typeof global=="object"&&global&&global.Object===Object&&global,hn=typeof self=="object"&&self&&self.Object===Object&&self,ye=Wt||hn||Function("return this")(),Pe=ye.Symbol,Bt=Object.prototype,gn=Bt.hasOwnProperty,mn=Bt.toString,ze=Pe?Pe.toStringTag:void 0;function vn(e){var t=gn.call(e,ze),r=e[ze];try{e[ze]=void 0;var n=!0}catch{}var o=mn.call(e);return n&&(t?e[ze]=r:delete e[ze]),o}var yn=Object.prototype,bn=yn.toString;function _n(e){return bn.call(e)}var wn="[object Null]",Cn="[object Undefined]",Ht=Pe?Pe.toStringTag:void 0;function be(e){return e==null?e===void 0?Cn:wn:Ht&&Ht in Object(e)?vn(e):_n(e)}function ge(e){return e!=null&&typeof e=="object"}var xn="[object Symbol]";function ft(e){return typeof e=="symbol"||ge(e)&&be(e)==xn}function Tn(e,t){for(var r=-1,n=e==null?0:e.length,o=Array(n);++r<n;)o[r]=t(e[r],r,e);return o}var ue=Array.isArray,Sn=1/0,Ut=Pe?Pe.prototype:void 0,Vt=Ut?Ut.toString:void 0;function Yt(e){if(typeof e=="string")return e;if(ue(e))return Tn(e,Yt)+"";if(ft(e))return Vt?Vt.call(e):"";var t=e+"";return t=="0"&&1/e==-Sn?"-0":t}function fe(e){var t=typeof e;return e!=null&&(t=="object"||t=="function")}function qt(e){return e}var Pn="[object AsyncFunction]",Dn="[object Function]",$n="[object GeneratorFunction]",jn="[object Proxy]";function oe(e){if(!fe(e))return!1;var t=be(e);return t==Dn||t==$n||t==Pn||t==jn}var dt=ye["__core-js_shared__"],Gt=function(){var e=/[^.]+$/.exec(dt&&dt.keys&&dt.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}();function En(e){return!!Gt&&Gt in e}var Fn=Function.prototype,On=Fn.toString;function Ee(e){if(e!=null){try{return On.call(e)}catch{}try{return e+""}catch{}}return""}var An=/[\\^$.*+?()[\]{}|]/g,Mn=/^\[object .+?Constructor\]$/,Rn=Function.prototype,In=Object.prototype,kn=Rn.toString,zn=In.hasOwnProperty,Ln=RegExp("^"+kn.call(zn).replace(An,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function Nn(e){if(!fe(e)||En(e))return!1;var t=oe(e)?Ln:Mn;return t.test(Ee(e))}function Wn(e,t){return e==null?void 0:e[t]}function Fe(e,t){var r=Wn(e,t);return Nn(r)?r:void 0}var pt=Fe(ye,"WeakMap"),Xt=Object.create,Bn=function(){function e(){}return function(t){if(!fe(t))return{};if(Xt)return Xt(t);e.prototype=t;var r=new e;return e.prototype=void 0,r}}();function Hn(e,t,r){switch(r.length){case 0:return e.call(t);case 1:return e.call(t,r[0]);case 2:return e.call(t,r[0],r[1]);case 3:return e.call(t,r[0],r[1],r[2])}return e.apply(t,r)}function Un(e,t){var r=-1,n=e.length;for(t||(t=Array(n));++r<n;)t[r]=e[r];return t}var Vn=800,Yn=16,qn=Date.now;function Gn(e){var t=0,r=0;return function(){var n=qn(),o=Yn-(n-r);if(r=n,o>0){if(++t>=Vn)return arguments[0]}else t=0;return e.apply(void 0,arguments)}}function Xn(e){return function(){return e}}var Ve=function(){try{var e=Fe(Object,"defineProperty");return e({},"",{}),e}catch{}}(),Kn=Ve?function(e,t){return Ve(e,"toString",{configurable:!0,enumerable:!1,value:Xn(t),writable:!0})}:qt,Jn=Gn(Kn),Zn=9007199254740991,Qn=/^(?:0|[1-9]\d*)$/;function ht(e,t){var r=typeof e;return t=t??Zn,!!t&&(r=="number"||r!="symbol"&&Qn.test(e))&&e>-1&&e%1==0&&e<t}function gt(e,t,r){t=="__proto__"&&Ve?Ve(e,t,{configurable:!0,enumerable:!0,value:r,writable:!0}):e[t]=r}function Le(e,t){return e===t||e!==e&&t!==t}var eo=Object.prototype,to=eo.hasOwnProperty;function Kt(e,t,r){var n=e[t];(!(to.call(e,t)&&Le(n,r))||r===void 0&&!(t in e))&&gt(e,t,r)}function ro(e,t,r,n){var o=!r;r||(r={});for(var i=-1,a=t.length;++i<a;){var s=t[i],c=void 0;c===void 0&&(c=e[s]),o?gt(r,s,c):Kt(r,s,c)}return r}var Jt=Math.max;function no(e,t,r){return t=Jt(t===void 0?e.length-1:t,0),function(){for(var n=arguments,o=-1,i=Jt(n.length-t,0),a=Array(i);++o<i;)a[o]=n[t+o];o=-1;for(var s=Array(t+1);++o<t;)s[o]=n[o];return s[t]=r(a),Hn(e,this,s)}}function oo(e,t){return Jn(no(e,t,qt),e+"")}var so=9007199254740991;function Zt(e){return typeof e=="number"&&e>-1&&e%1==0&&e<=so}function Ye(e){return e!=null&&Zt(e.length)&&!oe(e)}function io(e,t,r){if(!fe(r))return!1;var n=typeof t;return(n=="number"?Ye(r)&&ht(t,r.length):n=="string"&&t in r)?Le(r[t],e):!1}function ao(e){return oo(function(t,r){var n=-1,o=r.length,i=o>1?r[o-1]:void 0,a=o>2?r[2]:void 0;for(i=e.length>3&&typeof i=="function"?(o--,i):void 0,a&&io(r[0],r[1],a)&&(i=o<3?void 0:i,o=1),t=Object(t);++n<o;){var s=r[n];s&&e(t,s,n,i)}return t})}var lo=Object.prototype;function mt(e){var t=e&&e.constructor,r=typeof t=="function"&&t.prototype||lo;return e===r}function co(e,t){for(var r=-1,n=Array(e);++r<e;)n[r]=t(r);return n}var uo="[object Arguments]";function Qt(e){return ge(e)&&be(e)==uo}var er=Object.prototype,fo=er.hasOwnProperty,po=er.propertyIsEnumerable,vt=Qt(function(){return arguments}())?Qt:function(e){return ge(e)&&fo.call(e,"callee")&&!po.call(e,"callee")};function ho(){return!1}var tr=typeof Y=="object"&&Y&&!Y.nodeType&&Y,rr=tr&&typeof module=="object"&&module&&!module.nodeType&&module,go=rr&&rr.exports===tr,nr=go?ye.Buffer:void 0,mo=nr?nr.isBuffer:void 0,qe=mo||ho,vo="[object Arguments]",yo="[object Array]",bo="[object Boolean]",_o="[object Date]",wo="[object Error]",Co="[object Function]",xo="[object Map]",To="[object Number]",So="[object Object]",Po="[object RegExp]",Do="[object Set]",$o="[object String]",jo="[object WeakMap]",Eo="[object ArrayBuffer]",Fo="[object DataView]",Oo="[object Float32Array]",Ao="[object Float64Array]",Mo="[object Int8Array]",Ro="[object Int16Array]",Io="[object Int32Array]",ko="[object Uint8Array]",zo="[object Uint8ClampedArray]",Lo="[object Uint16Array]",No="[object Uint32Array]",Q={};Q[Oo]=Q[Ao]=Q[Mo]=Q[Ro]=Q[Io]=Q[ko]=Q[zo]=Q[Lo]=Q[No]=!0,Q[vo]=Q[yo]=Q[Eo]=Q[bo]=Q[Fo]=Q[_o]=Q[wo]=Q[Co]=Q[xo]=Q[To]=Q[So]=Q[Po]=Q[Do]=Q[$o]=Q[jo]=!1;function Wo(e){return ge(e)&&Zt(e.length)&&!!Q[be(e)]}function Bo(e){return function(t){return e(t)}}var or=typeof Y=="object"&&Y&&!Y.nodeType&&Y,Ne=or&&typeof module=="object"&&module&&!module.nodeType&&module,Ho=Ne&&Ne.exports===or,yt=Ho&&Wt.process,sr=function(){try{var e=Ne&&Ne.require&&Ne.require("util").types;return e||yt&&yt.binding&&yt.binding("util")}catch{}}(),ir=sr&&sr.isTypedArray,bt=ir?Bo(ir):Wo,Uo=Object.prototype,Vo=Uo.hasOwnProperty;function ar(e,t){var r=ue(e),n=!r&&vt(e),o=!r&&!n&&qe(e),i=!r&&!n&&!o&&bt(e),a=r||n||o||i,s=a?co(e.length,String):[],c=s.length;for(var u in e)(t||Vo.call(e,u))&&!(a&&(u=="length"||o&&(u=="offset"||u=="parent")||i&&(u=="buffer"||u=="byteLength"||u=="byteOffset")||ht(u,c)))&&s.push(u);return s}function lr(e,t){return function(r){return e(t(r))}}var Yo=lr(Object.keys,Object),qo=Object.prototype,Go=qo.hasOwnProperty;function Xo(e){if(!mt(e))return Yo(e);var t=[];for(var r in Object(e))Go.call(e,r)&&r!="constructor"&&t.push(r);return t}function Ko(e){return Ye(e)?ar(e):Xo(e)}function Jo(e){var t=[];if(e!=null)for(var r in Object(e))t.push(r);return t}var Zo=Object.prototype,Qo=Zo.hasOwnProperty;function es(e){if(!fe(e))return Jo(e);var t=mt(e),r=[];for(var n in e)n=="constructor"&&(t||!Qo.call(e,n))||r.push(n);return r}function cr(e){return Ye(e)?ar(e,!0):es(e)}var ts=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,rs=/^\w*$/;function ns(e,t){if(ue(e))return!1;var r=typeof e;return r=="number"||r=="symbol"||r=="boolean"||e==null||ft(e)?!0:rs.test(e)||!ts.test(e)||t!=null&&e in Object(t)}var We=Fe(Object,"create");function os(){this.__data__=We?We(null):{},this.size=0}function ss(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t}var is="__lodash_hash_undefined__",as=Object.prototype,ls=as.hasOwnProperty;function cs(e){var t=this.__data__;if(We){var r=t[e];return r===is?void 0:r}return ls.call(t,e)?t[e]:void 0}var us=Object.prototype,fs=us.hasOwnProperty;function ds(e){var t=this.__data__;return We?t[e]!==void 0:fs.call(t,e)}var ps="__lodash_hash_undefined__";function hs(e,t){var r=this.__data__;return this.size+=this.has(e)?0:1,r[e]=We&&t===void 0?ps:t,this}function Oe(e){var t=-1,r=e==null?0:e.length;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}Oe.prototype.clear=os,Oe.prototype.delete=ss,Oe.prototype.get=cs,Oe.prototype.has=ds,Oe.prototype.set=hs;function gs(){this.__data__=[],this.size=0}function Ge(e,t){for(var r=e.length;r--;)if(Le(e[r][0],t))return r;return-1}var ms=Array.prototype,vs=ms.splice;function ys(e){var t=this.__data__,r=Ge(t,e);if(r<0)return!1;var n=t.length-1;return r==n?t.pop():vs.call(t,r,1),--this.size,!0}function bs(e){var t=this.__data__,r=Ge(t,e);return r<0?void 0:t[r][1]}function _s(e){return Ge(this.__data__,e)>-1}function ws(e,t){var r=this.__data__,n=Ge(r,e);return n<0?(++this.size,r.push([e,t])):r[n][1]=t,this}function we(e){var t=-1,r=e==null?0:e.length;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}we.prototype.clear=gs,we.prototype.delete=ys,we.prototype.get=bs,we.prototype.has=_s,we.prototype.set=ws;var Be=Fe(ye,"Map");function Cs(){this.size=0,this.__data__={hash:new Oe,map:new(Be||we),string:new Oe}}function xs(e){var t=typeof e;return t=="string"||t=="number"||t=="symbol"||t=="boolean"?e!=="__proto__":e===null}function Xe(e,t){var r=e.__data__;return xs(t)?r[typeof t=="string"?"string":"hash"]:r.map}function Ts(e){var t=Xe(this,e).delete(e);return this.size-=t?1:0,t}function Ss(e){return Xe(this,e).get(e)}function Ps(e){return Xe(this,e).has(e)}function Ds(e,t){var r=Xe(this,e),n=r.size;return r.set(e,t),this.size+=r.size==n?0:1,this}function Ce(e){var t=-1,r=e==null?0:e.length;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}Ce.prototype.clear=Cs,Ce.prototype.delete=Ts,Ce.prototype.get=Ss,Ce.prototype.has=Ps,Ce.prototype.set=Ds;var $s="Expected a function";function _t(e,t){if(typeof e!="function"||t!=null&&typeof t!="function")throw new TypeError($s);var r=function(){var n=arguments,o=t?t.apply(this,n):n[0],i=r.cache;if(i.has(o))return i.get(o);var a=e.apply(this,n);return r.cache=i.set(o,a)||i,a};return r.cache=new(_t.Cache||Ce),r}_t.Cache=Ce;var js=500;function Es(e){var t=_t(e,function(n){return r.size===js&&r.clear(),n}),r=t.cache;return t}var Fs=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,Os=/\\(\\)?/g,As=Es(function(e){var t=[];return e.charCodeAt(0)===46&&t.push(""),e.replace(Fs,function(r,n,o,i){t.push(o?i.replace(Os,"$1"):n||r)}),t});function Ms(e){return e==null?"":Yt(e)}function Rs(e,t){return ue(e)?e:ns(e,t)?[e]:As(Ms(e))}var Is=1/0;function ks(e){if(typeof e=="string"||ft(e))return e;var t=e+"";return t=="0"&&1/e==-Is?"-0":t}function zs(e,t){for(var r=-1,n=t.length,o=e.length;++r<n;)e[o+r]=t[r];return e}var ur=lr(Object.getPrototypeOf,Object),Ls="[object Object]",Ns=Function.prototype,Ws=Object.prototype,fr=Ns.toString,Bs=Ws.hasOwnProperty,Hs=fr.call(Object);function Us(e){if(!ge(e)||be(e)!=Ls)return!1;var t=ur(e);if(t===null)return!0;var r=Bs.call(t,"constructor")&&t.constructor;return typeof r=="function"&&r instanceof r&&fr.call(r)==Hs}function Vs(){this.__data__=new we,this.size=0}function Ys(e){var t=this.__data__,r=t.delete(e);return this.size=t.size,r}function qs(e){return this.__data__.get(e)}function Gs(e){return this.__data__.has(e)}var Xs=200;function Ks(e,t){var r=this.__data__;if(r instanceof we){var n=r.__data__;if(!Be||n.length<Xs-1)return n.push([e,t]),this.size=++r.size,this;r=this.__data__=new Ce(n)}return r.set(e,t),this.size=r.size,this}function xe(e){var t=this.__data__=new we(e);this.size=t.size}xe.prototype.clear=Vs,xe.prototype.delete=Ys,xe.prototype.get=qs,xe.prototype.has=Gs,xe.prototype.set=Ks;var dr=typeof Y=="object"&&Y&&!Y.nodeType&&Y,pr=dr&&typeof module=="object"&&module&&!module.nodeType&&module,Js=pr&&pr.exports===dr,hr=Js?ye.Buffer:void 0;hr&&hr.allocUnsafe;function Zs(e,t){return e.slice()}function Qs(e,t){for(var r=-1,n=e==null?0:e.length,o=0,i=[];++r<n;){var a=e[r];t(a,r,e)&&(i[o++]=a)}return i}function ei(){return[]}var ti=Object.prototype,ri=ti.propertyIsEnumerable,gr=Object.getOwnPropertySymbols,ni=gr?function(e){return e==null?[]:(e=Object(e),Qs(gr(e),function(t){return ri.call(e,t)}))}:ei;function oi(e,t,r){var n=t(e);return ue(e)?n:zs(n,r(e))}function mr(e){return oi(e,Ko,ni)}var wt=Fe(ye,"DataView"),Ct=Fe(ye,"Promise"),xt=Fe(ye,"Set"),vr="[object Map]",si="[object Object]",yr="[object Promise]",br="[object Set]",_r="[object WeakMap]",wr="[object DataView]",ii=Ee(wt),ai=Ee(Be),li=Ee(Ct),ci=Ee(xt),ui=Ee(pt),De=be;(wt&&De(new wt(new ArrayBuffer(1)))!=wr||Be&&De(new Be)!=vr||Ct&&De(Ct.resolve())!=yr||xt&&De(new xt)!=br||pt&&De(new pt)!=_r)&&(De=function(e){var t=be(e),r=t==si?e.constructor:void 0,n=r?Ee(r):"";if(n)switch(n){case ii:return wr;case ai:return vr;case li:return yr;case ci:return br;case ui:return _r}return t});var Ke=ye.Uint8Array;function fi(e){var t=new e.constructor(e.byteLength);return new Ke(t).set(new Ke(e)),t}function di(e,t){var r=fi(e.buffer);return new e.constructor(r,e.byteOffset,e.length)}function pi(e){return typeof e.constructor=="function"&&!mt(e)?Bn(ur(e)):{}}var hi="__lodash_hash_undefined__";function gi(e){return this.__data__.set(e,hi),this}function mi(e){return this.__data__.has(e)}function Je(e){var t=-1,r=e==null?0:e.length;for(this.__data__=new Ce;++t<r;)this.add(e[t])}Je.prototype.add=Je.prototype.push=gi,Je.prototype.has=mi;function vi(e,t){for(var r=-1,n=e==null?0:e.length;++r<n;)if(t(e[r],r,e))return!0;return!1}function yi(e,t){return e.has(t)}var bi=1,_i=2;function Cr(e,t,r,n,o,i){var a=r&bi,s=e.length,c=t.length;if(s!=c&&!(a&&c>s))return!1;var u=i.get(e),f=i.get(t);if(u&&f)return u==t&&f==e;var h=-1,g=!0,w=r&_i?new Je:void 0;for(i.set(e,t),i.set(t,e);++h<s;){var p=e[h],T=t[h];if(n)var P=a?n(T,p,h,t,e,i):n(p,T,h,e,t,i);if(P!==void 0){if(P)continue;g=!1;break}if(w){if(!vi(t,function(k,O){if(!yi(w,O)&&(p===k||o(p,k,r,n,i)))return w.push(O)})){g=!1;break}}else if(!(p===T||o(p,T,r,n,i))){g=!1;break}}return i.delete(e),i.delete(t),g}function wi(e){var t=-1,r=Array(e.size);return e.forEach(function(n,o){r[++t]=[o,n]}),r}function Ci(e){var t=-1,r=Array(e.size);return e.forEach(function(n){r[++t]=n}),r}var xi=1,Ti=2,Si="[object Boolean]",Pi="[object Date]",Di="[object Error]",$i="[object Map]",ji="[object Number]",Ei="[object RegExp]",Fi="[object Set]",Oi="[object String]",Ai="[object Symbol]",Mi="[object ArrayBuffer]",Ri="[object DataView]",xr=Pe?Pe.prototype:void 0,Tt=xr?xr.valueOf:void 0;function Ii(e,t,r,n,o,i,a){switch(r){case Ri:if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case Mi:return!(e.byteLength!=t.byteLength||!i(new Ke(e),new Ke(t)));case Si:case Pi:case ji:return Le(+e,+t);case Di:return e.name==t.name&&e.message==t.message;case Ei:case Oi:return e==t+"";case $i:var s=wi;case Fi:var c=n&xi;if(s||(s=Ci),e.size!=t.size&&!c)return!1;var u=a.get(e);if(u)return u==t;n|=Ti,a.set(e,t);var f=Cr(s(e),s(t),n,o,i,a);return a.delete(e),f;case Ai:if(Tt)return Tt.call(e)==Tt.call(t)}return!1}var ki=1,zi=Object.prototype,Li=zi.hasOwnProperty;function Ni(e,t,r,n,o,i){var a=r&ki,s=mr(e),c=s.length,u=mr(t),f=u.length;if(c!=f&&!a)return!1;for(var h=c;h--;){var g=s[h];if(!(a?g in t:Li.call(t,g)))return!1}var w=i.get(e),p=i.get(t);if(w&&p)return w==t&&p==e;var T=!0;i.set(e,t),i.set(t,e);for(var P=a;++h<c;){g=s[h];var k=e[g],O=t[g];if(n)var B=a?n(O,k,g,t,e,i):n(k,O,g,e,t,i);if(!(B===void 0?k===O||o(k,O,r,n,i):B)){T=!1;break}P||(P=g=="constructor")}if(T&&!P){var X=e.constructor,q=t.constructor;X!=q&&"constructor"in e&&"constructor"in t&&!(typeof X=="function"&&X instanceof X&&typeof q=="function"&&q instanceof q)&&(T=!1)}return i.delete(e),i.delete(t),T}var Wi=1,Tr="[object Arguments]",Sr="[object Array]",Ze="[object Object]",Bi=Object.prototype,Pr=Bi.hasOwnProperty;function Hi(e,t,r,n,o,i){var a=ue(e),s=ue(t),c=a?Sr:De(e),u=s?Sr:De(t);c=c==Tr?Ze:c,u=u==Tr?Ze:u;var f=c==Ze,h=u==Ze,g=c==u;if(g&&qe(e)){if(!qe(t))return!1;a=!0,f=!1}if(g&&!f)return i||(i=new xe),a||bt(e)?Cr(e,t,r,n,o,i):Ii(e,t,c,r,n,o,i);if(!(r&Wi)){var w=f&&Pr.call(e,"__wrapped__"),p=h&&Pr.call(t,"__wrapped__");if(w||p){var T=w?e.value():e,P=p?t.value():t;return i||(i=new xe),o(T,P,r,n,i)}}return g?(i||(i=new xe),Ni(e,t,r,n,o,i)):!1}function Dr(e,t,r,n,o){return e===t?!0:e==null||t==null||!ge(e)&&!ge(t)?e!==e&&t!==t:Hi(e,t,r,n,Dr,o)}function Ui(e){return function(t,r,n){for(var o=-1,i=Object(t),a=n(t),s=a.length;s--;){var c=a[++o];if(r(i[c],c,i)===!1)break}return t}}var Vi=Ui();function St(e,t,r){(r!==void 0&&!Le(e[t],r)||r===void 0&&!(t in e))&&gt(e,t,r)}function Yi(e){return ge(e)&&Ye(e)}function Pt(e,t){if(!(t==="constructor"&&typeof e[t]=="function")&&t!="__proto__")return e[t]}function qi(e){return ro(e,cr(e))}function Gi(e,t,r,n,o,i,a){var s=Pt(e,r),c=Pt(t,r),u=a.get(c);if(u){St(e,r,u);return}var f=i?i(s,c,r+"",e,t,a):void 0,h=f===void 0;if(h){var g=ue(c),w=!g&&qe(c),p=!g&&!w&&bt(c);f=c,g||w||p?ue(s)?f=s:Yi(s)?f=Un(s):w?(h=!1,f=Zs(c)):p?(h=!1,f=di(c)):f=[]:Us(c)||vt(c)?(f=s,vt(s)?f=qi(s):(!fe(s)||oe(s))&&(f=pi(c))):h=!1}h&&(a.set(c,f),o(f,c,n,i,a),a.delete(c)),St(e,r,f)}function $r(e,t,r,n,o){e!==t&&Vi(t,function(i,a){if(o||(o=new xe),fe(i))Gi(e,t,a,r,$r,n,o);else{var s=n?n(Pt(e,a),i,a+"",e,t,o):void 0;s===void 0&&(s=i),St(e,a,s)}},cr)}var Xi="[object String]";function jr(e){return typeof e=="string"||!ue(e)&&ge(e)&&be(e)==Xi}var Ki="[object Boolean]";function Dt(e){return e===!0||e===!1||ge(e)&&be(e)==Ki}function Qe(e,t){return Dr(e,t)}var Ji="[object Number]";function Zi(e){return typeof e=="number"||ge(e)&&be(e)==Ji}function Er(e){return e==null}function Qi(e){return e===null}var $e=ao(function(e,t,r){$r(e,t,r)});function ea(e,t,r,n){if(!fe(e))return e;t=Rs(t,e);for(var o=-1,i=t.length,a=i-1,s=e;s!=null&&++o<i;){var c=ks(t[o]),u=r;if(c==="__proto__"||c==="constructor"||c==="prototype")return e;if(o!=a){var f=s[c];u=void 0,u===void 0&&(u=fe(f)?f:ht(t[o+1])?[]:{})}Kt(s,c,u),s=s[c]}return e}function Fr(e,t,r){return e==null?e:ea(e,t,r)}function ta(e){const{inherit:t=!0}=e,{extendActionsProps:r}=Rr();return{actionsProps:{...$e($e({items:[],max:10},t?r:{}),e)}}}function Or(e){return"component"in e}function ra(e){return"render"in e}function na(e){const{type:t,disabled:r,items:n,max:o}=e,i=n.map(s=>{const c={...s};return Or(c)&&(c.componentProps={type:t,disabled:r,...c.componentProps}),c}),a=Zi(o)&&o>=0;return{showActionItems:i.slice(0,a?o:i.length),ellipsisActionItems:i.slice(a?o:i.length)}}const oa=e=>{const{componentProps:t}=e,r=()=>{const{...n}=t;return n};return m.jsx(F.Button,{...r()})},sa=e=>{const{componentProps:t}=e,n=(()=>{const{dropDownItems:o,onClick:i,...a}=t;return a})();return m.jsx(F.Dropdown,{disabled:n.disabled,menu:{items:(t==null?void 0:t.dropDownItems)||[],onClick:t==null?void 0:t.onClick},trigger:["click"],children:m.jsx("div",{children:m.jsxs(F.Button,{...n,children:[n.children,m.jsx(ve.CaretDownOutlined,{})]})})})},et=new Map;et.set("Button",oa),et.set("Dropdown",sa);function Ar(){const{setExtendActionsComp:e}=Rr();return e(et),{renderContent:d.useCallback((r,n)=>{const o=Or(r),i=ra(r);if(o){const a=et.get(r.component);return m.jsx(a,{...r},n)}return i?m.jsx("div",{children:r.render},n):null},[])}}const Mr=d.createContext({}),ia=e=>{const{extendProps:t,extendComp:r}=e.value;return m.jsx(Mr.Provider,{value:{extendProps:t,extendComp:r},children:e.children})},He=()=>d.useContext(Mr),Rr=()=>{const{extendProps:e,extendComp:t}=He(),r=n=>{const o=t==null?void 0:t.actions;o&&Object.keys(o).forEach(i=>{n.set(i,o[i])})};return{extendActionsProps:e==null?void 0:e.actions,setExtendActionsComp:r}},{useToken:aa}=F.theme,la=({items:e,actionsProps:t})=>{const{type:r,disabled:n}=t,{renderContent:o}=Ar(),{token:i}=aa(),a={backgroundColor:i.colorBgElevated,borderRadius:i.borderRadiusLG,boxShadow:i.boxShadowSecondary},s=()=>m.jsx("div",{style:a,children:m.jsx(F.Space,{style:{padding:8},children:e==null?void 0:e.map((c,u)=>o(c,u))})});return m.jsx(F.Dropdown,{disabled:n,menu:{items:[]},dropdownRender:s,trigger:["click"],children:m.jsxs(F.Button,{type:r,children:["更多",m.jsx(ve.CaretDownOutlined,{})]})})},tt=e=>{const{actionsProps:t}=ta(e),{showActionItems:r,ellipsisActionItems:n}=na(t),{renderContent:o}=Ar();return t!=null&&t.render?t.render:m.jsxs(d.Fragment,{children:[r==null?void 0:r.map((i,a)=>o(i,a)),n!=null&&n.length?m.jsx(la,{actionsProps:t,items:n}):null]})};function ca(e){const{okText:t,cancelText:r,onCancel:n,onOk:o,okProps:i,cancelProps:a}=e;return{footerActions:{max:2,items:[{component:"Button",componentProps:{...a,children:r,onClick:n}},{component:"Button",componentProps:{type:"primary",...i,children:t,onClick:o}}]}}}const ua=e=>{const{extendDialogProps:t}=fa(),r={width:700,okText:"确定",cancelText:"取消",getPopperContainer:()=>document.body};return{dialogProps:{...$e($e(r,t),e)},baseDialogProps:r}},fa=()=>{const{extendProps:e}=He();return{extendDialogProps:e==null?void 0:e.dialog}},da=(e,t)=>{const{onOpen:r,onClose:n}=e;return{open:()=>{t(!0),r&&r()},close:()=>{t(!1),n&&n()}}},pa=(e,t,r,n)=>{const{width:o,height:i}=t,{width:a,height:s}=r,c=a||o,u=s||i,{clientWidth:f,clientHeight:h}=e,g=c?c>f?f:c:0,w=u?u>h?h:u:"unset",p=d.useRef(g),T=d.useRef(w),[P,k]=d.useState(p.current),[O,B]=d.useState(T.current);return{dialogWidth:P,dialogHeight:O,initWidth:p,initHeight:T,curPropsWidth:g,curPropsHeight:w,setDialogSize:({width:q,height:J})=>{n({width:P,height:O}),q!==void 0&&k(q),J!==void 0&&B(J)}}},ha=({container:e,setDialogChangeRecord:t})=>{const{clientWidth:r,clientHeight:n}=e,o=Math.floor(r/2),i=Math.floor(n/2),[a,s]=d.useState(o),[c,u]=d.useState(i);return{dialogLeft:a,dialogTop:c,setDialogPosition:({left:h,top:g})=>{t({left:a,top:c}),h!==void 0&&s(h),g!==void 0&&u(g)}}},Ir=({container:e,dialogHeaderRef:t,dialogRef:r,setDialogPosition:n})=>{const o=d.useRef(0),i=d.useRef(0),a=f=>{const h=f.getBoundingClientRect(),g=h.width,w=h.height,p=-.5*g,T=-.5*w;return{translateX:p,translateY:T}},s=d.useCallback(f=>{const{offsetLeft:h,offsetTop:g}=r.current;o.current=f.clientX-h,i.current=f.clientY-g,document.addEventListener("mousemove",c),document.addEventListener("mouseup",u)},[]),c=d.useCallback(f=>{const h=r.current,{translateX:g,translateY:w}=a(h);let p=f.clientX-o.current,T=f.clientY-i.current;const P=-g,k=-w,O=e.scrollWidth-h.offsetWidth-g,B=e.scrollHeight-h.offsetHeight-w;p<P&&(p=P),p>O&&(p=O),T<k&&(T=k),T>B&&(T=B),n({left:p,top:T})},[]),u=d.useCallback(()=>{document.removeEventListener("mousemove",c),document.removeEventListener("mouseup",u)},[]);return d.useEffect(()=>{const f=t.current;return f.addEventListener("mousedown",s),()=>{f.removeEventListener("mousedown",s)}},[]),{}},ga=({container:e,dialogChangeRecord:t,close:r,setDialogSize:n,setDialogPosition:o})=>{const[i,a]=d.useState(!1),[s,c]=d.useState(!1);return{minimizeVisible:i,maximizeVisible:s,onMinimize:()=>{a(!0)},onMaximize:w=>{if(w==="minimize"&&a(!1),w==="maximize"){const{scrollWidth:p,scrollHeight:T}=e,P=Math.floor(p),k=Math.floor(T),O=Math.floor(p/2),B=Math.floor(T/2);n({width:P,height:k}),o({top:B,left:O}),c(!0)}},onRecovery:()=>{const{top:w,left:p,width:T,height:P}=t.current;n({width:T,height:P}),o({top:w,left:p}),c(!1)},onClose:()=>{a(!1),c(!1),r()}}},ma=({visible:e,container:t,dialogHeight:r,dialogRef:n,dialogHeaderRef:o,dialogFooterRef:i})=>{const[a,s]=d.useState("unset");return d.useEffect(()=>{var c,u,f;if(e){const{clientHeight:w}=t,p=(c=o.current)==null?void 0:c.offsetHeight,T=(u=i.current)==null?void 0:u.offsetHeight;let k=((f=n.current)==null?void 0:f.getBoundingClientRect().height)-p-T-0;const O=w-p-T-0;k>O&&(k=O),s(k)}},[e,r]),{contentMaxHeight:a,setContentMaxHeight:s}},va=()=>{const[e,t]=d.useState(160),[r,n]=d.useState(60),o=d.useRef(null);return{minimizeTop:r,minimizeLeft:e,minimizeRef:o,setMinimizePosition:({left:a,top:s})=>{a!==void 0&&t(a),s!==void 0&&n(s)}}},ya=({visible:e,dialogRef:t,minimizeRef:r,container:n})=>{const o={xphDialog:"xph--dialog",xphDialogWrapper:"xph--dialog--wrapper",xphMinimizeDialog:"xph--dialog--minimize"},i=(s,c)=>{console.log("触发插入"),s.querySelector(`.${o.xphDialogWrapper}`).style.opacity="unset",s.querySelector(`.${o.xphMinimizeDialog}`).style.opacity="unset",c.querySelector(`.${o.xphDialogWrapper}`).style.opacity=.7,c.querySelector(`.${o.xphMinimizeDialog}`).style.opacity=.7;const u=document.createElement("div");u.style.visibility="hidden",c.parentNode.insertBefore(u,c.nextSibling),c.parentNode.insertBefore(s,u),c.parentNode.removeChild(u)},a=s=>{var f,h;const c=n.querySelectorAll(`.${o.xphDialog}`),u=c[c.length-1];if(((f=t.current)==null?void 0:f.parentNode)!==u&&(i((h=t.current)==null?void 0:h.parentNode,u),s)){const g=s.target;g.tagName==="INPUT"&&g.focus&&g.focus()}};return d.useEffect(()=>{var s,c;return(s=t.current)==null||s.addEventListener("mousedown",a,!1),(c=r.current)==null||c.addEventListener("mousedown",a,!1),()=>{var u,f;(u=t.current)==null||u.removeEventListener("mousedown",a,!1),(f=r.current)==null||f.removeEventListener("mousedown",a,!1)}},[]),d.useEffect(()=>{if(e)a();else{const s=Array.from(n.querySelectorAll(`.${o.xphDialog}`)),c=s.map(g=>g.querySelector(`.${o.xphDialogWrapper}`)).filter(g=>g!==null),u=s.map(g=>g.querySelector(`.${o.xphMinimizeDialog}`)).filter(g=>g!==null),f=c.filter(g=>g.style.display==="flex"),h=u.filter(g=>g.style.display==="flex");if(f.length){i(f[f.length-1].parentNode,s[s.length-1]);return}if(h.length){i(h[h.length-1].parentNode,s[s.length-1]);return}}},[e]),{dialogTopShowClassConfig:o}},ba=({visible:e,container:t,initWidth:r,initHeight:n,curPropsWidth:o,curPropsHeight:i,setDialogSize:a,setDialogPosition:s})=>{const{clientWidth:c,clientHeight:u}=t,f=Math.floor(c/2),h=Math.floor(u/2);d.useEffect(()=>{o!==r.current&&(console.log("重新设置了宽度"),a({width:o})),i!==n.current&&(console.log("重新设置了高度"),a({height:i}))},[o,i]),d.useEffect(()=>{o!==r.current&&(console.log("重新设置了左边位置"),s({left:f})),i!==n.current&&(console.log("重新设置了上边位置"),s({top:h}))},[o,i]),d.useEffect(()=>{e||(a({width:r.current,height:n.current}),s({left:f,top:h}))},[e])},_a=()=>{const e=d.useRef({left:0,top:0,width:0,height:0});return{dialogChangeRecord:e,setDialogChangeRecord:({left:r,top:n,width:o,height:i})=>{const{left:a,top:s,width:c,height:u}=e.current;e.current={left:r??a,top:n??s,width:o??c,height:i??u}}}},wa=({visible:e,container:t,dialogRef:r,setDialogSize:n,setDialogPosition:o})=>{const i=d.useCallback(()=>m.jsx("div",{ref:s,style:{position:"absolute",border:"4px dashed #ccc",display:"none"}}),[]),a=d.useRef(null);d.useEffect(()=>{if(e){const E=r.current.offsetWidth,j=r.current.offsetHeight;a.current={width:E,height:j}}else a.current=null},[e]);const s=d.useRef(null),c=d.useRef(),u=d.useRef(!1),[f,h]=d.useState(!1),g=d.useRef(0),w=d.useRef(0),p=(E,j)=>{u.current=!0,h(!0),c.current=j;const{clientX:C,clientY:x}=E;g.current=C,w.current=x;const z=parseFloat(r.current.style.left),L=parseFloat(r.current.style.top),_=r.current.offsetWidth,v=r.current.offsetHeight;s.current.style.display="block",s.current.style.left=`${z-.5*_}px`,s.current.style.top=`${L-.5*v}px`,s.current.style.width=`${_}px`,s.current.style.height=`${v}px`},T=E=>{if(u.current){const{clientX:j,clientY:C}=E,x=j-g.current,z=C-w.current,L=parseFloat(s.current.style.left),_=parseFloat(s.current.style.top),v=s.current.offsetWidth,b=s.current.offsetHeight,$=a.current.width,S=a.current.height,R=t.scrollWidth,M=t.scrollHeight;let A=v,I=b,W=L,H=_;switch(c.current){case"lt":{A=A-x,I=I-z,H=H+z,W=W+x,A<$&&(A=v,W=L),I<S&&(I=b,H=_),W<0&&(W=0,A=v),H<0&&(H=0,I=b);break}case"rt":{A=A+x,I=I-z,H=H+z,W=L,A<$&&(A=v),I<S&&(I=b,H=_),A>R-W&&(A=R-W),H<0&&(H=0,I=b);break}case"rb":{A=A+x,I=I+z,H=_,W=L,A<$&&(A=v),I<S&&(I=b),A>R-W&&(A=R-W),I>M-H&&(I=M-H);break}case"lb":{A=A-x,I=I+z,H=_,W=W+x,A<$&&(A=v,W=L),I<S&&(I=b),W<0&&(W=0,A=v),I>M-H&&(I=M-H);break}}s.current.style.left=`${W}px`,s.current.style.top=`${H}px`,s.current.style.width=`${A}px`,s.current.style.height=`${I}px`,g.current=j,w.current=C}},P=()=>{if(u.current){u.current=!1,h(!1),s.current.style.display="none";const{left:E,top:j,width:C,height:x}=s.current.style,z=parseFloat(E)+.5*parseFloat(C),L=parseFloat(j)+.5*parseFloat(x),_=parseFloat(C),v=parseFloat(x);console.log(z,L,_,v),o({left:z,top:L}),n({width:_,height:v})}},k=E=>p(E,"lt"),O=E=>p(E,"rt"),B=E=>p(E,"rb"),X=E=>p(E,"lb"),q=d.useCallback(E=>{T(E)},[]),J=d.useCallback(()=>{P()},[]),ne=d.useCallback(()=>{P()},[]);return d.useEffect(()=>(document.body.addEventListener("mousemove",q),document.body.addEventListener("mouseup",J),document.body.addEventListener("mouseleave",ne),()=>{document.body.removeEventListener("mousemove",q),document.body.removeEventListener("mouseup",J),document.body.removeEventListener("mouseleave",ne)}),[]),{resizingState:f,DashedBox:i,onMousedownResizeLt:k,onMousedownResizeRt:O,onMousedownResizeRb:B,onMousedownResizeLb:X}},$t={"minimize-windows":"_minimize-windows_12u3y_1","minimize-windows-title":"_minimize-windows-title_12u3y_43","minimize-windows-operate":"_minimize-windows-operate_12u3y_55"},Ca=({onClick:e})=>m.jsx(F.Button,{type:"link",onClick:e,icon:m.jsx(ve.ShrinkOutlined,{style:{fontSize:"22px",cursor:"pointer"}})}),kr=({onClick:e})=>m.jsx(F.Button,{type:"link",onClick:e,icon:m.jsx(ve.FullscreenOutlined,{style:{fontSize:"22px",cursor:"pointer"}})}),xa=({onClick:e})=>m.jsx(F.Button,{type:"link",onClick:e,icon:m.jsx(ve.FullscreenExitOutlined,{style:{fontSize:"22px",cursor:"pointer"}})}),zr=({onClick:e})=>m.jsx(F.Button,{type:"link",onClick:e,icon:m.jsx(ve.CloseOutlined,{style:{fontSize:"22px",cursor:"pointer"}})}),{useToken:Ta}=F.theme,Sa=d.forwardRef(({title:e,left:t,top:r,visible:n,onMaximize:o,onClosesquare:i,className:a},s)=>{const{token:c}=Ta(),u={borderRadius:c.borderRadiusLG};return m.jsxs("div",{style:{display:n?"flex":"none",left:t,top:r,...u},className:`${$t["minimize-windows"]} ${a}`,ref:s,children:[m.jsx("div",{className:$t["minimize-windows-title"],title:e,children:e}),m.jsxs("div",{className:$t["minimize-windows-operate"],children:[m.jsx(kr,{onClick:o}),m.jsx(zr,{onClick:i})]})]})}),ce={"xph-dialog-mask":"_xph-dialog-mask_18f3p_1","xph-dialog-wrapper":"_xph-dialog-wrapper_18f3p_23",dialog__header:"_dialog__header_18f3p_49","dialog__header-btns":"_dialog__header-btns_18f3p_67",dialog__main:"_dialog__main_18f3p_75",dialog__footer:"_dialog__footer_18f3p_89",dialog__resize:"_dialog__resize_18f3p_103","dialog__resize-lt":"_dialog__resize-lt_18f3p_117","dialog__resize-rt":"_dialog__resize-rt_18f3p_129","dialog__resize-rb":"_dialog__resize-rb_18f3p_141","dialog__resize-lb":"_dialog__resize-lb_18f3p_153"},{useToken:Pa}=F.theme,Da=d.forwardRef((e,t)=>{console.log("render Dialog==============================================");const{token:r}=Pa(),n={borderRadius:r.borderRadiusLG},{children:o,baseDialogProps:i,mask:a}=e,[s,c]=d.useState(!1),{footerActions:u}=ca(e),{title:f,renderFooter:h,renderTitle:g,getPopperContainer:w}=e,{open:p,close:T}=da(e,c),P=w(),k=d.useRef(null),O=d.useRef(null),B=d.useRef(null),X=d.useRef(null),{dialogChangeRecord:q,setDialogChangeRecord:J}=_a(),{initWidth:ne,initHeight:E,curPropsWidth:j,curPropsHeight:C,dialogWidth:x,dialogHeight:z,setDialogSize:L}=pa(P,i,e,J),{dialogLeft:_,dialogTop:v,setDialogPosition:b}=ha({container:P,setDialogChangeRecord:J}),{contentMaxHeight:$}=ma({visible:s,container:P,dialogHeight:z,dialogRef:k,dialogHeaderRef:O,dialogFooterRef:X}),{minimizeLeft:S,minimizeTop:R,minimizeRef:M,setMinimizePosition:A}=va(),{minimizeVisible:I,maximizeVisible:W,onMaximize:H,onMinimize:se,onRecovery:de,onClose:ie}=ga({container:P,dialogChangeRecord:q,close:T,setDialogSize:L,setDialogPosition:b});ba({visible:s,container:P,initWidth:ne,initHeight:E,curPropsWidth:j,curPropsHeight:C,setDialogSize:L,setDialogPosition:b}),Ir({container:P,dialogHeaderRef:O,dialogRef:k,setDialogPosition:b}),Ir({container:P,dialogHeaderRef:M,dialogRef:M,setDialogPosition:A});const{dialogTopShowClassConfig:ae}=ya({visible:s,container:P,dialogRef:k,minimizeRef:M}),{resizingState:ee,DashedBox:pe,onMousedownResizeLt:_e,onMousedownResizeRt:je,onMousedownResizeRb:Ot,onMousedownResizeLb:Ae}=wa({visible:s,container:P,dialogRef:k,setDialogSize:L,setDialogPosition:b});return d.useImperativeHandle(t,()=>({open:p,close:ie})),m.jsxs("div",{className:ae.xphDialog,children:[a?m.jsx("div",{className:ce["xph-dialog-mask"],style:{display:s?"block":"none",width:P.scrollWidth,height:P.scrollHeight}}):null,m.jsx(Sa,{visible:I,className:`${ae.xphMinimizeDialog}`,ref:M,left:S,top:R,title:f,onMaximize:()=>H("minimize"),onClosesquare:ie}),m.jsxs("div",{ref:k,className:`${ce["xph-dialog-wrapper"]} ${ae.xphDialogWrapper}`,style:{display:s&&!I?"flex":"none",left:_,top:v,width:x,height:z,opacity:ee?.2:"unset",...n},children:[m.jsxs("div",{ref:O,className:ce.dialog__header,children:[m.jsx("div",{children:g?g():f}),m.jsxs("div",{className:ce["dialog__header-btns"],children:[m.jsx(Ca,{onClick:se}),W?m.jsx(xa,{onClick:de}):m.jsx(kr,{onClick:()=>H("maximize")}),m.jsx(zr,{onClick:ie})]})]}),m.jsx("div",{ref:B,className:ce.dialog__main,style:{maxHeight:$},children:s?o:null}),h?m.jsx("div",{ref:X,children:h()}):m.jsx("div",{ref:X,className:ce.dialog__footer,children:m.jsx(tt,{...u})}),m.jsx("div",{className:`${ce.dialog__resize} ${ce["dialog__resize-lt"]}`,onMouseDown:_e}),m.jsx("div",{className:`${ce.dialog__resize} ${ce["dialog__resize-rt"]}`,onMouseDown:je}),m.jsx("div",{className:`${ce.dialog__resize} ${ce["dialog__resize-rb"]}`,onMouseDown:Ot}),m.jsx("div",{className:`${ce.dialog__resize} ${ce["dialog__resize-lb"]}`,onMouseDown:Ae})]}),m.jsx(pe,{})]})}),$a=(e,t)=>{const{children:r,...n}=e,{baseDialogProps:o,dialogProps:i}=ua(n),{getPopperContainer:a}=i;return console.log("render XphDialog=============================================="),m.jsx(Nr,{getPopperContainer:a,children:m.jsx(Da,{...i,baseDialogProps:o,ref:t,children:r})})},Lr=d.forwardRef($a),Nr=({children:e,getPopperContainer:t})=>{const[r,n]=d.useState(null);return d.useEffect(()=>{const o=t();n(o)},[]),r?cn.createPortal(e,r):null};function jt(e){return"component"in e}function Et(e){return"render"in e}function ja(e){return e.includes("Input")||e.includes("Complete")?"请输入":e.includes("Picker")||e.includes("Select")||e.includes("Cascader")||e.includes("Checkbox")||e.includes("Radio")||e.includes("Switch")?"请选择":""}function Ea(e,t,r){["DatePicker","MonthPicker","WeekPicker","TimePicker"].includes(t)?e.type=r?"string":"object":["RangePicker","Upload","CheckboxGroup","TimePicker"].includes(t)?e.type="array":["InputNumber"].includes(t)&&(e.type="number")}const Fa=["DatePicker","MonthPicker","RangePicker","WeekPicker","TimePicker"],Oa=e=>{const{show:t,ifShow:r,required:n,disabled:o,componentProps:i}=e;return!!(oe(t)||oe(r)||oe(n)||oe(o)||oe(i)||Et(e))},Aa=e=>["application/json","application/javascript","text/plain","text/html","text/css"].includes(e)?`${e}; charset=utf-8`:e,Ma=(e,t,r)=>{const n=d.useRef(null),o=d.useRef(null),{handleCollapseChangeFalse:i}=r.current||{},{show:a,ifShow:s}=e;let c=!0,u=!0;if(Dt(a)&&(c=a),Dt(s)&&(u=s),oe(a)){c=a({model:t});const f=Er(n.current)?c:n.current;d.useEffect(()=>{Qe(c,f)||i&&i()},[t])}if(oe(s)){u=s({model:t});const f=Er(o.current)?u:o.current;d.useEffect(()=>{Qe(u,f)||i&&i()},[t])}return n.current=c,o.current=u,{isShow:c,isIfShow:u}},Ra=(e,t)=>{const{collapsible:r,collapseNum:n}=e,[o,i]=d.useState(!!(r&&t>=n));return{itemCollapse:o,setItemCollapse:i}},Ia=({item:e,model:t,isShow:r,componentProps:n})=>{const{rules:o=[],label:i,required:a}=e;let s=o;const c=jt(e),u=c?ja(e.component)+i:"";function f(p,T){const P=p.message||u;return T===void 0||Qi(T)||Array.isArray(T)&&T.length===0||typeof T=="string"&&T.trim()===""||typeof T=="object"&&Reflect.has(T,"checked")&&Reflect.has(T,"halfChecked")&&Array.isArray(T.checked)&&Array.isArray(T.halfChecked)&&T.checked.length===0&&T.halfChecked.length===0?Promise.reject(P):Promise.resolve()}const h=oe(a)?a({model:t}):a;h&&(!s||s.length===0?s=[{required:h,validator:f}]:s.findIndex(T=>Reflect.has(T,"required"))===-1&&s.push({required:h,validator:f}));const g=s.findIndex(p=>Reflect.has(p,"required")&&!Reflect.has(p,"validator"));if(g!==-1){const p=s[g];if(r||(p.required=!1),c){const{component:T}=e;Reflect.has(p,"type")||(p.type=T==="InputNumber"?"number":"string"),p.message=p.message||u,(T.includes("Input")||T.includes("Textarea"))&&(p.whitespace=!0);const P=n.valueFormat;Ea(p,T,P)}}const w=s.findIndex(p=>p.max);return w!==-1&&!s[w].validator&&(s[w].message=s[w].message||`字符数应小于${s[w].max}位`),{rules:s}},ka=(e,t,r)=>{const{disabled:n}=e;let o=!1;const{disabled:i}=t;return oe(i)&&(o=i({model:r})),Dt(i)&&(o=i),{disabled:Reflect.has(t,"disabled")?o:n}},za=(e,t)=>{const r={},{componentProps:n={}}=e;return oe(n)&&Object.assign(r,n({model:t})),Object.assign(r,n),{componentProps:r}},La=(e,t)=>{const{colProps:r={}}=e,{colProps:n={span:24}}=t;return{colProps:{...n,...r}}},Na=({formProps:e})=>{const{items:t}=e;return{formItems:t.map(n=>({...n}))}},Wa=(e,t)=>{const r=s=>(Object.keys(s).forEach(c=>{Object.defineProperty(s,c,{value:s[c],writable:!1,enumerable:!0,configurable:!1})}),s),n={};e.items.forEach(s=>{n[s.name]=s.initialValue});const o=Oa(t),i=o?F.Form.useWatch(s=>r(s)):null;return{rewritingModel:d.useMemo(()=>i||r(n),[i]),isusewatch:o}},Ba=()=>{const e=d.useRef(null);function t(n){e.current=n}const r={getFieldsValue:(...n)=>{if(!e.current)throw new Error("表单还没初始化完成");return e.current.getFieldsValue(...n)},setFieldsValue:(...n)=>{if(!e.current)throw new Error("表单还没初始化完成");return e.current.setFieldsValue(...n)},resetFields:(...n)=>{if(!e.current)throw new Error("表单还没初始化完成");return e.current.resetFields(...n)},validator:(...n)=>{if(!e.current)throw new Error("表单还没初始化完成");return e.current.validator(...n)},scrollToField:(...n)=>{if(!e.current)throw new Error("表单还没初始化完成");return e.current.scrollToField(...n)}};return d.useEffect(()=>(console.log("ParentComponent is mounted====================================="),()=>{console.log("ParentComponent is unmounted===================================="),e.current=null}),[]),[t,r]};var Wr={exports:{}};(function(e,t){(function(r,n){e.exports=n()})(un,function(){var r=1e3,n=6e4,o=36e5,i="millisecond",a="second",s="minute",c="hour",u="day",f="week",h="month",g="quarter",w="year",p="date",T="Invalid Date",P=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,k=/\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,O={name:"en",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),ordinal:function(_){var v=["th","st","nd","rd"],b=_%100;return"["+_+(v[(b-20)%10]||v[b]||v[0])+"]"}},B=function(_,v,b){var $=String(_);return!$||$.length>=v?_:""+Array(v+1-$.length).join(b)+_},X={s:B,z:function(_){var v=-_.utcOffset(),b=Math.abs(v),$=Math.floor(b/60),S=b%60;return(v<=0?"+":"-")+B($,2,"0")+":"+B(S,2,"0")},m:function _(v,b){if(v.date()<b.date())return-_(b,v);var $=12*(b.year()-v.year())+(b.month()-v.month()),S=v.clone().add($,h),R=b-S<0,M=v.clone().add($+(R?-1:1),h);return+(-($+(b-S)/(R?S-M:M-S))||0)},a:function(_){return _<0?Math.ceil(_)||0:Math.floor(_)},p:function(_){return{M:h,y:w,w:f,d:u,D:p,h:c,m:s,s:a,ms:i,Q:g}[_]||String(_||"").toLowerCase().replace(/s$/,"")},u:function(_){return _===void 0}},q="en",J={};J[q]=O;var ne="$isDayjsObject",E=function(_){return _ instanceof z||!(!_||!_[ne])},j=function _(v,b,$){var S;if(!v)return q;if(typeof v=="string"){var R=v.toLowerCase();J[R]&&(S=R),b&&(J[R]=b,S=R);var M=v.split("-");if(!S&&M.length>1)return _(M[0])}else{var A=v.name;J[A]=v,S=A}return!$&&S&&(q=S),S||!$&&q},C=function(_,v){if(E(_))return _.clone();var b=typeof v=="object"?v:{};return b.date=_,b.args=arguments,new z(b)},x=X;x.l=j,x.i=E,x.w=function(_,v){return C(_,{locale:v.$L,utc:v.$u,x:v.$x,$offset:v.$offset})};var z=function(){function _(b){this.$L=j(b.locale,null,!0),this.parse(b),this.$x=this.$x||b.x||{},this[ne]=!0}var v=_.prototype;return v.parse=function(b){this.$d=function($){var S=$.date,R=$.utc;if(S===null)return new Date(NaN);if(x.u(S))return new Date;if(S instanceof Date)return new Date(S);if(typeof S=="string"&&!/Z$/i.test(S)){var M=S.match(P);if(M){var A=M[2]-1||0,I=(M[7]||"0").substring(0,3);return R?new Date(Date.UTC(M[1],A,M[3]||1,M[4]||0,M[5]||0,M[6]||0,I)):new Date(M[1],A,M[3]||1,M[4]||0,M[5]||0,M[6]||0,I)}}return new Date(S)}(b),this.init()},v.init=function(){var b=this.$d;this.$y=b.getFullYear(),this.$M=b.getMonth(),this.$D=b.getDate(),this.$W=b.getDay(),this.$H=b.getHours(),this.$m=b.getMinutes(),this.$s=b.getSeconds(),this.$ms=b.getMilliseconds()},v.$utils=function(){return x},v.isValid=function(){return this.$d.toString()!==T},v.isSame=function(b,$){var S=C(b);return this.startOf($)<=S&&S<=this.endOf($)},v.isAfter=function(b,$){return C(b)<this.startOf($)},v.isBefore=function(b,$){return this.endOf($)<C(b)},v.$g=function(b,$,S){return x.u(b)?this[$]:this.set(S,b)},v.unix=function(){return Math.floor(this.valueOf()/1e3)},v.valueOf=function(){return this.$d.getTime()},v.startOf=function(b,$){var S=this,R=!!x.u($)||$,M=x.p(b),A=function(ae,ee){var pe=x.w(S.$u?Date.UTC(S.$y,ee,ae):new Date(S.$y,ee,ae),S);return R?pe:pe.endOf(u)},I=function(ae,ee){return x.w(S.toDate()[ae].apply(S.toDate("s"),(R?[0,0,0,0]:[23,59,59,999]).slice(ee)),S)},W=this.$W,H=this.$M,se=this.$D,de="set"+(this.$u?"UTC":"");switch(M){case w:return R?A(1,0):A(31,11);case h:return R?A(1,H):A(0,H+1);case f:var ie=this.$locale().weekStart||0,me=(W<ie?W+7:W)-ie;return A(R?se-me:se+(6-me),H);case u:case p:return I(de+"Hours",0);case c:return I(de+"Minutes",1);case s:return I(de+"Seconds",2);case a:return I(de+"Milliseconds",3);default:return this.clone()}},v.endOf=function(b){return this.startOf(b,!1)},v.$set=function(b,$){var S,R=x.p(b),M="set"+(this.$u?"UTC":""),A=(S={},S[u]=M+"Date",S[p]=M+"Date",S[h]=M+"Month",S[w]=M+"FullYear",S[c]=M+"Hours",S[s]=M+"Minutes",S[a]=M+"Seconds",S[i]=M+"Milliseconds",S)[R],I=R===u?this.$D+($-this.$W):$;if(R===h||R===w){var W=this.clone().set(p,1);W.$d[A](I),W.init(),this.$d=W.set(p,Math.min(this.$D,W.daysInMonth())).$d}else A&&this.$d[A](I);return this.init(),this},v.set=function(b,$){return this.clone().$set(b,$)},v.get=function(b){return this[x.p(b)]()},v.add=function(b,$){var S,R=this;b=Number(b);var M=x.p($),A=function(H){var se=C(R);return x.w(se.date(se.date()+Math.round(H*b)),R)};if(M===h)return this.set(h,this.$M+b);if(M===w)return this.set(w,this.$y+b);if(M===u)return A(1);if(M===f)return A(7);var I=(S={},S[s]=n,S[c]=o,S[a]=r,S)[M]||1,W=this.$d.getTime()+b*I;return x.w(W,this)},v.subtract=function(b,$){return this.add(-1*b,$)},v.format=function(b){var $=this,S=this.$locale();if(!this.isValid())return S.invalidDate||T;var R=b||"YYYY-MM-DDTHH:mm:ssZ",M=x.z(this),A=this.$H,I=this.$m,W=this.$M,H=S.weekdays,se=S.months,de=S.meridiem,ie=function(ee,pe,_e,je){return ee&&(ee[pe]||ee($,R))||_e[pe].slice(0,je)},me=function(ee){return x.s(A%12||12,ee,"0")},ae=de||function(ee,pe,_e){var je=ee<12?"AM":"PM";return _e?je.toLowerCase():je};return R.replace(k,function(ee,pe){return pe||function(_e){switch(_e){case"YY":return String($.$y).slice(-2);case"YYYY":return x.s($.$y,4,"0");case"M":return W+1;case"MM":return x.s(W+1,2,"0");case"MMM":return ie(S.monthsShort,W,se,3);case"MMMM":return ie(se,W);case"D":return $.$D;case"DD":return x.s($.$D,2,"0");case"d":return String($.$W);case"dd":return ie(S.weekdaysMin,$.$W,H,2);case"ddd":return ie(S.weekdaysShort,$.$W,H,3);case"dddd":return H[$.$W];case"H":return String(A);case"HH":return x.s(A,2,"0");case"h":return me(1);case"hh":return me(2);case"a":return ae(A,I,!0);case"A":return ae(A,I,!1);case"m":return String(I);case"mm":return x.s(I,2,"0");case"s":return String($.$s);case"ss":return x.s($.$s,2,"0");case"SSS":return x.s($.$ms,3,"0");case"Z":return M}return null}(ee)||M.replace(":","")})},v.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},v.diff=function(b,$,S){var R,M=this,A=x.p($),I=C(b),W=(I.utcOffset()-this.utcOffset())*n,H=this-I,se=function(){return x.m(M,I)};switch(A){case w:R=se()/12;break;case h:R=se();break;case g:R=se()/3;break;case f:R=(H-W)/6048e5;break;case u:R=(H-W)/864e5;break;case c:R=H/o;break;case s:R=H/n;break;case a:R=H/r;break;default:R=H}return S?R:x.a(R)},v.daysInMonth=function(){return this.endOf(h).$D},v.$locale=function(){return J[this.$L]},v.locale=function(b,$){if(!b)return this.$L;var S=this.clone(),R=j(b,$,!0);return R&&(S.$L=R),S},v.clone=function(){return x.w(this.$d,this)},v.toDate=function(){return new Date(this.valueOf())},v.toJSON=function(){return this.isValid()?this.toISOString():null},v.toISOString=function(){return this.$d.toISOString()},v.toString=function(){return this.$d.toUTCString()},_}(),L=z.prototype;return C.prototype=L,[["$ms",i],["$s",a],["$m",s],["$H",c],["$W",u],["$M",h],["$y",w],["$D",p]].forEach(function(_){L[_[1]]=function(v){return this.$g(v,_[0],_[1])}}),C.extend=function(_,v){return _.$i||(_(v,z,C),_.$i=!0),C},C.locale=j,C.isDayjs=E,C.unix=function(_){return C(1e3*_)},C.en=J[q],C.Ls=J,C.p={},C})})(Wr);var Ha=Wr.exports;const rt=fn(Ha);function Ua(e,t={}){const r=/^\[(.+)\]$/;if(r.test(e)){const n=e.match(r);if(n&&n[1]){const o=n[1].split(",");if(!o.length)return;const i=[];return o.forEach((a,s)=>{Fr(i,s,t[a.trim()])}),i.filter(Boolean).length?i:void 0}}}function Va(e,t={}){const r=/^\{(.+)\}$/;if(r.test(e)){const n=e.match(r);if(n&&n[1]){const o=n[1].split(",");if(!o.length)return;const i={};return o.forEach(a=>{Fr(i,a.trim(),t[a.trim()])}),Object.values(i).filter(Boolean).length?i:void 0}}}function Ya(e,t){const r=t.fieldMapToTime;if(!r||!Array.isArray(r))return e;for(const[n,[o,i],a="YYYY-MM-DD"]of r){if(!n||!o||!i)continue;if(!e[n]){Reflect.deleteProperty(e,n);continue}const[s,c]=e[n],[u,f]=Array.isArray(a)?a:[a,a];e[o]=rt(s).format(u),e[i]=rt(c).format(f),Reflect.deleteProperty(e,n)}return e}const qa=(e,t,r)=>{const n=e.filter(a=>a.name);return{handleFormatRenderValues:a=>{const s={},c=[];return n.forEach(u=>{const f=Reflect.has(a,u.name),h=Ua(u.name,a)||Va(u.name,a);if(f||h){const g=h||a[u.name];if(jt(u))if(Fa.includes(u.component)){if(ue(g)){const w=[];for(const p of g)w.push(p?rt(p):null);s[u.name]=w}else s[u.name]=g?rt(g):null;c.push(u.name)}else s[u.name]=g,c.push(u.name);Et(u)&&(s[u.name]=g,c.push(u.name))}}),{renderValues:s,validKeys:c}},handleFormatReturnValues:a=>{var c,u,f,h,g;if(!fe(a))return{};const s={};for(const w of Object.entries(a)){let[,p]=w;const[T]=w;if(!T||ue(p)&&p.length===0||oe(p))continue;const{transformDateFunc:P}=t,k=(f=(u=(c=r.current)==null?void 0:c.get(T))==null?void 0:u.current)==null?void 0:f.componentProps,O=k==null?void 0:k.valueFormat;if(fe(p)){const B=p;B.format&&(p=P==null?void 0:P(B,O))}ue(p)&&((h=p[0])!=null&&h.format)&&((g=p[1])!=null&&g.format)&&(p=p.map(B=>P==null?void 0:P(B,O))),jr(p)&&(p===""?p=void 0:p=p.trim()),s[T]=p}return Ya(s,t)}}},Ga=(e,t,r)=>({getFieldsValue:(...c)=>r(e.getFieldsValue(...c)),setFieldsValue:c=>{const{renderValues:u,validKeys:f}=t(c);e.setFieldsValue(u),e.validateFields(f)},resetFields:async()=>e.resetFields(),validator:async c=>e.validateFields(c).then(u=>r(u)),scrollToField:async(c,u)=>e.scrollToField(c,u)}),Xa=e=>{const{extendFormProps:t}=Br();return{formProps:{...$e($e({collapseNum:5,colon:!1,items:[],labelWrap:!0,transformDateFunc:(o,i)=>{var a;return((a=o==null?void 0:o.format)==null?void 0:a.call(o,i||"YYYY-MM-DD HH:mm:ss"))??o},fieldMapToTime:[]},t),e)}}},nt=e=>{const{immediate:t=!0,params:r,api:n,apiCallback:o,isUseWatch:i}=e,a=d.useRef(!0),s=d.useRef(r),c=()=>{n&&oe(n)&&(r?n(r).then(o):n().then(o),s.current=r)};return d.useEffect(()=>{a.current&&(t&&c(),a.current=!1),!a.current&&i&&(Qe(r,s.current)||t&&c())},[r]),{getApiData:c}},Ka=(e,t)=>{const{collapsible:r,collapseNum:n}=e,o=d.useRef();return{collapsible:r,collapseNum:n,collapseRef:o,onClickCollapseToTrue:()=>{var s;(s=t.current)==null||s.forEach(c=>{if(c.current){const{itemIndex:u}=c.current;u>=n&&r&&c.current.setItemCollapse(!0)}})},onClickCollapseToFalse:()=>{var s;(s=t.current)==null||s.forEach(c=>{if(c.current){const{itemCollapse:u}=c.current;u&&c.current.setItemCollapse(!1)}})}}},Br=()=>{const{extendProps:e,extendComp:t}=He(),r=n=>{const o=t==null?void 0:t.form;o&&Object.keys(o).forEach(i=>{n.set(i,o[i])})};return{extendFormProps:e==null?void 0:e.form,setExtendFormComp:r}},Ja=e=>{console.log("render ApiSelect");const{api:t,params:r,immediate:n=!0,isusewatch:o,onDropdownVisibleChange:i}=e,a=o==="true",[s,c]=d.useState([]),{getApiData:u}=nt({api:t,immediate:n,params:r,apiCallback:c,isUseWatch:a}),f=g=>{g&&!n&&u(),i&&i(g)},h=()=>{const{api:g,params:w,immediate:p,isusewatch:T,...P}=e;return P};return m.jsx(F.Select,{...h(),options:s,onDropdownVisibleChange:f})},Za=e=>{console.log("render ApiTreeSelect");const{api:t,params:r,immediate:n=!0,isusewatch:o,onDropdownVisibleChange:i}=e,a=o==="true",[s,c]=d.useState([]),{getApiData:u}=nt({api:t,immediate:n,params:r,apiCallback:c,isUseWatch:a}),f=g=>{g&&!n&&u(),i&&i(g)},h=()=>{const{api:g,params:w,immediate:p,isusewatch:T,...P}=e;return P};return m.jsx(F.TreeSelect,{...h(),treeData:s,onDropdownVisibleChange:f})},Qa=e=>{console.log("render ApiTransfer");const{api:t,params:r,isusewatch:n}=e,o=n==="true",[i,a]=d.useState([]);nt({api:t,params:r,apiCallback:a,isUseWatch:o});const s=()=>{const{api:c,params:u,isusewatch:f,...h}=e;return h};return m.jsx(F.Transfer,{...s(),dataSource:i})},el=e=>{console.log("render ApiAutoComplete");const{api:t,params:r,immediate:n=!0,isusewatch:o,onDropdownVisibleChange:i}=e,a=o==="true",[s,c]=d.useState([]),{getApiData:u}=nt({api:t,immediate:n,params:r,apiCallback:c,isUseWatch:a}),f=g=>{g&&!n&&u(),i&&i(g)},h=()=>{const{api:g,params:w,immediate:p,isusewatch:T,...P}=e;return P};return m.jsx(F.AutoComplete,{...h(),options:s,onDropdownVisibleChange:f})},Te={String:"String","String[]":"String[]","File[]":"File[]",FileList:"FileList"},tl=e=>{console.log("render AutoUpload"),console.log(lt());const t="",{api:r,maxCount:n=1,maxSize:o=2,listType:i="picture-card",openCrop:a=!1,data:s,returnType:c=Te.String,value:u=t,onChange:f}=e,h=d.useRef(!0),g=d.useRef(0),w=d.useRef([]),[p,T]=d.useState([]),P=E=>{w.current=E,T([...E])},k=()=>{const{api:E,maxCount:j,maxSize:C,openCrop:x,beforeUpload:z,fileList:L,returnType:_,...v}=e;return v},O=E=>{const j=E.size/1024/1024<o;j||F.message.error(`文件大小超过:${o}M, 请重试`);const C=w.current.length+g.current<n;return C||F.message.error(`文件数量不能超过${n}个`),j&&C&&g.current++,j&&C&&B(E),F.Upload.LIST_IGNORE},B=E=>{a?(F.message.error("暂时不支持裁剪功能,后续兼容。。。。"),X({file:E})):X({file:E})},X=E=>{r?r({file:E.file,...s}).then(j=>{P([...w.current,...j])}).finally(()=>{g.current--}):(Object.assign(E.file,{status:"done",url:URL.createObjectURL(new Blob([E.file],{type:Aa(E.file.type)}))}),P([...w.current,E.file]),g.current--)},q=E=>{const{file:j,fileList:C}=E,{status:x}=j;switch(x){case"removed":{P([...C]);break}}},J=E=>{const j=x=>{const z=x.split("/"),L=z[z.length-1],[_]=L.split("?");return _};return{uid:(x=>{const z=w.current.find(L=>L.url===x);return z?z.uid:lt()})(E),name:j(E),url:E,status:"done"}},ne=()=>{switch(c){case Te.String:return p.map(E=>E.url).join(",");case Te["String[]"]:return p.map(E=>E.url);case Te["File[]"]:return[...p];case Te.FileList:return[...p]}};return d.useEffect(()=>{const E=ne();if(Qe(E,u))return;let j=[];switch(c){case Te.String:{j=(u||"").split(",").filter(C=>C).map(C=>J(C));break}case Te["String[]"]:{j=(u||[]).map(C=>J(C));break}case Te["File[]"]:{j=(u||[]).map(C=>C);break}case Te.FileList:{j=(u||[]).map(C=>C);break}}P(j)},[u]),d.useEffect(()=>{if(h.current){h.current=!1;return}const E=ne();f==null||f(E)},[p]),m.jsx(F.Upload,{listType:i,...k(),fileList:p,beforeUpload:O,onChange:q,children:"上传"})},K=new Map;K.set("Input",F.Input),K.set("ApiSelect",Ja),K.set("Select",F.Select),K.set("InputNumber",F.InputNumber),K.set("ApiTreeSelect",Za),K.set("TreeSelect",F.TreeSelect),K.set("ApiTransfer",Qa),K.set("Transfer",F.Transfer),K.set("Switch",F.Switch),K.set("Button",F.Button),K.set("Radio",F.Radio),K.set("RadioGroup",F.Radio.Group),K.set("Checkbox",F.Checkbox),K.set("CheckboxGroup",F.Checkbox.Group),K.set("Cascader",F.Cascader),K.set("TimePicker",F.TimePicker),K.set("DatePicker",F.DatePicker),K.set("MonthPicker",F.DatePicker.MonthPicker),K.set("WeekPicker",F.DatePicker.WeekPicker),K.set("RangePicker",F.DatePicker.RangePicker),K.set("InputPassword",F.Input.Password),K.set("InputTextArea",F.Input.TextArea),K.set("ApiAutoComplete",el),K.set("AutoComplete",F.AutoComplete),K.set("Upload",F.Upload),K.set("AutoUpload",tl);const Hr={"form-item-force":"_form-item-force_1hsf3_1","form-item-hidden":"_form-item-hidden_1hsf3_9"},rl=d.forwardRef(({itemIndex:e,itemProps:t,methods:r,formProps:n,collapseRef:o},i)=>{console.log("render FormItem",t.name);const{rewritingModel:a,isusewatch:s}=Wa(n,t),{isIfShow:c,isShow:u}=Ma(t,a,o),{colProps:f}=La(t,n),{componentProps:h}=za(t,a),{rules:g}=Ia({item:t,model:a,isShow:u,componentProps:h}),{disabled:w}=ka(n,t,a),{itemCollapse:p,setItemCollapse:T}=Ra(n,e),{name:P,label:k,wrapperCol:O,labelCol:B,valuePropName:X,initialValue:q,forceRow:J}=t;d.useImperativeHandle(i,()=>({itemIndex:e,componentProps:h,itemCollapse:p,setItemCollapse:T}));const ne=()=>({name:P,label:k,rules:g,wrapperCol:O,labelCol:B,valuePropName:X,initialValue:q}),{setExtendFormComp:E}=Br();E(K);const j=jt(t),C=Et(t),x=()=>{if(j){const z=K.get(t.component);return m.jsx(z,{...h,disabled:w,isusewatch:s.toString()})}return C?t.render({model:a,name:P,disabled:w,methods:r,componentProps:h}):null};return m.jsxs(d.Fragment,{children:[J?m.jsx("div",{className:Hr["form-item-force"]}):null,c?m.jsx(F.Col,{...f,className:u&&!p?void 0:Hr["form-item-hidden"],children:m.jsx(F.Form.Item,{...ne(),children:x()})}):null]})}),nl={"collapse-wrapper":"_collapse-wrapper_ylm01_1"},ol=d.forwardRef(({collapsible:e,onClickExpand:t,onClickFold:r},n)=>{const[o,i]=d.useState(e),a=d.useMemo(()=>o,[o]),s=()=>{r(),i(!0)},c=()=>{t(),i(!1)};return d.useImperativeHandle(n,()=>({handleCollapseChangeFalse:c})),m.jsx("div",{className:nl["collapse-wrapper"],children:a?m.jsx(F.Button,{onClick:c,type:"link",icon:m.jsx(ve.DownOutlined,{}),children:"展开"}):m.jsx(F.Button,{onClick:s,type:"link",icon:m.jsx(ve.UpOutlined,{}),children:"折叠"})})}),sl={"group-wrapper":"_group-wrapper_g8zqi_1"},il=({formProps:e})=>{const{renderActions:t}=e;return m.jsx("div",{className:sl["group-wrapper"],children:t==null?void 0:t()})},al={"xph-form-action":"_xph-form-action_8ws73_1"},ll=(e,t)=>{console.log("render Form");const[r]=F.Form.useForm(),{formProps:n}=Xa(e),{formItems:o}=Na({formProps:n}),i=d.useRef(new Map),{collapsible:a,collapseNum:s,collapseRef:c,onClickCollapseToFalse:u,onClickCollapseToTrue:f}=Ka(n,i),{handleFormatRenderValues:h,handleFormatReturnValues:g}=qa(o,n,i),{setFieldsValue:w,getFieldsValue:p,resetFields:T,validator:P,scrollToField:k}=Ga(r,h,g),O=()=>{const{layout:X,wrapperCol:q,labelCol:J,colon:ne,disabled:E,labelWrap:j,labelAlign:C,scrollToFirstError:x,size:z}=n;return{layout:X,wrapperCol:q,labelCol:J,colon:ne,disabled:E,labelWrap:j,labelAlign:C,scrollToFirstError:x,size:z}},B={setFieldsValue:w,getFieldsValue:p,resetFields:T,validator:P,scrollToField:k};return d.useImperativeHandle(t,()=>({...B})),d.useEffect(()=>(console.log("Form is mounted======================="),n.register&&n.register(B),()=>{console.log("Form is unmounted========================="),i.current.clear()}),[]),m.jsxs(F.Form,{form:r,...O(),children:[m.jsx(F.Row,{children:o.map((X,q)=>(i.current.has(X.name)||i.current.set(X.name,d.createRef()),m.jsx(rl,{ref:i.current.get(X.name),itemIndex:q,itemProps:X,formProps:n,methods:B,collapseRef:c},q)))}),m.jsxs("div",{className:al["xph-form-action"],children:[m.jsx(il,{formProps:n}),a?m.jsx(ol,{ref:c,collapsible:o.length>s,onClickExpand:u,onClickFold:f}):null]})]})},Ft=d.forwardRef(ll),cl=d.memo(Ft),ul=d.forwardRef((e,t)=>{const{renderActions:r,showSearch:n,tableRef:o}=e,[i,a]=d.useState(!1),s=d.useRef(null),c=()=>{const{reloadData:g}=o.current;g()},u=()=>{const{resetData:g}=o.current;g()},f=d.useCallback(()=>m.jsxs("div",{style:{width:"100%",display:"flex"},children:[m.jsx("div",{style:{flex:1,width:0},children:r==null?void 0:r()}),n&&m.jsxs("div",{style:{display:"flex",gap:"8px"},children:[m.jsx(F.Button,{type:"primary",icon:m.jsx(ve.SearchOutlined,{}),onClick:c,children:"搜索"}),m.jsx(F.Button,{icon:m.jsx(ve.ReloadOutlined,{}),onClick:u,children:"重置"})]})]}),[n,r]),h=()=>{const{renderActions:g,...w}=e;return{...w,renderActions:f}};return d.useImperativeHandle(t,()=>({setFormLoading:a,...s.current})),m.jsx(F.Spin,{spinning:i,children:m.jsx(cl,{ref:s,...h()})})}),fl=d.memo(Ft),dl=(e,t)=>{const r=d.useRef(null),n=d.useRef(null),{formProps:o}=e,i=()=>{const{formProps:a,...s}=e;return s};return d.useImperativeHandle(t,()=>({open:(...a)=>{var s;return(s=r.current)==null?void 0:s.open(...a)},close:(...a)=>{var s;return(s=r.current)==null?void 0:s.close(...a)},getFieldsValue:(...a)=>n.current.getFieldsValue(...a),setFieldsValue:(...a)=>n.current.setFieldsValue(...a),resetFields:(...a)=>n.current.resetFields(...a),validator:(...a)=>n.current.validator(...a),scrollToField:(...a)=>n.current.scrollToField(...a)})),m.jsx(Lr,{...i(),ref:r,children:m.jsx(fl,{...o,ref:n})})},Ur=d.forwardRef(dl);function pl({searchForm:e}){return{searchFormRef:d.useRef(null),searchFormProps:e}}function hl(e){return"cellFunc"in e}function gl(e){return"children"in e}const{useToken:ml}=F.theme,vl=(e,t,r)=>{const{curComponentProps:n,cellFuncProps:o}=t,{url:i,onClick:a}=n,{token:s}=ml(),c={color:s.colorLink,cursor:"pointer"},u=()=>{if(r.mainClick&&r.mainClick(),a){a();return}if(i){window.open(i,"_blank");return}};return m.jsx(e,{...r,mainClick:u,mainStyle:Object.assign(c,(r==null?void 0:r.mainStyle)||{})})},yl={"cellfunc-actions":"_cellfunc-actions_14drt_1"},Vr={link:{Comp:vl},actions:{Comp:(e,t,r)=>{const{curComponentProps:n,cellFuncProps:o}=t;return m.jsx("div",{className:yl["cellfunc-actions"],children:m.jsx(tt,{...n})})}}},bl=(e,t)=>{const{renderPrams:{text:r}}=e;return m.jsx("span",{onClick:t==null?void 0:t.mainClick,style:t==null?void 0:t.mainStyle,children:r})},_l=e=>{const{setExtendTableCellComp:t}=qr();t(Vr);const{dslConfig:r}=e;let n=bl.bind(null,e),o=0;for(;o<r.length;){const i=o++,a=Vr[r[i].component];a&&(n=a.Comp.bind(null,n,{curComponentProps:r[i].componentProps||{},cellFuncProps:e}))}return m.jsx(n,{})};function Yr(e){return e.map(t=>{let r={...t};if(hl(r)){const{cellFunc:n,...o}=r;r={...o,render:(...i)=>{const a=oe(n),[s,c,u]=i,f={text:s,record:c,index:u},h=a?n(f):n;return m.jsx(_l,{dslConfig:h,renderPrams:f})}}}return gl(r)&&r.children&&Array.isArray(r.children)&&(r.children=Yr(r.children)),r})}function wl(e){const{columns:t}=e.table,r=Yr(t);return console.log(r),{columns:r}}const Cl=e=>{const{extendTableProps:t}=qr();return{tableProps:{...$e($e({table:{columns:[],fullHeight:!1,autoRequest:!0,pagination:{pageSize:20,total:0,showTotal:o=>`共:${o} 条`,current:1,pageSizeOptions:[10,20,50,100],showSizeChanger:!0,showQuickJumper:!0},requestFields:{pageSize:"pageSize",current:"current"},responseFields:{current:"current",list:"data",total:"total"}},crudFormDialog:void 0,searchForm:{showSearch:!0,items:[]}},t),e)}}};function xl(e){const{pagination:t,autoPagination:r}=e.table,[n,o]=d.useState(t),i=d.useRef(t),a=d.useMemo(()=>n&&(r===!0||r===void 0)||!1,[n]);return{pagination:{model:n,update:c=>{if(!i.current)return;const u={...i.current,...c};o(u),i.current=u},show:a},lastPaginationState:i}}function Tl(e,t){const{api:r,formatDataSource:n,autoPagination:o,onChange:i,requestFields:a,responseFields:s}=e.table,c=e.onPaginationChange,{pagination:u,lastPaginationState:f}=xl(e),[h,g]=d.useState({loading:!1,dataSource:[],selection:[],backupsDataSource:[]}),w=d.useRef({loading:!1,dataSource:[],selection:[],backupsDataSource:[]}),p={model:h,update:j=>{var x;const C={...w.current,...j};g(C),w.current=C,(x=t.current)==null||x.setFormLoading(C.loading)}},T=async()=>{d.useEffect(()=>{const{autoRequest:j}=e.table,{validator:C}=t.current;j&&C().then(x=>{B({searchFormParams:x})})},[])},P=async({searchFormParams:j,paginationParams:C})=>{const x={...j,[`${a.current}`]:f.current.current,[`${a.pageSize}`]:f.current.pageSize,...C?{[`${a.current}`]:C.current,[`${a.pageSize}`]:C.pageSize}:{}};return r(x).then(z=>{const{current:L,list:_,total:v}=ct(s,z);p.update({dataSource:n?n(_):_}),u.update({total:v,current:L})}).finally(()=>{p.update({loading:!1})})},k=async({searchFormParams:j,paginationParams:C})=>{const x={...j};return r(x).then(z=>{const{list:L}=ct(s,z),_=n?n(L):L;p.update({selection:[],dataSource:_}),u.update({current:1,total:L.length})}).finally(()=>{p.update({loading:!1})})},O=async({searchFormParams:j,paginationParams:C})=>{var z;const x={...j};if(C){const{current:L,pageSize:_}=C;u.update({current:L,pageSize:_});const v=(L-1)*_,b=v+_,$=(z=w.current.backupsDataSource)==null?void 0:z.slice(v,b);return p.update({loading:!1,selection:[],dataSource:$})}else return r(x).then(L=>{let _=n?n(L):L;const v=[..._],b=0,$=b+f.current.pageSize;_=_.slice(b,$),p.update({selection:[],dataSource:_,backupsDataSource:v}),u.update({current:1,total:L.length})}).finally(()=>{p.update({loading:!1})})},B=async({searchFormParams:j,paginationParams:C})=>{if(p.update({loading:!0,selection:[]}),r)switch(!!f.current){case!0:return o===!0?O({searchFormParams:j,paginationParams:C}):o===!1?k({searchFormParams:j,paginationParams:C}):P({searchFormParams:j,paginationParams:C});case!1:return k({searchFormParams:j,paginationParams:C})}return p.update({loading:!1})};return{table:p,pagination:u,firstGetTableData:T,onPaginationChange:(j,C)=>{const{validator:x}=t.current;x().then(z=>{B({searchFormParams:z,paginationParams:{current:j,pageSize:C}})}),c&&c(j,C)},onAllChange:async(...j)=>{const[C,x,z,L]=j,_=[];for(let v=0;v<_.length&&!_[v]();v++);i&&i(x,z,L)},resetData:async()=>{const{resetFields:j,validator:C}=t.current;return j().then(async()=>{const x=await C();return B({searchFormParams:x})})},resetAllData:async()=>{const{resetFields:j,validator:C}=t.current;return j().then(async()=>{const x={};if(f.current){const{pageSize:z}=f.current;o===void 0&&(x.paginationParams={current:1,pageSize:z})}return x.searchFormParams=await C(),B(x)})},reloadData:async()=>{const{validator:j}=t.current;return j().then(C=>B({searchFormParams:C}))}}}const Sl=(e,t)=>{const{onRowSelectionChange:r}=e,{rowSelection:n}=e.table,o=()=>{if(jr(n))return{type:n,onChange:(i,a,s)=>{t.update({selection:a}),r&&r(i,a)}};if(fe(n)){const{onChange:i}=n;return{...n,onChange:(a,s,c)=>{t.update({selection:s}),i&&i(a,s,c),r&&r(a,s)}}}return n};return{rowSelection:o(),getNewRowSelection:o}};function Pl(e,t){const{scroll:r,virtual:n}=e.table,o=d.useRef(null),[i,a]=d.useState(0),[s,c]=d.useState(0);d.useEffect(()=>{const f=()=>{o.current&&(a(o.current.offsetWidth),c(o.current.offsetHeight))};f();const h=new ResizeObserver(f);return o.current&&h.observe(o.current),()=>{h&&o.current&&h.unobserve(o.current)}},[]);const u=d.useMemo(()=>t?n?{x:i,y:s-70,...r}:{x:"max-content",y:s-70,...r}:{x:"max-content",...r},[s]);return{divRef:o,scroll:u}}function Dl(e,t){const{toolbar:r}=e.table;return{getTopToolbarBindProps:()=>{if(oe(r)){const o=r({loading:t.model.loading,selection:t.model.selection});return{...o,disabled:t.model.loading||o.disabled}}return{...r,disabled:t.model.loading||(r==null?void 0:r.disabled)}}}}const qr=()=>{const{extendProps:e,extendComp:t}=He(),r=n=>{const o=t==null?void 0:t.tableCellFunc;o&&Object.keys(o).forEach(i=>{const a=o[i];n[i]={Comp:a}})};return{extendTableProps:e==null?void 0:e.table,setExtendTableCellComp:r}},$l=({crudFormDialog:e})=>({crudFormDialogRef:d.useRef(null),crudFormProps:e}),ot={"main-container":"_main-container_1yx5k_1",container__toolbar:"_container__toolbar_1yx5k_13",container__table:"_container__table_1yx5k_27",container__pagination:"_container__pagination_1yx5k_35"},jl=d.forwardRef(({tableProps:e,searchFormRef:t,fullHeight:r},n)=>{const{columns:o}=wl(e),i=d.useRef(null),{table:a,pagination:s,firstGetTableData:c,onPaginationChange:u,onAllChange:f,resetData:h,resetAllData:g,reloadData:w}=Tl(e,t),{rowSelection:p}=Sl(e,a),{divRef:T,scroll:P}=Pl(e,r),{getTopToolbarBindProps:k}=Dl(e,a),O=()=>{const{autoRequest:B,api:X,formatDataSource:q,autoPagination:J,columns:ne,scroll:E,pagination:j,rowSelection:C,onChange:x,...z}=e.table;return z};return c(),d.useImperativeHandle(n,()=>({resetData:h,resetAllData:g,reloadData:w,...i.current})),console.log("render Table"),m.jsxs("div",{className:r?ot["main-container"]:void 0,children:[m.jsx("div",{className:ot.container__toolbar,children:m.jsx(tt,{...k()})}),m.jsx("div",{ref:T,className:r?ot.container__table:void 0,children:m.jsx(F.Table,{ref:i,...O(),loading:a.model.loading,columns:o,dataSource:a.model.dataSource,pagination:!1,rowSelection:p,scroll:P,onChange:f})}),s.show?m.jsx("div",{className:ot.container__pagination,children:m.jsx(F.Pagination,{disabled:a.model.loading,...s.model,onChange:u})}):null]})}),Gr={"xph-table-full-wrapper":"_xph-table-full-wrapper_mdv0g_1","full-wrapper__table":"_full-wrapper__table_mdv0g_13"},El=(e,t)=>{const{tableProps:r}=Cl(e),n=d.useRef(null),{searchFormRef:o,searchFormProps:i}=pl(r),{crudFormDialogRef:a,crudFormProps:s}=$l(r);let{fullHeight:c}=r.table;const{virtual:u}=r.table;return u&&(c=!0),d.useImperativeHandle(t,()=>({...n.current,...a.current})),m.jsxs("div",{className:c?Gr["xph-table-full-wrapper"]:void 0,children:[m.jsx("div",{children:m.jsx(ul,{ref:o,tableRef:n,...i})}),m.jsx("div",{className:c?Gr["full-wrapper__table"]:void 0,children:m.jsx(jl,{ref:n,searchFormRef:o,fullHeight:c,tableProps:r})}),s?m.jsx(Ur,{ref:a,...s}):null]})},Fl=d.forwardRef(El);Y.XphActions=tt,Y.XphCrudFormDialog=Ur,Y.XphDialog=Lr,Y.XphExtendCompPropsProvider=ia,Y.XphForm=Ft,Y.XphPortal=Nr,Y.XphTable=Fl,Y.buildUUID=lt,Y.getValueByPath=zt,Y.getValuesByPathObj=ct,Y.useXphExtendCompProps=He,Y.useXphForm=Ba,Object.defineProperty(Y,Symbol.toStringTag,{value:"Module"})});
25
+ Check the top-level render call using <`+E+">.")}return v}}function un(l,v){{if(!l._store||l._store.validated||l.key!=null)return;l._store.validated=!0;var E=ll(v);if(ln[E])return;ln[E]=!0;var N="";l&&l._owner&&l._owner!==Lt.current&&(N=" It was passed a child from "+W(l._owner.type)+"."),Ie(l),A('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.',E,N),Ie(null)}}function fn(l,v){{if(typeof l!="object")return;if(kt(l))for(var E=0;E<l.length;E++){var N=l[E];Wt(N)&&un(N,v)}else if(Wt(l))l._store&&(l._store.validated=!0);else if(l){var K=j(l);if(typeof K=="function"&&K!==l.entries)for(var Z=K.call(l),X;!(X=Z.next()).done;)Wt(X.value)&&un(X.value,v)}}}function ul(l){{var v=l.type;if(v==null||typeof v=="string")return;var E;if(typeof v=="function")E=v.propTypes;else if(typeof v=="object"&&(v.$$typeof===c||v.$$typeof===p))E=v.propTypes;else return;if(E){var N=W(v);It(E,l.props,"prop",N,l)}else if(v.PropTypes!==void 0&&!Nt){Nt=!0;var K=W(v);A("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?",K||"Unknown")}typeof v.getDefaultProps=="function"&&!v.getDefaultProps.isReactClassApproved&&A("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.")}}function fl(l){{for(var v=Object.keys(l.props),E=0;E<v.length;E++){var N=v[E];if(N!=="children"&&N!=="key"){Ie(l),A("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.",N),Ie(null);break}}l.ref!==null&&(Ie(l),A("Invalid attribute `ref` supplied to `React.Fragment`."),Ie(null))}}function dn(l,v,E,N,K,Z){{var X=C(l);if(!X){var V="";(l===void 0||typeof l=="object"&&l!==null&&Object.keys(l).length===0)&&(V+=" 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 ae=cl();ae?V+=ae:V+=cn();var re;l===null?re="null":kt(l)?re="array":l!==void 0&&l.$$typeof===t?(re="<"+(W(l.type)||"Unknown")+" />",V=" Did you accidentally export a JSX literal instead of a component?"):re=typeof l,A("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s",re,V)}var ne=al(l,v,E,K,Z);if(ne==null)return ne;if(X){var ge=v.children;if(ge!==void 0)if(N)if(kt(ge)){for(var ke=0;ke<ge.length;ke++)fn(ge[ke],l);Object.freeze&&Object.freeze(ge)}else A("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 fn(ge,l)}return l===n?fl(ne):ul(ne),ne}}function dl(l,v,E){return dn(l,v,E,!0)}function pl(l,v,E){return dn(l,v,E,!1)}var hl=pl,gl=dl;Le.Fragment=n,Le.jsx=hl,Le.jsxs=gl}()),Le}process.env.NODE_ENV==="production"?ht.exports=vn():ht.exports=yn();var m=ht.exports,Vt=typeof global=="object"&&global&&global.Object===Object&&global,bn=typeof self=="object"&&self&&self.Object===Object&&self,me=Vt||bn||Function("return this")(),Pe=me.Symbol,Yt=Object.prototype,_n=Yt.hasOwnProperty,wn=Yt.toString,Ne=Pe?Pe.toStringTag:void 0;function Cn(e){var t=_n.call(e,Ne),r=e[Ne];try{e[Ne]=void 0;var n=!0}catch{}var o=wn.call(e);return n&&(t?e[Ne]=r:delete e[Ne]),o}var xn=Object.prototype,Tn=xn.toString;function Sn(e){return Tn.call(e)}var Pn="[object Null]",$n="[object Undefined]",qt=Pe?Pe.toStringTag:void 0;function be(e){return e==null?e===void 0?$n:Pn:qt&&qt in Object(e)?Cn(e):Sn(e)}function ve(e){return e!=null&&typeof e=="object"}var Dn="[object Symbol]";function Ge(e){return typeof e=="symbol"||ve(e)&&be(e)==Dn}function En(e,t){for(var r=-1,n=e==null?0:e.length,o=Array(n);++r<n;)o[r]=t(e[r],r,e);return o}var ue=Array.isArray,jn=1/0,Gt=Pe?Pe.prototype:void 0,Xt=Gt?Gt.toString:void 0;function Kt(e){if(typeof e=="string")return e;if(ue(e))return En(e,Kt)+"";if(Ge(e))return Xt?Xt.call(e):"";var t=e+"";return t=="0"&&1/e==-jn?"-0":t}var On=/\s/;function Fn(e){for(var t=e.length;t--&&On.test(e.charAt(t)););return t}var An=/^\s+/;function Mn(e){return e&&e.slice(0,Fn(e)+1).replace(An,"")}function ie(e){var t=typeof e;return e!=null&&(t=="object"||t=="function")}var Jt=NaN,Rn=/^[-+]0x[0-9a-f]+$/i,In=/^0b[01]+$/i,kn=/^0o[0-7]+$/i,zn=parseInt;function Zt(e){if(typeof e=="number")return e;if(Ge(e))return Jt;if(ie(e)){var t=typeof e.valueOf=="function"?e.valueOf():e;e=ie(t)?t+"":t}if(typeof e!="string")return e===0?e:+e;e=Mn(e);var r=In.test(e);return r||kn.test(e)?zn(e.slice(2),r?2:8):Rn.test(e)?Jt:+e}function Qt(e){return e}var Ln="[object AsyncFunction]",Nn="[object Function]",Wn="[object GeneratorFunction]",Bn="[object Proxy]";function oe(e){if(!ie(e))return!1;var t=be(e);return t==Nn||t==Wn||t==Ln||t==Bn}var gt=me["__core-js_shared__"],er=function(){var e=/[^.]+$/.exec(gt&&gt.keys&&gt.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}();function Hn(e){return!!er&&er in e}var Un=Function.prototype,Vn=Un.toString;function Ee(e){if(e!=null){try{return Vn.call(e)}catch{}try{return e+""}catch{}}return""}var Yn=/[\\^$.*+?()[\]{}|]/g,qn=/^\[object .+?Constructor\]$/,Gn=Function.prototype,Xn=Object.prototype,Kn=Gn.toString,Jn=Xn.hasOwnProperty,Zn=RegExp("^"+Kn.call(Jn).replace(Yn,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function Qn(e){if(!ie(e)||Hn(e))return!1;var t=oe(e)?Zn:qn;return t.test(Ee(e))}function eo(e,t){return e==null?void 0:e[t]}function je(e,t){var r=eo(e,t);return Qn(r)?r:void 0}var mt=je(me,"WeakMap"),tr=Object.create,to=function(){function e(){}return function(t){if(!ie(t))return{};if(tr)return tr(t);e.prototype=t;var r=new e;return e.prototype=void 0,r}}();function ro(e,t,r){switch(r.length){case 0:return e.call(t);case 1:return e.call(t,r[0]);case 2:return e.call(t,r[0],r[1]);case 3:return e.call(t,r[0],r[1],r[2])}return e.apply(t,r)}function no(e,t){var r=-1,n=e.length;for(t||(t=Array(n));++r<n;)t[r]=e[r];return t}var oo=800,so=16,io=Date.now;function ao(e){var t=0,r=0;return function(){var n=io(),o=so-(n-r);if(r=n,o>0){if(++t>=oo)return arguments[0]}else t=0;return e.apply(void 0,arguments)}}function co(e){return function(){return e}}var Xe=function(){try{var e=je(Object,"defineProperty");return e({},"",{}),e}catch{}}(),lo=Xe?function(e,t){return Xe(e,"toString",{configurable:!0,enumerable:!1,value:co(t),writable:!0})}:Qt,uo=ao(lo),fo=9007199254740991,po=/^(?:0|[1-9]\d*)$/;function vt(e,t){var r=typeof e;return t=t??fo,!!t&&(r=="number"||r!="symbol"&&po.test(e))&&e>-1&&e%1==0&&e<t}function yt(e,t,r){t=="__proto__"&&Xe?Xe(e,t,{configurable:!0,enumerable:!0,value:r,writable:!0}):e[t]=r}function We(e,t){return e===t||e!==e&&t!==t}var ho=Object.prototype,go=ho.hasOwnProperty;function rr(e,t,r){var n=e[t];(!(go.call(e,t)&&We(n,r))||r===void 0&&!(t in e))&&yt(e,t,r)}function mo(e,t,r,n){var o=!r;r||(r={});for(var s=-1,i=t.length;++s<i;){var a=t[s],c=void 0;c===void 0&&(c=e[a]),o?yt(r,a,c):rr(r,a,c)}return r}var nr=Math.max;function vo(e,t,r){return t=nr(t===void 0?e.length-1:t,0),function(){for(var n=arguments,o=-1,s=nr(n.length-t,0),i=Array(s);++o<s;)i[o]=n[t+o];o=-1;for(var a=Array(t+1);++o<t;)a[o]=n[o];return a[t]=r(i),ro(e,this,a)}}function yo(e,t){return uo(vo(e,t,Qt),e+"")}var bo=9007199254740991;function or(e){return typeof e=="number"&&e>-1&&e%1==0&&e<=bo}function Ke(e){return e!=null&&or(e.length)&&!oe(e)}function _o(e,t,r){if(!ie(r))return!1;var n=typeof t;return(n=="number"?Ke(r)&&vt(t,r.length):n=="string"&&t in r)?We(r[t],e):!1}function wo(e){return yo(function(t,r){var n=-1,o=r.length,s=o>1?r[o-1]:void 0,i=o>2?r[2]:void 0;for(s=e.length>3&&typeof s=="function"?(o--,s):void 0,i&&_o(r[0],r[1],i)&&(s=o<3?void 0:s,o=1),t=Object(t);++n<o;){var a=r[n];a&&e(t,a,n,s)}return t})}var Co=Object.prototype;function bt(e){var t=e&&e.constructor,r=typeof t=="function"&&t.prototype||Co;return e===r}function xo(e,t){for(var r=-1,n=Array(e);++r<e;)n[r]=t(r);return n}var To="[object Arguments]";function sr(e){return ve(e)&&be(e)==To}var ir=Object.prototype,So=ir.hasOwnProperty,Po=ir.propertyIsEnumerable,_t=sr(function(){return arguments}())?sr:function(e){return ve(e)&&So.call(e,"callee")&&!Po.call(e,"callee")};function $o(){return!1}var ar=typeof q=="object"&&q&&!q.nodeType&&q,cr=ar&&typeof module=="object"&&module&&!module.nodeType&&module,Do=cr&&cr.exports===ar,lr=Do?me.Buffer:void 0,Eo=lr?lr.isBuffer:void 0,Je=Eo||$o,jo="[object Arguments]",Oo="[object Array]",Fo="[object Boolean]",Ao="[object Date]",Mo="[object Error]",Ro="[object Function]",Io="[object Map]",ko="[object Number]",zo="[object Object]",Lo="[object RegExp]",No="[object Set]",Wo="[object String]",Bo="[object WeakMap]",Ho="[object ArrayBuffer]",Uo="[object DataView]",Vo="[object Float32Array]",Yo="[object Float64Array]",qo="[object Int8Array]",Go="[object Int16Array]",Xo="[object Int32Array]",Ko="[object Uint8Array]",Jo="[object Uint8ClampedArray]",Zo="[object Uint16Array]",Qo="[object Uint32Array]",Q={};Q[Vo]=Q[Yo]=Q[qo]=Q[Go]=Q[Xo]=Q[Ko]=Q[Jo]=Q[Zo]=Q[Qo]=!0,Q[jo]=Q[Oo]=Q[Ho]=Q[Fo]=Q[Uo]=Q[Ao]=Q[Mo]=Q[Ro]=Q[Io]=Q[ko]=Q[zo]=Q[Lo]=Q[No]=Q[Wo]=Q[Bo]=!1;function es(e){return ve(e)&&or(e.length)&&!!Q[be(e)]}function ts(e){return function(t){return e(t)}}var ur=typeof q=="object"&&q&&!q.nodeType&&q,Be=ur&&typeof module=="object"&&module&&!module.nodeType&&module,rs=Be&&Be.exports===ur,wt=rs&&Vt.process,fr=function(){try{var e=Be&&Be.require&&Be.require("util").types;return e||wt&&wt.binding&&wt.binding("util")}catch{}}(),dr=fr&&fr.isTypedArray,Ct=dr?ts(dr):es,ns=Object.prototype,os=ns.hasOwnProperty;function pr(e,t){var r=ue(e),n=!r&&_t(e),o=!r&&!n&&Je(e),s=!r&&!n&&!o&&Ct(e),i=r||n||o||s,a=i?xo(e.length,String):[],c=a.length;for(var u in e)(t||os.call(e,u))&&!(i&&(u=="length"||o&&(u=="offset"||u=="parent")||s&&(u=="buffer"||u=="byteLength"||u=="byteOffset")||vt(u,c)))&&a.push(u);return a}function hr(e,t){return function(r){return e(t(r))}}var ss=hr(Object.keys,Object),is=Object.prototype,as=is.hasOwnProperty;function cs(e){if(!bt(e))return ss(e);var t=[];for(var r in Object(e))as.call(e,r)&&r!="constructor"&&t.push(r);return t}function ls(e){return Ke(e)?pr(e):cs(e)}function us(e){var t=[];if(e!=null)for(var r in Object(e))t.push(r);return t}var fs=Object.prototype,ds=fs.hasOwnProperty;function ps(e){if(!ie(e))return us(e);var t=bt(e),r=[];for(var n in e)n=="constructor"&&(t||!ds.call(e,n))||r.push(n);return r}function gr(e){return Ke(e)?pr(e,!0):ps(e)}var hs=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,gs=/^\w*$/;function ms(e,t){if(ue(e))return!1;var r=typeof e;return r=="number"||r=="symbol"||r=="boolean"||e==null||Ge(e)?!0:gs.test(e)||!hs.test(e)||t!=null&&e in Object(t)}var He=je(Object,"create");function vs(){this.__data__=He?He(null):{},this.size=0}function ys(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t}var bs="__lodash_hash_undefined__",_s=Object.prototype,ws=_s.hasOwnProperty;function Cs(e){var t=this.__data__;if(He){var r=t[e];return r===bs?void 0:r}return ws.call(t,e)?t[e]:void 0}var xs=Object.prototype,Ts=xs.hasOwnProperty;function Ss(e){var t=this.__data__;return He?t[e]!==void 0:Ts.call(t,e)}var Ps="__lodash_hash_undefined__";function $s(e,t){var r=this.__data__;return this.size+=this.has(e)?0:1,r[e]=He&&t===void 0?Ps:t,this}function Oe(e){var t=-1,r=e==null?0:e.length;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}Oe.prototype.clear=vs,Oe.prototype.delete=ys,Oe.prototype.get=Cs,Oe.prototype.has=Ss,Oe.prototype.set=$s;function Ds(){this.__data__=[],this.size=0}function Ze(e,t){for(var r=e.length;r--;)if(We(e[r][0],t))return r;return-1}var Es=Array.prototype,js=Es.splice;function Os(e){var t=this.__data__,r=Ze(t,e);if(r<0)return!1;var n=t.length-1;return r==n?t.pop():js.call(t,r,1),--this.size,!0}function Fs(e){var t=this.__data__,r=Ze(t,e);return r<0?void 0:t[r][1]}function As(e){return Ze(this.__data__,e)>-1}function Ms(e,t){var r=this.__data__,n=Ze(r,e);return n<0?(++this.size,r.push([e,t])):r[n][1]=t,this}function we(e){var t=-1,r=e==null?0:e.length;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}we.prototype.clear=Ds,we.prototype.delete=Os,we.prototype.get=Fs,we.prototype.has=As,we.prototype.set=Ms;var Ue=je(me,"Map");function Rs(){this.size=0,this.__data__={hash:new Oe,map:new(Ue||we),string:new Oe}}function Is(e){var t=typeof e;return t=="string"||t=="number"||t=="symbol"||t=="boolean"?e!=="__proto__":e===null}function Qe(e,t){var r=e.__data__;return Is(t)?r[typeof t=="string"?"string":"hash"]:r.map}function ks(e){var t=Qe(this,e).delete(e);return this.size-=t?1:0,t}function zs(e){return Qe(this,e).get(e)}function Ls(e){return Qe(this,e).has(e)}function Ns(e,t){var r=Qe(this,e),n=r.size;return r.set(e,t),this.size+=r.size==n?0:1,this}function Ce(e){var t=-1,r=e==null?0:e.length;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}Ce.prototype.clear=Rs,Ce.prototype.delete=ks,Ce.prototype.get=zs,Ce.prototype.has=Ls,Ce.prototype.set=Ns;var Ws="Expected a function";function xt(e,t){if(typeof e!="function"||t!=null&&typeof t!="function")throw new TypeError(Ws);var r=function(){var n=arguments,o=t?t.apply(this,n):n[0],s=r.cache;if(s.has(o))return s.get(o);var i=e.apply(this,n);return r.cache=s.set(o,i)||s,i};return r.cache=new(xt.Cache||Ce),r}xt.Cache=Ce;var Bs=500;function Hs(e){var t=xt(e,function(n){return r.size===Bs&&r.clear(),n}),r=t.cache;return t}var Us=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,Vs=/\\(\\)?/g,Ys=Hs(function(e){var t=[];return e.charCodeAt(0)===46&&t.push(""),e.replace(Us,function(r,n,o,s){t.push(o?s.replace(Vs,"$1"):n||r)}),t});function qs(e){return e==null?"":Kt(e)}function Gs(e,t){return ue(e)?e:ms(e,t)?[e]:Ys(qs(e))}var Xs=1/0;function Ks(e){if(typeof e=="string"||Ge(e))return e;var t=e+"";return t=="0"&&1/e==-Xs?"-0":t}function Js(e,t){for(var r=-1,n=t.length,o=e.length;++r<n;)e[o+r]=t[r];return e}var mr=hr(Object.getPrototypeOf,Object),Zs="[object Object]",Qs=Function.prototype,ei=Object.prototype,vr=Qs.toString,ti=ei.hasOwnProperty,ri=vr.call(Object);function ni(e){if(!ve(e)||be(e)!=Zs)return!1;var t=mr(e);if(t===null)return!0;var r=ti.call(t,"constructor")&&t.constructor;return typeof r=="function"&&r instanceof r&&vr.call(r)==ri}function oi(){this.__data__=new we,this.size=0}function si(e){var t=this.__data__,r=t.delete(e);return this.size=t.size,r}function ii(e){return this.__data__.get(e)}function ai(e){return this.__data__.has(e)}var ci=200;function li(e,t){var r=this.__data__;if(r instanceof we){var n=r.__data__;if(!Ue||n.length<ci-1)return n.push([e,t]),this.size=++r.size,this;r=this.__data__=new Ce(n)}return r.set(e,t),this.size=r.size,this}function xe(e){var t=this.__data__=new we(e);this.size=t.size}xe.prototype.clear=oi,xe.prototype.delete=si,xe.prototype.get=ii,xe.prototype.has=ai,xe.prototype.set=li;var yr=typeof q=="object"&&q&&!q.nodeType&&q,br=yr&&typeof module=="object"&&module&&!module.nodeType&&module,ui=br&&br.exports===yr,_r=ui?me.Buffer:void 0;_r&&_r.allocUnsafe;function fi(e,t){return e.slice()}function di(e,t){for(var r=-1,n=e==null?0:e.length,o=0,s=[];++r<n;){var i=e[r];t(i,r,e)&&(s[o++]=i)}return s}function pi(){return[]}var hi=Object.prototype,gi=hi.propertyIsEnumerable,wr=Object.getOwnPropertySymbols,mi=wr?function(e){return e==null?[]:(e=Object(e),di(wr(e),function(t){return gi.call(e,t)}))}:pi;function vi(e,t,r){var n=t(e);return ue(e)?n:Js(n,r(e))}function Cr(e){return vi(e,ls,mi)}var Tt=je(me,"DataView"),St=je(me,"Promise"),Pt=je(me,"Set"),xr="[object Map]",yi="[object Object]",Tr="[object Promise]",Sr="[object Set]",Pr="[object WeakMap]",$r="[object DataView]",bi=Ee(Tt),_i=Ee(Ue),wi=Ee(St),Ci=Ee(Pt),xi=Ee(mt),$e=be;(Tt&&$e(new Tt(new ArrayBuffer(1)))!=$r||Ue&&$e(new Ue)!=xr||St&&$e(St.resolve())!=Tr||Pt&&$e(new Pt)!=Sr||mt&&$e(new mt)!=Pr)&&($e=function(e){var t=be(e),r=t==yi?e.constructor:void 0,n=r?Ee(r):"";if(n)switch(n){case bi:return $r;case _i:return xr;case wi:return Tr;case Ci:return Sr;case xi:return Pr}return t});var et=me.Uint8Array;function Ti(e){var t=new e.constructor(e.byteLength);return new et(t).set(new et(e)),t}function Si(e,t){var r=Ti(e.buffer);return new e.constructor(r,e.byteOffset,e.length)}function Pi(e){return typeof e.constructor=="function"&&!bt(e)?to(mr(e)):{}}var $i="__lodash_hash_undefined__";function Di(e){return this.__data__.set(e,$i),this}function Ei(e){return this.__data__.has(e)}function tt(e){var t=-1,r=e==null?0:e.length;for(this.__data__=new Ce;++t<r;)this.add(e[t])}tt.prototype.add=tt.prototype.push=Di,tt.prototype.has=Ei;function ji(e,t){for(var r=-1,n=e==null?0:e.length;++r<n;)if(t(e[r],r,e))return!0;return!1}function Oi(e,t){return e.has(t)}var Fi=1,Ai=2;function Dr(e,t,r,n,o,s){var i=r&Fi,a=e.length,c=t.length;if(a!=c&&!(i&&c>a))return!1;var u=s.get(e),f=s.get(t);if(u&&f)return u==t&&f==e;var p=-1,h=!0,b=r&Ai?new tt:void 0;for(s.set(e,t),s.set(t,e);++p<a;){var g=e[p],x=t[p];if(n)var j=i?n(x,g,p,t,e,s):n(g,x,p,e,t,s);if(j!==void 0){if(j)continue;h=!1;break}if(b){if(!ji(t,function(F,A){if(!Oi(b,A)&&(g===F||o(g,F,r,n,s)))return b.push(A)})){h=!1;break}}else if(!(g===x||o(g,x,r,n,s))){h=!1;break}}return s.delete(e),s.delete(t),h}function Mi(e){var t=-1,r=Array(e.size);return e.forEach(function(n,o){r[++t]=[o,n]}),r}function Ri(e){var t=-1,r=Array(e.size);return e.forEach(function(n){r[++t]=n}),r}var Ii=1,ki=2,zi="[object Boolean]",Li="[object Date]",Ni="[object Error]",Wi="[object Map]",Bi="[object Number]",Hi="[object RegExp]",Ui="[object Set]",Vi="[object String]",Yi="[object Symbol]",qi="[object ArrayBuffer]",Gi="[object DataView]",Er=Pe?Pe.prototype:void 0,$t=Er?Er.valueOf:void 0;function Xi(e,t,r,n,o,s,i){switch(r){case Gi:if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case qi:return!(e.byteLength!=t.byteLength||!s(new et(e),new et(t)));case zi:case Li:case Bi:return We(+e,+t);case Ni:return e.name==t.name&&e.message==t.message;case Hi:case Vi:return e==t+"";case Wi:var a=Mi;case Ui:var c=n&Ii;if(a||(a=Ri),e.size!=t.size&&!c)return!1;var u=i.get(e);if(u)return u==t;n|=ki,i.set(e,t);var f=Dr(a(e),a(t),n,o,s,i);return i.delete(e),f;case Yi:if($t)return $t.call(e)==$t.call(t)}return!1}var Ki=1,Ji=Object.prototype,Zi=Ji.hasOwnProperty;function Qi(e,t,r,n,o,s){var i=r&Ki,a=Cr(e),c=a.length,u=Cr(t),f=u.length;if(c!=f&&!i)return!1;for(var p=c;p--;){var h=a[p];if(!(i?h in t:Zi.call(t,h)))return!1}var b=s.get(e),g=s.get(t);if(b&&g)return b==t&&g==e;var x=!0;s.set(e,t),s.set(t,e);for(var j=i;++p<c;){h=a[p];var F=e[h],A=t[h];if(n)var H=i?n(A,F,h,t,e,s):n(F,A,h,e,t,s);if(!(H===void 0?F===A||o(F,A,r,n,s):H)){x=!1;break}j||(j=h=="constructor")}if(x&&!j){var G=e.constructor,Y=t.constructor;G!=Y&&"constructor"in e&&"constructor"in t&&!(typeof G=="function"&&G instanceof G&&typeof Y=="function"&&Y instanceof Y)&&(x=!1)}return s.delete(e),s.delete(t),x}var ea=1,jr="[object Arguments]",Or="[object Array]",rt="[object Object]",ta=Object.prototype,Fr=ta.hasOwnProperty;function ra(e,t,r,n,o,s){var i=ue(e),a=ue(t),c=i?Or:$e(e),u=a?Or:$e(t);c=c==jr?rt:c,u=u==jr?rt:u;var f=c==rt,p=u==rt,h=c==u;if(h&&Je(e)){if(!Je(t))return!1;i=!0,f=!1}if(h&&!f)return s||(s=new xe),i||Ct(e)?Dr(e,t,r,n,o,s):Xi(e,t,c,r,n,o,s);if(!(r&ea)){var b=f&&Fr.call(e,"__wrapped__"),g=p&&Fr.call(t,"__wrapped__");if(b||g){var x=b?e.value():e,j=g?t.value():t;return s||(s=new xe),o(x,j,r,n,s)}}return h?(s||(s=new xe),Qi(e,t,r,n,o,s)):!1}function Ar(e,t,r,n,o){return e===t?!0:e==null||t==null||!ve(e)&&!ve(t)?e!==e&&t!==t:ra(e,t,r,n,Ar,o)}function na(e){return function(t,r,n){for(var o=-1,s=Object(t),i=n(t),a=i.length;a--;){var c=i[++o];if(r(s[c],c,s)===!1)break}return t}}var oa=na(),Dt=function(){return me.Date.now()},sa="Expected a function",ia=Math.max,aa=Math.min;function ca(e,t,r){var n,o,s,i,a,c,u=0,f=!1,p=!1,h=!0;if(typeof e!="function")throw new TypeError(sa);t=Zt(t)||0,ie(r)&&(f=!!r.leading,p="maxWait"in r,s=p?ia(Zt(r.maxWait)||0,t):s,h="trailing"in r?!!r.trailing:h);function b(z){var I=n,O=o;return n=o=void 0,u=z,i=e.apply(O,I),i}function g(z){return u=z,a=setTimeout(F,t),f?b(z):i}function x(z){var I=z-c,O=z-u,$=t-I;return p?aa($,s-O):$}function j(z){var I=z-c,O=z-u;return c===void 0||I>=t||I<0||p&&O>=s}function F(){var z=Dt();if(j(z))return A(z);a=setTimeout(F,x(z))}function A(z){return a=void 0,h&&n?b(z):(n=o=void 0,i)}function H(){a!==void 0&&clearTimeout(a),u=0,n=c=o=a=void 0}function G(){return a===void 0?i:A(Dt())}function Y(){var z=Dt(),I=j(z);if(n=arguments,o=this,c=z,I){if(a===void 0)return g(c);if(p)return clearTimeout(a),a=setTimeout(F,t),b(c)}return a===void 0&&(a=setTimeout(F,t)),i}return Y.cancel=H,Y.flush=G,Y}function Et(e,t,r){(r!==void 0&&!We(e[t],r)||r===void 0&&!(t in e))&&yt(e,t,r)}function la(e){return ve(e)&&Ke(e)}function jt(e,t){if(!(t==="constructor"&&typeof e[t]=="function")&&t!="__proto__")return e[t]}function ua(e){return mo(e,gr(e))}function fa(e,t,r,n,o,s,i){var a=jt(e,r),c=jt(t,r),u=i.get(c);if(u){Et(e,r,u);return}var f=s?s(a,c,r+"",e,t,i):void 0,p=f===void 0;if(p){var h=ue(c),b=!h&&Je(c),g=!h&&!b&&Ct(c);f=c,h||b||g?ue(a)?f=a:la(a)?f=no(a):b?(p=!1,f=fi(c)):g?(p=!1,f=Si(c)):f=[]:ni(c)||_t(c)?(f=a,_t(a)?f=ua(a):(!ie(a)||oe(a))&&(f=Pi(c))):p=!1}p&&(i.set(c,f),o(f,c,n,s,i),i.delete(c)),Et(e,r,f)}function Mr(e,t,r,n,o){e!==t&&oa(t,function(s,i){if(o||(o=new xe),ie(s))fa(e,t,i,r,Mr,n,o);else{var a=n?n(jt(e,i),s,i+"",e,t,o):void 0;a===void 0&&(a=s),Et(e,i,a)}},gr)}var da="[object String]";function Rr(e){return typeof e=="string"||!ue(e)&&ve(e)&&be(e)==da}var pa="[object Boolean]";function Ot(e){return e===!0||e===!1||ve(e)&&be(e)==pa}function nt(e,t){return Ar(e,t)}var ha="[object Number]";function ga(e){return typeof e=="number"||ve(e)&&be(e)==ha}function Ir(e){return e==null}function ma(e){return e===null}var De=wo(function(e,t,r){Mr(e,t,r)});function va(e,t,r,n){if(!ie(e))return e;t=Gs(t,e);for(var o=-1,s=t.length,i=s-1,a=e;a!=null&&++o<s;){var c=Ks(t[o]),u=r;if(c==="__proto__"||c==="constructor"||c==="prototype")return e;if(o!=i){var f=a[c];u=void 0,u===void 0&&(u=ie(f)?f:vt(t[o+1])?[]:{})}rr(a,c,u),a=a[c]}return e}function kr(e,t,r){return e==null?e:va(e,t,r)}function ya(e){const{inherit:t=!0}=e,{extendActionsProps:r}=Br();return{actionsProps:{...De(De({items:[],max:10},t?r:{}),e)}}}function zr(e){return"component"in e}function ba(e){return"render"in e}function _a(e){const{type:t,disabled:r,items:n,max:o}=e,s=n.map(a=>{const c={...a};return zr(c)&&(c.componentProps={type:t,disabled:r,...c.componentProps}),c}),i=ga(o)&&o>=0;return{showActionItems:s.slice(0,i?o:s.length),ellipsisActionItems:s.slice(i?o:s.length)}}const wa=e=>{const{componentProps:t}=e,r=()=>{const{...n}=t;return n};return m.jsx(M.Button,{...r()})},Ca=e=>{const{componentProps:t}=e,n=(()=>{const{dropDownItems:o,onClick:s,...i}=t;return i})();return m.jsx(M.Dropdown,{disabled:n.disabled,menu:{items:(t==null?void 0:t.dropDownItems)||[],onClick:t==null?void 0:t.onClick},trigger:["click"],children:m.jsx("div",{children:m.jsxs(M.Button,{...n,children:[n.children,m.jsx(ye.CaretDownOutlined,{})]})})})},ot=new Map;ot.set("Button",wa),ot.set("Dropdown",Ca);function Lr(){const{setExtendActionsComp:e}=Br();return e(ot),{renderContent:d.useCallback((r,n)=>{const o=zr(r),s=ba(r);if(o){const i=ot.get(r.component);return m.jsx(i,{...r},n)}return s?m.jsx("div",{children:r.render},n):null},[])}}const Nr=d.createContext({}),xa=e=>{const{extendProps:t,extendComp:r}=e.value;return m.jsx(Nr.Provider,{value:{extendProps:t,extendComp:r},children:e.children})},Ve=()=>d.useContext(Nr),Wr=e=>{const[t,r]=d.useState(e),n=d.useRef(null);return d.useEffect(()=>{n.current&&(n.current(),n.current=null)},[t]),[t,s=>new Promise((i,a)=>{r(c=>{const u=typeof s=="function"?s(c):s;return n.current=i,u})})]},Br=()=>{const{extendProps:e,extendComp:t}=Ve(),r=n=>{const o=t==null?void 0:t.actions;o&&Object.keys(o).forEach(s=>{n.set(s,o[s])})};return{extendActionsProps:e==null?void 0:e.actions,setExtendActionsComp:r}},{useToken:Ta}=M.theme,Sa=({items:e,actionsProps:t})=>{const{type:r,disabled:n}=t,{renderContent:o}=Lr(),{token:s}=Ta(),i={backgroundColor:s.colorBgElevated,borderRadius:s.borderRadiusLG,boxShadow:s.boxShadowSecondary},a=()=>m.jsx("div",{style:i,children:m.jsx(M.Space,{style:{padding:8},children:e==null?void 0:e.map((c,u)=>o(c,u))})});return m.jsx(M.Dropdown,{disabled:n,menu:{items:[]},dropdownRender:a,trigger:["click"],children:m.jsxs(M.Button,{type:r,children:["更多",m.jsx(ye.CaretDownOutlined,{})]})})},st=e=>{const{actionsProps:t}=ya(e),{showActionItems:r,ellipsisActionItems:n}=_a(t),{renderContent:o}=Lr();return t!=null&&t.render?t.render:m.jsxs(d.Fragment,{children:[r==null?void 0:r.map((s,i)=>o(s,i)),n!=null&&n.length?m.jsx(Sa,{actionsProps:t,items:n}):null]})};function Pa(e){const{okText:t,cancelText:r,onCancel:n,onOk:o,okProps:s,cancelProps:i}=e;return{footerActions:{max:2,items:[{component:"Button",componentProps:{...i,children:r,onClick:n}},{component:"Button",componentProps:{type:"primary",...s,children:t,onClick:o}}]}}}const $a=e=>{const{extendDialogProps:t}=Da(),r={width:700,okText:"确定",cancelText:"取消",getPopperContainer:()=>document.body};return{dialogProps:{...De(De(r,t),e)},baseDialogProps:r}},Da=()=>{const{extendProps:e}=Ve();return{extendDialogProps:e==null?void 0:e.dialog}},Ea=(e,t)=>{const{onOpen:r,onClose:n}=e;return{open:()=>new Promise(i=>{t(!0).finally(()=>{i()}),r&&r()}),close:()=>{t(!1),n&&n()}}},ja=({initWidth:e,initHeight:t,setDialogChangeRecord:r})=>{const[n,o]=d.useState(e.current),[s,i]=d.useState(t.current);return{dialogWidth:n,dialogHeight:s,setDialogSize:({width:c,height:u})=>{r({width:n,height:s}),c!==void 0&&o(c),u!==void 0&&i(u)}}},Oa=({initLeft:e,initTop:t,setDialogChangeRecord:r})=>{const[n,o]=d.useState(e.current),[s,i]=d.useState(t.current);return{dialogLeft:n,dialogTop:s,setDialogPosition:({left:c,top:u})=>{r({left:n,top:s}),c!==void 0&&o(c),u!==void 0&&i(u)}}},Hr=({container:e,dialogHeaderRef:t,dialogRef:r,setDialogPosition:n})=>{const o=d.useRef(0),s=d.useRef(0),i=f=>{const p=f.getBoundingClientRect(),h=p.width,b=p.height,g=-.5*h,x=-.5*b;return{translateX:g,translateY:x}},a=d.useCallback(f=>{const{offsetLeft:p,offsetTop:h}=r.current;o.current=f.clientX-p,s.current=f.clientY-h,document.addEventListener("mousemove",c),document.addEventListener("mouseup",u)},[]),c=d.useCallback(f=>{const p=r.current,{translateX:h,translateY:b}=i(p);let g=f.clientX-o.current,x=f.clientY-s.current;const j=-h,F=-b,A=e.scrollWidth-p.offsetWidth-h,H=e.scrollHeight-p.offsetHeight-b;g<j&&(g=j),g>A&&(g=A),x<F&&(x=F),x>H&&(x=H),n({left:g,top:x})},[]),u=d.useCallback(()=>{document.removeEventListener("mousemove",c),document.removeEventListener("mouseup",u)},[]);return d.useEffect(()=>{const f=t.current;return f.addEventListener("mousedown",a),()=>{f.removeEventListener("mousedown",a)}},[]),{}},Fa=({container:e,dialogChangeRecord:t,close:r,setDialogSize:n,setDialogPosition:o})=>{const[s,i]=d.useState(!1),[a,c]=d.useState(!1);return{minimizeVisible:s,maximizeVisible:a,onMinimize:()=>{i(!0)},onMaximize:b=>{if(b==="minimize"&&i(!1),b==="maximize"){const{scrollWidth:g,scrollHeight:x}=e,j=Math.floor(g),F=Math.floor(x),A=Math.floor(g/2),H=Math.floor(x/2);n({width:j,height:F}),o({top:H,left:A}),c(!0)}},onRecovery:()=>{const{top:b,left:g,width:x,height:j}=t.current;n({width:x,height:j}),o({top:b,left:g}),c(!1)},onClose:()=>{i(!1),c(!1),r()}}},Aa=({visible:e,container:t,dialogHeight:r,dialogRef:n,dialogHeaderRef:o,dialogFooterRef:s})=>{const[i,a]=d.useState("unset");return d.useEffect(()=>{var c,u,f;if(e){const{clientHeight:b}=t,g=(c=o.current)==null?void 0:c.offsetHeight,x=(u=s.current)==null?void 0:u.offsetHeight;let F=((f=n.current)==null?void 0:f.getBoundingClientRect().height)-g-x-0;const A=b-g-x-0;F>A&&(F=A),a(F)}},[e,r]),{contentMaxHeight:i,setContentMaxHeight:a}},Ma=()=>{const[e,t]=d.useState(160),[r,n]=d.useState(60),o=d.useRef(null);return{minimizeTop:r,minimizeLeft:e,minimizeRef:o,setMinimizePosition:({left:i,top:a})=>{i!==void 0&&t(i),a!==void 0&&n(a)}}},Ra=({visible:e,dialogRef:t,minimizeRef:r,container:n})=>{const o={xphDialog:"xph--dialog",xphDialogWrapper:"xph--dialog--wrapper",xphMinimizeDialog:"xph--dialog--minimize"},s=(a,c)=>{console.log("触发插入"),a.querySelector(`.${o.xphDialogWrapper}`).style.opacity="unset",a.querySelector(`.${o.xphMinimizeDialog}`).style.opacity="unset",c.querySelector(`.${o.xphDialogWrapper}`).style.opacity=.7,c.querySelector(`.${o.xphMinimizeDialog}`).style.opacity=.7;const u=document.createElement("div");u.style.visibility="hidden",c.parentNode.insertBefore(u,c.nextSibling),c.parentNode.insertBefore(a,u),c.parentNode.removeChild(u)},i=a=>{var f,p;const c=n.querySelectorAll(`.${o.xphDialog}`),u=c[c.length-1];if(((f=t.current)==null?void 0:f.parentNode)!==u&&(s((p=t.current)==null?void 0:p.parentNode,u),a)){const h=a.target;h.tagName==="INPUT"&&h.focus&&h.focus()}};return d.useEffect(()=>{var a,c;return(a=t.current)==null||a.addEventListener("mousedown",i,!1),(c=r.current)==null||c.addEventListener("mousedown",i,!1),()=>{var u,f;(u=t.current)==null||u.removeEventListener("mousedown",i,!1),(f=r.current)==null||f.removeEventListener("mousedown",i,!1)}},[]),d.useEffect(()=>{if(e)i();else{const a=Array.from(n.querySelectorAll(`.${o.xphDialog}`)),c=a.map(h=>h.querySelector(`.${o.xphDialogWrapper}`)).filter(h=>h!==null),u=a.map(h=>h.querySelector(`.${o.xphMinimizeDialog}`)).filter(h=>h!==null),f=c.filter(h=>h.style.display==="flex"),p=u.filter(h=>h.style.display==="flex");if(f.length){s(f[f.length-1].parentNode,a[a.length-1]);return}if(p.length){s(p[p.length-1].parentNode,a[a.length-1]);return}}},[e]),{dialogTopShowClassConfig:o}},Ia=({initWidth:e,initHeight:t,initLeft:r,initTop:n,curPropsWidth:o,curPropsHeight:s,setDialogSize:i,setDialogPosition:a})=>{d.useEffect(()=>{o!==e.current&&(console.log("重新设置了宽度"),i({width:o})),s!==t.current&&(console.log("重新设置了高度"),i({height:s}))},[o,s]),d.useEffect(()=>{o!==e.current&&(console.log("重新设置了左边位置"),a({left:r.current})),s!==t.current&&(console.log("重新设置了上边位置"),a({top:n.current}))},[o,s])},ka=()=>{const e=d.useRef({left:0,top:0,width:0,height:0});return{dialogChangeRecord:e,setDialogChangeRecord:({left:r,top:n,width:o,height:s})=>{const{left:i,top:a,width:c,height:u}=e.current;e.current={left:r??i,top:n??a,width:o??c,height:s??u}}}},za=({container:e,dialogRef:t,minResizeRecord:r,setDialogSize:n,setDialogPosition:o})=>{const s=d.useCallback(()=>m.jsx("div",{ref:i,style:{position:"absolute",border:"4px dashed #ccc",display:"none"}}),[]),i=d.useRef(null),a=d.useRef(),c=d.useRef(!1),[u,f]=d.useState(!1),p=d.useRef(0),h=d.useRef(0),b=(I,O)=>{c.current=!0,f(!0),a.current=O;const{clientX:$,clientY:C}=I;p.current=$,h.current=C;const T=parseFloat(t.current.style.left),L=parseFloat(t.current.style.top),W=t.current.offsetWidth,_=t.current.offsetHeight;i.current.style.display="block",i.current.style.left=`${T-.5*W}px`,i.current.style.top=`${L-.5*_}px`,i.current.style.width=`${W}px`,i.current.style.height=`${_}px`},g=I=>{if(c.current){const{clientX:O,clientY:$}=I,C=O-p.current,T=$-h.current,L=parseFloat(i.current.style.left),W=parseFloat(i.current.style.top),_=i.current.offsetWidth,y=i.current.offsetHeight,w=r.current.width,D=r.current.height,S=e.scrollWidth,k=e.scrollHeight;let P=_,R=y,B=L,U=W;switch(a.current){case"lt":{P=P-C,R=R-T,U=U+T,B=B+C,P<w&&(P=_,B=L),R<D&&(R=y,U=W),B<0&&(B=0,P=_),U<0&&(U=0,R=y);break}case"rt":{P=P+C,R=R-T,U=U+T,B=L,P<w&&(P=_),R<D&&(R=y,U=W),P>S-B&&(P=S-B),U<0&&(U=0,R=y);break}case"rb":{P=P+C,R=R+T,U=W,B=L,P<w&&(P=_),R<D&&(R=y),P>S-B&&(P=S-B),R>k-U&&(R=k-U);break}case"lb":{P=P-C,R=R+T,U=W,B=B+C,P<w&&(P=_,B=L),R<D&&(R=y),B<0&&(B=0,P=_),R>k-U&&(R=k-U);break}}i.current.style.left=`${B}px`,i.current.style.top=`${U}px`,i.current.style.width=`${P}px`,i.current.style.height=`${R}px`,p.current=O,h.current=$}},x=()=>{if(c.current){c.current=!1,f(!1),i.current.style.display="none";const{left:I,top:O,width:$,height:C}=i.current.style,T=parseFloat(I)+.5*parseFloat($),L=parseFloat(O)+.5*parseFloat(C),W=parseFloat($),_=parseFloat(C);o({left:T,top:L}),n({width:W,height:_})}},j=I=>b(I,"lt"),F=I=>b(I,"rt"),A=I=>b(I,"rb"),H=I=>b(I,"lb"),G=d.useCallback(I=>{g(I)},[]),Y=d.useCallback(()=>{x()},[]),z=d.useCallback(()=>{x()},[]);return d.useEffect(()=>(document.body.addEventListener("mousemove",G),document.body.addEventListener("mouseup",Y),document.body.addEventListener("mouseleave",z),()=>{document.body.removeEventListener("mousemove",G),document.body.removeEventListener("mouseup",Y),document.body.removeEventListener("mouseleave",z)}),[]),{resizingState:u,DashedBox:s,onMousedownResizeLt:j,onMousedownResizeRt:F,onMousedownResizeRb:A,onMousedownResizeLb:H}},La=({visible:e,container:t,dialogRef:r,dialogProps:n,baseDialogProps:o})=>{const[s,i]=d.useState(0),a=()=>{i(I=>I+1)};d.useEffect(()=>{const I=new ResizeObserver(a);return I.observe(t),()=>{I.unobserve(t),I.disconnect()}},[t]);const{width:c,height:u}=o,{width:f,height:p}=n,h=f||c,b=p||u,{clientWidth:g,clientHeight:x}=t,j=h?h>g?g:h:0,F=b?b>x?x:b:"unset",A=d.useRef(j),H=d.useRef(F),G=d.useRef(Math.floor(g/2)),Y=d.useRef(Math.floor(x/2)),z=d.useRef(null);return d.useEffect(()=>{if(A.current=j,H.current=F,G.current=Math.floor(g/2),Y.current=Math.floor(x/2),e){const I=r.current.offsetWidth,O=r.current.offsetHeight;z.current={width:I,height:O}}},[s]),{parentResizeRecord:s,initLeft:G,initTop:Y,initWidth:A,initHeight:H,curPropsWidth:j,curPropsHeight:F,minResizeRecord:z}},Na=({visible:e,initWidth:t,initHeight:r,initLeft:n,initTop:o,minResizeRecord:s,dialogRef:i,setDialogSize:a,setDialogPosition:c})=>{d.useEffect(()=>{e||(a({width:t.current,height:r.current}),c({left:n.current,top:o.current}))},[e]),d.useEffect(()=>{if(e){const u=i.current.offsetWidth,f=i.current.offsetHeight;s.current={width:u,height:f}}else s.current=null},[e])},Ft={"minimize-windows":"_minimize-windows_12u3y_1","minimize-windows-title":"_minimize-windows-title_12u3y_43","minimize-windows-operate":"_minimize-windows-operate_12u3y_55"},Wa=({onClick:e})=>m.jsx(M.Button,{type:"link",onClick:e,icon:m.jsx(ye.ShrinkOutlined,{style:{fontSize:"22px",cursor:"pointer"}})}),Ur=({onClick:e})=>m.jsx(M.Button,{type:"link",onClick:e,icon:m.jsx(ye.FullscreenOutlined,{style:{fontSize:"22px",cursor:"pointer"}})}),Ba=({onClick:e})=>m.jsx(M.Button,{type:"link",onClick:e,icon:m.jsx(ye.FullscreenExitOutlined,{style:{fontSize:"22px",cursor:"pointer"}})}),Vr=({onClick:e})=>m.jsx(M.Button,{type:"link",onClick:e,icon:m.jsx(ye.CloseOutlined,{style:{fontSize:"22px",cursor:"pointer"}})}),{useToken:Ha}=M.theme,Ua=d.forwardRef(({title:e,left:t,top:r,visible:n,onMaximize:o,onClosesquare:s,className:i},a)=>{const{token:c}=Ha(),u={borderRadius:c.borderRadiusLG};return m.jsxs("div",{style:{display:n?"flex":"none",left:t,top:r,...u},className:`${Ft["minimize-windows"]} ${i}`,ref:a,children:[m.jsx("div",{className:Ft["minimize-windows-title"],title:e,children:e}),m.jsxs("div",{className:Ft["minimize-windows-operate"],children:[m.jsx(Ur,{onClick:o}),m.jsx(Vr,{onClick:s})]})]})}),ce={"xph-dialog-mask":"_xph-dialog-mask_18f3p_1","xph-dialog-wrapper":"_xph-dialog-wrapper_18f3p_23",dialog__header:"_dialog__header_18f3p_49","dialog__header-btns":"_dialog__header-btns_18f3p_67",dialog__main:"_dialog__main_18f3p_75",dialog__footer:"_dialog__footer_18f3p_89",dialog__resize:"_dialog__resize_18f3p_103","dialog__resize-lt":"_dialog__resize-lt_18f3p_117","dialog__resize-rt":"_dialog__resize-rt_18f3p_129","dialog__resize-rb":"_dialog__resize-rb_18f3p_141","dialog__resize-lb":"_dialog__resize-lb_18f3p_153"},{useToken:Va}=M.theme,Ya=d.forwardRef((e,t)=>{console.log("render Dialog==============================================");const{token:r}=Va(),n={borderRadius:r.borderRadiusLG},{children:o,baseDialogProps:s,mask:i,title:a,renderFooter:c,renderTitle:u,getPopperContainer:f}=e,p=f(),[h,b]=Wr(!1),{footerActions:g}=Pa(e),{open:x,close:j}=Ea(e,b),F=d.useRef(null),A=d.useRef(null),H=d.useRef(null),G=d.useRef(null),{parentResizeRecord:Y,initLeft:z,initTop:I,initWidth:O,initHeight:$,curPropsWidth:C,curPropsHeight:T,minResizeRecord:L}=La({visible:h,container:p,dialogRef:F,dialogProps:e,baseDialogProps:s}),{dialogChangeRecord:W,setDialogChangeRecord:_}=ka(),{dialogWidth:y,dialogHeight:w,setDialogSize:D}=ja({initWidth:O,initHeight:$,setDialogChangeRecord:_}),{dialogLeft:S,dialogTop:k,setDialogPosition:P}=Oa({initLeft:z,initTop:I,setDialogChangeRecord:_}),{contentMaxHeight:R}=Aa({visible:h,container:p,dialogHeight:w,dialogRef:F,dialogHeaderRef:A,dialogFooterRef:G}),{minimizeLeft:B,minimizeTop:U,minimizeRef:ee,setMinimizePosition:se}=Ma(),{minimizeVisible:fe,maximizeVisible:de,onMaximize:pe,onMinimize:he,onRecovery:te,onClose:le}=Fa({container:p,dialogChangeRecord:W,close:j,setDialogSize:D,setDialogPosition:P}),_e=ca(()=>{D({width:O.current,height:$.current}),P({left:z.current,top:I.current})},300);d.useEffect(()=>{_e()},[Y]),Na({visible:h,initWidth:O,initHeight:$,initLeft:z,initTop:I,minResizeRecord:L,dialogRef:F,setDialogSize:D,setDialogPosition:P}),Ia({initWidth:O,initHeight:$,initLeft:z,initTop:I,curPropsWidth:C,curPropsHeight:T,setDialogSize:D,setDialogPosition:P}),Hr({container:p,dialogHeaderRef:A,dialogRef:F,setDialogPosition:P}),Hr({container:p,dialogHeaderRef:ee,dialogRef:ee,setDialogPosition:se});const{dialogTopShowClassConfig:Ye}=Ra({visible:h,container:p,dialogRef:F,minimizeRef:ee}),{resizingState:Ae,DashedBox:Me,onMousedownResizeLt:lt,onMousedownResizeRt:ut,onMousedownResizeRb:Re,onMousedownResizeLb:It}=za({container:p,dialogRef:F,minResizeRecord:L,setDialogSize:D,setDialogPosition:P});return d.useImperativeHandle(t,()=>({open:x,close:le})),m.jsxs("div",{className:Ye.xphDialog,children:[i?m.jsx("div",{className:ce["xph-dialog-mask"],style:{display:h?"block":"none",width:p.scrollWidth,height:p.scrollHeight}}):null,m.jsx(Ua,{visible:fe,className:`${Ye.xphMinimizeDialog}`,ref:ee,left:B,top:U,title:a,onMaximize:()=>pe("minimize"),onClosesquare:le}),m.jsxs("div",{ref:F,className:`${ce["xph-dialog-wrapper"]} ${Ye.xphDialogWrapper}`,style:{display:h&&!fe?"flex":"none",left:S,top:k,width:y,height:w,opacity:Ae?.2:"unset",...n},children:[m.jsxs("div",{ref:A,className:ce.dialog__header,children:[m.jsx("div",{children:u?u():a}),m.jsxs("div",{className:ce["dialog__header-btns"],children:[m.jsx(Wa,{onClick:he}),de?m.jsx(Ba,{onClick:te}):m.jsx(Ur,{onClick:()=>pe("maximize")}),m.jsx(Vr,{onClick:le})]})]}),m.jsx("div",{ref:H,className:ce.dialog__main,style:{maxHeight:R},children:h?o:null}),c?m.jsx("div",{ref:G,children:c()}):m.jsx("div",{ref:G,className:ce.dialog__footer,children:m.jsx(st,{...g})}),m.jsx("div",{className:`${ce.dialog__resize} ${ce["dialog__resize-lt"]}`,onMouseDown:lt}),m.jsx("div",{className:`${ce.dialog__resize} ${ce["dialog__resize-rt"]}`,onMouseDown:ut}),m.jsx("div",{className:`${ce.dialog__resize} ${ce["dialog__resize-rb"]}`,onMouseDown:Re}),m.jsx("div",{className:`${ce.dialog__resize} ${ce["dialog__resize-lb"]}`,onMouseDown:It})]}),m.jsx(Me,{})]})}),qa=(e,t)=>{const{children:r,...n}=e,{baseDialogProps:o,dialogProps:s}=$a(n),{getPopperContainer:i}=s;return console.log("render XphDialog=============================================="),m.jsx(qr,{getPopperContainer:i,children:m.jsx(Ya,{...s,baseDialogProps:o,ref:t,children:r})})},Yr=d.forwardRef(qa),qr=({children:e,getPopperContainer:t})=>{const[r,n]=d.useState(null);return d.useEffect(()=>{const o=t();n(o)},[]),r?hn.createPortal(e,r):null};function At(e){return"component"in e}function Mt(e){return"render"in e}function Ga(e){return e.includes("Input")||e.includes("Complete")?"请输入":e.includes("Picker")||e.includes("Select")||e.includes("Cascader")||e.includes("Checkbox")||e.includes("Radio")||e.includes("Switch")?"请选择":""}function Xa(e,t,r){["DatePicker","MonthPicker","WeekPicker","TimePicker"].includes(t)?e.type=r?"string":"object":["RangePicker","Upload","CheckboxGroup","TimePicker"].includes(t)?e.type="array":["InputNumber"].includes(t)&&(e.type="number")}const Ka=["DatePicker","MonthPicker","RangePicker","WeekPicker","TimePicker"],Ja=e=>{const{show:t,ifShow:r,required:n,disabled:o,componentProps:s}=e;return!!(oe(t)||oe(r)||oe(n)||oe(o)||oe(s)||Mt(e))},Za=e=>["application/json","application/javascript","text/plain","text/html","text/css"].includes(e)?`${e}; charset=utf-8`:e,Qa=(e,t,r)=>{const n=d.useRef(null),o=d.useRef(null),{handleCollapseChangeFalse:s}=r.current||{},{show:i,ifShow:a}=e;let c=!0,u=!0;if(Ot(i)&&(c=i),Ot(a)&&(u=a),oe(i)){c=i({model:t});const f=Ir(n.current)?c:n.current;d.useEffect(()=>{nt(c,f)||s&&s()},[t])}if(oe(a)){u=a({model:t});const f=Ir(o.current)?u:o.current;d.useEffect(()=>{nt(u,f)||s&&s()},[t])}return n.current=c,o.current=u,{isShow:c,isIfShow:u}},ec=(e,t)=>{const{collapsible:r,collapseNum:n}=e,[o,s]=d.useState(!!(r&&t>=n));return{itemCollapse:o,setItemCollapse:s}},tc=({item:e,model:t,isShow:r,componentProps:n})=>{const{rules:o=[],label:s,required:i}=e;let a=o;const c=At(e),u=c?Ga(e.component)+s:"";function f(g,x){const j=g.message||u;return x===void 0||ma(x)||Array.isArray(x)&&x.length===0||typeof x=="string"&&x.trim()===""||typeof x=="object"&&Reflect.has(x,"checked")&&Reflect.has(x,"halfChecked")&&Array.isArray(x.checked)&&Array.isArray(x.halfChecked)&&x.checked.length===0&&x.halfChecked.length===0?Promise.reject(j):Promise.resolve()}const p=oe(i)?i({model:t}):i;p&&(!a||a.length===0?a=[{required:p,validator:f}]:a.findIndex(x=>Reflect.has(x,"required"))===-1&&a.push({required:p,validator:f}));const h=a.findIndex(g=>Reflect.has(g,"required")&&!Reflect.has(g,"validator"));if(h!==-1){const g=a[h];if(r||(g.required=!1),c){const{component:x}=e;Reflect.has(g,"type")||(g.type=x==="InputNumber"?"number":"string"),g.message=g.message||u,(x.includes("Input")||x.includes("Textarea"))&&(g.whitespace=!0);const j=n.valueFormat;Xa(g,x,j)}}const b=a.findIndex(g=>g.max);return b!==-1&&!a[b].validator&&(a[b].message=a[b].message||`字符数应小于${a[b].max}位`),{rules:a}},rc=(e,t,r)=>{const{disabled:n}=e;let o=!1;const{disabled:s}=t;return oe(s)&&(o=s({model:r})),Ot(s)&&(o=s),{disabled:Reflect.has(t,"disabled")?o:n}},nc=(e,t)=>{const r={},{componentProps:n={}}=e;return oe(n)&&Object.assign(r,n({model:t})),Object.assign(r,n),{componentProps:r}},oc=(e,t)=>{const{colProps:r={}}=e,{colProps:n={span:24}}=t;return{colProps:{...n,...r}}},sc=({formProps:e})=>{const{items:t}=e;return{formItems:t.map(n=>({...n}))}},ic=(e,t)=>{const r=a=>(Object.keys(a).forEach(c=>{Object.defineProperty(a,c,{value:a[c],writable:!1,enumerable:!0,configurable:!1})}),a),n={};e.items.forEach(a=>{n[a.name]=a.initialValue});const o=Ja(t),s=o?M.Form.useWatch(a=>r(a)):null;return{rewritingModel:d.useMemo(()=>s||r(n),[s]),isusewatch:o}},ac=()=>{const e=d.useRef(null);function t(n){e.current=n}const r={getFieldsValue:(...n)=>{if(!e.current)throw new Error("表单还没初始化完成");return e.current.getFieldsValue(...n)},setFieldsValue:(...n)=>{if(!e.current)throw new Error("表单还没初始化完成");return e.current.setFieldsValue(...n)},resetFields:(...n)=>{if(!e.current)throw new Error("表单还没初始化完成");return e.current.resetFields(...n)},validator:(...n)=>{if(!e.current)throw new Error("表单还没初始化完成");return e.current.validator(...n)},scrollToField:(...n)=>{if(!e.current)throw new Error("表单还没初始化完成");return e.current.scrollToField(...n)}};return d.useEffect(()=>(console.log("ParentComponent is mounted====================================="),()=>{console.log("ParentComponent is unmounted===================================="),e.current=null}),[]),[t,r]};var Gr={exports:{}};(function(e,t){(function(r,n){e.exports=n()})(gn,function(){var r=1e3,n=6e4,o=36e5,s="millisecond",i="second",a="minute",c="hour",u="day",f="week",p="month",h="quarter",b="year",g="date",x="Invalid Date",j=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,F=/\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,A={name:"en",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),ordinal:function(_){var y=["th","st","nd","rd"],w=_%100;return"["+_+(y[(w-20)%10]||y[w]||y[0])+"]"}},H=function(_,y,w){var D=String(_);return!D||D.length>=y?_:""+Array(y+1-D.length).join(w)+_},G={s:H,z:function(_){var y=-_.utcOffset(),w=Math.abs(y),D=Math.floor(w/60),S=w%60;return(y<=0?"+":"-")+H(D,2,"0")+":"+H(S,2,"0")},m:function _(y,w){if(y.date()<w.date())return-_(w,y);var D=12*(w.year()-y.year())+(w.month()-y.month()),S=y.clone().add(D,p),k=w-S<0,P=y.clone().add(D+(k?-1:1),p);return+(-(D+(w-S)/(k?S-P:P-S))||0)},a:function(_){return _<0?Math.ceil(_)||0:Math.floor(_)},p:function(_){return{M:p,y:b,w:f,d:u,D:g,h:c,m:a,s:i,ms:s,Q:h}[_]||String(_||"").toLowerCase().replace(/s$/,"")},u:function(_){return _===void 0}},Y="en",z={};z[Y]=A;var I="$isDayjsObject",O=function(_){return _ instanceof L||!(!_||!_[I])},$=function _(y,w,D){var S;if(!y)return Y;if(typeof y=="string"){var k=y.toLowerCase();z[k]&&(S=k),w&&(z[k]=w,S=k);var P=y.split("-");if(!S&&P.length>1)return _(P[0])}else{var R=y.name;z[R]=y,S=R}return!D&&S&&(Y=S),S||!D&&Y},C=function(_,y){if(O(_))return _.clone();var w=typeof y=="object"?y:{};return w.date=_,w.args=arguments,new L(w)},T=G;T.l=$,T.i=O,T.w=function(_,y){return C(_,{locale:y.$L,utc:y.$u,x:y.$x,$offset:y.$offset})};var L=function(){function _(w){this.$L=$(w.locale,null,!0),this.parse(w),this.$x=this.$x||w.x||{},this[I]=!0}var y=_.prototype;return y.parse=function(w){this.$d=function(D){var S=D.date,k=D.utc;if(S===null)return new Date(NaN);if(T.u(S))return new Date;if(S instanceof Date)return new Date(S);if(typeof S=="string"&&!/Z$/i.test(S)){var P=S.match(j);if(P){var R=P[2]-1||0,B=(P[7]||"0").substring(0,3);return k?new Date(Date.UTC(P[1],R,P[3]||1,P[4]||0,P[5]||0,P[6]||0,B)):new Date(P[1],R,P[3]||1,P[4]||0,P[5]||0,P[6]||0,B)}}return new Date(S)}(w),this.init()},y.init=function(){var w=this.$d;this.$y=w.getFullYear(),this.$M=w.getMonth(),this.$D=w.getDate(),this.$W=w.getDay(),this.$H=w.getHours(),this.$m=w.getMinutes(),this.$s=w.getSeconds(),this.$ms=w.getMilliseconds()},y.$utils=function(){return T},y.isValid=function(){return this.$d.toString()!==x},y.isSame=function(w,D){var S=C(w);return this.startOf(D)<=S&&S<=this.endOf(D)},y.isAfter=function(w,D){return C(w)<this.startOf(D)},y.isBefore=function(w,D){return this.endOf(D)<C(w)},y.$g=function(w,D,S){return T.u(w)?this[D]:this.set(S,w)},y.unix=function(){return Math.floor(this.valueOf()/1e3)},y.valueOf=function(){return this.$d.getTime()},y.startOf=function(w,D){var S=this,k=!!T.u(D)||D,P=T.p(w),R=function(he,te){var le=T.w(S.$u?Date.UTC(S.$y,te,he):new Date(S.$y,te,he),S);return k?le:le.endOf(u)},B=function(he,te){return T.w(S.toDate()[he].apply(S.toDate("s"),(k?[0,0,0,0]:[23,59,59,999]).slice(te)),S)},U=this.$W,ee=this.$M,se=this.$D,fe="set"+(this.$u?"UTC":"");switch(P){case b:return k?R(1,0):R(31,11);case p:return k?R(1,ee):R(0,ee+1);case f:var de=this.$locale().weekStart||0,pe=(U<de?U+7:U)-de;return R(k?se-pe:se+(6-pe),ee);case u:case g:return B(fe+"Hours",0);case c:return B(fe+"Minutes",1);case a:return B(fe+"Seconds",2);case i:return B(fe+"Milliseconds",3);default:return this.clone()}},y.endOf=function(w){return this.startOf(w,!1)},y.$set=function(w,D){var S,k=T.p(w),P="set"+(this.$u?"UTC":""),R=(S={},S[u]=P+"Date",S[g]=P+"Date",S[p]=P+"Month",S[b]=P+"FullYear",S[c]=P+"Hours",S[a]=P+"Minutes",S[i]=P+"Seconds",S[s]=P+"Milliseconds",S)[k],B=k===u?this.$D+(D-this.$W):D;if(k===p||k===b){var U=this.clone().set(g,1);U.$d[R](B),U.init(),this.$d=U.set(g,Math.min(this.$D,U.daysInMonth())).$d}else R&&this.$d[R](B);return this.init(),this},y.set=function(w,D){return this.clone().$set(w,D)},y.get=function(w){return this[T.p(w)]()},y.add=function(w,D){var S,k=this;w=Number(w);var P=T.p(D),R=function(ee){var se=C(k);return T.w(se.date(se.date()+Math.round(ee*w)),k)};if(P===p)return this.set(p,this.$M+w);if(P===b)return this.set(b,this.$y+w);if(P===u)return R(1);if(P===f)return R(7);var B=(S={},S[a]=n,S[c]=o,S[i]=r,S)[P]||1,U=this.$d.getTime()+w*B;return T.w(U,this)},y.subtract=function(w,D){return this.add(-1*w,D)},y.format=function(w){var D=this,S=this.$locale();if(!this.isValid())return S.invalidDate||x;var k=w||"YYYY-MM-DDTHH:mm:ssZ",P=T.z(this),R=this.$H,B=this.$m,U=this.$M,ee=S.weekdays,se=S.months,fe=S.meridiem,de=function(te,le,_e,Fe){return te&&(te[le]||te(D,k))||_e[le].slice(0,Fe)},pe=function(te){return T.s(R%12||12,te,"0")},he=fe||function(te,le,_e){var Fe=te<12?"AM":"PM";return _e?Fe.toLowerCase():Fe};return k.replace(F,function(te,le){return le||function(_e){switch(_e){case"YY":return String(D.$y).slice(-2);case"YYYY":return T.s(D.$y,4,"0");case"M":return U+1;case"MM":return T.s(U+1,2,"0");case"MMM":return de(S.monthsShort,U,se,3);case"MMMM":return de(se,U);case"D":return D.$D;case"DD":return T.s(D.$D,2,"0");case"d":return String(D.$W);case"dd":return de(S.weekdaysMin,D.$W,ee,2);case"ddd":return de(S.weekdaysShort,D.$W,ee,3);case"dddd":return ee[D.$W];case"H":return String(R);case"HH":return T.s(R,2,"0");case"h":return pe(1);case"hh":return pe(2);case"a":return he(R,B,!0);case"A":return he(R,B,!1);case"m":return String(B);case"mm":return T.s(B,2,"0");case"s":return String(D.$s);case"ss":return T.s(D.$s,2,"0");case"SSS":return T.s(D.$ms,3,"0");case"Z":return P}return null}(te)||P.replace(":","")})},y.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},y.diff=function(w,D,S){var k,P=this,R=T.p(D),B=C(w),U=(B.utcOffset()-this.utcOffset())*n,ee=this-B,se=function(){return T.m(P,B)};switch(R){case b:k=se()/12;break;case p:k=se();break;case h:k=se()/3;break;case f:k=(ee-U)/6048e5;break;case u:k=(ee-U)/864e5;break;case c:k=ee/o;break;case a:k=ee/n;break;case i:k=ee/r;break;default:k=ee}return S?k:T.a(k)},y.daysInMonth=function(){return this.endOf(p).$D},y.$locale=function(){return z[this.$L]},y.locale=function(w,D){if(!w)return this.$L;var S=this.clone(),k=$(w,D,!0);return k&&(S.$L=k),S},y.clone=function(){return T.w(this.$d,this)},y.toDate=function(){return new Date(this.valueOf())},y.toJSON=function(){return this.isValid()?this.toISOString():null},y.toISOString=function(){return this.$d.toISOString()},y.toString=function(){return this.$d.toUTCString()},_}(),W=L.prototype;return C.prototype=W,[["$ms",s],["$s",i],["$m",a],["$H",c],["$W",u],["$M",p],["$y",b],["$D",g]].forEach(function(_){W[_[1]]=function(y){return this.$g(y,_[0],_[1])}}),C.extend=function(_,y){return _.$i||(_(y,L,C),_.$i=!0),C},C.locale=$,C.isDayjs=O,C.unix=function(_){return C(1e3*_)},C.en=z[Y],C.Ls=z,C.p={},C})})(Gr);var cc=Gr.exports;const it=mn(cc);function lc(e,t={}){const r=/^\[(.+)\]$/;if(r.test(e)){const n=e.match(r);if(n&&n[1]){const o=n[1].split(",");if(!o.length)return;const s=[];return o.forEach((i,a)=>{kr(s,a,t[i.trim()])}),s.filter(Boolean).length?s:void 0}}}function uc(e,t={}){const r=/^\{(.+)\}$/;if(r.test(e)){const n=e.match(r);if(n&&n[1]){const o=n[1].split(",");if(!o.length)return;const s={};return o.forEach(i=>{kr(s,i.trim(),t[i.trim()])}),Object.values(s).filter(Boolean).length?s:void 0}}}function fc(e,t){const r=t.fieldMapToTime;if(!r||!Array.isArray(r))return e;for(const[n,[o,s],i="YYYY-MM-DD"]of r){if(!n||!o||!s)continue;if(!e[n]){Reflect.deleteProperty(e,n);continue}const[a,c]=e[n],[u,f]=Array.isArray(i)?i:[i,i];e[o]=it(a).format(u),e[s]=it(c).format(f),Reflect.deleteProperty(e,n)}return e}const dc=(e,t,r)=>{const n=e.filter(i=>i.name);return{handleFormatRenderValues:i=>{const a={},c=[];return n.forEach(u=>{const f=Reflect.has(i,u.name),p=lc(u.name,i)||uc(u.name,i);if(f||p){const h=p||i[u.name];if(At(u))if(Ka.includes(u.component)){if(ue(h)){const b=[];for(const g of h)b.push(g?it(g):null);a[u.name]=b}else a[u.name]=h?it(h):null;c.push(u.name)}else a[u.name]=h,c.push(u.name);Mt(u)&&(a[u.name]=h,c.push(u.name))}}),{renderValues:a,validKeys:c}},handleFormatReturnValues:i=>{var c,u,f,p,h;if(!ie(i))return{};const a={};for(const b of Object.entries(i)){let[,g]=b;const[x]=b;if(!x||ue(g)&&g.length===0||oe(g))continue;const{transformDateFunc:j}=t,F=(f=(u=(c=r.current)==null?void 0:c.get(x))==null?void 0:u.current)==null?void 0:f.componentProps,A=F==null?void 0:F.valueFormat;if(ie(g)){const H=g;H.format&&(g=j==null?void 0:j(H,A))}ue(g)&&((p=g[0])!=null&&p.format)&&((h=g[1])!=null&&h.format)&&(g=g.map(H=>j==null?void 0:j(H,A))),Rr(g)&&(g===""?g=void 0:g=g.trim()),a[x]=g}return fc(a,t)}}},pc=(e,t,r)=>({getFieldsValue:(...c)=>r(e.getFieldsValue(...c)),setFieldsValue:c=>{const{renderValues:u,validKeys:f}=t(c);e.setFieldsValue(u),e.validateFields(f)},resetFields:async()=>e.resetFields(),validator:async c=>e.validateFields(c).then(u=>r(u)),scrollToField:async(c,u)=>e.scrollToField(c,u)}),hc=e=>{const{extendFormProps:t}=Xr();return{formProps:{...De(De({collapseNum:5,colon:!1,items:[],labelWrap:!0,transformDateFunc:(o,s)=>{var i;return((i=o==null?void 0:o.format)==null?void 0:i.call(o,s||"YYYY-MM-DD HH:mm:ss"))??o},fieldMapToTime:[]},t),e)}}},at=e=>{const{immediate:t=!0,params:r,api:n,apiCallback:o,isUseWatch:s}=e,i=d.useRef(!0),a=d.useRef(r),c=()=>{n&&oe(n)&&(r?n(r).then(o):n().then(o),a.current=r)};return d.useEffect(()=>{i.current&&(t&&c(),i.current=!1),!i.current&&s&&(nt(r,a.current)||t&&c())},[r]),{getApiData:c}},gc=(e,t)=>{const{collapsible:r,collapseNum:n}=e,o=d.useRef();return{collapsible:r,collapseNum:n,collapseRef:o,onClickCollapseToTrue:()=>{var a;(a=t.current)==null||a.forEach(c=>{if(c.current){const{itemIndex:u}=c.current;u>=n&&r&&c.current.setItemCollapse(!0)}})},onClickCollapseToFalse:()=>{var a;(a=t.current)==null||a.forEach(c=>{if(c.current){const{itemCollapse:u}=c.current;u&&c.current.setItemCollapse(!1)}})}}},Xr=()=>{const{extendProps:e,extendComp:t}=Ve(),r=n=>{const o=t==null?void 0:t.form;o&&Object.keys(o).forEach(s=>{n.set(s,o[s])})};return{extendFormProps:e==null?void 0:e.form,setExtendFormComp:r}},mc=e=>{console.log("render ApiSelect");const{api:t,params:r,immediate:n=!0,isusewatch:o,onDropdownVisibleChange:s}=e,i=o==="true",[a,c]=d.useState([]),{getApiData:u}=at({api:t,immediate:n,params:r,apiCallback:c,isUseWatch:i}),f=h=>{h&&!n&&u(),s&&s(h)},p=()=>{const{api:h,params:b,immediate:g,isusewatch:x,...j}=e;return j};return m.jsx(M.Select,{...p(),options:a,onDropdownVisibleChange:f})},vc=e=>{console.log("render ApiTreeSelect");const{api:t,params:r,immediate:n=!0,isusewatch:o,onDropdownVisibleChange:s}=e,i=o==="true",[a,c]=d.useState([]),{getApiData:u}=at({api:t,immediate:n,params:r,apiCallback:c,isUseWatch:i}),f=h=>{h&&!n&&u(),s&&s(h)},p=()=>{const{api:h,params:b,immediate:g,isusewatch:x,...j}=e;return j};return m.jsx(M.TreeSelect,{...p(),treeData:a,onDropdownVisibleChange:f})},yc=e=>{console.log("render ApiTransfer");const{api:t,params:r,isusewatch:n}=e,o=n==="true",[s,i]=d.useState([]);at({api:t,params:r,apiCallback:i,isUseWatch:o});const a=()=>{const{api:c,params:u,isusewatch:f,...p}=e;return p};return m.jsx(M.Transfer,{...a(),dataSource:s})},bc=e=>{console.log("render ApiAutoComplete");const{api:t,params:r,immediate:n=!0,isusewatch:o,onDropdownVisibleChange:s}=e,i=o==="true",[a,c]=d.useState([]),{getApiData:u}=at({api:t,immediate:n,params:r,apiCallback:c,isUseWatch:i}),f=h=>{h&&!n&&u(),s&&s(h)},p=()=>{const{api:h,params:b,immediate:g,isusewatch:x,...j}=e;return j};return m.jsx(M.AutoComplete,{...p(),options:a,onDropdownVisibleChange:f})},Te={String:"String","String[]":"String[]","File[]":"File[]",FileList:"FileList"},_c=e=>{console.log("render AutoUpload"),console.log(dt());const t="",{api:r,maxCount:n=1,maxSize:o=2,listType:s="picture-card",openCrop:i=!1,data:a,returnType:c=Te.String,value:u=t,onChange:f}=e,p=d.useRef(!0),h=d.useRef(0),b=d.useRef([]),[g,x]=d.useState([]),j=O=>{b.current=O,x([...O])},F=()=>{const{api:O,maxCount:$,maxSize:C,openCrop:T,beforeUpload:L,fileList:W,returnType:_,...y}=e;return y},A=O=>{const $=O.size/1024/1024<o;$||M.message.error(`文件大小超过:${o}M, 请重试`);const C=b.current.length+h.current<n;return C||M.message.error(`文件数量不能超过${n}个`),$&&C&&h.current++,$&&C&&H(O),M.Upload.LIST_IGNORE},H=O=>{i?(M.message.error("暂时不支持裁剪功能,后续兼容。。。。"),G({file:O})):G({file:O})},G=O=>{r?r({file:O.file,...a}).then($=>{j([...b.current,...$])}).finally(()=>{h.current--}):(Object.assign(O.file,{status:"done",url:URL.createObjectURL(new Blob([O.file],{type:Za(O.file.type)}))}),j([...b.current,O.file]),h.current--)},Y=O=>{const{file:$,fileList:C}=O,{status:T}=$;switch(T){case"removed":{j([...C]);break}}},z=O=>{const $=T=>{const L=T.split("/"),W=L[L.length-1],[_]=W.split("?");return _};return{uid:(T=>{const L=b.current.find(W=>W.url===T);return L?L.uid:dt()})(O),name:$(O),url:O,status:"done"}},I=()=>{switch(c){case Te.String:return g.map(O=>O.url).join(",");case Te["String[]"]:return g.map(O=>O.url);case Te["File[]"]:return[...g];case Te.FileList:return[...g]}};return d.useEffect(()=>{const O=I();if(nt(O,u))return;let $=[];switch(c){case Te.String:{$=(u||"").split(",").filter(C=>C).map(C=>z(C));break}case Te["String[]"]:{$=(u||[]).map(C=>z(C));break}case Te["File[]"]:{$=(u||[]).map(C=>C);break}case Te.FileList:{$=(u||[]).map(C=>C);break}}j($)},[u]),d.useEffect(()=>{if(p.current){p.current=!1;return}const O=I();f==null||f(O)},[g]),m.jsx(M.Upload,{listType:s,...F(),fileList:g,beforeUpload:A,onChange:Y,children:"上传"})},J=new Map;J.set("Input",M.Input),J.set("ApiSelect",mc),J.set("Select",M.Select),J.set("InputNumber",M.InputNumber),J.set("ApiTreeSelect",vc),J.set("TreeSelect",M.TreeSelect),J.set("ApiTransfer",yc),J.set("Transfer",M.Transfer),J.set("Switch",M.Switch),J.set("Button",M.Button),J.set("Radio",M.Radio),J.set("RadioGroup",M.Radio.Group),J.set("Checkbox",M.Checkbox),J.set("CheckboxGroup",M.Checkbox.Group),J.set("Cascader",M.Cascader),J.set("TimePicker",M.TimePicker),J.set("DatePicker",M.DatePicker),J.set("MonthPicker",M.DatePicker.MonthPicker),J.set("WeekPicker",M.DatePicker.WeekPicker),J.set("RangePicker",M.DatePicker.RangePicker),J.set("InputPassword",M.Input.Password),J.set("InputTextArea",M.Input.TextArea),J.set("ApiAutoComplete",bc),J.set("AutoComplete",M.AutoComplete),J.set("Upload",M.Upload),J.set("AutoUpload",_c);const Kr={"form-item-force":"_form-item-force_1hsf3_1","form-item-hidden":"_form-item-hidden_1hsf3_9"},wc=d.forwardRef(({itemIndex:e,itemProps:t,methods:r,formProps:n,collapseRef:o},s)=>{console.log("render FormItem",t.name);const{rewritingModel:i,isusewatch:a}=ic(n,t),{isIfShow:c,isShow:u}=Qa(t,i,o),{colProps:f}=oc(t,n),{componentProps:p}=nc(t,i),{rules:h}=tc({item:t,model:i,isShow:u,componentProps:p}),{disabled:b}=rc(n,t,i),{itemCollapse:g,setItemCollapse:x}=ec(n,e),{name:j,label:F,wrapperCol:A,labelCol:H,valuePropName:G,initialValue:Y,forceRow:z}=t;d.useImperativeHandle(s,()=>({itemIndex:e,componentProps:p,itemCollapse:g,setItemCollapse:x}));const I=()=>({name:j,label:F,rules:h,wrapperCol:A,labelCol:H,valuePropName:G,initialValue:Y}),{setExtendFormComp:O}=Xr();O(J);const $=At(t),C=Mt(t),T=()=>{if($){const L=J.get(t.component);return m.jsx(L,{...p,disabled:b,isusewatch:a.toString()})}return C?t.render({model:i,name:j,disabled:b,methods:r,componentProps:p}):null};return m.jsxs(d.Fragment,{children:[z?m.jsx("div",{className:Kr["form-item-force"]}):null,c?m.jsx(M.Col,{...f,className:u&&!g?void 0:Kr["form-item-hidden"],children:m.jsx(M.Form.Item,{...I(),children:T()})}):null]})}),Cc={"collapse-wrapper":"_collapse-wrapper_ylm01_1"},xc=d.forwardRef(({collapsible:e,onClickExpand:t,onClickFold:r},n)=>{const[o,s]=d.useState(e),i=d.useMemo(()=>o,[o]),a=()=>{r(),s(!0)},c=()=>{t(),s(!1)};return d.useImperativeHandle(n,()=>({handleCollapseChangeFalse:c})),m.jsx("div",{className:Cc["collapse-wrapper"],children:i?m.jsx(M.Button,{onClick:c,type:"link",icon:m.jsx(ye.DownOutlined,{}),children:"展开"}):m.jsx(M.Button,{onClick:a,type:"link",icon:m.jsx(ye.UpOutlined,{}),children:"折叠"})})}),Tc={"group-wrapper":"_group-wrapper_g8zqi_1"},Sc=({formProps:e})=>{const{renderActions:t}=e;return m.jsx("div",{className:Tc["group-wrapper"],children:t==null?void 0:t()})},Pc={"xph-form-action":"_xph-form-action_8ws73_1"},$c=(e,t)=>{console.log("render Form");const[r]=M.Form.useForm(),{formProps:n}=hc(e),{formItems:o}=sc({formProps:n}),s=d.useRef(new Map),{collapsible:i,collapseNum:a,collapseRef:c,onClickCollapseToFalse:u,onClickCollapseToTrue:f}=gc(n,s),{handleFormatRenderValues:p,handleFormatReturnValues:h}=dc(o,n,s),{setFieldsValue:b,getFieldsValue:g,resetFields:x,validator:j,scrollToField:F}=pc(r,p,h),A=()=>{const{layout:G,wrapperCol:Y,labelCol:z,colon:I,disabled:O,labelWrap:$,labelAlign:C,scrollToFirstError:T,size:L}=n;return{layout:G,wrapperCol:Y,labelCol:z,colon:I,disabled:O,labelWrap:$,labelAlign:C,scrollToFirstError:T,size:L}},H={setFieldsValue:b,getFieldsValue:g,resetFields:x,validator:j,scrollToField:F};return d.useImperativeHandle(t,()=>({...H})),d.useEffect(()=>(console.log("Form is mounted======================="),n.register&&n.register(H),()=>{console.log("Form is unmounted========================="),s.current.clear()}),[]),m.jsxs(M.Form,{form:r,...A(),children:[m.jsx(M.Row,{children:o.map((G,Y)=>(s.current.has(G.name)||s.current.set(G.name,d.createRef()),m.jsx(wc,{ref:s.current.get(G.name),itemIndex:Y,itemProps:G,formProps:n,methods:H,collapseRef:c},Y)))}),m.jsxs("div",{className:Pc["xph-form-action"],children:[m.jsx(Sc,{formProps:n}),i?m.jsx(xc,{ref:c,collapsible:o.length>a,onClickExpand:u,onClickFold:f}):null]})]})},Rt=d.forwardRef($c),Dc=d.memo(Rt),Ec=d.forwardRef((e,t)=>{const{renderActions:r,showSearch:n,tableRef:o}=e,[s,i]=d.useState(!1),a=d.useRef(null),c=()=>{const{reloadData:h}=o.current;h()},u=()=>{const{resetData:h}=o.current;h()},f=d.useCallback(()=>m.jsxs("div",{style:{width:"100%",display:"flex"},children:[m.jsx("div",{style:{flex:1,width:0},children:r==null?void 0:r()}),n&&m.jsxs("div",{style:{display:"flex",gap:"8px"},children:[m.jsx(M.Button,{type:"primary",icon:m.jsx(ye.SearchOutlined,{}),onClick:c,children:"搜索"}),m.jsx(M.Button,{icon:m.jsx(ye.ReloadOutlined,{}),onClick:u,children:"重置"})]})]}),[n,r]),p=()=>{const{renderActions:h,...b}=e;return{...b,renderActions:f}};return d.useImperativeHandle(t,()=>({setFormLoading:i,...a.current})),m.jsx(M.Spin,{spinning:s,children:m.jsx(Dc,{ref:a,...p()})})}),jc=d.memo(Rt),Oc=(e,t)=>{const r=d.useRef(null),n=d.useRef(null),{formProps:o}=e,s=()=>{const{formProps:i,...a}=e;return a};return d.useImperativeHandle(t,()=>({open:i=>r.current.open().then(()=>{i&&n.current.setFieldsValue(i)}),close:(...i)=>r.current.close(...i),getFieldsValue:(...i)=>n.current.getFieldsValue(...i),setFieldsValue:(...i)=>n.current.setFieldsValue(...i),resetFields:(...i)=>n.current.resetFields(...i),validator:(...i)=>n.current.validator(...i),scrollToField:(...i)=>n.current.scrollToField(...i)})),m.jsx(Yr,{...s(),ref:r,children:m.jsx(jc,{...o,ref:n})})},Jr=d.forwardRef(Oc);function Fc({searchForm:e}){return{searchFormRef:d.useRef(null),searchFormProps:e}}function Ac(e){return"cellFunc"in e}function Mc(e){return"children"in e}const{useToken:Rc}=M.theme,Ic=(e,t,r)=>{const{curComponentProps:n,cellFuncProps:o}=t,{url:s,onClick:i}=n,{token:a}=Rc(),c={color:a.colorLink,cursor:"pointer"},u=()=>{if(r.mainClick&&r.mainClick(),i){i();return}if(s){window.open(s,"_blank");return}};return m.jsx(e,{...r,mainClick:u,mainStyle:Object.assign(c,(r==null?void 0:r.mainStyle)||{})})},kc={"cellfunc-actions":"_cellfunc-actions_14drt_1"},Zr={link:{Comp:Ic},actions:{Comp:(e,t,r)=>{const{curComponentProps:n,cellFuncProps:o}=t;return m.jsx("div",{className:kc["cellfunc-actions"],children:m.jsx(st,{...n})})}}},zc=(e,t)=>{const{renderPrams:{text:r}}=e;return m.jsx("span",{onClick:t==null?void 0:t.mainClick,style:t==null?void 0:t.mainStyle,children:r})},Lc=e=>{const{setExtendTableCellComp:t}=en();t(Zr);const{dslConfig:r}=e;let n=zc.bind(null,e),o=0;for(;o<r.length;){const s=o++,i=Zr[r[s].component];i&&(n=i.Comp.bind(null,n,{curComponentProps:r[s].componentProps||{},cellFuncProps:e}))}return m.jsx(n,{})};function Qr(e){return e.map(t=>{let r={...t};if(Ac(r)){const{cellFunc:n,...o}=r;r={...o,render:(...s)=>{const i=oe(n),[a,c,u]=s,f={text:a,record:c,index:u},p=i?n(f):n;return m.jsx(Lc,{dslConfig:p,renderPrams:f})}}}return Mc(r)&&r.children&&Array.isArray(r.children)&&(r.children=Qr(r.children)),r})}function Nc(e){const{columns:t}=e.table,r=Qr(t);return console.log(r),{columns:r}}const Wc=e=>{const{extendTableProps:t}=en();return{tableProps:{...De(De({table:{columns:[],fullHeight:!1,autoRequest:!0,pagination:{pageSize:20,total:0,showTotal:o=>`共:${o} 条`,current:1,pageSizeOptions:[10,20,50,100],showSizeChanger:!0,showQuickJumper:!0},requestFields:{pageSize:"pageSize",current:"current"},responseFields:{current:"current",list:"data",total:"total"}},crudFormDialog:void 0,searchForm:{showSearch:!0,items:[]}},t),e)}}};function Bc(e){const{pagination:t,autoPagination:r}=e.table,[n,o]=d.useState(t),s=d.useRef(t),i=d.useMemo(()=>n&&(r===!0||r===void 0)||!1,[n]);return{pagination:{model:n,update:c=>{if(!s.current)return;const u={...s.current,...c};o(u),s.current=u},show:i},lastPaginationState:s}}function Hc(e,t){const{api:r,formatDataSource:n,autoPagination:o,onChange:s,requestFields:i,responseFields:a}=e.table,c=e.onPaginationChange,{pagination:u,lastPaginationState:f}=Bc(e),[p,h]=d.useState({loading:!1,dataSource:[],selection:[],backupsDataSource:[]}),b=d.useRef({loading:!1,dataSource:[],selection:[],backupsDataSource:[]}),g={model:p,update:$=>{var T;const C={...b.current,...$};h(C),b.current=C,(T=t.current)==null||T.setFormLoading(C.loading)}},x=async()=>{d.useEffect(()=>{const{autoRequest:$}=e.table,{validator:C}=t.current;$&&C().then(T=>{H({searchFormParams:T})})},[])},j=async({searchFormParams:$,paginationParams:C})=>{const T={...$,[`${i.current}`]:f.current.current,[`${i.pageSize}`]:f.current.pageSize,...C?{[`${i.current}`]:C.current,[`${i.pageSize}`]:C.pageSize}:{}};return r(T).then(L=>{const{current:W,list:_,total:y}=pt(a,L);g.update({dataSource:n?n(_):_}),u.update({total:y,current:W})}).finally(()=>{g.update({loading:!1})})},F=async({searchFormParams:$,paginationParams:C})=>{const T={...$};return r(T).then(L=>{const{list:W}=pt(a,L),_=n?n(W):W;g.update({selection:[],dataSource:_}),u.update({current:1,total:W.length})}).finally(()=>{g.update({loading:!1})})},A=async({searchFormParams:$,paginationParams:C})=>{var L;const T={...$};if(C){const{current:W,pageSize:_}=C;u.update({current:W,pageSize:_});const y=(W-1)*_,w=y+_,D=(L=b.current.backupsDataSource)==null?void 0:L.slice(y,w);return g.update({loading:!1,selection:[],dataSource:D})}else return r(T).then(W=>{let _=n?n(W):W;const y=[..._],w=0,D=w+f.current.pageSize;_=_.slice(w,D),g.update({selection:[],dataSource:_,backupsDataSource:y}),u.update({current:1,total:W.length})}).finally(()=>{g.update({loading:!1})})},H=async({searchFormParams:$,paginationParams:C})=>{if(g.update({loading:!0,selection:[]}),r)switch(!!f.current){case!0:return o===!0?A({searchFormParams:$,paginationParams:C}):o===!1?F({searchFormParams:$,paginationParams:C}):j({searchFormParams:$,paginationParams:C});case!1:return F({searchFormParams:$,paginationParams:C})}return g.update({loading:!1})};return{table:g,pagination:u,firstGetTableData:x,onPaginationChange:($,C)=>{const{validator:T}=t.current;T().then(L=>{H({searchFormParams:L,paginationParams:{current:$,pageSize:C}})}),c&&c($,C)},onAllChange:async(...$)=>{const[C,T,L,W]=$,_=[];for(let y=0;y<_.length&&!_[y]();y++);s&&s(T,L,W)},resetData:async()=>{const{resetFields:$,validator:C}=t.current;return $().then(async()=>{const T=await C();return H({searchFormParams:T})})},resetAllData:async()=>{const{resetFields:$,validator:C}=t.current;return $().then(async()=>{const T={};if(f.current){const{pageSize:L}=f.current;o===void 0&&(T.paginationParams={current:1,pageSize:L})}return T.searchFormParams=await C(),H(T)})},reloadData:async()=>{const{validator:$}=t.current;return $().then(C=>H({searchFormParams:C}))}}}const Uc=(e,t)=>{const{onRowSelectionChange:r}=e,{rowSelection:n}=e.table,o=()=>{if(Rr(n))return{type:n,onChange:(s,i,a)=>{t.update({selection:i}),r&&r(s,i)}};if(ie(n)){const{onChange:s}=n;return{...n,onChange:(i,a,c)=>{t.update({selection:a}),s&&s(i,a,c),r&&r(i,a)}}}return n};return{rowSelection:o(),getNewRowSelection:o}};function Vc(e,t){const{scroll:r,virtual:n}=e.table,o=d.useRef(null),[s,i]=d.useState(0),[a,c]=d.useState(0);d.useEffect(()=>{const f=()=>{o.current&&(i(o.current.offsetWidth),c(o.current.offsetHeight))};f();const p=new ResizeObserver(f);return o.current&&p.observe(o.current),()=>{p&&o.current&&p.unobserve(o.current)}},[]);const u=d.useMemo(()=>t?n?{x:s,y:a-70,...r}:{x:"max-content",y:a-70,...r}:{x:"max-content",...r},[a]);return{divRef:o,scroll:u}}function Yc(e,t){const{toolbar:r}=e.table;return{getTopToolbarBindProps:()=>{if(oe(r)){const o=r({loading:t.model.loading,selection:t.model.selection});return{...o,disabled:t.model.loading||o.disabled}}return{...r,disabled:t.model.loading||(r==null?void 0:r.disabled)}}}}const en=()=>{const{extendProps:e,extendComp:t}=Ve(),r=n=>{const o=t==null?void 0:t.tableCellFunc;o&&Object.keys(o).forEach(s=>{const i=o[s];n[s]={Comp:i}})};return{extendTableProps:e==null?void 0:e.table,setExtendTableCellComp:r}},qc=({crudFormDialog:e})=>({crudFormDialogRef:d.useRef(null),crudFormProps:e}),ct={"main-container":"_main-container_1yx5k_1",container__toolbar:"_container__toolbar_1yx5k_13",container__table:"_container__table_1yx5k_27",container__pagination:"_container__pagination_1yx5k_35"},Gc=d.forwardRef(({tableProps:e,searchFormRef:t,fullHeight:r},n)=>{const{columns:o}=Nc(e),s=d.useRef(null),{table:i,pagination:a,firstGetTableData:c,onPaginationChange:u,onAllChange:f,resetData:p,resetAllData:h,reloadData:b}=Hc(e,t),{rowSelection:g}=Uc(e,i),{divRef:x,scroll:j}=Vc(e,r),{getTopToolbarBindProps:F}=Yc(e,i),A=()=>{const{autoRequest:H,api:G,formatDataSource:Y,autoPagination:z,columns:I,scroll:O,pagination:$,rowSelection:C,onChange:T,...L}=e.table;return L};return c(),d.useImperativeHandle(n,()=>({resetData:p,resetAllData:h,reloadData:b,...s.current})),console.log("render Table"),m.jsxs("div",{className:r?ct["main-container"]:void 0,children:[m.jsx("div",{className:ct.container__toolbar,children:m.jsx(st,{...F()})}),m.jsx("div",{ref:x,className:r?ct.container__table:void 0,children:m.jsx(M.Table,{ref:s,...A(),loading:i.model.loading,columns:o,dataSource:i.model.dataSource,pagination:!1,rowSelection:g,scroll:j,onChange:f})}),a.show?m.jsx("div",{className:ct.container__pagination,children:m.jsx(M.Pagination,{disabled:i.model.loading,...a.model,onChange:u})}):null]})}),tn={"xph-table-full-wrapper":"_xph-table-full-wrapper_mdv0g_1","full-wrapper__table":"_full-wrapper__table_mdv0g_13"},Xc=(e,t)=>{const{tableProps:r}=Wc(e),n=d.useRef(null),{searchFormRef:o,searchFormProps:s}=Fc(r),{crudFormDialogRef:i,crudFormProps:a}=qc(r);let{fullHeight:c}=r.table;const{virtual:u}=r.table;return u&&(c=!0),d.useImperativeHandle(t,()=>({...n.current,...i.current})),m.jsxs("div",{className:c?tn["xph-table-full-wrapper"]:void 0,children:[m.jsx("div",{children:m.jsx(Ec,{ref:o,tableRef:n,...s})}),m.jsx("div",{className:c?tn["full-wrapper__table"]:void 0,children:m.jsx(Gc,{ref:n,searchFormRef:o,fullHeight:c,tableProps:r})}),a?m.jsx(Jr,{ref:i,...a}):null]})},Kc=d.forwardRef(Xc);q.XphActions=st,q.XphCrudFormDialog=Jr,q.XphDialog=Yr,q.XphExtendCompPropsProvider=xa,q.XphForm=Rt,q.XphPortal=qr,q.XphTable=Kc,q.buildUUID=dt,q.getValueByPath=Bt,q.getValuesByPathObj=pt,q.useAsyncState=Wr,q.useXphExtendCompProps=Ve,q.useXphForm=ac,Object.defineProperty(q,Symbol.toStringTag,{value:"Module"})});
@@ -26,3 +26,7 @@ export { default as useDialogChangeRecord } from './useDialogChangeRecord';
26
26
  export * from './useDialogChangeRecord';
27
27
  export { default as useResizeDialog } from './useResizeDialog';
28
28
  export * from './useResizeDialog';
29
+ export { default as useOnContainerSizeChange } from './useOnContainerSizeChange';
30
+ export * from './useOnContainerSizeChange';
31
+ export { default as useOnVisableChange } from './useOnVisableChange';
32
+ export * from './useOnVisableChange';
@@ -1,7 +1,7 @@
1
1
  import { IDialogProps } from '../types';
2
2
 
3
- declare const useDialogActions: (dialogProps: IDialogProps, setVisible: React.Dispatch<React.SetStateAction<boolean>>) => {
4
- open: () => void;
3
+ declare const useDialogActions: (dialogProps: IDialogProps, setVisible: Function) => {
4
+ open: () => Promise<void>;
5
5
  close: () => void;
6
6
  };
7
7
  export default useDialogActions;
@@ -1,7 +1,8 @@
1
1
  import { IDialogChangeRecord } from '../hooks';
2
2
 
3
- declare const useDialogPosition: ({ container, setDialogChangeRecord, }: {
4
- container: HTMLElement;
3
+ declare const useDialogPosition: ({ initLeft, initTop, setDialogChangeRecord, }: {
4
+ initLeft: React.MutableRefObject<number>;
5
+ initTop: React.MutableRefObject<number>;
5
6
  setDialogChangeRecord: ({ left, top, width, height, }: IDialogChangeRecord) => void;
6
7
  }) => {
7
8
  dialogLeft: number;
@@ -1,19 +1,15 @@
1
- import { IDialogProps } from '../types';
2
1
  import { IDialogChangeRecord } from '../hooks';
3
2
 
4
- /**
5
- * @description 首次打开弹窗的时候,限制弹窗的宽高(不得大于弹窗容器可视区域的宽高)
6
- */
7
- declare const useDialogInitSize: (container: HTMLElement, baseDialogProps: IDialogProps, dialogProps: IDialogProps, setDialogChangeRecord: ({ left, top, width, height, }: IDialogChangeRecord) => void) => {
3
+ declare const useDialogInitSize: ({ initWidth, initHeight, setDialogChangeRecord, }: {
4
+ initWidth: React.MutableRefObject<string | number>;
5
+ initHeight: React.MutableRefObject<string | number>;
6
+ setDialogChangeRecord: ({ left, top, width, height, }: IDialogChangeRecord) => void;
7
+ }) => {
8
8
  dialogWidth: string | number;
9
9
  dialogHeight: string | number;
10
- initWidth: import('react').MutableRefObject<string | number>;
11
- initHeight: import('react').MutableRefObject<string | number>;
12
- curPropsWidth: number;
13
- curPropsHeight: string | number;
14
10
  setDialogSize: ({ width: newWidth, height: newHeight, }: {
15
- width?: string | number | undefined;
16
- height?: string | number | undefined;
11
+ width?: number | string;
12
+ height?: number | string;
17
13
  }) => void;
18
14
  };
19
15
  export default useDialogInitSize;
@@ -0,0 +1,22 @@
1
+ import { IDialogProps } from '../types';
2
+
3
+ declare const useOnContainerSizeChange: ({ visible, container, dialogRef, dialogProps, baseDialogProps, }: {
4
+ visible: boolean;
5
+ container: HTMLElement;
6
+ dialogRef: React.RefObject<HTMLDivElement>;
7
+ dialogProps: IDialogProps;
8
+ baseDialogProps: IDialogProps;
9
+ }) => {
10
+ parentResizeRecord: number;
11
+ initLeft: import('react').MutableRefObject<number>;
12
+ initTop: import('react').MutableRefObject<number>;
13
+ initWidth: import('react').MutableRefObject<string | number>;
14
+ initHeight: import('react').MutableRefObject<string | number>;
15
+ curPropsWidth: number;
16
+ curPropsHeight: string | number;
17
+ minResizeRecord: import('react').MutableRefObject<{
18
+ width: number;
19
+ height: number;
20
+ } | null>;
21
+ };
22
+ export default useOnContainerSizeChange;
@@ -1,8 +1,8 @@
1
- declare const useOnPropsSizeChange: ({ visible, container, initWidth, initHeight, curPropsWidth, curPropsHeight, setDialogSize, setDialogPosition, }: {
2
- visible: boolean;
3
- container: HTMLElement;
1
+ declare const useOnPropsSizeChange: ({ initWidth, initHeight, initLeft, initTop, curPropsWidth, curPropsHeight, setDialogSize, setDialogPosition, }: {
4
2
  initWidth: React.MutableRefObject<string | number>;
5
3
  initHeight: React.MutableRefObject<string | number>;
4
+ initLeft: React.MutableRefObject<number>;
5
+ initTop: React.MutableRefObject<number>;
6
6
  curPropsWidth: number | string;
7
7
  curPropsHeight: number | string;
8
8
  setDialogSize: (size: {
@@ -0,0 +1,21 @@
1
+ declare const useOnVisableChange: ({ visible, initWidth, initHeight, initLeft, initTop, minResizeRecord, dialogRef, setDialogSize, setDialogPosition, }: {
2
+ visible: boolean;
3
+ initWidth: React.MutableRefObject<string | number>;
4
+ initHeight: React.MutableRefObject<string | number>;
5
+ initLeft: React.MutableRefObject<number>;
6
+ initTop: React.MutableRefObject<number>;
7
+ minResizeRecord: React.MutableRefObject<{
8
+ width: number;
9
+ height: number;
10
+ } | null>;
11
+ dialogRef: React.RefObject<HTMLDivElement>;
12
+ setDialogSize: (size: {
13
+ width?: number | string;
14
+ height?: number | string;
15
+ }) => void;
16
+ setDialogPosition: (position: {
17
+ left?: number;
18
+ top?: number;
19
+ }) => void;
20
+ }) => void;
21
+ export default useOnVisableChange;