hlyc-web-pack 3.9.2 → 3.9.3

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.
Files changed (2) hide show
  1. package/lib/index.js +1 -1
  2. package/package.json +1 -1
package/lib/index.js CHANGED
@@ -24,7 +24,7 @@ var e,t,n="function"==typeof Symbol?Symbol:{},a=n.iterator||"@@iterator",r=n.toS
24
24
  *
25
25
  * This source code is licensed under the MIT license found in the
26
26
  * LICENSE file in the root directory of this source tree.
27
- */function LD(e){if("object"==typeof e&&null!==e){var t=e.$$typeof;switch(t){case xD:switch(e=e.type){case ND:case OD:case wD:case CD:case kD:case DD:return e;default:switch(e=e&&e.$$typeof){case SD:case PD:case RD:case ID:case ED:return e;default:return t}}case yD:return t}}}function FD(e){return LD(e)===OD}var _D={AsyncMode:ND,ConcurrentMode:OD,ContextConsumer:SD,ContextProvider:ED,Element:xD,ForwardRef:PD,Fragment:wD,Lazy:RD,Memo:ID,Portal:yD,Profiler:CD,StrictMode:kD,Suspense:DD,isAsyncMode:function(e){return FD(e)||LD(e)===ND},isConcurrentMode:FD,isContextConsumer:function(e){return LD(e)===SD},isContextProvider:function(e){return LD(e)===ED},isElement:function(e){return"object"==typeof e&&null!==e&&e.$$typeof===xD},isForwardRef:function(e){return LD(e)===PD},isFragment:function(e){return LD(e)===wD},isLazy:function(e){return LD(e)===RD},isMemo:function(e){return LD(e)===ID},isPortal:function(e){return LD(e)===yD},isProfiler:function(e){return LD(e)===CD},isStrictMode:function(e){return LD(e)===kD},isSuspense:function(e){return LD(e)===DD},isValidElementType:function(e){return"string"==typeof e||"function"==typeof e||e===wD||e===OD||e===CD||e===kD||e===DD||e===TD||"object"==typeof e&&null!==e&&(e.$$typeof===RD||e.$$typeof===ID||e.$$typeof===ED||e.$$typeof===SD||e.$$typeof===PD||e.$$typeof===zD||e.$$typeof===jD||e.$$typeof===AD||e.$$typeof===MD)},typeOf:LD},VD=K(function(e,t){"production"!==process.env.NODE_ENV&&function(){var e="function"==typeof Symbol&&Symbol.for,n=e?Symbol.for("react.element"):60103,a=e?Symbol.for("react.portal"):60106,r=e?Symbol.for("react.fragment"):60107,o=e?Symbol.for("react.strict_mode"):60108,i=e?Symbol.for("react.profiler"):60114,l=e?Symbol.for("react.provider"):60109,c=e?Symbol.for("react.context"):60110,s=e?Symbol.for("react.async_mode"):60111,u=e?Symbol.for("react.concurrent_mode"):60111,d=e?Symbol.for("react.forward_ref"):60112,p=e?Symbol.for("react.suspense"):60113,f=e?Symbol.for("react.suspense_list"):60120,m=e?Symbol.for("react.memo"):60115,h=e?Symbol.for("react.lazy"):60116,g=e?Symbol.for("react.block"):60121,b=e?Symbol.for("react.fundamental"):60117,v=e?Symbol.for("react.responder"):60118,x=e?Symbol.for("react.scope"):60119;function y(e){if("object"==typeof e&&null!==e){var t=e.$$typeof;switch(t){case n:var f=e.type;switch(f){case s:case u:case r:case i:case o:case p:return f;default:var g=f&&f.$$typeof;switch(g){case c:case d:case h:case m:case l:return g;default:return t}}case a:return t}}}var w=s,k=u,C=c,E=l,S=n,N=d,O=r,P=h,D=m,T=a,I=i,R=o,M=p,z=!1;function j(e){return y(e)===u}t.AsyncMode=w,t.ConcurrentMode=k,t.ContextConsumer=C,t.ContextProvider=E,t.Element=S,t.ForwardRef=N,t.Fragment=O,t.Lazy=P,t.Memo=D,t.Portal=T,t.Profiler=I,t.StrictMode=R,t.Suspense=M,t.isAsyncMode=function(e){return z||(z=!0,console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 17+. Update your code to use ReactIs.isConcurrentMode() instead. It has the exact same API.")),j(e)||y(e)===s},t.isConcurrentMode=j,t.isContextConsumer=function(e){return y(e)===c},t.isContextProvider=function(e){return y(e)===l},t.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===n},t.isForwardRef=function(e){return y(e)===d},t.isFragment=function(e){return y(e)===r},t.isLazy=function(e){return y(e)===h},t.isMemo=function(e){return y(e)===m},t.isPortal=function(e){return y(e)===a},t.isProfiler=function(e){return y(e)===i},t.isStrictMode=function(e){return y(e)===o},t.isSuspense=function(e){return y(e)===p},t.isValidElementType=function(e){return"string"==typeof e||"function"==typeof e||e===r||e===u||e===i||e===o||e===p||e===f||"object"==typeof e&&null!==e&&(e.$$typeof===h||e.$$typeof===m||e.$$typeof===l||e.$$typeof===c||e.$$typeof===d||e.$$typeof===b||e.$$typeof===v||e.$$typeof===x||e.$$typeof===g)},t.typeOf=y}()}),KD=K(function(e){"production"===process.env.NODE_ENV?e.exports=_D:e.exports=VD}),HD=Object.getOwnPropertySymbols,BD=Object.prototype.hasOwnProperty,$D=Object.prototype.propertyIsEnumerable;var UD=function(){try{if(!Object.assign)return!1;var e=new String("abc");if(e[5]="de","5"===Object.getOwnPropertyNames(e)[0])return!1;for(var t={},n=0;n<10;n++)t["_"+String.fromCharCode(n)]=n;var a=Object.getOwnPropertyNames(t).map(function(e){return t[e]});if("0123456789"!==a.join(""))return!1;var r={};return"abcdefghijklmnopqrst".split("").forEach(function(e){r[e]=e}),"abcdefghijklmnopqrst"===Object.keys(Object.assign({},r)).join("")}catch(e){return!1}}()?Object.assign:function(e,t){for(var n,a,r=function(e){if(null==e)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(e)}(e),o=1;o<arguments.length;o++){for(var i in n=Object(arguments[o]))BD.call(n,i)&&(r[i]=n[i]);if(HD){a=HD(n);for(var l=0;l<a.length;l++)$D.call(n,a[l])&&(r[a[l]]=n[a[l]])}}return r},WD=Function.call.bind(Object.prototype.hasOwnProperty),YD="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED",qD=WD,GD=function(){};if("production"!==process.env.NODE_ENV){var XD=YD,ZD={},QD=qD;GD=function(e){var t="Warning: "+e;"undefined"!=typeof console&&console.error(t);try{throw new Error(t)}catch(e){}}}function JD(e,t,n,a,r){if("production"!==process.env.NODE_ENV)for(var o in e)if(QD(e,o)){var i;try{if("function"!=typeof e[o]){var l=Error((a||"React class")+": "+n+" type `"+o+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof e[o]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw l.name="Invariant Violation",l}i=e[o](t,o,a,n,null,XD)}catch(e){i=e}if(!i||i instanceof Error||GD((a||"React class")+": type specification of "+n+" `"+o+"` is invalid; the type checker function must return `null` or an `Error` but returned a "+typeof i+". You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument)."),i instanceof Error&&!(i.message in ZD)){ZD[i.message]=!0;var c=r?r():"";GD("Failed "+n+" type: "+i.message+(null!=c?c:""))}}}JD.resetWarningCache=function(){"production"!==process.env.NODE_ENV&&(ZD={})};var eT=JD,tT=function(){};function nT(){return null}"production"!==process.env.NODE_ENV&&(tT=function(e){var t="Warning: "+e;"undefined"!=typeof console&&console.error(t);try{throw new Error(t)}catch(e){}});function aT(){}function rT(){}rT.resetWarningCache=aT;var oT=function(e,t){var n="function"==typeof Symbol&&Symbol.iterator;var a="<<anonymous>>",r={array:c("array"),bigint:c("bigint"),bool:c("boolean"),func:c("function"),number:c("number"),object:c("object"),string:c("string"),symbol:c("symbol"),any:l(nT),arrayOf:function(e){return l(function(t,n,a,r,o){if("function"!=typeof e)return new i("Property `"+o+"` of component `"+a+"` has invalid PropType notation inside arrayOf.");var l=t[n];if(!Array.isArray(l))return new i("Invalid "+r+" `"+o+"` of type `"+d(l)+"` supplied to `"+a+"`, expected an array.");for(var c=0;c<l.length;c++){var s=e(l,c,a,r,o+"["+c+"]",YD);if(s instanceof Error)return s}return null})},element:l(function(t,n,a,r,o){var l=t[n];return e(l)?null:new i("Invalid "+r+" `"+o+"` of type `"+d(l)+"` supplied to `"+a+"`, expected a single ReactElement.")}),elementType:l(function(e,t,n,a,r){var o=e[t];return KD.isValidElementType(o)?null:new i("Invalid "+a+" `"+r+"` of type `"+d(o)+"` supplied to `"+n+"`, expected a single ReactElement type.")}),instanceOf:function(e){return l(function(t,n,r,o,l){if(!(t[n]instanceof e)){var c=e.name||a;return new i("Invalid "+o+" `"+l+"` of type `"+(((s=t[n]).constructor&&s.constructor.name?s.constructor.name:a)+"` supplied to `")+r+"`, expected instance of `"+c+"`.")}var s;return null})},node:l(function(e,t,n,a,r){return u(e[t])?null:new i("Invalid "+a+" `"+r+"` supplied to `"+n+"`, expected a ReactNode.")}),objectOf:function(e){return l(function(t,n,a,r,o){if("function"!=typeof e)return new i("Property `"+o+"` of component `"+a+"` has invalid PropType notation inside objectOf.");var l=t[n],c=d(l);if("object"!==c)return new i("Invalid "+r+" `"+o+"` of type `"+c+"` supplied to `"+a+"`, expected an object.");for(var s in l)if(qD(l,s)){var u=e(l,s,a,r,o+"."+s,YD);if(u instanceof Error)return u}return null})},oneOf:function(e){if(!Array.isArray(e))return"production"!==process.env.NODE_ENV&&tT(arguments.length>1?"Invalid arguments supplied to oneOf, expected an array, got "+arguments.length+" arguments. A common mistake is to write oneOf(x, y, z) instead of oneOf([x, y, z]).":"Invalid argument supplied to oneOf, expected an array."),nT;return l(function(t,n,a,r,l){for(var c=t[n],s=0;s<e.length;s++)if(o(c,e[s]))return null;var u=JSON.stringify(e,function(e,t){return"symbol"===p(t)?String(t):t});return new i("Invalid "+r+" `"+l+"` of value `"+String(c)+"` supplied to `"+a+"`, expected one of "+u+".")})},oneOfType:function(e){if(!Array.isArray(e))return"production"!==process.env.NODE_ENV&&tT("Invalid argument supplied to oneOfType, expected an instance of array."),nT;for(var t=0;t<e.length;t++){var n=e[t];if("function"!=typeof n)return tT("Invalid argument supplied to oneOfType. Expected an array of check functions, but received "+f(n)+" at index "+t+"."),nT}return l(function(t,n,a,r,o){for(var l=[],c=0;c<e.length;c++){var s=(0,e[c])(t,n,a,r,o,YD);if(null==s)return null;s.data&&qD(s.data,"expectedType")&&l.push(s.data.expectedType)}return new i("Invalid "+r+" `"+o+"` supplied to `"+a+"`"+(l.length>0?", expected one of type ["+l.join(", ")+"]":"")+".")})},shape:function(e){return l(function(t,n,a,r,o){var l=t[n],c=d(l);if("object"!==c)return new i("Invalid "+r+" `"+o+"` of type `"+c+"` supplied to `"+a+"`, expected `object`.");for(var u in e){var f=e[u];if("function"!=typeof f)return s(a,r,o,u,p(f));var m=f(l,u,a,r,o+"."+u,YD);if(m)return m}return null})},exact:function(e){return l(function(t,n,a,r,o){var l=t[n],c=d(l);if("object"!==c)return new i("Invalid "+r+" `"+o+"` of type `"+c+"` supplied to `"+a+"`, expected `object`.");var u=UD({},t[n],e);for(var f in u){var m=e[f];if(qD(e,f)&&"function"!=typeof m)return s(a,r,o,f,p(m));if(!m)return new i("Invalid "+r+" `"+o+"` key `"+f+"` supplied to `"+a+"`.\nBad object: "+JSON.stringify(t[n],null," ")+"\nValid keys: "+JSON.stringify(Object.keys(e),null," "));var h=m(l,f,a,r,o+"."+f,YD);if(h)return h}return null})}};function o(e,t){return e===t?0!==e||1/e==1/t:e!=e&&t!=t}function i(e,t){this.message=e,this.data=t&&"object"==typeof t?t:{},this.stack=""}function l(e){if("production"!==process.env.NODE_ENV)var n={},r=0;function o(o,l,c,s,u,d,p){if(s=s||a,d=d||c,p!==YD){if(t){var f=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use `PropTypes.checkPropTypes()` to call them. Read more at http://fb.me/use-check-prop-types");throw f.name="Invariant Violation",f}if("production"!==process.env.NODE_ENV&&"undefined"!=typeof console){var m=s+":"+c;!n[m]&&r<3&&(tT("You are manually calling a React.PropTypes validation function for the `"+d+"` prop on `"+s+"`. This is deprecated and will throw in the standalone `prop-types` package. You may be seeing this warning due to a third-party PropTypes library. See https://fb.me/react-warning-dont-call-proptypes for details."),n[m]=!0,r++)}}return null==l[c]?o?null===l[c]?new i("The "+u+" `"+d+"` is marked as required in `"+s+"`, but its value is `null`."):new i("The "+u+" `"+d+"` is marked as required in `"+s+"`, but its value is `undefined`."):null:e(l,c,s,u,d)}var l=o.bind(null,!1);return l.isRequired=o.bind(null,!0),l}function c(e){return l(function(t,n,a,r,o,l){var c=t[n];return d(c)!==e?new i("Invalid "+r+" `"+o+"` of type `"+p(c)+"` supplied to `"+a+"`, expected `"+e+"`.",{expectedType:e}):null})}function s(e,t,n,a,r){return new i((e||"React class")+": "+t+" type `"+n+"."+a+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+r+"`.")}function u(t){switch(typeof t){case"number":case"string":case"undefined":return!0;case"boolean":return!t;case"object":if(Array.isArray(t))return t.every(u);if(null===t||e(t))return!0;var a=function(e){var t=e&&(n&&e[n]||e["@@iterator"]);if("function"==typeof t)return t}(t);if(!a)return!1;var r,o=a.call(t);if(a!==t.entries){for(;!(r=o.next()).done;)if(!u(r.value))return!1}else for(;!(r=o.next()).done;){var i=r.value;if(i&&!u(i[1]))return!1}return!0;default:return!1}}function d(e){var t=typeof e;return Array.isArray(e)?"array":e instanceof RegExp?"object":function(e,t){return"symbol"===e||!!t&&("Symbol"===t["@@toStringTag"]||"function"==typeof Symbol&&t instanceof Symbol)}(t,e)?"symbol":t}function p(e){if(null==e)return""+e;var t=d(e);if("object"===t){if(e instanceof Date)return"date";if(e instanceof RegExp)return"regexp"}return t}function f(e){var t=p(e);switch(t){case"array":case"object":return"an "+t;case"boolean":case"date":case"regexp":return"a "+t;default:return t}}return i.prototype=Error.prototype,r.checkPropTypes=eT,r.resetWarningCache=eT.resetWarningCache,r.PropTypes=r,r},iT=function(){function e(e,t,n,a,r,o){if(o!==YD){var i=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw i.name="Invariant Violation",i}}function t(){return e}e.isRequired=e;var n={array:e,bigint:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,elementType:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t,checkPropTypes:rT,resetWarningCache:aT};return n.PropTypes=n,n},lT=K(function(e){if("production"!==process.env.NODE_ENV){var t=KD;e.exports=oT(t.isElement,!0)}else e.exports=iT()}),cT=K(function(e,t){t.__esModule=!0,t.resizableProps=void 0;var n=function(e){return e&&e.__esModule?e:{default:e}}(lT);var a={axis:n.default.oneOf(["both","x","y","none"]),className:n.default.string,children:n.default.element.isRequired,draggableOpts:n.default.shape({allowAnyClick:n.default.bool,cancel:n.default.string,children:n.default.node,disabled:n.default.bool,enableUserSelectHack:n.default.bool,offsetParent:n.default.node,grid:n.default.arrayOf(n.default.number),handle:n.default.string,nodeRef:n.default.object,onStart:n.default.func,onDrag:n.default.func,onStop:n.default.func,onMouseDown:n.default.func,scale:n.default.number}),height:function(){for(var e=arguments.length,t=new Array(e),a=0;a<e;a++)t[a]=arguments[a];var r,o=t[0];return"both"===o.axis||"y"===o.axis?(r=n.default.number).isRequired.apply(r,t):n.default.number.apply(n.default,t)},handle:n.default.oneOfType([n.default.node,n.default.func]),handleSize:n.default.arrayOf(n.default.number),lockAspectRatio:n.default.bool,maxConstraints:n.default.arrayOf(n.default.number),minConstraints:n.default.arrayOf(n.default.number),onResizeStop:n.default.func,onResizeStart:n.default.func,onResize:n.default.func,resizeHandles:n.default.arrayOf(n.default.oneOf(["s","w","e","n","sw","nw","se","ne"])),transformScale:n.default.number,width:function(){for(var e=arguments.length,t=new Array(e),a=0;a<e;a++)t[a]=arguments[a];var r,o=t[0];return"both"===o.axis||"x"===o.axis?(r=n.default.number).isRequired.apply(r,t):n.default.number.apply(n.default,t)}};t.resizableProps=a}),sT=K(function(e,t){t.__esModule=!0,t.default=void 0;var n=function(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var n=r(t);if(n&&n.has(e))return n.get(e);var a={},o=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var i in e)if("default"!==i&&Object.prototype.hasOwnProperty.call(e,i)){var l=o?Object.getOwnPropertyDescriptor(e,i):null;l&&(l.get||l.set)?Object.defineProperty(a,i,l):a[i]=e[i]}a.default=e,n&&n.set(e,a);return a}(f.default),a=["children","className","draggableOpts","width","height","handle","handleSize","lockAspectRatio","axis","minConstraints","maxConstraints","onResize","onResizeStop","onResizeStart","resizeHandles","transformScale"];function r(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,n=new WeakMap;return(r=function(e){return e?n:t})(e)}function o(){return o=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var a in n)Object.prototype.hasOwnProperty.call(n,a)&&(e[a]=n[a])}return e},o.apply(this,arguments)}function i(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,a)}return n}function l(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?i(Object(n),!0).forEach(function(t){c(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):i(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function c(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=typeof e||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var a=n.call(e,t||"default");if("object"!=typeof a)return a;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function s(e,t){return s=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},s(e,t)}var u=function(e){var t,r;function i(){for(var t,n=arguments.length,a=new Array(n),r=0;r<n;r++)a[r]=arguments[r];return(t=e.call.apply(e,[this].concat(a))||this).handleRefs={},t.lastHandleRect=null,t.slack=null,t}r=e,(t=i).prototype=Object.create(r.prototype),t.prototype.constructor=t,s(t,r);var c=i.prototype;return c.componentWillUnmount=function(){this.resetData()},c.resetData=function(){this.lastHandleRect=this.slack=null},c.runConstraints=function(e,t){var n=this.props,a=n.minConstraints,r=n.maxConstraints,o=n.lockAspectRatio;if(!a&&!r&&!o)return[e,t];if(o){var i=this.props.width/this.props.height,l=e-this.props.width,c=t-this.props.height;Math.abs(l)>Math.abs(c*i)?t=e/i:e=t*i}var s=e,u=t,d=this.slack||[0,0],p=d[0],f=d[1];return e+=p,t+=f,a&&(e=Math.max(a[0],e),t=Math.max(a[1],t)),r&&(e=Math.min(r[0],e),t=Math.min(r[1],t)),this.slack=[p+(s-e),f+(u-t)],[e,t]},c.resizeHandler=function(e,t){var n=this;return function(a,r){var o=r.node,i=r.deltaX,l=r.deltaY;"onResizeStart"===e&&n.resetData();var c=("both"===n.props.axis||"x"===n.props.axis)&&"n"!==t&&"s"!==t,s=("both"===n.props.axis||"y"===n.props.axis)&&"e"!==t&&"w"!==t;if(c||s){var u=t[0],d=t[t.length-1],p=o.getBoundingClientRect();if(null!=n.lastHandleRect){if("w"===d)i+=p.left-n.lastHandleRect.left;if("n"===u)l+=p.top-n.lastHandleRect.top}n.lastHandleRect=p,"w"===d&&(i=-i),"n"===u&&(l=-l);var f=n.props.width+(c?i/n.props.transformScale:0),m=n.props.height+(s?l/n.props.transformScale:0),h=n.runConstraints(f,m);f=h[0],m=h[1];var g=f!==n.props.width||m!==n.props.height,b="function"==typeof n.props[e]?n.props[e]:null;b&&!("onResize"===e&&!g)&&(null==a.persist||a.persist(),b(a,{node:o,size:{width:f,height:m},handle:t})),"onResizeStop"===e&&n.resetData()}}},c.renderResizeHandle=function(e,t){var a=this.props.handle;if(!a)return n.createElement("span",{className:"react-resizable-handle react-resizable-handle-"+e,ref:t});if("function"==typeof a)return a(e,t);var r=l({ref:t},"string"==typeof a.type?{}:{handleAxis:e});return n.cloneElement(a,r)},c.render=function(){var e=this,t=this.props,r=t.children,i=t.className,c=t.draggableOpts;t.width,t.height,t.handle,t.handleSize,t.lockAspectRatio,t.axis,t.minConstraints,t.maxConstraints,t.onResize,t.onResizeStop,t.onResizeStart;var s=t.resizeHandles;t.transformScale;var u=function(e,t){if(null==e)return{};var n,a,r={},o=Object.keys(e);for(a=0;a<o.length;a++)n=o[a],t.indexOf(n)>=0||(r[n]=e[n]);return r}(t,a);return(0,bD.cloneElement)(r,l(l({},u),{},{className:(i?i+" ":"")+"react-resizable",children:[].concat(r.props.children,s.map(function(t){var a,r=null!=(a=e.handleRefs[t])?a:e.handleRefs[t]=n.createRef();return n.createElement(v.default.DraggableCore,o({},c,{nodeRef:r,key:"resizableHandle-"+t,onStop:e.resizeHandler("onResizeStop",t),onStart:e.resizeHandler("onResizeStart",t),onDrag:e.resizeHandler("onResize",t)}),e.renderResizeHandle(t,r))}))}))},i}(n.Component);t.default=u,u.propTypes=cT.resizableProps,u.defaultProps={axis:"both",handleSize:[20,20],lockAspectRatio:!1,minConstraints:[20,20],maxConstraints:[1/0,1/0],resizeHandles:["se"],transformScale:1}}),uT=K(function(e,t){t.__esModule=!0,t.default=void 0;var n=function(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var n=l(t);if(n&&n.has(e))return n.get(e);var a={},r=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var o in e)if("default"!==o&&Object.prototype.hasOwnProperty.call(e,o)){var i=r?Object.getOwnPropertyDescriptor(e,o):null;i&&(i.get||i.set)?Object.defineProperty(a,o,i):a[o]=e[o]}a.default=e,n&&n.set(e,a);return a}(f.default),a=i(lT),r=i(sT),o=["handle","handleSize","onResize","onResizeStart","onResizeStop","draggableOpts","minConstraints","maxConstraints","lockAspectRatio","axis","width","height","resizeHandles","style","transformScale"];function i(e){return e&&e.__esModule?e:{default:e}}function l(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,n=new WeakMap;return(l=function(e){return e?n:t})(e)}function c(){return c=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var a in n)Object.prototype.hasOwnProperty.call(n,a)&&(e[a]=n[a])}return e},c.apply(this,arguments)}function s(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,a)}return n}function u(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?s(Object(n),!0).forEach(function(t){d(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):s(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function d(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=typeof e||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var a=n.call(e,t||"default");if("object"!=typeof a)return a;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function p(e,t){return p=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},p(e,t)}var m=function(e){var t,a;function i(){for(var t,n=arguments.length,a=new Array(n),r=0;r<n;r++)a[r]=arguments[r];return(t=e.call.apply(e,[this].concat(a))||this).state={width:t.props.width,height:t.props.height,propsWidth:t.props.width,propsHeight:t.props.height},t.onResize=function(e,n){var a=n.size;t.props.onResize?(null==e.persist||e.persist(),t.setState(a,function(){return t.props.onResize&&t.props.onResize(e,n)})):t.setState(a)},t}return a=e,(t=i).prototype=Object.create(a.prototype),t.prototype.constructor=t,p(t,a),i.getDerivedStateFromProps=function(e,t){return t.propsWidth!==e.width||t.propsHeight!==e.height?{width:e.width,height:e.height,propsWidth:e.width,propsHeight:e.height}:null},i.prototype.render=function(){var e=this.props,t=e.handle,a=e.handleSize;e.onResize;var i=e.onResizeStart,l=e.onResizeStop,s=e.draggableOpts,d=e.minConstraints,p=e.maxConstraints,f=e.lockAspectRatio,m=e.axis;e.width,e.height;var h=e.resizeHandles,g=e.style,b=e.transformScale,v=function(e,t){if(null==e)return{};var n,a,r={},o=Object.keys(e);for(a=0;a<o.length;a++)n=o[a],t.indexOf(n)>=0||(r[n]=e[n]);return r}(e,o);return n.createElement(r.default,{axis:m,draggableOpts:s,handle:t,handleSize:a,height:this.state.height,lockAspectRatio:f,maxConstraints:p,minConstraints:d,onResizeStart:i,onResize:this.onResize,onResizeStop:l,resizeHandles:h,transformScale:b,width:this.state.width},n.createElement("div",c({},v,{style:u(u({},g),{},{width:this.state.width+"px",height:this.state.height+"px"})})))},i}(n.Component);t.default=m,m.propTypes=u(u({},cT.resizableProps),{},{children:a.default.element})}),dT=sT.default;uT.default;var pT,fT=e.memo(({onResize:t,width:a,...r})=>{const o=e.useCallback(e=>{e.stopPropagation()},[]),i=e.useMemo(()=>({enableUserSelectHack:!1}),[]);return a?n.jsx(dT,{width:a,height:0,handle:n.jsx("span",{className:"react-resizable-handle",onClick:o}),onResize:t,draggableOpts:i,children:n.jsx("th",{...r})}):n.jsx("th",{...r})}),mT=e.createContext({dragDropManager:void 0});function hT(e,t){for(var n=arguments.length,a=new Array(n>2?n-2:0),r=2;r<n;r++)a[r-2]=arguments[r];if("production"!==process.env.NODE_ENV&&void 0===t)throw new Error("invariant requires an error message argument");if(!e){var o;if(void 0===t)o=new Error("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");else{var i=0;(o=new Error(t.replace(/%s/g,function(){return a[i++]}))).name="Invariant Violation"}throw o.framesToPop=1,o}}!function(e){e.SOURCE="SOURCE",e.TARGET="TARGET"}(pT||(pT={}));var gT="dnd-core/INIT_COORDS",bT="dnd-core/BEGIN_DRAG",vT="dnd-core/PUBLISH_DRAG_SOURCE",xT="dnd-core/HOVER",yT="dnd-core/DROP",wT="dnd-core/END_DRAG";function kT(e,t){return{type:gT,payload:{sourceClientOffset:t||null,clientOffset:e||null}}}function CT(e){return CT="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},CT(e)}function ET(e,t,n){return t.split(".").reduce(function(e,t){return e&&e[t]?e[t]:n||null},e)}function ST(e){return"object"===CT(e)}var NT={type:gT,payload:{clientOffset:null,sourceClientOffset:null}};function OT(e){return function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{publishSource:!0},a=n.publishSource,r=void 0===a||a,o=n.clientOffset,i=n.getSourceClientOffset,l=e.getMonitor(),c=e.getRegistry();e.dispatch(kT(o)),function(e,t,n){hT(!t.isDragging(),"Cannot call beginDrag while dragging."),e.forEach(function(e){hT(n.getSource(e),"Expected sourceIds to be registered.")})}(t,l,c);var s=function(e,t){for(var n=null,a=e.length-1;a>=0;a--)if(t.canDragSource(e[a])){n=e[a];break}return n}(t,l);if(null!==s){var u=null;if(o){if(!i)throw new Error("getSourceClientOffset must be defined");!function(e){hT("function"==typeof e,"When clientOffset is provided, getSourceClientOffset must be a function.")}(i),u=i(s)}e.dispatch(kT(o,u));var d=c.getSource(s).beginDrag(l,s);if(null!=d){!function(e){hT(ST(e),"Item must be an object.")}(d),c.pinSource(s);var p=c.getSourceType(s);return{type:bT,payload:{itemType:p,item:d,sourceId:s,clientOffset:o||null,sourceClientOffset:u||null,isSourcePublic:!!r}}}}else e.dispatch(NT)}}function PT(e){return function(){if(e.getMonitor().isDragging())return{type:vT}}}function DT(e,t){return null===t?null===e:Array.isArray(e)?e.some(function(e){return e===t}):e===t}function TT(e){return function(t){var n=(arguments.length>1&&void 0!==arguments[1]?arguments[1]:{}).clientOffset;!function(e){hT(Array.isArray(e),"Expected targetIds to be an array.")}(t);var a=t.slice(0),r=e.getMonitor(),o=e.getRegistry();return function(e,t,n){hT(t.isDragging(),"Cannot call hover while not dragging."),hT(!t.didDrop(),"Cannot call hover after drop.");for(var a=0;a<e.length;a++){var r=e[a];hT(e.lastIndexOf(r)===a,"Expected targetIds to be unique in the passed array."),hT(n.getTarget(r),"Expected targetIds to be registered.")}}(a,r,o),function(e,t,n){for(var a=e.length-1;a>=0;a--){var r=e[a];DT(t.getTargetType(r),n)||e.splice(a,1)}}(a,o,r.getItemType()),function(e,t,n){e.forEach(function(e){n.getTarget(e).hover(t,e)})}(a,r,o),{type:xT,payload:{targetIds:a,clientOffset:n||null}}}}function IT(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,a)}return n}function RT(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?IT(Object(n),!0).forEach(function(t){MT(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):IT(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function MT(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function zT(e){return function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=e.getMonitor(),a=e.getRegistry();!function(e){hT(e.isDragging(),"Cannot call drop while not dragging."),hT(!e.didDrop(),"Cannot call drop twice during one drag operation.")}(n);var r=function(e){var t=e.getTargetIds().filter(e.canDropOnTarget,e);return t.reverse(),t}(n);r.forEach(function(r,o){var i=function(e,t,n,a){var r=n.getTarget(e),o=r?r.drop(a,e):void 0;(function(e){hT(void 0===e||ST(e),"Drop result must either be an object or undefined.")})(o),void 0===o&&(o=0===t?{}:a.getDropResult());return o}(r,o,a,n),l={type:yT,payload:{dropResult:RT(RT({},t),i)}};e.dispatch(l)})}}function jT(e){return function(){var t=e.getMonitor(),n=e.getRegistry();!function(e){hT(e.isDragging(),"Cannot call endDrag while not dragging.")}(t);var a=t.getSourceId();null!=a&&(n.getSource(a,!0).endDrag(t,a),n.unpinSource());return{type:wT}}}function AT(e,t){for(var n=0;n<t.length;n++){var a=t[n];a.enumerable=a.enumerable||!1,a.configurable=!0,"value"in a&&(a.writable=!0),Object.defineProperty(e,a.key,a)}}function LT(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var FT=function(){function e(t,n){var a=this;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),LT(this,"store",void 0),LT(this,"monitor",void 0),LT(this,"backend",void 0),LT(this,"isSetUp",!1),LT(this,"handleRefCountChange",function(){var e=a.store.getState().refCount>0;a.backend&&(e&&!a.isSetUp?(a.backend.setup(),a.isSetUp=!0):!e&&a.isSetUp&&(a.backend.teardown(),a.isSetUp=!1))}),this.store=t,this.monitor=n,t.subscribe(this.handleRefCountChange)}var t,n,a;return t=e,n=[{key:"receiveBackend",value:function(e){this.backend=e}},{key:"getMonitor",value:function(){return this.monitor}},{key:"getBackend",value:function(){return this.backend}},{key:"getRegistry",value:function(){return this.monitor.registry}},{key:"getActions",value:function(){var e=this,t=this.store.dispatch,n=function(e){return{beginDrag:OT(e),publishDragSource:PT(e),hover:TT(e),drop:zT(e),endDrag:jT(e)}}(this);return Object.keys(n).reduce(function(a,r){var o,i=n[r];return a[r]=(o=i,function(){for(var n=arguments.length,a=new Array(n),r=0;r<n;r++)a[r]=arguments[r];var i=o.apply(e,a);void 0!==i&&t(i)}),a},{})}},{key:"dispatch",value:function(e){this.store.dispatch(e)}}],n&&AT(t.prototype,n),a&&AT(t,a),e}();function _T(e){return"Minified Redux error #"+e+"; visit https://redux.js.org/Errors?code="+e+" for the full message or use the non-minified dev environment for full errors. "}var VT="function"==typeof Symbol&&Symbol.observable||"@@observable",KT=function(){return Math.random().toString(36).substring(7).split("").join(".")},HT={INIT:"@@redux/INIT"+KT(),REPLACE:"@@redux/REPLACE"+KT(),PROBE_UNKNOWN_ACTION:function(){return"@@redux/PROBE_UNKNOWN_ACTION"+KT()}};function BT(e){if(void 0===e)return"undefined";if(null===e)return"null";var t=typeof e;switch(t){case"boolean":case"string":case"number":case"symbol":case"function":return t}if(Array.isArray(e))return"array";if(function(e){return e instanceof Date||"function"==typeof e.toDateString&&"function"==typeof e.getDate&&"function"==typeof e.setDate}(e))return"date";if(function(e){return e instanceof Error||"string"==typeof e.message&&e.constructor&&"number"==typeof e.constructor.stackTraceLimit}(e))return"error";var n=function(e){return"function"==typeof e.constructor?e.constructor.name:null}(e);switch(n){case"Symbol":case"Promise":case"WeakMap":case"WeakSet":case"Map":case"Set":return n}return t.slice(8,-1).toLowerCase().replace(/\s/g,"")}function $T(e){var t=typeof e;return"production"!==process.env.NODE_ENV&&(t=BT(e)),t}function UT(e,t,n){var a;if("function"==typeof t&&"function"==typeof n||"function"==typeof n&&"function"==typeof arguments[3])throw new Error("production"===process.env.NODE_ENV?_T(0):"It looks like you are passing several store enhancers to createStore(). This is not supported. Instead, compose them together to a single function. See https://redux.js.org/tutorials/fundamentals/part-4-store#creating-a-store-with-enhancers for an example.");if("function"==typeof t&&void 0===n&&(n=t,t=void 0),void 0!==n){if("function"!=typeof n)throw new Error("production"===process.env.NODE_ENV?_T(1):"Expected the enhancer to be a function. Instead, received: '"+$T(n)+"'");return n(UT)(e,t)}if("function"!=typeof e)throw new Error("production"===process.env.NODE_ENV?_T(2):"Expected the root reducer to be a function. Instead, received: '"+$T(e)+"'");var r=e,o=t,i=[],l=i,c=!1;function s(){l===i&&(l=i.slice())}function u(){if(c)throw new Error("production"===process.env.NODE_ENV?_T(3):"You may not call store.getState() while the reducer is executing. The reducer has already received the state as an argument. Pass it down from the top reducer instead of reading it from the store.");return o}function d(e){if("function"!=typeof e)throw new Error("production"===process.env.NODE_ENV?_T(4):"Expected the listener to be a function. Instead, received: '"+$T(e)+"'");if(c)throw new Error("production"===process.env.NODE_ENV?_T(5):"You may not call store.subscribe() while the reducer is executing. If you would like to be notified after the store has been updated, subscribe from a component and invoke store.getState() in the callback to access the latest state. See https://redux.js.org/api/store#subscribelistener for more details.");var t=!0;return s(),l.push(e),function(){if(t){if(c)throw new Error("production"===process.env.NODE_ENV?_T(6):"You may not unsubscribe from a store listener while the reducer is executing. See https://redux.js.org/api/store#subscribelistener for more details.");t=!1,s();var n=l.indexOf(e);l.splice(n,1),i=null}}}function p(e){if(!function(e){if("object"!=typeof e||null===e)return!1;for(var t=e;null!==Object.getPrototypeOf(t);)t=Object.getPrototypeOf(t);return Object.getPrototypeOf(e)===t}(e))throw new Error("production"===process.env.NODE_ENV?_T(7):"Actions must be plain objects. Instead, the actual type was: '"+$T(e)+"'. You may need to add middleware to your store setup to handle dispatching other values, such as 'redux-thunk' to handle dispatching functions. See https://redux.js.org/tutorials/fundamentals/part-4-store#middleware and https://redux.js.org/tutorials/fundamentals/part-6-async-logic#using-the-redux-thunk-middleware for examples.");if(void 0===e.type)throw new Error("production"===process.env.NODE_ENV?_T(8):'Actions may not have an undefined "type" property. You may have misspelled an action type string constant.');if(c)throw new Error("production"===process.env.NODE_ENV?_T(9):"Reducers may not dispatch actions.");try{c=!0,o=r(o,e)}finally{c=!1}for(var t=i=l,n=0;n<t.length;n++){(0,t[n])()}return e}return p({type:HT.INIT}),(a={dispatch:p,subscribe:d,getState:u,replaceReducer:function(e){if("function"!=typeof e)throw new Error("production"===process.env.NODE_ENV?_T(10):"Expected the nextReducer to be a function. Instead, received: '"+$T(e));r=e,p({type:HT.REPLACE})}})[VT]=function(){var e,t=d;return(e={subscribe:function(e){if("object"!=typeof e||null===e)throw new Error("production"===process.env.NODE_ENV?_T(11):"Expected the observer to be an object. Instead, received: '"+$T(e)+"'");function n(){e.next&&e.next(u())}return n(),{unsubscribe:t(n)}}})[VT]=function(){return this},e},a}var WT=function(e,t){return e===t};function YT(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,a)}return n}function qT(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?YT(Object(n),!0).forEach(function(t){GT(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):YT(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function GT(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var XT={initialSourceClientOffset:null,initialClientOffset:null,clientOffset:null};function ZT(){var e,t,n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:XT,a=arguments.length>1?arguments[1]:void 0,r=a.payload;switch(a.type){case gT:case bT:return{initialSourceClientOffset:r.sourceClientOffset,initialClientOffset:r.clientOffset,clientOffset:r.clientOffset};case xT:return e=n.clientOffset,t=r.clientOffset,!e&&!t||e&&t&&e.x===t.x&&e.y===t.y?n:qT(qT({},n),{},{clientOffset:r.clientOffset});case wT:case yT:return XT;default:return n}}var QT="dnd-core/ADD_SOURCE",JT="dnd-core/ADD_TARGET",eI="dnd-core/REMOVE_SOURCE",tI="dnd-core/REMOVE_TARGET";function nI(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,a)}return n}function aI(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?nI(Object(n),!0).forEach(function(t){rI(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):nI(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function rI(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var oI={itemType:null,item:null,sourceId:null,targetIds:[],dropResult:null,didDrop:!1,isSourcePublic:null};function iI(){var e,t,n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:oI,a=arguments.length>1?arguments[1]:void 0,r=a.payload;switch(a.type){case bT:return aI(aI({},n),{},{itemType:r.itemType,item:r.item,sourceId:r.sourceId,isSourcePublic:r.isSourcePublic,dropResult:null,didDrop:!1});case vT:return aI(aI({},n),{},{isSourcePublic:!0});case xT:return aI(aI({},n),{},{targetIds:r.targetIds});case tI:return-1===n.targetIds.indexOf(r.targetId)?n:aI(aI({},n),{},{targetIds:(e=n.targetIds,t=r.targetId,e.filter(function(e){return e!==t}))});case yT:return aI(aI({},n),{},{dropResult:r.dropResult,didDrop:!0,targetIds:[]});case wT:return aI(aI({},n),{},{itemType:null,item:null,sourceId:null,dropResult:null,didDrop:!1,isSourcePublic:null,targetIds:[]});default:return n}}function lI(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;switch((arguments.length>1?arguments[1]:void 0).type){case QT:case JT:return e+1;case eI:case tI:return e-1;default:return e}}var cI=[],sI=[];function uI(){var e=arguments.length>1?arguments[1]:void 0;switch(e.type){case xT:break;case QT:case JT:case tI:case eI:return cI;default:return sI}var t=e.payload,n=t.targetIds,a=void 0===n?[]:n,r=t.prevTargetIds,o=void 0===r?[]:r,i=function(e,t){var n=new Map,a=function(e){n.set(e,n.has(e)?n.get(e)+1:1)};e.forEach(a),t.forEach(a);var r=[];return n.forEach(function(e,t){1===e&&r.push(t)}),r}(a,o),l=i.length>0||!function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:WT;if(e.length!==t.length)return!1;for(var a=0;a<e.length;++a)if(!n(e[a],t[a]))return!1;return!0}(a,o);if(!l)return cI;var c=o[o.length-1],s=a[a.length-1];return c!==s&&(c&&i.push(c),s&&i.push(s)),i}function dI(){return(arguments.length>0&&void 0!==arguments[0]?arguments[0]:0)+1}function pI(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,a)}return n}function fI(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?pI(Object(n),!0).forEach(function(t){mI(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):pI(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function mI(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function hI(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0;return{dirtyHandlerIds:uI(e.dirtyHandlerIds,{type:t.type,payload:fI(fI({},t.payload),{},{prevTargetIds:ET(e,"dragOperation.targetIds",[])})}),dragOffset:ZT(e.dragOffset,t),refCount:lI(e.refCount,t),dragOperation:iI(e.dragOperation,t),stateId:dI(e.stateId)}}function gI(e,t){return{x:e.x-t.x,y:e.y-t.y}}function bI(e,t){for(var n=0;n<t.length;n++){var a=t[n];a.enumerable=a.enumerable||!1,a.configurable=!0,"value"in a&&(a.writable=!0),Object.defineProperty(e,a.key,a)}}function vI(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}cI.__IS_NONE__=!0,sI.__IS_ALL__=!0;var xI=function(){function e(t,n){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),vI(this,"store",void 0),vI(this,"registry",void 0),this.store=t,this.registry=n}var t,n,a;return t=e,n=[{key:"subscribeToStateChange",value:function(e){var t=this,n=(arguments.length>1&&void 0!==arguments[1]?arguments[1]:{handlerIds:void 0}).handlerIds;hT("function"==typeof e,"listener must be a function."),hT(void 0===n||Array.isArray(n),"handlerIds, when specified, must be an array of strings.");var a=this.store.getState().stateId;return this.store.subscribe(function(){var r=t.store.getState(),o=r.stateId;try{var i=o===a||o===a+1&&!function(e,t){if(e===cI)return!1;if(e===sI||void 0===t)return!0;var n,a=(n=e,t.filter(function(e){return n.indexOf(e)>-1}));return a.length>0}(r.dirtyHandlerIds,n);i||e()}finally{a=o}})}},{key:"subscribeToOffsetChange",value:function(e){var t=this;hT("function"==typeof e,"listener must be a function.");var n=this.store.getState().dragOffset;return this.store.subscribe(function(){var a=t.store.getState().dragOffset;a!==n&&(n=a,e())})}},{key:"canDragSource",value:function(e){if(!e)return!1;var t=this.registry.getSource(e);return hT(t,"Expected to find a valid source. sourceId=".concat(e)),!this.isDragging()&&t.canDrag(this,e)}},{key:"canDropOnTarget",value:function(e){if(!e)return!1;var t=this.registry.getTarget(e);return hT(t,"Expected to find a valid target. targetId=".concat(e)),!(!this.isDragging()||this.didDrop())&&DT(this.registry.getTargetType(e),this.getItemType())&&t.canDrop(this,e)}},{key:"isDragging",value:function(){return Boolean(this.getItemType())}},{key:"isDraggingSource",value:function(e){if(!e)return!1;var t=this.registry.getSource(e,!0);return hT(t,"Expected to find a valid source. sourceId=".concat(e)),!(!this.isDragging()||!this.isSourcePublic())&&this.registry.getSourceType(e)===this.getItemType()&&t.isDragging(this,e)}},{key:"isOverTarget",value:function(e){if(!e)return!1;var t=(arguments.length>1&&void 0!==arguments[1]?arguments[1]:{shallow:!1}).shallow;if(!this.isDragging())return!1;var n=this.registry.getTargetType(e),a=this.getItemType();if(a&&!DT(n,a))return!1;var r=this.getTargetIds();if(!r.length)return!1;var o=r.indexOf(e);return t?o===r.length-1:o>-1}},{key:"getItemType",value:function(){return this.store.getState().dragOperation.itemType}},{key:"getItem",value:function(){return this.store.getState().dragOperation.item}},{key:"getSourceId",value:function(){return this.store.getState().dragOperation.sourceId}},{key:"getTargetIds",value:function(){return this.store.getState().dragOperation.targetIds}},{key:"getDropResult",value:function(){return this.store.getState().dragOperation.dropResult}},{key:"didDrop",value:function(){return this.store.getState().dragOperation.didDrop}},{key:"isSourcePublic",value:function(){return Boolean(this.store.getState().dragOperation.isSourcePublic)}},{key:"getInitialClientOffset",value:function(){return this.store.getState().dragOffset.initialClientOffset}},{key:"getInitialSourceClientOffset",value:function(){return this.store.getState().dragOffset.initialSourceClientOffset}},{key:"getClientOffset",value:function(){return this.store.getState().dragOffset.clientOffset}},{key:"getSourceClientOffset",value:function(){return e=this.store.getState().dragOffset,t=e.clientOffset,n=e.initialClientOffset,a=e.initialSourceClientOffset,t&&n&&a?gI(function(e,t){return{x:e.x+t.x,y:e.y+t.y}}(t,a),n):null;var e,t,n,a}},{key:"getDifferenceFromInitialOffset",value:function(){return e=this.store.getState().dragOffset,t=e.clientOffset,n=e.initialClientOffset,t&&n?gI(t,n):null;var e,t,n}}],n&&bI(t.prototype,n),a&&bI(t,a),e}(),yI=0;function wI(e){return wI="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},wI(e)}function kI(e,t){t&&Array.isArray(e)?e.forEach(function(e){return kI(e,!1)}):hT("string"==typeof e||"symbol"===wI(e),t?"Type can only be a string, a symbol, or an array of either.":"Type can only be a string or a symbol.")}const CI="undefined"!=typeof global?global:self,EI=CI.MutationObserver||CI.WebKitMutationObserver;function SI(e){return function(){const t=setTimeout(a,0),n=setInterval(a,50);function a(){clearTimeout(t),clearInterval(n),e()}}}const NI="function"==typeof EI?function(e){let t=1;const n=new EI(e),a=document.createTextNode("");return n.observe(a,{characterData:!0}),function(){t=-t,a.data=t}}:SI;class OI{call(){try{this.task&&this.task()}catch(e){this.onError(e)}finally{this.task=null,this.release(this)}}constructor(e,t){this.onError=e,this.release=t,this.task=null}}const PI=new class{enqueueTask(e){const{queue:t,requestFlush:n}=this;t.length||(n(),this.flushing=!0),t[t.length]=e}constructor(){this.queue=[],this.pendingErrors=[],this.flushing=!1,this.index=0,this.capacity=1024,this.flush=()=>{const{queue:e}=this;for(;this.index<e.length;){const t=this.index;if(this.index++,e[t].call(),this.index>this.capacity){for(let t=0,n=e.length-this.index;t<n;t++)e[t]=e[t+this.index];e.length-=this.index,this.index=0}}e.length=0,this.index=0,this.flushing=!1},this.registerPendingError=e=>{this.pendingErrors.push(e),this.requestErrorThrow()},this.requestFlush=NI(this.flush),this.requestErrorThrow=SI(()=>{if(this.pendingErrors.length)throw this.pendingErrors.shift()})}},DI=new class{create(e){const t=this.freeTasks,n=t.length?t.pop():new OI(this.onError,e=>t[t.length]=e);return n.task=e,n}constructor(e){this.onError=e,this.freeTasks=[]}}(PI.registerPendingError);function TI(e,t){for(var n=0;n<t.length;n++){var a=t[n];a.enumerable=a.enumerable||!1,a.configurable=!0,"value"in a&&(a.writable=!0),Object.defineProperty(e,a.key,a)}}function II(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function RI(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null==n)return;var a,r,o=[],i=!0,l=!1;try{for(n=n.call(e);!(i=(a=n.next()).done)&&(o.push(a.value),!t||o.length!==t);i=!0);}catch(e){l=!0,r=e}finally{try{i||null==n.return||n.return()}finally{if(l)throw r}}return o}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return MI(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return MI(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function MI(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,a=new Array(t);n<t;n++)a[n]=e[n];return a}function zI(e){var t=(yI++).toString();switch(e){case pT.SOURCE:return"S".concat(t);case pT.TARGET:return"T".concat(t);default:throw new Error("Unknown Handler Role: ".concat(e))}}function jI(e){switch(e[0]){case"S":return pT.SOURCE;case"T":return pT.TARGET;default:hT(!1,"Cannot parse handler ID: ".concat(e))}}function AI(e,t){var n=e.entries(),a=!1;do{var r=n.next(),o=r.done;if(RI(r.value,2)[1]===t)return!0;a=!!o}while(!a);return!1}var LI=function(){function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),II(this,"types",new Map),II(this,"dragSources",new Map),II(this,"dropTargets",new Map),II(this,"pinnedSourceId",null),II(this,"pinnedSource",null),II(this,"store",void 0),this.store=t}var t,n,a;return t=e,n=[{key:"addSource",value:function(e,t){kI(e),function(e){hT("function"==typeof e.canDrag,"Expected canDrag to be a function."),hT("function"==typeof e.beginDrag,"Expected beginDrag to be a function."),hT("function"==typeof e.endDrag,"Expected endDrag to be a function.")}(t);var n=this.addHandler(pT.SOURCE,e,t);return this.store.dispatch(function(e){return{type:QT,payload:{sourceId:e}}}(n)),n}},{key:"addTarget",value:function(e,t){kI(e,!0),function(e){hT("function"==typeof e.canDrop,"Expected canDrop to be a function."),hT("function"==typeof e.hover,"Expected hover to be a function."),hT("function"==typeof e.drop,"Expected beginDrag to be a function.")}(t);var n=this.addHandler(pT.TARGET,e,t);return this.store.dispatch(function(e){return{type:JT,payload:{targetId:e}}}(n)),n}},{key:"containsHandler",value:function(e){return AI(this.dragSources,e)||AI(this.dropTargets,e)}},{key:"getSource",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return hT(this.isSourceId(e),"Expected a valid source ID."),t&&e===this.pinnedSourceId?this.pinnedSource:this.dragSources.get(e)}},{key:"getTarget",value:function(e){return hT(this.isTargetId(e),"Expected a valid target ID."),this.dropTargets.get(e)}},{key:"getSourceType",value:function(e){return hT(this.isSourceId(e),"Expected a valid source ID."),this.types.get(e)}},{key:"getTargetType",value:function(e){return hT(this.isTargetId(e),"Expected a valid target ID."),this.types.get(e)}},{key:"isSourceId",value:function(e){return jI(e)===pT.SOURCE}},{key:"isTargetId",value:function(e){return jI(e)===pT.TARGET}},{key:"removeSource",value:function(e){var t,n=this;hT(this.getSource(e),"Expected an existing source."),this.store.dispatch(function(e){return{type:eI,payload:{sourceId:e}}}(e)),t=function(){n.dragSources.delete(e),n.types.delete(e)},PI.enqueueTask(DI.create(t))}},{key:"removeTarget",value:function(e){hT(this.getTarget(e),"Expected an existing target."),this.store.dispatch(function(e){return{type:tI,payload:{targetId:e}}}(e)),this.dropTargets.delete(e),this.types.delete(e)}},{key:"pinSource",value:function(e){var t=this.getSource(e);hT(t,"Expected an existing source."),this.pinnedSourceId=e,this.pinnedSource=t}},{key:"unpinSource",value:function(){hT(this.pinnedSource,"No source is pinned at the time."),this.pinnedSourceId=null,this.pinnedSource=null}},{key:"addHandler",value:function(e,t,n){var a=zI(e);return this.types.set(a,t),e===pT.SOURCE?this.dragSources.set(a,n):e===pT.TARGET&&this.dropTargets.set(a,n),a}}],n&&TI(t.prototype,n),a&&TI(t,a),e}();function FI(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:void 0,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},a=function(e){var t="undefined"!=typeof window&&window.__REDUX_DEVTOOLS_EXTENSION__;return UT(hI,e&&t&&t({name:"dnd-core",instanceId:"dnd-core"}))}(arguments.length>3&&void 0!==arguments[3]&&arguments[3]),r=new xI(a,new LI(a)),o=new FT(a,r),i=e(o,t,n);return o.receiveBackend(i),o}var _I=["children"];function VI(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null==n)return;var a,r,o=[],i=!0,l=!1;try{for(n=n.call(e);!(i=(a=n.next()).done)&&(o.push(a.value),!t||o.length!==t);i=!0);}catch(e){l=!0,r=e}finally{try{i||null==n.return||n.return()}finally{if(l)throw r}}return o}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return KI(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return KI(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function KI(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,a=new Array(t);n<t;n++)a[n]=e[n];return a}function HI(e,t){if(null==e)return{};var n,a,r=function(e,t){if(null==e)return{};var n,a,r={},o=Object.keys(e);for(a=0;a<o.length;a++)n=o[a],t.indexOf(n)>=0||(r[n]=e[n]);return r}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(a=0;a<o.length;a++)n=o[a],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}var BI=0,$I=Symbol.for("__REACT_DND_CONTEXT_INSTANCE__"),UI=e.memo(function(t){var a=t.children,r=function(e){if("manager"in e){return[{dragDropManager:e.manager},!1]}var t=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:WI(),n=arguments.length>2?arguments[2]:void 0,a=arguments.length>3?arguments[3]:void 0,r=t;r[$I]||(r[$I]={dragDropManager:FI(e,t,n,a)});return r[$I]}(e.backend,e.context,e.options,e.debugMode),n=!e.context;return[t,n]}(HI(t,_I)),o=VI(r,2),i=o[0],l=o[1];return e.useEffect(function(){if(l){var e=WI();return++BI,function(){0===--BI&&(e[$I]=null)}}},[]),n.jsx(mT.Provider,Object.assign({value:i},{children:a}),void 0)});function WI(){return"undefined"!=typeof global?global:window}function YI(e,t){for(var n=0;n<t.length;n++){var a=t[n];a.enumerable=a.enumerable||!1,a.configurable=!0,"value"in a&&(a.writable=!0),Object.defineProperty(e,a.key,a)}}function qI(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var GI=!1,XI=!1,ZI=function(){function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),qI(this,"internalMonitor",void 0),qI(this,"sourceId",null),this.internalMonitor=t.getMonitor()}var t,n,a;return t=e,(n=[{key:"receiveHandlerId",value:function(e){this.sourceId=e}},{key:"getHandlerId",value:function(){return this.sourceId}},{key:"canDrag",value:function(){hT(!GI,"You may not call monitor.canDrag() inside your canDrag() implementation. Read more: http://react-dnd.github.io/react-dnd/docs/api/drag-source-monitor");try{return GI=!0,this.internalMonitor.canDragSource(this.sourceId)}finally{GI=!1}}},{key:"isDragging",value:function(){if(!this.sourceId)return!1;hT(!XI,"You may not call monitor.isDragging() inside your isDragging() implementation. Read more: http://react-dnd.github.io/react-dnd/docs/api/drag-source-monitor");try{return XI=!0,this.internalMonitor.isDraggingSource(this.sourceId)}finally{XI=!1}}},{key:"subscribeToStateChange",value:function(e,t){return this.internalMonitor.subscribeToStateChange(e,t)}},{key:"isDraggingSource",value:function(e){return this.internalMonitor.isDraggingSource(e)}},{key:"isOverTarget",value:function(e,t){return this.internalMonitor.isOverTarget(e,t)}},{key:"getTargetIds",value:function(){return this.internalMonitor.getTargetIds()}},{key:"isSourcePublic",value:function(){return this.internalMonitor.isSourcePublic()}},{key:"getSourceId",value:function(){return this.internalMonitor.getSourceId()}},{key:"subscribeToOffsetChange",value:function(e){return this.internalMonitor.subscribeToOffsetChange(e)}},{key:"canDragSource",value:function(e){return this.internalMonitor.canDragSource(e)}},{key:"canDropOnTarget",value:function(e){return this.internalMonitor.canDropOnTarget(e)}},{key:"getItemType",value:function(){return this.internalMonitor.getItemType()}},{key:"getItem",value:function(){return this.internalMonitor.getItem()}},{key:"getDropResult",value:function(){return this.internalMonitor.getDropResult()}},{key:"didDrop",value:function(){return this.internalMonitor.didDrop()}},{key:"getInitialClientOffset",value:function(){return this.internalMonitor.getInitialClientOffset()}},{key:"getInitialSourceClientOffset",value:function(){return this.internalMonitor.getInitialSourceClientOffset()}},{key:"getSourceClientOffset",value:function(){return this.internalMonitor.getSourceClientOffset()}},{key:"getClientOffset",value:function(){return this.internalMonitor.getClientOffset()}},{key:"getDifferenceFromInitialOffset",value:function(){return this.internalMonitor.getDifferenceFromInitialOffset()}}])&&YI(t.prototype,n),a&&YI(t,a),e}();function QI(e,t){for(var n=0;n<t.length;n++){var a=t[n];a.enumerable=a.enumerable||!1,a.configurable=!0,"value"in a&&(a.writable=!0),Object.defineProperty(e,a.key,a)}}function JI(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var eR=!1,tR=function(){function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),JI(this,"internalMonitor",void 0),JI(this,"targetId",null),this.internalMonitor=t.getMonitor()}var t,n,a;return t=e,(n=[{key:"receiveHandlerId",value:function(e){this.targetId=e}},{key:"getHandlerId",value:function(){return this.targetId}},{key:"subscribeToStateChange",value:function(e,t){return this.internalMonitor.subscribeToStateChange(e,t)}},{key:"canDrop",value:function(){if(!this.targetId)return!1;hT(!eR,"You may not call monitor.canDrop() inside your canDrop() implementation. Read more: http://react-dnd.github.io/react-dnd/docs/api/drop-target-monitor");try{return eR=!0,this.internalMonitor.canDropOnTarget(this.targetId)}finally{eR=!1}}},{key:"isOver",value:function(e){return!!this.targetId&&this.internalMonitor.isOverTarget(this.targetId,e)}},{key:"getItemType",value:function(){return this.internalMonitor.getItemType()}},{key:"getItem",value:function(){return this.internalMonitor.getItem()}},{key:"getDropResult",value:function(){return this.internalMonitor.getDropResult()}},{key:"didDrop",value:function(){return this.internalMonitor.didDrop()}},{key:"getInitialClientOffset",value:function(){return this.internalMonitor.getInitialClientOffset()}},{key:"getInitialSourceClientOffset",value:function(){return this.internalMonitor.getInitialSourceClientOffset()}},{key:"getSourceClientOffset",value:function(){return this.internalMonitor.getSourceClientOffset()}},{key:"getClientOffset",value:function(){return this.internalMonitor.getClientOffset()}},{key:"getDifferenceFromInitialOffset",value:function(){return this.internalMonitor.getDifferenceFromInitialOffset()}}])&&QI(t.prototype,n),a&&QI(t,a),e}();function nR(t){return function(){var n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;if(!e.isValidElement(n)){var r=n;return t(r,a),r}var o=n;!function(e){if("string"!=typeof e.type){var t=e.type.displayName||e.type.name||"the component";throw new Error("Only native element nodes can now be passed to React DnD connectors."+"You can either wrap ".concat(t," into a <div>, or turn it into a ")+"drag source or a drop target itself.")}}(o);var i=a?function(e){return t(e,a)}:t;return function(t,n){var a=t.ref;return hT("string"!=typeof a,"Cannot connect React DnD to an element with an existing string ref. Please convert it to use a callback ref instead, or wrap it into a <span> or <div>. Read more: https://reactjs.org/docs/refs-and-the-dom.html#callback-refs"),a?e.cloneElement(t,{ref:function(e){rR(a,e),rR(n,e)}}):e.cloneElement(t,{ref:n})}(o,i)}}function aR(e){var t={};return Object.keys(e).forEach(function(n){var a=e[n];if(n.endsWith("Ref"))t[n]=e[n];else{var r=nR(a);t[n]=function(){return r}}}),t}function rR(e,t){"function"==typeof e?e(t):e.current=t}function oR(e){return oR="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},oR(e)}function iR(e){return null!==e&&"object"===oR(e)&&Object.prototype.hasOwnProperty.call(e,"current")}function lR(e,t,n,a){var r=n?n.call(a,e,t):void 0;if(void 0!==r)return!!r;if(e===t)return!0;if("object"!=typeof e||!e||"object"!=typeof t||!t)return!1;var o=Object.keys(e),i=Object.keys(t);if(o.length!==i.length)return!1;for(var l=Object.prototype.hasOwnProperty.bind(t),c=0;c<o.length;c++){var s=o[c];if(!l(s))return!1;var u=e[s],d=t[s];if(!1===(r=n?n.call(a,u,d,s):void 0)||void 0===r&&u!==d)return!1}return!0}function cR(e,t){for(var n=0;n<t.length;n++){var a=t[n];a.enumerable=a.enumerable||!1,a.configurable=!0,"value"in a&&(a.writable=!0),Object.defineProperty(e,a.key,a)}}function sR(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var uR=function(){function e(t){var n=this;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),sR(this,"hooks",aR({dragSource:function(e,t){n.clearDragSource(),n.dragSourceOptions=t||null,iR(e)?n.dragSourceRef=e:n.dragSourceNode=e,n.reconnectDragSource()},dragPreview:function(e,t){n.clearDragPreview(),n.dragPreviewOptions=t||null,iR(e)?n.dragPreviewRef=e:n.dragPreviewNode=e,n.reconnectDragPreview()}})),sR(this,"handlerId",null),sR(this,"dragSourceRef",null),sR(this,"dragSourceNode",void 0),sR(this,"dragSourceOptionsInternal",null),sR(this,"dragSourceUnsubscribe",void 0),sR(this,"dragPreviewRef",null),sR(this,"dragPreviewNode",void 0),sR(this,"dragPreviewOptionsInternal",null),sR(this,"dragPreviewUnsubscribe",void 0),sR(this,"lastConnectedHandlerId",null),sR(this,"lastConnectedDragSource",null),sR(this,"lastConnectedDragSourceOptions",null),sR(this,"lastConnectedDragPreview",null),sR(this,"lastConnectedDragPreviewOptions",null),sR(this,"backend",void 0),this.backend=t}var t,n,a;return t=e,(n=[{key:"receiveHandlerId",value:function(e){this.handlerId!==e&&(this.handlerId=e,this.reconnect())}},{key:"connectTarget",get:function(){return this.dragSource}},{key:"dragSourceOptions",get:function(){return this.dragSourceOptionsInternal},set:function(e){this.dragSourceOptionsInternal=e}},{key:"dragPreviewOptions",get:function(){return this.dragPreviewOptionsInternal},set:function(e){this.dragPreviewOptionsInternal=e}},{key:"reconnect",value:function(){this.reconnectDragSource(),this.reconnectDragPreview()}},{key:"reconnectDragSource",value:function(){var e=this.dragSource,t=this.didHandlerIdChange()||this.didConnectedDragSourceChange()||this.didDragSourceOptionsChange();t&&this.disconnectDragSource(),this.handlerId&&(e?t&&(this.lastConnectedHandlerId=this.handlerId,this.lastConnectedDragSource=e,this.lastConnectedDragSourceOptions=this.dragSourceOptions,this.dragSourceUnsubscribe=this.backend.connectDragSource(this.handlerId,e,this.dragSourceOptions)):this.lastConnectedDragSource=e)}},{key:"reconnectDragPreview",value:function(){var e=this.dragPreview,t=this.didHandlerIdChange()||this.didConnectedDragPreviewChange()||this.didDragPreviewOptionsChange();t&&this.disconnectDragPreview(),this.handlerId&&(e?t&&(this.lastConnectedHandlerId=this.handlerId,this.lastConnectedDragPreview=e,this.lastConnectedDragPreviewOptions=this.dragPreviewOptions,this.dragPreviewUnsubscribe=this.backend.connectDragPreview(this.handlerId,e,this.dragPreviewOptions)):this.lastConnectedDragPreview=e)}},{key:"didHandlerIdChange",value:function(){return this.lastConnectedHandlerId!==this.handlerId}},{key:"didConnectedDragSourceChange",value:function(){return this.lastConnectedDragSource!==this.dragSource}},{key:"didConnectedDragPreviewChange",value:function(){return this.lastConnectedDragPreview!==this.dragPreview}},{key:"didDragSourceOptionsChange",value:function(){return!lR(this.lastConnectedDragSourceOptions,this.dragSourceOptions)}},{key:"didDragPreviewOptionsChange",value:function(){return!lR(this.lastConnectedDragPreviewOptions,this.dragPreviewOptions)}},{key:"disconnectDragSource",value:function(){this.dragSourceUnsubscribe&&(this.dragSourceUnsubscribe(),this.dragSourceUnsubscribe=void 0)}},{key:"disconnectDragPreview",value:function(){this.dragPreviewUnsubscribe&&(this.dragPreviewUnsubscribe(),this.dragPreviewUnsubscribe=void 0,this.dragPreviewNode=null,this.dragPreviewRef=null)}},{key:"dragSource",get:function(){return this.dragSourceNode||this.dragSourceRef&&this.dragSourceRef.current}},{key:"dragPreview",get:function(){return this.dragPreviewNode||this.dragPreviewRef&&this.dragPreviewRef.current}},{key:"clearDragSource",value:function(){this.dragSourceNode=null,this.dragSourceRef=null}},{key:"clearDragPreview",value:function(){this.dragPreviewNode=null,this.dragPreviewRef=null}}])&&cR(t.prototype,n),a&&cR(t,a),e}();function dR(e,t){for(var n=0;n<t.length;n++){var a=t[n];a.enumerable=a.enumerable||!1,a.configurable=!0,"value"in a&&(a.writable=!0),Object.defineProperty(e,a.key,a)}}function pR(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var fR=function(){function e(t){var n=this;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),pR(this,"hooks",aR({dropTarget:function(e,t){n.clearDropTarget(),n.dropTargetOptions=t,iR(e)?n.dropTargetRef=e:n.dropTargetNode=e,n.reconnect()}})),pR(this,"handlerId",null),pR(this,"dropTargetRef",null),pR(this,"dropTargetNode",void 0),pR(this,"dropTargetOptionsInternal",null),pR(this,"unsubscribeDropTarget",void 0),pR(this,"lastConnectedHandlerId",null),pR(this,"lastConnectedDropTarget",null),pR(this,"lastConnectedDropTargetOptions",null),pR(this,"backend",void 0),this.backend=t}var t,n,a;return t=e,(n=[{key:"connectTarget",get:function(){return this.dropTarget}},{key:"reconnect",value:function(){var e=this.didHandlerIdChange()||this.didDropTargetChange()||this.didOptionsChange();e&&this.disconnectDropTarget();var t=this.dropTarget;this.handlerId&&(t?e&&(this.lastConnectedHandlerId=this.handlerId,this.lastConnectedDropTarget=t,this.lastConnectedDropTargetOptions=this.dropTargetOptions,this.unsubscribeDropTarget=this.backend.connectDropTarget(this.handlerId,t,this.dropTargetOptions)):this.lastConnectedDropTarget=t)}},{key:"receiveHandlerId",value:function(e){e!==this.handlerId&&(this.handlerId=e,this.reconnect())}},{key:"dropTargetOptions",get:function(){return this.dropTargetOptionsInternal},set:function(e){this.dropTargetOptionsInternal=e}},{key:"didHandlerIdChange",value:function(){return this.lastConnectedHandlerId!==this.handlerId}},{key:"didDropTargetChange",value:function(){return this.lastConnectedDropTarget!==this.dropTarget}},{key:"didOptionsChange",value:function(){return!lR(this.lastConnectedDropTargetOptions,this.dropTargetOptions)}},{key:"disconnectDropTarget",value:function(){this.unsubscribeDropTarget&&(this.unsubscribeDropTarget(),this.unsubscribeDropTarget=void 0)}},{key:"dropTarget",get:function(){return this.dropTargetNode||this.dropTargetRef&&this.dropTargetRef.current}},{key:"clearDropTarget",value:function(){this.dropTargetRef=null,this.dropTargetNode=null}}])&&dR(t.prototype,n),a&&dR(t,a),e}();var mR="undefined"!=typeof window?e.useLayoutEffect:e.useEffect;function hR(e){return hR="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},hR(e)}function gR(e,t){for(var n=0;n<t.length;n++){var a=t[n];a.enumerable=a.enumerable||!1,a.configurable=!0,"value"in a&&(a.writable=!0),Object.defineProperty(e,a.key,a)}}function bR(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var vR=function(){function e(t,n,a){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),bR(this,"spec",void 0),bR(this,"monitor",void 0),bR(this,"connector",void 0),this.spec=t,this.monitor=n,this.connector=a}var t,n,a;return t=e,(n=[{key:"beginDrag",value:function(){var e,t=this.spec,n=this.monitor;return null!==(e="object"===hR(t.item)?t.item:"function"==typeof t.item?t.item(n):{})&&void 0!==e?e:null}},{key:"canDrag",value:function(){var e=this.spec,t=this.monitor;return"boolean"==typeof e.canDrag?e.canDrag:"function"!=typeof e.canDrag||e.canDrag(t)}},{key:"isDragging",value:function(e,t){var n=this.spec,a=this.monitor,r=n.isDragging;return r?r(a):t===e.getSourceId()}},{key:"endDrag",value:function(){var e=this.spec,t=this.monitor,n=this.connector,a=e.end;a&&a(t.getItem(),t),n.reconnect()}}])&&gR(t.prototype,n),a&&gR(t,a),e}();function xR(){var t=e.useContext(mT).dragDropManager;return hT(null!=t,"Expected drag drop context"),t}function yR(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null==n)return;var a,r,o=[],i=!0,l=!1;try{for(n=n.call(e);!(i=(a=n.next()).done)&&(o.push(a.value),!t||o.length!==t);i=!0);}catch(e){l=!0,r=e}finally{try{i||null==n.return||n.return()}finally{if(l)throw r}}return o}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return wR(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return wR(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function wR(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,a=new Array(t);n<t;n++)a[n]=e[n];return a}function kR(t,n,a){var r=xR(),o=function(t,n,a){var r=e.useMemo(function(){return new vR(t,n,a)},[n,a]);return e.useEffect(function(){r.spec=t},[t]),r}(t,n,a),i=function(t){return e.useMemo(function(){var e=t.type;return hT(null!=e,"spec.type must be defined"),e},[t])}(t);mR(function(){if(null!=i){var e=function(e,t,n){var a=n.getRegistry(),r=a.addSource(e,t);return[r,function(){return a.removeSource(r)}]}(i,o,r),t=yR(e,2),l=t[0],c=t[1];return n.receiveHandlerId(l),a.receiveHandlerId(l),c}},[r,n,a,o,i])}function CR(e){return function(e){if(Array.isArray(e))return ER(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(!e)return;if("string"==typeof e)return ER(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return ER(e,t)}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function ER(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,a=new Array(t);n<t;n++)a[n]=e[n];return a}function SR(t,n){var a=CR(n||[]);return null==n&&"function"!=typeof t&&a.push(t),e.useMemo(function(){return"function"==typeof t?t():t},a)}var NR=function e(t,n){if(t===n)return!0;if(t&&n&&"object"==typeof t&&"object"==typeof n){if(t.constructor!==n.constructor)return!1;var a,r,o;if(Array.isArray(t)){if((a=t.length)!=n.length)return!1;for(r=a;0!==r--;)if(!e(t[r],n[r]))return!1;return!0}if(t.constructor===RegExp)return t.source===n.source&&t.flags===n.flags;if(t.valueOf!==Object.prototype.valueOf)return t.valueOf()===n.valueOf();if(t.toString!==Object.prototype.toString)return t.toString()===n.toString();if((a=(o=Object.keys(t)).length)!==Object.keys(n).length)return!1;for(r=a;0!==r--;)if(!Object.prototype.hasOwnProperty.call(n,o[r]))return!1;for(r=a;0!==r--;){var i=o[r];if(!e(t[i],n[i]))return!1}return!0}return t!=t&&n!=n};function OR(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null==n)return;var a,r,o=[],i=!0,l=!1;try{for(n=n.call(e);!(i=(a=n.next()).done)&&(o.push(a.value),!t||o.length!==t);i=!0);}catch(e){l=!0,r=e}finally{try{i||null==n.return||n.return()}finally{if(l)throw r}}return o}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return PR(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return PR(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function PR(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,a=new Array(t);n<t;n++)a[n]=e[n];return a}function DR(t,n,a){var r=OR(e.useState(function(){return n(t)}),2),o=r[0],i=r[1],l=e.useCallback(function(){var e=n(t);NR(o,e)||(i(e),a&&a())},[o,t,a]);return mR(l),[o,l]}function TR(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null==n)return;var a,r,o=[],i=!0,l=!1;try{for(n=n.call(e);!(i=(a=n.next()).done)&&(o.push(a.value),!t||o.length!==t);i=!0);}catch(e){l=!0,r=e}finally{try{i||null==n.return||n.return()}finally{if(l)throw r}}return o}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return IR(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return IR(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function IR(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,a=new Array(t);n<t;n++)a[n]=e[n];return a}function RR(e,t,n){return function(e,t,n){var a=TR(DR(e,t,n),2),r=a[0],o=a[1];return mR(function(){var t=e.getHandlerId();if(null!=t)return e.subscribeToStateChange(o,{handlerIds:[t]})},[e,o]),r}(t,e||function(){return{}},function(){return n.reconnect()})}function MR(t){return e.useMemo(function(){return t.hooks.dragSource()},[t])}function zR(t){return e.useMemo(function(){return t.hooks.dragPreview()},[t])}function jR(t,n){var a=SR(t,n);hT(!a.begin,"useDrag::spec.begin was deprecated in v14. Replace spec.begin() with spec.item(). (see more here - https://react-dnd.github.io/react-dnd/docs/api/use-drag)");var r,o=(r=xR(),e.useMemo(function(){return new ZI(r)},[r])),i=function(t,n){var a=xR(),r=e.useMemo(function(){return new uR(a.getBackend())},[a]);return mR(function(){return r.dragSourceOptions=t||null,r.reconnect(),function(){return r.disconnectDragSource()}},[r,t]),mR(function(){return r.dragPreviewOptions=n||null,r.reconnect(),function(){return r.disconnectDragPreview()}},[r,n]),r}(a.options,a.previewOptions);return kR(a,o,i),[RR(a.collect,o,i),MR(i),zR(i)]}function AR(e,t){for(var n=0;n<t.length;n++){var a=t[n];a.enumerable=a.enumerable||!1,a.configurable=!0,"value"in a&&(a.writable=!0),Object.defineProperty(e,a.key,a)}}function LR(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var FR=function(){function e(t,n){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),LR(this,"spec",void 0),LR(this,"monitor",void 0),this.spec=t,this.monitor=n}var t,n,a;return t=e,(n=[{key:"canDrop",value:function(){var e=this.spec,t=this.monitor;return!e.canDrop||e.canDrop(t.getItem(),t)}},{key:"hover",value:function(){var e=this.spec,t=this.monitor;e.hover&&e.hover(t.getItem(),t)}},{key:"drop",value:function(){var e=this.spec,t=this.monitor;if(e.drop)return e.drop(t.getItem(),t)}}])&&AR(t.prototype,n),a&&AR(t,a),e}();function _R(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null==n)return;var a,r,o=[],i=!0,l=!1;try{for(n=n.call(e);!(i=(a=n.next()).done)&&(o.push(a.value),!t||o.length!==t);i=!0);}catch(e){l=!0,r=e}finally{try{i||null==n.return||n.return()}finally{if(l)throw r}}return o}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return VR(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return VR(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function VR(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,a=new Array(t);n<t;n++)a[n]=e[n];return a}function KR(t,n,a){var r=xR(),o=function(t,n){var a=e.useMemo(function(){return new FR(t,n)},[n]);return e.useEffect(function(){a.spec=t},[t]),a}(t,n),i=function(t){var n=t.accept;return e.useMemo(function(){return hT(null!=t.accept,"accept must be defined"),Array.isArray(n)?n:[n]},[n])}(t);mR(function(){var e=function(e,t,n){var a=n.getRegistry(),r=a.addTarget(e,t);return[r,function(){return a.removeTarget(r)}]}(i,o,r),t=_R(e,2),l=t[0],c=t[1];return n.receiveHandlerId(l),a.receiveHandlerId(l),c},[r,n,o,a,i.map(function(e){return e.toString()}).join("|")])}function HR(t){return e.useMemo(function(){return t.hooks.dropTarget()},[t])}function BR(t,n){var a,r=SR(t,n),o=(a=xR(),e.useMemo(function(){return new tR(a)},[a])),i=function(t){var n=xR(),a=e.useMemo(function(){return new fR(n.getBackend())},[n]);return mR(function(){return a.dropTargetOptions=t||null,a.reconnect(),function(){return a.disconnectDropTarget()}},[t]),a}(r.options);return KR(r,o,i),[RR(r.collect,o,i),HR(i)]}k('.drop-over-downward td{border-bottom:2px dashed #5860f8!important}.drop-over-upward td{border-top:2px dashed #5860f8!important}.editable-cell-value-wrap{cursor:pointer;min-height:20px;min-width:50px;position:relative}.editable-row:hover .editable-cell-value-wrap:after,[data-theme=dark] .editable-row:hover .editable-cell-value-wrap:after{border:1px dashed #5860f8;bottom:0;content:"";left:0;position:absolute;right:0;top:0;z-index:1}');const{Option:$R}=Nu,UR=f.default.createContext(null),WR=e.memo(({vc:t,open:a,index:r,moveRow:o,className:i,style:l,...c})=>{const[s]=dy.useForm(),u=e.useRef(null),[{isOver:d,dropClassName:p},f]=BR({accept:"DraggableBodyRow",collect:e=>{const{index:t}=e.getItem()||{};return t===r?{}:{isOver:e.isOver(),dropClassName:t<r?" drop-over-downward":" drop-over-upward"}},drop:e=>{o(e.index,r)}}),[,m]=jR({type:"DraggableBodyRow",item:{index:r},collect:e=>({isDragging:e.isDragging()})});a&&f(m(u));const h={ref:u,className:`${i}${d?p:""}`,style:{cursor:a?"move":"auto",...l},...c};return n.jsx(dy,{size:"small",component:!1,form:s,children:n.jsx(UR.Provider,{value:s,children:t?t.body.row(h,u):n.jsx("tr",{...h})})})},(e,t)=>e.index===t.index&&e.open===t.open&&e.vc===t.vc&&e.className===t.className&&e.style===t.style&&e.moveRow===t.moveRow);var YR=e.memo(({vc:t,columns:a,record:r,recordIndex:o,dataIndex:i,title:l,rowSpanNum:c,colSpanNum:s,rowSpan:u,colSpan:d,editable:p,inputType:f,valueType:h,valueEnum:g,recordSelectField:b,controlRender:v,render:y,formChange:w,remoteConfig:k,children:C,formItemProps:E,handleSave:S,placeholder:N,triggerRemoteSearch:O,...P})=>{const D=e.useContext(UR),[T,I]=e.useState(!1),[R,M]=e.useState(!1),[z,j]=e.useState({}),A=e.useRef(null);e.useEffect(()=>{T&&A.current.focus()},[T]),e.useEffect(()=>{"RemoteSearch"===h&&r&&r[i]&&k?.remoteApi&&O&&L(void 0,i,r,k?.remoteApi)},[k?.remoteApi,r?.[i],O]);const L=(e,t,n,a)=>{a&&(M(!0),a(e,n).then(e=>{M(!1),t&&j(n=>({...n,[t]:e}))}))},F=()=>{_()},_=()=>{I(!1)},V=()=>{let e=r[i];null!=e&&""!==e&&("DatePicker"!==h&&"DateTimePicker"!==h||(e=x.default(e)),"status"===i&&(e=String(e))),I(!T),D.setFieldsValue({[i]:e})},K=e.useCallback(e=>{const t={DateTimePicker:"YYYY-MM-DD HH:mm:ss",DatePicker:"YYYY-MM-DD"};return Object.keys(t).includes(h)&&e[i]&&(e[i]=e[i].format(t[h])),e},[h,i]),H=e.useMemo(()=>{if(h&&i){if(g&&("Select"===h||"AutoComplete"===h))return pP(g,r[i]);if("RemoteSearch"===h&&z[i])return pP(z[i],r[i]);if(r[b]&&"RecordSelect"===h)return pP(r[b],r[i]);if(x.default.isMoment(r[i]))return K({...r})[i]}return C},[h,i,g,z,r,C,b,K]),B=(e,t)=>{let a=null;const o=(e,t)=>{let n="";const a=function(e){for(let t of e)if(t)if(dP({data:t,type:"String"}))n+=t;else{const e=t.props.children;dP({data:e,type:"Object"})&&a([e]),dP({data:e,type:"Array"})&&a(e),dP({data:e,type:"String"})&&(n+=e)}};return a([t.children]),n.toLowerCase().indexOf(e.toLowerCase())>=0},l=e=>m.default.isArray(e)?e.map((e,t)=>n.jsx($R,{value:e.value,children:e.label},t)):null;switch(e){case"RecordSelect":a=n.jsx(Nu,{ref:A,open:T,allowClear:!0,showSearch:!0,dropdownMatchSelectWidth:!1,placeholder:N||t,onChange:$,onBlur:F,optionFilterProp:"children",filterOption:o,children:l(r[b])});break;case"Select":a=n.jsx(Nu,{ref:A,open:T,dropdownMatchSelectWidth:!1,onChange:$,onBlur:F,placeholder:N||t,children:l(g)});break;case"DatePicker":a=n.jsx(mx,{ref:A,open:T,onChange:$,onBlur:F,placeholder:N||t});break;case"DateTimePicker":a=n.jsx(mx,{ref:A,open:T,onChange:$,onBlur:F,placeholder:N||t,showTime:!0});break;case"AutoComplete":a=n.jsx(Nu,{ref:A,open:T,allowClear:!0,showSearch:!0,dropdownMatchSelectWidth:!1,placeholder:N||t,onChange:$,onBlur:F,optionFilterProp:"children",filterOption:o,children:l(g)});break;case"RemoteSearch":let e=g;z[i]&&(e=z[i]),a=n.jsx(Nu,{ref:A,open:T,mode:k.remoteMode,placeholder:N||t,notFoundContent:R?n.jsx(Yy,{size:"small"}):null,dropdownMatchSelectWidth:!1,filterOption:!1,allowClear:!0,showSearch:!0,onChange:$,onBlur:F,onFocus:()=>L(void 0,i,r,k.remoteApi),onSearch:e=>L(e,i,r,k.remoteApi),children:i&&l(e)});break;default:a=n.jsx(Hb,{ref:A,onPressEnter:$,onBlur:$,placeholder:N||t,type:f||"text"})}return a},$=async()=>{try{const e=await D.validateFields();let t={...r,...e};t[i]=t[i]||void 0,t=K(t),w&&(t=await w(t)||t),r[i]!==t[i]&&S(t,i),_()}catch(e){console.log("保存表单字段失败:",e)}};let U=C;const W=e.useMemo(()=>y?y(r[i],r,o):H,[y,r,o,i,H]);U=p?T?n.jsx(dy.Item,{style:{margin:0},name:i,rules:E?E.rules:void 0,children:B(h,l)}):n.jsx("div",{className:"editable-cell-value-wrap",onClick:V,children:W}):W,v&&(U=v(r,U));const Y=e.useCallback((e,a)=>t?n.jsx(t.body.cell,{...e,children:a}):n.jsx("td",{...e,children:a}),[t]);return u||d?Y({...P,rowSpan:u,colSpan:d,title:r&&r[i]},U):0!==c&&0!==s?Y({...P,rowSpan:c,colSpan:u,title:r&&r[i]},U):null});function qR(e){var t=null;return function(){return null==t&&(t=e()),t}}function GR(e,t){for(var n=0;n<t.length;n++){var a=t[n];a.enumerable=a.enumerable||!1,a.configurable=!0,"value"in a&&(a.writable=!0),Object.defineProperty(e,a.key,a)}}function XR(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var ZR=function(){function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),XR(this,"entered",[]),XR(this,"isNodeInDocument",void 0),this.isNodeInDocument=t}var t,n,a;return t=e,n=[{key:"enter",value:function(e){var t=this,n=this.entered.length;return this.entered=function(e,t){var n=new Set,a=function(e){return n.add(e)};e.forEach(a),t.forEach(a);var r=[];return n.forEach(function(e){return r.push(e)}),r}(this.entered.filter(function(n){return t.isNodeInDocument(n)&&(!n.contains||n.contains(e))}),[e]),0===n&&this.entered.length>0}},{key:"leave",value:function(e){var t,n,a=this.entered.length;return this.entered=(t=this.entered.filter(this.isNodeInDocument),n=e,t.filter(function(e){return e!==n})),a>0&&0===this.entered.length}},{key:"reset",value:function(){this.entered=[]}}],n&&GR(t.prototype,n),a&&GR(t,a),e}(),QR=qR(function(){return/firefox/i.test(navigator.userAgent)}),JR=qR(function(){return Boolean(window.safari)});function eM(e,t){for(var n=0;n<t.length;n++){var a=t[n];a.enumerable=a.enumerable||!1,a.configurable=!0,"value"in a&&(a.writable=!0),Object.defineProperty(e,a.key,a)}}function tM(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var nM=function(){function e(t,n){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),tM(this,"xs",void 0),tM(this,"ys",void 0),tM(this,"c1s",void 0),tM(this,"c2s",void 0),tM(this,"c3s",void 0);for(var a=t.length,r=[],o=0;o<a;o++)r.push(o);r.sort(function(e,n){return t[e]<t[n]?-1:1});for(var i,l,c=[],s=[],u=0;u<a-1;u++)i=t[u+1]-t[u],l=n[u+1]-n[u],c.push(i),s.push(l/i);for(var d=[s[0]],p=0;p<c.length-1;p++){var f=s[p],m=s[p+1];if(f*m<=0)d.push(0);else{i=c[p];var h=c[p+1],g=i+h;d.push(3*g/((g+h)/f+(g+i)/m))}}d.push(s[s.length-1]);for(var b,v=[],x=[],y=0;y<d.length-1;y++){b=s[y];var w=d[y],k=1/c[y],C=w+d[y+1]-b-b;v.push((b-w-C)*k),x.push(C*k*k)}this.xs=t,this.ys=n,this.c1s=d,this.c2s=v,this.c3s=x}var t,n,a;return t=e,n=[{key:"interpolate",value:function(e){var t=this.xs,n=this.ys,a=this.c1s,r=this.c2s,o=this.c3s,i=t.length-1;if(e===t[i])return n[i];for(var l,c=0,s=o.length-1;c<=s;){var u=t[l=Math.floor(.5*(c+s))];if(u<e)c=l+1;else{if(!(u>e))return n[l];s=l-1}}var d=e-t[i=Math.max(0,s)],p=d*d;return n[i]+a[i]*d+r[i]*p+o[i]*d*p}}],n&&eM(t.prototype,n),a&&eM(t,a),e}();function aM(e){var t=1===e.nodeType?e:e.parentElement;if(!t)return null;var n=t.getBoundingClientRect(),a=n.top;return{x:n.left,y:a}}function rM(e){return{x:e.clientX,y:e.clientY}}function oM(e,t,n,a,r){var o,i,l="IMG"===(o=t).nodeName&&(QR()||!(null!==(i=document.documentElement)&&void 0!==i&&i.contains(o))),c=aM(l?e:t),s={x:n.x-c.x,y:n.y-c.y},u=e.offsetWidth,d=e.offsetHeight,p=a.anchorX,f=a.anchorY,m=function(e,t,n,a){var r=e?t.width:n,o=e?t.height:a;return JR()&&e&&(o/=window.devicePixelRatio,r/=window.devicePixelRatio),{dragPreviewWidth:r,dragPreviewHeight:o}}(l,t,u,d),h=m.dragPreviewWidth,g=m.dragPreviewHeight,b=r.offsetX,v=r.offsetY,x=0===v||v;return{x:0===b||b?b:new nM([0,.5,1],[s.x,s.x/u*h,s.x+h-u]).interpolate(p),y:x?v:function(){var e=new nM([0,.5,1],[s.y,s.y/d*g,s.y+g-d]).interpolate(f);return JR()&&l&&(e+=(window.devicePixelRatio-1)*g),e}()}}var iM,lM="__NATIVE_FILE__",cM="__NATIVE_URL__",sM="__NATIVE_TEXT__",uM="__NATIVE_HTML__",dM=Object.freeze({__proto__:null,FILE:lM,URL:cM,TEXT:sM,HTML:uM});function pM(e,t,n){var a=t.reduce(function(t,n){return t||e.getData(n)},"");return null!=a?a:n}function fM(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var mM=(fM(iM={},lM,{exposeProperties:{files:function(e){return Array.prototype.slice.call(e.files)},items:function(e){return e.items},dataTransfer:function(e){return e}},matchesTypes:["Files"]}),fM(iM,uM,{exposeProperties:{html:function(e,t){return pM(e,t,"")},dataTransfer:function(e){return e}},matchesTypes:["Html","text/html"]}),fM(iM,cM,{exposeProperties:{urls:function(e,t){return pM(e,t,"").split("\n")},dataTransfer:function(e){return e}},matchesTypes:["Url","text/uri-list"]}),fM(iM,sM,{exposeProperties:{text:function(e,t){return pM(e,t,"")},dataTransfer:function(e){return e}},matchesTypes:["Text","text/plain"]}),iM);function hM(e,t){for(var n=0;n<t.length;n++){var a=t[n];a.enumerable=a.enumerable||!1,a.configurable=!0,"value"in a&&(a.writable=!0),Object.defineProperty(e,a.key,a)}}function gM(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var bM=function(){function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),gM(this,"item",void 0),gM(this,"config",void 0),this.config=t,this.item={},this.initializeExposedProperties()}var t,n,a;return t=e,(n=[{key:"initializeExposedProperties",value:function(){var e=this;Object.keys(this.config.exposeProperties).forEach(function(t){Object.defineProperty(e.item,t,{configurable:!0,enumerable:!0,get:function(){return console.warn("Browser doesn't allow reading \"".concat(t,'" until the drop event.')),null}})})}},{key:"loadDataTransfer",value:function(e){var t=this;if(e){var n={};Object.keys(this.config.exposeProperties).forEach(function(a){n[a]={value:t.config.exposeProperties[a](e,t.config.matchesTypes),configurable:!0,enumerable:!0}}),Object.defineProperties(this.item,n)}}},{key:"canDrag",value:function(){return!0}},{key:"beginDrag",value:function(){return this.item}},{key:"isDragging",value:function(e,t){return t===e.getSourceId()}},{key:"endDrag",value:function(){}}])&&hM(t.prototype,n),a&&hM(t,a),e}();function vM(e){if(!e)return null;var t=Array.prototype.slice.call(e.types||[]);return Object.keys(mM).filter(function(e){return mM[e].matchesTypes.some(function(e){return t.indexOf(e)>-1})})[0]||null}function xM(e,t){for(var n=0;n<t.length;n++){var a=t[n];a.enumerable=a.enumerable||!1,a.configurable=!0,"value"in a&&(a.writable=!0),Object.defineProperty(e,a.key,a)}}function yM(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var wM=function(){function e(t,n){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),yM(this,"ownerDocument",null),yM(this,"globalContext",void 0),yM(this,"optionsArgs",void 0),this.globalContext=t,this.optionsArgs=n}var t,n,a;return t=e,(n=[{key:"window",get:function(){return this.globalContext?this.globalContext:"undefined"!=typeof window?window:void 0}},{key:"document",get:function(){var e;return null!==(e=this.globalContext)&&void 0!==e&&e.document?this.globalContext.document:this.window?this.window.document:void 0}},{key:"rootElement",get:function(){var e;return(null===(e=this.optionsArgs)||void 0===e?void 0:e.rootElement)||this.window}}])&&xM(t.prototype,n),a&&xM(t,a),e}();function kM(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,a)}return n}function CM(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?kM(Object(n),!0).forEach(function(t){SM(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):kM(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function EM(e,t){for(var n=0;n<t.length;n++){var a=t[n];a.enumerable=a.enumerable||!1,a.configurable=!0,"value"in a&&(a.writable=!0),Object.defineProperty(e,a.key,a)}}function SM(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var NM=function(){function e(t,n,a){var r=this;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),SM(this,"options",void 0),SM(this,"actions",void 0),SM(this,"monitor",void 0),SM(this,"registry",void 0),SM(this,"enterLeaveCounter",void 0),SM(this,"sourcePreviewNodes",new Map),SM(this,"sourcePreviewNodeOptions",new Map),SM(this,"sourceNodes",new Map),SM(this,"sourceNodeOptions",new Map),SM(this,"dragStartSourceIds",null),SM(this,"dropTargetIds",[]),SM(this,"dragEnterTargetIds",[]),SM(this,"currentNativeSource",null),SM(this,"currentNativeHandle",null),SM(this,"currentDragSourceNode",null),SM(this,"altKeyPressed",!1),SM(this,"mouseMoveTimeoutTimer",null),SM(this,"asyncEndDragFrameId",null),SM(this,"dragOverTargetIds",null),SM(this,"lastClientOffset",null),SM(this,"hoverRafId",null),SM(this,"getSourceClientOffset",function(e){var t=r.sourceNodes.get(e);return t&&aM(t)||null}),SM(this,"endDragNativeItem",function(){r.isDraggingNativeItem()&&(r.actions.endDrag(),r.currentNativeHandle&&r.registry.removeSource(r.currentNativeHandle),r.currentNativeHandle=null,r.currentNativeSource=null)}),SM(this,"isNodeInDocument",function(e){return Boolean(e&&r.document&&r.document.body&&r.document.body.contains(e))}),SM(this,"endDragIfSourceWasRemovedFromDOM",function(){var e=r.currentDragSourceNode;null==e||r.isNodeInDocument(e)||r.clearCurrentDragSourceNode()&&r.monitor.isDragging()&&r.actions.endDrag()}),SM(this,"handleTopDragStartCapture",function(){r.clearCurrentDragSourceNode(),r.dragStartSourceIds=[]}),SM(this,"handleTopDragStart",function(e){if(!e.defaultPrevented){var t=r.dragStartSourceIds;r.dragStartSourceIds=null;var n=rM(e);r.monitor.isDragging()&&r.actions.endDrag(),r.actions.beginDrag(t||[],{publishSource:!1,getSourceClientOffset:r.getSourceClientOffset,clientOffset:n});var a=e.dataTransfer,o=vM(a);if(r.monitor.isDragging()){if(a&&"function"==typeof a.setDragImage){var i=r.monitor.getSourceId(),l=r.sourceNodes.get(i),c=r.sourcePreviewNodes.get(i)||l;if(c){var s=r.getCurrentSourcePreviewNodeOptions(),u=oM(l,c,n,{anchorX:s.anchorX,anchorY:s.anchorY},{offsetX:s.offsetX,offsetY:s.offsetY});a.setDragImage(c,u.x,u.y)}}try{null==a||a.setData("application/json",{})}catch(e){}r.setCurrentDragSourceNode(e.target),r.getCurrentSourcePreviewNodeOptions().captureDraggingState?r.actions.publishDragSource():setTimeout(function(){return r.actions.publishDragSource()},0)}else if(o)r.beginDragNativeItem(o);else{if(a&&!a.types&&(e.target&&!e.target.hasAttribute||!e.target.hasAttribute("draggable")))return;e.preventDefault()}}}),SM(this,"handleTopDragEndCapture",function(){r.clearCurrentDragSourceNode()&&r.monitor.isDragging()&&r.actions.endDrag()}),SM(this,"handleTopDragEnterCapture",function(e){if(r.dragEnterTargetIds=[],r.enterLeaveCounter.enter(e.target)&&!r.monitor.isDragging()){var t=e.dataTransfer,n=vM(t);n&&r.beginDragNativeItem(n,t)}}),SM(this,"handleTopDragEnter",function(e){var t=r.dragEnterTargetIds;(r.dragEnterTargetIds=[],r.monitor.isDragging())&&(r.altKeyPressed=e.altKey,t.length>0&&r.actions.hover(t,{clientOffset:rM(e)}),t.some(function(e){return r.monitor.canDropOnTarget(e)})&&(e.preventDefault(),e.dataTransfer&&(e.dataTransfer.dropEffect=r.getCurrentDropEffect())))}),SM(this,"handleTopDragOverCapture",function(){r.dragOverTargetIds=[]}),SM(this,"handleTopDragOver",function(e){var t=r.dragOverTargetIds;if(r.dragOverTargetIds=[],!r.monitor.isDragging())return e.preventDefault(),void(e.dataTransfer&&(e.dataTransfer.dropEffect="none"));r.altKeyPressed=e.altKey,r.lastClientOffset=rM(e),null===r.hoverRafId&&"undefined"!=typeof requestAnimationFrame&&(r.hoverRafId=requestAnimationFrame(function(){r.monitor.isDragging()&&r.actions.hover(t||[],{clientOffset:r.lastClientOffset}),r.hoverRafId=null})),(t||[]).some(function(e){return r.monitor.canDropOnTarget(e)})?(e.preventDefault(),e.dataTransfer&&(e.dataTransfer.dropEffect=r.getCurrentDropEffect())):r.isDraggingNativeItem()?e.preventDefault():(e.preventDefault(),e.dataTransfer&&(e.dataTransfer.dropEffect="none"))}),SM(this,"handleTopDragLeaveCapture",function(e){r.isDraggingNativeItem()&&e.preventDefault(),r.enterLeaveCounter.leave(e.target)&&r.isDraggingNativeItem()&&setTimeout(function(){return r.endDragNativeItem()},0)}),SM(this,"handleTopDropCapture",function(e){var t;(r.dropTargetIds=[],r.isDraggingNativeItem())?(e.preventDefault(),null===(t=r.currentNativeSource)||void 0===t||t.loadDataTransfer(e.dataTransfer)):vM(e.dataTransfer)&&e.preventDefault();r.enterLeaveCounter.reset()}),SM(this,"handleTopDrop",function(e){var t=r.dropTargetIds;r.dropTargetIds=[],r.actions.hover(t,{clientOffset:rM(e)}),r.actions.drop({dropEffect:r.getCurrentDropEffect()}),r.isDraggingNativeItem()?r.endDragNativeItem():r.monitor.isDragging()&&r.actions.endDrag()}),SM(this,"handleSelectStart",function(e){var t=e.target;"function"==typeof t.dragDrop&&("INPUT"===t.tagName||"SELECT"===t.tagName||"TEXTAREA"===t.tagName||t.isContentEditable||(e.preventDefault(),t.dragDrop()))}),this.options=new wM(n,a),this.actions=t.getActions(),this.monitor=t.getMonitor(),this.registry=t.getRegistry(),this.enterLeaveCounter=new ZR(this.isNodeInDocument)}var t,n,a;return t=e,n=[{key:"profile",value:function(){var e,t;return{sourcePreviewNodes:this.sourcePreviewNodes.size,sourcePreviewNodeOptions:this.sourcePreviewNodeOptions.size,sourceNodeOptions:this.sourceNodeOptions.size,sourceNodes:this.sourceNodes.size,dragStartSourceIds:(null===(e=this.dragStartSourceIds)||void 0===e?void 0:e.length)||0,dropTargetIds:this.dropTargetIds.length,dragEnterTargetIds:this.dragEnterTargetIds.length,dragOverTargetIds:(null===(t=this.dragOverTargetIds)||void 0===t?void 0:t.length)||0}}},{key:"window",get:function(){return this.options.window}},{key:"document",get:function(){return this.options.document}},{key:"rootElement",get:function(){return this.options.rootElement}},{key:"setup",value:function(){var e=this.rootElement;if(void 0!==e){if(e.__isReactDndBackendSetUp)throw new Error("Cannot have two HTML5 backends at the same time.");e.__isReactDndBackendSetUp=!0,this.addEventListeners(e)}}},{key:"teardown",value:function(){var e,t=this.rootElement;void 0!==t&&(t.__isReactDndBackendSetUp=!1,this.removeEventListeners(this.rootElement),this.clearCurrentDragSourceNode(),this.asyncEndDragFrameId&&(null===(e=this.window)||void 0===e||e.cancelAnimationFrame(this.asyncEndDragFrameId)))}},{key:"connectDragPreview",value:function(e,t,n){var a=this;return this.sourcePreviewNodeOptions.set(e,n),this.sourcePreviewNodes.set(e,t),function(){a.sourcePreviewNodes.delete(e),a.sourcePreviewNodeOptions.delete(e)}}},{key:"connectDragSource",value:function(e,t,n){var a=this;this.sourceNodes.set(e,t),this.sourceNodeOptions.set(e,n);var r=function(t){return a.handleDragStart(t,e)},o=function(e){return a.handleSelectStart(e)};return t.setAttribute("draggable","true"),t.addEventListener("dragstart",r),t.addEventListener("selectstart",o),function(){a.sourceNodes.delete(e),a.sourceNodeOptions.delete(e),t.removeEventListener("dragstart",r),t.removeEventListener("selectstart",o),t.setAttribute("draggable","false")}}},{key:"connectDropTarget",value:function(e,t){var n=this,a=function(t){return n.handleDragEnter(t,e)},r=function(t){return n.handleDragOver(t,e)},o=function(t){return n.handleDrop(t,e)};return t.addEventListener("dragenter",a),t.addEventListener("dragover",r),t.addEventListener("drop",o),function(){t.removeEventListener("dragenter",a),t.removeEventListener("dragover",r),t.removeEventListener("drop",o)}}},{key:"addEventListeners",value:function(e){e.addEventListener&&(e.addEventListener("dragstart",this.handleTopDragStart),e.addEventListener("dragstart",this.handleTopDragStartCapture,!0),e.addEventListener("dragend",this.handleTopDragEndCapture,!0),e.addEventListener("dragenter",this.handleTopDragEnter),e.addEventListener("dragenter",this.handleTopDragEnterCapture,!0),e.addEventListener("dragleave",this.handleTopDragLeaveCapture,!0),e.addEventListener("dragover",this.handleTopDragOver),e.addEventListener("dragover",this.handleTopDragOverCapture,!0),e.addEventListener("drop",this.handleTopDrop),e.addEventListener("drop",this.handleTopDropCapture,!0))}},{key:"removeEventListeners",value:function(e){e.removeEventListener&&(e.removeEventListener("dragstart",this.handleTopDragStart),e.removeEventListener("dragstart",this.handleTopDragStartCapture,!0),e.removeEventListener("dragend",this.handleTopDragEndCapture,!0),e.removeEventListener("dragenter",this.handleTopDragEnter),e.removeEventListener("dragenter",this.handleTopDragEnterCapture,!0),e.removeEventListener("dragleave",this.handleTopDragLeaveCapture,!0),e.removeEventListener("dragover",this.handleTopDragOver),e.removeEventListener("dragover",this.handleTopDragOverCapture,!0),e.removeEventListener("drop",this.handleTopDrop),e.removeEventListener("drop",this.handleTopDropCapture,!0))}},{key:"getCurrentSourceNodeOptions",value:function(){var e=this.monitor.getSourceId(),t=this.sourceNodeOptions.get(e);return CM({dropEffect:this.altKeyPressed?"copy":"move"},t||{})}},{key:"getCurrentDropEffect",value:function(){return this.isDraggingNativeItem()?"copy":this.getCurrentSourceNodeOptions().dropEffect}},{key:"getCurrentSourcePreviewNodeOptions",value:function(){var e=this.monitor.getSourceId();return CM({anchorX:.5,anchorY:.5,captureDraggingState:!1},this.sourcePreviewNodeOptions.get(e)||{})}},{key:"isDraggingNativeItem",value:function(){var e=this.monitor.getItemType();return Object.keys(dM).some(function(t){return dM[t]===e})}},{key:"beginDragNativeItem",value:function(e,t){this.clearCurrentDragSourceNode(),this.currentNativeSource=function(e,t){var n=new bM(mM[e]);return n.loadDataTransfer(t),n}(e,t),this.currentNativeHandle=this.registry.addSource(e,this.currentNativeSource),this.actions.beginDrag([this.currentNativeHandle])}},{key:"setCurrentDragSourceNode",value:function(e){var t=this;this.clearCurrentDragSourceNode(),this.currentDragSourceNode=e,this.mouseMoveTimeoutTimer=setTimeout(function(){var e;return null===(e=t.rootElement)||void 0===e?void 0:e.addEventListener("mousemove",t.endDragIfSourceWasRemovedFromDOM,!0)},1e3)}},{key:"clearCurrentDragSourceNode",value:function(){var e;return!!this.currentDragSourceNode&&(this.currentDragSourceNode=null,this.rootElement&&(null===(e=this.window)||void 0===e||e.clearTimeout(this.mouseMoveTimeoutTimer||void 0),this.rootElement.removeEventListener("mousemove",this.endDragIfSourceWasRemovedFromDOM,!0)),this.mouseMoveTimeoutTimer=null,!0)}},{key:"handleDragStart",value:function(e,t){e.defaultPrevented||(this.dragStartSourceIds||(this.dragStartSourceIds=[]),this.dragStartSourceIds.unshift(t))}},{key:"handleDragEnter",value:function(e,t){this.dragEnterTargetIds.unshift(t)}},{key:"handleDragOver",value:function(e,t){null===this.dragOverTargetIds&&(this.dragOverTargetIds=[]),this.dragOverTargetIds.unshift(t)}},{key:"handleDrop",value:function(e,t){this.dropTargetIds.unshift(t)}}],n&&EM(t.prototype,n),a&&EM(t,a),e}();const OM=function(e,t,n){return new NM(e,t,n)},PM=e=>n.jsx(UI,{backend:OM,context:window,children:e.children});k(".ant-table-wrapper .ant-table-cell{color:#333}.ant-table-wrapper .ant-table-thead>tr>th{font-weight:700}.ant-table-wrapper .ant-table-tbody>tr>td,.ant-table-wrapper .ant-table-thead>tr>td,.ant-table-wrapper .ant-table-thead>tr>th{padding:6px 8px}.ant-table-wrapper .ant-table-tbody>tr>td.ant-table-cell .ant-form-item .ant-form-item-control-input{min-height:auto}.ant-table-wrapper .ant-table-tbody .btn-operate{height:26px;width:26px}.ant-table-wrapper .ant-table-pagination.ant-pagination{margin-bottom:10px;margin-top:10px;padding-bottom:10px;padding-top:10px}.ant-table-wrapper .react-resizable{background-clip:padding-box;position:relative}.ant-table-wrapper .react-resizable-handle{bottom:0;cursor:col-resize;height:100%;position:absolute;right:-5px;width:10px;z-index:1}");var DM=e.memo(e.forwardRef((t,a)=>{const r=e.useMemo(()=>{const e=t.extra||{};return{tableConfig:e.tableConfig,virtual:e.virtual,rowType:e.rowType,scroll:e.scroll,apiMethod:e.apiMethod,columns:e.columns||[],data:e.data,drag:e.drag,onSelect:e.onSelect,hidSortColumn:e.hidSortColumn,paginationConfig:e.paginationConfig,getCheckboxProps:e.getCheckboxProps,resultFilter:e.resultFilter,getTableSuccessData:e.getTableSuccessData}},[t.extra]),o=e.useRef(),l=e.useRef(!0),c=e.useRef({position:["bottomCenter"],size:"small",current:1,total:0,pages:0,pageSize:10,showSizeChanger:!0,orderByInfo:void 0}),s=e.useRef([]),[u,d]=e.useState(r.columns),[p,f]=e.useState(!1),[h,g]=N.useSetState({listData:[],selectRowIds:[],selectRowArray:[]}),[b,v]=e.useState({x:void 0,y:330}),x=e.useMemo(()=>r.tableConfig&&r.tableConfig.rowKey?r.tableConfig.rowKey:"id",[r.tableConfig]),y=e.useRef(),w=e.useRef(0),k=e.useMemo(()=>{const e=i.v4(),t=r.virtual;if(t&&t.open){const n={...t.config,vid:t.config?.vid||e,height:t.config?.height||500,resetTopWhenDataChange:t.config?.resetTopWhenDataChange||!1},a=h.listData.length||0;return(!y.current||w.current!==a)&&(console.log("创建虚拟滚动列表"),y.current=uD(n),w.current=a),y.current}y.current=void 0,w.current=0},[r.virtual,h.listData.length]),C=e.useMemo(()=>{const e={header:{cell:fT},body:{row:e=>n.jsx(WR,{...e,vc:k}),cell:e=>n.jsx(YR,{...e,vc:k,columns:u})}};try{if(k){const t=e;return{...k,header:t.header,body:{...k.body,cell:t.body.cell,row:t.body.row}}}return e}catch(t){return console.error("虚拟列表配置失败,请检查配置项",t),e}},[u,k]),E=!(!m.default.isFunction(r.apiMethod)||!l.current)&&{size:"small",position:["bottomCenter"],showTotal:e=>`共${e}条`,showSizeChanger:!0,showQuickJumper:!0,...c.current},S=e.useCallback((e,t)=>{const n=new Map;return e.forEach(e=>{n.set(e[x],e)}),t.forEach(e=>{n.set(e[x],e)}),Array.from(n.values())},[x]),O=e.useCallback(async e=>{let t=!0;f(!0),e&&(void 0!==e.updateSelected&&(t=e.updateSelected,delete e.updateSelected),"not-reset"===e.pagination&&delete e.pagination,o.current={...o.current,...e});try{const n={...o.current};for(let e in c.current){const t=c.current[e];"orderByInfo"===e&&(n.orderByInfo=t),"current"===e&&(n.page=t),"pageSize"===e&&(n.size=n.size||t)}if(e&&e.current&&(n.page=e.current,c.current.current=e.current),r.apiMethod){delete n.current;const e=await r.apiMethod(m.default.pickBy(n,m.default.identity));let a=[];m.default.isArray(e.data.content)&&(!1!==r.paginationConfig?l.current=!0:l.current=!1,a=e.data.content,c.current.total=e.data.total,c.current.pages=e.data.pages),m.default.isArray(e.data)&&(l.current=!1,a=e.data),r.resultFilter&&(a=await r.resultFilter(a)),t&&g(e=>{let t=[...e.selectRowIds],n=[];const r=a=>{if(e.selectRowIds.length)for(let o of a){for(let a of e.selectRowIds)o[x]===a&&(t.push(a),n.push(o));o.children&&r(o.children)}};return r(a),e.selectRowIds=Array.from(new Set(t)),e.selectRowArray=S(e.selectRowArray,n),e}),g(e=>(e.listData=a,e)),r.getTableSuccessData&&r.getTableSuccessData(e)}}catch(e){}f(!1)},[r,x,S,g]),P=e=>{!m.default.isEqual(e,c.current)&&l.current&&(c.current={...c.current,...e},O())},D={fixed:!0,type:r.rowType,selectedRowKeys:h.selectRowIds,getCheckboxProps:r.getCheckboxProps,onSelectAll:(e,t,n)=>{g(t=>{let a=[...t.selectRowIds],o=[...t.selectRowArray];return e?(a=m.default.uniq([...a,...n.map(e=>e[x])]),o=m.default.uniqBy([...o,...n],x)):(a=a.filter(e=>!n.some(t=>t[x]===e)),o=o.filter(e=>!n.some(t=>t[x]===e[x]))),r.onSelect&&r.onSelect(o,a),t.selectRowIds=a,t.selectRowArray=o,t})},onSelect:(e,t)=>{g(n=>{let a=[...n.selectRowIds],o=[...n.selectRowArray];return"checkbox"===r.rowType&&(t?(a.push(e[x]),o.push(e)):(a=a.filter(t=>t!==e[x]),o=o.filter(t=>t[x]!==e[x]))),"radio"===r.rowType&&t&&(a=[e[x]],o=[e]),r.onSelect&&r.onSelect(o,a),n.selectRowIds=a,n.selectRowArray=o,n})}},T=e=>(t,{size:n})=>{d(t=>{const a=[...t];return a[e]={...a[e],width:n.width},s.current=a,a})},I=e.useCallback(e=>{g(t=>{let n=JSON.parse(JSON.stringify(t.listData));for(let[t,a]of n.entries())if(a[x]===e[x]){n[t]={...n[t],...e};break}return t.listData=n,t})},[x,g]),R=e.useCallback(async(e,t)=>{const n=h.listData[e],a=OP(h.listData,{$splice:[[e,1],[t,0,n]]});f(!0);try{if(r.drag){const n=JSON.parse(JSON.stringify(a)),o=JSON.parse(JSON.stringify(h.listData)),i=[e,t].sort();!1!==await r.drag.moveRow(e,t,n,o,n.slice(i[0],i[1]+1))&&g(e=>(e.listData=n,e))}}finally{f(!1)}},[r.drag,g,h.listData]),M=e.useCallback(e=>{let t=[];const n=e=>{for(let a of e){for(let e of h.selectRowIds)a[x]===e&&t.push(a);a.children&&n(a.children)}};return n(e),t},[x,h.selectRowIds]);return e.useEffect(()=>{(async()=>{let e=[...r.columns];r.hidSortColumn||e.unshift({width:55,fixed:"left",title:"序号",dataIndex:"sequence",render:(e,t,n)=>{const a=c.current;return Object.keys(a).length?((a.current||0)-1)*(a.pageSize||0)+n+1:n+1}});for(let[t,n]of e.entries()){let a={...n,onHeaderCell:e=>({width:e.width,onResize:T(t)}),onCell:(e,t)=>({record:e,recordIndex:t,dataIndex:n.dataIndex,title:n.title,rowSpanNum:"function"==typeof n.rowSpanNum?n.rowSpanNum(e,t):n.rowSpanNum,colSpanNum:"function"==typeof n.colSpanNum?n.colSpanNum(e,t):n.colSpanNum,editable:"function"==typeof n.editable?n.editable(e,t):n.editable,inputType:n.inputType,valueType:n.valueType,valueEnum:n.valueEnum,recordSelectField:n.recordSelectField,controlRender:n.controlRender,render:n.render,formChange:n.formChange,remoteConfig:n.remoteConfig,formItemProps:n.formItemProps,handleSave:I,placeholder:n.placeholder,triggerRemoteSearch:n.triggerRemoteSearch})},r=s.current.find(e=>e.dataIndex===n.dataIndex&&e.title===n.title);r&&(a.width=r.width),e[t]=a}d(e)})()},[r.columns,r.hidSortColumn,I]),e.useEffect(()=>{m.default.isArray(r.data)&&g(e=>(e.listData=JSON.parse(JSON.stringify(r.data)),e))},[r.data,g]),e.useEffect(()=>{const e=document.getElementById("slider-menu"),t=document.getElementById("router-render");if(void 0!==r.scroll?.x||void 0!==r.scroll?.y)v(e=>({...e,...r.scroll}));else if(e&&t){let n=parseInt(window.getComputedStyle(t,null).paddingLeft);v(t=>(t.x=document.body.clientWidth-e.clientWidth-(2*n+43),t))}},[r.scroll]),e.useEffect(()=>{r.paginationConfig&&(c.current={...c.current,...r.paginationConfig})},[r.paginationConfig]),e.useImperativeHandle(a,()=>({setTableLoading:e=>{f(e)},getPages:()=>({...c.current}),getTableList:async(e,t)=>{e&&("not-reset"===e.pagination?e.current=c.current.current:void 0===e.current&&(e.current=1),e.clearSelectIds&&(delete e.clearSelectIds,g(e=>(e.selectRowArray=[],e.selectRowIds=[],e)))),await O(e),t&&t()},setRowSelected:(e,t)=>{let n=e;!0===t&&(n=Array.from(new Set([...h.selectRowIds,...e]))),g({selectRowIds:n})},setRowSelectedBy:e=>{g({selectRowArray:e})},getSelectIds:()=>h.selectRowIds,clearSelectIds:()=>{g({selectRowIds:[],selectRowArray:[]})},getSelectRowsArray:()=>{const e=M(h.listData);return m.default.cloneDeep(S(h.selectRowArray,e))},removeSelectIds:e=>{if(!Array.isArray(e)||0===e.length)return;const t=(t,n)=>t.filter(t=>"string"==typeof t?!e.includes(t):!e.includes(t[n]));g({selectRowIds:t(h.selectRowIds,x),selectRowArray:t(h.selectRowArray,x)})},getStaticDataList:()=>{try{return m.default.cloneDeep(h.listData||[])}catch(e){return[]}},setStaticDataList:(e,t)=>{if(e)try{if("object"!=typeof e||Array.isArray(e))Array.isArray(e)&&g(t=>(t.listData=m.default.cloneDeep(e),t));else{const t=e;g(e=>(e.listData=h.listData.map(e=>e[x]===t[x]?{...e,...t}:e),e))}t&&t()}catch(e){}}})),n.jsx(wP,{children:n.jsx(PM,{children:n.jsx(AE,{bordered:!0,rowKey:"id",rowClassName:"editable-row",loading:p,components:C,onRow:(e,t)=>({index:t,moveRow:R,open:r.drag&&r.drag.open}),columns:u,dataSource:h.listData,rowSelection:r.rowType?D:void 0,pagination:E,onChange:(e,t,n)=>{const{order:a}=n;e.orderByInfo=void 0,a&&(e.orderByInfo=`${n.field}:${"ascend"===a?1:-1}`),P(e)},scroll:b,...r.tableConfig})})})}),(e,t)=>{const n=e.extra||{},a=t.extra||{};if(!(n.apiMethod===a.apiMethod&&n.onSelect===a.onSelect&&n.drag?.moveRow===a.drag?.moveRow&&n.getCheckboxProps===a.getCheckboxProps&&n.resultFilter===a.resultFilter&&n.getTableSuccessData===a.getTableSuccessData))return!1;const r=e=>{if(!e)return e;const{apiMethod:t,onSelect:n,drag:a,getCheckboxProps:r,resultFilter:o,getTableSuccessData:i,...l}=e;return{...l,drag:a?{...a,moveRow:void 0}:void 0}};try{return m.default.isEqual(r(n),r(a))}catch(e){return r(n)===r(a)}});k("");const TM=e=>{const t={...e};return delete t.outerHeight,n.jsx(mb,{className:"empty-wrap",style:{minHeight:e&&e.outerHeight?e.outerHeight:400},align:"middle",justify:"center",children:n.jsx(da,{description:"暂无数据",...t})})};k(".from-table-modal .ant-modal-body{padding-top:15px}.from-table-modal .ant-modal-body .search-form{margin-bottom:8px}.from-table-modal .ant-modal-body .ant-table-wrapper .ant-pagination{margin-bottom:0}.from-table-modal .from-table-modal-foot{margin-top:20px}");const{Link:IM,Paragraph:RM}=dO;var MM=e.forwardRef(function(t,a){const r=e.useRef(null),o=e.useRef(),[i,l]=N.useSetState({saveLoading:!1,selectedRows:[]}),c=e.useMemo(()=>t.tableColumnsList&&t.tableColumnsList.tableConfig&&t.tableColumnsList.tableConfig.rowKey||"id",[t.tableColumnsList]),s=e.useMemo(()=>{const e=t.width||0;return e>=500&&e<=800?{span:7}:e>800&&e<=1e3?{span:6}:e>1e3&&e<=1200?{span:5}:e>1200?{span:4}:{span:8}},[t.width]),u=(e,t)=>{if(o.current){let n=[],a=[];"all"===e&&o.current.clearSelectIds(),"odd"===e&&t&&(n=[t[c]],a=i.selectedRows.filter(e=>e[c]!==t[c]),o.current.removeSelectIds(n)),l({selectedRows:a})}},d=e.useCallback(async()=>{if(r.current&&o.current){let e=await r.current.formSubmit();if(e&&Object.keys(e).length){for(let t in e){const n="YYYY-MM-DD HH:mm:ss";x.default(e[t],n,!0).isValid()&&(e[t]=x.default(e[t]).format(n))}e={clearSelectIds:!0,...e},void 0!==t.clearSelectIds&&(e.clearSelectIds=t.clearSelectIds),e.clearSelectIds&&l(e=>(e.selectedRows=[],e)),t.manualParameterChange&&(e=t.manualParameterChange(e)),t.searchCallback?t.searchCallback(e).then(t=>{t&&o.current?.getTableList(e)}):o.current.getTableList(e)}}else o.current?.getTableList()},[t,l]),p=()=>{if(r.current){let e=[];const n=t.searchNoResetFiled||[];if(t.searchFormList)for(let a of t.searchFormList){if(a.unionConfig)for(let t of a.unionConfig.unionItems)t.name&&!n.includes(t.name)&&e.push(t.name);a.name&&!n.includes(a.name)&&e.push(a.name)}r.current.formReset(e)}d()};return e.useEffect(()=>{t.visible&&(t.autoGetList&&o.current?.getTableList(),t.openSelected&&t.openSelected.visible&&l(e=>(e.selectedRows=t.openSelected?.defaultValues||[],o.current?.setRowSelectedBy(e.selectedRows),o.current?.setRowSelected(e.selectedRows.map(e=>e[c])),e)))},[t.autoGetList,t.openSelected,t.visible,c,l]),e.useImperativeHandle(a,()=>({...r.current,...o.current,setSavaLoading:e=>{l({saveLoading:e})}})),n.jsxs(iP,{className:"from-table-modal",forceRender:!0,maskClosable:!1,footer:null,width:t.width,visible:t.visible,title:t.title||"弹窗",onCancel:()=>{t.onCancel&&t.onCancel()},...t.modalConfig,children:[t.topExtra,t.searchFormList?n.jsx(SP,{ref:r,rowGridConfig:{gutter:10},colGirdConfig:s,list:(f=t.searchFormList,f?f.map(e=>("Select"===e.componentName&&e.selectData&&e.selectData.length&&(e.selectData.some(e=>"全部"===e.label)||(e.selectData=[{label:"全部",value:""},...e.selectData])),e)):[]),formConfig:t.formConfig,render:()=>t.searchFormList&&t.searchFormList.length?n.jsxs(vk,{size:10,children:[n.jsx(Vd,{type:"primary",onClick:()=>{d()},children:"查询"}),n.jsx(Vd,{className:"btn-reset",onClick:p,children:"重置"})]}):n.jsx(n.Fragment,{})}):null,n.jsxs(mb,{...t.rowProps,children:[t.leftSlot?n.jsx(vb,{...t.leftSlot.colProps,children:t.leftSlot.jsx}):null,n.jsx(vb,{...t.colProps,children:n.jsxs(mb,{gutter:10,children:[n.jsx(vb,{span:t.openSelected&&t.openSelected.visible?16:24,children:n.jsx(DM,{ref:o,extra:{rowType:t.tableColumnsList.rowType,apiMethod:t.apiMethod,columns:t.tableColumnsList.list,data:t.data,onSelect:(e,n)=>{((e,n)=>{l({selectedRows:n.map(n=>{let a={};const r=e.find(e=>e[c]===n);if(a[c]=n,t.openSelected&&t.openSelected.fileName&&(a[t.openSelected.fileName]=n),r&&(a=r),t.openSelected){const e=t.openSelected.fileName,r=t.openSelected.defaultValues;if(e&&r){const t=r.find(e=>e[c]===n);t&&(a[e]=t[e])}}return a})})})(e,n),t.onSelect&&t.onSelect(e,n)},virtual:t.virtual,getTableSuccessData:t.getTableSuccessData,tableConfig:t.tableColumnsList.tableConfig,scroll:{x:"max-content"}}})}),t.openSelected&&t.openSelected.visible?n.jsx(vb,{span:8,children:n.jsx(wb,{title:"已选列表",size:"small",bodyStyle:{height:t.openSelected.height||330,overflowY:"auto"},extra:n.jsxs(n.Fragment,{children:[t.rightExport&&t.rightExport.open?n.jsx(IM,{style:{marginRight:"8px"},onClick:()=>(()=>{const e=t.rightExport?.fileName,n=t.rightExport?.headres,a=i.selectedRows;if(a&&a.length&&n&&n.length){let t="";const r=n.map(e=>e.title);t+=r.join(",")+"\n",a.forEach(e=>{const a=n.map(t=>{const n=void 0!==e[t.key]?e[t.key]:"";return`"${String(n).replace(/"/g,'""')}"`});t+=a.join(",")+"\n"});const o=new Blob(["\ufeff"+t],{type:"text/csv;charset=utf-8;"}),i=document.createElement("a"),l=URL.createObjectURL(o);i.setAttribute("href",l),i.setAttribute("download",`${e}.csv`),i.style.visibility="hidden",document.body.appendChild(i),i.click(),document.body.removeChild(i)}else ni.warn("请选择导出数据",1.5)})(),children:"导出"}):null,n.jsx(IM,{onClick:()=>u("all"),children:"全部移除"})]}),children:i.selectedRows.length?i.selectedRows.map(e=>{const a=e[c],r=e[t.openSelected?.fileName];return n.jsxs(mb,{gutter:12,children:[n.jsx(vb,{span:11,title:r,children:n.jsx(RM,{ellipsis:!0,children:r})}),n.jsx(vb,{span:9,title:a,children:n.jsx(RM,{ellipsis:!0,children:a})}),n.jsx(vb,{span:4,children:n.jsx(IM,{onClick:()=>u("odd",e),children:"移除"})})]},a)}):n.jsx(TM,{outerHeight:200})})}):null]})}),t.rightSlot?n.jsx(vb,{...t.rightSlot.colProps,children:t.rightSlot.jsx}):null]}),n.jsx(mb,{className:"from-table-modal-foot",justify:"center",children:n.jsx(vb,{children:n.jsxs(vk,{size:20,children:[t.onCancel?n.jsx(Vd,{onClick:()=>t.onCancel&&t.onCancel(),children:"关闭"}):null,t.onConfirm?n.jsx(Vd,{type:"primary",loading:i.saveLoading,onClick:()=>{let e=o.current?.getSelectRowsArray()||[],n=[];const a=o.current?.getStaticDataList()||[];t.onConfirm&&(o.current&&(n=o.current.getSelectIds()),l({saveLoading:!0}),t.onConfirm(e,n,a).then(e=>{l({saveLoading:!1}),e&&setTimeout(()=>{t.onCancel&&t.onCancel()},100)}).catch(e=>{l({saveLoading:!1}),ni.warn(e,1.5)}))},children:"确定"}):null]})})})]});var f});var zM=e.createContext({}),jM={aliceblue:"9ehhb",antiquewhite:"9sgk7",aqua:"1ekf",aquamarine:"4zsno",azure:"9eiv3",beige:"9lhp8",bisque:"9zg04",black:"0",blanchedalmond:"9zhe5",blue:"73",blueviolet:"5e31e",brown:"6g016",burlywood:"8ouiv",cadetblue:"3qba8",chartreuse:"4zshs",chocolate:"87k0u",coral:"9yvyo",cornflowerblue:"3xael",cornsilk:"9zjz0",crimson:"8l4xo",cyan:"1ekf",darkblue:"3v",darkcyan:"rkb",darkgoldenrod:"776yz",darkgray:"6mbhl",darkgreen:"jr4",darkgrey:"6mbhl",darkkhaki:"7ehkb",darkmagenta:"5f91n",darkolivegreen:"3bzfz",darkorange:"9yygw",darkorchid:"5z6x8",darkred:"5f8xs",darksalmon:"9441m",darkseagreen:"5lwgf",darkslateblue:"2th1n",darkslategray:"1ugcv",darkslategrey:"1ugcv",darkturquoise:"14up",darkviolet:"5rw7n",deeppink:"9yavn",deepskyblue:"11xb",dimgray:"442g9",dimgrey:"442g9",dodgerblue:"16xof",firebrick:"6y7tu",floralwhite:"9zkds",forestgreen:"1cisi",fuchsia:"9y70f",gainsboro:"8m8kc",ghostwhite:"9pq0v",goldenrod:"8j4f4",gold:"9zda8",gray:"50i2o",green:"pa8",greenyellow:"6senj",grey:"50i2o",honeydew:"9eiuo",hotpink:"9yrp0",indianred:"80gnw",indigo:"2xcoy",ivory:"9zldc",khaki:"9edu4",lavenderblush:"9ziet",lavender:"90c8q",lawngreen:"4vk74",lemonchiffon:"9zkct",lightblue:"6s73a",lightcoral:"9dtog",lightcyan:"8s1rz",lightgoldenrodyellow:"9sjiq",lightgray:"89jo3",lightgreen:"5nkwg",lightgrey:"89jo3",lightpink:"9z6wx",lightsalmon:"9z2ii",lightseagreen:"19xgq",lightskyblue:"5arju",lightslategray:"4nwk9",lightslategrey:"4nwk9",lightsteelblue:"6wau6",lightyellow:"9zlcw",lime:"1edc",limegreen:"1zcxe",linen:"9shk6",magenta:"9y70f",maroon:"4zsow",mediumaquamarine:"40eju",mediumblue:"5p",mediumorchid:"79qkz",mediumpurple:"5r3rv",mediumseagreen:"2d9ip",mediumslateblue:"4tcku",mediumspringgreen:"1di2",mediumturquoise:"2uabw",mediumvioletred:"7rn9h",midnightblue:"z980",mintcream:"9ljp6",mistyrose:"9zg0x",moccasin:"9zfzp",navajowhite:"9zest",navy:"3k",oldlace:"9wq92",olive:"50hz4",olivedrab:"472ub",orange:"9z3eo",orangered:"9ykg0",orchid:"8iu3a",palegoldenrod:"9bl4a",palegreen:"5yw0o",paleturquoise:"6v4ku",palevioletred:"8k8lv",papayawhip:"9zi6t",peachpuff:"9ze0p",peru:"80oqn",pink:"9z8wb",plum:"8nba5",powderblue:"6wgdi",purple:"4zssg",rebeccapurple:"3zk49",red:"9y6tc",rosybrown:"7cv4f",royalblue:"2jvtt",saddlebrown:"5fmkz",salmon:"9rvci",sandybrown:"9jn1c",seagreen:"1tdnb",seashell:"9zje6",sienna:"6973h",silver:"7ir40",skyblue:"5arjf",slateblue:"45e4t",slategray:"4e100",slategrey:"4e100",snow:"9zke2",springgreen:"1egv",steelblue:"2r1kk",tan:"87yx8",teal:"pds",thistle:"8ggk8",tomato:"9yqfb",turquoise:"2j4r4",violet:"9b10u",wheat:"9ld4j",white:"9zldr",whitesmoke:"9lhpx",yellow:"9zl6o",yellowgreen:"61fzm"};const AM=Math.round;function LM(e,t){const n=e.replace(/^[^(]*\((.*)/,"$1").replace(/\).*/,"").match(/\d*\.?\d+%?/g)||[],a=n.map(e=>parseFloat(e));for(let e=0;e<3;e+=1)a[e]=t(a[e]||0,n[e]||"",e);return n[3]?a[3]=n[3].includes("%")?a[3]/100:a[3]:a[3]=1,a}const FM=(e,t,n)=>0===n?e:e/100;function _M(e,t){const n=t||255;return e>n?n:e<0?0:e}class VM{isValid=!0;r=0;g=0;b=0;a=1;_h;_s;_l;_v;_max;_min;_brightness;constructor(e){function t(t){return t[0]in e&&t[1]in e&&t[2]in e}if(e)if("string"==typeof e){const n=e.trim();function a(e){return n.startsWith(e)}if(/^#?[A-F\d]{3,8}$/i.test(n))this.fromHexString(n);else if(a("rgb"))this.fromRgbString(n);else if(a("hsl"))this.fromHslString(n);else if(a("hsv")||a("hsb"))this.fromHsvString(n);else{const r=jM[n.toLowerCase()];r&&this.fromHexString(parseInt(r,36).toString(16).padStart(6,"0"))}}else if(e instanceof VM)this.r=e.r,this.g=e.g,this.b=e.b,this.a=e.a,this._h=e._h,this._s=e._s,this._l=e._l,this._v=e._v;else if(t("rgb"))this.r=_M(e.r),this.g=_M(e.g),this.b=_M(e.b),this.a="number"==typeof e.a?_M(e.a,1):1;else if(t("hsl"))this.fromHsl(e);else{if(!t("hsv"))throw new Error("@ant-design/fast-color: unsupported input "+JSON.stringify(e));this.fromHsv(e)}else;}setR(e){return this._sc("r",e)}setG(e){return this._sc("g",e)}setB(e){return this._sc("b",e)}setA(e){return this._sc("a",e,1)}setHue(e){const t=this.toHsv();return t.h=e,this._c(t)}getLuminance(){function e(e){const t=e/255;return t<=.03928?t/12.92:Math.pow((t+.055)/1.055,2.4)}return.2126*e(this.r)+.7152*e(this.g)+.0722*e(this.b)}getHue(){if(void 0===this._h){const e=this.getMax()-this.getMin();this._h=0===e?0:AM(60*(this.r===this.getMax()?(this.g-this.b)/e+(this.g<this.b?6:0):this.g===this.getMax()?(this.b-this.r)/e+2:(this.r-this.g)/e+4))}return this._h}getSaturation(){if(void 0===this._s){const e=this.getMax()-this.getMin();this._s=0===e?0:e/this.getMax()}return this._s}getLightness(){return void 0===this._l&&(this._l=(this.getMax()+this.getMin())/510),this._l}getValue(){return void 0===this._v&&(this._v=this.getMax()/255),this._v}getBrightness(){return void 0===this._brightness&&(this._brightness=(299*this.r+587*this.g+114*this.b)/1e3),this._brightness}darken(e=10){const t=this.getHue(),n=this.getSaturation();let a=this.getLightness()-e/100;return a<0&&(a=0),this._c({h:t,s:n,l:a,a:this.a})}lighten(e=10){const t=this.getHue(),n=this.getSaturation();let a=this.getLightness()+e/100;return a>1&&(a=1),this._c({h:t,s:n,l:a,a:this.a})}mix(e,t=50){const n=this._c(e),a=t/100,r=e=>(n[e]-this[e])*a+this[e],o={r:AM(r("r")),g:AM(r("g")),b:AM(r("b")),a:AM(100*r("a"))/100};return this._c(o)}tint(e=10){return this.mix({r:255,g:255,b:255,a:1},e)}shade(e=10){return this.mix({r:0,g:0,b:0,a:1},e)}onBackground(e){const t=this._c(e),n=this.a+t.a*(1-this.a),a=e=>AM((this[e]*this.a+t[e]*t.a*(1-this.a))/n);return this._c({r:a("r"),g:a("g"),b:a("b"),a:n})}isDark(){return this.getBrightness()<128}isLight(){return this.getBrightness()>=128}equals(e){return this.r===e.r&&this.g===e.g&&this.b===e.b&&this.a===e.a}clone(){return this._c(this)}toHexString(){let e="#";const t=(this.r||0).toString(16);e+=2===t.length?t:"0"+t;const n=(this.g||0).toString(16);e+=2===n.length?n:"0"+n;const a=(this.b||0).toString(16);if(e+=2===a.length?a:"0"+a,"number"==typeof this.a&&this.a>=0&&this.a<1){const t=AM(255*this.a).toString(16);e+=2===t.length?t:"0"+t}return e}toHsl(){return{h:this.getHue(),s:this.getSaturation(),l:this.getLightness(),a:this.a}}toHslString(){const e=this.getHue(),t=AM(100*this.getSaturation()),n=AM(100*this.getLightness());return 1!==this.a?`hsla(${e},${t}%,${n}%,${this.a})`:`hsl(${e},${t}%,${n}%)`}toHsv(){return{h:this.getHue(),s:this.getSaturation(),v:this.getValue(),a:this.a}}toRgb(){return{r:this.r,g:this.g,b:this.b,a:this.a}}toRgbString(){return 1!==this.a?`rgba(${this.r},${this.g},${this.b},${this.a})`:`rgb(${this.r},${this.g},${this.b})`}toString(){return this.toRgbString()}_sc(e,t,n){const a=this.clone();return a[e]=_M(t,n),a}_c(e){return new this.constructor(e)}getMax(){return void 0===this._max&&(this._max=Math.max(this.r,this.g,this.b)),this._max}getMin(){return void 0===this._min&&(this._min=Math.min(this.r,this.g,this.b)),this._min}fromHexString(e){const t=e.replace("#","");function n(e,n){return parseInt(t[e]+t[n||e],16)}t.length<6?(this.r=n(0),this.g=n(1),this.b=n(2),this.a=t[3]?n(3)/255:1):(this.r=n(0,1),this.g=n(2,3),this.b=n(4,5),this.a=t[6]?n(6,7)/255:1)}fromHsl({h:e,s:t,l:n,a:a}){if(this._h=e%360,this._s=t,this._l=n,this.a="number"==typeof a?a:1,t<=0){const e=AM(255*n);this.r=e,this.g=e,this.b=e}let r=0,o=0,i=0;const l=e/60,c=(1-Math.abs(2*n-1))*t,s=c*(1-Math.abs(l%2-1));l>=0&&l<1?(r=c,o=s):l>=1&&l<2?(r=s,o=c):l>=2&&l<3?(o=c,i=s):l>=3&&l<4?(o=s,i=c):l>=4&&l<5?(r=s,i=c):l>=5&&l<6&&(r=c,i=s);const u=n-c/2;this.r=AM(255*(r+u)),this.g=AM(255*(o+u)),this.b=AM(255*(i+u))}fromHsv({h:e,s:t,v:n,a:a}){this._h=e%360,this._s=t,this._v=n,this.a="number"==typeof a?a:1;const r=AM(255*n);if(this.r=r,this.g=r,this.b=r,t<=0)return;const o=e/60,i=Math.floor(o),l=o-i,c=AM(n*(1-t)*255),s=AM(n*(1-t*l)*255),u=AM(n*(1-t*(1-l))*255);switch(i){case 0:this.g=u,this.b=c;break;case 1:this.r=s,this.b=c;break;case 2:this.r=c,this.b=u;break;case 3:this.r=c,this.g=s;break;case 4:this.r=u,this.g=c;break;default:this.g=c,this.b=s}}fromHsvString(e){const t=LM(e,FM);this.fromHsv({h:t[0],s:t[1],v:t[2],a:t[3]})}fromHslString(e){const t=LM(e,FM);this.fromHsl({h:t[0],s:t[1],l:t[2],a:t[3]})}fromRgbString(e){const t=LM(e,(e,t)=>t.includes("%")?AM(e/100*255):e);this.r=t[0],this.g=t[1],this.b=t[2],this.a=t[3]}}const KM=[{index:7,amount:15},{index:6,amount:25},{index:5,amount:30},{index:5,amount:45},{index:5,amount:65},{index:5,amount:85},{index:4,amount:90},{index:3,amount:95},{index:2,amount:97},{index:1,amount:98}];function HM(e,t,n){let a;return a=Math.round(e.h)>=60&&Math.round(e.h)<=240?n?Math.round(e.h)-2*t:Math.round(e.h)+2*t:n?Math.round(e.h)+2*t:Math.round(e.h)-2*t,a<0?a+=360:a>=360&&(a-=360),a}function BM(e,t,n){if(0===e.h&&0===e.s)return e.s;let a;return a=n?e.s-.16*t:4===t?e.s+.16:e.s+.05*t,a>1&&(a=1),n&&5===t&&a>.1&&(a=.1),a<.06&&(a=.06),Math.round(100*a)/100}function $M(e,t,n){let a;return a=n?e.v+.05*t:e.v-.15*t,a=Math.max(0,Math.min(1,a)),Math.round(100*a)/100}const UM=["#e6f4ff","#bae0ff","#91caff","#69b1ff","#4096ff","#1677ff","#0958d9","#003eb3","#002c8c","#001d66"];UM.primary=UM[5];const WM="data-rc-order",YM="data-rc-priority",qM=new Map;function GM({mark:e}={}){return e?e.startsWith("data-")?e:`data-${e}`:"rc-util-key"}function XM(e){if(e.attachTo)return e.attachTo;return document.querySelector("head")||document.body}function ZM(e){return Array.from((qM.get(e)||e).children).filter(e=>"STYLE"===e.tagName)}function QM(e,t={}){if("undefined"==typeof window||!window.document||!window.document.createElement)return null;const{csp:n,prepend:a,priority:r=0}=t,o=function(e){return"queue"===e?"prependQueue":e?"prepend":"append"}(a),i="prependQueue"===o,l=document.createElement("style");l.setAttribute(WM,o),i&&r&&l.setAttribute(YM,`${r}`),n?.nonce&&(l.nonce=n?.nonce),l.innerHTML=e;const c=XM(t),{firstChild:s}=c;if(a){if(i){const e=(t.styles||ZM(c)).filter(e=>{if(!["prepend","prependQueue"].includes(e.getAttribute(WM)))return!1;const t=Number(e.getAttribute(YM)||0);return r>=t});if(e.length)return c.insertBefore(l,e[e.length-1].nextSibling),l}c.insertBefore(l,s)}else c.appendChild(l);return l}function JM(e,t,n={}){const a=XM(n),r=ZM(a),o={...n,styles:r};!function(e,t){const n=qM.get(e);if(!n||!function(e,t){if(!e)return!1;if(e.contains)return e.contains(t);let n=t;for(;n;){if(n===e)return!0;n=n.parentNode}return!1}(document,n)){const n=QM("",t),{parentNode:a}=n;qM.set(e,a),e.removeChild(n)}}(a,o);const i=function(e,t={}){let{styles:n}=t;return n||=ZM(XM(t)),n.find(n=>n.getAttribute(GM(t))===e)}(t,o);if(i)return o.csp?.nonce&&i.nonce!==o.csp?.nonce&&(i.nonce=o.csp?.nonce),i.innerHTML!==e&&(i.innerHTML=e),i;const l=QM(e,o);return l.setAttribute(GM(o),t),l}function ez(e){return e?.getRootNode?.()}function tz(e){return function(e){return ez(e)instanceof ShadowRoot}(e)?ez(e):null}let nz={};const az=[];function rz(e,t){if("production"!==process.env.NODE_ENV&&!e&&void 0!==console){const e=az.reduce((e,t)=>t(e??"","warning"),t);e&&console.error(`Warning: ${e}`)}}function oz(e,t){if("production"!==process.env.NODE_ENV&&!e&&void 0!==console){const e=az.reduce((e,t)=>t(e??"","note"),t);e&&console.warn(`Note: ${e}`)}}function iz(e,t,n){t||nz[n]||(e(!1,n),nz[n]=!0)}function lz(e,t){iz(rz,e,t)}function cz(e){return"object"==typeof e&&"string"==typeof e.name&&"string"==typeof e.theme&&("object"==typeof e.icon||"function"==typeof e.icon)}function sz(e={}){return Object.keys(e).reduce((t,n)=>{const a=e[n];if("class"===n)t.className=a,delete t.class;else delete t[n],t[(r=n,r.replace(/-(.)/g,(e,t)=>t.toUpperCase()))]=a;var r;return t},{})}function uz(e,t,n){return n?f.default.createElement(e.tag,{key:t,...sz(e.attrs),...n},(e.children||[]).map((n,a)=>uz(n,`${t}-${e.tag}-${a}`))):f.default.createElement(e.tag,{key:t,...sz(e.attrs)},(e.children||[]).map((n,a)=>uz(n,`${t}-${e.tag}-${a}`)))}function dz(e){return function(e,t={}){const n=[],a=new VM(e),r=a.toHsv();for(let e=5;e>0;e-=1){const t=new VM({h:HM(r,e,!0),s:BM(r,e,!0),v:$M(r,e,!0)});n.push(t)}n.push(a);for(let e=1;e<=4;e+=1){const t=new VM({h:HM(r,e),s:BM(r,e),v:$M(r,e)});n.push(t)}return"dark"===t.theme?KM.map(({index:e,amount:a})=>new VM(t.backgroundColor||"#141414").mix(n[e],a).toHexString()):n.map(e=>e.toHexString())}(e)[0]}function pz(e){return e?Array.isArray(e)?e:[e]:[]}lz.preMessage=e=>{az.push(e)},lz.resetWarned=function(){nz={}},lz.noteOnce=function(e,t){iz(oz,e,t)};const fz={primaryColor:"#333",secondaryColor:"#E6E6E6",calculated:!1};const mz=t=>{const{icon:n,className:a,onClick:r,style:o,primaryColor:i,secondaryColor:l,...c}=t,s=p.useRef();let u=fz;if(i&&(u={primaryColor:i,secondaryColor:l||dz(i)}),(t=>{const{csp:n,prefixCls:a,layer:r}=e.useContext(zM);let o="\n.anticon {\n display: inline-flex;\n align-items: center;\n color: inherit;\n font-style: normal;\n line-height: 0;\n text-align: center;\n text-transform: none;\n vertical-align: -0.125em;\n text-rendering: optimizeLegibility;\n -webkit-font-smoothing: antialiased;\n -moz-osx-font-smoothing: grayscale;\n}\n\n.anticon > * {\n line-height: 1;\n}\n\n.anticon svg {\n display: inline-block;\n}\n\n.anticon::before {\n display: none;\n}\n\n.anticon .anticon-icon {\n display: block;\n}\n\n.anticon[tabindex] {\n cursor: pointer;\n}\n\n.anticon-spin::before,\n.anticon-spin {\n display: inline-block;\n -webkit-animation: loadingCircle 1s infinite linear;\n animation: loadingCircle 1s infinite linear;\n}\n\n@-webkit-keyframes loadingCircle {\n 100% {\n -webkit-transform: rotate(360deg);\n transform: rotate(360deg);\n }\n}\n\n@keyframes loadingCircle {\n 100% {\n -webkit-transform: rotate(360deg);\n transform: rotate(360deg);\n }\n}\n";a&&(o=o.replace(/anticon/g,a)),r&&(o=`@layer ${r} {\n${o}\n}`),e.useEffect(()=>{const e=tz(t.current);JM(o,"@ant-design-icons",{prepend:!r,csp:n,attachTo:e})},[])})(s),function(e,t){lz(e,`[@ant-design/icons] ${t}`)}(cz(n),`icon should be icon definiton, but got ${n}`),!cz(n))return null;let d=n;return d&&"function"==typeof d.icon&&(d={...d,icon:d.icon(u.primaryColor,u.secondaryColor)}),uz(d.icon,`svg-${d.name}`,{className:a,onClick:r,style:o,"data-icon":d.name,width:"1em",height:"1em",fill:"currentColor","aria-hidden":"true",...c,ref:s})};mz.displayName="IconReact",mz.getTwoToneColors=function(){return{...fz}},mz.setTwoToneColors=function({primaryColor:e,secondaryColor:t}){fz.primaryColor=e,fz.secondaryColor=t||dz(e),fz.calculated=!!t};var hz=mz;function gz(e){const[t,n]=pz(e);return hz.setTwoToneColors({primaryColor:t,secondaryColor:n})}function bz(){return bz=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var a in n)Object.prototype.hasOwnProperty.call(n,a)&&(e[a]=n[a])}return e},bz.apply(this,arguments)}gz(UM.primary);const vz=p.forwardRef((e,t)=>{const{className:n,icon:a,spin:r,rotate:o,tabIndex:i,onClick:l,twoToneColor:c,...s}=e,{prefixCls:u="anticon",rootClassName:d}=p.useContext(zM),f=B(d,u,{[`${u}-${a.name}`]:!!a.name,[`${u}-spin`]:!!r||"loading"===a.name},n);let m=i;void 0===m&&l&&(m=-1);const h=o?{msTransform:`rotate(${o}deg)`,transform:`rotate(${o}deg)`}:void 0,[g,b]=pz(c);return p.createElement("span",bz({role:"img","aria-label":a.name},s,{ref:t,tabIndex:m,onClick:l,className:f}),p.createElement(hz,{icon:a,primaryColor:g,secondaryColor:b,style:h}))});vz.displayName="AntdIcon",vz.getTwoToneColor=function(){const e=hz.getTwoToneColors();return e.calculated?[e.primaryColor,e.secondaryColor]:e.primaryColor},vz.setTwoToneColor=gz;var xz=vz;function yz(){return yz=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var a in n)Object.prototype.hasOwnProperty.call(n,a)&&(e[a]=n[a])}return e},yz.apply(this,arguments)}const wz=(e,t)=>p.createElement(xz,yz({},e,{ref:t,icon:ai})),kz=p.forwardRef(wz);
27
+ */function LD(e){if("object"==typeof e&&null!==e){var t=e.$$typeof;switch(t){case xD:switch(e=e.type){case ND:case OD:case wD:case CD:case kD:case DD:return e;default:switch(e=e&&e.$$typeof){case SD:case PD:case RD:case ID:case ED:return e;default:return t}}case yD:return t}}}function FD(e){return LD(e)===OD}var _D={AsyncMode:ND,ConcurrentMode:OD,ContextConsumer:SD,ContextProvider:ED,Element:xD,ForwardRef:PD,Fragment:wD,Lazy:RD,Memo:ID,Portal:yD,Profiler:CD,StrictMode:kD,Suspense:DD,isAsyncMode:function(e){return FD(e)||LD(e)===ND},isConcurrentMode:FD,isContextConsumer:function(e){return LD(e)===SD},isContextProvider:function(e){return LD(e)===ED},isElement:function(e){return"object"==typeof e&&null!==e&&e.$$typeof===xD},isForwardRef:function(e){return LD(e)===PD},isFragment:function(e){return LD(e)===wD},isLazy:function(e){return LD(e)===RD},isMemo:function(e){return LD(e)===ID},isPortal:function(e){return LD(e)===yD},isProfiler:function(e){return LD(e)===CD},isStrictMode:function(e){return LD(e)===kD},isSuspense:function(e){return LD(e)===DD},isValidElementType:function(e){return"string"==typeof e||"function"==typeof e||e===wD||e===OD||e===CD||e===kD||e===DD||e===TD||"object"==typeof e&&null!==e&&(e.$$typeof===RD||e.$$typeof===ID||e.$$typeof===ED||e.$$typeof===SD||e.$$typeof===PD||e.$$typeof===zD||e.$$typeof===jD||e.$$typeof===AD||e.$$typeof===MD)},typeOf:LD},VD=K(function(e,t){"production"!==process.env.NODE_ENV&&function(){var e="function"==typeof Symbol&&Symbol.for,n=e?Symbol.for("react.element"):60103,a=e?Symbol.for("react.portal"):60106,r=e?Symbol.for("react.fragment"):60107,o=e?Symbol.for("react.strict_mode"):60108,i=e?Symbol.for("react.profiler"):60114,l=e?Symbol.for("react.provider"):60109,c=e?Symbol.for("react.context"):60110,s=e?Symbol.for("react.async_mode"):60111,u=e?Symbol.for("react.concurrent_mode"):60111,d=e?Symbol.for("react.forward_ref"):60112,p=e?Symbol.for("react.suspense"):60113,f=e?Symbol.for("react.suspense_list"):60120,m=e?Symbol.for("react.memo"):60115,h=e?Symbol.for("react.lazy"):60116,g=e?Symbol.for("react.block"):60121,b=e?Symbol.for("react.fundamental"):60117,v=e?Symbol.for("react.responder"):60118,x=e?Symbol.for("react.scope"):60119;function y(e){if("object"==typeof e&&null!==e){var t=e.$$typeof;switch(t){case n:var f=e.type;switch(f){case s:case u:case r:case i:case o:case p:return f;default:var g=f&&f.$$typeof;switch(g){case c:case d:case h:case m:case l:return g;default:return t}}case a:return t}}}var w=s,k=u,C=c,E=l,S=n,N=d,O=r,P=h,D=m,T=a,I=i,R=o,M=p,z=!1;function j(e){return y(e)===u}t.AsyncMode=w,t.ConcurrentMode=k,t.ContextConsumer=C,t.ContextProvider=E,t.Element=S,t.ForwardRef=N,t.Fragment=O,t.Lazy=P,t.Memo=D,t.Portal=T,t.Profiler=I,t.StrictMode=R,t.Suspense=M,t.isAsyncMode=function(e){return z||(z=!0,console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 17+. Update your code to use ReactIs.isConcurrentMode() instead. It has the exact same API.")),j(e)||y(e)===s},t.isConcurrentMode=j,t.isContextConsumer=function(e){return y(e)===c},t.isContextProvider=function(e){return y(e)===l},t.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===n},t.isForwardRef=function(e){return y(e)===d},t.isFragment=function(e){return y(e)===r},t.isLazy=function(e){return y(e)===h},t.isMemo=function(e){return y(e)===m},t.isPortal=function(e){return y(e)===a},t.isProfiler=function(e){return y(e)===i},t.isStrictMode=function(e){return y(e)===o},t.isSuspense=function(e){return y(e)===p},t.isValidElementType=function(e){return"string"==typeof e||"function"==typeof e||e===r||e===u||e===i||e===o||e===p||e===f||"object"==typeof e&&null!==e&&(e.$$typeof===h||e.$$typeof===m||e.$$typeof===l||e.$$typeof===c||e.$$typeof===d||e.$$typeof===b||e.$$typeof===v||e.$$typeof===x||e.$$typeof===g)},t.typeOf=y}()}),KD=K(function(e){"production"===process.env.NODE_ENV?e.exports=_D:e.exports=VD}),HD=Object.getOwnPropertySymbols,BD=Object.prototype.hasOwnProperty,$D=Object.prototype.propertyIsEnumerable;var UD=function(){try{if(!Object.assign)return!1;var e=new String("abc");if(e[5]="de","5"===Object.getOwnPropertyNames(e)[0])return!1;for(var t={},n=0;n<10;n++)t["_"+String.fromCharCode(n)]=n;var a=Object.getOwnPropertyNames(t).map(function(e){return t[e]});if("0123456789"!==a.join(""))return!1;var r={};return"abcdefghijklmnopqrst".split("").forEach(function(e){r[e]=e}),"abcdefghijklmnopqrst"===Object.keys(Object.assign({},r)).join("")}catch(e){return!1}}()?Object.assign:function(e,t){for(var n,a,r=function(e){if(null==e)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(e)}(e),o=1;o<arguments.length;o++){for(var i in n=Object(arguments[o]))BD.call(n,i)&&(r[i]=n[i]);if(HD){a=HD(n);for(var l=0;l<a.length;l++)$D.call(n,a[l])&&(r[a[l]]=n[a[l]])}}return r},WD=Function.call.bind(Object.prototype.hasOwnProperty),YD="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED",qD=WD,GD=function(){};if("production"!==process.env.NODE_ENV){var XD=YD,ZD={},QD=qD;GD=function(e){var t="Warning: "+e;"undefined"!=typeof console&&console.error(t);try{throw new Error(t)}catch(e){}}}function JD(e,t,n,a,r){if("production"!==process.env.NODE_ENV)for(var o in e)if(QD(e,o)){var i;try{if("function"!=typeof e[o]){var l=Error((a||"React class")+": "+n+" type `"+o+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof e[o]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw l.name="Invariant Violation",l}i=e[o](t,o,a,n,null,XD)}catch(e){i=e}if(!i||i instanceof Error||GD((a||"React class")+": type specification of "+n+" `"+o+"` is invalid; the type checker function must return `null` or an `Error` but returned a "+typeof i+". You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument)."),i instanceof Error&&!(i.message in ZD)){ZD[i.message]=!0;var c=r?r():"";GD("Failed "+n+" type: "+i.message+(null!=c?c:""))}}}JD.resetWarningCache=function(){"production"!==process.env.NODE_ENV&&(ZD={})};var eT=JD,tT=function(){};function nT(){return null}"production"!==process.env.NODE_ENV&&(tT=function(e){var t="Warning: "+e;"undefined"!=typeof console&&console.error(t);try{throw new Error(t)}catch(e){}});function aT(){}function rT(){}rT.resetWarningCache=aT;var oT=function(e,t){var n="function"==typeof Symbol&&Symbol.iterator;var a="<<anonymous>>",r={array:c("array"),bigint:c("bigint"),bool:c("boolean"),func:c("function"),number:c("number"),object:c("object"),string:c("string"),symbol:c("symbol"),any:l(nT),arrayOf:function(e){return l(function(t,n,a,r,o){if("function"!=typeof e)return new i("Property `"+o+"` of component `"+a+"` has invalid PropType notation inside arrayOf.");var l=t[n];if(!Array.isArray(l))return new i("Invalid "+r+" `"+o+"` of type `"+d(l)+"` supplied to `"+a+"`, expected an array.");for(var c=0;c<l.length;c++){var s=e(l,c,a,r,o+"["+c+"]",YD);if(s instanceof Error)return s}return null})},element:l(function(t,n,a,r,o){var l=t[n];return e(l)?null:new i("Invalid "+r+" `"+o+"` of type `"+d(l)+"` supplied to `"+a+"`, expected a single ReactElement.")}),elementType:l(function(e,t,n,a,r){var o=e[t];return KD.isValidElementType(o)?null:new i("Invalid "+a+" `"+r+"` of type `"+d(o)+"` supplied to `"+n+"`, expected a single ReactElement type.")}),instanceOf:function(e){return l(function(t,n,r,o,l){if(!(t[n]instanceof e)){var c=e.name||a;return new i("Invalid "+o+" `"+l+"` of type `"+(((s=t[n]).constructor&&s.constructor.name?s.constructor.name:a)+"` supplied to `")+r+"`, expected instance of `"+c+"`.")}var s;return null})},node:l(function(e,t,n,a,r){return u(e[t])?null:new i("Invalid "+a+" `"+r+"` supplied to `"+n+"`, expected a ReactNode.")}),objectOf:function(e){return l(function(t,n,a,r,o){if("function"!=typeof e)return new i("Property `"+o+"` of component `"+a+"` has invalid PropType notation inside objectOf.");var l=t[n],c=d(l);if("object"!==c)return new i("Invalid "+r+" `"+o+"` of type `"+c+"` supplied to `"+a+"`, expected an object.");for(var s in l)if(qD(l,s)){var u=e(l,s,a,r,o+"."+s,YD);if(u instanceof Error)return u}return null})},oneOf:function(e){if(!Array.isArray(e))return"production"!==process.env.NODE_ENV&&tT(arguments.length>1?"Invalid arguments supplied to oneOf, expected an array, got "+arguments.length+" arguments. A common mistake is to write oneOf(x, y, z) instead of oneOf([x, y, z]).":"Invalid argument supplied to oneOf, expected an array."),nT;return l(function(t,n,a,r,l){for(var c=t[n],s=0;s<e.length;s++)if(o(c,e[s]))return null;var u=JSON.stringify(e,function(e,t){return"symbol"===p(t)?String(t):t});return new i("Invalid "+r+" `"+l+"` of value `"+String(c)+"` supplied to `"+a+"`, expected one of "+u+".")})},oneOfType:function(e){if(!Array.isArray(e))return"production"!==process.env.NODE_ENV&&tT("Invalid argument supplied to oneOfType, expected an instance of array."),nT;for(var t=0;t<e.length;t++){var n=e[t];if("function"!=typeof n)return tT("Invalid argument supplied to oneOfType. Expected an array of check functions, but received "+f(n)+" at index "+t+"."),nT}return l(function(t,n,a,r,o){for(var l=[],c=0;c<e.length;c++){var s=(0,e[c])(t,n,a,r,o,YD);if(null==s)return null;s.data&&qD(s.data,"expectedType")&&l.push(s.data.expectedType)}return new i("Invalid "+r+" `"+o+"` supplied to `"+a+"`"+(l.length>0?", expected one of type ["+l.join(", ")+"]":"")+".")})},shape:function(e){return l(function(t,n,a,r,o){var l=t[n],c=d(l);if("object"!==c)return new i("Invalid "+r+" `"+o+"` of type `"+c+"` supplied to `"+a+"`, expected `object`.");for(var u in e){var f=e[u];if("function"!=typeof f)return s(a,r,o,u,p(f));var m=f(l,u,a,r,o+"."+u,YD);if(m)return m}return null})},exact:function(e){return l(function(t,n,a,r,o){var l=t[n],c=d(l);if("object"!==c)return new i("Invalid "+r+" `"+o+"` of type `"+c+"` supplied to `"+a+"`, expected `object`.");var u=UD({},t[n],e);for(var f in u){var m=e[f];if(qD(e,f)&&"function"!=typeof m)return s(a,r,o,f,p(m));if(!m)return new i("Invalid "+r+" `"+o+"` key `"+f+"` supplied to `"+a+"`.\nBad object: "+JSON.stringify(t[n],null," ")+"\nValid keys: "+JSON.stringify(Object.keys(e),null," "));var h=m(l,f,a,r,o+"."+f,YD);if(h)return h}return null})}};function o(e,t){return e===t?0!==e||1/e==1/t:e!=e&&t!=t}function i(e,t){this.message=e,this.data=t&&"object"==typeof t?t:{},this.stack=""}function l(e){if("production"!==process.env.NODE_ENV)var n={},r=0;function o(o,l,c,s,u,d,p){if(s=s||a,d=d||c,p!==YD){if(t){var f=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use `PropTypes.checkPropTypes()` to call them. Read more at http://fb.me/use-check-prop-types");throw f.name="Invariant Violation",f}if("production"!==process.env.NODE_ENV&&"undefined"!=typeof console){var m=s+":"+c;!n[m]&&r<3&&(tT("You are manually calling a React.PropTypes validation function for the `"+d+"` prop on `"+s+"`. This is deprecated and will throw in the standalone `prop-types` package. You may be seeing this warning due to a third-party PropTypes library. See https://fb.me/react-warning-dont-call-proptypes for details."),n[m]=!0,r++)}}return null==l[c]?o?null===l[c]?new i("The "+u+" `"+d+"` is marked as required in `"+s+"`, but its value is `null`."):new i("The "+u+" `"+d+"` is marked as required in `"+s+"`, but its value is `undefined`."):null:e(l,c,s,u,d)}var l=o.bind(null,!1);return l.isRequired=o.bind(null,!0),l}function c(e){return l(function(t,n,a,r,o,l){var c=t[n];return d(c)!==e?new i("Invalid "+r+" `"+o+"` of type `"+p(c)+"` supplied to `"+a+"`, expected `"+e+"`.",{expectedType:e}):null})}function s(e,t,n,a,r){return new i((e||"React class")+": "+t+" type `"+n+"."+a+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+r+"`.")}function u(t){switch(typeof t){case"number":case"string":case"undefined":return!0;case"boolean":return!t;case"object":if(Array.isArray(t))return t.every(u);if(null===t||e(t))return!0;var a=function(e){var t=e&&(n&&e[n]||e["@@iterator"]);if("function"==typeof t)return t}(t);if(!a)return!1;var r,o=a.call(t);if(a!==t.entries){for(;!(r=o.next()).done;)if(!u(r.value))return!1}else for(;!(r=o.next()).done;){var i=r.value;if(i&&!u(i[1]))return!1}return!0;default:return!1}}function d(e){var t=typeof e;return Array.isArray(e)?"array":e instanceof RegExp?"object":function(e,t){return"symbol"===e||!!t&&("Symbol"===t["@@toStringTag"]||"function"==typeof Symbol&&t instanceof Symbol)}(t,e)?"symbol":t}function p(e){if(null==e)return""+e;var t=d(e);if("object"===t){if(e instanceof Date)return"date";if(e instanceof RegExp)return"regexp"}return t}function f(e){var t=p(e);switch(t){case"array":case"object":return"an "+t;case"boolean":case"date":case"regexp":return"a "+t;default:return t}}return i.prototype=Error.prototype,r.checkPropTypes=eT,r.resetWarningCache=eT.resetWarningCache,r.PropTypes=r,r},iT=function(){function e(e,t,n,a,r,o){if(o!==YD){var i=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw i.name="Invariant Violation",i}}function t(){return e}e.isRequired=e;var n={array:e,bigint:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,elementType:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t,checkPropTypes:rT,resetWarningCache:aT};return n.PropTypes=n,n},lT=K(function(e){if("production"!==process.env.NODE_ENV){var t=KD;e.exports=oT(t.isElement,!0)}else e.exports=iT()}),cT=K(function(e,t){t.__esModule=!0,t.resizableProps=void 0;var n=function(e){return e&&e.__esModule?e:{default:e}}(lT);var a={axis:n.default.oneOf(["both","x","y","none"]),className:n.default.string,children:n.default.element.isRequired,draggableOpts:n.default.shape({allowAnyClick:n.default.bool,cancel:n.default.string,children:n.default.node,disabled:n.default.bool,enableUserSelectHack:n.default.bool,offsetParent:n.default.node,grid:n.default.arrayOf(n.default.number),handle:n.default.string,nodeRef:n.default.object,onStart:n.default.func,onDrag:n.default.func,onStop:n.default.func,onMouseDown:n.default.func,scale:n.default.number}),height:function(){for(var e=arguments.length,t=new Array(e),a=0;a<e;a++)t[a]=arguments[a];var r,o=t[0];return"both"===o.axis||"y"===o.axis?(r=n.default.number).isRequired.apply(r,t):n.default.number.apply(n.default,t)},handle:n.default.oneOfType([n.default.node,n.default.func]),handleSize:n.default.arrayOf(n.default.number),lockAspectRatio:n.default.bool,maxConstraints:n.default.arrayOf(n.default.number),minConstraints:n.default.arrayOf(n.default.number),onResizeStop:n.default.func,onResizeStart:n.default.func,onResize:n.default.func,resizeHandles:n.default.arrayOf(n.default.oneOf(["s","w","e","n","sw","nw","se","ne"])),transformScale:n.default.number,width:function(){for(var e=arguments.length,t=new Array(e),a=0;a<e;a++)t[a]=arguments[a];var r,o=t[0];return"both"===o.axis||"x"===o.axis?(r=n.default.number).isRequired.apply(r,t):n.default.number.apply(n.default,t)}};t.resizableProps=a}),sT=K(function(e,t){t.__esModule=!0,t.default=void 0;var n=function(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var n=r(t);if(n&&n.has(e))return n.get(e);var a={},o=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var i in e)if("default"!==i&&Object.prototype.hasOwnProperty.call(e,i)){var l=o?Object.getOwnPropertyDescriptor(e,i):null;l&&(l.get||l.set)?Object.defineProperty(a,i,l):a[i]=e[i]}a.default=e,n&&n.set(e,a);return a}(f.default),a=["children","className","draggableOpts","width","height","handle","handleSize","lockAspectRatio","axis","minConstraints","maxConstraints","onResize","onResizeStop","onResizeStart","resizeHandles","transformScale"];function r(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,n=new WeakMap;return(r=function(e){return e?n:t})(e)}function o(){return o=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var a in n)Object.prototype.hasOwnProperty.call(n,a)&&(e[a]=n[a])}return e},o.apply(this,arguments)}function i(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,a)}return n}function l(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?i(Object(n),!0).forEach(function(t){c(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):i(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function c(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=typeof e||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var a=n.call(e,t||"default");if("object"!=typeof a)return a;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function s(e,t){return s=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},s(e,t)}var u=function(e){var t,r;function i(){for(var t,n=arguments.length,a=new Array(n),r=0;r<n;r++)a[r]=arguments[r];return(t=e.call.apply(e,[this].concat(a))||this).handleRefs={},t.lastHandleRect=null,t.slack=null,t}r=e,(t=i).prototype=Object.create(r.prototype),t.prototype.constructor=t,s(t,r);var c=i.prototype;return c.componentWillUnmount=function(){this.resetData()},c.resetData=function(){this.lastHandleRect=this.slack=null},c.runConstraints=function(e,t){var n=this.props,a=n.minConstraints,r=n.maxConstraints,o=n.lockAspectRatio;if(!a&&!r&&!o)return[e,t];if(o){var i=this.props.width/this.props.height,l=e-this.props.width,c=t-this.props.height;Math.abs(l)>Math.abs(c*i)?t=e/i:e=t*i}var s=e,u=t,d=this.slack||[0,0],p=d[0],f=d[1];return e+=p,t+=f,a&&(e=Math.max(a[0],e),t=Math.max(a[1],t)),r&&(e=Math.min(r[0],e),t=Math.min(r[1],t)),this.slack=[p+(s-e),f+(u-t)],[e,t]},c.resizeHandler=function(e,t){var n=this;return function(a,r){var o=r.node,i=r.deltaX,l=r.deltaY;"onResizeStart"===e&&n.resetData();var c=("both"===n.props.axis||"x"===n.props.axis)&&"n"!==t&&"s"!==t,s=("both"===n.props.axis||"y"===n.props.axis)&&"e"!==t&&"w"!==t;if(c||s){var u=t[0],d=t[t.length-1],p=o.getBoundingClientRect();if(null!=n.lastHandleRect){if("w"===d)i+=p.left-n.lastHandleRect.left;if("n"===u)l+=p.top-n.lastHandleRect.top}n.lastHandleRect=p,"w"===d&&(i=-i),"n"===u&&(l=-l);var f=n.props.width+(c?i/n.props.transformScale:0),m=n.props.height+(s?l/n.props.transformScale:0),h=n.runConstraints(f,m);f=h[0],m=h[1];var g=f!==n.props.width||m!==n.props.height,b="function"==typeof n.props[e]?n.props[e]:null;b&&!("onResize"===e&&!g)&&(null==a.persist||a.persist(),b(a,{node:o,size:{width:f,height:m},handle:t})),"onResizeStop"===e&&n.resetData()}}},c.renderResizeHandle=function(e,t){var a=this.props.handle;if(!a)return n.createElement("span",{className:"react-resizable-handle react-resizable-handle-"+e,ref:t});if("function"==typeof a)return a(e,t);var r=l({ref:t},"string"==typeof a.type?{}:{handleAxis:e});return n.cloneElement(a,r)},c.render=function(){var e=this,t=this.props,r=t.children,i=t.className,c=t.draggableOpts;t.width,t.height,t.handle,t.handleSize,t.lockAspectRatio,t.axis,t.minConstraints,t.maxConstraints,t.onResize,t.onResizeStop,t.onResizeStart;var s=t.resizeHandles;t.transformScale;var u=function(e,t){if(null==e)return{};var n,a,r={},o=Object.keys(e);for(a=0;a<o.length;a++)n=o[a],t.indexOf(n)>=0||(r[n]=e[n]);return r}(t,a);return(0,bD.cloneElement)(r,l(l({},u),{},{className:(i?i+" ":"")+"react-resizable",children:[].concat(r.props.children,s.map(function(t){var a,r=null!=(a=e.handleRefs[t])?a:e.handleRefs[t]=n.createRef();return n.createElement(v.default.DraggableCore,o({},c,{nodeRef:r,key:"resizableHandle-"+t,onStop:e.resizeHandler("onResizeStop",t),onStart:e.resizeHandler("onResizeStart",t),onDrag:e.resizeHandler("onResize",t)}),e.renderResizeHandle(t,r))}))}))},i}(n.Component);t.default=u,u.propTypes=cT.resizableProps,u.defaultProps={axis:"both",handleSize:[20,20],lockAspectRatio:!1,minConstraints:[20,20],maxConstraints:[1/0,1/0],resizeHandles:["se"],transformScale:1}}),uT=K(function(e,t){t.__esModule=!0,t.default=void 0;var n=function(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var n=l(t);if(n&&n.has(e))return n.get(e);var a={},r=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var o in e)if("default"!==o&&Object.prototype.hasOwnProperty.call(e,o)){var i=r?Object.getOwnPropertyDescriptor(e,o):null;i&&(i.get||i.set)?Object.defineProperty(a,o,i):a[o]=e[o]}a.default=e,n&&n.set(e,a);return a}(f.default),a=i(lT),r=i(sT),o=["handle","handleSize","onResize","onResizeStart","onResizeStop","draggableOpts","minConstraints","maxConstraints","lockAspectRatio","axis","width","height","resizeHandles","style","transformScale"];function i(e){return e&&e.__esModule?e:{default:e}}function l(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,n=new WeakMap;return(l=function(e){return e?n:t})(e)}function c(){return c=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var a in n)Object.prototype.hasOwnProperty.call(n,a)&&(e[a]=n[a])}return e},c.apply(this,arguments)}function s(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,a)}return n}function u(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?s(Object(n),!0).forEach(function(t){d(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):s(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function d(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=typeof e||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var a=n.call(e,t||"default");if("object"!=typeof a)return a;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function p(e,t){return p=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},p(e,t)}var m=function(e){var t,a;function i(){for(var t,n=arguments.length,a=new Array(n),r=0;r<n;r++)a[r]=arguments[r];return(t=e.call.apply(e,[this].concat(a))||this).state={width:t.props.width,height:t.props.height,propsWidth:t.props.width,propsHeight:t.props.height},t.onResize=function(e,n){var a=n.size;t.props.onResize?(null==e.persist||e.persist(),t.setState(a,function(){return t.props.onResize&&t.props.onResize(e,n)})):t.setState(a)},t}return a=e,(t=i).prototype=Object.create(a.prototype),t.prototype.constructor=t,p(t,a),i.getDerivedStateFromProps=function(e,t){return t.propsWidth!==e.width||t.propsHeight!==e.height?{width:e.width,height:e.height,propsWidth:e.width,propsHeight:e.height}:null},i.prototype.render=function(){var e=this.props,t=e.handle,a=e.handleSize;e.onResize;var i=e.onResizeStart,l=e.onResizeStop,s=e.draggableOpts,d=e.minConstraints,p=e.maxConstraints,f=e.lockAspectRatio,m=e.axis;e.width,e.height;var h=e.resizeHandles,g=e.style,b=e.transformScale,v=function(e,t){if(null==e)return{};var n,a,r={},o=Object.keys(e);for(a=0;a<o.length;a++)n=o[a],t.indexOf(n)>=0||(r[n]=e[n]);return r}(e,o);return n.createElement(r.default,{axis:m,draggableOpts:s,handle:t,handleSize:a,height:this.state.height,lockAspectRatio:f,maxConstraints:p,minConstraints:d,onResizeStart:i,onResize:this.onResize,onResizeStop:l,resizeHandles:h,transformScale:b,width:this.state.width},n.createElement("div",c({},v,{style:u(u({},g),{},{width:this.state.width+"px",height:this.state.height+"px"})})))},i}(n.Component);t.default=m,m.propTypes=u(u({},cT.resizableProps),{},{children:a.default.element})}),dT=sT.default;uT.default;var pT,fT=e.memo(({onResize:t,width:r,...o})=>{const i=e.useCallback(e=>{e.stopPropagation(),e.preventDefault()},[]),[l,c]=e.useState("number"==typeof r?r:0);e.useEffect(()=>{"number"==typeof r&&c(r)},[r]);const s=e.useMemo(()=>({enableUserSelectHack:!1}),[]),u=l,d=l>0?n.jsx("span",{className:"react-resizable-handle",onMouseDown:i,onClick:i}):void 0,p=e.useRef(null),f=e.useRef(null),[m,h]=e.useState(null);e.useEffect(()=>{if("number"!=typeof r&&p.current){const e=p.current.offsetWidth;e>0&&c(e)}},[r]);const g=e=>Math.min(Math.max(e,80),1e4),b=e.useRef(null),v=l>0?(e,t)=>{const n=e;null!==b.current&&cancelAnimationFrame(b.current),b.current=requestAnimationFrame(()=>{C(n.clientX),c(g(t.size.width)),b.current=null})}:void 0,x=l>0?(e,n)=>{w(!1);const a=g(n.size.width);t&&t(e,{...n,size:{...n.size,width:a}}),C(null),h(null),null!==b.current&&(cancelAnimationFrame(b.current),b.current=null)}:void 0,[y,w]=e.useState(!1),[k,C]=e.useState(null),E=l>0?e=>{w(!0);C(e.clientX);const t=p.current;if(t){const e=t.closest(".ant-table-container");f.current=e??null,h(e?e.getBoundingClientRect():null)}}:void 0;return n.jsx(dT,{width:u,height:0,handle:d,onResizeStart:E,onResize:v,onResizeStop:x,draggableOpts:s,children:n.jsxs("th",{...o,ref:p,style:{position:"relative",width:u},children:[y&&n.jsx(n.Fragment,{children:null!==k&&f.current&&m&&a.createPortal(n.jsx("span",{style:{position:"absolute",top:0,bottom:0,left:k-m.left,width:0,borderLeft:"1px dashed #ccc",pointerEvents:"none",zIndex:9}}),f.current)}),o.children]})})}),mT=e.createContext({dragDropManager:void 0});function hT(e,t){for(var n=arguments.length,a=new Array(n>2?n-2:0),r=2;r<n;r++)a[r-2]=arguments[r];if("production"!==process.env.NODE_ENV&&void 0===t)throw new Error("invariant requires an error message argument");if(!e){var o;if(void 0===t)o=new Error("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");else{var i=0;(o=new Error(t.replace(/%s/g,function(){return a[i++]}))).name="Invariant Violation"}throw o.framesToPop=1,o}}!function(e){e.SOURCE="SOURCE",e.TARGET="TARGET"}(pT||(pT={}));var gT="dnd-core/INIT_COORDS",bT="dnd-core/BEGIN_DRAG",vT="dnd-core/PUBLISH_DRAG_SOURCE",xT="dnd-core/HOVER",yT="dnd-core/DROP",wT="dnd-core/END_DRAG";function kT(e,t){return{type:gT,payload:{sourceClientOffset:t||null,clientOffset:e||null}}}function CT(e){return CT="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},CT(e)}function ET(e,t,n){return t.split(".").reduce(function(e,t){return e&&e[t]?e[t]:n||null},e)}function ST(e){return"object"===CT(e)}var NT={type:gT,payload:{clientOffset:null,sourceClientOffset:null}};function OT(e){return function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{publishSource:!0},a=n.publishSource,r=void 0===a||a,o=n.clientOffset,i=n.getSourceClientOffset,l=e.getMonitor(),c=e.getRegistry();e.dispatch(kT(o)),function(e,t,n){hT(!t.isDragging(),"Cannot call beginDrag while dragging."),e.forEach(function(e){hT(n.getSource(e),"Expected sourceIds to be registered.")})}(t,l,c);var s=function(e,t){for(var n=null,a=e.length-1;a>=0;a--)if(t.canDragSource(e[a])){n=e[a];break}return n}(t,l);if(null!==s){var u=null;if(o){if(!i)throw new Error("getSourceClientOffset must be defined");!function(e){hT("function"==typeof e,"When clientOffset is provided, getSourceClientOffset must be a function.")}(i),u=i(s)}e.dispatch(kT(o,u));var d=c.getSource(s).beginDrag(l,s);if(null!=d){!function(e){hT(ST(e),"Item must be an object.")}(d),c.pinSource(s);var p=c.getSourceType(s);return{type:bT,payload:{itemType:p,item:d,sourceId:s,clientOffset:o||null,sourceClientOffset:u||null,isSourcePublic:!!r}}}}else e.dispatch(NT)}}function PT(e){return function(){if(e.getMonitor().isDragging())return{type:vT}}}function DT(e,t){return null===t?null===e:Array.isArray(e)?e.some(function(e){return e===t}):e===t}function TT(e){return function(t){var n=(arguments.length>1&&void 0!==arguments[1]?arguments[1]:{}).clientOffset;!function(e){hT(Array.isArray(e),"Expected targetIds to be an array.")}(t);var a=t.slice(0),r=e.getMonitor(),o=e.getRegistry();return function(e,t,n){hT(t.isDragging(),"Cannot call hover while not dragging."),hT(!t.didDrop(),"Cannot call hover after drop.");for(var a=0;a<e.length;a++){var r=e[a];hT(e.lastIndexOf(r)===a,"Expected targetIds to be unique in the passed array."),hT(n.getTarget(r),"Expected targetIds to be registered.")}}(a,r,o),function(e,t,n){for(var a=e.length-1;a>=0;a--){var r=e[a];DT(t.getTargetType(r),n)||e.splice(a,1)}}(a,o,r.getItemType()),function(e,t,n){e.forEach(function(e){n.getTarget(e).hover(t,e)})}(a,r,o),{type:xT,payload:{targetIds:a,clientOffset:n||null}}}}function IT(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,a)}return n}function RT(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?IT(Object(n),!0).forEach(function(t){MT(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):IT(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function MT(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function zT(e){return function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=e.getMonitor(),a=e.getRegistry();!function(e){hT(e.isDragging(),"Cannot call drop while not dragging."),hT(!e.didDrop(),"Cannot call drop twice during one drag operation.")}(n);var r=function(e){var t=e.getTargetIds().filter(e.canDropOnTarget,e);return t.reverse(),t}(n);r.forEach(function(r,o){var i=function(e,t,n,a){var r=n.getTarget(e),o=r?r.drop(a,e):void 0;(function(e){hT(void 0===e||ST(e),"Drop result must either be an object or undefined.")})(o),void 0===o&&(o=0===t?{}:a.getDropResult());return o}(r,o,a,n),l={type:yT,payload:{dropResult:RT(RT({},t),i)}};e.dispatch(l)})}}function jT(e){return function(){var t=e.getMonitor(),n=e.getRegistry();!function(e){hT(e.isDragging(),"Cannot call endDrag while not dragging.")}(t);var a=t.getSourceId();null!=a&&(n.getSource(a,!0).endDrag(t,a),n.unpinSource());return{type:wT}}}function AT(e,t){for(var n=0;n<t.length;n++){var a=t[n];a.enumerable=a.enumerable||!1,a.configurable=!0,"value"in a&&(a.writable=!0),Object.defineProperty(e,a.key,a)}}function LT(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var FT=function(){function e(t,n){var a=this;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),LT(this,"store",void 0),LT(this,"monitor",void 0),LT(this,"backend",void 0),LT(this,"isSetUp",!1),LT(this,"handleRefCountChange",function(){var e=a.store.getState().refCount>0;a.backend&&(e&&!a.isSetUp?(a.backend.setup(),a.isSetUp=!0):!e&&a.isSetUp&&(a.backend.teardown(),a.isSetUp=!1))}),this.store=t,this.monitor=n,t.subscribe(this.handleRefCountChange)}var t,n,a;return t=e,n=[{key:"receiveBackend",value:function(e){this.backend=e}},{key:"getMonitor",value:function(){return this.monitor}},{key:"getBackend",value:function(){return this.backend}},{key:"getRegistry",value:function(){return this.monitor.registry}},{key:"getActions",value:function(){var e=this,t=this.store.dispatch,n=function(e){return{beginDrag:OT(e),publishDragSource:PT(e),hover:TT(e),drop:zT(e),endDrag:jT(e)}}(this);return Object.keys(n).reduce(function(a,r){var o,i=n[r];return a[r]=(o=i,function(){for(var n=arguments.length,a=new Array(n),r=0;r<n;r++)a[r]=arguments[r];var i=o.apply(e,a);void 0!==i&&t(i)}),a},{})}},{key:"dispatch",value:function(e){this.store.dispatch(e)}}],n&&AT(t.prototype,n),a&&AT(t,a),e}();function _T(e){return"Minified Redux error #"+e+"; visit https://redux.js.org/Errors?code="+e+" for the full message or use the non-minified dev environment for full errors. "}var VT="function"==typeof Symbol&&Symbol.observable||"@@observable",KT=function(){return Math.random().toString(36).substring(7).split("").join(".")},HT={INIT:"@@redux/INIT"+KT(),REPLACE:"@@redux/REPLACE"+KT(),PROBE_UNKNOWN_ACTION:function(){return"@@redux/PROBE_UNKNOWN_ACTION"+KT()}};function BT(e){if(void 0===e)return"undefined";if(null===e)return"null";var t=typeof e;switch(t){case"boolean":case"string":case"number":case"symbol":case"function":return t}if(Array.isArray(e))return"array";if(function(e){return e instanceof Date||"function"==typeof e.toDateString&&"function"==typeof e.getDate&&"function"==typeof e.setDate}(e))return"date";if(function(e){return e instanceof Error||"string"==typeof e.message&&e.constructor&&"number"==typeof e.constructor.stackTraceLimit}(e))return"error";var n=function(e){return"function"==typeof e.constructor?e.constructor.name:null}(e);switch(n){case"Symbol":case"Promise":case"WeakMap":case"WeakSet":case"Map":case"Set":return n}return t.slice(8,-1).toLowerCase().replace(/\s/g,"")}function $T(e){var t=typeof e;return"production"!==process.env.NODE_ENV&&(t=BT(e)),t}function UT(e,t,n){var a;if("function"==typeof t&&"function"==typeof n||"function"==typeof n&&"function"==typeof arguments[3])throw new Error("production"===process.env.NODE_ENV?_T(0):"It looks like you are passing several store enhancers to createStore(). This is not supported. Instead, compose them together to a single function. See https://redux.js.org/tutorials/fundamentals/part-4-store#creating-a-store-with-enhancers for an example.");if("function"==typeof t&&void 0===n&&(n=t,t=void 0),void 0!==n){if("function"!=typeof n)throw new Error("production"===process.env.NODE_ENV?_T(1):"Expected the enhancer to be a function. Instead, received: '"+$T(n)+"'");return n(UT)(e,t)}if("function"!=typeof e)throw new Error("production"===process.env.NODE_ENV?_T(2):"Expected the root reducer to be a function. Instead, received: '"+$T(e)+"'");var r=e,o=t,i=[],l=i,c=!1;function s(){l===i&&(l=i.slice())}function u(){if(c)throw new Error("production"===process.env.NODE_ENV?_T(3):"You may not call store.getState() while the reducer is executing. The reducer has already received the state as an argument. Pass it down from the top reducer instead of reading it from the store.");return o}function d(e){if("function"!=typeof e)throw new Error("production"===process.env.NODE_ENV?_T(4):"Expected the listener to be a function. Instead, received: '"+$T(e)+"'");if(c)throw new Error("production"===process.env.NODE_ENV?_T(5):"You may not call store.subscribe() while the reducer is executing. If you would like to be notified after the store has been updated, subscribe from a component and invoke store.getState() in the callback to access the latest state. See https://redux.js.org/api/store#subscribelistener for more details.");var t=!0;return s(),l.push(e),function(){if(t){if(c)throw new Error("production"===process.env.NODE_ENV?_T(6):"You may not unsubscribe from a store listener while the reducer is executing. See https://redux.js.org/api/store#subscribelistener for more details.");t=!1,s();var n=l.indexOf(e);l.splice(n,1),i=null}}}function p(e){if(!function(e){if("object"!=typeof e||null===e)return!1;for(var t=e;null!==Object.getPrototypeOf(t);)t=Object.getPrototypeOf(t);return Object.getPrototypeOf(e)===t}(e))throw new Error("production"===process.env.NODE_ENV?_T(7):"Actions must be plain objects. Instead, the actual type was: '"+$T(e)+"'. You may need to add middleware to your store setup to handle dispatching other values, such as 'redux-thunk' to handle dispatching functions. See https://redux.js.org/tutorials/fundamentals/part-4-store#middleware and https://redux.js.org/tutorials/fundamentals/part-6-async-logic#using-the-redux-thunk-middleware for examples.");if(void 0===e.type)throw new Error("production"===process.env.NODE_ENV?_T(8):'Actions may not have an undefined "type" property. You may have misspelled an action type string constant.');if(c)throw new Error("production"===process.env.NODE_ENV?_T(9):"Reducers may not dispatch actions.");try{c=!0,o=r(o,e)}finally{c=!1}for(var t=i=l,n=0;n<t.length;n++){(0,t[n])()}return e}return p({type:HT.INIT}),(a={dispatch:p,subscribe:d,getState:u,replaceReducer:function(e){if("function"!=typeof e)throw new Error("production"===process.env.NODE_ENV?_T(10):"Expected the nextReducer to be a function. Instead, received: '"+$T(e));r=e,p({type:HT.REPLACE})}})[VT]=function(){var e,t=d;return(e={subscribe:function(e){if("object"!=typeof e||null===e)throw new Error("production"===process.env.NODE_ENV?_T(11):"Expected the observer to be an object. Instead, received: '"+$T(e)+"'");function n(){e.next&&e.next(u())}return n(),{unsubscribe:t(n)}}})[VT]=function(){return this},e},a}var WT=function(e,t){return e===t};function YT(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,a)}return n}function qT(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?YT(Object(n),!0).forEach(function(t){GT(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):YT(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function GT(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var XT={initialSourceClientOffset:null,initialClientOffset:null,clientOffset:null};function ZT(){var e,t,n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:XT,a=arguments.length>1?arguments[1]:void 0,r=a.payload;switch(a.type){case gT:case bT:return{initialSourceClientOffset:r.sourceClientOffset,initialClientOffset:r.clientOffset,clientOffset:r.clientOffset};case xT:return e=n.clientOffset,t=r.clientOffset,!e&&!t||e&&t&&e.x===t.x&&e.y===t.y?n:qT(qT({},n),{},{clientOffset:r.clientOffset});case wT:case yT:return XT;default:return n}}var QT="dnd-core/ADD_SOURCE",JT="dnd-core/ADD_TARGET",eI="dnd-core/REMOVE_SOURCE",tI="dnd-core/REMOVE_TARGET";function nI(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,a)}return n}function aI(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?nI(Object(n),!0).forEach(function(t){rI(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):nI(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function rI(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var oI={itemType:null,item:null,sourceId:null,targetIds:[],dropResult:null,didDrop:!1,isSourcePublic:null};function iI(){var e,t,n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:oI,a=arguments.length>1?arguments[1]:void 0,r=a.payload;switch(a.type){case bT:return aI(aI({},n),{},{itemType:r.itemType,item:r.item,sourceId:r.sourceId,isSourcePublic:r.isSourcePublic,dropResult:null,didDrop:!1});case vT:return aI(aI({},n),{},{isSourcePublic:!0});case xT:return aI(aI({},n),{},{targetIds:r.targetIds});case tI:return-1===n.targetIds.indexOf(r.targetId)?n:aI(aI({},n),{},{targetIds:(e=n.targetIds,t=r.targetId,e.filter(function(e){return e!==t}))});case yT:return aI(aI({},n),{},{dropResult:r.dropResult,didDrop:!0,targetIds:[]});case wT:return aI(aI({},n),{},{itemType:null,item:null,sourceId:null,dropResult:null,didDrop:!1,isSourcePublic:null,targetIds:[]});default:return n}}function lI(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;switch((arguments.length>1?arguments[1]:void 0).type){case QT:case JT:return e+1;case eI:case tI:return e-1;default:return e}}var cI=[],sI=[];function uI(){var e=arguments.length>1?arguments[1]:void 0;switch(e.type){case xT:break;case QT:case JT:case tI:case eI:return cI;default:return sI}var t=e.payload,n=t.targetIds,a=void 0===n?[]:n,r=t.prevTargetIds,o=void 0===r?[]:r,i=function(e,t){var n=new Map,a=function(e){n.set(e,n.has(e)?n.get(e)+1:1)};e.forEach(a),t.forEach(a);var r=[];return n.forEach(function(e,t){1===e&&r.push(t)}),r}(a,o),l=i.length>0||!function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:WT;if(e.length!==t.length)return!1;for(var a=0;a<e.length;++a)if(!n(e[a],t[a]))return!1;return!0}(a,o);if(!l)return cI;var c=o[o.length-1],s=a[a.length-1];return c!==s&&(c&&i.push(c),s&&i.push(s)),i}function dI(){return(arguments.length>0&&void 0!==arguments[0]?arguments[0]:0)+1}function pI(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,a)}return n}function fI(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?pI(Object(n),!0).forEach(function(t){mI(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):pI(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function mI(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function hI(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0;return{dirtyHandlerIds:uI(e.dirtyHandlerIds,{type:t.type,payload:fI(fI({},t.payload),{},{prevTargetIds:ET(e,"dragOperation.targetIds",[])})}),dragOffset:ZT(e.dragOffset,t),refCount:lI(e.refCount,t),dragOperation:iI(e.dragOperation,t),stateId:dI(e.stateId)}}function gI(e,t){return{x:e.x-t.x,y:e.y-t.y}}function bI(e,t){for(var n=0;n<t.length;n++){var a=t[n];a.enumerable=a.enumerable||!1,a.configurable=!0,"value"in a&&(a.writable=!0),Object.defineProperty(e,a.key,a)}}function vI(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}cI.__IS_NONE__=!0,sI.__IS_ALL__=!0;var xI=function(){function e(t,n){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),vI(this,"store",void 0),vI(this,"registry",void 0),this.store=t,this.registry=n}var t,n,a;return t=e,n=[{key:"subscribeToStateChange",value:function(e){var t=this,n=(arguments.length>1&&void 0!==arguments[1]?arguments[1]:{handlerIds:void 0}).handlerIds;hT("function"==typeof e,"listener must be a function."),hT(void 0===n||Array.isArray(n),"handlerIds, when specified, must be an array of strings.");var a=this.store.getState().stateId;return this.store.subscribe(function(){var r=t.store.getState(),o=r.stateId;try{var i=o===a||o===a+1&&!function(e,t){if(e===cI)return!1;if(e===sI||void 0===t)return!0;var n,a=(n=e,t.filter(function(e){return n.indexOf(e)>-1}));return a.length>0}(r.dirtyHandlerIds,n);i||e()}finally{a=o}})}},{key:"subscribeToOffsetChange",value:function(e){var t=this;hT("function"==typeof e,"listener must be a function.");var n=this.store.getState().dragOffset;return this.store.subscribe(function(){var a=t.store.getState().dragOffset;a!==n&&(n=a,e())})}},{key:"canDragSource",value:function(e){if(!e)return!1;var t=this.registry.getSource(e);return hT(t,"Expected to find a valid source. sourceId=".concat(e)),!this.isDragging()&&t.canDrag(this,e)}},{key:"canDropOnTarget",value:function(e){if(!e)return!1;var t=this.registry.getTarget(e);return hT(t,"Expected to find a valid target. targetId=".concat(e)),!(!this.isDragging()||this.didDrop())&&DT(this.registry.getTargetType(e),this.getItemType())&&t.canDrop(this,e)}},{key:"isDragging",value:function(){return Boolean(this.getItemType())}},{key:"isDraggingSource",value:function(e){if(!e)return!1;var t=this.registry.getSource(e,!0);return hT(t,"Expected to find a valid source. sourceId=".concat(e)),!(!this.isDragging()||!this.isSourcePublic())&&this.registry.getSourceType(e)===this.getItemType()&&t.isDragging(this,e)}},{key:"isOverTarget",value:function(e){if(!e)return!1;var t=(arguments.length>1&&void 0!==arguments[1]?arguments[1]:{shallow:!1}).shallow;if(!this.isDragging())return!1;var n=this.registry.getTargetType(e),a=this.getItemType();if(a&&!DT(n,a))return!1;var r=this.getTargetIds();if(!r.length)return!1;var o=r.indexOf(e);return t?o===r.length-1:o>-1}},{key:"getItemType",value:function(){return this.store.getState().dragOperation.itemType}},{key:"getItem",value:function(){return this.store.getState().dragOperation.item}},{key:"getSourceId",value:function(){return this.store.getState().dragOperation.sourceId}},{key:"getTargetIds",value:function(){return this.store.getState().dragOperation.targetIds}},{key:"getDropResult",value:function(){return this.store.getState().dragOperation.dropResult}},{key:"didDrop",value:function(){return this.store.getState().dragOperation.didDrop}},{key:"isSourcePublic",value:function(){return Boolean(this.store.getState().dragOperation.isSourcePublic)}},{key:"getInitialClientOffset",value:function(){return this.store.getState().dragOffset.initialClientOffset}},{key:"getInitialSourceClientOffset",value:function(){return this.store.getState().dragOffset.initialSourceClientOffset}},{key:"getClientOffset",value:function(){return this.store.getState().dragOffset.clientOffset}},{key:"getSourceClientOffset",value:function(){return e=this.store.getState().dragOffset,t=e.clientOffset,n=e.initialClientOffset,a=e.initialSourceClientOffset,t&&n&&a?gI(function(e,t){return{x:e.x+t.x,y:e.y+t.y}}(t,a),n):null;var e,t,n,a}},{key:"getDifferenceFromInitialOffset",value:function(){return e=this.store.getState().dragOffset,t=e.clientOffset,n=e.initialClientOffset,t&&n?gI(t,n):null;var e,t,n}}],n&&bI(t.prototype,n),a&&bI(t,a),e}(),yI=0;function wI(e){return wI="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},wI(e)}function kI(e,t){t&&Array.isArray(e)?e.forEach(function(e){return kI(e,!1)}):hT("string"==typeof e||"symbol"===wI(e),t?"Type can only be a string, a symbol, or an array of either.":"Type can only be a string or a symbol.")}const CI="undefined"!=typeof global?global:self,EI=CI.MutationObserver||CI.WebKitMutationObserver;function SI(e){return function(){const t=setTimeout(a,0),n=setInterval(a,50);function a(){clearTimeout(t),clearInterval(n),e()}}}const NI="function"==typeof EI?function(e){let t=1;const n=new EI(e),a=document.createTextNode("");return n.observe(a,{characterData:!0}),function(){t=-t,a.data=t}}:SI;class OI{call(){try{this.task&&this.task()}catch(e){this.onError(e)}finally{this.task=null,this.release(this)}}constructor(e,t){this.onError=e,this.release=t,this.task=null}}const PI=new class{enqueueTask(e){const{queue:t,requestFlush:n}=this;t.length||(n(),this.flushing=!0),t[t.length]=e}constructor(){this.queue=[],this.pendingErrors=[],this.flushing=!1,this.index=0,this.capacity=1024,this.flush=()=>{const{queue:e}=this;for(;this.index<e.length;){const t=this.index;if(this.index++,e[t].call(),this.index>this.capacity){for(let t=0,n=e.length-this.index;t<n;t++)e[t]=e[t+this.index];e.length-=this.index,this.index=0}}e.length=0,this.index=0,this.flushing=!1},this.registerPendingError=e=>{this.pendingErrors.push(e),this.requestErrorThrow()},this.requestFlush=NI(this.flush),this.requestErrorThrow=SI(()=>{if(this.pendingErrors.length)throw this.pendingErrors.shift()})}},DI=new class{create(e){const t=this.freeTasks,n=t.length?t.pop():new OI(this.onError,e=>t[t.length]=e);return n.task=e,n}constructor(e){this.onError=e,this.freeTasks=[]}}(PI.registerPendingError);function TI(e,t){for(var n=0;n<t.length;n++){var a=t[n];a.enumerable=a.enumerable||!1,a.configurable=!0,"value"in a&&(a.writable=!0),Object.defineProperty(e,a.key,a)}}function II(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function RI(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null==n)return;var a,r,o=[],i=!0,l=!1;try{for(n=n.call(e);!(i=(a=n.next()).done)&&(o.push(a.value),!t||o.length!==t);i=!0);}catch(e){l=!0,r=e}finally{try{i||null==n.return||n.return()}finally{if(l)throw r}}return o}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return MI(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return MI(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function MI(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,a=new Array(t);n<t;n++)a[n]=e[n];return a}function zI(e){var t=(yI++).toString();switch(e){case pT.SOURCE:return"S".concat(t);case pT.TARGET:return"T".concat(t);default:throw new Error("Unknown Handler Role: ".concat(e))}}function jI(e){switch(e[0]){case"S":return pT.SOURCE;case"T":return pT.TARGET;default:hT(!1,"Cannot parse handler ID: ".concat(e))}}function AI(e,t){var n=e.entries(),a=!1;do{var r=n.next(),o=r.done;if(RI(r.value,2)[1]===t)return!0;a=!!o}while(!a);return!1}var LI=function(){function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),II(this,"types",new Map),II(this,"dragSources",new Map),II(this,"dropTargets",new Map),II(this,"pinnedSourceId",null),II(this,"pinnedSource",null),II(this,"store",void 0),this.store=t}var t,n,a;return t=e,n=[{key:"addSource",value:function(e,t){kI(e),function(e){hT("function"==typeof e.canDrag,"Expected canDrag to be a function."),hT("function"==typeof e.beginDrag,"Expected beginDrag to be a function."),hT("function"==typeof e.endDrag,"Expected endDrag to be a function.")}(t);var n=this.addHandler(pT.SOURCE,e,t);return this.store.dispatch(function(e){return{type:QT,payload:{sourceId:e}}}(n)),n}},{key:"addTarget",value:function(e,t){kI(e,!0),function(e){hT("function"==typeof e.canDrop,"Expected canDrop to be a function."),hT("function"==typeof e.hover,"Expected hover to be a function."),hT("function"==typeof e.drop,"Expected beginDrag to be a function.")}(t);var n=this.addHandler(pT.TARGET,e,t);return this.store.dispatch(function(e){return{type:JT,payload:{targetId:e}}}(n)),n}},{key:"containsHandler",value:function(e){return AI(this.dragSources,e)||AI(this.dropTargets,e)}},{key:"getSource",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return hT(this.isSourceId(e),"Expected a valid source ID."),t&&e===this.pinnedSourceId?this.pinnedSource:this.dragSources.get(e)}},{key:"getTarget",value:function(e){return hT(this.isTargetId(e),"Expected a valid target ID."),this.dropTargets.get(e)}},{key:"getSourceType",value:function(e){return hT(this.isSourceId(e),"Expected a valid source ID."),this.types.get(e)}},{key:"getTargetType",value:function(e){return hT(this.isTargetId(e),"Expected a valid target ID."),this.types.get(e)}},{key:"isSourceId",value:function(e){return jI(e)===pT.SOURCE}},{key:"isTargetId",value:function(e){return jI(e)===pT.TARGET}},{key:"removeSource",value:function(e){var t,n=this;hT(this.getSource(e),"Expected an existing source."),this.store.dispatch(function(e){return{type:eI,payload:{sourceId:e}}}(e)),t=function(){n.dragSources.delete(e),n.types.delete(e)},PI.enqueueTask(DI.create(t))}},{key:"removeTarget",value:function(e){hT(this.getTarget(e),"Expected an existing target."),this.store.dispatch(function(e){return{type:tI,payload:{targetId:e}}}(e)),this.dropTargets.delete(e),this.types.delete(e)}},{key:"pinSource",value:function(e){var t=this.getSource(e);hT(t,"Expected an existing source."),this.pinnedSourceId=e,this.pinnedSource=t}},{key:"unpinSource",value:function(){hT(this.pinnedSource,"No source is pinned at the time."),this.pinnedSourceId=null,this.pinnedSource=null}},{key:"addHandler",value:function(e,t,n){var a=zI(e);return this.types.set(a,t),e===pT.SOURCE?this.dragSources.set(a,n):e===pT.TARGET&&this.dropTargets.set(a,n),a}}],n&&TI(t.prototype,n),a&&TI(t,a),e}();function FI(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:void 0,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},a=function(e){var t="undefined"!=typeof window&&window.__REDUX_DEVTOOLS_EXTENSION__;return UT(hI,e&&t&&t({name:"dnd-core",instanceId:"dnd-core"}))}(arguments.length>3&&void 0!==arguments[3]&&arguments[3]),r=new xI(a,new LI(a)),o=new FT(a,r),i=e(o,t,n);return o.receiveBackend(i),o}var _I=["children"];function VI(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null==n)return;var a,r,o=[],i=!0,l=!1;try{for(n=n.call(e);!(i=(a=n.next()).done)&&(o.push(a.value),!t||o.length!==t);i=!0);}catch(e){l=!0,r=e}finally{try{i||null==n.return||n.return()}finally{if(l)throw r}}return o}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return KI(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return KI(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function KI(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,a=new Array(t);n<t;n++)a[n]=e[n];return a}function HI(e,t){if(null==e)return{};var n,a,r=function(e,t){if(null==e)return{};var n,a,r={},o=Object.keys(e);for(a=0;a<o.length;a++)n=o[a],t.indexOf(n)>=0||(r[n]=e[n]);return r}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(a=0;a<o.length;a++)n=o[a],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}var BI=0,$I=Symbol.for("__REACT_DND_CONTEXT_INSTANCE__"),UI=e.memo(function(t){var a=t.children,r=function(e){if("manager"in e){return[{dragDropManager:e.manager},!1]}var t=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:WI(),n=arguments.length>2?arguments[2]:void 0,a=arguments.length>3?arguments[3]:void 0,r=t;r[$I]||(r[$I]={dragDropManager:FI(e,t,n,a)});return r[$I]}(e.backend,e.context,e.options,e.debugMode),n=!e.context;return[t,n]}(HI(t,_I)),o=VI(r,2),i=o[0],l=o[1];return e.useEffect(function(){if(l){var e=WI();return++BI,function(){0===--BI&&(e[$I]=null)}}},[]),n.jsx(mT.Provider,Object.assign({value:i},{children:a}),void 0)});function WI(){return"undefined"!=typeof global?global:window}function YI(e,t){for(var n=0;n<t.length;n++){var a=t[n];a.enumerable=a.enumerable||!1,a.configurable=!0,"value"in a&&(a.writable=!0),Object.defineProperty(e,a.key,a)}}function qI(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var GI=!1,XI=!1,ZI=function(){function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),qI(this,"internalMonitor",void 0),qI(this,"sourceId",null),this.internalMonitor=t.getMonitor()}var t,n,a;return t=e,(n=[{key:"receiveHandlerId",value:function(e){this.sourceId=e}},{key:"getHandlerId",value:function(){return this.sourceId}},{key:"canDrag",value:function(){hT(!GI,"You may not call monitor.canDrag() inside your canDrag() implementation. Read more: http://react-dnd.github.io/react-dnd/docs/api/drag-source-monitor");try{return GI=!0,this.internalMonitor.canDragSource(this.sourceId)}finally{GI=!1}}},{key:"isDragging",value:function(){if(!this.sourceId)return!1;hT(!XI,"You may not call monitor.isDragging() inside your isDragging() implementation. Read more: http://react-dnd.github.io/react-dnd/docs/api/drag-source-monitor");try{return XI=!0,this.internalMonitor.isDraggingSource(this.sourceId)}finally{XI=!1}}},{key:"subscribeToStateChange",value:function(e,t){return this.internalMonitor.subscribeToStateChange(e,t)}},{key:"isDraggingSource",value:function(e){return this.internalMonitor.isDraggingSource(e)}},{key:"isOverTarget",value:function(e,t){return this.internalMonitor.isOverTarget(e,t)}},{key:"getTargetIds",value:function(){return this.internalMonitor.getTargetIds()}},{key:"isSourcePublic",value:function(){return this.internalMonitor.isSourcePublic()}},{key:"getSourceId",value:function(){return this.internalMonitor.getSourceId()}},{key:"subscribeToOffsetChange",value:function(e){return this.internalMonitor.subscribeToOffsetChange(e)}},{key:"canDragSource",value:function(e){return this.internalMonitor.canDragSource(e)}},{key:"canDropOnTarget",value:function(e){return this.internalMonitor.canDropOnTarget(e)}},{key:"getItemType",value:function(){return this.internalMonitor.getItemType()}},{key:"getItem",value:function(){return this.internalMonitor.getItem()}},{key:"getDropResult",value:function(){return this.internalMonitor.getDropResult()}},{key:"didDrop",value:function(){return this.internalMonitor.didDrop()}},{key:"getInitialClientOffset",value:function(){return this.internalMonitor.getInitialClientOffset()}},{key:"getInitialSourceClientOffset",value:function(){return this.internalMonitor.getInitialSourceClientOffset()}},{key:"getSourceClientOffset",value:function(){return this.internalMonitor.getSourceClientOffset()}},{key:"getClientOffset",value:function(){return this.internalMonitor.getClientOffset()}},{key:"getDifferenceFromInitialOffset",value:function(){return this.internalMonitor.getDifferenceFromInitialOffset()}}])&&YI(t.prototype,n),a&&YI(t,a),e}();function QI(e,t){for(var n=0;n<t.length;n++){var a=t[n];a.enumerable=a.enumerable||!1,a.configurable=!0,"value"in a&&(a.writable=!0),Object.defineProperty(e,a.key,a)}}function JI(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var eR=!1,tR=function(){function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),JI(this,"internalMonitor",void 0),JI(this,"targetId",null),this.internalMonitor=t.getMonitor()}var t,n,a;return t=e,(n=[{key:"receiveHandlerId",value:function(e){this.targetId=e}},{key:"getHandlerId",value:function(){return this.targetId}},{key:"subscribeToStateChange",value:function(e,t){return this.internalMonitor.subscribeToStateChange(e,t)}},{key:"canDrop",value:function(){if(!this.targetId)return!1;hT(!eR,"You may not call monitor.canDrop() inside your canDrop() implementation. Read more: http://react-dnd.github.io/react-dnd/docs/api/drop-target-monitor");try{return eR=!0,this.internalMonitor.canDropOnTarget(this.targetId)}finally{eR=!1}}},{key:"isOver",value:function(e){return!!this.targetId&&this.internalMonitor.isOverTarget(this.targetId,e)}},{key:"getItemType",value:function(){return this.internalMonitor.getItemType()}},{key:"getItem",value:function(){return this.internalMonitor.getItem()}},{key:"getDropResult",value:function(){return this.internalMonitor.getDropResult()}},{key:"didDrop",value:function(){return this.internalMonitor.didDrop()}},{key:"getInitialClientOffset",value:function(){return this.internalMonitor.getInitialClientOffset()}},{key:"getInitialSourceClientOffset",value:function(){return this.internalMonitor.getInitialSourceClientOffset()}},{key:"getSourceClientOffset",value:function(){return this.internalMonitor.getSourceClientOffset()}},{key:"getClientOffset",value:function(){return this.internalMonitor.getClientOffset()}},{key:"getDifferenceFromInitialOffset",value:function(){return this.internalMonitor.getDifferenceFromInitialOffset()}}])&&QI(t.prototype,n),a&&QI(t,a),e}();function nR(t){return function(){var n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;if(!e.isValidElement(n)){var r=n;return t(r,a),r}var o=n;!function(e){if("string"!=typeof e.type){var t=e.type.displayName||e.type.name||"the component";throw new Error("Only native element nodes can now be passed to React DnD connectors."+"You can either wrap ".concat(t," into a <div>, or turn it into a ")+"drag source or a drop target itself.")}}(o);var i=a?function(e){return t(e,a)}:t;return function(t,n){var a=t.ref;return hT("string"!=typeof a,"Cannot connect React DnD to an element with an existing string ref. Please convert it to use a callback ref instead, or wrap it into a <span> or <div>. Read more: https://reactjs.org/docs/refs-and-the-dom.html#callback-refs"),a?e.cloneElement(t,{ref:function(e){rR(a,e),rR(n,e)}}):e.cloneElement(t,{ref:n})}(o,i)}}function aR(e){var t={};return Object.keys(e).forEach(function(n){var a=e[n];if(n.endsWith("Ref"))t[n]=e[n];else{var r=nR(a);t[n]=function(){return r}}}),t}function rR(e,t){"function"==typeof e?e(t):e.current=t}function oR(e){return oR="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},oR(e)}function iR(e){return null!==e&&"object"===oR(e)&&Object.prototype.hasOwnProperty.call(e,"current")}function lR(e,t,n,a){var r=n?n.call(a,e,t):void 0;if(void 0!==r)return!!r;if(e===t)return!0;if("object"!=typeof e||!e||"object"!=typeof t||!t)return!1;var o=Object.keys(e),i=Object.keys(t);if(o.length!==i.length)return!1;for(var l=Object.prototype.hasOwnProperty.bind(t),c=0;c<o.length;c++){var s=o[c];if(!l(s))return!1;var u=e[s],d=t[s];if(!1===(r=n?n.call(a,u,d,s):void 0)||void 0===r&&u!==d)return!1}return!0}function cR(e,t){for(var n=0;n<t.length;n++){var a=t[n];a.enumerable=a.enumerable||!1,a.configurable=!0,"value"in a&&(a.writable=!0),Object.defineProperty(e,a.key,a)}}function sR(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var uR=function(){function e(t){var n=this;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),sR(this,"hooks",aR({dragSource:function(e,t){n.clearDragSource(),n.dragSourceOptions=t||null,iR(e)?n.dragSourceRef=e:n.dragSourceNode=e,n.reconnectDragSource()},dragPreview:function(e,t){n.clearDragPreview(),n.dragPreviewOptions=t||null,iR(e)?n.dragPreviewRef=e:n.dragPreviewNode=e,n.reconnectDragPreview()}})),sR(this,"handlerId",null),sR(this,"dragSourceRef",null),sR(this,"dragSourceNode",void 0),sR(this,"dragSourceOptionsInternal",null),sR(this,"dragSourceUnsubscribe",void 0),sR(this,"dragPreviewRef",null),sR(this,"dragPreviewNode",void 0),sR(this,"dragPreviewOptionsInternal",null),sR(this,"dragPreviewUnsubscribe",void 0),sR(this,"lastConnectedHandlerId",null),sR(this,"lastConnectedDragSource",null),sR(this,"lastConnectedDragSourceOptions",null),sR(this,"lastConnectedDragPreview",null),sR(this,"lastConnectedDragPreviewOptions",null),sR(this,"backend",void 0),this.backend=t}var t,n,a;return t=e,(n=[{key:"receiveHandlerId",value:function(e){this.handlerId!==e&&(this.handlerId=e,this.reconnect())}},{key:"connectTarget",get:function(){return this.dragSource}},{key:"dragSourceOptions",get:function(){return this.dragSourceOptionsInternal},set:function(e){this.dragSourceOptionsInternal=e}},{key:"dragPreviewOptions",get:function(){return this.dragPreviewOptionsInternal},set:function(e){this.dragPreviewOptionsInternal=e}},{key:"reconnect",value:function(){this.reconnectDragSource(),this.reconnectDragPreview()}},{key:"reconnectDragSource",value:function(){var e=this.dragSource,t=this.didHandlerIdChange()||this.didConnectedDragSourceChange()||this.didDragSourceOptionsChange();t&&this.disconnectDragSource(),this.handlerId&&(e?t&&(this.lastConnectedHandlerId=this.handlerId,this.lastConnectedDragSource=e,this.lastConnectedDragSourceOptions=this.dragSourceOptions,this.dragSourceUnsubscribe=this.backend.connectDragSource(this.handlerId,e,this.dragSourceOptions)):this.lastConnectedDragSource=e)}},{key:"reconnectDragPreview",value:function(){var e=this.dragPreview,t=this.didHandlerIdChange()||this.didConnectedDragPreviewChange()||this.didDragPreviewOptionsChange();t&&this.disconnectDragPreview(),this.handlerId&&(e?t&&(this.lastConnectedHandlerId=this.handlerId,this.lastConnectedDragPreview=e,this.lastConnectedDragPreviewOptions=this.dragPreviewOptions,this.dragPreviewUnsubscribe=this.backend.connectDragPreview(this.handlerId,e,this.dragPreviewOptions)):this.lastConnectedDragPreview=e)}},{key:"didHandlerIdChange",value:function(){return this.lastConnectedHandlerId!==this.handlerId}},{key:"didConnectedDragSourceChange",value:function(){return this.lastConnectedDragSource!==this.dragSource}},{key:"didConnectedDragPreviewChange",value:function(){return this.lastConnectedDragPreview!==this.dragPreview}},{key:"didDragSourceOptionsChange",value:function(){return!lR(this.lastConnectedDragSourceOptions,this.dragSourceOptions)}},{key:"didDragPreviewOptionsChange",value:function(){return!lR(this.lastConnectedDragPreviewOptions,this.dragPreviewOptions)}},{key:"disconnectDragSource",value:function(){this.dragSourceUnsubscribe&&(this.dragSourceUnsubscribe(),this.dragSourceUnsubscribe=void 0)}},{key:"disconnectDragPreview",value:function(){this.dragPreviewUnsubscribe&&(this.dragPreviewUnsubscribe(),this.dragPreviewUnsubscribe=void 0,this.dragPreviewNode=null,this.dragPreviewRef=null)}},{key:"dragSource",get:function(){return this.dragSourceNode||this.dragSourceRef&&this.dragSourceRef.current}},{key:"dragPreview",get:function(){return this.dragPreviewNode||this.dragPreviewRef&&this.dragPreviewRef.current}},{key:"clearDragSource",value:function(){this.dragSourceNode=null,this.dragSourceRef=null}},{key:"clearDragPreview",value:function(){this.dragPreviewNode=null,this.dragPreviewRef=null}}])&&cR(t.prototype,n),a&&cR(t,a),e}();function dR(e,t){for(var n=0;n<t.length;n++){var a=t[n];a.enumerable=a.enumerable||!1,a.configurable=!0,"value"in a&&(a.writable=!0),Object.defineProperty(e,a.key,a)}}function pR(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var fR=function(){function e(t){var n=this;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),pR(this,"hooks",aR({dropTarget:function(e,t){n.clearDropTarget(),n.dropTargetOptions=t,iR(e)?n.dropTargetRef=e:n.dropTargetNode=e,n.reconnect()}})),pR(this,"handlerId",null),pR(this,"dropTargetRef",null),pR(this,"dropTargetNode",void 0),pR(this,"dropTargetOptionsInternal",null),pR(this,"unsubscribeDropTarget",void 0),pR(this,"lastConnectedHandlerId",null),pR(this,"lastConnectedDropTarget",null),pR(this,"lastConnectedDropTargetOptions",null),pR(this,"backend",void 0),this.backend=t}var t,n,a;return t=e,(n=[{key:"connectTarget",get:function(){return this.dropTarget}},{key:"reconnect",value:function(){var e=this.didHandlerIdChange()||this.didDropTargetChange()||this.didOptionsChange();e&&this.disconnectDropTarget();var t=this.dropTarget;this.handlerId&&(t?e&&(this.lastConnectedHandlerId=this.handlerId,this.lastConnectedDropTarget=t,this.lastConnectedDropTargetOptions=this.dropTargetOptions,this.unsubscribeDropTarget=this.backend.connectDropTarget(this.handlerId,t,this.dropTargetOptions)):this.lastConnectedDropTarget=t)}},{key:"receiveHandlerId",value:function(e){e!==this.handlerId&&(this.handlerId=e,this.reconnect())}},{key:"dropTargetOptions",get:function(){return this.dropTargetOptionsInternal},set:function(e){this.dropTargetOptionsInternal=e}},{key:"didHandlerIdChange",value:function(){return this.lastConnectedHandlerId!==this.handlerId}},{key:"didDropTargetChange",value:function(){return this.lastConnectedDropTarget!==this.dropTarget}},{key:"didOptionsChange",value:function(){return!lR(this.lastConnectedDropTargetOptions,this.dropTargetOptions)}},{key:"disconnectDropTarget",value:function(){this.unsubscribeDropTarget&&(this.unsubscribeDropTarget(),this.unsubscribeDropTarget=void 0)}},{key:"dropTarget",get:function(){return this.dropTargetNode||this.dropTargetRef&&this.dropTargetRef.current}},{key:"clearDropTarget",value:function(){this.dropTargetRef=null,this.dropTargetNode=null}}])&&dR(t.prototype,n),a&&dR(t,a),e}();var mR="undefined"!=typeof window?e.useLayoutEffect:e.useEffect;function hR(e){return hR="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},hR(e)}function gR(e,t){for(var n=0;n<t.length;n++){var a=t[n];a.enumerable=a.enumerable||!1,a.configurable=!0,"value"in a&&(a.writable=!0),Object.defineProperty(e,a.key,a)}}function bR(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var vR=function(){function e(t,n,a){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),bR(this,"spec",void 0),bR(this,"monitor",void 0),bR(this,"connector",void 0),this.spec=t,this.monitor=n,this.connector=a}var t,n,a;return t=e,(n=[{key:"beginDrag",value:function(){var e,t=this.spec,n=this.monitor;return null!==(e="object"===hR(t.item)?t.item:"function"==typeof t.item?t.item(n):{})&&void 0!==e?e:null}},{key:"canDrag",value:function(){var e=this.spec,t=this.monitor;return"boolean"==typeof e.canDrag?e.canDrag:"function"!=typeof e.canDrag||e.canDrag(t)}},{key:"isDragging",value:function(e,t){var n=this.spec,a=this.monitor,r=n.isDragging;return r?r(a):t===e.getSourceId()}},{key:"endDrag",value:function(){var e=this.spec,t=this.monitor,n=this.connector,a=e.end;a&&a(t.getItem(),t),n.reconnect()}}])&&gR(t.prototype,n),a&&gR(t,a),e}();function xR(){var t=e.useContext(mT).dragDropManager;return hT(null!=t,"Expected drag drop context"),t}function yR(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null==n)return;var a,r,o=[],i=!0,l=!1;try{for(n=n.call(e);!(i=(a=n.next()).done)&&(o.push(a.value),!t||o.length!==t);i=!0);}catch(e){l=!0,r=e}finally{try{i||null==n.return||n.return()}finally{if(l)throw r}}return o}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return wR(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return wR(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function wR(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,a=new Array(t);n<t;n++)a[n]=e[n];return a}function kR(t,n,a){var r=xR(),o=function(t,n,a){var r=e.useMemo(function(){return new vR(t,n,a)},[n,a]);return e.useEffect(function(){r.spec=t},[t]),r}(t,n,a),i=function(t){return e.useMemo(function(){var e=t.type;return hT(null!=e,"spec.type must be defined"),e},[t])}(t);mR(function(){if(null!=i){var e=function(e,t,n){var a=n.getRegistry(),r=a.addSource(e,t);return[r,function(){return a.removeSource(r)}]}(i,o,r),t=yR(e,2),l=t[0],c=t[1];return n.receiveHandlerId(l),a.receiveHandlerId(l),c}},[r,n,a,o,i])}function CR(e){return function(e){if(Array.isArray(e))return ER(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(!e)return;if("string"==typeof e)return ER(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return ER(e,t)}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function ER(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,a=new Array(t);n<t;n++)a[n]=e[n];return a}function SR(t,n){var a=CR(n||[]);return null==n&&"function"!=typeof t&&a.push(t),e.useMemo(function(){return"function"==typeof t?t():t},a)}var NR=function e(t,n){if(t===n)return!0;if(t&&n&&"object"==typeof t&&"object"==typeof n){if(t.constructor!==n.constructor)return!1;var a,r,o;if(Array.isArray(t)){if((a=t.length)!=n.length)return!1;for(r=a;0!==r--;)if(!e(t[r],n[r]))return!1;return!0}if(t.constructor===RegExp)return t.source===n.source&&t.flags===n.flags;if(t.valueOf!==Object.prototype.valueOf)return t.valueOf()===n.valueOf();if(t.toString!==Object.prototype.toString)return t.toString()===n.toString();if((a=(o=Object.keys(t)).length)!==Object.keys(n).length)return!1;for(r=a;0!==r--;)if(!Object.prototype.hasOwnProperty.call(n,o[r]))return!1;for(r=a;0!==r--;){var i=o[r];if(!e(t[i],n[i]))return!1}return!0}return t!=t&&n!=n};function OR(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null==n)return;var a,r,o=[],i=!0,l=!1;try{for(n=n.call(e);!(i=(a=n.next()).done)&&(o.push(a.value),!t||o.length!==t);i=!0);}catch(e){l=!0,r=e}finally{try{i||null==n.return||n.return()}finally{if(l)throw r}}return o}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return PR(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return PR(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function PR(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,a=new Array(t);n<t;n++)a[n]=e[n];return a}function DR(t,n,a){var r=OR(e.useState(function(){return n(t)}),2),o=r[0],i=r[1],l=e.useCallback(function(){var e=n(t);NR(o,e)||(i(e),a&&a())},[o,t,a]);return mR(l),[o,l]}function TR(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null==n)return;var a,r,o=[],i=!0,l=!1;try{for(n=n.call(e);!(i=(a=n.next()).done)&&(o.push(a.value),!t||o.length!==t);i=!0);}catch(e){l=!0,r=e}finally{try{i||null==n.return||n.return()}finally{if(l)throw r}}return o}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return IR(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return IR(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function IR(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,a=new Array(t);n<t;n++)a[n]=e[n];return a}function RR(e,t,n){return function(e,t,n){var a=TR(DR(e,t,n),2),r=a[0],o=a[1];return mR(function(){var t=e.getHandlerId();if(null!=t)return e.subscribeToStateChange(o,{handlerIds:[t]})},[e,o]),r}(t,e||function(){return{}},function(){return n.reconnect()})}function MR(t){return e.useMemo(function(){return t.hooks.dragSource()},[t])}function zR(t){return e.useMemo(function(){return t.hooks.dragPreview()},[t])}function jR(t,n){var a=SR(t,n);hT(!a.begin,"useDrag::spec.begin was deprecated in v14. Replace spec.begin() with spec.item(). (see more here - https://react-dnd.github.io/react-dnd/docs/api/use-drag)");var r,o=(r=xR(),e.useMemo(function(){return new ZI(r)},[r])),i=function(t,n){var a=xR(),r=e.useMemo(function(){return new uR(a.getBackend())},[a]);return mR(function(){return r.dragSourceOptions=t||null,r.reconnect(),function(){return r.disconnectDragSource()}},[r,t]),mR(function(){return r.dragPreviewOptions=n||null,r.reconnect(),function(){return r.disconnectDragPreview()}},[r,n]),r}(a.options,a.previewOptions);return kR(a,o,i),[RR(a.collect,o,i),MR(i),zR(i)]}function AR(e,t){for(var n=0;n<t.length;n++){var a=t[n];a.enumerable=a.enumerable||!1,a.configurable=!0,"value"in a&&(a.writable=!0),Object.defineProperty(e,a.key,a)}}function LR(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var FR=function(){function e(t,n){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),LR(this,"spec",void 0),LR(this,"monitor",void 0),this.spec=t,this.monitor=n}var t,n,a;return t=e,(n=[{key:"canDrop",value:function(){var e=this.spec,t=this.monitor;return!e.canDrop||e.canDrop(t.getItem(),t)}},{key:"hover",value:function(){var e=this.spec,t=this.monitor;e.hover&&e.hover(t.getItem(),t)}},{key:"drop",value:function(){var e=this.spec,t=this.monitor;if(e.drop)return e.drop(t.getItem(),t)}}])&&AR(t.prototype,n),a&&AR(t,a),e}();function _R(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null==n)return;var a,r,o=[],i=!0,l=!1;try{for(n=n.call(e);!(i=(a=n.next()).done)&&(o.push(a.value),!t||o.length!==t);i=!0);}catch(e){l=!0,r=e}finally{try{i||null==n.return||n.return()}finally{if(l)throw r}}return o}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return VR(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return VR(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function VR(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,a=new Array(t);n<t;n++)a[n]=e[n];return a}function KR(t,n,a){var r=xR(),o=function(t,n){var a=e.useMemo(function(){return new FR(t,n)},[n]);return e.useEffect(function(){a.spec=t},[t]),a}(t,n),i=function(t){var n=t.accept;return e.useMemo(function(){return hT(null!=t.accept,"accept must be defined"),Array.isArray(n)?n:[n]},[n])}(t);mR(function(){var e=function(e,t,n){var a=n.getRegistry(),r=a.addTarget(e,t);return[r,function(){return a.removeTarget(r)}]}(i,o,r),t=_R(e,2),l=t[0],c=t[1];return n.receiveHandlerId(l),a.receiveHandlerId(l),c},[r,n,o,a,i.map(function(e){return e.toString()}).join("|")])}function HR(t){return e.useMemo(function(){return t.hooks.dropTarget()},[t])}function BR(t,n){var a,r=SR(t,n),o=(a=xR(),e.useMemo(function(){return new tR(a)},[a])),i=function(t){var n=xR(),a=e.useMemo(function(){return new fR(n.getBackend())},[n]);return mR(function(){return a.dropTargetOptions=t||null,a.reconnect(),function(){return a.disconnectDropTarget()}},[t]),a}(r.options);return KR(r,o,i),[RR(r.collect,o,i),HR(i)]}k('.drop-over-downward td{border-bottom:2px dashed #5860f8!important}.drop-over-upward td{border-top:2px dashed #5860f8!important}.editable-cell-value-wrap{cursor:pointer;min-height:20px;min-width:50px;position:relative}.editable-row:hover .editable-cell-value-wrap:after,[data-theme=dark] .editable-row:hover .editable-cell-value-wrap:after{border:1px dashed #5860f8;bottom:0;content:"";left:0;position:absolute;right:0;top:0;z-index:1}');const{Option:$R}=Nu,UR=f.default.createContext(null),WR=e.memo(({vc:t,open:a,index:r,moveRow:o,className:i,style:l,...c})=>{const[s]=dy.useForm(),u=e.useRef(null),[{isOver:d,dropClassName:p},f]=BR({accept:"DraggableBodyRow",collect:e=>{const{index:t}=e.getItem()||{};return t===r?{}:{isOver:e.isOver(),dropClassName:t<r?" drop-over-downward":" drop-over-upward"}},drop:e=>{o(e.index,r)}}),[,m]=jR({type:"DraggableBodyRow",item:{index:r},collect:e=>({isDragging:e.isDragging()})});a&&f(m(u));const h={ref:u,className:`${i}${d?p:""}`,style:{cursor:a?"move":"auto",...l},...c};return n.jsx(dy,{size:"small",component:!1,form:s,children:n.jsx(UR.Provider,{value:s,children:t?t.body.row(h,u):n.jsx("tr",{...h})})})},(e,t)=>e.index===t.index&&e.open===t.open&&e.vc===t.vc&&e.className===t.className&&e.style===t.style&&e.moveRow===t.moveRow);var YR=e.memo(({vc:t,columns:a,record:r,recordIndex:o,dataIndex:i,title:l,rowSpanNum:c,colSpanNum:s,rowSpan:u,colSpan:d,editable:p,inputType:f,valueType:h,valueEnum:g,recordSelectField:b,controlRender:v,render:y,formChange:w,remoteConfig:k,children:C,formItemProps:E,handleSave:S,placeholder:N,triggerRemoteSearch:O,...P})=>{const D=e.useContext(UR),[T,I]=e.useState(!1),[R,M]=e.useState(!1),[z,j]=e.useState({}),A=e.useRef(null);e.useEffect(()=>{T&&A.current.focus()},[T]),e.useEffect(()=>{"RemoteSearch"===h&&r&&r[i]&&k?.remoteApi&&O&&L(void 0,i,r,k?.remoteApi)},[k?.remoteApi,r?.[i],O]);const L=(e,t,n,a)=>{a&&(M(!0),a(e,n).then(e=>{M(!1),t&&j(n=>({...n,[t]:e}))}))},F=()=>{_()},_=()=>{I(!1)},V=()=>{let e=r[i];null!=e&&""!==e&&("DatePicker"!==h&&"DateTimePicker"!==h||(e=x.default(e)),"status"===i&&(e=String(e))),I(!T),D.setFieldsValue({[i]:e})},K=e.useCallback(e=>{const t={DateTimePicker:"YYYY-MM-DD HH:mm:ss",DatePicker:"YYYY-MM-DD"};return Object.keys(t).includes(h)&&e[i]&&(e[i]=e[i].format(t[h])),e},[h,i]),H=e.useMemo(()=>{if(h&&i){if(g&&("Select"===h||"AutoComplete"===h))return pP(g,r[i]);if("RemoteSearch"===h&&z[i])return pP(z[i],r[i]);if(r[b]&&"RecordSelect"===h)return pP(r[b],r[i]);if(x.default.isMoment(r[i]))return K({...r})[i]}return C},[h,i,g,z,r,C,b,K]),B=(e,t)=>{let a=null;const o=(e,t)=>{let n="";const a=function(e){for(let t of e)if(t)if(dP({data:t,type:"String"}))n+=t;else{const e=t.props.children;dP({data:e,type:"Object"})&&a([e]),dP({data:e,type:"Array"})&&a(e),dP({data:e,type:"String"})&&(n+=e)}};return a([t.children]),n.toLowerCase().indexOf(e.toLowerCase())>=0},l=e=>m.default.isArray(e)?e.map((e,t)=>n.jsx($R,{value:e.value,children:e.label},t)):null;switch(e){case"RecordSelect":a=n.jsx(Nu,{ref:A,open:T,allowClear:!0,showSearch:!0,dropdownMatchSelectWidth:!1,placeholder:N||t,onChange:$,onBlur:F,optionFilterProp:"children",filterOption:o,children:l(r[b])});break;case"Select":a=n.jsx(Nu,{ref:A,open:T,dropdownMatchSelectWidth:!1,onChange:$,onBlur:F,placeholder:N||t,children:l(g)});break;case"DatePicker":a=n.jsx(mx,{ref:A,open:T,onChange:$,onBlur:F,placeholder:N||t});break;case"DateTimePicker":a=n.jsx(mx,{ref:A,open:T,onChange:$,onBlur:F,placeholder:N||t,showTime:!0});break;case"AutoComplete":a=n.jsx(Nu,{ref:A,open:T,allowClear:!0,showSearch:!0,dropdownMatchSelectWidth:!1,placeholder:N||t,onChange:$,onBlur:F,optionFilterProp:"children",filterOption:o,children:l(g)});break;case"RemoteSearch":let e=g;z[i]&&(e=z[i]),a=n.jsx(Nu,{ref:A,open:T,mode:k.remoteMode,placeholder:N||t,notFoundContent:R?n.jsx(Yy,{size:"small"}):null,dropdownMatchSelectWidth:!1,filterOption:!1,allowClear:!0,showSearch:!0,onChange:$,onBlur:F,onFocus:()=>L(void 0,i,r,k.remoteApi),onSearch:e=>L(e,i,r,k.remoteApi),children:i&&l(e)});break;default:a=n.jsx(Hb,{ref:A,onPressEnter:$,onBlur:$,placeholder:N||t,type:f||"text"})}return a},$=async()=>{try{const e=await D.validateFields();let t={...r,...e};t[i]=t[i]||void 0,t=K(t),w&&(t=await w(t)||t),r[i]!==t[i]&&S(t,i),_()}catch(e){console.log("保存表单字段失败:",e)}};let U=C;const W=e.useMemo(()=>y?y(r[i],r,o):H,[y,r,o,i,H]);U=p?T?n.jsx(dy.Item,{style:{margin:0},name:i,rules:E?E.rules:void 0,children:B(h,l)}):n.jsx("div",{className:"editable-cell-value-wrap",onClick:V,children:W}):W,v&&(U=v(r,U));const Y=e.useCallback((e,a)=>t?n.jsx(t.body.cell,{...e,children:a}):n.jsx("td",{...e,children:a}),[t]);return u||d?Y({...P,rowSpan:u,colSpan:d,title:r&&r[i]},U):0!==c&&0!==s?Y({...P,rowSpan:c,colSpan:u,title:r&&r[i]},U):null});function qR(e){var t=null;return function(){return null==t&&(t=e()),t}}function GR(e,t){for(var n=0;n<t.length;n++){var a=t[n];a.enumerable=a.enumerable||!1,a.configurable=!0,"value"in a&&(a.writable=!0),Object.defineProperty(e,a.key,a)}}function XR(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var ZR=function(){function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),XR(this,"entered",[]),XR(this,"isNodeInDocument",void 0),this.isNodeInDocument=t}var t,n,a;return t=e,n=[{key:"enter",value:function(e){var t=this,n=this.entered.length;return this.entered=function(e,t){var n=new Set,a=function(e){return n.add(e)};e.forEach(a),t.forEach(a);var r=[];return n.forEach(function(e){return r.push(e)}),r}(this.entered.filter(function(n){return t.isNodeInDocument(n)&&(!n.contains||n.contains(e))}),[e]),0===n&&this.entered.length>0}},{key:"leave",value:function(e){var t,n,a=this.entered.length;return this.entered=(t=this.entered.filter(this.isNodeInDocument),n=e,t.filter(function(e){return e!==n})),a>0&&0===this.entered.length}},{key:"reset",value:function(){this.entered=[]}}],n&&GR(t.prototype,n),a&&GR(t,a),e}(),QR=qR(function(){return/firefox/i.test(navigator.userAgent)}),JR=qR(function(){return Boolean(window.safari)});function eM(e,t){for(var n=0;n<t.length;n++){var a=t[n];a.enumerable=a.enumerable||!1,a.configurable=!0,"value"in a&&(a.writable=!0),Object.defineProperty(e,a.key,a)}}function tM(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var nM=function(){function e(t,n){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),tM(this,"xs",void 0),tM(this,"ys",void 0),tM(this,"c1s",void 0),tM(this,"c2s",void 0),tM(this,"c3s",void 0);for(var a=t.length,r=[],o=0;o<a;o++)r.push(o);r.sort(function(e,n){return t[e]<t[n]?-1:1});for(var i,l,c=[],s=[],u=0;u<a-1;u++)i=t[u+1]-t[u],l=n[u+1]-n[u],c.push(i),s.push(l/i);for(var d=[s[0]],p=0;p<c.length-1;p++){var f=s[p],m=s[p+1];if(f*m<=0)d.push(0);else{i=c[p];var h=c[p+1],g=i+h;d.push(3*g/((g+h)/f+(g+i)/m))}}d.push(s[s.length-1]);for(var b,v=[],x=[],y=0;y<d.length-1;y++){b=s[y];var w=d[y],k=1/c[y],C=w+d[y+1]-b-b;v.push((b-w-C)*k),x.push(C*k*k)}this.xs=t,this.ys=n,this.c1s=d,this.c2s=v,this.c3s=x}var t,n,a;return t=e,n=[{key:"interpolate",value:function(e){var t=this.xs,n=this.ys,a=this.c1s,r=this.c2s,o=this.c3s,i=t.length-1;if(e===t[i])return n[i];for(var l,c=0,s=o.length-1;c<=s;){var u=t[l=Math.floor(.5*(c+s))];if(u<e)c=l+1;else{if(!(u>e))return n[l];s=l-1}}var d=e-t[i=Math.max(0,s)],p=d*d;return n[i]+a[i]*d+r[i]*p+o[i]*d*p}}],n&&eM(t.prototype,n),a&&eM(t,a),e}();function aM(e){var t=1===e.nodeType?e:e.parentElement;if(!t)return null;var n=t.getBoundingClientRect(),a=n.top;return{x:n.left,y:a}}function rM(e){return{x:e.clientX,y:e.clientY}}function oM(e,t,n,a,r){var o,i,l="IMG"===(o=t).nodeName&&(QR()||!(null!==(i=document.documentElement)&&void 0!==i&&i.contains(o))),c=aM(l?e:t),s={x:n.x-c.x,y:n.y-c.y},u=e.offsetWidth,d=e.offsetHeight,p=a.anchorX,f=a.anchorY,m=function(e,t,n,a){var r=e?t.width:n,o=e?t.height:a;return JR()&&e&&(o/=window.devicePixelRatio,r/=window.devicePixelRatio),{dragPreviewWidth:r,dragPreviewHeight:o}}(l,t,u,d),h=m.dragPreviewWidth,g=m.dragPreviewHeight,b=r.offsetX,v=r.offsetY,x=0===v||v;return{x:0===b||b?b:new nM([0,.5,1],[s.x,s.x/u*h,s.x+h-u]).interpolate(p),y:x?v:function(){var e=new nM([0,.5,1],[s.y,s.y/d*g,s.y+g-d]).interpolate(f);return JR()&&l&&(e+=(window.devicePixelRatio-1)*g),e}()}}var iM,lM="__NATIVE_FILE__",cM="__NATIVE_URL__",sM="__NATIVE_TEXT__",uM="__NATIVE_HTML__",dM=Object.freeze({__proto__:null,FILE:lM,URL:cM,TEXT:sM,HTML:uM});function pM(e,t,n){var a=t.reduce(function(t,n){return t||e.getData(n)},"");return null!=a?a:n}function fM(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var mM=(fM(iM={},lM,{exposeProperties:{files:function(e){return Array.prototype.slice.call(e.files)},items:function(e){return e.items},dataTransfer:function(e){return e}},matchesTypes:["Files"]}),fM(iM,uM,{exposeProperties:{html:function(e,t){return pM(e,t,"")},dataTransfer:function(e){return e}},matchesTypes:["Html","text/html"]}),fM(iM,cM,{exposeProperties:{urls:function(e,t){return pM(e,t,"").split("\n")},dataTransfer:function(e){return e}},matchesTypes:["Url","text/uri-list"]}),fM(iM,sM,{exposeProperties:{text:function(e,t){return pM(e,t,"")},dataTransfer:function(e){return e}},matchesTypes:["Text","text/plain"]}),iM);function hM(e,t){for(var n=0;n<t.length;n++){var a=t[n];a.enumerable=a.enumerable||!1,a.configurable=!0,"value"in a&&(a.writable=!0),Object.defineProperty(e,a.key,a)}}function gM(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var bM=function(){function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),gM(this,"item",void 0),gM(this,"config",void 0),this.config=t,this.item={},this.initializeExposedProperties()}var t,n,a;return t=e,(n=[{key:"initializeExposedProperties",value:function(){var e=this;Object.keys(this.config.exposeProperties).forEach(function(t){Object.defineProperty(e.item,t,{configurable:!0,enumerable:!0,get:function(){return console.warn("Browser doesn't allow reading \"".concat(t,'" until the drop event.')),null}})})}},{key:"loadDataTransfer",value:function(e){var t=this;if(e){var n={};Object.keys(this.config.exposeProperties).forEach(function(a){n[a]={value:t.config.exposeProperties[a](e,t.config.matchesTypes),configurable:!0,enumerable:!0}}),Object.defineProperties(this.item,n)}}},{key:"canDrag",value:function(){return!0}},{key:"beginDrag",value:function(){return this.item}},{key:"isDragging",value:function(e,t){return t===e.getSourceId()}},{key:"endDrag",value:function(){}}])&&hM(t.prototype,n),a&&hM(t,a),e}();function vM(e){if(!e)return null;var t=Array.prototype.slice.call(e.types||[]);return Object.keys(mM).filter(function(e){return mM[e].matchesTypes.some(function(e){return t.indexOf(e)>-1})})[0]||null}function xM(e,t){for(var n=0;n<t.length;n++){var a=t[n];a.enumerable=a.enumerable||!1,a.configurable=!0,"value"in a&&(a.writable=!0),Object.defineProperty(e,a.key,a)}}function yM(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var wM=function(){function e(t,n){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),yM(this,"ownerDocument",null),yM(this,"globalContext",void 0),yM(this,"optionsArgs",void 0),this.globalContext=t,this.optionsArgs=n}var t,n,a;return t=e,(n=[{key:"window",get:function(){return this.globalContext?this.globalContext:"undefined"!=typeof window?window:void 0}},{key:"document",get:function(){var e;return null!==(e=this.globalContext)&&void 0!==e&&e.document?this.globalContext.document:this.window?this.window.document:void 0}},{key:"rootElement",get:function(){var e;return(null===(e=this.optionsArgs)||void 0===e?void 0:e.rootElement)||this.window}}])&&xM(t.prototype,n),a&&xM(t,a),e}();function kM(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,a)}return n}function CM(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?kM(Object(n),!0).forEach(function(t){SM(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):kM(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function EM(e,t){for(var n=0;n<t.length;n++){var a=t[n];a.enumerable=a.enumerable||!1,a.configurable=!0,"value"in a&&(a.writable=!0),Object.defineProperty(e,a.key,a)}}function SM(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var NM=function(){function e(t,n,a){var r=this;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),SM(this,"options",void 0),SM(this,"actions",void 0),SM(this,"monitor",void 0),SM(this,"registry",void 0),SM(this,"enterLeaveCounter",void 0),SM(this,"sourcePreviewNodes",new Map),SM(this,"sourcePreviewNodeOptions",new Map),SM(this,"sourceNodes",new Map),SM(this,"sourceNodeOptions",new Map),SM(this,"dragStartSourceIds",null),SM(this,"dropTargetIds",[]),SM(this,"dragEnterTargetIds",[]),SM(this,"currentNativeSource",null),SM(this,"currentNativeHandle",null),SM(this,"currentDragSourceNode",null),SM(this,"altKeyPressed",!1),SM(this,"mouseMoveTimeoutTimer",null),SM(this,"asyncEndDragFrameId",null),SM(this,"dragOverTargetIds",null),SM(this,"lastClientOffset",null),SM(this,"hoverRafId",null),SM(this,"getSourceClientOffset",function(e){var t=r.sourceNodes.get(e);return t&&aM(t)||null}),SM(this,"endDragNativeItem",function(){r.isDraggingNativeItem()&&(r.actions.endDrag(),r.currentNativeHandle&&r.registry.removeSource(r.currentNativeHandle),r.currentNativeHandle=null,r.currentNativeSource=null)}),SM(this,"isNodeInDocument",function(e){return Boolean(e&&r.document&&r.document.body&&r.document.body.contains(e))}),SM(this,"endDragIfSourceWasRemovedFromDOM",function(){var e=r.currentDragSourceNode;null==e||r.isNodeInDocument(e)||r.clearCurrentDragSourceNode()&&r.monitor.isDragging()&&r.actions.endDrag()}),SM(this,"handleTopDragStartCapture",function(){r.clearCurrentDragSourceNode(),r.dragStartSourceIds=[]}),SM(this,"handleTopDragStart",function(e){if(!e.defaultPrevented){var t=r.dragStartSourceIds;r.dragStartSourceIds=null;var n=rM(e);r.monitor.isDragging()&&r.actions.endDrag(),r.actions.beginDrag(t||[],{publishSource:!1,getSourceClientOffset:r.getSourceClientOffset,clientOffset:n});var a=e.dataTransfer,o=vM(a);if(r.monitor.isDragging()){if(a&&"function"==typeof a.setDragImage){var i=r.monitor.getSourceId(),l=r.sourceNodes.get(i),c=r.sourcePreviewNodes.get(i)||l;if(c){var s=r.getCurrentSourcePreviewNodeOptions(),u=oM(l,c,n,{anchorX:s.anchorX,anchorY:s.anchorY},{offsetX:s.offsetX,offsetY:s.offsetY});a.setDragImage(c,u.x,u.y)}}try{null==a||a.setData("application/json",{})}catch(e){}r.setCurrentDragSourceNode(e.target),r.getCurrentSourcePreviewNodeOptions().captureDraggingState?r.actions.publishDragSource():setTimeout(function(){return r.actions.publishDragSource()},0)}else if(o)r.beginDragNativeItem(o);else{if(a&&!a.types&&(e.target&&!e.target.hasAttribute||!e.target.hasAttribute("draggable")))return;e.preventDefault()}}}),SM(this,"handleTopDragEndCapture",function(){r.clearCurrentDragSourceNode()&&r.monitor.isDragging()&&r.actions.endDrag()}),SM(this,"handleTopDragEnterCapture",function(e){if(r.dragEnterTargetIds=[],r.enterLeaveCounter.enter(e.target)&&!r.monitor.isDragging()){var t=e.dataTransfer,n=vM(t);n&&r.beginDragNativeItem(n,t)}}),SM(this,"handleTopDragEnter",function(e){var t=r.dragEnterTargetIds;(r.dragEnterTargetIds=[],r.monitor.isDragging())&&(r.altKeyPressed=e.altKey,t.length>0&&r.actions.hover(t,{clientOffset:rM(e)}),t.some(function(e){return r.monitor.canDropOnTarget(e)})&&(e.preventDefault(),e.dataTransfer&&(e.dataTransfer.dropEffect=r.getCurrentDropEffect())))}),SM(this,"handleTopDragOverCapture",function(){r.dragOverTargetIds=[]}),SM(this,"handleTopDragOver",function(e){var t=r.dragOverTargetIds;if(r.dragOverTargetIds=[],!r.monitor.isDragging())return e.preventDefault(),void(e.dataTransfer&&(e.dataTransfer.dropEffect="none"));r.altKeyPressed=e.altKey,r.lastClientOffset=rM(e),null===r.hoverRafId&&"undefined"!=typeof requestAnimationFrame&&(r.hoverRafId=requestAnimationFrame(function(){r.monitor.isDragging()&&r.actions.hover(t||[],{clientOffset:r.lastClientOffset}),r.hoverRafId=null})),(t||[]).some(function(e){return r.monitor.canDropOnTarget(e)})?(e.preventDefault(),e.dataTransfer&&(e.dataTransfer.dropEffect=r.getCurrentDropEffect())):r.isDraggingNativeItem()?e.preventDefault():(e.preventDefault(),e.dataTransfer&&(e.dataTransfer.dropEffect="none"))}),SM(this,"handleTopDragLeaveCapture",function(e){r.isDraggingNativeItem()&&e.preventDefault(),r.enterLeaveCounter.leave(e.target)&&r.isDraggingNativeItem()&&setTimeout(function(){return r.endDragNativeItem()},0)}),SM(this,"handleTopDropCapture",function(e){var t;(r.dropTargetIds=[],r.isDraggingNativeItem())?(e.preventDefault(),null===(t=r.currentNativeSource)||void 0===t||t.loadDataTransfer(e.dataTransfer)):vM(e.dataTransfer)&&e.preventDefault();r.enterLeaveCounter.reset()}),SM(this,"handleTopDrop",function(e){var t=r.dropTargetIds;r.dropTargetIds=[],r.actions.hover(t,{clientOffset:rM(e)}),r.actions.drop({dropEffect:r.getCurrentDropEffect()}),r.isDraggingNativeItem()?r.endDragNativeItem():r.monitor.isDragging()&&r.actions.endDrag()}),SM(this,"handleSelectStart",function(e){var t=e.target;"function"==typeof t.dragDrop&&("INPUT"===t.tagName||"SELECT"===t.tagName||"TEXTAREA"===t.tagName||t.isContentEditable||(e.preventDefault(),t.dragDrop()))}),this.options=new wM(n,a),this.actions=t.getActions(),this.monitor=t.getMonitor(),this.registry=t.getRegistry(),this.enterLeaveCounter=new ZR(this.isNodeInDocument)}var t,n,a;return t=e,n=[{key:"profile",value:function(){var e,t;return{sourcePreviewNodes:this.sourcePreviewNodes.size,sourcePreviewNodeOptions:this.sourcePreviewNodeOptions.size,sourceNodeOptions:this.sourceNodeOptions.size,sourceNodes:this.sourceNodes.size,dragStartSourceIds:(null===(e=this.dragStartSourceIds)||void 0===e?void 0:e.length)||0,dropTargetIds:this.dropTargetIds.length,dragEnterTargetIds:this.dragEnterTargetIds.length,dragOverTargetIds:(null===(t=this.dragOverTargetIds)||void 0===t?void 0:t.length)||0}}},{key:"window",get:function(){return this.options.window}},{key:"document",get:function(){return this.options.document}},{key:"rootElement",get:function(){return this.options.rootElement}},{key:"setup",value:function(){var e=this.rootElement;if(void 0!==e){if(e.__isReactDndBackendSetUp)throw new Error("Cannot have two HTML5 backends at the same time.");e.__isReactDndBackendSetUp=!0,this.addEventListeners(e)}}},{key:"teardown",value:function(){var e,t=this.rootElement;void 0!==t&&(t.__isReactDndBackendSetUp=!1,this.removeEventListeners(this.rootElement),this.clearCurrentDragSourceNode(),this.asyncEndDragFrameId&&(null===(e=this.window)||void 0===e||e.cancelAnimationFrame(this.asyncEndDragFrameId)))}},{key:"connectDragPreview",value:function(e,t,n){var a=this;return this.sourcePreviewNodeOptions.set(e,n),this.sourcePreviewNodes.set(e,t),function(){a.sourcePreviewNodes.delete(e),a.sourcePreviewNodeOptions.delete(e)}}},{key:"connectDragSource",value:function(e,t,n){var a=this;this.sourceNodes.set(e,t),this.sourceNodeOptions.set(e,n);var r=function(t){return a.handleDragStart(t,e)},o=function(e){return a.handleSelectStart(e)};return t.setAttribute("draggable","true"),t.addEventListener("dragstart",r),t.addEventListener("selectstart",o),function(){a.sourceNodes.delete(e),a.sourceNodeOptions.delete(e),t.removeEventListener("dragstart",r),t.removeEventListener("selectstart",o),t.setAttribute("draggable","false")}}},{key:"connectDropTarget",value:function(e,t){var n=this,a=function(t){return n.handleDragEnter(t,e)},r=function(t){return n.handleDragOver(t,e)},o=function(t){return n.handleDrop(t,e)};return t.addEventListener("dragenter",a),t.addEventListener("dragover",r),t.addEventListener("drop",o),function(){t.removeEventListener("dragenter",a),t.removeEventListener("dragover",r),t.removeEventListener("drop",o)}}},{key:"addEventListeners",value:function(e){e.addEventListener&&(e.addEventListener("dragstart",this.handleTopDragStart),e.addEventListener("dragstart",this.handleTopDragStartCapture,!0),e.addEventListener("dragend",this.handleTopDragEndCapture,!0),e.addEventListener("dragenter",this.handleTopDragEnter),e.addEventListener("dragenter",this.handleTopDragEnterCapture,!0),e.addEventListener("dragleave",this.handleTopDragLeaveCapture,!0),e.addEventListener("dragover",this.handleTopDragOver),e.addEventListener("dragover",this.handleTopDragOverCapture,!0),e.addEventListener("drop",this.handleTopDrop),e.addEventListener("drop",this.handleTopDropCapture,!0))}},{key:"removeEventListeners",value:function(e){e.removeEventListener&&(e.removeEventListener("dragstart",this.handleTopDragStart),e.removeEventListener("dragstart",this.handleTopDragStartCapture,!0),e.removeEventListener("dragend",this.handleTopDragEndCapture,!0),e.removeEventListener("dragenter",this.handleTopDragEnter),e.removeEventListener("dragenter",this.handleTopDragEnterCapture,!0),e.removeEventListener("dragleave",this.handleTopDragLeaveCapture,!0),e.removeEventListener("dragover",this.handleTopDragOver),e.removeEventListener("dragover",this.handleTopDragOverCapture,!0),e.removeEventListener("drop",this.handleTopDrop),e.removeEventListener("drop",this.handleTopDropCapture,!0))}},{key:"getCurrentSourceNodeOptions",value:function(){var e=this.monitor.getSourceId(),t=this.sourceNodeOptions.get(e);return CM({dropEffect:this.altKeyPressed?"copy":"move"},t||{})}},{key:"getCurrentDropEffect",value:function(){return this.isDraggingNativeItem()?"copy":this.getCurrentSourceNodeOptions().dropEffect}},{key:"getCurrentSourcePreviewNodeOptions",value:function(){var e=this.monitor.getSourceId();return CM({anchorX:.5,anchorY:.5,captureDraggingState:!1},this.sourcePreviewNodeOptions.get(e)||{})}},{key:"isDraggingNativeItem",value:function(){var e=this.monitor.getItemType();return Object.keys(dM).some(function(t){return dM[t]===e})}},{key:"beginDragNativeItem",value:function(e,t){this.clearCurrentDragSourceNode(),this.currentNativeSource=function(e,t){var n=new bM(mM[e]);return n.loadDataTransfer(t),n}(e,t),this.currentNativeHandle=this.registry.addSource(e,this.currentNativeSource),this.actions.beginDrag([this.currentNativeHandle])}},{key:"setCurrentDragSourceNode",value:function(e){var t=this;this.clearCurrentDragSourceNode(),this.currentDragSourceNode=e,this.mouseMoveTimeoutTimer=setTimeout(function(){var e;return null===(e=t.rootElement)||void 0===e?void 0:e.addEventListener("mousemove",t.endDragIfSourceWasRemovedFromDOM,!0)},1e3)}},{key:"clearCurrentDragSourceNode",value:function(){var e;return!!this.currentDragSourceNode&&(this.currentDragSourceNode=null,this.rootElement&&(null===(e=this.window)||void 0===e||e.clearTimeout(this.mouseMoveTimeoutTimer||void 0),this.rootElement.removeEventListener("mousemove",this.endDragIfSourceWasRemovedFromDOM,!0)),this.mouseMoveTimeoutTimer=null,!0)}},{key:"handleDragStart",value:function(e,t){e.defaultPrevented||(this.dragStartSourceIds||(this.dragStartSourceIds=[]),this.dragStartSourceIds.unshift(t))}},{key:"handleDragEnter",value:function(e,t){this.dragEnterTargetIds.unshift(t)}},{key:"handleDragOver",value:function(e,t){null===this.dragOverTargetIds&&(this.dragOverTargetIds=[]),this.dragOverTargetIds.unshift(t)}},{key:"handleDrop",value:function(e,t){this.dropTargetIds.unshift(t)}}],n&&EM(t.prototype,n),a&&EM(t,a),e}();const OM=function(e,t,n){return new NM(e,t,n)},PM=e=>n.jsx(UI,{backend:OM,context:window,children:e.children});k(".ant-table-wrapper .ant-table-cell{color:#333}.ant-table-wrapper .ant-table-thead>tr>th{font-weight:700}.ant-table-wrapper .ant-table-tbody>tr>td,.ant-table-wrapper .ant-table-thead>tr>td,.ant-table-wrapper .ant-table-thead>tr>th{padding:6px 8px}.ant-table-wrapper .ant-table-tbody>tr>td.ant-table-cell .ant-form-item .ant-form-item-control-input{min-height:auto}.ant-table-wrapper .ant-table-tbody .btn-operate{height:26px;width:26px}.ant-table-wrapper .ant-table-pagination.ant-pagination{margin-bottom:10px;margin-top:10px;padding-bottom:10px;padding-top:10px}.ant-table-wrapper .react-resizable{background-clip:padding-box;position:relative}.ant-table-wrapper .react-resizable-handle{bottom:0;cursor:col-resize;height:100%;position:absolute;right:-5px;width:10px;z-index:1}");var DM=e.memo(e.forwardRef((t,a)=>{const r=e.useMemo(()=>{const e=t.extra||{};return{tableConfig:e.tableConfig,virtual:e.virtual,rowType:e.rowType,scroll:e.scroll,apiMethod:e.apiMethod,columns:e.columns||[],data:e.data,drag:e.drag,onSelect:e.onSelect,hidSortColumn:e.hidSortColumn,paginationConfig:e.paginationConfig,getCheckboxProps:e.getCheckboxProps,resultFilter:e.resultFilter,getTableSuccessData:e.getTableSuccessData}},[t.extra]),o=e.useRef(),l=e.useRef(!0),c=e.useRef({position:["bottomCenter"],size:"small",current:1,total:0,pages:0,pageSize:10,showSizeChanger:!0,orderByInfo:void 0}),s=e.useRef([]),[u,d]=e.useState(r.columns),[p,f]=e.useState(!1),[h,g]=N.useSetState({listData:[],selectRowIds:[],selectRowArray:[]}),[b,v]=e.useState({x:void 0,y:330}),x=e.useMemo(()=>r.tableConfig&&r.tableConfig.rowKey?r.tableConfig.rowKey:"id",[r.tableConfig]),y=e.useRef(),w=e.useRef(0),k=e.useMemo(()=>{const e=i.v4(),t=r.virtual;if(t&&t.open){const n={...t.config,vid:t.config?.vid||e,height:t.config?.height||500,resetTopWhenDataChange:t.config?.resetTopWhenDataChange||!1},a=h.listData.length||0;return(!y.current||w.current!==a)&&(console.log("创建虚拟滚动列表"),y.current=uD(n),w.current=a),y.current}y.current=void 0,w.current=0},[r.virtual,h.listData.length]),C=e.useMemo(()=>{const e={header:{cell:fT},body:{row:e=>n.jsx(WR,{...e,vc:k}),cell:e=>n.jsx(YR,{...e,vc:k,columns:u})}};try{if(k){const t=e;return{...k,header:t.header,body:{...k.body,cell:t.body.cell,row:t.body.row}}}return e}catch(t){return console.error("虚拟列表配置失败,请检查配置项",t),e}},[u,k]),E=!(!m.default.isFunction(r.apiMethod)||!l.current)&&{size:"small",position:["bottomCenter"],showTotal:e=>`共${e}条`,showSizeChanger:!0,showQuickJumper:!0,...c.current},S=e.useCallback((e,t)=>{const n=new Map;return e.forEach(e=>{n.set(e[x],e)}),t.forEach(e=>{n.set(e[x],e)}),Array.from(n.values())},[x]),O=e.useCallback(async e=>{let t=!0;f(!0),e&&(void 0!==e.updateSelected&&(t=e.updateSelected,delete e.updateSelected),"not-reset"===e.pagination&&delete e.pagination,o.current={...o.current,...e});try{const n={...o.current};for(let e in c.current){const t=c.current[e];"orderByInfo"===e&&(n.orderByInfo=t),"current"===e&&(n.page=t),"pageSize"===e&&(n.size=n.size||t)}if(e&&e.current&&(n.page=e.current,c.current.current=e.current),r.apiMethod){delete n.current;const e=await r.apiMethod(m.default.pickBy(n,m.default.identity));let a=[];m.default.isArray(e.data.content)&&(!1!==r.paginationConfig?l.current=!0:l.current=!1,a=e.data.content,c.current.total=e.data.total,c.current.pages=e.data.pages),m.default.isArray(e.data)&&(l.current=!1,a=e.data),r.resultFilter&&(a=await r.resultFilter(a)),t&&g(e=>{let t=[...e.selectRowIds],n=[];const r=a=>{if(e.selectRowIds.length)for(let o of a){for(let a of e.selectRowIds)o[x]===a&&(t.push(a),n.push(o));o.children&&r(o.children)}};return r(a),e.selectRowIds=Array.from(new Set(t)),e.selectRowArray=S(e.selectRowArray,n),e}),g(e=>(e.listData=a,e)),r.getTableSuccessData&&r.getTableSuccessData(e)}}catch(e){}f(!1)},[r,x,S,g]),P=e.useCallback(e=>{!m.default.isEqual(e,c.current)&&l.current&&(c.current={...c.current,...e},O())},[O]),D=e.useCallback((e,t,n)=>{const{order:a}=n;e.orderByInfo=void 0,a&&(e.orderByInfo=`${n.field}:${"ascend"===a?1:-1}`),P(e)},[P]),T={fixed:!0,type:r.rowType,selectedRowKeys:h.selectRowIds,getCheckboxProps:r.getCheckboxProps,onSelectAll:(e,t,n)=>{g(t=>{let a=[...t.selectRowIds],o=[...t.selectRowArray];return e?(a=m.default.uniq([...a,...n.map(e=>e[x])]),o=m.default.uniqBy([...o,...n],x)):(a=a.filter(e=>!n.some(t=>t[x]===e)),o=o.filter(e=>!n.some(t=>t[x]===e[x]))),r.onSelect&&r.onSelect(o,a),t.selectRowIds=a,t.selectRowArray=o,t})},onSelect:(e,t)=>{g(n=>{let a=[...n.selectRowIds],o=[...n.selectRowArray];return"checkbox"===r.rowType&&(t?(a.push(e[x]),o.push(e)):(a=a.filter(t=>t!==e[x]),o=o.filter(t=>t[x]!==e[x]))),"radio"===r.rowType&&t&&(a=[e[x]],o=[e]),r.onSelect&&r.onSelect(o,a),n.selectRowIds=a,n.selectRowArray=o,n})}},I=e=>(t,{size:n})=>{d(t=>{const a=[...t];return a[e]={...a[e],width:n.width},s.current=a,a})},R=e.useCallback(e=>{g(t=>{let n=JSON.parse(JSON.stringify(t.listData));for(let[t,a]of n.entries())if(a[x]===e[x]){n[t]={...n[t],...e};break}return t.listData=n,t})},[x,g]),M=e.useCallback(async(e,t)=>{const n=h.listData[e],a=OP(h.listData,{$splice:[[e,1],[t,0,n]]});f(!0);try{if(r.drag){const n=JSON.parse(JSON.stringify(a)),o=JSON.parse(JSON.stringify(h.listData)),i=[e,t].sort();!1!==await r.drag.moveRow(e,t,n,o,n.slice(i[0],i[1]+1))&&g(e=>(e.listData=n,e))}}finally{f(!1)}},[r.drag,g,h.listData]),z=e.useCallback((e,t)=>({index:t,moveRow:M,open:r.drag&&r.drag.open}),[r.drag,M]),j=e.useCallback(e=>{let t=[];const n=e=>{for(let a of e){for(let e of h.selectRowIds)a[x]===e&&t.push(a);a.children&&n(a.children)}};return n(e),t},[x,h.selectRowIds]);return e.useEffect(()=>{(async()=>{let e=[...r.columns];r.hidSortColumn||e.unshift({width:55,fixed:"left",title:"序号",dataIndex:"sequence",render:(e,t,n)=>{const a=c.current;return Object.keys(a).length?((a.current||0)-1)*(a.pageSize||0)+n+1:n+1}});for(let[t,n]of e.entries()){let a={...n,onHeaderCell:e=>({width:e.width,onResize:I(t)}),onCell:(e,t)=>({record:e,recordIndex:t,dataIndex:n.dataIndex,title:n.title,rowSpanNum:"function"==typeof n.rowSpanNum?n.rowSpanNum(e,t):n.rowSpanNum,colSpanNum:"function"==typeof n.colSpanNum?n.colSpanNum(e,t):n.colSpanNum,editable:"function"==typeof n.editable?n.editable(e,t):n.editable,inputType:n.inputType,valueType:n.valueType,valueEnum:n.valueEnum,recordSelectField:n.recordSelectField,controlRender:n.controlRender,render:n.render,formChange:n.formChange,remoteConfig:n.remoteConfig,formItemProps:n.formItemProps,handleSave:R,placeholder:n.placeholder,triggerRemoteSearch:n.triggerRemoteSearch})},r=s.current.find(e=>e.dataIndex===n.dataIndex&&e.title===n.title);r&&(a.width=r.width),e[t]=a}d(e)})()},[r.columns,r.hidSortColumn,R]),e.useEffect(()=>{m.default.isArray(r.data)&&g(e=>(e.listData=JSON.parse(JSON.stringify(r.data)),e))},[r.data,g]),e.useEffect(()=>{const e=document.getElementById("slider-menu"),t=document.getElementById("router-render");if(void 0!==r.scroll?.x||void 0!==r.scroll?.y)v(e=>({...e,...r.scroll}));else if(e&&t){let n=parseInt(window.getComputedStyle(t,null).paddingLeft);v(t=>(t.x=document.body.clientWidth-e.clientWidth-(2*n+43),t))}},[r.scroll]),e.useEffect(()=>{r.paginationConfig&&(c.current={...c.current,...r.paginationConfig})},[r.paginationConfig]),e.useImperativeHandle(a,()=>({setTableLoading:e=>{f(e)},getPages:()=>({...c.current}),getTableList:async(e,t)=>{e&&("not-reset"===e.pagination?e.current=c.current.current:void 0===e.current&&(e.current=1),e.clearSelectIds&&(delete e.clearSelectIds,g(e=>(e.selectRowArray=[],e.selectRowIds=[],e)))),await O(e),t&&t()},setRowSelected:(e,t)=>{let n=e;!0===t&&(n=Array.from(new Set([...h.selectRowIds,...e]))),g({selectRowIds:n})},setRowSelectedBy:e=>{g({selectRowArray:e})},getSelectIds:()=>h.selectRowIds,clearSelectIds:()=>{g({selectRowIds:[],selectRowArray:[]})},getSelectRowsArray:()=>{const e=j(h.listData);return m.default.cloneDeep(S(h.selectRowArray,e))},removeSelectIds:e=>{if(!Array.isArray(e)||0===e.length)return;const t=(t,n)=>t.filter(t=>"string"==typeof t?!e.includes(t):!e.includes(t[n]));g({selectRowIds:t(h.selectRowIds,x),selectRowArray:t(h.selectRowArray,x)})},getStaticDataList:()=>{try{return m.default.cloneDeep(h.listData||[])}catch(e){return[]}},setStaticDataList:(e,t)=>{if(e)try{if("object"!=typeof e||Array.isArray(e))Array.isArray(e)&&g(t=>(t.listData=m.default.cloneDeep(e),t));else{const t=e;g(e=>(e.listData=h.listData.map(e=>e[x]===t[x]?{...e,...t}:e),e))}t&&t()}catch(e){}}})),n.jsx(wP,{children:n.jsx(PM,{children:n.jsx(AE,{bordered:!0,rowKey:"id",rowClassName:"editable-row",loading:p,components:C,onRow:z,columns:u,dataSource:h.listData,rowSelection:r.rowType?T:void 0,pagination:E,onChange:D,scroll:b,...r.tableConfig})})})}),(e,t)=>{const n=e.extra||{},a=t.extra||{};if(!(n.apiMethod===a.apiMethod&&n.onSelect===a.onSelect&&n.drag?.moveRow===a.drag?.moveRow&&n.getCheckboxProps===a.getCheckboxProps&&n.resultFilter===a.resultFilter&&n.getTableSuccessData===a.getTableSuccessData))return!1;const r=e=>{if(!e)return e;const{apiMethod:t,onSelect:n,drag:a,getCheckboxProps:r,resultFilter:o,getTableSuccessData:i,...l}=e;return{...l,drag:a?{...a,moveRow:void 0}:void 0}};try{return m.default.isEqual(r(n),r(a))}catch(e){return r(n)===r(a)}});k("");const TM=e=>{const t={...e};return delete t.outerHeight,n.jsx(mb,{className:"empty-wrap",style:{minHeight:e&&e.outerHeight?e.outerHeight:400},align:"middle",justify:"center",children:n.jsx(da,{description:"暂无数据",...t})})};k(".from-table-modal .ant-modal-body{padding-top:15px}.from-table-modal .ant-modal-body .search-form{margin-bottom:8px}.from-table-modal .ant-modal-body .ant-table-wrapper .ant-pagination{margin-bottom:0}.from-table-modal .from-table-modal-foot{margin-top:20px}");const{Link:IM,Paragraph:RM}=dO;var MM=e.forwardRef(function(t,a){const r=e.useRef(null),o=e.useRef(),[i,l]=N.useSetState({saveLoading:!1,selectedRows:[]}),c=e.useMemo(()=>t.tableColumnsList&&t.tableColumnsList.tableConfig&&t.tableColumnsList.tableConfig.rowKey||"id",[t.tableColumnsList]),s=e.useMemo(()=>{const e=t.width||0;return e>=500&&e<=800?{span:7}:e>800&&e<=1e3?{span:6}:e>1e3&&e<=1200?{span:5}:e>1200?{span:4}:{span:8}},[t.width]),u=(e,t)=>{if(o.current){let n=[],a=[];"all"===e&&o.current.clearSelectIds(),"odd"===e&&t&&(n=[t[c]],a=i.selectedRows.filter(e=>e[c]!==t[c]),o.current.removeSelectIds(n)),l({selectedRows:a})}},d=e.useCallback(async()=>{if(r.current&&o.current){let e=await r.current.formSubmit();if(e&&Object.keys(e).length){for(let t in e){const n="YYYY-MM-DD HH:mm:ss";x.default(e[t],n,!0).isValid()&&(e[t]=x.default(e[t]).format(n))}e={clearSelectIds:!0,...e},void 0!==t.clearSelectIds&&(e.clearSelectIds=t.clearSelectIds),e.clearSelectIds&&l(e=>(e.selectedRows=[],e)),t.manualParameterChange&&(e=t.manualParameterChange(e)),t.searchCallback?t.searchCallback(e).then(t=>{t&&o.current?.getTableList(e)}):o.current.getTableList(e)}}else o.current?.getTableList()},[t,l]),p=()=>{if(r.current){let e=[];const n=t.searchNoResetFiled||[];if(t.searchFormList)for(let a of t.searchFormList){if(a.unionConfig)for(let t of a.unionConfig.unionItems)t.name&&!n.includes(t.name)&&e.push(t.name);a.name&&!n.includes(a.name)&&e.push(a.name)}r.current.formReset(e)}d()};return e.useEffect(()=>{t.visible&&(t.autoGetList&&o.current?.getTableList(),t.openSelected&&t.openSelected.visible&&l(e=>(e.selectedRows=t.openSelected?.defaultValues||[],o.current?.setRowSelectedBy(e.selectedRows),o.current?.setRowSelected(e.selectedRows.map(e=>e[c])),e)))},[t.autoGetList,t.openSelected,t.visible,c,l]),e.useImperativeHandle(a,()=>({...r.current,...o.current,setSavaLoading:e=>{l({saveLoading:e})}})),n.jsxs(iP,{className:"from-table-modal",forceRender:!0,maskClosable:!1,footer:null,width:t.width,visible:t.visible,title:t.title||"弹窗",onCancel:()=>{t.onCancel&&t.onCancel()},...t.modalConfig,children:[t.topExtra,t.searchFormList?n.jsx(SP,{ref:r,rowGridConfig:{gutter:10},colGirdConfig:s,list:(f=t.searchFormList,f?f.map(e=>("Select"===e.componentName&&e.selectData&&e.selectData.length&&(e.selectData.some(e=>"全部"===e.label)||(e.selectData=[{label:"全部",value:""},...e.selectData])),e)):[]),formConfig:t.formConfig,render:()=>t.searchFormList&&t.searchFormList.length?n.jsxs(vk,{size:10,children:[n.jsx(Vd,{type:"primary",onClick:()=>{d()},children:"查询"}),n.jsx(Vd,{className:"btn-reset",onClick:p,children:"重置"})]}):n.jsx(n.Fragment,{})}):null,n.jsxs(mb,{...t.rowProps,children:[t.leftSlot?n.jsx(vb,{...t.leftSlot.colProps,children:t.leftSlot.jsx}):null,n.jsx(vb,{...t.colProps,children:n.jsxs(mb,{gutter:10,children:[n.jsx(vb,{span:t.openSelected&&t.openSelected.visible?16:24,children:n.jsx(DM,{ref:o,extra:{rowType:t.tableColumnsList.rowType,apiMethod:t.apiMethod,columns:t.tableColumnsList.list,data:t.data,onSelect:(e,n)=>{((e,n)=>{l({selectedRows:n.map(n=>{let a={};const r=e.find(e=>e[c]===n);if(a[c]=n,t.openSelected&&t.openSelected.fileName&&(a[t.openSelected.fileName]=n),r&&(a=r),t.openSelected){const e=t.openSelected.fileName,r=t.openSelected.defaultValues;if(e&&r){const t=r.find(e=>e[c]===n);t&&(a[e]=t[e])}}return a})})})(e,n),t.onSelect&&t.onSelect(e,n)},virtual:t.virtual,getTableSuccessData:t.getTableSuccessData,tableConfig:t.tableColumnsList.tableConfig,scroll:{x:"max-content"}}})}),t.openSelected&&t.openSelected.visible?n.jsx(vb,{span:8,children:n.jsx(wb,{title:"已选列表",size:"small",bodyStyle:{height:t.openSelected.height||330,overflowY:"auto"},extra:n.jsxs(n.Fragment,{children:[t.rightExport&&t.rightExport.open?n.jsx(IM,{style:{marginRight:"8px"},onClick:()=>(()=>{const e=t.rightExport?.fileName,n=t.rightExport?.headres,a=i.selectedRows;if(a&&a.length&&n&&n.length){let t="";const r=n.map(e=>e.title);t+=r.join(",")+"\n",a.forEach(e=>{const a=n.map(t=>{const n=void 0!==e[t.key]?e[t.key]:"";return`"${String(n).replace(/"/g,'""')}"`});t+=a.join(",")+"\n"});const o=new Blob(["\ufeff"+t],{type:"text/csv;charset=utf-8;"}),i=document.createElement("a"),l=URL.createObjectURL(o);i.setAttribute("href",l),i.setAttribute("download",`${e}.csv`),i.style.visibility="hidden",document.body.appendChild(i),i.click(),document.body.removeChild(i)}else ni.warn("请选择导出数据",1.5)})(),children:"导出"}):null,n.jsx(IM,{onClick:()=>u("all"),children:"全部移除"})]}),children:i.selectedRows.length?i.selectedRows.map(e=>{const a=e[c],r=e[t.openSelected?.fileName];return n.jsxs(mb,{gutter:12,children:[n.jsx(vb,{span:11,title:r,children:n.jsx(RM,{ellipsis:!0,children:r})}),n.jsx(vb,{span:9,title:a,children:n.jsx(RM,{ellipsis:!0,children:a})}),n.jsx(vb,{span:4,children:n.jsx(IM,{onClick:()=>u("odd",e),children:"移除"})})]},a)}):n.jsx(TM,{outerHeight:200})})}):null]})}),t.rightSlot?n.jsx(vb,{...t.rightSlot.colProps,children:t.rightSlot.jsx}):null]}),n.jsx(mb,{className:"from-table-modal-foot",justify:"center",children:n.jsx(vb,{children:n.jsxs(vk,{size:20,children:[t.onCancel?n.jsx(Vd,{onClick:()=>t.onCancel&&t.onCancel(),children:"关闭"}):null,t.onConfirm?n.jsx(Vd,{type:"primary",loading:i.saveLoading,onClick:()=>{let e=o.current?.getSelectRowsArray()||[],n=[];const a=o.current?.getStaticDataList()||[];t.onConfirm&&(o.current&&(n=o.current.getSelectIds()),l({saveLoading:!0}),t.onConfirm(e,n,a).then(e=>{l({saveLoading:!1}),e&&setTimeout(()=>{t.onCancel&&t.onCancel()},100)}).catch(e=>{l({saveLoading:!1}),ni.warn(e,1.5)}))},children:"确定"}):null]})})})]});var f});var zM=e.createContext({}),jM={aliceblue:"9ehhb",antiquewhite:"9sgk7",aqua:"1ekf",aquamarine:"4zsno",azure:"9eiv3",beige:"9lhp8",bisque:"9zg04",black:"0",blanchedalmond:"9zhe5",blue:"73",blueviolet:"5e31e",brown:"6g016",burlywood:"8ouiv",cadetblue:"3qba8",chartreuse:"4zshs",chocolate:"87k0u",coral:"9yvyo",cornflowerblue:"3xael",cornsilk:"9zjz0",crimson:"8l4xo",cyan:"1ekf",darkblue:"3v",darkcyan:"rkb",darkgoldenrod:"776yz",darkgray:"6mbhl",darkgreen:"jr4",darkgrey:"6mbhl",darkkhaki:"7ehkb",darkmagenta:"5f91n",darkolivegreen:"3bzfz",darkorange:"9yygw",darkorchid:"5z6x8",darkred:"5f8xs",darksalmon:"9441m",darkseagreen:"5lwgf",darkslateblue:"2th1n",darkslategray:"1ugcv",darkslategrey:"1ugcv",darkturquoise:"14up",darkviolet:"5rw7n",deeppink:"9yavn",deepskyblue:"11xb",dimgray:"442g9",dimgrey:"442g9",dodgerblue:"16xof",firebrick:"6y7tu",floralwhite:"9zkds",forestgreen:"1cisi",fuchsia:"9y70f",gainsboro:"8m8kc",ghostwhite:"9pq0v",goldenrod:"8j4f4",gold:"9zda8",gray:"50i2o",green:"pa8",greenyellow:"6senj",grey:"50i2o",honeydew:"9eiuo",hotpink:"9yrp0",indianred:"80gnw",indigo:"2xcoy",ivory:"9zldc",khaki:"9edu4",lavenderblush:"9ziet",lavender:"90c8q",lawngreen:"4vk74",lemonchiffon:"9zkct",lightblue:"6s73a",lightcoral:"9dtog",lightcyan:"8s1rz",lightgoldenrodyellow:"9sjiq",lightgray:"89jo3",lightgreen:"5nkwg",lightgrey:"89jo3",lightpink:"9z6wx",lightsalmon:"9z2ii",lightseagreen:"19xgq",lightskyblue:"5arju",lightslategray:"4nwk9",lightslategrey:"4nwk9",lightsteelblue:"6wau6",lightyellow:"9zlcw",lime:"1edc",limegreen:"1zcxe",linen:"9shk6",magenta:"9y70f",maroon:"4zsow",mediumaquamarine:"40eju",mediumblue:"5p",mediumorchid:"79qkz",mediumpurple:"5r3rv",mediumseagreen:"2d9ip",mediumslateblue:"4tcku",mediumspringgreen:"1di2",mediumturquoise:"2uabw",mediumvioletred:"7rn9h",midnightblue:"z980",mintcream:"9ljp6",mistyrose:"9zg0x",moccasin:"9zfzp",navajowhite:"9zest",navy:"3k",oldlace:"9wq92",olive:"50hz4",olivedrab:"472ub",orange:"9z3eo",orangered:"9ykg0",orchid:"8iu3a",palegoldenrod:"9bl4a",palegreen:"5yw0o",paleturquoise:"6v4ku",palevioletred:"8k8lv",papayawhip:"9zi6t",peachpuff:"9ze0p",peru:"80oqn",pink:"9z8wb",plum:"8nba5",powderblue:"6wgdi",purple:"4zssg",rebeccapurple:"3zk49",red:"9y6tc",rosybrown:"7cv4f",royalblue:"2jvtt",saddlebrown:"5fmkz",salmon:"9rvci",sandybrown:"9jn1c",seagreen:"1tdnb",seashell:"9zje6",sienna:"6973h",silver:"7ir40",skyblue:"5arjf",slateblue:"45e4t",slategray:"4e100",slategrey:"4e100",snow:"9zke2",springgreen:"1egv",steelblue:"2r1kk",tan:"87yx8",teal:"pds",thistle:"8ggk8",tomato:"9yqfb",turquoise:"2j4r4",violet:"9b10u",wheat:"9ld4j",white:"9zldr",whitesmoke:"9lhpx",yellow:"9zl6o",yellowgreen:"61fzm"};const AM=Math.round;function LM(e,t){const n=e.replace(/^[^(]*\((.*)/,"$1").replace(/\).*/,"").match(/\d*\.?\d+%?/g)||[],a=n.map(e=>parseFloat(e));for(let e=0;e<3;e+=1)a[e]=t(a[e]||0,n[e]||"",e);return n[3]?a[3]=n[3].includes("%")?a[3]/100:a[3]:a[3]=1,a}const FM=(e,t,n)=>0===n?e:e/100;function _M(e,t){const n=t||255;return e>n?n:e<0?0:e}class VM{isValid=!0;r=0;g=0;b=0;a=1;_h;_s;_l;_v;_max;_min;_brightness;constructor(e){function t(t){return t[0]in e&&t[1]in e&&t[2]in e}if(e)if("string"==typeof e){const n=e.trim();function a(e){return n.startsWith(e)}if(/^#?[A-F\d]{3,8}$/i.test(n))this.fromHexString(n);else if(a("rgb"))this.fromRgbString(n);else if(a("hsl"))this.fromHslString(n);else if(a("hsv")||a("hsb"))this.fromHsvString(n);else{const r=jM[n.toLowerCase()];r&&this.fromHexString(parseInt(r,36).toString(16).padStart(6,"0"))}}else if(e instanceof VM)this.r=e.r,this.g=e.g,this.b=e.b,this.a=e.a,this._h=e._h,this._s=e._s,this._l=e._l,this._v=e._v;else if(t("rgb"))this.r=_M(e.r),this.g=_M(e.g),this.b=_M(e.b),this.a="number"==typeof e.a?_M(e.a,1):1;else if(t("hsl"))this.fromHsl(e);else{if(!t("hsv"))throw new Error("@ant-design/fast-color: unsupported input "+JSON.stringify(e));this.fromHsv(e)}else;}setR(e){return this._sc("r",e)}setG(e){return this._sc("g",e)}setB(e){return this._sc("b",e)}setA(e){return this._sc("a",e,1)}setHue(e){const t=this.toHsv();return t.h=e,this._c(t)}getLuminance(){function e(e){const t=e/255;return t<=.03928?t/12.92:Math.pow((t+.055)/1.055,2.4)}return.2126*e(this.r)+.7152*e(this.g)+.0722*e(this.b)}getHue(){if(void 0===this._h){const e=this.getMax()-this.getMin();this._h=0===e?0:AM(60*(this.r===this.getMax()?(this.g-this.b)/e+(this.g<this.b?6:0):this.g===this.getMax()?(this.b-this.r)/e+2:(this.r-this.g)/e+4))}return this._h}getSaturation(){if(void 0===this._s){const e=this.getMax()-this.getMin();this._s=0===e?0:e/this.getMax()}return this._s}getLightness(){return void 0===this._l&&(this._l=(this.getMax()+this.getMin())/510),this._l}getValue(){return void 0===this._v&&(this._v=this.getMax()/255),this._v}getBrightness(){return void 0===this._brightness&&(this._brightness=(299*this.r+587*this.g+114*this.b)/1e3),this._brightness}darken(e=10){const t=this.getHue(),n=this.getSaturation();let a=this.getLightness()-e/100;return a<0&&(a=0),this._c({h:t,s:n,l:a,a:this.a})}lighten(e=10){const t=this.getHue(),n=this.getSaturation();let a=this.getLightness()+e/100;return a>1&&(a=1),this._c({h:t,s:n,l:a,a:this.a})}mix(e,t=50){const n=this._c(e),a=t/100,r=e=>(n[e]-this[e])*a+this[e],o={r:AM(r("r")),g:AM(r("g")),b:AM(r("b")),a:AM(100*r("a"))/100};return this._c(o)}tint(e=10){return this.mix({r:255,g:255,b:255,a:1},e)}shade(e=10){return this.mix({r:0,g:0,b:0,a:1},e)}onBackground(e){const t=this._c(e),n=this.a+t.a*(1-this.a),a=e=>AM((this[e]*this.a+t[e]*t.a*(1-this.a))/n);return this._c({r:a("r"),g:a("g"),b:a("b"),a:n})}isDark(){return this.getBrightness()<128}isLight(){return this.getBrightness()>=128}equals(e){return this.r===e.r&&this.g===e.g&&this.b===e.b&&this.a===e.a}clone(){return this._c(this)}toHexString(){let e="#";const t=(this.r||0).toString(16);e+=2===t.length?t:"0"+t;const n=(this.g||0).toString(16);e+=2===n.length?n:"0"+n;const a=(this.b||0).toString(16);if(e+=2===a.length?a:"0"+a,"number"==typeof this.a&&this.a>=0&&this.a<1){const t=AM(255*this.a).toString(16);e+=2===t.length?t:"0"+t}return e}toHsl(){return{h:this.getHue(),s:this.getSaturation(),l:this.getLightness(),a:this.a}}toHslString(){const e=this.getHue(),t=AM(100*this.getSaturation()),n=AM(100*this.getLightness());return 1!==this.a?`hsla(${e},${t}%,${n}%,${this.a})`:`hsl(${e},${t}%,${n}%)`}toHsv(){return{h:this.getHue(),s:this.getSaturation(),v:this.getValue(),a:this.a}}toRgb(){return{r:this.r,g:this.g,b:this.b,a:this.a}}toRgbString(){return 1!==this.a?`rgba(${this.r},${this.g},${this.b},${this.a})`:`rgb(${this.r},${this.g},${this.b})`}toString(){return this.toRgbString()}_sc(e,t,n){const a=this.clone();return a[e]=_M(t,n),a}_c(e){return new this.constructor(e)}getMax(){return void 0===this._max&&(this._max=Math.max(this.r,this.g,this.b)),this._max}getMin(){return void 0===this._min&&(this._min=Math.min(this.r,this.g,this.b)),this._min}fromHexString(e){const t=e.replace("#","");function n(e,n){return parseInt(t[e]+t[n||e],16)}t.length<6?(this.r=n(0),this.g=n(1),this.b=n(2),this.a=t[3]?n(3)/255:1):(this.r=n(0,1),this.g=n(2,3),this.b=n(4,5),this.a=t[6]?n(6,7)/255:1)}fromHsl({h:e,s:t,l:n,a:a}){if(this._h=e%360,this._s=t,this._l=n,this.a="number"==typeof a?a:1,t<=0){const e=AM(255*n);this.r=e,this.g=e,this.b=e}let r=0,o=0,i=0;const l=e/60,c=(1-Math.abs(2*n-1))*t,s=c*(1-Math.abs(l%2-1));l>=0&&l<1?(r=c,o=s):l>=1&&l<2?(r=s,o=c):l>=2&&l<3?(o=c,i=s):l>=3&&l<4?(o=s,i=c):l>=4&&l<5?(r=s,i=c):l>=5&&l<6&&(r=c,i=s);const u=n-c/2;this.r=AM(255*(r+u)),this.g=AM(255*(o+u)),this.b=AM(255*(i+u))}fromHsv({h:e,s:t,v:n,a:a}){this._h=e%360,this._s=t,this._v=n,this.a="number"==typeof a?a:1;const r=AM(255*n);if(this.r=r,this.g=r,this.b=r,t<=0)return;const o=e/60,i=Math.floor(o),l=o-i,c=AM(n*(1-t)*255),s=AM(n*(1-t*l)*255),u=AM(n*(1-t*(1-l))*255);switch(i){case 0:this.g=u,this.b=c;break;case 1:this.r=s,this.b=c;break;case 2:this.r=c,this.b=u;break;case 3:this.r=c,this.g=s;break;case 4:this.r=u,this.g=c;break;default:this.g=c,this.b=s}}fromHsvString(e){const t=LM(e,FM);this.fromHsv({h:t[0],s:t[1],v:t[2],a:t[3]})}fromHslString(e){const t=LM(e,FM);this.fromHsl({h:t[0],s:t[1],l:t[2],a:t[3]})}fromRgbString(e){const t=LM(e,(e,t)=>t.includes("%")?AM(e/100*255):e);this.r=t[0],this.g=t[1],this.b=t[2],this.a=t[3]}}const KM=[{index:7,amount:15},{index:6,amount:25},{index:5,amount:30},{index:5,amount:45},{index:5,amount:65},{index:5,amount:85},{index:4,amount:90},{index:3,amount:95},{index:2,amount:97},{index:1,amount:98}];function HM(e,t,n){let a;return a=Math.round(e.h)>=60&&Math.round(e.h)<=240?n?Math.round(e.h)-2*t:Math.round(e.h)+2*t:n?Math.round(e.h)+2*t:Math.round(e.h)-2*t,a<0?a+=360:a>=360&&(a-=360),a}function BM(e,t,n){if(0===e.h&&0===e.s)return e.s;let a;return a=n?e.s-.16*t:4===t?e.s+.16:e.s+.05*t,a>1&&(a=1),n&&5===t&&a>.1&&(a=.1),a<.06&&(a=.06),Math.round(100*a)/100}function $M(e,t,n){let a;return a=n?e.v+.05*t:e.v-.15*t,a=Math.max(0,Math.min(1,a)),Math.round(100*a)/100}const UM=["#e6f4ff","#bae0ff","#91caff","#69b1ff","#4096ff","#1677ff","#0958d9","#003eb3","#002c8c","#001d66"];UM.primary=UM[5];const WM="data-rc-order",YM="data-rc-priority",qM=new Map;function GM({mark:e}={}){return e?e.startsWith("data-")?e:`data-${e}`:"rc-util-key"}function XM(e){if(e.attachTo)return e.attachTo;return document.querySelector("head")||document.body}function ZM(e){return Array.from((qM.get(e)||e).children).filter(e=>"STYLE"===e.tagName)}function QM(e,t={}){if("undefined"==typeof window||!window.document||!window.document.createElement)return null;const{csp:n,prepend:a,priority:r=0}=t,o=function(e){return"queue"===e?"prependQueue":e?"prepend":"append"}(a),i="prependQueue"===o,l=document.createElement("style");l.setAttribute(WM,o),i&&r&&l.setAttribute(YM,`${r}`),n?.nonce&&(l.nonce=n?.nonce),l.innerHTML=e;const c=XM(t),{firstChild:s}=c;if(a){if(i){const e=(t.styles||ZM(c)).filter(e=>{if(!["prepend","prependQueue"].includes(e.getAttribute(WM)))return!1;const t=Number(e.getAttribute(YM)||0);return r>=t});if(e.length)return c.insertBefore(l,e[e.length-1].nextSibling),l}c.insertBefore(l,s)}else c.appendChild(l);return l}function JM(e,t,n={}){const a=XM(n),r=ZM(a),o={...n,styles:r};!function(e,t){const n=qM.get(e);if(!n||!function(e,t){if(!e)return!1;if(e.contains)return e.contains(t);let n=t;for(;n;){if(n===e)return!0;n=n.parentNode}return!1}(document,n)){const n=QM("",t),{parentNode:a}=n;qM.set(e,a),e.removeChild(n)}}(a,o);const i=function(e,t={}){let{styles:n}=t;return n||=ZM(XM(t)),n.find(n=>n.getAttribute(GM(t))===e)}(t,o);if(i)return o.csp?.nonce&&i.nonce!==o.csp?.nonce&&(i.nonce=o.csp?.nonce),i.innerHTML!==e&&(i.innerHTML=e),i;const l=QM(e,o);return l.setAttribute(GM(o),t),l}function ez(e){return e?.getRootNode?.()}function tz(e){return function(e){return ez(e)instanceof ShadowRoot}(e)?ez(e):null}let nz={};const az=[];function rz(e,t){if("production"!==process.env.NODE_ENV&&!e&&void 0!==console){const e=az.reduce((e,t)=>t(e??"","warning"),t);e&&console.error(`Warning: ${e}`)}}function oz(e,t){if("production"!==process.env.NODE_ENV&&!e&&void 0!==console){const e=az.reduce((e,t)=>t(e??"","note"),t);e&&console.warn(`Note: ${e}`)}}function iz(e,t,n){t||nz[n]||(e(!1,n),nz[n]=!0)}function lz(e,t){iz(rz,e,t)}function cz(e){return"object"==typeof e&&"string"==typeof e.name&&"string"==typeof e.theme&&("object"==typeof e.icon||"function"==typeof e.icon)}function sz(e={}){return Object.keys(e).reduce((t,n)=>{const a=e[n];if("class"===n)t.className=a,delete t.class;else delete t[n],t[(r=n,r.replace(/-(.)/g,(e,t)=>t.toUpperCase()))]=a;var r;return t},{})}function uz(e,t,n){return n?f.default.createElement(e.tag,{key:t,...sz(e.attrs),...n},(e.children||[]).map((n,a)=>uz(n,`${t}-${e.tag}-${a}`))):f.default.createElement(e.tag,{key:t,...sz(e.attrs)},(e.children||[]).map((n,a)=>uz(n,`${t}-${e.tag}-${a}`)))}function dz(e){return function(e,t={}){const n=[],a=new VM(e),r=a.toHsv();for(let e=5;e>0;e-=1){const t=new VM({h:HM(r,e,!0),s:BM(r,e,!0),v:$M(r,e,!0)});n.push(t)}n.push(a);for(let e=1;e<=4;e+=1){const t=new VM({h:HM(r,e),s:BM(r,e),v:$M(r,e)});n.push(t)}return"dark"===t.theme?KM.map(({index:e,amount:a})=>new VM(t.backgroundColor||"#141414").mix(n[e],a).toHexString()):n.map(e=>e.toHexString())}(e)[0]}function pz(e){return e?Array.isArray(e)?e:[e]:[]}lz.preMessage=e=>{az.push(e)},lz.resetWarned=function(){nz={}},lz.noteOnce=function(e,t){iz(oz,e,t)};const fz={primaryColor:"#333",secondaryColor:"#E6E6E6",calculated:!1};const mz=t=>{const{icon:n,className:a,onClick:r,style:o,primaryColor:i,secondaryColor:l,...c}=t,s=p.useRef();let u=fz;if(i&&(u={primaryColor:i,secondaryColor:l||dz(i)}),(t=>{const{csp:n,prefixCls:a,layer:r}=e.useContext(zM);let o="\n.anticon {\n display: inline-flex;\n align-items: center;\n color: inherit;\n font-style: normal;\n line-height: 0;\n text-align: center;\n text-transform: none;\n vertical-align: -0.125em;\n text-rendering: optimizeLegibility;\n -webkit-font-smoothing: antialiased;\n -moz-osx-font-smoothing: grayscale;\n}\n\n.anticon > * {\n line-height: 1;\n}\n\n.anticon svg {\n display: inline-block;\n}\n\n.anticon::before {\n display: none;\n}\n\n.anticon .anticon-icon {\n display: block;\n}\n\n.anticon[tabindex] {\n cursor: pointer;\n}\n\n.anticon-spin::before,\n.anticon-spin {\n display: inline-block;\n -webkit-animation: loadingCircle 1s infinite linear;\n animation: loadingCircle 1s infinite linear;\n}\n\n@-webkit-keyframes loadingCircle {\n 100% {\n -webkit-transform: rotate(360deg);\n transform: rotate(360deg);\n }\n}\n\n@keyframes loadingCircle {\n 100% {\n -webkit-transform: rotate(360deg);\n transform: rotate(360deg);\n }\n}\n";a&&(o=o.replace(/anticon/g,a)),r&&(o=`@layer ${r} {\n${o}\n}`),e.useEffect(()=>{const e=tz(t.current);JM(o,"@ant-design-icons",{prepend:!r,csp:n,attachTo:e})},[])})(s),function(e,t){lz(e,`[@ant-design/icons] ${t}`)}(cz(n),`icon should be icon definiton, but got ${n}`),!cz(n))return null;let d=n;return d&&"function"==typeof d.icon&&(d={...d,icon:d.icon(u.primaryColor,u.secondaryColor)}),uz(d.icon,`svg-${d.name}`,{className:a,onClick:r,style:o,"data-icon":d.name,width:"1em",height:"1em",fill:"currentColor","aria-hidden":"true",...c,ref:s})};mz.displayName="IconReact",mz.getTwoToneColors=function(){return{...fz}},mz.setTwoToneColors=function({primaryColor:e,secondaryColor:t}){fz.primaryColor=e,fz.secondaryColor=t||dz(e),fz.calculated=!!t};var hz=mz;function gz(e){const[t,n]=pz(e);return hz.setTwoToneColors({primaryColor:t,secondaryColor:n})}function bz(){return bz=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var a in n)Object.prototype.hasOwnProperty.call(n,a)&&(e[a]=n[a])}return e},bz.apply(this,arguments)}gz(UM.primary);const vz=p.forwardRef((e,t)=>{const{className:n,icon:a,spin:r,rotate:o,tabIndex:i,onClick:l,twoToneColor:c,...s}=e,{prefixCls:u="anticon",rootClassName:d}=p.useContext(zM),f=B(d,u,{[`${u}-${a.name}`]:!!a.name,[`${u}-spin`]:!!r||"loading"===a.name},n);let m=i;void 0===m&&l&&(m=-1);const h=o?{msTransform:`rotate(${o}deg)`,transform:`rotate(${o}deg)`}:void 0,[g,b]=pz(c);return p.createElement("span",bz({role:"img","aria-label":a.name},s,{ref:t,tabIndex:m,onClick:l,className:f}),p.createElement(hz,{icon:a,primaryColor:g,secondaryColor:b,style:h}))});vz.displayName="AntdIcon",vz.getTwoToneColor=function(){const e=hz.getTwoToneColors();return e.calculated?[e.primaryColor,e.secondaryColor]:e.primaryColor},vz.setTwoToneColor=gz;var xz=vz;function yz(){return yz=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var a in n)Object.prototype.hasOwnProperty.call(n,a)&&(e[a]=n[a])}return e},yz.apply(this,arguments)}const wz=(e,t)=>p.createElement(xz,yz({},e,{ref:t,icon:ai})),kz=p.forwardRef(wz);
28
28
  /**![close](data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNTAiIGhlaWdodD0iNTAiIGZpbGw9IiNjYWNhY2EiIGZpbGwtcnVsZT0iZXZlbm9kZCIgdmlld0JveD0iNjQgNjQgODk2IDg5NiIgZm9jdXNhYmxlPSJmYWxzZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj48cGF0aCBkPSJNNzk5Ljg2IDE2Ni4zMWMuMDIgMCAuMDQuMDIuMDguMDZsNTcuNjkgNTcuN2MuMDQuMDMuMDUuMDUuMDYuMDhhLjEyLjEyIDAgMDEwIC4wNmMwIC4wMy0uMDIuMDUtLjA2LjA5TDU2OS45MyA1MTJsMjg3LjcgMjg3LjdjLjA0LjA0LjA1LjA2LjA2LjA5YS4xMi4xMiAwIDAxMCAuMDdjMCAuMDItLjAyLjA0LS4wNi4wOGwtNTcuNyA1Ny42OWMtLjAzLjA0LS4wNS4wNS0uMDcuMDZhLjEyLjEyIDAgMDEtLjA3IDBjLS4wMyAwLS4wNS0uMDItLjA5LS4wNkw1MTIgNTY5LjkzbC0yODcuNyAyODcuN2MtLjA0LjA0LS4wNi4wNS0uMDkuMDZhLjEyLjEyIDAgMDEtLjA3IDBjLS4wMiAwLS4wNC0uMDItLjA4LS4wNmwtNTcuNjktNTcuN2MtLjA0LS4wMy0uMDUtLjA1LS4wNi0uMDdhLjEyLjEyIDAgMDEwLS4wN2MwLS4wMy4wMi0uMDUuMDYtLjA5TDQ1NC4wNyA1MTJsLTI4Ny43LTI4Ny43Yy0uMDQtLjA0LS4wNS0uMDYtLjA2LS4wOWEuMTIuMTIgMCAwMTAtLjA3YzAtLjAyLjAyLS4wNC4wNi0uMDhsNTcuNy01Ny42OWMuMDMtLjA0LjA1LS4wNS4wNy0uMDZhLjEyLjEyIDAgMDEuMDcgMGMuMDMgMCAuMDUuMDIuMDkuMDZMNTEyIDQ1NC4wN2wyODcuNy0yODcuN2MuMDQtLjA0LjA2LS4wNS4wOS0uMDZhLjEyLjEyIDAgMDEuMDcgMHoiIC8+PC9zdmc+) */"production"!==process.env.NODE_ENV&&(kz.displayName="CloseOutlined");var Cz=kz,Ez={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm104 316.9c0 10.2-4.9 19.9-13.2 25.9L457.4 512l145.4 105.2c8.3 6 13.2 15.6 13.2 25.9V690c0 6.5-7.4 10.3-12.7 6.5l-246-178a7.95 7.95 0 010-12.9l246-178a8 8 0 0112.7 6.5v46.8z"}}]},name:"left-circle",theme:"filled"};function Sz(){return Sz=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var a in n)Object.prototype.hasOwnProperty.call(n,a)&&(e[a]=n[a])}return e},Sz.apply(this,arguments)}const Nz=(e,t)=>p.createElement(xz,Sz({},e,{ref:t,icon:Ez})),Oz=p.forwardRef(Nz);
29
29
  /**![left-circle](data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNTAiIGhlaWdodD0iNTAiIGZpbGw9IiNjYWNhY2EiIHZpZXdCb3g9IjY0IDY0IDg5NiA4OTYiIGZvY3VzYWJsZT0iZmFsc2UiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PHBhdGggZD0iTTUxMiA2NEMyNjQuNiA2NCA2NCAyNjQuNiA2NCA1MTJzMjAwLjYgNDQ4IDQ0OCA0NDggNDQ4LTIwMC42IDQ0OC00NDhTNzU5LjQgNjQgNTEyIDY0em0xMDQgMzE2LjljMCAxMC4yLTQuOSAxOS45LTEzLjIgMjUuOUw0NTcuNCA1MTJsMTQ1LjQgMTA1LjJjOC4zIDYgMTMuMiAxNS42IDEzLjIgMjUuOVY2OTBjMCA2LjUtNy40IDEwLjMtMTIuNyA2LjVsLTI0Ni0xNzhhNy45NSA3Ljk1IDAgMDEwLTEyLjlsMjQ2LTE3OGE4IDggMCAwMTEyLjcgNi41djQ2Ljh6IiAvPjwvc3ZnPg==) */"production"!==process.env.NODE_ENV&&(Oz.displayName="LeftCircleFilled");var Pz=Oz,Dz={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm154.7 454.5l-246 178c-5.3 3.8-12.7 0-12.7-6.5v-46.9c0-10.2 4.9-19.9 13.2-25.9L566.6 512 421.2 406.8c-8.3-6-13.2-15.6-13.2-25.9V334c0-6.5 7.4-10.3 12.7-6.5l246 178c4.4 3.2 4.4 9.8 0 13z"}}]},name:"right-circle",theme:"filled"};function Tz(){return Tz=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var a in n)Object.prototype.hasOwnProperty.call(n,a)&&(e[a]=n[a])}return e},Tz.apply(this,arguments)}const Iz=(e,t)=>p.createElement(xz,Tz({},e,{ref:t,icon:Dz})),Rz=p.forwardRef(Iz);
30
30
  /**![right-circle](data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNTAiIGhlaWdodD0iNTAiIGZpbGw9IiNjYWNhY2EiIHZpZXdCb3g9IjY0IDY0IDg5NiA4OTYiIGZvY3VzYWJsZT0iZmFsc2UiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PHBhdGggZD0iTTUxMiA2NEMyNjQuNiA2NCA2NCAyNjQuNiA2NCA1MTJzMjAwLjYgNDQ4IDQ0OCA0NDggNDQ4LTIwMC42IDQ0OC00NDhTNzU5LjQgNjQgNTEyIDY0em0xNTQuNyA0NTQuNWwtMjQ2IDE3OGMtNS4zIDMuOC0xMi43IDAtMTIuNy02LjV2LTQ2LjljMC0xMC4yIDQuOS0xOS45IDEzLjItMjUuOUw1NjYuNiA1MTIgNDIxLjIgNDA2LjhjLTguMy02LTEzLjItMTUuNi0xMy4yLTI1LjlWMzM0YzAtNi41IDcuNC0xMC4zIDEyLjctNi41bDI0NiAxNzhjNC40IDMuMiA0LjQgOS44IDAgMTN6IiAvPjwvc3ZnPg==) */"production"!==process.env.NODE_ENV&&(Rz.displayName="RightCircleFilled");var Mz=Rz;k(".quickly-form-modal .ant-modal-body{padding-top:15px}.quickly-form-modal .quickly-form-modal-foot{margin-top:20px}");k(".form-modal .ant-modal-body{padding-top:15px}.form-modal .ant-modal-body .modal-form-height{max-height:580px;overflow-x:hidden;overflow-y:auto;padding-right:5px}.form-modal .ant-modal-body .modal-form-height .generate-form.ant-form-horizontal.ant-form .ant-row.ant-form-item{margin-bottom:4px}.form-modal .form-modal-foot{margin-top:20px}");var zz=e.forwardRef((t,a)=>{const r=e.useRef(),[o,i]=N.useSetState({loading:!1,saveLoading:!1,disabled:!1}),l=async()=>{let e=await(r.current?.formSubmit());if(e){if(e.endTime&&e.startTime&&x.default(e.endTime).isBefore(e.startTime))return void ni.warn("生效日期不能大于失效日期",1.5);i({saveLoading:!0});try{let n={};if(e={...e,...t.submitExtraParameters},t.switchTransform)for(let n=0;n<t.switchTransform.length;n++)e[t.switchTransform[n]]?e[t.switchTransform[n]]="1":e[t.switchTransform[n]]="0";if(t.submitRemoveField)for(let n=0;n<t.submitRemoveField.length;n++)e[t.submitRemoveField[n]]&&delete e[t.submitRemoveField[n]];for(let t in e){const n="YYYY-MM-DD HH:mm:ss";x.default(e[t],n,!0).isValid()&&(e[t]=x.default(e[t]).format(n))}if(t.manualParameterChange&&(e=t.manualParameterChange(e)),t.manualVerification&&!t.manualVerification(e))return console.warn("手动验证表单不通过"),void i({saveLoading:!1});if(e=m.default.omitBy(e,m.default.isNil),t.submitApi&&e){if(t.id?(e.id=t.id,n=await t.submitApi(e,"put")):n=await t.submitApi(e,"post"),1===n.code){if(t.onConfirm){if(!1===t.onConfirm(n))return}ni.success("操作成功",1.5),t.onCancel&&t.onCancel()}i({saveLoading:!1})}else t.onConfirm&&e&&t.onConfirm(e)}catch(e){i({saveLoading:!1})}}};return e.useEffect(()=>{!1===t.visible&&i({saveLoading:!1})},[t.visible,i]),e.useEffect(()=>{i({disabled:t.disable})},[t.disable,i]),e.useImperativeHandle(a,()=>({setFormLoading:e=>{i({loading:e})},setFormSaveLoading:e=>{i({saveLoading:e})},setFormFields:e=>{r.current&&r.current.setFormFields(e)},getFormValues:e=>r.current?.getFormValues(e),setFormValues:e=>{r.current&&r.current.setFormValues(e)},excludeFormSubmitValues:async e=>{if(r.current){const n=t.formList.filter(t=>!e?.includes(t.name));return await(r.current?.formSubmit(n.map(e=>e.name)))}return{}},getFormSubmitValues:async e=>r.current?await(r.current?.formSubmit(e)):{}})),n.jsx(iP,{className:`form-modal ${t.className}`,width:t.width?t.width:600,visible:t.visible,title:t.title||"对话框",onCancel:t.onCancel,destroyOnClose:!0,maskClosable:!1,footer:null,children:n.jsxs(Yy,{spinning:o.loading,children:[n.jsxs("div",{className:"modal-form-height",children:[t.topRender?t.topRender:null,n.jsx(SP,{ref:r,formConfig:{labelCol:{span:24},...t.formConfig},rowGridConfig:{gutter:[20,0]},colGirdConfig:t.colGirdConfig||{span:12},list:t.formList}),t.children&&t.children]}),(()=>{const a=(()=>{const e=[n.jsx(Vd,{onClick:()=>t.onCancel&&t.onCancel(),children:"关闭"},-1)];return o.disabled||e.push(n.jsx(Vd,{type:"primary",loading:o.saveLoading,onClick:l,children:"提交"},-2)),e})(),r=e=>n.jsx(mb,{className:"form-modal-foot",justify:"center",children:n.jsx(vb,{children:n.jsx(vk,{size:20,children:e})})});if(t.footer)return t.footer;if(t.footBtnList){const{model:n,data:o}=t.footBtnList,i=o.map((t,n)=>{const{children:a,...r}=t;return e.createElement(Vd,{...r,key:n},a)});if("new"===n)return r(i);if("before"===n)return r([...i,...a]);if("after"===n)return r([...a,...i])}return r(a)})()]})})});k('@import "https://at.alicdn.com/t/font_2381668_l6oy3doglyo.css";.icon-selected-modal .avatar-selected{align-items:center;border:2px solid #fff;border-radius:4px;cursor:pointer;display:flex;height:36px;justify-content:center;overflow:hidden;width:36px}.icon-selected-modal .avatar-selected.avatar-selected-bg{border-color:#5860f8}.icon-selected-modal .icon-selected-foot{margin-top:20px}');k(".button-group{align-items:center;background-color:#f2f2f3;background-image:none;border:0;border-radius:4px;box-shadow:0 2px 0 rgba(0,0,0,.015);cursor:pointer;display:inline-flex;font-size:12px;height:30px;justify-content:center;line-height:1.15;outline:none;padding:3px 15px;position:relative;text-align:center;touch-action:manipulation;transition:all .3s cubic-bezier(.645,.045,.355,1);user-select:none;white-space:nowrap}.button-group:hover{background-color:#e3e5e6}.button-group-large{height:40px}.button-group-small{height:26px}.button-group-primary{background-color:#5860f8;color:#fff}.button-group-primary:hover{background-color:#828cff}.button-group .anticon{font-size:12px;margin-left:5px}.button-group .anticon.anticon-close{align-items:center;background-color:#878d99;border-radius:100%;color:#fff;display:inline-flex;font-size:10px;height:16px;justify-content:center;position:absolute;right:-5px;top:-5px;width:16px}");const jz="button-group";var Az=e.forwardRef((t,a)=>{const[r,o]=N.useSetState({type:"checkbox",deleteOpen:!1,data:[]}),i=e=>{let n=jz;return t.buttonClassName&&(n=`${n} ${t.buttonClassName}`),t.size&&(n=`${n} ${jz}-${t.size}`),e.selected&&(n=`${n} ${jz}-primary`),n};return e.useEffect(()=>{if(t.checkType&&o({type:t.checkType}),t.deleteOpen&&o({deleteOpen:t.deleteOpen}),t.data){const e=t.data.map(e=>(void 0===e.selected&&(e.selected=!1),e));o({data:e})}},[t,o]),e.useImperativeHandle(a,()=>({getButtonGroupSelected:()=>r.data.filter(e=>e.selected)})),n.jsx(mb,{className:t.className,gutter:[10,10],children:r.data.map((e,a)=>n.jsx(vb,{children:n.jsxs("div",{className:i(e),onClick:()=>((e,n)=>{let a=[];t.deleteOpen||(r.data&&("checkbox"===r.type&&(r.data[n].selected=!e.selected,a=r.data),"radio"===r.type&&(a=r.data.map((t,a)=>{let r=!1;return n===a&&(r=!e.selected),{...t,selected:r}}))),t.onChange&&t.onChange(a),o({data:a}))})(e,a),children:[e.name,r.deleteOpen?n.jsx(Cz,{onClick:()=>(e=>{if(r.data){const n=r.data.filter((t,n)=>e!==n);t.onChange&&t.onChange(n),o({data:n})}})(a)}):null]})},a))})});exports.Affix=e=>{let t={...e},a="";return t.targetId&&(a=t.targetId,delete t.targetId),n.jsx(ol,{target:()=>document.getElementById(a||"router-render")||window,...t})},exports.ButtonGroup=Az,exports.Dialog=iP,exports.Empty=TM,exports.GaoDeMap=lP,exports.GenerateForm=SP,exports.GenerateTable=DM,exports.IconSelectionModal=e=>{const[t,a]=N.useSetState({iconModal:{selected:-1,list:["iconmove","iconmap","iconnotice","iconpassword","iconNotvisible1","iconphone","iconpic1","iconpin","iconproduct","iconQRcode1","iconreeor","iconreduce","iconresonserate","iconremind","iconrising1","iconRightarrow","iconrmb1","iconsave","iconscanning","iconseleted","iconsearchcart","iconshare","iconRightbutton","iconsorting","iconsound-Mute","iconsound-filling","iconsuggest","iconsuccess","iconsupplier-features","iconswitch","iconsuspended","iconTop","iconsmile","icontradealert","icontopsales","icontradingvolume","iconupload","iconviewlarger","iconwarning","iconset","iconDaytimemode","iconunlock","iconexchangerate","iconall","iconbussiness-man","iconcomponent","iconcode","iconcopy","icondollar","iconhistory","iconeditor","icondata","icongift","iconintegral","iconnav-list","iconpic","iconNotvisible","iconplay","iconQRcode","iconrmb","iconsimilar-product","iconExportservices","iconsendinquiry","iconcolumn","iconadd-account","iconcolumn1","iconadd","iconadd-cart","iconarrow-right","iconarrow-left","iconall1","iconarrow-up","iconashbin","iconatm","iconbad","iconattachent","iconbrowse","iconcalendar","iconcart-full","iconcalculator","iconcameraswitching","iconcecurity-protection","iconcategory","iconclose","iconcertified-supplier","iconcart-Empty","iconcode1","iconcopy1","iconcoupons","iconconnections","iconcry","iconclock","iconCurrencyConverter","iconcut","icondata1","iconCustomermanagement","icondouble-arro-right","iconcustomization","icondouble-arrow-left","icondiscount","icondownload","icondollar1","icondefault-template","iconeditor1","iconetrical-equipm","iconellipsis","iconemail","iconfalling","iconfilter","iconfolder","iconhelp","icongood","icongift1","iconhot","iconinspection","iconleftbutton","iconleftarrow","iconlink","iconloading","iconphone1"]}}),r={height:34,fontSize:22};return n.jsxs(iP,{className:"icon-selected-modal",width:e.width?e.width:590,visible:e.visible,title:e.title?e.title:"图标选择",onCancel:e.onCancel,destroyOnClose:!0,maskClosable:!1,footer:null,children:[n.jsx(mb,{gutter:[10,10],children:t.iconModal.list.map((e,o)=>n.jsx(vb,{children:n.jsx("div",{className:`avatar-selected ${o===t.iconModal.selected?"avatar-selected-bg":null}`,onClick:()=>{a(e=>(e.iconModal.selected=o,e))},children:n.jsx("i",{className:`iconfont ${e}`,title:e,style:r})})},o))}),n.jsx(mb,{className:"icon-selected-foot",justify:"center",children:n.jsx(vb,{children:n.jsxs(vk,{size:20,children:[n.jsx(Vd,{onClick:e.onCancel,children:"关闭"}),n.jsx(Vd,{type:"primary",onClick:()=>{const n=t.iconModal.list[t.iconModal.selected];e.onConfirm&&e.onConfirm(n)},children:"确定"})]})})})]})},exports.LayoutFormModal=zz,exports.LayoutTableModal=MM,exports.QuicklyProcessForms=t=>{const a=e.useRef(),r=e.useRef({page:1,pages:1,size:10}),[o,i]=N.useSetState({id:void 0,saveLoading:!1,data:[]}),l={fontSize:24},c=e.useCallback((e,t)=>e.map(e=>{if(t)for(let n of t)e[n]&&(e[n]=x.default(e[n]));return e}),[]),s=e.useCallback(async e=>{if(t.apiMethod)try{let n="";const a=await t.apiMethod(r.current);console.log("getList useCallback",a,"queryPagination.current",r.current);const o=a.data.content;r.current.pages=a.data.pages,"up"===e&&(n=o[o.length-1].id),"down"===e&&(n=o[0].id),i({id:n||t.id,data:o})}catch(e){}},[t,i]),u=e.useMemo(()=>{let e=0;for(let[t,n]of o.data.entries())if(n.id===o.id){e=t;break}return e},[o.data,o.id]),d=e.useCallback(async()=>{if(t.apiMethod){if(1===r.current.page&&0===u)return ni.destroy(),void ni.warn("已经是第一页啦~",1.5);if(u-1<0)return r.current.page=r.current.page-1,s("up"),void(t.onChange&&t.onChange(o.data[u],r.current))}else if(0===u)return ni.destroy(),void ni.warn("已经是第一个啦~",1.5);if(a.current){const e=await a.current.formSubmit();if(e){e.id=o.data[u].id;try{const n=o.data[u-1];console.log("cutIndexObj",n),t.submitApi(e,"put"),t.onChange&&t.onChange(n,r.current),i(t=>(t.id=n.id,t.data[u]={...t.data[u],...e},t))}catch(e){}}}},[u,s,t,i,o.data]),p=e.useCallback(async()=>{if(t.apiMethod){if(r.current.page===r.current.pages&&u===o.data.length-1)return ni.destroy(),void ni.warn("已经是最后一页啦~",1.5);if(u+1>=o.data.length)return r.current.page=r.current.page+1,s("down"),void(t.onChange&&t.onChange(o.data[u],r.current))}else if(0===o.data.length||u===o.data.length-1)return ni.destroy(),void ni.warn("已经是最后一个啦~",1.5);if(a.current){const e=await a.current.formSubmit();if(e){e.id=o.data[u].id;try{const n=o.data[u+1];console.log("cutIndexObj",n),t.submitApi(e,"put"),t.onChange&&t.onChange(n,r.current),i(t=>(t.id=n.id,t.data[u]={...t.data[u],...e},t))}catch(e){}}}},[u,s,t,i,o.data]),f=e.useCallback(async e=>{if("PageUp"===e.key&&(d(),e.preventDefault()),"PageDown"===e.key&&(p(),e.preventDefault()),"Enter"===e.key&&a.current){const e=await a.current.formSubmit();e.id=o.data[u].id;try{t.submitApi(e,"put"),ni.success("保存成功",1.5)}catch(e){}}},[u,p,d,t,o.data]),m=e.useCallback(async()=>{if(t.methodParams){let e=["page","pages","size"],n={},a=await t.methodParams;for(let t in r.current)for(let a of e)t===a&&(n[a]=r.current[t]);n={...n,...a},n.page=a.page?a.page.current:1,r.current=n}},[t.methodParams]);return e.useEffect(()=>{t.visible&&setTimeout(()=>{a.current&&a.current.setFormValues(o.data[u])},100)},[u,t.visible,o.data]),e.useEffect(()=>{t.visible&&(t.apiMethod?m().then(()=>{s()}):i({id:t.id,data:c(t.data,t.transformTime)}))},[m,s,t.apiMethod,t.data,t.id,t.transformTime,t.visible,i,c]),e.useEffect(()=>(t.visible?document.addEventListener("keydown",f):document.removeEventListener("keydown",f),()=>{document.removeEventListener("keydown",f)}),[f,t.visible]),n.jsx(iP,{className:"quickly-form-modal",width:t.width?t.width:960,visible:t.visible,title:t.title||"快速编辑信息",onCancel:()=>{t.onCancel&&t.onCancel(r.current)},maskClosable:!1,destroyOnClose:!0,footer:null,children:n.jsxs(mb,{className:"modal-form-height",gutter:16,align:"middle",wrap:!1,children:[n.jsx(vb,{flex:"60px",children:n.jsx(mb,{justify:"center",children:n.jsx(vb,{children:n.jsx(Pz,{className:"circle-filled",style:l,onClick:d})})})}),n.jsx(vb,{flex:"auto",children:n.jsx(SP,{ref:a,formConfig:{labelCol:{span:24}},rowGridConfig:{gutter:[20,0]},colGirdConfig:{span:6},list:t.formList})}),n.jsx(vb,{flex:"60px",children:n.jsx(mb,{justify:"center",children:n.jsx(vb,{children:n.jsx(Mz,{className:"circle-filled",style:l,onClick:p})})})})]})})},exports.TreeNode=uP,exports.Upload=cP,exports.VirtualList=t=>{const{vl:a,columns:r,...o}=t,i=e.useRef(a);var l,c;l=a,c=i.current,m.default.isEqualWith(l,c,(e,t)=>{if(m.default.isFunction(e)&&m.default.isFunction(t))return e.toString()===t.toString()})&&(i.current=a);const s=e.useMemo(()=>{if(i.current)return uD(i.current)},[]),[u,d]=e.useState(r||[]);e.useEffect(()=>{d(r||[])},[r]);const p=e.useCallback(e=>(t,{size:n})=>{const a=[...u];a[e]={...a[e],width:n.width},d(a)},[u]),f=e.useMemo(()=>u.map((e,t)=>({...e,onHeaderCell:e=>({width:e.width,onResize:p(t)})})),[u,p]),h=e.useMemo(()=>({header:{cell:fT},...s||{}}),[s]);return n.jsx(wP,{children:n.jsx(AE,{components:h,rowKey:"id",pagination:!1,scroll:{y:a.height,x:"100%"},columns:f,...o})})},exports.hooks=N;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "hlyc-web-pack",
3
- "version": "3.9.2",
3
+ "version": "3.9.3",
4
4
  "description": "华旅云创web端组件",
5
5
  "main": "lib/index.js",
6
6
  "module": "lib/index.js",