hlyc-web-pack 3.6.63 → 3.6.65

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.
@@ -7,6 +7,7 @@ export declare type DialogPropType = ModalProps & {
7
7
  height?: number;
8
8
  onOk?: (e?: React.MouseEvent<HTMLElement, MouseEvent>) => void;
9
9
  onCancel?: (e?: React.MouseEvent<HTMLElement, MouseEvent>) => void;
10
+ children?: React.ReactNode;
10
11
  };
11
12
  interface StateType {
12
13
  disabled: boolean;
package/lib/index.js CHANGED
@@ -35,7 +35,7 @@
35
35
  *
36
36
  * This source code is licensed under the MIT license found in the
37
37
  * LICENSE file in the root directory of this source tree.
38
- */function sI(t){if("object"==typeof t&&null!==t){var e=t.$$typeof;switch(e){case WD:switch(t=t.type){case JD:case QD:case $D:case GD:case qD:case eI:return t;default:switch(t=t&&t.$$typeof){case ZD:case tI:case aI:case rI:case XD:return t;default:return e}}case YD:return e}}}function uI(t){return sI(t)===QD}var dI={AsyncMode:JD,ConcurrentMode:QD,ContextConsumer:ZD,ContextProvider:XD,Element:WD,ForwardRef:tI,Fragment:$D,Lazy:aI,Memo:rI,Portal:YD,Profiler:GD,StrictMode:qD,Suspense:eI,isAsyncMode:function(t){return uI(t)||sI(t)===JD},isConcurrentMode:uI,isContextConsumer:function(t){return sI(t)===ZD},isContextProvider:function(t){return sI(t)===XD},isElement:function(t){return"object"==typeof t&&null!==t&&t.$$typeof===WD},isForwardRef:function(t){return sI(t)===tI},isFragment:function(t){return sI(t)===$D},isLazy:function(t){return sI(t)===aI},isMemo:function(t){return sI(t)===rI},isPortal:function(t){return sI(t)===YD},isProfiler:function(t){return sI(t)===GD},isStrictMode:function(t){return sI(t)===qD},isSuspense:function(t){return sI(t)===eI},isValidElementType:function(t){return"string"==typeof t||"function"==typeof t||t===$D||t===QD||t===GD||t===qD||t===eI||t===nI||"object"==typeof t&&null!==t&&(t.$$typeof===aI||t.$$typeof===rI||t.$$typeof===XD||t.$$typeof===ZD||t.$$typeof===tI||t.$$typeof===iI||t.$$typeof===lI||t.$$typeof===cI||t.$$typeof===oI)},typeOf:sI},pI=F((function(t,e){"production"!==process.env.NODE_ENV&&function(){var t="function"==typeof Symbol&&Symbol.for,n=t?Symbol.for("react.element"):60103,r=t?Symbol.for("react.portal"):60106,a=t?Symbol.for("react.fragment"):60107,o=t?Symbol.for("react.strict_mode"):60108,i=t?Symbol.for("react.profiler"):60114,l=t?Symbol.for("react.provider"):60109,c=t?Symbol.for("react.context"):60110,s=t?Symbol.for("react.async_mode"):60111,u=t?Symbol.for("react.concurrent_mode"):60111,d=t?Symbol.for("react.forward_ref"):60112,p=t?Symbol.for("react.suspense"):60113,f=t?Symbol.for("react.suspense_list"):60120,m=t?Symbol.for("react.memo"):60115,h=t?Symbol.for("react.lazy"):60116,g=t?Symbol.for("react.block"):60121,b=t?Symbol.for("react.fundamental"):60117,v=t?Symbol.for("react.responder"):60118,y=t?Symbol.for("react.scope"):60119;function x(t){if("object"==typeof t&&null!==t){var e=t.$$typeof;switch(e){case n:var f=t.type;switch(f){case s:case u:case a: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 e}}case r:return e}}}var w=s,k=u,C=c,E=l,O=n,S=d,N=a,P=h,j=m,T=r,D=i,I=o,R=p,M=!1;function z(t){return x(t)===u}e.AsyncMode=w,e.ConcurrentMode=k,e.ContextConsumer=C,e.ContextProvider=E,e.Element=O,e.ForwardRef=S,e.Fragment=N,e.Lazy=P,e.Memo=j,e.Portal=T,e.Profiler=D,e.StrictMode=I,e.Suspense=R,e.isAsyncMode=function(t){return M||(M=!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.")),z(t)||x(t)===s},e.isConcurrentMode=z,e.isContextConsumer=function(t){return x(t)===c},e.isContextProvider=function(t){return x(t)===l},e.isElement=function(t){return"object"==typeof t&&null!==t&&t.$$typeof===n},e.isForwardRef=function(t){return x(t)===d},e.isFragment=function(t){return x(t)===a},e.isLazy=function(t){return x(t)===h},e.isMemo=function(t){return x(t)===m},e.isPortal=function(t){return x(t)===r},e.isProfiler=function(t){return x(t)===i},e.isStrictMode=function(t){return x(t)===o},e.isSuspense=function(t){return x(t)===p},e.isValidElementType=function(t){return"string"==typeof t||"function"==typeof t||t===a||t===u||t===i||t===o||t===p||t===f||"object"==typeof t&&null!==t&&(t.$$typeof===h||t.$$typeof===m||t.$$typeof===l||t.$$typeof===c||t.$$typeof===d||t.$$typeof===b||t.$$typeof===v||t.$$typeof===y||t.$$typeof===g)},e.typeOf=x}()})),fI=F((function(t){"production"===process.env.NODE_ENV?t.exports=dI:t.exports=pI})),mI=Object.getOwnPropertySymbols,hI=Object.prototype.hasOwnProperty,gI=Object.prototype.propertyIsEnumerable;function bI(t){if(null==t)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(t)}var vI=function(){try{if(!Object.assign)return!1;var t=new String("abc");if(t[5]="de","5"===Object.getOwnPropertyNames(t)[0])return!1;for(var e={},n=0;n<10;n++)e["_"+String.fromCharCode(n)]=n;if("0123456789"!==Object.getOwnPropertyNames(e).map((function(t){return e[t]})).join(""))return!1;var r={};return"abcdefghijklmnopqrst".split("").forEach((function(t){r[t]=t})),"abcdefghijklmnopqrst"===Object.keys(Object.assign({},r)).join("")}catch(t){return!1}}()?Object.assign:function(t,e){for(var n,r,a=bI(t),o=1;o<arguments.length;o++){for(var i in n=Object(arguments[o]))hI.call(n,i)&&(a[i]=n[i]);if(mI){r=mI(n);for(var l=0;l<r.length;l++)gI.call(n,r[l])&&(a[r[l]]=n[r[l]])}}return a},yI="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED",xI=function(){};if("production"!==process.env.NODE_ENV){var wI=yI,kI={},CI=Function.call.bind(Object.prototype.hasOwnProperty);xI=function(t){var e="Warning: "+t;"undefined"!=typeof console&&console.error(e);try{throw new Error(e)}catch(t){}}}function EI(t,e,n,r,a){if("production"!==process.env.NODE_ENV)for(var o in t)if(CI(t,o)){var i;try{if("function"!=typeof t[o]){var l=Error((r||"React class")+": "+n+" type `"+o+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof t[o]+"`.");throw l.name="Invariant Violation",l}i=t[o](e,o,r,n,null,wI)}catch(t){i=t}if(!i||i instanceof Error||xI((r||"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 kI)){kI[i.message]=!0;var c=a?a():"";xI("Failed "+n+" type: "+i.message+(null!=c?c:""))}}}EI.resetWarningCache=function(){"production"!==process.env.NODE_ENV&&(kI={})};var OI=EI,SI=Function.call.bind(Object.prototype.hasOwnProperty),NI=function(){};function PI(){return null}"production"!==process.env.NODE_ENV&&(NI=function(t){var e="Warning: "+t;"undefined"!=typeof console&&console.error(e);try{throw new Error(e)}catch(t){}});var jI=function(t,e){var n="function"==typeof Symbol&&Symbol.iterator;var r="<<anonymous>>",a={array:c("array"),bool:c("boolean"),func:c("function"),number:c("number"),object:c("object"),string:c("string"),symbol:c("symbol"),any:l(PI),arrayOf:function(t){return l((function(e,n,r,a,o){if("function"!=typeof t)return new i("Property `"+o+"` of component `"+r+"` has invalid PropType notation inside arrayOf.");var l=e[n];if(!Array.isArray(l))return new i("Invalid "+a+" `"+o+"` of type `"+u(l)+"` supplied to `"+r+"`, expected an array.");for(var c=0;c<l.length;c++){var s=t(l,c,r,a,o+"["+c+"]",yI);if(s instanceof Error)return s}return null}))},element:l((function(e,n,r,a,o){var l=e[n];return t(l)?null:new i("Invalid "+a+" `"+o+"` of type `"+u(l)+"` supplied to `"+r+"`, expected a single ReactElement.")})),elementType:l((function(t,e,n,r,a){var o=t[e];return fI.isValidElementType(o)?null:new i("Invalid "+r+" `"+a+"` of type `"+u(o)+"` supplied to `"+n+"`, expected a single ReactElement type.")})),instanceOf:function(t){return l((function(e,n,a,o,l){if(!(e[n]instanceof t)){var c=t.name||r;return new i("Invalid "+o+" `"+l+"` of type `"+(((s=e[n]).constructor&&s.constructor.name?s.constructor.name:r)+"` supplied to `")+a+"`, expected instance of `"+c+"`.")}var s;return null}))},node:l((function(t,e,n,r,a){return s(t[e])?null:new i("Invalid "+r+" `"+a+"` supplied to `"+n+"`, expected a ReactNode.")})),objectOf:function(t){return l((function(e,n,r,a,o){if("function"!=typeof t)return new i("Property `"+o+"` of component `"+r+"` has invalid PropType notation inside objectOf.");var l=e[n],c=u(l);if("object"!==c)return new i("Invalid "+a+" `"+o+"` of type `"+c+"` supplied to `"+r+"`, expected an object.");for(var s in l)if(SI(l,s)){var d=t(l,s,r,a,o+"."+s,yI);if(d instanceof Error)return d}return null}))},oneOf:function(t){if(!Array.isArray(t))return"production"!==process.env.NODE_ENV&&NI(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."),PI;function e(e,n,r,a,l){for(var c=e[n],s=0;s<t.length;s++)if(o(c,t[s]))return null;var u=JSON.stringify(t,(function(t,e){return"symbol"===d(e)?String(e):e}));return new i("Invalid "+a+" `"+l+"` of value `"+String(c)+"` supplied to `"+r+"`, expected one of "+u+".")}return l(e)},oneOfType:function(t){if(!Array.isArray(t))return"production"!==process.env.NODE_ENV&&NI("Invalid argument supplied to oneOfType, expected an instance of array."),PI;for(var e=0;e<t.length;e++){var n=t[e];if("function"!=typeof n)return NI("Invalid argument supplied to oneOfType. Expected an array of check functions, but received "+p(n)+" at index "+e+"."),PI}return l((function(e,n,r,a,o){for(var l=0;l<t.length;l++)if(null==(0,t[l])(e,n,r,a,o,yI))return null;return new i("Invalid "+a+" `"+o+"` supplied to `"+r+"`.")}))},shape:function(t){return l((function(e,n,r,a,o){var l=e[n],c=u(l);if("object"!==c)return new i("Invalid "+a+" `"+o+"` of type `"+c+"` supplied to `"+r+"`, expected `object`.");for(var s in t){var d=t[s];if(d){var p=d(l,s,r,a,o+"."+s,yI);if(p)return p}}return null}))},exact:function(t){return l((function(e,n,r,a,o){var l=e[n],c=u(l);if("object"!==c)return new i("Invalid "+a+" `"+o+"` of type `"+c+"` supplied to `"+r+"`, expected `object`.");var s=vI({},e[n],t);for(var d in s){var p=t[d];if(!p)return new i("Invalid "+a+" `"+o+"` key `"+d+"` supplied to `"+r+"`.\nBad object: "+JSON.stringify(e[n],null," ")+"\nValid keys: "+JSON.stringify(Object.keys(t),null," "));var f=p(l,d,r,a,o+"."+d,yI);if(f)return f}return null}))}};function o(t,e){return t===e?0!==t||1/t==1/e:t!=t&&e!=e}function i(t){this.message=t,this.stack=""}function l(t){if("production"!==process.env.NODE_ENV)var n={},a=0;function o(o,l,c,s,u,d,p){if(s=s||r,d=d||c,p!==yI){if(e){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]&&a<3&&(NI("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,a++)}}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:t(l,c,s,u,d)}var l=o.bind(null,!1);return l.isRequired=o.bind(null,!0),l}function c(t){return l((function(e,n,r,a,o,l){var c=e[n];return u(c)!==t?new i("Invalid "+a+" `"+o+"` of type `"+d(c)+"` supplied to `"+r+"`, expected `"+t+"`."):null}))}function s(e){switch(typeof e){case"number":case"string":case"undefined":return!0;case"boolean":return!e;case"object":if(Array.isArray(e))return e.every(s);if(null===e||t(e))return!0;var r=function(t){var e=t&&(n&&t[n]||t["@@iterator"]);if("function"==typeof e)return e}(e);if(!r)return!1;var a,o=r.call(e);if(r!==e.entries){for(;!(a=o.next()).done;)if(!s(a.value))return!1}else for(;!(a=o.next()).done;){var i=a.value;if(i&&!s(i[1]))return!1}return!0;default:return!1}}function u(t){var e=typeof t;return Array.isArray(t)?"array":t instanceof RegExp?"object":function(t,e){return"symbol"===t||!!e&&("Symbol"===e["@@toStringTag"]||"function"==typeof Symbol&&e instanceof Symbol)}(e,t)?"symbol":e}function d(t){if(null==t)return""+t;var e=u(t);if("object"===e){if(t instanceof Date)return"date";if(t instanceof RegExp)return"regexp"}return e}function p(t){var e=d(t);switch(e){case"array":case"object":return"an "+e;case"boolean":case"date":case"regexp":return"a "+e;default:return e}}return i.prototype=Error.prototype,a.checkPropTypes=OI,a.resetWarningCache=OI.resetWarningCache,a.PropTypes=a,a};function TI(){}function DI(){}DI.resetWarningCache=TI;var II=F((function(t){if("production"!==process.env.NODE_ENV){var e=fI;t.exports=jI(e.isElement,!0)}else t.exports=function(){function t(t,e,n,r,a,o){if(o!==yI){var i=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw i.name="Invariant Violation",i}}function e(){return t}t.isRequired=t;var n={array:t,bool:t,func:t,number:t,object:t,string:t,symbol:t,any:t,arrayOf:e,element:t,elementType:t,instanceOf:e,node:t,objectOf:e,oneOf:e,oneOfType:e,shape:e,exact:e,checkPropTypes:DI,resetWarningCache:TI};return n.PropTypes=n,n}()})),RI=F((function(t,e){e.__esModule=!0,e.resizableProps=void 0;var n=function(t){return t&&t.__esModule?t:{default:t}}(II);var r={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:n.default.number.isRequired,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:n.default.number.isRequired};e.resizableProps=r})),MI=F((function(t,e){e.__esModule=!0,e.default=void 0;var n=function(t,e){if(!e&&t&&t.__esModule)return t;if(null===t||"object"!=typeof t&&"function"!=typeof t)return{default:t};var n=a(e);if(n&&n.has(t))return n.get(t);var r={},o=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var i in t)if("default"!==i&&Object.prototype.hasOwnProperty.call(t,i)){var l=o?Object.getOwnPropertyDescriptor(t,i):null;l&&(l.get||l.set)?Object.defineProperty(r,i,l):r[i]=t[i]}r.default=t,n&&n.set(t,r);return r}(d.default),r=["children","className","draggableOpts","width","height","handle","handleSize","lockAspectRatio","axis","minConstraints","maxConstraints","onResize","onResizeStop","onResizeStart","resizeHandles","transformScale"];function a(t){if("function"!=typeof WeakMap)return null;var e=new WeakMap,n=new WeakMap;return(a=function(t){return t?n:e})(t)}function o(){return(o=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t}).apply(this,arguments)}function i(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function l(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?i(Object(n),!0).forEach((function(e){c(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):i(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function c(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function s(t,e){return(s=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}var u=function(t){var e,a;function i(){for(var e,n=arguments.length,r=new Array(n),a=0;a<n;a++)r[a]=arguments[a];return(e=t.call.apply(t,[this].concat(r))||this).handleRefs={},e.lastHandleRect=null,e.slack=null,e}a=t,(e=i).prototype=Object.create(a.prototype),e.prototype.constructor=e,s(e,a);var c=i.prototype;return c.componentWillUnmount=function(){this.resetData()},c.resetData=function(){this.lastHandleRect=this.slack=null},c.runConstraints=function(t,e){var n=this.props,r=n.minConstraints,a=n.maxConstraints,o=n.lockAspectRatio;if(!r&&!a&&!o)return[t,e];if(o){var i=this.props.width/this.props.height,l=t-this.props.width,c=e-this.props.height;Math.abs(l)>Math.abs(c*i)?e=t/i:t=e*i}var s=t,u=e,d=this.slack||[0,0],p=d[0],f=d[1];return t+=p,e+=f,r&&(t=Math.max(r[0],t),e=Math.max(r[1],e)),a&&(t=Math.min(a[0],t),e=Math.min(a[1],e)),this.slack=[p+(s-t),f+(u-e)],[t,e]},c.resizeHandler=function(t,e){var n=this;return function(r,a){var o=a.node,i=a.deltaX,l=a.deltaY;"onResizeStart"===t&&n.resetData();var c=("both"===n.props.axis||"x"===n.props.axis)&&"n"!==e&&"s"!==e,s=("both"===n.props.axis||"y"===n.props.axis)&&"e"!==e&&"w"!==e;if(c||s){var u=e[0],d=e[e.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[t]?n.props[t]:null;b&&!("onResize"===t&&!g)&&(null==r.persist||r.persist(),b(r,{node:o,size:{width:f,height:m},handle:e})),"onResizeStop"===t&&n.resetData()}}},c.renderResizeHandle=function(t,e){var r=this.props.handle;if(!r)return n.createElement("span",{className:"react-resizable-handle react-resizable-handle-"+t,ref:e});if("function"==typeof r)return r(t,e);var a=l({ref:e},"string"==typeof r.type?{}:{handleAxis:t});return n.cloneElement(r,a)},c.render=function(){var t=this,e=this.props,a=e.children,i=e.className,c=e.draggableOpts;e.width,e.height,e.handle,e.handleSize,e.lockAspectRatio,e.axis,e.minConstraints,e.maxConstraints,e.onResize,e.onResizeStop,e.onResizeStart;var s=e.resizeHandles;e.transformScale;var u=function(t,e){if(null==t)return{};var n,r,a={},o=Object.keys(t);for(r=0;r<o.length;r++)n=o[r],e.indexOf(n)>=0||(a[n]=t[n]);return a}(e,r);return(0,BD.cloneElement)(a,l(l({},u),{},{className:(i?i+" ":"")+"react-resizable",children:[].concat(a.props.children,s.map((function(e){var r,a=null!=(r=t.handleRefs[e])?r:t.handleRefs[e]=n.createRef();return n.createElement(h.default.DraggableCore,o({},c,{nodeRef:a,key:"resizableHandle-"+e,onStop:t.resizeHandler("onResizeStop",e),onStart:t.resizeHandler("onResizeStart",e),onDrag:t.resizeHandler("onResize",e)}),t.renderResizeHandle(e,a))})))}))},i}(n.Component);e.default=u,u.propTypes=RI.resizableProps,u.defaultProps={axis:"both",handleSize:[20,20],lockAspectRatio:!1,minConstraints:[20,20],maxConstraints:[1/0,1/0],resizeHandles:["se"],transformScale:1}})),zI=F((function(t,e){e.__esModule=!0,e.default=void 0;var n=function(t,e){if(!e&&t&&t.__esModule)return t;if(null===t||"object"!=typeof t&&"function"!=typeof t)return{default:t};var n=l(e);if(n&&n.has(t))return n.get(t);var r={},a=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var o in t)if("default"!==o&&Object.prototype.hasOwnProperty.call(t,o)){var i=a?Object.getOwnPropertyDescriptor(t,o):null;i&&(i.get||i.set)?Object.defineProperty(r,o,i):r[o]=t[o]}r.default=t,n&&n.set(t,r);return r}(d.default),r=i(II),a=i(MI),o=["handle","handleSize","onResize","onResizeStart","onResizeStop","draggableOpts","minConstraints","maxConstraints","lockAspectRatio","axis","width","height","resizeHandles","style","transformScale"];function i(t){return t&&t.__esModule?t:{default:t}}function l(t){if("function"!=typeof WeakMap)return null;var e=new WeakMap,n=new WeakMap;return(l=function(t){return t?n:e})(t)}function c(){return(c=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t}).apply(this,arguments)}function s(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function u(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?s(Object(n),!0).forEach((function(e){p(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):s(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function p(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function f(t,e){return(f=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}var m=function(t){var e,r;function i(){for(var e,n=arguments.length,r=new Array(n),a=0;a<n;a++)r[a]=arguments[a];return(e=t.call.apply(t,[this].concat(r))||this).state={width:e.props.width,height:e.props.height,propsWidth:e.props.width,propsHeight:e.props.height},e.onResize=function(t,n){var r=n.size;e.props.onResize?(null==t.persist||t.persist(),e.setState(r,(function(){return e.props.onResize&&e.props.onResize(t,n)}))):e.setState(r)},e}return r=t,(e=i).prototype=Object.create(r.prototype),e.prototype.constructor=e,f(e,r),i.getDerivedStateFromProps=function(t,e){return e.propsWidth!==t.width||e.propsHeight!==t.height?{width:t.width,height:t.height,propsWidth:t.width,propsHeight:t.height}:null},i.prototype.render=function(){var t=this.props,e=t.handle,r=t.handleSize;t.onResize;var i=t.onResizeStart,l=t.onResizeStop,s=t.draggableOpts,d=t.minConstraints,p=t.maxConstraints,f=t.lockAspectRatio,m=t.axis;t.width,t.height;var h=t.resizeHandles,g=t.style,b=t.transformScale,v=function(t,e){if(null==t)return{};var n,r,a={},o=Object.keys(t);for(r=0;r<o.length;r++)n=o[r],e.indexOf(n)>=0||(a[n]=t[n]);return a}(t,o);return n.createElement(a.default,{axis:m,draggableOpts:s,handle:e,handleSize:r,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);e.default=m,m.propTypes=u(u({},RI.resizableProps),{},{children:r.default.element})})),AI=MI.default;zI.default;const LI=t=>{const{onResize:e,width:r,...a}=t;return r?n.jsx(AI,Object.assign({width:r,height:0,handle:n.jsx("span",{className:"react-resizable-handle",onClick:t=>{t.stopPropagation()}},void 0),onResize:e,draggableOpts:{enableUserSelectHack:!1}},{children:n.jsx("th",Object.assign({},a),void 0)}),void 0):n.jsx("th",Object.assign({},a),void 0)};var _I,FI=t.createContext({dragDropManager:void 0});function VI(t,e){for(var n=arguments.length,r=new Array(n>2?n-2:0),a=2;a<n;a++)r[a-2]=arguments[a];if("production"!==process.env.NODE_ENV&&void 0===e)throw new Error("invariant requires an error message argument");if(!t){var o;if(void 0===e)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(e.replace(/%s/g,(function(){return r[i++]})))).name="Invariant Violation"}throw o.framesToPop=1,o}}!function(t){t.SOURCE="SOURCE",t.TARGET="TARGET"}(_I||(_I={}));var KI="dnd-core/INIT_COORDS",HI="dnd-core/BEGIN_DRAG",BI="dnd-core/PUBLISH_DRAG_SOURCE",UI="dnd-core/HOVER",WI="dnd-core/DROP",YI="dnd-core/END_DRAG";function $I(t,e){return{type:KI,payload:{sourceClientOffset:e||null,clientOffset:t||null}}}function qI(t){return(qI="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function GI(t,e,n){return e.split(".").reduce((function(t,e){return t&&t[e]?t[e]:n||null}),t)}function XI(t,e){return t.filter((function(t){return t!==e}))}function ZI(t){return"object"===qI(t)}function JI(t,e){var n=new Map,r=function(t){n.set(t,n.has(t)?n.get(t)+1:1)};t.forEach(r),e.forEach(r);var a=[];return n.forEach((function(t,e){1===t&&a.push(e)})),a}var QI={type:KI,payload:{clientOffset:null,sourceClientOffset:null}};function tR(t){return function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{publishSource:!0},r=n.publishSource,a=void 0===r||r,o=n.clientOffset,i=n.getSourceClientOffset,l=t.getMonitor(),c=t.getRegistry();t.dispatch($I(o)),eR(e,l,c);var s=aR(e,l);if(null!==s){var u=null;if(o){if(!i)throw new Error("getSourceClientOffset must be defined");nR(i),u=i(s)}t.dispatch($I(o,u));var d=c.getSource(s),p=d.beginDrag(l,s);if(null!=p){rR(p),c.pinSource(s);var f=c.getSourceType(s);return{type:HI,payload:{itemType:f,item:p,sourceId:s,clientOffset:o||null,sourceClientOffset:u||null,isSourcePublic:!!a}}}}else t.dispatch(QI)}}function eR(t,e,n){VI(!e.isDragging(),"Cannot call beginDrag while dragging."),t.forEach((function(t){VI(n.getSource(t),"Expected sourceIds to be registered.")}))}function nR(t){VI("function"==typeof t,"When clientOffset is provided, getSourceClientOffset must be a function.")}function rR(t){VI(ZI(t),"Item must be an object.")}function aR(t,e){for(var n=null,r=t.length-1;r>=0;r--)if(e.canDragSource(t[r])){n=t[r];break}return n}function oR(t){return function(){if(t.getMonitor().isDragging())return{type:BI}}}function iR(t,e){return null===e?null===t:Array.isArray(t)?t.some((function(t){return t===e})):t===e}function lR(t){return function(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=n.clientOffset;cR(e);var a=e.slice(0),o=t.getMonitor(),i=t.getRegistry();sR(a,o,i);var l=o.getItemType();return uR(a,i,l),dR(a,o,i),{type:UI,payload:{targetIds:a,clientOffset:r||null}}}}function cR(t){VI(Array.isArray(t),"Expected targetIds to be an array.")}function sR(t,e,n){VI(e.isDragging(),"Cannot call hover while not dragging."),VI(!e.didDrop(),"Cannot call hover after drop.");for(var r=0;r<t.length;r++){var a=t[r];VI(t.lastIndexOf(a)===r,"Expected targetIds to be unique in the passed array."),VI(n.getTarget(a),"Expected targetIds to be registered.")}}function uR(t,e,n){for(var r=t.length-1;r>=0;r--){var a=t[r];iR(e.getTargetType(a),n)||t.splice(r,1)}}function dR(t,e,n){t.forEach((function(t){n.getTarget(t).hover(e,t)}))}function pR(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function fR(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?pR(Object(n),!0).forEach((function(e){mR(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):pR(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function mR(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function hR(t){return function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=t.getMonitor(),r=t.getRegistry();gR(n);var a=vR(n);a.forEach((function(a,o){var i=bR(a,o,r,n),l={type:WI,payload:{dropResult:fR(fR({},e),i)}};t.dispatch(l)}))}}function gR(t){VI(t.isDragging(),"Cannot call drop while not dragging."),VI(!t.didDrop(),"Cannot call drop twice during one drag operation.")}function bR(t,e,n,r){var a=n.getTarget(t),o=a?a.drop(r,t):void 0;return function(t){VI(void 0===t||ZI(t),"Drop result must either be an object or undefined.")}(o),void 0===o&&(o=0===e?{}:r.getDropResult()),o}function vR(t){var e=t.getTargetIds().filter(t.canDropOnTarget,t);return e.reverse(),e}function yR(t){return function(){var e=t.getMonitor(),n=t.getRegistry();!function(t){VI(t.isDragging(),"Cannot call endDrag while not dragging.")}(e);var r=e.getSourceId();null!=r&&(n.getSource(r,!0).endDrag(e,r),n.unpinSource());return{type:YI}}}function xR(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function wR(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var kR=function(){function t(e,n){var r=this;!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),wR(this,"store",void 0),wR(this,"monitor",void 0),wR(this,"backend",void 0),wR(this,"isSetUp",!1),wR(this,"handleRefCountChange",(function(){var t=r.store.getState().refCount>0;r.backend&&(t&&!r.isSetUp?(r.backend.setup(),r.isSetUp=!0):!t&&r.isSetUp&&(r.backend.teardown(),r.isSetUp=!1))})),this.store=e,this.monitor=n,e.subscribe(this.handleRefCountChange)}var e,n,r;return e=t,(n=[{key:"receiveBackend",value:function(t){this.backend=t}},{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 t=this,e=this.store.dispatch,n=function(t){return{beginDrag:tR(t),publishDragSource:oR(t),hover:lR(t),drop:hR(t),endDrag:yR(t)}}(this);return Object.keys(n).reduce((function(r,a){var o,i=n[a];return r[a]=(o=i,function(){for(var n=arguments.length,r=new Array(n),a=0;a<n;a++)r[a]=arguments[a];var i=o.apply(t,r);void 0!==i&&e(i)}),r}),{})}},{key:"dispatch",value:function(t){this.store.dispatch(t)}}])&&xR(e.prototype,n),r&&xR(e,r),t}();function CR(t){return"Minified Redux error #"+t+"; visit https://redux.js.org/Errors?code="+t+" for the full message or use the non-minified dev environment for full errors. "}var ER="function"==typeof Symbol&&Symbol.observable||"@@observable",OR=function(){return Math.random().toString(36).substring(7).split("").join(".")},SR={INIT:"@@redux/INIT"+OR(),REPLACE:"@@redux/REPLACE"+OR(),PROBE_UNKNOWN_ACTION:function(){return"@@redux/PROBE_UNKNOWN_ACTION"+OR()}};function NR(t){if("object"!=typeof t||null===t)return!1;for(var e=t;null!==Object.getPrototypeOf(e);)e=Object.getPrototypeOf(e);return Object.getPrototypeOf(t)===e}function PR(t){if(void 0===t)return"undefined";if(null===t)return"null";var e=typeof t;switch(e){case"boolean":case"string":case"number":case"symbol":case"function":return e}if(Array.isArray(t))return"array";if(function(t){return t instanceof Date||"function"==typeof t.toDateString&&"function"==typeof t.getDate&&"function"==typeof t.setDate}(t))return"date";if(function(t){return t instanceof Error||"string"==typeof t.message&&t.constructor&&"number"==typeof t.constructor.stackTraceLimit}(t))return"error";var n=function(t){return"function"==typeof t.constructor?t.constructor.name:null}(t);switch(n){case"Symbol":case"Promise":case"WeakMap":case"WeakSet":case"Map":case"Set":return n}return e.slice(8,-1).toLowerCase().replace(/\s/g,"")}function jR(t){var e=typeof t;return"production"!==process.env.NODE_ENV&&(e=PR(t)),e}function TR(t,e,n){var r;if("function"==typeof e&&"function"==typeof n||"function"==typeof n&&"function"==typeof arguments[3])throw new Error("production"===process.env.NODE_ENV?CR(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 e&&void 0===n&&(n=e,e=void 0),void 0!==n){if("function"!=typeof n)throw new Error("production"===process.env.NODE_ENV?CR(1):"Expected the enhancer to be a function. Instead, received: '"+jR(n)+"'");return n(TR)(t,e)}if("function"!=typeof t)throw new Error("production"===process.env.NODE_ENV?CR(2):"Expected the root reducer to be a function. Instead, received: '"+jR(t)+"'");var a=t,o=e,i=[],l=i,c=!1;function s(){l===i&&(l=i.slice())}function u(){if(c)throw new Error("production"===process.env.NODE_ENV?CR(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(t){if("function"!=typeof t)throw new Error("production"===process.env.NODE_ENV?CR(4):"Expected the listener to be a function. Instead, received: '"+jR(t)+"'");if(c)throw new Error("production"===process.env.NODE_ENV?CR(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 e=!0;return s(),l.push(t),function(){if(e){if(c)throw new Error("production"===process.env.NODE_ENV?CR(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.");e=!1,s();var n=l.indexOf(t);l.splice(n,1),i=null}}}function p(t){if(!NR(t))throw new Error("production"===process.env.NODE_ENV?CR(7):"Actions must be plain objects. Instead, the actual type was: '"+jR(t)+"'. 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===t.type)throw new Error("production"===process.env.NODE_ENV?CR(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?CR(9):"Reducers may not dispatch actions.");try{c=!0,o=a(o,t)}finally{c=!1}for(var e=i=l,n=0;n<e.length;n++){(0,e[n])()}return t}function f(t){if("function"!=typeof t)throw new Error("production"===process.env.NODE_ENV?CR(10):"Expected the nextReducer to be a function. Instead, received: '"+jR(t));a=t,p({type:SR.REPLACE})}function m(){var t,e=d;return(t={subscribe:function(t){if("object"!=typeof t||null===t)throw new Error("production"===process.env.NODE_ENV?CR(11):"Expected the observer to be an object. Instead, received: '"+jR(t)+"'");function n(){t.next&&t.next(u())}return n(),{unsubscribe:e(n)}}})[ER]=function(){return this},t}return p({type:SR.INIT}),(r={dispatch:p,subscribe:d,getState:u,replaceReducer:f})[ER]=m,r}function DR(){}"production"!==process.env.NODE_ENV&&"string"==typeof DR.name&&"isCrushed"!==DR.name&&function(t){"undefined"!=typeof console&&"function"==typeof console.error&&console.error(t);try{throw new Error(t)}catch(t){}}('You are currently using minified code outside of NODE_ENV === "production". This means that you are running a slower development build of Redux. You can use loose-envify (https://github.com/zertosh/loose-envify) for browserify or setting mode to production in webpack (https://webpack.js.org/concepts/mode/) to ensure you have the correct code for your production build.');var IR=function(t,e){return t===e};function RR(t,e){return!t&&!e||!(!t||!e)&&(t.x===e.x&&t.y===e.y)}function MR(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:IR;if(t.length!==e.length)return!1;for(var r=0;r<t.length;++r)if(!n(t[r],e[r]))return!1;return!0}function zR(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function AR(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?zR(Object(n),!0).forEach((function(e){LR(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):zR(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function LR(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var _R={initialSourceClientOffset:null,initialClientOffset:null,clientOffset:null};function FR(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:_R,e=arguments.length>1?arguments[1]:void 0,n=e.payload;switch(e.type){case KI:case HI:return{initialSourceClientOffset:n.sourceClientOffset,initialClientOffset:n.clientOffset,clientOffset:n.clientOffset};case UI:return RR(t.clientOffset,n.clientOffset)?t:AR(AR({},t),{},{clientOffset:n.clientOffset});case YI:case WI:return _R;default:return t}}var VR="dnd-core/ADD_SOURCE",KR="dnd-core/ADD_TARGET",HR="dnd-core/REMOVE_SOURCE",BR="dnd-core/REMOVE_TARGET";function UR(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function WR(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?UR(Object(n),!0).forEach((function(e){YR(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):UR(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function YR(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var $R={itemType:null,item:null,sourceId:null,targetIds:[],dropResult:null,didDrop:!1,isSourcePublic:null};function qR(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:$R,e=arguments.length>1?arguments[1]:void 0,n=e.payload;switch(e.type){case HI:return WR(WR({},t),{},{itemType:n.itemType,item:n.item,sourceId:n.sourceId,isSourcePublic:n.isSourcePublic,dropResult:null,didDrop:!1});case BI:return WR(WR({},t),{},{isSourcePublic:!0});case UI:return WR(WR({},t),{},{targetIds:n.targetIds});case BR:return-1===t.targetIds.indexOf(n.targetId)?t:WR(WR({},t),{},{targetIds:XI(t.targetIds,n.targetId)});case WI:return WR(WR({},t),{},{dropResult:n.dropResult,didDrop:!0,targetIds:[]});case YI:return WR(WR({},t),{},{itemType:null,item:null,sourceId:null,dropResult:null,didDrop:!1,isSourcePublic:null,targetIds:[]});default:return t}}function GR(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,e=arguments.length>1?arguments[1]:void 0;switch(e.type){case VR:case KR:return t+1;case HR:case BR:return t-1;default:return t}}var XR=[],ZR=[];function JR(t,e){return t!==XR&&(t===ZR||void 0===e||(n=t,e.filter((function(t){return n.indexOf(t)>-1}))).length>0);var n}function QR(){var t=arguments.length>1?arguments[1]:void 0;switch(t.type){case UI:break;case VR:case KR:case BR:case HR:return XR;case HI:case BI:case YI:case WI:default:return ZR}var e=t.payload,n=e.targetIds,r=void 0===n?[]:n,a=e.prevTargetIds,o=void 0===a?[]:a,i=JI(r,o),l=i.length>0||!MR(r,o);if(!l)return XR;var c=o[o.length-1],s=r[r.length-1];return c!==s&&(c&&i.push(c),s&&i.push(s)),i}function tM(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;return t+1}function eM(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function nM(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?eM(Object(n),!0).forEach((function(e){rM(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):eM(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function rM(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function aM(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=arguments.length>1?arguments[1]:void 0;return{dirtyHandlerIds:QR(t.dirtyHandlerIds,{type:e.type,payload:nM(nM({},e.payload),{},{prevTargetIds:GI(t,"dragOperation.targetIds",[])})}),dragOffset:FR(t.dragOffset,e),refCount:GR(t.refCount,e),dragOperation:qR(t.dragOperation,e),stateId:tM(t.stateId)}}function oM(t,e){return{x:t.x-e.x,y:t.y-e.y}}function iM(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function lM(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}XR.__IS_NONE__=!0,ZR.__IS_ALL__=!0;var cM=function(){function t(e,n){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),lM(this,"store",void 0),lM(this,"registry",void 0),this.store=e,this.registry=n}var e,n,r;return e=t,(n=[{key:"subscribeToStateChange",value:function(t){var e=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{handlerIds:void 0},r=n.handlerIds;VI("function"==typeof t,"listener must be a function."),VI(void 0===r||Array.isArray(r),"handlerIds, when specified, must be an array of strings.");var a=this.store.getState().stateId,o=function(){var n=e.store.getState(),o=n.stateId;try{o===a||o===a+1&&!JR(n.dirtyHandlerIds,r)||t()}finally{a=o}};return this.store.subscribe(o)}},{key:"subscribeToOffsetChange",value:function(t){var e=this;VI("function"==typeof t,"listener must be a function.");var n=this.store.getState().dragOffset;return this.store.subscribe((function(){var r=e.store.getState().dragOffset;r!==n&&(n=r,t())}))}},{key:"canDragSource",value:function(t){if(!t)return!1;var e=this.registry.getSource(t);return VI(e,"Expected to find a valid source. sourceId=".concat(t)),!this.isDragging()&&e.canDrag(this,t)}},{key:"canDropOnTarget",value:function(t){if(!t)return!1;var e=this.registry.getTarget(t);return VI(e,"Expected to find a valid target. targetId=".concat(t)),!(!this.isDragging()||this.didDrop())&&iR(this.registry.getTargetType(t),this.getItemType())&&e.canDrop(this,t)}},{key:"isDragging",value:function(){return Boolean(this.getItemType())}},{key:"isDraggingSource",value:function(t){if(!t)return!1;var e=this.registry.getSource(t,!0);return VI(e,"Expected to find a valid source. sourceId=".concat(t)),!(!this.isDragging()||!this.isSourcePublic())&&this.registry.getSourceType(t)===this.getItemType()&&e.isDragging(this,t)}},{key:"isOverTarget",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{shallow:!1};if(!t)return!1;var n=e.shallow;if(!this.isDragging())return!1;var r=this.registry.getTargetType(t),a=this.getItemType();if(a&&!iR(r,a))return!1;var o=this.getTargetIds();if(!o.length)return!1;var i=o.indexOf(t);return n?i===o.length-1:i>-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 t=this.store.getState().dragOffset,e=t.clientOffset,n=t.initialClientOffset,r=t.initialSourceClientOffset,e&&n&&r?oM(function(t,e){return{x:t.x+e.x,y:t.y+e.y}}(e,r),n):null;var t,e,n,r}},{key:"getDifferenceFromInitialOffset",value:function(){return t=this.store.getState().dragOffset,e=t.clientOffset,n=t.initialClientOffset,e&&n?oM(e,n):null;var t,e,n}}])&&iM(e.prototype,n),r&&iM(e,r),t}(),sM=0;function uM(t){return(uM="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function dM(t,e){e&&Array.isArray(t)?t.forEach((function(t){return dM(t,!1)})):VI("string"==typeof t||"symbol"===uM(t),e?"Type can only be a string, a symbol, or an array of either.":"Type can only be a string or a symbol.")}const pM="undefined"!=typeof global?global:self,fM=pM.MutationObserver||pM.WebKitMutationObserver;function mM(t){return function(){const e=setTimeout(r,0),n=setInterval(r,50);function r(){clearTimeout(e),clearInterval(n),t()}}}const hM="function"==typeof fM?function(t){let e=1;const n=new fM(t),r=document.createTextNode("");return n.observe(r,{characterData:!0}),function(){e=-e,r.data=e}}:mM;class gM{call(){try{this.task&&this.task()}catch(t){this.onError(t)}finally{this.task=null,this.release(this)}}constructor(t,e){this.onError=t,this.release=e,this.task=null}}const bM=new class{enqueueTask(t){const{queue:e,requestFlush:n}=this;e.length||(n(),this.flushing=!0),e[e.length]=t}constructor(){this.queue=[],this.pendingErrors=[],this.flushing=!1,this.index=0,this.capacity=1024,this.flush=()=>{const{queue:t}=this;for(;this.index<t.length;){const e=this.index;if(this.index++,t[e].call(),this.index>this.capacity){for(let e=0,n=t.length-this.index;e<n;e++)t[e]=t[e+this.index];t.length-=this.index,this.index=0}}t.length=0,this.index=0,this.flushing=!1},this.registerPendingError=t=>{this.pendingErrors.push(t),this.requestErrorThrow()},this.requestFlush=hM(this.flush),this.requestErrorThrow=mM((()=>{if(this.pendingErrors.length)throw this.pendingErrors.shift()}))}},vM=new class{create(t){const e=this.freeTasks,n=e.length?e.pop():new gM(this.onError,(t=>e[e.length]=t));return n.task=t,n}constructor(t){this.onError=t,this.freeTasks=[]}}(bM.registerPendingError);function yM(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function xM(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function wM(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var n=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null==n)return;var r,a,o=[],i=!0,l=!1;try{for(n=n.call(t);!(i=(r=n.next()).done)&&(o.push(r.value),!e||o.length!==e);i=!0);}catch(t){l=!0,a=t}finally{try{i||null==n.return||n.return()}finally{if(l)throw a}}return o}(t,e)||function(t,e){if(!t)return;if("string"==typeof t)return kM(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);"Object"===n&&t.constructor&&(n=t.constructor.name);if("Map"===n||"Set"===n)return Array.from(t);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return kM(t,e)}(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function kM(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}function CM(t){var e=(sM++).toString();switch(t){case _I.SOURCE:return"S".concat(e);case _I.TARGET:return"T".concat(e);default:throw new Error("Unknown Handler Role: ".concat(t))}}function EM(t){switch(t[0]){case"S":return _I.SOURCE;case"T":return _I.TARGET;default:VI(!1,"Cannot parse handler ID: ".concat(t))}}function OM(t,e){var n=t.entries(),r=!1;do{var a=n.next(),o=a.done;if(wM(a.value,2)[1]===e)return!0;r=!!o}while(!r);return!1}var SM=function(){function t(e){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),xM(this,"types",new Map),xM(this,"dragSources",new Map),xM(this,"dropTargets",new Map),xM(this,"pinnedSourceId",null),xM(this,"pinnedSource",null),xM(this,"store",void 0),this.store=e}var e,n,r;return e=t,(n=[{key:"addSource",value:function(t,e){dM(t),function(t){VI("function"==typeof t.canDrag,"Expected canDrag to be a function."),VI("function"==typeof t.beginDrag,"Expected beginDrag to be a function."),VI("function"==typeof t.endDrag,"Expected endDrag to be a function.")}(e);var n=this.addHandler(_I.SOURCE,t,e);return this.store.dispatch(function(t){return{type:VR,payload:{sourceId:t}}}(n)),n}},{key:"addTarget",value:function(t,e){dM(t,!0),function(t){VI("function"==typeof t.canDrop,"Expected canDrop to be a function."),VI("function"==typeof t.hover,"Expected hover to be a function."),VI("function"==typeof t.drop,"Expected beginDrag to be a function.")}(e);var n=this.addHandler(_I.TARGET,t,e);return this.store.dispatch(function(t){return{type:KR,payload:{targetId:t}}}(n)),n}},{key:"containsHandler",value:function(t){return OM(this.dragSources,t)||OM(this.dropTargets,t)}},{key:"getSource",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]&&arguments[1];VI(this.isSourceId(t),"Expected a valid source ID.");var n=e&&t===this.pinnedSourceId,r=n?this.pinnedSource:this.dragSources.get(t);return r}},{key:"getTarget",value:function(t){return VI(this.isTargetId(t),"Expected a valid target ID."),this.dropTargets.get(t)}},{key:"getSourceType",value:function(t){return VI(this.isSourceId(t),"Expected a valid source ID."),this.types.get(t)}},{key:"getTargetType",value:function(t){return VI(this.isTargetId(t),"Expected a valid target ID."),this.types.get(t)}},{key:"isSourceId",value:function(t){return EM(t)===_I.SOURCE}},{key:"isTargetId",value:function(t){return EM(t)===_I.TARGET}},{key:"removeSource",value:function(t){var e,n=this;VI(this.getSource(t),"Expected an existing source."),this.store.dispatch(function(t){return{type:HR,payload:{sourceId:t}}}(t)),e=function(){n.dragSources.delete(t),n.types.delete(t)},bM.enqueueTask(vM.create(e))}},{key:"removeTarget",value:function(t){VI(this.getTarget(t),"Expected an existing target."),this.store.dispatch(function(t){return{type:BR,payload:{targetId:t}}}(t)),this.dropTargets.delete(t),this.types.delete(t)}},{key:"pinSource",value:function(t){var e=this.getSource(t);VI(e,"Expected an existing source."),this.pinnedSourceId=t,this.pinnedSource=e}},{key:"unpinSource",value:function(){VI(this.pinnedSource,"No source is pinned at the time."),this.pinnedSourceId=null,this.pinnedSource=null}},{key:"addHandler",value:function(t,e,n){var r=CM(t);return this.types.set(r,e),t===_I.SOURCE?this.dragSources.set(r,n):t===_I.TARGET&&this.dropTargets.set(r,n),r}}])&&yM(e.prototype,n),r&&yM(e,r),t}();function NM(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:void 0,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=arguments.length>3&&void 0!==arguments[3]&&arguments[3],a=PM(r),o=new cM(a,new SM(a)),i=new kR(a,o),l=t(i,e,n);return i.receiveBackend(l),i}function PM(t){var e="undefined"!=typeof window&&window.__REDUX_DEVTOOLS_EXTENSION__;return TR(aM,t&&e&&e({name:"dnd-core",instanceId:"dnd-core"}))}var jM=["children"];function TM(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var n=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null==n)return;var r,a,o=[],i=!0,l=!1;try{for(n=n.call(t);!(i=(r=n.next()).done)&&(o.push(r.value),!e||o.length!==e);i=!0);}catch(t){l=!0,a=t}finally{try{i||null==n.return||n.return()}finally{if(l)throw a}}return o}(t,e)||function(t,e){if(!t)return;if("string"==typeof t)return DM(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);"Object"===n&&t.constructor&&(n=t.constructor.name);if("Map"===n||"Set"===n)return Array.from(t);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return DM(t,e)}(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function DM(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}function IM(t,e){if(null==t)return{};var n,r,a=function(t,e){if(null==t)return{};var n,r,a={},o=Object.keys(t);for(r=0;r<o.length;r++)n=o[r],e.indexOf(n)>=0||(a[n]=t[n]);return a}(t,e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(t);for(r=0;r<o.length;r++)n=o[r],e.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(t,n)&&(a[n]=t[n])}return a}var RM=0,MM=Symbol.for("__REACT_DND_CONTEXT_INSTANCE__"),zM=t.memo((function(e){var r=e.children,a=TM(function(t){if("manager"in t){return[{dragDropManager:t.manager},!1]}var e=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:AM(),n=arguments.length>2?arguments[2]:void 0,r=arguments.length>3?arguments[3]:void 0,a=e;a[MM]||(a[MM]={dragDropManager:NM(t,e,n,r)});return a[MM]}(t.backend,t.context,t.options,t.debugMode),n=!t.context;return[e,n]}(IM(e,jM)),2),o=a[0],i=a[1];return t.useEffect((function(){if(i){var t=AM();return++RM,function(){0==--RM&&(t[MM]=null)}}}),[]),n.jsx(FI.Provider,Object.assign({value:o},{children:r}),void 0)}));function AM(){return"undefined"!=typeof global?global:window}function LM(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function _M(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var FM=!1,VM=!1,KM=function(){function t(e){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),_M(this,"internalMonitor",void 0),_M(this,"sourceId",null),this.internalMonitor=e.getMonitor()}var e,n,r;return e=t,(n=[{key:"receiveHandlerId",value:function(t){this.sourceId=t}},{key:"getHandlerId",value:function(){return this.sourceId}},{key:"canDrag",value:function(){VI(!FM,"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 FM=!0,this.internalMonitor.canDragSource(this.sourceId)}finally{FM=!1}}},{key:"isDragging",value:function(){if(!this.sourceId)return!1;VI(!VM,"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 VM=!0,this.internalMonitor.isDraggingSource(this.sourceId)}finally{VM=!1}}},{key:"subscribeToStateChange",value:function(t,e){return this.internalMonitor.subscribeToStateChange(t,e)}},{key:"isDraggingSource",value:function(t){return this.internalMonitor.isDraggingSource(t)}},{key:"isOverTarget",value:function(t,e){return this.internalMonitor.isOverTarget(t,e)}},{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(t){return this.internalMonitor.subscribeToOffsetChange(t)}},{key:"canDragSource",value:function(t){return this.internalMonitor.canDragSource(t)}},{key:"canDropOnTarget",value:function(t){return this.internalMonitor.canDropOnTarget(t)}},{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()}}])&&LM(e.prototype,n),r&&LM(e,r),t}();function HM(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function BM(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var UM=!1,WM=function(){function t(e){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),BM(this,"internalMonitor",void 0),BM(this,"targetId",null),this.internalMonitor=e.getMonitor()}var e,n,r;return e=t,(n=[{key:"receiveHandlerId",value:function(t){this.targetId=t}},{key:"getHandlerId",value:function(){return this.targetId}},{key:"subscribeToStateChange",value:function(t,e){return this.internalMonitor.subscribeToStateChange(t,e)}},{key:"canDrop",value:function(){if(!this.targetId)return!1;VI(!UM,"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 UM=!0,this.internalMonitor.canDropOnTarget(this.targetId)}finally{UM=!1}}},{key:"isOver",value:function(t){return!!this.targetId&&this.internalMonitor.isOverTarget(this.targetId,t)}},{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()}}])&&HM(e.prototype,n),r&&HM(e,r),t}();function YM(t){if("string"!=typeof t.type){var e=t.type.displayName||t.type.name||"the component";throw new Error("Only native element nodes can now be passed to React DnD connectors."+"You can either wrap ".concat(e," into a <div>, or turn it into a ")+"drag source or a drop target itself.")}}function $M(e){var n={};return Object.keys(e).forEach((function(r){var a=e[r];if(r.endsWith("Ref"))n[r]=e[r];else{var o=function(e){return function(){var n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;if(!t.isValidElement(n)){var a=n;return e(a,r),a}var o=n;return YM(o),GM(o,r?function(t){return e(t,r)}:e)}}(a);n[r]=function(){return o}}})),n}function qM(t,e){"function"==typeof t?t(e):t.current=e}function GM(e,n){var r=e.ref;return VI("string"!=typeof r,"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"),r?t.cloneElement(e,{ref:function(t){qM(r,t),qM(n,t)}}):t.cloneElement(e,{ref:n})}function XM(t){return(XM="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function ZM(t){return null!==t&&"object"===XM(t)&&Object.prototype.hasOwnProperty.call(t,"current")}function JM(t,e,n,r){var a=n?n.call(r,t,e):void 0;if(void 0!==a)return!!a;if(t===e)return!0;if("object"!=typeof t||!t||"object"!=typeof e||!e)return!1;var o=Object.keys(t),i=Object.keys(e);if(o.length!==i.length)return!1;for(var l=Object.prototype.hasOwnProperty.bind(e),c=0;c<o.length;c++){var s=o[c];if(!l(s))return!1;var u=t[s],d=e[s];if(!1===(a=n?n.call(r,u,d,s):void 0)||void 0===a&&u!==d)return!1}return!0}function QM(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function tz(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var ez=function(){function t(e){var n=this;!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),tz(this,"hooks",$M({dragSource:function(t,e){n.clearDragSource(),n.dragSourceOptions=e||null,ZM(t)?n.dragSourceRef=t:n.dragSourceNode=t,n.reconnectDragSource()},dragPreview:function(t,e){n.clearDragPreview(),n.dragPreviewOptions=e||null,ZM(t)?n.dragPreviewRef=t:n.dragPreviewNode=t,n.reconnectDragPreview()}})),tz(this,"handlerId",null),tz(this,"dragSourceRef",null),tz(this,"dragSourceNode",void 0),tz(this,"dragSourceOptionsInternal",null),tz(this,"dragSourceUnsubscribe",void 0),tz(this,"dragPreviewRef",null),tz(this,"dragPreviewNode",void 0),tz(this,"dragPreviewOptionsInternal",null),tz(this,"dragPreviewUnsubscribe",void 0),tz(this,"lastConnectedHandlerId",null),tz(this,"lastConnectedDragSource",null),tz(this,"lastConnectedDragSourceOptions",null),tz(this,"lastConnectedDragPreview",null),tz(this,"lastConnectedDragPreviewOptions",null),tz(this,"backend",void 0),this.backend=e}var e,n,r;return e=t,(n=[{key:"receiveHandlerId",value:function(t){this.handlerId!==t&&(this.handlerId=t,this.reconnect())}},{key:"connectTarget",get:function(){return this.dragSource}},{key:"dragSourceOptions",get:function(){return this.dragSourceOptionsInternal},set:function(t){this.dragSourceOptionsInternal=t}},{key:"dragPreviewOptions",get:function(){return this.dragPreviewOptionsInternal},set:function(t){this.dragPreviewOptionsInternal=t}},{key:"reconnect",value:function(){this.reconnectDragSource(),this.reconnectDragPreview()}},{key:"reconnectDragSource",value:function(){var t=this.dragSource,e=this.didHandlerIdChange()||this.didConnectedDragSourceChange()||this.didDragSourceOptionsChange();e&&this.disconnectDragSource(),this.handlerId&&(t?e&&(this.lastConnectedHandlerId=this.handlerId,this.lastConnectedDragSource=t,this.lastConnectedDragSourceOptions=this.dragSourceOptions,this.dragSourceUnsubscribe=this.backend.connectDragSource(this.handlerId,t,this.dragSourceOptions)):this.lastConnectedDragSource=t)}},{key:"reconnectDragPreview",value:function(){var t=this.dragPreview,e=this.didHandlerIdChange()||this.didConnectedDragPreviewChange()||this.didDragPreviewOptionsChange();e&&this.disconnectDragPreview(),this.handlerId&&(t?e&&(this.lastConnectedHandlerId=this.handlerId,this.lastConnectedDragPreview=t,this.lastConnectedDragPreviewOptions=this.dragPreviewOptions,this.dragPreviewUnsubscribe=this.backend.connectDragPreview(this.handlerId,t,this.dragPreviewOptions)):this.lastConnectedDragPreview=t)}},{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!JM(this.lastConnectedDragSourceOptions,this.dragSourceOptions)}},{key:"didDragPreviewOptionsChange",value:function(){return!JM(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}}])&&QM(e.prototype,n),r&&QM(e,r),t}();function nz(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function rz(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var az=function(){function t(e){var n=this;!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),rz(this,"hooks",$M({dropTarget:function(t,e){n.clearDropTarget(),n.dropTargetOptions=e,ZM(t)?n.dropTargetRef=t:n.dropTargetNode=t,n.reconnect()}})),rz(this,"handlerId",null),rz(this,"dropTargetRef",null),rz(this,"dropTargetNode",void 0),rz(this,"dropTargetOptionsInternal",null),rz(this,"unsubscribeDropTarget",void 0),rz(this,"lastConnectedHandlerId",null),rz(this,"lastConnectedDropTarget",null),rz(this,"lastConnectedDropTargetOptions",null),rz(this,"backend",void 0),this.backend=e}var e,n,r;return e=t,(n=[{key:"connectTarget",get:function(){return this.dropTarget}},{key:"reconnect",value:function(){var t=this.didHandlerIdChange()||this.didDropTargetChange()||this.didOptionsChange();t&&this.disconnectDropTarget();var e=this.dropTarget;this.handlerId&&(e?t&&(this.lastConnectedHandlerId=this.handlerId,this.lastConnectedDropTarget=e,this.lastConnectedDropTargetOptions=this.dropTargetOptions,this.unsubscribeDropTarget=this.backend.connectDropTarget(this.handlerId,e,this.dropTargetOptions)):this.lastConnectedDropTarget=e)}},{key:"receiveHandlerId",value:function(t){t!==this.handlerId&&(this.handlerId=t,this.reconnect())}},{key:"dropTargetOptions",get:function(){return this.dropTargetOptionsInternal},set:function(t){this.dropTargetOptionsInternal=t}},{key:"didHandlerIdChange",value:function(){return this.lastConnectedHandlerId!==this.handlerId}},{key:"didDropTargetChange",value:function(){return this.lastConnectedDropTarget!==this.dropTarget}},{key:"didOptionsChange",value:function(){return!JM(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}}])&&nz(e.prototype,n),r&&nz(e,r),t}();var oz="undefined"!=typeof window?t.useLayoutEffect:t.useEffect;function iz(t){return(iz="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function lz(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function cz(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var sz=function(){function t(e,n,r){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),cz(this,"spec",void 0),cz(this,"monitor",void 0),cz(this,"connector",void 0),this.spec=e,this.monitor=n,this.connector=r}var e,n,r;return e=t,(n=[{key:"beginDrag",value:function(){var t,e=this.spec,n=this.monitor;return null!==(t="object"===iz(e.item)?e.item:"function"==typeof e.item?e.item(n):{})&&void 0!==t?t:null}},{key:"canDrag",value:function(){var t=this.spec,e=this.monitor;return"boolean"==typeof t.canDrag?t.canDrag:"function"!=typeof t.canDrag||t.canDrag(e)}},{key:"isDragging",value:function(t,e){var n=this.spec,r=this.monitor,a=n.isDragging;return a?a(r):e===t.getSourceId()}},{key:"endDrag",value:function(){var t=this.spec,e=this.monitor,n=this.connector,r=t.end;r&&r(e.getItem(),e),n.reconnect()}}])&&lz(e.prototype,n),r&&lz(e,r),t}();function uz(){var e=t.useContext(FI).dragDropManager;return VI(null!=e,"Expected drag drop context"),e}function dz(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var n=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null==n)return;var r,a,o=[],i=!0,l=!1;try{for(n=n.call(t);!(i=(r=n.next()).done)&&(o.push(r.value),!e||o.length!==e);i=!0);}catch(t){l=!0,a=t}finally{try{i||null==n.return||n.return()}finally{if(l)throw a}}return o}(t,e)||function(t,e){if(!t)return;if("string"==typeof t)return pz(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);"Object"===n&&t.constructor&&(n=t.constructor.name);if("Map"===n||"Set"===n)return Array.from(t);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return pz(t,e)}(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function pz(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}function fz(e,n,r){var a=uz(),o=function(e,n,r){var a=t.useMemo((function(){return new sz(e,n,r)}),[n,r]);return t.useEffect((function(){a.spec=e}),[e]),a}(e,n,r),i=function(e){return t.useMemo((function(){var t=e.type;return VI(null!=t,"spec.type must be defined"),t}),[e])}(e);oz((function(){if(null!=i){var t=dz(function(t,e,n){var r=n.getRegistry(),a=r.addSource(t,e);return[a,function(){return r.removeSource(a)}]}(i,o,a),2),e=t[0],l=t[1];return n.receiveHandlerId(e),r.receiveHandlerId(e),l}}),[a,n,r,o,i])}function mz(t){return function(t){if(Array.isArray(t))return hz(t)}(t)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||function(t,e){if(!t)return;if("string"==typeof t)return hz(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);"Object"===n&&t.constructor&&(n=t.constructor.name);if("Map"===n||"Set"===n)return Array.from(t);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return hz(t,e)}(t)||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 hz(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}function gz(e,n){var r=mz(n||[]);return null==n&&"function"!=typeof e&&r.push(e),t.useMemo((function(){return"function"==typeof e?e():e}),r)}var bz=function t(e,n){if(e===n)return!0;if(e&&n&&"object"==typeof e&&"object"==typeof n){if(e.constructor!==n.constructor)return!1;var r,a,o;if(Array.isArray(e)){if((r=e.length)!=n.length)return!1;for(a=r;0!=a--;)if(!t(e[a],n[a]))return!1;return!0}if(e.constructor===RegExp)return e.source===n.source&&e.flags===n.flags;if(e.valueOf!==Object.prototype.valueOf)return e.valueOf()===n.valueOf();if(e.toString!==Object.prototype.toString)return e.toString()===n.toString();if((r=(o=Object.keys(e)).length)!==Object.keys(n).length)return!1;for(a=r;0!=a--;)if(!Object.prototype.hasOwnProperty.call(n,o[a]))return!1;for(a=r;0!=a--;){var i=o[a];if(!t(e[i],n[i]))return!1}return!0}return e!=e&&n!=n};function vz(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var n=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null==n)return;var r,a,o=[],i=!0,l=!1;try{for(n=n.call(t);!(i=(r=n.next()).done)&&(o.push(r.value),!e||o.length!==e);i=!0);}catch(t){l=!0,a=t}finally{try{i||null==n.return||n.return()}finally{if(l)throw a}}return o}(t,e)||function(t,e){if(!t)return;if("string"==typeof t)return yz(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);"Object"===n&&t.constructor&&(n=t.constructor.name);if("Map"===n||"Set"===n)return Array.from(t);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return yz(t,e)}(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function yz(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}function xz(e,n,r){var a=vz(t.useState((function(){return n(e)})),2),o=a[0],i=a[1],l=t.useCallback((function(){var t=n(e);bz(o,t)||(i(t),r&&r())}),[o,e,r]);return oz(l),[o,l]}function wz(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var n=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null==n)return;var r,a,o=[],i=!0,l=!1;try{for(n=n.call(t);!(i=(r=n.next()).done)&&(o.push(r.value),!e||o.length!==e);i=!0);}catch(t){l=!0,a=t}finally{try{i||null==n.return||n.return()}finally{if(l)throw a}}return o}(t,e)||function(t,e){if(!t)return;if("string"==typeof t)return kz(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);"Object"===n&&t.constructor&&(n=t.constructor.name);if("Map"===n||"Set"===n)return Array.from(t);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return kz(t,e)}(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function kz(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}function Cz(t,e,n){return function(t,e,n){var r=wz(xz(t,e,n),2),a=r[0],o=r[1];return oz((function(){var e=t.getHandlerId();if(null!=e)return t.subscribeToStateChange(o,{handlerIds:[e]})}),[t,o]),a}(e,t||function(){return{}},(function(){return n.reconnect()}))}function Ez(e){return t.useMemo((function(){return e.hooks.dragSource()}),[e])}function Oz(e){return t.useMemo((function(){return e.hooks.dragPreview()}),[e])}function Sz(e,n){var r=gz(e,n);VI(!r.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 a,o=(a=uz(),t.useMemo((function(){return new KM(a)}),[a])),i=function(e,n){var r=uz(),a=t.useMemo((function(){return new ez(r.getBackend())}),[r]);return oz((function(){return a.dragSourceOptions=e||null,a.reconnect(),function(){return a.disconnectDragSource()}}),[a,e]),oz((function(){return a.dragPreviewOptions=n||null,a.reconnect(),function(){return a.disconnectDragPreview()}}),[a,n]),a}(r.options,r.previewOptions);return fz(r,o,i),[Cz(r.collect,o,i),Ez(i),Oz(i)]}function Nz(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function Pz(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var jz=function(){function t(e,n){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),Pz(this,"spec",void 0),Pz(this,"monitor",void 0),this.spec=e,this.monitor=n}var e,n,r;return e=t,(n=[{key:"canDrop",value:function(){var t=this.spec,e=this.monitor;return!t.canDrop||t.canDrop(e.getItem(),e)}},{key:"hover",value:function(){var t=this.spec,e=this.monitor;t.hover&&t.hover(e.getItem(),e)}},{key:"drop",value:function(){var t=this.spec,e=this.monitor;if(t.drop)return t.drop(e.getItem(),e)}}])&&Nz(e.prototype,n),r&&Nz(e,r),t}();function Tz(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var n=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null==n)return;var r,a,o=[],i=!0,l=!1;try{for(n=n.call(t);!(i=(r=n.next()).done)&&(o.push(r.value),!e||o.length!==e);i=!0);}catch(t){l=!0,a=t}finally{try{i||null==n.return||n.return()}finally{if(l)throw a}}return o}(t,e)||function(t,e){if(!t)return;if("string"==typeof t)return Dz(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);"Object"===n&&t.constructor&&(n=t.constructor.name);if("Map"===n||"Set"===n)return Array.from(t);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return Dz(t,e)}(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Dz(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}function Iz(e,n,r){var a=uz(),o=function(e,n){var r=t.useMemo((function(){return new jz(e,n)}),[n]);return t.useEffect((function(){r.spec=e}),[e]),r}(e,n),i=function(e){var n=e.accept;return t.useMemo((function(){return VI(null!=e.accept,"accept must be defined"),Array.isArray(n)?n:[n]}),[n])}(e);oz((function(){var t=Tz(function(t,e,n){var r=n.getRegistry(),a=r.addTarget(t,e);return[a,function(){return r.removeTarget(a)}]}(i,o,a),2),e=t[0],l=t[1];return n.receiveHandlerId(e),r.receiveHandlerId(e),l}),[a,n,o,r,i.map((function(t){return t.toString()})).join("|")])}function Rz(e){return t.useMemo((function(){return e.hooks.dropTarget()}),[e])}function Mz(e,n){var r,a=gz(e,n),o=(r=uz(),t.useMemo((function(){return new WM(r)}),[r])),i=function(e){var n=uz(),r=t.useMemo((function(){return new az(n.getBackend())}),[n]);return oz((function(){return r.dropTargetOptions=e||null,r.reconnect(),function(){return r.disconnectDropTarget()}}),[e]),r}(a.options);return Iz(a,o,i),[Cz(a.collect,o,i),Rz(i)]}y('.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;position:relative;min-height:20px}.editable-row:hover .editable-cell-value-wrap:after,[data-theme=dark] .editable-row:hover .editable-cell-value-wrap:after{content:"";position:absolute;left:0;right:0;top:0;bottom:0;z-index:1;border:1px dashed #5860f8}');const{Option:zz}=Kd,Az=d.default.createContext(null),Lz=({open:e,index:r,moveRow:a,className:o,style:i,...l})=>{const[c]=zk.useForm(),s=t.useRef(null),[{isOver:u,dropClassName:d},p]=Mz({accept:"DraggableBodyRow",collect:t=>{const{index:e}=t.getItem()||{};return e===r?{}:{isOver:t.isOver(),dropClassName:e<r?" drop-over-downward":" drop-over-upward"}},drop:t=>{a(t.index,r)}}),[,f]=Sz({type:"DraggableBodyRow",item:{index:r},collect:t=>({isDragging:t.isDragging()})});return e&&p(f(s)),n.jsx(zk,Object.assign({size:"small",component:!1,form:c},{children:n.jsx(Az.Provider,Object.assign({value:c},{children:n.jsx("tr",Object.assign({ref:s,className:`${o}${u?d:""}`,style:{cursor:e?"move":"auto",...i}},l),void 0)}),void 0)}),void 0)},_z=({columns:e,record:r,dataIndex:a,title:o,editable:i,inputType:l,valueType:c,valueEnum:s,recordSelectField:u,controlRender:d,formChange:f,remoteConfig:m,children:h,formItemProps:b,handleSave:v,...y})=>{const x=t.useContext(Az),[w,k]=t.useState(!1),[C,E]=t.useState(!1),[O,S]=t.useState({}),N=t.useRef(null);t.useEffect((()=>{w&&N.current.focus()}),[w]);const P=(t,e,n,r)=>{r&&(E(!0),r(t,n).then((t=>{E(!1),e&&S({[e]:t})})))},j=()=>{T()},T=()=>{k(!1)},D=()=>{void 0!==r[a]&&("DatePicker"!==c&&"DateTimePicker"!==c||(r[a]=g.default(r[a])),"status"===a&&(r[a]=String(r[a]))),k(!w),x.setFieldsValue({[a]:r[a]})},I=t=>{const e={DateTimePicker:"YYYY-MM-DD HH:mm:ss",DatePicker:"YYYY-MM-DD"};return Object.keys(e).includes(c)&&t[a]&&(t[a]=t[a].format(e[c])),t},R=()=>{if(c&&a){if(s&&("Select"===c||"AutoComplete"===c)||"RemoteSearch"===c)return CD(s,r[a]);if(r[u]&&"RecordSelect"===c)return CD(r[u],r[a]);if(g.default.isMoment(r[a]))return I(r)[a]}return h},M=(t,e)=>{let o=null;const i=(t,e)=>{let n="";const r=function(t){for(let e of t)if(e)if(kD({data:e,type:"String"}))n+=e;else{const t=e.props.children;kD({data:t,type:"Object"})&&r([t]),kD({data:t,type:"Array"})&&r(t),kD({data:t,type:"String"})&&(n+=t)}};return r([e.children]),n.toLowerCase().indexOf(t.toLowerCase())>=0},c=t=>{if(p.default.isArray(t))return t.map(((t,e)=>n.jsx(zz,Object.assign({value:t.value},{children:t.label}),e)))};switch(t){case"RecordSelect":o=n.jsx(Kd,Object.assign({ref:N,open:w,allowClear:!0,showSearch:!0,dropdownMatchSelectWidth:!1,placeholder:e,onChange:z,onBlur:j,optionFilterProp:"children",filterOption:i},{children:c(r[u])}),void 0);break;case"Select":o=n.jsx(Kd,Object.assign({ref:N,open:w,dropdownMatchSelectWidth:!1,onChange:z,onBlur:j,placeholder:e},{children:c(s)}),void 0);break;case"DatePicker":o=n.jsx(zw,{ref:N,open:w,onChange:z,onBlur:j,placeholder:e},void 0);break;case"DateTimePicker":o=n.jsx(zw,{ref:N,open:w,onChange:z,onBlur:j,placeholder:e,showTime:!0},void 0);break;case"AutoComplete":o=n.jsx(Kd,Object.assign({ref:N,open:w,allowClear:!0,showSearch:!0,dropdownMatchSelectWidth:!1,placeholder:e,onChange:z,onBlur:j,optionFilterProp:"children",filterOption:i},{children:c(s)}),void 0);break;case"RemoteSearch":let t=s;O[a]&&(t=O[a]),o=n.jsx(Kd,Object.assign({ref:N,open:w,mode:m.remoteMode,placeholder:e,notFoundContent:C?n.jsx(nC,{size:"small"},void 0):null,dropdownMatchSelectWidth:!1,filterOption:!1,allowClear:!0,showSearch:!0,onChange:z,onBlur:j,onFocus:()=>P(void 0,a,r,m.remoteApi),onSearch:t=>P(t,a,r,m.remoteApi)},{children:a&&c(t)}),void 0);break;default:o=n.jsx(sx,{ref:N,onPressEnter:z,onBlur:z,placeholder:e,type:l||"text"},void 0)}return o},z=async()=>{try{const t=await x.validateFields();let e={...r,...t};e[a]=e[a]||void 0,e=I(e),f&&(e=await f(e)||e),r[a]!==e[a]&&v(e,a),T()}catch(t){console.log("保存表单字段失败:",t)}};let A=h;return A=i?w?n.jsx(zk.Item,Object.assign({style:{margin:0},name:a,rules:b?b.rules:void 0},{children:M(c,o)}),void 0):n.jsx("div",Object.assign({className:"editable-cell-value-wrap",onClick:D},{children:R()}),void 0):R(),d&&(A=d(r,A)),n.jsx("td",Object.assign({},y,{title:r&&r[a]},{children:A}),void 0)};function Fz(t){var e=null;return function(){return null==e&&(e=t()),e}}function Vz(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function Kz(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var Hz=function(){function t(e){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),Kz(this,"entered",[]),Kz(this,"isNodeInDocument",void 0),this.isNodeInDocument=e}var e,n,r;return e=t,(n=[{key:"enter",value:function(t){var e=this,n=this.entered.length;return this.entered=function(t,e){var n=new Set,r=function(t){return n.add(t)};t.forEach(r),e.forEach(r);var a=[];return n.forEach((function(t){return a.push(t)})),a}(this.entered.filter((function(n){return e.isNodeInDocument(n)&&(!n.contains||n.contains(t))})),[t]),0===n&&this.entered.length>0}},{key:"leave",value:function(t){var e,n,r=this.entered.length;return this.entered=(e=this.entered.filter(this.isNodeInDocument),n=t,e.filter((function(t){return t!==n}))),r>0&&0===this.entered.length}},{key:"reset",value:function(){this.entered=[]}}])&&Vz(e.prototype,n),r&&Vz(e,r),t}(),Bz=Fz((function(){return/firefox/i.test(navigator.userAgent)})),Uz=Fz((function(){return Boolean(window.safari)}));function Wz(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function Yz(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var $z=function(){function t(e,n){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),Yz(this,"xs",void 0),Yz(this,"ys",void 0),Yz(this,"c1s",void 0),Yz(this,"c2s",void 0),Yz(this,"c3s",void 0);for(var r=e.length,a=[],o=0;o<r;o++)a.push(o);a.sort((function(t,n){return e[t]<e[n]?-1:1}));for(var i,l,c=[],s=[],u=0;u<r-1;u++)i=e[u+1]-e[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=[],y=[],x=0;x<d.length-1;x++){b=s[x];var w=d[x],k=1/c[x],C=w+d[x+1]-b-b;v.push((b-w-C)*k),y.push(C*k*k)}this.xs=e,this.ys=n,this.c1s=d,this.c2s=v,this.c3s=y}var e,n,r;return e=t,(n=[{key:"interpolate",value:function(t){var e=this.xs,n=this.ys,r=this.c1s,a=this.c2s,o=this.c3s,i=e.length-1;if(t===e[i])return n[i];for(var l,c=0,s=o.length-1;c<=s;){var u=e[l=Math.floor(.5*(c+s))];if(u<t)c=l+1;else{if(!(u>t))return n[l];s=l-1}}var d=t-e[i=Math.max(0,s)],p=d*d;return n[i]+r[i]*d+a[i]*p+o[i]*d*p}}])&&Wz(e.prototype,n),r&&Wz(e,r),t}();function qz(t){var e=1===t.nodeType?t:t.parentElement;if(!e)return null;var n=e.getBoundingClientRect(),r=n.top;return{x:n.left,y:r}}function Gz(t){return{x:t.clientX,y:t.clientY}}function Xz(t,e,n,r,a){var o,i,l="IMG"===(o=e).nodeName&&(Bz()||!(null!==(i=document.documentElement)&&void 0!==i&&i.contains(o))),c=qz(l?t:e),s={x:n.x-c.x,y:n.y-c.y},u=t.offsetWidth,d=t.offsetHeight,p=r.anchorX,f=r.anchorY,m=function(t,e,n,r){var a=t?e.width:n,o=t?e.height:r;return Uz()&&t&&(o/=window.devicePixelRatio,a/=window.devicePixelRatio),{dragPreviewWidth:a,dragPreviewHeight:o}}(l,e,u,d),h=m.dragPreviewWidth,g=m.dragPreviewHeight,b=a.offsetX,v=a.offsetY,y=0===v||v;return{x:0===b||b?b:new $z([0,.5,1],[s.x,s.x/u*h,s.x+h-u]).interpolate(p),y:y?v:function(){var t=new $z([0,.5,1],[s.y,s.y/d*g,s.y+g-d]).interpolate(f);return Uz()&&l&&(t+=(window.devicePixelRatio-1)*g),t}()}}var Zz,Jz="__NATIVE_FILE__",Qz="__NATIVE_URL__",tA="__NATIVE_TEXT__",eA="__NATIVE_HTML__",nA=Object.freeze({__proto__:null,FILE:Jz,URL:Qz,TEXT:tA,HTML:eA});function rA(t,e,n){var r=e.reduce((function(e,n){return e||t.getData(n)}),"");return null!=r?r:n}function aA(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var oA=(aA(Zz={},Jz,{exposeProperties:{files:function(t){return Array.prototype.slice.call(t.files)},items:function(t){return t.items},dataTransfer:function(t){return t}},matchesTypes:["Files"]}),aA(Zz,eA,{exposeProperties:{html:function(t,e){return rA(t,e,"")},dataTransfer:function(t){return t}},matchesTypes:["Html","text/html"]}),aA(Zz,Qz,{exposeProperties:{urls:function(t,e){return rA(t,e,"").split("\n")},dataTransfer:function(t){return t}},matchesTypes:["Url","text/uri-list"]}),aA(Zz,tA,{exposeProperties:{text:function(t,e){return rA(t,e,"")},dataTransfer:function(t){return t}},matchesTypes:["Text","text/plain"]}),Zz);function iA(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function lA(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var cA=function(){function t(e){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),lA(this,"item",void 0),lA(this,"config",void 0),this.config=e,this.item={},this.initializeExposedProperties()}var e,n,r;return e=t,(n=[{key:"initializeExposedProperties",value:function(){var t=this;Object.keys(this.config.exposeProperties).forEach((function(e){Object.defineProperty(t.item,e,{configurable:!0,enumerable:!0,get:function(){return console.warn("Browser doesn't allow reading \"".concat(e,'" until the drop event.')),null}})}))}},{key:"loadDataTransfer",value:function(t){var e=this;if(t){var n={};Object.keys(this.config.exposeProperties).forEach((function(r){n[r]={value:e.config.exposeProperties[r](t,e.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(t,e){return e===t.getSourceId()}},{key:"endDrag",value:function(){}}])&&iA(e.prototype,n),r&&iA(e,r),t}();function sA(t){if(!t)return null;var e=Array.prototype.slice.call(t.types||[]);return Object.keys(oA).filter((function(t){return oA[t].matchesTypes.some((function(t){return e.indexOf(t)>-1}))}))[0]||null}function uA(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function dA(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var pA=function(){function t(e,n){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),dA(this,"ownerDocument",null),dA(this,"globalContext",void 0),dA(this,"optionsArgs",void 0),this.globalContext=e,this.optionsArgs=n}var e,n,r;return e=t,(n=[{key:"window",get:function(){return this.globalContext?this.globalContext:"undefined"!=typeof window?window:void 0}},{key:"document",get:function(){var t;return null!==(t=this.globalContext)&&void 0!==t&&t.document?this.globalContext.document:this.window?this.window.document:void 0}},{key:"rootElement",get:function(){var t;return(null===(t=this.optionsArgs)||void 0===t?void 0:t.rootElement)||this.window}}])&&uA(e.prototype,n),r&&uA(e,r),t}();function fA(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function mA(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?fA(Object(n),!0).forEach((function(e){gA(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):fA(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function hA(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function gA(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var bA=function(){function t(e,n,r){var a=this;!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),gA(this,"options",void 0),gA(this,"actions",void 0),gA(this,"monitor",void 0),gA(this,"registry",void 0),gA(this,"enterLeaveCounter",void 0),gA(this,"sourcePreviewNodes",new Map),gA(this,"sourcePreviewNodeOptions",new Map),gA(this,"sourceNodes",new Map),gA(this,"sourceNodeOptions",new Map),gA(this,"dragStartSourceIds",null),gA(this,"dropTargetIds",[]),gA(this,"dragEnterTargetIds",[]),gA(this,"currentNativeSource",null),gA(this,"currentNativeHandle",null),gA(this,"currentDragSourceNode",null),gA(this,"altKeyPressed",!1),gA(this,"mouseMoveTimeoutTimer",null),gA(this,"asyncEndDragFrameId",null),gA(this,"dragOverTargetIds",null),gA(this,"lastClientOffset",null),gA(this,"hoverRafId",null),gA(this,"getSourceClientOffset",(function(t){var e=a.sourceNodes.get(t);return e&&qz(e)||null})),gA(this,"endDragNativeItem",(function(){a.isDraggingNativeItem()&&(a.actions.endDrag(),a.currentNativeHandle&&a.registry.removeSource(a.currentNativeHandle),a.currentNativeHandle=null,a.currentNativeSource=null)})),gA(this,"isNodeInDocument",(function(t){return Boolean(t&&a.document&&a.document.body&&a.document.body.contains(t))})),gA(this,"endDragIfSourceWasRemovedFromDOM",(function(){var t=a.currentDragSourceNode;null==t||a.isNodeInDocument(t)||a.clearCurrentDragSourceNode()&&a.monitor.isDragging()&&a.actions.endDrag()})),gA(this,"handleTopDragStartCapture",(function(){a.clearCurrentDragSourceNode(),a.dragStartSourceIds=[]})),gA(this,"handleTopDragStart",(function(t){if(!t.defaultPrevented){var e=a.dragStartSourceIds;a.dragStartSourceIds=null;var n=Gz(t);a.monitor.isDragging()&&a.actions.endDrag(),a.actions.beginDrag(e||[],{publishSource:!1,getSourceClientOffset:a.getSourceClientOffset,clientOffset:n});var r=t.dataTransfer,o=sA(r);if(a.monitor.isDragging()){if(r&&"function"==typeof r.setDragImage){var i=a.monitor.getSourceId(),l=a.sourceNodes.get(i),c=a.sourcePreviewNodes.get(i)||l;if(c){var s=a.getCurrentSourcePreviewNodeOptions(),u=Xz(l,c,n,{anchorX:s.anchorX,anchorY:s.anchorY},{offsetX:s.offsetX,offsetY:s.offsetY});r.setDragImage(c,u.x,u.y)}}try{null==r||r.setData("application/json",{})}catch(t){}a.setCurrentDragSourceNode(t.target),a.getCurrentSourcePreviewNodeOptions().captureDraggingState?a.actions.publishDragSource():setTimeout((function(){return a.actions.publishDragSource()}),0)}else if(o)a.beginDragNativeItem(o);else{if(r&&!r.types&&(t.target&&!t.target.hasAttribute||!t.target.hasAttribute("draggable")))return;t.preventDefault()}}})),gA(this,"handleTopDragEndCapture",(function(){a.clearCurrentDragSourceNode()&&a.monitor.isDragging()&&a.actions.endDrag()})),gA(this,"handleTopDragEnterCapture",(function(t){if(a.dragEnterTargetIds=[],a.enterLeaveCounter.enter(t.target)&&!a.monitor.isDragging()){var e=t.dataTransfer,n=sA(e);n&&a.beginDragNativeItem(n,e)}})),gA(this,"handleTopDragEnter",(function(t){var e=a.dragEnterTargetIds;(a.dragEnterTargetIds=[],a.monitor.isDragging())&&(a.altKeyPressed=t.altKey,e.length>0&&a.actions.hover(e,{clientOffset:Gz(t)}),e.some((function(t){return a.monitor.canDropOnTarget(t)}))&&(t.preventDefault(),t.dataTransfer&&(t.dataTransfer.dropEffect=a.getCurrentDropEffect())))})),gA(this,"handleTopDragOverCapture",(function(){a.dragOverTargetIds=[]})),gA(this,"handleTopDragOver",(function(t){var e=a.dragOverTargetIds;if(a.dragOverTargetIds=[],!a.monitor.isDragging())return t.preventDefault(),void(t.dataTransfer&&(t.dataTransfer.dropEffect="none"));a.altKeyPressed=t.altKey,a.lastClientOffset=Gz(t),null===a.hoverRafId&&"undefined"!=typeof requestAnimationFrame&&(a.hoverRafId=requestAnimationFrame((function(){a.monitor.isDragging()&&a.actions.hover(e||[],{clientOffset:a.lastClientOffset}),a.hoverRafId=null}))),(e||[]).some((function(t){return a.monitor.canDropOnTarget(t)}))?(t.preventDefault(),t.dataTransfer&&(t.dataTransfer.dropEffect=a.getCurrentDropEffect())):a.isDraggingNativeItem()?t.preventDefault():(t.preventDefault(),t.dataTransfer&&(t.dataTransfer.dropEffect="none"))})),gA(this,"handleTopDragLeaveCapture",(function(t){a.isDraggingNativeItem()&&t.preventDefault(),a.enterLeaveCounter.leave(t.target)&&a.isDraggingNativeItem()&&setTimeout((function(){return a.endDragNativeItem()}),0)})),gA(this,"handleTopDropCapture",(function(t){var e;(a.dropTargetIds=[],a.isDraggingNativeItem())?(t.preventDefault(),null===(e=a.currentNativeSource)||void 0===e||e.loadDataTransfer(t.dataTransfer)):sA(t.dataTransfer)&&t.preventDefault();a.enterLeaveCounter.reset()})),gA(this,"handleTopDrop",(function(t){var e=a.dropTargetIds;a.dropTargetIds=[],a.actions.hover(e,{clientOffset:Gz(t)}),a.actions.drop({dropEffect:a.getCurrentDropEffect()}),a.isDraggingNativeItem()?a.endDragNativeItem():a.monitor.isDragging()&&a.actions.endDrag()})),gA(this,"handleSelectStart",(function(t){var e=t.target;"function"==typeof e.dragDrop&&("INPUT"===e.tagName||"SELECT"===e.tagName||"TEXTAREA"===e.tagName||e.isContentEditable||(t.preventDefault(),e.dragDrop()))})),this.options=new pA(n,r),this.actions=e.getActions(),this.monitor=e.getMonitor(),this.registry=e.getRegistry(),this.enterLeaveCounter=new Hz(this.isNodeInDocument)}var e,n,r;return e=t,(n=[{key:"profile",value:function(){var t,e;return{sourcePreviewNodes:this.sourcePreviewNodes.size,sourcePreviewNodeOptions:this.sourcePreviewNodeOptions.size,sourceNodeOptions:this.sourceNodeOptions.size,sourceNodes:this.sourceNodes.size,dragStartSourceIds:(null===(t=this.dragStartSourceIds)||void 0===t?void 0:t.length)||0,dropTargetIds:this.dropTargetIds.length,dragEnterTargetIds:this.dragEnterTargetIds.length,dragOverTargetIds:(null===(e=this.dragOverTargetIds)||void 0===e?void 0:e.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 t=this.rootElement;if(void 0!==t){if(t.__isReactDndBackendSetUp)throw new Error("Cannot have two HTML5 backends at the same time.");t.__isReactDndBackendSetUp=!0,this.addEventListeners(t)}}},{key:"teardown",value:function(){var t,e=this.rootElement;void 0!==e&&(e.__isReactDndBackendSetUp=!1,this.removeEventListeners(this.rootElement),this.clearCurrentDragSourceNode(),this.asyncEndDragFrameId&&(null===(t=this.window)||void 0===t||t.cancelAnimationFrame(this.asyncEndDragFrameId)))}},{key:"connectDragPreview",value:function(t,e,n){var r=this;return this.sourcePreviewNodeOptions.set(t,n),this.sourcePreviewNodes.set(t,e),function(){r.sourcePreviewNodes.delete(t),r.sourcePreviewNodeOptions.delete(t)}}},{key:"connectDragSource",value:function(t,e,n){var r=this;this.sourceNodes.set(t,e),this.sourceNodeOptions.set(t,n);var a=function(e){return r.handleDragStart(e,t)},o=function(t){return r.handleSelectStart(t)};return e.setAttribute("draggable","true"),e.addEventListener("dragstart",a),e.addEventListener("selectstart",o),function(){r.sourceNodes.delete(t),r.sourceNodeOptions.delete(t),e.removeEventListener("dragstart",a),e.removeEventListener("selectstart",o),e.setAttribute("draggable","false")}}},{key:"connectDropTarget",value:function(t,e){var n=this,r=function(e){return n.handleDragEnter(e,t)},a=function(e){return n.handleDragOver(e,t)},o=function(e){return n.handleDrop(e,t)};return e.addEventListener("dragenter",r),e.addEventListener("dragover",a),e.addEventListener("drop",o),function(){e.removeEventListener("dragenter",r),e.removeEventListener("dragover",a),e.removeEventListener("drop",o)}}},{key:"addEventListeners",value:function(t){t.addEventListener&&(t.addEventListener("dragstart",this.handleTopDragStart),t.addEventListener("dragstart",this.handleTopDragStartCapture,!0),t.addEventListener("dragend",this.handleTopDragEndCapture,!0),t.addEventListener("dragenter",this.handleTopDragEnter),t.addEventListener("dragenter",this.handleTopDragEnterCapture,!0),t.addEventListener("dragleave",this.handleTopDragLeaveCapture,!0),t.addEventListener("dragover",this.handleTopDragOver),t.addEventListener("dragover",this.handleTopDragOverCapture,!0),t.addEventListener("drop",this.handleTopDrop),t.addEventListener("drop",this.handleTopDropCapture,!0))}},{key:"removeEventListeners",value:function(t){t.removeEventListener&&(t.removeEventListener("dragstart",this.handleTopDragStart),t.removeEventListener("dragstart",this.handleTopDragStartCapture,!0),t.removeEventListener("dragend",this.handleTopDragEndCapture,!0),t.removeEventListener("dragenter",this.handleTopDragEnter),t.removeEventListener("dragenter",this.handleTopDragEnterCapture,!0),t.removeEventListener("dragleave",this.handleTopDragLeaveCapture,!0),t.removeEventListener("dragover",this.handleTopDragOver),t.removeEventListener("dragover",this.handleTopDragOverCapture,!0),t.removeEventListener("drop",this.handleTopDrop),t.removeEventListener("drop",this.handleTopDropCapture,!0))}},{key:"getCurrentSourceNodeOptions",value:function(){var t=this.monitor.getSourceId(),e=this.sourceNodeOptions.get(t);return mA({dropEffect:this.altKeyPressed?"copy":"move"},e||{})}},{key:"getCurrentDropEffect",value:function(){return this.isDraggingNativeItem()?"copy":this.getCurrentSourceNodeOptions().dropEffect}},{key:"getCurrentSourcePreviewNodeOptions",value:function(){var t=this.monitor.getSourceId();return mA({anchorX:.5,anchorY:.5,captureDraggingState:!1},this.sourcePreviewNodeOptions.get(t)||{})}},{key:"isDraggingNativeItem",value:function(){var t=this.monitor.getItemType();return Object.keys(nA).some((function(e){return nA[e]===t}))}},{key:"beginDragNativeItem",value:function(t,e){this.clearCurrentDragSourceNode(),this.currentNativeSource=function(t,e){var n=new cA(oA[t]);return n.loadDataTransfer(e),n}(t,e),this.currentNativeHandle=this.registry.addSource(t,this.currentNativeSource),this.actions.beginDrag([this.currentNativeHandle])}},{key:"setCurrentDragSourceNode",value:function(t){var e=this;this.clearCurrentDragSourceNode(),this.currentDragSourceNode=t,this.mouseMoveTimeoutTimer=setTimeout((function(){var t;return null===(t=e.rootElement)||void 0===t?void 0:t.addEventListener("mousemove",e.endDragIfSourceWasRemovedFromDOM,!0)}),1e3)}},{key:"clearCurrentDragSourceNode",value:function(){var t;return!!this.currentDragSourceNode&&(this.currentDragSourceNode=null,this.rootElement&&(null===(t=this.window)||void 0===t||t.clearTimeout(this.mouseMoveTimeoutTimer||void 0),this.rootElement.removeEventListener("mousemove",this.endDragIfSourceWasRemovedFromDOM,!0)),this.mouseMoveTimeoutTimer=null,!0)}},{key:"handleDragStart",value:function(t,e){t.defaultPrevented||(this.dragStartSourceIds||(this.dragStartSourceIds=[]),this.dragStartSourceIds.unshift(e))}},{key:"handleDragEnter",value:function(t,e){this.dragEnterTargetIds.unshift(e)}},{key:"handleDragOver",value:function(t,e){null===this.dragOverTargetIds&&(this.dragOverTargetIds=[]),this.dragOverTargetIds.unshift(e)}},{key:"handleDrop",value:function(t,e){this.dropTargetIds.unshift(e)}}])&&hA(e.prototype,n),r&&hA(e,r),t}();const vA=function(t,e,n){return new bA(t,e,n)},yA=t=>n.jsx(zM,Object.assign({backend:vA,context:window},{children:t.children}),void 0);y(".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{width:26px;height:26px}.ant-table-wrapper .ant-table-pagination.ant-pagination{margin-top:10px;margin-bottom:10px;padding-top:10px;padding-bottom:10px}.ant-table-wrapper .react-resizable{position:relative;background-clip:padding-box}.ant-table-wrapper .react-resizable-handle{position:absolute;right:-5px;bottom:0;z-index:1;width:10px;height:100%;cursor:col-resize}");var xA=t.forwardRef(((e,r)=>{const a=t.useMemo((()=>{const t=e.extra||{};return{tableConfig:t.tableConfig,rowType:t.rowType,scroll:t.scroll,apiMethod:t.apiMethod,columns:t.columns||[],data:t.data,drag:t.drag,onSelect:t.onSelect,paginationConfig:t.paginationConfig,getCheckboxProps:t.getCheckboxProps,resultFilter:t.resultFilter,getTableSuccessData:t.getTableSuccessData}}),[e.extra]),o=t.useRef();let i=t.useRef(!0);const l=t.useRef({position:["bottomCenter"],size:"small",current:1,total:0,pages:0,pageSize:10,showSizeChanger:!0,orderByInfo:void 0}),c=t.useRef([]),[s,u]=t.useState(a.columns),[d,f]=t.useState(!1),[m,h]=t.useState([]),[g,b]=C.useSetState({selectRowIds:[],selectRowArray:[]}),[v,y]=t.useState({x:void 0,y:330}),x=t.useMemo((()=>a.tableConfig&&a.tableConfig.rowKey?a.tableConfig.rowKey:"id"),[a.tableConfig]),w=t.useCallback((async t=>{let e=!0;f(!0),t&&(void 0!==t.updateSelected&&(e=t.updateSelected,delete t.updateSelected),"not-reset"===t.pagination&&delete t.pagination,o.current={...o.current,...t});try{const n={...o.current};for(let t in l.current){const e=l.current[t];"orderByInfo"===t&&(n.orderByInfo=e),"current"===t&&(n.page=e),"pageSize"===t&&(n.size=n.size||e)}if(t&&t.current&&(n.page=t.current,l.current.current=t.current),a.apiMethod){delete n.current;const t=await a.apiMethod(p.default.pickBy(n,p.default.identity));let r=[];p.default.isArray(t.data.content)&&(!1!==a.paginationConfig?i.current=!0:i.current=!1,r=t.data.content,l.current.total=t.data.total,l.current.pages=t.data.pages),p.default.isArray(t.data)&&(i.current=!1,r=t.data),a.resultFilter&&(r=await a.resultFilter(r)),e&&b((t=>{let e=[...t.selectRowIds],n=[...t.selectRowArray];const a=r=>{if(t.selectRowIds.length)for(let o of r){for(let r of t.selectRowIds)o[x]===r&&(e.push(r),n.push(o));o.children&&a(o.children)}};return a(r),t.selectRowIds=p.default.unionBy(e),t.selectRowArray=p.default.unionBy(n,x),t})),h(r),a.getTableSuccessData&&a.getTableSuccessData(t)}}catch(t){}f(!1)}),[a,x,b]),k={fixed:!0,type:a.rowType,selectedRowKeys:g.selectRowIds,getCheckboxProps:a.getCheckboxProps,onSelectAll:(t,e,n)=>{b((e=>{let r=[...e.selectRowIds],o=[...e.selectRowArray];return t?(r=p.default.uniq([...r,...n.map((t=>t[x]))]),o=p.default.uniqBy([...o,...n],x)):(r=r.filter((t=>!n.some((e=>e[x]===t)))),o=o.filter((t=>!n.some((e=>e[x]===t[x]))))),a.onSelect&&a.onSelect(o,r),e.selectRowIds=r,e.selectRowArray=o,e}))},onSelect:(t,e)=>{b((n=>{let r=[...n.selectRowIds],o=[...n.selectRowArray];return"checkbox"===a.rowType&&(e?(r.push(t[x]),o.push(t)):(r=r.filter((e=>e!==t[x])),o=o.filter((e=>e[x]!==t[x])))),"radio"===a.rowType&&e&&(r=[t[x]],o=[t]),a.onSelect&&a.onSelect(o,r),n.selectRowIds=r,n.selectRowArray=o,n}))}},E=t=>(e,{size:n})=>{u((e=>{const r=[...e];return r[t]={...r[t],width:n.width},c.current=r,r}))},O=t.useCallback(((t,e)=>{h((n=>{let r=JSON.parse(JSON.stringify(n));for(let n of r)if(n[x]===t[x]){n[e]=t[e];break}return r}))}),[x]),S=t.useCallback((async(t,e)=>{const n=m[t],r=LD(m,{$splice:[[t,1],[e,0,n]]});f(!0);try{if(a.drag){const n=JSON.parse(JSON.stringify(r)),o=JSON.parse(JSON.stringify(m)),i=[t,e].sort();!1!==await a.drag.moveRow(t,e,n,o,n.slice(i[0],i[1]+1))&&h(n)}}finally{f(!1)}}),[a.drag,m]);return t.useEffect((()=>{(async()=>{let t=[...a.columns];t.some((t=>"sequence"===t.dataIndex))||t.unshift({width:55,fixed:"left",title:"序号",dataIndex:"sequence",render:(t,e,n)=>{const r=l.current;return Object.keys(r).length?((r.current||0)-1)*(r.pageSize||0)+n+1:n+1}});for(let[e,n]of t.entries()){"RemoteSearch"===n.valueType&&n.remoteConfig&&n.remoteConfig.remoteApi&&(n.valueEnum=await n.remoteConfig.remoteApi());let r={...n,onHeaderCell:t=>({width:t.width,onResize:E(e)}),onCell:(t,e)=>({record:t,dataIndex:n.dataIndex,title:n.title,editable:"function"==typeof n.editable?n.editable(t,e):n.editable,inputType:n.inputType,valueType:n.valueType,valueEnum:n.valueEnum,recordSelectField:n.recordSelectField,controlRender:n.controlRender,formChange:n.formChange,remoteConfig:n.remoteConfig,formItemProps:n.formItemProps,handleSave:O})},a=c.current.find((t=>t.dataIndex===n.dataIndex&&t.title===n.title));a&&(r.width=a.width),t[e]=r}u(t)})()}),[a.columns,O]),t.useEffect((()=>{b((t=>{let e=[];const n=t=>{for(let r of t){for(let t of g.selectRowIds)r[x]===t&&e.push(r);r.children&&n(r.children)}};return g.selectRowIds.length&&(n(m),e=p.default.unionBy([...t.selectRowArray,...e],x)),t.selectRowArray=e,t}))}),[x,m,b,g.selectRowIds]),t.useEffect((()=>{p.default.isArray(a.data)&&h(JSON.parse(JSON.stringify(a.data)))}),[a.data]),t.useEffect((()=>{const t=document.getElementById("slider-menu"),e=document.getElementById("router-render");if(void 0!==a.scroll?.x||void 0!==a.scroll?.y)y((t=>({...t,...a.scroll})));else if(t&&e){let n=parseInt(window.getComputedStyle(e,null).paddingLeft);y((e=>(e.x=document.body.clientWidth-t.clientWidth-(2*n+43),e)))}}),[a.scroll]),t.useEffect((()=>{a.paginationConfig&&(l.current={...l.current,...a.paginationConfig})}),[a.paginationConfig]),t.useImperativeHandle(r,(()=>({setTableLoading:t=>{f(t)},getPages:()=>({...l.current}),getTableList:async(t,e)=>{t&&("not-reset"===t.pagination?t.current=l.current.current:void 0===t.current&&(t.current=1),t.clearSelectIds&&(delete t.clearSelectIds,b((t=>(t.selectRowArray=[],t.selectRowIds=[],t))))),await w(t),e&&e()},setRowSelected:(t,e)=>{let n=t;!0===e&&(n=Array.from(new Set([...g.selectRowIds,...t]))),b({selectRowIds:n})},getSelectIds:()=>g.selectRowIds,clearSelectIds:()=>{b({selectRowIds:[],selectRowArray:[]})},getSelectRowsArray:()=>g.selectRowArray,removeSelectIds:t=>{b({selectRowIds:g.selectRowIds.filter((e=>{let n=!0;for(let r of t)if(r===e){n=!1;break}return n})),selectRowArray:g.selectRowArray.filter((e=>{let n=!0;for(let r of t)if(r===e[x]){n=!1;break}return n}))})},getStaticDataList:()=>JSON.parse(JSON.stringify(m||[])),setStaticDataList:(t,e)=>{if("[object Object]"===Object.prototype.toString.call(t)){let e=t;h(m.map((n=>(n[x]===e[x]&&(n=t),n))))}"[object Array]"===Object.prototype.toString.call(t)&&h(JSON.parse(JSON.stringify(t))),e&&e()}}))),n.jsx(ID,{children:n.jsx(yA,{children:n.jsx(VN,Object.assign({rowKey:"id",rowClassName:"editable-row",loading:d,bordered:!0,components:{header:{cell:LI},body:t.useMemo((()=>({row:Lz,cell:t=>n.jsx(_z,Object.assign({},t,{columns:s}),void 0)})),[s])},onRow:(t,e)=>({index:e,moveRow:S,open:a.drag&&a.drag.open}),columns:s,dataSource:m,rowSelection:a.rowType?k:void 0,pagination:!(!p.default.isFunction(a.apiMethod)||!i.current)&&{size:"small",position:["bottomCenter"],showTotal:t=>`共${t}条`,showSizeChanger:!0,showQuickJumper:!0,...l.current},onChange:(t,e,n)=>{const{order:r}=n;t.orderByInfo=void 0,r&&(t.orderByInfo=`${n.field}:${"ascend"===r?1:-1}`),(t=>{!p.default.isEqual(t,l.current)&&i.current&&(l.current={...l.current,...t},w())})(t)},scroll:v},a.tableConfig),void 0)},void 0)},void 0)}));y("");const wA=t=>{const e={...t};return delete e.outerHeight,n.jsx(Oy,Object.assign({className:"empty-wrap",style:{minHeight:t&&t.outerHeight?t.outerHeight:400},align:"middle",justify:"center"},{children:n.jsx(br,Object.assign({description:"暂无数据"},e),void 0)}),void 0)};y(".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:kA,Paragraph:CA}=dT;var EA=t.forwardRef((function(e,r){const a=t.useRef(null),o=t.useRef(),[i,l]=C.useSetState({saveLoading:!1,selectedRows:[]}),c=t.useMemo((()=>e.tableColumnsList&&e.tableColumnsList.tableConfig&&e.tableColumnsList.tableConfig.rowKey||"id"),[e.tableColumnsList]),s=t.useMemo((()=>{const t=e.width||0;return t>=500&&t<=800?{span:7}:t>800&&t<=1e3?{span:6}:t>1e3&&t<=1200?{span:5}:t>1200?{span:4}:{span:8}}),[e.width]),u=(t,e)=>{if(o.current){let n=[],r=[];"all"===t&&o.current.clearSelectIds(),"odd"===t&&e&&(n=[e[c]],r=i.selectedRows.filter((t=>t[c]!==e[c])),o.current.removeSelectIds(n)),l({selectedRows:r})}},d=t.useCallback((async()=>{if(a.current&&o.current){let t=await a.current.formSubmit();if(t&&Object.keys(t).length){for(let e in t){const n="YYYY-MM-DD HH:mm:ss";g.default(t[e],n,!0).isValid()&&(t[e]=g.default(t[e]).format(n))}t={clearSelectIds:!0,...t},void 0!==e.clearSelectIds&&(t.clearSelectIds=e.clearSelectIds),t.clearSelectIds&&l((t=>(t.selectedRows=[],t))),e.manualParameterChange&&(t=e.manualParameterChange(t)),e.searchCallback?e.searchCallback(t).then((e=>{e&&o.current?.getTableList(t)})):o.current.getTableList(t)}}else o.current?.getTableList()}),[e,l]),p=()=>{if(a.current){let t=[];const n=e.searchNoResetFiled||[];if(e.searchFormList)for(let r of e.searchFormList){if(r.unionConfig)for(let e of r.unionConfig.unionItems)e.name&&!n.includes(e.name)&&t.push(e.name);r.name&&!n.includes(r.name)&&t.push(r.name)}a.current.formReset(t)}d()};return t.useEffect((()=>{e.visible&&(e.autoGetList&&o.current?.getTableList(),e.openSelected&&e.openSelected.visible&&l((t=>(t.selectedRows=e.openSelected?.defaultValues||[],o.current?.setRowSelected(t.selectedRows.map((t=>t[c]))),t))))}),[e.autoGetList,e.openSelected,e.visible,c,l]),t.useImperativeHandle(r,(()=>({...a.current,...o.current,setSavaLoading:t=>{l({saveLoading:t})}}))),n.jsxs(bD,Object.assign({className:"from-table-modal",width:e.width,visible:e.visible,title:e.title||"弹窗",onCancel:e.onCancel,forceRender:!0,maskClosable:!1,footer:null},{children:[e.topExtra,e.searchFormList?n.jsx(AD,{ref:a,rowGridConfig:{gutter:10},colGirdConfig:s,list:(f=e.searchFormList,f?f.map((t=>("Select"===t.componentName&&t.selectData&&t.selectData.length&&(t.selectData.some((t=>"全部"===t.label))||(t.selectData=[{label:"全部",value:""},...t.selectData])),t))):[]),formConfig:e.formConfig,render:()=>e.searchFormList&&e.searchFormList.length?n.jsxs(ZE,Object.assign({size:10},{children:[n.jsx(tf,Object.assign({type:"primary",onClick:()=>{d()}},{children:"查询"}),void 0),n.jsx(tf,Object.assign({className:"btn-reset",onClick:p},{children:"重置"}),void 0)]}),void 0):n.jsx(n.Fragment,{},void 0)},void 0):null,n.jsxs(Oy,Object.assign({},e.rowProps,{children:[e.leftSlot?n.jsx(Py,Object.assign({},e.leftSlot.colProps,{children:e.leftSlot.jsx}),void 0):null,n.jsx(Py,Object.assign({},e.colProps,{children:n.jsxs(Oy,Object.assign({gutter:10},{children:[n.jsx(Py,Object.assign({span:e.openSelected&&e.openSelected.visible?16:24},{children:n.jsx(xA,{ref:o,extra:{rowType:e.tableColumnsList.rowType,apiMethod:e.apiMethod,columns:e.tableColumnsList.list,data:e.data,onSelect:(t,n)=>{((t,n)=>{l({selectedRows:n.map((n=>{let r={};const a=t.find((t=>t[c]===n));if(r[c]=n,e.openSelected&&e.openSelected.fileName&&(r[e.openSelected.fileName]=n),a&&(r=a),e.openSelected){const t=e.openSelected.fileName,a=e.openSelected.defaultValues;if(t&&a){const e=a.find((t=>t[c]===n));e&&(r[t]=e[t])}}return r}))})})(t,n),e.onSelect&&e.onSelect(t,n)},getTableSuccessData:e.getTableSuccessData,tableConfig:e.tableColumnsList.tableConfig,scroll:{x:"max-content"}}},void 0)}),void 0),e.openSelected&&e.openSelected.visible?n.jsx(Py,Object.assign({span:8},{children:n.jsx(Ty,Object.assign({title:"已选列表",size:"small",bodyStyle:{height:e.openSelected.height||330,overflowY:"auto"},extra:n.jsx(kA,Object.assign({onClick:()=>u("all")},{children:"全部移除"}),void 0)},{children:i.selectedRows.length?i.selectedRows.map((t=>{const r=t[c],a=t[e.openSelected?.fileName];return n.jsxs(Oy,Object.assign({gutter:12},{children:[n.jsx(Py,Object.assign({span:11,title:a},{children:n.jsx(CA,Object.assign({ellipsis:!0},{children:a}),void 0)}),void 0),n.jsx(Py,Object.assign({span:9,title:r},{children:n.jsx(CA,Object.assign({ellipsis:!0},{children:r}),void 0)}),void 0),n.jsx(Py,Object.assign({span:4},{children:n.jsx(kA,Object.assign({onClick:()=>u("odd",t)},{children:"移除"}),void 0)}),void 0)]}),r)})):n.jsx(wA,{outerHeight:200},void 0)}),void 0)}),void 0):null]}),void 0)}),void 0),e.rightSlot?n.jsx(Py,Object.assign({},e.rightSlot.colProps,{children:e.rightSlot.jsx}),void 0):null]}),void 0),n.jsx(Oy,Object.assign({className:"from-table-modal-foot",justify:"center"},{children:n.jsx(Py,{children:n.jsxs(ZE,Object.assign({size:20},{children:[e.onCancel?n.jsx(tf,Object.assign({onClick:()=>e.onCancel&&e.onCancel()},{children:"关闭"}),void 0):null,e.onConfirm?n.jsx(tf,Object.assign({type:"primary",loading:i.saveLoading,onClick:()=>{let t=[],n=[];t=e.openSelected&&e.openSelected.visible?i.selectedRows:o.current?.getSelectRowsArray()||[],e.onConfirm&&(o.current&&(n=o.current.getSelectIds()),l({saveLoading:!0}),e.onConfirm(t,n).then((t=>{l({saveLoading:!1}),t&&e.onCancel&&e.onCancel()})).catch((t=>{l({saveLoading:!1}),Oi.warn(t,1.5)})))}},{children:"确定"}),void 0):null]}),void 0)},void 0)}),void 0)]}),void 0);var f})),OA={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"},SA=function(e,n){return t.createElement(Yo,ye(ye({},e),{},{ref:n,icon:OA}))},NA=t.forwardRef(SA);"production"!==process.env.NODE_ENV&&(NA.displayName="LeftCircleFilled");var PA={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"},jA=function(e,n){return t.createElement(Yo,ye(ye({},e),{},{ref:n,icon:PA}))},TA=t.forwardRef(jA);"production"!==process.env.NODE_ENV&&(TA.displayName="RightCircleFilled");y(".quickly-form-modal .ant-modal-body{padding-top:15px}.quickly-form-modal .quickly-form-modal-foot{margin-top:20px}");y(".form-modal .ant-modal-body{padding-top:15px}.form-modal .ant-modal-body .modal-form-height{max-height:580px;padding-right:5px;overflow-x:hidden;overflow-y:auto}.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 DA=t.forwardRef(((e,r)=>{const a=t.useRef(),[o,i]=C.useSetState({loading:!1,saveLoading:!1,disabled:!1}),l=async()=>{let t=await(a.current?.formSubmit());if(t){if(t.endTime&&t.startTime&&g.default(t.endTime).isBefore(t.startTime))return void Oi.warn("生效日期不能大于失效日期",1.5);i({saveLoading:!0});try{let n={};if(t={...t,...e.submitExtraParameters},e.switchTransform)for(let n=0;n<e.switchTransform.length;n++)t[e.switchTransform[n]]?t[e.switchTransform[n]]="1":t[e.switchTransform[n]]="0";if(e.submitRemoveField)for(let n=0;n<e.submitRemoveField.length;n++)t[e.submitRemoveField[n]]&&delete t[e.submitRemoveField[n]];for(let e in t){const n="YYYY-MM-DD HH:mm:ss";g.default(t[e],n,!0).isValid()&&(t[e]=g.default(t[e]).format(n))}if(e.manualParameterChange&&(t=e.manualParameterChange(t)),e.manualVerification&&!e.manualVerification(t))return console.warn("手动验证表单不通过"),void i({saveLoading:!1});if(t=p.default.omitBy(t,p.default.isNil),e.submitApi&&t){if(e.id?(t.id=e.id,n=await e.submitApi(t,"put")):n=await e.submitApi(t,"post"),1===n.code){if(e.onConfirm){if(!1===e.onConfirm(n))return}Oi.success("操作成功",1.5),e.onCancel&&e.onCancel()}i({saveLoading:!1})}else e.onConfirm&&t&&e.onConfirm(t)}catch(t){i({saveLoading:!1})}}};return t.useEffect((()=>{!1===e.visible&&i({saveLoading:!1})}),[e.visible,i]),t.useEffect((()=>{i({disabled:e.disable})}),[e.disable,i]),t.useImperativeHandle(r,(()=>({setFormLoading:t=>{i({loading:t})},setFormSaveLoading:t=>{i({saveLoading:t})},setFormFields:t=>{a.current&&a.current.setFormFields(t)},getFormValues:t=>a.current?.getFormValues(t),setFormValues:t=>{a.current&&a.current.setFormValues(t)},excludeFormSubmitValues:async t=>{if(a.current){const n=e.formList.filter((e=>!t?.includes(e.name)));return await(a.current?.formSubmit(n.map((t=>t.name))))}return{}},getFormSubmitValues:async t=>a.current?await(a.current?.formSubmit(t)):{}}))),n.jsx(bD,Object.assign({className:"form-modal",width:e.width?e.width:600,visible:e.visible,title:e.title||"对话框",onCancel:e.onCancel,destroyOnClose:!0,maskClosable:!1,footer:null},{children:n.jsxs(nC,Object.assign({spinning:o.loading},{children:[n.jsxs("div",Object.assign({className:"modal-form-height"},{children:[e.topRender?e.topRender:null,n.jsx(AD,{ref:a,formConfig:{labelCol:{span:24},...e.formConfig},rowGridConfig:{gutter:[20,0]},colGirdConfig:e.colGirdConfig||{span:12},list:e.formList},void 0),e.children&&e.children]}),void 0),(()=>{const r=(()=>{const t=[n.jsx(tf,Object.assign({onClick:()=>e.onCancel&&e.onCancel()},{children:"关闭"}),-1)];return o.disabled||t.push(n.jsx(tf,Object.assign({type:"primary",loading:o.saveLoading,onClick:l},{children:"提交"}),-2)),t})(),a=t=>n.jsx(Oy,Object.assign({className:"form-modal-foot",justify:"center"},{children:n.jsx(Py,{children:n.jsx(ZE,Object.assign({size:20},{children:t}),void 0)},void 0)}),void 0);if(e.footer)return e.footer;if(e.footBtnList){const{model:n,data:o}=e.footBtnList,i=o.map(((e,n)=>{const{children:r,...a}=e;return t.createElement(tf,{...a,key:n},r)}));if("new"===n)return a(i);if("before"===n)return a([...i,...r]);if("after"===n)return a([...r,...i])}return a(r)})()]}),void 0)}),void 0)}));y('@import "https://at.alicdn.com/t/font_2381668_l6oy3doglyo.css";.icon-selected-modal .avatar-selected{display:flex;align-items:center;justify-content:center;width:36px;height:36px;overflow:hidden;border:2px solid #fff;border-radius:4px;cursor:pointer}.icon-selected-modal .avatar-selected.avatar-selected-bg{border-color:#5860f8}.icon-selected-modal .icon-selected-foot{margin-top:20px}');
38
+ */function sI(t){if("object"==typeof t&&null!==t){var e=t.$$typeof;switch(e){case WD:switch(t=t.type){case JD:case QD:case $D:case GD:case qD:case eI:return t;default:switch(t=t&&t.$$typeof){case ZD:case tI:case aI:case rI:case XD:return t;default:return e}}case YD:return e}}}function uI(t){return sI(t)===QD}var dI={AsyncMode:JD,ConcurrentMode:QD,ContextConsumer:ZD,ContextProvider:XD,Element:WD,ForwardRef:tI,Fragment:$D,Lazy:aI,Memo:rI,Portal:YD,Profiler:GD,StrictMode:qD,Suspense:eI,isAsyncMode:function(t){return uI(t)||sI(t)===JD},isConcurrentMode:uI,isContextConsumer:function(t){return sI(t)===ZD},isContextProvider:function(t){return sI(t)===XD},isElement:function(t){return"object"==typeof t&&null!==t&&t.$$typeof===WD},isForwardRef:function(t){return sI(t)===tI},isFragment:function(t){return sI(t)===$D},isLazy:function(t){return sI(t)===aI},isMemo:function(t){return sI(t)===rI},isPortal:function(t){return sI(t)===YD},isProfiler:function(t){return sI(t)===GD},isStrictMode:function(t){return sI(t)===qD},isSuspense:function(t){return sI(t)===eI},isValidElementType:function(t){return"string"==typeof t||"function"==typeof t||t===$D||t===QD||t===GD||t===qD||t===eI||t===nI||"object"==typeof t&&null!==t&&(t.$$typeof===aI||t.$$typeof===rI||t.$$typeof===XD||t.$$typeof===ZD||t.$$typeof===tI||t.$$typeof===iI||t.$$typeof===lI||t.$$typeof===cI||t.$$typeof===oI)},typeOf:sI},pI=F((function(t,e){"production"!==process.env.NODE_ENV&&function(){var t="function"==typeof Symbol&&Symbol.for,n=t?Symbol.for("react.element"):60103,r=t?Symbol.for("react.portal"):60106,a=t?Symbol.for("react.fragment"):60107,o=t?Symbol.for("react.strict_mode"):60108,i=t?Symbol.for("react.profiler"):60114,l=t?Symbol.for("react.provider"):60109,c=t?Symbol.for("react.context"):60110,s=t?Symbol.for("react.async_mode"):60111,u=t?Symbol.for("react.concurrent_mode"):60111,d=t?Symbol.for("react.forward_ref"):60112,p=t?Symbol.for("react.suspense"):60113,f=t?Symbol.for("react.suspense_list"):60120,m=t?Symbol.for("react.memo"):60115,h=t?Symbol.for("react.lazy"):60116,g=t?Symbol.for("react.block"):60121,b=t?Symbol.for("react.fundamental"):60117,v=t?Symbol.for("react.responder"):60118,y=t?Symbol.for("react.scope"):60119;function x(t){if("object"==typeof t&&null!==t){var e=t.$$typeof;switch(e){case n:var f=t.type;switch(f){case s:case u:case a: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 e}}case r:return e}}}var w=s,k=u,C=c,E=l,O=n,S=d,N=a,P=h,j=m,T=r,D=i,I=o,R=p,M=!1;function z(t){return x(t)===u}e.AsyncMode=w,e.ConcurrentMode=k,e.ContextConsumer=C,e.ContextProvider=E,e.Element=O,e.ForwardRef=S,e.Fragment=N,e.Lazy=P,e.Memo=j,e.Portal=T,e.Profiler=D,e.StrictMode=I,e.Suspense=R,e.isAsyncMode=function(t){return M||(M=!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.")),z(t)||x(t)===s},e.isConcurrentMode=z,e.isContextConsumer=function(t){return x(t)===c},e.isContextProvider=function(t){return x(t)===l},e.isElement=function(t){return"object"==typeof t&&null!==t&&t.$$typeof===n},e.isForwardRef=function(t){return x(t)===d},e.isFragment=function(t){return x(t)===a},e.isLazy=function(t){return x(t)===h},e.isMemo=function(t){return x(t)===m},e.isPortal=function(t){return x(t)===r},e.isProfiler=function(t){return x(t)===i},e.isStrictMode=function(t){return x(t)===o},e.isSuspense=function(t){return x(t)===p},e.isValidElementType=function(t){return"string"==typeof t||"function"==typeof t||t===a||t===u||t===i||t===o||t===p||t===f||"object"==typeof t&&null!==t&&(t.$$typeof===h||t.$$typeof===m||t.$$typeof===l||t.$$typeof===c||t.$$typeof===d||t.$$typeof===b||t.$$typeof===v||t.$$typeof===y||t.$$typeof===g)},e.typeOf=x}()})),fI=F((function(t){"production"===process.env.NODE_ENV?t.exports=dI:t.exports=pI})),mI=Object.getOwnPropertySymbols,hI=Object.prototype.hasOwnProperty,gI=Object.prototype.propertyIsEnumerable;function bI(t){if(null==t)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(t)}var vI=function(){try{if(!Object.assign)return!1;var t=new String("abc");if(t[5]="de","5"===Object.getOwnPropertyNames(t)[0])return!1;for(var e={},n=0;n<10;n++)e["_"+String.fromCharCode(n)]=n;if("0123456789"!==Object.getOwnPropertyNames(e).map((function(t){return e[t]})).join(""))return!1;var r={};return"abcdefghijklmnopqrst".split("").forEach((function(t){r[t]=t})),"abcdefghijklmnopqrst"===Object.keys(Object.assign({},r)).join("")}catch(t){return!1}}()?Object.assign:function(t,e){for(var n,r,a=bI(t),o=1;o<arguments.length;o++){for(var i in n=Object(arguments[o]))hI.call(n,i)&&(a[i]=n[i]);if(mI){r=mI(n);for(var l=0;l<r.length;l++)gI.call(n,r[l])&&(a[r[l]]=n[r[l]])}}return a},yI="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED",xI=function(){};if("production"!==process.env.NODE_ENV){var wI=yI,kI={},CI=Function.call.bind(Object.prototype.hasOwnProperty);xI=function(t){var e="Warning: "+t;"undefined"!=typeof console&&console.error(e);try{throw new Error(e)}catch(t){}}}function EI(t,e,n,r,a){if("production"!==process.env.NODE_ENV)for(var o in t)if(CI(t,o)){var i;try{if("function"!=typeof t[o]){var l=Error((r||"React class")+": "+n+" type `"+o+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof t[o]+"`.");throw l.name="Invariant Violation",l}i=t[o](e,o,r,n,null,wI)}catch(t){i=t}if(!i||i instanceof Error||xI((r||"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 kI)){kI[i.message]=!0;var c=a?a():"";xI("Failed "+n+" type: "+i.message+(null!=c?c:""))}}}EI.resetWarningCache=function(){"production"!==process.env.NODE_ENV&&(kI={})};var OI=EI,SI=Function.call.bind(Object.prototype.hasOwnProperty),NI=function(){};function PI(){return null}"production"!==process.env.NODE_ENV&&(NI=function(t){var e="Warning: "+t;"undefined"!=typeof console&&console.error(e);try{throw new Error(e)}catch(t){}});var jI=function(t,e){var n="function"==typeof Symbol&&Symbol.iterator;var r="<<anonymous>>",a={array:c("array"),bool:c("boolean"),func:c("function"),number:c("number"),object:c("object"),string:c("string"),symbol:c("symbol"),any:l(PI),arrayOf:function(t){return l((function(e,n,r,a,o){if("function"!=typeof t)return new i("Property `"+o+"` of component `"+r+"` has invalid PropType notation inside arrayOf.");var l=e[n];if(!Array.isArray(l))return new i("Invalid "+a+" `"+o+"` of type `"+u(l)+"` supplied to `"+r+"`, expected an array.");for(var c=0;c<l.length;c++){var s=t(l,c,r,a,o+"["+c+"]",yI);if(s instanceof Error)return s}return null}))},element:l((function(e,n,r,a,o){var l=e[n];return t(l)?null:new i("Invalid "+a+" `"+o+"` of type `"+u(l)+"` supplied to `"+r+"`, expected a single ReactElement.")})),elementType:l((function(t,e,n,r,a){var o=t[e];return fI.isValidElementType(o)?null:new i("Invalid "+r+" `"+a+"` of type `"+u(o)+"` supplied to `"+n+"`, expected a single ReactElement type.")})),instanceOf:function(t){return l((function(e,n,a,o,l){if(!(e[n]instanceof t)){var c=t.name||r;return new i("Invalid "+o+" `"+l+"` of type `"+(((s=e[n]).constructor&&s.constructor.name?s.constructor.name:r)+"` supplied to `")+a+"`, expected instance of `"+c+"`.")}var s;return null}))},node:l((function(t,e,n,r,a){return s(t[e])?null:new i("Invalid "+r+" `"+a+"` supplied to `"+n+"`, expected a ReactNode.")})),objectOf:function(t){return l((function(e,n,r,a,o){if("function"!=typeof t)return new i("Property `"+o+"` of component `"+r+"` has invalid PropType notation inside objectOf.");var l=e[n],c=u(l);if("object"!==c)return new i("Invalid "+a+" `"+o+"` of type `"+c+"` supplied to `"+r+"`, expected an object.");for(var s in l)if(SI(l,s)){var d=t(l,s,r,a,o+"."+s,yI);if(d instanceof Error)return d}return null}))},oneOf:function(t){if(!Array.isArray(t))return"production"!==process.env.NODE_ENV&&NI(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."),PI;function e(e,n,r,a,l){for(var c=e[n],s=0;s<t.length;s++)if(o(c,t[s]))return null;var u=JSON.stringify(t,(function(t,e){return"symbol"===d(e)?String(e):e}));return new i("Invalid "+a+" `"+l+"` of value `"+String(c)+"` supplied to `"+r+"`, expected one of "+u+".")}return l(e)},oneOfType:function(t){if(!Array.isArray(t))return"production"!==process.env.NODE_ENV&&NI("Invalid argument supplied to oneOfType, expected an instance of array."),PI;for(var e=0;e<t.length;e++){var n=t[e];if("function"!=typeof n)return NI("Invalid argument supplied to oneOfType. Expected an array of check functions, but received "+p(n)+" at index "+e+"."),PI}return l((function(e,n,r,a,o){for(var l=0;l<t.length;l++)if(null==(0,t[l])(e,n,r,a,o,yI))return null;return new i("Invalid "+a+" `"+o+"` supplied to `"+r+"`.")}))},shape:function(t){return l((function(e,n,r,a,o){var l=e[n],c=u(l);if("object"!==c)return new i("Invalid "+a+" `"+o+"` of type `"+c+"` supplied to `"+r+"`, expected `object`.");for(var s in t){var d=t[s];if(d){var p=d(l,s,r,a,o+"."+s,yI);if(p)return p}}return null}))},exact:function(t){return l((function(e,n,r,a,o){var l=e[n],c=u(l);if("object"!==c)return new i("Invalid "+a+" `"+o+"` of type `"+c+"` supplied to `"+r+"`, expected `object`.");var s=vI({},e[n],t);for(var d in s){var p=t[d];if(!p)return new i("Invalid "+a+" `"+o+"` key `"+d+"` supplied to `"+r+"`.\nBad object: "+JSON.stringify(e[n],null," ")+"\nValid keys: "+JSON.stringify(Object.keys(t),null," "));var f=p(l,d,r,a,o+"."+d,yI);if(f)return f}return null}))}};function o(t,e){return t===e?0!==t||1/t==1/e:t!=t&&e!=e}function i(t){this.message=t,this.stack=""}function l(t){if("production"!==process.env.NODE_ENV)var n={},a=0;function o(o,l,c,s,u,d,p){if(s=s||r,d=d||c,p!==yI){if(e){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]&&a<3&&(NI("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,a++)}}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:t(l,c,s,u,d)}var l=o.bind(null,!1);return l.isRequired=o.bind(null,!0),l}function c(t){return l((function(e,n,r,a,o,l){var c=e[n];return u(c)!==t?new i("Invalid "+a+" `"+o+"` of type `"+d(c)+"` supplied to `"+r+"`, expected `"+t+"`."):null}))}function s(e){switch(typeof e){case"number":case"string":case"undefined":return!0;case"boolean":return!e;case"object":if(Array.isArray(e))return e.every(s);if(null===e||t(e))return!0;var r=function(t){var e=t&&(n&&t[n]||t["@@iterator"]);if("function"==typeof e)return e}(e);if(!r)return!1;var a,o=r.call(e);if(r!==e.entries){for(;!(a=o.next()).done;)if(!s(a.value))return!1}else for(;!(a=o.next()).done;){var i=a.value;if(i&&!s(i[1]))return!1}return!0;default:return!1}}function u(t){var e=typeof t;return Array.isArray(t)?"array":t instanceof RegExp?"object":function(t,e){return"symbol"===t||!!e&&("Symbol"===e["@@toStringTag"]||"function"==typeof Symbol&&e instanceof Symbol)}(e,t)?"symbol":e}function d(t){if(null==t)return""+t;var e=u(t);if("object"===e){if(t instanceof Date)return"date";if(t instanceof RegExp)return"regexp"}return e}function p(t){var e=d(t);switch(e){case"array":case"object":return"an "+e;case"boolean":case"date":case"regexp":return"a "+e;default:return e}}return i.prototype=Error.prototype,a.checkPropTypes=OI,a.resetWarningCache=OI.resetWarningCache,a.PropTypes=a,a};function TI(){}function DI(){}DI.resetWarningCache=TI;var II=F((function(t){if("production"!==process.env.NODE_ENV){var e=fI;t.exports=jI(e.isElement,!0)}else t.exports=function(){function t(t,e,n,r,a,o){if(o!==yI){var i=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw i.name="Invariant Violation",i}}function e(){return t}t.isRequired=t;var n={array:t,bool:t,func:t,number:t,object:t,string:t,symbol:t,any:t,arrayOf:e,element:t,elementType:t,instanceOf:e,node:t,objectOf:e,oneOf:e,oneOfType:e,shape:e,exact:e,checkPropTypes:DI,resetWarningCache:TI};return n.PropTypes=n,n}()})),RI=F((function(t,e){e.__esModule=!0,e.resizableProps=void 0;var n=function(t){return t&&t.__esModule?t:{default:t}}(II);var r={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:n.default.number.isRequired,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:n.default.number.isRequired};e.resizableProps=r})),MI=F((function(t,e){e.__esModule=!0,e.default=void 0;var n=function(t,e){if(!e&&t&&t.__esModule)return t;if(null===t||"object"!=typeof t&&"function"!=typeof t)return{default:t};var n=a(e);if(n&&n.has(t))return n.get(t);var r={},o=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var i in t)if("default"!==i&&Object.prototype.hasOwnProperty.call(t,i)){var l=o?Object.getOwnPropertyDescriptor(t,i):null;l&&(l.get||l.set)?Object.defineProperty(r,i,l):r[i]=t[i]}r.default=t,n&&n.set(t,r);return r}(d.default),r=["children","className","draggableOpts","width","height","handle","handleSize","lockAspectRatio","axis","minConstraints","maxConstraints","onResize","onResizeStop","onResizeStart","resizeHandles","transformScale"];function a(t){if("function"!=typeof WeakMap)return null;var e=new WeakMap,n=new WeakMap;return(a=function(t){return t?n:e})(t)}function o(){return(o=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t}).apply(this,arguments)}function i(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function l(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?i(Object(n),!0).forEach((function(e){c(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):i(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function c(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function s(t,e){return(s=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}var u=function(t){var e,a;function i(){for(var e,n=arguments.length,r=new Array(n),a=0;a<n;a++)r[a]=arguments[a];return(e=t.call.apply(t,[this].concat(r))||this).handleRefs={},e.lastHandleRect=null,e.slack=null,e}a=t,(e=i).prototype=Object.create(a.prototype),e.prototype.constructor=e,s(e,a);var c=i.prototype;return c.componentWillUnmount=function(){this.resetData()},c.resetData=function(){this.lastHandleRect=this.slack=null},c.runConstraints=function(t,e){var n=this.props,r=n.minConstraints,a=n.maxConstraints,o=n.lockAspectRatio;if(!r&&!a&&!o)return[t,e];if(o){var i=this.props.width/this.props.height,l=t-this.props.width,c=e-this.props.height;Math.abs(l)>Math.abs(c*i)?e=t/i:t=e*i}var s=t,u=e,d=this.slack||[0,0],p=d[0],f=d[1];return t+=p,e+=f,r&&(t=Math.max(r[0],t),e=Math.max(r[1],e)),a&&(t=Math.min(a[0],t),e=Math.min(a[1],e)),this.slack=[p+(s-t),f+(u-e)],[t,e]},c.resizeHandler=function(t,e){var n=this;return function(r,a){var o=a.node,i=a.deltaX,l=a.deltaY;"onResizeStart"===t&&n.resetData();var c=("both"===n.props.axis||"x"===n.props.axis)&&"n"!==e&&"s"!==e,s=("both"===n.props.axis||"y"===n.props.axis)&&"e"!==e&&"w"!==e;if(c||s){var u=e[0],d=e[e.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[t]?n.props[t]:null;b&&!("onResize"===t&&!g)&&(null==r.persist||r.persist(),b(r,{node:o,size:{width:f,height:m},handle:e})),"onResizeStop"===t&&n.resetData()}}},c.renderResizeHandle=function(t,e){var r=this.props.handle;if(!r)return n.createElement("span",{className:"react-resizable-handle react-resizable-handle-"+t,ref:e});if("function"==typeof r)return r(t,e);var a=l({ref:e},"string"==typeof r.type?{}:{handleAxis:t});return n.cloneElement(r,a)},c.render=function(){var t=this,e=this.props,a=e.children,i=e.className,c=e.draggableOpts;e.width,e.height,e.handle,e.handleSize,e.lockAspectRatio,e.axis,e.minConstraints,e.maxConstraints,e.onResize,e.onResizeStop,e.onResizeStart;var s=e.resizeHandles;e.transformScale;var u=function(t,e){if(null==t)return{};var n,r,a={},o=Object.keys(t);for(r=0;r<o.length;r++)n=o[r],e.indexOf(n)>=0||(a[n]=t[n]);return a}(e,r);return(0,BD.cloneElement)(a,l(l({},u),{},{className:(i?i+" ":"")+"react-resizable",children:[].concat(a.props.children,s.map((function(e){var r,a=null!=(r=t.handleRefs[e])?r:t.handleRefs[e]=n.createRef();return n.createElement(h.default.DraggableCore,o({},c,{nodeRef:a,key:"resizableHandle-"+e,onStop:t.resizeHandler("onResizeStop",e),onStart:t.resizeHandler("onResizeStart",e),onDrag:t.resizeHandler("onResize",e)}),t.renderResizeHandle(e,a))})))}))},i}(n.Component);e.default=u,u.propTypes=RI.resizableProps,u.defaultProps={axis:"both",handleSize:[20,20],lockAspectRatio:!1,minConstraints:[20,20],maxConstraints:[1/0,1/0],resizeHandles:["se"],transformScale:1}})),zI=F((function(t,e){e.__esModule=!0,e.default=void 0;var n=function(t,e){if(!e&&t&&t.__esModule)return t;if(null===t||"object"!=typeof t&&"function"!=typeof t)return{default:t};var n=l(e);if(n&&n.has(t))return n.get(t);var r={},a=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var o in t)if("default"!==o&&Object.prototype.hasOwnProperty.call(t,o)){var i=a?Object.getOwnPropertyDescriptor(t,o):null;i&&(i.get||i.set)?Object.defineProperty(r,o,i):r[o]=t[o]}r.default=t,n&&n.set(t,r);return r}(d.default),r=i(II),a=i(MI),o=["handle","handleSize","onResize","onResizeStart","onResizeStop","draggableOpts","minConstraints","maxConstraints","lockAspectRatio","axis","width","height","resizeHandles","style","transformScale"];function i(t){return t&&t.__esModule?t:{default:t}}function l(t){if("function"!=typeof WeakMap)return null;var e=new WeakMap,n=new WeakMap;return(l=function(t){return t?n:e})(t)}function c(){return(c=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t}).apply(this,arguments)}function s(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function u(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?s(Object(n),!0).forEach((function(e){p(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):s(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function p(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function f(t,e){return(f=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}var m=function(t){var e,r;function i(){for(var e,n=arguments.length,r=new Array(n),a=0;a<n;a++)r[a]=arguments[a];return(e=t.call.apply(t,[this].concat(r))||this).state={width:e.props.width,height:e.props.height,propsWidth:e.props.width,propsHeight:e.props.height},e.onResize=function(t,n){var r=n.size;e.props.onResize?(null==t.persist||t.persist(),e.setState(r,(function(){return e.props.onResize&&e.props.onResize(t,n)}))):e.setState(r)},e}return r=t,(e=i).prototype=Object.create(r.prototype),e.prototype.constructor=e,f(e,r),i.getDerivedStateFromProps=function(t,e){return e.propsWidth!==t.width||e.propsHeight!==t.height?{width:t.width,height:t.height,propsWidth:t.width,propsHeight:t.height}:null},i.prototype.render=function(){var t=this.props,e=t.handle,r=t.handleSize;t.onResize;var i=t.onResizeStart,l=t.onResizeStop,s=t.draggableOpts,d=t.minConstraints,p=t.maxConstraints,f=t.lockAspectRatio,m=t.axis;t.width,t.height;var h=t.resizeHandles,g=t.style,b=t.transformScale,v=function(t,e){if(null==t)return{};var n,r,a={},o=Object.keys(t);for(r=0;r<o.length;r++)n=o[r],e.indexOf(n)>=0||(a[n]=t[n]);return a}(t,o);return n.createElement(a.default,{axis:m,draggableOpts:s,handle:e,handleSize:r,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);e.default=m,m.propTypes=u(u({},RI.resizableProps),{},{children:r.default.element})})),AI=MI.default;zI.default;const LI=t=>{const{onResize:e,width:r,...a}=t;return r?n.jsx(AI,Object.assign({width:r,height:0,handle:n.jsx("span",{className:"react-resizable-handle",onClick:t=>{t.stopPropagation()}},void 0),onResize:e,draggableOpts:{enableUserSelectHack:!1}},{children:n.jsx("th",Object.assign({},a),void 0)}),void 0):n.jsx("th",Object.assign({},a),void 0)};var _I,FI=t.createContext({dragDropManager:void 0});function VI(t,e){for(var n=arguments.length,r=new Array(n>2?n-2:0),a=2;a<n;a++)r[a-2]=arguments[a];if("production"!==process.env.NODE_ENV&&void 0===e)throw new Error("invariant requires an error message argument");if(!t){var o;if(void 0===e)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(e.replace(/%s/g,(function(){return r[i++]})))).name="Invariant Violation"}throw o.framesToPop=1,o}}!function(t){t.SOURCE="SOURCE",t.TARGET="TARGET"}(_I||(_I={}));var KI="dnd-core/INIT_COORDS",HI="dnd-core/BEGIN_DRAG",BI="dnd-core/PUBLISH_DRAG_SOURCE",UI="dnd-core/HOVER",WI="dnd-core/DROP",YI="dnd-core/END_DRAG";function $I(t,e){return{type:KI,payload:{sourceClientOffset:e||null,clientOffset:t||null}}}function qI(t){return(qI="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function GI(t,e,n){return e.split(".").reduce((function(t,e){return t&&t[e]?t[e]:n||null}),t)}function XI(t,e){return t.filter((function(t){return t!==e}))}function ZI(t){return"object"===qI(t)}function JI(t,e){var n=new Map,r=function(t){n.set(t,n.has(t)?n.get(t)+1:1)};t.forEach(r),e.forEach(r);var a=[];return n.forEach((function(t,e){1===t&&a.push(e)})),a}var QI={type:KI,payload:{clientOffset:null,sourceClientOffset:null}};function tR(t){return function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{publishSource:!0},r=n.publishSource,a=void 0===r||r,o=n.clientOffset,i=n.getSourceClientOffset,l=t.getMonitor(),c=t.getRegistry();t.dispatch($I(o)),eR(e,l,c);var s=aR(e,l);if(null!==s){var u=null;if(o){if(!i)throw new Error("getSourceClientOffset must be defined");nR(i),u=i(s)}t.dispatch($I(o,u));var d=c.getSource(s),p=d.beginDrag(l,s);if(null!=p){rR(p),c.pinSource(s);var f=c.getSourceType(s);return{type:HI,payload:{itemType:f,item:p,sourceId:s,clientOffset:o||null,sourceClientOffset:u||null,isSourcePublic:!!a}}}}else t.dispatch(QI)}}function eR(t,e,n){VI(!e.isDragging(),"Cannot call beginDrag while dragging."),t.forEach((function(t){VI(n.getSource(t),"Expected sourceIds to be registered.")}))}function nR(t){VI("function"==typeof t,"When clientOffset is provided, getSourceClientOffset must be a function.")}function rR(t){VI(ZI(t),"Item must be an object.")}function aR(t,e){for(var n=null,r=t.length-1;r>=0;r--)if(e.canDragSource(t[r])){n=t[r];break}return n}function oR(t){return function(){if(t.getMonitor().isDragging())return{type:BI}}}function iR(t,e){return null===e?null===t:Array.isArray(t)?t.some((function(t){return t===e})):t===e}function lR(t){return function(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=n.clientOffset;cR(e);var a=e.slice(0),o=t.getMonitor(),i=t.getRegistry();sR(a,o,i);var l=o.getItemType();return uR(a,i,l),dR(a,o,i),{type:UI,payload:{targetIds:a,clientOffset:r||null}}}}function cR(t){VI(Array.isArray(t),"Expected targetIds to be an array.")}function sR(t,e,n){VI(e.isDragging(),"Cannot call hover while not dragging."),VI(!e.didDrop(),"Cannot call hover after drop.");for(var r=0;r<t.length;r++){var a=t[r];VI(t.lastIndexOf(a)===r,"Expected targetIds to be unique in the passed array."),VI(n.getTarget(a),"Expected targetIds to be registered.")}}function uR(t,e,n){for(var r=t.length-1;r>=0;r--){var a=t[r];iR(e.getTargetType(a),n)||t.splice(r,1)}}function dR(t,e,n){t.forEach((function(t){n.getTarget(t).hover(e,t)}))}function pR(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function fR(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?pR(Object(n),!0).forEach((function(e){mR(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):pR(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function mR(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function hR(t){return function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=t.getMonitor(),r=t.getRegistry();gR(n);var a=vR(n);a.forEach((function(a,o){var i=bR(a,o,r,n),l={type:WI,payload:{dropResult:fR(fR({},e),i)}};t.dispatch(l)}))}}function gR(t){VI(t.isDragging(),"Cannot call drop while not dragging."),VI(!t.didDrop(),"Cannot call drop twice during one drag operation.")}function bR(t,e,n,r){var a=n.getTarget(t),o=a?a.drop(r,t):void 0;return function(t){VI(void 0===t||ZI(t),"Drop result must either be an object or undefined.")}(o),void 0===o&&(o=0===e?{}:r.getDropResult()),o}function vR(t){var e=t.getTargetIds().filter(t.canDropOnTarget,t);return e.reverse(),e}function yR(t){return function(){var e=t.getMonitor(),n=t.getRegistry();!function(t){VI(t.isDragging(),"Cannot call endDrag while not dragging.")}(e);var r=e.getSourceId();null!=r&&(n.getSource(r,!0).endDrag(e,r),n.unpinSource());return{type:YI}}}function xR(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function wR(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var kR=function(){function t(e,n){var r=this;!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),wR(this,"store",void 0),wR(this,"monitor",void 0),wR(this,"backend",void 0),wR(this,"isSetUp",!1),wR(this,"handleRefCountChange",(function(){var t=r.store.getState().refCount>0;r.backend&&(t&&!r.isSetUp?(r.backend.setup(),r.isSetUp=!0):!t&&r.isSetUp&&(r.backend.teardown(),r.isSetUp=!1))})),this.store=e,this.monitor=n,e.subscribe(this.handleRefCountChange)}var e,n,r;return e=t,(n=[{key:"receiveBackend",value:function(t){this.backend=t}},{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 t=this,e=this.store.dispatch,n=function(t){return{beginDrag:tR(t),publishDragSource:oR(t),hover:lR(t),drop:hR(t),endDrag:yR(t)}}(this);return Object.keys(n).reduce((function(r,a){var o,i=n[a];return r[a]=(o=i,function(){for(var n=arguments.length,r=new Array(n),a=0;a<n;a++)r[a]=arguments[a];var i=o.apply(t,r);void 0!==i&&e(i)}),r}),{})}},{key:"dispatch",value:function(t){this.store.dispatch(t)}}])&&xR(e.prototype,n),r&&xR(e,r),t}();function CR(t){return"Minified Redux error #"+t+"; visit https://redux.js.org/Errors?code="+t+" for the full message or use the non-minified dev environment for full errors. "}var ER="function"==typeof Symbol&&Symbol.observable||"@@observable",OR=function(){return Math.random().toString(36).substring(7).split("").join(".")},SR={INIT:"@@redux/INIT"+OR(),REPLACE:"@@redux/REPLACE"+OR(),PROBE_UNKNOWN_ACTION:function(){return"@@redux/PROBE_UNKNOWN_ACTION"+OR()}};function NR(t){if("object"!=typeof t||null===t)return!1;for(var e=t;null!==Object.getPrototypeOf(e);)e=Object.getPrototypeOf(e);return Object.getPrototypeOf(t)===e}function PR(t){if(void 0===t)return"undefined";if(null===t)return"null";var e=typeof t;switch(e){case"boolean":case"string":case"number":case"symbol":case"function":return e}if(Array.isArray(t))return"array";if(function(t){return t instanceof Date||"function"==typeof t.toDateString&&"function"==typeof t.getDate&&"function"==typeof t.setDate}(t))return"date";if(function(t){return t instanceof Error||"string"==typeof t.message&&t.constructor&&"number"==typeof t.constructor.stackTraceLimit}(t))return"error";var n=function(t){return"function"==typeof t.constructor?t.constructor.name:null}(t);switch(n){case"Symbol":case"Promise":case"WeakMap":case"WeakSet":case"Map":case"Set":return n}return e.slice(8,-1).toLowerCase().replace(/\s/g,"")}function jR(t){var e=typeof t;return"production"!==process.env.NODE_ENV&&(e=PR(t)),e}function TR(t,e,n){var r;if("function"==typeof e&&"function"==typeof n||"function"==typeof n&&"function"==typeof arguments[3])throw new Error("production"===process.env.NODE_ENV?CR(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 e&&void 0===n&&(n=e,e=void 0),void 0!==n){if("function"!=typeof n)throw new Error("production"===process.env.NODE_ENV?CR(1):"Expected the enhancer to be a function. Instead, received: '"+jR(n)+"'");return n(TR)(t,e)}if("function"!=typeof t)throw new Error("production"===process.env.NODE_ENV?CR(2):"Expected the root reducer to be a function. Instead, received: '"+jR(t)+"'");var a=t,o=e,i=[],l=i,c=!1;function s(){l===i&&(l=i.slice())}function u(){if(c)throw new Error("production"===process.env.NODE_ENV?CR(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(t){if("function"!=typeof t)throw new Error("production"===process.env.NODE_ENV?CR(4):"Expected the listener to be a function. Instead, received: '"+jR(t)+"'");if(c)throw new Error("production"===process.env.NODE_ENV?CR(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 e=!0;return s(),l.push(t),function(){if(e){if(c)throw new Error("production"===process.env.NODE_ENV?CR(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.");e=!1,s();var n=l.indexOf(t);l.splice(n,1),i=null}}}function p(t){if(!NR(t))throw new Error("production"===process.env.NODE_ENV?CR(7):"Actions must be plain objects. Instead, the actual type was: '"+jR(t)+"'. 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===t.type)throw new Error("production"===process.env.NODE_ENV?CR(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?CR(9):"Reducers may not dispatch actions.");try{c=!0,o=a(o,t)}finally{c=!1}for(var e=i=l,n=0;n<e.length;n++){(0,e[n])()}return t}function f(t){if("function"!=typeof t)throw new Error("production"===process.env.NODE_ENV?CR(10):"Expected the nextReducer to be a function. Instead, received: '"+jR(t));a=t,p({type:SR.REPLACE})}function m(){var t,e=d;return(t={subscribe:function(t){if("object"!=typeof t||null===t)throw new Error("production"===process.env.NODE_ENV?CR(11):"Expected the observer to be an object. Instead, received: '"+jR(t)+"'");function n(){t.next&&t.next(u())}return n(),{unsubscribe:e(n)}}})[ER]=function(){return this},t}return p({type:SR.INIT}),(r={dispatch:p,subscribe:d,getState:u,replaceReducer:f})[ER]=m,r}function DR(){}"production"!==process.env.NODE_ENV&&"string"==typeof DR.name&&"isCrushed"!==DR.name&&function(t){"undefined"!=typeof console&&"function"==typeof console.error&&console.error(t);try{throw new Error(t)}catch(t){}}('You are currently using minified code outside of NODE_ENV === "production". This means that you are running a slower development build of Redux. You can use loose-envify (https://github.com/zertosh/loose-envify) for browserify or setting mode to production in webpack (https://webpack.js.org/concepts/mode/) to ensure you have the correct code for your production build.');var IR=function(t,e){return t===e};function RR(t,e){return!t&&!e||!(!t||!e)&&(t.x===e.x&&t.y===e.y)}function MR(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:IR;if(t.length!==e.length)return!1;for(var r=0;r<t.length;++r)if(!n(t[r],e[r]))return!1;return!0}function zR(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function AR(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?zR(Object(n),!0).forEach((function(e){LR(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):zR(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function LR(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var _R={initialSourceClientOffset:null,initialClientOffset:null,clientOffset:null};function FR(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:_R,e=arguments.length>1?arguments[1]:void 0,n=e.payload;switch(e.type){case KI:case HI:return{initialSourceClientOffset:n.sourceClientOffset,initialClientOffset:n.clientOffset,clientOffset:n.clientOffset};case UI:return RR(t.clientOffset,n.clientOffset)?t:AR(AR({},t),{},{clientOffset:n.clientOffset});case YI:case WI:return _R;default:return t}}var VR="dnd-core/ADD_SOURCE",KR="dnd-core/ADD_TARGET",HR="dnd-core/REMOVE_SOURCE",BR="dnd-core/REMOVE_TARGET";function UR(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function WR(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?UR(Object(n),!0).forEach((function(e){YR(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):UR(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function YR(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var $R={itemType:null,item:null,sourceId:null,targetIds:[],dropResult:null,didDrop:!1,isSourcePublic:null};function qR(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:$R,e=arguments.length>1?arguments[1]:void 0,n=e.payload;switch(e.type){case HI:return WR(WR({},t),{},{itemType:n.itemType,item:n.item,sourceId:n.sourceId,isSourcePublic:n.isSourcePublic,dropResult:null,didDrop:!1});case BI:return WR(WR({},t),{},{isSourcePublic:!0});case UI:return WR(WR({},t),{},{targetIds:n.targetIds});case BR:return-1===t.targetIds.indexOf(n.targetId)?t:WR(WR({},t),{},{targetIds:XI(t.targetIds,n.targetId)});case WI:return WR(WR({},t),{},{dropResult:n.dropResult,didDrop:!0,targetIds:[]});case YI:return WR(WR({},t),{},{itemType:null,item:null,sourceId:null,dropResult:null,didDrop:!1,isSourcePublic:null,targetIds:[]});default:return t}}function GR(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,e=arguments.length>1?arguments[1]:void 0;switch(e.type){case VR:case KR:return t+1;case HR:case BR:return t-1;default:return t}}var XR=[],ZR=[];function JR(t,e){return t!==XR&&(t===ZR||void 0===e||(n=t,e.filter((function(t){return n.indexOf(t)>-1}))).length>0);var n}function QR(){var t=arguments.length>1?arguments[1]:void 0;switch(t.type){case UI:break;case VR:case KR:case BR:case HR:return XR;case HI:case BI:case YI:case WI:default:return ZR}var e=t.payload,n=e.targetIds,r=void 0===n?[]:n,a=e.prevTargetIds,o=void 0===a?[]:a,i=JI(r,o),l=i.length>0||!MR(r,o);if(!l)return XR;var c=o[o.length-1],s=r[r.length-1];return c!==s&&(c&&i.push(c),s&&i.push(s)),i}function tM(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;return t+1}function eM(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function nM(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?eM(Object(n),!0).forEach((function(e){rM(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):eM(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function rM(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function aM(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=arguments.length>1?arguments[1]:void 0;return{dirtyHandlerIds:QR(t.dirtyHandlerIds,{type:e.type,payload:nM(nM({},e.payload),{},{prevTargetIds:GI(t,"dragOperation.targetIds",[])})}),dragOffset:FR(t.dragOffset,e),refCount:GR(t.refCount,e),dragOperation:qR(t.dragOperation,e),stateId:tM(t.stateId)}}function oM(t,e){return{x:t.x-e.x,y:t.y-e.y}}function iM(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function lM(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}XR.__IS_NONE__=!0,ZR.__IS_ALL__=!0;var cM=function(){function t(e,n){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),lM(this,"store",void 0),lM(this,"registry",void 0),this.store=e,this.registry=n}var e,n,r;return e=t,(n=[{key:"subscribeToStateChange",value:function(t){var e=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{handlerIds:void 0},r=n.handlerIds;VI("function"==typeof t,"listener must be a function."),VI(void 0===r||Array.isArray(r),"handlerIds, when specified, must be an array of strings.");var a=this.store.getState().stateId,o=function(){var n=e.store.getState(),o=n.stateId;try{o===a||o===a+1&&!JR(n.dirtyHandlerIds,r)||t()}finally{a=o}};return this.store.subscribe(o)}},{key:"subscribeToOffsetChange",value:function(t){var e=this;VI("function"==typeof t,"listener must be a function.");var n=this.store.getState().dragOffset;return this.store.subscribe((function(){var r=e.store.getState().dragOffset;r!==n&&(n=r,t())}))}},{key:"canDragSource",value:function(t){if(!t)return!1;var e=this.registry.getSource(t);return VI(e,"Expected to find a valid source. sourceId=".concat(t)),!this.isDragging()&&e.canDrag(this,t)}},{key:"canDropOnTarget",value:function(t){if(!t)return!1;var e=this.registry.getTarget(t);return VI(e,"Expected to find a valid target. targetId=".concat(t)),!(!this.isDragging()||this.didDrop())&&iR(this.registry.getTargetType(t),this.getItemType())&&e.canDrop(this,t)}},{key:"isDragging",value:function(){return Boolean(this.getItemType())}},{key:"isDraggingSource",value:function(t){if(!t)return!1;var e=this.registry.getSource(t,!0);return VI(e,"Expected to find a valid source. sourceId=".concat(t)),!(!this.isDragging()||!this.isSourcePublic())&&this.registry.getSourceType(t)===this.getItemType()&&e.isDragging(this,t)}},{key:"isOverTarget",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{shallow:!1};if(!t)return!1;var n=e.shallow;if(!this.isDragging())return!1;var r=this.registry.getTargetType(t),a=this.getItemType();if(a&&!iR(r,a))return!1;var o=this.getTargetIds();if(!o.length)return!1;var i=o.indexOf(t);return n?i===o.length-1:i>-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 t=this.store.getState().dragOffset,e=t.clientOffset,n=t.initialClientOffset,r=t.initialSourceClientOffset,e&&n&&r?oM(function(t,e){return{x:t.x+e.x,y:t.y+e.y}}(e,r),n):null;var t,e,n,r}},{key:"getDifferenceFromInitialOffset",value:function(){return t=this.store.getState().dragOffset,e=t.clientOffset,n=t.initialClientOffset,e&&n?oM(e,n):null;var t,e,n}}])&&iM(e.prototype,n),r&&iM(e,r),t}(),sM=0;function uM(t){return(uM="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function dM(t,e){e&&Array.isArray(t)?t.forEach((function(t){return dM(t,!1)})):VI("string"==typeof t||"symbol"===uM(t),e?"Type can only be a string, a symbol, or an array of either.":"Type can only be a string or a symbol.")}const pM="undefined"!=typeof global?global:self,fM=pM.MutationObserver||pM.WebKitMutationObserver;function mM(t){return function(){const e=setTimeout(r,0),n=setInterval(r,50);function r(){clearTimeout(e),clearInterval(n),t()}}}const hM="function"==typeof fM?function(t){let e=1;const n=new fM(t),r=document.createTextNode("");return n.observe(r,{characterData:!0}),function(){e=-e,r.data=e}}:mM;class gM{call(){try{this.task&&this.task()}catch(t){this.onError(t)}finally{this.task=null,this.release(this)}}constructor(t,e){this.onError=t,this.release=e,this.task=null}}const bM=new class{enqueueTask(t){const{queue:e,requestFlush:n}=this;e.length||(n(),this.flushing=!0),e[e.length]=t}constructor(){this.queue=[],this.pendingErrors=[],this.flushing=!1,this.index=0,this.capacity=1024,this.flush=()=>{const{queue:t}=this;for(;this.index<t.length;){const e=this.index;if(this.index++,t[e].call(),this.index>this.capacity){for(let e=0,n=t.length-this.index;e<n;e++)t[e]=t[e+this.index];t.length-=this.index,this.index=0}}t.length=0,this.index=0,this.flushing=!1},this.registerPendingError=t=>{this.pendingErrors.push(t),this.requestErrorThrow()},this.requestFlush=hM(this.flush),this.requestErrorThrow=mM((()=>{if(this.pendingErrors.length)throw this.pendingErrors.shift()}))}},vM=new class{create(t){const e=this.freeTasks,n=e.length?e.pop():new gM(this.onError,(t=>e[e.length]=t));return n.task=t,n}constructor(t){this.onError=t,this.freeTasks=[]}}(bM.registerPendingError);function yM(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function xM(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function wM(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var n=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null==n)return;var r,a,o=[],i=!0,l=!1;try{for(n=n.call(t);!(i=(r=n.next()).done)&&(o.push(r.value),!e||o.length!==e);i=!0);}catch(t){l=!0,a=t}finally{try{i||null==n.return||n.return()}finally{if(l)throw a}}return o}(t,e)||function(t,e){if(!t)return;if("string"==typeof t)return kM(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);"Object"===n&&t.constructor&&(n=t.constructor.name);if("Map"===n||"Set"===n)return Array.from(t);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return kM(t,e)}(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function kM(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}function CM(t){var e=(sM++).toString();switch(t){case _I.SOURCE:return"S".concat(e);case _I.TARGET:return"T".concat(e);default:throw new Error("Unknown Handler Role: ".concat(t))}}function EM(t){switch(t[0]){case"S":return _I.SOURCE;case"T":return _I.TARGET;default:VI(!1,"Cannot parse handler ID: ".concat(t))}}function OM(t,e){var n=t.entries(),r=!1;do{var a=n.next(),o=a.done;if(wM(a.value,2)[1]===e)return!0;r=!!o}while(!r);return!1}var SM=function(){function t(e){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),xM(this,"types",new Map),xM(this,"dragSources",new Map),xM(this,"dropTargets",new Map),xM(this,"pinnedSourceId",null),xM(this,"pinnedSource",null),xM(this,"store",void 0),this.store=e}var e,n,r;return e=t,(n=[{key:"addSource",value:function(t,e){dM(t),function(t){VI("function"==typeof t.canDrag,"Expected canDrag to be a function."),VI("function"==typeof t.beginDrag,"Expected beginDrag to be a function."),VI("function"==typeof t.endDrag,"Expected endDrag to be a function.")}(e);var n=this.addHandler(_I.SOURCE,t,e);return this.store.dispatch(function(t){return{type:VR,payload:{sourceId:t}}}(n)),n}},{key:"addTarget",value:function(t,e){dM(t,!0),function(t){VI("function"==typeof t.canDrop,"Expected canDrop to be a function."),VI("function"==typeof t.hover,"Expected hover to be a function."),VI("function"==typeof t.drop,"Expected beginDrag to be a function.")}(e);var n=this.addHandler(_I.TARGET,t,e);return this.store.dispatch(function(t){return{type:KR,payload:{targetId:t}}}(n)),n}},{key:"containsHandler",value:function(t){return OM(this.dragSources,t)||OM(this.dropTargets,t)}},{key:"getSource",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]&&arguments[1];VI(this.isSourceId(t),"Expected a valid source ID.");var n=e&&t===this.pinnedSourceId,r=n?this.pinnedSource:this.dragSources.get(t);return r}},{key:"getTarget",value:function(t){return VI(this.isTargetId(t),"Expected a valid target ID."),this.dropTargets.get(t)}},{key:"getSourceType",value:function(t){return VI(this.isSourceId(t),"Expected a valid source ID."),this.types.get(t)}},{key:"getTargetType",value:function(t){return VI(this.isTargetId(t),"Expected a valid target ID."),this.types.get(t)}},{key:"isSourceId",value:function(t){return EM(t)===_I.SOURCE}},{key:"isTargetId",value:function(t){return EM(t)===_I.TARGET}},{key:"removeSource",value:function(t){var e,n=this;VI(this.getSource(t),"Expected an existing source."),this.store.dispatch(function(t){return{type:HR,payload:{sourceId:t}}}(t)),e=function(){n.dragSources.delete(t),n.types.delete(t)},bM.enqueueTask(vM.create(e))}},{key:"removeTarget",value:function(t){VI(this.getTarget(t),"Expected an existing target."),this.store.dispatch(function(t){return{type:BR,payload:{targetId:t}}}(t)),this.dropTargets.delete(t),this.types.delete(t)}},{key:"pinSource",value:function(t){var e=this.getSource(t);VI(e,"Expected an existing source."),this.pinnedSourceId=t,this.pinnedSource=e}},{key:"unpinSource",value:function(){VI(this.pinnedSource,"No source is pinned at the time."),this.pinnedSourceId=null,this.pinnedSource=null}},{key:"addHandler",value:function(t,e,n){var r=CM(t);return this.types.set(r,e),t===_I.SOURCE?this.dragSources.set(r,n):t===_I.TARGET&&this.dropTargets.set(r,n),r}}])&&yM(e.prototype,n),r&&yM(e,r),t}();function NM(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:void 0,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=arguments.length>3&&void 0!==arguments[3]&&arguments[3],a=PM(r),o=new cM(a,new SM(a)),i=new kR(a,o),l=t(i,e,n);return i.receiveBackend(l),i}function PM(t){var e="undefined"!=typeof window&&window.__REDUX_DEVTOOLS_EXTENSION__;return TR(aM,t&&e&&e({name:"dnd-core",instanceId:"dnd-core"}))}var jM=["children"];function TM(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var n=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null==n)return;var r,a,o=[],i=!0,l=!1;try{for(n=n.call(t);!(i=(r=n.next()).done)&&(o.push(r.value),!e||o.length!==e);i=!0);}catch(t){l=!0,a=t}finally{try{i||null==n.return||n.return()}finally{if(l)throw a}}return o}(t,e)||function(t,e){if(!t)return;if("string"==typeof t)return DM(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);"Object"===n&&t.constructor&&(n=t.constructor.name);if("Map"===n||"Set"===n)return Array.from(t);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return DM(t,e)}(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function DM(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}function IM(t,e){if(null==t)return{};var n,r,a=function(t,e){if(null==t)return{};var n,r,a={},o=Object.keys(t);for(r=0;r<o.length;r++)n=o[r],e.indexOf(n)>=0||(a[n]=t[n]);return a}(t,e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(t);for(r=0;r<o.length;r++)n=o[r],e.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(t,n)&&(a[n]=t[n])}return a}var RM=0,MM=Symbol.for("__REACT_DND_CONTEXT_INSTANCE__"),zM=t.memo((function(e){var r=e.children,a=TM(function(t){if("manager"in t){return[{dragDropManager:t.manager},!1]}var e=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:AM(),n=arguments.length>2?arguments[2]:void 0,r=arguments.length>3?arguments[3]:void 0,a=e;a[MM]||(a[MM]={dragDropManager:NM(t,e,n,r)});return a[MM]}(t.backend,t.context,t.options,t.debugMode),n=!t.context;return[e,n]}(IM(e,jM)),2),o=a[0],i=a[1];return t.useEffect((function(){if(i){var t=AM();return++RM,function(){0==--RM&&(t[MM]=null)}}}),[]),n.jsx(FI.Provider,Object.assign({value:o},{children:r}),void 0)}));function AM(){return"undefined"!=typeof global?global:window}function LM(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function _M(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var FM=!1,VM=!1,KM=function(){function t(e){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),_M(this,"internalMonitor",void 0),_M(this,"sourceId",null),this.internalMonitor=e.getMonitor()}var e,n,r;return e=t,(n=[{key:"receiveHandlerId",value:function(t){this.sourceId=t}},{key:"getHandlerId",value:function(){return this.sourceId}},{key:"canDrag",value:function(){VI(!FM,"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 FM=!0,this.internalMonitor.canDragSource(this.sourceId)}finally{FM=!1}}},{key:"isDragging",value:function(){if(!this.sourceId)return!1;VI(!VM,"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 VM=!0,this.internalMonitor.isDraggingSource(this.sourceId)}finally{VM=!1}}},{key:"subscribeToStateChange",value:function(t,e){return this.internalMonitor.subscribeToStateChange(t,e)}},{key:"isDraggingSource",value:function(t){return this.internalMonitor.isDraggingSource(t)}},{key:"isOverTarget",value:function(t,e){return this.internalMonitor.isOverTarget(t,e)}},{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(t){return this.internalMonitor.subscribeToOffsetChange(t)}},{key:"canDragSource",value:function(t){return this.internalMonitor.canDragSource(t)}},{key:"canDropOnTarget",value:function(t){return this.internalMonitor.canDropOnTarget(t)}},{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()}}])&&LM(e.prototype,n),r&&LM(e,r),t}();function HM(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function BM(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var UM=!1,WM=function(){function t(e){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),BM(this,"internalMonitor",void 0),BM(this,"targetId",null),this.internalMonitor=e.getMonitor()}var e,n,r;return e=t,(n=[{key:"receiveHandlerId",value:function(t){this.targetId=t}},{key:"getHandlerId",value:function(){return this.targetId}},{key:"subscribeToStateChange",value:function(t,e){return this.internalMonitor.subscribeToStateChange(t,e)}},{key:"canDrop",value:function(){if(!this.targetId)return!1;VI(!UM,"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 UM=!0,this.internalMonitor.canDropOnTarget(this.targetId)}finally{UM=!1}}},{key:"isOver",value:function(t){return!!this.targetId&&this.internalMonitor.isOverTarget(this.targetId,t)}},{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()}}])&&HM(e.prototype,n),r&&HM(e,r),t}();function YM(t){if("string"!=typeof t.type){var e=t.type.displayName||t.type.name||"the component";throw new Error("Only native element nodes can now be passed to React DnD connectors."+"You can either wrap ".concat(e," into a <div>, or turn it into a ")+"drag source or a drop target itself.")}}function $M(e){var n={};return Object.keys(e).forEach((function(r){var a=e[r];if(r.endsWith("Ref"))n[r]=e[r];else{var o=function(e){return function(){var n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;if(!t.isValidElement(n)){var a=n;return e(a,r),a}var o=n;return YM(o),GM(o,r?function(t){return e(t,r)}:e)}}(a);n[r]=function(){return o}}})),n}function qM(t,e){"function"==typeof t?t(e):t.current=e}function GM(e,n){var r=e.ref;return VI("string"!=typeof r,"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"),r?t.cloneElement(e,{ref:function(t){qM(r,t),qM(n,t)}}):t.cloneElement(e,{ref:n})}function XM(t){return(XM="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function ZM(t){return null!==t&&"object"===XM(t)&&Object.prototype.hasOwnProperty.call(t,"current")}function JM(t,e,n,r){var a=n?n.call(r,t,e):void 0;if(void 0!==a)return!!a;if(t===e)return!0;if("object"!=typeof t||!t||"object"!=typeof e||!e)return!1;var o=Object.keys(t),i=Object.keys(e);if(o.length!==i.length)return!1;for(var l=Object.prototype.hasOwnProperty.bind(e),c=0;c<o.length;c++){var s=o[c];if(!l(s))return!1;var u=t[s],d=e[s];if(!1===(a=n?n.call(r,u,d,s):void 0)||void 0===a&&u!==d)return!1}return!0}function QM(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function tz(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var ez=function(){function t(e){var n=this;!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),tz(this,"hooks",$M({dragSource:function(t,e){n.clearDragSource(),n.dragSourceOptions=e||null,ZM(t)?n.dragSourceRef=t:n.dragSourceNode=t,n.reconnectDragSource()},dragPreview:function(t,e){n.clearDragPreview(),n.dragPreviewOptions=e||null,ZM(t)?n.dragPreviewRef=t:n.dragPreviewNode=t,n.reconnectDragPreview()}})),tz(this,"handlerId",null),tz(this,"dragSourceRef",null),tz(this,"dragSourceNode",void 0),tz(this,"dragSourceOptionsInternal",null),tz(this,"dragSourceUnsubscribe",void 0),tz(this,"dragPreviewRef",null),tz(this,"dragPreviewNode",void 0),tz(this,"dragPreviewOptionsInternal",null),tz(this,"dragPreviewUnsubscribe",void 0),tz(this,"lastConnectedHandlerId",null),tz(this,"lastConnectedDragSource",null),tz(this,"lastConnectedDragSourceOptions",null),tz(this,"lastConnectedDragPreview",null),tz(this,"lastConnectedDragPreviewOptions",null),tz(this,"backend",void 0),this.backend=e}var e,n,r;return e=t,(n=[{key:"receiveHandlerId",value:function(t){this.handlerId!==t&&(this.handlerId=t,this.reconnect())}},{key:"connectTarget",get:function(){return this.dragSource}},{key:"dragSourceOptions",get:function(){return this.dragSourceOptionsInternal},set:function(t){this.dragSourceOptionsInternal=t}},{key:"dragPreviewOptions",get:function(){return this.dragPreviewOptionsInternal},set:function(t){this.dragPreviewOptionsInternal=t}},{key:"reconnect",value:function(){this.reconnectDragSource(),this.reconnectDragPreview()}},{key:"reconnectDragSource",value:function(){var t=this.dragSource,e=this.didHandlerIdChange()||this.didConnectedDragSourceChange()||this.didDragSourceOptionsChange();e&&this.disconnectDragSource(),this.handlerId&&(t?e&&(this.lastConnectedHandlerId=this.handlerId,this.lastConnectedDragSource=t,this.lastConnectedDragSourceOptions=this.dragSourceOptions,this.dragSourceUnsubscribe=this.backend.connectDragSource(this.handlerId,t,this.dragSourceOptions)):this.lastConnectedDragSource=t)}},{key:"reconnectDragPreview",value:function(){var t=this.dragPreview,e=this.didHandlerIdChange()||this.didConnectedDragPreviewChange()||this.didDragPreviewOptionsChange();e&&this.disconnectDragPreview(),this.handlerId&&(t?e&&(this.lastConnectedHandlerId=this.handlerId,this.lastConnectedDragPreview=t,this.lastConnectedDragPreviewOptions=this.dragPreviewOptions,this.dragPreviewUnsubscribe=this.backend.connectDragPreview(this.handlerId,t,this.dragPreviewOptions)):this.lastConnectedDragPreview=t)}},{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!JM(this.lastConnectedDragSourceOptions,this.dragSourceOptions)}},{key:"didDragPreviewOptionsChange",value:function(){return!JM(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}}])&&QM(e.prototype,n),r&&QM(e,r),t}();function nz(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function rz(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var az=function(){function t(e){var n=this;!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),rz(this,"hooks",$M({dropTarget:function(t,e){n.clearDropTarget(),n.dropTargetOptions=e,ZM(t)?n.dropTargetRef=t:n.dropTargetNode=t,n.reconnect()}})),rz(this,"handlerId",null),rz(this,"dropTargetRef",null),rz(this,"dropTargetNode",void 0),rz(this,"dropTargetOptionsInternal",null),rz(this,"unsubscribeDropTarget",void 0),rz(this,"lastConnectedHandlerId",null),rz(this,"lastConnectedDropTarget",null),rz(this,"lastConnectedDropTargetOptions",null),rz(this,"backend",void 0),this.backend=e}var e,n,r;return e=t,(n=[{key:"connectTarget",get:function(){return this.dropTarget}},{key:"reconnect",value:function(){var t=this.didHandlerIdChange()||this.didDropTargetChange()||this.didOptionsChange();t&&this.disconnectDropTarget();var e=this.dropTarget;this.handlerId&&(e?t&&(this.lastConnectedHandlerId=this.handlerId,this.lastConnectedDropTarget=e,this.lastConnectedDropTargetOptions=this.dropTargetOptions,this.unsubscribeDropTarget=this.backend.connectDropTarget(this.handlerId,e,this.dropTargetOptions)):this.lastConnectedDropTarget=e)}},{key:"receiveHandlerId",value:function(t){t!==this.handlerId&&(this.handlerId=t,this.reconnect())}},{key:"dropTargetOptions",get:function(){return this.dropTargetOptionsInternal},set:function(t){this.dropTargetOptionsInternal=t}},{key:"didHandlerIdChange",value:function(){return this.lastConnectedHandlerId!==this.handlerId}},{key:"didDropTargetChange",value:function(){return this.lastConnectedDropTarget!==this.dropTarget}},{key:"didOptionsChange",value:function(){return!JM(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}}])&&nz(e.prototype,n),r&&nz(e,r),t}();var oz="undefined"!=typeof window?t.useLayoutEffect:t.useEffect;function iz(t){return(iz="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function lz(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function cz(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var sz=function(){function t(e,n,r){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),cz(this,"spec",void 0),cz(this,"monitor",void 0),cz(this,"connector",void 0),this.spec=e,this.monitor=n,this.connector=r}var e,n,r;return e=t,(n=[{key:"beginDrag",value:function(){var t,e=this.spec,n=this.monitor;return null!==(t="object"===iz(e.item)?e.item:"function"==typeof e.item?e.item(n):{})&&void 0!==t?t:null}},{key:"canDrag",value:function(){var t=this.spec,e=this.monitor;return"boolean"==typeof t.canDrag?t.canDrag:"function"!=typeof t.canDrag||t.canDrag(e)}},{key:"isDragging",value:function(t,e){var n=this.spec,r=this.monitor,a=n.isDragging;return a?a(r):e===t.getSourceId()}},{key:"endDrag",value:function(){var t=this.spec,e=this.monitor,n=this.connector,r=t.end;r&&r(e.getItem(),e),n.reconnect()}}])&&lz(e.prototype,n),r&&lz(e,r),t}();function uz(){var e=t.useContext(FI).dragDropManager;return VI(null!=e,"Expected drag drop context"),e}function dz(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var n=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null==n)return;var r,a,o=[],i=!0,l=!1;try{for(n=n.call(t);!(i=(r=n.next()).done)&&(o.push(r.value),!e||o.length!==e);i=!0);}catch(t){l=!0,a=t}finally{try{i||null==n.return||n.return()}finally{if(l)throw a}}return o}(t,e)||function(t,e){if(!t)return;if("string"==typeof t)return pz(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);"Object"===n&&t.constructor&&(n=t.constructor.name);if("Map"===n||"Set"===n)return Array.from(t);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return pz(t,e)}(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function pz(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}function fz(e,n,r){var a=uz(),o=function(e,n,r){var a=t.useMemo((function(){return new sz(e,n,r)}),[n,r]);return t.useEffect((function(){a.spec=e}),[e]),a}(e,n,r),i=function(e){return t.useMemo((function(){var t=e.type;return VI(null!=t,"spec.type must be defined"),t}),[e])}(e);oz((function(){if(null!=i){var t=dz(function(t,e,n){var r=n.getRegistry(),a=r.addSource(t,e);return[a,function(){return r.removeSource(a)}]}(i,o,a),2),e=t[0],l=t[1];return n.receiveHandlerId(e),r.receiveHandlerId(e),l}}),[a,n,r,o,i])}function mz(t){return function(t){if(Array.isArray(t))return hz(t)}(t)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||function(t,e){if(!t)return;if("string"==typeof t)return hz(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);"Object"===n&&t.constructor&&(n=t.constructor.name);if("Map"===n||"Set"===n)return Array.from(t);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return hz(t,e)}(t)||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 hz(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}function gz(e,n){var r=mz(n||[]);return null==n&&"function"!=typeof e&&r.push(e),t.useMemo((function(){return"function"==typeof e?e():e}),r)}var bz=function t(e,n){if(e===n)return!0;if(e&&n&&"object"==typeof e&&"object"==typeof n){if(e.constructor!==n.constructor)return!1;var r,a,o;if(Array.isArray(e)){if((r=e.length)!=n.length)return!1;for(a=r;0!=a--;)if(!t(e[a],n[a]))return!1;return!0}if(e.constructor===RegExp)return e.source===n.source&&e.flags===n.flags;if(e.valueOf!==Object.prototype.valueOf)return e.valueOf()===n.valueOf();if(e.toString!==Object.prototype.toString)return e.toString()===n.toString();if((r=(o=Object.keys(e)).length)!==Object.keys(n).length)return!1;for(a=r;0!=a--;)if(!Object.prototype.hasOwnProperty.call(n,o[a]))return!1;for(a=r;0!=a--;){var i=o[a];if(!t(e[i],n[i]))return!1}return!0}return e!=e&&n!=n};function vz(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var n=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null==n)return;var r,a,o=[],i=!0,l=!1;try{for(n=n.call(t);!(i=(r=n.next()).done)&&(o.push(r.value),!e||o.length!==e);i=!0);}catch(t){l=!0,a=t}finally{try{i||null==n.return||n.return()}finally{if(l)throw a}}return o}(t,e)||function(t,e){if(!t)return;if("string"==typeof t)return yz(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);"Object"===n&&t.constructor&&(n=t.constructor.name);if("Map"===n||"Set"===n)return Array.from(t);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return yz(t,e)}(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function yz(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}function xz(e,n,r){var a=vz(t.useState((function(){return n(e)})),2),o=a[0],i=a[1],l=t.useCallback((function(){var t=n(e);bz(o,t)||(i(t),r&&r())}),[o,e,r]);return oz(l),[o,l]}function wz(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var n=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null==n)return;var r,a,o=[],i=!0,l=!1;try{for(n=n.call(t);!(i=(r=n.next()).done)&&(o.push(r.value),!e||o.length!==e);i=!0);}catch(t){l=!0,a=t}finally{try{i||null==n.return||n.return()}finally{if(l)throw a}}return o}(t,e)||function(t,e){if(!t)return;if("string"==typeof t)return kz(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);"Object"===n&&t.constructor&&(n=t.constructor.name);if("Map"===n||"Set"===n)return Array.from(t);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return kz(t,e)}(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function kz(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}function Cz(t,e,n){return function(t,e,n){var r=wz(xz(t,e,n),2),a=r[0],o=r[1];return oz((function(){var e=t.getHandlerId();if(null!=e)return t.subscribeToStateChange(o,{handlerIds:[e]})}),[t,o]),a}(e,t||function(){return{}},(function(){return n.reconnect()}))}function Ez(e){return t.useMemo((function(){return e.hooks.dragSource()}),[e])}function Oz(e){return t.useMemo((function(){return e.hooks.dragPreview()}),[e])}function Sz(e,n){var r=gz(e,n);VI(!r.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 a,o=(a=uz(),t.useMemo((function(){return new KM(a)}),[a])),i=function(e,n){var r=uz(),a=t.useMemo((function(){return new ez(r.getBackend())}),[r]);return oz((function(){return a.dragSourceOptions=e||null,a.reconnect(),function(){return a.disconnectDragSource()}}),[a,e]),oz((function(){return a.dragPreviewOptions=n||null,a.reconnect(),function(){return a.disconnectDragPreview()}}),[a,n]),a}(r.options,r.previewOptions);return fz(r,o,i),[Cz(r.collect,o,i),Ez(i),Oz(i)]}function Nz(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function Pz(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var jz=function(){function t(e,n){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),Pz(this,"spec",void 0),Pz(this,"monitor",void 0),this.spec=e,this.monitor=n}var e,n,r;return e=t,(n=[{key:"canDrop",value:function(){var t=this.spec,e=this.monitor;return!t.canDrop||t.canDrop(e.getItem(),e)}},{key:"hover",value:function(){var t=this.spec,e=this.monitor;t.hover&&t.hover(e.getItem(),e)}},{key:"drop",value:function(){var t=this.spec,e=this.monitor;if(t.drop)return t.drop(e.getItem(),e)}}])&&Nz(e.prototype,n),r&&Nz(e,r),t}();function Tz(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var n=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null==n)return;var r,a,o=[],i=!0,l=!1;try{for(n=n.call(t);!(i=(r=n.next()).done)&&(o.push(r.value),!e||o.length!==e);i=!0);}catch(t){l=!0,a=t}finally{try{i||null==n.return||n.return()}finally{if(l)throw a}}return o}(t,e)||function(t,e){if(!t)return;if("string"==typeof t)return Dz(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);"Object"===n&&t.constructor&&(n=t.constructor.name);if("Map"===n||"Set"===n)return Array.from(t);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return Dz(t,e)}(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Dz(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}function Iz(e,n,r){var a=uz(),o=function(e,n){var r=t.useMemo((function(){return new jz(e,n)}),[n]);return t.useEffect((function(){r.spec=e}),[e]),r}(e,n),i=function(e){var n=e.accept;return t.useMemo((function(){return VI(null!=e.accept,"accept must be defined"),Array.isArray(n)?n:[n]}),[n])}(e);oz((function(){var t=Tz(function(t,e,n){var r=n.getRegistry(),a=r.addTarget(t,e);return[a,function(){return r.removeTarget(a)}]}(i,o,a),2),e=t[0],l=t[1];return n.receiveHandlerId(e),r.receiveHandlerId(e),l}),[a,n,o,r,i.map((function(t){return t.toString()})).join("|")])}function Rz(e){return t.useMemo((function(){return e.hooks.dropTarget()}),[e])}function Mz(e,n){var r,a=gz(e,n),o=(r=uz(),t.useMemo((function(){return new WM(r)}),[r])),i=function(e){var n=uz(),r=t.useMemo((function(){return new az(n.getBackend())}),[n]);return oz((function(){return r.dropTargetOptions=e||null,r.reconnect(),function(){return r.disconnectDropTarget()}}),[e]),r}(a.options);return Iz(a,o,i),[Cz(a.collect,o,i),Rz(i)]}y('.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;position:relative;min-width:50px;min-height:20px}.editable-row:hover .editable-cell-value-wrap:after,[data-theme=dark] .editable-row:hover .editable-cell-value-wrap:after{content:"";position:absolute;left:0;right:0;top:0;bottom:0;z-index:1;border:1px dashed #5860f8}');const{Option:zz}=Kd,Az=d.default.createContext(null),Lz=({open:e,index:r,moveRow:a,className:o,style:i,...l})=>{const[c]=zk.useForm(),s=t.useRef(null),[{isOver:u,dropClassName:d},p]=Mz({accept:"DraggableBodyRow",collect:t=>{const{index:e}=t.getItem()||{};return e===r?{}:{isOver:t.isOver(),dropClassName:e<r?" drop-over-downward":" drop-over-upward"}},drop:t=>{a(t.index,r)}}),[,f]=Sz({type:"DraggableBodyRow",item:{index:r},collect:t=>({isDragging:t.isDragging()})});return e&&p(f(s)),n.jsx(zk,Object.assign({size:"small",component:!1,form:c},{children:n.jsx(Az.Provider,Object.assign({value:c},{children:n.jsx("tr",Object.assign({ref:s,className:`${o}${u?d:""}`,style:{cursor:e?"move":"auto",...i}},l),void 0)}),void 0)}),void 0)},_z=({columns:e,record:r,dataIndex:a,title:o,editable:i,inputType:l,valueType:c,valueEnum:s,recordSelectField:u,controlRender:d,formChange:f,remoteConfig:m,children:h,formItemProps:b,handleSave:v,...y})=>{const x=t.useContext(Az),[w,k]=t.useState(!1),[C,E]=t.useState(!1),[O,S]=t.useState({}),N=t.useRef(null);t.useEffect((()=>{w&&N.current.focus()}),[w]);const P=(t,e,n,r)=>{r&&(E(!0),r(t,n).then((t=>{E(!1),e&&S({[e]:t})})))},j=()=>{T()},T=()=>{k(!1)},D=()=>{void 0!==r[a]&&("DatePicker"!==c&&"DateTimePicker"!==c||(r[a]=g.default(r[a])),"status"===a&&(r[a]=String(r[a]))),k(!w),x.setFieldsValue({[a]:r[a]})},I=t=>{const e={DateTimePicker:"YYYY-MM-DD HH:mm:ss",DatePicker:"YYYY-MM-DD"};return Object.keys(e).includes(c)&&t[a]&&(t[a]=t[a].format(e[c])),t},R=()=>{if(c&&a){if(s&&("Select"===c||"AutoComplete"===c)||"RemoteSearch"===c)return CD(s,r[a]);if(r[u]&&"RecordSelect"===c)return CD(r[u],r[a]);if(g.default.isMoment(r[a]))return I(r)[a]}return h},M=(t,e)=>{let o=null;const i=(t,e)=>{let n="";const r=function(t){for(let e of t)if(e)if(kD({data:e,type:"String"}))n+=e;else{const t=e.props.children;kD({data:t,type:"Object"})&&r([t]),kD({data:t,type:"Array"})&&r(t),kD({data:t,type:"String"})&&(n+=t)}};return r([e.children]),n.toLowerCase().indexOf(t.toLowerCase())>=0},c=t=>{if(p.default.isArray(t))return t.map(((t,e)=>n.jsx(zz,Object.assign({value:t.value},{children:t.label}),e)))};switch(t){case"RecordSelect":o=n.jsx(Kd,Object.assign({ref:N,open:w,allowClear:!0,showSearch:!0,dropdownMatchSelectWidth:!1,placeholder:e,onChange:z,onBlur:j,optionFilterProp:"children",filterOption:i},{children:c(r[u])}),void 0);break;case"Select":o=n.jsx(Kd,Object.assign({ref:N,open:w,dropdownMatchSelectWidth:!1,onChange:z,onBlur:j,placeholder:e},{children:c(s)}),void 0);break;case"DatePicker":o=n.jsx(zw,{ref:N,open:w,onChange:z,onBlur:j,placeholder:e},void 0);break;case"DateTimePicker":o=n.jsx(zw,{ref:N,open:w,onChange:z,onBlur:j,placeholder:e,showTime:!0},void 0);break;case"AutoComplete":o=n.jsx(Kd,Object.assign({ref:N,open:w,allowClear:!0,showSearch:!0,dropdownMatchSelectWidth:!1,placeholder:e,onChange:z,onBlur:j,optionFilterProp:"children",filterOption:i},{children:c(s)}),void 0);break;case"RemoteSearch":let t=s;O[a]&&(t=O[a]),o=n.jsx(Kd,Object.assign({ref:N,open:w,mode:m.remoteMode,placeholder:e,notFoundContent:C?n.jsx(nC,{size:"small"},void 0):null,dropdownMatchSelectWidth:!1,filterOption:!1,allowClear:!0,showSearch:!0,onChange:z,onBlur:j,onFocus:()=>P(void 0,a,r,m.remoteApi),onSearch:t=>P(t,a,r,m.remoteApi)},{children:a&&c(t)}),void 0);break;default:o=n.jsx(sx,{ref:N,onPressEnter:z,onBlur:z,placeholder:e,type:l||"text"},void 0)}return o},z=async()=>{try{const t=await x.validateFields();let e={...r,...t};e[a]=e[a]||void 0,e=I(e),f&&(e=await f(e)||e),r[a]!==e[a]&&v(e,a),T()}catch(t){console.log("保存表单字段失败:",t)}};let A=h;return A=i?w?n.jsx(zk.Item,Object.assign({style:{margin:0},name:a,rules:b?b.rules:void 0},{children:M(c,o)}),void 0):n.jsx("div",Object.assign({className:"editable-cell-value-wrap",onClick:D},{children:R()}),void 0):R(),d&&(A=d(r,A)),n.jsx("td",Object.assign({},y,{title:r&&r[a]},{children:A}),void 0)};function Fz(t){var e=null;return function(){return null==e&&(e=t()),e}}function Vz(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function Kz(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var Hz=function(){function t(e){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),Kz(this,"entered",[]),Kz(this,"isNodeInDocument",void 0),this.isNodeInDocument=e}var e,n,r;return e=t,(n=[{key:"enter",value:function(t){var e=this,n=this.entered.length;return this.entered=function(t,e){var n=new Set,r=function(t){return n.add(t)};t.forEach(r),e.forEach(r);var a=[];return n.forEach((function(t){return a.push(t)})),a}(this.entered.filter((function(n){return e.isNodeInDocument(n)&&(!n.contains||n.contains(t))})),[t]),0===n&&this.entered.length>0}},{key:"leave",value:function(t){var e,n,r=this.entered.length;return this.entered=(e=this.entered.filter(this.isNodeInDocument),n=t,e.filter((function(t){return t!==n}))),r>0&&0===this.entered.length}},{key:"reset",value:function(){this.entered=[]}}])&&Vz(e.prototype,n),r&&Vz(e,r),t}(),Bz=Fz((function(){return/firefox/i.test(navigator.userAgent)})),Uz=Fz((function(){return Boolean(window.safari)}));function Wz(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function Yz(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var $z=function(){function t(e,n){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),Yz(this,"xs",void 0),Yz(this,"ys",void 0),Yz(this,"c1s",void 0),Yz(this,"c2s",void 0),Yz(this,"c3s",void 0);for(var r=e.length,a=[],o=0;o<r;o++)a.push(o);a.sort((function(t,n){return e[t]<e[n]?-1:1}));for(var i,l,c=[],s=[],u=0;u<r-1;u++)i=e[u+1]-e[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=[],y=[],x=0;x<d.length-1;x++){b=s[x];var w=d[x],k=1/c[x],C=w+d[x+1]-b-b;v.push((b-w-C)*k),y.push(C*k*k)}this.xs=e,this.ys=n,this.c1s=d,this.c2s=v,this.c3s=y}var e,n,r;return e=t,(n=[{key:"interpolate",value:function(t){var e=this.xs,n=this.ys,r=this.c1s,a=this.c2s,o=this.c3s,i=e.length-1;if(t===e[i])return n[i];for(var l,c=0,s=o.length-1;c<=s;){var u=e[l=Math.floor(.5*(c+s))];if(u<t)c=l+1;else{if(!(u>t))return n[l];s=l-1}}var d=t-e[i=Math.max(0,s)],p=d*d;return n[i]+r[i]*d+a[i]*p+o[i]*d*p}}])&&Wz(e.prototype,n),r&&Wz(e,r),t}();function qz(t){var e=1===t.nodeType?t:t.parentElement;if(!e)return null;var n=e.getBoundingClientRect(),r=n.top;return{x:n.left,y:r}}function Gz(t){return{x:t.clientX,y:t.clientY}}function Xz(t,e,n,r,a){var o,i,l="IMG"===(o=e).nodeName&&(Bz()||!(null!==(i=document.documentElement)&&void 0!==i&&i.contains(o))),c=qz(l?t:e),s={x:n.x-c.x,y:n.y-c.y},u=t.offsetWidth,d=t.offsetHeight,p=r.anchorX,f=r.anchorY,m=function(t,e,n,r){var a=t?e.width:n,o=t?e.height:r;return Uz()&&t&&(o/=window.devicePixelRatio,a/=window.devicePixelRatio),{dragPreviewWidth:a,dragPreviewHeight:o}}(l,e,u,d),h=m.dragPreviewWidth,g=m.dragPreviewHeight,b=a.offsetX,v=a.offsetY,y=0===v||v;return{x:0===b||b?b:new $z([0,.5,1],[s.x,s.x/u*h,s.x+h-u]).interpolate(p),y:y?v:function(){var t=new $z([0,.5,1],[s.y,s.y/d*g,s.y+g-d]).interpolate(f);return Uz()&&l&&(t+=(window.devicePixelRatio-1)*g),t}()}}var Zz,Jz="__NATIVE_FILE__",Qz="__NATIVE_URL__",tA="__NATIVE_TEXT__",eA="__NATIVE_HTML__",nA=Object.freeze({__proto__:null,FILE:Jz,URL:Qz,TEXT:tA,HTML:eA});function rA(t,e,n){var r=e.reduce((function(e,n){return e||t.getData(n)}),"");return null!=r?r:n}function aA(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var oA=(aA(Zz={},Jz,{exposeProperties:{files:function(t){return Array.prototype.slice.call(t.files)},items:function(t){return t.items},dataTransfer:function(t){return t}},matchesTypes:["Files"]}),aA(Zz,eA,{exposeProperties:{html:function(t,e){return rA(t,e,"")},dataTransfer:function(t){return t}},matchesTypes:["Html","text/html"]}),aA(Zz,Qz,{exposeProperties:{urls:function(t,e){return rA(t,e,"").split("\n")},dataTransfer:function(t){return t}},matchesTypes:["Url","text/uri-list"]}),aA(Zz,tA,{exposeProperties:{text:function(t,e){return rA(t,e,"")},dataTransfer:function(t){return t}},matchesTypes:["Text","text/plain"]}),Zz);function iA(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function lA(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var cA=function(){function t(e){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),lA(this,"item",void 0),lA(this,"config",void 0),this.config=e,this.item={},this.initializeExposedProperties()}var e,n,r;return e=t,(n=[{key:"initializeExposedProperties",value:function(){var t=this;Object.keys(this.config.exposeProperties).forEach((function(e){Object.defineProperty(t.item,e,{configurable:!0,enumerable:!0,get:function(){return console.warn("Browser doesn't allow reading \"".concat(e,'" until the drop event.')),null}})}))}},{key:"loadDataTransfer",value:function(t){var e=this;if(t){var n={};Object.keys(this.config.exposeProperties).forEach((function(r){n[r]={value:e.config.exposeProperties[r](t,e.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(t,e){return e===t.getSourceId()}},{key:"endDrag",value:function(){}}])&&iA(e.prototype,n),r&&iA(e,r),t}();function sA(t){if(!t)return null;var e=Array.prototype.slice.call(t.types||[]);return Object.keys(oA).filter((function(t){return oA[t].matchesTypes.some((function(t){return e.indexOf(t)>-1}))}))[0]||null}function uA(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function dA(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var pA=function(){function t(e,n){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),dA(this,"ownerDocument",null),dA(this,"globalContext",void 0),dA(this,"optionsArgs",void 0),this.globalContext=e,this.optionsArgs=n}var e,n,r;return e=t,(n=[{key:"window",get:function(){return this.globalContext?this.globalContext:"undefined"!=typeof window?window:void 0}},{key:"document",get:function(){var t;return null!==(t=this.globalContext)&&void 0!==t&&t.document?this.globalContext.document:this.window?this.window.document:void 0}},{key:"rootElement",get:function(){var t;return(null===(t=this.optionsArgs)||void 0===t?void 0:t.rootElement)||this.window}}])&&uA(e.prototype,n),r&&uA(e,r),t}();function fA(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function mA(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?fA(Object(n),!0).forEach((function(e){gA(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):fA(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function hA(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function gA(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var bA=function(){function t(e,n,r){var a=this;!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),gA(this,"options",void 0),gA(this,"actions",void 0),gA(this,"monitor",void 0),gA(this,"registry",void 0),gA(this,"enterLeaveCounter",void 0),gA(this,"sourcePreviewNodes",new Map),gA(this,"sourcePreviewNodeOptions",new Map),gA(this,"sourceNodes",new Map),gA(this,"sourceNodeOptions",new Map),gA(this,"dragStartSourceIds",null),gA(this,"dropTargetIds",[]),gA(this,"dragEnterTargetIds",[]),gA(this,"currentNativeSource",null),gA(this,"currentNativeHandle",null),gA(this,"currentDragSourceNode",null),gA(this,"altKeyPressed",!1),gA(this,"mouseMoveTimeoutTimer",null),gA(this,"asyncEndDragFrameId",null),gA(this,"dragOverTargetIds",null),gA(this,"lastClientOffset",null),gA(this,"hoverRafId",null),gA(this,"getSourceClientOffset",(function(t){var e=a.sourceNodes.get(t);return e&&qz(e)||null})),gA(this,"endDragNativeItem",(function(){a.isDraggingNativeItem()&&(a.actions.endDrag(),a.currentNativeHandle&&a.registry.removeSource(a.currentNativeHandle),a.currentNativeHandle=null,a.currentNativeSource=null)})),gA(this,"isNodeInDocument",(function(t){return Boolean(t&&a.document&&a.document.body&&a.document.body.contains(t))})),gA(this,"endDragIfSourceWasRemovedFromDOM",(function(){var t=a.currentDragSourceNode;null==t||a.isNodeInDocument(t)||a.clearCurrentDragSourceNode()&&a.monitor.isDragging()&&a.actions.endDrag()})),gA(this,"handleTopDragStartCapture",(function(){a.clearCurrentDragSourceNode(),a.dragStartSourceIds=[]})),gA(this,"handleTopDragStart",(function(t){if(!t.defaultPrevented){var e=a.dragStartSourceIds;a.dragStartSourceIds=null;var n=Gz(t);a.monitor.isDragging()&&a.actions.endDrag(),a.actions.beginDrag(e||[],{publishSource:!1,getSourceClientOffset:a.getSourceClientOffset,clientOffset:n});var r=t.dataTransfer,o=sA(r);if(a.monitor.isDragging()){if(r&&"function"==typeof r.setDragImage){var i=a.monitor.getSourceId(),l=a.sourceNodes.get(i),c=a.sourcePreviewNodes.get(i)||l;if(c){var s=a.getCurrentSourcePreviewNodeOptions(),u=Xz(l,c,n,{anchorX:s.anchorX,anchorY:s.anchorY},{offsetX:s.offsetX,offsetY:s.offsetY});r.setDragImage(c,u.x,u.y)}}try{null==r||r.setData("application/json",{})}catch(t){}a.setCurrentDragSourceNode(t.target),a.getCurrentSourcePreviewNodeOptions().captureDraggingState?a.actions.publishDragSource():setTimeout((function(){return a.actions.publishDragSource()}),0)}else if(o)a.beginDragNativeItem(o);else{if(r&&!r.types&&(t.target&&!t.target.hasAttribute||!t.target.hasAttribute("draggable")))return;t.preventDefault()}}})),gA(this,"handleTopDragEndCapture",(function(){a.clearCurrentDragSourceNode()&&a.monitor.isDragging()&&a.actions.endDrag()})),gA(this,"handleTopDragEnterCapture",(function(t){if(a.dragEnterTargetIds=[],a.enterLeaveCounter.enter(t.target)&&!a.monitor.isDragging()){var e=t.dataTransfer,n=sA(e);n&&a.beginDragNativeItem(n,e)}})),gA(this,"handleTopDragEnter",(function(t){var e=a.dragEnterTargetIds;(a.dragEnterTargetIds=[],a.monitor.isDragging())&&(a.altKeyPressed=t.altKey,e.length>0&&a.actions.hover(e,{clientOffset:Gz(t)}),e.some((function(t){return a.monitor.canDropOnTarget(t)}))&&(t.preventDefault(),t.dataTransfer&&(t.dataTransfer.dropEffect=a.getCurrentDropEffect())))})),gA(this,"handleTopDragOverCapture",(function(){a.dragOverTargetIds=[]})),gA(this,"handleTopDragOver",(function(t){var e=a.dragOverTargetIds;if(a.dragOverTargetIds=[],!a.monitor.isDragging())return t.preventDefault(),void(t.dataTransfer&&(t.dataTransfer.dropEffect="none"));a.altKeyPressed=t.altKey,a.lastClientOffset=Gz(t),null===a.hoverRafId&&"undefined"!=typeof requestAnimationFrame&&(a.hoverRafId=requestAnimationFrame((function(){a.monitor.isDragging()&&a.actions.hover(e||[],{clientOffset:a.lastClientOffset}),a.hoverRafId=null}))),(e||[]).some((function(t){return a.monitor.canDropOnTarget(t)}))?(t.preventDefault(),t.dataTransfer&&(t.dataTransfer.dropEffect=a.getCurrentDropEffect())):a.isDraggingNativeItem()?t.preventDefault():(t.preventDefault(),t.dataTransfer&&(t.dataTransfer.dropEffect="none"))})),gA(this,"handleTopDragLeaveCapture",(function(t){a.isDraggingNativeItem()&&t.preventDefault(),a.enterLeaveCounter.leave(t.target)&&a.isDraggingNativeItem()&&setTimeout((function(){return a.endDragNativeItem()}),0)})),gA(this,"handleTopDropCapture",(function(t){var e;(a.dropTargetIds=[],a.isDraggingNativeItem())?(t.preventDefault(),null===(e=a.currentNativeSource)||void 0===e||e.loadDataTransfer(t.dataTransfer)):sA(t.dataTransfer)&&t.preventDefault();a.enterLeaveCounter.reset()})),gA(this,"handleTopDrop",(function(t){var e=a.dropTargetIds;a.dropTargetIds=[],a.actions.hover(e,{clientOffset:Gz(t)}),a.actions.drop({dropEffect:a.getCurrentDropEffect()}),a.isDraggingNativeItem()?a.endDragNativeItem():a.monitor.isDragging()&&a.actions.endDrag()})),gA(this,"handleSelectStart",(function(t){var e=t.target;"function"==typeof e.dragDrop&&("INPUT"===e.tagName||"SELECT"===e.tagName||"TEXTAREA"===e.tagName||e.isContentEditable||(t.preventDefault(),e.dragDrop()))})),this.options=new pA(n,r),this.actions=e.getActions(),this.monitor=e.getMonitor(),this.registry=e.getRegistry(),this.enterLeaveCounter=new Hz(this.isNodeInDocument)}var e,n,r;return e=t,(n=[{key:"profile",value:function(){var t,e;return{sourcePreviewNodes:this.sourcePreviewNodes.size,sourcePreviewNodeOptions:this.sourcePreviewNodeOptions.size,sourceNodeOptions:this.sourceNodeOptions.size,sourceNodes:this.sourceNodes.size,dragStartSourceIds:(null===(t=this.dragStartSourceIds)||void 0===t?void 0:t.length)||0,dropTargetIds:this.dropTargetIds.length,dragEnterTargetIds:this.dragEnterTargetIds.length,dragOverTargetIds:(null===(e=this.dragOverTargetIds)||void 0===e?void 0:e.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 t=this.rootElement;if(void 0!==t){if(t.__isReactDndBackendSetUp)throw new Error("Cannot have two HTML5 backends at the same time.");t.__isReactDndBackendSetUp=!0,this.addEventListeners(t)}}},{key:"teardown",value:function(){var t,e=this.rootElement;void 0!==e&&(e.__isReactDndBackendSetUp=!1,this.removeEventListeners(this.rootElement),this.clearCurrentDragSourceNode(),this.asyncEndDragFrameId&&(null===(t=this.window)||void 0===t||t.cancelAnimationFrame(this.asyncEndDragFrameId)))}},{key:"connectDragPreview",value:function(t,e,n){var r=this;return this.sourcePreviewNodeOptions.set(t,n),this.sourcePreviewNodes.set(t,e),function(){r.sourcePreviewNodes.delete(t),r.sourcePreviewNodeOptions.delete(t)}}},{key:"connectDragSource",value:function(t,e,n){var r=this;this.sourceNodes.set(t,e),this.sourceNodeOptions.set(t,n);var a=function(e){return r.handleDragStart(e,t)},o=function(t){return r.handleSelectStart(t)};return e.setAttribute("draggable","true"),e.addEventListener("dragstart",a),e.addEventListener("selectstart",o),function(){r.sourceNodes.delete(t),r.sourceNodeOptions.delete(t),e.removeEventListener("dragstart",a),e.removeEventListener("selectstart",o),e.setAttribute("draggable","false")}}},{key:"connectDropTarget",value:function(t,e){var n=this,r=function(e){return n.handleDragEnter(e,t)},a=function(e){return n.handleDragOver(e,t)},o=function(e){return n.handleDrop(e,t)};return e.addEventListener("dragenter",r),e.addEventListener("dragover",a),e.addEventListener("drop",o),function(){e.removeEventListener("dragenter",r),e.removeEventListener("dragover",a),e.removeEventListener("drop",o)}}},{key:"addEventListeners",value:function(t){t.addEventListener&&(t.addEventListener("dragstart",this.handleTopDragStart),t.addEventListener("dragstart",this.handleTopDragStartCapture,!0),t.addEventListener("dragend",this.handleTopDragEndCapture,!0),t.addEventListener("dragenter",this.handleTopDragEnter),t.addEventListener("dragenter",this.handleTopDragEnterCapture,!0),t.addEventListener("dragleave",this.handleTopDragLeaveCapture,!0),t.addEventListener("dragover",this.handleTopDragOver),t.addEventListener("dragover",this.handleTopDragOverCapture,!0),t.addEventListener("drop",this.handleTopDrop),t.addEventListener("drop",this.handleTopDropCapture,!0))}},{key:"removeEventListeners",value:function(t){t.removeEventListener&&(t.removeEventListener("dragstart",this.handleTopDragStart),t.removeEventListener("dragstart",this.handleTopDragStartCapture,!0),t.removeEventListener("dragend",this.handleTopDragEndCapture,!0),t.removeEventListener("dragenter",this.handleTopDragEnter),t.removeEventListener("dragenter",this.handleTopDragEnterCapture,!0),t.removeEventListener("dragleave",this.handleTopDragLeaveCapture,!0),t.removeEventListener("dragover",this.handleTopDragOver),t.removeEventListener("dragover",this.handleTopDragOverCapture,!0),t.removeEventListener("drop",this.handleTopDrop),t.removeEventListener("drop",this.handleTopDropCapture,!0))}},{key:"getCurrentSourceNodeOptions",value:function(){var t=this.monitor.getSourceId(),e=this.sourceNodeOptions.get(t);return mA({dropEffect:this.altKeyPressed?"copy":"move"},e||{})}},{key:"getCurrentDropEffect",value:function(){return this.isDraggingNativeItem()?"copy":this.getCurrentSourceNodeOptions().dropEffect}},{key:"getCurrentSourcePreviewNodeOptions",value:function(){var t=this.monitor.getSourceId();return mA({anchorX:.5,anchorY:.5,captureDraggingState:!1},this.sourcePreviewNodeOptions.get(t)||{})}},{key:"isDraggingNativeItem",value:function(){var t=this.monitor.getItemType();return Object.keys(nA).some((function(e){return nA[e]===t}))}},{key:"beginDragNativeItem",value:function(t,e){this.clearCurrentDragSourceNode(),this.currentNativeSource=function(t,e){var n=new cA(oA[t]);return n.loadDataTransfer(e),n}(t,e),this.currentNativeHandle=this.registry.addSource(t,this.currentNativeSource),this.actions.beginDrag([this.currentNativeHandle])}},{key:"setCurrentDragSourceNode",value:function(t){var e=this;this.clearCurrentDragSourceNode(),this.currentDragSourceNode=t,this.mouseMoveTimeoutTimer=setTimeout((function(){var t;return null===(t=e.rootElement)||void 0===t?void 0:t.addEventListener("mousemove",e.endDragIfSourceWasRemovedFromDOM,!0)}),1e3)}},{key:"clearCurrentDragSourceNode",value:function(){var t;return!!this.currentDragSourceNode&&(this.currentDragSourceNode=null,this.rootElement&&(null===(t=this.window)||void 0===t||t.clearTimeout(this.mouseMoveTimeoutTimer||void 0),this.rootElement.removeEventListener("mousemove",this.endDragIfSourceWasRemovedFromDOM,!0)),this.mouseMoveTimeoutTimer=null,!0)}},{key:"handleDragStart",value:function(t,e){t.defaultPrevented||(this.dragStartSourceIds||(this.dragStartSourceIds=[]),this.dragStartSourceIds.unshift(e))}},{key:"handleDragEnter",value:function(t,e){this.dragEnterTargetIds.unshift(e)}},{key:"handleDragOver",value:function(t,e){null===this.dragOverTargetIds&&(this.dragOverTargetIds=[]),this.dragOverTargetIds.unshift(e)}},{key:"handleDrop",value:function(t,e){this.dropTargetIds.unshift(e)}}])&&hA(e.prototype,n),r&&hA(e,r),t}();const vA=function(t,e,n){return new bA(t,e,n)},yA=t=>n.jsx(zM,Object.assign({backend:vA,context:window},{children:t.children}),void 0);y(".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{width:26px;height:26px}.ant-table-wrapper .ant-table-pagination.ant-pagination{margin-top:10px;margin-bottom:10px;padding-top:10px;padding-bottom:10px}.ant-table-wrapper .react-resizable{position:relative;background-clip:padding-box}.ant-table-wrapper .react-resizable-handle{position:absolute;right:-5px;bottom:0;z-index:1;width:10px;height:100%;cursor:col-resize}");var xA=t.forwardRef(((e,r)=>{const a=t.useMemo((()=>{const t=e.extra||{};return{tableConfig:t.tableConfig,rowType:t.rowType,scroll:t.scroll,apiMethod:t.apiMethod,columns:t.columns||[],data:t.data,drag:t.drag,onSelect:t.onSelect,paginationConfig:t.paginationConfig,getCheckboxProps:t.getCheckboxProps,resultFilter:t.resultFilter,getTableSuccessData:t.getTableSuccessData}}),[e.extra]),o=t.useRef();let i=t.useRef(!0);const l=t.useRef({position:["bottomCenter"],size:"small",current:1,total:0,pages:0,pageSize:10,showSizeChanger:!0,orderByInfo:void 0}),c=t.useRef([]),[s,u]=t.useState(a.columns),[d,f]=t.useState(!1),[m,h]=t.useState([]),[g,b]=C.useSetState({selectRowIds:[],selectRowArray:[]}),[v,y]=t.useState({x:void 0,y:330}),x=t.useMemo((()=>a.tableConfig&&a.tableConfig.rowKey?a.tableConfig.rowKey:"id"),[a.tableConfig]),w=t.useCallback((async t=>{let e=!0;f(!0),t&&(void 0!==t.updateSelected&&(e=t.updateSelected,delete t.updateSelected),"not-reset"===t.pagination&&delete t.pagination,o.current={...o.current,...t});try{const n={...o.current};for(let t in l.current){const e=l.current[t];"orderByInfo"===t&&(n.orderByInfo=e),"current"===t&&(n.page=e),"pageSize"===t&&(n.size=n.size||e)}if(t&&t.current&&(n.page=t.current,l.current.current=t.current),a.apiMethod){delete n.current;const t=await a.apiMethod(p.default.pickBy(n,p.default.identity));let r=[];p.default.isArray(t.data.content)&&(!1!==a.paginationConfig?i.current=!0:i.current=!1,r=t.data.content,l.current.total=t.data.total,l.current.pages=t.data.pages),p.default.isArray(t.data)&&(i.current=!1,r=t.data),a.resultFilter&&(r=await a.resultFilter(r)),e&&b((t=>{let e=[...t.selectRowIds],n=[...t.selectRowArray];const a=r=>{if(t.selectRowIds.length)for(let o of r){for(let r of t.selectRowIds)o[x]===r&&(e.push(r),n.push(o));o.children&&a(o.children)}};return a(r),t.selectRowIds=p.default.unionBy(e),t.selectRowArray=p.default.unionBy(n,x),t})),h(r),a.getTableSuccessData&&a.getTableSuccessData(t)}}catch(t){}f(!1)}),[a,x,b]),k={fixed:!0,type:a.rowType,selectedRowKeys:g.selectRowIds,getCheckboxProps:a.getCheckboxProps,onSelectAll:(t,e,n)=>{b((e=>{let r=[...e.selectRowIds],o=[...e.selectRowArray];return t?(r=p.default.uniq([...r,...n.map((t=>t[x]))]),o=p.default.uniqBy([...o,...n],x)):(r=r.filter((t=>!n.some((e=>e[x]===t)))),o=o.filter((t=>!n.some((e=>e[x]===t[x]))))),a.onSelect&&a.onSelect(o,r),e.selectRowIds=r,e.selectRowArray=o,e}))},onSelect:(t,e)=>{b((n=>{let r=[...n.selectRowIds],o=[...n.selectRowArray];return"checkbox"===a.rowType&&(e?(r.push(t[x]),o.push(t)):(r=r.filter((e=>e!==t[x])),o=o.filter((e=>e[x]!==t[x])))),"radio"===a.rowType&&e&&(r=[t[x]],o=[t]),a.onSelect&&a.onSelect(o,r),n.selectRowIds=r,n.selectRowArray=o,n}))}},E=t=>(e,{size:n})=>{u((e=>{const r=[...e];return r[t]={...r[t],width:n.width},c.current=r,r}))},O=t.useCallback(((t,e)=>{h((n=>{let r=JSON.parse(JSON.stringify(n));for(let n of r)if(n[x]===t[x]){n[e]=t[e];break}return r}))}),[x]),S=t.useCallback((async(t,e)=>{const n=m[t],r=LD(m,{$splice:[[t,1],[e,0,n]]});f(!0);try{if(a.drag){const n=JSON.parse(JSON.stringify(r)),o=JSON.parse(JSON.stringify(m)),i=[t,e].sort();!1!==await a.drag.moveRow(t,e,n,o,n.slice(i[0],i[1]+1))&&h(n)}}finally{f(!1)}}),[a.drag,m]);return t.useEffect((()=>{(async()=>{let t=[...a.columns];t.some((t=>"sequence"===t.dataIndex))||t.unshift({width:55,fixed:"left",title:"序号",dataIndex:"sequence",render:(t,e,n)=>{const r=l.current;return Object.keys(r).length?((r.current||0)-1)*(r.pageSize||0)+n+1:n+1}});for(let[e,n]of t.entries()){"RemoteSearch"===n.valueType&&n.remoteConfig&&n.remoteConfig.remoteApi&&(n.valueEnum=await n.remoteConfig.remoteApi());let r={...n,onHeaderCell:t=>({width:t.width,onResize:E(e)}),onCell:(t,e)=>({record:t,dataIndex:n.dataIndex,title:n.title,editable:"function"==typeof n.editable?n.editable(t,e):n.editable,inputType:n.inputType,valueType:n.valueType,valueEnum:n.valueEnum,recordSelectField:n.recordSelectField,controlRender:n.controlRender,formChange:n.formChange,remoteConfig:n.remoteConfig,formItemProps:n.formItemProps,handleSave:O})},a=c.current.find((t=>t.dataIndex===n.dataIndex&&t.title===n.title));a&&(r.width=a.width),t[e]=r}u(t)})()}),[a.columns,O]),t.useEffect((()=>{b((t=>{let e=[];const n=t=>{for(let r of t){for(let t of g.selectRowIds)r[x]===t&&e.push(r);r.children&&n(r.children)}};return g.selectRowIds.length&&(n(m),e=p.default.unionBy([...t.selectRowArray,...e],x)),t.selectRowArray=e,t}))}),[x,m,b,g.selectRowIds]),t.useEffect((()=>{p.default.isArray(a.data)&&h(JSON.parse(JSON.stringify(a.data)))}),[a.data]),t.useEffect((()=>{const t=document.getElementById("slider-menu"),e=document.getElementById("router-render");if(void 0!==a.scroll?.x||void 0!==a.scroll?.y)y((t=>({...t,...a.scroll})));else if(t&&e){let n=parseInt(window.getComputedStyle(e,null).paddingLeft);y((e=>(e.x=document.body.clientWidth-t.clientWidth-(2*n+43),e)))}}),[a.scroll]),t.useEffect((()=>{a.paginationConfig&&(l.current={...l.current,...a.paginationConfig})}),[a.paginationConfig]),t.useImperativeHandle(r,(()=>({setTableLoading:t=>{f(t)},getPages:()=>({...l.current}),getTableList:async(t,e)=>{t&&("not-reset"===t.pagination?t.current=l.current.current:void 0===t.current&&(t.current=1),t.clearSelectIds&&(delete t.clearSelectIds,b((t=>(t.selectRowArray=[],t.selectRowIds=[],t))))),await w(t),e&&e()},setRowSelected:(t,e)=>{let n=t;!0===e&&(n=Array.from(new Set([...g.selectRowIds,...t]))),b({selectRowIds:n})},getSelectIds:()=>g.selectRowIds,clearSelectIds:()=>{b({selectRowIds:[],selectRowArray:[]})},getSelectRowsArray:()=>g.selectRowArray,removeSelectIds:t=>{b({selectRowIds:g.selectRowIds.filter((e=>{let n=!0;for(let r of t)if(r===e){n=!1;break}return n})),selectRowArray:g.selectRowArray.filter((e=>{let n=!0;for(let r of t)if(r===e[x]){n=!1;break}return n}))})},getStaticDataList:()=>JSON.parse(JSON.stringify(m||[])),setStaticDataList:(t,e)=>{if("[object Object]"===Object.prototype.toString.call(t)){let e=t;h(m.map((n=>(n[x]===e[x]&&(n=t),n))))}"[object Array]"===Object.prototype.toString.call(t)&&h(JSON.parse(JSON.stringify(t))),e&&e()}}))),n.jsx(ID,{children:n.jsx(yA,{children:n.jsx(VN,Object.assign({rowKey:"id",rowClassName:"editable-row",loading:d,bordered:!0,components:{header:{cell:LI},body:t.useMemo((()=>({row:Lz,cell:t=>n.jsx(_z,Object.assign({},t,{columns:s}),void 0)})),[s])},onRow:(t,e)=>({index:e,moveRow:S,open:a.drag&&a.drag.open}),columns:s,dataSource:m,rowSelection:a.rowType?k:void 0,pagination:!(!p.default.isFunction(a.apiMethod)||!i.current)&&{size:"small",position:["bottomCenter"],showTotal:t=>`共${t}条`,showSizeChanger:!0,showQuickJumper:!0,...l.current},onChange:(t,e,n)=>{const{order:r}=n;t.orderByInfo=void 0,r&&(t.orderByInfo=`${n.field}:${"ascend"===r?1:-1}`),(t=>{!p.default.isEqual(t,l.current)&&i.current&&(l.current={...l.current,...t},w())})(t)},scroll:v},a.tableConfig),void 0)},void 0)},void 0)}));y("");const wA=t=>{const e={...t};return delete e.outerHeight,n.jsx(Oy,Object.assign({className:"empty-wrap",style:{minHeight:t&&t.outerHeight?t.outerHeight:400},align:"middle",justify:"center"},{children:n.jsx(br,Object.assign({description:"暂无数据"},e),void 0)}),void 0)};y(".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:kA,Paragraph:CA}=dT;var EA=t.forwardRef((function(e,r){const a=t.useRef(null),o=t.useRef(),[i,l]=C.useSetState({saveLoading:!1,selectedRows:[]}),c=t.useMemo((()=>e.tableColumnsList&&e.tableColumnsList.tableConfig&&e.tableColumnsList.tableConfig.rowKey||"id"),[e.tableColumnsList]),s=t.useMemo((()=>{const t=e.width||0;return t>=500&&t<=800?{span:7}:t>800&&t<=1e3?{span:6}:t>1e3&&t<=1200?{span:5}:t>1200?{span:4}:{span:8}}),[e.width]),u=(t,e)=>{if(o.current){let n=[],r=[];"all"===t&&o.current.clearSelectIds(),"odd"===t&&e&&(n=[e[c]],r=i.selectedRows.filter((t=>t[c]!==e[c])),o.current.removeSelectIds(n)),l({selectedRows:r})}},d=t.useCallback((async()=>{if(a.current&&o.current){let t=await a.current.formSubmit();if(t&&Object.keys(t).length){for(let e in t){const n="YYYY-MM-DD HH:mm:ss";g.default(t[e],n,!0).isValid()&&(t[e]=g.default(t[e]).format(n))}t={clearSelectIds:!0,...t},void 0!==e.clearSelectIds&&(t.clearSelectIds=e.clearSelectIds),t.clearSelectIds&&l((t=>(t.selectedRows=[],t))),e.manualParameterChange&&(t=e.manualParameterChange(t)),e.searchCallback?e.searchCallback(t).then((e=>{e&&o.current?.getTableList(t)})):o.current.getTableList(t)}}else o.current?.getTableList()}),[e,l]),p=()=>{if(a.current){let t=[];const n=e.searchNoResetFiled||[];if(e.searchFormList)for(let r of e.searchFormList){if(r.unionConfig)for(let e of r.unionConfig.unionItems)e.name&&!n.includes(e.name)&&t.push(e.name);r.name&&!n.includes(r.name)&&t.push(r.name)}a.current.formReset(t)}d()};return t.useEffect((()=>{e.visible&&(e.autoGetList&&o.current?.getTableList(),e.openSelected&&e.openSelected.visible&&l((t=>(t.selectedRows=e.openSelected?.defaultValues||[],o.current?.setRowSelected(t.selectedRows.map((t=>t[c]))),t))))}),[e.autoGetList,e.openSelected,e.visible,c,l]),t.useImperativeHandle(r,(()=>({...a.current,...o.current,setSavaLoading:t=>{l({saveLoading:t})}}))),n.jsxs(bD,Object.assign({className:"from-table-modal",width:e.width,visible:e.visible,title:e.title||"弹窗",onCancel:e.onCancel,forceRender:!0,maskClosable:!1,footer:null},{children:[e.topExtra,e.searchFormList?n.jsx(AD,{ref:a,rowGridConfig:{gutter:10},colGirdConfig:s,list:(f=e.searchFormList,f?f.map((t=>("Select"===t.componentName&&t.selectData&&t.selectData.length&&(t.selectData.some((t=>"全部"===t.label))||(t.selectData=[{label:"全部",value:""},...t.selectData])),t))):[]),formConfig:e.formConfig,render:()=>e.searchFormList&&e.searchFormList.length?n.jsxs(ZE,Object.assign({size:10},{children:[n.jsx(tf,Object.assign({type:"primary",onClick:()=>{d()}},{children:"查询"}),void 0),n.jsx(tf,Object.assign({className:"btn-reset",onClick:p},{children:"重置"}),void 0)]}),void 0):n.jsx(n.Fragment,{},void 0)},void 0):null,n.jsxs(Oy,Object.assign({},e.rowProps,{children:[e.leftSlot?n.jsx(Py,Object.assign({},e.leftSlot.colProps,{children:e.leftSlot.jsx}),void 0):null,n.jsx(Py,Object.assign({},e.colProps,{children:n.jsxs(Oy,Object.assign({gutter:10},{children:[n.jsx(Py,Object.assign({span:e.openSelected&&e.openSelected.visible?16:24},{children:n.jsx(xA,{ref:o,extra:{rowType:e.tableColumnsList.rowType,apiMethod:e.apiMethod,columns:e.tableColumnsList.list,data:e.data,onSelect:(t,n)=>{((t,n)=>{l({selectedRows:n.map((n=>{let r={};const a=t.find((t=>t[c]===n));if(r[c]=n,e.openSelected&&e.openSelected.fileName&&(r[e.openSelected.fileName]=n),a&&(r=a),e.openSelected){const t=e.openSelected.fileName,a=e.openSelected.defaultValues;if(t&&a){const e=a.find((t=>t[c]===n));e&&(r[t]=e[t])}}return r}))})})(t,n),e.onSelect&&e.onSelect(t,n)},getTableSuccessData:e.getTableSuccessData,tableConfig:e.tableColumnsList.tableConfig,scroll:{x:"max-content"}}},void 0)}),void 0),e.openSelected&&e.openSelected.visible?n.jsx(Py,Object.assign({span:8},{children:n.jsx(Ty,Object.assign({title:"已选列表",size:"small",bodyStyle:{height:e.openSelected.height||330,overflowY:"auto"},extra:n.jsx(kA,Object.assign({onClick:()=>u("all")},{children:"全部移除"}),void 0)},{children:i.selectedRows.length?i.selectedRows.map((t=>{const r=t[c],a=t[e.openSelected?.fileName];return n.jsxs(Oy,Object.assign({gutter:12},{children:[n.jsx(Py,Object.assign({span:11,title:a},{children:n.jsx(CA,Object.assign({ellipsis:!0},{children:a}),void 0)}),void 0),n.jsx(Py,Object.assign({span:9,title:r},{children:n.jsx(CA,Object.assign({ellipsis:!0},{children:r}),void 0)}),void 0),n.jsx(Py,Object.assign({span:4},{children:n.jsx(kA,Object.assign({onClick:()=>u("odd",t)},{children:"移除"}),void 0)}),void 0)]}),r)})):n.jsx(wA,{outerHeight:200},void 0)}),void 0)}),void 0):null]}),void 0)}),void 0),e.rightSlot?n.jsx(Py,Object.assign({},e.rightSlot.colProps,{children:e.rightSlot.jsx}),void 0):null]}),void 0),n.jsx(Oy,Object.assign({className:"from-table-modal-foot",justify:"center"},{children:n.jsx(Py,{children:n.jsxs(ZE,Object.assign({size:20},{children:[e.onCancel?n.jsx(tf,Object.assign({onClick:()=>e.onCancel&&e.onCancel()},{children:"关闭"}),void 0):null,e.onConfirm?n.jsx(tf,Object.assign({type:"primary",loading:i.saveLoading,onClick:()=>{let t=[],n=[];t=e.openSelected&&e.openSelected.visible?i.selectedRows:o.current?.getSelectRowsArray()||[],e.onConfirm&&(o.current&&(n=o.current.getSelectIds()),l({saveLoading:!0}),e.onConfirm(t,n).then((t=>{l({saveLoading:!1}),t&&e.onCancel&&e.onCancel()})).catch((t=>{l({saveLoading:!1}),Oi.warn(t,1.5)})))}},{children:"确定"}),void 0):null]}),void 0)},void 0)}),void 0)]}),void 0);var f})),OA={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"},SA=function(e,n){return t.createElement(Yo,ye(ye({},e),{},{ref:n,icon:OA}))},NA=t.forwardRef(SA);"production"!==process.env.NODE_ENV&&(NA.displayName="LeftCircleFilled");var PA={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"},jA=function(e,n){return t.createElement(Yo,ye(ye({},e),{},{ref:n,icon:PA}))},TA=t.forwardRef(jA);"production"!==process.env.NODE_ENV&&(TA.displayName="RightCircleFilled");y(".quickly-form-modal .ant-modal-body{padding-top:15px}.quickly-form-modal .quickly-form-modal-foot{margin-top:20px}");y(".form-modal .ant-modal-body{padding-top:15px}.form-modal .ant-modal-body .modal-form-height{max-height:580px;padding-right:5px;overflow-x:hidden;overflow-y:auto}.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 DA=t.forwardRef(((e,r)=>{const a=t.useRef(),[o,i]=C.useSetState({loading:!1,saveLoading:!1,disabled:!1}),l=async()=>{let t=await(a.current?.formSubmit());if(t){if(t.endTime&&t.startTime&&g.default(t.endTime).isBefore(t.startTime))return void Oi.warn("生效日期不能大于失效日期",1.5);i({saveLoading:!0});try{let n={};if(t={...t,...e.submitExtraParameters},e.switchTransform)for(let n=0;n<e.switchTransform.length;n++)t[e.switchTransform[n]]?t[e.switchTransform[n]]="1":t[e.switchTransform[n]]="0";if(e.submitRemoveField)for(let n=0;n<e.submitRemoveField.length;n++)t[e.submitRemoveField[n]]&&delete t[e.submitRemoveField[n]];for(let e in t){const n="YYYY-MM-DD HH:mm:ss";g.default(t[e],n,!0).isValid()&&(t[e]=g.default(t[e]).format(n))}if(e.manualParameterChange&&(t=e.manualParameterChange(t)),e.manualVerification&&!e.manualVerification(t))return console.warn("手动验证表单不通过"),void i({saveLoading:!1});if(t=p.default.omitBy(t,p.default.isNil),e.submitApi&&t){if(e.id?(t.id=e.id,n=await e.submitApi(t,"put")):n=await e.submitApi(t,"post"),1===n.code){if(e.onConfirm){if(!1===e.onConfirm(n))return}Oi.success("操作成功",1.5),e.onCancel&&e.onCancel()}i({saveLoading:!1})}else e.onConfirm&&t&&e.onConfirm(t)}catch(t){i({saveLoading:!1})}}};return t.useEffect((()=>{!1===e.visible&&i({saveLoading:!1})}),[e.visible,i]),t.useEffect((()=>{i({disabled:e.disable})}),[e.disable,i]),t.useImperativeHandle(r,(()=>({setFormLoading:t=>{i({loading:t})},setFormSaveLoading:t=>{i({saveLoading:t})},setFormFields:t=>{a.current&&a.current.setFormFields(t)},getFormValues:t=>a.current?.getFormValues(t),setFormValues:t=>{a.current&&a.current.setFormValues(t)},excludeFormSubmitValues:async t=>{if(a.current){const n=e.formList.filter((e=>!t?.includes(e.name)));return await(a.current?.formSubmit(n.map((t=>t.name))))}return{}},getFormSubmitValues:async t=>a.current?await(a.current?.formSubmit(t)):{}}))),n.jsx(bD,Object.assign({className:"form-modal",width:e.width?e.width:600,visible:e.visible,title:e.title||"对话框",onCancel:e.onCancel,destroyOnClose:!0,maskClosable:!1,footer:null},{children:n.jsxs(nC,Object.assign({spinning:o.loading},{children:[n.jsxs("div",Object.assign({className:"modal-form-height"},{children:[e.topRender?e.topRender:null,n.jsx(AD,{ref:a,formConfig:{labelCol:{span:24},...e.formConfig},rowGridConfig:{gutter:[20,0]},colGirdConfig:e.colGirdConfig||{span:12},list:e.formList},void 0),e.children&&e.children]}),void 0),(()=>{const r=(()=>{const t=[n.jsx(tf,Object.assign({onClick:()=>e.onCancel&&e.onCancel()},{children:"关闭"}),-1)];return o.disabled||t.push(n.jsx(tf,Object.assign({type:"primary",loading:o.saveLoading,onClick:l},{children:"提交"}),-2)),t})(),a=t=>n.jsx(Oy,Object.assign({className:"form-modal-foot",justify:"center"},{children:n.jsx(Py,{children:n.jsx(ZE,Object.assign({size:20},{children:t}),void 0)},void 0)}),void 0);if(e.footer)return e.footer;if(e.footBtnList){const{model:n,data:o}=e.footBtnList,i=o.map(((e,n)=>{const{children:r,...a}=e;return t.createElement(tf,{...a,key:n},r)}));if("new"===n)return a(i);if("before"===n)return a([...i,...r]);if("after"===n)return a([...r,...i])}return a(r)})()]}),void 0)}),void 0)}));y('@import "https://at.alicdn.com/t/font_2381668_l6oy3doglyo.css";.icon-selected-modal .avatar-selected{display:flex;align-items:center;justify-content:center;width:36px;height:36px;overflow:hidden;border:2px solid #fff;border-radius:4px;cursor:pointer}.icon-selected-modal .avatar-selected.avatar-selected-bg{border-color:#5860f8}.icon-selected-modal .icon-selected-foot{margin-top:20px}');
39
39
  /*! *****************************************************************************
40
40
  Copyright (c) Microsoft Corporation. All rights reserved.
41
41
  Licensed under the Apache License, Version 2.0 (the "License"); you may not use
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "hlyc-web-pack",
3
- "version": "3.6.63",
3
+ "version": "3.6.65",
4
4
  "description": "华旅云创web端组件",
5
5
  "main": "lib/index.js",
6
6
  "module": "lib/index.js",