@kdcloudjs/table 1.2.2-canary.13 → 1.2.2-canary.15
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/@kdcloudjs/table.css +1 -1
- package/dist/@kdcloudjs/table.js +540 -333
- package/dist/@kdcloudjs/table.js.map +1 -1
- package/dist/@kdcloudjs/table.min.css +1 -1
- package/dist/@kdcloudjs/table.min.js +4 -4
- package/dist/@kdcloudjs/table.min.js.map +1 -1
- package/es/table/base/styles.js +8 -4
- package/es/table/base/table.d.ts +1 -0
- package/es/table/base/table.js +5 -3
- package/es/table/pipeline/features/columnDrag.js +220 -242
- package/es/table/pipeline/features/columnResizeWidth.js +40 -5
- package/es/table/pipeline/features/rowDrag.js +169 -80
- package/es/table/pipeline/features/utils/touchEventUtils.d.ts +15 -0
- package/es/table/pipeline/features/utils/touchEventUtils.js +65 -0
- package/lib/table/base/styles.js +8 -4
- package/lib/table/base/table.d.ts +1 -0
- package/lib/table/base/table.js +5 -3
- package/lib/table/pipeline/features/columnDrag.js +220 -242
- package/lib/table/pipeline/features/columnResizeWidth.js +40 -5
- package/lib/table/pipeline/features/rowDrag.js +169 -80
- package/lib/table/pipeline/features/utils/touchEventUtils.d.ts +15 -0
- package/lib/table/pipeline/features/utils/touchEventUtils.js +76 -0
- package/package.json +1 -1
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
*
|
|
3
|
-
* @kdcloudjs/table v1.2.2-canary.
|
|
3
|
+
* @kdcloudjs/table v1.2.2-canary.14
|
|
4
4
|
*
|
|
5
5
|
* Copyright 2020-present, Kingdee, Inc.
|
|
6
6
|
* All rights reserved.
|
|
@@ -29,7 +29,7 @@
|
|
|
29
29
|
*
|
|
30
30
|
* This source code is licensed under the MIT license found in the
|
|
31
31
|
* LICENSE file in the root directory of this source tree.
|
|
32
|
-
*/var r="function"==typeof Symbol&&Symbol.for,o=r?Symbol.for("react.element"):60103,i=r?Symbol.for("react.portal"):60106,a=r?Symbol.for("react.fragment"):60107,c=r?Symbol.for("react.strict_mode"):60108,l=r?Symbol.for("react.profiler"):60114,s=r?Symbol.for("react.provider"):60109,u=r?Symbol.for("react.context"):60110,f=r?Symbol.for("react.async_mode"):60111,d=r?Symbol.for("react.concurrent_mode"):60111,p=r?Symbol.for("react.forward_ref"):60112,h=r?Symbol.for("react.suspense"):60113,v=r?Symbol.for("react.suspense_list"):60120,g=r?Symbol.for("react.memo"):60115,y=r?Symbol.for("react.lazy"):60116,b=r?Symbol.for("react.block"):60121,m=r?Symbol.for("react.fundamental"):60117,w=r?Symbol.for("react.responder"):60118,x=r?Symbol.for("react.scope"):60119;function S(e){if("object"==typeof e&&null!==e){var t=e.$$typeof;switch(t){case o:switch(e=e.type){case f:case d:case a:case l:case c:case h:return e;default:switch(e=e&&e.$$typeof){case u:case p:case y:case g:case s:return e;default:return t}}case i:return t}}}function O(e){return S(e)===d}t.AsyncMode=f,t.ConcurrentMode=d,t.ContextConsumer=u,t.ContextProvider=s,t.Element=o,t.ForwardRef=p,t.Fragment=a,t.Lazy=y,t.Memo=g,t.Portal=i,t.Profiler=l,t.StrictMode=c,t.Suspense=h,t.isAsyncMode=function(e){return O(e)||S(e)===f},t.isConcurrentMode=O,t.isContextConsumer=function(e){return S(e)===u},t.isContextProvider=function(e){return S(e)===s},t.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===o},t.isForwardRef=function(e){return S(e)===p},t.isFragment=function(e){return S(e)===a},t.isLazy=function(e){return S(e)===y},t.isMemo=function(e){return S(e)===g},t.isPortal=function(e){return S(e)===i},t.isProfiler=function(e){return S(e)===l},t.isStrictMode=function(e){return S(e)===c},t.isSuspense=function(e){return S(e)===h},t.isValidElementType=function(e){return"string"==typeof e||"function"==typeof e||e===a||e===d||e===l||e===c||e===h||e===v||"object"==typeof e&&null!==e&&(e.$$typeof===y||e.$$typeof===g||e.$$typeof===s||e.$$typeof===u||e.$$typeof===p||e.$$typeof===m||e.$$typeof===w||e.$$typeof===x||e.$$typeof===b)},t.typeOf=S},function(e,t,n){"use strict";n(190)("Map",function(e){return function(){return e(this,arguments.length?arguments[0]:void 0)}},n(194))},function(e,t,n){var r=n(188);e.exports=function(e){if(Array.isArray(e))return r(e)},e.exports.__esModule=!0,e.exports.default=e.exports},function(e,t){e.exports=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.")},e.exports.__esModule=!0,e.exports.default=e.exports},function(e,t,n){var r=n(183),o=TypeError;e.exports=function(e){if(r(e))throw o("The method doesn't accept regular expressions");return e}},function(e,t,n){var r=n(22)("match");e.exports=function(t){var n=/./;try{"/./"[t](n)}catch(e){try{return n[r]=!1,"/./"[t](n)}catch(e){}}return!1}},function(e,t,n){"use strict";var r=n(32),o=n(67),i=TypeError,a=Object.getOwnPropertyDescriptor,n=r&&!function(){if(void 0!==this)return 1;try{Object.defineProperty([],"length",{writable:!1}).length=1}catch(e){return e instanceof TypeError}}();e.exports=n?function(e,t){if(o(e)&&!a(e,"length").writable)throw i("Cannot set read only .length");return e.length=t}:function(e,t){return e.length=t}},function(e,t,n){"use strict";var r=n(20),o=n(17),c=n(79),l=n(43),s=n(45),u=n(197),f=n(42),i=n(13),d=n(296),a=n(157),p=n(297),h=n(298),v=n(89),g=n(299),y=[],b=o(y.sort),m=o(y.push),n=i(function(){y.sort(void 0)}),o=i(function(){y.sort(null)}),a=a("sort"),w=!i(function(){if(v)return v<70;if(!(p&&3<p)){if(h)return!0;if(g)return g<603;for(var e,t,n,r="",o=65;o<76;o++){switch(e=String.fromCharCode(o),o){case 66:case 69:case 70:case 72:t=3;break;case 68:case 71:t=4;break;default:t=2}for(n=0;n<47;n++)y.push({k:e+n,v:t})}for(y.sort(function(e,t){return t.v-e.v}),n=0;n<y.length;n++)e=y[n].k.charAt(0),r.charAt(r.length-1)!==e&&(r+=e);return"DGBEFHACIJK"!==r}});r({target:"Array",proto:!0,forced:n||!o||!a||!w},{sort:function(e){void 0!==e&&c(e);var t=l(this);if(w)return void 0===e?b(t):b(t,e);for(var n,r,o=[],i=s(t),a=0;a<i;a++)a in t&&m(o,t[a]);for(d(o,(r=e,function(e,t){return void 0===t?-1:void 0===e?1:void 0!==r?+r(e,t)||0:f(e)>f(t)?1:-1})),n=s(o),a=0;a<n;)t[a]=o[a++];for(;a<i;)u(t,a++);return t}})},function(e,t,n){function b(e,t){var n=e.length,r=w(n/2);if(n<8){for(var o,i,a=e,c=t,l=a.length,s=1;s<l;){for(o=a[i=s];i&&0<c(a[i-1],o);)a[i]=a[--i];i!==s++&&(a[i]=o)}return a}for(var u=e,f=b(m(e,0,r),t),d=b(m(e,r),t),p=t,h=f.length,v=d.length,g=0,y=0;g<h||y<v;)u[g+y]=g<h&&y<v?p(f[g],d[y])<=0?f[g++]:d[y++]:g<h?f[g++]:d[y++];return u}var m=n(178),w=Math.floor;e.exports=b},function(e,t,n){n=n(90).match(/firefox\/(\d+)/i);e.exports=!!n&&+n[1]},function(e,t,n){n=n(90);e.exports=/MSIE|Trident/.test(n)},function(e,t,n){n=n(90).match(/AppleWebKit\/(\d+)\./);e.exports=!!n&&+n[1]},function(e,t){e.exports=function(e,t){if(null==e)return{};for(var n,r={},o=Object.keys(e),i=0;i<o.length;i++)n=o[i],0<=t.indexOf(n)||(r[n]=e[n]);return r},e.exports.__esModule=!0,e.exports.default=e.exports},function(e,t,n){n(20)({target:"Number",stat:!0,nonConfigurable:!0,nonWritable:!0},{MAX_SAFE_INTEGER:9007199254740991})},function(j,e,t){"use strict";t.r(e),t.d(e,"ConfigProvider",function(){return U}),t.d(e,"Table",function(){return wo}),t.d(e,"TableProps",function(){}),t.d(e,"PrimaryKey",function(){}),t.d(e,"LoadingContentWrapperProps",function(){}),t.d(e,"Classes",function(){return M}),t.d(e,"TableCSSVariables",function(){}),t.d(e,"collectNodes",function(){return I}),t.d(e,"getTreeDepth",function(){return hr}),t.d(e,"groupBy",function(){return Oo}),t.d(e,"isLeafNode",function(){return D}),t.d(e,"isGroupColumn",function(){return Eo}),t.d(e,"applyTransforms",function(){return ko}),t.d(e,"buildTree",function(){return _o}),t.d(e,"exportTableAsExcel",function(){return Fo}),t.d(e,"layeredSort",function(){return Bo}),t.d(e,"mergeCellProps",function(){return _}),t.d(e,"proto",function(){return Ko}),t.d(e,"makeRecursiveMapper",function(){return m}),t.d(e,"smartCompare",function(){return Uo}),t.d(e,"traverseColumn",function(){return ei}),t.d(e,"copyDataToClipboard",function(){return ti}),t.d(e,"executeOnTempElement",function(){return ni}),t.d(e,"layeredFilter",function(){return ii}),t.d(e,"getEventPath",function(){return In}),t.d(e,"isElementInEventPath",function(){return _n}),t.d(e,"getTargetEleInEventPath",function(){return Mn}),t.d(e,"calculatePointerRelative",function(){return Ln}),t.d(e,"calculatePopupRelative",function(){return Nn}),t.d(e,"keepWithinBounds",function(){return Fn}),t.d(e,"console",function(){return Tt}),t.d(e,"browserType",function(){return yn}),t.d(e,"MULTI_SELECT_MARK_PROPNAME",function(){return ai}),t.d(e,"SINGLE_SELECT_MARK_PROPNAME",function(){return ci}),t.d(e,"isSelectColumn",function(){return li}),t.d(e,"isStickyUIDegrade",function(){return bn}),t.d(e,"makeAutoRowSpanTransform",function(){return pi}),t.d(e,"useAutoWidthTransform",function(){return mi}),t.d(e,"makeBuildTreeTransform",function(){return wi}),t.d(e,"makeColumnHoverTransform",function(){return Oi}),t.d(e,"ColumnHoverOptions",function(){}),t.d(e,"useColumnHoverTransform",function(){return Ei}),t.d(e,"makeColumnRangeHoverTransform",function(){return Pi}),t.d(e,"ColumnRangeHoverOptions",function(){}),t.d(e,"useColumnHoverRangeTransform",function(){return Ri}),t.d(e,"makeColumnResizeTransform",function(){return Hi}),t.d(e,"ColumnResizeOptions",function(){}),t.d(e,"useColumnResizeTransform",function(){return zi}),t.d(e,"makeFlattenTransform",function(){return Bi}),t.d(e,"makeOrderFieldTransform",function(){return Vi}),t.d(e,"makeSortTransform",function(){return Qi}),t.d(e,"SortHeaderCellProps",function(){}),t.d(e,"SortOptions",function(){}),t.d(e,"useSortTransform",function(){return ea}),t.d(e,"makeTipsTransform",function(){return la}),t.d(e,"TipsOptions",function(){}),t.d(e,"makeTreeModeTransform",function(){return Oa}),t.d(e,"TreeModeOptions",function(){}),t.d(e,"useTreeModeTransform",function(){return Ea}),t.d(e,"makeVisibleTransform",function(){return Ca}),t.d(e,"TablePipeline",function(){return ws}),t.d(e,"useTablePipeline",function(){return xs}),t.d(e,"features",function(){return n}),t.d(e,"internals",function(){return L});var n={},y=(t.r(n),t.d(n,"autoRowSpan",function(){return Ta}),t.d(n,"buildTree",function(){return Da}),t.d(n,"columnHover",function(){return Ma}),t.d(n,"ColumnHoverFeatureOptions",function(){}),t.d(n,"columnRangeHover",function(){return Ha}),t.d(n,"ColumnRangeHoverFeatureOptions",function(){}),t.d(n,"multiSelect",function(){return $a}),t.d(n,"MultiSelectFeatureOptions",function(){}),t.d(n,"rowDetail",function(){return Xa}),t.d(n,"RowDetailFeatureOptions",function(){}),t.d(n,"rowGrouping",function(){return nc}),t.d(n,"RowGroupingFeatureOptions",function(){}),t.d(n,"singleSelect",function(){return ic}),t.d(n,"SingleSelectFeatureOptions",function(){}),t.d(n,"sort",function(){return hc}),t.d(n,"SortFeatureOptions",function(){}),t.d(n,"tips",function(){return bc}),t.d(n,"treeMode",function(){return ga}),t.d(n,"TreeModeFeatureOptions",function(){}),t.d(n,"treeMetaSymbol",function(){return ha}),t.d(n,"treeSelect",function(){return Dc}),t.d(n,"TreeSelectFeatureOptions",function(){}),t.d(n,"columnDrag",function(){return rl}),t.d(n,"ColumnDragOptions",function(){}),t.d(n,"columnResize",function(){return Kc}),t.d(n,"ColumnResizeOptions",function(){}),t.d(n,"contextMenu",function(){return cl}),t.d(n,"ContextMenuFeatureOptions",function(){}),t.d(n,"filter",function(){return Al}),t.d(n,"FilterFeatureOptions",function(){}),t.d(n,"rangeSelection",function(){return Nl}),t.d(n,"RangeSelectionFeatureOptions",function(){}),t.d(n,"mergeCellHover",function(){return Gl}),t.d(n,"footerDataSource",function(){return ql}),t.d(n,"FooterDataSourceFeatureOptions",function(){}),t.d(n,"footerRowMetaSymbol",function(){return Ul}),t.d(n,"colGroupExtendable",function(){return es}),t.d(n,"colGroupExtendOption",function(){}),t.d(n,"rowDrag",function(){return cs}),t.d(n,"RowDragFeatureOptions",function(){}),t(0)),x=t.n(y),e=t(199),N=t.n(e),e=(t(30),t(26),t(29),t(19),t(4),t(23),t(34),t(18),t(21),t(41)),F=t.n(e),e=t(24),i=t.n(e),e=t(25),r=t.n(e),e=t(1),S=t.n(e),H=(t(27),t(116),t(15),t(3),t(5),t(266),t(58),t(149),{locale:"zh-CN",contain:"包含",notContain:"不包含",equal:"等于",notEqual:"不等于",isNull:"为空",notIsNull:"不为空",resetFilter:"重置",confirmFilter:"确定"});function z(e,t){var n,r,o,i,a="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(a)return r=!(n=!0),{s:function(){a=a.call(e)},n:function(){var e=a.next();return n=e.done,e},e:function(e){r=!0,o=e},f:function(){try{n||null==a.return||a.return()}finally{if(r)throw o}}};if(Array.isArray(e)||(a=function(e,t){var n;if(e)return"string"==typeof e?B(e,t):"Map"===(n="Object"===(n=Object.prototype.toString.call(e).slice(8,-1))&&e.constructor?e.constructor.name:n)||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?B(e,t):void 0}(e))||t&&e&&"number"==typeof e.length)return a&&(e=a),i=0,{s:t=function(){},n:function(){return i>=e.length?{done:!0}:{done:!1,value:e[i++]}},e:function(e){throw e},f:t};throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function B(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function W(e,t,n){var r,e=(i=K.getLocalData())["".concat(e,".").concat(t)]||i["global.".concat(t)]||"",o=n,i=e.match(/{[\w\W]*?}/g)||[],a=[],c=[],l=z(i);try{for(l.s();!(r=l.n()).done;){var s=function(e){var t=e.length;return e.slice(1,t-1)}(r.value),u=o[s];(!function(e){return"object"===F()(e)||"function"==typeof e}(u)?a:c).push({k:s,v:u})}}catch(e){l.e(e)}finally{l.f()}return e=function(n,e){return e.forEach(function(e){var t=e.k,e=e.v,t=new RegExp("{"+t+"}","g");n=n.replace(t,e)}),n}(e,a),i=[],0<c.length&&(i=function(e,r){var o=[];return function(e){var n=[],r={t:0,v:""},o=e.length;return e.split("").forEach(function(e,t){"{"===e?(n.push(r),r={t:1,v:""}):"}"===e?(n.push(r),r={t:0,v:""}):r.v=r.v+e,t===o-1&&n.push(r)}),n}(e).forEach(function(e,t){var n=e.t,e=e.v;0===n&&""!==e?o.push(x.a.createElement("span",{key:t},e)):1===n&&o.push(x.a.cloneElement(r[e],{key:t}))}),o}(e,o)),0<c.length?i:e}var K=new(function(){function n(e,t){i()(this,n),S()(this,"localesData",void 0),S()(this,"locale",void 0),this.locale=t||H.locale,this.localesData=e}return r()(n,[{key:"setLocalesData",value:function(e,t){var n=t||this.localesData[e];if(n)return this.locale=e,this.localesData[e]=n,t;console.error("缺少语言".concat(e,"对应的语言包,请检查后重新设置"))}},{key:"getLocalData",value:function(){return this.localesData[this.locale]}},{key:"getLocal",value:function(){return this.locale}},{key:"getLocalesData",value:function(){return this.localesData}}]),n}())(S()({},H.locale,H)),e=K;function V(e,t,n){var r=e.componentName,o=e.labels,i=e.labelParams||{};if(n=n||H,!(o=o||[]).length)for(var a in n){a=a.split(".");r===a[0]&&a[1]&&o.push(a[1])}var c={};return o.forEach(function(e){c[e]=(t&&"function"==typeof t?t:W)(r,e,i[e]||{})}),c}var $={getPrefixCls:function(e,t,n){return n||(e=e||"kd",t?"".concat(e,"-").concat(t):e)},prefixCls:"kd",locale:{getLangMsg:W,getCompLangMsg:V}},G=Object(y.createContext)($),Y=e,U=function(e){var t=e.value,r=t&&t.localeConfig,n={getLangMsg:function(e,t,n){return r&&r.customGetLangMsg?r.customGetLangMsg(e,t,n):W(e,t,n)},getCompLangMsg:function(e){return V(e,null==r?void 0:r.customGetLangMsg)}},t=(r&&Y.setLocalesData(r.locale,r.localeData),N()({},$,t,{locale:n}));return x.a.createElement(G.Provider,{value:t},e.children)},e=(t(186),t(7),t(6),t(8),t(9),t(12)),A=t.n(e),e=t(16),O=t.n(e),e=t(36),o=t.n(e),e=t(99),q=t.n(e),e=t(100),X=t.n(e),e=t(74),Z=t.n(e),e=(t(86),t(87),t(126),t(35),t(2)),C=t.n(e),J=function(){return Array.isArray||function(e){return e&&"number"==typeof e.length}}();function Q(e){return null!==e&&"object"==typeof e}function ee(e){return"function"==typeof e}var te=function(){function e(e){return Error.call(this),this.message=e?e.length+" errors occurred during unsubscription:\n"+e.map(function(e,t){return t+1+") "+e.toString()}).join("\n "):"",this.name="UnsubscriptionError",this.errors=e,this}return e.prototype=Object.create(Error.prototype),e}(),u=function(){function l(e){this.closed=!1,this._parentOrParents=null,this._subscriptions=null,e&&(this._ctorUnsubscribe=!0,this._unsubscribe=e)}var e;return l.prototype.unsubscribe=function(){var t;if(!this.closed){var e=this._parentOrParents,n=this._ctorUnsubscribe,r=this._unsubscribe,o=this._subscriptions;if(this.closed=!0,this._parentOrParents=null,this._subscriptions=null,e instanceof l)e.remove(this);else if(null!==e)for(var i=0;i<e.length;++i)e[i].remove(this);if(ee(r)){n&&(this._unsubscribe=void 0);try{r.call(this)}catch(e){t=e instanceof te?ne(e.errors):[e]}}if(J(o))for(var i=-1,a=o.length;++i<a;){var c=o[i];if(Q(c))try{c.unsubscribe()}catch(e){t=t||[],e instanceof te?t=t.concat(ne(e.errors)):t.push(e)}}if(t)throw new te(t)}},l.prototype.add=function(e){var t,n=e;if(!e)return l.EMPTY;switch(typeof e){case"function":n=new l(e);case"object":if(n===this||n.closed||"function"!=typeof n.unsubscribe)return n;if(this.closed)return n.unsubscribe(),n;n instanceof l||(t=n,(n=new l)._subscriptions=[t]);break;default:throw new Error("unrecognized teardown "+e+" added to Subscription.")}var r=n._parentOrParents;if(null===r)n._parentOrParents=this;else if(r instanceof l){if(r===this)return n;n._parentOrParents=[r,this]}else{if(-1!==r.indexOf(this))return n;r.push(this)}r=this._subscriptions;return null===r?this._subscriptions=[n]:r.push(n),n},l.prototype.remove=function(e){var t=this._subscriptions;t&&-1!==(e=t.indexOf(e))&&t.splice(e,1)},l.EMPTY=((e=new l).closed=!0,e),l}();function ne(e){return e.reduce(function(e,t){return e.concat(t instanceof te?t.errors:t)},[])}
|
|
32
|
+
*/var r="function"==typeof Symbol&&Symbol.for,o=r?Symbol.for("react.element"):60103,i=r?Symbol.for("react.portal"):60106,a=r?Symbol.for("react.fragment"):60107,c=r?Symbol.for("react.strict_mode"):60108,l=r?Symbol.for("react.profiler"):60114,s=r?Symbol.for("react.provider"):60109,u=r?Symbol.for("react.context"):60110,f=r?Symbol.for("react.async_mode"):60111,d=r?Symbol.for("react.concurrent_mode"):60111,p=r?Symbol.for("react.forward_ref"):60112,h=r?Symbol.for("react.suspense"):60113,v=r?Symbol.for("react.suspense_list"):60120,g=r?Symbol.for("react.memo"):60115,y=r?Symbol.for("react.lazy"):60116,b=r?Symbol.for("react.block"):60121,m=r?Symbol.for("react.fundamental"):60117,w=r?Symbol.for("react.responder"):60118,x=r?Symbol.for("react.scope"):60119;function S(e){if("object"==typeof e&&null!==e){var t=e.$$typeof;switch(t){case o:switch(e=e.type){case f:case d:case a:case l:case c:case h:return e;default:switch(e=e&&e.$$typeof){case u:case p:case y:case g:case s:return e;default:return t}}case i:return t}}}function O(e){return S(e)===d}t.AsyncMode=f,t.ConcurrentMode=d,t.ContextConsumer=u,t.ContextProvider=s,t.Element=o,t.ForwardRef=p,t.Fragment=a,t.Lazy=y,t.Memo=g,t.Portal=i,t.Profiler=l,t.StrictMode=c,t.Suspense=h,t.isAsyncMode=function(e){return O(e)||S(e)===f},t.isConcurrentMode=O,t.isContextConsumer=function(e){return S(e)===u},t.isContextProvider=function(e){return S(e)===s},t.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===o},t.isForwardRef=function(e){return S(e)===p},t.isFragment=function(e){return S(e)===a},t.isLazy=function(e){return S(e)===y},t.isMemo=function(e){return S(e)===g},t.isPortal=function(e){return S(e)===i},t.isProfiler=function(e){return S(e)===l},t.isStrictMode=function(e){return S(e)===c},t.isSuspense=function(e){return S(e)===h},t.isValidElementType=function(e){return"string"==typeof e||"function"==typeof e||e===a||e===d||e===l||e===c||e===h||e===v||"object"==typeof e&&null!==e&&(e.$$typeof===y||e.$$typeof===g||e.$$typeof===s||e.$$typeof===u||e.$$typeof===p||e.$$typeof===m||e.$$typeof===w||e.$$typeof===x||e.$$typeof===b)},t.typeOf=S},function(e,t,n){"use strict";n(190)("Map",function(e){return function(){return e(this,arguments.length?arguments[0]:void 0)}},n(194))},function(e,t,n){var r=n(188);e.exports=function(e){if(Array.isArray(e))return r(e)},e.exports.__esModule=!0,e.exports.default=e.exports},function(e,t){e.exports=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.")},e.exports.__esModule=!0,e.exports.default=e.exports},function(e,t,n){var r=n(183),o=TypeError;e.exports=function(e){if(r(e))throw o("The method doesn't accept regular expressions");return e}},function(e,t,n){var r=n(22)("match");e.exports=function(t){var n=/./;try{"/./"[t](n)}catch(e){try{return n[r]=!1,"/./"[t](n)}catch(e){}}return!1}},function(e,t,n){"use strict";var r=n(32),o=n(67),i=TypeError,a=Object.getOwnPropertyDescriptor,n=r&&!function(){if(void 0!==this)return 1;try{Object.defineProperty([],"length",{writable:!1}).length=1}catch(e){return e instanceof TypeError}}();e.exports=n?function(e,t){if(o(e)&&!a(e,"length").writable)throw i("Cannot set read only .length");return e.length=t}:function(e,t){return e.length=t}},function(e,t,n){"use strict";var r=n(20),o=n(17),c=n(79),l=n(43),s=n(45),u=n(197),f=n(42),i=n(13),d=n(296),a=n(157),p=n(297),h=n(298),v=n(89),g=n(299),y=[],b=o(y.sort),m=o(y.push),n=i(function(){y.sort(void 0)}),o=i(function(){y.sort(null)}),a=a("sort"),w=!i(function(){if(v)return v<70;if(!(p&&3<p)){if(h)return!0;if(g)return g<603;for(var e,t,n,r="",o=65;o<76;o++){switch(e=String.fromCharCode(o),o){case 66:case 69:case 70:case 72:t=3;break;case 68:case 71:t=4;break;default:t=2}for(n=0;n<47;n++)y.push({k:e+n,v:t})}for(y.sort(function(e,t){return t.v-e.v}),n=0;n<y.length;n++)e=y[n].k.charAt(0),r.charAt(r.length-1)!==e&&(r+=e);return"DGBEFHACIJK"!==r}});r({target:"Array",proto:!0,forced:n||!o||!a||!w},{sort:function(e){void 0!==e&&c(e);var t=l(this);if(w)return void 0===e?b(t):b(t,e);for(var n,r,o=[],i=s(t),a=0;a<i;a++)a in t&&m(o,t[a]);for(d(o,(r=e,function(e,t){return void 0===t?-1:void 0===e?1:void 0!==r?+r(e,t)||0:f(e)>f(t)?1:-1})),n=s(o),a=0;a<n;)t[a]=o[a++];for(;a<i;)u(t,a++);return t}})},function(e,t,n){function b(e,t){var n=e.length,r=w(n/2);if(n<8){for(var o,i,a=e,c=t,l=a.length,s=1;s<l;){for(o=a[i=s];i&&0<c(a[i-1],o);)a[i]=a[--i];i!==s++&&(a[i]=o)}return a}for(var u=e,f=b(m(e,0,r),t),d=b(m(e,r),t),p=t,h=f.length,v=d.length,g=0,y=0;g<h||y<v;)u[g+y]=g<h&&y<v?p(f[g],d[y])<=0?f[g++]:d[y++]:g<h?f[g++]:d[y++];return u}var m=n(178),w=Math.floor;e.exports=b},function(e,t,n){n=n(90).match(/firefox\/(\d+)/i);e.exports=!!n&&+n[1]},function(e,t,n){n=n(90);e.exports=/MSIE|Trident/.test(n)},function(e,t,n){n=n(90).match(/AppleWebKit\/(\d+)\./);e.exports=!!n&&+n[1]},function(e,t){e.exports=function(e,t){if(null==e)return{};for(var n,r={},o=Object.keys(e),i=0;i<o.length;i++)n=o[i],0<=t.indexOf(n)||(r[n]=e[n]);return r},e.exports.__esModule=!0,e.exports.default=e.exports},function(e,t,n){n(20)({target:"Number",stat:!0,nonConfigurable:!0,nonWritable:!0},{MAX_SAFE_INTEGER:9007199254740991})},function(w,e,t){"use strict";t.r(e),t.d(e,"ConfigProvider",function(){return U}),t.d(e,"Table",function(){return wo}),t.d(e,"TableProps",function(){}),t.d(e,"PrimaryKey",function(){}),t.d(e,"LoadingContentWrapperProps",function(){}),t.d(e,"Classes",function(){return T}),t.d(e,"TableCSSVariables",function(){}),t.d(e,"collectNodes",function(){return M}),t.d(e,"getTreeDepth",function(){return hr}),t.d(e,"groupBy",function(){return Oo}),t.d(e,"isLeafNode",function(){return _}),t.d(e,"isGroupColumn",function(){return Eo}),t.d(e,"applyTransforms",function(){return ko}),t.d(e,"buildTree",function(){return _o}),t.d(e,"exportTableAsExcel",function(){return Fo}),t.d(e,"layeredSort",function(){return Bo}),t.d(e,"mergeCellProps",function(){return j}),t.d(e,"proto",function(){return Ko}),t.d(e,"makeRecursiveMapper",function(){return Uo}),t.d(e,"smartCompare",function(){return qo}),t.d(e,"traverseColumn",function(){return ti}),t.d(e,"copyDataToClipboard",function(){return ni}),t.d(e,"executeOnTempElement",function(){return ri}),t.d(e,"layeredFilter",function(){return ai}),t.d(e,"getEventPath",function(){return In}),t.d(e,"isElementInEventPath",function(){return _n}),t.d(e,"getTargetEleInEventPath",function(){return Mn}),t.d(e,"calculatePointerRelative",function(){return Ln}),t.d(e,"calculatePopupRelative",function(){return Nn}),t.d(e,"keepWithinBounds",function(){return Fn}),t.d(e,"console",function(){return Tt}),t.d(e,"browserType",function(){return yn}),t.d(e,"MULTI_SELECT_MARK_PROPNAME",function(){return ci}),t.d(e,"SINGLE_SELECT_MARK_PROPNAME",function(){return li}),t.d(e,"isSelectColumn",function(){return si}),t.d(e,"isStickyUIDegrade",function(){return bn}),t.d(e,"makeAutoRowSpanTransform",function(){return hi}),t.d(e,"useAutoWidthTransform",function(){return wi}),t.d(e,"makeBuildTreeTransform",function(){return xi}),t.d(e,"makeColumnHoverTransform",function(){return Ei}),t.d(e,"ColumnHoverOptions",function(){}),t.d(e,"useColumnHoverTransform",function(){return ki}),t.d(e,"makeColumnRangeHoverTransform",function(){return Ri}),t.d(e,"ColumnRangeHoverOptions",function(){}),t.d(e,"useColumnHoverRangeTransform",function(){return Ai}),t.d(e,"makeColumnResizeTransform",function(){return zi}),t.d(e,"ColumnResizeOptions",function(){}),t.d(e,"useColumnResizeTransform",function(){return Bi}),t.d(e,"makeFlattenTransform",function(){return Wi}),t.d(e,"makeOrderFieldTransform",function(){return $i}),t.d(e,"makeSortTransform",function(){return ea}),t.d(e,"SortHeaderCellProps",function(){}),t.d(e,"SortOptions",function(){}),t.d(e,"useSortTransform",function(){return ta}),t.d(e,"makeTipsTransform",function(){return sa}),t.d(e,"TipsOptions",function(){}),t.d(e,"makeTreeModeTransform",function(){return Ea}),t.d(e,"TreeModeOptions",function(){}),t.d(e,"useTreeModeTransform",function(){return ka}),t.d(e,"makeVisibleTransform",function(){return Pa}),t.d(e,"TablePipeline",function(){return Ss}),t.d(e,"useTablePipeline",function(){return Os}),t.d(e,"features",function(){return n}),t.d(e,"internals",function(){return L});var n={},y=(t.r(n),t.d(n,"autoRowSpan",function(){return Da}),t.d(n,"buildTree",function(){return Ia}),t.d(n,"columnHover",function(){return La}),t.d(n,"ColumnHoverFeatureOptions",function(){}),t.d(n,"columnRangeHover",function(){return za}),t.d(n,"ColumnRangeHoverFeatureOptions",function(){}),t.d(n,"multiSelect",function(){return Ga}),t.d(n,"MultiSelectFeatureOptions",function(){}),t.d(n,"rowDetail",function(){return Za}),t.d(n,"RowDetailFeatureOptions",function(){}),t.d(n,"rowGrouping",function(){return rc}),t.d(n,"RowGroupingFeatureOptions",function(){}),t.d(n,"singleSelect",function(){return ac}),t.d(n,"SingleSelectFeatureOptions",function(){}),t.d(n,"sort",function(){return vc}),t.d(n,"SortFeatureOptions",function(){}),t.d(n,"tips",function(){return mc}),t.d(n,"treeMode",function(){return ya}),t.d(n,"TreeModeFeatureOptions",function(){}),t.d(n,"treeMetaSymbol",function(){return va}),t.d(n,"treeSelect",function(){return Ic}),t.d(n,"TreeSelectFeatureOptions",function(){}),t.d(n,"columnDrag",function(){return il}),t.d(n,"ColumnDragOptions",function(){}),t.d(n,"columnResize",function(){return $c}),t.d(n,"ColumnResizeOptions",function(){}),t.d(n,"contextMenu",function(){return sl}),t.d(n,"ContextMenuFeatureOptions",function(){}),t.d(n,"filter",function(){return Dl}),t.d(n,"FilterFeatureOptions",function(){}),t.d(n,"rangeSelection",function(){return Hl}),t.d(n,"RangeSelectionFeatureOptions",function(){}),t.d(n,"mergeCellHover",function(){return Ul}),t.d(n,"footerDataSource",function(){return Zl}),t.d(n,"FooterDataSourceFeatureOptions",function(){}),t.d(n,"footerRowMetaSymbol",function(){return Xl}),t.d(n,"colGroupExtendable",function(){return ns}),t.d(n,"colGroupExtendOption",function(){}),t.d(n,"rowDrag",function(){return ss}),t.d(n,"RowDragFeatureOptions",function(){}),t(0)),x=t.n(y),e=t(199),C=t.n(e),e=(t(30),t(26),t(29),t(19),t(4),t(23),t(34),t(18),t(21),t(41)),F=t.n(e),e=t(24),i=t.n(e),e=t(25),r=t.n(e),e=t(1),S=t.n(e),H=(t(27),t(116),t(15),t(3),t(5),t(266),t(58),t(149),{locale:"zh-CN",contain:"包含",notContain:"不包含",equal:"等于",notEqual:"不等于",isNull:"为空",notIsNull:"不为空",resetFilter:"重置",confirmFilter:"确定"});function z(e,t){var n,r,o,i,a="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(a)return r=!(n=!0),{s:function(){a=a.call(e)},n:function(){var e=a.next();return n=e.done,e},e:function(e){r=!0,o=e},f:function(){try{n||null==a.return||a.return()}finally{if(r)throw o}}};if(Array.isArray(e)||(a=function(e,t){var n;if(e)return"string"==typeof e?B(e,t):"Map"===(n="Object"===(n=Object.prototype.toString.call(e).slice(8,-1))&&e.constructor?e.constructor.name:n)||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?B(e,t):void 0}(e))||t&&e&&"number"==typeof e.length)return a&&(e=a),i=0,{s:t=function(){},n:function(){return i>=e.length?{done:!0}:{done:!1,value:e[i++]}},e:function(e){throw e},f:t};throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function B(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function W(e,t,n){var r,e=(i=K.getLocalData())["".concat(e,".").concat(t)]||i["global.".concat(t)]||"",o=n,i=e.match(/{[\w\W]*?}/g)||[],a=[],c=[],l=z(i);try{for(l.s();!(r=l.n()).done;){var s=function(e){var t=e.length;return e.slice(1,t-1)}(r.value),u=o[s];(!function(e){return"object"===F()(e)||"function"==typeof e}(u)?a:c).push({k:s,v:u})}}catch(e){l.e(e)}finally{l.f()}return e=function(n,e){return e.forEach(function(e){var t=e.k,e=e.v,t=new RegExp("{"+t+"}","g");n=n.replace(t,e)}),n}(e,a),i=[],0<c.length&&(i=function(e,r){var o=[];return function(e){var n=[],r={t:0,v:""},o=e.length;return e.split("").forEach(function(e,t){"{"===e?(n.push(r),r={t:1,v:""}):"}"===e?(n.push(r),r={t:0,v:""}):r.v=r.v+e,t===o-1&&n.push(r)}),n}(e).forEach(function(e,t){var n=e.t,e=e.v;0===n&&""!==e?o.push(x.a.createElement("span",{key:t},e)):1===n&&o.push(x.a.cloneElement(r[e],{key:t}))}),o}(e,o)),0<c.length?i:e}var K=new(function(){function n(e,t){i()(this,n),S()(this,"localesData",void 0),S()(this,"locale",void 0),this.locale=t||H.locale,this.localesData=e}return r()(n,[{key:"setLocalesData",value:function(e,t){var n=t||this.localesData[e];if(n)return this.locale=e,this.localesData[e]=n,t;console.error("缺少语言".concat(e,"对应的语言包,请检查后重新设置"))}},{key:"getLocalData",value:function(){return this.localesData[this.locale]}},{key:"getLocal",value:function(){return this.locale}},{key:"getLocalesData",value:function(){return this.localesData}}]),n}())(S()({},H.locale,H)),e=K;function V(e,t,n){var r=e.componentName,o=e.labels,i=e.labelParams||{};if(n=n||H,!(o=o||[]).length)for(var a in n){a=a.split(".");r===a[0]&&a[1]&&o.push(a[1])}var c={};return o.forEach(function(e){c[e]=(t&&"function"==typeof t?t:W)(r,e,i[e]||{})}),c}var $={getPrefixCls:function(e,t,n){return n||(e=e||"kd",t?"".concat(e,"-").concat(t):e)},prefixCls:"kd",locale:{getLangMsg:W,getCompLangMsg:V}},G=Object(y.createContext)($),Y=e,U=function(e){var t=e.value,r=t&&t.localeConfig,n={getLangMsg:function(e,t,n){return r&&r.customGetLangMsg?r.customGetLangMsg(e,t,n):W(e,t,n)},getCompLangMsg:function(e){return V(e,null==r?void 0:r.customGetLangMsg)}},t=(r&&Y.setLocalesData(r.locale,r.localeData),C()({},$,t,{locale:n}));return x.a.createElement(G.Provider,{value:t},e.children)},e=(t(186),t(7),t(6),t(8),t(9),t(12)),D=t.n(e),e=t(16),O=t.n(e),e=t(36),o=t.n(e),e=t(99),q=t.n(e),e=t(100),X=t.n(e),e=t(74),Z=t.n(e),e=(t(86),t(87),t(126),t(35),t(2)),P=t.n(e),J=function(){return Array.isArray||function(e){return e&&"number"==typeof e.length}}();function Q(e){return null!==e&&"object"==typeof e}function ee(e){return"function"==typeof e}var te=function(){function e(e){return Error.call(this),this.message=e?e.length+" errors occurred during unsubscription:\n"+e.map(function(e,t){return t+1+") "+e.toString()}).join("\n "):"",this.name="UnsubscriptionError",this.errors=e,this}return e.prototype=Object.create(Error.prototype),e}(),u=function(){function l(e){this.closed=!1,this._parentOrParents=null,this._subscriptions=null,e&&(this._ctorUnsubscribe=!0,this._unsubscribe=e)}var e;return l.prototype.unsubscribe=function(){var t;if(!this.closed){var e=this._parentOrParents,n=this._ctorUnsubscribe,r=this._unsubscribe,o=this._subscriptions;if(this.closed=!0,this._parentOrParents=null,this._subscriptions=null,e instanceof l)e.remove(this);else if(null!==e)for(var i=0;i<e.length;++i)e[i].remove(this);if(ee(r)){n&&(this._unsubscribe=void 0);try{r.call(this)}catch(e){t=e instanceof te?ne(e.errors):[e]}}if(J(o))for(var i=-1,a=o.length;++i<a;){var c=o[i];if(Q(c))try{c.unsubscribe()}catch(e){t=t||[],e instanceof te?t=t.concat(ne(e.errors)):t.push(e)}}if(t)throw new te(t)}},l.prototype.add=function(e){var t,n=e;if(!e)return l.EMPTY;switch(typeof e){case"function":n=new l(e);case"object":if(n===this||n.closed||"function"!=typeof n.unsubscribe)return n;if(this.closed)return n.unsubscribe(),n;n instanceof l||(t=n,(n=new l)._subscriptions=[t]);break;default:throw new Error("unrecognized teardown "+e+" added to Subscription.")}var r=n._parentOrParents;if(null===r)n._parentOrParents=this;else if(r instanceof l){if(r===this)return n;n._parentOrParents=[r,this]}else{if(-1!==r.indexOf(this))return n;r.push(this)}r=this._subscriptions;return null===r?this._subscriptions=[n]:r.push(n),n},l.prototype.remove=function(e){var t=this._subscriptions;t&&-1!==(e=t.indexOf(e))&&t.splice(e,1)},l.EMPTY=((e=new l).closed=!0,e),l}();function ne(e){return e.reduce(function(e,t){return e.concat(t instanceof te?t.errors:t)},[])}
|
|
33
33
|
/*! *****************************************************************************
|
|
34
34
|
Copyright (c) Microsoft Corporation.
|
|
35
35
|
|
|
@@ -43,7 +43,7 @@ INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
|
|
|
43
43
|
LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
|
|
44
44
|
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
|
|
45
45
|
PERFORMANCE OF THIS SOFTWARE.
|
|
46
|
-
***************************************************************************** */var re=function(e,t){return(re=Object.setPrototypeOf||({__proto__:[]}instanceof Array?function(e,t){e.__proto__=t}:function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])}))(e,t)};function c(e,t){function n(){this.constructor=e}re(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}var oe=!1,l={Promise:void 0,set useDeprecatedSynchronousErrorHandling(e){e&&(new Error).stack,oe=e},get useDeprecatedSynchronousErrorHandling(){return oe}};function ie(e){setTimeout(function(){throw e},0)}var ae={closed:!0,next:function(e){},error:function(e){if(l.useDeprecatedSynchronousErrorHandling)throw e;ie(e)},complete:function(){}},ce=function(){return"function"==typeof Symbol?Symbol("rxSubscriber"):"@@rxSubscriber_"+Math.random()}(),a=function(o){function i(e,t,n){var r=o.call(this)||this;switch(r.syncErrorValue=null,r.syncErrorThrown=!1,r.syncErrorThrowable=!1,r.isStopped=!1,arguments.length){case 0:r.destination=ae;break;case 1:if(!e){r.destination=ae;break}if("object"==typeof e){e instanceof i?(r.syncErrorThrowable=e.syncErrorThrowable,(r.destination=e).add(r)):(r.syncErrorThrowable=!0,r.destination=new le(r,e));break}default:r.syncErrorThrowable=!0,r.destination=new le(r,e,t,n)}return r}return c(i,o),i.prototype[ce]=function(){return this},i.create=function(e,t,n){e=new i(e,t,n);return e.syncErrorThrowable=!1,e},i.prototype.next=function(e){this.isStopped||this._next(e)},i.prototype.error=function(e){this.isStopped||(this.isStopped=!0,this._error(e))},i.prototype.complete=function(){this.isStopped||(this.isStopped=!0,this._complete())},i.prototype.unsubscribe=function(){this.closed||(this.isStopped=!0,o.prototype.unsubscribe.call(this))},i.prototype._next=function(e){this.destination.next(e)},i.prototype._error=function(e){this.destination.error(e),this.unsubscribe()},i.prototype._complete=function(){this.destination.complete(),this.unsubscribe()},i.prototype._unsubscribeAndRecycle=function(){var e=this._parentOrParents;return this._parentOrParents=null,this.unsubscribe(),this.closed=!1,this.isStopped=!1,this._parentOrParents=e,this},i}(u),le=function(a){function e(e,t,n,r){var o,i=a.call(this)||this,e=(i._parentSubscriber=e,i);return ee(t)?o=t:t&&(o=t.next,n=t.error,r=t.complete,t!==ae)&&(ee((e=Object.create(t)).unsubscribe)&&i.add(e.unsubscribe.bind(e)),e.unsubscribe=i.unsubscribe.bind(i)),i._context=e,i._next=o,i._error=n,i._complete=r,i}return c(e,a),e.prototype.next=function(e){var t;!this.isStopped&&this._next&&(t=this._parentSubscriber,l.useDeprecatedSynchronousErrorHandling&&t.syncErrorThrowable?this.__tryOrSetError(t,this._next,e)&&this.unsubscribe():this.__tryOrUnsub(this._next,e))},e.prototype.error=function(e){if(!this.isStopped){var t=this._parentSubscriber,n=l.useDeprecatedSynchronousErrorHandling;if(this._error)n&&t.syncErrorThrowable?this.__tryOrSetError(t,this._error,e):this.__tryOrUnsub(this._error,e),this.unsubscribe();else if(t.syncErrorThrowable)n?(t.syncErrorValue=e,t.syncErrorThrown=!0):ie(e),this.unsubscribe();else{if(this.unsubscribe(),n)throw e;ie(e)}}},e.prototype.complete=function(){var e,t,n=this;this.isStopped||(e=this._parentSubscriber,this._complete&&(t=function(){return n._complete.call(n._context)},l.useDeprecatedSynchronousErrorHandling&&e.syncErrorThrowable?this.__tryOrSetError(e,t):this.__tryOrUnsub(t)),this.unsubscribe())},e.prototype.__tryOrUnsub=function(e,t){try{e.call(this._context,t)}catch(e){if(this.unsubscribe(),l.useDeprecatedSynchronousErrorHandling)throw e;ie(e)}},e.prototype.__tryOrSetError=function(t,e,n){if(!l.useDeprecatedSynchronousErrorHandling)throw new Error("bad call");try{e.call(this._context,n)}catch(e){return l.useDeprecatedSynchronousErrorHandling?(t.syncErrorValue=e,t.syncErrorThrown=!0):(ie(e),!0)}return!1},e.prototype._unsubscribe=function(){var e=this._parentSubscriber;this._context=null,this._parentSubscriber=null,e.unsubscribe()},e}(a);var se=function(){return"function"==typeof Symbol&&Symbol.observable||"@@observable"}();function ue(e){return e}function fe(t){return 0===t.length?ue:1===t.length?t[0]:function(e){return t.reduce(function(e,t){return t(e)},e)}}var s=function(){function n(e){this._isScalar=!1,e&&(this._subscribe=e)}return n.prototype.lift=function(e){var t=new n;return t.source=this,t.operator=e,t},n.prototype.subscribe=function(e,t,n){var r=this.operator,e=function(e,t,n){if(e){if(e instanceof a)return e;if(e[ce])return e[ce]()}return e||t||n?new a(e,t,n):new a(ae)}(e,t,n);if(r?e.add(r.call(e,this.source)):e.add(this.source||l.useDeprecatedSynchronousErrorHandling&&!e.syncErrorThrowable?this._subscribe(e):this._trySubscribe(e)),l.useDeprecatedSynchronousErrorHandling&&e.syncErrorThrowable&&(e.syncErrorThrowable=!1,e.syncErrorThrown))throw e.syncErrorValue;return e},n.prototype._trySubscribe=function(t){try{return this._subscribe(t)}catch(e){l.useDeprecatedSynchronousErrorHandling&&(t.syncErrorThrown=!0,t.syncErrorValue=e),!function(e){for(;e;){var t=e,n=t.closed,r=t.destination,t=t.isStopped;if(n||t)return;e=r&&r instanceof a?r:null}return 1}(t)?console.warn(e):t.error(e)}},n.prototype.forEach=function(r,e){var o=this;return new(e=de(e))(function(e,t){var n=o.subscribe(function(e){try{r(e)}catch(e){t(e),n&&n.unsubscribe()}},t,e)})},n.prototype._subscribe=function(e){var t=this.source;return t&&t.subscribe(e)},n.prototype[se]=function(){return this},n.prototype.pipe=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return 0===e.length?this:fe(e)(this)},n.prototype.toPromise=function(e){var r=this;return new(e=de(e))(function(e,t){var n;r.subscribe(function(e){return n=e},function(e){return t(e)},function(){return e(n)})})},n.create=function(e){return new n(e)},n}();function de(e){if(e=e||l.Promise||Promise)return e;throw new Error("no Promise impl found")}var pe=function(){function e(){return Error.call(this),this.message="object unsubscribed",this.name="ObjectUnsubscribedError",this}return e.prototype=Object.create(Error.prototype),e}(),he=function(r){function e(e,t){var n=r.call(this)||this;return n.subject=e,n.subscriber=t,n.closed=!1,n}return c(e,r),e.prototype.unsubscribe=function(){var e,t;this.closed||(this.closed=!0,e=(t=this.subject).observers,this.subject=null,!e)||0===e.length||t.isStopped||t.closed||-1!==(t=e.indexOf(this.subscriber))&&e.splice(t,1)},e}(u),ve=function(n){function e(e){var t=n.call(this,e)||this;return t.destination=e,t}return c(e,n),e}(a),ge=function(t){function e(){var e=t.call(this)||this;return e.observers=[],e.closed=!1,e.isStopped=!1,e.hasError=!1,e.thrownError=null,e}return c(e,t),e.prototype[ce]=function(){return new ve(this)},e.prototype.lift=function(e){var t=new ye(this,this);return t.operator=e,t},e.prototype.next=function(e){if(this.closed)throw new pe;if(!this.isStopped)for(var t=this.observers,n=t.length,r=t.slice(),o=0;o<n;o++)r[o].next(e)},e.prototype.error=function(e){if(this.closed)throw new pe;this.hasError=!0,this.thrownError=e,this.isStopped=!0;for(var t=this.observers,n=t.length,r=t.slice(),o=0;o<n;o++)r[o].error(e);this.observers.length=0},e.prototype.complete=function(){if(this.closed)throw new pe;this.isStopped=!0;for(var e=this.observers,t=e.length,n=e.slice(),r=0;r<t;r++)n[r].complete();this.observers.length=0},e.prototype.unsubscribe=function(){this.isStopped=!0,this.closed=!0,this.observers=null},e.prototype._trySubscribe=function(e){if(this.closed)throw new pe;return t.prototype._trySubscribe.call(this,e)},e.prototype._subscribe=function(e){if(this.closed)throw new pe;return this.hasError?(e.error(this.thrownError),u.EMPTY):this.isStopped?(e.complete(),u.EMPTY):(this.observers.push(e),new he(this,e))},e.prototype.asObservable=function(){var e=new s;return e.source=this,e},e.create=function(e,t){return new ye(e,t)},e}(s),ye=function(r){function e(e,t){var n=r.call(this)||this;return n.destination=e,n.source=t,n}return c(e,r),e.prototype.next=function(e){var t=this.destination;t&&t.next&&t.next(e)},e.prototype.error=function(e){var t=this.destination;t&&t.error&&this.destination.error(e)},e.prototype.complete=function(){var e=this.destination;e&&e.complete&&this.destination.complete()},e.prototype._subscribe=function(e){return this.source?this.source.subscribe(e):u.EMPTY},e}(ge),be=function(n){function e(e){var t=n.call(this)||this;return t._value=e,t}return c(e,n),Object.defineProperty(e.prototype,"value",{get:function(){return this.getValue()},enumerable:!0,configurable:!0}),e.prototype._subscribe=function(e){var t=n.prototype._subscribe.call(this,e);return t&&!t.closed&&e.next(this._value),t},e.prototype.getValue=function(){if(this.hasError)throw this.thrownError;if(this.closed)throw new pe;return this._value},e.prototype.next=function(e){n.prototype.next.call(this,this._value=e)},e}(ge);function me(e){return e&&"function"==typeof e.schedule}var e=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return c(t,e),t.prototype.notifyNext=function(e,t,n,r,o){this.destination.next(t)},t.prototype.notifyError=function(e,t){this.destination.error(e)},t.prototype.notifyComplete=function(e){this.destination.complete()},t}(a),we=function(o){function e(e,t,n){var r=o.call(this)||this;return r.parent=e,r.outerValue=t,r.outerIndex=n,r.index=0,r}return c(e,o),e.prototype._next=function(e){this.parent.notifyNext(this.outerValue,e,this.outerIndex,this.index++,this)},e.prototype._error=function(e){this.parent.notifyError(e,this),this.unsubscribe()},e.prototype._complete=function(){this.parent.notifyComplete(this),this.unsubscribe()},e}(a),xe=function(r){return function(e){for(var t=0,n=r.length;t<n&&!e.closed;t++)e.next(r[t]);e.complete()}},Se=function(e){return function(t){return e.then(function(e){t.closed||(t.next(e),t.complete())},function(e){return t.error(e)}).then(null,ie),t}};function Oe(){return"function"==typeof Symbol&&Symbol.iterator?Symbol.iterator:"@@iterator"}var Ee=Oe(),ke=function(r){return function(t){for(var e=r[Ee]();;){var n=void 0;try{n=e.next()}catch(e){return t.error(e),t}if(n.done){t.complete();break}if(t.next(n.value),t.closed)break}return"function"==typeof e.return&&t.add(function(){e.return&&e.return()}),t}},je=function(n){return function(e){var t=n[se]();if("function"!=typeof t.subscribe)throw new TypeError("Provided object does not correctly implement Symbol.observable");return t.subscribe(e)}},Ce=function(e){return e&&"number"==typeof e.length&&"function"!=typeof e};function Pe(e){return e&&"function"!=typeof e.subscribe&&"function"==typeof e.then}var Re=function(e){if(e&&"function"==typeof e[se])return je(e);if(Ce(e))return xe(e);if(Pe(e))return Se(e);if(e&&"function"==typeof e[Ee])return ke(e);throw e=Q(e)?"an invalid object":"'"+e+"'",new TypeError("You provided "+e+" where a stream was expected. You can provide an Observable, Promise, Array, or Iterable.")};function Ae(r,o){return new s(function(e){var t=new u,n=0;return t.add(o.schedule(function(){n===r.length?e.complete():(e.next(r[n++]),e.closed||t.add(this.schedule()))})),t})}function Te(e,t){return t?Ae(e,t):new s(xe(e))}var De={};var Ie=function(){function e(e){this.resultSelector=e}return e.prototype.call=function(e,t){return t.subscribe(new _e(e,this.resultSelector))},e}(),_e=function(n){function e(e,t){e=n.call(this,e)||this;return e.resultSelector=t,e.active=0,e.values=[],e.observables=[],e}return c(e,n),e.prototype._next=function(e){this.values.push(De),this.observables.push(e)},e.prototype._complete=function(){var e=this.observables,t=e.length;if(0===t)this.destination.complete();else{this.active=t,this.toRespond=t;for(var n=0;n<t;n++){var r=e[n];this.add(function(e,t,n,r,o){if(!(o=void 0===o?new we(e,n,r):o).closed)return t instanceof s?t.subscribe(o):Re(t)(o)}(this,r,void 0,n))}}},e.prototype.notifyComplete=function(e){0==--this.active&&this.destination.complete()},e.prototype.notifyNext=function(e,t,n){var r=this.values,o=r[n],o=this.toRespond?o===De?--this.toRespond:this.toRespond:0;r[n]=t,0===o&&(this.resultSelector?this._tryResultSelector(r):this.destination.next(r.slice()))},e.prototype._tryResultSelector=function(e){var t;try{t=this.resultSelector.apply(this,e)}catch(e){return void this.destination.error(e)}this.destination.next(t)},e}(e);function Me(e,t){if(null!=e){if((l=e)&&"function"==typeof l[se])return a=e,c=t,new s(function(t){var n=new u;return n.add(c.schedule(function(){var e=a[se]();n.add(e.subscribe({next:function(e){n.add(c.schedule(function(){return t.next(e)}))},error:function(e){n.add(c.schedule(function(){return t.error(e)}))},complete:function(){n.add(c.schedule(function(){return t.complete()}))}}))})),n});if(Pe(e))return r=e,o=t,new s(function(t){var n=new u;return n.add(o.schedule(function(){return r.then(function(e){n.add(o.schedule(function(){t.next(e),n.add(o.schedule(function(){return t.complete()}))}))},function(e){n.add(o.schedule(function(){return t.error(e)}))})})),n});if(Ce(e))return Ae(e,t);if((l=e)&&"function"==typeof l[Ee]||"string"==typeof e){var n=e,i=t;if(n)return new s(function(r){var o,e=new u;return e.add(function(){o&&"function"==typeof o.return&&o.return()}),e.add(i.schedule(function(){o=n[Ee](),e.add(i.schedule(function(){if(!r.closed){try{var e=o.next(),t=e.value,n=e.done}catch(e){return void r.error(e)}n?r.complete():(r.next(t),this.schedule())}}))})),e});throw new Error("Iterable cannot be null")}}var r,o,a,c,l;throw new TypeError((null!==e&&typeof e||e)+" is not observable")}function Le(e,t){return t?Me(e,t):e instanceof s?e:new s(Re(e))}function Ne(){}var e=function(r){function e(e,t){var n=r.call(this,e,t)||this;return n.scheduler=e,n.work=t,n.pending=!1,n}return c(e,r),e.prototype.schedule=function(e,t){var n;return void 0===t&&(t=0),this.closed||(this.state=e,e=this.id,n=this.scheduler,null!=e&&(this.id=this.recycleAsyncId(n,e,t)),this.pending=!0,this.delay=t,this.id=this.id||this.requestAsyncId(n,this.id,t)),this},e.prototype.requestAsyncId=function(e,t,n){return void 0===n&&(n=0),setInterval(e.flush.bind(e,this),n)},e.prototype.recycleAsyncId=function(e,t,n){if(null!==(n=void 0===n?0:n)&&this.delay===n&&!1===this.pending)return t;clearInterval(t)},e.prototype.execute=function(e,t){if(this.closed)return new Error("executing a cancelled action");this.pending=!1;e=this._execute(e,t);if(e)return e;!1===this.pending&&null!=this.id&&(this.id=this.recycleAsyncId(this.scheduler,this.id,null))},e.prototype._execute=function(e,t){var n=!1,r=void 0;try{this.work(e)}catch(e){n=!0,r=!!e&&e||new Error(e)}if(n)return this.unsubscribe(),r},e.prototype._unsubscribe=function(){var e=this.id,t=this.scheduler,n=t.actions,r=n.indexOf(this);this.work=null,this.state=null,this.pending=!1,this.scheduler=null,-1!==r&&n.splice(r,1),null!=e&&(this.id=this.recycleAsyncId(t,e,null)),this.delay=null},e}(function(n){function e(e,t){return n.call(this)||this}return c(e,n),e.prototype.schedule=function(e,t){return void 0===t&&(t=0),this},e}(u)),Fe=function(){function n(e,t){void 0===t&&(t=n.now),this.SchedulerAction=e,this.now=t}return n.prototype.schedule=function(e,t,n){return void 0===t&&(t=0),new this.SchedulerAction(this,e).schedule(n,t)},n.now=function(){return Date.now()},n}(),He=function(r){function o(e,t){void 0===t&&(t=Fe.now);var n=r.call(this,e,function(){return o.delegate&&o.delegate!==n?o.delegate.now():t()})||this;return n.actions=[],n.active=!1,n.scheduled=void 0,n}return c(o,r),o.prototype.schedule=function(e,t,n){return void 0===t&&(t=0),o.delegate&&o.delegate!==this?o.delegate.schedule(e,t,n):r.prototype.schedule.call(this,e,t,n)},o.prototype.flush=function(e){var t,n=this.actions;if(this.active)n.push(e);else{this.active=!0;do{if(t=e.execute(e.state,e.delay))break}while(e=n.shift());if(this.active=!1,t){for(;e=n.shift();)e.unsubscribe();throw t}}},o}(Fe),ze=new He(e),Be=ze;var We=function(){function e(e,t){this.dueTime=e,this.scheduler=t}return e.prototype.call=function(e,t){return t.subscribe(new Ke(e,this.dueTime,this.scheduler))},e}(),Ke=function(r){function e(e,t,n){e=r.call(this,e)||this;return e.dueTime=t,e.scheduler=n,e.debouncedSubscription=null,e.lastValue=null,e.hasValue=!1,e}return c(e,r),e.prototype._next=function(e){this.clearDebounce(),this.lastValue=e,this.hasValue=!0,this.add(this.debouncedSubscription=this.scheduler.schedule(Ve,this.dueTime,this))},e.prototype._complete=function(){this.debouncedNext(),this.destination.complete()},e.prototype.debouncedNext=function(){var e;this.clearDebounce(),this.hasValue&&(e=this.lastValue,this.lastValue=null,this.hasValue=!1,this.destination.next(e))},e.prototype.clearDebounce=function(){var e=this.debouncedSubscription;null!==e&&(this.remove(e),e.unsubscribe(),this.debouncedSubscription=null)},e}(a);function Ve(e){e.debouncedNext()}var $e=function(){function e(e){this.total=e}return e.prototype.call=function(e,t){return t.subscribe(new Ge(e,this.total))},e}(),Ge=function(n){function e(e,t){e=n.call(this,e)||this;return e.total=t,e.count=0,e}return c(e,n),e.prototype._next=function(e){++this.count>this.total&&this.destination.next(e)},e}(a);function Ye(t){return function(e){return e.lift(new Ue(t))}}var Ue=function(){function e(e){this.value=e}return e.prototype.call=function(e,t){return t.subscribe(new qe(e,this.value))},e}(),qe=function(n){function e(e,t){e=n.call(this,e)||this;return e.value=t,e}return c(e,n),e.prototype._next=function(e){this.destination.next(this.value)},e}(a),e=function(r){function e(e,t){var n=r.call(this,e,t)||this;return n.scheduler=e,n.work=t,n}return c(e,r),e.prototype.schedule=function(e,t){return 0<(t=void 0===t?0:t)?r.prototype.schedule.call(this,e,t):(this.delay=t,this.state=e,this.scheduler.flush(this),this)},e.prototype.execute=function(e,t){return 0<t||this.closed?r.prototype.execute.call(this,e,t):this._execute(e,t)},e.prototype.requestAsyncId=function(e,t,n){return null!==(n=void 0===n?0:n)&&0<n||null===n&&0<this.delay?r.prototype.requestAsyncId.call(this,e,t,n):e.flush(this)},e}(e),Xe=new(function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return c(t,e),t}(He))(e),Ze=new s(function(e){return e.complete()});function Je(e){return e?(t=e,new s(function(e){return t.schedule(function(){return e.complete()})})):Ze;var t}function Qe(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var n=e[e.length-1];return me(n)?(e.pop(),Ae(e,n)):Te(e)}function et(e){var t=e.error;e.subscriber.error(t)}var tt=function(){function t(e,t,n){this.kind=e,this.value=t,this.error=n,this.hasValue="N"===e}return t.prototype.observe=function(e){switch(this.kind){case"N":return e.next&&e.next(this.value);case"E":return e.error&&e.error(this.error);case"C":return e.complete&&e.complete()}},t.prototype.do=function(e,t,n){switch(this.kind){case"N":return e&&e(this.value);case"E":return t&&t(this.error);case"C":return n&&n()}},t.prototype.accept=function(e,t,n){return e&&"function"==typeof e.next?this.observe(e):this.do(e,t,n)},t.prototype.toObservable=function(){var t,n;switch(this.kind){case"N":return Qe(this.value);case"E":return t=this.error,new s(n?function(e){return n.schedule(et,0,{error:t,subscriber:e})}:function(e){return e.error(t)});case"C":return Je()}throw new Error("unexpected notification kind value")},t.createNext=function(e){return void 0!==e?new t("N",e):t.undefinedValueNotification},t.createError=function(e){return new t("E",void 0,e)},t.createComplete=function(){return t.completeNotification},t.completeNotification=new t("C"),t.undefinedValueNotification=new t("N",void 0),t}();var nt=function(r){function t(e,t,n){void 0===n&&(n=0);e=r.call(this,e)||this;return e.scheduler=t,e.delay=n,e}return c(t,r),t.dispatch=function(e){var t=e.notification,e=e.destination;t.observe(e),this.unsubscribe()},t.prototype.scheduleMessage=function(e){this.destination.add(this.scheduler.schedule(t.dispatch,this.delay,new rt(e,this.destination)))},t.prototype._next=function(e){this.scheduleMessage(tt.createNext(e))},t.prototype._error=function(e){this.scheduleMessage(tt.createError(e)),this.unsubscribe()},t.prototype._complete=function(){this.scheduleMessage(tt.createComplete()),this.unsubscribe()},t}(a),rt=function(){return function(e,t){this.notification=e,this.destination=t}}(),ot=function(o){function e(e,t,n){void 0===e&&(e=Number.POSITIVE_INFINITY),void 0===t&&(t=Number.POSITIVE_INFINITY);var r=o.call(this)||this;return r.scheduler=n,r._events=[],r._infiniteTimeWindow=!1,r._bufferSize=e<1?1:e,r._windowTime=t<1?1:t,t===Number.POSITIVE_INFINITY?(r._infiniteTimeWindow=!0,r.next=r.nextInfiniteTimeWindow):r.next=r.nextTimeWindow,r}return c(e,o),e.prototype.nextInfiniteTimeWindow=function(e){var t;this.isStopped||((t=this._events).push(e),t.length>this._bufferSize&&t.shift()),o.prototype.next.call(this,e)},e.prototype.nextTimeWindow=function(e){this.isStopped||(this._events.push(new it(this._getNow(),e)),this._trimBufferThenGetEvents()),o.prototype.next.call(this,e)},e.prototype._subscribe=function(e){var t,n=this._infiniteTimeWindow,r=n?this._events:this._trimBufferThenGetEvents(),o=this.scheduler,i=r.length;if(this.closed)throw new pe;if(t=this.isStopped||this.hasError?u.EMPTY:(this.observers.push(e),new he(this,e)),o&&e.add(e=new nt(e,o)),n)for(var a=0;a<i&&!e.closed;a++)e.next(r[a]);else for(a=0;a<i&&!e.closed;a++)e.next(r[a].value);return this.hasError?e.error(this.thrownError):this.isStopped&&e.complete(),t},e.prototype._getNow=function(){return(this.scheduler||Xe).now()},e.prototype._trimBufferThenGetEvents=function(){for(var e=this._getNow(),t=this._bufferSize,n=this._windowTime,r=this._events,o=r.length,i=0;i<o&&!(e-r[i].time<n);)i++;return 0<(i=t<o?Math.max(i,o-t):i)&&r.splice(0,i),r},e}(ge),it=function(){return function(e,t){this.time=e,this.value=t}}();function at(e,t,n){var f=e&&"object"==typeof e?e:{bufferSize:e,windowTime:t,refCount:!1,scheduler:n};return function(e){return e.lift((t=(e=f).bufferSize,o=void 0===t?Number.POSITIVE_INFINITY:t,t=e.windowTime,i=void 0===t?Number.POSITIVE_INFINITY:t,a=e.refCount,c=e.scheduler,l=0,u=s=!1,function(e){var t;l++,!n||s?(s=!1,n=new ot(o,i,c),t=n.subscribe(this),r=e.subscribe({next:function(e){n.next(e)},error:function(e){s=!0,n.error(e)},complete:function(){u=!0,r=void 0,n.complete()}}),u&&(r=void 0)):t=n.subscribe(this),this.add(function(){l--,t.unsubscribe(),t=void 0,r&&!u&&a&&0===l&&(r.unsubscribe(),n=r=void 0)})}));var n,r,t,o,i,a,c,l,s,u}}function P(t,n){return function(e){if("function"!=typeof t)throw new TypeError("argument is not a function. Are you looking for `mapTo()`?");return e.lift(new ct(t,n))}}var ct=function(){function e(e,t){this.project=e,this.thisArg=t}return e.prototype.call=function(e,t){return t.subscribe(new lt(e,this.project,this.thisArg))},e}(),lt=function(r){function e(e,t,n){e=r.call(this,e)||this;return e.project=t,e.count=0,e.thisArg=n||e,e}return c(e,r),e.prototype._next=function(e){var t;try{t=this.project.call(this.thisArg,e,this.count++)}catch(e){return void this.destination.error(e)}this.destination.next(t)},e}(a);function st(t,n){return function(e){return e.lift(new ut(t,n))}}var ut=function(){function e(e,t){this.compare=e,this.keySelector=t}return e.prototype.call=function(e,t){return t.subscribe(new ft(e,this.compare,this.keySelector))},e}(),ft=function(r){function e(e,t,n){e=r.call(this,e)||this;return e.keySelector=n,e.hasKey=!1,"function"==typeof t&&(e.compare=t),e}return c(e,r),e.prototype.compare=function(e,t){return e===t},e.prototype._next=function(e){try{var t=this.keySelector,n=t?t(e):e}catch(e){return this.destination.error(e)}t=!1;if(this.hasKey)try{t=(0,this.compare)(this.key,n)}catch(e){return this.destination.error(e)}else this.hasKey=!0;t||(this.key=n,this.destination.next(e))},e}(a),dt=function(n){function e(e){var t=n.call(this)||this;return t.parent=e,t}return c(e,n),e.prototype._next=function(e){this.parent.notifyNext(e)},e.prototype._error=function(e){this.parent.notifyError(e),this.unsubscribe()},e.prototype._complete=function(){this.parent.notifyComplete(),this.unsubscribe()},e}(a),He=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return c(t,e),t.prototype.notifyNext=function(e){this.destination.next(e)},t.prototype.notifyError=function(e){this.destination.error(e)},t.prototype.notifyComplete=function(){this.destination.complete()},t}(a);function pt(e,t){if(!t.closed){if(e instanceof s)return e.subscribe(t);var n;try{n=Re(e)(t)}catch(e){t.error(e)}return n}}function ht(t,o,n){return void 0===n&&(n=Number.POSITIVE_INFINITY),"function"==typeof o?function(e){return e.pipe(ht(function(n,r){return Le(t(n,r)).pipe(P(function(e,t){return o(n,e,r,t)}))},n))}:("number"==typeof o&&(n=o),function(e){return e.lift(new vt(t,n))})}var vt=function(){function e(e,t){void 0===t&&(t=Number.POSITIVE_INFINITY),this.project=e,this.concurrent=t}return e.prototype.call=function(e,t){return t.subscribe(new gt(e,this.project,this.concurrent))},e}(),gt=function(r){function e(e,t,n){void 0===n&&(n=Number.POSITIVE_INFINITY);e=r.call(this,e)||this;return e.project=t,e.concurrent=n,e.hasCompleted=!1,e.buffer=[],e.active=0,e.index=0,e}return c(e,r),e.prototype._next=function(e){this.active<this.concurrent?this._tryNext(e):this.buffer.push(e)},e.prototype._tryNext=function(e){var t,n=this.index++;try{t=this.project(e,n)}catch(e){return void this.destination.error(e)}this.active++,this._innerSub(t)},e.prototype._innerSub=function(e){var t=new dt(this),n=this.destination,e=(n.add(t),pt(e,t));e!==t&&n.add(e)},e.prototype._complete=function(){this.hasCompleted=!0,0===this.active&&0===this.buffer.length&&this.destination.complete(),this.unsubscribe()},e.prototype.notifyNext=function(e){this.destination.next(e)},e.prototype.notifyComplete=function(){var e=this.buffer;this.active--,0<e.length?this._next(e.shift()):0===this.active&&this.hasCompleted&&this.destination.complete()},e}(He);function yt(e){return ht(ue,e=void 0===e?Number.POSITIVE_INFINITY:e)}function bt(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return yt(1)(Qe.apply(void 0,e))}function mt(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];var n=t[t.length-1];return me(n)?(t.pop(),function(e){return bt(t,e,n)}):function(e){return bt(t,e)}}var wt=function(){function e(){}return e.prototype.call=function(e,t){return t.subscribe(new xt(e))},e}(),xt=function(t){function e(e){e=t.call(this,e)||this;return e.hasPrev=!1,e}return c(e,t),e.prototype._next=function(e){var t;this.hasPrev?t=[this.prev,e]:this.hasPrev=!0,this.prev=e,t&&this.destination.next(t)},e}(a);function St(t,n){return function(e){return e.lift(new Ot(t,n))}}var Ot=function(){function e(e,t){this.predicate=e,this.thisArg=t}return e.prototype.call=function(e,t){return t.subscribe(new Et(e,this.predicate,this.thisArg))},e}(),Et=function(r){function e(e,t,n){e=r.call(this,e)||this;return e.predicate=t,e.thisArg=n,e.count=0,e}return c(e,r),e.prototype._next=function(e){var t;try{t=this.predicate.call(this.thisArg,e,this.count++)}catch(e){return void this.destination.error(e)}t&&this.destination.next(e)},e}(a);function kt(t,n,r){return function(e){return e.lift(new jt(t,n,r))}}var jt=function(){function e(e,t,n){this.nextOrObserver=e,this.error=t,this.complete=n}return e.prototype.call=function(e,t){return t.subscribe(new Ct(e,this.nextOrObserver,this.error,this.complete))},e}(),Ct=function(o){function e(e,t,n,r){e=o.call(this,e)||this;return e._tapNext=Ne,e._tapError=Ne,e._tapComplete=Ne,e._tapError=n||Ne,e._tapComplete=r||Ne,ee(t)?(e._context=e)._tapNext=t:t&&(e._context=t,e._tapNext=t.next||Ne,e._tapError=t.error||Ne,e._tapComplete=t.complete||Ne),e}return c(e,o),e.prototype._next=function(e){try{this._tapNext.call(this._context,e)}catch(e){return void this.destination.error(e)}this.destination.next(e)},e.prototype._error=function(e){try{this._tapError.call(this._context,e)}catch(e){return void this.destination.error(e)}this.destination.error(e)},e.prototype._complete=function(){try{this._tapComplete.call(this._context)}catch(e){return void this.destination.error(e)}return this.destination.complete()},e}(a);function Pt(t,o){return"function"==typeof o?function(e){return e.pipe(Pt(function(n,r){return Le(t(n,r)).pipe(P(function(e,t){return o(n,e,r,t)}))}))}:function(e){return e.lift(new Rt(t))}}var Rt=function(){function e(e){this.project=e}return e.prototype.call=function(e,t){return t.subscribe(new At(e,this.project))},e}(),At=function(n){function e(e,t){e=n.call(this,e)||this;return e.project=t,e.index=0,e}return c(e,n),e.prototype._next=function(e){var t,n=this.index++;try{t=this.project(e,n)}catch(e){return void this.destination.error(e)}this._innerSub(t)},e.prototype._innerSub=function(e){var t=this.innerSubscription,t=(t&&t.unsubscribe(),new dt(this)),n=this.destination;n.add(t),this.innerSubscription=pt(e,t),this.innerSubscription!==t&&n.add(this.innerSubscription)},e.prototype._complete=function(){var e=this.innerSubscription;e&&!e.closed||n.prototype._complete.call(this),this.unsubscribe()},e.prototype._unsubscribe=function(){this.innerSubscription=void 0},e.prototype.notifyComplete=function(){this.innerSubscription=void 0,this.isStopped&&n.prototype._complete.call(this)},e.prototype.notifyNext=function(e){this.destination.next(e)},e}(He),e=t(10),T=t.n(e);t(49);var Tt={log:function(){for(var e,t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];(e=console).log.apply(e,["[kd-table]"].concat(n))},warn:function(){for(var e,t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];(e=console).warn.apply(e,["[kd-table]"].concat(n))},error:function(){for(var e,t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];(e=console).error.apply(e,["[kd-table]"].concat(n))},table:function(){for(var e,t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];(e=console).table.apply(e,["[kd-table]"].concat(n))}};function D(e){return null==e.children||0===e.children.length}function Dt(e,t){var n,r,o,i,a="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(a)return r=!(n=!0),{s:function(){a=a.call(e)},n:function(){var e=a.next();return n=e.done,e},e:function(e){r=!0,o=e},f:function(){try{n||null==a.return||a.return()}finally{if(r)throw o}}};if(Array.isArray(e)||(a=function(e,t){var n;if(e)return"string"==typeof e?It(e,t):"Map"===(n="Object"===(n=Object.prototype.toString.call(e).slice(8,-1))&&e.constructor?e.constructor.name:n)||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?It(e,t):void 0}(e))||t&&e&&"number"==typeof e.length)return a&&(e=a),i=0,{s:t=function(){},n:function(){return i>=e.length?{done:!0}:{done:!1,value:e[i++]}},e:function(e){throw e},f:t};throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function It(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function I(e){var i=1<arguments.length&&void 0!==arguments[1]?arguments[1]:"pre",a=[];return function e(t){if(null==t)return;var n,r=Dt(t);try{for(r.s();!(n=r.n()).done;){var o=n.value;D(o)?a.push(o):"pre"===i?(a.push(o),e(o.children)):"post"===i?(e(o.children),a.push(o)):e(o.children)}}catch(e){r.e(e)}finally{r.f()}}(e),a}t(46),t(283);function R(e,n,r,t){return ee(r)&&(t=r,r=void 0),t?R(e,n,r).pipe(P(function(e){return J(e)?t.apply(void 0,e):t(e)})):new s(function(t){!function e(t,n,r,o,i){var a;if(Lt(t)){var c=t;t.addEventListener(n,r,i),a=function(){return c.removeEventListener(n,r,i)}}else if(Mt(t)){var l=t;t.on(n,r),a=function(){return l.off(n,r)}}else if(_t(t)){var s=t;t.addListener(n,r),a=function(){return s.removeListener(n,r)}}else{if(!t||!t.length)throw new TypeError("Invalid event target");for(var u=0,f=t.length;u<f;u++)e(t[u],n,r,o,i)}o.add(a)}(e,n,function(e){1<arguments.length?t.next(Array.prototype.slice.call(arguments)):t.next(e)},t,r)})}function _t(e){return e&&"function"==typeof e.addListener&&"function"==typeof e.removeListener}function Mt(e){return e&&"function"==typeof e.on&&"function"==typeof e.off}function Lt(e){return e&&"function"==typeof e.addEventListener&&"function"==typeof e.removeEventListener}var Nt={leading:!0,trailing:!1};var Ft=function(){function e(e,t,n,r){this.duration=e,this.scheduler=t,this.leading=n,this.trailing=r}return e.prototype.call=function(e,t){return t.subscribe(new Ht(e,this.duration,this.scheduler,this.leading,this.trailing))},e}(),Ht=function(i){function e(e,t,n,r,o){e=i.call(this,e)||this;return e.duration=t,e.scheduler=n,e.leading=r,e.trailing=o,e._hasTrailingValue=!1,e._trailingValue=null,e}return c(e,i),e.prototype._next=function(e){!this.throttled&&(this.add(this.throttled=this.scheduler.schedule(zt,this.duration,{subscriber:this})),this.leading)?this.destination.next(e):this.trailing&&(this._trailingValue=e,this._hasTrailingValue=!0)},e.prototype._complete=function(){this._hasTrailingValue&&this.destination.next(this._trailingValue),this.destination.complete()},e.prototype.clearThrottle=function(){var e=this.throttled;e&&(this.trailing&&this._hasTrailingValue&&(this.destination.next(this._trailingValue),this._trailingValue=null,this._hasTrailingValue=!1),e.unsubscribe(),this.remove(e),this.throttled=null)},e}(a);function zt(e){e.subscriber.clearThrottle()}var Bt=t(101),e=t(11);
|
|
46
|
+
***************************************************************************** */var re=function(e,t){return(re=Object.setPrototypeOf||({__proto__:[]}instanceof Array?function(e,t){e.__proto__=t}:function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])}))(e,t)};function c(e,t){function n(){this.constructor=e}re(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}var oe=!1,l={Promise:void 0,set useDeprecatedSynchronousErrorHandling(e){e&&(new Error).stack,oe=e},get useDeprecatedSynchronousErrorHandling(){return oe}};function ie(e){setTimeout(function(){throw e},0)}var ae={closed:!0,next:function(e){},error:function(e){if(l.useDeprecatedSynchronousErrorHandling)throw e;ie(e)},complete:function(){}},ce=function(){return"function"==typeof Symbol?Symbol("rxSubscriber"):"@@rxSubscriber_"+Math.random()}(),a=function(o){function i(e,t,n){var r=o.call(this)||this;switch(r.syncErrorValue=null,r.syncErrorThrown=!1,r.syncErrorThrowable=!1,r.isStopped=!1,arguments.length){case 0:r.destination=ae;break;case 1:if(!e){r.destination=ae;break}if("object"==typeof e){e instanceof i?(r.syncErrorThrowable=e.syncErrorThrowable,(r.destination=e).add(r)):(r.syncErrorThrowable=!0,r.destination=new le(r,e));break}default:r.syncErrorThrowable=!0,r.destination=new le(r,e,t,n)}return r}return c(i,o),i.prototype[ce]=function(){return this},i.create=function(e,t,n){e=new i(e,t,n);return e.syncErrorThrowable=!1,e},i.prototype.next=function(e){this.isStopped||this._next(e)},i.prototype.error=function(e){this.isStopped||(this.isStopped=!0,this._error(e))},i.prototype.complete=function(){this.isStopped||(this.isStopped=!0,this._complete())},i.prototype.unsubscribe=function(){this.closed||(this.isStopped=!0,o.prototype.unsubscribe.call(this))},i.prototype._next=function(e){this.destination.next(e)},i.prototype._error=function(e){this.destination.error(e),this.unsubscribe()},i.prototype._complete=function(){this.destination.complete(),this.unsubscribe()},i.prototype._unsubscribeAndRecycle=function(){var e=this._parentOrParents;return this._parentOrParents=null,this.unsubscribe(),this.closed=!1,this.isStopped=!1,this._parentOrParents=e,this},i}(u),le=function(a){function e(e,t,n,r){var o,i=a.call(this)||this,e=(i._parentSubscriber=e,i);return ee(t)?o=t:t&&(o=t.next,n=t.error,r=t.complete,t!==ae)&&(ee((e=Object.create(t)).unsubscribe)&&i.add(e.unsubscribe.bind(e)),e.unsubscribe=i.unsubscribe.bind(i)),i._context=e,i._next=o,i._error=n,i._complete=r,i}return c(e,a),e.prototype.next=function(e){var t;!this.isStopped&&this._next&&(t=this._parentSubscriber,l.useDeprecatedSynchronousErrorHandling&&t.syncErrorThrowable?this.__tryOrSetError(t,this._next,e)&&this.unsubscribe():this.__tryOrUnsub(this._next,e))},e.prototype.error=function(e){if(!this.isStopped){var t=this._parentSubscriber,n=l.useDeprecatedSynchronousErrorHandling;if(this._error)n&&t.syncErrorThrowable?this.__tryOrSetError(t,this._error,e):this.__tryOrUnsub(this._error,e),this.unsubscribe();else if(t.syncErrorThrowable)n?(t.syncErrorValue=e,t.syncErrorThrown=!0):ie(e),this.unsubscribe();else{if(this.unsubscribe(),n)throw e;ie(e)}}},e.prototype.complete=function(){var e,t,n=this;this.isStopped||(e=this._parentSubscriber,this._complete&&(t=function(){return n._complete.call(n._context)},l.useDeprecatedSynchronousErrorHandling&&e.syncErrorThrowable?this.__tryOrSetError(e,t):this.__tryOrUnsub(t)),this.unsubscribe())},e.prototype.__tryOrUnsub=function(e,t){try{e.call(this._context,t)}catch(e){if(this.unsubscribe(),l.useDeprecatedSynchronousErrorHandling)throw e;ie(e)}},e.prototype.__tryOrSetError=function(t,e,n){if(!l.useDeprecatedSynchronousErrorHandling)throw new Error("bad call");try{e.call(this._context,n)}catch(e){return l.useDeprecatedSynchronousErrorHandling?(t.syncErrorValue=e,t.syncErrorThrown=!0):(ie(e),!0)}return!1},e.prototype._unsubscribe=function(){var e=this._parentSubscriber;this._context=null,this._parentSubscriber=null,e.unsubscribe()},e}(a);var se=function(){return"function"==typeof Symbol&&Symbol.observable||"@@observable"}();function ue(e){return e}function fe(t){return 0===t.length?ue:1===t.length?t[0]:function(e){return t.reduce(function(e,t){return t(e)},e)}}var s=function(){function n(e){this._isScalar=!1,e&&(this._subscribe=e)}return n.prototype.lift=function(e){var t=new n;return t.source=this,t.operator=e,t},n.prototype.subscribe=function(e,t,n){var r=this.operator,e=function(e,t,n){if(e){if(e instanceof a)return e;if(e[ce])return e[ce]()}return e||t||n?new a(e,t,n):new a(ae)}(e,t,n);if(r?e.add(r.call(e,this.source)):e.add(this.source||l.useDeprecatedSynchronousErrorHandling&&!e.syncErrorThrowable?this._subscribe(e):this._trySubscribe(e)),l.useDeprecatedSynchronousErrorHandling&&e.syncErrorThrowable&&(e.syncErrorThrowable=!1,e.syncErrorThrown))throw e.syncErrorValue;return e},n.prototype._trySubscribe=function(t){try{return this._subscribe(t)}catch(e){l.useDeprecatedSynchronousErrorHandling&&(t.syncErrorThrown=!0,t.syncErrorValue=e),!function(e){for(;e;){var t=e,n=t.closed,r=t.destination,t=t.isStopped;if(n||t)return;e=r&&r instanceof a?r:null}return 1}(t)?console.warn(e):t.error(e)}},n.prototype.forEach=function(r,e){var o=this;return new(e=de(e))(function(e,t){var n=o.subscribe(function(e){try{r(e)}catch(e){t(e),n&&n.unsubscribe()}},t,e)})},n.prototype._subscribe=function(e){var t=this.source;return t&&t.subscribe(e)},n.prototype[se]=function(){return this},n.prototype.pipe=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return 0===e.length?this:fe(e)(this)},n.prototype.toPromise=function(e){var r=this;return new(e=de(e))(function(e,t){var n;r.subscribe(function(e){return n=e},function(e){return t(e)},function(){return e(n)})})},n.create=function(e){return new n(e)},n}();function de(e){if(e=e||l.Promise||Promise)return e;throw new Error("no Promise impl found")}var pe=function(){function e(){return Error.call(this),this.message="object unsubscribed",this.name="ObjectUnsubscribedError",this}return e.prototype=Object.create(Error.prototype),e}(),he=function(r){function e(e,t){var n=r.call(this)||this;return n.subject=e,n.subscriber=t,n.closed=!1,n}return c(e,r),e.prototype.unsubscribe=function(){var e,t;this.closed||(this.closed=!0,e=(t=this.subject).observers,this.subject=null,!e)||0===e.length||t.isStopped||t.closed||-1!==(t=e.indexOf(this.subscriber))&&e.splice(t,1)},e}(u),ve=function(n){function e(e){var t=n.call(this,e)||this;return t.destination=e,t}return c(e,n),e}(a),ge=function(t){function e(){var e=t.call(this)||this;return e.observers=[],e.closed=!1,e.isStopped=!1,e.hasError=!1,e.thrownError=null,e}return c(e,t),e.prototype[ce]=function(){return new ve(this)},e.prototype.lift=function(e){var t=new ye(this,this);return t.operator=e,t},e.prototype.next=function(e){if(this.closed)throw new pe;if(!this.isStopped)for(var t=this.observers,n=t.length,r=t.slice(),o=0;o<n;o++)r[o].next(e)},e.prototype.error=function(e){if(this.closed)throw new pe;this.hasError=!0,this.thrownError=e,this.isStopped=!0;for(var t=this.observers,n=t.length,r=t.slice(),o=0;o<n;o++)r[o].error(e);this.observers.length=0},e.prototype.complete=function(){if(this.closed)throw new pe;this.isStopped=!0;for(var e=this.observers,t=e.length,n=e.slice(),r=0;r<t;r++)n[r].complete();this.observers.length=0},e.prototype.unsubscribe=function(){this.isStopped=!0,this.closed=!0,this.observers=null},e.prototype._trySubscribe=function(e){if(this.closed)throw new pe;return t.prototype._trySubscribe.call(this,e)},e.prototype._subscribe=function(e){if(this.closed)throw new pe;return this.hasError?(e.error(this.thrownError),u.EMPTY):this.isStopped?(e.complete(),u.EMPTY):(this.observers.push(e),new he(this,e))},e.prototype.asObservable=function(){var e=new s;return e.source=this,e},e.create=function(e,t){return new ye(e,t)},e}(s),ye=function(r){function e(e,t){var n=r.call(this)||this;return n.destination=e,n.source=t,n}return c(e,r),e.prototype.next=function(e){var t=this.destination;t&&t.next&&t.next(e)},e.prototype.error=function(e){var t=this.destination;t&&t.error&&this.destination.error(e)},e.prototype.complete=function(){var e=this.destination;e&&e.complete&&this.destination.complete()},e.prototype._subscribe=function(e){return this.source?this.source.subscribe(e):u.EMPTY},e}(ge),be=function(n){function e(e){var t=n.call(this)||this;return t._value=e,t}return c(e,n),Object.defineProperty(e.prototype,"value",{get:function(){return this.getValue()},enumerable:!0,configurable:!0}),e.prototype._subscribe=function(e){var t=n.prototype._subscribe.call(this,e);return t&&!t.closed&&e.next(this._value),t},e.prototype.getValue=function(){if(this.hasError)throw this.thrownError;if(this.closed)throw new pe;return this._value},e.prototype.next=function(e){n.prototype.next.call(this,this._value=e)},e}(ge);function me(e){return e&&"function"==typeof e.schedule}var e=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return c(t,e),t.prototype.notifyNext=function(e,t,n,r,o){this.destination.next(t)},t.prototype.notifyError=function(e,t){this.destination.error(e)},t.prototype.notifyComplete=function(e){this.destination.complete()},t}(a),we=function(o){function e(e,t,n){var r=o.call(this)||this;return r.parent=e,r.outerValue=t,r.outerIndex=n,r.index=0,r}return c(e,o),e.prototype._next=function(e){this.parent.notifyNext(this.outerValue,e,this.outerIndex,this.index++,this)},e.prototype._error=function(e){this.parent.notifyError(e,this),this.unsubscribe()},e.prototype._complete=function(){this.parent.notifyComplete(this),this.unsubscribe()},e}(a),xe=function(r){return function(e){for(var t=0,n=r.length;t<n&&!e.closed;t++)e.next(r[t]);e.complete()}},Se=function(e){return function(t){return e.then(function(e){t.closed||(t.next(e),t.complete())},function(e){return t.error(e)}).then(null,ie),t}};function Oe(){return"function"==typeof Symbol&&Symbol.iterator?Symbol.iterator:"@@iterator"}var Ee=Oe(),ke=function(r){return function(t){for(var e=r[Ee]();;){var n=void 0;try{n=e.next()}catch(e){return t.error(e),t}if(n.done){t.complete();break}if(t.next(n.value),t.closed)break}return"function"==typeof e.return&&t.add(function(){e.return&&e.return()}),t}},je=function(n){return function(e){var t=n[se]();if("function"!=typeof t.subscribe)throw new TypeError("Provided object does not correctly implement Symbol.observable");return t.subscribe(e)}},Ce=function(e){return e&&"number"==typeof e.length&&"function"!=typeof e};function Pe(e){return e&&"function"!=typeof e.subscribe&&"function"==typeof e.then}var Re=function(e){if(e&&"function"==typeof e[se])return je(e);if(Ce(e))return xe(e);if(Pe(e))return Se(e);if(e&&"function"==typeof e[Ee])return ke(e);throw e=Q(e)?"an invalid object":"'"+e+"'",new TypeError("You provided "+e+" where a stream was expected. You can provide an Observable, Promise, Array, or Iterable.")};function Ae(r,o){return new s(function(e){var t=new u,n=0;return t.add(o.schedule(function(){n===r.length?e.complete():(e.next(r[n++]),e.closed||t.add(this.schedule()))})),t})}function Te(e,t){return t?Ae(e,t):new s(xe(e))}var De={};var Ie=function(){function e(e){this.resultSelector=e}return e.prototype.call=function(e,t){return t.subscribe(new _e(e,this.resultSelector))},e}(),_e=function(n){function e(e,t){e=n.call(this,e)||this;return e.resultSelector=t,e.active=0,e.values=[],e.observables=[],e}return c(e,n),e.prototype._next=function(e){this.values.push(De),this.observables.push(e)},e.prototype._complete=function(){var e=this.observables,t=e.length;if(0===t)this.destination.complete();else{this.active=t,this.toRespond=t;for(var n=0;n<t;n++){var r=e[n];this.add(function(e,t,n,r,o){if(!(o=void 0===o?new we(e,n,r):o).closed)return t instanceof s?t.subscribe(o):Re(t)(o)}(this,r,void 0,n))}}},e.prototype.notifyComplete=function(e){0==--this.active&&this.destination.complete()},e.prototype.notifyNext=function(e,t,n){var r=this.values,o=r[n],o=this.toRespond?o===De?--this.toRespond:this.toRespond:0;r[n]=t,0===o&&(this.resultSelector?this._tryResultSelector(r):this.destination.next(r.slice()))},e.prototype._tryResultSelector=function(e){var t;try{t=this.resultSelector.apply(this,e)}catch(e){return void this.destination.error(e)}this.destination.next(t)},e}(e);function Me(e,t){if(null!=e){if((l=e)&&"function"==typeof l[se])return a=e,c=t,new s(function(t){var n=new u;return n.add(c.schedule(function(){var e=a[se]();n.add(e.subscribe({next:function(e){n.add(c.schedule(function(){return t.next(e)}))},error:function(e){n.add(c.schedule(function(){return t.error(e)}))},complete:function(){n.add(c.schedule(function(){return t.complete()}))}}))})),n});if(Pe(e))return r=e,o=t,new s(function(t){var n=new u;return n.add(o.schedule(function(){return r.then(function(e){n.add(o.schedule(function(){t.next(e),n.add(o.schedule(function(){return t.complete()}))}))},function(e){n.add(o.schedule(function(){return t.error(e)}))})})),n});if(Ce(e))return Ae(e,t);if((l=e)&&"function"==typeof l[Ee]||"string"==typeof e){var n=e,i=t;if(n)return new s(function(r){var o,e=new u;return e.add(function(){o&&"function"==typeof o.return&&o.return()}),e.add(i.schedule(function(){o=n[Ee](),e.add(i.schedule(function(){if(!r.closed){try{var e=o.next(),t=e.value,n=e.done}catch(e){return void r.error(e)}n?r.complete():(r.next(t),this.schedule())}}))})),e});throw new Error("Iterable cannot be null")}}var r,o,a,c,l;throw new TypeError((null!==e&&typeof e||e)+" is not observable")}function Le(e,t){return t?Me(e,t):e instanceof s?e:new s(Re(e))}function Ne(){}var e=function(r){function e(e,t){var n=r.call(this,e,t)||this;return n.scheduler=e,n.work=t,n.pending=!1,n}return c(e,r),e.prototype.schedule=function(e,t){var n;return void 0===t&&(t=0),this.closed||(this.state=e,e=this.id,n=this.scheduler,null!=e&&(this.id=this.recycleAsyncId(n,e,t)),this.pending=!0,this.delay=t,this.id=this.id||this.requestAsyncId(n,this.id,t)),this},e.prototype.requestAsyncId=function(e,t,n){return void 0===n&&(n=0),setInterval(e.flush.bind(e,this),n)},e.prototype.recycleAsyncId=function(e,t,n){if(null!==(n=void 0===n?0:n)&&this.delay===n&&!1===this.pending)return t;clearInterval(t)},e.prototype.execute=function(e,t){if(this.closed)return new Error("executing a cancelled action");this.pending=!1;e=this._execute(e,t);if(e)return e;!1===this.pending&&null!=this.id&&(this.id=this.recycleAsyncId(this.scheduler,this.id,null))},e.prototype._execute=function(e,t){var n=!1,r=void 0;try{this.work(e)}catch(e){n=!0,r=!!e&&e||new Error(e)}if(n)return this.unsubscribe(),r},e.prototype._unsubscribe=function(){var e=this.id,t=this.scheduler,n=t.actions,r=n.indexOf(this);this.work=null,this.state=null,this.pending=!1,this.scheduler=null,-1!==r&&n.splice(r,1),null!=e&&(this.id=this.recycleAsyncId(t,e,null)),this.delay=null},e}(function(n){function e(e,t){return n.call(this)||this}return c(e,n),e.prototype.schedule=function(e,t){return void 0===t&&(t=0),this},e}(u)),Fe=function(){function n(e,t){void 0===t&&(t=n.now),this.SchedulerAction=e,this.now=t}return n.prototype.schedule=function(e,t,n){return void 0===t&&(t=0),new this.SchedulerAction(this,e).schedule(n,t)},n.now=function(){return Date.now()},n}(),He=function(r){function o(e,t){void 0===t&&(t=Fe.now);var n=r.call(this,e,function(){return o.delegate&&o.delegate!==n?o.delegate.now():t()})||this;return n.actions=[],n.active=!1,n.scheduled=void 0,n}return c(o,r),o.prototype.schedule=function(e,t,n){return void 0===t&&(t=0),o.delegate&&o.delegate!==this?o.delegate.schedule(e,t,n):r.prototype.schedule.call(this,e,t,n)},o.prototype.flush=function(e){var t,n=this.actions;if(this.active)n.push(e);else{this.active=!0;do{if(t=e.execute(e.state,e.delay))break}while(e=n.shift());if(this.active=!1,t){for(;e=n.shift();)e.unsubscribe();throw t}}},o}(Fe),ze=new He(e),Be=ze;var We=function(){function e(e,t){this.dueTime=e,this.scheduler=t}return e.prototype.call=function(e,t){return t.subscribe(new Ke(e,this.dueTime,this.scheduler))},e}(),Ke=function(r){function e(e,t,n){e=r.call(this,e)||this;return e.dueTime=t,e.scheduler=n,e.debouncedSubscription=null,e.lastValue=null,e.hasValue=!1,e}return c(e,r),e.prototype._next=function(e){this.clearDebounce(),this.lastValue=e,this.hasValue=!0,this.add(this.debouncedSubscription=this.scheduler.schedule(Ve,this.dueTime,this))},e.prototype._complete=function(){this.debouncedNext(),this.destination.complete()},e.prototype.debouncedNext=function(){var e;this.clearDebounce(),this.hasValue&&(e=this.lastValue,this.lastValue=null,this.hasValue=!1,this.destination.next(e))},e.prototype.clearDebounce=function(){var e=this.debouncedSubscription;null!==e&&(this.remove(e),e.unsubscribe(),this.debouncedSubscription=null)},e}(a);function Ve(e){e.debouncedNext()}var $e=function(){function e(e){this.total=e}return e.prototype.call=function(e,t){return t.subscribe(new Ge(e,this.total))},e}(),Ge=function(n){function e(e,t){e=n.call(this,e)||this;return e.total=t,e.count=0,e}return c(e,n),e.prototype._next=function(e){++this.count>this.total&&this.destination.next(e)},e}(a);function Ye(t){return function(e){return e.lift(new Ue(t))}}var Ue=function(){function e(e){this.value=e}return e.prototype.call=function(e,t){return t.subscribe(new qe(e,this.value))},e}(),qe=function(n){function e(e,t){e=n.call(this,e)||this;return e.value=t,e}return c(e,n),e.prototype._next=function(e){this.destination.next(this.value)},e}(a),e=function(r){function e(e,t){var n=r.call(this,e,t)||this;return n.scheduler=e,n.work=t,n}return c(e,r),e.prototype.schedule=function(e,t){return 0<(t=void 0===t?0:t)?r.prototype.schedule.call(this,e,t):(this.delay=t,this.state=e,this.scheduler.flush(this),this)},e.prototype.execute=function(e,t){return 0<t||this.closed?r.prototype.execute.call(this,e,t):this._execute(e,t)},e.prototype.requestAsyncId=function(e,t,n){return null!==(n=void 0===n?0:n)&&0<n||null===n&&0<this.delay?r.prototype.requestAsyncId.call(this,e,t,n):e.flush(this)},e}(e),Xe=new(function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return c(t,e),t}(He))(e),Ze=new s(function(e){return e.complete()});function Je(e){return e?(t=e,new s(function(e){return t.schedule(function(){return e.complete()})})):Ze;var t}function Qe(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var n=e[e.length-1];return me(n)?(e.pop(),Ae(e,n)):Te(e)}function et(e){var t=e.error;e.subscriber.error(t)}var tt=function(){function t(e,t,n){this.kind=e,this.value=t,this.error=n,this.hasValue="N"===e}return t.prototype.observe=function(e){switch(this.kind){case"N":return e.next&&e.next(this.value);case"E":return e.error&&e.error(this.error);case"C":return e.complete&&e.complete()}},t.prototype.do=function(e,t,n){switch(this.kind){case"N":return e&&e(this.value);case"E":return t&&t(this.error);case"C":return n&&n()}},t.prototype.accept=function(e,t,n){return e&&"function"==typeof e.next?this.observe(e):this.do(e,t,n)},t.prototype.toObservable=function(){var t,n;switch(this.kind){case"N":return Qe(this.value);case"E":return t=this.error,new s(n?function(e){return n.schedule(et,0,{error:t,subscriber:e})}:function(e){return e.error(t)});case"C":return Je()}throw new Error("unexpected notification kind value")},t.createNext=function(e){return void 0!==e?new t("N",e):t.undefinedValueNotification},t.createError=function(e){return new t("E",void 0,e)},t.createComplete=function(){return t.completeNotification},t.completeNotification=new t("C"),t.undefinedValueNotification=new t("N",void 0),t}();var nt=function(r){function t(e,t,n){void 0===n&&(n=0);e=r.call(this,e)||this;return e.scheduler=t,e.delay=n,e}return c(t,r),t.dispatch=function(e){var t=e.notification,e=e.destination;t.observe(e),this.unsubscribe()},t.prototype.scheduleMessage=function(e){this.destination.add(this.scheduler.schedule(t.dispatch,this.delay,new rt(e,this.destination)))},t.prototype._next=function(e){this.scheduleMessage(tt.createNext(e))},t.prototype._error=function(e){this.scheduleMessage(tt.createError(e)),this.unsubscribe()},t.prototype._complete=function(){this.scheduleMessage(tt.createComplete()),this.unsubscribe()},t}(a),rt=function(){return function(e,t){this.notification=e,this.destination=t}}(),ot=function(o){function e(e,t,n){void 0===e&&(e=Number.POSITIVE_INFINITY),void 0===t&&(t=Number.POSITIVE_INFINITY);var r=o.call(this)||this;return r.scheduler=n,r._events=[],r._infiniteTimeWindow=!1,r._bufferSize=e<1?1:e,r._windowTime=t<1?1:t,t===Number.POSITIVE_INFINITY?(r._infiniteTimeWindow=!0,r.next=r.nextInfiniteTimeWindow):r.next=r.nextTimeWindow,r}return c(e,o),e.prototype.nextInfiniteTimeWindow=function(e){var t;this.isStopped||((t=this._events).push(e),t.length>this._bufferSize&&t.shift()),o.prototype.next.call(this,e)},e.prototype.nextTimeWindow=function(e){this.isStopped||(this._events.push(new it(this._getNow(),e)),this._trimBufferThenGetEvents()),o.prototype.next.call(this,e)},e.prototype._subscribe=function(e){var t,n=this._infiniteTimeWindow,r=n?this._events:this._trimBufferThenGetEvents(),o=this.scheduler,i=r.length;if(this.closed)throw new pe;if(t=this.isStopped||this.hasError?u.EMPTY:(this.observers.push(e),new he(this,e)),o&&e.add(e=new nt(e,o)),n)for(var a=0;a<i&&!e.closed;a++)e.next(r[a]);else for(a=0;a<i&&!e.closed;a++)e.next(r[a].value);return this.hasError?e.error(this.thrownError):this.isStopped&&e.complete(),t},e.prototype._getNow=function(){return(this.scheduler||Xe).now()},e.prototype._trimBufferThenGetEvents=function(){for(var e=this._getNow(),t=this._bufferSize,n=this._windowTime,r=this._events,o=r.length,i=0;i<o&&!(e-r[i].time<n);)i++;return 0<(i=t<o?Math.max(i,o-t):i)&&r.splice(0,i),r},e}(ge),it=function(){return function(e,t){this.time=e,this.value=t}}();function at(e,t,n){var f=e&&"object"==typeof e?e:{bufferSize:e,windowTime:t,refCount:!1,scheduler:n};return function(e){return e.lift((t=(e=f).bufferSize,o=void 0===t?Number.POSITIVE_INFINITY:t,t=e.windowTime,i=void 0===t?Number.POSITIVE_INFINITY:t,a=e.refCount,c=e.scheduler,l=0,u=s=!1,function(e){var t;l++,!n||s?(s=!1,n=new ot(o,i,c),t=n.subscribe(this),r=e.subscribe({next:function(e){n.next(e)},error:function(e){s=!0,n.error(e)},complete:function(){u=!0,r=void 0,n.complete()}}),u&&(r=void 0)):t=n.subscribe(this),this.add(function(){l--,t.unsubscribe(),t=void 0,r&&!u&&a&&0===l&&(r.unsubscribe(),n=r=void 0)})}));var n,r,t,o,i,a,c,l,s,u}}function R(t,n){return function(e){if("function"!=typeof t)throw new TypeError("argument is not a function. Are you looking for `mapTo()`?");return e.lift(new ct(t,n))}}var ct=function(){function e(e,t){this.project=e,this.thisArg=t}return e.prototype.call=function(e,t){return t.subscribe(new lt(e,this.project,this.thisArg))},e}(),lt=function(r){function e(e,t,n){e=r.call(this,e)||this;return e.project=t,e.count=0,e.thisArg=n||e,e}return c(e,r),e.prototype._next=function(e){var t;try{t=this.project.call(this.thisArg,e,this.count++)}catch(e){return void this.destination.error(e)}this.destination.next(t)},e}(a);function st(t,n){return function(e){return e.lift(new ut(t,n))}}var ut=function(){function e(e,t){this.compare=e,this.keySelector=t}return e.prototype.call=function(e,t){return t.subscribe(new ft(e,this.compare,this.keySelector))},e}(),ft=function(r){function e(e,t,n){e=r.call(this,e)||this;return e.keySelector=n,e.hasKey=!1,"function"==typeof t&&(e.compare=t),e}return c(e,r),e.prototype.compare=function(e,t){return e===t},e.prototype._next=function(e){try{var t=this.keySelector,n=t?t(e):e}catch(e){return this.destination.error(e)}t=!1;if(this.hasKey)try{t=(0,this.compare)(this.key,n)}catch(e){return this.destination.error(e)}else this.hasKey=!0;t||(this.key=n,this.destination.next(e))},e}(a),dt=function(n){function e(e){var t=n.call(this)||this;return t.parent=e,t}return c(e,n),e.prototype._next=function(e){this.parent.notifyNext(e)},e.prototype._error=function(e){this.parent.notifyError(e),this.unsubscribe()},e.prototype._complete=function(){this.parent.notifyComplete(),this.unsubscribe()},e}(a),He=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return c(t,e),t.prototype.notifyNext=function(e){this.destination.next(e)},t.prototype.notifyError=function(e){this.destination.error(e)},t.prototype.notifyComplete=function(){this.destination.complete()},t}(a);function pt(e,t){if(!t.closed){if(e instanceof s)return e.subscribe(t);var n;try{n=Re(e)(t)}catch(e){t.error(e)}return n}}function ht(t,o,n){return void 0===n&&(n=Number.POSITIVE_INFINITY),"function"==typeof o?function(e){return e.pipe(ht(function(n,r){return Le(t(n,r)).pipe(R(function(e,t){return o(n,e,r,t)}))},n))}:("number"==typeof o&&(n=o),function(e){return e.lift(new vt(t,n))})}var vt=function(){function e(e,t){void 0===t&&(t=Number.POSITIVE_INFINITY),this.project=e,this.concurrent=t}return e.prototype.call=function(e,t){return t.subscribe(new gt(e,this.project,this.concurrent))},e}(),gt=function(r){function e(e,t,n){void 0===n&&(n=Number.POSITIVE_INFINITY);e=r.call(this,e)||this;return e.project=t,e.concurrent=n,e.hasCompleted=!1,e.buffer=[],e.active=0,e.index=0,e}return c(e,r),e.prototype._next=function(e){this.active<this.concurrent?this._tryNext(e):this.buffer.push(e)},e.prototype._tryNext=function(e){var t,n=this.index++;try{t=this.project(e,n)}catch(e){return void this.destination.error(e)}this.active++,this._innerSub(t)},e.prototype._innerSub=function(e){var t=new dt(this),n=this.destination,e=(n.add(t),pt(e,t));e!==t&&n.add(e)},e.prototype._complete=function(){this.hasCompleted=!0,0===this.active&&0===this.buffer.length&&this.destination.complete(),this.unsubscribe()},e.prototype.notifyNext=function(e){this.destination.next(e)},e.prototype.notifyComplete=function(){var e=this.buffer;this.active--,0<e.length?this._next(e.shift()):0===this.active&&this.hasCompleted&&this.destination.complete()},e}(He);function yt(e){return ht(ue,e=void 0===e?Number.POSITIVE_INFINITY:e)}function bt(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return yt(1)(Qe.apply(void 0,e))}function mt(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];var n=t[t.length-1];return me(n)?(t.pop(),function(e){return bt(t,e,n)}):function(e){return bt(t,e)}}var wt=function(){function e(){}return e.prototype.call=function(e,t){return t.subscribe(new xt(e))},e}(),xt=function(t){function e(e){e=t.call(this,e)||this;return e.hasPrev=!1,e}return c(e,t),e.prototype._next=function(e){var t;this.hasPrev?t=[this.prev,e]:this.hasPrev=!0,this.prev=e,t&&this.destination.next(t)},e}(a);function St(t,n){return function(e){return e.lift(new Ot(t,n))}}var Ot=function(){function e(e,t){this.predicate=e,this.thisArg=t}return e.prototype.call=function(e,t){return t.subscribe(new Et(e,this.predicate,this.thisArg))},e}(),Et=function(r){function e(e,t,n){e=r.call(this,e)||this;return e.predicate=t,e.thisArg=n,e.count=0,e}return c(e,r),e.prototype._next=function(e){var t;try{t=this.predicate.call(this.thisArg,e,this.count++)}catch(e){return void this.destination.error(e)}t&&this.destination.next(e)},e}(a);function kt(t,n,r){return function(e){return e.lift(new jt(t,n,r))}}var jt=function(){function e(e,t,n){this.nextOrObserver=e,this.error=t,this.complete=n}return e.prototype.call=function(e,t){return t.subscribe(new Ct(e,this.nextOrObserver,this.error,this.complete))},e}(),Ct=function(o){function e(e,t,n,r){e=o.call(this,e)||this;return e._tapNext=Ne,e._tapError=Ne,e._tapComplete=Ne,e._tapError=n||Ne,e._tapComplete=r||Ne,ee(t)?(e._context=e)._tapNext=t:t&&(e._context=t,e._tapNext=t.next||Ne,e._tapError=t.error||Ne,e._tapComplete=t.complete||Ne),e}return c(e,o),e.prototype._next=function(e){try{this._tapNext.call(this._context,e)}catch(e){return void this.destination.error(e)}this.destination.next(e)},e.prototype._error=function(e){try{this._tapError.call(this._context,e)}catch(e){return void this.destination.error(e)}this.destination.error(e)},e.prototype._complete=function(){try{this._tapComplete.call(this._context)}catch(e){return void this.destination.error(e)}return this.destination.complete()},e}(a);function Pt(t,o){return"function"==typeof o?function(e){return e.pipe(Pt(function(n,r){return Le(t(n,r)).pipe(R(function(e,t){return o(n,e,r,t)}))}))}:function(e){return e.lift(new Rt(t))}}var Rt=function(){function e(e){this.project=e}return e.prototype.call=function(e,t){return t.subscribe(new At(e,this.project))},e}(),At=function(n){function e(e,t){e=n.call(this,e)||this;return e.project=t,e.index=0,e}return c(e,n),e.prototype._next=function(e){var t,n=this.index++;try{t=this.project(e,n)}catch(e){return void this.destination.error(e)}this._innerSub(t)},e.prototype._innerSub=function(e){var t=this.innerSubscription,t=(t&&t.unsubscribe(),new dt(this)),n=this.destination;n.add(t),this.innerSubscription=pt(e,t),this.innerSubscription!==t&&n.add(this.innerSubscription)},e.prototype._complete=function(){var e=this.innerSubscription;e&&!e.closed||n.prototype._complete.call(this),this.unsubscribe()},e.prototype._unsubscribe=function(){this.innerSubscription=void 0},e.prototype.notifyComplete=function(){this.innerSubscription=void 0,this.isStopped&&n.prototype._complete.call(this)},e.prototype.notifyNext=function(e){this.destination.next(e)},e}(He),e=t(10),I=t.n(e);t(49);var Tt={log:function(){for(var e,t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];(e=console).log.apply(e,["[kd-table]"].concat(n))},warn:function(){for(var e,t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];(e=console).warn.apply(e,["[kd-table]"].concat(n))},error:function(){for(var e,t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];(e=console).error.apply(e,["[kd-table]"].concat(n))},table:function(){for(var e,t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];(e=console).table.apply(e,["[kd-table]"].concat(n))}};function _(e){return null==e.children||0===e.children.length}function Dt(e,t){var n,r,o,i,a="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(a)return r=!(n=!0),{s:function(){a=a.call(e)},n:function(){var e=a.next();return n=e.done,e},e:function(e){r=!0,o=e},f:function(){try{n||null==a.return||a.return()}finally{if(r)throw o}}};if(Array.isArray(e)||(a=function(e,t){var n;if(e)return"string"==typeof e?It(e,t):"Map"===(n="Object"===(n=Object.prototype.toString.call(e).slice(8,-1))&&e.constructor?e.constructor.name:n)||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?It(e,t):void 0}(e))||t&&e&&"number"==typeof e.length)return a&&(e=a),i=0,{s:t=function(){},n:function(){return i>=e.length?{done:!0}:{done:!1,value:e[i++]}},e:function(e){throw e},f:t};throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function It(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function M(e){var i=1<arguments.length&&void 0!==arguments[1]?arguments[1]:"pre",a=[];return function e(t){if(null==t)return;var n,r=Dt(t);try{for(r.s();!(n=r.n()).done;){var o=n.value;_(o)?a.push(o):"pre"===i?(a.push(o),e(o.children)):"post"===i?(e(o.children),a.push(o)):e(o.children)}}catch(e){r.e(e)}finally{r.f()}}(e),a}t(46),t(283);function A(e,n,r,t){return ee(r)&&(t=r,r=void 0),t?A(e,n,r).pipe(R(function(e){return J(e)?t.apply(void 0,e):t(e)})):new s(function(t){!function e(t,n,r,o,i){var a;if(Lt(t)){var c=t;t.addEventListener(n,r,i),a=function(){return c.removeEventListener(n,r,i)}}else if(Mt(t)){var l=t;t.on(n,r),a=function(){return l.off(n,r)}}else if(_t(t)){var s=t;t.addListener(n,r),a=function(){return s.removeListener(n,r)}}else{if(!t||!t.length)throw new TypeError("Invalid event target");for(var u=0,f=t.length;u<f;u++)e(t[u],n,r,o,i)}o.add(a)}(e,n,function(e){1<arguments.length?t.next(Array.prototype.slice.call(arguments)):t.next(e)},t,r)})}function _t(e){return e&&"function"==typeof e.addListener&&"function"==typeof e.removeListener}function Mt(e){return e&&"function"==typeof e.on&&"function"==typeof e.off}function Lt(e){return e&&"function"==typeof e.addEventListener&&"function"==typeof e.removeEventListener}var Nt={leading:!0,trailing:!1};var Ft=function(){function e(e,t,n,r){this.duration=e,this.scheduler=t,this.leading=n,this.trailing=r}return e.prototype.call=function(e,t){return t.subscribe(new Ht(e,this.duration,this.scheduler,this.leading,this.trailing))},e}(),Ht=function(i){function e(e,t,n,r,o){e=i.call(this,e)||this;return e.duration=t,e.scheduler=n,e.leading=r,e.trailing=o,e._hasTrailingValue=!1,e._trailingValue=null,e}return c(e,i),e.prototype._next=function(e){!this.throttled&&(this.add(this.throttled=this.scheduler.schedule(zt,this.duration,{subscriber:this})),this.leading)?this.destination.next(e):this.trailing&&(this._trailingValue=e,this._hasTrailingValue=!0)},e.prototype._complete=function(){this._hasTrailingValue&&this.destination.next(this._trailingValue),this.destination.complete()},e.prototype.clearThrottle=function(){var e=this.throttled;e&&(this.trailing&&this._hasTrailingValue&&(this.destination.next(this._trailingValue),this._trailingValue=null,this._hasTrailingValue=!1),e.unsubscribe(),this.remove(e),this.throttled=null)},e}(a);function zt(e){e.subscriber.clearThrottle()}var Bt=t(101),e=t(11);
|
|
47
47
|
/*!
|
|
48
48
|
* css-vars-ponyfill
|
|
49
49
|
* v2.4.8
|
|
@@ -213,5 +213,5 @@ function E(){return(E=Object.assign?Object.assign.bind():function(e){for(var t=1
|
|
|
213
213
|
* onComplete(cssText, styleNode, cssVariables, benchmark) {},
|
|
214
214
|
* onFinally(hasChanged, hasNativeSupport, benchmark)
|
|
215
215
|
* });
|
|
216
|
-
*/function fn(){var a,n,r,o=0<arguments.length&&void 0!==arguments[0]?arguments[0]:{},i="cssVars(): ",w=E({},on,o);function x(e,t,n,r){!w.silent&&window.console&&console.error("".concat(i).concat(e,"\n"),t),w.onError(e,t,n,r)}function S(e){!w.silent&&window.console&&console.warn("".concat(i).concat(e)),w.onWarning(e)}function O(e){w.onFinally(Boolean(e),nn,pn()-w.__benchmark)}if(tn)if(w.watch)w.watch=on.watch,a=w,window.MutationObserver&&(f&&(f.disconnect(),f=null),(f=new MutationObserver(function(e){e.some(function(e){return function(e){var t=!1;{var n,r,o,i;"attributes"===e.type&&l(e.target)&&!c(e.target)&&(n="disabled"===e.attributeName,r="href"===e.attributeName,o="skip"===e.target.getAttribute("data-cssvars"),i="src"===e.target.getAttribute("data-cssvars"),n?t=!o&&!i:r&&(o?e.target.setAttribute("data-cssvars",""):i&&hn(a.rootElement,!0),t=!0))}return t}(e)||function(e){var t=!1;{var n;"childList"===e.type&&(n=s(e.target),e="out"===e.target.getAttribute("data-cssvars"),t=n&&!e)}return t}(e)||function(e){var t=!1;"childList"===e.type&&(t=[].slice.call(e.addedNodes).some(function(e){var t=1===e.nodeType&&e.hasAttribute("data-cssvars"),n=s(e)&&an.cssVars.test(e.textContent);return!t&&(l(e)||n)&&!c(e)}));return t}(e)||function(e){var t=!1;"childList"===e.type&&(t=[].slice.call(e.removedNodes).some(function(e){var t=1===e.nodeType,n=t&&"out"===e.getAttribute("data-cssvars"),t=t&&"src"===e.getAttribute("data-cssvars"),r=t;return(t||n)&&(n=e.getAttribute("data-cssvars-group"),e=a.rootElement.querySelector('[data-cssvars-group="'.concat(n,'"]')),t&&hn(a.rootElement,!0),e)&&e.parentNode.removeChild(e),r}));return t}(e)})&&fn(a)})).observe(document.documentElement,{attributes:!0,attributeFilter:["disabled","href"],childList:!0,subtree:!0})),fn(w);else{if(!1===w.watch&&f&&(f.disconnect(),f=null),!w.__benchmark){if(cn===w.rootElement)return void function(e){var t=1<arguments.length&&void 0!==arguments[1]?arguments[1]:100;clearTimeout(sn),sn=setTimeout(function(){e.__benchmark=null,fn(e)},t)}(o);var e=[].slice.call(w.rootElement.querySelectorAll('[data-cssvars]:not([data-cssvars="out"])'));w.__benchmark=pn(),w.exclude=[f?'[data-cssvars]:not([data-cssvars=""])':'[data-cssvars="out"]',"link[disabled]:not([data-cssvars])",w.exclude].filter(function(e){return e}).join(","),w.variables=function(){var n=0<arguments.length&&void 0!==arguments[0]?arguments[0]:{},r=/^-{2}/;return Object.keys(n).reduce(function(e,t){return e[r.test(t)?t:"--".concat(t.replace(/^-+/,""))]=n[t],e},{})}(w.variables),e.forEach(function(e){var t="style"===e.nodeName.toLowerCase()&&e.__cssVars.text,n=t&&e.textContent!==e.__cssVars.text;t&&n&&(e.sheet&&(e.sheet.disabled=!1),e.setAttribute("data-cssvars",""))}),f||([].slice.call(w.rootElement.querySelectorAll('[data-cssvars="out"]')).forEach(function(e){var t=e.getAttribute("data-cssvars-group");(t?w.rootElement.querySelector('[data-cssvars="src"][data-cssvars-group="'.concat(t,'"]')):null)||e.parentNode.removeChild(e)}),ln&&e.length<ln&&(ln=e.length,k.dom={}))}"loading"!==document.readyState?nn&&w.onlyLegacy?(n=!1,w.updateDOM&&(r=w.rootElement.host||(w.rootElement===document?document.documentElement:w.rootElement),Object.keys(w.variables).forEach(function(e){var t=w.variables[e];n=n||t!==getComputedStyle(r).getPropertyValue(e),r.style.setProperty(e,t)})),O(n)):!un&&(w.shadowDOM||w.rootElement.shadowRoot||w.rootElement.host)?Kt({rootElement:on.rootElement,include:on.include,exclude:w.exclude,skipDisabled:!1,onSuccess:function(e,t,n){return(!(t.sheet||{}).disabled||t.__cssVars)&&((e=e.replace(an.cssComments,"").replace(an.cssMediaQueries,"")).match(an.cssVarDeclRules)||[]).join("")||!1},onComplete:function(e,t,n){Xt(e,{store:k.dom,onWarning:S}),un=!0,fn(w)}}):(cn=w.rootElement,Kt({rootElement:w.rootElement,include:w.include,exclude:w.exclude,skipDisabled:!1,onBeforeSend:w.onBeforeSend,onError:function(e,t,n){var n=e.responseURL||dn(n,location.href),r=e.statusText?"(".concat(e.statusText,")"):"Unspecified Error"+(0===e.status?" (possibly CORS related)":"");x("CSS XHR Error: ".concat(n," ").concat(e.status," ").concat(r),t,e,n)},onSuccess:function(e,t,n){var r,o,i,a;return!((t.sheet||{}).disabled&&!t.__cssVars)&&(r="link"===t.nodeName.toLowerCase(),o="style"===t.nodeName.toLowerCase()&&e!==t.textContent,t=w.onSuccess(e,t,n),e=void 0!==t&&!1===Boolean(t)?"":t||e,w.updateURLs&&(r||o)&&(a=n,((i=e).replace(an.cssComments,"").match(an.cssUrls)||[]).forEach(function(e){var t=e.replace(an.cssUrls,"$1"),n=dn(t,a);i=i.replace(e,e.replace(t,n))}),e=i),e)},onComplete:function(e,s){var t=2<arguments.length&&void 0!==arguments[2]?arguments[2]:[],n=E({},k.dom,k.user);if(k.job={},t.forEach(function(t,e){e=s[e];if(t.__cssVars=t.__cssVars||{},t.__cssVars.text=e,an.cssVars.test(e))try{var n=qt(e,{preserveStatic:w.preserveStatic,removeComments:!0});Xt(n,{parseHost:Boolean(w.rootElement.host),store:k.dom,onWarning:S}),t.__cssVars.tree=n}catch(e){x(e.message,t)}}),E(k.job,k.dom),w.updateDOM?(E(k.user,w.variables),E(k.job,k.user)):(E(k.job,k.user,w.variables),E(n,w.variables)),0<rn.job&&Boolean(Object.keys(k.job).length>Object.keys(n).length||Boolean(Object.keys(n).length&&Object.keys(k.job).some(function(e){return k.job[e]!==n[e]}))))hn(w.rootElement),fn(w);else{var u=[],f=[],d=!1;if(w.updateDOM&&rn.job++,t.forEach(function(t,e){var n=!t.__cssVars.tree;if(t.__cssVars.tree)try{en(t.__cssVars.tree,E({},w,{variables:k.job,onWarning:S}));var r,o,i,a,c,l=Zt(t.__cssVars.tree);w.updateDOM?(r=s[e],o=an.cssVarFunc.test(r),t.getAttribute("data-cssvars")||t.setAttribute("data-cssvars","src"),l.length&&o&&(i=t.getAttribute("data-cssvars-group")||++rn.group,a=l.replace(/\s/g,""),c=w.rootElement.querySelector('[data-cssvars="out"][data-cssvars-group="'.concat(i,'"]'))||document.createElement("style"),d=d||an.cssKeyframes.test(l),w.preserveStatic&&t.sheet&&(t.sheet.disabled=!0),c.hasAttribute("data-cssvars")||c.setAttribute("data-cssvars","out"),a===t.textContent.replace(/\s/g,"")?(n=!0,c&&c.parentNode&&(t.removeAttribute("data-cssvars-group"),c.parentNode.removeChild(c))):a!==c.textContent.replace(/\s/g,"")&&([t,c].forEach(function(e){e.setAttribute("data-cssvars-job",rn.job),e.setAttribute("data-cssvars-group",i)}),c.textContent=l,u.push(l),f.push(c),c.parentNode||t.parentNode.insertBefore(c,t.nextSibling)))):t.textContent.replace(/\s/g,"")!==l&&u.push(l)}catch(e){x(e.message,t)}n&&t.setAttribute("data-cssvars","skip"),t.hasAttribute("data-cssvars-job")||t.setAttribute("data-cssvars-job",rn.job)}),ln=w.rootElement.querySelectorAll('[data-cssvars]:not([data-cssvars="out"])').length,w.shadowDOM)for(var r,o=[].concat(w.rootElement).concat([].slice.call(w.rootElement.querySelectorAll("*"))),i=0;r=o[i];++i)r.shadowRoot&&r.shadowRoot.querySelector("style")&&fn(E({},w,{rootElement:r.shadowRoot}));if(w.updateDOM&&d){var t=w.rootElement,a=["animation-name","-moz-animation-name","-webkit-animation-name"].filter(function(e){return getComputedStyle(document.body)[e]})[0];if(a){for(var c=[].slice.call(t.querySelectorAll("*")),l=[],p="__CSSVARSPONYFILL-KEYFRAMES__",h=0,v=c.length;h<v;h++){var g=c[h];"none"!==getComputedStyle(g)[a]&&(g.style[a]+=p,l.push(g))}document.body.offsetHeight;for(var y=0,b=l.length;y<b;y++){var m=l[y].style;m[a]=m[a].replace(p,"")}}}cn=!1,w.onComplete(u.join(""),f,JSON.parse(JSON.stringify(k.job)),pn()-w.__benchmark),O(f.length)}}})):document.addEventListener("DOMContentLoaded",function e(t){fn(o),document.removeEventListener("DOMContentLoaded",e)})}function c(e){var t=l(e)&&e.hasAttribute("disabled"),e=(e.sheet||{}).disabled;return t||e}function l(e){return"link"===e.nodeName.toLowerCase()&&-1!==(e.getAttribute("rel")||"").indexOf("stylesheet")}function s(e){return"style"===e.nodeName.toLowerCase()}}function dn(e,t){var t=1<arguments.length&&void 0!==t?t:location.href,n=document.implementation.createHTMLDocument(""),r=n.createElement("base"),o=n.createElement("a");return n.head.appendChild(r),n.body.appendChild(o),r.href=t,o.href=e,o.href}function pn(){return tn&&(window.performance||{}).now?window.performance.now():(new Date).getTime()}function hn(e,t){t=1<arguments.length&&void 0!==t&&t;[].slice.call(e.querySelectorAll('[data-cssvars="skip"],[data-cssvars="src"]')).forEach(function(e){return e.setAttribute("data-cssvars","")}),t&&(k.dom={})}function _(e,t){if(null==e)return t;if(null==t)return e;for(var n=O()({},e),r=0,o=Object.keys(t);r<o.length;r++){var i,a=o[r],c=t[a],l=F()(c);null===c?n[a]=null:void 0!==c&&("number"===l||"string"===l||"boolean"===l?n[a]="className"===a?C()(n[a],c):c:"function"===l?(i=n[a],n[a]=null==i?c:function(e,t){return function(){e.apply(void 0,arguments),t.apply(void 0,arguments)}}(i,c)):"object"===l&&(n[a]=O()({},n[a],c)))}return n}fn.reset=function(){for(var e in rn.job=0,rn.group=0,cn=!1,f&&(f.disconnect(),f=null),ln=0,sn=null,un=!1,k)k[e]={}};var vn,gn=function(){var e,t=navigator.userAgent,n={};(e=t.match(/Edge\/(.*?)(?=\s|$)/))&&(n.name="Edge",n.version=e[1]);n.name||(e=t.match(/Edg\/(.*?)(?=\s|$)/))&&(n.name="NewEdge",n.version=e[1]);n.name||(e=t.match(/Chrome\/(.*?)(?=\s|$)/))&&(n.name="Chrome",n.version=e[1]);n.name||(e=t.match(/Safari\/(.*?)(?=\s|$)/))&&(n.name="Safari",n.version=e[1]);n.name||(e=t.match(/Firefox\/(.*?)(?=\s|$)/))&&(n.name="Firefox",n.version=e[1]);n.name||(/Trident\/(\d+)/.test(t)?(n.name="IE",e=t.match(/Trident.*rv:([\d.]+)/)||[],n.version=e[1]):(e=t.match(/MSIE\s(.*?);/))&&(n.name="IE",n.version=e[1]));return n}(),yn={isEdge:"Edge"===gn.name,isNewEdge:"NewEdge"===gn.name,isIE:"IE"===gn.name,isFireFox:"Firefox"===gn.name,isChrome:"Chrome"===gn.name,isSafari:"Safari"===gn.name};function bn(){var e,t;return vn=void 0===vn?yn.isIE||(e=gn.name,t=gn.version,"Firefox"===e&&function(e){return"number"!=typeof e?"string"!=typeof e?Number(void 0):Number(e.split(".")[0]):e}(t)<=52):vn}var mn,d=t(14),d=t.n(d),p="kd-",M={artTableWrapper:"".concat(p,"table-wrapper"),artTableBordered:"".concat(p,"table-bordered"),artTable:"".concat(p,"table"),tableHeaderMain:"".concat(p,"table-header-main"),tableHeader:"".concat(p,"table-header"),tableBody:"".concat(p,"table-body"),virtual:"".concat(p,"virtual"),tableFooter:"".concat(p,"table-footer"),tableFooterMain:"".concat(p,"table-footer-main"),tableRow:"".concat(p,"table-row"),tableHeaderRow:"".concat(p,"table-header-row"),tableCell:"".concat(p,"table-cell"),tableExtendCell:"".concat(p,"table-extend-cell"),tableHeaderCell:"".concat(p,"table-header-cell"),tableHeaderCellContent:"".concat(p,"table-header-cell-content"),tableHeaderCellResize:"".concat(p,"table-header-cell-resize"),virtualBlank:"".concat(p,"virtual-blank"),stickyScroll:"".concat(p,"sticky-scroll"),stickyScrollItem:"".concat(p,"sticky-scroll-item"),horizontalScrollContainer:"".concat(p,"horizontal-scroll-container"),verticalScrollPlaceholder:"".concat(p,"vertical-scroll-placeholder"),horizontalStickyScrollContainer:"".concat(p,"horizontal-sticky-scroll-container"),horizontalScrollLeftSpacer:"".concat(p,"horizontal-scroll-left-spacer"),horizontalScrollRightSpacer:"".concat(p,"horizontal-scroll-right-spacer"),lockShadowMask:"".concat(p,"lock-shadow-mask"),lockShadow:"".concat(p,"lock-shadow"),leftLockShadow:"".concat(p,"left-lock-shadow"),rightLockShadow:"".concat(p,"right-lock-shadow"),emptyWrapper:"".concat(p,"empty-wrapper"),loadingWrapper:"".concat(p,"loading-wrapper"),loadingContentWrapper:"".concat(p,"loading-content-wrapper"),loadingIndicatorWrapper:"".concat(p,"loading-indicator-wrapper"),loadingIndicator:"".concat(p,"loading-indicator"),tableHeaderCellLine:"".concat(p,"table-header-cell-line"),tableFilterTrigger:"".concat(p,"filter-trigger"),tableSortIcon:"".concat(p,"sort-icon"),tableExtendIcon:"".concat(p,"extend-icon"),button:"".concat(p,"btn"),buttonPrimary:"".concat(p,"btn-primary"),filterIcon:"".concat(p,"filter-icon"),rangeSelection:"".concat(p,"range-selection"),tableCellRangeSingleCell:"".concat(p,"table-cell-range-single-cell"),tableCellRangeSelected:"".concat(p,"table-cell-range-selected"),tableCellRangeTop:"".concat(p,"table-cell-range-top"),tableCellRangeLeft:"".concat(p,"table-cell-range-left"),tableCellRangeBottom:"".concat(p,"table-cell-range-bottom"),tableCellRangeRight:"".concat(p,"table-cell-range-right"),fixedLeft:"".concat(p,"fixed-left"),fixedRight:"".concat(p,"fixed-right"),rowDetailContainer:"".concat(p,"row-detail-container"),rowDetailItem:"".concat(p,"row-detail-item"),emptyColCell:"".concat(p,"empty-col-cell"),first:"".concat(p,"first"),last:"".concat(p,"last"),even:"".concat(p,"even"),odd:"".concat(p,"odd"),lockLeft:"".concat(p,"lock-left"),lockRight:"".concat(p,"lock-right"),rowSpan:"".concat(p,"row-span"),leaf:"".concat(p,"leaf"),expanded:"".concat(p,"expanded"),collapsed:"".concat(p,"collapsed"),popup:"".concat(p,"popup"),popupHeader:"".concat(p,"popup-header"),popupBody:"".concat(p,"popup-body"),rowDragging:"".concat(p,"row-dragging"),rowDragStart:"".concat(p,"row-drag-start"),rowDragEnd:"".concat(p,"row-drag-end"),rowDragEndParent:"".concat(p,"row-drag-end-parent"),rowDragEndToTop:"".concat(p,"row-drag-end-to-top"),rowDragEndToBottom:"".concat(p,"row-drag-end-to-bottom"),rowDragEndInto:"".concat(p,"row-drag-end-into"),rowDragElement:"".concat(p,"row-drag-element"),rowDragElementIcon:"".concat(p,"row-drag-element-icon"),rowDragElementLabel:"".concat(p,"row-drag-element-label"),rowDragLine:"".concat(p,"row-drag-line"),rowDragNoData:"".concat(p,"row-drag-no-data"),treeTableRowDragLine:"".concat(p,"tree-table-row-drag-line"),iconNotAllowed:"".concat(p,"icon-not-allowed"),iconMove:"".concat(p,"icon-move"),rowDragCell:"".concat(p,"row-drag-cell")},h={menu:"".concat(p,"table-menu"),menuList:"".concat(p,"table-menu-list"),menuOption:"".concat(p,"table-menu-option"),menuOptionActive:"".concat(p,"table-menu-option-active"),menuOptionDisable:"".concat(p,"table-menu-option-disable"),menuOptionText:"".concat(p,"table-menu-option-text")},p=5,wn=15,xn=10,Sn=20,On=25,En=30,kn=40,jn=Object(e.a)(d()(["\n .","{\n position: absolute;\n top:0;\n ",":0;\n z-index: 9999;\n pointer-events:none;\n user-select: none;\n\n display:flex;\n opacity: 0.9;\n align-items:center;\n min-width:80px;\n padding: 0px 8px;\n border: 1px solid #d9d9d9;\n box-shadow: 0px 6px 16px 3px rgba(0,0,0,0.08);\n border-radius: 2px;\n background: #fff;\n max-height:48px;\n\n .","{\n font-size:12px;\n overflow:hidden;\n text-overflow: ellipsis;\n white-space:nowrap;\n }\n \n }\n\n .","{\n position: absolute;\n top:0;\n left:0;\n z-index: 9998;\n pointer-events:none;\n user-select: none;\n height: 2px;\n background: var(--primary-color);\n }\n .",':before{\n content: " ";\n position: absolute;\n width: 8px;\n height: 8px;\n top:-4px;\n border: 2px solid var(--primary-color);\n border-radius: 50%;\n background:#fff;\n }\n']),M.rowDragElement,function(e){return v(e.direction,"left")},M.rowDragElementLabel,M.rowDragLine,M.treeTableRowDragLine),Cn=Object(e.b)(d()(["\n border-top: 1px solid #cccccc;\n border-right: 1px solid #cccccc;\n border-bottom: 1px solid #cccccc;\n border-left: 1px solid #cccccc;\n\n td.",",\n th."," {\n border-",": none;\n }\n td.",",\n th."," {\n border-",": none;\n }\n\n thead tr."," th,\n tbody tr."," td {\n border-top: none;\n }\n &.has-footer tfoot tr."," td {\n border-bottom: none;\n }\n &:not(.has-footer) tbody tr."," td {\n border-bottom: none;\n }\n td.",":not(.","){\n border-",": var(---cell-border-vertical);\n }\n td.",":not(.","){\n border-",": var(---cell-border-vertical);\n }\n"]),M.first,M.first,function(e){return"rtl"===e.direction?"right":"left"},M.last,M.last,function(e){return"rtl"===e.direction?"left":"right"},M.first,M.first,M.last,M.last,M.rowSpan,M.first,function(e){return"rtl"===e.direction?"right":"left"},M.rowSpan,M.last,function(e){return"rtl"===e.direction?"left":"right"}),Pn={"--row-height":"48px","--color":"#333","--bgcolor":"white","--hover-bgcolor":"var(--hover-color, #f5f5f5)","--highlight-bgcolor":"#eee","--primary-color":"#5582F3","--primary-color-level1":"rgb(242, 248, 255)","--primary-color-level2":"rgb(135, 173, 255)","--icon-color":"#666666","--strong-border-color":"#d9d9d9","--header-row-height":"32px","--header-color":"#333","--header-bgcolor":"#f4f4f4","--header-hover-bgcolor":"#ddd","--header-highlight-bgcolor":"#e4e8ed","--cell-padding":"8px 12px","--font-size":"12px","--line-height":"1.28571","--lock-shadow":"rgba(152, 152, 152, 0.5) 0 0 6px 2px","--border-color":"#dfe3e8","--cell-border":"1px solid #dfe3e8","--cell-border-horizontal":"1px solid #dfe3e8","---cell-border-vertical":"1px solid #dfe3e8","--header-cell-border":"1px solid #dfe3e8","--cell-border-vertical":"1px solid #dfe3e8","--header-cell-border-horizontal":"1px solid #dfe3e8","--header-cell-border-vertical":"1px solid #dfe3e8"},Rn=(mn=Pn,Object.keys(mn).reduce(function(e,t){return e+="".concat(t,":").concat(mn[t],";")},"")),An=Object(e.b)(d()(["\n --cell-border-vertical: none;\n --header-cell-border-vertical: none;\n"])),Tn=Object(e.b)(d()(["\n //th隐藏列宽拖拽的背景色,使用th的右边框代替\n .","::after{\n background-color: inherit;\n }\n"]),M.tableHeaderCellResize),Dn=e.c.div(d()(["\n :root {\n ","\n }\n ","\n\n box-sizing: border-box;\n * {\n box-sizing: border-box;\n }\n cursor: default;\n color: var(--color);\n font-size: var(--font-size);\n line-height: var(--line-height);\n position: relative;\n\n // 表格外边框由 art-table-wrapper 提供,而不是由单元格提供\n &.use-outer-border {\n ",";\n }\n\n // 表格不启用边框线,隐藏th、td的单元格左右边框线\n &:not(.",") {\n ","\n }\n &.","{\n ","\n }\n\n .no-scrollbar {\n ::-webkit-scrollbar {\n display: none;\n }\n }\n\n ."," {\n overflow: auto;\n flex-shrink: 1;\n flex-grow: 1;\n display: flex;\n flex-direction: column;\n }\n\n ."," {\n overflow: hidden;\n background: var(--header-bgcolor);\n display: flex;\n flex-shrink: 0;\n border-bottom: var(--header-cell-border-horizontal);\n }\n\n ."," {\n display: flex;\n // justify-content: flex-start;\n align-items: center;\n height: inherit;\n }\n\n ."," {\n overflow-x:auto;\n flex-shrink: 0;\n flex-grow: 0;\n scrollbar-width: none; // 兼容火狐\n & {\n ::-webkit-scrollbar {\n display:none;\n }\n }\n }\n\n ."," {\n display: flex;\n flex: none;\n }\n .","{\n flex-grow:1;\n }\n .",", ."," {\n background: var(--bgcolor);\n overflow: auto;\n overflow-x: hidden;\n overflow-anchor: none;\n position:relative;\n &.empty {\n position: relative;\n }\n }\n\n ."," {\n position: relative;\n }\n .",", ."," {\n .","{\n background-color: #e6effb !important;\n }\n .","{\n border-top: 1px solid #0E5FD8 !important;\n }\n .","{\n border-",": 1px solid #0E5FD8 !important;\n }\n .","{\n border-bottom: 1px solid #0E5FD8 !important;\n }\n .","{\n border-",": 1px solid #0E5FD8 !important;\n }\n }\n\n ."," {\n user-select:none;\n }\n\n ."," {\n user-select:none;\n // ."," ."," >td{\n // cursor:move;\n // }\n\n // ."," ."," >td{\n // cursor:no-drop;\n // }\n \n }\n\n .","{\n opacity: 0.5;\n }\n .","{\n border: 1px solid var(--primary-color)\n }\n\n ."," td{\n border-top: 1px solid var(--primary-color) !important;\n border-bottom: 1px solid var(--primary-color) !important;\n \n }\n ."," td:first-child{\n border-",": 1px solid var(--primary-color) !important;\n \n }\n ."," td:last-child{\n border-",": 1px solid var(--primary-color) !important;\n \n }\n\n\n // ."," td{\n // border-top: 1px solid var(--primary-color) !important;\n // }\n\n ."," td{\n border-top: 1px solid var(--primary-color) !important;\n border-bottom: 1px solid var(--primary-color) !important;\n }\n\n ."," td:first-child{\n border-",": 1px solid var(--primary-color) !important;\n }\n\n ."," td:last-child{\n border-",": 1px solid var(--primary-color) !important;\n }\n\n // ."," td{\n // border-bottom: 1px solid var(--primary-color) !important;\n // }\n\n ."," {\n cursor:pointer;\n }\n\n\n &.sticky-header ."," {\n position: sticky;\n top: 0;\n z-index: ",";\n }\n\n &.sticky-footer ."," {\n position: sticky;\n bottom: 0;\n z-index: ",";\n }\n\n table {\n width: 0;\n table-layout: fixed;\n border-collapse: separate;\n border-spacing: 0;\n display: table;\n margin: 0;\n padding: 0;\n flex-shrink: 0;\n flex-grow: 0;\n position:relative;\n }\n\n // 在 tr 上设置 .no-hover 可以禁用鼠标悬停效果\n tr:not(.no-hover):hover > td {\n background: var(--hover-bgcolor);\n }\n // 使用 js 添加悬浮效果\n tr:not(.no-hover).row-hover > td {\n background: var(--hover-bgcolor);\n }\n // 在 tr 设置 highlight 可以为底下的 td 设置为高亮色\n // 而设置 .no-highlight 的话则可以禁用高亮效果;\n tr:not(.no-highlight).highlight > td {\n background: var(--highlight-bgcolor);\n }\n\n th {\n font-weight: normal;\n text-align: ",";\n padding: var(--cell-padding);\n height: var(--header-row-height);\n color: var(--header-color);\n background: var(--header-bgcolor);\n border:1px solid transparent;\n border-",": var(--header-cell-border-vertical);\n border-bottom: var(--header-cell-border-horizontal);\n position: relative;\n }\n\n th.resizeable{\n border-",": var(--header-cell-border-vertical)\n }\n\n th."," {\n border-",": var(--header-cell-border-vertical);\n border-bottom: none;\n }\n\n tr."," th {\n border-top: var(--header-cell-border-horizontal);\n }\n th."," {\n border-",": var(--header-cell-border-vertical);\n }\n\n td {\n padding: var(--cell-padding);\n background: var(--bgcolor);\n height: var(--row-height);\n border:1px solid transparent;\n border-",": var(--cell-border-vertical);\n border-bottom: var(--cell-border-horizontal);\n word-break: break-all;\n }\n td."," {\n border-",": var(--cell-border-vertical);\n }\n tr."," td {\n border-top: var(--cell-border-horizontal);\n }\n &.has-header tbody tr."," td {\n border-top: none;\n }\n &.has-footer tbody tr."," td {\n border-bottom: none;\n }\n\n .",",\n ."," {\n z-index: ",";\n }\n\n //#region 锁列阴影\n ."," {\n position: absolute;\n top: 0;\n bottom: 0;\n z-index: ",";\n pointer-events: none;\n overflow: hidden;\n\n ."," {\n height: 100%;\n }\n\n ."," {\n margin-",": ","px;\n \n box-shadow: none;\n\n &.show-shadow {\n box-shadow: var(--lock-shadow);\n border-",": var(--cell-border-vertical);\n }\n }\n\n ."," {\n margin-",": ","px;\n box-shadow: none;\n\n &.show-shadow {\n box-shadow: var(--lock-shadow);\n border-",": var(--cell-border-vertical);\n }\n }\n }\n //#endregion\n\n //#region 空表格展现\n ."," {\n pointer-events: none;\n color: #99a3b3;\n font-size: 12px;\n text-align: center;\n position: absolute;\n left: 50%;\n top: 50%;\n transform: translate(-50%, -50%);\n\n .empty-image {\n width: 50px;\n height: 50px;\n }\n\n .empty-tips {\n margin-top: 16px;\n line-height: 1.5;\n }\n }\n //#endregion\n\n //#region sticky兼容\n &.sticky-polyfill-wrapper{\n //锁定列兼容 仅在锁定列的情况下生效\n ."," {\n overflow-x: hidden;\n }\n .",", ."," {\n position:relative;\n }\n ."," {\n overflow: hidden;\n display: flex;\n }\n ."," {\n position: relative;\n }\n\n ."," {\n display: flex;\n overflow: auto;\n overflow-x: hidden;\n overflow-anchor: none;\n }\n\n .",", .","{\n position: absolute;\n z-index: ",";\n top: 0;\n }\n .","{\n ",":0;\n }\n .","{\n rig","ht:0;\n }\n\n .","{\n .","{\n position: absolute;\n top: 0;\n width: 100%;\n z-index: ",";\n }\n }\n\n tr:not(.no-hover).row-hover > td {\n background: var(--hover-bgcolor);\n }\n }\n //#endregion sticky兼容\n\n //#region 粘性滚动条\n .","{\n display:flex;\n background: var(--bgcolor);\n }\n .","{\n height: 1px;\n flex-shrink: 0;\n border-top: 1px solid var(--border-color);\n }\n\n .","{\n height: 1px;\n flex-shrink: 0;\n border-top: 1px solid var(--border-color);\n }\n ."," {\n overflow-y: hidden;\n overflow-x: auto;\n z-index: ",";\n flex-shrink: 1;\n flex-grow: 0;\n border-top: 1px solid var(--border-color);\n }\n\n ."," {\n // 必须有高度才能出现滚动条\n height: 1px;\n visibility: hidden;\n }\n //#endregion\n\n //#region 加载样式\n ."," {\n position: relative;\n width: 100%;\n height: 100%;\n overflow: auto;\n\n ."," {\n filter: none;\n width: 100%;\n height: 100%;\n overflow: hidden;//列全部固定时,存在双横向滚动条\n display: flex;\n position: relative;\n flex-direction: column;\n }\n\n ."," {\n position: absolute;\n left: 0;\n right: 0;\n top: 0;\n bottom: 0;\n pointer-events: none;\n }\n\n ."," {\n position: sticky;\n z-index: ",";\n transform: translateY(-50%);\n }\n }\n //#endregion\n\n //#region 表格过滤\n ."," {\n color:var(--icon-color);\n &.active{\n color:var(--primary-color);\n }\n padding: 6px 4px;\n &:hover{\n background-color: #e5e5e5;\n }\n &:focus {\n outline: none\n }\n }\n //#endregion\n\n //#region 表格排序\n ."," {\n color:var(--icon-color);\n &.active{\n color:var(--primary-color);\n }\n }\n ."," {\n color:var(--icon-color);\n &.active{\n color:var(--primary-color);\n }\n }\n //#endregion\n\n //#region 滚动条占位\n ."," {\n // visibility: hidden;\n background: var(--header-bgcolor);\n position:sticky;\n z-index:5;\n ",":0px;\n flex-shrink: 0;\n }\n ."," ."," {\n border-top: var(--cell-border-horizontal);\n }\n //#endregion\n\n //#region 拖拽列宽大小\n .","::after{\n background-color: var(--border-color);\n }\n //解决部分浏览器(chrome109)最后一个单元格的列宽拖拽区域绝对定位超出表格,导致表格竖分割线无法对齐\n ."," th."," .","{\n ",": 0;\n width: 5px;\n &::after{\n ",": 4px;\n }\n }\n"]),Rn,Rn,Cn,M.artTableBordered,An,M.artTableBordered,Tn,M.artTable,M.tableHeader,M.tableHeaderCellContent,M.virtual,M.tableFooter,M.tableBody,M.tableBody,M.tableFooter,M.tableRow,M.tableBody,M.tableFooter,M.tableCellRangeSelected,M.tableCellRangeTop,M.tableCellRangeLeft,function(e){return v(e.direction,"left")},M.tableCellRangeBottom,M.tableCellRangeRight,function(e){return v(e.direction,"right")},M.rangeSelection,M.rowDragging,M.tableBody,M.tableRow,M.tableFooter,M.tableRow,M.rowDragStart,M.rowDragNoData,M.rowDragEndParent,M.rowDragEndParent,function(e){return v(e.direction,"left")},M.rowDragEndParent,function(e){return v(e.direction,"right")},M.rowDragEndToTop,M.rowDragEndInto,M.rowDragEndInto,function(e){return v(e.direction,"left")},M.rowDragEndInto,function(e){return v(e.direction,"right")},M.rowDragEndToBottom,M.rowDragCell,M.tableHeader,wn,M.tableFooter,xn,function(e){return v(e.direction,"left")},function(e){return v(e.direction,"right")},function(e){return v(e.direction,"right")},M.leaf,function(e){return v(e.direction,"right")},M.first,M.first,function(e){return v(e.direction,"left")},function(e){return v(e.direction,"right")},M.first,function(e){return v(e.direction,"left")},M.first,M.first,M.last,M.lockLeft,M.lockRight,p,M.lockShadowMask,Sn,M.lockShadow,M.leftLockShadow,function(e){return v(e.direction,"right")},20,function(e){return v(e.direction,"right")},M.rightLockShadow,function(e){return v(e.direction,"left")},20,function(e){return v(e.direction,"left")},M.emptyWrapper,M.virtual,M.tableBody,M.tableFooter,M.tableHeaderMain,M.tableHeader,M.tableFooterMain,M.fixedLeft,M.fixedRight,p,M.fixedLeft,function(e){return v(e.direction,"left")},M.fixedRight,function(e){return v(e.direction,"right")},M.rowDetailContainer,M.rowDetailItem,On,M.horizontalStickyScrollContainer,M.horizontalScrollLeftSpacer,M.horizontalScrollRightSpacer,M.stickyScroll,En,M.stickyScrollItem,M.loadingWrapper,M.loadingContentWrapper,M.loadingIndicatorWrapper,M.loadingIndicator,kn,M.tableFilterTrigger,M.tableSortIcon,M.tableExtendIcon,M.verticalScrollPlaceholder,function(e){return v(e.direction,"right")},M.tableFooter,M.verticalScrollPlaceholder,M.tableHeaderCellResize,M.tableHeaderRow,M.last,M.tableHeaderCellResize,function(e){return v(e.direction,"right")},function(e){return v(e.direction,"left")}),Cn=Object(e.b)(d()(["\n ","\n .","{\n color: var(--color);\n background:#ffffff;\n border:1px solid var(--strong-border-color);\n border-radius: 2px;\n cursor: pointer;\n &:hover{\n color: var(--primary-color);\n border:1px solid var(--primary-color);\n }\n }\n ."," {\n color:#ffffff;\n background-color: var(--primary-color);\n border:none;\n &:hover{\n color:#ffffff;\n background-color: var(--primary-color-level2);\n border:none;\n }\n }\n"]),Rn,M.button,M.buttonPrimary);function In(e){if(e.deepPath)return e.deepPath();if(e.path)return e.path;if(e.composedPath)return e.composedPath();for(var t=[],n=e.target;n;)t.push(n),n=n.parentElement;return t}function _n(e,t){return!(!e||!t)&&0<=In(t).indexOf(e)}function Mn(e,t){for(var n,r=0;!n&&r<e.length;){var o=e[r];t(o)&&(n=o),r++}return n}function Ln(e,t){var n=t.getBoundingClientRect(),r=document.documentElement.getBoundingClientRect();return{x:e.clientX-(t===document.body?r:n).left,y:e.clientY-(t===document.body?r:n).top}}function Nn(e,t,n,r){var e=e.getBoundingClientRect(),t=(t===document.body?document.documentElement:t).getBoundingClientRect(),o=n?n.x:0,n=n?n.y:0;return{x:e.left-t.left+("rtl"===r?o+e.width:-o),y:e.top-t.top-n}}function Fn(e,t,n,r,o){var i,a=e.getBoundingClientRect(),c=document.documentElement,l=c.getBoundingClientRect(),t=t.getBoundingClientRect(),s=a.width,u=a.height,e=e===document.body;return e&&(s=l.width-Math.abs(l.left-a.left),u=l.height+c.scrollTop-Math.abs(l.top-a.top)),n&&(l=t.width,s=(a={x:n,maxX:s-l,width:l,isPerfectX:o}).x,l=a.maxX,i=a.width,n=(a=a.isPerfectX)&&Math.max(s,0)>Math.abs(l)&&i<=s?s-i:Math.min(Math.max(s,0),Math.abs(l))),r&&(a=t.height,i={y:r,maxY:u-a,height:a,scrollTop:c.scrollTop,isBody:e,isPerfectY:o},s=i.y,l=i.maxY,t=i.height,u=i.scrollTop,a=i.isBody,r=(i=i.isPerfectY)&&Math.max(s,0)>Math.abs(l)&&t<=(a?s-u:s)?s-t:Math.min(Math.max(s,0),Math.abs(l))),{x:n,y:r}}function Hn(e,t){var n,r,o,i,a="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(a)return r=!(n=!0),{s:function(){a=a.call(e)},n:function(){var e=a.next();return n=e.done,e},e:function(e){r=!0,o=e},f:function(){try{n||null==a.return||a.return()}finally{if(r)throw o}}};if(Array.isArray(e)||(a=function(e,t){var n;if(e)return"string"==typeof e?zn(e,t):"Map"===(n="Object"===(n=Object.prototype.toString.call(e).slice(8,-1))&&e.constructor?e.constructor.name:n)||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?zn(e,t):void 0}(e))||t&&e&&"number"==typeof e.length)return a&&(e=a),i=0,{s:t=function(){},n:function(){return i>=e.length?{done:!0}:{done:!1,value:e[i++]}},e:function(e){throw e},f:t};throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function zn(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}var Bn="v3"==(null!=e.a?"v5":"v3")?"innerRef":"ref",Wn=100;function Kn(e){var t=0;return e.forEach(function(e){t+=e}),t}Vn=function(){return R(window,"resize",{passive:!0}).pipe((t=150,void 0===(n=ze)&&(n=Be),void 0===(r={leading:!0,trailing:!0})&&(r=Nt),function(e){return e.lift(new Ft(t,n,r.leading,r.trailing))}));var t,n,r};var Vn,$n,Gn=new s(function(t){var e;try{e=Vn()}catch(e){return void t.error(e)}return(e?Le(e):Je()).subscribe(t)}),Yn=function(e,n){var t=new Bt.a(function(e){var t;e[0]&&e[0].contentRect&&(t=0===(e=e[0].contentRect).width&&0===e.height,t=O()({hide:t},e),n)&&n(t)});return t&&t.observe(e),t};function Un(){var e=document.createElement("div"),t=(e.style.position="absolute",e.style.width="100px",e.style.height="100px",e.style.overflow="scroll",e.style.top="-9999px",document.body.appendChild(e),e.offsetWidth-e.clientWidth),n=e.offsetHeight-e.clientHeight;return document.body.removeChild(e),{width:t,height:n}}function qn(c,l){var s=new Set;var t,n=new u,r=Hn(c);try{var e=function(){function e(){if(s.has(a))s.delete(a);else{var e=a.scrollLeft;if(0!==e||function(e,t){return!(1<arguments.length&&void 0!==t)||t?e.scrollWidth>e.clientWidth:e.scrollHeight>e.clientHeight}(a)){var t=a,n=e;s.clear();var r,o=Hn(c);try{for(o.s();!(r=o.n()).done;){var i=r.value;i!==t&&(i.scrollLeft=n,s.add(i))}}catch(e){o.e(e)}finally{o.f()}l(e)}}}var a=t.value;a.addEventListener("scroll",e,{passive:!0}),n.add(function(){return a.removeEventListener("scroll",e)})};for(r.s();!(t=r.n()).done;)e()}catch(e){r.e(e)}finally{r.f()}return n}function Xn(e,t){var n=Object.prototype.hasOwnProperty;if(!Object.is(e,t)){if("object"!==F()(e)||null===e||"object"!==F()(t)||null===t)return!1;var r=Object.keys(e),o=Object.keys(t);if(r.length!==o.length)return!1;for(var i=0;i<r.length;i++)if(!n.call(t,r[i])||!Object.is(e[r[i]],t[r[i]]))return!1}return!0}function Zn(n,r){return Object.keys(r).length?function(e,t){return _(n(e,t),r)}:n}function Jn(e){return bn()?e.tableFooterMain:e.tableFooter}function Qn(e){var t=e.variables,n=e.enableCSSVariables,e=e.bordered;!1!==n&&(n={},e||(n["--cell-border-vertical"]="none",n["--header-cell-border-vertical"]="none"),fn({include:"style[data-styled]",variables:O()({},Pn,t,n),watch:!0,silent:!0}))}var v=function(e,t){e="rtl"===e;return"left"===t&&e?"right":"right"===t&&e?"left":t};function er(t,e){var n,r=Object.keys(t);return Object.getOwnPropertySymbols&&(n=Object.getOwnPropertySymbols(t),e&&(n=n.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})),r.push.apply(r,n)),r}function tr(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?er(Object(n),!0).forEach(function(e){S()(t,e,n[e])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):er(Object(n)).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))})}return t}function nr(e,t){var n,r,o,i,a="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(a)return r=!(n=!0),{s:function(){a=a.call(e)},n:function(){var e=a.next();return n=e.done,e},e:function(e){r=!0,o=e},f:function(){try{n||null==a.return||a.return()}finally{if(r)throw o}}};if(Array.isArray(e)||(a=function(e,t){var n;if(e)return"string"==typeof e?rr(e,t):"Map"===(n="Object"===(n=Object.prototype.toString.call(e).slice(8,-1))&&e.constructor?e.constructor.name:n)||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?rr(e,t):void 0}(e))||t&&e&&"number"==typeof e.length)return a&&(e=a),i=0,{s:t=function(){},n:function(){return i>=e.length?{done:!0}:{done:!1,value:e[i++]}},e:function(e){throw e},f:t};throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function rr(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function or(e,t){return null==e||"auto"===e?t:e}var ir=!1;function ar(e,l){return null!=e&&Array.isArray(e)||(Tt.warn("<BaseTable /> props.columns 需要传入一个数组",e),e=[]),function e(t){var n,r,o=[],i=nr(t);try{for(i.s();!(n=i.n()).done;){var a,c=n.value;D(c=null==c.width&&null!=l?tr(tr({},c),{},{width:l}):c)?c.hidden?(r=c,ir||(ir=!0,Tt.warn("column.hidden 已经过时,如果需要隐藏该列,请将其从 columns 数组中移除",r))):o.push(c):0<(a=e(c.children)).length&&o.push(tr(tr({},c),{},{children:a}))}}catch(e){i.e(e)}finally{i.f()}return o}(e)}function cr(e){var t,n=0,r=nr(e);try{for(r.s();!(t=r.n()).done;){if(!o(t.value))break;n+=1}}catch(e){r.e(e)}finally{r.f()}return n;function o(e){return D(e)?e.lock:e.lock||e.children.some(o)}}function lr(e){for(var t,n,r,o=e.state,i=o.offsetX,o=o.maxRenderWidth,a=e.props,c=a.useVirtual,l=a.columns,s=a.dataSource,l=ar(l,a.defaultColumnWidth),a=cr(l),u=I(l,"leaf-only"),f=(a===l.length?t={horizontal:!(r={left:[],right:[],full:l,center:l}),vertical:!(n={left:[],right:[],full:u,center:u}),header:!1}:(p=l.slice(0,a),O=cr(l.slice().reverse()),a=l.slice(a,l.length-O),O=l.slice(l.length-O),f=100<=u.length&&u.every(function(e){return null!=e.width}),s=100<=s.length,t={horizontal:or("object"===F()(c)?c.horizontal:c,f),vertical:or("object"===F()(c)?c.vertical:c,s),header:or("object"===F()(c)?c.header:c,!1)},n={left:I(p,"leaf-only"),full:u,right:I(O,"leaf-only"),center:I(a,"leaf-only")},r={left:p,full:l,right:O,center:a}),function(e){var t=e.offsetX,n=e.maxRenderWidth,r=e.flat;if(!e.useVirtual.horizontal)return{leftIndex:0,leftBlank:0,rightIndex:r.full.length,rightBlank:0};for(var o=0,i=0,a=0,c=0,l=Math.max(0,t-Wn);o<r.center.length;){var s=r.center[o];if(!(s.width+a<l))break;o+=1,a+=s.width}for(var u=n+(l-a)+2*Wn;o+i<r.center.length;){var f=r.center[o+i];if(!(c<u))break;c+=f.width,i+=1}return e=r.center.length-o-i,{leftIndex:o,leftBlank:a,rightIndex:o+i,rightBlank:Kn(r.center.slice(r.center.length-e).map(function(e){return e.width}))}}({maxRenderWidth:o,offsetX:i,useVirtual:t,flat:n})),s=e.getVerticalRenderRange(t),c=f.leftBlank,d=f.leftIndex,u=f.rightBlank,p=f.rightIndex,l=[].concat(T()(n.left.map(function(e,t){return{type:"normal",col:e,colIndex:t}})),[0<c&&{type:"blank",blankSide:"left",width:c}],T()(n.center.slice(d,p).map(function(e,t){return{type:"normal",col:e,colIndex:n.left.length+d+t}})),[0<u&&{type:"blank",blankSide:"right",width:u}],T()(n.right.map(function(e,t){return{type:"normal",col:e,colIndex:n.full.length-n.right.length+t}}))).filter(Boolean),h=n.full.length,v=n.left.length,g=n.right.length,y=new Map,b=0,m=0;m<v;m++)y.set(m,b),b+=n.full[m].width;for(var w=new Map,x=0,S=0;S<g;S++)w.set(h-1-S,x),x+=n.full[h-1-S].width;var O=Kn(n.left.map(function(e){return e.width})),a=Kn(n.right.map(function(e){return e.width}));return{horizontalRenderRange:f,verticalRenderRange:s,visible:l,flat:n,nested:r,useVirtual:t,stickyLeftMap:y,stickyRightMap:w,leftLockTotalWidth:O,rightLockTotalWidth:a,hasLockColumn:0<r.left.length||0<r.right.length}}function sr(e){e=e.descriptors;return x.a.createElement("colgroup",null,e.map(function(e){return"blank"===e.type?x.a.createElement("col",{key:e.blankSide,style:{width:e.width}}):x.a.createElement("col",{key:e.colIndex,style:{width:e.col.width}})}))}var ur=x.a.memo(function(){return x.a.createElement(x.a.Fragment,null,x.a.createElement("img",{alt:"empty-image",className:"empty-image",src:"//img.alicdn.com/tfs/TB1l1LcM3HqK1RjSZJnXXbNLpXa-50-50.svg"}),x.a.createElement("div",{className:"empty-tips"},"没有符合查询条件的数据",x.a.createElement("br",null),"请修改条件后重新查询"))});function fr(e){var t=e.descriptors,n=e.isLoading,r=e.emptyCellHeight,e=e.EmptyContent,e=void 0===e?ur:e,n=!n;return x.a.createElement(y.Fragment,null,x.a.createElement("table",{key:"table"},x.a.createElement(sr,{descriptors:t}),x.a.createElement("tbody",null,x.a.createElement("tr",{className:C()(M.tableRow,M.first,M.last,"no-hover"),"data-rowindex":0},x.a.createElement("td",{className:C()(M.tableCell,M.first,M.last),colSpan:t.length,style:{height:null!=r?r:200}})))),n&&x.a.createElement("div",{className:M.emptyWrapper,key:"empty"},x.a.createElement(e,null)))}function dr(e,t){var n,r,o,i,a="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(a)return r=!(n=!0),{s:function(){a=a.call(e)},n:function(){var e=a.next();return n=e.done,e},e:function(e){r=!0,o=e},f:function(){try{n||null==a.return||a.return()}finally{if(r)throw o}}};if(Array.isArray(e)||(a=function(e,t){var n;if(e)return"string"==typeof e?pr(e,t):"Map"===(n="Object"===(n=Object.prototype.toString.call(e).slice(8,-1))&&e.constructor?e.constructor.name:n)||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?pr(e,t):void 0}(e))||t&&e&&"number"==typeof e.length)return a&&(e=a),i=0,{s:t=function(){},n:function(){return i>=e.length?{done:!0}:{done:!1,value:e[i++]}},e:function(e){throw e},f:t};throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function pr(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function hr(e){var a=-1;return function e(t,n){var r,o=dr(t);try{for(o.s();!(r=o.n()).done;){var i=r.value;D(i)?a=Math.max(a,n):e(i.children,n+1)}}catch(e){o.e(e)}finally{o.f()}}(e,0),a}function vr(t,e){var n,r=Object.keys(t);return Object.getOwnPropertySymbols&&(n=Object.getOwnPropertySymbols(t),e&&(n=n.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})),r.push.apply(r,n)),r}function gr(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?vr(Object(n),!0).forEach(function(e){S()(t,e,n[e])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):vr(Object(n)).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))})}return t}function yr(e,t){var n,r,o,i,a="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(a)return r=!(n=!0),{s:function(){a=a.call(e)},n:function(){var e=a.next();return n=e.done,e},e:function(e){r=!0,o=e},f:function(){try{n||null==a.return||a.return()}finally{if(r)throw o}}};if(Array.isArray(e)||(a=function(e,t){var n;if(e)return"string"==typeof e?br(e,t):"Map"===(n="Object"===(n=Object.prototype.toString.call(e).slice(8,-1))&&e.constructor?e.constructor.name:n)||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?br(e,t):void 0}(e))||t&&e&&"number"==typeof e.length)return a&&(e=a),i=0,{s:t=function(){},n:function(){return i>=e.length?{done:!0}:{done:!1,value:e[i++]}},e:function(e){throw e},f:t};throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function br(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function mr(e,u,f){return function e(t,n){var r=0;var o=[];var i,a=yr(t);try{for(a.s();!(i=a.n()).done;){var c,l=i.value,s=n+r;D(l)?(r+=1,f+u.leftIndex<=s&&s<f+u.rightIndex&&o.push({colIndex:s,col:l})):(c=e(l.children,s),r+=c.leafCount,0<c.filtered.length&&o.push({colIndex:s,col:l,children:c.filtered}))}}catch(e){a.e(e)}finally{a.f()}return{filtered:o,leafCount:r}}(e,f).filtered}function wr(e,t){for(var c=[],n=0;n<t;n++)c.push([]);var l=[];return function e(t,n){var r=0;for(var o=0;o<t.length;o++){var i,a=t[o];D(a)?(r+=1,i={type:"normal",width:a.col.width,col:a.col,colIndex:a.colIndex,colSpan:1,isLeaf:!0},c[n].push(i),l.push(i)):(i=e(a.children,n+1),r+=i.leafCount,0<i.leafCount&&c[n].push({type:"normal",width:a.col.width,col:a.col,colIndex:a.colIndex,colSpan:i.leafCount,isLeaf:!1}))}return{leafCount:r}}(e,0),{flat:l,leveled:c}}function xr(e,t){return function e(t,n){var r=[];var o=0;for(var i=0;i<t.length;i++){var a,c=t[i],l=n+o;D(c)?(o+=1,r.push({colIndex:l,col:c})):(a=e(c.children,l),o+=a.leafCount,0<a.leafCount&&r.push({col:c,colIndex:l,children:a.result}))}return{result:r,leafCount:o}}(e,t).result}function Sr(e,t){var n,r,o,i=e.flat,a=e.nested,c=e.horizontalRenderRange;return e.useVirtual.header?(n=wr(xr(a.left,0),t),r=wr(mr(a.center,c,i.left.length),t),o=wr(xr(a.right,i.left.length+i.center.length),t),{flat:[].concat(T()(n.flat),[{type:"blank",width:c.leftBlank,blankSide:"left"}],T()(r.flat),[{type:"blank",width:c.rightBlank,blankSide:"right"}],T()(o.flat)),leveled:function(e){for(var t=[],n=0;n<e;n++)t.push(n);return t}(t).map(function(e){return[].concat(T()(n.leveled[e]),[{type:"blank",width:c.leftBlank,blankSide:"left"}],T()(r.leveled[e]),[{type:"blank",width:c.rightBlank,blankSide:"right"}],T()(o.leveled[e]))})}):wr(xr(a.full,0),t)}function Or(e){var t=e.info,f=e.theaderPosition,n=e.rowCount,d=e.stickyRightOffset,e=t.nested,r=t.flat,p=t.stickyLeftMap,h=t.stickyRightMap,v=t.direction,g=null!=n?n:hr(e.full)+1,n=Sr(t,g),y=r.full.length,b=r.left.length,m=r.right.length,e=n.leveled.map(function(e,u){var t,e=e.concat(),e=(1<g&&-1<["left","right"].indexOf(f)&&e.push({type:"blank",blankSide:"left",width:1,isPlacehoder:!0}),e.map(function(e,t){var n,r,o,i,a,c,l,s;return"normal"===e.type?(r=e.colIndex,o=e.colSpan,i=e.isLeaf,c=null!=(c=(a=e.col).headerCellProps)?c:{},l={},r<b?(l.position="sticky","rtl"===v?l.right=p.get(r):l.left=p.get(r)):y-m<=r&&(l.position="sticky",s=1<o?r+o-1:r,"rtl"===v?l.left=h.get(s)+("number"==typeof d?d:0):l.right=h.get(s)+("number"==typeof d?d:0)),s="right"===a.align?"flex-end":"center"===a.align?"center":"flex-start",x.a.createElement("th",O()({key:r},c,{className:C()(M.tableHeaderCell,c.className,(n={},S()(n,M.first,0===r),S()(n,M.last,r+o===y),S()(n,M.lockLeft,r<b||"left"===f),S()(n,M.lockRight,y-m<=r||"right"===f),S()(n,M.leaf,e.isLeaf),n)),colSpan:o,rowSpan:i?g-u:void 0,style:gr(gr({textAlign:a.align,verticalAlign:null!=(r=a.verticalAlign)?r:"middle"},c.style),l),"data-code":a.code}),"center"===f&&"sticky"===l.position?null:x.a.createElement("div",{className:M.tableHeaderCellContent,style:{justifyContent:s}},null!=(n=a.title)?n:a.name))):0<e.width?x.a.createElement("th",{key:e.blankSide,style:{visibility:e.isPlacehoder?"hidden":void 0}}):null}));return x.a.createElement("tr",{key:u,className:C()(M.tableHeaderRow,(t={},S()(t,M.first,0===u),S()(t,M.last,u===g-1),t))},e)}),t=n.flat.map(function(e){return"blank"===e.type?0<e.width?x.a.createElement("col",{key:e.blankSide,style:{width:e.width}}):null:x.a.createElement("col",{key:e.colIndex,style:{width:e.width}})});return x.a.createElement("table",null,x.a.createElement("colgroup",null,t),x.a.createElement("thead",null,e))}t(127),t(196);function Er(e){return e?(e.nodeName||"").toLowerCase():null}function kr(e){var t;return null==e?window:"[object Window]"!==e.toString()?(t=e.ownerDocument)&&t.defaultView||window:e}function jr(e){return kr(e).getComputedStyle(e)}function Cr(e){return e instanceof kr(e).HTMLElement||e instanceof HTMLElement}function Pr(e){return"undefined"!=typeof ShadowRoot&&(e instanceof kr(e).ShadowRoot||e instanceof ShadowRoot)}function Rr(e){return(((t=e)instanceof kr(t).Element||t instanceof Element?e.ownerDocument:e.document)||window.document).documentElement;var t}function Ar(e){return"html"===Er(e)?e:e.assignedSlot||e.parentNode||(Pr(e)?e.host:null)||Rr(e)}function Tr(){var e=navigator.userAgentData;return null!=e&&e.brands?e.brands.map(function(e){return e.brand+"/"+e.version}).join(" "):navigator.userAgent}function Dr(e){return Cr(e)&&"fixed"!==jr(e).position?e.offsetParent:null}function Ir(e){for(var t,n=kr(e),r=Dr(e);r&&(t=r,0<=["table","td","th"].indexOf(Er(t)))&&"static"===jr(r).position;)r=Dr(r);return(!r||"html"!==Er(r)&&("body"!==Er(r)||"static"!==jr(r).position))&&(r||function(e){var t=/firefox/i.test(Tr()),n=/Trident/i.test(Tr());if(!n||!Cr(e)||"fixed"!==jr(e).position){var r=Ar(e);for(Pr(r)&&(r=r.host);Cr(r)&&["html","body"].indexOf(Er(r))<0;){var o=jr(r);if("none"!==o.transform||"none"!==o.perspective||"paint"===o.contain||-1!==["transform","perspective"].indexOf(o.willChange)||t&&"filter"===o.willChange||t&&o.filter&&"none"!==o.filter)return r;r=r.parentNode}}return null}(e))||n}function _r(e){return"[object Window]"===e.toString()||"[object global]"===e.toString()}function Mr(e){return"html"===Er(e)||"body"===Er(e)}function Lr(e,t,n){for(var r=0,o=e;null!=o&&(r+=o[n],!(o===t||_r(t)&&Mr(o)));)o=o.parentElement;return _r(t)&&(r+={scrollLeft:(e=kr(e=o)).pageXOffset,scrollTop:e.pageYOffset}[n]),r}function Nr(e,t){if(_r(t)||Mr(t))return{left:0,right:window.innerWidth,top:0,bottom:window.innerHeight};for(var n=0,r=0,o=t;null!=o&&o!=e;){r+=o.offsetTop,n+=o.offsetLeft;var i=Ir(o);if(r-=Lr(o.parentElement,i,"scrollTop"),n-=Lr(o.parentElement,i,"scrollLeft"),_r(i))break;r+=i.clientTop,n+=i.clientLeft,o=i}return{top:r,bottom:r+t.offsetHeight,left:n,right:n+t.offsetWidth}}function Fr(e,t){return _r(t)||function(e){var t=[],n=e;for(;;){if(_r(n))break;n=Ir(n),t.push(n)}return t}(e).includes(t)?t:Ir(t)}function Hr(n){return _r(n)?R(n,"resize",{passive:!0}):new s(function(t){var e=new Bt.a(function(e){t.next(e)});return e.observe(n),function(){e.disconnect()}})}function zr(e){var t,n,r;return["html","body","#document"].includes(Er(e))?kr(e):Cr(e)&&(n=(t=jr(t=e)).overflow,r=t.overflowX,t=t.overflowY,/auto|scroll|overlay|hidden/.test(n+t+r))?e:zr(Ar(e))}function Br(r,e,t){return e.pipe(Ye(r),st(Xn),mt("init"),P(function(){var e=zr(Ar(r));return{scrollParent:e,commonOffsetAncestor:Fr(r,e)}}),st(Xn),kt(function(e){t&&console.log("%c[ali-react-table STRUCTURE ".concat(t,"]"),"color: #4f9052; font-weight: bold","\ntarget:",r,"\nscrollParent:",e.scrollParent,"\ncommonOffsetAncestor:",e.commonOffsetAncestor)}),Pt(function(e){var t=e.scrollParent,n=e.commonOffsetAncestor;return function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var n=Number.POSITIVE_INFINITY,r=null,o=e[e.length-1];return me(o)?(r=e.pop(),1<e.length&&"number"==typeof e[e.length-1]&&(n=e.pop())):"number"==typeof o&&(n=e.pop()),null===r&&1===e.length&&e[0]instanceof s?e[0]:yt(n)(Te(e,r))}(R(t,"scroll",{passive:!0}),Hr(t),Hr(r)).pipe(P(function(e){return{targetRect:Nr(n,r),scrollParentRect:Nr(n,t),event:e}}),P(function(e){var t=e.event,n=e.scrollParentRect,e=e.targetRect;return{event:t,targetRect:e,scrollParentRect:n,offsetY:Math.max(0,n.top-e.top),clipRect:{left:Math.max(e.left,n.left),top:Math.max(e.top,n.top),right:Math.min(e.right,n.right),bottom:Math.min(e.bottom,n.bottom)}}}))}),kt(function(e){t&&console.log("%c[ali-react-table RECTS ".concat(t,"]"),"color: #4f9052; font-weight: bold","\noffsetY:",e.offsetY,"\ntargetRect:",e.targetRect,"\nscrollParentRect:",e.scrollParentRect,"\nclipRect:",e.clipRect,"\nevent:",e.event)}))}t(276);function Wr(t,e){var n,r=Object.keys(t);return Object.getOwnPropertySymbols&&(n=Object.getOwnPropertySymbols(t),e&&(n=n.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})),r.push.apply(r,n)),r}function Kr(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?Wr(Object(n),!0).forEach(function(e){S()(t,e,n[e])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):Wr(Object(n)).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))})}return t}function Vr(e,u){var f=new Array(e).fill(u);return{getRenderRange:function(e,t,c){var n,r,o,i;return f.length!==c&&((o=c)<f.length?f.length=o:(i=f.length,f.length=o,f.fill(u,i))),t<=0?e<=0?(i=l(0,o={topIndex:0,topBlank:0}),Kr(Kr({},o),i)):(n=s(c),r=a(n),n=l(n,r),Kr(Kr({},r),n)):(r=a(e),n=l(e+t,r),Kr(Kr({},r),n));function a(e){if(0===f.length)return{topIndex:0,topBlank:0};for(var t=0,n=0;t<f.length;){var r=f[t];if(e<=n+r)break;n+=r,t+=1}for(var o=t,i=n,a=0,c=0;c<o&&a<Wn;)a+=f[o-(c+=1)];return{topIndex:o-c,topBlank:i-a}}function l(e,t){for(var n=t.topIndex,r=t.topBlank;n<c&&r<e;)r+=f[n],n+=1;for(var t=s(c)-r,o=n,i=0,a=0;a<c-o&&i<Wn;)i+=f[o+a],a+=1;return{bottomIndex:o+a,bottomBlank:t-i}}function s(e){return Kn(f)+(e-f.length)*u}},updateRow:function(e,t,n){f[e]=n},cache:f}}var $r=function(){function n(e){var r=this,t=(i()(this,n),S()(this,"artTableWrapper",void 0),S()(this,"artTable",void 0),S()(this,"tableHeader",void 0),S()(this,"tableBody",void 0),S()(this,"virtual",void 0),S()(this,"tableElement",void 0),S()(this,"tableFooter",void 0),S()(this,"stickyScroll",void 0),S()(this,"stickyScrollItem",void 0),S()(this,"tableHeaderMain",void 0),S()(this,"tableFooterMain",void 0),S()(this,"getRowNodeListByEvent",function(e){var t=null,n=e.currentTarget.dataset.rowindex;return t=void 0!==n?(r.tableBody.contains(e.currentTarget)?r.tableBody:r.tableFooter).querySelectorAll('tr[data-rowindex="'.concat(n,'"]')):t}),S()(this,"getInRangeRowByCellEvent",function(e){function n(e,t){return e.parentNode.nodeName===t?e.parentNode:n(e.parentNode,t)}var t=null==(t=e=e instanceof Array?e[0]:e)?void 0:t.currentTarget,r=n(t,"TR"),e=parseInt(e.currentTarget.getAttribute("rowspan"))||1,t=null==(t=n(t,"TABLE"))?void 0:t.rows;return Array.from(t).slice(r.rowIndex,r.rowIndex+e)}),this.artTableWrapper=e,this.artTable=e.querySelector(".".concat(M.artTable)),this.tableHeader=this.artTable.querySelector(".".concat(M.tableHeader)),this.tableHeaderMain=this.artTable.querySelector(".".concat(M.tableHeaderMain)),this.tableBody=this.artTable.querySelector(".".concat(M.tableBody)),this.virtual=this.artTable.querySelector(".".concat(M.virtual)),this.tableElement=this.artTable.querySelector(".".concat(M.tableBody," table")),this.tableFooter=this.artTable.querySelector(".".concat(M.tableFooter)),this.tableFooterMain=this.artTable.querySelector(".".concat(M.tableFooterMain)),".".concat(M.artTable," + .").concat(M.horizontalStickyScrollContainer," .").concat(M.stickyScroll)),e=e.querySelectorAll(t);this.stickyScroll=e[e.length-1],this.stickyScrollItem=this.stickyScroll.querySelector(".".concat(M.stickyScrollItem))}return r()(n,[{key:"getVirtualTop",value:function(){return this.tableBody.querySelector(".".concat(M.virtualBlank,".top"))}},{key:"getTableRows",value:function(){return this.artTable.querySelector(".".concat(M.tableBody," .").concat(M.virtual," table tbody")).childNodes}},{key:"getTableBodyHtmlTable",value:function(){return this.artTable.querySelector(".".concat(M.tableBody," .").concat(M.virtual," table"))}},{key:"getLeftLockShadow",value:function(){var e=".".concat(M.lockShadowMask," .").concat(M.leftLockShadow),e=this.artTable.querySelectorAll(e);return e[e.length-1]}},{key:"getRightLockShadow",value:function(){var e=".".concat(M.lockShadowMask," .").concat(M.rightLockShadow),e=this.artTable.querySelectorAll(e);return e[e.length-1]}},{key:"getLoadingIndicator",value:function(){return this.artTableWrapper.querySelector(".".concat(M.loadingIndicator))}},{key:"getRowTop",value:function(e){return 0===e?0:(e=".".concat(M.tableBody," .").concat(M.tableRow,'[data-rowindex="').concat(e,'"]'),((e=this.artTable.querySelector(e))&&e.offsetTop||0)+(this.tableElement.offsetTop||0))}}]),n}();function Gr(t,e){var n,r=Object.keys(t);return Object.getOwnPropertySymbols&&(n=Object.getOwnPropertySymbols(t),e&&(n=n.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})),r.push.apply(r,n)),r}function Yr(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?Gr(Object(n),!0).forEach(function(e){S()(t,e,n[e])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):Gr(Object(n)).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))})}return t}var Ur=function(){function n(e){var t=1<arguments.length&&void 0!==arguments[1]?arguments[1]:{};i()(this,n),S()(this,"state",{lastScrollTime:0,scrollVelocity:0,lastOffsetY:0}),S()(this,"isFastScrolling",!1),S()(this,"fastScrollEndTimer",void 0),S()(this,"config",void 0),S()(this,"callbacks",void 0),this.callbacks=e,this.config=Yr({overscanSize:100,velocityThreshold:3,distanceMultiplier:3,fastScrollEndDelayHigh:200,fastScrollEndDelayNormal:150,highVelocityThreshold:5},t)}return r()(n,[{key:"isNearBottom",value:function(e,t,n){return n-e-t<t}},{key:"handleScrollEvent",value:function(e,t,n,r){var o=performance.now(),i=Math.abs(e.offsetY-this.state.lastOffsetY),a=o-this.state.lastScrollTime,a=(this.state.scrollVelocity=0<a?i/a:0,this.isNearBottom(e.offsetY,e.maxRenderHeight,r));this.isFastScrolling&&a?this.endFastScrolling(e):(r=i>this.config.overscanSize*this.config.distanceMultiplier,i=this.state.scrollVelocity>this.config.velocityThreshold,!r&&!i||this.isFastScrolling||a||this.startFastScrolling(t,n),this.isFastScrolling&&this.resetFastScrollEndTimer(e),this.state.lastOffsetY=e.offsetY,this.state.lastScrollTime=o)}},{key:"startFastScrolling",value:function(e,t){this.isFastScrolling=!0;t=this.callbacks.getCurrentRenderRange(e.offsetY,e.maxRenderHeight,t);this.callbacks.onFastScrollStart({offsetY:e.offsetY,maxRenderHeight:e.maxRenderHeight,maxRenderWidth:e.maxRenderWidth,verticalRenderRange:t})}},{key:"resetFastScrollEndTimer",value:function(e){var t=this,n=(this.fastScrollEndTimer&&clearTimeout(this.fastScrollEndTimer),this.state.scrollVelocity>this.config.highVelocityThreshold?this.config.fastScrollEndDelayHigh:this.config.fastScrollEndDelayNormal);this.fastScrollEndTimer=window.setTimeout(function(){t.endFastScrolling(e)},n)}},{key:"endFastScrolling",value:function(e){this.isFastScrolling=!1,this.fastScrollEndTimer=void 0,this.callbacks.onFastScrollEnd(e)}},{key:"cleanup",value:function(){this.fastScrollEndTimer&&clearTimeout(this.fastScrollEndTimer)}},{key:"getIsFastScrolling",value:function(){return this.isFastScrolling}},{key:"getScrollVelocity",value:function(){return this.state.scrollVelocity}},{key:"destroy",value:function(){this.fastScrollEndTimer&&(clearTimeout(this.fastScrollEndTimer),this.fastScrollEndTimer=void 0),this.isFastScrolling=!1}},{key:"getConfig",value:function(){return Yr({},this.config)}}]),n}();function qr(e,t,n){return e.getValue?e.getValue(t,n):t[e.code]}var L={safeRenderHeader:function(e){var t;return null!=(t=e.title)?t:e.name},safeGetValue:qr,safeGetRowKey:function(e,t,n){var r;return"string"==typeof e?r=t[e]:"function"==typeof e&&(r=e(t)),r=null==r?String(n):r},safeGetCellProps:function(e,t,n){var r;return e.getCellProps&&(r=qr(e,t,n),e.getCellProps(r,t,n))||{}},safeRender:function(e,t,n){var r=qr(e,t,n);return e.render?e.render(r,t,n):r}},Xr=function(){function e(){i()(this,e),S()(this,"rects",[])}return r()(e,[{key:"testSkip",value:function(o,i){return this.rects.some(function(e){var t=e.left,n=e.right,r=e.top,e=e.bottom;return t<=i&&i<n&&r<=o&&o<e})}},{key:"stripUpwards",value:function(t){this.rects=this.rects.filter(function(e){return e.bottom>t})}},{key:"add",value:function(e,t,n,r){this.rects.push({left:t,right:t+(n<1?1:n),top:e,bottom:e+r})}}]),e}();function Zr(t,e){var n,r=Object.keys(t);return Object.getOwnPropertySymbols&&(n=Object.getOwnPropertySymbols(t),e&&(n=n.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})),r.push.apply(r,n)),r}function Jr(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){S()(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 Qr(e){var t=e.tbodyHtmlTag,r=e.getRowProps,o=e.primaryKey,d=e.stickyRightOffset,n=e.data,p=e.verticalRenderInfo,h=e.horizontalRenderInfo,v=e.tbodyPosition,e=h.flat,g=(h.horizontalRenderRange,h.direction),y=new Xr,b=e.full.length,m=e.left.length,w=e.right.length;return x.a.createElement("table",null,x.a.createElement(sr,{descriptors:h.visible}),x.a.createElement(t,null,n.map(function(u,e){var f=p.offset+e,e=(y.stripUpwards(f),r(u,f)),t=C()(M.tableRow,(t={},S()(t,M.first,f===p.first),S()(t,M.last,f===p.last),S()(t,M.even,f%2==0),S()(t,M.odd,f%2==1),t),null==e?void 0:e.className),n=h.visible.concat();-1<["left","right"].indexOf(v)&&n.push({type:"blank",blankSide:"left",width:0,isPlacehoder:!0});return x.a.createElement("tr",O()({},e,{className:t,key:null!=e&&e["data-row-detail-key"]?e["data-row-detail-key"]:L.safeGetRowKey(o,u,f),"data-rowindex":f,"data-role":"table-row"}),n.map(function(e){var t,n,r,o,i,a,c,l,s;return"blank"===e.type?x.a.createElement("td",{key:e.blankSide,style:{visibility:e.isPlacehoder?"hidden":void 0}}):(t=u,n=f,r=e.col,e=e.colIndex,y.testSkip(n,e)?null:(i=L.safeGetValue(r,t,n),a=null!=(a=null==(a=r.getCellProps)?void 0:a.call(r,i,t,n))?a:{},c=i,r.render&&(c=r.render(i,t,n)),s=l=1,r.getSpanRect?(i=r.getSpanRect(i,t,n),l=null==i?1:i.right-e,s=null==i?1:i.bottom-n):(null!=a.colSpan&&(l=a.colSpan),null!=a.rowSpan&&(s=a.rowSpan)),(t=1<l||1<s)&&y.add(n,e,l,s),s=Math.min(s,p.limit-n),l=Math.min(l,h.visible.length-e),s=Math.max(s,1),l=Math.max(l,1),i={},e<m?(i.position="sticky",i.left=h.stickyLeftMap.get(e),"rtl"===g?i.right=h.stickyLeftMap.get(e):i.left=h.stickyLeftMap.get(e)):b-w<=e&&(i.position="sticky","rtl"===g?i.left=h.stickyRightMap.get(e)+("number"==typeof d?d:0):i.right=h.stickyRightMap.get(e)+("number"==typeof d?d:0)),x.a.createElement("td",Jr(Jr(Jr({key:e},a),{},{className:C()(M.tableCell,a.className,(o={},S()(o,M.first,0===e),S()(o,M.last,e+l===b),S()(o,M.lockLeft,e<m||"left"===v),S()(o,M.lockRight,b-w<=e),S()(o,M.rowSpan,1<s),o))},t?{colSpan:l,rowSpan:s}:null),{},{style:Jr(Jr({textAlign:r.align,verticalAlign:null!=(e=r.verticalAlign)?e:"middle"},a.style),i),"data-role":"table-cell","data-rowindex":n,"data-code":r.code}),"center"===v&&"sticky"===i.position?null:c)))}))})))}var eo=x.a.memo(function(){return x.a.createElement("svg",{style:{margin:"auto",display:"block",width:40,height:40},viewBox:"0 0 100 100",preserveAspectRatio:"xMidYMid"},x.a.createElement("circle",{cx:"50",cy:"50",r:"40",fill:"none",stroke:"#23a7fa",strokeDasharray:"188 64",strokeLinecap:"round",strokeWidth:"10"},x.a.createElement("animateTransform",{attributeName:"transform",dur:"1.5s",keyTimes:"0;1",repeatCount:"indefinite",type:"rotate",values:"0 50 50;360 50 50"})))});function to(e){var t=e.children,e=e.visible;return x.a.createElement("div",{className:M.loadingContentWrapper,style:{filter:e?"blur(1px)":"none"}},t)}function no(e){var t=e.visible,n=e.children,r=e.LoadingContentWrapper,e=e.LoadingIcon;return x.a.createElement("div",{className:M.loadingWrapper},t&&x.a.createElement("div",{className:M.loadingIndicatorWrapper},x.a.createElement("div",{className:M.loadingIndicator},x.a.createElement(void 0===e?eo:e,null))),x.a.createElement(void 0===r?to:r,{visible:t,children:n}))}function ro(n){var r=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(e){return!1}}();return function(){var e,t=Z()(n);return e=r?(e=Z()(this).constructor,Reflect.construct(t,arguments,e)):t.apply(this,arguments),X()(this,e)}}var oo=function(e){q()(n,e);var t=ro(n);function n(){return i()(this,n),t.apply(this,arguments)}return r()(n,[{key:"render",value:function(){return x.a.createElement(jn,{direction:this.props.direction})}}]),n}(y.PureComponent),io=t(71),ao=t.n(io);function co(t,e){var n,r=Object.keys(t);return Object.getOwnPropertySymbols&&(n=Object.getOwnPropertySymbols(t),e&&(n=n.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})),r.push.apply(r,n)),r}function g(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?co(Object(n),!0).forEach(function(e){S()(t,e,n[e])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):co(Object(n)).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))})}return t}var lo=new Map;function so(e){var i=Object(y.useRef)(null),t=e.row,a=e.rowIndex,n=e.domHelper,e=e.renderDetail,c=n.artTable;return Object(y.useEffect)(function(){function e(e){return".".concat(e," .").concat(M.tableRow,'[data-rowindex="').concat(a,'"]')}var t=i.current&&i.current.getBoundingClientRect(),n=c.querySelector(e(M.tableBody)),r=c.querySelector(e(M.fixedLeft)),o=c.querySelector(e(M.fixedRight));t.height&&(n&&(n.style.height=t.height+"px"),r&&(r.style.height=t.height+"px"),o)&&(o.style.height=t.height+"px")},[]),Object(y.useEffect)(function(){var e=n.getRowTop(a)||0;i.current.style.transform="translateY(".concat(e+"px",")")}),x.a.createElement("div",{ref:i,className:M.rowDetailItem},e(t,a))}function uo(e){return lo.get(e)}bn()&&(lo.set("header",function(e,t,n){var r=t.stickyTop,t=t.hasHeader,o=e.flat,i=e.nested,a=e.visible,c=e.hasLockColumn,l=o.left,o=o.right,s=i.left,u=i.right,i=hr(i.full)+1,f={right:(null==n?void 0:n.stickyRightOffset)||0};return x.a.createElement("div",{className:C()(M.tableHeader)},x.a.createElement("div",{className:C()(M.tableHeaderMain,"no-scrollbar"),style:{top:0===r?void 0:r,display:t?void 0:"none"}},x.a.createElement(Or,{info:e,theaderPosition:c?"center":void 0}),x.a.createElement("div",{className:M.verticalScrollPlaceholder,style:"number"==typeof(null==n?void 0:n.stickyRightOffset)?{width:null==n?void 0:n.stickyRightOffset}:void 0})),0<l.length?x.a.createElement("div",{className:M.fixedLeft},x.a.createElement(Or,{info:g(g({},e),{},{flat:{center:l,full:l,left:[],right:[]},nested:{center:s,full:s,left:[],right:[]},visible:a.slice(0,l.length),horizontalRenderRange:{leftIndex:0,leftBlank:0,rightIndex:l.length,rightBlank:0}}),theaderPosition:"left",rowCount:i})):null,0<o.length?x.a.createElement("div",{className:M.fixedRight,style:f},x.a.createElement(Or,{info:g(g({},e),{},{flat:{center:o,full:o,left:[],right:[]},nested:{center:u,full:u,left:[],right:[]},visible:a.slice(a.length-o.length),horizontalRenderRange:{leftIndex:0,leftBlank:0,rightIndex:o.length,rightBlank:0}}),theaderPosition:"right",rowCount:i})):null)}),lo.set("body",function(e,t,n){var r=t.dataSource,o=t.getRowProps,t=t.primaryKey,i=(l=e.verticalRenderRange).topIndex,a=l.bottomBlank,c=l.topBlank,l=l.bottomIndex,s=e.flat,u=e.visible,f=e.hasLockColumn,d=s.left,s=s.right,p={first:0,offset:i,limit:l,last:r.length-1},o={getRowProps:Zn(o,n.rowProps),primaryKey:t,data:r.slice(i,l)};return x.a.createElement("div",{className:C()(M.tableBody,M.horizontalScrollContainer)},x.a.createElement("div",{className:M.virtual,tabIndex:-1},0<c&&x.a.createElement("div",{key:"top-blank",className:C()(M.virtualBlank,"top"),style:{height:c}}),x.a.createElement(Qr,O()({tbodyHtmlTag:"tbody"},o,{tbodyPosition:f?"center":void 0,horizontalRenderInfo:e,verticalRenderInfo:p})),0<a&&x.a.createElement("div",{key:"bottom-blank",className:C()(M.virtualBlank,"bottom"),style:{height:a}})),0<d.length?x.a.createElement("div",{className:M.fixedLeft},0<c&&x.a.createElement("div",{key:"top-blank",className:C()(M.virtualBlank,"top"),style:{height:c}}),x.a.createElement(Qr,O()({tbodyHtmlTag:"tbody"},o,{tbodyPosition:"left",horizontalRenderInfo:g(g({},e),{},{flat:{center:d,full:d,left:[],right:[]},visible:u.slice(0,d.length)}),verticalRenderInfo:p})),0<a&&x.a.createElement("div",{key:"bottom-blank",className:C()(M.virtualBlank,"bottom"),style:{height:a}})):null,0<s.length?x.a.createElement("div",{className:M.fixedRight},0<c&&x.a.createElement("div",{key:"top-blank",className:C()(M.virtualBlank,"top"),style:{height:c}}),x.a.createElement(Qr,O()({tbodyHtmlTag:"tbody"},o,{tbodyPosition:"right",horizontalRenderInfo:g(g({},e),{},{flat:{center:s,full:s,left:[],right:[]},visible:u.slice(u.length-s.length)}),verticalRenderInfo:p})),0<a&&x.a.createElement("div",{key:"bottom-blank",className:C()(M.virtualBlank,"bottom"),style:{height:a}})):null,x.a.createElement("div",{className:M.rowDetailContainer}))}),lo.set("footer",function(e,t,n){var r=void 0===(r=t.footerDataSource)?[]:r,o=t.getRowProps,i=t.primaryKey,t=t.stickyBottom,o=Zn(o,n.rowProps),a=e.flat,c=e.visible,l=e.hasLockColumn,s=a.left,a=a.right,o={data:r,getRowProps:o,primaryKey:i,verticalRenderInfo:{offset:0,first:0,last:r.length-1,limit:1/0}},i={right:(null==n?void 0:n.stickyRightOffset)||0};return x.a.createElement("div",{className:C()(M.tableFooter),style:{bottom:0===t?void 0:t}},x.a.createElement("div",{className:C()(M.tableFooterMain,M.horizontalScrollContainer)},x.a.createElement(Qr,O()({tbodyHtmlTag:"tfoot"},o,{tbodyPosition:l?"center":void 0,horizontalRenderInfo:e})),0<r.length?x.a.createElement("div",{className:M.verticalScrollPlaceholder,style:"number"==typeof(null==n?void 0:n.stickyRightOffset)?{width:null==n?void 0:n.stickyRightOffset,visibility:"initial"}:void 0}):null),0<s.length?x.a.createElement("div",{className:M.fixedLeft},x.a.createElement(Qr,O()({tbodyHtmlTag:"tfoot"},o,{tbodyPosition:"left",horizontalRenderInfo:g(g({},e),{},{flat:{center:s,full:s,left:[],right:[]},visible:c.slice(0,s.length)})}))):null,0<a.length?x.a.createElement("div",{className:M.fixedRight,style:i},x.a.createElement(Qr,O()({tbodyHtmlTag:"tfoot"},o,{tbodyPosition:"right",horizontalRenderInfo:g(g({},e),{},{flat:{center:a,full:a,left:[],right:[]},visible:c.slice(c.length-a.length)})}))):null)}),lo.set("rowDetail",function(e){var t=e.domHelper;if(t)return t=(t=t.artTable)&&t.querySelector(".".concat(M.rowDetailContainer)),ao.a.createPortal(x.a.createElement(so,e),t)}));var An=Object(y.forwardRef)(function(e,t){var e=e.height,e=Object(y.useState)(e),e=A()(e,2),n=e[0],r=e[1];return Object(y.useImperativeHandle)(t,function(){return{updateHeight:function(e){n!==e&&r(e)}}},[n]),x.a.createElement("div",{style:{height:n}})}),Tn=(An.displayName="TopBlank",Object(y.forwardRef)(function(e,t){var n=e.height,e=e.className,n=Object(y.useState)(n),n=A()(n,2),r=n[0],o=n[1];return Object(y.useImperativeHandle)(t,function(){return{updateHeight:function(e){r!==e&&o(e)}}},[r]),r<=0?null:x.a.createElement("div",{key:"bottom-blank",className:C()(M.virtualBlank,"bottom",e),style:{height:r}})})),fo=(Tn.displayName="BottomBlank",Object(y.memo)(An,function(e,t){return e.height===t.height&&e.className===t.className})),po=Object(y.memo)(Tn,function(e,t){return e.height===t.height&&e.className===t.className});function ho(e,t){var n,r,o,i,a="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(a)return r=!(n=!0),{s:function(){a=a.call(e)},n:function(){var e=a.next();return n=e.done,e},e:function(e){r=!0,o=e},f:function(){try{n||null==a.return||a.return()}finally{if(r)throw o}}};if(Array.isArray(e)||(a=function(e,t){var n;if(e)return"string"==typeof e?vo(e,t):"Map"===(n="Object"===(n=Object.prototype.toString.call(e).slice(8,-1))&&e.constructor?e.constructor.name:n)||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?vo(e,t):void 0}(e))||t&&e&&"number"==typeof e.length)return a&&(e=a),i=0,{s:t=function(){},n:function(){return i>=e.length?{done:!0}:{done:!1,value:e[i++]}},e:function(e){throw e},f:t};throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function vo(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function go(t,e){var n,r=Object.keys(t);return Object.getOwnPropertySymbols&&(n=Object.getOwnPropertySymbols(t),e&&(n=n.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})),r.push.apply(r,n)),r}function yo(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?go(Object(n),!0).forEach(function(e){S()(t,e,n[e])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):go(Object(n)).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))})}return t}function bo(n){var r=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(e){return!1}}();return function(){var e,t=Z()(n);return e=r?(e=Z()(this).constructor,Reflect.construct(t,arguments,e)):t.apply(this,arguments),X()(this,e)}}var mo=!1;var wo=function(e){q()(n,e);var t=bo(n);function n(e){i()(this,n),d=t.call(this,e),S()(o()(d),"rowHeightManager",Vr(d.props.dataSource.length,d.props.estimatedRowHeight)),S()(o()(d),"artTableWrapperRef",x.a.createRef()),S()(o()(d),"domHelper",void 0),S()(o()(d),"rootSubscription",void 0),S()(o()(d),"resizeSubject",void 0),S()(o()(d),"lastInfo",void 0),S()(o()(d),"props$",void 0),S()(o()(d),"hasScrollY",!1),S()(o()(d),"resizeObserver",void 0),S()(o()(d),"offsetY",0),S()(o()(d),"fastScrollManager",void 0),S()(o()(d),"topBlankRef",x.a.createRef()),S()(o()(d),"bottomBlankRef",x.a.createRef()),S()(o()(d),"handleRowMouseEnter",function(e){e=d.domHelper.getRowNodeListByEvent(e);e&&e.forEach(function(e){e.classList.add("row-hover")})}),S()(o()(d),"handleRowMouseLeave",function(e){e=d.domHelper.getRowNodeListByEvent(e);e&&e.forEach(function(e){e.classList.remove("row-hover")})}),S()(o()(d),"renderTableBody",function(e){var t,n,r,o,i=d.props,a=i.dataSource,c=i.getRowProps,l=i.primaryKey,s=i.isLoading,i=i.emptyCellHeight,u=C()(M.tableBody,M.horizontalScrollContainer),f=yn.isIE||yn.isEdge?{overflow:"hidden"}:{};return 0===a.length?(r=(n=d.props).components,t=n.emptyContent,null==(n=r.EmptyContent)&&null!=t&&(mo||(mo=!0,Tt.warn("BaseTable props.emptyContent 已经过时,请使用 props.components.EmptyContent 来自定义数据为空时的表格表现")),n=function(){return t}),x.a.createElement("div",{className:C()(u,"empty")},x.a.createElement("div",{className:M.virtual,tabIndex:-1,style:f},x.a.createElement(fr,{descriptors:e.visible,isLoading:s,EmptyContent:n,emptyCellHeight:i})))):(s=(r=e.verticalRenderRange).topIndex,n=r.bottomBlank,i=r.topBlank,r=r.bottomIndex,"function"==typeof(o=uo("body"))?o(e,d.props,{rowProps:{onMouseEnter:d.handleRowMouseEnter,onMouseLeave:d.handleRowMouseLeave}}):x.a.createElement("div",{className:u},x.a.createElement("div",{className:M.virtual,tabIndex:-1,style:f},x.a.createElement(fo,{ref:d.topBlankRef,height:i}),x.a.createElement(Qr,{tbodyHtmlTag:"tbody",getRowProps:c,primaryKey:l,data:a.slice(s,r),horizontalRenderInfo:e,verticalRenderInfo:{first:0,offset:s,limit:r,last:a.length-1}}),x.a.createElement(po,{ref:d.bottomBlankRef,height:n}))))}),d.state={hasScroll:!0,hasScrollY:!0,needRenderLock:!0,offsetY:0,offsetX:0,maxRenderHeight:600,maxRenderWidth:800};var d,e={onFastScrollStart:function(e){d.setState({previousRenderData:e})},onFastScrollEnd:function(e){d.setState({previousRenderData:void 0,offsetY:e.offsetY,maxRenderHeight:e.maxRenderHeight,maxRenderWidth:e.maxRenderWidth})},getCurrentRenderRange:function(e,t,n){return d.rowHeightManager.getRenderRange(e,t,n)}};return d.fastScrollManager=new Ur(e),d}return r()(n,[{key:"getDoms",value:function(){return Tt.warn("[kd-table] BaseTable.getDoms() 已经过时"),this.domHelper}},{key:"updateStickyScroll",value:function(){var e,t,n=this.domHelper,r=n.stickyScroll,o=n.artTable,n=n.stickyScrollItem,i=this.hasScrollY;o&&(e=this.domHelper.getTableBodyHtmlTable().offsetWidth,t=o.offsetWidth,o=o.offsetHeight,0===t&&0===o||(o="auto"===(o=this.props.stickyScrollHeight)?this.getScrollBarWidth():o,r.style.height="".concat(o,"px"),e<=t?this.state.hasScroll&&this.setState({hasScroll:!1}):!this.state.hasScroll&&5<o&&this.setState({hasScroll:!0}),this.domHelper.virtual.offsetHeight>this.domHelper.tableBody.offsetHeight?this.hasScrollY=!0:this.hasScrollY=!1,i!==this.hasScrollY&&null!=(t=(r=this.props).setTableWidth)&&t.call(r,this.domHelper.tableBody.clientWidth),i=(o=this.lastInfo).leftLockTotalWidth+o.rightLockTotalWidth,t=this.hasScrollY?this.getScrollBarWidth():0,n.style.width="".concat(e-i+t,"px")))}},{key:"renderTableHeader",value:function(e){var t=this.props,n=t.stickyTop,t=t.hasHeader,r=uo("header"),o=this.hasScrollY?this.getScrollBarWidth():0;return"function"==typeof r?r(e,this.props,{stickyRightOffset:o}):x.a.createElement("div",{className:C()(M.tableHeader,"no-scrollbar"),style:{top:0===n?void 0:n,display:t?void 0:"none"}},x.a.createElement(Or,{info:e,stickyRightOffset:o}),x.a.createElement("div",{className:M.verticalScrollPlaceholder,style:this.hasScrollY?{width:this.getScrollBarWidth()}:void 0}))}},{key:"updateOffsetX",value:function(e){this.lastInfo.useVirtual.horizontal&&Math.abs(e-this.state.offsetX)>=Wn/2&&this.setState({offsetX:e})}},{key:"syncHorizontalScrollFromTableBody",value:function(){this.syncHorizontalScroll(this.domHelper.virtual.scrollLeft)}},{key:"syncHorizontalScroll",value:function(e){var e=Math.abs(e),t=(this.updateOffsetX(e),this.lastInfo.flat),n=0<e,e=e<this.domHelper.virtual.scrollWidth-this.domHelper.virtual.clientWidth,r=this.domHelper.getLeftLockShadow(),n=(r&&(0<t.left.length&&this.state.needRenderLock&&n?r.classList.add("show-shadow"):r.classList.remove("show-shadow")),this.domHelper.getRightLockShadow());n&&(0<t.right.length&&this.state.needRenderLock&&e?n.classList.add("show-shadow"):n.classList.remove("show-shadow"))}},{key:"getVerticalRenderRange",value:function(e){var t=this.props,n=t.dataSource,t=t.isLowPerformance,r=this.state,o=r.offsetY,i=r.maxRenderHeight,r=r.previousRenderData,n=n.length;return t&&this.fastScrollManager.getIsFastScrolling()&&null!=r&&r.verticalRenderRange?r.verticalRenderRange:e.vertical?this.rowHeightManager.getRenderRange(o,i,n):{topIndex:0,topBlank:0,bottomIndex:n,bottomBlank:0}}},{key:"renderTableFooter",value:function(e){var t=this.props,n=t.footerDataSource,n=void 0===n?[]:n,r=t.getRowProps,o=t.primaryKey,t=t.stickyBottom,i=this.hasScrollY?this.getScrollBarWidth():0,a=uo("footer");return"function"==typeof a?a(e,this.props,{rowProps:{onMouseEnter:this.handleRowMouseEnter,onMouseLeave:this.handleRowMouseLeave},stickyRightOffset:i}):x.a.createElement("div",{className:C()(M.tableFooter,M.horizontalScrollContainer),style:{bottom:0===t?void 0:t}},x.a.createElement(Qr,{tbodyHtmlTag:"tfoot",data:n,horizontalRenderInfo:e,getRowProps:r,stickyRightOffset:i,primaryKey:o,verticalRenderInfo:{offset:0,first:0,last:n.length-1,limit:1/0}}),0<n.length?x.a.createElement("div",{className:M.verticalScrollPlaceholder,style:this.hasScrollY?{width:this.getScrollBarWidth(),visibility:"initial"}:void 0}):null)}},{key:"renderLockShadows",value:function(e){var t,n=this.hasScrollY?this.getScrollBarWidth():0,r=e.leftLockTotalWidth+20,n=e.rightLockTotalWidth+20+n;return x.a.createElement(x.a.Fragment,null,x.a.createElement("div",{className:M.lockShadowMask,style:(t={},S()(t,v(e.direction,"left"),0),S()(t,"width",r),t)},x.a.createElement("div",{className:C()(M.lockShadow,M.leftLockShadow)})),x.a.createElement("div",{className:M.lockShadowMask,style:(r={},S()(r,v(e.direction,"right"),0),S()(r,"width",n),r)},x.a.createElement("div",{className:C()(M.lockShadow,M.rightLockShadow)})))}},{key:"renderStickyScroll",value:function(e){var t=this.props,n=t.hasStickyScroll,t=t.stickyBottom,r=this.state.hasScroll,n=n&&r,r=this.getStickyScrollContainerStyle();return x.a.createElement("div",{className:C()(M.horizontalScrollContainer,M.horizontalStickyScrollContainer),style:r},x.a.createElement("div",{className:C()(M.horizontalScrollLeftSpacer),style:{width:e.leftLockTotalWidth,display:n?"block":"none"}}),x.a.createElement("div",{className:C()(M.stickyScroll),style:{display:n?"block":"none",bottom:t}},x.a.createElement("div",{className:M.stickyScrollItem})),x.a.createElement("div",{className:C()(M.horizontalScrollRightSpacer),style:{width:e.rightLockTotalWidth,display:n?"block":"none"}}))}},{key:"getScrollBarWidth",value:function(){return this.props.scrollbarWidth||(null==$n&&($n=new be(Un()),Gn.pipe(P(Un)).subscribe($n)),$n.value.width)}},{key:"getStickyScrollContainerStyle",value:function(){var e=this.props,t=e.hasStickyScroll,e=e.stickyScrollHeight,n=this.state.hasScroll,t=t&&n,n="auto"===e?this.getScrollBarWidth():e,e=t?n:0;return{height:e,maxHeight:e,minHeight:e}}},{key:"render",value:function(){var e=lr(this),t=(this.lastInfo=e,this.props),n=t.dataSource,r=t.className,o=t.style,i=t.hasHeader,a=t.useOuterBorder,c=t.isStickyHead,l=t.isStickyHeader,s=t.isStickyFooter,u=t.isLoading,f=t.getTableProps,d=t.footerDataSource,p=t.components,h=t.bordered,t=t.direction,n=(e.direction=t,C()(M.artTableWrapper,(a={"use-outer-border":a,empty:0===n.length,lock:e.hasLockColumn,"has-header":i,"sticky-header":null!=l?l:c,"has-footer":0<d.length,"sticky-footer":s},S()(a,M.artTableBordered,h),S()(a,"ie-polyfill-wrapper",yn.isIE),S()(a,"sticky-polyfill-wrapper",bn()),a),r)),i=S()({className:n,style:yo(yo({},o),{},{direction:t})},Bn,this.artTableWrapperRef),l=f()||{};return x.a.createElement(x.a.Fragment,null,x.a.createElement(oo,{direction:e.direction}),x.a.createElement(Dn,O()({},i,{direction:e.direction}),x.a.createElement(no,{visible:u,LoadingIcon:p.LoadingIcon,LoadingContentWrapper:p.LoadingContentWrapper},x.a.createElement("div",O()({},l,{className:C()(M.artTable,l.className)}),this.renderTableHeader(e),this.renderTableBody(e),this.renderTableFooter(e),this.renderLockShadows(e)),this.renderStickyScroll(e))))}},{key:"componentDidMount",value:function(){this.rootSubscription=new u,this.resizeSubject=new ge,this.updateDOMHelper(),this.props$=new be(this.props),this.initSubscriptions(),this.didMountOrUpdate();var e=this.props,t=e.cssVariables,n=e.enableCSSVariables,e=e.bordered;Qn({variables:t||{},enableCSSVariables:n,bordered:e}),null!=(n=(t=this.props).setTableWidth)&&n.call(t,this.domHelper.tableBody.clientWidth),null!=(n=(e=this.props).setTableDomHelper)&&n.call(e,this.domHelper),null!=(n=(t=this.props).setRowHeightManager)&&n.call(t,this.rowHeightManager)}},{key:"componentDidUpdate",value:function(e,t){var n,r=this.props,o=r.cssVariables,i=r.enableCSSVariables,r=r.bordered;Xn(null==e?void 0:e.cssVariables,null==(n=this.props)?void 0:n.cssVariables)||Qn({variables:o||{},enableCSSVariables:i,bordered:r}),this.updateDOMHelper(),this.props$.next(this.props),this.didMountOrUpdate(e,t)}},{key:"didMountOrUpdate",value:function(e,t){var n=this;window.requestAnimationFrame(function(){n.syncHorizontalScrollFromTableBody(),n.updateStickyScroll(),n.adjustNeedRenderLock(),n.updateRowHeightManager()}),this.updateScrollLeftWhenLayoutChanged(e,t)}},{key:"updateScrollLeftWhenLayoutChanged",value:function(e,t){null!=t&&!t.hasScroll&&this.state.hasScroll&&(this.domHelper.stickyScroll.scrollLeft=0),null!=e&&(t=0<e.footerDataSource.length,e=0<this.props.footerDataSource.length,!t)&&e&&(Jn(this.domHelper).scrollLeft=this.domHelper.virtual.scrollLeft)}},{key:"initSubscriptions",value:function(){var t,n,r,o=this,e=this.domHelper,i=e.virtual,e=e.stickyScroll,a=(this.rootSubscription.add(Gn.subscribe(function(){o.updateStickyScroll(),o.adjustNeedRenderLock()})),this.resizeSubject.pipe((t=100,void 0===n&&(n=Be),function(e){return e.lift(new We(t,n))})).subscribe(function(){var e,t;null!=(e=(t=o.props).setTableWidth)&&e.call(t,o.domHelper.tableBody.clientWidth)}),this.resizeObserver=Yn(this.domHelper.artTableWrapper,function(){o.resizeSubject.next()}),this.rootSubscription.add(qn([(a=this.domHelper,bn()?a.tableHeaderMain:a.tableHeader),i,Jn(this.domHelper),e],function(e){o.syncHorizontalScroll(e)})),Br(this.domHelper.virtual,this.props$.pipe((r=1,function(e){return e.lift(new $e(r))}),Ye("structure-may-change")),this.props.virtualDebugLabel).pipe(at()));this.rootSubscription.add(function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var n=void 0,r=void 0;return me(e[e.length-1])&&(r=e.pop()),"function"==typeof e[e.length-1]&&(n=e.pop()),Te(e=1===e.length&&J(e[0])?e[0]:e,r).lift(new Ie(n))}([a.pipe(P(function(e){return e.clipRect}),st(Xn)),this.props$.pipe(mt(null),function(e){return e.lift(new wt)},St(function(e){var e=A()(e,2),t=e[0],e=e[1];return null==t||!t.isLoading&&e.isLoading}))]).subscribe(function(e){var e=A()(e,1)[0],t=o.domHelper.getLoadingIndicator();t&&(e=e.bottom-e.top,t.style.top="".concat(e/2,"px"),t.style.marginTop="".concat(e/2,"px"))})),this.rootSubscription.add(a.pipe(St(function(){var e=o.lastInfo.useVirtual,t=e.horizontal,e=e.vertical;return t||e}),P(function(e){var t=e.clipRect,e=e.offsetY;return{maxRenderHeight:t.bottom-t.top,maxRenderWidth:t.right-t.left,offsetY:e}}),st(function(e,t){return 0===t.maxRenderHeight&&0===t.maxRenderWidth||Math.abs(e.maxRenderWidth-t.maxRenderWidth)<Wn/2&&Math.abs(e.maxRenderHeight-t.maxRenderHeight)<Wn/2&&Math.abs(e.offsetY-t.offsetY)<Wn/2}),kt(function(e){o.props.isLowPerformance&&o.fastScrollManager.handleScrollEvent(e,{offsetY:o.state.offsetY,maxRenderHeight:o.state.maxRenderHeight,maxRenderWidth:o.state.maxRenderWidth},o.props.dataSource.length,o.domHelper.virtual.scrollHeight)})).subscribe(function(e){var t,n=o.rowHeightManager.getRenderRange(e.offsetY,e.maxRenderHeight,o.props.dataSource.length);null!=(t=o.topBlankRef.current)&&t.updateHeight(n.topBlank),null!=(t=o.bottomBlankRef.current)&&t.updateHeight(n.bottomBlank),o.props.isLowPerformance&&o.fastScrollManager.getIsFastScrolling()||o.setState(e)})),this.rootSubscription.add(a.pipe(P(function(e){var t=e.clipRect,e=e.offsetY;return{maxRenderHeight:t.bottom-t.top,maxRenderWidth:t.right-t.left,offsetY:e}}),st(function(e,t){return e.offsetY-t.offsetY==0}),P(function(e){var t=e.offsetY,e=e.maxRenderHeight,n=0<=t-o.offsetY?"down":"up",r=(o.offsetY=t,o.props.dataSource.length),t=o.rowHeightManager.getRenderRange(t,e,r),e=t.topIndex,r=t.bottomIndex,t=(null==(t=o.props.scrollLoad)?void 0:t.blockSize)||200,e=Math.floor(Math.max(e-1,0)/t)*t,r=Math.floor((r+1)/t)*t;return"down"==n?[e,r]:[r,e]}),st(function(e,t){return e[0]===t[0]&&e[1]===t[1]}),Pt(function(e){return Le(e).pipe(P(function(e){return e}))}),st()).subscribe(function(e){var t;null!=(t=o.props.scrollLoad)&&t.callback(e)}))}},{key:"componentWillUnmount",value:function(){var e;null!=(e=this.resizeObserver)&&e.disconnect(),this.rootSubscription.unsubscribe(),this.resizeSubject.unsubscribe(),this.props.isLowPerformance&&this.fastScrollManager.cleanup()}},{key:"updateDOMHelper",value:function(){this.domHelper=new $r(this.artTableWrapperRef.current)}},{key:"updateRowHeightManager",value:function(){var e,t=this.domHelper.getVirtualTop(),n=null!=(t=null==t?void 0:t.clientHeight)?t:0,r=-1,o=-1,i=0,a=ho(this.domHelper.getTableRows());try{for(a.s();!(e=a.n()).done;){var c,l,s=e.value,u=Number(s.dataset.rowindex);isNaN(u)||(r=Math.max(r,u),c=s.offsetTop+n,0===(l=s.offsetHeight)?i+=1:this.rowHeightManager.updateRow(u,c,l),o=Math.max(o,c+l))}}catch(e){a.e(e)}finally{a.f()}-1!==r&&0===i&&o<this.state.offsetY+this.state.maxRenderHeight&&this.getVerticalRenderRange(this.lastInfo.useVirtual).bottomIndex-1>r&&this.forceUpdate()}},{key:"adjustNeedRenderLock",value:function(){var e=this.state.needRenderLock,t=this.lastInfo,n=t.flat;t.hasLockColumn?e!==(t=Kn(n.full.map(function(e){return e.width}))>this.domHelper.artTable.clientWidth)&&this.setState({needRenderLock:t}):e&&this.setState({needRenderLock:!1})}}]),n}(x.a.Component);function xo(e,t){var n,r,o,i,a="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(a)return r=!(n=!0),{s:function(){a=a.call(e)},n:function(){var e=a.next();return n=e.done,e},e:function(e){r=!0,o=e},f:function(){try{n||null==a.return||a.return()}finally{if(r)throw o}}};if(Array.isArray(e)||(a=function(e,t){var n;if(e)return"string"==typeof e?So(e,t):"Map"===(n="Object"===(n=Object.prototype.toString.call(e).slice(8,-1))&&e.constructor?e.constructor.name:n)||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?So(e,t):void 0}(e))||t&&e&&"number"==typeof e.length)return a&&(e=a),i=0,{s:t=function(){},n:function(){return i>=e.length?{done:!0}:{done:!1,value:e[i++]}},e:function(e){throw e},f:t};throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function So(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function Oo(e,t){var n,r={},o=xo(e);try{for(o.s();!(n=o.n()).done;){var i=n.value,a=t(i);null==r[a]&&(r[a]=[]),r[a].push(i)}}catch(e){o.e(e)}finally{o.f()}return r}S()(wo,"defaultProps",{hasHeader:!0,isStickyHeader:!0,stickyTop:0,footerDataSource:[],isStickyFooter:!0,stickyBottom:0,hasStickyScroll:!0,stickyScrollHeight:"auto",useVirtual:"auto",estimatedRowHeight:48,isLowPerformance:!1,isLoading:!1,components:{},getTableProps:Ne,getRowProps:Ne,dataSource:[],useOuterBorder:!0});t(52);function Eo(e){return-1<e.findIndex(function(e){return e.children&&0<e.children.length})}function ko(e){for(var t=arguments.length,n=new Array(1<t?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];return n.reduce(function(e,t){return t(e)},e)}t(128);function jo(n,r){var o=[];return n.forEach(function(e,t){o.push.apply(o,T()(r(e,t,n)))}),o}var Co={diff:function(e,t){var n=new Set(t);return e.filter(function(e){return!n.has(e)})},merge:function(e,t){var n=new Set(e);return e.concat(t.filter(function(e){return!n.has(e)}))}};function Po(e){return function(){return e}}function Ro(e,t){for(var n=0,r=e.length,o=[];n<r||o.length;){var i=e[n++]||o.pop();if(t(i,n))return i;i.children&&o.splice.apply(o,[0,0].concat(T()(i.children)))}return null}function Ao(t,e){var n,r=Object.keys(t);return Object.getOwnPropertySymbols&&(n=Object.getOwnPropertySymbols(t),e&&(n=n.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})),r.push.apply(r,n)),r}function To(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?Ao(Object(n),!0).forEach(function(e){S()(t,e,n[e])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):Ao(Object(n)).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))})}return t}function Do(e,t){var n,r,o,i,a="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(a)return r=!(n=!0),{s:function(){a=a.call(e)},n:function(){var e=a.next();return n=e.done,e},e:function(e){r=!0,o=e},f:function(){try{n||null==a.return||a.return()}finally{if(r)throw o}}};if(Array.isArray(e)||(a=function(e,t){var n;if(e)return"string"==typeof e?Io(e,t):"Map"===(n="Object"===(n=Object.prototype.toString.call(e).slice(8,-1))&&e.constructor?e.constructor.name:n)||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Io(e,t):void 0}(e))||t&&e&&"number"==typeof e.length)return a&&(e=a),i=0,{s:t=function(){},n:function(){return i>=e.length?{done:!0}:{done:!1,value:e[i++]}},e:function(e){throw e},f:t};throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function Io(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function _o(e,t,n){function r(e){return i.has(e)?i.get(e):(i.set(e,e={id:e,parent:null,item:null,children:[]}),e)}var o,i=new Map,a=Do(n);try{for(a.s();!(o=a.n()).done;){var c=o.value,l=r(c[t]),s=r(c[e]);(s.parent=l).children.push(s),s.item=c}}catch(e){a.e(e)}finally{a.f()}return function e(t){var n=[];var r,o=Do(t);try{for(o.s();!(r=o.n()).done;){var i=r.value;0===i.children.length?n.push(i.item):n.push(To(To({},i.item),{},{children:e(i.children)}))}}catch(e){o.e(e)}finally{o.f()}return n}(jo(Array.from(i.values()).filter(function(e){return null==e.parent}),function(e){return e.children}))}function Mo(e,t){var n,r,o,i,a="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(a)return r=!(n=!0),{s:function(){a=a.call(e)},n:function(){var e=a.next();return n=e.done,e},e:function(e){r=!0,o=e},f:function(){try{n||null==a.return||a.return()}finally{if(r)throw o}}};if(Array.isArray(e)||(a=function(e,t){var n;if(e)return"string"==typeof e?Lo(e,t):"Map"===(n="Object"===(n=Object.prototype.toString.call(e).slice(8,-1))&&e.constructor?e.constructor.name:n)||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Lo(e,t):void 0}(e))||t&&e&&"number"==typeof e.length)return a&&(e=a),i=0,{s:t=function(){},n:function(){return i>=e.length?{done:!0}:{done:!1,value:e[i++]}},e:function(e){throw e},f:t};throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function Lo(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function No(e,t,n){return{c:e.c+t,r:e.r+n}}function Fo(p,e,t,n){var h,u,r,f,v=p.utils.aoa_to_sheet([]),g=hr(t)+1,o={c:0,r:0},o=(h=o,function e(t,n,r){var o,i,a=No(h,n,r),c=0,l=Mo(t);try{for(l.s();!(o=l.n()).done;){var s,u,f,d=o.value;null!=(s=d.features)&&s.noExport||(u=No(a,c,0),i=d.name,p.utils.sheet_add_aoa(v,[[i]],{origin:u}),D(d)?(c+=1,y(u,1,g-r)):(y(u,f=e(d.children,n+c,r+1),1),c+=f))}}catch(e){l.e(e)}finally{l.f()}return c}(t,0,0),u=No(o,0,g),r=I(t,"leaf-only").filter(function(e){return!(null!=(e=e.features)&&e.noExport)}),f=new Xr,e.map(function(l,s){return f.stripUpwards(s),r.map(function(e,t){var n,r,o,i,a,c;return f.testSkip(s,t)||(a=l,c=s,t=t,o=r=1,(n=e).getSpanRect?(i=L.safeGetValue(n,a,c),r=null==(i=n.getSpanRect(i,a,c))?1:i.right-t,o=null==i?1:i.bottom-c):(null!=(i=L.safeGetCellProps(n,a,c)).colSpan&&(r=i.colSpan),null!=i.rowSpan&&(o=i.rowSpan)),a=(n={top:c,bottom:c+o,left:t,right:t+r}).right-n.left,(1<(i=n.bottom-n.top)||1<a)&&(f.add(n.top,n.left,a,i),y(No(u,n.left,n.top),a,i)),(c=L.safeGetValue(e,l,s))===1/0)||c===-1/0||"number"==typeof c&&isNaN(c)?null:c})})),t=u;function y(e,t,n){1===t&&1===n||(null==v["!merges"]&&(v["!merges"]=[]),v["!merges"].push({s:e,e:No(e,t-1,n-1)}))}p.utils.sheet_add_aoa(v,o,{origin:t}),p.writeFile({SheetNames:["Sheet1"],Sheets:{Sheet1:v}},n)}t(295);function Ho(t,e){var n,r=Object.keys(t);return Object.getOwnPropertySymbols&&(n=Object.getOwnPropertySymbols(t),e&&(n=n.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})),r.push.apply(r,n)),r}function zo(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?Ho(Object(n),!0).forEach(function(e){S()(t,e,n[e])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):Ho(Object(n)).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))})}return t}function Bo(n,r){return function t(e){if(!Array.isArray(n))return n;return e.map(function(e){return D(e)?e:zo(zo({},e),{},{children:t(e.children)})}).sort(r)}(n)}var Wo=Symbol("factory-symbol");function b(o){var n=1<arguments.length&&void 0!==arguments[1]?arguments[1]:"auto",t=Object.keys(o);function r(e){var r=O()({},e);return t.forEach(function(e){var t,n;r[e]===b.empty?delete r[e]:(t=o[e],(n=t)&&n[Wo]?r[e]=t(r[e]):r[e]=null!=(n=r[e])?n:t)}),r}function i(e){return("auto"===n?Array.isArray(e):n)?null==e?[]:e.map(r):r(e)}return i[Wo]=!0,i.extends=function(e){var t=b(e,n);return function(e){return i(t(e))}},i}b.empty=Symbol("proto.empty"),(b.string=function(e){if(null!=e&&"string"!=typeof e)throw new Error("must be string");return e})[Wo]=!0,(b.number=function(e){if(null!=e&&"number"!=typeof e)throw new Error("must be number");return e})[Wo]=!0,(b.notNull=function(e){if(null==e)throw new Error("must be not null");return e})[Wo]=!0,b.object=function(e){return b(e,!1)},b.array=function(e){return b(e,!0)};var Ko=b;function Vo(t,e){var n,r=Object.keys(t);return Object.getOwnPropertySymbols&&(n=Object.getOwnPropertySymbols(t),e&&(n=n.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})),r.push.apply(r,n)),r}function $o(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?Vo(Object(n),!0).forEach(function(e){S()(t,e,n[e])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):Vo(Object(n)).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))})}return t}function Go(e,t){var n,r,o,i,a="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(a)return r=!(n=!0),{s:function(){a=a.call(e)},n:function(){var e=a.next();return n=e.done,e},e:function(e){r=!0,o=e},f:function(){try{n||null==a.return||a.return()}finally{if(r)throw o}}};if(Array.isArray(e)||(a=function(e,t){var n;if(e)return"string"==typeof e?Yo(e,t):"Map"===(n="Object"===(n=Object.prototype.toString.call(e).slice(8,-1))&&e.constructor?e.constructor.name:n)||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Yo(e,t):void 0}(e))||t&&e&&"number"==typeof e.length)return a&&(e=a),i=0,{s:t=function(){},n:function(){return i>=e.length?{done:!0}:{done:!1,value:e[i++]}},e:function(e){throw e},f:t};throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function Yo(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function m(d){return function(e){return function e(t,n,r){var o=0;var i=[];var a,c=Go(t);try{for(c.s();!(a=c.n()).done;){var l,s=a.value,u=(r.push(s),n+o),f=void 0;D(s)?(f=d(s,{startIndex:u,endIndex:u+1,path:r.slice(),isLeaf:!0}),o+=1):(l=e(s.children,u,r),f=d($o($o({},s),{},{children:l.result}),{startIndex:u,endIndex:u+l.flatCount,path:r.slice(),isLeaf:!1}),o+=l.flatCount),Array.isArray(f)?i.push.apply(i,T()(f)):null!=f&&i.push(f),r.pop()}}catch(e){c.e(e)}finally{c.f()}return{result:i,flatCount:o}}(e,0,[]).result}}function Uo(e,t){if(null==e)return 1;if(null==t)return-1;if("number"==typeof e&&"number"==typeof t)return e-t;if("string"==typeof e&&"string"==typeof t)return e<t?-1:t<e?1:0;if(Array.isArray(e)&&Array.isArray(t)){for(var n=Math.min(e.length,t.length),r=0;r<n;r++){var o=Uo(e[r],t[r]);if(0!==o)return o}return e.length-t.length}return 0}function qo(t,e){var n,r=Object.keys(t);return Object.getOwnPropertySymbols&&(n=Object.getOwnPropertySymbols(t),e&&(n=n.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})),r.push.apply(r,n)),r}function Xo(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?qo(Object(n),!0).forEach(function(e){S()(t,e,n[e])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):qo(Object(n)).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))})}return t}function Zo(e,t){var n,r,o,i,a="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(a)return r=!(n=!0),{s:function(){a=a.call(e)},n:function(){var e=a.next();return n=e.done,e},e:function(e){r=!0,o=e},f:function(){try{n||null==a.return||a.return()}finally{if(r)throw o}}};if(Array.isArray(e)||(a=function(e,t){var n;if(e)return"string"==typeof e?Jo(e,t):"Map"===(n="Object"===(n=Object.prototype.toString.call(e).slice(8,-1))&&e.constructor?e.constructor.name:n)||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Jo(e,t):void 0}(e))||t&&e&&"number"==typeof e.length)return a&&(e=a),i=0,{s:t=function(){},n:function(){return i>=e.length?{done:!0}:{done:!1,value:e[i++]}},e:function(e){throw e},f:t};throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function Jo(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function Qo(e){return null==e?[]:Array.isArray(e)?e:[e]}function ei(d){return function(e){var t=e.columns,f=e.dataSource;return{dataSource:f,columns:function e(t,n){var r=0;var o=[];var i,a=Zo(t);try{for(a.s();!(i=a.n()).done;){var c,l=i.value,s=n+r,u=void 0;D(l)?(u=d(l,{range:{start:s,end:s+1},dataSource:f}),r+=1):(c=e(l.children,s),u=d(Xo(Xo({},l),{},{children:c.result}),{range:{start:s,end:s+c.flatColCount},dataSource:f}),r+=c.flatColCount),o.push.apply(o,T()(Qo(u)))}}catch(e){a.e(e)}finally{a.f()}return{result:o,flatColCount:r}}(t,0).result}}}var ti=function(t){return function(e){e.value=t,e.select(),e.focus(),document.execCommand("copy"),document.body.removeChild(e)}};function ni(e){var t=document.createElement("textarea");t.style.width="1px",t.style.height="1px",t.style.top="0px",t.style.left="0px",t.style.position="absolute",t.style.opacity="0.0",document.body.appendChild(t);try{e(t)}catch(e){Tt.warn("Browser does not support document.execCommand('copy') for clipboard operations")}}function ri(t,e){var n,r=Object.keys(t);return Object.getOwnPropertySymbols&&(n=Object.getOwnPropertySymbols(t),e&&(n=n.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})),r.push.apply(r,n)),r}function oi(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?ri(Object(n),!0).forEach(function(e){S()(t,e,n[e])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):ri(Object(n)).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))})}return t}function ii(n,r){return function t(e){if(!Array.isArray(n))return n;return e.map(function(e){return D(e)?e:oi(oi({},e),{},{children:t(e.children)})}).filter(r)}(n)}var ai="checkboxSelection",ci="radioSelection";function li(e){e=e.features||{};return!0===e[ai]||!0===e[ci]}var si=new Set;function w(e){si.has(e)||(si.add(e),console.warn("[kd-table] transform 用法已经过时,请使用 pipeline 来对表格进行拓展"+"\n 请移除以下 API 的调用:".concat(e)))}function ui(t,e){var n,r=Object.keys(t);return Object.getOwnPropertySymbols&&(n=Object.getOwnPropertySymbols(t),e&&(n=n.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})),r.push.apply(r,n)),r}function fi(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?ui(Object(n),!0).forEach(function(e){S()(t,e,n[e])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):ui(Object(n)).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))})}return t}function di(e,t){return e===t}function pi(){return w("makeAutoRowSpanTransform"),ei(function(e,t){var n=t.dataSource,r=t.range;if(null==(t=e.features)||!t.autoRowSpan)return e;if(!D(e))return e;for(var o="function"==typeof e.features.autoRowSpan?e.features.autoRowSpan:di,i=[],a=0,c=null,l=null,s=0;s<n.length;s++){var u=n[s],f=L.safeGetValue(e,u,s);if(0===s||!o(c,f,l,u)){for(var d={top:a,bottom:s,left:r.start,right:r.end},p=a;p<s;p++)i.push(d);a=s}c=f,l=u}for(var h=a;h<n.length;h++)i.push({top:a,bottom:n.length,left:r.start,right:r.end});return fi(fi({},e),{},{getSpanRect:function(e,t,n){return i[n]}})})}function hi(t,e){var n,r=Object.keys(t);return Object.getOwnPropertySymbols&&(n=Object.getOwnPropertySymbols(t),e&&(n=n.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})),r.push.apply(r,n)),r}function vi(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?hi(Object(n),!0).forEach(function(e){S()(t,e,n[e])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):hi(Object(n)).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))})}return t}var gi="auto-width-wrapper",yi="auto-width-expander",bi=e.c.div(d()(["\n height: 100%;\n display: inline-flex;\n align-items: center;\n white-space: nowrap;\n padding: 8px 12px;\n"]));function mi(i,o,e){w("useAutoWidthTransform");var t=Object(y.useState)([]),t=A()(t,2),a=t[0],c=t[1],l=(Object(y.useEffect)(function(){var e=i.current.getDoms().artTable,e=Array.from(e.querySelectorAll(".".concat(M.tableRow)));if(0!==e.length){for(var n,r=[],t=0,o=e;t<o.length;t++)o[t].querySelectorAll(".".concat(gi)).forEach(function(e,t){r[t]=Math.max(null!=(t=r[t])?t:0,e.scrollWidth)});n=a,(e=r).length===n.length&&e.every(function(e,t){return e===n[t]})||c(r)}},e),0),s=ei(function(r){var e,t,n;return D(r)&&null!=(n=r.features)&&n.autoWidth?(e=(n=r.features.autoWidth).max,n=n.min,t=null!=(t=null!=(t=a[l++])?t:r.width)?t:null==o?void 0:o.initColumnWidth,n=Math.max(void 0===n?-1/0:n,Math.min(void 0===e?1/0:e,t)),vi(vi({},r),{},{width:n,getCellProps:function(e,t,n){return _(L.safeGetCellProps(r,t,n),{style:{padding:0}})},render:function(e,t,n){return x.a.createElement(bi,{className:gi,style:null==o?void 0:o.wrapperStyle},L.safeRender(r,t,n))}})):r});return function(e){var t,e=s(e),n=e.columns,e=e.dataSource,r=null!=(t=null==o?void 0:o.expanderVisibility)?t:"visible";return{columns:null!=o&&o.appendExpander?n.concat([{name:"",headerCellProps:{className:yi,style:{background:"hidden"===r?"var(--bgcolor)":void 0,border:"hidden"===r?"none":void 0}},getCellProps:function(){return{className:yi,style:{visibility:r}}}}]):n,dataSource:e}}}function wi(n,r){return w("makeBuildTreeTransform"),function(e){var t=e.columns,e=e.dataSource;return{columns:t,dataSource:_o(n,r,e)}}}function xi(t,e){var n,r=Object.keys(t);return Object.getOwnPropertySymbols&&(n=Object.getOwnPropertySymbols(t),e&&(n=n.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})),r.push.apply(r,n)),r}function Si(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?xi(Object(n),!0).forEach(function(e){S()(t,e,n[e])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):xi(Object(n)).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))})}return t}function Oi(e){var t=e.hoverColor,a=void 0===t?"var(--hover-bgcolor)":t,n=e.hoverColIndex,c=e.onChangeHoverColIndex;return w("makeColumnHoverTransform"),ei(function(e,t){var r,o,i=t.range;return D(e)?(r=i.start<=n&&n<i.end,o=e.getCellProps,Si(Si({},e),{},{getCellProps:function(e,t,n){return _(null==o?void 0:o(e,t,n),{style:{"--bgcolor":r?a:void 0},onMouseEnter:function(){c(i.start)},onMouseLeave:function(){c(-1)}})}})):e})}function Ei(){var e=0<arguments.length&&void 0!==arguments[0]?arguments[0]:{},t=e.hoverColor,e=e.defaultHoverColIndex,e=void 0===e?-1:e,e=Object(y.useState)(e),e=A()(e,2);return Oi({hoverColor:t,hoverColIndex:e[0],onChangeHoverColIndex:e[1]})}function ki(t,e){var n,r=Object.keys(t);return Object.getOwnPropertySymbols&&(n=Object.getOwnPropertySymbols(t),e&&(n=n.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})),r.push.apply(r,n)),r}function ji(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?ki(Object(n),!0).forEach(function(e){S()(t,e,n[e])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):ki(Object(n)).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))})}return t}var Ci={start:-1,end:-1};function Pi(e){var t=e.hoverColor,a=void 0===t?"var(--hover-bgcolor)":t,t=e.headerHoverColor,n=void 0===t?"var(--header-hover-bgcolor)":t,c=e.hoverRange,l=e.onChangeHoverRange;return w("makeColumnRangeHoverTransform"),ei(function(e,t){var r,o=t.range,i=o.end>c.start&&c.end>o.start;return D(e)?(r=e.getCellProps,ji(ji({},e),{},{headerCellProps:_(e.headerCellProps,{onMouseEnter:function(){l(o)},onMouseLeave:function(){l(Ci)},style:{"--header-bgcolor":i?n:void 0}}),getCellProps:function(e,t,n){return _(null==r?void 0:r(e,t,n),{onMouseEnter:function(){l(o)},onMouseLeave:function(){l(Ci)},style:{"--bgcolor":i?a:void 0}})}})):null==n?e:ji(ji({},e),{},{headerCellProps:_(e.headerCellProps,{onMouseEnter:function(){l(o)},onMouseLeave:function(){l(Ci)},style:{"--header-bgcolor":i?n:void 0}})})})}function Ri(){var e=0<arguments.length&&void 0!==arguments[0]?arguments[0]:{},t=e.hoverColor,n=e.headerHoverColor,e=e.defaultHoverRange,e=void 0===e?Ci:e,e=Object(y.useState)(e),e=A()(e,2);return Pi({hoverColor:t,headerHoverColor:n,hoverRange:e[0],onChangeHoverRange:e[1]})}var wn=t(72),Ai=t.n(wn);function Ti(t){return function(e){return e.lift(new Di(t))}}var Di=function(){function e(e){this.notifier=e}return e.prototype.call=function(e,t){var e=new Ii(e),n=pt(this.notifier,new dt(e));return n&&!e.seenValue?(e.add(n),t.subscribe(e)):e},e}(),Ii=function(t){function e(e){e=t.call(this,e)||this;return e.seenValue=!1,e}return c(e,t),e.prototype.notifyNext=function(){this.seenValue=!0,this.complete()},e.prototype.notifyComplete=function(){},e}(He),_i=["defaultSizes"];function Mi(t,e){var n,r=Object.keys(t);return Object.getOwnPropertySymbols&&(n=Object.getOwnPropertySymbols(t),e&&(n=n.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})),r.push.apply(r,n)),r}function Li(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?Mi(Object(n),!0).forEach(function(e){S()(t,e,n[e])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):Mi(Object(n)).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))})}return t}var Ni="resize-expander",Fi=e.c.span(d()(["\n position: absolute;\n top: 0;\n bottom: 0;\n right: -5px;\n width: 10px;\n cursor: col-resize;\n z-index: 1;\n"]));function Hi(e){function r(n,e){var t,r=e.clientX,o=a[n],e=R(window,"mousemove").pipe(Ti(R(window,"mouseup")),P(function(e){var e=e.clientX,t=a.slice();return t[n]=(e=o+(e-r),Math.max(l,Math.min(s,e))),t})),i="";u&&(t=document.documentElement.style,i=t.userSelect,t.userSelect="none"),e.subscribe({next:c,complete:function(){u&&(t.userSelect=i)}})}var a=e.sizes,c=e.onChangeSizes,t=e.minSize,l=void 0===t?40:t,t=e.maxSize,s=void 0===t?1/0:t,n=e.appendExpander,t=e.expanderVisibility,o=void 0===t?"visible":t,u=e.disableUserSelectWhenResizing,i=(w("makeColumnResizeTransform"),ei(function(e,t){var n=t.range;return D(e)?(t=L.safeRenderHeader(e),Li(Li({},e),{},{width:a[n.start],title:x.a.createElement(x.a.Fragment,null,t,x.a.createElement(Fi,{className:"resize-handle",onMouseDown:function(e){return r(n.start,e)}})),headerCellProps:Li(Li({},e.headerCellProps),{},{style:Li(Li({},null==(t=e.headerCellProps)?void 0:t.style),{},{overflow:"visible",position:"relative"})})})):e}));return function(e){var e=i(e),t=e.columns,e=e.dataSource;return{columns:n?t.concat([{name:"",headerCellProps:{className:Ni,style:{background:"hidden"===o?"var(--bgcolor)":void 0,border:"hidden"===o?"none":void 0}},getCellProps:function(){return{className:Ni,style:{visibility:o}}}}]):t,dataSource:e}}}function zi(e){var t=e.defaultSizes,e=Ai()(e,_i),t=Object(y.useState)(t),t=A()(t,2);return Hi(Li({sizes:t[0],onChangeSizes:t[1]},e))}function Bi(){return w("makeFlattenTransform"),ei(function(e){var t;return!D(e)&&null!=(t=e.features)&&t.flatten?e.children:e})}function Wi(t,e){var n,r=Object.keys(t);return Object.getOwnPropertySymbols&&(n=Object.getOwnPropertySymbols(t),e&&(n=n.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})),r.push.apply(r,n)),r}function Ki(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?Wi(Object(n),!0).forEach(function(e){S()(t,e,n[e])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):Wi(Object(n)).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))})}return t}function Vi(){var n=0<arguments.length&&void 0!==arguments[0]?arguments[0]:1;return w("makeOrderFieldTransform"),ei(function(e){var t;return null!=(t=e.features)&&t.order||null!=(t=e.features)&&t.orderField?Ki(Ki({},e),{},{getValue:function(e,t){return t+n}}):e})}var $i=["defaultSorts"];function Gi(e,t){var n,r,o,i,a,c,l="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(l)return o=!(r=!0),{s:function(){l=l.call(e)},n:function(){var e=l.next();return r=e.done,e},e:(c=function(e){o=!0,i=e},s.toString=function(){return c.toString()},s),f:function(){try{r||null==l.return||l.return()}finally{if(o)throw i}}};if(Array.isArray(e)||(l=function(e,t){var n;if(e)return"string"==typeof e?Yi(e,t):"Map"===(n="Object"===(n=Object.prototype.toString.call(e).slice(8,-1))&&e.constructor?e.constructor.name:n)||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Yi(e,t):void 0}(e))||t&&e&&"number"==typeof e.length)return l&&(e=l),a=0,{s:t=function(){},n:function(){return a>=e.length?{done:!0}:{done:!1,value:e[a++]}},e:(n=function(e){throw e},u.toString=function(){return n.toString()},u),f:t};throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");function s(e){return c.apply(this,arguments)}function u(e){return n.apply(this,arguments)}}function Yi(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function Ui(t,e){var n,r=Object.keys(t);return Object.getOwnPropertySymbols&&(n=Object.getOwnPropertySymbols(t),e&&(n=n.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})),r.push.apply(r,n)),r}function qi(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?Ui(Object(n),!0).forEach(function(e){S()(t,e,n[e])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):Ui(Object(n)).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))})}return t}function Xi(e){var t=e.size,t=void 0===t?32:t,n=e.style,r=e.className,e=e.order;return x.a.createElement("svg",{style:n,className:r,focusable:"false",preserveAspectRatio:"xMidYMid meet",width:t,height:t,viewBox:"0 0 32 32","aria-hidden":"true"},x.a.createElement("path",{fill:"asc"===e?"#23A3FF":"#bfbfbf",transform:"translate(0, 4)",d:"M8 8L16 0 24 8z"}),x.a.createElement("path",{fill:"desc"===e?"#23A3FF":"#bfbfbf",transform:"translate(0, -4)",d:"M24 24L16 32 8 24z "}))}function Zi(e){var t=e.children,n=e.column,r=e.onToggle,o=e.sortOrder,i=e.sortIndex,e=e.sortOptions,n="right"===n.align?"flex-end":"center"===n.align?"center":"flex-start";return x.a.createElement(Ji,{onClick:r,style:{justifyContent:n}},t,x.a.createElement(Xi,{style:{userSelect:"none",marginLeft:2,flexShrink:0},size:16,order:o}),"multiple"===e.mode&&-1!=i&&x.a.createElement("div",{style:{userSelect:"none",marginLeft:2,color:"#666",flex:"0 0 auto",fontSize:10,fontFamily:"monospace"}},i+1))}var Ji=e.c.div(d()(["\n cursor: pointer;\n display: flex;\n align-items: center;\n"]));function Qi(e){var t=e.sorts,n=e.onChangeSorts,r=e.orders,o=void 0===r?["desc","asc","none"]:r,r=e.mode,r=void 0===r?"multiple":r,i=e.SortHeaderCell,l=void 0===i?Zi:i,a=e.keepDataSource,s=e.highlightColumnWhenActive,u=e.stopClickEventPropagation,i=(w("makeSortTransform"),t.filter(function(e){return"none"!==e.order})),f="multiple"===r?i:i.slice(0,1),d="multiple"===r?n:function(e){var t=e.length;n(e.slice(t-1))},p={sorts:f,onChangeSorts:d,orders:o,mode:r,keepDataSource:a,highlightColumnWhenActive:s,stopClickEventPropagation:u},h=new Map(f.map(function(e,t){return[e.code,qi({index:t},e)]}));return function(e){var t=e.dataSource,n=e.columns;return{columns:n.map(function e(r){var t=qi({},r);var n=r.code&&((null==(n=r.features)?void 0:n.sortable)||h.has(r.code));var o=n&&h.has(r.code);{var i,a;n&&(n=-1,i="none",o&&(o=h.get(r.code),a=o.order,o=o.index,i=a,n=o,s)&&(t.headerCellProps=_(r.headerCellProps,{style:{background:"var(--header-highlight-bgcolor)"}}),t.getCellProps=function(e,t,n){t=L.safeGetCellProps(r,t,n);return _(t,{style:{background:"var(--highlight-bgcolor)"}})}),t.title=x.a.createElement(l,{onToggle:function(e){u&&e.stopPropagation(),c(r.code)},sortOrder:i,column:r,sortIndex:n,sortOptions:p},L.safeRenderHeader(r)))}D(r)||(t.children=r.children.map(e));return t}),dataSource:function(e){if(a)return e;var u=new Map(I(n,"leaf-only").filter(function(e){return null!=(null==(e=e.features)?void 0:e.sortable)}).map(function(e){return[e.code,e]}));return Bo(e,function(e,t){var n,r=Gi(f);try{for(r.s();!(n=r.n()).done;){var o=n.value,i=o.code,a=o.order,c=u.get(i);if(null!=c){var l=c.features.sortable,s=("function"==typeof l?l:Uo)(L.safeGetValue(c,e,-1),L.safeGetValue(c,t,-1));if(0!==s)return s*("asc"===a?1:-1)}}}catch(e){r.e(e)}finally{r.f()}return 0})}(t)};function c(t){var e,n,r=h.get(t);null==r?d(f.concat([{code:t,order:o[0]}])):(e=f.findIndex(function(e){return e.code===t}),n=f.slice(0,e+1),"none"===(r=function(e){e=o.indexOf(e);return o[e===o.length-1?0:e+1]}(r.order))?n.pop():n[e]=qi(qi({},n[e]),{},{order:r}),d(n))}}}function ea(){var e=0<arguments.length&&void 0!==arguments[0]?arguments[0]:{},t=e.defaultSorts,t=void 0===t?[]:t,e=Ai()(e,$i),t=Object(y.useState)(t),t=A()(t,2);return Qi(qi({sorts:t[0],onChangeSorts:t[1]},e))}var ta=e.c.div(d()(["\n display: inline-flex;\n align-items: center;\n"])),na=Object(e.c)(function(e){return x.a.createElement(ta,e)})(d()(["\n &."," {\n cursor: default;\n }\n\n .expansion-icon {\n fill: #999;\n flex: 0 0 16px;\n transition: transform 200ms;\n\n &."," {\n transform-origin: center center;\n transform: rotate(90deg);\n }\n }\n"]),M.leaf,M.expanded);var ra={Loading:function(e){return x.a.createElement("svg",O()({width:"16",height:"16",fill:"currentColor",viewBox:"0 0 1024 1024"},e),x.a.createElement("path",{d:"M512 74.667c-17.067 0-32 14.933-32 32V256c0 17.067 14.933 32 32 32s32-14.933 32-32V106.667c0-17.067-14.933-32-32-32zm181.333 288c8.534 0 17.067-2.134 23.467-8.534L821.333 249.6c12.8-12.8 12.8-32 0-44.8-12.8-12.8-32-12.8-44.8 0L672 309.333c-12.8 12.8-12.8 32 0 44.8 4.267 6.4 12.8 8.534 21.333 8.534zm224 117.333H768c-17.067 0-32 14.933-32 32s14.933 32 32 32h149.333c17.067 0 32-14.933 32-32s-14.933-32-32-32zM714.667 669.867c-12.8-12.8-32-12.8-44.8 0s-12.8 32 0 44.8L774.4 819.2c6.4 6.4 14.933 8.533 23.467 8.533s17.066-2.133 23.466-8.533c12.8-12.8 12.8-32 0-44.8L714.667 669.867zM512 736c-17.067 0-32 14.933-32 32v149.333c0 17.067 14.933 32 32 32s32-14.933 32-32V768c0-17.067-14.933-32-32-32zm-202.667-66.133L204.8 774.4c-12.8 12.8-12.8 32 0 44.8 6.4 6.4 14.933 8.533 23.467 8.533s17.066-2.133 23.466-8.533l104.534-104.533c12.8-12.8 12.8-32 0-44.8s-36.267-12.8-46.934 0zM288 512c0-17.067-14.933-32-32-32H106.667c-17.067 0-32 14.933-32 32s14.933 32 32 32H256c17.067 0 32-14.933 32-32zm-40.533-309.333c-12.8-12.8-32-12.8-44.8 0-12.8 12.8-12.8 32 0 44.8L307.2 352c6.4 6.4 14.933 8.533 23.467 8.533s17.066-2.133 23.466-8.533c12.8-12.8 12.8-32 0-44.8L247.467 202.667z"}))},CaretDown:function(e){return x.a.createElement("svg",O()({focusable:"false",preserveAspectRatio:"xMidYMid meet",fill:"currentColor",width:"16",height:"16",viewBox:"0 0 32 32"},e),x.a.createElement("path",{d:"M24 12L16 22 8 12z"}))},CaretRight:function(e){return x.a.createElement("svg",O()({focusable:"false",preserveAspectRatio:"xMidYMid meet",fill:"currentColor",width:"16",height:"16",viewBox:"0 0 32 32"},e),x.a.createElement("path",{d:"M12 8L22 16 12 24z"}))},Info:function(e){return x.a.createElement("svg",O()({focusable:"false",preserveAspectRatio:"xMidYMid meet",fill:"currentColor",width:"16",height:"16",viewBox:"0 0 16 16"},e),x.a.createElement("path",{d:"M8.5 11L8.5 6.5 6.5 6.5 6.5 7.5 7.5 7.5 7.5 11 6 11 6 12 10 12 10 11zM8 3.5c-.4 0-.8.3-.8.8S7.6 5 8 5c.4 0 .8-.3.8-.8S8.4 3.5 8 3.5z"}),x.a.createElement("path",{d:"M8,15c-3.9,0-7-3.1-7-7s3.1-7,7-7s7,3.1,7,7S11.9,15,8,15z M8,2C4.7,2,2,4.7,2,8s2.7,6,6,6s6-2.7,6-6S11.3,2,8,2z"}))}},oa=e.c.div(d()(["\n &.","{\n border: 1px solid #e9ecf1;\n border-radius: 2px;\n background-color: #Fff;\n box-shadow: 0px 0px 5px 0px rgb(154 154 154 / 50%);\n cursor: default;\n font-size: 12px;\n position:absolute;\n z-index: 1050;\n max-width: 600px;\n padding: 8px 0;\n }\n\n .","{\n width:100%;\n display: table;\n }\n\n ."," .","{\n display: table-row;\n color: #212121;\n }\n\n ."," .","{\n background-color: var(--hover-bgcolor);\n }\n\n ."," ."," .","{\n display: table-cell;\n padding: 8px 12px;\n max-width: 576px;\n overflow: hidden;\n white-space: nowrap;\n text-overflow: ellipsis;\n line-height: 16px;\n }\n ."," .",".","{\n opacity: .5;\n }\n\n"]),h.menu,h.menuList,h.menuList,h.menuOption,h.menuList,h.menuOptionActive,h.menuList,h.menuOption,h.menuOptionText,h.menuList,h.menuOption,h.menuOptionDisable);function ia(t,e){var n,r=Object.keys(t);return Object.getOwnPropertySymbols&&(n=Object.getOwnPropertySymbols(t),e&&(n=n.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})),r.push.apply(r,n)),r}function aa(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?ia(Object(n),!0).forEach(function(e){S()(t,e,n[e])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):ia(Object(n)).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))})}return t}var ca=e.c.div(d()(["\n display: flex;\n align-items: center;\n\n .tip-icon-wrapper {\n margin-left: 2px;\n }\n\n .tip-icon {\n display: flex;\n fill: currentColor;\n }\n"]));function la(e){var n=e.Balloon,r=e.Tooltip;return w("makeTipsTransform"),ei(function(e){var t;return null!=(t=e.features)&&t.tips?(t="right"===e.align?"flex-end":"center"===e.align?"center":"flex-start",aa(aa({},e),{},{title:x.a.createElement(ca,{style:{justifyContent:t}},L.safeRenderHeader(e),n?x.a.createElement(n,{closable:!1,trigger:x.a.createElement("div",{className:"tip-icon-wrapper"},x.a.createElement(ra.Info,{className:"tip-icon"}))},e.features.tips):x.a.createElement(r,{title:e.features.tips},x.a.createElement("div",{className:"tip-icon-wrapper"},x.a.createElement(ra.Info,{className:"tip-icon"}))))})):e})}var xn=t(73),sa=t.n(xn);function ua(t,e){var n,r=Object.keys(t);return Object.getOwnPropertySymbols&&(n=Object.getOwnPropertySymbols(t),e&&(n=n.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})),r.push.apply(r,n)),r}function fa(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?ua(Object(n),!0).forEach(function(e){S()(t,e,n[e])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):ua(Object(n)).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))})}return t}function da(e,t){var n,r,o,i,a="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(a)return r=!(n=!0),{s:function(){a=a.call(e)},n:function(){var e=a.next();return n=e.done,e},e:function(e){r=!0,o=e},f:function(){try{n||null==a.return||a.return()}finally{if(r)throw o}}};if(Array.isArray(e)||(a=function(e,t){var n;if(e)return"string"==typeof e?pa(e,t):"Map"===(n="Object"===(n=Object.prototype.toString.call(e).slice(8,-1))&&e.constructor?e.constructor.name:n)||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?pa(e,t):void 0}(e))||t&&e&&"number"==typeof e.length)return a&&(e=a),i=0,{s:t=function(){},n:function(){return i>=e.length?{done:!0}:{done:!1,value:e[i++]}},e:function(e){throw e},f:t};throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function pa(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}var ha=Symbol("treeMetaSymbol"),va="treeModeOptions";function ga(){var w=0<arguments.length&&void 0!==arguments[0]?arguments[0]:{};return function(o){function n(e,t,n){var r;null!=(r=w.onChangeOpenKeys)&&r.call(w,e,t,n),o.setStateAtKey(i,e,{key:t,action:n})}var e,i="treeMode",t=o.ctx,h=o.ensurePrimaryKey("treeMode"),r=null!=(e=null!=(e=null!=(e=w.openKeys)?e:o.getStateAtKey(i))?e:w.defaultOpenKeys)?e:[],a=o.getStateAtKey("sort"),v=new Set(r),l=function(t){v.has(t)?n(r.filter(function(e){return e!==t}),t,"collapse"):n([].concat(T()(r),[t]),t,"expand")},g=null!=(e=w.isLeafNode)?e:D,s=null!=(e=w.clickArea)?e:"cell",y=null!=(e=w.treeMetaKey)?e:ha,u=Boolean(w.stopClickEventPropagation),f=t.indents.iconWidth,d=null!=(e=w.iconIndent)?e:t.indents.iconIndent,p=null!=(e=w.iconGap)?e:t.indents.iconGap,b=null!=(e=w.indentSize)?e:t.indents.indentSize,m=(o.setFeatureOptions(va,{iconWidth:f,iconIndent:d,iconGap:p,indentSize:b,treeMetaKey:y,isExpanded:function(e){return v.has(e)},onExpand:function(e){n([].concat(T()(r),[e]),e,"expand")},onCollapse:function(t){n(r.filter(function(e){return e!==t}),t,"collapse")}}),w.icon);return o.mapDataSource(function(e){if(o.isSameInputDataSource()&&r===o.getFeatureOptions("lastOpenKeys")&&a===o.getFeatureOptions("lastSort"))return o.getFeatureOptions("lastTreeMode");o.setFeatureOptions("lastOpenKeys",r),o.setFeatureOptions("lastSort",a);var p=[];return function e(t,n,r){var o=2<arguments.length&&void 0!==r?r:null;if(null!=t){var i,a=da(t);try{for(a.s();!(i=a.n()).done;){var c=i.value,l=L.safeGetRowKey(h,c,-1),s=o?L.safeGetRowKey(h,o,-1):null,u=v.has(l),f=g(c,{depth:n,expanded:u,rowKey:l}),d={depth:n,isLeaf:f,expanded:u,rowKey:l,parentRowKey:s};p.push(fa(S()({},y,d),c)),!f&&u&&e(c.children,n+1,c)}}catch(e){a.e(e)}finally{a.f()}}}(e,0),o.setFeatureOptions("lastTreeMode",p),p}).mapColumns(function(e){if(0===e.length)return e;var t=e.findIndex(function(e){e=e.code;return e&&w.expandColCode===e}),c=e[t=-1===t?0:t];return e[t]=fa(fa({},c),{},{title:x.a.createElement("span",{style:{marginLeft:d+f+p,display:"flex"}},L.safeRenderHeader(c)),render:function(e,t,n){var r,o,i,a,n=L.safeRender(c,t,n);return null==t[y]?n:(t=t[y],r=t.rowKey,o=t.depth,i=t.isLeaf,t=t.expanded,o=d+o*b,i?x.a.createElement(ta,{className:C()("expansion-cell",M.leaf)},x.a.createElement("span",{style:{marginLeft:o+f+p}},n)):(i=function(e){u&&e.stopPropagation(),l(r)},a=t?M.expanded:M.collapsed,x.a.createElement(na,{className:C()("expansion-cell",a),style:{cursor:"content"===s?"pointer":void 0},onClick:"content"===s?i:void 0},m?x.a.createElement(m,{expanded:t,style:{cursor:"icon"===s?"pointer":void 0,marginLeft:o,marginRight:p,width:f},onClick:"icon"===s?i:void 0}):x.a.createElement(ra.CaretRight,{className:C()("expansion-icon",a),style:{cursor:"icon"===s?"pointer":void 0,marginLeft:o,marginRight:p},onClick:"icon"===s?i:void 0}),n)))},getCellProps:function(e,t,n){var r,o,n=L.safeGetCellProps(c,t,n);return null==t[y]||"cell"!==s?_(n,{className:M.tableExtendCell}):(r=(t=t[y]).isLeaf,o=t.rowKey,_(n,r?{className:M.tableExtendCell}:{onClick:function(e){u&&e.stopPropagation(),l(o)},style:{cursor:"pointer"},className:M.tableExtendCell}))}}),T()(e)})}}var ya=["defaultOpenKeys"];function ba(t,e){var n,r=Object.keys(t);return Object.getOwnPropertySymbols&&(n=Object.getOwnPropertySymbols(t),e&&(n=n.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})),r.push.apply(r,n)),r}function ma(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?ba(Object(n),!0).forEach(function(e){S()(t,e,n[e])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):ba(Object(n)).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))})}return t}function wa(e,t){var n,r,o,i,a="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(a)return r=!(n=!0),{s:function(){a=a.call(e)},n:function(){var e=a.next();return n=e.done,e},e:function(e){r=!0,o=e},f:function(){try{n||null==a.return||a.return()}finally{if(r)throw o}}};if(Array.isArray(e)||(a=function(e,t){var n;if(e)return"string"==typeof e?xa(e,t):"Map"===(n="Object"===(n=Object.prototype.toString.call(e).slice(8,-1))&&e.constructor?e.constructor.name:n)||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?xa(e,t):void 0}(e))||t&&e&&"number"==typeof e.length)return a&&(e=a),i=0,{s:t=function(){},n:function(){return i>=e.length?{done:!0}:{done:!1,value:e[i++]}},e:function(e){throw e},f:t};throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function xa(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}var Sa=16;function Oa(e){function c(t){y.has(t)?n(r.filter(function(e){return e!==t}),t,"collapse"):n([].concat(T()(r),[t]),t,"expand")}var n=e.onChangeOpenKeys,r=e.openKeys,f=e.primaryKey,t=e.iconIndent,l=void 0===t?-6:t,t=e.iconGap,s=void 0===t?0:t,t=e.indentSize,d=void 0===t?16:t,t=e.isLeafNode,p=void 0===t?D:t,t=e.clickArea,h=void 0===t?"cell":t,t=e.treeMetaKey,v=void 0===t?ha:t,g=e.stopClickEventPropagation,y=(w("makeTreeModeTransform"),new Set(r));return function(e){var u,t=e.columns,e=e.dataSource;return{columns:function(e){if(0===e.length)return e;var e=sa()(e),a=e[0],e=e.slice(1);return[ma(ma({},a),{},{title:x.a.createElement("span",{style:{marginLeft:l+Sa+s}},L.safeRenderHeader(a)),render:function(e,t,n){var r,o,i,n=L.safeRender(a,t,n);return null==t[v]?n:(t=t[v],r=t.rowKey,o=t.depth,i=t.isLeaf,t=t.expanded,o=l+o*d,i?x.a.createElement(ta,{className:"expansion-cell leaf"},x.a.createElement("span",{style:{marginLeft:o+Sa+s}},n)):(i=function(e){g&&e.stopPropagation(),c(r)},t=t?"expanded":"collapsed",x.a.createElement(na,{className:C()("expansion-cell",t),style:{cursor:"content"===h?"pointer":void 0},onClick:"content"===h?i:void 0},x.a.createElement(ra.CaretRight,{className:C()("expansion-icon",t),style:{cursor:"icon"===h?"pointer":void 0,marginLeft:o,marginRight:s},onClick:"icon"===h?i:void 0}),n)))},getCellProps:"cell"===h?function(e,t,n){var r,o,n=L.safeGetCellProps(a,t,n);return null==t[v]||(r=(t=t[v]).isLeaf,o=t.rowKey,r)?n:_(n,{onClick:function(e){g&&e.stopPropagation(),c(o)},style:{cursor:"pointer"}})}:a.getCellProps})].concat(T()(e))}(t),dataSource:(u=[],function e(t,n){if(null!=t){var r,o=wa(t);try{for(o.s();!(r=o.n()).done;){var i=r.value,a=i[f],c=y.has(a),l=p(i,{depth:n,expanded:c,rowKey:a}),s={depth:n,isLeaf:l,expanded:c,rowKey:a};u.push(ma(S()({},v,s),i)),!l&&c&&e(i.children,n+1)}}catch(e){o.e(e)}finally{o.f()}}}(e,0),u)}}}function Ea(e){var t=e.defaultOpenKeys,t=void 0===t?[]:t,e=Ai()(e,ya),t=Object(y.useState)(t),t=A()(t,2);return Oa(ma({openKeys:t[0],onChangeOpenKeys:t[1]},e))}function ka(t,e){var n,r=Object.keys(t);return Object.getOwnPropertySymbols&&(n=Object.getOwnPropertySymbols(t),e&&(n=n.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})),r.push.apply(r,n)),r}function ja(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?ka(Object(n),!0).forEach(function(e){S()(t,e,n[e])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):ka(Object(n)).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))})}return t}function Ca(e){w("makeVisibleTransform");var t=new Set(e);return ei(function(e){return!D(e)||t.has(e.code)?e:ja(ja({},e),{},{hidden:!0})})}function Pa(t,e){var n,r=Object.keys(t);return Object.getOwnPropertySymbols&&(n=Object.getOwnPropertySymbols(t),e&&(n=n.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})),r.push.apply(r,n)),r}function Ra(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?Pa(Object(n),!0).forEach(function(e){S()(t,e,n[e])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):Pa(Object(n)).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))})}return t}function Aa(e,t){return e===t}function Ta(){return function(e){var v=e.getDataSource();return e.mapColumns(m(function(e,t){var n=t.startIndex,r=t.endIndex;if(null==(t=e.features)||!t.autoRowSpan)return e;if(!D(e))return e;for(var o="function"==typeof e.features.autoRowSpan?e.features.autoRowSpan:Aa,i=[],a=0,c=null,l=null,s=0;s<v.length;s++){var u=v[s],f=L.safeGetValue(e,u,s);if(0===s||!o(c,f,l,u)){for(var d={top:a,bottom:s,left:n,right:r},p=a;p<s;p++)i.push(d);a=s}c=f,l=u}for(var h=a;h<v.length;h++)i.push({top:a,bottom:v.length,left:n,right:r});return Ra(Ra({},e),{},{getSpanRect:function(e,t,n){return i[n]}})}))}}function Da(t,n){return function(e){return e.mapDataSource(function(e){return _o(t,n,e)})}}function Ia(t,e){var n,r=Object.keys(t);return Object.getOwnPropertySymbols&&(n=Object.getOwnPropertySymbols(t),e&&(n=n.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})),r.push.apply(r,n)),r}function _a(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?Ia(Object(n),!0).forEach(function(e){S()(t,e,n[e])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):Ia(Object(n)).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))})}return t}function Ma(){var r=0<arguments.length&&void 0!==arguments[0]?arguments[0]:{},o="columnHover";return function(n){function a(e){var t;n.setStateAtKey(o,e),null!=(t=r.onChangeHoverColIndex)&&t.call(r,e)}var e,c=null!=(e=r.hoverColor)?e:"var(--hover-bgcolor)",l=null!=(e=null!=(e=null!=(e=r.hoverColIndex)?e:n.getStateAtKey(o))?e:r.defaultHoverColIndex)?e:-1;return n.mapColumns(m(function(e,t){var r,o,i={start:t.startIndex,end:t.endIndex};return D(e)?(r=i.start<=l&&l<i.end,o=e.getCellProps,_a(_a({},e),{},{getCellProps:function(e,t,n){return _(null==o?void 0:o(e,t,n),{style:{"--bgcolor":r?c:void 0},onMouseEnter:function(){a(i.start)},onMouseLeave:function(){a(-1)}})}})):e}))}}function La(t,e){var n,r=Object.keys(t);return Object.getOwnPropertySymbols&&(n=Object.getOwnPropertySymbols(t),e&&(n=n.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})),r.push.apply(r,n)),r}function Na(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?La(Object(n),!0).forEach(function(e){S()(t,e,n[e])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):La(Object(n)).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))})}return t}var Fa={start:-1,end:-1};function Ha(){var r=0<arguments.length&&void 0!==arguments[0]?arguments[0]:{},o="columnHover";return function(n){function a(e){var t;n.setStateAtKey(o,e),null!=(t=r.onChangeHoverRange)&&t.call(r,e)}var e,c=null!=(e=null!=(e=null!=(e=r.hoverRange)?e:n.getStateAtKey(o))?e:r.defaultHoverRange)?e:Fa,l=null!=(e=r.hoverColor)?e:"var(--hover-bgcolor)",s=null!=(e=r.headerHoverColor)?e:"var(--header-hover-bgcolor)";return n.mapColumns(m(function(e,t){var r,o={start:t.startIndex,end:t.endIndex},i=o.end>c.start&&c.end>o.start;return D(e)?(r=e.getCellProps,Na(Na({},e),{},{headerCellProps:_(e.headerCellProps,{onMouseEnter:function(){a(o)},onMouseLeave:function(){a(Fa)},style:{"--header-bgcolor":i?s:void 0}}),getCellProps:function(e,t,n){return _(null==r?void 0:r(e,t,n),{onMouseEnter:function(){a(o)},onMouseLeave:function(){a(Fa)},style:{"--bgcolor":i?l:void 0}})}})):null==s?e:Na(Na({},e),{},{headerCellProps:_(e.headerCellProps,{onMouseEnter:function(){a(o)},onMouseLeave:function(){a(Fa)},style:{"--header-bgcolor":i?s:void 0}})})}))}}function za(t,e){var n,r=Object.keys(t);return Object.getOwnPropertySymbols&&(n=Object.getOwnPropertySymbols(t),e&&(n=n.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})),r.push.apply(r,n)),r}function Ba(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?za(Object(n),!0).forEach(function(e){S()(t,e,n[e])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):za(Object(n)).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))})}return t}var Wa="fullRowsSetKey",Ka="allEnableKeys",Va="selectValueSetKey";function $a(){var b=0<arguments.length&&void 0!==arguments[0]?arguments[0]:{};return function(l){var i="multiSelect",a=l.ctx.components.Checkbox;if(null==a)throw new Error("使用 multiSelect 之前需要设置 pipeline.ctx.components.Checkbox");var e,t,n,s=l.ensurePrimaryKey("multiSelect"),u=null!=(t=b.isDisabled)?t:Po(!1),f=null!=(t=b.clickArea)?t:"checkbox",c=null!=(t=null!=(t=null!=(t=b.value)?t:null==(t=l.getStateAtKey(i))?void 0:t.value)?t:b.defaultValue)?t:[],d=null!=(t=null!=(t=null!=(t=b.lastKey)?t:null==(t=l.getStateAtKey(i))?void 0:t.lastKey)?t:b.defaultLastKey)?t:"",p=function(e,t,n,r){var o;null!=(o=b.onChange)&&o.call(b,e,t,n,r),l.setStateAtKey(i,{value:e,lastKey:t},{keys:n,action:r})},r=new Set,o=[],h=new Set(c),v=0!==h.size,g=!1;return I(l.getDataSource()).forEach(function(e,t){var n=L.safeGetRowKey(s,e,t);r.add(n),u(e,t)||(o.push(n),v=v&&h.has(n),g=g||h.has(n))}),b.checkboxColumn&&!0===b.checkboxColumn.hidden||(t=Ba(Ba({name:"是否选中",title:x.a.createElement(a,{checked:v,indeterminate:!v&&g,onChange:function(e){var t=l.getFeatureOptions(Ka);v?p(Co.diff(c,t),"",t,"uncheck-all"):p(Co.merge(c,t),"",t,"check-all")}}),width:50,align:"center"},b.checkboxColumn),{},{getCellProps:function(e,t,n){var r,o=L.safeGetRowKey(s,t,n),i={},a=null==(c=b.checkboxColumn)||null==(a=c.getCellProps)?void 0:a.call(c,e,t,n),c=l.getFeatureOptions(Wa)||new Set,e=l.getFeatureOptions(Va)||new Set;return c.has(o)&&"cell"===f&&(r=e.has(o),i={style:{cursor:(c=u(t,n))?"not-allowed":"pointer"},onClick:c?void 0:function(e){b.stopClickEventPropagation&&e.stopPropagation(),y(r,o,e.shiftKey)}}),_(a,i)},render:function(e,t,n){var r,o;return t[l.getFeatureOptions("footerRowMetaKey")]?null:(r=L.safeGetRowKey(s,t,n),o=(l.getFeatureOptions(Va)||new Set).has(r),x.a.createElement(a,{checked:o,disabled:u(t,n),onChange:"checkbox"===f?function(e,t){t=null!=(t=null==t?void 0:t.nativeEvent)?t:e.nativeEvent;t&&(b.stopClickEventPropagation&&t.stopPropagation(),y(o,r,t.shiftKey))}:void 0}))},features:Ba(Ba({},null==(t=b.checkboxColumn)?void 0:t.features),{},S()({},ai,!0))}),n=l.getColumns().slice(),"start"===(null!=(e=b.checkboxPlacement)?e:"start")?n.unshift(t):n.push(t),l.columns(n)),l.appendRowPropsGetter(function(e,t){var n,r,o,i,a=L.safeGetRowKey(s,e,t);if((l.getFeatureOptions(Wa)||new Set).has(a))return n={},i=(l.getFeatureOptions(Va)||new Set).has(a),b.highlightRowWhenSelected&&i&&(r="highlight"),"row"!==f||u(e,t)||(n.cursor="pointer",o=function(e){b.stopClickEventPropagation&&e.stopPropagation(),y(i,a,e.shiftKey)}),{className:r,style:n,onClick:o}}),l.setFeatureOptions(Wa,r),l.setFeatureOptions(Ka,o),l.setFeatureOptions(Va,h),h=o=r=null,l;function y(e,t,n){var r,o,i=[t];n&&d&&(r=(o=(n=l.getFeatureOptions(Ka)).indexOf(d))<(r=n.indexOf(t))?[o,r]:[r,o],r=(o=A()(r,2))[0],o=o[1],i=n.slice(r,o+1)),e?p(Co.diff(c,i),t,i,"uncheck"):p(Co.merge(c,i),t,i,"check")}}}function Ga(t,e){var n,r=Object.keys(t);return Object.getOwnPropertySymbols&&(n=Object.getOwnPropertySymbols(t),e&&(n=n.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})),r.push.apply(r,n)),r}function Ya(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?Ga(Object(n),!0).forEach(function(e){S()(t,e,n[e])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):Ga(Object(n)).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))})}return t}var Ua=Symbol("row-detail"),qa=function(){return x.a.createElement("div",{style:{margin:"8px 24px"}},x.a.createElement("b",{style:{color:"indianred"}},"设置 ",x.a.createElement("code",null,"rowDetail.renderDetail")," 来自定义详情内容"))};function Xa(){var m=0<arguments.length&&void 0!==arguments[0]?arguments[0]:{};return function(s){function e(e,t,n){var r;null!=(r=m.onChangeOpenKeys)&&r.call(m,e,t,n),s.setStateAtKey("rowDetail",e,{key:t,action:n})}var t,u=null!=(t=m.rowDetailMetaKey)?t:Ua,f=s.ensurePrimaryKey("rowDetail"),d=s.ctx.indents,p=d.iconIndent+d.iconWidth+d.iconGap,h=null!=(t=m.clickArea)?t:"cell",n=null!=(t=m.getDetailKey)?t:function(e,t){return L.safeGetRowKey(f,e,t)+"_detail"},v=null!=(t=m.renderDetail)?t:qa,g=null!=(t=m.hasDetail)?t:Po(!0),r=null!=(t=null!=(t=null!=(t=m.openKeys)?t:s.getStateAtKey("rowDetail"))?t:m.defaultOpenAll?s.getDataSource().filter(g).map(function(e,t){return L.safeGetRowKey(f,e,t)}):m.defaultOpenKeys)?t:[],y=new Set(r),b=function(t){y.has(t)?e(r.filter(function(e){return e!==t}),t,"collapse"):e([].concat(T()(r),[t]),t,"expand")},o="string"==typeof f?f:u.toString()+"PrimaryKey";return s.dataSource(jo(s.getDataSource(),function(e,t){return y.has(L.safeGetRowKey(f,e,t))?[e,Ya(Ya(S()({},u,!0),e),{},S()({},o,n(e,t)))]:[e]})).columns(function(e){if(0===e.length)return e;var c=0;if(m.expandColumnCode&&(c=e.findIndex(function(e){return e.code===m.expandColumnCode}))<0)return Tt.warn("没找到可展开的列,请检查设置的展开列code"),e;var l=e[c],e=T()(e),t=sa()(e),o=t[0];t.slice(1);return e[0]=Ya(Ya({},o),{},{render:function(e,t,n){var r;return t[u]?"function"==typeof(r=uo("rowDetail"))?r({row:t,rowIndex:n,domHelper:s.ref.current.domHelper,renderDetail:v}):v(t,n):L.safeRender(o,t,n)},getSpanRect:function(e,t,n){if(t[u])return{top:n,bottom:n+1,left:0,right:I(s.getColumns(),"leaf-only").length}}}),e[c]=Ya(Ya({},l),{},{title:x.a.createElement("div",{style:{display:"inline-block",marginLeft:p}},L.safeRenderHeader(l)),render:function(e,t,n){var r,o,i,a;return t[u]?0!==c?void 0:"function"==typeof(r=uo("rowDetail"))?r({row:t,rowIndex:n,domHelper:s.ref.current.domHelper,renderDetail:v}):v(t,n):(r=L.safeRender(l,t,n),g(t,n)?(o=L.safeGetRowKey(f,t,n),t=function(e){m.stopClickEventPropagation&&e.stopPropagation(),b(o)},i=(n=y.has(o))?M.expanded:M.collapsed,a=m.expandIcon,x.a.createElement(na,{className:C()("expansion-cell",i),style:{cursor:"content"===h?"pointer":void 0},onClick:"content"===h?t:void 0},m.expandIcon?x.a.createElement(a,{expanded:n,onClick:"icon"===h?t:void 0}):x.a.createElement(ra.CaretRight,{style:{cursor:"icon"===h?"pointer":void 0,marginLeft:d.iconIndent,marginRight:d.iconGap},className:C()("expansion-icon",i),onClick:"icon"===h?t:void 0}),r)):x.a.createElement(ta,{style:{marginLeft:p}},r))},getCellProps:"cell"===h?function(e,t,n){var r;return t[u]?{style:Ya({"--cell-padding":"0",overflow:"hidden"},m.detailCellStyle)}:(r=null==(r=l.getCellProps)?void 0:r.call(l,e,t,n),g(t,n)?_(r,{onClick:function(e){m.stopClickEventPropagation&&e.stopPropagation(),b(L.safeGetRowKey(f,t,n))},style:{cursor:"pointer"}}):r)}:l.getCellProps,getSpanRect:function(e,t,n){if(t[u])return{top:n,bottom:n+1,left:0,right:I(s.getColumns(),"leaf-only").length}}}),e}(s.getColumns())).appendRowPropsGetter(function(e){if(e[u])return{className:"no-hover","data-row-detail-key":e[o]}})}}function Za(t,e){var n,r=Object.keys(t);return Object.getOwnPropertySymbols&&(n=Object.getOwnPropertySymbols(t),e&&(n=n.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})),r.push.apply(r,n)),r}function Ja(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?Za(Object(n),!0).forEach(function(e){S()(t,e,n[e])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):Za(Object(n)).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))})}return t}var Qa=Symbol("row-grouping-meta");function ec(e){return null==e[Qa]?{isGroupHeader:!1,expandable:!1}:{isGroupHeader:!0,expandable:e[Qa].expandable}}function tc(e){if(ec(e).isGroupHeader)return{className:"alternative"}}function nc(){var p=0<arguments.length&&void 0!==arguments[0]?arguments[0]:{};return function(o){var e,i="rowGrouping",a=o.ctx.indents,c=a.iconIndent+a.iconWidth+a.iconGap,s=o.ensurePrimaryKey("rowGrouping");if("string"!=typeof s)throw new Error("rowGrouping 仅支持字符串作为 primaryKey");var u=null!=(e=null!=(e=null!=(e=p.openKeys)?e:o.getStateAtKey(i))?e:p.defaultOpenAll?o.getDataSource().map(function(e){return e[s]}):p.defaultOpenKeys)?e:[],f=new Set(u),d=function(e,t,n){var r;null!=(r=p.onChangeOpenKeys)&&r.call(p,e,t,n),o.setStateAtKey(i,e,{key:t,action:n})};return o.mapDataSource(function(e){return jo(e,function(e){var t=[(t=e,Ja(S()({},Qa,{expandable:!D(t)}),t))];return t=f.has(e[s])&&Array.isArray(e.children)?t.concat(e.children):t})}).mapColumns(function(e){if(0===e.length)return e;var r=I(e,"leaf-only").length,e=sa()(e),l=e[0],e=e.slice(1);return[Ja(Ja({},l),{},{title:x.a.createElement("div",{style:{display:"inline-block",marginLeft:c}},L.safeRenderHeader(l)),render:function(e,t,n){var r,n=L.safeRender(l,t,n),o=ec(t);return o.isGroupHeader&&o.expandable?(r=f.has(t[s])?M.expanded:M.collapsed,x.a.createElement(na,{className:C()("expansion-cell",r)},x.a.createElement(ra.CaretRight,{className:C()("expansion-icon",r),style:{marginLeft:a.iconIndent,marginRight:a.iconGap}}),null!=(r=t.groupTitle)?r:n)):(r=c+(o.isGroupHeader?0:a.indentSize),x.a.createElement(ta,{style:{marginLeft:r}},o.isGroupHeader&&null!=(r=t.groupTitle)?r:n))},getCellProps:function(e,t,n){var r,o,i,a,c=ec(t);if(c.isGroupHeader)return c=c.expandable,o=t[s],i=f.has(o),c&&(a=function(e){p.stopClickEventPropagation&&e.stopPropagation(),i?d(u.filter(function(e){return e!==o}),o,"collapse"):d([].concat(T()(u),[o]),o,"expand")}),_(null==(r=l.getCellProps)?void 0:r.call(l,e,t,n),{onClick:a,style:{cursor:c?"pointer":void 0}})},getSpanRect:function(e,t,n){if(ec(t).isGroupHeader)return{top:n,bottom:n+1,left:0,right:r}}})].concat(T()(e))}).appendRowPropsGetter(tc)}}function rc(t,e){var n,r=Object.keys(t);return Object.getOwnPropertySymbols&&(n=Object.getOwnPropertySymbols(t),e&&(n=n.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})),r.push.apply(r,n)),r}function oc(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?rc(Object(n),!0).forEach(function(e){S()(t,e,n[e])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):rc(Object(n)).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))})}return t}function ic(){var f=0<arguments.length&&void 0!==arguments[0]?arguments[0]:{};return function(o){var e,i=o.ctx.components.Radio;if(null==i)throw new Error("使用 singleSelect 之前需要通过 pipeline context 设置 components.Radio");function a(e){var t;null!=(t=f.onChange)&&t.call(f,e),o.setStateAtKey(n,e)}var n="singleSelect",c=null!=(t=f.clickArea)?t:"radio",l=null!=(t=f.isDisabled)?t:Po(!1),s=o.ensurePrimaryKey("singleSelect"),u=null!=(t=null!=(t=f.value)?t:o.getStateAtKey(n))?t:f.defaultValue,t=oc(oc({name:"",width:50,align:"center"},f.radioColumn),{},{getCellProps:function(e,t,n){var r,o,i=null==(o=f.radioColumn)||null==(i=o.getCellProps)?void 0:i.call(o,e,t,n);return"cell"===c?(r=L.safeGetRowKey(s,t,n),_(i,{style:{cursor:(o=l(t,n))?"not-allowed":"pointer"},onClick:o?void 0:function(e){f.stopClickEventPropagation&&e.stopPropagation(),a(r)}})):i},render:function(e,t,n){var r;return t[o.getFeatureOptions("footerRowMetaKey")]?null:(r=L.safeGetRowKey(s,t,n),x.a.createElement(i,{checked:u===r,disabled:l(t,n),onChange:"radio"===c?function(e,t){t=null!=(t=null==t?void 0:t.nativeEvent)?t:null==e?void 0:e.nativeEvent;t&&f.stopClickEventPropagation&&t.stopPropagation(),a(r)}:void 0}))},features:oc(oc({},null==(t=f.radioColumn)?void 0:t.features),{},S()({},ci,!0))}),r=o.getColumns().slice();return"start"===(null!=(e=f.radioPlacement)?e:"start")?r.unshift(t):r.push(t),o.columns(r),o.appendRowPropsGetter(function(e,t){var n,r,o=L.safeGetRowKey(s,e,t),i={};return f.highlightRowWhenSelected&&u===o&&(n="highlight"),"row"!==c||l(e,t)||(i.cursor="pointer",r=function(e){f.stopClickEventPropagation&&e.stopPropagation(),a(o)}),{className:n,style:i,onClick:r}}),o}}function ac(e,t){var n,r,o,i,a,c,l="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(l)return o=!(r=!0),{s:function(){l=l.call(e)},n:function(){var e=l.next();return r=e.done,e},e:(c=function(e){o=!0,i=e},s.toString=function(){return c.toString()},s),f:function(){try{r||null==l.return||l.return()}finally{if(o)throw i}}};if(Array.isArray(e)||(l=function(e,t){var n;if(e)return"string"==typeof e?cc(e,t):"Map"===(n="Object"===(n=Object.prototype.toString.call(e).slice(8,-1))&&e.constructor?e.constructor.name:n)||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?cc(e,t):void 0}(e))||t&&e&&"number"==typeof e.length)return l&&(e=l),a=0,{s:t=function(){},n:function(){return a>=e.length?{done:!0}:{done:!1,value:e[a++]}},e:(n=function(e){throw e},u.toString=function(){return n.toString()},u),f:t};throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");function s(e){return c.apply(this,arguments)}function u(e){return n.apply(this,arguments)}}function cc(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function lc(t,e){var n,r=Object.keys(t);return Object.getOwnPropertySymbols&&(n=Object.getOwnPropertySymbols(t),e&&(n=n.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})),r.push.apply(r,n)),r}function sc(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?lc(Object(n),!0).forEach(function(e){S()(t,e,n[e])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):lc(Object(n)).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))})}return t}function uc(e){var t=e.size,t=void 0===t?32:t,n=e.style,r=e.className,e=e.order;return x.a.createElement("svg",{style:n,className:r,focusable:"false",preserveAspectRatio:"xMidYMid meet",width:t,height:t,viewBox:"0 0 32 32","aria-hidden":"true",fill:"currentColor"},x.a.createElement("path",{fill:"asc"===e?"currentColor":"#bfbfbf",transform:"translate(0, 4)",d:"M8 8L16 0 24 8z"}),x.a.createElement("path",{fill:"desc"===e?"currentColor":"#bfbfbf",transform:"translate(0, -4)",d:"M24 24L16 32 8 24z "}))}function fc(e){var t=e.children,n=e.column,r=e.onToggle,o=e.sortOrder,i=e.sortIndex,e=e.sortOptions,n="right"===n.align?"flex-end":"center"===n.align?"center":"flex-start";return x.a.createElement(dc,{onClick:r,style:{justifyContent:n}},t,x.a.createElement(uc,{style:{userSelect:"none",marginLeft:2,flexShrink:0},className:C()((r={},S()(r,M.tableSortIcon,!0),S()(r,"active","desc"===o||"asc"===o),r)),size:16,order:o}),"multiple"===e.mode&&-1!==i&&x.a.createElement("div",{style:{userSelect:"none",marginLeft:2,color:"#666",flex:"0 0 auto",fontSize:10,fontFamily:"monospace"}},i+1))}var dc=e.c.div(d()(["\n cursor: pointer;\n display: flex;\n align-items: center;\n // flex: auto;\n"])),pc="sort";function hc(){var g=0<arguments.length&&void 0!==arguments[0]?arguments[0]:{};return function(r){function o(e,t){var n;null!=(n=g.onChangeSorts)&&n.call(g,e,t),r.setStateAtKey(pc,e)}var e=g.orders,i=void 0===e?["desc","asc","none"]:e,e=g.mode,e=void 0===e?"multiple":e,t=g.SortHeaderCell,c=void 0===t?fc:t,n=g.keepDataSource,l=g.highlightColumnWhenActive,s=g.stopClickEventPropagation,t=g.sortIconHoverShow,a=(null!=(a=null!=(a=null!=(a=g.sorts)?a:r.getStateAtKey(pc))?a:g.defaultSorts)?a:[]).filter(function(e){return"none"!==e.order}),f="multiple"===e?a:a.slice(0,1),u="multiple"===e?o:function(e,t){var n=e.length;o(e.slice(n-1),t)},d={sorts:f,onChangeSorts:u,orders:i,mode:e,keepDataSource:n,highlightColumnWhenActive:l,stopClickEventPropagation:s,sortIconHoverShow:t},p=new Map(f.map(function(e,t){return[e.code,sc({index:t},e)]})),a=r.getDataSource(),h=r.getColumns();return r.dataSource(function(e){if(n)return e;if(0===p.size)return e;var u=new Map(I(h,"leaf-only").filter(function(e){var t;return!1!==(null==(t=e.features)?void 0:t.sortable)&&null!=(null==(t=e.features)?void 0:t.sortable)}).map(function(e){return[e.code,e]}));return Bo(e,function(e,t){var n,r=ac(f);try{for(r.s();!(n=r.n()).done;){var o=n.value,i=o.code,a=o.order,c=u.get(i);if(null!=c){var l=c.features.sortable,s=("function"==typeof l?l:Uo)(L.safeGetValue(c,e,-1),L.safeGetValue(c,t,-1),e,t);if(0!==s)return s*("asc"===a?1:-1)}}}catch(e){r.e(e)}finally{r.f()}return 0})}(a)),r.columns(h.map(function e(r){var t=sc({},r);var n=r.code&&((null==(n=r.features)?void 0:n.sortable)||p.has(r.code));var o=n&&p.has(r.code);{var i,a;n&&(n=-1,i="none",o&&(o=p.get(r.code),a=o.order,o=o.index,i=a,n=o,l)&&(t.headerCellProps=_(r.headerCellProps,{style:{background:"var(--header-highlight-bgcolor)"}}),t.getCellProps=function(e,t,n){t=L.safeGetCellProps(r,t,n);return _(t,{style:{background:"var(--highlight-bgcolor)"}})}),a=x.a.createElement(c,{onToggle:function(e){s&&e.stopPropagation(),v(r.code)},sortOrder:i,column:r,sortIndex:n,sortOptions:d},L.safeRenderHeader(sc(sc({},r),{},{title:r.title&&r.title[0]?r.title[0]:r.title}))),o=x.a.createElement(c,{onToggle:function(e){s&&e.stopPropagation(),v(r.code)},sortOrder:i,column:r,sortIndex:n,sortOptions:d}),r.renderHeader?t.title=r.renderHeader(t.title,o):t.title&&t.title[0]?t.title[0]=a:t.title=a)}D(r)||(t.children=r.children.map(e));return t})),r;function v(t){var e,n,r,o=p.get(t);null==o?(r={code:t,order:i[0]},u(f.concat([r]),r)):(e=f.findIndex(function(e){return e.code===t}),n=f.slice(0,e+1),o=function(e){e=i.indexOf(e);return i[e===i.length-1?0:e+1]}(o.order),r={code:t,order:o},"none"===o?n.pop():n[e]=sc(sc({},n[e]),{},{order:o}),u(n,r))}}}function vc(t,e){var n,r=Object.keys(t);return Object.getOwnPropertySymbols&&(n=Object.getOwnPropertySymbols(t),e&&(n=n.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})),r.push.apply(r,n)),r}function gc(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?vc(Object(n),!0).forEach(function(e){S()(t,e,n[e])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):vc(Object(n)).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))})}return t}var yc=e.c.div(d()(["\n display: flex;\n align-items: center;\n\n .tip-icon-wrapper {\n margin-",": 2px;\n }\n\n .tip-icon {\n display: flex;\n fill: currentColor;\n }\n"]),function(e){return v(e.direction,"left")});function bc(){return function(n){var r=n.ctx.components.Balloon,o=n.ctx.components.Tooltip;if(null==r&&null==o)throw new Error("使用 tips 之前需要通过 pipeline context 设置 components.Balloon / components.Tooltip");return n.mapColumns(m(function(e){var t;return null!=(t=e.features)&&t.tips?(t="right"===e.align?"flex-end":"center"===e.align?"center":"flex-start",gc(gc({},e),{},{title:x.a.createElement(yc,{style:{justifyContent:t},direction:n.ctx.direction},L.safeRenderHeader(e),r?x.a.createElement(r,{closable:!1,trigger:x.a.createElement("div",{className:"tip-icon-wrapper"},x.a.createElement(ra.Info,{className:"tip-icon"}))},e.features.tips):x.a.createElement(o,{title:e.features.tips},x.a.createElement("div",{className:"tip-icon-wrapper"},x.a.createElement(ra.Info,{className:"tip-icon"}))))})):e}))}}function mc(e,t){var n,r,o,i,a="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(a)return r=!(n=!0),{s:function(){a=a.call(e)},n:function(){var e=a.next();return n=e.done,e},e:function(e){r=!0,o=e},f:function(){try{n||null==a.return||a.return()}finally{if(r)throw o}}};if(Array.isArray(e)||(a=function(e,t){var n;if(e)return"string"==typeof e?wc(e,t):"Map"===(n="Object"===(n=Object.prototype.toString.call(e).slice(8,-1))&&e.constructor?e.constructor.name:n)||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?wc(e,t):void 0}(e))||t&&e&&"number"==typeof e.length)return a&&(e=a),i=0,{s:t=function(){},n:function(){return i>=e.length?{done:!0}:{done:!1,value:e[i++]}},e:function(e){throw e},f:t};throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function wc(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}var xc=r()(function e(t){i()(this,e),S()(this,"root",void 0),S()(this,"children",void 0),S()(this,"parent",void 0),S()(this,"node",void 0),S()(this,"checked",void 0),O()(this,t)}),Sc=function(){function t(e){i()(this,t),S()(this,"opts",void 0),S()(this,"valueSet",void 0),S()(this,"wrapperMap",void 0),S()(this,"rootWrapper",void 0),this.opts=e,this.valueSet=new Set(e.value),this.initWrapperTree()}return r()(t,[{key:"initWrapperTree",value:function(){var c=this,l=this.opts.getNodeValue;this.rootWrapper=new xc({root:!0,children:[]}),this.wrapperMap=new Map,function e(t,n){var r,o=mc(n);try{for(o.s();!(r=o.n()).done;){var i=r.value,a=new xc({parent:t,node:i,checked:c.valueSet.has(l(i))});c.wrapperMap.set(l(i),a),t.children.push(a),D(i)||(a.children=[],e(a,i.children))}}catch(e){o.e(e)}finally{o.f()}}(this.rootWrapper,this.opts.tree)}},{key:"value",get:function(){return this.opts.value}},{key:"isIndeterminate",value:function(e){return!1}},{key:"isChecked",value:function(e){return this.valueSet.has(e)}},{key:"getValueAfterCheck",value:function(e){return this.isChecked(e)?this.value:Co.merge(this.value,[e])}},{key:"getValueAfterUncheck",value:function(e){return this.isChecked(e)?Co.diff(this.value,[e]):this.value}},{key:"getValueAfterToggle",value:function(e){return this.isChecked(e)?this.getValueAfterUncheck(e):this.getValueAfterCheck(e)}},{key:"getNode",value:function(e){return null==(e=this.wrapperMap.get(e))?void 0:e.node}},{key:"getCleanValue",value:function(){return this.value}}]),t}();function Oc(t,e){var n,r=Object.keys(t);return Object.getOwnPropertySymbols&&(n=Object.getOwnPropertySymbols(t),e&&(n=n.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})),r.push.apply(r,n)),r}function Ec(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?Oc(Object(n),!0).forEach(function(e){S()(t,e,n[e])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):Oc(Object(n)).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))})}return t}function kc(e,t){var n,r,o,i,a="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(a)return r=!(n=!0),{s:function(){a=a.call(e)},n:function(){var e=a.next();return n=e.done,e},e:function(e){r=!0,o=e},f:function(){try{n||null==a.return||a.return()}finally{if(r)throw o}}};if(Array.isArray(e)||(a=function(e,t){var n;if(e)return"string"==typeof e?jc(e,t):"Map"===(n="Object"===(n=Object.prototype.toString.call(e).slice(8,-1))&&e.constructor?e.constructor.name:n)||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?jc(e,t):void 0}(e))||t&&e&&"number"==typeof e.length)return a&&(e=a),i=0,{s:t=function(){},n:function(){return i>=e.length?{done:!0}:{done:!1,value:e[i++]}},e:function(e){throw e},f:t};throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function jc(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}var Cc=r()(function e(t){i()(this,e),S()(this,"root",void 0),S()(this,"children",void 0),S()(this,"parent",void 0),S()(this,"node",void 0),S()(this,"detached",void 0),S()(this,"checked",void 0),S()(this,"exactChecked",void 0),S()(this,"parentChecked",void 0),S()(this,"anyDescendentsChecked",void 0),S()(this,"allChildrenChecked",void 0),O()(this,t)}),Pc=function(){function n(e){var r=this;i()(this,n),S()(this,"opts",void 0),S()(this,"valueSet",void 0),S()(this,"wrapperMap",void 0),S()(this,"rootWrapper",void 0),S()(this,"isDetached",function(e){var t,n;return null!=(t=null==(t=(n=r.opts).isDetached)?void 0:t.call(n,e))&&t}),this.opts=e,this.valueSet=new Set(e.value),this.initWrapperTree()}return r()(n,[{key:"value",get:function(){return this.opts.value}},{key:"initWrapperTree",value:function(){var v=new Set(this.value),g=(this.rootWrapper=new Cc({root:!0,children:[]}),this.wrapperMap=new Map,this.opts.getNodeValue),y=this.isDetached,b=this.wrapperMap;!function e(t,n,r){t.allChildrenChecked=!0;var o,i=kc(n);try{for(i.s();!(o=i.n()).done;){var a=o.value,c=y(a),l=v.has(g(a)),s=(l&&!c&&(t.anyDescendentsChecked=!0),!c&&r),u=l||s,f=new Cc({parent:t,node:a,checked:u,exactChecked:l,parentChecked:s,anyDescendentsChecked:u,detached:c});if(b.set(g(a),f),t.children.push(f),!D(a)&&(f.children=[],e(f,a.children,u),f.anyDescendentsChecked&&!c&&(t.anyDescendentsChecked=!0),f.allChildrenChecked)){f.checked=!0;var d,p=kc(f.children);try{for(p.s();!(d=p.n()).done;){var h=d.value;h.detached||(h.parentChecked=!0)}}catch(e){p.e(e)}finally{p.f()}}f.checked||c||(t.allChildrenChecked=!1)}}catch(e){i.e(e)}finally{i.f()}}(this.rootWrapper,this.opts.tree,!1)}},{key:"isIndeterminate",value:function(e){e=this.wrapperMap.get(e);return!e.checked&&e.anyDescendentsChecked}},{key:"isChecked",value:function(e){return this.wrapperMap.get(e).checked}},{key:"getValueAfterCheck",value:function(e){return(this.isChecked(e)?this:(e=Co.merge(this.value,[e]),new n(Ec(Ec({},this.opts),{},{value:e})))).getCleanValue()}},{key:"getValueAfterUncheck",value:function(e){var a,t;return(this.isChecked(e)?(e=this.wrapperMap.get(e),a=this.opts.getNodeValue,t=function(e){var t=[],n=e;for(;n.parentChecked&&!n.detached;){var r,o=kc(n.parent.children);try{for(o.s();!(r=o.n()).done;){var i=r.value;i===n||i.exactChecked||i.detached||t.push(a(i.node))}}catch(e){o.e(e)}finally{o.f()}n=n.parent}return t}(e),e=function(e){var i=new Set,t=e;for(;;){if(i.add(a(t.node)),t.detached||!t.parentChecked)break;t=t.parent}return function e(t){if(null!=t){var n,r=kc(t);try{for(r.s();!(n=r.n()).done;){var o=n.value;!o.detached&&o.checked&&(i.add(a(o.node)),!D(o))&&o.anyDescendentsChecked&&e(o.children)}}catch(e){r.e(e)}finally{r.f()}}}(e.children),i}(e),t=Co.diff(this.value.concat(t),e),new n(Ec(Ec({},this.opts),{},{value:t}))):this).getCleanValue()}},{key:"getValueAfterToggle",value:function(e){return this.isChecked(e)?this.getValueAfterUncheck(e):this.getValueAfterCheck(e)}},{key:"getNode",value:function(e){return null==(e=this.wrapperMap.get(e))?void 0:e.node}},{key:"getCleanValue",value:function(){var t=this,e=this.opts,i=e.checkedStrategy,a=e.getNodeValue,c=this.value.filter(function(e){return!t.wrapperMap.has(e)});return function e(t){var n,r=kc(t);try{for(r.s();!(n=r.n()).done;){var o=n.value;o.checked&&("all"===i?c.push(a(o.node)):"parent"===i?o.parentChecked||c.push(a(o.node)):D(o)&&c.push(a(o.node))),D(o)||e(o.children)}}catch(e){r.e(e)}finally{r.f()}}(this.rootWrapper.children),c}}]),n}();function Rc(t,e){var n,r=Object.keys(t);return Object.getOwnPropertySymbols&&(n=Object.getOwnPropertySymbols(t),e&&(n=n.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})),r.push.apply(r,n)),r}function Ac(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?Rc(Object(n),!0).forEach(function(e){S()(t,e,n[e])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):Rc(Object(n)).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))})}return t}var Tc="treeSelect";function Dc(d){return function(n){var r=n.ctx.components.Checkbox;if(null==r)throw new Error("使用 treeSelect 之前需要通过 pipeline context 设置 components.Checkbox");var o=n.ensurePrimaryKey("treeSelect");if("string"!=typeof o)throw new Error("treeSelect 仅支持字符串作为 primaryKey");function e(e){return e[o]}function i(e,t,n){return x.a.createElement(r,{checked:u.isChecked(e),indeterminate:u.isIndeterminate(e),disabled:!t&&c(n),onChange:"checkbox"===a||t?function(){return f(e)}:void 0})}var a=null!=(t=d.clickArea)?t:"checkbox",c=null!=(t=d.isDisabled)?t:Po(!1),t=null!=(t=d.idDetached)?t:Po(!1),l=null!=(l=null!=(l=null!=(l=d.value)?l:n.getStateAtKey(Tc))?l:d.defaultValue)?l:[],s=null!=d.rootKey?[(s={},S()(s,o,d.rootKey),S()(s,"children",d.tree),s)]:d.tree,u=d.checkStrictly?new Sc({value:l,getNodeValue:e,tree:s}):new Pc({value:l,getNodeValue:e,isDetached:t,tree:s,checkedStrategy:null!=(l=d.checkedStrategy)?l:"parent"}),f=function(e){var t,e=u.getValueAfterToggle(e);n.setStateAtKey(Tc,e),null!=(t=d.onChange)&&t.call(d,e)},t=Ac(Ac({name:"",width:50,align:"center",title:null!=d.rootKey?i(d.rootKey,!0):void 0},d.checkboxColumn),{},{render:function(e,t){return i(t[o],!1,t)},getCellProps:function(e,t){var n=t[o];if("cell"===a)return c(t)?{style:{cursor:"not-allowed"}}:{style:{cursor:"pointer"},onClick:function(e){d.stopClickEventPropagation&&e.stopPropagation(),f(n)}}}}),s=n.getColumns().slice();return"start"===(null!=(l=d.checkboxPlacement)?l:"start")?s.unshift(t):s.push(t),n.columns(s),"row"===a&&n.appendRowPropsGetter(function(t){if(!c(t))return{style:{cursor:"pointer"},onClick:function(e){d.stopClickEventPropagation&&e.stopPropagation(),f(t[o])}}}),d.highlightRowWhenSelected&&n.appendRowPropsGetter(function(e){if(u.isChecked(e[o]))return{className:"highlight"}}),n}}t(301),t(198);function Ic(t,e){var n,r=Object.keys(t);return Object.getOwnPropertySymbols&&(n=Object.getOwnPropertySymbols(t),e&&(n=n.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})),r.push.apply(r,n)),r}function _c(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?Ic(Object(n),!0).forEach(function(e){S()(t,e,n[e])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):Ic(Object(n)).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))})}return t}var Mc=e.c.div(d()(["\n position: absolute;\n top: 0;\n ",': -5px;\n height: 100%;\n width: 10px;\n cursor: ew-resize;\n display: flex;\n flex-direction: column;\n align-items: center;\n z-index:1;\n\n &:after {\n content: "";\n position: absolute;\n display: block;\n ',": calc(50% - 1px);\n width: 1px;\n height: calc(100% - 14px);\n top: 7px;\n }\n"]),function(e){return v(e.direction,"right")},function(e){return v(e.direction,"left")}),Lc=Object(e.c)(function(e){return x.a.createElement(Mc,e)})(d()(["\n &:after {\n height: 100%;\n top: 0;\n }\n"]));function Nc(e,t,n){return Math.max(e,Math.min(n,t))}function Fc(e){e.preventDefault()}var Hc="columnResize",zc="columnResize",Bc="resizedColumn",Wc="lastResizedColumn";function Kc(){var e,g=0<arguments.length&&void 0!==arguments[0]?arguments[0]:{},y=null!=(e=g.minSize)?e:60,n=null!=(e=g.fallbackSize)?e:150,b=null!=(e=g.maxSize)?e:1e3;return function(v){function i(e,t){var n;null!=(n=g.doubleClickCallback)&&n.call(g,e,t)}function a(e,t){window.addEventListener("selectstart",Fc);var s={},n=e.clientX,r=t.children,u=t.code,o=(t=void 0===(t=t.features)?{}:t).minWidth,t=t.maxWidth,f="number"==typeof o?o:y,d="number"==typeof t?t:b,p=v.getFeatureOptions(zc),h=p;e.stopPropagation(),R(window,"mousemove").pipe(Ti(R(window,"mouseup")),P(function(e){var o,i,e=e.clientX,a=_c({},p),c="rtl"===v.ctx.direction?n-e:e-n,l=c;return 0<(null==r?void 0:r.length)?(o=I(r,"leaf-only"),i=o.reduce(function(e,t){t=t.code;return e+p[t]},0),o.forEach(function(e,t){var e=e.code,n=p[e],r=Math.round(c*n/i);t<o.length-1?(a[e]=Nc(f,n+r,d),s[e]=a[e],l-=r):(a[e]=Nc(f,n+l,d),s[e]=a[e])})):(e=p[u],a[u]=Nc(f,e+c,d),s[u]=a[u]),h=a})).subscribe({next:function(e){l(e);var t=v.getFeatureOptions(Bc)||new Set;Object.keys(s).forEach(function(e){t.add(e,s[e])}),v.setFeatureOptions(Bc,t),v.setFeatureOptions(Wc,u)},complete:function(){var t=Object.keys(s).map(function(e){return{code:e,width:s[e]}});window.requestAnimationFrame(function(){var e;null!=g&&null!=(e=g.afterChangeSize)&&e.call(g,h,t)}),window.removeEventListener("selectstart",Fc)}})}var e,c=null!=(e=null!=(e=g.columnSize)?e:v.getStateAtKey(Hc))?e:{},l=(I(v.getColumns(),"leaf-only").forEach(function(e){var t=e.code,e=e.width;void 0===c[t]&&(c[t]="number"==typeof e?e:n)}),v.setFeatureOptions(zc,c),function(t){window.requestAnimationFrame(function(){var e;v.setStateAtKey(Hc,t),null!=g&&null!=(e=g.onChangeSize)&&e.call(g,t)})}),s=Eo(v.getColumns());return v.mapColumns(m(function(t){var e=L.safeRenderHeader(t),n=t.code,r=t.features,o=t.width;return _c(_c({},t),{},{width:null!=(n=c[n])?n:o,title:x.a.createElement(x.a.Fragment,null,e,!1!==(null==r?void 0:r.resizeable)&&(s?x.a.createElement(Lc,{direction:v.ctx.direction,className:M.tableHeaderCellResize,onDoubleClick:function(e){return i(e,t)},onMouseDown:function(e){return a(e,t)}}):x.a.createElement(Mc,{direction:v.ctx.direction,className:M.tableHeaderCellResize,onDoubleClick:function(e){return i(e,t)},onMouseDown:function(e){return a(e,t)}}))),headerCellProps:_(t.headerCellProps,{className:"resizeable"})})}))}}function Vc(){return function(c){r=c,e=new Map([[Yc,0]]),function t(e,n){e.forEach(function(e){D(e)?Xc(e,r)&&n.set(Yc,n.get(Yc)+e.features.flex):t(e.children,n)})}(r.getColumns(),e);var r,l,s,u,f,d,e,t,n,p=e.get(Yc);return p?0<(l=qc(c)||0)&&(s=p,u=l,f=c.getFeatureOptions(zc),d=!!f,c.mapColumns(m(function(e,t){var n,r,o,i,a;return t.isLeaf&&Xc(e,c)&&(t=e.code,n=(o=void 0===(o=e.features)?{}:o).flex,r=o.minWidth,r=void 0===r?0:r,o=o.maxWidth,o=void 0===o?Number.MAX_SAFE_INTEGER:o,a=Math.floor(l*n/p),i=e.width,e.width=(a=i+(s===n?u:a),Math.max(r,Math.min(o,a))),s-=n,u-=e.width-i,d)&&(f[t]=e.width),e})),d)&&c.setFeatureOptions(zc,f):(n=(e=c.getColumns()).find(function(e){return e.code===$c}),t=qc(c)||0,n?n.width=t:(n=cr(e.slice().reverse()),n=e.length-n,e.splice(n||e.length,0,{name:"",code:$c,width:t,features:{resizeable:!1},getCellProps:function(e,t,n){return{className:M.emptyColCell}}})),c.columns(e)),c}}var $c="$_fill_column_&",Gc="tableWidth",Yc=Symbol("flexCount");function Uc(a){return function i(e){return e.reduce(function(e,t){var n,r=t.width,o=t.code;return D(t)&&o!==$c?(n=a.getFeatureOptions(zc),e+(n&&n[o]||r)):e+i(t.children)},0)}(a.getColumns())}function qc(e){var t=(null==(t=e.ref.current.domHelper)||null==(t=t.tableBody)?void 0:t.clientWidth)||e.getStateAtKey(Gc);if(t)return 0<(t=Math.floor(t-Uc(e)))?t:0}function Xc(e,t){var n,r,o=t.getFeatureOptions(Bc);return(null==o||!o.has(e.code))&&"number"==typeof(o=null==(o=e.features)?void 0:o.flex)&&0<o&&(n=e,void 0===(r=(o=t).getFeatureOptions(Wc))||o.getColumns().findIndex(function(e){return e.code===r})<o.getColumns().findIndex(function(e){return e.code===n.code}))}function Zc(t,e){var n,r=Object.keys(t);return Object.getOwnPropertySymbols&&(n=Object.getOwnPropertySymbols(t),e&&(n=n.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})),r.push.apply(r,n)),r}function Jc(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?Zc(Object(n),!0).forEach(function(e){S()(t,e,n[e])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):Zc(Object(n)).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))})}return t}var Qc="columnDrag",el=30;function tl(e){e.preventDefault()}function nl(e){e.stopPropagation()}function rl(){var u=0<arguments.length&&void 0!==arguments[0]?arguments[0]:{};return function(C){var t,P=C.ctx.direction,R=(t="rtl"===P,function(e){return t?-e:e}),n=C.getStateAtKey(Qc,{}).cloumnsTranslateData,e=C.getColumns(),a=C.ref.current.domHelper&&C.ref.current.domHelper.tableBody;return C.columns(e.filter(function(e){return e})),C.mapColumns(m(function(j,e){var t=e.path,e=e.isLeaf,r=n?{transition:".3s",transform:"translate3d(".concat(n[j.code],"px, 0px, 0px)")}:{},o=j.getCellProps;return j.lock||!j.code?j:Jc(Jc({},j),{},{getCellProps:function(e,t,n){return _(null==o?void 0:o(e,t,n),{style:r})},headerCellProps:_(j.headerCellProps,{onMouseDown:!e||1<t.length?void 0:function(e){var y,b,m,s,w,x,n,r,S,O,o,E,k,t;function i(e){var t={clientX:e.clientX,clientY:e.clientY},n=C.ref.current.domHelper.virtual.scrollLeft-E,n=x-n,r="rtl"===P?n-e.clientX:e.clientX-n;if(k(t),!(r<20)){e.stopPropagation(),document.body.style.userSelect="none",w.style.cursor="move",m={},O.forEach(function(e){m[e.code]=0});for(var o,i=0,a=il(b[i]);a<r&&i<b.length-1;)a+=il(b[++i]);b.forEach(function(e,t){e.code===j.code&&(o=t)});var c=b[o],l=i;if(i<o)for(;l<o;){var s=b[l],u=s.code,f=s.lock,d=s.width,s=s.children;ol({code:u,lock:f})&&(m[u]+=R(c.width),D(b[l])?m[c.code]-=R(d):(m[c.code]-=R(il(b[l])),al(s,m,R(c.width))),y=!0),l++}else if(o<i)for(;o<l;){var p=b[l],h=p.code,v=p.lock,g=p.width,p=p.children;ol({code:h,lock:v})&&(m[h]-=R(c.width),D(b[l])?m[c.code]+=R(g):(m[c.code]+=R(il(b[l])),al(p,m,R(c.width),!0)),y=!0),l--}window.requestAnimationFrame(function(){C.setStateAtKey(Qc,{cloumnsTranslateData:m}),S=[o,i]})}}0===e.button&&e.currentTarget.contains(e.target)&&(window.addEventListener("selectstart",tl),y=!1,b=C.getColumns(),m=C.getStateAtKey(Qc,{}).cloumnsTranslateData,s={},b.forEach(function(e,t){s[e.code]=t}),w=e.currentTarget,t=e.currentTarget.parentElement.getClientRects()[0],x="rtl"===P?t.right:t.left,n=e.clientX,r=e.clientY,S=[],O=I(b),o=a.getBoundingClientRect(),E=C.ref.current.domHelper.virtual.scrollLeft,k=function(e){var e=e.clientX,t=o.left;t+o.width<=e+el&&(C.ref.current.domHelper.virtual.scrollLeft+=el),e-el<=t&&(C.ref.current.domHelper.virtual.scrollLeft-=el)},(t=u.onColumnDragStart)&&t(j),document.body.addEventListener("mousemove",i),document.body.addEventListener("mouseup",function e(t){document.body.removeEventListener("mousemove",i),document.body.removeEventListener("mouseup",e),window.removeEventListener("selectstart",tl),function(e,t,n,r){return n-=e,e=r-t,5<Math.sqrt(n*n+e*e)}(n,r,t.clientX,t.clientY)&&(t.stopPropagation(),w.addEventListener("click",nl)),window.requestAnimationFrame(function(){w.removeEventListener("click",nl),w=null;var e,t=S,n=(t=A()(t,2))[0],t=t[1],r=b[n],o=t;if(t<n)for(;o<n;){var i=b[o],a=i.code;ol({code:a,lock:i.lock})&&(s[a]+=1,--s[r.code],y=!0),o++}else if(n<t)for(;n<o;){var c=b[o],l=c.code;ol({code:l,lock:c.lock})&&(--s[l],s[r.code]+=1,y=!0),o--}(t=u.onColumnDragStopped)&&(e=function(e,t){for(var n=new Array(e.length),r=T()(e);e.length;){var o=e.pop();n[t[o.code]]=o}return n.filter(Boolean).length!==r.length?r:n}(b,s).filter(function(e){return!(e.code===$c||e.code===C.getFeatureOptions("rowDragColumnKey")||li(e))}),t(y,e)),C.setStateAtKey(Qc,{cloumnsTranslateData:null})}),document.body.style.userSelect="",w.style.opacity="",w.style.cursor=""}))},style:r})})}))}}function ol(e){var t=e.lock,e=e.code;return e&&e!==$c&&!t}function il(e){return e.children?e.children.reduce(function(e,t){return e+il(t)},0):e.width}function al(e,o,i,a){e.forEach(function(e){var t=e.code,n=e.children,r=null!=(r=o[t])?r:0;o[t]=r+(a?-i:i),D(e)||al(n,o,i)})}function cl(){var p=0<arguments.length&&void 0!==arguments[0]?arguments[0]:{};return function(i){function a(e){function n(e){var t;t=r,(e=e)&&t&&_n(t,e)||o||(o=!0,u.removeChild(r),i.forEach(function(e){window.removeEventListener(e,n,!0)}))}var r=document.createElement("div"),o=(r.setAttribute("class","kd-table-popup"),u.appendChild(r),!1),i=["mousedown","contextmenu"];return ao.a.render(e,r,function(){setTimeout(function(){i.forEach(function(e){window.addEventListener(e,n,!0)})},0)}),n}function c(e,t,n,r){var o,i=[];return t&&i.push((o=n,{name:"复制",action:function(){ni(ti(o))}})),p.getContextMenuItems?p.getContextMenuItems({record:e,column:t,value:n,event:r}):i}function l(){d.destroy()}function s(){return u}var u=p.popupParent||document.body,f=p.menuClassName,d=new ul,o=(i.addTableProps({onContextMenu:function(e){var t,n,r;t=e,(null!=(r=(n=i).ref.current.domHelper)&&r.tableBody.contains(t.target)||null!=(r=n.ref.current.domHelper)&&r.tableFooter.contains(t.target))&&(e.preventDefault(),e.stopPropagation(),o(e))}}),function(e){var t,n=In(e),r=Mn(n,function(e){return e&&"table-cell"===e.getAttribute("data-role")}),n=((r?(t=r.getAttribute("data-code"),o=r.getAttribute("data-rowindex"),fl(r)):(o=null==(r=Mn(n,function(e){return e&&"table-row"===e.getAttribute("data-role")}))?void 0:r.getAttribute("data-rowindex"),fl(r)))?i.getFooterDataSource()||[]:i.getDataSource())[o],r=void 0!==t&&Ro(i.getColumns(),function(e){return e.code===t}),o=r&&n&&L.safeGetValue(r,n,o),n=c(n,r,o,e);0===n.length?Tt.warn("context menu options is empty"):(r=function(e,t,n){e=function(e,t){var n=t.getBoundingClientRect(),r=document.documentElement.getBoundingClientRect();return{x:e.clientX-(t===document.body?r:n).left,y:e.clientY-(t===document.body?r:n).top}}(e,t),t=e.x,e=e.y;{var r;n&&(r=n.offsetX,n=n.offsetY,r&&(t-=r),n)&&(e-=n)}return{x:t,y:e}}(e,u),o=x.a.createElement(ll,{options:n,hideContextMenu:l,position:r,getPopupParent:s,className:f,direction:i.ctx.direction}),e=a(o),d.init(e))});return i}}function ll(r){var e=r.className,t=r.options,t=void 0===t?[]:t,n=r.hideContextMenu,o=r.position,i=r.getPopupParent,a=Object(y.useRef)();return Object(y.useLayoutEffect)(function(){var e,t,n;a.current&&(e=i(),t=o.x,n=o.y,"rtl"===r.direction&&(t-=a.current.offsetWidth),t=(e=function(e,t,n,r){var o=e.getBoundingClientRect(),i=document.documentElement,a=i.getBoundingClientRect(),c=t.getBoundingClientRect(),l=o.width,s=o.height;e===document.body&&(l=a.width,l-=Math.abs(a.left-o.left),s=a.height+i.scrollTop,s-=Math.abs(a.top-o.top));n&&(e=Math.min(c.width,120),t.style.minWidth=e+"px",i=l-e,n=Math.min(Math.max(n,0),Math.abs(i)));r&&(a=s-c.height,r=Math.min(Math.max(r,0),Math.abs(a)));return{x:n,y:r}}(e,a.current,t,n)).x,n=e.y,a.current.style.left=t+"px",a.current.style.top=n+"px")},[o,r.direction]),x.a.createElement(oa,{className:C()(h.menu,e),ref:a,style:{left:o.x,top:o.y}},x.a.createElement("div",{className:h.menuList},t.map(function(e,t){return x.a.createElement(sl,{key:e.key||function(e){var t=e.name,e=e.index;if(t){var n=0;t+="";for(var r=0;r<t.length;r++)n+=t.charCodeAt(t[r]);return"".concat(n,"_").concat(e)}return e}({name:e.name,index:t}),name:e.name,action:e.action,className:e.className,disabled:e.disabled,hideContextMenu:n})})))}function sl(e){var t=e.name,n=e.action,r=e.className,o=e.disabled,i=e.hideContextMenu,a=Object(y.useRef)();return x.a.createElement("div",{className:C()(h.menuOption,r,S()({},h.menuOptionDisable,o)),ref:a,onClick:function(){o||(i(),"function"==typeof n&&n())},onMouseEnter:function(e){var t;o||(t=a.current)&&t.classList.add(h.menuOptionActive)},onMouseLeave:function(e){var t;o||(t=a.current)&&setTimeout(function(){t.classList.remove(h.menuOptionActive)},10)}},x.a.createElement("span",{className:h.menuOptionText},t))}var ul=r()(function e(){var t=this;i()(this,e),S()(this,"hidePopup",void 0),S()(this,"init",function(e){t.hidePopup=e}),S()(this,"destroy",function(){t.hidePopup&&t.hidePopup(),t.hidePopup=null})});function fl(e){for(var t=e;t;){if("TFOOT"===t.tagName)return!0;if("TABLE"===t.tagName||"TBODY"===t.tagName)return!1;t=t.parentElement}return!1}function dl(e){var t=e.width,e=e.height;return x.a.createElement("svg",{width:t,height:e,style:{verticalAlign:"middle"},viewBox:"0 0 1024 1024",focusable:"false","data-icon":"filter",fill:"currentColor",version:"1.1",xmlns:"http://www.w3.org/2000/svg"},x.a.createElement("path",{d:"M891.448889 159.573333L626.460444 460.231111v443.221333c0 32.881778-25.429333 63.658667-55.864888 63.658667l-170.268445-172.942222V456.419556L132.266667 159.857778A59.619556 59.619556 0 0 1 173.511111 56.888889h676.977778c32.995556 0 59.733333 26.680889 59.733333 59.562667 0 17.066667-7.224889 32.312889-18.773333 43.121777z"}))}var pl={ENTER:13,ESC:27};function hl(t,e){var n,r=Object.keys(t);return Object.getOwnPropertySymbols&&(n=Object.getOwnPropertySymbols(t),e&&(n=n.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})),r.push.apply(r,n)),r}function vl(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?hl(Object(n),!0).forEach(function(e){S()(t,e,n[e])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):hl(Object(n)).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))})}return t}var gl=e.c.div(d()(["\n display: flex;\n flex-direction: column;\n max-height: 450px;\n min-width: 160px;\n border-radius: 2px;\n background-color: #fff;\n box-shadow: 0 0 5px 0 rgba(154,154,154,.5);\n cursor: default;\n\n ."," {\n display: flex;\n background-color: #ebedf1;\n\n ."," {\n display: flex;\n color:#666;\n background-color: #fff;\n padding: 8px 16px 8px 16px;\n border-right: 1px solid transparent;\n border-left: 1px solid transparent;\n border-top: 1px solid transparent;\n border-top-right-radius: 2px;\n border-top-left-radius: 2px;\n }\n }\n\n ."," {\n display: flex;\n }\n"]),M.popupHeader,M.filterIcon,M.popupBody);var yl=function(e){function t(){g.current=!0}var n,r,o=e.style,i=e.children,a=e.position,c=e.filterIcon,l=e.onClose,s=e.hideFilterPopupHeader,u=e.direction,e=Object(y.useState)(a),f=(e=A()(e,2))[0],d=e[1],e=Object(y.useState)(!1),p=(e=A()(e,2))[0],h=e[1],v=x.a.useRef(null),g=(Object(y.useEffect)(function(){var e,t=a.x,n=a.y;"rtl"===u&&(t-=null==(e=v.current)?void 0:e.offsetWidth),d(Fn(document.body,v.current,t,n,!0)),h(!0)},[a,u]),Object(y.useRef)(!1));return n=function(e){_n(v.current,e)||g.current||l(),g.current=!1},r=["click"],x.a.useEffect(function(){return r.forEach(function(e){return window.addEventListener(e,n,!0)}),function(){return r.forEach(function(e){return window.removeEventListener(e,n,!0)})}},[r,n]),x.a.createElement(gl,{className:M.popup,style:vl(vl({},o),{},{left:p?f.x:0,top:p?f.y:0,opacity:p?1:0,direction:u}),onMouseDown:t,onMouseUp:t,onKeyDown:function(e){e.currentTarget.contains(e.target)&&e.keyCode===pl.ESC&&l()},ref:v,tabIndex:-1,direction:u},s?null:x.a.createElement("div",{className:M.popupHeader},x.a.createElement("span",{className:M.filterIcon},c||x.a.createElement(dl,{width:12,height:12}))),x.a.createElement("div",{className:M.popupBody},i))},bl=[{title:"包含",key:"contain",filter:function(t){return function(e){return null!=e&&("number"==typeof e&&(e+=""),e.includes(t[0]))}}},{title:"不包含",key:"notContain",filter:function(t){return function(e){return null==e||("number"==typeof e&&(e+=""),!e.includes(t[0]))}}},{title:"等于",key:"equal",filter:function(t){return function(e){return t[0]===e}}},{title:"不等于",key:"notEqual",filter:function(t){return function(e){return t[0]!==e}}},{title:"为空",key:"isNull",filter:function(){return function(e){return!e}}},{title:"不为空",key:"notIsNull",filter:function(){return function(e){return!!e}}}],ml=e.c.div(d()(["\n display: flex;\n flex-direction: column;\n background-color: #ffffff;\n border-radius: 2px;\n width: 100%;\n\n ","\n .filter-option-list {\n display: flex;\n flex-direction: column;\n margin-top: 8px;\n ul {\n margin: 0;\n padding: 0;\n li {\n display: flex;\n position: relative;\n flex-shrink: 0;\n height: 32px;\n align-items: center;\n border-radius: 2px;\n font-size: 12px;\n color: var(--color);\n padding: 0 12px;\n overflow: hidden;\n cursor: pointer;\n &:hover{\n background-color: var(--primary-color-level1);\n }\n }\n li.active{\n background-color: var(--primary-color-level1);\n }\n }\n }\n\n .filter-search {\n display: flex;\n padding: 6px 12px;\n\n .filter-search-inner {\n width: 100%;\n font-size: 12px;\n color: #333333;\n height: 28px;\n line-height: 28px;\n padding: 0 8px;\n outline: none;\n background-color: #FAFAFA;\n border-radius: 2px;\n border: 1px solid var(--strong-border-color);\n &:hover{\n border-color: var(--primary-color)\n } \n &:focus{\n border-color: var(--primary-color)\n } \n }\n }\n\n .filter-footer {\n display: flex;\n flex-direction: row;\n padding: 8px 12px;\n justify-content: space-between;\n\n .filter-btn {\n text-align: center;\n font-size: 12px;\n width: 60px;\n height: 24px;\n line-height: 24px;\n }\n \n }\n"]),Cn);function wl(e){function t(){o(),n({filter:l,filterCondition:a})}var n=e.setFilterModel,r=e.filterModel,o=e.hidePanel,i=void 0===(e=e.localeText)?{}:e,e=x.a.useState((null==r?void 0:r.filterCondition)||"contain"),a=(e=A()(e,2))[0],c=e[1],e=x.a.useState((null==r?void 0:r.filter)||[]),l=(e=A()(e,2))[0],s=e[1],u=Object(y.useRef)(),f=x.a.useCallback(function(e){c(e.key)},[]);return Object(y.useEffect)(function(){c((null==r?void 0:r.filterCondition)||"contain"),s((null==r?void 0:r.filter)||[])},[r]),Object(y.useEffect)(function(){setTimeout(function(){var e;null!=(e=u.current)&&e.focus({preventScroll:!0})})},[]),x.a.createElement(ml,null,x.a.createElement("div",{className:"filter-option-list"},x.a.createElement("ul",null,bl.map(function(e,t){var n;return x.a.createElement("li",{key:e.key,className:e.key===a?"active":"",onClick:function(){return f(e)}},null!=(n=i[e.key])?n:e.title)}))),"notIsNull"!==a&&"isNull"!==a&&x.a.createElement("div",{className:"filter-search"},x.a.createElement("input",{className:"filter-search-inner",value:l[0],onChange:function(e){s([e.target.value])},onKeyDown:function(e){e.keyCode===pl.ENTER&&t()},ref:u})),x.a.createElement("div",{className:"filter-footer"},x.a.createElement("button",{className:C()(S()({"filter-btn":!0},M.button,!0)),onClick:function(){o(),n()}},null!=(e=i.resetFilter)?e:"重置"),x.a.createElement("button",{className:C()((e={"filter-btn":!0},S()(e,M.button,!0),S()(e,M.buttonPrimary,!0),e)),onClick:t},null!=(e=i.confirmFilter)?e:"确定")))}var xl=9,Sl=17,Ol=e.c.span(d()(["\n // position: absolute;\n // right: 4px;\n // cursor: pointer;\n // transform: translateY(-50%);\n // top: 50%;\n // height: 12px; \n > ."," {\n display: flex\n }\n"]),M.filterIcon);function El(e){function t(e){f(Nn(n,c,kl(n,a),l))}var n=e.ele,r=e.filterIcon,o=e.hidePanel,i=e.renderPanelContent,a=e.hideFilterPopupHeader,c=e.popupParent,l=e.direction,s=x.a.useRef(null),e=x.a.useState(Nn(n,c,kl(n,a),l)),e=A()(e,2),u=e[0],f=e[1];return Object(y.useEffect)(function(){var e=Yn(s.current.children[0],t);return function(){e&&e.disconnect()}},[]),x.a.createElement("div",{ref:s},x.a.createElement(yl,{style:{position:"absolute",zIndex:1050},onClose:o,position:u,filterIcon:r,hideFilterPopupHeader:a,direction:l},i()))}function kl(e,t){return t?{x:0,y:0-e.offsetHeight}:{x:Sl,y:xl}}var jl=function(e){function t(){return b(!1)}var n=void 0===(n=e.size)?12:n,r=e.style,o=e.className,i=e.FilterPanelContent,a=e.filterIcon,c=e.setFilter,l=e.setFilterModel,s=e.filterModel,u=e.isFilterActive,f=e.stopClickEventPropagation,d=e.stopESCKeyDownEventPropagation,p=e.hideFilterPopupHeader,h=e.getPopupParent,v=e.localeText,e=e.direction,g=x.a.useState(!1),y=(g=A()(g,2))[0],b=g[1],g=x.a.useRef(null),m=x.a.useRef(),o=C()((w={},S()(w,o,!0),S()(w,"filter-panel-open",y),w)),w="function"==typeof a?a(u):a,a=(null==h?void 0:h(m.current))||document.body;return x.a.createElement(Ol,{style:r,className:o,onClick:function(e){e.currentTarget.contains(e.target)&&b(!0),f&&e.stopPropagation()},onKeyDown:function(e){e.keyCode===pl.ESC&&(e.currentTarget.contains(e.target)&&b(!1),d)&&e.stopPropagation()},ref:m,tabIndex:-1},x.a.createElement("span",{ref:g,className:M.filterIcon},w||x.a.createElement(dl,{width:n,height:n})),y&&Object(io.createPortal)(x.a.createElement(El,{ele:(p?m:g).current,filterIcon:w,hidePanel:t,renderPanelContent:function(){return i?x.a.createElement(i,{setFilter:c,filterModel:s,isFilterActive:u,hidePanel:t}):x.a.createElement(wl,{setFilterModel:l,filterModel:s,isFilterActive:u,hidePanel:t,localeText:v})},hideFilterPopupHeader:p,popupParent:a,direction:e}),a))};function Cl(t,e){var n,r=Object.keys(t);return Object.getOwnPropertySymbols&&(n=Object.getOwnPropertySymbols(t),e&&(n=n.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})),r.push.apply(r,n)),r}function Pl(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?Cl(Object(n),!0).forEach(function(e){S()(t,e,n[e])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):Cl(Object(n)).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))})}return t}var Rl="filter";function Al(){var m=0<arguments.length&&void 0!==arguments[0]?arguments[0]:{};return function(l){var o,i,a,n,e=l.getDataSource(),t=l.getColumns(),r=m.filters,c=m.defaultFilters,s=m.onChangeFilters,u=m.keepDataSource,f=m.mode,d=m.filterIcon,p=m.stopClickEventPropagation,h=m.stopESCKeyDownEventPropagation,v=m.hideFilterPopupHeader,g=m.getPopupParent,c=null!=(r=null!=(r=null!=r?r:l.getStateAtKey(Rl))?r:c)?r:[],c="single"===f?c.slice(0,1):c,y=new Map(c.map(function(e){return[e.code,Pl({},e)]})),b=l.ctx.localeText;return l.dataSource((r=e,n=[],y.forEach(function(e,t){n.push(t)}),u||n.length<=0?r:(c=l.getColumns(),o=new Map(I(c,"leaf-only").filter(function(e){var t;return!1!==(null==(t=e.features)?void 0:t.filterable)&&null!=(null==(t=e.features)?void 0:t.filterable)}).map(function(e){return[e.code,e]})),i=new Map(bl.map(function(e){return[e.key,Pl({},e)]})),a=function(r){return n.every(function(e){var t=y.get(e),n=null==(n=o.get(e))||null==(n=n.features)?void 0:n.filterable,n="function"==typeof n?n:(i.get(t.filterCondition)?i.get(t.filterCondition):(console.warn("列[".concat(e,"]未配置筛选函数,请设置 column.features.filterable 来作为该列的筛选函数, 目前使用默认包含筛选函数")),i.get("contain"))).filter;return n(t.filter,t)(L.safeGetValue(o.get(e),r,-1),r)})},function r(e){var o=1<arguments.length&&void 0!==arguments[1]&&arguments[1];return e.map(function(e){var t,n=a(e);return D(e)?(o||n)&&Pl({},e):(t=e.children,e=Pl(Pl({},e),{},{children:r(t,o||n)}),t=!D(e),(o||n||t)&&e)}).filter(Boolean)}(r)))),l.columns(t.map(function e(r){var t=Pl({},r);var n=r.code&&(null==(n=r.features)?void 0:n.filterable);var o=!(!n||null==y||!y.get(r.code));{var i,a,c;n&&(i=function(e){var t=new Map(y),n=Pl({code:r.code},e),e=(null==e?t.delete(r.code):("single"===f&&t.clear(),t.set(r.code,n)),Array.from(t.values()));null!=s&&s(e,n),l.setStateAtKey(Rl,e)},n=function(e,t){i(e?{code:r.code,filter:e,filterCondition:t}:void 0)},a=null==(a=r.features)?void 0:a.filterPanel,c=null!=(c=null==(c=r.features)?void 0:c.filterIcon)?c:d,c=x.a.createElement(jl,{key:"".concat(r.code,"_filter"),FilterPanelContent:a,filterIcon:c,filterModel:y.get(r.code),setFilterModel:i,setFilter:n,isFilterActive:o,className:C()((a={},S()(a,M.tableFilterTrigger,!0),S()(a,"active",o),a)),stopClickEventPropagation:p,stopESCKeyDownEventPropagation:h,hideFilterPopupHeader:v,getPopupParent:g,localeText:b,direction:l.ctx.direction}),r.renderHeader?t.title=r.renderHeader(t.title,c):t.title=[].concat(T()([].concat(null!=(n=t.title)?n:[L.safeRenderHeader(Pl({},r))])),[c]))}D(r)||(t.children=r.children.map(e));return t})),l}}function Tl(t,e){var n,r=Object.keys(t);return Object.getOwnPropertySymbols&&(n=Object.getOwnPropertySymbols(t),e&&(n=n.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})),r.push.apply(r,n)),r}function Dl(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?Tl(Object(n),!0).forEach(function(e){S()(t,e,n[e])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):Tl(Object(n)).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))})}return t}var Il="rangeSelection",_l="lastClickCell",Ml="startSelectedCellRanges",Ll=30;function Nl(r){return function(d){var s,u,f,i,a,c,l,p=d.ref.current.domHelper&&d.ref.current.domHelper.tableBody,h=d.ref.current.domHelper&&d.ref.current.domHelper.tableFooter,v=d.ref.current.domHelper&&d.ref.current.domHelper.artTable;return p?(s=d.getColumns(),u=d.getDataSource(),f=function(e,t){var n;t&&d.setFeatureOptions(Ml,e),d.setStateAtKey(Il,e),null!=r&&null!=(n=r.rangeSelectedChange)&&n.call(r,e,t)},i=function(e,t,n){var r,o,i,a,c,l;e&&t&&(r=e,o=t,i=I(i=s,"leaf-only"),c=i.findIndex(function(e){return e.code===r.code}),a=i.findIndex(function(e){return e.code===o.code}),i=c<a?i.slice(c,a+1):i.slice(a,c+1),c=(a=function(e,t,n){var r=null,o=-1,i=-1,a=function(e,t){if(function(e,t){return e.rowIndex===t.rowIndex&&e.code===t.code&&e.isFooterCell===t.isFooterCell}(e,t))return{startRow:e.rowIndex,endRow:e.rowIndex};var n=e.rowIndex<=t.rowIndex,e=n?e.rowIndex:e.rowIndex+e.rowSpan-1,n=n?t.rowIndex+t.rowSpan-1:t.rowIndex;return{startRow:e,endRow:n}}(e,t),c=a.startRow,a=a.endRow;e.isFooterCell||t.isFooterCell?r=e.isFooterCell&&t.isFooterCell?{startRow:c,endRow:a}:e.isFooterCell?(o=n.length-1,i=t.rowIndex,{startRow:e.rowIndex,endRow:0}):(o=e.rowIndex,i=n.length-1,{startRow:0,endRow:t.rowIndex}):(o=c,i=a);return{startRow:o,endRow:i,footerRowRange:r}}(e,t,u)).startRow,t=a.endRow,a=a.footerRowRange,c={startRow:c,endRow:t,columns:i,startColumn:e.column,footerRowRange:a},t=d.getFeatureOptions(Ml)?T()(d.getFeatureOptions(Ml)):[],Hl([c])&&(l=Kl(c),t=t.filter(function(e){return Kl(e)!==l})),t.push(c),Hl(t)?v.classList.remove(C()(M.rangeSelection)):v.classList.add(C()(M.rangeSelection)),f(t,n))},a=function(e){var t,e=Fl(e.target,s);e&&((t=d.getFeatureOptions(_l))?i(t,e,!0):d.setFeatureOptions(_l,e))},c=function(e){var t=e.clientX,e=e.clientY,n=p.getBoundingClientRect(),r=n.left,o=n.top,i=n.height;r+n.width<=t+Ll&&(d.ref.current.domHelper.virtual.scrollLeft+=Ll),t-Ll<=r&&(d.ref.current.domHelper.virtual.scrollLeft-=Ll),o+i<=e+Ll&&(d.ref.current.domHelper.tableBody.scrollTop+=Ll),e+Ll<=o&&(d.ref.current.domHelper.tableBody.scrollTop-=Ll)},l=function(e,t){null!=r&&r.suppressMultiRangeSelection?d.setFeatureOptions(Ml,[]):(e||t||d.setFeatureOptions(Ml,[]),t&&((e=d.getFeatureOptions(Ml)?T()(d.getFeatureOptions(Ml)):[]).pop(),d.setFeatureOptions(Ml,e)))},d.addTableProps({onMouseDown:function(e){var n,r,t,o;0===e.button&&(_n(p,e.nativeEvent)||_n(h,e.nativeEvent))&&(t=e.ctrlKey||e.metaKey,o=e.shiftKey,n=Fl(e.target,s))&&(l(t,o),o?a(e):(d.setFeatureOptions(_l,n),r=n,t=R(window,"mousemove"),o=R(window,"mouseup"),t.pipe(P(function(e){var t=e.target||e.srcElement,t=(r=Fl(t,s),{clientX:e.clientX,clientY:e.clientY});return null!=(e=r)&&e.isFooterCell||c(t),{startDragCell:n,draggingCell:r}}),Ti(o)).subscribe({next:function(e){var t=e.startDragCell,e=e.draggingCell;i(t,e,!1)},complete:function(){i(n,r,!0)}})))},onKeyDown:function(e){var t,n;(_n(p,e.nativeEvent)||_n(h,e.nativeEvent))&&(e.ctrlKey||e.metaKey)&&"a"===e.key&&(t=d.getDataSource().length,n=d.getFooterDataSource()||[],s.length)&&t&&!function(e){if(e&&["input","textarea"].includes(e.tagName.toLowerCase())&&"checkbox"!==e.type)return!e.disabled&&!e.readOnly}(e.target)&&(!1!==r.preventkDefaultOfKeyDownEvent&&e.preventDefault(),v.classList.add(C()(M.rangeSelection)),f([{startRow:0,endRow:t-1,columns:I(s,"leaf-only"),startColumn:s[0],footerRowRange:0<n.length?{startRow:0,endRow:n.length-1}:null}],!0))},tabIndex:-1}),d.mapColumns(m(function(s){var u=d.getStateAtKey(Il)||[],f=s.getCellProps;return Dl(Dl({},s),{},{getCellProps:function(e,t,n){var r,o,i,a,c,e=null==f?void 0:f(e,t,n),l=t[d.getFeatureOptions("footerRowMetaKey")];return u.some(function(e){return Wl(e,n,s,l)})?(r=u,i=(t={isFooterCell:l,rowIndex:n,col:s,record:t}).isFooterCell,a=t.rowIndex,c=t.col,t=t.record,i=function(e,t){var l=t.isFooterCell,s=t.rowIndex,u=t.col;t.record;return e.reduce(function(e,t){var n,r,o,i,a,c;return Wl(t,s,u,l)&&(r=t.startRow,n=t.endRow,i=t.columns,t=t.footerRowRange,n=(r=zl(r,n)).startRowIndex,r=r.endRowIndex,o=(c=Bl(t)).startRowIndex,c=c.endRowIndex,a=i[0],i=i[i.length-1],a=u.code===a.code,c=l?s===c:!t&&s===r,t=u.code===i.code,e.matchCellRangeTop=e.matchCellRangeTop||(l?-1===n&&s===o:s===n),e.matchCellRangeLeft=e.matchCellRangeLeft||a,e.matchCellRangeBottom=e.matchCellRangeBottom||c,e.matchCellRangeRight=e.matchCellRangeRight||t),e},{matchCellRangeTop:!1,matchCellRangeLeft:!1,matchCellRangeBottom:!1,matchCellRangeRight:!1})}(r,{isFooterCell:i,rowIndex:a,col:c,record:t}),a=i.matchCellRangeTop,c=i.matchCellRangeLeft,t=i.matchCellRangeBottom,i=i.matchCellRangeRight,r=Hl(r),_(e,{className:C()((o={},S()(o,M.tableCellRangeSingleCell,r),S()(o,M.tableCellRangeSelected,!r),S()(o,M.tableCellRangeTop,!r&&a),S()(o,M.tableCellRangeLeft,!r&&c),S()(o,M.tableCellRangeBottom,!r&&t),S()(o,M.tableCellRangeRight,!r&&i),o))})):e}})}))):d}}function Fl(t,r){for(;t;){if("table-cell"===t.getAttribute("data-role")){var e=function(){var n=t.getAttribute("data-code"),e=Ro(r,function(e,t){return e.code===n});return e?{v:{rowIndex:parseInt(t.getAttribute("data-rowindex")),rowSpan:parseInt(t.getAttribute("rowspan")||1),code:n,column:e,isFooterCell:function(e){for(;e&&!e.classList.contains(M.artTable);){if(e.classList.contains(M.tableFooter))return!0;e=e.parentElement}return!1}(t)}}:{v:null}}();if("object"===F()(e))return e.v}t=t.parentElement}return null}function Hl(e){var t,n,r;return 1===e.length&&(r=(e=e[0]).startRow,n=e.endRow,t=e.columns,n=!(e=e.footerRowRange)&&r===n&&1===t.length,r=-1===r&&e.startRow===e.endRow&&1===t.length,n||r)}function zl(e,t){var n=t<e;return{startRowIndex:n?t:e,endRowIndex:n?e:t}}function Bl(e){return e?zl(e.startRow,e.endRow):{startRowIndex:-1,endRowIndex:-1}}function Wl(e,t,n,r){var o,i=e.startRow,a=e.endRow,c=e.columns,e=e.footerRowRange;return-1!==c.findIndex(function(e){return e.code===n.code})&&(i=(c=zl(i,a)).startRowIndex,a=c.endRowIndex,o=(c=Bl(e)).startRowIndex,c=c.endRowIndex,r&&e&&o<=t&&t<=c||!r&&i<=t&&t<=a)}function Kl(e){var t=e.startRow,n=e.endRow,r=e.footerRowRange,e=e.columns,t=zl(t,n),n=t.startRowIndex,t=t.endRowIndex,r=Bl(r);return n+"_"+t+"_"+r.startRowIndex+"_"+r.endRowIndex+"_"+e[0].code+"_"+e[e.length-1].code}function Vl(t,e){var n,r=Object.keys(t);return Object.getOwnPropertySymbols&&(n=Object.getOwnPropertySymbols(t),e&&(n=n.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})),r.push.apply(r,n)),r}function $l(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?Vl(Object(n),!0).forEach(function(e){S()(t,e,n[e])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):Vl(Object(n)).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))})}return t}function Gl(){return function(o){return o.mapColumns(m(function(e){var r;return D(e)?(r=e.getCellProps,$l($l({},e),{},{getCellProps:function(e,t,n){return _(null==r?void 0:r(e,t,n),{onMouseEnter:function(e){o.ref.current.domHelper.getInRangeRowByCellEvent(e).forEach(function(e){e.classList.add("row-hover")})},onMouseLeave:function(e){o.ref.current.domHelper.getInRangeRowByCellEvent(e).forEach(function(e){e.classList.remove("row-hover")})}})}})):e}))}}function Yl(t,e){var n,r=Object.keys(t);return Object.getOwnPropertySymbols&&(n=Object.getOwnPropertySymbols(t),e&&(n=n.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})),r.push.apply(r,n)),r}var Ul=Symbol("footer-row");function ql(){var o=0<arguments.length&&void 0!==arguments[0]?arguments[0]:{};return function(e){var t,n=null!=(n=o.dataSource)?n:e.getFooterDataSource(),r=null!=(t=o.footerRowMetaKey)?t:Ul;return e.setFeatureOptions("footerRowMetaKey",r),n?e.footerDataSource(n.map(function(e){return function(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?Yl(Object(n),!0).forEach(function(e){S()(t,e,n[e])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):Yl(Object(n)).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))})}return t}(S()({},r,!0),e)})):console.warn("调用 pipeline.use(features.footerDataSource()) 前请先设置页脚数据源,设置方法有:pipeline.use(features.footerDataSource({dataSource:any[]})) 或者 pipeline.footerDataSource(any[])"),e}}function Xl(t,e){var n,r=Object.keys(t);return Object.getOwnPropertySymbols&&(n=Object.getOwnPropertySymbols(t),e&&(n=n.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})),r.push.apply(r,n)),r}function Zl(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?Xl(Object(n),!0).forEach(function(e){S()(t,e,n[e])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):Xl(Object(n)).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))})}return t}function Jl(e){var t=e.style,n=e.className,r=e.size;return e.isExtend?x.a.createElement("svg",{className:n,width:r,height:r,style:t,viewBox:"96 96 896 896"},x.a.createElement("path",{d:"M678.347087 178.347087C690.550972 166.143203 690.550972 146.356797 678.347087 134.152913C666.143203 121.949029 646.356797 121.949029 634.152913 134.152913L290.402913 477.902913C278.199029 490.106797 278.199029 509.893203 290.402913 522.097087L634.152913 865.847087C646.356797 878.050972 666.143203 878.050972 678.347087 865.847087C690.550972 853.643203 690.550972 833.856797 678.347087 821.652913L356.694175 500L678.347087 178.347087z"})):x.a.createElement("svg",{className:n,width:r,height:r,style:t,viewBox:"96 96 896 896"},x.a.createElement("path",{d:"M321.652913 178.347087C309.449029 166.143203 309.449029 146.356797 321.652913 134.152913C333.856797 121.949029 353.643203 121.949029 365.847088 134.152913L709.597087 477.902913C721.800972 490.106797 721.800972 509.893203 709.597087 522.097087L365.847088 865.847087C353.643203 878.050972 333.856797 878.050972 321.652913 865.847087C309.449029 853.643203 309.449029 833.856797 321.652913 821.652913L643.305825 500L321.652913 178.347087z"}))}var Ql=e.c.span(d()(["\n font-size:12px;\n margin-",":4px;\n"]),function(e){return v(e.direction,"left")}),es=function(){var a=0<arguments.length&&void 0!==arguments[0]?arguments[0]:{};return function(o){var e,t=o.getColumns(),i=null!=(e=null!=(e=a.extendStatus)?e:o.getStateAtKey("colExtend"))?e:{};function n(n){var e=Zl({},n),t=i[n.code],r="function"==typeof a.extendIcon?a.extendIcon(t):a.extendIcon,r=x.a.createElement(x.a.Fragment,null,L.safeRenderHeader(Zl({},n)),x.a.createElement(Ql,{onClick:function(){var e,t;e=n,t=S()({},e.code,!i[e.code]),i[e.code]=!i[e.code],o.setStateAtKey("colExtend",Zl({},i)),null!=a&&a.onChangeExtendStatus&&a.onChangeExtendStatus(i,t)},direction:o.ctx.direction},r||x.a.createElement(Jl,{style:{userSelect:"none",marginLeft:2,flexShrink:0,cursor:"pointer",verticalAlign:"middle"},className:C()(S()({},M.tableExtendIcon,!0)),size:14,isExtend:t})));return e.title=r,e}return o.columns(m(function(e){var t;return!0===((null==(t=e)?void 0:t.features)||{}).showExtendIcon&&1<(null==(t=e.children)?void 0:t.length)&&(e=n(e),!1===i[e.code])&&e.children.splice(1,e.children.length),e})(t)),o}},ts={rowDrag:"rowDrag"},ns="rowDragKey",rs="rowDragOptions",os=30,is=20,as={name:"拖拽列",code:"$_row_drag_column_&",lock:!0,title:"",width:40,align:"center",getCellProps:function(e,t,n){return{className:C()(M.rowDragCell)}},render:function(e,t,n){return x.a.createElement("svg",{viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/1999/xlink","data-icon":"drag",width:"16",height:"16"},x.a.createElement("path",{d:"M298.688 192a64 64 0 1 0 128 0 64 64 0 0 0-128 0z m298.624 0a64 64 0 1 0 128 0 64 64 0 0 0-128 0zM298.688 512a64 64 0 1 0 128 0 64 64 0 0 0-128 0z m298.624 0a64 64 0 1 0 128 0 64 64 0 0 0-128 0z m-298.624 320a64 64 0 1 0 128 0 64 64 0 0 0-128 0z m298.624 0a64 64 0 1 0 128 0 64 64 0 0 0-128 0z","p-id":"4278"}))}};function cs(v){return function(E){var u,n,f,k,d,e,p=E.ref.current.domHelper&&E.ref.current.domHelper.tableBody,h=E.ref.current.domHelper&&E.ref.current.domHelper.artTable,j=E.addFeatureApi(ts.rowDrag);return E.setFeatureOptions(rs,v),p&&(u=E.getDataSource(),n=function(e,t){var n=e.dragItem,r=e.x,o=e.y,i=e.dropZoneTarget,a=e.startDropZoneTagret,c=e.commonParams,l=e.startCommonParams,s=e.event,e=e.dropZoneTableParams,u=e.getDataSource,f=e.getTreeModeOptions,e=e.getRowDragOptions,u=u(),f=f(),e=e(),f=!!f&&(null==e?void 0:e.allowDragIntoRow),e=-1,d="bottom",p=(!!ps(s,i)&&0<u.length&&(p=ls(s.target,i,u))&&(e=p.rowIndex,d=vs(p.cell,s.clientY,f)),-1===e&&0<u.length&&i.contains(s.target)&&(e=u.length-1,d="bottom"),0<=e?u[e]:null);return{startRowIndex:n.rowIndex,startRow:n.row,endRowIndex:e,endRow:p,startDropZoneTagret:a,startCommonParams:l,commonParams:c,dropZoneTarget:i,event:s,dragPosition:d,isFinished:t,x:r,y:o}},f=function(e){var t,e=n(e,!1);null!=v&&null!=(t=v.onDragStart)&&t.call(v,e)},k={getContainer:function(){return E.getLastPipeline().ref.current.domHelper.tableBody},onDragEnter:function(e){var t,e=n(e,!1);E.setStateAtKey(ns,e),null!=v&&null!=(t=v.onDragEnter)&&t.call(v,e)},onDragLeave:function(e){var t,e=n(e,!1);E.setStateAtKey(ns,e),null!=v&&null!=(t=v.onDragLeave)&&t.call(v,e)},onDragging:function(e){var t,e=n(e,!1);null!=v&&null!=(t=v.onDragMove)&&t.call(v,e),E.setStateAtKey(ns,e)},onDragStop:function(e){var t,e=n(e,!0);E.setStateAtKey(ns,e),null!=v&&null!=(t=v.onDragEnd)&&t.call(v,e)},isTable:!0,tableParams:{getDataSource:function(){return E.getLastPipeline().getDataSource()},getTreeModeOptions:function(){return E.getLastPipeline().getFeatureOptions("treeModeOptions")},getRowDragOptions:function(){return E.getLastPipeline().getFeatureOptions("rowDragOptions")}}},d=(null==v?void 0:v.rowDragColumn)||as,E.setFeatureOptions("rowDragColumnKey",d.code),j.setRowDropZoneParams(k),(e=E.getColumns().slice()).unshift(d),E.columns(e),E.addTableProps({onMouseDown:function(e){var r,t,y,b,m,o,i,w,x,S,n,a,c,l,s=e.nativeEvent,O=ls(s.target,p,u);!O||O.code!==d.code||null!=v&&null!=(e=v.isDisabled)&&e.call(v,O.row,O.rowIndex)||(t=r=!1,w=i=o=m=b=y=null,x=[],S=function(e,t){var n;null!=v&&v.suppressScrollMove||(o&&clearTimeout(o),i&&clearInterval(i),e&&0!==(n=function(e,t){var t=t.clientY,e=e.getBoundingClientRect(),n=e.top,e=e.height;if(n+e-is<=t&&t<=n+e)return os;if(n<=t&&t<=n+is)return-os;return 0}(e,t))&&(o=setTimeout(function(){i=setInterval(function(){e.scrollTop+=n},50)},500)))},n=function(e){y=function(e,t){var n="<div class='".concat(M.rowDragElement,"'>\n <span class='").concat(M.rowDragElementIcon,"'></span>\n <div class='").concat(M.rowDragElementLabel,"'></div>\n </div>"),r=document.createElement("div"),n=(r.innerHTML=n,r.firstChild),r=function(e,t){for(;e&&t.contains(e);){if("table-row"===e.getAttribute("data-role"))return e;e=e.parentElement}return null}(e.target,t);r&&(e=r.getBoundingClientRect(),n.style.height=e.height+"px");r=t.getBoundingClientRect();return n.style.maxWidth=r.width+"px",document.body.appendChild(n),n}(e,p);var t=!!E.getFeatureOptions("treeModeOptions"),t=(b=function(e){var t=document.createElement("div");t.classList.add(M.rowDragLine),e&&t.classList.add(M.treeTableRowDragLine);return document.body.appendChild(t),t}(t),null!=v&&v.rowDragText?null==v||null==(t=v.rowDragText)?void 0:t.call(v,O.row,O.rowIndex):"第".concat(O.rowIndex,"行内容")),n=y,n=(t=t.toString(),n=n.querySelector(".".concat(M.rowDragElementLabel)),t=document.createTextNode(t),n.appendChild(t),h.classList.add(C()(M.rowDragging)),j.setDragStatus("start"),hs(k,e,O,k));f(n)},a=function(a){var e="rtl"===E.ctx.direction;u=a,i=e,(s=y)&&(l=s.getBoundingClientRect().height,r=null!=(r=null==(r=document.body)?void 0:r.clientWidth)?r:window.innerHeight||(null==(r=document.documentElement)?void 0:r.clientWidth)||0,t=null!=(t=null==(t=document.body)?void 0:t.clientHeight)?t:window.innerHeight||(null==(t=document.documentElement)?void 0:t.clientHeight)||0,c=ss(s.offsetParent),o=u.clientX,u=u.clientY-c.top-l/2,l=o-c.left,c=Math.max(r-o,0),o=window.pageXOffset||window.scrollX,n=window.pageYOffset||window.scrollY,0<r&&l+s.clientWidth>r+o&&(l=Math.max(r+o-s.clientWidth,0)),0<t&&u+s.clientHeight>t+n&&(u=Math.max(t+n-s.clientHeight,0)),0<r&&c+s.clientWidth>r+o&&(c=Math.max(r+o-s.clientWidth,0)),i?s.style.cssText+=";right: ".concat(c,"px; top: ").concat(u,"px;"):(s.style.left="".concat(l,"px"),s.style.top="".concat(u,"px"))),j.setDragStatus("dragging"),ds(y,"move");var t,n,r,o,i,c,l,s,u,f,d,p,h,v,g=j.getRowDropZone().concat(k).find(function(e){return ps(a,e.getContainer())})||null;S(null==g?void 0:g.getContainer(),a),g!==m&&(null!==m&&null===g&&m.onDragLeave&&(ds(y,"notAllowed"),b.style.display="none",m.getContainer().classList.remove(M.rowDragNoData),t=hs(m,a,O,k),m.onDragLeave(t)),null===m&&null!==g&&g.onDragEnter&&(ds(y,"move"),g.isTable&&(b.style.display="block",!!(0,g.tableParams.getTreeModeOptions)()?b.classList.add(M.treeTableRowDragLine):b.classList.remove(M.treeTableRowDragLine)),n=hs(g,a,O,k),g.onDragEnter(n)),m=g),g&&(g.isTable&&(o=(r={lineElement:b,dragZone:g,event:a,isRTL:e}).lineElement,i=r.dragZone,c=r.event,r=r.isRTL,l=i.getContainer(),i=i.tableParams,s=i.getDataSource,u=i.getTreeModeOptions,i=i.getRowDragOptions,s=s(),u=u(),i=(i()||{}).allowDragIntoRow,e=!!u,f=l.getBoundingClientRect(),d=ss(document.body),0===s.length?(l.classList.add(M.rowDragNoData),o.style.display="none"):(l.classList.remove(M.rowDragNoData),o.style.display="block"),(v=ls(c.target,l,s))?(h=v.cell,p=v.rowIndex,v=v.row,i=e&&i,i=vs(h,c.clientY,i),(p=e?l.querySelector('tr[data-rowindex="'.concat(p,'"] .').concat(M.tableExtendCell)):h)&&(h=gs({treeModeOptions:u,cell:p,row:v,direction:i,offsetParentSize:d,bodyRect:f,isRTL:r}),p=h.top,v=h.left,h=h.width,o.style.left="".concat(v,"px"),o.style.top="".concat(p,"px"),o.style.width="".concat(h,"px"),o.style.display="into"===i?"none":"block")):0<s.length&&l.contains(c.target)&&(v=s.length-1,p=s[v],h=e?l.querySelector('tr[data-rowindex="'.concat(v,'"] .').concat(M.tableExtendCell)):l.querySelector('tr[data-rowindex="'.concat(v,'"] .').concat(M.rowDragCell)))&&(i=gs({treeModeOptions:u,cell:h,row:p,direction:"bottom",offsetParentSize:d,bodyRect:f,isRTL:r}),c=i.top,s=i.left,e=i.width,o.style.left="".concat(s,"px"),o.style.top="".concat(c,"px"),o.style.width="".concat(e,"px"))),null!=g&&null!=(v=g.tableParams)&&v.getTreeModeOptions()&&(w&&clearTimeout(w),w=setTimeout(function(){var e,t=g.tableParams.getTreeModeOptions(),n=t.treeMetaKey,r=t.onExpand,o=t.isExpanded,i=t.onCollapse,t=g.tableParams.getDataSource(),t=ls(a.target,g.getContainer(),t);t&&(t=t.row[n],e=t.rowKey,t.isLeaf||o(e)||(r(e),x.push(function(){return i(e)})))},1e3)),g.onDragging)&&(u=hs(g,a,O,k),g.onDragging(u))},e=R(window,"mousemove"),c=R(window,"mouseup"),e.pipe(St(function(e){var e=e.clientY,t=s.clientY;return r=5<Math.abs(e-t)?!0:r}),P(function(e){t||(t=!0,n(s),a(s)),a(e)}),Ti(c)).subscribe(),l=c.pipe(P(function(e){var t=e;if(r){fs(y),fs(b),h.classList.remove(C()(M.rowDragging)),j.setDragStatus("finished"),clearTimeout(o),clearInterval(i),clearTimeout(w);e=j.getRowDropZone();e.forEach(function(e){e=e.getContainer();e&&e.classList.remove(M.rowDragNoData)});var n,e=e.concat(k).find(function(e){return ps(t,e.getContainer())});for(e&&e.onDragStop&&(n=hs(e,t,O,k),e.onDragStop(n));0<x.length;)x.pop()()}})).subscribe({next:function(){l.unsubscribe()}}))}}),E.appendRowPropsGetter(function(e,t){var n,r,o=E.getStateAtKey(ns)||{},i=j.getDragStatus(),a=o.startRowIndex,c=o.endRowIndex,l=o.endRow,s=o.isFinished,o=o.dragPosition,e=e[E.getFeatureOptions("footerRowMetaKey")],u=E.getFeatureOptions("treeModeOptions"),f=!!u;if(!(e||s||!f&&t!==a&&t!==c))return e=-1,f&&l&&(n=l[u.treeMetaKey].parentRowKey,r=E.ensurePrimaryKey("rowDrag"),e=E.getDataSource().findIndex(function(e){return L.safeGetRowKey(r,e,-1)===n})),{className:C()((s={},S()(s,M.rowDragStart,t===a&&"finished"!==i),S()(s,M.rowDragEnd,t===c),S()(s,M.rowDragEndParent,f&&t===e&&"into"!==o),S()(s,M.rowDragEndInto,t===c&&"into"===o),S()(s,M.rowDragEndToTop,t===c&&"top"===o),S()(s,M.rowDragEndToBottom,t===c&&"bottom"===o),s))}})),E}}function ls(e,t,n){for(;e&&t.contains(e);){var r,o,i,a;if("table-cell"===e.getAttribute("data-role"))return r=e.getAttribute("data-code"),i=n[o=parseInt(e.getAttribute("data-rowindex"))],a=function(e){for(;e&&!e.classList.contains(M.artTable);){if(e.classList.contains(M.tableFooter))return!0;e=e.parentElement}return!1}(e),!i||a?null:{rowIndex:o,row:i,code:r,cell:e};e=e.parentElement}return null}function ss(e){var t=e.getBoundingClientRect(),e=us(e),n=e.borderTopWidth,r=e.borderLeftWidth,o=e.borderRightWidth,e=e.borderBottomWidth;return{top:t.top+(n||0),left:t.left+(r||0),right:t.right+(o||0),bottom:t.bottom+(e||0)}}function us(e){var e=window.getComputedStyle(e),t=e.height,n=e.width,r=e.borderTopWidth,o=e.borderRightWidth,i=e.borderBottomWidth,a=e.borderLeftWidth,c=e.paddingTop,l=e.paddingRight,s=e.paddingBottom,u=e.paddingLeft,f=e.marginTop,d=e.marginRight,p=e.marginBottom,h=e.marginLeft,e=e.boxSizing;return{height:parseFloat(t||"0"),width:parseFloat(n||"0"),borderTopWidth:parseFloat(r||"0"),borderRightWidth:parseFloat(o||"0"),borderBottomWidth:parseFloat(i||"0"),borderLeftWidth:parseFloat(a||"0"),paddingTop:parseFloat(c||"0"),paddingRight:parseFloat(l||"0"),paddingBottom:parseFloat(s||"0"),paddingLeft:parseFloat(u||"0"),marginTop:parseFloat(f||"0"),marginRight:parseFloat(d||"0"),marginBottom:parseFloat(p||"0"),marginLeft:parseFloat(h||"0"),boxSizing:e}}function fs(e){document.body.removeChild(e)}function ds(e,t){for(var e=e.querySelector(".".concat(M.rowDragElementIcon)),n=e;n&&n.firstChild;)n.removeChild(n.firstChild);t=t||"notAllowed";var r=document.createElement("span");"move"===t?r.classList.add(M.iconMove):"notAllowed"===t&&r.classList.add(M.iconNotAllowed),e.appendChild(r)}function ps(e,t){return t.contains(e.target)}function hs(e,t,n,r){var o=e.getContainer(),i=r.getContainer(),a=o.getBoundingClientRect(),c=t.clientX-a.left,a=t.clientY-a.top,r=r.tableParams.getRowDragOptions(),n={dragItem:n,startDropZoneTagret:i,startCommonParams:null==r?void 0:r.commonParams,dropZoneTarget:o,event:t,x:c,y:a};return e.isTable&&(r=null==(i=e.tableParams.getRowDragOptions())?void 0:i.commonParams,n.dropZoneTableParams=e.tableParams,n.commonParams=r),n}function vs(e,t,n){var n=2<arguments.length&&void 0!==n&&n,e=e.getBoundingClientRect(),r=e.height,e=e.y,o="bottom";return n?t<e+r/4?o="top":t<e+3*r/4&&(o="into"):t<e+r/2&&(o="top"),o}var gs=function(e){var t,n,r,o,i,a,c,l,s=e.treeModeOptions,u=e.cell,f=e.row,d=e.direction,p=e.offsetParentSize,h=e.bodyRect,e=e.isRTL;return!s?(c=(a=u.getBoundingClientRect()).y,l=a.height,{top:"bottom"===d?c+l-p.top:c-p.top,left:h.x-p.left,width:h.width}):(l=s.iconWidth,a=s.iconIndent,o=s.iconGap,i=s.indentSize,s=s.treeMetaKey,c=(t=us(u)).paddingLeft,t=t.paddingRight,n=u.getBoundingClientRect(),(f=f[s]).rowKey,s=f.depth,r=f.isLeaf,f.expanded,f=a+s*i+(r?l+o:0),a=n.x,s=n.y,i=n.height,r="bottom"===d?s+i-p.top:s-p.top,l=Math.max(a+c+f-h.x,0),o=h.x+l-p.left,i=h.width-l,e?(s=h.right-n.right,{top:r,left:h.x-p.left,width:h.width-s-t-f}):{top:r,left:o,width:i})},ys=function(){function t(e){i()(this,t),S()(this,"pipeline",void 0),S()(this,"rowDropZoneParams",void 0),S()(this,"rowDropZones",void 0),S()(this,"dragStatus",void 0),this.pipeline=e,this.rowDropZoneParams=null,this.rowDropZones=[],this.dragStatus="finished"}return r()(t,[{key:"getRowDropZoneParams",value:function(){return this.rowDropZoneParams}},{key:"setRowDropZoneParams",value:function(e){this.rowDropZoneParams=e}},{key:"addRowDropZone",value:function(t){t&&null!=t&&t.getContainer()&&(this.rowDropZones.some(function(e){return e.getContainer()===t.getContainer()})||this.rowDropZones.push(t))}},{key:"getRowDropZone",value:function(){return this.rowDropZones}},{key:"removeRowDropZone",value:function(t){this.rowDropZones=this.rowDropZones.filter(function(e){return e.getContainer()!==t.getContainer()})}},{key:"setDragStatus",value:function(e){this.dragStatus!==(this.dragStatus=e)&&this.pipeline.setStateAtKey("rowDragStatus",e)}},{key:"getDragStatus",value:function(){return this.dragStatus}}]),t}();function bs(t,e){var n,r=Object.keys(t);return Object.getOwnPropertySymbols&&(n=Object.getOwnPropertySymbols(t),e&&(n=n.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})),r.push.apply(r,n)),r}function ms(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?bs(Object(n),!0).forEach(function(e){S()(t,e,n[e])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):bs(Object(n)).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))})}return t}var ws=function(){function o(e){var t=e.state,n=e.setState,r=e.ctx,e=e.ref;i()(this,o),S()(this,"ref",void 0),S()(this,"_snapshots",{}),S()(this,"_rowPropsGetters",[]),S()(this,"_tableProps",{}),S()(this,"_dataSource",void 0),S()(this,"_isSameInputDataSource",void 0),S()(this,"_columns",void 0),S()(this,"_footerDataSource",void 0),S()(this,"ctx",{components:{},indents:o.defaultIndents}),S()(this,"state",void 0),S()(this,"setState",void 0),this.state=t,this.setState=n,this.ref=e,O()(this.ctx,r)}return r()(o,[{key:"guid",value:function(){function e(){return(65536*(1+Math.random())|0).toString(16).substring(1)}return e()+e()+"-"+e()+"-"+e()+"-"+e()+"-"+e()+e()+e()}},{key:"appendRowPropsGetter",value:function(e){return this._rowPropsGetters.push(e),this}},{key:"addTableProps",value:function(e){this._tableProps=_(this._tableProps,e)}},{key:"getDataSource",value:function(e){return null==e?this._dataSource:this._snapshots[e].dataSource}},{key:"isSameInputDataSource",value:function(){return this._isSameInputDataSource}},{key:"getColumns",value:function(e){return null==e?this._columns:this._snapshots[e].columns}},{key:"getFooterDataSource",value:function(){return this._footerDataSource}},{key:"getStateAtKey",value:function(e,t){return null!=(e=this.state[e])?e:t}},{key:"setStateAtKey",value:function(t,n,e){this.setState(function(e){return ms(ms({},e),{},S()({},t,n))},t,n,e)}},{key:"ensurePrimaryKey",value:function(e){if(null==this.ctx.primaryKey)throw new Error(e?"使用 ".concat(e," 之前必须先设置 primaryKey"):"必须先设置 primaryKey");return this.ctx.primaryKey}},{key:"input",value:function(e){var t=this;if(null!=this._dataSource||null!=this._columns)throw new Error("input 不能调用两次");return this._isSameInputDataSource=e.dataSource===this.ref.current._lastInputDataSource,this._dataSource=e.dataSource,this.ref.current._lastInputDataSource=e.dataSource,(this.ref.current.lastPipeline=this)._columns=e.columns.map(function(e){return ms(ms({},e),{},{key:t.guid()})}),this.snapshot("input"),this}},{key:"dataSource",value:function(e){return this._dataSource=e,this}},{key:"columns",value:function(e){return this._columns=e,this}},{key:"primaryKey",value:function(e){return this.ctx.primaryKey=e,this}},{key:"footerDataSource",value:function(e){return this._footerDataSource=e,this}},{key:"snapshot",value:function(e){return this._snapshots[e]={dataSource:this._dataSource,columns:this._columns,rowPropsGetters:this._rowPropsGetters.slice()},this}},{key:"useTransform",value:function(e){e=e({dataSource:this.getDataSource(),columns:this.getColumns()});return this.dataSource(e.dataSource).columns(e.columns)}},{key:"use",value:function(e){return e(this)}},{key:"mapDataSource",value:function(e){return this.dataSource(e(this.getDataSource()))}},{key:"mapColumns",value:function(e){return this.columns(e(this.getColumns()))}},{key:"getFeatureOptions",value:function(e){var t;return null==(t=this.ref.current.featureOptions)?void 0:t[e]}},{key:"setFeatureOptions",value:function(e,t){this.ref.current.featureOptions[e]=t}},{key:"getProps",value:function(){var t=this,e=(this.use(Vc()),{dataSource:this._dataSource,columns:this._columns});return this.ctx.primaryKey&&(e.primaryKey=this.ctx.primaryKey),this._footerDataSource&&(e.footerDataSource=this._footerDataSource),0<this._rowPropsGetters.length&&(e.getRowProps=function(n,r){return t._rowPropsGetters.reduce(function(e,t){return _(e,t(n,r))},{})}),e.getTableProps=function(){return t._tableProps},e.setTableWidth=function(e){t.getStateAtKey(Gc)!==e&&e&&t.setStateAtKey(Gc,e)},e.setTableDomHelper=function(e){t.ref.current.domHelper=e},e.setRowHeightManager=function(e){t.ref.current.rowHeightManager=e},e}},{key:"getFeatureApi",value:function(e){var t;return null==(t=this.ref.current.featureApi)?void 0:t[e]}},{key:"addFeatureApi",value:function(e){return this.getFeatureApi(e)||(this.ref.current.featureApi[e]=function(e,t){if(e===ts.rowDrag)return new ys(t)}(e,this)),this.ref.current.featureApi[e]}},{key:"getLastPipeline",value:function(){return this.ref.current.lastPipeline}}]),o}();function xs(e){var t=Object(y.useState)({}),t=A()(t,2),n=t[0],t=t[1],r=Object(y.useRef)({featureOptions:{},featureApi:{}});return new ws({state:n,setState:t,ctx:e,ref:r})}S()(ws,"defaultIndents",{iconIndent:-8,iconWidth:16,iconGap:0,indentSize:16})}],a={},o.m=i,o.c=a,o.d=function(e,t,n){o.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:n})},o.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},o.t=function(t,e){if(1&e&&(t=o(t)),8&e)return t;if(4&e&&"object"==typeof t&&t&&t.__esModule)return t;var n=Object.create(null);if(o.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var r in t)o.d(n,r,function(e){return t[e]}.bind(null,r));return n},o.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return o.d(t,"a",t),t},o.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},o.p="",o(o.s=205);function o(e){var t;return(a[e]||(t=a[e]={i:e,l:!1,exports:{}},i[e].call(t.exports,t,t.exports,o),t.l=!0,t)).exports}var i,a});
|
|
216
|
+
*/function fn(){var a,n,r,o=0<arguments.length&&void 0!==arguments[0]?arguments[0]:{},i="cssVars(): ",w=E({},on,o);function x(e,t,n,r){!w.silent&&window.console&&console.error("".concat(i).concat(e,"\n"),t),w.onError(e,t,n,r)}function S(e){!w.silent&&window.console&&console.warn("".concat(i).concat(e)),w.onWarning(e)}function O(e){w.onFinally(Boolean(e),nn,pn()-w.__benchmark)}if(tn)if(w.watch)w.watch=on.watch,a=w,window.MutationObserver&&(f&&(f.disconnect(),f=null),(f=new MutationObserver(function(e){e.some(function(e){return function(e){var t=!1;{var n,r,o,i;"attributes"===e.type&&l(e.target)&&!c(e.target)&&(n="disabled"===e.attributeName,r="href"===e.attributeName,o="skip"===e.target.getAttribute("data-cssvars"),i="src"===e.target.getAttribute("data-cssvars"),n?t=!o&&!i:r&&(o?e.target.setAttribute("data-cssvars",""):i&&hn(a.rootElement,!0),t=!0))}return t}(e)||function(e){var t=!1;{var n;"childList"===e.type&&(n=s(e.target),e="out"===e.target.getAttribute("data-cssvars"),t=n&&!e)}return t}(e)||function(e){var t=!1;"childList"===e.type&&(t=[].slice.call(e.addedNodes).some(function(e){var t=1===e.nodeType&&e.hasAttribute("data-cssvars"),n=s(e)&&an.cssVars.test(e.textContent);return!t&&(l(e)||n)&&!c(e)}));return t}(e)||function(e){var t=!1;"childList"===e.type&&(t=[].slice.call(e.removedNodes).some(function(e){var t=1===e.nodeType,n=t&&"out"===e.getAttribute("data-cssvars"),t=t&&"src"===e.getAttribute("data-cssvars"),r=t;return(t||n)&&(n=e.getAttribute("data-cssvars-group"),e=a.rootElement.querySelector('[data-cssvars-group="'.concat(n,'"]')),t&&hn(a.rootElement,!0),e)&&e.parentNode.removeChild(e),r}));return t}(e)})&&fn(a)})).observe(document.documentElement,{attributes:!0,attributeFilter:["disabled","href"],childList:!0,subtree:!0})),fn(w);else{if(!1===w.watch&&f&&(f.disconnect(),f=null),!w.__benchmark){if(cn===w.rootElement)return void function(e){var t=1<arguments.length&&void 0!==arguments[1]?arguments[1]:100;clearTimeout(sn),sn=setTimeout(function(){e.__benchmark=null,fn(e)},t)}(o);var e=[].slice.call(w.rootElement.querySelectorAll('[data-cssvars]:not([data-cssvars="out"])'));w.__benchmark=pn(),w.exclude=[f?'[data-cssvars]:not([data-cssvars=""])':'[data-cssvars="out"]',"link[disabled]:not([data-cssvars])",w.exclude].filter(function(e){return e}).join(","),w.variables=function(){var n=0<arguments.length&&void 0!==arguments[0]?arguments[0]:{},r=/^-{2}/;return Object.keys(n).reduce(function(e,t){return e[r.test(t)?t:"--".concat(t.replace(/^-+/,""))]=n[t],e},{})}(w.variables),e.forEach(function(e){var t="style"===e.nodeName.toLowerCase()&&e.__cssVars.text,n=t&&e.textContent!==e.__cssVars.text;t&&n&&(e.sheet&&(e.sheet.disabled=!1),e.setAttribute("data-cssvars",""))}),f||([].slice.call(w.rootElement.querySelectorAll('[data-cssvars="out"]')).forEach(function(e){var t=e.getAttribute("data-cssvars-group");(t?w.rootElement.querySelector('[data-cssvars="src"][data-cssvars-group="'.concat(t,'"]')):null)||e.parentNode.removeChild(e)}),ln&&e.length<ln&&(ln=e.length,k.dom={}))}"loading"!==document.readyState?nn&&w.onlyLegacy?(n=!1,w.updateDOM&&(r=w.rootElement.host||(w.rootElement===document?document.documentElement:w.rootElement),Object.keys(w.variables).forEach(function(e){var t=w.variables[e];n=n||t!==getComputedStyle(r).getPropertyValue(e),r.style.setProperty(e,t)})),O(n)):!un&&(w.shadowDOM||w.rootElement.shadowRoot||w.rootElement.host)?Kt({rootElement:on.rootElement,include:on.include,exclude:w.exclude,skipDisabled:!1,onSuccess:function(e,t,n){return(!(t.sheet||{}).disabled||t.__cssVars)&&((e=e.replace(an.cssComments,"").replace(an.cssMediaQueries,"")).match(an.cssVarDeclRules)||[]).join("")||!1},onComplete:function(e,t,n){Xt(e,{store:k.dom,onWarning:S}),un=!0,fn(w)}}):(cn=w.rootElement,Kt({rootElement:w.rootElement,include:w.include,exclude:w.exclude,skipDisabled:!1,onBeforeSend:w.onBeforeSend,onError:function(e,t,n){var n=e.responseURL||dn(n,location.href),r=e.statusText?"(".concat(e.statusText,")"):"Unspecified Error"+(0===e.status?" (possibly CORS related)":"");x("CSS XHR Error: ".concat(n," ").concat(e.status," ").concat(r),t,e,n)},onSuccess:function(e,t,n){var r,o,i,a;return!((t.sheet||{}).disabled&&!t.__cssVars)&&(r="link"===t.nodeName.toLowerCase(),o="style"===t.nodeName.toLowerCase()&&e!==t.textContent,t=w.onSuccess(e,t,n),e=void 0!==t&&!1===Boolean(t)?"":t||e,w.updateURLs&&(r||o)&&(a=n,((i=e).replace(an.cssComments,"").match(an.cssUrls)||[]).forEach(function(e){var t=e.replace(an.cssUrls,"$1"),n=dn(t,a);i=i.replace(e,e.replace(t,n))}),e=i),e)},onComplete:function(e,s){var t=2<arguments.length&&void 0!==arguments[2]?arguments[2]:[],n=E({},k.dom,k.user);if(k.job={},t.forEach(function(t,e){e=s[e];if(t.__cssVars=t.__cssVars||{},t.__cssVars.text=e,an.cssVars.test(e))try{var n=qt(e,{preserveStatic:w.preserveStatic,removeComments:!0});Xt(n,{parseHost:Boolean(w.rootElement.host),store:k.dom,onWarning:S}),t.__cssVars.tree=n}catch(e){x(e.message,t)}}),E(k.job,k.dom),w.updateDOM?(E(k.user,w.variables),E(k.job,k.user)):(E(k.job,k.user,w.variables),E(n,w.variables)),0<rn.job&&Boolean(Object.keys(k.job).length>Object.keys(n).length||Boolean(Object.keys(n).length&&Object.keys(k.job).some(function(e){return k.job[e]!==n[e]}))))hn(w.rootElement),fn(w);else{var u=[],f=[],d=!1;if(w.updateDOM&&rn.job++,t.forEach(function(t,e){var n=!t.__cssVars.tree;if(t.__cssVars.tree)try{en(t.__cssVars.tree,E({},w,{variables:k.job,onWarning:S}));var r,o,i,a,c,l=Zt(t.__cssVars.tree);w.updateDOM?(r=s[e],o=an.cssVarFunc.test(r),t.getAttribute("data-cssvars")||t.setAttribute("data-cssvars","src"),l.length&&o&&(i=t.getAttribute("data-cssvars-group")||++rn.group,a=l.replace(/\s/g,""),c=w.rootElement.querySelector('[data-cssvars="out"][data-cssvars-group="'.concat(i,'"]'))||document.createElement("style"),d=d||an.cssKeyframes.test(l),w.preserveStatic&&t.sheet&&(t.sheet.disabled=!0),c.hasAttribute("data-cssvars")||c.setAttribute("data-cssvars","out"),a===t.textContent.replace(/\s/g,"")?(n=!0,c&&c.parentNode&&(t.removeAttribute("data-cssvars-group"),c.parentNode.removeChild(c))):a!==c.textContent.replace(/\s/g,"")&&([t,c].forEach(function(e){e.setAttribute("data-cssvars-job",rn.job),e.setAttribute("data-cssvars-group",i)}),c.textContent=l,u.push(l),f.push(c),c.parentNode||t.parentNode.insertBefore(c,t.nextSibling)))):t.textContent.replace(/\s/g,"")!==l&&u.push(l)}catch(e){x(e.message,t)}n&&t.setAttribute("data-cssvars","skip"),t.hasAttribute("data-cssvars-job")||t.setAttribute("data-cssvars-job",rn.job)}),ln=w.rootElement.querySelectorAll('[data-cssvars]:not([data-cssvars="out"])').length,w.shadowDOM)for(var r,o=[].concat(w.rootElement).concat([].slice.call(w.rootElement.querySelectorAll("*"))),i=0;r=o[i];++i)r.shadowRoot&&r.shadowRoot.querySelector("style")&&fn(E({},w,{rootElement:r.shadowRoot}));if(w.updateDOM&&d){var t=w.rootElement,a=["animation-name","-moz-animation-name","-webkit-animation-name"].filter(function(e){return getComputedStyle(document.body)[e]})[0];if(a){for(var c=[].slice.call(t.querySelectorAll("*")),l=[],p="__CSSVARSPONYFILL-KEYFRAMES__",h=0,v=c.length;h<v;h++){var g=c[h];"none"!==getComputedStyle(g)[a]&&(g.style[a]+=p,l.push(g))}document.body.offsetHeight;for(var y=0,b=l.length;y<b;y++){var m=l[y].style;m[a]=m[a].replace(p,"")}}}cn=!1,w.onComplete(u.join(""),f,JSON.parse(JSON.stringify(k.job)),pn()-w.__benchmark),O(f.length)}}})):document.addEventListener("DOMContentLoaded",function e(t){fn(o),document.removeEventListener("DOMContentLoaded",e)})}function c(e){var t=l(e)&&e.hasAttribute("disabled"),e=(e.sheet||{}).disabled;return t||e}function l(e){return"link"===e.nodeName.toLowerCase()&&-1!==(e.getAttribute("rel")||"").indexOf("stylesheet")}function s(e){return"style"===e.nodeName.toLowerCase()}}function dn(e,t){var t=1<arguments.length&&void 0!==t?t:location.href,n=document.implementation.createHTMLDocument(""),r=n.createElement("base"),o=n.createElement("a");return n.head.appendChild(r),n.body.appendChild(o),r.href=t,o.href=e,o.href}function pn(){return tn&&(window.performance||{}).now?window.performance.now():(new Date).getTime()}function hn(e,t){t=1<arguments.length&&void 0!==t&&t;[].slice.call(e.querySelectorAll('[data-cssvars="skip"],[data-cssvars="src"]')).forEach(function(e){return e.setAttribute("data-cssvars","")}),t&&(k.dom={})}function j(e,t){if(null==e)return t;if(null==t)return e;for(var n=O()({},e),r=0,o=Object.keys(t);r<o.length;r++){var i,a=o[r],c=t[a],l=F()(c);null===c?n[a]=null:void 0!==c&&("number"===l||"string"===l||"boolean"===l?n[a]="className"===a?P()(n[a],c):c:"function"===l?(i=n[a],n[a]=null==i?c:function(e,t){return function(){e.apply(void 0,arguments),t.apply(void 0,arguments)}}(i,c)):"object"===l&&(n[a]=O()({},n[a],c)))}return n}fn.reset=function(){for(var e in rn.job=0,rn.group=0,cn=!1,f&&(f.disconnect(),f=null),ln=0,sn=null,un=!1,k)k[e]={}};var vn,gn=function(){var e,t=navigator.userAgent,n={};(e=t.match(/Edge\/(.*?)(?=\s|$)/))&&(n.name="Edge",n.version=e[1]);n.name||(e=t.match(/Edg\/(.*?)(?=\s|$)/))&&(n.name="NewEdge",n.version=e[1]);n.name||(e=t.match(/Chrome\/(.*?)(?=\s|$)/))&&(n.name="Chrome",n.version=e[1]);n.name||(e=t.match(/Safari\/(.*?)(?=\s|$)/))&&(n.name="Safari",n.version=e[1]);n.name||(e=t.match(/Firefox\/(.*?)(?=\s|$)/))&&(n.name="Firefox",n.version=e[1]);n.name||(/Trident\/(\d+)/.test(t)?(n.name="IE",e=t.match(/Trident.*rv:([\d.]+)/)||[],n.version=e[1]):(e=t.match(/MSIE\s(.*?);/))&&(n.name="IE",n.version=e[1]));return n}(),yn={isEdge:"Edge"===gn.name,isNewEdge:"NewEdge"===gn.name,isIE:"IE"===gn.name,isFireFox:"Firefox"===gn.name,isChrome:"Chrome"===gn.name,isSafari:"Safari"===gn.name};function bn(){var e,t;return vn=void 0===vn?yn.isIE||(e=gn.name,t=gn.version,"Firefox"===e&&function(e){return"number"!=typeof e?"string"!=typeof e?Number(void 0):Number(e.split(".")[0]):e}(t)<=52):vn}var mn,d=t(14),d=t.n(d),p="kd-",T={artTableWrapper:"".concat(p,"table-wrapper"),artTableBordered:"".concat(p,"table-bordered"),artTable:"".concat(p,"table"),tableHeaderMain:"".concat(p,"table-header-main"),tableHeader:"".concat(p,"table-header"),tableBody:"".concat(p,"table-body"),virtual:"".concat(p,"virtual"),tableFooter:"".concat(p,"table-footer"),tableFooterMain:"".concat(p,"table-footer-main"),tableRow:"".concat(p,"table-row"),tableHeaderRow:"".concat(p,"table-header-row"),tableCell:"".concat(p,"table-cell"),tableExtendCell:"".concat(p,"table-extend-cell"),tableHeaderCell:"".concat(p,"table-header-cell"),tableHeaderCellContent:"".concat(p,"table-header-cell-content"),tableHeaderCellResize:"".concat(p,"table-header-cell-resize"),virtualBlank:"".concat(p,"virtual-blank"),stickyScroll:"".concat(p,"sticky-scroll"),stickyScrollItem:"".concat(p,"sticky-scroll-item"),horizontalScrollContainer:"".concat(p,"horizontal-scroll-container"),verticalScrollPlaceholder:"".concat(p,"vertical-scroll-placeholder"),horizontalStickyScrollContainer:"".concat(p,"horizontal-sticky-scroll-container"),horizontalScrollLeftSpacer:"".concat(p,"horizontal-scroll-left-spacer"),horizontalScrollRightSpacer:"".concat(p,"horizontal-scroll-right-spacer"),lockShadowMask:"".concat(p,"lock-shadow-mask"),lockShadow:"".concat(p,"lock-shadow"),leftLockShadow:"".concat(p,"left-lock-shadow"),rightLockShadow:"".concat(p,"right-lock-shadow"),emptyWrapper:"".concat(p,"empty-wrapper"),loadingWrapper:"".concat(p,"loading-wrapper"),loadingContentWrapper:"".concat(p,"loading-content-wrapper"),loadingIndicatorWrapper:"".concat(p,"loading-indicator-wrapper"),loadingIndicator:"".concat(p,"loading-indicator"),tableHeaderCellLine:"".concat(p,"table-header-cell-line"),tableFilterTrigger:"".concat(p,"filter-trigger"),tableSortIcon:"".concat(p,"sort-icon"),tableExtendIcon:"".concat(p,"extend-icon"),button:"".concat(p,"btn"),buttonPrimary:"".concat(p,"btn-primary"),filterIcon:"".concat(p,"filter-icon"),rangeSelection:"".concat(p,"range-selection"),tableCellRangeSingleCell:"".concat(p,"table-cell-range-single-cell"),tableCellRangeSelected:"".concat(p,"table-cell-range-selected"),tableCellRangeTop:"".concat(p,"table-cell-range-top"),tableCellRangeLeft:"".concat(p,"table-cell-range-left"),tableCellRangeBottom:"".concat(p,"table-cell-range-bottom"),tableCellRangeRight:"".concat(p,"table-cell-range-right"),fixedLeft:"".concat(p,"fixed-left"),fixedRight:"".concat(p,"fixed-right"),rowDetailContainer:"".concat(p,"row-detail-container"),rowDetailItem:"".concat(p,"row-detail-item"),emptyColCell:"".concat(p,"empty-col-cell"),first:"".concat(p,"first"),last:"".concat(p,"last"),even:"".concat(p,"even"),odd:"".concat(p,"odd"),lockLeft:"".concat(p,"lock-left"),lockRight:"".concat(p,"lock-right"),rowSpan:"".concat(p,"row-span"),leaf:"".concat(p,"leaf"),expanded:"".concat(p,"expanded"),collapsed:"".concat(p,"collapsed"),popup:"".concat(p,"popup"),popupHeader:"".concat(p,"popup-header"),popupBody:"".concat(p,"popup-body"),rowDragging:"".concat(p,"row-dragging"),rowDragStart:"".concat(p,"row-drag-start"),rowDragEnd:"".concat(p,"row-drag-end"),rowDragEndParent:"".concat(p,"row-drag-end-parent"),rowDragEndToTop:"".concat(p,"row-drag-end-to-top"),rowDragEndToBottom:"".concat(p,"row-drag-end-to-bottom"),rowDragEndInto:"".concat(p,"row-drag-end-into"),rowDragElement:"".concat(p,"row-drag-element"),rowDragElementIcon:"".concat(p,"row-drag-element-icon"),rowDragElementLabel:"".concat(p,"row-drag-element-label"),rowDragLine:"".concat(p,"row-drag-line"),rowDragNoData:"".concat(p,"row-drag-no-data"),treeTableRowDragLine:"".concat(p,"tree-table-row-drag-line"),iconNotAllowed:"".concat(p,"icon-not-allowed"),iconMove:"".concat(p,"icon-move"),rowDragCell:"".concat(p,"row-drag-cell")},h={menu:"".concat(p,"table-menu"),menuList:"".concat(p,"table-menu-list"),menuOption:"".concat(p,"table-menu-option"),menuOptionActive:"".concat(p,"table-menu-option-active"),menuOptionDisable:"".concat(p,"table-menu-option-disable"),menuOptionText:"".concat(p,"table-menu-option-text")},p=5,wn=15,xn=10,Sn=20,On=25,En=30,kn=40,jn=Object(e.a)(d()(["\n .","{\n position: absolute;\n top:0;\n ",":0;\n z-index: 9999;\n pointer-events:none;\n user-select: none;\n\n display:flex;\n opacity: 0.9;\n align-items:center;\n min-width:80px;\n padding: 0px 8px;\n border: 1px solid #d9d9d9;\n box-shadow: 0px 6px 16px 3px rgba(0,0,0,0.08);\n border-radius: 2px;\n background: #fff;\n max-height:48px;\n\n .","{\n font-size:12px;\n overflow:hidden;\n text-overflow: ellipsis;\n white-space:nowrap;\n }\n \n }\n\n .","{\n position: absolute;\n top:0;\n left:0;\n z-index: 9998;\n pointer-events:none;\n user-select: none;\n height: 2px;\n background: var(--primary-color);\n }\n .",':before{\n content: " ";\n position: absolute;\n width: 8px;\n height: 8px;\n top:-4px;\n border: 2px solid var(--primary-color);\n border-radius: 50%;\n background:#fff;\n }\n']),T.rowDragElement,function(e){return v(e.direction,"left")},T.rowDragElementLabel,T.rowDragLine,T.treeTableRowDragLine),Cn=Object(e.b)(d()(["\n border-top: 1px solid #cccccc;\n border-right: 1px solid #cccccc;\n border-bottom: 1px solid #cccccc;\n border-left: 1px solid #cccccc;\n\n td.",",\n th."," {\n border-",": none;\n }\n td.",",\n th."," {\n border-",": none;\n }\n\n thead tr."," th,\n tbody tr."," td {\n border-top: none;\n }\n &.has-footer tfoot tr."," td {\n border-bottom: none;\n }\n &:not(.has-footer) tbody tr."," td {\n border-bottom: none;\n }\n td.",":not(.","){\n border-",": var(---cell-border-vertical);\n }\n td.",":not(.","){\n border-",": var(---cell-border-vertical);\n }\n"]),T.first,T.first,function(e){return"rtl"===e.direction?"right":"left"},T.last,T.last,function(e){return"rtl"===e.direction?"left":"right"},T.first,T.first,T.last,T.last,T.rowSpan,T.first,function(e){return"rtl"===e.direction?"right":"left"},T.rowSpan,T.last,function(e){return"rtl"===e.direction?"left":"right"}),Pn={"--row-height":"48px","--color":"#333","--bgcolor":"white","--hover-bgcolor":"var(--hover-color, #f5f5f5)","--highlight-bgcolor":"#eee","--primary-color":"#5582F3","--primary-color-level1":"rgb(242, 248, 255)","--primary-color-level2":"rgb(135, 173, 255)","--icon-color":"#666666","--strong-border-color":"#d9d9d9","--header-row-height":"32px","--header-color":"#333","--header-bgcolor":"#f4f4f4","--header-hover-bgcolor":"#ddd","--header-highlight-bgcolor":"#e4e8ed","--cell-padding":"8px 12px","--font-size":"12px","--line-height":"1.28571","--lock-shadow":"rgba(152, 152, 152, 0.5) 0 0 6px 2px","--border-color":"#dfe3e8","--cell-border":"1px solid #dfe3e8","--cell-border-horizontal":"1px solid #dfe3e8","---cell-border-vertical":"1px solid #dfe3e8","--header-cell-border":"1px solid #dfe3e8","--cell-border-vertical":"1px solid #dfe3e8","--header-cell-border-horizontal":"1px solid #dfe3e8","--header-cell-border-vertical":"1px solid #dfe3e8"},Rn=(mn=Pn,Object.keys(mn).reduce(function(e,t){return e+="".concat(t,":").concat(mn[t],";")},"")),An=Object(e.b)(d()(["\n --cell-border-vertical: none;\n --header-cell-border-vertical: none;\n"])),Tn=Object(e.b)(d()(["\n //th隐藏列宽拖拽的背景色,使用th的右边框代替\n .","::after{\n background-color: inherit;\n }\n"]),T.tableHeaderCellResize),Dn=e.c.div(d()(["\n ","\n box-sizing: border-box;\n * {\n box-sizing: border-box;\n }\n cursor: default;\n color: var(--color);\n font-size: var(--font-size);\n line-height: var(--line-height);\n position: relative;\n\n // 表格外边框由 art-table-wrapper 提供,而不是由单元格提供\n &.use-outer-border {\n ",";\n }\n\n // 表格不启用边框线,隐藏th、td的单元格左右边框线\n &:not(.",") {\n ","\n }\n &.","{\n ","\n }\n\n .no-scrollbar {\n ::-webkit-scrollbar {\n display: none;\n }\n }\n\n ."," {\n overflow: auto;\n flex-shrink: 1;\n flex-grow: 1;\n display: flex;\n flex-direction: column;\n }\n\n ."," {\n overflow: hidden;\n background: var(--header-bgcolor);\n display: flex;\n flex-shrink: 0;\n border-bottom: var(--header-cell-border-horizontal);\n }\n\n ."," {\n display: flex;\n // justify-content: flex-start;\n align-items: center;\n height: inherit;\n }\n\n ."," {\n overflow-x:auto;\n flex-shrink: 0;\n flex-grow: 0;\n scrollbar-width: none; // 兼容火狐\n & {\n ::-webkit-scrollbar {\n display:none;\n }\n }\n }\n\n ."," {\n display: flex;\n flex: none;\n }\n .","{\n flex-grow:1;\n }\n .",", ."," {\n background: var(--bgcolor);\n overflow: auto;\n overflow-x: hidden;\n overflow-anchor: none;\n position:relative;\n &.empty {\n position: relative;\n }\n }\n\n ."," {\n position: relative;\n }\n .",", ."," {\n .","{\n background-color: #e6effb !important;\n }\n .","{\n border-top: 1px solid #0E5FD8 !important;\n }\n .","{\n border-",": 1px solid #0E5FD8 !important;\n }\n .","{\n border-bottom: 1px solid #0E5FD8 !important;\n }\n .","{\n border-",": 1px solid #0E5FD8 !important;\n }\n }\n\n ."," {\n user-select:none;\n }\n\n ."," {\n user-select:none;\n // ."," ."," >td{\n // cursor:move;\n // }\n\n // ."," ."," >td{\n // cursor:no-drop;\n // }\n \n }\n\n .","{\n opacity: 0.5;\n }\n .","{\n border: 1px solid var(--primary-color)\n }\n\n ."," td{\n border-top: 1px solid var(--primary-color) !important;\n border-bottom: 1px solid var(--primary-color) !important;\n \n }\n ."," td:first-child{\n border-",": 1px solid var(--primary-color) !important;\n \n }\n ."," td:last-child{\n border-",": 1px solid var(--primary-color) !important;\n \n }\n\n\n // ."," td{\n // border-top: 1px solid var(--primary-color) !important;\n // }\n\n ."," td{\n border-top: 1px solid var(--primary-color) !important;\n border-bottom: 1px solid var(--primary-color) !important;\n }\n\n ."," td:first-child{\n border-",": 1px solid var(--primary-color) !important;\n }\n\n ."," td:last-child{\n border-",": 1px solid var(--primary-color) !important;\n }\n\n // ."," td{\n // border-bottom: 1px solid var(--primary-color) !important;\n // }\n\n ."," {\n cursor:pointer;\n }\n\n\n &.sticky-header ."," {\n position: sticky;\n top: 0;\n z-index: ",";\n }\n\n &.sticky-footer ."," {\n position: sticky;\n bottom: 0;\n z-index: ",";\n }\n\n table {\n width: 0;\n table-layout: fixed;\n border-collapse: separate;\n border-spacing: 0;\n display: table;\n margin: 0;\n padding: 0;\n flex-shrink: 0;\n flex-grow: 0;\n position:relative;\n }\n\n // 在 tr 上设置 .no-hover 可以禁用鼠标悬停效果\n tr:not(.no-hover):hover > td {\n background: var(--hover-bgcolor);\n }\n // 使用 js 添加悬浮效果\n tr:not(.no-hover).row-hover > td {\n background: var(--hover-bgcolor);\n }\n // 在 tr 设置 highlight 可以为底下的 td 设置为高亮色\n // 而设置 .no-highlight 的话则可以禁用高亮效果;\n tr:not(.no-highlight).highlight > td {\n background: var(--highlight-bgcolor);\n }\n\n th {\n font-weight: normal;\n text-align: ",";\n padding: var(--cell-padding);\n height: var(--header-row-height);\n color: var(--header-color);\n background: var(--header-bgcolor);\n border:1px solid transparent;\n border-",": var(--header-cell-border-vertical);\n border-bottom: var(--header-cell-border-horizontal);\n position: relative;\n }\n\n th.resizeable{\n border-",": var(--header-cell-border-vertical)\n }\n\n th."," {\n border-",": var(--header-cell-border-vertical);\n border-bottom: none;\n }\n\n tr."," th {\n border-top: var(--header-cell-border-horizontal);\n }\n th."," {\n border-",": var(--header-cell-border-vertical);\n }\n\n td {\n padding: var(--cell-padding);\n background: var(--bgcolor);\n height: var(--row-height);\n border:1px solid transparent;\n border-",": var(--cell-border-vertical);\n border-bottom: var(--cell-border-horizontal);\n word-break: break-all;\n }\n td."," {\n border-",": var(--cell-border-vertical);\n }\n tr."," td {\n border-top: var(--cell-border-horizontal);\n }\n &.has-header tbody tr."," td {\n border-top: none;\n }\n &.has-footer tbody tr."," td {\n border-bottom: none;\n }\n\n .",",\n ."," {\n z-index: ",";\n }\n\n //#region 锁列阴影\n ."," {\n position: absolute;\n top: 0;\n bottom: 0;\n z-index: ",";\n pointer-events: none;\n overflow: hidden;\n\n ."," {\n height: 100%;\n }\n\n ."," {\n margin-",": ","px;\n \n box-shadow: none;\n\n &.show-shadow {\n box-shadow: var(--lock-shadow);\n border-",": var(--cell-border-vertical);\n }\n }\n\n ."," {\n margin-",": ","px;\n box-shadow: none;\n\n &.show-shadow {\n box-shadow: var(--lock-shadow);\n border-",": var(--cell-border-vertical);\n }\n }\n }\n //#endregion\n\n //#region 空表格展现\n ."," {\n pointer-events: none;\n color: #99a3b3;\n font-size: 12px;\n text-align: center;\n position: absolute;\n left: 50%;\n top: 50%;\n transform: translate(-50%, -50%);\n\n .empty-image {\n width: 50px;\n height: 50px;\n }\n\n .empty-tips {\n margin-top: 16px;\n line-height: 1.5;\n }\n }\n //#endregion\n\n //#region sticky兼容\n &.sticky-polyfill-wrapper{\n //锁定列兼容 仅在锁定列的情况下生效\n ."," {\n overflow-x: hidden;\n }\n .",", ."," {\n position:relative;\n }\n ."," {\n overflow: hidden;\n display: flex;\n }\n ."," {\n position: relative;\n }\n\n ."," {\n display: flex;\n overflow: auto;\n overflow-x: hidden;\n overflow-anchor: none;\n }\n\n .",", .","{\n position: absolute;\n z-index: ",";\n top: 0;\n }\n .","{\n ",":0;\n }\n .","{\n rig","ht:0;\n }\n\n .","{\n .","{\n position: absolute;\n top: 0;\n width: 100%;\n z-index: ",";\n }\n }\n\n tr:not(.no-hover).row-hover > td {\n background: var(--hover-bgcolor);\n }\n }\n //#endregion sticky兼容\n\n //#region 粘性滚动条\n .","{\n display:flex;\n background: var(--bgcolor);\n }\n .","{\n height: 1px;\n flex-shrink: 0;\n border-top: 1px solid var(--border-color);\n }\n\n .","{\n height: 1px;\n flex-shrink: 0;\n border-top: 1px solid var(--border-color);\n }\n ."," {\n overflow-y: hidden;\n overflow-x: auto;\n z-index: ",";\n flex-shrink: 1;\n flex-grow: 0;\n border-top: 1px solid var(--border-color);\n }\n\n ."," {\n // 必须有高度才能出现滚动条\n height: 1px;\n visibility: hidden;\n }\n //#endregion\n\n //#region 加载样式\n ."," {\n position: relative;\n width: 100%;\n height: 100%;\n overflow: auto;\n\n ."," {\n filter: none;\n width: 100%;\n height: 100%;\n overflow: hidden;//列全部固定时,存在双横向滚动条\n display: flex;\n position: relative;\n flex-direction: column;\n }\n\n ."," {\n position: absolute;\n left: 0;\n right: 0;\n top: 0;\n bottom: 0;\n pointer-events: none;\n }\n\n ."," {\n position: sticky;\n z-index: ",";\n transform: translateY(-50%);\n }\n }\n //#endregion\n\n //#region 表格过滤\n ."," {\n color:var(--icon-color);\n &.active{\n color:var(--primary-color);\n }\n padding: 6px 4px;\n &:hover{\n background-color: #e5e5e5;\n }\n &:focus {\n outline: none\n }\n }\n //#endregion\n\n //#region 表格排序\n ."," {\n color:var(--icon-color);\n &.active{\n color:var(--primary-color);\n }\n }\n ."," {\n color:var(--icon-color);\n &.active{\n color:var(--primary-color);\n }\n }\n //#endregion\n\n //#region 滚动条占位\n ."," {\n // visibility: hidden;\n background: var(--header-bgcolor);\n position:sticky;\n z-index:5;\n ",":0px;\n flex-shrink: 0;\n }\n ."," ."," {\n border-top: var(--cell-border-horizontal);\n }\n //#endregion\n\n //#region 拖拽列宽大小\n .","::after{\n background-color: var(--border-color);\n }\n //解决部分浏览器(chrome109)最后一个单元格的列宽拖拽区域绝对定位超出表格,导致表格竖分割线无法对齐\n ."," th."," .","{\n ",": 0;\n width: 5px;\n &::after{\n ",": 4px;\n }\n }\n"]),function(e){e=e.prefixCls;return e?"&.".concat(e,"-table {:root {").concat(Rn,"} ").concat(Rn,"}"):":root {".concat(Rn,"} ").concat(Rn)},Cn,T.artTableBordered,An,T.artTableBordered,Tn,T.artTable,T.tableHeader,T.tableHeaderCellContent,T.virtual,T.tableFooter,T.tableBody,T.tableBody,T.tableFooter,T.tableRow,T.tableBody,T.tableFooter,T.tableCellRangeSelected,T.tableCellRangeTop,T.tableCellRangeLeft,function(e){return v(e.direction,"left")},T.tableCellRangeBottom,T.tableCellRangeRight,function(e){return v(e.direction,"right")},T.rangeSelection,T.rowDragging,T.tableBody,T.tableRow,T.tableFooter,T.tableRow,T.rowDragStart,T.rowDragNoData,T.rowDragEndParent,T.rowDragEndParent,function(e){return v(e.direction,"left")},T.rowDragEndParent,function(e){return v(e.direction,"right")},T.rowDragEndToTop,T.rowDragEndInto,T.rowDragEndInto,function(e){return v(e.direction,"left")},T.rowDragEndInto,function(e){return v(e.direction,"right")},T.rowDragEndToBottom,T.rowDragCell,T.tableHeader,wn,T.tableFooter,xn,function(e){return v(e.direction,"left")},function(e){return v(e.direction,"right")},function(e){return v(e.direction,"right")},T.leaf,function(e){return v(e.direction,"right")},T.first,T.first,function(e){return v(e.direction,"left")},function(e){return v(e.direction,"right")},T.first,function(e){return v(e.direction,"left")},T.first,T.first,T.last,T.lockLeft,T.lockRight,p,T.lockShadowMask,Sn,T.lockShadow,T.leftLockShadow,function(e){return v(e.direction,"right")},20,function(e){return v(e.direction,"right")},T.rightLockShadow,function(e){return v(e.direction,"left")},20,function(e){return v(e.direction,"left")},T.emptyWrapper,T.virtual,T.tableBody,T.tableFooter,T.tableHeaderMain,T.tableHeader,T.tableFooterMain,T.fixedLeft,T.fixedRight,p,T.fixedLeft,function(e){return v(e.direction,"left")},T.fixedRight,function(e){return v(e.direction,"right")},T.rowDetailContainer,T.rowDetailItem,On,T.horizontalStickyScrollContainer,T.horizontalScrollLeftSpacer,T.horizontalScrollRightSpacer,T.stickyScroll,En,T.stickyScrollItem,T.loadingWrapper,T.loadingContentWrapper,T.loadingIndicatorWrapper,T.loadingIndicator,kn,T.tableFilterTrigger,T.tableSortIcon,T.tableExtendIcon,T.verticalScrollPlaceholder,function(e){return v(e.direction,"right")},T.tableFooter,T.verticalScrollPlaceholder,T.tableHeaderCellResize,T.tableHeaderRow,T.last,T.tableHeaderCellResize,function(e){return v(e.direction,"right")},function(e){return v(e.direction,"left")}),Cn=Object(e.b)(d()(["\n ","\n .","{\n color: var(--color);\n background:#ffffff;\n border:1px solid var(--strong-border-color);\n border-radius: 2px;\n cursor: pointer;\n &:hover{\n color: var(--primary-color);\n border:1px solid var(--primary-color);\n }\n }\n ."," {\n color:#ffffff;\n background-color: var(--primary-color);\n border:none;\n &:hover{\n color:#ffffff;\n background-color: var(--primary-color-level2);\n border:none;\n }\n }\n"]),Rn,T.button,T.buttonPrimary);function In(e){if(e.deepPath)return e.deepPath();if(e.path)return e.path;if(e.composedPath)return e.composedPath();for(var t=[],n=e.target;n;)t.push(n),n=n.parentElement;return t}function _n(e,t){return!(!e||!t)&&0<=In(t).indexOf(e)}function Mn(e,t){for(var n,r=0;!n&&r<e.length;){var o=e[r];t(o)&&(n=o),r++}return n}function Ln(e,t){var n=t.getBoundingClientRect(),r=document.documentElement.getBoundingClientRect();return{x:e.clientX-(t===document.body?r:n).left,y:e.clientY-(t===document.body?r:n).top}}function Nn(e,t,n,r){var e=e.getBoundingClientRect(),t=(t===document.body?document.documentElement:t).getBoundingClientRect(),o=n?n.x:0,n=n?n.y:0;return{x:e.left-t.left+("rtl"===r?o+e.width:-o),y:e.top-t.top-n}}function Fn(e,t,n,r,o){var i,a=e.getBoundingClientRect(),c=document.documentElement,l=c.getBoundingClientRect(),t=t.getBoundingClientRect(),s=a.width,u=a.height,e=e===document.body;return e&&(s=l.width-Math.abs(l.left-a.left),u=l.height+c.scrollTop-Math.abs(l.top-a.top)),n&&(l=t.width,s=(a={x:n,maxX:s-l,width:l,isPerfectX:o}).x,l=a.maxX,i=a.width,n=(a=a.isPerfectX)&&Math.max(s,0)>Math.abs(l)&&i<=s?s-i:Math.min(Math.max(s,0),Math.abs(l))),r&&(a=t.height,i={y:r,maxY:u-a,height:a,scrollTop:c.scrollTop,isBody:e,isPerfectY:o},s=i.y,l=i.maxY,t=i.height,u=i.scrollTop,a=i.isBody,r=(i=i.isPerfectY)&&Math.max(s,0)>Math.abs(l)&&t<=(a?s-u:s)?s-t:Math.min(Math.max(s,0),Math.abs(l))),{x:n,y:r}}function Hn(e,t){var n,r,o,i,a="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(a)return r=!(n=!0),{s:function(){a=a.call(e)},n:function(){var e=a.next();return n=e.done,e},e:function(e){r=!0,o=e},f:function(){try{n||null==a.return||a.return()}finally{if(r)throw o}}};if(Array.isArray(e)||(a=function(e,t){var n;if(e)return"string"==typeof e?zn(e,t):"Map"===(n="Object"===(n=Object.prototype.toString.call(e).slice(8,-1))&&e.constructor?e.constructor.name:n)||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?zn(e,t):void 0}(e))||t&&e&&"number"==typeof e.length)return a&&(e=a),i=0,{s:t=function(){},n:function(){return i>=e.length?{done:!0}:{done:!1,value:e[i++]}},e:function(e){throw e},f:t};throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function zn(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}var Bn="v3"==(null!=e.a?"v5":"v3")?"innerRef":"ref",Wn=100;function Kn(e){var t=0;return e.forEach(function(e){t+=e}),t}Vn=function(){return A(window,"resize",{passive:!0}).pipe((t=150,void 0===(n=ze)&&(n=Be),void 0===(r={leading:!0,trailing:!0})&&(r=Nt),function(e){return e.lift(new Ft(t,n,r.leading,r.trailing))}));var t,n,r};var Vn,$n,Gn=new s(function(t){var e;try{e=Vn()}catch(e){return void t.error(e)}return(e?Le(e):Je()).subscribe(t)}),Yn=function(e,n){var t=new Bt.a(function(e){var t;e[0]&&e[0].contentRect&&(t=0===(e=e[0].contentRect).width&&0===e.height,t=O()({hide:t},e),n)&&n(t)});return t&&t.observe(e),t};function Un(){var e=document.createElement("div"),t=(e.style.position="absolute",e.style.width="100px",e.style.height="100px",e.style.overflow="scroll",e.style.top="-9999px",document.body.appendChild(e),e.offsetWidth-e.clientWidth),n=e.offsetHeight-e.clientHeight;return document.body.removeChild(e),{width:t,height:n}}function qn(c,l){var s=new Set;var t,n=new u,r=Hn(c);try{var e=function(){function e(){if(s.has(a))s.delete(a);else{var e=a.scrollLeft;if(0!==e||function(e,t){return!(1<arguments.length&&void 0!==t)||t?e.scrollWidth>e.clientWidth:e.scrollHeight>e.clientHeight}(a)){var t=a,n=e;s.clear();var r,o=Hn(c);try{for(o.s();!(r=o.n()).done;){var i=r.value;i!==t&&(i.scrollLeft=n,s.add(i))}}catch(e){o.e(e)}finally{o.f()}l(e)}}}var a=t.value;a.addEventListener("scroll",e,{passive:!0}),n.add(function(){return a.removeEventListener("scroll",e)})};for(r.s();!(t=r.n()).done;)e()}catch(e){r.e(e)}finally{r.f()}return n}function Xn(e,t){var n=Object.prototype.hasOwnProperty;if(!Object.is(e,t)){if("object"!==F()(e)||null===e||"object"!==F()(t)||null===t)return!1;var r=Object.keys(e),o=Object.keys(t);if(r.length!==o.length)return!1;for(var i=0;i<r.length;i++)if(!n.call(t,r[i])||!Object.is(e[r[i]],t[r[i]]))return!1}return!0}function Zn(n,r){return Object.keys(r).length?function(e,t){return j(n(e,t),r)}:n}function Jn(e){return bn()?e.tableFooterMain:e.tableFooter}function Qn(e){var t=e.variables,n=e.enableCSSVariables,e=e.bordered;!1!==n&&(n={},e||(n["--cell-border-vertical"]="none",n["--header-cell-border-vertical"]="none"),fn({include:"style[data-styled]",variables:O()({},Pn,t,n),watch:!0,silent:!0}))}var v=function(e,t){e="rtl"===e;return"left"===t&&e?"right":"right"===t&&e?"left":t};function er(t,e){var n,r=Object.keys(t);return Object.getOwnPropertySymbols&&(n=Object.getOwnPropertySymbols(t),e&&(n=n.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})),r.push.apply(r,n)),r}function tr(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?er(Object(n),!0).forEach(function(e){S()(t,e,n[e])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):er(Object(n)).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))})}return t}function nr(e,t){var n,r,o,i,a="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(a)return r=!(n=!0),{s:function(){a=a.call(e)},n:function(){var e=a.next();return n=e.done,e},e:function(e){r=!0,o=e},f:function(){try{n||null==a.return||a.return()}finally{if(r)throw o}}};if(Array.isArray(e)||(a=function(e,t){var n;if(e)return"string"==typeof e?rr(e,t):"Map"===(n="Object"===(n=Object.prototype.toString.call(e).slice(8,-1))&&e.constructor?e.constructor.name:n)||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?rr(e,t):void 0}(e))||t&&e&&"number"==typeof e.length)return a&&(e=a),i=0,{s:t=function(){},n:function(){return i>=e.length?{done:!0}:{done:!1,value:e[i++]}},e:function(e){throw e},f:t};throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function rr(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function or(e,t){return null==e||"auto"===e?t:e}var ir=!1;function ar(e,l){return null!=e&&Array.isArray(e)||(Tt.warn("<BaseTable /> props.columns 需要传入一个数组",e),e=[]),function e(t){var n,r,o=[],i=nr(t);try{for(i.s();!(n=i.n()).done;){var a,c=n.value;_(c=null==c.width&&null!=l?tr(tr({},c),{},{width:l}):c)?c.hidden?(r=c,ir||(ir=!0,Tt.warn("column.hidden 已经过时,如果需要隐藏该列,请将其从 columns 数组中移除",r))):o.push(c):0<(a=e(c.children)).length&&o.push(tr(tr({},c),{},{children:a}))}}catch(e){i.e(e)}finally{i.f()}return o}(e)}function cr(e){var t,n=0,r=nr(e);try{for(r.s();!(t=r.n()).done;){if(!o(t.value))break;n+=1}}catch(e){r.e(e)}finally{r.f()}return n;function o(e){return _(e)?e.lock:e.lock||e.children.some(o)}}function lr(e){for(var t,n,r,o=e.state,i=o.offsetX,o=o.maxRenderWidth,a=e.props,c=a.useVirtual,l=a.columns,s=a.dataSource,l=ar(l,a.defaultColumnWidth),a=cr(l),u=M(l,"leaf-only"),f=(a===l.length?t={horizontal:!(r={left:[],right:[],full:l,center:l}),vertical:!(n={left:[],right:[],full:u,center:u}),header:!1}:(p=l.slice(0,a),O=cr(l.slice().reverse()),a=l.slice(a,l.length-O),O=l.slice(l.length-O),f=100<=u.length&&u.every(function(e){return null!=e.width}),s=100<=s.length,t={horizontal:or("object"===F()(c)?c.horizontal:c,f),vertical:or("object"===F()(c)?c.vertical:c,s),header:or("object"===F()(c)?c.header:c,!1)},n={left:M(p,"leaf-only"),full:u,right:M(O,"leaf-only"),center:M(a,"leaf-only")},r={left:p,full:l,right:O,center:a}),function(e){var t=e.offsetX,n=e.maxRenderWidth,r=e.flat;if(!e.useVirtual.horizontal)return{leftIndex:0,leftBlank:0,rightIndex:r.full.length,rightBlank:0};for(var o=0,i=0,a=0,c=0,l=Math.max(0,t-Wn);o<r.center.length;){var s=r.center[o];if(!(s.width+a<l))break;o+=1,a+=s.width}for(var u=n+(l-a)+2*Wn;o+i<r.center.length;){var f=r.center[o+i];if(!(c<u))break;c+=f.width,i+=1}return e=r.center.length-o-i,{leftIndex:o,leftBlank:a,rightIndex:o+i,rightBlank:Kn(r.center.slice(r.center.length-e).map(function(e){return e.width}))}}({maxRenderWidth:o,offsetX:i,useVirtual:t,flat:n})),s=e.getVerticalRenderRange(t),c=f.leftBlank,d=f.leftIndex,u=f.rightBlank,p=f.rightIndex,l=[].concat(I()(n.left.map(function(e,t){return{type:"normal",col:e,colIndex:t}})),[0<c&&{type:"blank",blankSide:"left",width:c}],I()(n.center.slice(d,p).map(function(e,t){return{type:"normal",col:e,colIndex:n.left.length+d+t}})),[0<u&&{type:"blank",blankSide:"right",width:u}],I()(n.right.map(function(e,t){return{type:"normal",col:e,colIndex:n.full.length-n.right.length+t}}))).filter(Boolean),h=n.full.length,v=n.left.length,g=n.right.length,y=new Map,b=0,m=0;m<v;m++)y.set(m,b),b+=n.full[m].width;for(var w=new Map,x=0,S=0;S<g;S++)w.set(h-1-S,x),x+=n.full[h-1-S].width;var O=Kn(n.left.map(function(e){return e.width})),a=Kn(n.right.map(function(e){return e.width}));return{horizontalRenderRange:f,verticalRenderRange:s,visible:l,flat:n,nested:r,useVirtual:t,stickyLeftMap:y,stickyRightMap:w,leftLockTotalWidth:O,rightLockTotalWidth:a,hasLockColumn:0<r.left.length||0<r.right.length}}function sr(e){e=e.descriptors;return x.a.createElement("colgroup",null,e.map(function(e){return"blank"===e.type?x.a.createElement("col",{key:e.blankSide,style:{width:e.width}}):x.a.createElement("col",{key:e.colIndex,style:{width:e.col.width}})}))}var ur=x.a.memo(function(){return x.a.createElement(x.a.Fragment,null,x.a.createElement("img",{alt:"empty-image",className:"empty-image",src:"//img.alicdn.com/tfs/TB1l1LcM3HqK1RjSZJnXXbNLpXa-50-50.svg"}),x.a.createElement("div",{className:"empty-tips"},"没有符合查询条件的数据",x.a.createElement("br",null),"请修改条件后重新查询"))});function fr(e){var t=e.descriptors,n=e.isLoading,r=e.emptyCellHeight,e=e.EmptyContent,e=void 0===e?ur:e,n=!n;return x.a.createElement(y.Fragment,null,x.a.createElement("table",{key:"table"},x.a.createElement(sr,{descriptors:t}),x.a.createElement("tbody",null,x.a.createElement("tr",{className:P()(T.tableRow,T.first,T.last,"no-hover"),"data-rowindex":0},x.a.createElement("td",{className:P()(T.tableCell,T.first,T.last),colSpan:t.length,style:{height:null!=r?r:200}})))),n&&x.a.createElement("div",{className:T.emptyWrapper,key:"empty"},x.a.createElement(e,null)))}function dr(e,t){var n,r,o,i,a="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(a)return r=!(n=!0),{s:function(){a=a.call(e)},n:function(){var e=a.next();return n=e.done,e},e:function(e){r=!0,o=e},f:function(){try{n||null==a.return||a.return()}finally{if(r)throw o}}};if(Array.isArray(e)||(a=function(e,t){var n;if(e)return"string"==typeof e?pr(e,t):"Map"===(n="Object"===(n=Object.prototype.toString.call(e).slice(8,-1))&&e.constructor?e.constructor.name:n)||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?pr(e,t):void 0}(e))||t&&e&&"number"==typeof e.length)return a&&(e=a),i=0,{s:t=function(){},n:function(){return i>=e.length?{done:!0}:{done:!1,value:e[i++]}},e:function(e){throw e},f:t};throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function pr(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function hr(e){var a=-1;return function e(t,n){var r,o=dr(t);try{for(o.s();!(r=o.n()).done;){var i=r.value;_(i)?a=Math.max(a,n):e(i.children,n+1)}}catch(e){o.e(e)}finally{o.f()}}(e,0),a}function vr(t,e){var n,r=Object.keys(t);return Object.getOwnPropertySymbols&&(n=Object.getOwnPropertySymbols(t),e&&(n=n.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})),r.push.apply(r,n)),r}function gr(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?vr(Object(n),!0).forEach(function(e){S()(t,e,n[e])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):vr(Object(n)).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))})}return t}function yr(e,t){var n,r,o,i,a="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(a)return r=!(n=!0),{s:function(){a=a.call(e)},n:function(){var e=a.next();return n=e.done,e},e:function(e){r=!0,o=e},f:function(){try{n||null==a.return||a.return()}finally{if(r)throw o}}};if(Array.isArray(e)||(a=function(e,t){var n;if(e)return"string"==typeof e?br(e,t):"Map"===(n="Object"===(n=Object.prototype.toString.call(e).slice(8,-1))&&e.constructor?e.constructor.name:n)||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?br(e,t):void 0}(e))||t&&e&&"number"==typeof e.length)return a&&(e=a),i=0,{s:t=function(){},n:function(){return i>=e.length?{done:!0}:{done:!1,value:e[i++]}},e:function(e){throw e},f:t};throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function br(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function mr(e,u,f){return function e(t,n){var r=0;var o=[];var i,a=yr(t);try{for(a.s();!(i=a.n()).done;){var c,l=i.value,s=n+r;_(l)?(r+=1,f+u.leftIndex<=s&&s<f+u.rightIndex&&o.push({colIndex:s,col:l})):(c=e(l.children,s),r+=c.leafCount,0<c.filtered.length&&o.push({colIndex:s,col:l,children:c.filtered}))}}catch(e){a.e(e)}finally{a.f()}return{filtered:o,leafCount:r}}(e,f).filtered}function wr(e,t){for(var c=[],n=0;n<t;n++)c.push([]);var l=[];return function e(t,n){var r=0;for(var o=0;o<t.length;o++){var i,a=t[o];_(a)?(r+=1,i={type:"normal",width:a.col.width,col:a.col,colIndex:a.colIndex,colSpan:1,isLeaf:!0},c[n].push(i),l.push(i)):(i=e(a.children,n+1),r+=i.leafCount,0<i.leafCount&&c[n].push({type:"normal",width:a.col.width,col:a.col,colIndex:a.colIndex,colSpan:i.leafCount,isLeaf:!1}))}return{leafCount:r}}(e,0),{flat:l,leveled:c}}function xr(e,t){return function e(t,n){var r=[];var o=0;for(var i=0;i<t.length;i++){var a,c=t[i],l=n+o;_(c)?(o+=1,r.push({colIndex:l,col:c})):(a=e(c.children,l),o+=a.leafCount,0<a.leafCount&&r.push({col:c,colIndex:l,children:a.result}))}return{result:r,leafCount:o}}(e,t).result}function Sr(e,t){var n,r,o,i=e.flat,a=e.nested,c=e.horizontalRenderRange;return e.useVirtual.header?(n=wr(xr(a.left,0),t),r=wr(mr(a.center,c,i.left.length),t),o=wr(xr(a.right,i.left.length+i.center.length),t),{flat:[].concat(I()(n.flat),[{type:"blank",width:c.leftBlank,blankSide:"left"}],I()(r.flat),[{type:"blank",width:c.rightBlank,blankSide:"right"}],I()(o.flat)),leveled:function(e){for(var t=[],n=0;n<e;n++)t.push(n);return t}(t).map(function(e){return[].concat(I()(n.leveled[e]),[{type:"blank",width:c.leftBlank,blankSide:"left"}],I()(r.leveled[e]),[{type:"blank",width:c.rightBlank,blankSide:"right"}],I()(o.leveled[e]))})}):wr(xr(a.full,0),t)}function Or(e){var t=e.info,f=e.theaderPosition,n=e.rowCount,d=e.stickyRightOffset,e=t.nested,r=t.flat,p=t.stickyLeftMap,h=t.stickyRightMap,v=t.direction,g=null!=n?n:hr(e.full)+1,n=Sr(t,g),y=r.full.length,b=r.left.length,m=r.right.length,e=n.leveled.map(function(e,u){var t,e=e.concat(),e=(1<g&&-1<["left","right"].indexOf(f)&&e.push({type:"blank",blankSide:"left",width:1,isPlacehoder:!0}),e.map(function(e,t){var n,r,o,i,a,c,l,s;return"normal"===e.type?(r=e.colIndex,o=e.colSpan,i=e.isLeaf,c=null!=(c=(a=e.col).headerCellProps)?c:{},l={},r<b?(l.position="sticky","rtl"===v?l.right=p.get(r):l.left=p.get(r)):y-m<=r&&(l.position="sticky",s=1<o?r+o-1:r,"rtl"===v?l.left=h.get(s)+("number"==typeof d?d:0):l.right=h.get(s)+("number"==typeof d?d:0)),s="right"===a.align?"flex-end":"center"===a.align?"center":"flex-start",x.a.createElement("th",O()({key:r},c,{className:P()(T.tableHeaderCell,c.className,(n={},S()(n,T.first,0===r),S()(n,T.last,r+o===y),S()(n,T.lockLeft,r<b||"left"===f),S()(n,T.lockRight,y-m<=r||"right"===f),S()(n,T.leaf,e.isLeaf),n)),colSpan:o,rowSpan:i?g-u:void 0,style:gr(gr({textAlign:a.align,verticalAlign:null!=(r=a.verticalAlign)?r:"middle"},c.style),l),"data-code":a.code}),"center"===f&&"sticky"===l.position?null:x.a.createElement("div",{className:T.tableHeaderCellContent,style:{justifyContent:s}},null!=(n=a.title)?n:a.name))):0<e.width?x.a.createElement("th",{key:e.blankSide,style:{visibility:e.isPlacehoder?"hidden":void 0}}):null}));return x.a.createElement("tr",{key:u,className:P()(T.tableHeaderRow,(t={},S()(t,T.first,0===u),S()(t,T.last,u===g-1),t))},e)}),t=n.flat.map(function(e){return"blank"===e.type?0<e.width?x.a.createElement("col",{key:e.blankSide,style:{width:e.width}}):null:x.a.createElement("col",{key:e.colIndex,style:{width:e.width}})});return x.a.createElement("table",null,x.a.createElement("colgroup",null,t),x.a.createElement("thead",null,e))}t(127),t(196);function Er(e){return e?(e.nodeName||"").toLowerCase():null}function kr(e){var t;return null==e?window:"[object Window]"!==e.toString()?(t=e.ownerDocument)&&t.defaultView||window:e}function jr(e){return kr(e).getComputedStyle(e)}function Cr(e){return e instanceof kr(e).HTMLElement||e instanceof HTMLElement}function Pr(e){return"undefined"!=typeof ShadowRoot&&(e instanceof kr(e).ShadowRoot||e instanceof ShadowRoot)}function Rr(e){return(((t=e)instanceof kr(t).Element||t instanceof Element?e.ownerDocument:e.document)||window.document).documentElement;var t}function Ar(e){return"html"===Er(e)?e:e.assignedSlot||e.parentNode||(Pr(e)?e.host:null)||Rr(e)}function Tr(){var e=navigator.userAgentData;return null!=e&&e.brands?e.brands.map(function(e){return e.brand+"/"+e.version}).join(" "):navigator.userAgent}function Dr(e){return Cr(e)&&"fixed"!==jr(e).position?e.offsetParent:null}function Ir(e){for(var t,n=kr(e),r=Dr(e);r&&(t=r,0<=["table","td","th"].indexOf(Er(t)))&&"static"===jr(r).position;)r=Dr(r);return(!r||"html"!==Er(r)&&("body"!==Er(r)||"static"!==jr(r).position))&&(r||function(e){var t=/firefox/i.test(Tr()),n=/Trident/i.test(Tr());if(!n||!Cr(e)||"fixed"!==jr(e).position){var r=Ar(e);for(Pr(r)&&(r=r.host);Cr(r)&&["html","body"].indexOf(Er(r))<0;){var o=jr(r);if("none"!==o.transform||"none"!==o.perspective||"paint"===o.contain||-1!==["transform","perspective"].indexOf(o.willChange)||t&&"filter"===o.willChange||t&&o.filter&&"none"!==o.filter)return r;r=r.parentNode}}return null}(e))||n}function _r(e){return"[object Window]"===e.toString()||"[object global]"===e.toString()}function Mr(e){return"html"===Er(e)||"body"===Er(e)}function Lr(e,t,n){for(var r=0,o=e;null!=o&&(r+=o[n],!(o===t||_r(t)&&Mr(o)));)o=o.parentElement;return _r(t)&&(r+={scrollLeft:(e=kr(e=o)).pageXOffset,scrollTop:e.pageYOffset}[n]),r}function Nr(e,t){if(_r(t)||Mr(t))return{left:0,right:window.innerWidth,top:0,bottom:window.innerHeight};for(var n=0,r=0,o=t;null!=o&&o!=e;){r+=o.offsetTop,n+=o.offsetLeft;var i=Ir(o);if(r-=Lr(o.parentElement,i,"scrollTop"),n-=Lr(o.parentElement,i,"scrollLeft"),_r(i))break;r+=i.clientTop,n+=i.clientLeft,o=i}return{top:r,bottom:r+t.offsetHeight,left:n,right:n+t.offsetWidth}}function Fr(e,t){return _r(t)||function(e){var t=[],n=e;for(;;){if(_r(n))break;n=Ir(n),t.push(n)}return t}(e).includes(t)?t:Ir(t)}function Hr(n){return _r(n)?A(n,"resize",{passive:!0}):new s(function(t){var e=new Bt.a(function(e){t.next(e)});return e.observe(n),function(){e.disconnect()}})}function zr(e){var t,n,r;return["html","body","#document"].includes(Er(e))?kr(e):Cr(e)&&(n=(t=jr(t=e)).overflow,r=t.overflowX,t=t.overflowY,/auto|scroll|overlay|hidden/.test(n+t+r))?e:zr(Ar(e))}function Br(r,e,t){return e.pipe(Ye(r),st(Xn),mt("init"),R(function(){var e=zr(Ar(r));return{scrollParent:e,commonOffsetAncestor:Fr(r,e)}}),st(Xn),kt(function(e){t&&console.log("%c[ali-react-table STRUCTURE ".concat(t,"]"),"color: #4f9052; font-weight: bold","\ntarget:",r,"\nscrollParent:",e.scrollParent,"\ncommonOffsetAncestor:",e.commonOffsetAncestor)}),Pt(function(e){var t=e.scrollParent,n=e.commonOffsetAncestor;return function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var n=Number.POSITIVE_INFINITY,r=null,o=e[e.length-1];return me(o)?(r=e.pop(),1<e.length&&"number"==typeof e[e.length-1]&&(n=e.pop())):"number"==typeof o&&(n=e.pop()),null===r&&1===e.length&&e[0]instanceof s?e[0]:yt(n)(Te(e,r))}(A(t,"scroll",{passive:!0}),Hr(t),Hr(r)).pipe(R(function(e){return{targetRect:Nr(n,r),scrollParentRect:Nr(n,t),event:e}}),R(function(e){var t=e.event,n=e.scrollParentRect,e=e.targetRect;return{event:t,targetRect:e,scrollParentRect:n,offsetY:Math.max(0,n.top-e.top),clipRect:{left:Math.max(e.left,n.left),top:Math.max(e.top,n.top),right:Math.min(e.right,n.right),bottom:Math.min(e.bottom,n.bottom)}}}))}),kt(function(e){t&&console.log("%c[ali-react-table RECTS ".concat(t,"]"),"color: #4f9052; font-weight: bold","\noffsetY:",e.offsetY,"\ntargetRect:",e.targetRect,"\nscrollParentRect:",e.scrollParentRect,"\nclipRect:",e.clipRect,"\nevent:",e.event)}))}t(276);function Wr(t,e){var n,r=Object.keys(t);return Object.getOwnPropertySymbols&&(n=Object.getOwnPropertySymbols(t),e&&(n=n.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})),r.push.apply(r,n)),r}function Kr(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?Wr(Object(n),!0).forEach(function(e){S()(t,e,n[e])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):Wr(Object(n)).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))})}return t}function Vr(e,u){var f=new Array(e).fill(u);return{getRenderRange:function(e,t,c){var n,r,o,i;return f.length!==c&&((o=c)<f.length?f.length=o:(i=f.length,f.length=o,f.fill(u,i))),t<=0?e<=0?(i=l(0,o={topIndex:0,topBlank:0}),Kr(Kr({},o),i)):(n=s(c),r=a(n),n=l(n,r),Kr(Kr({},r),n)):(r=a(e),n=l(e+t,r),Kr(Kr({},r),n));function a(e){if(0===f.length)return{topIndex:0,topBlank:0};for(var t=0,n=0;t<f.length;){var r=f[t];if(e<=n+r)break;n+=r,t+=1}for(var o=t,i=n,a=0,c=0;c<o&&a<Wn;)a+=f[o-(c+=1)];return{topIndex:o-c,topBlank:i-a}}function l(e,t){for(var n=t.topIndex,r=t.topBlank;n<c&&r<e;)r+=f[n],n+=1;for(var t=s(c)-r,o=n,i=0,a=0;a<c-o&&i<Wn;)i+=f[o+a],a+=1;return{bottomIndex:o+a,bottomBlank:t-i}}function s(e){return Kn(f)+(e-f.length)*u}},updateRow:function(e,t,n){f[e]=n},cache:f}}var $r=function(){function n(e){var r=this,t=(i()(this,n),S()(this,"artTableWrapper",void 0),S()(this,"artTable",void 0),S()(this,"tableHeader",void 0),S()(this,"tableBody",void 0),S()(this,"virtual",void 0),S()(this,"tableElement",void 0),S()(this,"tableFooter",void 0),S()(this,"stickyScroll",void 0),S()(this,"stickyScrollItem",void 0),S()(this,"tableHeaderMain",void 0),S()(this,"tableFooterMain",void 0),S()(this,"getRowNodeListByEvent",function(e){var t=null,n=e.currentTarget.dataset.rowindex;return t=void 0!==n?(r.tableBody.contains(e.currentTarget)?r.tableBody:r.tableFooter).querySelectorAll('tr[data-rowindex="'.concat(n,'"]')):t}),S()(this,"getInRangeRowByCellEvent",function(e){function n(e,t){return e.parentNode.nodeName===t?e.parentNode:n(e.parentNode,t)}var t=null==(t=e=e instanceof Array?e[0]:e)?void 0:t.currentTarget,r=n(t,"TR"),e=parseInt(e.currentTarget.getAttribute("rowspan"))||1,t=null==(t=n(t,"TABLE"))?void 0:t.rows;return Array.from(t).slice(r.rowIndex,r.rowIndex+e)}),this.artTableWrapper=e,this.artTable=e.querySelector(".".concat(T.artTable)),this.tableHeader=this.artTable.querySelector(".".concat(T.tableHeader)),this.tableHeaderMain=this.artTable.querySelector(".".concat(T.tableHeaderMain)),this.tableBody=this.artTable.querySelector(".".concat(T.tableBody)),this.virtual=this.artTable.querySelector(".".concat(T.virtual)),this.tableElement=this.artTable.querySelector(".".concat(T.tableBody," table")),this.tableFooter=this.artTable.querySelector(".".concat(T.tableFooter)),this.tableFooterMain=this.artTable.querySelector(".".concat(T.tableFooterMain)),".".concat(T.artTable," + .").concat(T.horizontalStickyScrollContainer," .").concat(T.stickyScroll)),e=e.querySelectorAll(t);this.stickyScroll=e[e.length-1],this.stickyScrollItem=this.stickyScroll.querySelector(".".concat(T.stickyScrollItem))}return r()(n,[{key:"getVirtualTop",value:function(){return this.tableBody.querySelector(".".concat(T.virtualBlank,".top"))}},{key:"getTableRows",value:function(){return this.artTable.querySelector(".".concat(T.tableBody," .").concat(T.virtual," table tbody")).childNodes}},{key:"getTableBodyHtmlTable",value:function(){return this.artTable.querySelector(".".concat(T.tableBody," .").concat(T.virtual," table"))}},{key:"getLeftLockShadow",value:function(){var e=".".concat(T.lockShadowMask," .").concat(T.leftLockShadow),e=this.artTable.querySelectorAll(e);return e[e.length-1]}},{key:"getRightLockShadow",value:function(){var e=".".concat(T.lockShadowMask," .").concat(T.rightLockShadow),e=this.artTable.querySelectorAll(e);return e[e.length-1]}},{key:"getLoadingIndicator",value:function(){return this.artTableWrapper.querySelector(".".concat(T.loadingIndicator))}},{key:"getRowTop",value:function(e){return 0===e?0:(e=".".concat(T.tableBody," .").concat(T.tableRow,'[data-rowindex="').concat(e,'"]'),((e=this.artTable.querySelector(e))&&e.offsetTop||0)+(this.tableElement.offsetTop||0))}}]),n}();function Gr(t,e){var n,r=Object.keys(t);return Object.getOwnPropertySymbols&&(n=Object.getOwnPropertySymbols(t),e&&(n=n.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})),r.push.apply(r,n)),r}function Yr(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?Gr(Object(n),!0).forEach(function(e){S()(t,e,n[e])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):Gr(Object(n)).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))})}return t}var Ur=function(){function n(e){var t=1<arguments.length&&void 0!==arguments[1]?arguments[1]:{};i()(this,n),S()(this,"state",{lastScrollTime:0,scrollVelocity:0,lastOffsetY:0}),S()(this,"isFastScrolling",!1),S()(this,"fastScrollEndTimer",void 0),S()(this,"config",void 0),S()(this,"callbacks",void 0),this.callbacks=e,this.config=Yr({overscanSize:100,velocityThreshold:3,distanceMultiplier:3,fastScrollEndDelayHigh:200,fastScrollEndDelayNormal:150,highVelocityThreshold:5},t)}return r()(n,[{key:"isNearBottom",value:function(e,t,n){return n-e-t<t}},{key:"handleScrollEvent",value:function(e,t,n,r){var o=performance.now(),i=Math.abs(e.offsetY-this.state.lastOffsetY),a=o-this.state.lastScrollTime,a=(this.state.scrollVelocity=0<a?i/a:0,this.isNearBottom(e.offsetY,e.maxRenderHeight,r));this.isFastScrolling&&a?this.endFastScrolling(e):(r=i>this.config.overscanSize*this.config.distanceMultiplier,i=this.state.scrollVelocity>this.config.velocityThreshold,!r&&!i||this.isFastScrolling||a||this.startFastScrolling(t,n),this.isFastScrolling&&this.resetFastScrollEndTimer(e),this.state.lastOffsetY=e.offsetY,this.state.lastScrollTime=o)}},{key:"startFastScrolling",value:function(e,t){this.isFastScrolling=!0;t=this.callbacks.getCurrentRenderRange(e.offsetY,e.maxRenderHeight,t);this.callbacks.onFastScrollStart({offsetY:e.offsetY,maxRenderHeight:e.maxRenderHeight,maxRenderWidth:e.maxRenderWidth,verticalRenderRange:t})}},{key:"resetFastScrollEndTimer",value:function(e){var t=this,n=(this.fastScrollEndTimer&&clearTimeout(this.fastScrollEndTimer),this.state.scrollVelocity>this.config.highVelocityThreshold?this.config.fastScrollEndDelayHigh:this.config.fastScrollEndDelayNormal);this.fastScrollEndTimer=window.setTimeout(function(){t.endFastScrolling(e)},n)}},{key:"endFastScrolling",value:function(e){this.isFastScrolling=!1,this.fastScrollEndTimer=void 0,this.callbacks.onFastScrollEnd(e)}},{key:"cleanup",value:function(){this.fastScrollEndTimer&&clearTimeout(this.fastScrollEndTimer)}},{key:"getIsFastScrolling",value:function(){return this.isFastScrolling}},{key:"getScrollVelocity",value:function(){return this.state.scrollVelocity}},{key:"destroy",value:function(){this.fastScrollEndTimer&&(clearTimeout(this.fastScrollEndTimer),this.fastScrollEndTimer=void 0),this.isFastScrolling=!1}},{key:"getConfig",value:function(){return Yr({},this.config)}}]),n}();function qr(e,t,n){return e.getValue?e.getValue(t,n):t[e.code]}var L={safeRenderHeader:function(e){var t;return null!=(t=e.title)?t:e.name},safeGetValue:qr,safeGetRowKey:function(e,t,n){var r;return"string"==typeof e?r=t[e]:"function"==typeof e&&(r=e(t)),r=null==r?String(n):r},safeGetCellProps:function(e,t,n){var r;return e.getCellProps&&(r=qr(e,t,n),e.getCellProps(r,t,n))||{}},safeRender:function(e,t,n){var r=qr(e,t,n);return e.render?e.render(r,t,n):r}},Xr=function(){function e(){i()(this,e),S()(this,"rects",[])}return r()(e,[{key:"testSkip",value:function(o,i){return this.rects.some(function(e){var t=e.left,n=e.right,r=e.top,e=e.bottom;return t<=i&&i<n&&r<=o&&o<e})}},{key:"stripUpwards",value:function(t){this.rects=this.rects.filter(function(e){return e.bottom>t})}},{key:"add",value:function(e,t,n,r){this.rects.push({left:t,right:t+(n<1?1:n),top:e,bottom:e+r})}}]),e}();function Zr(t,e){var n,r=Object.keys(t);return Object.getOwnPropertySymbols&&(n=Object.getOwnPropertySymbols(t),e&&(n=n.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})),r.push.apply(r,n)),r}function Jr(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){S()(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 Qr(e){var t=e.tbodyHtmlTag,r=e.getRowProps,o=e.primaryKey,d=e.stickyRightOffset,n=e.data,p=e.verticalRenderInfo,h=e.horizontalRenderInfo,v=e.tbodyPosition,e=h.flat,g=(h.horizontalRenderRange,h.direction),y=new Xr,b=e.full.length,m=e.left.length,w=e.right.length;return x.a.createElement("table",null,x.a.createElement(sr,{descriptors:h.visible}),x.a.createElement(t,null,n.map(function(u,e){var f=p.offset+e,e=(y.stripUpwards(f),r(u,f)),t=P()(T.tableRow,(t={},S()(t,T.first,f===p.first),S()(t,T.last,f===p.last),S()(t,T.even,f%2==0),S()(t,T.odd,f%2==1),t),null==e?void 0:e.className),n=h.visible.concat();-1<["left","right"].indexOf(v)&&n.push({type:"blank",blankSide:"left",width:0,isPlacehoder:!0});return x.a.createElement("tr",O()({},e,{className:t,key:null!=e&&e["data-row-detail-key"]?e["data-row-detail-key"]:L.safeGetRowKey(o,u,f),"data-rowindex":f,"data-role":"table-row"}),n.map(function(e){var t,n,r,o,i,a,c,l,s;return"blank"===e.type?x.a.createElement("td",{key:e.blankSide,style:{visibility:e.isPlacehoder?"hidden":void 0}}):(t=u,n=f,r=e.col,e=e.colIndex,y.testSkip(n,e)?null:(i=L.safeGetValue(r,t,n),a=null!=(a=null==(a=r.getCellProps)?void 0:a.call(r,i,t,n))?a:{},c=i,r.render&&(c=r.render(i,t,n)),s=l=1,r.getSpanRect?(i=r.getSpanRect(i,t,n),l=null==i?1:i.right-e,s=null==i?1:i.bottom-n):(null!=a.colSpan&&(l=a.colSpan),null!=a.rowSpan&&(s=a.rowSpan)),(t=1<l||1<s)&&y.add(n,e,l,s),s=Math.min(s,p.limit-n),l=Math.min(l,h.visible.length-e),s=Math.max(s,1),l=Math.max(l,1),i={},e<m?(i.position="sticky",i.left=h.stickyLeftMap.get(e),"rtl"===g?i.right=h.stickyLeftMap.get(e):i.left=h.stickyLeftMap.get(e)):b-w<=e&&(i.position="sticky","rtl"===g?i.left=h.stickyRightMap.get(e)+("number"==typeof d?d:0):i.right=h.stickyRightMap.get(e)+("number"==typeof d?d:0)),x.a.createElement("td",Jr(Jr(Jr({key:e},a),{},{className:P()(T.tableCell,a.className,(o={},S()(o,T.first,0===e),S()(o,T.last,e+l===b),S()(o,T.lockLeft,e<m||"left"===v),S()(o,T.lockRight,b-w<=e),S()(o,T.rowSpan,1<s),o))},t?{colSpan:l,rowSpan:s}:null),{},{style:Jr(Jr({textAlign:r.align,verticalAlign:null!=(e=r.verticalAlign)?e:"middle"},a.style),i),"data-role":"table-cell","data-rowindex":n,"data-code":r.code}),"center"===v&&"sticky"===i.position?null:c)))}))})))}var eo=x.a.memo(function(){return x.a.createElement("svg",{style:{margin:"auto",display:"block",width:40,height:40},viewBox:"0 0 100 100",preserveAspectRatio:"xMidYMid"},x.a.createElement("circle",{cx:"50",cy:"50",r:"40",fill:"none",stroke:"#23a7fa",strokeDasharray:"188 64",strokeLinecap:"round",strokeWidth:"10"},x.a.createElement("animateTransform",{attributeName:"transform",dur:"1.5s",keyTimes:"0;1",repeatCount:"indefinite",type:"rotate",values:"0 50 50;360 50 50"})))});function to(e){var t=e.children,e=e.visible;return x.a.createElement("div",{className:T.loadingContentWrapper,style:{filter:e?"blur(1px)":"none"}},t)}function no(e){var t=e.visible,n=e.children,r=e.LoadingContentWrapper,e=e.LoadingIcon;return x.a.createElement("div",{className:T.loadingWrapper},t&&x.a.createElement("div",{className:T.loadingIndicatorWrapper},x.a.createElement("div",{className:T.loadingIndicator},x.a.createElement(void 0===e?eo:e,null))),x.a.createElement(void 0===r?to:r,{visible:t,children:n}))}function ro(n){var r=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(e){return!1}}();return function(){var e,t=Z()(n);return e=r?(e=Z()(this).constructor,Reflect.construct(t,arguments,e)):t.apply(this,arguments),X()(this,e)}}var oo=function(e){q()(n,e);var t=ro(n);function n(){return i()(this,n),t.apply(this,arguments)}return r()(n,[{key:"render",value:function(){return x.a.createElement(jn,{direction:this.props.direction})}}]),n}(y.PureComponent),io=t(71),ao=t.n(io);function co(t,e){var n,r=Object.keys(t);return Object.getOwnPropertySymbols&&(n=Object.getOwnPropertySymbols(t),e&&(n=n.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})),r.push.apply(r,n)),r}function g(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?co(Object(n),!0).forEach(function(e){S()(t,e,n[e])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):co(Object(n)).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))})}return t}var lo=new Map;function so(e){var i=Object(y.useRef)(null),t=e.row,a=e.rowIndex,n=e.domHelper,e=e.renderDetail,c=n.artTable;return Object(y.useEffect)(function(){function e(e){return".".concat(e," .").concat(T.tableRow,'[data-rowindex="').concat(a,'"]')}var t=i.current&&i.current.getBoundingClientRect(),n=c.querySelector(e(T.tableBody)),r=c.querySelector(e(T.fixedLeft)),o=c.querySelector(e(T.fixedRight));t.height&&(n&&(n.style.height=t.height+"px"),r&&(r.style.height=t.height+"px"),o)&&(o.style.height=t.height+"px")},[]),Object(y.useEffect)(function(){var e=n.getRowTop(a)||0;i.current.style.transform="translateY(".concat(e+"px",")")}),x.a.createElement("div",{ref:i,className:T.rowDetailItem},e(t,a))}function uo(e){return lo.get(e)}bn()&&(lo.set("header",function(e,t,n){var r=t.stickyTop,t=t.hasHeader,o=e.flat,i=e.nested,a=e.visible,c=e.hasLockColumn,l=o.left,o=o.right,s=i.left,u=i.right,i=hr(i.full)+1,f={right:(null==n?void 0:n.stickyRightOffset)||0};return x.a.createElement("div",{className:P()(T.tableHeader)},x.a.createElement("div",{className:P()(T.tableHeaderMain,"no-scrollbar"),style:{top:0===r?void 0:r,display:t?void 0:"none"}},x.a.createElement(Or,{info:e,theaderPosition:c?"center":void 0}),x.a.createElement("div",{className:T.verticalScrollPlaceholder,style:"number"==typeof(null==n?void 0:n.stickyRightOffset)?{width:null==n?void 0:n.stickyRightOffset}:void 0})),0<l.length?x.a.createElement("div",{className:T.fixedLeft},x.a.createElement(Or,{info:g(g({},e),{},{flat:{center:l,full:l,left:[],right:[]},nested:{center:s,full:s,left:[],right:[]},visible:a.slice(0,l.length),horizontalRenderRange:{leftIndex:0,leftBlank:0,rightIndex:l.length,rightBlank:0}}),theaderPosition:"left",rowCount:i})):null,0<o.length?x.a.createElement("div",{className:T.fixedRight,style:f},x.a.createElement(Or,{info:g(g({},e),{},{flat:{center:o,full:o,left:[],right:[]},nested:{center:u,full:u,left:[],right:[]},visible:a.slice(a.length-o.length),horizontalRenderRange:{leftIndex:0,leftBlank:0,rightIndex:o.length,rightBlank:0}}),theaderPosition:"right",rowCount:i})):null)}),lo.set("body",function(e,t,n){var r=t.dataSource,o=t.getRowProps,t=t.primaryKey,i=(l=e.verticalRenderRange).topIndex,a=l.bottomBlank,c=l.topBlank,l=l.bottomIndex,s=e.flat,u=e.visible,f=e.hasLockColumn,d=s.left,s=s.right,p={first:0,offset:i,limit:l,last:r.length-1},o={getRowProps:Zn(o,n.rowProps),primaryKey:t,data:r.slice(i,l)};return x.a.createElement("div",{className:P()(T.tableBody,T.horizontalScrollContainer)},x.a.createElement("div",{className:T.virtual,tabIndex:-1},0<c&&x.a.createElement("div",{key:"top-blank",className:P()(T.virtualBlank,"top"),style:{height:c}}),x.a.createElement(Qr,O()({tbodyHtmlTag:"tbody"},o,{tbodyPosition:f?"center":void 0,horizontalRenderInfo:e,verticalRenderInfo:p})),0<a&&x.a.createElement("div",{key:"bottom-blank",className:P()(T.virtualBlank,"bottom"),style:{height:a}})),0<d.length?x.a.createElement("div",{className:T.fixedLeft},0<c&&x.a.createElement("div",{key:"top-blank",className:P()(T.virtualBlank,"top"),style:{height:c}}),x.a.createElement(Qr,O()({tbodyHtmlTag:"tbody"},o,{tbodyPosition:"left",horizontalRenderInfo:g(g({},e),{},{flat:{center:d,full:d,left:[],right:[]},visible:u.slice(0,d.length)}),verticalRenderInfo:p})),0<a&&x.a.createElement("div",{key:"bottom-blank",className:P()(T.virtualBlank,"bottom"),style:{height:a}})):null,0<s.length?x.a.createElement("div",{className:T.fixedRight},0<c&&x.a.createElement("div",{key:"top-blank",className:P()(T.virtualBlank,"top"),style:{height:c}}),x.a.createElement(Qr,O()({tbodyHtmlTag:"tbody"},o,{tbodyPosition:"right",horizontalRenderInfo:g(g({},e),{},{flat:{center:s,full:s,left:[],right:[]},visible:u.slice(u.length-s.length)}),verticalRenderInfo:p})),0<a&&x.a.createElement("div",{key:"bottom-blank",className:P()(T.virtualBlank,"bottom"),style:{height:a}})):null,x.a.createElement("div",{className:T.rowDetailContainer}))}),lo.set("footer",function(e,t,n){var r=void 0===(r=t.footerDataSource)?[]:r,o=t.getRowProps,i=t.primaryKey,t=t.stickyBottom,o=Zn(o,n.rowProps),a=e.flat,c=e.visible,l=e.hasLockColumn,s=a.left,a=a.right,o={data:r,getRowProps:o,primaryKey:i,verticalRenderInfo:{offset:0,first:0,last:r.length-1,limit:1/0}},i={right:(null==n?void 0:n.stickyRightOffset)||0};return x.a.createElement("div",{className:P()(T.tableFooter),style:{bottom:0===t?void 0:t}},x.a.createElement("div",{className:P()(T.tableFooterMain,T.horizontalScrollContainer)},x.a.createElement(Qr,O()({tbodyHtmlTag:"tfoot"},o,{tbodyPosition:l?"center":void 0,horizontalRenderInfo:e})),0<r.length?x.a.createElement("div",{className:T.verticalScrollPlaceholder,style:"number"==typeof(null==n?void 0:n.stickyRightOffset)?{width:null==n?void 0:n.stickyRightOffset,visibility:"initial"}:void 0}):null),0<s.length?x.a.createElement("div",{className:T.fixedLeft},x.a.createElement(Qr,O()({tbodyHtmlTag:"tfoot"},o,{tbodyPosition:"left",horizontalRenderInfo:g(g({},e),{},{flat:{center:s,full:s,left:[],right:[]},visible:c.slice(0,s.length)})}))):null,0<a.length?x.a.createElement("div",{className:T.fixedRight,style:i},x.a.createElement(Qr,O()({tbodyHtmlTag:"tfoot"},o,{tbodyPosition:"right",horizontalRenderInfo:g(g({},e),{},{flat:{center:a,full:a,left:[],right:[]},visible:c.slice(c.length-a.length)})}))):null)}),lo.set("rowDetail",function(e){var t=e.domHelper;if(t)return t=(t=t.artTable)&&t.querySelector(".".concat(T.rowDetailContainer)),ao.a.createPortal(x.a.createElement(so,e),t)}));var An=Object(y.forwardRef)(function(e,t){var e=e.height,e=Object(y.useState)(e),e=D()(e,2),n=e[0],r=e[1];return Object(y.useImperativeHandle)(t,function(){return{updateHeight:function(e){n!==e&&r(e)}}},[n]),x.a.createElement("div",{style:{height:n}})}),Tn=(An.displayName="TopBlank",Object(y.forwardRef)(function(e,t){var n=e.height,e=e.className,n=Object(y.useState)(n),n=D()(n,2),r=n[0],o=n[1];return Object(y.useImperativeHandle)(t,function(){return{updateHeight:function(e){r!==e&&o(e)}}},[r]),r<=0?null:x.a.createElement("div",{key:"bottom-blank",className:P()(T.virtualBlank,"bottom",e),style:{height:r}})})),fo=(Tn.displayName="BottomBlank",Object(y.memo)(An,function(e,t){return e.height===t.height&&e.className===t.className})),po=Object(y.memo)(Tn,function(e,t){return e.height===t.height&&e.className===t.className});function ho(e,t){var n,r,o,i,a="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(a)return r=!(n=!0),{s:function(){a=a.call(e)},n:function(){var e=a.next();return n=e.done,e},e:function(e){r=!0,o=e},f:function(){try{n||null==a.return||a.return()}finally{if(r)throw o}}};if(Array.isArray(e)||(a=function(e,t){var n;if(e)return"string"==typeof e?vo(e,t):"Map"===(n="Object"===(n=Object.prototype.toString.call(e).slice(8,-1))&&e.constructor?e.constructor.name:n)||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?vo(e,t):void 0}(e))||t&&e&&"number"==typeof e.length)return a&&(e=a),i=0,{s:t=function(){},n:function(){return i>=e.length?{done:!0}:{done:!1,value:e[i++]}},e:function(e){throw e},f:t};throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function vo(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function go(t,e){var n,r=Object.keys(t);return Object.getOwnPropertySymbols&&(n=Object.getOwnPropertySymbols(t),e&&(n=n.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})),r.push.apply(r,n)),r}function yo(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?go(Object(n),!0).forEach(function(e){S()(t,e,n[e])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):go(Object(n)).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))})}return t}function bo(n){var r=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(e){return!1}}();return function(){var e,t=Z()(n);return e=r?(e=Z()(this).constructor,Reflect.construct(t,arguments,e)):t.apply(this,arguments),X()(this,e)}}var mo=!1;var wo=function(e){q()(n,e);var t=bo(n);function n(e){i()(this,n),d=t.call(this,e),S()(o()(d),"rowHeightManager",Vr(d.props.dataSource.length,d.props.estimatedRowHeight)),S()(o()(d),"artTableWrapperRef",x.a.createRef()),S()(o()(d),"domHelper",void 0),S()(o()(d),"rootSubscription",void 0),S()(o()(d),"resizeSubject",void 0),S()(o()(d),"lastInfo",void 0),S()(o()(d),"props$",void 0),S()(o()(d),"hasScrollY",!1),S()(o()(d),"resizeObserver",void 0),S()(o()(d),"offsetY",0),S()(o()(d),"fastScrollManager",void 0),S()(o()(d),"topBlankRef",x.a.createRef()),S()(o()(d),"bottomBlankRef",x.a.createRef()),S()(o()(d),"handleRowMouseEnter",function(e){e=d.domHelper.getRowNodeListByEvent(e);e&&e.forEach(function(e){e.classList.add("row-hover")})}),S()(o()(d),"handleRowMouseLeave",function(e){e=d.domHelper.getRowNodeListByEvent(e);e&&e.forEach(function(e){e.classList.remove("row-hover")})}),S()(o()(d),"renderTableBody",function(e){var t,n,r,o,i=d.props,a=i.dataSource,c=i.getRowProps,l=i.primaryKey,s=i.isLoading,i=i.emptyCellHeight,u=P()(T.tableBody,T.horizontalScrollContainer),f=yn.isIE||yn.isEdge?{overflow:"hidden"}:{};return 0===a.length?(r=(n=d.props).components,t=n.emptyContent,null==(n=r.EmptyContent)&&null!=t&&(mo||(mo=!0,Tt.warn("BaseTable props.emptyContent 已经过时,请使用 props.components.EmptyContent 来自定义数据为空时的表格表现")),n=function(){return t}),x.a.createElement("div",{className:P()(u,"empty")},x.a.createElement("div",{className:T.virtual,tabIndex:-1,style:f},x.a.createElement(fr,{descriptors:e.visible,isLoading:s,EmptyContent:n,emptyCellHeight:i})))):(s=(r=e.verticalRenderRange).topIndex,n=r.bottomBlank,i=r.topBlank,r=r.bottomIndex,"function"==typeof(o=uo("body"))?o(e,d.props,{rowProps:{onMouseEnter:d.handleRowMouseEnter,onMouseLeave:d.handleRowMouseLeave}}):x.a.createElement("div",{className:u},x.a.createElement("div",{className:T.virtual,tabIndex:-1,style:f},x.a.createElement(fo,{ref:d.topBlankRef,height:i}),x.a.createElement(Qr,{tbodyHtmlTag:"tbody",getRowProps:c,primaryKey:l,data:a.slice(s,r),horizontalRenderInfo:e,verticalRenderInfo:{first:0,offset:s,limit:r,last:a.length-1}}),x.a.createElement(po,{ref:d.bottomBlankRef,height:n}))))}),d.state={hasScroll:!0,hasScrollY:!0,needRenderLock:!0,offsetY:0,offsetX:0,maxRenderHeight:600,maxRenderWidth:800};var d,e={onFastScrollStart:function(e){d.setState({previousRenderData:e})},onFastScrollEnd:function(e){d.setState({previousRenderData:void 0,offsetY:e.offsetY,maxRenderHeight:e.maxRenderHeight,maxRenderWidth:e.maxRenderWidth})},getCurrentRenderRange:function(e,t,n){return d.rowHeightManager.getRenderRange(e,t,n)}};return d.fastScrollManager=new Ur(e),d}return r()(n,[{key:"getDoms",value:function(){return Tt.warn("[kd-table] BaseTable.getDoms() 已经过时"),this.domHelper}},{key:"updateStickyScroll",value:function(){var e,t,n=this.domHelper,r=n.stickyScroll,o=n.artTable,n=n.stickyScrollItem,i=this.hasScrollY;o&&(e=this.domHelper.getTableBodyHtmlTable().offsetWidth,t=o.offsetWidth,o=o.offsetHeight,0===t&&0===o||(o="auto"===(o=this.props.stickyScrollHeight)?this.getScrollBarWidth():o,r.style.height="".concat(o,"px"),e<=t?this.state.hasScroll&&this.setState({hasScroll:!1}):!this.state.hasScroll&&5<o&&this.setState({hasScroll:!0}),this.domHelper.virtual.offsetHeight>this.domHelper.tableBody.offsetHeight?this.hasScrollY=!0:this.hasScrollY=!1,i!==this.hasScrollY&&null!=(t=(r=this.props).setTableWidth)&&t.call(r,this.domHelper.tableBody.clientWidth),i=(o=this.lastInfo).leftLockTotalWidth+o.rightLockTotalWidth,t=this.hasScrollY?this.getScrollBarWidth():0,n.style.width="".concat(e-i+t,"px")))}},{key:"renderTableHeader",value:function(e){var t=this.props,n=t.stickyTop,t=t.hasHeader,r=uo("header"),o=this.hasScrollY?this.getScrollBarWidth():0;return"function"==typeof r?r(e,this.props,{stickyRightOffset:o}):x.a.createElement("div",{className:P()(T.tableHeader,"no-scrollbar"),style:{top:0===n?void 0:n,display:t?void 0:"none"}},x.a.createElement(Or,{info:e,stickyRightOffset:o}),x.a.createElement("div",{className:T.verticalScrollPlaceholder,style:this.hasScrollY?{width:this.getScrollBarWidth()}:void 0}))}},{key:"updateOffsetX",value:function(e){this.lastInfo.useVirtual.horizontal&&Math.abs(e-this.state.offsetX)>=Wn/2&&this.setState({offsetX:e})}},{key:"syncHorizontalScrollFromTableBody",value:function(){this.syncHorizontalScroll(this.domHelper.virtual.scrollLeft)}},{key:"syncHorizontalScroll",value:function(e){var e=Math.abs(e),t=(this.updateOffsetX(e),this.lastInfo.flat),n=0<e,e=e<this.domHelper.virtual.scrollWidth-this.domHelper.virtual.clientWidth,r=this.domHelper.getLeftLockShadow(),n=(r&&(0<t.left.length&&this.state.needRenderLock&&n?r.classList.add("show-shadow"):r.classList.remove("show-shadow")),this.domHelper.getRightLockShadow());n&&(0<t.right.length&&this.state.needRenderLock&&e?n.classList.add("show-shadow"):n.classList.remove("show-shadow"))}},{key:"getVerticalRenderRange",value:function(e){var t=this.props,n=t.dataSource,t=t.isLowPerformance,r=this.state,o=r.offsetY,i=r.maxRenderHeight,r=r.previousRenderData,n=n.length;return t&&this.fastScrollManager.getIsFastScrolling()&&null!=r&&r.verticalRenderRange?r.verticalRenderRange:e.vertical?this.rowHeightManager.getRenderRange(o,i,n):{topIndex:0,topBlank:0,bottomIndex:n,bottomBlank:0}}},{key:"renderTableFooter",value:function(e){var t=this.props,n=t.footerDataSource,n=void 0===n?[]:n,r=t.getRowProps,o=t.primaryKey,t=t.stickyBottom,i=this.hasScrollY?this.getScrollBarWidth():0,a=uo("footer");return"function"==typeof a?a(e,this.props,{rowProps:{onMouseEnter:this.handleRowMouseEnter,onMouseLeave:this.handleRowMouseLeave},stickyRightOffset:i}):x.a.createElement("div",{className:P()(T.tableFooter,T.horizontalScrollContainer),style:{bottom:0===t?void 0:t}},x.a.createElement(Qr,{tbodyHtmlTag:"tfoot",data:n,horizontalRenderInfo:e,getRowProps:r,stickyRightOffset:i,primaryKey:o,verticalRenderInfo:{offset:0,first:0,last:n.length-1,limit:1/0}}),0<n.length?x.a.createElement("div",{className:T.verticalScrollPlaceholder,style:this.hasScrollY?{width:this.getScrollBarWidth(),visibility:"initial"}:void 0}):null)}},{key:"renderLockShadows",value:function(e){var t,n=this.hasScrollY?this.getScrollBarWidth():0,r=e.leftLockTotalWidth+20,n=e.rightLockTotalWidth+20+n;return x.a.createElement(x.a.Fragment,null,x.a.createElement("div",{className:T.lockShadowMask,style:(t={},S()(t,v(e.direction,"left"),0),S()(t,"width",r),t)},x.a.createElement("div",{className:P()(T.lockShadow,T.leftLockShadow)})),x.a.createElement("div",{className:T.lockShadowMask,style:(r={},S()(r,v(e.direction,"right"),0),S()(r,"width",n),r)},x.a.createElement("div",{className:P()(T.lockShadow,T.rightLockShadow)})))}},{key:"renderStickyScroll",value:function(e){var t=this.props,n=t.hasStickyScroll,t=t.stickyBottom,r=this.state.hasScroll,n=n&&r,r=this.getStickyScrollContainerStyle();return x.a.createElement("div",{className:P()(T.horizontalScrollContainer,T.horizontalStickyScrollContainer),style:r},x.a.createElement("div",{className:P()(T.horizontalScrollLeftSpacer),style:{width:e.leftLockTotalWidth,display:n?"block":"none"}}),x.a.createElement("div",{className:P()(T.stickyScroll),style:{display:n?"block":"none",bottom:t}},x.a.createElement("div",{className:T.stickyScrollItem})),x.a.createElement("div",{className:P()(T.horizontalScrollRightSpacer),style:{width:e.rightLockTotalWidth,display:n?"block":"none"}}))}},{key:"getScrollBarWidth",value:function(){return this.props.scrollbarWidth||(null==$n&&($n=new be(Un()),Gn.pipe(R(Un)).subscribe($n)),$n.value.width)}},{key:"getStickyScrollContainerStyle",value:function(){var e=this.props,t=e.hasStickyScroll,e=e.stickyScrollHeight,n=this.state.hasScroll,t=t&&n,n="auto"===e?this.getScrollBarWidth():e,e=t?n:0;return{height:e,maxHeight:e,minHeight:e}}},{key:"render",value:function(){var e=lr(this),t=(this.lastInfo=e,this.props),n=t.dataSource,r=t.className,o=t.style,i=t.hasHeader,a=t.useOuterBorder,c=t.isStickyHead,l=t.isStickyHeader,s=t.isStickyFooter,u=t.isLoading,f=t.getTableProps,d=t.footerDataSource,p=t.components,h=t.bordered,v=t.direction,t=t.prefixCls,n=(e.direction=v,P()(T.artTableWrapper,(a={"use-outer-border":a,empty:0===n.length,lock:e.hasLockColumn,"has-header":i,"sticky-header":null!=l?l:c,"has-footer":0<d.length,"sticky-footer":s},S()(a,T.artTableBordered,h),S()(a,"ie-polyfill-wrapper",yn.isIE),S()(a,"sticky-polyfill-wrapper",bn()),S()(a,"".concat(t,"-table"),t),a),r)),i=S()({className:n,style:yo(yo({},o),{},{direction:v})},Bn,this.artTableWrapperRef),l=f()||{};return x.a.createElement(x.a.Fragment,null,x.a.createElement(oo,{direction:e.direction}),x.a.createElement(Dn,O()({},i,{direction:e.direction,prefixCls:this.props.prefixCls}),x.a.createElement(no,{visible:u,LoadingIcon:p.LoadingIcon,LoadingContentWrapper:p.LoadingContentWrapper},x.a.createElement("div",O()({},l,{className:P()(T.artTable,l.className)}),this.renderTableHeader(e),this.renderTableBody(e),this.renderTableFooter(e),this.renderLockShadows(e)),this.renderStickyScroll(e))))}},{key:"componentDidMount",value:function(){this.rootSubscription=new u,this.resizeSubject=new ge,this.updateDOMHelper(),this.props$=new be(this.props),this.initSubscriptions(),this.didMountOrUpdate();var e=this.props,t=e.cssVariables,n=e.enableCSSVariables,e=e.bordered;Qn({variables:t||{},enableCSSVariables:n,bordered:e}),null!=(n=(t=this.props).setTableWidth)&&n.call(t,this.domHelper.tableBody.clientWidth),null!=(n=(e=this.props).setTableDomHelper)&&n.call(e,this.domHelper),null!=(n=(t=this.props).setRowHeightManager)&&n.call(t,this.rowHeightManager)}},{key:"componentDidUpdate",value:function(e,t){var n,r=this.props,o=r.cssVariables,i=r.enableCSSVariables,r=r.bordered;Xn(null==e?void 0:e.cssVariables,null==(n=this.props)?void 0:n.cssVariables)||Qn({variables:o||{},enableCSSVariables:i,bordered:r}),this.updateDOMHelper(),this.props$.next(this.props),this.didMountOrUpdate(e,t)}},{key:"didMountOrUpdate",value:function(e,t){var n=this;window.requestAnimationFrame(function(){n.syncHorizontalScrollFromTableBody(),n.updateStickyScroll(),n.adjustNeedRenderLock(),n.updateRowHeightManager()}),this.updateScrollLeftWhenLayoutChanged(e,t)}},{key:"updateScrollLeftWhenLayoutChanged",value:function(e,t){null!=t&&!t.hasScroll&&this.state.hasScroll&&(this.domHelper.stickyScroll.scrollLeft=0),null!=e&&(t=0<e.footerDataSource.length,e=0<this.props.footerDataSource.length,!t)&&e&&(Jn(this.domHelper).scrollLeft=this.domHelper.virtual.scrollLeft)}},{key:"initSubscriptions",value:function(){var t,n,r,o=this,e=this.domHelper,i=e.virtual,e=e.stickyScroll,a=(this.rootSubscription.add(Gn.subscribe(function(){o.updateStickyScroll(),o.adjustNeedRenderLock()})),this.resizeSubject.pipe((t=100,void 0===n&&(n=Be),function(e){return e.lift(new We(t,n))})).subscribe(function(){var e,t;null!=(e=(t=o.props).setTableWidth)&&e.call(t,o.domHelper.tableBody.clientWidth)}),this.resizeObserver=Yn(this.domHelper.artTableWrapper,function(){o.resizeSubject.next()}),this.rootSubscription.add(qn([(a=this.domHelper,bn()?a.tableHeaderMain:a.tableHeader),i,Jn(this.domHelper),e],function(e){o.syncHorizontalScroll(e)})),Br(this.domHelper.virtual,this.props$.pipe((r=1,function(e){return e.lift(new $e(r))}),Ye("structure-may-change")),this.props.virtualDebugLabel).pipe(at()));this.rootSubscription.add(function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var n=void 0,r=void 0;return me(e[e.length-1])&&(r=e.pop()),"function"==typeof e[e.length-1]&&(n=e.pop()),Te(e=1===e.length&&J(e[0])?e[0]:e,r).lift(new Ie(n))}([a.pipe(R(function(e){return e.clipRect}),st(Xn)),this.props$.pipe(mt(null),function(e){return e.lift(new wt)},St(function(e){var e=D()(e,2),t=e[0],e=e[1];return null==t||!t.isLoading&&e.isLoading}))]).subscribe(function(e){var e=D()(e,1)[0],t=o.domHelper.getLoadingIndicator();t&&(e=e.bottom-e.top,t.style.top="".concat(e/2,"px"),t.style.marginTop="".concat(e/2,"px"))})),this.rootSubscription.add(a.pipe(St(function(){var e=o.lastInfo.useVirtual,t=e.horizontal,e=e.vertical;return t||e}),R(function(e){var t=e.clipRect,e=e.offsetY;return{maxRenderHeight:t.bottom-t.top,maxRenderWidth:t.right-t.left,offsetY:e}}),st(function(e,t){return 0===t.maxRenderHeight&&0===t.maxRenderWidth||Math.abs(e.maxRenderWidth-t.maxRenderWidth)<Wn/2&&Math.abs(e.maxRenderHeight-t.maxRenderHeight)<Wn/2&&Math.abs(e.offsetY-t.offsetY)<Wn/2}),kt(function(e){o.props.isLowPerformance&&o.fastScrollManager.handleScrollEvent(e,{offsetY:o.state.offsetY,maxRenderHeight:o.state.maxRenderHeight,maxRenderWidth:o.state.maxRenderWidth},o.props.dataSource.length,o.domHelper.virtual.scrollHeight)})).subscribe(function(e){var t,n=o.rowHeightManager.getRenderRange(e.offsetY,e.maxRenderHeight,o.props.dataSource.length);null!=(t=o.topBlankRef.current)&&t.updateHeight(n.topBlank),null!=(t=o.bottomBlankRef.current)&&t.updateHeight(n.bottomBlank),o.props.isLowPerformance&&o.fastScrollManager.getIsFastScrolling()||o.setState(e)})),this.rootSubscription.add(a.pipe(R(function(e){var t=e.clipRect,e=e.offsetY;return{maxRenderHeight:t.bottom-t.top,maxRenderWidth:t.right-t.left,offsetY:e}}),st(function(e,t){return e.offsetY-t.offsetY==0}),R(function(e){var t=e.offsetY,e=e.maxRenderHeight,n=0<=t-o.offsetY?"down":"up",r=(o.offsetY=t,o.props.dataSource.length),t=o.rowHeightManager.getRenderRange(t,e,r),e=t.topIndex,r=t.bottomIndex,t=(null==(t=o.props.scrollLoad)?void 0:t.blockSize)||200,e=Math.floor(Math.max(e-1,0)/t)*t,r=Math.floor((r+1)/t)*t;return"down"==n?[e,r]:[r,e]}),st(function(e,t){return e[0]===t[0]&&e[1]===t[1]}),Pt(function(e){return Le(e).pipe(R(function(e){return e}))}),st()).subscribe(function(e){var t;null!=(t=o.props.scrollLoad)&&t.callback(e)}))}},{key:"componentWillUnmount",value:function(){var e;null!=(e=this.resizeObserver)&&e.disconnect(),this.rootSubscription.unsubscribe(),this.resizeSubject.unsubscribe(),this.props.isLowPerformance&&this.fastScrollManager.cleanup()}},{key:"updateDOMHelper",value:function(){this.domHelper=new $r(this.artTableWrapperRef.current)}},{key:"updateRowHeightManager",value:function(){var e,t=this.domHelper.getVirtualTop(),n=null!=(t=null==t?void 0:t.clientHeight)?t:0,r=-1,o=-1,i=0,a=ho(this.domHelper.getTableRows());try{for(a.s();!(e=a.n()).done;){var c,l,s=e.value,u=Number(s.dataset.rowindex);isNaN(u)||(r=Math.max(r,u),c=s.offsetTop+n,0===(l=s.offsetHeight)?i+=1:this.rowHeightManager.updateRow(u,c,l),o=Math.max(o,c+l))}}catch(e){a.e(e)}finally{a.f()}-1!==r&&0===i&&o<this.state.offsetY+this.state.maxRenderHeight&&this.getVerticalRenderRange(this.lastInfo.useVirtual).bottomIndex-1>r&&this.forceUpdate()}},{key:"adjustNeedRenderLock",value:function(){var e=this.state.needRenderLock,t=this.lastInfo,n=t.flat;t.hasLockColumn?e!==(t=Kn(n.full.map(function(e){return e.width}))>this.domHelper.artTable.clientWidth)&&this.setState({needRenderLock:t}):e&&this.setState({needRenderLock:!1})}}]),n}(x.a.Component);function xo(e,t){var n,r,o,i,a="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(a)return r=!(n=!0),{s:function(){a=a.call(e)},n:function(){var e=a.next();return n=e.done,e},e:function(e){r=!0,o=e},f:function(){try{n||null==a.return||a.return()}finally{if(r)throw o}}};if(Array.isArray(e)||(a=function(e,t){var n;if(e)return"string"==typeof e?So(e,t):"Map"===(n="Object"===(n=Object.prototype.toString.call(e).slice(8,-1))&&e.constructor?e.constructor.name:n)||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?So(e,t):void 0}(e))||t&&e&&"number"==typeof e.length)return a&&(e=a),i=0,{s:t=function(){},n:function(){return i>=e.length?{done:!0}:{done:!1,value:e[i++]}},e:function(e){throw e},f:t};throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function So(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function Oo(e,t){var n,r={},o=xo(e);try{for(o.s();!(n=o.n()).done;){var i=n.value,a=t(i);null==r[a]&&(r[a]=[]),r[a].push(i)}}catch(e){o.e(e)}finally{o.f()}return r}S()(wo,"defaultProps",{hasHeader:!0,isStickyHeader:!0,stickyTop:0,footerDataSource:[],isStickyFooter:!0,stickyBottom:0,hasStickyScroll:!0,stickyScrollHeight:"auto",useVirtual:"auto",estimatedRowHeight:48,isLowPerformance:!1,isLoading:!1,components:{},getTableProps:Ne,getRowProps:Ne,dataSource:[],useOuterBorder:!0});t(52);function Eo(e){return-1<e.findIndex(function(e){return e.children&&0<e.children.length})}function ko(e){for(var t=arguments.length,n=new Array(1<t?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];return n.reduce(function(e,t){return t(e)},e)}t(128);function jo(n,r){var o=[];return n.forEach(function(e,t){o.push.apply(o,I()(r(e,t,n)))}),o}var Co={diff:function(e,t){var n=new Set(t);return e.filter(function(e){return!n.has(e)})},merge:function(e,t){var n=new Set(e);return e.concat(t.filter(function(e){return!n.has(e)}))}};function Po(e){return function(){return e}}function Ro(e,t){for(var n=0,r=e.length,o=[];n<r||o.length;){var i=e[n++]||o.pop();if(t(i,n))return i;i.children&&o.splice.apply(o,[0,0].concat(I()(i.children)))}return null}function Ao(t,e){var n,r=Object.keys(t);return Object.getOwnPropertySymbols&&(n=Object.getOwnPropertySymbols(t),e&&(n=n.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})),r.push.apply(r,n)),r}function To(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?Ao(Object(n),!0).forEach(function(e){S()(t,e,n[e])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):Ao(Object(n)).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))})}return t}function Do(e,t){var n,r,o,i,a="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(a)return r=!(n=!0),{s:function(){a=a.call(e)},n:function(){var e=a.next();return n=e.done,e},e:function(e){r=!0,o=e},f:function(){try{n||null==a.return||a.return()}finally{if(r)throw o}}};if(Array.isArray(e)||(a=function(e,t){var n;if(e)return"string"==typeof e?Io(e,t):"Map"===(n="Object"===(n=Object.prototype.toString.call(e).slice(8,-1))&&e.constructor?e.constructor.name:n)||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Io(e,t):void 0}(e))||t&&e&&"number"==typeof e.length)return a&&(e=a),i=0,{s:t=function(){},n:function(){return i>=e.length?{done:!0}:{done:!1,value:e[i++]}},e:function(e){throw e},f:t};throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function Io(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function _o(e,t,n){function r(e){return i.has(e)?i.get(e):(i.set(e,e={id:e,parent:null,item:null,children:[]}),e)}var o,i=new Map,a=Do(n);try{for(a.s();!(o=a.n()).done;){var c=o.value,l=r(c[t]),s=r(c[e]);(s.parent=l).children.push(s),s.item=c}}catch(e){a.e(e)}finally{a.f()}return function e(t){var n=[];var r,o=Do(t);try{for(o.s();!(r=o.n()).done;){var i=r.value;0===i.children.length?n.push(i.item):n.push(To(To({},i.item),{},{children:e(i.children)}))}}catch(e){o.e(e)}finally{o.f()}return n}(jo(Array.from(i.values()).filter(function(e){return null==e.parent}),function(e){return e.children}))}function Mo(e,t){var n,r,o,i,a="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(a)return r=!(n=!0),{s:function(){a=a.call(e)},n:function(){var e=a.next();return n=e.done,e},e:function(e){r=!0,o=e},f:function(){try{n||null==a.return||a.return()}finally{if(r)throw o}}};if(Array.isArray(e)||(a=function(e,t){var n;if(e)return"string"==typeof e?Lo(e,t):"Map"===(n="Object"===(n=Object.prototype.toString.call(e).slice(8,-1))&&e.constructor?e.constructor.name:n)||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Lo(e,t):void 0}(e))||t&&e&&"number"==typeof e.length)return a&&(e=a),i=0,{s:t=function(){},n:function(){return i>=e.length?{done:!0}:{done:!1,value:e[i++]}},e:function(e){throw e},f:t};throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function Lo(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function No(e,t,n){return{c:e.c+t,r:e.r+n}}function Fo(p,e,t,n){var h,u,r,f,v=p.utils.aoa_to_sheet([]),g=hr(t)+1,o={c:0,r:0},o=(h=o,function e(t,n,r){var o,i,a=No(h,n,r),c=0,l=Mo(t);try{for(l.s();!(o=l.n()).done;){var s,u,f,d=o.value;null!=(s=d.features)&&s.noExport||(u=No(a,c,0),i=d.name,p.utils.sheet_add_aoa(v,[[i]],{origin:u}),_(d)?(c+=1,y(u,1,g-r)):(y(u,f=e(d.children,n+c,r+1),1),c+=f))}}catch(e){l.e(e)}finally{l.f()}return c}(t,0,0),u=No(o,0,g),r=M(t,"leaf-only").filter(function(e){return!(null!=(e=e.features)&&e.noExport)}),f=new Xr,e.map(function(l,s){return f.stripUpwards(s),r.map(function(e,t){var n,r,o,i,a,c;return f.testSkip(s,t)||(a=l,c=s,t=t,o=r=1,(n=e).getSpanRect?(i=L.safeGetValue(n,a,c),r=null==(i=n.getSpanRect(i,a,c))?1:i.right-t,o=null==i?1:i.bottom-c):(null!=(i=L.safeGetCellProps(n,a,c)).colSpan&&(r=i.colSpan),null!=i.rowSpan&&(o=i.rowSpan)),a=(n={top:c,bottom:c+o,left:t,right:t+r}).right-n.left,(1<(i=n.bottom-n.top)||1<a)&&(f.add(n.top,n.left,a,i),y(No(u,n.left,n.top),a,i)),(c=L.safeGetValue(e,l,s))===1/0)||c===-1/0||"number"==typeof c&&isNaN(c)?null:c})})),t=u;function y(e,t,n){1===t&&1===n||(null==v["!merges"]&&(v["!merges"]=[]),v["!merges"].push({s:e,e:No(e,t-1,n-1)}))}p.utils.sheet_add_aoa(v,o,{origin:t}),p.writeFile({SheetNames:["Sheet1"],Sheets:{Sheet1:v}},n)}t(295);function Ho(t,e){var n,r=Object.keys(t);return Object.getOwnPropertySymbols&&(n=Object.getOwnPropertySymbols(t),e&&(n=n.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})),r.push.apply(r,n)),r}function zo(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?Ho(Object(n),!0).forEach(function(e){S()(t,e,n[e])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):Ho(Object(n)).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))})}return t}function Bo(n,r){return function t(e){if(!Array.isArray(n))return n;return e.map(function(e){return _(e)?e:zo(zo({},e),{},{children:t(e.children)})}).sort(r)}(n)}var Wo=Symbol("factory-symbol");function b(o){var n=1<arguments.length&&void 0!==arguments[1]?arguments[1]:"auto",t=Object.keys(o);function r(e){var r=O()({},e);return t.forEach(function(e){var t,n;r[e]===b.empty?delete r[e]:(t=o[e],(n=t)&&n[Wo]?r[e]=t(r[e]):r[e]=null!=(n=r[e])?n:t)}),r}function i(e){return("auto"===n?Array.isArray(e):n)?null==e?[]:e.map(r):r(e)}return i[Wo]=!0,i.extends=function(e){var t=b(e,n);return function(e){return i(t(e))}},i}b.empty=Symbol("proto.empty"),(b.string=function(e){if(null!=e&&"string"!=typeof e)throw new Error("must be string");return e})[Wo]=!0,(b.number=function(e){if(null!=e&&"number"!=typeof e)throw new Error("must be number");return e})[Wo]=!0,(b.notNull=function(e){if(null==e)throw new Error("must be not null");return e})[Wo]=!0,b.object=function(e){return b(e,!1)},b.array=function(e){return b(e,!0)};var Ko=b;function Vo(t,e){var n,r=Object.keys(t);return Object.getOwnPropertySymbols&&(n=Object.getOwnPropertySymbols(t),e&&(n=n.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})),r.push.apply(r,n)),r}function $o(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?Vo(Object(n),!0).forEach(function(e){S()(t,e,n[e])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):Vo(Object(n)).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))})}return t}function Go(e,t){var n,r,o,i,a="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(a)return r=!(n=!0),{s:function(){a=a.call(e)},n:function(){var e=a.next();return n=e.done,e},e:function(e){r=!0,o=e},f:function(){try{n||null==a.return||a.return()}finally{if(r)throw o}}};if(Array.isArray(e)||(a=function(e,t){var n;if(e)return"string"==typeof e?Yo(e,t):"Map"===(n="Object"===(n=Object.prototype.toString.call(e).slice(8,-1))&&e.constructor?e.constructor.name:n)||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Yo(e,t):void 0}(e))||t&&e&&"number"==typeof e.length)return a&&(e=a),i=0,{s:t=function(){},n:function(){return i>=e.length?{done:!0}:{done:!1,value:e[i++]}},e:function(e){throw e},f:t};throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function Yo(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function Uo(d){return function(e){return function e(t,n,r){var o=0;var i=[];var a,c=Go(t);try{for(c.s();!(a=c.n()).done;){var l,s=a.value,u=(r.push(s),n+o),f=void 0;_(s)?(f=d(s,{startIndex:u,endIndex:u+1,path:r.slice(),isLeaf:!0}),o+=1):(l=e(s.children,u,r),f=d($o($o({},s),{},{children:l.result}),{startIndex:u,endIndex:u+l.flatCount,path:r.slice(),isLeaf:!1}),o+=l.flatCount),Array.isArray(f)?i.push.apply(i,I()(f)):null!=f&&i.push(f),r.pop()}}catch(e){c.e(e)}finally{c.f()}return{result:i,flatCount:o}}(e,0,[]).result}}function qo(e,t){if(null==e)return 1;if(null==t)return-1;if("number"==typeof e&&"number"==typeof t)return e-t;if("string"==typeof e&&"string"==typeof t)return e<t?-1:t<e?1:0;if(Array.isArray(e)&&Array.isArray(t)){for(var n=Math.min(e.length,t.length),r=0;r<n;r++){var o=qo(e[r],t[r]);if(0!==o)return o}return e.length-t.length}return 0}function Xo(t,e){var n,r=Object.keys(t);return Object.getOwnPropertySymbols&&(n=Object.getOwnPropertySymbols(t),e&&(n=n.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})),r.push.apply(r,n)),r}function Zo(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?Xo(Object(n),!0).forEach(function(e){S()(t,e,n[e])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):Xo(Object(n)).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))})}return t}function Jo(e,t){var n,r,o,i,a="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(a)return r=!(n=!0),{s:function(){a=a.call(e)},n:function(){var e=a.next();return n=e.done,e},e:function(e){r=!0,o=e},f:function(){try{n||null==a.return||a.return()}finally{if(r)throw o}}};if(Array.isArray(e)||(a=function(e,t){var n;if(e)return"string"==typeof e?Qo(e,t):"Map"===(n="Object"===(n=Object.prototype.toString.call(e).slice(8,-1))&&e.constructor?e.constructor.name:n)||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Qo(e,t):void 0}(e))||t&&e&&"number"==typeof e.length)return a&&(e=a),i=0,{s:t=function(){},n:function(){return i>=e.length?{done:!0}:{done:!1,value:e[i++]}},e:function(e){throw e},f:t};throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function Qo(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function ei(e){return null==e?[]:Array.isArray(e)?e:[e]}function ti(d){return function(e){var t=e.columns,f=e.dataSource;return{dataSource:f,columns:function e(t,n){var r=0;var o=[];var i,a=Jo(t);try{for(a.s();!(i=a.n()).done;){var c,l=i.value,s=n+r,u=void 0;_(l)?(u=d(l,{range:{start:s,end:s+1},dataSource:f}),r+=1):(c=e(l.children,s),u=d(Zo(Zo({},l),{},{children:c.result}),{range:{start:s,end:s+c.flatColCount},dataSource:f}),r+=c.flatColCount),o.push.apply(o,I()(ei(u)))}}catch(e){a.e(e)}finally{a.f()}return{result:o,flatColCount:r}}(t,0).result}}}var ni=function(t){return function(e){e.value=t,e.select(),e.focus(),document.execCommand("copy"),document.body.removeChild(e)}};function ri(e){var t=document.createElement("textarea");t.style.width="1px",t.style.height="1px",t.style.top="0px",t.style.left="0px",t.style.position="absolute",t.style.opacity="0.0",document.body.appendChild(t);try{e(t)}catch(e){Tt.warn("Browser does not support document.execCommand('copy') for clipboard operations")}}function oi(t,e){var n,r=Object.keys(t);return Object.getOwnPropertySymbols&&(n=Object.getOwnPropertySymbols(t),e&&(n=n.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})),r.push.apply(r,n)),r}function ii(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?oi(Object(n),!0).forEach(function(e){S()(t,e,n[e])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):oi(Object(n)).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))})}return t}function ai(n,r){return function t(e){if(!Array.isArray(n))return n;return e.map(function(e){return _(e)?e:ii(ii({},e),{},{children:t(e.children)})}).filter(r)}(n)}var ci="checkboxSelection",li="radioSelection";function si(e){e=e.features||{};return!0===e[ci]||!0===e[li]}var ui=new Set;function m(e){ui.has(e)||(ui.add(e),console.warn("[kd-table] transform 用法已经过时,请使用 pipeline 来对表格进行拓展"+"\n 请移除以下 API 的调用:".concat(e)))}function fi(t,e){var n,r=Object.keys(t);return Object.getOwnPropertySymbols&&(n=Object.getOwnPropertySymbols(t),e&&(n=n.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})),r.push.apply(r,n)),r}function di(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?fi(Object(n),!0).forEach(function(e){S()(t,e,n[e])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):fi(Object(n)).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))})}return t}function pi(e,t){return e===t}function hi(){return m("makeAutoRowSpanTransform"),ti(function(e,t){var n=t.dataSource,r=t.range;if(null==(t=e.features)||!t.autoRowSpan)return e;if(!_(e))return e;for(var o="function"==typeof e.features.autoRowSpan?e.features.autoRowSpan:pi,i=[],a=0,c=null,l=null,s=0;s<n.length;s++){var u=n[s],f=L.safeGetValue(e,u,s);if(0===s||!o(c,f,l,u)){for(var d={top:a,bottom:s,left:r.start,right:r.end},p=a;p<s;p++)i.push(d);a=s}c=f,l=u}for(var h=a;h<n.length;h++)i.push({top:a,bottom:n.length,left:r.start,right:r.end});return di(di({},e),{},{getSpanRect:function(e,t,n){return i[n]}})})}function vi(t,e){var n,r=Object.keys(t);return Object.getOwnPropertySymbols&&(n=Object.getOwnPropertySymbols(t),e&&(n=n.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})),r.push.apply(r,n)),r}function gi(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?vi(Object(n),!0).forEach(function(e){S()(t,e,n[e])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):vi(Object(n)).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))})}return t}var yi="auto-width-wrapper",bi="auto-width-expander",mi=e.c.div(d()(["\n height: 100%;\n display: inline-flex;\n align-items: center;\n white-space: nowrap;\n padding: 8px 12px;\n"]));function wi(i,o,e){m("useAutoWidthTransform");var t=Object(y.useState)([]),t=D()(t,2),a=t[0],c=t[1],l=(Object(y.useEffect)(function(){var e=i.current.getDoms().artTable,e=Array.from(e.querySelectorAll(".".concat(T.tableRow)));if(0!==e.length){for(var n,r=[],t=0,o=e;t<o.length;t++)o[t].querySelectorAll(".".concat(yi)).forEach(function(e,t){r[t]=Math.max(null!=(t=r[t])?t:0,e.scrollWidth)});n=a,(e=r).length===n.length&&e.every(function(e,t){return e===n[t]})||c(r)}},e),0),s=ti(function(r){var e,t,n;return _(r)&&null!=(n=r.features)&&n.autoWidth?(e=(n=r.features.autoWidth).max,n=n.min,t=null!=(t=null!=(t=a[l++])?t:r.width)?t:null==o?void 0:o.initColumnWidth,n=Math.max(void 0===n?-1/0:n,Math.min(void 0===e?1/0:e,t)),gi(gi({},r),{},{width:n,getCellProps:function(e,t,n){return j(L.safeGetCellProps(r,t,n),{style:{padding:0}})},render:function(e,t,n){return x.a.createElement(mi,{className:yi,style:null==o?void 0:o.wrapperStyle},L.safeRender(r,t,n))}})):r});return function(e){var t,e=s(e),n=e.columns,e=e.dataSource,r=null!=(t=null==o?void 0:o.expanderVisibility)?t:"visible";return{columns:null!=o&&o.appendExpander?n.concat([{name:"",headerCellProps:{className:bi,style:{background:"hidden"===r?"var(--bgcolor)":void 0,border:"hidden"===r?"none":void 0}},getCellProps:function(){return{className:bi,style:{visibility:r}}}}]):n,dataSource:e}}}function xi(n,r){return m("makeBuildTreeTransform"),function(e){var t=e.columns,e=e.dataSource;return{columns:t,dataSource:_o(n,r,e)}}}function Si(t,e){var n,r=Object.keys(t);return Object.getOwnPropertySymbols&&(n=Object.getOwnPropertySymbols(t),e&&(n=n.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})),r.push.apply(r,n)),r}function Oi(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?Si(Object(n),!0).forEach(function(e){S()(t,e,n[e])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):Si(Object(n)).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))})}return t}function Ei(e){var t=e.hoverColor,a=void 0===t?"var(--hover-bgcolor)":t,n=e.hoverColIndex,c=e.onChangeHoverColIndex;return m("makeColumnHoverTransform"),ti(function(e,t){var r,o,i=t.range;return _(e)?(r=i.start<=n&&n<i.end,o=e.getCellProps,Oi(Oi({},e),{},{getCellProps:function(e,t,n){return j(null==o?void 0:o(e,t,n),{style:{"--bgcolor":r?a:void 0},onMouseEnter:function(){c(i.start)},onMouseLeave:function(){c(-1)}})}})):e})}function ki(){var e=0<arguments.length&&void 0!==arguments[0]?arguments[0]:{},t=e.hoverColor,e=e.defaultHoverColIndex,e=void 0===e?-1:e,e=Object(y.useState)(e),e=D()(e,2);return Ei({hoverColor:t,hoverColIndex:e[0],onChangeHoverColIndex:e[1]})}function ji(t,e){var n,r=Object.keys(t);return Object.getOwnPropertySymbols&&(n=Object.getOwnPropertySymbols(t),e&&(n=n.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})),r.push.apply(r,n)),r}function Ci(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?ji(Object(n),!0).forEach(function(e){S()(t,e,n[e])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):ji(Object(n)).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))})}return t}var Pi={start:-1,end:-1};function Ri(e){var t=e.hoverColor,a=void 0===t?"var(--hover-bgcolor)":t,t=e.headerHoverColor,n=void 0===t?"var(--header-hover-bgcolor)":t,c=e.hoverRange,l=e.onChangeHoverRange;return m("makeColumnRangeHoverTransform"),ti(function(e,t){var r,o=t.range,i=o.end>c.start&&c.end>o.start;return _(e)?(r=e.getCellProps,Ci(Ci({},e),{},{headerCellProps:j(e.headerCellProps,{onMouseEnter:function(){l(o)},onMouseLeave:function(){l(Pi)},style:{"--header-bgcolor":i?n:void 0}}),getCellProps:function(e,t,n){return j(null==r?void 0:r(e,t,n),{onMouseEnter:function(){l(o)},onMouseLeave:function(){l(Pi)},style:{"--bgcolor":i?a:void 0}})}})):null==n?e:Ci(Ci({},e),{},{headerCellProps:j(e.headerCellProps,{onMouseEnter:function(){l(o)},onMouseLeave:function(){l(Pi)},style:{"--header-bgcolor":i?n:void 0}})})})}function Ai(){var e=0<arguments.length&&void 0!==arguments[0]?arguments[0]:{},t=e.hoverColor,n=e.headerHoverColor,e=e.defaultHoverRange,e=void 0===e?Pi:e,e=Object(y.useState)(e),e=D()(e,2);return Ri({hoverColor:t,headerHoverColor:n,hoverRange:e[0],onChangeHoverRange:e[1]})}var wn=t(72),Ti=t.n(wn);function Di(t){return function(e){return e.lift(new Ii(t))}}var Ii=function(){function e(e){this.notifier=e}return e.prototype.call=function(e,t){var e=new _i(e),n=pt(this.notifier,new dt(e));return n&&!e.seenValue?(e.add(n),t.subscribe(e)):e},e}(),_i=function(t){function e(e){e=t.call(this,e)||this;return e.seenValue=!1,e}return c(e,t),e.prototype.notifyNext=function(){this.seenValue=!0,this.complete()},e.prototype.notifyComplete=function(){},e}(He),Mi=["defaultSizes"];function Li(t,e){var n,r=Object.keys(t);return Object.getOwnPropertySymbols&&(n=Object.getOwnPropertySymbols(t),e&&(n=n.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})),r.push.apply(r,n)),r}function Ni(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?Li(Object(n),!0).forEach(function(e){S()(t,e,n[e])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):Li(Object(n)).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))})}return t}var Fi="resize-expander",Hi=e.c.span(d()(["\n position: absolute;\n top: 0;\n bottom: 0;\n right: -5px;\n width: 10px;\n cursor: col-resize;\n z-index: 1;\n"]));function zi(e){function r(n,e){var t,r=e.clientX,o=a[n],e=A(window,"mousemove").pipe(Di(A(window,"mouseup")),R(function(e){var e=e.clientX,t=a.slice();return t[n]=(e=o+(e-r),Math.max(l,Math.min(s,e))),t})),i="";u&&(t=document.documentElement.style,i=t.userSelect,t.userSelect="none"),e.subscribe({next:c,complete:function(){u&&(t.userSelect=i)}})}var a=e.sizes,c=e.onChangeSizes,t=e.minSize,l=void 0===t?40:t,t=e.maxSize,s=void 0===t?1/0:t,n=e.appendExpander,t=e.expanderVisibility,o=void 0===t?"visible":t,u=e.disableUserSelectWhenResizing,i=(m("makeColumnResizeTransform"),ti(function(e,t){var n=t.range;return _(e)?(t=L.safeRenderHeader(e),Ni(Ni({},e),{},{width:a[n.start],title:x.a.createElement(x.a.Fragment,null,t,x.a.createElement(Hi,{className:"resize-handle",onMouseDown:function(e){return r(n.start,e)}})),headerCellProps:Ni(Ni({},e.headerCellProps),{},{style:Ni(Ni({},null==(t=e.headerCellProps)?void 0:t.style),{},{overflow:"visible",position:"relative"})})})):e}));return function(e){var e=i(e),t=e.columns,e=e.dataSource;return{columns:n?t.concat([{name:"",headerCellProps:{className:Fi,style:{background:"hidden"===o?"var(--bgcolor)":void 0,border:"hidden"===o?"none":void 0}},getCellProps:function(){return{className:Fi,style:{visibility:o}}}}]):t,dataSource:e}}}function Bi(e){var t=e.defaultSizes,e=Ti()(e,Mi),t=Object(y.useState)(t),t=D()(t,2);return zi(Ni({sizes:t[0],onChangeSizes:t[1]},e))}function Wi(){return m("makeFlattenTransform"),ti(function(e){var t;return!_(e)&&null!=(t=e.features)&&t.flatten?e.children:e})}function Ki(t,e){var n,r=Object.keys(t);return Object.getOwnPropertySymbols&&(n=Object.getOwnPropertySymbols(t),e&&(n=n.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})),r.push.apply(r,n)),r}function Vi(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?Ki(Object(n),!0).forEach(function(e){S()(t,e,n[e])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):Ki(Object(n)).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))})}return t}function $i(){var n=0<arguments.length&&void 0!==arguments[0]?arguments[0]:1;return m("makeOrderFieldTransform"),ti(function(e){var t;return null!=(t=e.features)&&t.order||null!=(t=e.features)&&t.orderField?Vi(Vi({},e),{},{getValue:function(e,t){return t+n}}):e})}var Gi=["defaultSorts"];function Yi(e,t){var n,r,o,i,a,c,l="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(l)return o=!(r=!0),{s:function(){l=l.call(e)},n:function(){var e=l.next();return r=e.done,e},e:(c=function(e){o=!0,i=e},s.toString=function(){return c.toString()},s),f:function(){try{r||null==l.return||l.return()}finally{if(o)throw i}}};if(Array.isArray(e)||(l=function(e,t){var n;if(e)return"string"==typeof e?Ui(e,t):"Map"===(n="Object"===(n=Object.prototype.toString.call(e).slice(8,-1))&&e.constructor?e.constructor.name:n)||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Ui(e,t):void 0}(e))||t&&e&&"number"==typeof e.length)return l&&(e=l),a=0,{s:t=function(){},n:function(){return a>=e.length?{done:!0}:{done:!1,value:e[a++]}},e:(n=function(e){throw e},u.toString=function(){return n.toString()},u),f:t};throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");function s(e){return c.apply(this,arguments)}function u(e){return n.apply(this,arguments)}}function Ui(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function qi(t,e){var n,r=Object.keys(t);return Object.getOwnPropertySymbols&&(n=Object.getOwnPropertySymbols(t),e&&(n=n.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})),r.push.apply(r,n)),r}function Xi(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?qi(Object(n),!0).forEach(function(e){S()(t,e,n[e])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):qi(Object(n)).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))})}return t}function Zi(e){var t=e.size,t=void 0===t?32:t,n=e.style,r=e.className,e=e.order;return x.a.createElement("svg",{style:n,className:r,focusable:"false",preserveAspectRatio:"xMidYMid meet",width:t,height:t,viewBox:"0 0 32 32","aria-hidden":"true"},x.a.createElement("path",{fill:"asc"===e?"#23A3FF":"#bfbfbf",transform:"translate(0, 4)",d:"M8 8L16 0 24 8z"}),x.a.createElement("path",{fill:"desc"===e?"#23A3FF":"#bfbfbf",transform:"translate(0, -4)",d:"M24 24L16 32 8 24z "}))}function Ji(e){var t=e.children,n=e.column,r=e.onToggle,o=e.sortOrder,i=e.sortIndex,e=e.sortOptions,n="right"===n.align?"flex-end":"center"===n.align?"center":"flex-start";return x.a.createElement(Qi,{onClick:r,style:{justifyContent:n}},t,x.a.createElement(Zi,{style:{userSelect:"none",marginLeft:2,flexShrink:0},size:16,order:o}),"multiple"===e.mode&&-1!=i&&x.a.createElement("div",{style:{userSelect:"none",marginLeft:2,color:"#666",flex:"0 0 auto",fontSize:10,fontFamily:"monospace"}},i+1))}var Qi=e.c.div(d()(["\n cursor: pointer;\n display: flex;\n align-items: center;\n"]));function ea(e){var t=e.sorts,n=e.onChangeSorts,r=e.orders,o=void 0===r?["desc","asc","none"]:r,r=e.mode,r=void 0===r?"multiple":r,i=e.SortHeaderCell,l=void 0===i?Ji:i,a=e.keepDataSource,s=e.highlightColumnWhenActive,u=e.stopClickEventPropagation,i=(m("makeSortTransform"),t.filter(function(e){return"none"!==e.order})),f="multiple"===r?i:i.slice(0,1),d="multiple"===r?n:function(e){var t=e.length;n(e.slice(t-1))},p={sorts:f,onChangeSorts:d,orders:o,mode:r,keepDataSource:a,highlightColumnWhenActive:s,stopClickEventPropagation:u},h=new Map(f.map(function(e,t){return[e.code,Xi({index:t},e)]}));return function(e){var t=e.dataSource,n=e.columns;return{columns:n.map(function e(r){var t=Xi({},r);var n=r.code&&((null==(n=r.features)?void 0:n.sortable)||h.has(r.code));var o=n&&h.has(r.code);{var i,a;n&&(n=-1,i="none",o&&(o=h.get(r.code),a=o.order,o=o.index,i=a,n=o,s)&&(t.headerCellProps=j(r.headerCellProps,{style:{background:"var(--header-highlight-bgcolor)"}}),t.getCellProps=function(e,t,n){t=L.safeGetCellProps(r,t,n);return j(t,{style:{background:"var(--highlight-bgcolor)"}})}),t.title=x.a.createElement(l,{onToggle:function(e){u&&e.stopPropagation(),c(r.code)},sortOrder:i,column:r,sortIndex:n,sortOptions:p},L.safeRenderHeader(r)))}_(r)||(t.children=r.children.map(e));return t}),dataSource:function(e){if(a)return e;var u=new Map(M(n,"leaf-only").filter(function(e){return null!=(null==(e=e.features)?void 0:e.sortable)}).map(function(e){return[e.code,e]}));return Bo(e,function(e,t){var n,r=Yi(f);try{for(r.s();!(n=r.n()).done;){var o=n.value,i=o.code,a=o.order,c=u.get(i);if(null!=c){var l=c.features.sortable,s=("function"==typeof l?l:qo)(L.safeGetValue(c,e,-1),L.safeGetValue(c,t,-1));if(0!==s)return s*("asc"===a?1:-1)}}}catch(e){r.e(e)}finally{r.f()}return 0})}(t)};function c(t){var e,n,r=h.get(t);null==r?d(f.concat([{code:t,order:o[0]}])):(e=f.findIndex(function(e){return e.code===t}),n=f.slice(0,e+1),"none"===(r=function(e){e=o.indexOf(e);return o[e===o.length-1?0:e+1]}(r.order))?n.pop():n[e]=Xi(Xi({},n[e]),{},{order:r}),d(n))}}}function ta(){var e=0<arguments.length&&void 0!==arguments[0]?arguments[0]:{},t=e.defaultSorts,t=void 0===t?[]:t,e=Ti()(e,Gi),t=Object(y.useState)(t),t=D()(t,2);return ea(Xi({sorts:t[0],onChangeSorts:t[1]},e))}var na=e.c.div(d()(["\n display: inline-flex;\n align-items: center;\n"])),ra=Object(e.c)(function(e){return x.a.createElement(na,e)})(d()(["\n &."," {\n cursor: default;\n }\n\n .expansion-icon {\n fill: #999;\n flex: 0 0 16px;\n transition: transform 200ms;\n\n &."," {\n transform-origin: center center;\n transform: rotate(90deg);\n }\n }\n"]),T.leaf,T.expanded);var oa={Loading:function(e){return x.a.createElement("svg",O()({width:"16",height:"16",fill:"currentColor",viewBox:"0 0 1024 1024"},e),x.a.createElement("path",{d:"M512 74.667c-17.067 0-32 14.933-32 32V256c0 17.067 14.933 32 32 32s32-14.933 32-32V106.667c0-17.067-14.933-32-32-32zm181.333 288c8.534 0 17.067-2.134 23.467-8.534L821.333 249.6c12.8-12.8 12.8-32 0-44.8-12.8-12.8-32-12.8-44.8 0L672 309.333c-12.8 12.8-12.8 32 0 44.8 4.267 6.4 12.8 8.534 21.333 8.534zm224 117.333H768c-17.067 0-32 14.933-32 32s14.933 32 32 32h149.333c17.067 0 32-14.933 32-32s-14.933-32-32-32zM714.667 669.867c-12.8-12.8-32-12.8-44.8 0s-12.8 32 0 44.8L774.4 819.2c6.4 6.4 14.933 8.533 23.467 8.533s17.066-2.133 23.466-8.533c12.8-12.8 12.8-32 0-44.8L714.667 669.867zM512 736c-17.067 0-32 14.933-32 32v149.333c0 17.067 14.933 32 32 32s32-14.933 32-32V768c0-17.067-14.933-32-32-32zm-202.667-66.133L204.8 774.4c-12.8 12.8-12.8 32 0 44.8 6.4 6.4 14.933 8.533 23.467 8.533s17.066-2.133 23.466-8.533l104.534-104.533c12.8-12.8 12.8-32 0-44.8s-36.267-12.8-46.934 0zM288 512c0-17.067-14.933-32-32-32H106.667c-17.067 0-32 14.933-32 32s14.933 32 32 32H256c17.067 0 32-14.933 32-32zm-40.533-309.333c-12.8-12.8-32-12.8-44.8 0-12.8 12.8-12.8 32 0 44.8L307.2 352c6.4 6.4 14.933 8.533 23.467 8.533s17.066-2.133 23.466-8.533c12.8-12.8 12.8-32 0-44.8L247.467 202.667z"}))},CaretDown:function(e){return x.a.createElement("svg",O()({focusable:"false",preserveAspectRatio:"xMidYMid meet",fill:"currentColor",width:"16",height:"16",viewBox:"0 0 32 32"},e),x.a.createElement("path",{d:"M24 12L16 22 8 12z"}))},CaretRight:function(e){return x.a.createElement("svg",O()({focusable:"false",preserveAspectRatio:"xMidYMid meet",fill:"currentColor",width:"16",height:"16",viewBox:"0 0 32 32"},e),x.a.createElement("path",{d:"M12 8L22 16 12 24z"}))},Info:function(e){return x.a.createElement("svg",O()({focusable:"false",preserveAspectRatio:"xMidYMid meet",fill:"currentColor",width:"16",height:"16",viewBox:"0 0 16 16"},e),x.a.createElement("path",{d:"M8.5 11L8.5 6.5 6.5 6.5 6.5 7.5 7.5 7.5 7.5 11 6 11 6 12 10 12 10 11zM8 3.5c-.4 0-.8.3-.8.8S7.6 5 8 5c.4 0 .8-.3.8-.8S8.4 3.5 8 3.5z"}),x.a.createElement("path",{d:"M8,15c-3.9,0-7-3.1-7-7s3.1-7,7-7s7,3.1,7,7S11.9,15,8,15z M8,2C4.7,2,2,4.7,2,8s2.7,6,6,6s6-2.7,6-6S11.3,2,8,2z"}))}},ia=e.c.div(d()(["\n &.","{\n border: 1px solid #e9ecf1;\n border-radius: 2px;\n background-color: #Fff;\n box-shadow: 0px 0px 5px 0px rgb(154 154 154 / 50%);\n cursor: default;\n font-size: 12px;\n position:absolute;\n z-index: 1050;\n max-width: 600px;\n padding: 8px 0;\n }\n\n .","{\n width:100%;\n display: table;\n }\n\n ."," .","{\n display: table-row;\n color: #212121;\n }\n\n ."," .","{\n background-color: var(--hover-bgcolor);\n }\n\n ."," ."," .","{\n display: table-cell;\n padding: 8px 12px;\n max-width: 576px;\n overflow: hidden;\n white-space: nowrap;\n text-overflow: ellipsis;\n line-height: 16px;\n }\n ."," .",".","{\n opacity: .5;\n }\n\n"]),h.menu,h.menuList,h.menuList,h.menuOption,h.menuList,h.menuOptionActive,h.menuList,h.menuOption,h.menuOptionText,h.menuList,h.menuOption,h.menuOptionDisable);function aa(t,e){var n,r=Object.keys(t);return Object.getOwnPropertySymbols&&(n=Object.getOwnPropertySymbols(t),e&&(n=n.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})),r.push.apply(r,n)),r}function ca(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?aa(Object(n),!0).forEach(function(e){S()(t,e,n[e])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):aa(Object(n)).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))})}return t}var la=e.c.div(d()(["\n display: flex;\n align-items: center;\n\n .tip-icon-wrapper {\n margin-left: 2px;\n }\n\n .tip-icon {\n display: flex;\n fill: currentColor;\n }\n"]));function sa(e){var n=e.Balloon,r=e.Tooltip;return m("makeTipsTransform"),ti(function(e){var t;return null!=(t=e.features)&&t.tips?(t="right"===e.align?"flex-end":"center"===e.align?"center":"flex-start",ca(ca({},e),{},{title:x.a.createElement(la,{style:{justifyContent:t}},L.safeRenderHeader(e),n?x.a.createElement(n,{closable:!1,trigger:x.a.createElement("div",{className:"tip-icon-wrapper"},x.a.createElement(oa.Info,{className:"tip-icon"}))},e.features.tips):x.a.createElement(r,{title:e.features.tips},x.a.createElement("div",{className:"tip-icon-wrapper"},x.a.createElement(oa.Info,{className:"tip-icon"}))))})):e})}var xn=t(73),ua=t.n(xn);function fa(t,e){var n,r=Object.keys(t);return Object.getOwnPropertySymbols&&(n=Object.getOwnPropertySymbols(t),e&&(n=n.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})),r.push.apply(r,n)),r}function da(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){S()(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 pa(e,t){var n,r,o,i,a="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(a)return r=!(n=!0),{s:function(){a=a.call(e)},n:function(){var e=a.next();return n=e.done,e},e:function(e){r=!0,o=e},f:function(){try{n||null==a.return||a.return()}finally{if(r)throw o}}};if(Array.isArray(e)||(a=function(e,t){var n;if(e)return"string"==typeof e?ha(e,t):"Map"===(n="Object"===(n=Object.prototype.toString.call(e).slice(8,-1))&&e.constructor?e.constructor.name:n)||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?ha(e,t):void 0}(e))||t&&e&&"number"==typeof e.length)return a&&(e=a),i=0,{s:t=function(){},n:function(){return i>=e.length?{done:!0}:{done:!1,value:e[i++]}},e:function(e){throw e},f:t};throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function ha(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}var va=Symbol("treeMetaSymbol"),ga="treeModeOptions";function ya(){var w=0<arguments.length&&void 0!==arguments[0]?arguments[0]:{};return function(o){function n(e,t,n){var r;null!=(r=w.onChangeOpenKeys)&&r.call(w,e,t,n),o.setStateAtKey(i,e,{key:t,action:n})}var e,i="treeMode",t=o.ctx,h=o.ensurePrimaryKey("treeMode"),r=null!=(e=null!=(e=null!=(e=w.openKeys)?e:o.getStateAtKey(i))?e:w.defaultOpenKeys)?e:[],a=o.getStateAtKey("sort"),v=new Set(r),l=function(t){v.has(t)?n(r.filter(function(e){return e!==t}),t,"collapse"):n([].concat(I()(r),[t]),t,"expand")},g=null!=(e=w.isLeafNode)?e:_,s=null!=(e=w.clickArea)?e:"cell",y=null!=(e=w.treeMetaKey)?e:va,u=Boolean(w.stopClickEventPropagation),f=t.indents.iconWidth,d=null!=(e=w.iconIndent)?e:t.indents.iconIndent,p=null!=(e=w.iconGap)?e:t.indents.iconGap,b=null!=(e=w.indentSize)?e:t.indents.indentSize,m=(o.setFeatureOptions(ga,{iconWidth:f,iconIndent:d,iconGap:p,indentSize:b,treeMetaKey:y,isExpanded:function(e){return v.has(e)},onExpand:function(e){n([].concat(I()(r),[e]),e,"expand")},onCollapse:function(t){n(r.filter(function(e){return e!==t}),t,"collapse")}}),w.icon);return o.mapDataSource(function(e){if(o.isSameInputDataSource()&&r===o.getFeatureOptions("lastOpenKeys")&&a===o.getFeatureOptions("lastSort"))return o.getFeatureOptions("lastTreeMode");o.setFeatureOptions("lastOpenKeys",r),o.setFeatureOptions("lastSort",a);var p=[];return function e(t,n,r){var o=2<arguments.length&&void 0!==r?r:null;if(null!=t){var i,a=pa(t);try{for(a.s();!(i=a.n()).done;){var c=i.value,l=L.safeGetRowKey(h,c,-1),s=o?L.safeGetRowKey(h,o,-1):null,u=v.has(l),f=g(c,{depth:n,expanded:u,rowKey:l}),d={depth:n,isLeaf:f,expanded:u,rowKey:l,parentRowKey:s};p.push(da(S()({},y,d),c)),!f&&u&&e(c.children,n+1,c)}}catch(e){a.e(e)}finally{a.f()}}}(e,0),o.setFeatureOptions("lastTreeMode",p),p}).mapColumns(function(e){if(0===e.length)return e;var t=e.findIndex(function(e){e=e.code;return e&&w.expandColCode===e}),c=e[t=-1===t?0:t];return e[t]=da(da({},c),{},{title:x.a.createElement("span",{style:{marginLeft:d+f+p,display:"flex"}},L.safeRenderHeader(c)),render:function(e,t,n){var r,o,i,a,n=L.safeRender(c,t,n);return null==t[y]?n:(t=t[y],r=t.rowKey,o=t.depth,i=t.isLeaf,t=t.expanded,o=d+o*b,i?x.a.createElement(na,{className:P()("expansion-cell",T.leaf)},x.a.createElement("span",{style:{marginLeft:o+f+p}},n)):(i=function(e){u&&e.stopPropagation(),l(r)},a=t?T.expanded:T.collapsed,x.a.createElement(ra,{className:P()("expansion-cell",a),style:{cursor:"content"===s?"pointer":void 0},onClick:"content"===s?i:void 0},m?x.a.createElement(m,{expanded:t,style:{cursor:"icon"===s?"pointer":void 0,marginLeft:o,marginRight:p,width:f},onClick:"icon"===s?i:void 0}):x.a.createElement(oa.CaretRight,{className:P()("expansion-icon",a),style:{cursor:"icon"===s?"pointer":void 0,marginLeft:o,marginRight:p},onClick:"icon"===s?i:void 0}),n)))},getCellProps:function(e,t,n){var r,o,n=L.safeGetCellProps(c,t,n);return null==t[y]||"cell"!==s?j(n,{className:T.tableExtendCell}):(r=(t=t[y]).isLeaf,o=t.rowKey,j(n,r?{className:T.tableExtendCell}:{onClick:function(e){u&&e.stopPropagation(),l(o)},style:{cursor:"pointer"},className:T.tableExtendCell}))}}),I()(e)})}}var ba=["defaultOpenKeys"];function ma(t,e){var n,r=Object.keys(t);return Object.getOwnPropertySymbols&&(n=Object.getOwnPropertySymbols(t),e&&(n=n.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})),r.push.apply(r,n)),r}function wa(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?ma(Object(n),!0).forEach(function(e){S()(t,e,n[e])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):ma(Object(n)).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))})}return t}function xa(e,t){var n,r,o,i,a="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(a)return r=!(n=!0),{s:function(){a=a.call(e)},n:function(){var e=a.next();return n=e.done,e},e:function(e){r=!0,o=e},f:function(){try{n||null==a.return||a.return()}finally{if(r)throw o}}};if(Array.isArray(e)||(a=function(e,t){var n;if(e)return"string"==typeof e?Sa(e,t):"Map"===(n="Object"===(n=Object.prototype.toString.call(e).slice(8,-1))&&e.constructor?e.constructor.name:n)||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Sa(e,t):void 0}(e))||t&&e&&"number"==typeof e.length)return a&&(e=a),i=0,{s:t=function(){},n:function(){return i>=e.length?{done:!0}:{done:!1,value:e[i++]}},e:function(e){throw e},f:t};throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function Sa(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}var Oa=16;function Ea(e){function c(t){y.has(t)?n(r.filter(function(e){return e!==t}),t,"collapse"):n([].concat(I()(r),[t]),t,"expand")}var n=e.onChangeOpenKeys,r=e.openKeys,f=e.primaryKey,t=e.iconIndent,l=void 0===t?-6:t,t=e.iconGap,s=void 0===t?0:t,t=e.indentSize,d=void 0===t?16:t,t=e.isLeafNode,p=void 0===t?_:t,t=e.clickArea,h=void 0===t?"cell":t,t=e.treeMetaKey,v=void 0===t?va:t,g=e.stopClickEventPropagation,y=(m("makeTreeModeTransform"),new Set(r));return function(e){var u,t=e.columns,e=e.dataSource;return{columns:function(e){if(0===e.length)return e;var e=ua()(e),a=e[0],e=e.slice(1);return[wa(wa({},a),{},{title:x.a.createElement("span",{style:{marginLeft:l+Oa+s}},L.safeRenderHeader(a)),render:function(e,t,n){var r,o,i,n=L.safeRender(a,t,n);return null==t[v]?n:(t=t[v],r=t.rowKey,o=t.depth,i=t.isLeaf,t=t.expanded,o=l+o*d,i?x.a.createElement(na,{className:"expansion-cell leaf"},x.a.createElement("span",{style:{marginLeft:o+Oa+s}},n)):(i=function(e){g&&e.stopPropagation(),c(r)},t=t?"expanded":"collapsed",x.a.createElement(ra,{className:P()("expansion-cell",t),style:{cursor:"content"===h?"pointer":void 0},onClick:"content"===h?i:void 0},x.a.createElement(oa.CaretRight,{className:P()("expansion-icon",t),style:{cursor:"icon"===h?"pointer":void 0,marginLeft:o,marginRight:s},onClick:"icon"===h?i:void 0}),n)))},getCellProps:"cell"===h?function(e,t,n){var r,o,n=L.safeGetCellProps(a,t,n);return null==t[v]||(r=(t=t[v]).isLeaf,o=t.rowKey,r)?n:j(n,{onClick:function(e){g&&e.stopPropagation(),c(o)},style:{cursor:"pointer"}})}:a.getCellProps})].concat(I()(e))}(t),dataSource:(u=[],function e(t,n){if(null!=t){var r,o=xa(t);try{for(o.s();!(r=o.n()).done;){var i=r.value,a=i[f],c=y.has(a),l=p(i,{depth:n,expanded:c,rowKey:a}),s={depth:n,isLeaf:l,expanded:c,rowKey:a};u.push(wa(S()({},v,s),i)),!l&&c&&e(i.children,n+1)}}catch(e){o.e(e)}finally{o.f()}}}(e,0),u)}}}function ka(e){var t=e.defaultOpenKeys,t=void 0===t?[]:t,e=Ti()(e,ba),t=Object(y.useState)(t),t=D()(t,2);return Ea(wa({openKeys:t[0],onChangeOpenKeys:t[1]},e))}function ja(t,e){var n,r=Object.keys(t);return Object.getOwnPropertySymbols&&(n=Object.getOwnPropertySymbols(t),e&&(n=n.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})),r.push.apply(r,n)),r}function Ca(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?ja(Object(n),!0).forEach(function(e){S()(t,e,n[e])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):ja(Object(n)).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))})}return t}function Pa(e){m("makeVisibleTransform");var t=new Set(e);return ti(function(e){return!_(e)||t.has(e.code)?e:Ca(Ca({},e),{},{hidden:!0})})}function Ra(t,e){var n,r=Object.keys(t);return Object.getOwnPropertySymbols&&(n=Object.getOwnPropertySymbols(t),e&&(n=n.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})),r.push.apply(r,n)),r}function Aa(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?Ra(Object(n),!0).forEach(function(e){S()(t,e,n[e])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):Ra(Object(n)).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))})}return t}function Ta(e,t){return e===t}function Da(){return function(e){var v=e.getDataSource();return e.mapColumns(Uo(function(e,t){var n=t.startIndex,r=t.endIndex;if(null==(t=e.features)||!t.autoRowSpan)return e;if(!_(e))return e;for(var o="function"==typeof e.features.autoRowSpan?e.features.autoRowSpan:Ta,i=[],a=0,c=null,l=null,s=0;s<v.length;s++){var u=v[s],f=L.safeGetValue(e,u,s);if(0===s||!o(c,f,l,u)){for(var d={top:a,bottom:s,left:n,right:r},p=a;p<s;p++)i.push(d);a=s}c=f,l=u}for(var h=a;h<v.length;h++)i.push({top:a,bottom:v.length,left:n,right:r});return Aa(Aa({},e),{},{getSpanRect:function(e,t,n){return i[n]}})}))}}function Ia(t,n){return function(e){return e.mapDataSource(function(e){return _o(t,n,e)})}}function _a(t,e){var n,r=Object.keys(t);return Object.getOwnPropertySymbols&&(n=Object.getOwnPropertySymbols(t),e&&(n=n.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})),r.push.apply(r,n)),r}function Ma(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?_a(Object(n),!0).forEach(function(e){S()(t,e,n[e])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):_a(Object(n)).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))})}return t}function La(){var r=0<arguments.length&&void 0!==arguments[0]?arguments[0]:{},o="columnHover";return function(n){function a(e){var t;n.setStateAtKey(o,e),null!=(t=r.onChangeHoverColIndex)&&t.call(r,e)}var e,c=null!=(e=r.hoverColor)?e:"var(--hover-bgcolor)",l=null!=(e=null!=(e=null!=(e=r.hoverColIndex)?e:n.getStateAtKey(o))?e:r.defaultHoverColIndex)?e:-1;return n.mapColumns(Uo(function(e,t){var r,o,i={start:t.startIndex,end:t.endIndex};return _(e)?(r=i.start<=l&&l<i.end,o=e.getCellProps,Ma(Ma({},e),{},{getCellProps:function(e,t,n){return j(null==o?void 0:o(e,t,n),{style:{"--bgcolor":r?c:void 0},onMouseEnter:function(){a(i.start)},onMouseLeave:function(){a(-1)}})}})):e}))}}function Na(t,e){var n,r=Object.keys(t);return Object.getOwnPropertySymbols&&(n=Object.getOwnPropertySymbols(t),e&&(n=n.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})),r.push.apply(r,n)),r}function Fa(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?Na(Object(n),!0).forEach(function(e){S()(t,e,n[e])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):Na(Object(n)).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))})}return t}var Ha={start:-1,end:-1};function za(){var r=0<arguments.length&&void 0!==arguments[0]?arguments[0]:{},o="columnHover";return function(n){function a(e){var t;n.setStateAtKey(o,e),null!=(t=r.onChangeHoverRange)&&t.call(r,e)}var e,c=null!=(e=null!=(e=null!=(e=r.hoverRange)?e:n.getStateAtKey(o))?e:r.defaultHoverRange)?e:Ha,l=null!=(e=r.hoverColor)?e:"var(--hover-bgcolor)",s=null!=(e=r.headerHoverColor)?e:"var(--header-hover-bgcolor)";return n.mapColumns(Uo(function(e,t){var r,o={start:t.startIndex,end:t.endIndex},i=o.end>c.start&&c.end>o.start;return _(e)?(r=e.getCellProps,Fa(Fa({},e),{},{headerCellProps:j(e.headerCellProps,{onMouseEnter:function(){a(o)},onMouseLeave:function(){a(Ha)},style:{"--header-bgcolor":i?s:void 0}}),getCellProps:function(e,t,n){return j(null==r?void 0:r(e,t,n),{onMouseEnter:function(){a(o)},onMouseLeave:function(){a(Ha)},style:{"--bgcolor":i?l:void 0}})}})):null==s?e:Fa(Fa({},e),{},{headerCellProps:j(e.headerCellProps,{onMouseEnter:function(){a(o)},onMouseLeave:function(){a(Ha)},style:{"--header-bgcolor":i?s:void 0}})})}))}}function Ba(t,e){var n,r=Object.keys(t);return Object.getOwnPropertySymbols&&(n=Object.getOwnPropertySymbols(t),e&&(n=n.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})),r.push.apply(r,n)),r}function Wa(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?Ba(Object(n),!0).forEach(function(e){S()(t,e,n[e])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):Ba(Object(n)).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))})}return t}var Ka="fullRowsSetKey",Va="allEnableKeys",$a="selectValueSetKey";function Ga(){var b=0<arguments.length&&void 0!==arguments[0]?arguments[0]:{};return function(l){var i="multiSelect",a=l.ctx.components.Checkbox;if(null==a)throw new Error("使用 multiSelect 之前需要设置 pipeline.ctx.components.Checkbox");var e,t,n,s=l.ensurePrimaryKey("multiSelect"),u=null!=(t=b.isDisabled)?t:Po(!1),f=null!=(t=b.clickArea)?t:"checkbox",c=null!=(t=null!=(t=null!=(t=b.value)?t:null==(t=l.getStateAtKey(i))?void 0:t.value)?t:b.defaultValue)?t:[],d=null!=(t=null!=(t=null!=(t=b.lastKey)?t:null==(t=l.getStateAtKey(i))?void 0:t.lastKey)?t:b.defaultLastKey)?t:"",p=function(e,t,n,r){var o;null!=(o=b.onChange)&&o.call(b,e,t,n,r),l.setStateAtKey(i,{value:e,lastKey:t},{keys:n,action:r})},r=new Set,o=[],h=new Set(c),v=0!==h.size,g=!1;return M(l.getDataSource()).forEach(function(e,t){var n=L.safeGetRowKey(s,e,t);r.add(n),u(e,t)||(o.push(n),v=v&&h.has(n),g=g||h.has(n))}),b.checkboxColumn&&!0===b.checkboxColumn.hidden||(t=Wa(Wa({name:"是否选中",title:x.a.createElement(a,{checked:v,indeterminate:!v&&g,onChange:function(e){var t=l.getFeatureOptions(Va);v?p(Co.diff(c,t),"",t,"uncheck-all"):p(Co.merge(c,t),"",t,"check-all")}}),width:50,align:"center"},b.checkboxColumn),{},{getCellProps:function(e,t,n){var r,o=L.safeGetRowKey(s,t,n),i={},a=null==(c=b.checkboxColumn)||null==(a=c.getCellProps)?void 0:a.call(c,e,t,n),c=l.getFeatureOptions(Ka)||new Set,e=l.getFeatureOptions($a)||new Set;return c.has(o)&&"cell"===f&&(r=e.has(o),i={style:{cursor:(c=u(t,n))?"not-allowed":"pointer"},onClick:c?void 0:function(e){b.stopClickEventPropagation&&e.stopPropagation(),y(r,o,e.shiftKey)}}),j(a,i)},render:function(e,t,n){var r,o;return t[l.getFeatureOptions("footerRowMetaKey")]?null:(r=L.safeGetRowKey(s,t,n),o=(l.getFeatureOptions($a)||new Set).has(r),x.a.createElement(a,{checked:o,disabled:u(t,n),onChange:"checkbox"===f?function(e,t){t=null!=(t=null==t?void 0:t.nativeEvent)?t:e.nativeEvent;t&&(b.stopClickEventPropagation&&t.stopPropagation(),y(o,r,t.shiftKey))}:void 0}))},features:Wa(Wa({},null==(t=b.checkboxColumn)?void 0:t.features),{},S()({},ci,!0))}),n=l.getColumns().slice(),"start"===(null!=(e=b.checkboxPlacement)?e:"start")?n.unshift(t):n.push(t),l.columns(n)),l.appendRowPropsGetter(function(e,t){var n,r,o,i,a=L.safeGetRowKey(s,e,t);if((l.getFeatureOptions(Ka)||new Set).has(a))return n={},i=(l.getFeatureOptions($a)||new Set).has(a),b.highlightRowWhenSelected&&i&&(r="highlight"),"row"!==f||u(e,t)||(n.cursor="pointer",o=function(e){b.stopClickEventPropagation&&e.stopPropagation(),y(i,a,e.shiftKey)}),{className:r,style:n,onClick:o}}),l.setFeatureOptions(Ka,r),l.setFeatureOptions(Va,o),l.setFeatureOptions($a,h),h=o=r=null,l;function y(e,t,n){var r,o,i=[t];n&&d&&(r=(o=(n=l.getFeatureOptions(Va)).indexOf(d))<(r=n.indexOf(t))?[o,r]:[r,o],r=(o=D()(r,2))[0],o=o[1],i=n.slice(r,o+1)),e?p(Co.diff(c,i),t,i,"uncheck"):p(Co.merge(c,i),t,i,"check")}}}function Ya(t,e){var n,r=Object.keys(t);return Object.getOwnPropertySymbols&&(n=Object.getOwnPropertySymbols(t),e&&(n=n.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})),r.push.apply(r,n)),r}function Ua(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?Ya(Object(n),!0).forEach(function(e){S()(t,e,n[e])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):Ya(Object(n)).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))})}return t}var qa=Symbol("row-detail"),Xa=function(){return x.a.createElement("div",{style:{margin:"8px 24px"}},x.a.createElement("b",{style:{color:"indianred"}},"设置 ",x.a.createElement("code",null,"rowDetail.renderDetail")," 来自定义详情内容"))};function Za(){var m=0<arguments.length&&void 0!==arguments[0]?arguments[0]:{};return function(s){function e(e,t,n){var r;null!=(r=m.onChangeOpenKeys)&&r.call(m,e,t,n),s.setStateAtKey("rowDetail",e,{key:t,action:n})}var t,u=null!=(t=m.rowDetailMetaKey)?t:qa,f=s.ensurePrimaryKey("rowDetail"),d=s.ctx.indents,p=d.iconIndent+d.iconWidth+d.iconGap,h=null!=(t=m.clickArea)?t:"cell",n=null!=(t=m.getDetailKey)?t:function(e,t){return L.safeGetRowKey(f,e,t)+"_detail"},v=null!=(t=m.renderDetail)?t:Xa,g=null!=(t=m.hasDetail)?t:Po(!0),r=null!=(t=null!=(t=null!=(t=m.openKeys)?t:s.getStateAtKey("rowDetail"))?t:m.defaultOpenAll?s.getDataSource().filter(g).map(function(e,t){return L.safeGetRowKey(f,e,t)}):m.defaultOpenKeys)?t:[],y=new Set(r),b=function(t){y.has(t)?e(r.filter(function(e){return e!==t}),t,"collapse"):e([].concat(I()(r),[t]),t,"expand")},o="string"==typeof f?f:u.toString()+"PrimaryKey";return s.dataSource(jo(s.getDataSource(),function(e,t){return y.has(L.safeGetRowKey(f,e,t))?[e,Ua(Ua(S()({},u,!0),e),{},S()({},o,n(e,t)))]:[e]})).columns(function(e){if(0===e.length)return e;var c=0;if(m.expandColumnCode&&(c=e.findIndex(function(e){return e.code===m.expandColumnCode}))<0)return Tt.warn("没找到可展开的列,请检查设置的展开列code"),e;var l=e[c],e=I()(e),t=ua()(e),o=t[0];t.slice(1);return e[0]=Ua(Ua({},o),{},{render:function(e,t,n){var r;return t[u]?"function"==typeof(r=uo("rowDetail"))?r({row:t,rowIndex:n,domHelper:s.ref.current.domHelper,renderDetail:v}):v(t,n):L.safeRender(o,t,n)},getSpanRect:function(e,t,n){if(t[u])return{top:n,bottom:n+1,left:0,right:M(s.getColumns(),"leaf-only").length}}}),e[c]=Ua(Ua({},l),{},{title:x.a.createElement("div",{style:{display:"inline-block",marginLeft:p}},L.safeRenderHeader(l)),render:function(e,t,n){var r,o,i,a;return t[u]?0!==c?void 0:"function"==typeof(r=uo("rowDetail"))?r({row:t,rowIndex:n,domHelper:s.ref.current.domHelper,renderDetail:v}):v(t,n):(r=L.safeRender(l,t,n),g(t,n)?(o=L.safeGetRowKey(f,t,n),t=function(e){m.stopClickEventPropagation&&e.stopPropagation(),b(o)},i=(n=y.has(o))?T.expanded:T.collapsed,a=m.expandIcon,x.a.createElement(ra,{className:P()("expansion-cell",i),style:{cursor:"content"===h?"pointer":void 0},onClick:"content"===h?t:void 0},m.expandIcon?x.a.createElement(a,{expanded:n,onClick:"icon"===h?t:void 0}):x.a.createElement(oa.CaretRight,{style:{cursor:"icon"===h?"pointer":void 0,marginLeft:d.iconIndent,marginRight:d.iconGap},className:P()("expansion-icon",i),onClick:"icon"===h?t:void 0}),r)):x.a.createElement(na,{style:{marginLeft:p}},r))},getCellProps:"cell"===h?function(e,t,n){var r;return t[u]?{style:Ua({"--cell-padding":"0",overflow:"hidden"},m.detailCellStyle)}:(r=null==(r=l.getCellProps)?void 0:r.call(l,e,t,n),g(t,n)?j(r,{onClick:function(e){m.stopClickEventPropagation&&e.stopPropagation(),b(L.safeGetRowKey(f,t,n))},style:{cursor:"pointer"}}):r)}:l.getCellProps,getSpanRect:function(e,t,n){if(t[u])return{top:n,bottom:n+1,left:0,right:M(s.getColumns(),"leaf-only").length}}}),e}(s.getColumns())).appendRowPropsGetter(function(e){if(e[u])return{className:"no-hover","data-row-detail-key":e[o]}})}}function Ja(t,e){var n,r=Object.keys(t);return Object.getOwnPropertySymbols&&(n=Object.getOwnPropertySymbols(t),e&&(n=n.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})),r.push.apply(r,n)),r}function Qa(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?Ja(Object(n),!0).forEach(function(e){S()(t,e,n[e])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):Ja(Object(n)).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))})}return t}var ec=Symbol("row-grouping-meta");function tc(e){return null==e[ec]?{isGroupHeader:!1,expandable:!1}:{isGroupHeader:!0,expandable:e[ec].expandable}}function nc(e){if(tc(e).isGroupHeader)return{className:"alternative"}}function rc(){var p=0<arguments.length&&void 0!==arguments[0]?arguments[0]:{};return function(o){var e,i="rowGrouping",a=o.ctx.indents,c=a.iconIndent+a.iconWidth+a.iconGap,s=o.ensurePrimaryKey("rowGrouping");if("string"!=typeof s)throw new Error("rowGrouping 仅支持字符串作为 primaryKey");var u=null!=(e=null!=(e=null!=(e=p.openKeys)?e:o.getStateAtKey(i))?e:p.defaultOpenAll?o.getDataSource().map(function(e){return e[s]}):p.defaultOpenKeys)?e:[],f=new Set(u),d=function(e,t,n){var r;null!=(r=p.onChangeOpenKeys)&&r.call(p,e,t,n),o.setStateAtKey(i,e,{key:t,action:n})};return o.mapDataSource(function(e){return jo(e,function(e){var t=[(t=e,Qa(S()({},ec,{expandable:!_(t)}),t))];return t=f.has(e[s])&&Array.isArray(e.children)?t.concat(e.children):t})}).mapColumns(function(e){if(0===e.length)return e;var r=M(e,"leaf-only").length,e=ua()(e),l=e[0],e=e.slice(1);return[Qa(Qa({},l),{},{title:x.a.createElement("div",{style:{display:"inline-block",marginLeft:c}},L.safeRenderHeader(l)),render:function(e,t,n){var r,n=L.safeRender(l,t,n),o=tc(t);return o.isGroupHeader&&o.expandable?(r=f.has(t[s])?T.expanded:T.collapsed,x.a.createElement(ra,{className:P()("expansion-cell",r)},x.a.createElement(oa.CaretRight,{className:P()("expansion-icon",r),style:{marginLeft:a.iconIndent,marginRight:a.iconGap}}),null!=(r=t.groupTitle)?r:n)):(r=c+(o.isGroupHeader?0:a.indentSize),x.a.createElement(na,{style:{marginLeft:r}},o.isGroupHeader&&null!=(r=t.groupTitle)?r:n))},getCellProps:function(e,t,n){var r,o,i,a,c=tc(t);if(c.isGroupHeader)return c=c.expandable,o=t[s],i=f.has(o),c&&(a=function(e){p.stopClickEventPropagation&&e.stopPropagation(),i?d(u.filter(function(e){return e!==o}),o,"collapse"):d([].concat(I()(u),[o]),o,"expand")}),j(null==(r=l.getCellProps)?void 0:r.call(l,e,t,n),{onClick:a,style:{cursor:c?"pointer":void 0}})},getSpanRect:function(e,t,n){if(tc(t).isGroupHeader)return{top:n,bottom:n+1,left:0,right:r}}})].concat(I()(e))}).appendRowPropsGetter(nc)}}function oc(t,e){var n,r=Object.keys(t);return Object.getOwnPropertySymbols&&(n=Object.getOwnPropertySymbols(t),e&&(n=n.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})),r.push.apply(r,n)),r}function ic(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?oc(Object(n),!0).forEach(function(e){S()(t,e,n[e])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):oc(Object(n)).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))})}return t}function ac(){var f=0<arguments.length&&void 0!==arguments[0]?arguments[0]:{};return function(o){var e,i=o.ctx.components.Radio;if(null==i)throw new Error("使用 singleSelect 之前需要通过 pipeline context 设置 components.Radio");function a(e){var t;null!=(t=f.onChange)&&t.call(f,e),o.setStateAtKey(n,e)}var n="singleSelect",c=null!=(t=f.clickArea)?t:"radio",l=null!=(t=f.isDisabled)?t:Po(!1),s=o.ensurePrimaryKey("singleSelect"),u=null!=(t=null!=(t=f.value)?t:o.getStateAtKey(n))?t:f.defaultValue,t=ic(ic({name:"",width:50,align:"center"},f.radioColumn),{},{getCellProps:function(e,t,n){var r,o,i=null==(o=f.radioColumn)||null==(i=o.getCellProps)?void 0:i.call(o,e,t,n);return"cell"===c?(r=L.safeGetRowKey(s,t,n),j(i,{style:{cursor:(o=l(t,n))?"not-allowed":"pointer"},onClick:o?void 0:function(e){f.stopClickEventPropagation&&e.stopPropagation(),a(r)}})):i},render:function(e,t,n){var r;return t[o.getFeatureOptions("footerRowMetaKey")]?null:(r=L.safeGetRowKey(s,t,n),x.a.createElement(i,{checked:u===r,disabled:l(t,n),onChange:"radio"===c?function(e,t){t=null!=(t=null==t?void 0:t.nativeEvent)?t:null==e?void 0:e.nativeEvent;t&&f.stopClickEventPropagation&&t.stopPropagation(),a(r)}:void 0}))},features:ic(ic({},null==(t=f.radioColumn)?void 0:t.features),{},S()({},li,!0))}),r=o.getColumns().slice();return"start"===(null!=(e=f.radioPlacement)?e:"start")?r.unshift(t):r.push(t),o.columns(r),o.appendRowPropsGetter(function(e,t){var n,r,o=L.safeGetRowKey(s,e,t),i={};return f.highlightRowWhenSelected&&u===o&&(n="highlight"),"row"!==c||l(e,t)||(i.cursor="pointer",r=function(e){f.stopClickEventPropagation&&e.stopPropagation(),a(o)}),{className:n,style:i,onClick:r}}),o}}function cc(e,t){var n,r,o,i,a,c,l="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(l)return o=!(r=!0),{s:function(){l=l.call(e)},n:function(){var e=l.next();return r=e.done,e},e:(c=function(e){o=!0,i=e},s.toString=function(){return c.toString()},s),f:function(){try{r||null==l.return||l.return()}finally{if(o)throw i}}};if(Array.isArray(e)||(l=function(e,t){var n;if(e)return"string"==typeof e?lc(e,t):"Map"===(n="Object"===(n=Object.prototype.toString.call(e).slice(8,-1))&&e.constructor?e.constructor.name:n)||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?lc(e,t):void 0}(e))||t&&e&&"number"==typeof e.length)return l&&(e=l),a=0,{s:t=function(){},n:function(){return a>=e.length?{done:!0}:{done:!1,value:e[a++]}},e:(n=function(e){throw e},u.toString=function(){return n.toString()},u),f:t};throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");function s(e){return c.apply(this,arguments)}function u(e){return n.apply(this,arguments)}}function lc(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function sc(t,e){var n,r=Object.keys(t);return Object.getOwnPropertySymbols&&(n=Object.getOwnPropertySymbols(t),e&&(n=n.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})),r.push.apply(r,n)),r}function uc(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?sc(Object(n),!0).forEach(function(e){S()(t,e,n[e])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):sc(Object(n)).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))})}return t}function fc(e){var t=e.size,t=void 0===t?32:t,n=e.style,r=e.className,e=e.order;return x.a.createElement("svg",{style:n,className:r,focusable:"false",preserveAspectRatio:"xMidYMid meet",width:t,height:t,viewBox:"0 0 32 32","aria-hidden":"true",fill:"currentColor"},x.a.createElement("path",{fill:"asc"===e?"currentColor":"#bfbfbf",transform:"translate(0, 4)",d:"M8 8L16 0 24 8z"}),x.a.createElement("path",{fill:"desc"===e?"currentColor":"#bfbfbf",transform:"translate(0, -4)",d:"M24 24L16 32 8 24z "}))}function dc(e){var t=e.children,n=e.column,r=e.onToggle,o=e.sortOrder,i=e.sortIndex,e=e.sortOptions,n="right"===n.align?"flex-end":"center"===n.align?"center":"flex-start";return x.a.createElement(pc,{onClick:r,style:{justifyContent:n}},t,x.a.createElement(fc,{style:{userSelect:"none",marginLeft:2,flexShrink:0},className:P()((r={},S()(r,T.tableSortIcon,!0),S()(r,"active","desc"===o||"asc"===o),r)),size:16,order:o}),"multiple"===e.mode&&-1!==i&&x.a.createElement("div",{style:{userSelect:"none",marginLeft:2,color:"#666",flex:"0 0 auto",fontSize:10,fontFamily:"monospace"}},i+1))}var pc=e.c.div(d()(["\n cursor: pointer;\n display: flex;\n align-items: center;\n // flex: auto;\n"])),hc="sort";function vc(){var g=0<arguments.length&&void 0!==arguments[0]?arguments[0]:{};return function(r){function o(e,t){var n;null!=(n=g.onChangeSorts)&&n.call(g,e,t),r.setStateAtKey(hc,e)}var e=g.orders,i=void 0===e?["desc","asc","none"]:e,e=g.mode,e=void 0===e?"multiple":e,t=g.SortHeaderCell,c=void 0===t?dc:t,n=g.keepDataSource,l=g.highlightColumnWhenActive,s=g.stopClickEventPropagation,t=g.sortIconHoverShow,a=(null!=(a=null!=(a=null!=(a=g.sorts)?a:r.getStateAtKey(hc))?a:g.defaultSorts)?a:[]).filter(function(e){return"none"!==e.order}),f="multiple"===e?a:a.slice(0,1),u="multiple"===e?o:function(e,t){var n=e.length;o(e.slice(n-1),t)},d={sorts:f,onChangeSorts:u,orders:i,mode:e,keepDataSource:n,highlightColumnWhenActive:l,stopClickEventPropagation:s,sortIconHoverShow:t},p=new Map(f.map(function(e,t){return[e.code,uc({index:t},e)]})),a=r.getDataSource(),h=r.getColumns();return r.dataSource(function(e){if(n)return e;if(0===p.size)return e;var u=new Map(M(h,"leaf-only").filter(function(e){var t;return!1!==(null==(t=e.features)?void 0:t.sortable)&&null!=(null==(t=e.features)?void 0:t.sortable)}).map(function(e){return[e.code,e]}));return Bo(e,function(e,t){var n,r=cc(f);try{for(r.s();!(n=r.n()).done;){var o=n.value,i=o.code,a=o.order,c=u.get(i);if(null!=c){var l=c.features.sortable,s=("function"==typeof l?l:qo)(L.safeGetValue(c,e,-1),L.safeGetValue(c,t,-1),e,t);if(0!==s)return s*("asc"===a?1:-1)}}}catch(e){r.e(e)}finally{r.f()}return 0})}(a)),r.columns(h.map(function e(r){var t=uc({},r);var n=r.code&&((null==(n=r.features)?void 0:n.sortable)||p.has(r.code));var o=n&&p.has(r.code);{var i,a;n&&(n=-1,i="none",o&&(o=p.get(r.code),a=o.order,o=o.index,i=a,n=o,l)&&(t.headerCellProps=j(r.headerCellProps,{style:{background:"var(--header-highlight-bgcolor)"}}),t.getCellProps=function(e,t,n){t=L.safeGetCellProps(r,t,n);return j(t,{style:{background:"var(--highlight-bgcolor)"}})}),a=x.a.createElement(c,{onToggle:function(e){s&&e.stopPropagation(),v(r.code)},sortOrder:i,column:r,sortIndex:n,sortOptions:d},L.safeRenderHeader(uc(uc({},r),{},{title:r.title&&r.title[0]?r.title[0]:r.title}))),o=x.a.createElement(c,{onToggle:function(e){s&&e.stopPropagation(),v(r.code)},sortOrder:i,column:r,sortIndex:n,sortOptions:d}),r.renderHeader?t.title=r.renderHeader(t.title,o):t.title&&t.title[0]?t.title[0]=a:t.title=a)}_(r)||(t.children=r.children.map(e));return t})),r;function v(t){var e,n,r,o=p.get(t);null==o?(r={code:t,order:i[0]},u(f.concat([r]),r)):(e=f.findIndex(function(e){return e.code===t}),n=f.slice(0,e+1),o=function(e){e=i.indexOf(e);return i[e===i.length-1?0:e+1]}(o.order),r={code:t,order:o},"none"===o?n.pop():n[e]=uc(uc({},n[e]),{},{order:o}),u(n,r))}}}function gc(t,e){var n,r=Object.keys(t);return Object.getOwnPropertySymbols&&(n=Object.getOwnPropertySymbols(t),e&&(n=n.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})),r.push.apply(r,n)),r}function yc(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?gc(Object(n),!0).forEach(function(e){S()(t,e,n[e])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):gc(Object(n)).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))})}return t}var bc=e.c.div(d()(["\n display: flex;\n align-items: center;\n\n .tip-icon-wrapper {\n margin-",": 2px;\n }\n\n .tip-icon {\n display: flex;\n fill: currentColor;\n }\n"]),function(e){return v(e.direction,"left")});function mc(){return function(n){var r=n.ctx.components.Balloon,o=n.ctx.components.Tooltip;if(null==r&&null==o)throw new Error("使用 tips 之前需要通过 pipeline context 设置 components.Balloon / components.Tooltip");return n.mapColumns(Uo(function(e){var t;return null!=(t=e.features)&&t.tips?(t="right"===e.align?"flex-end":"center"===e.align?"center":"flex-start",yc(yc({},e),{},{title:x.a.createElement(bc,{style:{justifyContent:t},direction:n.ctx.direction},L.safeRenderHeader(e),r?x.a.createElement(r,{closable:!1,trigger:x.a.createElement("div",{className:"tip-icon-wrapper"},x.a.createElement(oa.Info,{className:"tip-icon"}))},e.features.tips):x.a.createElement(o,{title:e.features.tips},x.a.createElement("div",{className:"tip-icon-wrapper"},x.a.createElement(oa.Info,{className:"tip-icon"}))))})):e}))}}function wc(e,t){var n,r,o,i,a="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(a)return r=!(n=!0),{s:function(){a=a.call(e)},n:function(){var e=a.next();return n=e.done,e},e:function(e){r=!0,o=e},f:function(){try{n||null==a.return||a.return()}finally{if(r)throw o}}};if(Array.isArray(e)||(a=function(e,t){var n;if(e)return"string"==typeof e?xc(e,t):"Map"===(n="Object"===(n=Object.prototype.toString.call(e).slice(8,-1))&&e.constructor?e.constructor.name:n)||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?xc(e,t):void 0}(e))||t&&e&&"number"==typeof e.length)return a&&(e=a),i=0,{s:t=function(){},n:function(){return i>=e.length?{done:!0}:{done:!1,value:e[i++]}},e:function(e){throw e},f:t};throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function xc(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}var Sc=r()(function e(t){i()(this,e),S()(this,"root",void 0),S()(this,"children",void 0),S()(this,"parent",void 0),S()(this,"node",void 0),S()(this,"checked",void 0),O()(this,t)}),Oc=function(){function t(e){i()(this,t),S()(this,"opts",void 0),S()(this,"valueSet",void 0),S()(this,"wrapperMap",void 0),S()(this,"rootWrapper",void 0),this.opts=e,this.valueSet=new Set(e.value),this.initWrapperTree()}return r()(t,[{key:"initWrapperTree",value:function(){var c=this,l=this.opts.getNodeValue;this.rootWrapper=new Sc({root:!0,children:[]}),this.wrapperMap=new Map,function e(t,n){var r,o=wc(n);try{for(o.s();!(r=o.n()).done;){var i=r.value,a=new Sc({parent:t,node:i,checked:c.valueSet.has(l(i))});c.wrapperMap.set(l(i),a),t.children.push(a),_(i)||(a.children=[],e(a,i.children))}}catch(e){o.e(e)}finally{o.f()}}(this.rootWrapper,this.opts.tree)}},{key:"value",get:function(){return this.opts.value}},{key:"isIndeterminate",value:function(e){return!1}},{key:"isChecked",value:function(e){return this.valueSet.has(e)}},{key:"getValueAfterCheck",value:function(e){return this.isChecked(e)?this.value:Co.merge(this.value,[e])}},{key:"getValueAfterUncheck",value:function(e){return this.isChecked(e)?Co.diff(this.value,[e]):this.value}},{key:"getValueAfterToggle",value:function(e){return this.isChecked(e)?this.getValueAfterUncheck(e):this.getValueAfterCheck(e)}},{key:"getNode",value:function(e){return null==(e=this.wrapperMap.get(e))?void 0:e.node}},{key:"getCleanValue",value:function(){return this.value}}]),t}();function Ec(t,e){var n,r=Object.keys(t);return Object.getOwnPropertySymbols&&(n=Object.getOwnPropertySymbols(t),e&&(n=n.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})),r.push.apply(r,n)),r}function kc(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?Ec(Object(n),!0).forEach(function(e){S()(t,e,n[e])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):Ec(Object(n)).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))})}return t}function jc(e,t){var n,r,o,i,a="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(a)return r=!(n=!0),{s:function(){a=a.call(e)},n:function(){var e=a.next();return n=e.done,e},e:function(e){r=!0,o=e},f:function(){try{n||null==a.return||a.return()}finally{if(r)throw o}}};if(Array.isArray(e)||(a=function(e,t){var n;if(e)return"string"==typeof e?Cc(e,t):"Map"===(n="Object"===(n=Object.prototype.toString.call(e).slice(8,-1))&&e.constructor?e.constructor.name:n)||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Cc(e,t):void 0}(e))||t&&e&&"number"==typeof e.length)return a&&(e=a),i=0,{s:t=function(){},n:function(){return i>=e.length?{done:!0}:{done:!1,value:e[i++]}},e:function(e){throw e},f:t};throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function Cc(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}var Pc=r()(function e(t){i()(this,e),S()(this,"root",void 0),S()(this,"children",void 0),S()(this,"parent",void 0),S()(this,"node",void 0),S()(this,"detached",void 0),S()(this,"checked",void 0),S()(this,"exactChecked",void 0),S()(this,"parentChecked",void 0),S()(this,"anyDescendentsChecked",void 0),S()(this,"allChildrenChecked",void 0),O()(this,t)}),Rc=function(){function n(e){var r=this;i()(this,n),S()(this,"opts",void 0),S()(this,"valueSet",void 0),S()(this,"wrapperMap",void 0),S()(this,"rootWrapper",void 0),S()(this,"isDetached",function(e){var t,n;return null!=(t=null==(t=(n=r.opts).isDetached)?void 0:t.call(n,e))&&t}),this.opts=e,this.valueSet=new Set(e.value),this.initWrapperTree()}return r()(n,[{key:"value",get:function(){return this.opts.value}},{key:"initWrapperTree",value:function(){var v=new Set(this.value),g=(this.rootWrapper=new Pc({root:!0,children:[]}),this.wrapperMap=new Map,this.opts.getNodeValue),y=this.isDetached,b=this.wrapperMap;!function e(t,n,r){t.allChildrenChecked=!0;var o,i=jc(n);try{for(i.s();!(o=i.n()).done;){var a=o.value,c=y(a),l=v.has(g(a)),s=(l&&!c&&(t.anyDescendentsChecked=!0),!c&&r),u=l||s,f=new Pc({parent:t,node:a,checked:u,exactChecked:l,parentChecked:s,anyDescendentsChecked:u,detached:c});if(b.set(g(a),f),t.children.push(f),!_(a)&&(f.children=[],e(f,a.children,u),f.anyDescendentsChecked&&!c&&(t.anyDescendentsChecked=!0),f.allChildrenChecked)){f.checked=!0;var d,p=jc(f.children);try{for(p.s();!(d=p.n()).done;){var h=d.value;h.detached||(h.parentChecked=!0)}}catch(e){p.e(e)}finally{p.f()}}f.checked||c||(t.allChildrenChecked=!1)}}catch(e){i.e(e)}finally{i.f()}}(this.rootWrapper,this.opts.tree,!1)}},{key:"isIndeterminate",value:function(e){e=this.wrapperMap.get(e);return!e.checked&&e.anyDescendentsChecked}},{key:"isChecked",value:function(e){return this.wrapperMap.get(e).checked}},{key:"getValueAfterCheck",value:function(e){return(this.isChecked(e)?this:(e=Co.merge(this.value,[e]),new n(kc(kc({},this.opts),{},{value:e})))).getCleanValue()}},{key:"getValueAfterUncheck",value:function(e){var a,t;return(this.isChecked(e)?(e=this.wrapperMap.get(e),a=this.opts.getNodeValue,t=function(e){var t=[],n=e;for(;n.parentChecked&&!n.detached;){var r,o=jc(n.parent.children);try{for(o.s();!(r=o.n()).done;){var i=r.value;i===n||i.exactChecked||i.detached||t.push(a(i.node))}}catch(e){o.e(e)}finally{o.f()}n=n.parent}return t}(e),e=function(e){var i=new Set,t=e;for(;;){if(i.add(a(t.node)),t.detached||!t.parentChecked)break;t=t.parent}return function e(t){if(null!=t){var n,r=jc(t);try{for(r.s();!(n=r.n()).done;){var o=n.value;!o.detached&&o.checked&&(i.add(a(o.node)),!_(o))&&o.anyDescendentsChecked&&e(o.children)}}catch(e){r.e(e)}finally{r.f()}}}(e.children),i}(e),t=Co.diff(this.value.concat(t),e),new n(kc(kc({},this.opts),{},{value:t}))):this).getCleanValue()}},{key:"getValueAfterToggle",value:function(e){return this.isChecked(e)?this.getValueAfterUncheck(e):this.getValueAfterCheck(e)}},{key:"getNode",value:function(e){return null==(e=this.wrapperMap.get(e))?void 0:e.node}},{key:"getCleanValue",value:function(){var t=this,e=this.opts,i=e.checkedStrategy,a=e.getNodeValue,c=this.value.filter(function(e){return!t.wrapperMap.has(e)});return function e(t){var n,r=jc(t);try{for(r.s();!(n=r.n()).done;){var o=n.value;o.checked&&("all"===i?c.push(a(o.node)):"parent"===i?o.parentChecked||c.push(a(o.node)):_(o)&&c.push(a(o.node))),_(o)||e(o.children)}}catch(e){r.e(e)}finally{r.f()}}(this.rootWrapper.children),c}}]),n}();function Ac(t,e){var n,r=Object.keys(t);return Object.getOwnPropertySymbols&&(n=Object.getOwnPropertySymbols(t),e&&(n=n.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})),r.push.apply(r,n)),r}function Tc(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?Ac(Object(n),!0).forEach(function(e){S()(t,e,n[e])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):Ac(Object(n)).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))})}return t}var Dc="treeSelect";function Ic(d){return function(n){var r=n.ctx.components.Checkbox;if(null==r)throw new Error("使用 treeSelect 之前需要通过 pipeline context 设置 components.Checkbox");var o=n.ensurePrimaryKey("treeSelect");if("string"!=typeof o)throw new Error("treeSelect 仅支持字符串作为 primaryKey");function e(e){return e[o]}function i(e,t,n){return x.a.createElement(r,{checked:u.isChecked(e),indeterminate:u.isIndeterminate(e),disabled:!t&&c(n),onChange:"checkbox"===a||t?function(){return f(e)}:void 0})}var a=null!=(t=d.clickArea)?t:"checkbox",c=null!=(t=d.isDisabled)?t:Po(!1),t=null!=(t=d.idDetached)?t:Po(!1),l=null!=(l=null!=(l=null!=(l=d.value)?l:n.getStateAtKey(Dc))?l:d.defaultValue)?l:[],s=null!=d.rootKey?[(s={},S()(s,o,d.rootKey),S()(s,"children",d.tree),s)]:d.tree,u=d.checkStrictly?new Oc({value:l,getNodeValue:e,tree:s}):new Rc({value:l,getNodeValue:e,isDetached:t,tree:s,checkedStrategy:null!=(l=d.checkedStrategy)?l:"parent"}),f=function(e){var t,e=u.getValueAfterToggle(e);n.setStateAtKey(Dc,e),null!=(t=d.onChange)&&t.call(d,e)},t=Tc(Tc({name:"",width:50,align:"center",title:null!=d.rootKey?i(d.rootKey,!0):void 0},d.checkboxColumn),{},{render:function(e,t){return i(t[o],!1,t)},getCellProps:function(e,t){var n=t[o];if("cell"===a)return c(t)?{style:{cursor:"not-allowed"}}:{style:{cursor:"pointer"},onClick:function(e){d.stopClickEventPropagation&&e.stopPropagation(),f(n)}}}}),s=n.getColumns().slice();return"start"===(null!=(l=d.checkboxPlacement)?l:"start")?s.unshift(t):s.push(t),n.columns(s),"row"===a&&n.appendRowPropsGetter(function(t){if(!c(t))return{style:{cursor:"pointer"},onClick:function(e){d.stopClickEventPropagation&&e.stopPropagation(),f(t[o])}}}),d.highlightRowWhenSelected&&n.appendRowPropsGetter(function(e){if(u.isChecked(e[o]))return{className:"highlight"}}),n}}t(301),t(198);function N(e){return"touches"in e&&0<e.touches.length?{clientX:e.touches[0].clientX,clientY:e.touches[0].clientY}:"changedTouches"in e&&0<e.changedTouches.length?{clientX:e.changedTouches[0].clientX,clientY:e.changedTouches[0].clientY}:{clientX:e.clientX,clientY:e.clientY}}function _c(e){return"touches"in e&&0<e.touches.length?document.elementFromPoint(e.touches[0].clientX,e.touches[0].clientY):"changedTouches"in e&&0<e.changedTouches.length?document.elementFromPoint(e.changedTouches[0].clientX,e.changedTouches[0].clientY):e.target}function Mc(t,e){var n,r=Object.keys(t);return Object.getOwnPropertySymbols&&(n=Object.getOwnPropertySymbols(t),e&&(n=n.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})),r.push.apply(r,n)),r}function Lc(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?Mc(Object(n),!0).forEach(function(e){S()(t,e,n[e])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):Mc(Object(n)).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))})}return t}var Nc=e.c.div(d()(["\n position: absolute;\n top: 0;\n ",': -5px;\n height: 100%;\n width: 10px;\n cursor: ew-resize;\n display: flex;\n flex-direction: column;\n align-items: center;\n z-index:1;\n\n &:after {\n content: "";\n position: absolute;\n display: block;\n ',": calc(50% - 1px);\n width: 1px;\n height: calc(100% - 14px);\n top: 7px;\n }\n"]),function(e){return v(e.direction,"right")},function(e){return v(e.direction,"left")}),Fc=Object(e.c)(function(e){return x.a.createElement(Nc,e)})(d()(["\n &:after {\n height: 100%;\n top: 0;\n }\n"]));function Hc(e,t,n){return Math.max(e,Math.min(n,t))}function zc(e){e.preventDefault()}var Bc="columnResize",Wc="columnResize",Kc="resizedColumn",Vc="lastResizedColumn";function $c(){var e,o=0<arguments.length&&void 0!==arguments[0]?arguments[0]:{},y=null!=(e=o.minSize)?e:60,r=null!=(e=o.fallbackSize)?e:150,b=null!=(e=o.maxSize)?e:1e3;return function(g){function i(e,t){var n;null!=(n=o.doubleClickCallback)&&n.call(o,e,t)}function a(e,t){e.stopPropagation(),n(e.nativeEvent,t,"mouse")}function c(e,t){e.cancelable&&e.preventDefault(),e.stopPropagation(),n(e.nativeEvent,t,"touch")}var e,l=null!=(e=null!=(e=o.columnSize)?e:g.getStateAtKey(Bc))?e:{},n=(M(g.getColumns(),"leaf-only").forEach(function(e){var t=e.code,e=e.width;void 0===l[t]&&(l[t]="number"==typeof e?e:r)}),g.setFeatureOptions(Wc,l),function(e,t,n){window.addEventListener("selectstart",zc);var s={},r=N(e).clientX,u=t.children,f=t.code,e=t.features,t=void 0===e?{}:e,e=t.minWidth,t=t.maxWidth,d="number"==typeof e?e:y,p="number"==typeof t?t:b,h=g.getFeatureOptions(Wc),v=h,e="mouse"===n?"mouseup":"touchend",t="touch"===n?{passive:!1}:void 0;A(window,"mouse"===n?"mousemove":"touchmove","touch"===n?{passive:!1}:void 0).pipe(Di(A(window,e,t)),R(function(e){"touch"===n&&e.cancelable&&e.preventDefault();var o,i,e=N(e).clientX,a=Lc({},h),c="rtl"===g.ctx.direction?r-e:e-r,l=c;return 0<(null==u?void 0:u.length)?(o=M(u,"leaf-only"),i=o.reduce(function(e,t){t=t.code;return e+h[t]},0),o.forEach(function(e,t){var e=e.code,n=h[e],r=Math.round(c*n/i);t<o.length-1?(a[e]=Hc(d,n+r,p),s[e]=a[e],l-=r):(a[e]=Hc(d,n+l,p),s[e]=a[e])})):(e=h[f],a[f]=Hc(d,e+c,p),s[f]=a[f]),v=a})).subscribe({next:function(e){t=e,window.requestAnimationFrame(function(){var e;g.setStateAtKey(Bc,t),null!=o&&null!=(e=o.onChangeSize)&&e.call(o,t)});var t,n=g.getFeatureOptions(Kc)||new Set;Object.keys(s).forEach(function(e){n.add(e,s[e])}),g.setFeatureOptions(Kc,n),g.setFeatureOptions(Vc,f)},complete:function(){var t=Object.keys(s).map(function(e){return{code:e,width:s[e]}});window.requestAnimationFrame(function(){var e;null!=o&&null!=(e=o.afterChangeSize)&&e.call(o,v,t)}),window.removeEventListener("selectstart",zc)}})}),s=Eo(g.getColumns());return g.mapColumns(Uo(function(t){var e=L.safeRenderHeader(t),n=t.code,r=t.features,o=t.width;return Lc(Lc({},t),{},{width:null!=(n=l[n])?n:o,title:x.a.createElement(x.a.Fragment,null,e,!1!==(null==r?void 0:r.resizeable)&&(s?x.a.createElement(Fc,{direction:g.ctx.direction,className:T.tableHeaderCellResize,onDoubleClick:function(e){return i(e,t)},onMouseDown:function(e){return a(e,t)},onTouchStart:function(e){return c(e,t)}}):x.a.createElement(Nc,{direction:g.ctx.direction,className:T.tableHeaderCellResize,onDoubleClick:function(e){return i(e,t)},onMouseDown:function(e){return a(e,t)},onTouchStart:function(e){return c(e,t)}}))),headerCellProps:j(t.headerCellProps,{className:"resizeable"})})}))}}function Gc(){return function(c){r=c,e=new Map([[qc,0]]),function t(e,n){e.forEach(function(e){_(e)?Jc(e,r)&&n.set(qc,n.get(qc)+e.features.flex):t(e.children,n)})}(r.getColumns(),e);var r,l,s,u,f,d,e,t,n,p=e.get(qc);return p?0<(l=Zc(c)||0)&&(s=p,u=l,f=c.getFeatureOptions(Wc),d=!!f,c.mapColumns(Uo(function(e,t){var n,r,o,i,a;return t.isLeaf&&Jc(e,c)&&(t=e.code,n=(o=void 0===(o=e.features)?{}:o).flex,r=o.minWidth,r=void 0===r?0:r,o=o.maxWidth,o=void 0===o?Number.MAX_SAFE_INTEGER:o,a=Math.floor(l*n/p),i=e.width,e.width=(a=i+(s===n?u:a),Math.max(r,Math.min(o,a))),s-=n,u-=e.width-i,d)&&(f[t]=e.width),e})),d)&&c.setFeatureOptions(Wc,f):(n=(e=c.getColumns()).find(function(e){return e.code===Yc}),t=Zc(c)||0,n?n.width=t:(n=cr(e.slice().reverse()),n=e.length-n,e.splice(n||e.length,0,{name:"",code:Yc,width:t,features:{resizeable:!1},getCellProps:function(e,t,n){return{className:T.emptyColCell}}})),c.columns(e)),c}}var Yc="$_fill_column_&",Uc="tableWidth",qc=Symbol("flexCount");function Xc(a){return function i(e){return e.reduce(function(e,t){var n,r=t.width,o=t.code;return _(t)&&o!==Yc?(n=a.getFeatureOptions(Wc),e+(n&&n[o]||r)):e+i(t.children)},0)}(a.getColumns())}function Zc(e){var t=(null==(t=e.ref.current.domHelper)||null==(t=t.tableBody)?void 0:t.clientWidth)||e.getStateAtKey(Uc);if(t)return 0<(t=Math.floor(t-Xc(e)))?t:0}function Jc(e,t){var n,r,o=t.getFeatureOptions(Kc);return(null==o||!o.has(e.code))&&"number"==typeof(o=null==(o=e.features)?void 0:o.flex)&&0<o&&(n=e,void 0===(r=(o=t).getFeatureOptions(Vc))||o.getColumns().findIndex(function(e){return e.code===r})<o.getColumns().findIndex(function(e){return e.code===n.code}))}function Qc(t,e){var n,r=Object.keys(t);return Object.getOwnPropertySymbols&&(n=Object.getOwnPropertySymbols(t),e&&(n=n.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})),r.push.apply(r,n)),r}function el(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?Qc(Object(n),!0).forEach(function(e){S()(t,e,n[e])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):Qc(Object(n)).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))})}return t}var tl="columnDrag",nl=30;function rl(e){e.preventDefault()}function ol(e){e.stopPropagation()}function il(){var u=0<arguments.length&&void 0!==arguments[0]?arguments[0]:{};return function(R){var t,A=R.ctx.direction,T=(t="rtl"===A,function(e){return t?-e:e}),i=R.getStateAtKey(tl,{}).cloumnsTranslateData,e=R.getColumns(),c=R.ref.current.domHelper&&R.ref.current.domHelper.tableBody;return R.columns(e.filter(function(e){return e})),R.mapColumns(Uo(function(P,e){var t=e.path,e=e.isLeaf,r=i?{transition:".3s",transform:"translate3d(".concat(i[P.code],"px, 0px, 0px)")}:{},o=P.getCellProps;return P.lock||!P.code?P:el(el({},P),{},{getCellProps:function(e,t,n){return j(null==o?void 0:o(e,t,n),{style:r})},headerCellProps:j(P.headerCellProps,el(el({},e&&1===t.length?{onMouseDown:function(e){0===e.button&&e.currentTarget.contains(e.target)&&n(e.nativeEvent,!1,e.currentTarget)},onTouchStart:function(e){e.cancelable&&e.preventDefault(),n(e.nativeEvent,!0,e.currentTarget)}}:{}),{},{style:r}))});function n(e,b,m){window.addEventListener("selectstart",rl);var w,o,i,x,S,O,E,k=!1,j=R.getColumns(),C=R.getStateAtKey(tl,{}).cloumnsTranslateData,s={},t=(j.forEach(function(e,t){s[e.code]=t}),null==(t=m.parentElement)?void 0:t.getClientRects()[0]);function a(e){b&&e.cancelable&&e.preventDefault();var t=N(e),n={clientX:t.clientX,clientY:t.clientY},r=R.ref.current.domHelper.virtual.scrollLeft-E,r=w-r,o="rtl"===A?r-t.clientX:t.clientX-r;if(t=(t=n).clientX,(r=O.left)+O.width<=t+nl&&(R.ref.current.domHelper.virtual.scrollLeft+=nl),t-nl<=r&&(R.ref.current.domHelper.virtual.scrollLeft-=nl),!(o<20)){e.stopPropagation(),document.body.style.userSelect="none",m.style.cursor="move",C={},S.forEach(function(e){C[e.code]=0});for(var i,a=0,c=cl(j[a]);c<o&&a<j.length-1;)c+=cl(j[++a]);j.forEach(function(e,t){e.code===P.code&&(i=t)});var l=j[i],s=a;if(a<i)for(;s<i;){var u=j[s],f=u.code,d=u.lock,p=u.width,u=u.children;al({code:f,lock:d})&&(C[f]+=T(l.width),_(j[s])?C[l.code]-=T(p):(C[l.code]-=T(cl(j[s])),ll(u,C,T(l.width))),k=!0),s++}else if(i<a)for(;i<s;){var h=j[s],v=h.code,g=h.lock,y=h.width,h=h.children;al({code:v,lock:g})&&(C[v]-=T(l.width),_(j[s])?C[l.code]+=T(y):(C[l.code]+=T(cl(j[s])),ll(h,C,T(l.width),!0)),k=!0),s--}window.requestAnimationFrame(function(){R.setStateAtKey(tl,{cloumnsTranslateData:C}),x=[i,a]})}}t&&(w="rtl"===A?t.right:t.left,t=N(e),o=t.clientX,i=t.clientY,x=[],S=M(j),O=c.getBoundingClientRect(),E=R.ref.current.domHelper.virtual.scrollLeft,(e=u.onColumnDragStart)&&e(P),t=document.body,e={onPointerMove:a,onPointerUp:function e(t){r=document.body,n={onPointerMove:a,onPointerUp:e},b?(r.removeEventListener("touchmove",n.onPointerMove),r.removeEventListener("touchend",n.onPointerUp)):(r.removeEventListener("mousemove",n.onPointerMove),r.removeEventListener("mouseup",n.onPointerUp)),window.removeEventListener("selectstart",rl);var n,r=N(t);!function(e,t,n,r,o){return o=4<arguments.length&&void 0!==o?o:5,n-=e,e=r-t,Math.sqrt(n*n+e*e)>o}(o,i,r.clientX,r.clientY)||(t.stopPropagation(),m.addEventListener("click",ol)),window.requestAnimationFrame(function(){m.removeEventListener("click",ol),m=null;var e,t=x,n=(t=D()(t,2))[0],t=t[1],r=j[n],o=t;if(t<n)for(;o<n;){var i=j[o],a=i.code;al({code:a,lock:i.lock})&&(s[a]+=1,--s[r.code],k=!0),o++}else if(n<t)for(;n<o;){var c=j[o],l=c.code;al({code:l,lock:c.lock})&&(--s[l],s[r.code]+=1,k=!0),o--}(t=u.onColumnDragStopped)&&(e=function(e,t){for(var n=new Array(e.length),r=I()(e);e.length;){var o=e.pop();n[t[o.code]]=o}return n.filter(Boolean).length!==r.length?r:n}(j,s).filter(function(e){return!(e.code===Yc||e.code===R.getFeatureOptions("rowDragColumnKey")||si(e))}),t(k,e)),R.setStateAtKey(tl,{cloumnsTranslateData:null})}),document.body.style.userSelect="",m.style.opacity="",m.style.cursor=""}},b?(t.addEventListener("touchmove",e.onPointerMove,{passive:!1}),t.addEventListener("touchend",e.onPointerUp,{passive:!1})):(t.addEventListener("mousemove",e.onPointerMove),t.addEventListener("mouseup",e.onPointerUp)))}}))}}function al(e){var t=e.lock,e=e.code;return e&&e!==Yc&&!t}function cl(e){return e.children?e.children.reduce(function(e,t){return e+cl(t)},0):e.width}function ll(e,o,i,a){e.forEach(function(e){var t=e.code,n=e.children,r=null!=(r=o[t])?r:0;o[t]=r+(a?-i:i),_(e)||ll(n,o,i)})}function sl(){var p=0<arguments.length&&void 0!==arguments[0]?arguments[0]:{};return function(i){function a(e){function n(e){var t;t=r,(e=e)&&t&&_n(t,e)||o||(o=!0,u.removeChild(r),i.forEach(function(e){window.removeEventListener(e,n,!0)}))}var r=document.createElement("div"),o=(r.setAttribute("class","kd-table-popup"),u.appendChild(r),!1),i=["mousedown","contextmenu"];return ao.a.render(e,r,function(){setTimeout(function(){i.forEach(function(e){window.addEventListener(e,n,!0)})},0)}),n}function c(e,t,n,r){var o,i=[];return t&&i.push((o=n,{name:"复制",action:function(){ri(ni(o))}})),p.getContextMenuItems?p.getContextMenuItems({record:e,column:t,value:n,event:r}):i}function l(){d.destroy()}function s(){return u}var u=p.popupParent||document.body,f=p.menuClassName,d=new dl,o=(i.addTableProps({onContextMenu:function(e){var t,n,r;t=e,(null!=(r=(n=i).ref.current.domHelper)&&r.tableBody.contains(t.target)||null!=(r=n.ref.current.domHelper)&&r.tableFooter.contains(t.target))&&(e.preventDefault(),e.stopPropagation(),o(e))}}),function(e){var t,n=In(e),r=Mn(n,function(e){return e&&"table-cell"===e.getAttribute("data-role")}),n=((r?(t=r.getAttribute("data-code"),o=r.getAttribute("data-rowindex"),pl(r)):(o=null==(r=Mn(n,function(e){return e&&"table-row"===e.getAttribute("data-role")}))?void 0:r.getAttribute("data-rowindex"),pl(r)))?i.getFooterDataSource()||[]:i.getDataSource())[o],r=void 0!==t&&Ro(i.getColumns(),function(e){return e.code===t}),o=r&&n&&L.safeGetValue(r,n,o),n=c(n,r,o,e);0===n.length?Tt.warn("context menu options is empty"):(r=function(e,t,n){e=function(e,t){var n=t.getBoundingClientRect(),r=document.documentElement.getBoundingClientRect();return{x:e.clientX-(t===document.body?r:n).left,y:e.clientY-(t===document.body?r:n).top}}(e,t),t=e.x,e=e.y;{var r;n&&(r=n.offsetX,n=n.offsetY,r&&(t-=r),n)&&(e-=n)}return{x:t,y:e}}(e,u),o=x.a.createElement(ul,{options:n,hideContextMenu:l,position:r,getPopupParent:s,className:f,direction:i.ctx.direction}),e=a(o),d.init(e))});return i}}function ul(r){var e=r.className,t=r.options,t=void 0===t?[]:t,n=r.hideContextMenu,o=r.position,i=r.getPopupParent,a=Object(y.useRef)();return Object(y.useLayoutEffect)(function(){var e,t,n;a.current&&(e=i(),t=o.x,n=o.y,"rtl"===r.direction&&(t-=a.current.offsetWidth),t=(e=function(e,t,n,r){var o=e.getBoundingClientRect(),i=document.documentElement,a=i.getBoundingClientRect(),c=t.getBoundingClientRect(),l=o.width,s=o.height;e===document.body&&(l=a.width,l-=Math.abs(a.left-o.left),s=a.height+i.scrollTop,s-=Math.abs(a.top-o.top));n&&(e=Math.min(c.width,120),t.style.minWidth=e+"px",i=l-e,n=Math.min(Math.max(n,0),Math.abs(i)));r&&(a=s-c.height,r=Math.min(Math.max(r,0),Math.abs(a)));return{x:n,y:r}}(e,a.current,t,n)).x,n=e.y,a.current.style.left=t+"px",a.current.style.top=n+"px")},[o,r.direction]),x.a.createElement(ia,{className:P()(h.menu,e),ref:a,style:{left:o.x,top:o.y}},x.a.createElement("div",{className:h.menuList},t.map(function(e,t){return x.a.createElement(fl,{key:e.key||function(e){var t=e.name,e=e.index;if(t){var n=0;t+="";for(var r=0;r<t.length;r++)n+=t.charCodeAt(t[r]);return"".concat(n,"_").concat(e)}return e}({name:e.name,index:t}),name:e.name,action:e.action,className:e.className,disabled:e.disabled,hideContextMenu:n})})))}function fl(e){var t=e.name,n=e.action,r=e.className,o=e.disabled,i=e.hideContextMenu,a=Object(y.useRef)();return x.a.createElement("div",{className:P()(h.menuOption,r,S()({},h.menuOptionDisable,o)),ref:a,onClick:function(){o||(i(),"function"==typeof n&&n())},onMouseEnter:function(e){var t;o||(t=a.current)&&t.classList.add(h.menuOptionActive)},onMouseLeave:function(e){var t;o||(t=a.current)&&setTimeout(function(){t.classList.remove(h.menuOptionActive)},10)}},x.a.createElement("span",{className:h.menuOptionText},t))}var dl=r()(function e(){var t=this;i()(this,e),S()(this,"hidePopup",void 0),S()(this,"init",function(e){t.hidePopup=e}),S()(this,"destroy",function(){t.hidePopup&&t.hidePopup(),t.hidePopup=null})});function pl(e){for(var t=e;t;){if("TFOOT"===t.tagName)return!0;if("TABLE"===t.tagName||"TBODY"===t.tagName)return!1;t=t.parentElement}return!1}function hl(e){var t=e.width,e=e.height;return x.a.createElement("svg",{width:t,height:e,style:{verticalAlign:"middle"},viewBox:"0 0 1024 1024",focusable:"false","data-icon":"filter",fill:"currentColor",version:"1.1",xmlns:"http://www.w3.org/2000/svg"},x.a.createElement("path",{d:"M891.448889 159.573333L626.460444 460.231111v443.221333c0 32.881778-25.429333 63.658667-55.864888 63.658667l-170.268445-172.942222V456.419556L132.266667 159.857778A59.619556 59.619556 0 0 1 173.511111 56.888889h676.977778c32.995556 0 59.733333 26.680889 59.733333 59.562667 0 17.066667-7.224889 32.312889-18.773333 43.121777z"}))}var vl={ENTER:13,ESC:27};function gl(t,e){var n,r=Object.keys(t);return Object.getOwnPropertySymbols&&(n=Object.getOwnPropertySymbols(t),e&&(n=n.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})),r.push.apply(r,n)),r}function yl(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?gl(Object(n),!0).forEach(function(e){S()(t,e,n[e])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):gl(Object(n)).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))})}return t}var bl=e.c.div(d()(["\n display: flex;\n flex-direction: column;\n max-height: 450px;\n min-width: 160px;\n border-radius: 2px;\n background-color: #fff;\n box-shadow: 0 0 5px 0 rgba(154,154,154,.5);\n cursor: default;\n\n ."," {\n display: flex;\n background-color: #ebedf1;\n\n ."," {\n display: flex;\n color:#666;\n background-color: #fff;\n padding: 8px 16px 8px 16px;\n border-right: 1px solid transparent;\n border-left: 1px solid transparent;\n border-top: 1px solid transparent;\n border-top-right-radius: 2px;\n border-top-left-radius: 2px;\n }\n }\n\n ."," {\n display: flex;\n }\n"]),T.popupHeader,T.filterIcon,T.popupBody);var ml=function(e){function t(){g.current=!0}var n,r,o=e.style,i=e.children,a=e.position,c=e.filterIcon,l=e.onClose,s=e.hideFilterPopupHeader,u=e.direction,e=Object(y.useState)(a),f=(e=D()(e,2))[0],d=e[1],e=Object(y.useState)(!1),p=(e=D()(e,2))[0],h=e[1],v=x.a.useRef(null),g=(Object(y.useEffect)(function(){var e,t=a.x,n=a.y;"rtl"===u&&(t-=null==(e=v.current)?void 0:e.offsetWidth),d(Fn(document.body,v.current,t,n,!0)),h(!0)},[a,u]),Object(y.useRef)(!1));return n=function(e){_n(v.current,e)||g.current||l(),g.current=!1},r=["click"],x.a.useEffect(function(){return r.forEach(function(e){return window.addEventListener(e,n,!0)}),function(){return r.forEach(function(e){return window.removeEventListener(e,n,!0)})}},[r,n]),x.a.createElement(bl,{className:T.popup,style:yl(yl({},o),{},{left:p?f.x:0,top:p?f.y:0,opacity:p?1:0,direction:u}),onMouseDown:t,onMouseUp:t,onKeyDown:function(e){e.currentTarget.contains(e.target)&&e.keyCode===vl.ESC&&l()},ref:v,tabIndex:-1,direction:u},s?null:x.a.createElement("div",{className:T.popupHeader},x.a.createElement("span",{className:T.filterIcon},c||x.a.createElement(hl,{width:12,height:12}))),x.a.createElement("div",{className:T.popupBody},i))},wl=[{title:"包含",key:"contain",filter:function(t){return function(e){return null!=e&&("number"==typeof e&&(e+=""),e.includes(t[0]))}}},{title:"不包含",key:"notContain",filter:function(t){return function(e){return null==e||("number"==typeof e&&(e+=""),!e.includes(t[0]))}}},{title:"等于",key:"equal",filter:function(t){return function(e){return t[0]===e}}},{title:"不等于",key:"notEqual",filter:function(t){return function(e){return t[0]!==e}}},{title:"为空",key:"isNull",filter:function(){return function(e){return!e}}},{title:"不为空",key:"notIsNull",filter:function(){return function(e){return!!e}}}],xl=e.c.div(d()(["\n display: flex;\n flex-direction: column;\n background-color: #ffffff;\n border-radius: 2px;\n width: 100%;\n\n ","\n .filter-option-list {\n display: flex;\n flex-direction: column;\n margin-top: 8px;\n ul {\n margin: 0;\n padding: 0;\n li {\n display: flex;\n position: relative;\n flex-shrink: 0;\n height: 32px;\n align-items: center;\n border-radius: 2px;\n font-size: 12px;\n color: var(--color);\n padding: 0 12px;\n overflow: hidden;\n cursor: pointer;\n &:hover{\n background-color: var(--primary-color-level1);\n }\n }\n li.active{\n background-color: var(--primary-color-level1);\n }\n }\n }\n\n .filter-search {\n display: flex;\n padding: 6px 12px;\n\n .filter-search-inner {\n width: 100%;\n font-size: 12px;\n color: #333333;\n height: 28px;\n line-height: 28px;\n padding: 0 8px;\n outline: none;\n background-color: #FAFAFA;\n border-radius: 2px;\n border: 1px solid var(--strong-border-color);\n &:hover{\n border-color: var(--primary-color)\n } \n &:focus{\n border-color: var(--primary-color)\n } \n }\n }\n\n .filter-footer {\n display: flex;\n flex-direction: row;\n padding: 8px 12px;\n justify-content: space-between;\n\n .filter-btn {\n text-align: center;\n font-size: 12px;\n width: 60px;\n height: 24px;\n line-height: 24px;\n }\n \n }\n"]),Cn);function Sl(e){function t(){o(),n({filter:l,filterCondition:a})}var n=e.setFilterModel,r=e.filterModel,o=e.hidePanel,i=void 0===(e=e.localeText)?{}:e,e=x.a.useState((null==r?void 0:r.filterCondition)||"contain"),a=(e=D()(e,2))[0],c=e[1],e=x.a.useState((null==r?void 0:r.filter)||[]),l=(e=D()(e,2))[0],s=e[1],u=Object(y.useRef)(),f=x.a.useCallback(function(e){c(e.key)},[]);return Object(y.useEffect)(function(){c((null==r?void 0:r.filterCondition)||"contain"),s((null==r?void 0:r.filter)||[])},[r]),Object(y.useEffect)(function(){setTimeout(function(){var e;null!=(e=u.current)&&e.focus({preventScroll:!0})})},[]),x.a.createElement(xl,null,x.a.createElement("div",{className:"filter-option-list"},x.a.createElement("ul",null,wl.map(function(e,t){var n;return x.a.createElement("li",{key:e.key,className:e.key===a?"active":"",onClick:function(){return f(e)}},null!=(n=i[e.key])?n:e.title)}))),"notIsNull"!==a&&"isNull"!==a&&x.a.createElement("div",{className:"filter-search"},x.a.createElement("input",{className:"filter-search-inner",value:l[0],onChange:function(e){s([e.target.value])},onKeyDown:function(e){e.keyCode===vl.ENTER&&t()},ref:u})),x.a.createElement("div",{className:"filter-footer"},x.a.createElement("button",{className:P()(S()({"filter-btn":!0},T.button,!0)),onClick:function(){o(),n()}},null!=(e=i.resetFilter)?e:"重置"),x.a.createElement("button",{className:P()((e={"filter-btn":!0},S()(e,T.button,!0),S()(e,T.buttonPrimary,!0),e)),onClick:t},null!=(e=i.confirmFilter)?e:"确定")))}var Ol=9,El=17,kl=e.c.span(d()(["\n // position: absolute;\n // right: 4px;\n // cursor: pointer;\n // transform: translateY(-50%);\n // top: 50%;\n // height: 12px; \n > ."," {\n display: flex\n }\n"]),T.filterIcon);function jl(e){function t(e){f(Nn(n,c,Cl(n,a),l))}var n=e.ele,r=e.filterIcon,o=e.hidePanel,i=e.renderPanelContent,a=e.hideFilterPopupHeader,c=e.popupParent,l=e.direction,s=x.a.useRef(null),e=x.a.useState(Nn(n,c,Cl(n,a),l)),e=D()(e,2),u=e[0],f=e[1];return Object(y.useEffect)(function(){var e=Yn(s.current.children[0],t);return function(){e&&e.disconnect()}},[]),x.a.createElement("div",{ref:s},x.a.createElement(ml,{style:{position:"absolute",zIndex:1050},onClose:o,position:u,filterIcon:r,hideFilterPopupHeader:a,direction:l},i()))}function Cl(e,t){return t?{x:0,y:0-e.offsetHeight}:{x:El,y:Ol}}var Pl=function(e){function t(){return b(!1)}var n=void 0===(n=e.size)?12:n,r=e.style,o=e.className,i=e.FilterPanelContent,a=e.filterIcon,c=e.setFilter,l=e.setFilterModel,s=e.filterModel,u=e.isFilterActive,f=e.stopClickEventPropagation,d=e.stopESCKeyDownEventPropagation,p=e.hideFilterPopupHeader,h=e.getPopupParent,v=e.localeText,e=e.direction,g=x.a.useState(!1),y=(g=D()(g,2))[0],b=g[1],g=x.a.useRef(null),m=x.a.useRef(),o=P()((w={},S()(w,o,!0),S()(w,"filter-panel-open",y),w)),w="function"==typeof a?a(u):a,a=(null==h?void 0:h(m.current))||document.body;return x.a.createElement(kl,{style:r,className:o,onClick:function(e){e.currentTarget.contains(e.target)&&b(!0),f&&e.stopPropagation()},onKeyDown:function(e){e.keyCode===vl.ESC&&(e.currentTarget.contains(e.target)&&b(!1),d)&&e.stopPropagation()},ref:m,tabIndex:-1},x.a.createElement("span",{ref:g,className:T.filterIcon},w||x.a.createElement(hl,{width:n,height:n})),y&&Object(io.createPortal)(x.a.createElement(jl,{ele:(p?m:g).current,filterIcon:w,hidePanel:t,renderPanelContent:function(){return i?x.a.createElement(i,{setFilter:c,filterModel:s,isFilterActive:u,hidePanel:t}):x.a.createElement(Sl,{setFilterModel:l,filterModel:s,isFilterActive:u,hidePanel:t,localeText:v})},hideFilterPopupHeader:p,popupParent:a,direction:e}),a))};function Rl(t,e){var n,r=Object.keys(t);return Object.getOwnPropertySymbols&&(n=Object.getOwnPropertySymbols(t),e&&(n=n.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})),r.push.apply(r,n)),r}function Al(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?Rl(Object(n),!0).forEach(function(e){S()(t,e,n[e])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):Rl(Object(n)).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))})}return t}var Tl="filter";function Dl(){var m=0<arguments.length&&void 0!==arguments[0]?arguments[0]:{};return function(l){var o,i,a,n,e=l.getDataSource(),t=l.getColumns(),r=m.filters,c=m.defaultFilters,s=m.onChangeFilters,u=m.keepDataSource,f=m.mode,d=m.filterIcon,p=m.stopClickEventPropagation,h=m.stopESCKeyDownEventPropagation,v=m.hideFilterPopupHeader,g=m.getPopupParent,c=null!=(r=null!=(r=null!=r?r:l.getStateAtKey(Tl))?r:c)?r:[],c="single"===f?c.slice(0,1):c,y=new Map(c.map(function(e){return[e.code,Al({},e)]})),b=l.ctx.localeText;return l.dataSource((r=e,n=[],y.forEach(function(e,t){n.push(t)}),u||n.length<=0?r:(c=l.getColumns(),o=new Map(M(c,"leaf-only").filter(function(e){var t;return!1!==(null==(t=e.features)?void 0:t.filterable)&&null!=(null==(t=e.features)?void 0:t.filterable)}).map(function(e){return[e.code,e]})),i=new Map(wl.map(function(e){return[e.key,Al({},e)]})),a=function(r){return n.every(function(e){var t=y.get(e),n=null==(n=o.get(e))||null==(n=n.features)?void 0:n.filterable,n="function"==typeof n?n:(i.get(t.filterCondition)?i.get(t.filterCondition):(console.warn("列[".concat(e,"]未配置筛选函数,请设置 column.features.filterable 来作为该列的筛选函数, 目前使用默认包含筛选函数")),i.get("contain"))).filter;return n(t.filter,t)(L.safeGetValue(o.get(e),r,-1),r)})},function r(e){var o=1<arguments.length&&void 0!==arguments[1]&&arguments[1];return e.map(function(e){var t,n=a(e);return _(e)?(o||n)&&Al({},e):(t=e.children,e=Al(Al({},e),{},{children:r(t,o||n)}),t=!_(e),(o||n||t)&&e)}).filter(Boolean)}(r)))),l.columns(t.map(function e(r){var t=Al({},r);var n=r.code&&(null==(n=r.features)?void 0:n.filterable);var o=!(!n||null==y||!y.get(r.code));{var i,a,c;n&&(i=function(e){var t=new Map(y),n=Al({code:r.code},e),e=(null==e?t.delete(r.code):("single"===f&&t.clear(),t.set(r.code,n)),Array.from(t.values()));null!=s&&s(e,n),l.setStateAtKey(Tl,e)},n=function(e,t){i(e?{code:r.code,filter:e,filterCondition:t}:void 0)},a=null==(a=r.features)?void 0:a.filterPanel,c=null!=(c=null==(c=r.features)?void 0:c.filterIcon)?c:d,c=x.a.createElement(Pl,{key:"".concat(r.code,"_filter"),FilterPanelContent:a,filterIcon:c,filterModel:y.get(r.code),setFilterModel:i,setFilter:n,isFilterActive:o,className:P()((a={},S()(a,T.tableFilterTrigger,!0),S()(a,"active",o),a)),stopClickEventPropagation:p,stopESCKeyDownEventPropagation:h,hideFilterPopupHeader:v,getPopupParent:g,localeText:b,direction:l.ctx.direction}),r.renderHeader?t.title=r.renderHeader(t.title,c):t.title=[].concat(I()([].concat(null!=(n=t.title)?n:[L.safeRenderHeader(Al({},r))])),[c]))}_(r)||(t.children=r.children.map(e));return t})),l}}function Il(t,e){var n,r=Object.keys(t);return Object.getOwnPropertySymbols&&(n=Object.getOwnPropertySymbols(t),e&&(n=n.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})),r.push.apply(r,n)),r}function _l(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?Il(Object(n),!0).forEach(function(e){S()(t,e,n[e])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):Il(Object(n)).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))})}return t}var Ml="rangeSelection",Ll="lastClickCell",Nl="startSelectedCellRanges",Fl=30;function Hl(r){return function(d){var s,u,f,i,a,c,l,p=d.ref.current.domHelper&&d.ref.current.domHelper.tableBody,h=d.ref.current.domHelper&&d.ref.current.domHelper.tableFooter,v=d.ref.current.domHelper&&d.ref.current.domHelper.artTable;return p?(s=d.getColumns(),u=d.getDataSource(),f=function(e,t){var n;t&&d.setFeatureOptions(Nl,e),d.setStateAtKey(Ml,e),null!=r&&null!=(n=r.rangeSelectedChange)&&n.call(r,e,t)},i=function(e,t,n){var r,o,i,a,c,l;e&&t&&(r=e,o=t,i=M(i=s,"leaf-only"),c=i.findIndex(function(e){return e.code===r.code}),a=i.findIndex(function(e){return e.code===o.code}),i=c<a?i.slice(c,a+1):i.slice(a,c+1),c=(a=function(e,t,n){var r=null,o=-1,i=-1,a=function(e,t){if(function(e,t){return e.rowIndex===t.rowIndex&&e.code===t.code&&e.isFooterCell===t.isFooterCell}(e,t))return{startRow:e.rowIndex,endRow:e.rowIndex};var n=e.rowIndex<=t.rowIndex,e=n?e.rowIndex:e.rowIndex+e.rowSpan-1,n=n?t.rowIndex+t.rowSpan-1:t.rowIndex;return{startRow:e,endRow:n}}(e,t),c=a.startRow,a=a.endRow;e.isFooterCell||t.isFooterCell?r=e.isFooterCell&&t.isFooterCell?{startRow:c,endRow:a}:e.isFooterCell?(o=n.length-1,i=t.rowIndex,{startRow:e.rowIndex,endRow:0}):(o=e.rowIndex,i=n.length-1,{startRow:0,endRow:t.rowIndex}):(o=c,i=a);return{startRow:o,endRow:i,footerRowRange:r}}(e,t,u)).startRow,t=a.endRow,a=a.footerRowRange,c={startRow:c,endRow:t,columns:i,startColumn:e.column,footerRowRange:a},t=d.getFeatureOptions(Nl)?I()(d.getFeatureOptions(Nl)):[],Bl([c])&&(l=$l(c),t=t.filter(function(e){return $l(e)!==l})),t.push(c),Bl(t)?v.classList.remove(P()(T.rangeSelection)):v.classList.add(P()(T.rangeSelection)),f(t,n))},a=function(e){var t,e=zl(e.target,s);e&&((t=d.getFeatureOptions(Ll))?i(t,e,!0):d.setFeatureOptions(Ll,e))},c=function(e){var t=e.clientX,e=e.clientY,n=p.getBoundingClientRect(),r=n.left,o=n.top,i=n.height;r+n.width<=t+Fl&&(d.ref.current.domHelper.virtual.scrollLeft+=Fl),t-Fl<=r&&(d.ref.current.domHelper.virtual.scrollLeft-=Fl),o+i<=e+Fl&&(d.ref.current.domHelper.tableBody.scrollTop+=Fl),e+Fl<=o&&(d.ref.current.domHelper.tableBody.scrollTop-=Fl)},l=function(e,t){null!=r&&r.suppressMultiRangeSelection?d.setFeatureOptions(Nl,[]):(e||t||d.setFeatureOptions(Nl,[]),t&&((e=d.getFeatureOptions(Nl)?I()(d.getFeatureOptions(Nl)):[]).pop(),d.setFeatureOptions(Nl,e)))},d.addTableProps({onMouseDown:function(e){var n,r,t,o;0===e.button&&(_n(p,e.nativeEvent)||_n(h,e.nativeEvent))&&(t=e.ctrlKey||e.metaKey,o=e.shiftKey,n=zl(e.target,s))&&(l(t,o),o?a(e):(d.setFeatureOptions(Ll,n),r=n,t=A(window,"mousemove"),o=A(window,"mouseup"),t.pipe(R(function(e){var t=e.target||e.srcElement,t=(r=zl(t,s),{clientX:e.clientX,clientY:e.clientY});return null!=(e=r)&&e.isFooterCell||c(t),{startDragCell:n,draggingCell:r}}),Di(o)).subscribe({next:function(e){var t=e.startDragCell,e=e.draggingCell;i(t,e,!1)},complete:function(){i(n,r,!0)}})))},onKeyDown:function(e){var t,n;(_n(p,e.nativeEvent)||_n(h,e.nativeEvent))&&(e.ctrlKey||e.metaKey)&&"a"===e.key&&(t=d.getDataSource().length,n=d.getFooterDataSource()||[],s.length)&&t&&!function(e){if(e&&["input","textarea"].includes(e.tagName.toLowerCase())&&"checkbox"!==e.type)return!e.disabled&&!e.readOnly}(e.target)&&(!1!==r.preventkDefaultOfKeyDownEvent&&e.preventDefault(),v.classList.add(P()(T.rangeSelection)),f([{startRow:0,endRow:t-1,columns:M(s,"leaf-only"),startColumn:s[0],footerRowRange:0<n.length?{startRow:0,endRow:n.length-1}:null}],!0))},tabIndex:-1}),d.mapColumns(Uo(function(s){var u=d.getStateAtKey(Ml)||[],f=s.getCellProps;return _l(_l({},s),{},{getCellProps:function(e,t,n){var r,o,i,a,c,e=null==f?void 0:f(e,t,n),l=t[d.getFeatureOptions("footerRowMetaKey")];return u.some(function(e){return Vl(e,n,s,l)})?(r=u,i=(t={isFooterCell:l,rowIndex:n,col:s,record:t}).isFooterCell,a=t.rowIndex,c=t.col,t=t.record,i=function(e,t){var l=t.isFooterCell,s=t.rowIndex,u=t.col;t.record;return e.reduce(function(e,t){var n,r,o,i,a,c;return Vl(t,s,u,l)&&(r=t.startRow,n=t.endRow,i=t.columns,t=t.footerRowRange,n=(r=Wl(r,n)).startRowIndex,r=r.endRowIndex,o=(c=Kl(t)).startRowIndex,c=c.endRowIndex,a=i[0],i=i[i.length-1],a=u.code===a.code,c=l?s===c:!t&&s===r,t=u.code===i.code,e.matchCellRangeTop=e.matchCellRangeTop||(l?-1===n&&s===o:s===n),e.matchCellRangeLeft=e.matchCellRangeLeft||a,e.matchCellRangeBottom=e.matchCellRangeBottom||c,e.matchCellRangeRight=e.matchCellRangeRight||t),e},{matchCellRangeTop:!1,matchCellRangeLeft:!1,matchCellRangeBottom:!1,matchCellRangeRight:!1})}(r,{isFooterCell:i,rowIndex:a,col:c,record:t}),a=i.matchCellRangeTop,c=i.matchCellRangeLeft,t=i.matchCellRangeBottom,i=i.matchCellRangeRight,r=Bl(r),j(e,{className:P()((o={},S()(o,T.tableCellRangeSingleCell,r),S()(o,T.tableCellRangeSelected,!r),S()(o,T.tableCellRangeTop,!r&&a),S()(o,T.tableCellRangeLeft,!r&&c),S()(o,T.tableCellRangeBottom,!r&&t),S()(o,T.tableCellRangeRight,!r&&i),o))})):e}})}))):d}}function zl(t,r){for(;t;){if("table-cell"===t.getAttribute("data-role")){var e=function(){var n=t.getAttribute("data-code"),e=Ro(r,function(e,t){return e.code===n});return e?{v:{rowIndex:parseInt(t.getAttribute("data-rowindex")),rowSpan:parseInt(t.getAttribute("rowspan")||1),code:n,column:e,isFooterCell:function(e){for(;e&&!e.classList.contains(T.artTable);){if(e.classList.contains(T.tableFooter))return!0;e=e.parentElement}return!1}(t)}}:{v:null}}();if("object"===F()(e))return e.v}t=t.parentElement}return null}function Bl(e){var t,n,r;return 1===e.length&&(r=(e=e[0]).startRow,n=e.endRow,t=e.columns,n=!(e=e.footerRowRange)&&r===n&&1===t.length,r=-1===r&&e.startRow===e.endRow&&1===t.length,n||r)}function Wl(e,t){var n=t<e;return{startRowIndex:n?t:e,endRowIndex:n?e:t}}function Kl(e){return e?Wl(e.startRow,e.endRow):{startRowIndex:-1,endRowIndex:-1}}function Vl(e,t,n,r){var o,i=e.startRow,a=e.endRow,c=e.columns,e=e.footerRowRange;return-1!==c.findIndex(function(e){return e.code===n.code})&&(i=(c=Wl(i,a)).startRowIndex,a=c.endRowIndex,o=(c=Kl(e)).startRowIndex,c=c.endRowIndex,r&&e&&o<=t&&t<=c||!r&&i<=t&&t<=a)}function $l(e){var t=e.startRow,n=e.endRow,r=e.footerRowRange,e=e.columns,t=Wl(t,n),n=t.startRowIndex,t=t.endRowIndex,r=Kl(r);return n+"_"+t+"_"+r.startRowIndex+"_"+r.endRowIndex+"_"+e[0].code+"_"+e[e.length-1].code}function Gl(t,e){var n,r=Object.keys(t);return Object.getOwnPropertySymbols&&(n=Object.getOwnPropertySymbols(t),e&&(n=n.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})),r.push.apply(r,n)),r}function Yl(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?Gl(Object(n),!0).forEach(function(e){S()(t,e,n[e])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):Gl(Object(n)).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))})}return t}function Ul(){return function(o){return o.mapColumns(Uo(function(e){var r;return _(e)?(r=e.getCellProps,Yl(Yl({},e),{},{getCellProps:function(e,t,n){return j(null==r?void 0:r(e,t,n),{onMouseEnter:function(e){o.ref.current.domHelper.getInRangeRowByCellEvent(e).forEach(function(e){e.classList.add("row-hover")})},onMouseLeave:function(e){o.ref.current.domHelper.getInRangeRowByCellEvent(e).forEach(function(e){e.classList.remove("row-hover")})}})}})):e}))}}function ql(t,e){var n,r=Object.keys(t);return Object.getOwnPropertySymbols&&(n=Object.getOwnPropertySymbols(t),e&&(n=n.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})),r.push.apply(r,n)),r}var Xl=Symbol("footer-row");function Zl(){var o=0<arguments.length&&void 0!==arguments[0]?arguments[0]:{};return function(e){var t,n=null!=(n=o.dataSource)?n:e.getFooterDataSource(),r=null!=(t=o.footerRowMetaKey)?t:Xl;return e.setFeatureOptions("footerRowMetaKey",r),n?e.footerDataSource(n.map(function(e){return function(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?ql(Object(n),!0).forEach(function(e){S()(t,e,n[e])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):ql(Object(n)).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))})}return t}(S()({},r,!0),e)})):console.warn("调用 pipeline.use(features.footerDataSource()) 前请先设置页脚数据源,设置方法有:pipeline.use(features.footerDataSource({dataSource:any[]})) 或者 pipeline.footerDataSource(any[])"),e}}function Jl(t,e){var n,r=Object.keys(t);return Object.getOwnPropertySymbols&&(n=Object.getOwnPropertySymbols(t),e&&(n=n.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})),r.push.apply(r,n)),r}function Ql(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?Jl(Object(n),!0).forEach(function(e){S()(t,e,n[e])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):Jl(Object(n)).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))})}return t}function es(e){var t=e.style,n=e.className,r=e.size;return e.isExtend?x.a.createElement("svg",{className:n,width:r,height:r,style:t,viewBox:"96 96 896 896"},x.a.createElement("path",{d:"M678.347087 178.347087C690.550972 166.143203 690.550972 146.356797 678.347087 134.152913C666.143203 121.949029 646.356797 121.949029 634.152913 134.152913L290.402913 477.902913C278.199029 490.106797 278.199029 509.893203 290.402913 522.097087L634.152913 865.847087C646.356797 878.050972 666.143203 878.050972 678.347087 865.847087C690.550972 853.643203 690.550972 833.856797 678.347087 821.652913L356.694175 500L678.347087 178.347087z"})):x.a.createElement("svg",{className:n,width:r,height:r,style:t,viewBox:"96 96 896 896"},x.a.createElement("path",{d:"M321.652913 178.347087C309.449029 166.143203 309.449029 146.356797 321.652913 134.152913C333.856797 121.949029 353.643203 121.949029 365.847088 134.152913L709.597087 477.902913C721.800972 490.106797 721.800972 509.893203 709.597087 522.097087L365.847088 865.847087C353.643203 878.050972 333.856797 878.050972 321.652913 865.847087C309.449029 853.643203 309.449029 833.856797 321.652913 821.652913L643.305825 500L321.652913 178.347087z"}))}var ts=e.c.span(d()(["\n font-size:12px;\n margin-",":4px;\n"]),function(e){return v(e.direction,"left")}),ns=function(){var a=0<arguments.length&&void 0!==arguments[0]?arguments[0]:{};return function(o){var e,t=o.getColumns(),i=null!=(e=null!=(e=a.extendStatus)?e:o.getStateAtKey("colExtend"))?e:{};function n(n){var e=Ql({},n),t=i[n.code],r="function"==typeof a.extendIcon?a.extendIcon(t):a.extendIcon,r=x.a.createElement(x.a.Fragment,null,L.safeRenderHeader(Ql({},n)),x.a.createElement(ts,{onClick:function(){var e,t;e=n,t=S()({},e.code,!i[e.code]),i[e.code]=!i[e.code],o.setStateAtKey("colExtend",Ql({},i)),null!=a&&a.onChangeExtendStatus&&a.onChangeExtendStatus(i,t)},direction:o.ctx.direction},r||x.a.createElement(es,{style:{userSelect:"none",marginLeft:2,flexShrink:0,cursor:"pointer",verticalAlign:"middle"},className:P()(S()({},T.tableExtendIcon,!0)),size:14,isExtend:t})));return e.title=r,e}return o.columns(Uo(function(e){var t;return!0===((null==(t=e)?void 0:t.features)||{}).showExtendIcon&&1<(null==(t=e.children)?void 0:t.length)&&(e=n(e),!1===i[e.code])&&e.children.splice(1,e.children.length),e})(t)),o}},rs={rowDrag:"rowDrag"},os="rowDragKey",is="rowDragOptions",as=30,cs=20,ls={name:"拖拽列",code:"$_row_drag_column_&",lock:!0,title:"",width:40,align:"center",getCellProps:function(e,t,n){return{className:P()(T.rowDragCell)}},render:function(e,t,n){return x.a.createElement("svg",{viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/1999/xlink","data-icon":"drag",width:"16",height:"16"},x.a.createElement("path",{d:"M298.688 192a64 64 0 1 0 128 0 64 64 0 0 0-128 0z m298.624 0a64 64 0 1 0 128 0 64 64 0 0 0-128 0zM298.688 512a64 64 0 1 0 128 0 64 64 0 0 0-128 0z m298.624 0a64 64 0 1 0 128 0 64 64 0 0 0-128 0z m-298.624 320a64 64 0 1 0 128 0 64 64 0 0 0-128 0z m298.624 0a64 64 0 1 0 128 0 64 64 0 0 0-128 0z"}))}};function ss(C){return function(E){var d,p,k,t,h,e,v=E.ref.current.domHelper&&E.ref.current.domHelper.tableBody,g=E.ref.current.domHelper&&E.ref.current.domHelper.artTable,j=E.addFeatureApi(rs.rowDrag);return E.setFeatureOptions(is,C),v&&(d=E.getDataSource(),p=function(e,t){var n=e.dragItem,r=e.x,o=e.y,i=e.dropZoneTarget,a=e.startDropZoneTagret,c=e.commonParams,l=e.startCommonParams,s=e.event,e=e.dropZoneTableParams,u=e.getDataSource,f=e.getTreeModeOptions,e=e.getRowDragOptions,u=u(),f=f(),e=e(),f=!!f&&(null==e?void 0:e.allowDragIntoRow),e=-1,d="bottom",p=(!!vs(s,i)&&0<u.length&&(p=us(_c(s),i,u))&&(e=p.rowIndex,d=ys(p.cell,N(s).clientY,f)),-1===e&&0<u.length&&i.contains(_c(s))&&(e=u.length-1,d="bottom"),0<=e?u[e]:null);return{startRowIndex:n.rowIndex,startRow:n.row,endRowIndex:e,endRow:p,startDropZoneTagret:a,startCommonParams:l,commonParams:c,dropZoneTarget:i,event:s,dragPosition:d,isFinished:t,x:r,y:o}},k={getContainer:function(){return E.getLastPipeline().ref.current.domHelper.tableBody},onDragEnter:function(e){var t,e=p(e,!1);E.setStateAtKey(os,e),null!=C&&null!=(t=C.onDragEnter)&&t.call(C,e)},onDragLeave:function(e){var t,e=p(e,!1);E.setStateAtKey(os,e),null!=C&&null!=(t=C.onDragLeave)&&t.call(C,e)},onDragging:function(e){var t,e=p(e,!1);null!=C&&null!=(t=C.onDragMove)&&t.call(C,e),E.setStateAtKey(os,e)},onDragStop:function(e){var t,e=p(e,!0);E.setStateAtKey(os,e),null!=C&&null!=(t=C.onDragEnd)&&t.call(C,e)},isTable:!0,tableParams:{getDataSource:function(){return E.getLastPipeline().getDataSource()},getTreeModeOptions:function(){return E.getLastPipeline().getFeatureOptions("treeModeOptions")},getRowDragOptions:function(){return E.getLastPipeline().getFeatureOptions("rowDragOptions")}}},t=function(n){var r,t,y,b,m,o,i,w,x,S,a,c,l,e,s,u,f,O=us(_c(n),v,d);!O||O.code!==h.code||null!=C&&null!=(s=C.isDisabled)&&s.call(C,O.row,O.rowIndex)||(t=r=!1,w=i=o=m=b=y=null,x=[],S=function(e,t){var n;null!=C&&C.suppressScrollMove||(o&&clearTimeout(o),i&&clearInterval(i),e&&0!==(n=function(e,t){var t=N(t).clientY,e=e.getBoundingClientRect(),n=e.top,e=e.height;if(n+e-cs<=t&&t<=n+e)return as;if(n<=t&&t<=n+cs)return-as;return 0}(e,t))&&(o=setTimeout(function(){i=setInterval(function(){e.scrollTop+=n},50)},500)))},a=function(e){try{e.cancelable&&e.preventDefault()}catch(e){console.warn("preventDefault failed in passive event listener")}document.body.style.userSelect="none",document.body.style.webkitUserSelect="none",document.body.classList.add("row-dragging"),y=function(e,t){var n="<div class='".concat(T.rowDragElement,"'>\n <span class='").concat(T.rowDragElementIcon,"'></span>\n <div class='").concat(T.rowDragElementLabel,"'></div>\n </div>"),r=document.createElement("div"),n=(r.innerHTML=n,r.firstChild),r=function(e,t){for(;e&&t.contains(e);){if("table-row"===e.getAttribute("data-role"))return e;e=e.parentElement}return null}(_c(e),t);r&&(e=r.getBoundingClientRect(),n.style.height=e.height+"px");r=t.getBoundingClientRect();return n.style.maxWidth=r.width+"px",document.body.appendChild(n),n}(e,v);var t=!!E.getFeatureOptions("treeModeOptions"),t=(b=function(e){var t=document.createElement("div");t.classList.add(T.rowDragLine),e&&t.classList.add(T.treeTableRowDragLine);return document.body.appendChild(t),t}(t),null!=C&&C.rowDragText?null==C||null==(t=C.rowDragText)?void 0:t.call(C,O.row,O.rowIndex):"第".concat(O.rowIndex,"行内容")),n=y,n=(t=t.toString(),n=n.querySelector(".".concat(T.rowDragElementLabel)),t=document.createTextNode(t),n.appendChild(t),g.classList.add(P()(T.rowDragging)),j.setDragStatus("start"),gs(k,e,O,k));t=p(t=n,!1),null!=C&&null!=(e=C.onDragStart)&&e.call(C,t)},c=function(a){try{a.cancelable&&a.preventDefault()}catch(e){console.warn("preventDefault failed in passive event listener")}var e="rtl"===E.ctx.direction;u=a,i=e,(s=y)&&(l=s.getBoundingClientRect().height,r=null!=(r=null==(r=document.body)?void 0:r.clientWidth)?r:window.innerHeight||(null==(r=document.documentElement)?void 0:r.clientWidth)||0,t=null!=(t=null==(t=document.body)?void 0:t.clientHeight)?t:window.innerHeight||(null==(t=document.documentElement)?void 0:t.clientHeight)||0,c=fs(s.offsetParent),u=N(u),o=u.clientX,u=u.clientY-c.top-l/2,l=o-c.left,c=Math.max(r-o,0),o=window.pageXOffset||window.scrollX,n=window.pageYOffset||window.scrollY,0<r&&l+s.clientWidth>r+o&&(l=Math.max(r+o-s.clientWidth,0)),0<t&&u+s.clientHeight>t+n&&(u=Math.max(t+n-s.clientHeight,0)),0<r&&c+s.clientWidth>r+o&&(c=Math.max(r+o-s.clientWidth,0)),i?s.style.right=c+"px":s.style.left=l+"px",s.style.top=u+"px"),j.setDragStatus("dragging"),hs(y,"move");var t,n,r,o,i,c,l,s,u,f,d,p,h,v,g=j.getRowDropZone().concat(k).find(function(e){return vs(a,e.getContainer())})||null;S(null==g?void 0:g.getContainer(),a),g!==m&&(null!==m&&null===g&&m.onDragLeave&&(hs(y,"notAllowed"),b.style.display="none",m.getContainer().classList.remove(T.rowDragNoData),t=gs(m,a,O,k),m.onDragLeave(t)),null===m&&null!==g&&g.onDragEnter&&(hs(y,"move"),g.isTable&&(b.style.display="block",!!(0,g.tableParams.getTreeModeOptions)()?b.classList.add(T.treeTableRowDragLine):b.classList.remove(T.treeTableRowDragLine)),n=gs(g,a,O,k),g.onDragEnter(n)),m=g),g&&(g.isTable&&(o=(r={lineElement:b,dragZone:g,event:a,isRTL:e}).lineElement,i=r.dragZone,c=r.event,r=r.isRTL,l=i.getContainer(),i=i.tableParams,s=i.getDataSource,u=i.getTreeModeOptions,i=i.getRowDragOptions,s=s(),u=u(),i=(i()||{}).allowDragIntoRow,e=!!u,f=l.getBoundingClientRect(),d=fs(document.body),0===s.length?(l.classList.add(T.rowDragNoData),o.style.display="none"):(l.classList.remove(T.rowDragNoData),o.style.display="block"),(v=us(_c(c),l,s))?(h=v.cell,p=v.rowIndex,v=v.row,i=e&&i,i=ys(h,N(c).clientY,i),(p=e?l.querySelector('tr[data-rowindex="'.concat(p,'"] .').concat(T.tableExtendCell)):h)&&(h=bs({treeModeOptions:u,cell:p,row:v,direction:i,offsetParentSize:d,bodyRect:f,isRTL:r}),p=h.top,v=h.left,h=h.width,o.style.left="".concat(v,"px"),o.style.top="".concat(p,"px"),o.style.width="".concat(h,"px"),o.style.display="into"===i?"none":"block")):0<s.length&&l.contains(_c(c))&&(v=s.length-1,p=s[v],h=e?l.querySelector('tr[data-rowindex="'.concat(v,'"] .').concat(T.tableExtendCell)):l.querySelector('tr[data-rowindex="'.concat(v,'"] .').concat(T.rowDragCell)))&&(i=bs({treeModeOptions:u,cell:h,row:p,direction:"bottom",offsetParentSize:d,bodyRect:f,isRTL:r}),c=i.top,s=i.left,e=i.width,o.style.left="".concat(s,"px"),o.style.top="".concat(c,"px"),o.style.width="".concat(e,"px"))),null!=g&&null!=(v=g.tableParams)&&v.getTreeModeOptions()&&(w&&clearTimeout(w),w=setTimeout(function(){var e,t=g.tableParams.getTreeModeOptions(),n=t.treeMetaKey,r=t.onExpand,o=t.isExpanded,i=t.onCollapse,t=g.tableParams.getDataSource(),t=us(_c(a),g.getContainer(),t);t&&(t=t.row[n],e=t.rowKey,t.isLeaf||o(e)||(r(e),x.push(function(){return i(e)})))},1e3)),g.onDragging)&&(u=gs(g,a,O,k),g.onDragging(u))},l=function(t){if(r){document.body.style.userSelect="",document.body.style.webkitUserSelect="",document.body.classList.remove("row-dragging"),ps(y),ps(b),g.classList.remove(P()(T.rowDragging)),j.setDragStatus("finished"),clearTimeout(o),clearInterval(i),clearTimeout(w);var e=j.getRowDropZone();e.forEach(function(e){e=e.getContainer();e&&e.classList.remove(T.rowDragNoData)});var n,e=e.concat(k).find(function(e){return vs(t,e.getContainer())});for(e&&e.onDragStop&&(n=gs(e,t,O,k),e.onDragStop(n));0<x.length;)x.pop()()}},"touches"in n?(s=A(window,"touchmove",{passive:!1}),u=A(window,"touchend",{passive:!1}),s.pipe(St(function(e){var e=N(e),t=N(n),e=e.clientY,t=t.clientY;return r=5<Math.abs(e-t)?!0:r}),R(function(e){t||(t=!0,a(n),c(n)),c(e)}),Di(u)).subscribe(),e=u.pipe(R(function(e){l(e)})).subscribe({next:function(){e.unsubscribe()}})):(s=A(window,"mousemove"),u=A(window,"mouseup"),s.pipe(St(function(e){var e=N(e),t=N(n),e=e.clientY,t=t.clientY;return r=5<Math.abs(e-t)?!0:r}),R(function(e){t||(t=!0,a(n),c(n)),c(e)}),Di(u)).subscribe(),f=u.pipe(R(function(e){l(e)})).subscribe({next:function(){f.unsubscribe()}})))},h=(null==C?void 0:C.rowDragColumn)||ls,E.setFeatureOptions("rowDragColumnKey",h.code),j.setRowDropZoneParams(k),(e=E.getColumns().slice()).unshift(h),E.columns(e),E.addTableProps({onMouseDown:function(e){t(e.nativeEvent)},onTouchStart:function(e){try{e.cancelable&&e.preventDefault()}catch(e){console.warn("preventDefault failed in passive touch event listener")}t(e.nativeEvent)}}),E.appendRowPropsGetter(function(e,t){var n,r,o=E.getStateAtKey(os)||{},i=j.getDragStatus(),a=o.startRowIndex,c=o.endRowIndex,l=o.endRow,s=o.isFinished,o=o.dragPosition,e=e[E.getFeatureOptions("footerRowMetaKey")],u=E.getFeatureOptions("treeModeOptions"),f=!!u;if(!(e||s||!f&&t!==a&&t!==c))return e=-1,f&&l&&(n=l[u.treeMetaKey].parentRowKey,r=E.ensurePrimaryKey("rowDrag"),e=E.getDataSource().findIndex(function(e){return L.safeGetRowKey(r,e,-1)===n})),{className:P()((s={},S()(s,T.rowDragStart,t===a&&"finished"!==i),S()(s,T.rowDragEnd,t===c),S()(s,T.rowDragEndParent,f&&t===e&&"into"!==o),S()(s,T.rowDragEndInto,t===c&&"into"===o),S()(s,T.rowDragEndToTop,t===c&&"top"===o),S()(s,T.rowDragEndToBottom,t===c&&"bottom"===o),s))}})),E}}function us(e,t,n){for(;e&&t.contains(e);){var r,o,i,a;if("table-cell"===e.getAttribute("data-role"))return r=e.getAttribute("data-code"),i=n[o=parseInt(e.getAttribute("data-rowindex"))],a=function(e){for(;e&&!e.classList.contains(T.artTable);){if(e.classList.contains(T.tableFooter))return!0;e=e.parentElement}return!1}(e),!i||a?null:{rowIndex:o,row:i,code:r,cell:e};e=e.parentElement}return null}function fs(e){var t=e.getBoundingClientRect(),e=ds(e),n=e.borderTopWidth,r=e.borderLeftWidth,o=e.borderRightWidth,e=e.borderBottomWidth;return{top:t.top+(n||0),left:t.left+(r||0),right:t.right+(o||0),bottom:t.bottom+(e||0)}}function ds(e){var e=window.getComputedStyle(e),t=e.height,n=e.width,r=e.borderTopWidth,o=e.borderRightWidth,i=e.borderBottomWidth,a=e.borderLeftWidth,c=e.paddingTop,l=e.paddingRight,s=e.paddingBottom,u=e.paddingLeft,f=e.marginTop,d=e.marginRight,p=e.marginBottom,h=e.marginLeft,e=e.boxSizing;return{height:parseFloat(t||"0"),width:parseFloat(n||"0"),borderTopWidth:parseFloat(r||"0"),borderRightWidth:parseFloat(o||"0"),borderBottomWidth:parseFloat(i||"0"),borderLeftWidth:parseFloat(a||"0"),paddingTop:parseFloat(c||"0"),paddingRight:parseFloat(l||"0"),paddingBottom:parseFloat(s||"0"),paddingLeft:parseFloat(u||"0"),marginTop:parseFloat(f||"0"),marginRight:parseFloat(d||"0"),marginBottom:parseFloat(p||"0"),marginLeft:parseFloat(h||"0"),boxSizing:e}}function ps(e){document.body.removeChild(e)}function hs(e,t){for(var e=e.querySelector(".".concat(T.rowDragElementIcon)),n=e;null!=n&&n.firstChild;)n.removeChild(n.firstChild);t=t||"notAllowed";var r=document.createElement("span");"move"===t?r.classList.add(T.iconMove):"notAllowed"===t&&r.classList.add(T.iconNotAllowed),e.appendChild(r)}function vs(e,t){e=_c(e);return t.contains(e)}function gs(e,t,n,r){var o=e.getContainer(),i=r.getContainer(),a=o.getBoundingClientRect(),c=N(t),l=c.clientX,c=c.clientY,l=l-a.left,c=c-a.top,a=r.tableParams.getRowDragOptions(),r={dragItem:n,startDropZoneTagret:i,startCommonParams:null==a?void 0:a.commonParams,dropZoneTarget:o,event:t,x:l,y:c};return e.isTable&&(i=null==(n=e.tableParams.getRowDragOptions())?void 0:n.commonParams,r.dropZoneTableParams=e.tableParams,r.commonParams=i),r}function ys(e,t,n){var n=2<arguments.length&&void 0!==n&&n,e=e.getBoundingClientRect(),r=e.height,e=e.y,o="bottom";return n?t<e+r/4?o="top":t<e+3*r/4&&(o="into"):t<e+r/2&&(o="top"),o}var bs=function(e){var t,n,r,o,i,a,c,l=e.treeModeOptions,s=e.cell,u=e.row,f=e.direction,d=e.offsetParentSize,p=e.bodyRect,e=e.isRTL;return!l?(c=(a=s.getBoundingClientRect()).y,e=a.height,{top:"bottom"===f?c+e-d.top:c-d.top,left:p.x-d.left,width:p.width}):(r=l.iconWidth,o=l.iconIndent,c=l.iconGap,i=l.indentSize,l=l.treeMetaKey,a=(t=ds(s)).paddingLeft,t=t.paddingRight,n=s.getBoundingClientRect(),u=o+(o=u[l]).depth*i+(o.isLeaf?r+c:0),l=n.x,i=n.y,o=n.height,r="bottom"===f?i+o-d.top:i-d.top,c=Math.max(l+a+u-p.x,0),o=p.x+c-d.left,i=p.width-c,e?(l=p.right-n.right,{top:r,left:p.x-d.left,width:p.width-l-t-u}):{top:r,left:o,width:i})},ms=function(){function t(e){i()(this,t),S()(this,"pipeline",void 0),S()(this,"rowDropZoneParams",void 0),S()(this,"rowDropZones",void 0),S()(this,"dragStatus",void 0),this.pipeline=e,this.rowDropZoneParams=null,this.rowDropZones=[],this.dragStatus="finished"}return r()(t,[{key:"getRowDropZoneParams",value:function(){return this.rowDropZoneParams}},{key:"setRowDropZoneParams",value:function(e){this.rowDropZoneParams=e}},{key:"addRowDropZone",value:function(t){t&&null!=t&&t.getContainer()&&(this.rowDropZones.some(function(e){return e.getContainer()===t.getContainer()})||this.rowDropZones.push(t))}},{key:"getRowDropZone",value:function(){return this.rowDropZones}},{key:"removeRowDropZone",value:function(t){this.rowDropZones=this.rowDropZones.filter(function(e){return e.getContainer()!==t.getContainer()})}},{key:"setDragStatus",value:function(e){this.dragStatus!==(this.dragStatus=e)&&this.pipeline.setStateAtKey("rowDragStatus",e)}},{key:"getDragStatus",value:function(){return this.dragStatus}}]),t}();function ws(t,e){var n,r=Object.keys(t);return Object.getOwnPropertySymbols&&(n=Object.getOwnPropertySymbols(t),e&&(n=n.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})),r.push.apply(r,n)),r}function xs(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?ws(Object(n),!0).forEach(function(e){S()(t,e,n[e])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):ws(Object(n)).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))})}return t}var Ss=function(){function o(e){var t=e.state,n=e.setState,r=e.ctx,e=e.ref;i()(this,o),S()(this,"ref",void 0),S()(this,"_snapshots",{}),S()(this,"_rowPropsGetters",[]),S()(this,"_tableProps",{}),S()(this,"_dataSource",void 0),S()(this,"_isSameInputDataSource",void 0),S()(this,"_columns",void 0),S()(this,"_footerDataSource",void 0),S()(this,"ctx",{components:{},indents:o.defaultIndents}),S()(this,"state",void 0),S()(this,"setState",void 0),this.state=t,this.setState=n,this.ref=e,O()(this.ctx,r)}return r()(o,[{key:"guid",value:function(){function e(){return(65536*(1+Math.random())|0).toString(16).substring(1)}return e()+e()+"-"+e()+"-"+e()+"-"+e()+"-"+e()+e()+e()}},{key:"appendRowPropsGetter",value:function(e){return this._rowPropsGetters.push(e),this}},{key:"addTableProps",value:function(e){this._tableProps=j(this._tableProps,e)}},{key:"getDataSource",value:function(e){return null==e?this._dataSource:this._snapshots[e].dataSource}},{key:"isSameInputDataSource",value:function(){return this._isSameInputDataSource}},{key:"getColumns",value:function(e){return null==e?this._columns:this._snapshots[e].columns}},{key:"getFooterDataSource",value:function(){return this._footerDataSource}},{key:"getStateAtKey",value:function(e,t){return null!=(e=this.state[e])?e:t}},{key:"setStateAtKey",value:function(t,n,e){this.setState(function(e){return xs(xs({},e),{},S()({},t,n))},t,n,e)}},{key:"ensurePrimaryKey",value:function(e){if(null==this.ctx.primaryKey)throw new Error(e?"使用 ".concat(e," 之前必须先设置 primaryKey"):"必须先设置 primaryKey");return this.ctx.primaryKey}},{key:"input",value:function(e){var t=this;if(null!=this._dataSource||null!=this._columns)throw new Error("input 不能调用两次");return this._isSameInputDataSource=e.dataSource===this.ref.current._lastInputDataSource,this._dataSource=e.dataSource,this.ref.current._lastInputDataSource=e.dataSource,(this.ref.current.lastPipeline=this)._columns=e.columns.map(function(e){return xs(xs({},e),{},{key:t.guid()})}),this.snapshot("input"),this}},{key:"dataSource",value:function(e){return this._dataSource=e,this}},{key:"columns",value:function(e){return this._columns=e,this}},{key:"primaryKey",value:function(e){return this.ctx.primaryKey=e,this}},{key:"footerDataSource",value:function(e){return this._footerDataSource=e,this}},{key:"snapshot",value:function(e){return this._snapshots[e]={dataSource:this._dataSource,columns:this._columns,rowPropsGetters:this._rowPropsGetters.slice()},this}},{key:"useTransform",value:function(e){e=e({dataSource:this.getDataSource(),columns:this.getColumns()});return this.dataSource(e.dataSource).columns(e.columns)}},{key:"use",value:function(e){return e(this)}},{key:"mapDataSource",value:function(e){return this.dataSource(e(this.getDataSource()))}},{key:"mapColumns",value:function(e){return this.columns(e(this.getColumns()))}},{key:"getFeatureOptions",value:function(e){var t;return null==(t=this.ref.current.featureOptions)?void 0:t[e]}},{key:"setFeatureOptions",value:function(e,t){this.ref.current.featureOptions[e]=t}},{key:"getProps",value:function(){var t=this,e=(this.use(Gc()),{dataSource:this._dataSource,columns:this._columns});return this.ctx.primaryKey&&(e.primaryKey=this.ctx.primaryKey),this._footerDataSource&&(e.footerDataSource=this._footerDataSource),0<this._rowPropsGetters.length&&(e.getRowProps=function(n,r){return t._rowPropsGetters.reduce(function(e,t){return j(e,t(n,r))},{})}),e.getTableProps=function(){return t._tableProps},e.setTableWidth=function(e){t.getStateAtKey(Uc)!==e&&e&&t.setStateAtKey(Uc,e)},e.setTableDomHelper=function(e){t.ref.current.domHelper=e},e.setRowHeightManager=function(e){t.ref.current.rowHeightManager=e},e}},{key:"getFeatureApi",value:function(e){var t;return null==(t=this.ref.current.featureApi)?void 0:t[e]}},{key:"addFeatureApi",value:function(e){return this.getFeatureApi(e)||(this.ref.current.featureApi[e]=function(e,t){if(e===rs.rowDrag)return new ms(t)}(e,this)),this.ref.current.featureApi[e]}},{key:"getLastPipeline",value:function(){return this.ref.current.lastPipeline}}]),o}();function Os(e){var t=Object(y.useState)({}),t=D()(t,2),n=t[0],t=t[1],r=Object(y.useRef)({featureOptions:{},featureApi:{}});return new Ss({state:n,setState:t,ctx:e,ref:r})}S()(Ss,"defaultIndents",{iconIndent:-8,iconWidth:16,iconGap:0,indentSize:16})}],a={},o.m=i,o.c=a,o.d=function(e,t,n){o.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:n})},o.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},o.t=function(t,e){if(1&e&&(t=o(t)),8&e)return t;if(4&e&&"object"==typeof t&&t&&t.__esModule)return t;var n=Object.create(null);if(o.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var r in t)o.d(n,r,function(e){return t[e]}.bind(null,r));return n},o.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return o.d(t,"a",t),t},o.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},o.p="",o(o.s=205);function o(e){var t;return(a[e]||(t=a[e]={i:e,l:!1,exports:{}},i[e].call(t.exports,t,t.exports,o),t.l=!0,t)).exports}var i,a});
|
|
217
217
|
//# sourceMappingURL=table.min.js.map
|