@kdcloudjs/table 1.1.3-canary.8 → 1.1.3-canary.9
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/@kdcloudjs/table.css +1 -1
- package/dist/@kdcloudjs/table.js +20 -11
- package/dist/@kdcloudjs/table.js.map +1 -1
- package/dist/@kdcloudjs/table.min.css +1 -1
- package/dist/@kdcloudjs/table.min.js +5 -5
- package/dist/@kdcloudjs/table.min.js.map +1 -1
- package/es/table/pipeline/features/columnDrag.js +19 -10
- package/lib/table/pipeline/features/columnDrag.js +19 -10
- package/package.json +1 -1
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
*
|
|
3
|
-
* @kdcloudjs/table v1.1.3-canary.
|
|
3
|
+
* @kdcloudjs/table v1.1.3-canary.8
|
|
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,u=r?Symbol.for("react.profiler"):60114,l=r?Symbol.for("react.provider"):60109,s=r?Symbol.for("react.context"):60110,f=r?Symbol.for("react.async_mode"):60111,p=r?Symbol.for("react.concurrent_mode"):60111,d=r?Symbol.for("react.forward_ref"):60112,h=r?Symbol.for("react.suspense"):60113,v=r?Symbol.for("react.suspense_list"):60120,y=r?Symbol.for("react.memo"):60115,b=r?Symbol.for("react.lazy"):60116,g=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 O(e){if("object"==typeof e&&null!==e){var t=e.$$typeof;switch(t){case o:switch(e=e.type){case f:case p:case a:case u:case c:case h:return e;default:switch(e=e&&e.$$typeof){case s:case d:case b:case y:case l:return e;default:return t}}case i:return t}}}function S(e){return O(e)===p}t.AsyncMode=f,t.ConcurrentMode=p,t.ContextConsumer=s,t.ContextProvider=l,t.Element=o,t.ForwardRef=d,t.Fragment=a,t.Lazy=b,t.Memo=y,t.Portal=i,t.Profiler=u,t.StrictMode=c,t.Suspense=h,t.isAsyncMode=function(e){return S(e)||O(e)===f},t.isConcurrentMode=S,t.isContextConsumer=function(e){return O(e)===s},t.isContextProvider=function(e){return O(e)===l},t.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===o},t.isForwardRef=function(e){return O(e)===d},t.isFragment=function(e){return O(e)===a},t.isLazy=function(e){return O(e)===b},t.isMemo=function(e){return O(e)===y},t.isPortal=function(e){return O(e)===i},t.isProfiler=function(e){return O(e)===u},t.isStrictMode=function(e){return O(e)===c},t.isSuspense=function(e){return O(e)===h},t.isValidElementType=function(e){return"string"==typeof e||"function"==typeof e||e===a||e===p||e===u||e===c||e===h||e===v||"object"==typeof e&&null!==e&&(e.$$typeof===b||e.$$typeof===y||e.$$typeof===l||e.$$typeof===s||e.$$typeof===d||e.$$typeof===m||e.$$typeof===w||e.$$typeof===x||e.$$typeof===g)},t.typeOf=O},function(e,t,n){var r=n(19),o=n(274),n=n(64);r({target:"Array",proto:!0},{fill:o}),n("fill")},function(e,t,n){"use strict";var a=n(43),c=n(79),u=n(45);e.exports=function(e){for(var t=a(this),n=u(t),r=arguments.length,o=c(1<r?arguments[1]:void 0,n),r=2<r?arguments[2]:void 0,i=void 0===r?n:c(r,n);o<i;)t[o++]=e;return t}},function(e,t,n){"use strict";n(179)("Set",function(e){return function(){return e(this,arguments.length?arguments[0]:void 0)}},n(183))},function(e,t,n){var r=n(11),o=n(38),i=n(53),a=n(277),c=Object.isExtensible,n=r(function(){c(1)});e.exports=n||a?function(e){return!!o(e)&&((!a||"ArrayBuffer"!=i(e))&&(!c||c(e)))}:c},function(e,t,n){n=n(11);e.exports=n(function(){var e;"function"==typeof ArrayBuffer&&(e=new ArrayBuffer(8),Object.isExtensible(e)&&Object.defineProperty(e,"a",{value:8}))})},function(e,t,n){n=n(11);e.exports=!n(function(){return Object.isExtensible(Object.preventExtensions({}))})},function(e,t,n){var o=n(44);e.exports=function(e,t,n){for(var r in t)o(e,r,t[r],n);return e}},function(e,t,n){n(19)({target:"Object",stat:!0},{is:n(281)})},function(e,t){e.exports=Object.is||function(e,t){return e===t?0!==e||1/e==1/t:e!=e&&t!=t}},function(e,t,n){"use strict";n(179)("Map",function(e){return function(){return e(this,arguments.length?arguments[0]:void 0)}},n(183))},function(e,t,n){var r=n(177);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(5),o=n(125),i=r.TypeError;e.exports=function(e){if(o(e))throw i("The method doesn't accept regular expressions");return e}},function(e,t,n){var r=n(23)("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(19),o=n(13),c=n(75),u=n(43),l=n(45),s=n(41),i=n(11),f=n(288),a=n(149),p=n(289),d=n(290),h=n(87),v=n(291),y=[],b=o(y.sort),g=o(y.push),n=i(function(){y.sort(void 0)}),o=i(function(){y.sort(null)}),a=a("sort"),m=!i(function(){if(h)return h<70;if(!(p&&3<p)){if(d)return!0;if(v)return v<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||!m},{sort:function(e){void 0!==e&&c(e);var t=u(this);if(m)return void 0===e?b(t):b(t,e);for(var n,r,o=[],i=l(t),a=0;a<i;a++)a in t&&g(o,t[a]);for(f(o,(r=e,function(e,t){return void 0===t?-1:void 0===e?1:void 0!==r?+r(e,t)||0:s(e)>s(t)?1:-1})),n=o.length,a=0;a<n;)t[a]=o[a++];for(;a<i;)delete t[a++];return t}})},function(e,t,n){function g(e,t){var n=e.length,r=w(n/2);if(n<8){for(var o,i,a=e,c=t,u=a.length,l=1;l<u;){for(o=a[i=l];i&&0<c(a[i-1],o);)a[i]=a[--i];i!==l++&&(a[i]=o)}return a}for(var s=e,f=g(m(e,0,r),t),p=g(m(e,r),t),d=t,h=f.length,v=p.length,y=0,b=0;y<h||b<v;)s[y+b]=y<h&&b<v?d(f[y],p[b])<=0?f[y++]:p[b++]:y<h?f[y++]:p[b++];return s}var m=n(123),w=Math.floor;e.exports=g},function(e,t,n){n=n(88).match(/firefox\/(\d+)/i);e.exports=!!n&&+n[1]},function(e,t,n){n=n(88);e.exports=/MSIE|Trident/.test(n)},function(e,t,n){n=n(88).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){"use strict";var r=n(19),o=n(63).find,n=n(64),i=!0;"find"in[]&&Array(1).find(function(){i=!1}),r({target:"Array",proto:!0,forced:i},{find:function(e){return o(this,e,1<arguments.length?arguments[1]:void 0)}}),n("find")},function(L,e,t){"use strict";t.r(e),t.d(e,"ConfigProvider",function(){return U}),t.d(e,"Table",function(){return Ur}),t.d(e,"TableProps",function(){}),t.d(e,"PrimaryKey",function(){}),t.d(e,"LoadingContentWrapperProps",function(){}),t.d(e,"Classes",function(){return E}),t.d(e,"TableCSSVariables",function(){}),t.d(e,"collectNodes",function(){return I}),t.d(e,"getTreeDepth",function(){return kn}),t.d(e,"groupBy",function(){return Jr}),t.d(e,"isLeafNode",function(){return _}),t.d(e,"isGroupColumn",function(){return Zr}),t.d(e,"applyTransforms",function(){return Qr}),t.d(e,"buildTree",function(){return uo}),t.d(e,"exportTableAsExcel",function(){return po}),t.d(e,"layeredSort",function(){return yo}),t.d(e,"mergeCellProps",function(){return k}),t.d(e,"proto",function(){return go}),t.d(e,"makeRecursiveMapper",function(){return So}),t.d(e,"smartCompare",function(){return ko}),t.d(e,"traverseColumn",function(){return Ro}),t.d(e,"copyDataToClipboard",function(){return _o}),t.d(e,"executeOnTempElement",function(){return Io}),t.d(e,"layeredFilter",function(){return Do}),t.d(e,"getEventPath",function(){return Lo}),t.d(e,"isElementInEventPath",function(){return No}),t.d(e,"getTargetEleInEventPath",function(){return Ho}),t.d(e,"calculatePointerRelative",function(){return Fo}),t.d(e,"calculatePopupRelative",function(){return zo}),t.d(e,"keepWithinBounds",function(){return Bo}),t.d(e,"console",function(){return jt}),t.d(e,"browserType",function(){return Nt}),t.d(e,"makeAutoRowSpanTransform",function(){return Go}),t.d(e,"useAutoWidthTransform",function(){return Zo}),t.d(e,"makeBuildTreeTransform",function(){return Qo}),t.d(e,"makeColumnHoverTransform",function(){return ni}),t.d(e,"ColumnHoverOptions",function(){}),t.d(e,"useColumnHoverTransform",function(){return ri}),t.d(e,"makeColumnRangeHoverTransform",function(){return ci}),t.d(e,"ColumnRangeHoverOptions",function(){}),t.d(e,"useColumnHoverRangeTransform",function(){return ui}),t.d(e,"makeColumnResizeTransform",function(){return gi}),t.d(e,"ColumnResizeOptions",function(){}),t.d(e,"useColumnResizeTransform",function(){return mi}),t.d(e,"makeFlattenTransform",function(){return wi}),t.d(e,"makeOrderFieldTransform",function(){return Si}),t.d(e,"makeSortTransform",function(){return Ii}),t.d(e,"SortHeaderCellProps",function(){}),t.d(e,"SortOptions",function(){}),t.d(e,"useSortTransform",function(){return Ti}),t.d(e,"makeTipsTransform",function(){return Bi}),t.d(e,"TipsOptions",function(){}),t.d(e,"makeTreeModeTransform",function(){return ta}),t.d(e,"TreeModeOptions",function(){}),t.d(e,"useTreeModeTransform",function(){return na}),t.d(e,"makeVisibleTransform",function(){return ia}),t.d(e,"TablePipeline",function(){return fu}),t.d(e,"useTablePipeline",function(){return pu}),t.d(e,"features",function(){return n}),t.d(e,"internals",function(){return j});var n={},d=(t.r(n),t.d(n,"autoRowSpan",function(){return la}),t.d(n,"buildTree",function(){return sa}),t.d(n,"columnHover",function(){return da}),t.d(n,"ColumnHoverFeatureOptions",function(){}),t.d(n,"columnRangeHover",function(){return ba}),t.d(n,"ColumnRangeHoverFeatureOptions",function(){}),t.d(n,"multiSelect",function(){return wa}),t.d(n,"MultiSelectFeatureOptions",function(){}),t.d(n,"rowDetail",function(){return Ea}),t.d(n,"RowDetailFeatureOptions",function(){}),t.d(n,"rowGrouping",function(){return _a}),t.d(n,"RowGroupingFeatureOptions",function(){}),t.d(n,"singleSelect",function(){return Ma}),t.d(n,"SingleSelectFeatureOptions",function(){}),t.d(n,"sort",function(){return Ka}),t.d(n,"SortFeatureOptions",function(){}),t.d(n,"tips",function(){return Ya}),t.d(n,"treeMode",function(){return Ui}),t.d(n,"TreeModeFeatureOptions",function(){}),t.d(n,"treeMetaSymbol",function(){return Yi}),t.d(n,"treeSelect",function(){return cc}),t.d(n,"TreeSelectFeatureOptions",function(){}),t.d(n,"columnDrag",function(){return gc}),t.d(n,"ColumnDragOptions",function(){}),t.d(n,"columnResize",function(){return Pc}),t.d(n,"ColumnResizeOptions",function(){}),t.d(n,"contextMenu",function(){return Ac}),t.d(n,"ContextMenuFeatureOptions",function(){}),t.d(n,"filter",function(){return qc}),t.d(n,"FilterFeatureOptions",function(){}),t.d(n,"rangeSelection",function(){return eu}),t.d(n,"RangeSelectionFeatureOptions",function(){}),t.d(n,"mergeCellHover",function(){return iu}),t.d(n,"footerDataSource",function(){return uu}),t.d(n,"FooterDataSourceFeatureOptions",function(){}),t.d(n,"footerRowMetaSymbol",function(){return cu}),t(0)),w=t.n(d),e=t(188),N=t.n(e),e=(t(29),t(28),t(27),t(21),t(4),t(24),t(31),t(20),t(22),t(42)),H=t.n(e),e=t(35),i=t.n(e),e=t(36),r=t.n(e),e=t(1),x=t.n(e),F=(t(25),t(116),t(14),t(3),t(6),t(256),t(65),t(145),t(258),{locale:"zh-CN","global.selectholder":"请选择","global.placeholder":"请输入...","global.cancel":"取消","global.confirm":"确定"});function z(e,t){var n,r="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!r){if(Array.isArray(e)||(r=function(e,t){if(e){if("string"==typeof e)return B(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Map"===(n="Object"===n&&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 r&&(e=r),n=0,{s:t=function(){},n:function(){return n>=e.length?{done:!0}:{done:!1,value:e[n++]}},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.")}var o,i=!0,a=!1;return{s:function(){r=r.call(e)},n:function(){var e=r.next();return i=e.done,e},e:function(e){a=!0,o=e},f:function(){try{i||null==r.return||r.return()}finally{if(a)throw o}}}}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 V(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=[],u=z(i);try{for(u.s();!(r=u.n()).done;){var l=function(e){var t=e.length;return e.slice(1,t-1)}(r.value),s=o[l];(!function(e){return"object"===H()(e)||"function"==typeof e}(s)?a:c).push({k:l,v:s})}}catch(e){u.e(e)}finally{u.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(w.a.createElement("span",{key:t},e)):1===n&&o.push(w.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),x()(this,"localesData",void 0),x()(this,"locale",void 0),this.locale=t||F.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}())(x()({},F.locale,F)),e=K;function W(e,t,n){var r=e.componentName,o=e.labels,i=e.labelParams||{};if(n=n||F,!(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:V)(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:V,getCompLangMsg:W}},G=Object(d.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):V(e,t,n)},getCompLangMsg:function(e){return W(e,null==r?void 0:r.customGetLangMsg)}},t=(r&&Y.setLocalesData(r.locale,r.localeData),N()({},$,t,{locale:n}));return w.a.createElement(G.Provider,{value:t},e.children)},e=(t(260),t(15)),A=t.n(e),e=t(40),o=t.n(e),e=t(189),q=t.n(e),e=t(190),X=t.n(e),e=t(127),J=t.n(e),e=t(16),O=t.n(e),e=(t(84),t(85),t(265),t(32),t(2)),S=t.n(e),Z=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}(),s=function(){function u(e){this.closed=!1,this._parentOrParents=null,this._subscriptions=null,e&&(this._ctorUnsubscribe=!0,this._unsubscribe=e)}var e;return u.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 u)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(Z(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)}},u.prototype.add=function(e){var t,n=e;if(!e)return u.EMPTY;switch(typeof e){case"function":n=new u(e);case"object":if(n===this||n.closed||"function"!=typeof n.unsubscribe)return n;if(this.closed)return n.unsubscribe(),n;n instanceof u||(t=n,(n=new u)._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 u){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},u.prototype.remove=function(e){var t=this._subscriptions;t&&-1!==(e=t.indexOf(e))&&t.splice(e,1)},u.EMPTY=((e=new u).closed=!0,e),u}();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,u=r?Symbol.for("react.profiler"):60114,l=r?Symbol.for("react.provider"):60109,s=r?Symbol.for("react.context"):60110,f=r?Symbol.for("react.async_mode"):60111,p=r?Symbol.for("react.concurrent_mode"):60111,d=r?Symbol.for("react.forward_ref"):60112,h=r?Symbol.for("react.suspense"):60113,v=r?Symbol.for("react.suspense_list"):60120,y=r?Symbol.for("react.memo"):60115,b=r?Symbol.for("react.lazy"):60116,g=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 O(e){if("object"==typeof e&&null!==e){var t=e.$$typeof;switch(t){case o:switch(e=e.type){case f:case p:case a:case u:case c:case h:return e;default:switch(e=e&&e.$$typeof){case s:case d:case b:case y:case l:return e;default:return t}}case i:return t}}}function S(e){return O(e)===p}t.AsyncMode=f,t.ConcurrentMode=p,t.ContextConsumer=s,t.ContextProvider=l,t.Element=o,t.ForwardRef=d,t.Fragment=a,t.Lazy=b,t.Memo=y,t.Portal=i,t.Profiler=u,t.StrictMode=c,t.Suspense=h,t.isAsyncMode=function(e){return S(e)||O(e)===f},t.isConcurrentMode=S,t.isContextConsumer=function(e){return O(e)===s},t.isContextProvider=function(e){return O(e)===l},t.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===o},t.isForwardRef=function(e){return O(e)===d},t.isFragment=function(e){return O(e)===a},t.isLazy=function(e){return O(e)===b},t.isMemo=function(e){return O(e)===y},t.isPortal=function(e){return O(e)===i},t.isProfiler=function(e){return O(e)===u},t.isStrictMode=function(e){return O(e)===c},t.isSuspense=function(e){return O(e)===h},t.isValidElementType=function(e){return"string"==typeof e||"function"==typeof e||e===a||e===p||e===u||e===c||e===h||e===v||"object"==typeof e&&null!==e&&(e.$$typeof===b||e.$$typeof===y||e.$$typeof===l||e.$$typeof===s||e.$$typeof===d||e.$$typeof===m||e.$$typeof===w||e.$$typeof===x||e.$$typeof===g)},t.typeOf=O},function(e,t,n){var r=n(19),o=n(274),n=n(64);r({target:"Array",proto:!0},{fill:o}),n("fill")},function(e,t,n){"use strict";var a=n(43),c=n(79),u=n(45);e.exports=function(e){for(var t=a(this),n=u(t),r=arguments.length,o=c(1<r?arguments[1]:void 0,n),r=2<r?arguments[2]:void 0,i=void 0===r?n:c(r,n);o<i;)t[o++]=e;return t}},function(e,t,n){"use strict";n(179)("Set",function(e){return function(){return e(this,arguments.length?arguments[0]:void 0)}},n(183))},function(e,t,n){var r=n(11),o=n(38),i=n(53),a=n(277),c=Object.isExtensible,n=r(function(){c(1)});e.exports=n||a?function(e){return!!o(e)&&((!a||"ArrayBuffer"!=i(e))&&(!c||c(e)))}:c},function(e,t,n){n=n(11);e.exports=n(function(){var e;"function"==typeof ArrayBuffer&&(e=new ArrayBuffer(8),Object.isExtensible(e)&&Object.defineProperty(e,"a",{value:8}))})},function(e,t,n){n=n(11);e.exports=!n(function(){return Object.isExtensible(Object.preventExtensions({}))})},function(e,t,n){var o=n(44);e.exports=function(e,t,n){for(var r in t)o(e,r,t[r],n);return e}},function(e,t,n){n(19)({target:"Object",stat:!0},{is:n(281)})},function(e,t){e.exports=Object.is||function(e,t){return e===t?0!==e||1/e==1/t:e!=e&&t!=t}},function(e,t,n){"use strict";n(179)("Map",function(e){return function(){return e(this,arguments.length?arguments[0]:void 0)}},n(183))},function(e,t,n){var r=n(177);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(5),o=n(125),i=r.TypeError;e.exports=function(e){if(o(e))throw i("The method doesn't accept regular expressions");return e}},function(e,t,n){var r=n(23)("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(19),o=n(13),c=n(75),u=n(43),l=n(45),s=n(41),i=n(11),f=n(288),a=n(149),p=n(289),d=n(290),h=n(87),v=n(291),y=[],b=o(y.sort),g=o(y.push),n=i(function(){y.sort(void 0)}),o=i(function(){y.sort(null)}),a=a("sort"),m=!i(function(){if(h)return h<70;if(!(p&&3<p)){if(d)return!0;if(v)return v<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||!m},{sort:function(e){void 0!==e&&c(e);var t=u(this);if(m)return void 0===e?b(t):b(t,e);for(var n,r,o=[],i=l(t),a=0;a<i;a++)a in t&&g(o,t[a]);for(f(o,(r=e,function(e,t){return void 0===t?-1:void 0===e?1:void 0!==r?+r(e,t)||0:s(e)>s(t)?1:-1})),n=o.length,a=0;a<n;)t[a]=o[a++];for(;a<i;)delete t[a++];return t}})},function(e,t,n){function g(e,t){var n=e.length,r=w(n/2);if(n<8){for(var o,i,a=e,c=t,u=a.length,l=1;l<u;){for(o=a[i=l];i&&0<c(a[i-1],o);)a[i]=a[--i];i!==l++&&(a[i]=o)}return a}for(var s=e,f=g(m(e,0,r),t),p=g(m(e,r),t),d=t,h=f.length,v=p.length,y=0,b=0;y<h||b<v;)s[y+b]=y<h&&b<v?d(f[y],p[b])<=0?f[y++]:p[b++]:y<h?f[y++]:p[b++];return s}var m=n(123),w=Math.floor;e.exports=g},function(e,t,n){n=n(88).match(/firefox\/(\d+)/i);e.exports=!!n&&+n[1]},function(e,t,n){n=n(88);e.exports=/MSIE|Trident/.test(n)},function(e,t,n){n=n(88).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){"use strict";var r=n(19),o=n(63).find,n=n(64),i=!0;"find"in[]&&Array(1).find(function(){i=!1}),r({target:"Array",proto:!0,forced:i},{find:function(e){return o(this,e,1<arguments.length?arguments[1]:void 0)}}),n("find")},function(L,e,t){"use strict";t.r(e),t.d(e,"ConfigProvider",function(){return U}),t.d(e,"Table",function(){return Ur}),t.d(e,"TableProps",function(){}),t.d(e,"PrimaryKey",function(){}),t.d(e,"LoadingContentWrapperProps",function(){}),t.d(e,"Classes",function(){return E}),t.d(e,"TableCSSVariables",function(){}),t.d(e,"collectNodes",function(){return _}),t.d(e,"getTreeDepth",function(){return kn}),t.d(e,"groupBy",function(){return Jr}),t.d(e,"isLeafNode",function(){return R}),t.d(e,"isGroupColumn",function(){return Zr}),t.d(e,"applyTransforms",function(){return Qr}),t.d(e,"buildTree",function(){return uo}),t.d(e,"exportTableAsExcel",function(){return po}),t.d(e,"layeredSort",function(){return yo}),t.d(e,"mergeCellProps",function(){return k}),t.d(e,"proto",function(){return go}),t.d(e,"makeRecursiveMapper",function(){return So}),t.d(e,"smartCompare",function(){return ko}),t.d(e,"traverseColumn",function(){return Ro}),t.d(e,"copyDataToClipboard",function(){return _o}),t.d(e,"executeOnTempElement",function(){return Io}),t.d(e,"layeredFilter",function(){return Do}),t.d(e,"getEventPath",function(){return Lo}),t.d(e,"isElementInEventPath",function(){return No}),t.d(e,"getTargetEleInEventPath",function(){return Ho}),t.d(e,"calculatePointerRelative",function(){return Fo}),t.d(e,"calculatePopupRelative",function(){return zo}),t.d(e,"keepWithinBounds",function(){return Bo}),t.d(e,"console",function(){return jt}),t.d(e,"browserType",function(){return Nt}),t.d(e,"makeAutoRowSpanTransform",function(){return Go}),t.d(e,"useAutoWidthTransform",function(){return Zo}),t.d(e,"makeBuildTreeTransform",function(){return Qo}),t.d(e,"makeColumnHoverTransform",function(){return ni}),t.d(e,"ColumnHoverOptions",function(){}),t.d(e,"useColumnHoverTransform",function(){return ri}),t.d(e,"makeColumnRangeHoverTransform",function(){return ci}),t.d(e,"ColumnRangeHoverOptions",function(){}),t.d(e,"useColumnHoverRangeTransform",function(){return ui}),t.d(e,"makeColumnResizeTransform",function(){return gi}),t.d(e,"ColumnResizeOptions",function(){}),t.d(e,"useColumnResizeTransform",function(){return mi}),t.d(e,"makeFlattenTransform",function(){return wi}),t.d(e,"makeOrderFieldTransform",function(){return Si}),t.d(e,"makeSortTransform",function(){return Ii}),t.d(e,"SortHeaderCellProps",function(){}),t.d(e,"SortOptions",function(){}),t.d(e,"useSortTransform",function(){return Ti}),t.d(e,"makeTipsTransform",function(){return Bi}),t.d(e,"TipsOptions",function(){}),t.d(e,"makeTreeModeTransform",function(){return ta}),t.d(e,"TreeModeOptions",function(){}),t.d(e,"useTreeModeTransform",function(){return na}),t.d(e,"makeVisibleTransform",function(){return ia}),t.d(e,"TablePipeline",function(){return fu}),t.d(e,"useTablePipeline",function(){return pu}),t.d(e,"features",function(){return n}),t.d(e,"internals",function(){return j});var n={},d=(t.r(n),t.d(n,"autoRowSpan",function(){return la}),t.d(n,"buildTree",function(){return sa}),t.d(n,"columnHover",function(){return da}),t.d(n,"ColumnHoverFeatureOptions",function(){}),t.d(n,"columnRangeHover",function(){return ba}),t.d(n,"ColumnRangeHoverFeatureOptions",function(){}),t.d(n,"multiSelect",function(){return wa}),t.d(n,"MultiSelectFeatureOptions",function(){}),t.d(n,"rowDetail",function(){return Ea}),t.d(n,"RowDetailFeatureOptions",function(){}),t.d(n,"rowGrouping",function(){return _a}),t.d(n,"RowGroupingFeatureOptions",function(){}),t.d(n,"singleSelect",function(){return Ma}),t.d(n,"SingleSelectFeatureOptions",function(){}),t.d(n,"sort",function(){return Ka}),t.d(n,"SortFeatureOptions",function(){}),t.d(n,"tips",function(){return Ya}),t.d(n,"treeMode",function(){return Ui}),t.d(n,"TreeModeFeatureOptions",function(){}),t.d(n,"treeMetaSymbol",function(){return Yi}),t.d(n,"treeSelect",function(){return cc}),t.d(n,"TreeSelectFeatureOptions",function(){}),t.d(n,"columnDrag",function(){return gc}),t.d(n,"ColumnDragOptions",function(){}),t.d(n,"columnResize",function(){return Pc}),t.d(n,"ColumnResizeOptions",function(){}),t.d(n,"contextMenu",function(){return Ac}),t.d(n,"ContextMenuFeatureOptions",function(){}),t.d(n,"filter",function(){return qc}),t.d(n,"FilterFeatureOptions",function(){}),t.d(n,"rangeSelection",function(){return eu}),t.d(n,"RangeSelectionFeatureOptions",function(){}),t.d(n,"mergeCellHover",function(){return iu}),t.d(n,"footerDataSource",function(){return uu}),t.d(n,"FooterDataSourceFeatureOptions",function(){}),t.d(n,"footerRowMetaSymbol",function(){return cu}),t(0)),w=t.n(d),e=t(188),N=t.n(e),e=(t(29),t(28),t(27),t(21),t(4),t(24),t(31),t(20),t(22),t(42)),H=t.n(e),e=t(35),i=t.n(e),e=t(36),r=t.n(e),e=t(1),x=t.n(e),F=(t(25),t(116),t(14),t(3),t(6),t(256),t(65),t(145),t(258),{locale:"zh-CN","global.selectholder":"请选择","global.placeholder":"请输入...","global.cancel":"取消","global.confirm":"确定"});function z(e,t){var n,r="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!r){if(Array.isArray(e)||(r=function(e,t){if(e){if("string"==typeof e)return B(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Map"===(n="Object"===n&&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 r&&(e=r),n=0,{s:t=function(){},n:function(){return n>=e.length?{done:!0}:{done:!1,value:e[n++]}},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.")}var o,i=!0,a=!1;return{s:function(){r=r.call(e)},n:function(){var e=r.next();return i=e.done,e},e:function(e){a=!0,o=e},f:function(){try{i||null==r.return||r.return()}finally{if(a)throw o}}}}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 V(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=[],u=z(i);try{for(u.s();!(r=u.n()).done;){var l=function(e){var t=e.length;return e.slice(1,t-1)}(r.value),s=o[l];(!function(e){return"object"===H()(e)||"function"==typeof e}(s)?a:c).push({k:l,v:s})}}catch(e){u.e(e)}finally{u.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(w.a.createElement("span",{key:t},e)):1===n&&o.push(w.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),x()(this,"localesData",void 0),x()(this,"locale",void 0),this.locale=t||F.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}())(x()({},F.locale,F)),e=K;function W(e,t,n){var r=e.componentName,o=e.labels,i=e.labelParams||{};if(n=n||F,!(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:V)(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:V,getCompLangMsg:W}},G=Object(d.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):V(e,t,n)},getCompLangMsg:function(e){return W(e,null==r?void 0:r.customGetLangMsg)}},t=(r&&Y.setLocalesData(r.locale,r.localeData),N()({},$,t,{locale:n}));return w.a.createElement(G.Provider,{value:t},e.children)},e=(t(260),t(15)),P=t.n(e),e=t(40),o=t.n(e),e=t(189),q=t.n(e),e=t(190),X=t.n(e),e=t(127),J=t.n(e),e=t(16),O=t.n(e),e=(t(84),t(85),t(265),t(32),t(2)),S=t.n(e),Z=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}(),s=function(){function u(e){this.closed=!1,this._parentOrParents=null,this._subscriptions=null,e&&(this._ctorUnsubscribe=!0,this._unsubscribe=e)}var e;return u.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 u)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(Z(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)}},u.prototype.add=function(e){var t,n=e;if(!e)return u.EMPTY;switch(typeof e){case"function":n=new u(e);case"object":if(n===this||n.closed||"function"!=typeof n.unsubscribe)return n;if(this.closed)return n.unsubscribe(),n;n instanceof u||(t=n,(n=new u)._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 u){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},u.prototype.remove=function(e){var t=this._subscriptions;t&&-1!==(e=t.indexOf(e))&&t.splice(e,1)},u.EMPTY=((e=new u).closed=!0,e),u}();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,u={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(u.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 ue(r,e));break}default:r.syncErrorThrowable=!0,r.destination=new ue(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}(s),ue=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,u.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=u.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)},u.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(),u.useDeprecatedSynchronousErrorHandling)throw e;ie(e)}},e.prototype.__tryOrSetError=function(t,e,n){if(!u.useDeprecatedSynchronousErrorHandling)throw new Error("bad call");try{e.call(this._context,n)}catch(e){return u.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 le=function(){return"function"==typeof Symbol&&Symbol.observable||"@@observable"}();function se(e){return e}function fe(t){return 0===t.length?se:1===t.length?t[0]:function(e){return t.reduce(function(e,t){return t(e)},e)}}var l=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||u.useDeprecatedSynchronousErrorHandling&&!e.syncErrorThrowable?this._subscribe(e):this._trySubscribe(e)),u.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){u.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=pe(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[le]=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=pe(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 pe(e){if(e=e||u.Promise||Promise)return e;throw new Error("no Promise impl found")}var de=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}(s),ve=function(n){function e(e){var t=n.call(this,e)||this;return t.destination=e,t}return c(e,n),e}(a),ye=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 be(this,this);return t.operator=e,t},e.prototype.next=function(e){if(this.closed)throw new de;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 de;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 de;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 de;return t.prototype._trySubscribe.call(this,e)},e.prototype._subscribe=function(e){if(this.closed)throw new de;return this.hasError?(e.error(this.thrownError),s.EMPTY):this.isStopped?(e.complete(),s.EMPTY):(this.observers.push(e),new he(this,e))},e.prototype.asObservable=function(){var e=new l;return e.source=this,e},e.create=function(e,t){return new be(e,t)},e}(l),be=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):s.EMPTY},e}(ye),ge=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 de;return this._value},e.prototype.next=function(e){n.prototype.next.call(this,this._value=e)},e}(ye);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()}},Oe=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 Se(){return"function"==typeof Symbol&&Symbol.iterator?Symbol.iterator:"@@iterator"}var ke=Se(),Ee=function(r){return function(t){for(var e=r[ke]();;){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[le]();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 Ae=function(e){if(e&&"function"==typeof e[le])return je(e);if(Ce(e))return xe(e);if(Pe(e))return Oe(e);if(e&&"function"==typeof e[ke])return Ee(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 Re(r,o){return new l(function(e){var t=new s,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 _e(e,t){return t?Re(e,t):new l(xe(e))}var Ie={};var Te=function(){function e(e){this.resultSelector=e}return e.prototype.call=function(e,t){return t.subscribe(new Me(e,this.resultSelector))},e}(),Me=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(Ie),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 l?t.subscribe(o):Ae(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===Ie?--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 De(e,t){if(null!=e){if((u=e)&&"function"==typeof u[le])return a=e,c=t,new l(function(t){var n=new s;return n.add(c.schedule(function(){var e=a[le]();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 l(function(t){var n=new s;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 Re(e,t);if((u=e)&&"function"==typeof u[ke]||"string"==typeof e){var n=e,i=t;if(n)return new l(function(r){var o,e=new s;return e.add(function(){o&&"function"==typeof o.return&&o.return()}),e.add(i.schedule(function(){o=n[ke](),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,u;throw new TypeError((null!==e&&typeof e||e)+" is not observable")}function Le(e,t){return t?De(e,t):e instanceof l?e:new l(Ae(e))}function f(){}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){if(void 0===t&&(t=0),this.closed)return this;this.state=e;var e=this.id,n=this.scheduler;return 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}(s)),Ne=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=Ne.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}(Ne),Fe=new He(e),ze=Fe;var Be=function(){function e(e,t){this.dueTime=e,this.scheduler=t}return e.prototype.call=function(e,t){return t.subscribe(new Ve(e,this.dueTime,this.scheduler))},e}(),Ve=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(Ke,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 Ke(e){e.debouncedNext()}var We=function(){function e(e){this.total=e}return e.prototype.call=function(e,t){return t.subscribe(new $e(e,this.total))},e}(),$e=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);var Ge=function(){function e(e){this.value=e}return e.prototype.call=function(e,t){return t.subscribe(new Ye(e,this.value))},e}(),Ye=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),Ue=new(function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return c(t,e),t}(He))(e),qe=new l(function(e){return e.complete()});function Xe(e){return e?(t=e,new l(function(e){return t.schedule(function(){return e.complete()})})):qe;var t}function Je(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var n=e[e.length-1];return me(n)?(e.pop(),Re(e,n)):_e(e)}function Ze(e){var t=e.error;e.subscriber.error(t)}var Qe=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 Je(this.value);case"E":return t=this.error,new l(n?function(e){return n.schedule(Ze,0,{error:t,subscriber:e})}:function(e){return e.error(t)});case"C":return Xe()}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 et=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 tt(e,this.destination)))},t.prototype._next=function(e){this.scheduleMessage(Qe.createNext(e))},t.prototype._error=function(e){this.scheduleMessage(Qe.createError(e)),this.unsubscribe()},t.prototype._complete=function(){this.scheduleMessage(Qe.createComplete()),this.unsubscribe()},t}(a),tt=function(){return function(e,t){this.notification=e,this.destination=t}}(),nt=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 rt(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 de;if(t=this.isStopped||this.hasError?s.EMPTY:(this.observers.push(e),new he(this,e)),o&&e.add(e=new et(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||Ue).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}(ye),rt=function(){return function(e,t){this.time=e,this.value=t}}();function ot(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,u=0,s=l=!1,function(e){var t;u++,!n||l?(l=!1,n=new nt(o,i,c),t=n.subscribe(this),r=e.subscribe({next:function(e){n.next(e)},error:function(e){l=!0,n.error(e)},complete:function(){s=!0,r=void 0,n.complete()}}),s&&(r=void 0)):t=n.subscribe(this),this.add(function(){u--,t.unsubscribe(),t=void 0,r&&!s&&a&&0===u&&(r.unsubscribe(),n=r=void 0)})}));var n,r,t,o,i,a,c,u,l,s}}function v(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 it(t,n))}}var it=function(){function e(e,t){this.project=e,this.thisArg=t}return e.prototype.call=function(e,t){return t.subscribe(new at(e,this.project,this.thisArg))},e}(),at=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 ct(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 lt(e,this.compare,this.keySelector))},e}(),lt=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),st=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 ft(e,t){if(!t.closed){if(e instanceof l)return e.subscribe(t);var n;try{n=Ae(e)(t)}catch(e){t.error(e)}return n}}function pt(t,o,n){return void 0===n&&(n=Number.POSITIVE_INFINITY),"function"==typeof o?function(e){return e.pipe(pt(function(n,r){return Le(t(n,r)).pipe(v(function(e,t){return o(n,e,r,t)}))},n))}:("number"==typeof o&&(n=o),function(e){return e.lift(new dt(t,n))})}var dt=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 ht(e,this.project,this.concurrent))},e}(),ht=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 st(this),n=this.destination,e=(n.add(t),ft(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 vt(e){return pt(se,e=void 0===e?Number.POSITIVE_INFINITY:e)}function yt(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return vt(1)(Je.apply(void 0,e))}function bt(){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 yt(t,e,n)}):function(e){return yt(t,e)}}var gt=function(){function e(){}return e.prototype.call=function(e,t){return t.subscribe(new mt(e))},e}(),mt=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 wt(t,n){return function(e){return e.lift(new xt(t,n))}}var xt=function(){function e(e,t){this.predicate=e,this.thisArg=t}return e.prototype.call=function(e,t){return t.subscribe(new Ot(e,this.predicate,this.thisArg))},e}(),Ot=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 St(t,o){return"function"==typeof o?function(e){return e.pipe(St(function(n,r){return Le(t(n,r)).pipe(v(function(e,t){return o(n,e,r,t)}))}))}:function(e){return e.lift(new kt(t))}}var kt=function(){function e(e){this.project=e}return e.prototype.call=function(e,t){return t.subscribe(new Et(e,this.project))},e}(),Et=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 st(this)),n=this.destination;n.add(t),this.innerSubscription=ft(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(7),t(9),t(10),t(12)),R=t.n(e);t(8),t(52);var jt={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 Ct(e,t){var n,r="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!r){if(Array.isArray(e)||(r=function(e,t){if(e){if("string"==typeof e)return Pt(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Map"===(n="Object"===n&&e.constructor?e.constructor.name:n)||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Pt(e,t):void 0}}(e))||t&&e&&"number"==typeof e.length)return r&&(e=r),n=0,{s:t=function(){},n:function(){return n>=e.length?{done:!0}:{done:!1,value:e[n++]}},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.")}var o,i=!0,a=!1;return{s:function(){r=r.call(e)},n:function(){var e=r.next();return i=e.done,e},e:function(e){a=!0,o=e},f:function(){try{i||null==r.return||r.return()}finally{if(a)throw o}}}}function Pt(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=Ct(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(280);function y(e,n,r,t){return ee(r)&&(t=r,r=void 0),t?y(e,n,r).pipe(v(function(e){return Z(e)?t.apply(void 0,e):t(e)})):new l(function(t){!function e(t,n,r,o,i){var a;if(_t(t)){var c=t;t.addEventListener(n,r,i),a=function(){return c.removeEventListener(n,r,i)}}else if(Rt(t)){var u=t;t.on(n,r),a=function(){return u.off(n,r)}}else if(At(t)){var l=t;t.addListener(n,r),a=function(){return l.removeListener(n,r)}}else{if(!t||!t.length)throw new TypeError("Invalid event target");for(var s=0,f=t.length;s<f;s++)e(t[s],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 At(e){return e&&"function"==typeof e.addListener&&"function"==typeof e.removeListener}function Rt(e){return e&&"function"==typeof e.on&&"function"==typeof e.off}function _t(e){return e&&"function"==typeof e.addEventListener&&"function"==typeof e.removeEventListener}var It={leading:!0,trailing:!1};var Tt=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 Mt(e,this.duration,this.scheduler,this.leading,this.trailing))},e}(),Mt=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.trailing&&(this._trailingValue=e,this._hasTrailingValue=!0):(this.add(this.throttled=this.scheduler.schedule(Dt,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 Dt(e){e.subscriber.clearThrottle()}var Lt=t(100),e=t(17);function k(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],u=H()(c);null===c?n[a]=null:void 0!==c&&("number"===u||"string"===u||"boolean"===u?n[a]="className"===a?S()(n[a],c):c:"function"===u?(i=n[a],n[a]=null==i?c:function(r,o){return function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];r(t),o(t)}}(i,c)):"object"===u&&(n[a]=O()({},n[a],c)))}return n}var Nt={isEdge:!!window.navigator.userAgent.match(/Edge\/(\d+)/),isIE:!!window.navigator.userAgent.match(/Trident\/(\d+)/),isFireFox:!!window.navigator.userAgent.match(/Firefox\/(\d+)/),isChrome:!!window.navigator.userAgent.match(/Chrome\/(\d+)/)};function Ht(e,t){var n,r="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!r){if(Array.isArray(e)||(r=function(e,t){if(e){if("string"==typeof e)return Ft(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Map"===(n="Object"===n&&e.constructor?e.constructor.name:n)||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Ft(e,t):void 0}}(e))||t&&e&&"number"==typeof e.length)return r&&(e=r),n=0,{s:t=function(){},n:function(){return n>=e.length?{done:!0}:{done:!1,value:e[n++]}},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.")}var o,i=!0,a=!1;return{s:function(){r=r.call(e)},n:function(){var e=r.next();return i=e.done,e},e:function(e){a=!0,o=e},f:function(){try{i||null==r.return||r.return()}finally{if(a)throw o}}}}function Ft(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 zt="v3"==(null!=e.a?"v5":"v3")?"innerRef":"ref",Bt=100;function Vt(e){var t=0;return e.forEach(function(e){t+=e}),t}Kt=function(){return y(window,"resize",{passive:!0}).pipe((t=150,void 0===(n=Fe)&&(n=ze),void 0===(r={leading:!0,trailing:!0})&&(r=It),function(e){return e.lift(new Tt(t,n,r.leading,r.trailing))}));var t,n,r};var Kt,Wt,$t=new l(function(t){var e;try{e=Kt()}catch(e){return void t.error(e)}return(e?Le(e):Xe()).subscribe(t)}),Gt=function(e,n){var t=new Lt.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 Yt(){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 Ut(c,u){var l=new Set;var t,n=new s,r=Ht(c);try{var e=function(){function e(){if(l.has(a))l.delete(a);else{var e=a.scrollLeft,t=a,n=e;l.clear();var r,o=Ht(c);try{for(o.s();!(r=o.n()).done;){var i=r.value;i!==t&&(i.scrollLeft=n,l.add(i))}}catch(e){o.e(e)}finally{o.f()}u(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 qt(e,t){var n=Object.prototype.hasOwnProperty;if(Object.is(e,t))return!0;if("object"!==H()(e)||null===e||"object"!==H()(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 Xt(n,r){return Object.keys(r).length?function(e,t){return k(n(e,t),r)}:n}function Jt(e){return Nt.isIE?e.tableFooterMain:e.tableFooter}function Zt(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 Qt(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?Zt(Object(n),!0).forEach(function(e){x()(t,e,n[e])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):Zt(Object(n)).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))})}return t}function en(e,t){var n,r="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!r){if(Array.isArray(e)||(r=function(e,t){if(e){if("string"==typeof e)return tn(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Map"===(n="Object"===n&&e.constructor?e.constructor.name:n)||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?tn(e,t):void 0}}(e))||t&&e&&"number"==typeof e.length)return r&&(e=r),n=0,{s:t=function(){},n:function(){return n>=e.length?{done:!0}:{done:!1,value:e[n++]}},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.")}var o,i=!0,a=!1;return{s:function(){r=r.call(e)},n:function(){var e=r.next();return i=e.done,e},e:function(e){a=!0,o=e},f:function(){try{i||null==r.return||r.return()}finally{if(a)throw o}}}}function tn(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 nn(e,t){return null==e||"auto"===e?t:e}var rn=!1;function on(e,u){return null!=e&&Array.isArray(e)||(jt.warn("<BaseTable /> props.columns 需要传入一个数组",e),e=[]),function e(t){var n,r,o=[],i=en(t);try{for(i.s();!(n=i.n()).done;){var a,c=n.value;_(c=null==c.width&&null!=u?Qt(Qt({},c),{},{width:u}):c)?c.hidden?(r=c,rn||(rn=!0,jt.warn("column.hidden 已经过时,如果需要隐藏该列,请将其从 columns 数组中移除",r))):o.push(c):0<(a=e(c.children)).length&&o.push(Qt(Qt({},c),{},{children:a}))}}catch(e){i.e(e)}finally{i.f()}return o}(e)}function an(e){var t,n=0,r=en(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 cn(e){for(var t,n,r,o=e.state,i=o.offsetX,o=o.maxRenderWidth,a=e.props,c=a.useVirtual,u=a.columns,l=a.dataSource,u=on(u,a.defaultColumnWidth),a=an(u),s=I(u,"leaf-only"),f=(a===u.length?t={horizontal:!(r={left:[],right:[],full:u,center:u}),vertical:!(n={left:[],right:[],full:s,center:s}),header:!1}:(d=u.slice(0,a),S=an(u.slice().reverse()),a=u.slice(a,u.length-S),S=u.slice(u.length-S),f=100<=s.length&&s.every(function(e){return null!=e.width}),l=100<=l.length,t={horizontal:nn("object"===H()(c)?c.horizontal:c,f),vertical:nn("object"===H()(c)?c.vertical:c,l),header:nn("object"===H()(c)?c.header:c,!1)},n={left:I(d,"leaf-only"),full:s,right:I(S,"leaf-only"),center:I(a,"leaf-only")},r={left:d,full:u,right:S,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,u=Math.max(0,t-Bt);o<r.center.length;){var l=r.center[o];if(!(l.width+a<u))break;o+=1,a+=l.width}for(var s=n+(u-a)+2*Bt;o+i<r.center.length;){var f=r.center[o+i];if(!(c<s))break;c+=f.width,i+=1}return e=r.center.length-o-i,{leftIndex:o,leftBlank:a,rightIndex:o+i,rightBlank:Vt(r.center.slice(r.center.length-e).map(function(e){return e.width}))}}({maxRenderWidth:o,offsetX:i,useVirtual:t,flat:n})),l=e.getVerticalRenderRange(t),c=f.leftBlank,p=f.leftIndex,s=f.rightBlank,d=f.rightIndex,u=[].concat(R()(n.left.map(function(e,t){return{type:"normal",col:e,colIndex:t}})),[0<c&&{type:"blank",blankSide:"left",width:c}],R()(n.center.slice(p,d).map(function(e,t){return{type:"normal",col:e,colIndex:n.left.length+p+t}})),[0<s&&{type:"blank",blankSide:"right",width:s}],R()(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,y=n.right.length,b=new Map,g=0,m=0;m<v;m++)b.set(m,g),g+=n.full[m].width;for(var w=new Map,x=0,O=0;O<y;O++)w.set(h-1-O,x),x+=n.full[h-1-O].width;var S=Vt(n.left.map(function(e){return e.width})),a=Vt(n.right.map(function(e){return e.width}));return{horizontalRenderRange:f,verticalRenderRange:l,visible:u,flat:n,nested:r,useVirtual:t,stickyLeftMap:b,stickyRightMap:w,leftLockTotalWidth:S,rightLockTotalWidth:a,hasLockColumn:0<r.left.length||0<r.right.length}}function un(e){e=e.descriptors;return w.a.createElement("colgroup",null,e.map(function(e){return"blank"===e.type?w.a.createElement("col",{key:e.blankSide,style:{width:e.width}}):w.a.createElement("col",{key:e.colIndex,style:{width:e.col.width}})}))}var ln,p=t(18),p=t.n(p),h="kd-",E={artTableWrapper:"".concat(h,"table-wrapper"),artTable:"".concat(h,"table"),tableHeaderMain:"".concat(h,"table-header-main"),tableHeader:"".concat(h,"table-header"),tableBody:"".concat(h,"table-body"),virtual:"".concat(h,"virtual"),tableFooter:"".concat(h,"table-footer"),tableFooterMain:"".concat(h,"table-footer-main"),tableRow:"".concat(h,"table-row"),tableHeaderRow:"".concat(h,"table-header-row"),tableCell:"".concat(h,"table-cell"),tableHeaderCell:"".concat(h,"table-header-cell"),tableHeaderCellContent:"".concat(h,"table-header-cell-content"),tableHeaderCellResize:"".concat(h,"table-header-cell-resize"),virtualBlank:"".concat(h,"virtual-blank"),stickyScroll:"".concat(h,"sticky-scroll"),stickyScrollItem:"".concat(h,"sticky-scroll-item"),horizontalScrollContainer:"".concat(h,"horizontal-scroll-container"),verticalScrollPlaceholder:"".concat(h,"vertical-scroll-placeholder"),lockShadowMask:"".concat(h,"lock-shadow-mask"),lockShadow:"".concat(h,"lock-shadow"),leftLockShadow:"".concat(h,"left-lock-shadow"),rightLockShadow:"".concat(h,"right-lock-shadow"),emptyWrapper:"".concat(h,"empty-wrapper"),loadingWrapper:"".concat(h,"loading-wrapper"),loadingContentWrapper:"".concat(h,"loading-content-wrapper"),loadingIndicatorWrapper:"".concat(h,"loading-indicator-wrapper"),loadingIndicator:"".concat(h,"loading-indicator"),tableHeaderCellLine:"".concat(h,"table-header-cell-line"),tableFilterTrigger:"".concat(h,"filter-trigger"),tableSortIcon:"".concat(h,"sort-icon"),button:"".concat(h,"btn"),buttonPrimary:"".concat(h,"btn-primary"),filterIcon:"".concat(h,"filter-icon"),rangeSelection:"".concat(h,"range-selection"),tableCellRangeSingleCell:"".concat(h,"table-cell-range-single-cell"),tableCellRangeSelected:"".concat(h,"table-cell-range-selected"),tableCellRangeTop:"".concat(h,"table-cell-range-top"),tableCellRangeLeft:"".concat(h,"table-cell-range-left"),tableCellRangeBottom:"".concat(h,"table-cell-range-bottom"),tableCellRangeRight:"".concat(h,"table-cell-range-right"),fixedLeft:"".concat(h,"fixed-left"),fixedRight:"".concat(h,"fixed-right"),rowDetailContainer:"".concat(h,"row-detail-container"),rowDetailItem:"".concat(h,"row-detail-item"),emptyColCell:"".concat(h,"empty-col-cell"),first:"".concat(h,"first"),last:"".concat(h,"last"),even:"".concat(h,"even"),odd:"".concat(h,"odd"),lockLeft:"".concat(h,"lock-left"),lockRight:"".concat(h,"lock-right"),rowSpan:"".concat(h,"row-span"),leaf:"".concat(h,"leaf"),expanded:"".concat(h,"expanded"),collapsed:"".concat(h,"collapsed")},b={menu:"".concat(h,"table-menu"),menuList:"".concat(h,"table-menu-list"),menuOption:"".concat(h,"table-menu-option"),menuOptionActive:"".concat(h,"table-menu-option-active"),menuOptionDisable:"".concat(h,"table-menu-option-disable"),menuOptionText:"".concat(h,"table-menu-option-text")},h=5,sn=15,fn=10,pn=20,dn=25,hn=30,vn=40,yn=Object(e.b)(p()(["\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-left: none;\n }\n td.",",\n th."," {\n --border-right: 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-left: var(---cell-border-vertical);\n }\n td.",":not(.","){\n border-right: var(---cell-border-vertical);\n }\n"]),E.first,E.first,E.last,E.last,E.first,E.first,E.last,E.last,E.rowSpan,E.first,E.rowSpan,E.last),bn={"--row-height":"48px","--color":"#333","--bgcolor":"white","--hover-bgcolor":"var(--hover-color, #F2F6FF)","--highlight-bgcolor":"#eee","--primary-color":"#5582F3","--primary-color-level1":"rgb(242, 248, 255)","--primary-color-level2":"rgb(135, 173, 255)","--icon-color":"#bfbfbf","--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","--header-cell-border-horizontal":"1px solid #dfe3e8"},gn=(ln=bn,Object.keys(ln).reduce(function(e,t){return e+="".concat(t,":").concat(ln[t],";")},"")),mn=e.c.div(p()(["\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 .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 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-left: 1px solid #0E5FD8 !important;\n }\n .","{\n border-bottom: 1px solid #0E5FD8 !important;\n }\n .","{\n border-right: 1px solid #0E5FD8 !important;\n }\n }\n \n ."," {\n user-select:none;\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: left;\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-right: var(--header-cell-border-vertical);\n border-bottom: var(--header-cell-border-horizontal);\n position: relative;\n }\n\n th.resizeable{\n border-right:none\n }\n\n th."," {\n border-right: none;\n border-bottom: none;\n }\n\n tr."," th {\n border-top: var(--header-cell-border-horizontal);\n }\n th."," {\n border-left: 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-right: var(--cell-border-vertical);\n border-bottom: var(--cell-border-horizontal);\n word-break: break-all;\n }\n td."," {\n border-left: 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-right: ","px;\n box-shadow: none;\n\n &.show-shadow {\n box-shadow: var(--lock-shadow);\n border-right: var(--cell-border-vertical);\n }\n }\n\n ."," {\n margin-left: ","px;\n box-shadow: none;\n\n &.show-shadow {\n box-shadow: var(--lock-shadow);\n border-left: 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 IE兼容\n &.ie-polyfill-wrapper {\n //锁定列兼容 仅在锁定列的情况下生效\n ."," {\n overflow-x: hidden;\n }\n .",", ."," {\n position:relative;\n }\n ."," {\n overflow: hidden;\n }\n ."," {\n position: relative;\n }\n\n ."," {\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 left:0;\n }\n .","{\n right: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\n\n //#region 粘性滚动条\n ."," {\n overflow-y: hidden;\n overflow-x: auto;\n z-index: ",";\n flex-shrink: 0;\n flex-grow: 0;\n border-top: 1px solid var(--border-color);\n background: var(--bgcolor);\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 }\n //#endregion\n\n //#region 表格排序\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 flex-shrink: 0;\n }\n ."," ."," {\n border-top: var(--cell-border-horizontal);\n }\n //#endregion\n "]),gn,gn,yn,E.artTable,E.tableHeader,E.tableHeaderCellContent,E.virtual,E.tableFooter,E.tableBody,E.tableFooter,E.tableRow,E.tableBody,E.tableFooter,E.tableCellRangeSelected,E.tableCellRangeTop,E.tableCellRangeLeft,E.tableCellRangeBottom,E.tableCellRangeRight,E.rangeSelection,E.tableHeader,sn,E.tableFooter,fn,E.leaf,E.first,E.first,E.first,E.first,E.first,E.last,E.lockLeft,E.lockRight,h,E.lockShadowMask,pn,E.lockShadow,E.leftLockShadow,20,E.rightLockShadow,20,E.emptyWrapper,E.virtual,E.tableBody,E.tableFooter,E.tableHeaderMain,E.tableHeader,E.tableFooterMain,E.fixedLeft,E.fixedRight,h,E.fixedLeft,E.fixedRight,E.rowDetailContainer,E.rowDetailItem,dn,E.stickyScroll,hn,E.stickyScrollItem,E.loadingWrapper,E.loadingContentWrapper,E.loadingIndicatorWrapper,E.loadingIndicator,vn,E.tableFilterTrigger,E.tableSortIcon,E.verticalScrollPlaceholder,E.tableFooter,E.verticalScrollPlaceholder),yn=Object(e.b)(p()(["\n ","\n //#region 按钮\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//#endregion\n"]),gn,E.button,E.buttonPrimary);var wn=w.a.memo(function(){return w.a.createElement(w.a.Fragment,null,w.a.createElement("img",{alt:"empty-image",className:"empty-image",src:"//img.alicdn.com/tfs/TB1l1LcM3HqK1RjSZJnXXbNLpXa-50-50.svg"}),w.a.createElement("div",{className:"empty-tips"},"没有符合查询条件的数据",w.a.createElement("br",null),"请修改条件后重新查询"))});function xn(e){var t=e.descriptors,n=e.isLoading,r=e.emptyCellHeight,e=e.EmptyContent,e=void 0===e?wn:e,n=!n;return w.a.createElement(d.Fragment,null,w.a.createElement("table",{key:"table"},w.a.createElement(un,{descriptors:t}),w.a.createElement("tbody",null,w.a.createElement("tr",{className:S()(E.tableRow,E.first,E.last,"no-hover"),"data-rowindex":0},w.a.createElement("td",{className:S()(E.tableCell,E.first,E.last),colSpan:t.length,style:{height:null!=r?r:200}})))),n&&w.a.createElement("div",{className:E.emptyWrapper,key:"empty"},w.a.createElement(e,null)))}function On(e,t){var n,r="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!r){if(Array.isArray(e)||(r=function(e,t){if(e){if("string"==typeof e)return Sn(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Map"===(n="Object"===n&&e.constructor?e.constructor.name:n)||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Sn(e,t):void 0}}(e))||t&&e&&"number"==typeof e.length)return r&&(e=r),n=0,{s:t=function(){},n:function(){return n>=e.length?{done:!0}:{done:!1,value:e[n++]}},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.")}var o,i=!0,a=!1;return{s:function(){r=r.call(e)},n:function(){var e=r.next();return i=e.done,e},e:function(e){a=!0,o=e},f:function(){try{i||null==r.return||r.return()}finally{if(a)throw o}}}}function Sn(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 kn(e){var a=-1;return function e(t,n){var r,o=On(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 En(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 jn(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?En(Object(n),!0).forEach(function(e){x()(t,e,n[e])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):En(Object(n)).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))})}return t}function Cn(e,t){var n,r="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!r){if(Array.isArray(e)||(r=function(e,t){if(e){if("string"==typeof e)return Pn(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Map"===(n="Object"===n&&e.constructor?e.constructor.name:n)||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Pn(e,t):void 0}}(e))||t&&e&&"number"==typeof e.length)return r&&(e=r),n=0,{s:t=function(){},n:function(){return n>=e.length?{done:!0}:{done:!1,value:e[n++]}},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.")}var o,i=!0,a=!1;return{s:function(){r=r.call(e)},n:function(){var e=r.next();return i=e.done,e},e:function(e){a=!0,o=e},f:function(){try{i||null==r.return||r.return()}finally{if(a)throw o}}}}function Pn(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 An(e,s,f){return function e(t,n){var r=0;var o=[];var i,a=Cn(t);try{for(a.s();!(i=a.n()).done;){var c,u=i.value,l=n+r;_(u)?(r+=1,f+s.leftIndex<=l&&l<f+s.rightIndex&&o.push({colIndex:l,col:u})):(c=e(u.children,l),r+=c.leafCount,0<c.filtered.length&&o.push({colIndex:l,col:u,children:c.filtered}))}}catch(e){a.e(e)}finally{a.f()}return{filtered:o,leafCount:r}}(e,f).filtered}function Rn(e,t){for(var c=[],n=0;n<t;n++)c.push([]);var u=[];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),u.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:u,leveled:c}}function _n(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],u=n+o;_(c)?(o+=1,r.push({colIndex:u,col:c})):(a=e(c.children,u),o+=a.leafCount,0<a.leafCount&&r.push({col:c,colIndex:u,children:a.result}))}return{result:r,leafCount:o}}(e,t).result}function In(e,t){var n,r,o,i=e.flat,a=e.nested,c=e.horizontalRenderRange;return e.useVirtual.header?(n=Rn(_n(a.left,0),t),r=Rn(An(a.center,c,i.left.length),t),o=Rn(_n(a.right,i.left.length+i.center.length),t),{flat:[].concat(R()(n.flat),[{type:"blank",width:c.leftBlank,blankSide:"left"}],R()(r.flat),[{type:"blank",width:c.rightBlank,blankSide:"right"}],R()(o.flat)),leveled:function(e){for(var t=[],n=0;n<e;n++)t.push(n);return t}(t).map(function(e){return[].concat(R()(n.leveled[e]),[{type:"blank",width:c.leftBlank,blankSide:"left"}],R()(r.leveled[e]),[{type:"blank",width:c.rightBlank,blankSide:"right"}],R()(o.leveled[e]))})}):Rn(_n(a.full,0),t)}function Tn(e){var t=e.info,f=e.theaderPosition,e=e.rowCount,n=t.nested,r=t.flat,p=t.stickyLeftMap,d=t.stickyRightMap,h=null!=e?e:kn(n.full)+1,e=In(t,h),v=r.full.length,y=r.left.length,b=r.right.length,n=e.leveled.map(function(e,s){var t,e=e.concat(),e=(1<h&&-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,u,l;return"normal"===e.type?(r=e.colIndex,o=e.colSpan,i=e.isLeaf,c=null!=(c=(a=e.col).headerCellProps)?c:{},u={},r<y?(u.position="sticky",u.left=p.get(r)):v-b<=r&&(u.position="sticky",u.right=d.get(r)),l="right"===a.align?"flex-end":"center"===a.align?"center":"flex-start",w.a.createElement("th",O()({key:r},c,{className:S()(E.tableHeaderCell,c.className,(n={},x()(n,E.first,0===r),x()(n,E.last,r+o===v),x()(n,E.lockLeft,r<y||"left"===f),x()(n,E.lockRight,v-b<=r||"right"===f),x()(n,E.leaf,e.isLeaf),n)),colSpan:o,rowSpan:i?h-s:void 0,style:jn(jn({textAlign:a.align,verticalAlign:null!=(r=a.verticalAlign)?r:"middle"},c.style),u),"data-code":a.code}),"center"===f&&"sticky"===u.position?null:w.a.createElement("div",{className:E.tableHeaderCellContent,style:{justifyContent:l}},null!=(n=a.title)?n:a.name))):0<e.width?w.a.createElement("th",{key:e.blankSide,style:{visibility:e.isPlacehoder?"hidden":void 0}}):null}));return w.a.createElement("tr",{key:s,className:S()(E.tableHeaderRow,(t={},x()(t,E.first,0===s),x()(t,E.last,s===h-1),t))},e)}),t=e.flat.map(function(e){return"blank"===e.type?0<e.width?w.a.createElement("col",{key:e.blankSide,style:{width:e.width}}):null:w.a.createElement("col",{key:e.colIndex,style:{width:e.width}})});return w.a.createElement("table",null,w.a.createElement("colgroup",null,t),w.a.createElement("thead",null,n))}t(185),t(186);function Mn(e){return e?(e.nodeName||"").toLowerCase():null}function Dn(e){return null==e?window:"[object Window]"!==e.toString()?(t=e.ownerDocument)&&t.defaultView||window:e;var t}function Ln(e){return Dn(e).getComputedStyle(e)}function Nn(e){return e instanceof Dn(e).HTMLElement||e instanceof HTMLElement}function Hn(e){if("undefined"!=typeof ShadowRoot)return e instanceof Dn(e).ShadowRoot||e instanceof ShadowRoot}function Fn(e){return(((t=e)instanceof Dn(t).Element||t instanceof Element?e.ownerDocument:e.document)||window.document).documentElement;var t}function zn(e){return"html"===Mn(e)?e:e.assignedSlot||e.parentNode||(Hn(e)?e.host:null)||Fn(e)}function Bn(e){return Nn(e)&&"fixed"!==Ln(e).position?e.offsetParent:null}function Vn(e){for(var t,n=Dn(e),r=Bn(e);r&&(t=r,0<=["table","td","th"].indexOf(Mn(t)))&&"static"===Ln(r).position;)r=Bn(r);return(!r||"html"!==Mn(r)&&("body"!==Mn(r)||"static"!==Ln(r).position))&&(r||function(e){var t=-1!==navigator.userAgent.toLowerCase().indexOf("firefox"),n=-1!==navigator.userAgent.indexOf("Trident");if(n&&Nn(e)&&"fixed"===Ln(e).position)return null;var r=zn(e);for(Hn(r)&&(r=r.host);Nn(r)&&["html","body"].indexOf(Mn(r))<0;){var o=Ln(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 Kn(t,n,r){return function(e){return e.lift(new Wn(t,n,r))}}var Wn=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 $n(e,this.nextOrObserver,this.error,this.complete))},e}(),$n=function(o){function e(e,t,n,r){e=o.call(this,e)||this;return e._tapNext=f,e._tapError=f,e._tapComplete=f,e._tapError=n||f,e._tapComplete=r||f,ee(t)?(e._context=e)._tapNext=t:t&&(e._context=t,e._tapNext=t.next||f,e._tapError=t.error||f,e._tapComplete=t.complete||f),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 Gn(e){return"[object Window]"===e.toString()||"[object global]"===e.toString()}function Yn(e){return"html"===Mn(e)||"body"===Mn(e)}function Un(e,t,n){for(var r=0,o=e;null!=o&&(r+=o[n],!(o===t||Gn(t)&&Yn(o)));)o=o.parentElement;return Gn(t)&&(r+={scrollLeft:(e=Dn(e=o)).pageXOffset,scrollTop:e.pageYOffset}[n]),r}function qn(e,t){if(Gn(t)||Yn(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=Vn(o);if(r-=Un(o.parentElement,i,"scrollTop"),n-=Un(o.parentElement,i,"scrollLeft"),Gn(i))break;r+=i.clientTop,n+=i.clientLeft,o=i}return{top:r,bottom:r+t.offsetHeight,left:n,right:n+t.offsetWidth}}function Xn(e,t){return Gn(t)||function(e){var t=[],n=e;for(;;){if(Gn(n))break;n=Vn(n),t.push(n)}return t}(e).includes(t)?t:Vn(t)}function Jn(n){return Gn(n)?y(n,"resize",{passive:!0}):new l(function(t){var e=new Lt.a(function(e){t.next(e)});return e.observe(n),function(){e.disconnect()}})}function Zn(e){return["html","body","#document"].includes(Mn(e))?Dn(e):Nn(e)&&(n=(t=Ln(t=e)).overflow,r=t.overflowX,t=t.overflowY,/auto|scroll|overlay|hidden/.test(n+t+r))?e:Zn(zn(e));var t,n,r}function Qn(r,e,t){return e.pipe(bt("init"),v(function(){var e=Zn(zn(r));return{scrollParent:e,commonOffsetAncestor:Xn(r,e)}}),ct(qt),Kn(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)}),St(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 l?e[0]:vt(n)(_e(e,r))}(y(t,"scroll",{passive:!0}),Jn(t),Jn(r)).pipe(v(function(e){return{targetRect:qn(n,r),scrollParentRect:qn(n,t),event:e}}),v(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)}}}))}),Kn(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(273);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){x()(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,s){var f=new Array(e).fill(s);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(s,i))),t<=0?e<=0?(i=u(0,o={topIndex:0,topBlank:0}),tr(tr({},o),i)):(n=l(c),r=a(n),n=u(n,r),tr(tr({},r),n)):(r=a(e),n=u(e+t,r),tr(tr({},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<Bt;)a+=f[o-(c+=1)];return{topIndex:o-c,topBlank:i-a}}function u(e,t){for(var n=t.topIndex,r=t.topBlank;n<c&&r<e;)r+=f[n],n+=1;for(var t=l(c)-r,o=n,i=0,a=0;a<c-o&&i<Bt;)i+=f[o+a],a+=1;return{bottomIndex:o+a,bottomBlank:t-i}}function l(e){return Vt(f)+(e-f.length)*s}},updateRow:function(e,t,n){f[e]=n},cache:f}}var rr=function(){function n(e){var r=this,t=(i()(this,n),x()(this,"artTableWrapper",void 0),x()(this,"artTable",void 0),x()(this,"tableHeader",void 0),x()(this,"tableBody",void 0),x()(this,"virtual",void 0),x()(this,"tableElement",void 0),x()(this,"tableFooter",void 0),x()(this,"stickyScroll",void 0),x()(this,"stickyScrollItem",void 0),x()(this,"tableHeaderMain",void 0),x()(this,"tableFooterMain",void 0),x()(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}),x()(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(E.artTable)),this.tableHeader=this.artTable.querySelector(".".concat(E.tableHeader)),this.tableHeaderMain=this.artTable.querySelector(".".concat(E.tableHeaderMain)),this.tableBody=this.artTable.querySelector(".".concat(E.tableBody)),this.virtual=this.artTable.querySelector(".".concat(E.virtual)),this.tableElement=this.artTable.querySelector(".".concat(E.tableBody," table")),this.tableFooter=this.artTable.querySelector(".".concat(E.tableFooter)),this.tableFooterMain=this.artTable.querySelector(".".concat(E.tableFooterMain)),".".concat(E.artTable," + .").concat(E.stickyScroll));this.stickyScroll=e.querySelector(t),this.stickyScrollItem=this.stickyScroll.querySelector(".".concat(E.stickyScrollItem))}return r()(n,[{key:"getVirtualTop",value:function(){return this.tableBody.querySelector(".".concat(E.virtualBlank,".top"))}},{key:"getTableRows",value:function(){return this.artTable.querySelector(".".concat(E.tableBody," .").concat(E.virtual," table tbody")).childNodes}},{key:"getTableBodyHtmlTable",value:function(){return this.artTable.querySelector(".".concat(E.tableBody," .").concat(E.virtual," table"))}},{key:"getLeftLockShadow",value:function(){var e=".".concat(E.lockShadowMask," .").concat(E.leftLockShadow);return this.artTable.querySelector(e)}},{key:"getRightLockShadow",value:function(){var e=".".concat(E.lockShadowMask," .").concat(E.rightLockShadow);return this.artTable.querySelector(e)}},{key:"getLoadingIndicator",value:function(){return this.artTableWrapper.querySelector(".".concat(E.loadingIndicator))}},{key:"getRowTop",value:function(e){if(0===e)return 0;e=".".concat(E.tableBody," .").concat(E.tableRow,'[data-rowindex="').concat(e,'"]'),e=this.artTable.querySelector(e);return(e&&e.offsetTop||0)+(this.tableElement.offsetTop||0)}}]),n}();function or(e,t,n){return e.getValue?e.getValue(t,n):t[e.code]}var j={safeRenderHeader:function(e){var t;return null!=(t=e.title)?t:e.name},safeGetValue:or,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=or(e,t,n),e.getCellProps(r,t,n)||{}):{}},safeRender:function(e,t,n){var r=or(e,t,n);return e.render?e.render(r,t,n):r}},ir=function(){function e(){i()(this,e),x()(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 ar(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 cr(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?ar(Object(n),!0).forEach(function(e){x()(t,e,n[e])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):ar(Object(n)).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))})}return t}function ur(e){var t=e.tbodyHtmlTag,r=e.getRowProps,o=e.primaryKey,p=e.stickyRightOffset,n=e.data,d=e.verticalRenderInfo,h=e.horizontalRenderInfo,v=e.tbodyPosition,e=h.flat,y=(h.horizontalRenderRange,new ir),b=e.full.length,g=e.left.length,m=e.right.length;return w.a.createElement("table",null,w.a.createElement(un,{descriptors:h.visible}),w.a.createElement(t,null,n.map(function(s,e){var f=d.offset+e,e=(y.stripUpwards(f),r(s,f)),t=S()(E.tableRow,(t={},x()(t,E.first,f===d.first),x()(t,E.last,f===d.last),x()(t,E.even,f%2==0),x()(t,E.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 w.a.createElement("tr",O()({},e,{className:t,key:null!=e&&e["data-row-detail-key"]?e["data-row-detail-key"]:j.safeGetRowKey(o,s,f),"data-rowindex":f,"data-role":"table-row"}),n.map(function(e){if("blank"===e.type)return w.a.createElement("td",{key:e.blankSide,style:{visibility:e.isPlacehoder?"hidden":void 0}});var t,n=s,r=f,o=e.col,e=e.colIndex;if(y.testSkip(r,e))return null;var i=j.safeGetValue(o,n,r),a=null!=(a=null==(a=o.getCellProps)?void 0:a.call(o,i,n,r))?a:{},c=i,u=(o.render&&(c=o.render(i,n,r)),1),l=1;return o.getSpanRect?(i=o.getSpanRect(i,n,r),u=null==i?1:i.right-e,l=null==i?1:i.bottom-r):(null!=a.colSpan&&(u=a.colSpan),null!=a.rowSpan&&(l=a.rowSpan)),(n=1<u||1<l)&&y.add(r,e,u,l),l=Math.min(l,d.limit-r),u=Math.min(u,h.visible.length-e),l=Math.max(l,1),u=Math.max(u,1),i={},e<g?(i.position="sticky",i.left=h.stickyLeftMap.get(e)):b-m<=e&&(i.position="sticky",i.right=h.stickyRightMap.get(e)-("number"==typeof p?p:0)),w.a.createElement("td",cr(cr(cr({key:e},a),{},{className:S()(E.tableCell,a.className,(t={},x()(t,E.first,0===e),x()(t,E.last,e+u===b),x()(t,E.lockLeft,e<g||"left"===v),x()(t,E.lockRight,b-m<=e),x()(t,E.rowSpan,1<l),t))},n?{colSpan:u,rowSpan:l}:null),{},{style:cr(cr({textAlign:o.align,verticalAlign:null!=(e=o.verticalAlign)?e:"middle"},a.style),i),"data-role":"table-cell","data-rowindex":r,"data-code":o.code}),"center"===v&&"sticky"===i.position?null:c)}))})))}var lr=w.a.memo(function(){return w.a.createElement("svg",{style:{margin:"auto",display:"block",width:40,height:40},viewBox:"0 0 100 100",preserveAspectRatio:"xMidYMid"},w.a.createElement("circle",{cx:"50",cy:"50",r:"40",fill:"none",stroke:"#23a7fa",strokeDasharray:"188 64",strokeLinecap:"round",strokeWidth:"10"},w.a.createElement("animateTransform",{attributeName:"transform",dur:"1.5s",keyTimes:"0;1",repeatCount:"indefinite",type:"rotate",values:"0 50 50;360 50 50"})))});function sr(e){var t=e.children,e=e.visible;return w.a.createElement("div",{className:E.loadingContentWrapper,style:{filter:e?"blur(1px)":"none"}},t)}function fr(e){var t=e.visible,n=e.children,r=e.LoadingContentWrapper,e=e.LoadingIcon;return w.a.createElement("div",{className:E.loadingWrapper},t&&w.a.createElement("div",{className:E.loadingIndicatorWrapper},w.a.createElement("div",{className:E.loadingIndicator},w.a.createElement(void 0===e?lr:e,null))),w.a.createElement(void 0===r?sr:r,{visible:t,children:n}))}
|
|
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,u={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(u.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 ue(r,e));break}default:r.syncErrorThrowable=!0,r.destination=new ue(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}(s),ue=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,u.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=u.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)},u.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(),u.useDeprecatedSynchronousErrorHandling)throw e;ie(e)}},e.prototype.__tryOrSetError=function(t,e,n){if(!u.useDeprecatedSynchronousErrorHandling)throw new Error("bad call");try{e.call(this._context,n)}catch(e){return u.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 le=function(){return"function"==typeof Symbol&&Symbol.observable||"@@observable"}();function se(e){return e}function fe(t){return 0===t.length?se:1===t.length?t[0]:function(e){return t.reduce(function(e,t){return t(e)},e)}}var l=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||u.useDeprecatedSynchronousErrorHandling&&!e.syncErrorThrowable?this._subscribe(e):this._trySubscribe(e)),u.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){u.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=pe(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[le]=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=pe(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 pe(e){if(e=e||u.Promise||Promise)return e;throw new Error("no Promise impl found")}var de=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}(s),ve=function(n){function e(e){var t=n.call(this,e)||this;return t.destination=e,t}return c(e,n),e}(a),ye=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 be(this,this);return t.operator=e,t},e.prototype.next=function(e){if(this.closed)throw new de;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 de;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 de;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 de;return t.prototype._trySubscribe.call(this,e)},e.prototype._subscribe=function(e){if(this.closed)throw new de;return this.hasError?(e.error(this.thrownError),s.EMPTY):this.isStopped?(e.complete(),s.EMPTY):(this.observers.push(e),new he(this,e))},e.prototype.asObservable=function(){var e=new l;return e.source=this,e},e.create=function(e,t){return new be(e,t)},e}(l),be=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):s.EMPTY},e}(ye),ge=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 de;return this._value},e.prototype.next=function(e){n.prototype.next.call(this,this._value=e)},e}(ye);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()}},Oe=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 Se(){return"function"==typeof Symbol&&Symbol.iterator?Symbol.iterator:"@@iterator"}var ke=Se(),Ee=function(r){return function(t){for(var e=r[ke]();;){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[le]();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 Ae=function(e){if(e&&"function"==typeof e[le])return je(e);if(Ce(e))return xe(e);if(Pe(e))return Oe(e);if(e&&"function"==typeof e[ke])return Ee(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 Re(r,o){return new l(function(e){var t=new s,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 _e(e,t){return t?Re(e,t):new l(xe(e))}var Ie={};var Te=function(){function e(e){this.resultSelector=e}return e.prototype.call=function(e,t){return t.subscribe(new Me(e,this.resultSelector))},e}(),Me=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(Ie),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 l?t.subscribe(o):Ae(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===Ie?--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 De(e,t){if(null!=e){if((u=e)&&"function"==typeof u[le])return a=e,c=t,new l(function(t){var n=new s;return n.add(c.schedule(function(){var e=a[le]();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 l(function(t){var n=new s;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 Re(e,t);if((u=e)&&"function"==typeof u[ke]||"string"==typeof e){var n=e,i=t;if(n)return new l(function(r){var o,e=new s;return e.add(function(){o&&"function"==typeof o.return&&o.return()}),e.add(i.schedule(function(){o=n[ke](),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,u;throw new TypeError((null!==e&&typeof e||e)+" is not observable")}function Le(e,t){return t?De(e,t):e instanceof l?e:new l(Ae(e))}function f(){}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){if(void 0===t&&(t=0),this.closed)return this;this.state=e;var e=this.id,n=this.scheduler;return 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}(s)),Ne=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=Ne.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}(Ne),Fe=new He(e),ze=Fe;var Be=function(){function e(e,t){this.dueTime=e,this.scheduler=t}return e.prototype.call=function(e,t){return t.subscribe(new Ve(e,this.dueTime,this.scheduler))},e}(),Ve=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(Ke,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 Ke(e){e.debouncedNext()}var We=function(){function e(e){this.total=e}return e.prototype.call=function(e,t){return t.subscribe(new $e(e,this.total))},e}(),$e=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);var Ge=function(){function e(e){this.value=e}return e.prototype.call=function(e,t){return t.subscribe(new Ye(e,this.value))},e}(),Ye=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),Ue=new(function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return c(t,e),t}(He))(e),qe=new l(function(e){return e.complete()});function Xe(e){return e?(t=e,new l(function(e){return t.schedule(function(){return e.complete()})})):qe;var t}function Je(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var n=e[e.length-1];return me(n)?(e.pop(),Re(e,n)):_e(e)}function Ze(e){var t=e.error;e.subscriber.error(t)}var Qe=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 Je(this.value);case"E":return t=this.error,new l(n?function(e){return n.schedule(Ze,0,{error:t,subscriber:e})}:function(e){return e.error(t)});case"C":return Xe()}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 et=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 tt(e,this.destination)))},t.prototype._next=function(e){this.scheduleMessage(Qe.createNext(e))},t.prototype._error=function(e){this.scheduleMessage(Qe.createError(e)),this.unsubscribe()},t.prototype._complete=function(){this.scheduleMessage(Qe.createComplete()),this.unsubscribe()},t}(a),tt=function(){return function(e,t){this.notification=e,this.destination=t}}(),nt=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 rt(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 de;if(t=this.isStopped||this.hasError?s.EMPTY:(this.observers.push(e),new he(this,e)),o&&e.add(e=new et(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||Ue).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}(ye),rt=function(){return function(e,t){this.time=e,this.value=t}}();function ot(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,u=0,s=l=!1,function(e){var t;u++,!n||l?(l=!1,n=new nt(o,i,c),t=n.subscribe(this),r=e.subscribe({next:function(e){n.next(e)},error:function(e){l=!0,n.error(e)},complete:function(){s=!0,r=void 0,n.complete()}}),s&&(r=void 0)):t=n.subscribe(this),this.add(function(){u--,t.unsubscribe(),t=void 0,r&&!s&&a&&0===u&&(r.unsubscribe(),n=r=void 0)})}));var n,r,t,o,i,a,c,u,l,s}}function v(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 it(t,n))}}var it=function(){function e(e,t){this.project=e,this.thisArg=t}return e.prototype.call=function(e,t){return t.subscribe(new at(e,this.project,this.thisArg))},e}(),at=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 ct(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 lt(e,this.compare,this.keySelector))},e}(),lt=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),st=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 ft(e,t){if(!t.closed){if(e instanceof l)return e.subscribe(t);var n;try{n=Ae(e)(t)}catch(e){t.error(e)}return n}}function pt(t,o,n){return void 0===n&&(n=Number.POSITIVE_INFINITY),"function"==typeof o?function(e){return e.pipe(pt(function(n,r){return Le(t(n,r)).pipe(v(function(e,t){return o(n,e,r,t)}))},n))}:("number"==typeof o&&(n=o),function(e){return e.lift(new dt(t,n))})}var dt=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 ht(e,this.project,this.concurrent))},e}(),ht=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 st(this),n=this.destination,e=(n.add(t),ft(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 vt(e){return pt(se,e=void 0===e?Number.POSITIVE_INFINITY:e)}function yt(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return vt(1)(Je.apply(void 0,e))}function bt(){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 yt(t,e,n)}):function(e){return yt(t,e)}}var gt=function(){function e(){}return e.prototype.call=function(e,t){return t.subscribe(new mt(e))},e}(),mt=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 wt(t,n){return function(e){return e.lift(new xt(t,n))}}var xt=function(){function e(e,t){this.predicate=e,this.thisArg=t}return e.prototype.call=function(e,t){return t.subscribe(new Ot(e,this.predicate,this.thisArg))},e}(),Ot=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 St(t,o){return"function"==typeof o?function(e){return e.pipe(St(function(n,r){return Le(t(n,r)).pipe(v(function(e,t){return o(n,e,r,t)}))}))}:function(e){return e.lift(new kt(t))}}var kt=function(){function e(e){this.project=e}return e.prototype.call=function(e,t){return t.subscribe(new Et(e,this.project))},e}(),Et=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 st(this)),n=this.destination;n.add(t),this.innerSubscription=ft(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(7),t(9),t(10),t(12)),A=t.n(e);t(8),t(52);var jt={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 R(e){return null==e.children||0===e.children.length}function Ct(e,t){var n,r="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!r){if(Array.isArray(e)||(r=function(e,t){if(e){if("string"==typeof e)return Pt(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Map"===(n="Object"===n&&e.constructor?e.constructor.name:n)||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Pt(e,t):void 0}}(e))||t&&e&&"number"==typeof e.length)return r&&(e=r),n=0,{s:t=function(){},n:function(){return n>=e.length?{done:!0}:{done:!1,value:e[n++]}},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.")}var o,i=!0,a=!1;return{s:function(){r=r.call(e)},n:function(){var e=r.next();return i=e.done,e},e:function(e){a=!0,o=e},f:function(){try{i||null==r.return||r.return()}finally{if(a)throw o}}}}function Pt(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 _(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=Ct(t);try{for(r.s();!(n=r.n()).done;){var o=n.value;R(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(280);function y(e,n,r,t){return ee(r)&&(t=r,r=void 0),t?y(e,n,r).pipe(v(function(e){return Z(e)?t.apply(void 0,e):t(e)})):new l(function(t){!function e(t,n,r,o,i){var a;if(_t(t)){var c=t;t.addEventListener(n,r,i),a=function(){return c.removeEventListener(n,r,i)}}else if(Rt(t)){var u=t;t.on(n,r),a=function(){return u.off(n,r)}}else if(At(t)){var l=t;t.addListener(n,r),a=function(){return l.removeListener(n,r)}}else{if(!t||!t.length)throw new TypeError("Invalid event target");for(var s=0,f=t.length;s<f;s++)e(t[s],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 At(e){return e&&"function"==typeof e.addListener&&"function"==typeof e.removeListener}function Rt(e){return e&&"function"==typeof e.on&&"function"==typeof e.off}function _t(e){return e&&"function"==typeof e.addEventListener&&"function"==typeof e.removeEventListener}var It={leading:!0,trailing:!1};var Tt=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 Mt(e,this.duration,this.scheduler,this.leading,this.trailing))},e}(),Mt=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.trailing&&(this._trailingValue=e,this._hasTrailingValue=!0):(this.add(this.throttled=this.scheduler.schedule(Dt,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 Dt(e){e.subscriber.clearThrottle()}var Lt=t(100),e=t(17);function k(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],u=H()(c);null===c?n[a]=null:void 0!==c&&("number"===u||"string"===u||"boolean"===u?n[a]="className"===a?S()(n[a],c):c:"function"===u?(i=n[a],n[a]=null==i?c:function(r,o){return function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];r(t),o(t)}}(i,c)):"object"===u&&(n[a]=O()({},n[a],c)))}return n}var Nt={isEdge:!!window.navigator.userAgent.match(/Edge\/(\d+)/),isIE:!!window.navigator.userAgent.match(/Trident\/(\d+)/),isFireFox:!!window.navigator.userAgent.match(/Firefox\/(\d+)/),isChrome:!!window.navigator.userAgent.match(/Chrome\/(\d+)/)};function Ht(e,t){var n,r="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!r){if(Array.isArray(e)||(r=function(e,t){if(e){if("string"==typeof e)return Ft(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Map"===(n="Object"===n&&e.constructor?e.constructor.name:n)||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Ft(e,t):void 0}}(e))||t&&e&&"number"==typeof e.length)return r&&(e=r),n=0,{s:t=function(){},n:function(){return n>=e.length?{done:!0}:{done:!1,value:e[n++]}},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.")}var o,i=!0,a=!1;return{s:function(){r=r.call(e)},n:function(){var e=r.next();return i=e.done,e},e:function(e){a=!0,o=e},f:function(){try{i||null==r.return||r.return()}finally{if(a)throw o}}}}function Ft(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 zt="v3"==(null!=e.a?"v5":"v3")?"innerRef":"ref",Bt=100;function Vt(e){var t=0;return e.forEach(function(e){t+=e}),t}Kt=function(){return y(window,"resize",{passive:!0}).pipe((t=150,void 0===(n=Fe)&&(n=ze),void 0===(r={leading:!0,trailing:!0})&&(r=It),function(e){return e.lift(new Tt(t,n,r.leading,r.trailing))}));var t,n,r};var Kt,Wt,$t=new l(function(t){var e;try{e=Kt()}catch(e){return void t.error(e)}return(e?Le(e):Xe()).subscribe(t)}),Gt=function(e,n){var t=new Lt.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 Yt(){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 Ut(c,u){var l=new Set;var t,n=new s,r=Ht(c);try{var e=function(){function e(){if(l.has(a))l.delete(a);else{var e=a.scrollLeft,t=a,n=e;l.clear();var r,o=Ht(c);try{for(o.s();!(r=o.n()).done;){var i=r.value;i!==t&&(i.scrollLeft=n,l.add(i))}}catch(e){o.e(e)}finally{o.f()}u(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 qt(e,t){var n=Object.prototype.hasOwnProperty;if(Object.is(e,t))return!0;if("object"!==H()(e)||null===e||"object"!==H()(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 Xt(n,r){return Object.keys(r).length?function(e,t){return k(n(e,t),r)}:n}function Jt(e){return Nt.isIE?e.tableFooterMain:e.tableFooter}function Zt(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 Qt(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?Zt(Object(n),!0).forEach(function(e){x()(t,e,n[e])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):Zt(Object(n)).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))})}return t}function en(e,t){var n,r="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!r){if(Array.isArray(e)||(r=function(e,t){if(e){if("string"==typeof e)return tn(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Map"===(n="Object"===n&&e.constructor?e.constructor.name:n)||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?tn(e,t):void 0}}(e))||t&&e&&"number"==typeof e.length)return r&&(e=r),n=0,{s:t=function(){},n:function(){return n>=e.length?{done:!0}:{done:!1,value:e[n++]}},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.")}var o,i=!0,a=!1;return{s:function(){r=r.call(e)},n:function(){var e=r.next();return i=e.done,e},e:function(e){a=!0,o=e},f:function(){try{i||null==r.return||r.return()}finally{if(a)throw o}}}}function tn(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 nn(e,t){return null==e||"auto"===e?t:e}var rn=!1;function on(e,u){return null!=e&&Array.isArray(e)||(jt.warn("<BaseTable /> props.columns 需要传入一个数组",e),e=[]),function e(t){var n,r,o=[],i=en(t);try{for(i.s();!(n=i.n()).done;){var a,c=n.value;R(c=null==c.width&&null!=u?Qt(Qt({},c),{},{width:u}):c)?c.hidden?(r=c,rn||(rn=!0,jt.warn("column.hidden 已经过时,如果需要隐藏该列,请将其从 columns 数组中移除",r))):o.push(c):0<(a=e(c.children)).length&&o.push(Qt(Qt({},c),{},{children:a}))}}catch(e){i.e(e)}finally{i.f()}return o}(e)}function an(e){var t,n=0,r=en(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 R(e)?e.lock:e.lock||e.children.some(o)}}function cn(e){for(var t,n,r,o=e.state,i=o.offsetX,o=o.maxRenderWidth,a=e.props,c=a.useVirtual,u=a.columns,l=a.dataSource,u=on(u,a.defaultColumnWidth),a=an(u),s=_(u,"leaf-only"),f=(a===u.length?t={horizontal:!(r={left:[],right:[],full:u,center:u}),vertical:!(n={left:[],right:[],full:s,center:s}),header:!1}:(d=u.slice(0,a),S=an(u.slice().reverse()),a=u.slice(a,u.length-S),S=u.slice(u.length-S),f=100<=s.length&&s.every(function(e){return null!=e.width}),l=100<=l.length,t={horizontal:nn("object"===H()(c)?c.horizontal:c,f),vertical:nn("object"===H()(c)?c.vertical:c,l),header:nn("object"===H()(c)?c.header:c,!1)},n={left:_(d,"leaf-only"),full:s,right:_(S,"leaf-only"),center:_(a,"leaf-only")},r={left:d,full:u,right:S,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,u=Math.max(0,t-Bt);o<r.center.length;){var l=r.center[o];if(!(l.width+a<u))break;o+=1,a+=l.width}for(var s=n+(u-a)+2*Bt;o+i<r.center.length;){var f=r.center[o+i];if(!(c<s))break;c+=f.width,i+=1}return e=r.center.length-o-i,{leftIndex:o,leftBlank:a,rightIndex:o+i,rightBlank:Vt(r.center.slice(r.center.length-e).map(function(e){return e.width}))}}({maxRenderWidth:o,offsetX:i,useVirtual:t,flat:n})),l=e.getVerticalRenderRange(t),c=f.leftBlank,p=f.leftIndex,s=f.rightBlank,d=f.rightIndex,u=[].concat(A()(n.left.map(function(e,t){return{type:"normal",col:e,colIndex:t}})),[0<c&&{type:"blank",blankSide:"left",width:c}],A()(n.center.slice(p,d).map(function(e,t){return{type:"normal",col:e,colIndex:n.left.length+p+t}})),[0<s&&{type:"blank",blankSide:"right",width:s}],A()(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,y=n.right.length,b=new Map,g=0,m=0;m<v;m++)b.set(m,g),g+=n.full[m].width;for(var w=new Map,x=0,O=0;O<y;O++)w.set(h-1-O,x),x+=n.full[h-1-O].width;var S=Vt(n.left.map(function(e){return e.width})),a=Vt(n.right.map(function(e){return e.width}));return{horizontalRenderRange:f,verticalRenderRange:l,visible:u,flat:n,nested:r,useVirtual:t,stickyLeftMap:b,stickyRightMap:w,leftLockTotalWidth:S,rightLockTotalWidth:a,hasLockColumn:0<r.left.length||0<r.right.length}}function un(e){e=e.descriptors;return w.a.createElement("colgroup",null,e.map(function(e){return"blank"===e.type?w.a.createElement("col",{key:e.blankSide,style:{width:e.width}}):w.a.createElement("col",{key:e.colIndex,style:{width:e.col.width}})}))}var ln,p=t(18),p=t.n(p),h="kd-",E={artTableWrapper:"".concat(h,"table-wrapper"),artTable:"".concat(h,"table"),tableHeaderMain:"".concat(h,"table-header-main"),tableHeader:"".concat(h,"table-header"),tableBody:"".concat(h,"table-body"),virtual:"".concat(h,"virtual"),tableFooter:"".concat(h,"table-footer"),tableFooterMain:"".concat(h,"table-footer-main"),tableRow:"".concat(h,"table-row"),tableHeaderRow:"".concat(h,"table-header-row"),tableCell:"".concat(h,"table-cell"),tableHeaderCell:"".concat(h,"table-header-cell"),tableHeaderCellContent:"".concat(h,"table-header-cell-content"),tableHeaderCellResize:"".concat(h,"table-header-cell-resize"),virtualBlank:"".concat(h,"virtual-blank"),stickyScroll:"".concat(h,"sticky-scroll"),stickyScrollItem:"".concat(h,"sticky-scroll-item"),horizontalScrollContainer:"".concat(h,"horizontal-scroll-container"),verticalScrollPlaceholder:"".concat(h,"vertical-scroll-placeholder"),lockShadowMask:"".concat(h,"lock-shadow-mask"),lockShadow:"".concat(h,"lock-shadow"),leftLockShadow:"".concat(h,"left-lock-shadow"),rightLockShadow:"".concat(h,"right-lock-shadow"),emptyWrapper:"".concat(h,"empty-wrapper"),loadingWrapper:"".concat(h,"loading-wrapper"),loadingContentWrapper:"".concat(h,"loading-content-wrapper"),loadingIndicatorWrapper:"".concat(h,"loading-indicator-wrapper"),loadingIndicator:"".concat(h,"loading-indicator"),tableHeaderCellLine:"".concat(h,"table-header-cell-line"),tableFilterTrigger:"".concat(h,"filter-trigger"),tableSortIcon:"".concat(h,"sort-icon"),button:"".concat(h,"btn"),buttonPrimary:"".concat(h,"btn-primary"),filterIcon:"".concat(h,"filter-icon"),rangeSelection:"".concat(h,"range-selection"),tableCellRangeSingleCell:"".concat(h,"table-cell-range-single-cell"),tableCellRangeSelected:"".concat(h,"table-cell-range-selected"),tableCellRangeTop:"".concat(h,"table-cell-range-top"),tableCellRangeLeft:"".concat(h,"table-cell-range-left"),tableCellRangeBottom:"".concat(h,"table-cell-range-bottom"),tableCellRangeRight:"".concat(h,"table-cell-range-right"),fixedLeft:"".concat(h,"fixed-left"),fixedRight:"".concat(h,"fixed-right"),rowDetailContainer:"".concat(h,"row-detail-container"),rowDetailItem:"".concat(h,"row-detail-item"),emptyColCell:"".concat(h,"empty-col-cell"),first:"".concat(h,"first"),last:"".concat(h,"last"),even:"".concat(h,"even"),odd:"".concat(h,"odd"),lockLeft:"".concat(h,"lock-left"),lockRight:"".concat(h,"lock-right"),rowSpan:"".concat(h,"row-span"),leaf:"".concat(h,"leaf"),expanded:"".concat(h,"expanded"),collapsed:"".concat(h,"collapsed")},b={menu:"".concat(h,"table-menu"),menuList:"".concat(h,"table-menu-list"),menuOption:"".concat(h,"table-menu-option"),menuOptionActive:"".concat(h,"table-menu-option-active"),menuOptionDisable:"".concat(h,"table-menu-option-disable"),menuOptionText:"".concat(h,"table-menu-option-text")},h=5,sn=15,fn=10,pn=20,dn=25,hn=30,vn=40,yn=Object(e.b)(p()(["\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-left: none;\n }\n td.",",\n th."," {\n --border-right: 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-left: var(---cell-border-vertical);\n }\n td.",":not(.","){\n border-right: var(---cell-border-vertical);\n }\n"]),E.first,E.first,E.last,E.last,E.first,E.first,E.last,E.last,E.rowSpan,E.first,E.rowSpan,E.last),bn={"--row-height":"48px","--color":"#333","--bgcolor":"white","--hover-bgcolor":"var(--hover-color, #F2F6FF)","--highlight-bgcolor":"#eee","--primary-color":"#5582F3","--primary-color-level1":"rgb(242, 248, 255)","--primary-color-level2":"rgb(135, 173, 255)","--icon-color":"#bfbfbf","--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","--header-cell-border-horizontal":"1px solid #dfe3e8"},gn=(ln=bn,Object.keys(ln).reduce(function(e,t){return e+="".concat(t,":").concat(ln[t],";")},"")),mn=e.c.div(p()(["\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 .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 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-left: 1px solid #0E5FD8 !important;\n }\n .","{\n border-bottom: 1px solid #0E5FD8 !important;\n }\n .","{\n border-right: 1px solid #0E5FD8 !important;\n }\n }\n \n ."," {\n user-select:none;\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: left;\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-right: var(--header-cell-border-vertical);\n border-bottom: var(--header-cell-border-horizontal);\n position: relative;\n }\n\n th.resizeable{\n border-right:none\n }\n\n th."," {\n border-right: none;\n border-bottom: none;\n }\n\n tr."," th {\n border-top: var(--header-cell-border-horizontal);\n }\n th."," {\n border-left: 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-right: var(--cell-border-vertical);\n border-bottom: var(--cell-border-horizontal);\n word-break: break-all;\n }\n td."," {\n border-left: 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-right: ","px;\n box-shadow: none;\n\n &.show-shadow {\n box-shadow: var(--lock-shadow);\n border-right: var(--cell-border-vertical);\n }\n }\n\n ."," {\n margin-left: ","px;\n box-shadow: none;\n\n &.show-shadow {\n box-shadow: var(--lock-shadow);\n border-left: 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 IE兼容\n &.ie-polyfill-wrapper {\n //锁定列兼容 仅在锁定列的情况下生效\n ."," {\n overflow-x: hidden;\n }\n .",", ."," {\n position:relative;\n }\n ."," {\n overflow: hidden;\n }\n ."," {\n position: relative;\n }\n\n ."," {\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 left:0;\n }\n .","{\n right: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\n\n //#region 粘性滚动条\n ."," {\n overflow-y: hidden;\n overflow-x: auto;\n z-index: ",";\n flex-shrink: 0;\n flex-grow: 0;\n border-top: 1px solid var(--border-color);\n background: var(--bgcolor);\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 }\n //#endregion\n\n //#region 表格排序\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 flex-shrink: 0;\n }\n ."," ."," {\n border-top: var(--cell-border-horizontal);\n }\n //#endregion\n "]),gn,gn,yn,E.artTable,E.tableHeader,E.tableHeaderCellContent,E.virtual,E.tableFooter,E.tableBody,E.tableFooter,E.tableRow,E.tableBody,E.tableFooter,E.tableCellRangeSelected,E.tableCellRangeTop,E.tableCellRangeLeft,E.tableCellRangeBottom,E.tableCellRangeRight,E.rangeSelection,E.tableHeader,sn,E.tableFooter,fn,E.leaf,E.first,E.first,E.first,E.first,E.first,E.last,E.lockLeft,E.lockRight,h,E.lockShadowMask,pn,E.lockShadow,E.leftLockShadow,20,E.rightLockShadow,20,E.emptyWrapper,E.virtual,E.tableBody,E.tableFooter,E.tableHeaderMain,E.tableHeader,E.tableFooterMain,E.fixedLeft,E.fixedRight,h,E.fixedLeft,E.fixedRight,E.rowDetailContainer,E.rowDetailItem,dn,E.stickyScroll,hn,E.stickyScrollItem,E.loadingWrapper,E.loadingContentWrapper,E.loadingIndicatorWrapper,E.loadingIndicator,vn,E.tableFilterTrigger,E.tableSortIcon,E.verticalScrollPlaceholder,E.tableFooter,E.verticalScrollPlaceholder),yn=Object(e.b)(p()(["\n ","\n //#region 按钮\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//#endregion\n"]),gn,E.button,E.buttonPrimary);var wn=w.a.memo(function(){return w.a.createElement(w.a.Fragment,null,w.a.createElement("img",{alt:"empty-image",className:"empty-image",src:"//img.alicdn.com/tfs/TB1l1LcM3HqK1RjSZJnXXbNLpXa-50-50.svg"}),w.a.createElement("div",{className:"empty-tips"},"没有符合查询条件的数据",w.a.createElement("br",null),"请修改条件后重新查询"))});function xn(e){var t=e.descriptors,n=e.isLoading,r=e.emptyCellHeight,e=e.EmptyContent,e=void 0===e?wn:e,n=!n;return w.a.createElement(d.Fragment,null,w.a.createElement("table",{key:"table"},w.a.createElement(un,{descriptors:t}),w.a.createElement("tbody",null,w.a.createElement("tr",{className:S()(E.tableRow,E.first,E.last,"no-hover"),"data-rowindex":0},w.a.createElement("td",{className:S()(E.tableCell,E.first,E.last),colSpan:t.length,style:{height:null!=r?r:200}})))),n&&w.a.createElement("div",{className:E.emptyWrapper,key:"empty"},w.a.createElement(e,null)))}function On(e,t){var n,r="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!r){if(Array.isArray(e)||(r=function(e,t){if(e){if("string"==typeof e)return Sn(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Map"===(n="Object"===n&&e.constructor?e.constructor.name:n)||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Sn(e,t):void 0}}(e))||t&&e&&"number"==typeof e.length)return r&&(e=r),n=0,{s:t=function(){},n:function(){return n>=e.length?{done:!0}:{done:!1,value:e[n++]}},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.")}var o,i=!0,a=!1;return{s:function(){r=r.call(e)},n:function(){var e=r.next();return i=e.done,e},e:function(e){a=!0,o=e},f:function(){try{i||null==r.return||r.return()}finally{if(a)throw o}}}}function Sn(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 kn(e){var a=-1;return function e(t,n){var r,o=On(t);try{for(o.s();!(r=o.n()).done;){var i=r.value;R(i)?a=Math.max(a,n):e(i.children,n+1)}}catch(e){o.e(e)}finally{o.f()}}(e,0),a}function En(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 jn(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?En(Object(n),!0).forEach(function(e){x()(t,e,n[e])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):En(Object(n)).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))})}return t}function Cn(e,t){var n,r="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!r){if(Array.isArray(e)||(r=function(e,t){if(e){if("string"==typeof e)return Pn(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Map"===(n="Object"===n&&e.constructor?e.constructor.name:n)||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Pn(e,t):void 0}}(e))||t&&e&&"number"==typeof e.length)return r&&(e=r),n=0,{s:t=function(){},n:function(){return n>=e.length?{done:!0}:{done:!1,value:e[n++]}},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.")}var o,i=!0,a=!1;return{s:function(){r=r.call(e)},n:function(){var e=r.next();return i=e.done,e},e:function(e){a=!0,o=e},f:function(){try{i||null==r.return||r.return()}finally{if(a)throw o}}}}function Pn(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 An(e,s,f){return function e(t,n){var r=0;var o=[];var i,a=Cn(t);try{for(a.s();!(i=a.n()).done;){var c,u=i.value,l=n+r;R(u)?(r+=1,f+s.leftIndex<=l&&l<f+s.rightIndex&&o.push({colIndex:l,col:u})):(c=e(u.children,l),r+=c.leafCount,0<c.filtered.length&&o.push({colIndex:l,col:u,children:c.filtered}))}}catch(e){a.e(e)}finally{a.f()}return{filtered:o,leafCount:r}}(e,f).filtered}function Rn(e,t){for(var c=[],n=0;n<t;n++)c.push([]);var u=[];return function e(t,n){var r=0;for(var o=0;o<t.length;o++){var i,a=t[o];R(a)?(r+=1,i={type:"normal",width:a.col.width,col:a.col,colIndex:a.colIndex,colSpan:1,isLeaf:!0},c[n].push(i),u.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:u,leveled:c}}function _n(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],u=n+o;R(c)?(o+=1,r.push({colIndex:u,col:c})):(a=e(c.children,u),o+=a.leafCount,0<a.leafCount&&r.push({col:c,colIndex:u,children:a.result}))}return{result:r,leafCount:o}}(e,t).result}function In(e,t){var n,r,o,i=e.flat,a=e.nested,c=e.horizontalRenderRange;return e.useVirtual.header?(n=Rn(_n(a.left,0),t),r=Rn(An(a.center,c,i.left.length),t),o=Rn(_n(a.right,i.left.length+i.center.length),t),{flat:[].concat(A()(n.flat),[{type:"blank",width:c.leftBlank,blankSide:"left"}],A()(r.flat),[{type:"blank",width:c.rightBlank,blankSide:"right"}],A()(o.flat)),leveled:function(e){for(var t=[],n=0;n<e;n++)t.push(n);return t}(t).map(function(e){return[].concat(A()(n.leveled[e]),[{type:"blank",width:c.leftBlank,blankSide:"left"}],A()(r.leveled[e]),[{type:"blank",width:c.rightBlank,blankSide:"right"}],A()(o.leveled[e]))})}):Rn(_n(a.full,0),t)}function Tn(e){var t=e.info,f=e.theaderPosition,e=e.rowCount,n=t.nested,r=t.flat,p=t.stickyLeftMap,d=t.stickyRightMap,h=null!=e?e:kn(n.full)+1,e=In(t,h),v=r.full.length,y=r.left.length,b=r.right.length,n=e.leveled.map(function(e,s){var t,e=e.concat(),e=(1<h&&-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,u,l;return"normal"===e.type?(r=e.colIndex,o=e.colSpan,i=e.isLeaf,c=null!=(c=(a=e.col).headerCellProps)?c:{},u={},r<y?(u.position="sticky",u.left=p.get(r)):v-b<=r&&(u.position="sticky",u.right=d.get(r)),l="right"===a.align?"flex-end":"center"===a.align?"center":"flex-start",w.a.createElement("th",O()({key:r},c,{className:S()(E.tableHeaderCell,c.className,(n={},x()(n,E.first,0===r),x()(n,E.last,r+o===v),x()(n,E.lockLeft,r<y||"left"===f),x()(n,E.lockRight,v-b<=r||"right"===f),x()(n,E.leaf,e.isLeaf),n)),colSpan:o,rowSpan:i?h-s:void 0,style:jn(jn({textAlign:a.align,verticalAlign:null!=(r=a.verticalAlign)?r:"middle"},c.style),u),"data-code":a.code}),"center"===f&&"sticky"===u.position?null:w.a.createElement("div",{className:E.tableHeaderCellContent,style:{justifyContent:l}},null!=(n=a.title)?n:a.name))):0<e.width?w.a.createElement("th",{key:e.blankSide,style:{visibility:e.isPlacehoder?"hidden":void 0}}):null}));return w.a.createElement("tr",{key:s,className:S()(E.tableHeaderRow,(t={},x()(t,E.first,0===s),x()(t,E.last,s===h-1),t))},e)}),t=e.flat.map(function(e){return"blank"===e.type?0<e.width?w.a.createElement("col",{key:e.blankSide,style:{width:e.width}}):null:w.a.createElement("col",{key:e.colIndex,style:{width:e.width}})});return w.a.createElement("table",null,w.a.createElement("colgroup",null,t),w.a.createElement("thead",null,n))}t(185),t(186);function Mn(e){return e?(e.nodeName||"").toLowerCase():null}function Dn(e){return null==e?window:"[object Window]"!==e.toString()?(t=e.ownerDocument)&&t.defaultView||window:e;var t}function Ln(e){return Dn(e).getComputedStyle(e)}function Nn(e){return e instanceof Dn(e).HTMLElement||e instanceof HTMLElement}function Hn(e){if("undefined"!=typeof ShadowRoot)return e instanceof Dn(e).ShadowRoot||e instanceof ShadowRoot}function Fn(e){return(((t=e)instanceof Dn(t).Element||t instanceof Element?e.ownerDocument:e.document)||window.document).documentElement;var t}function zn(e){return"html"===Mn(e)?e:e.assignedSlot||e.parentNode||(Hn(e)?e.host:null)||Fn(e)}function Bn(e){return Nn(e)&&"fixed"!==Ln(e).position?e.offsetParent:null}function Vn(e){for(var t,n=Dn(e),r=Bn(e);r&&(t=r,0<=["table","td","th"].indexOf(Mn(t)))&&"static"===Ln(r).position;)r=Bn(r);return(!r||"html"!==Mn(r)&&("body"!==Mn(r)||"static"!==Ln(r).position))&&(r||function(e){var t=-1!==navigator.userAgent.toLowerCase().indexOf("firefox"),n=-1!==navigator.userAgent.indexOf("Trident");if(n&&Nn(e)&&"fixed"===Ln(e).position)return null;var r=zn(e);for(Hn(r)&&(r=r.host);Nn(r)&&["html","body"].indexOf(Mn(r))<0;){var o=Ln(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 Kn(t,n,r){return function(e){return e.lift(new Wn(t,n,r))}}var Wn=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 $n(e,this.nextOrObserver,this.error,this.complete))},e}(),$n=function(o){function e(e,t,n,r){e=o.call(this,e)||this;return e._tapNext=f,e._tapError=f,e._tapComplete=f,e._tapError=n||f,e._tapComplete=r||f,ee(t)?(e._context=e)._tapNext=t:t&&(e._context=t,e._tapNext=t.next||f,e._tapError=t.error||f,e._tapComplete=t.complete||f),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 Gn(e){return"[object Window]"===e.toString()||"[object global]"===e.toString()}function Yn(e){return"html"===Mn(e)||"body"===Mn(e)}function Un(e,t,n){for(var r=0,o=e;null!=o&&(r+=o[n],!(o===t||Gn(t)&&Yn(o)));)o=o.parentElement;return Gn(t)&&(r+={scrollLeft:(e=Dn(e=o)).pageXOffset,scrollTop:e.pageYOffset}[n]),r}function qn(e,t){if(Gn(t)||Yn(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=Vn(o);if(r-=Un(o.parentElement,i,"scrollTop"),n-=Un(o.parentElement,i,"scrollLeft"),Gn(i))break;r+=i.clientTop,n+=i.clientLeft,o=i}return{top:r,bottom:r+t.offsetHeight,left:n,right:n+t.offsetWidth}}function Xn(e,t){return Gn(t)||function(e){var t=[],n=e;for(;;){if(Gn(n))break;n=Vn(n),t.push(n)}return t}(e).includes(t)?t:Vn(t)}function Jn(n){return Gn(n)?y(n,"resize",{passive:!0}):new l(function(t){var e=new Lt.a(function(e){t.next(e)});return e.observe(n),function(){e.disconnect()}})}function Zn(e){return["html","body","#document"].includes(Mn(e))?Dn(e):Nn(e)&&(n=(t=Ln(t=e)).overflow,r=t.overflowX,t=t.overflowY,/auto|scroll|overlay|hidden/.test(n+t+r))?e:Zn(zn(e));var t,n,r}function Qn(r,e,t){return e.pipe(bt("init"),v(function(){var e=Zn(zn(r));return{scrollParent:e,commonOffsetAncestor:Xn(r,e)}}),ct(qt),Kn(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)}),St(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 l?e[0]:vt(n)(_e(e,r))}(y(t,"scroll",{passive:!0}),Jn(t),Jn(r)).pipe(v(function(e){return{targetRect:qn(n,r),scrollParentRect:qn(n,t),event:e}}),v(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)}}}))}),Kn(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(273);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){x()(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,s){var f=new Array(e).fill(s);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(s,i))),t<=0?e<=0?(i=u(0,o={topIndex:0,topBlank:0}),tr(tr({},o),i)):(n=l(c),r=a(n),n=u(n,r),tr(tr({},r),n)):(r=a(e),n=u(e+t,r),tr(tr({},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<Bt;)a+=f[o-(c+=1)];return{topIndex:o-c,topBlank:i-a}}function u(e,t){for(var n=t.topIndex,r=t.topBlank;n<c&&r<e;)r+=f[n],n+=1;for(var t=l(c)-r,o=n,i=0,a=0;a<c-o&&i<Bt;)i+=f[o+a],a+=1;return{bottomIndex:o+a,bottomBlank:t-i}}function l(e){return Vt(f)+(e-f.length)*s}},updateRow:function(e,t,n){f[e]=n},cache:f}}var rr=function(){function n(e){var r=this,t=(i()(this,n),x()(this,"artTableWrapper",void 0),x()(this,"artTable",void 0),x()(this,"tableHeader",void 0),x()(this,"tableBody",void 0),x()(this,"virtual",void 0),x()(this,"tableElement",void 0),x()(this,"tableFooter",void 0),x()(this,"stickyScroll",void 0),x()(this,"stickyScrollItem",void 0),x()(this,"tableHeaderMain",void 0),x()(this,"tableFooterMain",void 0),x()(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}),x()(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(E.artTable)),this.tableHeader=this.artTable.querySelector(".".concat(E.tableHeader)),this.tableHeaderMain=this.artTable.querySelector(".".concat(E.tableHeaderMain)),this.tableBody=this.artTable.querySelector(".".concat(E.tableBody)),this.virtual=this.artTable.querySelector(".".concat(E.virtual)),this.tableElement=this.artTable.querySelector(".".concat(E.tableBody," table")),this.tableFooter=this.artTable.querySelector(".".concat(E.tableFooter)),this.tableFooterMain=this.artTable.querySelector(".".concat(E.tableFooterMain)),".".concat(E.artTable," + .").concat(E.stickyScroll));this.stickyScroll=e.querySelector(t),this.stickyScrollItem=this.stickyScroll.querySelector(".".concat(E.stickyScrollItem))}return r()(n,[{key:"getVirtualTop",value:function(){return this.tableBody.querySelector(".".concat(E.virtualBlank,".top"))}},{key:"getTableRows",value:function(){return this.artTable.querySelector(".".concat(E.tableBody," .").concat(E.virtual," table tbody")).childNodes}},{key:"getTableBodyHtmlTable",value:function(){return this.artTable.querySelector(".".concat(E.tableBody," .").concat(E.virtual," table"))}},{key:"getLeftLockShadow",value:function(){var e=".".concat(E.lockShadowMask," .").concat(E.leftLockShadow);return this.artTable.querySelector(e)}},{key:"getRightLockShadow",value:function(){var e=".".concat(E.lockShadowMask," .").concat(E.rightLockShadow);return this.artTable.querySelector(e)}},{key:"getLoadingIndicator",value:function(){return this.artTableWrapper.querySelector(".".concat(E.loadingIndicator))}},{key:"getRowTop",value:function(e){if(0===e)return 0;e=".".concat(E.tableBody," .").concat(E.tableRow,'[data-rowindex="').concat(e,'"]'),e=this.artTable.querySelector(e);return(e&&e.offsetTop||0)+(this.tableElement.offsetTop||0)}}]),n}();function or(e,t,n){return e.getValue?e.getValue(t,n):t[e.code]}var j={safeRenderHeader:function(e){var t;return null!=(t=e.title)?t:e.name},safeGetValue:or,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=or(e,t,n),e.getCellProps(r,t,n)||{}):{}},safeRender:function(e,t,n){var r=or(e,t,n);return e.render?e.render(r,t,n):r}},ir=function(){function e(){i()(this,e),x()(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 ar(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 cr(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?ar(Object(n),!0).forEach(function(e){x()(t,e,n[e])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):ar(Object(n)).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))})}return t}function ur(e){var t=e.tbodyHtmlTag,r=e.getRowProps,o=e.primaryKey,p=e.stickyRightOffset,n=e.data,d=e.verticalRenderInfo,h=e.horizontalRenderInfo,v=e.tbodyPosition,e=h.flat,y=(h.horizontalRenderRange,new ir),b=e.full.length,g=e.left.length,m=e.right.length;return w.a.createElement("table",null,w.a.createElement(un,{descriptors:h.visible}),w.a.createElement(t,null,n.map(function(s,e){var f=d.offset+e,e=(y.stripUpwards(f),r(s,f)),t=S()(E.tableRow,(t={},x()(t,E.first,f===d.first),x()(t,E.last,f===d.last),x()(t,E.even,f%2==0),x()(t,E.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 w.a.createElement("tr",O()({},e,{className:t,key:null!=e&&e["data-row-detail-key"]?e["data-row-detail-key"]:j.safeGetRowKey(o,s,f),"data-rowindex":f,"data-role":"table-row"}),n.map(function(e){if("blank"===e.type)return w.a.createElement("td",{key:e.blankSide,style:{visibility:e.isPlacehoder?"hidden":void 0}});var t,n=s,r=f,o=e.col,e=e.colIndex;if(y.testSkip(r,e))return null;var i=j.safeGetValue(o,n,r),a=null!=(a=null==(a=o.getCellProps)?void 0:a.call(o,i,n,r))?a:{},c=i,u=(o.render&&(c=o.render(i,n,r)),1),l=1;return o.getSpanRect?(i=o.getSpanRect(i,n,r),u=null==i?1:i.right-e,l=null==i?1:i.bottom-r):(null!=a.colSpan&&(u=a.colSpan),null!=a.rowSpan&&(l=a.rowSpan)),(n=1<u||1<l)&&y.add(r,e,u,l),l=Math.min(l,d.limit-r),u=Math.min(u,h.visible.length-e),l=Math.max(l,1),u=Math.max(u,1),i={},e<g?(i.position="sticky",i.left=h.stickyLeftMap.get(e)):b-m<=e&&(i.position="sticky",i.right=h.stickyRightMap.get(e)-("number"==typeof p?p:0)),w.a.createElement("td",cr(cr(cr({key:e},a),{},{className:S()(E.tableCell,a.className,(t={},x()(t,E.first,0===e),x()(t,E.last,e+u===b),x()(t,E.lockLeft,e<g||"left"===v),x()(t,E.lockRight,b-m<=e),x()(t,E.rowSpan,1<l),t))},n?{colSpan:u,rowSpan:l}:null),{},{style:cr(cr({textAlign:o.align,verticalAlign:null!=(e=o.verticalAlign)?e:"middle"},a.style),i),"data-role":"table-cell","data-rowindex":r,"data-code":o.code}),"center"===v&&"sticky"===i.position?null:c)}))})))}var lr=w.a.memo(function(){return w.a.createElement("svg",{style:{margin:"auto",display:"block",width:40,height:40},viewBox:"0 0 100 100",preserveAspectRatio:"xMidYMid"},w.a.createElement("circle",{cx:"50",cy:"50",r:"40",fill:"none",stroke:"#23a7fa",strokeDasharray:"188 64",strokeLinecap:"round",strokeWidth:"10"},w.a.createElement("animateTransform",{attributeName:"transform",dur:"1.5s",keyTimes:"0;1",repeatCount:"indefinite",type:"rotate",values:"0 50 50;360 50 50"})))});function sr(e){var t=e.children,e=e.visible;return w.a.createElement("div",{className:E.loadingContentWrapper,style:{filter:e?"blur(1px)":"none"}},t)}function fr(e){var t=e.visible,n=e.children,r=e.LoadingContentWrapper,e=e.LoadingIcon;return w.a.createElement("div",{className:E.loadingWrapper},t&&w.a.createElement("div",{className:E.loadingIndicatorWrapper},w.a.createElement("div",{className:E.loadingIndicator},w.a.createElement(void 0===e?lr:e,null))),w.a.createElement(void 0===r?sr:r,{visible:t,children:n}))}
|
|
47
47
|
/*!
|
|
48
48
|
* css-vars-ponyfill
|
|
49
49
|
* v2.4.7
|
|
@@ -119,7 +119,7 @@ PERFORMANCE OF THIS SOFTWARE.
|
|
|
119
119
|
* // ...
|
|
120
120
|
* }
|
|
121
121
|
* });
|
|
122
|
-
*/){var t=1<arguments.length&&void 0!==t?t:{},o={mimeType:t.mimeType||null,onBeforeSend:t.onBeforeSend||Function.prototype,onSuccess:t.onSuccess||Function.prototype,onError:t.onError||Function.prototype,onComplete:t.onComplete||Function.prototype},r=Array.isArray(e)?e:[e],i=Array.apply(null,Array(r.length)).map(function(e){return null});function a(e){var t="string"==typeof e,e=t&&"<"===e.trim().charAt(0);return t&&!e}function c(e,t){o.onError(e,r[t],t)}function u(e,t){var n=o.onSuccess(e,r[t],t);i[t]=e=!1===n?"":n||e,-1===i.indexOf(null)&&o.onComplete(i)}var l=document.createElement("a");r.forEach(function(e,t){var n,r;l.setAttribute("href",e),l.href=String(l.href),Boolean(document.all&&!window.atob)&&l.host.split(":")[0]!==location.host.split(":")[0]?l.protocol===location.protocol?((n=new XDomainRequest).open("GET",e),n.timeout=0,n.onprogress=Function.prototype,n.ontimeout=Function.prototype,n.onload=function(){var e=n.responseText;a(e)?u(e,t):c(n,t)},n.onerror=function(e){c(n,t)},setTimeout(function(){n.send()},0)):(console.warn("Internet Explorer 9 Cross-Origin (CORS) requests must use the same protocol (".concat(e,")")),c(null,t)):((r=new XMLHttpRequest).open("GET",e),o.mimeType&&r.overrideMimeType&&r.overrideMimeType(o.mimeType),o.onBeforeSend(r,e,t),r.onreadystatechange=function(){var e;4===r.readyState&&(e=r.responseText,r.status<400&&a(e)||0===r.status&&a(e)?u(e,t):c(r,t))},r.send())})}function dr(e){var i={cssComments:/\/\*[\s\S]+?\*\//g,cssImports:/(?:@import\s*)(?:url\(\s*)?(?:['"])([^'"]*)(?:['"])(?:\s*\))?(?:[^;]*;)/g},f={rootElement:e.rootElement||document,include:e.include||'style,link[rel="stylesheet"]',exclude:e.exclude||null,filter:e.filter||null,skipDisabled:!1!==e.skipDisabled,useCSSOM:e.useCSSOM||!1,onBeforeSend:e.onBeforeSend||Function.prototype,onSuccess:e.onSuccess||Function.prototype,onError:e.onError||Function.prototype,onComplete:e.onComplete||Function.prototype},n=Array.apply(null,f.rootElement.querySelectorAll(f.include)).filter(function(e){return e=e,t=f.exclude,!(e.matches||e.matchesSelector||e.webkitMatchesSelector||e.mozMatchesSelector||e.msMatchesSelector||e.oMatchesSelector).call(e,t);var t}),c=Array.apply(null,Array(n.length)).map(function(e){return null});function u(){var e;-1===c.indexOf(null)&&(c.reduce(function(e,t,n){return""===t&&e.push(n),e},[]).reverse().forEach(function(t){return[n,c].forEach(function(e){return e.splice(t,1)})}),e=c.join(""),f.onComplete(e,c,n))}function l(e,n,r,t){var o=f.onSuccess(e,r,t);!function r(o,i,a,c){var u=4<arguments.length&&void 0!==arguments[4]?arguments[4]:[];var l=5<arguments.length&&void 0!==arguments[5]?arguments[5]:[];var s=p(o,a,l);s.rules.length?pr(s.absoluteUrls,{onBeforeSend:function(e,t,n){f.onBeforeSend(e,i,t)},onSuccess:function(n,e,t){var r=f.onSuccess(n,i,e),o=p(n=!1===r?"":r||n,e,l);return o.rules.forEach(function(e,t){n=n.replace(e,o.absoluteRules[t])}),n},onError:function(e,t,n){u.push({xhr:e,url:t}),l.push(s.rules[n]),r(o,i,a,c,u,l)},onComplete:function(e){e.forEach(function(e,t){o=o.replace(s.rules[t],e)}),r(o,i,a,c,u,l)}}):c(o,u)}(e=void 0!==o&&!1===Boolean(o)?"":o||e,r,t,function(e,t){null===c[n]&&(t.forEach(function(e){return f.onError(e.xhr,r,e.url)}),!f.filter||f.filter.test(e)?c[n]=e:c[n]="",u())})}function p(e,r,t){var n=2<arguments.length&&void 0!==t?t:[],o={};return o.rules=(e.replace(i.cssComments,"").match(i.cssImports)||[]).filter(function(e){return-1===n.indexOf(e)}),o.urls=o.rules.map(function(e){return e.replace(i.cssImports,"$1")}),o.absoluteUrls=o.urls.map(function(e){return hr(e,r)}),o.absoluteRules=o.rules.map(function(e,t){var n=o.urls[t],t=hr(o.absoluteUrls[t],r);return e.replace(n,t)}),o}n.length?n.forEach(function(o,i){var a=o.getAttribute("href"),e=o.getAttribute("rel"),e="link"===o.nodeName.toLowerCase()&&a&&e&&-1!==e.toLowerCase().indexOf("stylesheet"),t=!1!==f.skipDisabled&&o.disabled,n="style"===o.nodeName.toLowerCase();e&&!t?pr(a,{mimeType:"text/css",onBeforeSend:function(e,t,n){f.onBeforeSend(e,o,t)},onSuccess:function(e,t,n){var r=hr(a);l(e,i,o,r)},onError:function(e,t,n){c[i]="",f.onError(e,o,t),u()}}):n&&!t?(e=o.textContent,l(e=f.useCSSOM?Array.apply(null,o.sheet.cssRules).map(function(e){return e.cssText}).join(""):e,i,o,location.href)):(c[i]="",u())}):f.onComplete("",[])}function hr(e,t){var n=document.implementation.createHTMLDocument(""),r=n.createElement("base"),o=n.createElement("a");return n.head.appendChild(r),n.body.appendChild(o),r.href=t||document.baseURI||(document.querySelector("base")||{}).href||location.href,o.href=e,o.href}var vr=yr;function yr(e,t,n){var r=gr(e=e instanceof RegExp?br(e,n):e,t=t instanceof RegExp?br(t,n):t,n);return r&&{start:r[0],end:r[1],pre:n.slice(0,r[0]),body:n.slice(r[0]+e.length,r[1]),post:n.slice(r[1]+t.length)}}function br(e,t){t=t.match(e);return t?t[0]:null}function gr(e,t,n){var r,o,i,a,c,u=n.indexOf(e),l=n.indexOf(t,u+1),s=u;if(0<=u&&0<l){if(e===t)return[u,l];for(r=[],i=n.length;0<=s&&!c;)s==u?(r.push(s),u=n.indexOf(e,s+1)):1==r.length?c=[r.pop(),l]:((o=r.pop())<i&&(i=o,a=l),l=n.indexOf(t,s+1)),s=u<l&&0<=u?u:l;r.length&&(c=[i,a])}return c}function mr(o,e){var i=C({},{preserveStatic:!0,removeComments:!1},1<arguments.length&&void 0!==e?e:{});function a(e){throw new Error("CSS parse error: ".concat(e))}function c(e){e=e.exec(o);if(e)return o=o.slice(e[0].length),e}function u(){return c(/^{\s*/)}function l(){return c(/^}/)}function s(){c(/^\s*/)}function f(){for(var e,t=[];e=function(){if(s(),"/"===o[0]&&"*"===o[1]){for(var e=2;o[e]&&("*"!==o[e]||"/"!==o[e+1]);)e++;if(!o[e])return a("end of comment is missing");var t=o.slice(2,e);return o=o.slice(e+2),{type:"comment",comment:t}}}();)t.push(e);return i.removeComments?[]:t}function p(){for(s();"}"===o[0];)a("extra closing bracket");var e,t=c(/^(("(?:\\"|[^"])*"|'(?:\\'|[^'])*'|[^{])+)/);if(t)return t=t[0].trim(),/\/\*/.test(t)&&(t=t.replace(/\/\*([^*]|[\r\n]|(\*+([^*/]|[\r\n])))*\*\/+/g,"")),(e=/["']\w*,\w*["']/.test(t))&&(t=t.replace(/"(?:\\"|[^"])*"|'(?:\\'|[^'])*'/g,function(e){return e.replace(/,/g,"")})),t=/,/.test(t)?t.split(/\s*(?![^(]*\)),\s*/):[t],e?t.map(function(e){return e.replace(/\u200C/g,",")}):t}function d(){if(!u())return a("missing '{'");for(var e,t=f();e=function(){if("@"===o[0])return r();c(/^([;\s]*)+/);var e=/\/\*[^*]*\*+([^/*][^*]*\*+)*\//g;if(n=c(/^(\*?[-#/*\\\w.]+(\[[0-9a-z_-]+\])?)\s*/)){if(n=n[0].trim(),!c(/^:\s*/))return a("property missing ':'");var t=c(/^((?:\/\*.*?\*\/|'(?:\\'|.)*?'|"(?:\\"|.)*?"|\((\s*'(?:\\'|.)*?'|"(?:\\"|.)*?"|[^)]*?)\s*\)|[^};])+)/),n={type:"declaration",property:n.replace(e,""),value:t?t[0].replace(e,"").trim():""};return c(/^[;\s]*/),n}}();)t.push(e),t=t.concat(f());return l()?t:a("missing '}'")}function t(){if(n=c(/^@([-\w]+)?keyframes\s*/)){var e=n[1];if(!(n=c(/^([-\w]+)\s*/)))return a("@keyframes missing name");var t,n=n[1];if(!u())return a("@keyframes missing '{'");for(var r=f();t=function(){s();for(var e,t=[];e=c(/^((\d+\.\d+|\.\d+|\d+)%?|[a-z]+)\s*/);)t.push(e[1]),c(/^,\s*/);if(t.length)return{type:"keyframe",values:t,declarations:d()}}();)r.push(t),r=r.concat(f());return l()?{type:"keyframes",name:n,vendor:e,keyframes:r}:a("@keyframes missing '}'")}}function r(){var e;if(s(),"@"===o[0])return(e=function(){var e=c(/^@(import|charset|namespace)\s*([^;]+);/);if(e)return{type:e[1],name:e[2].trim()}}()||function(){if(c(/^@font-face\s*/))return{type:"font-face",declarations:d()}}()||function(){var e=c(/^@media([^{]+)*/);if(e)return{type:"media",media:(e[1]||"").trim(),rules:n()}}()||t()||function(){var e=c(/^@supports *([^{]+)/);if(e)return{type:"supports",supports:e[1].trim(),rules:n()}}()||function(){var e=c(/^@([-\w]+)?document *([^{]+)/);if(e)return{type:"document",document:e[2].trim(),vendor:e[1]?e[1].trim():null,rules:n()}}()||function(){var e=c(/^@custom-media\s+(--[^\s]+)\s*([^{;]+);/);if(e)return{type:"custom-media",name:e[1].trim(),media:e[2].trim()}}()||function(){if(c(/^@host\s*/))return{type:"host",rules:n()}}()||function(){if(c(/^@page */))return{type:"page",selectors:p()||[],declarations:d()}}()||function(){var e=c(/@(top|bottom|left|right)-(left|center|right|top|middle|bottom)-?(corner)?\s*/);if(e)return{type:"page-margin-box",name:"".concat(e[1],"-").concat(e[2])+(e[3]?"-".concat(e[3]):""),declarations:d()}}())&&!i.preserveStatic?(e.declarations?e.declarations.some(function(e){return/var\(/.test(e.value)}):(e.keyframes||e.rules||[]).some(function(e){return(e.declarations||[]).some(function(e){return/var\(/.test(e.value)})}))?e:{}:e}function n(e){if(!e&&!u())return a("missing '{'");for(var t,n=f();o.length&&(e||"}"!==o[0])&&(t=r()||function(){if(!i.preserveStatic){var e=vr("{","}",o);if(e){var t=/:(?:root|host)(?![.:#(])/.test(e.pre)&&/--\S*\s*:/.test(e.body),n=/var\(/.test(e.body);if(!t&&!n)return o=o.slice(e.end+1),{}}}var r=p()||[],t=i.preserveStatic?d():d().filter(function(e){var t=r.some(function(e){return/:(?:root|host)(?![.:#(])/.test(e)})&&/^--\S/.test(e.property),e=/var\(/.test(e.value);return t||e});return r.length||a("selector missing"),{type:"rule",selectors:r,declarations:t}}());)t.type&&n.push(t),n=n.concat(f());return e||l()?n:a("missing '}'")}return{type:"stylesheet",stylesheet:{rules:n(!0),errors:[]}}}function wr(e,t){var r=C({},{parseHost:!1,store:{},onWarning:function(){}},1<arguments.length&&void 0!==t?t:{}),n=new RegExp(":".concat(r.parseHost?"host":"root","$"));(e="string"==typeof e?mr(e,r):e).stylesheet.rules.forEach(function(e){"rule"===e.type&&e.selectors.some(function(e){return n.test(e)})&&e.declarations.forEach(function(e,t){var n=e.property,e=e.value;n&&0===n.indexOf("--")&&(r.store[n]=e)})}),r.store}function xr(e,t,n){var i=1<arguments.length&&void 0!==t?t:"",a=2<arguments.length?n:void 0,c={charset:function(e){return"@charset "+e.name+";"},comment:function(e){return 0===e.comment.indexOf("__CSSVARSPONYFILL")?"/*"+e.comment+"*/":""},"custom-media":function(e){return"@custom-media "+e.name+" "+e.media+";"},declaration:function(e){return e.property+":"+e.value+";"},document:function(e){return"@"+(e.vendor||"")+"document "+e.document+"{"+r(e.rules)+"}"},"font-face":function(e){return"@font-face{"+r(e.declarations)+"}"},host:function(e){return"@host{"+r(e.rules)+"}"},import:function(e){return"@import "+e.name+";"},keyframe:function(e){return e.values.join(",")+"{"+r(e.declarations)+"}"},keyframes:function(e){return"@"+(e.vendor||"")+"keyframes "+e.name+"{"+r(e.keyframes)+"}"},media:function(e){return"@media "+e.media+"{"+r(e.rules)+"}"},namespace:function(e){return"@namespace "+e.name+";"},page:function(e){return"@page "+(e.selectors.length?e.selectors.join(", "):"")+"{"+r(e.declarations)+"}"},"page-margin-box":function(e){return"@"+e.name+"{"+r(e.declarations)+"}"},rule:function(e){var t=e.declarations;if(t.length)return e.selectors.join(",")+"{"+r(t)+"}"},supports:function(e){return"@supports "+e.supports+"{"+r(e.rules)+"}"}};function r(e){for(var t="",n=0;n<e.length;n++){var r=e[n],o=(a&&a(r),c[r.type](r));o&&(t+=o,o.length&&r.selectors&&(t+=i))}return t}return r(e.stylesheet.rules)}yr.range=gr;var Or="--",Sr="var";function kr(e,t){var c=C({},{preserveStatic:!0,preserveVars:!1,variables:{},onWarning:function(){}},1<arguments.length&&void 0!==t?t:{});!function e(n,r){n.rules.forEach(function(t){t.rules?e(t,r):t.keyframes?t.keyframes.forEach(function(e){"keyframe"===e.type&&r(e.declarations,t)}):t.declarations&&r(t.declarations,n)})}((e="string"==typeof e?mr(e,c):e).stylesheet,function(e,t){for(var n=0;n<e.length;n++){var r=e[n],o=r.type,i=r.property,a=r.value;"declaration"===o&&(!c.preserveVars&&i&&0===i.indexOf(Or)?(e.splice(n,1),n--):-1!==a.indexOf(Sr+"(")&&(a=function o(e){var i=1<arguments.length&&void 0!==arguments[1]?arguments[1]:{};var a=2<arguments.length?arguments[2]:void 0;if(-1===e.indexOf("var("))return e;var t=vr("(",")",e);function n(e){var t=e.split(",")[0].replace(/[\s\n\t]/g,""),n=(e.match(/(?:\s*,\s*){1}(.*)?/)||[])[1],r=Object.prototype.hasOwnProperty.call(i.variables,t)?String(i.variables[t]):void 0,n=r||(n?String(n):void 0),e=a||e;return r||i.onWarning('variable "'.concat(t,'" is undefined')),n&&"undefined"!==n&&0<n.length?o(n,i,e):"var(".concat(e,")")}return t?"var"===t.pre.slice(-3)?0===t.body.trim().length?(i.onWarning("var() must contain a non-whitespace string"),e):t.pre.slice(0,-3)+n(t.body)+o(t.post,i):t.pre+"(".concat(o(t.body,i),")")+o(t.post,i):(-1!==e.indexOf("var(")&&i.onWarning('missing closing ")" in the value "'.concat(e,'"')),e)}(a,c))!==r.value&&(a=function(n){return(n.match(/calc\(([^)]+)\)/g)||[]).forEach(function(e){var t="calc".concat(e.split("calc").join(""));n=n.replace(e,t)}),n}(a),c.preserveVars?(e.splice(n,0,{type:o,property:i,value:a}),n++):r.value=a))}}),xr(e)}var Er="undefined"!=typeof window,jr=Er&&window.CSS&&window.CSS.supports&&window.CSS.supports("(--a: 0)"),Cr={group:0,job:0},Pr={rootElement:Er?document:null,shadowDOM:!1,include:"style,link[rel=stylesheet]",exclude:"",variables:{},onlyLegacy:!0,preserveStatic:!0,preserveVars:!1,silent:!1,updateDOM:!0,updateURLs:!0,watch:null,onBeforeSend:function(){},onError:function(){},onWarning:function(){},onSuccess:function(){},onComplete:function(){},onFinally:function(){}},P={cssComments:/\/\*[\s\S]+?\*\//g,cssKeyframes:/@(?:-\w*-)?keyframes/,cssMediaQueries:/@media[^{]+\{([\s\S]+?})\s*}/g,cssUrls:/url\((?!['"]?(?:data|http|\/\/):)['"]?([^'")]*)['"]?\)/g,cssVarDeclRules:/(?::(?:root|host)(?![.:#(])[\s,]*[^{]*{\s*[^}]*})/g,cssVarDecls:/(?:[\s;]*)(-{2}\w[\w-]*)(?:\s*:\s*)([^;]*);/g,cssVarFunc:/var\(\s*--[\w-]/,cssVars:/(?:(?::(?:root|host)(?![.:#(])[\s,]*[^{]*{\s*[^;]*;*\s*)|(?:var\(\s*))(--[^:)]+)(?:\s*[:)])/},T={dom:{},job:{},user:{}},Ar=!1,g=null,Rr=0,_r=null,Ir=!1;
|
|
122
|
+
*/){var t=1<arguments.length&&void 0!==t?t:{},o={mimeType:t.mimeType||null,onBeforeSend:t.onBeforeSend||Function.prototype,onSuccess:t.onSuccess||Function.prototype,onError:t.onError||Function.prototype,onComplete:t.onComplete||Function.prototype},r=Array.isArray(e)?e:[e],i=Array.apply(null,Array(r.length)).map(function(e){return null});function a(e){var t="string"==typeof e,e=t&&"<"===e.trim().charAt(0);return t&&!e}function c(e,t){o.onError(e,r[t],t)}function u(e,t){var n=o.onSuccess(e,r[t],t);i[t]=e=!1===n?"":n||e,-1===i.indexOf(null)&&o.onComplete(i)}var l=document.createElement("a");r.forEach(function(e,t){var n,r;l.setAttribute("href",e),l.href=String(l.href),Boolean(document.all&&!window.atob)&&l.host.split(":")[0]!==location.host.split(":")[0]?l.protocol===location.protocol?((n=new XDomainRequest).open("GET",e),n.timeout=0,n.onprogress=Function.prototype,n.ontimeout=Function.prototype,n.onload=function(){var e=n.responseText;a(e)?u(e,t):c(n,t)},n.onerror=function(e){c(n,t)},setTimeout(function(){n.send()},0)):(console.warn("Internet Explorer 9 Cross-Origin (CORS) requests must use the same protocol (".concat(e,")")),c(null,t)):((r=new XMLHttpRequest).open("GET",e),o.mimeType&&r.overrideMimeType&&r.overrideMimeType(o.mimeType),o.onBeforeSend(r,e,t),r.onreadystatechange=function(){var e;4===r.readyState&&(e=r.responseText,r.status<400&&a(e)||0===r.status&&a(e)?u(e,t):c(r,t))},r.send())})}function dr(e){var i={cssComments:/\/\*[\s\S]+?\*\//g,cssImports:/(?:@import\s*)(?:url\(\s*)?(?:['"])([^'"]*)(?:['"])(?:\s*\))?(?:[^;]*;)/g},f={rootElement:e.rootElement||document,include:e.include||'style,link[rel="stylesheet"]',exclude:e.exclude||null,filter:e.filter||null,skipDisabled:!1!==e.skipDisabled,useCSSOM:e.useCSSOM||!1,onBeforeSend:e.onBeforeSend||Function.prototype,onSuccess:e.onSuccess||Function.prototype,onError:e.onError||Function.prototype,onComplete:e.onComplete||Function.prototype},n=Array.apply(null,f.rootElement.querySelectorAll(f.include)).filter(function(e){return e=e,t=f.exclude,!(e.matches||e.matchesSelector||e.webkitMatchesSelector||e.mozMatchesSelector||e.msMatchesSelector||e.oMatchesSelector).call(e,t);var t}),c=Array.apply(null,Array(n.length)).map(function(e){return null});function u(){var e;-1===c.indexOf(null)&&(c.reduce(function(e,t,n){return""===t&&e.push(n),e},[]).reverse().forEach(function(t){return[n,c].forEach(function(e){return e.splice(t,1)})}),e=c.join(""),f.onComplete(e,c,n))}function l(e,n,r,t){var o=f.onSuccess(e,r,t);!function r(o,i,a,c){var u=4<arguments.length&&void 0!==arguments[4]?arguments[4]:[];var l=5<arguments.length&&void 0!==arguments[5]?arguments[5]:[];var s=p(o,a,l);s.rules.length?pr(s.absoluteUrls,{onBeforeSend:function(e,t,n){f.onBeforeSend(e,i,t)},onSuccess:function(n,e,t){var r=f.onSuccess(n,i,e),o=p(n=!1===r?"":r||n,e,l);return o.rules.forEach(function(e,t){n=n.replace(e,o.absoluteRules[t])}),n},onError:function(e,t,n){u.push({xhr:e,url:t}),l.push(s.rules[n]),r(o,i,a,c,u,l)},onComplete:function(e){e.forEach(function(e,t){o=o.replace(s.rules[t],e)}),r(o,i,a,c,u,l)}}):c(o,u)}(e=void 0!==o&&!1===Boolean(o)?"":o||e,r,t,function(e,t){null===c[n]&&(t.forEach(function(e){return f.onError(e.xhr,r,e.url)}),!f.filter||f.filter.test(e)?c[n]=e:c[n]="",u())})}function p(e,r,t){var n=2<arguments.length&&void 0!==t?t:[],o={};return o.rules=(e.replace(i.cssComments,"").match(i.cssImports)||[]).filter(function(e){return-1===n.indexOf(e)}),o.urls=o.rules.map(function(e){return e.replace(i.cssImports,"$1")}),o.absoluteUrls=o.urls.map(function(e){return hr(e,r)}),o.absoluteRules=o.rules.map(function(e,t){var n=o.urls[t],t=hr(o.absoluteUrls[t],r);return e.replace(n,t)}),o}n.length?n.forEach(function(o,i){var a=o.getAttribute("href"),e=o.getAttribute("rel"),e="link"===o.nodeName.toLowerCase()&&a&&e&&-1!==e.toLowerCase().indexOf("stylesheet"),t=!1!==f.skipDisabled&&o.disabled,n="style"===o.nodeName.toLowerCase();e&&!t?pr(a,{mimeType:"text/css",onBeforeSend:function(e,t,n){f.onBeforeSend(e,o,t)},onSuccess:function(e,t,n){var r=hr(a);l(e,i,o,r)},onError:function(e,t,n){c[i]="",f.onError(e,o,t),u()}}):n&&!t?(e=o.textContent,l(e=f.useCSSOM?Array.apply(null,o.sheet.cssRules).map(function(e){return e.cssText}).join(""):e,i,o,location.href)):(c[i]="",u())}):f.onComplete("",[])}function hr(e,t){var n=document.implementation.createHTMLDocument(""),r=n.createElement("base"),o=n.createElement("a");return n.head.appendChild(r),n.body.appendChild(o),r.href=t||document.baseURI||(document.querySelector("base")||{}).href||location.href,o.href=e,o.href}var vr=yr;function yr(e,t,n){var r=gr(e=e instanceof RegExp?br(e,n):e,t=t instanceof RegExp?br(t,n):t,n);return r&&{start:r[0],end:r[1],pre:n.slice(0,r[0]),body:n.slice(r[0]+e.length,r[1]),post:n.slice(r[1]+t.length)}}function br(e,t){t=t.match(e);return t?t[0]:null}function gr(e,t,n){var r,o,i,a,c,u=n.indexOf(e),l=n.indexOf(t,u+1),s=u;if(0<=u&&0<l){if(e===t)return[u,l];for(r=[],i=n.length;0<=s&&!c;)s==u?(r.push(s),u=n.indexOf(e,s+1)):1==r.length?c=[r.pop(),l]:((o=r.pop())<i&&(i=o,a=l),l=n.indexOf(t,s+1)),s=u<l&&0<=u?u:l;r.length&&(c=[i,a])}return c}function mr(o,e){var i=C({},{preserveStatic:!0,removeComments:!1},1<arguments.length&&void 0!==e?e:{});function a(e){throw new Error("CSS parse error: ".concat(e))}function c(e){e=e.exec(o);if(e)return o=o.slice(e[0].length),e}function u(){return c(/^{\s*/)}function l(){return c(/^}/)}function s(){c(/^\s*/)}function f(){for(var e,t=[];e=function(){if(s(),"/"===o[0]&&"*"===o[1]){for(var e=2;o[e]&&("*"!==o[e]||"/"!==o[e+1]);)e++;if(!o[e])return a("end of comment is missing");var t=o.slice(2,e);return o=o.slice(e+2),{type:"comment",comment:t}}}();)t.push(e);return i.removeComments?[]:t}function p(){for(s();"}"===o[0];)a("extra closing bracket");var e,t=c(/^(("(?:\\"|[^"])*"|'(?:\\'|[^'])*'|[^{])+)/);if(t)return t=t[0].trim(),/\/\*/.test(t)&&(t=t.replace(/\/\*([^*]|[\r\n]|(\*+([^*/]|[\r\n])))*\*\/+/g,"")),(e=/["']\w*,\w*["']/.test(t))&&(t=t.replace(/"(?:\\"|[^"])*"|'(?:\\'|[^'])*'/g,function(e){return e.replace(/,/g,"")})),t=/,/.test(t)?t.split(/\s*(?![^(]*\)),\s*/):[t],e?t.map(function(e){return e.replace(/\u200C/g,",")}):t}function d(){if(!u())return a("missing '{'");for(var e,t=f();e=function(){if("@"===o[0])return r();c(/^([;\s]*)+/);var e=/\/\*[^*]*\*+([^/*][^*]*\*+)*\//g;if(n=c(/^(\*?[-#/*\\\w.]+(\[[0-9a-z_-]+\])?)\s*/)){if(n=n[0].trim(),!c(/^:\s*/))return a("property missing ':'");var t=c(/^((?:\/\*.*?\*\/|'(?:\\'|.)*?'|"(?:\\"|.)*?"|\((\s*'(?:\\'|.)*?'|"(?:\\"|.)*?"|[^)]*?)\s*\)|[^};])+)/),n={type:"declaration",property:n.replace(e,""),value:t?t[0].replace(e,"").trim():""};return c(/^[;\s]*/),n}}();)t.push(e),t=t.concat(f());return l()?t:a("missing '}'")}function t(){if(n=c(/^@([-\w]+)?keyframes\s*/)){var e=n[1];if(!(n=c(/^([-\w]+)\s*/)))return a("@keyframes missing name");var t,n=n[1];if(!u())return a("@keyframes missing '{'");for(var r=f();t=function(){s();for(var e,t=[];e=c(/^((\d+\.\d+|\.\d+|\d+)%?|[a-z]+)\s*/);)t.push(e[1]),c(/^,\s*/);if(t.length)return{type:"keyframe",values:t,declarations:d()}}();)r.push(t),r=r.concat(f());return l()?{type:"keyframes",name:n,vendor:e,keyframes:r}:a("@keyframes missing '}'")}}function r(){var e;if(s(),"@"===o[0])return(e=function(){var e=c(/^@(import|charset|namespace)\s*([^;]+);/);if(e)return{type:e[1],name:e[2].trim()}}()||function(){if(c(/^@font-face\s*/))return{type:"font-face",declarations:d()}}()||function(){var e=c(/^@media([^{]+)*/);if(e)return{type:"media",media:(e[1]||"").trim(),rules:n()}}()||t()||function(){var e=c(/^@supports *([^{]+)/);if(e)return{type:"supports",supports:e[1].trim(),rules:n()}}()||function(){var e=c(/^@([-\w]+)?document *([^{]+)/);if(e)return{type:"document",document:e[2].trim(),vendor:e[1]?e[1].trim():null,rules:n()}}()||function(){var e=c(/^@custom-media\s+(--[^\s]+)\s*([^{;]+);/);if(e)return{type:"custom-media",name:e[1].trim(),media:e[2].trim()}}()||function(){if(c(/^@host\s*/))return{type:"host",rules:n()}}()||function(){if(c(/^@page */))return{type:"page",selectors:p()||[],declarations:d()}}()||function(){var e=c(/@(top|bottom|left|right)-(left|center|right|top|middle|bottom)-?(corner)?\s*/);if(e)return{type:"page-margin-box",name:"".concat(e[1],"-").concat(e[2])+(e[3]?"-".concat(e[3]):""),declarations:d()}}())&&!i.preserveStatic?(e.declarations?e.declarations.some(function(e){return/var\(/.test(e.value)}):(e.keyframes||e.rules||[]).some(function(e){return(e.declarations||[]).some(function(e){return/var\(/.test(e.value)})}))?e:{}:e}function n(e){if(!e&&!u())return a("missing '{'");for(var t,n=f();o.length&&(e||"}"!==o[0])&&(t=r()||function(){if(!i.preserveStatic){var e=vr("{","}",o);if(e){var t=/:(?:root|host)(?![.:#(])/.test(e.pre)&&/--\S*\s*:/.test(e.body),n=/var\(/.test(e.body);if(!t&&!n)return o=o.slice(e.end+1),{}}}var r=p()||[],t=i.preserveStatic?d():d().filter(function(e){var t=r.some(function(e){return/:(?:root|host)(?![.:#(])/.test(e)})&&/^--\S/.test(e.property),e=/var\(/.test(e.value);return t||e});return r.length||a("selector missing"),{type:"rule",selectors:r,declarations:t}}());)t.type&&n.push(t),n=n.concat(f());return e||l()?n:a("missing '}'")}return{type:"stylesheet",stylesheet:{rules:n(!0),errors:[]}}}function wr(e,t){var r=C({},{parseHost:!1,store:{},onWarning:function(){}},1<arguments.length&&void 0!==t?t:{}),n=new RegExp(":".concat(r.parseHost?"host":"root","$"));(e="string"==typeof e?mr(e,r):e).stylesheet.rules.forEach(function(e){"rule"===e.type&&e.selectors.some(function(e){return n.test(e)})&&e.declarations.forEach(function(e,t){var n=e.property,e=e.value;n&&0===n.indexOf("--")&&(r.store[n]=e)})}),r.store}function xr(e,t,n){var i=1<arguments.length&&void 0!==t?t:"",a=2<arguments.length?n:void 0,c={charset:function(e){return"@charset "+e.name+";"},comment:function(e){return 0===e.comment.indexOf("__CSSVARSPONYFILL")?"/*"+e.comment+"*/":""},"custom-media":function(e){return"@custom-media "+e.name+" "+e.media+";"},declaration:function(e){return e.property+":"+e.value+";"},document:function(e){return"@"+(e.vendor||"")+"document "+e.document+"{"+r(e.rules)+"}"},"font-face":function(e){return"@font-face{"+r(e.declarations)+"}"},host:function(e){return"@host{"+r(e.rules)+"}"},import:function(e){return"@import "+e.name+";"},keyframe:function(e){return e.values.join(",")+"{"+r(e.declarations)+"}"},keyframes:function(e){return"@"+(e.vendor||"")+"keyframes "+e.name+"{"+r(e.keyframes)+"}"},media:function(e){return"@media "+e.media+"{"+r(e.rules)+"}"},namespace:function(e){return"@namespace "+e.name+";"},page:function(e){return"@page "+(e.selectors.length?e.selectors.join(", "):"")+"{"+r(e.declarations)+"}"},"page-margin-box":function(e){return"@"+e.name+"{"+r(e.declarations)+"}"},rule:function(e){var t=e.declarations;if(t.length)return e.selectors.join(",")+"{"+r(t)+"}"},supports:function(e){return"@supports "+e.supports+"{"+r(e.rules)+"}"}};function r(e){for(var t="",n=0;n<e.length;n++){var r=e[n],o=(a&&a(r),c[r.type](r));o&&(t+=o,o.length&&r.selectors&&(t+=i))}return t}return r(e.stylesheet.rules)}yr.range=gr;var Or="--",Sr="var";function kr(e,t){var c=C({},{preserveStatic:!0,preserveVars:!1,variables:{},onWarning:function(){}},1<arguments.length&&void 0!==t?t:{});!function e(n,r){n.rules.forEach(function(t){t.rules?e(t,r):t.keyframes?t.keyframes.forEach(function(e){"keyframe"===e.type&&r(e.declarations,t)}):t.declarations&&r(t.declarations,n)})}((e="string"==typeof e?mr(e,c):e).stylesheet,function(e,t){for(var n=0;n<e.length;n++){var r=e[n],o=r.type,i=r.property,a=r.value;"declaration"===o&&(!c.preserveVars&&i&&0===i.indexOf(Or)?(e.splice(n,1),n--):-1!==a.indexOf(Sr+"(")&&(a=function o(e){var i=1<arguments.length&&void 0!==arguments[1]?arguments[1]:{};var a=2<arguments.length?arguments[2]:void 0;if(-1===e.indexOf("var("))return e;var t=vr("(",")",e);function n(e){var t=e.split(",")[0].replace(/[\s\n\t]/g,""),n=(e.match(/(?:\s*,\s*){1}(.*)?/)||[])[1],r=Object.prototype.hasOwnProperty.call(i.variables,t)?String(i.variables[t]):void 0,n=r||(n?String(n):void 0),e=a||e;return r||i.onWarning('variable "'.concat(t,'" is undefined')),n&&"undefined"!==n&&0<n.length?o(n,i,e):"var(".concat(e,")")}return t?"var"===t.pre.slice(-3)?0===t.body.trim().length?(i.onWarning("var() must contain a non-whitespace string"),e):t.pre.slice(0,-3)+n(t.body)+o(t.post,i):t.pre+"(".concat(o(t.body,i),")")+o(t.post,i):(-1!==e.indexOf("var(")&&i.onWarning('missing closing ")" in the value "'.concat(e,'"')),e)}(a,c))!==r.value&&(a=function(n){return(n.match(/calc\(([^)]+)\)/g)||[]).forEach(function(e){var t="calc".concat(e.split("calc").join(""));n=n.replace(e,t)}),n}(a),c.preserveVars?(e.splice(n,0,{type:o,property:i,value:a}),n++):r.value=a))}}),xr(e)}var Er="undefined"!=typeof window,jr=Er&&window.CSS&&window.CSS.supports&&window.CSS.supports("(--a: 0)"),Cr={group:0,job:0},Pr={rootElement:Er?document:null,shadowDOM:!1,include:"style,link[rel=stylesheet]",exclude:"",variables:{},onlyLegacy:!0,preserveStatic:!0,preserveVars:!1,silent:!1,updateDOM:!0,updateURLs:!0,watch:null,onBeforeSend:function(){},onError:function(){},onWarning:function(){},onSuccess:function(){},onComplete:function(){},onFinally:function(){}},I={cssComments:/\/\*[\s\S]+?\*\//g,cssKeyframes:/@(?:-\w*-)?keyframes/,cssMediaQueries:/@media[^{]+\{([\s\S]+?})\s*}/g,cssUrls:/url\((?!['"]?(?:data|http|\/\/):)['"]?([^'")]*)['"]?\)/g,cssVarDeclRules:/(?::(?:root|host)(?![.:#(])[\s,]*[^{]*{\s*[^}]*})/g,cssVarDecls:/(?:[\s;]*)(-{2}\w[\w-]*)(?:\s*:\s*)([^;]*);/g,cssVarFunc:/var\(\s*--[\w-]/,cssVars:/(?:(?::(?:root|host)(?![.:#(])[\s,]*[^{]*{\s*[^;]*;*\s*)|(?:var\(\s*))(--[^:)]+)(?:\s*[:)])/},T={dom:{},job:{},user:{}},Ar=!1,g=null,Rr=0,_r=null,Ir=!1;
|
|
123
123
|
/**
|
|
124
124
|
* Fetches, parses, and transforms CSS custom properties from specified
|
|
125
125
|
* <style> and <link> elements into static values, then appends a new <style>
|
|
@@ -212,5 +212,5 @@ PERFORMANCE OF THIS SOFTWARE.
|
|
|
212
212
|
* onComplete(cssText, styleNode, cssVariables, benchmark) {},
|
|
213
213
|
* onFinally(hasChanged, hasNativeSupport, benchmark)
|
|
214
214
|
* });
|
|
215
|
-
*/function Tr(){var a,n,r,o=0<arguments.length&&void 0!==arguments[0]?arguments[0]:{},i="cssVars(): ",w=C({},Pr,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 O(e){!w.silent&&window.console&&console.warn("".concat(i).concat(e)),w.onWarning(e)}function S(e){w.onFinally(Boolean(e),jr,Dr()-w.__benchmark)}if(Er){if(w.watch)return w.watch=Pr.watch,a=w,window.MutationObserver&&(g&&(g.disconnect(),g=null),(g=new MutationObserver(function(e){e.some(function(e){return function(e){var t=!1;{var n,r,o,i;"attributes"===e.type&&u(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&&Lr(a.rootElement,!0),t=!0))}return t}(e)||function(e){var t=!1;{var n;"childList"===e.type&&(n=l(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=l(e)&&P.cssVars.test(e.textContent);return!t&&(u(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&&Lr(a.rootElement,!0),e&&e.parentNode.removeChild(e)),r}));return t}(e)})&&Tr(a)})).observe(document.documentElement,{attributes:!0,attributeFilter:["disabled","href"],childList:!0,subtree:!0})),void Tr(w);if(!1===w.watch&&g&&(g.disconnect(),g=null),!w.__benchmark){if(Ar===w.rootElement)return void function(e){var t=1<arguments.length&&void 0!==arguments[1]?arguments[1]:100;clearTimeout(_r),_r=setTimeout(function(){e.__benchmark=null,Tr(e)},t)}(o);var e=[].slice.call(w.rootElement.querySelectorAll('[data-cssvars]:not([data-cssvars="out"])'));w.__benchmark=Dr(),w.exclude=[g?'[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",""))}),g||([].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)}),Rr&&e.length<Rr&&(Rr=e.length,T.dom={}))}"loading"!==document.readyState?jr&&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)})),S(n)):!Ir&&(w.shadowDOM||w.rootElement.shadowRoot||w.rootElement.host)?dr({rootElement:Pr.rootElement,include:Pr.include,exclude:w.exclude,skipDisabled:!1,onSuccess:function(e,t,n){return(!(t.sheet||{}).disabled||t.__cssVars)&&((e=e.replace(P.cssComments,"").replace(P.cssMediaQueries,"")).match(P.cssVarDeclRules)||[]).join("")||!1},onComplete:function(e,t,n){wr(e,{store:T.dom,onWarning:O}),Ir=!0,Tr(w)}}):(Ar=w.rootElement,dr({rootElement:w.rootElement,include:w.include,exclude:w.exclude,skipDisabled:!1,onBeforeSend:w.onBeforeSend,onError:function(e,t,n){var n=e.responseURL||Mr(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){if((t.sheet||{}).disabled&&!t.__cssVars)return!1;var r,o,i="link"===t.nodeName.toLowerCase(),a="style"===t.nodeName.toLowerCase()&&e!==t.textContent,t=w.onSuccess(e,t,n);return e=void 0!==t&&!1===Boolean(t)?"":t||e,w.updateURLs&&(i||a)&&(o=n,((r=e).replace(P.cssComments,"").match(P.cssUrls)||[]).forEach(function(e){var t=e.replace(P.cssUrls,"$1"),n=Mr(t,o);r=r.replace(e,e.replace(t,n))}),e=r),e},onComplete:function(e,l){var t=2<arguments.length&&void 0!==arguments[2]?arguments[2]:[],n=C({},T.dom,T.user);if(T.job={},t.forEach(function(t,e){e=l[e];if(t.__cssVars=t.__cssVars||{},t.__cssVars.text=e,P.cssVars.test(e))try{var n=mr(e,{preserveStatic:w.preserveStatic,removeComments:!0});wr(n,{parseHost:Boolean(w.rootElement.host),store:T.dom,onWarning:O}),t.__cssVars.tree=n}catch(e){x(e.message,t)}}),C(T.job,T.dom),w.updateDOM?(C(T.user,w.variables),C(T.job,T.user)):(C(T.job,T.user,w.variables),C(n,w.variables)),0<Cr.job&&Boolean(Object.keys(T.job).length>Object.keys(n).length||Boolean(Object.keys(n).length&&Object.keys(T.job).some(function(e){return T.job[e]!==n[e]}))))Lr(w.rootElement),Tr(w);else{var s=[],f=[],p=!1;if(w.updateDOM&&Cr.job++,t.forEach(function(t,e){var n=!t.__cssVars.tree;if(t.__cssVars.tree)try{kr(t.__cssVars.tree,C({},w,{variables:T.job,onWarning:O}));var r,o,i,a,c,u=xr(t.__cssVars.tree);w.updateDOM?(r=l[e],o=P.cssVarFunc.test(r),t.getAttribute("data-cssvars")||t.setAttribute("data-cssvars","src"),u.length&&o&&(i=t.getAttribute("data-cssvars-group")||++Cr.group,a=u.replace(/\s/g,""),c=w.rootElement.querySelector('[data-cssvars="out"][data-cssvars-group="'.concat(i,'"]'))||document.createElement("style"),p=p||P.cssKeyframes.test(u),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",Cr.job),e.setAttribute("data-cssvars-group",i)}),c.textContent=u,s.push(u),f.push(c),c.parentNode||t.parentNode.insertBefore(c,t.nextSibling)))):t.textContent.replace(/\s/g,"")!==u&&s.push(u)}catch(e){x(e.message,t)}n&&t.setAttribute("data-cssvars","skip"),t.hasAttribute("data-cssvars-job")||t.setAttribute("data-cssvars-job",Cr.job)}),Rr=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")&&Tr(C({},w,{rootElement:r.shadowRoot}));if(w.updateDOM&&p){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=t.getElementsByTagName("*"),u=[],d="__CSSVARSPONYFILL-KEYFRAMES__",h=0,v=c.length;h<v;h++){var y=c[h];"none"!==getComputedStyle(y)[a]&&(y.style[a]+=d,u.push(y))}document.body.offsetHeight;for(var b=0,g=u.length;b<g;b++){var m=u[b].style;m[a]=m[a].replace(d,"")}}}Ar=!1,w.onComplete(s.join(""),f,JSON.parse(JSON.stringify(T.job)),Dr()-w.__benchmark),S(f.length)}}})):document.addEventListener("DOMContentLoaded",function e(t){Tr(o),document.removeEventListener("DOMContentLoaded",e)})}function c(e){var t=u(e)&&e.hasAttribute("disabled"),e=(e.sheet||{}).disabled;return t||e}function u(e){return"link"===e.nodeName.toLowerCase()&&-1!==(e.getAttribute("rel")||"").indexOf("stylesheet")}function l(e){return"style"===e.nodeName.toLowerCase()}}function Mr(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 Dr(){return Er&&(window.performance||{}).now?window.performance.now():(new Date).getTime()}function Lr(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&&(T.dom={})}Tr.reset=function(){for(var e in Cr.job=0,Cr.group=0,Ar=!1,g&&(g.disconnect(),g=null),Rr=0,_r=null,Ir=!1,T)T[e]={}};var Nr=Tr,Hr=t(67),Fr=t.n(Hr);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 m(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){x()(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}var Br=new Map;function Vr(e){var i=Object(d.useRef)(null),t=e.row,a=e.rowIndex,n=e.domHelper,e=e.renderDetail,c=n.artTable;return Object(d.useEffect)(function(){function e(e){return".".concat(e," .").concat(E.tableRow,'[data-rowindex="').concat(a,'"]')}var t=i.current&&i.current.getBoundingClientRect(),n=c.querySelector(e(E.tableBody)),r=c.querySelector(e(E.fixedLeft)),o=c.querySelector(e(E.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(d.useEffect)(function(){var e=n.getRowTop(a)||0;i.current.style.transform="translateY(".concat(e+"px",")")}),w.a.createElement("div",{ref:i,className:E.rowDetailItem},e(t,a))}function Kr(e){return Br.get(e)}function Wr(e,t){var n,r="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!r){if(Array.isArray(e)||(r=function(e,t){if(e){if("string"==typeof e)return $r(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Map"===(n="Object"===n&&e.constructor?e.constructor.name:n)||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?$r(e,t):void 0}}(e))||t&&e&&"number"==typeof e.length)return r&&(e=r),n=0,{s:t=function(){},n:function(){return n>=e.length?{done:!0}:{done:!1,value:e[n++]}},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.")}var o,i=!0,a=!1;return{s:function(){r=r.call(e)},n:function(){var e=r.next();return i=e.done,e},e:function(e){a=!0,o=e},f:function(){try{i||null==r.return||r.return()}finally{if(a)throw o}}}}function $r(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 Gr(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=J()(n);return e=r?(e=J()(this).constructor,Reflect.construct(t,arguments,e)):t.apply(this,arguments),X()(this,e)}}Nt.isIE&&(Br.set("header",function(e,t){var n=t.stickyTop,t=t.hasHeader,r=e.flat,o=e.nested,i=e.visible,a=e.hasLockColumn,c=r.left,r=r.right,u=o.left,l=o.right,o=kn(o.full)+1;return w.a.createElement("div",{className:S()(E.tableHeader)},w.a.createElement("div",{className:S()(E.tableHeaderMain,"no-scrollbar"),style:{top:0===n?void 0:n,display:t?void 0:"none"}},w.a.createElement(Tn,{info:e,theaderPosition:a?"center":void 0})),0<c.length?w.a.createElement("div",{className:E.fixedLeft},w.a.createElement(Tn,{info:m(m({},e),{},{flat:{center:c,full:c,left:[],right:[]},nested:{center:u,full:u,left:[],right:[]},visible:i.slice(0,c.length),horizontalRenderRange:{leftIndex:0,leftBlank:0,rightIndex:c.length,rightBlank:0}}),theaderPosition:"left",rowCount:o})):null,0<r.length?w.a.createElement("div",{className:E.fixedRight},w.a.createElement(Tn,{info:m(m({},e),{},{flat:{center:r,full:r,left:[],right:[]},nested:{center:l,full:l,left:[],right:[]},visible:i.slice(i.length-r.length),horizontalRenderRange:{leftIndex:0,leftBlank:0,rightIndex:r.length,rightBlank:0}}),theaderPosition:"right",rowCount:o})):null)}),Br.set("body",function(e,t,n){var r=t.dataSource,o=t.getRowProps,t=t.primaryKey,i=(u=e.verticalRenderRange).topIndex,a=u.bottomBlank,c=u.topBlank,u=u.bottomIndex,l=e.flat,s=e.visible,f=e.hasLockColumn,p=l.left,l=l.right,d={first:0,offset:i,limit:u,last:r.length-1},o={getRowProps:Xt(o,n.rowProps),primaryKey:t,data:r.slice(i,u)},t={right:-n.stickyRightOffset};return w.a.createElement("div",{className:S()(E.tableBody,E.horizontalScrollContainer)},w.a.createElement("div",{className:E.virtual,tabIndex:-1},0<c&&w.a.createElement("div",{key:"top-blank",className:S()(E.virtualBlank,"top"),style:{height:c}}),w.a.createElement(ur,O()({tbodyHtmlTag:"tbody"},o,{tbodyPosition:f?"center":void 0,horizontalRenderInfo:e,verticalRenderInfo:d})),0<a&&w.a.createElement("div",{key:"bottom-blank",className:S()(E.virtualBlank,"bottom"),style:{height:a}})),0<p.length?w.a.createElement("div",{className:E.fixedLeft},0<c&&w.a.createElement("div",{key:"top-blank",className:S()(E.virtualBlank,"top"),style:{height:c}}),w.a.createElement(ur,O()({tbodyHtmlTag:"tbody"},o,{tbodyPosition:"left",horizontalRenderInfo:m(m({},e),{},{flat:{center:p,full:p,left:[],right:[]},visible:s.slice(0,p.length)}),verticalRenderInfo:d})),0<a&&w.a.createElement("div",{key:"bottom-blank",className:S()(E.virtualBlank,"bottom"),style:{height:a}})):null,0<l.length?w.a.createElement("div",{className:E.fixedRight,style:t},0<c&&w.a.createElement("div",{key:"top-blank",className:S()(E.virtualBlank,"top"),style:{height:c}}),w.a.createElement(ur,O()({tbodyHtmlTag:"tbody"},o,{tbodyPosition:"right",stickyRightOffset:n.stickyRightOffset,horizontalRenderInfo:m(m({},e),{},{flat:{center:l,full:l,left:[],right:[]},visible:s.slice(s.length-l.length)}),verticalRenderInfo:d})),0<a&&w.a.createElement("div",{key:"bottom-blank",className:S()(E.virtualBlank,"bottom"),style:{height:a}})):null,w.a.createElement("div",{className:E.rowDetailContainer}))}),Br.set("footer",function(e,t,n){var r=void 0===(r=t.footerDataSource)?[]:r,o=t.getRowProps,i=t.primaryKey,t=t.stickyBottom,o=Xt(o,n.rowProps),n=e.flat,a=e.visible,c=e.hasLockColumn,u=n.left,n=n.right,o={data:r,getRowProps:o,primaryKey:i,verticalRenderInfo:{offset:0,first:0,last:r.length-1,limit:1/0}};return w.a.createElement("div",{className:S()(E.tableFooter),style:{bottom:0===t?void 0:t}},w.a.createElement("div",{className:S()(E.tableFooterMain,E.horizontalScrollContainer)},w.a.createElement(ur,O()({tbodyHtmlTag:"tfoot"},o,{tbodyPosition:c?"center":void 0,horizontalRenderInfo:e}))),0<u.length?w.a.createElement("div",{className:E.fixedLeft},w.a.createElement(ur,O()({tbodyHtmlTag:"tfoot"},o,{tbodyPosition:"left",horizontalRenderInfo:m(m({},e),{},{flat:{center:u,full:u,left:[],right:[]},visible:a.slice(0,u.length)})}))):null,0<n.length?w.a.createElement("div",{className:E.fixedRight},w.a.createElement(ur,O()({tbodyHtmlTag:"tfoot"},o,{tbodyPosition:"right",horizontalRenderInfo:m(m({},e),{},{flat:{center:n,full:n,left:[],right:[]},visible:a.slice(a.length-n.length)})}))):null)}),Br.set("rowDetail",function(e){var t=e.domHelper;if(t)return t=(t=t.artTable)&&t.querySelector(".".concat(E.rowDetailContainer)),Fr.a.createPortal(w.a.createElement(Vr,e),t)}));var Yr=!1;var Ur=function(e){q()(n,e);var t=Gr(n);function n(e){var d;return i()(this,n),d=t.call(this,e),x()(o()(d),"rowHeightManager",nr(d.props.dataSource.length,d.props.estimatedRowHeight)),x()(o()(d),"artTableWrapperRef",w.a.createRef()),x()(o()(d),"domHelper",void 0),x()(o()(d),"rootSubscription",new s),x()(o()(d),"lastInfo",void 0),x()(o()(d),"props$",void 0),x()(o()(d),"hasScrollY",!1),x()(o()(d),"resizeObserver",void 0),x()(o()(d),"resizeSubject",new ye),x()(o()(d),"offsetY",0),x()(o()(d),"handleRowMouseEnter",function(e){e=d.domHelper.getRowNodeListByEvent(e);e&&e.forEach(function(e){e.classList.add("row-hover")})}),x()(o()(d),"handleRowMouseLeave",function(e){e=d.domHelper.getRowNodeListByEvent(e);e&&e.forEach(function(e){e.classList.remove("row-hover")})}),x()(o()(d),"renderTableBody",function(e){var t,n=d.props,r=n.dataSource,o=n.getRowProps,i=n.primaryKey,a=n.isLoading,c=n.emptyCellHeight,n=(n.footerDataSource,S()(E.tableBody,E.horizontalScrollContainer)),u=Nt.isIE||Nt.isEdge?{overflow:"hidden"}:{};if(0===r.length)return l=(s=d.props).components,t=s.emptyContent,null==(s=l.EmptyContent)&&null!=t&&(Yr||(Yr=!0,jt.warn("BaseTable props.emptyContent 已经过时,请使用 props.components.EmptyContent 来自定义数据为空时的表格表现")),s=function(){return t}),w.a.createElement("div",{className:S()(n,"empty")},w.a.createElement("div",{className:E.virtual,tabIndex:-1,style:u},w.a.createElement(xn,{descriptors:e.visible,isLoading:a,EmptyContent:s,emptyCellHeight:c})));var l=e.verticalRenderRange,a=l.topIndex,s=l.bottomBlank,c=l.topBlank,l=l.bottomIndex,f=d.hasScrollY?d.getScrollBarWidth():0,p=Kr("body");return"function"==typeof p?p(e,d.props,{rowProps:{onMouseEnter:d.handleRowMouseEnter,onMouseLeave:d.handleRowMouseLeave},stickyRightOffset:f}):w.a.createElement("div",{className:n},w.a.createElement("div",{className:E.virtual,tabIndex:-1,style:u},0<c&&w.a.createElement("div",{key:"top-blank",className:S()(E.virtualBlank,"top"),style:{height:c}}),w.a.createElement(ur,{tbodyHtmlTag:"tbody",getRowProps:o,primaryKey:i,data:r.slice(a,l),stickyRightOffset:f,horizontalRenderInfo:e,verticalRenderInfo:{first:0,offset:a,limit:l,last:r.length-1}}),0<s&&w.a.createElement("div",{key:"bottom-blank",className:S()(E.virtualBlank,"bottom"),style:{height:s}})))}),d.state={hasScroll:!0,hasScrollY:!0,needRenderLock:!0,offsetY:0,offsetX:0,maxRenderHeight:600,maxRenderWidth:800},d}return r()(n,[{key:"getDoms",value:function(){return jt.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,o=o.offsetWidth,t="auto"===(t=this.props.stickyScrollHeight)?this.getScrollBarWidth():t,r.style.height="".concat(t,"px"),e<=o?this.state.hasScroll&&this.setState({hasScroll:!1}):!this.state.hasScroll&&5<t&&this.setState({hasScroll:!0}),this.domHelper.virtual.offsetHeight>this.domHelper.tableBody.offsetHeight?this.hasScrollY=!0:(r.style.paddingRight="".concat(t,"px"),this.hasScrollY=!1),i!==this.hasScrollY&&null!=(r=(o=this.props).setTableWidth)&&r.call(o,this.domHelper.tableBody.clientWidth),n.style.width="".concat(e,"px"))}},{key:"renderTableHeader",value:function(e){var t=this.props,n=t.stickyTop,t=t.hasHeader,r=Kr("header");return"function"==typeof r?r(e,this.props):w.a.createElement("div",{className:S()(E.tableHeader,"no-scrollbar"),style:{top:0===n?void 0:n,display:t?void 0:"none"}},w.a.createElement(Tn,{info:e}),w.a.createElement("div",{className:E.verticalScrollPlaceholder,style:this.hasScrollY?{width:this.getScrollBarWidth()}:void 0}))}},{key:"updateOffsetX",value:function(e){this.lastInfo.useVirtual.horizontal&&Math.abs(e-this.state.offsetX)>=Bt/2&&this.setState({offsetX:e})}},{key:"syncHorizontalScrollFromTableBody",value:function(){this.syncHorizontalScroll(this.domHelper.virtual.scrollLeft)}},{key:"syncHorizontalScroll",value:function(e){this.updateOffsetX(e);var t=this.lastInfo.flat,n=this.domHelper.getLeftLockShadow(),n=(n&&(0<t.left.length&&this.state.needRenderLock&&0<e?n.classList.add("show-shadow"):n.classList.remove("show-shadow")),this.domHelper.getRightLockShadow());n&&(0<t.right.length&&this.state.needRenderLock&&e<this.domHelper.virtual.scrollWidth-this.domHelper.virtual.clientWidth?n.classList.add("show-shadow"):n.classList.remove("show-shadow"))}},{key:"getVerticalRenderRange",value:function(e){var t=this.props.dataSource,n=this.state,r=n.offsetY,n=n.maxRenderHeight,t=t.length;return e.vertical?this.rowHeightManager.getRenderRange(r,n,t):{topIndex:0,topBlank:0,bottomIndex:t,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=Kr("footer");return"function"==typeof i?i(e,this.props,{rowProps:{onMouseEnter:this.handleRowMouseEnter,onMouseLeave:this.handleRowMouseLeave}}):w.a.createElement("div",{className:S()(E.tableFooter,E.horizontalScrollContainer),style:{bottom:0===t?void 0:t}},w.a.createElement(ur,{tbodyHtmlTag:"tfoot",data:n,horizontalRenderInfo:e,getRowProps:r,primaryKey:o,verticalRenderInfo:{offset:0,first:0,last:n.length-1,limit:1/0}}),w.a.createElement("div",{className:E.verticalScrollPlaceholder,style:this.hasScrollY?{width:this.getScrollBarWidth(),visibility:"initial"}:void 0}))}},{key:"renderLockShadows",value:function(e){return w.a.createElement(w.a.Fragment,null,w.a.createElement("div",{className:E.lockShadowMask,style:{left:0,width:e.leftLockTotalWidth+20}},w.a.createElement("div",{className:S()(E.lockShadow,E.leftLockShadow)})),w.a.createElement("div",{className:E.lockShadowMask,style:{right:0,width:e.rightLockTotalWidth+20}},w.a.createElement("div",{className:S()(E.lockShadow,E.rightLockShadow)})))}},{key:"renderStickyScroll",value:function(e){var t=this.props,n=t.hasStickyScroll,t=t.stickyBottom,r=this.state.hasScroll;return w.a.createElement("div",{className:S()(E.stickyScroll,E.horizontalScrollContainer),style:{display:n&&r?"block":"none",bottom:t}},w.a.createElement("div",{className:E.stickyScrollItem}))}},{key:"getScrollBarWidth",value:function(){return this.props.scrollbarWidth||(null==Wt&&(Wt=new ge(Yt()),$t.pipe(v(Yt)).subscribe(Wt)),Wt.value.width)}},{key:"render",value:function(){var e=cn(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,u=t.isStickyHeader,l=t.isStickyFooter,s=t.isLoading,f=t.getTableProps,p=t.footerDataSource,t=t.components,a=S()(E.artTableWrapper,{"use-outer-border":a,empty:0===n.length,lock:e.hasLockColumn,"has-header":i,"sticky-header":null!=u?u:c,"has-footer":0<p.length,"sticky-footer":l,"ie-polyfill-wrapper":Nt.isIE},r),n=x()({className:a,style:o},zt,this.artTableWrapperRef),i=f()||{};return w.a.createElement(mn,n,w.a.createElement(fr,{visible:s,LoadingIcon:t.LoadingIcon,LoadingContentWrapper:t.LoadingContentWrapper},w.a.createElement("div",O()({},i,{className:S()(E.artTable,i.className)}),this.renderTableHeader(e),this.renderTableBody(e),this.renderTableFooter(e),this.renderLockShadows(e)),this.renderStickyScroll(e)))}},{key:"componentDidMount",value:function(){this.updateDOMHelper(),this.props$=new ge(this.props),this.initSubscriptions(),this.didMountOrUpdate();var e=this.props,t=e.cssVariables,e=e.enableCSSVariables;e=(t={variables:t||{},enableCSSVariables:e}).variables,!1!==t.enableCSSVariables&&Nr({include:"style[data-styled]",variables:O()({},bn,e),watch:!0,silent:!0}),null!=(e=(t=this.props).setTableWidth)&&e.call(t,this.domHelper.tableBody.clientWidth),null!=(t=(e=this.props).setTableDomHelper)&&t.call(e,this.domHelper)}},{key:"componentDidUpdate",value:function(e,t){this.updateDOMHelper(),this.props$.next(this.props),this.didMountOrUpdate(e,t)}},{key:"didMountOrUpdate",value:function(e,t){this.syncHorizontalScrollFromTableBody(),this.updateStickyScroll(),this.adjustNeedRenderLock(),this.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&&(Jt(this.domHelper).scrollLeft=this.domHelper.tableBody.scrollLeft))}},{key:"initSubscriptions",value:function(){var t,n,r,o,i=this,e=this.domHelper,a=e.virtual,e=e.stickyScroll,c=(this.rootSubscription.add($t.subscribe(function(){i.updateStickyScroll(),i.adjustNeedRenderLock()})),this.resizeSubject.pipe((t=100,void 0===n&&(n=ze),function(e){return e.lift(new Be(t,n))})).subscribe(function(){var e,t;null!=(e=(t=i.props).setTableWidth)&&e.call(t,i.domHelper.tableBody.clientWidth)}),this.resizeObserver=Gt(this.domHelper.artTableWrapper,function(){i.resizeSubject.next()}),this.rootSubscription.add(Ut([(c=this.domHelper,Nt.isIE?c.tableHeaderMain:c.tableHeader),a,Jt(this.domHelper),e],function(e){i.syncHorizontalScroll(e)})),Qn(this.domHelper.virtual,this.props$.pipe((o=1,function(e){return e.lift(new We(o))}),(r="structure-may-change",function(e){return e.lift(new Ge(r))})),this.props.virtualDebugLabel).pipe(ot()));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()),_e(e=1===e.length&&Z(e[0])?e[0]:e,r).lift(new Te(n))}([c.pipe(v(function(e){return e.clipRect}),ct(qt)),this.props$.pipe(bt(null),function(e){return e.lift(new gt)},wt(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=i.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(c.pipe(wt(function(){var e=i.lastInfo.useVirtual,t=e.horizontal,e=e.vertical;return t||e}),v(function(e){var t=e.clipRect,e=e.offsetY;return{maxRenderHeight:t.bottom-t.top,maxRenderWidth:t.right-t.left,offsetY:e}}),ct(function(e,t){return 0===t.maxRenderHeight&&0===t.maxRenderWidth||Math.abs(e.maxRenderWidth-t.maxRenderWidth)<Bt/2&&Math.abs(e.maxRenderHeight-t.maxRenderHeight)<Bt/2&&Math.abs(e.offsetY-t.offsetY)<Bt/2})).subscribe(function(e){i.setState(e)})),this.rootSubscription.add(c.pipe(v(function(e){var t=e.clipRect,e=e.offsetY;return{maxRenderHeight:t.bottom-t.top,maxRenderWidth:t.right-t.left,offsetY:e}}),ct(function(e,t){return e.offsetY-t.offsetY==0}),v(function(e){var t=e.offsetY,e=e.maxRenderHeight,n=0<=t-i.offsetY?"down":"up",r=(i.offsetY=t,i.props.dataSource.length),t=i.rowHeightManager.getRenderRange(t,e,r),e=t.topIndex,r=t.bottomIndex,t=(null==(t=i.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]}),ct(function(e,t){return e[0]===t[0]&&e[1]===t[1]}),St(function(e){return Le(e).pipe(v(function(e){return e}))}),ct()).subscribe(function(e){var t;null!=(t=i.props.scrollLoad)&&t.callback(e)}))}},{key:"componentWillUnmount",value:function(){var e;null!=(e=this.resizeObserver)&&e.disconnect(),this.rootSubscription.unsubscribe(),this.resizeSubject.unsubscribe()}},{key:"updateDOMHelper",value:function(){this.domHelper=new rr(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=Wr(this.domHelper.getTableRows());try{for(a.s();!(e=a.n()).done;){var c,u,l=e.value,s=Number(l.dataset.rowindex);isNaN(s)||(r=Math.max(r,s),c=l.offsetTop+n,0===(u=l.offsetHeight)?i+=1:this.rowHeightManager.updateRow(s,c,u),o=Math.max(o,c+u))}}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=Vt(n.full.map(function(e){return e.width}))>this.domHelper.artTable.clientWidth)&&this.setState({needRenderLock:t}):e&&this.setState({needRenderLock:!1})}}]),n}(w.a.Component);function qr(e,t){var n,r="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!r){if(Array.isArray(e)||(r=function(e,t){if(e){if("string"==typeof e)return Xr(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Map"===(n="Object"===n&&e.constructor?e.constructor.name:n)||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Xr(e,t):void 0}}(e))||t&&e&&"number"==typeof e.length)return r&&(e=r),n=0,{s:t=function(){},n:function(){return n>=e.length?{done:!0}:{done:!1,value:e[n++]}},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.")}var o,i=!0,a=!1;return{s:function(){r=r.call(e)},n:function(){var e=r.next();return i=e.done,e},e:function(e){a=!0,o=e},f:function(){try{i||null==r.return||r.return()}finally{if(a)throw o}}}}function Xr(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 Jr(e,t){var n,r={},o=qr(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}x()(Ur,"defaultProps",{hasHeader:!0,isStickyHeader:!0,stickyTop:0,footerDataSource:[],isStickyFooter:!0,stickyBottom:0,hasStickyScroll:!0,stickyScrollHeight:"auto",useVirtual:"auto",estimatedRowHeight:48,isLoading:!1,components:{},getTableProps:f,getRowProps:f,dataSource:[],useOuterBorder:!0});t(66);function Zr(e){return-1<e.findIndex(function(e){return e.children&&0<e.children.length})}function Qr(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(187);function eo(n,r){var o=[];return n.forEach(function(e,t){o.push.apply(o,R()(r(e,t,n)))}),o}var to={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 no(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(R()(i.children)))}return null}function oo(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 io(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?oo(Object(n),!0).forEach(function(e){x()(t,e,n[e])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):oo(Object(n)).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))})}return t}function ao(e,t){var n,r="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!r){if(Array.isArray(e)||(r=function(e,t){if(e){if("string"==typeof e)return co(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Map"===(n="Object"===n&&e.constructor?e.constructor.name:n)||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?co(e,t):void 0}}(e))||t&&e&&"number"==typeof e.length)return r&&(e=r),n=0,{s:t=function(){},n:function(){return n>=e.length?{done:!0}:{done:!1,value:e[n++]}},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.")}var o,i=!0,a=!1;return{s:function(){r=r.call(e)},n:function(){var e=r.next();return i=e.done,e},e:function(e){a=!0,o=e},f:function(){try{i||null==r.return||r.return()}finally{if(a)throw o}}}}function co(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(e,t,n){function r(e){if(i.has(e))return i.get(e);var t={id:e,parent:null,item:null,children:[]};return i.set(e,t),t}var o,i=new Map,a=ao(n);try{for(a.s();!(o=a.n()).done;){var c=o.value,u=r(c[t]),l=r(c[e]);(l.parent=u).children.push(l),l.item=c}}catch(e){a.e(e)}finally{a.f()}return function e(t){var n=[];var r,o=ao(t);try{for(o.s();!(r=o.n()).done;){var i=r.value;0===i.children.length?n.push(i.item):n.push(io(io({},i.item),{},{children:e(i.children)}))}}catch(e){o.e(e)}finally{o.f()}return n}(eo(Array.from(i.values()).filter(function(e){return null==e.parent}),function(e){return e.children}))}function lo(e,t){var n,r="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!r){if(Array.isArray(e)||(r=function(e,t){if(e){if("string"==typeof e)return so(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Map"===(n="Object"===n&&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 r&&(e=r),n=0,{s:t=function(){},n:function(){return n>=e.length?{done:!0}:{done:!1,value:e[n++]}},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.")}var o,i=!0,a=!1;return{s:function(){r=r.call(e)},n:function(){var e=r.next();return i=e.done,e},e:function(e){a=!0,o=e},f:function(){try{i||null==r.return||r.return()}finally{if(a)throw o}}}}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 fo(e,t,n){return{c:e.c+t,r:e.r+n}}function po(d,e,t,n){var h,s,r,f,v=d.utils.aoa_to_sheet([]),y=kn(t)+1,o={c:0,r:0},o=(h=o,function e(t,n,r){var o,i,a=fo(h,n,r),c=0,u=lo(t);try{for(u.s();!(o=u.n()).done;){var l,s,f,p=o.value;null!=(l=p.features)&&l.noExport||(s=fo(a,c,0),i=p.name,d.utils.sheet_add_aoa(v,[[i]],{origin:s}),_(p)?(c+=1,b(s,1,y-r)):(b(s,f=e(p.children,n+c,r+1),1),c+=f))}}catch(e){u.e(e)}finally{u.f()}return c}(t,0,0),s=fo(o,0,y),r=I(t,"leaf-only").filter(function(e){return!(null!=(e=e.features)&&e.noExport)}),f=new ir,e.map(function(u,l){return f.stripUpwards(l),r.map(function(e,t){if(f.testSkip(l,t))return null;a=u,o=l,t=t,r=n=1,(i=e).getSpanRect?(c=j.safeGetValue(i,a,o),n=null==(c=i.getSpanRect(c,a,o))?1:c.right-t,r=null==c?1:c.bottom-o):(null!=(c=j.safeGetCellProps(i,a,o)).colSpan&&(n=c.colSpan),null!=c.rowSpan&&(r=c.rowSpan));var n,r,o,i={top:o,bottom:o+r,left:t,right:t+n},a=i.bottom-i.top,c=i.right-i.left;return(1<a||1<c)&&(f.add(i.top,i.left,c,a),b(fo(s,i.left,i.top),c,a)),(o=j.safeGetValue(e,u,l))===1/0||o===-1/0||"number"==typeof o&&isNaN(o)?null:o})})),t=s;function b(e,t,n){1===t&&1===n||(null==v["!merges"]&&(v["!merges"]=[]),v["!merges"].push({s:e,e:fo(e,t-1,n-1)}))}d.utils.sheet_add_aoa(v,o,{origin:t}),d.writeFile({SheetNames:["Sheet1"],Sheets:{Sheet1:v}},n)}t(287);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 vo(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){x()(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 yo(n,r){return function t(e){if(!Array.isArray(n))return n;return e.map(function(e){return _(e)?e:vo(vo({},e),{},{children:t(e.children)})}).sort(r)}(n)}var bo=Symbol("factory-symbol");function M(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]===M.empty?delete r[e]:(t=o[e],(n=t)&&n[bo]?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[bo]=!0,i.extends=function(e){var t=M(e,n);return function(e){return i(t(e))}},i}M.empty=Symbol("proto.empty"),(M.string=function(e){if(null!=e&&"string"!=typeof e)throw new Error("must be string");return e})[bo]=!0,(M.number=function(e){if(null!=e&&"number"!=typeof e)throw new Error("must be number");return e})[bo]=!0,(M.notNull=function(e){if(null==e)throw new Error("must be not null");return e})[bo]=!0,M.object=function(e){return M(e,!1)},M.array=function(e){return M(e,!0)};var go=M;function mo(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 wo(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?mo(Object(n),!0).forEach(function(e){x()(t,e,n[e])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):mo(Object(n)).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))})}return t}function xo(e,t){var n,r="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!r){if(Array.isArray(e)||(r=function(e,t){if(e){if("string"==typeof e)return Oo(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Map"===(n="Object"===n&&e.constructor?e.constructor.name:n)||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Oo(e,t):void 0}}(e))||t&&e&&"number"==typeof e.length)return r&&(e=r),n=0,{s:t=function(){},n:function(){return n>=e.length?{done:!0}:{done:!1,value:e[n++]}},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.")}var o,i=!0,a=!1;return{s:function(){r=r.call(e)},n:function(){var e=r.next();return i=e.done,e},e:function(e){a=!0,o=e},f:function(){try{i||null==r.return||r.return()}finally{if(a)throw o}}}}function Oo(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 So(p){return function(e){return function e(t,n,r){var o=0;var i=[];var a,c=xo(t);try{for(c.s();!(a=c.n()).done;){var u,l=a.value,s=(r.push(l),n+o),f=void 0;_(l)?(f=p(l,{startIndex:s,endIndex:s+1,path:r.slice(),isLeaf:!0}),o+=1):(u=e(l.children,s,r),f=p(wo(wo({},l),{},{children:u.result}),{startIndex:s,endIndex:s+u.flatCount,path:r.slice(),isLeaf:!1}),o+=u.flatCount),Array.isArray(f)?i.push.apply(i,R()(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 ko(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=ko(e[r],t[r]);if(0!==o)return o}return e.length-t.length}return 0}function Eo(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 jo(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?Eo(Object(n),!0).forEach(function(e){x()(t,e,n[e])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):Eo(Object(n)).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))})}return t}function Co(e,t){var n,r="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!r){if(Array.isArray(e)||(r=function(e,t){if(e){if("string"==typeof e)return Po(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Map"===(n="Object"===n&&e.constructor?e.constructor.name:n)||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Po(e,t):void 0}}(e))||t&&e&&"number"==typeof e.length)return r&&(e=r),n=0,{s:t=function(){},n:function(){return n>=e.length?{done:!0}:{done:!1,value:e[n++]}},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.")}var o,i=!0,a=!1;return{s:function(){r=r.call(e)},n:function(){var e=r.next();return i=e.done,e},e:function(e){a=!0,o=e},f:function(){try{i||null==r.return||r.return()}finally{if(a)throw o}}}}function Po(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 Ao(e){return null==e?[]:Array.isArray(e)?e:[e]}function Ro(p){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=Co(t);try{for(a.s();!(i=a.n()).done;){var c,u=i.value,l=n+r,s=void 0;_(u)?(s=p(u,{range:{start:l,end:l+1},dataSource:f}),r+=1):(c=e(u.children,l),s=p(jo(jo({},u),{},{children:c.result}),{range:{start:l,end:l+c.flatColCount},dataSource:f}),r+=c.flatColCount),o.push.apply(o,R()(Ao(s)))}}catch(e){a.e(e)}finally{a.f()}return{result:o,flatColCount:r}}(t,0).result}}}var _o=function(t){return function(e){e.value=t,e.select(),e.focus(),document.execCommand("copy"),document.body.removeChild(e)}};function Io(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){jt.warn("Browser does not support document.execCommand('copy') for clipboard operations")}}function To(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 Mo(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?To(Object(n),!0).forEach(function(e){x()(t,e,n[e])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):To(Object(n)).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))})}return t}function Do(n,r){return function t(e){if(!Array.isArray(n))return n;return e.map(function(e){return _(e)?e:Mo(Mo({},e),{},{children:t(e.children)})}).filter(r)}(n)}function Lo(e){return e.deepPath?e.deepPath():e.path||(e.composedPath?e.composedPath():function(e){var t=[],n=e.target;for(;n;)t.push(n),n=n.parentElement;return t}(e))}function No(e,t){return!(!e||!t)&&0<=Lo(t).indexOf(e)}function Ho(e,t){for(var n,r=0;!n&&r<e.length;){var o=e[r];t(o)&&(n=o),r++}return n}function Fo(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 zo(e,t,n){e=e.getBoundingClientRect(),t=(t===document.body?document.documentElement:t).getBoundingClientRect();return{x:e.left-t.left-(n?n.x:0),y:e.top-t.top-(n?n.y:0)}}function Bo(e,t,n,r,o){var i,a=e.getBoundingClientRect(),c=document.documentElement,u=c.getBoundingClientRect(),t=t.getBoundingClientRect(),l=a.width,s=a.height,e=e===document.body;return e&&(l=u.width-Math.abs(u.left-a.left),s=u.height+c.scrollTop-Math.abs(u.top-a.top)),n&&(u=t.width,l=(a={x:n,maxX:l-u,width:u,isPerfectX:o}).x,u=a.maxX,i=a.width,n=(a=a.isPerfectX)&&Math.max(l,0)>Math.abs(u)&&i<=l?l-i:Math.min(Math.max(l,0),Math.abs(u))),r&&(a=t.height,i={y:r,maxY:s-a,height:a,scrollTop:c.scrollTop,isBody:e,isPerfectY:o},l=i.y,u=i.maxY,t=i.height,s=i.scrollTop,a=i.isBody,r=(i=i.isPerfectY)&&Math.max(l,0)>Math.abs(u)&&t<=(a?l-s:l)?l-t:Math.min(Math.max(l,0),Math.abs(u))),{x:n,y:r}}var Vo=new Set;function D(e){Vo.has(e)||(Vo.add(e),console.warn("[kd-table] transform 用法已经过时,请使用 pipeline 来对表格进行拓展"+"\n 请移除以下 API 的调用:".concat(e)))}function Ko(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 Wo(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?Ko(Object(n),!0).forEach(function(e){x()(t,e,n[e])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):Ko(Object(n)).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))})}return t}function $o(e,t){return e===t}function Go(){return D("makeAutoRowSpanTransform"),Ro(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:$o,i=[],a=0,c=null,u=null,l=0;l<n.length;l++){var s=n[l],f=j.safeGetValue(e,s,l);if(0===l||!o(c,f,u,s)){for(var p={top:a,bottom:l,left:r.start,right:r.end},d=a;d<l;d++)i.push(p);a=l}c=f,u=s}for(var h=a;h<n.length;h++)i.push({top:a,bottom:n.length,left:r.start,right:r.end});return Wo(Wo({},e),{},{getSpanRect:function(e,t,n){return i[n]}})})}function Yo(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 Uo(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?Yo(Object(n),!0).forEach(function(e){x()(t,e,n[e])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):Yo(Object(n)).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))})}return t}var qo="auto-width-wrapper",Xo="auto-width-expander",Jo=e.c.div(p()(["\n height: 100%;\n display: inline-flex;\n align-items: center;\n white-space: nowrap;\n padding: 8px 12px;\n"]));function Zo(i,o,e){D("useAutoWidthTransform");var t=Object(d.useState)([]),t=A()(t,2),a=t[0],c=t[1],u=(Object(d.useEffect)(function(){var e=i.current.getDoms().artTable,e=Array.from(e.querySelectorAll(".".concat(E.tableRow)));if(0!==e.length){for(var n,r=[],t=0,o=e;t<o.length;t++)o[t].querySelectorAll(".".concat(qo)).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),l=Ro(function(r){if(!_(r))return r;if(null==(e=r.features)||!e.autoWidth)return r;var e=r.features.autoWidth,t=e.max,e=e.min,n=null!=(n=null!=(n=a[u++])?n:r.width)?n:null==o?void 0:o.initColumnWidth,e=Math.max(void 0===e?-1/0:e,Math.min(void 0===t?1/0:t,n));return Uo(Uo({},r),{},{width:e,getCellProps:function(e,t,n){return k(j.safeGetCellProps(r,t,n),{style:{padding:0}})},render:function(e,t,n){return w.a.createElement(Jo,{className:qo,style:null==o?void 0:o.wrapperStyle},j.safeRender(r,t,n))}})});return function(e){var t,e=l(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:Xo,style:{background:"hidden"===r?"var(--bgcolor)":void 0,border:"hidden"===r?"none":void 0}},getCellProps:function(){return{className:Xo,style:{visibility:r}}}}]):n,dataSource:e}}}function Qo(n,r){return D("makeBuildTreeTransform"),function(e){var t=e.columns,e=e.dataSource;return{columns:t,dataSource:uo(n,r,e)}}}function ei(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 ti(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?ei(Object(n),!0).forEach(function(e){x()(t,e,n[e])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):ei(Object(n)).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))})}return t}function ni(e){var t=e.hoverColor,a=void 0===t?"var(--hover-bgcolor)":t,n=e.hoverColIndex,c=e.onChangeHoverColIndex;return D("makeColumnHoverTransform"),Ro(function(e,t){var r=t.range;if(!_(e))return e;var o=r.start<=n&&n<r.end,i=e.getCellProps;return ti(ti({},e),{},{getCellProps:function(e,t,n){return k(null==i?void 0:i(e,t,n),{style:{"--bgcolor":o?a:void 0},onMouseEnter:function(){c(r.start)},onMouseLeave:function(){c(-1)}})}})})}function ri(){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(d.useState)(e),e=A()(e,2);return ni({hoverColor:t,hoverColIndex:e[0],onChangeHoverColIndex:e[1]})}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){x()(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}var ai={start:-1,end:-1};function ci(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,u=e.onChangeHoverRange;return D("makeColumnRangeHoverTransform"),Ro(function(e,t){var r=t.range,o=r.end>c.start&&c.end>r.start;if(!_(e))return null==n?e:ii(ii({},e),{},{headerCellProps:k(e.headerCellProps,{onMouseEnter:function(){u(r)},onMouseLeave:function(){u(ai)},style:{"--header-bgcolor":o?n:void 0}})});var i=e.getCellProps;return ii(ii({},e),{},{headerCellProps:k(e.headerCellProps,{onMouseEnter:function(){u(r)},onMouseLeave:function(){u(ai)},style:{"--header-bgcolor":o?n:void 0}}),getCellProps:function(e,t,n){return k(null==i?void 0:i(e,t,n),{onMouseEnter:function(){u(r)},onMouseLeave:function(){u(ai)},style:{"--bgcolor":o?a:void 0}})}})})}function ui(){var e=0<arguments.length&&void 0!==arguments[0]?arguments[0]:{},t=e.hoverColor,n=e.headerHoverColor,e=e.defaultHoverRange,e=void 0===e?ai:e,e=Object(d.useState)(e),e=A()(e,2);return ci({hoverColor:t,headerHoverColor:n,hoverRange:e[0],onChangeHoverRange:e[1]})}var sn=t(68),li=t.n(sn);function si(t){return function(e){return e.lift(new fi(t))}}var fi=function(){function e(e){this.notifier=e}return e.prototype.call=function(e,t){var e=new pi(e),n=ft(this.notifier,new st(e));return n&&!e.seenValue?(e.add(n),t.subscribe(e)):e},e}(),pi=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),di=["defaultSizes"];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){x()(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 yi="resize-expander",bi=e.c.span(p()(["\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 gi(e){function r(n,e){var t,r=e.clientX,o=a[n],e=y(window,"mousemove").pipe(si(y(window,"mouseup")),v(function(e){var e=e.clientX,t=a.slice();return t[n]=(e=o+(e-r),Math.max(u,Math.min(l,e))),t})),i="";s&&(t=document.documentElement.style,i=t.userSelect,t.userSelect="none"),e.subscribe({next:c,complete:function(){s&&(t.userSelect=i)}})}var a=e.sizes,c=e.onChangeSizes,t=e.minSize,u=void 0===t?40:t,t=e.maxSize,l=void 0===t?1/0:t,n=e.appendExpander,t=e.expanderVisibility,o=void 0===t?"visible":t,s=e.disableUserSelectWhenResizing,i=(D("makeColumnResizeTransform"),Ro(function(e,t){var n=t.range;if(!_(e))return e;var t=j.safeRenderHeader(e);return vi(vi({},e),{},{width:a[n.start],title:w.a.createElement(w.a.Fragment,null,t,w.a.createElement(bi,{className:"resize-handle",onMouseDown:function(e){return r(n.start,e)}})),headerCellProps:vi(vi({},e.headerCellProps),{},{style:vi(vi({},null==(t=e.headerCellProps)?void 0:t.style),{},{overflow:"visible",position:"relative"})})})}));return function(e){var e=i(e),t=e.columns,e=e.dataSource;return{columns:n?t.concat([{name:"",headerCellProps:{className:yi,style:{background:"hidden"===o?"var(--bgcolor)":void 0,border:"hidden"===o?"none":void 0}},getCellProps:function(){return{className:yi,style:{visibility:o}}}}]):t,dataSource:e}}}function mi(e){var t=e.defaultSizes,e=li()(e,di),t=Object(d.useState)(t),t=A()(t,2);return gi(vi({sizes:t[0],onChangeSizes:t[1]},e))}function wi(){return D("makeFlattenTransform"),Ro(function(e){var t;return!_(e)&&null!=(t=e.features)&&t.flatten?e.children: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 Oi(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){x()(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 Si(){var n=0<arguments.length&&void 0!==arguments[0]?arguments[0]:1;return D("makeOrderFieldTransform"),Ro(function(e){var t;return null!=(t=e.features)&&t.order||null!=(t=e.features)&&t.orderField?Oi(Oi({},e),{},{getValue:function(e,t){return t+n}}):e})}var ki=["defaultSorts"];function Ei(e,t){var n,r,o="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!o){if(Array.isArray(e)||(o=function(e,t){if(e){if("string"==typeof e)return ji(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Map"===(n="Object"===n&&e.constructor?e.constructor.name:n)||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?ji(e,t):void 0}}(e))||t&&e&&"number"==typeof e.length)return o&&(e=o),n=0,{s:t=function(){},n:function(){return n>=e.length?{done:!0}:{done:!1,value:e[n++]}},e:(r=function(e){throw e},i.toString=function(){return r.toString()},i),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 i(e){return r.apply(this,arguments)}var a,c,u=!0,l=!1;return{s:function(){o=o.call(e)},n:function(){var e=o.next();return u=e.done,e},e:(c=function(e){l=!0,a=e},s.toString=function(){return c.toString()},s),f:function(){try{u||null==o.return||o.return()}finally{if(l)throw a}}};function s(e){return c.apply(this,arguments)}}function ji(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 Ci(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 Pi(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?Ci(Object(n),!0).forEach(function(e){x()(t,e,n[e])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):Ci(Object(n)).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))})}return t}function Ai(e){var t=e.size,t=void 0===t?32:t,n=e.style,r=e.className,e=e.order;return w.a.createElement("svg",{style:n,className:r,focusable:"false",preserveAspectRatio:"xMidYMid meet",width:t,height:t,viewBox:"0 0 32 32","aria-hidden":"true"},w.a.createElement("path",{fill:"asc"===e?"#23A3FF":"#bfbfbf",transform:"translate(0, 4)",d:"M8 8L16 0 24 8z"}),w.a.createElement("path",{fill:"desc"===e?"#23A3FF":"#bfbfbf",transform:"translate(0, -4)",d:"M24 24L16 32 8 24z "}))}function Ri(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 w.a.createElement(_i,{onClick:r,style:{justifyContent:n}},t,w.a.createElement(Ai,{style:{userSelect:"none",marginLeft:2,flexShrink:0},size:16,order:o}),"multiple"===e.mode&&-1!=i&&w.a.createElement("div",{style:{userSelect:"none",marginLeft:2,color:"#666",flex:"0 0 auto",fontSize:10,fontFamily:"monospace"}},i+1))}var _i=e.c.div(p()(["\n cursor: pointer;\n display: flex;\n align-items: center;\n"]));function Ii(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,u=void 0===i?Ri:i,a=e.keepDataSource,l=e.highlightColumnWhenActive,s=e.stopClickEventPropagation,i=(D("makeSortTransform"),t.filter(function(e){return"none"!==e.order})),f="multiple"===r?i:i.slice(0,1),p="multiple"===r?n:function(e){var t=e.length;n(e.slice(t-1))},d={sorts:f,onChangeSorts:p,orders:o,mode:r,keepDataSource:a,highlightColumnWhenActive:l,stopClickEventPropagation:s},h=new Map(f.map(function(e,t){return[e.code,Pi({index:t},e)]}));return function(e){var t=e.dataSource,n=e.columns;return{columns:n.map(function e(r){var t=Pi({},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,l&&(t.headerCellProps=k(r.headerCellProps,{style:{background:"var(--header-highlight-bgcolor)"}}),t.getCellProps=function(e,t,n){t=j.safeGetCellProps(r,t,n);return k(t,{style:{background:"var(--highlight-bgcolor)"}})})),t.title=w.a.createElement(u,{onToggle:function(e){s&&e.stopPropagation(),c(r.code)},sortOrder:i,column:r,sortIndex:n,sortOptions:d},j.safeRenderHeader(r)))}_(r)||(t.children=r.children.map(e));return t}),dataSource:function(e){if(a)return e;var s=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 yo(e,function(e,t){var n,r=Ei(f);try{for(r.s();!(n=r.n()).done;){var o=n.value,i=o.code,a=o.order,c=s.get(i);if(null!=c){var u=c.features.sortable,l=("function"==typeof u?u:ko)(j.safeGetValue(c,e,-1),j.safeGetValue(c,t,-1));if(0!==l)return l*("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?p(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]=Pi(Pi({},n[e]),{},{order:r}),p(n))}}}function Ti(){var e=0<arguments.length&&void 0!==arguments[0]?arguments[0]:{},t=e.defaultSorts,t=void 0===t?[]:t,e=li()(e,ki),t=Object(d.useState)(t),t=A()(t,2);return Ii(Pi({sorts:t[0],onChangeSorts:t[1]},e))}var Mi=e.c.div(p()(["\n display: inline-flex;\n align-items: center;\n"])),Di=Object(e.c)(Mi)(p()(["\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"]),E.leaf,E.expanded);var Li={Loading:function(e){return w.a.createElement("svg",O()({width:"16",height:"16",fill:"currentColor",viewBox:"0 0 1024 1024"},e),w.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 w.a.createElement("svg",O()({focusable:"false",preserveAspectRatio:"xMidYMid meet",fill:"currentColor",width:"16",height:"16",viewBox:"0 0 32 32"},e),w.a.createElement("path",{d:"M24 12L16 22 8 12z"}))},CaretRight:function(e){return w.a.createElement("svg",O()({focusable:"false",preserveAspectRatio:"xMidYMid meet",fill:"currentColor",width:"16",height:"16",viewBox:"0 0 32 32"},e),w.a.createElement("path",{d:"M12 8L22 16 12 24z"}))},Info:function(e){return w.a.createElement("svg",O()({focusable:"false",preserveAspectRatio:"xMidYMid meet",fill:"currentColor",width:"16",height:"16",viewBox:"0 0 16 16"},e),w.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"}),w.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"}))}},Ni=e.c.div(p()(["\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: 13px;\n position:absolute;\n z-index: 1050;\n width:120px;\n }\n\n .","{\n width:100%;\n display: table;\n }\n\n ."," .","{\n display: table-row;\n color: #666666;\n }\n\n ."," .","{\n background-color: #f5f5f5;\n }\n\n ."," ."," .","{\n display: table-cell;\n padding: 5px 8px;\n }\n ."," .",".","{\n opacity: .5;\n }\n\n"]),b.menu,b.menuList,b.menuList,b.menuOption,b.menuList,b.menuOptionActive,b.menuList,b.menuOption,b.menuOptionText,b.menuList,b.menuOption,b.menuOptionDisable);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 Fi(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){x()(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 zi=e.c.div(p()(["\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 Bi(e){var n=e.Balloon,r=e.Tooltip;return D("makeTipsTransform"),Ro(function(e){if(null==(t=e.features)||!t.tips)return e;var t="right"===e.align?"flex-end":"center"===e.align?"center":"flex-start";return Fi(Fi({},e),{},{title:w.a.createElement(zi,{style:{justifyContent:t}},j.safeRenderHeader(e),n?w.a.createElement(n,{closable:!1,trigger:w.a.createElement("div",{className:"tip-icon-wrapper"},w.a.createElement(Li.Info,{className:"tip-icon"}))},e.features.tips):w.a.createElement(r,{title:e.features.tips},w.a.createElement("div",{className:"tip-icon-wrapper"},w.a.createElement(Li.Info,{className:"tip-icon"}))))})})}var fn=t(69),Vi=t.n(fn);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 Wi(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){x()(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(e,t){var n,r="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!r){if(Array.isArray(e)||(r=function(e,t){if(e){if("string"==typeof e)return Gi(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Map"===(n="Object"===n&&e.constructor?e.constructor.name:n)||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Gi(e,t):void 0}}(e))||t&&e&&"number"==typeof e.length)return r&&(e=r),n=0,{s:t=function(){},n:function(){return n>=e.length?{done:!0}:{done:!1,value:e[n++]}},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.")}var o,i=!0,a=!1;return{s:function(){r=r.call(e)},n:function(){var e=r.next();return i=e.done,e},e:function(e){a=!0,o=e},f:function(){try{i||null==r.return||r.return()}finally{if(a)throw o}}}}function Gi(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 Yi=Symbol("treeMetaSymbol");function Ui(){var i=0<arguments.length&&void 0!==arguments[0]?arguments[0]:{};return function(o){function e(e,t,n){var r;null!=(r=i.onChangeOpenKeys)&&r.call(i,e,t,n),o.setStateAtKey("treeMode",e,{key:t,action:n})}var t,n=o.ctx,f=o.ensurePrimaryKey("treeMode"),r=null!=(t=null!=(t=null!=(t=i.openKeys)?t:o.getStateAtKey("treeMode"))?t:i.defaultOpenKeys)?t:[],p=new Set(r),u=function(t){p.has(t)?e(r.filter(function(e){return e!==t}),t,"collapse"):e([].concat(R()(r),[t]),t,"expand")},d=null!=(t=i.isLeafNode)?t:_,l=null!=(t=i.clickArea)?t:"cell",h=null!=(t=i.treeMetaKey)?t:Yi,s=Boolean(i.stopClickEventPropagation),v=n.indents.iconWidth,y=null!=(t=i.iconIndent)?t:n.indents.iconIndent,b=null!=(t=i.iconGap)?t:n.indents.iconGap,g=null!=(t=i.indentSize)?t:n.indents.indentSize,m=i.icon;return o.mapDataSource(function(e){var s=[];return function e(t,n){if(null!=t){var r,o=$i(t);try{for(o.s();!(r=o.n()).done;){var i=r.value,a=j.safeGetRowKey(f,i,-1),c=p.has(a),u=d(i,{depth:n,expanded:c,rowKey:a}),l={depth:n,isLeaf:u,expanded:c,rowKey:a};s.push(Wi(x()({},h,l),i)),!u&&c&&e(i.children,n+1)}}catch(e){o.e(e)}finally{o.f()}}}(e,0),s}).mapColumns(function(e){if(0===e.length)return e;var t=e.findIndex(function(e){e=e.code;return e&&i.expandColCode===e}),c=e[t=-1===t?0:t];return e[t]=Wi(Wi({},c),{},{title:w.a.createElement("span",{style:{marginLeft:y+v+b}},j.safeRenderHeader(c)),render:function(e,t,n){n=j.safeRender(c,t,n);if(null==t[h])return n;var t=t[h],r=t.rowKey,o=t.depth,i=t.isLeaf,t=t.expanded,o=y+o*g;if(i)return w.a.createElement(Mi,{className:S()("expansion-cell",E.leaf)},w.a.createElement("span",{style:{marginLeft:o+v+b}},n));function a(e){s&&e.stopPropagation(),u(r)}i=t?E.expanded:E.collapsed;return w.a.createElement(Di,{className:S()("expansion-cell",i),style:{cursor:"content"===l?"pointer":void 0},onClick:"content"===l?a:void 0},m?w.a.createElement(m,{expanded:t,style:{cursor:"icon"===l?"pointer":void 0,marginLeft:o,marginRight:b,width:v},onClick:"icon"===l?a:void 0}):w.a.createElement(Li.CaretRight,{className:S()("expansion-icon",i),style:{cursor:"icon"===l?"pointer":void 0,marginLeft:o,marginRight:b},onClick:"icon"===l?a:void 0}),n)},getCellProps:"cell"===l?function(e,t,n){n=j.safeGetCellProps(c,t,n);if(null==t[h])return n;var t=t[h],r=t.isLeaf,o=t.rowKey;return r?n:k(n,{onClick:function(e){s&&e.stopPropagation(),u(o)},style:{cursor:"pointer"}})}:c.getCellProps}),R()(e)})}}var qi=["defaultOpenKeys"];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 Ji(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){x()(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 Zi(e,t){var n,r="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!r){if(Array.isArray(e)||(r=function(e,t){if(e){if("string"==typeof e)return Qi(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Map"===(n="Object"===n&&e.constructor?e.constructor.name:n)||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Qi(e,t):void 0}}(e))||t&&e&&"number"==typeof e.length)return r&&(e=r),n=0,{s:t=function(){},n:function(){return n>=e.length?{done:!0}:{done:!1,value:e[n++]}},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.")}var o,i=!0,a=!1;return{s:function(){r=r.call(e)},n:function(){var e=r.next();return i=e.done,e},e:function(e){a=!0,o=e},f:function(){try{i||null==r.return||r.return()}finally{if(a)throw o}}}}function Qi(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 ea=16;function ta(e){function u(t){g.has(t)?n(r.filter(function(e){return e!==t}),t,"collapse"):n([].concat(R()(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,p=void 0===t?0:t,t=e.indentSize,d=void 0===t?16:t,t=e.isLeafNode,h=void 0===t?_:t,t=e.clickArea,v=void 0===t?"cell":t,t=e.treeMetaKey,y=void 0===t?Yi:t,b=e.stopClickEventPropagation,g=(D("makeTreeModeTransform"),new Set(r));return function(e){var s,t=e.columns,e=e.dataSource;return{columns:function(e){if(0===e.length)return e;var e=Vi()(e),c=e[0],e=e.slice(1);return[Ji(Ji({},c),{},{title:w.a.createElement("span",{style:{marginLeft:l+ea+p}},j.safeRenderHeader(c)),render:function(e,t,n){n=j.safeRender(c,t,n);if(null==t[y])return n;var t=t[y],r=t.rowKey,o=t.depth,i=t.isLeaf,t=t.expanded,o=l+o*d;if(i)return w.a.createElement(Mi,{className:"expansion-cell leaf"},w.a.createElement("span",{style:{marginLeft:o+ea+p}},n));function a(e){b&&e.stopPropagation(),u(r)}i=t?"expanded":"collapsed";return w.a.createElement(Di,{className:S()("expansion-cell",i),style:{cursor:"content"===v?"pointer":void 0},onClick:"content"===v?a:void 0},w.a.createElement(Li.CaretRight,{className:S()("expansion-icon",i),style:{cursor:"icon"===v?"pointer":void 0,marginLeft:o,marginRight:p},onClick:"icon"===v?a:void 0}),n)},getCellProps:"cell"===v?function(e,t,n){n=j.safeGetCellProps(c,t,n);if(null==t[y])return n;var t=t[y],r=t.isLeaf,o=t.rowKey;return r?n:k(n,{onClick:function(e){b&&e.stopPropagation(),u(o)},style:{cursor:"pointer"}})}:c.getCellProps})].concat(R()(e))}(t),dataSource:(s=[],function e(t,n){if(null!=t){var r,o=Zi(t);try{for(o.s();!(r=o.n()).done;){var i=r.value,a=i[f],c=g.has(a),u=h(i,{depth:n,expanded:c,rowKey:a}),l={depth:n,isLeaf:u,expanded:c,rowKey:a};s.push(Ji(x()({},y,l),i)),!u&&c&&e(i.children,n+1)}}catch(e){o.e(e)}finally{o.f()}}}(e,0),s)}}}function na(e){var t=e.defaultOpenKeys,t=void 0===t?[]:t,e=li()(e,qi),t=Object(d.useState)(t),t=A()(t,2);return ta(Ji({openKeys:t[0],onChangeOpenKeys:t[1]},e))}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 oa(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){x()(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 ia(e){D("makeVisibleTransform");var t=new Set(e);return Ro(function(e){return!_(e)||t.has(e.code)?e:oa(oa({},e),{},{hidden:!0})})}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){x()(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}function ua(e,t){return e===t}function la(){return function(e){var v=e.getDataSource();return e.mapColumns(So(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:ua,i=[],a=0,c=null,u=null,l=0;l<v.length;l++){var s=v[l],f=j.safeGetValue(e,s,l);if(0===l||!o(c,f,u,s)){for(var p={top:a,bottom:l,left:n,right:r},d=a;d<l;d++)i.push(p);a=l}c=f,u=s}for(var h=a;h<v.length;h++)i.push({top:a,bottom:v.length,left:n,right:r});return ca(ca({},e),{},{getSpanRect:function(e,t,n){return i[n]}})}))}}function sa(t,n){return function(e){return e.mapDataSource(function(e){return uo(t,n,e)})}}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 pa(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){x()(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 da(){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)",u=null!=(e=null!=(e=null!=(e=r.hoverColIndex)?e:n.getStateAtKey(o))?e:r.defaultHoverColIndex)?e:-1;return n.mapColumns(So(function(e,t){var r={start:t.startIndex,end:t.endIndex};if(!_(e))return e;var o=r.start<=u&&u<r.end,i=e.getCellProps;return pa(pa({},e),{},{getCellProps:function(e,t,n){return k(null==i?void 0:i(e,t,n),{style:{"--bgcolor":o?c:void 0},onMouseEnter:function(){a(r.start)},onMouseLeave:function(){a(-1)}})}})}))}}function ha(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 va(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?ha(Object(n),!0).forEach(function(e){x()(t,e,n[e])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):ha(Object(n)).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))})}return t}var ya={start:-1,end:-1};function ba(){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:ya,u=null!=(e=r.hoverColor)?e:"var(--hover-bgcolor)",l=null!=(e=r.headerHoverColor)?e:"var(--header-hover-bgcolor)";return n.mapColumns(So(function(e,t){var r={start:t.startIndex,end:t.endIndex},o=r.end>c.start&&c.end>r.start;if(!_(e))return null==l?e:va(va({},e),{},{headerCellProps:k(e.headerCellProps,{onMouseEnter:function(){a(r)},onMouseLeave:function(){a(ya)},style:{"--header-bgcolor":o?l:void 0}})});var i=e.getCellProps;return va(va({},e),{},{headerCellProps:k(e.headerCellProps,{onMouseEnter:function(){a(r)},onMouseLeave:function(){a(ya)},style:{"--header-bgcolor":o?l:void 0}}),getCellProps:function(e,t,n){return k(null==i?void 0:i(e,t,n),{onMouseEnter:function(){a(r)},onMouseLeave:function(){a(ya)},style:{"--bgcolor":o?u:void 0}})}})}))}}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 ma(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){x()(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}function wa(){var g=0<arguments.length&&void 0!==arguments[0]?arguments[0]:{};return function(i){var a="multiSelect",c=i.ctx.components.Checkbox;if(null==c)throw new Error("使用 multiSelect 之前需要设置 pipeline.ctx.components.Checkbox");var e,t,n,u=i.ensurePrimaryKey("multiSelect"),l=null!=(r=g.isDisabled)?r:no(!1),s=null!=(r=g.clickArea)?r:"checkbox",f=null!=(r=null!=(r=null!=(r=g.value)?r:null==(r=i.getStateAtKey(a))?void 0:r.value)?r:g.defaultValue)?r:[],p=null!=(r=null!=(r=null!=(r=g.lastKey)?r:null==(r=i.getStateAtKey(a))?void 0:r.lastKey)?r:g.defaultLastKey)?r:"",d=function(e,t,n,r){var o;null!=(o=g.onChange)&&o.call(g,e,t,n,r),i.setStateAtKey(a,{value:e,lastKey:t},{keys:n,action:r})},r=i.getDataSource(),h=new Set,v=[],y=(I(r).forEach(function(e,t){var n=j.safeGetRowKey(u,e,t);h.add(n),l(e,t)||v.push(n)}),new Set(f));return g.checkboxColumn&&!0===g.checkboxColumn.hidden||(t=0<v.length&&v.every(function(e){return y.has(e)}),r=v.some(function(e){return y.has(e)}),r=ma(ma({name:"是否选中",title:w.a.createElement(c,{checked:t,indeterminate:!t&&r,onChange:function(e){t?d(to.diff(f,v),"",v,"uncheck-all"):d(to.merge(f,v),"",v,"check-all")}}),width:50,align:"center"},g.checkboxColumn),{},{getCellProps:function(e,t,n){var r,o,i=j.safeGetRowKey(u,t,n),a={},c=null==(o=g.checkboxColumn)||null==(c=o.getCellProps)?void 0:c.call(o,e,t,n);return h.has(i)&&"cell"===s&&(r=y.has(i),a={style:{cursor:(o=l(t,n))?"not-allowed":"pointer"},onClick:o?void 0:function(e){g.stopClickEventPropagation&&e.stopPropagation(),b(r,i,e.shiftKey)}}),k(c,a)},render:function(e,t,n){if(t[i.getFeatureOptions("footerRowMetaKey")])return null;var r=j.safeGetRowKey(u,t,n),o=y.has(r);return w.a.createElement(c,{checked:o,disabled:l(t,n),onChange:"checkbox"===s?function(e,t){t=null!=(t=null==t?void 0:t.nativeEvent)?t:e.nativeEvent;t&&(g.stopClickEventPropagation&&t.stopPropagation(),b(o,r,t.shiftKey))}:void 0})}}),n=i.getColumns().slice(),"start"===(null!=(e=g.checkboxPlacement)?e:"start")?n.unshift(r):n.push(r),i.columns(n)),i.appendRowPropsGetter(function(e,t){var n,r,o,i,a=j.safeGetRowKey(u,e,t);if(h.has(a))return n={},i=y.has(a),g.highlightRowWhenSelected&&i&&(r="highlight"),"row"!==s||l(e,t)||(n.cursor="pointer",o=function(e){g.stopClickEventPropagation&&e.stopPropagation(),b(i,a,e.shiftKey)}),{className:r,style:n,onClick:o}}),i;function b(e,t,n){var r,o=[t];n&&p&&(r=(n=v.indexOf(p))<(r=v.indexOf(t))?[n,r]:[r,n],r=(n=A()(r,2))[0],n=n[1],o=v.slice(r,n+1)),e?d(to.diff(f,o),t,o,"uncheck"):d(to.merge(f,o),t,o,"check")}}}function xa(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 Oa(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?xa(Object(n),!0).forEach(function(e){x()(t,e,n[e])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):xa(Object(n)).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))})}return t}var Sa=Symbol("row-detail"),ka=function(){return w.a.createElement("div",{style:{margin:"8px 24px"}},w.a.createElement("b",{style:{color:"indianred"}},"设置 ",w.a.createElement("code",null,"rowDetail.renderDetail")," 来自定义详情内容"))};function Ea(){var m=0<arguments.length&&void 0!==arguments[0]?arguments[0]:{};return function(l){function e(e,t,n){var r;null!=(r=m.onChangeOpenKeys)&&r.call(m,e,t,n),l.setStateAtKey("rowDetail",e,{key:t,action:n})}var t,s=null!=(t=m.rowDetailMetaKey)?t:Sa,f=l.ensurePrimaryKey("rowDetail"),p=l.ctx.indents,d=p.iconIndent+p.iconWidth+p.iconGap,h=null!=(t=m.clickArea)?t:"cell",n=null!=(t=m.getDetailKey)?t:function(e,t){return j.safeGetRowKey(f,e,t)+"_detail"},v=null!=(t=m.renderDetail)?t:ka,y=null!=(t=m.hasDetail)?t:no(!0),r=null!=(t=null!=(t=null!=(t=m.openKeys)?t:l.getStateAtKey("rowDetail"))?t:m.defaultOpenAll?l.getDataSource().filter(y).map(function(e,t){return j.safeGetRowKey(f,e,t)}):m.defaultOpenKeys)?t:[],b=new Set(r),g=function(t){b.has(t)?e(r.filter(function(e){return e!==t}),t,"collapse"):e([].concat(R()(r),[t]),t,"expand")},o="string"==typeof f?f:s.toString()+"PrimaryKey";return l.dataSource(eo(l.getDataSource(),function(e,t){return b.has(j.safeGetRowKey(f,e,t))?[e,Oa(Oa(x()({},s,!0),e),{},x()({},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 jt.warn("没找到可展开的列,请检查设置的展开列code"),e;var u=e[c],e=R()(e),t=Vi()(e),o=t[0];t.slice(1);return e[0]=Oa(Oa({},o),{},{render:function(e,t,n){var r;return t[s]?"function"==typeof(r=Kr("rowDetail"))?r({row:t,rowIndex:n,domHelper:l.ref.current.domHelper,renderDetail:v}):v(t,n):j.safeRender(o,t,n)},getSpanRect:function(e,t,n){if(t[s])return{top:n,bottom:n+1,left:0,right:I(l.getColumns(),"leaf-only").length}}}),e[c]=Oa(Oa({},u),{},{title:w.a.createElement("div",{style:{display:"inline-block",marginLeft:d}},j.safeRenderHeader(u)),render:function(e,t,n){if(t[s]){if(0!==c)return;var r=Kr("rowDetail");return"function"==typeof r?r({row:t,rowIndex:n,domHelper:l.ref.current.domHelper,renderDetail:v}):v(t,n)}r=j.safeRender(u,t,n);if(!y(t,n))return w.a.createElement(Mi,{style:{marginLeft:d}},r);function o(e){m.stopClickEventPropagation&&e.stopPropagation(),g(i)}var i=j.safeGetRowKey(f,t,n),t=b.has(i),n=t?E.expanded:E.collapsed,a=m.expandIcon;return w.a.createElement(Di,{className:S()("expansion-cell",n),style:{cursor:"content"===h?"pointer":void 0},onClick:"content"===h?o:void 0},m.expandIcon?w.a.createElement(a,{expanded:t,onClick:"icon"===h?o:void 0}):w.a.createElement(Li.CaretRight,{style:{cursor:"icon"===h?"pointer":void 0,marginLeft:p.iconIndent,marginRight:p.iconGap},className:S()("expansion-icon",n),onClick:"icon"===h?o:void 0}),r)},getCellProps:"cell"===h?function(e,t,n){if(t[s])return{style:Oa({"--cell-padding":"0",overflow:"hidden"},m.detailCellStyle)};var r=null==(r=u.getCellProps)?void 0:r.call(u,e,t,n);return y(t,n)?k(r,{onClick:function(e){m.stopClickEventPropagation&&e.stopPropagation(),g(j.safeGetRowKey(f,t,n))},style:{cursor:"pointer"}}):r}:u.getCellProps,getSpanRect:function(e,t,n){if(t[s])return{top:n,bottom:n+1,left:0,right:I(l.getColumns(),"leaf-only").length}}}),e}(l.getColumns())).appendRowPropsGetter(function(e){if(e[s])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 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){x()(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 Pa=Symbol("row-grouping-meta");function Aa(e){return null==e[Pa]?{isGroupHeader:!1,expandable:!1}:{isGroupHeader:!0,expandable:e[Pa].expandable}}function Ra(e){if(Aa(e).isGroupHeader)return{className:"alternative"}}function _a(){var d=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,l=o.ensurePrimaryKey("rowGrouping");if("string"!=typeof l)throw new Error("rowGrouping 仅支持字符串作为 primaryKey");var s=null!=(e=null!=(e=null!=(e=d.openKeys)?e:o.getStateAtKey(i))?e:d.defaultOpenAll?o.getDataSource().map(function(e){return e[l]}):d.defaultOpenKeys)?e:[],f=new Set(s),p=function(e,t,n){var r;null!=(r=d.onChangeOpenKeys)&&r.call(d,e,t,n),o.setStateAtKey(i,e,{key:t,action:n})};return o.mapDataSource(function(e){return eo(e,function(e){var t=[(t=e,Ca(x()({},Pa,{expandable:!_(t)}),t))];return t=f.has(e[l])&&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=Vi()(e),u=e[0],e=e.slice(1);return[Ca(Ca({},u),{},{title:w.a.createElement("div",{style:{display:"inline-block",marginLeft:c}},j.safeRenderHeader(u)),render:function(e,t,n){var r,n=j.safeRender(u,t,n),o=Aa(t);if(!o.isGroupHeader||!o.expandable)return r=c+(o.isGroupHeader?0:a.indentSize),w.a.createElement(Mi,{style:{marginLeft:r}},o.isGroupHeader&&null!=(r=t.groupTitle)?r:n);o=f.has(t[l])?E.expanded:E.collapsed;return w.a.createElement(Di,{className:S()("expansion-cell",o)},w.a.createElement(Li.CaretRight,{className:S()("expansion-icon",o),style:{marginLeft:a.iconIndent,marginRight:a.iconGap}}),null!=(r=t.groupTitle)?r:n)},getCellProps:function(e,t,n){var r,o,i,a,c=Aa(t);if(c.isGroupHeader)return c=c.expandable,o=t[l],i=f.has(o),c&&(a=function(e){d.stopClickEventPropagation&&e.stopPropagation(),i?p(s.filter(function(e){return e!==o}),o,"collapse"):p([].concat(R()(s),[o]),o,"expand")}),k(null==(r=u.getCellProps)?void 0:r.call(u,e,t,n),{onClick:a,style:{cursor:c?"pointer":void 0}})},getSpanRect:function(e,t,n){if(Aa(t).isGroupHeader)return{top:n,bottom:n+1,left:0,right:r}}})].concat(R()(e))}).appendRowPropsGetter(Ra)}}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 Ta(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){x()(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 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",u=null!=(t=f.isDisabled)?t:no(!1),l=o.ensurePrimaryKey("singleSelect"),s=null!=(t=null!=(t=f.value)?t:o.getStateAtKey(n))?t:f.defaultValue,t=Ta(Ta({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=j.safeGetRowKey(l,t,n),k(i,{style:{cursor:(o=u(t,n))?"not-allowed":"pointer"},onClick:o?void 0:function(e){f.stopClickEventPropagation&&e.stopPropagation(),a(r)}})):i},render:function(e,t,n){if(t[o.getFeatureOptions("footerRowMetaKey")])return null;var r=j.safeGetRowKey(l,t,n);return w.a.createElement(i,{checked:s===r,disabled:u(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})}}),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=j.safeGetRowKey(l,e,t),i={};return f.highlightRowWhenSelected&&s===o&&(n="highlight"),"row"!==c||u(e,t)||(i.cursor="pointer",r=function(e){f.stopClickEventPropagation&&e.stopPropagation(),a(o)}),{className:n,style:i,onClick:r}}),o}}function Da(e,t){var n,r,o="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!o){if(Array.isArray(e)||(o=function(e,t){if(e){if("string"==typeof e)return La(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Map"===(n="Object"===n&&e.constructor?e.constructor.name:n)||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?La(e,t):void 0}}(e))||t&&e&&"number"==typeof e.length)return o&&(e=o),n=0,{s:t=function(){},n:function(){return n>=e.length?{done:!0}:{done:!1,value:e[n++]}},e:(r=function(e){throw e},i.toString=function(){return r.toString()},i),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 i(e){return r.apply(this,arguments)}var a,c,u=!0,l=!1;return{s:function(){o=o.call(e)},n:function(){var e=o.next();return u=e.done,e},e:(c=function(e){l=!0,a=e},s.toString=function(){return c.toString()},s),f:function(){try{u||null==o.return||o.return()}finally{if(l)throw a}}};function s(e){return c.apply(this,arguments)}}function La(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 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 Ha(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){x()(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}function Fa(e){var t=e.size,t=void 0===t?32:t,n=e.style,r=e.className,e=e.order;return w.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"},w.a.createElement("path",{fill:"asc"===e?"currentColor":"#bfbfbf",transform:"translate(0, 4)",d:"M8 8L16 0 24 8z"}),w.a.createElement("path",{fill:"desc"===e?"currentColor":"#bfbfbf",transform:"translate(0, -4)",d:"M24 24L16 32 8 24z "}))}function za(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 w.a.createElement(Ba,{onClick:r,style:{justifyContent:n}},t,w.a.createElement(Fa,{style:{userSelect:"none",marginLeft:2,flexShrink:0},className:S()((r={},x()(r,E.tableSortIcon,!0),x()(r,"active","desc"===o||"asc"===o),r)),size:16,order:o}),"multiple"===e.mode&&-1!==i&&w.a.createElement("div",{style:{userSelect:"none",marginLeft:2,color:"#666",flex:"0 0 auto",fontSize:10,fontFamily:"monospace"}},i+1))}var Ba=e.c.div(p()(["\n cursor: pointer;\n display: flex;\n align-items: center;\n // flex: auto;\n"])),Va="sort";function Ka(){var y=0<arguments.length&&void 0!==arguments[0]?arguments[0]:{};return function(r){function o(e,t){var n;null!=(n=y.onChangeSorts)&&n.call(y,e,t),r.setStateAtKey(Va,e)}var e=y.orders,i=void 0===e?["desc","asc","none"]:e,e=y.mode,e=void 0===e?"multiple":e,t=y.SortHeaderCell,c=void 0===t?za:t,n=y.keepDataSource,u=y.highlightColumnWhenActive,l=y.stopClickEventPropagation,t=y.sortIconHoverShow,a=(null!=(a=null!=(a=null!=(a=y.sorts)?a:r.getStateAtKey(Va))?a:y.defaultSorts)?a:[]).filter(function(e){return"none"!==e.order}),f="multiple"===e?a:a.slice(0,1),s="multiple"===e?o:function(e,t){var n=e.length;o(e.slice(n-1),t)},p={sorts:f,onChangeSorts:s,orders:i,mode:e,keepDataSource:n,highlightColumnWhenActive:u,stopClickEventPropagation:l,sortIconHoverShow:t},d=new Map(f.map(function(e,t){return[e.code,Ha({index:t},e)]})),a=r.getDataSource(),h=r.getColumns();return r.dataSource(function(e){if(n)return e;var s=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 yo(e,function(e,t){var n,r=Da(f);try{for(r.s();!(n=r.n()).done;){var o=n.value,i=o.code,a=o.order,c=s.get(i);if(null!=c){var u=c.features.sortable,l=("function"==typeof u?u:ko)(j.safeGetValue(c,e,-1),j.safeGetValue(c,t,-1),e,t);if(0!==l)return l*("asc"===a?1:-1)}}}catch(e){r.e(e)}finally{r.f()}return 0})}(a)),r.columns(h.map(function e(r){var t=Ha({},r);var n=r.code&&((null==(n=r.features)?void 0:n.sortable)||d.has(r.code));var o=n&&d.has(r.code);{var i,a;n&&(n=-1,i="none",o&&(o=d.get(r.code),a=o.order,o=o.index,i=a,n=o,u&&(t.headerCellProps=k(r.headerCellProps,{style:{background:"var(--header-highlight-bgcolor)"}}),t.getCellProps=function(e,t,n){t=j.safeGetCellProps(r,t,n);return k(t,{style:{background:"var(--highlight-bgcolor)"}})})),a=w.a.createElement(c,{onToggle:function(e){l&&e.stopPropagation(),v(r.code)},sortOrder:i,column:r,sortIndex:n,sortOptions:p},j.safeRenderHeader(Ha(Ha({},r),{},{title:r.title&&r.title[0]?r.title[0]:r.title}))),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=d.get(t);null==o?(r={code:t,order:i[0]},s(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]=Ha(Ha({},n[e]),{},{order:o}),s(n,r))}}}function Wa(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?Wa(Object(n),!0).forEach(function(e){x()(t,e,n[e])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):Wa(Object(n)).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))})}return t}var Ga=e.c.div(p()(["\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 Ya(){return function(e){var n=e.ctx.components.Balloon,r=e.ctx.components.Tooltip;if(null==n&&null==r)throw new Error("使用 tips 之前需要通过 pipeline context 设置 components.Balloon / components.Tooltip");return e.mapColumns(So(function(e){if(null==(t=e.features)||!t.tips)return e;var t="right"===e.align?"flex-end":"center"===e.align?"center":"flex-start";return $a($a({},e),{},{title:w.a.createElement(Ga,{style:{justifyContent:t}},j.safeRenderHeader(e),n?w.a.createElement(n,{closable:!1,trigger:w.a.createElement("div",{className:"tip-icon-wrapper"},w.a.createElement(Li.Info,{className:"tip-icon"}))},e.features.tips):w.a.createElement(r,{title:e.features.tips},w.a.createElement("div",{className:"tip-icon-wrapper"},w.a.createElement(Li.Info,{className:"tip-icon"}))))})}))}}function Ua(e,t){var n,r="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!r){if(Array.isArray(e)||(r=function(e,t){if(e){if("string"==typeof e)return qa(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Map"===(n="Object"===n&&e.constructor?e.constructor.name:n)||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?qa(e,t):void 0}}(e))||t&&e&&"number"==typeof e.length)return r&&(e=r),n=0,{s:t=function(){},n:function(){return n>=e.length?{done:!0}:{done:!1,value:e[n++]}},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.")}var o,i=!0,a=!1;return{s:function(){r=r.call(e)},n:function(){var e=r.next();return i=e.done,e},e:function(e){a=!0,o=e},f:function(){try{i||null==r.return||r.return()}finally{if(a)throw o}}}}function qa(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 Xa=r()(function e(t){i()(this,e),x()(this,"root",void 0),x()(this,"children",void 0),x()(this,"parent",void 0),x()(this,"node",void 0),x()(this,"checked",void 0),O()(this,t)}),Ja=function(){function t(e){i()(this,t),x()(this,"opts",void 0),x()(this,"valueSet",void 0),x()(this,"wrapperMap",void 0),x()(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,u=this.opts.getNodeValue;this.rootWrapper=new Xa({root:!0,children:[]}),this.wrapperMap=new Map,function e(t,n){var r,o=Ua(n);try{for(o.s();!(r=o.n()).done;){var i=r.value,a=new Xa({parent:t,node:i,checked:c.valueSet.has(u(i))});c.wrapperMap.set(u(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:to.merge(this.value,[e])}},{key:"getValueAfterUncheck",value:function(e){return this.isChecked(e)?to.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 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 Qa(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){x()(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}function ec(e,t){var n,r="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!r){if(Array.isArray(e)||(r=function(e,t){if(e){if("string"==typeof e)return tc(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Map"===(n="Object"===n&&e.constructor?e.constructor.name:n)||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?tc(e,t):void 0}}(e))||t&&e&&"number"==typeof e.length)return r&&(e=r),n=0,{s:t=function(){},n:function(){return n>=e.length?{done:!0}:{done:!1,value:e[n++]}},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.")}var o,i=!0,a=!1;return{s:function(){r=r.call(e)},n:function(){var e=r.next();return i=e.done,e},e:function(e){a=!0,o=e},f:function(){try{i||null==r.return||r.return()}finally{if(a)throw o}}}}function tc(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 nc=r()(function e(t){i()(this,e),x()(this,"root",void 0),x()(this,"children",void 0),x()(this,"parent",void 0),x()(this,"node",void 0),x()(this,"detached",void 0),x()(this,"checked",void 0),x()(this,"exactChecked",void 0),x()(this,"parentChecked",void 0),x()(this,"anyDescendentsChecked",void 0),x()(this,"allChildrenChecked",void 0),O()(this,t)}),rc=function(){function n(e){var r=this;i()(this,n),x()(this,"opts",void 0),x()(this,"valueSet",void 0),x()(this,"wrapperMap",void 0),x()(this,"rootWrapper",void 0),x()(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),y=(this.rootWrapper=new nc({root:!0,children:[]}),this.wrapperMap=new Map,this.opts.getNodeValue),b=this.isDetached,g=this.wrapperMap;!function e(t,n,r){t.allChildrenChecked=!0;var o,i=ec(n);try{for(i.s();!(o=i.n()).done;){var a=o.value,c=b(a),u=v.has(y(a)),l=(u&&!c&&(t.anyDescendentsChecked=!0),!c&&r),s=u||l,f=new nc({parent:t,node:a,checked:s,exactChecked:u,parentChecked:l,anyDescendentsChecked:s,detached:c});if(g.set(y(a),f),t.children.push(f),!_(a)&&(f.children=[],e(f,a.children,s),f.anyDescendentsChecked&&!c&&(t.anyDescendentsChecked=!0),f.allChildrenChecked)){f.checked=!0;var p,d=ec(f.children);try{for(d.s();!(p=d.n()).done;){var h=p.value;h.detached||(h.parentChecked=!0)}}catch(e){d.e(e)}finally{d.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){if(this.isChecked(e))return this.getCleanValue();e=to.merge(this.value,[e]);return new n(Qa(Qa({},this.opts),{},{value:e})).getCleanValue()}},{key:"getValueAfterUncheck",value:function(e){if(!this.isChecked(e))return this.getCleanValue();var e=this.wrapperMap.get(e),a=this.opts.getNodeValue,t=function(e){var t=[],n=e;for(;n.parentChecked&&!n.detached;){var r,o=ec(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=ec(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=to.diff(this.value.concat(t),e);return new n(Qa(Qa({},this.opts),{},{value:t})).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=ec(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 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){x()(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}var ac="treeSelect";function cc(p){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 w.a.createElement(r,{checked:s.isChecked(e),indeterminate:s.isIndeterminate(e),disabled:!t&&c(n),onChange:"checkbox"===a||t?function(){return f(e)}:void 0})}var a=null!=(t=p.clickArea)?t:"checkbox",c=null!=(t=p.isDisabled)?t:no(!1),t=null!=(t=p.idDetached)?t:no(!1),u=null!=(u=null!=(u=null!=(u=p.value)?u:n.getStateAtKey(ac))?u:p.defaultValue)?u:[],l=null!=p.rootKey?[(l={},x()(l,o,p.rootKey),x()(l,"children",p.tree),l)]:p.tree,s=p.checkStrictly?new Ja({value:u,getNodeValue:e,tree:l}):new rc({value:u,getNodeValue:e,isDetached:t,tree:l,checkedStrategy:null!=(u=p.checkedStrategy)?u:"parent"}),f=function(e){var t,e=s.getValueAfterToggle(e);n.setStateAtKey(ac,e),null!=(t=p.onChange)&&t.call(p,e)},t=ic(ic({name:"",width:50,align:"center",title:null!=p.rootKey?i(p.rootKey,!0):void 0},p.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){p.stopClickEventPropagation&&e.stopPropagation(),f(n)}}}}),l=n.getColumns().slice();return"start"===(null!=(u=p.checkboxPlacement)?u:"start")?l.unshift(t):l.push(t),n.columns(l),"row"===a&&n.appendRowPropsGetter(function(t){if(!c(t))return{style:{cursor:"pointer"},onClick:function(e){p.stopClickEventPropagation&&e.stopPropagation(),f(t[o])}}}),p.highlightRowWhenSelected&&n.appendRowPropsGetter(function(e){if(s.isChecked(e[o]))return{className:"highlight"}}),n}}t(293);function uc(o){var i,e=o.getStateAtKey(sc);e&&(i=0,o.mapColumns(So(function(e){var t,n=e.width,r=e.code;return _(e)&&r!==lc&&(t=o.getStateAtKey("columnResize"),i+=t&&t[r]||n),e})),e=0<(e=Math.floor(e-i))?e:0,o.getStateAtKey(fc,0)!==e&&o.setStateAtKey("fillColumnWidth",e))}var lc="$_fill_column_&",sc="tableWidth",fc="fillColumnWidth";function pc(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 dc(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?pc(Object(n),!0).forEach(function(e){x()(t,e,n[e])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):pc(Object(n)).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))})}return t}var hc="columnDrag",vc=30;function yc(e){e.preventDefault()}function bc(e){e.stopPropagation()}function gc(){var s=0<arguments.length&&void 0!==arguments[0]?arguments[0]:{};return function(P){var n=P.getStateAtKey(hc,{}).cloumnsTranslateData,e=P.getColumns(),i=P.ref.current.domHelper&&P.ref.current.domHelper.tableBody;return P.columns(e.filter(function(e){return e})),P.mapColumns(So(function(C,e){var t=e.path,e=e.isLeaf,r=n?{transition:".3s",transform:"translate3d(".concat(n[C.code],"px, 0px, 0px)")}:{},o=C.getCellProps;return C.lock||!C.code?C:dc(dc({},C),{},{getCellProps:function(e,t,n){return k(null==o?void 0:o(e,t,n),{style:r})},headerCellProps:k(C.headerCellProps,{onMouseDown:!e||1<t.length?void 0:function(e){var b,g,m,l,w,x,O,S,n,k,E,j;function r(e){var t={clientX:e.clientX,clientY:e.clientY},n=P.ref.current.domHelper.virtual.scrollLeft-k,r=x-n;if(E(t),!(e.clientX-r<20)){!1===j&&(j=!0,w.addEventListener("click",bc)),e.stopPropagation(),document.body.style.userSelect="none",w.style.cursor="move",m={},S.forEach(function(e){m[e.code]=0});for(var o,i=0,a=wc(g[i]);a<e.clientX-r&&i<g.length-1;)a+=wc(g[++i]);g.forEach(function(e,t){e.code===C.code&&(o=t)});var c=g[o],u=i;if(i<o)for(;u<o;){var l=g[u],s=l.code,f=l.lock,p=l.width,l=l.children;mc({code:s,lock:f})&&(m[s]+=c.width,_(g[u])?m[c.code]-=p:(m[c.code]-=wc(g[u]),xc(l,m,c.width)),b=!0),u++}else if(o<i)for(;o<u;){var d=g[u],h=d.code,v=d.lock,y=d.width,d=d.children;mc({code:h,lock:v})&&(m[h]-=c.width,_(g[u])?m[c.code]+=y:(m[c.code]+=wc(g[u]),xc(d,m,c.width,!0)),b=!0),u--}window.requestAnimationFrame(function(){P.setStateAtKey(hc,{cloumnsTranslateData:m}),O=[o,i]})}}0===e.button&&(window.addEventListener("selectstart",yc),b=!1,g=P.getColumns(),m=P.getStateAtKey(hc,{}).cloumnsTranslateData,l={},g.forEach(function(e,t){l[e.code]=t}),w=e.currentTarget,x=e.currentTarget.parentElement.getClientRects()[0].left,O=[],S=I(g),n=i.getBoundingClientRect(),k=P.ref.current.domHelper.virtual.scrollLeft,j=!(E=function(e){var e=e.clientX,t=n.left;t+n.width<=e+vc&&(P.ref.current.domHelper.virtual.scrollLeft+=vc),e-vc<=t&&(P.ref.current.domHelper.virtual.scrollLeft-=vc)}),document.body.addEventListener("mousemove",r),document.body.addEventListener("mouseup",function e(t){t.stopPropagation(),document.body.removeEventListener("mousemove",r),document.body.removeEventListener("mouseup",e),window.removeEventListener("selectstart",yc),window.requestAnimationFrame(function(){w.removeEventListener("click",bc),j=!1,w=null;var e,t=O,n=(t=A()(t,2))[0],t=t[1],r=g[n],o=t;if(t<n)for(;o<n;){var i=g[o],a=i.code;mc({code:a,lock:i.lock})&&(l[a]+=1,--l[r.code],b=!0),o++}else if(n<t)for(;n<o;){var c=g[o],u=c.code;mc({code:u,lock:c.lock})&&(--l[u],l[r.code]+=1,b=!0),o--}(t=s.onColumnDragStopped)&&(e=function(e,t){for(var n=new Array(e.length),r=R()(e);e.length;){var o=e.pop();n[t[o.code]]=o}return n.filter(Boolean).length!==r.length?r:n}(g,l).filter(function(e){return e.code!==lc}),t(b,e)),P.setStateAtKey(hc,{cloumnsTranslateData:null})}),document.body.style.userSelect="",w.style.opacity="",w.style.cursor=""}))},style:r})})}))}}function mc(e){var t=e.lock,e=e.code;return e&&e!==lc&&!t}function wc(e){return e.children?e.children.reduce(function(e,t){return e+wc(t)},0):e.width}function xc(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)||xc(n,o,i)})}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 Sc(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){x()(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}var kc=e.c.div(p()(['\n position: absolute;\n top: 0;\n right: -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 left: calc(50% - 1px);\n width: 1px;\n height: calc(100% - 14px);\n top: 7px;\n background-color: var(--border-color);\n }\n'])),Ec=Object(e.c)(kc)(p()(["\n &:after {\n height: 100%;\n top: 0;\n }\n"]));function jc(e,t,n){return Math.max(e,Math.min(n,t))}function Cc(e){e.preventDefault()}function Pc(){var e,u=0<arguments.length&&void 0!==arguments[0]?arguments[0]:{},r="columnResize",d=null!=(e=u.minSize)?e:60,l=null!=(e=u.fallbackSize)?e:150,h=null!=(e=u.maxSize)?e:1e3;return function(n){function i(e,t){null!=u&&u.doubleClickCallback(e,t)}function a(e,t){window.addEventListener("selectstart",Cc);var l={},n=e.clientX,r=t.children,s=t.code,f=p;e.stopPropagation(),y(window,"mousemove").pipe(si(y(window,"mouseup")),v(function(e){var o,i,e=e.clientX,a=Sc({},p),c=e-n,u=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]=jc(d,n+r,h),l[e]=a[e],u-=r):(a[e]=jc(d,n+u,h),l[e]=a[e])})):(e=p[s],a[s]=jc(d,e+c,h),l[s]=a[s]),f=a})).subscribe({next:o,complete:function(){var t=Object.keys(l).map(function(e){return{code:e,width:l[e]}});window.requestAnimationFrame(function(){var e;null!=u&&null!=(e=u.afterChangeSize)&&e.call(u,f,t)}),window.removeEventListener("selectstart",Cc)}})}var e,p=null!=(e=null!=(e=u.columnSize)?e:n.getStateAtKey(r))?e:{},o=(I(n.getColumns(),"leaf-only").forEach(function(e){var t=e.code,e=e.width;void 0===p[t]&&(p[t]="number"==typeof e?e:l)}),n.getStateAtKey(r)&&(null==(e=n.ref)?void 0:e.current.lastOptColumnSize)===u.columnSize||n.setStateAtKey(r,p),n.ref&&(n.ref.current.lastOptColumnSize=u.columnSize),function(t){window.requestAnimationFrame(function(){var e;n.setStateAtKey(r,t),null!=u&&null!=(e=u.onChangeSize)&&e.call(u,t),u.columnSize&&n.ref&&(n.ref.current.lastOptColumnSize=t)})}),c=Zr(n.getColumns());return n.mapColumns(So(function(t){var e=j.safeRenderHeader(t),n=t.code,r=t.features,o=t.width;return Sc(Sc({},t),{},{width:null!=(n=p[n])?n:o,title:w.a.createElement(w.a.Fragment,null,e,!1!==(null==r?void 0:r.resizeable)&&(c?w.a.createElement(Ec,{className:E.tableHeaderCellResize,onDoubleClick:function(e){return i(e,t)},onMouseDown:function(e){return a(e,t)}}):w.a.createElement(kc,{className:E.tableHeaderCellResize,onDoubleClick:function(e){return i(e,t)},onMouseDown:function(e){return a(e,t)}}))),headerCellProps:k(t.headerCellProps,{className:"resizeable"})})}))}}function Ac(){var p=0<arguments.length&&void 0!==arguments[0]?arguments[0]:{};return function(i){function a(e){function t(e){!function(e,t){if(!e||!t)return;if(No(t,e))return 1;return}(e,n)&&!r&&(r=!0,s.removeChild(n),o.forEach(function(e){window.removeEventListener(e,t,!0)}))}var n=document.createElement("div"),r=(n.setAttribute("class","kd-table-popup"),s.appendChild(n),!1),o=["mousedown","contextmenu"];return Fr.a.render(e,n,function(){setTimeout(function(){o.forEach(function(e){window.addEventListener(e,t,!0)})},0)}),t}function c(e,t,n,r){var o,i=[];return t&&i.push((o=n,{name:"复制",action:function(){Io(_o(o))}})),p.getContextMenuItems?p.getContextMenuItems({record:e,column:t,value:n,event:r}):i}function u(){f.destroy()}function l(){return s}var s=p.popupParent||document.body,f=new Ic,t=(i.addTableProps({onContextMenu:function(e){!function(e){var t=Lo(e.nativeEvent),n=0;for(;n<t.length;){var r=t[n];if(r.classList.contains(E.tableBody)||r.classList.contains(E.tableFooter))return;n++}return 1}(e)&&(e.preventDefault(),e.stopPropagation(),t(e))}}),function(e){var t,n=Lo(e),r=Ho(n,function(e){return e&&"table-cell"===e.getAttribute("data-role")}),n=((r?(t=r.getAttribute("data-code"),o=r.getAttribute("data-rowindex"),Tc(r)):(o=null==(r=Ho(n,function(e){return e&&"table-row"===e.getAttribute("data-role")}))?void 0:r.getAttribute("data-rowindex"),Tc(r)))?i.getFooterDataSource()||[]:i.getDataSource())[o],r=void 0!==t&&ro(i.getColumns(),function(e){return e.code===t}),o=r&&n&&j.safeGetValue(r,n,o),n=c(n,r,o,e);0===n.length?jt.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,s),o=a(w.a.createElement(Rc,{options:n,hideContextMenu:u,position:r,getPopupParent:l})),f.init(o))});return i}}function Rc(e){var t=e.options,t=void 0===t?[]:t,n=e.hideContextMenu,r=e.position,o=e.getPopupParent,i=Object(d.useRef)();return Object(d.useEffect)(function(){var e,t,n;i.current&&(e=o(),t=r.x,n=r.y,t=(e=function(e,t,n,r){var o=e.getBoundingClientRect(),i=document.documentElement,a=i.getBoundingClientRect(),c=t.getBoundingClientRect(),u=o.width,l=o.height;e===document.body&&(u=a.width,u-=Math.abs(a.left-o.left),l=a.height+i.scrollTop,l-=Math.abs(a.top-o.top));n&&(e=Math.min(c.width,120),t.style.minWidth=e+"px",i=u-e,n=Math.min(Math.max(n,0),Math.abs(i)));r&&(a=Math.min(c.height,180),o=l-a,r=Math.min(Math.max(r,0),Math.abs(o)));return{x:n,y:r}}(e,i.current,t,n)).x,n=e.y,i.current.style.left=t+"px",i.current.style.top=n+"px")},[r]),w.a.createElement(Ni,{className:b.menu,ref:i,style:{left:r.x,top:r.y}},w.a.createElement("div",{className:b.menuList},t.map(function(e,t){return w.a.createElement(_c,{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,disabled:e.disabled,hideContextMenu:n})})))}function _c(e){var t=e.name,n=e.action,r=e.disabled,o=e.hideContextMenu,i=Object(d.useRef)();return w.a.createElement("div",{className:S()(b.menuOption,x()({},b.menuOptionDisable,r)),ref:i,onClick:function(){r||(o(),"function"==typeof n&&n())},onMouseEnter:function(e){var t;r||(t=i.current)&&t.classList.add(b.menuOptionActive)},onMouseLeave:function(e){var t;r||(t=i.current)&&setTimeout(function(){t.classList.remove(b.menuOptionActive)},10)}},w.a.createElement("span",{className:b.menuOptionText},t))}var Ic=r()(function e(){var t=this;i()(this,e),x()(this,"hidePopup",void 0),x()(this,"init",function(e){t.hidePopup=e}),x()(this,"destroy",function(){t.hidePopup&&t.hidePopup(),t.hidePopup=null})});function Tc(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 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 Dc(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){x()(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 Lc=e.c.div(p()(["\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 .popup-header {\n display: flex;\n background-color: #ebedf1;\n\n .popup-header-icon {\n color:#666;\n background-color: #fff;\n padding: 6px 16px 6px 16px;\n display: inline-block;\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 .popup-body {\n display: flex;\n }\n"]));var Nc=function(e){var t,n,r=e.style,o=e.children,i=e.position,a=e.filterIcon,c=e.onClose,e=Object(d.useState)(i),u=(e=A()(e,2))[0],l=e[1],e=Object(d.useState)(!1),s=(e=A()(e,2))[0],f=e[1],p=w.a.useRef(null);return Object(d.useEffect)(function(){l(Bo(document.body,p.current,i.x,i.y,!0)),f(!0)},[i]),t=function(e){return!No(p.current,e)&&c()},n=["mousedown"],w.a.useEffect(function(){return n.forEach(function(e){return window.addEventListener(e,t,!0)}),function(){return n.forEach(function(e){return window.removeEventListener(e,t,!0)})}},[n,t]),w.a.createElement(Lc,{style:Dc(Dc({},r),{},{left:s?u.x:0,top:s?u.y:0,opacity:s?1:0}),ref:p},w.a.createElement("div",{className:"popup-header"},w.a.createElement("span",{className:"popup-header-icon"},a||w.a.createElement("svg",{width:14,height:14,viewBox:"64 64 896 896",focusable:"false","data-icon":"filter",fill:"currentColor","aria-hidden":"true"},w.a.createElement("path",{d:"M349 838c0 17.7 14.2 32 31.8 32h262.4c17.6 0 31.8-14.3 31.8-32V642H349v196zm531.1-684H143.9c-24.5 0-39.8 26.7-27.5 48l221.3 376h348.8l221.3-376c12.1-21.3-3.2-48-27.7-48z"})))),w.a.createElement("div",{className:"popup-body"},o))},Hc=[{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}}}],Fc=e.c.div(p()(["\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"]),yn);function zc(e){var t=e.setFilterModel,n=e.filterModel,r=e.hidePanel,e=w.a.useState((null==n?void 0:n.filterCondition)||"contain"),o=(e=A()(e,2))[0],i=e[1],e=w.a.useState((null==n?void 0:n.filter)||""),a=(e=A()(e,2))[0],c=e[1],u=w.a.useCallback(function(e){i(e.key)},[]);return Object(d.useEffect)(function(){i((null==n?void 0:n.filterCondition)||"contain"),c((null==n?void 0:n.filter)||"")},[n]),w.a.createElement(Fc,null,w.a.createElement("div",{className:"filter-option-list"},w.a.createElement("ul",null,Hc.map(function(e,t){return w.a.createElement("li",{key:t,className:e.key===o?"active":"",onClick:function(){return u(e)}},e.title)}))),"notIsNull"!==o&&"isNull"!==o&&w.a.createElement("div",{className:"filter-search"},w.a.createElement("input",{className:"filter-search-inner",value:a,onChange:function(e){c(e.target.value)}})),w.a.createElement("div",{className:"filter-footer"},w.a.createElement("button",{className:S()(x()({"filter-btn":!0},E.button,!0)),onClick:function(){r(),t()}},"重置"),w.a.createElement("button",{className:S()((e={"filter-btn":!0},x()(e,E.button,!0),x()(e,E.buttonPrimary,!0),e)),onClick:function(){r(),t({filter:[a],filterCondition:o})}},"确定")))}var Bc=7,Vc=17,Kc=e.c.span(p()(["\n // position: absolute;\n // right: 4px;\n // cursor: pointer;\n // transform: translateY(-50%);\n // top: 50%;\n // height: 12px; \n"]));function Wc(e){function t(e){u(zo(n,document.body,{x:Vc,y:Bc}))}var n=e.ele,r=e.filterIcon,o=e.hidePanel,e=e.renderPanelContent,i=w.a.useRef(null),a=w.a.useState(zo(n,document.body,{x:Vc,y:Bc})),a=A()(a,2),c=a[0],u=a[1];return Object(d.useEffect)(function(){var e=Gt(i.current.children[0],t);return function(){e&&e.disconnect()}},[]),w.a.createElement("div",{ref:i},w.a.createElement(Nc,{style:{position:"absolute",zIndex:1050},onClose:o,position:c,filterIcon:r},e()))}var $c=function(e){function t(){return h(!1)}var n,r=void 0===(r=e.size)?12:r,o=e.style,i=e.className,a=e.FilterPanelContent,c=e.filterIcon,u=e.setFilter,l=e.setFilterModel,s=e.filterModel,f=e.isFilterActive,p=e.stopClickEventPropagation,e=w.a.useState(!1),d=(e=A()(e,2))[0],h=e[1],e=w.a.useRef(null),i=S()((n={},x()(n,i,!0),x()(n,"filter-panel-open",d),n));return w.a.createElement(Kc,{style:o,className:i,onMouseDown:function(e){e.stopPropagation()},ref:e},w.a.createElement("span",{className:E.filterIcon,onClick:function(e){p&&e.stopPropagation(),h(!0)}},c||w.a.createElement("svg",{width:r,height:r,viewBox:"64 64 896 896",focusable:"false","data-icon":"filter",fill:"currentColor","aria-hidden":"true"},w.a.createElement("path",{d:"M349 838c0 17.7 14.2 32 31.8 32h262.4c17.6 0 31.8-14.3 31.8-32V642H349v196zm531.1-684H143.9c-24.5 0-39.8 26.7-27.5 48l221.3 376h348.8l221.3-376c12.1-21.3-3.2-48-27.7-48z"}))),d&&Object(Hr.createPortal)(w.a.createElement(Wc,{ele:e.current,filterIcon:c,hidePanel:t,renderPanelContent:function(){return a?w.a.createElement(a,{setFilter:u,filterModel:s,isFilterActive:f,hidePanel:t}):w.a.createElement(zc,{setFilterModel:l,filterModel:s,isFilterActive:f,hidePanel:t})}}),document.body))};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){x()(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 Uc="filter";function qc(){var o=0<arguments.length&&void 0!==arguments[0]?arguments[0]:{};return function(l){var e=l.getDataSource(),t=l.getColumns(),n=o.filters,r=o.defaultFilters,s=o.onChangeFilters,c=o.keepDataSource,f=o.mode,p=o.filterIcon,d=o.stopClickEventPropagation,r=null!=(n=null!=(n=null!=n?n:l.getStateAtKey(Uc))?n:r)?n:[],r="single"===f?r.slice(0,1):r,h=new Map(r.map(function(e){return[e.code,Yc({},e)]}));return l.dataSource(function(e){var n=[];if(h.forEach(function(e,t){n.push(t)}),c||n.length<=0)return e;var i,t=l.getColumns(),o=new Map(I(t,"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]})),a=new Map(Hc.map(function(e){return[e.key,Yc({},e)]}));return i=function(r){return n.every(function(e){var t=h.get(e),n=null==(n=o.get(e))||null==(n=n.features)?void 0:n.filterable,n="function"==typeof n?n:a.get(t.filterCondition)?a.get(t.filterCondition).filter:(console.warn("列[".concat(e,"]未配置筛选函数,请设置 column.features.filterable 来作为该列的筛选函数, 目前使用默认包含筛选函数")),a.get("contain").filter);return n(t.filter,t)(j.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=i(e);if(_(e))return(o||t)&&Yc({},e);var n=e.children,e=Yc(Yc({},e),{},{children:r(n,o||t)}),n=!_(e);return(o||t||n)&&e}).filter(Boolean)}(e)}(e)),l.columns(t.map(function e(r){var t=Yc({},r);var n=r.code&&(null==(n=r.features)?void 0:n.filterable);var o=n&&0<(null==h||null==(o=h.get(r.code))||null==(o=o.filter)?void 0:o.length);{var i,a,c,u;n&&(a=function(e){var t=new Map(h),n=Yc({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(Uc,e)},n=function(e,t){a(e?{code:r.code,filter:e,filterCondition:t}:void 0)},c=null==(c=r.features)?void 0:c.filterPanel,u=null!=(u=null==(u=r.features)?void 0:u.filterIcon)?u:p,t.title=[].concat(R()([].concat(null!=(i=t.title)?i:[j.safeRenderHeader(Yc(Yc({},r),{},{title:null}))])),[w.a.createElement($c,{key:"filter",FilterPanelContent:c,filterIcon:u,filterModel:h.get(r.code),setFilterModel:a,setFilter:n,isFilterActive:o,className:S()((i={},x()(i,E.tableFilterTrigger,!0),x()(i,"active",o),i)),stopClickEventPropagation:d})]))}_(r)||(t.children=r.children.map(e));return t})),l}}function Xc(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?Xc(Object(n),!0).forEach(function(e){x()(t,e,n[e])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):Xc(Object(n)).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))})}return t}var Zc="rangeSelection",Qc="lastClickCell";function eu(a){return function(g){var u=30,r=g.ref.current.domHelper&&g.ref.current.domHelper.tableBody,o=g.ref.current.domHelper&&g.ref.current.domHelper.tableFooter;if(!r)return g;var l=g.getColumns(),c=g.getDataSource(),s=function(e){var t;g.setStateAtKey(Zc,e),null!=a&&null!=(t=a.rangeSelectedChange)&&t.call(a,e)},n=function(e,t){var n,r,o,i,a;e&&t&&(n=e,r=t,o=I(o=l,"leaf-only"),a=o.findIndex(function(e){return e.code===n.code}),i=o.findIndex(function(e){return e.code===r.code}),o=a<i?o.slice(a,i+1):o.slice(i,a+1),a=(i=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.isInFooter===t.isInFooter}(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.isInFooter||t.isInFooter?r=e.isInFooter&&t.isInFooter?{startRow:c,endRow:a}:e.isInFooter?(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,c)).startRow,t=i.endRow,i=i.footerRowRange,a={startRow:a,endRow:t,columns:o,startColumn:e.column,footerRowRange:i},s(a))},i=function(e){var t=tu(e.target,l);t&&(e.shiftKey?(e=g.getStateAtKey(Qc))?n(e,t):g.setStateAtKey(Qc,t):(g.setStateAtKey(Qc,t),n(t,t)))};return g.addTableProps({onMouseDown:function(e){var a,t,c;0===e.button&&(No(r,e.nativeEvent)||No(o,e.nativeEvent))&&(i(e),a=tu(e.target,l),e=y(window,"mousemove"),t=y(window,"mouseup"),c=r.getBoundingClientRect(),e.pipe(v(function(e){var t,n,r,o,i=tu(e.target||e.srcElement,l),e={clientX:e.clientX,clientY:e.clientY};return t=(e=e).clientX,e=e.clientY,n=c.left,r=c.top,o=c.height,n+c.width<=t+u&&(g.ref.current.domHelper.virtual.scrollLeft+=u),t-u<=n&&(g.ref.current.domHelper.virtual.scrollLeft-=u),r+o<=e+u&&(g.ref.current.domHelper.tableBody.scrollTop+=u),e+u<=r&&(g.ref.current.domHelper.tableBody.scrollTop-=u),{startDragCell:a,draggingCell:i}}),si(t)).subscribe(function(e){var t=e.startDragCell,e=e.draggingCell;n(t,e)}))},onKeyDown:function(e){var t,n;(No(r,e.nativeEvent)||No(o,e.nativeEvent))&&(e.ctrlKey||e.metaKey)&&"a"===e.key&&(t=g.getDataSource().length,n=g.getFooterDataSource()||[],l.length&&t&&(!1!==a.preventkDefaultOfKeyDownEvent&&e.preventDefault(),s({startRow:0,endRow:t-1,columns:l,startColumn:l[0],footerRowRange:0<n.length?{startRow:0,endRow:n.length-1}:null})))},tabIndex:-1,className:S()([E.rangeSelection])}),g.mapColumns(So(function(v){var y=g.getStateAtKey(Zc);if(!y||-1===y.columns.findIndex(function(e){return e.code===v.code}))return v;var b=v.getCellProps;return Jc(Jc({},v),{},{getCellProps:function(e,t,n){var r,o,e=null==b?void 0:b(e,t,n),t=t[g.getFeatureOptions("footerRowMetaKey")],i=y.startRow,a=y.endRow,c=y.columns,u=y.footerRowRange,i=nu(i,a),a=i.startRowIndex,i=i.endRowIndex,l=function(e){if(e)return nu(e.startRow,e.endRow);return{startRowIndex:-1,endRowIndex:-1}}(u),s=l.startRowIndex,l=l.endRowIndex,f=c[0],c=c[c.length-1],p=t&&u&&s<=n&&n<=l||!t&&a<=n&&n<=i,d=p&&(r=(d=y).startRow,o=d.endRow,h=d.columns,d=d.footerRowRange,o=!d&&r===o&&1===h.length,r=-1===r&&d.startRow===d.endRow&&1===h.length,o||r),h=p&&!d;return k(e,{className:S()((o={},x()(o,E.tableCellRangeSingleCell,d),x()(o,E.tableCellRangeSelected,h),x()(o,E.tableCellRangeTop,h&&(t?-1===a&&n===s:n===a)),x()(o,E.tableCellRangeLeft,h&&v.code===f.code),x()(o,E.tableCellRangeBottom,h&&(t?n===l:!u&&n===i)),x()(o,E.tableCellRangeRight,h&&v.code===c.code),o))})}})}))}}function tu(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,isInFooter:function(e){for(;e&&!e.classList.contains(E.artTable);){if(e.classList.contains(E.tableFooter))return!0;e=e.parentElement}return!1}(t)}}:{v:null}}();if("object"===H()(e))return e.v}t=t.parentElement}return null}function nu(e,t){var n=t<e;return{startRowIndex:n?t:e,endRowIndex:n?e:t}}function ru(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 ou(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?ru(Object(n),!0).forEach(function(e){x()(t,e,n[e])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):ru(Object(n)).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))})}return t}function iu(){return function(o){return o.mapColumns(So(function(e){if(!_(e))return e;var r=e.getCellProps;return ou(ou({},e),{},{getCellProps:function(e,t,n){return k(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")})}})}})}))}}function au(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 cu=Symbol("footer-row");function uu(){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:cu;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?au(Object(n),!0).forEach(function(e){x()(t,e,n[e])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):au(Object(n)).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))})}return t}(x()({},r,!0),e)})):console.warn("调用 pipeline.use(features.footerDataSource()) 前请先设置页脚数据源,设置方法有:pipeline.use(features.footerDataSource({dataSource:any[]})) 或者 pipeline.footerDataSource(any[])"),e}}function lu(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 su(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?lu(Object(n),!0).forEach(function(e){x()(t,e,n[e])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):lu(Object(n)).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))})}return t}var fu=function(){function o(e){var t=e.state,n=e.setState,r=e.ctx,e=e.ref;i()(this,o),x()(this,"ref",void 0),x()(this,"_snapshots",{}),x()(this,"_rowPropsGetters",[]),x()(this,"_tableProps",{}),x()(this,"_dataSource",void 0),x()(this,"_columns",void 0),x()(this,"_footerDataSource",void 0),x()(this,"ctx",{components:{},indents:o.defaultIndents}),x()(this,"state",void 0),x()(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=k(this._tableProps,e)}},{key:"getDataSource",value:function(e){return null==e?this._dataSource:this._snapshots[e].dataSource}},{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 su(su({},e),{},x()({},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._dataSource=e.dataSource,this._columns=e.columns.map(function(e){return su(su({},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(function(e){var t=e.getStateAtKey(fc,0),n=e.getColumns(),r=n.find(function(e){return e.code===lc});return r?r.width=t:(r=an(n.slice().reverse()),r=n.length-r,n.splice(r||n.length,0,{name:"",code:lc,width:t,features:{resizeable:!1},getCellProps:function(e,t,n){return{className:E.emptyColCell}}})),e.columns(n),uc(e),e}),{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 k(e,t(n,r))},{})}),e.getTableProps=function(){return t._tableProps},e.setTableWidth=function(e){t.getStateAtKey(sc)!==e&&t.setStateAtKey(sc,e)},e.setTableDomHelper=function(e){t.ref.current.domHelper=e},e}},{key:"clearRangeSelection",value:function(){this.setStateAtKey(Zc,null)}}]),o}();function pu(e){var t=Object(d.useState)({}),t=A()(t,2),n=t[0],t=t[1],r=Object(d.useRef)({});return r.current.featureOptions={},new fu({state:n,setState:t,ctx:e,ref:r})}x()(fu,"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=196);function o(e){if(a[e])return a[e].exports;var t=a[e]={i:e,l:!1,exports:{}};return i[e].call(t.exports,t,t.exports,o),t.l=!0,t.exports}var i,a});
|
|
215
|
+
*/function Tr(){var a,n,r,o=0<arguments.length&&void 0!==arguments[0]?arguments[0]:{},i="cssVars(): ",w=C({},Pr,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 O(e){!w.silent&&window.console&&console.warn("".concat(i).concat(e)),w.onWarning(e)}function S(e){w.onFinally(Boolean(e),jr,Dr()-w.__benchmark)}if(Er){if(w.watch)return w.watch=Pr.watch,a=w,window.MutationObserver&&(g&&(g.disconnect(),g=null),(g=new MutationObserver(function(e){e.some(function(e){return function(e){var t=!1;{var n,r,o,i;"attributes"===e.type&&u(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&&Lr(a.rootElement,!0),t=!0))}return t}(e)||function(e){var t=!1;{var n;"childList"===e.type&&(n=l(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=l(e)&&I.cssVars.test(e.textContent);return!t&&(u(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&&Lr(a.rootElement,!0),e&&e.parentNode.removeChild(e)),r}));return t}(e)})&&Tr(a)})).observe(document.documentElement,{attributes:!0,attributeFilter:["disabled","href"],childList:!0,subtree:!0})),void Tr(w);if(!1===w.watch&&g&&(g.disconnect(),g=null),!w.__benchmark){if(Ar===w.rootElement)return void function(e){var t=1<arguments.length&&void 0!==arguments[1]?arguments[1]:100;clearTimeout(_r),_r=setTimeout(function(){e.__benchmark=null,Tr(e)},t)}(o);var e=[].slice.call(w.rootElement.querySelectorAll('[data-cssvars]:not([data-cssvars="out"])'));w.__benchmark=Dr(),w.exclude=[g?'[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",""))}),g||([].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)}),Rr&&e.length<Rr&&(Rr=e.length,T.dom={}))}"loading"!==document.readyState?jr&&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)})),S(n)):!Ir&&(w.shadowDOM||w.rootElement.shadowRoot||w.rootElement.host)?dr({rootElement:Pr.rootElement,include:Pr.include,exclude:w.exclude,skipDisabled:!1,onSuccess:function(e,t,n){return(!(t.sheet||{}).disabled||t.__cssVars)&&((e=e.replace(I.cssComments,"").replace(I.cssMediaQueries,"")).match(I.cssVarDeclRules)||[]).join("")||!1},onComplete:function(e,t,n){wr(e,{store:T.dom,onWarning:O}),Ir=!0,Tr(w)}}):(Ar=w.rootElement,dr({rootElement:w.rootElement,include:w.include,exclude:w.exclude,skipDisabled:!1,onBeforeSend:w.onBeforeSend,onError:function(e,t,n){var n=e.responseURL||Mr(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){if((t.sheet||{}).disabled&&!t.__cssVars)return!1;var r,o,i="link"===t.nodeName.toLowerCase(),a="style"===t.nodeName.toLowerCase()&&e!==t.textContent,t=w.onSuccess(e,t,n);return e=void 0!==t&&!1===Boolean(t)?"":t||e,w.updateURLs&&(i||a)&&(o=n,((r=e).replace(I.cssComments,"").match(I.cssUrls)||[]).forEach(function(e){var t=e.replace(I.cssUrls,"$1"),n=Mr(t,o);r=r.replace(e,e.replace(t,n))}),e=r),e},onComplete:function(e,l){var t=2<arguments.length&&void 0!==arguments[2]?arguments[2]:[],n=C({},T.dom,T.user);if(T.job={},t.forEach(function(t,e){e=l[e];if(t.__cssVars=t.__cssVars||{},t.__cssVars.text=e,I.cssVars.test(e))try{var n=mr(e,{preserveStatic:w.preserveStatic,removeComments:!0});wr(n,{parseHost:Boolean(w.rootElement.host),store:T.dom,onWarning:O}),t.__cssVars.tree=n}catch(e){x(e.message,t)}}),C(T.job,T.dom),w.updateDOM?(C(T.user,w.variables),C(T.job,T.user)):(C(T.job,T.user,w.variables),C(n,w.variables)),0<Cr.job&&Boolean(Object.keys(T.job).length>Object.keys(n).length||Boolean(Object.keys(n).length&&Object.keys(T.job).some(function(e){return T.job[e]!==n[e]}))))Lr(w.rootElement),Tr(w);else{var s=[],f=[],p=!1;if(w.updateDOM&&Cr.job++,t.forEach(function(t,e){var n=!t.__cssVars.tree;if(t.__cssVars.tree)try{kr(t.__cssVars.tree,C({},w,{variables:T.job,onWarning:O}));var r,o,i,a,c,u=xr(t.__cssVars.tree);w.updateDOM?(r=l[e],o=I.cssVarFunc.test(r),t.getAttribute("data-cssvars")||t.setAttribute("data-cssvars","src"),u.length&&o&&(i=t.getAttribute("data-cssvars-group")||++Cr.group,a=u.replace(/\s/g,""),c=w.rootElement.querySelector('[data-cssvars="out"][data-cssvars-group="'.concat(i,'"]'))||document.createElement("style"),p=p||I.cssKeyframes.test(u),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",Cr.job),e.setAttribute("data-cssvars-group",i)}),c.textContent=u,s.push(u),f.push(c),c.parentNode||t.parentNode.insertBefore(c,t.nextSibling)))):t.textContent.replace(/\s/g,"")!==u&&s.push(u)}catch(e){x(e.message,t)}n&&t.setAttribute("data-cssvars","skip"),t.hasAttribute("data-cssvars-job")||t.setAttribute("data-cssvars-job",Cr.job)}),Rr=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")&&Tr(C({},w,{rootElement:r.shadowRoot}));if(w.updateDOM&&p){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=t.getElementsByTagName("*"),u=[],d="__CSSVARSPONYFILL-KEYFRAMES__",h=0,v=c.length;h<v;h++){var y=c[h];"none"!==getComputedStyle(y)[a]&&(y.style[a]+=d,u.push(y))}document.body.offsetHeight;for(var b=0,g=u.length;b<g;b++){var m=u[b].style;m[a]=m[a].replace(d,"")}}}Ar=!1,w.onComplete(s.join(""),f,JSON.parse(JSON.stringify(T.job)),Dr()-w.__benchmark),S(f.length)}}})):document.addEventListener("DOMContentLoaded",function e(t){Tr(o),document.removeEventListener("DOMContentLoaded",e)})}function c(e){var t=u(e)&&e.hasAttribute("disabled"),e=(e.sheet||{}).disabled;return t||e}function u(e){return"link"===e.nodeName.toLowerCase()&&-1!==(e.getAttribute("rel")||"").indexOf("stylesheet")}function l(e){return"style"===e.nodeName.toLowerCase()}}function Mr(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 Dr(){return Er&&(window.performance||{}).now?window.performance.now():(new Date).getTime()}function Lr(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&&(T.dom={})}Tr.reset=function(){for(var e in Cr.job=0,Cr.group=0,Ar=!1,g&&(g.disconnect(),g=null),Rr=0,_r=null,Ir=!1,T)T[e]={}};var Nr=Tr,Hr=t(67),Fr=t.n(Hr);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 m(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){x()(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}var Br=new Map;function Vr(e){var i=Object(d.useRef)(null),t=e.row,a=e.rowIndex,n=e.domHelper,e=e.renderDetail,c=n.artTable;return Object(d.useEffect)(function(){function e(e){return".".concat(e," .").concat(E.tableRow,'[data-rowindex="').concat(a,'"]')}var t=i.current&&i.current.getBoundingClientRect(),n=c.querySelector(e(E.tableBody)),r=c.querySelector(e(E.fixedLeft)),o=c.querySelector(e(E.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(d.useEffect)(function(){var e=n.getRowTop(a)||0;i.current.style.transform="translateY(".concat(e+"px",")")}),w.a.createElement("div",{ref:i,className:E.rowDetailItem},e(t,a))}function Kr(e){return Br.get(e)}function Wr(e,t){var n,r="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!r){if(Array.isArray(e)||(r=function(e,t){if(e){if("string"==typeof e)return $r(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Map"===(n="Object"===n&&e.constructor?e.constructor.name:n)||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?$r(e,t):void 0}}(e))||t&&e&&"number"==typeof e.length)return r&&(e=r),n=0,{s:t=function(){},n:function(){return n>=e.length?{done:!0}:{done:!1,value:e[n++]}},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.")}var o,i=!0,a=!1;return{s:function(){r=r.call(e)},n:function(){var e=r.next();return i=e.done,e},e:function(e){a=!0,o=e},f:function(){try{i||null==r.return||r.return()}finally{if(a)throw o}}}}function $r(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 Gr(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=J()(n);return e=r?(e=J()(this).constructor,Reflect.construct(t,arguments,e)):t.apply(this,arguments),X()(this,e)}}Nt.isIE&&(Br.set("header",function(e,t){var n=t.stickyTop,t=t.hasHeader,r=e.flat,o=e.nested,i=e.visible,a=e.hasLockColumn,c=r.left,r=r.right,u=o.left,l=o.right,o=kn(o.full)+1;return w.a.createElement("div",{className:S()(E.tableHeader)},w.a.createElement("div",{className:S()(E.tableHeaderMain,"no-scrollbar"),style:{top:0===n?void 0:n,display:t?void 0:"none"}},w.a.createElement(Tn,{info:e,theaderPosition:a?"center":void 0})),0<c.length?w.a.createElement("div",{className:E.fixedLeft},w.a.createElement(Tn,{info:m(m({},e),{},{flat:{center:c,full:c,left:[],right:[]},nested:{center:u,full:u,left:[],right:[]},visible:i.slice(0,c.length),horizontalRenderRange:{leftIndex:0,leftBlank:0,rightIndex:c.length,rightBlank:0}}),theaderPosition:"left",rowCount:o})):null,0<r.length?w.a.createElement("div",{className:E.fixedRight},w.a.createElement(Tn,{info:m(m({},e),{},{flat:{center:r,full:r,left:[],right:[]},nested:{center:l,full:l,left:[],right:[]},visible:i.slice(i.length-r.length),horizontalRenderRange:{leftIndex:0,leftBlank:0,rightIndex:r.length,rightBlank:0}}),theaderPosition:"right",rowCount:o})):null)}),Br.set("body",function(e,t,n){var r=t.dataSource,o=t.getRowProps,t=t.primaryKey,i=(u=e.verticalRenderRange).topIndex,a=u.bottomBlank,c=u.topBlank,u=u.bottomIndex,l=e.flat,s=e.visible,f=e.hasLockColumn,p=l.left,l=l.right,d={first:0,offset:i,limit:u,last:r.length-1},o={getRowProps:Xt(o,n.rowProps),primaryKey:t,data:r.slice(i,u)},t={right:-n.stickyRightOffset};return w.a.createElement("div",{className:S()(E.tableBody,E.horizontalScrollContainer)},w.a.createElement("div",{className:E.virtual,tabIndex:-1},0<c&&w.a.createElement("div",{key:"top-blank",className:S()(E.virtualBlank,"top"),style:{height:c}}),w.a.createElement(ur,O()({tbodyHtmlTag:"tbody"},o,{tbodyPosition:f?"center":void 0,horizontalRenderInfo:e,verticalRenderInfo:d})),0<a&&w.a.createElement("div",{key:"bottom-blank",className:S()(E.virtualBlank,"bottom"),style:{height:a}})),0<p.length?w.a.createElement("div",{className:E.fixedLeft},0<c&&w.a.createElement("div",{key:"top-blank",className:S()(E.virtualBlank,"top"),style:{height:c}}),w.a.createElement(ur,O()({tbodyHtmlTag:"tbody"},o,{tbodyPosition:"left",horizontalRenderInfo:m(m({},e),{},{flat:{center:p,full:p,left:[],right:[]},visible:s.slice(0,p.length)}),verticalRenderInfo:d})),0<a&&w.a.createElement("div",{key:"bottom-blank",className:S()(E.virtualBlank,"bottom"),style:{height:a}})):null,0<l.length?w.a.createElement("div",{className:E.fixedRight,style:t},0<c&&w.a.createElement("div",{key:"top-blank",className:S()(E.virtualBlank,"top"),style:{height:c}}),w.a.createElement(ur,O()({tbodyHtmlTag:"tbody"},o,{tbodyPosition:"right",stickyRightOffset:n.stickyRightOffset,horizontalRenderInfo:m(m({},e),{},{flat:{center:l,full:l,left:[],right:[]},visible:s.slice(s.length-l.length)}),verticalRenderInfo:d})),0<a&&w.a.createElement("div",{key:"bottom-blank",className:S()(E.virtualBlank,"bottom"),style:{height:a}})):null,w.a.createElement("div",{className:E.rowDetailContainer}))}),Br.set("footer",function(e,t,n){var r=void 0===(r=t.footerDataSource)?[]:r,o=t.getRowProps,i=t.primaryKey,t=t.stickyBottom,o=Xt(o,n.rowProps),n=e.flat,a=e.visible,c=e.hasLockColumn,u=n.left,n=n.right,o={data:r,getRowProps:o,primaryKey:i,verticalRenderInfo:{offset:0,first:0,last:r.length-1,limit:1/0}};return w.a.createElement("div",{className:S()(E.tableFooter),style:{bottom:0===t?void 0:t}},w.a.createElement("div",{className:S()(E.tableFooterMain,E.horizontalScrollContainer)},w.a.createElement(ur,O()({tbodyHtmlTag:"tfoot"},o,{tbodyPosition:c?"center":void 0,horizontalRenderInfo:e}))),0<u.length?w.a.createElement("div",{className:E.fixedLeft},w.a.createElement(ur,O()({tbodyHtmlTag:"tfoot"},o,{tbodyPosition:"left",horizontalRenderInfo:m(m({},e),{},{flat:{center:u,full:u,left:[],right:[]},visible:a.slice(0,u.length)})}))):null,0<n.length?w.a.createElement("div",{className:E.fixedRight},w.a.createElement(ur,O()({tbodyHtmlTag:"tfoot"},o,{tbodyPosition:"right",horizontalRenderInfo:m(m({},e),{},{flat:{center:n,full:n,left:[],right:[]},visible:a.slice(a.length-n.length)})}))):null)}),Br.set("rowDetail",function(e){var t=e.domHelper;if(t)return t=(t=t.artTable)&&t.querySelector(".".concat(E.rowDetailContainer)),Fr.a.createPortal(w.a.createElement(Vr,e),t)}));var Yr=!1;var Ur=function(e){q()(n,e);var t=Gr(n);function n(e){var d;return i()(this,n),d=t.call(this,e),x()(o()(d),"rowHeightManager",nr(d.props.dataSource.length,d.props.estimatedRowHeight)),x()(o()(d),"artTableWrapperRef",w.a.createRef()),x()(o()(d),"domHelper",void 0),x()(o()(d),"rootSubscription",new s),x()(o()(d),"lastInfo",void 0),x()(o()(d),"props$",void 0),x()(o()(d),"hasScrollY",!1),x()(o()(d),"resizeObserver",void 0),x()(o()(d),"resizeSubject",new ye),x()(o()(d),"offsetY",0),x()(o()(d),"handleRowMouseEnter",function(e){e=d.domHelper.getRowNodeListByEvent(e);e&&e.forEach(function(e){e.classList.add("row-hover")})}),x()(o()(d),"handleRowMouseLeave",function(e){e=d.domHelper.getRowNodeListByEvent(e);e&&e.forEach(function(e){e.classList.remove("row-hover")})}),x()(o()(d),"renderTableBody",function(e){var t,n=d.props,r=n.dataSource,o=n.getRowProps,i=n.primaryKey,a=n.isLoading,c=n.emptyCellHeight,n=(n.footerDataSource,S()(E.tableBody,E.horizontalScrollContainer)),u=Nt.isIE||Nt.isEdge?{overflow:"hidden"}:{};if(0===r.length)return l=(s=d.props).components,t=s.emptyContent,null==(s=l.EmptyContent)&&null!=t&&(Yr||(Yr=!0,jt.warn("BaseTable props.emptyContent 已经过时,请使用 props.components.EmptyContent 来自定义数据为空时的表格表现")),s=function(){return t}),w.a.createElement("div",{className:S()(n,"empty")},w.a.createElement("div",{className:E.virtual,tabIndex:-1,style:u},w.a.createElement(xn,{descriptors:e.visible,isLoading:a,EmptyContent:s,emptyCellHeight:c})));var l=e.verticalRenderRange,a=l.topIndex,s=l.bottomBlank,c=l.topBlank,l=l.bottomIndex,f=d.hasScrollY?d.getScrollBarWidth():0,p=Kr("body");return"function"==typeof p?p(e,d.props,{rowProps:{onMouseEnter:d.handleRowMouseEnter,onMouseLeave:d.handleRowMouseLeave},stickyRightOffset:f}):w.a.createElement("div",{className:n},w.a.createElement("div",{className:E.virtual,tabIndex:-1,style:u},0<c&&w.a.createElement("div",{key:"top-blank",className:S()(E.virtualBlank,"top"),style:{height:c}}),w.a.createElement(ur,{tbodyHtmlTag:"tbody",getRowProps:o,primaryKey:i,data:r.slice(a,l),stickyRightOffset:f,horizontalRenderInfo:e,verticalRenderInfo:{first:0,offset:a,limit:l,last:r.length-1}}),0<s&&w.a.createElement("div",{key:"bottom-blank",className:S()(E.virtualBlank,"bottom"),style:{height:s}})))}),d.state={hasScroll:!0,hasScrollY:!0,needRenderLock:!0,offsetY:0,offsetX:0,maxRenderHeight:600,maxRenderWidth:800},d}return r()(n,[{key:"getDoms",value:function(){return jt.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,o=o.offsetWidth,t="auto"===(t=this.props.stickyScrollHeight)?this.getScrollBarWidth():t,r.style.height="".concat(t,"px"),e<=o?this.state.hasScroll&&this.setState({hasScroll:!1}):!this.state.hasScroll&&5<t&&this.setState({hasScroll:!0}),this.domHelper.virtual.offsetHeight>this.domHelper.tableBody.offsetHeight?this.hasScrollY=!0:(r.style.paddingRight="".concat(t,"px"),this.hasScrollY=!1),i!==this.hasScrollY&&null!=(r=(o=this.props).setTableWidth)&&r.call(o,this.domHelper.tableBody.clientWidth),n.style.width="".concat(e,"px"))}},{key:"renderTableHeader",value:function(e){var t=this.props,n=t.stickyTop,t=t.hasHeader,r=Kr("header");return"function"==typeof r?r(e,this.props):w.a.createElement("div",{className:S()(E.tableHeader,"no-scrollbar"),style:{top:0===n?void 0:n,display:t?void 0:"none"}},w.a.createElement(Tn,{info:e}),w.a.createElement("div",{className:E.verticalScrollPlaceholder,style:this.hasScrollY?{width:this.getScrollBarWidth()}:void 0}))}},{key:"updateOffsetX",value:function(e){this.lastInfo.useVirtual.horizontal&&Math.abs(e-this.state.offsetX)>=Bt/2&&this.setState({offsetX:e})}},{key:"syncHorizontalScrollFromTableBody",value:function(){this.syncHorizontalScroll(this.domHelper.virtual.scrollLeft)}},{key:"syncHorizontalScroll",value:function(e){this.updateOffsetX(e);var t=this.lastInfo.flat,n=this.domHelper.getLeftLockShadow(),n=(n&&(0<t.left.length&&this.state.needRenderLock&&0<e?n.classList.add("show-shadow"):n.classList.remove("show-shadow")),this.domHelper.getRightLockShadow());n&&(0<t.right.length&&this.state.needRenderLock&&e<this.domHelper.virtual.scrollWidth-this.domHelper.virtual.clientWidth?n.classList.add("show-shadow"):n.classList.remove("show-shadow"))}},{key:"getVerticalRenderRange",value:function(e){var t=this.props.dataSource,n=this.state,r=n.offsetY,n=n.maxRenderHeight,t=t.length;return e.vertical?this.rowHeightManager.getRenderRange(r,n,t):{topIndex:0,topBlank:0,bottomIndex:t,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=Kr("footer");return"function"==typeof i?i(e,this.props,{rowProps:{onMouseEnter:this.handleRowMouseEnter,onMouseLeave:this.handleRowMouseLeave}}):w.a.createElement("div",{className:S()(E.tableFooter,E.horizontalScrollContainer),style:{bottom:0===t?void 0:t}},w.a.createElement(ur,{tbodyHtmlTag:"tfoot",data:n,horizontalRenderInfo:e,getRowProps:r,primaryKey:o,verticalRenderInfo:{offset:0,first:0,last:n.length-1,limit:1/0}}),w.a.createElement("div",{className:E.verticalScrollPlaceholder,style:this.hasScrollY?{width:this.getScrollBarWidth(),visibility:"initial"}:void 0}))}},{key:"renderLockShadows",value:function(e){return w.a.createElement(w.a.Fragment,null,w.a.createElement("div",{className:E.lockShadowMask,style:{left:0,width:e.leftLockTotalWidth+20}},w.a.createElement("div",{className:S()(E.lockShadow,E.leftLockShadow)})),w.a.createElement("div",{className:E.lockShadowMask,style:{right:0,width:e.rightLockTotalWidth+20}},w.a.createElement("div",{className:S()(E.lockShadow,E.rightLockShadow)})))}},{key:"renderStickyScroll",value:function(e){var t=this.props,n=t.hasStickyScroll,t=t.stickyBottom,r=this.state.hasScroll;return w.a.createElement("div",{className:S()(E.stickyScroll,E.horizontalScrollContainer),style:{display:n&&r?"block":"none",bottom:t}},w.a.createElement("div",{className:E.stickyScrollItem}))}},{key:"getScrollBarWidth",value:function(){return this.props.scrollbarWidth||(null==Wt&&(Wt=new ge(Yt()),$t.pipe(v(Yt)).subscribe(Wt)),Wt.value.width)}},{key:"render",value:function(){var e=cn(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,u=t.isStickyHeader,l=t.isStickyFooter,s=t.isLoading,f=t.getTableProps,p=t.footerDataSource,t=t.components,a=S()(E.artTableWrapper,{"use-outer-border":a,empty:0===n.length,lock:e.hasLockColumn,"has-header":i,"sticky-header":null!=u?u:c,"has-footer":0<p.length,"sticky-footer":l,"ie-polyfill-wrapper":Nt.isIE},r),n=x()({className:a,style:o},zt,this.artTableWrapperRef),i=f()||{};return w.a.createElement(mn,n,w.a.createElement(fr,{visible:s,LoadingIcon:t.LoadingIcon,LoadingContentWrapper:t.LoadingContentWrapper},w.a.createElement("div",O()({},i,{className:S()(E.artTable,i.className)}),this.renderTableHeader(e),this.renderTableBody(e),this.renderTableFooter(e),this.renderLockShadows(e)),this.renderStickyScroll(e)))}},{key:"componentDidMount",value:function(){this.updateDOMHelper(),this.props$=new ge(this.props),this.initSubscriptions(),this.didMountOrUpdate();var e=this.props,t=e.cssVariables,e=e.enableCSSVariables;e=(t={variables:t||{},enableCSSVariables:e}).variables,!1!==t.enableCSSVariables&&Nr({include:"style[data-styled]",variables:O()({},bn,e),watch:!0,silent:!0}),null!=(e=(t=this.props).setTableWidth)&&e.call(t,this.domHelper.tableBody.clientWidth),null!=(t=(e=this.props).setTableDomHelper)&&t.call(e,this.domHelper)}},{key:"componentDidUpdate",value:function(e,t){this.updateDOMHelper(),this.props$.next(this.props),this.didMountOrUpdate(e,t)}},{key:"didMountOrUpdate",value:function(e,t){this.syncHorizontalScrollFromTableBody(),this.updateStickyScroll(),this.adjustNeedRenderLock(),this.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&&(Jt(this.domHelper).scrollLeft=this.domHelper.tableBody.scrollLeft))}},{key:"initSubscriptions",value:function(){var t,n,r,o,i=this,e=this.domHelper,a=e.virtual,e=e.stickyScroll,c=(this.rootSubscription.add($t.subscribe(function(){i.updateStickyScroll(),i.adjustNeedRenderLock()})),this.resizeSubject.pipe((t=100,void 0===n&&(n=ze),function(e){return e.lift(new Be(t,n))})).subscribe(function(){var e,t;null!=(e=(t=i.props).setTableWidth)&&e.call(t,i.domHelper.tableBody.clientWidth)}),this.resizeObserver=Gt(this.domHelper.artTableWrapper,function(){i.resizeSubject.next()}),this.rootSubscription.add(Ut([(c=this.domHelper,Nt.isIE?c.tableHeaderMain:c.tableHeader),a,Jt(this.domHelper),e],function(e){i.syncHorizontalScroll(e)})),Qn(this.domHelper.virtual,this.props$.pipe((o=1,function(e){return e.lift(new We(o))}),(r="structure-may-change",function(e){return e.lift(new Ge(r))})),this.props.virtualDebugLabel).pipe(ot()));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()),_e(e=1===e.length&&Z(e[0])?e[0]:e,r).lift(new Te(n))}([c.pipe(v(function(e){return e.clipRect}),ct(qt)),this.props$.pipe(bt(null),function(e){return e.lift(new gt)},wt(function(e){var e=P()(e,2),t=e[0],e=e[1];return null==t||!t.isLoading&&e.isLoading}))]).subscribe(function(e){var e=P()(e,1)[0],t=i.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(c.pipe(wt(function(){var e=i.lastInfo.useVirtual,t=e.horizontal,e=e.vertical;return t||e}),v(function(e){var t=e.clipRect,e=e.offsetY;return{maxRenderHeight:t.bottom-t.top,maxRenderWidth:t.right-t.left,offsetY:e}}),ct(function(e,t){return 0===t.maxRenderHeight&&0===t.maxRenderWidth||Math.abs(e.maxRenderWidth-t.maxRenderWidth)<Bt/2&&Math.abs(e.maxRenderHeight-t.maxRenderHeight)<Bt/2&&Math.abs(e.offsetY-t.offsetY)<Bt/2})).subscribe(function(e){i.setState(e)})),this.rootSubscription.add(c.pipe(v(function(e){var t=e.clipRect,e=e.offsetY;return{maxRenderHeight:t.bottom-t.top,maxRenderWidth:t.right-t.left,offsetY:e}}),ct(function(e,t){return e.offsetY-t.offsetY==0}),v(function(e){var t=e.offsetY,e=e.maxRenderHeight,n=0<=t-i.offsetY?"down":"up",r=(i.offsetY=t,i.props.dataSource.length),t=i.rowHeightManager.getRenderRange(t,e,r),e=t.topIndex,r=t.bottomIndex,t=(null==(t=i.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]}),ct(function(e,t){return e[0]===t[0]&&e[1]===t[1]}),St(function(e){return Le(e).pipe(v(function(e){return e}))}),ct()).subscribe(function(e){var t;null!=(t=i.props.scrollLoad)&&t.callback(e)}))}},{key:"componentWillUnmount",value:function(){var e;null!=(e=this.resizeObserver)&&e.disconnect(),this.rootSubscription.unsubscribe(),this.resizeSubject.unsubscribe()}},{key:"updateDOMHelper",value:function(){this.domHelper=new rr(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=Wr(this.domHelper.getTableRows());try{for(a.s();!(e=a.n()).done;){var c,u,l=e.value,s=Number(l.dataset.rowindex);isNaN(s)||(r=Math.max(r,s),c=l.offsetTop+n,0===(u=l.offsetHeight)?i+=1:this.rowHeightManager.updateRow(s,c,u),o=Math.max(o,c+u))}}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=Vt(n.full.map(function(e){return e.width}))>this.domHelper.artTable.clientWidth)&&this.setState({needRenderLock:t}):e&&this.setState({needRenderLock:!1})}}]),n}(w.a.Component);function qr(e,t){var n,r="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!r){if(Array.isArray(e)||(r=function(e,t){if(e){if("string"==typeof e)return Xr(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Map"===(n="Object"===n&&e.constructor?e.constructor.name:n)||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Xr(e,t):void 0}}(e))||t&&e&&"number"==typeof e.length)return r&&(e=r),n=0,{s:t=function(){},n:function(){return n>=e.length?{done:!0}:{done:!1,value:e[n++]}},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.")}var o,i=!0,a=!1;return{s:function(){r=r.call(e)},n:function(){var e=r.next();return i=e.done,e},e:function(e){a=!0,o=e},f:function(){try{i||null==r.return||r.return()}finally{if(a)throw o}}}}function Xr(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 Jr(e,t){var n,r={},o=qr(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}x()(Ur,"defaultProps",{hasHeader:!0,isStickyHeader:!0,stickyTop:0,footerDataSource:[],isStickyFooter:!0,stickyBottom:0,hasStickyScroll:!0,stickyScrollHeight:"auto",useVirtual:"auto",estimatedRowHeight:48,isLoading:!1,components:{},getTableProps:f,getRowProps:f,dataSource:[],useOuterBorder:!0});t(66);function Zr(e){return-1<e.findIndex(function(e){return e.children&&0<e.children.length})}function Qr(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(187);function eo(n,r){var o=[];return n.forEach(function(e,t){o.push.apply(o,A()(r(e,t,n)))}),o}var to={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 no(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(A()(i.children)))}return null}function oo(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 io(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?oo(Object(n),!0).forEach(function(e){x()(t,e,n[e])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):oo(Object(n)).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))})}return t}function ao(e,t){var n,r="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!r){if(Array.isArray(e)||(r=function(e,t){if(e){if("string"==typeof e)return co(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Map"===(n="Object"===n&&e.constructor?e.constructor.name:n)||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?co(e,t):void 0}}(e))||t&&e&&"number"==typeof e.length)return r&&(e=r),n=0,{s:t=function(){},n:function(){return n>=e.length?{done:!0}:{done:!1,value:e[n++]}},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.")}var o,i=!0,a=!1;return{s:function(){r=r.call(e)},n:function(){var e=r.next();return i=e.done,e},e:function(e){a=!0,o=e},f:function(){try{i||null==r.return||r.return()}finally{if(a)throw o}}}}function co(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(e,t,n){function r(e){if(i.has(e))return i.get(e);var t={id:e,parent:null,item:null,children:[]};return i.set(e,t),t}var o,i=new Map,a=ao(n);try{for(a.s();!(o=a.n()).done;){var c=o.value,u=r(c[t]),l=r(c[e]);(l.parent=u).children.push(l),l.item=c}}catch(e){a.e(e)}finally{a.f()}return function e(t){var n=[];var r,o=ao(t);try{for(o.s();!(r=o.n()).done;){var i=r.value;0===i.children.length?n.push(i.item):n.push(io(io({},i.item),{},{children:e(i.children)}))}}catch(e){o.e(e)}finally{o.f()}return n}(eo(Array.from(i.values()).filter(function(e){return null==e.parent}),function(e){return e.children}))}function lo(e,t){var n,r="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!r){if(Array.isArray(e)||(r=function(e,t){if(e){if("string"==typeof e)return so(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Map"===(n="Object"===n&&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 r&&(e=r),n=0,{s:t=function(){},n:function(){return n>=e.length?{done:!0}:{done:!1,value:e[n++]}},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.")}var o,i=!0,a=!1;return{s:function(){r=r.call(e)},n:function(){var e=r.next();return i=e.done,e},e:function(e){a=!0,o=e},f:function(){try{i||null==r.return||r.return()}finally{if(a)throw o}}}}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 fo(e,t,n){return{c:e.c+t,r:e.r+n}}function po(d,e,t,n){var h,s,r,f,v=d.utils.aoa_to_sheet([]),y=kn(t)+1,o={c:0,r:0},o=(h=o,function e(t,n,r){var o,i,a=fo(h,n,r),c=0,u=lo(t);try{for(u.s();!(o=u.n()).done;){var l,s,f,p=o.value;null!=(l=p.features)&&l.noExport||(s=fo(a,c,0),i=p.name,d.utils.sheet_add_aoa(v,[[i]],{origin:s}),R(p)?(c+=1,b(s,1,y-r)):(b(s,f=e(p.children,n+c,r+1),1),c+=f))}}catch(e){u.e(e)}finally{u.f()}return c}(t,0,0),s=fo(o,0,y),r=_(t,"leaf-only").filter(function(e){return!(null!=(e=e.features)&&e.noExport)}),f=new ir,e.map(function(u,l){return f.stripUpwards(l),r.map(function(e,t){if(f.testSkip(l,t))return null;a=u,o=l,t=t,r=n=1,(i=e).getSpanRect?(c=j.safeGetValue(i,a,o),n=null==(c=i.getSpanRect(c,a,o))?1:c.right-t,r=null==c?1:c.bottom-o):(null!=(c=j.safeGetCellProps(i,a,o)).colSpan&&(n=c.colSpan),null!=c.rowSpan&&(r=c.rowSpan));var n,r,o,i={top:o,bottom:o+r,left:t,right:t+n},a=i.bottom-i.top,c=i.right-i.left;return(1<a||1<c)&&(f.add(i.top,i.left,c,a),b(fo(s,i.left,i.top),c,a)),(o=j.safeGetValue(e,u,l))===1/0||o===-1/0||"number"==typeof o&&isNaN(o)?null:o})})),t=s;function b(e,t,n){1===t&&1===n||(null==v["!merges"]&&(v["!merges"]=[]),v["!merges"].push({s:e,e:fo(e,t-1,n-1)}))}d.utils.sheet_add_aoa(v,o,{origin:t}),d.writeFile({SheetNames:["Sheet1"],Sheets:{Sheet1:v}},n)}t(287);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 vo(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){x()(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 yo(n,r){return function t(e){if(!Array.isArray(n))return n;return e.map(function(e){return R(e)?e:vo(vo({},e),{},{children:t(e.children)})}).sort(r)}(n)}var bo=Symbol("factory-symbol");function M(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]===M.empty?delete r[e]:(t=o[e],(n=t)&&n[bo]?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[bo]=!0,i.extends=function(e){var t=M(e,n);return function(e){return i(t(e))}},i}M.empty=Symbol("proto.empty"),(M.string=function(e){if(null!=e&&"string"!=typeof e)throw new Error("must be string");return e})[bo]=!0,(M.number=function(e){if(null!=e&&"number"!=typeof e)throw new Error("must be number");return e})[bo]=!0,(M.notNull=function(e){if(null==e)throw new Error("must be not null");return e})[bo]=!0,M.object=function(e){return M(e,!1)},M.array=function(e){return M(e,!0)};var go=M;function mo(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 wo(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?mo(Object(n),!0).forEach(function(e){x()(t,e,n[e])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):mo(Object(n)).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))})}return t}function xo(e,t){var n,r="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!r){if(Array.isArray(e)||(r=function(e,t){if(e){if("string"==typeof e)return Oo(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Map"===(n="Object"===n&&e.constructor?e.constructor.name:n)||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Oo(e,t):void 0}}(e))||t&&e&&"number"==typeof e.length)return r&&(e=r),n=0,{s:t=function(){},n:function(){return n>=e.length?{done:!0}:{done:!1,value:e[n++]}},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.")}var o,i=!0,a=!1;return{s:function(){r=r.call(e)},n:function(){var e=r.next();return i=e.done,e},e:function(e){a=!0,o=e},f:function(){try{i||null==r.return||r.return()}finally{if(a)throw o}}}}function Oo(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 So(p){return function(e){return function e(t,n,r){var o=0;var i=[];var a,c=xo(t);try{for(c.s();!(a=c.n()).done;){var u,l=a.value,s=(r.push(l),n+o),f=void 0;R(l)?(f=p(l,{startIndex:s,endIndex:s+1,path:r.slice(),isLeaf:!0}),o+=1):(u=e(l.children,s,r),f=p(wo(wo({},l),{},{children:u.result}),{startIndex:s,endIndex:s+u.flatCount,path:r.slice(),isLeaf:!1}),o+=u.flatCount),Array.isArray(f)?i.push.apply(i,A()(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 ko(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=ko(e[r],t[r]);if(0!==o)return o}return e.length-t.length}return 0}function Eo(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 jo(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?Eo(Object(n),!0).forEach(function(e){x()(t,e,n[e])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):Eo(Object(n)).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))})}return t}function Co(e,t){var n,r="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!r){if(Array.isArray(e)||(r=function(e,t){if(e){if("string"==typeof e)return Po(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Map"===(n="Object"===n&&e.constructor?e.constructor.name:n)||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Po(e,t):void 0}}(e))||t&&e&&"number"==typeof e.length)return r&&(e=r),n=0,{s:t=function(){},n:function(){return n>=e.length?{done:!0}:{done:!1,value:e[n++]}},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.")}var o,i=!0,a=!1;return{s:function(){r=r.call(e)},n:function(){var e=r.next();return i=e.done,e},e:function(e){a=!0,o=e},f:function(){try{i||null==r.return||r.return()}finally{if(a)throw o}}}}function Po(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 Ao(e){return null==e?[]:Array.isArray(e)?e:[e]}function Ro(p){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=Co(t);try{for(a.s();!(i=a.n()).done;){var c,u=i.value,l=n+r,s=void 0;R(u)?(s=p(u,{range:{start:l,end:l+1},dataSource:f}),r+=1):(c=e(u.children,l),s=p(jo(jo({},u),{},{children:c.result}),{range:{start:l,end:l+c.flatColCount},dataSource:f}),r+=c.flatColCount),o.push.apply(o,A()(Ao(s)))}}catch(e){a.e(e)}finally{a.f()}return{result:o,flatColCount:r}}(t,0).result}}}var _o=function(t){return function(e){e.value=t,e.select(),e.focus(),document.execCommand("copy"),document.body.removeChild(e)}};function Io(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){jt.warn("Browser does not support document.execCommand('copy') for clipboard operations")}}function To(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 Mo(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?To(Object(n),!0).forEach(function(e){x()(t,e,n[e])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):To(Object(n)).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))})}return t}function Do(n,r){return function t(e){if(!Array.isArray(n))return n;return e.map(function(e){return R(e)?e:Mo(Mo({},e),{},{children:t(e.children)})}).filter(r)}(n)}function Lo(e){return e.deepPath?e.deepPath():e.path||(e.composedPath?e.composedPath():function(e){var t=[],n=e.target;for(;n;)t.push(n),n=n.parentElement;return t}(e))}function No(e,t){return!(!e||!t)&&0<=Lo(t).indexOf(e)}function Ho(e,t){for(var n,r=0;!n&&r<e.length;){var o=e[r];t(o)&&(n=o),r++}return n}function Fo(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 zo(e,t,n){e=e.getBoundingClientRect(),t=(t===document.body?document.documentElement:t).getBoundingClientRect();return{x:e.left-t.left-(n?n.x:0),y:e.top-t.top-(n?n.y:0)}}function Bo(e,t,n,r,o){var i,a=e.getBoundingClientRect(),c=document.documentElement,u=c.getBoundingClientRect(),t=t.getBoundingClientRect(),l=a.width,s=a.height,e=e===document.body;return e&&(l=u.width-Math.abs(u.left-a.left),s=u.height+c.scrollTop-Math.abs(u.top-a.top)),n&&(u=t.width,l=(a={x:n,maxX:l-u,width:u,isPerfectX:o}).x,u=a.maxX,i=a.width,n=(a=a.isPerfectX)&&Math.max(l,0)>Math.abs(u)&&i<=l?l-i:Math.min(Math.max(l,0),Math.abs(u))),r&&(a=t.height,i={y:r,maxY:s-a,height:a,scrollTop:c.scrollTop,isBody:e,isPerfectY:o},l=i.y,u=i.maxY,t=i.height,s=i.scrollTop,a=i.isBody,r=(i=i.isPerfectY)&&Math.max(l,0)>Math.abs(u)&&t<=(a?l-s:l)?l-t:Math.min(Math.max(l,0),Math.abs(u))),{x:n,y:r}}var Vo=new Set;function D(e){Vo.has(e)||(Vo.add(e),console.warn("[kd-table] transform 用法已经过时,请使用 pipeline 来对表格进行拓展"+"\n 请移除以下 API 的调用:".concat(e)))}function Ko(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 Wo(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?Ko(Object(n),!0).forEach(function(e){x()(t,e,n[e])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):Ko(Object(n)).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))})}return t}function $o(e,t){return e===t}function Go(){return D("makeAutoRowSpanTransform"),Ro(function(e,t){var n=t.dataSource,r=t.range;if(null==(t=e.features)||!t.autoRowSpan)return e;if(!R(e))return e;for(var o="function"==typeof e.features.autoRowSpan?e.features.autoRowSpan:$o,i=[],a=0,c=null,u=null,l=0;l<n.length;l++){var s=n[l],f=j.safeGetValue(e,s,l);if(0===l||!o(c,f,u,s)){for(var p={top:a,bottom:l,left:r.start,right:r.end},d=a;d<l;d++)i.push(p);a=l}c=f,u=s}for(var h=a;h<n.length;h++)i.push({top:a,bottom:n.length,left:r.start,right:r.end});return Wo(Wo({},e),{},{getSpanRect:function(e,t,n){return i[n]}})})}function Yo(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 Uo(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?Yo(Object(n),!0).forEach(function(e){x()(t,e,n[e])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):Yo(Object(n)).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))})}return t}var qo="auto-width-wrapper",Xo="auto-width-expander",Jo=e.c.div(p()(["\n height: 100%;\n display: inline-flex;\n align-items: center;\n white-space: nowrap;\n padding: 8px 12px;\n"]));function Zo(i,o,e){D("useAutoWidthTransform");var t=Object(d.useState)([]),t=P()(t,2),a=t[0],c=t[1],u=(Object(d.useEffect)(function(){var e=i.current.getDoms().artTable,e=Array.from(e.querySelectorAll(".".concat(E.tableRow)));if(0!==e.length){for(var n,r=[],t=0,o=e;t<o.length;t++)o[t].querySelectorAll(".".concat(qo)).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),l=Ro(function(r){if(!R(r))return r;if(null==(e=r.features)||!e.autoWidth)return r;var e=r.features.autoWidth,t=e.max,e=e.min,n=null!=(n=null!=(n=a[u++])?n:r.width)?n:null==o?void 0:o.initColumnWidth,e=Math.max(void 0===e?-1/0:e,Math.min(void 0===t?1/0:t,n));return Uo(Uo({},r),{},{width:e,getCellProps:function(e,t,n){return k(j.safeGetCellProps(r,t,n),{style:{padding:0}})},render:function(e,t,n){return w.a.createElement(Jo,{className:qo,style:null==o?void 0:o.wrapperStyle},j.safeRender(r,t,n))}})});return function(e){var t,e=l(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:Xo,style:{background:"hidden"===r?"var(--bgcolor)":void 0,border:"hidden"===r?"none":void 0}},getCellProps:function(){return{className:Xo,style:{visibility:r}}}}]):n,dataSource:e}}}function Qo(n,r){return D("makeBuildTreeTransform"),function(e){var t=e.columns,e=e.dataSource;return{columns:t,dataSource:uo(n,r,e)}}}function ei(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 ti(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?ei(Object(n),!0).forEach(function(e){x()(t,e,n[e])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):ei(Object(n)).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))})}return t}function ni(e){var t=e.hoverColor,a=void 0===t?"var(--hover-bgcolor)":t,n=e.hoverColIndex,c=e.onChangeHoverColIndex;return D("makeColumnHoverTransform"),Ro(function(e,t){var r=t.range;if(!R(e))return e;var o=r.start<=n&&n<r.end,i=e.getCellProps;return ti(ti({},e),{},{getCellProps:function(e,t,n){return k(null==i?void 0:i(e,t,n),{style:{"--bgcolor":o?a:void 0},onMouseEnter:function(){c(r.start)},onMouseLeave:function(){c(-1)}})}})})}function ri(){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(d.useState)(e),e=P()(e,2);return ni({hoverColor:t,hoverColIndex:e[0],onChangeHoverColIndex:e[1]})}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){x()(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}var ai={start:-1,end:-1};function ci(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,u=e.onChangeHoverRange;return D("makeColumnRangeHoverTransform"),Ro(function(e,t){var r=t.range,o=r.end>c.start&&c.end>r.start;if(!R(e))return null==n?e:ii(ii({},e),{},{headerCellProps:k(e.headerCellProps,{onMouseEnter:function(){u(r)},onMouseLeave:function(){u(ai)},style:{"--header-bgcolor":o?n:void 0}})});var i=e.getCellProps;return ii(ii({},e),{},{headerCellProps:k(e.headerCellProps,{onMouseEnter:function(){u(r)},onMouseLeave:function(){u(ai)},style:{"--header-bgcolor":o?n:void 0}}),getCellProps:function(e,t,n){return k(null==i?void 0:i(e,t,n),{onMouseEnter:function(){u(r)},onMouseLeave:function(){u(ai)},style:{"--bgcolor":o?a:void 0}})}})})}function ui(){var e=0<arguments.length&&void 0!==arguments[0]?arguments[0]:{},t=e.hoverColor,n=e.headerHoverColor,e=e.defaultHoverRange,e=void 0===e?ai:e,e=Object(d.useState)(e),e=P()(e,2);return ci({hoverColor:t,headerHoverColor:n,hoverRange:e[0],onChangeHoverRange:e[1]})}var sn=t(68),li=t.n(sn);function si(t){return function(e){return e.lift(new fi(t))}}var fi=function(){function e(e){this.notifier=e}return e.prototype.call=function(e,t){var e=new pi(e),n=ft(this.notifier,new st(e));return n&&!e.seenValue?(e.add(n),t.subscribe(e)):e},e}(),pi=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),di=["defaultSizes"];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){x()(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 yi="resize-expander",bi=e.c.span(p()(["\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 gi(e){function r(n,e){var t,r=e.clientX,o=a[n],e=y(window,"mousemove").pipe(si(y(window,"mouseup")),v(function(e){var e=e.clientX,t=a.slice();return t[n]=(e=o+(e-r),Math.max(u,Math.min(l,e))),t})),i="";s&&(t=document.documentElement.style,i=t.userSelect,t.userSelect="none"),e.subscribe({next:c,complete:function(){s&&(t.userSelect=i)}})}var a=e.sizes,c=e.onChangeSizes,t=e.minSize,u=void 0===t?40:t,t=e.maxSize,l=void 0===t?1/0:t,n=e.appendExpander,t=e.expanderVisibility,o=void 0===t?"visible":t,s=e.disableUserSelectWhenResizing,i=(D("makeColumnResizeTransform"),Ro(function(e,t){var n=t.range;if(!R(e))return e;var t=j.safeRenderHeader(e);return vi(vi({},e),{},{width:a[n.start],title:w.a.createElement(w.a.Fragment,null,t,w.a.createElement(bi,{className:"resize-handle",onMouseDown:function(e){return r(n.start,e)}})),headerCellProps:vi(vi({},e.headerCellProps),{},{style:vi(vi({},null==(t=e.headerCellProps)?void 0:t.style),{},{overflow:"visible",position:"relative"})})})}));return function(e){var e=i(e),t=e.columns,e=e.dataSource;return{columns:n?t.concat([{name:"",headerCellProps:{className:yi,style:{background:"hidden"===o?"var(--bgcolor)":void 0,border:"hidden"===o?"none":void 0}},getCellProps:function(){return{className:yi,style:{visibility:o}}}}]):t,dataSource:e}}}function mi(e){var t=e.defaultSizes,e=li()(e,di),t=Object(d.useState)(t),t=P()(t,2);return gi(vi({sizes:t[0],onChangeSizes:t[1]},e))}function wi(){return D("makeFlattenTransform"),Ro(function(e){var t;return!R(e)&&null!=(t=e.features)&&t.flatten?e.children: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 Oi(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){x()(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 Si(){var n=0<arguments.length&&void 0!==arguments[0]?arguments[0]:1;return D("makeOrderFieldTransform"),Ro(function(e){var t;return null!=(t=e.features)&&t.order||null!=(t=e.features)&&t.orderField?Oi(Oi({},e),{},{getValue:function(e,t){return t+n}}):e})}var ki=["defaultSorts"];function Ei(e,t){var n,r,o="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!o){if(Array.isArray(e)||(o=function(e,t){if(e){if("string"==typeof e)return ji(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Map"===(n="Object"===n&&e.constructor?e.constructor.name:n)||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?ji(e,t):void 0}}(e))||t&&e&&"number"==typeof e.length)return o&&(e=o),n=0,{s:t=function(){},n:function(){return n>=e.length?{done:!0}:{done:!1,value:e[n++]}},e:(r=function(e){throw e},i.toString=function(){return r.toString()},i),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 i(e){return r.apply(this,arguments)}var a,c,u=!0,l=!1;return{s:function(){o=o.call(e)},n:function(){var e=o.next();return u=e.done,e},e:(c=function(e){l=!0,a=e},s.toString=function(){return c.toString()},s),f:function(){try{u||null==o.return||o.return()}finally{if(l)throw a}}};function s(e){return c.apply(this,arguments)}}function ji(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 Ci(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 Pi(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?Ci(Object(n),!0).forEach(function(e){x()(t,e,n[e])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):Ci(Object(n)).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))})}return t}function Ai(e){var t=e.size,t=void 0===t?32:t,n=e.style,r=e.className,e=e.order;return w.a.createElement("svg",{style:n,className:r,focusable:"false",preserveAspectRatio:"xMidYMid meet",width:t,height:t,viewBox:"0 0 32 32","aria-hidden":"true"},w.a.createElement("path",{fill:"asc"===e?"#23A3FF":"#bfbfbf",transform:"translate(0, 4)",d:"M8 8L16 0 24 8z"}),w.a.createElement("path",{fill:"desc"===e?"#23A3FF":"#bfbfbf",transform:"translate(0, -4)",d:"M24 24L16 32 8 24z "}))}function Ri(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 w.a.createElement(_i,{onClick:r,style:{justifyContent:n}},t,w.a.createElement(Ai,{style:{userSelect:"none",marginLeft:2,flexShrink:0},size:16,order:o}),"multiple"===e.mode&&-1!=i&&w.a.createElement("div",{style:{userSelect:"none",marginLeft:2,color:"#666",flex:"0 0 auto",fontSize:10,fontFamily:"monospace"}},i+1))}var _i=e.c.div(p()(["\n cursor: pointer;\n display: flex;\n align-items: center;\n"]));function Ii(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,u=void 0===i?Ri:i,a=e.keepDataSource,l=e.highlightColumnWhenActive,s=e.stopClickEventPropagation,i=(D("makeSortTransform"),t.filter(function(e){return"none"!==e.order})),f="multiple"===r?i:i.slice(0,1),p="multiple"===r?n:function(e){var t=e.length;n(e.slice(t-1))},d={sorts:f,onChangeSorts:p,orders:o,mode:r,keepDataSource:a,highlightColumnWhenActive:l,stopClickEventPropagation:s},h=new Map(f.map(function(e,t){return[e.code,Pi({index:t},e)]}));return function(e){var t=e.dataSource,n=e.columns;return{columns:n.map(function e(r){var t=Pi({},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,l&&(t.headerCellProps=k(r.headerCellProps,{style:{background:"var(--header-highlight-bgcolor)"}}),t.getCellProps=function(e,t,n){t=j.safeGetCellProps(r,t,n);return k(t,{style:{background:"var(--highlight-bgcolor)"}})})),t.title=w.a.createElement(u,{onToggle:function(e){s&&e.stopPropagation(),c(r.code)},sortOrder:i,column:r,sortIndex:n,sortOptions:d},j.safeRenderHeader(r)))}R(r)||(t.children=r.children.map(e));return t}),dataSource:function(e){if(a)return e;var s=new Map(_(n,"leaf-only").filter(function(e){return null!=(null==(e=e.features)?void 0:e.sortable)}).map(function(e){return[e.code,e]}));return yo(e,function(e,t){var n,r=Ei(f);try{for(r.s();!(n=r.n()).done;){var o=n.value,i=o.code,a=o.order,c=s.get(i);if(null!=c){var u=c.features.sortable,l=("function"==typeof u?u:ko)(j.safeGetValue(c,e,-1),j.safeGetValue(c,t,-1));if(0!==l)return l*("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?p(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]=Pi(Pi({},n[e]),{},{order:r}),p(n))}}}function Ti(){var e=0<arguments.length&&void 0!==arguments[0]?arguments[0]:{},t=e.defaultSorts,t=void 0===t?[]:t,e=li()(e,ki),t=Object(d.useState)(t),t=P()(t,2);return Ii(Pi({sorts:t[0],onChangeSorts:t[1]},e))}var Mi=e.c.div(p()(["\n display: inline-flex;\n align-items: center;\n"])),Di=Object(e.c)(Mi)(p()(["\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"]),E.leaf,E.expanded);var Li={Loading:function(e){return w.a.createElement("svg",O()({width:"16",height:"16",fill:"currentColor",viewBox:"0 0 1024 1024"},e),w.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 w.a.createElement("svg",O()({focusable:"false",preserveAspectRatio:"xMidYMid meet",fill:"currentColor",width:"16",height:"16",viewBox:"0 0 32 32"},e),w.a.createElement("path",{d:"M24 12L16 22 8 12z"}))},CaretRight:function(e){return w.a.createElement("svg",O()({focusable:"false",preserveAspectRatio:"xMidYMid meet",fill:"currentColor",width:"16",height:"16",viewBox:"0 0 32 32"},e),w.a.createElement("path",{d:"M12 8L22 16 12 24z"}))},Info:function(e){return w.a.createElement("svg",O()({focusable:"false",preserveAspectRatio:"xMidYMid meet",fill:"currentColor",width:"16",height:"16",viewBox:"0 0 16 16"},e),w.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"}),w.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"}))}},Ni=e.c.div(p()(["\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: 13px;\n position:absolute;\n z-index: 1050;\n width:120px;\n }\n\n .","{\n width:100%;\n display: table;\n }\n\n ."," .","{\n display: table-row;\n color: #666666;\n }\n\n ."," .","{\n background-color: #f5f5f5;\n }\n\n ."," ."," .","{\n display: table-cell;\n padding: 5px 8px;\n }\n ."," .",".","{\n opacity: .5;\n }\n\n"]),b.menu,b.menuList,b.menuList,b.menuOption,b.menuList,b.menuOptionActive,b.menuList,b.menuOption,b.menuOptionText,b.menuList,b.menuOption,b.menuOptionDisable);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 Fi(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){x()(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 zi=e.c.div(p()(["\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 Bi(e){var n=e.Balloon,r=e.Tooltip;return D("makeTipsTransform"),Ro(function(e){if(null==(t=e.features)||!t.tips)return e;var t="right"===e.align?"flex-end":"center"===e.align?"center":"flex-start";return Fi(Fi({},e),{},{title:w.a.createElement(zi,{style:{justifyContent:t}},j.safeRenderHeader(e),n?w.a.createElement(n,{closable:!1,trigger:w.a.createElement("div",{className:"tip-icon-wrapper"},w.a.createElement(Li.Info,{className:"tip-icon"}))},e.features.tips):w.a.createElement(r,{title:e.features.tips},w.a.createElement("div",{className:"tip-icon-wrapper"},w.a.createElement(Li.Info,{className:"tip-icon"}))))})})}var fn=t(69),Vi=t.n(fn);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 Wi(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){x()(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(e,t){var n,r="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!r){if(Array.isArray(e)||(r=function(e,t){if(e){if("string"==typeof e)return Gi(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Map"===(n="Object"===n&&e.constructor?e.constructor.name:n)||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Gi(e,t):void 0}}(e))||t&&e&&"number"==typeof e.length)return r&&(e=r),n=0,{s:t=function(){},n:function(){return n>=e.length?{done:!0}:{done:!1,value:e[n++]}},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.")}var o,i=!0,a=!1;return{s:function(){r=r.call(e)},n:function(){var e=r.next();return i=e.done,e},e:function(e){a=!0,o=e},f:function(){try{i||null==r.return||r.return()}finally{if(a)throw o}}}}function Gi(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 Yi=Symbol("treeMetaSymbol");function Ui(){var i=0<arguments.length&&void 0!==arguments[0]?arguments[0]:{};return function(o){function e(e,t,n){var r;null!=(r=i.onChangeOpenKeys)&&r.call(i,e,t,n),o.setStateAtKey("treeMode",e,{key:t,action:n})}var t,n=o.ctx,f=o.ensurePrimaryKey("treeMode"),r=null!=(t=null!=(t=null!=(t=i.openKeys)?t:o.getStateAtKey("treeMode"))?t:i.defaultOpenKeys)?t:[],p=new Set(r),u=function(t){p.has(t)?e(r.filter(function(e){return e!==t}),t,"collapse"):e([].concat(A()(r),[t]),t,"expand")},d=null!=(t=i.isLeafNode)?t:R,l=null!=(t=i.clickArea)?t:"cell",h=null!=(t=i.treeMetaKey)?t:Yi,s=Boolean(i.stopClickEventPropagation),v=n.indents.iconWidth,y=null!=(t=i.iconIndent)?t:n.indents.iconIndent,b=null!=(t=i.iconGap)?t:n.indents.iconGap,g=null!=(t=i.indentSize)?t:n.indents.indentSize,m=i.icon;return o.mapDataSource(function(e){var s=[];return function e(t,n){if(null!=t){var r,o=$i(t);try{for(o.s();!(r=o.n()).done;){var i=r.value,a=j.safeGetRowKey(f,i,-1),c=p.has(a),u=d(i,{depth:n,expanded:c,rowKey:a}),l={depth:n,isLeaf:u,expanded:c,rowKey:a};s.push(Wi(x()({},h,l),i)),!u&&c&&e(i.children,n+1)}}catch(e){o.e(e)}finally{o.f()}}}(e,0),s}).mapColumns(function(e){if(0===e.length)return e;var t=e.findIndex(function(e){e=e.code;return e&&i.expandColCode===e}),c=e[t=-1===t?0:t];return e[t]=Wi(Wi({},c),{},{title:w.a.createElement("span",{style:{marginLeft:y+v+b}},j.safeRenderHeader(c)),render:function(e,t,n){n=j.safeRender(c,t,n);if(null==t[h])return n;var t=t[h],r=t.rowKey,o=t.depth,i=t.isLeaf,t=t.expanded,o=y+o*g;if(i)return w.a.createElement(Mi,{className:S()("expansion-cell",E.leaf)},w.a.createElement("span",{style:{marginLeft:o+v+b}},n));function a(e){s&&e.stopPropagation(),u(r)}i=t?E.expanded:E.collapsed;return w.a.createElement(Di,{className:S()("expansion-cell",i),style:{cursor:"content"===l?"pointer":void 0},onClick:"content"===l?a:void 0},m?w.a.createElement(m,{expanded:t,style:{cursor:"icon"===l?"pointer":void 0,marginLeft:o,marginRight:b,width:v},onClick:"icon"===l?a:void 0}):w.a.createElement(Li.CaretRight,{className:S()("expansion-icon",i),style:{cursor:"icon"===l?"pointer":void 0,marginLeft:o,marginRight:b},onClick:"icon"===l?a:void 0}),n)},getCellProps:"cell"===l?function(e,t,n){n=j.safeGetCellProps(c,t,n);if(null==t[h])return n;var t=t[h],r=t.isLeaf,o=t.rowKey;return r?n:k(n,{onClick:function(e){s&&e.stopPropagation(),u(o)},style:{cursor:"pointer"}})}:c.getCellProps}),A()(e)})}}var qi=["defaultOpenKeys"];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 Ji(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){x()(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 Zi(e,t){var n,r="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!r){if(Array.isArray(e)||(r=function(e,t){if(e){if("string"==typeof e)return Qi(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Map"===(n="Object"===n&&e.constructor?e.constructor.name:n)||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Qi(e,t):void 0}}(e))||t&&e&&"number"==typeof e.length)return r&&(e=r),n=0,{s:t=function(){},n:function(){return n>=e.length?{done:!0}:{done:!1,value:e[n++]}},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.")}var o,i=!0,a=!1;return{s:function(){r=r.call(e)},n:function(){var e=r.next();return i=e.done,e},e:function(e){a=!0,o=e},f:function(){try{i||null==r.return||r.return()}finally{if(a)throw o}}}}function Qi(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 ea=16;function ta(e){function u(t){g.has(t)?n(r.filter(function(e){return e!==t}),t,"collapse"):n([].concat(A()(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,p=void 0===t?0:t,t=e.indentSize,d=void 0===t?16:t,t=e.isLeafNode,h=void 0===t?R:t,t=e.clickArea,v=void 0===t?"cell":t,t=e.treeMetaKey,y=void 0===t?Yi:t,b=e.stopClickEventPropagation,g=(D("makeTreeModeTransform"),new Set(r));return function(e){var s,t=e.columns,e=e.dataSource;return{columns:function(e){if(0===e.length)return e;var e=Vi()(e),c=e[0],e=e.slice(1);return[Ji(Ji({},c),{},{title:w.a.createElement("span",{style:{marginLeft:l+ea+p}},j.safeRenderHeader(c)),render:function(e,t,n){n=j.safeRender(c,t,n);if(null==t[y])return n;var t=t[y],r=t.rowKey,o=t.depth,i=t.isLeaf,t=t.expanded,o=l+o*d;if(i)return w.a.createElement(Mi,{className:"expansion-cell leaf"},w.a.createElement("span",{style:{marginLeft:o+ea+p}},n));function a(e){b&&e.stopPropagation(),u(r)}i=t?"expanded":"collapsed";return w.a.createElement(Di,{className:S()("expansion-cell",i),style:{cursor:"content"===v?"pointer":void 0},onClick:"content"===v?a:void 0},w.a.createElement(Li.CaretRight,{className:S()("expansion-icon",i),style:{cursor:"icon"===v?"pointer":void 0,marginLeft:o,marginRight:p},onClick:"icon"===v?a:void 0}),n)},getCellProps:"cell"===v?function(e,t,n){n=j.safeGetCellProps(c,t,n);if(null==t[y])return n;var t=t[y],r=t.isLeaf,o=t.rowKey;return r?n:k(n,{onClick:function(e){b&&e.stopPropagation(),u(o)},style:{cursor:"pointer"}})}:c.getCellProps})].concat(A()(e))}(t),dataSource:(s=[],function e(t,n){if(null!=t){var r,o=Zi(t);try{for(o.s();!(r=o.n()).done;){var i=r.value,a=i[f],c=g.has(a),u=h(i,{depth:n,expanded:c,rowKey:a}),l={depth:n,isLeaf:u,expanded:c,rowKey:a};s.push(Ji(x()({},y,l),i)),!u&&c&&e(i.children,n+1)}}catch(e){o.e(e)}finally{o.f()}}}(e,0),s)}}}function na(e){var t=e.defaultOpenKeys,t=void 0===t?[]:t,e=li()(e,qi),t=Object(d.useState)(t),t=P()(t,2);return ta(Ji({openKeys:t[0],onChangeOpenKeys:t[1]},e))}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 oa(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){x()(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 ia(e){D("makeVisibleTransform");var t=new Set(e);return Ro(function(e){return!R(e)||t.has(e.code)?e:oa(oa({},e),{},{hidden:!0})})}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){x()(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}function ua(e,t){return e===t}function la(){return function(e){var v=e.getDataSource();return e.mapColumns(So(function(e,t){var n=t.startIndex,r=t.endIndex;if(null==(t=e.features)||!t.autoRowSpan)return e;if(!R(e))return e;for(var o="function"==typeof e.features.autoRowSpan?e.features.autoRowSpan:ua,i=[],a=0,c=null,u=null,l=0;l<v.length;l++){var s=v[l],f=j.safeGetValue(e,s,l);if(0===l||!o(c,f,u,s)){for(var p={top:a,bottom:l,left:n,right:r},d=a;d<l;d++)i.push(p);a=l}c=f,u=s}for(var h=a;h<v.length;h++)i.push({top:a,bottom:v.length,left:n,right:r});return ca(ca({},e),{},{getSpanRect:function(e,t,n){return i[n]}})}))}}function sa(t,n){return function(e){return e.mapDataSource(function(e){return uo(t,n,e)})}}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 pa(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){x()(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 da(){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)",u=null!=(e=null!=(e=null!=(e=r.hoverColIndex)?e:n.getStateAtKey(o))?e:r.defaultHoverColIndex)?e:-1;return n.mapColumns(So(function(e,t){var r={start:t.startIndex,end:t.endIndex};if(!R(e))return e;var o=r.start<=u&&u<r.end,i=e.getCellProps;return pa(pa({},e),{},{getCellProps:function(e,t,n){return k(null==i?void 0:i(e,t,n),{style:{"--bgcolor":o?c:void 0},onMouseEnter:function(){a(r.start)},onMouseLeave:function(){a(-1)}})}})}))}}function ha(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 va(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?ha(Object(n),!0).forEach(function(e){x()(t,e,n[e])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):ha(Object(n)).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))})}return t}var ya={start:-1,end:-1};function ba(){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:ya,u=null!=(e=r.hoverColor)?e:"var(--hover-bgcolor)",l=null!=(e=r.headerHoverColor)?e:"var(--header-hover-bgcolor)";return n.mapColumns(So(function(e,t){var r={start:t.startIndex,end:t.endIndex},o=r.end>c.start&&c.end>r.start;if(!R(e))return null==l?e:va(va({},e),{},{headerCellProps:k(e.headerCellProps,{onMouseEnter:function(){a(r)},onMouseLeave:function(){a(ya)},style:{"--header-bgcolor":o?l:void 0}})});var i=e.getCellProps;return va(va({},e),{},{headerCellProps:k(e.headerCellProps,{onMouseEnter:function(){a(r)},onMouseLeave:function(){a(ya)},style:{"--header-bgcolor":o?l:void 0}}),getCellProps:function(e,t,n){return k(null==i?void 0:i(e,t,n),{onMouseEnter:function(){a(r)},onMouseLeave:function(){a(ya)},style:{"--bgcolor":o?u:void 0}})}})}))}}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 ma(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){x()(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}function wa(){var g=0<arguments.length&&void 0!==arguments[0]?arguments[0]:{};return function(i){var a="multiSelect",c=i.ctx.components.Checkbox;if(null==c)throw new Error("使用 multiSelect 之前需要设置 pipeline.ctx.components.Checkbox");var e,t,n,u=i.ensurePrimaryKey("multiSelect"),l=null!=(r=g.isDisabled)?r:no(!1),s=null!=(r=g.clickArea)?r:"checkbox",f=null!=(r=null!=(r=null!=(r=g.value)?r:null==(r=i.getStateAtKey(a))?void 0:r.value)?r:g.defaultValue)?r:[],p=null!=(r=null!=(r=null!=(r=g.lastKey)?r:null==(r=i.getStateAtKey(a))?void 0:r.lastKey)?r:g.defaultLastKey)?r:"",d=function(e,t,n,r){var o;null!=(o=g.onChange)&&o.call(g,e,t,n,r),i.setStateAtKey(a,{value:e,lastKey:t},{keys:n,action:r})},r=i.getDataSource(),h=new Set,v=[],y=(_(r).forEach(function(e,t){var n=j.safeGetRowKey(u,e,t);h.add(n),l(e,t)||v.push(n)}),new Set(f));return g.checkboxColumn&&!0===g.checkboxColumn.hidden||(t=0<v.length&&v.every(function(e){return y.has(e)}),r=v.some(function(e){return y.has(e)}),r=ma(ma({name:"是否选中",title:w.a.createElement(c,{checked:t,indeterminate:!t&&r,onChange:function(e){t?d(to.diff(f,v),"",v,"uncheck-all"):d(to.merge(f,v),"",v,"check-all")}}),width:50,align:"center"},g.checkboxColumn),{},{getCellProps:function(e,t,n){var r,o,i=j.safeGetRowKey(u,t,n),a={},c=null==(o=g.checkboxColumn)||null==(c=o.getCellProps)?void 0:c.call(o,e,t,n);return h.has(i)&&"cell"===s&&(r=y.has(i),a={style:{cursor:(o=l(t,n))?"not-allowed":"pointer"},onClick:o?void 0:function(e){g.stopClickEventPropagation&&e.stopPropagation(),b(r,i,e.shiftKey)}}),k(c,a)},render:function(e,t,n){if(t[i.getFeatureOptions("footerRowMetaKey")])return null;var r=j.safeGetRowKey(u,t,n),o=y.has(r);return w.a.createElement(c,{checked:o,disabled:l(t,n),onChange:"checkbox"===s?function(e,t){t=null!=(t=null==t?void 0:t.nativeEvent)?t:e.nativeEvent;t&&(g.stopClickEventPropagation&&t.stopPropagation(),b(o,r,t.shiftKey))}:void 0})}}),n=i.getColumns().slice(),"start"===(null!=(e=g.checkboxPlacement)?e:"start")?n.unshift(r):n.push(r),i.columns(n)),i.appendRowPropsGetter(function(e,t){var n,r,o,i,a=j.safeGetRowKey(u,e,t);if(h.has(a))return n={},i=y.has(a),g.highlightRowWhenSelected&&i&&(r="highlight"),"row"!==s||l(e,t)||(n.cursor="pointer",o=function(e){g.stopClickEventPropagation&&e.stopPropagation(),b(i,a,e.shiftKey)}),{className:r,style:n,onClick:o}}),i;function b(e,t,n){var r,o=[t];n&&p&&(r=(n=v.indexOf(p))<(r=v.indexOf(t))?[n,r]:[r,n],r=(n=P()(r,2))[0],n=n[1],o=v.slice(r,n+1)),e?d(to.diff(f,o),t,o,"uncheck"):d(to.merge(f,o),t,o,"check")}}}function xa(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 Oa(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?xa(Object(n),!0).forEach(function(e){x()(t,e,n[e])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):xa(Object(n)).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))})}return t}var Sa=Symbol("row-detail"),ka=function(){return w.a.createElement("div",{style:{margin:"8px 24px"}},w.a.createElement("b",{style:{color:"indianred"}},"设置 ",w.a.createElement("code",null,"rowDetail.renderDetail")," 来自定义详情内容"))};function Ea(){var m=0<arguments.length&&void 0!==arguments[0]?arguments[0]:{};return function(l){function e(e,t,n){var r;null!=(r=m.onChangeOpenKeys)&&r.call(m,e,t,n),l.setStateAtKey("rowDetail",e,{key:t,action:n})}var t,s=null!=(t=m.rowDetailMetaKey)?t:Sa,f=l.ensurePrimaryKey("rowDetail"),p=l.ctx.indents,d=p.iconIndent+p.iconWidth+p.iconGap,h=null!=(t=m.clickArea)?t:"cell",n=null!=(t=m.getDetailKey)?t:function(e,t){return j.safeGetRowKey(f,e,t)+"_detail"},v=null!=(t=m.renderDetail)?t:ka,y=null!=(t=m.hasDetail)?t:no(!0),r=null!=(t=null!=(t=null!=(t=m.openKeys)?t:l.getStateAtKey("rowDetail"))?t:m.defaultOpenAll?l.getDataSource().filter(y).map(function(e,t){return j.safeGetRowKey(f,e,t)}):m.defaultOpenKeys)?t:[],b=new Set(r),g=function(t){b.has(t)?e(r.filter(function(e){return e!==t}),t,"collapse"):e([].concat(A()(r),[t]),t,"expand")},o="string"==typeof f?f:s.toString()+"PrimaryKey";return l.dataSource(eo(l.getDataSource(),function(e,t){return b.has(j.safeGetRowKey(f,e,t))?[e,Oa(Oa(x()({},s,!0),e),{},x()({},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 jt.warn("没找到可展开的列,请检查设置的展开列code"),e;var u=e[c],e=A()(e),t=Vi()(e),o=t[0];t.slice(1);return e[0]=Oa(Oa({},o),{},{render:function(e,t,n){var r;return t[s]?"function"==typeof(r=Kr("rowDetail"))?r({row:t,rowIndex:n,domHelper:l.ref.current.domHelper,renderDetail:v}):v(t,n):j.safeRender(o,t,n)},getSpanRect:function(e,t,n){if(t[s])return{top:n,bottom:n+1,left:0,right:_(l.getColumns(),"leaf-only").length}}}),e[c]=Oa(Oa({},u),{},{title:w.a.createElement("div",{style:{display:"inline-block",marginLeft:d}},j.safeRenderHeader(u)),render:function(e,t,n){if(t[s]){if(0!==c)return;var r=Kr("rowDetail");return"function"==typeof r?r({row:t,rowIndex:n,domHelper:l.ref.current.domHelper,renderDetail:v}):v(t,n)}r=j.safeRender(u,t,n);if(!y(t,n))return w.a.createElement(Mi,{style:{marginLeft:d}},r);function o(e){m.stopClickEventPropagation&&e.stopPropagation(),g(i)}var i=j.safeGetRowKey(f,t,n),t=b.has(i),n=t?E.expanded:E.collapsed,a=m.expandIcon;return w.a.createElement(Di,{className:S()("expansion-cell",n),style:{cursor:"content"===h?"pointer":void 0},onClick:"content"===h?o:void 0},m.expandIcon?w.a.createElement(a,{expanded:t,onClick:"icon"===h?o:void 0}):w.a.createElement(Li.CaretRight,{style:{cursor:"icon"===h?"pointer":void 0,marginLeft:p.iconIndent,marginRight:p.iconGap},className:S()("expansion-icon",n),onClick:"icon"===h?o:void 0}),r)},getCellProps:"cell"===h?function(e,t,n){if(t[s])return{style:Oa({"--cell-padding":"0",overflow:"hidden"},m.detailCellStyle)};var r=null==(r=u.getCellProps)?void 0:r.call(u,e,t,n);return y(t,n)?k(r,{onClick:function(e){m.stopClickEventPropagation&&e.stopPropagation(),g(j.safeGetRowKey(f,t,n))},style:{cursor:"pointer"}}):r}:u.getCellProps,getSpanRect:function(e,t,n){if(t[s])return{top:n,bottom:n+1,left:0,right:_(l.getColumns(),"leaf-only").length}}}),e}(l.getColumns())).appendRowPropsGetter(function(e){if(e[s])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 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){x()(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 Pa=Symbol("row-grouping-meta");function Aa(e){return null==e[Pa]?{isGroupHeader:!1,expandable:!1}:{isGroupHeader:!0,expandable:e[Pa].expandable}}function Ra(e){if(Aa(e).isGroupHeader)return{className:"alternative"}}function _a(){var d=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,l=o.ensurePrimaryKey("rowGrouping");if("string"!=typeof l)throw new Error("rowGrouping 仅支持字符串作为 primaryKey");var s=null!=(e=null!=(e=null!=(e=d.openKeys)?e:o.getStateAtKey(i))?e:d.defaultOpenAll?o.getDataSource().map(function(e){return e[l]}):d.defaultOpenKeys)?e:[],f=new Set(s),p=function(e,t,n){var r;null!=(r=d.onChangeOpenKeys)&&r.call(d,e,t,n),o.setStateAtKey(i,e,{key:t,action:n})};return o.mapDataSource(function(e){return eo(e,function(e){var t=[(t=e,Ca(x()({},Pa,{expandable:!R(t)}),t))];return t=f.has(e[l])&&Array.isArray(e.children)?t.concat(e.children):t})}).mapColumns(function(e){if(0===e.length)return e;var r=_(e,"leaf-only").length,e=Vi()(e),u=e[0],e=e.slice(1);return[Ca(Ca({},u),{},{title:w.a.createElement("div",{style:{display:"inline-block",marginLeft:c}},j.safeRenderHeader(u)),render:function(e,t,n){var r,n=j.safeRender(u,t,n),o=Aa(t);if(!o.isGroupHeader||!o.expandable)return r=c+(o.isGroupHeader?0:a.indentSize),w.a.createElement(Mi,{style:{marginLeft:r}},o.isGroupHeader&&null!=(r=t.groupTitle)?r:n);o=f.has(t[l])?E.expanded:E.collapsed;return w.a.createElement(Di,{className:S()("expansion-cell",o)},w.a.createElement(Li.CaretRight,{className:S()("expansion-icon",o),style:{marginLeft:a.iconIndent,marginRight:a.iconGap}}),null!=(r=t.groupTitle)?r:n)},getCellProps:function(e,t,n){var r,o,i,a,c=Aa(t);if(c.isGroupHeader)return c=c.expandable,o=t[l],i=f.has(o),c&&(a=function(e){d.stopClickEventPropagation&&e.stopPropagation(),i?p(s.filter(function(e){return e!==o}),o,"collapse"):p([].concat(A()(s),[o]),o,"expand")}),k(null==(r=u.getCellProps)?void 0:r.call(u,e,t,n),{onClick:a,style:{cursor:c?"pointer":void 0}})},getSpanRect:function(e,t,n){if(Aa(t).isGroupHeader)return{top:n,bottom:n+1,left:0,right:r}}})].concat(A()(e))}).appendRowPropsGetter(Ra)}}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 Ta(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){x()(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 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",u=null!=(t=f.isDisabled)?t:no(!1),l=o.ensurePrimaryKey("singleSelect"),s=null!=(t=null!=(t=f.value)?t:o.getStateAtKey(n))?t:f.defaultValue,t=Ta(Ta({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=j.safeGetRowKey(l,t,n),k(i,{style:{cursor:(o=u(t,n))?"not-allowed":"pointer"},onClick:o?void 0:function(e){f.stopClickEventPropagation&&e.stopPropagation(),a(r)}})):i},render:function(e,t,n){if(t[o.getFeatureOptions("footerRowMetaKey")])return null;var r=j.safeGetRowKey(l,t,n);return w.a.createElement(i,{checked:s===r,disabled:u(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})}}),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=j.safeGetRowKey(l,e,t),i={};return f.highlightRowWhenSelected&&s===o&&(n="highlight"),"row"!==c||u(e,t)||(i.cursor="pointer",r=function(e){f.stopClickEventPropagation&&e.stopPropagation(),a(o)}),{className:n,style:i,onClick:r}}),o}}function Da(e,t){var n,r,o="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!o){if(Array.isArray(e)||(o=function(e,t){if(e){if("string"==typeof e)return La(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Map"===(n="Object"===n&&e.constructor?e.constructor.name:n)||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?La(e,t):void 0}}(e))||t&&e&&"number"==typeof e.length)return o&&(e=o),n=0,{s:t=function(){},n:function(){return n>=e.length?{done:!0}:{done:!1,value:e[n++]}},e:(r=function(e){throw e},i.toString=function(){return r.toString()},i),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 i(e){return r.apply(this,arguments)}var a,c,u=!0,l=!1;return{s:function(){o=o.call(e)},n:function(){var e=o.next();return u=e.done,e},e:(c=function(e){l=!0,a=e},s.toString=function(){return c.toString()},s),f:function(){try{u||null==o.return||o.return()}finally{if(l)throw a}}};function s(e){return c.apply(this,arguments)}}function La(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 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 Ha(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){x()(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}function Fa(e){var t=e.size,t=void 0===t?32:t,n=e.style,r=e.className,e=e.order;return w.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"},w.a.createElement("path",{fill:"asc"===e?"currentColor":"#bfbfbf",transform:"translate(0, 4)",d:"M8 8L16 0 24 8z"}),w.a.createElement("path",{fill:"desc"===e?"currentColor":"#bfbfbf",transform:"translate(0, -4)",d:"M24 24L16 32 8 24z "}))}function za(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 w.a.createElement(Ba,{onClick:r,style:{justifyContent:n}},t,w.a.createElement(Fa,{style:{userSelect:"none",marginLeft:2,flexShrink:0},className:S()((r={},x()(r,E.tableSortIcon,!0),x()(r,"active","desc"===o||"asc"===o),r)),size:16,order:o}),"multiple"===e.mode&&-1!==i&&w.a.createElement("div",{style:{userSelect:"none",marginLeft:2,color:"#666",flex:"0 0 auto",fontSize:10,fontFamily:"monospace"}},i+1))}var Ba=e.c.div(p()(["\n cursor: pointer;\n display: flex;\n align-items: center;\n // flex: auto;\n"])),Va="sort";function Ka(){var y=0<arguments.length&&void 0!==arguments[0]?arguments[0]:{};return function(r){function o(e,t){var n;null!=(n=y.onChangeSorts)&&n.call(y,e,t),r.setStateAtKey(Va,e)}var e=y.orders,i=void 0===e?["desc","asc","none"]:e,e=y.mode,e=void 0===e?"multiple":e,t=y.SortHeaderCell,c=void 0===t?za:t,n=y.keepDataSource,u=y.highlightColumnWhenActive,l=y.stopClickEventPropagation,t=y.sortIconHoverShow,a=(null!=(a=null!=(a=null!=(a=y.sorts)?a:r.getStateAtKey(Va))?a:y.defaultSorts)?a:[]).filter(function(e){return"none"!==e.order}),f="multiple"===e?a:a.slice(0,1),s="multiple"===e?o:function(e,t){var n=e.length;o(e.slice(n-1),t)},p={sorts:f,onChangeSorts:s,orders:i,mode:e,keepDataSource:n,highlightColumnWhenActive:u,stopClickEventPropagation:l,sortIconHoverShow:t},d=new Map(f.map(function(e,t){return[e.code,Ha({index:t},e)]})),a=r.getDataSource(),h=r.getColumns();return r.dataSource(function(e){if(n)return e;var s=new Map(_(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 yo(e,function(e,t){var n,r=Da(f);try{for(r.s();!(n=r.n()).done;){var o=n.value,i=o.code,a=o.order,c=s.get(i);if(null!=c){var u=c.features.sortable,l=("function"==typeof u?u:ko)(j.safeGetValue(c,e,-1),j.safeGetValue(c,t,-1),e,t);if(0!==l)return l*("asc"===a?1:-1)}}}catch(e){r.e(e)}finally{r.f()}return 0})}(a)),r.columns(h.map(function e(r){var t=Ha({},r);var n=r.code&&((null==(n=r.features)?void 0:n.sortable)||d.has(r.code));var o=n&&d.has(r.code);{var i,a;n&&(n=-1,i="none",o&&(o=d.get(r.code),a=o.order,o=o.index,i=a,n=o,u&&(t.headerCellProps=k(r.headerCellProps,{style:{background:"var(--header-highlight-bgcolor)"}}),t.getCellProps=function(e,t,n){t=j.safeGetCellProps(r,t,n);return k(t,{style:{background:"var(--highlight-bgcolor)"}})})),a=w.a.createElement(c,{onToggle:function(e){l&&e.stopPropagation(),v(r.code)},sortOrder:i,column:r,sortIndex:n,sortOptions:p},j.safeRenderHeader(Ha(Ha({},r),{},{title:r.title&&r.title[0]?r.title[0]:r.title}))),t.title&&t.title[0]?t.title[0]=a:t.title=a)}R(r)||(t.children=r.children.map(e));return t})),r;function v(t){var e,n,r,o=d.get(t);null==o?(r={code:t,order:i[0]},s(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]=Ha(Ha({},n[e]),{},{order:o}),s(n,r))}}}function Wa(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?Wa(Object(n),!0).forEach(function(e){x()(t,e,n[e])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):Wa(Object(n)).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))})}return t}var Ga=e.c.div(p()(["\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 Ya(){return function(e){var n=e.ctx.components.Balloon,r=e.ctx.components.Tooltip;if(null==n&&null==r)throw new Error("使用 tips 之前需要通过 pipeline context 设置 components.Balloon / components.Tooltip");return e.mapColumns(So(function(e){if(null==(t=e.features)||!t.tips)return e;var t="right"===e.align?"flex-end":"center"===e.align?"center":"flex-start";return $a($a({},e),{},{title:w.a.createElement(Ga,{style:{justifyContent:t}},j.safeRenderHeader(e),n?w.a.createElement(n,{closable:!1,trigger:w.a.createElement("div",{className:"tip-icon-wrapper"},w.a.createElement(Li.Info,{className:"tip-icon"}))},e.features.tips):w.a.createElement(r,{title:e.features.tips},w.a.createElement("div",{className:"tip-icon-wrapper"},w.a.createElement(Li.Info,{className:"tip-icon"}))))})}))}}function Ua(e,t){var n,r="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!r){if(Array.isArray(e)||(r=function(e,t){if(e){if("string"==typeof e)return qa(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Map"===(n="Object"===n&&e.constructor?e.constructor.name:n)||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?qa(e,t):void 0}}(e))||t&&e&&"number"==typeof e.length)return r&&(e=r),n=0,{s:t=function(){},n:function(){return n>=e.length?{done:!0}:{done:!1,value:e[n++]}},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.")}var o,i=!0,a=!1;return{s:function(){r=r.call(e)},n:function(){var e=r.next();return i=e.done,e},e:function(e){a=!0,o=e},f:function(){try{i||null==r.return||r.return()}finally{if(a)throw o}}}}function qa(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 Xa=r()(function e(t){i()(this,e),x()(this,"root",void 0),x()(this,"children",void 0),x()(this,"parent",void 0),x()(this,"node",void 0),x()(this,"checked",void 0),O()(this,t)}),Ja=function(){function t(e){i()(this,t),x()(this,"opts",void 0),x()(this,"valueSet",void 0),x()(this,"wrapperMap",void 0),x()(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,u=this.opts.getNodeValue;this.rootWrapper=new Xa({root:!0,children:[]}),this.wrapperMap=new Map,function e(t,n){var r,o=Ua(n);try{for(o.s();!(r=o.n()).done;){var i=r.value,a=new Xa({parent:t,node:i,checked:c.valueSet.has(u(i))});c.wrapperMap.set(u(i),a),t.children.push(a),R(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:to.merge(this.value,[e])}},{key:"getValueAfterUncheck",value:function(e){return this.isChecked(e)?to.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 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 Qa(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){x()(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}function ec(e,t){var n,r="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!r){if(Array.isArray(e)||(r=function(e,t){if(e){if("string"==typeof e)return tc(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Map"===(n="Object"===n&&e.constructor?e.constructor.name:n)||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?tc(e,t):void 0}}(e))||t&&e&&"number"==typeof e.length)return r&&(e=r),n=0,{s:t=function(){},n:function(){return n>=e.length?{done:!0}:{done:!1,value:e[n++]}},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.")}var o,i=!0,a=!1;return{s:function(){r=r.call(e)},n:function(){var e=r.next();return i=e.done,e},e:function(e){a=!0,o=e},f:function(){try{i||null==r.return||r.return()}finally{if(a)throw o}}}}function tc(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 nc=r()(function e(t){i()(this,e),x()(this,"root",void 0),x()(this,"children",void 0),x()(this,"parent",void 0),x()(this,"node",void 0),x()(this,"detached",void 0),x()(this,"checked",void 0),x()(this,"exactChecked",void 0),x()(this,"parentChecked",void 0),x()(this,"anyDescendentsChecked",void 0),x()(this,"allChildrenChecked",void 0),O()(this,t)}),rc=function(){function n(e){var r=this;i()(this,n),x()(this,"opts",void 0),x()(this,"valueSet",void 0),x()(this,"wrapperMap",void 0),x()(this,"rootWrapper",void 0),x()(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),y=(this.rootWrapper=new nc({root:!0,children:[]}),this.wrapperMap=new Map,this.opts.getNodeValue),b=this.isDetached,g=this.wrapperMap;!function e(t,n,r){t.allChildrenChecked=!0;var o,i=ec(n);try{for(i.s();!(o=i.n()).done;){var a=o.value,c=b(a),u=v.has(y(a)),l=(u&&!c&&(t.anyDescendentsChecked=!0),!c&&r),s=u||l,f=new nc({parent:t,node:a,checked:s,exactChecked:u,parentChecked:l,anyDescendentsChecked:s,detached:c});if(g.set(y(a),f),t.children.push(f),!R(a)&&(f.children=[],e(f,a.children,s),f.anyDescendentsChecked&&!c&&(t.anyDescendentsChecked=!0),f.allChildrenChecked)){f.checked=!0;var p,d=ec(f.children);try{for(d.s();!(p=d.n()).done;){var h=p.value;h.detached||(h.parentChecked=!0)}}catch(e){d.e(e)}finally{d.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){if(this.isChecked(e))return this.getCleanValue();e=to.merge(this.value,[e]);return new n(Qa(Qa({},this.opts),{},{value:e})).getCleanValue()}},{key:"getValueAfterUncheck",value:function(e){if(!this.isChecked(e))return this.getCleanValue();var e=this.wrapperMap.get(e),a=this.opts.getNodeValue,t=function(e){var t=[],n=e;for(;n.parentChecked&&!n.detached;){var r,o=ec(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=ec(t);try{for(r.s();!(n=r.n()).done;){var o=n.value;!o.detached&&o.checked&&(i.add(a(o.node)),!R(o)&&o.anyDescendentsChecked&&e(o.children))}}catch(e){r.e(e)}finally{r.f()}}}(e.children),i}(e),t=to.diff(this.value.concat(t),e);return new n(Qa(Qa({},this.opts),{},{value:t})).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=ec(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)):R(o)&&c.push(a(o.node))),R(o)||e(o.children)}}catch(e){r.e(e)}finally{r.f()}}(this.rootWrapper.children),c}}]),n}();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){x()(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}var ac="treeSelect";function cc(p){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 w.a.createElement(r,{checked:s.isChecked(e),indeterminate:s.isIndeterminate(e),disabled:!t&&c(n),onChange:"checkbox"===a||t?function(){return f(e)}:void 0})}var a=null!=(t=p.clickArea)?t:"checkbox",c=null!=(t=p.isDisabled)?t:no(!1),t=null!=(t=p.idDetached)?t:no(!1),u=null!=(u=null!=(u=null!=(u=p.value)?u:n.getStateAtKey(ac))?u:p.defaultValue)?u:[],l=null!=p.rootKey?[(l={},x()(l,o,p.rootKey),x()(l,"children",p.tree),l)]:p.tree,s=p.checkStrictly?new Ja({value:u,getNodeValue:e,tree:l}):new rc({value:u,getNodeValue:e,isDetached:t,tree:l,checkedStrategy:null!=(u=p.checkedStrategy)?u:"parent"}),f=function(e){var t,e=s.getValueAfterToggle(e);n.setStateAtKey(ac,e),null!=(t=p.onChange)&&t.call(p,e)},t=ic(ic({name:"",width:50,align:"center",title:null!=p.rootKey?i(p.rootKey,!0):void 0},p.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){p.stopClickEventPropagation&&e.stopPropagation(),f(n)}}}}),l=n.getColumns().slice();return"start"===(null!=(u=p.checkboxPlacement)?u:"start")?l.unshift(t):l.push(t),n.columns(l),"row"===a&&n.appendRowPropsGetter(function(t){if(!c(t))return{style:{cursor:"pointer"},onClick:function(e){p.stopClickEventPropagation&&e.stopPropagation(),f(t[o])}}}),p.highlightRowWhenSelected&&n.appendRowPropsGetter(function(e){if(s.isChecked(e[o]))return{className:"highlight"}}),n}}t(293);function uc(o){var i,e=o.getStateAtKey(sc);e&&(i=0,o.mapColumns(So(function(e){var t,n=e.width,r=e.code;return R(e)&&r!==lc&&(t=o.getStateAtKey("columnResize"),i+=t&&t[r]||n),e})),e=0<(e=Math.floor(e-i))?e:0,o.getStateAtKey(fc,0)!==e&&o.setStateAtKey("fillColumnWidth",e))}var lc="$_fill_column_&",sc="tableWidth",fc="fillColumnWidth";function pc(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 dc(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?pc(Object(n),!0).forEach(function(e){x()(t,e,n[e])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):pc(Object(n)).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))})}return t}var hc="columnDrag",vc=30;function yc(e){e.preventDefault()}function bc(e){e.stopPropagation()}function gc(){var s=0<arguments.length&&void 0!==arguments[0]?arguments[0]:{};return function(C){var n=C.getStateAtKey(hc,{}).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(So(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:dc(dc({},j),{},{getCellProps:function(e,t,n){return k(null==o?void 0:o(e,t,n),{style:r})},headerCellProps:k(j.headerCellProps,{onMouseDown:!e||1<t.length?void 0:function(e){var b,g,m,l,w,x,n,r,O,S,o,k,E;function i(e){var t={clientX:e.clientX,clientY:e.clientY},n=C.ref.current.domHelper.virtual.scrollLeft-k,r=x-n;if(E(t),!(e.clientX-r<20)){e.stopPropagation(),document.body.style.userSelect="none",w.style.cursor="move",m={},S.forEach(function(e){m[e.code]=0});for(var o,i=0,a=wc(g[i]);a<e.clientX-r&&i<g.length-1;)a+=wc(g[++i]);g.forEach(function(e,t){e.code===j.code&&(o=t)});var c=g[o],u=i;if(i<o)for(;u<o;){var l=g[u],s=l.code,f=l.lock,p=l.width,l=l.children;mc({code:s,lock:f})&&(m[s]+=c.width,R(g[u])?m[c.code]-=p:(m[c.code]-=wc(g[u]),xc(l,m,c.width)),b=!0),u++}else if(o<i)for(;o<u;){var d=g[u],h=d.code,v=d.lock,y=d.width,d=d.children;mc({code:h,lock:v})&&(m[h]-=c.width,R(g[u])?m[c.code]+=y:(m[c.code]+=wc(g[u]),xc(d,m,c.width,!0)),b=!0),u--}window.requestAnimationFrame(function(){C.setStateAtKey(hc,{cloumnsTranslateData:m}),O=[o,i]})}}0===e.button&&(window.addEventListener("selectstart",yc),b=!1,g=C.getColumns(),m=C.getStateAtKey(hc,{}).cloumnsTranslateData,l={},g.forEach(function(e,t){l[e.code]=t}),w=e.currentTarget,x=e.currentTarget.parentElement.getClientRects()[0].left,n=e.clientX,r=e.clientY,O=[],S=_(g),o=a.getBoundingClientRect(),k=C.ref.current.domHelper.virtual.scrollLeft,E=function(e){var e=e.clientX,t=o.left;t+o.width<=e+vc&&(C.ref.current.domHelper.virtual.scrollLeft+=vc),e-vc<=t&&(C.ref.current.domHelper.virtual.scrollLeft-=vc)},document.body.addEventListener("mousemove",i),document.body.addEventListener("mouseup",function e(t){t.stopPropagation(),document.body.removeEventListener("mousemove",i),document.body.removeEventListener("mouseup",e),window.removeEventListener("selectstart",yc),function(e,t,n,r){return n-=e,e=r-t,5<Math.sqrt(n*n+e*e)}(n,r,t.clientX,t.clientY)&&w.addEventListener("click",bc),window.requestAnimationFrame(function(){w.removeEventListener("click",bc),w=null;var e,t=O,n=(t=P()(t,2))[0],t=t[1],r=g[n],o=t;if(t<n)for(;o<n;){var i=g[o],a=i.code;mc({code:a,lock:i.lock})&&(l[a]+=1,--l[r.code],b=!0),o++}else if(n<t)for(;n<o;){var c=g[o],u=c.code;mc({code:u,lock:c.lock})&&(--l[u],l[r.code]+=1,b=!0),o--}(t=s.onColumnDragStopped)&&(e=function(e,t){for(var n=new Array(e.length),r=A()(e);e.length;){var o=e.pop();n[t[o.code]]=o}return n.filter(Boolean).length!==r.length?r:n}(g,l).filter(function(e){return e.code!==lc}),t(b,e)),C.setStateAtKey(hc,{cloumnsTranslateData:null})}),document.body.style.userSelect="",w.style.opacity="",w.style.cursor=""}))},style:r})})}))}}function mc(e){var t=e.lock,e=e.code;return e&&e!==lc&&!t}function wc(e){return e.children?e.children.reduce(function(e,t){return e+wc(t)},0):e.width}function xc(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),R(e)||xc(n,o,i)})}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 Sc(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){x()(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}var kc=e.c.div(p()(['\n position: absolute;\n top: 0;\n right: -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 left: calc(50% - 1px);\n width: 1px;\n height: calc(100% - 14px);\n top: 7px;\n background-color: var(--border-color);\n }\n'])),Ec=Object(e.c)(kc)(p()(["\n &:after {\n height: 100%;\n top: 0;\n }\n"]));function jc(e,t,n){return Math.max(e,Math.min(n,t))}function Cc(e){e.preventDefault()}function Pc(){var e,u=0<arguments.length&&void 0!==arguments[0]?arguments[0]:{},r="columnResize",d=null!=(e=u.minSize)?e:60,l=null!=(e=u.fallbackSize)?e:150,h=null!=(e=u.maxSize)?e:1e3;return function(n){function i(e,t){null!=u&&u.doubleClickCallback(e,t)}function a(e,t){window.addEventListener("selectstart",Cc);var l={},n=e.clientX,r=t.children,s=t.code,f=p;e.stopPropagation(),y(window,"mousemove").pipe(si(y(window,"mouseup")),v(function(e){var o,i,e=e.clientX,a=Sc({},p),c=e-n,u=c;return 0<(null==r?void 0:r.length)?(o=_(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]=jc(d,n+r,h),l[e]=a[e],u-=r):(a[e]=jc(d,n+u,h),l[e]=a[e])})):(e=p[s],a[s]=jc(d,e+c,h),l[s]=a[s]),f=a})).subscribe({next:o,complete:function(){var t=Object.keys(l).map(function(e){return{code:e,width:l[e]}});window.requestAnimationFrame(function(){var e;null!=u&&null!=(e=u.afterChangeSize)&&e.call(u,f,t)}),window.removeEventListener("selectstart",Cc)}})}var e,p=null!=(e=null!=(e=u.columnSize)?e:n.getStateAtKey(r))?e:{},o=(_(n.getColumns(),"leaf-only").forEach(function(e){var t=e.code,e=e.width;void 0===p[t]&&(p[t]="number"==typeof e?e:l)}),n.getStateAtKey(r)&&(null==(e=n.ref)?void 0:e.current.lastOptColumnSize)===u.columnSize||n.setStateAtKey(r,p),n.ref&&(n.ref.current.lastOptColumnSize=u.columnSize),function(t){window.requestAnimationFrame(function(){var e;n.setStateAtKey(r,t),null!=u&&null!=(e=u.onChangeSize)&&e.call(u,t),u.columnSize&&n.ref&&(n.ref.current.lastOptColumnSize=t)})}),c=Zr(n.getColumns());return n.mapColumns(So(function(t){var e=j.safeRenderHeader(t),n=t.code,r=t.features,o=t.width;return Sc(Sc({},t),{},{width:null!=(n=p[n])?n:o,title:w.a.createElement(w.a.Fragment,null,e,!1!==(null==r?void 0:r.resizeable)&&(c?w.a.createElement(Ec,{className:E.tableHeaderCellResize,onDoubleClick:function(e){return i(e,t)},onMouseDown:function(e){return a(e,t)}}):w.a.createElement(kc,{className:E.tableHeaderCellResize,onDoubleClick:function(e){return i(e,t)},onMouseDown:function(e){return a(e,t)}}))),headerCellProps:k(t.headerCellProps,{className:"resizeable"})})}))}}function Ac(){var p=0<arguments.length&&void 0!==arguments[0]?arguments[0]:{};return function(i){function a(e){function t(e){!function(e,t){if(!e||!t)return;if(No(t,e))return 1;return}(e,n)&&!r&&(r=!0,s.removeChild(n),o.forEach(function(e){window.removeEventListener(e,t,!0)}))}var n=document.createElement("div"),r=(n.setAttribute("class","kd-table-popup"),s.appendChild(n),!1),o=["mousedown","contextmenu"];return Fr.a.render(e,n,function(){setTimeout(function(){o.forEach(function(e){window.addEventListener(e,t,!0)})},0)}),t}function c(e,t,n,r){var o,i=[];return t&&i.push((o=n,{name:"复制",action:function(){Io(_o(o))}})),p.getContextMenuItems?p.getContextMenuItems({record:e,column:t,value:n,event:r}):i}function u(){f.destroy()}function l(){return s}var s=p.popupParent||document.body,f=new Ic,t=(i.addTableProps({onContextMenu:function(e){!function(e){var t=Lo(e.nativeEvent),n=0;for(;n<t.length;){var r=t[n];if(r.classList.contains(E.tableBody)||r.classList.contains(E.tableFooter))return;n++}return 1}(e)&&(e.preventDefault(),e.stopPropagation(),t(e))}}),function(e){var t,n=Lo(e),r=Ho(n,function(e){return e&&"table-cell"===e.getAttribute("data-role")}),n=((r?(t=r.getAttribute("data-code"),o=r.getAttribute("data-rowindex"),Tc(r)):(o=null==(r=Ho(n,function(e){return e&&"table-row"===e.getAttribute("data-role")}))?void 0:r.getAttribute("data-rowindex"),Tc(r)))?i.getFooterDataSource()||[]:i.getDataSource())[o],r=void 0!==t&&ro(i.getColumns(),function(e){return e.code===t}),o=r&&n&&j.safeGetValue(r,n,o),n=c(n,r,o,e);0===n.length?jt.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,s),o=a(w.a.createElement(Rc,{options:n,hideContextMenu:u,position:r,getPopupParent:l})),f.init(o))});return i}}function Rc(e){var t=e.options,t=void 0===t?[]:t,n=e.hideContextMenu,r=e.position,o=e.getPopupParent,i=Object(d.useRef)();return Object(d.useEffect)(function(){var e,t,n;i.current&&(e=o(),t=r.x,n=r.y,t=(e=function(e,t,n,r){var o=e.getBoundingClientRect(),i=document.documentElement,a=i.getBoundingClientRect(),c=t.getBoundingClientRect(),u=o.width,l=o.height;e===document.body&&(u=a.width,u-=Math.abs(a.left-o.left),l=a.height+i.scrollTop,l-=Math.abs(a.top-o.top));n&&(e=Math.min(c.width,120),t.style.minWidth=e+"px",i=u-e,n=Math.min(Math.max(n,0),Math.abs(i)));r&&(a=Math.min(c.height,180),o=l-a,r=Math.min(Math.max(r,0),Math.abs(o)));return{x:n,y:r}}(e,i.current,t,n)).x,n=e.y,i.current.style.left=t+"px",i.current.style.top=n+"px")},[r]),w.a.createElement(Ni,{className:b.menu,ref:i,style:{left:r.x,top:r.y}},w.a.createElement("div",{className:b.menuList},t.map(function(e,t){return w.a.createElement(_c,{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,disabled:e.disabled,hideContextMenu:n})})))}function _c(e){var t=e.name,n=e.action,r=e.disabled,o=e.hideContextMenu,i=Object(d.useRef)();return w.a.createElement("div",{className:S()(b.menuOption,x()({},b.menuOptionDisable,r)),ref:i,onClick:function(){r||(o(),"function"==typeof n&&n())},onMouseEnter:function(e){var t;r||(t=i.current)&&t.classList.add(b.menuOptionActive)},onMouseLeave:function(e){var t;r||(t=i.current)&&setTimeout(function(){t.classList.remove(b.menuOptionActive)},10)}},w.a.createElement("span",{className:b.menuOptionText},t))}var Ic=r()(function e(){var t=this;i()(this,e),x()(this,"hidePopup",void 0),x()(this,"init",function(e){t.hidePopup=e}),x()(this,"destroy",function(){t.hidePopup&&t.hidePopup(),t.hidePopup=null})});function Tc(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 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 Dc(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){x()(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 Lc=e.c.div(p()(["\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 .popup-header {\n display: flex;\n background-color: #ebedf1;\n\n .popup-header-icon {\n color:#666;\n background-color: #fff;\n padding: 6px 16px 6px 16px;\n display: inline-block;\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 .popup-body {\n display: flex;\n }\n"]));var Nc=function(e){var t,n,r=e.style,o=e.children,i=e.position,a=e.filterIcon,c=e.onClose,e=Object(d.useState)(i),u=(e=P()(e,2))[0],l=e[1],e=Object(d.useState)(!1),s=(e=P()(e,2))[0],f=e[1],p=w.a.useRef(null);return Object(d.useEffect)(function(){l(Bo(document.body,p.current,i.x,i.y,!0)),f(!0)},[i]),t=function(e){return!No(p.current,e)&&c()},n=["mousedown"],w.a.useEffect(function(){return n.forEach(function(e){return window.addEventListener(e,t,!0)}),function(){return n.forEach(function(e){return window.removeEventListener(e,t,!0)})}},[n,t]),w.a.createElement(Lc,{style:Dc(Dc({},r),{},{left:s?u.x:0,top:s?u.y:0,opacity:s?1:0}),ref:p},w.a.createElement("div",{className:"popup-header"},w.a.createElement("span",{className:"popup-header-icon"},a||w.a.createElement("svg",{width:14,height:14,viewBox:"64 64 896 896",focusable:"false","data-icon":"filter",fill:"currentColor","aria-hidden":"true"},w.a.createElement("path",{d:"M349 838c0 17.7 14.2 32 31.8 32h262.4c17.6 0 31.8-14.3 31.8-32V642H349v196zm531.1-684H143.9c-24.5 0-39.8 26.7-27.5 48l221.3 376h348.8l221.3-376c12.1-21.3-3.2-48-27.7-48z"})))),w.a.createElement("div",{className:"popup-body"},o))},Hc=[{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}}}],Fc=e.c.div(p()(["\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"]),yn);function zc(e){var t=e.setFilterModel,n=e.filterModel,r=e.hidePanel,e=w.a.useState((null==n?void 0:n.filterCondition)||"contain"),o=(e=P()(e,2))[0],i=e[1],e=w.a.useState((null==n?void 0:n.filter)||""),a=(e=P()(e,2))[0],c=e[1],u=w.a.useCallback(function(e){i(e.key)},[]);return Object(d.useEffect)(function(){i((null==n?void 0:n.filterCondition)||"contain"),c((null==n?void 0:n.filter)||"")},[n]),w.a.createElement(Fc,null,w.a.createElement("div",{className:"filter-option-list"},w.a.createElement("ul",null,Hc.map(function(e,t){return w.a.createElement("li",{key:t,className:e.key===o?"active":"",onClick:function(){return u(e)}},e.title)}))),"notIsNull"!==o&&"isNull"!==o&&w.a.createElement("div",{className:"filter-search"},w.a.createElement("input",{className:"filter-search-inner",value:a,onChange:function(e){c(e.target.value)}})),w.a.createElement("div",{className:"filter-footer"},w.a.createElement("button",{className:S()(x()({"filter-btn":!0},E.button,!0)),onClick:function(){r(),t()}},"重置"),w.a.createElement("button",{className:S()((e={"filter-btn":!0},x()(e,E.button,!0),x()(e,E.buttonPrimary,!0),e)),onClick:function(){r(),t({filter:[a],filterCondition:o})}},"确定")))}var Bc=7,Vc=17,Kc=e.c.span(p()(["\n // position: absolute;\n // right: 4px;\n // cursor: pointer;\n // transform: translateY(-50%);\n // top: 50%;\n // height: 12px; \n"]));function Wc(e){function t(e){u(zo(n,document.body,{x:Vc,y:Bc}))}var n=e.ele,r=e.filterIcon,o=e.hidePanel,e=e.renderPanelContent,i=w.a.useRef(null),a=w.a.useState(zo(n,document.body,{x:Vc,y:Bc})),a=P()(a,2),c=a[0],u=a[1];return Object(d.useEffect)(function(){var e=Gt(i.current.children[0],t);return function(){e&&e.disconnect()}},[]),w.a.createElement("div",{ref:i},w.a.createElement(Nc,{style:{position:"absolute",zIndex:1050},onClose:o,position:c,filterIcon:r},e()))}var $c=function(e){function t(){return h(!1)}var n,r=void 0===(r=e.size)?12:r,o=e.style,i=e.className,a=e.FilterPanelContent,c=e.filterIcon,u=e.setFilter,l=e.setFilterModel,s=e.filterModel,f=e.isFilterActive,p=e.stopClickEventPropagation,e=w.a.useState(!1),d=(e=P()(e,2))[0],h=e[1],e=w.a.useRef(null),i=S()((n={},x()(n,i,!0),x()(n,"filter-panel-open",d),n));return w.a.createElement(Kc,{style:o,className:i,onMouseDown:function(e){e.stopPropagation()},ref:e},w.a.createElement("span",{className:E.filterIcon,onClick:function(e){p&&e.stopPropagation(),h(!0)}},c||w.a.createElement("svg",{width:r,height:r,viewBox:"64 64 896 896",focusable:"false","data-icon":"filter",fill:"currentColor","aria-hidden":"true"},w.a.createElement("path",{d:"M349 838c0 17.7 14.2 32 31.8 32h262.4c17.6 0 31.8-14.3 31.8-32V642H349v196zm531.1-684H143.9c-24.5 0-39.8 26.7-27.5 48l221.3 376h348.8l221.3-376c12.1-21.3-3.2-48-27.7-48z"}))),d&&Object(Hr.createPortal)(w.a.createElement(Wc,{ele:e.current,filterIcon:c,hidePanel:t,renderPanelContent:function(){return a?w.a.createElement(a,{setFilter:u,filterModel:s,isFilterActive:f,hidePanel:t}):w.a.createElement(zc,{setFilterModel:l,filterModel:s,isFilterActive:f,hidePanel:t})}}),document.body))};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){x()(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 Uc="filter";function qc(){var o=0<arguments.length&&void 0!==arguments[0]?arguments[0]:{};return function(l){var e=l.getDataSource(),t=l.getColumns(),n=o.filters,r=o.defaultFilters,s=o.onChangeFilters,c=o.keepDataSource,f=o.mode,p=o.filterIcon,d=o.stopClickEventPropagation,r=null!=(n=null!=(n=null!=n?n:l.getStateAtKey(Uc))?n:r)?n:[],r="single"===f?r.slice(0,1):r,h=new Map(r.map(function(e){return[e.code,Yc({},e)]}));return l.dataSource(function(e){var n=[];if(h.forEach(function(e,t){n.push(t)}),c||n.length<=0)return e;var i,t=l.getColumns(),o=new Map(_(t,"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]})),a=new Map(Hc.map(function(e){return[e.key,Yc({},e)]}));return i=function(r){return n.every(function(e){var t=h.get(e),n=null==(n=o.get(e))||null==(n=n.features)?void 0:n.filterable,n="function"==typeof n?n:a.get(t.filterCondition)?a.get(t.filterCondition).filter:(console.warn("列[".concat(e,"]未配置筛选函数,请设置 column.features.filterable 来作为该列的筛选函数, 目前使用默认包含筛选函数")),a.get("contain").filter);return n(t.filter,t)(j.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=i(e);if(R(e))return(o||t)&&Yc({},e);var n=e.children,e=Yc(Yc({},e),{},{children:r(n,o||t)}),n=!R(e);return(o||t||n)&&e}).filter(Boolean)}(e)}(e)),l.columns(t.map(function e(r){var t=Yc({},r);var n=r.code&&(null==(n=r.features)?void 0:n.filterable);var o=n&&0<(null==h||null==(o=h.get(r.code))||null==(o=o.filter)?void 0:o.length);{var i,a,c,u;n&&(a=function(e){var t=new Map(h),n=Yc({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(Uc,e)},n=function(e,t){a(e?{code:r.code,filter:e,filterCondition:t}:void 0)},c=null==(c=r.features)?void 0:c.filterPanel,u=null!=(u=null==(u=r.features)?void 0:u.filterIcon)?u:p,t.title=[].concat(A()([].concat(null!=(i=t.title)?i:[j.safeRenderHeader(Yc(Yc({},r),{},{title:null}))])),[w.a.createElement($c,{key:"filter",FilterPanelContent:c,filterIcon:u,filterModel:h.get(r.code),setFilterModel:a,setFilter:n,isFilterActive:o,className:S()((i={},x()(i,E.tableFilterTrigger,!0),x()(i,"active",o),i)),stopClickEventPropagation:d})]))}R(r)||(t.children=r.children.map(e));return t})),l}}function Xc(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?Xc(Object(n),!0).forEach(function(e){x()(t,e,n[e])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):Xc(Object(n)).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))})}return t}var Zc="rangeSelection",Qc="lastClickCell";function eu(a){return function(g){var u=30,r=g.ref.current.domHelper&&g.ref.current.domHelper.tableBody,o=g.ref.current.domHelper&&g.ref.current.domHelper.tableFooter;if(!r)return g;var l=g.getColumns(),c=g.getDataSource(),s=function(e){var t;g.setStateAtKey(Zc,e),null!=a&&null!=(t=a.rangeSelectedChange)&&t.call(a,e)},n=function(e,t){var n,r,o,i,a;e&&t&&(n=e,r=t,o=_(o=l,"leaf-only"),a=o.findIndex(function(e){return e.code===n.code}),i=o.findIndex(function(e){return e.code===r.code}),o=a<i?o.slice(a,i+1):o.slice(i,a+1),a=(i=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.isInFooter===t.isInFooter}(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.isInFooter||t.isInFooter?r=e.isInFooter&&t.isInFooter?{startRow:c,endRow:a}:e.isInFooter?(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,c)).startRow,t=i.endRow,i=i.footerRowRange,a={startRow:a,endRow:t,columns:o,startColumn:e.column,footerRowRange:i},s(a))},i=function(e){var t=tu(e.target,l);t&&(e.shiftKey?(e=g.getStateAtKey(Qc))?n(e,t):g.setStateAtKey(Qc,t):(g.setStateAtKey(Qc,t),n(t,t)))};return g.addTableProps({onMouseDown:function(e){var a,t,c;0===e.button&&(No(r,e.nativeEvent)||No(o,e.nativeEvent))&&(i(e),a=tu(e.target,l),e=y(window,"mousemove"),t=y(window,"mouseup"),c=r.getBoundingClientRect(),e.pipe(v(function(e){var t,n,r,o,i=tu(e.target||e.srcElement,l),e={clientX:e.clientX,clientY:e.clientY};return t=(e=e).clientX,e=e.clientY,n=c.left,r=c.top,o=c.height,n+c.width<=t+u&&(g.ref.current.domHelper.virtual.scrollLeft+=u),t-u<=n&&(g.ref.current.domHelper.virtual.scrollLeft-=u),r+o<=e+u&&(g.ref.current.domHelper.tableBody.scrollTop+=u),e+u<=r&&(g.ref.current.domHelper.tableBody.scrollTop-=u),{startDragCell:a,draggingCell:i}}),si(t)).subscribe(function(e){var t=e.startDragCell,e=e.draggingCell;n(t,e)}))},onKeyDown:function(e){var t,n;(No(r,e.nativeEvent)||No(o,e.nativeEvent))&&(e.ctrlKey||e.metaKey)&&"a"===e.key&&(t=g.getDataSource().length,n=g.getFooterDataSource()||[],l.length&&t&&(!1!==a.preventkDefaultOfKeyDownEvent&&e.preventDefault(),s({startRow:0,endRow:t-1,columns:l,startColumn:l[0],footerRowRange:0<n.length?{startRow:0,endRow:n.length-1}:null})))},tabIndex:-1,className:S()([E.rangeSelection])}),g.mapColumns(So(function(v){var y=g.getStateAtKey(Zc);if(!y||-1===y.columns.findIndex(function(e){return e.code===v.code}))return v;var b=v.getCellProps;return Jc(Jc({},v),{},{getCellProps:function(e,t,n){var r,o,e=null==b?void 0:b(e,t,n),t=t[g.getFeatureOptions("footerRowMetaKey")],i=y.startRow,a=y.endRow,c=y.columns,u=y.footerRowRange,i=nu(i,a),a=i.startRowIndex,i=i.endRowIndex,l=function(e){if(e)return nu(e.startRow,e.endRow);return{startRowIndex:-1,endRowIndex:-1}}(u),s=l.startRowIndex,l=l.endRowIndex,f=c[0],c=c[c.length-1],p=t&&u&&s<=n&&n<=l||!t&&a<=n&&n<=i,d=p&&(r=(d=y).startRow,o=d.endRow,h=d.columns,d=d.footerRowRange,o=!d&&r===o&&1===h.length,r=-1===r&&d.startRow===d.endRow&&1===h.length,o||r),h=p&&!d;return k(e,{className:S()((o={},x()(o,E.tableCellRangeSingleCell,d),x()(o,E.tableCellRangeSelected,h),x()(o,E.tableCellRangeTop,h&&(t?-1===a&&n===s:n===a)),x()(o,E.tableCellRangeLeft,h&&v.code===f.code),x()(o,E.tableCellRangeBottom,h&&(t?n===l:!u&&n===i)),x()(o,E.tableCellRangeRight,h&&v.code===c.code),o))})}})}))}}function tu(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,isInFooter:function(e){for(;e&&!e.classList.contains(E.artTable);){if(e.classList.contains(E.tableFooter))return!0;e=e.parentElement}return!1}(t)}}:{v:null}}();if("object"===H()(e))return e.v}t=t.parentElement}return null}function nu(e,t){var n=t<e;return{startRowIndex:n?t:e,endRowIndex:n?e:t}}function ru(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 ou(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?ru(Object(n),!0).forEach(function(e){x()(t,e,n[e])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):ru(Object(n)).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))})}return t}function iu(){return function(o){return o.mapColumns(So(function(e){if(!R(e))return e;var r=e.getCellProps;return ou(ou({},e),{},{getCellProps:function(e,t,n){return k(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")})}})}})}))}}function au(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 cu=Symbol("footer-row");function uu(){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:cu;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?au(Object(n),!0).forEach(function(e){x()(t,e,n[e])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):au(Object(n)).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))})}return t}(x()({},r,!0),e)})):console.warn("调用 pipeline.use(features.footerDataSource()) 前请先设置页脚数据源,设置方法有:pipeline.use(features.footerDataSource({dataSource:any[]})) 或者 pipeline.footerDataSource(any[])"),e}}function lu(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 su(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?lu(Object(n),!0).forEach(function(e){x()(t,e,n[e])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):lu(Object(n)).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))})}return t}var fu=function(){function o(e){var t=e.state,n=e.setState,r=e.ctx,e=e.ref;i()(this,o),x()(this,"ref",void 0),x()(this,"_snapshots",{}),x()(this,"_rowPropsGetters",[]),x()(this,"_tableProps",{}),x()(this,"_dataSource",void 0),x()(this,"_columns",void 0),x()(this,"_footerDataSource",void 0),x()(this,"ctx",{components:{},indents:o.defaultIndents}),x()(this,"state",void 0),x()(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=k(this._tableProps,e)}},{key:"getDataSource",value:function(e){return null==e?this._dataSource:this._snapshots[e].dataSource}},{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 su(su({},e),{},x()({},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._dataSource=e.dataSource,this._columns=e.columns.map(function(e){return su(su({},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(function(e){var t=e.getStateAtKey(fc,0),n=e.getColumns(),r=n.find(function(e){return e.code===lc});return r?r.width=t:(r=an(n.slice().reverse()),r=n.length-r,n.splice(r||n.length,0,{name:"",code:lc,width:t,features:{resizeable:!1},getCellProps:function(e,t,n){return{className:E.emptyColCell}}})),e.columns(n),uc(e),e}),{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 k(e,t(n,r))},{})}),e.getTableProps=function(){return t._tableProps},e.setTableWidth=function(e){t.getStateAtKey(sc)!==e&&t.setStateAtKey(sc,e)},e.setTableDomHelper=function(e){t.ref.current.domHelper=e},e}},{key:"clearRangeSelection",value:function(){this.setStateAtKey(Zc,null)}}]),o}();function pu(e){var t=Object(d.useState)({}),t=P()(t,2),n=t[0],t=t[1],r=Object(d.useRef)({});return r.current.featureOptions={},new fu({state:n,setState:t,ctx:e,ref:r})}x()(fu,"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=196);function o(e){if(a[e])return a[e].exports;var t=a[e]={i:e,l:!1,exports:{}};return i[e].call(t.exports,t,t.exports,o),t.l=!0,t.exports}var i,a});
|
|
216
216
|
//# sourceMappingURL=table.min.js.map
|